DEFINE OBJECTS 391
DEFINE OBJECT SANNY BUILDER 4.0.0     
DEFINE OBJECT INFO                     // Object number -1
DEFINE OBJECT KEYCARD                  // Object number -2
DEFINE OBJECT AD_FLATDOOR              // Object number -3
DEFINE OBJECT KB_BANDIT_U              // Object number -4
DEFINE OBJECT ROULETTE_TBL             // Object number -5
DEFINE OBJECT OTB_MACHINE              // Object number -6
DEFINE OBJECT CJ_COIN_OP_3             // Object number -7
DEFINE OBJECT CJ_COIN_OP_2             // Object number -8
DEFINE OBJECT CJ_COIN_OP_1             // Object number -9
DEFINE OBJECT CJ_COIN_OP               // Object number -10
DEFINE OBJECT SWANK_CONSOLE            // Object number -11
DEFINE OBJECT SNESISH                  // Object number -12
DEFINE OBJECT LOW_CONSOLE              // Object number -13
DEFINE OBJECT VENDMACHFD               // Object number -14
DEFINE OBJECT VENDMACH                 // Object number -15
DEFINE OBJECT VENDIN3                  // Object number -16
DEFINE OBJECT CJ_SPRUNK1               // Object number -17
DEFINE OBJECT CJ_CANDYVENDOR           // Object number -18
DEFINE OBJECT CJ_EXT_CANDY             // Object number -19
DEFINE OBJECT CJ_EXT_SPRUNK            // Object number -20
DEFINE OBJECT ICESCART_PROP            // Object number -21
DEFINE OBJECT CHILLIDOGCART            // Object number -22
DEFINE OBJECT NOODLECART_PROP          // Object number -23
DEFINE OBJECT GATE_AUTOL               // Object number -24
DEFINE OBJECT GATE_AUTOR               // Object number -25
DEFINE OBJECT GYM_BIKE                 // Object number -26
DEFINE OBJECT GYM_BENCH1               // Object number -27
DEFINE OBJECT GYM_TREADMILL            // Object number -28
DEFINE OBJECT GYM_MAT1                 // Object number -29
DEFINE OBJECT BSKBALL_LAX              // Object number -30
DEFINE OBJECT BSKBALLHUB_LAX01         // Object number -31
DEFINE OBJECT VGSXREFBBALLNET          // Object number -32
DEFINE OBJECT VGSXREFBBALLNET2         // Object number -33
DEFINE OBJECT K_POOLTABLESM            // Object number -34
DEFINE OBJECT NEIL_SLOT                // Object number -35
DEFINE OBJECT CJ_SLOT_BANK             // Object number -36
DEFINE OBJECT BLCK_JACK                // Object number -37
DEFINE OBJECT WHEEL_O_FORTUNE          // Object number -38
DEFINE OBJECT CRACKFACT_SFS            // Object number -39
DEFINE OBJECT CF_EXT_DEM_SFS           // Object number -40
DEFINE OBJECT LODCRACKFACT_SFS         // Object number -41
DEFINE OBJECT LODEXT_DEM_SFS           // Object number -42
DEFINE OBJECT KILLFRENZY2PLYR          // Object number -43
DEFINE OBJECT TWOPLAYER                // Object number -44
DEFINE OBJECT PICKUPSAVE               // Object number -45
DEFINE OBJECT WOODENBOX                // Object number -46
DEFINE OBJECT NF_BLACKBOARD            // Object number -47
DEFINE OBJECT NF_LIST_1                // Object number -48
DEFINE OBJECT NF_LIST_2                // Object number -49
DEFINE OBJECT NF_LIST_3                // Object number -50
DEFINE OBJECT WANTED_CROSS_OFF         // Object number -51
DEFINE OBJECT WS_APGATE                // Object number -52
DEFINE OBJECT GEN_DOOREXT03            // Object number -53
DEFINE OBJECT GEN_DOOREXT07            // Object number -54
DEFINE OBJECT GEN_DOORSHOP02           // Object number -55
DEFINE OBJECT GEN_DOOREXT04            // Object number -56
DEFINE OBJECT GEN_DOORSHOP3            // Object number -57
DEFINE OBJECT CUNTGIRLDOOR             // Object number -58
DEFINE OBJECT PIZZAHIGH                // Object number -59
DEFINE OBJECT CJ_PIZZA_1               // Object number -60
DEFINE OBJECT CJ_PIZZA_2               // Object number -61
DEFINE OBJECT BURGERHIGH               // Object number -62
DEFINE OBJECT CJ_BURG_1                // Object number -63
DEFINE OBJECT CJ_BURG_2                // Object number -64
DEFINE OBJECT CIGAR                    // Object number -65
DEFINE OBJECT TRDCSGRGDOOR_LVS         // Object number -66
DEFINE OBJECT MD_POSTER                // Object number -67
DEFINE OBJECT CR_DOOR_01               // Object number -68
DEFINE OBJECT CR_DOOR_03               // Object number -69
DEFINE OBJECT SHUTTER_VEGAS            // Object number -70
DEFINE OBJECT CR1_DOOR                 // Object number -71
DEFINE OBJECT CT_GATEXR                // Object number -72
DEFINE OBJECT A51_BLASTDOORR           // Object number -73
DEFINE OBJECT A51_BLASTDOORL           // Object number -74
DEFINE OBJECT A51_LABDOOR              // Object number -75
DEFINE OBJECT A51_JETDOOR              // Object number -76
DEFINE OBJECT PORTAKABIN               // Object number -77
DEFINE OBJECT FREIGHT_SFW_DOOR         // Object number -78
DEFINE OBJECT AB_CASDORLOK             // Object number -79
DEFINE OBJECT IMY_SHASH_WALL           // Object number -80
DEFINE OBJECT TWRCRANE_M_04            // Object number -81
DEFINE OBJECT TWRCRANE_M_01            // Object number -82
DEFINE OBJECT TWRCRANE_M_02            // Object number -83
DEFINE OBJECT LODCRANE_M_04            // Object number -84
DEFINE OBJECT LODCRANE_M_01            // Object number -85
DEFINE OBJECT MAGNOCRANE_01            // Object number -86
DEFINE OBJECT MAGNOCRANE_02            // Object number -87
DEFINE OBJECT MAGNOCRANE_03            // Object number -88
DEFINE OBJECT LODNOCRANE_01            // Object number -89
DEFINE OBJECT LODNOCRANE_02            // Object number -90
DEFINE OBJECT LODNOCRANE_03            // Object number -91
DEFINE OBJECT QUARRY_CRANEBASE         // Object number -92
DEFINE OBJECT QUARRY_CRANE             // Object number -93
DEFINE OBJECT QUARRY_CRANEARM          // Object number -94
DEFINE OBJECT BODYARMOUR               // Object number -95
DEFINE OBJECT BRIBE                    // Object number -96
DEFINE OBJECT A51_VENTCOVERB           // Object number -97
DEFINE OBJECT CARRIER_DOOR_SFSE        // Object number -98
DEFINE OBJECT CARRIER_LIFT2_SFSE       // Object number -99
DEFINE OBJECT CARRIER_LIFT1_SFSE       // Object number -100
DEFINE OBJECT GWFORUM1_LAE             // Object number -101
DEFINE OBJECT GANGSHOPS4_LAE2          // Object number -102
DEFINE OBJECT CE_HILLSEAST06           // Object number -103
DEFINE OBJECT CUNTEGROUND23            // Object number -104
DEFINE OBJECT HILLSEAST05_LAE          // Object number -105
DEFINE OBJECT K_POOLQ                  // Object number -106
DEFINE OBJECT K_POOLBALLCUE            // Object number -107
DEFINE OBJECT K_POOLBALLSPT01          // Object number -108
DEFINE OBJECT K_POOLBALLSPT02          // Object number -109
DEFINE OBJECT K_POOLBALLSPT03          // Object number -110
DEFINE OBJECT K_POOLBALLSPT04          // Object number -111
DEFINE OBJECT K_POOLBALLSPT05          // Object number -112
DEFINE OBJECT K_POOLBALLSPT06          // Object number -113
DEFINE OBJECT K_POOLBALLSPT07          // Object number -114
DEFINE OBJECT K_POOLBALL8              // Object number -115
DEFINE OBJECT K_POOLBALLSTP01          // Object number -116
DEFINE OBJECT K_POOLBALLSTP02          // Object number -117
DEFINE OBJECT K_POOLBALLSTP03          // Object number -118
DEFINE OBJECT K_POOLBALLSTP04          // Object number -119
DEFINE OBJECT K_POOLBALLSTP05          // Object number -120
DEFINE OBJECT K_POOLBALLSTP06          // Object number -121
DEFINE OBJECT K_POOLBALLSTP07          // Object number -122
DEFINE OBJECT K_POOLQ2                 // Object number -123
DEFINE OBJECT CIGAR_GLOW               // Object number -124
DEFINE OBJECT DYN_WINE_BIG             // Object number -125
DEFINE OBJECT KB_BEER                  // Object number -126
DEFINE OBJECT LAEROAD30                // Object number -127
DEFINE OBJECT CASKET_LAW               // Object number -128
DEFINE OBJECT LAEJEFFERSALPHA          // Object number -129
DEFINE OBJECT LAELODPARK02             // Object number -130
DEFINE OBJECT LAEMACPARK02             // Object number -131
DEFINE OBJECT BD_WINDOW                // Object number -132
DEFINE OBJECT BREAK_WALL_1B            // Object number -133
DEFINE OBJECT BREAK_WALL_2B            // Object number -134
DEFINE OBJECT BREAK_WALL_3B            // Object number -135
DEFINE OBJECT BD_FIRE1_O               // Object number -136
DEFINE OBJECT CR_AMMOBOX               // Object number -137
DEFINE OBJECT BREAK_WALL_1A            // Object number -138
DEFINE OBJECT BREAK_WALL_2A            // Object number -139
DEFINE OBJECT BREAK_WALL_3A            // Object number -140
DEFINE OBJECT BD_WINDOW_SHATTER        // Object number -141
DEFINE OBJECT SEC_KEYPAD               // Object number -142
DEFINE OBJECT KMB_RAMP                 // Object number -143
DEFINE OBJECT IMCMPTRKDRL_LAS          // Object number -144
DEFINE OBJECT IMCMPTRKDRR_LAS          // Object number -145
DEFINE OBJECT IMCOMPMOVEDR1_LAS        // Object number -146
DEFINE OBJECT BARREL4                  // Object number -147
DEFINE OBJECT HEALTH                   // Object number -148
DEFINE OBJECT IMY_BBOX                 // Object number -149
DEFINE OBJECT IMY_LA_DOOR              // Object number -150
DEFINE OBJECT DB_AMMO                  // Object number -151
DEFINE OBJECT MED_BED_8                // Object number -152
DEFINE OBJECT CR_GUNCRATE              // Object number -153
DEFINE OBJECT GUNBOX                   // Object number -154
DEFINE OBJECT TMP_BIN                  // Object number -155
DEFINE OBJECT AMMOTRN_OBJ              // Object number -156
DEFINE OBJECT KMB_FRONTGATE            // Object number -157
DEFINE OBJECT WAREHOUSE_DOOR2B         // Object number -158
DEFINE OBJECT WAREHOUSE_DOOR1          // Object number -159
DEFINE OBJECT CJ_CARDBRD_PICKUP        // Object number -160
DEFINE OBJECT NF_PED_COLL              // Object number -161
DEFINE OBJECT CM_BOX                   // Object number -162
DEFINE OBJECT FAKE_MULE_COL            // Object number -163
DEFINE OBJECT CARDBOARDBOX2            // Object number -164
DEFINE OBJECT LAE_SMOKECUTSCENE        // Object number -165
DEFINE OBJECT IMMMCRAN                 // Object number -166
DEFINE OBJECT TRNTRK8_LAS              // Object number -167
DEFINE OBJECT IMY_TRACK_BARRIER        // Object number -168
DEFINE OBJECT KMB_SKIP                 // Object number -169
DEFINE OBJECT STORM_DRAIN_COVER        // Object number -170
DEFINE OBJECT WHEEL_OR1                // Object number -171
DEFINE OBJECT DYN_WOODPILE2            // Object number -172
DEFINE OBJECT KMB_RHYMESBOOK           // Object number -173
DEFINE OBJECT CJ_JUICE_CAN             // Object number -174
DEFINE OBJECT DYN_ROADBARRIER_2        // Object number -175
DEFINE OBJECT KMB_GOFLAG               // Object number -176
DEFINE OBJECT IMY_SKYLIGHT             // Object number -177
DEFINE OBJECT KMB_TROLLEY              // Object number -178
DEFINE OBJECT LXR_MOTEL_DOORSIM        // Object number -179
DEFINE OBJECT LXR_MOTELVENT            // Object number -180
DEFINE OBJECT DYN_SCAFFOLD_4B          // Object number -181
DEFINE OBJECT MUNCH_DONUT              // Object number -182
DEFINE OBJECT CHOPCOP_ARMR             // Object number -183
DEFINE OBJECT CHOPCOP_LEGR             // Object number -184
DEFINE OBJECT CHOPCOP_HEAD             // Object number -185
DEFINE OBJECT CHOPCOP_TORSO            // Object number -186
DEFINE OBJECT WD_FENCE_ANIM            // Object number -187
DEFINE OBJECT CHOPCOP_ARML             // Object number -188
DEFINE OBJECT CHOPCOP_LEGL             // Object number -189
DEFINE OBJECT DYN_SCAFFOLD_3B          // Object number -190
DEFINE OBJECT ROADWORKBARRIER1         // Object number -191
DEFINE OBJECT BRIEFCASE                // Object number -192
DEFINE OBJECT KMB_ATM1                 // Object number -193
DEFINE OBJECT KMB_ATM2                 // Object number -194
DEFINE OBJECT KMB_ATM3                 // Object number -195
DEFINE OBJECT MTSAFE                   // Object number -196
DEFINE OBJECT CAT2_SAFE_COL            // Object number -197
DEFINE OBJECT MAN_SAFENEW              // Object number -198
DEFINE OBJECT KEV_SAFE                 // Object number -199
DEFINE OBJECT RIDER1_DOOR              // Object number -200
DEFINE OBJECT KMB_MARIJUANA            // Object number -201
DEFINE OBJECT SW_HAYBREAK02            // Object number -202
DEFINE OBJECT GRASSPLANT               // Object number -203
DEFINE OBJECT PARKBENCH1               // Object number -204
DEFINE OBJECT PORTALOO                 // Object number -205
DEFINE OBJECT HUBHOLE1_SFSE            // Object number -206
DEFINE OBJECT HUBHOLE2_SFSE            // Object number -207
DEFINE OBJECT HUBHOLE3_SFSE            // Object number -208
DEFINE OBJECT HUBHOLE4_SFSE            // Object number -209
DEFINE OBJECT CLOTHESP                 // Object number -210
DEFINE OBJECT LAMPPOST3                // Object number -211
DEFINE OBJECT CT_STALL1                // Object number -212
DEFINE OBJECT CT_TABLE                 // Object number -213
DEFINE OBJECT CHINATGARAGEDOOR         // Object number -214
DEFINE OBJECT CHINA_TOWN_GATEB         // Object number -215
DEFINE OBJECT A51_SPOTBASE             // Object number -216
DEFINE OBJECT A51_SPOTHOUSING          // Object number -217
DEFINE OBJECT A51_SPOTBULB             // Object number -218
DEFINE OBJECT KMB_CONTAINER_RED        // Object number -219
DEFINE OBJECT CJ_CHRIS_CRATE           // Object number -220
DEFINE OBJECT CJ_CHRIS_CRATE_LD        // Object number -221
DEFINE OBJECT CJ_CHRIS_CRATE_RD        // Object number -222
DEFINE OBJECT CJ_PADLOCK               // Object number -223
DEFINE OBJECT KATANA_ANIM              // Object number -224
DEFINE OBJECT KATANA_LHAND             // Object number -225
DEFINE OBJECT MOBILE1993B              // Object number -226
DEFINE OBJECT WONGS_GATE               // Object number -227
DEFINE OBJECT DYN_RAMP                 // Object number -228
DEFINE OBJECT SNIPER_ANIM              // Object number -229
DEFINE OBJECT KMB_PACKET               // Object number -230
DEFINE OBJECT NTO_B_S                  // Object number -231
DEFINE OBJECT CARDBOARDBOX             // Object number -232
DEFINE OBJECT DYN_ROADBARRIER_3        // Object number -233
DEFINE OBJECT DYN_ROADBARRIER_4        // Object number -234
DEFINE OBJECT DYN_DUMPSTER             // Object number -235
DEFINE OBJECT KMB_CONTAINER_BLUE       // Object number -236
DEFINE OBJECT KMB_CONTAINER_YEL        // Object number -237
DEFINE OBJECT KMB_CONTAINER_OPEN       // Object number -238
DEFINE OBJECT TEMP_STINGER2            // Object number -239
DEFINE OBJECT TRAFFICCONE              // Object number -240
DEFINE OBJECT AD_JUMP                  // Object number -241
DEFINE OBJECT GARYS_LUV_RAMP           // Object number -242
DEFINE OBJECT AD_ROADMARK1             // Object number -243
DEFINE OBJECT AD_ROADMARK2             // Object number -244
DEFINE OBJECT AD_FINISH                // Object number -245
DEFINE OBJECT MINIGUN_BASE             // Object number -246
DEFINE OBJECT WONGS_ERECTION           // Object number -247
DEFINE OBJECT WONGS_ERECTION2          // Object number -248
DEFINE OBJECT RCBOMB                   // Object number -249
DEFINE OBJECT BARREL2                  // Object number -250
DEFINE OBJECT MINI_MAGNET              // Object number -251
DEFINE OBJECT KMB_PLANK                // Object number -252
DEFINE OBJECT KMB_HOLDALL              // Object number -253
DEFINE OBJECT KMB_PARACHUTE            // Object number -254
DEFINE OBJECT AMMO_CAPSULE             // Object number -255
DEFINE OBJECT BARREL1                  // Object number -256
DEFINE OBJECT KB_BARREL                // Object number -257
DEFINE OBJECT CR_CRATESTACK            // Object number -258
DEFINE OBJECT D9_RUNWAY                // Object number -259
DEFINE OBJECT CARGO_TEST               // Object number -260
DEFINE OBJECT CARGO_STUFF              // Object number -261
DEFINE OBJECT CARGO_STORE              // Object number -262
DEFINE OBJECT KMILITARY_CRATE          // Object number -263
DEFINE OBJECT KMILITARY_BASE           // Object number -264
DEFINE OBJECT BLOCKPALLET              // Object number -265
DEFINE OBJECT TEMP_CRATE1              // Object number -266
DEFINE OBJECT K_SMASHBOXES             // Object number -267
DEFINE OBJECT K_CARGO1                 // Object number -268
DEFINE OBJECT K_CARGO4                 // Object number -269
DEFINE OBJECT GREEN_GLOOP              // Object number -270
DEFINE OBJECT BASEJUMP_TARGET          // Object number -271
DEFINE OBJECT DES_QUARRYGATE2          // Object number -272
DEFINE OBJECT DES_QUARRYGATE           // Object number -273
DEFINE OBJECT CJ_DYN_PLUNGE_1          // Object number -274
DEFINE OBJECT DYNAMITE                 // Object number -275
DEFINE OBJECT DYNO_BOX_A               // Object number -276
DEFINE OBJECT DYNO_BOX_B               // Object number -277
DEFINE OBJECT PRIVATESIGN3             // Object number -278
DEFINE OBJECT PRIVATESIGN1             // Object number -279
DEFINE OBJECT BARRIER_4ANDY            // Object number -280
DEFINE OBJECT CJ_CHIP_MAKER_BITS       // Object number -281
DEFINE OBJECT CJ_CHIP_MAKER            // Object number -282
DEFINE OBJECT CJ_WHEELCHAIR1           // Object number -283
DEFINE OBJECT AB_CARCASS               // Object number -284
DEFINE OBJECT AB_HOOK                  // Object number -285
DEFINE OBJECT FREEZER_DOOR             // Object number -286
DEFINE OBJECT CJ_MEAT_BAG_1            // Object number -287
DEFINE OBJECT CJ_MEAT_1                // Object number -288
DEFINE OBJECT CJ_MEAT_2                // Object number -289
DEFINE OBJECT JET_BAGGAGE_DOOR         // Object number -290
DEFINE OBJECT JET_INTERIOR             // Object number -291
DEFINE OBJECT SMLPLANE_DOOR            // Object number -292
DEFINE OBJECT JET_DOOR                 // Object number -293
DEFINE OBJECT SMASH_BOX_STAY           // Object number -294
DEFINE OBJECT SMASH_BOX_BRK            // Object number -295
DEFINE OBJECT SMASHBOXPILE             // Object number -296
DEFINE OBJECT ST_ARCH_PLAN             // Object number -297
DEFINE OBJECT GEN_DOORINT01            // Object number -298
DEFINE OBJECT KMB_LOCKEDDOOR           // Object number -299
DEFINE OBJECT DYN_AIRCON               // Object number -300
DEFINE OBJECT SW_BIT_09                // Object number -301
DEFINE OBJECT GENERATOR_BIG            // Object number -302
DEFINE OBJECT AB_VAULTDOOR             // Object number -303
DEFINE OBJECT GENERATOR_BIG_D          // Object number -304
DEFINE OBJECT CJ_MONEY_BAG             // Object number -305
DEFINE OBJECT PARA_PACK                // Object number -306
DEFINE OBJECT CARGO_REAR               // Object number -307
DEFINE OBJECT D9_RAMP                  // Object number -308
DEFINE OBJECT PARACHUTE                // Object number -309
DEFINE OBJECT OPMANS01_CUNTE           // Object number -310
DEFINE OBJECT CEHOLLYHIL06             // Object number -311
DEFINE OBJECT SUNSET22_LAWN            // Object number -312
DEFINE OBJECT DRG_NU_EXT               // Object number -313
DEFINE OBJECT MISSILE_07_SFXR          // Object number -314
DEFINE OBJECT KMB_KEYPAD               // Object number -315
DEFINE OBJECT WATERJUMPX2              // Object number -316
DEFINE OBJECT BBALL_INGAME             // Object number -317
DEFINE OBJECT CJ_WIN_POP2              // Object number -318
DEFINE OBJECT LA_FUCKCAR1              // Object number -319
DEFINE OBJECT LA_FUCKCAR2              // Object number -320
DEFINE OBJECT TARGET_FRAME             // Object number -321
DEFINE OBJECT TARGET_LLEG              // Object number -322
DEFINE OBJECT TARGET_RLEG              // Object number -323
DEFINE OBJECT TARGET_LTORSO            // Object number -324
DEFINE OBJECT TARGET_RTORSO            // Object number -325
DEFINE OBJECT TARGET_LARM              // Object number -326
DEFINE OBJECT TARGET_RARM              // Object number -327
DEFINE OBJECT TARGET_HEAD              // Object number -328
DEFINE OBJECT DEAD_TIED_COP            // Object number -329
DEFINE OBJECT DYN_QUARRYROCK03         // Object number -330
DEFINE OBJECT BLACKBAG2                // Object number -331
DEFINE OBJECT DYN_WOODPILE             // Object number -332
DEFINE OBJECT DYN_QUARRYROCK02         // Object number -333
DEFINE OBJECT BOUY                     // Object number -334
DEFINE OBJECT WATERJUMP1               // Object number -335
DEFINE OBJECT LANDJUMP2                // Object number -336
DEFINE OBJECT BB_PICKUP                // Object number -337
DEFINE OBJECT PARA_COLLISION           // Object number -338
DEFINE OBJECT CJ_WHEEL_1               // Object number -339
DEFINE OBJECT CJ_WHEEL_02              // Object number -340
DEFINE OBJECT CJ_WHEEL_03              // Object number -341
DEFINE OBJECT CHIP_STACK07             // Object number -342
DEFINE OBJECT CHIP_STACK08             // Object number -343
DEFINE OBJECT CHIP_STACK12             // Object number -344
DEFINE OBJECT CHIP_STACK09             // Object number -345
DEFINE OBJECT CHIP_STACK11             // Object number -346
DEFINE OBJECT WHEEL_WEE                // Object number -347
DEFINE OBJECT ROULETTE_MARKER          // Object number -348
DEFINE OBJECT PEDALS                   // Object number -349
DEFINE OBJECT BEACHTOWEL01             // Object number -350
DEFINE OBJECT KMB_BPRESS               // Object number -351
DEFINE OBJECT BEACHTOWEL03             // Object number -352
DEFINE OBJECT BEACHTOWEL04             // Object number -353
DEFINE OBJECT KMB_DUMBBELL_R           // Object number -354
DEFINE OBJECT KMB_DUMBBELL_L           // Object number -355
DEFINE OBJECT BBALL_COL                // Object number -356
DEFINE OBJECT KMB_ROCK                 // Object number -357
DEFINE OBJECT CHIP_STACK10             // Object number -358
DEFINE OBJECT CHIP_STACK13             // Object number -359
DEFINE OBJECT CHIP_STACK14             // Object number -360
DEFINE OBJECT WHEEL_SUPPORT            // Object number -361
DEFINE OBJECT WHEEL_TABLE              // Object number -362
DEFINE OBJECT CLICKER                  // Object number -363
DEFINE OBJECT MONEY                    // Object number -364
DEFINE OBJECT CJ_FF_TILL_QUE           // Object number -365
DEFINE OBJECT CJ_BURG_CHAIR            // Object number -366
DEFINE OBJECT CJ_PIZZA_CHAIR           // Object number -367
DEFINE OBJECT CJ_PIZZA_CHAIR2          // Object number -368
DEFINE OBJECT CJ_PIZZA_CHAIR3          // Object number -369
DEFINE OBJECT TATTOO_KIT               // Object number -370
DEFINE OBJECT CJ_BARSTOOL              // Object number -371
DEFINE OBJECT CJ_BINCO_DOOR            // Object number -372
DEFINE OBJECT CJ_SUBURB_DOOR_2         // Object number -373
DEFINE OBJECT CJ_PRO_DOOR_01           // Object number -374
DEFINE OBJECT CJ_GAP_DOOR_             // Object number -375
DEFINE OBJECT CJ_VICTIM_DOOR           // Object number -376
DEFINE OBJECT CJ_DS_DOOR               // Object number -377
DEFINE OBJECT PIZZALOW                 // Object number -378
DEFINE OBJECT PIZZAMED                 // Object number -379
DEFINE OBJECT PIZZA_HEALTHY            // Object number -380
DEFINE OBJECT CLUCKLOW                 // Object number -381
DEFINE OBJECT CLUCKMED                 // Object number -382
DEFINE OBJECT CLUCKHIGH                // Object number -383
DEFINE OBJECT CLUCK_HEALTHY            // Object number -384
DEFINE OBJECT BURGERLOW                // Object number -385
DEFINE OBJECT BURGERMED                // Object number -386
DEFINE OBJECT BURGER_HEALTHY           // Object number -387
DEFINE OBJECT POLICE_BARRIER           // Object number -388
DEFINE OBJECT KMB_SHUTTER              // Object number -389
DEFINE OBJECT SFCOPDR                  // Object number -390

DEFINE MISSIONS 151
DEFINE MISSION 0 AT @INITIAL           // Initial 1
DEFINE MISSION 1 AT @INITIL2           // Initial 2
DEFINE MISSION 2 AT @INTRO             // Intro
DEFINE MISSION 3 AT @NONE              // Video Game: They Crawled From Uranus
DEFINE MISSION 4 AT @DUAL              // Video Game: Duality
DEFINE MISSION 5 AT @SHTR              // Video Game: Go Go Space Monkey
DEFINE MISSION 6 AT @GRAV              // Video Game: Let's Get Ready To Bumble
DEFINE MISSION 7 AT @OTB               // Video Game: Inside Track Betting
DEFINE MISSION 8 AT @POOL2             // Pool
DEFINE MISSION 9 AT @LOWR              // Lowrider (Bet And Dance)
DEFINE MISSION 10 AT @ZERO5            // Beefy Baron
DEFINE MISSION 11 AT @INTRO1           // Big Smoke
DEFINE MISSION 12 AT @INTRO2           // Ryder
DEFINE MISSION 13 AT @SWEET1           // Tagging Up Turf
DEFINE MISSION 14 AT @SWEET1B          // Cleaning The Hood
DEFINE MISSION 15 AT @SWEET3           // Drive-Thru
DEFINE MISSION 16 AT @SWEET2           // Nines And AK's
DEFINE MISSION 17 AT @SWEET4           // Drive-By
DEFINE MISSION 18 AT @HOODS5           // Sweet's Girl
DEFINE MISSION 19 AT @SWEET6           // Cesar Vialpando
DEFINE MISSION 20 AT @SWEET7           // Los Sepulcros
DEFINE MISSION 21 AT @CRASH4           // Doberman
DEFINE MISSION 22 AT @CRASH1           // Burning Desire
DEFINE MISSION 23 AT @DRUGS3           // Gray Imports
DEFINE MISSION 24 AT @GUNS1            // Home Invasion
DEFINE MISSION 25 AT @RYDER3           // Catalyst
DEFINE MISSION 26 AT @RYDER2           // Robbing Uncle Sam
DEFINE MISSION 27 AT @TWAR7            // OG Loc
DEFINE MISSION 28 AT @SMOKE2           // Running Dog
DEFINE MISSION 29 AT @SMOKE3           // Wrong Side of the Tracks
DEFINE MISSION 30 AT @DRUGS1           // Just Business
DEFINE MISSION 31 AT @MUSIC1           // Life's a Beach
DEFINE MISSION 32 AT @MUSIC2           // Madd Dogg's Rhymes
DEFINE MISSION 33 AT @MUSIC3           // Management Issues
DEFINE MISSION 34 AT @MUSIC5           // House Party
DEFINE MISSION 35 AT @CPRACE           // Race Tournament / 8-track / Dirt Track
DEFINE MISSION 36 AT @CESAR1           // Lowrider (High Stakes)
DEFINE MISSION 37 AT @DRUGS4           // Reuniting The Families
DEFINE MISSION 38 AT @LA1FIN2          // The Green Sabre
DEFINE MISSION 39 AT @BCRASH1          // Badlands
DEFINE MISSION 40 AT @CATALIN          // First Date
DEFINE MISSION 41 AT @CAT1             // Local Liquor Store
DEFINE MISSION 42 AT @CAT2             // Small Town Bank
DEFINE MISSION 43 AT @CAT3             // Tanker Commander
DEFINE MISSION 44 AT @CAT4             // Against All Odds
DEFINE MISSION 45 AT @CATCUT           // King in Exile
DEFINE MISSION 46 AT @TRUTH1           // Body Harvest
DEFINE MISSION 47 AT @TRUTH2           // Are you going to San Fierro?
DEFINE MISSION 48 AT @BCESAR4          // Wu Zi Mu / Farewell, My Love...
DEFINE MISSION 49 AT @GARAG1           // Wear Flowers In Your Hair
DEFINE MISSION 50 AT @DECON            // Deconstruction
DEFINE MISSION 51 AT @SCRASH3          // 555 WE TIP
DEFINE MISSION 52 AT @SCRASH2          // Snail Trail
DEFINE MISSION 53 AT @WUZI1            // Mountain Cloud Boys
DEFINE MISSION 54 AT @FARLIE4          // Ran Fa Li
DEFINE MISSION 55 AT @DRIV6            // Lure
DEFINE MISSION 56 AT @WUZI2            // Amphibious Assault
DEFINE MISSION 57 AT @WUZI5            // The Da Nang Thang
DEFINE MISSION 58 AT @SYN1             // Photo Opportunity
DEFINE MISSION 59 AT @SYN2             // Jizzy
DEFINE MISSION 60 AT @SYN3             // Outrider
DEFINE MISSION 61 AT @SYND4            // Ice Cold Killa
DEFINE MISSION 62 AT @SYN6             // Toreno's Last Flight
DEFINE MISSION 63 AT @SYN7             // Yay Ka-Boom-Boom
DEFINE MISSION 64 AT @SYN5             // Pier 69
DEFINE MISSION 65 AT @DRIV2            // T-Bone Mendez
DEFINE MISSION 66 AT @DRIV3            // Mike Toreno
DEFINE MISSION 67 AT @STEAL1           // Zeroing In
DEFINE MISSION 68 AT @STEAL2           // Test Drive
DEFINE MISSION 69 AT @STEAL4           // Customs Fast Track
DEFINE MISSION 70 AT @STEAL5           // Puncture Wounds
DEFINE MISSION 71 AT @DSKOOL           // Back to School
DEFINE MISSION 72 AT @ZERO1            // Air Raid
DEFINE MISSION 73 AT @ZERO2            // Supply Lines...
DEFINE MISSION 74 AT @ZERO4            // New Model Army
DEFINE MISSION 75 AT @TORENO1          // Monster
DEFINE MISSION 76 AT @TORENO2          // Highjack
DEFINE MISSION 77 AT @DES3             // Interdiction
DEFINE MISSION 78 AT @DESERT4          // Verdant Meadows
DEFINE MISSION 79 AT @DESERT6          // N.O.E.
DEFINE MISSION 80 AT @DESERT9          // Stowaway
DEFINE MISSION 81 AT @MAF4             // Black Project
DEFINE MISSION 82 AT @DES10            // Green Goo
DEFINE MISSION 83 AT @DESERT5          // Learning to Fly
DEFINE MISSION 84 AT @CASINO1          // Fender Ketchup
DEFINE MISSION 85 AT @CASINO2          // Explosive Situation
DEFINE MISSION 86 AT @CASINO3          // You've Had Your Chips
DEFINE MISSION 87 AT @CASINO7          // Fish in a Barrel
DEFINE MISSION 88 AT @CASINO4          // Don Peyote
DEFINE MISSION 89 AT @CASINO5          // Intensive Care
DEFINE MISSION 90 AT @CASINO6          // The Meat Business
DEFINE MISSION 91 AT @CASINO9          // Freefall
DEFINE MISSION 92 AT @CASIN10          // Saint Mark's Bistro
DEFINE MISSION 93 AT @VCRASH1          // Misappropriation
DEFINE MISSION 94 AT @VCR2             // High Noon
DEFINE MISSION 95 AT @DOC2             // Madd Dogg
DEFINE MISSION 96 AT @HEIST1           // Architectural Espionage
DEFINE MISSION 97 AT @HEIST3           // Key To Her Heart
DEFINE MISSION 98 AT @HEIST2           // Dam And Blast
DEFINE MISSION 99 AT @HEIST4           // Cop Wheels
DEFINE MISSION 100 AT @HEIST5          // Up, Up and Away!
DEFINE MISSION 101 AT @HEIST9          // Breaking the Bank at Caligula's
DEFINE MISSION 102 AT @MANSIO1         // A Home In The Hills
DEFINE MISSION 103 AT @MANSIO2         // Vertical Bird
DEFINE MISSION 104 AT @MANSIO3         // Home Coming
DEFINE MISSION 105 AT @MANSON5         // Cut Throat Business
DEFINE MISSION 106 AT @GROVE1          // Beat Down on B Dup
DEFINE MISSION 107 AT @GROVE2          // Grove 4 Life
DEFINE MISSION 108 AT @RIOT1           // Riot
DEFINE MISSION 109 AT @RIOT2           // Los Desperados
DEFINE MISSION 110 AT @FINALEA         // End Of The Line (1)
DEFINE MISSION 111 AT @FINALEB         // End Of The Line (2)
DEFINE MISSION 112 AT @FINALEC         // End Of The Line (3)
DEFINE MISSION 113 AT @SHRANGE         // Shooting range
DEFINE MISSION 114 AT @GYMLS           // Los Santos Gym Fight School
DEFINE MISSION 115 AT @GYMSF           // San Fierro Gym Fight School
DEFINE MISSION 116 AT @GYMLV           // Las Venturas Gym Fight School
DEFINE MISSION 117 AT @TRUCK           // Trucking
DEFINE MISSION 118 AT @QUARRY          // Quarry
DEFINE MISSION 119 AT @BOAT            // Boat School
DEFINE MISSION 120 AT @BSKOOL          // Bike School
DEFINE MISSION 121 AT @TAXIODD         // Taxi-Driver Sub-Mission
DEFINE MISSION 122 AT @AMBULAN         // Paramedic Sub-Mission
DEFINE MISSION 123 AT @FIRETRU         // Firefighter Sub-Mission
DEFINE MISSION 124 AT @COPCAR          // Vigilante Sub-Mission
DEFINE MISSION 125 AT @BURGJB          // Burglary Sub-Mission
DEFINE MISSION 126 AT @FREIGHT         // Freight Train Sub-Mission
DEFINE MISSION 127 AT @PIMP            // Pimping Sub-Mission
DEFINE MISSION 128 AT @BLOOD           // Arena Mission: Blood Ring
DEFINE MISSION 129 AT @KICKSTA         // Arena Mission: Kickstart
DEFINE MISSION 130 AT @TRIA            // Beat the Cock!
DEFINE MISSION 131 AT @BCOUR           // Courier
DEFINE MISSION 132 AT @MTBIKER         // The Chiliad Challenge
DEFINE MISSION 133 AT @STUNT           // BMX / NRG-500 STUNT Mission
DEFINE MISSION 134 AT @BUYPRO1         // Buy Properties Mission
DEFINE MISSION 135 AT @RAM_2P          // 2player Ram
DEFINE MISSION 136 AT @BIKE_2P         // 2player bike
DEFINE MISSION 137 AT @CARS_2P         // 2player cars
DEFINE MISSION 138 AT @HELI_2P         // 2player heli
DEFINE MISSION 139 AT @PEDS_2P         // 2player peds
DEFINE MISSION 140 AT @RUN_LS          // Run-around LS
DEFINE MISSION 141 AT @RUN_LV          // Run-around LV
DEFINE MISSION 142 AT @RUN_SF          // Run-around SF
DEFINE MISSION 143 AT @RUN_DE          // Run-around DE
DEFINE MISSION 144 AT @RUN_CO          // Run-around CO
DEFINE MISSION 145 AT @R_MILY          // Run-around (2player)
DEFINE MISSION 146 AT @R_SUZI          // Run-around (2player)
DEFINE MISSION 147 AT @R_BARB          // Run-around (2player)
DEFINE MISSION 148 AT @R_KYLIE         // Run-around (2player)
DEFINE MISSION 149 AT @R_COCH          // Run-around (2player)
DEFINE MISSION 150 AT @R_MICH          // Run-around (2player)

DEFINE EXTERNAL_SCRIPTS 78 // Use -1 in order not to compile AAA script
DEFINE SCRIPT PLAYER_PARACHUTE AT @PLCHUTE // 0
DEFINE SCRIPT PARACHUTE AT @PARACH     // 1
DEFINE SCRIPT BCESAR2 AT @BCESAR2      // 2
DEFINE SCRIPT BCESAR3 AT @COKEC        // 3
DEFINE SCRIPT SLOT_MACHINE AT @BANDIT  // 4
DEFINE SCRIPT ROULETTE AT @ROULETE     // 5
DEFINE SCRIPT OTB_SCRIPT AT @OTB_MSC   // 6
DEFINE SCRIPT ARCADE AT @ARCADE        // 7
DEFINE SCRIPT VENDING_MACHINE AT @VENDING // 8
DEFINE SCRIPT FOOD_VENDOR AT @FODVEND  // 9
DEFINE SCRIPT GATES_SCRIPT AT @GATEOS  // 10
DEFINE SCRIPT GYMBIKE AT @GYMBIKE      // 11
DEFINE SCRIPT GYMBENCH AT @GYMBENC     // 12
DEFINE SCRIPT GYMTREAD AT @GYMTREA     // 13
DEFINE SCRIPT GYMDUMB AT @GYMDUMB      // 14
DEFINE SCRIPT BASKETB AT @BBALL        // 15
DEFINE SCRIPT VIDPOK AT @VIDPOK        // 16
DEFINE SCRIPT BLACKJ AT @BLACKJ        // 17
DEFINE SCRIPT WHEELO AT @WOF           // 18
DEFINE SCRIPT DEALER AT @DEALER        // 19
DEFINE SCRIPT HOME_BRAINS AT @HMLES    // 20
DEFINE SCRIPT POOL_SCRIPT AT @POOL     // 21
DEFINE SCRIPT LOWR_CONT AT @LOWRCON    // 22
DEFINE SCRIPT BURG_BRAINS AT @BURGLAR  // 23
DEFINE SCRIPT GF_MEETING AT @GFMEET    // 24
DEFINE SCRIPT GF_DATE AT @GFDATE       // 25
DEFINE SCRIPT GF_SEX AT @GFSEX         // 26
DEFINE SCRIPT CASINO_AMBIENCE AT @CASAMB // 27
DEFINE SCRIPT BAR_AMBIENCE AT @BAR     // 28
DEFINE SCRIPT FOODBRAINS AT @PSHOP     // 29
DEFINE SCRIPT OTB_AMBIENCE AT @OTBSHP  // 30
DEFINE SCRIPT STRIP_AMBIENCE AT @STRIP // 31
DEFINE SCRIPT PLANES AT @PLANES        // 32
DEFINE SCRIPT TRAINS AT @TRAINS        // 33
DEFINE SCRIPT ZERO_AMBIENCE AT @RCSHOP // 34
DEFINE SCRIPT DANCE AT @DANCE          // 35
DEFINE SCRIPT SHOPKEEPER AT @SKBRAIN   // 36
DEFINE SCRIPT CUSTOMER_PANIC AT @FFPNC // 37
DEFINE SCRIPT BAR_STAFF AT @BARSTAF    // 38
DEFINE SCRIPT BOUNCER AT @BOUNCER      // 39
DEFINE SCRIPT OTB_STAFF AT @OTBSTAF    // 40
DEFINE SCRIPT PCHAIR AT @PCHAIR        // 41
DEFINE SCRIPT PCUSTOM AT @PCUSTOM      // 42
DEFINE SCRIPT OTBWTCH AT @OTBWTCH      // 43
DEFINE SCRIPT OTBSLP AT @OTBSLP        // 44
DEFINE SCRIPT OTBTILL AT @OTBTILL      // 45
DEFINE SCRIPT FBOOTHR AT @FBOOTHR      // 46
DEFINE SCRIPT FBOOTHL AT @FBOOTHL      // 47
DEFINE SCRIPT BARGUY AT @BARGUY        // 48
DEFINE SCRIPT PEDROUL AT @PEDROUL      // 49
DEFINE SCRIPT PEDCARD AT @PEDCARD      // 50
DEFINE SCRIPT PEDSLOT AT @PEDSLOT      // 51
DEFINE SCRIPT DANCER AT @DANCER        // 52
DEFINE SCRIPT STRIPW AT @STRIPW        // 53
DEFINE SCRIPT STRIPM AT @STRIPM        // 54
DEFINE SCRIPT BROWSE AT @BROWSE        // 55
DEFINE SCRIPT COPSIT AT @COPSIT        // 56
DEFINE SCRIPT COPLOOK AT @COPLOOK      // 57
DEFINE SCRIPT TICKET AT @TICKET        // 58
DEFINE SCRIPT SHOPPER AT @SHOPPER      // 59
DEFINE SCRIPT AMMU AT @AMUNAT          // 60
DEFINE SCRIPT TATTOO AT @TATTO         // 61
DEFINE SCRIPT BARBER AT @BARB          // 62
DEFINE SCRIPT WARDROBE AT @WARROBE     // 63
DEFINE SCRIPT CLOTHES AT @CLOTH        // 64
DEFINE SCRIPT JUNKFUD AT @JFUD         // 65
DEFINE SCRIPT CARMOD1 AT @CARMOD       // 66
DEFINE SCRIPT CRANE1 AT @CRANE1        // 67
DEFINE SCRIPT CRANE2 AT @CRANE2        // 68
DEFINE SCRIPT CRANE3 AT @CRANE3        // 69
DEFINE SCRIPT CARPARK1 AT @CARPRK1     // 70
DEFINE SCRIPT IMPOUND AT @IMPND        // 71
DEFINE SCRIPT VALET AT @VALET          // 72
DEFINE SCRIPT PHOTO AT @PHOTO          // 73
DEFINE SCRIPT PRISONR AT @PRISONR      // 74
DEFINE SCRIPT CAMERA AT @CAMERA        // 75
DEFINE SCRIPT DEBT AT @DEBT            // 76
DEFINE SCRIPT HOTDOG AT @HOTDOGV       // 77

DEFINE UNKNOWN_EMPTY_SEGMENT 0

DEFINE UNKNOWN_THREADS_MEMORY 2146

{$USE debug}

//-------------MAIN---------------
script_name 'MAIN'
do_fade 0 {direction} Fade.Out
set_total_number_of_missions 147
set_progress_total 187
set_mission_respect_total 1339
set_max_wanted_level 6
set_deatharrest_state 0
set_time_of_day 8 {minutes} 0
request_collision 2488.562 {y} -1666.865
load_scene 2488.562 {y} -1666.865 {z} 13.3757
set_float_stat StatId.Energy {value} 800.0
set_float_stat StatId.BodyMuscle {value} 50.0
set_float_stat StatId.Fat {value} 200.0
set_float_stat StatId.DrivingSkill {value} 0.0
set_int_stat StatId.CitiesPassed {value} 0
set_int_stat StatId.Respect {value} 0
$player1 = create_player 0 {x} 2488.562 {y} -1666.865 {z} 12.8757
goto @MAIN_177
$player2 = create_player 1 {x} 2488.562 {y} -1666.865 {z} 12.8757

:MAIN_177
display_timer_bars 0
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang2 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang2 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Gang1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang3 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Gang1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang8 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang4 {toPedType} PedType.Gang5
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang4 {toPedType} PedType.Gang7
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang5 {toPedType} PedType.Gang4
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang7 {toPedType} PedType.Gang4
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang7 {toPedType} PedType.Gang5
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang5 {toPedType} PedType.Gang7
$Players_Group = get_player_group $player1
$scplayer = get_player_char $player1
set_camera_behind_player 
set_char_heading $scplayer {heading} 262.0
load_and_launch_mission_internal 0 // Initial 1
wait 0
load_and_launch_mission_internal 1 // Initial 2
$show_race_selection = 0
$wasted_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 2027.77 {y} -1420.52 {z} 16.49
$wasted_help2 = create_pickup #INFO {pickupType} PickupType.Once {x} 1180.85 {y} -1325.5699 {z} 13.08
$busted_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 1550.6801 {y} -1675.49 {z} 15.01
$chat_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 2431.1699 {y} -1668.75 {z} 13.04
$LA_ShootX = 292.33
$LA_ShootY = -35.39
$LA_ShootZ = 1000.5
$race_debug = 0
$courier_type = 1
$courier_type = 2
$lowrider_mission_flag = 0
$lowrider_minigame_unlocked = 0
$race_selection = 0
declare_mission_flag $onmission
set_var_int_to_constant $intro_blip_icon = 15
set_var_int_to_constant $sweet_blip_icon = 38
set_var_int_to_constant $ryder_blip_icon = 34
set_var_int_to_constant $smoke_blip_icon = 8
set_var_int_to_constant $strap_blip_icon = 28
set_var_int_to_constant $crash_blip_icon = 16
set_var_int_to_constant $cesar_blip_icon = 13
set_var_int_to_constant $cat_blip_icon = 12
set_var_int_to_constant $truth_blip_icon = 40
set_var_int_to_constant $wuzi_blip_icon = 46
set_var_int_to_constant $synd_blip_icon = 23
set_var_int_to_constant $garage_blip_icon = 43
set_var_int_to_constant $steal_blip_icon = 13
set_var_int_to_constant $trace_blip_icon = 33
set_var_int_to_constant $zero_blip_icon = 47
set_var_int_to_constant $casino_blip_icon = 44
set_var_int_to_constant $heist_blip_icon = 25
set_var_int_to_constant $Theheist_blip_icon = 52
set_var_int_to_constant $doc_blip_icon = 24
set_var_int_to_constant $desert_blip_icon = 42
set_var_int_to_constant $desert2_blip_icon = 5
set_var_int_to_constant $mansion_blip_icon = 15
set_var_int_to_constant $pilot_blip_icon = 36
set_var_int_to_constant $grove_blip_icon = 38
goto @MAIN_2039
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
$barber_shop1 = add_short_range_sprite_blip_for_coord 2070.27 {y} -1791.092 {z} 17.1484 {sprite} RadarSprite.Barbers
$food_shop1 = add_short_range_sprite_blip_for_coord 2107.624 {y} -1807.516 {z} 21.2114 {sprite} RadarSprite.Pizza
$clothes_shop1 = add_short_range_sprite_blip_for_coord 2243.8069 {y} -1668.567 {z} 20.0313 {sprite} RadarSprite.Tshirt
$intro_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$ryder_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
$smoke_contact_blip = add_sprite_blip_for_contact_point $smokeX {y} $smokeY {z} $smokeZ {sprite} $smoke_blip_icon
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
$crash_contact_blip = add_sprite_blip_for_contact_point $crashX {y} $crashY {z} $crashZ {sprite} $crash_blip_icon
$cesar_contact_blip = add_sprite_blip_for_contact_point $cesarX {y} $cesarY {z} $cesarZ {sprite} $cesar_blip_icon
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $crash_blip_icon
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
$cat_contact_blip = add_sprite_blip_for_contact_point $511 {y} $517 {z} $523 {sprite} $cat_blip_icon
$truth_contact_blip = add_sprite_blip_for_contact_point $truthX {y} $truthY {z} $truthZ {sprite} $truth_blip_icon
$bcesar_contact_blip = add_sprite_blip_for_contact_point $bcesarX {y} $bcesarY {z} $bcesarZ {sprite} $cesar_blip_icon
$scrash_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $crash_blip_icon
$wuzi_contact_blip = add_sprite_blip_for_contact_point $wuziX {y} $wuziY {z} $wuziZ {sprite} $wuzi_blip_icon
$zero_contact_blip = add_sprite_blip_for_contact_point $zeroX {y} $zeroY {z} $zeroZ {sprite} $zero_blip_icon
$steal_contact_blip = add_sprite_blip_for_contact_point $stealX {y} $stealY {z} $stealZ {sprite} $steal_blip_icon
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$synd_contact_blip = add_sprite_blip_for_contact_point $syndX {y} $syndY {z} $syndZ {sprite} $crash_blip_icon
$trace_contact_blip = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} $trace_blip_icon
$trace_contact_blip2 = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} $trace_blip_icon
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} $desert_blip_icon
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
$doc_contact_blip = add_sprite_blip_for_contact_point $docX {y} $docY {z} $docZ {sprite} $doc_blip_icon
$vcrash_contact_blip = add_sprite_blip_for_contact_point $vcrashX {y} $vcrashY {z} $vcrashZ {sprite} $crash_blip_icon
$heist_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$grove_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$pilot_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
$dschool_contact_blip = add_sprite_blip_for_contact_point -2031.2 {y} -118.0 {z} 34.3 {sprite} RadarSprite.School
$boat_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
$bike_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
$gym_contact_blip = add_sprite_blip_for_contact_point 2228.0 {y} -1722.811 {z} 12.5543 {sprite} $sweet_blip_icon
$1722 = add_short_range_sprite_blip_for_contact_point $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5] {sprite} RadarSprite.SaveGame
$quarry_contact_blip = add_short_range_sprite_blip_for_contact_point $quarryX {y} $quarryY {z} $quarryZ {sprite} RadarSprite.Bulldozer
$mod_garage_blips = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$2589 = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$showroom_contact_blip = add_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.PropertyG
$zero_contact_blip = add_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.PropertyG
$airstrip_contact_blip = add_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyG
$tucking_contact_blip = add_short_range_sprite_blip_for_coord $truckX {y} $truckY {z} $truckZ {sprite} RadarSprite.Truck
$territory_pickup = create_protection_pickup 2508.3589 {y} -1676.538 {z} 12.579 {revenueLimit} 10000 {revenueRate} $territory_cash
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 0.0 {y} 0.0 {z} 0.0
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2035.724 {y} 2727.96 {z} 9.8281 {sprite} $Theheist_blip_icon
$save_housepickup[0] = create_locked_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {message} 'PROP_4'
$save_housepickup[1] = create_locked_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {message} 'PROP_4'
$save_housepickup[2] = create_locked_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {message} 'PROP_4'
$2705 = create_object #AD_FLATDOOR {x} 1833.36 {y} -1995.45 {z} 12.5
$riot2_door = create_object #AD_FLATDOOR {x} 1819.8101 {y} -1994.66 {z} 12.5
$2707 = create_object #AD_FLATDOOR {x} 1827.6801 {y} -1980.0 {z} 12.5
$2708 = create_object #AD_FLATDOOR {x} 1851.84 {y} -1990.67 {z} 12.5
$2709 = create_object #AD_FLATDOOR {x} 1867.29 {y} -1984.96 {z} 12.5
$2710 = create_object #AD_FLATDOOR {x} 1866.52 {y} -1998.53 {z} 12.5
$2711 = create_object #AD_FLATDOOR {x} 1899.75 {y} -1984.95 {z} 12.5
$2712 = create_object #AD_FLATDOOR {x} 1914.39 {y} -1992.8199 {z} 12.5
$2713 = create_object #AD_FLATDOOR {x} 1899.01 {y} -1998.5 {z} 12.5
$2714 = create_object #AD_FLATDOOR {x} 1900.89 {y} -2020.11 {z} 12.5
$2715 = create_object #AD_FLATDOOR {x} 1914.4 {y} -2020.91 {z} 12.5
$2716 = create_object #AD_FLATDOOR {x} 1906.54 {y} -2035.52 {z} 12.5
$2717 = create_object #AD_FLATDOOR {x} 1851.86 {y} -2020.14 {z} 12.5
$2718 = create_object #AD_FLATDOOR {x} 1865.42 {y} -2020.89 {z} 12.5
$2719 = create_object #AD_FLATDOOR {x} 1857.55 {y} -2035.52 {z} 12.5

:MAIN_2039
switch_roads_off 2500.0 {leftBottomY} -1677.0 {leftBottomZ} 20.0 {rightTopX} 2430.0 {rightTopY} -1653.0 {rightTopZ} 0.0
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$iSetPizzaPanic = 0
$SHOPS_TEXT_SCALEX = 1.0
$SHOPS_TEXT_SCALEY = 1.6
$TEXT_COL_SELECT_R = 200
$TEXT_COL_SELECT_G = 200
$TEXT_COL_SELECT_B = 200
$TEXT_COL_SELECT_A = 255
$TEXT_COL_DULL_R = 100
$TEXT_COL_DULL_G = 100
$TEXT_COL_DULL_B = 100
$TEXT_COL_DULL_A = 255
$TEXT_COL_NA_R = 20
$TEXT_COL_NA_G = 20
$TEXT_COL_NA_B = 20
$TEXT_COL_NA_A = 255
$gen_car20 = create_car_generator 2435.302 {y} -1671.848 {z} 12.8007 {heading} 90.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car20 {amount} 0
$hyfra_gen1 = create_car_generator 2527.2 {y} -1677.1 {z} 19.2 {heading} 90.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $hyfra_gen1 {amount} 0
$load_and_launch_mission_if_poss = -1
register_streamed_script_internal 0
register_streamed_script_internal 1
register_streamed_script_internal 2
register_streamed_script_internal 3
register_streamed_script_internal 4
register_streamed_script_internal 5
register_streamed_script_internal 6
register_streamed_script_internal 7
register_streamed_script_internal 8
register_streamed_script_internal 9
register_streamed_script_internal 10
register_streamed_script_internal 11
register_streamed_script_internal 12
register_streamed_script_internal 13
register_streamed_script_internal 14
register_streamed_script_internal 15
register_streamed_script_internal 16
register_streamed_script_internal 17
register_streamed_script_internal 18
register_streamed_script_internal 19
register_streamed_script_internal 20
register_streamed_script_internal 21
register_streamed_script_internal 22
register_streamed_script_internal 23
register_streamed_script_internal 24
register_streamed_script_internal 25
register_streamed_script_internal 26
register_streamed_script_internal 27
register_streamed_script_internal 28
register_streamed_script_internal 29
register_streamed_script_internal 30
register_streamed_script_internal 31
register_streamed_script_internal 32
register_streamed_script_internal 33
register_streamed_script_internal 34
register_streamed_script_internal 35
register_streamed_script_internal 36
register_streamed_script_internal 37
register_streamed_script_internal 38
register_streamed_script_internal 39
register_streamed_script_internal 40
register_streamed_script_internal 41
register_streamed_script_internal 42
register_streamed_script_internal 43
register_streamed_script_internal 44
register_streamed_script_internal 45
register_streamed_script_internal 46
register_streamed_script_internal 47
register_streamed_script_internal 48
register_streamed_script_internal 49
register_streamed_script_internal 50
register_streamed_script_internal 51
register_streamed_script_internal 52
register_streamed_script_internal 53
register_streamed_script_internal 54
register_streamed_script_internal 55
register_streamed_script_internal 56
register_streamed_script_internal 57
register_streamed_script_internal 58
register_streamed_script_internal 59
register_streamed_script_internal 60
register_streamed_script_internal 61
register_streamed_script_internal 62
register_streamed_script_internal 63
register_streamed_script_internal 64
register_streamed_script_internal 65
register_streamed_script_internal 66
register_streamed_script_internal 67
register_streamed_script_internal 68
register_streamed_script_internal 69
register_streamed_script_internal 70
register_streamed_script_internal 71
register_streamed_script_internal 72
register_streamed_script_internal 73
register_streamed_script_internal 74
register_streamed_script_internal 75
register_streamed_script_internal 76
register_streamed_script_internal 77
allocate_streamed_script_to_object 4 {modelId} #KB_BANDIT_U {priority} 100 {radius} 6.0 {type} 1
allocate_streamed_script_to_object 5 {modelId} #ROULETTE_TBL {priority} 60 {radius} 50.0 {type} 1
allocate_streamed_script_to_object 6 {modelId} #OTB_MACHINE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_3 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_2 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_1 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #SWANK_CONSOLE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #SNESISH {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #LOW_CONSOLE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDMACHFD {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDMACH {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDIN3 {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_SPRUNK1 {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_CANDYVENDOR {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_EXT_CANDY {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_EXT_SPRUNK {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #ICESCART_PROP {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #CHILLIDOGCART {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #NOODLECART_PROP {priority} 100 {radius} 70.0 {type} -1
$open_gate_now_flag = 0
allocate_streamed_script_to_object 10 {modelId} #GATE_AUTOL {priority} 100 {radius} 80.0 {type} -1
allocate_streamed_script_to_object 10 {modelId} #GATE_AUTOR {priority} 100 {radius} 80.0 {type} -1
allocate_streamed_script_to_object 11 {modelId} #GYM_BIKE {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 12 {modelId} #GYM_BENCH1 {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 13 {modelId} #GYM_TREADMILL {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 14 {modelId} #GYM_MAT1 {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #BSKBALL_LAX {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #BSKBALLHUB_LAX01 {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #VGSXREFBBALLNET {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #VGSXREFBBALLNET2 {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 21 {modelId} #K_POOLTABLESM {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 16 {modelId} #NEIL_SLOT {priority} 100 {radius} 4.0 {type} 1
allocate_streamed_script_to_object 16 {modelId} #CJ_SLOT_BANK {priority} 100 {radius} 4.0 {type} 1
allocate_streamed_script_to_object 17 {modelId} #BLCK_JACK {priority} 50 {radius} 70.0 {type} 1
allocate_streamed_script_to_object 18 {modelId} #WHEEL_O_FORTUNE {priority} 50 {radius} 70.0 {type} 1
$territory_cash = 1
register_script_brain_for_code_use 23 {_p2} 'HOUSE'
register_attractor_script_brain_for_code_use 52 {_p2} 'DANCER'
register_attractor_script_brain_for_code_use 41 {_p2} 'PCHAIR'
register_attractor_script_brain_for_code_use 42 {_p2} 'PCUSTOM'
register_attractor_script_brain_for_code_use 43 {_p2} 'OTBWTCH'
register_attractor_script_brain_for_code_use 44 {_p2} 'OTBSLP'
register_attractor_script_brain_for_code_use 45 {_p2} 'OTBTILL'
register_attractor_script_brain_for_code_use 46 {_p2} 'FBOOTHR'
register_attractor_script_brain_for_code_use 47 {_p2} 'FBOOTHL'
register_attractor_script_brain_for_code_use 48 {_p2} 'BARGUY'
register_attractor_script_brain_for_code_use 49 {_p2} 'PEDROUL'
register_attractor_script_brain_for_code_use 50 {_p2} 'PEDCARD'
register_attractor_script_brain_for_code_use 51 {_p2} 'PEDSLOT'
register_attractor_script_brain_for_code_use 53 {_p2} 'STRIPW'
register_attractor_script_brain_for_code_use 54 {_p2} 'STRIPM'
register_attractor_script_brain_for_code_use 55 {_p2} 'BROWSE'
register_attractor_script_brain_for_code_use 56 {_p2} 'COPSIT'
register_attractor_script_brain_for_code_use 57 {_p2} 'COPLOOK'
register_attractor_script_brain_for_code_use 58 {_p2} 'TICKET'
register_attractor_script_brain_for_code_use 59 {_p2} 'SHOPPER'
register_attractor_script_brain_for_code_use 73 {_p2} 'PHOTO'
register_attractor_script_brain_for_code_use 74 {_p2} 'PRISONR'
allocate_streamed_script_to_random_ped 19 {modelId} 28 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 29 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 30 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 254 {priority} 100
allocate_streamed_script_to_random_ped 77 {modelId} 168 {priority} 100
attach_anims_to_model 28 {animationFile} 'DEALER'
attach_anims_to_model 29 {animationFile} 'DEALER'
attach_anims_to_model 30 {animationFile} 'DEALER'
attach_anims_to_model 254 {animationFile} 'DEALER'
request_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} False
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} False
start_new_script @TPLAYER 
start_new_script @ODDVEH 
start_new_script @R3 
start_new_script @GYM 
start_new_script @SHOOT 
start_new_script @BLOODR 
start_new_script @HOTR 
start_new_script @KICKS 
start_new_script @PSAVE1 
start_new_script @FLOW 
start_new_script @HELP 
start_new_script @COLLS 
start_new_script @CRANES 
start_new_script @BUY_PRO 
start_new_script @VALET_L 
start_new_script @ADPLANE 
start_new_script @TRAINSL 
start_new_script @IMPND_L 
start_new_script @OPENUP 
start_new_script @TRI 
launch_mission @Noname_1
launch_mission @Noname_2
launch_mission @Noname_3
launch_mission @Noname_4
launch_mission @Noname_5
launch_mission @Noname_6
launch_mission @APCHECK
launch_mission @GFINIT
launch_mission @Noname_7
launch_mission @Noname_8
launch_mission @HJ
launch_mission @CELLFON
do_fade 0 {direction} Fade.Out
display_zone_names False
wait 0
wait 0
set_max_wanted_level 4
if 
  is_player_playing $player1
goto_if_false @MAIN_4125
force_weather_now WeatherType.SunnyLa
give_player_clothes_outside_shop $player1 {textureName} "VEST" {modelName} "VEST" {bodyPart} BodyPart.Torso
give_player_clothes_outside_shop $player1 {textureName} "JEANSDENIM" {modelName} "JEANS" {bodyPart} BodyPart.Legs
give_player_clothes_outside_shop $player1 {textureName} "SNEAKERBINCBLK" {modelName} "SNEAKER" {bodyPart} BodyPart.Shoes
give_player_clothes_outside_shop $player1 {textureName} "PLAYER_FACE" {modelName} "HEAD" {bodyPart} BodyPart.Head
$flag_bought_from_binco = 1
build_player_model $player1
store_clothes_state 
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out
$game_starts_from_scratch = 0
load_and_launch_mission_internal 2 // Intro
$activate_mobile_phone = 1
if 
  is_player_playing $player1
goto_if_false @MAIN_4116
set_area_visible 0
set_player_control $player1 {state} True

:MAIN_4116
release_weather 
goto @MAIN_4132

:MAIN_4125
$number_of_instances_of_streamed_script = 0

:MAIN_4132
wait 0
if 
  is_player_playing $player1
goto_if_false @MAIN_5865
$main_visible_area = get_area_visible 
$Return_cities_passed = get_int_stat StatId.CitiesPassed
$weekday = get_current_day_of_week 
$current_Language = get_current_language 
$im_players_city = get_city_player_is_in $player1
$timer_wil = get_game_timer 
if 
  $flag_store_day_food == 1
goto_if_false @MAIN_4271
set_var_int_to_var_int $5282 = $timer_wil
sub_int_var_from_int_var $5282 -= $game_timer_wil
if 
  $5282 >= 180000
goto_if_false @MAIN_4271
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$5282 = 0
$found_a_food_shop = 0

:MAIN_4271
if or
  is_garage_open 'BODLAWN'
  is_garage_open 'MODLAST'
  is_garage_open 'MDSSFSE'
  is_garage_open 'MDS1SFS'
  is_garage_open 'VECMOD'
goto_if_false @MAIN_4393
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 66
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4386
stream_script 66
if 
  has_streamed_script_loaded 66
goto_if_false @MAIN_4386
start_new_streamed_script 66

:MAIN_4386
goto @MAIN_4397

:MAIN_4393
mark_streamed_script_as_no_longer_needed 66

:MAIN_4397
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @MAIN_4471
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 0
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4464
stream_script 0
if 
  has_streamed_script_loaded 0
goto_if_false @MAIN_4464
start_new_streamed_script 0

:MAIN_4464
goto @MAIN_4475

:MAIN_4471
mark_streamed_script_as_no_longer_needed 0

:MAIN_4475
if and
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
  $onmission == 0
goto_if_false @MAIN_4556
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 75
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4549
stream_script 75
if 
  has_streamed_script_loaded 75
goto_if_false @MAIN_4549
start_new_streamed_script 75

:MAIN_4549
goto @MAIN_4560

:MAIN_4556
mark_streamed_script_as_no_longer_needed 75

:MAIN_4560
if 
  $onmission == 0
goto_if_false @MAIN_5552
if 
  10 > $flag_synd_mission_counter
goto_if_false @MAIN_5029
if 
  $cat_counter > 2
goto_if_false @MAIN_5029
if 
  $courier_timer > 400
goto_if_false @MAIN_4957
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 2
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4795
if 
  $bcesar3_mission_flag == 0
goto_if_false @MAIN_4795
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 3
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4795
$weekday = get_current_day_of_week 
$hours, $minutes = get_time_of_day 
if or
  $weekday == 4
  $weekday == 7
goto_if_false @MAIN_4795
if or
  $hours >= 19
  7 > $hours
goto_if_false @MAIN_4795
stream_script 3
if 
  has_streamed_script_loaded 3
goto_if_false @MAIN_4795
start_new_streamed_script 3
$bcesar3_mission_flag = 1

:MAIN_4795
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 3
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4957
if 
  $bcesar2_mission_flag == 0
goto_if_false @MAIN_4957
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 2
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4957
$weekday = get_current_day_of_week 
$hours, $minutes = get_time_of_day 
if or
  $weekday == 2
  $weekday == 6
goto_if_false @MAIN_4957
if and
  $hours >= 5
  17 > $hours
goto_if_false @MAIN_4957
stream_script 2
if 
  has_streamed_script_loaded 2
goto_if_false @MAIN_4957
start_new_streamed_script 2
$bcesar2_mission_flag = 1

:MAIN_4957
$weekday = get_current_day_of_week 
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @MAIN_5022
$bcesar2_mission_flag = 0
$bcesar3_mission_flag = 0
$courier_timer = 0
goto @MAIN_5029

:MAIN_5022
$courier_timer += 1

:MAIN_5029
if and
  $lowrider_minigame_unlocked == 1
  $onmission == 0
goto_if_false @MAIN_5250
if 
  $lowrider_mission_flag == 0
goto_if_false @MAIN_5189
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 22
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5182
if 
  is_player_playing $player1
goto_if_false @MAIN_5182
if 
  locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MAIN_5182
stream_script 22
if 
  has_streamed_script_loaded 22
goto_if_false @MAIN_5182
start_new_streamed_script 22
$lowrider_mission_flag = 1

:MAIN_5182
goto @MAIN_5250

:MAIN_5189
if 
  is_player_playing $player1
goto_if_false @MAIN_5250
if 
  not locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @MAIN_5250
$lowrider_mission_flag = 0

:MAIN_5250
switch_start $load_and_launch_mission_if_poss {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MAIN_5545 {caseNum1} 0 {caseLabel1} @MAIN_5378 {caseNum2} 1 {caseLabel2} @MAIN_5396 {caseNum3} 2 {caseLabel3} @MAIN_5414 {caseNum4} 3 {caseLabel4} @MAIN_5432 {caseNum5} 4 {caseLabel5} @MAIN_5450 {caseNum6} 5 {caseLabel6} @MAIN_5468 {caseNum7} 6 {caseLabel7} @MAIN_5486
switch_continued 7 {caseLabel1} @MAIN_5504 {caseNum2} -1 {caseLabel2} @MAIN_5545 {caseNum3} -1 {caseLabel3} @MAIN_5545 {caseNum4} -1 {caseLabel4} @MAIN_5545 {caseNum5} -1 {caseLabel5} @MAIN_5545 {caseNum6} -1 {caseLabel6} @MAIN_5545 {caseNum7} -1 {caseLabel7} @MAIN_5545 {caseNum8} -1 {caseLabel8} @MAIN_5545 {caseNum9} -1 {caseLabel9} @MAIN_5545

:MAIN_5378
$onmission = 1
load_and_launch_mission_internal 3 // Video Game: They Crawled From Uranus
goto @MAIN_5545

:MAIN_5396
$onmission = 1
load_and_launch_mission_internal 4 // Video Game: Duality
goto @MAIN_5545

:MAIN_5414
$onmission = 1
load_and_launch_mission_internal 5 // Video Game: Go Go Space Monkey
goto @MAIN_5545

:MAIN_5432
$onmission = 1
load_and_launch_mission_internal 6 // Video Game: Let's Get Ready To Bumble
goto @MAIN_5545

:MAIN_5450
$onmission = 1
load_and_launch_mission_internal 7 // Video Game: Inside Track Betting
goto @MAIN_5545

:MAIN_5468
$onmission = 1
load_and_launch_mission_internal 8 // Pool
goto @MAIN_5545

:MAIN_5486
$onmission = 1
load_and_launch_mission_internal 9 // Lowrider (Bet And Dance)
goto @MAIN_5545

:MAIN_5504
$onmission = 1
print_big 'BEEFY' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 10 // Beefy Baron
goto @MAIN_5545

:MAIN_5545
goto @MAIN_5591

:MAIN_5552
if or
  $bcesar2_mission_flag == 1
  $bcesar3_mission_flag == 1
goto_if_false @MAIN_5584
$courier_timer = 0

:MAIN_5584
$load_and_launch_mission_if_poss = -1

:MAIN_5591
if 
  is_player_playing $player1
goto_if_false @MAIN_5865
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2037.536 {leftBottomY} 2365.373 {rightTopX} 2117.177 {rightTopY} 2483.9221 {drawSphere} False
goto_if_false @MAIN_5701
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 70
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5694
stream_script 70
if 
  has_streamed_script_loaded 70
goto_if_false @MAIN_5694
start_new_streamed_script 70

:MAIN_5694
goto @MAIN_5705

:MAIN_5701
mark_streamed_script_as_no_longer_needed 70

:MAIN_5705
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @MAIN_5865
if 
  locate_char_any_means_3d $scplayer {x} 658.0068 {y} -1866.313 {z} 4.4537 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MAIN_5840
if 
  $gym_at_beach == 0
goto_if_false @MAIN_5833
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @MAIN_5826
$gym_final_month = 0.0

:MAIN_5826
$gym_at_beach = 1

:MAIN_5833
goto @MAIN_5865

:MAIN_5840
if 
  $gym_at_beach == 1
goto_if_false @MAIN_5865
$gym_at_beach = 0

:MAIN_5865
goto @MAIN_4132

:INT
script_name 'INT'

:INT_11
wait $mission_trigger_wait_time
if 
  $flag_intro_mission_counter == 2
goto_if_false @INT_36
terminate_this_script 

:INT_36
if 
  is_player_playing $player1
goto_if_false @INT_292
if 
  $onmission == 0
goto_if_false @INT_292
if 
  locate_char_on_foot_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @INT_182
if 
  can_player_start_mission $player1
goto_if_false @INT_182
if 
  $flag_intro_mission_counter == 0
goto_if_false @INT_182
$onmission = 1
print_big 'INTRO_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1140
clear_help 
load_and_launch_mission_internal 11 // Big Smoke

:INT_182
if 
  locate_char_on_foot_3d $scplayer {x} $ryderX {y} $ryderY {z} $ryderZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @INT_292
if 
  can_player_start_mission $player1
goto_if_false @INT_292
if 
  $flag_intro_mission_counter == 1
goto_if_false @INT_292
$onmission = 1
print_big 'INTRO_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 12 // Ryder

:INT_292
goto @INT_11

:SWEET
script_name 'SWEET'

:SWEET_11
wait $mission_trigger_wait_time
if 
  $flag_sweet_mission_counter == 9
goto_if_false @SWEET_36
terminate_this_script 

:SWEET_36
if 
  is_player_playing $player1
goto_if_false @SWEET_807
if 
  $onmission == 0
goto_if_false @SWEET_807
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET_684
if 
  can_player_start_mission $player1
goto_if_false @SWEET_684
if 
  $flag_sweet_mission_counter == 0
goto_if_false @SWEET_180
$onmission = 1
print_big 'SWEET_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 13 // Tagging Up Turf

:SWEET_180
if 
  $flag_sweet_mission_counter == 1
goto_if_false @SWEET_232
$onmission = 1
print_big 'SWEET1B' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 14 // Cleaning The Hood

:SWEET_232
if 
  $flag_sweet_mission_counter == 2
goto_if_false @SWEET_284
$onmission = 1
print_big 'SWEET_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 15 // Drive-Thru

:SWEET_284
if 
  $flag_sweet_mission_counter == 3
goto_if_false @SWEET_336
$onmission = 1
print_big 'SWEET_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 16 // Nines And AK's

:SWEET_336
if 
  $flag_sweet_mission_counter == 4
goto_if_false @SWEET_388
$onmission = 1
print_big 'SWEET_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 17 // Drive-By

:SWEET_388
if 
  $flag_sweet_mission_counter == 5
goto_if_false @SWEET_440
$onmission = 1
print_big 'SWEET_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 18 // Sweet's Girl

:SWEET_440
if 
  $flag_sweet_mission_counter == 6
goto_if_false @SWEET_492
$onmission = 1
print_big 'SWEET_6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 19 // Cesar Vialpando

:SWEET_492
if 
  $flag_sweet_mission_counter == 8
goto_if_false @SWEET_684
$returned_respect = find_max_number_of_group_members 
if 
  $returned_respect > 1
goto_if_false @SWEET_632
$hours, $minutes = get_time_of_day 
if and
  $hours >= 9
  17 > $hours
goto_if_false @SWEET_609
clear_prints 
$onmission = 1
print_big 'SWEET_7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 20 // Los Sepulcros
goto @SWEET_625

:SWEET_609
print_now 'MTIME3' {time} 1000 {flag} 1

:SWEET_625
goto @SWEET_684

:SWEET_632
print_now 'MOREREP' {time} 1000 {flag} 1
if 
  $respect_help_played == 0
goto_if_false @SWEET_684
print_help 'HELP101'
$respect_help_played = 1

:SWEET_684
if 
  locate_char_on_foot_3d $scplayer {x} 1365.251 {y} -1280.12 {z} 12.5469 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET_807
if 
  can_player_start_mission $player1
goto_if_false @SWEET_807
if and
  $flag_sweet_mission_counter == 7
  $1346 == 1
goto_if_false @SWEET_807
$onmission = 1
print_big 'CRASH_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 21 // Doberman

:SWEET_807
goto @SWEET_11

:CRASH
script_name 'CRASH'

:CRASH_11
wait $mission_trigger_wait_time
if 
  $flag_crash_mission_counter == 2
goto_if_false @CRASH_36
terminate_this_script 

:CRASH_36
if 
  is_player_playing $player1
goto_if_false @CRASH_232
if 
  $onmission == 0
goto_if_false @CRASH_232
if 
  locate_char_on_foot_3d $scplayer {x} $crashX {y} $crashY {z} $crashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CRASH_232
if 
  can_player_start_mission $player1
goto_if_false @CRASH_232
if 
  $flag_crash_mission_counter == 0
goto_if_false @CRASH_180
$onmission = 1
print_big 'CRASH_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1836
load_and_launch_mission_internal 22 // Burning Desire

:CRASH_180
if 
  $flag_crash_mission_counter == 1
goto_if_false @CRASH_232
$onmission = 1
print_big 'CRASH_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1836
load_and_launch_mission_internal 23 // Gray Imports

:CRASH_232
goto @CRASH_11

:RYDER
script_name 'RYDER'

:RYDER_11
wait $mission_trigger_wait_time
if 
  $flag_ryder_mission_counter == 3
goto_if_false @RYDER_36
terminate_this_script 

:RYDER_36
if 
  is_player_playing $player1
goto_if_false @RYDER_342
if 
  $onmission == 0
goto_if_false @RYDER_342
if 
  locate_char_on_foot_3d $scplayer {x} $ryderX {y} $ryderY {z} $ryderZ {xRadius} 1.6 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER_342
if 
  can_player_start_mission $player1
goto_if_false @RYDER_342
if 
  $flag_ryder_mission_counter == 0
goto_if_false @RYDER_238
$hours, $minutes = get_time_of_day 
if and
  $hours >= 12
  20 > $hours
goto_if_false @RYDER_222
clear_prints 
$onmission = 1
print_big 'RYDER_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 24 // Home Invasion
goto @RYDER_238

:RYDER_222
print_now 'MTIME6' {time} 1000 {flag} 1

:RYDER_238
if 
  $flag_ryder_mission_counter == 1
goto_if_false @RYDER_290
$onmission = 1
print_big 'RYDER_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 25 // Catalyst

:RYDER_290
if 
  $flag_ryder_mission_counter == 2
goto_if_false @RYDER_342
$onmission = 1
print_big 'RYDER_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 26 // Robbing Uncle Sam

:RYDER_342
goto @RYDER_11

:SMOKE
script_name 'SMOKE'

:SMOKE_11
wait $mission_trigger_wait_time
if 
  $flag_smoke_mission_counter == 4
goto_if_false @SMOKE_36
terminate_this_script 

:SMOKE_36
if 
  is_player_playing $player1
goto_if_false @SMOKE_336
if 
  $onmission == 0
goto_if_false @SMOKE_336
if 
  locate_char_on_foot_3d $scplayer {x} $smokeX {y} $smokeY {z} $smokeZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE_336
if 
  can_player_start_mission $player1
goto_if_false @SMOKE_336
if 
  $flag_smoke_mission_counter == 0
goto_if_false @SMOKE_180
$onmission = 1
print_big 'SMOKE_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 27 // OG Loc

:SMOKE_180
if 
  $flag_smoke_mission_counter == 1
goto_if_false @SMOKE_232
$onmission = 1
print_big 'SMOKE_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 28 // Running Dog

:SMOKE_232
if 
  $flag_smoke_mission_counter == 2
goto_if_false @SMOKE_284
$onmission = 1
print_big 'SMOKE_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 29 // Wrong Side of the Tracks

:SMOKE_284
if 
  $flag_smoke_mission_counter == 3
goto_if_false @SMOKE_336
$onmission = 1
print_big 'SMOKE_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 30 // Just Business

:SMOKE_336
goto @SMOKE_11

:STRAP
script_name 'STRAP'

:STRAP_11
wait $mission_trigger_wait_time
if 
  $flag_strap_mission_counter == 5
goto_if_false @STRAP_36
terminate_this_script 

:STRAP_36
if 
  is_player_playing $player1
goto_if_false @STRAP_620
if 
  $onmission == 0
goto_if_false @STRAP_620
if 
  locate_char_on_foot_3d $scplayer {x} $strapX {y} $strapY {z} $strapZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STRAP_452
if 
  can_player_start_mission $player1
goto_if_false @STRAP_452
if 
  $flag_strap_mission_counter == 0
goto_if_false @STRAP_238
$hours, $minutes = get_time_of_day 
if or
  $hours >= 22
  6 > $hours
goto_if_false @STRAP_222
clear_prints 
$onmission = 1
print_big 'STRAP_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 31 // Life's a Beach
goto @STRAP_238

:STRAP_222
print_now 'MTIME5' {time} 1000 {flag} 1

:STRAP_238
if 
  $flag_strap_mission_counter == 1
goto_if_false @STRAP_290
$onmission = 1
print_big 'STRAP_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 32 // Madd Dogg's Rhymes

:STRAP_290
if 
  $flag_strap_mission_counter == 2
goto_if_false @STRAP_400
$hours, $minutes = get_time_of_day 
if or
  $hours >= 12
  5 > $hours
goto_if_false @STRAP_384
clear_prints 
$onmission = 1
print_big 'STRAP_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 33 // Management Issues
goto @STRAP_400

:STRAP_384
print_now 'MTIME2' {time} 1000 {flag} 1

:STRAP_400
if 
  $flag_strap_mission_counter == 3
goto_if_false @STRAP_452
$onmission = 1
gosub @PSAVE1_2014
print_big 'STRAP_4' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 34 // House Party

:STRAP_452
if 
  locate_char_on_foot_3d $scplayer {x} $strap2X {y} $strap2Y {z} $strap2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STRAP_620
if 
  can_player_start_mission $player1
goto_if_false @STRAP_620
if 
  $flag_strap_mission_counter == 4
goto_if_false @STRAP_620
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @STRAP_604
clear_prints 
$onmission = 1
print_big 'STRAP_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2174
load_and_launch_mission_internal 34 // House Party
goto @STRAP_620

:STRAP_604
print_now 'MTIME1' {time} 1000 {flag} 1

:STRAP_620
goto @STRAP_11

:CESAR
script_name 'CESAR'

:CESAR_11
wait 0
if 
  $flag_cesar_mission_counter == 1
goto_if_false @CESAR_35
terminate_this_script 

:CESAR_35
if 
  is_player_playing $player1
goto_if_false @CESAR_344
if 
  $onmission == 0
goto_if_false @CESAR_130
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_130
if 
  $cs1_race_is_go == 1
goto_if_false @CESAR_130
set_var_int_to_constant $race_selection = 0
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$cs1_race_is_go = 2

:CESAR_130
if 
  $onmission == 0
goto_if_false @CESAR_344
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_344
if 
  locate_char_any_means_3d $scplayer {x} $cesarX {y} $cesarY {z} $cesarZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CESAR_344
if 
  is_char_in_any_car $scplayer
goto_if_false @CESAR_328
$cs1_player_car = store_car_char_is_in_no_save $scplayer
if 
  is_car_low_rider $cs1_player_car
goto_if_false @CESAR_305
if 
  can_player_start_mission $player1
goto_if_false @CESAR_298
$onmission = 1
print_big 'CESAR_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2334
load_and_launch_mission_internal 36 // Lowrider (High Stakes)

:CESAR_298
goto @CESAR_321

:CESAR_305
print_now 'CES_CK1' {time} 1000 {flag} 1

:CESAR_321
goto @CESAR_344

:CESAR_328
print_now 'CES_CK1' {time} 1000 {flag} 1

:CESAR_344
goto @CESAR_11

:LA1FIN
script_name 'LA1FIN'

:LA1FIN_11
wait $mission_trigger_wait_time
if 
  $flag_la1fin1_mission_counter == 2
goto_if_false @LA1FIN_36
terminate_this_script 

:LA1FIN_36
if 
  is_player_playing $player1
goto_if_false @LA1FIN_340
if 
  $onmission == 0
goto_if_false @LA1FIN_340
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @LA1FIN_340
if 
  $flag_sweet_mission_counter == 9
goto_if_false @LA1FIN_340
if 
  $flag_smoke_mission_counter == 4
goto_if_false @LA1FIN_340
if 
  $flag_strap_mission_counter == 5
goto_if_false @LA1FIN_340
if 
  $flag_ryder_mission_counter == 3
goto_if_false @LA1FIN_340
if 
  $flag_crash_mission_counter == 2
goto_if_false @LA1FIN_340
if 
  $flag_cesar_mission_counter == 1
goto_if_false @LA1FIN_340
if 
  can_player_start_mission $player1
goto_if_false @LA1FIN_340
if 
  $flag_la1fin1_mission_counter == 0
goto_if_false @LA1FIN_288
$onmission = 1
print_big 'LA1FIN1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 37 // Reuniting The Families

:LA1FIN_288
if 
  $flag_la1fin1_mission_counter == 1
goto_if_false @LA1FIN_340
$onmission = 1
print_big 'LA1FIN2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 38 // The Green Sabre

:LA1FIN_340
goto @LA1FIN_11

:BCRASH
script_name 'BCRASH'

:BCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_bcrash_mission_counter == 1
goto_if_false @BCRASH_36
terminate_this_script 

:BCRASH_36
if 
  is_player_playing $player1
goto_if_false @BCRASH_180
if 
  $onmission == 0
goto_if_false @BCRASH_180
if 
  locate_char_on_foot_3d $scplayer {x} $bcrashX {y} $bcrashY {z} $bcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @BCRASH_180
if 
  can_player_start_mission $player1
goto_if_false @BCRASH_180
if 
  $flag_bcrash_mission_counter == 0
goto_if_false @BCRASH_180
$onmission = 1
print_big 'BCRASH1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 39 // Badlands

:BCRASH_180
goto @BCRASH_11

:CAT
$load_and_launch_catalina_mission = -1
script_name 'CAT'

:CAT_18
wait 0
if 
  is_player_playing $player1
goto_if_false @CAT_634
if 
  $onmission == 0
goto_if_false @CAT_419
if 
  can_player_start_mission $player1
goto_if_false @CAT_412
if 
  $cat_counter == 0
goto_if_false @CAT_164
if 
  locate_char_on_foot_3d $scplayer {x} $511 {y} $517 {z} $523 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_157
$onmission = 1
gosub @CAT_641
gosub @CAT_779
load_and_launch_mission_internal 40 // First Date

:CAT_157
goto @CAT_249

:CAT_164
if 
  $flag_trailor_cutscene == 1
goto_if_false @CAT_249
if 
  locate_char_on_foot_3d $scplayer {x} $catX {y} $catY {z} $catZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_249
$onmission = 1
gosub @CAT_641
gosub @CAT_922
load_and_launch_mission_internal 40 // First Date

:CAT_249
switch_start $load_and_launch_catalina_mission {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT_412 {caseNum1} 0 {caseLabel1} @CAT_312 {caseNum2} 1 {caseLabel2} @CAT_337 {caseNum3} 2 {caseLabel3} @CAT_362 {caseNum4} 3 {caseLabel4} @CAT_387 {caseNum5} -1 {caseLabel5} @CAT_412 {caseNum6} -1 {caseLabel6} @CAT_412 {caseNum7} -1 {caseLabel7} @CAT_412

:CAT_312
$onmission = 1
load_and_launch_mission_internal 41 // Local Liquor Store
goto @CAT_18
goto @CAT_412

:CAT_337
$onmission = 1
load_and_launch_mission_internal 42 // Small Town Bank
goto @CAT_18
goto @CAT_412

:CAT_362
$onmission = 1
load_and_launch_mission_internal 43 // Tanker Commander
goto @CAT_18
goto @CAT_412

:CAT_387
$onmission = 1
load_and_launch_mission_internal 44 // Against All Odds
goto @CAT_18
goto @CAT_412

:CAT_412
goto @CAT_426

:CAT_419
$load_and_launch_catalina_mission = -1

:CAT_426
if 
  $flag_trigger_trailor_cut == 0
goto_if_false @CAT_474
if 
  $cat_counter == 1
goto_if_false @CAT_474
remove_blip $cat_contact_blip
$flag_trigger_trailor_cut = 1

:CAT_474
if 
  $flag_trigger_trailor_cut == 1
goto_if_false @CAT_609
if 
  $flag_truth_mission_counter == 1
goto_if_false @CAT_609
if 
  locate_char_on_foot_3d $scplayer {x} $bcrashX {y} $bcrashY {z} $bcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_609
if 
  can_player_start_mission $player1
goto_if_false @CAT_609
$onmission = 1
print_big 'TRAILER' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 45 // King in Exile
$flag_trigger_trailor_cut = 2

:CAT_609
if 
  $cat_counter > 3
goto_if_false @CAT_634
remove_blip $cat_contact_blip
terminate_this_script 

:CAT_634
goto @CAT_18

:CAT_641
if 
  $cat_counter == 0
goto_if_false @CAT_675
print_big 'CATCUT1' {time} 1000 {style} TextStyle.BottomRight

:CAT_675
if 
  $cat_counter == 1
goto_if_false @CAT_709
print_big 'CATCUT2' {time} 1000 {style} TextStyle.BottomRight

:CAT_709
if 
  $cat_counter == 2
goto_if_false @CAT_743
print_big 'CATCUT3' {time} 1000 {style} TextStyle.BottomRight

:CAT_743
if 
  $cat_counter == 3
goto_if_false @CAT_777
print_big 'CATCUT4' {time} 1000 {style} TextStyle.BottomRight

:CAT_777
return 

:CAT_779
if 
  is_player_playing $player1
goto_if_false @CAT_920
$onmission = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 664.9277 {y} -479.6112 {z} 16.1668 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 665.8948 {y} -479.5685 {z} 16.4175 {switchStyle} SwitchType.JumpCut
clear_area 681.8004 {y} -474.1063 {z} 15.5363 {radius} 3.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 681.8004 {y} -474.1063 {z} 15.5363 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:CAT_920
return 

:CAT_922
if 
  is_player_playing $player1
goto_if_false @CAT_1063
$onmission = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 856.9968 {y} -27.9584 {z} 63.7393 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 857.9943 {y} -28.0286 {z} 63.7295 {switchStyle} SwitchType.JumpCut
clear_area 870.1503 {y} -25.3395 {z} 62.9589 {radius} 3.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 870.1503 {y} -25.3395 {z} 62.9589 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:CAT_1063
return 

:TRU
script_name 'TRU'

:TRU_11
wait $mission_trigger_wait_time
if 
  $flag_truth_mission_counter == 2
goto_if_false @TRU_36
terminate_this_script 

:TRU_36
if 
  is_player_playing $player1
goto_if_false @TRU_281
if 
  $onmission == 0
goto_if_false @TRU_281
if 
  can_player_start_mission $player1
goto_if_false @TRU_281
if 
  $flag_truth_mission_counter == 0
goto_if_false @TRU_180
if 
  locate_char_on_foot_3d $scplayer {x} $truth2X {y} $truth2Y {z} $truth2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRU_180
$onmission = 1
print_big 'TRUTH_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2445
load_and_launch_mission_internal 46 // Body Harvest

:TRU_180
if and
  $flag_truth_mission_counter == 1
  $flag_bcesar_mission_counter > 9
goto_if_false @TRU_281
if 
  locate_char_on_foot_3d $scplayer {x} $truthX {y} $truthY {z} $truthZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRU_281
$onmission = 1
print_big 'TRUTH_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2605
load_and_launch_mission_internal 47 // Are you going to San Fierro?

:TRU_281
goto @TRU_11

:BCESAR
script_name 'BCESAR'

:BCESAR_11
wait 0
if 
  $flag_bcesar_mission_counter == 10
goto_if_false @BCESAR_42
set_int_stat StatId.PassedBcesar4 {value} 1
terminate_this_script 

:BCESAR_42
if 
  is_player_playing $player1
goto_if_false @BCESAR_880
if 
  $onmission == 0
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR_116
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_116
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_116
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR_382
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_382
if 
  locate_char_any_means_3d $scplayer {x} $bcesarX {y} $bcesarY {z} $bcesarZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCESAR_382
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR_366
if 
  can_player_start_mission $player1
goto_if_false @BCESAR_359
$car = get_car_char_is_using $scplayer
$car_class = get_vehicle_class $car
if or
  is_int_var_equal_to_constant $car_class == 0
  is_int_var_equal_to_constant $car_class == 1
  is_int_var_equal_to_constant $car_class == 2
  is_int_var_equal_to_constant $car_class == 3
  is_int_var_equal_to_constant $car_class == 4
  is_int_var_equal_to_constant $car_class == 6
goto_if_false @BCESAR_343
$flag_bcesar_mission_counter = 0
$onmission = 1
print_big 'BCESAR4' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...
goto @BCESAR_359

:BCESAR_343
print_now 'BC4_7' {time} 1000 {flag} 1

:BCESAR_359
goto @BCESAR_382

:BCESAR_366
print_now 'BC4_2' {time} 1000 {flag} 1

:BCESAR_382
if 
  $flag_bcesar_mission_counter == 3
goto_if_false @BCESAR_425
$flag_bcesar_mission_counter = 4
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_425
if and
  $flag_stage_of_bcesar_race == 1
  4 > $cat_counter
goto_if_false @BCESAR_479
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
$flag_stage_of_bcesar_race = 0

:BCESAR_479
if 
  $cat_counter > 3
goto_if_false @BCESAR_695
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_652
if or
  $flag_bcesar_mission_counter == 5
  $flag_bcesar_mission_counter == 6
  $flag_bcesar_mission_counter == 7
goto_if_false @BCESAR_652
if 
  locate_char_any_means_3d $scplayer {x} -513.9356 {y} -188.314 {z} 77.4599 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @BCESAR_652
if 
  can_player_start_mission $player1
goto_if_false @BCESAR_652
$flag_bcesar_mission_counter = 5
$onmission = 1
print_big 'BCES4_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_652
if 
  $flag_bcesar_mission_counter == 8
goto_if_false @BCESAR_695
$flag_bcesar_mission_counter = 9
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_695
if and
  $cat_counter == 4
  $flag_bcesar_mission_counter > 4
goto_if_false @BCESAR_755
remove_blip $bcesar_contact_blip
$bcesar_contact_blip = add_sprite_blip_for_contact_point -513.9356 {y} -188.314 {z} 77.4599 {sprite} $cesar_blip_icon
$cat_counter = 5

:BCESAR_755
if 
  $start_the_bcesar_race == 1
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR_823
$flag_bcesar_mission_counter = 2
set_var_int_to_constant $race_selection = 7
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_823
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR_880
$flag_bcesar_mission_counter = 7
set_var_int_to_constant $race_selection = 8
$show_race_selection = 0
set_int_stat StatId.StartedCrash1 {value} 1
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_880
goto @BCESAR_11

:GARAGE
script_name 'GARAGE'

:GARAGE_11
wait $mission_trigger_wait_time
if 
  $flag_garage_mission_counter == 2
goto_if_false @GARAGE_36
terminate_this_script 

:GARAGE_36
if 
  is_player_playing $player1
goto_if_false @GARAGE_250
if 
  $onmission == 0
goto_if_false @GARAGE_250
if 
  locate_char_on_foot_3d $scplayer {x} $garageX {y} $garageY {z} $garageZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GARAGE_250
if 
  can_player_start_mission $player1
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 0
goto_if_false @GARAGE_180
$onmission = 1
print_big 'GAR_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 49 // Wear Flowers In Your Hair

:GARAGE_180
if 
  $flag_scrash_mission_counter == 1
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 1
goto_if_false @GARAGE_250
$onmission = 1
print_big 'GAR_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 50 // Deconstruction

:GARAGE_250
goto @GARAGE_11

:SCRASH
script_name 'SCRASH'

:SCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_scrash_mission_counter == 2
goto_if_false @SCRASH_36
terminate_this_script 

:SCRASH_36
if 
  is_player_playing $player1
goto_if_false @SCRASH_239
if 
  $onmission == 0
goto_if_false @SCRASH_239
if 
  locate_char_on_foot_3d $scplayer {x} $scrashX {y} $scrashY {z} $scrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH_239
if 
  can_player_start_mission $player1
goto_if_false @SCRASH_239
if 
  $flag_scrash_mission_counter == 0
goto_if_false @SCRASH_180
$onmission = 1
print_big 'SCRA_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 51 // 555 WE TIP

:SCRASH_180
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @SCRASH_239
$onmission = 1
print_big 'SCRA_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 52 // Snail Trail

:SCRASH_239
goto @SCRASH_11

:WUZI
script_name 'WUZI'

:WUZI_11
wait $mission_trigger_wait_time
if 
  $flag_wuzi_mission_counter == 5
goto_if_false @WUZI_36
terminate_this_script 

:WUZI_36
if 
  is_player_playing $player1
goto_if_false @WUZI_515
if 
  $onmission == 0
goto_if_false @WUZI_515
if 
  locate_char_on_foot_3d $scplayer {x} $wuziX {y} $wuziY {z} $wuziZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @WUZI_515
if 
  can_player_start_mission $player1
goto_if_false @WUZI_515
if 
  $flag_wuzi_mission_counter == 0
goto_if_false @WUZI_180
$onmission = 1
print_big 'WUZI_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 53 // Mountain Cloud Boys

:WUZI_180
if 
  $flag_wuzi_mission_counter == 1
goto_if_false @WUZI_232
$onmission = 1
print_big 'FAR_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 54 // Ran Fa Li

:WUZI_232
if 
  $flag_wuzi_mission_counter == 2
goto_if_false @WUZI_284
$onmission = 1
print_big 'FAR_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 55 // Lure

:WUZI_284
if 
  $flag_wuzi_mission_counter == 3
goto_if_false @WUZI_463
$swim_stamina_check_main = get_int_stat StatId.UnderwaterBreathStamina
if 
  $swim_stamina_check_main > 50
goto_if_false @WUZI_427
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @WUZI_404
clear_prints 
$onmission = 1
print_big 'WUZI_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 56 // Amphibious Assault
goto @WUZI_420

:WUZI_404
print_now 'MTIME1' {time} 1000 {flag} 1

:WUZI_420
goto @WUZI_463

:WUZI_427
clear_prints 
$onmission = 1
print_big 'WUZI_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 56 // Amphibious Assault

:WUZI_463
if 
  $flag_wuzi_mission_counter == 4
goto_if_false @WUZI_515
$onmission = 1
print_big 'WUZI_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 57 // The Da Nang Thang

:WUZI_515
goto @WUZI_11

:SYND
script_name 'SYND'

:SYND_11
wait $mission_trigger_wait_time
if 
  $flag_synd_mission_counter == 10
goto_if_false @SYND_36
terminate_this_script 

:SYND_36
if 
  is_player_playing $player1
goto_if_false @SYND_874
if 
  $onmission == 0
goto_if_false @SYND_874
if 
  locate_char_on_foot_3d $scplayer {x} $garageX {y} $garageY {z} $garageZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYND_512
if 
  can_player_start_mission $player1
goto_if_false @SYND_512
if 
  $flag_synd_mission_counter == 0
goto_if_false @SYND_180
$onmission = 1
print_big 'SYND_1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 58 // Photo Opportunity

:SYND_180
if 
  $flag_synd_mission_counter == 1
goto_if_false @SYND_232
$onmission = 1
print_big 'SYND_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 59 // Jizzy

:SYND_232
if 
  $flag_synd_mission_counter == 5
goto_if_false @SYND_284
$onmission = 1
print_big 'SYND_3' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 60 // Outrider

:SYND_284
if and
  $flag_synd_mission_counter == 6
  $flag_scrash_mission_counter == 2
goto_if_false @SYND_401
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @SYND_385
$onmission = 1
clear_prints 
print_big 'SYND_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 61 // Ice Cold Killa
goto @SYND_401

:SYND_385
print_now 'MTIME1' {time} 1000 {flag} 1

:SYND_401
if 
  $flag_synd_mission_counter == 8
goto_if_false @SYND_453
$onmission = 1
print_big 'SYND_6' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 62 // Toreno's Last Flight

:SYND_453
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @SYND_512
$onmission = 1
print_big 'SYND_7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 63 // Yay Ka-Boom-Boom

:SYND_512
if 
  is_player_playing $player1
goto_if_false @SYND_644
if 
  $flag_synd_mission_counter == 7
goto_if_false @SYND_644
if 
  locate_char_on_foot_3d $scplayer {x} -1717.05 {y} 1280.91 {z} 6.23 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.5 {drawSphere} False
goto_if_false @SYND_644
if 
  can_player_start_mission $player1
goto_if_false @SYND_644
$onmission = 1
print_big 'SYND_5' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 64 // Pier 69

:SYND_644
if 
  is_player_playing $player1
goto_if_false @SYND_874
if 
  locate_char_on_foot_3d $scplayer {x} $syndX {y} $syndY {z} $syndZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.5 {drawSphere} False
goto_if_false @SYND_874
if 
  can_player_start_mission $player1
goto_if_false @SYND_874
if 
  $flag_synd_mission_counter == 2
goto_if_false @SYND_770
$onmission = 1
print_big 'SYND_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 59 // Jizzy

:SYND_770
if 
  $flag_synd_mission_counter == 3
goto_if_false @SYND_822
$onmission = 1
print_big 'FAR_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 65 // T-Bone Mendez

:SYND_822
if 
  $flag_synd_mission_counter == 4
goto_if_false @SYND_874
$onmission = 1
print_big 'FAR_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 66 // Mike Toreno

:SYND_874
goto @SYND_11

:STEAL
script_name 'STEAL'

:STEAL_11
wait $mission_trigger_wait_time
if 
  $flag_steal_mission_counter == 4
goto_if_false @STEAL_36
terminate_this_script 

:STEAL_36
if 
  is_player_playing $player1
goto_if_false @STEAL_336
if 
  $onmission == 0
goto_if_false @STEAL_336
if 
  locate_char_on_foot_3d $scplayer {x} $stealX {y} $stealY {z} $stealZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STEAL_336
if 
  can_player_start_mission $player1
goto_if_false @STEAL_336
if 
  $flag_steal_mission_counter == 0
goto_if_false @STEAL_180
$onmission = 1
print_big 'STEAL_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 67 // Zeroing In

:STEAL_180
if 
  $flag_steal_mission_counter == 1
goto_if_false @STEAL_232
$onmission = 1
print_big 'STEAL_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 68 // Test Drive

:STEAL_232
if 
  $flag_steal_mission_counter == 2
goto_if_false @STEAL_284
$onmission = 1
print_big 'STEAL_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 69 // Customs Fast Track

:STEAL_284
if 
  $flag_steal_mission_counter == 3
goto_if_false @STEAL_336
$onmission = 1
print_big 'STEAL_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 70 // Puncture Wounds

:STEAL_336
goto @STEAL_11

:TRACE
script_name 'TRACE'

:TRACE_11
wait 0
if 
  is_player_playing $player1
goto_if_false @TRACE_805
if 
  $onmission == 0
goto_if_false @TRACE_805
if 
  locate_char_on_foot_3d $scplayer {x} $testsX {y} $testsY {z} $testsZ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @TRACE_395
$main_visible_area = get_area_visible 
if 
  $main_visible_area <> 0
goto_if_false @TRACE_395
if 
  $f1_dbp == 0
goto_if_false @TRACE_270
if 
  locate_char_on_foot_3d $scplayer {x} -2031.4 {y} -116.5 {z} 1034.1 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRACE_263
if 
  can_player_start_mission $player1
goto_if_false @TRACE_263
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_263
$onmission = 1
set_fading_colour 0 {g} 0 {b} 0
print_big 'FAR_1' {time} 1000 {style} TextStyle.BottomRight
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 71 // Back to School

:TRACE_263
goto @TRACE_395

:TRACE_270
if 
  locate_char_on_foot_3d $scplayer {x} $testsX {y} $testsY {z} $testsZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRACE_395
if 
  can_player_start_mission $player1
goto_if_false @TRACE_395
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_395
$onmission = 1
set_fading_colour 0 {g} 0 {b} 0
print_big 'FAR_1' {time} 1000 {style} TextStyle.BottomRight
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 71 // Back to School

:TRACE_395
if 
  is_player_playing $player1
goto_if_false @TRACE_805
if 
  can_player_start_mission $player1
goto_if_false @TRACE_805
if 
  $1398 == 1
goto_if_false @TRACE_805
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[0] {y} $traceY[0] {z} $traceZ[0] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_535
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_535
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[1] {y} $traceY[1] {z} $traceZ[1] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_625
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 1
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_625
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[2] {y} $traceY[2] {z} $traceZ[2] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_715
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 2
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_715
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[3] {y} $traceY[3] {z} $traceZ[3] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_805
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 3
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_805
goto @TRACE_11

:ZERO
script_name 'ZERO'

:ZERO_11
wait $mission_trigger_wait_time
if 
  $flag_zero_mission_counter == 3
goto_if_false @ZERO_36
terminate_this_script 

:ZERO_36
if 
  is_player_playing $player1
goto_if_false @ZERO_284
if 
  $onmission == 0
goto_if_false @ZERO_284
if 
  locate_char_on_foot_3d $scplayer {x} $zeroX {y} $zeroY {z} $zeroZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO_284
if 
  can_player_start_mission $player1
goto_if_false @ZERO_284
if 
  $flag_zero_mission_counter == 0
goto_if_false @ZERO_180
$onmission = 1
print_big 'ZERO_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 72 // Air Raid

:ZERO_180
if 
  $flag_zero_mission_counter == 1
goto_if_false @ZERO_232
$onmission = 1
print_big 'ZERO_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 73 // Supply Lines...

:ZERO_232
if 
  $flag_zero_mission_counter == 2
goto_if_false @ZERO_284
$onmission = 1
print_big 'ZERO_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 74 // New Model Army

:ZERO_284
goto @ZERO_11

:DESERT
script_name 'DESERT'

:DESERT_11
wait $mission_trigger_wait_time
if 
  $flag_desert_mission_counter == 9
goto_if_false @DESERT_36
terminate_this_script 

:DESERT_36
if 
  is_player_playing $player1
goto_if_false @DESERT_721
if 
  $onmission == 0
goto_if_false @DESERT_721
if 
  locate_char_on_foot_3d $scplayer {x} $desertX {y} $desertY {z} $desertZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DESERT_372
if 
  can_player_start_mission $player1
goto_if_false @DESERT_372
if 
  $flag_desert_mission_counter == 0
goto_if_false @DESERT_180
$onmission = 1
print_big 'DESERT1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 75 // Monster

:DESERT_180
if 
  $1400 == 1
goto_if_false @DESERT_250
if 
  $flag_desert_mission_counter == 1
goto_if_false @DESERT_250
$onmission = 1
print_big 'DESERT2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 76 // Highjack

:DESERT_250
if 
  $1402 == 1
goto_if_false @DESERT_320
if 
  $flag_desert_mission_counter == 2
goto_if_false @DESERT_320
$onmission = 1
print_big 'DESERT3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 77 // Interdiction

:DESERT_320
if 
  $flag_desert_mission_counter == 3
goto_if_false @DESERT_372
$onmission = 1
print_big 'DESERT4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 78 // Verdant Meadows

:DESERT_372
if 
  locate_char_on_foot_3d $scplayer {x} $desert2X {y} $desert2Y {z} $desert2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DESERT_721
if 
  can_player_start_mission $player1
goto_if_false @DESERT_721
if 
  $pilot_test_passed == 1
goto_if_false @DESERT_500
if 
  $flag_desert_mission_counter == 5
goto_if_false @DESERT_500
$onmission = 1
print_big 'DESERT6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 79 // N.O.E.

:DESERT_500
if 
  $flag_desert_mission_counter == 6
goto_if_false @DESERT_552
$onmission = 1
print_big 'DESERT9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 80 // Stowaway

:DESERT_552
if 
  $flag_desert_mission_counter == 7
goto_if_false @DESERT_662
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @DESERT_646
clear_prints 
$onmission = 1
print_big 'DESERT8' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 81 // Black Project
goto @DESERT_662

:DESERT_646
print_now 'MTIME1' {time} 1000 {flag} 1

:DESERT_662
if and
  $flag_desert_mission_counter == 8
  $1389 == 1
goto_if_false @DESERT_721
$onmission = 1
print_big 'DESER10' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 82 // Green Goo

:DESERT_721
goto @DESERT_11

:PSCH
script_name 'PSCH'

:PSCH_11
wait 0
if 
  is_player_playing $player1
goto_if_false @PSCH_239
if 
  $onmission == 0
goto_if_false @PSCH_239
if 
  locate_char_on_foot_3d $scplayer {x} $pilotx {y} $piloty {z} $pilotz {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @PSCH_239
if 
  can_player_start_mission $player1
goto_if_false @PSCH_239
if 
  $flag_desert_mission_counter > 3
goto_if_false @PSCH_239
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
if 
  $played_scipted_airscript_cut == 0
goto_if_false @PSCH_179
gosub @PSAVE1_4045
$played_scipted_airscript_cut = 1
goto @PSCH_235

:PSCH_179
set_fading_colour 0 {g} 0 {b} 0
if 
  $pilot_test_passed == 0
goto_if_false @PSCH_221
print_big 'DESERT5' {time} 1000 {style} TextStyle.BottomRight

:PSCH_221
set_player_control $player1 {state} False
gosub @LITCAS_267

:PSCH_235
load_and_launch_mission_internal 83 // Learning to Fly

:PSCH_239
goto @PSCH_11

:CASINO
script_name 'CASINO'

:CASINO_11
wait $mission_trigger_wait_time
if 
  $flag_casino_mission_counter == 9
goto_if_false @CASINO_36
terminate_this_script 

:CASINO_36
if 
  is_player_playing $player1
goto_if_false @CASINO_707
if 
  $onmission == 0
goto_if_false @CASINO_707
if 
  can_player_start_mission $player1
goto_if_false @CASINO_707
if 
  locate_char_on_foot_3d $scplayer {x} $casinoX {y} $casinoY {z} $casinoZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_336
if 
  $flag_casino_mission_counter == 0
goto_if_false @CASINO_180
$onmission = 1
print_big 'CASINO1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 84 // Fender Ketchup

:CASINO_180
if 
  $flag_casino_mission_counter == 1
goto_if_false @CASINO_232
$onmission = 1
print_big 'CASEEN2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 85 // Explosive Situation

:CASINO_232
if 
  $flag_casino_mission_counter == 2
goto_if_false @CASINO_284
$onmission = 1
print_big 'CASINO3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 86 // You've Had Your Chips

:CASINO_284
if 
  $flag_casino_mission_counter == 6
goto_if_false @CASINO_336
$onmission = 1
print_big 'CASINO7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 87 // Fish in a Barrel

:CASINO_336
if 
  locate_char_on_foot_3d $scplayer {x} 2026.603 {y} 1007.735 {z} 9.8127 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_436
if 
  $flag_casino_mission_counter == 3
goto_if_false @CASINO_436
$onmission = 1
print_big 'CASINO4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3565
load_and_launch_mission_internal 88 // Don Peyote

:CASINO_436
if 
  locate_char_on_foot_3d $scplayer {x} $heistX {y} $heistY {z} $heistZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_707
if and
  $flag_casino_mission_counter == 4
  $1380 == 1
goto_if_false @CASINO_537
$onmission = 1
print_big 'CASINO5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 89 // Intensive Care

:CASINO_537
if 
  $flag_casino_mission_counter == 5
goto_if_false @CASINO_589
$onmission = 1
print_big 'CASINO6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 90 // The Meat Business

:CASINO_589
if and
  $flag_casino_mission_counter == 7
  $1381 == 1
goto_if_false @CASINO_648
$onmission = 1
print_big 'CASINO9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 91 // Freefall

:CASINO_648
if and
  $flag_casino_mission_counter == 8
  $1382 == 1
goto_if_false @CASINO_707
$onmission = 1
print_big 'CASIN10' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 92 // Saint Mark's Bistro

:CASINO_707
goto @CASINO_11

:VCRASH
script_name 'VCRASH'

:VCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_vcrash_mission_counter == 2
goto_if_false @VCRASH_36
terminate_this_script 

:VCRASH_36
if 
  is_player_playing $player1
goto_if_false @VCRASH_287
if 
  $onmission == 0
goto_if_false @VCRASH_287
if 
  can_player_start_mission $player1
goto_if_false @VCRASH_287
if 
  locate_char_on_foot_3d $scplayer {x} $vcrashX {y} $vcrashY {z} $vcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH_180
if 
  $flag_vcrash_mission_counter == 0
goto_if_false @VCRASH_180
$onmission = 1
print_big 'VCRASH1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 93 // Misappropriation

:VCRASH_180
if and
  $flag_vcrash_mission_counter == 1
  $flag_mob_vegas == 1
goto_if_false @VCRASH_287
if 
  locate_char_on_foot_3d $scplayer {x} -378.75 {y} 2235.8501 {z} 41.42 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH_287
$onmission = 1
print_big 'VCRASH2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 94 // High Noon

:VCRASH_287
goto @VCRASH_11

:DOC
script_name 'DOC'

:DOC_11
wait $mission_trigger_wait_time
if 
  $flag_doc_mission_counter == 1
goto_if_false @DOC_36
terminate_this_script 

:DOC_36
if 
  is_player_playing $player1
goto_if_false @DOC_180
if 
  $onmission == 0
goto_if_false @DOC_180
if 
  locate_char_on_foot_3d $scplayer {x} $docX {y} $docY {z} $docZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DOC_180
if 
  can_player_start_mission $player1
goto_if_false @DOC_180
if 
  $flag_doc_mission_counter == 0
goto_if_false @DOC_180
$onmission = 1
print_big 'DOC_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 95 // Madd Dogg

:DOC_180
goto @DOC_11

:HEIST
script_name 'HEIST'

:HEIST_11
wait $mission_trigger_wait_time
if 
  $flag_heist_mission_counter == 6
goto_if_false @HEIST_36
terminate_this_script 

:HEIST_36
if 
  is_player_playing $player1
goto_if_false @HEIST_546
if 
  $onmission == 0
goto_if_false @HEIST_546
if 
  locate_char_on_foot_3d $scplayer {x} $TheheistX {y} $TheheistY {z} $TheheistZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST_546
if 
  can_player_start_mission $player1
goto_if_false @HEIST_546
if 
  $flag_heist_mission_counter == 0
goto_if_false @HEIST_180
$onmission = 1
print_big 'HEIST_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 96 // Architectural Espionage

:HEIST_180
if 
  $flag_heist_mission_counter == 1
goto_if_false @HEIST_232
$onmission = 1
print_big 'HEIST_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 97 // Key To Her Heart

:HEIST_232
if 
  $flag_heist_mission_counter == 2
goto_if_false @HEIST_284
$onmission = 1
print_big 'HEIST_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 98 // Dam And Blast

:HEIST_284
if 
  $flag_heist_mission_counter == 3
goto_if_false @HEIST_336
$onmission = 1
print_big 'HEIST_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 99 // Cop Wheels

:HEIST_336
if 
  $flag_heist_mission_counter == 4
goto_if_false @HEIST_446
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @HEIST_430
$onmission = 1
clear_prints 
print_big 'HEIST_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 100 // Up, Up and Away!
goto @HEIST_446

:HEIST_430
print_now 'MTIME1' {time} 1000 {flag} 1

:HEIST_446
if and
  $flag_heist_mission_counter == 5
  $1384 == 1
goto_if_false @HEIST_546
if 
  $keycard_aquired_from_millie == 1
goto_if_false @HEIST_530
$onmission = 1
print_big 'HEIST_9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 101 // Breaking the Bank at Caligula's
goto @HEIST_546

:HEIST_530
print_now 'NEEDKEY' {time} 1000 {flag} 1

:HEIST_546
goto @HEIST_11

:MANSION
script_name 'MANSION'

:MANSION_11
wait $mission_trigger_wait_time
if 
  $flag_mansion_mission_counter == 4
goto_if_false @MANSION_36
terminate_this_script 

:MANSION_36
if 
  is_player_playing $player1
goto_if_false @MANSION_378
if 
  $onmission == 0
goto_if_false @MANSION_378
if 
  can_player_start_mission $player1
goto_if_false @MANSION_378
if 
  locate_char_on_foot_3d $scplayer {x} $casinoX {y} $casinoY {z} $casinoZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSION_180
if 
  $flag_mansion_mission_counter == 0
goto_if_false @MANSION_180
$onmission = 1
print_big 'MAN_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 102 // A Home In The Hills

:MANSION_180
if 
  locate_char_on_foot_3d $scplayer {x} $mansionX {y} $mansionY {z} $mansionZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSION_378
if 
  $flag_mansion_mission_counter == 1
goto_if_false @MANSION_274
$onmission = 1
print_big 'MAN_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 103 // Vertical Bird

:MANSION_274
if 
  $flag_mansion_mission_counter == 2
goto_if_false @MANSION_326
$onmission = 1
print_big 'MAN_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 104 // Home Coming

:MANSION_326
if 
  $flag_mansion_mission_counter == 3
goto_if_false @MANSION_378
$onmission = 1
print_big 'MAN_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 105 // Cut Throat Business

:MANSION_378
goto @MANSION_11

:GROVE
script_name 'GROVE'

:GROVE_11
wait $mission_trigger_wait_time
if 
  $flag_grove_mission_counter == 2
goto_if_false @GROVE_36
terminate_this_script 

:GROVE_36
if 
  is_player_playing $player1
goto_if_false @GROVE_274
if 
  $onmission == 0
goto_if_false @GROVE_274
if 
  can_player_start_mission $player1
goto_if_false @GROVE_274
if 
  locate_char_on_foot_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GROVE_180
if 
  $flag_grove_mission_counter == 0
goto_if_false @GROVE_180
$onmission = 1
print_big 'GROVE_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1140
load_and_launch_mission_internal 106 // Beat Down on B Dup

:GROVE_180
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GROVE_274
if 
  $flag_grove_mission_counter == 1
goto_if_false @GROVE_274
$onmission = 1
print_big 'GROVE_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 107 // Grove 4 Life

:GROVE_274
goto @GROVE_11

:RIOT
script_name 'RIOT'

:RIOT_11
wait $mission_trigger_wait_time
if 
  $flag_riot_mission_counter == 5
goto_if_false @RIOT_36
terminate_this_script 

:RIOT_36
if 
  is_player_playing $player1
goto_if_false @RIOT_673
if 
  $onmission == 0
goto_if_false @RIOT_673
if 
  locate_char_on_foot_3d $scplayer {x} $mansionX {y} $mansionY {z} $mansionZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RIOT_180
if 
  can_player_start_mission $player1
goto_if_false @RIOT_180
if 
  $flag_riot_mission_counter == 0
goto_if_false @RIOT_180
$onmission = 1
print_big 'RIOT_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 108 // Riot

:RIOT_180
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RIOT_587
if 
  can_player_start_mission $player1
goto_if_false @RIOT_587
if 
  $flag_riot_mission_counter == 1
goto_if_false @RIOT_372
$returned_respect = find_max_number_of_group_members 
if 
  $returned_respect > 1
goto_if_false @RIOT_320
$onmission = 1
print_big 'RIOT_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 109 // Los Desperados
goto @RIOT_372

:RIOT_320
print_now 'MOREREP' {time} 1000 {flag} 1
if 
  $respect_help_played == 0
goto_if_false @RIOT_372
print_help 'HELP101'
$respect_help_played = 1

:RIOT_372
if 
  $1355 == 1
goto_if_false @RIOT_483
if 
  $1354 == 1
goto_if_false @RIOT_467
if 
  $flag_riot_mission_counter == 2
goto_if_false @RIOT_460
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 110 // End Of The Line (1)

:RIOT_460
goto @RIOT_483

:RIOT_467
print_now 'MORTURF' {time} 2000 {flag} 1

:RIOT_483
if 
  $flag_riot_mission_counter == 3
goto_if_false @RIOT_535
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 111 // End Of The Line (2)

:RIOT_535
if 
  $flag_riot_mission_counter == 4
goto_if_false @RIOT_587
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 112 // End Of The Line (3)

:RIOT_587
if and
  $flag_riot_mission_counter == 3
  $finaleB_played_first_time_round == 0
goto_if_false @RIOT_630
$finaleB_played_first_time_round = 1
$onmission = 1
load_and_launch_mission_internal 111 // End Of The Line (2)

:RIOT_630
if and
  $flag_riot_mission_counter == 4
  $finaleB_played_first_time_round == 1
goto_if_false @RIOT_673
$finaleB_played_first_time_round = 2
$onmission = 1
load_and_launch_mission_internal 112 // End Of The Line (3)

:RIOT_673
goto @RIOT_11

:SHOOT
script_name 'SHOOT'

:SHOOT_11
wait 125
if 
  is_player_playing $player1
goto_if_false @SHOOT_324
if 
  $onmission == 0
goto_if_false @SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_231
if 
  $flag_shooting_range_mission == 0
goto_if_false @SHOOT_231
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_231
$sr_i = 0

:SHOOT_110
if 
  4 > $sr_i
goto_if_false @SHOOT_231
if 
  locate_char_on_foot_3d $scplayer {x} $Srange_X($sr_i,4f) {y} $Srange_Y($sr_i,4f) {z} $Srange_Z($sr_i,4f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SHOOT_217
if 
  can_player_start_mission $player1
goto_if_false @SHOOT_217
$onmission = 1
set_var_int_to_var_int $SR_range_id = $sr_i
load_and_launch_mission_internal 113 // Shooting range

:SHOOT_217
$sr_i += 1
goto @SHOOT_110

:SHOOT_231
goto @SHOOT_281

:SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_281
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_281
$flag_dont_start_shooting_range = 1

:SHOOT_281
if 
  $flag_dont_start_shooting_range == 1
goto_if_false @SHOOT_324
if 
  $main_visible_area == 0
goto_if_false @SHOOT_324
$flag_dont_start_shooting_range = 0

:SHOOT_324
goto @SHOOT_11

:GYM
script_name 'GYM'

:GYM_11
wait 70
if 
  $onmission == 0
goto_if_false @GYM_388
if 
  $1348 == 1
goto_if_false @GYM_115
if 
  $switch_the_gym_interiors_off == 0
goto_if_false @GYM_115
switch_entry_exit 'GYM1' {state} True
switch_entry_exit 'GYM2' {state} True
switch_entry_exit 'GYM3' {state} True
$switch_the_gym_interiors_off = 1

:GYM_115
if 
  is_player_playing $player1
goto_if_false @GYM_381
if 
  can_player_start_mission $player1
goto_if_false @GYM_381
if 
  locate_char_on_foot_3d $scplayer {x} 767.1537 {y} 4.8323 {z} 999.7185 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_225
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 5
goto_if_false @GYM_225
load_and_launch_mission_internal 114 // Los Santos Gym Fight School

:GYM_225
if 
  locate_char_on_foot_3d $scplayer {x} 768.4777 {y} -37.1737 {z} 999.6865 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_303
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 6
goto_if_false @GYM_303
load_and_launch_mission_internal 115 // San Fierro Gym Fight School

:GYM_303
if 
  locate_char_on_foot_3d $scplayer {x} 766.5975 {y} -65.293 {z} 999.6562 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_381
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 7
goto_if_false @GYM_381
load_and_launch_mission_internal 116 // Las Venturas Gym Fight School

:GYM_381
goto @GYM_488

:GYM_388
if 
  $1348 == 1
goto_if_false @GYM_488
if 
  $main_visible_area == 0
goto_if_false @GYM_488
if 
  $switch_the_gym_interiors_off == 1
goto_if_false @GYM_488
switch_entry_exit 'GYM1' {state} False
switch_entry_exit 'GYM2' {state} False
switch_entry_exit 'GYM3' {state} False
$switch_the_gym_interiors_off = 0

:GYM_488
goto @GYM_11

:TRUCKS
script_name 'TRUCKS'

:TRUCKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @TRUCKS_146
if 
  is_player_playing $player1
goto_if_false @TRUCKS_146
if 
  locate_char_on_foot_3d $scplayer {x} $truckX {y} $truckY {z} $truckZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @TRUCKS_146
if 
  can_player_start_mission $player1
goto_if_false @TRUCKS_146
set_player_control $player1 {state} False
draw_oddjob_title_before_fade False
print_big 'TRUCK' {time} 3000 {style} TextStyle.MiddleSmallerHigher
gosub @LITCAS_267
load_and_launch_mission_internal 117 // Trucking

:TRUCKS_146
goto @TRUCKS_11

:QUARRYS
script_name 'QUARRYS'

:QUARRYS_11
wait 0
if 
  $onmission == 0
goto_if_false @QUARRYS_145
if 
  is_player_playing $player1
goto_if_false @QUARRYS_145
if 
  locate_char_on_foot_3d $scplayer {x} $quarryX {y} $quarryY {z} $quarryZ {xRadius} 1.5 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRYS_145
if 
  can_player_start_mission $player1
goto_if_false @QUARRYS_145
set_player_control $player1 {state} False
draw_oddjob_title_before_fade False
print_big 'QUARRY' {time} 3000 {style} TextStyle.MiddleSmallerHigher
gosub @LITCAS_267
load_and_launch_mission_internal 118 // Quarry

:QUARRYS_145
goto @QUARRYS_11

:BSCHOO
script_name 'BSCHOO'

:BSCHOO_11
wait 0
if 
  $onmission == 0
goto_if_false @BSCHOO_125
if 
  is_player_playing $player1
goto_if_false @BSCHOO_125
if 
  locate_char_on_foot_3d $scplayer {x} $boatsX {y} $boatsY {z} $boatsZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @BSCHOO_125
if 
  can_player_start_mission $player1
goto_if_false @BSCHOO_125
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 119 // Boat School

:BSCHOO_125
goto @BSCHOO_11

:BIKES
script_name 'BIKES'

:BIKES_11
wait 0
if 
  $onmission == 0
goto_if_false @BIKES_125
if 
  is_player_playing $player1
goto_if_false @BIKES_125
if 
  locate_char_on_foot_3d $scplayer {x} $bikesX {y} $bikesY {z} $bikesZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @BIKES_125
if 
  can_player_start_mission $player1
goto_if_false @BIKES_125
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 120 // Bike School

:BIKES_125
goto @BIKES_11

:R3
script_name 'R3'

:R3_11
wait 70
if 
  $onmission == 0
goto_if_false @R3_4103
if 
  is_player_playing $player1
goto_if_false @R3_4103
if 
  is_char_in_any_car $scplayer
goto_if_false @R3_4001
if 
  not is_minigame_in_progress 
goto_if_false @R3_3994
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_110
goto @R3_4110
goto @R3_3994

:R3_110
if or
  is_char_in_taxi $scplayer
  is_char_in_model $scplayer {modelId} 416
  is_char_in_model $scplayer {modelId} 407
  is_char_in_model $scplayer {modelId} 425
  is_char_in_model $scplayer {modelId} 609
  is_char_in_any_police_vehicle $scplayer
goto_if_false @R3_2901
$R3_player_car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_in_water $R3_player_car
goto_if_false @R3_2901
if 
  is_char_in_taxi $scplayer
goto_if_false @R3_673
if 
  not is_player_in_shortcut_taxi $player1
goto_if_false @R3_673
if 
  $flag_taxiodd_mission_launched == 0
goto_if_false @R3_673
if 
  $R3_mission_help == 0
goto_if_false @R3_286
if 
  not is_help_message_being_displayed 
goto_if_false @R3_286
print_help 'TTUTOR'
$R3_mission_help = 1

:R3_286
if 
  $controlmode <> 3
goto_if_false @R3_492
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_485

:R3_321
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_447
wait 0
if 
  $onmission == 1
goto_if_false @R3_367
goto @R3_11

:R3_367
if or
  not is_player_playing $player1
  not is_char_in_taxi $scplayer
goto_if_false @R3_395
goto @R3_11

:R3_395
if 
  is_minigame_in_progress 
goto_if_false @R3_415
goto @R3_11

:R3_415
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_440
goto @R3_11

:R3_440
goto @R3_321

:R3_447
print_big 'TAXI_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 121 // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_485
goto @R3_673

:R3_492
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_673

:R3_509
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_635
wait 0
if 
  $onmission == 1
goto_if_false @R3_555
goto @R3_11

:R3_555
if or
  not is_player_playing $player1
  not is_char_in_taxi $scplayer
goto_if_false @R3_583
goto @R3_11

:R3_583
if 
  is_minigame_in_progress 
goto_if_false @R3_603
goto @R3_11

:R3_603
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_628
goto @R3_11

:R3_628
goto @R3_509

:R3_635
print_big 'TAXI_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 121 // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_673
if 
  is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_1138
if 
  $flag_player_on_ambulance_mission == 0
goto_if_false @R3_1138
if 
  $R3_mission_help == 0
goto_if_false @R3_759
if 
  not is_help_message_being_displayed 
goto_if_false @R3_759
print_help 'ATUTOR'
$R3_mission_help = 1

:R3_759
if 
  $controlmode <> 3
goto_if_false @R3_961
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_954

:R3_794
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_923
wait 0
if 
  $onmission == 1
goto_if_false @R3_840
goto @R3_11

:R3_840
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_871
goto @R3_11

:R3_871
if 
  is_minigame_in_progress 
goto_if_false @R3_891
goto @R3_11

:R3_891
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_916
goto @R3_11

:R3_916
goto @R3_794

:R3_923
print_big 'AMBUL_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 122 // Paramedic Sub-Mission
goto @R3_11

:R3_954
goto @R3_1138

:R3_961
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1138

:R3_978
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1107
wait 0
if 
  $onmission == 1
goto_if_false @R3_1024
goto @R3_11

:R3_1024
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_1055
goto @R3_11

:R3_1055
if 
  is_minigame_in_progress 
goto_if_false @R3_1075
goto @R3_11

:R3_1075
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1100
goto @R3_11

:R3_1100
goto @R3_978

:R3_1107
print_big 'AMBUL_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 122 // Paramedic Sub-Mission
goto @R3_11

:R3_1138
if 
  is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1603
if 
  $flag_player_on_fire_mission == 0
goto_if_false @R3_1603
if 
  $R3_mission_help == 0
goto_if_false @R3_1224
if 
  not is_help_message_being_displayed 
goto_if_false @R3_1224
print_help 'FTUTOR'
$R3_mission_help = 1

:R3_1224
if 
  $controlmode <> 3
goto_if_false @R3_1426
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1419

:R3_1259
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1388
wait 0
if 
  $onmission == 1
goto_if_false @R3_1305
goto @R3_11

:R3_1305
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1336
goto @R3_11

:R3_1336
if 
  is_minigame_in_progress 
goto_if_false @R3_1356
goto @R3_11

:R3_1356
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1381
goto @R3_11

:R3_1381
goto @R3_1259

:R3_1388
print_big 'FIRE_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 123 // Firefighter Sub-Mission
goto @R3_11

:R3_1419
goto @R3_1603

:R3_1426
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1603

:R3_1443
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1572
wait 0
if 
  $onmission == 1
goto_if_false @R3_1489
goto @R3_11

:R3_1489
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1520
goto @R3_11

:R3_1520
if 
  is_minigame_in_progress 
goto_if_false @R3_1540
goto @R3_11

:R3_1540
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1565
goto @R3_11

:R3_1565
goto @R3_1443

:R3_1572
print_big 'FIRE_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 123 // Firefighter Sub-Mission
goto @R3_11

:R3_1603
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2269
if 
  $R3_mission_help == 0
goto_if_false @R3_1676
if 
  not is_help_message_being_displayed 
goto_if_false @R3_1676
print_help 'CTUTOR'
$R3_mission_help = 1

:R3_1676
if 
  $controlmode <> 3
goto_if_false @R3_1985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1978

:R3_1711
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1863
wait 0
if 
  $onmission == 1
goto_if_false @R3_1757
goto @R3_11

:R3_1757
if 
  not is_player_playing $player1
goto_if_false @R3_1780
goto @R3_11

:R3_1780
if and
  not is_char_in_any_police_vehicle $scplayer
  not is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_1811
goto @R3_11

:R3_1811
if 
  is_minigame_in_progress 
goto_if_false @R3_1831
goto @R3_11

:R3_1831
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1856
goto @R3_11

:R3_1856
goto @R3_1711

:R3_1863
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_1905
print_big 'COP_M3' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_1963

:R3_1905
if 
  is_char_in_model $scplayer {modelId} 415
goto_if_false @R3_1947
print_big 'COP_M2' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_1963

:R3_1947
print_big 'COP_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher

:R3_1963
wait 0
load_and_launch_mission_internal 124 // Vigilante Sub-Mission
goto @R3_11

:R3_1978
goto @R3_2269

:R3_1985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2269

:R3_2002
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2154
wait 0
if 
  $onmission == 1
goto_if_false @R3_2048
goto @R3_11

:R3_2048
if 
  not is_player_playing $player1
goto_if_false @R3_2071
goto @R3_11

:R3_2071
if and
  not is_char_in_any_police_vehicle $scplayer
  not is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2102
goto @R3_11

:R3_2102
if 
  is_minigame_in_progress 
goto_if_false @R3_2122
goto @R3_11

:R3_2122
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2147
goto @R3_11

:R3_2147
goto @R3_2002

:R3_2154
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2196
print_big 'COP_M3' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_2254

:R3_2196
if 
  is_char_in_model $scplayer {modelId} 415
goto_if_false @R3_2238
print_big 'COP_M2' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_2254

:R3_2238
print_big 'COP_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher

:R3_2254
wait 0
load_and_launch_mission_internal 124 // Vigilante Sub-Mission
goto @R3_11

:R3_2269
if 
  is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2901
if 
  $flag_player_on_burglary_mission == 0
goto_if_false @R3_2901
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2388
if 
  $R3_mission_help == 0
goto_if_false @R3_2388
if 
  not is_help_message_being_displayed 
goto_if_false @R3_2388
print_help 'BTUTOR2'
$R3_mission_help = 1

:R3_2388
if 
  $controlmode <> 3
goto_if_false @R3_2657
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_2650
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2634

:R3_2456
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_2585
wait 0
if 
  $onmission == 1
goto_if_false @R3_2502
goto @R3_11

:R3_2502
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2533
goto @R3_11

:R3_2533
if 
  is_minigame_in_progress 
goto_if_false @R3_2553
goto @R3_11

:R3_2553
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2578
goto @R3_11

:R3_2578
goto @R3_2456

:R3_2585
draw_oddjob_title_before_fade False
print_big 'BURGLAR' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 125 // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2650

:R3_2634
print_now 'BURGHEL' {time} 1000 {flag} 1

:R3_2650
goto @R3_2901

:R3_2657
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2901
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2885

:R3_2707
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2836
wait 0
if 
  $onmission == 1
goto_if_false @R3_2753
goto @R3_11

:R3_2753
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2784
goto @R3_11

:R3_2784
if 
  is_minigame_in_progress 
goto_if_false @R3_2804
goto @R3_11

:R3_2804
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2829
goto @R3_11

:R3_2829
goto @R3_2707

:R3_2836
draw_oddjob_title_before_fade False
print_big 'BURGLAR' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 125 // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2901

:R3_2885
print_now 'BURGHEL' {time} 1000 {flag} 1

:R3_2901
if 
  $Return_cities_passed > 1
goto_if_false @R3_3455
if or
  is_char_in_model $scplayer {modelId} 537
  is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3455
$R3_player_car = store_car_char_is_in_no_save $scplayer
if and
  not is_car_in_water $R3_player_car
  not has_train_derailed $R3_player_car
goto_if_false @R3_3455
if 
  $flag_player_on_freight_mission == 0
goto_if_false @R3_3455
if 
  $R3_mission_help == 0
goto_if_false @R3_3042
if 
  not is_help_message_being_displayed 
goto_if_false @R3_3042
print_help 'FTUTORA'
$R3_mission_help = 1

:R3_3042
if 
  $controlmode <> 3
goto_if_false @R3_3261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3254

:R3_3077
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3232
wait 0
if 
  $onmission == 1
goto_if_false @R3_3123
goto @R3_11

:R3_3123
if 
  not is_player_playing $player1
goto_if_false @R3_3146
goto @R3_11

:R3_3146
if and
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3180
goto @R3_11

:R3_3180
if 
  is_minigame_in_progress 
goto_if_false @R3_3200
goto @R3_11

:R3_3200
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3225
goto @R3_11

:R3_3225
goto @R3_3077

:R3_3232
wait 0
load_and_launch_mission_internal 126 // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3254
goto @R3_3455

:R3_3261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3455

:R3_3278
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3433
wait 0
if 
  $onmission == 1
goto_if_false @R3_3324
goto @R3_11

:R3_3324
if 
  not is_player_playing $player1
goto_if_false @R3_3347
goto @R3_11

:R3_3347
if and
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3381
goto @R3_11

:R3_3381
if 
  is_minigame_in_progress 
goto_if_false @R3_3401
goto @R3_11

:R3_3401
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3426
goto @R3_11

:R3_3426
goto @R3_3278

:R3_3433
wait 0
load_and_launch_mission_internal 126 // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3455
if 
  is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3994
$R3_player_car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_in_water $R3_player_car
goto_if_false @R3_3994
if 
  $flag_player_on_pimp_mission == 0
goto_if_false @R3_3994
if 
  $R3_mission_help == 0
goto_if_false @R3_3565
if 
  not is_help_message_being_displayed 
goto_if_false @R3_3565
print_help 'PTUTORA'
$R3_mission_help = 1

:R3_3565
if 
  $controlmode <> 3
goto_if_false @R3_3792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3785

:R3_3600
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3747
wait 0
if 
  $onmission == 1
goto_if_false @R3_3646
goto @R3_11

:R3_3646
if 
  not is_player_playing $player1
goto_if_false @R3_3669
goto @R3_11

:R3_3669
if 
  not is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3695
goto @R3_11

:R3_3695
if 
  is_minigame_in_progress 
goto_if_false @R3_3715
goto @R3_11

:R3_3715
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3740
goto @R3_11

:R3_3740
goto @R3_3600

:R3_3747
print_big 'PIMP' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 127 // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3785
goto @R3_3994

:R3_3792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3994

:R3_3809
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3956
wait 0
if 
  $onmission == 1
goto_if_false @R3_3855
goto @R3_11

:R3_3855
if 
  not is_player_playing $player1
goto_if_false @R3_3878
goto @R3_11

:R3_3878
if 
  not is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3904
goto @R3_11

:R3_3904
if 
  is_minigame_in_progress 
goto_if_false @R3_3924
goto @R3_11

:R3_3924
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3949
goto @R3_11

:R3_3949
goto @R3_3809

:R3_3956
print_big 'PIMP' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 127 // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3994
goto @R3_4103

:R3_4001
if 
  $R3_mission_help == 1
goto_if_false @R3_4103
clear_this_print 'TTUTOR'
clear_this_print 'ATUTOR'
clear_this_print 'FTUTOR'
clear_this_print 'CTUTOR'
clear_this_print 'BTUTOR2'
clear_this_print 'FTUTORA'
clear_this_print 'PTUTORA'
$R3_mission_help = 0

:R3_4103
goto @R3_11

:R3_4110
wait 70
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_4144
wait 5000
goto @R3_11

:R3_4144
goto @R3_4110

:FRTEXT
script_name 'FRTEXT'
wait 5000
clear_help 
print_help 'FREI_16'
terminate_this_script 

:BLOODR
script_name 'BLOODR'

:BLOODR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @BLOODR_136
if 
  is_player_playing $player1
goto_if_false @BLOODR_136
if 
  locate_char_on_foot_3d $scplayer {x} $bloodX {y} $bloodY {z} $bloodZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @BLOODR_136
if 
  can_player_start_mission $player1
goto_if_false @BLOODR_136
gosub @LITCAS_267
print_big 'STAD_04' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 128 // Arena Mission: Blood Ring

:BLOODR_136
goto @BLOODR_11

:HOTR
script_name 'HOTR'

:HOTR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @HOTR_199
if 
  is_player_playing $player1
goto_if_false @HOTR_199
if 
  locate_char_on_foot_3d $scplayer {x} $hotringX {y} $hotringY {z} $hotringZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @HOTR_199
$stat = get_int_stat StatId.DrivingSkill
if 
  $stat > 199
goto_if_false @HOTR_183
if 
  can_player_start_mission $player1
goto_if_false @HOTR_176
print_big 'STAD_03' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
set_var_int_to_constant $race_selection = 25
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:HOTR_176
goto @HOTR_199

:HOTR_183
print_now 'STATCAR' {time} 500 {flag} 1

:HOTR_199
goto @HOTR_11

:KICKS
script_name 'KICKS'

:KICKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @KICKS_271
if 
  is_player_playing $player1
goto_if_false @KICKS_271
if 
  locate_char_on_foot_3d $scplayer {x} $kickX {y} $kickY {z} $kickZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @KICKS_271
if 
  can_player_start_mission $player1
goto_if_false @KICKS_271
$weekday = get_current_day_of_week 
if or
  $weekday == 0
  $weekday == 2
  $weekday == 4
goto_if_false @KICKS_243
$stat = get_int_stat StatId.BikeSkill
if 
  $stat > 199
goto_if_false @KICKS_220
print_big 'STAD_01' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
set_var_int_to_constant $race_selection = 26
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
goto @KICKS_236

:KICKS_220
print_now 'STATBIK' {time} 500 {flag} 1

:KICKS_236
goto @KICKS_271

:KICKS_243
gosub @LITCAS_267
print_big 'STAD_02' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 129 // Arena Mission: Kickstart

:KICKS_271
goto @KICKS_11

:TRI
script_name 'TRI'

:TRI_11
wait 0
if 
  $onmission == 0
goto_if_false @TRI_619
if 
  is_player_playing $player1
goto_if_false @TRI_619
if or
  $weekday == 1
  $weekday == 7
goto_if_false @TRI_619
if or
  locate_char_on_foot_3d $scplayer {x} 181.0 {y} -1878.0 {z} 2.0 {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} True
  locate_char_on_foot_3d $scplayer {x} 2135.4319 {y} -67.9555 {z} 1.8 {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRI_544
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed > 1
goto_if_false @TRI_501
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 500
goto_if_false @TRI_458
$stat_stamina_temp = get_int_stat StatId.Stamina
if 
  $stat_stamina_temp >= 500
goto_if_false @TRI_415
if 
  can_player_start_mission $player1
goto_if_false @TRI_408
print_big 'BOTTY' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @TRI_403
if 
  locate_char_on_foot_3d $scplayer {x} 181.0 {y} -1878.0 {z} 2.0 {xRadius} 20.4 {yRadius} 20.8 {zRadius} 20.5 {drawSphere} False
goto_if_false @TRI_348
$triathalon_selection = 1

:TRI_348
if 
  locate_char_on_foot_3d $scplayer {x} 2135.4319 {y} -67.9555 {z} 20.8 {xRadius} 20.4 {yRadius} 20.8 {zRadius} 20.5 {drawSphere} False
goto_if_false @TRI_403
$triathalon_selection = 2

:TRI_403
load_and_launch_mission_internal 130 // Beat the Cock!

:TRI_408
goto @TRI_451

:TRI_415
if 
  $flag_stamina_skill_help_tri == 0
goto_if_false @TRI_451
print_help 'STASKIL'
$flag_stamina_skill_help_tri = 1

:TRI_451
goto @TRI_494

:TRI_458
if 
  $flag_cycling_skill_help_tri == 0
goto_if_false @TRI_494
print_help 'MTBSKIL'
$flag_cycling_skill_help_tri = 1

:TRI_494
goto @TRI_537

:TRI_501
if 
  $map_opened_tri == 0
goto_if_false @TRI_537
print_help 'NOCOCK'
$map_opened_tri = 1

:TRI_537
goto @TRI_619

:TRI_544
if 
  $flag_cycling_skill_help_tri == 1
goto_if_false @TRI_569
$flag_cycling_skill_help_tri = 0

:TRI_569
if 
  $flag_stamina_skill_help_tri == 1
goto_if_false @TRI_594
$flag_stamina_skill_help_tri = 0

:TRI_594
if 
  $map_opened_tri == 1
goto_if_false @TRI_619
$map_opened_tri = 0

:TRI_619
goto @TRI_11

:ODDVEH
script_name 'ODDVEH'

:ODDVEH_11
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @ODDVEH_1149
if 
  $onmission == 0
goto_if_false @ODDVEH_1149
if 
  is_char_in_any_car $scplayer
goto_if_false @ODDVEH_1114
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_134
if 
  not locate_char_any_means_3d $scplayer {x} $cour1X {y} $cour1Y {z} $cour1Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_134
$flag_courier_trigger = 1

:ODDVEH_134
if 
  is_char_in_model $scplayer {modelId} 463
goto_if_false @ODDVEH_202
if 
  not locate_char_any_means_3d $scplayer {x} $cour2X {y} $cour2Y {z} $cour2Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_202
$flag_courier_trigger = 1

:ODDVEH_202
if 
  is_char_in_model $scplayer {modelId} 462
goto_if_false @ODDVEH_270
if 
  not locate_char_any_means_3d $scplayer {x} $cour3X {y} $cour3Y {z} $cour3Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_270
$flag_courier_trigger = 1

:ODDVEH_270
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_335
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_335
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_335
if 
  is_char_in_model $scplayer {modelId} 463
goto_if_false @ODDVEH_400
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_400
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_400
if 
  is_char_in_model $scplayer {modelId} 462
goto_if_false @ODDVEH_465
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_465
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_465
if 
  is_char_in_model $scplayer {modelId} 510
goto_if_false @ODDVEH_533
if 
  not locate_char_any_means_3d $scplayer {x} $mountbX {y} $mountbY {z} $mountbZ {xRadius} 10.5 {yRadius} 10.5 {zRadius} 10.5 {drawSphere} False
goto_if_false @ODDVEH_533
$flag_mtbike_trigger = 1

:ODDVEH_533
if and
  is_char_in_model $scplayer {modelId} 510
  $flag_mtbike_trigger == 0
goto_if_false @ODDVEH_722
clear_prints 
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 400
goto_if_false @ODDVEH_679
$hours, $minutes = get_time_of_day 
if and
  $hours >= 7
  18 > $hours
goto_if_false @ODDVEH_656
print_big 'MOUNTN' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 132 // The Chiliad Challenge
$flag_mtbike_trigger = 1
goto @ODDVEH_672

:ODDVEH_656
print_now 'MTIME4' {time} 1000 {flag} 1

:ODDVEH_672
goto @ODDVEH_715

:ODDVEH_679
if 
  $flag_cycling_skill_help == 0
goto_if_false @ODDVEH_715
print_help 'MTBSKIL'
$flag_cycling_skill_help = 1

:ODDVEH_715
goto @ODDVEH_747

:ODDVEH_722
if 
  $flag_cycling_skill_help == 1
goto_if_false @ODDVEH_747
$flag_cycling_skill_help = 0

:ODDVEH_747
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_815
if 
  not locate_char_any_means_3d $scplayer {x} $stunt_bmx1_cargen {y} $stunt_bmx1_x {z} $stunt_bmx1_y {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_815
$flag_bmx_trigger = 1

:ODDVEH_815
if and
  is_char_in_model $scplayer {modelId} 481
  $flag_bmx_trigger == 0
goto_if_false @ODDVEH_953
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 200
goto_if_false @ODDVEH_910
print_big 'BMX' {time} 1000 {style} TextStyle.BottomRight
$stunt_course = 0
load_and_launch_mission_internal 133 // BMX / NRG-500 STUNT Mission
$flag_bmx_trigger = 1
goto @ODDVEH_946

:ODDVEH_910
if 
  $flag_cycling_skill_help2 == 0
goto_if_false @ODDVEH_946
print_help 'MTBSKI2'
$flag_cycling_skill_help2 = 1

:ODDVEH_946
goto @ODDVEH_978

:ODDVEH_953
if 
  $flag_cycling_skill_help2 == 1
goto_if_false @ODDVEH_978
$flag_cycling_skill_help2 = 0

:ODDVEH_978
if 
  is_char_in_model $scplayer {modelId} 522
goto_if_false @ODDVEH_1046
if 
  not locate_char_any_means_3d $scplayer {x} $stunt_nrg500_cargen {y} $stunt_nrg500_x {z} $stunt_nrg500_y {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_1046
$flag_nrg500_trigger = 1

:ODDVEH_1046
if and
  is_char_in_model $scplayer {modelId} 522
  $flag_nrg500_trigger == 0
goto_if_false @ODDVEH_1107
print_big 'NRG500' {time} 1000 {style} TextStyle.BottomRight
$stunt_course = 1
load_and_launch_mission_internal 133 // BMX / NRG-500 STUNT Mission
$flag_nrg500_trigger = 1

:ODDVEH_1107
goto @ODDVEH_1149

:ODDVEH_1114
$flag_hhiker_trigger = 0
$flag_courier_trigger = 0
$flag_mtbike_trigger = 0
$flag_bmx_trigger = 0
$flag_nrg500_trigger = 0

:ODDVEH_1149
goto @ODDVEH_11

:BUY1
script_name 'BUY1'
$save_houseprice = 50000
remove_pickup $save_housepickup[0]
$save_housepickup[0] = create_forsale_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {price} $save_houseprice {message} 'PROP_3'

:BUY1_52
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY1_135
if 
  $onmission == 0
goto_if_false @BUY1_135
if 
  has_pickup_been_collected $save_housepickup[0]
goto_if_false @BUY1_135
set_var_int_to_constant $buying_property_switch = 0
report_mission_audio_event_at_position $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY1_135
goto @BUY1_52

:BUY2
script_name 'BUY2'
$1654 = 30000
remove_pickup $save_housepickup[1]
$save_housepickup[1] = create_forsale_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {price} $1654 {message} 'PROP_3'

:BUY2_50
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY2_133
if 
  $onmission == 0
goto_if_false @BUY2_133
if 
  has_pickup_been_collected $save_housepickup[1]
goto_if_false @BUY2_133
set_var_int_to_constant $buying_property_switch = 1
report_mission_audio_event_at_position $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY2_133
goto @BUY2_50

:BUY3
script_name 'BUY3'
$1655 = 80000
remove_pickup $save_housepickup[2]
$save_housepickup[2] = create_forsale_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {price} $1655 {message} 'PROP_3'

:BUY3_52
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY3_135
if 
  $onmission == 0
goto_if_false @BUY3_135
if 
  has_pickup_been_collected $save_housepickup[2]
goto_if_false @BUY3_135
set_var_int_to_constant $buying_property_switch = 2
report_mission_audio_event_at_position $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY3_135
goto @BUY3_52

:BUY_PRO
script_name 'BUY_PRO'

:BUY_PRO_11
wait 0
if 
  is_player_playing $player1
goto_if_false @BUY_PRO_145
if 
  $onmission == 0
goto_if_false @BUY_PRO_145
if 
  $already_bought_house($save_house_index,32i) == 0
goto_if_false @BUY_PRO_145
if 
  has_pickup_been_collected $save_housepickup($save_house_index,32i)
goto_if_false @BUY_PRO_145
set_var_int_to_var_int $buying_property_switch = $prorerty_switch($save_house_index,32i)
report_mission_audio_event_at_position $propertyX($save_house_index,32f) {y} $propertyY($save_house_index,32f) {z} $propertyZ($save_house_index,32f) {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
$already_bought_house($save_house_index,32i) = 1

:BUY_PRO_145
$save_house_index += 1
if 
  $save_house_index >= 32
goto_if_false @BUY_PRO_177
$save_house_index = 3

:BUY_PRO_177
goto @BUY_PRO_11

:IMPND_L
script_name 'IMPND_L'

:IMPND_L_11
wait 100
if 
  is_player_playing $player1
goto_if_false @IMPND_L_706
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_L_189
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_189
if 
  locate_char_any_means_3d $scplayer {x} 1579.425 {y} -1636.463 {z} 14.5812 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_160
$impound_area = 1
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_153
start_new_streamed_script 71

:IMPND_L_153
goto @IMPND_L_189

:IMPND_L_160
if 
  $impound_area == 1
goto_if_false @IMPND_L_189
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_189
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_390
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_390
if 
  locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_336
if 
  $tlf_underway == 0
goto_if_false @IMPND_L_329
$impound_area = 2
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_329
start_new_streamed_script 71

:IMPND_L_329
goto @IMPND_L_390

:IMPND_L_336
if 
  $tlf_underway == 2
goto_if_false @IMPND_L_361
$tlf_underway = 0

:IMPND_L_361
if 
  $impound_area == 2
goto_if_false @IMPND_L_390
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_390
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_548
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_548
if 
  locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_519
$impound_area = 2
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_512
start_new_streamed_script 71

:IMPND_L_512
goto @IMPND_L_548

:IMPND_L_519
if 
  $impound_area == 2
goto_if_false @IMPND_L_548
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_548
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_L_706
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_706
if 
  locate_char_any_means_3d $scplayer {x} 2284.592 {y} 2466.8379 {z} 12.2306 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_677
$impound_area = 3
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_670
start_new_streamed_script 71

:IMPND_L_670
goto @IMPND_L_706

:IMPND_L_677
if 
  $impound_area == 3
goto_if_false @IMPND_L_706
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_706
goto @IMPND_L_11

:VALET_L
script_name 'VALET_L'

:VALET_L_11
wait 0
if 
  $valet_unlocked == 1
goto_if_false @VALET_L_197
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @VALET_L_197
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @VALET_L_197
if 
  is_player_playing $player1
goto_if_false @VALET_L_197
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1893.4189 {leftBottomY} 1119.2271 {rightTopX} -1617.915 {rightTopY} 828.85 {drawSphere} False
goto_if_false @VALET_L_168
$val_Area = 2
stream_script 72
if 
  has_streamed_script_loaded 72
goto_if_false @VALET_L_161
start_new_streamed_script 72

:VALET_L_161
goto @VALET_L_197

:VALET_L_168
if 
  $val_Area == 2
goto_if_false @VALET_L_197
mark_streamed_script_as_no_longer_needed 72
$val_Area = 0

:VALET_L_197
goto @VALET_L_11

:TRAINSL
script_name 'TRAINSL'

:TRAINSL_11
wait 0
if 
  is_player_playing $player1
goto_if_false @TRAINSL_115
if 
  is_char_in_any_car $scplayer
goto_if_false @TRAINSL_115
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINSL_115
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 33
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @TRAINSL_115
stream_script 33
if 
  has_streamed_script_loaded 33
goto_if_false @TRAINSL_115
start_new_streamed_script 33

:TRAINSL_115
goto @TRAINSL_11

:ADPLANE
script_name 'ADPLANE'

:ADPLANE_11
wait 0
if 
  is_player_playing $player1
goto_if_false @ADPLANE_934
if 
  $onmission == 0
goto_if_false @ADPLANE_934
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @ADPLANE_314
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_277
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_270
if 
  $created_marker == 0
goto_if_false @ADPLANE_157
$airport_marker = create_user_3d_marker 1685.7 {y} -2238.8999 {z} 14.0 {color} HudColors.Yellow
$created_marker = 1

:ADPLANE_157
if 
  locate_char_on_foot_3d $scplayer {x} 1685.7 {y} -2238.8999 {z} 12.5 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_266
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_259
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
if 
  has_streamed_script_loaded 32
goto_if_false @ADPLANE_259
start_new_streamed_script 32

:ADPLANE_259
goto @ADPLANE_270

:ADPLANE_266
mark_streamed_script_as_no_longer_needed 32

:ADPLANE_270
goto @ADPLANE_307

:ADPLANE_277
if 
  $created_marker == 1
goto_if_false @ADPLANE_307
remove_user_3d_marker $airport_marker
$created_marker = 0

:ADPLANE_307
goto @ADPLANE_344

:ADPLANE_314
if 
  $created_marker == 1
goto_if_false @ADPLANE_344
remove_user_3d_marker $airport_marker
$created_marker = 0

:ADPLANE_344
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @ADPLANE_609
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_572
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_565
if 
  $793 == 0
goto_if_false @ADPLANE_452
$796 = create_user_3d_marker -1421.5 {y} -287.2 {z} 14.6 {color} HudColors.Yellow
$793 = 1

:ADPLANE_452
if 
  locate_char_on_foot_3d $scplayer {x} -1421.5 {y} -287.2 {z} 14.6 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_561
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_554
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
if 
  has_streamed_script_loaded 32
goto_if_false @ADPLANE_554
start_new_streamed_script 32

:ADPLANE_554
goto @ADPLANE_565

:ADPLANE_561
mark_streamed_script_as_no_longer_needed 32

:ADPLANE_565
goto @ADPLANE_602

:ADPLANE_572
if 
  $793 == 1
goto_if_false @ADPLANE_602
remove_user_3d_marker $796
$793 = 0

:ADPLANE_602
goto @ADPLANE_639

:ADPLANE_609
if 
  $793 == 1
goto_if_false @ADPLANE_639
remove_user_3d_marker $796
$793 = 0

:ADPLANE_639
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @ADPLANE_904
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_867
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_860
if 
  $794 == 0
goto_if_false @ADPLANE_747
$797 = create_user_3d_marker 1663.0 {y} 1423.6 {z} 11.2 {color} HudColors.Yellow
$794 = 1

:ADPLANE_747
if 
  locate_char_on_foot_3d $scplayer {x} 1663.0 {y} 1423.6 {z} 11.2 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_856
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_849
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
if 
  has_streamed_script_loaded 32
goto_if_false @ADPLANE_849
start_new_streamed_script 32

:ADPLANE_849
goto @ADPLANE_860

:ADPLANE_856
mark_streamed_script_as_no_longer_needed 32

:ADPLANE_860
goto @ADPLANE_897

:ADPLANE_867
if 
  $794 == 1
goto_if_false @ADPLANE_897
remove_user_3d_marker $797
$794 = 0

:ADPLANE_897
goto @ADPLANE_934

:ADPLANE_904
if 
  $794 == 1
goto_if_false @ADPLANE_934
remove_user_3d_marker $797
$794 = 0

:ADPLANE_934
goto @ADPLANE_11

:COLLS
script_name 'COLLS'

:COLLS_11
wait 3000
$Return_progress_Percentage = get_progress_percentage 
if 
  $returned_oysters_flag == 0
goto_if_false @COLLS_285
$Returned_oysters = get_int_stat StatId.OystersCollected
if 
  $Returned_oysters == 50
goto_if_false @COLLS_285
play_mission_passed_tune 2
player_made_progress 1
set_int_stat StatId.UnderwaterBreathStamina {value} 1000
if 
  0 >= $iGFLikesPlayer[4]
goto_if_false @COLLS_106
$iGFLikesPlayer[4] = 45

:COLLS_106
if 
  0 >= $iGFLikesPlayer[1]
goto_if_false @COLLS_131
$iGFLikesPlayer[1] = 45

:COLLS_131
if 
  0 >= $iGFLikesPlayer[3]
goto_if_false @COLLS_156
$iGFLikesPlayer[3] = 45

:COLLS_156
if 
  0 >= $iGFLikesPlayer[2]
goto_if_false @COLLS_181
$iGFLikesPlayer[2] = 45

:COLLS_181
$iGFDesiredSexAppeal[0] = -100
$iGFDesiredSexAppeal[1] = -100
$iGFDesiredSexAppeal[3] = -100
$iGFDesiredSexAppeal[2] = -100
$iGFDesiredSexAppeal[4] = -100
$iGFDesiredSexAppeal[5] = -100
$iGFSelfRespect[0] = 1
$iGFSelfRespect[1] = 1
$iGFSelfRespect[3] = 1
$iGFSelfRespect[2] = 1
$iGFSelfRespect[4] = 1
$iGFSelfRespect[5] = 1
clear_help 
print_help 'OYST100'
$returned_oysters_flag = 1

:COLLS_285
if 
  $flag_returned_shoehorses == 0
goto_if_false @COLLS_465
$Returned_shoehorses = get_int_stat StatId.HorseshoesCollected
if 
  $Returned_shoehorses == 50
goto_if_false @COLLS_465
play_mission_passed_tune 2
player_made_progress 1
$all_horse_pickup1 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2021.879 {y} 1001.467 {z} 10.3203
$all_horse_pickup2 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2025.286 {y} 1001.496 {z} 10.3203
$all_horse_pickup3 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2021.327 {y} 1013.349 {z} 10.3203
$all_horse_pickup4 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2023.775 {y} 1013.527 {z} 10.5203
clear_help 
print_help 'LUCK100'
$flag_returned_shoehorses = 1

:COLLS_465
if 
  $flag_returned_snapshots == 0
goto_if_false @COLLS_645
$Returned_snapshots = get_int_stat StatId.SnapshotsTaken
if 
  $Returned_snapshots == 50
goto_if_false @COLLS_645
play_mission_passed_tune 2
player_made_progress 1
$all_photos_pickup1 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -2035.7729 {y} 139.4337 {z} 28.3359
$all_photos_pickup2 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} -2038.4301 {y} 139.6281 {z} 28.3359
$all_photos_pickup3 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} -2038.6639 {y} 137.4694 {z} 28.3359
$all_photos_pickup4 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -2035.474 {y} 137.2511 {z} 28.3359
clear_help 
print_help 'FOTO100'
$flag_returned_snapshots = 1

:COLLS_645
if 
  $flag_returned_tags == 0
goto_if_false @COLLS_832
$Returned_tags = find_number_tags_tagged 
if 
  $Returned_tags == 100
goto_if_false @COLLS_832
play_mission_passed_tune 2
player_made_progress 1
set_gang_weapons GangType.Grove {weaponType1} WeaponType.DesertEagle {weaponType2} WeaponType.Mp5 {weaponType3} WeaponType.Knife
$all_tags_pickup1 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2499.3899 {y} -1707.463 {z} 1014.25
$all_tags_pickup2 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2499.5139 {y} -1709.64 {z} 1014.25
$all_tags_pickup3 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2493.491 {y} -1708.2371 {z} 1014.932
$all_tags_pickup4 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2493.553 {y} -1706.863 {z} 1015.132
clear_help 
print_help 'TAG_100'
$flag_returned_tags = 1

:COLLS_832
if 
  $game_complete == 0
goto_if_false @COLLS_994
if 
  $Return_progress_Percentage >= 100.0
goto_if_false @COLLS_994
if 
  is_player_playing $player1
goto_if_false @COLLS_994
switch_car_generator $gen_car20 {amount} 101
switch_car_generator $hyfra_gen1 {amount} 101
add_score $player1 {money} 1000000
set_int_stat StatId.UnderwaterBreathStamina {value} 1000
set_int_stat StatId.Stamina {value} 1000
set_int_stat StatId.SexAppeal {value} 1000
set_int_stat StatId.SexAppealClothes {value} 1000
set_int_stat StatId.Respect {value} 1000
set_int_stat StatId.RespectGirlfriend {value} 1000
set_int_stat StatId.RespectClothes {value} 1000
set_int_stat StatId.CycleSkill {value} 1000
wait 2000
clear_help 
print_help 'GAME100'
$game_complete = 1

:COLLS_994
goto @COLLS_11

:TCASH
script_name 'TCASH'

:TCASH_11
wait 20000
if 
  $terminted_territory_pickup == 1
goto_if_false @TCASH_48
remove_pickup $territory_pickup
$terminted_territory_pickup = 0
terminate_this_script 

:TCASH_48
$player_territory_owned = get_territory_under_control_percentage 
set_var_int_to_var_int $territory_cash = $player_territory_owned
$territory_cash *= 50
update_pickup_money_per_day $territory_pickup {value} $territory_cash
goto @TCASH_11

:KEYCARD
$millies_like_stat = get_int_stat StatId.GirlfriendMillie
if 
  $millies_like_stat >= 35
goto_if_false @KEYCARD_51
$millies_double_ender = create_pickup 321 {pickupType} PickupType.Once {x} 345.2063 {y} 308.9788 {z} 998.6484

:KEYCARD_51
set_closest_entry_exit_flag 345.5621 {y} 306.2212 {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$millie_marker = create_user_3d_marker 2037.349 {y} 2722.071 {z} 12.0281 {color} HudColors.Yellow
$822 = create_user_3d_marker 343.9969 {y} 305.104 {z} 999.6557 {color} HudColors.Yellow
script_name 'KEYCARD'

:KEYCARD_128
wait 0
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @KEYCARD_169
$not_entered_millies_house = 0
goto @KEYCARD_176

:KEYCARD_169
$not_entered_millies_house = 1

:KEYCARD_176
if 
  is_player_playing $player1
goto_if_false @KEYCARD_630
if 
  $not_entered_millies_house == 0
goto_if_false @KEYCARD_421
if 
  locate_char_on_foot_3d $scplayer {x} 2037.349 {y} 2722.071 {z} 9.8281 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @KEYCARD_414
set_player_control $player1 {state} False
gosub @LITCAS_267
set_area_visible 6
request_collision 345.5621 {y} 306.2212
load_scene 345.5621 {y} 306.2212 {z} 998.1484
set_extra_colours 1 {fade} False
set_player_is_in_stadium True
if 
  is_player_playing $player1
goto_if_false @KEYCARD_372
set_char_area_visible $scplayer {areaId} 6
set_char_coordinates $scplayer {x} 345.5621 {y} 306.2212 {z} 998.4484
set_char_heading $scplayer {heading} 260.0
set_camera_behind_player 
restore_camera_jumpcut 

:KEYCARD_372
wait 1000
do_fade 500 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @KEYCARD_407
set_player_control $player1 {state} True

:KEYCARD_407
$not_entered_millies_house = 1

:KEYCARD_414
goto @KEYCARD_623

:KEYCARD_421
if 
  locate_char_on_foot_3d $scplayer {x} 343.9969 {y} 305.104 {z} 998.1557 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @KEYCARD_623
set_player_control $player1 {state} False
gosub @LITCAS_267
set_area_visible 0
request_collision 2037.541 {y} 2727.687
load_scene 2037.541 {y} 2727.687 {z} 9.8281
clear_extra_colours False
set_player_is_in_stadium False
if 
  is_player_playing $player1
goto_if_false @KEYCARD_581
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $scplayer {x} 2037.541 {y} 2727.687 {z} 9.8281
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 

:KEYCARD_581
wait 1000
do_fade 500 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @KEYCARD_616
set_player_control $player1 {state} True

:KEYCARD_616
$not_entered_millies_house = 0

:KEYCARD_623
goto @KEYCARD_634

:KEYCARD_630
set_player_is_in_stadium False

:KEYCARD_634
if 
  has_pickup_been_collected $millies_keycard_pickup
goto_if_false @KEYCARD_703
if 
  $millies_keycard_pickup_flag == 0
goto_if_false @KEYCARD_703
print_now 'GOTKEY' {time} 6000 {flag} 1
remove_blip $Thekeycard_contact_blip
$keycard_aquired_from_millie = 1
$millies_keycard_pickup_flag = 1

:KEYCARD_703
$main_visible_area = get_area_visible 
if and
  $millies_keycard_pickup_flag == 1
  $main_visible_area == 0
goto_if_false @KEYCARD_745
remove_user_3d_marker $millie_marker
remove_user_3d_marker $822
terminate_this_script 

:KEYCARD_745
goto @KEYCARD_128

:TPLAYER
script_name 'TPLAYER'

:TPLAYER_11
wait 75
if 
  is_player_playing $player1
goto_if_false @TPLAYER_1823
if 
  $onmission == 0
goto_if_false @TPLAYER_1784
if 
  $recreate_tplay_pickup == 0
goto_if_false @TPLAYER_321
gosub @TPLAYER_1862
$Tplayer_pickup = create_pickup #KILLFRENZY2PLYR {pickupType} PickupType.SecondPlayer {x} 1481.955 {y} -1656.146 {z} 13.5469
$825 = create_pickup #KILLFRENZY2PLYR {pickupType} PickupType.SecondPlayer {x} 1196.491 {y} 249.321 {z} 19.0618
$826 = create_pickup #KILLFRENZY2PLYR {pickupType} PickupType.SecondPlayer {x} -2102.8479 {y} 653.8868 {z} 51.8671
$827 = create_pickup #KILLFRENZY2PLYR {pickupType} PickupType.SecondPlayer {x} -252.9156 {y} 2583.7791 {z} 63.0703
$828 = create_pickup #KILLFRENZY2PLYR {pickupType} PickupType.SecondPlayer {x} 2510.6331 {y} 1207.917 {z} 10.3281
$829 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} 2069.3379 {y} -1556.9301 {z} 12.9243
$830 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} 2138.1689 {y} 1483.595 {z} 10.3203
$831 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -2197.667 {y} 292.0621 {z} 34.623
$832 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -1520.864 {y} 2608.207 {z} 55.3437
$833 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} 711.0688 {y} -569.3774 {z} 15.8359
$recreate_tplay_pickup = 1

:TPLAYER_321
if 
  has_pickup_been_collected $Tplayer_pickup
goto_if_false @TPLAYER_379
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 135 // 2player Ram
$recreate_tplay_pickup = 0

:TPLAYER_379
if 
  has_pickup_been_collected $825
goto_if_false @TPLAYER_437
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY2' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 136 // 2player bike
$recreate_tplay_pickup = 0

:TPLAYER_437
if 
  has_pickup_been_collected $826
goto_if_false @TPLAYER_495
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY3' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 137 // 2player cars
$recreate_tplay_pickup = 0

:TPLAYER_495
if 
  has_pickup_been_collected $827
goto_if_false @TPLAYER_553
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY4' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 138 // 2player heli
$recreate_tplay_pickup = 0

:TPLAYER_553
if 
  has_pickup_been_collected $828
goto_if_false @TPLAYER_611
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY5' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 139 // 2player peds
$recreate_tplay_pickup = 0

:TPLAYER_611
if 
  has_pickup_been_collected $829
goto_if_false @TPLAYER_669
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY6' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 140 // Run-around LS
$recreate_tplay_pickup = 0

:TPLAYER_669
if 
  has_pickup_been_collected $830
goto_if_false @TPLAYER_727
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY7' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 141 // Run-around LV
$recreate_tplay_pickup = 0

:TPLAYER_727
if 
  has_pickup_been_collected $831
goto_if_false @TPLAYER_785
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY8' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 142 // Run-around SF
$recreate_tplay_pickup = 0

:TPLAYER_785
if 
  has_pickup_been_collected $832
goto_if_false @TPLAYER_843
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY9' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 143 // Run-around DE
$recreate_tplay_pickup = 0

:TPLAYER_843
if 
  has_pickup_been_collected $833
goto_if_false @TPLAYER_901
$onmission = 1
gosub @LITCAS_267
print_big 'TPLAY10' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 144 // Run-around CO
$recreate_tplay_pickup = 0

:TPLAYER_901
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 5
goto_if_false @TPLAYER_1017
if 
  $recreate_gfriend_pickup == 0
goto_if_false @TPLAYER_968
$834 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} 2024.522 {y} 2731.196 {z} 10.3281
$recreate_gfriend_pickup = 1

:TPLAYER_968
if 
  has_pickup_been_collected $834
goto_if_false @TPLAYER_1010
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 145 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1010
goto @TPLAYER_1047

:TPLAYER_1017
if 
  $recreate_gfriend_pickup == 1
goto_if_false @TPLAYER_1047
remove_pickup $834
$recreate_gfriend_pickup = 0

:TPLAYER_1047
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 4
goto_if_false @TPLAYER_1163
if 
  $842 == 0
goto_if_false @TPLAYER_1114
$835 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -2576.783 {y} 1151.908 {z} 55.2333
$842 = 1

:TPLAYER_1114
if 
  has_pickup_been_collected $835
goto_if_false @TPLAYER_1156
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 146 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1156
goto @TPLAYER_1193

:TPLAYER_1163
if 
  $842 == 1
goto_if_false @TPLAYER_1193
remove_pickup $835
$842 = 0

:TPLAYER_1193
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 3
goto_if_false @TPLAYER_1309
if 
  $843 == 0
goto_if_false @TPLAYER_1260
$836 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -1390.171 {y} 2637.5149 {z} 55.5
$843 = 1

:TPLAYER_1260
if 
  has_pickup_been_collected $836
goto_if_false @TPLAYER_1302
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 147 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1302
goto @TPLAYER_1339

:TPLAYER_1309
if 
  $843 == 1
goto_if_false @TPLAYER_1339
remove_pickup $836
$843 = 0

:TPLAYER_1339
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 2
goto_if_false @TPLAYER_1455
if 
  $844 == 0
goto_if_false @TPLAYER_1406
$837 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -381.8657 {y} -1426.27 {z} 25.5
$844 = 1

:TPLAYER_1406
if 
  has_pickup_been_collected $837
goto_if_false @TPLAYER_1448
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 148 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1448
goto @TPLAYER_1485

:TPLAYER_1455
if 
  $844 == 1
goto_if_false @TPLAYER_1485
remove_pickup $837
$844 = 0

:TPLAYER_1485
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 0
goto_if_false @TPLAYER_1601
if 
  $845 == 0
goto_if_false @TPLAYER_1552
$838 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} 2402.436 {y} -1715.494 {z} 14.0
$845 = 1

:TPLAYER_1552
if 
  has_pickup_been_collected $838
goto_if_false @TPLAYER_1594
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 149 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1594
goto @TPLAYER_1631

:TPLAYER_1601
if 
  $845 == 1
goto_if_false @TPLAYER_1631
remove_pickup $838
$845 = 0

:TPLAYER_1631
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {bitIndex} 1
goto_if_false @TPLAYER_1747
if 
  $846 == 0
goto_if_false @TPLAYER_1698
$839 = create_pickup #TWOPLAYER {pickupType} PickupType.SecondPlayer {x} -1803.614 {y} 1199.332 {z} 25.0
$846 = 1

:TPLAYER_1698
if 
  has_pickup_been_collected $839
goto_if_false @TPLAYER_1740
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 150 // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1740
goto @TPLAYER_1777

:TPLAYER_1747
if 
  $846 == 1
goto_if_false @TPLAYER_1777
remove_pickup $839
$846 = 0

:TPLAYER_1777
goto @TPLAYER_1816

:TPLAYER_1784
if 
  $recreate_tplay_pickup == 1
goto_if_false @TPLAYER_1816
gosub @TPLAYER_1862
$recreate_tplay_pickup = 0

:TPLAYER_1816
goto @TPLAYER_1855

:TPLAYER_1823
if 
  $recreate_tplay_pickup == 1
goto_if_false @TPLAYER_1855
gosub @TPLAYER_1862
$recreate_tplay_pickup = 0

:TPLAYER_1855
goto @TPLAYER_11

:TPLAYER_1862
remove_pickup $Tplayer_pickup
remove_pickup $825
remove_pickup $826
remove_pickup $827
remove_pickup $828
remove_pickup $829
remove_pickup $830
remove_pickup $831
remove_pickup $832
remove_pickup $833
remove_pickup $834
remove_pickup $835
remove_pickup $836
remove_pickup $837
remove_pickup $838
remove_pickup $839
return 

:PSAVE1
script_name 'PSAVE1'
$number_of_save_icons = 13

:PSAVE1_18
wait 0
if 
  is_player_playing $player1
goto_if_false @PSAVE1_824
if 
  $onmission == 0
goto_if_false @PSAVE1_759
if and
  $flag_on_courier_mission == 0
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @PSAVE1_720
if 
  $created_save_blips == 0
goto_if_false @PSAVE1_534
gosub @PSAVE1_831
$grove_save_pickup[0] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0]
$grove_save_pickup[1] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1]
$grove_save_pickup[2] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2]
$grove_save_pickup[3] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[3] {y} $save_pickupY[3] {z} $save_pickupZ[3]
$grove_save_pickup[4] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[4] {y} $save_pickupY[4] {z} $save_pickupZ[4]
$grove_save_pickup[5] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5]
$grove_save_pickup[6] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[6] {y} $save_pickupY[6] {z} $save_pickupZ[6]
$grove_save_pickup[7] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[7] {y} $save_pickupY[7] {z} $save_pickupZ[7]
$grove_save_pickup[8] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[8] {y} $save_pickupY[8] {z} $save_pickupZ[8]
$grove_save_pickup[9] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[9] {y} $save_pickupY[9] {z} $save_pickupZ[9]
$grove_save_pickup[10] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[10] {y} $save_pickupY[10] {z} $save_pickupZ[10]
$grove_save_pickup[11] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[11] {y} $save_pickupY[11] {z} $save_pickupZ[11]
$grove_save_pickup[12] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[12] {y} $save_pickupY[12] {z} $save_pickupZ[12]
if 
  $number_of_save_icons >= 14
goto_if_false @PSAVE1_383
$grove_save_pickup[13] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13]

:PSAVE1_383
if 
  $number_of_save_icons >= 15
goto_if_false @PSAVE1_419
$grove_save_pickup[14] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14]

:PSAVE1_419
if 
  $number_of_save_icons >= 16
goto_if_false @PSAVE1_455
$grove_save_pickup[15] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15]

:PSAVE1_455
if 
  $number_of_save_icons >= 17
goto_if_false @PSAVE1_491
$grove_save_pickup[16] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16]

:PSAVE1_491
if 
  $number_of_save_icons >= 18
goto_if_false @PSAVE1_527
$grove_save_pickup[17] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17]

:PSAVE1_527
$created_save_blips = 1

:PSAVE1_534
if 
  has_pickup_been_collected $grove_save_pickup($save_index,18i)
goto_if_false @PSAVE1_713
gosub @PSAVE1_923
if 
  is_player_playing $player1
goto_if_false @PSAVE1_699
remove_pickup $grove_save_pickup($save_index,18i)
create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX($save_index,18f) {y} $save_pickupY($save_index,18f) {z} $save_pickupZ($save_index,18f) {var_handle} $grove_save_pickup($save_index,18i)
clear_area $save_playerX($save_index,18f) {y} $save_playerY($save_index,18f) {z} $save_playerZ($save_index,18f) {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} $save_playerX($save_index,18f) {y} $save_playerY($save_index,18f) {z} $save_playerZ($save_index,18f)
set_char_heading $scplayer {heading} $save_playerH($save_index,18f)
wait 0
do_fade 1000 {direction} Fade.In

:PSAVE1_699
gosub @PSAVE1_1003
$created_save_blips = 0

:PSAVE1_713
goto @PSAVE1_752

:PSAVE1_720
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_752
gosub @PSAVE1_831
$created_save_blips = 0

:PSAVE1_752
goto @PSAVE1_791

:PSAVE1_759
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_791
gosub @PSAVE1_831
$created_save_blips = 0

:PSAVE1_791
$save_index += 1
if 
  is_int_var_greater_or_equal_to_int_var $save_index >= $number_of_save_icons
goto_if_false @PSAVE1_824
$save_index = 0

:PSAVE1_824
goto @PSAVE1_18

:PSAVE1_831
remove_pickup $grove_save_pickup[0]
remove_pickup $grove_save_pickup[1]
remove_pickup $grove_save_pickup[2]
remove_pickup $grove_save_pickup[3]
remove_pickup $grove_save_pickup[4]
remove_pickup $grove_save_pickup[5]
remove_pickup $grove_save_pickup[6]
remove_pickup $grove_save_pickup[7]
remove_pickup $grove_save_pickup[8]
remove_pickup $grove_save_pickup[9]
remove_pickup $grove_save_pickup[10]
remove_pickup $grove_save_pickup[11]
remove_pickup $grove_save_pickup[12]
remove_pickup $grove_save_pickup[13]
remove_pickup $grove_save_pickup[14]
remove_pickup $grove_save_pickup[15]
remove_pickup $grove_save_pickup[16]
remove_pickup $grove_save_pickup[17]
return 

:PSAVE1_923
$onmission = 1
set_player_control $player1 {state} False
activate_save_menu 

:PSAVE1_939
if 
  not has_save_game_finished 
goto_if_false @PSAVE1_963
wait 0
goto @PSAVE1_939

:PSAVE1_963
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1001
set_player_control $player1 {state} False

:PSAVE1_1001
return 

:PSAVE1_1003
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1023
restore_camera_jumpcut 
set_camera_behind_player 

:PSAVE1_1023
wait 500
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1058
set_player_control $player1 {state} True
$onmission = 0

:PSAVE1_1058
return 

:PSAVE1_1060
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:PSAVE1_1075
if 
  get_fading_status 
goto_if_false @PSAVE1_1103
wait 0
clear_prints 
clear_help 
goto @PSAVE1_1075

:PSAVE1_1103
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1138
do_fade 0 {direction} Fade.Out
restore_camera_jumpcut 
clear_char_tasks $scplayer
do_fade 0 {direction} Fade.Out

:PSAVE1_1138
return 

:PSAVE1_1140
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1318
clear_help 
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2503.6011 {y} -1676.787 {z} 13.9236 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.26 {y} -1677.718 {z} 14.0548 {switchStyle} SwitchType.JumpCut
clear_area 2495.365 {y} -1690.766 {z} 13.7734 {radius} 1.0 {clearParticles} True
clear_area 2503.26 {y} -1677.718 {z} 14.0548 {radius} 2.0 {clearParticles} True
clear_area $introX {y} $introY {z} $introZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2495.365 {y} -1690.766 {z} 13.7734 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1318
return 

:PSAVE1_1320
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1496
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2512.2329 {y} -1673.532 {z} 12.6635 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.1389 {y} -1673.825 {z} 12.9696 {switchStyle} SwitchType.JumpCut
clear_area 2513.1389 {y} -1673.825 {z} 12.9696 {radius} 2.0 {clearParticles} True
clear_area 2521.3501 {y} -1678.83 {z} 14.32 {radius} 1.0 {clearParticles} True
clear_area $sweetX {y} $sweetY {z} $sweetZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2521.3501 {y} -1678.83 {z} 14.32 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1496
return 

:PSAVE1_1498
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1674
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2451.1479 {y} -1677.786 {z} 16.3581 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2451.564 {y} -1678.677 {z} 16.1721 {switchStyle} SwitchType.JumpCut
clear_area 2451.564 {y} -1678.677 {z} 16.1721 {radius} 2.0 {clearParticles} True
clear_area 2459.4399 {y} -1691.58 {z} 12.58 {radius} 1.0 {clearParticles} True
clear_area $ryderX {y} $ryderY {z} $ryderZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2459.4399 {y} -1691.58 {z} 12.58 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1674
return 

:PSAVE1_1676
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1834
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2075.7 {y} -1687.8781 {z} 16.0883 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2074.9839 {y} -1688.556 {z} 15.9215 {switchStyle} SwitchType.JumpCut
clear_area 2065.3999 {y} -1703.4 {z} 13.1 {radius} 1.0 {clearParticles} True
clear_area 2074.9839 {y} -1688.556 {z} 15.9215 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2065.3999 {y} -1703.4 {z} 13.1 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1834
return 

:PSAVE1_1836
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2012
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1054.645 {y} -1312.281 {z} 14.9353 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1054.271 {y} -1313.2 {z} 15.0617 {switchStyle} SwitchType.JumpCut
clear_area 1038.04 {y} -1339.23 {z} 12.55 {radius} 1.0 {clearParticles} True
clear_area 1054.271 {y} -1313.2 {z} 15.0617 {radius} 2.0 {clearParticles} True
clear_area $crashX {y} $crashY {z} $crashZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1038.04 {y} -1339.23 {z} 12.55 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2012
return 

:PSAVE1_2014
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2172
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 825.1696 {y} -1636.572 {z} 23.1761 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 824.351 {y} -1636.051 {z} 22.9332 {switchStyle} SwitchType.JumpCut
clear_area 793.59 {y} -1625.0699 {z} 12.38 {radius} 1.0 {clearParticles} True
clear_area 824.351 {y} -1636.051 {z} 22.9332 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 793.59 {y} -1625.0699 {z} 12.38 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2172
return 

:PSAVE1_2174
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2332
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2486.8479 {y} -1660.327 {z} 12.5441 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2486.8459 {y} -1659.363 {z} 12.8073 {switchStyle} SwitchType.JumpCut
clear_area 2486.9399 {y} -1646.76 {z} 13.07 {radius} 1.0 {clearParticles} True
clear_area 2486.8459 {y} -1659.363 {z} 12.8073 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2486.9399 {y} -1646.76 {z} 13.07 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2332
return 

:PSAVE1_2334
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2443
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1792.877 {y} -2105.3679 {z} 17.6519 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.152 {y} -2106.301 {z} 17.4194 {switchStyle} SwitchType.JumpCut
clear_area 1793.152 {y} -2106.301 {z} 17.4194 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_2443
return 

:PSAVE1_2445
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2603
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2187.8701 {y} -2269.8081 {z} 29.4158 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2188.376 {y} -2269.021 {z} 29.7703 {switchStyle} SwitchType.JumpCut
clear_area -2194.3711 {y} -2256.498 {z} 29.6841 {radius} 1.0 {clearParticles} True
clear_area -2188.376 {y} -2269.021 {z} 29.7703 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2194.3711 {y} -2256.498 {z} 29.6841 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2603
return 

:PSAVE1_2605
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2763
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -919.0773 {y} -1715.624 {z} 78.4517 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -920.0563 {y} -1715.824 {z} 78.4112 {switchStyle} SwitchType.JumpCut
clear_area -932.2975 {y} -1718.891 {z} 76.5703 {radius} 1.0 {clearParticles} True
clear_area -920.0563 {y} -1715.824 {z} 78.4112 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -932.2975 {y} -1718.891 {z} 76.5703 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2763
return 

:PSAVE1_2765
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2923
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2010.974 {y} 154.9329 {z} 33.4883 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2011.9659 {y} 154.9767 {z} 33.3685 {switchStyle} SwitchType.JumpCut
clear_area -2034.559 {y} 148.8178 {z} 27.8359 {radius} 1.0 {clearParticles} True
clear_area -2011.9659 {y} 154.9767 {z} 33.3685 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2034.559 {y} 148.8178 {z} 27.8359 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2923
return 

:PSAVE1_2925
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3083
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2031.359 {y} 196.2776 {z} 34.812 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.639 {y} 195.3477 {z} 34.5735 {switchStyle} SwitchType.JumpCut
clear_area -2038.51 {y} 178.4871 {z} 27.8359 {radius} 1.0 {clearParticles} True
clear_area -2031.639 {y} 195.3477 {z} 34.5735 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2038.51 {y} 178.4871 {z} 27.8359 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3083
return 

:PSAVE1_3085
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3243
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2129.186 {y} 640.2543 {z} 72.0002 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2130.1021 {y} 640.2417 {z} 71.6005 {switchStyle} SwitchType.JumpCut
clear_area -2156.5601 {y} 645.08 {z} 51.35 {radius} 1.0 {clearParticles} True
clear_area -2130.1021 {y} 640.2417 {z} 71.6005 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2156.5601 {y} 645.08 {z} 51.35 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3243
return 

:PSAVE1_3245
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3403
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1979.02 {y} 1004.792 {z} 995.4213 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1978.566 {y} 1003.92 {z} 995.238 {switchStyle} SwitchType.JumpCut
clear_area 1963.4 {y} 972.2 {z} 993.4 {radius} 1.0 {clearParticles} True
clear_area 1979.02 {y} 1004.792 {z} 995.4213 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1963.4 {y} 972.2 {z} 993.4 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3403
return 

:PSAVE1_3405
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3563
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1954.571 {y} 1041.494 {z} 993.1794 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1954.962 {y} 1042.4139 {z} 993.1676 {switchStyle} SwitchType.JumpCut
clear_area 1963.5 {y} 1063.3 {z} 993.4 {radius} 1.0 {clearParticles} True
clear_area 1954.962 {y} 1042.4139 {z} 993.1676 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1963.5 {y} 1063.3 {z} 993.4 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3563
return 

:PSAVE1_3565
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3723
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2073.947 {y} 991.3126 {z} 17.4461 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2072.9529 {y} 991.4046 {z} 17.5078 {switchStyle} SwitchType.JumpCut
clear_area 2020.0 {y} 1008.83 {z} 9.82 {radius} 1.0 {clearParticles} True
clear_area 2072.9529 {y} 991.4046 {z} 17.5078 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2020.0 {y} 1008.83 {z} 9.82 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3723
return 

:PSAVE1_3725
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3883
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2601.677 {y} 1386.132 {z} 6.8077 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2602.3279 {y} 1386.855 {z} 7.0409 {switchStyle} SwitchType.JumpCut
clear_area -2624.1951 {y} 1410.764 {z} 6.1015 {radius} 1.0 {clearParticles} True
clear_area -2602.3279 {y} 1386.855 {z} 7.0409 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2624.1951 {y} 1410.764 {z} 6.1015 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3883
return 

:PSAVE1_3885
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4043
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -690.618 {y} 906.0824 {z} 13.0468 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -690.5204 {y} 907.0766 {z} 13.0919 {switchStyle} SwitchType.JumpCut
clear_area -684.982 {y} 927.3704 {z} 12.6293 {radius} 1.0 {clearParticles} True
clear_area -690.5204 {y} 907.0766 {z} 13.0919 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -684.982 {y} 927.3704 {z} 12.6293 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4043
return 

:PSAVE1_4045
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4154
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 427.1954 {y} 2527.6431 {z} 19.4052 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 426.2472 {y} 2527.9561 {z} 19.4635 {switchStyle} SwitchType.JumpCut
clear_area 426.2472 {y} 2527.9561 {z} 19.4635 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_4154
return 

:PSAVE1_4156
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4265
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 330.1037 {y} 2587.75 {z} 18.3215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 330.0515 {y} 2586.7529 {z} 18.362 {switchStyle} SwitchType.JumpCut
clear_area 330.0515 {y} 2586.7529 {z} 18.362 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_4265
return 

:PSAVE1_4267
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4425
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2257.135 {y} 1587.1331 {z} 1010.035 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2257.2671 {y} 1588.119 {z} 1009.939 {switchStyle} SwitchType.JumpCut
clear_area 2270.6001 {y} 1637.9 {z} 1007.3 {radius} 1.0 {clearParticles} True
clear_area 2257.2671 {y} 1588.119 {z} 1009.939 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2270.6001 {y} 1637.9 {z} 1007.3 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4425
return 

:PSAVE1_4427
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4585
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1278.0909 {y} -849.6337 {z} 90.7593 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1278.038 {y} -848.6531 {z} 90.5709 {switchStyle} SwitchType.JumpCut
clear_area 1258.158 {y} -785.2752 {z} 91.0302 {radius} 1.0 {clearParticles} True
clear_area 1278.038 {y} -848.6531 {z} 90.5709 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1258.158 {y} -785.2752 {z} 91.0302 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4585
return 

:PSAVE1_4587
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4745
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2278.0039 {y} 134.334 {z} 39.606 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2277.0081 {y} 134.356 {z} 39.6897 {switchStyle} SwitchType.JumpCut
clear_area -2242.812 {y} 128.7572 {z} 34.3203 {radius} 1.0 {clearParticles} True
clear_area -2277.0081 {y} 134.356 {z} 39.6897 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2242.812 {y} 128.7572 {z} 34.3203 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4745
return 

:HELP
script_name 'HELP'

:HELP_11
wait 70
if 
  is_player_playing $player1
goto_if_false @HELP_2194
if 
  $game_starts_from_scratch == 1
goto_if_false @HELP_2194
if 
  $wasted_help == 0
goto_if_false @HELP_451
if 
  has_pickup_been_collected $wasted_help1
goto_if_false @HELP_259
if 
  is_player_playing $player1
goto_if_false @HELP_110
set_player_control $player1 {state} False
switch_widescreen True

:HELP_110
set_fixed_camera_position 2022.613 {y} -1432.05 {z} 17.6541 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2022.989 {y} -1431.124 {z} 17.6552 {switchStyle} SwitchType.JumpCut
remove_pickup $wasted_help1
remove_pickup $wasted_help2
clear_help 
print_help_forever 'HOSP_1'
wait 8000
print_help_forever 'HOSP_2'
wait 8000
print_help_forever 'HOSP_3'
wait 8000
clear_help 
$wasted_help = 1
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_259
set_player_control $player1 {state} True
switch_widescreen False

:HELP_259
if 
  has_pickup_been_collected $wasted_help2
goto_if_false @HELP_451
if 
  is_player_playing $player1
goto_if_false @HELP_302
set_player_control $player1 {state} False
switch_widescreen True

:HELP_302
set_fixed_camera_position 1184.347 {y} -1313.489 {z} 19.7079 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1183.645 {y} -1314.089 {z} 19.3248 {switchStyle} SwitchType.JumpCut
remove_pickup $wasted_help1
remove_pickup $wasted_help2
clear_help 
print_help_forever 'HOSP_1'
wait 8000
print_help_forever 'HOSP_2'
wait 8000
print_help_forever 'HOSP_3'
wait 8000
clear_help 
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_444
set_player_control $player1 {state} True
switch_widescreen False

:HELP_444
$wasted_help = 1

:HELP_451
if 
  $busted_help == 0
goto_if_false @HELP_672
if 
  has_pickup_been_collected $busted_help1
goto_if_false @HELP_672
if 
  is_player_playing $player1
goto_if_false @HELP_512
set_player_control $player1 {state} False
switch_widescreen True

:HELP_512
set_fixed_camera_position 1536.577 {y} -1687.134 {z} 26.7069 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1537.295 {y} -1686.564 {z} 26.3081 {switchStyle} SwitchType.JumpCut
remove_pickup $busted_help1
clear_help 
print_help_forever 'BUST_1'
wait 8000
print_help_forever 'BUST_2'
wait 8000
print_help_forever 'BUST_3'
wait 8000
print_help_forever 'BUST_4'
wait 8000
clear_help 
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_665
set_player_control $player1 {state} True
switch_widescreen False

:HELP_665
$busted_help = 1

:HELP_672
if 
  $chat_help1_flag == 0
goto_if_false @HELP_724
if 
  has_pickup_been_collected $chat_help1
goto_if_false @HELP_724
print_help 'CHATBAK'
$chat_help1_flag = 1

:HELP_724
if 
  7 > $swimming_help
goto_if_false @HELP_1256
if 
  $swimming_help == 0
goto_if_false @HELP_815
if 
  is_player_playing $player1
goto_if_false @HELP_815
if 
  is_char_swimming $scplayer
goto_if_false @HELP_815
print_help 'WZI2_A0'
$swimming_help = 1
wait 5000

:HELP_815
if 
  $swimming_help == 1
goto_if_false @HELP_888
if 
  is_player_playing $player1
goto_if_false @HELP_888
if 
  is_char_swimming $scplayer
goto_if_false @HELP_888
print_help 'WZI2_A5'
$swimming_help = 2
wait 5000

:HELP_888
if 
  $swimming_help == 2
goto_if_false @HELP_961
if 
  is_player_playing $player1
goto_if_false @HELP_961
if 
  is_char_swimming $scplayer
goto_if_false @HELP_961
print_help 'WZI2_A6'
$swimming_help = 3
wait 5000

:HELP_961
if 
  $swimming_help == 3
goto_if_false @HELP_1034
if 
  is_player_playing $player1
goto_if_false @HELP_1034
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1034
print_help 'WZI2_A1'
$swimming_help = 4
wait 5000

:HELP_1034
if 
  $swimming_help == 4
goto_if_false @HELP_1115
if 
  is_player_playing $player1
goto_if_false @HELP_1115
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1115
print_help 'WZI2_A2'
flash_hud_object HudObject.Breathbar
wait 5000
$swimming_help = 5
flash_hud_object -1

:HELP_1115
if 
  $swimming_help == 5
goto_if_false @HELP_1188
if 
  is_player_playing $player1
goto_if_false @HELP_1188
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1188
print_help 'WZI2_A3'
$swimming_help = 6
wait 5000

:HELP_1188
if 
  $swimming_help == 6
goto_if_false @HELP_1256
if 
  is_player_playing $player1
goto_if_false @HELP_1256
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1256
print_help 'WZI2_A7'
$swimming_help = 7

:HELP_1256
if 
  $print_first_help == 0
goto_if_false @HELP_1393
wait 2000
if 
  is_player_playing $player1
goto_if_false @HELP_1350
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1350
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @HELP_1350
print_help 'INTRO2F'
$been_in_a_bmx = 1

:HELP_1350
wait 5000
print_help 'HELP42'
flash_hud_object HudObject.Radar
wait 7000
flash_hud_object -1
$print_first_help = 1
goto @HELP_2120

:HELP_1393
if 
  $spray_help == 0
goto_if_false @HELP_1452
if 
  $flag_sweet_mission_counter == 1
goto_if_false @HELP_1452
wait 4000
print_help 'SPRAY_C'
$spray_help = 1

:HELP_1452
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_1578
if 
  is_player_playing $player1
goto_if_false @HELP_1578
if 
  locate_char_any_means_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HELP_1578
if 
  is_char_in_any_car $scplayer
goto_if_false @HELP_1555
print_help 'HELP21B'

:HELP_1555
wait 5000
print_help 'HELP44'
$voice_over_at_hub = 2

:HELP_1578
if 
  is_player_playing $player1
goto_if_false @HELP_1670
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1670
if or
  is_char_in_model $scplayer {modelId} 481
  is_char_in_model $scplayer {modelId} 509
  is_char_in_model $scplayer {modelId} 510
goto_if_false @HELP_1670
wait 2000
print_help 'INTRO2F'
$been_in_a_bmx = 1

:HELP_1670
if 
  is_player_playing $player1
goto_if_false @HELP_2120
if 
  $bike_help == 0
goto_if_false @HELP_1808
if or
  is_char_in_model $scplayer {modelId} 481
  is_char_in_model $scplayer {modelId} 509
  is_char_in_model $scplayer {modelId} 510
goto_if_false @HELP_1808
if and
  $bike_help == 0
  $been_in_a_bmx == 1
goto_if_false @HELP_1808
wait 6000
print_help 'HELP5_A'
wait 8000
print_help 'HELP27'
wait 2000
$bike_help = 1

:HELP_1808
if 
  is_player_playing $player1
goto_if_false @HELP_2120
if 
  $flag_intro_mission_counter > 0
goto_if_false @HELP_2120
if 
  $car_help_played == 0
goto_if_false @HELP_1949
if 
  $main_visible_area == 0
goto_if_false @HELP_1949
if 
  not is_char_on_any_bike $scplayer
goto_if_false @HELP_1949
if 
  is_char_in_any_car $scplayer
goto_if_false @HELP_1949
wait 2000
print_help 'GF_RAD'
wait 5000
print_help 'HELP56'
$car_help_played = 1

:HELP_1949
if 
  $drive_by_help == 0
goto_if_false @HELP_2120
if 
  $car_help_played == 1
goto_if_false @HELP_2120
if 
  is_player_playing $player1
goto_if_false @HELP_2120
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @HELP_2120
if and
  is_char_in_any_car $scplayer
  not is_char_on_any_bike $scplayer
goto_if_false @HELP_2120
if or
  is_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
  is_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
goto_if_false @HELP_2120
print_help 'HELP31'
wait 6000
print_help 'HELP32'
wait 6000
print_help 'HELP34'
$drive_by_help = 1

:HELP_2120
if 
  $drive_by_help == 1
goto_if_false @HELP_2194
if 
  $car_help_played == 1
goto_if_false @HELP_2194
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_2194
if 
  $chat_help1_flag == 1
goto_if_false @HELP_2194
terminate_this_script 

:HELP_2194
goto @HELP_11

:INTROST
script_name 'INTROST'

:INTROST_11
wait 0
if 
  is_player_playing $player1
goto_if_false @INTROST_844
if 
  $onmission == 0
goto_if_false @INTROST_844
if 
  $voice_over_at_hub == 0
goto_if_false @INTROST_339
if 
  is_player_playing $player1
goto_if_false @INTROST_339
if 
  locate_char_any_means_3d $scplayer {x} 2471.7 {y} -1668.0 {z} 12.3 {xRadius} 90.0 {yRadius} 40.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @INTROST_339
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11805
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11806

:INTROST_145
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTROST_194
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_187
goto @INTROST_332

:INTROST_187
goto @INTROST_145

:INTROST_194
print_now 'VO_AF' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:INTROST_214
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTROST_263
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_256
goto @INTROST_332

:INTROST_256
goto @INTROST_214

:INTROST_263
print_now 'VO_AG' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:INTROST_283
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTROST_332
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_325
goto @INTROST_332

:INTROST_325
goto @INTROST_283

:INTROST_332
$voice_over_at_hub = 1

:INTROST_339
if 
  $funeral_mission_finished == 0
goto_if_false @INTROST_403
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_403
wait 5000
print_now 'INT_CJ1' {time} 8000 {flag} 1
$funeral_mission_finished = 1

:INTROST_403
if 
  $funeral_mission_finished == 1
goto_if_false @INTROST_634
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_634
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 3
goto_if_false @INTROST_634
if 
  is_player_playing $player1
goto_if_false @INTROST_634
if 
  locate_char_any_means_3d $scplayer {x} 2496.051 {y} -1698.0129 {z} 1013.75 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @INTROST_634
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2496.3799 {y} -1694.334 {z} 1015.431 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2496.3679 {y} -1695.325 {z} 1015.299 {switchStyle} SwitchType.JumpCut
print_help 'SAVE'
wait 5000
if 
  is_player_playing $player1
goto_if_false @INTROST_634
set_player_control $player1 {state} True
restore_camera_jumpcut 
$funeral_mission_finished = 2

:INTROST_634
if 
  $funeral_mission_finished == 2
goto_if_false @INTROST_844
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_844
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @INTROST_844
if 
  is_player_playing $player1
goto_if_false @INTROST_844
if 
  locate_char_any_means_3d $scplayer {x} 2495.3301 {y} -1689.183 {z} 13.2716 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @INTROST_844
terminate_all_scripts_with_this_name 'INT'
start_new_script @INT 
remove_blip $intro_contact_blip
$intro_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
print_now 'INT2_1' {time} 8000 {flag} 1
wait 2000
print_help 'RYBLIP'
wait 4000
$funeral_mission_finished = 3
terminate_this_script 

:INTROST_844
goto @INTROST_11

:FLOW
script_name 'FLOW'

:FLOW_11
wait 1000
if 
  is_player_playing $player1
goto_if_false @FLOW_959
if 
  $onmission == 0
goto_if_false @FLOW_959
if 
  $girlfried_help_flag == 0
goto_if_false @FLOW_111
if 
  $flag_crash_mission_counter == 1
goto_if_false @FLOW_111
wait 5500
clear_help 
print_help 'GF_H000'
$girlfried_help_flag = 1

:FLOW_111
if 
  $oddjob_help_flag == 0
goto_if_false @FLOW_190
if 
  $flag_scrash_mission_counter == 1
goto_if_false @FLOW_190
wait 6000
clear_help 
print_help 'VAL_HLP'
wait 5000
clear_help 
print_help 'VAL_GOT'
$oddjob_help_flag = 1

:FLOW_190
if 
  $trucking_help_flag == 0
goto_if_false @FLOW_251
if 
  $flag_cat_mission3_passed == 1
goto_if_false @FLOW_251
wait 6000
clear_help 
print_help 'TRUCK_H'
$trucking_help_flag = 1

:FLOW_251
if 
  $stealth_help_flag == 0
goto_if_false @FLOW_312
if 
  $flag_strap_mission_counter > 1
goto_if_false @FLOW_312
wait 6000
clear_help 
print_help 'STELF'
$stealth_help_flag = 1

:FLOW_312
if 
  $got_gimp_suit == 0
goto_if_false @FLOW_373
if 
  $flag_heist_mission_counter == 2
goto_if_false @FLOW_373
wait 6000
clear_help 
print_help 'GIMPGOT'
$got_gimp_suit = 1

:FLOW_373
if 
  $camera_secret_help == 0
goto_if_false @FLOW_434
if 
  $flag_synd_mission_counter == 1
goto_if_false @FLOW_434
wait 6000
clear_help 
print_help 'SECRET'
$camera_secret_help = 1

:FLOW_434
if 
  $croupier_help == 0
goto_if_false @FLOW_495
if 
  $flag_heist_mission_counter == 6
goto_if_false @FLOW_495
wait 6000
clear_help 
print_help 'CRO_GOT'
$croupier_help = 1

:FLOW_495
if 
  $trigger_final_LA1_missions == 0
goto_if_false @FLOW_658
if 
  $flag_sweet_mission_counter == 9
goto_if_false @FLOW_658
if 
  $flag_smoke_mission_counter == 4
goto_if_false @FLOW_658
if 
  $flag_strap_mission_counter == 5
goto_if_false @FLOW_658
if 
  $flag_ryder_mission_counter == 3
goto_if_false @FLOW_658
if 
  $flag_crash_mission_counter == 2
goto_if_false @FLOW_658
if 
  $flag_cesar_mission_counter == 1
goto_if_false @FLOW_658
start_new_script @LA1FIN 
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$trigger_final_LA1_missions = 1

:FLOW_658
if 
  $trigger_scrash2_mission == 0
goto_if_false @FLOW_730
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @FLOW_730
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $crash_blip_icon
$trigger_scrash2_mission = 1

:FLOW_730
if 
  $trigger_ice_cold_mission == 0
goto_if_false @FLOW_800
if 
  $flag_synd_mission_counter == 5
goto_if_false @FLOW_800
remove_blip $synd_contact_blip
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$trigger_ice_cold_mission = 1

:FLOW_800
if 
  $trigger_final_synd_mission == 0
goto_if_false @FLOW_872
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @FLOW_872
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$trigger_final_synd_mission = 1

:FLOW_872
if 
  $trigger_final_LA2_missions == 0
goto_if_false @FLOW_959
if and
  $flag_grove_mission_counter == 2
  $flag_mansion_mission_counter == 4
goto_if_false @FLOW_959
start_new_script @RIOT 
remove_blip $grove_contact_blip
remove_blip $mansion_contact_blip
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$trigger_final_LA2_missions = 1
terminate_this_script 

:FLOW_959
goto @FLOW_11

:DOORS
script_name 'DOORS'
wait 0
  rotate_object $2708 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_165
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1852.0 {leftBottomY} -1990.7 {rightTopX} 1849.8 {rightTopY} -1989.6 {drawSphere} False
goto_if_false @DOORS_165
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_134
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1854.0 {y} -1990.0 {z} 12.5

:DOORS_134
do_fade 500 {direction} Fade.In

:DOORS_141
if 
  get_fading_status 
goto_if_false @DOORS_165
wait 0
goto @DOORS_141

:DOORS_165
  rotate_object $2709 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_315
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1867.3 {leftBottomY} -1985.2 {rightTopX} 1868.2 {rightTopY} -1982.7 {drawSphere} False
goto_if_false @DOORS_315
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_284
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1867.4 {y} -1987.1 {z} 12.5

:DOORS_284
do_fade 500 {direction} Fade.In

:DOORS_291
if 
  get_fading_status 
goto_if_false @DOORS_315
wait 0
goto @DOORS_291

:DOORS_315
  rotate_object $2710 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_465
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1866.5 {leftBottomY} -1998.3 {rightTopX} 1865.4 {rightTopY} -2000.4 {drawSphere} False
goto_if_false @DOORS_465
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_434
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1866.0 {y} -1996.7 {z} 12.5

:DOORS_434
do_fade 500 {direction} Fade.In

:DOORS_441
if 
  get_fading_status 
goto_if_false @DOORS_465
wait 0
goto @DOORS_441

:DOORS_465
  rotate_object $2711 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_615
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1899.6 {leftBottomY} -1985.2 {rightTopX} 1900.9 {rightTopY} -1982.7 {drawSphere} False
goto_if_false @DOORS_615
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_584
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1899.8 {y} -1986.7 {z} 12.5

:DOORS_584
do_fade 500 {direction} Fade.In

:DOORS_591
if 
  get_fading_status 
goto_if_false @DOORS_615
wait 0
goto @DOORS_591

:DOORS_615
  rotate_object $2712 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_765
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1914.1 {leftBottomY} -1992.7 {rightTopX} 1916.8 {rightTopY} -1994.2 {drawSphere} False
goto_if_false @DOORS_765
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_734
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.3 {y} -1993.2 {z} 12.5

:DOORS_734
do_fade 500 {direction} Fade.In

:DOORS_741
if 
  get_fading_status 
goto_if_false @DOORS_765
wait 0
goto @DOORS_741

:DOORS_765
  rotate_object $2713 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_915
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1899.0 {leftBottomY} -1998.1 {rightTopX} 1897.9 {rightTopY} -2000.4 {drawSphere} False
goto_if_false @DOORS_915
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_884
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1898.7 {y} -1996.1 {z} 12.5

:DOORS_884
do_fade 500 {direction} Fade.In

:DOORS_891
if 
  get_fading_status 
goto_if_false @DOORS_915
wait 0
goto @DOORS_891

:DOORS_915
  rotate_object $2714 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1065
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1901.0 {leftBottomY} -2020.1 {rightTopX} 1899.1 {rightTopY} -2019.1 {drawSphere} False
goto_if_false @DOORS_1065
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1034
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1902.7 {y} -2019.6 {z} 12.5

:DOORS_1034
do_fade 500 {direction} Fade.In

:DOORS_1041
if 
  get_fading_status 
goto_if_false @DOORS_1065
wait 0
goto @DOORS_1041

:DOORS_1065
  rotate_object $2715 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1215
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1914.1 {leftBottomY} -2020.8 {rightTopX} 1916.2 {rightTopY} -2021.8 {drawSphere} False
goto_if_false @DOORS_1215
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1184
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.4 {y} -2021.3 {z} 12.5

:DOORS_1184
do_fade 500 {direction} Fade.In

:DOORS_1191
if 
  get_fading_status 
goto_if_false @DOORS_1215
wait 0
goto @DOORS_1191

:DOORS_1215
  rotate_object $2716 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1365
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1906.5 {leftBottomY} -2035.3 {rightTopX} 1905.5 {rightTopY} -2037.2 {drawSphere} False
goto_if_false @DOORS_1365
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1334
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1905.8 {y} -2033.4 {z} 12.5

:DOORS_1334
do_fade 500 {direction} Fade.In

:DOORS_1341
if 
  get_fading_status 
goto_if_false @DOORS_1365
wait 0
goto @DOORS_1341

:DOORS_1365
  rotate_object $2717 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1515
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1852.0 {leftBottomY} -2020.1 {rightTopX} 1850.1 {rightTopY} -2019.2 {drawSphere} False
goto_if_false @DOORS_1515
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1484
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1853.7 {y} -2019.4 {z} 12.5

:DOORS_1484
do_fade 500 {direction} Fade.In

:DOORS_1491
if 
  get_fading_status 
goto_if_false @DOORS_1515
wait 0
goto @DOORS_1491

:DOORS_1515
  rotate_object $2718 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1665
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1865.0 {leftBottomY} -2020.7 {rightTopX} 1867.1 {rightTopY} -2021.8 {drawSphere} False
goto_if_false @DOORS_1665
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1634
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1863.0 {y} -2021.3 {z} 12.5

:DOORS_1634
do_fade 500 {direction} Fade.In

:DOORS_1641
if 
  get_fading_status 
goto_if_false @DOORS_1665
wait 0
goto @DOORS_1641

:DOORS_1665
  rotate_object $2719 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1815
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1857.6 {leftBottomY} -2035.2 {rightTopX} 1856.5 {rightTopY} -2037.2 {drawSphere} False
goto_if_false @DOORS_1815
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1784
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1857.1 {y} -2033.3 {z} 12.5

:DOORS_1784
do_fade 500 {direction} Fade.In

:DOORS_1791
if 
  get_fading_status 
goto_if_false @DOORS_1815
wait 0
goto @DOORS_1791

:DOORS_1815
terminate_this_script 

:BACKON
script_name 'BACKON'
wait 5000
show_update_stats True
terminate_this_script 

:CASHWIN
script_name 'CASHWIN'
$game_timer = get_game_timer 
if 
  1@ == 0
goto_if_false @CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
goto @CASHWIN_73

:CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
add_int_lvar_to_int_lvar 3@ += 1@

:CASHWIN_73
wait 0
if 
  not is_player_playing $player1
goto_if_false @CASHWIN_95
terminate_this_script 

:CASHWIN_95
$game_timer = get_game_timer 
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @CASHWIN_121
terminate_this_script 

:CASHWIN_121
if 
  0@ == 0
goto_if_false @CASHWIN_234
gosub @CASHWIN_576
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  2@ == 69
goto_if_false @CASHWIN_206
display_text 320.0 {offsetTop} 180.333 {key} 'BJ_PUSH'
goto @CASHWIN_227

:CASHWIN_206
display_text 320.0 {offsetTop} 180.333 {key} 'NOWIN'

:CASHWIN_227
goto @CASHWIN_569

:CASHWIN_234
if 
  0@ > 0
goto_if_false @CASHWIN_422
gosub @CASHWIN_576
switch_start 2@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_384 {caseNum1} 45 {caseLabel1} @CASHWIN_322 {caseNum2} 80 {caseLabel2} @CASHWIN_353 {caseNum3} -1 {caseLabel3} @CASHWIN_415 {caseNum4} -1 {caseLabel4} @CASHWIN_415 {caseNum5} -1 {caseLabel5} @CASHWIN_415 {caseNum6} -1 {caseLabel6} @CASHWIN_415 {caseNum7} -1 {caseLabel7} @CASHWIN_415

:CASHWIN_322
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'ALLRACE' {num} 0@
goto @CASHWIN_415

:CASHWIN_353
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'PL_07' {num} 0@
goto @CASHWIN_415

:CASHWIN_384
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'WINNER' {num} 0@
goto @CASHWIN_415

:CASHWIN_415
goto @CASHWIN_569

:CASHWIN_422
set_var_int_to_lvar_int $sequence_task_obj = 0@
$sequence_task_obj *= -1
gosub @CASHWIN_576
switch_start 2@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_538 {caseNum1} 80 {caseLabel1} @CASHWIN_507 {caseNum2} -1 {caseLabel2} @CASHWIN_569 {caseNum3} -1 {caseLabel3} @CASHWIN_569 {caseNum4} -1 {caseLabel4} @CASHWIN_569 {caseNum5} -1 {caseLabel5} @CASHWIN_569 {caseNum6} -1 {caseLabel6} @CASHWIN_569 {caseNum7} -1 {caseLabel7} @CASHWIN_569

:CASHWIN_507
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'PL_10' {num} $sequence_task_obj
goto @CASHWIN_569

:CASHWIN_538
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'LOSER' {num} $sequence_task_obj
goto @CASHWIN_569

:CASHWIN_569
goto @CASHWIN_73

:CASHWIN_576
set_text_right_justify False
set_text_justify False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = get_hud_colour 6
set_text_colour $temp_integer_1 {green} $temp_integer_2 {blue} $temp_integer_3 {alpha} 255
return 

:CRANES
script_name 'CRANES'
goto @CRANES_40
$sf_crane1_arm_LOD = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANES_40
wait 100
if 
  is_player_playing $player1
goto_if_false @CRANES_507
if 
  locate_char_any_means_2d $scplayer {x} -2080.4409 {y} 256.015 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_168
0@ = get_number_of_instances_of_streamed_script 67
if 
  0@ == 0
goto_if_false @CRANES_164
stream_script 67
if 
  has_streamed_script_loaded 67
goto_if_false @CRANES_157
start_new_streamed_script 67 {args} $carterwall 
0@ += 1

:CRANES_157
goto @CRANES_168

:CRANES_164
mark_streamed_script_as_no_longer_needed 67

:CRANES_168
if 
  locate_char_any_means_2d $scplayer {x} 2399.2019 {y} 1879.139 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_276
0@ = get_number_of_instances_of_streamed_script 67
if 
  0@ == 0
goto_if_false @CRANES_272
stream_script 67
if 
  has_streamed_script_loaded 67
goto_if_false @CRANES_265
start_new_streamed_script 67 {args} $quarry_arm 
0@ += 1

:CRANES_265
goto @CRANES_276

:CRANES_272
mark_streamed_script_as_no_longer_needed 67

:CRANES_276
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANES_393
if 
  locate_char_any_means_object_2d $scplayer {object} $sf_crane1_arm_LOD {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CRANES_393
0@ = get_number_of_instances_of_streamed_script 68
if 
  0@ == 0
goto_if_false @CRANES_389
stream_script 68
if 
  has_streamed_script_loaded 68
goto_if_false @CRANES_382
start_new_streamed_script 68 {args} $sf_crane1_arm_LOD 
0@ += 1

:CRANES_382
goto @CRANES_393

:CRANES_389
mark_streamed_script_as_no_longer_needed 68

:CRANES_393
if 
  locate_char_any_means_2d $scplayer {x} 709.45 {y} 915.93 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_507
0@ = get_number_of_instances_of_streamed_script 69
if 
  0@ == 0
goto_if_false @CRANES_503
stream_script 69
if 
  has_streamed_script_loaded 69
goto_if_false @CRANES_496
start_new_streamed_script 69 {args} $arm_rotate_y $quarry_base $quarry_stand 
0@ += 1

:CRANES_496
goto @CRANES_507

:CRANES_503
mark_streamed_script_as_no_longer_needed 69

:CRANES_507
goto @CRANES_40

:ENTEXT
script_name 'ENTEXT'
0@ = -1

:ENTEXT_18
if 
  not is_int_lvar_equal_to_int_var 0@ == $entry_exit_area
goto_if_false @ENTEXT_53
wait 0
0@ = get_area_visible 
goto @ENTEXT_18

:ENTEXT_53
switch_entry_exit s$entry_exit_name {state} $entry_exit_status
terminate_this_script 

:ENTEXT_63
$player_is_completely_safe = 0
if 
  is_player_playing $player1
goto_if_false @ENTEXT_212
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_212
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_212
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @ENTEXT_212
if 
  not is_minigame_in_progress 
goto_if_false @ENTEXT_212
if 
  can_player_start_mission $player1
goto_if_false @ENTEXT_212
$player_is_completely_safe = 1

:ENTEXT_212
return 

:ENTEXT_214
$player_is_completely_safe_for_mobile = 0
if 
  is_player_playing $player1
goto_if_false @ENTEXT_449
if 
  $onmission == 0
goto_if_false @ENTEXT_449
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_449
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_449
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @ENTEXT_449
if 
  not is_minigame_in_progress 
goto_if_false @ENTEXT_449
if 
  can_player_start_mission $player1
goto_if_false @ENTEXT_449
if 
  is_char_on_foot $scplayer
goto_if_false @ENTEXT_449
if 
  not is_gang_war_fighting_going_on 
goto_if_false @ENTEXT_449
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @ENTEXT_449
$timer_mobile_now = get_game_timer 
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
$player_is_completely_safe_for_mobile = 1

:ENTEXT_449
return 

:OPENUP
script_name 'OPENUP'

:OPENUP_11
wait 2000
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_311
if 
  $opened_badlands_up == 0
goto_if_false @OPENUP_311
gosub @OPENUP_1660
$save_housepickup[8] = create_forsale_property_pickup $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {price} $1661 {message} 'PROP_3'
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.PropertyG
change_blip_display $1629 {display} BlipDisplay.BlipOnly
$save_housepickup[19] = create_forsale_property_pickup $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {price} $1672 {message} 'PROP_3'
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.PropertyG
change_blip_display $1640 {display} BlipDisplay.BlipOnly
$save_housepickup[22] = create_forsale_property_pickup $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {price} $1675 {message} 'PROP_3'
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.PropertyG
change_blip_display $1643 {display} BlipDisplay.BlipOnly
$save_housepickup[25] = create_forsale_property_pickup $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {price} $1678 {message} 'PROP_3'
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.PropertyG
change_blip_display $1646 {display} BlipDisplay.BlipOnly
$save_housepickup[31] = create_forsale_property_pickup $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {price} $1684 {message} 'PROP_3'
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.PropertyG
change_blip_display $1652 {display} BlipDisplay.BlipOnly
$opened_badlands_up = 1

:OPENUP_311
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_781
if or
  $flag_truth_mission_counter > 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_781
if 
  $opened_sanfran_up == 0
goto_if_false @OPENUP_781
gosub @OPENUP_1712
$save_housepickup[11] = create_forsale_property_pickup $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {price} $1664 {message} 'PROP_3'
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.PropertyG
change_blip_display $1632 {display} BlipDisplay.BlipOnly
$save_housepickup[13] = create_forsale_property_pickup $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {price} $1666 {message} 'PROP_3'
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.PropertyG
change_blip_display $1634 {display} BlipDisplay.BlipOnly
$save_housepickup[14] = create_forsale_property_pickup $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {price} $1667 {message} 'PROP_3'
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.PropertyG
change_blip_display $1635 {display} BlipDisplay.BlipOnly
$save_housepickup[18] = create_forsale_property_pickup $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {price} $1671 {message} 'PROP_3'
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.PropertyG
change_blip_display $1639 {display} BlipDisplay.BlipOnly
$save_housepickup[20] = create_forsale_property_pickup $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {price} $1673 {message} 'PROP_3'
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.PropertyG
change_blip_display $1641 {display} BlipDisplay.BlipOnly
$save_housepickup[21] = create_forsale_property_pickup $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {price} $1674 {message} 'PROP_3'
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.PropertyG
change_blip_display $1642 {display} BlipDisplay.BlipOnly
$2631 = add_short_range_sprite_blip_for_coord 1458.7 {y} -1140.0 {z} 24.2 {sprite} RadarSprite.Tshirt
$clothes_blips = add_short_range_sprite_blip_for_coord -1886.1 {y} 862.4 {z} 35.2 {sprite} RadarSprite.Tshirt
$2633 = add_short_range_sprite_blip_for_coord 2574.3 {y} 1901.7 {z} 11.0 {sprite} RadarSprite.Tshirt
$2634 = add_short_range_sprite_blip_for_coord 2090.5 {y} 2221.0 {z} 11.0 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CLOTHGP' {state} True
$opened_sanfran_up = 1

:OPENUP_781
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_978
if 
  $opened_desert_up == 0
goto_if_false @OPENUP_978
gosub @OPENUP_1774
$save_housepickup[5] = create_forsale_property_pickup $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {price} $1658 {message} 'PROP_3'
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.PropertyG
change_blip_display $1626 {display} BlipDisplay.BlipOnly
$save_housepickup[23] = create_forsale_property_pickup $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {price} $1676 {message} 'PROP_3'
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.PropertyG
change_blip_display $1644 {display} BlipDisplay.BlipOnly
$save_housepickup[24] = create_forsale_property_pickup $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {price} $1677 {message} 'PROP_3'
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.PropertyG
change_blip_display $1645 {display} BlipDisplay.BlipOnly
$opened_desert_up = 1

:OPENUP_978
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_1573
if or
  $1403 == 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_1573
if 
  $opened_vegas_up == 0
goto_if_false @OPENUP_1573
gosub @OPENUP_1806
$save_housepickup[4] = create_forsale_property_pickup $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {price} $1657 {message} 'PROP_3'
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.PropertyG
change_blip_display $1625 {display} BlipDisplay.BlipOnly
$save_housepickup[6] = create_forsale_property_pickup $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {price} $1659 {message} 'PROP_3'
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.PropertyG
change_blip_display $1627 {display} BlipDisplay.BlipOnly
$save_housepickup[7] = create_forsale_property_pickup $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {price} $1660 {message} 'PROP_3'
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.PropertyG
change_blip_display $1628 {display} BlipDisplay.BlipOnly
$save_housepickup[9] = create_forsale_property_pickup $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {price} $1662 {message} 'PROP_3'
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.PropertyG
change_blip_display $1630 {display} BlipDisplay.BlipOnly
$save_housepickup[16] = create_forsale_property_pickup $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {price} $1669 {message} 'PROP_3'
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.PropertyG
change_blip_display $1637 {display} BlipDisplay.BlipOnly
$save_housepickup[17] = create_forsale_property_pickup $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {price} $1670 {message} 'PROP_3'
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.PropertyG
change_blip_display $1638 {display} BlipDisplay.BlipOnly
$save_housepickup[27] = create_forsale_property_pickup $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {price} $1680 {message} 'PROP_3'
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.PropertyG
change_blip_display $1648 {display} BlipDisplay.BlipOnly
$save_housepickup[28] = create_forsale_property_pickup $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {price} $1681 {message} 'PROP_3'
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.PropertyG
change_blip_display $1649 {display} BlipDisplay.BlipOnly
$save_housepickup[29] = create_forsale_property_pickup $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {price} $1682 {message} 'PROP_3'
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.PropertyG
change_blip_display $1650 {display} BlipDisplay.BlipOnly
$2642 = add_short_range_sprite_blip_for_coord 457.2 {y} -1500.7 {z} 31.3 {sprite} RadarSprite.Tshirt
$2643 = add_short_range_sprite_blip_for_coord 2795.2 {y} 2424.6001 {z} 11.0 {sprite} RadarSprite.Tshirt
$2646 = add_short_range_sprite_blip_for_coord -1692.9 {y} 952.8 {z} 26.3 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CSDESGN' {state} True
$opened_vegas_up = 1

:OPENUP_1573
if 
  $Return_cities_passed > 2
goto_if_false @OPENUP_1653
if 
  $opened_la2_up == 0
goto_if_false @OPENUP_1653
$2644 = add_short_range_sprite_blip_for_coord 451.9 {y} -1480.0 {z} 30.9 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CSEXL' {state} True
terminate_this_script 
$opened_la2_up = 1

:OPENUP_1653
goto @OPENUP_11

:OPENUP_1660
remove_blip $1629
remove_blip $1640
remove_blip $1643
remove_blip $1646
remove_blip $1652
remove_pickup $save_housepickup[8]
remove_pickup $save_housepickup[19]
remove_pickup $save_housepickup[22]
remove_pickup $save_housepickup[25]
remove_pickup $save_housepickup[31]
return 

:OPENUP_1712
remove_blip $1632
remove_blip $1634
remove_blip $1635
remove_blip $1639
remove_blip $1641
remove_blip $1642
remove_pickup $save_housepickup[11]
remove_pickup $save_housepickup[13]
remove_pickup $save_housepickup[14]
remove_pickup $save_housepickup[18]
remove_pickup $save_housepickup[20]
remove_pickup $save_housepickup[21]
return 

:OPENUP_1774
remove_blip $1626
remove_blip $1644
remove_blip $1645
remove_pickup $save_housepickup[5]
remove_pickup $save_housepickup[23]
remove_pickup $save_housepickup[24]
return 

:OPENUP_1806
remove_blip $1625
remove_blip $1627
remove_blip $1628
remove_blip $1630
remove_blip $1637
remove_blip $1638
remove_blip $1648
remove_blip $1649
remove_blip $1650
remove_pickup $save_housepickup[4]
remove_pickup $save_housepickup[6]
remove_pickup $save_housepickup[7]
remove_pickup $save_housepickup[9]
remove_pickup $save_housepickup[16]
remove_pickup $save_housepickup[17]
remove_pickup $save_housepickup[27]
remove_pickup $save_housepickup[28]
remove_pickup $save_housepickup[29]
return 

:LITCAS
script_name 'LITCAS'

:LITCAS_11
wait 100
if 
  is_player_playing $player1
goto_if_false @LITCAS_260
if 
  locate_char_any_means_3d $scplayer {x} 1941.146 {y} 997.5668 {z} 20.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @LITCAS_260
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @LITCAS_113
switch_widescreen True
set_player_control $player1 {state} False

:LITCAS_113
load_scene 2039.7321 {y} 1006.771 {z} 14.7353
set_fixed_camera_position 2040.725 {y} 1006.748 {z} 14.8482 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2039.7321 {y} 1006.771 {z} 14.7353 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
clear_prints 
print_now 'WUZ_HLP' {time} 5000 {flag} 1
wait 5000
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @LITCAS_251
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_prints 

:LITCAS_251
do_fade 500 {direction} Fade.In
terminate_this_script 

:LITCAS_260
goto @LITCAS_11

:LITCAS_267
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:LITCAS_282
if 
  get_fading_status 
goto_if_false @LITCAS_306
wait 0
goto @LITCAS_282

:LITCAS_306
return 

:Noname_1
terminate_this_script 

:PROJECT
script_name 'PROJECT'
10@ = 0
$points_scored = 0
$bball_throw_active = 1
if 
  10@ == -1
goto_if_false @PROJECT_94
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
9@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:PROJECT_94
wait 0
if 
  10@ == 0
goto_if_false @PROJECT_637
if 
  8@ == 1
goto_if_false @PROJECT_180
17@ = generate_random_float_in_range -0.2 {max} 0.2
add_float_lvar_to_float_lvar 4@ += 17@
17@ = generate_random_float_in_range -0.2 {max} 0.2
add_float_lvar_to_float_lvar 5@ += 17@

:PROJECT_180
6@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @PROJECT_247
if 
  0.0 > 7@
goto_if_false @PROJECT_240
7@ = 0.0

:PROJECT_240
goto @PROJECT_334

:PROJECT_247
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
set_lvar_float_to_lvar_float 18@ = 17@
sub_float_lvar_from_float_lvar 18@ -= 6@
if 
  0.5 > 18@
goto_if_false @PROJECT_334
set_lvar_float_to_lvar_float 17@ = 6@
17@ += 0.5
set_lvar_float_to_lvar_float 7@ = 17@
sub_float_lvar_from_float_lvar 7@ -= 3@

:PROJECT_334
17@ = 0.5
17@ *= 9.8
set_lvar_float_to_lvar_float 18@ = 7@
div_float_lvar_by_float_lvar 18@ /= 17@
28@ = sqrt 18@
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
sub_float_lvar_from_float_lvar 17@ -= 6@
18@ = 0.5
18@ *= 9.8
set_lvar_float_to_lvar_float 19@ = 17@
div_float_lvar_by_float_lvar 19@ /= 18@
17@ = sqrt 19@
set_lvar_float_to_lvar_float 16@ = 28@
add_float_lvar_to_float_lvar 16@ += 17@
17@ = 0.0
sub_float_lvar_from_float_lvar 17@ -= 7@
set_lvar_float_to_lvar_float 18@ = 28@
mult_float_lvar_by_float_lvar 18@ *= 28@
set_lvar_float_to_lvar_float 29@ = 17@
div_float_lvar_by_float_lvar 29@ /= 18@
set_lvar_float_to_lvar_float 17@ = 28@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 30@ = 17@
30@ *= -2.0
31@ = 0.0
set_lvar_float_to_lvar_float 26@ = 4@
sub_float_lvar_from_float_lvar 26@ -= 1@
set_lvar_float_to_lvar_float 27@ = 5@
sub_float_lvar_from_float_lvar 27@ -= 2@
11@ = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @PROJECT_630
set_object_records_collisions 0@ {state} True
set_object_collision 0@ {state} True
freeze_object_position 0@ {state} True

:PROJECT_630
10@ += 1

:PROJECT_637
if 
  10@ == 1
goto_if_false @PROJECT_1032
if 
  does_object_exist 0@
goto_if_false @PROJECT_1032
if 
  not has_object_collided_with_anything 0@
goto_if_false @PROJECT_954
12@ = get_game_timer 
set_lvar_int_to_lvar_int 13@ = 12@
sub_int_lvar_from_int_lvar 13@ -= 11@
cset_lvar_float_to_lvar_int 14@ =# 13@
14@ /= 1000.0
if 
  is_float_lvar_greater_than_float_lvar 16@ > 14@
goto_if_false @PROJECT_926
set_lvar_float_to_lvar_float 17@ = 14@
mult_float_lvar_by_float_lvar 17@ *= 14@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 18@ = 30@
mult_float_lvar_by_float_lvar 18@ *= 14@
set_var_float_to_lvar_float $z = 17@
add_float_lvar_to_float_var $z += 18@
add_float_lvar_to_float_var $z += 31@
set_lvar_float_to_lvar_float 17@ = 14@
div_float_lvar_by_float_lvar 17@ /= 16@
set_var_float_to_lvar_float $x = 26@
mult_float_var_by_float_lvar $x *= 17@
set_var_float_to_lvar_float $y = 27@
mult_float_var_by_float_lvar $y *= 17@
set_lvar_float_to_lvar_float 20@ = 1@
add_float_var_to_float_lvar 20@ += $x
set_lvar_float_to_lvar_float 21@ = 2@
add_float_var_to_float_lvar 21@ += $y
set_lvar_float_to_lvar_float 22@ = 3@
add_float_var_to_float_lvar 22@ += $z
set_object_coordinates_and_velocity 0@ {x} 20@ {y} 21@ {z} 22@
goto @PROJECT_947

:PROJECT_926
set_object_coordinates_and_velocity 0@ {x} 4@ {y} 5@ {z} 6@
10@ += 1

:PROJECT_947
goto @PROJECT_1032

:PROJECT_954
gosub @PROJECT_1685
freeze_object_position 0@ {state} False
set_object_dynamic 0@ {state} True
set_object_collision 0@ {state} True
set_object_velocity 0@ {xSpeed} 23@ {ySpeed} 24@ {zSpeed} 25@
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1025
print_now 'BB_06' {time} 4000 {flag} 1

:PROJECT_1025
10@ = 99

:PROJECT_1032
if 
  10@ == 2
goto_if_false @PROJECT_1396
if 
  8@ == 1
goto_if_false @PROJECT_1208
if 
  does_object_exist 9@
goto_if_false @PROJECT_1179
15@ = get_object_model 9@
if 
  has_model_loaded 15@
goto_if_false @PROJECT_1179
gosub @PROJECT_1685
freeze_object_position 0@ {state} False
set_object_dynamic 0@ {state} True
set_object_collision 0@ {state} True
set_object_velocity 0@ {xSpeed} 23@ {ySpeed} 24@ {zSpeed} 25@
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1179
print_now 'BB_06' {time} 4000 {flag} 1

:PROJECT_1179
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundBasketballHitHoop
$points_scored = -1
10@ = 99
goto @PROJECT_1396

:PROJECT_1208
6@ += -0.5
if 
  6 > $bball_shot_dist
goto_if_false @PROJECT_1285
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1271
print_with_2_numbers_now 'BB_05' {num1} $bball_shot_dist {num2} $bball_shot_dist_decimal {duration} 5000 {style} TextStyle.Middle

:PROJECT_1271
$points_scored = 1
goto @PROJECT_1327

:PROJECT_1285
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1320
print_with_2_numbers_now 'BB_04' {num1} $bball_shot_dist {num2} $bball_shot_dist_decimal {duration} 5000 {style} TextStyle.Middle

:PROJECT_1320
$points_scored = 2

:PROJECT_1327
cset_lvar_float_to_var_int 17@ =# $bball_shot_dist
cset_lvar_float_to_var_int 18@ =# $bball_shot_dist_decimal
18@ *= 0.1
add_float_lvar_to_float_lvar 17@ += 18@
if 
  not are_measurements_in_metres 
goto_if_false @PROJECT_1382
convert_metres_to_feet 17@ {var_feet} 17@

:PROJECT_1382
register_float_stat StatId.LongestBasketball {value} 17@
10@ += 1

:PROJECT_1396
if 
  10@ == 3
goto_if_false @PROJECT_1651
$x, $y, $z = get_object_coordinates 0@
17@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 4@ {toY} 5@ {toZ} 6@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundBasketballScore
if 
  0.1 > 17@
goto_if_false @PROJECT_1535
freeze_object_position 0@ {state} False
set_object_collision 0@ {state} True
set_object_dynamic 0@ {state} True
set_object_velocity 0@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
10@ = 99
goto @PROJECT_1651

:PROJECT_1535
set_lvar_float_to_lvar_float 20@ = 4@
sub_float_var_from_float_lvar 20@ -= $x
set_lvar_float_to_lvar_float 21@ = 5@
sub_float_var_from_float_lvar 21@ -= $y
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $z
20@ *= 0.3
21@ *= 0.3
22@ *= 0.3
add_float_lvar_to_float_var $x += 20@
add_float_lvar_to_float_var $y += 21@
add_float_lvar_to_float_var $z += 22@
set_object_coordinates 0@ {x} $x {y} $y {z} $z

:PROJECT_1651
if 
  10@ == 99
goto_if_false @PROJECT_1678
$bball_throw_active = 0
terminate_this_script 

:PROJECT_1678
goto @PROJECT_94

:PROJECT_1685
$x, $y, $z = get_object_coordinates 9@
17@ = generate_random_float_in_range -1.0 {max} 1.0
18@ = generate_random_float_in_range 0.2 {max} 1.0
19@ = generate_random_float_in_range 1.2 {max} 2.2
20@, 21@, 22@ = get_offset_from_object_in_world_coords 9@ {xOffset} 17@ {yOffset} 18@ {zOffset} 19@
set_lvar_float_to_lvar_float 23@ = 20@
sub_float_var_from_float_lvar 23@ -= $x
set_lvar_float_to_lvar_float 24@ = 21@
sub_float_var_from_float_lvar 24@ -= $y
set_lvar_float_to_lvar_float 25@ = 22@
sub_float_var_from_float_lvar 25@ -= $z
17@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 20@ {toY} 21@ {toZ} 22@
div_float_lvar_by_float_lvar 23@ /= 17@
div_float_lvar_by_float_lvar 24@ /= 17@
div_float_lvar_by_float_lvar 25@ /= 17@
set_lvar_float_to_lvar_float 17@ = 16@
17@ *= 5.0
mult_float_lvar_by_float_lvar 23@ *= 17@
mult_float_lvar_by_float_lvar 24@ *= 17@
mult_float_lvar_by_float_lvar 25@ *= 17@
return 

:Noname_2
terminate_this_script 

:BBCHAL
script_name 'BBCHAL'
19@ = 0
20@ = 0
21@ = 0
$bball_challenge_timer = 60500
$bball_challenge_score = 0
26@ = 0
27@ = 0
28@ = 0
29@ = 3000
30@ = 4.0
TIMERA = 0
TIMERB = 0
$bball_challenge_active = 1
if 
  19@ == -1
goto_if_false @BBCHAL_149
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:BBCHAL_149
wait 0
switch_start 19@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_244 {caseNum1} 0 {caseLabel1} @BBCHAL_216 {caseNum2} 1 {caseLabel2} @BBCHAL_230 {caseNum3} -1 {caseLabel3} @BBCHAL_244 {caseNum4} -1 {caseLabel4} @BBCHAL_244 {caseNum5} -1 {caseLabel5} @BBCHAL_244 {caseNum6} -1 {caseLabel6} @BBCHAL_244 {caseNum7} -1 {caseLabel7} @BBCHAL_244

:BBCHAL_216
gosub @BBCHAL_580
goto @BBCHAL_244

:BBCHAL_230
gosub @BBCHAL_916
goto @BBCHAL_244

:BBCHAL_244
if and
  $bball_active == 0
  $bball_throw_active == 0
goto_if_false @BBCHAL_276
gosub @BBCHAL_2538

:BBCHAL_276
gosub @BBCHAL_395
if 
  $bball_camera_type == 0
goto_if_false @BBCHAL_308
gosub @BBCHAL_2538

:BBCHAL_308
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBCHAL_364
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBCHAL_357
$bball_r3_is_pressed = 1
gosub @BBCHAL_2538

:BBCHAL_357
goto @BBCHAL_388

:BBCHAL_364
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBCHAL_388
$bball_r3_is_pressed = 0

:BBCHAL_388
goto @BBCHAL_149

:BBCHAL_395
switch_start 21@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_578 {caseNum1} 0 {caseLabel1} @BBCHAL_458 {caseNum2} 1 {caseLabel2} @BBCHAL_498 {caseNum3} 2 {caseLabel3} @BBCHAL_538 {caseNum4} -1 {caseLabel4} @BBCHAL_578 {caseNum5} -1 {caseLabel5} @BBCHAL_578 {caseNum6} -1 {caseLabel6} @BBCHAL_578 {caseNum7} -1 {caseLabel7} @BBCHAL_578

:BBCHAL_458
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_491
print_help 'BB_11'
21@ += 1

:BBCHAL_491
goto @BBCHAL_578

:BBCHAL_498
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_531
print_help 'BB_12'
21@ += 1

:BBCHAL_531
goto @BBCHAL_578

:BBCHAL_538
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_571
print_help 'BB_10'
21@ += 1

:BBCHAL_571
goto @BBCHAL_578

:BBCHAL_578
return 

:BBCHAL_580
if 
  20@ == 0
goto_if_false @BBCHAL_628
print_now 'BB_13' {time} 5000 {flag} 1
TIMERA = 0
20@ += 1

:BBCHAL_628
if 
  20@ == 1
goto_if_false @BBCHAL_653
20@ += 1

:BBCHAL_653
if 
  20@ == 2
goto_if_false @BBCHAL_751
display_onscreen_timer_with_string $bball_challenge_timer {direction} TimerDirection.Down {text} 'BB_19'
display_nth_onscreen_counter_with_string $bball_challenge_score {display} CounterDisplay.Number {slot} 1 {text} 'BB_18'
display_nth_onscreen_counter_with_string $bball_challenge_high_score {display} CounterDisplay.Number {slot} 2 {text} 'BB_14'
gosub @BBCHAL_2396
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
20@ += 1

:BBCHAL_751
if 
  20@ == 3
goto_if_false @BBCHAL_914
if 
  is_player_playing $player1
goto_if_false @BBCHAL_914
if 
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True
goto_if_false @BBCHAL_904
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_887
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_866
remove_blip 1@

:BBCHAL_866
20@ = 1
19@ += 1
goto @BBCHAL_897

:BBCHAL_887
$bball_challenge_timer = 60500

:BBCHAL_897
goto @BBCHAL_914

:BBCHAL_904
$bball_challenge_timer = 60500

:BBCHAL_914
return 

:BBCHAL_916
if 
  20@ == 0
goto_if_false @BBCHAL_1135
if 
  $points_scored <> 0
goto_if_false @BBCHAL_1135
if 
  $points_scored > 0
goto_if_false @BBCHAL_1052
add_int_var_to_int_var $bball_challenge_score += $points_scored
add_int_lvar_to_int_var $bball_challenge_timer += 25@
30@ += 0.5
gosub @BBCHAL_2396
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1024
remove_blip 1@

:BBCHAL_1024
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
20@ += 1
goto @BBCHAL_1135

:BBCHAL_1052
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1073
remove_blip 1@

:BBCHAL_1073
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
if 
  27@ == 0
goto_if_false @BBCHAL_1128
print_now 'BB_20' {time} 5000 {flag} 1
27@ += 1

:BBCHAL_1128
20@ += 1

:BBCHAL_1135
if 
  20@ == 1
goto_if_false @BBCHAL_1380
if 
  is_player_playing $player1
goto_if_false @BBCHAL_1200
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True

:BBCHAL_1200
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_1373
if 
  is_player_playing $player1
goto_if_false @BBCHAL_1366
if 
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True
goto_if_false @BBCHAL_1318
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1297
remove_blip 1@

:BBCHAL_1297
20@ = 0
$bball_throw_active = 0
goto @BBCHAL_1366

:BBCHAL_1318
if 
  28@ == 0
goto_if_false @BBCHAL_1359
print_now 'BB_16' {time} 5000 {flag} 1
28@ += 1

:BBCHAL_1359
$bball_throw_active = 0

:BBCHAL_1366
goto @BBCHAL_1380

:BBCHAL_1373
28@ = 0

:BBCHAL_1380
if 
  20@ == 3
goto_if_false @BBCHAL_1424
if 
  TIMERA > 5000
goto_if_false @BBCHAL_1424
gosub @BBCHAL_2538

:BBCHAL_1424
if 
  26@ == 0
goto_if_false @BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1476
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score
26@ += 1

:BBCHAL_1476
goto @BBCHAL_1510

:BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1510
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score

:BBCHAL_1510
if 
  0 >= $bball_challenge_timer
goto_if_false @BBCHAL_1576
if 
  3 > 20@
goto_if_false @BBCHAL_1569
print_now 'BB_17' {time} 5000 {flag} 1
TIMERA = 0

:BBCHAL_1569
20@ = 3

:BBCHAL_1576
return 

:BBCHAL_1578
if 
  does_object_exist 0@
goto_if_false @BBCHAL_2394
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
switch_start $bball_court_z {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_1893 {caseNum1} 1 {caseLabel1} @BBCHAL_1705 {caseNum2} 2 {caseLabel2} @BBCHAL_1752 {caseNum3} 3 {caseLabel3} @BBCHAL_1799 {caseNum4} 4 {caseLabel4} @BBCHAL_1846 {caseNum5} -1 {caseLabel5} @BBCHAL_1893 {caseNum6} -1 {caseLabel6} @BBCHAL_1893 {caseNum7} -1 {caseLabel7} @BBCHAL_1893

:BBCHAL_1705
2@ += -1.5
3@ += 1.5
5@ += 1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1752
2@ += -1.5
3@ += -1.5
5@ += 1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1799
2@ += 1.5
3@ += -1.5
5@ += -1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1846
2@ += 1.5
3@ += 1.5
5@ += -1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1893
4@ += 5.0
16@ = get_ground_z_for_3d_coord 2@ {y} 3@ {z} 4@
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_1954
14@ = generate_random_float_in_range 2@ {max} 5@
goto @BBCHAL_1965

:BBCHAL_1954
14@ = generate_random_float_in_range 5@ {max} 2@

:BBCHAL_1965
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2002
15@ = generate_random_float_in_range 3@ {max} 6@
goto @BBCHAL_2013

:BBCHAL_2002
15@ = generate_random_float_in_range 3@ {max} 6@

:BBCHAL_2013
set_lvar_float_to_lvar_float 8@ = 14@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 15@
sub_float_var_from_float_lvar 9@ -= $y
17@ = get_distance_between_coords_2d $x {fromY} $y {toX} 14@ {toZ} 15@
div_float_lvar_by_float_lvar 8@ /= 17@
div_float_lvar_by_float_lvar 9@ /= 17@
mult_float_lvar_by_float_lvar 8@ *= 30@
mult_float_lvar_by_float_lvar 9@ *= 30@
set_lvar_float_to_var_float 14@ = $x
add_float_lvar_to_float_lvar 14@ += 8@
set_lvar_float_to_var_float 15@ = $y
add_float_lvar_to_float_lvar 15@ += 9@
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 2@ > 14@
goto_if_false @BBCHAL_2172
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2172
if 
  is_float_lvar_greater_than_float_lvar 14@ > 5@
goto_if_false @BBCHAL_2199
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2199
goto @BBCHAL_2260

:BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 14@ > 2@
goto_if_false @BBCHAL_2233
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2233
if 
  is_float_lvar_greater_than_float_lvar 5@ > 14@
goto_if_false @BBCHAL_2260
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2260
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 3@ > 15@
goto_if_false @BBCHAL_2306
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2306
if 
  is_float_lvar_greater_than_float_lvar 15@ > 6@
goto_if_false @BBCHAL_2333
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2333
goto @BBCHAL_2394

:BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 15@ > 3@
goto_if_false @BBCHAL_2367
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2367
if 
  is_float_lvar_greater_than_float_lvar 6@ > 15@
goto_if_false @BBCHAL_2394
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2394
return 

:BBCHAL_2396
gosub @BBCHAL_1578
if 
  does_object_exist 0@
goto_if_false @BBCHAL_2435
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0

:BBCHAL_2435
$distance = get_distance_between_coords_2d 14@ {fromY} 15@ {toX} $x {toZ} $y
cset_lvar_int_to_var_float 25@ =# $distance
mult_int_lvar_by_int_lvar 25@ *= 29@
cset_lvar_float_to_lvar_int 17@ =# 29@
17@ *= 0.1
cset_lvar_int_to_lvar_float 22@ =# 17@
22@ *= -1
add_int_lvar_to_int_lvar 29@ += 22@
if 
  500 > 29@
goto_if_false @BBCHAL_2536
29@ = 500

:BBCHAL_2536
return 

:BBCHAL_2538
clear_prints 
if 
  26@ <> 0
goto_if_false @BBCHAL_2589
print_with_number_big 'BB_15' {num} $bball_challenge_high_score {duration} 5000 {style} TextStyle.Middle
register_int_stat StatId.HighestScoreInBasketballChallenge {value} $bball_challenge_high_score
play_mission_passed_tune 1

:BBCHAL_2589
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_2610
remove_blip 1@

:BBCHAL_2610
clear_onscreen_counter $bball_challenge_score
clear_onscreen_counter $bball_challenge_high_score
clear_onscreen_timer $bball_challenge_timer
$bball_challenge_active = 0
terminate_this_script 
return 

:Noname_3
terminate_this_script 

:LOWGAME
script_name 'LOWGAME'
12@ = 0.01
$lowrider_level = 0
13@ = 0
16@ = 0
$lowrider_pscore = 0
$lowrider_oscore = 0
18@ = 0
23@ = 0
24@ = 0
25@ = -1
27@ = 0
19@ = 0
if 
  13@ == -1
goto_if_false @LOWGAME_186
0@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:LOWGAME_186
if 
  does_vehicle_exist 0@
goto_if_false @LOWGAME_232
if 
  is_car_dead 0@
goto_if_false @LOWGAME_225
goto @LOWGAME_8722

:LOWGAME_225
goto @LOWGAME_239

:LOWGAME_232
goto @LOWGAME_8722

:LOWGAME_239
if 
  does_vehicle_exist 1@
goto_if_false @LOWGAME_285
if 
  is_car_dead 1@
goto_if_false @LOWGAME_278
goto @LOWGAME_8722

:LOWGAME_278
goto @LOWGAME_292

:LOWGAME_285
goto @LOWGAME_8722

:LOWGAME_292
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWGAME_324
$lowrider_opposition_skill = 1
goto @LOWGAME_349

:LOWGAME_324
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWGAME_349
$lowrider_opposition_skill = 5

:LOWGAME_349
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_379
3@, 4@, 5@ = get_car_coordinates 0@

:LOWGAME_379
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_409
6@, 7@, 8@ = get_car_coordinates 1@

:LOWGAME_409
$lowrider_game_is_active = 1

:LOWGAME_416
wait 0
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @LOWGAME_496
if 
  is_char_in_any_car $scplayer
goto_if_false @LOWGAME_496
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @LOWGAME_489
set_car_hydraulics $car {state} False
goto @LOWGAME_496

:LOWGAME_489
set_car_hydraulics $car {state} True

:LOWGAME_496
switch_start 13@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7662 {caseNum1} 0 {caseLabel1} @LOWGAME_559 {caseNum2} 1 {caseLabel2} @LOWGAME_1335 {caseNum3} 2 {caseLabel3} @LOWGAME_1415 {caseNum4} 3 {caseLabel4} @LOWGAME_7512 {caseNum5} 4 {caseLabel5} @LOWGAME_7526 {caseNum6} 5 {caseLabel6} @LOWGAME_7601 {caseNum7} -1 {caseLabel7} @LOWGAME_7662

:LOWGAME_559
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 3@ {y} 4@ {z} 5@ {radius} 200.0 {clearParticles} True
request_animation "LOWRIDER"

:LOWGAME_603
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWGAME_637
wait 0
goto @LOWGAME_603

:LOWGAME_637
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_712
lock_car_doors 0@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$x = 0.62
$y = 0.31
$z = -0.167

:LOWGAME_712
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 15@ {state} True
close_sequence_task 15@
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_1084
if 
  is_char_attached_to_any_car 2@
goto_if_false @LOWGAME_1084
perform_sequence_task 2@ {sequence} 15@

:LOWGAME_1084
16@ = 0
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_1240
if or
  is_car_model 0@ {modelId} 534
  is_car_model 0@ {modelId} 535
  is_car_model 0@ {modelId} 576
goto_if_false @LOWGAME_1156
16@ = 1
goto @LOWGAME_1240

:LOWGAME_1156
if or
  is_car_model 0@ {modelId} 536
  is_car_model 0@ {modelId} 575
  is_car_model 0@ {modelId} 567
goto_if_false @LOWGAME_1233
17@ = get_current_car_mod 0@ {slot} ModSlot.Roof
if 
  17@ <> -1
goto_if_false @LOWGAME_1226
16@ = 1

:LOWGAME_1226
goto @LOWGAME_1240

:LOWGAME_1233
16@ = 1

:LOWGAME_1240
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_1279
if 
  not is_char_attached_to_any_car 2@
goto_if_false @LOWGAME_1279
16@ = 1

:LOWGAME_1279
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0
$lowrider_pscore = 0
$lowr_overall_state = 0
$lowrider_oscore = 0
13@ += 1
goto @LOWGAME_7662

:LOWGAME_1335
17@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_1408
display_nth_onscreen_counter_with_string $lowrider_pscore {display} CounterDisplay.Number {slot} 1 {text} 'LOWR1'
display_nth_onscreen_counter_with_string $lowrider_oscore {display} CounterDisplay.Number {slot} 2 {text} 'LOWR2'
13@ += 1
TIMERA = 0

:LOWGAME_1408
goto @LOWGAME_7662

:LOWGAME_1415
17@ = get_beat_track_status 
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @LOWGAME_1445
TIMERA = 90000

:LOWGAME_1445
20@, 21@, 22@ = get_beat_proximity -1
if 
  21@ <> 33
goto_if_false @LOWGAME_7491
force_big_message_and_counter True
gosub @LOWGAME_10566
20@, 21@, 22@ = get_beat_proximity 0
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 25@
goto_if_false @LOWGAME_2087
28@ = -1
if 
  18@ <> 0
goto_if_false @LOWGAME_2000
if and
  20@ > -35
  35 > 20@
goto_if_false @LOWGAME_1623
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1602
28@ = 0
goto @LOWGAME_1616

:LOWGAME_1602
23@ = 1
28@ = 5

:LOWGAME_1616
goto @LOWGAME_1894

:LOWGAME_1623
if and
  20@ > -50
  50 > 20@
goto_if_false @LOWGAME_1702
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1681
28@ = 1
goto @LOWGAME_1695

:LOWGAME_1681
23@ = 1
28@ = 5

:LOWGAME_1695
goto @LOWGAME_1894

:LOWGAME_1702
if and
  20@ > -100
  100 > 20@
goto_if_false @LOWGAME_1781
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1760
28@ = 2
goto @LOWGAME_1774

:LOWGAME_1760
23@ = 1
28@ = 5

:LOWGAME_1774
goto @LOWGAME_1894

:LOWGAME_1781
if or
  20@ > -200
  200 > 20@
goto_if_false @LOWGAME_1894
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1880
23@ = 1
if 
  0 > 20@
goto_if_false @LOWGAME_1866
28@ = 3
goto @LOWGAME_1873

:LOWGAME_1866
28@ = 4

:LOWGAME_1873
goto @LOWGAME_1894

:LOWGAME_1880
23@ = 1
28@ = 5

:LOWGAME_1894
$BD_RenderHit = 1
if 
  28@ == 0
goto_if_false @LOWGAME_1940
set_var_int_to_constant $BD_RenderHit = 3
30@ += 1
goto @LOWGAME_1993

:LOWGAME_1940
if 
  28@ == 1
goto_if_false @LOWGAME_1979
set_var_int_to_constant $BD_RenderHit = 2
30@ += 1
goto @LOWGAME_1993

:LOWGAME_1979
set_var_int_to_constant $BD_RenderHit = 1
31@ += 1

:LOWGAME_1993
goto @LOWGAME_2040

:LOWGAME_2000
if 
  -200 > 20@
goto_if_false @LOWGAME_2040
23@ = 1
28@ = 3
31@ += 1

:LOWGAME_2040
if 
  28@ <> -1
goto_if_false @LOWGAME_2087
gosub @LOWGAME_9681
gosub @LOWGAME_10047
gosub @LOWGAME_8731
set_lvar_int_to_lvar_int 25@ = 22@

:LOWGAME_2087
if 
  0 > $lowrider_pscore
goto_if_false @LOWGAME_2112
$lowrider_pscore = 0

:LOWGAME_2112
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_2255
if 
  not locate_car_2d 0@ {x} 3@ {y} 4@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @LOWGAME_2255
$x, $y, $z = get_car_coordinates 0@
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 4@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
apply_force_to_car 0@ {xOffset} 9@ {yOffset} 10@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWGAME_2255
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_2398
if 
  not locate_car_2d 1@ {x} 6@ {y} 7@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @LOWGAME_2398
$x, $y, $z = get_car_coordinates 1@
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 7@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
apply_force_to_car 1@ {xOffset} 9@ {yOffset} 10@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWGAME_2398
if and
  100 > 20@
  20@ > -100
goto_if_false @LOWGAME_2928
if 
  21@ == 9
goto_if_false @LOWGAME_2481
$wheel_fl = 1.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2481
if 
  21@ == 10
goto_if_false @LOWGAME_2539
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 1.0

:LOWGAME_2539
if 
  21@ == 11
goto_if_false @LOWGAME_2597
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2597
if 
  21@ == 12
goto_if_false @LOWGAME_2655
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2655
if 
  21@ == 13
goto_if_false @LOWGAME_2713
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2713
if 
  21@ == 14
goto_if_false @LOWGAME_2771
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2771
if 
  21@ == 15
goto_if_false @LOWGAME_2829
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2829
if 
  21@ == 16
goto_if_false @LOWGAME_2887
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2887
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 27@
goto_if_false @LOWGAME_2921
gosub @LOWGAME_7669
set_lvar_int_to_lvar_int 27@ = 22@

:LOWGAME_2921
goto @LOWGAME_2968

:LOWGAME_2928
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2968
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_3001
control_car_hydraulics 1@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:LOWGAME_3001
if 
  16@ == 0
goto_if_false @LOWGAME_7453
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3062
if 
  18@ <> 0
goto_if_false @LOWGAME_3062
$lowrider_level = 0

:LOWGAME_3062
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_3112
if 
  30@ > 5
goto_if_false @LOWGAME_3112
$lowrider_level += 1
30@ = 0

:LOWGAME_3112
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_3169
if 
  30@ > 5
goto_if_false @LOWGAME_3169
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3169
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_3258
if 
  30@ > 5
goto_if_false @LOWGAME_3226
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3226
if 
  31@ > 1
goto_if_false @LOWGAME_3258
$lowrider_level -= 1
31@ = 0

:LOWGAME_3258
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_3347
if 
  30@ > 5
goto_if_false @LOWGAME_3315
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3315
if 
  31@ > 1
goto_if_false @LOWGAME_3347
$lowrider_level -= 1
31@ = 0

:LOWGAME_3347
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_3436
if 
  30@ > 5
goto_if_false @LOWGAME_3404
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3404
if 
  31@ > 1
goto_if_false @LOWGAME_3436
$lowrider_level -= 1
31@ = 0

:LOWGAME_3436
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_3493
if 
  31@ > 1
goto_if_false @LOWGAME_3493
$lowrider_level -= 1
30@ = 0
31@ = 0

:LOWGAME_3493
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_7453
if 
  not is_int_var_equal_to_int_var $lowrider_last_level == $lowrider_level
goto_if_false @LOWGAME_5115
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3699
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_sequence_to_repeat 15@ {state} True
close_sequence_task 15@

:LOWGAME_3699
if and
  $lowrider_last_level == -1
  $lowrider_level == 0
goto_if_false @LOWGAME_3855
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLE_TO_L0" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_3855
if and
  $lowrider_last_level == 0
  $lowrider_level == 1
goto_if_false @LOWGAME_4009
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_TO_L1" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4009
if and
  $lowrider_last_level == 1
  $lowrider_level == 2
goto_if_false @LOWGAME_4163
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_TO_L2" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4163
if and
  $lowrider_last_level == 2
  $lowrider_level == 3
goto_if_false @LOWGAME_4317
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_TO_L3" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4317
if and
  $lowrider_last_level == 3
  $lowrider_level == 4
goto_if_false @LOWGAME_4471
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_TO_L4" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4471
if and
  $lowrider_last_level == 4
  $lowrider_level == 5
goto_if_false @LOWGAME_4625
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_TO_L5" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L5_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4625
if and
  $lowrider_last_level > 1
  $lowrider_level == 1
goto_if_false @LOWGAME_4781
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L345_TO_L1" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4781
if and
  $lowrider_last_level == 1
  $lowrider_level == 0
goto_if_false @LOWGAME_4936
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L12_TO_L0" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4936
if and
  $lowrider_last_level == 0
  $lowrider_level == -1
goto_if_false @LOWGAME_5107
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_5107
set_var_int_to_var_int $lowrider_last_level = $lowrider_level

:LOWGAME_5115
if and
  not is_int_lvar_equal_to_int_lvar 19@ == 18@
  18@ <> 0
goto_if_false @LOWGAME_6256
17@ = 0
26@ = 1.0
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_IDLE_TO_L0"
goto_if_false @LOWGAME_5220
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_IDLE_TO_L0"

:LOWGAME_5220
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L12_TO_L0"
goto_if_false @LOWGAME_5280
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L12_TO_L0"

:LOWGAME_5280
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L345_TO_L1"
goto_if_false @LOWGAME_5342
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L345_TO_L1"

:LOWGAME_5342
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_TO_L1"
goto_if_false @LOWGAME_5400
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_TO_L1"

:LOWGAME_5400
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_TO_L2"
goto_if_false @LOWGAME_5458
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_TO_L2"

:LOWGAME_5458
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_TO_L3"
goto_if_false @LOWGAME_5516
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_TO_L3"

:LOWGAME_5516
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_TO_L4"
goto_if_false @LOWGAME_5574
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_TO_L4"

:LOWGAME_5574
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_TO_L5"
goto_if_false @LOWGAME_5632
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_TO_L5"

:LOWGAME_5632
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_5686
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_BDBNCE"

:LOWGAME_5686
if 
  0.9 > 26@
goto_if_false @LOWGAME_5714
17@ = 1

:LOWGAME_5714
if 
  17@ == 0
goto_if_false @LOWGAME_6248
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_5818
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5818
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_5904
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5904
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_5990
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5990
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_6076
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6076
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_6162
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6162
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_6248
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L5_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6248
set_lvar_int_to_lvar_int 19@ = 18@

:LOWGAME_6256
if 
  23@ == 1
goto_if_false @LOWGAME_6489
if 
  18@ == 0
goto_if_false @LOWGAME_6482
if 
  $lowrider_level > 0
goto_if_false @LOWGAME_6482
if 
  not is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_6468
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_BDBNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_6468
$lowrider_level = 1
$lowrider_last_level = 1

:LOWGAME_6482
23@ = 0

:LOWGAME_6489
17@ = 0
26@ = 1.0
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_6560
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_BDBNCE"

:LOWGAME_6560
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_IDLE_TO_L0"
goto_if_false @LOWGAME_6622
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_IDLE_TO_L0"

:LOWGAME_6622
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L12_TO_L0"
goto_if_false @LOWGAME_6682
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L12_TO_L0"

:LOWGAME_6682
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L345_TO_L1"
goto_if_false @LOWGAME_6744
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L345_TO_L1"

:LOWGAME_6744
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_BNCE"
goto_if_false @LOWGAME_6800
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_BNCE"

:LOWGAME_6800
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_TO_L1"
goto_if_false @LOWGAME_6858
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_TO_L1"

:LOWGAME_6858
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_TO_L2"
goto_if_false @LOWGAME_6916
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_TO_L2"

:LOWGAME_6916
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_TO_L3"
goto_if_false @LOWGAME_6974
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_TO_L3"

:LOWGAME_6974
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_TO_L4"
goto_if_false @LOWGAME_7032
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_TO_L4"

:LOWGAME_7032
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_TO_L5"
goto_if_false @LOWGAME_7090
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_TO_L5"

:LOWGAME_7090
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_BNCE"
goto_if_false @LOWGAME_7146
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_BNCE"

:LOWGAME_7146
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_BNCE"
goto_if_false @LOWGAME_7202
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_BNCE"

:LOWGAME_7202
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_BNCE"
goto_if_false @LOWGAME_7258
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_BNCE"

:LOWGAME_7258
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_BNCE"
goto_if_false @LOWGAME_7314
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_BNCE"

:LOWGAME_7314
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L5_BNCE"
goto_if_false @LOWGAME_7370
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L5_BNCE"

:LOWGAME_7370
if 
  0.9 > 26@
goto_if_false @LOWGAME_7398
17@ = 1

:LOWGAME_7398
if 
  17@ == 0
goto_if_false @LOWGAME_7453
17@ = get_script_task_status 2@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 17@ == 7
goto_if_false @LOWGAME_7453
perform_sequence_task 2@ {sequence} 15@

:LOWGAME_7453
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LOWGAME_7484
$lowrider_pscore = 0
13@ += 1

:LOWGAME_7484
goto @LOWGAME_7505

:LOWGAME_7491
13@ += 1
TIMERA = 0

:LOWGAME_7505
goto @LOWGAME_7662

:LOWGAME_7512
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7526
if 
  is_player_playing $player1
goto_if_false @LOWGAME_7549
set_player_control $player1 {state} False

:LOWGAME_7549
do_fade 500 {direction} Fade.Out

:LOWGAME_7556
if 
  get_fading_status 
goto_if_false @LOWGAME_7580
wait 0
goto @LOWGAME_7556

:LOWGAME_7580
$bd_terminate_script = 1
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7601
17@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_7626
stop_beat_track 

:LOWGAME_7626
clear_onscreen_counter $lowrider_pscore
clear_onscreen_counter $lowrider_oscore
remove_animation "LOWRIDER"
goto @LOWGAME_8722
goto @LOWGAME_7662

:LOWGAME_7662
goto @LOWGAME_416

:LOWGAME_7669
17@ = generate_random_int_in_range 0 {max} 10
if or
  $lowrider_opposition_skill == 0
  $lowrider_opposition_skill == 1
goto_if_false @LOWGAME_7894
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7887 {caseNum1} 0 {caseLabel1} @LOWGAME_7831 {caseNum2} 1 {caseLabel2} @LOWGAME_7831 {caseNum3} 2 {caseLabel3} @LOWGAME_7845 {caseNum4} 3 {caseLabel4} @LOWGAME_7845 {caseNum5} 4 {caseLabel5} @LOWGAME_7845 {caseNum6} 5 {caseLabel6} @LOWGAME_7845 {caseNum7} 6 {caseLabel7} @LOWGAME_7859
switch_continued 7 {caseLabel1} @LOWGAME_7859 {caseNum2} 8 {caseLabel2} @LOWGAME_7859 {caseNum3} 9 {caseLabel3} @LOWGAME_7873 {caseNum4} -1 {caseLabel4} @LOWGAME_7887 {caseNum5} -1 {caseLabel5} @LOWGAME_7887 {caseNum6} -1 {caseLabel6} @LOWGAME_7887 {caseNum7} -1 {caseLabel7} @LOWGAME_7887 {caseNum8} -1 {caseLabel8} @LOWGAME_7887 {caseNum9} -1 {caseLabel9} @LOWGAME_7887

:LOWGAME_7831
$lowrider_oscore += 0
goto @LOWGAME_7887

:LOWGAME_7845
$lowrider_oscore += 10
goto @LOWGAME_7887

:LOWGAME_7859
$lowrider_oscore += 20
goto @LOWGAME_7887

:LOWGAME_7873
$lowrider_oscore += 50
goto @LOWGAME_7887

:LOWGAME_7887
goto @LOWGAME_8695

:LOWGAME_7894
if 
  $lowrider_opposition_skill == 2
goto_if_false @LOWGAME_8103
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8096 {caseNum1} 0 {caseLabel1} @LOWGAME_8040 {caseNum2} 1 {caseLabel2} @LOWGAME_8054 {caseNum3} 2 {caseLabel3} @LOWGAME_8054 {caseNum4} 3 {caseLabel4} @LOWGAME_8054 {caseNum5} 4 {caseLabel5} @LOWGAME_8054 {caseNum6} 5 {caseLabel6} @LOWGAME_8068 {caseNum7} 6 {caseLabel7} @LOWGAME_8068
switch_continued 7 {caseLabel1} @LOWGAME_8068 {caseNum2} 8 {caseLabel2} @LOWGAME_8082 {caseNum3} 9 {caseLabel3} @LOWGAME_8082 {caseNum4} -1 {caseLabel4} @LOWGAME_8096 {caseNum5} -1 {caseLabel5} @LOWGAME_8096 {caseNum6} -1 {caseLabel6} @LOWGAME_8096 {caseNum7} -1 {caseLabel7} @LOWGAME_8096 {caseNum8} -1 {caseLabel8} @LOWGAME_8096 {caseNum9} -1 {caseLabel9} @LOWGAME_8096

:LOWGAME_8040
$lowrider_oscore += 0
goto @LOWGAME_8096

:LOWGAME_8054
$lowrider_oscore += 10
goto @LOWGAME_8096

:LOWGAME_8068
$lowrider_oscore += 20
goto @LOWGAME_8096

:LOWGAME_8082
$lowrider_oscore += 50
goto @LOWGAME_8096

:LOWGAME_8096
goto @LOWGAME_8695

:LOWGAME_8103
if 
  $lowrider_opposition_skill == 3
goto_if_false @LOWGAME_8312
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8305 {caseNum1} 0 {caseLabel1} @LOWGAME_8249 {caseNum2} 1 {caseLabel2} @LOWGAME_8263 {caseNum3} 2 {caseLabel3} @LOWGAME_8263 {caseNum4} 3 {caseLabel4} @LOWGAME_8263 {caseNum5} 4 {caseLabel5} @LOWGAME_8277 {caseNum6} 5 {caseLabel6} @LOWGAME_8277 {caseNum7} 6 {caseLabel7} @LOWGAME_8277
switch_continued 7 {caseLabel1} @LOWGAME_8291 {caseNum2} 8 {caseLabel2} @LOWGAME_8291 {caseNum3} 9 {caseLabel3} @LOWGAME_8291 {caseNum4} -1 {caseLabel4} @LOWGAME_8305 {caseNum5} -1 {caseLabel5} @LOWGAME_8305 {caseNum6} -1 {caseLabel6} @LOWGAME_8305 {caseNum7} -1 {caseLabel7} @LOWGAME_8305 {caseNum8} -1 {caseLabel8} @LOWGAME_8305 {caseNum9} -1 {caseLabel9} @LOWGAME_8305

:LOWGAME_8249
$lowrider_oscore += 0
goto @LOWGAME_8305

:LOWGAME_8263
$lowrider_oscore += 10
goto @LOWGAME_8305

:LOWGAME_8277
$lowrider_oscore += 20
goto @LOWGAME_8305

:LOWGAME_8291
$lowrider_oscore += 50
goto @LOWGAME_8305

:LOWGAME_8305
goto @LOWGAME_8695

:LOWGAME_8312
if 
  $lowrider_opposition_skill == 4
goto_if_false @LOWGAME_8507
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8500 {caseNum1} 0 {caseLabel1} @LOWGAME_8458 {caseNum2} 1 {caseLabel2} @LOWGAME_8458 {caseNum3} 2 {caseLabel3} @LOWGAME_8458 {caseNum4} 3 {caseLabel4} @LOWGAME_8472 {caseNum5} 4 {caseLabel5} @LOWGAME_8472 {caseNum6} 5 {caseLabel6} @LOWGAME_8472 {caseNum7} 6 {caseLabel7} @LOWGAME_8472
switch_continued 7 {caseLabel1} @LOWGAME_8486 {caseNum2} 8 {caseLabel2} @LOWGAME_8486 {caseNum3} 9 {caseLabel3} @LOWGAME_8486 {caseNum4} -1 {caseLabel4} @LOWGAME_8500 {caseNum5} -1 {caseLabel5} @LOWGAME_8500 {caseNum6} -1 {caseLabel6} @LOWGAME_8500 {caseNum7} -1 {caseLabel7} @LOWGAME_8500 {caseNum8} -1 {caseLabel8} @LOWGAME_8500 {caseNum9} -1 {caseLabel9} @LOWGAME_8500

:LOWGAME_8458
$lowrider_oscore += 10
goto @LOWGAME_8500

:LOWGAME_8472
$lowrider_oscore += 20
goto @LOWGAME_8500

:LOWGAME_8486
$lowrider_oscore += 50
goto @LOWGAME_8500

:LOWGAME_8500
goto @LOWGAME_8695

:LOWGAME_8507
if 
  $lowrider_opposition_skill == 5
goto_if_false @LOWGAME_8695
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8695 {caseNum1} 0 {caseLabel1} @LOWGAME_8653 {caseNum2} 1 {caseLabel2} @LOWGAME_8653 {caseNum3} 2 {caseLabel3} @LOWGAME_8667 {caseNum4} 3 {caseLabel4} @LOWGAME_8667 {caseNum5} 4 {caseLabel5} @LOWGAME_8667 {caseNum6} 5 {caseLabel6} @LOWGAME_8667 {caseNum7} 6 {caseLabel7} @LOWGAME_8681
switch_continued 7 {caseLabel1} @LOWGAME_8681 {caseNum2} 8 {caseLabel2} @LOWGAME_8681 {caseNum3} 9 {caseLabel3} @LOWGAME_8681 {caseNum4} -1 {caseLabel4} @LOWGAME_8695 {caseNum5} -1 {caseLabel5} @LOWGAME_8695 {caseNum6} -1 {caseLabel6} @LOWGAME_8695 {caseNum7} -1 {caseLabel7} @LOWGAME_8695 {caseNum8} -1 {caseLabel8} @LOWGAME_8695 {caseNum9} -1 {caseLabel9} @LOWGAME_8695

:LOWGAME_8653
$lowrider_oscore += 10
goto @LOWGAME_8695

:LOWGAME_8667
$lowrider_oscore += 20
goto @LOWGAME_8695

:LOWGAME_8681
$lowrider_oscore += 50
goto @LOWGAME_8695

:LOWGAME_8695
if 
  0 > $lowrider_oscore
goto_if_false @LOWGAME_8720
$lowrider_oscore = 0

:LOWGAME_8720
return 

:LOWGAME_8722
$lowrider_game_is_active = 0
terminate_this_script 

:LOWGAME_8731
switch_start 28@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8844 {caseNum1} 0 {caseLabel1} @LOWGAME_8794 {caseNum2} 1 {caseLabel2} @LOWGAME_8811 {caseNum3} 2 {caseLabel3} @LOWGAME_8828 {caseNum4} -1 {caseLabel4} @LOWGAME_8860 {caseNum5} -1 {caseLabel5} @LOWGAME_8860 {caseNum6} -1 {caseLabel6} @LOWGAME_8860 {caseNum7} -1 {caseLabel7} @LOWGAME_8860

:LOWGAME_8794
shake_pad PadId.Pad1 {time} 200 {intensity} 255
goto @LOWGAME_8860

:LOWGAME_8811
shake_pad PadId.Pad1 {time} 200 {intensity} 200
goto @LOWGAME_8860

:LOWGAME_8828
shake_pad PadId.Pad1 {time} 200 {intensity} 110
goto @LOWGAME_8860

:LOWGAME_8844
shake_pad PadId.Pad1 {time} 200 {intensity} 50
goto @LOWGAME_8860

:LOWGAME_8860
switch_start 29@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8923 {caseNum1} 2 {caseLabel1} @LOWGAME_9175 {caseNum2} 3 {caseLabel2} @LOWGAME_9427 {caseNum3} -1 {caseLabel3} @LOWGAME_9679 {caseNum4} -1 {caseLabel4} @LOWGAME_9679 {caseNum5} -1 {caseLabel5} @LOWGAME_9679 {caseNum6} -1 {caseLabel6} @LOWGAME_9679 {caseNum7} -1 {caseLabel7} @LOWGAME_9679

:LOWGAME_8923
if 
  28@ == 0
goto_if_false @LOWGAME_8957
print_big 'DNC_005' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_8957
if 
  28@ == 1
goto_if_false @LOWGAME_8991
print_big 'DNC_006' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_8991
if 
  28@ == 2
goto_if_false @LOWGAME_9025
print_big 'DNC_007' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9025
if 
  28@ == 3
goto_if_false @LOWGAME_9059
print_big 'DNC_008' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9059
if 
  28@ == 4
goto_if_false @LOWGAME_9093
print_big 'DNC_009' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9093
if 
  28@ == 5
goto_if_false @LOWGAME_9127
print_big 'DNC_010' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9127
if 
  28@ == 6
goto_if_false @LOWGAME_9161
print_big 'DNC_011' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9161
29@ = 2
goto @LOWGAME_9679

:LOWGAME_9175
if 
  28@ == 0
goto_if_false @LOWGAME_9209
print_big 'DNC_012' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9209
if 
  28@ == 1
goto_if_false @LOWGAME_9243
print_big 'DNC_013' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9243
if 
  28@ == 2
goto_if_false @LOWGAME_9277
print_big 'DNC_014' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9277
if 
  28@ == 3
goto_if_false @LOWGAME_9311
print_big 'DNC_015' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9311
if 
  28@ == 4
goto_if_false @LOWGAME_9345
print_big 'DNC_016' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9345
if 
  28@ == 5
goto_if_false @LOWGAME_9379
print_big 'DNC_017' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9379
if 
  28@ == 6
goto_if_false @LOWGAME_9413
print_big 'DNC_018' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9413
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9427
if 
  28@ == 0
goto_if_false @LOWGAME_9461
print_big 'DNC_019' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9461
if 
  28@ == 1
goto_if_false @LOWGAME_9495
print_big 'DNC_020' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9495
if 
  28@ == 2
goto_if_false @LOWGAME_9529
print_big 'DNC_021' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9529
if 
  28@ == 3
goto_if_false @LOWGAME_9563
print_big 'DNC_022' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9563
if 
  28@ == 4
goto_if_false @LOWGAME_9597
print_big 'DNC_023' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9597
if 
  28@ == 5
goto_if_false @LOWGAME_9631
print_big 'DNC_024' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9631
if 
  28@ == 6
goto_if_false @LOWGAME_9665
print_big 'DNC_025' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9665
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9679
return 

:LOWGAME_9681
set_lvar_int_to_var_int 17@ = $lowr_good_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_bad_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_perfect_beat_counter
if 
  17@ > 0
goto_if_false @LOWGAME_10045
if 
  17@ >= 4
goto_if_false @LOWGAME_10045
if 
  $lowr_perfect_beat_counter == 4
goto_if_false @LOWGAME_9848
if or
  $lowr_overall_state == 1
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9816
print_big 'DNC_002' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 2
goto @LOWGAME_9841

:LOWGAME_9816
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1

:LOWGAME_9841
goto @LOWGAME_10024

:LOWGAME_9848
if 
  is_int_var_greater_than_int_var $lowr_good_beat_counter > $lowr_bad_beat_counter
goto_if_false @LOWGAME_9899
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9899
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9949
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9949
if 
  $lowr_overall_state == 1
goto_if_false @LOWGAME_9999
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 0
goto @LOWGAME_10024

:LOWGAME_9999
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 0

:LOWGAME_10024
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0

:LOWGAME_10045
return 

:LOWGAME_10047
switch_start 28@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_10533 {caseNum1} 0 {caseLabel1} @LOWGAME_10110 {caseNum2} 1 {caseLabel2} @LOWGAME_10199 {caseNum3} 2 {caseLabel3} @LOWGAME_10288 {caseNum4} 3 {caseLabel4} @LOWGAME_10377 {caseNum5} 4 {caseLabel5} @LOWGAME_10416 {caseNum6} 5 {caseLabel6} @LOWGAME_10455 {caseNum7} 6 {caseLabel7} @LOWGAME_10494

:LOWGAME_10110
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10185
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10178
17@ = 50
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10185

:LOWGAME_10178
$lowrider_pscore += 50

:LOWGAME_10185
$lowr_perfect_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10199
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10274
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10267
17@ = 20
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10274

:LOWGAME_10267
$lowrider_pscore += 20

:LOWGAME_10274
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10288
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10363
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10356
17@ = 10
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10363

:LOWGAME_10356
$lowrider_pscore += 10

:LOWGAME_10363
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10377
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10402
$lowrider_pscore += 0

:LOWGAME_10402
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10416
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10441
$lowrider_pscore += 0

:LOWGAME_10441
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10455
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10480
$lowrider_pscore += 0

:LOWGAME_10480
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10494
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10519
$lowrider_pscore += 0

:LOWGAME_10519
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10533
if 
  $lowrider_pscore > 999999
goto_if_false @LOWGAME_10564
$lowrider_pscore = 999999

:LOWGAME_10564
return 

:LOWGAME_10566
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 26@ =# $RStickX
set_lvar_float_to_lvar_float 9@ = 26@
cset_lvar_float_to_var_int 26@ =# $RStickY
set_lvar_float_to_lvar_float 10@ = 26@
26@ = get_distance_between_coords_2d 0.0 {fromY} 0.0 {toX} 9@ {toZ} 10@
18@ = 0
if 
  26@ > 64.0
goto_if_false @LOWGAME_10927
26@ = get_angle_between_2d_vectors 9@ {y1} 10@ {x2} 0.0 {y2} -1.0
if 
  15.0 > 26@
goto_if_false @LOWGAME_10719
18@ = 13
goto @LOWGAME_10927

:LOWGAME_10719
if 
  75.0 > 26@
goto_if_false @LOWGAME_10786
if 
  $RStickX > 0
goto_if_false @LOWGAME_10772
18@ = 11
goto @LOWGAME_10779

:LOWGAME_10772
18@ = 15

:LOWGAME_10779
goto @LOWGAME_10927

:LOWGAME_10786
if 
  105.0 > 26@
goto_if_false @LOWGAME_10853
if 
  $RStickX > 0
goto_if_false @LOWGAME_10839
18@ = 10
goto @LOWGAME_10846

:LOWGAME_10839
18@ = 9

:LOWGAME_10846
goto @LOWGAME_10927

:LOWGAME_10853
if 
  165.0 > 26@
goto_if_false @LOWGAME_10920
if 
  $RStickX > 0
goto_if_false @LOWGAME_10906
18@ = 16
goto @LOWGAME_10913

:LOWGAME_10906
18@ = 12

:LOWGAME_10913
goto @LOWGAME_10927

:LOWGAME_10920
18@ = 14

:LOWGAME_10927
return 

:Noname_4
terminate_this_script 

:AUDIOL
script_name 'AUDIOL'
8@ = 0
if 
  8@ == -1
goto_if_false @AUDIOL_60
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:AUDIOL_60
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_169
if 
  2@ == 1
goto_if_false @AUDIOL_162
clear_mission_audio 3@

:AUDIOL_101
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_155
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_144
goto @AUDIOL_737

:AUDIOL_144
wait 0
goto @AUDIOL_101

:AUDIOL_155
goto @AUDIOL_169

:AUDIOL_162
goto @AUDIOL_737

:AUDIOL_169
set_lvar_text_label 5@s = s$audio_string
set_lvar_int_to_var_int 7@ = $audio_sound_file
$audio_line_is_active = 1

:AUDIOL_192
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_217
goto @AUDIOL_662

:AUDIOL_217
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @AUDIOL_651 {caseNum1} 0 {caseLabel1} @AUDIOL_280 {caseNum2} 1 {caseLabel2} @AUDIOL_362 {caseNum3} 2 {caseLabel3} @AUDIOL_531 {caseNum4} 3 {caseLabel4} @AUDIOL_637 {caseNum5} -1 {caseLabel5} @AUDIOL_651 {caseNum6} -1 {caseLabel6} @AUDIOL_651 {caseNum7} -1 {caseLabel7} @AUDIOL_651

:AUDIOL_280
if 
  4@ == 0
goto_if_false @AUDIOL_311
clear_mission_audio 3@
load_mission_audio 3@ {audioId} 7@

:AUDIOL_311
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_341
disable_char_speech 0@ {stopNow} True
shut_char_up_for_scripted_speech 0@ {state} True

:AUDIOL_341
TIMERA = 0
8@ += 1
goto @AUDIOL_651

:AUDIOL_362
if 
  has_mission_audio_loaded 3@
goto_if_false @AUDIOL_498
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_444
if 
  not is_char_talking 0@
goto_if_false @AUDIOL_436
if 
  1@ == 1
goto_if_false @AUDIOL_436
attach_mission_audio_to_char 3@ {handle} 0@

:AUDIOL_436
start_char_facial_talk 0@ {duration} 10000

:AUDIOL_444
play_mission_audio 3@
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_484
print_now 5@s {time} 10000 {flag} 1

:AUDIOL_484
8@ += 1
goto @AUDIOL_524

:AUDIOL_498
if 
  TIMERA > 5000
goto_if_false @AUDIOL_524
8@ += 1

:AUDIOL_524
goto @AUDIOL_651

:AUDIOL_531
if 
  has_mission_audio_loaded 3@
goto_if_false @AUDIOL_623
if 
  has_mission_audio_finished 3@
goto_if_false @AUDIOL_577
8@ += 1
goto @AUDIOL_616

:AUDIOL_577
if 
  does_char_exist 0@
goto_if_false @AUDIOL_616
if 
  is_char_dead 0@
goto_if_false @AUDIOL_616
8@ += 1

:AUDIOL_616
goto @AUDIOL_630

:AUDIOL_623
8@ += 1

:AUDIOL_630
goto @AUDIOL_651

:AUDIOL_637
goto @AUDIOL_662
goto @AUDIOL_651

:AUDIOL_651
wait 0
goto @AUDIOL_192

:AUDIOL_662
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_695
enable_char_speech 0@
shut_char_up_for_scripted_speech 0@ {state} False
stop_char_facial_talk 0@

:AUDIOL_695
clear_mission_audio 3@
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_730
clear_this_print 5@s

:AUDIOL_730
$audio_line_is_active = 0

:AUDIOL_737
terminate_this_script 

:CLEANAU
script_name 'CLEANAU'
TIMERA = 0
$audio_line_terminate_all = 1

:CLEANAU_25
if 
  $audio_line_is_active <> 0
goto_if_false @CLEANAU_80
wait 0
if 
  TIMERA > 2000
goto_if_false @CLEANAU_73
$audio_line_is_active = 0

:CLEANAU_73
goto @CLEANAU_25

:CLEANAU_80
terminate_all_scripts_with_this_name 'AUDIOL'
$audio_line_terminate_all = 0
terminate_this_script 

:Noname_5
terminate_this_script 

:BDISPLY
script_name 'BDISPLY'
if 
  $beat_display_script_started == 0
goto_if_false @BDISPLY_43
$beat_display_script_started = 1
$bd_terminate_script = 0

:BDISPLY_43
use_text_commands True
load_texture_dictionary 'LD_BEAT'
load_sprite 1 {spriteName} "CROSS"
load_sprite 2 {spriteName} "SQUARE"
load_sprite 3 {spriteName} "TRIANG"
load_sprite 4 {spriteName} "CIRCLE"
load_sprite 13 {spriteName} "UP"
load_sprite 14 {spriteName} "DOWN"
load_sprite 10 {spriteName} "RIGHT"
load_sprite 9 {spriteName} "LEFT"
load_sprite 11 {spriteName} "UPR"
load_sprite 16 {spriteName} "DOWNR"
load_sprite 12 {spriteName} "DOWNL"
load_sprite 15 {spriteName} "UPL"
load_sprite 17 {spriteName} "CRING"
load_sprite 18 {spriteName} "CHIT"
$bd_future_time_shown = 4500
$bd_past_time_shown = 800
$bd_x = 265.0
$bd_y = 390.0
$bd_width = 355.0
$bd_sprite_height = 32.0
$bd_sprite_width = 32.0
19@ = 64.0
20@ = 64.0
22@ = 64.0
21@ = 64.0
16@ = get_game_timer 
wait 1000

:BDISPLY_321
wait 0
if 
  has_game_just_returned_from_frontend 
goto_if_false @BDISPLY_352
$BD_RenderHit = 0
23@ = 0

:BDISPLY_352
0@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 0@ == 3
goto_if_false @BDISPLY_1206
15@ = get_game_timer 
set_lvar_int_to_lvar_int 17@ = 15@
sub_int_lvar_from_int_lvar 17@ -= 16@
set_lvar_int_to_lvar_int 16@ = 15@
set_lvar_int_to_var_int 0@ = $bd_past_time_shown
add_int_var_to_int_lvar 0@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 0@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 6@ /= 5@
mult_float_lvar_by_float_var 6@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 6@
set_var_float_to_var_float $y = $bd_y
set_sprites_draw_before_fade True
draw_sprite 17 {offsetLeft} $x {offsetTop} $y {width} 20@ {height} 19@ {r} 128 {g} 128 {b} 128 {a} 255
$time_since_first_beat = get_game_timer 
sub_int_var_from_int_var $time_since_first_beat -= $time_of_first_beat
0@ = 1

:BDISPLY_528
if 
  11 > 0@
goto_if_false @BDISPLY_854
8@, 10@, 12@ = get_beat_proximity 0@
if 
  10@ <> 0
goto_if_false @BDISPLY_840
if 
  is_int_var_greater_than_int_lvar $bd_future_time_shown > 8@
goto_if_false @BDISPLY_840
gosub @BDISPLY_1274
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
set_lvar_int_to_lvar_int 4@ = 8@
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 8@
cset_lvar_float_to_var_int 6@ =# $bd_future_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
5@ *= -1.0
5@ += 1.0
if 
  0 > 8@
goto_if_false @BDISPLY_764
5@ = 1.0

:BDISPLY_764
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_840
gosub @BDISPLY_1583
set_sprites_draw_before_fade True
draw_sprite 18@ {offsetLeft} $x {offsetTop} $y {width} $bd_sprite_width {height} $bd_sprite_height {r} 128 {g} 128 {b} 128 {a} 4@

:BDISPLY_840
0@ += 1
goto @BDISPLY_528

:BDISPLY_854
if 
  $debug_show_beat_position == 0
goto_if_false @BDISPLY_1199
0@ = -1

:BDISPLY_879
if 
  0@ > -11
goto_if_false @BDISPLY_1199
8@, 10@, 12@ = get_beat_proximity 0@
8@ *= -1
if 
  10@ <> 0
goto_if_false @BDISPLY_1185
if 
  is_int_var_greater_than_int_lvar $bd_past_time_shown > 8@
goto_if_false @BDISPLY_1185
gosub @BDISPLY_1274
set_lvar_int_to_lvar_int 4@ = 8@
4@ *= -1
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
if 
  0 > 8@
goto_if_false @BDISPLY_1109
5@ = 1.0

:BDISPLY_1109
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_1185
gosub @BDISPLY_1583
set_sprites_draw_before_fade True
draw_sprite 18@ {offsetLeft} $x {offsetTop} $y {width} $bd_sprite_width {height} $bd_sprite_height {r} 128 {g} 128 {b} 128 {a} 4@

:BDISPLY_1185
0@ -= 1
goto @BDISPLY_879

:BDISPLY_1199
goto @BDISPLY_1213

:BDISPLY_1206
goto @BDISPLY_1252

:BDISPLY_1213
if 
  $bd_terminate_script == 0
goto_if_false @BDISPLY_1245
goto @BDISPLY_321
goto @BDISPLY_1252

:BDISPLY_1245
goto @BDISPLY_1252

:BDISPLY_1252
$bd_terminate_script = 0
$beat_display_script_started = 0
use_text_commands False
remove_texture_dictionary 
terminate_this_script 

:BDISPLY_1274
18@ = 0
if 
  10@ == 1
goto_if_false @BDISPLY_1306
18@ = 1

:BDISPLY_1306
if 
  10@ == 2
goto_if_false @BDISPLY_1331
18@ = 2

:BDISPLY_1331
if 
  10@ == 3
goto_if_false @BDISPLY_1356
18@ = 3

:BDISPLY_1356
if 
  10@ == 4
goto_if_false @BDISPLY_1381
18@ = 4

:BDISPLY_1381
if 
  10@ == 9
goto_if_false @BDISPLY_1406
18@ = 9

:BDISPLY_1406
if 
  10@ == 10
goto_if_false @BDISPLY_1431
18@ = 10

:BDISPLY_1431
if 
  10@ == 11
goto_if_false @BDISPLY_1456
18@ = 11

:BDISPLY_1456
if 
  10@ == 12
goto_if_false @BDISPLY_1481
18@ = 12

:BDISPLY_1481
if 
  10@ == 13
goto_if_false @BDISPLY_1506
18@ = 13

:BDISPLY_1506
if 
  10@ == 14
goto_if_false @BDISPLY_1531
18@ = 14

:BDISPLY_1531
if 
  10@ == 15
goto_if_false @BDISPLY_1556
18@ = 15

:BDISPLY_1556
if 
  10@ == 16
goto_if_false @BDISPLY_1581
18@ = 16

:BDISPLY_1581
return 

:BDISPLY_1583
if and
  $BD_RenderHit > 0
  23@ == 0
goto_if_false @BDISPLY_1635
1@, 1@, 25@ = get_beat_proximity 0
25@ += 1
23@ = 1

:BDISPLY_1635
set_lvar_int_to_lvar_int 13@ = 12@
add_int_lvar_to_int_lvar 13@ += 0@
if 
  0 > 0@
goto_if_false @BDISPLY_1683
8@ *= -1
13@ += 1

:BDISPLY_1683
if 
  is_int_lvar_equal_to_int_lvar 13@ == 25@
goto_if_false @BDISPLY_1764
if and
  3000 >= 8@
  8@ > -400
goto_if_false @BDISPLY_1743
gosub @BDISPLY_1773
goto @BDISPLY_1757

:BDISPLY_1743
23@ = 0
$BD_RenderHit = 0

:BDISPLY_1757
goto @BDISPLY_1771

:BDISPLY_1764
$BD_RenderHit = 0

:BDISPLY_1771
return 

:BDISPLY_1773
switch_start 23@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BDISPLY_2222 {caseNum1} 1 {caseLabel1} @BDISPLY_1836 {caseNum2} 2 {caseLabel2} @BDISPLY_2009 {caseNum3} 3 {caseLabel3} @BDISPLY_2113 {caseNum4} -1 {caseLabel4} @BDISPLY_2222 {caseNum5} -1 {caseLabel5} @BDISPLY_2222 {caseNum6} -1 {caseLabel6} @BDISPLY_2222 {caseNum7} -1 {caseLabel7} @BDISPLY_2222

:BDISPLY_1836
if 
  $BD_RenderHit == 1
goto_if_false @BDISPLY_1875
26@ = 90
27@ = 100
goto @BDISPLY_1948

:BDISPLY_1875
if 
  $BD_RenderHit == 2
goto_if_false @BDISPLY_1915
26@ = 190
27@ = 80
goto @BDISPLY_1948

:BDISPLY_1915
if 
  $BD_RenderHit == 3
goto_if_false @BDISPLY_1948
26@ = 255
27@ = 25

:BDISPLY_1948
set_lvar_int_to_lvar_int 24@ = 26@
TIMERB = 0
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
23@ += 1
goto @BDISPLY_2222

:BDISPLY_2009
if 
  is_int_lvar_greater_than_int_lvar 27@ > TIMERB
goto_if_false @BDISPLY_2067
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
goto @BDISPLY_2106

:BDISPLY_2067
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
23@ += 1

:BDISPLY_2106
goto @BDISPLY_2222

:BDISPLY_2113
set_lvar_int_to_lvar_int 1@ = 26@
div_int_lvar_by_int_lvar 1@ /= 17@
1@ *= 4
sub_int_lvar_from_int_lvar 24@ -= 1@
if 
  0 >= 24@
goto_if_false @BDISPLY_2183
24@ = 0
23@ = 0
$BD_RenderHit = 0

:BDISPLY_2183
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
goto @BDISPLY_2222

:BDISPLY_2222
return 

:Noname_6
terminate_this_script 

:IMPEXPM
script_name 'IMPEXPM'
if 
  $impexp_has_been_initialised <> 99
goto_if_false @IMPEXPM_484
if 
  $impexp_has_been_initialised == -1000
goto_if_false @IMPEXPM_123
27@ = create_object_no_offset #NF_BLACKBOARD {x} 0.0 {y} 0.0 {z} 0.0
$2829[0] = create_car_generator_with_plate 0.0 {y} 0.0 {z} 0.0 {heading} 180.0 {modelId} 587 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "IMPEXP__"

:IMPEXPM_123
if 
  not does_object_exist 27@
goto_if_false @IMPEXPM_190
27@ = create_object_no_offset #NF_BLACKBOARD {x} -1573.881 {y} 135.3845 {z} 2.535
set_object_heading 27@ {heading} 180.0
freeze_object_position 27@ {state} True
set_object_dynamic 27@ {state} False
dont_remove_object 27@

:IMPEXPM_190
$current_wanted_list = 0
set_var_int_to_constant $unlocked_import_cars[0] = 589
set_var_int_to_constant $unlocked_import_cars[1] = 404
set_var_int_to_constant $unlocked_import_cars[2] = 559
set_var_int_to_constant $unlocked_import_cars[3] = 589
set_var_int_to_constant $unlocked_import_cars[4] = 404
set_var_int_to_constant $unlocked_import_cars[5] = 559
4@ = 6

:IMPEXPM_252
if 
  42 > 4@
goto_if_false @IMPEXPM_295
$unlocked_import_cars(4@,42i) = -1
4@ += 1
goto @IMPEXPM_252

:IMPEXPM_295
set_var_text_label s$impexp_day[0] = 'IE16'
set_var_text_label s$impexp_day[1] = 'IE10'
set_var_text_label s$impexp_day[2] = 'IE11'
set_var_text_label s$impexp_day[3] = 'IE12'
set_var_text_label s$impexp_day[4] = 'IE13'
set_var_text_label s$impexp_day[5] = 'IE14'
set_var_text_label s$impexp_day[6] = 'IE15'
$explain_import_help = 0
$impexp_new_cars = 0
$impexp_is_complete = 0
$import_price_multiplier = 0.8
$export_price_multiplier = 1.0
$imported_cars[0] = -1
$imported_cars[1] = -1
$imported_cars[2] = -1
$imported_cars[3] = -1
$imported_cars[4] = -1
start_new_script @IMPEXPC 
$impexp_has_been_initialised = 99

:IMPEXPM_484
wait 0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_563
if and
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  $import_export_is_active == 1
goto_if_false @IMPEXPM_563
15@ = 0
goto @IMPEXPM_577

:IMPEXPM_563
goto @IMPEXPM_484
26@ = 0

:IMPEXPM_577
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_627
if 
  $activate_mobile_phone == 1
goto_if_false @IMPEXPM_627
$activate_mobile_phone = 0
$restore_mobile_for_filshie = 1

:IMPEXPM_627
gosub @IMPEXPM_11683
if 
  16@ == -1
goto_if_false @IMPEXPM_875
17@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
20@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
22@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
27@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$cross_out[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$export_name[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$import_name[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
24@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_cabin = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$wanted_list_object = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:IMPEXPM_875
16@ = 0
20@ = -1
23@ = 0
$impexp_door_rotation = 0.0
28@ = 0
gosub @IMPEXPM_10064
gosub @IMPEXPM_10721
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1185
if 
  does_object_exist $wanted_list_object
goto_if_false @IMPEXPM_966
delete_object $wanted_list_object

:IMPEXPM_966
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_1039
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_1 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1039
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_1112
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_2 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1112
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_1185
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_3 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1185
gosub @IMPEXPM_11683
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1559
4@ = 0

:IMPEXPM_1217
if 
  10 > 4@
goto_if_false @IMPEXPM_1559
if 
  does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_1264
delete_object $cross_out(4@,10i)

:IMPEXPM_1264
$cross_out(4@,10i) = -1
if or
  $onmission == 0
  $steal4_flag == 1
goto_if_false @IMPEXPM_1545
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_1545
if 
  not does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_1545
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
cset_lvar_float_to_lvar_int 12@ =# 4@
if 
  12@ > 4.0
goto_if_false @IMPEXPM_1410
12@ += -5.0

:IMPEXPM_1410
set_lvar_float_to_lvar_float 13@ = 12@
13@ *= -0.05
12@ *= -0.2355
add_float_lvar_to_float_lvar 12@ += 13@
add_float_lvar_to_float_var $z += 12@
if 
  5 > 4@
goto_if_false @IMPEXPM_1482
$x += 1.741

:IMPEXPM_1482
12@ *= -0.1
add_float_lvar_to_float_var $z += 12@
create_object_no_offset #WANTED_CROSS_OFF {x} $x {y} $y {z} $z {var_handle} $cross_out(4@,10i)
freeze_object_position $cross_out(4@,10i) {state} True
set_object_heading $cross_out(4@,10i) {heading} 180.0

:IMPEXPM_1545
4@ += 1
goto @IMPEXPM_1217

:IMPEXPM_1559
wait 0
if 
  $import_export_is_active == 0
goto_if_false @IMPEXPM_1588
goto @IMPEXPM_1559

:IMPEXPM_1588
if 
  26@ == 1
goto_if_false @IMPEXPM_1730
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_1730
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_1680
freeze_car_position 22@ {state} True
if 
  not is_car_on_screen 22@
goto_if_false @IMPEXPM_1673
delete_car 22@
26@ = 0

:IMPEXPM_1673
goto @IMPEXPM_1692

:IMPEXPM_1680
delete_car 22@
26@ = 0

:IMPEXPM_1692
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_cabin
if 
  is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_1730
release_entity_from_rope_for_object $magno_cabin

:IMPEXPM_1730
if and
  $impexp_new_cars <> 0
  TIMERB > 5000
goto_if_false @IMPEXPM_1836
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @IMPEXPM_1836
if 
  $impexp_new_cars == 1
goto_if_false @IMPEXPM_1800
print_help 'IE25'

:IMPEXPM_1800
if 
  $impexp_new_cars == 2
goto_if_false @IMPEXPM_1829
print_help 'IE26'

:IMPEXPM_1829
$impexp_new_cars = 0

:IMPEXPM_1836
if 
  $explain_import_help == 0
goto_if_false @IMPEXPM_1941
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_1941
if 
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @IMPEXPM_1941
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @IMPEXPM_1941
print_help 'IE27'
$explain_import_help += 1

:IMPEXPM_1941
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_7119
if 
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @IMPEXPM_7105
if 
  15@ == 0
goto_if_false @IMPEXPM_4301
if 
  $impexp_is_complete == 0
goto_if_false @IMPEXPM_4027
if 
  16@ == 0
goto_if_false @IMPEXPM_2826
gosub @IMPEXPM_10644
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2120
if 
  locate_char_any_means_3d $scplayer {x} -1577.942 {y} 52.6333 {z} 16.3281 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} True
goto_if_false @IMPEXPM_2120

:IMPEXPM_2120
$car = get_random_car_in_sphere_no_save -1577.942 {y} 52.6333 {z} 16.3281 {radius} 4.0 {model} -1
if 
  does_vehicle_exist $car
goto_if_false @IMPEXPM_2533
if 
  not is_car_dead $car
goto_if_false @IMPEXPM_2533
if 
  is_car_stopped $car
goto_if_false @IMPEXPM_2533
if 
  not is_car_in_air_proper $car
goto_if_false @IMPEXPM_2533
if 
  not is_int_var_equal_to_int_lvar $car == 17@
goto_if_false @IMPEXPM_2533
6@ = get_car_model $car
4@ = 0
5@ = 0

:IMPEXPM_2252
if 
  10 > 4@
goto_if_false @IMPEXPM_2343
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2329
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2329
5@ = 1
4@ = 10

:IMPEXPM_2329
4@ += 1
goto @IMPEXPM_2252

:IMPEXPM_2343
if 
  5@ == 1
goto_if_false @IMPEXPM_2504
set_lvar_int_to_var_int 22@ = $car
if 
  is_car_passenger_seat_free $car {seat} SeatId.BikeRear
goto_if_false @IMPEXPM_2431
18@ = create_random_char -1576.88 {y} 55.26 {z} 8.57
warp_char_into_car_as_passenger 18@ {handle} $car {seat} SeatId.BikeRear
set_char_visible 18@ {state} False
goto @IMPEXPM_2483

:IMPEXPM_2431
18@ = get_char_in_car_passenger_seat $car {seat} SeatId.BikeRear
delete_char 18@
18@ = create_random_char -1576.88 {y} 55.26 {z} 8.57
warp_char_into_car_as_passenger 18@ {handle} $car {seat} SeatId.BikeRear
set_char_visible 18@ {state} False

:IMPEXPM_2483
16@ += 1
TIMERA = 0
goto @IMPEXPM_2533

:IMPEXPM_2504
if 
  not is_message_being_displayed 
goto_if_false @IMPEXPM_2533
print 'IE23' {time} 3000 {flag} 1

:IMPEXPM_2533
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2826
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPEXPM_2826
if 
  locate_stopped_char_in_car_3d $scplayer {x} -1577.942 {y} 52.6333 {z} 16.3281 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @IMPEXPM_2826
$car = store_car_char_is_in_no_save $scplayer
6@ = get_car_model $car
4@ = 0
5@ = 0

:IMPEXPM_2643
if 
  10 > 4@
goto_if_false @IMPEXPM_2734
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2720
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2720
5@ = 1
4@ = 10

:IMPEXPM_2720
4@ += 1
goto @IMPEXPM_2643

:IMPEXPM_2734
if 
  5@ == 1
goto_if_false @IMPEXPM_2797
set_lvar_int_to_var_int 22@ = $car
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_2776

:IMPEXPM_2776
16@ += 1
TIMERA = 0
goto @IMPEXPM_2826

:IMPEXPM_2797
if 
  not is_message_being_displayed 
goto_if_false @IMPEXPM_2826
print 'IE23' {time} 3000 {flag} 1

:IMPEXPM_2826
if 
  16@ == 1
goto_if_false @IMPEXPM_3536
if 
  does_object_exist $magno_cabin
goto_if_false @IMPEXPM_2870
set_rope_height_for_object $magno_cabin {height} 0.7

:IMPEXPM_2870
$disable_crane = 1
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2900
set_player_control $player1 {state} False

:IMPEXPM_2900
do_fade 250 {direction} Fade.Out

:IMPEXPM_2907
if 
  get_fading_status 
goto_if_false @IMPEXPM_2931
wait 0
goto @IMPEXPM_2907

:IMPEXPM_2931
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_3046
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3046
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2993
$x, $y, $z = get_char_coordinates $scplayer

:IMPEXPM_2993
set_car_coordinates 22@ {x} -1577.942 {y} 52.6333 {z} 40.0
freeze_car_position 22@ {state} True
4@ = get_car_health 22@
cset_var_float_to_lvar_int $export_damage_multiplier =# 4@
$export_damage_multiplier /= 1000.0

:IMPEXPM_3046
switch_widescreen True
set_fixed_camera_position -1573.4189 {y} 53.4591 {z} 17.9655 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1574.344 {y} 53.0835 {z} 17.9027 {switchStyle} SwitchType.JumpCut
clear_area -1577.942 {y} 52.6333 {z} 16.3281 {radius} 9.0 {clearParticles} True
wait 0
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3325
4@ = get_car_model 22@
$x, $y, $z, 7@, 8@, 9@ = get_model_dimensions 4@
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
14@ = sin 45.0
13@ = cos 45.0
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1577.942
add_float_lvar_to_float_var $x += 14@
$y = 52.6333
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
freeze_car_position 22@ {state} False
set_car_coordinates 22@ {x} $x {y} $y {z} $z
set_car_heading 22@ {heading} 315.0

:IMPEXPM_3325
do_fade 250 {direction} Fade.In

:IMPEXPM_3332
if 
  get_fading_status 
goto_if_false @IMPEXPM_3356
wait 0
goto @IMPEXPM_3332

:IMPEXPM_3356
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3482
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3482
if 
  is_char_in_car $scplayer {vehicle} 22@
goto_if_false @IMPEXPM_3475
31@ = 1
30@ = open_sequence_task 
task_leave_car -1 {vehicle} 22@
task_go_straight_to_coord -1 {x} -1578.1639 {y} 63.7954 {z} 16.3281 {speed} MoveState.Walk {time} 10000
close_sequence_task 30@
perform_sequence_task $scplayer {sequence} 30@
clear_sequence_task 30@
goto @IMPEXPM_3482

:IMPEXPM_3475
31@ = 0

:IMPEXPM_3482
print_now 'IE24' {time} 5000 {flag} 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3522
1@ = 1

:IMPEXPM_3522
TIMERA = 0
16@ += 1

:IMPEXPM_3536
if 
  16@ == 2
goto_if_false @IMPEXPM_3646
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3604
if 
  1@ == 0
goto_if_false @IMPEXPM_3604
16@ += 1

:IMPEXPM_3604
if 
  1@ == 1
goto_if_false @IMPEXPM_3646
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3646
1@ = 0

:IMPEXPM_3646
if 
  16@ == 3
goto_if_false @IMPEXPM_4027
do_fade 500 {direction} Fade.Out

:IMPEXPM_3671
if 
  get_fading_status 
goto_if_false @IMPEXPM_3695
wait 0
goto @IMPEXPM_3671

:IMPEXPM_3695
if 
  31@ <> 0
goto_if_false @IMPEXPM_3764
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3764
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1578.1639 {y} 63.7954 {z} 16.3281
set_char_heading $scplayer {heading} 0.8

:IMPEXPM_3764
gosub @IMPEXPM_9397
delete_car 22@
if 
  does_char_exist 18@
goto_if_false @IMPEXPM_3797
delete_char 18@

:IMPEXPM_3797
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
$disable_crane = 0
if 
  $player_is_in_crane == 2
goto_if_false @IMPEXPM_3837
$reset_crane_camera = 1

:IMPEXPM_3837
do_fade 500 {direction} Fade.In

:IMPEXPM_3844
if 
  get_fading_status 
goto_if_false @IMPEXPM_3868
wait 0
goto @IMPEXPM_3844

:IMPEXPM_3868
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3891
set_player_control $player1 {state} True

:IMPEXPM_3891
if 
  $impexp_is_complete == 1
goto_if_false @IMPEXPM_3950
print_big 'IE29' {time} 5000 {style} TextStyle.Middle
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
wait 5000

:IMPEXPM_3950
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3974
add_score $player1 {money} 29@

:IMPEXPM_3974
print_with_number_big 'IE30' {num} 29@ {duration} 5000 {style} TextStyle.Middle
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
TIMERB = 0
goto @IMPEXPM_577

:IMPEXPM_4027
if 
  does_object_exist 27@
goto_if_false @IMPEXPM_4301
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4301
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPEXPM_4267
if 
  23@ <> 1
goto_if_false @IMPEXPM_4166
print_help 'IE18'
23@ = 1

:IMPEXPM_4166
set_player_enter_car_button $player1 {enabled} False
if 
  0@ == 0
goto_if_false @IMPEXPM_4236
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4229
0@ = 1
15@ = 1
goto @IMPEXPM_577

:IMPEXPM_4229
goto @IMPEXPM_4260

:IMPEXPM_4236
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4260
0@ = 0

:IMPEXPM_4260
goto @IMPEXPM_4301

:IMPEXPM_4267
if 
  23@ == 1
goto_if_false @IMPEXPM_4294
clear_help 
23@ = 0

:IMPEXPM_4294
set_player_enter_car_button $player1 {enabled} True

:IMPEXPM_4301
if 
  15@ == 1
goto_if_false @IMPEXPM_7098

:IMPEXPM_4319
if 
  16@ == 0
goto_if_false @IMPEXPM_4596
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4360
set_player_control $player1 {state} False

:IMPEXPM_4360
print_help_forever 'IE20'
display_radar False
$impexp_menu = create_menu 'IE09' {topLeftX} 29.0 {topLeftY} 170.0 {width} 180.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $impexp_menu {column} 0 {title} 'DUMMY' {row0} 'IE16' {row1} 'IE10' {row2} 'IE11' {row3} 'IE12' {row4} 'IE13' {row5} 'IE14' {row6} 'IE15' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  4@ == -69
goto_if_false @IMPEXPM_4569
set_active_menu_item $impexp_menu {row} $impexp_selected_day
goto @IMPEXPM_4589

:IMPEXPM_4569
4@ = get_current_day_of_week 
4@ += -1
set_active_menu_item $impexp_menu {row} 4@

:IMPEXPM_4589
16@ += 1

:IMPEXPM_4596
if 
  16@ == 1
goto_if_false @IMPEXPM_4870
if 
  1@ == 0
goto_if_false @IMPEXPM_4689
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_4682
$impexp_selected_day = get_menu_item_selected $impexp_menu
16@ += 1
1@ = 1
clear_this_print 'IE28'

:IMPEXPM_4682
goto @IMPEXPM_4713

:IMPEXPM_4689
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_4713
1@ = 0

:IMPEXPM_4713
if 
  0@ == 0
goto_if_false @IMPEXPM_4812
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4805
gosub @IMPEXPM_9031
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4778
set_player_control $player1 {state} True

:IMPEXPM_4778
display_radar True
clear_help 
15@ = 0
16@ = 0
0@ = 1

:IMPEXPM_4805
goto @IMPEXPM_4836

:IMPEXPM_4812
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4836
0@ = 0

:IMPEXPM_4836
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @IMPEXPM_4870
clear_this_print 'IE28'

:IMPEXPM_4870
if 
  16@ == 2
goto_if_false @IMPEXPM_5558
set_var_int_to_var_int $import_car_list_input = $impexp_selected_day
gosub @IMPEXPM_10721
4@ = 0
5@ = 0

:IMPEXPM_4917
if 
  6 > 4@
goto_if_false @IMPEXPM_4985
if 
  $current_import_car_list(4@,6i) <> -1
goto_if_false @IMPEXPM_4971
5@ = 1
4@ = 6

:IMPEXPM_4971
4@ += 1
goto @IMPEXPM_4917

:IMPEXPM_4985
if 
  5@ == 0
goto_if_false @IMPEXPM_5040
print_now 'IE28' {time} 5000 {flag} 1
16@ = 1
goto @IMPEXPM_4319
goto @IMPEXPM_5558

:IMPEXPM_5040
print_help_forever 'IE21'
delete_menu $impexp_menu
$impexp_panel = create_menu 'IE09' {topLeftX} 29.0 {topLeftY} 170.0 {width} 180.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Center
4@ = 0

:IMPEXPM_5100
if 
  6 > 4@
goto_if_false @IMPEXPM_5206
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5174
gosub @IMPEXPM_11874
set_var_text_label $impexp_menu_text_label(4@,6s) = s$impexp_text_label
goto @IMPEXPM_5192

:IMPEXPM_5174
set_var_text_label $impexp_menu_text_label(4@,6s) = 'DUMMY'

:IMPEXPM_5192
4@ += 1
goto @IMPEXPM_5100

:IMPEXPM_5206
set_lvar_int_to_var_int 4@ = $impexp_selected_day
set_menu_column $impexp_panel {column} 0 {title} $impexp_day(4@,7s) {row0} s$impexp_menu_text_label[0] {row1} s$impexp_menu_text_label[1] {row2} s$impexp_menu_text_label[2] {row3} s$impexp_menu_text_label[3] {row4} s$impexp_menu_text_label[4] {row5} s$impexp_menu_text_label[5] {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column $impexp_panel {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
4@ = 0

:IMPEXPM_5431
if 
  6 > 4@
goto_if_false @IMPEXPM_5551
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5537
$current_vehicle_cost = get_car_model_value $current_import_car_list(4@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
set_menu_item_with_number $impexp_panel {column} 1 {row} 4@ {gxt} 'DOLLAR' {number} $current_vehicle_cost

:IMPEXPM_5537
4@ += 1
goto @IMPEXPM_5431

:IMPEXPM_5551
16@ += 1

:IMPEXPM_5558
if 
  16@ == 3
goto_if_false @IMPEXPM_5765
if 
  1@ == 0
goto_if_false @IMPEXPM_5640
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_5633
$impexp_selected_car = get_menu_item_selected $impexp_panel
16@ += 1
1@ = 1

:IMPEXPM_5633
goto @IMPEXPM_5664

:IMPEXPM_5640
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_5664
1@ = 0

:IMPEXPM_5664
if 
  0@ == 0
goto_if_false @IMPEXPM_5741
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_5734
gosub @IMPEXPM_9031
16@ = 0
0@ = 1
4@ = -69
goto @IMPEXPM_4319

:IMPEXPM_5734
goto @IMPEXPM_5765

:IMPEXPM_5741
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_5765
0@ = 0

:IMPEXPM_5765
if 
  16@ == 4
goto_if_false @IMPEXPM_6075
4@ = get_current_day_of_week 
4@ += -1
if 
  not is_int_lvar_equal_to_int_var 4@ == $impexp_selected_day
goto_if_false @IMPEXPM_5844
print_now 'IE19' {time} 5000 {flag} 1
gosub @IMPEXPM_5844
16@ = 0

:IMPEXPM_5844
$current_vehicle_cost = get_car_model_value $current_import_car_list(25@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
4@ = store_score $player1
if 
  is_int_var_greater_than_int_lvar $current_vehicle_cost > 4@
goto_if_false @IMPEXPM_5937
print_now 'IE07' {time} 5000 {flag} 1
gosub @IMPEXPM_9031
16@ = 0

:IMPEXPM_5937
if 
  16@ <> 0
goto_if_false @IMPEXPM_5991
if 
  $current_import_car_list($impexp_selected_car,6i) == -1
goto_if_false @IMPEXPM_5991
gosub @IMPEXPM_9031
16@ = 0

:IMPEXPM_5991
if 
  16@ <> 0
goto_if_false @IMPEXPM_6075
$current_vehicle_cost = get_car_model_value $current_import_car_list(25@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
set_lvar_int_to_var_int 4@ = $current_vehicle_cost
4@ *= -1
add_score $player1 {money} 4@
16@ += 1

:IMPEXPM_6075
if 
  16@ == 5
goto_if_false @IMPEXPM_6548
if 
  not has_model_loaded $current_import_car_list($impexp_selected_car,6i)
goto_if_false @IMPEXPM_6153
request_model $current_import_car_list($impexp_selected_car,6i)

:IMPEXPM_6122
if 
  not has_model_loaded $current_import_car_list($impexp_selected_car,6i)
goto_if_false @IMPEXPM_6153
wait 0
goto @IMPEXPM_6122

:IMPEXPM_6153
clear_help 
gosub @IMPEXPM_9031
clear_area -1572.168 {y} 63.2853 {z} 16.3281 {radius} 20.0 {clearParticles} True
gosub @IMPEXPM_13123
$imported_car = create_car $current_import_car_list($impexp_selected_car,6i) {x} -1572.168 {y} 63.2853 {z} 16.3281
set_vehicle_dirt_level $imported_car {level} 0.0
set_car_heading $imported_car {heading} 315.0
mark_model_as_no_longer_needed $current_import_car_list($impexp_selected_car,6i)
if 
  is_int_var_equal_to_constant $current_import_car_list($impexp_selected_car,6i) == 589
goto_if_false @IMPEXPM_6281
change_car_colour $imported_car {color1} 11 {color2} 0

:IMPEXPM_6281
4@ = get_car_model $imported_car
$x, $y, $z, 7@, 8@, 9@ = get_model_dimensions 4@
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
13@ = cos 45.0
14@ = sin 45.0
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1572.168
add_float_lvar_to_float_var $x += 14@
$y = 63.2853
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
set_car_coordinates $imported_car {x} $x {y} $y {z} $z
set_car_heading $imported_car {heading} 315.0
clear_prints 
switch_widescreen True
set_fixed_camera_position -1567.597 {y} 63.2567 {z} 17.7586 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1568.576 {y} 63.0585 {z} 17.7094 {switchStyle} SwitchType.JumpCut
print_now 'IE08' {time} 5000 {flag} 1
increment_int_stat StatId.VehiclesImported {value} 1
TIMERA = 0
16@ += 1

:IMPEXPM_6548
if 
  16@ == 6
goto_if_false @IMPEXPM_6672
if 
  TIMERA > 5000
goto_if_false @IMPEXPM_6599
16@ += 1
goto @IMPEXPM_6672

:IMPEXPM_6599
if 
  1@ == 0
goto_if_false @IMPEXPM_6648
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_6641
16@ += 1

:IMPEXPM_6641
goto @IMPEXPM_6672

:IMPEXPM_6648
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_6672
1@ = 0

:IMPEXPM_6672
if 
  16@ == 7
goto_if_false @IMPEXPM_6743
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_6723
set_player_control $player1 {state} True

:IMPEXPM_6723
set_player_enter_car_button $player1 {enabled} True
display_radar True
clear_help 
16@ += 1

:IMPEXPM_6743
if 
  16@ == 8
goto_if_false @IMPEXPM_7098
if 
  not is_car_dead $imported_car
goto_if_false @IMPEXPM_6880
if and
  not locate_car_3d $imported_car {x} -1572.168 {y} 63.2853 {z} 16.3281 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
  not is_point_on_screen -1572.168 {y} 63.2853 {z} 16.3281 {radius} 5.0
goto_if_false @IMPEXPM_6873
mark_car_as_no_longer_needed $imported_car
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6873
goto @IMPEXPM_6906

:IMPEXPM_6880
mark_car_as_no_longer_needed $imported_car
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6906
if 
  does_object_exist 27@
goto_if_false @IMPEXPM_7098
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_7098
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPEXPM_7098
if 
  0@ == 0
goto_if_false @IMPEXPM_7074
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_7067
0@ = 1
print_now 'IE08' {time} 5000 {flag} 1

:IMPEXPM_7067
goto @IMPEXPM_7098

:IMPEXPM_7074
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_7098
0@ = 0

:IMPEXPM_7098
goto @IMPEXPM_7112

:IMPEXPM_7105
goto @IMPEXPM_9043

:IMPEXPM_7112
goto @IMPEXPM_7126

:IMPEXPM_7119
goto @IMPEXPM_9043

:IMPEXPM_7126
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @IMPEXPM_7235
4@ = 0

:IMPEXPM_7148
if 
  10 > 4@
goto_if_false @IMPEXPM_7221
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_7207
set_lvar_int_to_var_int 6@ = $current_wanted_car_list(4@,10i)
4@ = 10

:IMPEXPM_7207
4@ += 1
goto @IMPEXPM_7148

:IMPEXPM_7221
gosub @IMPEXPM_9397
goto @IMPEXPM_577

:IMPEXPM_7235
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @IMPEXPM_9024
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "CURRENT_WANTED_LIST = "
save_int_to_debug_file $current_wanted_list
save_newline_to_debug_file 
save_string_to_debug_file "MODID, STATUS, PAYOUT, EXP NAME,  CROSS OUT"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_7530
if 
  10 > 4@
goto_if_false @IMPEXPM_8120
save_int_to_debug_file $current_wanted_car_list(4@,10i)
save_string_to_debug_file "        "
save_int_to_debug_file $current_wanted_car_status(4@,10i)
save_string_to_debug_file "        "
save_string_to_debug_file "        "
save_int_to_debug_file $export_name(4@,10i)
save_string_to_debug_file "        "
save_int_to_debug_file $cross_out(4@,10i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_7530

:IMPEXPM_8120
save_newline_to_debug_file 
save_string_to_debug_file "IMPORT DETAILS"
save_newline_to_debug_file 
save_string_to_debug_file "MODID, IMP NAME"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8393
if 
  6 > 4@
goto_if_false @IMPEXPM_8575
save_int_to_debug_file $current_import_car_list(4@,6i)
save_string_to_debug_file "         "
save_int_to_debug_file $import_name(4@,6i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8393

:IMPEXPM_8575
save_newline_to_debug_file 
save_string_to_debug_file "UNLOCKED_IMPORT_CARS ARRAY"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8716
if 
  42 > 4@
goto_if_false @IMPEXPM_9024
save_string_to_debug_file "UNLOCKED_IMPORT_CARS["
save_int_to_debug_file 4@
save_string_to_debug_file "] = "
save_int_to_debug_file $unlocked_import_cars(4@,42i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8716

:IMPEXPM_9024
goto @IMPEXPM_1559

:IMPEXPM_9031
delete_menu $impexp_menu
delete_menu $impexp_panel
return 

:IMPEXPM_9043
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_9113
if 
  does_object_exist $magno_cabin
goto_if_false @IMPEXPM_9113
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_cabin
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_9113
mark_car_as_no_longer_needed 22@

:IMPEXPM_9113
if 
  does_vehicle_exist $imported_car
goto_if_false @IMPEXPM_9183
if 
  does_object_exist $magno_cabin
goto_if_false @IMPEXPM_9183
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_cabin
if 
  not is_int_lvar_equal_to_int_var 17@ == $imported_car
goto_if_false @IMPEXPM_9183
mark_car_as_no_longer_needed $imported_car

:IMPEXPM_9183
if 
  does_char_exist 18@
goto_if_false @IMPEXPM_9204
delete_char 18@

:IMPEXPM_9204
if 
  does_object_exist 24@
goto_if_false @IMPEXPM_9225
delete_object 24@

:IMPEXPM_9225
4@ = 0

:IMPEXPM_9232
if 
  10 > 4@
goto_if_false @IMPEXPM_9293
if 
  does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_9279
delete_object $cross_out(4@,10i)

:IMPEXPM_9279
4@ += 1
goto @IMPEXPM_9232

:IMPEXPM_9293
if 
  does_object_exist $wanted_list_object
goto_if_false @IMPEXPM_9314
delete_object $wanted_list_object

:IMPEXPM_9314
if 
  $restore_mobile_for_filshie == 1
goto_if_false @IMPEXPM_9339
$activate_mobile_phone = 1

:IMPEXPM_9339
goto @IMPEXPM_484
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_9376
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} True

:IMPEXPM_9376
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
0@ = 1
return 
return 

:IMPEXPM_9397
increment_int_stat StatId.VehiclesExported {value} 1
4@ = 0

:IMPEXPM_9411
if 
  10 > 4@
goto_if_false @IMPEXPM_9675
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_9661
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_9661
$current_wanted_car_status(4@,10i) = 1
29@ = get_car_model_value 6@
cset_lvar_float_to_lvar_int 12@ =# 29@
mult_float_lvar_by_float_var 12@ *= $export_price_multiplier
mult_float_lvar_by_float_var 12@ *= $export_damage_multiplier
cset_lvar_int_to_lvar_float 29@ =# 12@
4@ = get_int_stat StatId.VehiclesExported
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_9654 {caseNum1} 10 {caseLabel1} @IMPEXPM_9596 {caseNum2} 20 {caseLabel2} @IMPEXPM_9613 {caseNum3} 30 {caseLabel3} @IMPEXPM_9630 {caseNum4} -1 {caseLabel4} @IMPEXPM_9654 {caseNum5} -1 {caseLabel5} @IMPEXPM_9654 {caseNum6} -1 {caseLabel6} @IMPEXPM_9654 {caseNum7} -1 {caseLabel7} @IMPEXPM_9654

:IMPEXPM_9596
29@ += 50000
goto @IMPEXPM_9654

:IMPEXPM_9613
29@ += 100000
goto @IMPEXPM_9654

:IMPEXPM_9630
29@ += 200000
$impexp_is_complete = 1
goto @IMPEXPM_9654

:IMPEXPM_9654
4@ = 10

:IMPEXPM_9661
4@ += 1
goto @IMPEXPM_9411

:IMPEXPM_9675
gosub @IMPEXPM_11683
4@ = 0

:IMPEXPM_9689
if 
  42 > 4@
goto_if_false @IMPEXPM_9770
if 
  $unlocked_import_cars(4@,42i) == -1
goto_if_false @IMPEXPM_9756
set_var_int_to_lvar_int $unlocked_import_cars(4@,42i) = 6@
set_lvar_int_to_lvar_int 5@ = 4@
4@ = 42

:IMPEXPM_9756
4@ += 1
goto @IMPEXPM_9689

:IMPEXPM_9770
$impexp_new_cars = 1
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_10062 {caseNum1} 10 {caseLabel1} @IMPEXPM_9840 {caseNum2} 16 {caseLabel2} @IMPEXPM_9873 {caseNum3} 22 {caseLabel3} @IMPEXPM_9914 {caseNum4} 28 {caseLabel4} @IMPEXPM_9947 {caseNum5} 34 {caseLabel5} @IMPEXPM_9988 {caseNum6} 40 {caseLabel6} @IMPEXPM_10021 {caseNum7} -1 {caseLabel7} @IMPEXPM_10062

:IMPEXPM_9840
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 444
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9873
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 555
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9914
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 568
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9947
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 451
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9988
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 539
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10021
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 541
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10062
return 

:IMPEXPM_10064
if and
  $onmission == 1
  $steal4_flag <> 1
goto_if_false @IMPEXPM_10166
$current_wanted_car_list[0] = -1
$current_wanted_car_list[1] = -1
$current_wanted_car_list[2] = -1
$current_wanted_car_list[3] = -1
$current_wanted_car_list[4] = -1
$current_wanted_car_list[5] = -1
$current_wanted_car_list[6] = -1
$current_wanted_car_list[7] = -1
$current_wanted_car_list[8] = -1
$current_wanted_car_list[9] = -1
goto @IMPEXPM_10642

:IMPEXPM_10166
4@ = 0
5@ = 0

:IMPEXPM_10180
if 
  10 > 4@
goto_if_false @IMPEXPM_10241
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_10227
5@ += 1

:IMPEXPM_10227
4@ += 1
goto @IMPEXPM_10180

:IMPEXPM_10241
if 
  5@ == 10
goto_if_false @IMPEXPM_10348
if 
  2 > $current_wanted_list
goto_if_false @IMPEXPM_10341
$current_wanted_list += 1
4@ = 0

:IMPEXPM_10291
if 
  10 > 4@
goto_if_false @IMPEXPM_10334
$current_wanted_car_status(4@,10i) = 0
4@ += 1
goto @IMPEXPM_10291

:IMPEXPM_10334
goto @IMPEXPM_10348

:IMPEXPM_10341
$impexp_is_complete = 1

:IMPEXPM_10348
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_10446
set_var_int_to_constant $current_wanted_car_list[0] = 402
set_var_int_to_constant $current_wanted_car_list[1] = 405
set_var_int_to_constant $current_wanted_car_list[2] = 411
set_var_int_to_constant $current_wanted_car_list[3] = 483
set_var_int_to_constant $current_wanted_car_list[4] = 445
set_var_int_to_constant $current_wanted_car_list[5] = 470
set_var_int_to_constant $current_wanted_car_list[6] = 468
set_var_int_to_constant $current_wanted_car_list[7] = 409
set_var_int_to_constant $current_wanted_car_list[8] = 533
set_var_int_to_constant $current_wanted_car_list[9] = 534

:IMPEXPM_10446
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_10544
set_var_int_to_constant $current_wanted_car_list[0] = 415
set_var_int_to_constant $current_wanted_car_list[1] = 489
set_var_int_to_constant $current_wanted_car_list[2] = 439
set_var_int_to_constant $current_wanted_car_list[3] = 514
set_var_int_to_constant $current_wanted_car_list[4] = 480
set_var_int_to_constant $current_wanted_car_list[5] = 535
set_var_int_to_constant $current_wanted_car_list[6] = 496
set_var_int_to_constant $current_wanted_car_list[7] = 580
set_var_int_to_constant $current_wanted_car_list[8] = 475
set_var_int_to_constant $current_wanted_car_list[9] = 521

:IMPEXPM_10544
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_10642
set_var_int_to_constant $current_wanted_car_list[0] = 429
set_var_int_to_constant $current_wanted_car_list[1] = 506
set_var_int_to_constant $current_wanted_car_list[2] = 508
set_var_int_to_constant $current_wanted_car_list[3] = 579
set_var_int_to_constant $current_wanted_car_list[4] = 424
set_var_int_to_constant $current_wanted_car_list[5] = 536
set_var_int_to_constant $current_wanted_car_list[6] = 463
set_var_int_to_constant $current_wanted_car_list[7] = 500
set_var_int_to_constant $current_wanted_car_list[8] = 477
set_var_int_to_constant $current_wanted_car_list[9] = 587

:IMPEXPM_10642
return 

:IMPEXPM_10644
if 
  does_object_exist $magno_cabin
goto_if_false @IMPEXPM_10719
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_cabin
if 
  17@ <> -1
goto_if_false @IMPEXPM_10719
if 
  not is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @IMPEXPM_10719
set_lvar_int_to_lvar_int 20@ = 17@

:IMPEXPM_10719
return 

:IMPEXPM_10721
4@ = 0

:IMPEXPM_10728
if 
  6 > 4@
goto_if_false @IMPEXPM_10771
$current_import_car_list(4@,6i) = -1
4@ += 1
goto @IMPEXPM_10728

:IMPEXPM_10771
switch_start $import_car_list_input {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_11219 {caseNum1} 0 {caseLabel1} @IMPEXPM_10834 {caseNum2} 1 {caseLabel2} @IMPEXPM_10889 {caseNum3} 2 {caseLabel3} @IMPEXPM_10944 {caseNum4} 3 {caseLabel4} @IMPEXPM_10999 {caseNum5} 4 {caseLabel5} @IMPEXPM_11054 {caseNum6} 5 {caseLabel6} @IMPEXPM_11109 {caseNum7} 6 {caseLabel7} @IMPEXPM_11164

:IMPEXPM_10834
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[0]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[7]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[14]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[21]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[28]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[35]
goto @IMPEXPM_11219

:IMPEXPM_10889
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[1]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[8]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[15]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[22]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[29]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[36]
goto @IMPEXPM_11219

:IMPEXPM_10944
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[2]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[9]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[16]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[23]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[30]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[37]
goto @IMPEXPM_11219

:IMPEXPM_10999
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[3]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[10]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[17]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[24]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[31]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[38]
goto @IMPEXPM_11219

:IMPEXPM_11054
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[4]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[11]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[18]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[25]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[32]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[39]
goto @IMPEXPM_11219

:IMPEXPM_11109
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[5]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[12]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[19]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[26]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[33]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[40]
goto @IMPEXPM_11219

:IMPEXPM_11164
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[6]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[13]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[20]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[27]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[34]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[41]
goto @IMPEXPM_11219

:IMPEXPM_11219
return 

:IMPEXPM_11221
4@ = 0

:IMPEXPM_11228
if 
  5 > 4@
goto_if_false @IMPEXPM_11416
if 
  $imported_cars(4@,5i) == -1
goto_if_false @IMPEXPM_11294
set_var_int_to_var_int $imported_cars(4@,5i) = $imported_car
4@ = 10
goto @IMPEXPM_11409

:IMPEXPM_11294
if 
  does_vehicle_exist $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11382
if 
  is_car_dead $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11368
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221
goto @IMPEXPM_11375

:IMPEXPM_11368
4@ += 1

:IMPEXPM_11375
goto @IMPEXPM_11409

:IMPEXPM_11382
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221

:IMPEXPM_11409
goto @IMPEXPM_11228

:IMPEXPM_11416
if 
  4@ == 5
goto_if_false @IMPEXPM_11453
mark_car_as_no_longer_needed $imported_cars[4]
$imported_cars[4] = -1
goto @IMPEXPM_11221

:IMPEXPM_11453
return 
4@ = 0

:IMPEXPM_11462
if 
  5 > 4@
goto_if_false @IMPEXPM_11681
if 
  $imported_cars(4@,5i) <> -1
goto_if_false @IMPEXPM_11667
if 
  does_vehicle_exist $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11647
if 
  not is_car_dead $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11620
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_11613
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} $imported_cars(4@,5i) {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @IMPEXPM_11613
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11613
goto @IMPEXPM_11640

:IMPEXPM_11620
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11640
goto @IMPEXPM_11667

:IMPEXPM_11647
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11667
4@ += 1
goto @IMPEXPM_11462

:IMPEXPM_11681
return 

:IMPEXPM_11683
4@ = 0

:IMPEXPM_11690
if 
  10 > 4@
goto_if_false @IMPEXPM_11872
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_11741
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 0

:IMPEXPM_11741
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_11774
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 10

:IMPEXPM_11774
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_11807
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 20

:IMPEXPM_11807
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_11847
switch_car_generator $2829(5@,30i) {amount} 101
goto @IMPEXPM_11858

:IMPEXPM_11847
switch_car_generator $2829(5@,30i) {amount} 0

:IMPEXPM_11858
4@ += 1
goto @IMPEXPM_11690

:IMPEXPM_11872
return 

:IMPEXPM_11874
switch_start 6@ {numCases} 42 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_13121 {caseNum1} 402 {caseLabel1} @IMPEXPM_12281 {caseNum2} 404 {caseLabel2} @IMPEXPM_13100 {caseNum3} 405 {caseLabel3} @IMPEXPM_12302 {caseNum4} 409 {caseLabel4} @IMPEXPM_12428 {caseNum5} 411 {caseLabel5} @IMPEXPM_12323 {caseNum6} 415 {caseLabel6} @IMPEXPM_12554 {caseNum7} 424 {caseLabel7} @IMPEXPM_12911
switch_continued 429 {caseLabel1} @IMPEXPM_12827 {caseNum2} 434 {caseLabel2} @IMPEXPM_13016 {caseNum3} 439 {caseLabel3} @IMPEXPM_12596 {caseNum4} 444 {caseLabel4} @IMPEXPM_12491 {caseNum5} 445 {caseLabel5} @IMPEXPM_12365 {caseNum6} 451 {caseLabel6} @IMPEXPM_12848 {caseNum7} 463 {caseLabel7} @IMPEXPM_12953 {caseNum8} 468 {caseLabel8} @IMPEXPM_12407 {caseNum9} 470 {caseLabel9} @IMPEXPM_12386
switch_continued 475 {caseLabel1} @IMPEXPM_12722 {caseNum2} 477 {caseLabel2} @IMPEXPM_12995 {caseNum3} 480 {caseLabel3} @IMPEXPM_12638 {caseNum4} 483 {caseLabel4} @IMPEXPM_12344 {caseNum5} 489 {caseLabel5} @IMPEXPM_12575 {caseNum6} 496 {caseLabel6} @IMPEXPM_12680 {caseNum7} 500 {caseLabel7} @IMPEXPM_12974 {caseNum8} 506 {caseLabel8} @IMPEXPM_12806 {caseNum9} 508 {caseLabel9} @IMPEXPM_12869
switch_continued 514 {caseLabel1} @IMPEXPM_12617 {caseNum2} 521 {caseLabel2} @IMPEXPM_12743 {caseNum3} 522 {caseLabel3} @IMPEXPM_12512 {caseNum4} 533 {caseLabel4} @IMPEXPM_12449 {caseNum5} 534 {caseLabel5} @IMPEXPM_12470 {caseNum6} 535 {caseLabel6} @IMPEXPM_12659 {caseNum7} 536 {caseLabel7} @IMPEXPM_12932 {caseNum8} 539 {caseLabel8} @IMPEXPM_13058 {caseNum9} 541 {caseLabel9} @IMPEXPM_13079
switch_continued 555 {caseLabel1} @IMPEXPM_12533 {caseNum2} 559 {caseLabel2} @IMPEXPM_12260 {caseNum3} 568 {caseLabel3} @IMPEXPM_12785 {caseNum4} 573 {caseLabel4} @IMPEXPM_13037 {caseNum5} 579 {caseLabel5} @IMPEXPM_12890 {caseNum6} 580 {caseLabel6} @IMPEXPM_12701 {caseNum7} 587 {caseLabel7} @IMPEXPM_12764 {caseNum8} 589 {caseLabel8} @IMPEXPM_12239 {caseNum9} -1 {caseLabel9} @IMPEXPM_13121

:IMPEXPM_12239
set_var_text_label s$impexp_text_label = 'CLUB'
goto @IMPEXPM_13121

:IMPEXPM_12260
set_var_text_label s$impexp_text_label = 'JESTER'
goto @IMPEXPM_13121

:IMPEXPM_12281
set_var_text_label s$impexp_text_label = 'BUFFALO'
goto @IMPEXPM_13121

:IMPEXPM_12302
set_var_text_label s$impexp_text_label = 'SENTINL'
goto @IMPEXPM_13121

:IMPEXPM_12323
set_var_text_label s$impexp_text_label = 'INFERNU'
goto @IMPEXPM_13121

:IMPEXPM_12344
set_var_text_label s$impexp_text_label = 'CAMPER'
goto @IMPEXPM_13121

:IMPEXPM_12365
set_var_text_label s$impexp_text_label = 'ADMIRAL'
goto @IMPEXPM_13121

:IMPEXPM_12386
set_var_text_label s$impexp_text_label = 'PATRIOT'
goto @IMPEXPM_13121

:IMPEXPM_12407
set_var_text_label s$impexp_text_label = 'SANCHEZ'
goto @IMPEXPM_13121

:IMPEXPM_12428
set_var_text_label s$impexp_text_label = 'STRETCH'
goto @IMPEXPM_13121

:IMPEXPM_12449
set_var_text_label s$impexp_text_label = 'FELTZER'
goto @IMPEXPM_13121

:IMPEXPM_12470
set_var_text_label s$impexp_text_label = 'REMING'
goto @IMPEXPM_13121

:IMPEXPM_12491
set_var_text_label s$impexp_text_label = 'MONSTER'
goto @IMPEXPM_13121

:IMPEXPM_12512
set_var_text_label s$impexp_text_label = 'NRG500'
goto @IMPEXPM_13121

:IMPEXPM_12533
set_var_text_label s$impexp_text_label = 'WINDSOR'
goto @IMPEXPM_13121

:IMPEXPM_12554
set_var_text_label s$impexp_text_label = 'CHEETAH'
goto @IMPEXPM_13121

:IMPEXPM_12575
set_var_text_label s$impexp_text_label = 'RANCHER'
goto @IMPEXPM_13121

:IMPEXPM_12596
set_var_text_label s$impexp_text_label = 'STALION'
goto @IMPEXPM_13121

:IMPEXPM_12617
set_var_text_label s$impexp_text_label = 'PETROL'
goto @IMPEXPM_13121

:IMPEXPM_12638
set_var_text_label s$impexp_text_label = 'COMET'
goto @IMPEXPM_13121

:IMPEXPM_12659
set_var_text_label s$impexp_text_label = 'SLAMVAN'
goto @IMPEXPM_13121

:IMPEXPM_12680
set_var_text_label s$impexp_text_label = 'BLISTAC'
goto @IMPEXPM_13121

:IMPEXPM_12701
set_var_text_label s$impexp_text_label = 'STAFFRD'
goto @IMPEXPM_13121

:IMPEXPM_12722
set_var_text_label s$impexp_text_label = 'SABRE'
goto @IMPEXPM_13121

:IMPEXPM_12743
set_var_text_label s$impexp_text_label = 'FCR900'
goto @IMPEXPM_13121

:IMPEXPM_12764
set_var_text_label s$impexp_text_label = 'EUROS'
goto @IMPEXPM_13121

:IMPEXPM_12785
set_var_text_label s$impexp_text_label = 'BANDITO'
goto @IMPEXPM_13121

:IMPEXPM_12806
set_var_text_label s$impexp_text_label = 'SUPERGT'
goto @IMPEXPM_13121

:IMPEXPM_12827
set_var_text_label s$impexp_text_label = 'BANSHEE'
goto @IMPEXPM_13121

:IMPEXPM_12848
set_var_text_label s$impexp_text_label = 'TURISMO'
goto @IMPEXPM_13121

:IMPEXPM_12869
set_var_text_label s$impexp_text_label = 'JOURNEY'
goto @IMPEXPM_13121

:IMPEXPM_12890
set_var_text_label s$impexp_text_label = 'HUNTLEY'
goto @IMPEXPM_13121

:IMPEXPM_12911
set_var_text_label s$impexp_text_label = 'BFINJC'
goto @IMPEXPM_13121

:IMPEXPM_12932
set_var_text_label s$impexp_text_label = 'BLADE'
goto @IMPEXPM_13121

:IMPEXPM_12953
set_var_text_label s$impexp_text_label = 'FREEWAY'
goto @IMPEXPM_13121

:IMPEXPM_12974
set_var_text_label s$impexp_text_label = 'MESAA'
goto @IMPEXPM_13121

:IMPEXPM_12995
set_var_text_label s$impexp_text_label = 'ZR350'
goto @IMPEXPM_13121

:IMPEXPM_13016
set_var_text_label s$impexp_text_label = 'HOTKNIF'
goto @IMPEXPM_13121

:IMPEXPM_13037
set_var_text_label s$impexp_text_label = 'DUNE'
goto @IMPEXPM_13121

:IMPEXPM_13058
set_var_text_label s$impexp_text_label = 'VORTEX'
goto @IMPEXPM_13121

:IMPEXPM_13079
set_var_text_label s$impexp_text_label = 'BULLET'
goto @IMPEXPM_13121

:IMPEXPM_13100
set_var_text_label s$impexp_text_label = 'PEREN'
goto @IMPEXPM_13121

:IMPEXPM_13121
return 

:IMPEXPM_13123
switch_start $current_import_car_list($impexp_selected_car,6i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @IMPEXPM_14676 {caseNum1} 405 {caseLabel1} @IMPEXPM_13644 {caseNum2} 411 {caseLabel2} @IMPEXPM_14075 {caseNum3} 415 {caseLabel3} @IMPEXPM_14023 {caseNum4} 424 {caseLabel4} @IMPEXPM_14333 {caseNum5} 429 {caseLabel5} @IMPEXPM_14206 {caseNum6} 470 {caseLabel6} @IMPEXPM_14359 {caseNum7} 475 {caseLabel7} @IMPEXPM_13997
switch_continued 480 {caseLabel1} @IMPEXPM_14049 {caseNum2} 483 {caseLabel2} @IMPEXPM_13771 {caseNum3} 489 {caseLabel3} @IMPEXPM_14101 {caseNum4} 496 {caseLabel4} @IMPEXPM_14127 {caseNum5} 506 {caseLabel5} @IMPEXPM_13391 {caseNum6} 533 {caseLabel6} @IMPEXPM_13796 {caseNum7} 536 {caseLabel7} @IMPEXPM_14523 {caseNum8} 541 {caseLabel8} @IMPEXPM_14549 {caseNum9} 555 {caseLabel9} @IMPEXPM_13417
switch_continued 559 {caseLabel1} @IMPEXPM_13443 {caseNum2} 587 {caseLabel2} @IMPEXPM_13365 {caseNum3} 589 {caseLabel3} @IMPEXPM_13339 {caseNum4} -1 {caseLabel4} @IMPEXPM_14690 {caseNum5} -1 {caseLabel5} @IMPEXPM_14690 {caseNum6} -1 {caseLabel6} @IMPEXPM_14690 {caseNum7} -1 {caseLabel7} @IMPEXPM_14690 {caseNum8} -1 {caseLabel8} @IMPEXPM_14690 {caseNum9} -1 {caseLabel9} @IMPEXPM_14690

:IMPEXPM_13339
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "N13_LLF_"
goto @IMPEXPM_14690

:IMPEXPM_13365
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_DS3MP__"
goto @IMPEXPM_14690

:IMPEXPM_13391
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_CMACD1_"
goto @IMPEXPM_14690

:IMPEXPM_13417
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__C0S___"
goto @IMPEXPM_14690

:IMPEXPM_13443
4@ = generate_random_int_in_range 0 {max} 5
if 
  4@ == 0
goto_if_false @IMPEXPM_13489
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__SWAV__"

:IMPEXPM_13489
if 
  4@ == 1
goto_if_false @IMPEXPM_13526
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_GR01N__"

:IMPEXPM_13526
if 
  4@ == 2
goto_if_false @IMPEXPM_13563
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_G_MAN__"

:IMPEXPM_13563
if 
  4@ == 3
goto_if_false @IMPEXPM_13600
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_X2_GAV_"

:IMPEXPM_13600
if 
  4@ == 4
goto_if_false @IMPEXPM_13637
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__G3PO__"

:IMPEXPM_13637
goto @IMPEXPM_14690

:IMPEXPM_13644
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 0
goto_if_false @IMPEXPM_13690
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "D0N_D0N_"

:IMPEXPM_13690
if 
  4@ == 1
goto_if_false @IMPEXPM_13727
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_D0_NNY_"

:IMPEXPM_13727
if 
  4@ == 2
goto_if_false @IMPEXPM_13764
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "TH3_D0N_"

:IMPEXPM_13764
goto @IMPEXPM_14690

:IMPEXPM_13771
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "SJM1985"
goto @IMPEXPM_14690

:IMPEXPM_13796
4@ = generate_random_int_in_range 0 {max} 5
if 
  4@ == 0
goto_if_false @IMPEXPM_13842
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DR_DR_F_"

:IMPEXPM_13842
if 
  4@ == 1
goto_if_false @IMPEXPM_13879
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "433_ADF_"

:IMPEXPM_13879
if 
  4@ == 2
goto_if_false @IMPEXPM_13916
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DR_F_MBE"

:IMPEXPM_13916
if 
  4@ == 3
goto_if_false @IMPEXPM_13953
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "GPP4YR0L"

:IMPEXPM_13953
if 
  4@ == 4
goto_if_false @IMPEXPM_13990
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "ANN_F3RG"

:IMPEXPM_13990
goto @IMPEXPM_14690

:IMPEXPM_13997
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__FR4Z__"
goto @IMPEXPM_14690

:IMPEXPM_14023
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_IMY_AK_"
goto @IMPEXPM_14690

:IMPEXPM_14049
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_L0LLY__"
goto @IMPEXPM_14690

:IMPEXPM_14075
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_J_L33S_"
goto @IMPEXPM_14690

:IMPEXPM_14101
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "S4_LIJON"
goto @IMPEXPM_14690

:IMPEXPM_14127
4@ = generate_random_int_in_range 0 {max} 2
if 
  4@ == 0
goto_if_false @IMPEXPM_14180
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DI5CO5TU"
goto @IMPEXPM_14199

:IMPEXPM_14180
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "SM53_NUV"

:IMPEXPM_14199
goto @IMPEXPM_14690

:IMPEXPM_14206
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 0
goto_if_false @IMPEXPM_14252
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "J3NYTAL5"

:IMPEXPM_14252
if 
  4@ == 1
goto_if_false @IMPEXPM_14289
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_J3_NCF_"

:IMPEXPM_14289
if 
  4@ == 2
goto_if_false @IMPEXPM_14326
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DD0_N4LD"

:IMPEXPM_14326
goto @IMPEXPM_14690

:IMPEXPM_14333
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "LA5H_L3Y"
goto @IMPEXPM_14690

:IMPEXPM_14359
4@ = generate_random_int_in_range 0 {max} 4
if 
  4@ == 0
goto_if_false @IMPEXPM_14405
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "AL3X_RES"

:IMPEXPM_14405
if 
  4@ == 1
goto_if_false @IMPEXPM_14442
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R_F3RG1E"

:IMPEXPM_14442
if 
  4@ == 2
goto_if_false @IMPEXPM_14479
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "H4_NNAHF"

:IMPEXPM_14479
if 
  4@ == 3
goto_if_false @IMPEXPM_14516
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "CL41_RES"

:IMPEXPM_14516
goto @IMPEXPM_14690

:IMPEXPM_14523
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R055_MCL"
goto @IMPEXPM_14690

:IMPEXPM_14549
4@ = generate_random_int_in_range 0 {max} 4
if 
  4@ == 0
goto_if_false @IMPEXPM_14595
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "T00_FAST"

:IMPEXPM_14595
if 
  4@ == 1
goto_if_false @IMPEXPM_14632
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "EA_SUCKS"

:IMPEXPM_14632
if 
  4@ == 2
goto_if_false @IMPEXPM_14669
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "FUCK_Y0U"

:IMPEXPM_14669
goto @IMPEXPM_14690

:IMPEXPM_14676
gosub @IMPEXPM_14692
goto @IMPEXPM_14690

:IMPEXPM_14690
return 

:IMPEXPM_14692
4@ = generate_random_int_in_range 0 {max} 100
switch_start 4@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_15141 {caseNum1} 0 {caseLabel1} @IMPEXPM_14829 {caseNum2} 1 {caseLabel2} @IMPEXPM_14855 {caseNum3} 2 {caseLabel3} @IMPEXPM_14881 {caseNum4} 3 {caseLabel4} @IMPEXPM_14907 {caseNum5} 4 {caseLabel5} @IMPEXPM_14933 {caseNum6} 5 {caseLabel6} @IMPEXPM_14959 {caseNum7} 6 {caseLabel7} @IMPEXPM_14985
switch_continued 7 {caseLabel1} @IMPEXPM_15011 {caseNum2} 8 {caseLabel2} @IMPEXPM_15037 {caseNum3} 9 {caseLabel3} @IMPEXPM_15063 {caseNum4} 10 {caseLabel4} @IMPEXPM_15089 {caseNum5} 11 {caseLabel5} @IMPEXPM_15115 {caseNum6} -1 {caseLabel6} @IMPEXPM_15141 {caseNum7} -1 {caseLabel7} @IMPEXPM_15141 {caseNum8} -1 {caseLabel8} @IMPEXPM_15141 {caseNum9} -1 {caseLabel9} @IMPEXPM_15141

:IMPEXPM_14829
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R4N_G3RS"
goto @IMPEXPM_15141

:IMPEXPM_14855
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "GL4S_G0W"
goto @IMPEXPM_15141

:IMPEXPM_14881
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_ARRAN__"
goto @IMPEXPM_15141

:IMPEXPM_14907
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "AM0_RUS0"
goto @IMPEXPM_15141

:IMPEXPM_14933
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_AMAT0__"
goto @IMPEXPM_15141

:IMPEXPM_14959
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_GA_ZZA_"
goto @IMPEXPM_15141

:IMPEXPM_14985
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "ZID_ANE_"
goto @IMPEXPM_15141

:IMPEXPM_15011
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "MC_C01ST"
goto @IMPEXPM_15141

:IMPEXPM_15037
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BAW_BAG_"
goto @IMPEXPM_15141

:IMPEXPM_15063
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BR0_D1E_"
goto @IMPEXPM_15141

:IMPEXPM_15089
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "MR_J0BBY"
goto @IMPEXPM_15141

:IMPEXPM_15115
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BR0_DICK"
goto @IMPEXPM_15141

:IMPEXPM_15141
return 

:IMPEXPC
script_name 'IMPEXPC'

:IMPEXPC_11
wait 5000
if 
  is_player_playing $player1
goto_if_false @IMPEXPC_306
if 
  $onmission == 0
goto_if_false @IMPEXPC_306
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPC_306
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @IMPEXPC_306
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPEXPC_281
if 
  0@ == 0
goto_if_false @IMPEXPC_274
$car = store_car_char_is_in_no_save $scplayer
1@ = get_car_model $car
2@ = 0
3@ = 0

:IMPEXPC_147
if 
  10 > 2@
goto_if_false @IMPEXPC_238
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(2@,10i) == 1@
goto_if_false @IMPEXPC_224
if 
  $current_wanted_car_status(2@,10i) == 0
goto_if_false @IMPEXPC_224
3@ = 1
2@ = 10

:IMPEXPC_224
2@ += 1
goto @IMPEXPC_147

:IMPEXPC_238
if 
  3@ == 1
goto_if_false @IMPEXPC_274
print_help 'IE22'
0@ = 1

:IMPEXPC_274
goto @IMPEXPC_306

:IMPEXPC_281
if 
  0@ == 1
goto_if_false @IMPEXPC_306
0@ = 0

:IMPEXPC_306
goto @IMPEXPC_11

:APCHECK
script_name 'APCHECK'
set_deatharrest_state 0
$iFlagOpenAirportGates = 0
$iAPgateSF1 = create_object_no_offset #WS_APGATE {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_heading $iAPgateSF1 {heading} -45.0
dont_remove_object $iAPgateSF1
$iAPgateSF2 = create_object_no_offset #WS_APGATE {x} -1547.625 {y} -428.82 {z} 6.039
set_object_heading $iAPgateSF2 {heading} -45.0
dont_remove_object $iAPgateSF2
$iAPgateSF1b = create_object_no_offset #WS_APGATE {x} -1222.953 {y} 53.826 {z} 14.134
set_object_heading $iAPgateSF1b {heading} -135.0
dont_remove_object $iAPgateSF1b
$iAPgateSF2b = create_object_no_offset #WS_APGATE {x} -1218.2061 {y} 68.883 {z} 14.134
set_object_heading $iAPgateSF2b {heading} -135.0
dont_remove_object $iAPgateSF2b
$iAPgateLA1 = create_object_no_offset #WS_APGATE {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_heading $iAPgateLA1 {heading} 180.0
dont_remove_object $iAPgateLA1
$iAPgateLA2 = create_object_no_offset #WS_APGATE {x} 1958.851 {y} -2189.7771 {z} 13.553
set_object_heading $iAPgateLA2 {heading} 180.0
dont_remove_object $iAPgateLA2
$iAPgateLV1 = create_object_no_offset #WS_APGATE {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_heading $iAPgateLV1 {heading} 73.0
dont_remove_object $iAPgateLV1
$iAPgateLV2 = create_object_no_offset #WS_APGATE {x} 1706.364 {y} 1610.422 {z} 10.058
set_object_heading $iAPgateLV2 {heading} 73.0
dont_remove_object $iAPgateLV2

:APCHECK_318
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_895
if 
  locate_char_any_means_3d $scplayer {x} -1540.66 {y} -435.786 {z} 6.039 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_537
if 
  $flag_is_farlie3_running == 1
goto_if_false @APCHECK_468
$iFlagOpenAirportGates = 1
start_new_script @APGUARD -1 
set_object_coordinates $iAPgateSF1 {x} -1540.66 {y} -435.786 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1550.709 {y} -425.736 {z} 6.039
goto @APCHECK_530

:APCHECK_468
start_new_script @APGUARD 1 
start_new_script @APGATE $iAPgateSF1 -1540.66 -435.786 6.039 
start_new_script @APGATE $iAPgateSF2 -1550.709 -425.736 6.039 

:APCHECK_530
goto @APCHECK_1087

:APCHECK_537
if 
  locate_char_any_means_3d $scplayer {x} 1968.697 {y} -2189.7759 {z} 13.553 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_654
start_new_script @APGUARD 2 
start_new_script @APGATE $iAPgateLA1 1968.697 -2189.7759 13.553 
start_new_script @APGATE $iAPgateLA2 1954.571 -2189.7771 13.553 
goto @APCHECK_1547

:APCHECK_654
if 
  locate_char_any_means_3d $scplayer {x} 1703.4 {y} 1600.5179 {z} 10.058 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_771
start_new_script @APGUARD 3 
start_new_script @APGATE $iAPgateLV1 1703.4 1600.5179 10.058 
start_new_script @APGATE $iAPgateLV2 1707.722 1614.937 10.058 
goto @APCHECK_1777

:APCHECK_771
if 
  locate_char_any_means_3d $scplayer {x} -1226.162 {y} 65.3807 {z} 13.0375 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_888
start_new_script @APGUARD 4 
start_new_script @APGATE $iAPgateSF1b -1226.59 50.189 14.134 
start_new_script @APGATE $iAPgateSF2b -1214.392 72.697 14.134 
goto @APCHECK_1317

:APCHECK_888
goto @APCHECK_1080

:APCHECK_895
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1080
goto @APCHECK_318

:APCHECK_1087
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1245
if 
  not locate_char_any_means_3d $scplayer {x} -1540.66 {y} -435.786 {z} 6.039 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1238
if 
  $onmission == 0
goto_if_false @APCHECK_1238
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1238
goto @APCHECK_1310

:APCHECK_1245
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1310
goto @APCHECK_1087

:APCHECK_1317
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1475
if 
  not locate_char_any_means_3d $scplayer {x} -1226.162 {y} 65.3807 {z} 13.0375 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1468
if 
  $onmission == 0
goto_if_false @APCHECK_1468
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1468
goto @APCHECK_1540

:APCHECK_1475
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1540
goto @APCHECK_1317

:APCHECK_1547
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1705
if 
  not locate_char_any_means_3d $scplayer {x} 1968.697 {y} -2189.7759 {z} 13.553 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1698
if 
  $onmission == 0
goto_if_false @APCHECK_1698
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1698
goto @APCHECK_1770

:APCHECK_1705
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1770
goto @APCHECK_1547

:APCHECK_1777
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1935
if 
  not locate_char_any_means_3d $scplayer {x} 1703.4 {y} 1600.5179 {z} 10.058 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1928
if 
  $onmission == 0
goto_if_false @APCHECK_1928
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1928
goto @APCHECK_2000

:APCHECK_1935
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_2000
goto @APCHECK_1777
terminate_this_script 

:APGUARD
script_name 'APGUARD'
3@ = 0

:APGUARD_18
if 
  not has_model_loaded 71
goto_if_false @APGUARD_48
request_model 71
wait 0
goto @APGUARD_18

:APGUARD_48
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @APGUARD_333 {caseNum1} -1 {caseLabel1} @APGUARD_111 {caseNum2} 1 {caseLabel2} @APGUARD_169 {caseNum3} 2 {caseLabel3} @APGUARD_210 {caseNum4} 3 {caseLabel4} @APGUARD_251 {caseNum5} 4 {caseLabel5} @APGUARD_292 {caseNum6} -1 {caseLabel6} @APGUARD_333 {caseNum7} -1 {caseLabel7} @APGUARD_333

:APGUARD_111
1@ = create_char PedType.CivMale {modelId} 71 {x} -1544.88 {y} -441.1089 {z} 5.0068
set_char_heading 1@ {heading} 7.3631
set_char_money 1@ {amount} 0
dont_remove_char 1@
task_dead 1@
goto @APGUARD_333

:APGUARD_169
1@ = create_char PedType.CivMale {modelId} 71 {x} -1544.396 {y} -443.2464 {z} 5.045
set_char_heading 1@ {heading} 54.6458
goto @APGUARD_333

:APGUARD_210
1@ = create_char PedType.CivMale {modelId} 71 {x} 1955.809 {y} -2181.541 {z} 12.5865
set_char_heading 1@ {heading} 272.1978
goto @APGUARD_333

:APGUARD_251
1@ = create_char PedType.CivMale {modelId} 71 {x} 1717.202 {y} 1617.376 {z} 9.1924
set_char_heading 1@ {heading} 186.0379
goto @APGUARD_333

:APGUARD_292
1@ = create_char PedType.CivMale {modelId} 71 {x} -1229.438 {y} 55.3906 {z} 13.2328
set_char_heading 1@ {heading} 301.4596
goto @APGUARD_333

:APGUARD_333
set_char_decision_maker 1@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_only_damaged_by_player 1@ {state} True
dont_remove_char 1@

:APGUARD_355
wait 0
if 
  is_player_playing $player1
goto_if_false @APGUARD_542
if 
  not is_char_dead 1@
goto_if_false @APGUARD_528
if 
  not locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 67.0 {yRadius} 67.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APGUARD_434
gosub @APGUARD_883

:APGUARD_434
if 
  not is_char_dead 1@
goto_if_false @APGUARD_493
if 
  locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @APGUARD_493
gosub @APGUARD_556

:APGUARD_493
if 
  has_char_been_damaged_by_char 1@ {handle} $scplayer
goto_if_false @APGUARD_521
set_char_relationship 1@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:APGUARD_521
goto @APGUARD_535

:APGUARD_528
gosub @APGUARD_883

:APGUARD_535
goto @APGUARD_549

:APGUARD_542
gosub @APGUARD_883

:APGUARD_549
goto @APGUARD_355

:APGUARD_556
if 
  locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @APGUARD_881
2@ = get_int_stat StatId.FlyingSkill
if and
  not is_char_responding_to_event 1@ {event} Event.AcquaintancePedHate
  is_int_lvar_greater_or_equal_to_constant 2@ >= 180
goto_if_false @APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_750
3@ = generate_random_int_in_range 1 {max} 100
if 
  3@ > 50
goto_if_false @APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN1'
set_var_int_to_constant $audio_sound_file = 24402
goto @APGUARD_722

:APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN2'
set_var_int_to_constant $audio_sound_file = 24403

:APGUARD_722
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_750
goto @APGUARD_881

:APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_881
3@ = generate_random_int_in_range 1 {max} 100
if 
  3@ > 50
goto_if_false @APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS1'
set_var_int_to_constant $audio_sound_file = 24400
goto @APGUARD_853

:APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS2'
set_var_int_to_constant $audio_sound_file = 24401

:APGUARD_853
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_881
return 

:APGUARD_883
if 
  is_player_playing $player1
goto_if_false @APGUARD_935
if 
  $onmission == 0
goto_if_false @APGUARD_928
delete_char 1@
mark_model_as_no_longer_needed 71
terminate_this_script 

:APGUARD_928
goto @APGUARD_946

:APGUARD_935
delete_char 1@
mark_model_as_no_longer_needed 71
terminate_this_script 

:APGUARD_946
return 

:APGATE
script_name 'APGATE'
5@ = 0
6@ = 0
4@ = 0
if 
  4@ > 0
goto_if_false @APGATE_72
0@ = create_object_no_offset #WS_APGATE {x} 0.0 {y} 0.0 {z} 0.0

:APGATE_72
wait 0
if and
  does_object_exist 0@
  is_player_playing $player1
goto_if_false @APGATE_104
gosub @APGATE_111

:APGATE_104
goto @APGATE_72

:APGATE_111
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @APGATE_188 {caseNum1} 0 {caseLabel1} @APGATE_174 {caseNum2} -1 {caseLabel2} @APGATE_188 {caseNum3} -1 {caseLabel3} @APGATE_188 {caseNum4} -1 {caseLabel4} @APGATE_188 {caseNum5} -1 {caseLabel5} @APGATE_188 {caseNum6} -1 {caseLabel6} @APGATE_188 {caseNum7} -1 {caseLabel7} @APGATE_188

:APGATE_174
gosub @APGATE_190
goto @APGATE_188

:APGATE_188
return 

:APGATE_190
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @APGATE_1046 {caseNum1} 0 {caseLabel1} @APGATE_253 {caseNum2} 1 {caseLabel2} @APGATE_692 {caseNum3} 2 {caseLabel3} @APGATE_828 {caseNum4} 3 {caseLabel4} @APGATE_910 {caseNum5} -1 {caseLabel5} @APGATE_1046 {caseNum6} -1 {caseLabel6} @APGATE_1046 {caseNum7} -1 {caseLabel7} @APGATE_1046

:APGATE_253
10@ = get_int_stat StatId.FlyingSkill
if 
  is_int_lvar_greater_or_equal_to_constant 10@ >= 180
goto_if_false @APGATE_362
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @APGATE_355
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_348
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_348
6@ += 1

:APGATE_355
goto @APGATE_685

:APGATE_362
if 
  $iFlagOpenAirportGates > 0
goto_if_false @APGATE_462
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @APGATE_455
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_448
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_448
6@ += 1

:APGATE_455
goto @APGATE_685

:APGATE_462
11@, 14@, 17@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 5.2 {zOffset} 0.0
if 
  locate_char_any_means_3d $scplayer {x} 11@ {y} 14@ {z} 17@ {xRadius} 4.5 {yRadius} 4.5 {zRadius} 4.5 {drawSphere} False
goto_if_false @APGATE_584
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_570
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_570
6@ += 1
goto @APGATE_685

:APGATE_584
11@, 14@, 17@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.0
if and
  locate_char_any_means_3d $scplayer {x} 11@ {y} 14@ {z} 17@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  180 >= 10@
  not is_this_help_message_being_displayed 'AP_0003'
goto_if_false @APGATE_685
print_help 'AP_0003'

:APGATE_685
goto @APGATE_1046

:APGATE_692
gosub @APGATE_1048
if 
  slide_object 0@ {posX} 1@ {posY} 2@ {posZ} 3@ {speedX} 13@ {speedY} 16@ {speedZ} 19@ {collisionCheck} True
goto_if_false @APGATE_821
if 
  locate_object_3d 0@ {x} 1@ {y} 2@ {z} 3@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @APGATE_821
set_object_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_814
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop

:APGATE_814
6@ += 1

:APGATE_821
goto @APGATE_1046

:APGATE_828
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @APGATE_903
12@, 15@, 18@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_896
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_896
6@ += 1

:APGATE_903
goto @APGATE_1046

:APGATE_910
gosub @APGATE_1048
if 
  slide_object 0@ {posX} 11@ {posY} 14@ {posZ} 17@ {speedX} 13@ {speedY} 16@ {speedZ} 19@ {collisionCheck} True
goto_if_false @APGATE_1039
if 
  locate_object_3d 0@ {x} 11@ {y} 14@ {z} 17@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @APGATE_1039
set_object_coordinates 0@ {x} 11@ {y} 14@ {z} 17@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_1032
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop

:APGATE_1032
6@ = 0

:APGATE_1039
goto @APGATE_1046

:APGATE_1046
return 

:APGATE_1048
13@ = get_object_heading 0@
if and
  13@ > 70.0
  75.0 > 13@
goto_if_false @APGATE_1124
13@ = 0.03
16@ = 0.1
19@ = 0.1
goto @APGATE_1154

:APGATE_1124
13@ = 0.1
16@ = 0.1
19@ = 0.1

:APGATE_1154
return 

:GFINIT
script_name 'GFINIT'
$iGFSelfRespect[0] = 30
$iGFLikesPlayer[0] = 15
$iGFDesiredSexAppeal[0] = -100
$iGFRespectGiven[0] = 200
$iGFLikesOnDate[0] = 0
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 1
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 11
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 16
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 21
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 27
$iGFLikesPlayerTraits[0] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[0] {bitIndex} 3
$iGFDiaryOfBusyHours[0] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 14
$iGFSelfRespect[1] = 45
$iGFLikesPlayer[1] = 0
$iGFDesiredSexAppeal[1] = 60
$iGFRespectGiven[1] = 500
$iGFLikesOnDate[1] = 0
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 11
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 12
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 16
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 27
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 22
$iGFLikesPlayerTraits[1] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[1] {bitIndex} 2
$iGFDiaryOfBusyHours[1] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 14
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 16
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 18
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 20
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 22
$iGFSelfRespect[2] = 70
$iGFLikesPlayer[2] = 0
$iGFDesiredSexAppeal[2] = 70
$iGFRespectGiven[2] = 700
$iGFLikesOnDate[2] = 0
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 5
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 14
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 15
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 18
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 28
$iGFLikesPlayerTraits[2] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[2] {bitIndex} 3
$iGFDiaryOfBusyHours[2] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 12
$iGFSelfRespect[3] = 60
$iGFLikesPlayer[3] = 0
$iGFDesiredSexAppeal[3] = 45
$iGFRespectGiven[3] = 400
$iGFLikesOnDate[3] = 0
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 2
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 18
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 20
$iGFLikesPlayerTraits[3] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[3] {bitIndex} 2
$iGFDiaryOfBusyHours[3] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 14
$iGFSelfRespect[4] = 50
$iGFLikesPlayer[4] = 0
$iGFDesiredSexAppeal[4] = 50
$iGFRespectGiven[4] = 300
$iGFLikesOnDate[4] = 0
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 2
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 19
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 24
$iGFLikesPlayerTraits[4] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[4] {bitIndex} 1
$iGFDiaryOfBusyHours[4] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 0
$iGFSelfRespect[5] = 45
$iGFLikesPlayer[5] = 20
$iGFDesiredSexAppeal[5] = 60
$iGFRespectGiven[5] = 400
$iGFLikesOnDate[5] = 0
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 5
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 14
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 15
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 19
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 27
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 23
$iGFLikesPlayerTraits[5] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[5] {bitIndex} 1
$iGFDiaryOfBusyHours[5] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 22
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 10
$iGFdoor[0] = create_object_no_offset #GEN_DOOREXT03 {x} 2401.75 {y} -1714.4771 {z} 13.125
dont_remove_object $iGFdoor[0]
set_object_collision_damage_effect $iGFdoor[0] {state} False
set_object_proofs $iGFdoor[0] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[4] = create_object_no_offset #GEN_DOOREXT07 {x} -2574.4951 {y} 1153.0229 {z} 54.669
set_object_heading $iGFdoor[4] {heading} -19.444
dont_remove_object $iGFdoor[4]
set_object_collision_damage_effect $iGFdoor[4] {state} False
set_object_proofs $iGFdoor[4] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[1] = create_object_no_offset #GEN_DOORSHOP02 {x} -1800.7061 {y} 1201.041 {z} 24.12
dont_remove_object $iGFdoor[1]
set_object_collision_damage_effect $iGFdoor[1] {state} False
set_object_proofs $iGFdoor[1] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[2] = create_object_no_offset #GEN_DOOREXT04 {x} -383.46 {y} -1439.64 {z} 25.33
set_object_heading $iGFdoor[2] {heading} 90.0
dont_remove_object $iGFdoor[2]
set_object_collision_damage_effect $iGFdoor[2] {state} False
set_object_proofs $iGFdoor[2] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[3] = create_object_no_offset #GEN_DOORSHOP3 {x} -1390.79 {y} 2639.3301 {z} 54.973
dont_remove_object $iGFdoor[3]
set_object_collision_damage_effect $iGFdoor[3] {state} False
set_object_proofs $iGFdoor[3] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[5] = create_object_no_offset #GEN_DOOREXT03 {x} 2038.036 {y} 2721.3701 {z} 10.53
set_object_heading $iGFdoor[5] {heading} -180.0
dont_remove_object $iGFdoor[5]
set_object_collision_damage_effect $iGFdoor[5] {state} False
set_object_proofs $iGFdoor[5] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[6] = create_object_no_offset #CUNTGIRLDOOR {x} -371.4 {y} -1429.42 {z} 26.47
dont_remove_object $iGFdoor[6]
set_object_collision_damage_effect $iGFdoor[6] {state} False
set_object_proofs $iGFdoor[6] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iCensoredVersion = 1
start_new_script @GFAGNT 
terminate_this_script 

:GFAGNT
script_name 'GFAGNT'
$iGFTimeStep = 0
3@ = 0
4@ = 0
$iAgentFlags = 0
0@ = 0
1@ = 0
set_var_text_label16 v$GF_txtConsoleCheck = "NIL"
$iPhoneState = 20
$iGFidx = -1
8@ = -1
7@ = 1
if 
  3@ > 0
goto_if_false @GFAGNT_335
2@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[0] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[1] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[2] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[3] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[4] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[5] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$catalinas_cargen[0] = create_car_generator 0.0 {y} 0.0 {z} 0.0 {heading} 0.0 {modelId} 0 {primaryColor} 0 {secondaryColor} 0 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 0
$2823[0] = create_car_generator 0.0 {y} 0.0 {z} 0.0 {heading} 0.0 {modelId} 0 {primaryColor} 0 {secondaryColor} 0 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 0

:GFAGNT_335
wait $iGFTimeStep
if and
  is_player_playing $player1
  not is_char_dead $scplayer
  $onmission == 0
goto_if_false @GFAGNT_389
clear_global_var_bit_const $iAgentFlags {bitIndex} 31
gosub @GFAGNT_428
goto @GFAGNT_421

:GFAGNT_389
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 31
goto_if_false @GFAGNT_421
gosub @GFAGNT_10963
set_global_var_bit_const $iAgentFlags {bitIndex} 31

:GFAGNT_421
goto @GFAGNT_335

:GFAGNT_428
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_561 {caseNum1} 0 {caseLabel1} @GFAGNT_491 {caseNum2} 1 {caseLabel2} @GFAGNT_505 {caseNum3} 2 {caseLabel3} @GFAGNT_519 {caseNum4} 3 {caseLabel4} @GFAGNT_533 {caseNum5} 4 {caseLabel5} @GFAGNT_547 {caseNum6} -1 {caseLabel6} @GFAGNT_561 {caseNum7} -1 {caseLabel7} @GFAGNT_561

:GFAGNT_491
gosub @GFAGNT_563
goto @GFAGNT_561

:GFAGNT_505
gosub @GFAGNT_1545
goto @GFAGNT_561

:GFAGNT_519
gosub @GFAGNT_2238
goto @GFAGNT_561

:GFAGNT_533
gosub @GFAGNT_2544
goto @GFAGNT_561

:GFAGNT_547
gosub @GFAGNT_2721
goto @GFAGNT_561

:GFAGNT_561
return 

:GFAGNT_563
gosub @GFAGNT_4940
if 
  is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iGFidx
goto_if_false @GFAGNT_1167
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 25
goto_if_false @GFAGNT_621
3@ = 1
goto @GFAGNT_891

:GFAGNT_621
3@ = 0
4@ = get_city_player_is_in $player1
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_891 {caseNum1} 0 {caseLabel1} @GFAGNT_699 {caseNum2} 1 {caseLabel2} @GFAGNT_795 {caseNum3} 2 {caseLabel3} @GFAGNT_763 {caseNum4} 3 {caseLabel4} @GFAGNT_731 {caseNum5} 4 {caseLabel5} @GFAGNT_827 {caseNum6} 5 {caseLabel6} @GFAGNT_859 {caseNum7} -1 {caseLabel7} @GFAGNT_891

:GFAGNT_699
if 
  is_int_lvar_equal_to_constant 4@ == 1
goto_if_false @GFAGNT_724
3@ = 1

:GFAGNT_724
goto @GFAGNT_891

:GFAGNT_731
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_756
3@ = 1

:GFAGNT_756
goto @GFAGNT_891

:GFAGNT_763
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_788
3@ = 1

:GFAGNT_788
goto @GFAGNT_891

:GFAGNT_795
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_820
3@ = 1

:GFAGNT_820
goto @GFAGNT_891

:GFAGNT_827
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_852
3@ = 1

:GFAGNT_852
goto @GFAGNT_891

:GFAGNT_859
if 
  is_int_lvar_equal_to_constant 4@ == 3
goto_if_false @GFAGNT_884
3@ = 1

:GFAGNT_884
goto @GFAGNT_891

:GFAGNT_891
if 
  3@ == 1
goto_if_false @GFAGNT_1158
gosub @GFAGNT_2915
gosub @GFAGNT_5057
if 
  3@ > 0
goto_if_false @GFAGNT_1144
$iGFTimeStep = 250
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_1137
gosub @GFAGNT_4293
gosub @GFAGNT_5268
if 
  3@ > 0
goto_if_false @GFAGNT_1044
$iGFTimeStep = 0
gosub @GFAGNT_5521
set_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
0@ = 4
1@ = 0
return 
goto @GFAGNT_1137

:GFAGNT_1044
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
gosub @GFAGNT_5624
$iGFTimeStep = 250
if 
  locate_stopped_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @GFAGNT_1137
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @GFAGNT_1135
print_help 'GF_0048'

:GFAGNT_1135
return 

:GFAGNT_1137
goto @GFAGNT_1151

:GFAGNT_1144
gosub @GFAGNT_5996

:GFAGNT_1151
goto @GFAGNT_1160

:GFAGNT_1158
return 

:GFAGNT_1160
goto @GFAGNT_1543

:GFAGNT_1167
gosub @GFAGNT_3736
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_1543
gosub @GFAGNT_5131
if 
  3@ > 0
goto_if_false @GFAGNT_1531
$iGFTimeStep = 250
if and
  $iGFidx == 2
  2 > $flag_la1fin1_mission_counter
goto_if_false @GFAGNT_1256
mark_streamed_script_as_no_longer_needed 24
return 

:GFAGNT_1256
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_1524
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
goto_if_false @GFAGNT_1400
3@ = get_current_day_of_week 
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_1384
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
clear_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
3@ = 1
goto @GFAGNT_1393

:GFAGNT_1384
3@ = -1
return 

:GFAGNT_1393
goto @GFAGNT_1407

:GFAGNT_1400
3@ = 1

:GFAGNT_1407
if 
  3@ == 1
goto_if_false @GFAGNT_1524
gosub @GFAGNT_4640
3@ = get_number_of_instances_of_streamed_script 24
if 
  3@ == 0
goto_if_false @GFAGNT_1524
stream_script 24
if 
  has_streamed_script_loaded 24
goto_if_false @GFAGNT_1524
set_global_var_bit_const $iDateReport {bitIndex} 20
start_new_streamed_script 24 {args} $iGFidx 10@ 11@ 12@ 13@ 
$iGFTimeStep = 0
0@ = 3
1@ = 0

:GFAGNT_1524
goto @GFAGNT_1543

:GFAGNT_1531
$iGFTimeStep = 500
mark_streamed_script_as_no_longer_needed 24

:GFAGNT_1543
return 

:GFAGNT_1545
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2236 {caseNum1} 0 {caseLabel1} @GFAGNT_1608 {caseNum2} 1 {caseLabel2} @GFAGNT_1830 {caseNum3} 2 {caseLabel3} @GFAGNT_1882 {caseNum4} 3 {caseLabel4} @GFAGNT_2035 {caseNum5} 4 {caseLabel5} @GFAGNT_2158 {caseNum6} -1 {caseLabel6} @GFAGNT_2236 {caseNum7} -1 {caseLabel7} @GFAGNT_2236

:GFAGNT_1608
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_1641
gosub @GFAGNT_6973
$iPhoneState = 20

:GFAGNT_1641
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
gosub @GFAGNT_7339
if 
  is_player_playing $player1
goto_if_false @GFAGNT_1686
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
get_rid_of_player_prostitute 

:GFAGNT_1686
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 31
goto_if_false @GFAGNT_1711
$iDateReport = 0

:GFAGNT_1711
gosub @GFAGNT_9409
if and
  3@ == 1
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 23
goto_if_false @GFAGNT_1761
set_global_var_bit_const $iDateReport {bitIndex} 14
goto @GFAGNT_1812

:GFAGNT_1761
if 
  30 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_1797
set_global_var_bit_const $iDateReport {bitIndex} 11
goto @GFAGNT_1812

:GFAGNT_1797
gosub @GFAGNT_6997
set_global_var_bit_lvar $iDateReport {var_bitIndex} 3@

:GFAGNT_1812
stream_script 25
1@ += 1
goto @GFAGNT_2236

:GFAGNT_1830
if 
  has_streamed_script_loaded 25
goto_if_false @GFAGNT_1875
set_global_var_bit_const $iDateReport {bitIndex} 1
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
start_new_streamed_script 25 {args} 2@ 
1@ += 1

:GFAGNT_1875
goto @GFAGNT_2236

:GFAGNT_1882
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @GFAGNT_1996
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 3
goto_if_false @GFAGNT_1968
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @GFAGNT_1961
set_player_control $player1 {state} False
gosub @GFAGNT_9055
stream_script 26
1@ += 1

:GFAGNT_1961
goto @GFAGNT_1989

:GFAGNT_1968
do_fade 1000 {direction} Fade.In
0@ = 2
1@ = 0

:GFAGNT_1989
goto @GFAGNT_2028

:GFAGNT_1996
3@ = get_number_of_instances_of_streamed_script 25
if 
  3@ == 0
goto_if_false @GFAGNT_2028
clear_global_var_bit_const $iDateReport {bitIndex} 1

:GFAGNT_2028
goto @GFAGNT_2236

:GFAGNT_2035
if 
  has_streamed_script_loaded 26
goto_if_false @GFAGNT_2151
3@ = get_area_visible 
gosub @GFAGNT_4293
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFAGNT_2112
start_new_streamed_script 26 {args} $iGFidx 1 3@ 10@ 11@ 12@ 13@ 
goto @GFAGNT_2137

:GFAGNT_2112
start_new_streamed_script 26 {args} $iGFidx 0 3@ 10@ 11@ 12@ 13@ 

:GFAGNT_2137
set_global_var_bit_const $iDateReport {bitIndex} 5
1@ += 1

:GFAGNT_2151
goto @GFAGNT_2236

:GFAGNT_2158
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @GFAGNT_2197
0@ = 2
1@ = 0
goto @GFAGNT_2229

:GFAGNT_2197
3@ = get_number_of_instances_of_streamed_script 26
if 
  3@ == 0
goto_if_false @GFAGNT_2229
clear_global_var_bit_const $iDateReport {bitIndex} 5

:GFAGNT_2229
goto @GFAGNT_2236

:GFAGNT_2236
return 

:GFAGNT_2238
switch_start 1@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2542 {caseNum1} 0 {caseLabel1} @GFAGNT_2301 {caseNum2} 1 {caseLabel2} @GFAGNT_2417 {caseNum3} -1 {caseLabel3} @GFAGNT_2542 {caseNum4} -1 {caseLabel4} @GFAGNT_2542 {caseNum5} -1 {caseLabel5} @GFAGNT_2542 {caseNum6} -1 {caseLabel6} @GFAGNT_2542 {caseNum7} -1 {caseLabel7} @GFAGNT_2542

:GFAGNT_2301
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
gosub @GFAGNT_9055
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2367
clear_help 
print_help 'GF_0039'
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iGFidx
goto @GFAGNT_2403

:GFAGNT_2367
gosub @GFAGNT_8576
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_2403
gosub @GFAGNT_5673

:GFAGNT_2403
1@ += 1
goto @GFAGNT_2542

:GFAGNT_2417
if or
  $iGFLikesPlayer($iGFidx,6i) == -100
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2479
gosub @GFAGNT_9475
0@ = 0
1@ = 0
goto @GFAGNT_2535

:GFAGNT_2479
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_2535
0@ = 0
1@ = 0

:GFAGNT_2535
goto @GFAGNT_2542

:GFAGNT_2542
return 

:GFAGNT_2544
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_2687
gosub @GFAGNT_4640
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 65.0 {yRadius} 65.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @GFAGNT_2680
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 21
goto_if_false @GFAGNT_2666
7@ = get_current_day_of_week 
7@ += 1
if 
  7@ > 7
goto_if_false @GFAGNT_2666
7@ = 1

:GFAGNT_2666
0@ = 0
1@ = 0

:GFAGNT_2680
goto @GFAGNT_2719

:GFAGNT_2687
3@ = get_number_of_instances_of_streamed_script 24
if 
  3@ == 0
goto_if_false @GFAGNT_2719
clear_global_var_bit_const $iDateReport {bitIndex} 20

:GFAGNT_2719
return 

:GFAGNT_2721
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 75.0 {yRadius} 75.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_2899
gosub @GFAGNT_5268
if 
  3@ > 0
goto_if_false @GFAGNT_2878
if 
  locate_stopped_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @GFAGNT_2871
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_2871
set_player_control $player1 {state} False
0@ = 1
1@ = 0
return 

:GFAGNT_2871
goto @GFAGNT_2892

:GFAGNT_2878
0@ = 0
1@ = 0

:GFAGNT_2892
goto @GFAGNT_2913

:GFAGNT_2899
0@ = 0
1@ = 0

:GFAGNT_2913
return 

:GFAGNT_2915
if 
  not does_blip_exist $iGFHomeBlips($iGFidx,6i)
goto_if_false @GFAGNT_3029
gosub @GFAGNT_4293
add_short_range_sprite_blip_for_coord 10@ {y} 11@ {z} 12@ {sprite} RadarSprite.Girlfriend {var_handle} $iGFHomeBlips($iGFidx,6i)
increment_int_stat StatId.CurrentGirlfriends {value} 1
increment_int_stat StatId.GirlsDated {value} 1
3@ = get_int_stat StatId.RespectGirlfriend
add_int_var_to_int_lvar 3@ += $iGFRespectGiven($iGFidx,6i)
if 
  3@ > 1000
goto_if_false @GFAGNT_3022
3@ = 1000

:GFAGNT_3022
set_int_stat StatId.RespectGirlfriend {value} 3@

:GFAGNT_3029
switch_start $iGFidx {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_3734 {caseNum1} 0 {caseLabel1} @GFAGNT_3092 {caseNum2} 1 {caseLabel2} @GFAGNT_3159 {caseNum3} 2 {caseLabel3} @GFAGNT_3277 {caseNum4} 3 {caseLabel4} @GFAGNT_3488 {caseNum5} 4 {caseLabel5} @GFAGNT_3611 {caseNum6} -1 {caseLabel6} @GFAGNT_3734 {caseNum7} -1 {caseLabel7} @GFAGNT_3734

:GFAGNT_3092
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_pimp_clothes == 0
goto_if_false @GFAGNT_3152
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3152
print_help 'GF_H006'
$flag_got_pimp_clothes = 1

:GFAGNT_3152
goto @GFAGNT_3734

:GFAGNT_3159
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_mechanic_clothes == 0
goto_if_false @GFAGNT_3219
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3219
print_help 'GF_H006'
$flag_got_mechanic_clothes = 1

:GFAGNT_3219
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 21
goto_if_false @GFAGNT_3270
change_garage_type 'MICHDR' {type} GarageType.Respray
set_garage_respray_free 'MICHDR' {state} True
set_global_var_bit_const $iActiveGF {bitIndex} 21

:GFAGNT_3270
goto @GFAGNT_3734

:GFAGNT_3277
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_country_clothes == 0
goto_if_false @GFAGNT_3337
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3337
print_help 'GF_H006'
$flag_player_got_country_clothes = 1

:GFAGNT_3337
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 22
goto_if_false @GFAGNT_3481
set_object_visible $iGFdoor[6] {state} False
set_object_collision $iGFdoor[6] {state} False
$iGFBonusPickupID = create_pickup 344 {pickupType} PickupType.OnStreetSlow {x} -366.2235 {y} -1429.088 {z} 25.5
$395 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -365.7906 {y} -1425.2531 {z} 25.5
$396 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 100 {x} -365.4774 {y} -1422.401 {z} 25.5
$397 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} -366.066 {y} -1418.683 {z} 25.5
set_global_var_bit_const $iActiveGF {bitIndex} 22

:GFAGNT_3481
goto @GFAGNT_3734

:GFAGNT_3488
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_police_uniform == 0
goto_if_false @GFAGNT_3548
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3548
print_help 'GF_H006'
$flag_player_got_police_uniform = 1

:GFAGNT_3548
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 23
goto_if_false @GFAGNT_3604
set_extra_police_station_restart_point -1379.843 {y} 2635.74 {z} 54.4315 {radius} 1500.0 {heading} 170.6194
switch_arrest_penalties False
set_global_var_bit_const $iActiveGF {bitIndex} 23

:GFAGNT_3604
goto @GFAGNT_3734

:GFAGNT_3611
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_medic_clothes == 0
goto_if_false @GFAGNT_3671
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3671
print_help 'GF_H006'
$flag_got_medic_clothes = 1

:GFAGNT_3671
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 24
goto_if_false @GFAGNT_3727
set_extra_hospital_restart_point -2570.511 {y} 1139.582 {z} 54.8547 {radius} 1500.0 {heading} 160.0
switch_death_penalties False
set_global_var_bit_const $iActiveGF {bitIndex} 24

:GFAGNT_3727
goto @GFAGNT_3734

:GFAGNT_3734
return 

:GFAGNT_3736
if 
  $Returned_oysters == 50
goto_if_false @GFAGNT_3801
if and
  0 > $iGFLikesPlayer($iGFidx,6i)
  $iGFidx <> 0
  $iGFidx <> 5
goto_if_false @GFAGNT_3801
$iGFLikesPlayer($iGFidx,6i) = 45

:GFAGNT_3801
if 
  does_blip_exist $iGFHomeBlips($iGFidx,6i)
goto_if_false @GFAGNT_3917
remove_blip $iGFHomeBlips($iGFidx,6i)
gosub @GFAGNT_9475
gosub @GFAGNT_5624
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
decrement_int_stat StatId.CurrentGirlfriends {value} 1
increment_int_stat StatId.GirlsDumped {value} 1
3@ = get_int_stat StatId.RespectGirlfriend
sub_int_var_from_int_lvar 3@ -= $iGFRespectGiven($iGFidx,6i)
if 
  0 > 3@
goto_if_false @GFAGNT_3910
3@ = 0

:GFAGNT_3910
set_int_stat StatId.RespectGirlfriend {value} 3@

:GFAGNT_3917
set_lvar_int_to_var_int 3@ = $iGFidx
3@ += 20
if 
  is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 3@
goto_if_false @GFAGNT_4291
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4291 {caseNum1} 1 {caseLabel1} @GFAGNT_4014 {caseNum2} 2 {caseLabel2} @GFAGNT_4113 {caseNum3} 3 {caseLabel3} @GFAGNT_4209 {caseNum4} 4 {caseLabel4} @GFAGNT_4254 {caseNum5} -1 {caseLabel5} @GFAGNT_4291 {caseNum6} -1 {caseLabel6} @GFAGNT_4291 {caseNum7} -1 {caseLabel7} @GFAGNT_4291

:GFAGNT_4014
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1790.7 {leftBottomY} 1209.0 {leftBottomZ} 23.0 {rightTopX} -1784.0 {rightTopY} 1221.5 {rightTopZ} 27.5 {drawSphere} False
goto_if_false @GFAGNT_4106
set_garage_respray_free 'MICHDR' {state} False
change_garage_type 'MICHDR' {type} GarageType.ForScriptToOpenAndClose
close_garage 'MICHDR'
clear_global_var_bit_const $iActiveGF {bitIndex} 21

:GFAGNT_4106
goto @GFAGNT_4291

:GFAGNT_4113
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -361.0 {leftBottomY} -1417.0 {leftBottomZ} 23.0 {rightTopX} -372.0 {rightTopY} -1431.0 {rightTopZ} 30.0 {drawSphere} False
goto_if_false @GFAGNT_4202
remove_pickup $iGFBonusPickupID
remove_pickup $395
remove_pickup $396
remove_pickup $397
set_object_visible $iGFdoor[6] {state} True
set_object_collision $iGFdoor[6] {state} True
clear_global_var_bit_const $iActiveGF {bitIndex} 22

:GFAGNT_4202
goto @GFAGNT_4291

:GFAGNT_4209
set_extra_police_station_restart_point -1379.843 {y} 2635.74 {z} 54.4315 {radius} 0.0 {heading} 170.6194
switch_arrest_penalties True
clear_global_var_bit_const $iActiveGF {bitIndex} 23
goto @GFAGNT_4291

:GFAGNT_4254
set_extra_hospital_restart_point 10@ {y} 11@ {z} 12@ {radius} 0.0 {heading} 13@
switch_death_penalties True
clear_global_var_bit_const $iActiveGF {bitIndex} 24
goto @GFAGNT_4291

:GFAGNT_4291
return 

:GFAGNT_4293
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4638 {caseNum1} 0 {caseLabel1} @GFAGNT_4356 {caseNum2} 1 {caseLabel2} @GFAGNT_4403 {caseNum3} 2 {caseLabel3} @GFAGNT_4450 {caseNum4} 3 {caseLabel4} @GFAGNT_4497 {caseNum5} 4 {caseLabel5} @GFAGNT_4544 {caseNum6} 5 {caseLabel6} @GFAGNT_4591 {caseNum7} -1 {caseLabel7} @GFAGNT_4638

:GFAGNT_4356
10@ = 2401.9651
11@ = -1723.22
12@ = 12.6005
13@ = 180.0
goto @GFAGNT_4638

:GFAGNT_4403
10@ = -1799.5
11@ = 1195.5
12@ = 24.1094
13@ = 180.0
goto @GFAGNT_4638

:GFAGNT_4450
10@ = -377.3978
11@ = -1438.692
12@ = 24.7209
13@ = 270.0
goto @GFAGNT_4638

:GFAGNT_4497
10@ = -1398.101
11@ = 2636.873
12@ = 54.7031
13@ = 75.0
goto @GFAGNT_4638

:GFAGNT_4544
10@ = -2576.8081
11@ = 1144.744
12@ = 54.7422
13@ = 164.0
goto @GFAGNT_4638

:GFAGNT_4591
10@ = 2035.3621
11@ = 2732.4109
12@ = 9.8203
13@ = 0.0
goto @GFAGNT_4638

:GFAGNT_4638
return 

:GFAGNT_4640
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_4891 {caseNum1} 1 {caseLabel1} @GFAGNT_4703 {caseNum2} 2 {caseLabel2} @GFAGNT_4750 {caseNum3} 3 {caseLabel3} @GFAGNT_4797 {caseNum4} 4 {caseLabel4} @GFAGNT_4844 {caseNum5} -1 {caseLabel5} @GFAGNT_4938 {caseNum6} -1 {caseLabel6} @GFAGNT_4938 {caseNum7} -1 {caseLabel7} @GFAGNT_4938

:GFAGNT_4703
10@ = -2027.583
11@ = -118.7022
12@ = 1034.0
13@ = 3.4
goto @GFAGNT_4938

:GFAGNT_4750
10@ = 257.6682
11@ = -154.7475
12@ = 4.0786
13@ = 268.7731
goto @GFAGNT_4938

:GFAGNT_4797
10@ = -1410.1
11@ = 2648.731
12@ = 54.6875
13@ = 130.0
goto @GFAGNT_4938

:GFAGNT_4844
10@ = -2291.708
11@ = -233.0215
12@ = 41.7185
13@ = 360.0
goto @GFAGNT_4938

:GFAGNT_4891
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
goto @GFAGNT_4938

:GFAGNT_4938
return 

:GFAGNT_4940
8@ += 1
if 
  8@ >= 6
goto_if_false @GFAGNT_4972
8@ = 0

:GFAGNT_4972
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 25
goto_if_false @GFAGNT_5023
if 
  is_int_lvar_equal_to_int_var 8@ == $iGFidx
goto_if_false @GFAGNT_5016
clear_global_var_bit_const $iAgentFlags {bitIndex} 25

:GFAGNT_5016
goto @GFAGNT_5055

:GFAGNT_5023
$iGFidx += 1
if 
  $iGFidx >= 6
goto_if_false @GFAGNT_5055
$iGFidx = 0

:GFAGNT_5055
return 

:GFAGNT_5057
gosub @GFAGNT_4293
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 65.0 {yRadius} 65.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @GFAGNT_5122
set_global_var_bit_const $iAgentFlags {bitIndex} 25
3@ = 1
return 

:GFAGNT_5122
3@ = -1
return 

:GFAGNT_5131
gosub @GFAGNT_4640
if 
  10@ <> 0.0
goto_if_false @GFAGNT_5259
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 80.0 {yRadius} 80.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_5259
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_5259
set_global_var_bit_const $iAgentFlags {bitIndex} 25
3@ = 1
return 

:GFAGNT_5259
3@ = -1
return 

:GFAGNT_5268
3@ = -1
if and
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5310
3@ = 1
return 

:GFAGNT_5310
if and
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5345
3@ = 1
return 

:GFAGNT_5345
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
goto_if_false @GFAGNT_5441
3@ = get_current_day_of_week 
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_5432
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
clear_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto @GFAGNT_5441

:GFAGNT_5432
3@ = -1
return 

:GFAGNT_5441
3@, 4@ = get_time_of_day 
set_lvar_int_to_lvar_int 4@ = 3@
4@ /= 2
4@ *= 2
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 4@
goto_if_false @GFAGNT_5510
3@ = -1
return 
goto @GFAGNT_5519

:GFAGNT_5510
3@ = 1
return 

:GFAGNT_5519
return 

:GFAGNT_5521
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_5586
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5579
switch_car_generator $2823($iGFidx,6i) {amount} 101
set_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5579
goto @GFAGNT_5622

:GFAGNT_5586
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5622
switch_car_generator $catalinas_cargen($iGFidx,6i) {amount} 101
set_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5622
return 

:GFAGNT_5624
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5671
switch_car_generator $2823($iGFidx,6i) {amount} 0
switch_car_generator $catalinas_cargen($iGFidx,6i) {amount} 0
clear_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5671
return 

:GFAGNT_5673
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_5994 {caseNum1} 0 {caseLabel1} @GFAGNT_5736 {caseNum2} 1 {caseLabel2} @GFAGNT_5779 {caseNum3} 2 {caseLabel3} @GFAGNT_5822 {caseNum4} 3 {caseLabel4} @GFAGNT_5865 {caseNum5} 4 {caseLabel5} @GFAGNT_5908 {caseNum6} 5 {caseLabel6} @GFAGNT_5951 {caseNum7} -1 {caseLabel7} @GFAGNT_5994

:GFAGNT_5736
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 25
goto_if_false @GFAGNT_5772
print_help 'GF_H007'
set_global_var_bit_const $iActiveGF {bitIndex} 25

:GFAGNT_5772
goto @GFAGNT_5994

:GFAGNT_5779
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 26
goto_if_false @GFAGNT_5815
print_help 'GF_H008'
set_global_var_bit_const $iActiveGF {bitIndex} 26

:GFAGNT_5815
goto @GFAGNT_5994

:GFAGNT_5822
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 27
goto_if_false @GFAGNT_5858
print_help 'GF_H009'
set_global_var_bit_const $iActiveGF {bitIndex} 27

:GFAGNT_5858
goto @GFAGNT_5994

:GFAGNT_5865
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 28
goto_if_false @GFAGNT_5901
print_help 'GF_H010'
set_global_var_bit_const $iActiveGF {bitIndex} 28

:GFAGNT_5901
goto @GFAGNT_5994

:GFAGNT_5908
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 29
goto_if_false @GFAGNT_5944
print_help 'GF_H011'
set_global_var_bit_const $iActiveGF {bitIndex} 29

:GFAGNT_5944
goto @GFAGNT_5994

:GFAGNT_5951
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 30
goto_if_false @GFAGNT_5987
print_help 'GF_H012'
set_global_var_bit_const $iActiveGF {bitIndex} 30

:GFAGNT_5987
goto @GFAGNT_5994

:GFAGNT_5994
return 

:GFAGNT_5996
switch_start $iPhoneState {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6518 {caseNum1} 20 {caseLabel1} @GFAGNT_6059 {caseNum2} 21 {caseLabel2} @GFAGNT_6087 {caseNum3} 22 {caseLabel3} @GFAGNT_6220 {caseNum4} 23 {caseLabel4} @GFAGNT_6316 {caseNum5} 24 {caseLabel5} @GFAGNT_6374 {caseNum6} -1 {caseLabel6} @GFAGNT_6518 {caseNum7} -1 {caseLabel7} @GFAGNT_6518

:GFAGNT_6059
gosub @GFAGNT_6973
gosub @GFAGNT_8945
gosub @GFAGNT_6520
goto @GFAGNT_6518

:GFAGNT_6087
3@ = get_minutes_to_time_of_day 5@ {minutes} 6@
if 
  5 >= 3@
goto_if_false @GFAGNT_6213
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6213
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_6180
start_new_script @MOB_GF $iGFidx 1 
$iPhoneState = 22
goto @GFAGNT_6213

:GFAGNT_6180
if 
  not is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iCaller
goto_if_false @GFAGNT_6213
gosub @GFAGNT_6973
$iPhoneState = 20

:GFAGNT_6213
goto @GFAGNT_6518

:GFAGNT_6220
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6309
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
goto_if_false @GFAGNT_6277
gosub @GFAGNT_6639
$iPhoneState = 23
goto @GFAGNT_6309

:GFAGNT_6277
$iGFLikesPlayer($iCaller,6i) -= 2
gosub @GFAGNT_9632
gosub @GFAGNT_6973
$iPhoneState = 20

:GFAGNT_6309
goto @GFAGNT_6518

:GFAGNT_6316
3@ = get_minutes_to_time_of_day 5@ {minutes} 6@
if 
  5 >= 3@
goto_if_false @GFAGNT_6367
set_var_int_to_var_int $iGFidx = $iCaller
gosub @GFAGNT_6711
$iPhoneState = 20

:GFAGNT_6367
goto @GFAGNT_6518

:GFAGNT_6374
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6511
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
goto_if_false @GFAGNT_6468
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6454
$iGFLikesPlayer($iCaller,6i) = -100
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iCaller

:GFAGNT_6454
$iPhoneState = 20
goto @GFAGNT_6511

:GFAGNT_6468
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6504
$iGFLikesPlayer($iCaller,6i) = -99

:GFAGNT_6504
$iPhoneState = 20

:GFAGNT_6511
goto @GFAGNT_6518

:GFAGNT_6518
return 

:GFAGNT_6520
3@ = generate_random_int_in_range 0 {max} 6
if 
  is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 3@
goto_if_false @GFAGNT_6637
if 
  $iGFLikesPlayer(3@,6i) > -15
goto_if_false @GFAGNT_6637
if and
  $iGFLikesPlayer(3@,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_6637
5@ = generate_random_int_in_range 1 {max} 23
6@ = generate_random_int_in_range 1 {max} 59
set_var_int_to_lvar_int $iCaller = 3@
$iPhoneState = 21

:GFAGNT_6637
return 

:GFAGNT_6639
5@, 6@ = get_time_of_day 
6@ = 31
5@ += 5
if 
  5@ > 23
goto_if_false @GFAGNT_6709
set_lvar_int_to_lvar_int 3@ = 5@
3@ -= 23
5@ = 0
add_int_lvar_to_int_lvar 5@ += 3@

:GFAGNT_6709
return 

:GFAGNT_6711
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6971
$iGFLikesPlayer($iCaller,6i) -= 3
gosub @GFAGNT_9632
if and
  not is_help_message_being_displayed 
  $iGFLikesPlayer($iCaller,6i) > -15
goto_if_false @GFAGNT_6971
switch_start $iCaller {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6949 {caseNum1} 0 {caseLabel1} @GFAGNT_6841 {caseNum2} 1 {caseLabel2} @GFAGNT_6859 {caseNum3} 2 {caseLabel3} @GFAGNT_6877 {caseNum4} 3 {caseLabel4} @GFAGNT_6895 {caseNum5} 4 {caseLabel5} @GFAGNT_6913 {caseNum6} 5 {caseLabel6} @GFAGNT_6931 {caseNum7} -1 {caseLabel7} @GFAGNT_6949

:GFAGNT_6841
print_help 'GF_APP0'
goto @GFAGNT_6949

:GFAGNT_6859
print_help 'GF_APP1'
goto @GFAGNT_6949

:GFAGNT_6877
print_help 'GF_APP2'
goto @GFAGNT_6949

:GFAGNT_6895
print_help 'GF_APP3'
goto @GFAGNT_6949

:GFAGNT_6913
print_help 'GF_APP4'
goto @GFAGNT_6949

:GFAGNT_6931
print_help 'GF_APP5'
goto @GFAGNT_6949

:GFAGNT_6949
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iCaller
$iCaller = -1

:GFAGNT_6971
return 

:GFAGNT_6973
$iCaller = -1
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
return 

:GFAGNT_6997
3@ = generate_random_int_in_range 0 {max} 45
if 
  3@ > 10
goto_if_false @GFAGNT_7170
if 
  3@ > 20
goto_if_false @GFAGNT_7156
if 
  3@ > 30
goto_if_false @GFAGNT_7142
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 22
goto_if_false @GFAGNT_7096
3@ = 15
goto @GFAGNT_7135

:GFAGNT_7096
if 
  3@ > 35
goto_if_false @GFAGNT_7128
3@ = 12
goto @GFAGNT_7135

:GFAGNT_7128
3@ = 13

:GFAGNT_7135
goto @GFAGNT_7149

:GFAGNT_7142
3@ = 13

:GFAGNT_7149
goto @GFAGNT_7163

:GFAGNT_7156
3@ = 12

:GFAGNT_7163
goto @GFAGNT_7177

:GFAGNT_7170
3@ = 11

:GFAGNT_7177
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 27
goto_if_false @GFAGNT_7209
3@ = 11
$iDateReport = 0

:GFAGNT_7209
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 28
goto_if_false @GFAGNT_7241
3@ = 12
$iDateReport = 0

:GFAGNT_7241
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 29
goto_if_false @GFAGNT_7273
3@ = 13
$iDateReport = 0

:GFAGNT_7273
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 30
goto_if_false @GFAGNT_7305
3@ = 14
$iDateReport = 0

:GFAGNT_7305
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 31
goto_if_false @GFAGNT_7337
3@ = 15
$iDateReport = 0

:GFAGNT_7337
return 

:GFAGNT_7339
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_8574 {caseNum1} 0 {caseLabel1} @GFAGNT_7402 {caseNum2} 1 {caseLabel2} @GFAGNT_7748 {caseNum3} 2 {caseLabel3} @GFAGNT_7888 {caseNum4} 3 {caseLabel4} @GFAGNT_8070 {caseNum5} 4 {caseLabel5} @GFAGNT_8252 {caseNum6} 5 {caseLabel6} @GFAGNT_8434 {caseNum7} -1 {caseLabel7} @GFAGNT_8574

:GFAGNT_7402
if or
  not has_model_loaded 195
  not has_model_loaded 352
goto_if_false @GFAGNT_7444
request_model 352
request_model 195
wait 0
goto @GFAGNT_7402

:GFAGNT_7444
2@ = create_char PedType.CivFemale {modelId} 195 {x} 2402.3899 {y} -1712.899 {z} 13.1402
set_char_heading 2@ {heading} 180.0
give_weapon_to_char 2@ {weaponType} WeaponType.MicroUzi {ammo} 60
set_current_char_weapon 2@ {weaponType} WeaponType.Unarmed
set_char_accuracy 2@ {accuracy} 75
$iGF_GlobalDM_Weak_Gang = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomWeak
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Weak_Gang
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang1
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang3
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang4
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang5
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang6
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang7
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang8
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_7748
if 
  not has_model_loaded 192
goto_if_false @GFAGNT_7780
request_model 192
wait 0
goto @GFAGNT_7748

:GFAGNT_7780
2@ = create_char PedType.CivFemale {modelId} 192 {x} -1799.875 {y} 1202.057 {z} 24.1328
set_char_heading 2@ {heading} 180.0
set_char_decision_maker 2@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_7888
if 
  not has_model_loaded 191
goto_if_false @GFAGNT_7920
request_model 191
wait 0
goto @GFAGNT_7888

:GFAGNT_7920
2@ = create_char PedType.CivFemale {modelId} 191 {x} -384.6795 {y} -1438.84 {z} 25.3281
set_char_heading 2@ {heading} 268.2687
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_8070
if 
  not has_model_loaded 190
goto_if_false @GFAGNT_8102
request_model 190
wait 0
goto @GFAGNT_8070

:GFAGNT_8102
2@ = create_char PedType.CivFemale {modelId} 190 {x} -1390.303 {y} 2641.0659 {z} 54.9844
set_char_heading 2@ {heading} 187.2
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_8252
if 
  not has_model_loaded 193
goto_if_false @GFAGNT_8284
request_model 193
wait 0
goto @GFAGNT_8252

:GFAGNT_8284
2@ = create_char PedType.CivFemale {modelId} 193 {x} -2573.3569 {y} 1155.0909 {z} 54.7347
set_char_heading 2@ {heading} 167.8854
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_8434
if 
  not has_model_loaded 194
goto_if_false @GFAGNT_8466
request_model 194
wait 0
goto @GFAGNT_8434

:GFAGNT_8466
2@ = create_char PedType.CivFemale {modelId} 194 {x} 2037.476 {y} 2719.7939 {z} 10.5436
set_char_heading 2@ {heading} 9.2
set_char_decision_maker 2@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8574

:GFAGNT_8574
return 

:GFAGNT_8576
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFAGNT_8688
if and
  0 >= $iGFLikesPlayer($iGFidx,6i)
  $iGFLikesPlayer($iGFidx,6i) > -15
goto_if_false @GFAGNT_8656
$iGFLikesPlayer($iGFidx,6i) = 0
$iGFLikesPlayer($iGFidx,6i) += 5
goto @GFAGNT_8667

:GFAGNT_8656
$iGFLikesPlayer($iGFidx,6i) += 5

:GFAGNT_8667
gosub @GFAGNT_9632
increment_int_stat StatId.Dates {value} 1
goto @GFAGNT_8790

:GFAGNT_8688
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 8
goto_if_false @GFAGNT_8765
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_8758
$iGFLikesPlayer($iGFidx,6i) -= 1
gosub @GFAGNT_9632

:GFAGNT_8758
goto @GFAGNT_8790

:GFAGNT_8765
$iGFLikesPlayer($iGFidx,6i) -= 5
gosub @GFAGNT_9632
increment_int_stat StatId.BadDates {value} 1

:GFAGNT_8790
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 4
goto_if_false @GFAGNT_8840
$iGFLikesPlayer($iGFidx,6i) += 5
gosub @GFAGNT_9632
increment_int_stat StatId.TimesScoredWithGirl {value} 1
goto @GFAGNT_8876

:GFAGNT_8840
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 3
goto_if_false @GFAGNT_8876
$iGFLikesPlayer($iGFidx,6i) -= 5
gosub @GFAGNT_9632

:GFAGNT_8876
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_8943
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_8943
$iGFLikesPlayer($iGFidx,6i) = -99

:GFAGNT_8943
return 

:GFAGNT_8945
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_9053
if 
  $iGFLikesPlayer($iGFidx,6i) <> -99
goto_if_false @GFAGNT_9053
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_9053
$iPhoneState = 24
set_var_int_to_var_int $iCaller = $iGFidx
start_new_script @MOB_GF $iCaller 2 
return 

:GFAGNT_9053
return 

:GFAGNT_9055
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9215 {caseNum1} 0 {caseLabel1} @GFAGNT_9118 {caseNum2} 1 {caseLabel2} @GFAGNT_9140 {caseNum3} 2 {caseLabel3} @GFAGNT_9152 {caseNum4} 3 {caseLabel4} @GFAGNT_9169 {caseNum5} 4 {caseLabel5} @GFAGNT_9186 {caseNum6} 5 {caseLabel6} @GFAGNT_9203 {caseNum7} -1 {caseLabel7} @GFAGNT_9215

:GFAGNT_9118
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 352
remove_decision_maker $iGF_GlobalDM_Weak_Gang
goto @GFAGNT_9215

:GFAGNT_9140
mark_model_as_no_longer_needed 192
goto @GFAGNT_9215

:GFAGNT_9152
mark_model_as_no_longer_needed 191
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9215

:GFAGNT_9169
mark_model_as_no_longer_needed 190
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9215

:GFAGNT_9186
mark_model_as_no_longer_needed 193
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9215

:GFAGNT_9203
mark_model_as_no_longer_needed 194
goto @GFAGNT_9215

:GFAGNT_9215
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 6
goto_if_false @GFAGNT_9245
delete_char 2@
goto @GFAGNT_9315

:GFAGNT_9245
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFAGNT_9275
delete_char 2@
goto @GFAGNT_9315

:GFAGNT_9275
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_9310
mark_char_as_no_longer_needed 2@
goto @GFAGNT_9315

:GFAGNT_9310
remove_char_elegantly 2@

:GFAGNT_9315
$iDanceGirlfriend = 0
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 21
goto_if_false @GFAGNT_9407
3@ = get_current_day_of_week 
3@ += 1
if 
  3@ > 7
goto_if_false @GFAGNT_9377
3@ = 1

:GFAGNT_9377
3@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
set_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31

:GFAGNT_9407
return 

:GFAGNT_9409
if 
  is_player_playing $player1
goto_if_false @GFAGNT_9473
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @GFAGNT_9466
3@ = 1
goto @GFAGNT_9473

:GFAGNT_9466
3@ = 0

:GFAGNT_9473
return 

:GFAGNT_9475
show_update_stats False
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9626 {caseNum1} 0 {caseLabel1} @GFAGNT_9542 {caseNum2} 1 {caseLabel2} @GFAGNT_9556 {caseNum3} 2 {caseLabel3} @GFAGNT_9570 {caseNum4} 3 {caseLabel4} @GFAGNT_9584 {caseNum5} 4 {caseLabel5} @GFAGNT_9598 {caseNum6} 5 {caseLabel6} @GFAGNT_9612 {caseNum7} -1 {caseLabel7} @GFAGNT_9626

:GFAGNT_9542
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_9626

:GFAGNT_9556
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_9626

:GFAGNT_9570
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_9626

:GFAGNT_9584
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_9626

:GFAGNT_9598
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_9626

:GFAGNT_9612
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_9626

:GFAGNT_9626
show_update_stats True
return 

:GFAGNT_9632
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_10961 {caseNum1} 0 {caseLabel1} @GFAGNT_9695 {caseNum2} 1 {caseLabel2} @GFAGNT_9906 {caseNum3} 2 {caseLabel3} @GFAGNT_10117 {caseNum4} 3 {caseLabel4} @GFAGNT_10328 {caseNum5} 4 {caseLabel5} @GFAGNT_10539 {caseNum6} 5 {caseLabel6} @GFAGNT_10750 {caseNum7} -1 {caseLabel7} @GFAGNT_10961

:GFAGNT_9695
9@ = get_int_stat StatId.GirlfriendDenise
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[0] > 9@
goto_if_false @GFAGNT_9807
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_9747
$iGFLikesPlayer[0] = 100

:GFAGNT_9747
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9779
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_9800

:GFAGNT_9779
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendDenise {value} 9@

:GFAGNT_9800
goto @GFAGNT_9899

:GFAGNT_9807
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9899
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_9851
$iGFLikesPlayer[0] = 100

:GFAGNT_9851
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9883
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_9899

:GFAGNT_9883
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
decrement_int_stat StatId.GirlfriendDenise {value} 9@

:GFAGNT_9899
goto @GFAGNT_10961

:GFAGNT_9906
9@ = get_int_stat StatId.GirlfriendMichelle
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[1] > 9@
goto_if_false @GFAGNT_10018
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_9958
$iGFLikesPlayer[1] = 100

:GFAGNT_9958
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_9990
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_10011

:GFAGNT_9990
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendMichelle {value} 9@

:GFAGNT_10011
goto @GFAGNT_10110

:GFAGNT_10018
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10110
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_10062
$iGFLikesPlayer[1] = 100

:GFAGNT_10062
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10094
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_10110

:GFAGNT_10094
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
decrement_int_stat StatId.GirlfriendMichelle {value} 9@

:GFAGNT_10110
goto @GFAGNT_10961

:GFAGNT_10117
9@ = get_int_stat StatId.GirlfriendHelena
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[2] > 9@
goto_if_false @GFAGNT_10229
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10169
$iGFLikesPlayer[2] = 100

:GFAGNT_10169
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10201
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_10222

:GFAGNT_10201
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendHelena {value} 9@

:GFAGNT_10222
goto @GFAGNT_10321

:GFAGNT_10229
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10321
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10273
$iGFLikesPlayer[2] = 100

:GFAGNT_10273
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10305
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_10321

:GFAGNT_10305
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
decrement_int_stat StatId.GirlfriendHelena {value} 9@

:GFAGNT_10321
goto @GFAGNT_10961

:GFAGNT_10328
9@ = get_int_stat StatId.GirlfriendBarbara
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[3] > 9@
goto_if_false @GFAGNT_10440
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10380
$iGFLikesPlayer[3] = 100

:GFAGNT_10380
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10412
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_10433

:GFAGNT_10412
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendBarbara {value} 9@

:GFAGNT_10433
goto @GFAGNT_10532

:GFAGNT_10440
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10532
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10484
$iGFLikesPlayer[3] = 100

:GFAGNT_10484
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10516
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_10532

:GFAGNT_10516
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
decrement_int_stat StatId.GirlfriendBarbara {value} 9@

:GFAGNT_10532
goto @GFAGNT_10961

:GFAGNT_10539
9@ = get_int_stat StatId.GirlfriendKatie
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[4] > 9@
goto_if_false @GFAGNT_10651
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10591
$iGFLikesPlayer[4] = 100

:GFAGNT_10591
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10623
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_10644

:GFAGNT_10623
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendKatie {value} 9@

:GFAGNT_10644
goto @GFAGNT_10743

:GFAGNT_10651
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10743
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10695
$iGFLikesPlayer[4] = 100

:GFAGNT_10695
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10727
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_10743

:GFAGNT_10727
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
decrement_int_stat StatId.GirlfriendKatie {value} 9@

:GFAGNT_10743
goto @GFAGNT_10961

:GFAGNT_10750
9@ = get_int_stat StatId.GirlfriendMillie
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[5] > 9@
goto_if_false @GFAGNT_10862
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_10802
$iGFLikesPlayer[5] = 100

:GFAGNT_10802
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10834
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_10855

:GFAGNT_10834
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendMillie {value} 9@

:GFAGNT_10855
goto @GFAGNT_10954

:GFAGNT_10862
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10954
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_10906
$iGFLikesPlayer[5] = 100

:GFAGNT_10906
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10938
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_10954

:GFAGNT_10938
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
decrement_int_stat StatId.GirlfriendMillie {value} 9@

:GFAGNT_10954
goto @GFAGNT_10961

:GFAGNT_10961
return 

:GFAGNT_10963
if 
  0@ <> 0
goto_if_false @GFAGNT_11002
gosub @GFAGNT_9055
gosub @GFAGNT_8576
0@ = 0

:GFAGNT_11002
4@ = -1
3@ = 0

:GFAGNT_11016
if 
  is_global_var_bit_set_lvar $iAgentFlags {var_bitIndex} 3@
goto_if_false @GFAGNT_11043
clear_global_var_bit_lvar $iAgentFlags {var_bitIndex} 3@

:GFAGNT_11043
3@ += 1
  3@ >= 6
goto_if_false @GFAGNT_11016
show_update_stats True
$iGFTimeStep = 500
return 
get_latest_console_command v$GF_txtConsoleIn
if 
  not is_var_text_label16_empty v$GF_txtConsoleIn
goto_if_false @GFAGNT_13255
set_var_text_label16 v$GF_txtConsoleCheck = "DOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11145
set_global_var_bit_const $iActiveGF {bitIndex} 0
reset_latest_console_command 
return 

:GFAGNT_11145
set_var_text_label16 v$GF_txtConsoleCheck = "DOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11192
set_global_var_bit_const $iActiveGF {bitIndex} 1
reset_latest_console_command 
return 

:GFAGNT_11192
set_var_text_label16 v$GF_txtConsoleCheck = "DOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11236
set_global_var_bit_const $iActiveGF {bitIndex} 2
reset_latest_console_command 
return 

:GFAGNT_11236
set_var_text_label16 v$GF_txtConsoleCheck = "DOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11282
set_global_var_bit_const $iActiveGF {bitIndex} 3
reset_latest_console_command 
return 

:GFAGNT_11282
set_var_text_label16 v$GF_txtConsoleCheck = "DOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11326
set_global_var_bit_const $iActiveGF {bitIndex} 4
reset_latest_console_command 
return 

:GFAGNT_11326
set_var_text_label16 v$GF_txtConsoleCheck = "DOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11371
set_global_var_bit_const $iActiveGF {bitIndex} 5
reset_latest_console_command 
return 

:GFAGNT_11371
set_var_text_label16 v$GF_txtConsoleCheck = "FASTDATE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11471
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_var_int_to_var_int $iGFLikesPlayer[0] = $iGFSelfRespect[0]
set_var_int_to_var_int $iGFLikesPlayer[1] = $iGFSelfRespect[1]
set_var_int_to_var_int $iGFLikesPlayer[3] = $iGFSelfRespect[3]
set_var_int_to_var_int $iGFLikesPlayer[2] = $iGFSelfRespect[2]
set_var_int_to_var_int $iGFLikesPlayer[4] = $iGFSelfRespect[4]
set_var_int_to_var_int $iGFLikesPlayer[5] = $iGFSelfRespect[5]
set_global_var_bit_const $iDateReport {bitIndex} 26
reset_latest_console_command 
return 

:GFAGNT_11471
set_var_text_label16 v$GF_txtConsoleCheck = "GOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11546
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11542
set_char_coordinates $scplayer {x} 2405.2119 {y} -1720.688 {z} 12.6365

:GFAGNT_11542
reset_latest_console_command 
return 

:GFAGNT_11546
set_var_text_label16 v$GF_txtConsoleCheck = "GOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11622
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11618
set_char_coordinates $scplayer {x} -1788.0 {y} 1202.0 {z} 30.0

:GFAGNT_11618
reset_latest_console_command 
return 

:GFAGNT_11622
set_var_text_label16 v$GF_txtConsoleCheck = "GOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11695
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11691
set_char_coordinates $scplayer {x} -371.4376 {y} -1440.072 {z} 24.7209

:GFAGNT_11691
reset_latest_console_command 
return 

:GFAGNT_11695
set_var_text_label16 v$GF_txtConsoleCheck = "GOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11770
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11766
set_char_coordinates $scplayer {x} -1400.0 {y} 2640.0 {z} -100.0

:GFAGNT_11766
reset_latest_console_command 
return 

:GFAGNT_11770
set_var_text_label16 v$GF_txtConsoleCheck = "GOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11843
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11839
set_char_coordinates $scplayer {x} -2570.511 {y} 1139.582 {z} 54.8547

:GFAGNT_11839
reset_latest_console_command 
return 

:GFAGNT_11843
set_var_text_label16 v$GF_txtConsoleCheck = "GOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11917
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11913
set_char_coordinates $scplayer {x} 2028.347 {y} 2736.969 {z} 10.8603

:GFAGNT_11913
reset_latest_console_command 
return 

:GFAGNT_11917
set_var_text_label16 v$GF_txtConsoleCheck = "DATEFOOD"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11969
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 27
reset_latest_console_command 
return 

:GFAGNT_11969
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDRIVE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12064
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {bitIndex} 28
reset_latest_console_command 
return 

:GFAGNT_12064
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDANCE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12159
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {bitIndex} 29
reset_latest_console_command 
return 

:GFAGNT_12159
set_var_text_label16 v$GF_txtConsoleCheck = "DATESPANK"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12212
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 30
reset_latest_console_command 
return 

:GFAGNT_12212
set_var_text_label16 v$GF_txtConsoleCheck = "DATESHEDRIVES"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12276
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[1] = 50
set_global_var_bit_const $iDateReport {bitIndex} 31
reset_latest_console_command 
return 

:GFAGNT_12276
set_var_text_label16 v$GF_txtConsoleCheck = "MEETMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12364
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12360
set_char_coordinates $scplayer {x} -2026.92 {y} -99.9395 {z} 34.1641
set_char_heading $scplayer {heading} 180.0

:GFAGNT_12360
reset_latest_console_command 
return 

:GFAGNT_12364
set_var_text_label16 v$GF_txtConsoleCheck = "MEETKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12456
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12452
$flag_la1fin1_mission_counter = 2
set_char_coordinates $scplayer {x} 243.9633 {y} -161.2493 {z} 0.5781
set_char_heading $scplayer {heading} 291.5735

:GFAGNT_12452
reset_latest_console_command 
return 

:GFAGNT_12456
set_var_text_label16 v$GF_txtConsoleCheck = "MEETBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12543
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12539
set_char_coordinates $scplayer {x} -1411.2939 {y} 2637.6089 {z} 54.6875
set_char_heading $scplayer {heading} 348.9253

:GFAGNT_12539
reset_latest_console_command 
return 

:GFAGNT_12543
set_var_text_label16 v$GF_txtConsoleCheck = "MEETSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12628
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12624
set_char_coordinates $scplayer {x} -2266.2529 {y} -155.7216 {z} 34.3125
set_char_heading $scplayer {heading} 85.0

:GFAGNT_12624
reset_latest_console_command 
return 

:GFAGNT_12628
set_var_text_label16 v$GF_txtConsoleCheck = "GIMPSUIT"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12712
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12708
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GFAGNT_12708
reset_latest_console_command 
return 

:GFAGNT_12712
set_var_text_label16 v$GF_txtConsoleCheck = "TWOTIMING"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12765
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 25
reset_latest_console_command 
return 

:GFAGNT_12765
set_var_text_label16 v$GF_txtConsoleCheck = "ELEGANTMAN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12847
$iGFDesiredSexAppeal[0] = 0
$iGFDesiredSexAppeal[1] = 0
$iGFDesiredSexAppeal[3] = 0
$iGFDesiredSexAppeal[2] = 0
$iGFDesiredSexAppeal[4] = 0
$iGFDesiredSexAppeal[5] = 0
reset_latest_console_command 
return 

:GFAGNT_12847
set_var_text_label16 v$GF_txtConsoleCheck = "SHOWENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12951
switch_entry_exit 'FDREST1' {state} True
switch_entry_exit 'REST2' {state} True
switch_entry_exit 'DINER1' {state} True
switch_entry_exit 'DINER2' {state} True
switch_entry_exit 'TSDINER' {state} True
reset_latest_console_command 
return 

:GFAGNT_12951
set_var_text_label16 v$GF_txtConsoleCheck = "HIDEENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13042
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
reset_latest_console_command 
return 

:GFAGNT_13042
set_var_text_label16 v$GF_txtConsoleCheck = "UNCENSORED"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13089
$iCensoredVersion = 0
reset_latest_console_command 
return 

:GFAGNT_13089
set_var_text_label16 v$GF_txtConsoleCheck = "STATSUP"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13144
$iGFLikesPlayer($iGFidx,6i) += 10
gosub @GFAGNT_9632
reset_latest_console_command 
return 

:GFAGNT_13144
set_var_text_label16 v$GF_txtConsoleCheck = "STATSDOWN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13201
$iGFLikesPlayer($iGFidx,6i) -= 10
gosub @GFAGNT_9632
reset_latest_console_command 
return 

:GFAGNT_13201
set_var_text_label16 v$GF_txtConsoleCheck = "DUMPME"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13255
$iGFLikesPlayer($iGFidx,6i) = -15
gosub @GFAGNT_9632
reset_latest_console_command 
return 

:GFAGNT_13255
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug "D"
write_debug s$txtCurrZone
write_debug_with_int "IGFIDX" {number} $iGFidx
switch_start 0@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_13490 {caseNum1} 0 {caseLabel1} @GFAGNT_13395 {caseNum2} 1 {caseLabel2} @GFAGNT_13414 {caseNum3} 2 {caseLabel3} @GFAGNT_13433 {caseNum4} 3 {caseLabel4} @GFAGNT_13452 {caseNum5} 4 {caseLabel5} @GFAGNT_13471 {caseNum6} -1 {caseLabel6} @GFAGNT_13519 {caseNum7} -1 {caseLabel7} @GFAGNT_13519

:GFAGNT_13395
write_debug "STATE0__"
goto @GFAGNT_13519

:GFAGNT_13414
write_debug "STATE1__"
goto @GFAGNT_13519

:GFAGNT_13433
write_debug "STATE2__"
goto @GFAGNT_13519

:GFAGNT_13452
write_debug "STATE3__"
goto @GFAGNT_13519

:GFAGNT_13471
write_debug "STATE4__"
goto @GFAGNT_13519

:GFAGNT_13490
write_debug "UNTRAPPED_STATE___"
goto @GFAGNT_13519

:GFAGNT_13519
write_debug "I__________________________I"
return 

:Noname_7
start_new_script @INTMAN 
terminate_this_script 

:INTMAN
script_name 'INTMAN'
$iGlobalPedPanicDM = -1
if 
  $iGlobalPedPanicDM == 9999
goto_if_false @INTMAN_57
$iGlobalPedPanicDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
$iGlobalShopkeeperDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors

:INTMAN_57
if 
  is_player_playing $player1
goto_if_false @INTMAN_80
gosub @INTMAN_91

:INTMAN_80
wait 0
goto @INTMAN_57

:INTMAN_91
switch_start 0@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTMAN_182 {caseNum1} 0 {caseLabel1} @INTMAN_154 {caseNum2} 1 {caseLabel2} @INTMAN_168 {caseNum3} -1 {caseLabel3} @INTMAN_182 {caseNum4} -1 {caseLabel4} @INTMAN_182 {caseNum5} -1 {caseLabel5} @INTMAN_182 {caseNum6} -1 {caseLabel6} @INTMAN_182 {caseNum7} -1 {caseLabel7} @INTMAN_182

:INTMAN_154
gosub @INTMAN_184
goto @INTMAN_182

:INTMAN_168
gosub @INTMAN_2909
goto @INTMAN_182

:INTMAN_182
return 

:INTMAN_184
$iAreaCode = get_char_area_visible $scplayer
if 
  $iAreaCode <> 0
goto_if_false @INTMAN_2907
v$txtEntryExit = get_name_of_entry_exit_char_used $scplayer
if 
  not is_var_text_label16_empty v$txtEntryExit
goto_if_false @INTMAN_2907
set_var_int_to_var_int $iStoredAreaCode = $iAreaCode
if 
  is_player_playing $player1
goto_if_false @INTMAN_266
$iWantedOnEntry = store_wanted_level $player1

:INTMAN_266
s$shop_name = get_loaded_shop 
$iCreateDecisionMakers = 0
$iTerminateAllAmbience = 0
2@ = 0
if and
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CHANGER"
  $iAreaCode == 14
goto_if_false @INTMAN_384
1@ = get_number_of_instances_of_streamed_script 63
if 
  1@ == 0
goto_if_false @INTMAN_384
stream_script 63
load_all_models_now 
if 
  has_streamed_script_loaded 63
goto_if_false @INTMAN_384
start_new_streamed_script 63
0@ += 1
return 

:INTMAN_384
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_751
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_464
stream_script 38

:INTMAN_464
1@ = get_number_of_instances_of_streamed_script 39
if 
  1@ == 0
goto_if_false @INTMAN_493
stream_script 39

:INTMAN_493
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_522
stream_script 37

:INTMAN_522
1@ = get_number_of_instances_of_streamed_script 27
if 
  1@ == 0
goto_if_false @INTMAN_551
stream_script 27

:INTMAN_551
request_animation "BAR"
request_animation "CASINO"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @INTMAN_609
request_model 124
request_model 126
request_model 125
request_model 214

:INTMAN_609
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @INTMAN_648
request_model 163
request_model 164
request_model 263

:INTMAN_648
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_688
request_model 163
request_model 164
request_model 172

:INTMAN_688
load_all_models_now 
if 
  has_streamed_script_loaded 27
goto_if_false @INTMAN_710
start_new_streamed_script 27

:INTMAN_710
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 39
  has_streamed_script_loaded 37
  has_streamed_script_loaded 27
goto_if_false @INTMAN_751
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_751
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @INTMAN_1021
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_826
stream_script 38

:INTMAN_826
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_855
stream_script 37

:INTMAN_855
1@ = get_number_of_instances_of_streamed_script 28
if 
  1@ == 0
goto_if_false @INTMAN_884
stream_script 28

:INTMAN_884
1@ = get_number_of_instances_of_streamed_script 35
if 
  1@ == 0
goto_if_false @INTMAN_913
stream_script 35

:INTMAN_913
request_animation "BAR"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @INTMAN_953
request_animation "DANCING"

:INTMAN_953
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 28
goto_if_false @INTMAN_980
start_new_streamed_script 28

:INTMAN_980
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 37
  has_streamed_script_loaded 28
  has_streamed_script_loaded 35
goto_if_false @INTMAN_1021
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1021
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "GENOTB"
goto_if_false @INTMAN_1219
1@ = get_number_of_instances_of_streamed_script 40
if 
  1@ == 0
goto_if_false @INTMAN_1074
stream_script 40

:INTMAN_1074
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1103
stream_script 37

:INTMAN_1103
1@ = get_number_of_instances_of_streamed_script 30
if 
  1@ == 0
goto_if_false @INTMAN_1132
stream_script 30

:INTMAN_1132
request_animation "OTB"
request_animation "INT_SHOP"
request_model 11
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 30
goto_if_false @INTMAN_1182
start_new_streamed_script 30

:INTMAN_1182
if and
  has_streamed_script_loaded 40
  has_streamed_script_loaded 37
  has_streamed_script_loaded 30
goto_if_false @INTMAN_1219
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1219
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LASTRIP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "STRIP2"
goto_if_false @INTMAN_1467
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_1286
stream_script 38

:INTMAN_1286
1@ = get_number_of_instances_of_streamed_script 39
if 
  1@ == 0
goto_if_false @INTMAN_1315
stream_script 39

:INTMAN_1315
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1344
stream_script 37

:INTMAN_1344
1@ = get_number_of_instances_of_streamed_script 31
if 
  1@ == 0
goto_if_false @INTMAN_1373
stream_script 31

:INTMAN_1373
request_animation "BAR"
request_animation "STRIP"
request_model 163
request_model 164
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 31
goto_if_false @INTMAN_1426
start_new_streamed_script 31

:INTMAN_1426
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 39
  has_streamed_script_loaded 37
  has_streamed_script_loaded 31
goto_if_false @INTMAN_1467
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1467
if 
  $second_menu_item_picked_wardrobe == 0
goto_if_false @INTMAN_1657
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSCHP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSSPRT"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LACS1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CLOTHGP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSDESGN"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSEXL"
goto_if_false @INTMAN_1657
1@ = get_number_of_instances_of_streamed_script 64
if 
  1@ == 0
goto_if_false @INTMAN_1602
stream_script 64

:INTMAN_1602
request_animation "INT_SHOP"
load_all_models_now 
if 
  has_streamed_script_loaded 64
goto_if_false @INTMAN_1657
$iSetClothesPanic = 0
start_new_streamed_script 64
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1657
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2154
1@ = get_number_of_instances_of_streamed_script 65
if 
  1@ == 0
goto_if_false @INTMAN_1737
stream_script 65

:INTMAN_1737
1@ = get_number_of_instances_of_streamed_script 29
if 
  1@ == 0
goto_if_false @INTMAN_1766
stream_script 29

:INTMAN_1766
1@ = get_number_of_instances_of_streamed_script 36
if 
  1@ == 0
goto_if_false @INTMAN_1795
stream_script 36

:INTMAN_1795
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1824
stream_script 37

:INTMAN_1824
request_animation "FOOD"
request_animation "INT_SHOP"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_1885
request_model 155
request_model #PIZZAHIGH
request_model #CJ_PIZZA_1
request_model #CJ_PIZZA_2

:INTMAN_1885
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_1927
request_model 167
request_model #BURGERHIGH
request_model #CJ_BURG_1
request_model #CJ_BURG_2

:INTMAN_1927
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_1968
request_model 205
request_model #BURGERHIGH
request_model #CJ_BURG_1
request_model #CJ_BURG_2

:INTMAN_1968
load_all_models_now 
if 
  has_streamed_script_loaded 65
goto_if_false @INTMAN_1990
start_new_streamed_script 65

:INTMAN_1990
if 
  has_streamed_script_loaded 29
goto_if_false @INTMAN_2113
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_2043
start_new_streamed_script 29 {args} 0 
goto @INTMAN_2113

:INTMAN_2043
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_2082
start_new_streamed_script 29 {args} 1 
goto @INTMAN_2113

:INTMAN_2082
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2113
start_new_streamed_script 29 {args} 2 

:INTMAN_2113
if and
  has_streamed_script_loaded 65
  has_streamed_script_loaded 29
  has_streamed_script_loaded 36
  has_streamed_script_loaded 37
goto_if_false @INTMAN_2154
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2154
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBERS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER3"
goto_if_false @INTMAN_2272
1@ = get_number_of_instances_of_streamed_script 62
if 
  1@ == 0
goto_if_false @INTMAN_2272
stream_script 62
load_all_models_now 
if 
  has_streamed_script_loaded 62
goto_if_false @INTMAN_2272
start_new_streamed_script 62
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2272
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTOO"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO3"
goto_if_false @INTMAN_2387
1@ = get_number_of_instances_of_streamed_script 61
if 
  1@ == 0
goto_if_false @INTMAN_2387
stream_script 61
load_all_models_now 
if 
  has_streamed_script_loaded 61
goto_if_false @INTMAN_2387
start_new_streamed_script 61
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2387
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "RCPLAY"
goto_if_false @INTMAN_2529
1@ = get_number_of_instances_of_streamed_script 34
if 
  1@ == 0
goto_if_false @INTMAN_2440
stream_script 34

:INTMAN_2440
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_2469
stream_script 37

:INTMAN_2469
request_model 217
load_all_models_now 
if 
  has_streamed_script_loaded 34
goto_if_false @INTMAN_2496
start_new_streamed_script 34

:INTMAN_2496
if and
  has_streamed_script_loaded 34
  has_streamed_script_loaded 37
goto_if_false @INTMAN_2529
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2529
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE4"
goto_if_false @INTMAN_2661
$iCheckForWeapons = 1
$iCreateDecisionMakers = 1
request_animation "COP_AMBIENT"
request_animation "INT_OFFICE"
request_animation "GANGS"
request_model #CIGAR
load_all_models_now 
0@ += 1

:INTMAN_2661
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN4"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN5"
goto_if_false @INTMAN_2802
1@ = get_number_of_instances_of_streamed_script 60
if 
  1@ == 0
goto_if_false @INTMAN_2802
stream_script 60
load_all_models_now 
if 
  has_streamed_script_loaded 60
goto_if_false @INTMAN_2802
start_new_streamed_script 60
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2802
if 
  $iCreateDecisionMakers == 1
goto_if_false @INTMAN_2907
if 
  not does_decision_maker_exist $iGlobalPedPanicDM
goto_if_false @INTMAN_2860
$iGlobalPedPanicDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
clear_char_decision_maker_event_response $iGlobalPedPanicDM {event} Event.Attractor
clear_char_decision_maker_event_response $iGlobalPedPanicDM {event} Event.ScriptedAttractor

:INTMAN_2860
if 
  not does_decision_maker_exist $iGlobalShopkeeperDM
goto_if_false @INTMAN_2907
$iGlobalShopkeeperDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.Attractor
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.ScriptedAttractor
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.Damage

:INTMAN_2907
return 

:INTMAN_2909
$iAreaCode = get_char_area_visible $scplayer
if 
  not is_int_var_equal_to_int_var $iAreaCode == $iStoredAreaCode
goto_if_false @INTMAN_2985
gosub @INTMAN_3069
$iTerminateAllAmbience = 0
2@ = 0
$iCheckForWeapons = 0
s$shop_name = get_loaded_shop 
0@ -= 1
return 
goto @INTMAN_3067

:INTMAN_2985
if 
  $iCheckForWeapons == 1
goto_if_false @INTMAN_3028
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @INTMAN_3028
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:INTMAN_3028
if and
  $iTerminateAllAmbience == 1
  2@ == 0
goto_if_false @INTMAN_3067
gosub @INTMAN_3069
2@ = 1

:INTMAN_3067
return 

:INTMAN_3069
remove_animation "BAR"
remove_animation "CASINO"
remove_animation "DANCING"
remove_animation "OTB"
remove_animation "INT_SHOP"
remove_animation "STRIP"
remove_animation "FOOD"
remove_animation "COP_AMBIENT"
remove_animation "INT_OFFICE"
remove_animation "GANGS"
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 263
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed #PIZZAHIGH
mark_model_as_no_longer_needed #CJ_PIZZA_1
mark_model_as_no_longer_needed #CJ_PIZZA_2
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed #BURGERHIGH
mark_model_as_no_longer_needed #CJ_BURG_1
mark_model_as_no_longer_needed #CJ_BURG_2
mark_model_as_no_longer_needed 205
mark_model_as_no_longer_needed 217
mark_streamed_script_as_no_longer_needed 63
mark_streamed_script_as_no_longer_needed 64
mark_streamed_script_as_no_longer_needed 65
mark_streamed_script_as_no_longer_needed 62
mark_streamed_script_as_no_longer_needed 61
mark_streamed_script_as_no_longer_needed 60
mark_streamed_script_as_no_longer_needed 27
mark_streamed_script_as_no_longer_needed 28
mark_streamed_script_as_no_longer_needed 30
mark_streamed_script_as_no_longer_needed 31
mark_streamed_script_as_no_longer_needed 29
mark_streamed_script_as_no_longer_needed 34
mark_streamed_script_as_no_longer_needed 35
mark_streamed_script_as_no_longer_needed 36
mark_streamed_script_as_no_longer_needed 37
mark_streamed_script_as_no_longer_needed 38
mark_streamed_script_as_no_longer_needed 39
mark_streamed_script_as_no_longer_needed 40
remove_decision_maker $iGlobalPedPanicDM
remove_decision_maker $iGlobalShopkeeperDM
$iGlobalPedPanicDM = -1
$iGlobalShopkeeperDM = -1
return 

:Noname_8
terminate_this_script 

:A_CONT
script_name 'A_CONT'
$actual_SLOT[0] = 1
$actual_SLOT[1] = 2
$SLOT_status[0] = -3
$SLOT_status[1] = -3
$SLOT_priority[0] = 0
$SLOT_priority[1] = 0
$SLOT_play_status[0] = 0
$SLOT_play_status[0] = 0
$current_slot = 0
$preload_slot = 1
set_var_int_to_var_int $SLOT_ped[0] = $scplayer
set_var_int_to_var_int $SLOT_ped[1] = $scplayer

:A_CONT_97
wait 0
0@ = 0
1@ = 1
if or
  $SLOT_status[0] >= -2
  $SLOT_status[1] >= -2
goto_if_false @A_CONT_1046

:A_CONT_140
if 
  2 > 0@
goto_if_false @A_CONT_1039
switch_start $SLOT_status(0@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @A_CONT_1018 {caseNum1} -2 {caseLabel1} @A_CONT_893 {caseNum2} -1 {caseLabel2} @A_CONT_225 {caseNum3} 0 {caseLabel3} @A_CONT_254 {caseNum4} 1 {caseLabel4} @A_CONT_621 {caseNum5} 2 {caseLabel5} @A_CONT_775 {caseNum6} -1 {caseLabel6} @A_CONT_1018 {caseNum7} -1 {caseLabel7} @A_CONT_1018

:A_CONT_225
$SLOT_priority(0@,2i) = 0
$SLOT_status(0@,2i) = -3
goto @A_CONT_1018

:A_CONT_254
if 
  not has_mission_audio_loaded $actual_SLOT(0@,2i)
goto_if_false @A_CONT_281
goto @A_CONT_1018

:A_CONT_281
if 
  is_int_lvar_equal_to_int_var 0@ == $preload_slot
goto_if_false @A_CONT_486
if 
  is_int_var_greater_than_int_var $SLOT_priority(0@,2i) > $SLOT_priority(1@,2i)
goto_if_false @A_CONT_468
set_var_int_to_lvar_int $current_slot = 0@
set_var_int_to_lvar_int $preload_slot = 1@
clear_mission_audio $actual_SLOT($preload_slot,2i)
clear_this_print $SLOT_text($preload_slot,2s)
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_CONT_450
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_CONT_450
stop_char_facial_talk $SLOT_ped($preload_slot,2i)
if 
  not is_int_var_equal_to_int_var $SLOT_ped($preload_slot,2i) == $SLOT_ped($current_slot,2i)
goto_if_false @A_CONT_450
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} False

:A_CONT_450
$SLOT_status($preload_slot,2i) = -1
goto @A_CONT_486

:A_CONT_468
$SLOT_status(0@,2i) = 1
goto @A_CONT_1018

:A_CONT_486
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_580
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_580
start_char_facial_talk $SLOT_ped(0@,2i) {duration} 999999
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_580
attach_mission_audio_to_char $actual_SLOT(0@,2i) {handle} $SLOT_ped(0@,2i)

:A_CONT_580
play_mission_audio $actual_SLOT(0@,2i)
print_now $SLOT_text(0@,2s) {time} 10000 {flag} 1
$SLOT_status(0@,2i) = 2
goto @A_CONT_1018

:A_CONT_621
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_768
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_734
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_734
start_char_facial_talk $SLOT_ped(0@,2i) {duration} 999999
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_734
attach_mission_audio_to_char $actual_SLOT(0@,2i) {handle} $SLOT_ped(0@,2i)

:A_CONT_734
play_mission_audio $actual_SLOT(0@,2i)
print_now $SLOT_text(0@,2s) {time} 10000 {flag} 1
$SLOT_status(0@,2i) = 2

:A_CONT_768
goto @A_CONT_1018

:A_CONT_775
if 
  has_mission_audio_finished $actual_SLOT(0@,2i)
goto_if_false @A_CONT_837
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_830
set_var_int_to_lvar_int $preload_slot = 0@
set_var_int_to_lvar_int $current_slot = 1@

:A_CONT_830
goto @A_CONT_893

:A_CONT_837
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_886
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_886
goto @A_CONT_1018

:A_CONT_886
goto @A_CONT_1018

:A_CONT_893
clear_mission_audio $actual_SLOT(0@,2i)
clear_this_print $SLOT_text(0@,2s)
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_1000
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_1000
stop_char_facial_talk $SLOT_ped(0@,2i)
if 
  not is_int_var_equal_to_int_var $SLOT_ped(0@,2i) == $SLOT_ped(1@,2i)
goto_if_false @A_CONT_1000
shut_char_up_for_scripted_speech $SLOT_ped(0@,2i) {state} False

:A_CONT_1000
$SLOT_status(0@,2i) = -1
goto @A_CONT_1018

:A_CONT_1018
0@ += 1
1@ -= 1
goto @A_CONT_140

:A_CONT_1039
goto @A_CONT_1060

:A_CONT_1046
$SLOT_status[0] = -4
$SLOT_status[1] = -4

:A_CONT_1060
goto @A_CONT_97

:A_ALAP
script_name 'A_ALAP'
if 
  is_int_lvar_greater_or_equal_to_int_var 1@ >= $SLOT_priority($preload_slot,2i)
goto_if_false @A_ALAP_317
set_var_int_to_var_int $SLOT_sample($preload_slot,2i) = $load_sample
set_var_text_label $SLOT_text($preload_slot,2s) = s$load_text
clear_mission_audio $actual_SLOT($preload_slot,2i)
load_mission_audio $actual_SLOT($preload_slot,2i) {audioId} $SLOT_sample($preload_slot,2i)
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_159
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_ALAP_159
if 
  not is_int_var_equal_to_int_lvar $SLOT_ped($preload_slot,2i) == 2@
goto_if_false @A_ALAP_159
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} False

:A_ALAP_159
$SLOT_status($preload_slot,2i) = 0
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_293
if 
  $SLOT_play_status($preload_slot,2i) == 0
goto_if_false @A_ALAP_250
2@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:A_ALAP_250
set_var_int_to_lvar_int $SLOT_ped($preload_slot,2i) = 2@
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_ALAP_293
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} True

:A_ALAP_293
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
set_var_int_to_lvar_int $SLOT_priority($preload_slot,2i) = 1@

:A_ALAP_317
terminate_this_script 

:A_TERM
script_name 'A_TERM'
terminate_all_scripts_with_this_name 'A_CONT'
terminate_all_scripts_with_this_name 'A_ALAP'
terminate_this_script 

:HJ
set_deatharrest_state 0
script_name 'HJ'

:HJ_15
wait 0
if 
  not is_player_playing $player1
goto_if_false @HJ_42
goto @HJ_15

:HJ_42
if 
  are_any_car_cheats_activated 
goto_if_false @HJ_62
goto @HJ_15

:HJ_62
if 
  is_char_in_any_train $scplayer
goto_if_false @HJ_85
goto @HJ_15

:HJ_85
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HJ_108
goto @HJ_15

:HJ_108
if 
  is_char_in_any_boat $scplayer
goto_if_false @HJ_131
goto @HJ_15

:HJ_131
if 
  is_char_in_model $scplayer {modelId} 539
goto_if_false @HJ_157
goto @HJ_15

:HJ_157
if 
  not is_player_control_on $player1
goto_if_false @HJ_180
goto @HJ_15

:HJ_180
if 
  is_char_in_any_car $scplayer
goto_if_false @HJ_1668
$car_player_is_in_hj = store_car_char_is_in_no_save $scplayer
$CarTwoWheelsTime, $CarTwoWheelsDistance, $BikeWheelieTime, $BikeWheelieDistance, $BikeStoppieTime, $BikeStoppieDistance = get_wheelie_stats $player1
if 
  $CarTwoWheelsDistance > 0.0
goto_if_false @HJ_426
$CarTwoWheelsTime /= 1000
cset_var_int_to_var_float $CarTwoWheelsDistanceMeterInt =# $CarTwoWheelsDistance
cset_var_float_to_var_int $CarTwoWheelsDistanceMeter =# $CarTwoWheelsDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $CarTwoWheelsDistance
sub_float_var_from_float_var $temp_float_hj -= $CarTwoWheelsDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $CarTwoWheelsDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $CarTwoWheelsTime
add_int_var_to_int_var $cash += $CarTwoWheelsDistanceMeterInt
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_385
print_with_4_numbers 'WHEEL01' {num1} $cash {num2} $CarTwoWheelsDistanceMeterInt {num3} $CarTwoWheelsDistanceDecimalInt {num4} $CarTwoWheelsTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_426

:HJ_385
convert_metres_to_feet $CarTwoWheelsDistance {var_feet} $CarTwoWheelsDistanceFeet
cset_var_int_to_var_float $CarTwoWheelsDistanceFeetInt =# $CarTwoWheelsDistanceFeet
print_with_3_numbers 'WHEEL02' {num1} $cash {num2} $CarTwoWheelsDistanceFeetInt {num3} $CarTwoWheelsTime {duration} 3000 {style} TextStyle.Middle

:HJ_426
if 
  $BikeWheelieDistance > 0.0
goto_if_false @HJ_631
$BikeWheelieTime /= 1000
cset_var_int_to_var_float $BikeWheelieDistanceMeterInt =# $BikeWheelieDistance
cset_var_float_to_var_int $BikeWheelieDistanceMeter =# $BikeWheelieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeWheelieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeWheelieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeWheelieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeWheelieDistanceMeterInt
$cash *= 2
$cash /= 5
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_590
print_with_4_numbers 'WHEEL06' {num1} $cash {num2} $BikeWheelieDistanceMeterInt {num3} $BikeWheelieDistanceDecimalInt {num4} $BikeWheelieTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_631

:HJ_590
convert_metres_to_feet $BikeWheelieDistance {var_feet} $BikeWheelieDistanceFeet
cset_var_int_to_var_float $BikeWheelieDistanceFeetInt =# $BikeWheelieDistanceFeet
print_with_3_numbers 'WHEEL07' {num1} $cash {num2} $BikeWheelieDistanceFeetInt {num3} $BikeWheelieTime {duration} 3000 {style} TextStyle.Middle

:HJ_631
if 
  $BikeStoppieDistance > 0.0
goto_if_false @HJ_822
$BikeStoppieTime /= 1000
cset_var_int_to_var_float $BikeStoppieDistanceMeterInt =# $BikeStoppieDistance
cset_var_float_to_var_int $BikeStoppieDistanceMeter =# $BikeStoppieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeStoppieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeStoppieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeStoppieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeStoppieDistanceMeterInt
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_781
print_with_4_numbers 'WHEEL11' {num1} $cash {num2} $BikeStoppieDistanceMeterInt {num3} $BikeStoppieDistanceDecimalInt {num4} $BikeStoppieTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_822

:HJ_781
convert_metres_to_feet $BikeStoppieDistance {var_feet} $BikeStoppieDistanceFeet
cset_var_int_to_var_float $BikeStoppieDistanceFeetInt =# $BikeStoppieDistanceFeet
print_with_3_numbers 'WHEEL12' {num1} $cash {num2} $BikeStoppieDistanceFeetInt {num3} $BikeStoppieTime {duration} 3000 {style} TextStyle.Middle

:HJ_822
if 
  is_car_in_air_proper $car_player_is_in_hj
goto_if_false @HJ_1654
$total_rotation_int = 0
$heading_hj = 0.0
$flag_wheels_hj = 0
$counter_stunt_rolls_hj = 0
$flag_car_upsidedown_hj = 0
$stunt_flags_hj = 0
$flag_takeoff_hj = 0
$height_int_hj = 0
$height_float_hj = -100.0
$x_float_hj = 0.0
$y_float_hj = 0.0
$z_float_hj = 0.0
$takeoff_x_float_hj = 0.0
$takeoff_y_float_hj = 0.0
$takeoff_z_float_hj = 0.0
$jumpend_x_float_hj = 0.0
$jumpend_y_float_hj = 0.0
$jumpdistance_float_hj = 0.0
$jumpdistance_int_hj = 0
$distance_decimals_int_hj = 0
$height_decimals_int_hj = 0
$temp_float_hj = 0.0
$heading_difference = 0.0
$total_rotation = 0.0
$heading_difference_temp = 0.0
$old_heading_hj = 0.0
$collision_counter = 0
$passenger_said_jump = 0

:HJ_1082
if or
  is_car_in_air_proper $car_player_is_in_hj
  10 > $collision_counter
goto_if_false @HJ_1647
$collision_counter += 1
$x_float_hj, $y_float_hj, $z_float_hj = get_car_coordinates $car_player_is_in_hj
set_var_float_to_var_float $old_heading_hj = $heading_hj
if 
  $flag_takeoff_hj == 0
goto_if_false @HJ_1191
$old_heading_hj = get_car_heading $car_player_is_in_hj
set_var_float_to_var_float $takeoff_x_float_hj = $x_float_hj
set_var_float_to_var_float $takeoff_y_float_hj = $y_float_hj
set_var_float_to_var_float $takeoff_z_float_hj = $z_float_hj
$flag_takeoff_hj = 1

:HJ_1191
wait 0
if 
  is_car_dead $car_player_is_in_hj
goto_if_false @HJ_1218
goto @HJ_15

:HJ_1218
if 
  not is_player_playing $player1
goto_if_false @HJ_1241
goto @HJ_15

:HJ_1241
if 
  not is_char_in_any_car $scplayer
goto_if_false @HJ_1264
goto @HJ_15

:HJ_1264
if and
  not is_car_upright $car_player_is_in_hj
  $flag_car_upsidedown_hj == 0
goto_if_false @HJ_1294
$flag_car_upsidedown_hj = 1

:HJ_1294
if and
  is_car_upright $car_player_is_in_hj
  $flag_car_upsidedown_hj == 1
goto_if_false @HJ_1331
$counter_stunt_rolls_hj += 1
$flag_car_upsidedown_hj = 0

:HJ_1331
$heading_hj = get_car_heading $car_player_is_in_hj
set_var_float_to_var_float $heading_difference = $heading_hj
sub_float_var_from_float_var $heading_difference -= $old_heading_hj
if 
  $heading_difference > 180.0
goto_if_false @HJ_1409
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp
goto @HJ_1456

:HJ_1409
if 
  -180.0 > $heading_difference
goto_if_false @HJ_1456
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
add_float_var_to_float_var $heading_difference += $heading_difference_temp

:HJ_1456
if 
  0.0 > $heading_difference
goto_if_false @HJ_1503
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 0.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp

:HJ_1503
add_float_var_to_float_var $total_rotation += $heading_difference
cset_var_int_to_var_float $total_rotation_int =# $total_rotation
if 
  is_float_var_greater_than_float_var $z_float_hj > $height_float_hj
goto_if_false @HJ_1546
set_var_float_to_var_float $height_float_hj = $z_float_hj

:HJ_1546
$z_float_hj = 0.0
if 
  $passenger_said_jump == 0
goto_if_false @HJ_1640
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = get_car_coordinates $car_player_is_in_hj
$temp_float_hj = get_distance_between_coords_2d $takeoff_x_float_hj {fromY} $takeoff_y_float_hj {toX} $jumpend_x_float_hj {toZ} $jumpend_y_float_hj
if 
  $temp_float_hj > 20.0
goto_if_false @HJ_1640
random_passenger_say $car_player_is_in_hj {phrase} SpeechId.CarJump
$passenger_said_jump = 1

:HJ_1640
goto @HJ_1082

:HJ_1647
goto @HJ_1661

:HJ_1654
goto @HJ_15

:HJ_1661
goto @HJ_1675

:HJ_1668
goto @HJ_15

:HJ_1675
if 
  $flag_takeoff_hj == 1
goto_if_false @HJ_1864
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = get_car_coordinates $car_player_is_in_hj
$jumpdistance_float_hj = get_distance_between_coords_2d $takeoff_x_float_hj {fromY} $takeoff_y_float_hj {toX} $jumpend_x_float_hj {toZ} $jumpend_y_float_hj
register_float_stat StatId.MaxJumpDistance {value} $jumpdistance_float_hj
cset_var_int_to_var_float $jumpdistance_int_hj =# $jumpdistance_float_hj
sub_float_var_from_float_var $height_float_hj -= $takeoff_z_float_hj
register_float_stat StatId.MaxJumpHeight {value} $height_float_hj
cset_var_int_to_var_float $height_int_hj =# $height_float_hj
cset_var_float_to_var_int $temp_float_hj =# $jumpdistance_int_hj
sub_float_var_from_float_var $jumpdistance_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $jumpdistance_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $distance_decimals_int_hj =# $temp_float_hj
cset_var_float_to_var_int $temp_float_hj =# $height_int_hj
sub_float_var_from_float_var $height_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $height_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $height_decimals_int_hj =# $temp_float_hj
register_int_stat StatId.MaxJumpFlips {value} $counter_stunt_rolls_hj
register_int_stat StatId.MaxJumpSpins {value} $total_rotation_int

:HJ_1864
if 
  $height_float_hj > 4.0
goto_if_false @HJ_1892
$stunt_flags_hj += 1

:HJ_1892
if 
  $jumpdistance_int_hj > 40
goto_if_false @HJ_1917
$stunt_flags_hj += 1

:HJ_1917
if 
  $counter_stunt_rolls_hj > 1
goto_if_false @HJ_1942
$stunt_flags_hj += 1

:HJ_1942
if 
  $total_rotation_int > 360
goto_if_false @HJ_1968
$stunt_flags_hj += 1

:HJ_1968
if 
  $stunt_flags_hj > 0
goto_if_false @HJ_2385
set_var_int_to_var_int $cash_reward = $counter_stunt_rolls_hj
$cash_reward *= 180
add_int_var_to_int_var $cash_reward += $total_rotation_int
set_var_int_to_var_int $cash_reward_temp = $jumpdistance_int_hj
$cash_reward_temp *= 6
add_int_var_to_int_var $cash_reward += $cash_reward_temp
set_var_int_to_var_int $cash_reward_temp = $height_int_hj
$cash_reward_temp *= 45
add_int_var_to_int_var $cash_reward += $cash_reward_temp
if 
  $flag_wheels_hj == 1
goto_if_false @HJ_2081
$cash_reward *= 2

:HJ_2081
mult_int_var_by_int_var $cash_reward *= $stunt_flags_hj
$cash_reward /= 3
$cash_reward /= 5
add_score $player1 {money} $cash_reward
if 
  $stunt_flags_hj == 1
goto_if_false @HJ_2155
print_with_number 'HJ_IS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 1

:HJ_2155
if 
  $stunt_flags_hj == 2
goto_if_false @HJ_2199
print_with_number 'HJ_DIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 3

:HJ_2199
if 
  $stunt_flags_hj == 3
goto_if_false @HJ_2243
print_with_number 'HJ_TIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 5

:HJ_2243
if 
  $stunt_flags_hj == 4
goto_if_false @HJ_2287
print_with_number 'HJ_QIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 7

:HJ_2287
if 
  are_measurements_in_metres 
goto_if_false @HJ_2341
print_with_6_numbers 'HJSTAT' {num1} $jumpdistance_int_hj {num2} $distance_decimals_int_hj {num3} $height_int_hj {num4} $height_decimals_int_hj {num5} $counter_stunt_rolls_hj {num6} $total_rotation_int {duration} 5000 {style} TextStyle.MiddleSmallerHigher
goto @HJ_2385

:HJ_2341
$jumpdistance_int_hj = convert_metres_to_feet_int $jumpdistance_int_hj
$height_int_hj = convert_metres_to_feet_int $height_int_hj
print_with_4_numbers 'HJSTATF' {num1} $jumpdistance_int_hj {num2} $height_int_hj {num3} $counter_stunt_rolls_hj {num4} $total_rotation_int {duration} 5000 {style} TextStyle.MiddleSmallerHigher

:HJ_2385
goto @HJ_15
terminate_this_script 

:CELLFON
script_name 'CELLFON'
$skip_the_mobile_call = 0
$terminate_cat_calls = 0
$flag_new_cont = 0
$flag_mobile_timer = 0
$flag_player_answered_phone = 0
$call_delay = 20000
set_deatharrest_state 0
terminate_this_script 

:CELLFON_60
if 
  70 > $call_number
goto_if_false @CELLFON_13311
switch_start $call_number {numCases} 67 {hasDefaultCase} 0 {defaultLabel} @CELLFON_13304 {caseNum1} 0 {caseLabel1} @CELLFON_2776 {caseNum2} 1 {caseLabel2} @CELLFON_2966 {caseNum3} 2 {caseLabel3} @CELLFON_3024 {caseNum4} 3 {caseLabel4} @CELLFON_3170 {caseNum5} 4 {caseLabel5} @CELLFON_3316 {caseNum6} 5 {caseLabel6} @CELLFON_3550 {caseNum7} 6 {caseLabel7} @CELLFON_3718
switch_continued 7 {caseLabel1} @CELLFON_3886 {caseNum2} 8 {caseLabel2} @CELLFON_4208 {caseNum3} 9 {caseLabel3} @CELLFON_5466 {caseNum4} 10 {caseLabel4} @CELLFON_4574 {caseNum5} 11 {caseLabel5} @CELLFON_4896 {caseNum6} 12 {caseLabel6} @CELLFON_5108 {caseNum7} 13 {caseLabel7} @CELLFON_5320 {caseNum8} 14 {caseLabel8} @CELLFON_5792 {caseNum9} 15 {caseLabel9} @CELLFON_6070
switch_continued 16 {caseLabel1} @CELLFON_6414 {caseNum2} 17 {caseLabel2} @CELLFON_6560 {caseNum3} 18 {caseLabel3} @CELLFON_596 {caseNum4} 19 {caseLabel4} @CELLFON_874 {caseNum5} 20 {caseLabel5} @CELLFON_1108 {caseNum6} 21 {caseLabel6} @CELLFON_1408 {caseNum7} 22 {caseLabel7} @CELLFON_1642 {caseNum8} 23 {caseLabel8} @CELLFON_1942 {caseNum9} 24 {caseLabel9} @CELLFON_2110
switch_continued 25 {caseLabel1} @CELLFON_2322 {caseNum2} 29 {caseLabel2} @CELLFON_11120 {caseNum3} 30 {caseLabel3} @CELLFON_11288 {caseNum4} 31 {caseLabel4} @CELLFON_11522 {caseNum5} 32 {caseLabel5} @CELLFON_11866 {caseNum6} 33 {caseLabel6} @CELLFON_12122 {caseNum7} 34 {caseLabel7} @CELLFON_6684 {caseNum8} 35 {caseLabel8} @CELLFON_6896 {caseNum9} 36 {caseLabel9} @CELLFON_7152
switch_continued 37 {caseLabel1} @CELLFON_7364 {caseNum2} 38 {caseLabel2} @CELLFON_7466 {caseNum3} 39 {caseLabel3} @CELLFON_7656 {caseNum4} 40 {caseLabel4} @CELLFON_8000 {caseNum5} 41 {caseLabel5} @CELLFON_8300 {caseNum6} 42 {caseLabel6} @CELLFON_8556 {caseNum7} 43 {caseLabel7} @CELLFON_8680 {caseNum8} 44 {caseLabel8} @CELLFON_8738 {caseNum9} 45 {caseLabel9} @CELLFON_8950
switch_continued 46 {caseLabel1} @CELLFON_9228 {caseNum2} 47 {caseLabel2} @CELLFON_9550 {caseNum3} 48 {caseLabel3} @CELLFON_9696 {caseNum4} 49 {caseLabel4} @CELLFON_9842 {caseNum5} 50 {caseLabel5} @CELLFON_10010 {caseNum6} 51 {caseLabel6} @CELLFON_10332 {caseNum7} 52 {caseLabel7} @CELLFON_10632 {caseNum8} 53 {caseLabel8} @CELLFON_10866 {caseNum9} 54 {caseLabel9} @CELLFON_12312
switch_continued 55 {caseLabel1} @CELLFON_12374 {caseNum2} 56 {caseLabel2} @CELLFON_12436 {caseNum3} 57 {caseLabel3} @CELLFON_12498 {caseNum4} 58 {caseLabel4} @CELLFON_12560 {caseNum5} 59 {caseLabel5} @CELLFON_12622 {caseNum6} 60 {caseLabel6} @CELLFON_12684 {caseNum7} 61 {caseLabel7} @CELLFON_12746 {caseNum8} 62 {caseLabel8} @CELLFON_12808 {caseNum9} 63 {caseLabel9} @CELLFON_12870
switch_continued 64 {caseLabel1} @CELLFON_12932 {caseNum2} 65 {caseLabel2} @CELLFON_12994 {caseNum3} 66 {caseLabel3} @CELLFON_13056 {caseNum4} 67 {caseLabel4} @CELLFON_13118 {caseNum5} 68 {caseLabel5} @CELLFON_13180 {caseNum6} 69 {caseLabel6} @CELLFON_13242 {caseNum7} -1 {caseLabel7} @CELLFON_13304 {caseNum8} -1 {caseLabel8} @CELLFON_13304 {caseNum9} -1 {caseLabel9} @CELLFON_13304

:CELLFON_596
set_var_text_label s$mobile_print_labels[0] = 'MSWE14A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE14B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE14C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE14D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE14E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE14F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE14G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE14H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE14J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE14K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE14L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE14N'
set_var_int_to_constant $mobile_audio_labels[0] = 14540
set_var_int_to_constant $mobile_audio_labels[1] = 14489
set_var_int_to_constant $mobile_audio_labels[2] = 14490
set_var_int_to_constant $mobile_audio_labels[3] = 14541
set_var_int_to_constant $mobile_audio_labels[4] = 14491
set_var_int_to_constant $mobile_audio_labels[5] = 14492
set_var_int_to_constant $mobile_audio_labels[6] = 14542
set_var_int_to_constant $mobile_audio_labels[7] = 14493
set_var_int_to_constant $mobile_audio_labels[8] = 14494
set_var_int_to_constant $mobile_audio_labels[9] = 14543
set_var_int_to_constant $mobile_audio_labels[10] = 14495
set_var_int_to_constant $mobile_audio_labels[11] = 14496
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_874
set_var_text_label s$mobile_print_labels[0] = 'MSWE10A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE10D'
set_var_text_label s$mobile_print_labels[2] = 'MSWE10C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE10E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE10F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE10G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE10H'
set_var_text_label s$mobile_print_labels[7] = 'MSWE10K'
set_var_text_label s$mobile_print_labels[8] = 'MSWE10L'
set_var_text_label s$mobile_print_labels[9] = 'MSWE10N'
set_var_int_to_constant $mobile_audio_labels[0] = 14530
set_var_int_to_constant $mobile_audio_labels[1] = 14460
set_var_int_to_constant $mobile_audio_labels[2] = 14531
set_var_int_to_constant $mobile_audio_labels[3] = 14461
set_var_int_to_constant $mobile_audio_labels[4] = 14462
set_var_int_to_constant $mobile_audio_labels[5] = 14463
set_var_int_to_constant $mobile_audio_labels[6] = 14464
set_var_int_to_constant $mobile_audio_labels[7] = 14532
set_var_int_to_constant $mobile_audio_labels[8] = 14533
set_var_int_to_constant $mobile_audio_labels[9] = 14466
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_1108
set_var_text_label s$mobile_print_labels[0] = 'MSWE06A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE06B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE06C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE06D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE06E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE06F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE06G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE06H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE06J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE06K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE06L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE06N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE06M'
set_var_int_to_constant $mobile_audio_labels[0] = 14518
set_var_int_to_constant $mobile_audio_labels[1] = 14431
set_var_int_to_constant $mobile_audio_labels[2] = 14519
set_var_int_to_constant $mobile_audio_labels[3] = 14432
set_var_int_to_constant $mobile_audio_labels[4] = 14433
set_var_int_to_constant $mobile_audio_labels[5] = 14520
set_var_int_to_constant $mobile_audio_labels[6] = 14434
set_var_int_to_constant $mobile_audio_labels[7] = 14435
set_var_int_to_constant $mobile_audio_labels[8] = 14521
set_var_int_to_constant $mobile_audio_labels[9] = 14436
set_var_int_to_constant $mobile_audio_labels[10] = 14437
set_var_int_to_constant $mobile_audio_labels[11] = 14523
set_var_int_to_constant $mobile_audio_labels[12] = 14522
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_1408
set_var_text_label s$mobile_print_labels[0] = 'MSWE05A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE05B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE05C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE05D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE05E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE05F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE05G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE05H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE05J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE05K'
set_var_int_to_constant $mobile_audio_labels[0] = 14513
set_var_int_to_constant $mobile_audio_labels[1] = 14426
set_var_int_to_constant $mobile_audio_labels[2] = 14514
set_var_int_to_constant $mobile_audio_labels[3] = 14427
set_var_int_to_constant $mobile_audio_labels[4] = 14428
set_var_int_to_constant $mobile_audio_labels[5] = 14515
set_var_int_to_constant $mobile_audio_labels[6] = 14429
set_var_int_to_constant $mobile_audio_labels[7] = 14430
set_var_int_to_constant $mobile_audio_labels[8] = 14516
set_var_int_to_constant $mobile_audio_labels[9] = 14517
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_1642
set_var_text_label s$mobile_print_labels[0] = 'MSWE08A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE08B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE08C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE08D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE08E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE08F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE08G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE08H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE08J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE08K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE08L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE08N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE08M'
set_var_int_to_constant $mobile_audio_labels[0] = 14544
set_var_int_to_constant $mobile_audio_labels[1] = 14445
set_var_int_to_constant $mobile_audio_labels[2] = 14446
set_var_int_to_constant $mobile_audio_labels[3] = 14447
set_var_int_to_constant $mobile_audio_labels[4] = 14448
set_var_int_to_constant $mobile_audio_labels[5] = 14449
set_var_int_to_constant $mobile_audio_labels[6] = 14545
set_var_int_to_constant $mobile_audio_labels[7] = 14450
set_var_int_to_constant $mobile_audio_labels[8] = 14451
set_var_int_to_constant $mobile_audio_labels[9] = 14546
set_var_int_to_constant $mobile_audio_labels[10] = 14452
set_var_int_to_constant $mobile_audio_labels[11] = 14453
set_var_int_to_constant $mobile_audio_labels[12] = 14547
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_1942
set_var_text_label s$mobile_print_labels[0] = 'MSWE09A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE09B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE09C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE09E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE09F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE09G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE09H'
set_var_int_to_constant $mobile_audio_labels[0] = 14454
set_var_int_to_constant $mobile_audio_labels[1] = 14528
set_var_int_to_constant $mobile_audio_labels[2] = 14455
set_var_int_to_constant $mobile_audio_labels[3] = 14456
set_var_int_to_constant $mobile_audio_labels[4] = 14457
set_var_int_to_constant $mobile_audio_labels[5] = 14458
set_var_int_to_constant $mobile_audio_labels[6] = 14529
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_2110
set_var_text_label s$mobile_print_labels[0] = 'MSWE11A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE11B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE11C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE11D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE11E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE11F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE11G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE11H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE11J'
set_var_int_to_constant $mobile_audio_labels[0] = 14467
set_var_int_to_constant $mobile_audio_labels[1] = 14534
set_var_int_to_constant $mobile_audio_labels[2] = 14468
set_var_int_to_constant $mobile_audio_labels[3] = 14535
set_var_int_to_constant $mobile_audio_labels[4] = 14469
set_var_int_to_constant $mobile_audio_labels[5] = 14470
set_var_int_to_constant $mobile_audio_labels[6] = 14536
set_var_int_to_constant $mobile_audio_labels[7] = 14471
set_var_int_to_constant $mobile_audio_labels[8] = 14537
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_2322
set_var_text_label s$mobile_print_labels[0] = 'MSWE12A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE12B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE12C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE12D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE12E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE12F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE12G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE12H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE12J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE12K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE12L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE12N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE12M'
set_var_text_label s$mobile_print_labels[13] = 'MSWE12O'
set_var_text_label s$mobile_print_labels[14] = 'MSWE12P'
set_var_text_label s$mobile_print_labels[15] = 'MSWE12Q'
set_var_text_label s$mobile_print_labels[16] = 'MSWE12R'
set_var_text_label s$mobile_print_labels[17] = 'MSWE12S'
set_var_text_label s$mobile_print_labels[18] = 'MSWE12T'
set_var_text_label s$mobile_print_labels[19] = 'MSWE12U'
set_var_int_to_constant $mobile_audio_labels[0] = 14472
set_var_int_to_constant $mobile_audio_labels[1] = 14548
set_var_int_to_constant $mobile_audio_labels[2] = 14473
set_var_int_to_constant $mobile_audio_labels[3] = 14474
set_var_int_to_constant $mobile_audio_labels[4] = 14475
set_var_int_to_constant $mobile_audio_labels[5] = 14476
set_var_int_to_constant $mobile_audio_labels[6] = 14477
set_var_int_to_constant $mobile_audio_labels[7] = 14549
set_var_int_to_constant $mobile_audio_labels[8] = 14478
set_var_int_to_constant $mobile_audio_labels[9] = 14550
set_var_int_to_constant $mobile_audio_labels[10] = 14479
set_var_int_to_constant $mobile_audio_labels[11] = 14481
set_var_int_to_constant $mobile_audio_labels[12] = 14480
set_var_int_to_constant $mobile_audio_labels[13] = 14551
set_var_int_to_constant $mobile_audio_labels[14] = 14552
set_var_int_to_constant $mobile_audio_labels[15] = 14482
set_var_int_to_constant $mobile_audio_labels[16] = 14483
set_var_int_to_constant $mobile_audio_labels[17] = 14553
set_var_int_to_constant $mobile_audio_labels[18] = 14554
set_var_int_to_constant $mobile_audio_labels[19] = 14555
$cell_index_end = 19
goto @CELLFON_13304

:CELLFON_2776
set_var_text_label s$mobile_print_labels[0] = 'MCAT02A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT02B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT02C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT02D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT02E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT02F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT02G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT02H'
set_var_int_to_constant $mobile_audio_labels[0] = 3629
set_var_int_to_constant $mobile_audio_labels[1] = 3604
set_var_int_to_constant $mobile_audio_labels[2] = 3630
set_var_int_to_constant $mobile_audio_labels[3] = 3605
set_var_int_to_constant $mobile_audio_labels[4] = 3606
set_var_int_to_constant $mobile_audio_labels[5] = 3631
set_var_int_to_constant $mobile_audio_labels[6] = 3607
set_var_int_to_constant $mobile_audio_labels[7] = 3608
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_2966
set_var_text_label s$mobile_print_labels[0] = 'MCAT03A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT03B'
set_var_int_to_constant $mobile_audio_labels[0] = 3609
set_var_int_to_constant $mobile_audio_labels[1] = 3632
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_3024
set_var_text_label s$mobile_print_labels[0] = 'MCAT04A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT04B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT04C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT04D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT04E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT04F'
set_var_int_to_constant $mobile_audio_labels[0] = 3633
set_var_int_to_constant $mobile_audio_labels[1] = 3610
set_var_int_to_constant $mobile_audio_labels[2] = 3634
set_var_int_to_constant $mobile_audio_labels[3] = 3611
set_var_int_to_constant $mobile_audio_labels[4] = 3635
set_var_int_to_constant $mobile_audio_labels[5] = 3636
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_3170
set_var_text_label s$mobile_print_labels[0] = 'MCAT05B'
set_var_text_label s$mobile_print_labels[1] = 'MCAT05C'
set_var_text_label s$mobile_print_labels[2] = 'MCAT05D'
set_var_text_label s$mobile_print_labels[3] = 'MCAT05E'
set_var_text_label s$mobile_print_labels[4] = 'MCAT05F'
set_var_text_label s$mobile_print_labels[5] = 'MCAT05G'
set_var_int_to_constant $mobile_audio_labels[0] = 3612
set_var_int_to_constant $mobile_audio_labels[1] = 3637
set_var_int_to_constant $mobile_audio_labels[2] = 3638
set_var_int_to_constant $mobile_audio_labels[3] = 3613
set_var_int_to_constant $mobile_audio_labels[4] = 3639
set_var_int_to_constant $mobile_audio_labels[5] = 3640
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_3316
set_var_text_label s$mobile_print_labels[0] = 'MCAT06A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT06B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT06C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT06D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT06E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT06F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT06G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT06H'
set_var_text_label s$mobile_print_labels[8] = 'MCAT06J'
set_var_text_label s$mobile_print_labels[9] = 'MCAT06K'
set_var_int_to_constant $mobile_audio_labels[0] = 3614
set_var_int_to_constant $mobile_audio_labels[1] = 3615
set_var_int_to_constant $mobile_audio_labels[2] = 3616
set_var_int_to_constant $mobile_audio_labels[3] = 3641
set_var_int_to_constant $mobile_audio_labels[4] = 3642
set_var_int_to_constant $mobile_audio_labels[5] = 3617
set_var_int_to_constant $mobile_audio_labels[6] = 3618
set_var_int_to_constant $mobile_audio_labels[7] = 3619
set_var_int_to_constant $mobile_audio_labels[8] = 3643
set_var_int_to_constant $mobile_audio_labels[9] = 3620
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_3550
set_var_text_label s$mobile_print_labels[0] = 'MCAT07A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT07B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT07C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT07D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT07E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT07F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT07G'
set_var_int_to_constant $mobile_audio_labels[0] = 3644
set_var_int_to_constant $mobile_audio_labels[1] = 3621
set_var_int_to_constant $mobile_audio_labels[2] = 3645
set_var_int_to_constant $mobile_audio_labels[3] = 3622
set_var_int_to_constant $mobile_audio_labels[4] = 3623
set_var_int_to_constant $mobile_audio_labels[5] = 3646
set_var_int_to_constant $mobile_audio_labels[6] = 3624
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_3718
set_var_text_label s$mobile_print_labels[0] = 'MLOC03A'
set_var_text_label s$mobile_print_labels[1] = 'MLOC03B'
set_var_text_label s$mobile_print_labels[2] = 'MLOC03C'
set_var_text_label s$mobile_print_labels[3] = 'MLOC03D'
set_var_text_label s$mobile_print_labels[4] = 'MLOC03E'
set_var_text_label s$mobile_print_labels[5] = 'MLOC03F'
set_var_text_label s$mobile_print_labels[6] = 'MLOC03H'
set_var_int_to_constant $mobile_audio_labels[0] = 16408
set_var_int_to_constant $mobile_audio_labels[1] = 16418
set_var_int_to_constant $mobile_audio_labels[2] = 16409
set_var_int_to_constant $mobile_audio_labels[3] = 16410
set_var_int_to_constant $mobile_audio_labels[4] = 16419
set_var_int_to_constant $mobile_audio_labels[5] = 16411
set_var_int_to_constant $mobile_audio_labels[6] = 16420
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_3886
set_var_text_label s$mobile_print_labels[0] = 'MCES01A'
set_var_text_label s$mobile_print_labels[1] = 'MCES01B'
set_var_text_label s$mobile_print_labels[2] = 'MCES01C'
set_var_text_label s$mobile_print_labels[3] = 'MCES01D'
set_var_text_label s$mobile_print_labels[4] = 'MCES01E'
set_var_text_label s$mobile_print_labels[5] = 'MCES01F'
set_var_text_label s$mobile_print_labels[6] = 'MCES01G'
set_var_text_label s$mobile_print_labels[7] = 'MCES01H'
set_var_text_label s$mobile_print_labels[8] = 'MCES01K'
set_var_text_label s$mobile_print_labels[9] = 'MCES01L'
set_var_text_label s$mobile_print_labels[10] = 'MCES01M'
set_var_text_label s$mobile_print_labels[11] = 'MCES01N'
set_var_text_label s$mobile_print_labels[12] = 'MCES01O'
set_var_text_label s$mobile_print_labels[13] = 'MCES01P'
set_var_int_to_constant $mobile_audio_labels[0] = 4689
set_var_int_to_constant $mobile_audio_labels[1] = 4600
set_var_int_to_constant $mobile_audio_labels[2] = 4690
set_var_int_to_constant $mobile_audio_labels[3] = 4601
set_var_int_to_constant $mobile_audio_labels[4] = 4691
set_var_int_to_constant $mobile_audio_labels[5] = 4602
set_var_int_to_constant $mobile_audio_labels[6] = 4692
set_var_int_to_constant $mobile_audio_labels[7] = 4603
set_var_int_to_constant $mobile_audio_labels[8] = 4693
set_var_int_to_constant $mobile_audio_labels[9] = 4604
set_var_int_to_constant $mobile_audio_labels[10] = 4605
set_var_int_to_constant $mobile_audio_labels[11] = 4694
set_var_int_to_constant $mobile_audio_labels[12] = 4606
set_var_int_to_constant $mobile_audio_labels[13] = 4607
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_4208
set_var_text_label s$mobile_print_labels[0] = 'MCES04A'
set_var_text_label s$mobile_print_labels[1] = 'MCES04B'
set_var_text_label s$mobile_print_labels[2] = 'MCES04C'
set_var_text_label s$mobile_print_labels[3] = 'MCES04D'
set_var_text_label s$mobile_print_labels[4] = 'MCES04E'
set_var_text_label s$mobile_print_labels[5] = 'MCES04F'
set_var_text_label s$mobile_print_labels[6] = 'MCES04G'
set_var_text_label s$mobile_print_labels[7] = 'MCES04H'
set_var_text_label s$mobile_print_labels[8] = 'MCES04J'
set_var_text_label s$mobile_print_labels[9] = 'MCES04L'
set_var_text_label s$mobile_print_labels[10] = 'MCES04M'
set_var_text_label s$mobile_print_labels[11] = 'MCES04N'
set_var_text_label s$mobile_print_labels[12] = 'MCES04O'
set_var_text_label s$mobile_print_labels[13] = 'MCES04P'
set_var_text_label s$mobile_print_labels[14] = 'MCES04Q'
set_var_text_label s$mobile_print_labels[15] = 'MCES04R'
set_var_int_to_constant $mobile_audio_labels[0] = 4700
set_var_int_to_constant $mobile_audio_labels[1] = 4622
set_var_int_to_constant $mobile_audio_labels[2] = 4623
set_var_int_to_constant $mobile_audio_labels[3] = 4701
set_var_int_to_constant $mobile_audio_labels[4] = 4702
set_var_int_to_constant $mobile_audio_labels[5] = 4703
set_var_int_to_constant $mobile_audio_labels[6] = 4624
set_var_int_to_constant $mobile_audio_labels[7] = 4625
set_var_int_to_constant $mobile_audio_labels[8] = 4626
set_var_int_to_constant $mobile_audio_labels[9] = 4704
set_var_int_to_constant $mobile_audio_labels[10] = 4627
set_var_int_to_constant $mobile_audio_labels[11] = 4628
set_var_int_to_constant $mobile_audio_labels[12] = 4629
set_var_int_to_constant $mobile_audio_labels[13] = 4630
set_var_int_to_constant $mobile_audio_labels[14] = 4631
set_var_int_to_constant $mobile_audio_labels[15] = 4632
$cell_index_end = 15
goto @CELLFON_13304

:CELLFON_4574
set_var_text_label s$mobile_print_labels[0] = 'MCES09A'
set_var_text_label s$mobile_print_labels[1] = 'MCES09B'
set_var_text_label s$mobile_print_labels[2] = 'MCES09C'
set_var_text_label s$mobile_print_labels[3] = 'MCES09D'
set_var_text_label s$mobile_print_labels[4] = 'MCES09E'
set_var_text_label s$mobile_print_labels[5] = 'MCES09F'
set_var_text_label s$mobile_print_labels[6] = 'MCES09G'
set_var_text_label s$mobile_print_labels[7] = 'MCES09H'
set_var_text_label s$mobile_print_labels[8] = 'MCES09K'
set_var_text_label s$mobile_print_labels[9] = 'MCES09L'
set_var_text_label s$mobile_print_labels[10] = 'MCES09M'
set_var_text_label s$mobile_print_labels[11] = 'MCES09N'
set_var_text_label s$mobile_print_labels[12] = 'MCES09O'
set_var_text_label s$mobile_print_labels[13] = 'MCES09P'
set_var_int_to_constant $mobile_audio_labels[0] = 4648
set_var_int_to_constant $mobile_audio_labels[1] = 4713
set_var_int_to_constant $mobile_audio_labels[2] = 4649
set_var_int_to_constant $mobile_audio_labels[3] = 4650
set_var_int_to_constant $mobile_audio_labels[4] = 4651
set_var_int_to_constant $mobile_audio_labels[5] = 4714
set_var_int_to_constant $mobile_audio_labels[6] = 4652
set_var_int_to_constant $mobile_audio_labels[7] = 4653
set_var_int_to_constant $mobile_audio_labels[8] = 4654
set_var_int_to_constant $mobile_audio_labels[9] = 4715
set_var_int_to_constant $mobile_audio_labels[10] = 4655
set_var_int_to_constant $mobile_audio_labels[11] = 4656
set_var_int_to_constant $mobile_audio_labels[12] = 4657
set_var_int_to_constant $mobile_audio_labels[13] = 4658
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_4896
set_var_text_label s$mobile_print_labels[0] = 'MKND01A'
set_var_text_label s$mobile_print_labels[1] = 'MKND01B'
set_var_text_label s$mobile_print_labels[2] = 'MKND01C'
set_var_text_label s$mobile_print_labels[3] = 'MKND01D'
set_var_text_label s$mobile_print_labels[4] = 'MKND01E'
set_var_text_label s$mobile_print_labels[5] = 'MKND01F'
set_var_text_label s$mobile_print_labels[6] = 'MKND01G'
set_var_text_label s$mobile_print_labels[7] = 'MKND01H'
set_var_text_label s$mobile_print_labels[8] = 'MKND01J'
set_var_int_to_constant $mobile_audio_labels[0] = 19400
set_var_int_to_constant $mobile_audio_labels[1] = 19410
set_var_int_to_constant $mobile_audio_labels[2] = 19401
set_var_int_to_constant $mobile_audio_labels[3] = 19402
set_var_int_to_constant $mobile_audio_labels[4] = 19411
set_var_int_to_constant $mobile_audio_labels[5] = 19403
set_var_int_to_constant $mobile_audio_labels[6] = 19404
set_var_int_to_constant $mobile_audio_labels[7] = 19412
set_var_int_to_constant $mobile_audio_labels[8] = 19405
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_5108
set_var_text_label s$mobile_print_labels[0] = 'MTEN01A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN01B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN01C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN01D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN01E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN01F'
set_var_text_label s$mobile_print_labels[6] = 'MTEN01G'
set_var_text_label s$mobile_print_labels[7] = 'MTEN01H'
set_var_text_label s$mobile_print_labels[8] = 'MTEN01J'
set_var_int_to_constant $mobile_audio_labels[0] = 19814
set_var_int_to_constant $mobile_audio_labels[1] = 19802
set_var_int_to_constant $mobile_audio_labels[2] = 19815
set_var_int_to_constant $mobile_audio_labels[3] = 19803
set_var_int_to_constant $mobile_audio_labels[4] = 19816
set_var_int_to_constant $mobile_audio_labels[5] = 19804
set_var_int_to_constant $mobile_audio_labels[6] = 19817
set_var_int_to_constant $mobile_audio_labels[7] = 19805
set_var_int_to_constant $mobile_audio_labels[8] = 19806
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_5320
set_var_text_label s$mobile_print_labels[0] = 'MTEN02A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN02B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN02C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN02D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN02E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN02F'
set_var_int_to_constant $mobile_audio_labels[0] = 19807
set_var_int_to_constant $mobile_audio_labels[1] = 19800
set_var_int_to_constant $mobile_audio_labels[2] = 19808
set_var_int_to_constant $mobile_audio_labels[3] = 19809
set_var_int_to_constant $mobile_audio_labels[4] = 19801
set_var_int_to_constant $mobile_audio_labels[5] = 19810
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_5466
set_var_text_label s$mobile_print_labels[0] = 'MHRZ01A'
set_var_text_label s$mobile_print_labels[1] = 'MHRZ01B'
set_var_text_label s$mobile_print_labels[2] = 'MHRZ01C'
set_var_text_label s$mobile_print_labels[3] = 'MHRZ01D'
set_var_text_label s$mobile_print_labels[4] = 'MHRZ01E'
set_var_text_label s$mobile_print_labels[5] = 'MHRZ01F'
set_var_text_label s$mobile_print_labels[6] = 'MHRZ01G'
set_var_text_label s$mobile_print_labels[7] = 'MHRZ01H'
set_var_text_label s$mobile_print_labels[8] = 'MHRZ01J'
set_var_text_label s$mobile_print_labels[9] = 'MHRZ01K'
set_var_text_label s$mobile_print_labels[10] = 'MHRZ01L'
set_var_text_label s$mobile_print_labels[11] = 'MHRZ01M'
set_var_text_label s$mobile_print_labels[12] = 'MHRZ01N'
set_var_int_to_constant $mobile_audio_labels[0] = 43204
set_var_int_to_constant $mobile_audio_labels[1] = 43200
set_var_int_to_constant $mobile_audio_labels[2] = 43205
set_var_int_to_constant $mobile_audio_labels[3] = 43206
set_var_int_to_constant $mobile_audio_labels[4] = 43201
set_var_int_to_constant $mobile_audio_labels[5] = 43207
set_var_int_to_constant $mobile_audio_labels[6] = 43202
set_var_int_to_constant $mobile_audio_labels[7] = 43208
set_var_int_to_constant $mobile_audio_labels[8] = 43209
set_var_int_to_constant $mobile_audio_labels[9] = 43210
set_var_int_to_constant $mobile_audio_labels[10] = 43211
set_var_int_to_constant $mobile_audio_labels[11] = 43212
set_var_int_to_constant $mobile_audio_labels[12] = 43203
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_5792
set_var_text_label s$mobile_print_labels[0] = 'MSMK01A'
set_var_text_label s$mobile_print_labels[1] = 'MSMK01B'
set_var_text_label s$mobile_print_labels[2] = 'MSMK01C'
set_var_text_label s$mobile_print_labels[3] = 'MSMK01D'
set_var_text_label s$mobile_print_labels[4] = 'MSMK01E'
set_var_text_label s$mobile_print_labels[5] = 'MSMK01F'
set_var_text_label s$mobile_print_labels[6] = 'MSMK01G'
set_var_text_label s$mobile_print_labels[7] = 'MSMK01H'
set_var_text_label s$mobile_print_labels[8] = 'MSMK01J'
set_var_text_label s$mobile_print_labels[9] = 'MSMK01K'
set_var_text_label s$mobile_print_labels[10] = 'MSMK01L'
set_var_text_label s$mobile_print_labels[11] = 'MSMK01M'
set_var_int_to_constant $mobile_audio_labels[0] = 16800
set_var_int_to_constant $mobile_audio_labels[1] = 16801
set_var_int_to_constant $mobile_audio_labels[2] = 16807
set_var_int_to_constant $mobile_audio_labels[3] = 16802
set_var_int_to_constant $mobile_audio_labels[4] = 16808
set_var_int_to_constant $mobile_audio_labels[5] = 16803
set_var_int_to_constant $mobile_audio_labels[6] = 16809
set_var_int_to_constant $mobile_audio_labels[7] = 16804
set_var_int_to_constant $mobile_audio_labels[8] = 16805
set_var_int_to_constant $mobile_audio_labels[9] = 16810
set_var_int_to_constant $mobile_audio_labels[10] = 16806
set_var_int_to_constant $mobile_audio_labels[11] = 16811
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_6070
set_var_text_label s$mobile_print_labels[0] = 'MTRU01A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU01B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU01C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU01D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU01E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU01F'
set_var_text_label s$mobile_print_labels[6] = 'MTRU01G'
set_var_text_label s$mobile_print_labels[7] = 'MTRU01H'
set_var_text_label s$mobile_print_labels[8] = 'MTRU01J'
set_var_text_label s$mobile_print_labels[9] = 'MTRU01K'
set_var_text_label s$mobile_print_labels[10] = 'MTRU01L'
set_var_text_label s$mobile_print_labels[11] = 'MTRU01M'
set_var_text_label s$mobile_print_labels[12] = 'MTRU01N'
set_var_text_label s$mobile_print_labels[13] = 'MTRU01O'
set_var_text_label s$mobile_print_labels[14] = 'MTRU01P'
set_var_int_to_constant $mobile_audio_labels[0] = 7216
set_var_int_to_constant $mobile_audio_labels[1] = 7200
set_var_int_to_constant $mobile_audio_labels[2] = 7217
set_var_int_to_constant $mobile_audio_labels[3] = 7201
set_var_int_to_constant $mobile_audio_labels[4] = 7218
set_var_int_to_constant $mobile_audio_labels[5] = 7202
set_var_int_to_constant $mobile_audio_labels[6] = 7219
set_var_int_to_constant $mobile_audio_labels[7] = 7203
set_var_int_to_constant $mobile_audio_labels[8] = 7220
set_var_int_to_constant $mobile_audio_labels[9] = 7204
set_var_int_to_constant $mobile_audio_labels[10] = 7221
set_var_int_to_constant $mobile_audio_labels[11] = 7205
set_var_int_to_constant $mobile_audio_labels[12] = 7222
set_var_int_to_constant $mobile_audio_labels[13] = 7206
set_var_int_to_constant $mobile_audio_labels[14] = 7207
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_6414
set_var_text_label s$mobile_print_labels[0] = 'MTRU02A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU02B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU02C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU02D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU02E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU02F'
set_var_int_to_constant $mobile_audio_labels[0] = 7223
set_var_int_to_constant $mobile_audio_labels[1] = 7208
set_var_int_to_constant $mobile_audio_labels[2] = 7209
set_var_int_to_constant $mobile_audio_labels[3] = 7210
set_var_int_to_constant $mobile_audio_labels[4] = 7211
set_var_int_to_constant $mobile_audio_labels[5] = 7212
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_6560
set_var_text_label s$mobile_print_labels[0] = 'MTRU03A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU03B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU03C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU03D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU03E'
set_var_int_to_constant $mobile_audio_labels[0] = 7224
set_var_int_to_constant $mobile_audio_labels[1] = 7213
set_var_int_to_constant $mobile_audio_labels[2] = 7214
set_var_int_to_constant $mobile_audio_labels[3] = 7225
set_var_int_to_constant $mobile_audio_labels[4] = 7215
$cell_index_end = 4
goto @CELLFON_13304

:CELLFON_6684
set_var_text_label s$mobile_print_labels[0] = 'MWUZ00A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ00B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ00C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ00D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ00E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ00F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ00G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ00H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ00J'
set_var_int_to_constant $mobile_audio_labels[0] = 12040
set_var_int_to_constant $mobile_audio_labels[1] = 12000
set_var_int_to_constant $mobile_audio_labels[2] = 12001
set_var_int_to_constant $mobile_audio_labels[3] = 12041
set_var_int_to_constant $mobile_audio_labels[4] = 12002
set_var_int_to_constant $mobile_audio_labels[5] = 12003
set_var_int_to_constant $mobile_audio_labels[6] = 12004
set_var_int_to_constant $mobile_audio_labels[7] = 12042
set_var_int_to_constant $mobile_audio_labels[8] = 12043
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_6896
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ03C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ03D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ03E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ03F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ03G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ03H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ03J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ03K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ03L'
set_var_int_to_constant $mobile_audio_labels[0] = 12048
set_var_int_to_constant $mobile_audio_labels[1] = 12016
set_var_int_to_constant $mobile_audio_labels[2] = 12049
set_var_int_to_constant $mobile_audio_labels[3] = 12017
set_var_int_to_constant $mobile_audio_labels[4] = 12018
set_var_int_to_constant $mobile_audio_labels[5] = 12019
set_var_int_to_constant $mobile_audio_labels[6] = 12050
set_var_int_to_constant $mobile_audio_labels[7] = 12020
set_var_int_to_constant $mobile_audio_labels[8] = 12021
set_var_int_to_constant $mobile_audio_labels[9] = 12022
set_var_int_to_constant $mobile_audio_labels[10] = 12051
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_7152
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ05B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ05C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ05D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ05E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ05F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ05G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ05H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ05J'
set_var_int_to_constant $mobile_audio_labels[0] = 12016
set_var_int_to_constant $mobile_audio_labels[1] = 12077
set_var_int_to_constant $mobile_audio_labels[2] = 12028
set_var_int_to_constant $mobile_audio_labels[3] = 12056
set_var_int_to_constant $mobile_audio_labels[4] = 12029
set_var_int_to_constant $mobile_audio_labels[5] = 12030
set_var_int_to_constant $mobile_audio_labels[6] = 12057
set_var_int_to_constant $mobile_audio_labels[7] = 12031
set_var_int_to_constant $mobile_audio_labels[8] = 12058
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_7364
set_var_text_label s$mobile_print_labels[0] = 'MWUZ07A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ07B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ07C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ07D'
set_var_int_to_constant $mobile_audio_labels[0] = 12037
set_var_int_to_constant $mobile_audio_labels[1] = 12038
set_var_int_to_constant $mobile_audio_labels[2] = 12039
set_var_int_to_constant $mobile_audio_labels[3] = 12067
$cell_index_end = 3
goto @CELLFON_13304

:CELLFON_7466
set_var_text_label s$mobile_print_labels[0] = 'MWUZ04A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ04B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ04C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ04D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ04E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ04F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ04G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ04H'
set_var_int_to_constant $mobile_audio_labels[0] = 12052
set_var_int_to_constant $mobile_audio_labels[1] = 12023
set_var_int_to_constant $mobile_audio_labels[2] = 12024
set_var_int_to_constant $mobile_audio_labels[3] = 12053
set_var_int_to_constant $mobile_audio_labels[4] = 12054
set_var_int_to_constant $mobile_audio_labels[5] = 12055
set_var_int_to_constant $mobile_audio_labels[6] = 12025
set_var_int_to_constant $mobile_audio_labels[7] = 12026
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_7656
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ09E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ09F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ09H'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ09J'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[13] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[14] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 12059
set_var_int_to_constant $mobile_audio_labels[1] = 12032
set_var_int_to_constant $mobile_audio_labels[2] = 12060
set_var_int_to_constant $mobile_audio_labels[3] = 12033
set_var_int_to_constant $mobile_audio_labels[4] = 12073
set_var_int_to_constant $mobile_audio_labels[5] = 12074
set_var_int_to_constant $mobile_audio_labels[6] = 12034
set_var_int_to_constant $mobile_audio_labels[7] = 12063
set_var_int_to_constant $mobile_audio_labels[8] = 12064
set_var_int_to_constant $mobile_audio_labels[9] = 12075
set_var_int_to_constant $mobile_audio_labels[10] = 12076
set_var_int_to_constant $mobile_audio_labels[11] = 12035
set_var_int_to_constant $mobile_audio_labels[12] = 12036
set_var_int_to_constant $mobile_audio_labels[13] = 12065
set_var_int_to_constant $mobile_audio_labels[14] = 12066
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_8000
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ06E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ06F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 12059
set_var_int_to_constant $mobile_audio_labels[1] = 12032
set_var_int_to_constant $mobile_audio_labels[2] = 12060
set_var_int_to_constant $mobile_audio_labels[3] = 12033
set_var_int_to_constant $mobile_audio_labels[4] = 12061
set_var_int_to_constant $mobile_audio_labels[5] = 12062
set_var_int_to_constant $mobile_audio_labels[6] = 12034
set_var_int_to_constant $mobile_audio_labels[7] = 12063
set_var_int_to_constant $mobile_audio_labels[8] = 12064
set_var_int_to_constant $mobile_audio_labels[9] = 12035
set_var_int_to_constant $mobile_audio_labels[10] = 12036
set_var_int_to_constant $mobile_audio_labels[11] = 12065
set_var_int_to_constant $mobile_audio_labels[12] = 12066
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_8300
set_var_text_label s$mobile_print_labels[0] = 'MTOR01A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR01B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR01C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR01D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR01E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR01F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR01G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR01H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR01J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR01K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR01L'
set_var_int_to_constant $mobile_audio_labels[0] = 4859
set_var_int_to_constant $mobile_audio_labels[1] = 4800
set_var_int_to_constant $mobile_audio_labels[2] = 4801
set_var_int_to_constant $mobile_audio_labels[3] = 4802
set_var_int_to_constant $mobile_audio_labels[4] = 4803
set_var_int_to_constant $mobile_audio_labels[5] = 4860
set_var_int_to_constant $mobile_audio_labels[6] = 4804
set_var_int_to_constant $mobile_audio_labels[7] = 4861
set_var_int_to_constant $mobile_audio_labels[8] = 4805
set_var_int_to_constant $mobile_audio_labels[9] = 4806
set_var_int_to_constant $mobile_audio_labels[10] = 4807
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_8556
set_var_text_label s$mobile_print_labels[0] = 'MTOR02A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR02B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR02C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR02D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR02E'
set_var_int_to_constant $mobile_audio_labels[0] = 4862
set_var_int_to_constant $mobile_audio_labels[1] = 4808
set_var_int_to_constant $mobile_audio_labels[2] = 4809
set_var_int_to_constant $mobile_audio_labels[3] = 4863
set_var_int_to_constant $mobile_audio_labels[4] = 4864
$cell_index_end = 4
goto @CELLFON_13304

:CELLFON_8680
set_var_text_label s$mobile_print_labels[0] = 'MTOR03A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR03B'
set_var_int_to_constant $mobile_audio_labels[0] = 4810
set_var_int_to_constant $mobile_audio_labels[1] = 4865
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_8738
set_var_text_label s$mobile_print_labels[0] = 'MTOR05A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR05B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR05C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR05D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR05E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR05F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR05G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR05H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR05J'
set_var_int_to_constant $mobile_audio_labels[0] = 4844
set_var_int_to_constant $mobile_audio_labels[1] = 4819
set_var_int_to_constant $mobile_audio_labels[2] = 4845
set_var_int_to_constant $mobile_audio_labels[3] = 4820
set_var_int_to_constant $mobile_audio_labels[4] = 4846
set_var_int_to_constant $mobile_audio_labels[5] = 4821
set_var_int_to_constant $mobile_audio_labels[6] = 4822
set_var_int_to_constant $mobile_audio_labels[7] = 4847
set_var_int_to_constant $mobile_audio_labels[8] = 4823
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_8950
set_var_text_label s$mobile_print_labels[0] = 'MTOR06A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR06B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR06C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR06D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR06E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR06F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR06G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR06H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR06J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR06K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR06L'
set_var_text_label s$mobile_print_labels[11] = 'MTOR06M'
set_var_int_to_constant $mobile_audio_labels[0] = 4848
set_var_int_to_constant $mobile_audio_labels[1] = 4824
set_var_int_to_constant $mobile_audio_labels[2] = 4825
set_var_int_to_constant $mobile_audio_labels[3] = 4849
set_var_int_to_constant $mobile_audio_labels[4] = 4826
set_var_int_to_constant $mobile_audio_labels[5] = 4827
set_var_int_to_constant $mobile_audio_labels[6] = 4828
set_var_int_to_constant $mobile_audio_labels[7] = 4829
set_var_int_to_constant $mobile_audio_labels[8] = 4830
set_var_int_to_constant $mobile_audio_labels[9] = 4850
set_var_int_to_constant $mobile_audio_labels[10] = 4851
set_var_int_to_constant $mobile_audio_labels[11] = 4852
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_9228
set_var_text_label s$mobile_print_labels[0] = 'MTOR07A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR07B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR07C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR07D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR07E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR07L'
set_var_text_label s$mobile_print_labels[6] = 'MTOR07M'
set_var_text_label s$mobile_print_labels[7] = 'MTOR07F'
set_var_text_label s$mobile_print_labels[8] = 'MTOR07G'
set_var_text_label s$mobile_print_labels[9] = 'MTOR07N'
set_var_text_label s$mobile_print_labels[10] = 'MTOR07O'
set_var_text_label s$mobile_print_labels[11] = 'MTOR07H'
set_var_text_label s$mobile_print_labels[12] = 'MTOR07J'
set_var_text_label s$mobile_print_labels[13] = 'MTOR07K'
set_var_int_to_constant $mobile_audio_labels[0] = 4854
set_var_int_to_constant $mobile_audio_labels[1] = 4831
set_var_int_to_constant $mobile_audio_labels[2] = 4855
set_var_int_to_constant $mobile_audio_labels[3] = 4832
set_var_int_to_constant $mobile_audio_labels[4] = 4833
set_var_int_to_constant $mobile_audio_labels[5] = 4836
set_var_int_to_constant $mobile_audio_labels[6] = 4837
set_var_int_to_constant $mobile_audio_labels[7] = 4856
set_var_int_to_constant $mobile_audio_labels[8] = 4834
set_var_int_to_constant $mobile_audio_labels[9] = 4838
set_var_int_to_constant $mobile_audio_labels[10] = 4839
set_var_int_to_constant $mobile_audio_labels[11] = 4857
set_var_int_to_constant $mobile_audio_labels[12] = 4835
set_var_int_to_constant $mobile_audio_labels[13] = 4858
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_9550
set_var_text_label s$mobile_print_labels[0] = 'MKP01A'
set_var_text_label s$mobile_print_labels[1] = 'MKP01B'
set_var_text_label s$mobile_print_labels[2] = 'MKP01C'
set_var_text_label s$mobile_print_labels[3] = 'MKP01D'
set_var_text_label s$mobile_print_labels[4] = 'MKP01E'
set_var_text_label s$mobile_print_labels[5] = 'MKP01F'
set_var_int_to_constant $mobile_audio_labels[0] = 16204
set_var_int_to_constant $mobile_audio_labels[1] = 16200
set_var_int_to_constant $mobile_audio_labels[2] = 16201
set_var_int_to_constant $mobile_audio_labels[3] = 16202
set_var_int_to_constant $mobile_audio_labels[4] = 16203
set_var_int_to_constant $mobile_audio_labels[5] = 16205
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_9696
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MROS01B'
set_var_text_label s$mobile_print_labels[2] = 'MROS01D'
set_var_text_label s$mobile_print_labels[3] = 'MROS01F'
set_var_text_label s$mobile_print_labels[4] = 'MROS01H'
set_var_text_label s$mobile_print_labels[5] = 'MROS01L'
set_var_int_to_constant $mobile_audio_labels[0] = 19600
set_var_int_to_constant $mobile_audio_labels[1] = 7000
set_var_int_to_constant $mobile_audio_labels[2] = 7001
set_var_int_to_constant $mobile_audio_labels[3] = 7003
set_var_int_to_constant $mobile_audio_labels[4] = 7004
set_var_int_to_constant $mobile_audio_labels[5] = 7005
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_9842
set_var_text_label s$mobile_print_labels[0] = 'MROS02A'
set_var_text_label s$mobile_print_labels[1] = 'MROS02B'
set_var_text_label s$mobile_print_labels[2] = 'MROS02C'
set_var_text_label s$mobile_print_labels[3] = 'MROS02D'
set_var_text_label s$mobile_print_labels[4] = 'MROS02E'
set_var_text_label s$mobile_print_labels[5] = 'MROS02F'
set_var_text_label s$mobile_print_labels[6] = 'MROS02G'
set_var_int_to_constant $mobile_audio_labels[0] = 7025
set_var_int_to_constant $mobile_audio_labels[1] = 7006
set_var_int_to_constant $mobile_audio_labels[2] = 7026
set_var_int_to_constant $mobile_audio_labels[3] = 7007
set_var_int_to_constant $mobile_audio_labels[4] = 7008
set_var_int_to_constant $mobile_audio_labels[5] = 7027
set_var_int_to_constant $mobile_audio_labels[6] = 7009
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_10010
set_var_text_label s$mobile_print_labels[0] = 'MROS03A'
set_var_text_label s$mobile_print_labels[1] = 'MROS03B'
set_var_text_label s$mobile_print_labels[2] = 'MROS03C'
set_var_text_label s$mobile_print_labels[3] = 'MROS03D'
set_var_text_label s$mobile_print_labels[4] = 'MROS03E'
set_var_text_label s$mobile_print_labels[5] = 'MROS03F'
set_var_text_label s$mobile_print_labels[6] = 'MROS03G'
set_var_text_label s$mobile_print_labels[7] = 'MROS03H'
set_var_text_label s$mobile_print_labels[8] = 'MROS03J'
set_var_text_label s$mobile_print_labels[9] = 'MROS03K'
set_var_text_label s$mobile_print_labels[10] = 'MROS03L'
set_var_text_label s$mobile_print_labels[11] = 'MROS03N'
set_var_text_label s$mobile_print_labels[12] = 'MROS03O'
set_var_text_label s$mobile_print_labels[13] = 'MROS03P'
set_var_int_to_constant $mobile_audio_labels[0] = 7018
set_var_int_to_constant $mobile_audio_labels[1] = 7010
set_var_int_to_constant $mobile_audio_labels[2] = 7019
set_var_int_to_constant $mobile_audio_labels[3] = 7011
set_var_int_to_constant $mobile_audio_labels[4] = 7012
set_var_int_to_constant $mobile_audio_labels[5] = 7013
set_var_int_to_constant $mobile_audio_labels[6] = 7020
set_var_int_to_constant $mobile_audio_labels[7] = 7021
set_var_int_to_constant $mobile_audio_labels[8] = 7014
set_var_int_to_constant $mobile_audio_labels[9] = 7015
set_var_int_to_constant $mobile_audio_labels[10] = 7016
set_var_int_to_constant $mobile_audio_labels[11] = 7022
set_var_int_to_constant $mobile_audio_labels[12] = 7023
set_var_int_to_constant $mobile_audio_labels[13] = 7017
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_10332
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL01B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL01C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL01D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL01E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL01F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL01G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL01H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL01J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL01K'
set_var_text_label s$mobile_print_labels[10] = 'MSAL01M'
set_var_text_label s$mobile_print_labels[11] = 'MSAL01N'
set_var_text_label s$mobile_print_labels[12] = 'MSAL01O'
set_var_int_to_constant $mobile_audio_labels[0] = 19600
set_var_int_to_constant $mobile_audio_labels[1] = 19612
set_var_int_to_constant $mobile_audio_labels[2] = 19601
set_var_int_to_constant $mobile_audio_labels[3] = 19613
set_var_int_to_constant $mobile_audio_labels[4] = 19602
set_var_int_to_constant $mobile_audio_labels[5] = 19614
set_var_int_to_constant $mobile_audio_labels[6] = 19603
set_var_int_to_constant $mobile_audio_labels[7] = 19604
set_var_int_to_constant $mobile_audio_labels[8] = 19615
set_var_int_to_constant $mobile_audio_labels[9] = 19616
set_var_int_to_constant $mobile_audio_labels[10] = 19617
set_var_int_to_constant $mobile_audio_labels[11] = 19622
set_var_int_to_constant $mobile_audio_labels[12] = 19605
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_10632
set_var_text_label s$mobile_print_labels[0] = 'MSAL02A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL02B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL02C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL02D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL02E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL02F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL02G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL02H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL02J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL02K'
set_var_int_to_constant $mobile_audio_labels[0] = 19606
set_var_int_to_constant $mobile_audio_labels[1] = 19618
set_var_int_to_constant $mobile_audio_labels[2] = 19607
set_var_int_to_constant $mobile_audio_labels[3] = 19608
set_var_int_to_constant $mobile_audio_labels[4] = 19619
set_var_int_to_constant $mobile_audio_labels[5] = 19620
set_var_int_to_constant $mobile_audio_labels[6] = 19609
set_var_int_to_constant $mobile_audio_labels[7] = 19610
set_var_int_to_constant $mobile_audio_labels[8] = 19611
set_var_int_to_constant $mobile_audio_labels[9] = 19621
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_10866
set_var_text_label s$mobile_print_labels[0] = 'MMILL2A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL2B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL2C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL2D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL2E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL2F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL2H'
set_var_text_label s$mobile_print_labels[7] = 'MMILL2J'
set_var_text_label s$mobile_print_labels[8] = 'MMILL2K'
set_var_text_label s$mobile_print_labels[9] = 'MMILL2L'
set_var_int_to_constant $mobile_audio_labels[0] = 43425
set_var_int_to_constant $mobile_audio_labels[1] = 43406
set_var_int_to_constant $mobile_audio_labels[2] = 43426
set_var_int_to_constant $mobile_audio_labels[3] = 43407
set_var_int_to_constant $mobile_audio_labels[4] = 43408
set_var_int_to_constant $mobile_audio_labels[5] = 43409
set_var_int_to_constant $mobile_audio_labels[6] = 43427
set_var_int_to_constant $mobile_audio_labels[7] = 43411
set_var_int_to_constant $mobile_audio_labels[8] = 43428
set_var_int_to_constant $mobile_audio_labels[9] = 43412
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_11120
set_var_text_label s$mobile_print_labels[0] = 'MZER01A'
set_var_text_label s$mobile_print_labels[1] = 'MZER01B'
set_var_text_label s$mobile_print_labels[2] = 'MZER01C'
set_var_text_label s$mobile_print_labels[3] = 'MZER01D'
set_var_text_label s$mobile_print_labels[4] = 'MZER01E'
set_var_text_label s$mobile_print_labels[5] = 'MZER01F'
set_var_text_label s$mobile_print_labels[6] = 'MZER01G'
set_var_int_to_constant $mobile_audio_labels[0] = 20200
set_var_int_to_constant $mobile_audio_labels[1] = 20210
set_var_int_to_constant $mobile_audio_labels[2] = 20201
set_var_int_to_constant $mobile_audio_labels[3] = 20211
set_var_int_to_constant $mobile_audio_labels[4] = 20212
set_var_int_to_constant $mobile_audio_labels[5] = 20202
set_var_int_to_constant $mobile_audio_labels[6] = 20203
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_11288
set_var_text_label s$mobile_print_labels[0] = 'MZER02A'
set_var_text_label s$mobile_print_labels[1] = 'MZER02B'
set_var_text_label s$mobile_print_labels[2] = 'MZER02C'
set_var_text_label s$mobile_print_labels[3] = 'MZER02D'
set_var_text_label s$mobile_print_labels[4] = 'MZER02E'
set_var_text_label s$mobile_print_labels[5] = 'MZER02F'
set_var_text_label s$mobile_print_labels[6] = 'MZER02G'
set_var_text_label s$mobile_print_labels[7] = 'MZER02H'
set_var_text_label s$mobile_print_labels[8] = 'MZER02J'
set_var_text_label s$mobile_print_labels[9] = 'MZER02K'
set_var_int_to_constant $mobile_audio_labels[0] = 20204
set_var_int_to_constant $mobile_audio_labels[1] = 20213
set_var_int_to_constant $mobile_audio_labels[2] = 20205
set_var_int_to_constant $mobile_audio_labels[3] = 20214
set_var_int_to_constant $mobile_audio_labels[4] = 20206
set_var_int_to_constant $mobile_audio_labels[5] = 20207
set_var_int_to_constant $mobile_audio_labels[6] = 20215
set_var_int_to_constant $mobile_audio_labels[7] = 20216
set_var_int_to_constant $mobile_audio_labels[8] = 20208
set_var_int_to_constant $mobile_audio_labels[9] = 20209
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_11522
set_var_text_label s$mobile_print_labels[0] = 'MJET_1A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_1B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_1C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_1D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_1E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_1F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_1G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_1H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_1J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_1K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_1L'
set_var_text_label s$mobile_print_labels[11] = 'MJET_1M'
set_var_text_label s$mobile_print_labels[12] = 'MJET_1N'
set_var_text_label s$mobile_print_labels[13] = 'MJET_1O'
set_var_text_label s$mobile_print_labels[14] = 'MJET_1P'
set_var_int_to_constant $mobile_audio_labels[0] = 15823
set_var_int_to_constant $mobile_audio_labels[1] = 15800
set_var_int_to_constant $mobile_audio_labels[2] = 15824
set_var_int_to_constant $mobile_audio_labels[3] = 15801
set_var_int_to_constant $mobile_audio_labels[4] = 15802
set_var_int_to_constant $mobile_audio_labels[5] = 15803
set_var_int_to_constant $mobile_audio_labels[6] = 15804
set_var_int_to_constant $mobile_audio_labels[7] = 15825
set_var_int_to_constant $mobile_audio_labels[8] = 15805
set_var_int_to_constant $mobile_audio_labels[9] = 15806
set_var_int_to_constant $mobile_audio_labels[10] = 15807
set_var_int_to_constant $mobile_audio_labels[11] = 15826
set_var_int_to_constant $mobile_audio_labels[12] = 15808
set_var_int_to_constant $mobile_audio_labels[13] = 15809
set_var_int_to_constant $mobile_audio_labels[14] = 15810
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_11866
set_var_text_label s$mobile_print_labels[0] = 'MJET_2A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_2B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_2C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_2D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_2E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_2F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_2G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_2H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_2J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_2K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_2L'
set_var_int_to_constant $mobile_audio_labels[0] = 15811
set_var_int_to_constant $mobile_audio_labels[1] = 15827
set_var_int_to_constant $mobile_audio_labels[2] = 15812
set_var_int_to_constant $mobile_audio_labels[3] = 15813
set_var_int_to_constant $mobile_audio_labels[4] = 15814
set_var_int_to_constant $mobile_audio_labels[5] = 15828
set_var_int_to_constant $mobile_audio_labels[6] = 15815
set_var_int_to_constant $mobile_audio_labels[7] = 15816
set_var_int_to_constant $mobile_audio_labels[8] = 15817
set_var_int_to_constant $mobile_audio_labels[9] = 15829
set_var_int_to_constant $mobile_audio_labels[10] = 15830
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_12122
set_var_text_label s$mobile_print_labels[0] = 'MJET_3A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_3B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_3C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_3D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_3E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_3F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_3G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_3H'
set_var_int_to_constant $mobile_audio_labels[0] = 15831
set_var_int_to_constant $mobile_audio_labels[1] = 15818
set_var_int_to_constant $mobile_audio_labels[2] = 15819
set_var_int_to_constant $mobile_audio_labels[3] = 15820
set_var_int_to_constant $mobile_audio_labels[4] = 15821
set_var_int_to_constant $mobile_audio_labels[5] = 15822
set_var_int_to_constant $mobile_audio_labels[6] = 15832
set_var_int_to_constant $mobile_audio_labels[7] = 15833
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_12312
set_var_text_label s$mobile_print_labels[0] = 'SHRK_1A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_1B'
set_var_int_to_constant $mobile_audio_labels[0] = 43814
set_var_int_to_constant $mobile_audio_labels[1] = 43815
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12374
set_var_text_label s$mobile_print_labels[0] = 'SHRK_2A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 43816
set_var_int_to_constant $mobile_audio_labels[1] = 43817
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12436
set_var_text_label s$mobile_print_labels[0] = 'SHRK_3A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43818
set_var_int_to_constant $mobile_audio_labels[1] = 43819
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12498
set_var_text_label s$mobile_print_labels[0] = 'SHRK_4A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 43820
set_var_int_to_constant $mobile_audio_labels[1] = 43821
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12560
set_var_text_label s$mobile_print_labels[0] = 'SHRK_5A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 43822
set_var_int_to_constant $mobile_audio_labels[1] = 43823
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12622
set_var_text_label s$mobile_print_labels[0] = 'SHRK_6A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 43824
set_var_int_to_constant $mobile_audio_labels[1] = 43825
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12684
set_var_text_label s$mobile_print_labels[0] = 'SHRK_7A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_7B'
set_var_int_to_constant $mobile_audio_labels[0] = 43826
set_var_int_to_constant $mobile_audio_labels[1] = 43827
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12746
set_var_text_label s$mobile_print_labels[0] = 'SHRK_8A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_8B'
set_var_int_to_constant $mobile_audio_labels[0] = 43828
set_var_int_to_constant $mobile_audio_labels[1] = 43829
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12808
set_var_text_label s$mobile_print_labels[0] = 'SHRK_9A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_9B'
set_var_int_to_constant $mobile_audio_labels[0] = 43830
set_var_int_to_constant $mobile_audio_labels[1] = 43831
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12870
set_var_text_label s$mobile_print_labels[0] = 'SHRK10A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK10B'
set_var_int_to_constant $mobile_audio_labels[0] = 43800
set_var_int_to_constant $mobile_audio_labels[1] = 43801
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12932
set_var_text_label s$mobile_print_labels[0] = 'SHRK11A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK11B'
set_var_int_to_constant $mobile_audio_labels[0] = 43802
set_var_int_to_constant $mobile_audio_labels[1] = 43803
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12994
set_var_text_label s$mobile_print_labels[0] = 'SHRK12A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK12B'
set_var_int_to_constant $mobile_audio_labels[0] = 43804
set_var_int_to_constant $mobile_audio_labels[1] = 43805
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13056
set_var_text_label s$mobile_print_labels[0] = 'SHRK13A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK13B'
set_var_int_to_constant $mobile_audio_labels[0] = 43806
set_var_int_to_constant $mobile_audio_labels[1] = 43807
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13118
set_var_text_label s$mobile_print_labels[0] = 'SHRK14A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK14B'
set_var_int_to_constant $mobile_audio_labels[0] = 43808
set_var_int_to_constant $mobile_audio_labels[1] = 43809
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13180
set_var_text_label s$mobile_print_labels[0] = 'SHRK15A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK15B'
set_var_int_to_constant $mobile_audio_labels[0] = 43810
set_var_int_to_constant $mobile_audio_labels[1] = 43811
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13242
set_var_text_label s$mobile_print_labels[0] = 'SHRK16A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK16B'
set_var_int_to_constant $mobile_audio_labels[0] = 43812
set_var_int_to_constant $mobile_audio_labels[1] = 43813
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13304
goto @CELLFON_18362

:CELLFON_13311
switch_start $call_number {numCases} 54 {hasDefaultCase} 0 {defaultLabel} @CELLFON_18362 {caseNum1} 70 {caseLabel1} @CELLFON_13770 {caseNum2} 71 {caseLabel2} @CELLFON_13832 {caseNum3} 72 {caseLabel3} @CELLFON_13894 {caseNum4} 73 {caseLabel4} @CELLFON_13956 {caseNum5} 74 {caseLabel5} @CELLFON_14018 {caseNum6} 75 {caseLabel6} @CELLFON_14080 {caseNum7} 76 {caseLabel7} @CELLFON_14142
switch_continued 77 {caseLabel1} @CELLFON_14204 {caseNum2} 80 {caseLabel2} @CELLFON_14544 {caseNum3} 81 {caseLabel3} @CELLFON_14606 {caseNum4} 82 {caseLabel4} @CELLFON_14668 {caseNum5} 83 {caseLabel5} @CELLFON_14730 {caseNum6} 84 {caseLabel6} @CELLFON_14792 {caseNum7} 85 {caseLabel7} @CELLFON_14854 {caseNum8} 86 {caseLabel8} @CELLFON_14916 {caseNum9} 87 {caseLabel9} @CELLFON_14978
switch_continued 90 {caseLabel1} @CELLFON_15270 {caseNum2} 91 {caseLabel2} @CELLFON_15328 {caseNum3} 92 {caseLabel3} @CELLFON_15386 {caseNum4} 93 {caseLabel4} @CELLFON_15444 {caseNum5} 94 {caseLabel5} @CELLFON_15502 {caseNum6} 95 {caseLabel6} @CELLFON_15560 {caseNum7} 96 {caseLabel7} @CELLFON_15618 {caseNum8} 97 {caseLabel8} @CELLFON_15676 {caseNum9} 100 {caseLabel9} @CELLFON_15968
switch_continued 101 {caseLabel1} @CELLFON_16030 {caseNum2} 102 {caseLabel2} @CELLFON_16092 {caseNum3} 103 {caseLabel3} @CELLFON_16154 {caseNum4} 104 {caseLabel4} @CELLFON_16216 {caseNum5} 105 {caseLabel5} @CELLFON_16278 {caseNum6} 106 {caseLabel6} @CELLFON_16340 {caseNum7} 107 {caseLabel7} @CELLFON_16402 {caseNum8} 110 {caseLabel8} @CELLFON_16886 {caseNum9} 111 {caseLabel9} @CELLFON_16948
switch_continued 112 {caseLabel1} @CELLFON_17010 {caseNum2} 113 {caseLabel2} @CELLFON_17072 {caseNum3} 114 {caseLabel3} @CELLFON_17134 {caseNum4} 115 {caseLabel4} @CELLFON_17196 {caseNum5} 116 {caseLabel5} @CELLFON_17258 {caseNum6} 117 {caseLabel6} @CELLFON_17320 {caseNum7} 120 {caseLabel7} @CELLFON_17612 {caseNum8} 121 {caseLabel8} @CELLFON_17674 {caseNum9} 122 {caseLabel9} @CELLFON_17736
switch_continued 123 {caseLabel1} @CELLFON_17798 {caseNum2} 124 {caseLabel2} @CELLFON_17860 {caseNum3} 125 {caseLabel3} @CELLFON_17922 {caseNum4} 126 {caseLabel4} @CELLFON_17984 {caseNum5} 127 {caseLabel5} @CELLFON_18046 {caseNum6} 130 {caseLabel6} @CELLFON_14266 {caseNum7} 131 {caseLabel7} @CELLFON_15040 {caseNum8} 132 {caseLabel8} @CELLFON_15734 {caseNum9} 133 {caseLabel9} @CELLFON_16464
switch_continued 134 {caseLabel1} @CELLFON_17382 {caseNum2} 135 {caseLabel2} @CELLFON_18108 {caseNum3} -1 {caseLabel3} @CELLFON_18362 {caseNum4} -1 {caseLabel4} @CELLFON_18362 {caseNum5} -1 {caseLabel5} @CELLFON_18362 {caseNum6} -1 {caseLabel6} @CELLFON_18362 {caseNum7} -1 {caseLabel7} @CELLFON_18362 {caseNum8} -1 {caseLabel8} @CELLFON_18362 {caseNum9} -1 {caseLabel9} @CELLFON_18362

:CELLFON_13770
set_var_text_label s$mobile_print_labels[0] = 'MDEN_2A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_2D'
set_var_int_to_constant $mobile_audio_labels[0] = 39007
set_var_int_to_constant $mobile_audio_labels[1] = 39016
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13832
set_var_text_label s$mobile_print_labels[0] = 'MDEN_3A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39008
set_var_int_to_constant $mobile_audio_labels[1] = 39017
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13894
set_var_text_label s$mobile_print_labels[0] = 'MDEN_4A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39009
set_var_int_to_constant $mobile_audio_labels[1] = 39018
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13956
set_var_text_label s$mobile_print_labels[0] = 'MDEN_5A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 39010
set_var_int_to_constant $mobile_audio_labels[1] = 39019
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14018
set_var_text_label s$mobile_print_labels[0] = 'MDEN_6A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 39011
set_var_int_to_constant $mobile_audio_labels[1] = 39020
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14080
set_var_text_label s$mobile_print_labels[0] = 'MDEN_7D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39021
set_var_int_to_constant $mobile_audio_labels[1] = 39018
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14142
set_var_text_label s$mobile_print_labels[0] = 'MDEN_8D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 39022
set_var_int_to_constant $mobile_audio_labels[1] = 39020
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14204
set_var_text_label s$mobile_print_labels[0] = 'MDEN_9D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 39023
set_var_int_to_constant $mobile_audio_labels[1] = 39019
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14266
set_var_text_label s$mobile_print_labels[0] = 'MDEN_1A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_1B'
set_var_text_label s$mobile_print_labels[2] = 'MDEN_1C'
set_var_text_label s$mobile_print_labels[3] = 'MDEN_1D'
set_var_text_label s$mobile_print_labels[4] = 'MDEN_1E'
set_var_text_label s$mobile_print_labels[5] = 'MDEN_1F'
set_var_text_label s$mobile_print_labels[6] = 'MDEN_1G'
set_var_text_label s$mobile_print_labels[7] = 'MDEN_1H'
set_var_text_label s$mobile_print_labels[8] = 'MDEN_1J'
set_var_text_label s$mobile_print_labels[9] = 'MDEN_1K'
set_var_text_label s$mobile_print_labels[10] = 'MDEN_1L'
set_var_int_to_constant $mobile_audio_labels[0] = 39012
set_var_int_to_constant $mobile_audio_labels[1] = 39000
set_var_int_to_constant $mobile_audio_labels[2] = 39013
set_var_int_to_constant $mobile_audio_labels[3] = 39001
set_var_int_to_constant $mobile_audio_labels[4] = 39014
set_var_int_to_constant $mobile_audio_labels[5] = 39002
set_var_int_to_constant $mobile_audio_labels[6] = 39003
set_var_int_to_constant $mobile_audio_labels[7] = 39004
set_var_int_to_constant $mobile_audio_labels[8] = 39005
set_var_int_to_constant $mobile_audio_labels[9] = 39015
set_var_int_to_constant $mobile_audio_labels[10] = 39006
$cell_index_end = 10
goto @CELLFON_18362

:CELLFON_14544
set_var_text_label s$mobile_print_labels[0] = 'MMICH2A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH2B'
set_var_int_to_constant $mobile_audio_labels[0] = 45214
set_var_int_to_constant $mobile_audio_labels[1] = 45204
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14606
set_var_text_label s$mobile_print_labels[0] = 'MMICH3A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 45215
set_var_int_to_constant $mobile_audio_labels[1] = 45205
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14668
set_var_text_label s$mobile_print_labels[0] = 'MMICH4A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 45216
set_var_int_to_constant $mobile_audio_labels[1] = 45206
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14730
set_var_text_label s$mobile_print_labels[0] = 'MMICH5A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 45217
set_var_int_to_constant $mobile_audio_labels[1] = 45207
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14792
set_var_text_label s$mobile_print_labels[0] = 'MMICH6A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH6D'
set_var_int_to_constant $mobile_audio_labels[0] = 45218
set_var_int_to_constant $mobile_audio_labels[1] = 45208
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14854
set_var_text_label s$mobile_print_labels[0] = 'MMICH7D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 45219
set_var_int_to_constant $mobile_audio_labels[1] = 45205
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14916
set_var_text_label s$mobile_print_labels[0] = 'MMICH8D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 45220
set_var_int_to_constant $mobile_audio_labels[1] = 45207
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14978
set_var_text_label s$mobile_print_labels[0] = 'MMICH9D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 45221
set_var_int_to_constant $mobile_audio_labels[1] = 45206
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15040
set_var_text_label s$mobile_print_labels[0] = 'MMICH1A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH1B'
set_var_text_label s$mobile_print_labels[2] = 'MMICH1C'
set_var_text_label s$mobile_print_labels[3] = 'MMICH1D'
set_var_text_label s$mobile_print_labels[4] = 'MMICH1E'
set_var_text_label s$mobile_print_labels[5] = 'MMICH1F'
set_var_text_label s$mobile_print_labels[6] = 'MMICH1G'
set_var_text_label s$mobile_print_labels[7] = 'MMICH1H'
set_var_text_label s$mobile_print_labels[8] = 'MMICH1J'
set_var_int_to_constant $mobile_audio_labels[0] = 45200
set_var_int_to_constant $mobile_audio_labels[1] = 45209
set_var_int_to_constant $mobile_audio_labels[2] = 45201
set_var_int_to_constant $mobile_audio_labels[3] = 45210
set_var_int_to_constant $mobile_audio_labels[4] = 45211
set_var_int_to_constant $mobile_audio_labels[5] = 45202
set_var_int_to_constant $mobile_audio_labels[6] = 45212
set_var_int_to_constant $mobile_audio_labels[7] = 45213
set_var_int_to_constant $mobile_audio_labels[8] = 45203
$cell_index_end = 8
goto @CELLFON_18362

:CELLFON_15270
set_var_text_label s$mobile_print_labels[0] = 'MHEL_2A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 17419
set_var_int_to_constant $mobile_audio_labels[1] = 17411
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15328
set_var_text_label s$mobile_print_labels[0] = 'MHEL_3A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 17420
set_var_int_to_constant $mobile_audio_labels[1] = 17412
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15386
set_var_text_label s$mobile_print_labels[0] = 'MHEL_4A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 17421
set_var_int_to_constant $mobile_audio_labels[1] = 17413
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15444
set_var_text_label s$mobile_print_labels[0] = 'MHEL_6A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 17423
set_var_int_to_constant $mobile_audio_labels[1] = 17415
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15502
set_var_text_label s$mobile_print_labels[0] = 'MHEL_5A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 17422
set_var_int_to_constant $mobile_audio_labels[1] = 17414
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15560
set_var_text_label s$mobile_print_labels[0] = 'MHELD7D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 17416
set_var_int_to_constant $mobile_audio_labels[1] = 17411
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15618
set_var_text_label s$mobile_print_labels[0] = 'MHELD9D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 17418
set_var_int_to_constant $mobile_audio_labels[1] = 17413
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15676
set_var_text_label s$mobile_print_labels[0] = 'MHELD8D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 17417
set_var_int_to_constant $mobile_audio_labels[1] = 17412
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15734
set_var_text_label s$mobile_print_labels[0] = 'MHEL_1A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_1B'
set_var_text_label s$mobile_print_labels[2] = 'MHEL_1C'
set_var_text_label s$mobile_print_labels[3] = 'MHEL_1D'
set_var_text_label s$mobile_print_labels[4] = 'MHEL_1E'
set_var_text_label s$mobile_print_labels[5] = 'MHEL_1F'
set_var_text_label s$mobile_print_labels[6] = 'MHEL_1G'
set_var_text_label s$mobile_print_labels[7] = 'MHEL_1H'
set_var_text_label s$mobile_print_labels[8] = 'MHEL_1J'
set_var_text_label s$mobile_print_labels[9] = 'MHEL_1K'
set_var_int_to_constant $mobile_audio_labels[0] = 17406
set_var_int_to_constant $mobile_audio_labels[1] = 17400
set_var_int_to_constant $mobile_audio_labels[2] = 17407
set_var_int_to_constant $mobile_audio_labels[3] = 17401
set_var_int_to_constant $mobile_audio_labels[4] = 17408
set_var_int_to_constant $mobile_audio_labels[5] = 17402
set_var_int_to_constant $mobile_audio_labels[6] = 17409
set_var_int_to_constant $mobile_audio_labels[7] = 17403
set_var_int_to_constant $mobile_audio_labels[8] = 17404
set_var_int_to_constant $mobile_audio_labels[9] = 17410
$cell_index_end = 9
goto @CELLFON_18362

:CELLFON_15968
set_var_text_label s$mobile_print_labels[0] = 'MBARB2A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB2D'
set_var_int_to_constant $mobile_audio_labels[0] = 39822
set_var_int_to_constant $mobile_audio_labels[1] = 39817
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16030
set_var_text_label s$mobile_print_labels[0] = 'MBARB3A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39823
set_var_int_to_constant $mobile_audio_labels[1] = 39818
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16092
set_var_text_label s$mobile_print_labels[0] = 'MBARB4A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39824
set_var_int_to_constant $mobile_audio_labels[1] = 39819
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16154
set_var_text_label s$mobile_print_labels[0] = 'MBARB5A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 39825
set_var_int_to_constant $mobile_audio_labels[1] = 39820
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16216
set_var_text_label s$mobile_print_labels[0] = 'MBARB6A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 39826
set_var_int_to_constant $mobile_audio_labels[1] = 39821
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16278
set_var_text_label s$mobile_print_labels[0] = 'MBARB7D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 39827
set_var_int_to_constant $mobile_audio_labels[1] = 39820
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16340
set_var_text_label s$mobile_print_labels[0] = 'MBARB8D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39828
set_var_int_to_constant $mobile_audio_labels[1] = 39818
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16402
set_var_text_label s$mobile_print_labels[0] = 'MBARB9D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 39829
set_var_int_to_constant $mobile_audio_labels[1] = 39821
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16464
set_var_text_label s$mobile_print_labels[0] = 'MBARB1A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB1B'
set_var_text_label s$mobile_print_labels[2] = 'MBARB1C'
set_var_text_label s$mobile_print_labels[3] = 'MBARB1D'
set_var_text_label s$mobile_print_labels[4] = 'MBARB1E'
set_var_text_label s$mobile_print_labels[5] = 'MBARB1F'
set_var_text_label s$mobile_print_labels[6] = 'MBARB1G'
set_var_text_label s$mobile_print_labels[7] = 'MBARB1H'
set_var_text_label s$mobile_print_labels[8] = 'MBARB1J'
set_var_text_label s$mobile_print_labels[9] = 'MBARB1K'
set_var_text_label s$mobile_print_labels[10] = 'MBARB1L'
set_var_text_label s$mobile_print_labels[11] = 'MBARB1M'
set_var_text_label s$mobile_print_labels[12] = 'MBARB1N'
set_var_text_label s$mobile_print_labels[13] = 'MBARB1O'
set_var_text_label s$mobile_print_labels[14] = 'MBARB1P'
set_var_text_label s$mobile_print_labels[15] = 'MBARB1Q'
set_var_text_label s$mobile_print_labels[16] = 'MBARB1R'
set_var_int_to_constant $mobile_audio_labels[0] = 39809
set_var_int_to_constant $mobile_audio_labels[1] = 39800
set_var_int_to_constant $mobile_audio_labels[2] = 39810
set_var_int_to_constant $mobile_audio_labels[3] = 39801
set_var_int_to_constant $mobile_audio_labels[4] = 39802
set_var_int_to_constant $mobile_audio_labels[5] = 39803
set_var_int_to_constant $mobile_audio_labels[6] = 39811
set_var_int_to_constant $mobile_audio_labels[7] = 39804
set_var_int_to_constant $mobile_audio_labels[8] = 39812
set_var_int_to_constant $mobile_audio_labels[9] = 39805
set_var_int_to_constant $mobile_audio_labels[10] = 39806
set_var_int_to_constant $mobile_audio_labels[11] = 39813
set_var_int_to_constant $mobile_audio_labels[12] = 39814
set_var_int_to_constant $mobile_audio_labels[13] = 39815
set_var_int_to_constant $mobile_audio_labels[14] = 39807
set_var_int_to_constant $mobile_audio_labels[15] = 39808
set_var_int_to_constant $mobile_audio_labels[16] = 39816
$cell_index_end = 16
goto @CELLFON_18362

:CELLFON_16886
set_var_text_label s$mobile_print_labels[0] = 'MZAHN2A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 41214
set_var_int_to_constant $mobile_audio_labels[1] = 41209
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16948
set_var_text_label s$mobile_print_labels[0] = 'MZAHN3A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 41215
set_var_int_to_constant $mobile_audio_labels[1] = 41210
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17010
set_var_text_label s$mobile_print_labels[0] = 'MZAHN4A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 41216
set_var_int_to_constant $mobile_audio_labels[1] = 41211
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17072
set_var_text_label s$mobile_print_labels[0] = 'MZAHN5A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN5B'
set_var_int_to_constant $mobile_audio_labels[0] = 41217
set_var_int_to_constant $mobile_audio_labels[1] = 41212
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17134
set_var_text_label s$mobile_print_labels[0] = 'MZAHN6A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN6D'
set_var_int_to_constant $mobile_audio_labels[0] = 41218
set_var_int_to_constant $mobile_audio_labels[1] = 41213
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17196
set_var_text_label s$mobile_print_labels[0] = 'MZAHN7D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 41219
set_var_int_to_constant $mobile_audio_labels[1] = 41209
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17258
set_var_text_label s$mobile_print_labels[0] = 'MZAHN9D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 41221
set_var_int_to_constant $mobile_audio_labels[1] = 41211
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17320
set_var_text_label s$mobile_print_labels[0] = 'MZAHN8D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 41220
set_var_int_to_constant $mobile_audio_labels[1] = 41210
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17382
set_var_text_label s$mobile_print_labels[0] = 'MZAHN1A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN1B'
set_var_text_label s$mobile_print_labels[2] = 'MZAHN1C'
set_var_text_label s$mobile_print_labels[3] = 'MZAHN1D'
set_var_text_label s$mobile_print_labels[4] = 'MZAHN1E'
set_var_text_label s$mobile_print_labels[5] = 'MZAHN1F'
set_var_text_label s$mobile_print_labels[6] = 'MZAHN1G'
set_var_text_label s$mobile_print_labels[7] = 'MZAHN1H'
set_var_text_label s$mobile_print_labels[8] = 'MZAHN1J'
set_var_int_to_constant $mobile_audio_labels[0] = 41205
set_var_int_to_constant $mobile_audio_labels[1] = 41200
set_var_int_to_constant $mobile_audio_labels[2] = 41206
set_var_int_to_constant $mobile_audio_labels[3] = 41201
set_var_int_to_constant $mobile_audio_labels[4] = 41207
set_var_int_to_constant $mobile_audio_labels[5] = 41202
set_var_int_to_constant $mobile_audio_labels[6] = 41203
set_var_int_to_constant $mobile_audio_labels[7] = 41208
set_var_int_to_constant $mobile_audio_labels[8] = 41204
$cell_index_end = 8
goto @CELLFON_18362

:CELLFON_17612
set_var_text_label s$mobile_print_labels[0] = 'MMILL3A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43413
set_var_int_to_constant $mobile_audio_labels[1] = 43429
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17674
set_var_text_label s$mobile_print_labels[0] = 'MMILL4A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 43414
set_var_int_to_constant $mobile_audio_labels[1] = 43430
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17736
set_var_text_label s$mobile_print_labels[0] = 'MMILL5A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 43415
set_var_int_to_constant $mobile_audio_labels[1] = 43431
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17798
set_var_text_label s$mobile_print_labels[0] = 'MMILL6A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL6B'
set_var_int_to_constant $mobile_audio_labels[0] = 43416
set_var_int_to_constant $mobile_audio_labels[1] = 43432
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17860
set_var_text_label s$mobile_print_labels[0] = 'MMILL7A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL7D'
set_var_int_to_constant $mobile_audio_labels[0] = 43417
set_var_int_to_constant $mobile_audio_labels[1] = 43433
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17922
set_var_text_label s$mobile_print_labels[0] = 'MMILL8D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43418
set_var_int_to_constant $mobile_audio_labels[1] = 43429
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17984
set_var_text_label s$mobile_print_labels[0] = 'MMILL9D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 43419
set_var_int_to_constant $mobile_audio_labels[1] = 43430
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_18046
set_var_text_label s$mobile_print_labels[0] = 'MMIL10D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 43400
set_var_int_to_constant $mobile_audio_labels[1] = 43431
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_18108
set_var_text_label s$mobile_print_labels[0] = 'MMILL1A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL1B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL1C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL1D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL1E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL1F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL1G'
set_var_text_label s$mobile_print_labels[7] = 'MMILL1H'
set_var_text_label s$mobile_print_labels[8] = 'MMILL1J'
set_var_text_label s$mobile_print_labels[9] = 'MMILL1K'
set_var_int_to_constant $mobile_audio_labels[0] = 43420
set_var_int_to_constant $mobile_audio_labels[1] = 43401
set_var_int_to_constant $mobile_audio_labels[2] = 43421
set_var_int_to_constant $mobile_audio_labels[3] = 43402
set_var_int_to_constant $mobile_audio_labels[4] = 43403
set_var_int_to_constant $mobile_audio_labels[5] = 43422
set_var_int_to_constant $mobile_audio_labels[6] = 43404
set_var_int_to_constant $mobile_audio_labels[7] = 43423
set_var_int_to_constant $mobile_audio_labels[8] = 43405
set_var_int_to_constant $mobile_audio_labels[9] = 43424
$cell_index_end = 9
goto @CELLFON_18362

:CELLFON_18362
return 

:MOB_LA1
set_deatharrest_state 0
script_name 'MOB_LA1'

:MOB_LA1_15
wait 90
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA1_56
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_LA1_56
if 
  $Return_cities_passed > 0
goto_if_false @MOB_LA1_76
terminate_this_script 

:MOB_LA1_76
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_1712
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA1_1705
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA1_1705
if 
  $flag_intro_mission_counter > 0
goto_if_false @MOB_LA1_293
if 
  2 > $flag_sweet_mission_counter
goto_if_false @MOB_LA1_293
if 
  $funeral_mission_finished == 3
goto_if_false @MOB_LA1_293
if 
  $1347 == 0
goto_if_false @MOB_LA1_293
$call_number = 19
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_254
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_254
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_279
$1347 = 1

:MOB_LA1_279
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_293
if 
  $flag_sweet_mission_counter > 0
goto_if_false @MOB_LA1_414
if 
  $1349 == 0
goto_if_false @MOB_LA1_414
$call_number = 9
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_375
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_375
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_400
$1349 = 1

:MOB_LA1_400
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_414
if 
  $flag_strap_mission_counter == 4
goto_if_false @MOB_LA1_568
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @MOB_LA1_568
if 
  $flag_mob_la1 == 0
goto_if_false @MOB_LA1_568
$call_number = 6
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_529
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_529
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_554
$flag_mob_la1 = 1

:MOB_LA1_554
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_568
if 
  $flag_sweet_mission_counter > 2
goto_if_false @MOB_LA1_1216
if 
  $1348 == 0
goto_if_false @MOB_LA1_1216
$Returnedfat = get_float_stat StatId.Fat
if 
  450.0 > $Returnedfat
goto_if_false @MOB_LA1_639
$call_number = 20

:MOB_LA1_639
if 
  $Returnedfat >= 450.0
goto_if_false @MOB_LA1_667
$call_number = 21

:MOB_LA1_667
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_706
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_706
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1202
$1348 = 1
do_fade 500 {direction} Fade.Out

:MOB_LA1_738
if 
  get_fading_status 
goto_if_false @MOB_LA1_762
wait 0
goto @MOB_LA1_738

:MOB_LA1_762
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_819
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 2228.8911 {y} -1737.1281 {z} 12.3906

:MOB_LA1_819
clear_prints 
load_scene 2228.5171 {y} -1734.274 {z} 15.744
remove_blip $gym_contact_blip
$gym_contact_blip = add_short_range_sprite_blip_for_coord 2228.0 {y} -1722.811 {z} 12.5543 {sprite} RadarSprite.Gym
set_fixed_camera_position 2228.094 {y} -1735.179 {z} 15.6865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2228.5171 {y} -1734.274 {z} 15.744 {switchStyle} SwitchType.JumpCut
wait 500
do_fade 1000 {direction} Fade.In
print_help 'GYMHELP'
wait 5000
print_help 'DUMBELL'
flash_hud_object HudObject.Radar
wait 5000
flash_hud_object -1
do_fade 500 {direction} Fade.Out

:MOB_LA1_975
if 
  get_fading_status 
goto_if_false @MOB_LA1_999
wait 0
goto @MOB_LA1_975

:MOB_LA1_999
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_1059
$player_z -= 0.5
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
load_scene $player_x {y} $player_y {z} $player_z
restore_camera_jumpcut 
set_player_control $player1 {state} True

:MOB_LA1_1059
switch_entry_exit 'GYM1' {state} True
switch_entry_exit 'GYM2' {state} True
switch_entry_exit 'GYM3' {state} True
remove_blip $gym_contact_blip
$gym_contact_blip = add_short_range_sprite_blip_for_contact_point 2228.0 {y} -1722.811 {z} 12.5543 {sprite} RadarSprite.Gym
change_blip_display $gym_contact_blip {display} BlipDisplay.BlipOnly
$2629 = add_short_range_sprite_blip_for_contact_point -2269.3999 {y} -155.6 {z} 35.3 {sprite} RadarSprite.Gym
change_blip_display $2629 {display} BlipDisplay.BlipOnly
$gym_blips = add_short_range_sprite_blip_for_contact_point 1968.6 {y} 2292.1001 {z} 16.4 {sprite} RadarSprite.Gym
change_blip_display $gym_blips {display} BlipDisplay.BlipOnly
wait 500
do_fade 1000 {direction} Fade.In

:MOB_LA1_1202
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_1216
if 
  $flag_strap_mission_counter > 1
goto_if_false @MOB_LA1_1367
if 
  $1343 == 0
goto_if_false @MOB_LA1_1367
$call_number = 12
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1298
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_1298
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1353
$1343 = 1
start_new_script @CRASH 
remove_blip $crash_contact_blip
$crash_contact_blip = add_sprite_blip_for_contact_point $crashX {y} $crashY {z} $crashZ {sprite} $crash_blip_icon

:MOB_LA1_1353
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_1367
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1525
if 
  $1344 == 0
goto_if_false @MOB_LA1_1525
$call_number = 7
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1449
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_1449
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1511
$1344 = 1
start_new_script @CESAR 
remove_blip $cesar_contact_blip
$cesar_contact_blip = add_sprite_blip_for_contact_point $cesarX {y} $cesarY {z} $cesarZ {sprite} $cesar_blip_icon
change_blip_display $cesar_contact_blip {display} BlipDisplay.BlipOnly

:MOB_LA1_1511
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_1525
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1705
if 
  $flag_crash_mission_counter > 0
goto_if_false @MOB_LA1_1705
if 
  $1346 == 0
goto_if_false @MOB_LA1_1705
$call_number = 18
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1625
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA1_1625
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1691
$1346 = 1
switch_entry_exit 'AMMUN1' {state} False
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point 1365.251 {y} -1280.12 {z} 12.5469 {sprite} $sweet_blip_icon

:MOB_LA1_1691
gosub @MOB_GF_3152
goto @MOB_LA1_15

:MOB_LA1_1705
goto @MOB_LA1_1719

:MOB_LA1_1712
$flag_cell_nation = 0

:MOB_LA1_1719
goto @MOB_LA1_15

:MOB_CAT
set_deatharrest_state 0
script_name 'MOB_CAT'

:MOB_CAT_15
wait 120
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_CAT_56
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_CAT_56
if 
  $terminate_cat_calls == 1
goto_if_false @MOB_CAT_76
terminate_this_script 

:MOB_CAT_76
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_CAT_1215
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_CAT_1208
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_CAT_1208
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_286
if 
  $flag_mob_cat == 0
goto_if_false @MOB_CAT_286
$call_number = 8
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_218
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_218
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_272
$flag_mob_cat = 1
start_new_script @CAT 
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $511 {y} $517 {z} $523 {sprite} RadarSprite.Qmark

:MOB_CAT_272
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_286
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_407
if 
  $1359 == 0
goto_if_false @MOB_CAT_407
$call_number = 24
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_368
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_368
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_393
$1359 = 1

:MOB_CAT_393
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_407
if and
  $flag_truth_mission_counter == 0
  $cat_counter == 1
goto_if_false @MOB_CAT_565
if 
  $1357 == 0
goto_if_false @MOB_CAT_565
$call_number = 15
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_496
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_496
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_551
$1357 = 1
start_new_script @TRU 
remove_blip $truth_contact_blip
$truth_contact_blip = add_sprite_blip_for_contact_point $truth2X {y} $truth2Y {z} $truth2Z {sprite} $truth_blip_icon

:MOB_CAT_551
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_565
if 
  $cat_counter == 3
goto_if_false @MOB_CAT_866
if 
  $1361 == 0
goto_if_false @MOB_CAT_866
$call_number = 0
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_647
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_647
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_852
$1361 = 1
set_zone_gang_strength 'ELCO1' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0

:MOB_CAT_852
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_866
if and
  $cat_counter > 1
  $flag_bcesar_mission_counter == 0
goto_if_false @MOB_CAT_1047
if 
  $1362 == 0
goto_if_false @MOB_CAT_1047
$call_number = 10
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_955
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_955
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1033
$1362 = 1
start_new_script @BCESAR 
remove_blip $bcesar_contact_blip
$bcesar_contact_blip = add_sprite_blip_for_contact_point $bcesarX {y} $bcesarY {z} $bcesarZ {sprite} $cesar_blip_icon
change_blip_display $bcesar_contact_blip {display} BlipDisplay.BlipOnly
print 'BC4_1' {time} 8000 {flag} 1

:MOB_CAT_1033
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_1047
if and
  $cat_counter > 3
  $flag_bcesar_mission_counter > 9
goto_if_false @MOB_CAT_1208
if 
  $1363 == 0
goto_if_false @MOB_CAT_1208
$call_number = 16
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1136
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_CAT_1136
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1194
$1363 = 1
remove_blip $truth_contact_blip
$truth_contact_blip = add_sprite_blip_for_contact_point $truthX {y} $truthY {z} $truthZ {sprite} $truth_blip_icon
set_max_wanted_level 5
$terminate_cat_calls = 1

:MOB_CAT_1194
gosub @MOB_GF_3152
goto @MOB_CAT_15

:MOB_CAT_1208
goto @MOB_CAT_1222

:MOB_CAT_1215
$flag_cell_nation = 0

:MOB_CAT_1222
goto @MOB_CAT_15

:MOB_SF
set_deatharrest_state 0
script_name 'MOB_SF'

:MOB_SF_15
wait 150
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_SF_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_SF_57
if 
  $1403 == 1
goto_if_false @MOB_SF_131
if 
  $1399 == 1
goto_if_false @MOB_SF_131
if 
  $1398 == 1
goto_if_false @MOB_SF_131
if 
  $1396 == 1
goto_if_false @MOB_SF_131
terminate_this_script 

:MOB_SF_131
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_SF_2048
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_SF_2041
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_SF_2041
if 
  $flag_synd_mission_counter > 2
goto_if_false @MOB_SF_342
if 
  $1401 == 0
goto_if_false @MOB_SF_342
$call_number = 34
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_273
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_273
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_328
$1401 = 1
start_new_script @WUZI 
remove_blip $wuzi_contact_blip
$wuzi_contact_blip = add_sprite_blip_for_contact_point $wuziX {y} $wuziY {z} $wuziZ {sprite} $wuzi_blip_icon

:MOB_SF_328
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_342
if 
  $flag_garage_mission_counter > 0
goto_if_false @MOB_SF_499
if 
  $flag_mob_sanfran == 0
goto_if_false @MOB_SF_499
$call_number = 29
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_424
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_424
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_485
$flag_mob_sanfran = 1
start_new_script @BUY2 
remove_blip $zero_contact_blip
$zero_contact_blip = add_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.Zero
change_blip_display $zero_contact_blip {display} BlipDisplay.BlipOnly

:MOB_SF_485
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_499
if and
  $flag_garage_mission_counter > 0
  $zeros_property_bought == 1
goto_if_false @MOB_SF_657
if 
  $1396 == 0
goto_if_false @MOB_SF_657
$call_number = 30
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_588
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_588
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_643
$1396 = 1
start_new_script @ZERO 
remove_blip $zero_contact_blip
$zero_contact_blip = add_sprite_blip_for_contact_point $zeroX {y} $zeroY {z} $zeroZ {sprite} $zero_blip_icon

:MOB_SF_643
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_657
if 
  $flag_garage_mission_counter > 1
goto_if_false @MOB_SF_881
if 
  $1397 == 0
goto_if_false @MOB_SF_881
$call_number = 31
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_739
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_739
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_867
$1397 = 1
start_new_script @TRACE 
$dschool_contact_blip = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} RadarSprite.School
change_blip_display $dschool_contact_blip {display} BlipDisplay.BlipOnly
start_new_script @BSCHOO 
remove_blip $boat_school_blip
$boat_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
change_blip_display $boat_school_blip {display} BlipDisplay.BlipOnly
start_new_script @BIKES 
remove_blip $bike_school_blip
$bike_school_blip = add_short_range_sprite_blip_for_contact_point $bikesX {y} $bikesY {z} $bikesZ {sprite} RadarSprite.School
change_blip_display $bike_school_blip {display} BlipDisplay.BlipOnly

:MOB_SF_867
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_881
if and
  $driving_test_passed == 1
  $flag_desert_mission_counter > 3
goto_if_false @MOB_SF_1093
if 
  $1398 == 0
goto_if_false @MOB_SF_1093
$call_number = 32
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_970
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_970
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1079
$1398 = 1
remove_blip $trace_contact_blip
remove_blip $529
remove_blip $530
remove_blip $531
$trace_contact_blip = add_short_range_sprite_blip_for_contact_point $traceX[0] {y} $traceY[0] {z} $traceZ[0] {sprite} RadarSprite.Flag
$529 = add_short_range_sprite_blip_for_contact_point $traceX[1] {y} $traceY[1] {z} $traceZ[1] {sprite} RadarSprite.Flag
$530 = add_short_range_sprite_blip_for_contact_point $traceX[2] {y} $traceY[2] {z} $traceZ[2] {sprite} RadarSprite.Flag
$531 = add_short_range_sprite_blip_for_contact_point $traceX[3] {y} $traceY[3] {z} $traceZ[3] {sprite} RadarSprite.Flag

:MOB_SF_1079
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_1093
if and
  $1404 == 1
  $driving_test_passed == 1
goto_if_false @MOB_SF_1257
if 
  $1399 == 0
goto_if_false @MOB_SF_1257
$call_number = 33
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1182
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_1182
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1243
$1399 = 1
start_new_script @BUY1 
remove_blip $showroom_contact_blip
$showroom_contact_blip = add_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.CesarViapando
change_blip_display $showroom_contact_blip {display} BlipDisplay.BlipOnly

:MOB_SF_1243
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_1257
if 
  $flag_synd_mission_counter == 10
goto_if_false @MOB_SF_1465
if 
  $1404 == 0
goto_if_false @MOB_SF_1465
$call_number = 41
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1339
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_1339
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1451
$1404 = 1
start_new_script @DESERT 
remove_blip $1733
remove_pickup $grove_save_pickup[16]
$grove_save_pickup[16] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16]
$number_of_save_icons = 17
$1733 = add_short_range_sprite_blip_for_contact_point $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16] {sprite} RadarSprite.SaveGame
change_blip_display $1733 {display} BlipDisplay.BlipOnly
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} RadarSprite.Qmark

:MOB_SF_1451
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_1465
if 
  $flag_desert_mission_counter > 0
goto_if_false @MOB_SF_1607
if 
  $1400 == 0
goto_if_false @MOB_SF_1607
$call_number = 42
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1547
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_1547
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1593
$1400 = 1
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} RadarSprite.Qmark

:MOB_SF_1593
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_1607
if 
  $flag_desert_mission_counter > 1
goto_if_false @MOB_SF_1750
if 
  $1402 == 0
goto_if_false @MOB_SF_1750
$call_number = 43
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1689
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_1689
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1736
$1402 = 1
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} $desert_blip_icon

:MOB_SF_1736
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_1750
if 
  $pilot_test_passed > 0
goto_if_false @MOB_SF_2041
if 
  $1403 == 0
goto_if_false @MOB_SF_2041
$call_number = 35
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1832
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_SF_1832
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_2027
$1403 = 1
terminate_all_scripts_with_this_name 'MOB_VEG'
start_new_script @MOB_VEG 
start_new_script @CASINO 
remove_pickup $grove_save_pickup[17]
$grove_save_pickup[17] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17]
$number_of_save_icons = 18
$1734 = add_short_range_sprite_blip_for_contact_point $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17] {sprite} RadarSprite.SaveGame
change_blip_display $1734 {display} BlipDisplay.BlipOnly
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
activate_garage 'VECMOD'
$2590 = add_short_range_sprite_blip_for_coord 2382.2 {y} 1044.0 {z} 9.8 {sprite} RadarSprite.ModGarage
set_int_stat StatId.PassedCasino3 {value} 1
start_new_script @LITCAS 

:MOB_SF_2027
gosub @MOB_GF_3152
goto @MOB_SF_15

:MOB_SF_2041
goto @MOB_SF_2055

:MOB_SF_2048
$flag_cell_nation = 0

:MOB_SF_2055
goto @MOB_SF_15

:MOB_VEG
set_deatharrest_state 0
script_name 'MOB_VEG'

:MOB_VEG_15
wait 180
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_VEG_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_VEG_57
if 
  $1386 == 1
goto_if_false @MOB_VEG_95
if 
  $1382 == 1
goto_if_false @MOB_VEG_95
terminate_this_script 

:MOB_VEG_95
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_VEG_2293
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_VEG_2286
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_VEG_2286
if 
  $flag_desert_mission_counter > 7
goto_if_false @MOB_VEG_298
if 
  $1389 == 0
goto_if_false @MOB_VEG_298
$call_number = 17
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_237
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_237
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_284
$1389 = 1
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon

:MOB_VEG_284
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_298
if and
  $flag_vcrash_mission_counter > 0
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_454
if 
  $flag_mob_vegas == 0
goto_if_false @MOB_VEG_454
$call_number = 13
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_387
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_387
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_440
$flag_mob_vegas = 1
remove_blip $vcrash_contact_blip
$vcrash_contact_blip = add_sprite_blip_for_contact_point -378.7596 {y} 2235.8589 {z} 41.4288 {sprite} $crash_blip_icon

:MOB_VEG_440
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_454
if 
  $flag_casino_mission_counter > 3
goto_if_false @MOB_VEG_617
if 
  $1380 == 0
goto_if_false @MOB_VEG_617
$call_number = 47
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_536
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_536
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_603
$1380 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_603
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_617
if 
  $flag_casino_mission_counter > 6
goto_if_false @MOB_VEG_780
if 
  $1381 == 0
goto_if_false @MOB_VEG_780
$call_number = 48
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_699
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_699
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_766
$1381 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_766
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_780
if 
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_997
if 
  $flag_vcrash_mission_counter > 1
goto_if_false @MOB_VEG_997
if 
  $flag_doc_mission_counter > 0
goto_if_false @MOB_VEG_997
if 
  $flag_desert_mission_counter > 8
goto_if_false @MOB_VEG_997
if 
  $1382 == 0
goto_if_false @MOB_VEG_997
$call_number = 49
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_916
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_916
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_983
$1382 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_983
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_997
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1245
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @MOB_VEG_1245
$millies_like_stat = get_int_stat StatId.GirlfriendMillie
if 
  $millies_like_stat >= 35
goto_if_false @MOB_VEG_1245
if 
  $1379 == 0
goto_if_false @MOB_VEG_1245
$call_number = 53
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1123
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_1123
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1231
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 348.7857 {y} 306.1048 {z} 998.6557
start_new_script @KEYCARD 
remove_blip $Thekeycard_contact_blip
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2037.349 {y} 2723.9709 {z} 9.8281 {sprite} $Theheist_blip_icon
change_blip_display $Thekeycard_contact_blip {display} BlipDisplay.BlipOnly
print_now 'GOODKEY' {time} 6000 {flag} 1
$1379 = 1

:MOB_VEG_1231
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_1245
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1537
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @MOB_VEG_1537
if or
  $iGFLikesPlayer[5] == -100
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1537
if 
  $1379 == 0
goto_if_false @MOB_VEG_1537
if 
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1351
$call_number = 40

:MOB_VEG_1351
if 
  $iGFLikesPlayer[5] == -100
goto_if_false @MOB_VEG_1376
$call_number = 39

:MOB_VEG_1376
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1415
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_1415
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1523
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 348.7857 {y} 306.1048 {z} 998.6557
start_new_script @KEYCARD 
remove_blip $Thekeycard_contact_blip
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2037.349 {y} 2723.9709 {z} 9.8281 {sprite} $Theheist_blip_icon
change_blip_display $Thekeycard_contact_blip {display} BlipDisplay.BlipOnly
print_now 'BADKEY' {time} 6000 {flag} 1
$1379 = 1

:MOB_VEG_1523
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_1537
if and
  $flag_heist_mission_counter > 4
  $keycard_aquired_from_millie == 0
  $1384 == 0
goto_if_false @MOB_VEG_1672
if 
  $1383 == 0
goto_if_false @MOB_VEG_1672
$call_number = 36
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1633
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_1633
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1658
$1383 = 1

:MOB_VEG_1658
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_1672
if and
  $flag_casino_mission_counter > 8
  $flag_heist_mission_counter <> 6
goto_if_false @MOB_VEG_1800
if 
  $1385 == 0
goto_if_false @MOB_VEG_1800
$call_number = 51
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1761
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_1761
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1786
$1385 = 1

:MOB_VEG_1786
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_1800
if and
  $flag_casino_mission_counter > 8
  $1384 == 0
goto_if_false @MOB_VEG_1995
if 
  $1390 == 0
goto_if_false @MOB_VEG_1995
$call_number = 38
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1889
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_1889
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1981
$1390 = 1
if 
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_1981
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0
$1384 = 1

:MOB_VEG_1981
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_1995
if and
  $flag_casino_mission_counter > 8
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_2165
if 
  $1384 == 0
goto_if_false @MOB_VEG_2165
$call_number = 37
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2084
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_2084
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2151
$1384 = 1
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0

:MOB_VEG_2151
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_2165
if 
  $flag_heist_mission_counter > 5
goto_if_false @MOB_VEG_2286
if 
  $1386 == 0
goto_if_false @MOB_VEG_2286
$call_number = 52
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2247
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_VEG_2247
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2272
$1386 = 1

:MOB_VEG_2272
gosub @MOB_GF_3152
goto @MOB_VEG_15

:MOB_VEG_2286
goto @MOB_VEG_2300

:MOB_VEG_2293
$flag_cell_nation = 0

:MOB_VEG_2300
goto @MOB_VEG_15

:MOB_LA2
set_deatharrest_state 0
script_name 'MOB_LA2'

:MOB_LA2_15
wait 250
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA2_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_LA2_57
if 
  $1354 == 1
goto_if_false @MOB_LA2_77
terminate_this_script 

:MOB_LA2_77
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_LA2_763
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA2_756
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA2_756
if 
  $flag_mansion_mission_counter > 0
goto_if_false @MOB_LA2_280
if 
  $flag_mob_LA2 == 0
goto_if_false @MOB_LA2_280
$call_number = 50
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_219
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA2_219
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_266
$flag_mob_LA2 = 1
remove_blip $mansion_contact_blip
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon

:MOB_LA2_266
gosub @MOB_GF_3152
goto @MOB_LA2_15

:MOB_LA2_280
if and
  $flag_casino_mission_counter > 2
  2 > $flag_mansion_mission_counter
goto_if_false @MOB_LA2_408
if 
  $1353 == 0
goto_if_false @MOB_LA2_408
$call_number = 25
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_369
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA2_369
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_394
$1353 = 1

:MOB_LA2_394
gosub @MOB_GF_3152
goto @MOB_LA2_15

:MOB_LA2_408
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_590
if 
  $1355 == 0
goto_if_false @MOB_LA2_590
$call_number = 22
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_490
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA2_490
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_537
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$1355 = 1

:MOB_LA2_537
gosub @MOB_GF_3152
$player_territory_owned = get_territory_under_control_percentage 
if 
  34 >= $player_territory_owned
goto_if_false @MOB_LA2_583
print_now 'MORTURF' {time} 12000 {flag} 1

:MOB_LA2_583
goto @MOB_LA2_15

:MOB_LA2_590
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_756
$player_territory_owned = get_territory_under_control_percentage 
if 
  $player_territory_owned > 34
goto_if_false @MOB_LA2_756
if 
  $1354 == 0
goto_if_false @MOB_LA2_756
$call_number = 23
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_695
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_LA2_695
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_742
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$1354 = 1

:MOB_LA2_742
gosub @MOB_GF_3152
goto @MOB_LA2_15

:MOB_LA2_756
goto @MOB_LA2_770

:MOB_LA2_763
$flag_cell_nation = 0

:MOB_LA2_770
goto @MOB_LA2_15

:MOB_RAN
set_deatharrest_state 0
script_name 'MOB_RAN'

:MOB_RAN_15
wait 1000
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_RAN_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_RAN_57
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_RAN_2260
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_RAN_2253
if 
  $timer_mobile_diff > 60000
goto_if_false @MOB_RAN_2253
if and
  $failed_cesar_race == 1
  $flag_cesar_mission_counter == 0
goto_if_false @MOB_RAN_247
if 
  $1371 == 0
goto_if_false @MOB_RAN_247
$call_number = 11
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_208
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_208
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_233
$1371 = 1

:MOB_RAN_233
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_247
if and
  $trigger_phonecall_failed == 1
  $flag_smoke_mission_counter == 1
goto_if_false @MOB_RAN_403
$Returnedfat = get_float_stat StatId.Fat
if 
  $Returnedfat >= 500.0
goto_if_false @MOB_RAN_403
if 
  $1372 == 0
goto_if_false @MOB_RAN_403
$call_number = 14
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_364
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_364
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_389
$1372 = 1

:MOB_RAN_389
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_403
if 
  $flag_wuzi_mission_counter > 1
goto_if_false @MOB_RAN_524
if 
  $flag_mob_random == 0
goto_if_false @MOB_RAN_524
$call_number = 1
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_485
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_485
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_510
$flag_mob_random = 1

:MOB_RAN_510
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_524
if 
  $flag_desert_mission_counter > 5
goto_if_false @MOB_RAN_645
if 
  $1367 == 0
goto_if_false @MOB_RAN_645
$call_number = 2
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_606
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_606
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_631
$1367 = 1

:MOB_RAN_631
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_645
if 
  $flag_casino_mission_counter > 5
goto_if_false @MOB_RAN_766
if 
  $1368 == 0
goto_if_false @MOB_RAN_766
$call_number = 3
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_727
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_727
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_752
$1368 = 1

:MOB_RAN_752
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_766
if 
  $flag_mansion_mission_counter > 2
goto_if_false @MOB_RAN_887
if 
  $1369 == 0
goto_if_false @MOB_RAN_887
$call_number = 4
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_848
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_848
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_873
$1369 = 1

:MOB_RAN_873
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_887
if 
  $flag_riot_mission_counter > 4
goto_if_false @MOB_RAN_1008
if 
  $1370 == 0
goto_if_false @MOB_RAN_1008
$call_number = 5
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_969
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_969
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_994
$1370 = 1

:MOB_RAN_994
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_1008
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
goto_if_false @MOB_RAN_1136
if 
  $1373 == 0
goto_if_false @MOB_RAN_1136
$call_number = 44
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1097
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_1097
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1122
$1373 = 1

:MOB_RAN_1122
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_1136
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1373 == 1
goto_if_false @MOB_RAN_1271
if 
  $1374 == 0
goto_if_false @MOB_RAN_1271
$call_number = 45
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1232
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_1232
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1257
$1374 = 1

:MOB_RAN_1257
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_1271
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1374 == 1
goto_if_false @MOB_RAN_1406
if 
  $1375 == 0
goto_if_false @MOB_RAN_1406
$call_number = 46
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1367
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_1367
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1392
$1375 = 1

:MOB_RAN_1392
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_1406
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 76
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @MOB_RAN_2253
if 
  not is_score_greater $player1 {money} -499
goto_if_false @MOB_RAN_2253
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MOB_RAN_2253
if 
  $1376 == 0
goto_if_false @MOB_RAN_1834
if 
  $loan_shark_reminder == 7
goto_if_false @MOB_RAN_1518
$call_number = 61
$loan_shark_reminder = 0

:MOB_RAN_1518
if 
  $loan_shark_reminder == 6
goto_if_false @MOB_RAN_1550
$call_number = 60
$loan_shark_reminder = 7

:MOB_RAN_1550
if 
  $loan_shark_reminder == 5
goto_if_false @MOB_RAN_1582
$call_number = 59
$loan_shark_reminder = 6

:MOB_RAN_1582
if 
  $loan_shark_reminder == 4
goto_if_false @MOB_RAN_1614
$call_number = 58
$loan_shark_reminder = 5

:MOB_RAN_1614
if 
  $loan_shark_reminder == 3
goto_if_false @MOB_RAN_1646
$call_number = 57
$loan_shark_reminder = 4

:MOB_RAN_1646
if 
  $loan_shark_reminder == 2
goto_if_false @MOB_RAN_1678
$call_number = 56
$loan_shark_reminder = 3

:MOB_RAN_1678
if 
  $loan_shark_reminder == 1
goto_if_false @MOB_RAN_1710
$call_number = 55
$loan_shark_reminder = 2

:MOB_RAN_1710
if 
  $loan_shark_reminder == 0
goto_if_false @MOB_RAN_1742
$call_number = 54
$loan_shark_reminder = 1

:MOB_RAN_1742
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1781
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_1781
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1820
$1376 = 1
$1377 = 0
$terminate_cat_calls = 1

:MOB_RAN_1820
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_1834
if 
  $1376 == 1
goto_if_false @MOB_RAN_2211
if 
  $1377 == 0
goto_if_false @MOB_RAN_2211
if 
  $loan_shark_hitmen == 7
goto_if_false @MOB_RAN_1902
$call_number = 69
$loan_shark_hitmen = 0

:MOB_RAN_1902
if 
  $loan_shark_hitmen == 6
goto_if_false @MOB_RAN_1934
$call_number = 68
$loan_shark_hitmen = 7

:MOB_RAN_1934
if 
  $loan_shark_hitmen == 5
goto_if_false @MOB_RAN_1966
$call_number = 67
$loan_shark_hitmen = 6

:MOB_RAN_1966
if 
  $loan_shark_hitmen == 4
goto_if_false @MOB_RAN_1998
$call_number = 66
$loan_shark_hitmen = 5

:MOB_RAN_1998
if 
  $loan_shark_hitmen == 3
goto_if_false @MOB_RAN_2030
$call_number = 65
$loan_shark_hitmen = 4

:MOB_RAN_2030
if 
  $loan_shark_hitmen == 2
goto_if_false @MOB_RAN_2062
$call_number = 64
$loan_shark_hitmen = 3

:MOB_RAN_2062
if 
  $loan_shark_hitmen == 1
goto_if_false @MOB_RAN_2094
$call_number = 63
$loan_shark_hitmen = 2

:MOB_RAN_2094
if 
  $loan_shark_hitmen == 0
goto_if_false @MOB_RAN_2126
$call_number = 62
$loan_shark_hitmen = 1

:MOB_RAN_2126
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2165
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_RAN_2165
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2197
$1377 = 1
$terminate_cat_calls = 1

:MOB_RAN_2197
gosub @MOB_GF_3152
goto @MOB_RAN_15

:MOB_RAN_2211
if 
  $1377 == 1
goto_if_false @MOB_RAN_2253
stream_script 76
if 
  has_streamed_script_loaded 76
goto_if_false @MOB_RAN_2253
start_new_streamed_script 76

:MOB_RAN_2253
goto @MOB_RAN_2267

:MOB_RAN_2260
$flag_cell_nation = 0

:MOB_RAN_2267
goto @MOB_RAN_15

:MOB_GF
script_name 'MOB_GF'
set_deatharrest_state 0
set_global_var_bit_const $iAgentFlags {bitIndex} 11
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
2@ = generate_random_int_in_range 0 {max} 8

:MOB_GF_38
wait 150
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_GF_1073
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_GF_1050
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_GF_1043
if 
  0@ == 0
goto_if_false @MOB_GF_264
if 
  1@ == 1
goto_if_false @MOB_GF_186
$call_number = 70
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 77
goto_if_false @MOB_GF_179
$call_number = 77

:MOB_GF_179
goto @MOB_GF_194

:MOB_GF_186
$call_number = 130

:MOB_GF_194
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_248
set_global_var_bit_const $iAgentFlags {bitIndex} 10
set_global_var_bit_lvar $iAgentFlags {var_bitIndex} 0@
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_GF_248
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_264
if 
  0@ == 1
goto_if_false @MOB_GF_417
if 
  1@ == 1
goto_if_false @MOB_GF_347
$call_number = 80
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 87
goto_if_false @MOB_GF_340
$call_number = 87

:MOB_GF_340
goto @MOB_GF_355

:MOB_GF_347
$call_number = 131

:MOB_GF_355
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_401
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_GF_401
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_417
if 
  0@ == 2
goto_if_false @MOB_GF_570
if 
  1@ == 1
goto_if_false @MOB_GF_500
$call_number = 90
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 97
goto_if_false @MOB_GF_493
$call_number = 97

:MOB_GF_493
goto @MOB_GF_508

:MOB_GF_500
$call_number = 132

:MOB_GF_508
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_554
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_GF_554
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_570
if 
  0@ == 3
goto_if_false @MOB_GF_730
if 
  1@ == 1
goto_if_false @MOB_GF_653
$call_number = 100
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 107
goto_if_false @MOB_GF_646
$call_number = 107

:MOB_GF_646
goto @MOB_GF_661

:MOB_GF_653
$call_number = 133

:MOB_GF_661
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_714
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3312
set_global_var_bit_const $iAgentFlags {bitIndex} 10

:MOB_GF_714
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_730
if 
  0@ == 4
goto_if_false @MOB_GF_890
if 
  1@ == 1
goto_if_false @MOB_GF_813
$call_number = 110
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 117
goto_if_false @MOB_GF_806
$call_number = 117

:MOB_GF_806
goto @MOB_GF_821

:MOB_GF_813
$call_number = 134

:MOB_GF_821
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_874
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3312
set_global_var_bit_const $iAgentFlags {bitIndex} 10

:MOB_GF_874
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_890
if 
  0@ == 5
goto_if_false @MOB_GF_1043
if 
  1@ == 1
goto_if_false @MOB_GF_973
$call_number = 120
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 127
goto_if_false @MOB_GF_966
$call_number = 127

:MOB_GF_966
goto @MOB_GF_981

:MOB_GF_973
$call_number = 135

:MOB_GF_981
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_1027
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3312

:MOB_GF_1027
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_1043
goto @MOB_GF_1066

:MOB_GF_1050
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3152
terminate_this_script 

:MOB_GF_1066
goto @MOB_GF_1080

:MOB_GF_1073
$flag_cell_nation = 0

:MOB_GF_1080
goto @MOB_GF_38

:MOB_GF_1087
$ring_a_ding_ding = 0
$onmission = 1
$flag_cell_nation = 1
$audio_slot_mobile = 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200
$players_skipping_the_call = 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1479 {caseNum1} 70 {caseLabel1} @MOB_GF_1263 {caseNum2} 80 {caseLabel2} @MOB_GF_1281 {caseNum3} 90 {caseLabel3} @MOB_GF_1299 {caseNum4} 100 {caseLabel4} @MOB_GF_1317 {caseNum5} 110 {caseLabel5} @MOB_GF_1335 {caseNum6} 120 {caseLabel6} @MOB_GF_1353 {caseNum7} 130 {caseLabel7} @MOB_GF_1371
switch_continued 131 {caseLabel1} @MOB_GF_1389 {caseNum2} 132 {caseLabel2} @MOB_GF_1407 {caseNum3} 133 {caseLabel3} @MOB_GF_1425 {caseNum4} 134 {caseLabel4} @MOB_GF_1443 {caseNum5} 135 {caseLabel5} @MOB_GF_1461 {caseNum6} -1 {caseLabel6} @MOB_GF_1497 {caseNum7} -1 {caseLabel7} @MOB_GF_1497 {caseNum8} -1 {caseLabel8} @MOB_GF_1497 {caseNum9} -1 {caseLabel9} @MOB_GF_1497

:MOB_GF_1263
print_help 'ANSWER0'
goto @MOB_GF_1497

:MOB_GF_1281
print_help 'ANSWER1'
goto @MOB_GF_1497

:MOB_GF_1299
print_help 'ANSWER2'
goto @MOB_GF_1497

:MOB_GF_1317
print_help 'ANSWER3'
goto @MOB_GF_1497

:MOB_GF_1335
print_help 'ANSWER4'
goto @MOB_GF_1497

:MOB_GF_1353
print_help 'ANSWER5'
goto @MOB_GF_1497

:MOB_GF_1371
print_help 'ANSWER0'
goto @MOB_GF_1497

:MOB_GF_1389
print_help 'ANSWER1'
goto @MOB_GF_1497

:MOB_GF_1407
print_help 'ANSWER2'
goto @MOB_GF_1497

:MOB_GF_1425
print_help 'ANSWER3'
goto @MOB_GF_1497

:MOB_GF_1443
print_help 'ANSWER4'
goto @MOB_GF_1497

:MOB_GF_1461
print_help 'ANSWER5'
goto @MOB_GF_1497

:MOB_GF_1479
print_help 'ANSWER'
goto @MOB_GF_1497

:MOB_GF_1497
if and
  7 > $ring_a_ding_ding
  2 > $flag_player_answered_phone
goto_if_false @MOB_GF_2068
wait 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1876 {caseNum1} 70 {caseLabel1} @MOB_GF_1660 {caseNum2} 80 {caseLabel2} @MOB_GF_1678 {caseNum3} 90 {caseLabel3} @MOB_GF_1696 {caseNum4} 100 {caseLabel4} @MOB_GF_1714 {caseNum5} 110 {caseLabel5} @MOB_GF_1732 {caseNum6} 120 {caseLabel6} @MOB_GF_1750 {caseNum7} 130 {caseLabel7} @MOB_GF_1768
switch_continued 131 {caseLabel1} @MOB_GF_1786 {caseNum2} 132 {caseLabel2} @MOB_GF_1804 {caseNum3} 133 {caseLabel3} @MOB_GF_1822 {caseNum4} 134 {caseLabel4} @MOB_GF_1840 {caseNum5} 135 {caseLabel5} @MOB_GF_1858 {caseNum6} -1 {caseLabel6} @MOB_GF_1894 {caseNum7} -1 {caseLabel7} @MOB_GF_1894 {caseNum8} -1 {caseLabel8} @MOB_GF_1894 {caseNum9} -1 {caseLabel9} @MOB_GF_1894

:MOB_GF_1660
print_help_forever 'ANSWER0'
goto @MOB_GF_1894

:MOB_GF_1678
print_help_forever 'ANSWER1'
goto @MOB_GF_1894

:MOB_GF_1696
print_help_forever 'ANSWER2'
goto @MOB_GF_1894

:MOB_GF_1714
print_help_forever 'ANSWER3'
goto @MOB_GF_1894

:MOB_GF_1732
print_help_forever 'ANSWER4'
goto @MOB_GF_1894

:MOB_GF_1750
print_help_forever 'ANSWER5'
goto @MOB_GF_1894

:MOB_GF_1768
print_help_forever 'ANSWER0'
goto @MOB_GF_1894

:MOB_GF_1786
print_help_forever 'ANSWER1'
goto @MOB_GF_1894

:MOB_GF_1804
print_help_forever 'ANSWER2'
goto @MOB_GF_1894

:MOB_GF_1822
print_help_forever 'ANSWER3'
goto @MOB_GF_1894

:MOB_GF_1840
print_help_forever 'ANSWER4'
goto @MOB_GF_1894

:MOB_GF_1858
print_help_forever 'ANSWER5'
goto @MOB_GF_1894

:MOB_GF_1876
print_help_forever 'ANSWER'
goto @MOB_GF_1894

:MOB_GF_1894
$audio_slot_mobile = 3
gosub @MOB_GF_2311
$ring_a_ding_ding += 1
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1947
goto @MOB_GF_2075

:MOB_GF_1947
gosub @MOB_GF_2609
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1986
goto @MOB_GF_2075

:MOB_GF_1986
$mobile_pause = 0

:MOB_GF_1993
if 
  40 > $mobile_pause
goto_if_false @MOB_GF_2061
wait 0
gosub @MOB_GF_2886
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_2047
goto @MOB_GF_2075

:MOB_GF_2047
$mobile_pause += 1
goto @MOB_GF_1993

:MOB_GF_2061
goto @MOB_GF_1497

:MOB_GF_2068
$timer_mobile_start = get_game_timer 
return 

:MOB_GF_2075
$players_skipping_the_call = 1
$timer_mobile_start = get_game_timer 

:MOB_GF_2087
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @MOB_GF_2140
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2133
$flag_player_answered_phone = 2
return 

:MOB_GF_2133
goto @MOB_GF_2087

:MOB_GF_2140
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
if 
  is_player_playing $player1
goto_if_false @MOB_GF_2309
set_everyone_ignore_player $player1 {state} True
shut_char_up $scplayer {state} True
request_model 330

:MOB_GF_2181
if 
  not has_model_loaded 330
goto_if_false @MOB_GF_2208
wait 0
goto @MOB_GF_2181

:MOB_GF_2208
gosub @MOB_GF_2886
if 
  $flag_player_answered_phone == 2
goto_if_false @MOB_GF_2240
mark_model_as_no_longer_needed 330
return 

:MOB_GF_2240
task_use_mobile_phone $scplayer {start} True
TIMERA = 0

:MOB_GF_2254
if 
  2000 > TIMERA
goto_if_false @MOB_GF_2309
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2302
$flag_player_answered_phone = 2
return 

:MOB_GF_2302
goto @MOB_GF_2254

:MOB_GF_2309
return 

:MOB_GF_2311
if 
  not has_mission_audio_loaded $audio_slot_mobile
goto_if_false @MOB_GF_2602
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2363
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2595

:MOB_GF_2363
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2421
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2421
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_2452
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2452
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2524
if 
  not is_char_shooting $scplayer
goto_if_false @MOB_GF_2524
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_2524
$flag_player_answered_phone = 1
return 

:MOB_GF_2524
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2568
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_2568
$players_skipping_the_call = 2
return 

:MOB_GF_2568
if 
  $onmission == 0
goto_if_false @MOB_GF_2595
$flag_player_answered_phone = 2
return 

:MOB_GF_2595
goto @MOB_GF_2311

:MOB_GF_2602
play_mission_audio $audio_slot_mobile
return 

:MOB_GF_2609
if 
  not has_mission_audio_finished $audio_slot_mobile
goto_if_false @MOB_GF_2884
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2661
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2877

:MOB_GF_2661
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2719
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2719
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_2750
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2750
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2806
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_2806
$flag_player_answered_phone = 1
return 

:MOB_GF_2806
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2850
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_2850
$players_skipping_the_call = 2
return 

:MOB_GF_2850
if 
  $onmission == 0
goto_if_false @MOB_GF_2877
$flag_player_answered_phone = 2
return 

:MOB_GF_2877
goto @MOB_GF_2609

:MOB_GF_2884
return 

:MOB_GF_2886
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2918
$flag_player_answered_phone = 2
return 
goto @MOB_GF_3150

:MOB_GF_2918
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2976
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2976
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_3007
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_3007
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_3079
if 
  not is_char_shooting $scplayer
goto_if_false @MOB_GF_3079
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_3079
$flag_player_answered_phone = 1
return 

:MOB_GF_3079
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_3123
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_3123
$players_skipping_the_call = 2
return 

:MOB_GF_3123
if 
  $onmission == 0
goto_if_false @MOB_GF_3150
$flag_player_answered_phone = 2
return 

:MOB_GF_3150
return 

:MOB_GF_3152
$flag_cell_nation = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$flag_player_answered_phone = 0
$flag_mobile_timer = 0
if 
  is_player_playing $player1
goto_if_false @MOB_GF_3229
task_use_mobile_phone $scplayer {start} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
shut_char_up $scplayer {state} False

:MOB_GF_3229
$timer_mobile_start = get_game_timer 
$timer_mobile_diff = 0
$timer_mobile_now = get_game_timer 
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
clear_prints 
if 
  $flag_new_cont == 0
goto_if_false @MOB_GF_3291
clear_help 
goto @MOB_GF_3298

:MOB_GF_3291
$flag_new_cont = 0

:MOB_GF_3298
mark_model_as_no_longer_needed 330
$onmission = 0
return 

:MOB_GF_3312
$cell_index_start = 0

:MOB_GF_3319
load_mission_audio MissionAudioSlot.Slot1 {audioId} $mobile_audio_labels($cell_index_start,20i)
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3367
load_mission_audio MissionAudioSlot.Slot2 {audioId} $mobile_audio_labels($cell_index_start,20i)

:MOB_GF_3367
$cell_index_start -= 1
$audio_slot_mobile = 1
gosub @MOB_GF_2311
print_now $mobile_print_labels($cell_index_start,20s) {time} 10000 {flag} 1
gosub @MOB_GF_2609
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3429
return 

:MOB_GF_3429
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3497
$audio_slot_mobile = 2
gosub @MOB_GF_2311
print_now $mobile_print_labels($cell_index_start,20s) {time} 10000 {flag} 1
gosub @MOB_GF_2609
goto @MOB_GF_3504

:MOB_GF_3497
$cell_index_start -= 1

:MOB_GF_3504
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3524
return 

:MOB_GF_3524
$cell_index_start += 1
if 
  $skip_the_mobile_call == 0
goto_if_false @MOB_GF_3567
print_help 'CELSKIP'
$skip_the_mobile_call = 1

:MOB_GF_3567
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3593
goto @MOB_GF_3319

:MOB_GF_3593
clear_prints 
return 

//-------------Mission 0---------------
// Originally: Initial 1

:INITIAL
script_name 'INITIAL'
set_la_riots False
$bcesar3_passed_mission = 0
$japcar_mod_garage_open = 0
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$para_default_Vy = 0.0
$para_force_chute_open = 0
$player_fall_state = 0
$player_has_parachute = 0
$para_pickup_flag = 1
$trigger_final_synd_mission = 0
$trigger_scrash2_mission = 0
$trigger_ice_cold_mission = 0
$trigger_final_LA2_missions = 0
$trigger_final_LA1_missions = 0
$funeral_mission_finished = 0
$trucking_help_flag = 0
$oddjob_help_flag = 0
$girlfried_help_flag = 0
$trigger_phonecall_failed = 0
$flag_bcesar_mission_counter = 0
$played_scipted_airscript_cut = 0
$returned_oysters_flag = 0
$flag_returned_shoehorses = 0
$flag_returned_snapshots = 0
$flag_returned_tags = 0
$game_starts_from_scratch = 0
$print_first_help = 0
$voice_over_at_hub = 0
$bike_help = 0
$car_help_played = 0
$drive_by_help = 0
$can_skip_smoking_cutscene = 0
$launch_shit_for_debug_build = 0
$cat_getaway_dialogue = 0
$gate_stay_open = 0
$tlf_underway = 0
$total_roulette_tables = 0
$already_bought_house[0] = 0
$already_bought_house[1] = 0
$already_bought_house[2] = 0
$already_bought_house[3] = 0
$already_bought_house[4] = 0
$already_bought_house[5] = 0
$already_bought_house[6] = 0
$already_bought_house[7] = 0
$already_bought_house[8] = 0
$already_bought_house[9] = 0
$already_bought_house[10] = 0
$already_bought_house[11] = 0
$already_bought_house[12] = 0
$already_bought_house[13] = 0
$already_bought_house[14] = 0
$already_bought_house[15] = 0
$already_bought_house[16] = 0
$already_bought_house[17] = 0
$already_bought_house[18] = 0
$already_bought_house[19] = 0
$already_bought_house[20] = 0
$already_bought_house[21] = 0
$already_bought_house[22] = 0
$already_bought_house[23] = 0
$already_bought_house[24] = 0
$already_bought_house[25] = 0
$already_bought_house[26] = 0
$already_bought_house[27] = 0
$already_bought_house[28] = 0
$already_bought_house[29] = 0
$already_bought_house[30] = 0
$already_bought_house[31] = 0
$prorerty_switch[0] = 0
$prorerty_switch[1] = 1
$prorerty_switch[2] = 2
$prorerty_switch[3] = 3
$prorerty_switch[4] = 4
$prorerty_switch[5] = 5
$prorerty_switch[6] = 6
$prorerty_switch[7] = 7
$prorerty_switch[8] = 8
$prorerty_switch[9] = 9
$prorerty_switch[10] = 10
$prorerty_switch[11] = 11
$prorerty_switch[12] = 12
$prorerty_switch[13] = 13
$prorerty_switch[14] = 14
$prorerty_switch[15] = 15
$prorerty_switch[16] = 16
$prorerty_switch[17] = 17
$prorerty_switch[18] = 18
$prorerty_switch[19] = 19
$prorerty_switch[20] = 20
$prorerty_switch[21] = 21
$prorerty_switch[22] = 22
$prorerty_switch[23] = 23
$prorerty_switch[24] = 24
$prorerty_switch[25] = 25
$prorerty_switch[26] = 26
$prorerty_switch[27] = 27
$prorerty_switch[28] = 28
$prorerty_switch[29] = 29
$prorerty_switch[30] = 30
$prorerty_switch[31] = 31
$zeros_property_bought = 0
$propertyX[0] = -1969.27
$propertyY[0] = 282.47
$propertyZ[0] = 34.6
$propertyX[1] = -2243.6201
$propertyY[1] = 133.2
$propertyZ[1] = 34.8
$propertyX[2] = 426.4972
$propertyY[2] = 2530.689
$propertyZ[2] = 16.1
$save_housepickup[0] = create_locked_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {message} 'PROP_4'
$showroom_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.PropertyR
change_blip_display $showroom_contact_blip {display} BlipDisplay.BlipOnly
$save_housepickup[1] = create_locked_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {message} 'PROP_4'
$zero_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.PropertyR
change_blip_display $zero_contact_blip {display} BlipDisplay.BlipOnly
$save_housepickup[2] = create_locked_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {message} 'PROP_4'
$airstrip_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyR
change_blip_display $airstrip_contact_blip {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[2] {y} $propertyY[2] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$propertyX[3] = 316.0696
$propertyY[3] = -1772.569
$propertyZ[3] = 4.1893
set_closest_entry_exit_flag $propertyX[3] {y} $propertyY[3] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1656 = 30000
$save_housepickup[3] = create_forsale_property_pickup $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {price} $1656 {message} 'PROP_3'
$1624 = add_short_range_sprite_blip_for_contact_point $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {sprite} RadarSprite.PropertyG
change_blip_display $1624 {display} BlipDisplay.BlipOnly
deactivate_garage 'BEACSV'
$propertyX[4] = 2441.002
$propertyY[4] = 695.1089
$propertyZ[4] = 10.6646
set_closest_entry_exit_flag $propertyX[4] {y} $propertyY[4] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1657 = 20000
$save_housepickup[4] = create_locked_property_pickup $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {message} 'PROP_4'
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.PropertyR
change_blip_display $1625 {display} BlipDisplay.BlipOnly
deactivate_garage 'VESVGRG'
$propertyX[5] = -366.1849
$propertyY[5] = 1166.031
$propertyZ[5] = 19.2422
set_closest_entry_exit_flag $propertyX[5] {y} $propertyY[5] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1658 = 30000
$save_housepickup[5] = create_locked_property_pickup $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {message} 'PROP_4'
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.PropertyR
change_blip_display $1626 {display} BlipDisplay.BlipOnly
deactivate_garage 'CN2GAR1'
$propertyX[6] = 1283.844
$propertyY[6] = 2528.7029
$propertyZ[6] = 10.3203
set_closest_entry_exit_flag $propertyX[6] {y} $propertyY[6] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1659 = 50000
$save_housepickup[6] = create_locked_property_pickup $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {message} 'PROP_4'
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.PropertyR
change_blip_display $1627 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB69'
$propertyX[7] = 922.3647
$propertyY[7] = 2011.8979
$propertyZ[7] = 10.766
set_closest_entry_exit_flag $propertyX[7] {y} $propertyY[7] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1660 = 30000
$save_housepickup[7] = create_locked_property_pickup $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {message} 'PROP_4'
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.PropertyR
change_blip_display $1628 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB7'
$propertyX[8] = 2236.928
$propertyY[8] = 162.8057
$propertyZ[8] = 26.8462
set_closest_entry_exit_flag $propertyX[8] {y} $propertyY[8] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1661 = 35000
$save_housepickup[8] = create_locked_property_pickup $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {message} 'PROP_4'
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.PropertyR
change_blip_display $1629 {display} BlipDisplay.BlipOnly
deactivate_garage 'BURBDOO'
$propertyX[9] = 1402.317
$propertyY[9] = 1901.978
$propertyZ[9] = 10.8449
set_closest_entry_exit_flag $propertyX[9] {y} $propertyY[9] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1662 = 30000
$save_housepickup[9] = create_locked_property_pickup $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {message} 'PROP_4'
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.PropertyR
change_blip_display $1630 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB6'
$propertyX[10] = 1687.98
$propertyY[10] = -2100.6431
$propertyZ[10] = 13.3343
$1663 = 10000
set_closest_entry_exit_flag $propertyX[10] {y} $propertyY[10] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[10] = create_forsale_property_pickup $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {price} $1663 {message} 'PROP_3'
$1631 = add_short_range_sprite_blip_for_contact_point $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {sprite} RadarSprite.PropertyG
change_blip_display $1631 {display} BlipDisplay.BlipOnly
deactivate_garage 'CARLAS1'
$propertyX[11] = -2106.6389
$propertyY[11] = 900.5537
$propertyZ[11] = 76.2032
set_closest_entry_exit_flag $propertyX[11] {y} $propertyY[11] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1664 = 100000
$save_housepickup[11] = create_locked_property_pickup $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {message} 'PROP_4'
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.PropertyR
change_blip_display $1632 {display} BlipDisplay.BlipOnly
deactivate_garage 'CESAFE1'
$propertyX[12] = 1331.186
$propertyY[12] = -630.4962
$propertyZ[12] = 108.6349
set_closest_entry_exit_flag $propertyX[12] {y} $propertyY[12] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1665 = 120000
$save_housepickup[12] = create_forsale_property_pickup $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {price} $1665 {message} 'PROP_3'
$1633 = add_short_range_sprite_blip_for_contact_point $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {sprite} RadarSprite.PropertyG
change_blip_display $1633 {display} BlipDisplay.BlipOnly
deactivate_garage 'SAV1SFE'
$propertyX[13] = -2695.7451
$propertyY[13] = 818.4718
$propertyZ[13] = 49.4844
set_closest_entry_exit_flag $propertyX[13] {y} $propertyY[13] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1666 = 20000
$save_housepickup[13] = create_locked_property_pickup $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {message} 'PROP_4'
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.PropertyR
change_blip_display $1634 {display} BlipDisplay.BlipOnly
deactivate_garage 'SAV1SFW'
$propertyX[14] = -2456.926
$propertyY[14] = -131.3292
$propertyZ[14] = 25.5376
set_closest_entry_exit_flag $propertyX[14] {y} $propertyY[14] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1667 = 40000
$save_housepickup[14] = create_locked_property_pickup $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {message} 'PROP_4'
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.PropertyR
change_blip_display $1635 {display} BlipDisplay.BlipOnly
deactivate_garage 'SVGSFS1'
$propertyX[15] = 892.6662
$propertyY[15] = -1639.714
$propertyZ[15] = 14.4567
$1668 = 10000
set_closest_entry_exit_flag $propertyX[15] {y} $propertyY[15] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[15] = create_forsale_property_pickup $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {price} $1668 {message} 'PROP_3'
$1636 = add_short_range_sprite_blip_for_contact_point $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {sprite} RadarSprite.PropertyG
change_blip_display $1636 {display} BlipDisplay.BlipOnly
$propertyX[16] = 1969.932
$propertyY[16] = 1623.243
$propertyZ[16] = 12.3619
$1669 = 6000
set_closest_entry_exit_flag $propertyX[16] {y} $propertyY[16] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[16] = create_locked_property_pickup $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {message} 'PROP_4'
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.PropertyR
change_blip_display $1637 {display} BlipDisplay.BlipOnly
$propertyX[17] = 2234.9089
$propertyY[17] = 1285.698
$propertyZ[17] = 10.3203
$1670 = 6000
set_closest_entry_exit_flag $propertyX[17] {y} $propertyY[17] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[17] = create_locked_property_pickup $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {message} 'PROP_4'
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.PropertyR
change_blip_display $1638 {display} BlipDisplay.BlipOnly
$propertyX[18] = -2213.864
$propertyY[18] = 723.5587
$propertyZ[18] = 48.914
$1671 = 20000
set_closest_entry_exit_flag $propertyX[18] {y} $propertyY[18] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[18] = create_locked_property_pickup $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {message} 'PROP_4'
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.PropertyR
change_blip_display $1639 {display} BlipDisplay.BlipOnly
$propertyX[19] = -1439.014
$propertyY[19] = -1540.59
$propertyZ[19] = 101.2579
$1672 = 100000
set_closest_entry_exit_flag $propertyX[19] {y} $propertyY[19] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[19] = create_locked_property_pickup $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {message} 'PROP_4'
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.PropertyR
change_blip_display $1640 {display} BlipDisplay.BlipOnly
$propertyX[20] = -2027.83
$propertyY[20] = -44.0454
$propertyZ[20] = 38.7692
$1673 = 20000
set_closest_entry_exit_flag $propertyX[20] {y} $propertyY[20] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[20] = create_locked_property_pickup $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {message} 'PROP_4'
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.PropertyR
change_blip_display $1641 {display} BlipDisplay.BlipOnly
$propertyX[21] = -2419.677
$propertyY[21] = 334.1621
$propertyZ[21] = 34.6796
$1674 = 50000
set_closest_entry_exit_flag $propertyX[21] {y} $propertyY[21] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[21] = create_locked_property_pickup $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {message} 'PROP_4'
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.PropertyR
change_blip_display $1642 {display} BlipDisplay.BlipOnly
$propertyX[22] = -2079.0969
$propertyY[22] = -2309.8989
$propertyZ[22] = 30.1172
$1675 = 20000
set_closest_entry_exit_flag $propertyX[22] {y} $propertyY[22] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[22] = create_locked_property_pickup $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {message} 'PROP_4'
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.PropertyR
change_blip_display $1643 {display} BlipDisplay.BlipOnly
$propertyX[23] = -1534.17
$propertyY[23] = 2650.3
$propertyZ[23] = 55.3437
$1676 = 20000
set_closest_entry_exit_flag $propertyX[23] {y} $propertyY[23] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[23] = create_locked_property_pickup $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {message} 'PROP_4'
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.PropertyR
change_blip_display $1644 {display} BlipDisplay.BlipOnly
$propertyX[24] = -1045.775
$propertyY[24] = 1552.976
$propertyZ[24] = 32.798
$1677 = 20000
set_closest_entry_exit_flag $propertyX[24] {y} $propertyY[24] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[24] = create_locked_property_pickup $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {message} 'PROP_4'
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.PropertyR
change_blip_display $1645 {display} BlipDisplay.BlipOnly
$propertyX[25] = 793.5623
$propertyY[25] = -514.4116
$propertyZ[25] = 16.3973
$1678 = 40000
set_closest_entry_exit_flag $propertyX[25] {y} $propertyY[25] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[25] = create_locked_property_pickup $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {message} 'PROP_4'
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.PropertyR
change_blip_display $1646 {display} BlipDisplay.BlipOnly
deactivate_garage 'BURBDO2'
$propertyX[26] = 2103.3459
$propertyY[26] = -1288.339
$propertyZ[26] = 23.8168
$1679 = 10000
set_closest_entry_exit_flag $propertyX[26] {y} $propertyY[26] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[26] = create_forsale_property_pickup $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {price} $1679 {message} 'PROP_3'
$1647 = add_short_range_sprite_blip_for_contact_point $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {sprite} RadarSprite.PropertyG
change_blip_display $1647 {display} BlipDisplay.BlipOnly
$propertyX[27] = 2370.4771
$propertyY[27] = 2165.4741
$propertyZ[27] = 10.3269
$1680 = 6000
set_closest_entry_exit_flag $propertyX[27] {y} $propertyY[27] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[27] = create_locked_property_pickup $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {message} 'PROP_4'
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.PropertyR
change_blip_display $1648 {display} BlipDisplay.BlipOnly
$propertyX[28] = 2220.626
$propertyY[28] = 1837.348
$propertyZ[28] = 10.3203
$1681 = 6000
set_closest_entry_exit_flag $propertyX[28] {y} $propertyY[28] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[28] = create_locked_property_pickup $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {message} 'PROP_4'
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.PropertyR
change_blip_display $1649 {display} BlipDisplay.BlipOnly
$propertyX[29] = 2819.125
$propertyY[29] = 2149.3721
$propertyZ[29] = 10.3203
$1682 = 10000
set_closest_entry_exit_flag $propertyX[29] {y} $propertyY[29] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[29] = create_locked_property_pickup $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {message} 'PROP_4'
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.PropertyR
change_blip_display $1650 {display} BlipDisplay.BlipOnly
$propertyX[30] = 2483.0239
$propertyY[30] = -2001.074
$propertyZ[30] = 13.054
$1683 = 10000
set_closest_entry_exit_flag $propertyX[30] {y} $propertyY[30] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[30] = create_forsale_property_pickup $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {price} $1683 {message} 'PROP_3'
$1651 = add_short_range_sprite_blip_for_contact_point $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {sprite} RadarSprite.PropertyG
change_blip_display $1651 {display} BlipDisplay.BlipOnly
$propertyX[31] = 206.8
$propertyY[31] = -112.1
$propertyZ[31] = 4.3965
$1684 = 10000
set_closest_entry_exit_flag $propertyX[31] {y} $propertyY[31] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[31] = create_locked_property_pickup $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {message} 'PROP_4'
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.PropertyR
change_blip_display $1652 {display} BlipDisplay.BlipOnly
$save_pickupX[0] = 2495.53
$save_pickupY[0] = -1711.88
$save_pickupZ[0] = 1014.24
$save_playerX[0] = 2495.8999
$save_playerY[0] = -1707.45
$save_playerZ[0] = 1013.26
$save_playerH[0] = 0.0
$remove_grove_pickup = 0
$save_pickupX[1] = 1263.05
$save_pickupY[1] = -773.67
$save_pickupZ[1] = 1091.39
$save_playerX[1] = 1263.76
$save_playerY[1] = -776.59
$save_playerZ[1] = 1090.89
$save_playerH[1] = 183.23
$848 = 0
$save_pickupX[2] = 416.9548
$save_pickupY[2] = 2538.813
$save_pickupZ[2] = 9.5077
$save_playerX[2] = 418.0759
$save_playerY[2] = 2536.771
$save_playerZ[2] = 9.0077
$save_playerH[2] = 269.2893
$849 = 0
$save_pickupX[3] = 2367.1919
$save_pickupY[3] = -1121.5179
$save_pickupZ[3] = 1050.382
$save_playerX[3] = 2367.072
$save_playerY[3] = -1123.715
$save_playerZ[3] = 1049.875
$save_playerH[3] = 183.259
$850 = 0
$save_pickupX[4] = 2320.103
$save_pickupY[4] = -1009.116
$save_pickupZ[4] = 1049.718
$save_playerX[4] = 2320.103
$save_playerY[4] = -1013.375
$save_playerZ[4] = 1049.2111
$save_playerH[4] = 181.7957
$851 = 0
$save_pickupX[5] = 2342.873
$save_pickupY[5] = -1063.939
$save_pickupZ[5] = 1048.5229
$save_playerX[5] = 2339.2539
$save_playerY[5] = -1063.86
$save_playerZ[5] = 1048.0229
$save_playerH[5] = 90.7733
$852 = 0
$save_pickupX[6] = 2186.0139
$save_pickupY[6] = -1203.834
$save_pickupZ[6] = 1048.5229
$save_playerX[6] = 2189.8181
$save_playerY[6] = -1203.83
$save_playerZ[6] = 1048.031
$save_playerH[6] = 268.6874
$853 = 0
$save_pickupX[7] = 2313.3689
$save_pickupY[7] = -1208.744
$save_pickupZ[7] = 1048.5229
$save_playerX[7] = 2310.853
$save_playerY[7] = -1210.975
$save_playerZ[7] = 1048.0229
$save_playerH[7] = 130.1776
$854 = 0
$save_pickupX[8] = 2249.397
$save_pickupY[8] = -1209.449
$save_pickupZ[8] = 1048.5229
$save_playerX[8] = 2252.7
$save_playerY[8] = -1209.3879
$save_playerZ[8] = 1048.0229
$save_playerH[8] = 270.3929
$855 = 0
$save_pickupX[9] = 2244.533
$save_pickupY[9] = -1077.663
$save_pickupZ[9] = 1048.5229
$save_playerX[9] = 2241.0691
$save_playerY[9] = -1077.736
$save_playerZ[9] = 1048.031
$save_playerH[9] = 88.0268
$856 = 0
$save_pickupX[10] = 2205.3821
$save_pickupY[10] = -1074.59
$save_pickupZ[10] = 1049.9771
$save_playerX[10] = 2207.8521
$save_playerY[10] = -1075.324
$save_playerZ[10] = 1049.4771
$save_playerH[10] = 261.7253
$857 = 0
$save_pickupX[11] = 2233.0239
$save_pickupY[11] = -1105.717
$save_pickupZ[11] = 1050.39
$save_playerX[11] = 2233.231
$save_playerY[11] = -1107.8521
$save_playerZ[11] = 1049.89
$save_playerH[11] = 182.2496
$858 = 0
$save_pickupX[12] = 2278.1389
$save_pickupY[12] = -1139.583
$save_pickupZ[12] = 1050.3979
$save_playerX[12] = 2281.5239
$save_playerY[12] = -1139.37
$save_playerZ[12] = 1049.8979
$save_playerH[12] = 273.5033
$859 = 0
$save_pickupX[13] = -2037.89
$save_pickupY[13] = -2526.96
$save_pickupZ[13] = 30.13
$save_playerX[13] = -2039.78
$save_playerY[13] = -2529.1001
$save_playerZ[13] = 29.63
$save_playerH[13] = 21.23
$860 = 0
$save_pickupX[14] = 877.81
$save_pickupY[14] = -26.91
$save_pickupZ[14] = 62.69
$save_playerX[14] = 877.04
$save_playerY[14] = -30.16
$save_playerZ[14] = 62.19
$save_playerH[14] = 66.85
$861 = 0
$save_pickupX[15] = -2026.481
$save_pickupY[15] = 156.8028
$save_pickupZ[15] = 28.5391
$save_playerX[15] = -2021.036
$save_playerY[15] = 156.0674
$save_playerZ[15] = 27.6521
$save_playerH[15] = 272.5815
$862 = 0
$save_pickupX[16] = -693.3776
$save_pickupY[16] = 957.824
$save_pickupZ[16] = 11.7829
$save_playerX[16] = -700.3663
$save_playerY[16] = 966.0852
$save_playerZ[16] = 11.3575
$save_playerH[16] = 90.0
$863 = 0
$save_pickupX[17] = 2024.564
$save_pickupY[17] = 996.4728
$save_pickupZ[17] = 10.3203
$save_playerX[17] = 2027.043
$save_playerY[17] = 996.0585
$save_playerZ[17] = 9.9203
$save_playerH[17] = 275.516
$864 = 0
$grove_save_pickup[0] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0]
$grove_save_pickup[1] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1]
$grove_save_pickup[2] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2]
$grove_save_pickup[3] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[3] {y} $save_pickupY[3] {z} $save_pickupZ[3]
$grove_save_pickup[4] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[4] {y} $save_pickupY[4] {z} $save_pickupZ[4]
$grove_save_pickup[5] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5]
$grove_save_pickup[6] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[6] {y} $save_pickupY[6] {z} $save_pickupZ[6]
$grove_save_pickup[7] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[7] {y} $save_pickupY[7] {z} $save_pickupZ[7]
$grove_save_pickup[8] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[8] {y} $save_pickupY[8] {z} $save_pickupZ[8]
$grove_save_pickup[9] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[9] {y} $save_pickupY[9] {z} $save_pickupZ[9]
$grove_save_pickup[10] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[10] {y} $save_pickupY[10] {z} $save_pickupZ[10]
$grove_save_pickup[11] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[11] {y} $save_pickupY[11] {z} $save_pickupZ[11]
$grove_save_pickup[12] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[12] {y} $save_pickupY[12] {z} $save_pickupZ[12]
$save_index = 0
$kickX = 1099.551
$kickY = 1601.4969
$kickZ = 11.5546
$bloodX = -2120.042
$bloodY = -444.2838
$bloodZ = 34.5312
$hotringX = 2695.624
$hotringY = -1704.688
$hotringZ = 10.8437
$stadium_blip1 = add_short_range_sprite_blip_for_contact_point $kickX {y} $kickY {z} $kickZ {sprite} RadarSprite.Race
$stadium_blip2 = add_short_range_sprite_blip_for_contact_point $bloodX {y} $bloodY {z} $bloodZ {sprite} RadarSprite.Race
$stadium_blip3 = add_short_range_sprite_blip_for_contact_point $hotringX {y} $hotringY {z} $hotringZ {sprite} RadarSprite.Race
$lowrideX = 2644.4409
$lowrideY = -2012.558
$lowrideZ = 12.5469
if 
  6 > $fire_temp_counter
goto_if_false @INITIAL_6005
$fire_la_levels_completed($fire_temp_counter,6i) = 0
$fire_sf_levels_completed($fire_temp_counter,6i) = 0
$fire_vg_levels_completed($fire_temp_counter,6i) = 0

:INITIAL_6005
$fire_total_la_completed = 0
$fire_total_sf_completed = 0
$fire_total_vg_completed = 0
$fire_total_levels_completed = 0
$fire_people_created = 0
$burglary_total_made = 0
$burglary_total_items = 0
$player_in_otb_flag = 0
$pros_active = 0
$flag_end_guy_audio_crash4 = 0
$triathalon_selection = 1
$flag_triathalon_passed_1stime = 0
$flag_cycling_skill_help = 0
$flag_mtbike_passed_1stime = 0
$flag_dozer_passed_1stime = 0
$flag_dumper_passed_1stime = 0
$current_highest_score_kickstart = 25
$flag_is_farlie3_running = 0
$mtbikerace_selection = 1
$failed_cesar_race = 0
$flag_stage_of_bcesar_race = 0
$flag_shooting_range_mission = 0
$Srange_X[0] = 292.33
$Srange_Y[0] = -35.39
$Srange_Z[0] = 1000.5
$Srange_X[1] = 289.4804
$Srange_Y[1] = -79.6619
$Srange_Z[1] = 1001.727
$Srange_X[2] = 309.9744
$Srange_Y[2] = -135.3927
$Srange_Z[2] = 1002.826
$Srange_X[3] = 306.8972
$Srange_Y[3] = -164.9947
$Srange_Z[3] = 1000.259
$val_Area = 0
$force_valet_cleanup = 0
$valet_mission_completed = 0
$bball_unlocked = 0
$zero_revenue = 5000
$import_export_is_active = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane = 1
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$remove_player_from_crane = 0
$disable_crane_slide = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$magno_camera_type = 0
$sw6_mission_attempts = 0
$g_Quarry_CashPickupValueKM = 2000
$g_Truck_CashPickupValueKM = 2000
$showroom_revenue = 8000
$strap4_mission_passed_once_flag = 0
$flag_had_taxi_jump_help = 0
$flag_catcutscene_counter = 0
$flag_otb_robbing_peds_panic = 0
$nascar_best_lap_time = 999999
$nascar_best_time = 999999
$best_nascar_result = 999999
$mission_trigger_wait_time = 250
$one_sixteenth = 0.0625
set_var_float_to_var_float $one_thirtysecond = $one_sixteenth
$one_thirtysecond /= 2.0
set_var_float_to_var_float $one_sixtyfourth = $one_thirtysecond
$one_sixtyfourth /= 2.0
$recording = 0
$stop_gargae_for_neil = 1
$bmx_1_x = -425.0
$bmx_1_y = 1410.0
$bmx_1_z = 10.0
$race1_best_position_airrace = 99999999
$race1_best_time_airrace = 99999999
$race2_best_position_airrace = 99999999
$race2_best_time_airrace = 99999999
$race3_best_position_airrace = 99999999
$race3_best_time_airrace = 99999999
$race4_best_position_airrace = 99999999
$race4_best_time_airrace = 99999999
$race5_best_position_airrace = 99999999
$race5_best_time_airrace = 99999999
$race6_best_position_airrace = 99999999
$race6_best_time_airrace = 99999999
$done_race1_progress_airrace = 0
$done_race2_progress_airrace = 0
$done_race3_progress_airrace = 0
$done_race4_progress_airrace = 0
$done_race5_progress_airrace = 0
$done_race6_progress_airrace = 0
$pilot_test_passed = 0
$driving_test_passed = 0
$f1_the360_best_score = 0
$f1_the180_best_score = 0
$f1_the90_best_score = 0
$f1_spinrightgo_best_score = 0
$f1_spinleftgo_best_score = 0
$f1_burnlapright_best_score = 0
$f1_burnlapleft_best_score = 0
$f1_popcontrol_best_score = 0
$f1_cityslicking_best_score = 0
$f1_whiprightterminate_best_score = 0
$f1_whipleftterminate_best_score = 0
$f1_alleyoop_best_score = 0
$f1_wheelieweave_best_score = 0
$f1_pittechnique_best_score = 0
$f1_conecoilright_best_score = 0
$f1_conecoilleft_best_score = 0
$f1_which_missions_are_open_flag = 0
$blood_attempt = 1
$blood_passed_once = 0
$d5_best_scores[0] = 0
$d5_best_scores[1] = 0
$d5_best_scores[2] = 0
$d5_best_scores[3] = 0
$d5_best_scores[4] = 0
$d5_best_scores[5] = 0
$d5_best_scores[6] = 0
$d5_best_scores[7] = 0
$d5_best_scores[8] = 0
$d5_best_scores[9] = 0
$d5_total_missions_open = 1
$d5_last_played = 1
$d5_watched_first_cutscene = 0
$d5_pilot_licence_obtained = 0
$d5_bronze_generator_unlocked = 0
$d5_silver_generator_unlocked = 0
$d5_gold_generator_unlocked = 0
$d5_bronze_generator = create_car_generator 325.12 {y} 2537.1001 {z} 17.52 {heading} 180.0 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$d5_silver_generator = create_car_generator 348.0 {y} 2537.1001 {z} 17.42 {heading} 180.0 {modelId} 513 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$d5_gold_generator = create_car_generator 365.51 {y} 2537.1001 {z} 17.42 {heading} 180.0 {modelId} 425 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
$boat_which_missions_are_open_flag = 1
$boat_accelerate_best_score = 60000
$boat_simplecircuit_best_score = 80000
$boat_slalom_best_score = 180000
$boat_skijump_best_score = 10
$boat_hover_best_score = 200000
$boat_cut_watched = 0
$boat_passed_once = 0
$boat_accelerate_bronzeachieved = 0
$boat_accelerate_silverachieved = 0
$boat_accelerate_goldachieved = 0
$boat_simplecircuit_bronzeachieved = 0
$boat_simplecircuit_silverachieved = 0
$boat_simplecircuit_goldachieved = 0
$boat_slalom_bronzeachieved = 0
$boat_slalom_silverachieved = 0
$boat_slalom_goldachieved = 0
$boat_skijump_bronzeachieved = 0
$boat_skijump_silverachieved = 0
$boat_skijump_goldachieved = 0
$boat_hover_bronzeachieved = 0
$boat_hover_silverachieved = 0
$boat_hover_goldachieved = 0
$boat_bronze_rewardgiven = 0
$boat_silver_rewardgiven = 0
$boat_gold_rewardgiven = 0
$boat_bronze_generator = create_car_generator -2227.104 {y} 2445.7759 {z} 0.0 {heading} 229.3771 {modelId} 484 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$boat_silver_generator = create_car_generator -2223.873 {y} 2409.866 {z} 0.0 {heading} 49.0555 {modelId} 446 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$boat_gold_generator = create_car_generator -2247.8359 {y} 2425.675 {z} 0.0 {heading} 220.2123 {modelId} 493 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $boat_bronze_generator {amount} 0
switch_car_generator $boat_silver_generator {amount} 0
switch_car_generator $boat_gold_generator {amount} 0
$pimp_passed_once = 0
$courierLA_passed_once = 0
$courierLV_passed_once = 0
$courierSF_passed_once = 0
$courierLA_revenue = 2000
$courierSF_revenue = 2000
$courierLV_revenue = 2000
$ca3_driven_to_factory = 0
$bs_passed = 0
$flag_trailor_cutscene = 0
$bs_open_tests = 0
$bs_wheelie_best_score = 0
$bs_stoppie_best_score = 0
$bs_the360_best_score = 0
$bs_the180_best_score = 0
$bs_jumpstop_best_score = 0
$bs_jumpstoppie_best_score = 0
$bs_the360_bronzeachieved = 0
$bs_the360_silverachieved = 0
$bs_the360_goldachieved = 0
$bs_the180_bronzeachieved = 0
$bs_the180_silverachieved = 0
$bs_the180_goldachieved = 0
$bs_wheelie_bronzeachieved = 0
$bs_wheelie_silverachieved = 0
$bs_wheelie_goldachieved = 0
$bs_jumpstop_bronzeachieved = 0
$bs_jumpstop_silverachieved = 0
$bs_jumpstop_goldachieved = 0
$bs_stoppie_bronzeachieved = 0
$bs_stoppie_silverachieved = 0
$bs_stoppie_goldachieved = 0
$bs_jumpstoppie_bronzeachieved = 0
$bs_jumpstoppie_silverachieved = 0
$bs_jumpstoppie_goldachieved = 0
$bs_bronze_rewardgiven = 0
$bs_silver_rewardgiven = 0
$bs_gold_rewardgiven = 0
$bs_bronze_generator = create_car_generator 1174.76 {y} 1364.832 {z} 10.1203 {heading} 280.0355 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$bs_silver_generator = create_car_generator 1174.999 {y} 1366.479 {z} 10.1203 {heading} 282.2258 {modelId} 521 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$bs_gold_generator = create_car_generator 1174.467 {y} 1368.359 {z} 10.1203 {heading} 283.0546 {modelId} 522 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $bs_bronze_generator {amount} 0
switch_car_generator $bs_silver_generator {amount} 0
switch_car_generator $bs_gold_generator {amount} 0
$bce2_played = 0
$recreate_tplay_pickup = 0
$start_the_bcesar_race = 0
$respect_help_played = 0
$flag_bce2_passed_1stime = 0
$flag_syn1_passed_1stime = 0
$flag_cas1_passed_1stime = 0
$flag_bikeschool_passed_1stime = 0
$flag_shtr_passed_1stime = 0
$flag_grav_passed_1stime = 0
$flag_on_courier_mission = 0
$flag_syn1_skip1 = 0
$flag_syn1_skip2 = 0
$flag_bcr1_skip = 0
$statbikestamina_ctr = 0.0
$statbikelowmuscle_ctr = 0.0
$statbike_temp = 0.0
$stattreadstamina_ctr = 0.0
$stattreadlowmuscle_ctr = 0.0
$stattread_temp = 0.0
$trigger_final_LA1_missions = 0
$on_footX = 1.5
$on_footY = 1.5
$on_footZ = 3.0
$in_carX = 4.0
$in_carY = 4.0
$in_carZ = 4.0
$traceX[0] = 1766.134
$traceY[0] = -1704.228
$traceZ[0] = 12.4731
$traceX[1] = -1922.922
$traceY[1] = 282.7151
$traceZ[1] = 40.0391
$traceX[2] = 1636.916
$traceY[2] = 912.9478
$traceZ[2] = 9.689
$traceX[3] = 1701.6899
$traceY[3] = 1649.193
$traceZ[3] = 9.6296
$menu_mode = 0
$cprace_best_position[0] = 999999999
$cprace_best_position[1] = 999999999
$cprace_best_position[2] = 999999999
$cprace_best_position[3] = 999999999
$cprace_best_position[4] = 999999999
$cprace_best_position[5] = 999999999
$cprace_best_position[6] = 999999999
$cprace_best_position[7] = 999999999
$cprace_best_position[8] = 999999999
$cprace_best_position[9] = 999999999
$cprace_best_position[10] = 999999999
$cprace_best_position[11] = 999999999
$cprace_best_position[12] = 999999999
$cprace_best_position[13] = 999999999
$cprace_best_position[14] = 999999999
$cprace_best_position[15] = 999999999
$cprace_best_position[16] = 999999999
$cprace_best_position[17] = 999999999
$cprace_best_position[18] = 999999999
$cprace_best_position[19] = 999999999
$cprace_best_position[20] = 999999999
$cprace_best_position[21] = 999999999
$cprace_best_position[22] = 999999999
$cprace_best_position[23] = 999999999
$cprace_best_position[24] = 999999999
$cprace_best_position[25] = 999999999
$cprace_best_position[26] = 999999999
$cprace_best_position[27] = 999999999
$cprace_best_position[28] = 999999999
$cprace_best_position[29] = 999999999
$cprace_best_times[0] = 999999999
$cprace_best_times[1] = 999999999
$cprace_best_times[2] = 999999999
$cprace_best_times[3] = 999999999
$cprace_best_times[4] = 999999999
$cprace_best_times[5] = 999999999
$cprace_best_times[6] = 999999999
$cprace_best_times[7] = 999999999
$cprace_best_times[8] = 999999999
$cprace_best_times[9] = 999999999
$cprace_best_times[10] = 999999999
$cprace_best_times[11] = 999999999
$cprace_best_times[12] = 999999999
$cprace_best_times[13] = 999999999
$cprace_best_times[14] = 999999999
$cprace_best_times[15] = 999999999
$cprace_best_times[16] = 999999999
$cprace_best_times[17] = 999999999
$cprace_best_times[18] = 999999999
$cprace_best_times[19] = 999999999
$cprace_best_times[20] = 999999999
$cprace_best_times[21] = 999999999
$cprace_best_times[22] = 999999999
$cprace_best_times[23] = 999999999
$cprace_best_times[24] = 999999999
$cprace_best_times[25] = 999999999
$cprace_best_times[26] = 999999999
$cprace_best_times[27] = 999999999
$cprace_best_times[28] = 999999999
$cprace_best_times[29] = 999999999
$cprace_best_lap_times[0] = 999999999
$cprace_best_lap_times[1] = 999999999
$cprace_best_lap_times[2] = 999999999
$cprace_best_lap_times[3] = 999999999
$cprace_best_lap_times[4] = 999999999
$cprace_best_lap_times[5] = 999999999
$cprace_best_lap_times[6] = 999999999
$cprace_best_lap_times[7] = 999999999
$cprace_best_lap_times[8] = 999999999
$cprace_best_lap_times[9] = 999999999
$cprace_best_lap_times[10] = 999999999
$cprace_best_lap_times[11] = 999999999
$cprace_best_lap_times[12] = 999999999
$cprace_best_lap_times[13] = 999999999
$cprace_best_lap_times[14] = 999999999
$cprace_best_lap_times[15] = 999999999
$cprace_best_lap_times[16] = 999999999
$cprace_best_lap_times[17] = 999999999
$cprace_best_lap_times[18] = 999999999
$cprace_best_lap_times[19] = 999999999
$cprace_best_lap_times[20] = 999999999
$cprace_best_lap_times[21] = 999999999
$cprace_best_lap_times[22] = 999999999
$cprace_best_lap_times[23] = 999999999
$cprace_best_lap_times[24] = 999999999
$cprace_best_lap_times[25] = 999999999
$cprace_best_lap_times[26] = 999999999
$cprace_best_lap_times[27] = 999999999
$cprace_best_lap_times[28] = 999999999
$cprace_best_lap_times[29] = 999999999
$got_race_made_progress[0] = 0
$got_race_made_progress[1] = 0
$got_race_made_progress[2] = 0
$got_race_made_progress[3] = 0
$got_race_made_progress[4] = 0
$got_race_made_progress[5] = 0
$got_race_made_progress[6] = 0
$got_race_made_progress[7] = 0
$got_race_made_progress[8] = 0
$got_race_made_progress[9] = 0
$got_race_made_progress[10] = 0
$got_race_made_progress[11] = 0
$got_race_made_progress[12] = 0
$got_race_made_progress[13] = 0
$got_race_made_progress[14] = 0
$got_race_made_progress[15] = 0
$got_race_made_progress[16] = 0
$got_race_made_progress[17] = 0
$got_race_made_progress[18] = 0
$got_race_made_progress[19] = 0
$got_race_made_progress[20] = 0
$got_race_made_progress[21] = 0
$got_race_made_progress[22] = 0
$got_race_made_progress[23] = 0
$got_race_made_progress[24] = 0
$got_race_made_progress[25] = 0
$got_race_made_progress[26] = 0
$got_race_made_progress[27] = 0
$got_race_made_progress[28] = 0
$got_race_made_progress[29] = 0
$total_races_completed = 0
$got_race_mission_complete = 0
$disable_mod_garage = 0
$flag_airrace_mission_passed = 0
$been_in_a_coastguard_before = 0
$flag_player_on_coastguard_mission = 0
$catX = 868.3358
$catY = -29.5529
$catZ = 62.3276
$507 = 257.5389
$513 = -77.23
$519 = 1.3678
$508 = 2297.78
$514 = -16.83
$520 = 26.29
$509 = 652.17
$515 = -559.75
$521 = 15.15
$510 = 1294.09
$516 = 267.78
$522 = 18.54
$511 = 681.595
$517 = -478.7909
$523 = 15.3281
$cat_liquor_banter = 0
$cat_otb_banter = 0
$cat_counter = 0
$flag_cat_mission1_passed = 0
$flag_cat_mission2_passed = 0
$flag_cat_mission3_passed = 0
$flag_cat_mission4_passed = 0
$pilotx = 415.55
$piloty = 2533.5701
$pilotz = 19.18
$hm5_car_gen = create_car_generator 383.178 {y} 2538.8911 {z} 16.53 {heading} 180.0 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $hm5_car_gen {amount} 0
$introX = 2495.2141
$introY = -1687.03
$introZ = 12.5144
$sweetX = 2515.0701
$sweetY = -1673.98
$sweetZ = 12.71
$ryderX = 2459.55
$ryderY = -1687.75
$ryderZ = 12.56
$smokeX = 2070.8701
$smokeY = -1703.01
$smokeZ = 12.55
$strapX = 790.54
$strapY = -1627.91
$strapZ = 12.39
$strap2X = 2486.6101
$strap2Y = -1649.42
$strap2Z = 12.48
$cesarX = 1801.08
$cesarY = -2117.9199
$cesarZ = 12.56
$crashX = 1042.85
$crashY = -1338.62
$crashZ = 12.55
$bcrashX = -2043.34
$bcrashY = -2525.99
$bcrashZ = 29.62
$truthX = -922.5121
$truthY = -1719.395
$truthZ = 76.5703
$truth2X = -2198.8701
$truth2Y = -2261.2019
$truth2Z = 29.6419
$bcesarX = 1552.78
$bcesarY = 39.3031
$bcesarZ = 23.1445
$wuziX = -2154.208
$wuziY = 645.3251
$wuziZ = 51.3516
$syndX = -2623.4971
$syndY = 1405.66
$syndZ = 6.1016
$stealX = -2031.261
$stealY = 179.2488
$stealZ = 27.8359
$zeroX = -2245.6631
$zeroY = 128.8889
$zeroZ = 34.3203
$scrashX = -2030.402
$scrashY = 148.8279
$scrashZ = 27.8359
$garageX = -2030.402
$garageY = 148.8279
$garageZ = 27.8359
$testsX = -2026.811
$testsY = -114.9093
$testsZ = 1034.179
$desertX = -685.2156
$desertY = 923.2191
$desertZ = 11.1531
$desert2X = 327.448
$desert2Y = 2530.095
$desert2Z = 15.8066
$casinoX = 1962.432
$casinoY = 974.675
$casinoZ = 993.4688
$TheheistX = 1962.3979
$TheheistY = 1060.962
$TheheistZ = 993.4688
$heistX = 2270.634
$heistY = 1635.599
$heistZ = 1007.367
$vcrashX = 1598.557
$vcrashY = 2667.8301
$vcrashZ = 9.8203
$docX = 2090.0
$docY = 1451.0
$docZ = 9.8
$mansionX = 1253.788
$mansionY = -785.2594
$mansionZ = 91.0313
$groveX = 2496.0601
$groveY = -1687.96
$groveZ = 12.53
$chickX = -299.6
$chickY = 1530.4
$chickZ = 74.7
$shooter1X = 1498.7
$shooter1Y = -1631.9
$shooter1Z = 14.0
$gravX = 1505.7
$gravY = -1631.9
$gravZ = 14.0
$spaceX = 1512.7
$spaceY = -1631.9
$spaceZ = 14.0
$RouletteX = 1960.8979
$RouletteY = 1008.406
$RouletteZ = 991.4745
$pimpX = 1918.988
$pimpY = -1789.324
$pimpZ = 12.5
$hitchX = -1563.7679
$hitchY = 2690.873
$hitchZ = 54.6985
$otbX = 828.77
$otbY = 4.71
$otbZ = 1003.17
$wheeloX = 1494.3
$wheeloY = -1644.6
$wheeloZ = 14.0
$blackjackX = 1489.5
$blackjackY = -1674.2
$blackjackZ = 12.5
$driving_schoolx = -2132.45
$driving_schooly = -47.0
$driving_schoolz = 35.3
$basketballx = 2323.97
$basketbally = -1517.04
$basketballz = 24.32
$limox = 1979.1
$limoy = -1996.1
$limoz = 12.4
$directorx = 862.9
$directory = -1154.8
$directorz = 23.0
$valetx = -1758.877
$valety = 952.744
$valetz = 23.7487
$banditx = 2258.5229
$bandity = 1613.25
$banditz = 1005.188
$flag_courier_mission_passed = 0
$flag_courier_trigger = 0
$cour1X = 1359.45
$cour1Y = -1755.0
$cour1Z = 12.85
$cour2X = -2590.4399
$cour2Y = 73.21
$cour2Z = 3.91
$cour3X = 1887.79
$cour3Y = 2087.3899
$cour3Z = 10.05
$quarryX = 823.6816
$quarryY = 854.1741
$quarryZ = 10.7949
$mountbX = -2309.23
$mountbY = -1651.22
$mountbZ = 483.09
$carcraneX = -1517.903
$carcraneY = 153.7578
$carcraneZ = 2.7813
$demoX = 2705.1721
$demoY = -1698.127
$demoZ = 10.8515
$poolX = 1134.0
$poolY = -7.0
$poolZ = 1001.0
$boatsX = -2187.3779
$boatsY = 2416.552
$boatsZ = 4.166
$bikesX = 1173.877
$bikesY = 1351.037
$bikesZ = 9.9219
$truckX = -77.6456
$truckY = -1136.401
$truckZ = 0.0781
$danceX = -2645.23
$danceY = 1413.3
$danceZ = -92.69
$kill2pX = -2325.3701
$kill2pY = -131.655
$kill2pZ = 34.3
$bike_2pX = 563.78
$bike_2pY = 2725.1399
$bike_2pZ = 60.49
$cars_2pX = 424.657
$cars_2pY = -1439.674
$cars_2pZ = 30.341
$heli_2pX = 1681.1899
$heli_2pY = -1433.3101
$heli_2pZ = 12.53
$peds_2pX = 1576.734
$peds_2pY = -1609.741
$peds_2pZ = 12.3828
$run_2pX = 2831.2429
$run_2pY = -1674.637
$run_2pZ = 8.9732
$demo_2pX = 2668.769
$demo_2pY = -1753.973
$demo_2pZ = 10.8515
$tagX = -2338.5
$tagY = -109.01
$tagZ = 34.36
$boxingX = 764.4572
$boxingY = 2.745
$boxingZ = 999.7153
$surviveX = 2747.0549
$surviveY = -1691.208
$surviveZ = 10.8515
$sumoX = 2694.2461
$sumoY = -1706.007
$sumoZ = 10.8556
$played_cut1_before_crash4 = 0
$played_cut2_before_crash4 = 0
$created_save_blips = 0
$switch_the_gym_interiors_off = 0
$area_to_look_at_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$price_counter = 0
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$area_looked_for_shops = 0
$item_no_shops = 0
$temp_var_shops = 0
$flag_on_neil_lowrider_mission = 0
$flag_bought_from_binco = 0
$flag_bought_from_prolapse = 0
$flag_bought_from_suburban = 0
$flag_bought_from_zip = 0
$flag_bought_from_victim = 0
$flag_bought_from_didiessachs = 0
$flag_player_got_gimp_suit = 0
$flag_player_got_valet_uniform = 0
$flag_player_got_casino_uniform = 0
$flag_player_got_police_uniform = 0
$flag_player_got_country_clothes = 0
$flag_got_mechanic_clothes = 0
$flag_got_medic_clothes = 0
$flag_got_pimp_clothes = 0
$flag_6weapons_open = 0
$flag_7weapons_open = 0
$flag_8weapons_open = 0
$flag_9weapons_open = 0
$flag_10weapons_open = 0
$flag_11weapons_open = 0
$flag_12weapons_open = 0
$flag_13weapons_open = 0
$flag_14weapons_open = 0
$flag_15weapons_open = 0
$flag_16weapons_open = 0
$flag_bought_gun_for_doberman = 0
$flag_on_doberman_mission = 0
$flag_gang_war_active = 0
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
$spray_shop4 = add_short_range_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray
$2648 = add_short_range_sprite_blip_for_coord -1420.547 {y} 2583.9451 {z} 58.031 {sprite} RadarSprite.Spray
$spray_shop = add_short_range_sprite_blip_for_coord 1966.532 {y} 2162.6499 {z} 10.995 {sprite} RadarSprite.Spray
$2650 = add_short_range_sprite_blip_for_coord -2425.46 {y} 1020.83 {z} 49.39 {sprite} RadarSprite.Spray
$2651 = add_short_range_sprite_blip_for_coord 1021.8 {y} -1018.7 {z} 30.9 {sprite} RadarSprite.Spray
$2652 = add_short_range_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray
$2653 = add_short_range_sprite_blip_for_coord -103.6 {y} 1112.4 {z} 18.7 {sprite} RadarSprite.Spray
$2654 = 0
$added_all_food_blips_before = 0
deactivate_garage 'CN2GAR2'
add_hospital_restart 2027.77 {y} -1420.52 {z} 15.99 {heading} 137.0 {citiesPassed} 0
add_hospital_restart 1180.85 {y} -1325.5699 {z} 12.58 {heading} 271.4 {citiesPassed} 0
add_police_restart 1550.6801 {y} -1675.49 {z} 14.51 {heading} 90.0 {citiesPassed} 0
add_hospital_restart 1244.437 {y} 331.2261 {z} 18.5547 {heading} 7.5465 {citiesPassed} 1
add_police_restart 632.2344 {y} -571.7104 {z} 15.3515 {heading} 267.2 {citiesPassed} 1
add_hospital_restart -2199.719 {y} -2308.075 {z} 29.6181 {heading} 322.8928 {citiesPassed} 1
add_police_restart -2163.8291 {y} -2387.8169 {z} 29.625 {heading} 134.2066 {citiesPassed} 1
add_hospital_restart -2670.2849 {y} 616.4364 {z} 13.4531 {heading} 183.1042 {citiesPassed} 1
add_police_restart -1605.792 {y} 716.8598 {z} 11.0241 {heading} 355.2978 {citiesPassed} 1
add_hospital_restart -316.3832 {y} 1056.045 {z} 18.7344 {heading} 1.6017 {citiesPassed} 2
add_police_restart -212.1889 {y} 979.4168 {z} 18.3219 {heading} 278.0478 {citiesPassed} 2
add_hospital_restart -1514.823 {y} 2527.1189 {z} 54.7443 {heading} 2.3546 {citiesPassed} 2
add_police_restart -1393.072 {y} 2633.116 {z} 54.9491 {heading} 86.0424 {citiesPassed} 2
add_hospital_restart 1578.446 {y} 1770.682 {z} 9.8358 {heading} 99.7567 {citiesPassed} 2
add_police_restart 2337.083 {y} 2453.802 {z} 13.9765 {heading} 90.7643 {citiesPassed} 2
add_stunt_jump 1939.136 {startY} -1968.052 {startZ} 17.6649 {startRadiusX} 2.5 {startRadiusY} 2.728 {startRadiusZ} 3.17 {finishX} 1989.958 {finishY} -1971.951 {finishZ} 28.7249 {finishRadiusX} 11.134 {finishRadiusY} 5.398 {finishRadiusZ} 7.23 {cameraX} 1960.545 {cameraY} -1963.571 {cameraZ} 25.3229 {reward} 500
add_stunt_jump 2209.2749 {startY} -1843.686 {startZ} 19.0964 {startRadiusX} 2.5 {startRadiusY} 4.28 {startRadiusZ} 3.83 {finishX} 2215.124 {finishY} -1889.359 {finishZ} 17.7864 {finishRadiusX} 15.36 {finishRadiusY} 7.01 {finishRadiusZ} 11.05 {cameraX} 2203.3401 {cameraY} -1861.524 {cameraZ} 21.8367 {reward} 500
add_stunt_jump 1177.215 {startY} -1696.761 {startZ} 21.368 {startRadiusX} 2.22 {startRadiusY} 2.5 {startRadiusZ} 5.1 {finishX} 1177.972 {finishY} -1626.719 {finishZ} 32.8079 {finishRadiusX} 18.2 {finishRadiusY} 7.23 {finishRadiusZ} 12.36 {cameraX} 1182.92 {cameraY} -1659.431 {cameraZ} 29.1115 {reward} 500
add_stunt_jump 2278.29 {startY} -1357.8571 {startZ} 31.3255 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.96 {finishX} 2275.2991 {finishY} -1310.756 {finishZ} 30.9555 {finishRadiusX} 10.69 {finishRadiusY} 2.5 {finishRadiusZ} 9.36 {cameraX} 2271.6809 {cameraY} -1331.282 {cameraZ} 32.6621 {reward} 500
add_stunt_jump 2335.3511 {startY} -2163.947 {startZ} 18.5147 {startRadiusX} 3.52 {startRadiusY} 2.5 {startRadiusZ} 3.44 {finishX} 2344.4189 {finishY} -2178.7029 {finishZ} 24.2546 {finishRadiusX} 15.64 {finishRadiusY} 3.05 {finishRadiusZ} 11.96 {cameraX} 2336.8899 {cameraY} -2190.321 {cameraZ} 22.4292 {reward} 500
add_stunt_jump 2825.9331 {startY} -1582.66 {startZ} 18.126 {startRadiusX} 2.5 {startRadiusY} 4.22 {startRadiusZ} 4.92 {finishX} 2787.5039 {finishY} -1569.318 {finishZ} 27.776 {finishRadiusX} 2.704 {finishRadiusY} 19.16 {finishRadiusZ} 14.15 {cameraX} 2805.1211 {cameraY} -1579.892 {cameraZ} 20.7985 {reward} 500
add_stunt_jump 2460.177 {startY} -2567.9109 {startZ} 18.8162 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.65 {finishX} 2464.2061 {finishY} -2597.4551 {finishZ} 25.8862 {finishRadiusX} 8.89 {finishRadiusY} 0.82 {finishRadiusZ} 6.26 {cameraX} 2454.8779 {cameraY} -2593.7871 {cameraZ} 23.9707 {reward} 500
add_stunt_jump 1832.453 {startY} -2386.8049 {startZ} 17.9247 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.01 {finishX} 1833.6121 {finishY} -2372.385 {finishZ} 17.9247 {finishRadiusX} 6.57 {finishRadiusY} 0.5 {finishRadiusZ} 6.65 {cameraX} 1840.288 {cameraY} -2367.095 {cameraZ} 19.4731 {reward} 500
add_stunt_jump 1839.745 {startY} -2514.4771 {startZ} 16.1769 {startRadiusX} 2.5 {startRadiusY} 2.34 {startRadiusZ} 2.77 {finishX} 1921.679 {finishY} -2517.896 {finishZ} 20.6069 {finishRadiusX} 2.512 {finishRadiusY} 6.42 {finishRadiusZ} 8.6999 {cameraX} 1879.752 {cameraY} -2529.894 {cameraZ} 22.7841 {reward} 500
add_stunt_jump 2634.397 {startY} -2107.9839 {startZ} 17.0887 {startRadiusX} 4.172 {startRadiusY} 2.5 {startRadiusZ} 5.06 {finishX} 2595.646 {finishY} -2109.0549 {finishZ} 25.7387 {finishRadiusX} 9.592 {finishRadiusY} 4.178 {finishRadiusZ} 6.1 {cameraX} 2608.7 {cameraY} -2117.1741 {cameraZ} 21.6272 {reward} 500
add_stunt_jump 2352.3 {startY} -1259.068 {startZ} 28.9962 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 2.76 {finishX} 2298.2041 {finishY} -1257.677 {finishZ} 28.7062 {finishRadiusX} 2.62 {finishRadiusY} 20.04 {finishRadiusZ} 9.96 {cameraX} 2312.8379 {cameraY} -1265.614 {cameraZ} 37.7793 {reward} 500
add_stunt_jump 1013.163 {startY} -1270.3621 {startZ} 24.4456 {startRadiusX} 2.0 {startRadiusY} 2.0 {startRadiusZ} 4.05 {finishX} 1045.359 {finishY} -1273.475 {finishZ} 32.9636 {finishRadiusX} 2.0 {finishRadiusY} 14.304 {finishRadiusZ} 13.14 {cameraX} 1037.356 {cameraY} -1264.502 {cameraZ} 25.3721 {reward} 500
add_stunt_jump -973.357 {startY} -223.2307 {startZ} 53.3717 {startRadiusX} 5.35 {startRadiusY} 29.1299 {startRadiusZ} 15.98 {finishX} -1116.028 {finishY} -211.0103 {finishZ} 30.6016 {finishRadiusX} 49.9398 {finishRadiusY} 32.2599 {finishRadiusZ} 27.0399 {cameraX} -1038.667 {cameraY} -187.1254 {cameraZ} 54.0 {reward} 500
add_stunt_jump -2637.0691 {startY} 780.3949 {startZ} 50.0166 {startRadiusX} 6.76 {startRadiusY} 2.52 {startRadiusZ} 9.29 {finishX} -2639.5769 {finishY} 733.2753 {finishZ} 44.1565 {finishRadiusX} 9.91 {finishRadiusY} 2.52 {finishRadiusZ} 9.29 {cameraX} -2633.3589 {cameraY} 757.9172 {cameraZ} 52.0809 {reward} 500
add_stunt_jump -2520.199 {startY} 1169.203 {startZ} 59.5525 {startRadiusX} 6.54 {startRadiusY} 3.09 {startRadiusZ} 5.97 {finishX} -2520.199 {finishY} 1202.12 {finishZ} 53.4025 {finishRadiusX} 33.5399 {finishRadiusY} 6.21 {finishRadiusZ} 17.66 {cameraX} -2513.7781 {cameraY} 1193.925 {cameraZ} 57.4115 {reward} 500
add_stunt_jump -1794.9821 {startY} 1211.6121 {startZ} 35.6794 {startRadiusX} 3.02 {startRadiusY} 2.58 {startRadiusZ} 4.75 {finishX} -1795.802 {finishY} 1258.197 {finishZ} 32.5394 {finishRadiusX} 19.51 {finishRadiusY} 5.13 {finishRadiusZ} 19.69 {cameraX} -1797.49 {cameraY} 1238.395 {cameraZ} 37.9679 {reward} 500
add_stunt_jump -2659.551 {startY} 1533.67 {startZ} 53.2004 {startRadiusX} 2.5 {startRadiusY} 2.62 {startRadiusZ} 4.73 {finishX} -2659.551 {finishY} 1551.645 {finishZ} 45.5003 {finishRadiusX} 7.26 {finishRadiusY} 11.79 {finishRadiusZ} 18.54 {cameraX} -2658.426 {cameraY} 1531.631 {cameraZ} 60.6476 {reward} 500
add_stunt_jump -1690.662 {startY} 1110.392 {startZ} 57.2776 {startRadiusX} 2.3 {startRadiusY} 2.98 {startRadiusZ} 5.08 {finishX} -1662.512 {finishY} 1110.392 {finishZ} 57.2776 {finishRadiusX} 2.3 {finishRadiusY} 18.12 {finishRadiusZ} 12.26 {cameraX} -1649.676 {cameraY} 1114.14 {cameraZ} 50.8559 {reward} 500
add_stunt_jump -2145.4609 {startY} -112.0259 {startZ} 44.3452 {startRadiusX} 7.24 {startRadiusY} 3.3 {startRadiusZ} 5.49 {finishX} -2146.8201 {finishY} -89.4659 {finishZ} 54.3752 {finishRadiusX} 4.36 {finishRadiusY} 3.3 {finishRadiusZ} 14.28 {cameraX} -2141.051 {cameraY} -89.1471 {cameraZ} 45.6462 {reward} 500
add_stunt_jump -267.7739 {startY} 2662.0359 {startZ} 68.7405 {startRadiusX} 3.53 {startRadiusY} 4.02 {startRadiusZ} 6.0 {finishX} -237.1135 {finishY} 2661.936 {finishZ} 79.7505 {finishRadiusX} 7.28 {finishRadiusY} 12.06 {finishRadiusZ} 8.14 {cameraX} -253.199 {cameraY} 2654.0161 {cameraZ} 72.7989 {reward} 500
add_stunt_jump -249.6904 {startY} 2590.8049 {startZ} 66.1194 {startRadiusX} 3.68 {startRadiusY} 2.96 {startRadiusZ} 3.96 {finishX} -249.6904 {finishY} 2575.325 {finishZ} 66.1194 {finishRadiusX} 12.66 {finishRadiusY} 5.21 {finishRadiusZ} 9.68 {cameraX} -256.2141 {cameraY} 2555.207 {cameraZ} 64.5246 {reward} 500
add_stunt_jump -871.5031 {startY} 2308.79 {startZ} 164.5739 {startRadiusX} 3.39 {startRadiusY} 2.87 {startRadiusZ} 4.86 {finishX} -981.079 {finishY} 2300.9131 {finishZ} 111.7538 {finishRadiusX} 18.77 {finishRadiusY} 40.02 {finishRadiusZ} 69.5898 {cameraX} -905.3314 {cameraY} 2315.064 {cameraZ} 163.7206 {reward} 500
add_stunt_jump 2073.7129 {startY} 2366.6531 {startZ} 50.8534 {startRadiusX} 5.54 {startRadiusY} 3.45 {startRadiusZ} 2.18 {finishX} 2050.73 {finishY} 2313.709 {finishZ} 31.8133 {finishRadiusX} 29.69 {finishRadiusY} 11.19 {finishRadiusZ} 26.09 {cameraX} 2077.4861 {cameraY} 2318.8721 {cameraZ} 26.9287 {reward} 500
add_stunt_jump 2170.947 {startY} 2402.6089 {startZ} 62.2905 {startRadiusX} 2.78 {startRadiusY} 3.59 {startRadiusZ} 3.62 {finishX} 2183.6699 {finishY} 2402.6089 {finishZ} 62.2905 {finishRadiusX} 4.92 {finishRadiusY} 9.2 {finishRadiusZ} 9.8 {cameraX} 2232.1101 {cameraY} 2387.5869 {cameraZ} 50.9115 {reward} 500
add_stunt_jump 2418.0559 {startY} 1353.234 {startZ} 12.3641 {startRadiusX} 2.2 {startRadiusY} 5.014 {startRadiusZ} 3.98 {finishX} 2481.9231 {finishY} 1346.354 {finishZ} 25.664 {finishRadiusX} 5.01 {finishRadiusY} 19.984 {finishRadiusZ} 11.63 {cameraX} 2462.313 {cameraY} 1362.702 {cameraZ} 19.7672 {reward} 500
add_stunt_jump 2407.3081 {startY} 1364.379 {startZ} 14.5734 {startRadiusX} 5.16 {startRadiusY} 2.72 {startRadiusZ} 6.0 {finishX} 2399.1201 {finishY} 1386.524 {finishZ} 25.4934 {finishRadiusX} 18.57 {finishRadiusY} 4.61 {finishRadiusZ} 11.62 {cameraX} 2412.772 {cameraY} 1392.431 {cameraZ} 22.3043 {reward} 500
add_stunt_jump 2784.7629 {startY} 2208.72 {startZ} 15.1934 {startRadiusX} 3.05 {startRadiusY} 1.76 {startRadiusZ} 4.33 {finishX} 2738.9839 {finishY} 2208.72 {finishZ} 21.8434 {finishRadiusX} 3.24 {finishRadiusY} 24.23 {finishRadiusZ} 16.15 {cameraX} 2758.656 {cameraY} 2201.665 {cameraZ} 18.3639 {reward} 500
add_stunt_jump 1482.3831 {startY} 2037.004 {startZ} 17.0576 {startRadiusX} 2.09 {startRadiusY} 2.69 {startRadiusZ} 5.58 {finishX} 1482.875 {finishY} 2077.978 {finishZ} 23.8776 {finishRadiusX} 3.284 {finishRadiusY} 4.09 {finishRadiusZ} 7.07 {cameraX} 1489.125 {cameraY} 2065.0239 {cameraZ} 20.6514 {reward} 500
add_stunt_jump 1976.397 {startY} 2593.686 {startZ} 17.2126 {startRadiusX} 3.67 {startRadiusY} 2.0 {startRadiusZ} 5.44 {finishX} 2041.191 {finishY} 2593.686 {finishZ} 30.4425 {finishRadiusX} 5.05 {finishRadiusY} 32.8 {finishRadiusZ} 20.5 {cameraX} 2007.676 {cameraY} 2596.314 {cameraZ} 28.1338 {reward} 500
add_stunt_jump 1636.264 {startY} 2399.7119 {startZ} 15.8903 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 5.08 {finishX} 1636.264 {finishY} 2449.071 {finishZ} 15.8903 {finishRadiusX} 21.33 {finishRadiusY} 2.0 {finishRadiusZ} 13.95 {cameraX} 1642.17 {cameraY} 2440.29 {cameraZ} 18.5118 {reward} 500
add_stunt_jump 2119.23 {startY} 2385.2129 {startZ} 33.7094 {startRadiusX} 2.1 {startRadiusY} 3.36 {startRadiusZ} 2.6 {finishX} 2151.8911 {finishY} 2385.6011 {finishZ} 30.8958 {finishRadiusX} 3.51 {finishRadiusY} 13.42 {finishRadiusZ} 9.04 {cameraX} 2128.1021 {cameraY} 2392.0481 {cameraZ} 32.2357 {reward} 500
add_stunt_jump -2082.5291 {startY} -2498.9319 {startZ} 33.9682 {startRadiusX} 2.34 {startRadiusY} 2.4 {startRadiusZ} 3.55 {finishX} -2110.031 {finishY} -2479.709 {finishZ} 40.8882 {finishRadiusX} 4.42 {finishRadiusY} 4.08 {finishRadiusZ} 5.94 {cameraX} -2101.418 {cameraY} -2496.468 {cameraZ} 37.1704 {reward} 500
add_stunt_jump 2112.408 {startY} 97.9 {startZ} 39.993 {startRadiusX} 5.64 {startRadiusY} 10.28 {startRadiusZ} 8.05 {finishX} 2152.1169 {finishY} 91.33 {finishZ} 39.993 {finishRadiusX} 14.95 {finishRadiusY} 26.95 {finishRadiusZ} 16.22 {cameraX} 2149.9331 {cameraY} 76.6566 {cameraZ} 44.9509 {reward} 500
add_stunt_jump -2100.4131 {startY} -1743.595 {startZ} 199.7312 {startRadiusX} 2.94 {startRadiusY} 4.27 {startRadiusZ} 4.96 {finishX} -2082.491 {finishY} -1718.923 {finishZ} 199.7312 {finishRadiusX} 10.8 {finishRadiusY} 9.39 {finishRadiusZ} 17.62 {cameraX} -2096.167 {cameraY} -1714.572 {cameraZ} 201.0246 {reward} 500
add_stunt_jump -2287.6709 {startY} -2800.7791 {startZ} 22.0541 {startRadiusX} 5.81 {startRadiusY} 13.66 {startRadiusZ} 5.57 {finishX} -2255.1331 {finishY} -2800.7791 {finishZ} 22.0541 {finishRadiusX} 12.56 {finishRadiusY} 28.68 {finishRadiusZ} 14.69 {cameraX} -2253.3191 {cameraY} -2814.645 {cameraZ} 22.8247 {reward} 500
add_stunt_jump 110.8902 {startY} 2428.0491 {startZ} 23.7936 {startRadiusX} 3.58 {startRadiusY} 3.15 {startRadiusZ} 4.2 {finishX} 132.64 {finishY} 2445.781 {finishZ} 32.7336 {finishRadiusX} 4.38 {finishRadiusY} 16.62 {finishRadiusZ} 15.35 {cameraX} 119.7758 {cameraY} 2449.6399 {cameraZ} 27.7167 {reward} 500
add_stunt_jump -894.4963 {startY} 2693.199 {startZ} 44.7303 {startRadiusX} 3.58 {startRadiusY} 2.63 {startRadiusZ} 2.44 {finishX} -941.4026 {finishY} 2662.939 {finishZ} 55.7302 {finishRadiusX} 29.14 {finishRadiusY} 16.02 {finishRadiusZ} 19.74 {cameraX} -931.5991 {cameraY} 2647.9951 {cameraZ} 51.4501 {reward} 500
add_stunt_jump 89.9936 {startY} -243.2046 {startZ} 7.5581 {startRadiusX} 3.96 {startRadiusY} 4.46 {startRadiusZ} 4.48 {finishX} 101.5435 {finishY} -255.4345 {finishZ} 7.5581 {finishRadiusX} 7.39 {finishRadiusY} 11.31 {finishRadiusZ} 14.99 {cameraX} 87.0604 {cameraY} -266.0403 {cameraZ} 9.8153 {reward} 500
add_stunt_jump 160.7991 {startY} -160.2479 {startZ} 6.1453 {startRadiusX} 2.12 {startRadiusY} 1.452 {startRadiusZ} 2.23 {finishX} 171.8147 {finishY} -162.405 {finishZ} 12.321 {finishRadiusX} 2.0 {finishRadiusY} 7.2 {finishRadiusZ} 7.18 {cameraX} 183.2545 {cameraY} -151.314 {cameraZ} 13.5961 {reward} 500
add_stunt_jump -72.3 {startY} 17.7 {startZ} 8.4132 {startRadiusX} 2.81 {startRadiusY} 2.4 {startRadiusZ} 4.48 {finishX} -65.1154 {finishY} 35.7188 {finishZ} 16.6432 {finishRadiusX} 7.71 {finishRadiusY} 2.0 {finishRadiusZ} 7.27 {cameraX} -70.4781 {cameraY} 55.8289 {cameraZ} 15.0868 {reward} 500
add_stunt_jump -39.7989 {startY} 53.3007 {startZ} 6.9223 {startRadiusX} 3.15 {startRadiusY} 2.76 {startRadiusZ} 2.35 {finishX} -36.4289 {finishY} 76.6106 {finishZ} 6.9223 {finishRadiusX} 12.51 {finishRadiusY} 4.48 {finishRadiusZ} 9.67 {cameraX} -42.5507 {cameraY} 77.3671 {cameraZ} 7.8899 {reward} 500
add_stunt_jump 638.7504 {startY} -520.0714 {startZ} 18.8519 {startRadiusX} 2.0 {startRadiusY} 2.15 {startRadiusZ} 2.34 {finishX} 639.8602 {finishY} -545.0903 {finishZ} 22.7619 {finishRadiusX} 10.97 {finishRadiusY} 3.01 {finishRadiusZ} 8.26 {cameraX} 629.1661 {cameraY} -542.9603 {cameraZ} 24.9594 {reward} 500
add_stunt_jump 1749.723 {startY} 779.6028 {startZ} 13.4757 {startRadiusX} 1.68 {startRadiusY} 2.616 {startRadiusZ} 2.164 {finishX} 1749.723 {finishY} 825.0914 {finishZ} 14.2657 {finishRadiusX} 10.718 {finishRadiusY} 2.616 {finishRadiusZ} 5.824 {cameraX} 1744.046 {cameraY} 799.4149 {cameraZ} 12.6554 {reward} 500
add_stunt_jump 110.2446 {startY} -257.9929 {startZ} 6.2739 {startRadiusX} 3.36 {startRadiusY} 3.32 {startRadiusZ} 2.93 {finishX} 92.4846 {finishY} -245.6928 {finishZ} 11.0439 {finishRadiusX} 8.43 {finishRadiusY} 6.92 {finishRadiusZ} 3.99 {cameraX} 92.9552 {cameraY} -254.6195 {cameraZ} 10.1539 {reward} 500
add_stunt_jump 2125.6421 {startY} 95.2542 {startZ} 37.3959 {startRadiusX} 3.83 {startRadiusY} 4.09 {startRadiusZ} 2.57 {finishX} 2098.51 {finishY} 99.5841 {finishZ} 35.8559 {finishRadiusX} 3.83 {finishRadiusY} 8.46 {finishRadiusZ} 5.72 {cameraX} 2116.3931 {cameraY} 88.0306 {cameraZ} 40.2113 {reward} 500
add_stunt_jump -344.6466 {startY} -9.8812 {startZ} 44.9609 {startRadiusX} 14.26 {startRadiusY} 3.45 {startRadiusZ} 3.8 {finishX} -336.1166 {finishY} 28.7688 {finishZ} 37.7609 {finishRadiusX} 16.09 {finishRadiusY} 4.55 {finishRadiusZ} 6.29 {cameraX} -358.2565 {cameraY} 15.6353 {cameraZ} 41.7241 {reward} 500
add_stunt_jump -2589.1799 {startY} 1164.37 {startZ} 59.8256 {startRadiusX} 2.84 {startRadiusY} 2.77 {startRadiusZ} 2.23 {finishX} -2567.125 {finishY} 1231.183 {finishZ} 47.0362 {finishRadiusX} 18.9 {finishRadiusY} 9.04 {finishRadiusZ} 6.05 {cameraX} -2576.0601 {cameraY} 1209.225 {cameraZ} 53.549 {reward} 500
add_stunt_jump -2292.0439 {startY} 1097.71 {startZ} 84.7347 {startRadiusX} 2.082 {startRadiusY} 2.074 {startRadiusZ} 2.02 {finishX} -2350.5911 {finishY} 1101.928 {finishZ} 64.1846 {finishRadiusX} 4.522 {finishRadiusY} 14.204 {finishRadiusZ} 9.03 {cameraX} -2323.731 {cameraY} 1106.665 {cameraZ} 77.177 {reward} 500
add_stunt_jump -2408.2849 {startY} 723.2977 {startZ} 38.6835 {startRadiusX} 2.62 {startRadiusY} 2.5 {startRadiusZ} 1.69 {finishX} -2408.2849 {finishY} 723.2977 {finishZ} 38.6835 {finishRadiusX} 22.41 {finishRadiusY} 2.58 {finishRadiusZ} 4.06 {cameraX} -2407.981 {cameraY} 716.5809 {cameraZ} 38.4334 {reward} 500
add_stunt_jump -2116.356 {startY} 925.6832 {startZ} 87.819 {startRadiusX} 2.68 {startRadiusY} 1.99 {startRadiusZ} 2.48 {finishX} -2069.5649 {finishY} 925.433 {finishZ} 76.689 {finishRadiusX} 2.68 {finishRadiusY} 15.26 {finishRadiusZ} 14.46 {cameraX} -2085.6289 {cameraY} 935.5674 {cameraZ} 85.4677 {reward} 500
add_stunt_jump -1903.192 {startY} 223.3468 {startZ} 37.7965 {startRadiusX} 1.75 {startRadiusY} 1.84 {startRadiusZ} 1.7 {finishX} -1874.382 {finishY} 223.3467 {finishZ} 42.4064 {finishRadiusX} 1.75 {finishRadiusY} 8.13 {finishRadiusZ} 4.67 {cameraX} -1897.0389 {cameraY} 219.1329 {cameraZ} 39.911 {reward} 500
add_stunt_jump -1687.323 {startY} -162.201 {startZ} 17.8603 {startRadiusX} 2.68 {startRadiusY} 3.19 {startRadiusZ} 2.2 {finishX} -1722.537 {finishY} -126.391 {finishZ} 14.9903 {finishRadiusX} 9.09 {finishRadiusY} 7.13 {finishRadiusZ} 13.07 {cameraX} -1716.8781 {cameraY} -142.6182 {cameraZ} 14.6114 {reward} 500
add_stunt_jump -1729.924 {startY} -364.5276 {startZ} 18.2246 {startRadiusX} 2.268 {startRadiusY} 2.51 {startRadiusZ} 2.148 {finishX} -1777.4871 {finishY} -364.2776 {finishZ} 17.9446 {finishRadiusX} 2.268 {finishRadiusY} 15.33 {finishRadiusZ} 7.068 {cameraX} -1745.84 {cameraY} -355.4089 {cameraZ} 14.2197 {reward} 500
add_stunt_jump -1972.099 {startY} -543.0899 {startZ} 38.9862 {startRadiusX} 1.96 {startRadiusY} 2.01 {startRadiusZ} 1.77 {finishX} -1912.318 {finishY} -543.0899 {finishZ} 45.3462 {finishRadiusX} 7.58 {finishRadiusY} 14.78 {finishRadiusZ} 8.69 {cameraX} -1942.915 {cameraY} -539.1157 {cameraZ} 40.2453 {reward} 500
add_stunt_jump 2770.2141 {startY} -1177.4771 {startZ} 70.7527 {startRadiusX} 2.344 {startRadiusY} 1.99 {startRadiusZ} 2.172 {finishX} 2814.468 {finishY} -1182.996 {finishZ} 55.7938 {finishRadiusX} 5.94 {finishRadiusY} 17.38 {finishRadiusZ} 31.52 {cameraX} 2766.031 {cameraY} -1184.692 {cameraZ} 74.9193 {reward} 500
add_stunt_jump 2248.8379 {startY} -2463.2581 {startZ} 15.1049 {startRadiusX} 5.18 {startRadiusY} 2.26 {startRadiusZ} 2.59 {finishX} 2247.468 {finishY} -2432.427 {finishZ} 21.8068 {finishRadiusX} 12.44 {finishRadiusY} 2.26 {finishRadiusZ} 9.32 {cameraX} 2240.7571 {cameraY} -2446.2009 {cameraZ} 16.8109 {reward} 500
add_stunt_jump 2248.832 {startY} -2627.623 {startZ} 15.1806 {startRadiusX} 4.862 {startRadiusY} 2.144 {startRadiusZ} 2.556 {finishX} 2248.832 {finishY} -2655.498 {finishZ} 21.2585 {finishRadiusX} 8.68 {finishRadiusY} 2.144 {finishRadiusZ} 8.498 {cameraX} 2237.6951 {cameraY} -2650.7681 {cameraZ} 16.3791 {reward} 500
add_stunt_jump 2326.1221 {startY} -1508.751 {startZ} 27.0066 {startRadiusX} 2.242 {startRadiusY} 1.728 {startRadiusZ} 2.08 {finishX} 2286.813 {finishY} -1508.7321 {finishZ} 30.3748 {finishRadiusX} 3.86 {finishRadiusY} 9.38 {finishRadiusZ} 8.99 {cameraX} 2299.4041 {cameraY} -1514.5959 {cameraZ} 29.8683 {reward} 500
add_stunt_jump 1623.574 {startY} -1110.9561 {startZ} 61.8178 {startRadiusX} 1.656 {startRadiusY} 2.014 {startRadiusZ} 1.836 {finishX} 1623.574 {finishY} -1079.265 {finishZ} 61.8178 {finishRadiusX} 17.246 {finishRadiusY} 2.014 {finishRadiusZ} 22.1459 {cameraX} 1615.6331 {cameraY} -1093.8 {cameraZ} 64.8724 {reward} 500
add_stunt_jump 1679.646 {startY} -962.2209 {startZ} 65.6737 {startRadiusX} 1.694 {startRadiusY} 2.49 {startRadiusZ} 1.94 {finishX} 1679.646 {finishY} -988.7401 {finishZ} 65.6737 {finishRadiusX} 13.124 {finishRadiusY} 2.49 {finishRadiusZ} 16.74 {cameraX} 1683.881 {cameraY} -977.1464 {cameraZ} 65.7485 {reward} 500
add_stunt_jump 1667.167 {startY} -992.8579 {startZ} 32.7591 {startRadiusX} 6.32 {startRadiusY} 3.768 {startRadiusZ} 2.48 {finishX} 1675.8051 {finishY} -1008.297 {finishZ} 32.7591 {finishRadiusX} 18.7479 {finishRadiusY} 2.438 {finishRadiusZ} 9.79 {cameraX} 1689.156 {cameraY} -1013.63 {cameraZ} 35.6715 {reward} 500
add_stunt_jump 347.0 {startY} -1662.299 {startZ} 35.8218 {startRadiusX} 3.12 {startRadiusY} 2.65 {startRadiusZ} 2.61 {finishX} 351.6596 {finishY} -1700.264 {finishZ} 35.8218 {finishRadiusX} 19.91 {finishRadiusY} 4.13 {finishRadiusZ} 29.76 {cameraX} 337.9746 {cameraY} -1676.993 {cameraZ} 36.7335 {reward} 500
add_stunt_jump 743.1525 {startY} -1132.819 {startZ} 25.7991 {startRadiusX} 1.834 {startRadiusY} 3.606 {startRadiusZ} 2.35 {finishX} 710.0014 {finishY} -1132.989 {finishZ} 25.7991 {finishRadiusX} 1.834 {finishRadiusY} 11.096 {finishRadiusZ} 10.0 {cameraX} 717.1129 {cameraY} -1136.549 {cameraZ} 25.5161 {reward} 500
add_stunt_jump 1395.562 {startY} -1460.566 {startZ} 12.3906 {startRadiusX} 1.672 {startRadiusY} 1.97 {startRadiusZ} 1.75 {finishX} 1402.96 {finishY} -1447.4659 {finishZ} 17.7266 {finishRadiusX} 10.062 {finishRadiusY} 1.97 {finishRadiusZ} 5.15 {cameraX} 1395.0229 {cameraY} -1450.8361 {cameraZ} 17.1621 {reward} 500
add_stunt_jump 1586.489 {startY} 312.8876 {startZ} 23.9965 {startRadiusX} 2.15 {startRadiusY} 6.38 {startRadiusZ} 1.99 {finishX} 1540.208 {finishY} 325.3573 {finishZ} 28.9665 {finishRadiusX} 2.15 {finishRadiusY} 32.8899 {finishRadiusZ} 11.37 {cameraX} 1562.912 {cameraY} 331.3251 {cameraZ} 23.6496 {reward} 500
add_stunt_jump 2058.1001 {startY} -2677.5171 {startZ} 15.4946 {startRadiusX} 3.1 {startRadiusY} 2.48 {startRadiusZ} 2.6 {finishX} 2009.261 {finishY} -2677.5171 {finishZ} 20.8946 {finishRadiusX} 1.93 {finishRadiusY} 16.5499 {finishRadiusZ} 11.26 {cameraX} 2036.566 {cameraY} -2685.281 {cameraZ} 13.2053 {reward} 500
add_stunt_jump 586.0102 {startY} -1773.769 {startZ} 15.2312 {startRadiusX} 2.0 {startRadiusY} 2.27 {startRadiusZ} 1.78 {finishX} 627.7189 {finishY} -1781.119 {finishZ} 22.6912 {finishRadiusX} 2.0 {finishRadiusY} 7.06 {finishRadiusZ} 9.94 {cameraX} 598.5319 {cameraY} -1778.481 {cameraZ} 17.0529 {reward} 500
add_stunt_jump 2172.0779 {startY} 2430.5071 {startZ} 61.747 {startRadiusX} 2.12 {startRadiusY} 3.3 {startRadiusZ} 2.35 {finishX} 2191.592 {finishY} 2436.304 {finishZ} 53.057 {finishRadiusX} 2.5 {finishRadiusY} 12.57 {finishRadiusZ} 25.22 {cameraX} 2227.2339 {cameraY} 2436.885 {cameraZ} 37.788 {reward} 500
add_stunt_jump 2176.1331 {startY} 2268.196 {startZ} 13.4683 {startRadiusX} 2.286 {startRadiusY} 1.934 {startRadiusZ} 1.938 {finishX} 2137.272 {finishY} 2268.2461 {finishZ} 16.7183 {finishRadiusX} 2.286 {finishRadiusY} 10.554 {finishRadiusZ} 6.458 {cameraX} 2148.6011 {cameraY} 2264.8921 {cameraZ} 13.6634 {reward} 500
add_stunt_jump -2213.7729 {startY} -311.0786 {startZ} 38.5339 {startRadiusX} 1.15 {startRadiusY} 3.04 {startRadiusZ} 2.59 {finishX} -2213.7729 {finishY} -327.8282 {finishZ} 44.6738 {finishRadiusX} 10.374 {finishRadiusY} 3.04 {finishRadiusZ} 5.93 {cameraX} -2215.9771 {cameraY} -325.7729 {cameraZ} 42.5119 {reward} 500
$added_all_clothes_blips_before = 50
$init_ped_density = create_object_no_offset #TRDCSGRGDOOR_LVS {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $init_ped_density {heading} 0.0
dont_remove_object $init_ped_density
$fourdragons_door = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $fourdragons_door {heading} 0.0
dont_remove_object $fourdragons_door
$advert_f1 = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
set_object_collision_damage_effect $advert_f1 {state} False
freeze_object_position $advert_f1 {state} True
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
set_object_heading $pc_door {heading} 270.0
freeze_object_position $pc_door {state} True
set_object_collision_damage_effect $pc_door {state} False
$2661 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
freeze_object_position $2662 {state} True
set_object_heading $2662 {heading} 180.0
set_object_collision_damage_effect $2662 {state} False
$2663 = create_object_no_offset #SHUTTER_VEGAS {x} 1055.629 {y} 2087.6699 {z} 12.469
dont_remove_object $2663
$ca3_loadingbay = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading $ca3_loadingbay {heading} 90.0
set_object_dynamic $ca3_loadingbay {state} False
set_object_collision_damage_effect $ca3_loadingbay {state} False
set_object_proofs $ca3_loadingbay {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $ca3_loadingbay
$g_BD_DOOR = create_object_no_offset #CT_GATEXR {x} -2179.353 {y} 661.232 {z} 50.214
set_object_collision_damage_effect $g_BD_DOOR {state} False
dont_remove_object $g_BD_DOOR
$china_town_gate = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $china_town_gate {heading} 0.0
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
dont_remove_object $china_town_gate
dont_remove_object $frontdoorr_a51
$frontdoorl_a51 = create_object_no_offset #A51_LABDOOR {x} 297.766 {y} 1842.618 {z} 6.764
dont_remove_object $frontdoorl_a51
$trapdoor_a51 = create_object #A51_JETDOOR {x} 268.664 {y} 1884.0601 {z} 15.925
  rotate_object $trapdoor_a51 {fromAngle} 90.0 {toAngle} 90.0 {collisionCheck} False
dont_remove_object $trapdoor_a51
change_garage_type 'HBGDSFS' {type} GarageType.ForScriptToOpenAndClose
change_garage_type 'GHOSTDR' {type} GarageType.ForScriptToOpenAndClose
$2676[0] = -2108.0
$2682[0] = 155.0
$2688[0] = 34.0488
$2694[0] = 178.0
$2676[1] = -2089.0
$2682[1] = 172.0
$2688[1] = 34.0488
$2694[1] = 267.0
$2676[2] = -2069.0
$2682[2] = 229.0
$2688[2] = 35.0215
$2694[2] = 270.0
$2676[3] = -2077.0
$2682[3] = 271.0
$2688[3] = 33.7475
$2694[3] = 0.0
$2676[4] = -2096.0
$2682[4] = 261.0
$2688[4] = 34.5808
$2694[4] = 264.0
$2676[5] = -2129.0
$2682[5] = 306.0
$2688[5] = 33.7245
$2694[5] = 0.0
$2700 = 0

:INITIAL_19059
if 
  6 > $2700
goto_if_false @INITIAL_19159
create_object #PORTAKABIN {x} $2676($2700,6f) {y} $2682($2700,6f) {z} $2688($2700,6f) {var_handle} $launchdoor_a51($2700,6i)
set_object_heading $launchdoor_a51($2700,6i) {heading} $2694($2700,6f)
set_object_dynamic $launchdoor_a51($2700,6i) {state} False
dont_remove_object $launchdoor_a51($2700,6i)
$2700 += 1
goto @INITIAL_19059

:INITIAL_19159
$portakabin_num = create_object #FREIGHT_SFW_DOOR {x} -2468.1411 {y} 1547.938 {z} 22.7
dont_remove_object $portakabin_num
$w5_storm_freighter_door = create_object_no_offset #AB_CASDORLOK {x} 2168.644 {y} 1619.4301 {z} 1000.3
set_object_area_visible $w5_storm_freighter_door {areaId} 1
set_object_heading $w5_storm_freighter_door {heading} 270.0
dont_remove_object $w5_storm_freighter_door
$h9_door_c = 0
$tw7_trip_skip_flag = 0
$2705 = create_object #AD_FLATDOOR {x} 1833.36 {y} -1995.45 {z} 12.5
set_object_heading $2705 {heading} 90.0
dont_remove_object $2705
$riot2_door = create_object #AD_FLATDOOR {x} 1819.8101 {y} -1994.66 {z} 12.5
dont_remove_object $riot2_door
$2707 = create_object #AD_FLATDOOR {x} 1827.6801 {y} -1980.0 {z} 12.5
set_object_heading $2707 {heading} 270.0
dont_remove_object $2707
$2708 = create_object #AD_FLATDOOR {x} 1851.84 {y} -1990.67 {z} 12.5
dont_remove_object $2708
$2709 = create_object #AD_FLATDOOR {x} 1867.29 {y} -1984.96 {z} 12.5
set_object_heading $2709 {heading} 270.0
dont_remove_object $2709
$2710 = create_object #AD_FLATDOOR {x} 1866.52 {y} -1998.53 {z} 12.5
set_object_heading $2710 {heading} 90.0
dont_remove_object $2710
$2711 = create_object #AD_FLATDOOR {x} 1899.75 {y} -1984.95 {z} 12.5
set_object_heading $2711 {heading} 270.0
dont_remove_object $2711
$2712 = create_object #AD_FLATDOOR {x} 1914.39 {y} -1992.8199 {z} 12.5
set_object_heading $2712 {heading} 180.0
dont_remove_object $2712
$2713 = create_object #AD_FLATDOOR {x} 1899.01 {y} -1998.5 {z} 12.5
set_object_heading $2713 {heading} 90.0
dont_remove_object $2713
$2714 = create_object #AD_FLATDOOR {x} 1900.89 {y} -2020.11 {z} 12.5
dont_remove_object $2714
$2715 = create_object #AD_FLATDOOR {x} 1914.4 {y} -2020.91 {z} 12.5
set_object_heading $2715 {heading} 180.0
dont_remove_object $2715
$2716 = create_object #AD_FLATDOOR {x} 1906.54 {y} -2035.52 {z} 12.5
set_object_heading $2716 {heading} 90.0
dont_remove_object $2716
$2717 = create_object #AD_FLATDOOR {x} 1851.86 {y} -2020.14 {z} 12.5
dont_remove_object $2717
$2718 = create_object #AD_FLATDOOR {x} 1865.42 {y} -2020.89 {z} 12.5
set_object_heading $2718 {heading} 180.0
dont_remove_object $2718
$2719 = create_object #AD_FLATDOOR {x} 1857.55 {y} -2035.52 {z} 12.5
set_object_heading $2719 {heading} 90.0
dont_remove_object $2719
$2720 = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
set_object_collision_damage_effect $2720 {state} False
freeze_object_position $2720 {state} True
dont_remove_object $2720
$carterwall = create_object_no_offset #TWRCRANE_M_04 {x} -2080.4409 {y} 256.015 {z} 66.869
dont_remove_object $carterwall
$sf_crane1_base = create_object_no_offset #TWRCRANE_M_01 {x} -2080.4409 {y} 256.007 {z} 99.408
dont_remove_object $sf_crane1_base
$sf_crane1_arm = create_object_no_offset #TWRCRANE_M_02 {x} -2080.4409 {y} 296.46 {z} 102.861
dont_remove_object $sf_crane1_arm
$x, $y, $z = get_object_coordinates $carterwall
$heading = get_object_heading $carterwall
$sf_crane1_trolley = create_object_no_offset #LODCRANE_M_04 {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_trolley {heading} $heading
dont_remove_object $sf_crane1_trolley
$x, $y, $z = get_object_coordinates $sf_crane1_base
$heading = get_object_heading $sf_crane1_base
$sf_crane1_base_LOD = create_object_no_offset #LODCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_base_LOD {heading} $heading
dont_remove_object $sf_crane1_base_LOD
connect_lods $carterwall {lodObject} $sf_crane1_trolley
connect_lods $sf_crane1_base {lodObject} $sf_crane1_base_LOD
$sf_crane1_arm_LOD = create_object_no_offset #MAGNOCRANE_01 {x} -1547.978 {y} 123.9883 {z} 26.9332
set_object_heading $sf_crane1_arm_LOD {heading} 45.0
dont_remove_object $sf_crane1_arm_LOD
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$magno_base = create_object_no_offset #MAGNOCRANE_02 {x} $x {y} $y {z} $z
dont_remove_object $magno_base
set_object_heading $magno_base {heading} 140.0
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$heading = get_object_heading $magno_base
$magno_cabin = create_object_no_offset #MAGNOCRANE_03 {x} $x {y} $y {z} $z
set_object_rotation $magno_cabin {x} 15.0 {y} 0.0 {z} $heading
dont_remove_object $magno_cabin
$x, $y, $z = get_object_coordinates $sf_crane1_arm_LOD
$heading = get_object_heading $sf_crane1_arm_LOD
$magno_arm = create_object_no_offset #LODNOCRANE_01 {x} $x {y} $y {z} $z
set_object_heading $magno_arm {heading} $heading
dont_remove_object $magno_arm
$x, $y, $z = get_object_coordinates $magno_base
$heading = get_object_heading $magno_base
$magno_base_LOD = create_object_no_offset #LODNOCRANE_02 {x} $x {y} $y {z} $z
set_object_heading $magno_base_LOD {heading} $heading
dont_remove_object $magno_base_LOD
$x, $y, $z = get_object_coordinates $magno_cabin
$heading = get_object_heading $magno_cabin
$magno_cabin_LOD = create_object_no_offset #LODNOCRANE_03 {x} $x {y} $y {z} $z
set_object_heading $magno_cabin_LOD {heading} $heading
set_object_rotation $magno_cabin_LOD {x} 15.0 {y} 0.0 {z} $heading
dont_remove_object $magno_cabin_LOD
connect_lods $sf_crane1_arm_LOD {lodObject} $magno_arm
connect_lods $magno_base {lodObject} $magno_base_LOD
connect_lods $magno_cabin {lodObject} $magno_cabin_LOD
$arm_rotate_y = create_object_no_offset #QUARRY_CRANEBASE {x} 709.45 {y} 915.93 {z} -19.66
set_object_heading $arm_rotate_y {heading} 135.0
dont_remove_object $arm_rotate_y
$x, $y, $z = get_offset_from_object_in_world_coords $arm_rotate_y {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0689
$heading = get_object_heading $arm_rotate_y
$quarry_base = create_object_no_offset #QUARRY_CRANE {x} $x {y} $y {z} $z
set_object_heading $quarry_base {heading} $heading
dont_remove_object $quarry_base
$x, $y, $z = get_offset_from_object_in_world_coords $quarry_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0206
$heading = get_object_heading $quarry_base
$quarry_stand = create_object_no_offset #QUARRY_CRANEARM {x} $x {y} $y {z} $z
set_object_heading $quarry_stand {heading} $heading
dont_remove_object $quarry_stand
$magno_arm_rotate_y = 45.0
set_object_rotation $quarry_stand {x} 0.0 {y} $magno_arm_rotate_y {z} $heading
$quarry_arm = create_object_no_offset #TWRCRANE_M_04 {x} 2399.2019 {y} 1879.139 {z} 37.55
set_object_heading $quarry_arm {heading} 0.0
dont_remove_object $quarry_arm
$x, $y, $z = get_offset_from_object_in_world_coords $quarry_arm {xOffset} 0.0 {yOffset} 0.0 {zOffset} 32.521
$heading = get_object_heading $quarry_arm
$lv_base = create_object_no_offset #TWRCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $lv_base {heading} $heading
dont_remove_object $lv_base
$x, $y, $z = get_offset_from_object_in_world_coords $lv_base {xOffset} 0.0 {yOffset} 20.0 {zOffset} 3.789
$heading = get_object_heading $lv_base
$lv_arm = create_object_no_offset #TWRCRANE_M_02 {x} $x {y} $y {z} $z
set_object_heading $lv_arm {heading} $heading
dont_remove_object $lv_arm
$x, $y, $z = get_object_coordinates $quarry_arm
$heading = get_object_heading $quarry_arm
$lv_trolley = create_object_no_offset #LODCRANE_M_04 {x} $x {y} $y {z} $z
set_object_heading $lv_trolley {heading} $heading
dont_remove_object $lv_trolley
$x, $y, $z = get_object_coordinates $lv_base
$heading = get_object_heading $lv_base
$lv_base_LOD = create_object_no_offset #LODCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $lv_base_LOD {heading} $heading
dont_remove_object $lv_base_LOD
connect_lods $quarry_arm {lodObject} $lv_trolley
connect_lods $lv_base {lodObject} $lv_base_LOD
$players_money = 0.0
$temp_shopX = 0.0
$temp_shopY = 0.0
$2753 = 0
$flag_attacked_barber = 0
$flag_food_message = 0
change_garage_type 'BODLAWN' {type} GarageType.Transfender
change_garage_type 'MODLAST' {type} GarageType.LocoLowCo
change_garage_type 'MDSSFSE' {type} GarageType.Transfender
change_garage_type 'MDS1SFS' {type} GarageType.WheelArchAngels
change_garage_type 'VECMOD' {type} GarageType.Transfender
$temp_shopZ = 0
$sweet_carX = 2508.1599
$sweet_carY = -1666.47
$sweet_carZ = 13.0
$sweet_carH = 16.0
$ryder_carX = 2473.53
$ryder_carY = -1690.21
$ryder_carZ = 13.0
$ryder_carH = 0.0
$farm_gen3 = create_car_generator 2692.0291 {y} -1674.024 {z} 9.4656 {heading} 178.8279 {modelId} 556 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen3 {state} True
switch_car_generator $farm_gen3 {amount} 0
$nascar_reward_cargen1 = create_car_generator 2676.6951 {y} -1673.756 {z} 9.4038 {heading} 178.8279 {modelId} 494 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $nascar_reward_cargen1 {state} True
switch_car_generator $nascar_reward_cargen1 {amount} 0
$nascar_reward_cargen2 = create_car_generator 1104.932 {y} 1614.808 {z} 12.5546 {heading} 85.6435 {modelId} 424 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $nascar_reward_cargen2 {state} True
switch_car_generator $nascar_reward_cargen2 {amount} 0
$highstakes_car_gen = create_car_generator -1460.87 {y} -1566.7371 {z} 101.0579 {heading} 2.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $highstakes_car_gen {state} True
switch_car_generator $highstakes_car_gen {amount} 101
$farm_gen1 = create_car_generator -1446.239 {y} -1494.731 {z} 101.0514 {heading} 6.0 {modelId} 478 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen1 {state} True
switch_car_generator $farm_gen1 {amount} 101
$farm_gen2 = create_car_generator -1439.6429 {y} -1576.823 {z} 101.0578 {heading} 264.1183 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen2 {state} True
switch_car_generator $farm_gen2 {amount} 101
$gen_car5 = create_car_generator_with_plate $ryder_carX {y} $ryder_carY {z} $ryder_carZ {heading} $ryder_carH {modelId} 600 {primaryColor} 84 {secondaryColor} 84 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_SHERM__"
set_has_been_owned_for_car_generator $gen_car5 {state} True
switch_car_generator $gen_car5 {amount} 101
$gen_car6 = create_car_generator_with_plate $sweet_carX {y} $sweet_carY {z} $sweet_carZ {heading} $sweet_carH {modelId} 492 {primaryColor} 59 {secondaryColor} 34 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "GROVE4L_"
set_has_been_owned_for_car_generator $gen_car6 {state} True
switch_car_generator $gen_car6 {amount} 101
$gen_car8 = create_car_generator 2412.52 {y} -1326.49 {z} 23.74 {heading} 177.92 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $gen_car8 {state} True
switch_car_generator $gen_car8 {amount} 101
$gen_car7 = create_car_generator 2445.5 {y} -1340.8 {z} 23.5 {heading} 180.0 {modelId} 542 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car7 {amount} 101
$gen_car9 = create_car_generator 2499.1799 {y} -1648.26 {z} 13.0 {heading} 158.61 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car9 {amount} 101
$dirtrack_reward_cargen = create_car_generator 2685.981 {y} -2016.21 {z} 12.5501 {heading} 0.337 {modelId} 567 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $dirtrack_reward_cargen {amount} 0
$badlands_car_gen = create_car_generator 1772.0959 {y} -2125.103 {z} 13.0469 {heading} 0.3441 {modelId} 536 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $badlands_car_gen {amount} 101
$gen_car51 = create_car_generator -2048.856 {y} -2521.2759 {z} 31.125 {heading} 171.0232 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car51 {amount} 101
$sw6_car_gen1 = create_car_generator -1956.3 {y} 297.7 {z} 34.3 {heading} 64.8 {modelId} 558 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen1 = create_car_generator -1952.6 {y} 265.7 {z} 39.9 {heading} 292.8 {modelId} 562 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen2 = create_car_generator -1957.7 {y} 277.0 {z} 34.3 {heading} 133.4 {modelId} 560 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen3 = create_car_generator -1952.8 {y} 258.8 {z} 39.9 {heading} 259.1 {modelId} 567 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen4 = create_car_generator -1950.5 {y} 259.7 {z} 34.3 {heading} 53.8 {modelId} 561 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $sw6_car_gen1 {amount} 0
switch_car_generator $steal_car_cargen1 {amount} 0
switch_car_generator $steal_car_cargen2 {amount} 0
switch_car_generator $steal_car_cargen3 {amount} 0
switch_car_generator $steal_car_cargen4 {amount} 0
set_has_been_owned_for_car_generator $sw6_car_gen1 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen1 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen2 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen3 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen4 {state} True
$steal_car_cargen5 = 0
$done_bmx_stunt_progress = 0
$done_nrg500_stunt_progress[0] = 999999999
$done_nrg500_stunt_progress[1] = 999999999
$stunt_bmx1_cargen = 1946.09
$stunt_bmx1_x = -1380.72
$stunt_bmx1_y = 18.0
$2798 = create_car_generator $stunt_bmx1_cargen {y} $stunt_bmx1_x {z} $stunt_bmx1_y {heading} 88.1761 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $2798 {amount} 101
$stunt_nrg500_cargen = -1696.531
$stunt_nrg500_x = 77.7192
$stunt_nrg500_y = 3.5547
$stunt_bmx1_z = create_car_generator $stunt_nrg500_cargen {y} $stunt_nrg500_x {z} $stunt_nrg500_y {heading} 312.9365 {modelId} 522 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $stunt_bmx1_z {amount} 101
$stunt_nrg500_z = create_car_generator -2057.0 {y} 58.0 {z} 28.0 {heading} 90.0 {modelId} 544 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $stunt_nrg500_z {amount} 101
$fire_truck1 = create_car_generator -2057.0 {y} 64.0 {z} 28.0 {heading} 90.0 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck1 {amount} 101
$fire_truck1b = create_car_generator 1763.824 {y} 2075.7571 {z} 9.9093 {heading} 179.4753 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck1b {amount} 101
$fire_truck2 = create_car_generator 1751.512 {y} -1455.1021 {z} 12.5547 {heading} 263.5589 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck2 {amount} 101
$fire_truck3 = create_car_generator 2033.8879 {y} -1432.67 {z} 16.6453 {heading} 177.829 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck3 {amount} 101
$ambulance_1 = create_car_generator 1178.048 {y} -1338.175 {z} 13.405 {heading} 269.4923 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_1 {amount} 101
$ambulance_2 = create_car_generator -303.7814 {y} 1032.326 {z} 19.086 {heading} 268.5016 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_2 {amount} 101
$ambulance_3 = create_car_generator -1507.1639 {y} 2525.4551 {z} 55.1875 {heading} 358.5728 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_3 {amount} 101
$ambulance_4 = create_car_generator 1229.665 {y} 297.6883 {z} 19.0547 {heading} 154.9553 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_4 {amount} 101
$ambulance_5 = create_car_generator -2202.52 {y} -2315.9861 {z} 30.1172 {heading} 319.6815 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_5 {amount} 101
$ambulance_6 = create_car_generator 886.3782 {y} -25.6671 {z} 63.244 {heading} 157.6212 {modelId} 402 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_6 {amount} 101
$gen_car10 = create_car_generator $mountbX {y} $mountbY {z} $mountbZ {heading} 206.39 {modelId} 510 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car10 {amount} 101
$flag_1st_time_nitro_shop = create_car_generator 687.3733 {y} 890.67 {z} -40.4285 {heading} 35.14 {modelId} 406 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $flag_1st_time_nitro_shop {amount} 0
$gen_car1 = create_car_generator 620.882 {y} 861.2452 {z} -43.9534 {heading} 298.7428 {modelId} 486 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car1 {amount} 0
$gen_car22 = create_car_generator 623.3402 {y} 887.0944 {z} -43.5625 {heading} 347.2967 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car22 {amount} 101
$gen_car2 = create_car_generator -2486.0459 {y} 59.184 {z} 24.8284 {heading} 180.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car2 {amount} 101
$gen_car4 = create_car_generator $pimpX {y} $pimpY {z} $pimpZ {heading} 270.0 {modelId} 575 {primaryColor} 1 {secondaryColor} 5 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car4 {amount} 101
$gen_car3 = create_car_generator $hitchX {y} $hitchY {z} $hitchZ {heading} 180.0 {modelId} 543 {primaryColor} 51 {secondaryColor} 4 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car3 {amount} 101
$gen_car19 = create_car_generator $cour1X {y} $cour1Y {z} $cour1Z {heading} 53.1 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car19 {amount} 101
$tank_gen1 = create_car_generator $cour2X {y} $cour2Y {z} $cour2Z {heading} 42.0 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $tank_gen1 {amount} 101
$gen_car21 = create_car_generator $cour3X {y} $cour3Y {z} $cour3Z {heading} 183.4 {modelId} 462 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car21 {amount} 101
$gen_car12 = create_car_generator 2216.9021 {y} -1160.403 {z} 24.7265 {heading} 270.8013 {modelId} 492 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car13 = create_car_generator 2216.9021 {y} -1160.403 {z} 24.7265 {heading} 270.8013 {modelId} 492 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car14 = create_car_generator 2229.001 {y} -1173.798 {z} 24.7331 {heading} 90.5569 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car18 = create_car_generator 2251.0281 {y} -1788.661 {z} 12.7625 {heading} 358.9591 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car18 {amount} 101
$gen_car17 = create_car_generator -2118.1709 {y} -4.0948 {z} 35.0203 {heading} 270.142 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car17 {amount} 101
$gen_car15 = create_car_generator 2596.7471 {y} 1444.245 {z} 10.3203 {heading} 178.2712 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car15 {amount} 101
$catalinas_cargen[0] = create_car_generator 2408.156 {y} -1719.463 {z} 13.6665 {heading} 0.5881 {modelId} 545 {primaryColor} 83 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$catalinas_cargen[1] = create_car_generator -1778.178 {y} 1207.074 {z} 25.1194 {heading} 91.9357 {modelId} 557 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$catalinas_cargen[3] = create_car_generator -1399.717 {y} 2628.5901 {z} 55.7823 {heading} 271.7941 {modelId} 599 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$catalinas_cargen[2] = create_car_generator -379.5 {y} -1443.115 {z} 25.7266 {heading} 88.9244 {modelId} 568 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$catalinas_cargen[4] = create_car_generator -2572.04 {y} 1148.564 {z} 55.7333 {heading} 337.8434 {modelId} 442 {primaryColor} 1 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$catalinas_cargen[5] = create_car_generator 2028.446 {y} 2731.1021 {z} 10.53 {heading} 268.994 {modelId} 589 {primaryColor} 126 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2823[0] = create_car_generator_with_plate 2408.156 {y} -1719.463 {z} 13.6665 {heading} 0.5881 {modelId} 545 {primaryColor} 83 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "HOMEGIRL"
$2823[1] = create_car_generator_with_plate -1778.178 {y} 1207.074 {z} 25.1194 {heading} 91.9357 {modelId} 557 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__NOS___"
$2823[3] = create_car_generator_with_plate -1399.717 {y} 2628.5901 {z} 55.7823 {heading} 271.7941 {modelId} 599 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_CUFFS__"
$2823[2] = create_car_generator_with_plate -379.5 {y} -1443.115 {z} 25.7266 {heading} 88.9244 {modelId} 568 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "FULLAUTO"
$2823[4] = create_car_generator_with_plate -2572.04 {y} 1148.564 {z} 55.7333 {heading} 337.8434 {modelId} 442 {primaryColor} 1 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_TRAUMA_"
$2823[5] = create_car_generator_with_plate 2028.446 {y} 2731.1021 {z} 10.53 {heading} 268.994 {modelId} 589 {primaryColor} 126 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_SPANK__"
set_has_been_owned_for_car_generator $2823[0] {state} True
set_has_been_owned_for_car_generator $2823[1] {state} True
set_has_been_owned_for_car_generator $2823[3] {state} True
set_has_been_owned_for_car_generator $2823[2] {state} True
set_has_been_owned_for_car_generator $2823[4] {state} True
set_has_been_owned_for_car_generator $2823[5] {state} True
switch_car_generator $catalinas_cargen[0] {amount} 0
switch_car_generator $catalinas_cargen[1] {amount} 0
switch_car_generator $catalinas_cargen[3] {amount} 0
switch_car_generator $catalinas_cargen[2] {amount} 0
switch_car_generator $catalinas_cargen[4] {amount} 0
switch_car_generator $catalinas_cargen[5] {amount} 0
switch_car_generator $2823[0] {amount} 0
switch_car_generator $2823[1] {amount} 0
switch_car_generator $2823[3] {amount} 0
switch_car_generator $2823[2] {amount} 0
switch_car_generator $2823[4] {amount} 0
switch_car_generator $2823[5] {amount} 0
$2829[0] = create_car_generator -1673.9399 {y} 439.02 {z} 7.01 {heading} 136.0 {modelId} 402 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 40 {minDelay} 0 {maxDelay} 10000
$2829[1] = create_car_generator 926.45 {y} -1292.29 {z} 13.6 {heading} 270.0 {modelId} 405 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 60 {doorLockChance} 30 {minDelay} 0 {maxDelay} 10000
$2829[2] = create_car_generator -2665.4399 {y} 990.77 {z} 64.45 {heading} 51.0 {modelId} 411 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$2829[3] = create_car_generator -2516.5979 {y} 1228.9189 {z} 36.4283 {heading} 211.5 {modelId} 483 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 30 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[4] = create_car_generator 1122.29 {y} -1699.76 {z} 13.43 {heading} 270.0 {modelId} 445 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[5] = create_car_generator -1006.41 {y} -628.27 {z} 32.0 {heading} 270.0 {modelId} 470 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[6] = create_car_generator -2085.23 {y} -2437.52 {z} 30.31 {heading} 142.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[7] = create_car_generator -1922.1899 {y} 288.34 {z} 40.84 {heading} 180.0 {modelId} 409 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[8] = create_car_generator -16.66 {y} -2521.1699 {z} 36.37 {heading} 210.0 {modelId} 533 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[9] = create_car_generator 1803.38 {y} -1931.05 {z} 13.66 {heading} 0.0 {modelId} 534 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[10] = create_car_generator 1272.24 {y} 2603.03 {z} 10.49 {heading} 117.0 {modelId} 415 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 90 {doorLockChance} 30 {minDelay} 0 {maxDelay} 10000
$2829[11] = create_car_generator -112.4 {y} -41.82 {z} 3.26 {heading} 160.0 {modelId} 489 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[12] = create_car_generator -2456.1001 {y} 741.65 {z} 34.92 {heading} 180.0 {modelId} 439 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[13] = create_car_generator -1951.8101 {y} 2393.8301 {z} 50.08 {heading} 292.0 {modelId} 514 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[14] = create_car_generator -2751.79 {y} -281.5 {z} 6.81 {heading} 0.0 {modelId} 480 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 90 {doorLockChance} 40 {minDelay} 0 {maxDelay} 10000
$2829[15] = create_car_generator 1923.9301 {y} -2118.8899 {z} 13.35 {heading} 0.0 {modelId} 535 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[16] = create_car_generator -1675.9399 {y} -618.74 {z} 13.86 {heading} 256.0 {modelId} 496 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[17] = create_car_generator -2430.22 {y} 320.84 {z} 34.97 {heading} 245.0 {modelId} 580 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[18] = create_car_generator -2265.3301 {y} 200.65 {z} 34.97 {heading} 270.0 {modelId} 475 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[19] = create_car_generator 2282.7 {y} 2535.8799 {z} 10.39 {heading} 180.0 {modelId} 521 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[20] = create_car_generator 2133.04 {y} 1009.75 {z} 10.49 {heading} 270.0 {modelId} 429 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 90 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$2829[21] = create_car_generator 2229.3 {y} 1402.99 {z} 10.82 {heading} 180.0 {modelId} 506 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 90 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$2829[22] = create_car_generator -1550.4 {y} 2687.54 {z} 56.22 {heading} 90.0 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[23] = create_car_generator -2068.6899 {y} -83.75 {z} 35.1 {heading} 0.0 {modelId} 579 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[24] = create_car_generator 682.17 {y} -1867.46 {z} 4.82 {heading} 180.0 {modelId} 424 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[25] = create_car_generator 1747.87 {y} -2098.03 {z} 13.28 {heading} 180.0 {modelId} 536 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[26] = create_car_generator 1144.46 {y} -1101.26 {z} 25.35 {heading} 300.0 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[27] = create_car_generator -2406.25 {y} -2180.8401 {z} 33.39 {heading} 180.0 {modelId} 500 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[28] = create_car_generator 2163.79 {y} 1810.23 {z} 10.58 {heading} 180.0 {modelId} 477 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$2829[29] = create_car_generator 2207.4299 {y} 1286.13 {z} 10.57 {heading} 180.0 {modelId} 587 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
switch_car_generator $2829[0] {amount} 0
switch_car_generator $2829[1] {amount} 0
switch_car_generator $2829[2] {amount} 0
switch_car_generator $2829[3] {amount} 0
switch_car_generator $2829[4] {amount} 0
switch_car_generator $2829[5] {amount} 0
switch_car_generator $2829[6] {amount} 0
switch_car_generator $2829[7] {amount} 0
switch_car_generator $2829[8] {amount} 0
switch_car_generator $2829[9] {amount} 0
switch_car_generator $2829[10] {amount} 0
switch_car_generator $2829[11] {amount} 0
switch_car_generator $2829[12] {amount} 0
switch_car_generator $2829[13] {amount} 0
switch_car_generator $2829[14] {amount} 0
switch_car_generator $2829[15] {amount} 0
switch_car_generator $2829[16] {amount} 0
switch_car_generator $2829[17] {amount} 0
switch_car_generator $2829[18] {amount} 0
switch_car_generator $2829[19] {amount} 0
switch_car_generator $2829[20] {amount} 0
switch_car_generator $2829[21] {amount} 0
switch_car_generator $2829[22] {amount} 0
switch_car_generator $2829[23] {amount} 0
switch_car_generator $2829[24] {amount} 0
switch_car_generator $2829[25] {amount} 0
switch_car_generator $2829[26] {amount} 0
switch_car_generator $2829[27] {amount} 0
switch_car_generator $2829[28] {amount} 0
switch_car_generator $2829[29] {amount} 0
$2864 = create_car_generator -540.0441 {y} -1396.147 {z} 15.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iFieldHarvester = create_car_generator -289.5517 {y} -1389.627 {z} 10.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2866 = create_car_generator -192.9 {y} -1331.307 {z} 21.5 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2859 = create_car_generator -273.9629 {y} -1507.5959 {z} 5.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iFieldTractor = create_car_generator -395.1952 {y} -1293.1899 {z} 30.8 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2861 = create_car_generator -186.6494 {y} -1339.215 {z} 6.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2867 = create_car_generator -1030.249 {y} -1050.188 {z} 129.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2868 = create_car_generator -1169.425 {y} -989.6309 {z} 129.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2862 = create_car_generator -1110.79 {y} -947.7925 {z} 129.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2869 = create_car_generator 16.8768 {y} 49.991 {z} 3.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2870 = create_car_generator 81.051 {y} 3.3203 {z} 1.5 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2871 = create_car_generator -15.2986 {y} -84.6533 {z} 3.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2863 = create_car_generator 81.0533 {y} 3.3234 {z} 1.5 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
switch_car_generator $2864 {amount} 0
switch_car_generator $iFieldHarvester {amount} 0
switch_car_generator $2866 {amount} 0
switch_car_generator $2867 {amount} 0
switch_car_generator $2868 {amount} 0
switch_car_generator $2869 {amount} 0
switch_car_generator $2870 {amount} 0
switch_car_generator $2871 {amount} 0
switch_car_generator $2859 {amount} 101
switch_car_generator $iFieldTractor {amount} 101
switch_car_generator $2861 {amount} 101
switch_car_generator $2862 {amount} 101
switch_car_generator $2863 {amount} 101
$gun_toreno4 = 0
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'GF1' {state} False
switch_entry_exit 'GF2' {state} False
switch_entry_exit 'GF3' {state} False
switch_entry_exit 'GF4' {state} False
switch_entry_exit 'GF5' {state} False
switch_entry_exit 'GF6' {state} False
$hunter_created = 0
$played_casino4_before = 0
$played_vcrash1_before = 0
$played_ryder1_before = 0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2435.2 {fromY} -1741.0 {toX} 2454.8999 {toY} -1723.4 {spawnPoliceAAtX} 2481.0 {spawnPoliceAAtY} -1707.0 {headedTowardsAAtX} 2480.0 {headedTowardsAAtY} -1732.0 {spawnPoliceBAtX} 2481.0 {spawnPoliceBAtY} -1707.0 {headedTowardsBAtX} 2480.0 {headedTowardsBAtY} -1732.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2680.6001 {fromY} -1665.8 {toX} 2702.2 {toY} -1647.8 {spawnPoliceAAtX} 2724.7 {spawnPoliceAAtY} -1610.1 {headedTowardsAAtX} 2727.2 {headedTowardsAAtY} -1656.9 {spawnPoliceBAtX} 2724.0 {spawnPoliceBAtY} -1610.0 {headedTowardsBAtX} 2727.0 {headedTowardsBAtY} -1656.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2878.3999 {fromY} -1972.5 {toX} 2869.7 {toY} -1954.9 {spawnPoliceAAtX} 2890.0 {spawnPoliceAAtY} -1912.0 {headedTowardsAAtX} 2877.0 {headedTowardsAAtY} -1962.0 {spawnPoliceBAtX} 2893.0 {spawnPoliceBAtY} -2007.0 {headedTowardsBAtX} 2881.0 {headedTowardsBAtY} -1970.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2807.0 {fromY} -1152.0 {toX} 2822.0 {toY} -1135.0 {spawnPoliceAAtX} 2872.0 {spawnPoliceAAtY} -1105.0 {headedTowardsAAtX} 2874.0 {headedTowardsAAtY} -1133.0 {spawnPoliceBAtX} 2866.0 {spawnPoliceBAtY} -1111.0 {headedTowardsBAtX} 2864.0 {headedTowardsBAtY} -1138.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2261.0 {fromY} -1263.0 {toX} 2249.0 {toY} -1258.0 {spawnPoliceAAtX} 2173.0 {spawnPoliceAAtY} -1232.0 {headedTowardsAAtX} 2170.0 {headedTowardsAAtY} -1257.0 {spawnPoliceBAtX} 2184.0 {spawnPoliceBAtY} -1258.0 {headedTowardsBAtX} 2202.0 {headedTowardsBAtY} -1260.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2157.0 {fromY} -1500.0 {toX} 2173.0 {toY} -1495.0 {spawnPoliceAAtX} 2131.0 {spawnPoliceAAtY} -1461.0 {headedTowardsAAtX} 2131.0 {headedTowardsAAtY} -1495.0 {spawnPoliceBAtX} 2130.0 {spawnPoliceBAtY} -1460.0 {headedTowardsBAtX} 2131.0 {headedTowardsBAtY} -1494.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2295.0 {fromY} -1772.0 {toX} 2302.0 {toY} -1761.0 {spawnPoliceAAtX} 2263.0 {spawnPoliceAAtY} -1780.0 {headedTowardsAAtX} 2263.0 {headedTowardsAAtY} -1809.0 {spawnPoliceBAtX} 2327.0 {spawnPoliceBAtY} -1821.0 {headedTowardsBAtX} 2303.0 {headedTowardsBAtY} -1817.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1518.0 {fromY} -1700.0 {toX} 1538.0 {toY} -1683.0 {spawnPoliceAAtX} 1564.0 {spawnPoliceAAtY} -1730.0 {headedTowardsAAtX} 1527.0 {headedTowardsAAtY} -1730.0 {spawnPoliceBAtX} 1565.0 {spawnPoliceBAtY} -1731.0 {headedTowardsBAtX} 1527.1 {headedTowardsBAtY} -1732.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2531.0 {fromY} -1861.0 {toX} 2547.0 {toY} -1839.0 {spawnPoliceAAtX} 2581.0 {spawnPoliceAAtY} -1911.0 {headedTowardsAAtX} 2578.0 {headedTowardsAAtY} -1865.0 {spawnPoliceBAtX} 2560.0 {spawnPoliceBAtY} -1896.0 {headedTowardsBAtX} 2561.0 {headedTowardsBAtY} -1848.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1833.0 {fromY} -1617.0 {toX} 1854.0 {toY} -1608.0 {spawnPoliceAAtX} 1820.0 {spawnPoliceAAtY} -1590.0 {headedTowardsAAtX} 1818.0 {headedTowardsAAtY} -1605.0 {spawnPoliceBAtX} 1824.0 {spawnPoliceBAtY} -1641.0 {headedTowardsBAtX} 1824.0 {headedTowardsBAtY} -1619.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1694.0 {fromY} -1518.0 {toX} 1706.0 {toY} -1505.0 {spawnPoliceAAtX} 1720.0 {spawnPoliceAAtY} -1476.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} -1487.0 {spawnPoliceBAtX} 1718.0 {spawnPoliceBAtY} -1473.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} -1474.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1707.0 {fromY} -1467.0 {toX} 1711.0 {toY} -1457.0 {spawnPoliceAAtX} 1689.0 {spawnPoliceAAtY} -1443.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} -1444.0 {spawnPoliceBAtX} 1688.0 {spawnPoliceBAtY} -1443.0 {headedTowardsBAtX} -1709.0 {headedTowardsBAtY} -1444.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 1815.0 {fromY} -1406.0 {toX} 1829.0 {toY} -1388.0 {spawnPoliceAAtX} 1840.0 {spawnPoliceAAtY} -1410.0 {headedTowardsAAtX} 1835.0 {headedTowardsAAtY} -1402.0 {spawnPoliceBAtX} 1841.0 {spawnPoliceBAtY} -1411.0 {headedTowardsBAtX} 1836.0 {headedTowardsBAtY} -1403.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 1804.0 {fromY} -1353.0 {toX} 1807.0 {toY} -1342.0 {spawnPoliceAAtX} 1781.0 {spawnPoliceAAtY} -1366.0 {headedTowardsAAtX} 1784.0 {headedTowardsAAtY} -1352.0 {spawnPoliceBAtX} 1781.0 {spawnPoliceBAtY} -1366.0 {headedTowardsBAtX} 1784.0 {headedTowardsBAtY} -1352.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1710.0 {fromY} -1339.0 {toX} 1724.0 {toY} -1319.0 {spawnPoliceAAtX} 1684.0 {spawnPoliceAAtY} -1305.0 {headedTowardsAAtX} 1712.0 {headedTowardsAAtY} -1305.0 {spawnPoliceBAtX} 1684.0 {spawnPoliceBAtY} -1305.0 {headedTowardsBAtX} 1712.0 {headedTowardsBAtY} -1305.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1711.0 {fromY} -1204.0 {toX} 1720.0 {toY} -1194.0 {spawnPoliceAAtX} 1747.0 {spawnPoliceAAtY} -1160.0 {headedTowardsAAtX} 1712.0 {headedTowardsAAtY} -1159.0 {spawnPoliceBAtX} 1747.0 {spawnPoliceBAtY} -1160.0 {headedTowardsBAtX} 1712.0 {headedTowardsBAtY} -1159.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2389.0 {fromY} -1479.0 {toX} 2404.0 {toY} -1469.0 {spawnPoliceAAtX} 2429.0 {spawnPoliceAAtY} -1457.0 {headedTowardsAAtX} 2429.0 {headedTowardsAAtY} -1479.0 {spawnPoliceBAtX} 2428.0 {spawnPoliceBAtY} -1456.0 {headedTowardsBAtX} 2430.0 {headedTowardsBAtY} -1480.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2443.0 {fromY} -1221.0 {toX} 2457.0 {toY} -1209.0 {spawnPoliceAAtX} 2474.0 {spawnPoliceAAtY} -1253.0 {headedTowardsAAtX} 2447.0 {headedTowardsAAtY} -1255.0 {spawnPoliceBAtX} 2475.0 {spawnPoliceBAtY} -1254.0 {headedTowardsBAtX} 2448.0 {headedTowardsBAtY} -1256.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2627.0 {fromY} -1134.0 {toX} 2632.0 {toY} -1132.0 {spawnPoliceAAtX} 2649.0 {spawnPoliceAAtY} -1150.0 {headedTowardsAAtX} 2642.0 {headedTowardsAAtY} -1139.0 {spawnPoliceBAtX} 2650.0 {spawnPoliceBAtY} -1151.0 {headedTowardsBAtX} 2643.0 {headedTowardsBAtY} -1140.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2677.0 {fromY} -1095.0 {toX} 2697.0 {toY} -1060.0 {spawnPoliceAAtX} 2645.0 {spawnPoliceAAtY} -1106.0 {headedTowardsAAtX} 2646.0 {headedTowardsAAtY} -1077.0 {spawnPoliceBAtX} 2646.0 {spawnPoliceBAtY} -1107.0 {headedTowardsBAtX} 2647.0 {headedTowardsBAtY} -1078.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1947.0 {fromY} -1055.0 {toX} 1955.0 {toY} -1038.0 {spawnPoliceAAtX} 1989.0 {spawnPoliceAAtY} -1025.0 {headedTowardsAAtX} 1978.0 {headedTowardsAAtY} -1057.0 {spawnPoliceBAtX} 1990.0 {spawnPoliceBAtY} -1026.0 {headedTowardsBAtX} 1979.0 {headedTowardsBAtY} -1058.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1858.0 {fromY} -1123.0 {toX} 1876.0 {toY} -1113.0 {spawnPoliceAAtX} 1895.0 {spawnPoliceAAtY} -1133.0 {headedTowardsAAtX} 1865.0 {headedTowardsAAtY} -1133.0 {spawnPoliceBAtX} 1896.0 {spawnPoliceBAtY} -1134.0 {headedTowardsBAtX} 1866.0 {headedTowardsBAtY} -1134.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1977.0 {fromY} -1416.0 {toX} 1996.0 {toY} -1411.0 {spawnPoliceAAtX} 1966.0 {spawnPoliceAAtY} -1467.0 {headedTowardsAAtX} 1988.0 {headedTowardsAAtY} -1465.0 {spawnPoliceBAtX} 1967.0 {spawnPoliceBAtY} -1468.0 {headedTowardsBAtX} 1989.0 {headedTowardsBAtY} -1466.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2191.0 {fromY} -1345.0 {toX} 2202.0 {toY} -1338.0 {spawnPoliceAAtX} 2216.0 {spawnPoliceAAtY} -1355.0 {headedTowardsAAtX} 2216.0 {headedTowardsAAtY} -1343.0 {spawnPoliceBAtX} 2217.0 {spawnPoliceBAtY} -1356.0 {headedTowardsBAtX} 2217.0 {headedTowardsBAtY} -1344.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2339.0 {fromY} -1161.0 {toX} 2345.0 {toY} -1148.0 {spawnPoliceAAtX} 2372.0 {spawnPoliceAAtY} -1182.0 {headedTowardsAAtX} 2373.0 {headedTowardsAAtY} -1157.0 {spawnPoliceBAtX} 2373.0 {spawnPoliceBAtY} -1183.0 {headedTowardsBAtX} 2374.0 {headedTowardsBAtY} -1158.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2034.0 {fromY} -1271.0 {toX} 2049.0 {toY} -1251.0 {spawnPoliceAAtX} 2072.0 {spawnPoliceAAtY} -1281.0 {headedTowardsAAtX} 2070.0 {headedTowardsAAtY} -1261.0 {spawnPoliceBAtX} 2073.0 {spawnPoliceBAtY} -1282.0 {headedTowardsBAtX} 2070.0 {headedTowardsBAtY} -2074.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1410.0 {fromY} -1250.0 {toX} 1427.0 {toY} -1233.0 {spawnPoliceAAtX} 1457.0 {spawnPoliceAAtY} -1263.0 {headedTowardsAAtX} 1456.0 {headedTowardsAAtY} -1243.0 {spawnPoliceBAtX} 1452.0 {spawnPoliceBAtY} -1211.0 {headedTowardsBAtX} 1453.0 {headedTowardsBAtY} -1238.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1427.0 {fromY} -1334.0 {toX} 1433.0 {toY} -1323.0 {spawnPoliceAAtX} 1419.0 {spawnPoliceAAtY} -1270.0 {headedTowardsAAtX} 1419.0 {headedTowardsAAtY} -1286.0 {spawnPoliceBAtX} 1420.0 {spawnPoliceBAtY} -1253.0 {headedTowardsBAtX} 1419.0 {headedTowardsBAtY} -1257.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1520.0 {fromY} -1655.0 {toX} 1538.0 {toY} -1642.0 {spawnPoliceAAtX} 1561.0 {spawnPoliceAAtY} -1626.0 {headedTowardsAAtX} 1530.0 {headedTowardsAAtY} -1627.0 {spawnPoliceBAtX} 1562.0 {spawnPoliceBAtY} -1620.0 {headedTowardsBAtX} 1531.0 {headedTowardsBAtY} -1622.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1129.0 {fromY} -1669.0 {toX} 1140.0 {toY} -1663.0 {spawnPoliceAAtX} 1095.0 {spawnPoliceAAtY} -1665.0 {headedTowardsAAtX} 1130.0 {headedTowardsAAtY} -1665.0 {spawnPoliceBAtX} 1117.0 {spawnPoliceBAtY} -1714.0 {headedTowardsBAtX} 1138.0 {headedTowardsBAtY} -1715.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1167.0 {fromY} -1782.0 {toX} 1190.0 {toY} -1769.0 {spawnPoliceAAtX} 1148.0 {spawnPoliceAAtY} -1744.0 {headedTowardsAAtX} 1176.0 {headedTowardsAAtY} -1743.0 {spawnPoliceBAtX} 1141.0 {spawnPoliceBAtY} -1739.0 {headedTowardsBAtX} 1175.0 {headedTowardsBAtY} -1737.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1207.0 {fromY} -1214.0 {toX} 1216.0 {toY} -1193.0 {spawnPoliceAAtX} 1175.0 {spawnPoliceAAtY} -1210.0 {headedTowardsAAtX} 1194.0 {headedTowardsAAtY} -1209.0 {spawnPoliceBAtX} 1179.0 {spawnPoliceBAtY} -1204.0 {headedTowardsBAtX} 1197.0 {headedTowardsBAtY} -1204.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1261.0 {fromY} -1721.0 {toX} 1271.0 {toY} -1707.0 {spawnPoliceAAtX} 1295.0 {spawnPoliceAAtY} -1680.0 {headedTowardsAAtX} 1295.0 {headedTowardsAAtY} -1717.0 {spawnPoliceBAtX} 1300.0 {spawnPoliceBAtY} -1670.0 {headedTowardsBAtX} 1300.0 {headedTowardsBAtY} -1704.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1237.0 {fromY} -1290.0 {toX} 1257.0 {toY} -1271.0 {spawnPoliceAAtX} 1214.0 {spawnPoliceAAtY} -1253.0 {headedTowardsAAtX} 1215.0 {headedTowardsAAtY} -1281.0 {spawnPoliceBAtX} 1215.0 {spawnPoliceBAtY} -1215.0 {headedTowardsBAtX} -1215.0 {headedTowardsBAtY} -1281.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1013.0 {fromY} -1158.0 {toX} 1030.0 {toY} -1132.0 {spawnPoliceAAtX} 1060.0 {spawnPoliceAAtY} -1174.0 {headedTowardsAAtX} 1060.0 {headedTowardsAAtY} -1148.0 {spawnPoliceBAtX} 1060.0 {spawnPoliceBAtY} -1174.0 {headedTowardsBAtX} 1060.0 {headedTowardsBAtY} -1148.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1089.0 {fromY} -1212.0 {toX} 1076.0 {toY} -1204.0 {spawnPoliceAAtX} 1061.0 {spawnPoliceAAtY} -1223.0 {headedTowardsAAtX} 1064.0 {headedTowardsAAtY} -1205.0 {spawnPoliceBAtX} 1061.0 {spawnPoliceBAtY} -1223.0 {headedTowardsBAtX} 1064.0 {headedTowardsBAtY} -1205.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 953.0 {fromY} -1108.0 {toX} 945.0 {toY} -1097.0 {spawnPoliceAAtX} 928.0 {spawnPoliceAAtY} -1084.0 {headedTowardsAAtX} 937.0 {headedTowardsAAtY} -1099.0 {spawnPoliceBAtX} 928.0 {spawnPoliceBAtY} -1084.0 {headedTowardsBAtX} 937.0 {headedTowardsBAtY} -1099.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 829.0 {fromY} -1066.0 {toX} 830.0 {toY} -1057.0 {spawnPoliceAAtX} 837.0 {spawnPoliceAAtY} -1049.0 {headedTowardsAAtX} 828.0 {headedTowardsAAtY} -1055.0 {spawnPoliceBAtX} 837.0 {spawnPoliceBAtY} -1049.0 {headedTowardsBAtX} 828.0 {headedTowardsBAtY} -1055.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 816.0 {fromY} -1048.0 {toX} 840.0 {toY} -1030.0 {spawnPoliceAAtX} 793.0 {spawnPoliceAAtY} -1015.0 {headedTowardsAAtX} 791.0 {headedTowardsAAtY} -1055.0 {spawnPoliceBAtX} 793.0 {spawnPoliceBAtY} -1015.0 {headedTowardsBAtX} 791.0 {headedTowardsBAtY} -1055.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 642.0 {fromY} -1197.0 {toX} 676.0 {toY} -1187.0 {spawnPoliceAAtX} 597.0 {spawnPoliceAAtY} -1183.0 {headedTowardsAAtX} 616.0 {headedTowardsAAtY} -1211.0 {spawnPoliceBAtX} 597.0 {spawnPoliceBAtY} -1193.0 {headedTowardsBAtX} 616.0 {headedTowardsBAtY} -1211.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 618.0 {fromY} -1287.0 {toX} 647.0 {toY} -1272.0 {spawnPoliceAAtX} 665.0 {spawnPoliceAAtY} -1317.0 {headedTowardsAAtX} 632.0 {headedTowardsAAtY} -1317.0 {spawnPoliceBAtX} 662.0 {spawnPoliceBAtY} -1317.0 {headedTowardsBAtX} 632.0 {headedTowardsBAtY} -1317.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 457.0 {fromY} -1364.0 {toX} 487.0 {toY} -1357.0 {spawnPoliceAAtX} 493.0 {spawnPoliceAAtY} -1323.0 {headedTowardsAAtX} 501.0 {headedTowardsAAtY} -1340.0 {spawnPoliceBAtX} 498.0 {spawnPoliceBAtY} -1317.0 {headedTowardsBAtX} 513.0 {headedTowardsBAtY} -1350.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 523.0 {fromY} -1456.0 {toX} 555.0 {toY} -1442.0 {spawnPoliceAAtX} 569.0 {spawnPoliceAAtY} -1404.0 {headedTowardsAAtX} 532.0 {headedTowardsAAtY} -1413.0 {spawnPoliceBAtX} 567.0 {spawnPoliceBAtY} -1399.0 {headedTowardsBAtX} 525.0 {headedTowardsBAtY} -1407.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 478.0 {fromY} -1488.0 {toX} 496.0 {toY} -1472.0 {spawnPoliceAAtX} 491.0 {spawnPoliceAAtY} -1518.0 {headedTowardsAAtX} 490.0 {headedTowardsAAtY} -1501.0 {spawnPoliceBAtX} 490.0 {spawnPoliceBAtY} -1521.0 {headedTowardsBAtX} 487.0 {headedTowardsBAtY} -1497.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 470.0 {fromY} -1604.0 {toX} 490.0 {toY} -1573.0 {spawnPoliceAAtX} 540.0 {spawnPoliceAAtY} -1626.0 {headedTowardsAAtX} 540.0 {headedTowardsAAtY} -1583.0 {spawnPoliceBAtX} 540.0 {spawnPoliceBAtY} -1626.0 {headedTowardsBAtX} 540.0 {headedTowardsBAtY} -1583.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 519.0 {fromY} -1687.0 {toX} 544.0 {toY} -1676.0 {spawnPoliceAAtX} 486.0 {spawnPoliceAAtY} -1727.0 {headedTowardsAAtX} 534.0 {headedTowardsAAtY} -1734.0 {spawnPoliceBAtX} 486.0 {spawnPoliceBAtY} -1727.0 {headedTowardsBAtX} 534.0 {headedTowardsBAtY} -1734.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 380.0 {fromY} -1803.0 {toX} 394.0 {toY} -1798.0 {spawnPoliceAAtX} 363.0 {spawnPoliceAAtY} -1833.0 {headedTowardsAAtX} 373.0 {headedTowardsAAtY} -1819.0 {spawnPoliceBAtX} 385.0 {spawnPoliceBAtY} -1831.0 {headedTowardsBAtX} 373.0 {headedTowardsBAtY} -1819.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2134.0 {fromY} -1904.0 {toX} 2156.0 {toY} -1885.0 {spawnPoliceAAtX} 2105.0 {spawnPoliceAAtY} -1919.0 {headedTowardsAAtX} 2105.0 {headedTowardsAAtY} -1899.0 {spawnPoliceBAtX} 2079.0 {spawnPoliceBAtY} -1871.0 {headedTowardsBAtX} 2080.0 {headedTowardsBAtY} -1898.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1953.0 {fromY} -1988.0 {toX} 1971.0 {toY} -1966.0 {spawnPoliceAAtX} 1985.0 {spawnPoliceAAtY} -1930.0 {headedTowardsAAtX} 1967.0 {headedTowardsAAtY} -1929.0 {spawnPoliceBAtX} 1927.0 {spawnPoliceBAtY} -1935.0 {headedTowardsBAtX} 1953.0 {headedTowardsBAtY} -1935.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 2015.0 {fromY} -2064.0 {toX} 2026.0 {toY} -2052.0 {spawnPoliceAAtX} 2009.0 {spawnPoliceAAtY} -2010.0 {headedTowardsAAtX} 2007.0 {headedTowardsAAtY} -2033.0 {spawnPoliceBAtX} 1970.0 {spawnPoliceBAtY} -2059.0 {headedTowardsBAtX} 1988.0 {headedTowardsBAtY} -2058.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1997.0 {fromY} -2077.0 {toX} 2009.0 {toY} -2065.0 {spawnPoliceAAtX} 2041.0 {spawnPoliceAAtY} -2056.0 {headedTowardsAAtX} 2016.0 {headedTowardsAAtY} -2058.0 {spawnPoliceBAtX} 2027.0 {spawnPoliceBAtY} -2084.0 {headedTowardsBAtX} 2005.0 {headedTowardsBAtY} -2084.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1924.0 {fromY} -2108.0 {toX} 1935.0 {toY} -2096.0 {spawnPoliceAAtX} 1917.0 {spawnPoliceAAtY} -2074.0 {headedTowardsAAtX} 1917.0 {headedTowardsAAtY} -2094.0 {spawnPoliceBAtX} 1917.0 {spawnPoliceBAtY} -2138.0 {headedTowardsBAtX} 1917.0 {headedTowardsBAtY} -2116.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1847.0 {fromY} -2108.0 {toX} 1860.0 {toY} -2097.0 {spawnPoliceAAtX} 1821.0 {spawnPoliceAAtY} -2089.0 {headedTowardsAAtX} 1820.0 {headedTowardsAAtY} -2101.0 {spawnPoliceBAtX} 1903.0 {spawnPoliceBAtY} -2101.0 {headedTowardsBAtX} 1883.0 {headedTowardsBAtY} -2101.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1861.0 {fromY} -2010.0 {toX} 1870.0 {toY} -2005.0 {spawnPoliceAAtX} 1885.0 {spawnPoliceAAtY} -2041.0 {headedTowardsAAtX} 1886.0 {headedTowardsAAtY} -2021.0 {spawnPoliceBAtX} 1880.0 {spawnPoliceBAtY} -2044.0 {headedTowardsBAtX} 1878.0 {headedTowardsBAtY} -2016.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1751.0 {fromY} -2388.0 {toX} 1781.0 {toY} -2369.0 {spawnPoliceAAtX} 1799.0 {spawnPoliceAAtY} -2345.0 {headedTowardsAAtX} 1798.0 {headedTowardsAAtY} -2377.0 {spawnPoliceBAtX} 1799.0 {spawnPoliceBAtY} -2345.0 {headedTowardsBAtX} 1798.0 {headedTowardsBAtY} -2377.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1314.0 {fromY} -2423.0 {toX} 1325.0 {toY} -2410.0 {spawnPoliceAAtX} 1339.0 {spawnPoliceAAtY} -2446.0 {headedTowardsAAtX} 1317.0 {headedTowardsAAtY} -2446.0 {spawnPoliceBAtX} 1339.0 {spawnPoliceBAtY} -2446.0 {headedTowardsBAtX} 1317.0 {headedTowardsBAtY} -2446.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1551.0 {fromY} -1636.0 {toX} 1562.0 {toY} -1618.0 {spawnPoliceAAtX} 1531.0 {spawnPoliceAAtY} -1660.0 {headedTowardsAAtX} 1532.0 {headedTowardsAAtY} -1632.0 {spawnPoliceBAtX} 1531.0 {spawnPoliceBAtY} -1660.0 {headedTowardsBAtX} 1532.0 {headedTowardsBAtY} -1632.0
add_set_piece 8 {fromX} 1225.0 {fromY} -1880.0 {toX} 1237.0 {toY} -1866.0 {spawnPoliceAAtX} 1180.0 {spawnPoliceAAtY} -1884.0 {headedTowardsAAtX} 1213.0 {headedTowardsAAtY} -1885.0 {spawnPoliceBAtX} 1169.0 {spawnPoliceBAtY} -1887.0 {headedTowardsBAtX} 1194.0 {headedTowardsBAtY} -1888.0
add_set_piece 8 {fromX} 1076.0 {fromY} -1890.0 {toX} 1097.0 {toY} -1881.0 {spawnPoliceAAtX} 1161.0 {spawnPoliceAAtY} -1880.0 {headedTowardsAAtX} 1108.0 {headedTowardsAAtY} -1883.0 {spawnPoliceBAtX} 1050.0 {spawnPoliceBAtY} -1894.0 {headedTowardsBAtX} 1084.0 {headedTowardsBAtY} -1887.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1059.0 {fromY} -1721.0 {toX} 1090.0 {toY} -1703.0 {spawnPoliceAAtX} 1034.0 {spawnPoliceAAtY} -1674.0 {headedTowardsAAtX} 1039.0 {headedTowardsAAtY} -1713.0 {spawnPoliceBAtX} 1034.0 {spawnPoliceBAtY} -1674.0 {headedTowardsBAtX} 1039.0 {headedTowardsBAtY} -1713.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1028.0 {fromY} -1690.0 {toX} 1048.0 {toY} -1657.0 {spawnPoliceAAtX} 1079.0 {spawnPoliceAAtY} -1710.0 {headedTowardsAAtX} 1037.0 {headedTowardsAAtY} -1709.0 {spawnPoliceBAtX} 1079.0 {spawnPoliceBAtY} -1710.0 {headedTowardsBAtX} 1037.0 {headedTowardsBAtY} -1709.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 982.0 {fromY} -1913.0 {toX} 953.0 {toY} -1858.0 {spawnPoliceAAtX} 980.0 {spawnPoliceAAtY} -1852.0 {headedTowardsAAtX} 966.0 {headedTowardsAAtY} -1860.0 {spawnPoliceBAtX} 946.0 {spawnPoliceBAtY} -1846.0 {headedTowardsBAtX} 956.0 {headedTowardsBAtY} -1857.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 849.0 {fromY} -1899.0 {toX} 823.0 {toY} -1937.0 {spawnPoliceAAtX} 836.0 {spawnPoliceAAtY} -2017.0 {headedTowardsAAtX} 839.0 {headedTowardsAAtY} -1993.0 {spawnPoliceBAtX} 848.0 {spawnPoliceBAtY} -2020.0 {headedTowardsBAtX} 842.0 {headedTowardsBAtY} -1990.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 820.0 {fromY} -1844.0 {toX} 848.0 {toY} -1819.0 {spawnPoliceAAtX} 789.0 {spawnPoliceAAtY} -1786.0 {headedTowardsAAtX} 827.0 {headedTowardsAAtY} -1786.0 {spawnPoliceBAtX} 881.0 {spawnPoliceBAtY} -1772.0 {headedTowardsBAtX} 827.0 {headedTowardsBAtY} -1772.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 788.0 {fromY} -1816.0 {toX} 780.0 {toY} -1800.0 {spawnPoliceAAtX} 786.0 {spawnPoliceAAtY} -1835.0 {headedTowardsAAtX} 781.0 {headedTowardsAAtY} -1820.0 {spawnPoliceBAtX} 786.0 {spawnPoliceBAtY} -1835.0 {headedTowardsBAtX} 781.0 {headedTowardsBAtY} -1820.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 740.0 {fromY} -1815.0 {toX} 759.0 {toY} -1808.0 {spawnPoliceAAtX} 738.0 {spawnPoliceAAtY} -1790.0 {headedTowardsAAtX} 737.0 {headedTowardsAAtY} -1806.0 {spawnPoliceBAtX} 744.0 {spawnPoliceBAtY} -1836.0 {headedTowardsBAtX} 746.0 {headedTowardsBAtY} -1819.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 717.0 {fromY} -1819.0 {toX} 727.0 {toY} -1805.0 {spawnPoliceAAtX} 745.0 {spawnPoliceAAtY} -1827.0 {headedTowardsAAtX} 746.0 {headedTowardsAAtY} -1815.0 {spawnPoliceBAtX} 735.0 {spawnPoliceBAtY} -1792.0 {headedTowardsBAtX} 728.0 {headedTowardsBAtY} -1813.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 624.0 {fromY} -1786.0 {toX} 641.0 {toY} -1778.0 {spawnPoliceAAtX} 644.0 {spawnPoliceAAtY} -1799.0 {headedTowardsAAtX} 647.0 {headedTowardsAAtY} -1789.0 {spawnPoliceBAtX} 651.0 {spawnPoliceBAtY} -1767.0 {headedTowardsBAtX} 649.0 {headedTowardsBAtY} -1783.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 606.0 {fromY} -1786.0 {toX} 622.0 {toY} -1770.0 {spawnPoliceAAtX} 656.0 {spawnPoliceAAtY} -1759.0 {headedTowardsAAtX} 649.0 {headedTowardsAAtY} -1787.0 {spawnPoliceBAtX} 656.0 {spawnPoliceBAtY} -1759.0 {headedTowardsBAtX} 649.0 {headedTowardsBAtY} -1787.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 586.0 {fromY} -1868.0 {toX} 612.0 {toY} -1835.0 {spawnPoliceAAtX} 648.0 {spawnPoliceAAtY} -1818.0 {headedTowardsAAtX} 643.0 {headedTowardsAAtY} -1856.0 {spawnPoliceBAtX} 648.0 {spawnPoliceBAtY} -1818.0 {headedTowardsBAtX} 643.0 {headedTowardsBAtY} -1856.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 541.0 {fromY} -1778.0 {toX} 562.0 {toY} -1762.0 {spawnPoliceAAtX} 593.0 {spawnPoliceAAtY} -1775.0 {headedTowardsAAtX} 573.0 {headedTowardsAAtY} -1772.0 {spawnPoliceBAtX} 593.0 {spawnPoliceBAtY} -1772.0 {headedTowardsBAtX} 573.0 {headedTowardsBAtY} -1772.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 511.0 {fromY} -1777.0 {toX} 478.0 {toY} -1762.0 {spawnPoliceAAtX} 455.0 {spawnPoliceAAtY} -1737.0 {headedTowardsAAtX} 458.0 {headedTowardsAAtY} -1769.0 {spawnPoliceBAtX} 455.0 {spawnPoliceBAtY} -1737.0 {headedTowardsBAtX} 458.0 {headedTowardsBAtY} -1769.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 381.0 {fromY} -1806.0 {toX} 398.0 {toY} -1790.0 {spawnPoliceAAtX} 385.0 {spawnPoliceAAtY} -1825.0 {headedTowardsAAtX} 383.0 {headedTowardsAAtY} -1806.0 {spawnPoliceBAtX} 364.0 {spawnPoliceBAtY} -1831.0 {headedTowardsBAtX} 377.0 {headedTowardsBAtY} -1810.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 361.0 {fromY} -1689.0 {toX} 379.0 {toY} -1667.0 {spawnPoliceAAtX} 401.0 {spawnPoliceAAtY} -1650.0 {headedTowardsAAtX} 372.0 {headedTowardsAAtY} -1646.0 {spawnPoliceBAtX} 334.0 {spawnPoliceBAtY} -1646.0 {headedTowardsBAtX} 365.0 {headedTowardsBAtY} -1649.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 289.0 {fromY} -1647.0 {toX} 314.0 {toY} -1631.0 {spawnPoliceAAtX} 321.0 {spawnPoliceAAtY} -1597.0 {headedTowardsAAtX} 321.0 {headedTowardsAAtY} -1642.0 {spawnPoliceBAtX} 321.0 {spawnPoliceBAtY} -1597.0 {headedTowardsBAtX} 321.0 {headedTowardsBAtY} -1642.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 225.0 {fromY} -1610.0 {toX} 252.0 {toY} -1590.0 {spawnPoliceAAtX} 274.0 {spawnPoliceAAtY} -1576.0 {headedTowardsAAtX} 242.0 {headedTowardsAAtY} -1566.0 {spawnPoliceBAtX} 274.0 {spawnPoliceBAtY} -1576.0 {headedTowardsBAtX} 242.0 {headedTowardsBAtY} -1566.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 301.0 {fromY} -1472.0 {toX} 336.0 {toY} -1467.0 {spawnPoliceAAtX} 269.0 {spawnPoliceAAtY} -1476.0 {headedTowardsAAtX} 291.0 {headedTowardsAAtY} -1497.0 {spawnPoliceBAtX} 269.0 {spawnPoliceBAtY} -1476.0 {headedTowardsBAtX} 291.0 {headedTowardsBAtY} -1497.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 196.0 {fromY} -1528.0 {toX} 223.0 {toY} -1508.0 {spawnPoliceAAtX} 193.0 {spawnPoliceAAtY} -1489.0 {headedTowardsAAtX} 179.0 {headedTowardsAAtY} -1512.0 {spawnPoliceBAtX} 174.0 {spawnPoliceBAtY} -1579.0 {headedTowardsBAtX} 147.0 {headedTowardsBAtY} -1554.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 221.0 {fromY} -1367.0 {toX} 226.0 {toY} -1337.0 {spawnPoliceAAtX} 228.0 {spawnPoliceAAtY} -1310.0 {headedTowardsAAtX} 246.0 {headedTowardsAAtY} -1336.0 {spawnPoliceBAtX} 228.0 {spawnPoliceBAtY} -1310.0 {headedTowardsBAtX} 246.0 {headedTowardsBAtY} -1336.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 427.0 {fromY} -1238.0 {toX} 450.0 {toY} -1229.0 {spawnPoliceAAtX} 391.0 {spawnPoliceAAtY} -1225.0 {headedTowardsAAtX} 402.0 {headedTowardsAAtY} -1252.0 {spawnPoliceBAtX} 391.0 {spawnPoliceBAtY} -1225.0 {headedTowardsBAtX} 402.0 {headedTowardsBAtY} -1252.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 478.0 {fromY} -1257.0 {toX} 478.0 {toY} -1227.0 {spawnPoliceAAtX} 489.0 {spawnPoliceAAtY} -1281.0 {headedTowardsAAtX} 508.0 {headedTowardsAAtY} -1265.0 {spawnPoliceBAtX} 489.0 {spawnPoliceBAtY} -1281.0 {headedTowardsBAtX} 508.0 {headedTowardsBAtY} -1265.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 337.0 {fromY} -1176.0 {toX} 371.0 {toY} -1170.0 {spawnPoliceAAtX} 395.0 {spawnPoliceAAtY} -1169.0 {headedTowardsAAtX} 362.0 {headedTowardsAAtY} -1141.0 {spawnPoliceBAtX} 344.0 {spawnPoliceBAtY} -1131.0 {headedTowardsBAtX} 381.0 {headedTowardsBAtY} -1167.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1798.0 {fromY} 796.0 {toX} 1816.0 {toY} 823.0 {spawnPoliceAAtX} 1760.0 {spawnPoliceAAtY} 832.0 {headedTowardsAAtX} 1809.0 {headedTowardsAAtY} 834.0 {spawnPoliceBAtX} 1760.0 {spawnPoliceBAtY} 832.0 {headedTowardsBAtX} 1809.0 {headedTowardsBAtY} 834.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2032.0 {fromY} 892.0 {toX} 2056.0 {toY} 919.0 {spawnPoliceAAtX} 2086.0 {spawnPoliceAAtY} 856.0 {headedTowardsAAtX} 2047.0 {headedTowardsAAtY} 856.0 {spawnPoliceBAtX} 2086.0 {spawnPoliceBAtY} 856.0 {headedTowardsBAtX} 2047.0 {headedTowardsBAtY} 856.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2034.0 {fromY} 985.0 {toX} 2053.0 {toY} 1024.0 {spawnPoliceAAtX} 2074.0 {spawnPoliceAAtY} 975.0 {headedTowardsAAtX} 2044.0 {headedTowardsAAtY} 974.0 {spawnPoliceBAtX} 2074.0 {spawnPoliceBAtY} 975.0 {headedTowardsBAtX} 2044.0 {headedTowardsBAtY} 974.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2035.0 {fromY} 1228.0 {toX} 2056.0 {toY} 1254.0 {spawnPoliceAAtX} 2021.0 {spawnPoliceAAtY} 1275.0 {headedTowardsAAtX} 2051.0 {headedTowardsAAtY} 1277.0 {spawnPoliceBAtX} 2021.0 {spawnPoliceBAtY} 1275.0 {headedTowardsBAtX} 2051.0 {headedTowardsBAtY} 1277.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2114.0 {fromY} 2071.0 {toX} 2136.0 {toY} 2096.0 {spawnPoliceAAtX} 2098.0 {spawnPoliceAAtY} 2020.0 {headedTowardsAAtX} 2131.0 {headedTowardsAAtY} 2020.0 {spawnPoliceBAtX} 2098.0 {spawnPoliceBAtY} 2020.0 {headedTowardsBAtX} 2131.0 {headedTowardsBAtY} 2020.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1937.0 {fromY} 2104.0 {toX} 1954.0 {toY} 2122.0 {spawnPoliceAAtX} 1925.0 {spawnPoliceAAtY} 2139.0 {headedTowardsAAtX} 1926.0 {headedTowardsAAtY} 2110.0 {spawnPoliceBAtX} 1925.0 {spawnPoliceBAtY} 2139.0 {headedTowardsBAtX} 1926.0 {headedTowardsBAtY} 2110.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1836.0 {fromY} 2044.0 {toX} 1858.0 {toY} 2059.0 {spawnPoliceAAtX} 1815.0 {spawnPoliceAAtY} 2080.0 {headedTowardsAAtX} 1821.0 {headedTowardsAAtY} 2051.0 {spawnPoliceBAtX} 1815.0 {spawnPoliceBAtY} 2080.0 {headedTowardsBAtX} 1821.0 {headedTowardsBAtY} 2051.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1721.0 {fromY} 2044.0 {toX} 1739.0 {toY} 2063.0 {spawnPoliceAAtX} 1710.0 {spawnPoliceAAtY} 2023.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2051.0 {spawnPoliceBAtX} 1710.0 {spawnPoliceBAtY} 2023.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 2051.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1699.0 {fromY} 2134.0 {toX} 1717.0 {toY} 2152.0 {spawnPoliceAAtX} 1734.0 {spawnPoliceAAtY} 2172.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2171.0 {spawnPoliceBAtX} 1729.0 {spawnPoliceBAtY} 2175.0 {headedTowardsBAtX} 1694.0 {headedTowardsBAtY} 2175.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1581.0 {fromY} 2164.0 {toX} 1600.0 {toY} 2182.0 {spawnPoliceAAtX} 1616.0 {spawnPoliceAAtY} 2143.0 {headedTowardsAAtX} 1615.0 {headedTowardsAAtY} 2170.0 {spawnPoliceBAtX} 1621.0 {spawnPoliceBAtY} 2146.0 {headedTowardsBAtX} 1622.0 {headedTowardsBAtY} 2182.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1522.0 {fromY} 2044.0 {toX} 1538.0 {toY} 2060.0 {spawnPoliceAAtX} 1529.0 {spawnPoliceAAtY} 2083.0 {headedTowardsAAtX} 1532.0 {headedTowardsAAtY} 2055.0 {spawnPoliceBAtX} 1525.0 {spawnPoliceBAtY} 2087.0 {headedTowardsBAtX} 1525.0 {headedTowardsBAtY} 2056.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1466.0 {fromY} 1989.0 {toX} 1490.0 {toY} 2003.0 {spawnPoliceAAtX} 1457.0 {spawnPoliceAAtY} 2024.0 {headedTowardsAAtX} 1476.0 {headedTowardsAAtY} 2009.0 {spawnPoliceBAtX} 1499.0 {spawnPoliceBAtY} 2027.0 {headedTowardsBAtX} 1483.0 {headedTowardsBAtY} 2006.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1429.0 {fromY} 2617.0 {toX} 1439.0 {toY} 2624.0 {spawnPoliceAAtX} 1422.0 {spawnPoliceAAtY} 2615.0 {headedTowardsAAtX} 1433.0 {headedTowardsAAtY} 2619.0 {spawnPoliceBAtX} 1446.0 {spawnPoliceBAtY} 2615.0 {headedTowardsBAtX} 1434.0 {headedTowardsBAtY} 2622.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1469.0 {fromY} 2545.0 {toX} 1487.0 {toY} 2568.0 {spawnPoliceAAtX} 1500.0 {spawnPoliceAAtY} 2592.0 {headedTowardsAAtX} 1474.0 {headedTowardsAAtY} 2591.0 {spawnPoliceBAtX} 1500.0 {spawnPoliceBAtY} 2592.0 {headedTowardsBAtX} 1474.0 {headedTowardsBAtY} 2591.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1300.0 {fromY} 2580.0 {toX} 1325.0 {toY} 2599.0 {spawnPoliceAAtX} 1291.0 {spawnPoliceAAtY} 2568.0 {headedTowardsAAtX} 1291.0 {headedTowardsAAtY} 2597.0 {spawnPoliceBAtX} 1291.0 {spawnPoliceBAtY} 2568.0 {headedTowardsBAtX} 1291.0 {headedTowardsBAtY} 2597.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2240.0 {fromY} 2460.0 {toX} 2246.0 {toY} 2449.0 {spawnPoliceAAtX} 2230.0 {spawnPoliceAAtY} 2433.0 {headedTowardsAAtX} 2231.0 {headedTowardsAAtY} 2451.0 {spawnPoliceBAtX} 2229.0 {spawnPoliceBAtY} 2476.0 {headedTowardsBAtX} 2231.0 {headedTowardsBAtY} 2456.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1238.0 {fromY} 2671.0 {toX} 1257.0 {toY} 2690.0 {spawnPoliceAAtX} 1276.0 {spawnPoliceAAtY} 2716.0 {headedTowardsAAtX} 1244.0 {headedTowardsAAtY} 2713.0 {spawnPoliceBAtX} 1276.0 {spawnPoliceBAtY} 2716.0 {headedTowardsBAtX} 1244.0 {headedTowardsBAtY} 2713.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1493.0 {fromY} 2580.0 {toX} 1512.0 {toY} 2599.0 {spawnPoliceAAtX} 1479.0 {spawnPoliceAAtY} 2562.0 {headedTowardsAAtX} 1480.0 {headedTowardsAAtY} 2588.0 {spawnPoliceBAtX} 1476.0 {spawnPoliceBAtY} 2555.0 {headedTowardsBAtX} 1475.0 {headedTowardsBAtY} 2585.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1469.0 {fromY} 2433.0 {toX} 1486.0 {toY} 2447.0 {spawnPoliceAAtX} 1449.0 {spawnPoliceAAtY} 2390.0 {headedTowardsAAtX} 1478.0 {headedTowardsAAtY} 2391.0 {spawnPoliceBAtX} 1449.0 {spawnPoliceBAtY} 2390.0 {headedTowardsBAtX} 1478.0 {headedTowardsBAtY} 2391.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1558.0 {fromY} 2283.0 {toX} 1577.0 {toY} 2305.0 {spawnPoliceAAtX} 1529.0 {spawnPoliceAAtY} 2311.0 {headedTowardsAAtX} 1565.0 {headedTowardsAAtY} 2310.0 {spawnPoliceBAtX} 1529.0 {spawnPoliceBAtY} 2311.0 {headedTowardsBAtX} 1565.0 {headedTowardsBAtY} 2310.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1397.0 {fromY} 2303.0 {toX} 1419.0 {toY} 2323.0 {spawnPoliceAAtX} 1385.0 {spawnPoliceAAtY} 2331.0 {headedTowardsAAtX} 1389.0 {headedTowardsAAtY} 2313.0 {spawnPoliceBAtX} 1385.0 {spawnPoliceBAtY} 2331.0 {headedTowardsBAtX} 1389.0 {headedTowardsBAtY} 2313.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1568.0 {fromY} 2114.0 {toX} 1578.0 {toY} 2140.0 {spawnPoliceAAtX} 1573.0 {spawnPoliceAAtY} 2078.0 {headedTowardsAAtX} 1573.0 {headedTowardsAAtY} 2118.0 {spawnPoliceBAtX} 1571.0 {spawnPoliceBAtY} 2088.0 {headedTowardsBAtX} 1571.0 {headedTowardsBAtY} 2106.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1660.0 {fromY} 2002.0 {toX} 1685.0 {toY} 2021.0 {spawnPoliceAAtX} 1710.0 {spawnPoliceAAtY} 1985.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2015.0 {spawnPoliceBAtX} 1710.0 {spawnPoliceBAtY} 1985.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 2015.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1765.0 {fromY} 2044.0 {toX} 1788.0 {toY} 2063.0 {spawnPoliceAAtX} 1810.0 {spawnPoliceAAtY} 2083.0 {headedTowardsAAtX} 1827.0 {headedTowardsAAtY} 2056.0 {spawnPoliceBAtX} 1810.0 {spawnPoliceBAtY} 2083.0 {headedTowardsBAtX} 1827.0 {headedTowardsBAtY} 2056.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1948.0 {fromY} 2274.0 {toX} 1971.0 {toY} 2293.0 {spawnPoliceAAtX} 1930.0 {spawnPoliceAAtY} 2259.0 {headedTowardsAAtX} 1930.0 {headedTowardsAAtY} 2283.0 {spawnPoliceBAtX} 1930.0 {spawnPoliceBAtY} 2259.0 {headedTowardsBAtX} 1930.0 {headedTowardsBAtY} 2283.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1918.0 {fromY} 2309.0 {toX} 1938.0 {toY} 2328.0 {spawnPoliceAAtX} 1951.0 {spawnPoliceAAtY} 2338.0 {headedTowardsAAtX} 1929.0 {headedTowardsAAtY} 2338.0 {spawnPoliceBAtX} 1895.0 {spawnPoliceBAtY} 2333.0 {headedTowardsBAtX} 1926.0 {headedTowardsBAtY} 2337.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1986.0 {fromY} 2384.0 {toX} 2006.0 {toY} 2403.0 {spawnPoliceAAtX} 2031.0 {spawnPoliceAAtY} 2367.0 {headedTowardsAAtX} 2024.0 {headedTowardsAAtY} 2392.0 {spawnPoliceBAtX} 2026.0 {spawnPoliceBAtY} 2433.0 {headedTowardsBAtX} 2025.0 {headedTowardsBAtY} 2395.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2011.0 {fromY} 2334.0 {toX} 2017.0 {toY} 2352.0 {spawnPoliceAAtX} 1995.0 {spawnPoliceAAtY} 2286.0 {headedTowardsAAtX} 2014.0 {headedTowardsAAtY} 2288.0 {spawnPoliceBAtX} 1995.0 {spawnPoliceBAtY} 2286.0 {headedTowardsBAtX} 2014.0 {headedTowardsBAtY} 2288.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2063.0 {fromY} 2274.0 {toX} 2090.0 {toY} 2293.0 {spawnPoliceAAtX} 2068.0 {spawnPoliceAAtY} 2313.0 {headedTowardsAAtX} 2096.0 {headedTowardsAAtY} 2292.0 {spawnPoliceBAtX} 2119.0 {spawnPoliceBAtY} 2260.0 {headedTowardsBAtX} 2104.0 {headedTowardsBAtY} 2282.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2171.0 {fromY} 2356.0 {toX} 2185.0 {toY} 2356.0 {spawnPoliceAAtX} 2214.0 {spawnPoliceAAtY} 2328.0 {headedTowardsAAtX} 2196.0 {headedTowardsAAtY} 2336.0 {spawnPoliceBAtX} 2217.0 {spawnPoliceBAtY} 2370.0 {headedTowardsBAtX} 2204.0 {headedTowardsBAtY} 2348.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2177.0 {fromY} 2302.0 {toX} 2185.0 {toY} 2325.0 {spawnPoliceAAtX} 2198.0 {spawnPoliceAAtY} 2286.0 {headedTowardsAAtX} 2161.0 {headedTowardsAAtY} 2288.0 {spawnPoliceBAtX} 2198.0 {spawnPoliceBAtY} 2286.0 {headedTowardsBAtX} 2161.0 {headedTowardsBAtY} 2288.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2256.0 {fromY} 2274.0 {toX} 2294.0 {toY} 2293.0 {spawnPoliceAAtX} 2288.0 {spawnPoliceAAtY} 2260.0 {headedTowardsAAtX} 2287.0 {headedTowardsAAtY} 2283.0 {spawnPoliceBAtX} 2288.0 {spawnPoliceBAtY} 2260.0 {headedTowardsBAtX} 2287.0 {headedTowardsBAtY} 2283.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2379.0 {fromY} 2404.0 {toX} 2395.0 {toY} 2423.0 {spawnPoliceAAtX} 2342.0 {spawnPoliceAAtY} 2436.0 {headedTowardsAAtX} 2353.0 {headedTowardsAAtY} 2415.0 {spawnPoliceBAtX} 2342.0 {spawnPoliceBAtY} 2436.0 {headedTowardsBAtX} 2353.0 {headedTowardsBAtY} 2415.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2218.0 {fromY} 2422.0 {toX} 2239.0 {toY} 2438.0 {spawnPoliceAAtX} 2257.0 {spawnPoliceAAtY} 2455.0 {headedTowardsAAtX} 2227.0 {headedTowardsAAtY} 2452.0 {spawnPoliceBAtX} 2257.0 {spawnPoliceBAtY} 2455.0 {headedTowardsBAtX} 2227.0 {headedTowardsBAtY} 2452.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2337.0 {fromY} 2504.0 {toX} 2354.0 {toY} 2522.0 {spawnPoliceAAtX} 2370.0 {spawnPoliceAAtY} 2482.0 {headedTowardsAAtX} 2370.0 {headedTowardsAAtY} 2513.0 {spawnPoliceBAtX} 2370.0 {spawnPoliceBAtY} 2482.0 {headedTowardsBAtX} 2370.0 {headedTowardsBAtY} 2513.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2490.0 {fromY} 2403.0 {toX} 2511.0 {toY} 2423.0 {spawnPoliceAAtX} 2524.0 {spawnPoliceAAtY} 2438.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2411.0 {spawnPoliceBAtX} 2524.0 {spawnPoliceBAtY} 2438.0 {headedTowardsBAtX} 2525.0 {headedTowardsBAtY} 2411.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2518.0 {fromY} 2255.0 {toX} 2537.0 {toY} 2274.0 {spawnPoliceAAtX} 2555.0 {spawnPoliceAAtY} 2236.0 {headedTowardsAAtX} 2528.0 {headedTowardsAAtY} 2237.0 {spawnPoliceBAtX} 2555.0 {spawnPoliceBAtY} 2236.0 {headedTowardsBAtX} 2528.0 {headedTowardsBAtY} 2237.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2518.0 {fromY} 2189.0 {toX} 2539.0 {toY} 2210.0 {spawnPoliceAAtX} 2558.0 {spawnPoliceAAtY} 2235.0 {headedTowardsAAtX} 2518.0 {headedTowardsAAtY} 2236.0 {spawnPoliceBAtX} 2498.0 {spawnPoliceBAtY} 2231.0 {headedTowardsBAtX} 2537.0 {headedTowardsBAtY} 2231.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2544.0 {fromY} 2222.0 {toX} 2566.0 {toY} 2243.0 {spawnPoliceAAtX} 2524.0 {spawnPoliceAAtY} 2265.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2234.0 {spawnPoliceBAtX} 2530.0 {spawnPoliceBAtY} 2271.0 {headedTowardsBAtX} 2531.0 {headedTowardsBAtY} 2226.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2363.0 {fromY} 2224.0 {toX} 2395.0 {toY} 2248.0 {spawnPoliceAAtX} 2352.0 {spawnPoliceAAtY} 2205.0 {headedTowardsAAtX} 2353.0 {headedTowardsAAtY} 2236.0 {spawnPoliceBAtX} 2346.0 {spawnPoliceBAtY} 2197.0 {headedTowardsBAtX} 2344.0 {headedTowardsBAtY} 2231.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2333.0 {fromY} 2173.0 {toX} 2369.0 {toY} 2190.0 {spawnPoliceAAtX} 2313.0 {spawnPoliceAAtY} 2138.0 {headedTowardsAAtX} 2349.0 {headedTowardsAAtY} 2140.0 {spawnPoliceBAtX} 2313.0 {spawnPoliceBAtY} 2138.0 {headedTowardsBAtX} 2349.0 {headedTowardsBAtY} 2140.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2380.0 {fromY} 2124.0 {toX} 2404.0 {toY} 2163.0 {spawnPoliceAAtX} 2346.0 {spawnPoliceAAtY} 2178.0 {headedTowardsAAtX} 2350.0 {headedTowardsAAtY} 2149.0 {spawnPoliceBAtX} 2346.0 {spawnPoliceBAtY} 2178.0 {headedTowardsBAtX} 2350.0 {headedTowardsBAtY} 2149.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2484.0 {fromY} 2124.0 {toX} 2513.0 {toY} 2163.0 {spawnPoliceAAtX} 2525.0 {spawnPoliceAAtY} 2179.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2151.0 {spawnPoliceBAtX} 2530.0 {spawnPoliceBAtY} 2184.0 {headedTowardsBAtX} 2530.0 {headedTowardsBAtY} 2136.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2713.0 {fromY} 2104.0 {toX} 2737.0 {toY} 2122.0 {spawnPoliceAAtX} 2793.0 {spawnPoliceAAtY} 2086.0 {headedTowardsAAtX} 2796.0 {headedTowardsAAtY} 2110.0 {spawnPoliceBAtX} 2796.0 {spawnPoliceBAtY} 2079.0 {headedTowardsBAtX} 2801.0 {headedTowardsBAtY} 2110.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2838.0 {fromY} 2127.0 {toX} 2857.0 {toY} 2159.0 {spawnPoliceAAtX} 2824.0 {spawnPoliceAAtY} 2111.0 {headedTowardsAAtX} 2846.0 {headedTowardsAAtY} 2111.0 {spawnPoliceBAtX} 2803.0 {spawnPoliceBAtY} 2111.0 {headedTowardsBAtX} 2845.0 {headedTowardsBAtY} 2112.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2789.0 {fromY} 1945.0 {toX} 2803.0 {toY} 1985.0 {spawnPoliceAAtX} 2745.0 {spawnPoliceAAtY} 1956.0 {headedTowardsAAtX} 2779.0 {headedTowardsAAtY} 1956.0 {spawnPoliceBAtX} 2739.0 {spawnPoliceBAtY} 1952.0 {headedTowardsBAtX} 2786.0 {headedTowardsBAtY} 1951.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2640.0 {fromY} 1944.0 {toX} 2660.0 {toY} 1965.0 {spawnPoliceAAtX} 2605.0 {spawnPoliceAAtY} 1982.0 {headedTowardsAAtX} 2605.0 {headedTowardsAAtY} 1953.0 {spawnPoliceBAtX} 2605.0 {spawnPoliceBAtY} 1982.0 {headedTowardsBAtX} 2605.0 {headedTowardsBAtY} 1953.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2498.0 {fromY} 1921.0 {toX} 2517.0 {toY} 1938.0 {spawnPoliceAAtX} 2537.0 {spawnPoliceAAtY} 1955.0 {headedTowardsAAtX} 2507.0 {headedTowardsAAtY} 1956.0 {spawnPoliceBAtX} 2537.0 {spawnPoliceBAtY} 1955.0 {headedTowardsBAtX} 2507.0 {headedTowardsBAtY} 1956.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2408.0 {fromY} 2021.0 {toX} 2429.0 {toY} 2042.0 {spawnPoliceAAtX} 2398.0 {spawnPoliceAAtY} 2045.0 {headedTowardsAAtX} 2412.0 {headedTowardsAAtY} 2044.0 {spawnPoliceBAtX} 2398.0 {spawnPoliceBAtY} 2045.0 {headedTowardsBAtX} 2412.0 {headedTowardsBAtY} 2044.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2188.0 {fromY} 1826.0 {toX} 2205.0 {toY} 1851.0 {spawnPoliceAAtX} 2234.0 {spawnPoliceAAtY} 1867.0 {headedTowardsAAtX} 2212.0 {headedTowardsAAtY} 1851.0 {spawnPoliceBAtX} 2234.0 {spawnPoliceBAtY} 1867.0 {headedTowardsBAtX} 2212.0 {headedTowardsBAtY} 1851.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2067.0 {fromY} 1863.0 {toX} 2082.0 {toY} 1894.0 {spawnPoliceAAtX} 2083.0 {spawnPoliceAAtY} 1843.0 {headedTowardsAAtX} 2095.0 {headedTowardsAAtY} 1865.0 {spawnPoliceBAtX} 2083.0 {spawnPoliceBAtY} 1843.0 {headedTowardsBAtX} 2095.0 {headedTowardsBAtY} 1865.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2033.0 {fromY} 1894.0 {toX} 2048.0 {toY} 1936.0 {spawnPoliceAAtX} 2060.0 {spawnPoliceAAtY} 1951.0 {headedTowardsAAtX} 2041.0 {headedTowardsAAtY} 1943.0 {spawnPoliceBAtX} 2069.0 {spawnPoliceBAtY} 1865.0 {headedTowardsBAtX} 2063.0 {headedTowardsBAtY} 1878.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2069.0 {fromY} 1785.0 {toX} 2139.0 {toY} 1806.0 {spawnPoliceAAtX} 2147.0 {spawnPoliceAAtY} 1776.0 {headedTowardsAAtX} 2095.0 {headedTowardsAAtY} 1776.0 {spawnPoliceBAtX} 1975.0 {spawnPoliceBAtY} 1711.0 {headedTowardsBAtX} 2060.0 {headedTowardsBAtY} 1710.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2094.0 {fromY} 1649.0 {toX} 2165.0 {toY} 1737.0 {spawnPoliceAAtX} 2177.0 {spawnPoliceAAtY} 1666.0 {headedTowardsAAtX} 2129.0 {headedTowardsAAtY} 1655.0 {spawnPoliceBAtX} 2151.0 {spawnPoliceBAtY} 1723.0 {headedTowardsBAtX} 2134.0 {headedTowardsBAtY} 1717.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2006.0 {fromY} 1541.0 {toX} 2021.0 {toY} 1550.0 {spawnPoliceAAtX} 2001.0 {spawnPoliceAAtY} 1564.0 {headedTowardsAAtX} 2004.0 {headedTowardsAAtY} 1553.0 {spawnPoliceBAtX} 2001.0 {spawnPoliceBAtY} 1564.0 {headedTowardsBAtX} 2004.0 {headedTowardsBAtY} 1553.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1931.0 {fromY} 1444.0 {toX} 1964.0 {toY} 1466.0 {spawnPoliceAAtX} 1989.0 {spawnPoliceAAtY} 1415.0 {headedTowardsAAtX} 1991.0 {headedTowardsAAtY} 1454.0 {spawnPoliceBAtX} 1989.0 {spawnPoliceBAtY} 1415.0 {headedTowardsBAtX} 1991.0 {headedTowardsBAtY} 1454.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1935.0 {fromY} 1299.0 {toX} 1958.0 {toY} 1322.0 {spawnPoliceAAtX} 1974.0 {spawnPoliceAAtY} 1276.0 {headedTowardsAAtX} 1949.0 {headedTowardsAAtY} 1277.0 {spawnPoliceBAtX} 1974.0 {spawnPoliceBAtY} 1276.0 {headedTowardsBAtX} 1949.0 {headedTowardsBAtY} 1277.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1756.0 {fromY} 1264.0 {toX} 1786.0 {toY} 1282.0 {spawnPoliceAAtX} 1730.0 {spawnPoliceAAtY} 1302.0 {headedTowardsAAtX} 1722.0 {headedTowardsAAtY} 1273.0 {spawnPoliceBAtX} 1730.0 {spawnPoliceBAtY} 1302.0 {headedTowardsBAtX} 1722.0 {headedTowardsBAtY} 1273.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1723.0 {fromY} 1182.0 {toX} 1736.0 {toY} 1205.0 {spawnPoliceAAtX} 1714.0 {spawnPoliceAAtY} 1234.0 {headedTowardsAAtX} 1714.0 {headedTowardsAAtY} 1217.0 {spawnPoliceBAtX} 1703.0 {spawnPoliceBAtY} 1229.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 1219.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1583.0 {fromY} 1124.0 {toX} 1606.0 {toY} 1142.0 {spawnPoliceAAtX} 1570.0 {spawnPoliceAAtY} 1098.0 {headedTowardsAAtX} 1569.0 {headedTowardsAAtY} 1138.0 {spawnPoliceBAtX} 1570.0 {spawnPoliceBAtY} 1098.0 {headedTowardsBAtX} 1569.0 {headedTowardsBAtY} 1138.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1716.0 {fromY} 1585.0 {toX} 1744.0 {toY} 1605.0 {spawnPoliceAAtX} 1726.0 {spawnPoliceAAtY} 1663.0 {headedTowardsAAtX} 1745.0 {headedTowardsAAtY} 1637.0 {spawnPoliceBAtX} 1726.0 {spawnPoliceBAtY} 1663.0 {headedTowardsBAtX} 1745.0 {headedTowardsBAtY} 1637.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2349.0 {fromY} 2381.0 {toX} -2327.0 {toY} 2377.0 {spawnPoliceAAtX} -2349.0 {spawnPoliceAAtY} 2402.0 {headedTowardsAAtX} -2328.0 {headedTowardsAAtY} 2388.0 {spawnPoliceBAtX} -2349.0 {spawnPoliceBAtY} 2402.0 {headedTowardsBAtX} -2328.0 {headedTowardsBAtY} 2388.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2475.0 {fromY} 2299.0 {toX} -2456.0 {toY} 2315.0 {spawnPoliceAAtX} -2435.0 {spawnPoliceAAtY} 2337.0 {headedTowardsAAtX} -2466.0 {headedTowardsAAtY} 2334.0 {spawnPoliceBAtX} -2435.0 {spawnPoliceBAtY} 2337.0 {headedTowardsBAtX} -2466.0 {headedTowardsBAtY} 2334.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} -1591.0 {fromY} 656.0 {toX} -1574.0 {toY} 667.0 {spawnPoliceAAtX} -1561.0 {spawnPoliceAAtY} 690.0 {headedTowardsAAtX} -1562.0 {headedTowardsAAtY} 663.0 {spawnPoliceBAtX} -1557.0 {spawnPoliceBAtY} 692.0 {headedTowardsBAtX} -1556.0 {headedTowardsBAtY} 665.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1752.0 {fromY} 1317.0 {toX} -1726.0 {toY} 1323.0 {spawnPoliceAAtX} -1749.0 {spawnPoliceAAtY} 1269.0 {headedTowardsAAtX} -1714.0 {headedTowardsAAtY} 1299.0 {spawnPoliceBAtX} -1749.0 {spawnPoliceBAtY} 1269.0 {headedTowardsBAtX} -1714.0 {headedTowardsBAtY} 1299.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1715.0 {fromY} 1309.0 {toX} -1711.0 {toY} 1343.0 {spawnPoliceAAtX} -1710.0 {spawnPoliceAAtY} 1377.0 {headedTowardsAAtX} -1736.0 {headedTowardsAAtY} 1350.0 {spawnPoliceBAtX} -1710.0 {spawnPoliceBAtY} 1377.0 {headedTowardsBAtX} -1736.0 {headedTowardsBAtY} 1350.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -1673.0 {fromY} 1386.0 {toX} -1637.0 {toY} 1391.0 {spawnPoliceAAtX} -1624.0 {spawnPoliceAAtY} 1380.0 {headedTowardsAAtX} -1626.0 {headedTowardsAAtY} 1393.0 {spawnPoliceBAtX} -1662.0 {spawnPoliceBAtY} 1430.0 {headedTowardsBAtX} -1642.0 {headedTowardsBAtY} 1427.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2002.0 {fromY} 1273.0 {toX} -1967.0 {toY} 1299.0 {spawnPoliceAAtX} -1943.0 {spawnPoliceAAtY} 1258.0 {headedTowardsAAtX} -1944.0 {headedTowardsAAtY} 1293.0 {spawnPoliceBAtX} -1943.0 {spawnPoliceBAtY} 1258.0 {headedTowardsBAtX} -1944.0 {headedTowardsBAtY} 1293.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -1946.0 {fromY} 1233.0 {toX} -1939.0 {toY} 1245.0 {spawnPoliceAAtX} -1943.0 {spawnPoliceAAtY} 1195.0 {headedTowardsAAtX} -1943.0 {headedTowardsAAtY} 1221.0 {spawnPoliceBAtX} -2021.0 {spawnPoliceBAtY} 1227.0 {headedTowardsBAtX} -1983.0 {headedTowardsBAtY} 1227.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} -1917.0 {fromY} 1253.0 {toX} -1904.0 {toY} 1259.0 {spawnPoliceAAtX} -1900.0 {spawnPoliceAAtY} 1242.0 {headedTowardsAAtX} -1900.0 {headedTowardsAAtY} 1256.0 {spawnPoliceBAtX} -1900.0 {spawnPoliceBAtY} 1242.0 {headedTowardsBAtX} -1900.0 {headedTowardsBAtY} 1256.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2041.0 {fromY} 1223.0 {toX} -2022.0 {toY} 1232.0 {spawnPoliceAAtX} -2010.0 {spawnPoliceAAtY} 1208.0 {headedTowardsAAtX} -2010.0 {headedTowardsAAtY} 1228.0 {spawnPoliceBAtX} -2010.0 {spawnPoliceBAtY} 1208.0 {headedTowardsBAtX} -2010.0 {headedTowardsBAtY} 1228.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1862.0 {fromY} 1166.0 {toX} -1836.0 {toY} 1191.0 {spawnPoliceAAtX} -1789.0 {spawnPoliceAAtY} 1147.0 {headedTowardsAAtX} -1790.0 {headedTowardsAAtY} 1187.0 {spawnPoliceBAtX} -1794.0 {spawnPoliceBAtY} 1148.0 {headedTowardsBAtX} -1794.0 {headedTowardsBAtY} 1186.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1728.0 {fromY} 1134.0 {toX} -1702.0 {toY} 1154.0 {spawnPoliceAAtX} -1747.0 {spawnPoliceAAtY} 1182.0 {headedTowardsAAtX} -1710.0 {headedTowardsAAtY} 1184.0 {spawnPoliceBAtX} -1747.0 {spawnPoliceBAtY} 1182.0 {headedTowardsBAtX} -1710.0 {headedTowardsBAtY} 1184.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1685.0 {fromY} 1173.0 {toX} -1663.0 {toY} 1201.0 {spawnPoliceAAtX} -1708.0 {spawnPoliceAAtY} 1151.0 {headedTowardsAAtX} -1712.0 {headedTowardsAAtY} 1186.0 {spawnPoliceBAtX} -1708.0 {spawnPoliceBAtY} 1151.0 {headedTowardsBAtX} -1712.0 {headedTowardsBAtY} 1186.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1678.0 {fromY} 1174.0 {toX} -1647.0 {toY} 1206.0 {spawnPoliceAAtX} -1644.0 {spawnPoliceAAtY} 1222.0 {headedTowardsAAtX} -1618.0 {headedTowardsAAtY} 1192.0 {spawnPoliceBAtX} -1606.0 {spawnPoliceBAtY} 1151.0 {headedTowardsBAtX} -1618.0 {headedTowardsBAtY} 1192.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1760.0 {fromY} 1083.0 {toX} -1736.0 {toY} 1115.0 {spawnPoliceAAtX} -1718.0 {spawnPoliceAAtY} 1068.0 {headedTowardsAAtX} -1718.0 {headedTowardsAAtY} 1105.0 {spawnPoliceBAtX} -1718.0 {spawnPoliceBAtY} 1068.0 {headedTowardsBAtX} -1718.0 {headedTowardsBAtY} 1105.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1726.0 {fromY} 1005.0 {toX} -1701.0 {toY} 986.0 {spawnPoliceAAtX} -1673.0 {spawnPoliceAAtY} 932.0 {headedTowardsAAtX} -1716.0 {headedTowardsAAtY} 933.0 {spawnPoliceBAtX} -1673.0 {spawnPoliceBAtY} 932.0 {headedTowardsBAtX} -1716.0 {headedTowardsBAtY} 933.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1769.0 {fromY} 963.0 {toX} -1749.0 {toY} 901.0 {spawnPoliceAAtX} -1710.0 {spawnPoliceAAtY} 886.0 {headedTowardsAAtX} -1711.0 {headedTowardsAAtY} 923.0 {spawnPoliceBAtX} -1710.0 {spawnPoliceBAtY} 886.0 {headedTowardsBAtX} -1711.0 {headedTowardsBAtY} 923.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1684.0 {fromY} 903.0 {toX} -1658.0 {toY} 944.0 {spawnPoliceAAtX} -1711.0 {spawnPoliceAAtY} 833.0 {headedTowardsAAtX} -1710.0 {headedTowardsAAtY} 912.0 {spawnPoliceBAtX} -1718.0 {spawnPoliceBAtY} 975.0 {headedTowardsBAtX} -1719.0 {headedTowardsBAtY} 926.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1806.0 {fromY} 954.0 {toX} -1782.0 {toY} 981.0 {spawnPoliceAAtX} -1753.0 {spawnPoliceAAtY} 935.0 {headedTowardsAAtX} -1795.0 {headedTowardsAAtY} 934.0 {spawnPoliceBAtX} -1842.0 {spawnPoliceBAtY} 916.0 {headedTowardsBAtX} -1793.0 {headedTowardsBAtY} 916.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1806.0 {fromY} 891.0 {toX} -1781.0 {toY} 867.0 {spawnPoliceAAtX} -1838.0 {spawnPoliceAAtY} 914.0 {headedTowardsAAtX} -1794.0 {headedTowardsAAtY} 915.0 {spawnPoliceBAtX} -1838.0 {spawnPoliceBAtY} 914.0 {headedTowardsBAtX} -1794.0 {headedTowardsBAtY} 915.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} -1614.0 {fromY} 943.0 {toX} -1589.0 {toY} 904.0 {spawnPoliceAAtX} -1563.0 {spawnPoliceAAtY} 880.0 {headedTowardsAAtX} -1561.0 {headedTowardsAAtY} 922.0 {spawnPoliceBAtX} -1563.0 {spawnPoliceBAtY} 966.0 {headedTowardsBAtX} -1556.0 {headedTowardsBAtY} 929.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1871.0 {fromY} 827.0 {toX} -1843.0 {toY} 864.0 {spawnPoliceAAtX} -1902.0 {spawnPoliceAAtY} 885.0 {headedTowardsAAtX} -1903.0 {headedTowardsAAtY} 837.0 {spawnPoliceBAtX} -1902.0 {spawnPoliceBAtY} 885.0 {headedTowardsBAtX} -1903.0 {headedTowardsBAtY} 837.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1912.0 {fromY} 954.0 {toX} -1880.0 {toY} 977.0 {spawnPoliceAAtX} -1936.0 {spawnPoliceAAtY} 934.0 {headedTowardsAAtX} -1896.0 {headedTowardsAAtY} 935.0 {spawnPoliceBAtX} -1936.0 {spawnPoliceBAtY} 934.0 {headedTowardsBAtX} -1896.0 {headedTowardsBAtY} 935.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1882.0 {fromY} 906.0 {toX} -1855.0 {toY} 943.0 {spawnPoliceAAtX} -1896.0 {spawnPoliceAAtY} 889.0 {headedTowardsAAtX} -1896.0 {headedTowardsAAtY} 924.0 {spawnPoliceBAtX} -1896.0 {spawnPoliceBAtY} 889.0 {headedTowardsBAtX} -1896.0 {headedTowardsBAtY} 924.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1983.0 {fromY} 906.0 {toX} -1954.0 {toY} 943.0 {spawnPoliceAAtX} -1998.0 {spawnPoliceAAtY} 883.0 {headedTowardsAAtX} -1999.0 {headedTowardsAAtY} 924.0 {spawnPoliceBAtX} -1998.0 {spawnPoliceBAtY} 883.0 {headedTowardsBAtX} -1999.0 {headedTowardsBAtY} 924.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2044.0 {fromY} 901.0 {toX} -2030.0 {toY} 907.0 {spawnPoliceAAtX} -2045.0 {spawnPoliceAAtY} 922.0 {headedTowardsAAtX} -2049.0 {headedTowardsAAtY} 907.0 {spawnPoliceBAtX} -2058.0 {spawnPoliceBAtY} 935.0 {headedTowardsBAtX} -2050.0 {headedTowardsBAtY} 912.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2113.0 {fromY} 952.0 {toX} -2098.0 {toY} 961.0 {spawnPoliceAAtX} -2078.0 {spawnPoliceAAtY} 953.0 {headedTowardsAAtX} -2094.0 {headedTowardsAAtY} 954.0 {spawnPoliceBAtX} -2086.0 {spawnPoliceBAtY} 931.0 {headedTowardsBAtX} -2097.0 {headedTowardsBAtY} 948.0
add_set_piece 8 {fromX} -2034.0 {fromY} 957.0 {toX} -2019.0 {toY} 951.0 {spawnPoliceAAtX} -2010.0 {spawnPoliceAAtY} 981.0 {headedTowardsAAtX} -2010.0 {headedTowardsAAtY} 952.0 {spawnPoliceBAtX} -1965.0 {spawnPoliceBAtY} 933.0 {headedTowardsBAtX} -2000.0 {headedTowardsBAtY} 935.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2018.0 {fromY} 1017.0 {toX} -1992.0 {toY} 1038.0 {spawnPoliceAAtX} -1959.0 {spawnPoliceAAtY} 1053.0 {headedTowardsAAtX} -2002.0 {headedTowardsAAtY} 1052.0 {spawnPoliceBAtX} -1959.0 {spawnPoliceBAtY} 1053.0 {headedTowardsBAtX} -2002.0 {headedTowardsBAtY} 1052.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} -2077.0 {fromY} 1038.0 {toX} -2072.0 {toY} 1045.0 {spawnPoliceAAtX} -2080.0 {spawnPoliceAAtY} 1078.0 {headedTowardsAAtX} -2079.0 {headedTowardsAAtY} 1053.0 {spawnPoliceBAtX} -2080.0 {spawnPoliceBAtY} 1078.0 {headedTowardsBAtX} -2079.0 {headedTowardsBAtY} 1053.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2301.0 {fromY} 1043.0 {toX} -2253.0 {toY} 1089.0 {spawnPoliceAAtX} -2350.0 {spawnPoliceAAtY} 1117.0 {headedTowardsAAtX} -2360.0 {headedTowardsAAtY} 1088.0 {spawnPoliceBAtX} -2350.0 {spawnPoliceBAtY} 1117.0 {headedTowardsBAtX} -2360.0 {headedTowardsBAtY} 1088.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2381.0 {fromY} 1030.0 {toX} -2375.0 {toY} 1061.0 {spawnPoliceAAtX} -2320.0 {spawnPoliceAAtY} 1074.0 {headedTowardsAAtX} -2356.0 {headedTowardsAAtY} 1085.0 {spawnPoliceBAtX} -2320.0 {spawnPoliceBAtY} 1074.0 {headedTowardsBAtX} -2356.0 {headedTowardsBAtY} 1085.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2399.0 {fromY} 965.0 {toX} -2374.0 {toY} 992.0 {spawnPoliceAAtX} -2344.0 {spawnPoliceAAtY} 961.0 {headedTowardsAAtX} -2385.0 {headedTowardsAAtY} 961.0 {spawnPoliceBAtX} -2344.0 {spawnPoliceBAtY} 961.0 {headedTowardsBAtX} -2385.0 {headedTowardsBAtY} 961.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2294.0 {fromY} 949.0 {toX} -2281.0 {toY} 969.0 {spawnPoliceAAtX} -2254.0 {spawnPoliceAAtY} 956.0 {headedTowardsAAtX} -2265.0 {headedTowardsAAtY} 960.0 {spawnPoliceBAtX} -2254.0 {spawnPoliceBAtY} 956.0 {headedTowardsBAtX} -2265.0 {headedTowardsBAtY} 960.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2282.0 {fromY} 992.0 {toX} -2239.0 {toY} 1017.0 {spawnPoliceAAtX} -2298.0 {spawnPoliceAAtY} 957.0 {headedTowardsAAtX} -2258.0 {headedTowardsAAtY} 955.0 {spawnPoliceBAtX} -2298.0 {spawnPoliceBAtY} 957.0 {headedTowardsBAtX} -2258.0 {headedTowardsBAtY} 955.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2206.0 {fromY} 903.0 {toX} -2171.0 {toY} 934.0 {spawnPoliceAAtX} -2254.0 {spawnPoliceAAtY} 943.0 {headedTowardsAAtX} -2253.0 {headedTowardsAAtY} 917.0 {spawnPoliceBAtX} -2254.0 {spawnPoliceBAtY} 943.0 {headedTowardsBAtX} -2253.0 {headedTowardsBAtY} 917.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2160.0 {fromY} 927.0 {toX} -2129.0 {toY} 954.0 {spawnPoliceAAtX} -2177.0 {spawnPoliceAAtY} 916.0 {headedTowardsAAtX} -2128.0 {headedTowardsAAtY} 916.0 {spawnPoliceBAtX} -2177.0 {spawnPoliceBAtY} 916.0 {headedTowardsBAtX} -2128.0 {headedTowardsBAtY} 916.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -2104.0 {fromY} 853.0 {toX} -2088.0 {toY} 859.0 {spawnPoliceAAtX} -2082.0 {spawnPoliceAAtY} 816.0 {headedTowardsAAtX} -2082.0 {headedTowardsAAtY} 838.0 {spawnPoliceBAtX} -2101.0 {spawnPoliceBAtY} 806.0 {headedTowardsBAtX} -2079.0 {headedTowardsBAtY} 806.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2099.0 {fromY} 696.0 {toX} -2079.0 {toY} 710.0 {spawnPoliceAAtX} -2114.0 {spawnPoliceAAtY} 729.0 {headedTowardsAAtX} -2089.0 {headedTowardsAAtY} 729.0 {spawnPoliceBAtX} -2114.0 {spawnPoliceBAtY} 729.0 {headedTowardsBAtX} -2089.0 {headedTowardsBAtY} 729.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2045.0 {fromY} 720.0 {toX} -2028.0 {toY} 746.0 {spawnPoliceAAtX} -2008.0 {spawnPoliceAAtY} 758.0 {headedTowardsAAtX} -2009.0 {headedTowardsAAtY} 730.0 {spawnPoliceBAtX} -2001.0 {spawnPoliceBAtY} 773.0 {headedTowardsBAtX} -2001.0 {headedTowardsBAtY} 732.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1989.0 {fromY} 719.0 {toX} -1965.0 {toY} 744.0 {spawnPoliceAAtX} -2000.0 {spawnPoliceAAtY} 691.0 {headedTowardsAAtX} -2001.0 {headedTowardsAAtY} 731.0 {spawnPoliceBAtX} -2007.0 {spawnPoliceBAtY} 765.0 {headedTowardsBAtX} -2008.0 {headedTowardsBAtY} 732.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2017.0 {fromY} 632.0 {toX} -1992.0 {toY} 657.0 {spawnPoliceAAtX} -1982.0 {spawnPoliceAAtY} 611.0 {headedTowardsAAtX} -2014.0 {headedTowardsAAtY} 611.0 {spawnPoliceBAtX} -1982.0 {spawnPoliceBAtY} 611.0 {headedTowardsBAtX} -2014.0 {headedTowardsBAtY} 611.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1979.0 {fromY} 596.0 {toX} -1955.0 {toY} 620.0 {spawnPoliceAAtX} -2015.0 {spawnPoliceAAtY} 643.0 {headedTowardsAAtX} -2013.0 {headedTowardsAAtY} 615.0 {spawnPoliceBAtX} -2015.0 {spawnPoliceBAtY} 643.0 {headedTowardsBAtX} -2013.0 {headedTowardsBAtY} 615.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2056.0 {fromY} 455.0 {toX} -2027.0 {toY} 477.0 {spawnPoliceAAtX} -2008.0 {spawnPoliceAAtY} 438.0 {headedTowardsAAtX} -2008.0 {headedTowardsAAtY} 457.0 {spawnPoliceBAtX} -2008.0 {spawnPoliceBAtY} 438.0 {headedTowardsBAtX} -2008.0 {headedTowardsBAtY} 457.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2136.0 {fromY} 347.0 {toX} -2130.0 {toY} 368.0 {spawnPoliceAAtX} -2117.0 {spawnPoliceAAtY} 386.0 {headedTowardsAAtX} -2135.0 {headedTowardsAAtY} 386.0 {spawnPoliceBAtX} -2117.0 {spawnPoliceBAtY} 386.0 {headedTowardsBAtX} -2135.0 {headedTowardsBAtY} 386.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -2196.0 {fromY} 363.0 {toX} -2174.0 {toY} 369.0 {spawnPoliceAAtX} -2148.0 {spawnPoliceAAtY} 356.0 {headedTowardsAAtX} -2149.0 {headedTowardsAAtY} 374.0 {spawnPoliceBAtX} -2145.0 {spawnPoliceBAtY} 388.0 {headedTowardsBAtX} -2145.0 {headedTowardsBAtY} 367.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2176.0 {fromY} 451.0 {toX} -2164.0 {toY} 456.0 {spawnPoliceAAtX} -2148.0 {spawnPoliceAAtY} 469.0 {headedTowardsAAtX} -2149.0 {headedTowardsAAtY} 452.0 {spawnPoliceBAtX} -2148.0 {spawnPoliceBAtY} 469.0 {headedTowardsBAtX} -2149.0 {headedTowardsBAtY} 452.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2203.0 {fromY} 451.0 {toX} -2190.0 {toY} 456.0 {spawnPoliceAAtX} -2233.0 {spawnPoliceAAtY} 463.0 {headedTowardsAAtX} -2224.0 {headedTowardsAAtY} 462.0 {spawnPoliceBAtX} -2233.0 {spawnPoliceBAtY} 463.0 {headedTowardsBAtX} -2224.0 {headedTowardsBAtY} 462.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2280.0 {fromY} 590.0 {toX} -2243.0 {toY} 621.0 {spawnPoliceAAtX} -2221.0 {spawnPoliceAAtY} 568.0 {headedTowardsAAtX} -2260.0 {headedTowardsAAtY} 568.0 {spawnPoliceBAtX} -2221.0 {spawnPoliceBAtY} 568.0 {headedTowardsBAtX} -2260.0 {headedTowardsBAtY} 568.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2235.0 {fromY} 537.0 {toX} -2217.0 {toY} 552.0 {spawnPoliceAAtX} -2196.0 {spawnPoliceAAtY} 569.0 {headedTowardsAAtX} -2233.0 {headedTowardsAAtY} 569.0 {spawnPoliceBAtX} -2196.0 {spawnPoliceBAtY} 569.0 {headedTowardsBAtX} -2233.0 {headedTowardsBAtY} 569.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2327.0 {fromY} 391.0 {toX} -2326.0 {toY} 417.0 {spawnPoliceAAtX} -2332.0 {spawnPoliceAAtY} 439.0 {headedTowardsAAtX} -2310.0 {headedTowardsAAtY} 416.0 {spawnPoliceBAtX} -2332.0 {spawnPoliceBAtY} 439.0 {headedTowardsBAtX} -2310.0 {headedTowardsBAtY} 416.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2442.0 {fromY} 421.0 {toX} -2419.0 {toY} 424.0 {spawnPoliceAAtX} -2468.0 {spawnPoliceAAtY} 420.0 {headedTowardsAAtX} -2450.0 {headedTowardsAAtY} 403.0 {spawnPoliceBAtX} -2468.0 {spawnPoliceBAtY} 420.0 {headedTowardsBAtX} -2450.0 {headedTowardsBAtY} 403.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2488.0 {fromY} 427.0 {toX} -2458.0 {toY} 429.0 {spawnPoliceAAtX} -2517.0 {spawnPoliceAAtY} 434.0 {headedTowardsAAtX} -2496.0 {headedTowardsAAtY} 450.0 {spawnPoliceBAtX} -2517.0 {spawnPoliceBAtY} 434.0 {headedTowardsBAtX} -2496.0 {headedTowardsBAtY} 450.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2549.0 {fromY} 307.0 {toX} -2528.0 {toY} 329.0 {spawnPoliceAAtX} -2558.0 {spawnPoliceAAtY} 339.0 {headedTowardsAAtX} -2540.0 {headedTowardsAAtY} 339.0 {spawnPoliceBAtX} -2558.0 {spawnPoliceBAtY} 339.0 {headedTowardsBAtX} -2540.0 {headedTowardsBAtY} 339.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2592.0 {fromY} 379.0 {toX} -2577.0 {toY} 390.0 {spawnPoliceAAtX} -2610.0 {spawnPoliceAAtY} 407.0 {headedTowardsAAtX} -2608.0 {headedTowardsAAtY} 381.0 {spawnPoliceBAtX} -2610.0 {spawnPoliceBAtY} 407.0 {headedTowardsBAtX} -2608.0 {headedTowardsBAtY} 381.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2636.0 {fromY} 279.0 {toX} -2618.0 {toY} 307.0 {spawnPoliceAAtX} -2639.0 {spawnPoliceAAtY} 331.0 {headedTowardsAAtX} -2608.0 {headedTowardsAAtY} 324.0 {spawnPoliceBAtX} -2566.0 {spawnPoliceBAtY} 345.0 {headedTowardsBAtX} -2605.0 {headedTowardsBAtY} 351.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2651.0 {fromY} 326.0 {toX} -2630.0 {toY} 341.0 {spawnPoliceAAtX} -2661.0 {spawnPoliceAAtY} 359.0 {headedTowardsAAtX} -2660.0 {headedTowardsAAtY} 336.0 {spawnPoliceBAtX} -2665.0 {spawnPoliceBAtY} 362.0 {headedTowardsBAtX} -2665.0 {headedTowardsBAtY} 330.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2741.0 {fromY} 361.0 {toX} -2697.0 {toY} 390.0 {spawnPoliceAAtX} -2714.0 {spawnPoliceAAtY} 342.0 {headedTowardsAAtX} -2708.0 {headedTowardsAAtY} 344.0 {spawnPoliceBAtX} -2711.0 {spawnPoliceBAtY} 347.0 {headedTowardsBAtX} -2706.0 {headedTowardsBAtY} 360.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2616.0 {fromY} 392.0 {toX} -2597.0 {toY} 416.0 {spawnPoliceAAtX} -2578.0 {spawnPoliceAAtY} 388.0 {headedTowardsAAtX} -2606.0 {headedTowardsAAtY} 386.0 {spawnPoliceBAtX} -2570.0 {spawnPoliceBAtY} 346.0 {headedTowardsBAtX} -2606.0 {headedTowardsBAtY} 350.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2653.0 {fromY} 326.0 {toX} -2634.0 {toY} 346.0 {spawnPoliceAAtX} -2609.0 {spawnPoliceAAtY} 359.0 {headedTowardsAAtX} -2609.0 {headedTowardsAAtY} 327.0 {spawnPoliceBAtX} -2609.0 {spawnPoliceBAtY} 359.0 {headedTowardsBAtX} -2609.0 {headedTowardsBAtY} 327.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2779.0 {fromY} 279.0 {toX} -2777.0 {toY} 303.0 {spawnPoliceAAtX} -2806.0 {spawnPoliceAAtY} 256.0 {headedTowardsAAtX} -2807.0 {headedTowardsAAtY} 289.0 {spawnPoliceBAtX} -2806.0 {spawnPoliceBAtY} 256.0 {headedTowardsBAtX} -2807.0 {headedTowardsBAtY} 289.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2829.0 {fromY} -375.0 {toX} -2806.0 {toY} -347.0 {spawnPoliceAAtX} -2789.0 {spawnPoliceAAtY} -328.0 {headedTowardsAAtX} -2816.0 {headedTowardsAAtY} -327.0 {spawnPoliceBAtX} -2789.0 {spawnPoliceBAtY} -328.0 {headedTowardsBAtX} -2816.0 {headedTowardsBAtY} -327.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2823.0 {fromY} -305.0 {toX} -2802.0 {toY} -283.0 {spawnPoliceAAtX} -2782.0 {spawnPoliceAAtY} -328.0 {headedTowardsAAtX} -2814.0 {headedTowardsAAtY} -327.0 {spawnPoliceBAtX} -2782.0 {spawnPoliceBAtY} -328.0 {headedTowardsBAtX} -2814.0 {headedTowardsBAtY} -327.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1555.0 {fromY} 2574.0 {toX} -1536.0 {toY} 2588.0 {spawnPoliceAAtX} -1524.0 {spawnPoliceAAtY} 2604.0 {headedTowardsAAtX} -1549.0 {headedTowardsAAtY} 2604.0 {spawnPoliceBAtX} -1524.0 {spawnPoliceBAtY} 2604.0 {headedTowardsBAtX} -1549.0 {headedTowardsBAtY} 2604.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1506.0 {fromY} 2616.0 {toX} -1486.0 {toY} 2625.0 {spawnPoliceAAtX} -1470.0 {spawnPoliceAAtY} 2604.0 {headedTowardsAAtX} -1496.0 {headedTowardsAAtY} 2604.0 {spawnPoliceBAtX} -1470.0 {spawnPoliceBAtY} 2604.0 {headedTowardsBAtX} -1496.0 {headedTowardsBAtY} 2604.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2573.0 {fromY} 35.0 {toX} 2603.0 {toY} 49.0 {spawnPoliceAAtX} 2534.0 {spawnPoliceAAtY} 90.0 {headedTowardsAAtX} 2534.0 {headedTowardsAAtY} 46.0 {spawnPoliceBAtX} 2533.0 {spawnPoliceBAtY} 1.0 {headedTowardsBAtX} 2534.0 {headedTowardsBAtY} 40.0
init_zone_population_settings 
set_zone_population_type 'MARKST' {type} ZoneType.ShoppingPosh
set_zone_population_type 'UNITY' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LAIR1' {type} ZoneType.Airport
set_zone_population_type 'LAIR2A' {type} ZoneType.Airport
set_zone_population_type 'LAIR2B' {type} ZoneType.Airport
set_zone_population_type 'LBAG1' {type} ZoneType.AirportRunway
set_zone_population_type 'LBAG2' {type} ZoneType.AirportRunway
set_zone_population_type 'LBAG3' {type} ZoneType.AirportRunway
set_zone_population_type 'BLUF1A' {type} ZoneType.Park
set_zone_population_type 'BLUF2' {type} ZoneType.Park
set_zone_population_type 'SUN1' {type} ZoneType.Entertainment
set_zone_population_type 'SUN1' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3A' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3B' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3C' {type} ZoneType.Entertainment
set_zone_population_type 'SUN4' {type} ZoneType.Entertainment
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3A' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3B' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3C' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN4' {gangId} GangType.Grove {density} 30
set_zone_population_type 'COM1A' {type} ZoneType.Shopping
set_zone_population_type 'COM1B' {type} ZoneType.Shopping
set_zone_population_type 'COM2' {type} ZoneType.Shopping
set_zone_population_type 'COM3' {type} ZoneType.Shopping
set_zone_population_type 'COM4' {type} ZoneType.Shopping
set_zone_population_type 'PER1' {type} ZoneType.Shopping
set_zone_population_type 'CHC1A' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC1B' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC2A' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC2B' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC3' {type} ZoneType.Gangland
set_zone_population_type 'CHC4A' {type} ZoneType.Gangland
set_zone_population_type 'CHC4B' {type} ZoneType.Gangland
set_zone_population_race 'CHC1A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC1B' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC2A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC2B' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC3' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC4A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC4B' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'CHC1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC3' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4B' {gangId} GangType.Vagos {density} 40
set_zone_dealer_strength 'CHC1A' {strength} 4
set_zone_dealer_strength 'CHC1B' {strength} 4
set_zone_dealer_strength 'CHC2A' {strength} 4
set_zone_dealer_strength 'CHC2B' {strength} 4
set_zone_dealer_strength 'CHC3' {strength} 4
set_zone_dealer_strength 'CHC4A' {strength} 4
set_zone_dealer_strength 'CHC4B' {strength} 4
set_zone_population_type 'CONF1A' {type} ZoneType.Business
set_zone_population_type 'CONF1B' {type} ZoneType.Business
set_zone_population_type 'THALL1' {type} ZoneType.Business
set_zone_population_type 'LDOC1A' {type} ZoneType.Industry
set_zone_population_type 'LDOC1B' {type} ZoneType.Industry
set_zone_population_type 'LDOC2' {type} ZoneType.Industry
set_zone_population_type 'LDOC3A' {type} ZoneType.Industry
set_zone_population_type 'LDOC3B' {type} ZoneType.Industry
set_zone_population_type 'LDOC3C' {type} ZoneType.Industry
set_zone_population_type 'LDOC4' {type} ZoneType.Industry
set_zone_population_type 'LDT1A' {type} ZoneType.Business
set_zone_population_type 'LDT1B' {type} ZoneType.Business
set_zone_population_type 'LDT1C' {type} ZoneType.Business
set_zone_population_type 'LDT3' {type} ZoneType.Business
set_zone_population_type 'LDT4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LDT5' {type} ZoneType.Business
set_zone_population_type 'LDT6' {type} ZoneType.Business
set_zone_population_type 'LDT7' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE2A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE2B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE3C' {type} ZoneType.Beach
set_zone_gang_strength 'EBE1' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE3C' {gangId} GangType.Vagos {density} 30
set_zone_dealer_strength 'EBE1' {strength} 2
set_zone_dealer_strength 'EBE2A' {strength} 2
set_zone_dealer_strength 'EBE2B' {strength} 2
set_zone_dealer_strength 'EBE3C' {strength} 2
set_zone_population_type 'ELCO1' {type} ZoneType.ResidentialPoor
set_zone_population_type 'ELCO2' {type} ZoneType.Gangland
set_zone_population_race 'ELCO1' {races} RaceSet.BlackHispanic
set_zone_population_race 'ELCO2' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_population_type 'GAN1' {type} ZoneType.Gangland
set_zone_population_type 'GAN2' {type} ZoneType.Gangland
set_zone_population_race 'GAN1' {races} RaceSet.Black
set_zone_population_race 'GAN2' {races} RaceSet.Black
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 25
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 25
set_zone_no_cops 'GAN1' {state} True
set_zone_population_type 'GLN1' {type} ZoneType.Gangland
set_zone_population_type 'GLN2A' {type} ZoneType.Gangland
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN2A' {gangId} GangType.Ballas {density} 40
set_zone_dealer_strength 'GLN1' {strength} 6
set_zone_dealer_strength 'GLN2A' {strength} 2
set_zone_population_type 'LIND1A' {type} ZoneType.Gangland
set_zone_population_type 'LIND1B' {type} ZoneType.Industry
set_zone_population_type 'LIND2A' {type} ZoneType.Industry
set_zone_population_type 'LIND2B' {type} ZoneType.Industry
set_zone_population_type 'LIND3' {type} ZoneType.Industry
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_population_type 'IWD1' {type} ZoneType.Gangland
set_zone_population_type 'IWD2' {type} ZoneType.Gangland
set_zone_population_type 'IWD3A' {type} ZoneType.Gangland
set_zone_population_type 'IWD3B' {type} ZoneType.Gangland
set_zone_population_type 'IWD4' {type} ZoneType.Gangland
set_zone_population_type 'IWD5' {type} ZoneType.Gangland
set_zone_population_race 'IWD1' {races} RaceSet.Black
set_zone_population_race 'IWD2' {races} RaceSet.Black
set_zone_population_race 'IWD3A' {races} RaceSet.Black
set_zone_population_race 'IWD3B' {races} RaceSet.Black
set_zone_population_race 'IWD4' {races} RaceSet.Black
set_zone_population_race 'IWD5' {races} RaceSet.Black
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
set_zone_dealer_strength 'IWD1' {strength} 2
set_zone_dealer_strength 'IWD2' {strength} 2
set_zone_dealer_strength 'IWD3A' {strength} 2
set_zone_dealer_strength 'IWD3B' {strength} 2
set_zone_dealer_strength 'IWD4' {strength} 2
set_zone_dealer_strength 'IWD5' {strength} 2
set_zone_population_type 'JEF1A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF1B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3C' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'JEF1A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF1B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF2' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3C' {gangId} GangType.Ballas {density} 40
set_zone_dealer_strength 'JEF1A' {strength} 6
set_zone_dealer_strength 'JEF1B' {strength} 6
set_zone_dealer_strength 'JEF2' {strength} 6
set_zone_dealer_strength 'JEF3B' {strength} 6
set_zone_dealer_strength 'JEF3C' {strength} 6
set_zone_population_type 'LFL1A' {type} ZoneType.Gangland
set_zone_population_type 'LFL1B' {type} ZoneType.Gangland
set_zone_population_race 'LFL1A' {races} RaceSet.BlackHispanic
set_zone_population_race 'LFL1B' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'LFL1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LFL1B' {gangId} GangType.Vagos {density} 40
set_zone_dealer_strength 'LFL1A' {strength} 4
set_zone_dealer_strength 'LFL1B' {strength} 4
set_zone_population_type 'LMEX1A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LMEX1B' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 30
set_zone_population_type 'ELS1A' {type} ZoneType.Gangland
set_zone_population_type 'ELS1B' {type} ZoneType.Gangland
set_zone_population_type 'ELS2' {type} ZoneType.Gangland
set_zone_population_type 'ELS3A' {type} ZoneType.Gangland
set_zone_population_type 'ELS3B' {type} ZoneType.Gangland
set_zone_population_type 'ELS4' {type} ZoneType.Gangland
set_zone_population_race 'ELS1A' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS1B' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS2' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS3A' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS3B' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS4' {races} RaceSet.HispanicWhite
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_dealer_strength 'ELS1A' {strength} 2
set_zone_dealer_strength 'ELS1B' {strength} 2
set_zone_dealer_strength 'ELS2' {strength} 2
set_zone_dealer_strength 'ELS3A' {strength} 2
set_zone_dealer_strength 'ELS3B' {strength} 2
set_zone_dealer_strength 'ELS4' {strength} 2
set_zone_population_type 'MAR1' {type} ZoneType.ResidentialRich
set_zone_population_type 'MAR2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'MAR3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'MKT1' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT2' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT3' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT4' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MUL1A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL1B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL1C' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL2A' {type} ZoneType.Park
set_zone_population_type 'MUL2B' {type} ZoneType.Park
set_zone_population_type 'MUL3' {type} ZoneType.Park
set_zone_population_type 'MUL4' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5C' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL6' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL7A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL7B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'PLS' {type} ZoneType.Beach
set_zone_gang_strength 'PLS' {gangId} GangType.Grove {density} 10
set_zone_population_type 'RIH1A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH1B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH2' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH3A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH3B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH4' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH6B' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH6B' {type} ZoneType.ResidentialRich
set_zone_population_type 'ROD1A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD1B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD1C' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD2A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD2B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD3A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD3B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4C' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'ROD5B' {type} ZoneType.ResidentialRich
set_zone_population_type 'SMB1' {type} ZoneType.Beach
set_zone_population_type 'SMB2' {type} ZoneType.Beach
set_zone_gang_strength 'SMB1' {gangId} GangType.Grove {density} 10
set_zone_gang_strength 'SMB2' {gangId} GangType.Grove {density} 10
set_zone_population_type 'VIN2' {type} ZoneType.Entertainment
set_zone_population_type 'VIN3' {type} ZoneType.Entertainment
set_zone_population_type 'VIN1A' {type} ZoneType.Entertainment
set_zone_population_type 'VIN1B' {type} ZoneType.Entertainment
set_zone_gang_strength 'VIN2' {gangId} GangType.Grove {density} 10
set_zone_population_type 'VERO1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'VERO2' {type} ZoneType.Shopping
set_zone_population_type 'VERO3' {type} ZoneType.Shopping
set_zone_population_type 'VERO4A' {type} ZoneType.Beach
set_zone_population_type 'VERO4B' {type} ZoneType.Beach
set_zone_gang_strength 'VERO1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO3' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4B' {gangId} GangType.Ballas {density} 10
set_zone_dealer_strength 'VERO1' {strength} 2
set_zone_dealer_strength 'VERO2' {strength} 2
set_zone_dealer_strength 'VERO3' {strength} 2
set_zone_dealer_strength 'VERO4A' {strength} 2
set_zone_dealer_strength 'VERO4B' {strength} 2
set_zone_population_type 'CRANB' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CALT' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'CALT' {gangId} GangType.Triad {density} 10
set_zone_population_type 'SUNMA' {type} ZoneType.ResidentialRich
set_zone_population_type 'SUNNN' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BATTP' {type} ZoneType.Entertainment
set_zone_gang_strength 'BATTP' {gangId} GangType.Rifa {density} 25
set_zone_population_type 'ESPN1' {type} ZoneType.Shopping
set_zone_population_type 'ESPN2' {type} ZoneType.Shopping
set_zone_population_type 'ESPN3' {type} ZoneType.Shopping
set_zone_gang_strength 'ESPN1' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'ESPN2' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'ESPN3' {gangId} GangType.DaNangBoys {density} 10
set_zone_population_type 'BAYV' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PARA' {type} ZoneType.ResidentialRich
set_zone_population_type 'JUNIHO' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JUNIHI' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CIVI' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CHINA' {type} ZoneType.Shopping
set_zone_population_race 'CHINA' {races} RaceSet.OrientalWhite
set_zone_gang_strength 'CHINA' {gangId} GangType.Triad {density} 40
set_zone_population_type 'SFDWT1' {type} ZoneType.Business
set_zone_population_type 'SFDWT2' {type} ZoneType.Business
set_zone_population_type 'SFDWT3' {type} ZoneType.Business
set_zone_population_type 'SFDWT4' {type} ZoneType.Shopping
set_zone_population_type 'SFDWT5' {type} ZoneType.Shopping
set_zone_population_type 'SFDWT6' {type} ZoneType.Shopping
set_zone_population_type 'FINA' {type} ZoneType.Business
set_zone_population_type 'CITYS' {type} ZoneType.Business
set_zone_population_type 'WESTP1' {type} ZoneType.ResidentialRich
set_zone_population_type 'WESTP2' {type} ZoneType.ResidentialRich
set_zone_population_type 'WESTP3' {type} ZoneType.ResidentialRich
set_zone_population_type 'THEA1' {type} ZoneType.Entertainment
set_zone_population_type 'THEA2' {type} ZoneType.Entertainment
set_zone_population_type 'THEA3' {type} ZoneType.Entertainment
set_zone_gang_strength 'THEA1' {gangId} GangType.Triad {density} 10
set_zone_gang_strength 'THEA3' {gangId} GangType.Rifa {density} 10
set_zone_population_type 'GARC' {type} ZoneType.Gangland
set_zone_gang_strength 'GARC' {gangId} GangType.Rifa {density} 40
set_zone_population_type 'HASH' {type} ZoneType.ResidentialPoor
set_zone_population_type 'OCEAF1' {type} ZoneType.Beach
set_zone_population_type 'OCEAF2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'OCEAF3' {type} ZoneType.Beach
set_zone_population_type 'DOH1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'DOH2' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'DOH2' {gangId} GangType.Rifa {density} 10
set_zone_population_type 'CUNTC1' {type} ZoneType.ResidentialRich
set_zone_population_type 'CUNTC2' {type} ZoneType.ResidentialRich
set_zone_population_type 'CUNTC3' {type} ZoneType.ResidentialRich
set_zone_population_type 'SFGLF1' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF2' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF3' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF4' {type} ZoneType.GolfClub
set_zone_population_type 'HILLP' {type} ZoneType.Park
set_zone_population_type 'SILLY1' {type} ZoneType.Business
set_zone_population_type 'SILLY2' {type} ZoneType.Business
set_zone_population_type 'SILLY3' {type} ZoneType.Business
set_zone_population_type 'SILLY4' {type} ZoneType.Business
set_zone_population_type 'SFAIR1' {type} ZoneType.Airport
set_zone_population_type 'SFAIR2' {type} ZoneType.Airport
set_zone_population_type 'SFAIR3' {type} ZoneType.Airport
set_zone_population_type 'SFAIR4' {type} ZoneType.Airport
set_zone_population_type 'SFAIR5' {type} ZoneType.Airport
set_zone_population_type 'SFBAG1' {type} ZoneType.AirportRunway
set_zone_population_type 'SFBAG2' {type} ZoneType.AirportRunway
set_zone_population_type 'SFBAG3' {type} ZoneType.AirportRunway
set_zone_population_type 'EASB1' {type} ZoneType.Industry
set_zone_population_type 'EASB2' {type} ZoneType.Industry
set_zone_gang_strength 'EASB1' {gangId} GangType.DaNangBoys {density} 40
set_zone_gang_strength 'EASB2' {gangId} GangType.DaNangBoys {density} 40
set_zone_population_type 'ESPE1' {type} ZoneType.Shopping
set_zone_population_type 'ESPE2' {type} ZoneType.Shopping
set_zone_population_type 'ESPE3' {type} ZoneType.Shopping
set_zone_gang_strength 'EASB1' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'EASB2' {gangId} GangType.DaNangBoys {density} 10
set_zone_population_type 'LINDEN' {type} ZoneType.ResidentialAverage
set_zone_population_type 'YELLOW' {type} ZoneType.ResidentialRich
set_zone_population_type 'BFC1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BFC2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'RIE' {type} ZoneType.Business
set_zone_population_type 'LDM' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSW1' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSW2' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSE' {type} ZoneType.ResidentialPoor
set_zone_population_type 'LDS' {type} ZoneType.Industry
set_zone_population_type 'SRY' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTS1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTS2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LVA1' {type} ZoneType.Industry
set_zone_population_type 'LVA2' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'LVA3' {type} ZoneType.Industry
set_zone_population_type 'LVA4' {type} ZoneType.Industry
set_zone_population_type 'VAIR1' {type} ZoneType.Airport
set_zone_population_type 'VAIR2' {type} ZoneType.Airport
set_zone_population_type 'VAIR3' {type} ZoneType.Airport
set_zone_population_type 'LVBAG' {type} ZoneType.AirportRunway
set_zone_population_type 'GGC1' {type} ZoneType.Park
set_zone_population_type 'GGC2' {type} ZoneType.Entertainment
set_zone_population_type 'BFLD1' {type} ZoneType.Park
set_zone_population_type 'BFLD2' {type} ZoneType.Entertainment
set_zone_population_type 'WWE' {type} ZoneType.ResidentialAverage
set_zone_population_type 'WWE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PINT' {type} ZoneType.ResidentialAverage
set_zone_population_type 'YBELL2' {type} ZoneType.ResidentialRich
set_zone_population_type 'YBELL1' {type} ZoneType.GolfClub
set_zone_population_type 'JTW1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTW2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN5' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN6' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN7' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN8' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'HGP' {type} ZoneType.ResidentialRich
set_zone_population_type 'SPIN' {type} ZoneType.Industry
set_zone_population_type 'BINT1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PRP1' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP2' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP3' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP4' {type} ZoneType.ResidentialRich
set_zone_population_type 'REDE1' {type} ZoneType.Business
set_zone_population_type 'REDE2' {type} ZoneType.Business
set_zone_population_type 'REDE3' {type} ZoneType.Entertainment
set_zone_population_type 'REDW1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'REDW2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'REDW3' {type} ZoneType.Industry
set_zone_population_type 'REDW4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'ROCE1' {type} ZoneType.Business
set_zone_population_type 'ROCE2' {type} ZoneType.Business
set_zone_population_type 'OVS' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CREE' {type} ZoneType.Shopping
set_zone_population_type 'STRIP1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP3' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP4' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PILL1' {type} ZoneType.Shopping
set_zone_population_type 'PILL2' {type} ZoneType.Shopping
set_zone_population_type 'RING' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'ISLE' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STAR1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STAR2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'ROY' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CAM' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'LOT' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PIRA' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'VISA1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'VISA2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CALI1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CALI2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'DRAG' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PINK' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'HIGH' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CONST1' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'ANGPI' {type} ZoneType.Countryside
set_zone_population_type 'SHACA' {type} ZoneType.Countryside
set_zone_population_type 'BACKO' {type} ZoneType.Countryside
set_zone_population_type 'BEACO' {type} ZoneType.Countryside
set_zone_population_type 'FARM' {type} ZoneType.Countryside
set_zone_population_type 'PALO' {type} ZoneType.Countryside
set_zone_population_type 'MONT' {type} ZoneType.Countryside
set_zone_population_type 'MONT1' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI1' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI2' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI3' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI4' {type} ZoneType.Countryside
set_zone_population_type 'HBARNS' {type} ZoneType.Countryside
set_zone_population_type 'DILLI' {type} ZoneType.Countryside
set_zone_population_type 'TOPFA' {type} ZoneType.Countryside
set_zone_population_type 'BLUEB' {type} ZoneType.Countryside
set_zone_population_type 'BLUEB1' {type} ZoneType.Countryside
set_zone_population_type 'PANOP' {type} ZoneType.Countryside
set_zone_population_type 'BLUAC' {type} ZoneType.Countryside
set_zone_population_type 'CREEK' {type} ZoneType.Countryside
set_zone_population_type 'CREEK1' {type} ZoneType.Countryside
set_zone_population_type 'MAKO' {type} ZoneType.Countryside
set_zone_population_type 'TOPFA' {type} ZoneType.Countryside
set_zone_population_type 'FERN' {type} ZoneType.Countryside
set_zone_population_type 'NROCK' {type} ZoneType.Countryside
set_zone_population_type 'HANKY' {type} ZoneType.Countryside
set_zone_population_type 'LEAFY' {type} ZoneType.Countryside
set_zone_population_type 'RED' {type} ZoneType.Countryside
set_zone_population_type 'FLINTC' {type} ZoneType.Countryside
set_zone_population_type 'WHET' {type} ZoneType.Countryside
set_zone_population_type 'BIGE' {type} ZoneType.Desert
set_zone_population_type 'ELQUE' {type} ZoneType.Desert
set_zone_population_type 'BARRA' {type} ZoneType.Desert
set_zone_population_type 'CARSO' {type} ZoneType.Desert
set_zone_population_type 'PAYAS' {type} ZoneType.Desert
set_zone_population_type 'PROBE' {type} ZoneType.Desert
set_zone_population_type 'ELCA' {type} ZoneType.Desert
set_zone_population_type 'FLINTR' {type} ZoneType.Desert
set_zone_population_type 'ARCO' {type} ZoneType.Desert
set_zone_population_type 'VALLE' {type} ZoneType.Desert
set_zone_population_type 'FLINTI' {type} ZoneType.Desert
set_zone_population_type 'MONINT' {type} ZoneType.Desert
set_zone_population_type 'ROBINT' {type} ZoneType.Desert
set_zone_population_type 'TOM' {type} ZoneType.Desert
set_zone_population_type 'ALDEA' {type} ZoneType.Desert
set_zone_population_type 'BRUJA' {type} ZoneType.Desert
set_zone_population_type 'ROBAD' {type} ZoneType.Desert
set_zone_population_type 'BONE' {type} ZoneType.Desert
set_zone_population_type 'HAUL' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'QUARY' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'OCTAN' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'PALMS' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'EBAY' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'EBAY2' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'DAM' {type} ZoneType.OutOfTownFactory
$iSetOTBPanic = create_horseshoe_pickup 1224.0 {y} 2617.0 {z} 11.0
$pickup_horseshoe = create_horseshoe_pickup 2323.0 {y} 1284.0 {z} 97.0
$2883 = create_horseshoe_pickup 2035.0 {y} 2305.0 {z} 18.0
$2884 = create_horseshoe_pickup 2491.0 {y} 2263.0 {z} 15.0
$2885 = create_horseshoe_pickup 1433.0 {y} 2796.0 {z} 20.0
$2886 = create_horseshoe_pickup 2071.0 {y} 712.0 {z} 11.0
$2887 = create_horseshoe_pickup 2239.0 {y} 1839.0 {z} 18.0
$2888 = create_horseshoe_pickup 2583.0 {y} 2387.0 {z} 16.0
$2889 = create_horseshoe_pickup 2864.0 {y} 857.0 {z} 13.0
$2890 = create_horseshoe_pickup 2612.0 {y} 2200.0 {z} -1.0
$2891 = create_horseshoe_pickup 2274.0 {y} 1507.0 {z} 24.0
$2892 = create_horseshoe_pickup 2184.0 {y} 2529.0 {z} 11.0
$2893 = create_horseshoe_pickup 1863.0 {y} 2314.0 {z} 15.0
$2894 = create_horseshoe_pickup 2054.0 {y} 2434.0 {z} 166.0
$2895 = create_horseshoe_pickup 1603.0 {y} 1435.0 {z} 11.0
$2896 = create_horseshoe_pickup 1362.92 {y} 1015.24 {z} 11.0
$2897 = create_horseshoe_pickup 2058.7 {y} 2159.1001 {z} 16.0
$2898 = create_horseshoe_pickup 2003.0 {y} 1672.0 {z} 12.0
$2899 = create_horseshoe_pickup 2238.0 {y} 1135.0 {z} 49.0
$2900 = create_horseshoe_pickup 1934.0601 {y} 988.79 {z} 22.0
$2901 = create_horseshoe_pickup 1768.0 {y} 2847.0 {z} 9.0
$2902 = create_horseshoe_pickup 1084.0 {y} 1076.0 {z} 11.0
$2903 = create_horseshoe_pickup 2879.0 {y} 2522.0 {z} 11.0
$2904 = create_horseshoe_pickup 2371.0 {y} 2009.0 {z} 15.0
$2905 = create_horseshoe_pickup 1521.0 {y} 1690.0 {z} 10.6
$2906 = create_horseshoe_pickup 2417.0 {y} 1281.0 {z} 21.0
$2907 = create_horseshoe_pickup 1376.0 {y} 2304.0 {z} 15.0
$2908 = create_horseshoe_pickup 1393.0 {y} 1832.0 {z} 12.34
$2909 = create_horseshoe_pickup 984.0 {y} 2563.0 {z} 12.0
$2910 = create_horseshoe_pickup 1767.0 {y} 601.0 {z} 13.0
$2911 = create_horseshoe_pickup 2108.0 {y} 1003.0 {z} 46.0
$2912 = create_horseshoe_pickup 2705.98 {y} 1862.52 {z} 24.41
$2913 = create_horseshoe_pickup 2493.0 {y} 922.0 {z} 16.0
$2914 = create_horseshoe_pickup 1881.0 {y} 2846.0 {z} 11.0
$2915 = create_horseshoe_pickup 2020.0 {y} 2352.0 {z} 11.0
$2916 = create_horseshoe_pickup 1680.3 {y} 2226.8601 {z} 16.11
$2917 = create_horseshoe_pickup 1462.0 {y} 936.0 {z} 10.0
$2918 = create_horseshoe_pickup 2125.5 {y} 789.23 {z} 11.45
$2919 = create_horseshoe_pickup 2588.0 {y} 1902.0 {z} 15.0
$2920 = create_horseshoe_pickup 919.0 {y} 2070.0 {z} 11.0
$2921 = create_horseshoe_pickup 2173.0 {y} 2465.0 {z} 11.0
$2922 = create_horseshoe_pickup 2031.25 {y} 2207.3301 {z} 11.0
$2923 = create_horseshoe_pickup 2509.0 {y} 1144.0 {z} 19.0
$2924 = create_horseshoe_pickup 2215.0 {y} 1968.0 {z} 11.0
$2925 = create_horseshoe_pickup 2626.0 {y} 2841.0 {z} 11.0
$2926 = create_horseshoe_pickup 2440.0801 {y} 2161.0701 {z} 20.0
$2927 = create_horseshoe_pickup 1582.0 {y} 2401.0 {z} 19.0
$2928 = create_horseshoe_pickup 2077.0 {y} 1912.0 {z} 14.0
$2929 = create_horseshoe_pickup 970.0 {y} 1787.0 {z} 11.0
$2930 = create_horseshoe_pickup 1526.22 {y} 751.0 {z} 29.04
$2931 = create_snapshot_pickup -2511.28 {y} -672.99 {z} 195.75
$location_photo = create_snapshot_pickup -2723.6299 {y} -314.72 {z} 55.79
$2933 = create_snapshot_pickup -1737.71 {y} -579.55 {z} 26.19
$2934 = create_snapshot_pickup -1486.08 {y} 920.04 {z} 41.37
$2935 = create_snapshot_pickup -1269.8199 {y} 963.63 {z} 130.37
$2936 = create_snapshot_pickup -1650.01 {y} 422.0 {z} 21.17
$2937 = create_snapshot_pickup -1851.72 {y} -96.73 {z} 24.37
$2938 = create_snapshot_pickup -2732.0 {y} -244.0 {z} 19.0
$2939 = create_snapshot_pickup -2802.75 {y} 375.47 {z} 36.59
$2940 = create_snapshot_pickup -2773.04 {y} 783.45 {z} 67.66
$2941 = create_snapshot_pickup -2680.0701 {y} 1590.8 {z} 143.53
$2942 = create_snapshot_pickup -2476.75 {y} 1543.4399 {z} 49.26
$2943 = create_snapshot_pickup -1879.04 {y} 1456.52 {z} 9.34
$2944 = create_snapshot_pickup -1561.55 {y} 655.19 {z} 56.52
$2945 = create_snapshot_pickup -1325.15 {y} 494.19 {z} 26.83
$2946 = create_snapshot_pickup -1941.41 {y} 137.72 {z} 37.83
$2947 = create_snapshot_pickup -2153.23 {y} 462.25 {z} 103.27
$2948 = create_snapshot_pickup -2243.96 {y} 577.76 {z} 49.0
$2949 = create_snapshot_pickup -2051.0 {y} 456.0 {z} 167.0
$2950 = create_snapshot_pickup -1951.0 {y} 659.0 {z} 81.0
$2951 = create_snapshot_pickup -2064.0 {y} 926.0 {z} 63.0
$2952 = create_snapshot_pickup -2357.3301 {y} 1017.01 {z} 59.76
$2953 = create_snapshot_pickup -2072.0 {y} 1066.0 {z} 74.0
$2954 = create_snapshot_pickup -1744.0 {y} 972.46 {z} 156.89
$2955 = create_snapshot_pickup -1941.0 {y} 883.0 {z} 68.0
$2956 = create_snapshot_pickup -1839.51 {y} 1086.88 {z} 101.29
$2957 = create_snapshot_pickup -1704.8 {y} 1338.0 {z} 14.0
$2958 = create_snapshot_pickup -2346.6201 {y} 536.85 {z} 86.02
$2959 = create_snapshot_pickup -2443.0 {y} 755.0 {z} 49.0
$2960 = create_snapshot_pickup -2765.0 {y} 375.0 {z} 15.0
$2961 = create_snapshot_pickup -2880.3101 {y} -935.83 {z} 40.82
$2962 = create_snapshot_pickup -2083.0 {y} -808.0 {z} 69.0
$2963 = create_snapshot_pickup -1954.0 {y} -760.0 {z} 53.0
$2964 = create_snapshot_pickup -964.53 {y} -331.59 {z} 47.16
$2965 = create_snapshot_pickup -1689.0 {y} 51.0 {z} 38.0
$2966 = create_snapshot_pickup -2080.0 {y} 256.05 {z} 107.0
$2967 = create_snapshot_pickup -2413.0 {y} 331.0 {z} 37.0
$2968 = create_snapshot_pickup -2244.4199 {y} 731.32 {z} 61.88
$2969 = create_snapshot_pickup -2462.0 {y} 369.0 {z} 59.0
$2970 = create_snapshot_pickup -1124.4399 {y} -153.15 {z} 18.5
$2971 = create_snapshot_pickup -1275.78 {y} 53.68 {z} 89.07
$2972 = create_snapshot_pickup -2430.0 {y} 38.0 {z} 51.0
$2973 = create_snapshot_pickup -2591.0 {y} 162.0 {z} 15.0
$2974 = create_snapshot_pickup -2591.0 {y} -16.0 {z} 17.0
$2975 = create_snapshot_pickup -2648.0 {y} -5.0 {z} 31.0
$2976 = create_snapshot_pickup -2593.0 {y} 56.0 {z} 16.0
$2977 = create_snapshot_pickup -1619.3101 {y} 1341.39 {z} 11.3
$2978 = create_snapshot_pickup -2307.0 {y} 207.0 {z} 42.0
$2979 = create_snapshot_pickup -2343.0 {y} -79.0 {z} 38.0
$2980 = create_snapshot_pickup -1906.66 {y} 518.58 {z} 61.71
$2981 = create_oyster_pickup 979.0 {y} -2210.0 {z} -3.0
$pickup_oyster = create_oyster_pickup 2750.0 {y} -2584.0 {z} -5.0
$2983 = create_oyster_pickup 1279.0 {y} -806.0 {z} 85.0
$2984 = create_oyster_pickup 2945.1299 {y} -2051.9299 {z} -3.0
$2985 = create_oyster_pickup 67.0 {y} -1018.0 {z} -5.0
$2986 = create_oyster_pickup 2327.0 {y} -2662.0 {z} -5.0
$2987 = create_oyster_pickup 2621.0 {y} -2506.0 {z} -5.0
$2988 = create_oyster_pickup 1249.0 {y} -2687.0 {z} -1.0
$2989 = create_oyster_pickup 725.0 {y} -1849.0 {z} -5.0
$2990 = create_oyster_pickup 723.0 {y} -1586.0 {z} -3.0
$2991 = create_oyster_pickup 155.0 {y} -1975.0 {z} -8.0
$2992 = create_oyster_pickup 1968.0 {y} -1203.0 {z} 17.0
$2993 = create_oyster_pickup -2657.0 {y} 1564.0 {z} -6.0
$2994 = create_oyster_pickup -1252.0 {y} 501.0 {z} -8.0
$2995 = create_oyster_pickup -1625.0 {y} 4.0 {z} -10.0
$2996 = create_oyster_pickup -1484.0 {y} 1489.0 {z} -10.0
$2997 = create_oyster_pickup -2505.406 {y} 1543.724 {z} -22.5553
$2998 = create_oyster_pickup -2727.0 {y} -469.0 {z} -5.0
$2999 = create_oyster_pickup -1266.0 {y} 966.0 {z} -10.0
$3000 = create_oyster_pickup -1013.0 {y} 478.0 {z} -7.0
$3001 = create_oyster_pickup -1364.0 {y} 390.0 {z} -5.0
$3002 = create_oyster_pickup 2578.0 {y} 2382.0 {z} 16.0
$3003 = create_oyster_pickup 2090.0 {y} 1898.0 {z} 8.0
$3004 = create_oyster_pickup 2130.0 {y} 1152.0 {z} 7.0
$3005 = create_oyster_pickup 2013.0 {y} 1670.0 {z} 7.0
$3006 = create_oyster_pickup 2531.0 {y} 1569.0 {z} 9.0
$3007 = create_oyster_pickup 2998.0 {y} 2998.0 {z} -10.0
$3008 = create_oyster_pickup -832.0 {y} 925.0 {z} -2.0
$3009 = create_oyster_pickup 486.0 {y} -253.0 {z} -4.0
$3010 = create_oyster_pickup -90.0 {y} -910.0 {z} -5.0
$3011 = create_oyster_pickup 26.43 {y} -1320.9399 {z} -10.04
$3012 = create_oyster_pickup -207.0 {y} -1682.0 {z} -8.0
$3013 = create_oyster_pickup -1672.0 {y} -1641.0 {z} -2.0
$3014 = create_oyster_pickup -1175.0 {y} -2639.0 {z} -2.5
$3015 = create_oyster_pickup -1097.0 {y} -2858.0 {z} -8.0
$3016 = create_oyster_pickup -2889.0 {y} -1042.0 {z} -9.0
$3017 = create_oyster_pickup -659.0 {y} 874.0 {z} -2.0
$3018 = create_oyster_pickup -955.0 {y} 2628.0 {z} 35.0
$3019 = create_oyster_pickup -1066.0 {y} 2197.0 {z} 32.0
$3020 = create_oyster_pickup 40.0 {y} -531.0 {z} -8.0
$3021 = create_oyster_pickup -765.0 {y} 247.0 {z} -8.0
$3022 = create_oyster_pickup 2098.0 {y} -108.0 {z} -2.0
$3023 = create_oyster_pickup 2767.0 {y} 470.0 {z} -8.0
$3024 = create_oyster_pickup -783.0 {y} 2116.0 {z} 35.0
$3025 = create_oyster_pickup -821.0 {y} 1374.0 {z} -8.0
$3026 = create_oyster_pickup -2110.5 {y} 2329.72 {z} -7.5
$3027 = create_oyster_pickup -1538.0 {y} 1708.0 {z} -3.27
$3028 = create_oyster_pickup -2685.0 {y} 2153.0 {z} -5.0
$3029 = create_oyster_pickup 796.0 {y} 2939.0 {z} -5.0
$3030 = create_oyster_pickup 2179.0 {y} 235.0 {z} -5.0
$3031 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2832.0 {y} 2405.0 {z} 18.0
$pickup_weapon = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2819.0 {y} 1663.0 {z} 11.0
$3033 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2725.0 {y} 2727.0 {z} 11.0
$3034 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} 2649.0 {y} 2733.0 {z} 11.0
$3035 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} 2148.0 {y} 2721.0 {z} 11.0
$3036 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1345.0 {y} 2367.0 {z} 11.0
$3037 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1625.0 {y} 1944.0 {z} 11.0
$3038 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 1569.0 {y} 2150.0 {z} 11.0
$3039 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2072.0 {y} 2370.0 {z} 61.0
$3040 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2225.0 {y} 2530.0 {z} 17.0
$3041 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2337.0 {y} 1806.0 {z} 72.0
$3042 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2575.0 {y} 1562.0 {z} 16.0
$3043 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2243.0 {y} 1132.0 {z} 11.0
$3044 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 2676.0 {y} 836.0 {z} 22.0
$3045 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1761.0 {y} 591.0 {z} 10.0
$3046 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2809.0 {y} 864.0 {z} 21.0
$3047 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1923.0 {y} 1011.0 {z} 22.0
$3048 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1407.0 {y} 1098.0 {z} 11.0
$3049 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1319.0 {y} 1636.0 {z} 10.6
$3050 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1446.35 {y} 1900.03 {z} 11.0
$3051 = create_pickup_with_ammo 347 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1098.0 {y} 1681.0 {z} 7.0
$3052 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 924.0 {y} 2138.0 {z} 11.0
$3053 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1155.0 {y} 2341.0 {z} 17.0
$3054 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1646.0 {y} 1349.0 {z} 11.0
$3055 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1781.0 {y} 2072.0 {z} 11.0
$3056 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2478.0 {y} 1182.0 {z} 22.0
$3057 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} 2854.0 {y} 944.0 {z} 11.0
$3058 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 2241.0 {y} 2425.0 {z} 11.0
$3059 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} 1418.0 {y} 2774.0 {z} 15.0
$3060 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1393.0 {y} 2174.0 {z} 10.0
$3061 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 1061.0 {y} 2074.0 {z} 11.0
$3062 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} 2057.0 {y} 2434.0 {z} 166.0
$3063 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2000.0 {y} 1526.0 {z} 15.0
$3064 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1997.0 {y} 1658.0 {z} 12.0
$3065 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2510.0 {y} -1723.0 {z} 19.0
$3066 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 2538.0 {y} -1630.0 {z} 14.0
$3067 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2551.3301 {y} -1740.0 {z} 6.49
$3068 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 2428.0 {y} -1214.0 {z} 36.0
$3069 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 2766.0 {y} -2182.0 {z} 11.0
$3070 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2142.0 {y} -1804.0 {z} 16.0
$3071 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1764.0 {y} -1930.0 {z} 14.0
$3072 = create_pickup_with_ammo 347 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1214.0 {y} -1816.0 {z} 17.0
$3073 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1740.0 {y} -1231.0 {z} 92.0
$3074 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2266.0 {y} -1028.0 {z} 59.0
$3075 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2463.0 {y} -1061.0 {z} 60.0
$3076 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2047.0 {y} -1406.0 {z} 68.0
$3077 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2213.0 {y} -2283.0 {z} 15.0
$3078 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1463.0 {y} -1013.0 {z} 27.0
$3079 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1308.97 {y} -874.4 {z} 40.0
$3080 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1102.0 {y} -661.0 {z} 114.0
$3081 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 899.8012 {y} -792.078 {z} 102.0
$3082 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 338.0 {y} -1875.0 {z} 4.0
$3083 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 397.0 {y} -1924.0 {z} 8.0
$3084 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 886.0 {y} -966.0 {z} 37.0
$3085 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1408.0 {y} -2380.0 {z} 14.0
$3086 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1379.0 {y} -2547.0 {z} 14.0
$3099 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2426.0 {y} -1416.0 {z} 24.0
$3087 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 259.0 {y} 80.0 {z} 1004.0
$3088 = create_pickup 321 {pickupType} PickupType.OnStreetSlow {x} 261.0 {y} 71.0 {z} 1003.0
$3089 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} 1457.0 {y} -792.0 {z} 90.0
$3090 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 2371.0 {y} -2543.0 {z} 3.0
$3091 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} 1124.0 {y} -1335.0 {z} 13.0
$3092 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2197.0 {y} -2475.0 {z} 14.0
$3093 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} 1528.222 {y} -1357.985 {z} 330.0371
$3094 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 1862.0 {y} -1862.0 {z} 14.0
$3095 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} 1339.0 {y} -1765.0 {z} 14.0
$3096 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 2192.2429 {y} -1988.751 {z} 13.4185
$3097 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 2459.0 {y} -1708.0 {z} 13.6
$3098 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2441.0 {y} -1013.0 {z} 54.0
$3100 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -2678.0 {y} -128.0 {z} 4.0
$3101 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2212.0 {y} 109.0 {z} 35.0
$3102 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -2903.0 {y} 784.0 {z} 35.0
$3103 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2665.0 {y} 1452.0 {z} 7.0
$3104 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} -2754.0 {y} -400.0 {z} 7.0
$3105 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} -2206.0 {y} -23.0 {z} 35.0
$3106 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1841.106 {y} -74.2171 {z} 14.7606
$3107 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -1579.0 {y} 29.45 {z} 17.0
$3108 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2094.0 {y} -488.0 {z} 36.0
$3109 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -1968.0 {y} -923.0 {z} 32.0
$3110 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1945.0 {y} -1088.0 {z} 31.0
$3111 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -1700.0 {y} 415.0 {z} 7.0
$3112 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1386.0 {y} 509.0 {z} 4.0
$3113 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -1679.0 {y} 1410.0 {z} 7.0
$3114 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -2132.52 {y} 189.2507 {z} 35.5379
$3115 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1126.6899 {y} -150.82 {z} 14.61
$3116 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} -1496.0 {y} 591.0 {z} 42.0
$3117 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} -2542.262 {y} 922.2401 {z} 67.1221
$3118 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2092.0 {y} 1121.0 {z} 54.0
$3119 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -1629.0 {y} 1167.0 {z} 24.0
$3120 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2083.0 {y} 298.0 {z} 42.0
$3121 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} -2306.0 {y} 93.0 {z} 35.0
$3122 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -2796.416 {y} 123.686 {z} 6.844
$3123 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} -2135.0 {y} 197.0 {z} 35.0
$3124 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -2208.0 {y} 696.0 {z} 50.0
$3125 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} -2206.0 {y} 961.0 {z} 80.0
$3126 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} -2222.0 {y} -302.0 {z} 43.0
$3127 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -1871.0 {y} 351.0 {z} 26.0
$3128 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} -2715.0 {y} -314.0 {z} 7.0
$3129 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2359.0 {y} -82.0 {z} 35.0
$3130 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1870.0 {y} -1625.0 {z} 22.0
$3131 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -1627.0 {y} -2692.0 {z} 49.0
$3132 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -2038.0 {y} -2562.0 {z} 31.0
$3133 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1035.0 {y} -2258.0 {z} 70.0
$3134 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 2366.0 {y} 23.0 {z} 28.0
$3135 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2255.0 {y} -74.0 {z} 32.0
$3136 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1296.0 {y} 392.0 {z} 20.0
$3137 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 262.0 {y} 38.0 {z} 2.0
$3138 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -121.0 {y} -232.0 {z} 1.0
$3139 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -532.0 {y} -106.0 {z} 63.0
$3140 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 113.0 {y} 1811.0 {z} 18.0
$3141 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 36.0 {y} 1372.0 {z} 9.0
$3142 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 24.0 {y} 969.0 {z} 20.0
$3143 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -170.0 {y} 1025.0 {z} 20.0
$3144 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} -639.0 {y} 1181.0 {z} 13.0
$3145 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -585.0 {y} 2714.0 {z} 72.0
$3146 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -742.0 {y} 2752.0 {z} 47.0
$3147 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -932.02 {y} 2649.9199 {z} 42.0
$3148 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1317.0 {y} 2509.0 {z} 87.0
$3149 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -1474.0 {y} 2577.0 {z} 56.0
$3150 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2352.0 {y} 2456.0 {z} 6.0
$3151 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -2520.0 {y} 2293.0 {z} 5.0
$3152 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -1358.0 {y} -2115.0 {z} 30.0
$3153 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 119.0 {y} 2409.0 {z} 17.0
$3154 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -1809.0 {y} -1662.0 {z} 24.0
$3155 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -2350.0 {y} -1586.0 {z} 485.0
$3156 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} -2227.0 {y} -2401.0 {z} 31.4
$3157 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 2240.0 {y} -83.0 {z} 27.0
$3158 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} 294.0 {y} -188.0 {z} 2.0
$3159 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -761.0 {y} -126.0 {z} 66.0
$3160 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -1568.0 {y} 2718.0 {z} 56.0
$3161 = create_pickup 322 {pickupType} PickupType.OnStreetSlow {x} -2401.0 {y} 2360.0 {z} 5.0
$3162 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -2679.0 {y} 1933.0 {z} 217.0
$3163 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 637.0 {y} 832.0 {z} -43.0
$3164 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 680.0 {y} 826.0 {z} -39.0
$3165 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 752.0 {y} 260.0 {z} 27.0
$3166 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} -246.0 {y} 2725.0 {z} 63.0
$3167 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -23.0 {y} 2322.0 {z} 24.0
$3168 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} 1284.894 {y} 278.5705 {z} 19.5547
$3170 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2129.3999 {y} -2280.71 {z} 14.42
$3171 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -1542.8571 {y} 698.4825 {z} 139.2658
$3172 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 130 {x} 2198.1101 {y} -1170.22 {z} 33.5
$3173 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -225.6758 {y} 1394.256 {z} 172.0143
$3174 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -773.0379 {y} 2423.499 {z} 157.0856
$3175 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 935.744 {y} -926.0453 {z} 57.7642
$3176 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 842.9783 {y} -17.3791 {z} 64.2
$3177 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 255.0493 {y} 84.0615 {z} 1002.453
$3178 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 217.8 {y} 76.4 {z} 1005.047
$3179 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 223.8347 {y} 120.4458 {z} 1010.212
$3180 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 263.2531 {y} 109.7859 {z} 1004.625
$3181 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 228.3176 {y} 114.433 {z} 999.0215
$3182 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 247.4536 {y} 192.3085 {z} 1008.172
$3183 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 242.613 {y} 196.3202 {z} 1008.172
$3184 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 240.7765 {y} 196.1124 {z} 1008.172
$3185 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 188.9769 {y} 158.218 {z} 1003.031
$3186 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -1753.418 {y} 885.3446 {z} 295.5166
$3187 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2539.918 {y} -598.6152 {z} 132.764
$3188 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2329.9839 {y} -165.3635 {z} 35.2389
$3189 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2721.241 {y} -318.8085 {z} 7.5246
$3190 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2677.1021 {y} 234.9912 {z} 4.1048
$3191 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2706.6919 {y} 375.8728 {z} 5.0525
$3192 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2550.106 {y} 657.286 {z} 14.7319
$3193 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2791.248 {y} 771.5468 {z} 51.0904
$3194 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1770.8149 {y} 903.2556 {z} 25.3894
$3195 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1713.006 {y} 1368.239 {z} 7.2664
$3196 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1851.317 {y} 1302.291 {z} 60.7553
$3197 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1635.026 {y} 604.4713 {z} 40.6377
$3198 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1976.483 {y} 670.5043 {z} 46.6039
$3199 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2038.4091 {y} 1111.406 {z} 53.7928
$3200 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2048.803 {y} 899.5274 {z} 53.8866
$3201 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2292.47 {y} 722.5441 {z} 49.4265
$3202 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1977.916 {y} 113.8457 {z} 27.1096
$3203 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1528.144 {y} 160.0232 {z} 3.5142
$3204 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1771.261 {y} -597.5884 {z} 16.6287
$special_camera = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2495.8069 {y} -1700.637 {z} 1017.837
$3205 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2677.7261 {y} -192.3469 {z} 6.8518
$3206 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2752.2429 {y} -272.2891 {z} 6.5956
$3207 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2617.4729 {y} -97.0801 {z} 4.003
$3208 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2777.1919 {y} -25.2984 {z} 6.8721
$3209 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2774.113 {y} 87.8845 {z} 6.7987
$3210 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2770.624 {y} 389.0772 {z} 4.2818
$3211 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -2535.6311 {y} 51.7034 {z} 8.6512
$3212 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2530.958 {y} -34.1009 {z} 25.2855
$3213 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -1691.649 {y} 946.7679 {z} 24.8084
$3214 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2664.5181 {y} 636.5673 {z} 14.2474
$3215 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -601.4012 {y} -1068.6 {z} 23.6667
$3216 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -377.2184 {y} -1048.053 {z} 58.9125
$3217 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -45.5928 {y} -1148.5291 {z} 1.3953
$3218 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} 2428.499 {y} -1679.27 {z} 13.1633
$3219 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2820.0129 {y} -1426.519 {z} 23.805
$3220 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2790.343 {y} -1427.489 {z} 39.6258
$3221 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2574.0649 {y} -1134.201 {z} 64.6535
$3222 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 2423.8921 {y} -1117.452 {z} 41.2464
$3223 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1296.155 {y} -1081.892 {z} 26.1502
$3224 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1390.611 {y} -800.4332 {z} 81.7795
$3225 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} 1308.4659 {y} 2111.2891 {z} 10.7221
$3226 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 2183.116 {y} 2396.8269 {z} 10.7722
$3227 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} 1081.1331 {y} 1603.697 {z} 5.6
$3228 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} 777.8668 {y} 1948.123 {z} 5.3634
$3230 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 1706.3521 {y} 1242.019 {z} 34.2952
$3231 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 2492.051 {y} 2398.377 {z} 4.5293
$3232 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2055.355 {y} 2435.356 {z} 40.3684
$3233 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1888.27 {y} 2877.262 {z} 10.1621
$3234 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1420.9449 {y} 2519.8821 {z} 10.6199
$3235 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1372.996 {y} 2605.7581 {z} 10.8776
$3236 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2293.686 {y} 1982.286 {z} 31.4335
$3237 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2631.2629 {y} 1722.395 {z} 11.0312
$3238 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 2490.4971 {y} 1522.47 {z} 10.576
$3239 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 455.4583 {y} -1485.896 {z} 30.9717
$3240 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 244.98 {y} 1859.1851 {z} 14.08
$3243 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2529.7241 {y} -1678.563 {z} 19.4225
$3244 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} 2254.3779 {y} -2261.689 {z} 14.3751
$3245 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2015.744 {y} 1004.045 {z} 39.1
$3246 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2002.2629 {y} 981.3947 {z} 10.5
$3256 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1928.6801 {y} -1774.21 {z} 13.54
$pickup_flowers = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1875.91 {y} -1917.1801 {z} 15.03
$3258 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2019.6 {y} -1214.15 {z} 21.47
$3259 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2209.77 {y} -1001.69 {z} 63.71
$3260 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1000.34 {y} -1858.58 {z} 12.3
$3262 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 911.11 {y} -1120.3101 {z} 24.03
$3263 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 929.0 {y} -750.0 {z} 105.82
$3264 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1129.09 {y} -2052.8201 {z} 69.0
$3265 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -92.74 {y} -1425.46 {z} 12.75
$3266 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -77.65 {y} -1167.1801 {z} 2.16
$3267 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 34.0 {y} -2649.0 {z} 40.73
$3268 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -739.0 {y} -1262.0 {z} 68.12
$3269 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2177.0 {y} -2423.0 {z} 30.63
$3270 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -615.0 {y} -861.0 {z} 105.72
$3271 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2051.0 {y} 948.0 {z} 55.4
$3272 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2658.0 {y} -187.0 {z} 4.18
$3273 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2649.0 {y} 734.97 {z} 27.96
$3274 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1791.0 {y} 481.0 {z} 25.68
$3275 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2797.0 {y} 1182.0 {z} 20.28
$3276 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2589.623 {y} -16.165 {z} 3.9662
$3277 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2865.0 {y} 690.0 {z} 23.43
$3278 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2339.0 {y} -453.0 {z} 80.24
$3279 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1955.0 {y} -748.0 {z} 36.22
$3280 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2420.03 {y} 987.59 {z} 45.3
$3281 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -326.56 {y} 2215.3701 {z} 43.57
$3282 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1319.0 {y} 2705.0 {z} 50.27
$3283 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2474.9399 {y} 2443.52 {z} 16.03
$3284 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1670.64 {y} 2590.49 {z} 81.37
$3285 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -892.98 {y} 1971.66 {z} 60.61
$3286 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1576.86 {y} 2837.1399 {z} 10.83
$3287 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1492.72 {y} 2773.76 {z} 10.81
$3288 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2642.03 {y} 1125.74 {z} 11.03
$3289 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2025.24 {y} 661.6 {z} 10.93
$3290 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2181.8201 {y} 1484.97 {z} 11.36
$3291 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2197.02 {y} 2476.3301 {z} 11.0
$3292 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2212.0 {y} 2526.0 {z} 10.81
$3293 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2715.79 {y} 1109.47 {z} 6.7
$3294 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2489.25 {y} 918.28 {z} 11.02
$3295 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1472.08 {y} 1890.09 {z} 10.81
$3296 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2097.0 {y} 2154.0 {z} 14.0
$pickup_armour = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2435.0 {y} 1663.0 {z} 16.0
$3298 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2500.0 {y} 925.0 {z} 11.0
$3299 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2106.0 {y} 1004.0 {z} 11.0
$3300 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1531.0 {y} 925.0 {z} 11.0
$3301 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1433.0 {y} 1852.0 {z} 10.8
$3302 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1000.0 {y} 1068.0 {z} 11.0
$3303 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1269.0 {y} 1352.0 {z} 11.0
$3304 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2294.0 {y} 547.0 {z} 1.0
$3305 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2543.0 {y} -1625.0 {z} 12.0
$3306 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2339.0 {y} -1944.0 {z} 13.0
$3307 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2767.0 {y} -1192.0 {z} 69.0
$3308 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2112.0 {y} -1990.0 {z} 14.0
$3309 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2544.0 {y} -1120.0 {z} 62.0
$3310 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1562.0 {y} -1888.0 {z} 14.0
$3311 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1086.0 {y} -1806.0 {z} 17.0
$3312 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 253.0 {y} 80.0 {z} 1004.0
$3313 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1759.0 {y} -2242.0 {z} 1.0
$3314 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2650.0 {y} -198.0 {z} 4.0
$3315 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2285.0 {y} -24.0 {z} 35.0
$3316 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1863.0 {y} 112.0 {z} 15.0
$3317 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1574.0 {y} 1268.0 {z} 1.27
$3318 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2916.0 {y} 992.0 {z} 8.0
$3319 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2513.0 {y} 770.0 {z} 35.0
$3320 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1394.0 {y} -373.0 {z} 6.0
$3321 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2303.0 {y} -1606.0 {z} 484.0
$3322 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2092.0 {y} -2330.0 {z} 31.0
$3323 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2260.0 {y} 2568.0 {z} 6.0
$3324 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -902.0 {y} 2689.0 {z} 42.0
$3325 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -317.0 {y} 2651.0 {z} 67.0
$3326 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1325.0 {y} 190.0 {z} 19.0
$3327 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2487.0 {y} 139.0 {z} 27.0
$3328 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 761.0 {y} 380.0 {z} 23.0
$3329 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -51.0 {y} -232.0 {z} 7.0
$3330 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 252.0 {y} 2616.0 {z} 17.0
$3331 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 212.0 {y} 1807.0 {z} 22.0
$3332 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1291.76 {y} -803.4566 {z} 1089.9301
$3333 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1715.12 {y} -1673.51 {z} 20.22
$3334 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 943.012 {y} -939.8284 {z} 57.7345
$3335 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 275.169 {y} 1859.699 {z} 9.81
$3336 = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 1268.34 {y} -804.33 {z} 1084.01
$3337 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 263.52 {y} 83.14 {z} 1001.039
$3338 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 264.2632 {y} 117.0737 {z} 1008.813
$3339 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 245.0618 {y} 195.9429 {z} 1008.172
$3340 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 215.8489 {y} 126.0831 {z} 1003.226
$3341 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2125.4929 {y} -2275.0371 {z} 20.5202
$3343 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2230.45 {y} -2286.0039 {z} 14.3751
$3344 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2743.0 {y} 1316.0 {z} 8.0
$pickup_bribe = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2168.6599 {y} 2267.96 {z} 15.34
$3346 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2408.0 {y} 1389.0 {z} 22.0
$3347 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2034.0 {y} 842.0 {z} 10.0
$3348 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2096.0 {y} 1287.0 {z} 10.8
$3349 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1987.0 {y} 1543.0 {z} 16.0
$3350 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1854.0 {y} 912.0 {z} 10.8
$3351 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2540.3799 {y} 2527.8501 {z} 10.39
$3352 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1548.02 {y} 1024.47 {z} 10.39
$3353 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1592.91 {y} 2053.8301 {z} 10.26
$3354 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1971.29 {y} 2330.26 {z} 10.41
$3355 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1700.74 {y} 1792.7 {z} 10.41
$3356 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2581.0 {y} -1491.0 {z} 24.0
$3357 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2296.0 {y} -1696.0 {z} 14.0
$3358 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2273.0 {y} -1099.0 {z} 38.0
$3359 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2716.0 {y} -1048.0 {z} 66.0
$3360 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2614.0 {y} -2496.0 {z} 33.0
$3361 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1183.85 {y} -1250.6801 {z} 14.7
$3362 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1970.0 {y} -1158.0 {z} 21.0
$3363 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 734.0 {y} -1137.0 {z} 18.0
$3364 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2553.76 {y} -2464.3101 {z} 13.62
$3365 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1204.0601 {y} -1613.89 {z} 13.28
$3366 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 611.21 {y} -1459.63 {z} 14.01
$3367 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1116.67 {y} -719.91 {z} 100.17
$3368 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1903.1 {y} -466.44 {z} 25.18
$3369 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2657.0 {y} -144.0 {z} 4.0
$3370 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2454.0 {y} -166.0 {z} 35.0
$3371 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2009.0 {y} 1227.0 {z} 32.0
$3372 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2120.0 {y} 96.39 {z} 39.0
$3373 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2411.0 {y} -334.0 {z} 37.0
$3374 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1690.0 {y} 450.0 {z} 13.0
$3375 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1991.26 {y} -1144.13 {z} 29.69
$3376 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2636.1299 {y} -492.83 {z} 70.09
$3377 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2022.6801 {y} 345.98 {z} 35.17
$3378 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2683.2 {y} 784.13 {z} 49.98
$3379 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1820.67 {y} -154.12 {z} 9.4
$3380 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -736.0 {y} 66.0 {z} 24.0
$3381 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 262.33 {y} -149.12 {z} 1.58
$3382 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1643.0 {y} 264.0 {z} 20.0
$3383 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 601.98 {y} 2150.3799 {z} 39.41
$3384 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1407.0 {y} -2039.0 {z} 1.0
$3385 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2156.0 {y} -2371.0 {z} 31.0
$3386 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -419.25 {y} 1362.36 {z} 12.21
$3388 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 629.04 {y} 2842.8301 {z} 25.21
$3389 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 690.49 {y} -209.59 {z} 25.6
$3390 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 88.82 {y} -125.1 {z} 0.85
$3391 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 215.69 {y} 1089.1 {z} 16.4
$3392 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2305.24 {y} 2310.1101 {z} 4.98
$3393 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -213.61 {y} 2717.4399 {z} 62.68
terminate_this_script 

//-------------Mission 1---------------
// Originally: Initial 2

:INITIL2
script_name 'INITIL2'
$z_temp = 25
$cherry = 100
$grape = 250
$r_69 = 500
$bell = 1000
$bar1_o = 5000
set_var_int_to_var_int $bar2_o[0] = $bar1_o
set_var_int_to_var_int $bar2_o[1] = $grape
set_var_int_to_var_int $bar2_o[2] = $bell
set_var_int_to_var_int $bar2_o[3] = $r_69
set_var_int_to_var_int $bar2_o[4] = $z_temp
set_var_int_to_var_int $bar2_o[5] = $cherry
set_var_int_to_var_int $bar2_o[6] = $z_temp
set_var_int_to_var_int $bar2_o[7] = $cherry
set_var_int_to_var_int $bar2_o[8] = $r_69
set_var_int_to_var_int $bar2_o[9] = $grape
set_var_int_to_var_int $bar2_o[10] = $r_69
set_var_int_to_var_int $bar2_o[11] = $bell
set_var_int_to_var_int $bar2_o[12] = $z_temp
set_var_int_to_var_int $bar2_o[13] = $cherry
set_var_int_to_var_int $bar2_o[14] = $grape
set_var_int_to_var_int $bar2_o[15] = $cherry
set_var_int_to_var_int $bar2_o[16] = $r_69
set_var_int_to_var_int $bar2_o[17] = $z_temp
set_var_int_to_var_int $3430[0] = $grape
set_var_int_to_var_int $3430[1] = $r_69
set_var_int_to_var_int $3430[2] = $z_temp
set_var_int_to_var_int $3430[3] = $cherry
set_var_int_to_var_int $3430[4] = $bar1_o
set_var_int_to_var_int $3430[5] = $r_69
set_var_int_to_var_int $3430[6] = $cherry
set_var_int_to_var_int $3430[7] = $z_temp
set_var_int_to_var_int $3430[8] = $r_69
set_var_int_to_var_int $3430[9] = $bell
set_var_int_to_var_int $3430[10] = $cherry
set_var_int_to_var_int $3430[11] = $grape
set_var_int_to_var_int $3430[12] = $z_temp
set_var_int_to_var_int $3430[13] = $bell
set_var_int_to_var_int $3430[14] = $z_temp
set_var_int_to_var_int $3430[15] = $grape
set_var_int_to_var_int $3430[16] = $r_69
set_var_int_to_var_int $3430[17] = $cherry
set_var_int_to_var_int $3448[0] = $cherry
set_var_int_to_var_int $3448[1] = $z_temp
set_var_int_to_var_int $3448[2] = $grape
set_var_int_to_var_int $3448[3] = $r_69
set_var_int_to_var_int $3448[4] = $cherry
set_var_int_to_var_int $3448[5] = $r_69
set_var_int_to_var_int $3448[6] = $grape
set_var_int_to_var_int $3448[7] = $cherry
set_var_int_to_var_int $3448[8] = $z_temp
set_var_int_to_var_int $3448[9] = $bell
set_var_int_to_var_int $3448[10] = $bar1_o
set_var_int_to_var_int $3448[11] = $z_temp
set_var_int_to_var_int $3448[12] = $r_69
set_var_int_to_var_int $3448[13] = $grape
set_var_int_to_var_int $3448[14] = $cherry
set_var_int_to_var_int $3448[15] = $bell
set_var_int_to_var_int $3448[16] = $r_69
set_var_int_to_var_int $3448[17] = $z_temp
$3466 = 261.3555
$3471 = 399.3732
$reel_sprite_x = 219.0498
$reel_sprite_y = 356.6364
$3468 = 431.2757
$3473 = 424.3356
$3476 = 36.365
$3480 = 240.157
$3484 = 0.4714
$3486 = 2.5077
$rou_text_x = 29.3763
$rou_text_y = 20.0589
$rou_x_scale = 0.6253
$rou_y_scale = 2.7876
$3478 = 28.5106
$3482 = 220.0782
$3479 = 157.2242
$3483 = 409.3602
$3488 = 0
$roulette_triggered = -0.316
$spot1_topleft_x = 0.497
$spot1_topleft_y = 0.408
$spot36_bottomright_x = -1.342
set_var_float_to_var_float $x = $roulette_triggered
sub_float_var_from_float_var $x -= $spot1_topleft_y
set_var_float_to_var_float $y = $spot1_topleft_x
sub_float_var_from_float_var $y -= $spot36_bottomright_x
set_var_float_to_var_float $spot36_bottomright_y = $x
$spot36_bottomright_y /= 6.0
set_var_float_to_var_float $spot_size_x = $y
$spot_size_x /= 24.0
set_var_float_to_var_float $spot_size_y = $roulette_triggered
sub_float_var_from_float_var $spot_size_y -= $spot36_bottomright_y
set_var_float_to_var_float $spot1_x = $spot1_topleft_x
sub_float_var_from_float_var $spot1_x -= $spot_size_x
$spot1_y = -0.176
$spot1_z = 0.0
$spot_selection_x = 0.0
$spot_selection_y = 0.0
$chip_position_x = 0.0
$chip_position_y = 0.0
$spot_increment_x = 0.0
$spot_increment_y = 0
$roulette_flag = 0
$wheel_rotation_timer[0] = -2.0
$3657[0] = 2.0
$wheel_rotation_timer[1] = 0.0
$3657[1] = 0.0
$wheel_rotation_timer[2] = -2.0
$3657[2] = 0.0
$wheel_rotation_timer[3] = -4.0
$3657[3] = 0.0
$wheel_rotation_timer[4] = 0.0
$3657[4] = -2.0
$wheel_rotation_timer[5] = -2.0
$3657[5] = -2.0
$wheel_rotation_timer[6] = -4.0
$3657[6] = -2.0
$wheel_rotation_timer[7] = 0.0
$3657[7] = -4.0
$wheel_rotation_timer[8] = -2.0
$3657[8] = -4.0
$wheel_rotation_timer[9] = -4.0
$3657[9] = -4.0
$wheel_rotation_timer[10] = 0.0
$3657[10] = -6.0
$wheel_rotation_timer[11] = -2.0
$3657[11] = -6.0
$wheel_rotation_timer[12] = -4.0
$3657[12] = -6.0
$wheel_rotation_timer[13] = 0.0
$3657[13] = -8.0
$wheel_rotation_timer[14] = -2.0
$3657[14] = -8.0
$wheel_rotation_timer[15] = -4.0
$3657[15] = -8.0
$wheel_rotation_timer[16] = 0.0
$3657[16] = -10.0
$wheel_rotation_timer[17] = -2.0
$3657[17] = -10.0
$wheel_rotation_timer[18] = -4.0
$3657[18] = -10.0
$wheel_rotation_timer[19] = 0.0
$3657[19] = -12.0
$wheel_rotation_timer[20] = -2.0
$3657[20] = -12.0
$wheel_rotation_timer[21] = -4.0
$3657[21] = -12.0
$wheel_rotation_timer[22] = 0.0
$3657[22] = -14.0
$wheel_rotation_timer[23] = -2.0
$3657[23] = -14.0
$wheel_rotation_timer[24] = -4.0
$3657[24] = -14.0
$wheel_rotation_timer[25] = 0.0
$3657[25] = -16.0
$wheel_rotation_timer[26] = -2.0
$3657[26] = -16.0
$wheel_rotation_timer[27] = -4.0
$3657[27] = -16.0
$wheel_rotation_timer[28] = 0.0
$3657[28] = -18.0
$wheel_rotation_timer[29] = -2.0
$3657[29] = -18.0
$wheel_rotation_timer[30] = -4.0
$3657[30] = -18.0
$wheel_rotation_timer[31] = 0.0
$3657[31] = -20.0
$wheel_rotation_timer[32] = -2.0
$3657[32] = -20.0
$wheel_rotation_timer[33] = -4.0
$3657[33] = -20.0
$wheel_rotation_timer[34] = 0.0
$3657[34] = -22.0
$wheel_rotation_timer[35] = -2.0
$3657[35] = -22.0
$wheel_rotation_timer[36] = -4.0
$3657[36] = -22.0
$wheel_rotation_timer[37] = -1.0
$3657[37] = 0.0
$wheel_rotation_timer[38] = -3.0
$3657[38] = 0.0
$wheel_rotation_timer[39] = -1.0
$3657[39] = -2.0
$wheel_rotation_timer[40] = -3.0
$3657[40] = -2.0
$wheel_rotation_timer[41] = -1.0
$3657[41] = -4.0
$wheel_rotation_timer[42] = -3.0
$3657[42] = -4.0
$wheel_rotation_timer[43] = -1.0
$3657[43] = -6.0
$wheel_rotation_timer[44] = -3.0
$3657[44] = -6.0
$wheel_rotation_timer[45] = -1.0
$3657[45] = -8.0
$wheel_rotation_timer[46] = -3.0
$3657[46] = -8.0
$wheel_rotation_timer[47] = -1.0
$3657[47] = -10.0
$wheel_rotation_timer[48] = -3.0
$3657[48] = -10.0
$wheel_rotation_timer[49] = -1.0
$3657[49] = -12.0
$wheel_rotation_timer[50] = -3.0
$3657[50] = -12.0
$wheel_rotation_timer[51] = -1.0
$3657[51] = -14.0
$wheel_rotation_timer[52] = -3.0
$3657[52] = -14.0
$wheel_rotation_timer[53] = -1.0
$3657[53] = -16.0
$wheel_rotation_timer[54] = -3.0
$3657[54] = -16.0
$wheel_rotation_timer[55] = -1.0
$3657[55] = -18.0
$wheel_rotation_timer[56] = -3.0
$3657[56] = -18.0
$wheel_rotation_timer[57] = -1.0
$3657[57] = -20.0
$wheel_rotation_timer[58] = -3.0
$3657[58] = -20.0
$wheel_rotation_timer[59] = -1.0
$3657[59] = -22.0
$wheel_rotation_timer[60] = -3.0
$3657[60] = -22.0
$wheel_rotation_timer[61] = 0.0
$3657[61] = -1.0
$wheel_rotation_timer[62] = -2.0
$3657[62] = -1.0
$wheel_rotation_timer[63] = -4.0
$3657[63] = -1.0
$wheel_rotation_timer[64] = 0.0
$3657[64] = -3.0
$wheel_rotation_timer[65] = -2.0
$3657[65] = -3.0
$wheel_rotation_timer[66] = -4.0
$3657[66] = -3.0
$wheel_rotation_timer[67] = 0.0
$3657[67] = -5.0
$wheel_rotation_timer[68] = -2.0
$3657[68] = -5.0
$wheel_rotation_timer[69] = -4.0
$3657[69] = -5.0
$wheel_rotation_timer[70] = 0.0
$3657[70] = -7.0
$wheel_rotation_timer[71] = -2.0
$3657[71] = -7.0
$wheel_rotation_timer[72] = -4.0
$3657[72] = -7.0
$wheel_rotation_timer[73] = 0.0
$3657[73] = -9.0
$wheel_rotation_timer[74] = -2.0
$3657[74] = -9.0
$wheel_rotation_timer[75] = -4.0
$3657[75] = -9.0
$wheel_rotation_timer[76] = 0.0
$3657[76] = -11.0
$wheel_rotation_timer[77] = -2.0
$3657[77] = -11.0
$wheel_rotation_timer[78] = -4.0
$3657[78] = -11.0
$wheel_rotation_timer[79] = 0.0
$3657[79] = -13.0
$wheel_rotation_timer[80] = -2.0
$3657[80] = -13.0
$wheel_rotation_timer[81] = -4.0
$3657[81] = -13.0
$wheel_rotation_timer[82] = 0.0
$3657[82] = -15.0
$wheel_rotation_timer[83] = -2.0
$3657[83] = -15.0
$wheel_rotation_timer[84] = -4.0
$3657[84] = -15.0
$wheel_rotation_timer[85] = 0.0
$3657[85] = -17.0
$wheel_rotation_timer[86] = -2.0
$3657[86] = -17.0
$wheel_rotation_timer[87] = -4.0
$3657[87] = -17.0
$wheel_rotation_timer[88] = 0.0
$3657[88] = -19.0
$wheel_rotation_timer[89] = -2.0
$3657[89] = -19.0
$wheel_rotation_timer[90] = -4.0
$3657[90] = -19.0
$wheel_rotation_timer[91] = 0.0
$3657[91] = -21.0
$wheel_rotation_timer[92] = -2.0
$3657[92] = -21.0
$wheel_rotation_timer[93] = -4.0
$3657[93] = -21.0
$wheel_rotation_timer[94] = -5.0
$3657[94] = 0.0
$wheel_rotation_timer[95] = -5.0
$3657[95] = -2.0
$wheel_rotation_timer[96] = -5.0
$3657[96] = -4.0
$wheel_rotation_timer[97] = -5.0
$3657[97] = -6.0
$wheel_rotation_timer[98] = -5.0
$3657[98] = -8.0
$wheel_rotation_timer[99] = -5.0
$3657[99] = -10.0
$wheel_rotation_timer[100] = -5.0
$3657[100] = -12.0
$wheel_rotation_timer[101] = -5.0
$3657[101] = -14.0
$wheel_rotation_timer[102] = -5.0
$3657[102] = -16.0
$wheel_rotation_timer[103] = -5.0
$3657[103] = -18.0
$wheel_rotation_timer[104] = -5.0
$3657[104] = -20.0
$wheel_rotation_timer[105] = -5.0
$3657[105] = -22.0
$wheel_rotation_timer[106] = -1.0
$3657[106] = -1.0
$wheel_rotation_timer[107] = -3.0
$3657[107] = -1.0
$wheel_rotation_timer[108] = -1.0
$3657[108] = -3.0
$wheel_rotation_timer[109] = -3.0
$3657[109] = -3.0
$wheel_rotation_timer[110] = -1.0
$3657[110] = -5.0
$wheel_rotation_timer[111] = -3.0
$3657[111] = -5.0
$wheel_rotation_timer[112] = -1.0
$3657[112] = -7.0
$wheel_rotation_timer[113] = -3.0
$3657[113] = -7.0
$wheel_rotation_timer[114] = -1.0
$3657[114] = -9.0
$wheel_rotation_timer[115] = -3.0
$3657[115] = -9.0
$wheel_rotation_timer[116] = -1.0
$3657[116] = -11.0
$wheel_rotation_timer[117] = -3.0
$3657[117] = -11.0
$wheel_rotation_timer[118] = -1.0
$3657[118] = -13.0
$wheel_rotation_timer[119] = -3.0
$3657[119] = -13.0
$wheel_rotation_timer[120] = -1.0
$3657[120] = -15.0
$wheel_rotation_timer[121] = -3.0
$3657[121] = -15.0
$wheel_rotation_timer[122] = -1.0
$3657[122] = -17.0
$wheel_rotation_timer[123] = -3.0
$3657[123] = -17.0
$wheel_rotation_timer[124] = -1.0
$3657[124] = -19.0
$wheel_rotation_timer[125] = -3.0
$3657[125] = -19.0
$wheel_rotation_timer[126] = -1.0
$3657[126] = -21.0
$wheel_rotation_timer[127] = -3.0
$3657[127] = -21.0
$wheel_rotation_timer[128] = 0.0
$3657[128] = -24.0
$wheel_rotation_timer[129] = -2.0
$3657[129] = -24.0
$wheel_rotation_timer[130] = -4.0
$3657[130] = -24.0
$wheel_rotation_timer[131] = 2.0
$3657[131] = -3.0
$wheel_rotation_timer[132] = 2.0
$3657[132] = -11.0
$wheel_rotation_timer[133] = 2.0
$3657[133] = -19.0
$wheel_rotation_timer[134] = 4.0
$3657[134] = -1.0
$wheel_rotation_timer[135] = 4.0
$3657[135] = -21.0
$wheel_rotation_timer[136] = 4.0
$3657[136] = -5.0
$wheel_rotation_timer[137] = 4.0
$3657[137] = -17.0
$wheel_rotation_timer[138] = 4.0
$3657[138] = -9.0
$wheel_rotation_timer[139] = 4.0
$3657[139] = -13.0
$wheel_rotation_timer[140] = -5.0
$3657[140] = -1.0
$wheel_rotation_timer[141] = -5.0
$3657[141] = -3.0
$wheel_rotation_timer[142] = -5.0
$3657[142] = -5.0
$wheel_rotation_timer[143] = -5.0
$3657[143] = -7.0
$wheel_rotation_timer[144] = -5.0
$3657[144] = -9.0
$wheel_rotation_timer[145] = -5.0
$3657[145] = -11.0
$wheel_rotation_timer[146] = -5.0
$3657[146] = -13.0
$wheel_rotation_timer[147] = -5.0
$3657[147] = -15.0
$wheel_rotation_timer[148] = -5.0
$3657[148] = -17.0
$wheel_rotation_timer[149] = -5.0
$3657[149] = -19.0
$wheel_rotation_timer[150] = -5.0
$3657[150] = -21.0
$3808 = 345.3592
$sprite_x = 55.3183
set_var_int_to_constant $sprite_y[0] = 39608
set_var_int_to_constant $sprite_y[1] = 39609
set_var_int_to_constant $sprite_y[2] = 39610
set_var_int_to_constant $3813[0] = 39605
set_var_int_to_constant $3813[1] = 39606
set_var_int_to_constant $3813[2] = 39607
set_var_int_to_constant $3816[0] = 39651
set_var_int_to_constant $3816[1] = 39652
set_var_int_to_constant $3819[0] = 39648
set_var_int_to_constant $3819[1] = 39649
set_var_int_to_constant $3819[2] = 39650
set_var_int_to_constant $3819[3] = 39662
set_var_int_to_constant $3819[4] = 39663
set_var_int_to_constant $3819[5] = 39664
set_var_int_to_constant $3825[0] = 39653
set_var_int_to_constant $3825[1] = 39654
set_var_int_to_constant $3827[0] = 39600
set_var_int_to_constant $3827[1] = 39601
set_var_int_to_constant $3829[0] = 39638
set_var_int_to_constant $3829[1] = 39639
set_var_int_to_constant $3829[2] = 39640
set_var_int_to_constant $3829[3] = 39641
set_var_int_to_constant $3829[4] = 39642
set_var_int_to_constant $3829[5] = 39643
set_var_int_to_constant $3829[6] = 39644
set_var_int_to_constant $3829[7] = 39645
set_var_int_to_constant $3829[8] = 39646
set_var_int_to_constant $3829[9] = 39647
set_var_int_to_constant $3829[10] = 39611
set_var_int_to_constant $3829[11] = 39612
set_var_int_to_constant $3829[12] = 39613
set_var_int_to_constant $3829[13] = 39614
set_var_int_to_constant $3829[14] = 39615
set_var_int_to_constant $3829[15] = 39616
set_var_int_to_constant $3829[16] = 39617
set_var_int_to_constant $3829[17] = 39618
set_var_int_to_constant $3829[18] = 39619
set_var_int_to_constant $3829[19] = 39620
set_var_int_to_constant $3829[20] = 39621
set_var_int_to_constant $3829[21] = 39622
set_var_int_to_constant $3829[22] = 39623
set_var_int_to_constant $3829[23] = 39624
set_var_int_to_constant $3829[24] = 39625
set_var_int_to_constant $3829[25] = 39626
set_var_int_to_constant $3829[26] = 39627
set_var_int_to_constant $3829[27] = 39628
set_var_int_to_constant $3829[28] = 39629
set_var_int_to_constant $3829[29] = 39630
set_var_int_to_constant $3829[30] = 39631
set_var_int_to_constant $3829[31] = 39632
set_var_int_to_constant $3829[32] = 39633
set_var_int_to_constant $3829[33] = 39634
set_var_int_to_constant $3829[34] = 39635
set_var_int_to_constant $3829[35] = 39636
set_var_int_to_constant $3829[36] = 39637
set_var_int_to_constant $3866[0] = 39602
set_var_int_to_constant $3866[1] = 39603
set_var_int_to_constant $3866[2] = 39604
set_var_int_to_constant $3869[0] = 40008
set_var_int_to_constant $3869[1] = 40009
set_var_int_to_constant $3869[2] = 40010
set_var_int_to_constant $3872[0] = 40005
set_var_int_to_constant $3872[1] = 40006
set_var_int_to_constant $3872[2] = 40007
set_var_int_to_constant $3875[0] = 40051
set_var_int_to_constant $3875[1] = 40052
set_var_int_to_constant $3878[0] = 40048
set_var_int_to_constant $3878[1] = 40049
set_var_int_to_constant $3878[2] = 40050
set_var_int_to_constant $3878[3] = 40062
set_var_int_to_constant $3878[4] = 40063
set_var_int_to_constant $3878[5] = 40064
set_var_int_to_constant $3884[0] = 40053
set_var_int_to_constant $3884[1] = 40054
set_var_int_to_constant $3886[0] = 40000
set_var_int_to_constant $3886[1] = 40001
set_var_int_to_constant $3888[0] = 40038
set_var_int_to_constant $3888[1] = 40039
set_var_int_to_constant $3888[2] = 40040
set_var_int_to_constant $3888[3] = 40041
set_var_int_to_constant $3888[4] = 40042
set_var_int_to_constant $3888[5] = 40043
set_var_int_to_constant $3888[6] = 40044
set_var_int_to_constant $3888[7] = 40045
set_var_int_to_constant $3888[8] = 40046
set_var_int_to_constant $3888[9] = 40047
set_var_int_to_constant $3888[10] = 40011
set_var_int_to_constant $3888[11] = 40012
set_var_int_to_constant $3888[12] = 40013
set_var_int_to_constant $3888[13] = 40014
set_var_int_to_constant $3888[14] = 40015
set_var_int_to_constant $3888[15] = 40016
set_var_int_to_constant $3888[16] = 40017
set_var_int_to_constant $3888[17] = 40018
set_var_int_to_constant $3888[18] = 40019
set_var_int_to_constant $3888[19] = 40020
set_var_int_to_constant $3888[20] = 40021
set_var_int_to_constant $3888[21] = 40022
set_var_int_to_constant $3888[22] = 40023
set_var_int_to_constant $3888[23] = 40024
set_var_int_to_constant $3888[24] = 40025
set_var_int_to_constant $3888[25] = 40026
set_var_int_to_constant $3888[26] = 40027
set_var_int_to_constant $3888[27] = 40028
set_var_int_to_constant $3888[28] = 40029
set_var_int_to_constant $3888[29] = 40030
set_var_int_to_constant $3888[30] = 40031
set_var_int_to_constant $3888[31] = 40032
set_var_int_to_constant $3888[32] = 40033
set_var_int_to_constant $3888[33] = 40034
set_var_int_to_constant $3888[34] = 40035
set_var_int_to_constant $3888[35] = 40036
set_var_int_to_constant $3888[36] = 40037
set_var_int_to_constant $3925[0] = 40002
set_var_int_to_constant $3925[1] = 40003
set_var_int_to_constant $3925[2] = 40004
$3928[0] = -2307.7229
$4013[0] = -2235.9661
$4098[0] = 23.0204
$3928[1] = -2276.635
$4013[1] = -2220.0471
$4098[1] = 28.716
$3928[2] = -2199.3911
$4013[2] = -2283.9519
$4098[2] = 30.1494
$3928[3] = -2105.437
$4013[3] = -2354.4409
$4098[3] = 30.1419
$3928[4] = -2142.24
$4013[4] = -2410.3201
$4098[4] = 30.497
$3928[5] = -2026.4041
$4013[5] = -2507.761
$4098[5] = 32.0519
$3928[6] = -1938.526
$4013[6] = -2456.146
$4098[6] = 30.3298
$3928[7] = -1900.394
$4013[7] = -2424.6179
$4098[7] = 31.9732
$3928[8] = -1862.806
$4013[8] = -2381.5381
$4098[8] = 31.2712
$3928[9] = -1800.629
$4013[9] = -2319.6389
$4098[9] = 40.2496
$3928[10] = -1707.158
$4013[10] = -2302.5791
$4098[10] = 44.1806
$3928[11] = -1662.639
$4013[11] = -2186.958
$4098[11] = 33.5305
$3928[12] = -1688.256
$4013[12] = -2115.5901
$4098[12] = 37.4741
$3928[13] = -1778.958
$4013[13] = -2090.0979
$4098[13] = 49.6459
$3928[14] = -1868.425
$4013[14] = -2088.3601
$4098[14] = 58.5847
$3928[15] = -1959.41
$4013[15] = -2047.85
$4098[15] = 71.8449
$3928[16] = -1947.7889
$4013[16] = -1948.4871
$4098[16] = 77.4592
$3928[17] = -1852.11
$4013[17] = -1920.47
$4098[17] = 87.5994
$3928[18] = -1754.616
$4013[18] = -1898.502
$4098[18] = 96.5566
$3928[19] = -1654.121
$4013[19] = -1900.045
$4098[19] = 90.8553
$3928[20] = -1554.651
$4013[20] = -1901.959
$4098[20] = 81.5693
$3928[21] = -1512.3781
$4013[21] = -1807.028
$4098[21] = 57.9597
$3928[22] = -1433.233
$4013[22] = -1860.032
$4098[22] = 37.3383
$3928[23] = -1425.812
$4013[23] = -1962.0229
$4098[23] = 15.8029
$3928[24] = -1298.451
$4013[24] = -2114.385
$4098[24] = 24.1506
$3928[25] = -1269.661
$4013[25] = -2251.145
$4098[25] = 21.2137
$3928[26] = -1260.525
$4013[26] = -2283.1221
$4098[26] = 21.5858
$3928[27] = -1255.2581
$4013[27] = -2307.5359
$4098[27] = 22.066
$3928[28] = -1253.158
$4013[28] = -2315.343
$4098[28] = 22.5913
$3928[29] = -1216.728
$4013[29] = -2343.4971
$4098[29] = 16.9383
$3928[30] = -1193.944
$4013[30] = -2355.9951
$4098[30] = 18.7764
$3928[31] = -1104.6801
$4013[31] = -2377.1799
$4098[31] = 36.3239
$3928[32] = -1000.239
$4013[32] = -2371.509
$4098[32] = 64.5107
$3928[33] = -958.5369
$4013[33] = -2281.0549
$4098[33] = 52.9462
$3928[34] = -939.7041
$4013[34] = -2187.095
$4098[34] = 35.4659
$3928[35] = -841.8345
$4013[35] = -2181.3779
$4098[35] = 23.7405
$3928[36] = -790.3633
$4013[36] = -2095.343
$4098[36] = 25.4038
$3928[37] = -844.4321
$4013[37] = -2010.339
$4098[37] = 20.3482
$3928[38] = -809.238
$4013[38] = -1902.54
$4098[38] = 9.4239
$3928[39] = -735.21
$4013[39] = -1855.303
$4098[39] = 13.5207
$3928[40] = -641.8992
$4013[40] = -1846.861
$4098[40] = 21.7356
$3928[41] = -546.9716
$4013[41] = -1832.0959
$4098[41] = 25.5599
$3928[42] = -460.5018
$4013[42] = -1800.012
$4098[42] = 8.5607
$3928[43] = -424.1711
$4013[43] = -1704.1379
$4098[43] = 10.8356
$3928[44] = -410.4569
$4013[44] = -1611.74
$4098[44] = 20.2907
$3928[45] = -358.7348
$4013[45] = -1531.884
$4098[45] = 19.0268
$3928[46] = -342.9092
$4013[46] = -1455.663
$4098[46] = 17.8712
$3928[47] = -243.4206
$4013[47] = -1451.22
$4098[47] = 4.3198
$3928[48] = -193.0986
$4013[48] = -1477.038
$4098[48] = 7.9595
$3928[49] = -68.0509
$4013[49] = -1510.5129
$4098[49] = 1.9303
$3928[50] = 31.2142
$4013[50] = -1526.881
$4098[50] = 4.3931
$3928[51] = 129.336
$4013[51] = -1459.6121
$4098[51] = 23.8768
$3928[52] = 139.13
$4013[52] = -1255.649
$4098[52] = 44.9903
$3928[53] = 266.63
$4013[53] = -995.6493
$4098[53] = 50.9903
$3928[54] = 366.63
$4013[54] = -757.6493
$4098[54] = 16.4903
$3928[55] = 424.13
$4013[55] = -567.6493
$4098[55] = 38.9903
$3928[56] = 458.13
$4013[56] = -448.1493
$4098[56] = 30.9903
$3928[57] = 338.13
$4013[57] = -390.6493
$4098[57] = 12.9903
$3928[58] = 338.13
$4013[58] = -342.1493
$4098[58] = 8.9903
$3928[59] = 475.13
$4013[59] = -264.6493
$4098[59] = 9.9903
$3928[60] = 615.63
$4013[60] = -197.1493
$4098[60] = 9.9903
$3928[61] = 757.13
$4013[61] = -152.1493
$4098[61] = 18.4903
$3928[62] = 907.13
$4013[62] = -92.1493
$4098[62] = 19.9903
$3928[63] = 1135.63
$4013[63] = -63.6493
$4098[63] = 22.9903
$3928[64] = 1280.63
$4013[64] = -170.6493
$4098[64] = 32.4903
$3928[65] = 1440.63
$4013[65] = -214.6493
$4098[65] = 7.9903
$3928[66] = 1554.63
$4013[66] = -124.6493
$4098[66] = 17.9903
$3928[67] = 1551.63
$4013[67] = 46.8507
$4098[67] = 23.9903
$3928[68] = 1567.13
$4013[68] = 122.3507
$4098[68] = 28.9903
$3928[69] = 1807.13
$4013[69] = 75.3507
$4098[69] = 34.4903
$3928[70] = 2057.1299
$4013[70] = 40.3507
$4098[70] = 26.9903
$3928[71] = 2275.6299
$4013[71] = 41.8507
$4098[71] = 25.4903
$3928[72] = 2365.6299
$4013[72] = 91.8507
$4098[72] = 25.4903
$3928[73] = 2435.6299
$4013[73] = 41.8507
$4098[73] = 25.4903
$3928[74] = 2692.1299
$4013[74] = 33.8507
$4098[74] = 25.4903
$3928[75] = 2737.6299
$4013[75] = -156.1493
$4098[75] = 31.4903
$3928[76] = 2700.1299
$4013[76] = -384.1493
$4098[76] = 24.4903
$3928[77] = 2820.1299
$4013[77] = -554.1493
$4098[77] = 9.9903
$3928[78] = 2846.1299
$4013[78] = -711.6493
$4098[78] = 9.9903
$3928[79] = 2841.6299
$4013[79] = -929.1493
$4098[79] = 13.9903
$3928[80] = 2841.1299
$4013[80] = -1182.649
$4098[80] = 23.9903
$3928[81] = 2873.1299
$4013[81] = -1383.649
$4098[81] = 10.4903
$3928[82] = 2797.6299
$4013[82] = -1380.649
$4098[82] = 20.9903
$3928[83] = 2795.1299
$4013[83] = -1262.149
$4098[83] = 45.9903
$3928[84] = 2732.1299
$4013[84] = -1257.649
$4098[84] = 58.9903
$4183[0] = 2487.8459
$4299[0] = -1661.031
$4415[0] = 13.0886
$4183[1] = 2387.6389
$4299[1] = -1657.847
$4415[1] = 13.1425
$4183[2] = 2287.4861
$4299[2] = -1659.316
$4415[2] = 14.644
$4183[3] = 2188.2209
$4299[3] = -1639.707
$4415[3] = 15.0652
$4183[4] = 2091.6709
$4299[4] = -1612.541
$4415[4] = 13.1285
$4183[5] = 1990.505
$4299[5] = -1612.728
$4415[5] = 13.1392
$4183[6] = 1889.545
$4299[6] = -1612.92
$4415[6] = 13.1432
$4183[7] = 1788.509
$4299[7] = -1609.786
$4415[7] = 13.1208
$4183[8] = 1688.856
$4299[8] = -1592.988
$4415[8] = 13.1397
$4183[9] = 1587.913
$4299[9] = -1589.5699
$4415[9] = 13.1277
$4183[10] = 1487.483
$4299[10] = -1592.59
$4415[10] = 13.1511
$4183[11] = 1386.551
$4299[11] = -1586.947
$4415[11] = 13.1234
$4183[12] = 1286.662
$4299[12] = -1571.949
$4415[12] = 13.1273
$4183[13] = 1185.751
$4299[13] = -1570.8101
$4415[13] = 13.141
$4183[14] = 1084.5909
$4299[14] = -1571.387
$4415[14] = 13.1352
$4183[15] = 1057.109
$4299[15] = -1474.3879
$4415[15] = 13.1259
$4183[16] = 1061.076
$4299[16] = -1373.338
$4415[16] = 13.1525
$4183[17] = 1057.542
$4299[17] = -1273.05
$4415[17] = 13.1425
$4183[18] = 1058.531
$4299[18] = -1173.37
$4415[18] = 23.0197
$4183[19] = 963.0153
$4299[19] = -1141.863
$4415[19] = 23.4253
$4183[20] = 862.2285
$4299[20] = -1144.682
$4415[20] = 23.4156
$4183[21] = 796.4694
$4299[21] = -1069.208
$4415[21] = 24.2389
$4183[22] = 707.7682
$4299[22] = -1116.413
$4415[22] = 17.7387
$4183[23] = 648.3205
$4299[23] = -1197.1851
$4415[23] = 17.2365
$4183[24] = 641.5527
$4299[24] = -1199.744
$4415[24] = 17.7693
$4183[25] = 568.4156
$4299[25] = -1131.509
$4415[25] = 26.222
$4183[26] = 469.6543
$4299[26] = -1113.59
$4415[26] = 27.6279
$4183[27] = 370.4434
$4299[27] = -1129.382
$4415[27] = 25.3758
$4183[28] = 274.1698
$4299[28] = -1156.751
$4415[28] = 21.1352
$4183[29] = 181.3566
$4299[29] = -1195.782
$4415[29] = 17.3878
$4183[30] = 94.4232
$4299[30] = -1245.7321
$4415[30] = 14.5145
$4183[31] = 15.8414
$4299[31] = -1308.858
$4415[31] = 12.0496
$4183[32] = -62.2601
$4299[32] = -1372.58
$4415[32] = 11.3571
$4183[33] = -133.5467
$4299[33] = -1443.433
$4415[33] = 12.5484
$4183[34] = -201.4483
$4299[34] = -1518.152
$4415[34] = 14.3358
$4183[35] = -261.8274
$4299[35] = -1597.991
$4415[35] = 15.6199
$4183[36] = -295.7058
$4299[36] = -1693.1429
$4415[36] = 14.4603
$4183[37] = -331.9772
$4299[37] = -1786.496
$4415[37] = 17.6881
$4183[38] = -367.9241
$4299[38] = -1879.787
$4415[38] = 25.9672
$4183[39] = -367.5844
$4299[39] = -1980.193
$4415[39] = 27.9446
$4183[40] = -350.2859
$4299[40] = -2079.7229
$4415[40] = 28.0525
$4183[41] = -333.1001
$4299[41] = -2179.344
$4415[41] = 28.1703
$4183[42] = -297.5232
$4299[42] = -2273.428
$4415[42] = 29.7426
$4183[43] = -233.4477
$4299[43] = -2351.6931
$4415[43] = 31.5324
$4183[44] = -159.7139
$4299[44] = -2420.7949
$4415[44] = 35.957
$4183[45] = -92.2604
$4299[45] = -2496.009
$4415[45] = 38.2066
$4183[46] = -49.518
$4299[46] = -2586.4089
$4415[46] = 43.3945
$4183[47] = -39.0012
$4299[47] = -2686.408
$4415[47] = 42.5762
$4183[48] = -71.9678
$4299[48] = -2781.283
$4415[48] = 39.1346
$4183[49] = -162.2194
$4299[49] = -2824.728
$4415[49] = 40.6313
$4183[50] = -261.9651
$4299[50] = -2815.27
$4415[50] = 50.816
$4183[51] = -357.7323
$4299[51] = -2787.4031
$4415[51] = 61.6162
$4183[52] = -456.2191
$4299[52] = -2766.1841
$4415[52] = 66.2852
$4183[53] = -555.2378
$4299[53] = -2751.5491
$4415[53] = 65.7085
$4183[54] = -655.188
$4299[54] = -2748.9771
$4415[54] = 69.8092
$4183[55] = -753.9544
$4299[55] = -2764.895
$4415[55] = 74.469
$4183[56] = -847.778
$4299[56] = -2801.9629
$4415[56] = 70.6215
$4183[57] = -938.0959
$4299[57] = -2845.479
$4415[57] = 68.4226
$4183[58] = -1038.655
$4299[58] = -2853.158
$4415[58] = 67.4485
$4183[59] = -1139.4189
$4299[59] = -2855.438
$4415[59] = 67.466
$4183[60] = -1239.449
$4299[60] = -2860.8049
$4415[60] = 65.7173
$4183[61] = -1338.09
$4299[61] = -2878.668
$4415[61] = 55.5616
$4183[62] = -1435.335
$4299[62] = -2853.4099
$4415[62] = 48.3088
$4183[63] = -1520.402
$4299[63] = -2799.3149
$4415[63] = 46.6003
$4183[64] = -1600.969
$4299[64] = -2739.9761
$4415[64] = 48.7977
$4183[65] = -1681.4301
$4299[65] = -2679.7649
$4415[65] = 48.2789
$4183[66] = -1745.168
$4299[66] = -2601.553
$4415[66] = 49.447
$4183[67] = -1823.681
$4299[67] = -2538.1211
$4415[67] = 52.7491
$4183[68] = -1923.907
$4299[68] = -2539.927
$4415[68] = 38.6757
$4183[69] = -2019.306
$4299[69] = -2507.657
$4415[69] = 32.3084
$4183[70] = -2100.137
$4299[70] = -2446.7561
$4415[70] = 30.2321
$4183[71] = -2179.157
$4299[71] = -2383.9009
$4415[71] = 30.2293
$4183[72] = -2190.1731
$4299[72] = -2284.406
$4415[72] = 30.2286
$4183[73] = -2264.3401
$4299[73] = -2216.7771
$4415[73] = 30.8563
$4183[74] = -2182.781
$4299[74] = -2160.8921
$4415[74] = 47.4936
$4183[75] = -2110.8279
$4299[75] = -2092.427
$4415[75] = 61.5663
$4183[76] = -2078.4961
$4299[76] = -1997.306
$4415[76] = 60.012
$4183[77] = -2028.488
$4299[77] = -1910.774
$4415[77] = 48.5942
$4183[78] = -1971.902
$4299[78] = -1828.087
$4415[78] = 36.8357
$4183[79] = -1898.3459
$4299[79] = -1760.4561
$4415[79] = 29.4533
$4183[80] = -1808.7111
$4299[80] = -1715.568
$4415[80] = 28.8706
$4183[81] = -1724.839
$4299[81] = -1660.957
$4415[81] = 36.2003
$4183[82] = -1631.223
$4299[82] = -1624.267
$4415[82] = 36.0242
$4183[83] = -1546.374
$4299[83] = -1570.568
$4415[83] = 37.4867
$4183[84] = -1626.075
$4299[84] = -1510.0031
$4415[84] = 37.0858
$4183[85] = -1722.531
$4299[85] = -1483.55
$4415[85] = 34.2269
$4183[86] = -1807.41
$4299[86] = -1430.105
$4415[86] = 35.74
$4183[87] = -1894.584
$4299[87] = -1380.672
$4415[87] = 39.6104
$4183[88] = -1899.035
$4299[88] = -1280.731
$4415[88] = 39.2288
$4183[89] = -1896.879
$4299[89] = -1179.88
$4415[89] = 38.8035
$4183[90] = -1900.238
$4299[90] = -1078.988
$4415[90] = 37.9866
$4183[91] = -1896.756
$4299[91] = -978.951
$4415[91] = 41.2545
$4183[92] = -1896.016
$4299[92] = -878.1399
$4415[92] = 44.7055
$4183[93] = -1897.241
$4299[93] = -777.6757
$4415[93] = 44.692
$4183[94] = -1895.959
$4299[94] = -677.4996
$4415[94] = 41.0312
$4183[95] = -1894.7371
$4299[95] = -576.5858
$4415[95] = 38.0016
$4183[96] = -1897.71
$4299[96] = -476.4786
$4415[96] = 37.9914
$4183[97] = -1896.1541
$4299[97] = -376.3374
$4415[97] = 37.9879
$4183[98] = -1896.894
$4299[98] = -275.5032
$4415[98] = 37.9875
$4183[99] = -1895.73
$4299[99] = -174.2612
$4415[99] = 37.9884
$4183[100] = -1890.837
$4299[100] = -73.2693
$4415[100] = 38.0012
$4183[101] = -1890.615
$4299[101] = 27.5906
$4415[101] = 38.0035
$4183[102] = -1874.62
$4299[102] = 127.2809
$4415[102] = 37.9871
$4183[103] = -1842.755
$4299[103] = 222.3595
$4415[103] = 37.9736
$4183[104] = -1776.7371
$4299[104] = 296.302
$4415[104] = 23.6187
$4183[105] = -1687.562
$4299[105] = 341.3
$4415[105] = 13.5061
$4183[106] = -1620.406
$4299[106] = 416.143
$4415[106] = 7.1363
$4183[107] = -1574.644
$4299[107] = 506.4197
$4415[107] = 6.9799
$4183[108] = -1557.715
$4299[108] = 605.5936
$4415[108] = 6.9312
$4183[109] = -1550.603
$4299[109] = 705.7773
$4415[109] = 6.8277
$4183[110] = -1532.975
$4299[110] = 806.2415
$4415[110] = 6.8058
$4183[111] = -1525.152
$4299[111] = 906.8005
$4415[111] = 6.8066
$4183[112] = -1560.428
$4299[112] = 1000.395
$4415[112] = 6.8073
$4183[113] = -1580.528
$4299[113] = 1099.026
$4415[113] = 6.805
$4183[114] = -1593.106
$4299[114] = 1198.824
$4415[114] = 6.7993
$4183[115] = -1612.8
$4299[115] = 1284.908
$4415[115] = 6.9396
$4531[0] = 2480.5969
$4629[0] = -1659.156
$4727[0] = 13.0965
$4531[1] = 2379.8811
$4629[1] = -1658.193
$4727[1] = 13.1467
$4531[2] = 2344.3989
$4629[2] = -1564.4351
$4727[2] = 23.9333
$4531[3] = 2343.6721
$4629[3] = -1463.3199
$4727[3] = 23.6044
$4531[4] = 2305.2749
$4629[4] = -1370.793
$4727[4] = 23.6319
$4531[5] = 2303.4409
$4629[5] = -1269.606
$4727[5] = 23.5946
$4531[6] = 2306.217
$4629[6] = -1169.403
$4727[6] = 26.0798
$4531[7] = 2213.0701
$4629[7] = -1132.101
$4727[7] = 25.3774
$4531[8] = 2116.198
$4629[8] = -1104.905
$4727[8] = 24.8605
$4531[9] = 2022.478
$4629[9] = -1067.897
$4727[9] = 24.2557
$4531[10] = 1925.3051
$4629[10] = -1039.7679
$4727[10] = 23.612
$4531[11] = 1867.651
$4629[11] = -1121.554
$4727[11] = 23.4686
$4531[12] = 1777.408
$4629[12] = -1164.645
$4727[12] = 23.5025
$4531[13] = 1677.176
$4629[13] = -1162.405
$4727[13] = 23.4443
$4531[14] = 1576.553
$4629[14] = -1163.307
$4727[14] = 23.7111
$4531[15] = 1476.002
$4629[15] = -1159.845
$4727[15] = 23.6522
$4531[16] = 1376.964
$4629[16] = -1140.134
$4727[16] = 23.4968
$4531[17] = 1366.809
$4629[17] = -1040.218
$4727[17] = 26.2347
$4531[18] = 1371.418
$4629[18] = -940.2704
$4727[18] = 33.9599
$4531[19] = 1273.0291
$4629[19] = -922.0916
$4727[19] = 41.8145
$4531[20] = 1174.4041
$4629[20] = -940.6694
$4727[20] = 42.5196
$4531[21] = 1156.819
$4629[21] = -842.2726
$4727[21] = 49.739
$4531[22] = 1164.005
$4629[22] = -742.3879
$4727[22] = 60.319
$4531[23] = 1202.729
$4629[23] = -649.9714
$4727[23] = 59.6176
$4531[24] = 1231.2841
$4629[24] = -554.9558
$4727[24] = 40.3091
$4531[25] = 1257.225
$4629[25] = -462.3789
$4727[25] = 12.7939
$4531[26] = 1255.678
$4629[26] = -362.5274
$4727[26] = 2.989
$4531[27] = 1230.684
$4629[27] = -267.0266
$4727[27] = 18.9881
$4531[28] = 1188.9189
$4629[28] = -178.3956
$4727[28] = 40.7223
$4531[29] = 1088.5601
$4629[29] = -182.8582
$4727[29] = 39.859
$4531[30] = 989.9222
$4629[30] = -180.4384
$4727[30] = 17.6728
$4531[31] = 889.5374
$4629[31] = -173.0015
$4727[31] = 10.7641
$4531[32] = 788.8903
$4629[32] = -164.4205
$4727[32] = 16.4595
$4531[33] = 689.4522
$4629[33] = -155.3612
$4727[33] = 22.89
$4531[34] = 589.6461
$4629[34] = -146.5947
$4727[34] = 29.747
$4531[35] = 510.978
$4629[35] = -208.5235
$4727[35] = 37.1529
$4531[36] = 491.5316
$4629[36] = -306.6292
$4727[36] = 42.7684
$4531[37] = 464.9347
$4629[37] = -402.1279
$4727[37] = 32.6014
$4531[38] = 370.5219
$4629[38] = -393.0328
$4727[38] = 23.9504
$4531[39] = 272.6069
$4629[39] = -378.1253
$4727[39] = 2.4636
$4531[40] = 206.3447
$4629[40] = -301.5085
$4727[40] = 1.1901
$4531[41] = 157.5706
$4629[41] = -213.2552
$4727[41] = 1.196
$4531[42] = 57.3466
$4629[42] = -208.4595
$4727[42] = 1.2183
$4531[43] = -43.1581
$4629[43] = -203.3529
$4727[43] = 1.3731
$4531[44] = -142.4222
$4629[44] = -187.639
$4727[44] = 1.6178
$4531[45] = -241.4735
$4629[45] = -167.4589
$4727[45] = 2.0199
$4531[46] = -298.0107
$4629[46] = -84.8255
$4727[46] = 1.2111
$4531[47] = -284.5947
$4629[47] = 14.7808
$4727[47] = 0.8422
$4531[48] = -255.5891
$4629[48] = 111.3571
$4727[48] = 0.8426
$4531[49] = -213.1467
$4629[49] = 202.6102
$4727[49] = 1.8256
$4531[50] = -292.432
$4629[50] = 264.4556
$4727[50] = 1.8382
$4531[51] = -391.0918
$4629[51] = 282.886
$4727[51] = 1.8926
$4531[52] = -491.862
$4629[52] = 287.5233
$4727[52] = 1.8369
$4531[53] = -592.0175
$4629[53] = 284.7173
$4727[53] = 1.8298
$4531[54] = -686.3195
$4629[54] = 250.5801
$4727[54] = 1.8305
$4531[55] = -770.4146
$4629[55] = 194.5963
$4727[55] = 1.6198
$4531[56] = -713.9178
$4629[56] = 113.2328
$4727[56] = 15.6558
$4531[57] = -759.8053
$4629[57] = 26.0654
$4727[57] = 33.0027
$4531[58] = -856.795
$4629[58] = -0.6516
$4727[58] = 32.9974
$4531[59] = -759.7305
$4629[59] = -20.4226
$4727[59] = 47.2165
$4531[60] = -801.2752
$4629[60] = -110.4809
$4727[60] = 63.4186
$4531[61] = -898.1945
$4629[61] = -137.0961
$4727[61] = 56.3295
$4531[62] = -946.6151
$4629[62] = -223.724
$4727[62] = 38.9582
$4531[63] = -968.4164
$4629[63] = -321.7283
$4727[63] = 36.142
$4531[64] = -991.3627
$4629[64] = -419.309
$4727[64] = 36.0027
$4531[65] = -1077.7531
$4629[65] = -470.2693
$4727[65] = 33.7616
$4531[66] = -1136.252
$4629[66] = -551.6271
$4727[66] = 29.8955
$4531[67] = -1170.498
$4629[67] = -645.1342
$4727[67] = 42.4828
$4531[68] = -1205.1331
$4629[68] = -737.6744
$4727[68] = 59.3098
$4531[69] = -1284.4041
$4629[69] = -798.114
$4727[69] = 69.501
$4531[70] = -1381.958
$4629[70] = -817.3228
$4727[70] = 81.1519
$4531[71] = -1481.566
$4629[71] = -815.1219
$4727[71] = 66.9058
$4531[72] = -1579.51
$4629[72] = -800.5511
$4727[72] = 49.9587
$4531[73] = -1673.196
$4629[73] = -765.3336
$4727[73] = 41.5955
$4531[74] = -1754.994
$4629[74] = -708.9478
$4727[74] = 28.2593
$4531[75] = -1761.496
$4629[75] = -609.3593
$4727[75] = 15.9606
$4531[76] = -1820.37
$4629[76] = -528.3566
$4727[76] = 14.6995
$4531[77] = -1814.595
$4629[77] = -427.9472
$4727[77] = 14.7211
$4531[78] = -1803.963
$4629[78] = -328.1352
$4727[78] = 14.7287
$4531[79] = -1801.376
$4629[79] = -227.7857
$4727[79] = 14.7103
$4531[80] = -1801.019
$4629[80] = -126.9901
$4727[80] = 12.5775
$4531[81] = -1797.8409
$4629[81] = -25.8091
$4727[81] = 14.8934
$4531[82] = -1805.531
$4629[82] = 73.9609
$4727[82] = 14.7143
$4531[83] = -1807.149
$4629[83] = 174.5928
$4727[83] = 14.7138
$4531[84] = -1800.194
$4629[84] = 275.5728
$4727[84] = 10.6028
$4531[85] = -1810.287
$4629[85] = 375.14
$4727[85] = 9.7906
$4531[86] = -1814.4091
$4629[86] = 474.6516
$4727[86] = 23.4117
$4531[87] = -1877.944
$4629[87] = 551.0918
$4727[87] = 34.4247
$4531[88] = -1896.861
$4629[88] = 649.7911
$4727[88] = 37.0183
$4531[89] = -1895.051
$4629[89] = 750.2951
$4727[89] = 45.051
$4531[90] = -1893.937
$4629[90] = 850.3843
$4727[90] = 34.7833
$4531[91] = -1820.1429
$4629[91] = 917.2139
$4727[91] = 24.9892
$4531[92] = -1719.022
$4629[92] = 917.0076
$4727[92] = 24.4954
$4531[93] = -1619.303
$4629[93] = 916.6608
$4727[93] = 7.634
$4531[94] = -1555.825
$4629[94] = 994.0962
$4727[94] = 6.8065
$4531[95] = -1579.963
$4629[95] = 1091.548
$4727[95] = 6.807
$4531[96] = -1588.588
$4629[96] = 1191.306
$4727[96] = 6.798
$4531[97] = -1612.353
$4629[97] = 1281.671
$4727[97] = 6.9398
$4825[0] = 2488.2729
$4942[0] = -1659.969
$5059[0] = 13.0884
$4825[1] = 2387.719
$4942[1] = -1658.019
$5059[1] = 13.1467
$4825[2] = 2286.949
$4942[2] = -1658.583
$5059[2] = 14.6557
$4825[3] = 2187.4509
$4942[3] = -1638.533
$5059[3] = 15.0393
$4825[4] = 2090.335
$4942[4] = -1611.906
$5059[4] = 13.1306
$4825[5] = 1990.3311
$4942[5] = -1612.021
$5059[5] = 13.1388
$4825[6] = 1888.96
$4942[6] = -1614.385
$5059[6] = 13.1433
$4825[7] = 1787.243
$4942[7] = -1607.7679
$5059[7] = 13.1244
$4825[8] = 1687.135
$4942[8] = -1592.272
$5059[8] = 13.1375
$4825[9] = 1586.952
$4942[9] = -1591.001
$5059[9] = 13.1297
$4825[10] = 1486.726
$4942[10] = -1590.7791
$5059[10] = 13.152
$4825[11] = 1386.181
$4942[11] = -1585.6071
$5059[11] = 13.1003
$4825[12] = 1286.662
$4942[12] = -1572.978
$5059[12] = 13.1664
$4825[13] = 1186.3979
$4942[13] = -1571.876
$5059[13] = 13.1464
$4825[14] = 1085.49
$4942[14] = -1570.8571
$5059[14] = 13.1351
$4825[15] = 985.0605
$4942[15] = -1571.431
$5059[15] = 13.141
$4825[16] = 884.2
$4942[16] = -1577.365
$5059[16] = 13.13
$4825[17] = 815.0362
$4942[17] = -1650.267
$5059[17] = 13.1344
$4825[18] = 810.6691
$4942[18] = -1750.188
$5059[18] = 13.1276
$4825[19] = 710.2051
$4942[19] = -1749.9041
$5059[19] = 14.0481
$4825[20] = 612.0961
$4942[20] = -1727.222
$5059[20] = 13.6595
$4825[21] = 512.0588
$4942[21] = -1711.1071
$5059[21] = 11.9235
$4825[22] = 411.9842
$4942[22] = -1701.354
$5059[22] = 8.9795
$4825[23] = 310.8292
$4942[23] = -1701.127
$5059[23] = 6.3614
$4825[24] = 210.8359
$4942[24] = -1692.62
$5059[24] = 7.4032
$4825[25] = 162.6634
$4942[25] = -1604.718
$5059[25] = 15.512
$4825[26] = 96.6228
$4942[26] = -1530.2889
$5059[26] = 5.2206
$4825[27] = -4.3045
$4942[27] = -1520.765
$5059[27] = 1.3181
$4825[28] = -100.2442
$4942[28] = -1492.0179
$5059[28] = 2.444
$4825[29] = -150.6629
$4942[29] = -1404.912
$5059[29] = 2.4387
$4825[30] = -125.7253
$4942[30] = -1307.639
$5059[30] = 2.6123
$4825[31] = -85.3976
$4942[31] = -1398.901
$5059[31] = 11.9881
$4825[32] = -156.1722
$4942[32] = -1470.046
$5059[32] = 12.557
$4825[33] = -224.7423
$4942[33] = -1543.4399
$5059[33] = 15.2432
$4825[34] = -278.3897
$4942[34] = -1627.8361
$5059[34] = 15.4404
$4825[35] = -309.6147
$4942[35] = -1722.891
$5059[35] = 14.4331
$4825[36] = -347.4445
$4942[36] = -1815.8051
$5059[36] = 20.3824
$4825[37] = -375.8723
$4942[37] = -1911.975
$5059[37] = 27.4563
$4825[38] = -367.3835
$4942[38] = -2012.2581
$5059[38] = 27.9796
$4825[39] = -352.257
$4942[39] = -2111.5549
$5059[39] = 28.1054
$4825[40] = -325.2379
$4942[40] = -2208.2539
$5059[40] = 28.2795
$4825[41] = -411.8825
$4942[41] = -2256.126
$5059[41] = 43.9768
$4825[42] = -507.0649
$4942[42] = -2286.252
$5059[42] = 32.8761
$4825[43] = -579.3828
$4942[43] = -2355.2971
$5059[43] = 26.9589
$4825[44] = -678.7022
$4942[44] = -2358.3069
$5059[44] = 38.2611
$4825[45] = -752.1234
$4942[45] = -2421.5171
$5059[45] = 63.3924
$4825[46] = -819.2419
$4942[46] = -2493.365
$5059[46] = 82.6824
$4825[47] = -890.7695
$4942[47] = -2563.2791
$5059[47] = 90.2311
$4825[48] = -981.5709
$4942[48] = -2605.9619
$5059[48] = 86.4663
$4825[49] = -1080.225
$4942[49] = -2592.2151
$5059[49] = 76.2713
$4825[50] = -1161.929
$4942[50] = -2534.01
$5059[50] = 67.2918
$4825[51] = -1179.818
$4942[51] = -2436.012
$5059[51] = 53.4017
$4825[52] = -1164.983
$4942[52] = -2337.2429
$5059[52] = 41.315
$4825[53] = -1134.131
$4942[53] = -2242.25
$5059[53] = 33.4991
$4825[54] = -1097.972
$4942[54] = -2148.7361
$5059[54] = 35.7186
$4825[55] = -1047.998
$4942[55] = -2064.019
$5059[55] = 54.2015
$4825[56] = -998.8296
$4942[56] = -1979.083
$5059[56] = 73.7414
$4825[57] = -1062.2
$4942[57] = -1901.606
$5059[57] = 76.9899
$4825[58] = -1161.3781
$4942[58] = -1886.014
$5059[58] = 77.91
$4825[59] = -1206.338
$4942[59] = -1800.1639
$5059[59] = 51.1433
$4825[60] = -1271.566
$4942[60] = -1723.902
$5059[60] = 45.7799
$4825[61] = -1353.911
$4942[61] = -1666.739
$5059[61] = 45.1373
$4825[62] = -1446.1689
$4942[62] = -1627.665
$5059[62] = 44.393
$4825[63] = -1543.799
$4942[63] = -1605.511
$5059[63] = 37.4879
$4825[64] = -1583.0179
$4942[64] = -1513.157
$5059[64] = 37.4862
$4825[65] = -1681.619
$4942[65] = -1493.674
$5059[65] = 34.781
$4825[66] = -1771.401
$4942[66] = -1448.094
$5059[66] = 34.5515
$4825[67] = -1859.213
$4942[67] = -1399.6281
$5059[67] = 38.1758
$4825[68] = -1944.476
$4942[68] = -1347.2111
$5059[68] = 40.559
$4825[69] = -2006.201
$4942[69] = -1268.181
$5059[69] = 36.2375
$4825[70] = -2057.926
$4942[70] = -1182.2271
$5059[70] = 31.9717
$4825[71] = -2105.2439
$4942[71] = -1093.7581
$5059[71] = 29.8948
$4825[72] = -2169.4319
$4942[72] = -1016.588
$5059[72] = 33.6278
$4825[73] = -2214.3291
$4942[73] = -927.0612
$5059[73] = 42.1936
$4825[74] = -2196.7119
$4942[74] = -829.6929
$5059[74] = 58.5525
$4825[75] = -2261.177
$4942[75] = -755.0598
$5059[75] = 75.9781
$4825[76] = -2341.9609
$4942[76] = -707.3872
$5059[76] = 110.6889
$4825[77] = -2400.1819
$4942[77] = -628.3421
$5059[77] = 131.575
$4825[78] = -2453.6479
$4942[78] = -544.386
$5059[78] = 121.1835
$4825[79] = -2526.894
$4942[79] = -485.9847
$5059[79] = 85.0712
$4825[80] = -2446.844
$4942[80] = -425.2606
$5059[80] = 84.4373
$4825[81] = -2354.251
$4942[81] = -463.4032
$5059[81] = 79.948
$4825[82] = -2389.5659
$4942[82] = -369.9571
$5059[82] = 75.0462
$4825[83] = -2489.354
$4942[83] = -363.9357
$5059[83] = 63.4133
$4825[84] = -2588.571
$4942[84] = -366.5697
$5059[84] = 46.1223
$4825[85] = -2672.897
$4942[85] = -418.9947
$5059[85] = 31.9261
$4825[86] = -2681.2351
$4942[86] = -517.9654
$5059[86] = 17.1435
$4825[87] = -2777.1021
$4942[87] = -490.7432
$5059[87] = 6.9382
$4825[88] = -2818.1909
$4942[88] = -399.3717
$5059[88] = 6.8041
$4825[89] = -2811.5259
$4942[89] = -299.0307
$5059[89] = 6.8035
$4825[90] = -2805.668
$4942[90] = -198.8723
$5059[90] = 6.7879
$4825[91] = -2808.854
$4942[91] = -97.9767
$5059[91] = 6.7909
$4825[92] = -2809.093
$4942[92] = 2.2906
$5059[92] = 6.8002
$4825[93] = -2804.6851
$4942[93] = 102.3091
$5059[93] = 6.8277
$4825[94] = -2806.4741
$4942[94] = 202.4786
$5059[94] = 6.807
$4825[95] = -2807.9341
$4942[95] = 302.7264
$5059[95] = 6.3467
$4825[96] = -2849.5259
$4942[96] = 394.1544
$5059[96] = 4.1824
$4825[97] = -2843.374
$4942[97] = 494.5805
$5059[97] = 4.1463
$4825[98] = -2825.592
$4942[98] = 593.7442
$5059[98] = 5.2247
$4825[99] = -2830.803
$4942[99] = 692.401
$5059[99] = 22.7063
$4825[100] = -2856.0071
$4942[100] = 788.662
$5059[100] = 35.799
$4825[101] = -2817.792
$4942[101] = 880.8148
$5059[101] = 43.7304
$4825[102] = -2840.386
$4942[102] = 978.9179
$5059[102] = 43.2024
$4825[103] = -2876.457
$4942[103] = 1071.905
$5059[103] = 30.8111
$4825[104] = -2875.885
$4942[104] = 1169.952
$5059[104] = 11.0039
$4825[105] = -2826.6021
$4942[105] = 1257.501
$5059[105] = 5.3188
$4825[106] = -2728.8149
$4942[106] = 1280.354
$5059[106] = 6.828
$4825[107] = -2629.314
$4942[107] = 1297.9771
$5059[107] = 6.7957
$4825[108] = -2548.262
$4942[108] = 1358.467
$5059[108] = 7.3351
$4825[109] = -2448.6211
$4942[109] = 1370.2679
$5059[109] = 6.7969
$4825[110] = -2347.698
$4942[110] = 1366.408
$5059[110] = 6.9813
$4825[111] = -2253.1951
$4942[111] = 1333.593
$5059[111] = 6.801
$4825[112] = -2152.6421
$4942[112] = 1334.962
$5059[112] = 6.8483
$4825[113] = -2055.385
$4942[113] = 1309.631
$5059[113] = 6.9547
$4825[114] = -1957.98
$4942[114] = 1286.6379
$5059[114] = 6.9474
$4825[115] = -1868.502
$4942[115] = 1332.573
$5059[115] = 6.9476
$4825[116] = -1837.603
$4942[116] = 1425.719
$5059[116] = 6.9399
$5176 = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $5176 {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $5176
$a51ventcover = create_car_generator -2093.8999 {y} -83.7 {z} 33.9 {heading} 359.1 {modelId} 506 {primaryColor} 31 {secondaryColor} 0 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $a51ventcover {amount} 0
$5182 = create_car_generator -2076.8 {y} -84.0 {z} 33.7 {heading} 1.1 {modelId} 541 {primaryColor} 15 {secondaryColor} 15 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5182 {amount} 0
$f1_silver_car_gen = create_car_generator_with_plate -2064.3999 {y} -83.7 {z} 34.1 {heading} 0.0 {modelId} 434 {primaryColor} 15 {secondaryColor} 15 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__GOLD__"
switch_car_generator $f1_silver_car_gen {amount} 0
$f1_chunky = create_car_generator_with_plate -2273.2 {y} -130.8 {z} 33.9 {heading} 270.4 {modelId} 429 {primaryColor} 79 {secondaryColor} 0 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__DBP___"
switch_car_generator $f1_chunky {amount} 0
$f1_gold_car_gen = create_car_generator_with_plate -2354.6001 {y} 983.0 {z} 49.3 {heading} 189.4 {modelId} 541 {primaryColor} 24 {secondaryColor} 40 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_CHUNKY_"
switch_car_generator $f1_gold_car_gen {amount} 0
$f1_scripted_cut = create_car_generator -2151.0 {y} -409.1 {z} 34.1 {heading} 307.2 {modelId} 504 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $f1_scripted_cut {amount} 0
$f1_blood_car_gen[0] = create_car_generator 1544.0 {y} -1352.0 {z} 329.0 {heading} 95.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[1] = create_car_generator -1963.0 {y} 628.0 {z} 151.0 {heading} 182.0 {modelId} 469 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[2] = create_car_generator -1681.0 {y} 705.0 {z} 31.0 {heading} 90.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[3] = create_car_generator -2630.0 {y} 684.0 {z} 72.0 {heading} 180.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[4] = create_car_generator -2726.0 {y} 682.0 {z} 72.0 {heading} 90.0 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[5] = create_car_generator -2227.0 {y} 2329.0 {z} 8.0 {heading} 180.0 {modelId} 447 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[6] = create_car_generator 2619.0 {y} 2721.0 {z} 37.0 {heading} 90.0 {modelId} 548 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[7] = create_car_generator 2092.0 {y} 2415.0 {z} 75.0 {heading} 260.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[8] = create_car_generator 292.0 {y} 2542.0 {z} 16.0 {heading} 180.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[9] = create_car_generator -1286.0 {y} 501.5 {z} 18.0 {heading} 270.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[10] = create_car_generator -959.0813 {y} 2629.2061 {z} 43.229 {heading} 110.0 {modelId} 460 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[11] = create_car_generator 273.0045 {y} -1876.038 {z} 5.2935 {heading} 271.51 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[12] = create_car_generator 1561.865 {y} -1701.953 {z} 27.948 {heading} 0.0015 {modelId} 497 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[13] = create_car_generator -637.1 {y} 1811.953 {z} 1.7 {heading} 180.0015 {modelId} 460 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[14] = create_car_generator -1443.0811 {y} -523.2058 {z} 13.9929 {heading} 267.0 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[15] = create_car_generator -1363.005 {y} -484.0377 {z} 13.9 {heading} 200.51 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[16] = create_car_generator -1180.865 {y} -351.9529 {z} 13.948 {heading} 0.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[17] = create_car_generator -1289.1 {y} -353.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[18] = create_car_generator -1253.1 {y} -347.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[19] = create_car_generator -1387.1 {y} -227.9529 {z} 13.9 {heading} 312.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[20] = create_car_generator -1220.1 {y} -150.9529 {z} 13.9 {heading} 519.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[21] = create_car_generator -1244.674 {y} -599.1741 {z} 13.9 {heading} 48.6377 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[22] = create_car_generator -1215.1 {y} -6.14 {z} 13.9 {heading} 95.0015 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[23] = create_car_generator -1190.1 {y} 22.14 {z} 13.9 {heading} 45.0015 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[24] = create_car_generator -1374.1 {y} -503.14 {z} 13.9 {heading} 249.0015 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[25] = create_car_generator -1608.724 {y} 286.14 {z} 6.22 {heading} 55.0015 {modelId} 425 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[26] = create_car_generator 1586.941 {y} 1190.642 {z} 10.863 {heading} 180.0 {modelId} 577 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_blood_car_gen[27] = create_car_generator -1629.28 {y} -236.14 {z} 13.9 {heading} 129.0015 {modelId} 511 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$f1_bronze_car_gen = create_car_generator 277.55 {y} 1989.35 {z} 17.21 {heading} 270.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$area51_gen = create_car_generator 281.23 {y} 2022.33 {z} 17.21 {heading} 270.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5180 = create_car_generator 307.35 {y} 1990.25 {z} 17.21 {heading} 320.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5181 = create_car_generator 307.35 {y} 2031.36 {z} 17.21 {heading} 320.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $f1_bronze_car_gen {amount} 0
switch_car_generator $area51_gen {amount} 0
switch_car_generator $5180 {amount} 0
switch_car_generator $5181 {amount} 0
switch_car_generator $f1_blood_car_gen[0] {amount} 0
switch_car_generator $f1_blood_car_gen[1] {amount} 0
switch_car_generator $f1_blood_car_gen[2] {amount} 0
switch_car_generator $f1_blood_car_gen[3] {amount} 0
switch_car_generator $f1_blood_car_gen[4] {amount} 0
switch_car_generator $f1_blood_car_gen[5] {amount} 0
switch_car_generator $f1_blood_car_gen[6] {amount} 0
switch_car_generator $f1_blood_car_gen[7] {amount} 0
switch_car_generator $f1_blood_car_gen[8] {amount} 0
switch_car_generator $f1_blood_car_gen[9] {amount} 0
switch_car_generator $f1_blood_car_gen[10] {amount} 0
switch_car_generator $f1_blood_car_gen[11] {amount} 0
switch_car_generator $f1_blood_car_gen[12] {amount} 0
switch_car_generator $f1_blood_car_gen[13] {amount} 0
switch_car_generator $f1_blood_car_gen[14] {amount} 0
switch_car_generator $f1_blood_car_gen[15] {amount} 0
switch_car_generator $f1_blood_car_gen[16] {amount} 0
switch_car_generator $f1_blood_car_gen[17] {amount} 0
switch_car_generator $f1_blood_car_gen[18] {amount} 0
switch_car_generator $f1_blood_car_gen[19] {amount} 0
switch_car_generator $f1_blood_car_gen[20] {amount} 0
switch_car_generator $f1_blood_car_gen[21] {amount} 0
switch_car_generator $f1_blood_car_gen[22] {amount} 0
switch_car_generator $f1_blood_car_gen[23] {amount} 0
switch_car_generator $f1_blood_car_gen[24] {amount} 0
switch_car_generator $f1_blood_car_gen[25] {amount} 0
switch_car_generator $f1_blood_car_gen[26] {amount} 101
switch_car_generator $f1_blood_car_gen[27] {amount} 0
$5216[0] = create_car_generator -1443.0811 {y} -523.2058 {z} 13.9929 {heading} 267.0 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[1] = create_car_generator -1363.005 {y} -484.0377 {z} 13.9 {heading} 200.51 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[2] = create_car_generator -1180.865 {y} -351.9529 {z} 13.948 {heading} 0.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[3] = create_car_generator -1289.1 {y} -353.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[4] = create_car_generator -1253.1 {y} -347.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[5] = create_car_generator -1387.1 {y} -227.9529 {z} 13.9 {heading} 312.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[6] = create_car_generator -1220.1 {y} -150.9529 {z} 13.9 {heading} 519.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[7] = create_car_generator -1244.674 {y} -599.1741 {z} 13.9 {heading} 48.6377 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 100 {maxDelay} 10000
$5216[8] = create_car_generator -1215.1 {y} -6.14 {z} 13.9 {heading} 95.0015 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[9] = create_car_generator -1190.1 {y} 22.14 {z} 13.9 {heading} 45.0015 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[10] = create_car_generator -1374.1 {y} -503.14 {z} 13.9 {heading} 249.0015 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$5216[11] = create_car_generator -1629.28 {y} -236.14 {z} 13.9 {heading} 129.0015 {modelId} 511 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5216[0] {amount} 101
switch_car_generator $5216[1] {amount} 101
switch_car_generator $5216[2] {amount} 101
switch_car_generator $5216[3] {amount} 101
switch_car_generator $5216[4] {amount} 101
switch_car_generator $5216[5] {amount} 101
switch_car_generator $5216[6] {amount} 101
switch_car_generator $5216[7] {amount} 101
switch_car_generator $5216[8] {amount} 101
switch_car_generator $5216[9] {amount} 101
switch_car_generator $5216[10] {amount} 101
switch_car_generator $5216[11] {amount} 101
$5228 = create_car_generator 927.7213 {y} -1185.042 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_film_studio_LA = create_car_generator 927.5233 {y} -1182.365 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5230 = create_car_generator 926.9179 {y} -1178.95 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5231 = create_car_generator 861.3535 {y} -1240.759 {z} 14.5 {heading} 180.1308 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5232 = create_car_generator 837.7494 {y} -1206.574 {z} 16.5 {heading} 153.2632 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5233 = create_car_generator 897.5168 {y} -1207.991 {z} 16.5 {heading} 86.5989 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5234 = create_car_generator 736.2398 {y} -1334.1949 {z} 13.5411 {heading} 267.8109 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5235 = create_car_generator 736.9623 {y} -1343.907 {z} 13.5197 {heading} 273.7721 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5228 {amount} 101
switch_car_generator $gen_car_film_studio_LA {amount} 101
switch_car_generator $5230 {amount} 101
switch_car_generator $5231 {amount} 101
switch_car_generator $5232 {amount} 101
switch_car_generator $5233 {amount} 101
switch_car_generator $5234 {amount} 101
switch_car_generator $5235 {amount} 101
$5236 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 825.921 {y} -1165.813 {z} 17.8936
$pickups_film_studio = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 40 {x} 832.603 {y} -1273.861 {z} 14.4833
$5238 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 911.6486 {y} -1235.39 {z} 17.6802
$5239 = create_pickup 358 {pickupType} PickupType.OnStreetSlow {x} 733.4333 {y} -1356.47 {z} 23.5229
$5243 = create_car_generator -2408.511 {y} -2186.0239 {z} 32.89 {heading} 321.692 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$car_gen_mtchiliad = create_car_generator -2407.606 {y} -2177.092 {z} 32.89 {heading} 321.692 {modelId} 510 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5245 = create_car_generator -2338.5649 {y} -1593.833 {z} 482.9451 {heading} 20.751 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5246 = create_car_generator -2343.3701 {y} -1613.943 {z} 482.9757 {heading} 105.53 {modelId} 483 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5243 {amount} 101
switch_car_generator $car_gen_mtchiliad {amount} 101
switch_car_generator $5245 {amount} 101
switch_car_generator $5246 {amount} 101
$5247 = create_car_generator -2213.5559 {y} 112.7671 {z} 34.9203 {heading} 88.472 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$car_gen_go_kart = create_car_generator -2693.386 {y} -139.4564 {z} 3.9336 {heading} 90.0856 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5249 = create_car_generator -2796.468 {y} -94.1788 {z} 6.9875 {heading} 42.6945 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5250 = create_car_generator -2206.051 {y} 701.2161 {z} 48.9453 {heading} 183.4174 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5251 = create_car_generator -810.5599 {y} 2430.363 {z} 156.9649 {heading} 336.533 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5252 = create_car_generator -1693.441 {y} 432.2852 {z} 6.9914 {heading} 300.903 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5253 = create_car_generator -2116.1379 {y} 924.8068 {z} 85.9791 {heading} 94.9293 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5254 = create_car_generator -1483.6899 {y} 2614.835 {z} 58.2812 {heading} 337.9383 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5255 = create_car_generator 1419.698 {y} 1947.996 {z} 10.9531 {heading} 6.9689 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5256 = create_car_generator 1567.389 {y} 2691.1179 {z} 10.265 {heading} 279.9875 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5257 = create_car_generator -2087.3669 {y} -2519.0161 {z} 29.925 {heading} 90.9178 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5258 = create_car_generator 2615.3169 {y} 1939.701 {z} 10.129 {heading} 148.1757 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5259 = create_car_generator 1074.964 {y} 1395.418 {z} 5.303 {heading} 36.7673 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5260 = create_car_generator 2615.239 {y} -1731.225 {z} 5.9486 {heading} 140.8213 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5261 = create_car_generator 1305.176 {y} -796.6955 {z} 83.9477 {heading} 185.9911 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5247 {amount} 0
switch_car_generator $car_gen_go_kart {amount} 0
switch_car_generator $5249 {amount} 0
switch_car_generator $5250 {amount} 0
switch_car_generator $5251 {amount} 0
switch_car_generator $5252 {amount} 0
switch_car_generator $5253 {amount} 0
switch_car_generator $5254 {amount} 0
switch_car_generator $5255 {amount} 0
switch_car_generator $5256 {amount} 0
switch_car_generator $5257 {amount} 0
switch_car_generator $5258 {amount} 0
switch_car_generator $5259 {amount} 0
switch_car_generator $5260 {amount} 0
switch_car_generator $5261 {amount} 0
$5262 = create_car_generator -2294.926 {y} 2546.978 {z} 5.9175 {heading} 290.9339 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$car_gen_hover = create_car_generator 714.3436 {y} -1488.2729 {z} 0.9343 {heading} 270.0 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5264 = create_car_generator -1426.412 {y} 506.8391 {z} 2.9463 {heading} 144.61 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5265 = create_car_generator 1971.92 {y} 1560.665 {z} 10.9635 {heading} 262.615 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5266 = create_car_generator -535.4126 {y} -60.8884 {z} 63.5922 {heading} 276.9756 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5267 = create_car_generator -910.27 {y} 2699.0601 {z} 42.8 {heading} 110.8738 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5262 {amount} 0
switch_car_generator $car_gen_hover {amount} 0
switch_car_generator $5264 {amount} 0
switch_car_generator $5265 {amount} 0
switch_car_generator $5266 {amount} 0
switch_car_generator $5267 {amount} 0
$5268 = create_car_generator 1291.5 {y} -787.5 {z} 95.4555 {heading} 180.0 {modelId} 469 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5268 {amount} 0
$car_gen_sparrow = create_car_generator 435.2751 {y} 2527.5229 {z} 16.371 {heading} 90.0 {modelId} 461 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_sparrow {amount} 101
$valet_cash_pickup = 0
$trigger_new_range_level = create_car_generator 1091.89 {y} 1612.63 {z} 13.0 {heading} 206.7583 {modelId} 573 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $trigger_new_range_level {amount} 0
$car_gen_duneride_kickstart = create_car_generator 1772.66 {y} -2096.5901 {z} 13.99 {heading} 182.7583 {modelId} 412 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_duneride_kickstart {amount} 101
$car_gen_low_rider_near_cesars = create_car_generator -2151.303 {y} -2440.136 {z} 29.822 {heading} 324.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$car_gen_pine = create_car_generator -2147.0381 {y} -2443.752 {z} 29.822 {heading} 324.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5278 = create_car_generator -2140.979 {y} -2448.7329 {z} 29.822 {heading} 144.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_low_rider_near_cesars {amount} 101
switch_car_generator $car_gen_pine {amount} 101
switch_car_generator $5278 {amount} 101
$5279 = create_car_generator -2000.2419 {y} -2415.509 {z} 29.767 {heading} -132.0 {modelId} 515 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5280 = create_car_generator -1969.806 {y} -2437.939 {z} 29.767 {heading} -82.5 {modelId} 578 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5281 = create_car_generator -1969.806 {y} -2443.908 {z} 29.767 {heading} -19.0 {modelId} 530 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5279 {amount} 101
switch_car_generator $5280 {amount} 101
switch_car_generator $5281 {amount} 101
$5282 = 0
$timer_wil = 0
$game_timer_wil = 0
$tell_player_to_kill_valet = 0
$lf2_skip_allowed = 0
$displayed_sniper_help_text = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
set_object_dynamic $displayed_sniper_help_text {state} False
set_object_collision_damage_effect $displayed_sniper_help_text {state} False
set_object_proofs $displayed_sniper_help_text {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $displayed_sniper_help_text
$g_VB_REAR_DOOR = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
set_object_dynamic $g_VB_REAR_DOOR {state} False
set_object_collision_damage_effect $g_VB_REAR_DOOR {state} False
set_object_proofs $g_VB_REAR_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_REAR_DOOR
$g_VB_SMALL_LIFT = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 16.953
set_object_dynamic $g_VB_SMALL_LIFT {state} False
set_object_collision_damage_effect $g_VB_SMALL_LIFT {state} False
set_object_proofs $g_VB_SMALL_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_SMALL_LIFT
$g_VB_BIG_LIFT = 0
$burglary_player_stealth = 0
$5344 = -1
$gym_day = -1
$gym_month = -1
$gym_final_day = -1
$gym_final_month = 0.0
terminate_this_script 

//-------------Mission 2---------------
// Originally: Intro

:INTRO
script_name 'INTRO'
gosub @INTRO_47
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO_38
gosub @INTRO_9947

:INTRO_38
gosub @INTRO_9949
terminate_this_script 

:INTRO_47
$onmission = 1
display_zone_names False
if 
  $onmission == 0
goto_if_false @INTRO_123
149@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
148@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0

:INTRO_123
start_new_script @A_CONT 
load_mission_text 'INTRO1'
use_text_commands True
wait 0
set_text_draw_before_fade False
set_text_font Font.Subtitles
179@ = 0
178@ = 0
set_lvar_text_label 182@s = 'LOAD_01'

:INTRO_186
if 
  200 > 179@
goto_if_false @INTRO_223
wait 0
gosub @INTRO_10268
goto @INTRO_186

:INTRO_223
178@ = 2
TIMERA = 0

:INTRO_237
if 
  1000 > TIMERA
goto_if_false @INTRO_274
wait 0
gosub @INTRO_10268
goto @INTRO_237

:INTRO_274
set_area_visible 14
load_cutscene 'PROLOG1'

:INTRO_289
if 
  not has_cutscene_loaded 
goto_if_false @INTRO_320
wait 0
gosub @INTRO_10268
goto @INTRO_289

:INTRO_320
178@ = 1

:INTRO_327
if 
  179@ > 0
goto_if_false @INTRO_363
wait 0
gosub @INTRO_10268
goto @INTRO_327

:INTRO_363
178@ = 0
181@ = 1
set_lvar_text_label 182@s = 'LOAD_02'
180@ = 0
start_cutscene 
do_fade 0 {direction} Fade.Out

:INTRO_406
if 
  get_fading_status 
goto_if_false @INTRO_430
wait 0
goto @INTRO_406

:INTRO_430
do_fade 1000 {direction} Fade.In
TIMERA = 0

:INTRO_444
if 
  not has_cutscene_finished 
goto_if_false @INTRO_704
wait 0
if 
  TIMERA > 6800
goto_if_false @INTRO_697
switch_start 180@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_697 {caseNum1} 0 {caseLabel1} @INTRO_543 {caseNum2} 1 {caseLabel2} @INTRO_597 {caseNum3} 2 {caseLabel3} @INTRO_651 {caseNum4} -1 {caseLabel4} @INTRO_697 {caseNum5} -1 {caseLabel5} @INTRO_697 {caseNum6} -1 {caseLabel6} @INTRO_697 {caseNum7} -1 {caseLabel7} @INTRO_697

:INTRO_543
if 
  200 > 179@
goto_if_false @INTRO_583
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_597

:INTRO_583
178@ = 2
180@ += 1

:INTRO_597
if 
  10000 > TIMERA
goto_if_false @INTRO_637
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_651

:INTRO_637
178@ = 1
180@ += 1

:INTRO_651
if 
  179@ > 0
goto_if_false @INTRO_690
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_697

:INTRO_690
180@ += 1

:INTRO_697
goto @INTRO_444

:INTRO_704
do_fade 0 {direction} Fade.Out

:INTRO_710
if 
  get_fading_status 
goto_if_false @INTRO_734
wait 0
goto @INTRO_710

:INTRO_734
clear_cutscene 
if 
  was_cutscene_skipped 
goto_if_false @INTRO_767
set_area_visible 0
$burglary_gang_decision = 1
goto @INTRO_6687

:INTRO_767
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
set_area_visible 0
load_cutscene 'PROLOG3'

:INTRO_792
if 
  not has_cutscene_loaded 
goto_if_false @INTRO_816
wait 0
goto @INTRO_792

:INTRO_816
request_model #GWFORUM1_LAE

:INTRO_820
if 
  not has_model_loaded #GWFORUM1_LAE
goto_if_false @INTRO_846
wait 0
goto @INTRO_820

:INTRO_846
load_scene_in_direction 2493.3621 {y} -1734.295 {z} 12.3828 {heading} 258.7583
clear_area 2482.582 {y} -1729.642 {z} 12.3906 {radius} 500.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO_901
if 
  not has_cutscene_finished 
goto_if_false @INTRO_931
wait 0
set_time_of_day 6 {minutes} 30
goto @INTRO_901

:INTRO_931
do_fade 0 {direction} Fade.Out

:INTRO_937
if 
  get_fading_status 
goto_if_false @INTRO_961
wait 0
goto @INTRO_937

:INTRO_961
clear_cutscene 
mark_model_as_no_longer_needed #GWFORUM1_LAE
if 
  was_cutscene_skipped 
goto_if_false @INTRO_994
$burglary_gang_decision = 1
goto @INTRO_6687

:INTRO_994
request_model 596
request_model 537
request_model 569
request_model 481
request_model #GANGSHOPS4_LAE2
request_model #CE_HILLSEAST06
request_model #CUNTEGROUND23
request_model #HILLSEAST05_LAE
load_special_character 1 {modelName} 'TENPEN'
load_special_character 2 {modelName} 'PULASKI'
load_special_character 3 {modelName} 'HERN'
request_car_recording 706
request_car_recording 707

:INTRO_1079
if or
  not has_model_loaded 596
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 481
  not has_car_recording_been_loaded 706
  not has_car_recording_been_loaded 707
goto_if_false @INTRO_1131
wait 0
goto @INTRO_1079

:INTRO_1131
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @INTRO_1165
wait 0
goto @INTRO_1131

:INTRO_1165
if or
  not has_model_loaded #GANGSHOPS4_LAE2
  not has_model_loaded #CE_HILLSEAST06
  not has_model_loaded #CUNTEGROUND23
  not has_model_loaded #HILLSEAST05_LAE
goto_if_false @INTRO_1203
wait 0
goto @INTRO_1165

:INTRO_1203
load_scene 2358.656 {y} -1246.348 {z} 28.7884
request_collision 2431.6089 {y} -1254.061
preload_beat_track 10
38@ = 0

:INTRO_1243
if 
  38@ <> 2
goto_if_false @INTRO_1277
wait 0
38@ = get_beat_track_status 
goto @INTRO_1243

:INTRO_1277
if 
  are_subtitles_switched_on 
goto_if_false @INTRO_2107
93@ = 0
set_lvar_text_label 95@s = 'PRO@24'
43@ = 3050
68@ = 0
set_lvar_text_label 97@s = 'PRO@25'
44@ = 2530
69@ = 3150
set_lvar_text_label 99@s = 'PRO@26'
45@ = 1600
70@ = 6000
set_lvar_text_label 101@s = 'PRO@49'
46@ = 1530
71@ = 9190
set_lvar_text_label 103@s = 'PRO@27'
47@ = 5510
72@ = 10810
set_lvar_text_label 105@s = 'PRO@28'
48@ = 2560
73@ = 16600
set_lvar_text_label 107@s = 'PRO@29'
49@ = 1350
74@ = 21000
set_lvar_text_label 109@s = 'PRO@30'
50@ = 3760
75@ = 23500
set_lvar_text_label 111@s = 'PRO@30B'
51@ = 2450
set_lvar_int_to_lvar_int 76@ = 75@
add_int_lvar_to_int_lvar 76@ += 50@
set_lvar_text_label 113@s = 'PRO@31'
52@ = 3620
77@ = 30700
set_lvar_text_label 115@s = 'PRO@33'
53@ = 1440
78@ = 35000
set_lvar_text_label 117@s = 'PRO@32'
54@ = 1739
79@ = 36750
set_lvar_text_label 119@s = 'PRO@34'
55@ = 2450
set_lvar_int_to_lvar_int 80@ = 79@
add_int_lvar_to_int_lvar 80@ += 54@
set_lvar_text_label 121@s = 'PRO@35'
56@ = 971
set_lvar_int_to_lvar_int 81@ = 80@
add_int_lvar_to_int_lvar 81@ += 55@
set_lvar_text_label 123@s = 'PRO@36'
57@ = 1320
set_lvar_int_to_lvar_int 82@ = 81@
add_int_lvar_to_int_lvar 82@ += 56@
set_lvar_text_label 125@s = 'PRO@37'
58@ = 1342
set_lvar_int_to_lvar_int 83@ = 82@
add_int_lvar_to_int_lvar 83@ += 57@
set_lvar_text_label 127@s = 'PRO@38'
59@ = 1747
set_lvar_int_to_lvar_int 84@ = 83@
add_int_lvar_to_int_lvar 84@ += 58@
set_lvar_text_label 129@s = 'PRO@40'
60@ = 2355
85@ = 46700
set_lvar_text_label 131@s = 'PRO@41'
61@ = 4400
86@ = 49500
set_lvar_text_label 133@s = 'PRO@43'
62@ = 3111
87@ = 55900
set_lvar_text_label 135@s = 'PRO@44'
63@ = 3400
88@ = 59500
set_lvar_text_label 137@s = 'PRO@45'
64@ = 1180
set_lvar_int_to_lvar_int 89@ = 88@
add_int_lvar_to_int_lvar 89@ += 63@
set_lvar_text_label 139@s = 'PRO@47'
65@ = 1700
set_lvar_int_to_lvar_int 90@ = 89@
add_int_lvar_to_int_lvar 90@ += 64@
set_lvar_text_label 141@s = 'PRO@46'
66@ = 2500
set_lvar_int_to_lvar_int 91@ = 90@
add_int_lvar_to_int_lvar 91@ += 65@
goto @INTRO_2114

:INTRO_2107
93@ = 25

:INTRO_2114
set_car_density_multiplier 0.0
set_ped_density_multiplier 1.0
switch_random_trains False
37@ = 0
35@ = create_car 596 {x} 2431.6089 {y} -1254.061 {z} 22.8303
set_car_heading 35@ {heading} 89.5453
force_car_lights 35@ {lightMode} CarLights.ForceOn
warp_char_into_car_as_passenger $scplayer {handle} 35@ {seat} SeatId.RearRight
41@ = create_char_inside_car 35@ {pedType} PedType.Special {modelId} 291
40@ = create_char_as_passenger 35@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
42@ = create_char_as_passenger 35@ {pedType} PedType.Special {modelId} 292 {seat} SeatId.RearLeft
set_fixed_camera_position 2358.656 {y} -1246.348 {z} 28.7884 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2359.521 {y} -1246.843 {z} 28.7047 {switchStyle} SwitchType.JumpCut
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
switch_ped_roads_off 2380.6819 {leftBottomY} -1274.528 {leftBottomZ} 22.0 {rightTopX} 2375.9451 {rightTopY} -1239.356 {rightTopZ} 26.0
switch_ped_roads_off 2358.3831 {leftBottomY} -1372.666 {leftBottomZ} 22.0 {rightTopX} 2382.969 {rightTopY} -1379.457 {rightTopZ} 25.0
switch_ped_roads_off 2151.603 {leftBottomY} -1380.375 {leftBottomZ} 22.0 {rightTopX} 2184.7041 {rightTopY} -1374.71 {rightTopZ} 26.0
switch_ped_roads_off 2180.731 {leftBottomY} -1286.328 {leftBottomZ} 22.0 {rightTopX} 2153.5271 {rightTopY} -1315.797 {rightTopZ} 26.0
TIMERA = 0

:INTRO_2428
if 
  500 > TIMERA
goto_if_false @INTRO_2458
wait 0
goto @INTRO_2428

:INTRO_2458
do_fade 500 {direction} Fade.In
switch_widescreen True
if 
  not is_car_dead 35@
goto_if_false @INTRO_2511
if 
  not is_playback_going_on_for_car 35@
goto_if_false @INTRO_2511
start_playback_recorded_car 35@ {path} 706
play_beat_track 

:INTRO_2511
if 
  is_player_playing $player1
goto_if_false @INTRO_2534
set_player_control $player1 {state} False

:INTRO_2534
36@ = create_mission_train 13 {x} 2285.1521 {y} -1257.5 {z} 23.0 {direction} True
set_train_speed 36@ {speed} 0.0
set_train_cruise_speed 36@ {speed} 0.0
$x = 2373.105
$y = -1281.969
$z = 22.833
$heading = 0.0
152@ = 2478.5591
153@ = -1258.541
154@ = 27.5958
gosub @INTRO_5861
TIMERA = 0
TIMERB = 0
$burglary_gang_decision = 2

:INTRO_2676
wait 0
set_time_of_day 6 {minutes} 30
if 
  not is_car_dead 35@
goto_if_false @INTRO_5854
switch_start 37@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @INTRO_3222 {caseNum1} 0 {caseLabel1} @INTRO_2765 {caseNum2} 1 {caseLabel2} @INTRO_2799 {caseNum3} 2 {caseLabel3} @INTRO_2868 {caseNum4} 3 {caseLabel4} @INTRO_2905 {caseNum5} 4 {caseLabel5} @INTRO_3024 {caseNum6} 5 {caseLabel6} @INTRO_3072 {caseNum7} -1 {caseLabel7} @INTRO_3222

:INTRO_2765
if 
  get_fading_status 
goto_if_false @INTRO_2785
goto @INTRO_3222

:INTRO_2785
skip_cutscene_start_internal @INTRO_3126
37@ += 1

:INTRO_2799
if 
  10000 > TIMERA
goto_if_false @INTRO_2825
goto @INTRO_3222

:INTRO_2825
if 
  not is_car_dead 36@
goto_if_false @INTRO_2861
set_train_speed 36@ {speed} 8.5
set_train_cruise_speed 36@ {speed} 8.5

:INTRO_2861
37@ += 1

:INTRO_2868
if 
  is_playback_going_on_for_car 35@
goto_if_false @INTRO_2891
goto @INTRO_3222

:INTRO_2891
TIMERA = 0
37@ += 1

:INTRO_2905
if 
  13000 > TIMERA
goto_if_false @INTRO_2931
goto @INTRO_3222

:INTRO_2931
TIMERA = 0
start_playback_recorded_car 35@ {path} 707
set_car_collision 35@ {state} False
clear_area 2246.5081 {y} -1263.087 {z} 22.9531 {radius} 500.0 {clearParticles} True
$intro_bmx = create_car 481 {x} 2246.5081 {y} -1263.087 {z} 22.9531
set_car_heading $intro_bmx {heading} 285.0
145@ = 1
37@ += 1

:INTRO_3024
if 
  26800 > TIMERA
goto_if_false @INTRO_3050
goto @INTRO_3222

:INTRO_3050
task_leave_car_immediately $scplayer {vehicle} 35@
37@ += 1
goto @INTRO_3222

:INTRO_3072
if 
  is_playback_going_on_for_car 35@
goto_if_false @INTRO_3095
goto @INTRO_3222

:INTRO_3095
task_go_straight_to_coord $scplayer {x} 2239.3301 {y} -1261.941 {z} 22.9375 {speed} MoveState.Walk {time} -2
$burglary_gang_decision = 0

:INTRO_3126
skip_cutscene_end 
if 
  $burglary_gang_decision == 2
goto_if_false @INTRO_3153
goto @INTRO_6687

:INTRO_3153
stop_beat_track 
delete_mission_trains 
switch_random_trains True
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
unload_special_character 1
unload_special_character 2
unload_special_character 3
delete_char 40@
delete_char 41@
delete_char 42@
delete_car 35@
$burglary_gang_decision = 3
goto @INTRO_5962

:INTRO_3222
switch_start 39@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @INTRO_5041 {caseNum1} 0 {caseLabel1} @INTRO_3350 {caseNum2} 1 {caseLabel2} @INTRO_3467 {caseNum3} 2 {caseLabel3} @INTRO_3584 {caseNum4} 3 {caseLabel4} @INTRO_3701 {caseNum5} 4 {caseLabel5} @INTRO_3803 {caseNum6} 5 {caseLabel6} @INTRO_3889 {caseNum7} 6 {caseLabel7} @INTRO_4006
switch_continued 7 {caseLabel1} @INTRO_4094 {caseNum2} 8 {caseLabel2} @INTRO_4213 {caseNum3} 9 {caseLabel3} @INTRO_4301 {caseNum4} 10 {caseLabel4} @INTRO_4420 {caseNum5} 11 {caseLabel5} @INTRO_4539 {caseNum6} 12 {caseLabel6} @INTRO_4627 {caseNum7} 13 {caseLabel7} @INTRO_4746 {caseNum8} 14 {caseLabel8} @INTRO_4834 {caseNum9} 15 {caseLabel9} @INTRO_4922

:INTRO_3350
if 
  1500 > TIMERB
goto_if_false @INTRO_3376
goto @INTRO_5041

:INTRO_3376
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2358.656 {fromY} -1246.348 {fromZ} 28.7884 {toX} 2358.656 {toY} -1246.348 {toZ} 28.7884 {time} 7000 {ease} True
camera_set_vector_track 2359.521 {fromY} -1246.843 {fromZ} 28.7047 {toX} 2359.2759 {toY} -1247.129 {toZ} 28.7047 {time} 7000 {ease} True
39@ += 1

:INTRO_3467
if 
  5500 > TIMERB
goto_if_false @INTRO_3493
goto @INTRO_5041

:INTRO_3493
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2362.03 {fromY} -1288.5 {fromZ} 23.8624 {toX} 2362.03 {toY} -1288.5 {toZ} 23.8624 {time} 5500 {ease} True
camera_set_vector_track 2362.592 {fromY} -1287.676 {fromZ} 23.9326 {toX} 2362.0471 {toY} -1289.4969 {toZ} 23.932 {time} 5500 {ease} True
39@ += 1

:INTRO_3584
if 
  9500 > TIMERB
goto_if_false @INTRO_3610
goto @INTRO_5041

:INTRO_3610
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2377.1631 {fromY} -1308.2469 {fromZ} 23.6193 {toX} 2380.6731 {toY} -1390.425 {toZ} 24.0771 {time} 6800 {ease} False
camera_set_vector_track 2376.469 {fromY} -1307.5341 {fromZ} 23.7249 {toX} 2379.811 {toY} -1389.922 {toZ} 24.1388 {time} 6800 {ease} False
39@ += 1

:INTRO_3701
if 
  16200 > TIMERB
goto_if_false @INTRO_3727
goto @INTRO_5041

:INTRO_3727
mark_model_as_no_longer_needed #GANGSHOPS4_LAE2
mark_model_as_no_longer_needed #CE_HILLSEAST06
mark_model_as_no_longer_needed #CUNTEGROUND23
mark_model_as_no_longer_needed #HILLSEAST05_LAE
set_fixed_camera_position 2316.988 {y} -1378.123 {z} 23.3054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2317.908 {y} -1378.489 {z} 23.4404 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_3803
if 
  20500 > TIMERB
goto_if_false @INTRO_3829
goto @INTRO_5041

:INTRO_3829
set_fixed_camera_position 2271.75 {y} -1396.443 {z} 36.7292 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2272.4751 {y} -1395.894 {z} 36.3149 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_3889
if 
  32300 > TIMERB
goto_if_false @INTRO_3915
goto @INTRO_5041

:INTRO_3915
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2305.5359 {fromY} -1384.754 {fromZ} 23.2002 {toX} 2303.521 {toY} -1384.387 {toZ} 23.0641 {time} 5700 {ease} False
camera_set_vector_track 2304.708 {fromY} -1384.193 {fromZ} 23.1803 {toX} 2302.728 {toY} -1383.861 {toZ} 23.3722 {time} 5700 {ease} False
39@ += 1

:INTRO_4006
if 
  37589 > TIMERB
goto_if_false @INTRO_4034
goto @INTRO_5041

:INTRO_4034
set_fixed_camera_position 2265.2539 {y} -1388.5909 {z} 23.4001 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2266.1641 {y} -1388.202 {z} 23.4001 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4094
if 
  38500 > TIMERB
goto_if_false @INTRO_4122
goto @INTRO_5041

:INTRO_4122
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2265.2539 {fromY} -1388.5909 {fromZ} 23.4001 {toX} 2246.9099 {toY} -1388.5909 {toZ} 23.4001 {time} 7500 {ease} True
camera_set_vector_track 2266.1641 {fromY} -1388.202 {fromZ} 23.4001 {toX} 2245.9351 {toY} -1388.424 {toZ} 23.4001 {time} 7500 {ease} True
39@ += 1

:INTRO_4213
if 
  46000 > TIMERB
goto_if_false @INTRO_4241
goto @INTRO_5041

:INTRO_4241
set_fixed_camera_position 2163.084 {y} -1387.757 {z} 23.8438 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.946 {y} -1387.2679 {z} 23.9785 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4301
if 
  48000 > TIMERB
goto_if_false @INTRO_4329
goto @INTRO_5041

:INTRO_4329
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2163.084 {fromY} -1387.757 {fromZ} 23.8438 {toX} 2163.084 {toY} -1387.757 {toZ} 23.8438 {time} 5000 {ease} True
camera_set_vector_track 2163.946 {fromY} -1387.2679 {fromZ} 23.9785 {toX} 2163.4231 {toY} -1386.826 {toZ} 23.9785 {time} 5000 {ease} True
39@ += 1

:INTRO_4420
if 
  53000 > TIMERB
goto_if_false @INTRO_4448
goto @INTRO_5041

:INTRO_4448
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2156.551 {fromY} -1292.082 {fromZ} 39.2814 {toX} 2156.9741 {toY} -1288.564 {toZ} 36.9331 {time} 4000 {ease} True
camera_set_vector_track 2157.0249 {fromY} -1292.67 {fromZ} 38.6264 {toX} 2157.626 {toY} -1289.084 {toZ} 36.382 {time} 4000 {ease} True
39@ += 1

:INTRO_4539
if 
  57000 > TIMERB
goto_if_false @INTRO_4567
goto @INTRO_5041

:INTRO_4567
set_fixed_camera_position 2176.373 {y} -1252.759 {z} 23.4951 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.1179 {y} -1253.725 {z} 23.5115 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4627
if 
  59200 > TIMERB
goto_if_false @INTRO_4655
goto @INTRO_5041

:INTRO_4655
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2176.373 {fromY} -1252.759 {fromZ} 23.4951 {toX} 2176.373 {toY} -1252.759 {toZ} 23.4951 {time} 2500 {ease} True
camera_set_vector_track 2176.1179 {fromY} -1253.725 {fromZ} 23.5115 {toX} 2177.0791 {toY} -1253.467 {toZ} 23.5115 {time} 2500 {ease} True
39@ += 1

:INTRO_4746
if 
  61400 > TIMERB
goto_if_false @INTRO_4774
goto @INTRO_5041

:INTRO_4774
set_fixed_camera_position 2212.582 {y} -1262.756 {z} 25.8688 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2211.6809 {y} -1262.3929 {z} 25.633 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4834
if 
  63000 > TIMERB
goto_if_false @INTRO_4862
goto @INTRO_5041

:INTRO_4862
set_fixed_camera_position 2210.418 {y} -1263.121 {z} 23.1607 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2211.3989 {y} -1262.981 {z} 23.2985 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4922
if 
  64000 > TIMERB
goto_if_false @INTRO_4950
goto @INTRO_5041

:INTRO_4950
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2210.418 {fromY} -1263.121 {fromZ} 23.1607 {toX} 2217.615 {toY} -1262.761 {toZ} 24.45 {time} 6500 {ease} True
camera_set_vector_track 2211.3989 {fromY} -1262.981 {fromZ} 23.2985 {toX} 2218.606 {toY} -1262.886 {toZ} 24.4112 {time} 6500 {ease} True
39@ += 1

:INTRO_5041
if 
  24 > 93@
goto_if_false @INTRO_5235
switch_start 94@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_5235 {caseNum1} 0 {caseLabel1} @INTRO_5157 {caseNum2} 1 {caseLabel2} @INTRO_5122 {caseNum3} -1 {caseLabel3} @INTRO_5235 {caseNum4} -1 {caseLabel4} @INTRO_5235 {caseNum5} -1 {caseLabel5} @INTRO_5235 {caseNum6} -1 {caseLabel6} @INTRO_5235 {caseNum7} -1 {caseLabel7} @INTRO_5235

:INTRO_5122
if 
  is_int_lvar_greater_than_int_lvar 146@ > TIMERB
goto_if_false @INTRO_5148
goto @INTRO_5235

:INTRO_5148
clear_prints 
94@ -= 1

:INTRO_5157
if 
  is_int_lvar_greater_than_int_lvar 68@(93@,25i) > TIMERB
goto_if_false @INTRO_5187
goto @INTRO_5235

:INTRO_5187
print_now 95@(93@,25s) {time} 12000 {flag} 1
set_lvar_int_to_lvar_int 146@ = TIMERB
add_int_lvar_to_int_lvar 146@ += 43@(93@,25i)
93@ += 1
94@ += 1

:INTRO_5235
switch_start 147@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO_5854 {caseNum1} 0 {caseLabel1} @INTRO_5298 {caseNum2} 1 {caseLabel2} @INTRO_5408 {caseNum3} 2 {caseLabel3} @INTRO_5518 {caseNum4} 3 {caseLabel4} @INTRO_5630 {caseNum5} 4 {caseLabel5} @INTRO_5742 {caseNum6} -1 {caseLabel6} @INTRO_5854 {caseNum7} -1 {caseLabel7} @INTRO_5854

:INTRO_5298
if 
  8500 > TIMERB
goto_if_false @INTRO_5324
goto @INTRO_5854

:INTRO_5324
$x = 2345.4519
$y = -1303.926
$z = 22.9955
$heading = 270.0
152@ = 2368.437
153@ = -1202.752
154@ = 26.4297
gosub @INTRO_5861
147@ += 1

:INTRO_5408
if 
  15000 > TIMERB
goto_if_false @INTRO_5434
goto @INTRO_5854

:INTRO_5434
$x = 2346.3831
$y = -1420.5551
$z = 22.8281
$heading = 0.0
152@ = 2387.488
153@ = -1409.537
154@ = 22.8359
gosub @INTRO_5861
147@ += 1

:INTRO_5518
if 
  40000 > TIMERB
goto_if_false @INTRO_5546
goto @INTRO_5854

:INTRO_5546
$x = 2215.0879
$y = -1417.0861
$z = 22.8281
$heading = 0.0
152@ = 2255.4441
153@ = -1302.8
154@ = 22.8402
gosub @INTRO_5861
147@ += 1

:INTRO_5630
if 
  48000 > TIMERB
goto_if_false @INTRO_5658
goto @INTRO_5854

:INTRO_5658
$x = 2165.042
$y = -1353.0551
$z = 22.8281
$heading = 180.0
152@ = 2130.5791
153@ = -1381.478
154@ = 22.8281
gosub @INTRO_5861
147@ += 1

:INTRO_5742
if 
  52000 > TIMERB
goto_if_false @INTRO_5770
goto @INTRO_5854

:INTRO_5770
$x = 2201.3521
$y = -1298.165
$z = 22.8303
$heading = 90.0
152@ = 2121.0891
153@ = -1298.5699
154@ = 22.817
gosub @INTRO_5861
147@ += 1

:INTRO_5854
goto @INTRO_2676

:INTRO_5861
150@, 151@ = get_random_car_model_in_memory True
if 
  150@ <> -1
goto_if_false @INTRO_5960
mark_char_as_no_longer_needed 149@
mark_car_as_no_longer_needed 148@
148@ = create_car 150@ {x} $x {y} $y {z} $z
set_car_heading 148@ {heading} $heading
149@ = create_random_char_as_driver 148@
task_car_drive_to_coord 149@ {vehicle} 148@ {x} 152@ {y} 153@ {z} 154@ {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:INTRO_5960
return 

:INTRO_5962
155@ = 0
156@ = 0
set_lvar_text_label 164@s = 'VO_AA'
set_lvar_int_to_constant 157@ = 11800
set_lvar_text_label 166@s = 'VO_AB'
set_lvar_int_to_constant 158@ = 11801
set_lvar_text_label 168@s = 'VO_AC'
set_lvar_int_to_constant 159@ = 11802
set_lvar_text_label 170@s = 'VO_AD'
set_lvar_int_to_constant 160@ = 11803
set_lvar_text_label 172@s = 'VO_AE'
set_lvar_int_to_constant 161@ = 11804
set_lvar_text_label 174@s = 'VO_AF'
set_lvar_int_to_constant 162@ = 11805
set_lvar_text_label 176@s = 'VO_AG'
set_lvar_int_to_constant 163@ = 11806
restore_camera_jumpcut 
camera_reset_new_scriptables 
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2217.615 {fromY} -1262.761 {fromZ} 24.45 {toX} 2238.6411 {toY} -1261.329 {toZ} 24.6289 {time} 13500 {ease} False
camera_set_vector_track 2218.606 {fromY} -1262.886 {fromZ} 24.4112 {toX} 2239.6021 {toY} -1261.589 {toZ} 24.54 {time} 13500 {ease} False
camera_set_shake_simulation_simple 1 {timeInMs} 20000.0 {intensity} 3.0
39@ = 0
TIMERA = 0
skip_cutscene_start_internal @INTRO_6638

:INTRO_6253
wait 0
switch_start 155@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6449 {caseNum1} 0 {caseLabel1} @INTRO_6320 {caseNum2} 1 {caseLabel2} @INTRO_6409 {caseNum3} -1 {caseLabel3} @INTRO_6449 {caseNum4} -1 {caseLabel4} @INTRO_6449 {caseNum5} -1 {caseLabel5} @INTRO_6449 {caseNum6} -1 {caseLabel6} @INTRO_6449 {caseNum7} -1 {caseLabel7} @INTRO_6449

:INTRO_6320
if 
  5 > 156@
goto_if_false @INTRO_6395
set_var_int_to_lvar_int $load_sample = 157@(156@,7i)
set_var_text_label s$load_text = 164@(156@,7s)
start_new_script @A_ALAP 1 100 
156@ += 1
155@ += 1
goto @INTRO_6409

:INTRO_6395
155@ = -1
goto @INTRO_6449

:INTRO_6409
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @INTRO_6449
155@ -= 1
$SLOT_status($preload_slot,2i) = -4

:INTRO_6449
switch_start 39@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6680 {caseNum1} 0 {caseLabel1} @INTRO_6512 {caseNum2} 1 {caseLabel2} @INTRO_6612 {caseNum3} -1 {caseLabel3} @INTRO_6680 {caseNum4} -1 {caseLabel4} @INTRO_6680 {caseNum5} -1 {caseLabel5} @INTRO_6680 {caseNum6} -1 {caseLabel6} @INTRO_6680 {caseNum7} -1 {caseLabel7} @INTRO_6680

:INTRO_6512
if 
  TIMERA > 13500
goto_if_false @INTRO_6605
set_fixed_camera_position 2238.6411 {y} -1261.329 {z} 24.6289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2239.6021 {y} -1261.589 {z} 24.54 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_set_shake_simulation_simple 1 {timeInMs} 2500.0 {intensity} 3.0
39@ += 1

:INTRO_6605
goto @INTRO_6680

:INTRO_6612
if 
  TIMERA > 16000
goto_if_false @INTRO_6680
$burglary_gang_decision = 0

:INTRO_6638
skip_cutscene_end 
if 
  $burglary_gang_decision == 0
goto_if_false @INTRO_6673
camera_reset_new_scriptables 
restore_camera 
switch_widescreen False
set_player_control $player1 {state} True

:INTRO_6673
goto @INTRO_6687

:INTRO_6680
goto @INTRO_6253

:INTRO_6687
switch_start $burglary_gang_decision {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @INTRO_7220 {caseNum1} 0 {caseLabel1} @INTRO_6750 {caseNum2} 1 {caseLabel2} @INTRO_6767 {caseNum3} 2 {caseLabel3} @INTRO_6767 {caseNum4} 3 {caseLabel4} @INTRO_6767 {caseNum5} -1 {caseLabel5} @INTRO_7220 {caseNum6} -1 {caseLabel6} @INTRO_7220 {caseNum7} -1 {caseLabel7} @INTRO_7220

:INTRO_6750
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
goto @INTRO_7220

:INTRO_6767
do_fade 0 {direction} Fade.Out

:INTRO_6773
if 
  get_fading_status 
goto_if_false @INTRO_6797
wait 0
goto @INTRO_6773

:INTRO_6797
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
clear_char_tasks_immediately $scplayer
load_scene_in_direction 2239.3669 {y} -1261.939 {z} 22.9375 {heading} 272.5814
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_6887
warp_char_from_car_to_coord $scplayer {x} 2239.3669 {y} -1261.939 {z} 22.9375
goto @INTRO_6907

:INTRO_6887
set_char_coordinates $scplayer {x} 2239.3669 {y} -1261.939 {z} 22.9375

:INTRO_6907
set_char_heading $scplayer {heading} 272.5814
if 
  $burglary_gang_decision == 2
goto_if_false @INTRO_7011
stop_beat_track 
delete_mission_trains 
switch_random_trains True
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
unload_special_character 1
unload_special_character 2
unload_special_character 3
delete_char 40@
delete_char 41@
delete_char 42@
delete_car 35@
mark_model_as_no_longer_needed #GANGSHOPS4_LAE2
mark_model_as_no_longer_needed #CE_HILLSEAST06
mark_model_as_no_longer_needed #CUNTEGROUND23
mark_model_as_no_longer_needed #HILLSEAST05_LAE
clear_char_tasks $scplayer

:INTRO_7011
if 
  145@ == 0
goto_if_false @INTRO_7125
request_model 481

:INTRO_7034
if 
  not has_model_loaded 481
goto_if_false @INTRO_7061
wait 0
goto @INTRO_7034

:INTRO_7061
clear_area 2246.5081 {y} -1263.087 {z} 22.9531 {radius} 500.0 {clearParticles} True
$intro_bmx = create_car 481 {x} 2246.5081 {y} -1263.087 {z} 22.9531
set_car_heading $intro_bmx {heading} 285.0
145@ = 1

:INTRO_7125
restore_camera_jumpcut 
camera_reset_new_scriptables 
set_camera_behind_player 
switch_widescreen False
TIMERA = 0

:INTRO_7142
if 
  500 > TIMERA
goto_if_false @INTRO_7172
wait 0
goto @INTRO_7142

:INTRO_7172
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
do_fade 1500 {direction} Fade.In

:INTRO_7189
if 
  get_fading_status 
goto_if_false @INTRO_7213
wait 0
goto @INTRO_7189

:INTRO_7213
goto @INTRO_7220

:INTRO_7220
if 
  get_fading_status 
goto_if_false @INTRO_7244
wait 0
goto @INTRO_7220

:INTRO_7244
switch_widescreen False
set_player_control $player1 {state} True
start_new_script @A_TERM 
display_zone_names True
switch_ped_roads_back_to_original 2380.6819 {leftBottomY} -1274.528 {leftBottomZ} 22.0 {rightTopX} 2375.9451 {rightTopY} -1239.356 {rightTopZ} 26.0
switch_ped_roads_back_to_original 2358.3831 {leftBottomY} -1372.666 {leftBottomZ} 22.0 {rightTopX} 2382.969 {rightTopY} -1379.457 {rightTopZ} 25.0
switch_ped_roads_back_to_original 2151.603 {leftBottomY} -1380.375 {leftBottomZ} 22.0 {rightTopX} 2184.7041 {rightTopY} -1374.71 {rightTopZ} 26.0
switch_ped_roads_back_to_original 2180.731 {leftBottomY} -1286.328 {leftBottomZ} 22.0 {rightTopX} 2153.5271 {rightTopY} -1315.797 {rightTopZ} 26.0
release_weather 
use_text_commands False
set_int_stat StatId.CitiesPassed {value} 0
set_player_control $player1 {state} True
set_near_clip 0.1
set_area_visible 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 10
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 10
request_ipl "BARRIERS1"
request_ipl "BARRIERS2"
switch_roads_off -2696.4641 {leftBottomY} 1239.866 {leftBottomZ} 40.7599 {rightTopX} -2665.3589 {rightTopY} 2190.96 {rightTopZ} 70.8125
switch_roads_off -2740.6941 {leftBottomY} 2233.6179 {leftBottomZ} 40.8431 {rightTopX} -2720.9099 {rightTopY} 2338.2241 {rightTopZ} 80.4822
switch_roads_off -2695.584 {leftBottomY} 1237.981 {leftBottomZ} 40.7328 {rightTopX} -2664.417 {rightTopY} 1454.767 {rightTopZ} 60.8126
switch_roads_off -995.0013 {leftBottomY} -416.2032 {leftBottomZ} 30.4207 {rightTopX} -940.5399 {rightTopY} -251.8564 {rightTopZ} 40.6762
switch_roads_off -205.8387 {leftBottomY} 250.7443 {leftBottomZ} 7.2472 {rightTopX} -131.0039 {rightTopY} 481.8496 {rightTopZ} 15.9152
switch_roads_off -100.7515 {leftBottomY} -927.8298 {leftBottomZ} 18.0 {rightTopX} -68.3752 {rightTopY} -891.9871 {rightTopZ} 14.0
switch_roads_off 609.7595 {leftBottomY} 327.3437 {leftBottomZ} 15.8783 {rightTopX} 429.8884 {rightTopY} 616.0168 {rightTopZ} 20.289
switch_roads_off 317.1688 {leftBottomY} 707.7672 {leftBottomZ} 7.0 {rightTopX} 437.5726 {rightTopY} 709.0657 {rightTopZ} 20.5578
switch_roads_off 391.1194 {leftBottomY} 640.015 {leftBottomZ} 7.0 {rightTopX} 402.2627 {rightTopY} 664.798 {rightTopZ} 18.5098
switch_roads_off 289.2904 {leftBottomY} 636.3991 {leftBottomZ} 7.8675 {rightTopX} 409.4943 {rightTopY} 702.3849 {rightTopZ} 20.0345
switch_roads_off 300.3153 {leftBottomY} 718.7909 {leftBottomZ} 7.7846 {rightTopX} 316.7906 {rightTopY} 781.0926 {rightTopZ} 14.0795
switch_roads_off 254.9982 {leftBottomY} 837.029 {leftBottomZ} 10.1731 {rightTopX} 270.7453 {rightTopY} 929.2404 {rightTopZ} 30.2553
switch_roads_off 210.7811 {leftBottomY} 939.2068 {leftBottomZ} 10.9062 {rightTopX} 249.4799 {rightTopY} 959.1111 {rightTopZ} 30.2141
switch_roads_off 230.4545 {leftBottomY} 946.0961 {leftBottomZ} 20.6674 {rightTopX} 255.9772 {rightTopY} 969.2755 {rightTopZ} 30.4776
switch_roads_off 249.4279 {leftBottomY} 899.7975 {leftBottomZ} 10.5871 {rightTopX} 268.6826 {rightTopY} 933.5995 {rightTopZ} 30.3975
switch_roads_off 312.1081 {leftBottomY} 694.1089 {leftBottomZ} 6.0 {rightTopX} 324.0811 {rightTopY} 733.0005 {rightTopZ} 10.0
switch_roads_off 324.4526 {leftBottomY} 804.9198 {leftBottomZ} 9.6186 {rightTopX} 332.8747 {rightTopY} 814.356 {rightTopZ} 14.3925
switch_roads_off 1690.819 {leftBottomY} 376.5103 {leftBottomZ} 28.1103 {rightTopX} 1730.223 {rightTopY} 445.2955 {rightTopZ} 30.8414
switch_roads_off 1643.536 {leftBottomY} 227.3723 {leftBottomZ} 27.4457 {rightTopX} 1673.062 {rightTopY} 295.5788 {rightTopZ} 30.0815
switch_roads_off 1673.765 {leftBottomY} 388.1013 {leftBottomZ} 40.2331 {rightTopX} 1815.8621 {rightTopY} 804.9291 {rightTopZ} 10.0
switch_roads_off 1705.156 {leftBottomY} 308.3448 {leftBottomZ} 20.0 {rightTopX} 1710.948 {rightTopY} 316.4094 {rightTopZ} 23.5612
switch_roads_off -12.7067 {leftBottomY} -1522.455 {leftBottomZ} 1.0 {rightTopX} 80.8463 {rightTopY} -1517.111 {rightTopZ} 5.0
switch_roads_off -16.3392 {leftBottomY} -1532.882 {leftBottomZ} 0.0394 {rightTopX} 69.3401 {rightTopY} -1523.771 {rightTopZ} 5.922
switch_roads_off 618.7253 {leftBottomY} -1189.606 {leftBottomZ} 18.0 {rightTopX} 623.5441 {rightTopY} -1161.981 {rightTopZ} 22.0
switch_roads_off -33.4208 {leftBottomY} -1341.84 {leftBottomZ} 9.0 {rightTopX} 35.3764 {rightTopY} -1303.948 {rightTopZ} 13.0
switch_roads_off -41.2393 {leftBottomY} -1385.87 {leftBottomZ} 8.0 {rightTopX} -3.5883 {rightTopY} -1368.856 {rightTopZ} 10.5
switch_roads_off -1690.705 {leftBottomY} 539.6102 {leftBottomZ} 30.3278 {rightTopX} -1100.567 {rightTopY} 1140.569 {rightTopZ} 50.735
switch_roads_off -1799.541 {leftBottomY} 379.7155 {leftBottomZ} 16.0 {rightTopX} -1780.199 {rightTopY} 392.2779 {rightTopZ} 18.0
switch_roads_off -1092.429 {leftBottomY} 1286.505 {leftBottomZ} 30.0 {rightTopX} -1077.038 {rightTopY} 1319.495 {rightTopZ} 35.0
switch_roads_off -1860.1331 {leftBottomY} 314.7891 {leftBottomZ} 38.0 {rightTopX} -1638.563 {rightTopY} 557.4354 {rightTopZ} 40.0
switch_roads_off -1737.333 {leftBottomY} 455.9431 {leftBottomZ} 30.3573 {rightTopX} -1710.363 {rightTopY} 500.6261 {rightTopZ} 40.4891
switch_roads_off -1689.229 {leftBottomY} 513.0995 {leftBottomZ} 30.2597 {rightTopX} -1679.124 {rightTopY} 524.8383 {rightTopZ} 40.25
switch_roads_off -1742.906 {leftBottomY} 500.7302 {leftBottomZ} 30.4679 {rightTopX} -1650.312 {rightTopY} 551.8201 {rightTopZ} 40.7455
clear_prints 
remove_blip $intro_contact_blip
$intro_contact_blip = add_sprite_blip_for_coord $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
switch_entry_exit 'CARLS' {state} False
switch_entry_exit 'AMMUN1' {state} False
switch_entry_exit 'AMMUN2' {state} False
switch_entry_exit 'AMMUN3' {state} False
switch_entry_exit 'AMMUN4' {state} False
switch_entry_exit 'AMMUN5' {state} False
switch_entry_exit 'BARBERS' {state} False
switch_entry_exit 'BARBER2' {state} False
switch_entry_exit 'BARBER3' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'FDBURG' {state} False
switch_entry_exit 'TATTOO' {state} False
switch_entry_exit 'CSCHP' {state} False
switch_entry_exit 'CSSPRT' {state} False
switch_entry_exit 'LACS1' {state} False
switch_entry_exit 'CLOTHGP' {state} False
switch_entry_exit 'CSDESGN' {state} False
switch_entry_exit 'CSEXL' {state} False
switch_entry_exit 'GYM1' {state} False
switch_entry_exit 'GYM2' {state} False
switch_entry_exit 'GYM3' {state} False
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
switch_entry_exit 'GANG' {state} False
switch_entry_exit 'RCPLAY' {state} False
switch_entry_exit 'PAPER' {state} False
switch_entry_exit 'ABATOIR' {state} False
switch_entry_exit 'LACRAK' {state} False
deactivate_garage 'BODLAWN'
deactivate_garage 'MODLAST'
deactivate_garage 'MDSSFSE'
deactivate_garage 'MDS1SFS'
deactivate_garage 'VECMOD'
deactivate_garage 'DHANGAR'
clear_prints 
set_char_health $scplayer {health} 100
add_score $player1 {money} 350
set_player_never_gets_tired $player1 {state} False
remove_all_char_weapons $scplayer
$flag_intro_mission_counter = 0
$flag_sweet_mission_counter = 0
$flag_crash_mission_counter = 0
$flag_smoke_mission_counter = 0
$flag_strap_mission_counter = 0
$flag_ryder_mission_counter = 0
$flag_cesar_mission_counter = 0
$flag_la1fin1_mission_counter = 0
$drive_by_help = 0
$bike_help = 0
$wanted_star_help = 0
$car_help_played = 0
$print_first_help = 0
TIMERA = 0

:INTRO_9158
if 
  TIMERA <= 1000
goto_if_false @INTRO_9322
wait 0
gosub @INTRO_10130
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9259
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9259
goto @INTRO_9945

:INTRO_9259
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9315
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9945

:INTRO_9315
goto @INTRO_9158

:INTRO_9322
do_fade 1500 {direction} Fade.In

:INTRO_9329
if 
  get_fading_status 
goto_if_false @INTRO_9491
wait 0
clear_prints 
clear_help 
gosub @INTRO_10130
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9428
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9428
goto @INTRO_9945

:INTRO_9428
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9484
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9945

:INTRO_9484
goto @INTRO_9329

:INTRO_9491
print_help 'HELPMO'
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9540
$intro_bmx_blip = add_blip_for_car $intro_bmx
set_blip_as_friendly $intro_bmx_blip {state} True
change_blip_display $intro_bmx_blip {display} BlipDisplay.MarkerOnly

:INTRO_9540
TIMERA = 0

:INTRO_9547
if 
  TIMERA <= 5000
goto_if_false @INTRO_9716
wait 0
gosub @INTRO_10130
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9648
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9648
goto @INTRO_9945

:INTRO_9648
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9709
remove_blip $intro_bmx_blip
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9945

:INTRO_9709
goto @INTRO_9547

:INTRO_9716
print_now 'INTROB' {time} 4000 {flag} 1
TIMERA = 0

:INTRO_9739
if 
  TIMERA <= 5000
goto_if_false @INTRO_9776
wait 0
gosub @INTRO_10130
goto @INTRO_9739

:INTRO_9776
if 
  not is_char_in_car $scplayer {vehicle} $intro_bmx
goto_if_false @INTRO_9945
wait 0
gosub @INTRO_10130
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9877
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9877
goto @INTRO_9945

:INTRO_9877
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9938
remove_blip $intro_bmx_blip
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9945

:INTRO_9938
goto @INTRO_9776

:INTRO_9945
return 

:INTRO_9947
return 

:INTRO_9949
start_new_script @A_TERM 
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
terminate_all_scripts_with_this_name 'INT'
terminate_all_scripts_with_this_name 'SWEET'
start_new_script @INT 
terminate_all_scripts_with_this_name 'MOB_LA1'
start_new_script @MOB_LA1 
terminate_all_scripts_with_this_name 'MOB_RAN'
start_new_script @MOB_RAN 
terminate_all_scripts_with_this_name 'INTROST'
start_new_script @INTROST 
remove_blip $intro_contact_blip
$intro_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
mark_model_as_no_longer_needed 481
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_10112
mark_car_as_no_longer_needed $intro_bmx
remove_blip $intro_bmx_blip

:INTRO_10112
$onmission = 0
$game_starts_from_scratch = 1
mission_has_finished 
return 

:INTRO_10130
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_10266
if 
  34@ == 0
goto_if_false @INTRO_10266
if 
  locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @INTRO_10266
if 
  $controlmode == 2
goto_if_false @INTRO_10248
print_help 'HELP26'
goto @INTRO_10259

:INTRO_10248
print_help 'HELP21'

:INTRO_10259
34@ = 1

:INTRO_10266
return 

:INTRO_10268
switch_start 178@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_10666 {caseNum1} 0 {caseLabel1} @INTRO_10331 {caseNum2} 1 {caseLabel2} @INTRO_10338 {caseNum3} 2 {caseLabel3} @INTRO_10363 {caseNum4} -1 {caseLabel4} @INTRO_10666 {caseNum5} -1 {caseLabel5} @INTRO_10666 {caseNum6} -1 {caseLabel6} @INTRO_10666 {caseNum7} -1 {caseLabel7} @INTRO_10666

:INTRO_10331
179@ += 10

:INTRO_10338
if 
  178@ == 1
goto_if_false @INTRO_10363
179@ -= 10

:INTRO_10363
if 
  181@ == 0
goto_if_false @INTRO_10601
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 180.0 {key} 'LOAD_01'
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 200.0 {key} 'LOAD_03'
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 220.0 {key} 'LOAD_04'
goto @INTRO_10666

:INTRO_10601
set_text_scale 0.6 {heightScale} 1.6
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 1 {red} 0 {green} 0 {blue} 0 {alpha} 179@
display_text 320.0 {offsetTop} 200.0 {key} 182@s

:INTRO_10666
return 

//-------------Mission 3---------------
// Originally: Video Game: They Crawled From Uranus

:NONE
gosub @NONE_16
gosub @NONE_12325
terminate_this_script 

:NONE_16
$onmission = 1
register_mission_given 
script_name 'NONE'
wait 0
load_mission_text 'DUAL'
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
use_text_commands True
remove_texture_dictionary 
load_texture_dictionary 'LD_NONE'
load_sprite 1 {spriteName} "SHIP"
load_sprite 2 {spriteName} "TVCORN"
load_sprite 3 {spriteName} "SHOOT"
load_sprite 4 {spriteName} "LIGHT"
load_sprite 5 {spriteName} "EXPLM01"
load_sprite 6 {spriteName} "EXPLM02"
load_sprite 7 {spriteName} "EXPLM03"
load_sprite 8 {spriteName} "EXPLM04"
load_sprite 9 {spriteName} "EXPLM05"
load_sprite 10 {spriteName} "EXPLM06"
load_sprite 11 {spriteName} "EXPLM07"
load_sprite 12 {spriteName} "EXPLM08"
load_sprite 13 {spriteName} "EXPLM09"
load_sprite 14 {spriteName} "EXPLM10"
load_sprite 15 {spriteName} "EXPLM11"
load_sprite 16 {spriteName} "EXPLM12"
load_sprite 17 {spriteName} "FORCE"
load_sprite 18 {spriteName} "WARP"
load_sprite 19 {spriteName} "THRUST"
load_sprite 20 {spriteName} "SHPNORM"
load_sprite 21 {spriteName} "SHPWARP"
load_sprite 22 {spriteName} "SHIP2"
load_sprite 23 {spriteName} "SHIP3"
load_sprite 24 {spriteName} "TITLE"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1829

:NONE_403
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @NONE_429
wait 0
goto @NONE_403

:NONE_429
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestTrackStart
34@ = 3.0
35@ = 2.0
36@ = 1.0
37@ = 0.0
38@ = -1.0
39@ = -2.0
40@ = -3.0
41@ = -2.0
42@ = -1.0
43@ = -4.0
44@ = 4.0
45@ = 3.0
46@ = 2.0
47@ = -2.0
48@ = -4.0
49@ = -6.0
50@ = -3.0
51@ = -2.0
52@ = -7.0
53@ = -6.0
54@ = 300
55@ = 200
56@ = 400
57@ = 600
58@ = 400
59@ = 500
60@ = 200
61@ = 300
62@ = 400
63@ = 6000
64@ = 2.0
65@ = 3.0
66@ = 1.0
67@ = 0.0
68@ = 1.0
69@ = 3.0
70@ = -3.0
71@ = -3.0
72@ = 2.0
73@ = -5.0
74@ = 0.0
75@ = 3.0
76@ = 4.0
77@ = 5.0
78@ = 12.0
79@ = 6.0
80@ = 3.0
81@ = 0.0
82@ = -4.0
83@ = -6.0
84@ = 100
85@ = 400
86@ = 300
87@ = 500
88@ = 400
89@ = 200
90@ = 400
91@ = 400
92@ = 400
93@ = 6000
94@ = 5.0
95@ = -3.0
96@ = 6.0
97@ = -6.0
98@ = 3.0
99@ = -3.0
100@ = 3.0
101@ = -3.0
102@ = 3.0
103@ = -6.0
104@ = 4.0
105@ = 4.0
106@ = 4.0
107@ = 4.0
108@ = 4.0
109@ = 4.0
110@ = 4.0
111@ = 4.0
112@ = 4.0
113@ = 4.0
114@ = 300
115@ = 300
116@ = 300
117@ = 300
118@ = 300
119@ = 300
120@ = 300
121@ = 300
122@ = 300
123@ = 300
124@ = 0.0
132@ = 5.0
125@ = 5.0
133@ = 5.0
126@ = 5.0
134@ = 0.0
127@ = -5.0
135@ = 0.0
128@ = -5.0
136@ = -5.0
129@ = 0.0
137@ = -5.0
130@ = 5.0
138@ = -5.0
131@ = -5.0
139@ = 5.0
set_lvar_text_label 140@s = 'DUAL_0'
set_lvar_text_label 142@s = 'DUAL_1'
set_lvar_text_label 144@s = 'DUAL_2'
set_lvar_text_label 146@s = 'DUAL_3'
set_lvar_text_label 148@s = 'DUAL_4'
set_lvar_text_label 150@s = 'DUAL_5'
set_lvar_text_label 152@s = 'DUAL_6'
set_lvar_text_label 154@s = 'DUAL_7'
set_lvar_text_label 156@s = 'DUAL_8'
set_lvar_text_label 158@s = 'DUAL_9'
set_lvar_text_label 160@s = 'DUAL_AA'
set_lvar_text_label 162@s = 'DUAL_B'
set_lvar_text_label 164@s = 'DUAL_C'
set_lvar_text_label 166@s = 'DUAL_D'
set_lvar_text_label 168@s = 'DUAL_E'
set_lvar_text_label 170@s = 'DUAL_F'
set_lvar_text_label 172@s = 'DUAL_G'
set_lvar_text_label 174@s = 'DUAL_H'
set_lvar_text_label 176@s = 'DUAL_I'
set_lvar_text_label 178@s = 'DUAL_J'
set_lvar_text_label 180@s = 'DUAL_K'
set_lvar_text_label 182@s = 'DUAL_L'
set_lvar_text_label 184@s = 'DUAL_M'
set_lvar_text_label 186@s = 'DUAL_N'
set_lvar_text_label 188@s = 'DUAL_O'
set_lvar_text_label 190@s = 'DUAL_P'
set_lvar_text_label 192@s = 'DUAL_Q'
set_lvar_text_label 194@s = 'DUAL_R'
set_lvar_text_label 196@s = 'DUAL_S'
set_lvar_text_label 198@s = 'DUAL_T'
set_lvar_text_label 200@s = 'DUAL_U'
set_lvar_text_label 202@s = 'DUAL_V'
set_lvar_text_label 204@s = 'DUAL_W'
set_lvar_text_label 206@s = 'DUAL_X'
set_lvar_text_label 208@s = 'DUAL_Y'
set_lvar_text_label 210@s = 'DUAL_Z'
set_lvar_text_label 212@s = 'DUAL_FS'
if 
  $cutscene_skip_CUT == 0
goto_if_false @NONE_2319
$played_none_before[0] = 250000
$played_none_before[1] = 100000
$played_none_before[2] = 75000
$played_none_before[3] = 50000
$played_none_before[4] = 25000
$played_none_before[5] = 10000
$played_none_before[6] = 7500
$played_none_before[7] = 5000
$played_none_before[8] = 2500
$played_none_before[9] = 1000
set_var_text_label s$5364[0] = 160@s
set_var_text_label s$5384[0] = 166@s
set_var_text_label s$5404[0] = 210@s
set_var_text_label s$5364[1] = 164@s
set_var_text_label s$5384[1] = 160@s
set_var_text_label s$5404[1] = 186@s
set_var_text_label s$5364[2] = 176@s
set_var_text_label s$5384[2] = 184@s
set_var_text_label s$5404[2] = 208@s
set_var_text_label s$5364[3] = 204@s
set_var_text_label s$5384[3] = 176@s
set_var_text_label s$5404[3] = 182@s
set_var_text_label s$5364[4] = 166@s
set_var_text_label s$5384[4] = 162@s
set_var_text_label s$5404[4] = 190@s
set_var_text_label s$5364[5] = 166@s
set_var_text_label s$5384[5] = 160@s
set_var_text_label s$5404[5] = 202@s
set_var_text_label s$5364[6] = 166@s
set_var_text_label s$5384[6] = 188@s
set_var_text_label s$5404[6] = 166@s
set_var_text_label s$5364[7] = 186@s
set_var_text_label s$5384[7] = 170@s
set_var_text_label s$5404[7] = 212@s
set_var_text_label s$5364[8] = 180@s
set_var_text_label s$5384[8] = 184@s
set_var_text_label s$5404[8] = 162@s
set_var_text_label s$5364[9] = 196@s
set_var_text_label s$5384[9] = 178@s
set_var_text_label s$5404[9] = 182@s
$cutscene_skip_CUT = 1

:NONE_2319
214@ = 336.4137
215@ = 58.2432
216@ = 201.225
217@ = 88.9168
218@ = 29.78
219@ = 260.0
220@ = 28.5713
221@ = 0
222@ = 0
223@ = 0
224@ = 0
do_fade 0 {direction} Fade.In
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
225@ = 0
226@ = -1
227@ = 0

:NONE_2475
generate_random_float_in_range 0.0 {max} 300.0 {var_result} 290@(227@,60f)
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)
227@ += 1
  227@ >= 60
goto_if_false @NONE_2475
350@ = 8.0

:NONE_2544
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
392@ = 0
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 423@
goto_if_false @NONE_2760
if 
  221@ == 0
goto_if_false @NONE_2746
if 
  225@ == 2
goto_if_false @NONE_2701
225@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight
goto @NONE_2746

:NONE_2701
if 
  225@ == 1
goto_if_false @NONE_2746
225@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight

:NONE_2746
221@ = 1
goto @NONE_2927

:NONE_2760
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  423@ > 100
goto_if_false @NONE_2913
if 
  222@ == 0
goto_if_false @NONE_2899
if 
  225@ == 0
goto_if_false @NONE_2854
225@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight
goto @NONE_2899

:NONE_2854
if 
  225@ == 1
goto_if_false @NONE_2899
225@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight

:NONE_2899
222@ = 1
goto @NONE_2920

:NONE_2913
222@ = 0

:NONE_2920
221@ = 0

:NONE_2927
gosub @NONE_12253
if 
  225@ == 0
goto_if_false @NONE_2971
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_2985

:NONE_2971
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_2985
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 250.0 {key} 'SPAC_04'
gosub @NONE_12253
if 
  225@ == 1
goto_if_false @NONE_3062
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_3076

:NONE_3062
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_3076
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 300.0 {key} 'SPAC_06'
gosub @NONE_12253
if 
  225@ == 2
goto_if_false @NONE_3153
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_3167

:NONE_3153
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_3167
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 350.0 {key} 'SPAC_05'
227@ = 0

:NONE_3207
290@(227@,60f) += 8.0
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_3403
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_3403
227@ += 1
  227@ >= 60
goto_if_false @NONE_3207
draw_sprite 24 {offsetLeft} 320.0 {offsetTop} 140.0 {width} 256.0 {height} 128.0 {r} 220 {g} 220 {b} 220 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_3769
if 
  223@ == 0
goto_if_false @NONE_3762
223@ += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestSelect
if 
  225@ == 0
goto_if_false @NONE_3691
goto @NONE_3783

:NONE_3691
if 
  225@ == 1
goto_if_false @NONE_3716
goto @NONE_10295

:NONE_3716
if 
  225@ == 2
goto_if_false @NONE_3762
remove_texture_dictionary 
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.Out
wait 0
do_fade 500 {direction} Fade.In
return 

:NONE_3762
goto @NONE_3776

:NONE_3769
223@ = 0

:NONE_3776
goto @NONE_2544

:NONE_3783
351@ = 90.0
227@ = 0

:NONE_3800
352@(227@,10i) = 0
362@(227@,10i) = 0
372@(227@,10i) = 0
382@(227@,10i) = 0
227@ += 1
  227@ >= 10
goto_if_false @NONE_3800
392@ = 0
393@ = 0
394@ = 0
227@ = 0

:NONE_3893
395@(227@,8i) = 0
227@ += 1
  227@ >= 8
goto_if_false @NONE_3893
403@ = 0
404@ = 255
405@ = -50
406@ = 0
407@ = 100
set_lvar_int_to_lvar_int 408@ = 407@
409@ = 0
410@ = 0
411@ = 100
412@ = 3
413@ = 0
414@ = 0
415@ = 0
416@ = 0
417@ = 0
418@ = 0
419@ = 1
420@ = 0
421@ = 190.0
350@ = 8.0

:NONE_4073
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
227@ = 0

:NONE_4120
add_float_lvar_to_float_lvar 290@(227@,60f) += 350@
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_4314
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_4314
227@ += 1
  227@ >= 60
goto_if_false @NONE_4120
if 
  394@ == 0
goto_if_false @NONE_5351
if 
  2 > 418@
goto_if_false @NONE_4515
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @NONE_4413
add_timed_val_to_float_lvar 351@ +=@ -2.65
351@ = limit_angle 351@
goto @NONE_4515

:NONE_4413
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @NONE_4455
add_timed_val_to_float_lvar 351@ +=@ 2.65
351@ = limit_angle 351@
goto @NONE_4515

:NONE_4455
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_lvar_int 425@ =# 422@
425@ *= -1.0
425@ /= 25.0
add_float_lvar_to_float_lvar 351@ += 425@
351@ = limit_angle 351@

:NONE_4515
$x = cos 351@
$y = sin 351@
set_lvar_float_to_var_float 426@ = $y
426@ *= 22.0
if 
  0.0 > 426@
goto_if_false @NONE_4580
426@ *= -1.0

:NONE_4580
426@ += 26.0
set_lvar_float_to_var_float 427@ = $x
427@ *= 22.0
if 
  0.0 > 427@
goto_if_false @NONE_4639
427@ *= -1.0

:NONE_4639
427@ += 26.0
if 
  418@ == 2
goto_if_false @NONE_4722
sub_timed_val_from_float_lvar 421@ -=@ 2.0
350@ = 16.0
if 
  20.0 > 421@
goto_if_false @NONE_4715
418@ = 3

:NONE_4715
goto @NONE_4829

:NONE_4722
if 
  418@ == 3
goto_if_false @NONE_4809
add_timed_val_to_float_lvar 421@ +=@ 2.0
if 
  421@ > 190.0
goto_if_false @NONE_4802
421@ = 190.0
416@ = 0
419@ += 1
418@ = 0

:NONE_4802
goto @NONE_4829

:NONE_4809
350@ = 8.0
421@ = 190.0

:NONE_4829
mult_float_var_by_float_lvar $x *= 421@
mult_float_var_by_float_lvar $y *= 421@
set_lvar_float_to_var_float 428@ = $x
428@ += 320.0
set_lvar_float_to_var_float 429@ = $y
429@ += 224.0
if 
  is_int_lvar_greater_than_int_var 403@ > $game_timer
goto_if_false @NONE_4981
add_int_lvar_to_int_lvar 404@ += 405@
if 
  404@ > 255
goto_if_false @NONE_4942
404@ = 255
405@ = -50

:NONE_4942
if 
  0 > 404@
goto_if_false @NONE_4974
404@ = 0
405@ = 50

:NONE_4974
goto @NONE_4989

:NONE_4981
404@ = 255

:NONE_4989
set_lvar_float_to_lvar_float 431@ = 421@
431@ /= 5.9375
set_lvar_float_to_lvar_float 430@ = 431@
430@ *= 2.0
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
if 
  2 > 418@
goto_if_false @NONE_5099
draw_sprite_with_rotation 20 {offsetLeft} 428@ {offsetTop} 429@ {width} 430@ {height} 431@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 404@
goto @NONE_5130

:NONE_5099
draw_sprite_with_rotation 21 {offsetLeft} 428@ {offsetTop} 429@ {width} 430@ {height} 431@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 404@

:NONE_5130
if 
  2 > 418@
goto_if_false @NONE_5344
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @NONE_5337
if 
  224@ == 0
goto_if_false @NONE_5330
227@ = 0

:NONE_5190
if 
  352@(227@,10i) == 0
goto_if_false @NONE_5282
set_lvar_float_to_lvar_float 432@(227@,10f) = 351@
442@(227@,10f) = 190.0
352@(227@,10i) = 1
452@(227@,10f) = -12.0
set_lvar_float_to_var_float 462@(227@,10f) = $heading
227@ = 9

:NONE_5282
227@ += 1
  227@ >= 10
goto_if_false @NONE_5190
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPlayerShoot
224@ = 1

:NONE_5330
goto @NONE_5344

:NONE_5337
224@ = 0

:NONE_5344
goto @NONE_5975

:NONE_5351
if 
  394@ == 1
goto_if_false @NONE_5459
227@ = 0

:NONE_5376
395@(227@,8i) = 1
set_lvar_float_to_lvar_float 472@(227@,8f) = 428@
set_lvar_float_to_lvar_float 480@(227@,8f) = 429@
227@ += 1
  227@ >= 8
goto_if_false @NONE_5376
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
394@ += 1

:NONE_5459
if 
  394@ == 2
goto_if_false @NONE_5896
227@ = 0

:NONE_5484
if 
  395@(227@,8i) > 0
goto_if_false @NONE_5667
if 
  395@(227@,8i) == 1
goto_if_false @NONE_5539
395@(227@,8i) = 5

:NONE_5539
add_float_lvar_to_float_lvar 472@(227@,8f) += 124@(227@,8f)
add_float_lvar_to_float_lvar 480@(227@,8f) += 132@(227@,8f)
395@(227@,8i) += 1
if 
  395@(227@,8i) > 16
goto_if_false @NONE_5622
395@(227@,8i) = 0
goto @NONE_5667

:NONE_5622
draw_sprite 395@(227@,8i) {offsetLeft} 472@(227@,8f) {offsetTop} 480@(227@,8f) {width} 32.0 {height} 32.0 {r} 220 {g} 220 {b} 220 {a} 255

:NONE_5667
227@ += 1
  227@ >= 8
goto_if_false @NONE_5484
424@ = 0
227@ = 0

:NONE_5702
add_int_lvar_to_int_lvar 424@ += 395@(227@,8i)
227@ += 1
  227@ >= 8
goto_if_false @NONE_5702
if 
  424@ == 0
goto_if_false @NONE_5896
351@ = 90.0
set_lvar_int_to_var_int 403@ = $game_timer
403@ += 2500
409@ = 0
410@ = 0
411@ = 100
408@ = 100
412@ -= 1
if 
  412@ > 0
goto_if_false @NONE_5853
394@ = 0
407@ = 100
goto @NONE_5896

:NONE_5853
set_lvar_int_to_var_int 488@ = $game_timer
488@ += 3000
394@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestGameOver

:NONE_5896
if 
  394@ == 3
goto_if_false @NONE_5975
if 
  is_int_lvar_greater_than_int_var 488@ > $game_timer
goto_if_false @NONE_5968
gosub @NONE_12253
display_text 320.0 {offsetTop} 100.0 {key} 'SPAC_01'
goto @NONE_5975

:NONE_5968
406@ = 1

:NONE_5975
227@ = 0

:NONE_5982
if 
  352@(227@,10i) == 1
goto_if_false @NONE_6202
add_float_lvar_to_float_lvar 442@(227@,10f) += 452@(227@,10f)
$x = cos 432@(227@,10f)
$y = sin 432@(227@,10f)
mult_float_var_by_float_lvar $x *= 442@(227@,10f)
mult_float_var_by_float_lvar $y *= 442@(227@,10f)
set_lvar_float_to_var_float 489@(227@,10f) = $x
489@(227@,10f) += 320.0
set_lvar_float_to_var_float 499@(227@,10f) = $y
499@(227@,10f) += 224.0
draw_sprite_with_rotation 3 {offsetLeft} 489@(227@,10f) {offsetTop} 499@(227@,10f) {width} 8.0 {height} 8.0 {angle} 462@(227@,10f) {red} 52 {green} 183 {blue} 195 {alpha} 255
if 
  10.0 > 442@(227@,10f)
goto_if_false @NONE_6202
352@(227@,10i) = 0

:NONE_6202
227@ += 1
  227@ >= 10
goto_if_false @NONE_5982
if 
  418@ == 0
goto_if_false @NONE_6321
if 
  is_int_var_greater_than_int_lvar $game_timer > 509@
goto_if_false @NONE_6314
510@ = generate_random_float_in_range 0.0 {max} 360.0
511@ = generate_random_int_in_range 0 {max} 3
413@ = 0
512@ = 10
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 8000

:NONE_6314
goto @NONE_6337

:NONE_6321
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 1000

:NONE_6337
if 
  512@ > 0
goto_if_false @NONE_6582
if 
  is_int_var_greater_than_int_lvar $game_timer > 393@
goto_if_false @NONE_6582
227@ = 0

:NONE_6381
if 
  372@(227@,10i) == 0
goto_if_false @NONE_6561
set_lvar_float_to_lvar_float 513@(227@,10f) = 510@
523@(227@,10f) = 5.0
533@(227@,10f) = 3.0
543@(227@,10f) = 10.0
553@(227@,10i) = 0
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
563@(227@,10i) += 500
372@(227@,10i) = 1
593@(227@,10f) = 320.0
603@(227@,10f) = 224.0
set_lvar_int_to_var_int 393@ = $game_timer
393@ += 200
512@ -= 1
227@ = 9

:NONE_6561
227@ += 1
  227@ >= 10
goto_if_false @NONE_6381

:NONE_6582
420@ = 0
227@ = 0

:NONE_6596
if 
  372@(227@,10i) == 1
goto_if_false @NONE_8083
if 
  10 > 553@(227@,10i)
goto_if_false @NONE_6920
if 
  is_int_var_greater_than_int_lvar $game_timer > 563@(227@,10i)
goto_if_false @NONE_6920
set_lvar_int_to_lvar_int 424@ = 553@(227@,10i)
if 
  511@ == 0
goto_if_false @NONE_6753
set_lvar_float_to_lvar_float 533@(227@,10f) = 34@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 44@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 54@(424@,10i)

:NONE_6753
if 
  511@ == 1
goto_if_false @NONE_6831
set_lvar_float_to_lvar_float 533@(227@,10f) = 64@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 74@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 84@(424@,10i)

:NONE_6831
if 
  511@ == 2
goto_if_false @NONE_6909
set_lvar_float_to_lvar_float 533@(227@,10f) = 94@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 104@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 114@(424@,10i)

:NONE_6909
553@(227@,10i) += 1

:NONE_6920
420@ = 1
add_float_lvar_to_float_lvar 543@(227@,10f) += 533@(227@,10f)
add_float_lvar_to_float_lvar 513@(227@,10f) += 523@(227@,10f)
limit_angle 513@(227@,10f) {var_result} 513@(227@,10f)
$x = cos 513@(227@,10f)
$y = sin 513@(227@,10f)
mult_float_var_by_float_lvar $x *= 543@(227@,10f)
mult_float_var_by_float_lvar $y *= 543@(227@,10f)
set_lvar_float_to_lvar_float 593@(227@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 603@(227@,10f) = 583@(227@,10f)
set_lvar_float_to_var_float 573@(227@,10f) = $x
573@(227@,10f) += 320.0
set_lvar_float_to_var_float 583@(227@,10f) = $y
583@(227@,10f) += 224.0
set_lvar_float_to_lvar_float 613@ = 543@(227@,10f)
613@ /= 5.0
set_var_float_to_lvar_float $x = 573@(227@,10f)
sub_float_lvar_from_float_var $x -= 593@(227@,10f)
set_var_float_to_lvar_float $y = 583@(227@,10f)
sub_float_lvar_from_float_var $y -= 603@(227@,10f)
$heading = get_heading_from_vector_2d $x {y} $y
if 
  511@ == 0
goto_if_false @NONE_7252
draw_sprite_with_rotation 1 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255
goto @NONE_7355

:NONE_7252
if 
  511@ == 1
goto_if_false @NONE_7316
draw_sprite_with_rotation 22 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255
goto @NONE_7355

:NONE_7316
draw_sprite_with_rotation 23 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255

:NONE_7355
set_var_float_to_lvar_float $x = 351@
$x += 10.0
set_var_float_to_lvar_float $y = 351@
$y -= 10.0
if and
  is_float_var_greater_than_float_lvar $x > 513@(227@,10f)
  is_float_lvar_greater_than_float_var 513@(227@,10f) > $y
goto_if_false @NONE_7628
424@ = 18
sub_int_lvar_from_int_lvar 424@ -= 419@
if 
  4 > 424@
goto_if_false @NONE_7466
424@ = 4

:NONE_7466
424@ = generate_random_int_in_range 0 {max} 424@
if 
  424@ == 0
goto_if_false @NONE_7628
228@ = 0

:NONE_7501
if 
  382@(228@,10i) == 0
goto_if_false @NONE_7607
set_lvar_float_to_lvar_float 614@(228@,10f) = 513@(227@,10f)
set_lvar_float_to_lvar_float 624@(228@,10f) = 543@(227@,10f)
382@(228@,10i) = 1
634@(228@,10f) = 6.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestEnemyShoot
228@ = 9

:NONE_7607
228@ += 1
  228@ >= 10
goto_if_false @NONE_7501

:NONE_7628
if or
  543@(227@,10f) > 320.0
  10.0 > 543@(227@,10f)
goto_if_false @NONE_7678
372@(227@,10i) = 0

:NONE_7678
228@ = 0

:NONE_7685
if 
  352@(228@,10i) == 1
goto_if_false @NONE_8062
if 
  do_2d_rectangles_collide 489@(228@,10f) {rectangle1PositionY} 499@(228@,10f) {rectangle1SizeX} 12.0 {rectangle1SizeY} 12.0 {rectangle2PositionX} 573@(227@,10f) {rectangle2PositionY} 583@(227@,10f) {rectangle2SizeX} 613@ {rectangle2SizeY} 613@
goto_if_false @NONE_8062
372@(227@,10i) = 0
352@(228@,10i) = 0
413@ += 1
if 
  413@ == 10
goto_if_false @NONE_7912
set_lvar_float_to_lvar_float 644@ = 573@(227@,10f)
set_lvar_float_to_lvar_float 645@ = 583@(227@,10f)
set_lvar_int_to_var_int 415@ = $game_timer
415@ += 1500
set_lvar_float_to_lvar_float 646@ = 513@(227@,10f)
set_lvar_float_to_lvar_float 647@ = 543@(227@,10f)
417@ += 1
414@ = 100
mult_int_lvar_by_int_lvar 414@ *= 419@
add_int_lvar_to_int_lvar 392@ += 414@
goto @NONE_7935

:NONE_7912
424@ = 10
mult_int_lvar_by_int_lvar 424@ *= 419@
add_int_lvar_to_int_lvar 392@ += 424@

:NONE_7935
229@ = 0

:NONE_7942
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8034
set_lvar_float_to_lvar_float 648@(229@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 583@(227@,10f)
362@(229@,10i) += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
229@ = 9

:NONE_8034
229@ += 1
  229@ >= 10
goto_if_false @NONE_7942
228@ = 9

:NONE_8062
228@ += 1
  228@ >= 10
goto_if_false @NONE_7685

:NONE_8083
227@ += 1
  227@ >= 10
goto_if_false @NONE_6596
if 
  418@ == 1
goto_if_false @NONE_8167
if 
  420@ == 0
goto_if_false @NONE_8167
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestWarp
418@ = 2

:NONE_8167
227@ = 0

:NONE_8174
if 
  382@(227@,10i) == 1
goto_if_false @NONE_8642
add_float_lvar_to_float_lvar 624@(227@,10f) += 634@(227@,10f)
$x = cos 614@(227@,10f)
$y = sin 614@(227@,10f)
mult_float_var_by_float_lvar $x *= 624@(227@,10f)
mult_float_var_by_float_lvar $y *= 624@(227@,10f)
set_lvar_float_to_var_float 668@(227@,10f) = $x
668@(227@,10f) += 320.0
set_lvar_float_to_var_float 678@(227@,10f) = $y
678@(227@,10f) += 224.0
draw_sprite 4 {offsetLeft} 668@(227@,10f) {offsetTop} 678@(227@,10f) {width} 8.0 {height} 8.0 {r} 244 {g} 0 {b} 0 {a} 255
if 
  not do_2d_rectangles_collide 668@(227@,10f) {rectangle1PositionY} 678@(227@,10f) {rectangle1SizeX} 8.0 {rectangle1SizeY} 8.0 {rectangle2PositionX} 320.0 {rectangle2PositionY} 224.0 {rectangle2SizeX} 640.0 {rectangle2SizeY} 448.0
goto_if_false @NONE_8418
382@(227@,10i) = 0

:NONE_8418
if 
  394@ == 0
goto_if_false @NONE_8642
if 
  do_2d_rectangles_collide 668@(227@,10f) {rectangle1PositionY} 678@(227@,10f) {rectangle1SizeX} 8.0 {rectangle1SizeY} 8.0 {rectangle2PositionX} 428@ {rectangle2PositionY} 429@ {rectangle2SizeX} 426@ {rectangle2SizeY} 427@
goto_if_false @NONE_8642
if 
  is_int_var_greater_than_int_lvar $game_timer > 403@
goto_if_false @NONE_8511
407@ -= 20

:NONE_8511
382@(227@,10i) = 0
229@ = 0

:NONE_8529
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8621
set_lvar_float_to_lvar_float 648@(229@,10f) = 668@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 678@(227@,10f)
362@(229@,10i) += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
229@ = 9

:NONE_8621
229@ += 1
  229@ >= 10
goto_if_false @NONE_8529

:NONE_8642
227@ += 1
  227@ >= 10
goto_if_false @NONE_8174
if 
  394@ == 0
goto_if_false @NONE_8885
if 
  409@ > 0
goto_if_false @NONE_8885
if 
  409@ > 1
goto_if_false @NONE_8731
411@ = 100
409@ -= 1

:NONE_8731
add_int_lvar_to_int_lvar 410@ += 411@
if 
  410@ > 255
goto_if_false @NONE_8773
410@ = 255
411@ = -20

:NONE_8773
if 
  0 > 410@
goto_if_false @NONE_8812
410@ = 0
411@ = 100
409@ = 0

:NONE_8812
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestShieldGlow
draw_sprite_with_rotation 17 {offsetLeft} 428@ {offsetTop} 429@ {width} 64.0 {height} 32.0 {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 410@

:NONE_8885
227@ = 0

:NONE_8892
if 
  362@(227@,10i) > 0
goto_if_false @NONE_9043
if 
  362@(227@,10i) == 1
goto_if_false @NONE_8947
362@(227@,10i) = 5

:NONE_8947
362@(227@,10i) += 1
if 
  362@(227@,10i) > 16
goto_if_false @NONE_8998
362@(227@,10i) = 0
goto @NONE_9043

:NONE_8998
draw_sprite 362@(227@,10i) {offsetLeft} 648@(227@,10f) {offsetTop} 658@(227@,10f) {width} 32.0 {height} 32.0 {r} 220 {g} 220 {b} 220 {a} 255

:NONE_9043
227@ += 1
  227@ >= 10
goto_if_false @NONE_8892
if 
  417@ == 1
goto_if_false @NONE_9450
647@ += 2.0
646@ = limit_angle 646@
$x = cos 646@
$y = sin 646@
mult_float_var_by_float_lvar $x *= 647@
mult_float_var_by_float_lvar $y *= 647@
set_lvar_float_to_var_float 688@ = $x
688@ += 320.0
set_lvar_float_to_var_float 689@ = $y
689@ += 224.0
draw_sprite 18 {offsetLeft} 688@ {offsetTop} 689@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255
if 
  394@ == 0
goto_if_false @NONE_9394
if 
  do_2d_rectangles_collide 688@ {rectangle1PositionY} 689@ {rectangle1SizeX} 16.0 {rectangle1SizeY} 16.0 {rectangle2PositionX} 428@ {rectangle2PositionY} 429@ {rectangle2SizeX} 426@ {rectangle2SizeY} 427@
goto_if_false @NONE_9394
416@ += 1
if 
  416@ == 1
goto_if_false @NONE_9304
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup1

:NONE_9304
if 
  416@ == 2
goto_if_false @NONE_9342
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup2

:NONE_9342
if 
  416@ == 3
goto_if_false @NONE_9387
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup3
418@ = 1

:NONE_9387
417@ = 0

:NONE_9394
if 
  not do_2d_rectangles_collide 688@ {rectangle1PositionY} 689@ {rectangle1SizeX} 16.0 {rectangle1SizeY} 16.0 {rectangle2PositionX} 320.0 {rectangle2PositionY} 224.0 {rectangle2SizeX} 640.0 {rectangle2SizeY} 448.0
goto_if_false @NONE_9450
417@ = 0

:NONE_9450
if or
  0 > 407@
  407@ == 0
goto_if_false @NONE_9507
407@ = 0
if 
  394@ == 0
goto_if_false @NONE_9507
394@ = 1

:NONE_9507
if 
  is_int_lvar_greater_than_int_lvar 408@ > 407@
goto_if_false @NONE_9541
set_lvar_int_to_lvar_int 408@ = 407@
409@ += 1

:NONE_9541
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text 95.0 {offsetTop} 45.0 {key} 'NONE_01'
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 95.0 {offsetTop} 70.0 {key} 'NUMBER' {num} 392@
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text 550.0 {offsetTop} 45.0 {key} 'NONE_02'
draw_sprite 20 {offsetLeft} 527.2529 {offsetTop} 84.2723 {width} 48.0 {height} 24.0 {r} 220 {g} 220 {b} 220 {a} 255
gosub @NONE_12253
set_text_centre False
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 554.7283 {offsetTop} 70.0 {key} 'NONE_03' {num} 412@
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text 550.0 {offsetTop} 350.0 {key} 'NONE_04'
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 550.0 {offsetTop} 375.0 {key} 'NONE_05' {num} 407@
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text 95.0 {offsetTop} 350.0 {key} 'NONE_07'
gosub @NONE_12253
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 95.0 {offsetTop} 375.0 {key} 'NUMBER' {num} 419@
if 
  is_int_lvar_greater_than_int_var 415@ > $game_timer
goto_if_false @NONE_9984
gosub @NONE_12253
set_text_colour 0 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.5 {heightScale} 1.5
display_text_with_number 644@ {offsetTop} 645@ {key} 'NUMBER' {num} 414@

:NONE_9984
if 
  394@ == 0
goto_if_false @NONE_10048
if 
  418@ > 0
goto_if_false @NONE_10048
gosub @NONE_12253
display_text 320.0 {offsetTop} 100.0 {key} 'NONE_06'

:NONE_10048
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @NONE_10216
406@ = 1

:NONE_10216
if 
  406@ == 1
goto_if_false @NONE_10288
if 
  is_int_lvar_greater_than_int_var 392@ > $played_none_before[9]
goto_if_false @NONE_10281
690@ = 10
691@ = 0
goto @NONE_10295
goto @NONE_10288

:NONE_10281
goto @NONE_2544

:NONE_10288
goto @NONE_4073

:NONE_10295
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
227@ = 9

:NONE_10342
if 
  227@ > -1
goto_if_false @NONE_10589
if 
  is_int_lvar_greater_than_int_var 392@ > $played_none_before(227@,10i)
goto_if_false @NONE_10568
if 
  227@ <> 9
goto_if_false @NONE_10480
set_lvar_int_to_lvar_int 228@ = 227@
228@ += 1
set_var_int_to_var_int $played_none_before(228@,10i) = $played_none_before(227@,10i)
set_var_text_label $5364(228@,10s) = $5364(227@,10s)
set_var_text_label $5384(228@,10s) = $5384(227@,10s)
set_var_text_label $5404(228@,10s) = $5404(227@,10s)

:NONE_10480
set_var_int_to_lvar_int $played_none_before(227@,10i) = 392@
set_var_text_label $5364(227@,10s) = 212@s
set_var_text_label $5384(227@,10s) = 212@s
set_var_text_label $5404(227@,10s) = 212@s
set_lvar_int_to_lvar_int 226@ = 227@
if 
  227@ == 0
goto_if_false @NONE_10561
392@ = 0

:NONE_10561
goto @NONE_10575

:NONE_10568
392@ = 0

:NONE_10575
227@ -= 1
goto @NONE_10342

:NONE_10589
if 
  226@ > -1
goto_if_false @NONE_11091
if 
  691@ == 0
goto_if_false @NONE_10665
set_var_text_label $5364(226@,10s) = 140@(690@,37s)
set_var_text_label $5384(226@,10s) = 212@s
set_var_text_label $5404(226@,10s) = 212@s

:NONE_10665
if 
  691@ == 1
goto_if_false @NONE_10711
set_var_text_label $5384(226@,10s) = 140@(690@,37s)
set_var_text_label $5404(226@,10s) = 212@s

:NONE_10711
if 
  691@ == 2
goto_if_false @NONE_10745
set_var_text_label $5404(226@,10s) = 140@(690@,37s)

:NONE_10745
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 423@
goto_if_false @NONE_10866
if 
  is_int_var_greater_than_int_lvar $game_timer > 221@
goto_if_false @NONE_10859
if 
  36 > 690@
goto_if_false @NONE_10836
690@ += 1
goto @NONE_10843

:NONE_10836
690@ = 0

:NONE_10843
set_lvar_int_to_var_int 221@ = $game_timer
221@ += 250

:NONE_10859
goto @NONE_10882

:NONE_10866
set_lvar_int_to_var_int 221@ = $game_timer
221@ -= 250

:NONE_10882
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  423@ > 100
goto_if_false @NONE_10987
if 
  is_int_var_greater_than_int_lvar $game_timer > 222@
goto_if_false @NONE_10980
if 
  690@ > 0
goto_if_false @NONE_10957
690@ -= 1
goto @NONE_10964

:NONE_10957
690@ = 36

:NONE_10964
set_lvar_int_to_var_int 222@ = $game_timer
222@ += 250

:NONE_10980
goto @NONE_11003

:NONE_10987
set_lvar_int_to_var_int 222@ = $game_timer
222@ -= 250

:NONE_11003
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_11084
if 
  223@ == 0
goto_if_false @NONE_11077
691@ += 1
223@ += 1
if 
  691@ == 3
goto_if_false @NONE_11077
226@ = -1

:NONE_11077
goto @NONE_11091

:NONE_11084
223@ = 0

:NONE_11091
227@ = 0

:NONE_11098
290@(227@,60f) += 8.0
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_11294
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_11294
227@ += 1
  227@ >= 60
goto_if_false @NONE_11098
gosub @NONE_12253
set_text_font Font.Subtitles
display_text 214@ {offsetTop} 215@ {key} 'SPAC_06'
set_lvar_float_to_lvar_float 692@ = 216@
set_lvar_float_to_lvar_float 693@ = 217@
227@ = 0

:NONE_11366
if 
  10 > 227@
goto_if_false @NONE_11985
set_lvar_float_to_lvar_float 692@ = 216@
gosub @NONE_12253
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11442
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11442
if or
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 176@s
goto_if_false @NONE_11487
692@ += 8.0

:NONE_11487
display_text 692@ {offsetTop} 693@ {key} $5364(227@,10s)
if or
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 176@s
goto_if_false @NONE_11547
692@ -= 8.0

:NONE_11547
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12253
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11605
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11605
if or
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 176@s
goto_if_false @NONE_11650
692@ += 8.0

:NONE_11650
display_text 692@ {offsetTop} 693@ {key} $5384(227@,10s)
if or
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 176@s
goto_if_false @NONE_11710
692@ -= 8.0

:NONE_11710
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12253
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11768
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11768
if or
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 176@s
goto_if_false @NONE_11813
692@ += 8.0

:NONE_11813
display_text 692@ {offsetTop} 693@ {key} $5404(227@,10s)
if or
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 176@s
goto_if_false @NONE_11873
692@ -= 8.0

:NONE_11873
set_lvar_float_to_lvar_float 692@ = 216@
add_float_lvar_to_float_lvar 692@ += 219@
gosub @NONE_12253
set_text_centre False
set_text_right_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11939
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11939
display_text_with_number 692@ {offsetTop} 693@ {key} 'NUMBER' {num} $played_none_before(227@,10i)
add_float_lvar_to_float_lvar 693@ += 220@
227@ += 1
goto @NONE_11366

:NONE_11985
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  226@ == -1
goto_if_false @NONE_12246
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @NONE_12183
goto @NONE_2544

:NONE_12183
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_12239
if 
  223@ == 0
goto_if_false @NONE_12232
223@ += 1
goto @NONE_2544

:NONE_12232
goto @NONE_12246

:NONE_12239
223@ = 0

:NONE_12246
goto @NONE_10295

:NONE_12253
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 1.0 {heightScale} 3.0
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 180
set_text_font Font.Menu
return 

:NONE_12325
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestTrackStop
clear_this_print 'BUSY'
shut_all_chars_up False
$onmission = 0
mission_has_finished 
return 

//-------------Mission 4---------------
// Originally: Video Game: Duality

:DUAL
gosub @DUAL_16
gosub @DUAL_15701
terminate_this_script 

:DUAL_16
$onmission = 1
script_name 'DUAL'
wait 0
load_mission_text 'DUAL'
use_text_commands True
remove_texture_dictionary 
load_texture_dictionary 'LD_SPAC'
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
load_sprite 1 {spriteName} "BACKGND"
load_sprite 2 {spriteName} "LAYER"
load_sprite 3 {spriteName} "TVCORN"
load_sprite 4 {spriteName} "ROCKSHP"
load_sprite 5 {spriteName} "THRUSTG"
load_sprite 7 {spriteName} "DARK"
load_sprite 8 {spriteName} "LIGHT"
load_sprite 9 {spriteName} "EX1"
load_sprite 10 {spriteName} "EX2"
load_sprite 11 {spriteName} "EX3"
load_sprite 12 {spriteName} "EX4"
load_sprite 13 {spriteName} "WHITE"
load_sprite 14 {spriteName} "SHOOT"
load_sprite 15 {spriteName} "HEALTH"
load_sprite 16 {spriteName} "POWER"
load_sprite 17 {spriteName} "DUALITY"
load_sprite 18 {spriteName} "BLACK"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1807

:DUAL_297
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @DUAL_323
wait 0
goto @DUAL_297

:DUAL_323
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTrackStart
51@ = generate_random_int_in_range 0 {max} 3
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DUAL_1516 {caseNum1} 0 {caseLabel1} @DUAL_415 {caseNum2} 1 {caseLabel2} @DUAL_782 {caseNum3} 2 {caseLabel3} @DUAL_1149 {caseNum4} -1 {caseLabel4} @DUAL_1516 {caseNum5} -1 {caseLabel5} @DUAL_1516 {caseNum6} -1 {caseLabel6} @DUAL_1516 {caseNum7} -1 {caseLabel7} @DUAL_1516

:DUAL_415
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 156.0
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 90.0
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.6436
80@ = 32.0
92@ = 32.0
57@ = 262.0
69@ = 300.0
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 229.7492
60@ = 284.4967
72@ = 314.9901
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_782
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 219.561
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 215.0997
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 91.233
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 296.2502
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_1149
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 296.0475
78@ = 256.0
90@ = 128.0
55@ = 464.383
67@ = 354.7318
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 119.7153
83@ = 320.0
95@ = 135.5804
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 134.4938
goto @DUAL_1516

:DUAL_1516
62@ = 33.8609
74@ = 18.1114
86@ = 230.0
98@ = 60.3475
63@ = 38.1753
75@ = 20.4681
87@ = 0.5014
99@ = 1.8889
100@ = 0
101@ = 1
102@ = 1
103@ = 1
104@ = 1
105@ = 1
set_lvar_text_label 106@s = 'DUAL_0'
set_lvar_text_label 108@s = 'DUAL_1'
set_lvar_text_label 110@s = 'DUAL_2'
set_lvar_text_label 112@s = 'DUAL_3'
set_lvar_text_label 114@s = 'DUAL_4'
set_lvar_text_label 116@s = 'DUAL_5'
set_lvar_text_label 118@s = 'DUAL_6'
set_lvar_text_label 120@s = 'DUAL_7'
set_lvar_text_label 122@s = 'DUAL_8'
set_lvar_text_label 124@s = 'DUAL_9'
set_lvar_text_label 126@s = 'DUAL_AA'
set_lvar_text_label 128@s = 'DUAL_B'
set_lvar_text_label 130@s = 'DUAL_C'
set_lvar_text_label 132@s = 'DUAL_D'
set_lvar_text_label 134@s = 'DUAL_E'
set_lvar_text_label 136@s = 'DUAL_F'
set_lvar_text_label 138@s = 'DUAL_G'
set_lvar_text_label 140@s = 'DUAL_H'
set_lvar_text_label 142@s = 'DUAL_I'
set_lvar_text_label 144@s = 'DUAL_J'
set_lvar_text_label 146@s = 'DUAL_K'
set_lvar_text_label 148@s = 'DUAL_L'
set_lvar_text_label 150@s = 'DUAL_M'
set_lvar_text_label 152@s = 'DUAL_N'
set_lvar_text_label 154@s = 'DUAL_O'
set_lvar_text_label 156@s = 'DUAL_P'
set_lvar_text_label 158@s = 'DUAL_Q'
set_lvar_text_label 160@s = 'DUAL_R'
set_lvar_text_label 162@s = 'DUAL_S'
set_lvar_text_label 164@s = 'DUAL_T'
set_lvar_text_label 166@s = 'DUAL_U'
set_lvar_text_label 168@s = 'DUAL_V'
set_lvar_text_label 170@s = 'DUAL_W'
set_lvar_text_label 172@s = 'DUAL_X'
set_lvar_text_label 174@s = 'DUAL_Y'
set_lvar_text_label 176@s = 'DUAL_Z'
set_lvar_text_label 178@s = 'DUAL_FS'
if 
  $5424 == 0
goto_if_false @DUAL_2819
$played_dual_before[0] = -10000
$played_dual_before[1] = -7500
$played_dual_before[2] = -5000
$played_dual_before[3] = -2500
$played_dual_before[4] = -1000
$played_dual_before[5] = -750
$played_dual_before[6] = -500
$played_dual_before[7] = -250
$played_dual_before[8] = -175
$played_dual_before[9] = -100
$5435[0] = 10000
$5435[1] = 7500
$5435[2] = 5000
$5435[3] = 2500
$5435[4] = 1000
$5435[5] = 750
$5435[6] = 500
$5435[7] = 250
$5435[8] = 175
$5435[9] = 100
set_var_text_label s$5445[0] = 132@s
set_var_text_label s$5465[0] = 144@s
set_var_text_label s$5485[0] = 178@s
set_var_text_label s$5445[1] = 146@s
set_var_text_label s$5465[1] = 160@s
set_var_text_label s$5485[1] = 174@s
set_var_text_label s$5445[2] = 162@s
set_var_text_label s$5465[2] = 142@s
set_var_text_label s$5485[2] = 162@s
set_var_text_label s$5445[3] = 170@s
set_var_text_label s$5465[3] = 132@s
set_var_text_label s$5485[3] = 174@s
set_var_text_label s$5445[4] = 132@s
set_var_text_label s$5465[4] = 126@s
set_var_text_label s$5485[4] = 152@s
set_var_text_label s$5445[5] = 148@s
set_var_text_label s$5465[5] = 160@s
set_var_text_label s$5485[5] = 138@s
set_var_text_label s$5445[6] = 152@s
set_var_text_label s$5465[6] = 154@s
set_var_text_label s$5485[6] = 152@s
set_var_text_label s$5445[7] = 138@s
set_var_text_label s$5465[7] = 126@s
set_var_text_label s$5485[7] = 176@s
set_var_text_label s$5445[8] = 108@s
set_var_text_label s$5465[8] = 106@s
set_var_text_label s$5485[8] = 108@s
set_var_text_label s$5445[9] = 144@s
set_var_text_label s$5465[9] = 166@s
set_var_text_label s$5485[9] = 132@s
set_var_text_label s$5505[0] = 126@s
set_var_text_label s$5525[0] = 132@s
set_var_text_label s$5545[0] = 176@s
set_var_text_label s$5505[1] = 130@s
set_var_text_label s$5525[1] = 126@s
set_var_text_label s$5545[1] = 152@s
set_var_text_label s$5505[2] = 142@s
set_var_text_label s$5525[2] = 150@s
set_var_text_label s$5545[2] = 174@s
set_var_text_label s$5505[3] = 170@s
set_var_text_label s$5525[3] = 142@s
set_var_text_label s$5545[3] = 148@s
set_var_text_label s$5505[4] = 132@s
set_var_text_label s$5525[4] = 128@s
set_var_text_label s$5545[4] = 156@s
set_var_text_label s$5505[5] = 132@s
set_var_text_label s$5525[5] = 126@s
set_var_text_label s$5545[5] = 168@s
set_var_text_label s$5505[6] = 132@s
set_var_text_label s$5525[6] = 154@s
set_var_text_label s$5545[6] = 132@s
set_var_text_label s$5505[7] = 152@s
set_var_text_label s$5525[7] = 136@s
set_var_text_label s$5545[7] = 178@s
set_var_text_label s$5505[8] = 146@s
set_var_text_label s$5525[8] = 150@s
set_var_text_label s$5545[8] = 128@s
set_var_text_label s$5505[9] = 162@s
set_var_text_label s$5525[9] = 144@s
set_var_text_label s$5545[9] = 148@s
$5424 = 1

:DUAL_2819
180@ = -1
181@ = 0
182@ = 321.4137
183@ = 58.2432
184@ = 201.225
185@ = 88.9168
186@ = 29.78
187@ = 230.5296
188@ = 28.5713

:DUAL_2903
wait 0
do_fade 0 {direction} Fade.In
$game_timer = get_game_timer 
300@ = 0
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  311@ > 100
goto_if_false @DUAL_3094
if 
  103@ == 0
goto_if_false @DUAL_3080
if 
  100@ == 0
goto_if_false @DUAL_3035
100@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3080

:DUAL_3035
if 
  100@ == 2
goto_if_false @DUAL_3080
100@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3080
103@ = 1
goto @DUAL_3581

:DUAL_3094
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > 311@
goto_if_false @DUAL_3247
if 
  103@ == 0
goto_if_false @DUAL_3233
if 
  100@ == 1
goto_if_false @DUAL_3188
100@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3233

:DUAL_3188
if 
  100@ == 3
goto_if_false @DUAL_3233
100@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3233
102@ = 1
goto @DUAL_3574

:DUAL_3247
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 312@
goto_if_false @DUAL_3400
if 
  104@ == 0
goto_if_false @DUAL_3386
if 
  100@ == 2
goto_if_false @DUAL_3341
100@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3386

:DUAL_3341
if 
  100@ == 3
goto_if_false @DUAL_3386
100@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3386
104@ = 1
goto @DUAL_3567

:DUAL_3400
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  312@ > 100
goto_if_false @DUAL_3553
if 
  105@ == 0
goto_if_false @DUAL_3539
if 
  100@ == 0
goto_if_false @DUAL_3494
100@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3539

:DUAL_3494
if 
  100@ == 1
goto_if_false @DUAL_3539
100@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3539
105@ = 1
goto @DUAL_3560

:DUAL_3553
105@ = 0

:DUAL_3560
104@ = 0

:DUAL_3567
102@ = 0

:DUAL_3574
103@ = 0

:DUAL_3581
draw_sprite 18 {offsetLeft} 52@ {offsetTop} 64@ {width} 76@ {height} 88@ {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 13 {offsetLeft} 53@ {offsetTop} 65@ {width} 77@ {height} 89@ {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 17 {offsetLeft} 54@ {offsetTop} 66@ {width} 256.0 {height} 128.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 7 {offsetLeft} 55@ {offsetTop} 67@ {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 56@ {offsetTop} 68@ {width} 32.0 {height} 32.0 {r} 255 {g} 255 {b} 255 {a} 255
gosub @DUAL_15629
set_text_centre False
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3795
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3803

:DUAL_3795
set_text_scale 81@ {heightScale} 93@

:DUAL_3803
display_text 57@ {offsetTop} 69@ {key} 'SPAC_04'
gosub @DUAL_15629
set_text_centre False
set_text_justify True
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3879
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3887

:DUAL_3879
set_text_scale 81@ {heightScale} 93@

:DUAL_3887
display_text 58@ {offsetTop} 69@ {key} 'SPAC_05'
gosub @DUAL_15629
set_text_centre False
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3966
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3974

:DUAL_3966
set_text_scale 81@ {heightScale} 93@

:DUAL_3974
display_text 57@ {offsetTop} 71@ {key} 'SPAC_06'
gosub @DUAL_15629
set_text_centre False
set_text_justify True
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_4050
set_text_scale 82@ {heightScale} 94@
goto @DUAL_4058

:DUAL_4050
set_text_scale 81@ {heightScale} 93@

:DUAL_4058
display_text 58@ {offsetTop} 71@ {key} 'SPAC_06'
if 
  100@ == 0
goto_if_false @DUAL_4125
draw_sprite 8 {offsetLeft} 60@ {offsetTop} 72@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4125
if 
  100@ == 1
goto_if_false @DUAL_4175
draw_sprite 7 {offsetLeft} 61@ {offsetTop} 72@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4175
if 
  100@ == 2
goto_if_false @DUAL_4225
draw_sprite 8 {offsetLeft} 60@ {offsetTop} 73@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4225
if 
  100@ == 3
goto_if_false @DUAL_4275
draw_sprite 7 {offsetLeft} 61@ {offsetTop} 73@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4275
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_4755
if 
  101@ == 0
goto_if_false @DUAL_4748
101@ += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuSelect
if 
  100@ == 0
goto_if_false @DUAL_4506
goto @DUAL_4839

:DUAL_4506
if 
  100@ == 1
goto_if_false @DUAL_4552
remove_texture_dictionary 
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.Out
wait 0
do_fade 500 {direction} Fade.In
return 

:DUAL_4552
if 
  100@ == 2
goto_if_false @DUAL_4650
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 205@ = 50@
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 1
goto @DUAL_11877

:DUAL_4650
if 
  100@ == 3
goto_if_false @DUAL_4748
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 205@ = 50@
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 0
goto @DUAL_11877

:DUAL_4748
goto @DUAL_4762

:DUAL_4755
101@ = 0

:DUAL_4762
draw_window 62@ {leftTopY} 74@ {rightBottomX} 86@ {rightBottomY} 98@ {header} 'DUMMY' {zIndex} 0
gosub @DUAL_15629
set_text_centre False
set_text_wrapx 86@
set_text_font Font.Subtitles
set_text_scale 87@ {heightScale} 99@
display_text 63@ {offsetTop} 75@ {key} 'SPAC_10'
goto @DUAL_2903

:DUAL_4839
189@ = 0.0
193@ = 0.0
190@ = 0.0
194@ = 0.0
199@ = 0.0
200@ = 0.0
$5565 = 0.0
$ship_velocity_x = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.1
204@ = 100.0
205@ = 0.0
206@ = 0.0
207@ = 0
208@ = -512.0
209@ = -256.0
210@ = 0.0
211@ = 256.0
212@ = 512.0
213@ = -384.0
214@ = -128.0
215@ = 128.0
216@ = 384.0
217@ = 200.0
227@ = 200.0
237@ = -199999995904.0
218@ = -300.0
228@ = -300.0
238@ = -199999995904.0
219@ = -300.0
229@ = 300.0
239@ = -199999995904.0
220@ = 300.0
230@ = -300.0
240@ = -199999995904.0
221@ = 0.1
231@ = 300.0
241@ = -199999995904.0
222@ = 0.1
232@ = -300.0
242@ = 199999995904.0
223@ = 300.0
233@ = 0.1
243@ = 199999995904.0
224@ = -300.0
234@ = 0.1
244@ = 199999995904.0
225@ = 0.1
235@ = 500.0
245@ = 199999995904.0
226@ = 0.1
236@ = -500.0
246@ = 199999995904.0
247@ = 10
248@ = 32.0
249@ = 6.6726
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
40@ = 0

:DUAL_5470
if 
  20 > 40@
goto_if_false @DUAL_5530
250@(40@,20f) = 1000.0
270@(40@,20f) = 1000.0
40@ += 1
goto @DUAL_5470

:DUAL_5530
40@ = 0

:DUAL_5537
if 
  10 > 40@
goto_if_false @DUAL_5580
290@(40@,10i) = 0
40@ += 1
goto @DUAL_5537

:DUAL_5580
300@ = 0
set_player_control $player1 {state} False
301@ = 100.0
302@ = 100.0
303@ = 256.0
304@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 305@ = $game_timer
305@ += 4000
set_lvar_int_to_var_int 306@ = $game_timer
307@ = 0

:DUAL_5667
set_lvar_int_to_var_int 308@ = $game_timer
wait 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 309@ = $game_timer
sub_int_lvar_from_int_lvar 309@ -= 308@
cset_lvar_float_to_lvar_int 310@ =# 309@
310@ /= 1.5
310@ /= 1000.0
201@ = 0.0
202@ = 0.0
add_timed_val_to_float_lvar 301@ +=@ 0.06
if 
  301@ > 100.0
goto_if_false @DUAL_5789
301@ = 100.0

:DUAL_5789
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DUAL_5845
if 
  307@ == 1
goto_if_false @DUAL_5838
307@ = 0
304@ = 1

:DUAL_5838
goto @DUAL_5852

:DUAL_5845
307@ = 1

:DUAL_5852
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DUAL_5886
add_timed_val_to_float_lvar 203@ +=@ 5.0
goto @DUAL_5962

:DUAL_5886
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DUAL_5920
add_timed_val_to_float_lvar 203@ +=@ -5.0
goto @DUAL_5962

:DUAL_5920
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_lvar_int 50@ =# 311@
50@ /= 15.0
add_float_lvar_to_float_lvar 203@ += 50@

:DUAL_5962
if 
  0.1 > 203@
goto_if_false @DUAL_6000
203@ += 360.0
goto @DUAL_5962

:DUAL_6000
if 
  203@ > 360.0
goto_if_false @DUAL_6038
203@ -= 360.0
goto @DUAL_6000

:DUAL_6038
40@ = 0

:DUAL_6045
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_7372
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 217@(40@,10f) {toZ} 227@(40@,10f)
313@ = 0
if 
  $distance > 700.0
goto_if_false @DUAL_6124
313@ = 1

:DUAL_6124
if 
  100.0 > $distance
goto_if_false @DUAL_6471
if 
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 217@(40@,10f) {rectangle2PositionY} 227@(40@,10f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @DUAL_6471
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6410
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTouchDark
sub_timed_val_from_float_lvar 302@ -=@ 1.0
if 
  0.0 > 302@
goto_if_false @DUAL_6403
302@ = 0.0
41@ = 0

:DUAL_6291
if 
  10 > 41@
goto_if_false @DUAL_6387
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6373
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_6373
41@ += 1
goto @DUAL_6291

:DUAL_6387
set_lvar_int_to_var_int 306@ = $game_timer
306@ += 3000

:DUAL_6403
goto @DUAL_6471

:DUAL_6410
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTouchLight
add_timed_val_to_float_lvar 302@ +=@ 1.0
if 
  302@ > 100.0
goto_if_false @DUAL_6471
302@ = 100.0

:DUAL_6471
41@ = 0

:DUAL_6478
if 
  10 > 41@
goto_if_false @DUAL_6673
if 
  is_int_lvar_greater_than_int_var 314@(41@,10i) > $game_timer
goto_if_false @DUAL_6659
if 
  do_2d_rectangles_collide 439@(41@,10f) {rectangle1PositionY} 449@(41@,10f) {rectangle1SizeX} 12.0 {rectangle1SizeY} 12.0 {rectangle2PositionX} 217@(40@,10f) {rectangle2PositionY} 227@(40@,10f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @DUAL_6659
313@ = 2
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_6652
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6645
300@ += 10
goto @DUAL_6652

:DUAL_6645
300@ -= 10

:DUAL_6652
41@ = 9

:DUAL_6659
41@ += 1
goto @DUAL_6478

:DUAL_6673
if 
  313@ > 0
goto_if_false @DUAL_7068
if 
  313@ == 2
goto_if_false @DUAL_6820
41@ = 0

:DUAL_6716
if 
  10 > 41@
goto_if_false @DUAL_6820
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6806
set_lvar_float_to_lvar_float 324@(41@,10f) = 217@(40@,10f)
set_lvar_float_to_lvar_float 334@(41@,10f) = 227@(40@,10f)
290@(41@,10i) += 1
41@ = 9

:DUAL_6806
41@ += 1
goto @DUAL_6716

:DUAL_6820
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6921
$x = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6899
$x *= -1.0

:DUAL_6899
$y = generate_random_float_in_range -700.0 {max} 700.0
goto @DUAL_6988

:DUAL_6921
$x = generate_random_float_in_range -700.0 {max} 700.0
$y = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6988
$y *= -1.0

:DUAL_6988
set_lvar_float_to_lvar_float 217@(40@,10f) = 199@
add_float_var_to_float_lvar 217@(40@,10f) += $x
set_lvar_float_to_lvar_float 227@(40@,10f) = 200@
add_float_var_to_float_lvar 227@(40@,10f) += $y
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 217@(40@,10f) {toZ} 227@(40@,10f)
goto @DUAL_7358

:DUAL_7068
set_lvar_float_to_lvar_float 50@ = 237@(40@,10f)
mult_float_lvar_by_float_lvar 50@ *= 204@
mult_float_lvar_by_float_lvar 50@ *= 249@
set_var_float_to_var_float $z = $distance
mult_float_var_by_float_var $z *= $distance
div_float_lvar_by_float_var 50@ /= $z
set_lvar_float_to_lvar_float 344@ = 217@(40@,10f)
sub_float_lvar_from_float_lvar 344@ -= 199@
set_lvar_float_to_lvar_float 345@ = 227@(40@,10f)
sub_float_lvar_from_float_lvar 345@ -= 200@
div_float_lvar_by_float_var 344@ /= $distance
div_float_lvar_by_float_var 345@ /= $distance
set_lvar_float_to_lvar_float 43@ = 344@
mult_float_lvar_by_float_lvar 43@ *= 50@
set_lvar_float_to_lvar_float 44@ = 345@
mult_float_lvar_by_float_lvar 44@ *= 50@
248@ = 32.0
if 
  43@ > 50000.0
goto_if_false @DUAL_7249
43@ = 50000.0

:DUAL_7249
if 
  -50000.0 > 43@
goto_if_false @DUAL_7280
43@ = -50000.0

:DUAL_7280
if 
  44@ > 50000.0
goto_if_false @DUAL_7311
44@ = 50000.0

:DUAL_7311
if 
  -50000.0 > 44@
goto_if_false @DUAL_7342
44@ = -50000.0

:DUAL_7342
add_float_lvar_to_float_lvar 201@ += 43@
add_float_lvar_to_float_lvar 202@ += 44@

:DUAL_7358
40@ += 1
goto @DUAL_6045

:DUAL_7372
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_8157
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_7562
if or
  301@ > 0.2
  301@ == 0.2
goto_if_false @DUAL_7555
$x = sin 203@
$y = cos 203@
$x *= -20000.0
$y *= 20000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
207@ += 50
if 
  207@ > 200
goto_if_false @DUAL_7525
207@ = 200

:DUAL_7525
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualThrust
sub_timed_val_from_float_lvar 301@ -=@ 0.2

:DUAL_7555
goto @DUAL_7594

:DUAL_7562
207@ -= 20
if 
  0 > 207@
goto_if_false @DUAL_7594
207@ = 0

:DUAL_7594
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7753
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @DUAL_7753
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 90.0
if 
  50@ > 360.0
goto_if_false @DUAL_7691
50@ -= 360.0

:DUAL_7691
$x = sin 50@
$y = cos 50@
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7753
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7912
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @DUAL_7912
set_lvar_float_to_lvar_float 50@ = 203@
50@ -= 90.0
if 
  0.0 > 50@
goto_if_false @DUAL_7850
50@ += 360.0

:DUAL_7850
$x = sin 50@
$y = cos 50@
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7912
set_lvar_float_to_var_float 346@ = $5565
346@ *= 40.0
set_lvar_float_to_var_float 347@ = $ship_velocity_x
347@ *= 40.0
sub_float_lvar_from_float_lvar 201@ -= 346@
sub_float_lvar_from_float_lvar 202@ -= 347@
div_float_lvar_by_float_lvar 201@ /= 204@
div_float_lvar_by_float_lvar 202@ /= 204@
mult_float_lvar_by_float_lvar 201@ *= 310@
mult_float_lvar_by_float_lvar 202@ *= 310@
add_float_lvar_to_float_var $5565 += 201@
add_float_lvar_to_float_var $ship_velocity_x += 202@
if or
  301@ > 1.0
  301@ == 1.0
goto_if_false @DUAL_8157
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DUAL_8157
if 
  is_int_var_greater_than_int_lvar $game_timer > 348@
goto_if_false @DUAL_8157
gosub @DUAL_15423
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualShoot
set_lvar_int_to_var_int 348@ = $game_timer
348@ += 250
sub_timed_val_from_float_lvar 301@ -=@ 1.0
if 
  300@ > 0
goto_if_false @DUAL_8157
300@ -= 1

:DUAL_8157
set_lvar_float_to_lvar_float 205@ = 199@
set_lvar_float_to_lvar_float 206@ = 200@
if 
  $5565 > 300.0
goto_if_false @DUAL_8204
$5565 = 300.0

:DUAL_8204
if 
  -300.0 > $5565
goto_if_false @DUAL_8235
$5565 = -300.0

:DUAL_8235
if 
  $ship_velocity_x > 300.0
goto_if_false @DUAL_8266
$ship_velocity_x = 300.0

:DUAL_8266
if 
  -300.0 > $ship_velocity_x
goto_if_false @DUAL_8297
$ship_velocity_x = -300.0

:DUAL_8297
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_var $x *= $5565
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_var $y *= $ship_velocity_x
add_float_var_to_float_lvar 199@ += $x
add_float_var_to_float_lvar 200@ += $y
40@ = 0

:DUAL_8352
if 
  3 > 40@
goto_if_false @DUAL_9202
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_8553
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_8577

:DUAL_8553
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_8577
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_8630
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_8630
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_8683
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_8683
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_8736
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_8736
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_8789
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_8789
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_8875
350@ += 1

:DUAL_8875
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_8961
352@ += 1

:DUAL_8961
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_9006
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_9188
353@ = 0

:DUAL_9032
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_9154
if 
  40@ == 0
goto_if_false @DUAL_9104
draw_sprite 1 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_9132

:DUAL_9104
draw_sprite 2 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_9132
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_9032

:DUAL_9154
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_9006

:DUAL_9188
40@ += 1
goto @DUAL_8352

:DUAL_9202
40@ = 0

:DUAL_9209
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_9398
set_var_float_to_lvar_float $x = 217@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 227@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_9352
draw_sprite 7 {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_9384

:DUAL_9352
draw_sprite 8 {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_9384
40@ += 1
goto @DUAL_9209

:DUAL_9398
40@ = 0

:DUAL_9405
if 
  20 > 40@
goto_if_false @DUAL_10100
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 250@(40@,20f) {toZ} 270@(40@,20f)
if or
  $distance > 600.0
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 250@(40@,20f) {rectangle2PositionY} 270@(40@,20f) {rectangle2SizeX} 18.0 {rectangle2SizeY} 18.0
goto_if_false @DUAL_9937
if 
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 250@(40@,20f) {rectangle2PositionY} 270@(40@,20f) {rectangle2SizeX} 18.0 {rectangle2SizeY} 18.0
goto_if_false @DUAL_9703
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_9703
if 
  10 > 40@
goto_if_false @DUAL_9635
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualPickupLight
300@ += 5
goto @DUAL_9662

:DUAL_9635
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualPickupDark
300@ -= 5

:DUAL_9662
301@ += 25.0
if 
  301@ > 100.0
goto_if_false @DUAL_9703
301@ = 100.0

:DUAL_9703
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9813
$x = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9782
$x *= -1.0

:DUAL_9782
$y = generate_random_float_in_range -700.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
goto @DUAL_9889

:DUAL_9813
$x = generate_random_float_in_range -700.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
$y = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9889
$y *= -1.0

:DUAL_9889
set_lvar_float_to_lvar_float 250@(40@,20f) = 199@
add_float_var_to_float_lvar 250@(40@,20f) += $x
set_lvar_float_to_lvar_float 270@(40@,20f) = 200@
add_float_var_to_float_lvar 270@(40@,20f) += $y

:DUAL_9937
set_var_float_to_lvar_float $x = 250@(40@,20f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 270@(40@,20f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  10 > 40@
goto_if_false @DUAL_10054
draw_sprite 8 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255
goto @DUAL_10086

:DUAL_10054
draw_sprite 7 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_10086
40@ += 1
goto @DUAL_9405

:DUAL_10100
40@ = 0

:DUAL_10107
if 
  10 > 40@
goto_if_false @DUAL_10410
if 
  290@(40@,10i) > 0
goto_if_false @DUAL_10396
set_var_float_to_lvar_float $x = 324@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 334@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  290@(40@,10i) == 1
goto_if_false @DUAL_10284
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) = 9
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualExplosionShort

:DUAL_10284
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) += 1
if 
  290@(40@,10i) > 12
goto_if_false @DUAL_10359
290@(40@,10i) = 0
goto @DUAL_10396

:DUAL_10359
draw_sprite 290@(40@,10i) {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_10396
40@ += 1
goto @DUAL_10107

:DUAL_10410
40@ = 0

:DUAL_10417
if 
  10 > 40@
goto_if_false @DUAL_10636
if 
  is_int_lvar_greater_than_int_var 314@(40@,10i) > $game_timer
goto_if_false @DUAL_10622
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_lvar $x *= 459@(40@,10f)
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_lvar $y *= 469@(40@,10f)
add_float_var_to_float_lvar 439@(40@,10f) += $x
add_float_var_to_float_lvar 449@(40@,10f) += $y
set_var_float_to_lvar_float $x = 439@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 449@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
set_var_float_to_lvar_float $heading = 203@
draw_sprite 14 {offsetLeft} $x {offsetTop} $y {width} 8.0 {height} 8.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_10622
40@ += 1
goto @DUAL_10417

:DUAL_10636
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_11067
draw_sprite_with_rotation 4 {offsetLeft} 320.0 {offsetTop} 224.0 {width} 248@ {height} 248@ {angle} 203@ {red} 150 {green} 150 {blue} 150 {alpha} 255
set_lvar_float_to_lvar_float 50@ = 302@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
draw_sprite 13 {offsetLeft} 50.0 {offsetTop} 350.0 {width} 14.0 {height} 104.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_sprite 15 {offsetLeft} 50.0 {offsetTop} $y {width} 10.0 {height} 302@ {r} 200 {g} 200 {b} 200 {a} 255
set_lvar_float_to_lvar_float 50@ = 301@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
draw_sprite 13 {offsetLeft} 70.0 {offsetTop} 350.0 {width} 14.0 {height} 104.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_sprite 16 {offsetLeft} 70.0 {offsetTop} $y {width} 10.0 {height} 301@ {r} 200 {g} 200 {b} 200 {a} 255
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 180.0
if 
  50@ > 360.0
goto_if_false @DUAL_10941
50@ -= 360.0

:DUAL_10941
$x = sin 50@
$y = cos 50@
$x *= -1.0
$x *= 24.0
$y *= 24.0
$x += 320.0
$y += 224.0
if 
  207@ > 0
goto_if_false @DUAL_11060
draw_sprite_with_rotation 5 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {angle} 203@ {red} 207@ {green} 207@ {blue} 207@ {alpha} 255

:DUAL_11060
goto @DUAL_11260

:DUAL_11067
41@ = 0

:DUAL_11074
if 
  10 > 41@
goto_if_false @DUAL_11170
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_11156
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_11156
41@ += 1
goto @DUAL_11074

:DUAL_11170
gosub @DUAL_15629
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualGameOver
display_text 320.0 {offsetTop} 100.0 {key} 'SPAC_01'
set_lvar_int_to_var_int 39@ = $game_timer
39@ += 1000
if 
  is_int_lvar_greater_than_int_lvar 39@ > 306@
goto_if_false @DUAL_11260
304@ = 1

:DUAL_11260
gosub @DUAL_15629
if 
  300@ > -1
goto_if_false @DUAL_11316
display_text_with_number 320.0 {offsetTop} 50.0 {key} 'SPAC_02' {num} 300@
goto @DUAL_11382

:DUAL_11316
set_lvar_int_to_lvar_int 39@ = 300@
39@ *= -1
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255
display_text_with_number 320.0 {offsetTop} 50.0 {key} 'SPAC_02' {num} 39@

:DUAL_11382
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_int_lvar_greater_than_int_var 305@ > $game_timer
goto_if_false @DUAL_11737
gosub @DUAL_15629
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11620
draw_window 62@ {leftTopY} 74@ {rightBottomX} 175.1144 {rightBottomY} 94.8235 {header} 'DUMMY' {zIndex} 0
set_text_wrapx 175.1144
goto @DUAL_11656

:DUAL_11620
draw_window 62@ {leftTopY} 74@ {rightBottomX} 160.1144 {rightBottomY} 94.8235 {header} 'DUMMY' {zIndex} 0
set_text_wrapx 160.1144

:DUAL_11656
set_text_centre False
set_text_font Font.Subtitles
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11708
set_text_scale 0.4 {heightScale} 1.8889
goto @DUAL_11720

:DUAL_11708
set_text_scale 0.5014 {heightScale} 1.8889

:DUAL_11720
display_text 63@ {offsetTop} 75@ {key} 'SPAC_11'

:DUAL_11737
if 
  304@ == 1
goto_if_false @DUAL_11870
if 
  is_int_lvar_greater_than_int_var 300@ > $5435[9]
goto_if_false @DUAL_11809
365@ = 10
366@ = 0
181@ = 1
goto @DUAL_11877
goto @DUAL_11870

:DUAL_11809
if 
  is_int_var_greater_than_int_lvar $played_dual_before[9] > 300@
goto_if_false @DUAL_11863
365@ = 10
366@ = 0
181@ = 0
goto @DUAL_11877
goto @DUAL_11870

:DUAL_11863
goto @DUAL_2903

:DUAL_11870
goto @DUAL_5667

:DUAL_11877
wait 0
$game_timer = get_game_timer 
if 
  181@ == 0
goto_if_false @DUAL_12165
40@ = 9

:DUAL_11911
if 
  40@ > -1
goto_if_false @DUAL_12158
if 
  is_int_var_greater_than_int_lvar $played_dual_before(40@,10i) > 300@
goto_if_false @DUAL_12137
if 
  40@ <> 9
goto_if_false @DUAL_12049
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $played_dual_before(41@,10i) = $played_dual_before(40@,10i)
set_var_text_label $5445(41@,10s) = $5445(40@,10s)
set_var_text_label $5465(41@,10s) = $5465(40@,10s)
set_var_text_label $5485(41@,10s) = $5485(40@,10s)

:DUAL_12049
set_var_int_to_lvar_int $played_dual_before(40@,10i) = 300@
set_var_text_label $5445(40@,10s) = 178@s
set_var_text_label $5465(40@,10s) = 178@s
set_var_text_label $5485(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12130
300@ = 0

:DUAL_12130
goto @DUAL_12144

:DUAL_12137
300@ = 0

:DUAL_12144
40@ -= 1
goto @DUAL_11911

:DUAL_12158
goto @DUAL_12419

:DUAL_12165
40@ = 9

:DUAL_12172
if 
  40@ > -1
goto_if_false @DUAL_12419
if 
  is_int_lvar_greater_than_int_var 300@ > $5435(40@,10i)
goto_if_false @DUAL_12398
if 
  40@ <> 9
goto_if_false @DUAL_12310
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $5435(41@,10i) = $5435(40@,10i)
set_var_text_label $5505(41@,10s) = $5505(40@,10s)
set_var_text_label $5525(41@,10s) = $5525(40@,10s)
set_var_text_label $5545(41@,10s) = $5545(40@,10s)

:DUAL_12310
set_var_int_to_lvar_int $5435(40@,10i) = 300@
set_var_text_label $5505(40@,10s) = 178@s
set_var_text_label $5525(40@,10s) = 178@s
set_var_text_label $5545(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12391
300@ = 0

:DUAL_12391
goto @DUAL_12405

:DUAL_12398
300@ = 0

:DUAL_12405
40@ -= 1
goto @DUAL_12172

:DUAL_12419
if 
  180@ > -1
goto_if_false @DUAL_13084
if 
  181@ == 0
goto_if_false @DUAL_12600
if 
  366@ == 0
goto_if_false @DUAL_12513
set_var_text_label $5445(180@,10s) = 106@(365@,37s)
set_var_text_label $5465(180@,10s) = 178@s
set_var_text_label $5485(180@,10s) = 178@s

:DUAL_12513
if 
  366@ == 1
goto_if_false @DUAL_12559
set_var_text_label $5465(180@,10s) = 106@(365@,37s)
set_var_text_label $5485(180@,10s) = 178@s

:DUAL_12559
if 
  366@ == 2
goto_if_false @DUAL_12593
set_var_text_label $5485(180@,10s) = 106@(365@,37s)

:DUAL_12593
goto @DUAL_12738

:DUAL_12600
if 
  366@ == 0
goto_if_false @DUAL_12658
set_var_text_label $5505(180@,10s) = 106@(365@,37s)
set_var_text_label $5525(180@,10s) = 178@s
set_var_text_label $5545(180@,10s) = 178@s

:DUAL_12658
if 
  366@ == 1
goto_if_false @DUAL_12704
set_var_text_label $5525(180@,10s) = 106@(365@,37s)
set_var_text_label $5545(180@,10s) = 178@s

:DUAL_12704
if 
  366@ == 2
goto_if_false @DUAL_12738
set_var_text_label $5545(180@,10s) = 106@(365@,37s)

:DUAL_12738
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 312@
goto_if_false @DUAL_12859
if 
  is_int_var_greater_than_int_lvar $game_timer > 104@
goto_if_false @DUAL_12852
if 
  36 > 365@
goto_if_false @DUAL_12829
365@ += 1
goto @DUAL_12836

:DUAL_12829
365@ = 0

:DUAL_12836
set_lvar_int_to_var_int 104@ = $game_timer
104@ += 250

:DUAL_12852
goto @DUAL_12875

:DUAL_12859
set_lvar_int_to_var_int 104@ = $game_timer
104@ -= 250

:DUAL_12875
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  312@ > 100
goto_if_false @DUAL_12980
if 
  is_int_var_greater_than_int_lvar $game_timer > 105@
goto_if_false @DUAL_12973
if 
  365@ > 0
goto_if_false @DUAL_12950
365@ -= 1
goto @DUAL_12957

:DUAL_12950
365@ = 36

:DUAL_12957
set_lvar_int_to_var_int 105@ = $game_timer
105@ += 250

:DUAL_12973
goto @DUAL_12996

:DUAL_12980
set_lvar_int_to_var_int 105@ = $game_timer
105@ -= 250

:DUAL_12996
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_13077
if 
  101@ == 0
goto_if_false @DUAL_13070
366@ += 1
101@ += 1
if 
  366@ == 3
goto_if_false @DUAL_13070
180@ = -1

:DUAL_13070
goto @DUAL_13084

:DUAL_13077
101@ = 0

:DUAL_13084
if 
  181@ == 0
goto_if_false @DUAL_13223
40@ = 0

:DUAL_13109
if 
  10 > 40@
goto_if_false @DUAL_13216
set_lvar_int_to_var_int 367@(40@,10i) = $played_dual_before(40@,10i)
367@(40@,10i) *= -1
set_lvar_text_label 377@(40@,10s) = $5445(40@,10s)
set_lvar_text_label 397@(40@,10s) = $5465(40@,10s)
set_lvar_text_label 417@(40@,10s) = $5485(40@,10s)
40@ += 1
goto @DUAL_13109

:DUAL_13216
goto @DUAL_13326

:DUAL_13223
40@ = 0

:DUAL_13230
if 
  10 > 40@
goto_if_false @DUAL_13326
set_lvar_int_to_var_int 367@(40@,10i) = $5435(40@,10i)
set_lvar_text_label 377@(40@,10s) = $5505(40@,10s)
set_lvar_text_label 397@(40@,10s) = $5525(40@,10s)
set_lvar_text_label 417@(40@,10s) = $5545(40@,10s)
40@ += 1
goto @DUAL_13230

:DUAL_13326
40@ = 0

:DUAL_13333
if 
  3 > 40@
goto_if_false @DUAL_14183
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_13534
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_13558

:DUAL_13534
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_13558
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_13611
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_13611
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_13664
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_13664
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_13717
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_13717
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_13770
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_13770
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_13856
350@ += 1

:DUAL_13856
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_13942
352@ += 1

:DUAL_13942
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_13987
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_14169
353@ = 0

:DUAL_14013
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_14135
if 
  40@ == 0
goto_if_false @DUAL_14085
draw_sprite 1 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_14113

:DUAL_14085
draw_sprite 2 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_14113
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_14013

:DUAL_14135
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_13987

:DUAL_14169
40@ += 1
goto @DUAL_13333

:DUAL_14183
gosub @DUAL_15629
if 
  181@ == 0
goto_if_false @DUAL_14235
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14235
set_text_font Font.Subtitles
display_text 182@ {offsetTop} 183@ {key} 'SPAC_06'
set_lvar_float_to_lvar_float 437@ = 184@
set_lvar_float_to_lvar_float 438@ = 185@
40@ = 0

:DUAL_14279
if 
  10 > 40@
goto_if_false @DUAL_15078
set_lvar_float_to_lvar_float 437@ = 184@
gosub @DUAL_15629
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14369
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14369
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14400
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14400
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14445
437@ += 8.0

:DUAL_14445
display_text 437@ {offsetTop} 438@ {key} 377@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14505
437@ -= 8.0

:DUAL_14505
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15629
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14577
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14577
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14608
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14608
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14653
437@ += 8.0

:DUAL_14653
display_text 437@ {offsetTop} 438@ {key} 397@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14713
437@ -= 8.0

:DUAL_14713
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15629
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14785
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14785
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14816
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14816
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14861
437@ += 8.0

:DUAL_14861
display_text 437@ {offsetTop} 438@ {key} 417@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14921
437@ -= 8.0

:DUAL_14921
set_lvar_float_to_lvar_float 437@ = 184@
add_float_lvar_to_float_lvar 437@ += 187@
gosub @DUAL_15629
set_text_centre False
set_text_right_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_15001
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_15001
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_15032
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_15032
display_text_with_number 437@ {offsetTop} 438@ {key} 'NUMBER' {num} 367@(40@,10i)
add_float_lvar_to_float_lvar 438@ += 188@
40@ += 1
goto @DUAL_14279

:DUAL_15078
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  180@ == -1
goto_if_false @DUAL_15346
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DUAL_15276
goto @DUAL_2903

:DUAL_15276
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_15332
if 
  101@ == 0
goto_if_false @DUAL_15325
101@ += 1
goto @DUAL_2903

:DUAL_15325
goto @DUAL_15339

:DUAL_15332
101@ = 0

:DUAL_15339
goto @DUAL_15416

:DUAL_15346
draw_window 62@ {leftTopY} 74@ {rightBottomX} 86@ {rightBottomY} 98@ {header} 'DUMMY' {zIndex} 0
gosub @DUAL_15629
set_text_centre False
set_text_wrapx 86@
set_text_font Font.Subtitles
set_text_scale 87@ {heightScale} 99@
display_text 63@ {offsetTop} 75@ {key} 'SPAC_13'

:DUAL_15416
goto @DUAL_11877

:DUAL_15423
40@ = 0

:DUAL_15430
if 
  10 > 40@
goto_if_false @DUAL_15627
if 
  is_int_var_greater_than_int_lvar $game_timer > 314@(40@,10i)
goto_if_false @DUAL_15613
set_lvar_float_to_lvar_float 50@ = 203@
$x = sin 50@
$y = cos 50@
set_lvar_float_to_lvar_float 439@(40@,10f) = 199@
set_lvar_float_to_lvar_float 449@(40@,10f) = 200@
$x *= -300.0
$y *= 300.0
set_lvar_float_to_var_float 459@(40@,10f) = $x
add_float_var_to_float_lvar 459@(40@,10f) += $5565
set_lvar_float_to_var_float 469@(40@,10f) = $y
add_float_var_to_float_lvar 469@(40@,10f) += $ship_velocity_x
set_lvar_int_to_var_int 314@(40@,10i) = $game_timer
314@(40@,10i) += 1600
return 

:DUAL_15613
40@ += 1
goto @DUAL_15430

:DUAL_15627
return 

:DUAL_15629
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 1.0 {heightScale} 3.0
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 180
set_text_font Font.Menu
return 

:DUAL_15701
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTrackStop
if 
  is_player_playing $player1
goto_if_false @DUAL_15811
if 
  locate_char_on_foot_3d $scplayer {x} $spaceX {y} $spaceY {z} $spaceZ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DUAL_15811
set_var_float_to_var_float $y = $spaceY
$y += 2.0
set_char_coordinates $scplayer {x} $spaceX {y} $y {z} $spaceZ

:DUAL_15811
shut_all_chars_up False
$onmission = 0
clear_this_print 'BUSY'
mission_has_finished 
return 

//-------------Mission 5---------------
// Originally: Video Game: Go Go Space Monkey

:SHTR
gosub @SHTR_67
if 
  has_deatharrest_been_executed 
goto_if_false @SHTR_27
gosub @SHTR_6888

:SHTR_27
do_fade 500 {direction} Fade.In

:SHTR_34
if 
  get_fading_status 
goto_if_false @SHTR_58
wait 0
goto @SHTR_34

:SHTR_58
gosub @SHTR_6908
terminate_this_script 

:SHTR_67
$onmission = 1
if 
  $flag_shtr_passed_1stime == 0
goto_if_false @SHTR_94
register_mission_given 

:SHTR_94
script_name 'SHTR'
wait 0
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
set_music_does_fade False
load_mission_text 'SHTR'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1806

:SHTR_167
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @SHTR_193
wait 0
goto @SHTR_167

:SHTR_193
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 25.0 {clearParticles} True
use_text_commands True
load_texture_dictionary 'LD_SHTR'
load_sprite 1 {spriteName} "SPLSH"
load_sprite 2 {spriteName} "BSTARS"
load_sprite 3 {spriteName} "FSTAR"
load_sprite 4 {spriteName} "HI_A"
load_sprite 5 {spriteName} "HI_B"
load_sprite 6 {spriteName} "HI_C"
load_sprite 7 {spriteName} "UN_A"
load_sprite 8 {spriteName} "UN_B"
load_sprite 9 {spriteName} "UN_C"
load_sprite 10 {spriteName} "SHIP"
load_sprite 11 {spriteName} "FIRE"
load_sprite 12 {spriteName} "UFO"
load_sprite 13 {spriteName} "KAMI"
load_sprite 14 {spriteName} "NMEF"
load_sprite 15 {spriteName} "EX1"
load_sprite 16 {spriteName} "EX2"
load_sprite 17 {spriteName} "EX3"
load_sprite 18 {spriteName} "EX4"
load_sprite 19 {spriteName} "CBARL"
load_sprite 20 {spriteName} "CBARM"
load_sprite 21 {spriteName} "CBARR"
load_sprite 22 {spriteName} "HBARL"
load_sprite 23 {spriteName} "HBARM"
load_sprite 24 {spriteName} "HBARR"
load_sprite 25 {spriteName} "TVCORN"
load_sprite 26 {spriteName} "TVL"
load_sprite 27 {spriteName} "TVR"
load_sprite 28 {spriteName} "PA"
load_sprite 29 {spriteName} "PM2"
load_sprite 30 {spriteName} "PM3"
load_sprite 31 {spriteName} "PS1"
load_sprite 32 {spriteName} "PS2"
load_sprite 33 {spriteName} "PS3"

:SHTR_582
gosub @SHTR_17567
gosub @SHTR_15915
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
TIMERB = 0

:SHTR_761
wait 0
set_var_float_to_var_float $shtr_layer_x = $shtr_fire_speed
$shtr_background_pos = 2
$shtr_origin = 1.0
gosub @SHTR_7107
$shtr_layer_scroll_speed_top = 1.0
gosub @SHTR_7350
set_var_float_to_var_float $shtr_fire_speed = $shtr_layer_x
do_fade 0 {direction} Fade.In
$unk_5566, $shtr_lstickx, $shtr_lsticky, $shtr_rstickx = get_position_of_analogue_sticks PadId.Pad1

:SHTR_844
if 
  $shtr_hi_score == 1
goto_if_false @SHTR_899
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lstickx == 0
goto_if_false @SHTR_899
$shtr_hi_score = 0

:SHTR_899
if 
  $shtr_time_diff_hit == 1
goto_if_false @SHTR_1135
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1135
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStart
$shtr_heat_bar = get_game_timer 
$shtr_help_end = get_game_timer 
$shtr_time_diff_hit = 0

:SHTR_1135
if 
  $shtr_time_diff_hit == 2
goto_if_false @SHTR_1353
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 5 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1353
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept
$shtr_help_end = get_game_timer 
$shtr_source_slot = 4
$shtr_time_diff_hit = 4

:SHTR_1353
if 
  $shtr_time_diff_hit == 3
goto_if_false @SHTR_1565
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1565
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoDecline
do_fade 0 {direction} Fade.Out
goto @SHTR_27

:SHTR_1565
if 
  $shtr_hi_score == 0
goto_if_false @SHTR_2027
if 
  $shtr_time_diff_hit == 1
goto_if_false @SHTR_1731
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lstickx
goto_if_false @SHTR_1666
$shtr_time_diff_hit = 3
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1666
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lstickx > 64
goto_if_false @SHTR_1731
$shtr_time_diff_hit = 2
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1731
if 
  $shtr_time_diff_hit == 2
goto_if_false @SHTR_1879
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lstickx
goto_if_false @SHTR_1814
$shtr_time_diff_hit = 1
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1814
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lstickx > 64
goto_if_false @SHTR_1879
$shtr_time_diff_hit = 3
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1879
if 
  $shtr_time_diff_hit == 3
goto_if_false @SHTR_2027
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lstickx
goto_if_false @SHTR_1962
$shtr_time_diff_hit = 2
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1962
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lstickx > 64
goto_if_false @SHTR_2027
$shtr_time_diff_hit = 1
$shtr_hi_score = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_2027
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_5956
$unk_5566, $shtr_lstickx, $shtr_lsticky, $shtr_rstickx = get_position_of_analogue_sticks PadId.Pad1
if 
  $shtr_button1 == 0
goto_if_false @SHTR_2150
$shtr_sprite = get_game_timer 
if 
  $shtr_front_end > 0
goto_if_false @SHTR_2150
$shtr_front_end -= 1
$shtr_button_pressed = 2.0
$shtr_range_start = 4.0
$shtr_player_alive = 5
$shtr_button1 = 2
$unk_5957 = 0

:SHTR_2150
if 
  $shtr_button1 == 1
goto_if_false @SHTR_2200
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_2200
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_2287
set_var_int_to_var_int $shtr_rsticky = $unk_5566
$shtr_rsticky /= 10
cset_var_float_to_var_int $shtr_temp =# $shtr_rsticky
add_float_var_to_float_var $shtr_tempF += $shtr_temp
set_var_int_to_var_int $shtr_rsticky = $shtr_lstickx
$shtr_rsticky /= 10
cset_var_float_to_var_int $shtr_temp =# $shtr_rsticky
add_float_var_to_float_var $shtr_plyr_x += $shtr_temp

:SHTR_2287
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_2420
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @SHTR_2339
$shtr_plyr_x -= 12.0

:SHTR_2339
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @SHTR_2366
$shtr_plyr_x += 12.0

:SHTR_2366
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @SHTR_2393
$shtr_tempF -= 12.0

:SHTR_2393
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @SHTR_2420
$shtr_tempF += 12.0

:SHTR_2420
if 
  80.0 > $shtr_tempF
goto_if_false @SHTR_2451
$shtr_tempF = 80.0

:SHTR_2451
if 
  $shtr_tempF > 560.0
goto_if_false @SHTR_2482
$shtr_tempF = 560.0

:SHTR_2482
if 
  80.0 > $shtr_plyr_x
goto_if_false @SHTR_2513
$shtr_plyr_x = 80.0

:SHTR_2513
if 
  $shtr_plyr_x > 368.0
goto_if_false @SHTR_2544
$shtr_plyr_x = 368.0

:SHTR_2544
if 
  $shtr_plyr_col_y == 1
goto_if_false @SHTR_2683
$shtr_reload_start = get_game_timer 
set_var_int_to_var_int $shtr_reload_end = $shtr_reload_start
sub_int_var_from_int_var $shtr_reload_end -= $shtr_heat_bar
if 
  $shtr_speed_pickup == 0
goto_if_false @SHTR_2651
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_2644
if 
  is_int_var_greater_than_int_var $shtr_reload_end > $shtr_pickup_y
goto_if_false @SHTR_2644
$shtr_plyr_col_y = 0

:SHTR_2644
goto @SHTR_2683

:SHTR_2651
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_int_var_greater_than_int_var $shtr_reload_end > $shtr_pickup_y
goto_if_false @SHTR_2683
$shtr_plyr_col_y = 0

:SHTR_2683
if 
  7 > $shtr_player_alive
goto_if_false @SHTR_2708
$shtr_player_alive = 7

:SHTR_2708
$shtr_player_alive -= 7
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_3210
if 
  1000 > $shtr_player_alive
goto_if_false @SHTR_3210
if 
  $shtr_plyr_col_y == 0
goto_if_false @SHTR_3210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_3210
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoPlayerFire
$shtr_sin_shot_angle = cos $shtr_projectile_size
set_var_float_to_var_float $shtr_cos_shot_angle = $shtr_layer_scroll_speed_bottom
mult_float_var_by_float_var $shtr_cos_shot_angle *= $shtr_sin_shot_angle
$shtr_shot_angle = sin $shtr_projectile_size
set_var_float_to_var_float $shtr_x_add = $shtr_layer_scroll_speed_bottom
mult_float_var_by_float_var $shtr_x_add *= $shtr_shot_angle
if 
  $shtr_current_projectile_fired($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_2949
set_var_float_to_var_float $5706($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5690($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5674($shtr_current_projectile,16f) = $5706($shtr_current_projectile,16f)
$5674($shtr_current_projectile,16f) += 16.0
$shtr_current_projectile_fired($shtr_current_projectile,16i) = 1

:SHTR_2949
if or
  $shtr_auto_pickup == 1
  $shtr_auto_pickup == 2
goto_if_false @SHTR_3061
if 
  $shtr_projectile_col_y($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_3061
set_var_float_to_var_float $5772($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5756($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5740($shtr_current_projectile,16f) = $5772($shtr_current_projectile,16f)
$5740($shtr_current_projectile,16f) += 16.0
$shtr_projectile_col_y($shtr_current_projectile,16i) = 1

:SHTR_3061
if 
  $shtr_auto_pickup == 2
goto_if_false @SHTR_3166
if 
  $5788($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_3166
set_var_float_to_var_float $5836($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5820($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5804($shtr_current_projectile,16f) = $5836($shtr_current_projectile,16f)
$5804($shtr_current_projectile,16f) += 16.0
$5788($shtr_current_projectile,16i) = 1

:SHTR_3166
$shtr_heat_bar = get_game_timer 
$shtr_current_projectile += 1
$shtr_plyr_col_y = 1
if 
  $shtr_current_projectile == 16
goto_if_false @SHTR_3210
$shtr_current_projectile = 0

:SHTR_3210
gosub @SHTR_9332
gosub @SHTR_10260
if 
  $shtr_pickup_counter == 0
goto_if_false @SHTR_4076
draw_sprite $shtr_pickup_collected {offsetLeft} $shtr_pickup_move_switch {offsetTop} $shtr_pickup_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $shtr_pickup_current == 0
goto_if_false @SHTR_3360
if and
  368.0 > $shtr_pickup_x
  $shtr_pickup_move_switch > 80.0
goto_if_false @SHTR_3351
$shtr_pickup_move_switch += -1.0
$shtr_pickup_x += 1.0
goto @SHTR_3360

:SHTR_3351
$shtr_pickup_current = generate_random_int_in_range 0 {max} 4

:SHTR_3360
if 
  $shtr_pickup_current == 1
goto_if_false @SHTR_3445
if and
  $shtr_pickup_move_switch > 80.0
  $shtr_pickup_x > 80.0
goto_if_false @SHTR_3436
$shtr_pickup_move_switch += -1.0
$shtr_pickup_x += -1.0
goto @SHTR_3445

:SHTR_3436
$shtr_pickup_current = generate_random_int_in_range 0 {max} 4

:SHTR_3445
if 
  $shtr_pickup_current == 2
goto_if_false @SHTR_3530
if and
  $shtr_pickup_x > 80.0
  560.0 > $shtr_pickup_move_switch
goto_if_false @SHTR_3521
$shtr_pickup_move_switch += 1.0
$shtr_pickup_x += -1.0
goto @SHTR_3530

:SHTR_3521
$shtr_pickup_current = generate_random_int_in_range 0 {max} 4

:SHTR_3530
if 
  $shtr_pickup_current == 3
goto_if_false @SHTR_3615
if and
  560.0 > $shtr_pickup_move_switch
  368.0 > $shtr_pickup_x
goto_if_false @SHTR_3606
$shtr_pickup_move_switch += 1.0
$shtr_pickup_x += 1.0
goto @SHTR_3615

:SHTR_3606
$shtr_pickup_current = generate_random_int_in_range 0 {max} 4

:SHTR_3615
if 
  do_2d_rectangles_collide $shtr_tempF {rectangle1PositionY} $shtr_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_pickup_move_switch {rectangle2PositionY} $shtr_pickup_x {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @SHTR_4076
if 
  6.5 > $shtr_range_start
goto_if_false @SHTR_3701
$shtr_button_pressed += 0.5
$shtr_range_start += 0.5

:SHTR_3701
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0
$shtr_pickup_current = 0
if 
  $shtr_pickup_collected == 28
goto_if_false @SHTR_3780
$shtr_speed_pickup = 1
$shtr_pickup_counter = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3780
if 
  $shtr_pickup_collected == 33
goto_if_false @SHTR_3839
$shtr_pickup_y = 50
$shtr_pickup_collected = 28
$shtr_pickup_counter = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3839
if 
  $shtr_pickup_collected == 30
goto_if_false @SHTR_3898
$shtr_auto_pickup = 2
$shtr_pickup_collected = 33
$shtr_pickup_counter = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3898
if 
  $shtr_pickup_collected == 32
goto_if_false @SHTR_3957
$shtr_pickup_y = 100
$shtr_pickup_collected = 30
$shtr_pickup_counter = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3957
if 
  $shtr_pickup_collected == 29
goto_if_false @SHTR_4016
$shtr_auto_pickup = 1
$shtr_pickup_collected = 32
$shtr_pickup_counter = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_4016
if 
  $shtr_pickup_collected == 31
goto_if_false @SHTR_4076
$shtr_pickup_y = 150
$shtr_pickup_collected = 29
$shtr_pickup_counter = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_4076
if 
  $shtr_range_end == 0
goto_if_false @SHTR_4190
if 
  TIMERB > 500
goto_if_false @SHTR_4190
if 
  $shtr_current_enemy[0] == 0
goto_if_false @SHTR_4190
$shtr_y_add = 0
if 
  60.0 > $shtr_gen_hi_y
goto_if_false @SHTR_4169
$shtr_gen_hi_y += 5.0

:SHTR_4169
gosub @SHTR_8148
TIMERB = 0
$shtr_range_end += 1

:SHTR_4190
if and
  $shtr_range_end > 0
  8 > $shtr_range_end
goto_if_false @SHTR_4230
set_var_int_to_var_int $shtr_y_add = $shtr_range_end
gosub @SHTR_7593

:SHTR_4230
if 
  $shtr_range_end == 8
goto_if_false @SHTR_4347
if and
  $shtr_current_enemy[0] == 0
  $shtr_current_enemy[1] == 0
  $shtr_current_enemy[2] == 0
  $shtr_current_enemy[3] == 0
goto_if_false @SHTR_4347
if and
  $shtr_current_enemy[4] == 0
  $shtr_current_enemy[5] == 0
  $shtr_current_enemy[6] == 0
  $shtr_current_enemy[7] == 0
goto_if_false @SHTR_4347
$shtr_amplitude = 0
$5875 = 0
$shtr_range_end = 0

:SHTR_4347
gosub @SHTR_8910
gosub @SHTR_7685
gosub @SHTR_9757
if 
  $shtr_button1 == 2
goto_if_false @SHTR_5128
if 
  $unk_5957 == 2
goto_if_false @SHTR_4773
$shtr_start_time = get_game_timer 
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_4482
draw_sprite 15 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4482
if and
  $shtr_end_time >= 100
  200 > $shtr_end_time
goto_if_false @SHTR_4540
draw_sprite 16 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4540
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_4599
draw_sprite 17 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4599
if and
  $shtr_end_time >= 300
  400 > $shtr_end_time
goto_if_false @SHTR_4658
draw_sprite 18 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4658
if 
  $shtr_end_time > 499
goto_if_false @SHTR_4766
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$shtr_button1 = 3
$unk_5957 = 0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_sprite = get_game_timer 

:SHTR_4766
goto @SHTR_5128

:SHTR_4773
$shtr_start_time = get_game_timer 
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_4851
draw_sprite 15 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4851
if and
  $shtr_end_time >= 100
  200 > $shtr_end_time
goto_if_false @SHTR_4909
draw_sprite 16 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4909
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_4968
draw_sprite 17 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4968
if and
  $shtr_end_time >= 300
  400 > $shtr_end_time
goto_if_false @SHTR_5027
draw_sprite 18 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_5027
if 
  $shtr_end_time > 499
goto_if_false @SHTR_5128
$shtr_sprite = get_game_timer 
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_button1 = 3

:SHTR_5128
if 
  $shtr_button1 == 3
goto_if_false @SHTR_5781
$shtr_start_time = get_game_timer 
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_5224
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5224
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_5283
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5283
if and
  $shtr_end_time >= 400
  500 > $shtr_end_time
goto_if_false @SHTR_5342
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5342
if and
  $shtr_end_time >= 600
  700 > $shtr_end_time
goto_if_false @SHTR_5401
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5401
if and
  $shtr_end_time >= 800
  900 > $shtr_end_time
goto_if_false @SHTR_5460
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5460
if and
  $shtr_end_time >= 1000
  1100 > $shtr_end_time
goto_if_false @SHTR_5519
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5519
if and
  $shtr_end_time >= 1200
  1300 > $shtr_end_time
goto_if_false @SHTR_5578
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5578
if and
  $shtr_end_time >= 1400
  1500 > $shtr_end_time
goto_if_false @SHTR_5637
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5637
if and
  $shtr_end_time >= 1600
  1700 > $shtr_end_time
goto_if_false @SHTR_5696
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5696
if and
  $shtr_end_time >= 1800
  1900 > $shtr_end_time
goto_if_false @SHTR_5755
draw_sprite 10 {offsetLeft} $shtr_tempF {offsetTop} $shtr_plyr_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5755
if 
  $shtr_end_time >= 2000
goto_if_false @SHTR_5781
$shtr_button1 = 1

:SHTR_5781
if 
  is_int_var_greater_than_int_var $shtr_lives > $shtr_score
goto_if_false @SHTR_5815
set_var_int_to_var_int $shtr_score = $shtr_lives
$ship_velocity_y = 1

:SHTR_5815
gosub @SHTR_7068
set_text_scale 0.6 {heightScale} 1.2
set_text_right_justify True
display_text_with_number 560.0 {offsetTop} 48.0 {key} 'SHTR_2B' {num} $shtr_front_end
gosub @SHTR_7068
set_text_centre False
set_text_justify True
set_text_scale 0.6 {heightScale} 1.2
display_text_with_number 80.0 {offsetTop} 48.0 {key} 'SHTR_2D' {num} $shtr_lives
gosub @SHTR_7068
set_text_scale 0.6 {heightScale} 1.2
display_text_with_number 320.0 {offsetTop} 48.0 {key} 'SHTR_2C' {num} $shtr_score

:SHTR_5956
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_6064
if 
  $shtr_button1 == 0
goto_if_false @SHTR_6064
if 
  $shtr_front_end == 0
goto_if_false @SHTR_6064
$shtr_time_diff_hit = 4
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoGameOver
$shtr_source_slot = 0

:SHTR_6064
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6372
if 
  $shtr_source_slot == 0
goto_if_false @SHTR_6152
gosub @SHTR_7068
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'SHTR_3B'
$shtr_sprite = get_game_timer 
$shtr_source_slot = 1

:SHTR_6152
if 
  $shtr_source_slot == 1
goto_if_false @SHTR_6257
gosub @SHTR_7068
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'SHTR_3B'
$shtr_start_time = get_game_timer 
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if 
  $shtr_end_time > 5000
goto_if_false @SHTR_6257
$shtr_source_slot = 2

:SHTR_6257
if 
  $shtr_source_slot == 2
goto_if_false @SHTR_6315
if 
  is_int_var_greater_than_int_var $shtr_hi_s[9] > $shtr_lives
goto_if_false @SHTR_6308
$shtr_source_slot = 4
goto @SHTR_6315

:SHTR_6308
gosub @SHTR_11218

:SHTR_6315
if 
  $shtr_source_slot == 3
goto_if_false @SHTR_6347
gosub @SHTR_11535
gosub @SHTR_12598

:SHTR_6347
if 
  $shtr_source_slot == 4
goto_if_false @SHTR_6372
gosub @SHTR_12598

:SHTR_6372
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6441
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $shtr_source_slot <> 1
goto_if_false @SHTR_6441
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoDecline
goto @SHTR_582

:SHTR_6441
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_6724
$shtr_help_diff = get_game_timer 
set_var_int_to_var_int $shtr_shot = $shtr_help_diff
sub_int_var_from_int_var $shtr_shot -= $shtr_help_end
if 
  10000 > $shtr_shot
goto_if_false @SHTR_6724
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 240.0 {rightBottomY} 50.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 240.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 15.0 {key} 'SH_NAV'

:SHTR_6724
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6881
if 
  $shtr_source_slot == 4
goto_if_false @SHTR_6881
$shtr_help_diff = get_game_timer 
set_var_int_to_var_int $shtr_shot = $shtr_help_diff
sub_int_var_from_int_var $shtr_shot -= $shtr_help_end
if 
  10000 > $shtr_shot
goto_if_false @SHTR_6881
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 200.0 {rightBottomY} 45.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 230.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 20.0 {key} 'SH_BCK'

:SHTR_6881
goto @SHTR_761

:SHTR_6888
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
return 

:SHTR_6908
clear_this_print 'BUSY'
remove_texture_dictionary 
clear_mission_audio MissionAudioSlot.Slot4
shut_all_chars_up False
set_music_does_fade True
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStop
if 
  is_player_playing $player1
goto_if_false @SHTR_7057
if 
  locate_char_on_foot_3d $scplayer {x} $shooter1X {y} $shooter1Y {z} $shooter1Z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SHTR_7043
set_var_float_to_var_float $y = $shooter1Y
$y += 2.0
set_char_coordinates $scplayer {x} $shooter1X {y} $y {z} $shooter1Z

:SHTR_7043
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True

:SHTR_7057
$onmission = 0
mission_has_finished 
return 

:SHTR_7068
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
return 

:SHTR_7107
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y -= 256.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 256.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 512.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_layer_x -=@ $shtr_origin
if 
  0.0 > $shtr_layer_x
goto_if_false @SHTR_7348
$shtr_layer_x += 256.0

:SHTR_7348
return 

:SHTR_7350
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y -= 256.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 256.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 512.0
draw_sprite $shtr_background_pos {offsetLeft} $shtr_enemy_col_y {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_layer_x -=@ $shtr_layer_scroll_speed_top
if 
  0.0 > $shtr_layer_x
goto_if_false @SHTR_7591
$shtr_layer_x += 256.0

:SHTR_7591
return 

:SHTR_7593
if 
  is_int_lvar_greater_than_int_var TIMERB > $shtr_respawn
goto_if_false @SHTR_7683
if 
  $shtr_current_enemy($shtr_y_add,16i) == 0
goto_if_false @SHTR_7683
set_var_float_to_var_float $shtr_random($shtr_y_add,16f) = $5908
set_var_float_to_var_float $5924($shtr_y_add,16f) = $5924[0]
$shtr_current_enemy($shtr_y_add,16i) = 1
TIMERB = 0
$shtr_range_end += 1

:SHTR_7683
return 

:SHTR_7685
$shtr_y_add = 0

:SHTR_7692
if 
  8 > $shtr_y_add
goto_if_false @SHTR_8146
if 
  $shtr_current_enemy($shtr_y_add,16i) == 2
goto_if_false @SHTR_8132
get_game_timer $5612($shtr_y_add,16i)
set_var_int_to_var_int $5628($shtr_y_add,16i) = $5612($shtr_y_add,16i)
sub_int_var_from_int_var $5628($shtr_y_add,16i) -= $shtr_time_diff($shtr_y_add,16i)
if and
  $5628($shtr_y_add,16i) >= 0
  100 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7846
draw_sprite 15 {offsetLeft} $shtr_random($shtr_y_add,16f) {offsetTop} $5892($shtr_y_add,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7846
if and
  $5628($shtr_y_add,16i) >= 100
  200 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7920
draw_sprite 16 {offsetLeft} $shtr_random($shtr_y_add,16f) {offsetTop} $5892($shtr_y_add,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7920
if and
  $5628($shtr_y_add,16i) >= 200
  300 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7995
draw_sprite 17 {offsetLeft} $shtr_random($shtr_y_add,16f) {offsetTop} $5892($shtr_y_add,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7995
if and
  $5628($shtr_y_add,16i) >= 300
  400 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_8070
draw_sprite 18 {offsetLeft} $shtr_random($shtr_y_add,16f) {offsetTop} $5892($shtr_y_add,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_8070
if 
  $5628($shtr_y_add,16i) > 499
goto_if_false @SHTR_8132
$shtr_random($shtr_y_add,16f) = 0.0
$5892($shtr_y_add,16f) = 0.0
$shtr_current_enemy($shtr_y_add,16i) = 0

:SHTR_8132
$shtr_y_add += 1
goto @SHTR_7692

:SHTR_8146
return 

:SHTR_8148
if 
  $shtr_current_enemy[0] == 0
goto_if_false @SHTR_8908
if 
  $5875 == 0
goto_if_false @SHTR_8908
$5908 = generate_random_float_in_range 640.0 {max} 720.0
set_var_float_to_var_float $shtr_random[0] = $5908
$shtr_sin_multiplier = generate_random_float_in_range 240.0 {max} 640.0
$shtr_initial_y = generate_random_float_in_range 80.0 {max} 368.0
set_var_float_to_var_float $shtr_gen_y = $shtr_initial_y
sub_float_var_from_float_var $shtr_gen_y -= $shtr_gen_hi_y
if 
  80.0 > $shtr_gen_y
goto_if_false @SHTR_8282
add_float_var_to_float_var $shtr_initial_y += $shtr_gen_hi_y

:SHTR_8282
set_var_float_to_var_float $shtr_gen_lo_y = $shtr_initial_y
add_float_var_to_float_var $shtr_gen_lo_y += $shtr_gen_hi_y
if 
  80.0 > $shtr_gen_lo_y
goto_if_false @SHTR_8327
sub_float_var_from_float_var $shtr_initial_y -= $shtr_gen_hi_y

:SHTR_8327
$5924[0] = generate_random_float_in_range $shtr_button_pressed {max} $shtr_range_start
if and
  $5924[0] >= 1.0
  1.5 > $5924[0]
goto_if_false @SHTR_8377
$shtr_respawn = 500

:SHTR_8377
if and
  $5924[0] >= 1.5
  2.0 > $5924[0]
goto_if_false @SHTR_8416
$shtr_respawn = 475

:SHTR_8416
if and
  $5924[0] >= 2.0
  2.5 > $5924[0]
goto_if_false @SHTR_8455
$shtr_respawn = 450

:SHTR_8455
if and
  $5924[0] >= 2.5
  3.0 > $5924[0]
goto_if_false @SHTR_8494
$shtr_respawn = 425

:SHTR_8494
if and
  $5924[0] >= 3.0
  3.5 > $5924[0]
goto_if_false @SHTR_8533
$shtr_respawn = 400

:SHTR_8533
if and
  $5924[0] >= 3.5
  4.0 > $5924[0]
goto_if_false @SHTR_8572
$shtr_respawn = 375

:SHTR_8572
if and
  $5924[0] >= 4.0
  4.5 > $5924[0]
goto_if_false @SHTR_8611
$shtr_respawn = 350

:SHTR_8611
if and
  $5924[0] >= 4.5
  5.0 > $5924[0]
goto_if_false @SHTR_8650
$shtr_respawn = 325

:SHTR_8650
if and
  $5924[0] >= 5.0
  5.5 > $5924[0]
goto_if_false @SHTR_8689
$shtr_respawn = 300

:SHTR_8689
if and
  $5924[0] >= 5.5
  6.0 > $5924[0]
goto_if_false @SHTR_8728
$shtr_respawn = 275

:SHTR_8728
if and
  $5924[0] >= 6.0
  6.5 > $5924[0]
goto_if_false @SHTR_8767
$shtr_respawn = 250

:SHTR_8767
if and
  $5924[0] >= 6.5
  7.0 > $5924[0]
goto_if_false @SHTR_8806
$shtr_respawn = 225

:SHTR_8806
if and
  $5924[0] >= 7.0
  7.5 > $5924[0]
goto_if_false @SHTR_8845
$shtr_respawn = 200

:SHTR_8845
if and
  $5924[0] >= 7.5
  8.0 >= $5924[0]
goto_if_false @SHTR_8884
$shtr_respawn = 175

:SHTR_8884
$shtr_multi_pickup = generate_random_int_in_range 100 {max} 1500
$shtr_current_enemy[0] = 1
$5875 = 1

:SHTR_8908
return 

:SHTR_8910
$shtr_y_add = 0

:SHTR_8917
if 
  8 > $shtr_y_add
goto_if_false @SHTR_9330
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_9316
draw_sprite 12 {offsetLeft} $shtr_random($shtr_y_add,16f) {offsetTop} $5892($shtr_y_add,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_random($shtr_y_add,16f) -=@ $5924($shtr_y_add,16f)
set_var_float_to_var_float $5940 = $shtr_random($shtr_y_add,16f)
div_float_var_by_float_var $5940 /= $shtr_sin_multiplier
set_var_float_to_var_float $shtr_sin_cycle_range = $5940
$shtr_sin_cycle_range *= 360.0
$shtr_sin_degree_input = sin $shtr_sin_cycle_range
set_var_float_to_var_float $shtr_sin_degree_output = $shtr_sin_degree_input
mult_float_var_by_float_var $shtr_sin_degree_output *= $shtr_gen_hi_y
set_var_float_to_var_float $5892($shtr_y_add,16f) = $shtr_sin_degree_output
add_float_var_to_float_var $5892($shtr_y_add,16f) += $shtr_initial_y
if 
  0.0 > $shtr_random($shtr_y_add,16f)
goto_if_false @SHTR_9316
$shtr_random($shtr_y_add,16f) = 0.0
$5892($shtr_y_add,16f) = 0.0
if 
  $shtr_lives > 24
goto_if_false @SHTR_9305
if 
  is_int_var_equal_to_int_var $shtr_lives == $shtr_score
goto_if_false @SHTR_9298
if and
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[0]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[1]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[2]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[3]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[4]
goto_if_false @SHTR_9298
if and
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[5]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[6]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[7]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[8]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[9]
goto_if_false @SHTR_9298
$shtr_score -= 25

:SHTR_9298
$shtr_lives -= 25

:SHTR_9305
$shtr_current_enemy($shtr_y_add,16i) = 0

:SHTR_9316
$shtr_y_add += 1
goto @SHTR_8917

:SHTR_9330
return 

:SHTR_9332
$shtr_respawn_time = 1

:SHTR_9339
if 
  16 > $shtr_respawn_time
goto_if_false @SHTR_9755
if 
  $shtr_current_projectile_fired($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9477
draw_sprite 11 {offsetLeft} $5674($shtr_respawn_time,16f) {offsetTop} $5690($shtr_respawn_time,16f) {width} $5852 {height} $5852 {r} 150 {g} 150 {b} 150 {a} 255
add_timed_float_var_to_float_var $5674($shtr_respawn_time,16f) +=@ $shtr_layer_scroll_speed_bottom
if 
  $5674($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9477
$5690($shtr_respawn_time,16f) = 0.0
$shtr_current_projectile_fired($shtr_respawn_time,16i) = 0

:SHTR_9477
if 
  $shtr_projectile_col_y($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9609
draw_sprite 11 {offsetLeft} $5740($shtr_respawn_time,16f) {offsetTop} $5756($shtr_respawn_time,16f) {width} $5852 {height} $5852 {r} 150 {g} 150 {b} 150 {a} 255
add_float_var_to_float_var $5740($shtr_respawn_time,16f) += $shtr_cos_shot_angle
sub_float_var_from_float_var $5756($shtr_respawn_time,16f) -= $shtr_x_add
if 
  $5740($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9609
$5756($shtr_respawn_time,16f) = 0.0
$shtr_projectile_col_y($shtr_respawn_time,16i) = 0

:SHTR_9609
if 
  $5788($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9741
draw_sprite 11 {offsetLeft} $5804($shtr_respawn_time,16f) {offsetTop} $5820($shtr_respawn_time,16f) {width} $5852 {height} $5852 {r} 150 {g} 150 {b} 150 {a} 255
add_float_var_to_float_var $5804($shtr_respawn_time,16f) += $shtr_cos_shot_angle
add_float_var_to_float_var $5820($shtr_respawn_time,16f) += $shtr_x_add
if 
  $5804($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9741
$5820($shtr_respawn_time,16f) = 0.0
$5788($shtr_respawn_time,16i) = 0

:SHTR_9741
$shtr_respawn_time += 1
goto @SHTR_9339

:SHTR_9755
return 

:SHTR_9757
$shtr_y_add = 0

:SHTR_9764
if 
  8 > $shtr_y_add
goto_if_false @SHTR_10258
if 
  $shtr_random($shtr_y_add,16f) > 320.0
goto_if_false @SHTR_9961
if 
  $5988 == 0
goto_if_false @SHTR_9961
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_9961
if 
  $5980($shtr_y_add,8i) == 0
goto_if_false @SHTR_9961
set_var_float_to_var_float $shtr_enemy_shot_speed($shtr_y_add,8f) = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $5972($shtr_y_add,8f) = $5892($shtr_y_add,16f)
$5980($shtr_y_add,8i) = 1
$5988 += 1
set_var_float_to_var_float $unk_5962 = $5924($shtr_y_add,16f)
$unk_5962 *= 3.0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoEnemyFire

:SHTR_9961
if 
  $5988 == 1
goto_if_false @SHTR_10244
if 
  $5980($shtr_y_add,8i) == 1
goto_if_false @SHTR_10244
if 
  $shtr_button1 == 1
goto_if_false @SHTR_10125
if 
  do_2d_rectangles_collide $shtr_tempF {rectangle1PositionY} $shtr_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_enemy_shot_speed($shtr_y_add,8f) {rectangle2PositionY} $5972($shtr_y_add,8f) {rectangle2SizeX} 8.0 {rectangle2SizeY} 8.0
goto_if_false @SHTR_10125
$5980($shtr_y_add,8i) = 0
$shtr_enemy_shot_speed($shtr_y_add,8f) = 0.0
$5972($shtr_y_add,8f) = 0.0
$5988 = 0
$shtr_button1 = 0

:SHTR_10125
draw_sprite 14 {offsetLeft} $shtr_enemy_shot_speed($shtr_y_add,8f) {offsetTop} $5972($shtr_y_add,8f) {width} $5852 {height} $5852 {r} 150 {g} 150 {b} 150 {a} 255
sub_float_var_from_float_var $shtr_enemy_shot_speed($shtr_y_add,8f) -= $unk_5962
if 
  0.0 > $shtr_enemy_shot_speed($shtr_y_add,8f)
goto_if_false @SHTR_10244
$5980($shtr_y_add,8i) = 0
$shtr_enemy_shot_speed($shtr_y_add,8f) = 0.0
$5972($shtr_y_add,8f) = 0.0
$5988 = 0

:SHTR_10244
$shtr_y_add += 1
goto @SHTR_9764

:SHTR_10258
return 

:SHTR_10260
$shtr_y_add = 0

:SHTR_10267
if 
  8 > $shtr_y_add
goto_if_false @SHTR_11216
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_11066
$shtr_respawn_time = 1

:SHTR_10314
if 
  16 > $shtr_respawn_time
goto_if_false @SHTR_11066
if 
  do_2d_rectangles_collide $5674($shtr_respawn_time,16f) {rectangle1PositionY} $5690($shtr_respawn_time,16f) {rectangle1SizeX} $5722 {rectangle1SizeY} $shtr_projectile_col_x {rectangle2PositionX} $shtr_random($shtr_y_add,16f) {rectangle2PositionY} $5892($shtr_y_add,16f) {rectangle2SizeX} $shtr_reload_diff {rectangle2SizeY} $shtr_enemy_col_x
goto_if_false @SHTR_10572
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$shtr_current_projectile_fired($shtr_respawn_time,16i) = 0
$5674($shtr_respawn_time,16f) = 0.0
$5690($shtr_respawn_time,16f) = 0.0
get_game_timer $shtr_time_diff($shtr_y_add,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_10572
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_10552
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_10572

:SHTR_10552
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_10572
if 
  do_2d_rectangles_collide $5740($shtr_respawn_time,16f) {rectangle1PositionY} $5756($shtr_respawn_time,16f) {rectangle1SizeX} $5722 {rectangle1SizeY} $shtr_projectile_col_x {rectangle2PositionX} $shtr_random($shtr_y_add,16f) {rectangle2PositionY} $5892($shtr_y_add,16f) {rectangle2SizeX} $shtr_reload_diff {rectangle2SizeY} $shtr_enemy_col_x
goto_if_false @SHTR_10812
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$shtr_projectile_col_y($shtr_respawn_time,16i) = 0
$5740($shtr_respawn_time,16f) = 0.0
$5756($shtr_respawn_time,16f) = 0.0
get_game_timer $shtr_time_diff($shtr_y_add,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_10812
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_10792
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_10812

:SHTR_10792
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_10812
if 
  do_2d_rectangles_collide $5804($shtr_respawn_time,16f) {rectangle1PositionY} $5820($shtr_respawn_time,16f) {rectangle1SizeX} $5722 {rectangle1SizeY} $shtr_projectile_col_x {rectangle2PositionX} $shtr_random($shtr_y_add,16f) {rectangle2PositionY} $5892($shtr_y_add,16f) {rectangle2SizeX} $shtr_reload_diff {rectangle2SizeY} $shtr_enemy_col_x
goto_if_false @SHTR_11052
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$5788($shtr_respawn_time,16i) = 0
$5804($shtr_respawn_time,16f) = 0.0
$5820($shtr_respawn_time,16f) = 0.0
get_game_timer $shtr_time_diff($shtr_y_add,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_11052
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_11032
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_11052

:SHTR_11032
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_11052
$shtr_respawn_time += 1
goto @SHTR_10314

:SHTR_11066
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_11202
if 
  $shtr_button1 == 1
goto_if_false @SHTR_11202
if 
  do_2d_rectangles_collide $shtr_tempF {rectangle1PositionY} $shtr_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_random($shtr_y_add,16f) {rectangle2PositionY} $5892($shtr_y_add,16f) {rectangle2SizeX} $shtr_reload_diff {rectangle2SizeY} $shtr_enemy_col_x
goto_if_false @SHTR_11202
$shtr_current_enemy($shtr_y_add,16i) = 2
get_game_timer $shtr_time_diff($shtr_y_add,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_button1 = 0

:SHTR_11202
$shtr_y_add += 1
goto @SHTR_10267

:SHTR_11216
return 

:SHTR_11218
$6150 = 9
$shtr_ranking = 0
$shtr_score_update = 1

:SHTR_11239
if and
  $6150 >= 0
  $shtr_score_update == 1
goto_if_false @SHTR_11336
if 
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s($6150,10i)
goto_if_false @SHTR_11322
$6150 -= 1
$shtr_ranking = 1
$shtr_source_slot = 3
$shtr_press = 1
goto @SHTR_11329

:SHTR_11322
$shtr_score_update = 0

:SHTR_11329
goto @SHTR_11239

:SHTR_11336
if 
  $shtr_ranking == 1
goto_if_false @SHTR_11533
$6150 += 1
$shtr_score_check = 9
$shtr_destination_slot = 8

:SHTR_11375
if 
  is_int_var_greater_or_equal_to_int_var $shtr_destination_slot >= $6150
goto_if_false @SHTR_11495
set_var_text_label $shtr_hi_1($shtr_score_check,10s) = $shtr_hi_1($shtr_destination_slot,10s)
set_var_text_label $shtr_hi_2($shtr_score_check,10s) = $shtr_hi_2($shtr_destination_slot,10s)
set_var_text_label $shtr_hi_3($shtr_score_check,10s) = $shtr_hi_3($shtr_destination_slot,10s)
set_var_int_to_var_int $shtr_hi_l($shtr_score_check,10i) = $shtr_hi_l($shtr_destination_slot,10i)
set_var_int_to_var_int $shtr_hi_s($shtr_score_check,10i) = $shtr_hi_s($shtr_destination_slot,10i)
$shtr_score_check -= 1
$shtr_destination_slot -= 1
goto @SHTR_11375

:SHTR_11495
set_var_int_to_var_int $shtr_hi_s($6150,10i) = $shtr_lives
set_var_int_to_var_int $shtr_hi_l($6150,10i) = $shtr_on_table
$shtr_level = 0
$6066 = 10

:SHTR_11533
return 

:SHTR_11535
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_11624
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @SHTR_11624
$shtr_chars = 0

:SHTR_11624
if 
  $shtr_level == 0
goto_if_false @SHTR_11964
set_var_text_label $shtr_hi_1($6150,10s) = $shtr_help_start($6066,37s)
set_var_text_label $shtr_hi_2($6150,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($6150,10s) = s$shtr_help_start[10]
if 
  $shtr_chars == 0
goto_if_false @SHTR_11964
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_11803
if 
  36 > $6066
goto_if_false @SHTR_11769
$6066 += 1
goto @SHTR_11776

:SHTR_11769
$6066 = 0

:SHTR_11776
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_11803
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_11906
if 
  $6066 > 0
goto_if_false @SHTR_11872
$6066 -= 1
goto @SHTR_11879

:SHTR_11872
$6066 = 36

:SHTR_11879
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_11906
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_11964
$6066 = 10
$shtr_level = 1
$shtr_chars = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_11964
if 
  $shtr_level == 1
goto_if_false @SHTR_12280
set_var_text_label $shtr_hi_2($6150,10s) = $shtr_help_start($6066,37s)
if 
  $shtr_chars == 0
goto_if_false @SHTR_12280
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_12119
if 
  36 > $6066
goto_if_false @SHTR_12085
$6066 += 1
goto @SHTR_12092

:SHTR_12085
$6066 = 0

:SHTR_12092
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_12119
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12222
if 
  $6066 > 0
goto_if_false @SHTR_12188
$6066 -= 1
goto @SHTR_12195

:SHTR_12188
$6066 = 36

:SHTR_12195
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_12222
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_12280
$6066 = 10
$shtr_level = 2
$shtr_chars = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_12280
if 
  $shtr_level == 2
goto_if_false @SHTR_12596
set_var_text_label $shtr_hi_3($6150,10s) = $shtr_help_start($6066,37s)
if 
  $shtr_chars == 0
goto_if_false @SHTR_12596
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_12435
if 
  36 > $6066
goto_if_false @SHTR_12401
$6066 += 1
goto @SHTR_12408

:SHTR_12401
$6066 = 0

:SHTR_12408
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_12435
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12538
if 
  $6066 > 0
goto_if_false @SHTR_12504
$6066 -= 1
goto @SHTR_12511

:SHTR_12504
$6066 = 36

:SHTR_12511
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_chars = 1

:SHTR_12538
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_12596
$shtr_level = 3
$shtr_chars = 1
$shtr_source_slot = 4
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_12596
return 

:SHTR_12598
$shtr_draw_highlight = 0

:SHTR_12605
if 
  10 > $shtr_draw_highlight
goto_if_false @SHTR_12770
gosub @SHTR_7068
display_text $shtr_hi_loop($shtr_draw_highlight,10f) {offsetTop} $6110($shtr_draw_highlight,10f) {key} $shtr_hi_1($shtr_draw_highlight,10s)
gosub @SHTR_7068
display_text $6080($shtr_draw_highlight,10f) {offsetTop} $6120($shtr_draw_highlight,10f) {key} $shtr_hi_2($shtr_draw_highlight,10s)
gosub @SHTR_7068
display_text $6090($shtr_draw_highlight,10f) {offsetTop} $6130($shtr_draw_highlight,10f) {key} $shtr_hi_3($shtr_draw_highlight,10s)
gosub @SHTR_7068
set_text_right_justify True
display_text_with_number $6100($shtr_draw_highlight,10f) {offsetTop} $6140($shtr_draw_highlight,10f) {key} 'SHTR_LV' {num} $shtr_hi_s($shtr_draw_highlight,10i)
$shtr_draw_highlight += 1
goto @SHTR_12605

:SHTR_12770
gosub @SHTR_7068
display_text 320.0 {offsetTop} 64.0 {key} 'SHTR_2F'
if and
  $shtr_front_end == 0
  $shtr_press == 1
goto_if_false @SHTR_13205
if 
  $shtr_level == 0
goto_if_false @SHTR_12890
gosub @SHTR_7068
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $shtr_hi_loop($6150,10f) {offsetTop} $6110($6150,10f) {key} $shtr_hi_1($6150,10s)
goto @SHTR_12932

:SHTR_12890
gosub @SHTR_7068
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $shtr_hi_loop($6150,10f) {offsetTop} $6110($6150,10f) {key} $shtr_hi_1($6150,10s)

:SHTR_12932
if 
  $shtr_level == 1
goto_if_false @SHTR_12999
gosub @SHTR_7068
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $6080($6150,10f) {offsetTop} $6120($6150,10f) {key} $shtr_hi_2($6150,10s)
goto @SHTR_13041

:SHTR_12999
gosub @SHTR_7068
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $6080($6150,10f) {offsetTop} $6120($6150,10f) {key} $shtr_hi_2($6150,10s)

:SHTR_13041
if 
  $shtr_level == 2
goto_if_false @SHTR_13108
gosub @SHTR_7068
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $6090($6150,10f) {offsetTop} $6130($6150,10f) {key} $shtr_hi_3($6150,10s)
goto @SHTR_13150

:SHTR_13108
gosub @SHTR_7068
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $6090($6150,10f) {offsetTop} $6130($6150,10f) {key} $shtr_hi_3($6150,10s)

:SHTR_13150
gosub @SHTR_7068
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_text_right_justify True
display_text_with_number $6100($6150,10f) {offsetTop} $6140($6150,10f) {key} 'SHTR_LV' {num} $shtr_hi_s($6150,10i)

:SHTR_13205
return 

:SHTR_13207
$shtr_current = generate_random_int_in_range 1 {max} 30
if 
  $shtr_current == 1
goto_if_false @SHTR_13309
if 
  $shtr_used == 0
goto_if_false @SHTR_13302
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[23]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[15]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[36]
$shtr_used = 1
goto @SHTR_13309

:SHTR_13302
goto @SHTR_13207

:SHTR_13309
if 
  $shtr_current == 2
goto_if_false @SHTR_13402
if 
  $6163 == 0
goto_if_false @SHTR_13395
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[34]
$6163 = 1
goto @SHTR_13402

:SHTR_13395
goto @SHTR_13207

:SHTR_13402
if 
  $shtr_current == 3
goto_if_false @SHTR_13495
if 
  $6164 == 0
goto_if_false @SHTR_13488
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[21]
$6164 = 1
goto @SHTR_13495

:SHTR_13488
goto @SHTR_13207

:SHTR_13495
if 
  $shtr_current == 4
goto_if_false @SHTR_13588
if 
  $6165 == 0
goto_if_false @SHTR_13581
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[12]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[27]
$6165 = 1
goto @SHTR_13588

:SHTR_13581
goto @SHTR_13207

:SHTR_13588
if 
  $shtr_current == 5
goto_if_false @SHTR_13681
if 
  $6166 == 0
goto_if_false @SHTR_13674
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[25]
$6166 = 1
goto @SHTR_13681

:SHTR_13674
goto @SHTR_13207

:SHTR_13681
if 
  $shtr_current == 6
goto_if_false @SHTR_13774
if 
  $6167 == 0
goto_if_false @SHTR_13767
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[31]
$6167 = 1
goto @SHTR_13774

:SHTR_13767
goto @SHTR_13207

:SHTR_13774
if 
  $shtr_current == 7
goto_if_false @SHTR_13867
if 
  $6168 == 0
goto_if_false @SHTR_13860
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[24]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[13]
$6168 = 1
goto @SHTR_13867

:SHTR_13860
goto @SHTR_13207

:SHTR_13867
if 
  $shtr_current == 8
goto_if_false @SHTR_13960
if 
  $6169 == 0
goto_if_false @SHTR_13953
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[21]
$6169 = 1
goto @SHTR_13960

:SHTR_13953
goto @SHTR_13207

:SHTR_13960
if 
  $shtr_current == 9
goto_if_false @SHTR_14053
if 
  $6170 == 0
goto_if_false @SHTR_14046
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[29]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[14]
$6170 = 1
goto @SHTR_14053

:SHTR_14046
goto @SHTR_13207

:SHTR_14053
if 
  $shtr_current == 10
goto_if_false @SHTR_14146
if 
  $6171 == 0
goto_if_false @SHTR_14139
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[30]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[13]
$6171 = 1
goto @SHTR_14146

:SHTR_14139
goto @SHTR_13207

:SHTR_14146
if 
  $shtr_current == 11
goto_if_false @SHTR_14239
if 
  $6172 == 0
goto_if_false @SHTR_14232
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[11]
$6172 = 1
goto @SHTR_14239

:SHTR_14232
goto @SHTR_13207

:SHTR_14239
if 
  $shtr_current == 12
goto_if_false @SHTR_14332
if 
  $6173 == 0
goto_if_false @SHTR_14325
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6173 = 1
goto @SHTR_14332

:SHTR_14325
goto @SHTR_13207

:SHTR_14332
if 
  $shtr_current == 13
goto_if_false @SHTR_14425
if 
  $6174 == 0
goto_if_false @SHTR_14418
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6174 = 1
goto @SHTR_14425

:SHTR_14418
goto @SHTR_13207

:SHTR_14425
if 
  $shtr_current == 14
goto_if_false @SHTR_14518
if 
  $6175 == 0
goto_if_false @SHTR_14511
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[34]
$6175 = 1
goto @SHTR_14518

:SHTR_14511
goto @SHTR_13207

:SHTR_14518
if 
  $shtr_current == 15
goto_if_false @SHTR_14611
if 
  $6176 == 0
goto_if_false @SHTR_14604
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6176 = 1
goto @SHTR_14611

:SHTR_14604
goto @SHTR_13207

:SHTR_14611
if 
  $shtr_current == 16
goto_if_false @SHTR_14704
if 
  $6177 == 0
goto_if_false @SHTR_14697
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6177 = 1
goto @SHTR_14704

:SHTR_14697
goto @SHTR_13207

:SHTR_14704
if 
  $shtr_current == 17
goto_if_false @SHTR_14797
if 
  $6178 == 0
goto_if_false @SHTR_14790
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[23]
$6178 = 1
goto @SHTR_14797

:SHTR_14790
goto @SHTR_13207

:SHTR_14797
if 
  $shtr_current == 18
goto_if_false @SHTR_14890
if 
  $6179 == 0
goto_if_false @SHTR_14883
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[10]
$6179 = 1
goto @SHTR_14890

:SHTR_14883
goto @SHTR_13207

:SHTR_14890
if 
  $shtr_current == 19
goto_if_false @SHTR_14983
if 
  $6180 == 0
goto_if_false @SHTR_14976
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[33]
$6180 = 1
goto @SHTR_14983

:SHTR_14976
goto @SHTR_13207

:SHTR_14983
if 
  $shtr_current == 20
goto_if_false @SHTR_15076
if 
  $6181 == 0
goto_if_false @SHTR_15069
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[21]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[24]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[30]
$6181 = 1
goto @SHTR_15076

:SHTR_15069
goto @SHTR_13207

:SHTR_15076
if 
  $shtr_current == 21
goto_if_false @SHTR_15169
if 
  $6182 == 0
goto_if_false @SHTR_15162
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[23]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[24]
$6182 = 1
goto @SHTR_15169

:SHTR_15162
goto @SHTR_13207

:SHTR_15169
if 
  $shtr_current == 22
goto_if_false @SHTR_15262
if 
  $6183 == 0
goto_if_false @SHTR_15255
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[34]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[29]
$6183 = 1
goto @SHTR_15262

:SHTR_15255
goto @SHTR_13207

:SHTR_15262
if 
  $shtr_current == 23
goto_if_false @SHTR_15355
if 
  $6184 == 0
goto_if_false @SHTR_15348
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[15]
$6184 = 1
goto @SHTR_15355

:SHTR_15348
goto @SHTR_13207

:SHTR_15355
if 
  $shtr_current == 24
goto_if_false @SHTR_15448
if 
  $6185 == 0
goto_if_false @SHTR_15441
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[17]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6185 = 1
goto @SHTR_15448

:SHTR_15441
goto @SHTR_13207

:SHTR_15448
if 
  $shtr_current == 25
goto_if_false @SHTR_15541
if 
  $6186 == 0
goto_if_false @SHTR_15534
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[24]
$6186 = 1
goto @SHTR_15541

:SHTR_15534
goto @SHTR_13207

:SHTR_15541
if 
  $shtr_current == 26
goto_if_false @SHTR_15634
if 
  $6187 == 0
goto_if_false @SHTR_15627
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[15]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6187 = 1
goto @SHTR_15634

:SHTR_15627
goto @SHTR_13207

:SHTR_15634
if 
  $shtr_current == 27
goto_if_false @SHTR_15727
if 
  $6188 == 0
goto_if_false @SHTR_15720
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[27]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[22]
$6188 = 1
goto @SHTR_15727

:SHTR_15720
goto @SHTR_13207

:SHTR_15727
if 
  $shtr_current == 28
goto_if_false @SHTR_15820
if 
  $6189 == 0
goto_if_false @SHTR_15813
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[36]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6189 = 1
goto @SHTR_15820

:SHTR_15813
goto @SHTR_13207

:SHTR_15820
if 
  $shtr_current == 29
goto_if_false @SHTR_15913
if 
  $6190 == 0
goto_if_false @SHTR_15906
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[27]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[12]
$6190 = 1
goto @SHTR_15913

:SHTR_15906
goto @SHTR_13207

:SHTR_15913
return 

:SHTR_15915
set_var_text_label s$shtr_help_start[0] = 'SHTR_0'
set_var_text_label s$shtr_help_start[1] = 'SHTR_1'
set_var_text_label s$shtr_help_start[2] = 'SHTR_2'
set_var_text_label s$shtr_help_start[3] = 'SHTR_3'
set_var_text_label s$shtr_help_start[4] = 'SHTR_4'
set_var_text_label s$shtr_help_start[5] = 'SHTR_5'
set_var_text_label s$shtr_help_start[6] = 'SHTR_6'
set_var_text_label s$shtr_help_start[7] = 'SHTR_7'
set_var_text_label s$shtr_help_start[8] = 'SHTR_8'
set_var_text_label s$shtr_help_start[9] = 'SHTR_9'
set_var_text_label s$shtr_help_start[10] = 'SHTR_A'
set_var_text_label s$shtr_help_start[11] = 'SHTR_B'
set_var_text_label s$shtr_help_start[12] = 'SHTR_C'
set_var_text_label s$shtr_help_start[13] = 'SHTR_D'
set_var_text_label s$shtr_help_start[14] = 'SHTR_E'
set_var_text_label s$shtr_help_start[15] = 'SHTR_F'
set_var_text_label s$shtr_help_start[16] = 'SHTR_G'
set_var_text_label s$shtr_help_start[17] = 'SHTR_H'
set_var_text_label s$shtr_help_start[18] = 'SHTR_I'
set_var_text_label s$shtr_help_start[19] = 'SHTR_J'
set_var_text_label s$shtr_help_start[20] = 'SHTR_K'
set_var_text_label s$shtr_help_start[21] = 'SHTR_L'
set_var_text_label s$shtr_help_start[22] = 'SHTR_M'
set_var_text_label s$shtr_help_start[23] = 'SHTR_N'
set_var_text_label s$shtr_help_start[24] = 'SHTR_O'
set_var_text_label s$shtr_help_start[25] = 'SHTR_P'
set_var_text_label s$shtr_help_start[26] = 'SHTR_Q'
set_var_text_label s$shtr_help_start[27] = 'SHTR_R'
set_var_text_label s$shtr_help_start[28] = 'SHTR_S'
set_var_text_label s$shtr_help_start[29] = 'SHTR_T'
set_var_text_label s$shtr_help_start[30] = 'SHTR_U'
set_var_text_label s$shtr_help_start[31] = 'SHTR_V'
set_var_text_label s$shtr_help_start[32] = 'SHTR_W'
set_var_text_label s$shtr_help_start[33] = 'SHTR_X'
set_var_text_label s$shtr_help_start[34] = 'SHTR_Y'
set_var_text_label s$shtr_help_start[35] = 'SHTR_Z'
set_var_text_label s$shtr_help_start[36] = 'SHTR_PE'
$shtr_hi_loop[0] = 176.0
$6110[0] = 96.0
$6080[0] = 224.0
$6120[0] = 96.0
$6090[0] = 272.0
$6130[0] = 96.0
$6100[0] = 464.0
$6140[0] = 96.0
$shtr_hi_loop[1] = 176.0
$6110[1] = 128.0
$6080[1] = 224.0
$6120[1] = 128.0
$6090[1] = 272.0
$6130[1] = 128.0
$6100[1] = 464.0
$6140[1] = 128.0
$shtr_hi_loop[2] = 176.0
$6110[2] = 160.0
$6080[2] = 224.0
$6120[2] = 160.0
$6090[2] = 272.0
$6130[2] = 160.0
$6100[2] = 464.0
$6140[2] = 160.0
$shtr_hi_loop[3] = 176.0
$6110[3] = 192.0
$6080[3] = 224.0
$6120[3] = 192.0
$6090[3] = 272.0
$6130[3] = 192.0
$6100[3] = 464.0
$6140[3] = 192.0
$shtr_hi_loop[4] = 176.0
$6110[4] = 224.0
$6080[4] = 224.0
$6120[4] = 224.0
$6090[4] = 272.0
$6130[4] = 224.0
$6100[4] = 464.0
$6140[4] = 224.0
$shtr_hi_loop[5] = 176.0
$6110[5] = 256.0
$6080[5] = 224.0
$6120[5] = 256.0
$6090[5] = 272.0
$6130[5] = 256.0
$6100[5] = 464.0
$6140[5] = 256.0
$shtr_hi_loop[6] = 176.0
$6110[6] = 288.0
$6080[6] = 224.0
$6120[6] = 288.0
$6090[6] = 272.0
$6130[6] = 288.0
$6100[6] = 464.0
$6140[6] = 288.0
$shtr_hi_loop[7] = 176.0
$6110[7] = 320.0
$6080[7] = 224.0
$6120[7] = 320.0
$6090[7] = 272.0
$6130[7] = 320.0
$6100[7] = 464.0
$6140[7] = 320.0
$shtr_hi_loop[8] = 176.0
$6110[8] = 352.0
$6080[8] = 224.0
$6120[8] = 352.0
$6090[8] = 272.0
$6130[8] = 352.0
$6100[8] = 464.0
$6140[8] = 352.0
$shtr_hi_loop[9] = 176.0
$6110[9] = 384.0
$6080[9] = 224.0
$6120[9] = 384.0
$6090[9] = 272.0
$6130[9] = 384.0
$6100[9] = 464.0
$6140[9] = 384.0
if 
  $shtr_write == 0
goto_if_false @SHTR_17557
set_var_text_label s$shtr_hi_1[0] = s$shtr_help_start[12]
set_var_text_label s$shtr_hi_2[0] = s$shtr_help_start[36]
set_var_text_label s$shtr_hi_3[0] = s$shtr_help_start[36]
$shtr_hi_l[0] = 10
$shtr_hi_s[0] = 1000
$shtr_played_before = 1
gosub @SHTR_13207
$shtr_hi_l[1] = 9
$shtr_hi_s[1] = 900
$shtr_played_before = 2
gosub @SHTR_13207
$shtr_hi_l[2] = 8
$shtr_hi_s[2] = 800
$shtr_played_before = 3
gosub @SHTR_13207
$shtr_hi_l[3] = 7
$shtr_hi_s[3] = 700
$shtr_played_before = 4
gosub @SHTR_13207
$shtr_hi_l[4] = 6
$shtr_hi_s[4] = 600
$shtr_played_before = 5
gosub @SHTR_13207
$shtr_hi_l[5] = 5
$shtr_hi_s[5] = 500
$shtr_played_before = 6
gosub @SHTR_13207
$shtr_hi_l[6] = 4
$shtr_hi_s[6] = 400
$shtr_played_before = 7
gosub @SHTR_13207
$shtr_hi_l[7] = 3
$shtr_hi_s[7] = 300
$shtr_played_before = 8
gosub @SHTR_13207
$shtr_hi_l[8] = 2
$shtr_hi_s[8] = 200
$shtr_played_before = 9
gosub @SHTR_13207
$shtr_hi_l[9] = 1
$shtr_hi_s[9] = 100
$shtr_write = 1

:SHTR_17557
set_var_int_to_var_int $shtr_score = $shtr_hi_s[0]
return 

:SHTR_17567
$shtr_plyr_col_y = 1
$shtr_button1 = 1
$shtr_time_diff_hit = 1
$shtr_lives = 0
$shtr_front_end = 2
$shtr_hi_score = 0
$shtr_layer_scroll_speed_bottom = 15.0
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$5852 = 8.0
$shtr_projectile_size = 10.0
$shtr_button_pressed = 1.0
$shtr_range_start = 3.0
$unk_5957 = 0
$unk_5961 = 7.0
$5988 = 0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_level = 0
$shtr_press = 0
$shtr_random[0] = 660.0
$shtr_random[1] = 660.0
$shtr_random[2] = 660.0
$shtr_random[3] = 660.0
$shtr_player_alive = 0
$shtr_sprite = 0
$shtr_start_time = 0
$shtr_end_time = 0
$5644 = 0
$shtr_start_time_hit = 0
$shtr_end_time_hit = 0
$shtr_respawn_time = 1
$shtr_current_projectile_fired[1] = 0
$shtr_current_projectile_fired[2] = 0
$shtr_current_projectile_fired[3] = 0
$shtr_current_projectile_fired[4] = 0
$shtr_current_projectile_fired[5] = 0
$shtr_current_projectile_fired[6] = 0
$shtr_current_projectile_fired[7] = 0
$shtr_current_projectile_fired[8] = 0
$shtr_projectile_col_y[1] = 0
$shtr_projectile_col_y[2] = 0
$shtr_projectile_col_y[3] = 0
$shtr_projectile_col_y[4] = 0
$shtr_projectile_col_y[5] = 0
$shtr_projectile_col_y[6] = 0
$shtr_projectile_col_y[7] = 0
$shtr_projectile_col_y[8] = 0
$5788[1] = 0
$5788[2] = 0
$5788[3] = 0
$5788[4] = 0
$5788[5] = 0
$5788[6] = 0
$5788[7] = 0
$5788[8] = 0
$shtr_current_enemy[0] = 0
$shtr_current_enemy[1] = 0
$shtr_current_enemy[2] = 0
$shtr_current_enemy[3] = 0
$shtr_current_enemy[4] = 0
$shtr_current_enemy[5] = 0
$shtr_current_enemy[6] = 0
$shtr_current_enemy[7] = 0
$5980[0] = 0
$5980[1] = 0
$5980[2] = 0
$5980[3] = 0
$5980[4] = 0
$5980[5] = 0
$5980[6] = 0
$5980[7] = 0
$shtr_range_end = 0
$5875 = 0
$shtr_reload_diff = 32.0
$shtr_enemy_col_x = 32.0
$5722 = 8.0
$shtr_projectile_col_x = 8.0
$shtr_plyr_y = 32.0
$shtr_plyr_col_x = 32.0
$shtr_gen_hi_y = 0.0
return 

//-------------Mission 6---------------
// Originally: Video Game: Let's Get Ready To Bumble

:GRAV
gosub @GRAV_36
if 
  has_deatharrest_been_executed 
goto_if_false @GRAV_27
gosub @GRAV_6654

:GRAV_27
gosub @GRAV_6674
terminate_this_script 

:GRAV_36
$onmission = 1
register_mission_given 
script_name 'GRAV'
wait 0
load_mission_text 'GRAV'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1810

:GRAV_78
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GRAV_104
wait 0
goto @GRAV_78

:GRAV_104
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
shut_all_chars_up True
use_text_commands True
set_text_centre True
set_text_scale 3.0 {heightScale} 3.0
load_texture_dictionary 'LD_GRAV'
load_sprite 1 {spriteName} "SKY"
load_sprite 2 {spriteName} "BEEA"
load_sprite 3 {spriteName} "FLWRA"
load_sprite 4 {spriteName} "GHOST"
load_sprite 5 {spriteName} "LEAF"
load_sprite 6 {spriteName} "FLWR"
load_sprite 7 {spriteName} "TVCORN"
load_sprite 8 {spriteName} "TVL"
load_sprite 9 {spriteName} "TVR"
load_sprite 10 {spriteName} "THORN"
load_sprite 11 {spriteName} "BEE2"
load_sprite 12 {spriteName} "BEE1"
load_sprite 13 {spriteName} "HIVE"
load_sprite 14 {spriteName} "TIMER"
load_sprite 15 {spriteName} "BUMBLE"
load_sprite 16 {spriteName} "PLAYW"
load_sprite 17 {spriteName} "PLAYY"
load_sprite 18 {spriteName} "HISCOREW"
load_sprite 19 {spriteName} "HISCOREY"
load_sprite 20 {spriteName} "EXITW"
load_sprite 21 {spriteName} "EXITY"
set_var_text_label s$grav_help_start[0] = 'GRAV_0'
set_var_text_label s$grav_help_start[1] = 'GRAV_1'
set_var_text_label s$grav_help_start[2] = 'GRAV_2'
set_var_text_label s$grav_help_start[3] = 'GRAV_3'
set_var_text_label s$grav_help_start[4] = 'GRAV_4'
set_var_text_label s$grav_help_start[5] = 'GRAV_5'
set_var_text_label s$grav_help_start[6] = 'GRAV_6'
set_var_text_label s$grav_help_start[7] = 'GRAV_7'
set_var_text_label s$grav_help_start[8] = 'GRAV_8'
set_var_text_label s$grav_help_start[9] = 'GRAV_9'
set_var_text_label s$grav_help_start[10] = 'GRAV_A'
set_var_text_label s$grav_help_start[11] = 'GRAV_B'
set_var_text_label s$grav_help_start[12] = 'GRAV_C'
set_var_text_label s$grav_help_start[13] = 'GRAV_D'
set_var_text_label s$grav_help_start[14] = 'GRAV_E'
set_var_text_label s$grav_help_start[15] = 'GRAV_F'
set_var_text_label s$grav_help_start[16] = 'GRAV_G'
set_var_text_label s$grav_help_start[17] = 'GRAV_H'
set_var_text_label s$grav_help_start[18] = 'GRAV_I'
set_var_text_label s$grav_help_start[19] = 'GRAV_J'
set_var_text_label s$grav_help_start[20] = 'GRAV_K'
set_var_text_label s$grav_help_start[21] = 'GRAV_L'
set_var_text_label s$grav_help_start[22] = 'GRAV_M'
set_var_text_label s$grav_help_start[23] = 'GRAV_N'
set_var_text_label s$grav_help_start[24] = 'GRAV_O'
set_var_text_label s$grav_help_start[25] = 'GRAV_P'
set_var_text_label s$grav_help_start[26] = 'GRAV_Q'
set_var_text_label s$grav_help_start[27] = 'GRAV_R'
set_var_text_label s$grav_help_start[28] = 'GRAV_S'
set_var_text_label s$grav_help_start[29] = 'GRAV_T'
set_var_text_label s$grav_help_start[30] = 'GRAV_U'
set_var_text_label s$grav_help_start[31] = 'GRAV_V'
set_var_text_label s$grav_help_start[32] = 'GRAV_W'
set_var_text_label s$grav_help_start[33] = 'GRAV_X'
set_var_text_label s$grav_help_start[34] = 'GRAV_Y'
set_var_text_label s$grav_help_start[35] = 'GRAV_Z'
set_var_text_label s$grav_help_start[36] = 'GRAV_PE'
$grav_hi_loop[0] = 176.0
$6357[0] = 96.0
$6327[0] = 224.0
$6367[0] = 96.0
$6337[0] = 272.0
$6377[0] = 96.0
$6347[0] = 464.0
$6387[0] = 96.0
$grav_hi_loop[1] = 176.0
$6357[1] = 128.0
$6327[1] = 224.0
$6367[1] = 128.0
$6337[1] = 272.0
$6377[1] = 128.0
$6347[1] = 464.0
$6387[1] = 128.0
$grav_hi_loop[2] = 176.0
$6357[2] = 160.0
$6327[2] = 224.0
$6367[2] = 160.0
$6337[2] = 272.0
$6377[2] = 160.0
$6347[2] = 464.0
$6387[2] = 160.0
$grav_hi_loop[3] = 176.0
$6357[3] = 192.0
$6327[3] = 224.0
$6367[3] = 192.0
$6337[3] = 272.0
$6377[3] = 192.0
$6347[3] = 464.0
$6387[3] = 192.0
$grav_hi_loop[4] = 176.0
$6357[4] = 224.0
$6327[4] = 224.0
$6367[4] = 224.0
$6337[4] = 272.0
$6377[4] = 224.0
$6347[4] = 464.0
$6387[4] = 224.0
$grav_hi_loop[5] = 176.0
$6357[5] = 256.0
$6327[5] = 224.0
$6367[5] = 256.0
$6337[5] = 272.0
$6377[5] = 256.0
$6347[5] = 464.0
$6387[5] = 256.0
$grav_hi_loop[6] = 176.0
$6357[6] = 288.0
$6327[6] = 224.0
$6367[6] = 288.0
$6337[6] = 272.0
$6377[6] = 288.0
$6347[6] = 464.0
$6387[6] = 288.0
$grav_hi_loop[7] = 176.0
$6357[7] = 320.0
$6327[7] = 224.0
$6367[7] = 320.0
$6337[7] = 272.0
$6377[7] = 320.0
$6347[7] = 464.0
$6387[7] = 320.0
$grav_hi_loop[8] = 176.0
$6357[8] = 352.0
$6327[8] = 224.0
$6367[8] = 352.0
$6337[8] = 272.0
$6377[8] = 352.0
$6347[8] = 464.0
$6387[8] = 352.0
$grav_hi_loop[9] = 176.0
$6357[9] = 384.0
$6327[9] = 224.0
$6367[9] = 384.0
$6337[9] = 272.0
$6377[9] = 384.0
$6347[9] = 464.0
$6387[9] = 384.0
if 
  $grav_write == 0
goto_if_false @GRAV_2054
set_var_text_label s$grav_hi_1[0] = s$grav_help_start[12]
set_var_text_label s$grav_hi_2[0] = s$grav_help_start[36]
set_var_text_label s$grav_hi_3[0] = s$grav_help_start[36]
$grav_hi_l[0] = 10
$grav_hi_s[0] = 1000
$grav_played_before = 1
gosub @GRAV_13590
$grav_hi_l[1] = 9
$grav_hi_s[1] = 900
$grav_played_before = 2
gosub @GRAV_13590
$grav_hi_l[2] = 8
$grav_hi_s[2] = 800
$grav_played_before = 3
gosub @GRAV_13590
$grav_hi_l[3] = 7
$grav_hi_s[3] = 700
$grav_played_before = 4
gosub @GRAV_13590
$grav_hi_l[4] = 6
$grav_hi_s[4] = 600
$grav_played_before = 5
gosub @GRAV_13590
$grav_hi_l[5] = 5
$grav_hi_s[5] = 500
$grav_played_before = 6
gosub @GRAV_13590
$grav_hi_l[6] = 4
$grav_hi_s[6] = 400
$grav_played_before = 7
gosub @GRAV_13590
$grav_hi_l[7] = 3
$grav_hi_s[7] = 300
$grav_played_before = 8
gosub @GRAV_13590
$grav_hi_l[8] = 2
$grav_hi_s[8] = 200
$grav_played_before = 9
gosub @GRAV_13590
$grav_hi_l[9] = 1
$grav_hi_s[9] = 100
$grav_write = 1

:GRAV_2054
set_lvar_int_to_var_int 57@ = $grav_hi_s[0]

:GRAV_2062
$grav_ground = 1
54@ = 0
$grav_total_pickups = 0
$grav_dead_y = 1
51@ = 2
47@ = 1
43@ = 180.0
44@ = 2.0
$grav_screen_x = 3648.0
$grav_velocity_mag = 2.5
$grav_countdown_start = 120000
$grav_next_level = 0
$grav_plyr_y = 0.0
$grav_speed_x = 0.0
55@ = 0
56@ = 0
$grav_countdown_diff = get_game_timer 
$nGameState = 0

:GRAV_2207
wait 0
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
do_fade 0 {direction} Fade.In
34@, 35@, 36@, 37@ = get_position_of_analogue_sticks PadId.Pad1

:GRAV_2449
if 
  58@ == 1
goto_if_false @GRAV_2504
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ == 0
goto_if_false @GRAV_2504
58@ = 0

:GRAV_2504
if 
  $grav_dead_y == 1
goto_if_false @GRAV_2742
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 17 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 18 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 20 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_2742
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStart
$grav_help_diff = get_game_timer 
$grav_dead_y = 0
TIMERA = 0

:GRAV_2742
if 
  $grav_dead_y == 2
goto_if_false @GRAV_2960
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 16 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 19 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 20 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_2960
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
$grav_help_diff = get_game_timer 
$grav_source_slot = 4
$grav_dead_y = 4

:GRAV_2960
if 
  $grav_dead_y == 3
goto_if_false @GRAV_3172
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 16 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 18 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 21 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_3172
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeDecline
do_fade 0 {direction} Fade.Out
goto @GRAV_6674

:GRAV_3172
if 
  58@ == 0
goto_if_false @GRAV_3634
if 
  $grav_dead_y == 1
goto_if_false @GRAV_3338
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3273
$grav_dead_y = 3
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3273
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3338
$grav_dead_y = 2
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3338
if 
  $grav_dead_y == 2
goto_if_false @GRAV_3486
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3421
$grav_dead_y = 1
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3421
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3486
$grav_dead_y = 3
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3486
if 
  $grav_dead_y == 3
goto_if_false @GRAV_3634
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3569
$grav_dead_y = 2
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3569
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3634
$grav_dead_y = 1
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2449

:GRAV_3634
if 
  $grav_dead_y == 0
goto_if_false @GRAV_5147
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @GRAV_3674
51@ += 1

:GRAV_3674
34@, 35@, 36@, 37@ = get_position_of_analogue_sticks PadId.Pad1
if 
  47@ == 1
goto_if_false @GRAV_4338
if 
  $grav_pickups_display == 12
goto_if_false @GRAV_3765
if 
  TIMERB > 10
goto_if_false @GRAV_3758
$grav_pickups_display = 11
TIMERB = 0

:GRAV_3758
goto @GRAV_3797

:GRAV_3765
if 
  TIMERB > 10
goto_if_false @GRAV_3797
$grav_pickups_display = 12
TIMERB = 0

:GRAV_3797
if 
  34@ == 0
goto_if_false @GRAV_3896
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_3896
if 
  43@ > 180.0
goto_if_false @GRAV_3867
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_3867
if 
  180.0 > 43@
goto_if_false @GRAV_3896
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3896
if and
  34@ > 0
  64 > 34@
goto_if_false @GRAV_3950
if 
  195.0 > 43@
goto_if_false @GRAV_3950
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3950
if and
  0 > 34@
  34@ > -64
goto_if_false @GRAV_4004
if 
  43@ > 165.0
goto_if_false @GRAV_4004
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_4004
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_4083
if 
  210.0 > 43@
goto_if_false @GRAV_4083
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4083
43@ += 4.0

:GRAV_4083
if and
  34@ > 63
  130 > 34@
goto_if_false @GRAV_4171
if 
  210.0 > 43@
goto_if_false @GRAV_4171
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4171
43@ += 4.0

:GRAV_4171
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GRAV_4250
if 
  43@ > 150.0
goto_if_false @GRAV_4250
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4250
43@ -= 4.0

:GRAV_4250
if and
  -63 > 34@
  34@ > -130
goto_if_false @GRAV_4338
if 
  43@ > 150.0
goto_if_false @GRAV_4338
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4338
43@ -= 4.0

:GRAV_4338
if 
  $grav_ground == 1
goto_if_false @GRAV_4815
$6201 = 300.0
$grav_plyr_x = 4096.0
gosub @GRAV_8687
gosub @GRAV_6864
set_var_float_to_var_float $6201 = $grav_speed_y
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x
$grav_ground = 0
60@ = 1
do_fade 0 {direction} Fade.In

:GRAV_4426
if 
  get_fading_status 
goto_if_false @GRAV_4810
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_4426

:GRAV_4810
$grav_countdown_diff = get_game_timer 

:GRAV_4815
if 
  $grav_ground == 0
goto_if_false @GRAV_4879
gosub @GRAV_11663
if 
  47@ == 1
goto_if_false @GRAV_4872
gosub @GRAV_7680
gosub @GRAV_10386

:GRAV_4872
gosub @GRAV_10782

:GRAV_4879
if 
  47@ == 0
goto_if_false @GRAV_4943
if 
  51@ > 0
goto_if_false @GRAV_4943
TIMERA = 0
51@ -= 1
47@ = 2
gosub @GRAV_7302

:GRAV_4943
if 
  47@ == 2
goto_if_false @GRAV_5039
if 
  do_2d_rectangles_collide $6201 {rectangle1PositionY} $grav_plyr_x {rectangle1SizeX} 4.0 {rectangle1SizeY} 4.0 {rectangle2PositionX} $grav_speed_y {rectangle2PositionY} $grav_dead_x {rectangle2SizeX} 4.0 {rectangle2SizeY} 4.0
goto_if_false @GRAV_5039
47@ = 1
43@ = 180.0
set_var_float_to_var_float $6201 = $grav_speed_y
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x

:GRAV_5039
if 
  $grav_dead_y == 0
goto_if_false @GRAV_5147
if 
  47@ == 0
goto_if_false @GRAV_5147
if 
  51@ == 0
goto_if_false @GRAV_5147
$grav_dead_y = 4
$grav_source_slot = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeGameOver

:GRAV_5147
if 
  $grav_dead_y == 4
goto_if_false @GRAV_5216
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $grav_source_slot <> 1
goto_if_false @GRAV_5216
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
goto @GRAV_2062

:GRAV_5216
if 
  $grav_dead_y == 4
goto_if_false @GRAV_5524
if 
  $grav_source_slot == 0
goto_if_false @GRAV_5304
gosub @GRAV_6826
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'GR_A_5'
$grav_end_time = get_game_timer 
$grav_source_slot = 1

:GRAV_5304
if 
  $grav_source_slot == 1
goto_if_false @GRAV_5409
gosub @GRAV_6826
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'GR_A_5'
$grav_time_diff = get_game_timer 
set_var_int_to_var_int $grav_draw_highlight = $grav_time_diff
sub_int_var_from_int_var $grav_draw_highlight -= $grav_end_time
if 
  $grav_draw_highlight > 5000
goto_if_false @GRAV_5409
$grav_source_slot = 2

:GRAV_5409
if 
  $grav_source_slot == 2
goto_if_false @GRAV_5467
if 
  is_int_var_greater_than_int_lvar $grav_hi_s[9] > 54@
goto_if_false @GRAV_5460
$grav_source_slot = 4
goto @GRAV_5467

:GRAV_5460
gosub @GRAV_11777

:GRAV_5467
if 
  $grav_source_slot == 3
goto_if_false @GRAV_5499
gosub @GRAV_12094
gosub @GRAV_12977

:GRAV_5499
if 
  $grav_source_slot == 4
goto_if_false @GRAV_5524
gosub @GRAV_12977

:GRAV_5524
if 
  $grav_dead_y == 0
goto_if_false @GRAV_6207
gosub @GRAV_6826
display_text_with_number 560.0 {offsetTop} 390.0 {key} 'VP15' {num} 51@
draw_sprite_with_rotation 2 {offsetLeft} 560.0 {offsetTop} 390.0 {width} 44.0 {height} 44.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
draw_sprite_with_rotation 12 {offsetLeft} 560.0 {offsetTop} 390.0 {width} 36.0 {height} 36.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
gosub @GRAV_6826
display_text_with_number 90.0 {offsetTop} 390.0 {key} 'VP15' {num} $grav_temp2
draw_sprite_with_rotation 3 {offsetLeft} 90.0 {offsetTop} 390.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
draw_sprite_with_rotation 6 {offsetLeft} 90.0 {offsetTop} 390.0 {width} 32.0 {height} 32.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
set_var_int_to_var_int $grav_countdown_temp = $grav_fire_heading
$grav_countdown_temp /= 1000
set_var_int_to_var_int $minutes = $grav_countdown_temp
$minutes /= 60
set_var_int_to_var_int $grav_countdown = $minutes
$grav_countdown *= 60
sub_int_var_from_int_var $grav_countdown_temp -= $grav_countdown
gosub @GRAV_6826
if 
  $grav_countdown_temp > 9
goto_if_false @GRAV_5881
display_text_with_2_numbers 320.0 {offsetTop} 390.0 {key} 'TIME' {num1} $minutes {num2} $grav_countdown_temp
goto @GRAV_5908

:GRAV_5881
display_text_with_2_numbers 320.0 {offsetTop} 390.0 {key} 'TIME_0' {num1} $minutes {num2} $grav_countdown_temp

:GRAV_5908
draw_sprite_with_rotation 14 {offsetLeft} 320.0 {offsetTop} 390.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
gosub @GRAV_6826
display_text_with_number 320.0 {offsetTop} 70.0 {key} 'VP15' {num} 54@
draw_sprite_with_rotation 13 {offsetLeft} 320.0 {offsetTop} 70.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
$grav_countdown_secs = get_game_timer 
set_var_int_to_var_int $grav_countdown_end = $grav_countdown_secs
sub_int_var_from_int_var $grav_countdown_end -= $grav_countdown_diff
if 
  is_int_var_greater_than_int_var $grav_countdown_start > $grav_countdown_end
goto_if_false @GRAV_6084
set_var_int_to_var_int $grav_fire_heading = $grav_countdown_start
sub_int_var_from_int_var $grav_fire_heading -= $grav_countdown_end
goto @GRAV_6207

:GRAV_6084
if 
  47@ == 1
goto_if_false @GRAV_6207
if 
  51@ > 0
goto_if_false @GRAV_6146
51@ -= 1
$grav_ground = 1
$grav_countdown_diff = get_game_timer 
goto @GRAV_6207

:GRAV_6146
47@ = 0
$grav_dead_y = 4
$grav_source_slot = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeGameOver

:GRAV_6207
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $grav_dead_y == 0
goto_if_false @GRAV_6490
$grav_countdown_max = get_game_timer 
set_var_int_to_var_int $grav_help_end = $grav_countdown_max
sub_int_var_from_int_var $grav_help_end -= $grav_help_diff
if 
  10000 > $grav_help_end
goto_if_false @GRAV_6490
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 240.0 {rightBottomY} 80.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 240.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 20.0 {key} 'GR_NAV'

:GRAV_6490
if 
  $grav_dead_y == 4
goto_if_false @GRAV_6647
if 
  $grav_source_slot == 4
goto_if_false @GRAV_6647
$grav_countdown_max = get_game_timer 
set_var_int_to_var_int $grav_help_end = $grav_countdown_max
sub_int_var_from_int_var $grav_help_end -= $grav_help_diff
if 
  10000 > $grav_help_end
goto_if_false @GRAV_6647
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 200.0 {rightBottomY} 45.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 230.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 20.0 {key} 'GR_BCK'

:GRAV_6647
goto @GRAV_2207

:GRAV_6654
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
return 

:GRAV_6674
clear_mission_audio MissionAudioSlot.Slot4
clear_this_print 'BUSY'
shut_all_chars_up False
clear_onscreen_counter $grav_fire_heading
if 
  is_player_playing $player1
goto_if_false @GRAV_6809
if 
  locate_char_on_foot_3d $scplayer {x} $gravX {y} $gravY {z} $gravZ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GRAV_6788
set_var_float_to_var_float $y = $gravY
$y += 2.0
set_char_coordinates $scplayer {x} $gravX {y} $y {z} $gravZ

:GRAV_6788
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:GRAV_6809
set_music_does_fade True
remove_texture_dictionary 
$onmission = 0
mission_has_finished 
return 

:GRAV_6826
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
return 

:GRAV_6864
674@ = 99999.8984
678@ = 0

:GRAV_6881
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7300
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
if 
  $grav_temp_x > 3000.0
goto_if_false @GRAV_7063
if 
  4100.0 > $grav_temp_x
goto_if_false @GRAV_7063
673@ = get_distance_between_coords_2d $6201 {fromY} $grav_plyr_x {toX} 471@(678@,101f) {toZ} 572@(678@,101f)
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_7063
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_speed_y = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_x = 572@(678@,101f)
$grav_dead_x -= 32.0

:GRAV_7063
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_6881

:GRAV_7300
return 

:GRAV_7302
674@ = 99999.8984
673@ = 0.0
678@ = 0

:GRAV_7329
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7526
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -200.0
  600.0 > $grav_temp_x
goto_if_false @GRAV_7512
673@ = get_distance_between_coords_2d $6201 {fromY} $grav_plyr_x {toX} 471@(678@,101f) {toZ} 572@(678@,101f)
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_7512
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_speed_y = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_x = 572@(678@,101f)
$grav_dead_x -= 32.0

:GRAV_7512
678@ += 1
goto @GRAV_7329

:GRAV_7526
set_var_float_to_var_float $grav_buzz = $grav_speed_y
sub_float_var_from_float_var $grav_buzz -= $6201
set_var_float_to_var_float $grav_velocity_x = $grav_dead_x
sub_float_var_from_float_var $grav_velocity_x -= $grav_plyr_x
set_var_float_to_var_float $grav_velocity_y = $grav_buzz
mult_float_var_by_float_var $grav_velocity_y *= $grav_buzz
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
mult_float_var_by_float_var $grav_temp_1 *= $grav_velocity_x
set_var_float_to_var_float $grav_temp_2 = $grav_velocity_y
add_float_var_to_float_var $grav_temp_2 += $grav_temp_1
$grav_velocity_mag_sqr = sqrt $grav_temp_2
set_var_float_to_var_float $grav_velocity_y = $grav_buzz
div_float_var_by_float_var $grav_velocity_y /= $grav_velocity_mag_sqr
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
div_float_var_by_float_var $grav_temp_1 /= $grav_velocity_mag_sqr
set_var_float_to_var_float $grav_plyr_y = $grav_velocity_mag
mult_float_var_by_float_var $grav_plyr_y *= $grav_velocity_y
set_var_float_to_var_float $grav_speed_x = $grav_velocity_mag
mult_float_var_by_float_var $grav_speed_x *= $grav_temp_1
return 

:GRAV_7680
678@ = 0

:GRAV_7687
if and
  51 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_8052
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8038
if 
  do_2d_rectangles_collide $6201 {rectangle1PositionY} $grav_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 269@(678@,101f) {rectangle2PositionY} 370@(678@,101f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @GRAV_8038
269@(678@,101f) = 999.0
if 
  $grav_temp2 <> 1
goto_if_false @GRAV_7903
54@ += 10
$grav_next_level += 1
$grav_temp2 -= 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeePickup
goto @GRAV_8024

:GRAV_7903
add_int_var_to_int_lvar 54@ += $grav_next_level
$grav_fire_heading /= 100
add_int_var_to_int_lvar 54@ += $grav_fire_heading
$grav_next_level = 0
$grav_total_pickups += 1
set_lvar_int_to_lvar_int 55@ = 54@
sub_int_lvar_from_int_lvar 55@ -= 56@
set_lvar_int_to_lvar_int 56@ = 55@
if 
  55@ > 665
goto_if_false @GRAV_8010
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
51@ += 1

:GRAV_8010
$grav_ground = 1
TIMERA = 0

:GRAV_8024
269@(678@,101f) = -999.0

:GRAV_8038
678@ += 1
goto @GRAV_7687

:GRAV_8052
678@ = 0

:GRAV_8059
if and
  51 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_8487
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8473
if 
  do_2d_rectangles_collide $6201 {rectangle1PositionY} $grav_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 471@(678@,101f) {rectangle2PositionY} 572@(678@,101f) {rectangle2SizeX} 96.0 {rectangle2SizeY} 32.0
goto_if_false @GRAV_8466
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
$grav_temp_x += 12.0
if 
  is_float_lvar_greater_than_float_var 572@(678@,101f) > $grav_temp_x
goto_if_false @GRAV_8409
if 
  $nGameState == 0
goto_if_false @GRAV_8402
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  0.0 > $grav_speed_x
goto_if_false @GRAV_8402
set_var_float_to_lvar_float $grav_screen_y = 471@(678@,101f)
$grav_screen_y -= 52.0
if 
  not is_float_var_greater_than_float_var $grav_screen_y > $6201
goto_if_false @GRAV_8402
set_var_float_to_lvar_float $grav_screen_y = 471@(678@,101f)
$grav_screen_y += 52.0
if 
  not is_float_var_greater_than_float_var $6201 > $grav_screen_y
goto_if_false @GRAV_8402
$grav_speed_x *= -0.1
set_var_float_to_lvar_float $grav_plyr_x = 572@(678@,101f)
$grav_plyr_x -= 38.0
$nGameState = 1

:GRAV_8402
goto @GRAV_8459

:GRAV_8409
$grav_plyr_y *= -0.5
$grav_speed_x *= -0.5
$grav_plyr_x += 4.0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeDrop

:GRAV_8459
goto @GRAV_8473

:GRAV_8466
$nGameState = 0

:GRAV_8473
678@ += 1
goto @GRAV_8059

:GRAV_8487
678@ = 0

:GRAV_8494
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_8685
set_var_float_to_lvar_float $grav_temp_x = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8671
if 
  do_2d_rectangles_collide $6201 {rectangle1PositionY} $grav_plyr_x {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 67@(678@,101f) {rectangle2PositionY} 168@(678@,101f) {rectangle2SizeX} 128.0 {rectangle2SizeY} 40.0
goto_if_false @GRAV_8671
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeZap
60@ = 0
47@ = 0
TIMERA = 0

:GRAV_8671
678@ += 1
goto @GRAV_8494

:GRAV_8685
return 

:GRAV_8687
do_fade 0 {direction} Fade.Out

:GRAV_8693
if 
  get_fading_status 
goto_if_false @GRAV_9077
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_8693

:GRAV_9077
678@ = 0
set_var_int_to_var_int $grav_level = $grav_total_pickups
$grav_level += 1
$grav_level *= 10
if 
  $grav_level > 50
goto_if_false @GRAV_9131
$grav_level = 50

:GRAV_9131
if 
  is_int_var_greater_than_int_lvar $grav_level > 678@
goto_if_false @GRAV_9452
$grav_press = generate_random_int_in_range 2 {max} 7
$grav_press *= 80
cset_var_float_to_var_int $grav_screen_y =# $grav_press
$grav_temp1 = generate_random_int_in_range 0 {max} 30
$grav_temp1 *= 128
set_lvar_float_to_var_float 67@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 168@(678@,101f) =# $grav_temp1
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_9131

:GRAV_9452
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
678@ = 0

:GRAV_9487
if 
  is_int_var_greater_than_int_lvar $grav_level > 678@
goto_if_false @GRAV_9856
$grav_press = generate_random_int_in_range 2 {max} 7
$grav_press *= 80
cset_var_float_to_var_int $grav_screen_y =# $grav_press
$grav_temp1 = generate_random_int_in_range 0 {max} 32
$grav_temp1 *= 128
$grav_temp1 += 64
set_lvar_float_to_var_float 269@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 370@(678@,101f) =# $grav_temp1
$grav_screen_y -= 48.0
$grav_temp1 += 32
set_lvar_float_to_var_float 471@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 572@(678@,101f) =# $grav_temp1
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_9487

:GRAV_9856
269@(678@,101f) = 999.0
370@(678@,101f) = 999.0
471@(678@,101f) = 999.0
572@(678@,101f) = 999.0
set_var_int_to_var_int $grav_pickups = $grav_level
set_var_int_to_var_int $grav_temp2 = $grav_pickups
set_lvar_int_to_var_int 678@ = $grav_level
67@(678@,101f) = 52.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 52.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
return 

:GRAV_10386
if 
  47@ == 1
goto_if_false @GRAV_10780
if 
  50.0 > $6201
goto_if_false @GRAV_10435
$6201 = 50.0

:GRAV_10435
if 
  $6201 > 590.0
goto_if_false @GRAV_10466
$6201 = 590.0

:GRAV_10466
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_10549
if 
  $nGameState == 1
goto_if_false @GRAV_10518
$nGameState = 0
$grav_speed_x += 4.0

:GRAV_10518
if 
  20.0 > $grav_speed_x
goto_if_false @GRAV_10549
$grav_speed_x += 0.4

:GRAV_10549
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @GRAV_10615
if 
  $nGameState == 0
goto_if_false @GRAV_10615
if 
  $grav_speed_x > 0.0
goto_if_false @GRAV_10615
$grav_speed_x -= 0.2

:GRAV_10615
set_var_float_to_var_float $grav_screen_y = $grav_plyr_y
$grav_screen_y /= 4.0
sub_float_var_from_float_var $grav_plyr_y -= $grav_screen_y
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GRAV_10665
34@ = -127

:GRAV_10665
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_10689
34@ = 127

:GRAV_10689
cset_var_float_to_lvar_int $grav_screen_y =# 34@
$grav_screen_y /= 128.0
add_float_var_to_float_var $grav_plyr_y += $grav_screen_y
add_float_var_to_float_var $6201 += $grav_plyr_y
if 
  $nGameState == 0
goto_if_false @GRAV_10772
if 
  $grav_speed_x > -20.0
goto_if_false @GRAV_10772
$grav_speed_x -= 0.2

:GRAV_10772
sub_float_var_from_float_var $grav_plyr_x -= $grav_speed_x

:GRAV_10780
return 

:GRAV_10782
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
678@ = 0

:GRAV_11005
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_11138
set_var_float_to_lvar_float $grav_temp_x = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11124
draw_sprite 10 {offsetLeft} 67@(678@,101f) {offsetTop} $grav_temp_x {width} 128.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11124
678@ += 1
goto @GRAV_11005

:GRAV_11138
678@ = 0

:GRAV_11145
if and
  100 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_11278
set_var_float_to_lvar_float $grav_temp_x = 370@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11264
draw_sprite 6 {offsetLeft} 269@(678@,101f) {offsetTop} $grav_temp_x {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11264
678@ += 1
goto @GRAV_11145

:GRAV_11278
678@ = 0

:GRAV_11285
if and
  100 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_11418
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11404
draw_sprite 5 {offsetLeft} 471@(678@,101f) {offsetTop} $grav_temp_x {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11404
678@ += 1
goto @GRAV_11285

:GRAV_11418
set_var_float_to_var_float $grav_screen_y = $6201
sub_float_var_from_float_var $grav_screen_y -= $6437
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if 
  47@ == 1
goto_if_false @GRAV_11590
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_11527
draw_sprite_with_rotation 12 {offsetLeft} $grav_screen_y {offsetTop} $grav_temp_x {width} 48.0 {height} 48.0 {angle} 43@ {red} 150 {green} 150 {blue} 150 {alpha} 255
goto @GRAV_11583

:GRAV_11527
draw_sprite_with_rotation $grav_pickups_display {offsetLeft} $grav_screen_y {offsetTop} $grav_temp_x {width} 48.0 {height} 48.0 {angle} 43@ {red} 150 {green} 150 {blue} 150 {alpha} 255
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeBuzz

:GRAV_11583
goto @GRAV_11661

:GRAV_11590
if 
  47@ == 2
goto_if_false @GRAV_11661
draw_sprite_with_rotation 4 {offsetLeft} $grav_screen_y {offsetTop} $grav_temp_x {width} 48.0 {height} 48.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 255
add_timed_float_var_to_float_var $6201 +=@ $grav_plyr_y
add_timed_float_var_to_float_var $grav_plyr_x +=@ $grav_speed_x

:GRAV_11661
return 

:GRAV_11663
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if 
  200.0 > $grav_temp_x
goto_if_false @GRAV_11726
$grav_temp_y = 200.0
sub_float_var_from_float_var $grav_temp_y -= $grav_temp_x
sub_float_var_from_float_var $grav_screen_x -= $grav_temp_y

:GRAV_11726
if 
  $grav_temp_x > 300.0
goto_if_false @GRAV_11773
set_var_float_to_var_float $grav_temp_y = $grav_temp_x
$grav_temp_y -= 300.0
add_float_var_to_float_var $grav_screen_x += $grav_temp_y

:GRAV_11773
return 
return 

:GRAV_11777
$6397 = 9
$grav_ranking = 0
$grav_score_update = 1

:GRAV_11798
if and
  $6397 >= 0
  $grav_score_update == 1
goto_if_false @GRAV_11895
if 
  is_int_lvar_greater_than_int_var 54@ > $grav_hi_s($6397,10i)
goto_if_false @GRAV_11881
$6397 -= 1
$grav_ranking = 1
$grav_source_slot = 3
$grav_temp = 1
goto @GRAV_11888

:GRAV_11881
$grav_score_update = 0

:GRAV_11888
goto @GRAV_11798

:GRAV_11895
if 
  $grav_ranking == 1
goto_if_false @GRAV_12092
$6397 += 1
$grav_score_check = 9
$grav_destination_slot = 8

:GRAV_11934
if 
  is_int_var_greater_or_equal_to_int_var $grav_destination_slot >= $6397
goto_if_false @GRAV_12054
set_var_text_label $grav_hi_1($grav_score_check,10s) = $grav_hi_1($grav_destination_slot,10s)
set_var_text_label $grav_hi_2($grav_score_check,10s) = $grav_hi_2($grav_destination_slot,10s)
set_var_text_label $grav_hi_3($grav_score_check,10s) = $grav_hi_3($grav_destination_slot,10s)
set_var_int_to_var_int $grav_hi_l($grav_score_check,10i) = $grav_hi_l($grav_destination_slot,10i)
set_var_int_to_var_int $grav_hi_s($grav_score_check,10i) = $grav_hi_s($grav_destination_slot,10i)
$grav_score_check -= 1
$grav_destination_slot -= 1
goto @GRAV_11934

:GRAV_12054
set_var_int_to_lvar_int $grav_hi_s($6397,10i) = 54@
set_var_int_to_var_int $grav_hi_l($6397,10i) = $grav_total_pickups
$grav_on_table = 0
$6309 = 10

:GRAV_12092
return 

:GRAV_12094
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12183
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @GRAV_12183
$grav_chars = 0

:GRAV_12183
if 
  $grav_on_table == 0
goto_if_false @GRAV_12463
set_var_text_label $grav_hi_1($6397,10s) = $grav_help_start($6309,37s)
set_var_text_label $grav_hi_2($6397,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($6397,10s) = s$grav_help_start[10]
if 
  $grav_chars == 0
goto_if_false @GRAV_12463
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12342
if 
  36 > $6309
goto_if_false @GRAV_12328
$6309 += 1
goto @GRAV_12335

:GRAV_12328
$6309 = 0

:GRAV_12335
$grav_chars = 1

:GRAV_12342
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12425
if 
  $6309 > 0
goto_if_false @GRAV_12411
$6309 -= 1
goto @GRAV_12418

:GRAV_12411
$6309 = 36

:GRAV_12418
$grav_chars = 1

:GRAV_12425
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12463
$6309 = 10
$grav_on_table = 1
$grav_chars = 1

:GRAV_12463
if 
  $grav_on_table == 1
goto_if_false @GRAV_12719
set_var_text_label $grav_hi_2($6397,10s) = $grav_help_start($6309,37s)
if 
  $grav_chars == 0
goto_if_false @GRAV_12719
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12598
if 
  36 > $6309
goto_if_false @GRAV_12584
$6309 += 1
goto @GRAV_12591

:GRAV_12584
$6309 = 0

:GRAV_12591
$grav_chars = 1

:GRAV_12598
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12681
if 
  $6309 > 0
goto_if_false @GRAV_12667
$6309 -= 1
goto @GRAV_12674

:GRAV_12667
$6309 = 36

:GRAV_12674
$grav_chars = 1

:GRAV_12681
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12719
$6309 = 10
$grav_on_table = 2
$grav_chars = 1

:GRAV_12719
if 
  $grav_on_table == 2
goto_if_false @GRAV_12975
set_var_text_label $grav_hi_3($6397,10s) = $grav_help_start($6309,37s)
if 
  $grav_chars == 0
goto_if_false @GRAV_12975
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12854
if 
  36 > $6309
goto_if_false @GRAV_12840
$6309 += 1
goto @GRAV_12847

:GRAV_12840
$6309 = 0

:GRAV_12847
$grav_chars = 1

:GRAV_12854
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12937
if 
  $6309 > 0
goto_if_false @GRAV_12923
$6309 -= 1
goto @GRAV_12930

:GRAV_12923
$6309 = 36

:GRAV_12930
$grav_chars = 1

:GRAV_12937
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12975
$grav_on_table = 3
$grav_chars = 1
$grav_source_slot = 4

:GRAV_12975
return 

:GRAV_12977
$grav_start_time = 0

:GRAV_12984
if 
  10 > $grav_start_time
goto_if_false @GRAV_13149
gosub @GRAV_6826
display_text $grav_hi_loop($grav_start_time,10f) {offsetTop} $6357($grav_start_time,10f) {key} $grav_hi_1($grav_start_time,10s)
gosub @GRAV_6826
display_text $6327($grav_start_time,10f) {offsetTop} $6367($grav_start_time,10f) {key} $grav_hi_2($grav_start_time,10s)
gosub @GRAV_6826
display_text $6337($grav_start_time,10f) {offsetTop} $6377($grav_start_time,10f) {key} $grav_hi_3($grav_start_time,10s)
gosub @GRAV_6826
set_text_right_justify True
display_text_with_number $6347($grav_start_time,10f) {offsetTop} $6387($grav_start_time,10f) {key} 'GRAV_LV' {num} $grav_hi_s($grav_start_time,10i)
$grav_start_time += 1
goto @GRAV_12984

:GRAV_13149
gosub @GRAV_6826
display_text 320.0 {offsetTop} 64.0 {key} 'GRAV_2F'
if and
  51@ == 0
  $grav_temp == 1
goto_if_false @GRAV_13588
if 
  $grav_on_table == 0
goto_if_false @GRAV_13269
gosub @GRAV_6826
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $grav_hi_loop($6397,10f) {offsetTop} $6357($6397,10f) {key} $grav_hi_1($6397,10s)
goto @GRAV_13312

:GRAV_13269
gosub @GRAV_6826
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $grav_hi_loop($6397,10f) {offsetTop} $6357($6397,10f) {key} $grav_hi_1($6397,10s)

:GRAV_13312
if 
  $grav_on_table == 1
goto_if_false @GRAV_13379
gosub @GRAV_6826
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $6327($6397,10f) {offsetTop} $6367($6397,10f) {key} $grav_hi_2($6397,10s)
goto @GRAV_13422

:GRAV_13379
gosub @GRAV_6826
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $6327($6397,10f) {offsetTop} $6367($6397,10f) {key} $grav_hi_2($6397,10s)

:GRAV_13422
if 
  $grav_on_table == 2
goto_if_false @GRAV_13489
gosub @GRAV_6826
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $6337($6397,10f) {offsetTop} $6377($6397,10f) {key} $grav_hi_3($6397,10s)
goto @GRAV_13532

:GRAV_13489
gosub @GRAV_6826
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $6337($6397,10f) {offsetTop} $6377($6397,10f) {key} $grav_hi_3($6397,10s)

:GRAV_13532
gosub @GRAV_6826
set_text_right_justify True
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text_with_number $6347($6397,10f) {offsetTop} $6387($6397,10f) {key} 'GRAV_LV' {num} $grav_hi_s($6397,10i)

:GRAV_13588
return 

:GRAV_13590
$grav_current = generate_random_int_in_range 1 {max} 30
if 
  $grav_current == 1
goto_if_false @GRAV_13692
if 
  $grav_used == 0
goto_if_false @GRAV_13685
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[23]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[15]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[36]
$grav_used = 1
goto @GRAV_13692

:GRAV_13685
goto @GRAV_13590

:GRAV_13692
if 
  $grav_current == 2
goto_if_false @GRAV_13785
if 
  $6409 == 0
goto_if_false @GRAV_13778
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[34]
$6409 = 1
goto @GRAV_13785

:GRAV_13778
goto @GRAV_13590

:GRAV_13785
if 
  $grav_current == 3
goto_if_false @GRAV_13878
if 
  $6410 == 0
goto_if_false @GRAV_13871
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[21]
$6410 = 1
goto @GRAV_13878

:GRAV_13871
goto @GRAV_13590

:GRAV_13878
if 
  $grav_current == 4
goto_if_false @GRAV_13971
if 
  $6411 == 0
goto_if_false @GRAV_13964
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[12]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[27]
$6411 = 1
goto @GRAV_13971

:GRAV_13964
goto @GRAV_13590

:GRAV_13971
if 
  $grav_current == 5
goto_if_false @GRAV_14064
if 
  $6412 == 0
goto_if_false @GRAV_14057
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[25]
$6412 = 1
goto @GRAV_14064

:GRAV_14057
goto @GRAV_13590

:GRAV_14064
if 
  $grav_current == 6
goto_if_false @GRAV_14157
if 
  $6413 == 0
goto_if_false @GRAV_14150
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[31]
$6413 = 1
goto @GRAV_14157

:GRAV_14150
goto @GRAV_13590

:GRAV_14157
if 
  $grav_current == 7
goto_if_false @GRAV_14250
if 
  $6414 == 0
goto_if_false @GRAV_14243
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[24]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[13]
$6414 = 1
goto @GRAV_14250

:GRAV_14243
goto @GRAV_13590

:GRAV_14250
if 
  $grav_current == 8
goto_if_false @GRAV_14343
if 
  $6415 == 0
goto_if_false @GRAV_14336
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[21]
$6415 = 1
goto @GRAV_14343

:GRAV_14336
goto @GRAV_13590

:GRAV_14343
if 
  $grav_current == 9
goto_if_false @GRAV_14436
if 
  $6416 == 0
goto_if_false @GRAV_14429
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[29]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[14]
$6416 = 1
goto @GRAV_14436

:GRAV_14429
goto @GRAV_13590

:GRAV_14436
if 
  $grav_current == 10
goto_if_false @GRAV_14529
if 
  $6417 == 0
goto_if_false @GRAV_14522
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[30]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[13]
$6417 = 1
goto @GRAV_14529

:GRAV_14522
goto @GRAV_13590

:GRAV_14529
if 
  $grav_current == 11
goto_if_false @GRAV_14622
if 
  $6418 == 0
goto_if_false @GRAV_14615
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[11]
$6418 = 1
goto @GRAV_14622

:GRAV_14615
goto @GRAV_13590

:GRAV_14622
if 
  $grav_current == 12
goto_if_false @GRAV_14715
if 
  $6419 == 0
goto_if_false @GRAV_14708
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6419 = 1
goto @GRAV_14715

:GRAV_14708
goto @GRAV_13590

:GRAV_14715
if 
  $grav_current == 13
goto_if_false @GRAV_14808
if 
  $6420 == 0
goto_if_false @GRAV_14801
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6420 = 1
goto @GRAV_14808

:GRAV_14801
goto @GRAV_13590

:GRAV_14808
if 
  $grav_current == 14
goto_if_false @GRAV_14901
if 
  $6421 == 0
goto_if_false @GRAV_14894
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[34]
$6421 = 1
goto @GRAV_14901

:GRAV_14894
goto @GRAV_13590

:GRAV_14901
if 
  $grav_current == 15
goto_if_false @GRAV_14994
if 
  $6422 == 0
goto_if_false @GRAV_14987
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6422 = 1
goto @GRAV_14994

:GRAV_14987
goto @GRAV_13590

:GRAV_14994
if 
  $grav_current == 16
goto_if_false @GRAV_15087
if 
  $6423 == 0
goto_if_false @GRAV_15080
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6423 = 1
goto @GRAV_15087

:GRAV_15080
goto @GRAV_13590

:GRAV_15087
if 
  $grav_current == 17
goto_if_false @GRAV_15180
if 
  $6424 == 0
goto_if_false @GRAV_15173
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[23]
$6424 = 1
goto @GRAV_15180

:GRAV_15173
goto @GRAV_13590

:GRAV_15180
if 
  $grav_current == 18
goto_if_false @GRAV_15273
if 
  $6425 == 0
goto_if_false @GRAV_15266
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[10]
$6425 = 1
goto @GRAV_15273

:GRAV_15266
goto @GRAV_13590

:GRAV_15273
if 
  $grav_current == 19
goto_if_false @GRAV_15366
if 
  $6426 == 0
goto_if_false @GRAV_15359
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[33]
$6426 = 1
goto @GRAV_15366

:GRAV_15359
goto @GRAV_13590

:GRAV_15366
if 
  $grav_current == 20
goto_if_false @GRAV_15459
if 
  $6427 == 0
goto_if_false @GRAV_15452
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[21]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[24]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[30]
$6427 = 1
goto @GRAV_15459

:GRAV_15452
goto @GRAV_13590

:GRAV_15459
if 
  $grav_current == 21
goto_if_false @GRAV_15552
if 
  $6428 == 0
goto_if_false @GRAV_15545
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[23]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[24]
$6428 = 1
goto @GRAV_15552

:GRAV_15545
goto @GRAV_13590

:GRAV_15552
if 
  $grav_current == 22
goto_if_false @GRAV_15645
if 
  $6429 == 0
goto_if_false @GRAV_15638
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[34]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[29]
$6429 = 1
goto @GRAV_15645

:GRAV_15638
goto @GRAV_13590

:GRAV_15645
if 
  $grav_current == 23
goto_if_false @GRAV_15738
if 
  $6430 == 0
goto_if_false @GRAV_15731
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[15]
$6430 = 1
goto @GRAV_15738

:GRAV_15731
goto @GRAV_13590

:GRAV_15738
if 
  $grav_current == 24
goto_if_false @GRAV_15831
if 
  $6431 == 0
goto_if_false @GRAV_15824
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[17]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6431 = 1
goto @GRAV_15831

:GRAV_15824
goto @GRAV_13590

:GRAV_15831
if 
  $grav_current == 25
goto_if_false @GRAV_15924
if 
  $6432 == 0
goto_if_false @GRAV_15917
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[24]
$6432 = 1
goto @GRAV_15924

:GRAV_15917
goto @GRAV_13590

:GRAV_15924
if 
  $grav_current == 26
goto_if_false @GRAV_16017
if 
  $6433 == 0
goto_if_false @GRAV_16010
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[15]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6433 = 1
goto @GRAV_16017

:GRAV_16010
goto @GRAV_13590

:GRAV_16017
if 
  $grav_current == 27
goto_if_false @GRAV_16110
if 
  $6434 == 0
goto_if_false @GRAV_16103
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[27]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[22]
$6434 = 1
goto @GRAV_16110

:GRAV_16103
goto @GRAV_13590

:GRAV_16110
if 
  $grav_current == 28
goto_if_false @GRAV_16203
if 
  $6435 == 0
goto_if_false @GRAV_16196
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[36]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6435 = 1
goto @GRAV_16203

:GRAV_16196
goto @GRAV_13590

:GRAV_16203
if 
  $grav_current == 29
goto_if_false @GRAV_16296
if 
  $6436 == 0
goto_if_false @GRAV_16289
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[27]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[12]
$6436 = 1
goto @GRAV_16296

:GRAV_16289
goto @GRAV_13590

:GRAV_16296
return 

//-------------Mission 7---------------
// Originally: Video Game: Inside Track Betting

:OTB
gosub @OTB_16
gosub @OTB_13203
terminate_this_script 

:OTB_16
$onmission = 1
script_name 'OTB'
wait 0
load_mission_text 'OTB'
use_text_commands True
load_texture_dictionary 'LD_OTB2'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1821
load_sprite 1 {spriteName} "BUTNA"
load_sprite 2 {spriteName} "BUTNB"
load_sprite 3 {spriteName} "BUTNC"
load_sprite 4 {spriteName} "RIC1"
load_sprite 5 {spriteName} "RIC2"
load_sprite 6 {spriteName} "RIC3"
load_sprite 7 {spriteName} "RIC4"
load_sprite 8 {spriteName} "RIC5"
load_sprite 9 {spriteName} "BACKBET"
load_sprite 10 {spriteName} "BUTNAO"
load_sprite 11 {spriteName} "BUTNBO"
34@ = 58.8281
35@ = 225.0068
36@ = 131.5202
set_lvar_float_to_lvar_float 37@ = 36@
add_float_lvar_to_float_lvar 37@ += 34@
set_lvar_float_to_lvar_float 38@ = 37@
add_float_lvar_to_float_lvar 38@ += 34@
set_lvar_float_to_lvar_float 39@ = 38@
add_float_lvar_to_float_lvar 39@ += 34@
set_lvar_float_to_lvar_float 40@ = 39@
add_float_lvar_to_float_lvar 40@ += 34@
45@ = 93.8682
46@ = 42.34
47@ = 463.313
55@ = 191.6589
set_lvar_float_to_lvar_float 48@ = 47@
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_lvar_float 56@ = 55@
set_lvar_float_to_lvar_float 49@ = 47@
set_lvar_float_to_lvar_float 57@ = 55@
add_float_lvar_to_float_lvar 57@ += 46@
set_lvar_float_to_lvar_float 50@ = 47@
add_float_lvar_to_float_lvar 50@ += 45@
set_lvar_float_to_lvar_float 58@ = 55@
add_float_lvar_to_float_lvar 58@ += 46@
set_lvar_float_to_lvar_float 51@ = 49@
set_lvar_float_to_lvar_float 59@ = 57@
add_float_lvar_to_float_lvar 59@ += 46@
set_lvar_float_to_lvar_float 52@ = 51@
add_float_lvar_to_float_lvar 52@ += 45@
set_lvar_float_to_lvar_float 60@ = 59@
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 61@ = 59@
add_float_lvar_to_float_lvar 61@ += 46@
set_lvar_float_to_lvar_float 54@ = 51@
add_float_lvar_to_float_lvar 54@ += 45@
set_lvar_float_to_lvar_float 62@ = 59@
add_float_lvar_to_float_lvar 62@ += 46@
63@ = 510.0702
64@ = 385.0263
65@ = 1
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 1
71@ = 1
72@ = 1
73@ = 1
74@ = 1
75@ = 1
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 5
90@ = 25
91@ = 100
92@ = 250
93@ = 1000
94@ = 5000
95@ = 10000
set_lvar_text_label 97@s = 'HORS__1'
set_lvar_text_label 99@s = 'HORS__2'
set_lvar_text_label 101@s = 'HORS__3'
set_lvar_text_label 103@s = 'HORS__4'
set_lvar_text_label 105@s = 'HORS__5'
set_lvar_text_label 107@s = 'HORS__6'
set_lvar_text_label 109@s = 'HORS__7'
set_lvar_text_label 111@s = 'HORS__8'
set_lvar_text_label 113@s = 'HORS__9'
set_lvar_text_label 115@s = 'HORS_10'
set_lvar_text_label 117@s = 'HORS_11'
set_lvar_text_label 119@s = 'HORS_12'
set_lvar_text_label 121@s = 'HORS_13'
set_lvar_text_label 123@s = 'HORS_14'
set_lvar_text_label 125@s = 'HORS_15'
set_lvar_text_label 127@s = 'HORS_16'
set_lvar_text_label 129@s = 'HORS_17'
set_lvar_text_label 131@s = 'HORS_18'
set_lvar_text_label 133@s = 'HORS_19'
set_lvar_text_label 135@s = 'HORS_20'
set_lvar_text_label 137@s = 'HORS_21'
set_lvar_text_label 139@s = 'HORS_22'
set_lvar_text_label 141@s = 'HORS_23'
set_lvar_text_label 143@s = 'HORS_24'
set_lvar_text_label 145@s = 'HORS_25'
set_lvar_text_label 147@s = 'HORS_26'
set_lvar_text_label 149@s = 'HORS_27'
set_lvar_text_label 151@s = 'HORS_28'
set_lvar_text_label 153@s = 'HORS_29'
set_lvar_text_label 155@s = 'HORS_30'
set_lvar_text_label 157@s = 'HORS_31'
set_lvar_text_label 159@s = 'HORS_32'
set_lvar_text_label 161@s = 'HORS_33'
set_lvar_text_label 163@s = 'HORS_34'
set_lvar_text_label 165@s = 'HORS_35'
set_lvar_text_label 167@s = 'HORS_36'
set_lvar_text_label 169@s = 'HORS_37'
set_lvar_text_label 171@s = 'HORS_38'
set_lvar_text_label 173@s = 'HORS_39'
set_lvar_text_label 175@s = 'HORS_40'
set_lvar_text_label 177@s = 'HORS_41'
set_lvar_text_label 179@s = 'HORS_42'
set_lvar_text_label 181@s = 'HORS_43'
set_lvar_text_label 183@s = 'HORS_44'
set_lvar_text_label 185@s = 'HORS_45'
set_lvar_text_label 187@s = 'HORS_46'
set_lvar_text_label 189@s = 'HORS_47'
set_lvar_text_label 191@s = 'HORS_48'
set_lvar_text_label 193@s = 'HORS_49'
set_lvar_text_label 195@s = 'HORS_50'
set_lvar_text_label 197@s = 'HORS_51'
set_lvar_text_label 199@s = 'HORS_52'
set_lvar_text_label 201@s = 'HORS_53'
set_lvar_text_label 203@s = 'HORS_54'
set_lvar_text_label 205@s = 'HORS_55'
set_lvar_text_label 207@s = 'HORS_56'
set_lvar_text_label 209@s = 'HORS_57'
set_lvar_text_label 211@s = 'HORS_58'
set_lvar_text_label 213@s = 'HORS_59'
set_lvar_text_label 215@s = 'HORS_60'
set_lvar_text_label 217@s = 'HORS_61'
set_lvar_text_label 219@s = 'HORS_62'
set_lvar_text_label 221@s = 'HORS_63'
set_lvar_text_label 223@s = 'HORS_64'
set_lvar_text_label 225@s = 'HORS_65'
set_lvar_text_label 227@s = 'HORS_66'
set_lvar_text_label 229@s = 'HORS_67'
set_lvar_text_label 231@s = 'HORS_68'
set_lvar_text_label 233@s = 'HORS_69'
set_lvar_text_label 235@s = 'HORS_70'
set_lvar_text_label 237@s = 'HORS_71'
set_lvar_text_label 239@s = 'HORS_72'
set_lvar_text_label 241@s = 'HORS_73'
set_lvar_text_label 243@s = 'HORS_74'
set_lvar_text_label 245@s = 'HORS_75'
set_lvar_text_label 247@s = 'HORS_76'
set_lvar_text_label 249@s = 'HORS_77'
set_lvar_text_label 251@s = 'HORS_78'
set_lvar_text_label 253@s = 'HORS_79'
set_lvar_text_label 255@s = 'HORS_80'
set_lvar_text_label 257@s = 'HORS_81'
set_lvar_text_label 259@s = 'HORS_82'
set_lvar_text_label 261@s = 'HORS_83'
set_lvar_text_label 263@s = 'HORS_84'
set_lvar_text_label 265@s = 'HORS_85'
set_lvar_text_label 267@s = 'HORS_86'
set_lvar_text_label 269@s = 'HORS_87'
set_lvar_text_label 271@s = 'HORS_88'
set_lvar_text_label 273@s = 'HORS_89'
set_lvar_text_label 275@s = 'HORS_90'
set_lvar_text_label 277@s = 'HORS_91'
set_lvar_text_label 279@s = 'HORS_92'
set_lvar_text_label 281@s = 'HORS_93'
set_lvar_text_label 283@s = 'HORS_94'
set_lvar_text_label 285@s = 'HORS_95'
set_lvar_text_label 287@s = 'HORS_96'
set_lvar_text_label 289@s = 'HORS_97'
set_lvar_text_label 291@s = 'HORS_98'
set_lvar_text_label 293@s = 'HORS_99'
set_lvar_text_label 295@s = 'HORS100'
set_lvar_text_label 297@s = 'HORS101'
set_lvar_text_label 299@s = 'HORS102'
set_lvar_text_label 301@s = 'HORS103'
set_lvar_text_label 303@s = 'HORS104'
set_lvar_text_label 305@s = 'HORS105'
set_lvar_text_label 307@s = 'HORS106'
set_lvar_text_label 309@s = 'HORS107'
set_lvar_text_label 311@s = 'HORS108'
set_lvar_text_label 313@s = 'HORS109'
set_lvar_text_label 315@s = 'HORS110'
set_lvar_text_label 317@s = 'HORS111'
set_lvar_text_label 319@s = 'HORS112'
set_lvar_text_label 321@s = 'HORS113'
set_lvar_text_label 323@s = 'HORS114'
set_lvar_text_label 325@s = 'HORS115'
set_lvar_text_label 327@s = 'HORS116'
set_lvar_text_label 329@s = 'HORS117'
set_lvar_text_label 331@s = 'HORS118'
set_lvar_text_label 333@s = 'HORS119'
set_lvar_text_label 335@s = 'HORS120'
set_lvar_text_label 337@s = 'HORS121'
set_lvar_text_label 339@s = 'HORS122'
set_lvar_text_label 341@s = 'HORS123'
set_lvar_text_label 343@s = 'HORS124'
set_lvar_text_label 345@s = 'HORS125'
set_lvar_text_label 347@s = 'HORS126'
set_lvar_text_label 349@s = 'HORS127'
set_lvar_text_label 351@s = 'HORS128'
set_lvar_text_label 353@s = 'HORS129'
set_lvar_text_label 355@s = 'HORS130'
set_lvar_text_label 357@s = 'HORS131'
set_lvar_text_label 359@s = 'HORS132'
set_lvar_text_label 361@s = 'HORS133'
set_lvar_text_label 363@s = 'HORS134'
set_lvar_text_label 365@s = 'HORS135'
set_lvar_text_label 367@s = 'HORS136'
set_lvar_text_label 369@s = 'HORS137'
set_lvar_text_label 371@s = 'HORS138'
set_lvar_text_label 373@s = 'HORS139'
set_lvar_text_label 375@s = 'HORS140'
set_lvar_text_label 377@s = 'HORS141'
set_lvar_text_label 379@s = 'HORS142'
set_lvar_text_label 381@s = 'HORS143'
set_lvar_text_label 383@s = 'HORS144'
set_lvar_text_label 385@s = 'HORS145'
set_lvar_text_label 387@s = 'HORS146'
set_lvar_text_label 389@s = 'HORS147'
set_lvar_text_label 391@s = 'HORS148'
set_lvar_text_label 393@s = 'HORS149'
set_lvar_text_label 395@s = 'HORS150'
set_lvar_text_label 397@s = 'HORS151'
set_lvar_text_label 399@s = 'HORS152'
set_lvar_text_label 401@s = 'HORS153'
set_lvar_text_label 403@s = 'HORS154'
set_lvar_text_label 405@s = 'HORS155'
set_lvar_text_label 407@s = 'HORS156'
set_lvar_text_label 409@s = 'HORS157'
set_lvar_text_label 411@s = 'HORS158'
set_lvar_text_label 413@s = 'HORS159'
set_lvar_text_label 415@s = 'HORS160'
set_lvar_text_label 417@s = 'HORS161'
set_lvar_text_label 419@s = 'HORS162'
set_lvar_text_label 421@s = 'HORS163'
set_lvar_text_label 423@s = 'HORS164'
set_lvar_text_label 425@s = 'HORS165'
set_lvar_text_label 427@s = 'HORS166'
set_lvar_text_label 429@s = 'HORS167'
431@ = -1
432@ = -1
433@ = -1
434@ = -1
435@ = -1
431@ = generate_random_int_in_range 0 {max} 167

:OTB_3133
if or
  is_int_lvar_equal_to_int_lvar 431@ == 432@
  432@ == -1
goto_if_false @OTB_3176
432@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3133

:OTB_3176
if or
  is_int_lvar_equal_to_int_lvar 431@ == 433@
  is_int_lvar_equal_to_int_lvar 432@ == 433@
  433@ == -1
goto_if_false @OTB_3227
433@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3176

:OTB_3227
if or
  is_int_lvar_equal_to_int_lvar 431@ == 434@
  is_int_lvar_equal_to_int_lvar 432@ == 434@
  is_int_lvar_equal_to_int_lvar 433@ == 434@
  434@ == -1
goto_if_false @OTB_3286
434@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3227

:OTB_3286
if or
  is_int_lvar_equal_to_int_lvar 431@ == 435@
  is_int_lvar_equal_to_int_lvar 432@ == 435@
  is_int_lvar_equal_to_int_lvar 433@ == 435@
  is_int_lvar_equal_to_int_lvar 434@ == 435@
  435@ == -1
goto_if_false @OTB_3353
435@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3286

:OTB_3353
438@ = 1
439@ = 1
440@ = 1
441@ = 1
442@ = 1
436@ = 0

:OTB_3395
if 
  5 > 436@
goto_if_false @OTB_3504
437@ = 0

:OTB_3420
if 
  5 > 437@
goto_if_false @OTB_3490
if 
  is_int_lvar_greater_than_int_lvar 431@(437@,5i) > 431@(436@,5i)
goto_if_false @OTB_3476
438@(436@,5i) += 1

:OTB_3476
437@ += 1
goto @OTB_3420

:OTB_3490
436@ += 1
goto @OTB_3395

:OTB_3504
436@ = 0

:OTB_3511
if 
  5 > 436@
goto_if_false @OTB_3713
if 
  438@(436@,5i) == 1
goto_if_false @OTB_3563
set_lvar_int_to_lvar_int 443@ = 431@(436@,5i)

:OTB_3563
if 
  438@(436@,5i) == 2
goto_if_false @OTB_3597
set_lvar_int_to_lvar_int 444@ = 431@(436@,5i)

:OTB_3597
if 
  438@(436@,5i) == 3
goto_if_false @OTB_3631
set_lvar_int_to_lvar_int 445@ = 431@(436@,5i)

:OTB_3631
if 
  438@(436@,5i) == 4
goto_if_false @OTB_3665
set_lvar_int_to_lvar_int 446@ = 431@(436@,5i)

:OTB_3665
if 
  438@(436@,5i) == 5
goto_if_false @OTB_3699
set_lvar_int_to_lvar_int 447@ = 431@(436@,5i)

:OTB_3699
436@ += 1
goto @OTB_3511

:OTB_3713
448@ = generate_random_int_in_range 2 {max} 4
449@ = generate_random_int_in_range 4 {max} 6
450@ = generate_random_int_in_range 6 {max} 9
451@ = generate_random_int_in_range 9 {max} 11
452@ = generate_random_int_in_range 11 {max} 13
453@ = 0

:OTB_3765
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @OTB_3791
wait 0
goto @OTB_3765

:OTB_3791
do_fade 0 {direction} Fade.In
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255

:OTB_3828
wait 0
$game_timer = get_game_timer 
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 224.0 {width} 640.0 {height} 448.0 {r} 150 {g} 150 {b} 150 {a} 255
gosub @OTB_13478
set_text_scale 0.759 {heightScale} 2.8293
set_text_centre True
display_text 204.407 {offsetTop} 39.1245 {key} 'HRACE01'
454@ = 60.1776
gosub @OTB_13478
set_text_scale 0.527 {heightScale} 2.0
455@ = get_string_width 'XSELECT'
display_text 454@ {offsetTop} 395.7635 {key} 'XSELECT'
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
gosub @OTB_13478
set_text_scale 0.527 {heightScale} 2.0
if 
  76@ == 0
goto_if_false @OTB_4072
455@ = get_string_width 'TRIEXIT'
display_text 454@ {offsetTop} 395.7635 {key} 'TRIEXIT'
goto @OTB_4105

:OTB_4072
455@ = get_string_width 'TRIBACK'
display_text 454@ {offsetTop} 395.7635 {key} 'TRIBACK'

:OTB_4105
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
gosub @OTB_13478
set_text_scale 0.527 {heightScale} 2.0
if 
  76@ == 0
goto_if_false @OTB_4184
display_text 454@ {offsetTop} 395.7635 {key} 'DPADNUD'
goto @OTB_4203

:OTB_4184
display_text 454@ {offsetTop} 395.7635 {key} 'DPADNAV'

:OTB_4203
96@ = store_score $player1
gosub @OTB_13478
set_text_scale 0.4753 {heightScale} 2.2289
set_text_centre True
display_text_with_number 508.6669 {offsetTop} 18.0933 {key} 'YOURCSH' {num} 96@
456@, 457@, 458@, 459@ = get_position_of_analogue_sticks PadId.Pad1
if 
  76@ == 0
goto_if_false @OTB_5062
if or
  -100 > 457@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @OTB_4476
if 
  70@ == 0
goto_if_false @OTB_4469
if 
  66@ == 1
goto_if_false @OTB_4366
66@ = 0
65@ = 1

:OTB_4366
if 
  67@ == 1
goto_if_false @OTB_4398
67@ = 0
66@ = 1

:OTB_4398
if 
  68@ == 1
goto_if_false @OTB_4430
68@ = 0
67@ = 1

:OTB_4430
if 
  69@ == 1
goto_if_false @OTB_4462
69@ = 0
68@ = 1

:OTB_4462
70@ = 1

:OTB_4469
goto @OTB_4483

:OTB_4476
70@ = 0

:OTB_4483
if or
  457@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @OTB_4667
if 
  71@ == 0
goto_if_false @OTB_4660
if 
  68@ == 1
goto_if_false @OTB_4557
68@ = 0
69@ = 1

:OTB_4557
if 
  67@ == 1
goto_if_false @OTB_4589
67@ = 0
68@ = 1

:OTB_4589
if 
  66@ == 1
goto_if_false @OTB_4621
66@ = 0
67@ = 1

:OTB_4621
if 
  65@ == 1
goto_if_false @OTB_4653
65@ = 0
66@ = 1

:OTB_4653
71@ = 1

:OTB_4660
goto @OTB_4674

:OTB_4667
71@ = 0

:OTB_4674
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_4987
if 
  74@ == 0
goto_if_false @OTB_4980
if 
  65@ == 1
goto_if_false @OTB_4755
66@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4755
if 
  66@ == 1
goto_if_false @OTB_4801
65@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4801
if 
  67@ == 1
goto_if_false @OTB_4847
65@ = 2
66@ = 2
68@ = 2
69@ = 2

:OTB_4847
if 
  68@ == 1
goto_if_false @OTB_4893
65@ = 2
66@ = 2
67@ = 2
69@ = 2

:OTB_4893
if 
  69@ == 1
goto_if_false @OTB_4939
65@ = 2
66@ = 2
67@ = 2
68@ = 2

:OTB_4939
74@ = 1
78@ = 1
76@ += 1
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAmmunationBuyWeapon

:OTB_4980
goto @OTB_4994

:OTB_4987
74@ = 0

:OTB_4994
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_5055
if 
  75@ == 0
goto_if_false @OTB_5048
75@ = 1
do_fade 0 {direction} Fade.Out
wait 0
return 

:OTB_5048
goto @OTB_5062

:OTB_5055
75@ = 0

:OTB_5062
460@ = 0

:OTB_5069
if 
  5 > 460@
goto_if_false @OTB_5607
if 
  65@(460@,5i) == 0
goto_if_false @OTB_5145
draw_sprite 1 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_5145
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5203
draw_sprite 10 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_5203
if 
  65@(460@,5i) == 2
goto_if_false @OTB_5258
draw_sprite 1 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 50 {g} 50 {b} 50 {a} 255

:OTB_5258
set_lvar_float_to_lvar_float 41@ = 35@
41@ -= 130.0
set_lvar_float_to_lvar_float 42@ = 36@(460@,5f)
42@ -= 8.0
set_lvar_int_to_lvar_int 461@ = 460@
461@ += 4
draw_sprite 461@ {offsetLeft} 41@ {offsetTop} 42@ {width} 64.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 105.0
set_lvar_float_to_lvar_float 44@ = 36@(460@,5f)
44@ -= 24.0
gosub @OTB_13478
set_text_scale 0.63 {heightScale} 3.0
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5457
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_5457
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
display_text 43@ {offsetTop} 44@ {key} 97@(461@,167s)
43@ += 254.2121
gosub @OTB_13478
set_text_scale 0.7 {heightScale} 3.0
set_text_right_justify True
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5569
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_5569
display_text_with_number 43@ {offsetTop} 44@ {key} 'ODDS' {num} 448@(460@,5i)
460@ += 1
goto @OTB_5069

:OTB_5607
if 
  76@ == 1
goto_if_false @OTB_6811
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_6009
if 
  75@ == 0
goto_if_false @OTB_6002
if 
  65@ == 1
goto_if_false @OTB_5706
66@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5706
if 
  66@ == 1
goto_if_false @OTB_5752
65@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5752
if 
  67@ == 1
goto_if_false @OTB_5798
65@ = 0
66@ = 0
68@ = 0
69@ = 0

:OTB_5798
if 
  68@ == 1
goto_if_false @OTB_5844
65@ = 0
66@ = 0
67@ = 0
69@ = 0

:OTB_5844
if 
  69@ == 1
goto_if_false @OTB_5890
65@ = 0
66@ = 0
67@ = 0
68@ = 0

:OTB_5890
75@ = 1
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
76@ -= 1
add_score $player1 {money} 87@
87@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbIncreaseBet

:OTB_6002
goto @OTB_6016

:OTB_6009
75@ = 0

:OTB_6016
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_6434
if 
  74@ == 0
goto_if_false @OTB_6427
if 
  not is_char_dead $scplayer
goto_if_false @OTB_6081
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:OTB_6081
if and
  86@ > 0
  87@ > 0
goto_if_false @OTB_6133
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbPlaceBet
453@ = 1

:OTB_6133
if 
  78@ == 1
goto_if_false @OTB_6194
78@ = 2
add_score $player1 {money} 87@
set_lvar_int_to_lvar_int 87@ = 88@
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbBetZero

:OTB_6194
460@ = 1

:OTB_6201
if 
  8 > 460@
goto_if_false @OTB_6420
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6406
78@(460@,8i) = 2
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ -= 1
set_lvar_int_to_lvar_int 466@ = 87@
add_int_lvar_to_int_lvar 466@ += 88@(460@,8i)
if and
  is_score_greater $player1 {money} 461@
  9999999 > 466@
goto_if_false @OTB_6386
add_int_lvar_to_int_lvar 87@ += 88@(460@,8i)
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ *= -1
add_score $player1 {money} 461@
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbIncreaseBet
goto @OTB_6406

:OTB_6386
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbNoCash

:OTB_6406
460@ += 1
goto @OTB_6201

:OTB_6420
74@ = 1

:OTB_6427
goto @OTB_6811

:OTB_6434
if 
  74@ == 1
goto_if_false @OTB_6531
460@ = 0

:OTB_6459
if 
  8 > 460@
goto_if_false @OTB_6524
if 
  78@(460@,8i) == 2
goto_if_false @OTB_6510
78@(460@,8i) = 1

:OTB_6510
460@ += 1
goto @OTB_6459

:OTB_6524
74@ = 0

:OTB_6531
if or
  -100 > 456@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @OTB_6594
if 
  72@ == 0
goto_if_false @OTB_6587
72@ = 1
gosub @OTB_13546

:OTB_6587
goto @OTB_6601

:OTB_6594
72@ = 0

:OTB_6601
if or
  456@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @OTB_6664
if 
  73@ == 0
goto_if_false @OTB_6657
73@ = 1
gosub @OTB_13684

:OTB_6657
goto @OTB_6671

:OTB_6664
73@ = 0

:OTB_6671
if or
  -100 > 457@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @OTB_6734
if 
  70@ == 0
goto_if_false @OTB_6727
70@ = 1
gosub @OTB_13822

:OTB_6727
goto @OTB_6741

:OTB_6734
70@ = 0

:OTB_6741
if or
  457@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @OTB_6804
if 
  71@ == 0
goto_if_false @OTB_6797
71@ = 1
gosub @OTB_14092

:OTB_6797
goto @OTB_6811

:OTB_6804
71@ = 0

:OTB_6811
460@ = 0

:OTB_6818
if 
  8 > 460@
goto_if_false @OTB_7161
if 
  78@(460@,8i) == 0
goto_if_false @OTB_6898
draw_sprite 2 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_6898
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6960
draw_sprite 11 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_6960
if 
  78@(460@,8i) == 2
goto_if_false @OTB_7022
draw_sprite 3 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_7022
gosub @OTB_13478
set_text_centre True
set_text_scale 0.58 {heightScale} 2.4957
set_lvar_float_to_lvar_float 467@ = 55@(460@,8f)
467@ -= 28.3404
if 
  78@(460@,8i) > 0
goto_if_false @OTB_7119
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_7119
display_text_with_number 47@(460@,8f) {offsetTop} 467@ {key} 'DOLLAR' {num} 88@(460@,8i)
460@ += 1
goto @OTB_6818

:OTB_7161
if 
  86@ == 0
goto_if_false @OTB_7280
if 
  87@ > 0
goto_if_false @OTB_7240
draw_sprite 1 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 150 {g} 150 {b} 150 {a} 255
goto @OTB_7273

:OTB_7240
draw_sprite 1 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 50 {g} 50 {b} 50 {a} 255

:OTB_7273
goto @OTB_7316

:OTB_7280
draw_sprite 10 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_7316
gosub @OTB_13478
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @OTB_7367
set_text_scale 0.5 {heightScale} 2.996
goto @OTB_7379

:OTB_7367
set_text_scale 0.609 {heightScale} 2.996

:OTB_7379
set_text_centre True
if 
  86@ > 0
goto_if_false @OTB_7431
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_7431
display_text 509.6968 {offsetTop} 351.0 {key} 'PLACBET'
gosub @OTB_13478
set_text_scale 0.8 {heightScale} 3.3297
set_text_centre True
display_text_with_number 509.2133 {offsetTop} 84.9941 {key} 'DOLLAR' {num} 87@
if 
  453@ == 1
goto_if_false @OTB_7524
goto @OTB_7531

:OTB_7524
goto @OTB_3828

:OTB_7531
remove_texture_dictionary 
load_texture_dictionary 'LD_OTB'
load_sprite 1 {spriteName} "BCKGRND"
load_sprite 2 {spriteName} "BUSHES"
load_sprite 3 {spriteName} "BRIDE1"
load_sprite 4 {spriteName} "BRIDE2"
load_sprite 5 {spriteName} "BRIDE3"
load_sprite 6 {spriteName} "BRIDE4"
load_sprite 7 {spriteName} "BRIDE5"
load_sprite 8 {spriteName} "BRIDE6"
load_sprite 9 {spriteName} "BRIDE7"
load_sprite 10 {spriteName} "BRIDE8"
load_sprite 11 {spriteName} "TREES"
load_sprite 12 {spriteName} "FEN"
load_sprite 13 {spriteName} "POLE2"
load_sprite 14 {spriteName} "RRIDE1"
load_sprite 15 {spriteName} "RRIDE2"
load_sprite 16 {spriteName} "RRIDE3"
load_sprite 17 {spriteName} "RRIDE4"
load_sprite 18 {spriteName} "RRIDE5"
load_sprite 19 {spriteName} "RRIDE6"
load_sprite 20 {spriteName} "RRIDE7"
load_sprite 21 {spriteName} "RRIDE8"
load_sprite 22 {spriteName} "YRIDE1"
load_sprite 23 {spriteName} "YRIDE2"
load_sprite 24 {spriteName} "YRIDE3"
load_sprite 25 {spriteName} "YRIDE4"
load_sprite 26 {spriteName} "YRIDE5"
load_sprite 27 {spriteName} "YRIDE6"
load_sprite 28 {spriteName} "YRIDE7"
load_sprite 29 {spriteName} "YRIDE8"
load_sprite 30 {spriteName} "PRIDE1"
load_sprite 31 {spriteName} "PRIDE2"
load_sprite 32 {spriteName} "PRIDE3"
load_sprite 33 {spriteName} "PRIDE4"
load_sprite 34 {spriteName} "PRIDE5"
load_sprite 35 {spriteName} "PRIDE6"
load_sprite 36 {spriteName} "PRIDE7"
load_sprite 37 {spriteName} "PRIDE8"
load_sprite 38 {spriteName} "GRIDE1"
load_sprite 39 {spriteName} "GRIDE2"
load_sprite 40 {spriteName} "GRIDE3"
load_sprite 41 {spriteName} "GRIDE4"
load_sprite 42 {spriteName} "GRIDE5"
load_sprite 43 {spriteName} "GRIDE6"
load_sprite 44 {spriteName} "GRIDE7"
load_sprite 45 {spriteName} "GRIDE8"
load_sprite 46 {spriteName} "TVCORN"
load_sprite 47 {spriteName} "TVL"
load_sprite 48 {spriteName} "TVR"
load_sprite 49 {spriteName} "BLUE"
load_sprite 50 {spriteName} "HRS1"
load_sprite 51 {spriteName} "HRS2"
load_sprite 52 {spriteName} "HRS3"
load_sprite 53 {spriteName} "HRS4"
load_sprite 54 {spriteName} "HRS5"
load_sprite 55 {spriteName} "HRS6"
load_sprite 56 {spriteName} "HRS7"
load_sprite 57 {spriteName} "HRS8"
468@ = 0
469@ = 0
470@ = 0
471@ = 0
472@ = 0
473@ = 0
474@ = 0
475@ = 0
476@ = 0
477@ = 0
482@ = 128.0
set_lvar_float_to_lvar_float 483@ = 482@
483@ /= 10.0
set_lvar_float_to_lvar_float 481@ = 482@
sub_float_lvar_from_float_lvar 481@ -= 483@
set_lvar_float_to_lvar_float 483@ = 481@
483@ /= 10.0
set_lvar_float_to_lvar_float 480@ = 481@
sub_float_lvar_from_float_lvar 480@ -= 483@
set_lvar_float_to_lvar_float 483@ = 480@
483@ /= 10.0
set_lvar_float_to_lvar_float 479@ = 480@
sub_float_lvar_from_float_lvar 479@ -= 483@
set_lvar_float_to_lvar_float 483@ = 479@
483@ /= 10.0
set_lvar_float_to_lvar_float 478@ = 479@
sub_float_lvar_from_float_lvar 478@ -= 483@
488@ = 64.0
set_lvar_float_to_lvar_float 483@ = 488@
483@ /= 10.0
set_lvar_float_to_lvar_float 487@ = 488@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 483@ = 487@
483@ /= 10.0
set_lvar_float_to_lvar_float 486@ = 487@
sub_float_lvar_from_float_lvar 486@ -= 483@
set_lvar_float_to_lvar_float 483@ = 486@
483@ /= 10.0
set_lvar_float_to_lvar_float 485@ = 486@
sub_float_lvar_from_float_lvar 485@ -= 483@
set_lvar_float_to_lvar_float 483@ = 485@
483@ /= 10.0
set_lvar_float_to_lvar_float 484@ = 485@
sub_float_lvar_from_float_lvar 484@ -= 483@
489@ = 150.0
490@ = 150.0
491@ = 150.0
492@ = 150.0
493@ = 150.0
498@ = 300.0
set_lvar_float_to_lvar_float 483@ = 498@
483@ /= 10.0
set_lvar_float_to_lvar_float 497@ = 498@
sub_float_lvar_from_float_lvar 497@ -= 483@
set_lvar_float_to_lvar_float 483@ = 497@
483@ /= 10.0
set_lvar_float_to_lvar_float 496@ = 497@
sub_float_lvar_from_float_lvar 496@ -= 483@
set_lvar_float_to_lvar_float 483@ = 496@
483@ /= 10.0
set_lvar_float_to_lvar_float 495@ = 496@
sub_float_lvar_from_float_lvar 495@ -= 483@
set_lvar_float_to_lvar_float 483@ = 495@
483@ /= 10.0
set_lvar_float_to_lvar_float 494@ = 495@
sub_float_lvar_from_float_lvar 494@ -= 483@
499@ = 159.0
500@ = 159.0
501@ = 159.0
502@ = 159.0
503@ = 159.0
508@ = 261.0
set_lvar_float_to_lvar_float 483@ = 508@
483@ /= 10.0
set_lvar_float_to_lvar_float 507@ = 508@
sub_float_lvar_from_float_lvar 507@ -= 483@
set_lvar_float_to_lvar_float 483@ = 507@
483@ /= 10.0
set_lvar_float_to_lvar_float 506@ = 507@
sub_float_lvar_from_float_lvar 506@ -= 483@
set_lvar_float_to_lvar_float 483@ = 506@
483@ /= 10.0
set_lvar_float_to_lvar_float 505@ = 506@
sub_float_lvar_from_float_lvar 505@ -= 483@
set_lvar_float_to_lvar_float 483@ = 505@
483@ /= 10.0
set_lvar_float_to_lvar_float 504@ = 505@
sub_float_lvar_from_float_lvar 504@ -= 483@
514@ = 0.0
515@ = 0.0
516@ = 0.0
517@ = 0.0
518@ = 0.0
519@ = 4
520@ = 10
521@ = 13
522@ = 12
523@ = 5
526@ = 3
527@ = 14
528@ = 22
529@ = 30
530@ = 38
$game_timer = get_game_timer 
set_lvar_int_to_var_int 531@ = $game_timer
531@ += 25000
532@ = 512.0
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0
534@ = 0
535@ = 0
536@ = 0
537@ = 0
538@ = 0
544@ = 0
545@ = 0
546@ = 0
547@ = 0
548@ = 0
552@ = 0.0
553@ = 0.0
554@ = 0.0
555@ = 0.0
556@ = 0
557@ = 454.364
558@ = 152.8744
563@ = 0
564@ = 42
569@ = 96
574@ = 228
565@ = 209
570@ = 116
575@ = 116
566@ = 222
571@ = 185
576@ = 103
567@ = 133
572@ = 65
577@ = 190
568@ = 65
573@ = 190
578@ = 151
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbTrackStart
579@ = 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255

:OTB_9438
wait 0
$game_timer = get_game_timer 
if 
  556@ == 0
goto_if_false @OTB_9920
460@ = 0

:OTB_9472
if 
  5 > 460@
goto_if_false @OTB_9920
if 
  is_int_var_greater_than_int_lvar $game_timer > 468@(460@,5i)
goto_if_false @OTB_9578
generate_random_float_in_range -0.8 {max} 1.0 {var_result} 509@(460@,5f)
580@ = generate_random_int_in_range 1500 {max} 2500
set_lvar_int_to_var_int 468@(460@,5i) = $game_timer
add_int_lvar_to_int_lvar 468@(460@,5i) += 580@
473@(460@,5i) = 1

:OTB_9578
if 
  473@(460@,5i) == 1
goto_if_false @OTB_9790
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9695
sub_timed_val_from_float_lvar 514@(460@,5f) -=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9695
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9695
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9790
add_timed_val_to_float_lvar 514@(460@,5f) +=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9790
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9790
if 
  473@(460@,5i) > 0
goto_if_false @OTB_9828
add_timed_float_lvar_to_float_lvar 489@(460@,5f) +=@ 514@(460@,5f)

:OTB_9828
if 
  80.0 > 489@(460@,5f)
goto_if_false @OTB_9867
489@(460@,5f) = 80.0

:OTB_9867
if 
  489@(460@,5f) > 520.0
goto_if_false @OTB_9906
489@(460@,5f) = 520.0

:OTB_9906
460@ += 1
goto @OTB_9472

:OTB_9920
set_lvar_float_to_lvar_float 549@ = 552@
583@ = -76.0
582@ = 72.0
525@ = 1
551@ = 4.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 552@ = 549@
set_lvar_float_to_lvar_float 549@ = 554@
583@ = -64.0
582@ = 128.0
525@ = 2
551@ = 5.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 554@ = 549@
set_lvar_float_to_lvar_float 549@ = 553@
583@ = 0.0
582@ = 256.0
525@ = 11
551@ = 6.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 553@ = 549@
if 
  is_int_var_greater_than_int_lvar $game_timer > 531@
goto_if_false @OTB_10539
if 
  532@ > -200.0
goto_if_false @OTB_10220
if 
  556@ == 0
goto_if_false @OTB_10168
sub_timed_val_from_float_lvar 532@ -=@ 6.0

:OTB_10168
draw_sprite 13 {offsetLeft} 532@ {offsetTop} 224.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0

:OTB_10220
460@ = 0

:OTB_10227
if 
  5 > 460@
goto_if_false @OTB_10539
if 
  534@(460@,5i) == 0
goto_if_false @OTB_10525
if 
  is_float_lvar_greater_than_float_lvar 489@(460@,5f) > 533@
goto_if_false @OTB_10525
if 
  544@ == 0
goto_if_false @OTB_10333
534@(460@,5i) = 1
544@ += 1
goto @OTB_10525

:OTB_10333
if 
  545@ == 0
goto_if_false @OTB_10376
534@(460@,5i) = 2
545@ += 1
goto @OTB_10525

:OTB_10376
if 
  546@ == 0
goto_if_false @OTB_10419
534@(460@,5i) = 3
546@ += 1
goto @OTB_10525

:OTB_10419
if 
  547@ == 0
goto_if_false @OTB_10462
534@(460@,5i) = 4
547@ += 1
goto @OTB_10525

:OTB_10462
if 
  548@ == 0
goto_if_false @OTB_10525
534@(460@,5i) = 5
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbTrackStop
556@ += 1
548@ += 1

:OTB_10525
460@ += 1
goto @OTB_10227

:OTB_10539
460@ = 0

:OTB_10546
if 
  5 > 460@
goto_if_false @OTB_10832
set_lvar_int_to_lvar_int 461@ = 519@(460@,5i)
461@ /= 2
524@ = 50
add_int_lvar_to_int_lvar 524@ += 461@
draw_sprite 524@ {offsetLeft} 489@(460@,5f) {offsetTop} 494@(460@,5f) {width} 478@(460@,5f) {height} 478@(460@,5f) {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_int_to_lvar_int 524@ = 526@(460@,5i)
add_int_lvar_to_int_lvar 524@ += 461@
set_lvar_float_to_lvar_float 499@(460@,5f) = 489@(460@,5f)
499@(460@,5f) += 9.0
set_lvar_float_to_lvar_float 467@ = 484@(460@,5f)
467@ /= 2.0
draw_sprite 524@ {offsetLeft} 499@(460@,5f) {offsetTop} 504@(460@,5f) {width} 484@(460@,5f) {height} 467@ {r} 150 {g} 150 {b} 150 {a} 255
if 
  556@ == 0
goto_if_false @OTB_10785
519@(460@,5i) += 1

:OTB_10785
if 
  519@(460@,5i) > 15
goto_if_false @OTB_10818
519@(460@,5i) = 0

:OTB_10818
460@ += 1
goto @OTB_10546

:OTB_10832
set_lvar_float_to_lvar_float 549@ = 555@
583@ = 96.0
582@ = 64.0
525@ = 12
551@ = 8.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 555@ = 549@
draw_sprite 46 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 47 {offsetLeft} 160.0 {offsetTop} 0.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 47 {offsetLeft} 160.0 {offsetTop} 448.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 48 {offsetLeft} 480.0 {offsetTop} 0.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 48 {offsetLeft} 480.0 {offsetTop} 448.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
if or
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_11296
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -25.0222
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 21.6946
draw_rect 561@ {y} 562@ {width} 355.0807 {height} 119.5942 {r} 47 {g} 62 {b} 90 {a} 200
goto @OTB_11705

:OTB_11296
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -139.2772
set_lvar_float_to_lvar_float 562@ = 558@
562@ += -56.1882
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 280.2137 {height} 22.6679 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 157.3474
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 68.5107
gosub @OTB_13478
set_text_justify False
set_text_right_justify True
display_text 559@ {offsetTop} 560@ {key} 'YOURHSE'
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 142.4242
560@ += 12.7439
draw_rect 559@ {y} 560@ {width} 12.0 {height} 12.0 {r} 0 {g} 0 {b} 0 {a} 255
460@ = 0

:OTB_11494
if 
  5 > 460@
goto_if_false @OTB_11590
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11576
draw_rect 559@ {y} 560@ {width} 10.0 {height} 10.0 {r} 564@(460@,5i) {g} 569@(460@,5i) {b} 574@(460@,5i) {a} 255

:OTB_11576
460@ += 1
goto @OTB_11494

:OTB_11590
559@ += 10.8216
560@ -= 12.7439
gosub @OTB_13478
460@ = 0

:OTB_11624
if 
  5 > 460@
goto_if_false @OTB_11705
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11691
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
display_text 559@ {offsetTop} 560@ {key} 97@(461@,167s)

:OTB_11691
460@ += 1
goto @OTB_11624

:OTB_11705
set_lvar_float_to_lvar_float 581@ = 557@
581@ += -23.3585
460@ = 0

:OTB_11730
if 
  5 > 460@
goto_if_false @OTB_12527
if 
  534@(460@,5i) > 0
goto_if_false @OTB_12513
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 50.0
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 50.0
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
add_float_lvar_to_float_lvar 560@ += 467@
draw_rect 559@ {y} 560@ {width} 12.0 {height} 12.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 559@ {y} 560@ {width} 10.0 {height} 10.0 {r} 564@(460@,5i) {g} 569@(460@,5i) {b} 574@(460@,5i) {a} 255
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 39.1244
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13478
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12000
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_12000
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
set_text_scale 0.54 {heightScale} 2.4961
display_text 559@ {offsetTop} 539@(460@,5f) {key} 97@(461@,167s)
if 
  65@(460@,5i) == 1
goto_if_false @OTB_12177
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 64.0
gosub @OTB_13478
set_text_justify False
set_text_right_justify True
set_text_scale 0.54 {heightScale} 2.4961
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'YOURHSE'

:OTB_12177
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= -170.5457
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13478
set_text_right_justify True
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12276
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_12276
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
set_text_scale 0.54 {heightScale} 2.4961
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12377
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'FIRST'

:OTB_12377
if 
  534@(460@,5i) == 2
goto_if_false @OTB_12420
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'SECOND'

:OTB_12420
if 
  534@(460@,5i) == 3
goto_if_false @OTB_12463
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'THIRD'

:OTB_12463
if 
  534@(460@,5i) > 3
goto_if_false @OTB_12513
display_text_with_number 559@ {offsetTop} 539@(460@,5f) {key} 'NTH' {num} 534@(460@,5i)

:OTB_12513
460@ += 1
goto @OTB_11730

:OTB_12527
if and
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_13196
set_lvar_float_to_lvar_float 561@ = 557@
561@ += 44.4599
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 218.4174
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 155.396 {height} 52.7081 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 39.2243
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= -190.9665
gosub @OTB_13478
set_text_scale 0.5 {heightScale} 2.4961
display_text_with_number 559@ {offsetTop} 560@ {key} 'YOURSTK' {num} 87@
460@ = 0

:OTB_12723
if 
  5 > 460@
goto_if_false @OTB_12808
if and
  534@(460@,5i) == 1
  65@(460@,5i) == 1
goto_if_false @OTB_12794
set_lvar_int_to_lvar_int 563@ = 87@
mult_int_lvar_by_int_lvar 563@ *= 448@(460@,5i)

:OTB_12794
460@ += 1
goto @OTB_12723

:OTB_12808
560@ += 25.0
gosub @OTB_13478
set_text_scale 0.5 {heightScale} 2.4961
display_text_with_number 559@ {offsetTop} 560@ {key} 'YOUWIN' {num} 563@
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -129.2806
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 259.5944
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 239.5561 {height} 12.6761 {r} 150 {g} 150 {b} 150 {a} 255
gosub @OTB_13478
set_text_scale 0.5496 {heightScale} 2.1344
set_text_centre True
display_text 330.2087 {offsetTop} 403.5891 {key} 'XTOCONT'
if 
  579@ == 0
goto_if_false @OTB_13059
if 
  563@ > 0
goto_if_false @OTB_13032
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbWin
goto @OTB_13052

:OTB_13032
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbLose

:OTB_13052
579@ = 1

:OTB_13059
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_13189
if 
  74@ == 0
goto_if_false @OTB_13182
74@ = 1
increment_int_stat StatId.MoneySpentGambling {value} 87@
if 
  563@ > 0
goto_if_false @OTB_13163
register_int_stat StatId.BiggestGamblingWin {value} 563@
increment_int_stat StatId.MoneyWonGambling {value} 563@
add_int_lvar_to_int_lvar 563@ += 87@
add_score $player1 {money} 563@
goto @OTB_13170

:OTB_13163
register_int_stat StatId.BiggestGamblingLoss {value} 87@

:OTB_13170
do_fade 0 {direction} Fade.Out
wait 0
return 

:OTB_13182
goto @OTB_13196

:OTB_13189
74@ = 0

:OTB_13196
goto @OTB_9438

:OTB_13203
remove_texture_dictionary 
do_fade 500 {direction} Fade.In
$onmission = 0
mission_has_finished 
return 

:OTB_13223
583@ += 224.0
set_lvar_float_to_lvar_float 550@ = 549@
550@ -= 256.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 583@ {width} 256.0 {height} 582@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 583@ {width} 256.0 {height} 582@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 256.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 583@ {width} 256.0 {height} 582@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 512.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 583@ {width} 256.0 {height} 582@ {r} 150 {g} 150 {b} 150 {a} 255
if 
  556@ == 0
goto_if_false @OTB_13445
sub_timed_float_lvar_from_float_lvar 549@ -=@ 551@

:OTB_13445
if 
  0.0 > 549@
goto_if_false @OTB_13476
549@ += 256.0

:OTB_13476
return 

:OTB_13478
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:OTB_13546
if 
  79@ == 1
goto_if_false @OTB_13580
79@ = 0
78@ = 1
return 

:OTB_13580
if 
  81@ == 1
goto_if_false @OTB_13614
81@ = 0
80@ = 1
return 

:OTB_13614
if 
  83@ == 1
goto_if_false @OTB_13648
83@ = 0
82@ = 1
return 

:OTB_13648
if 
  85@ == 1
goto_if_false @OTB_13682
85@ = 0
84@ = 1
return 

:OTB_13682
return 

:OTB_13684
if 
  78@ == 1
goto_if_false @OTB_13718
78@ = 0
79@ = 1
return 

:OTB_13718
if 
  80@ == 1
goto_if_false @OTB_13752
80@ = 0
81@ = 1
return 

:OTB_13752
if 
  82@ == 1
goto_if_false @OTB_13786
82@ = 0
83@ = 1
return 

:OTB_13786
if 
  84@ == 1
goto_if_false @OTB_13820
84@ = 0
85@ = 1
return 

:OTB_13820
return 

:OTB_13822
if 
  80@ == 1
goto_if_false @OTB_13856
80@ = 0
78@ = 1
return 

:OTB_13856
if 
  81@ == 1
goto_if_false @OTB_13890
81@ = 0
79@ = 1
return 

:OTB_13890
if 
  82@ == 1
goto_if_false @OTB_13924
82@ = 0
80@ = 1
return 

:OTB_13924
if 
  83@ == 1
goto_if_false @OTB_13958
83@ = 0
81@ = 1
return 

:OTB_13958
if 
  84@ == 1
goto_if_false @OTB_13992
84@ = 0
82@ = 1
return 

:OTB_13992
if 
  85@ == 1
goto_if_false @OTB_14026
85@ = 0
83@ = 1
return 

:OTB_14026
if 
  86@ == 1
goto_if_false @OTB_14058
86@ = 0
84@ = 1

:OTB_14058
if 
  86@ == 2
goto_if_false @OTB_14090
86@ = 0
85@ = 1

:OTB_14090
return 

:OTB_14092
if 
  78@ == 1
goto_if_false @OTB_14126
78@ = 0
80@ = 1
return 

:OTB_14126
if 
  79@ == 1
goto_if_false @OTB_14160
79@ = 0
81@ = 1
return 

:OTB_14160
if 
  80@ == 1
goto_if_false @OTB_14194
80@ = 0
82@ = 1
return 

:OTB_14194
if 
  81@ == 1
goto_if_false @OTB_14228
81@ = 0
83@ = 1
return 

:OTB_14228
if 
  82@ == 1
goto_if_false @OTB_14262
82@ = 0
84@ = 1
return 

:OTB_14262
if 
  83@ == 1
goto_if_false @OTB_14296
83@ = 0
85@ = 1
return 

:OTB_14296
if 
  87@ > 0
goto_if_false @OTB_14382
if 
  84@ == 1
goto_if_false @OTB_14348
84@ = 0
86@ = 1
return 

:OTB_14348
if 
  85@ == 1
goto_if_false @OTB_14382
85@ = 0
86@ = 2
return 

:OTB_14382
return 

//-------------Mission 8---------------
// Originally: Pool

:POOL2
script_name 'POOL2'
gosub @POOL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @POOL2_38
gosub @POOL2_60085

:POOL2_38
gosub @POOL2_60137
terminate_this_script 

:POOL2_47
register_mission_given 
$onmission = 1
181@ = get_game_timer 
34@ = 0
35@ = 0
37@ = 0
38@ = 0
178@ = 0
204@ = -0.957
206@ = -0.49
205@ = 0.957
207@ = 0.49
199@ = 0.05
200@ = 2.0

:POOL2_156
wait 0
39@ = get_game_timer 
set_lvar_int_to_lvar_int 182@ = 39@
sub_int_lvar_from_int_lvar 182@ -= 181@
set_lvar_int_to_lvar_int 181@ = 39@
add_int_lvar_to_int_lvar 183@ += 182@
add_int_lvar_to_int_lvar 201@ += 182@
add_int_lvar_to_int_lvar 202@ += 182@
gosub @POOL2_2281

:POOL2_220
switch_start 34@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @POOL2_530 {caseNum1} 0 {caseLabel1} @POOL2_348 {caseNum2} 1 {caseLabel2} @POOL2_362 {caseNum3} 2 {caseLabel3} @POOL2_376 {caseNum4} 3 {caseLabel4} @POOL2_390 {caseNum5} 4 {caseLabel5} @POOL2_404 {caseNum6} 5 {caseLabel6} @POOL2_418 {caseNum7} 6 {caseLabel7} @POOL2_432
switch_continued 7 {caseLabel1} @POOL2_446 {caseNum2} 8 {caseLabel2} @POOL2_460 {caseNum3} 9 {caseLabel3} @POOL2_474 {caseNum4} 10 {caseLabel4} @POOL2_488 {caseNum5} 11 {caseLabel5} @POOL2_502 {caseNum6} 12 {caseLabel6} @POOL2_516 {caseNum7} -1 {caseLabel7} @POOL2_530 {caseNum8} -1 {caseLabel8} @POOL2_530 {caseNum9} -1 {caseLabel9} @POOL2_530

:POOL2_348
gosub @POOL2_680
goto @POOL2_530

:POOL2_362
gosub @POOL2_5571
goto @POOL2_530

:POOL2_376
gosub @POOL2_9119
goto @POOL2_530

:POOL2_390
gosub @POOL2_9751
goto @POOL2_530

:POOL2_404
gosub @POOL2_10577
goto @POOL2_530

:POOL2_418
gosub @POOL2_12209
goto @POOL2_530

:POOL2_432
gosub @POOL2_15277
goto @POOL2_530

:POOL2_446
gosub @POOL2_15279
goto @POOL2_530

:POOL2_460
gosub @POOL2_20467
goto @POOL2_530

:POOL2_474
gosub @POOL2_20990
goto @POOL2_530

:POOL2_488
gosub @POOL2_22382
goto @POOL2_530

:POOL2_502
gosub @POOL2_24480
goto @POOL2_530

:POOL2_516
gosub @POOL2_25674
goto @POOL2_530

:POOL2_530
if 
  not is_int_lvar_equal_to_int_lvar 179@ == 34@
goto_if_false @POOL2_564
set_lvar_int_to_lvar_int 179@ = 34@
goto @POOL2_220

:POOL2_564
gosub @POOL2_25800
gosub @POOL2_59626
if 
  108@ == 0
goto_if_false @POOL2_678
if 
  38@ == 0
goto_if_false @POOL2_662
if 
  37@ == 0
goto_if_false @POOL2_646
goto @POOL2_156
goto @POOL2_655

:POOL2_646
gosub @POOL2_60103
return 

:POOL2_655
goto @POOL2_671

:POOL2_662
gosub @POOL2_60085
return 

:POOL2_671
goto @POOL2_680

:POOL2_678
return 

:POOL2_680
if 
  35@ == -1
goto_if_false @POOL2_972
163@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$homeless_waiting_flag = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
164@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_table = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
168@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
354@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
355@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_opponent = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
343@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
209@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
210@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_972
if 
  35@ == 0
goto_if_false @POOL2_1158
if 
  does_object_exist $homeless_waiting_flag
goto_if_false @POOL2_1158
set_lvar_int_to_var_int 163@ = $homeless_waiting_flag
set_lvar_int_to_var_int 164@ = $active_pool_table
if 
  not is_char_dead 164@
goto_if_false @POOL2_1082
set_char_only_damaged_by_player 164@ {state} True
set_char_proofs 164@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision 164@ {state} False
203@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 164@ {handleOrTemplate} 203@

:POOL2_1082
$x, $y, $z = get_object_coordinates 163@
clear_area $x {y} $y {z} $z {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_near_clip 0.01
make_player_gang_disappear 
129@ = 0
108@ = 0
gosub @POOL2_56946
35@ += 1

:POOL2_1158
if 
  35@ == 1
goto_if_false @POOL2_1336
if 
  does_object_exist 163@
goto_if_false @POOL2_1336
102@, 103@, 104@ = get_object_coordinates 163@
105@ = get_object_heading 163@
104@ += -0.1
load_mission_text 'POOL'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1802
request_model #K_POOLQ
request_animation "POOL"

:POOL2_1254
if or
  not has_animation_loaded "POOL"
  not has_model_loaded #K_POOLQ
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @POOL2_1292
wait 0
goto @POOL2_1254

:POOL2_1292
load_texture_dictionary 'LD_POOL'
load_sprite 1 {spriteName} "BALL"
load_sprite 2 {spriteName} "NIB"
125@ = 0
35@ += 1

:POOL2_1336
if 
  35@ == 2
goto_if_false @POOL2_1368
34@ += 1
35@ = 0

:POOL2_1368
return 
line 98@ {f2} 100@ {f3} $z {f4} 99@ {f5} 100@ {f6} $z
line 98@ {f2} 100@ {f3} $z {f4} 98@ {f5} 101@ {f6} $z
line 99@ {f2} 101@ {f3} $z {f4} 99@ {f5} 100@ {f6} $z
line 99@ {f2} 101@ {f3} $z {f4} 98@ {f5} 101@ {f6} $z
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @POOL2_1475
204@ += -0.0001

:POOL2_1475
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @POOL2_1500
204@ += 0.0001

:POOL2_1500
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_1525
206@ += -0.0001

:POOL2_1525
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_1550
206@ += 0.0001

:POOL2_1550
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @POOL2_1575
205@ += -0.0001

:POOL2_1575
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @POOL2_1600
205@ += 0.0001

:POOL2_1600
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_1625
207@ += -0.0001

:POOL2_1625
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @POOL2_1650
207@ += 0.0001

:POOL2_1650
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_2213
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_X1 = "
save_float_to_debug_file 204@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_Y1 = "
save_float_to_debug_file 206@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_X2 = "
save_float_to_debug_file 205@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_Y2 = "
save_float_to_debug_file 207@

:POOL2_2213
if 
  does_object_exist 163@
goto_if_false @POOL2_2279
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 204@ {yOffset} 206@ {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 205@ {yOffset} 207@ {zOffset} 0.7

:POOL2_2279
return 

:POOL2_2281
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @POOL2_2330
208@ += 1
if 
  208@ > 11
goto_if_false @POOL2_2328
208@ = 0

:POOL2_2328
clear_all_view_variables 

:POOL2_2330
if 
  208@ == 1
goto_if_false @POOL2_2547
set_var_int_to_lvar_int $grav_screen_temp_y = 34@
set_var_int_to_lvar_int $pool_view_debug = 35@
set_var_int_to_lvar_int $6444 = 36@
set_var_int_to_lvar_int $6445 = 108@
set_var_int_to_lvar_int $6446 = 125@
set_var_int_to_lvar_int $6447 = 129@
set_var_int_to_lvar_int $6448 = 213@
set_var_int_to_lvar_int $6449 = 214@
view_integer_variable $grav_screen_temp_y {_p2} "M_STAGE"
view_integer_variable $pool_view_debug {_p2} "M_GOALS"
view_integer_variable $6444 {_p2} "FLAG3"
view_integer_variable $6445 {_p2} "QUIT"
view_integer_variable $6446 {_p2} "PL_CIRCLE_PRESSED"
view_integer_variable $6447 {_p2} "OUTPUT_TEXT"
view_integer_variable $6448 {_p2} "PLAYER1_COLOUR"
view_integer_variable $6449 {_p2} "PLAYER2_COLOUR"

:POOL2_2547
if 
  208@ == 2
goto_if_false @POOL2_2797
set_var_int_to_lvar_int $grav_screen_temp_y = 66@
set_var_int_to_lvar_int $pool_view_debug = 67@
set_var_int_to_lvar_int $6444 = 68@
set_var_int_to_lvar_int $6445 = 69@
set_var_int_to_lvar_int $6446 = 70@
set_var_int_to_lvar_int $6447 = 71@
set_var_int_to_lvar_int $6448 = 72@
set_var_int_to_lvar_int $6449 = 73@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_POTTED[0]"
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[1]"
view_integer_variable $6444 {_p2} "BALL_POTTED[2]"
view_integer_variable $6445 {_p2} "BALL_POTTED[3]"
view_integer_variable $6446 {_p2} "BALL_POTTED[4]"
view_integer_variable $6447 {_p2} "BALL_POTTED[5]"
view_integer_variable $6448 {_p2} "BALL_POTTED[6]"
view_integer_variable $6449 {_p2} "BALL_POTTED[7]"

:POOL2_2797
if 
  208@ == 3
goto_if_false @POOL2_3053
set_var_int_to_lvar_int $grav_screen_temp_y = 74@
set_var_int_to_lvar_int $pool_view_debug = 75@
set_var_int_to_lvar_int $6444 = 76@
set_var_int_to_lvar_int $6445 = 77@
set_var_int_to_lvar_int $6446 = 78@
set_var_int_to_lvar_int $6447 = 79@
set_var_int_to_lvar_int $6448 = 80@
set_var_int_to_lvar_int $6449 = 81@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_POTTED[8]"
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[9]"
view_integer_variable $6444 {_p2} "BALL_POTTED[10]"
view_integer_variable $6445 {_p2} "BALL_POTTED[11]"
view_integer_variable $6446 {_p2} "BALL_POTTED[12]"
view_integer_variable $6447 {_p2} "BALL_POTTED[13]"
view_integer_variable $6448 {_p2} "BALL_POTTED[14]"
view_integer_variable $6449 {_p2} "BALL_POTTED[15]"

:POOL2_3053
if 
  208@ == 4
goto_if_false @POOL2_3310
set_var_int_to_lvar_int $grav_screen_temp_y = 215@
set_var_int_to_lvar_int $pool_view_debug = 216@
set_var_int_to_lvar_int $6444 = 225@
set_var_int_to_lvar_int $6445 = 226@
set_var_int_to_lvar_int $6446 = 227@
set_var_int_to_lvar_int $6447 = 228@
set_var_int_to_lvar_int $6448 = 247@
set_var_int_to_lvar_int $6449 = 246@
view_integer_variable $grav_screen_temp_y {_p2} "PLAYER1_IS_HUMAN"
view_integer_variable $pool_view_debug {_p2} "PLAYER2_IS_HUMAN"
view_integer_variable $6444 {_p2} "TURN_PLAYER"
view_integer_variable $6445 {_p2} "CURRENT_CHAR_IS_HUMAN"
view_integer_variable $6446 {_p2} "TURN_COLOUR"
view_integer_variable $6447 {_p2} "TURN_IS_SCRATCH"
view_integer_variable $6448 {_p2} "THIS_CHAR_GOT_TASK"
view_integer_variable $6449 {_p2} "SHOT_PLAYED"

:POOL2_3310
if 
  208@ == 5
goto_if_false @POOL2_3560
set_var_int_to_lvar_int $grav_screen_temp_y = 234@
set_var_int_to_lvar_int $pool_view_debug = 229@
set_var_int_to_lvar_int $6444 = 267@
set_var_int_to_lvar_int $6445 = 268@
set_var_int_to_lvar_int $6446 = 269@
set_var_int_to_lvar_int $6447 = 270@
set_var_int_to_lvar_int $6448 = 274@
set_var_int_to_lvar_int $6449 = 232@
view_integer_variable $grav_screen_temp_y {_p2} "AIM_CUE"
view_integer_variable $pool_view_debug {_p2} "SKIP_CHALK_CUE"
view_integer_variable $6444 {_p2} "NO_OF_BALLS_POTTED_THIS_TURN"
view_integer_variable $6445 {_p2} "SPOTS_POTTED"
view_integer_variable $6446 {_p2} "STRIPES_POTTED"
view_integer_variable $6447 {_p2} "FOUL_TYPE"
view_integer_variable $6448 {_p2} "FIRST_MOVING_BALL"
view_integer_variable $6449 {_p2} "CAMERA_MODE"

:POOL2_3560
if 
  208@ == 6
goto_if_false @POOL2_3898
set_var_int_to_lvar_int $grav_screen_temp_y = 251@
set_var_int_to_lvar_int $pool_view_debug = 252@
set_var_int_to_lvar_int $6444 = 253@
set_var_int_to_lvar_int $6445 = 254@
set_var_int_to_lvar_int $6446 = 255@
set_var_int_to_lvar_int $6447 = 256@
set_var_int_to_lvar_int $6448 = 257@
set_var_int_to_lvar_int $6449 = 258@
view_integer_variable $grav_screen_temp_y {_p2} "BALLS_POTTED_THIS_TURN[0]"
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[1]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[2]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[3]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[4]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[5]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[6]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[7]"

:POOL2_3898
if 
  208@ == 7
goto_if_false @POOL2_4242
set_var_int_to_lvar_int $grav_screen_temp_y = 259@
set_var_int_to_lvar_int $pool_view_debug = 260@
set_var_int_to_lvar_int $6444 = 261@
set_var_int_to_lvar_int $6445 = 262@
set_var_int_to_lvar_int $6446 = 263@
set_var_int_to_lvar_int $6447 = 264@
set_var_int_to_lvar_int $6448 = 265@
set_var_int_to_lvar_int $6449 = 266@
view_integer_variable $grav_screen_temp_y {_p2} "BALLS_POTTED_THIS_TURN[8]"
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[9]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[10]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[11]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[12]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[13]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[14]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[15]"

:POOL2_4242
if 
  208@ == 8
goto_if_false @POOL2_4548
set_var_int_to_lvar_int $grav_screen_temp_y = 109@
set_var_int_to_lvar_int $pool_view_debug = 110@
set_var_int_to_lvar_int $6444 = 111@
set_var_int_to_lvar_int $6445 = 112@
set_var_int_to_lvar_int $6446 = 113@
set_var_int_to_lvar_int $6447 = 114@
set_var_int_to_lvar_int $6448 = 115@
set_var_int_to_lvar_int $6449 = 116@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_IS_STATIONARY[0]"
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[1]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[2]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[3]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[4]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[5]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[6]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[7]"

:POOL2_4548
if 
  208@ == 9
goto_if_false @POOL2_4860
set_var_int_to_lvar_int $grav_screen_temp_y = 117@
set_var_int_to_lvar_int $pool_view_debug = 118@
set_var_int_to_lvar_int $6444 = 119@
set_var_int_to_lvar_int $6445 = 120@
set_var_int_to_lvar_int $6446 = 121@
set_var_int_to_lvar_int $6447 = 122@
set_var_int_to_lvar_int $6448 = 123@
set_var_int_to_lvar_int $6449 = 124@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_IS_STATIONARY[8]"
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[9]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[10]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[11]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[12]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[13]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[14]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[15]"

:POOL2_4860
if 
  208@ == 10
goto_if_false @POOL2_5118
set_var_float_to_lvar_float $6450 = 48@
set_var_float_to_lvar_float $pool_view_debug2 = 49@
set_var_float_to_lvar_float $6452 = 50@
set_var_float_to_lvar_float $6453 = 51@
set_var_float_to_lvar_float $6454 = 98@
set_var_float_to_lvar_float $6455 = 99@
set_var_float_to_lvar_float $6456 = 100@
set_var_float_to_lvar_float $6457 = 101@
view_float_variable $6450 {_p2} "CUE_BALL_SPEED"
view_float_variable $pool_view_debug2 {_p2} "CUE_BALL_ROT_X"
view_float_variable $6452 {_p2} "CUE_BALL_ROT_Y"
view_float_variable $6453 {_p2} "CUE_BALL_ROT_Z"
view_float_variable $6454 {_p2} "POOL_TABLE_MIN_X"
view_float_variable $6455 {_p2} "POOL_TABLE_MAX_X"
view_float_variable $6456 {_p2} "POOL_TABLE_MIN_Y"
view_float_variable $6457 {_p2} "POOL_TABLE_MAX_Y"

:POOL2_5118
if 
  208@ == 11
goto_if_false @POOL2_5317
set_var_int_to_lvar_int $grav_screen_temp_y = TIMERA
set_var_int_to_lvar_int $pool_view_debug = TIMERB
set_var_float_to_lvar_float $6452 = 641@
set_var_float_to_lvar_float $6453 = 199@
set_var_float_to_lvar_float $6454 = 200@
set_var_int_to_lvar_int $6447 = 273@
view_integer_variable $grav_screen_temp_y {_p2} "TIMERA"
view_integer_variable $pool_view_debug {_p2} "TIMERB"
view_float_variable $6452 {_p2} "BALL_TURN_MASS"
view_float_variable $6453 {_p2} "POOL_STOP_VELOCITY"
view_float_variable $6454 {_p2} "POOL_STOP_ROTATION_VELOCITY"
view_integer_variable $6447 {_p2} "BALL_STRIKES_CUSHION"

:POOL2_5317
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_5421
if 
  215@ == 1
goto_if_false @POOL2_5391
215@ = 0
write_debug "CHEAT_PLAYER1_NOT_HUMAN"
goto @POOL2_5421

:POOL2_5391
215@ = 1
write_debug "CHEAT_PLAYER1_HUMAN"

:POOL2_5421
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_5495
if 
  does_object_exist 82@
goto_if_false @POOL2_5495
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 0.01 {zOffset} 0.0
set_object_coordinates 82@ {x} $x {y} $y {z} $z

:POOL2_5495
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_5569
if 
  does_object_exist 82@
goto_if_false @POOL2_5569
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} -0.01 {zOffset} 0.0
set_object_coordinates 82@ {x} $x {y} $y {z} $z

:POOL2_5569
return 

:POOL2_5571
if 
  35@ == -1
goto_if_false @POOL2_5611
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_5611
if 
  35@ == 0
goto_if_false @POOL2_7285
display_hud True
display_radar False
$dealer_got_bj = store_score $player1
if 
  is_int_var_greater_than_int_var $active_initial_cue > $dealer_got_bj
goto_if_false @POOL2_5684
108@ = 1
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
goto @POOL2_7239

:POOL2_5684
clear_area 102@ {y} 103@ {z} 104@ {radius} 15.0 {clearParticles} True
set_object_coordinates 163@ {x} 102@ {y} 103@ {z} 104@
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.9098 {yOffset} -0.4589 {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.9242 {yOffset} 0.4809 {zOffset} 0.7
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_5817
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_5817
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_5860
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_5860
set_pool_table_coords 98@ {leftBottomY} 100@ {leftBottomZ} $z {rightTopX} 99@ {rightTopY} 101@ {rightTopZ} $z
175@, 176@, 177@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.5
42@ = get_distance_between_coords_2d 98@ {fromY} 100@ {toX} 99@ {toZ} 100@
43@ = get_distance_between_coords_2d 98@ {fromY} 100@ {toX} 98@ {toZ} 101@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_6027
set_lvar_float_to_lvar_float 42@ = 98@
add_float_lvar_to_float_lvar 42@ += 99@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 42@
set_lvar_float_to_lvar_float 61@ = 100@
set_lvar_float_to_lvar_float 58@ = 42@
set_lvar_float_to_lvar_float 64@ = 101@
goto @POOL2_6085

:POOL2_6027
set_lvar_float_to_lvar_float 42@ = 100@
add_float_lvar_to_float_lvar 42@ += 101@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 98@
set_lvar_float_to_lvar_float 61@ = 42@
set_lvar_float_to_lvar_float 58@ = 99@
set_lvar_float_to_lvar_float 64@ = 42@

:POOL2_6085
set_lvar_float_to_lvar_float 54@ = 98@
set_lvar_float_to_lvar_float 60@ = 100@
set_lvar_float_to_lvar_float 56@ = 98@
set_lvar_float_to_lvar_float 62@ = 101@
set_lvar_float_to_lvar_float 57@ = 99@
set_lvar_float_to_lvar_float 63@ = 101@
set_lvar_float_to_lvar_float 59@ = 99@
set_lvar_float_to_lvar_float 65@ = 100@
52@ = 0.037
set_lvar_float_to_lvar_float 53@ = 52@
53@ *= 2.0
39@ = 0

:POOL2_6184
if 
  16 > 39@
goto_if_false @POOL2_6245
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_6231
delete_object 82@(39@,16i)

:POOL2_6231
39@ += 1
goto @POOL2_6184

:POOL2_6245
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.2734 {yOffset} -0.0547 {zOffset} 0.9297
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading
554@, 555@, 556@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.3408 {yOffset} -0.0284 {zOffset} 0.9297
557@ = get_object_heading 163@
557@ += 90.0
83@ = create_object_no_offset #K_POOLBALLSPT01 {x} 554@ {y} 555@ {z} 556@
84@ = create_object_no_offset #K_POOLBALLSPT02 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_object_no_offset #K_POOLBALLSPT03 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_object_no_offset #K_POOLBALLSPT04 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object_no_offset #K_POOLBALLSPT05 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_object_no_offset #K_POOLBALLSPT06 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_object_no_offset #K_POOLBALLSPT07 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_object_no_offset #K_POOLBALL8 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_object_no_offset #K_POOLBALLSTP01 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object_no_offset #K_POOLBALLSTP02 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object_no_offset #K_POOLBALLSTP03 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_object_no_offset #K_POOLBALLSTP04 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_object_no_offset #K_POOLBALLSTP05 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_object_no_offset #K_POOLBALLSTP06 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_object_no_offset #K_POOLBALLSTP07 {x} 0.0 {y} 0.0 {z} 0.0
gosub @POOL2_49954
display_radar False
set_player_control $player1 {state} False
clear_help 
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.5261 {yOffset} -1.9684 {zOffset} 1.637
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.0746 {yOffset} -1.0853 {zOffset} 1.5092
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 164@
goto_if_false @POOL2_7053
clear_char_tasks_immediately 164@
drop_object 164@ {state} False
if 
  does_object_exist $active_pool_opponent
goto_if_false @POOL2_6853
delete_object $active_pool_opponent

:POOL2_6853
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0219 {yOffset} -1.1236 {zOffset} 0.0363
set_char_coordinates 164@ {x} $x {y} $y {z} $z
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 130.0
set_char_heading 164@ {heading} 42@
47@ = open_sequence_task 
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.5261 {yOffset} -1.9684 {zOffset} 1.637
task_look_at_coord -1 {x} $x {y} $y {z} $z {time} 999999
if 
  108@ == 0
goto_if_false @POOL2_7035
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:POOL2_7035
close_sequence_task 47@
perform_sequence_task 164@ {sequence} 47@
clear_sequence_task 47@

:POOL2_7053
if 
  not does_object_exist 107@
goto_if_false @POOL2_7098
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 107@ {state} False

:POOL2_7098
if 
  is_player_playing $player1
goto_if_false @POOL2_7212
clear_char_tasks_immediately $scplayer
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -1.9295 {yOffset} -2.2083 {zOffset} 0.0363
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_lvar_float_to_var_float 217@ = $x
set_lvar_float_to_var_float 218@ = $y
set_lvar_float_to_var_float 219@ = $z
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 390.0
set_char_heading $scplayer {heading} 42@

:POOL2_7212
set_lvar_int_to_lvar_int 354@ = 164@
set_lvar_int_to_lvar_int 355@ = 107@
gosub @POOL2_30078
set_script_coop_game False

:POOL2_7239
start_new_script @CLEANAU 
do_fade 1000 {direction} Fade.In

:POOL2_7254
if 
  get_fading_status 
goto_if_false @POOL2_7278
wait 0
goto @POOL2_7254

:POOL2_7278
35@ += 1

:POOL2_7285
if 
  35@ == 1
goto_if_false @POOL2_7718
if 
  not is_char_dead 164@
goto_if_false @POOL2_7700
if 
  is_char_model 164@ {modelId} 66
goto_if_false @POOL2_7522
39@ = generate_random_int_in_range 0 {max} 3
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7496 {caseNum1} 0 {caseLabel1} @POOL2_7409 {caseNum2} 1 {caseLabel2} @POOL2_7438 {caseNum3} 2 {caseLabel3} @POOL2_7467 {caseNum4} -1 {caseLabel4} @POOL2_7496 {caseNum5} -1 {caseLabel5} @POOL2_7496 {caseNum6} -1 {caseLabel6} @POOL2_7496 {caseNum7} -1 {caseLabel7} @POOL2_7496

:POOL2_7409
set_var_text_label s$audio_string = 'POOL_B1'
set_var_int_to_constant $audio_sound_file = 25400
goto @POOL2_7496

:POOL2_7438
set_var_text_label s$audio_string = 'POOL_B2'
set_var_int_to_constant $audio_sound_file = 25401
goto @POOL2_7496

:POOL2_7467
set_var_text_label s$audio_string = 'POOL_B3'
set_var_int_to_constant $audio_sound_file = 25402
goto @POOL2_7496

:POOL2_7496
start_new_script @AUDIOL 164@ 0 1 1 0 
goto @POOL2_7700

:POOL2_7522
39@ = generate_random_int_in_range 0 {max} 3
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7681 {caseNum1} 0 {caseLabel1} @POOL2_7594 {caseNum2} 1 {caseLabel2} @POOL2_7623 {caseNum3} 2 {caseLabel3} @POOL2_7652 {caseNum4} -1 {caseLabel4} @POOL2_7681 {caseNum5} -1 {caseLabel5} @POOL2_7681 {caseNum6} -1 {caseLabel6} @POOL2_7681 {caseNum7} -1 {caseLabel7} @POOL2_7681

:POOL2_7594
set_var_text_label s$audio_string = 'POOL_B4'
set_var_int_to_constant $audio_sound_file = 25403
goto @POOL2_7681

:POOL2_7623
set_var_text_label s$audio_string = 'POOL_B5'
set_var_int_to_constant $audio_sound_file = 25404
goto @POOL2_7681

:POOL2_7652
set_var_text_label s$audio_string = 'POOL_B6'
set_var_int_to_constant $audio_sound_file = 25405
goto @POOL2_7681

:POOL2_7681
start_new_script @AUDIOL 164@ 0 1 1 0 

:POOL2_7700
use_text_commands True
TIMERA = 0
35@ += 1

:POOL2_7718
if 
  35@ == 2
goto_if_false @POOL2_7878
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @POOL2_7878
clear_prints 
if 
  is_player_playing $player1
goto_if_false @POOL2_7781
159@ = store_score $player1

:POOL2_7781
set_help_message_box_size 200
print_help_forever 'PL_H1'
$active_initial_cue = 50
$pool_min_bet = 1000
set_lvar_int_to_var_int 161@ = $active_initial_cue
set_lvar_int_to_var_int 162@ = $active_initial_cue
set_lvar_int_to_var_int 155@ = $active_initial_cue
set_lvar_int_to_var_int 39@ = $active_initial_cue
39@ *= -1
add_score $player1 {money} 39@
switch_widescreen False
start_new_script @CLEANAU 
35@ += 1

:POOL2_7878
if 
  35@ == 3
goto_if_false @POOL2_9058
gosub @POOL2_53659
$dealer_got_bj = store_score $player1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @POOL2_8337
if and
  126@ <> 1
  126@ <> -1
goto_if_false @POOL2_8286
if 
  155@ >= 10000
goto_if_false @POOL2_7987
160@ = 1000
goto @POOL2_8091

:POOL2_7987
if 
  155@ >= 1000
goto_if_false @POOL2_8020
160@ = 100
goto @POOL2_8091

:POOL2_8020
if 
  155@ >= 100
goto_if_false @POOL2_8052
160@ = 10
goto @POOL2_8091

:POOL2_8052
if 
  155@ == 0
goto_if_false @POOL2_8084
160@ = 2
goto @POOL2_8091

:POOL2_8084
160@ = 1

:POOL2_8091
if 
  is_int_lvar_greater_than_int_var 160@ > $dealer_got_bj
goto_if_false @POOL2_8118
set_lvar_int_to_var_int 160@ = $dealer_got_bj

:POOL2_8118
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_lvar_greater_than_int_var 39@ > $pool_min_bet
goto_if_false @POOL2_8169
set_lvar_int_to_var_int 160@ = $pool_min_bet
sub_int_lvar_from_int_lvar 160@ -= 155@

:POOL2_8169
if 
  0 > 160@
goto_if_false @POOL2_8194
160@ *= -1

:POOL2_8194
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
add_score $player1 {money} 160@
126@ += 1
if 
  126@ > 1
goto_if_false @POOL2_8272
126@ = 2
goto @POOL2_8279

:POOL2_8272
TIMERA = 0

:POOL2_8279
goto @POOL2_8330

:POOL2_8286
if 
  126@ == 1
goto_if_false @POOL2_8330
if 
  TIMERA > 500
goto_if_false @POOL2_8330
126@ = 2

:POOL2_8330
goto @POOL2_8711

:POOL2_8337
if 
  126@ <> 0
goto_if_false @POOL2_8362
126@ = 0

:POOL2_8362
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @POOL2_8686
if 
  128@ <> 1
goto_if_false @POOL2_8653
if 
  155@ > 10000
goto_if_false @POOL2_8431
160@ = -1000
goto @POOL2_8503

:POOL2_8431
if 
  155@ > 1000
goto_if_false @POOL2_8464
160@ = -100
goto @POOL2_8503

:POOL2_8464
if 
  155@ > 100
goto_if_false @POOL2_8496
160@ = -10
goto @POOL2_8503

:POOL2_8496
160@ = -1

:POOL2_8503
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_var_greater_than_int_lvar $active_initial_cue > 39@
goto_if_false @POOL2_8561
set_lvar_int_to_lvar_int 160@ = 155@
sub_int_var_from_int_lvar 160@ -= $active_initial_cue
160@ *= -1

:POOL2_8561
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
add_score $player1 {money} 160@
128@ += 1
if 
  128@ > 1
goto_if_false @POOL2_8639
128@ = 2
goto @POOL2_8646

:POOL2_8639
TIMERA = 0

:POOL2_8646
goto @POOL2_8679

:POOL2_8653
if 
  TIMERA > 500
goto_if_false @POOL2_8679
128@ = 2

:POOL2_8679
goto @POOL2_8711

:POOL2_8686
if 
  128@ <> 0
goto_if_false @POOL2_8711
128@ = 0

:POOL2_8711
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @POOL2_8780
if 
  not is_char_dead 164@
goto_if_false @POOL2_8752
set_char_money 164@ {amount} 162@

:POOL2_8752
161@ = 0
178@ = 0
35@ = 99
goto @POOL2_8841

:POOL2_8780
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Start
goto_if_false @POOL2_8841
disable_2nd_pad_for_debug 1
set_script_coop_game True
$disable_debug = 1
add_score $player1 {money} 161@
161@ = 0
178@ = 1
35@ = 99

:POOL2_8841
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @POOL2_9033
if 
  127@ == 0
goto_if_false @POOL2_9026
if 
  not is_char_dead 209@
goto_if_false @POOL2_8943
219@ += 1.1
clear_char_tasks_immediately 209@
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_8943
if 
  not is_char_dead 210@
goto_if_false @POOL2_9010
223@ += 1.1
clear_char_tasks_immediately 210@
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_9010
clear_help 
108@ = 1
127@ = 1

:POOL2_9026
goto @POOL2_9058

:POOL2_9033
if 
  127@ == 1
goto_if_false @POOL2_9058
127@ = 0

:POOL2_9058
if 
  35@ == 99
goto_if_false @POOL2_9117
if 
  not is_char_dead 164@
goto_if_false @POOL2_9097
clear_look_at 164@

:POOL2_9097
display_hud False
clear_help 
35@ = 0
34@ += 1

:POOL2_9117
return 

:POOL2_9119
if 
  35@ == -1
goto_if_false @POOL2_9275
209@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
210@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
211@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
106@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
212@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_9275
if 
  35@ == 0
goto_if_false @POOL2_9749
if 
  178@ == 0
goto_if_false @POOL2_9346
213@ = -1
214@ = -1
215@ = 1
216@ = 0
goto @POOL2_9374

:POOL2_9346
213@ = -1
214@ = -1
215@ = 1
216@ = 1

:POOL2_9374
217@, 218@, 219@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} 0.0
set_lvar_float_to_lvar_float 220@ = 105@
220@ += 180.0
221@, 222@, 223@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -1.8 {zOffset} 0.0
set_lvar_float_to_lvar_float 224@ = 105@
set_lvar_int_to_var_int 209@ = $scplayer
set_lvar_int_to_lvar_int 210@ = 164@
if 
  not does_object_exist 106@
goto_if_false @POOL2_9519
106@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 106@ {state} False

:POOL2_9519
if 
  not does_object_exist 107@
goto_if_false @POOL2_9564
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 107@ {state} False

:POOL2_9564
if 
  not is_char_dead 209@
goto_if_false @POOL2_9609
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@
hide_char_weapon_for_scripted_cutscene 209@ {state} True

:POOL2_9609
if 
  not is_char_dead 210@
goto_if_false @POOL2_9654
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@
hide_char_weapon_for_scripted_cutscene 210@ {state} True

:POOL2_9654
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
set_lvar_int_to_lvar_int 227@ = 213@
228@ = 1
set_lvar_int_to_constant 180@ = 0
274@ = -1
275@ = 0
232@ = 1
184@ = 1
35@ = 0
34@ += 1

:POOL2_9749
return 

:POOL2_9751
if 
  229@ == 0
goto_if_false @POOL2_10288
if 
  35@ == 0
goto_if_false @POOL2_10136
if 
  not is_char_dead 209@
goto_if_false @POOL2_9849
219@ += 1.0
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_9849
if 
  not is_char_dead 210@
goto_if_false @POOL2_9911
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_9911
if 
  not is_char_dead 211@
goto_if_false @POOL2_10136
drop_object 211@ {state} False
$x, $y, $z = get_offset_from_char_in_world_coords 211@ {xOffset} 1.0 {yOffset} 3.0 {zOffset} 1.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 211@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_CHALKCUE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_10117
perform_sequence_task 211@ {sequence} 47@

:POOL2_10117
clear_sequence_task 47@
TIMERA = 0
35@ += 1

:POOL2_10136
if 
  35@ == 1
goto_if_false @POOL2_10214
if 
  not is_char_dead 211@
goto_if_false @POOL2_10214
39@ = get_script_task_status 211@ {taskId} 1560
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 3000
goto_if_false @POOL2_10214
35@ = 99

:POOL2_10214
if 
  TIMERA > 500
goto_if_false @POOL2_10281
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_10281
if 
  not is_char_dead 211@
goto_if_false @POOL2_10281
126@ = 1
35@ = 99

:POOL2_10281
goto @POOL2_10311

:POOL2_10288
if 
  not is_char_dead 211@
goto_if_false @POOL2_10311
35@ = 99

:POOL2_10311
if 
  35@ == 99
goto_if_false @POOL2_10352
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_10352
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_10543
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_10536
if 
  not is_char_dead 209@
goto_if_false @POOL2_10458
219@ += 1.1
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_10458
if 
  not is_char_dead 210@
goto_if_false @POOL2_10520
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_10520
clear_help 
108@ = 1
127@ = 1

:POOL2_10536
goto @POOL2_10575

:POOL2_10543
if 
  127@ == 1
goto_if_false @POOL2_10568
127@ = 0

:POOL2_10568
183@ = 0

:POOL2_10575
return 

:POOL2_10577
if and
  228@ <> 0
  226@ == 1
goto_if_false @POOL2_10609
gosub @POOL2_58512

:POOL2_10609
if 
  228@ <> 0
goto_if_false @POOL2_10893
if 
  66@ == 1
goto_if_false @POOL2_10778
if 
  not does_object_exist 82@
goto_if_false @POOL2_10771
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.9297
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading

:POOL2_10771
66@ = 0

:POOL2_10778
if 
  is_button_pressed 180@ {buttonId} Button.Square
goto_if_false @POOL2_10868
if 
  128@ == 0
goto_if_false @POOL2_10861
if 
  198@ == 2
goto_if_false @POOL2_10846
198@ = 0
goto @POOL2_10854

:POOL2_10846
201@ = 3001

:POOL2_10854
128@ = 1

:POOL2_10861
goto @POOL2_10893

:POOL2_10868
if 
  128@ == 1
goto_if_false @POOL2_10893
128@ = 0

:POOL2_10893
if 
  228@ == 1
goto_if_false @POOL2_11127
if 
  35@ == 0
goto_if_false @POOL2_11127
if 
  226@ == 1
goto_if_false @POOL2_11044
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_object_coordinates 82@ {x} $x {y} $y {z} 556@
set_object_heading 82@ {heading} $heading
TIMERA = 0
35@ = 99
goto @POOL2_12173
goto @POOL2_11127

:POOL2_11044
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_object_coordinates 82@ {x} $x {y} $y {z} 556@
set_object_heading 82@ {heading} $heading
35@ = 99
goto @POOL2_12173

:POOL2_11127
if 
  228@ == 2
goto_if_false @POOL2_11918
if 
  35@ == 0
goto_if_false @POOL2_11543
if 
  226@ == 1
goto_if_false @POOL2_11421
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
set_object_coordinates 82@ {x} $x {y} $y {z} 556@
set_object_heading 82@ {heading} $heading
TIMERA = 0
35@ += 1
198@ = 0
201@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @POOL2_11543

:POOL2_11421
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
set_object_coordinates 82@ {x} $x {y} $y {z} 556@
set_object_heading 82@ {heading} $heading
35@ = 99
goto @POOL2_12173

:POOL2_11543
if 
  35@ == 1
goto_if_false @POOL2_11918
$x, $y, $z = get_object_coordinates 82@
39@ = 0
if or
  is_button_pressed 180@ {buttonId} Button.LeftStickX
  is_button_pressed 180@ {buttonId} Button.LeftStickY
goto_if_false @POOL2_11614
39@ = 1

:POOL2_11614
if 
  39@ == 1
goto_if_false @POOL2_11829
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 231@ =# $LStickX
cset_lvar_float_to_var_int 230@ =# $LStickY
231@ /= 128.0
230@ /= -128.0
231@ *= 0.01
230@ *= 0.01
gosub @POOL2_53508
mult_float_var_by_float_lvar $cam_z2 *= 230@
mult_float_var_by_float_lvar $cam_rvec_x *= 230@
add_float_var_to_float_var $x += $cam_z2
add_float_var_to_float_var $y += $cam_rvec_x
mult_float_var_by_float_lvar $cam_nvec_x *= 231@
mult_float_var_by_float_lvar $cam_nvec_y *= 231@
add_float_var_to_float_var $x += $cam_nvec_x
add_float_var_to_float_var $y += $cam_nvec_y
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
set_object_coordinates 82@ {x} $x {y} $y {z} 556@

:POOL2_11829
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_11893
if 
  126@ == 0
goto_if_false @POOL2_11886
35@ = 99
126@ = 1
goto @POOL2_12173

:POOL2_11886
goto @POOL2_11918

:POOL2_11893
if 
  126@ == 1
goto_if_false @POOL2_11918
126@ = 0

:POOL2_11918
if 
  228@ == 0
goto_if_false @POOL2_11950
35@ = 99
goto @POOL2_12173

:POOL2_11950
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_12141
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_12134
if 
  not is_char_dead 209@
goto_if_false @POOL2_12056
219@ += 1.1
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_12056
if 
  not is_char_dead 210@
goto_if_false @POOL2_12118
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_12118
clear_help 
108@ = 1
127@ = 1

:POOL2_12134
goto @POOL2_12173

:POOL2_12141
if 
  127@ == 1
goto_if_false @POOL2_12166
127@ = 0

:POOL2_12166
183@ = 0

:POOL2_12173
if 
  35@ == 99
goto_if_false @POOL2_12207
34@ += 1
35@ = 0
clear_help 

:POOL2_12207
return 

:POOL2_12209
if 
  226@ == 1
goto_if_false @POOL2_14928
gosub @POOL2_56162
if 
  35@ == -1
goto_if_false @POOL2_12274
234@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_12274
if 
  35@ == 0
goto_if_false @POOL2_13448
if 
  not is_char_dead 209@
goto_if_false @POOL2_12354
219@ += 1.1
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_12354
if 
  not is_char_dead 210@
goto_if_false @POOL2_12416
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_12416
if 
  not is_char_dead 211@
goto_if_false @POOL2_12477
$x, $y, $z = get_char_coordinates 211@
$z += -10.0
set_char_coordinates 211@ {x} $x {y} $y {z} $z
freeze_char_position 211@ {state} True

:POOL2_12477
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
if 
  does_object_exist 82@
goto_if_false @POOL2_12577
$heading = get_object_heading 82@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} $heading

:POOL2_12577
if 
  not does_object_exist 234@
goto_if_false @POOL2_12666
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -10.0
234@ = create_object_no_offset #K_POOLQ2 {x} $x {y} $y {z} $z
set_object_dynamic 234@ {state} False
set_object_collision 234@ {state} False
set_object_draw_last 234@ {state} True
goto @POOL2_12687

:POOL2_12666
set_object_dynamic 234@ {state} False
set_object_collision 234@ {state} False
set_object_draw_last 234@ {state} True

:POOL2_12687
201@ = 0
198@ = 0
if 
  241@ == 0
goto_if_false @POOL2_13420
235@ = -1
42@ = 99999.8984
if 
  does_object_exist 82@
goto_if_false @POOL2_13269
$x, $y, $z = get_object_coordinates 82@
if 
  227@ == -1
goto_if_false @POOL2_12920
39@ = 1

:POOL2_12791
if 
  16 > 39@
goto_if_false @POOL2_12913
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_12899
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_12899
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_12899
39@ += 1
goto @POOL2_12791

:POOL2_12913
goto @POOL2_13269

:POOL2_12920
if 
  227@ == 0
goto_if_false @POOL2_13074
39@ = 1

:POOL2_12945
if 
  8 > 39@
goto_if_false @POOL2_13067
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_13053
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_13053
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_13053
39@ += 1
goto @POOL2_12945

:POOL2_13067
goto @POOL2_13269

:POOL2_13074
if 
  227@ == 1
goto_if_false @POOL2_13228
39@ = 9

:POOL2_13099
if 
  16 > 39@
goto_if_false @POOL2_13221
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_13207
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_13207
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_13207
39@ += 1
goto @POOL2_13099

:POOL2_13221
goto @POOL2_13269

:POOL2_13228
if 
  227@ == 2
goto_if_false @POOL2_13269
if 
  does_object_exist 90@
goto_if_false @POOL2_13269
235@ = 8

:POOL2_13269
if and
  235@ <> -1
  16 > 235@
goto_if_false @POOL2_13413
if 
  does_object_exist 82@
goto_if_false @POOL2_13413
$x, $y, $z = get_object_coordinates 82@
if 
  does_object_exist 82@(235@,16i)
goto_if_false @POOL2_13362
165@, 166@, 167@ = get_object_coordinates 82@(235@,16i)

:POOL2_13362
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
42@ = get_heading_from_vector_2d 169@ {y} 170@
set_object_heading 82@ {heading} 42@

:POOL2_13413
goto @POOL2_13427

:POOL2_13420
241@ = 0

:POOL2_13427
236@ = 0
gosub @POOL2_28010
35@ += 1

:POOL2_13448
if 
  35@ == 1
goto_if_false @POOL2_13594
if 
  is_button_pressed 180@ {buttonId} Button.Select
goto_if_false @POOL2_13569
if 
  233@ == 0
goto_if_false @POOL2_13562
if 
  232@ == 0
goto_if_false @POOL2_13541
232@ = 1
233@ = 1
goto @POOL2_13555

:POOL2_13541
232@ = 0
233@ = 1

:POOL2_13555
201@ = 0

:POOL2_13562
goto @POOL2_13594

:POOL2_13569
if 
  233@ == 1
goto_if_false @POOL2_13594
233@ = 0

:POOL2_13594
if 
  232@ == 0
goto_if_false @POOL2_13709
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_13709
if 
  232@ == 1
goto_if_false @POOL2_13824
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.3
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_13824
if 
  232@ == 0
goto_if_false @POOL2_13957
if 
  is_button_pressed 180@ {buttonId} Button.Square
goto_if_false @POOL2_13932
if 
  128@ == 0
goto_if_false @POOL2_13925
if 
  198@ == 2
goto_if_false @POOL2_13910
198@ = 0
goto @POOL2_13918

:POOL2_13910
201@ = 3001

:POOL2_13918
128@ = 1

:POOL2_13925
goto @POOL2_13957

:POOL2_13932
if 
  128@ == 1
goto_if_false @POOL2_13957
128@ = 0

:POOL2_13957
if 
  35@ == 2
goto_if_false @POOL2_14300
$x = 0.0
$y = -0.5
$z = -1.7
if or
  is_button_pressed 180@ {buttonId} Button.RightStickX
  is_button_pressed 180@ {buttonId} Button.RightStickY
goto_if_false @POOL2_14150
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 42@ =# $RStickX
42@ /= 128.0
42@ *= 0.2
add_float_lvar_to_float_var $x += 42@
cset_lvar_float_to_var_int 42@ =# $RStickY
42@ /= 128.0
if 
  -0.1 > 42@
goto_if_false @POOL2_14132
42@ = -0.1

:POOL2_14132
42@ *= 0.5
add_float_lvar_to_float_var $z += 42@

:POOL2_14150
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} $x {yOffset} $y {zOffset} $z
set_object_coordinates 168@ {x} $x {y} $y {z} $z
165@, 166@, 167@ = get_object_coordinates 82@
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
$heading = get_heading_from_vector_2d 169@ {y} 170@
set_object_heading 168@ {heading} $heading
if 
  is_button_pressed 180@ {buttonId} Button.Select
goto_if_false @POOL2_14300
restore_camera_jumpcut 
if 
  does_object_exist 168@
goto_if_false @POOL2_14293
delete_object 168@

:POOL2_14293
35@ = 0

:POOL2_14300
if 
  is_button_pressed 180@ {buttonId} Button.LeftStickX
goto_if_false @POOL2_14407
$heading = get_object_heading 82@
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 42@ =# $LStickX
42@ /= 128.0
42@ *= 2.0
add_float_lvar_to_float_var $heading += 42@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} 0.0
set_object_heading 82@ {heading} $heading

:POOL2_14407
if 
  does_object_exist 234@
goto_if_false @POOL2_14649
if 
  232@ == 0
goto_if_false @POOL2_14503
238@ = 0.0
239@ = 0.063
240@ = 0.0063
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 240@ {yOffset} -0.05 {zOffset} 239@
goto @POOL2_14558

:POOL2_14503
238@ = 22.5
239@ = 0.021
240@ = 0.0063
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 240@ {yOffset} -0.05 {zOffset} 239@

:POOL2_14558
$heading = get_object_heading 82@
$heading += 180.0
set_object_coordinates 234@ {x} 165@ {y} 166@ {z} 167@
if 
  232@ == 0
goto_if_false @POOL2_14633
set_object_rotation 234@ {x} 0.0 {y} 0.0 {z} $heading
goto @POOL2_14649

:POOL2_14633
set_object_rotation 234@ {x} 238@ {y} 0.0 {z} $heading

:POOL2_14649
if 
  not is_button_pressed 180@ {buttonId} Button.LeftStickX
goto_if_false @POOL2_14688
236@ = 0
gosub @POOL2_28010
goto @POOL2_14788

:POOL2_14688
if 
  236@ <> 0
goto_if_false @POOL2_14774
39@ = 0

:POOL2_14713
if 
  10 > 39@
goto_if_false @POOL2_14774
if 
  does_object_exist 343@(39@,10i)
goto_if_false @POOL2_14760
delete_object 343@(39@,10i)

:POOL2_14760
39@ += 1
goto @POOL2_14713

:POOL2_14774
236@ = 0
TIMERA = 0

:POOL2_14788
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_14866
if 
  126@ == 0
goto_if_false @POOL2_14859
if 
  does_object_exist 234@
goto_if_false @POOL2_14845
delete_object 234@

:POOL2_14845
35@ = 99
126@ = 1

:POOL2_14859
goto @POOL2_14891

:POOL2_14866
if 
  126@ == 1
goto_if_false @POOL2_14891
126@ = 0

:POOL2_14891
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @POOL2_14921
gosub @POOL2_33120
set_object_heading 82@ {heading} 359@

:POOL2_14921
goto @POOL2_14950

:POOL2_14928
gosub @POOL2_33120
set_object_heading 82@ {heading} 359@
35@ = 99

:POOL2_14950
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_15141
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_15134
if 
  not is_char_dead 209@
goto_if_false @POOL2_15056
219@ += 1.1
219@ = get_ground_z_for_3d_coord 217@ {y} 218@ {z} 219@
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
set_char_heading 209@ {heading} 220@

:POOL2_15056
if 
  not is_char_dead 210@
goto_if_false @POOL2_15118
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 210@ {heading} 224@

:POOL2_15118
clear_help 
108@ = 1
127@ = 1

:POOL2_15134
goto @POOL2_15173

:POOL2_15141
if 
  127@ == 1
goto_if_false @POOL2_15166
127@ = 0

:POOL2_15166
183@ = 0

:POOL2_15173
if 
  35@ == 99
goto_if_false @POOL2_15275
39@ = 0

:POOL2_15198
if 
  10 > 39@
goto_if_false @POOL2_15259
if 
  does_object_exist 343@(39@,10i)
goto_if_false @POOL2_15245
delete_object 343@(39@,10i)

:POOL2_15245
39@ += 1
goto @POOL2_15198

:POOL2_15259
34@ += 2
35@ = 0
clear_help 

:POOL2_15275
return 

:POOL2_15277
return 

:POOL2_15279
gosub @POOL2_56162
if 
  226@ == 1
goto_if_false @POOL2_15897
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_15375
if 
  127@ == 0
goto_if_false @POOL2_15368
34@ = 5
35@ = 0
127@ = 1
241@ = 1

:POOL2_15368
goto @POOL2_15890

:POOL2_15375
if 
  127@ == 1
goto_if_false @POOL2_15400
127@ = 0

:POOL2_15400
if 
  35@ == 0
goto_if_false @POOL2_15432
gosub @POOL2_18423
35@ += 1

:POOL2_15432
if 
  246@ == 0
goto_if_false @POOL2_15457
gosub @POOL2_52586

:POOL2_15457
if 
  246@ == 0
goto_if_false @POOL2_15615
gosub @POOL2_16355
if 
  248@ == 1
goto_if_false @POOL2_15605
if 
  is_button_pressed 180@ {buttonId} Button.RightStickY
goto_if_false @POOL2_15588
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 42@ =# $RStickY
42@ /= 128.0
42@ *= -0.2
242@ = 0.2
add_float_lvar_to_float_lvar 242@ += 42@
goto @POOL2_15598

:POOL2_15588
242@ = 0.2

:POOL2_15598
goto @POOL2_15615

:POOL2_15605
242@ = 0.0

:POOL2_15615
if 
  246@ == 0
goto_if_false @POOL2_15675
if 
  242@ > 0.25
goto_if_false @POOL2_15668
gosub @POOL2_19412
goto @POOL2_15675

:POOL2_15668
gosub @POOL2_18262

:POOL2_15675
if 
  35@ == 1
goto_if_false @POOL2_15723
if 
  not is_char_dead 211@
goto_if_false @POOL2_15723
gosub @POOL2_18605
35@ += 1

:POOL2_15723
if 
  35@ == 2
goto_if_false @POOL2_15748
gosub @POOL2_16609

:POOL2_15748
if 
  35@ == 3
goto_if_false @POOL2_15849
if 
  not is_char_dead 211@
goto_if_false @POOL2_15849
588@ += 1.1
588@ = get_ground_z_for_3d_coord 580@ {y} 584@ {z} 588@
set_char_coordinates 211@ {x} 580@ {y} 584@ {z} 588@
set_char_heading 211@ {heading} 592@
set_char_collision 211@ {state} True
TIMERA = 0
35@ = 99

:POOL2_15849
if 
  35@ == 99
goto_if_false @POOL2_15890
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_15890
goto @POOL2_16353

:POOL2_15897
if 
  35@ == 0
goto_if_false @POOL2_15929
gosub @POOL2_18423
35@ += 1

:POOL2_15929
if 
  246@ == 0
goto_if_false @POOL2_16078
gosub @POOL2_16355
if 
  248@ == 1
goto_if_false @POOL2_16061
if 
  2000 > TIMERA
goto_if_false @POOL2_16008
242@ = 0.2
goto @POOL2_16054

:POOL2_16008
if 
  3000 > TIMERA
goto_if_false @POOL2_16044
242@ = 0.0
goto @POOL2_16054

:POOL2_16044
242@ = 1.0

:POOL2_16054
goto @POOL2_16078

:POOL2_16061
TIMERA = 0
242@ = 0.0

:POOL2_16078
if 
  246@ == 0
goto_if_false @POOL2_16138
if 
  242@ > 0.25
goto_if_false @POOL2_16131
gosub @POOL2_19412
goto @POOL2_16138

:POOL2_16131
gosub @POOL2_18262

:POOL2_16138
if 
  35@ == 1
goto_if_false @POOL2_16186
if 
  not is_char_dead 211@
goto_if_false @POOL2_16186
gosub @POOL2_18605
35@ += 1

:POOL2_16186
if 
  35@ == 2
goto_if_false @POOL2_16211
gosub @POOL2_16609

:POOL2_16211
if 
  35@ == 3
goto_if_false @POOL2_16312
if 
  not is_char_dead 211@
goto_if_false @POOL2_16312
588@ += 1.1
588@ = get_ground_z_for_3d_coord 580@ {y} 584@ {z} 588@
set_char_coordinates 211@ {x} 580@ {y} 584@ {z} 588@
set_char_heading 211@ {heading} 592@
set_char_collision 211@ {state} True
TIMERA = 0
35@ = 99

:POOL2_16312
if 
  35@ == 99
goto_if_false @POOL2_16353
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_16353
return 

:POOL2_16355
248@ = 0
if 
  not is_char_dead 211@
goto_if_false @POOL2_16607
if 
  596@ == 1
goto_if_false @POOL2_16436
if 
  is_char_playing_anim 211@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_16436
248@ = 1

:POOL2_16436
if 
  596@ == 2
goto_if_false @POOL2_16492
if 
  is_char_playing_anim 211@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_16492
248@ = 1

:POOL2_16492
if 
  596@ == 3
goto_if_false @POOL2_16549
if 
  is_char_playing_anim 211@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_16549
248@ = 1

:POOL2_16549
if 
  596@ == 4
goto_if_false @POOL2_16607
if 
  is_char_playing_anim 211@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_16607
248@ = 1

:POOL2_16607
return 

:POOL2_16609
if 
  not is_char_dead 211@
goto_if_false @POOL2_17220
if 
  247@ == 0
goto_if_false @POOL2_17220
if 
  596@ == 1
goto_if_false @POOL2_16787
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_SHORT_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_SHORT_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_16782
perform_sequence_task 211@ {sequence} 47@

:POOL2_16782
clear_sequence_task 47@

:POOL2_16787
if 
  596@ == 2
goto_if_false @POOL2_16927
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_MED_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_MED_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_16922
perform_sequence_task 211@ {sequence} 47@

:POOL2_16922
clear_sequence_task 47@

:POOL2_16927
if 
  596@ == 3
goto_if_false @POOL2_17069
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_LONG_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_LONG_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17064
perform_sequence_task 211@ {sequence} 47@

:POOL2_17064
clear_sequence_task 47@

:POOL2_17069
if 
  596@ == 4
goto_if_false @POOL2_17213
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_XLONG_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_XLONG_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17208
perform_sequence_task 211@ {sequence} 47@

:POOL2_17208
clear_sequence_task 47@

:POOL2_17213
247@ += 1

:POOL2_17220
if 
  247@ == 1
goto_if_false @POOL2_17738
if 
  246@ == 0
goto_if_false @POOL2_17724
if 
  not is_char_dead 211@
goto_if_false @POOL2_17717
39@ = get_script_task_status 211@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @POOL2_17703
if 
  596@ == 1
goto_if_false @POOL2_17402
if 
  is_char_playing_anim 211@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_17402
set_char_anim_current_time 211@ {animationName} "POOL_SHORT_SHOT" {time} 243@
set_char_anim_speed 211@ {animName} "POOL_SHORT_SHOT" {animSpeed} 244@

:POOL2_17402
if 
  596@ == 2
goto_if_false @POOL2_17497
if 
  is_char_playing_anim 211@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_17497
set_char_anim_current_time 211@ {animationName} "POOL_MED_SHOT" {time} 243@
set_char_anim_speed 211@ {animName} "POOL_MED_SHOT" {animSpeed} 244@

:POOL2_17497
if 
  596@ == 3
goto_if_false @POOL2_17595
if 
  is_char_playing_anim 211@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_17595
set_char_anim_current_time 211@ {animationName} "POOL_LONG_SHOT" {time} 243@
set_char_anim_speed 211@ {animName} "POOL_LONG_SHOT" {animSpeed} 244@

:POOL2_17595
if 
  596@ == 4
goto_if_false @POOL2_17696
if 
  is_char_playing_anim 211@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_17696
set_char_anim_current_time 211@ {animationName} "POOL_XLONG_SHOT" {time} 243@
set_char_anim_speed 211@ {animName} "POOL_XLONG_SHOT" {animSpeed} 244@

:POOL2_17696
goto @POOL2_17717

:POOL2_17703
TIMERA = 0
247@ += 1

:POOL2_17717
goto @POOL2_17738

:POOL2_17724
TIMERA = 0
247@ += 1

:POOL2_17738
if 
  247@ == 2
goto_if_false @POOL2_18157
if 
  not is_char_dead 211@
goto_if_false @POOL2_18157
39@ = get_script_task_status 211@ {taskId} 1560
if and
  not is_int_lvar_equal_to_constant 39@ == 7
  5000 > TIMERA
goto_if_false @POOL2_18150
42@ = 1.0
sub_float_lvar_from_float_lvar 42@ -= 244@
42@ /= 20.0
add_float_lvar_to_float_lvar 244@ += 42@
if 
  0.8 > 244@
goto_if_false @POOL2_17876
244@ += 0.01

:POOL2_17876
if and
  1.2 > 244@
  244@ > 0.8
goto_if_false @POOL2_17917
244@ = 1.0

:POOL2_17917
if 
  is_char_playing_anim 211@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_17975
set_char_anim_speed 211@ {animName} "POOL_SHORT_SHOT" {animSpeed} 244@

:POOL2_17975
if 
  is_char_playing_anim 211@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_18029
set_char_anim_speed 211@ {animName} "POOL_MED_SHOT" {animSpeed} 244@

:POOL2_18029
if 
  is_char_playing_anim 211@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_18085
set_char_anim_speed 211@ {animName} "POOL_LONG_SHOT" {animSpeed} 244@

:POOL2_18085
if 
  is_char_playing_anim 211@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_18143
set_char_anim_speed 211@ {animName} "POOL_XLONG_SHOT" {animSpeed} 244@

:POOL2_18143
goto @POOL2_18157

:POOL2_18150
247@ += 1

:POOL2_18157
if 
  247@ == 3
goto_if_false @POOL2_18260
if 
  not is_char_dead 211@
goto_if_false @POOL2_18253
if 
  108@ == 0
goto_if_false @POOL2_18253
task_play_anim_non_interruptable 211@ {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:POOL2_18253
35@ += 1

:POOL2_18260
return 

:POOL2_18262
set_lvar_float_to_lvar_float 42@ = 242@
sub_float_lvar_from_float_lvar 42@ -= 243@
if or
  42@ >= 0.05
  -0.05 >= 42@
goto_if_false @POOL2_18413
42@ /= 3.0
if and
  0.01 > 42@
  42@ > -0.01
goto_if_false @POOL2_18398
if 
  42@ > 0.0
goto_if_false @POOL2_18388
42@ = 0.01
goto @POOL2_18398

:POOL2_18388
42@ = -0.01

:POOL2_18398
add_float_lvar_to_float_lvar 243@ += 42@
goto @POOL2_18421

:POOL2_18413
set_lvar_float_to_lvar_float 243@ = 242@

:POOL2_18421
return 

:POOL2_18423
246@ = 0
247@ = 0
609@ = 565.0
610@ = 386.0
set_lvar_float_to_lvar_float 613@ = 609@
set_lvar_float_to_lvar_float 614@ = 610@
612@ = 67.0
611@ = 78.0
615@ = 19.0
616@ = 16.0
244@ = 0.0
243@ = 0.0
244@ = 0.0
242@ = 0.0
TIMERA = 0
TIMERB = 0
if 
  226@ <> 0
goto_if_false @POOL2_18596
print_help_forever 'PL_H4'

:POOL2_18596
gosub @POOL2_50834
return 

:POOL2_18605
set_char_collision 211@ {state} False
590@ += 1.1
590@ = get_ground_z_for_3d_coord 582@ {y} 586@ {z} 590@
set_char_coordinates 211@ {x} 582@ {y} 586@ {z} 590@
set_char_heading 211@ {heading} 594@
if 
  is_int_lvar_equal_to_int_lvar 209@ == 211@
goto_if_false @POOL2_18863
if 
  not is_char_dead 209@
goto_if_false @POOL2_18856
$x, $y, $z = get_offset_from_char_in_world_coords 209@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  not is_char_dead 210@
goto_if_false @POOL2_18856
set_char_coordinates 210@ {x} 221@ {y} 222@ {z} 223@
if 
  locate_char_any_means_2d 210@ {x} $x {y} $y {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @POOL2_18829
$x, $y, $z = get_offset_from_char_in_world_coords 210@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates 210@ {x} $x {y} $y {z} $z

:POOL2_18829
if 
  does_object_exist 82@
goto_if_false @POOL2_18856
task_look_at_object 210@ {object} 82@ {time} 10000

:POOL2_18856
goto @POOL2_19042

:POOL2_18863
if 
  not is_char_dead 210@
goto_if_false @POOL2_19042
$x, $y, $z = get_offset_from_char_in_world_coords 210@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  not is_char_dead 209@
goto_if_false @POOL2_19042
set_char_coordinates 209@ {x} 217@ {y} 218@ {z} 219@
if 
  locate_char_any_means_2d 209@ {x} $x {y} $y {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @POOL2_19042
$x, $y, $z = get_offset_from_char_in_world_coords 209@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates 209@ {x} $x {y} $y {z} $z
if 
  does_object_exist 82@
goto_if_false @POOL2_19042
task_look_at_object 209@ {object} 82@ {time} 10000

:POOL2_19042
if 
  596@ == 1
goto_if_false @POOL2_19157
$x, $y, $z = get_offset_from_char_in_world_coords 211@ {xOffset} 0.1532 {yOffset} -0.9733 {zOffset} 1.1819
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_char_in_world_coords 211@ {xOffset} -0.0267 {yOffset} -0.3468 {zOffset} 0.4236
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_19157
if 
  596@ == 2
goto_if_false @POOL2_19205
$x = 0.4
$y = -1.0
$z = 1.0

:POOL2_19205
if 
  596@ == 3
goto_if_false @POOL2_19253
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19253
if 
  596@ == 4
goto_if_false @POOL2_19301
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19301
if 
  596@ <> 1
goto_if_false @POOL2_19410
$x, $y, $z = get_offset_from_char_in_world_coords 211@ {xOffset} $x {yOffset} $y {zOffset} $z
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_19410
return 

:POOL2_19412
if 
  226@ == 1
goto_if_false @POOL2_19512
set_lvar_float_to_lvar_float 245@ = 242@
sub_float_lvar_from_float_lvar 245@ -= 243@
245@ /= 0.1
set_lvar_float_to_lvar_float 244@ = 245@
244@ *= 2.0
if 
  0.6 > 244@
goto_if_false @POOL2_19505
244@ = 0.6

:POOL2_19505
goto @POOL2_19569

:POOL2_19512
set_lvar_float_to_lvar_float 244@ = 360@
244@ *= 2.0
if 
  0.6 > 244@
goto_if_false @POOL2_19561
244@ = 0.6

:POOL2_19561
set_lvar_float_to_lvar_float 245@ = 360@

:POOL2_19569
if 
  does_object_exist 82@
goto_if_false @POOL2_20458
$heading = get_object_heading 82@
42@ = sin $heading
set_lvar_float_to_lvar_float 169@ = 42@
169@ *= -1.0
42@ = cos $heading
set_lvar_float_to_lvar_float 170@ = 42@
171@ = 0.0
$x, $y, $z = get_object_coordinates 82@
set_lvar_float_to_var_float 165@ = $x
add_float_lvar_to_float_lvar 165@ += 169@
set_lvar_float_to_var_float 166@ = $y
add_float_lvar_to_float_lvar 166@ += 170@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 245@
mult_float_lvar_by_float_lvar 170@ *= 245@
freeze_object_position 82@ {state} False
set_object_collision 82@ {state} False
set_object_dynamic 82@ {state} False
set_object_velocity 82@ {xSpeed} 169@ {ySpeed} 170@ {zSpeed} 171@
274@ = -1
275@ = 0
273@ = 0
202@ = 0
39@ = 0

:POOL2_19810
if 
  16 > 39@
goto_if_false @POOL2_19853
109@(39@,16i) = 0
39@ += 1
goto @POOL2_19810

:POOL2_19853
report_mission_audio_event_at_object 82@ {soundId} ScriptSound.SoundPoolHitWhite
249@ = 0.0
250@ = 0.0
set_var_float_to_lvar_float $x = 613@
sub_float_lvar_from_float_var $x -= 609@
set_var_float_to_lvar_float $y = 614@
sub_float_lvar_from_float_var $y -= 610@
div_float_var_by_float_lvar $x /= 611@
div_float_var_by_float_lvar $y /= 612@
if 
  226@ == 0
goto_if_false @POOL2_19977
$x = generate_random_float_in_range -0.2 {max} 0.2
$y = generate_random_float_in_range -0.2 {max} 0.2

:POOL2_19977
if or
  $x > 0.2
  -0.2 > $x
  $y > 0.2
  -0.2 > $y
  226@ == 0
goto_if_false @POOL2_20148
mult_float_var_by_float_lvar $x *= 245@
mult_float_var_by_float_lvar $y *= 245@
set_lvar_float_to_var_float 249@ = $x
249@ *= 0.5
set_lvar_float_to_var_float 250@ = $y
250@ *= -0.5
$x *= 10.0
$y *= 10.0
if 
  226@ == 1
goto_if_false @POOL2_20141
set_object_rotation_velocity 82@ {x} $y {y} 0.0 {z} $x

:POOL2_20141
goto @POOL2_20168

:POOL2_20148
249@ = 0.0
250@ = 0.0

:POOL2_20168
613@ = 559.0
614@ = 381.0
if 
  129@ == 1
goto_if_false @POOL2_20358
save_newline_to_debug_file 
save_string_to_debug_file "CUE BALL DATA = "
save_float_to_debug_file 245@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z

:POOL2_20358
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True
if 
  not is_char_dead 209@
goto_if_false @POOL2_20415
if 
  does_object_exist 82@
goto_if_false @POOL2_20415
task_look_at_object 209@ {object} 82@ {time} 10000

:POOL2_20415
if 
  not is_char_dead 210@
goto_if_false @POOL2_20458
if 
  does_object_exist 82@
goto_if_false @POOL2_20458
task_look_at_object 210@ {object} 82@ {time} 10000

:POOL2_20458
246@ = 1
return 

:POOL2_20467
if 
  35@ == 0
goto_if_false @POOL2_20785
if 
  not is_char_dead 211@
goto_if_false @POOL2_20785
$x, $y, $z = get_object_coordinates 163@
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 580@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 584@
add_float_lvar_to_float_var $x += 169@
add_float_lvar_to_float_var $y += 170@
$z += 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_object_coordinates 163@
$z += 0.5
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
TIMERA = 0
165@, 166@, 167@ = get_offset_from_char_in_world_coords 211@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.0
167@ = get_ground_z_for_3d_coord 165@ {y} 166@ {z} 167@
$heading = get_char_heading 211@
set_char_coordinates 211@ {x} 606@ {y} 607@ {z} 608@
set_char_heading 211@ {heading} $heading
if 
  108@ == 0
goto_if_false @POOL2_20778
task_play_anim_non_interruptable 211@ {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1

:POOL2_20778
35@ += 1

:POOL2_20785
if 
  35@ == 1
goto_if_false @POOL2_20910
39@ = 0
40@ = 0

:POOL2_20817
if 
  16 > 39@
goto_if_false @POOL2_20878
if 
  109@(39@,16i) == 1
goto_if_false @POOL2_20864
40@ += 1

:POOL2_20864
39@ += 1
goto @POOL2_20817

:POOL2_20878
if 
  40@ == 16
goto_if_false @POOL2_20910
35@ += 1
TIMERA = 0

:POOL2_20910
if 
  35@ == 2
goto_if_false @POOL2_20954
if 
  TIMERA > 700
goto_if_false @POOL2_20954
35@ = 99

:POOL2_20954
if 
  35@ == 99
goto_if_false @POOL2_20988
clear_help 
34@ += 1
35@ = 0

:POOL2_20988
return 

:POOL2_20990
if 
  35@ == 0
goto_if_false @POOL2_21022
270@ = 0
35@ += 1

:POOL2_21022
if 
  35@ == 1
goto_if_false @POOL2_21072
if 
  274@ == -1
goto_if_false @POOL2_21065
270@ = 1

:POOL2_21065
35@ += 1

:POOL2_21072
if 
  35@ == 2
goto_if_false @POOL2_21308
if 
  274@ <> -1
goto_if_false @POOL2_21301
if 
  227@ == -1
goto_if_false @POOL2_21158
if 
  274@ == 8
goto_if_false @POOL2_21151
270@ = 2

:POOL2_21151
goto @POOL2_21301

:POOL2_21158
if 
  227@ == 0
goto_if_false @POOL2_21208
if 
  274@ >= 8
goto_if_false @POOL2_21201
270@ = 2

:POOL2_21201
goto @POOL2_21301

:POOL2_21208
if 
  227@ == 1
goto_if_false @POOL2_21258
if 
  8 >= 274@
goto_if_false @POOL2_21251
270@ = 2

:POOL2_21251
goto @POOL2_21301

:POOL2_21258
if 
  227@ == 2
goto_if_false @POOL2_21301
if 
  274@ <> 8
goto_if_false @POOL2_21301
270@ = 2

:POOL2_21301
35@ += 1

:POOL2_21308
if 
  35@ == 3
goto_if_false @POOL2_21358
if 
  251@ == 1
goto_if_false @POOL2_21351
270@ = 3

:POOL2_21351
35@ += 1

:POOL2_21358
if 
  35@ == 4
goto_if_false @POOL2_21952
if 
  267@ == 1
goto_if_false @POOL2_21630
if 
  270@ <> 3
goto_if_false @POOL2_21623
if 
  227@ == -1
goto_if_false @POOL2_21473
if 
  259@ <> 1
goto_if_false @POOL2_21466
if 
  184@ == 0
goto_if_false @POOL2_21466

:POOL2_21466
goto @POOL2_21623

:POOL2_21473
if 
  227@ == 0
goto_if_false @POOL2_21523
if 
  269@ > 0
goto_if_false @POOL2_21516
270@ = 4

:POOL2_21516
goto @POOL2_21623

:POOL2_21523
if 
  227@ == 1
goto_if_false @POOL2_21573
if 
  268@ > 0
goto_if_false @POOL2_21566
270@ = 4

:POOL2_21566
goto @POOL2_21623

:POOL2_21573
if 
  227@ == 2
goto_if_false @POOL2_21623
if or
  268@ > 0
  269@ > 0
goto_if_false @POOL2_21623
270@ = 4

:POOL2_21623
goto @POOL2_21945

:POOL2_21630
if 
  267@ > 1
goto_if_false @POOL2_21945
if 
  227@ == -1
goto_if_false @POOL2_21795
if and
  268@ > 0
  269@ == 0
goto_if_false @POOL2_21727
if 
  259@ <> 1
goto_if_false @POOL2_21727
if 
  184@ == 0
goto_if_false @POOL2_21727

:POOL2_21727
if and
  268@ == 0
  269@ > 0
goto_if_false @POOL2_21788
if 
  259@ <> 1
goto_if_false @POOL2_21788
if 
  184@ == 0
goto_if_false @POOL2_21788

:POOL2_21788
goto @POOL2_21945

:POOL2_21795
if 
  227@ == 0
goto_if_false @POOL2_21845
if 
  269@ > 0
goto_if_false @POOL2_21838
270@ = 4

:POOL2_21838
goto @POOL2_21945

:POOL2_21845
if 
  227@ == 1
goto_if_false @POOL2_21895
if 
  268@ > 0
goto_if_false @POOL2_21888
270@ = 4

:POOL2_21888
goto @POOL2_21945

:POOL2_21895
if 
  227@ == 2
goto_if_false @POOL2_21945
if or
  269@ > 0
  268@ > 0
goto_if_false @POOL2_21945
270@ = 4

:POOL2_21945
35@ += 1

:POOL2_21952
if 
  35@ == 5
goto_if_false @POOL2_22070
if 
  227@ <> 2
goto_if_false @POOL2_22020
if 
  259@ == 1
goto_if_false @POOL2_22013
270@ = 5

:POOL2_22013
goto @POOL2_22063

:POOL2_22020
if 
  259@ == 1
goto_if_false @POOL2_22063
if 
  270@ <> 0
goto_if_false @POOL2_22063
270@ = 5

:POOL2_22063
35@ += 1

:POOL2_22070
if 
  35@ == 6
goto_if_false @POOL2_22156
if 
  270@ == 0
goto_if_false @POOL2_22149
if 
  267@ == 0
goto_if_false @POOL2_22149
if 
  273@ == 0
goto_if_false @POOL2_22149
270@ = 6

:POOL2_22149
35@ = 99

:POOL2_22156
if 
  35@ == 99
goto_if_false @POOL2_22380
if and
  270@ == 0
  184@ == 0
  267@ > 0
  227@ == -1
goto_if_false @POOL2_22364
if 
  is_int_lvar_greater_than_int_lvar 268@ > 269@
goto_if_false @POOL2_22292
if 
  225@ == 1
goto_if_false @POOL2_22271
213@ = 0
214@ = 1
goto @POOL2_22285

:POOL2_22271
213@ = 1
214@ = 0

:POOL2_22285
goto @POOL2_22364

:POOL2_22292
if 
  is_int_lvar_greater_than_int_lvar 269@ > 268@
goto_if_false @POOL2_22364
if 
  225@ == 1
goto_if_false @POOL2_22350
213@ = 1
214@ = 0
goto @POOL2_22364

:POOL2_22350
213@ = 0
214@ = 1

:POOL2_22364
clear_help 
35@ = 0
34@ += 1

:POOL2_22380
return 

:POOL2_22382
if 
  35@ == 0
goto_if_false @POOL2_24208
TIMERA = 0
if and
  67@ == 1
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @POOL2_22528
if and
  72@ == 1
  73@ == 1
goto_if_false @POOL2_22528
if 
  213@ == 0
goto_if_false @POOL2_22503
213@ = 2

:POOL2_22503
if 
  214@ == 0
goto_if_false @POOL2_22528
214@ = 2

:POOL2_22528
if and
  75@ == 1
  76@ == 1
  77@ == 1
  78@ == 1
  79@ == 1
goto_if_false @POOL2_22649
if and
  80@ == 1
  81@ == 1
goto_if_false @POOL2_22649
if 
  213@ == 1
goto_if_false @POOL2_22624
213@ = 2

:POOL2_22624
if 
  214@ == 1
goto_if_false @POOL2_22649
214@ = 2

:POOL2_22649
switch_start 270@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_24093 {caseNum1} 0 {caseLabel1} @POOL2_22712 {caseNum2} 1 {caseLabel2} @POOL2_23043 {caseNum3} 2 {caseLabel3} @POOL2_23241 {caseNum4} 3 {caseLabel4} @POOL2_23439 {caseNum5} 4 {caseLabel5} @POOL2_23637 {caseNum6} 5 {caseLabel6} @POOL2_23835 {caseNum7} 6 {caseLabel7} @POOL2_23895

:POOL2_22712
if 
  267@ > 0
goto_if_false @POOL2_22845
if 
  74@ <> 1
goto_if_false @POOL2_22817
228@ = 0
229@ = 1
if 
  225@ == 1
goto_if_false @POOL2_22795
set_lvar_int_to_lvar_int 227@ = 213@
goto @POOL2_22803

:POOL2_22795
set_lvar_int_to_lvar_int 227@ = 214@

:POOL2_22803
35@ = 99
goto @POOL2_22838

:POOL2_22817
272@ = 1
271@ = 1
35@ = 99

:POOL2_22838
goto @POOL2_23036

:POOL2_22845
if 
  225@ == 1
goto_if_false @POOL2_22969
228@ = 0
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_22948
set_lvar_int_to_constant 180@ = 1
goto @POOL2_22955

:POOL2_22948
set_lvar_int_to_constant 180@ = 0

:POOL2_22955
35@ = 99
goto @POOL2_23036

:POOL2_22969
228@ = 0
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23036
goto @POOL2_24093

:POOL2_23043
if 
  225@ == 1
goto_if_false @POOL2_23167
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23146
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23153

:POOL2_23146
set_lvar_int_to_constant 180@ = 0

:POOL2_23153
35@ = 99
goto @POOL2_23234

:POOL2_23167
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23234
goto @POOL2_24093

:POOL2_23241
if 
  225@ == 1
goto_if_false @POOL2_23365
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23344
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23351

:POOL2_23344
set_lvar_int_to_constant 180@ = 0

:POOL2_23351
35@ = 99
goto @POOL2_23432

:POOL2_23365
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23432
goto @POOL2_24093

:POOL2_23439
if 
  225@ == 1
goto_if_false @POOL2_23563
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23542
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23549

:POOL2_23542
set_lvar_int_to_constant 180@ = 0

:POOL2_23549
35@ = 99
goto @POOL2_23630

:POOL2_23563
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23630
goto @POOL2_24093

:POOL2_23637
if 
  225@ == 1
goto_if_false @POOL2_23761
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23740
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23747

:POOL2_23740
set_lvar_int_to_constant 180@ = 0

:POOL2_23747
35@ = 99
goto @POOL2_23828

:POOL2_23761
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23828
goto @POOL2_24093

:POOL2_23835
if 
  184@ == 0
goto_if_false @POOL2_23867
271@ = 0
goto @POOL2_23874

:POOL2_23867
271@ = 1

:POOL2_23874
272@ = 1
35@ = 99
goto @POOL2_24093

:POOL2_23895
if 
  225@ == 1
goto_if_false @POOL2_24019
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23998
set_lvar_int_to_constant 180@ = 1
goto @POOL2_24005

:POOL2_23998
set_lvar_int_to_constant 180@ = 0

:POOL2_24005
35@ = 99
goto @POOL2_24086

:POOL2_24019
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_24086
goto @POOL2_24093

:POOL2_24093
if 
  178@ == 0
goto_if_false @POOL2_24147
if 
  226@ == 1
goto_if_false @POOL2_24140
print_help_forever 'PL_H5'

:POOL2_24140
goto @POOL2_24194

:POOL2_24147
if 
  is_int_lvar_equal_to_constant 180@ == 0
goto_if_false @POOL2_24183
print_help_forever 'PL_H8'
goto @POOL2_24194

:POOL2_24183
print_help_forever 'PL_H9'

:POOL2_24194
TIMERA = 0
TIMERB = 0

:POOL2_24208
if 
  35@ == 99
goto_if_false @POOL2_24316
gosub @POOL2_53966
if 
  226@ == 1
goto_if_false @POOL2_24283
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_24276
35@ += 1

:POOL2_24276
goto @POOL2_24316

:POOL2_24283
if or
  TIMERB > 2000
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_24316
35@ += 1

:POOL2_24316
if 
  35@ == 100
goto_if_false @POOL2_24478
clear_help 
39@ = 0
267@ = 0

:POOL2_24350
if 
  16 > 39@
goto_if_false @POOL2_24393
251@(39@,16i) = 0
39@ += 1
goto @POOL2_24350

:POOL2_24393
268@ = 0
269@ = 0
if 
  272@ == 1
goto_if_false @POOL2_24453
184@ = 1
34@ += 1
35@ = 0
goto @POOL2_24474

:POOL2_24453
184@ = 0
34@ = 3
35@ = 0

:POOL2_24474
wait 0

:POOL2_24478
return 

:POOL2_24480
if 
  35@ == 0
goto_if_false @POOL2_24933
if 
  271@ == 0
goto_if_false @POOL2_24580
if 
  225@ == 1
goto_if_false @POOL2_24557
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
goto @POOL2_24573

:POOL2_24557
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@

:POOL2_24573
goto @POOL2_24637

:POOL2_24580
if 
  225@ == 1
goto_if_false @POOL2_24621
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
goto @POOL2_24637

:POOL2_24621
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@

:POOL2_24637
if 
  not is_char_dead 211@
goto_if_false @POOL2_24933
$x, $y, $z = get_offset_from_char_in_world_coords 211@ {xOffset} 1.0 {yOffset} 2.0 {zOffset} 0.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 211@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  178@ == 0
goto_if_false @POOL2_24861
if 
  is_int_lvar_equal_to_int_lvar 211@ == 209@
goto_if_false @POOL2_24823
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= 2
add_score $player1 {money} 39@
start_new_script @CASHWIN 39@ 5000 80 
if 
  not is_char_dead 164@
goto_if_false @POOL2_24816
set_char_money 164@ {amount} 0

:POOL2_24816
goto @POOL2_24854

:POOL2_24823
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= -1
start_new_script @CASHWIN 39@ 5000 80 

:POOL2_24854
goto @POOL2_24919

:POOL2_24861
if 
  is_int_lvar_equal_to_int_lvar 211@ == 209@
goto_if_false @POOL2_24903
print_big 'PL_08' {time} 5000 {style} TextStyle.Middle
goto @POOL2_24919

:POOL2_24903
print_big 'PL_09' {time} 5000 {style} TextStyle.Middle

:POOL2_24919
TIMERA = 0
35@ += 1

:POOL2_24933
if 
  35@ == 1
goto_if_false @POOL2_24977
if 
  TIMERA > 5000
goto_if_false @POOL2_24977
35@ += 1

:POOL2_24977
if 
  35@ == 2
goto_if_false @POOL2_25550
do_fade 500 {direction} Fade.Out

:POOL2_25002
if 
  get_fading_status 
goto_if_false @POOL2_25026
wait 0
goto @POOL2_25002

:POOL2_25026
39@ = 0

:POOL2_25033
if 
  16 > 39@
goto_if_false @POOL2_25094
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_25080
delete_object 82@(39@,16i)

:POOL2_25080
39@ += 1
goto @POOL2_25033

:POOL2_25094
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.2734 {yOffset} -0.0547 {zOffset} 0.9297
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading
554@, 555@, 556@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.3408 {yOffset} -0.0284 {zOffset} 0.9297
557@ = get_object_heading 163@
557@ += 90.0
83@ = create_object_no_offset #K_POOLBALLSPT01 {x} 554@ {y} 555@ {z} 556@
84@ = create_object_no_offset #K_POOLBALLSPT02 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_object_no_offset #K_POOLBALLSPT03 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_object_no_offset #K_POOLBALLSPT04 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object_no_offset #K_POOLBALLSPT05 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_object_no_offset #K_POOLBALLSPT06 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_object_no_offset #K_POOLBALLSPT07 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_object_no_offset #K_POOLBALL8 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_object_no_offset #K_POOLBALLSTP01 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object_no_offset #K_POOLBALLSTP02 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object_no_offset #K_POOLBALLSTP03 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_object_no_offset #K_POOLBALLSTP04 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_object_no_offset #K_POOLBALLSTP05 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_object_no_offset #K_POOLBALLSTP06 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_object_no_offset #K_POOLBALLSTP07 {x} 0.0 {y} 0.0 {z} 0.0
gosub @POOL2_49954
35@ = 99

:POOL2_25550
if 
  35@ == 99
goto_if_false @POOL2_25584
clear_help 
34@ += 1
35@ = 0

:POOL2_25584
return 
set_text_right_justify False
set_text_justify False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = get_hud_colour 6
set_text_colour $temp_integer_1 {green} $temp_integer_2 {blue} $temp_integer_3 {alpha} 255
return 

:POOL2_25674
271@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
39@ = 0

:POOL2_25716
if 
  16 > 39@
goto_if_false @POOL2_25770
251@(39@,16i) = 0
66@(39@,16i) = 0
39@ += 1
goto @POOL2_25716

:POOL2_25770
228@ = 0
272@ = 0
34@ = 1
35@ = 0
return 

:POOL2_25800
if 
  does_object_exist 163@
goto_if_false @POOL2_25848
$x, $y, $z = get_object_coordinates 163@
clear_area $x {y} $y {z} $z {radius} 10.0 {clearParticles} True

:POOL2_25848
if 
  does_object_exist 82@
goto_if_false @POOL2_25886
48@ = get_object_speed 82@
49@, 50@, 51@ = get_object_rotation_velocity 82@

:POOL2_25886
if 
  202@ > 2000
goto_if_false @POOL2_26376
set_var_float_to_lvar_float $x = 200@
$x *= -1.0
39@ = 0

:POOL2_25930
if 
  16 > 39@
goto_if_false @POOL2_26376
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_26351
42@ = get_object_speed 82@(39@,16i)
if 
  is_float_lvar_greater_than_float_lvar 199@ > 42@
goto_if_false @POOL2_26333
if 
  0.005 > 42@
goto_if_false @POOL2_26249
42@, 43@, 44@ = get_object_rotation_velocity 82@(39@,16i)
40@ = 0
if or
  is_float_lvar_greater_than_float_lvar 42@ > 200@
  is_float_var_greater_than_float_lvar $x > 42@
goto_if_false @POOL2_26079
40@ = 1

:POOL2_26079
if or
  is_float_lvar_greater_than_float_lvar 43@ > 200@
  is_float_var_greater_than_float_lvar $x > 43@
goto_if_false @POOL2_26113
40@ = 1

:POOL2_26113
if or
  is_float_lvar_greater_than_float_lvar 44@ > 200@
  is_float_var_greater_than_float_lvar $x > 44@
goto_if_false @POOL2_26147
40@ = 1

:POOL2_26147
if 
  40@ == 0
goto_if_false @POOL2_26231
set_object_velocity 82@(39@,16i) {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} 0.0
set_object_rotation_velocity 82@(39@,16i) {x} 0.0 {y} 0.0 {z} 0.0
109@(39@,16i) = 1
goto @POOL2_26242

:POOL2_26231
109@(39@,16i) = 0

:POOL2_26242
goto @POOL2_26326

:POOL2_26249
$x, $y, $z = get_object_velocity 82@(39@,16i)
$x *= 0.9
$y *= 0.9
$z *= 0.9
set_object_velocity 82@(39@,16i) {xSpeed} $x {ySpeed} $y {zSpeed} $z
109@(39@,16i) = 0

:POOL2_26326
goto @POOL2_26344

:POOL2_26333
109@(39@,16i) = 0

:POOL2_26344
goto @POOL2_26362

:POOL2_26351
109@(39@,16i) = 1

:POOL2_26362
39@ += 1
goto @POOL2_25930

:POOL2_26376
if 
  108@ <> 1
goto_if_false @POOL2_26440
set_lvar_int_to_lvar_int 354@ = 209@
set_lvar_int_to_lvar_int 355@ = 106@
gosub @POOL2_30078
set_lvar_int_to_lvar_int 354@ = 210@
set_lvar_int_to_lvar_int 355@ = 107@
gosub @POOL2_30078

:POOL2_26440
249@ *= 0.98
250@ *= 0.98
39@ = 0

:POOL2_26467
if 
  16 > 39@
goto_if_false @POOL2_26741
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_26727
$x, $y, $z = get_object_coordinates 82@(39@,16i)
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= 2.0
set_lvar_float_to_lvar_float 42@ = 556@
sub_float_lvar_from_float_lvar 42@ -= 43@
if 
  is_float_lvar_greater_than_float_var 42@ > $z
goto_if_false @POOL2_26727
if 
  66@(39@,16i) == 0
goto_if_false @POOL2_26727
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundPoolBallPot
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_26641
delete_object 82@(39@,16i)

:POOL2_26641
66@(39@,16i) = 1
251@(39@,16i) = 1
267@ += 1
if and
  39@ > 0
  8 > 39@
goto_if_false @POOL2_26702
268@ += 1

:POOL2_26702
if 
  39@ > 8
goto_if_false @POOL2_26727
269@ += 1

:POOL2_26727
39@ += 1
goto @POOL2_26467

:POOL2_26741
39@ = 0

:POOL2_26748
if 
  16 > 39@
goto_if_false @POOL2_27127
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_27113
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Fall
goto_if_false @POOL2_26840
273@ += 1
if 
  39@ == 0
goto_if_false @POOL2_26840
275@ = 1

:POOL2_26840
if 
  274@ == -1
goto_if_false @POOL2_26956
if 
  39@ > 0
goto_if_false @POOL2_26956
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Drowning
goto_if_false @POOL2_26956
set_lvar_int_to_lvar_int 274@ = 39@
if 
  275@ == 0
goto_if_false @POOL2_26956
if 
  does_object_exist 82@
goto_if_false @POOL2_26956
add_velocity_relative_to_object_velocity 82@ {x} 249@ {y} 250@ {z} 0.0

:POOL2_26956
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Runoverbycar
goto_if_false @POOL2_27104
273@ += 1
if 
  39@ == 0
goto_if_false @POOL2_27010
275@ = 1

:POOL2_27010
if 
  274@ == -1
goto_if_false @POOL2_27104
if 
  39@ > 0
goto_if_false @POOL2_27104
set_lvar_int_to_lvar_int 274@ = 39@
if 
  275@ == 0
goto_if_false @POOL2_27104
if 
  does_object_exist 82@
goto_if_false @POOL2_27104
add_velocity_relative_to_object_velocity 82@ {x} 249@ {y} 250@ {z} 0.0

:POOL2_27104
clear_object_last_weapon_damage 82@(39@,16i)

:POOL2_27113
39@ += 1
goto @POOL2_26748

:POOL2_27127
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_27218
if 
  129@ == 1
goto_if_false @POOL2_27193
129@ = 0
write_debug "OUTPUT_TEXT_OFF"
goto @POOL2_27218

:POOL2_27193
129@ = 1
write_debug "OUTPUT_TEXT_ON"

:POOL2_27218
if 
  not does_object_exist 163@
goto_if_false @POOL2_27241
34@ = 99

:POOL2_27241
if 
  not is_char_dead 164@
goto_if_false @POOL2_27265
$6458 = get_char_health 164@

:POOL2_27265
if 
  is_char_dead 164@
goto_if_false @POOL2_27288
34@ = 99

:POOL2_27288
if 
  108@ == 1
goto_if_false @POOL2_27851
display_hud True
if 
  161@ > 0
goto_if_false @POOL2_27336
add_score $player1 {money} 161@

:POOL2_27336
if 
  not is_char_dead 164@
goto_if_false @POOL2_27408
freeze_char_position 164@ {state} False
remove_decision_maker 203@
203@ = load_char_decision_maker DecisionMakerType.Tough
set_char_decision_maker 164@ {handleOrTemplate} 203@
set_char_collision 164@ {state} True
set_char_proofs 164@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
hide_char_weapon_for_scripted_cutscene 164@ {state} True

:POOL2_27408
set_ped_density_multiplier 1.0
use_text_commands False
display_radar True
39@ = 0

:POOL2_27430
if 
  16 > 39@
goto_if_false @POOL2_27471
mark_object_as_no_longer_needed 82@(39@,16i)
39@ += 1
goto @POOL2_27430

:POOL2_27471
restore_camera_jumpcut 
if 
  does_object_exist 234@
goto_if_false @POOL2_27494
delete_object 234@

:POOL2_27494
104@ += 0.1
set_object_coordinates 163@ {x} 102@ {y} 103@ {z} 104@
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.96 {yOffset} -0.49 {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.96 {yOffset} 0.49 {zOffset} 0.7
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_27619
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_27619
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_27662
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_27662
set_pool_table_coords 98@ {leftBottomY} 100@ {leftBottomZ} $z {rightTopX} 99@ {rightTopY} 101@ {rightTopZ} $z
39@ = 0

:POOL2_27689
if 
  16 > 39@
goto_if_false @POOL2_27787
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_27773
$x, $y, $z = get_object_coordinates 82@(39@,16i)
$z += 0.1
set_object_coordinates 82@(39@,16i) {x} $x {y} $y {z} $z

:POOL2_27773
39@ += 1
goto @POOL2_27689

:POOL2_27787
if 
  is_player_playing $player1
goto_if_false @POOL2_27829
clear_char_tasks_immediately $scplayer
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:POOL2_27829
delete_object 106@
delete_object 107@
mark_model_as_no_longer_needed #K_POOLQ
remove_animation "POOL"

:POOL2_27851
if and
  34@ == 99
  108@ == 0
goto_if_false @POOL2_27896
use_text_commands False
display_radar True
34@ = 0
wait 500

:POOL2_27896
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @POOL2_28008
if 
  does_object_exist 82@
goto_if_false @POOL2_28008
freeze_object_position 82@ {state} False
set_object_collision 82@ {state} False
set_object_dynamic 82@ {state} False
$x = generate_random_float_in_range -5.0 {max} 5.0
$y = generate_random_float_in_range -5.0 {max} 5.0
set_object_velocity 82@ {xSpeed} $x {ySpeed} $y {zSpeed} 0.0
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True

:POOL2_28008
return 

:POOL2_28010
277@ = 0
276@ = 1.7

:POOL2_28027
if 
  277@ <> 99
goto_if_false @POOL2_30076
if 
  236@ <> 0
goto_if_false @POOL2_28070
277@ = 2

:POOL2_28070
if 
  277@ == 0
goto_if_false @POOL2_28679
if 
  does_object_exist 82@
goto_if_false @POOL2_28679
39@ = 0

:POOL2_28111
if 
  3 > 39@
goto_if_false @POOL2_28255
300@(39@,3f) = -999999.875
303@(39@,3f) = -999999.875
306@(39@,3f) = -999999.875
309@(39@,3f) = -999999.875
312@(39@,3f) = -999999.875
315@(39@,3f) = -999999.875
318@(39@,3f) = -999999.875
321@(39@,3f) = -999999.875
39@ += 1
goto @POOL2_28111

:POOL2_28255
set_lvar_float_to_lvar_float 297@ = 276@
set_lvar_float_to_lvar_float 297@ = 276@
set_lvar_float_to_lvar_float 296@ = 276@
296@ /= 10.0
$heading = get_object_heading 82@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} $heading
$x, $y, $z = get_object_coordinates 82@
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_28366
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_28366
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_28403
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_28403
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_28440
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_28440
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_28477
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_28477
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 278@ = 165@
sub_float_var_from_float_lvar 278@ -= $x
set_lvar_float_to_lvar_float 279@ = 166@
sub_float_var_from_float_lvar 279@ -= $y
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
div_float_lvar_by_float_lvar 278@ /= 42@
div_float_lvar_by_float_lvar 279@ /= 42@
mult_float_lvar_by_float_lvar 278@ *= 297@
mult_float_lvar_by_float_lvar 279@ *= 297@
set_lvar_float_to_var_float 483@ = $x
set_lvar_float_to_var_float 484@ = $y
set_lvar_float_to_var_float 300@ = $x
set_lvar_float_to_var_float 303@ = $y
set_lvar_float_to_var_float 479@ = $x
add_float_lvar_to_float_lvar 479@ += 278@
set_lvar_float_to_var_float 480@ = $y
add_float_lvar_to_float_lvar 480@ += 279@
280@ = 0
324@ = 0
511@ = 0
277@ += 1

:POOL2_28679
if 
  277@ == 1
goto_if_false @POOL2_29098
237@ = 0

:POOL2_28704
if and
  297@ > 0.0
  3 > 280@
goto_if_false @POOL2_29084
gosub @POOL2_47597
set_lvar_float_to_lvar_float 306@(280@,3f) = 501@
set_lvar_float_to_lvar_float 309@(280@,3f) = 502@
set_lvar_int_to_lvar_int 39@ = 280@
39@ += 1
if 
  3 > 39@
goto_if_false @POOL2_28820
set_lvar_float_to_lvar_float 300@(39@,3f) = 501@
set_lvar_float_to_lvar_float 303@(39@,3f) = 502@

:POOL2_28820
42@ = get_distance_between_coords_2d 300@(280@,3f) {fromY} 303@(280@,3f) {toX} 306@(280@,3f) {toZ} 309@(280@,3f)
sub_float_lvar_from_float_lvar 297@ -= 42@
if 
  481@ == 0
goto_if_false @POOL2_29070
if 
  500@ <> -1
goto_if_false @POOL2_28914
297@ *= 0.5
goto @POOL2_28924

:POOL2_28914
297@ *= 0.75

:POOL2_28924
if 
  324@ == 0
goto_if_false @POOL2_28992
if 
  500@ <> -1
goto_if_false @POOL2_28992
set_lvar_int_to_lvar_int 324@ = 500@
set_lvar_float_to_lvar_float 325@ = 297@
set_lvar_float_to_lvar_float 326@ = 505@
set_lvar_float_to_lvar_float 327@ = 506@

:POOL2_28992
set_lvar_float_to_lvar_float 483@ = 501@
set_lvar_float_to_lvar_float 484@ = 502@
mult_float_lvar_by_float_lvar 503@ *= 297@
mult_float_lvar_by_float_lvar 504@ *= 297@
set_lvar_float_to_lvar_float 479@ = 483@
add_float_lvar_to_float_lvar 479@ += 503@
set_lvar_float_to_lvar_float 480@ = 484@
add_float_lvar_to_float_lvar 480@ += 504@
280@ += 1
goto @POOL2_29077

:POOL2_29070
280@ = 3

:POOL2_29077
goto @POOL2_28704

:POOL2_29084
236@ += 1
277@ += 1

:POOL2_29098
if 
  277@ == 2
goto_if_false @POOL2_30044
39@ = 0

:POOL2_29123
if 
  10 > 39@
goto_if_false @POOL2_29235
if 
  does_object_exist 343@(39@,10i)
goto_if_false @POOL2_29170
delete_object 343@(39@,10i)

:POOL2_29170
create_object #K_POOLBALLCUE {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 343@(39@,10i)
set_object_collision 343@(39@,10i) {state} False
set_object_scale 343@(39@,10i) {scale} 0.3
39@ += 1
goto @POOL2_29123

:POOL2_29235
353@ = 0
339@ = 0.005
add_timed_float_lvar_to_float_lvar 338@ +=@ 339@
if 
  is_float_lvar_greater_than_float_lvar 338@ > 296@
goto_if_false @POOL2_29287
sub_float_lvar_from_float_lvar 338@ -= 296@

:POOL2_29287
342@ = 0.0
39@ = 0

:POOL2_29304
if 
  3 > 39@
goto_if_false @POOL2_30037
if and
  300@(39@,3f) > -9999.9004
  303@(39@,3f) > -9999.9004
  306@(39@,3f) > -9999.9004
  309@(39@,3f) > -9999.9004
goto_if_false @POOL2_30023
42@ = get_distance_between_coords_2d 300@(39@,3f) {fromY} 303@(39@,3f) {toX} 306@(39@,3f) {toZ} 309@(39@,3f)
set_lvar_float_to_lvar_float 169@ = 306@(39@,3f)
sub_float_lvar_from_float_lvar 169@ -= 300@(39@,3f)
set_lvar_float_to_lvar_float 170@ = 309@(39@,3f)
sub_float_lvar_from_float_lvar 170@ -= 303@(39@,3f)
set_lvar_float_to_lvar_float 43@ = 42@
div_float_lvar_by_float_lvar 43@ /= 296@
cset_lvar_int_to_lvar_float 40@ =# 43@
40@ += 1
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
set_lvar_float_to_lvar_float 340@ = 169@
set_lvar_float_to_lvar_float 341@ = 170@
mult_float_lvar_by_float_lvar 340@ *= 338@
mult_float_lvar_by_float_lvar 341@ *= 338@
mult_float_lvar_by_float_lvar 169@ *= 296@
mult_float_lvar_by_float_lvar 170@ *= 296@
if 
  does_object_exist 82@
goto_if_false @POOL2_29743
$x, $y, $z = get_object_coordinates 82@
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_29632
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_29632
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_29669
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_29669
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_29706
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_29706
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_29743
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_29743
set_lvar_float_to_lvar_float 196@ = 300@(39@,3f)
sub_float_lvar_from_float_lvar 196@ -= 169@
set_lvar_float_to_lvar_float 197@ = 303@(39@,3f)
sub_float_lvar_from_float_lvar 197@ -= 170@
add_float_lvar_to_float_lvar 196@ += 340@
add_float_lvar_to_float_lvar 197@ += 341@
add_int_lvar_to_int_lvar 40@ += 353@

:POOL2_29807
if and
  is_int_lvar_greater_than_int_lvar 40@ > 353@
  10 > 353@
goto_if_false @POOL2_30023
set_var_float_to_lvar_float $x = 196@
add_float_lvar_to_float_var $x += 169@
set_var_float_to_lvar_float $y = 197@
add_float_lvar_to_float_var $y += 170@
set_lvar_float_to_var_float 196@ = $x
set_lvar_float_to_var_float 197@ = $y
if 
  does_object_exist 343@(353@,10i)
goto_if_false @POOL2_30009
if or
  is_float_var_greater_than_float_lvar $x > 99@
  is_float_lvar_greater_than_float_var 98@ > $x
  is_float_var_greater_than_float_lvar $y > 101@
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_29980
set_object_visible 343@(353@,10i) {state} False
set_object_coordinates 343@(353@,10i) {x} $x {y} $y {z} $z
goto @POOL2_30009

:POOL2_29980
set_object_visible 343@(353@,10i) {state} True
set_object_coordinates 343@(353@,10i) {x} $x {y} $y {z} $z

:POOL2_30009
353@ += 1
goto @POOL2_29807

:POOL2_30023
39@ += 1
goto @POOL2_29304

:POOL2_30037
277@ += 1

:POOL2_30044
if 
  277@ == 3
goto_if_false @POOL2_30069
277@ = 99

:POOL2_30069
goto @POOL2_28027

:POOL2_30076
return 

:POOL2_30078
if 
  not is_char_dead 354@
goto_if_false @POOL2_33118
if 
  is_int_lvar_equal_to_int_var 354@ == $scplayer
goto_if_false @POOL2_30127
356@ = 0
goto @POOL2_30134

:POOL2_30127
356@ = 1

:POOL2_30134
if 
  is_char_playing_anim 354@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_30400
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_30227
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_30227
42@ = get_char_anim_current_time 354@ {animationName} "POOL_XLONG_SHOT"
if 
  is_object_playing_anim 355@ {animationName} "POOL_XLONG_SHOT_O"
goto_if_false @POOL2_30321
set_object_anim_current_time 355@ {animationName} "POOL_XLONG_SHOT_O" {time} 42@
goto @POOL2_30400

:POOL2_30321
if 
play_object_anim 355@ {animationName} "POOL_XLONG_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_30400
set_object_anim_speed 355@ {animationName} "POOL_XLONG_SHOT_O" {speed} 0.0

:POOL2_30400
if and
  is_char_playing_anim 354@ {animationName} "POOL_XLONG_START"
  not is_char_playing_anim 354@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_30694
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_30516
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_30516
42@ = get_char_anim_current_time 354@ {animationName} "POOL_XLONG_START"
if 
  is_object_playing_anim 355@ {animationName} "POOL_XLONG_START_O"
goto_if_false @POOL2_30613
set_object_anim_current_time 355@ {animationName} "POOL_XLONG_START_O" {time} 42@
goto @POOL2_30694

:POOL2_30613
if 
play_object_anim 355@ {animationName} "POOL_XLONG_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_30694
set_object_anim_speed 355@ {animationName} "POOL_XLONG_START_O" {speed} 0.0

:POOL2_30694
if 
  is_char_playing_anim 354@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_30954
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_30786
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_30786
42@ = get_char_anim_current_time 354@ {animationName} "POOL_LONG_SHOT"
if 
  is_object_playing_anim 355@ {animationName} "POOL_LONG_SHOT_O"
goto_if_false @POOL2_30877
set_object_anim_current_time 355@ {animationName} "POOL_LONG_SHOT_O" {time} 42@
goto @POOL2_30954

:POOL2_30877
if 
play_object_anim 355@ {animationName} "POOL_LONG_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_30954
set_object_anim_speed 355@ {animationName} "POOL_LONG_SHOT_O" {speed} 0.0

:POOL2_30954
if and
  is_char_playing_anim 354@ {animationName} "POOL_LONG_START"
  not is_char_playing_anim 354@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_31241
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_31068
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31068
42@ = get_char_anim_current_time 354@ {animationName} "POOL_LONG_START"
if 
  is_object_playing_anim 355@ {animationName} "POOL_LONG_START_O"
goto_if_false @POOL2_31162
set_object_anim_current_time 355@ {animationName} "POOL_LONG_START_O" {time} 42@
goto @POOL2_31241

:POOL2_31162
if 
play_object_anim 355@ {animationName} "POOL_LONG_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31241
set_object_anim_speed 355@ {animationName} "POOL_LONG_START_O" {speed} 0.0

:POOL2_31241
if 
  is_char_playing_anim 354@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_31495
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_31332
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31332
42@ = get_char_anim_current_time 354@ {animationName} "POOL_MED_SHOT"
if 
  is_object_playing_anim 355@ {animationName} "POOL_MED_SHOT_O"
goto_if_false @POOL2_31420
set_object_anim_current_time 355@ {animationName} "POOL_MED_SHOT_O" {time} 42@
goto @POOL2_31495

:POOL2_31420
if 
play_object_anim 355@ {animationName} "POOL_MED_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31495
set_object_anim_speed 355@ {animationName} "POOL_MED_SHOT_O" {speed} 0.0

:POOL2_31495
if and
  is_char_playing_anim 354@ {animationName} "POOL_MED_START"
  not is_char_playing_anim 354@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_31775
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_31607
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31607
42@ = get_char_anim_current_time 354@ {animationName} "POOL_MED_START"
if 
  is_object_playing_anim 355@ {animationName} "POOL_MED_START_O"
goto_if_false @POOL2_31698
set_object_anim_current_time 355@ {animationName} "POOL_MED_START_O" {time} 42@
goto @POOL2_31775

:POOL2_31698
if 
play_object_anim 355@ {animationName} "POOL_MED_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31775
set_object_anim_speed 355@ {animationName} "POOL_MED_START_O" {speed} 0.0

:POOL2_31775
if 
  is_char_playing_anim 354@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_32041
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_31868
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31868
42@ = get_char_anim_current_time 354@ {animationName} "POOL_SHORT_SHOT"
if 
  is_object_playing_anim 355@ {animationName} "POOL_SHORT_SHOT_O"
goto_if_false @POOL2_31962
set_object_anim_current_time 355@ {animationName} "POOL_SHORT_SHOT_O" {time} 42@
goto @POOL2_32041

:POOL2_31962
if 
play_object_anim 355@ {animationName} "POOL_SHORT_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32041
set_object_anim_speed 355@ {animationName} "POOL_SHORT_SHOT_O" {speed} 0.0

:POOL2_32041
if and
  is_char_playing_anim 354@ {animationName} "POOL_SHORT_START"
  not is_char_playing_anim 354@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_32335
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_32157
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32157
42@ = get_char_anim_current_time 354@ {animationName} "POOL_SHORT_START"
if 
  is_object_playing_anim 355@ {animationName} "POOL_SHORT_START_O"
goto_if_false @POOL2_32254
set_object_anim_current_time 355@ {animationName} "POOL_SHORT_START_O" {time} 42@
goto @POOL2_32335

:POOL2_32254
if 
play_object_anim 355@ {animationName} "POOL_SHORT_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32335
set_object_anim_speed 355@ {animationName} "POOL_SHORT_START_O" {speed} 0.0

:POOL2_32335
if 
  is_char_playing_anim 354@ {animationName} "POOL_CHALKCUE"
goto_if_false @POOL2_32538
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_32426
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32426
42@ = get_char_anim_current_time 354@ {animationName} "POOL_CHALKCUE"
if 
  42@ > 0.28
goto_if_false @POOL2_32531
if 
  357@(356@,2i) <> 1
goto_if_false @POOL2_32531
$x, $y, $z = get_object_coordinates 355@
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundPoolChalkCue
357@(356@,2i) = 1

:POOL2_32531
goto @POOL2_32571

:POOL2_32538
if 
  357@(356@,2i) <> 0
goto_if_false @POOL2_32571
357@(356@,2i) = 0

:POOL2_32571
if 
  is_char_playing_anim 354@ {animationName} "POOL_IDLE_STANCE"
goto_if_false @POOL2_32665
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_32665
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32665
if 
  is_char_playing_anim 354@ {animationName} "POOL_WALK"
goto_if_false @POOL2_32752
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_32752
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32752
if 
  is_char_playing_anim 354@ {animationName} "POOL_WALK_START"
goto_if_false @POOL2_32845
if 
  not is_char_holding_object 354@ {handle} 355@
goto_if_false @POOL2_32845
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32845
39@ = 0
if and
  is_char_playing_anim 354@ {animationName} "IDLE_STANCE"
  not is_int_lvar_equal_to_int_lvar 211@ == 354@
goto_if_false @POOL2_32896
39@ = 1

:POOL2_32896
if and
  is_char_playing_anim 354@ {animationName} "IDLE_STANCE"
  35@ == 6
goto_if_false @POOL2_32939
39@ = 1

:POOL2_32939
if 
  39@ == 1
goto_if_false @POOL2_33118
40@ = get_script_task_status 354@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @POOL2_33118
drop_object 354@ {state} False
task_pick_up_object 354@ {object} 355@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_33113
perform_sequence_task 354@ {sequence} 47@

:POOL2_33113
clear_sequence_task 47@

:POOL2_33118
return 

:POOL2_33120
365@ = 99999.8984
366@ = 99999.8984
367@ = 99999.8984
359@ = 99999.8984
361@ = 0.0
360@ = 99999.8984
362@ = 0

:POOL2_33187
if 
  6 > 362@
goto_if_false @POOL2_33429
378@(362@,6f) = 0.0
384@(362@,6f) = 0.0
390@(362@,6f) = 0.0
396@(362@,6f) = 0.0
402@(362@,6f) = 0.0
408@(362@,6f) = 0.0
414@(362@,6f) = 0.0
420@(362@,6f) = 0.0
426@(362@,6f) = 0.0
432@(362@,6f) = 0.0
438@(362@,6f) = 0.0
444@(362@,6f) = 0.0
450@(362@,6f) = 0.0
456@(362@,6f) = 0.0
462@(362@,6f) = 0.0
362@ += 1
goto @POOL2_33187

:POOL2_33429
362@ = 1

:POOL2_33436
if 
  16 > 362@
goto_if_false @POOL2_37707
wait 0
377@ = 0
if 
  does_object_exist 82@(362@,16i)
goto_if_false @POOL2_36640
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_36626
if 
  8 > 362@
goto_if_false @POOL2_33539
364@ = 0
goto @POOL2_33578

:POOL2_33539
if 
  362@ == 8
goto_if_false @POOL2_33571
364@ = 2
goto @POOL2_33578

:POOL2_33571
364@ = 1

:POOL2_33578
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_36612
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_33643
377@ = 1
goto @POOL2_36605

:POOL2_33643
if 
  129@ == 1
goto_if_false @POOL2_33800
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BALL "
save_int_to_debug_file 362@

:POOL2_33800
363@ = 0

:POOL2_33807
if 
  6 > 363@
goto_if_false @POOL2_36605
if 
  129@ == 1
goto_if_false @POOL2_33980
save_newline_to_debug_file 
save_string_to_debug_file "POCKET "
save_int_to_debug_file 363@

:POOL2_33980
set_lvar_int_to_lvar_int 512@ = 82@(362@,16i)
set_lvar_int_to_lvar_int 513@ = 363@
gosub @POOL2_48183
if 
  129@ == 1
goto_if_false @POOL2_34162
save_newline_to_debug_file 
save_string_to_debug_file " REQUIRED ANGLE = "
save_float_to_debug_file 515@

:POOL2_34162
if 
  514@ == 1
goto_if_false @POOL2_36148
set_lvar_int_to_lvar_int 477@ = 82@(362@,16i)
478@ = 0
set_lvar_float_to_lvar_float 479@ = 54@(363@,6f)
set_lvar_float_to_lvar_float 480@ = 60@(363@,6f)
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_34265
469@ = 1.0
goto @POOL2_34311

:POOL2_34265
if 
  is_int_lvar_equal_to_int_lvar 482@ == 364@
goto_if_false @POOL2_34301
469@ = 0.2
goto @POOL2_34311

:POOL2_34301
469@ = 0.1

:POOL2_34311
if 
  129@ == 1
goto_if_false @POOL2_34466
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_PATH_SCORE = "
save_float_to_debug_file 469@

:POOL2_34466
$x, $y, $z = get_object_coordinates 82@(362@,16i)
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 54@(363@,6f) {toZ} 60@(363@,6f)
471@ = 2.3
sub_float_lvar_from_float_lvar 471@ -= 42@
471@ /= 2.3
if 
  129@ == 1
goto_if_false @POOL2_34692
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_DIST_SCORE = "
save_float_to_debug_file 471@

:POOL2_34692
472@ = 90.0
sub_float_lvar_from_float_lvar 472@ -= 515@
472@ /= 90.0
if 
  129@ == 1
goto_if_false @POOL2_34875
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_ANGLE_SCORE = "
save_float_to_debug_file 472@

:POOL2_34875
set_lvar_int_to_lvar_int 477@ = 82@
set_lvar_int_to_lvar_int 478@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 479@ = 522@
set_lvar_float_to_lvar_float 480@ = 523@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_34953
470@ = 1.0
goto @POOL2_35184

:POOL2_34953
if 
  129@ == 1
goto_if_false @POOL2_35103
save_newline_to_debug_file 
save_string_to_debug_file "   (PATH NOT CLEAR FROM CUE BALL TO THIS BALL) "

:POOL2_35103
if 
  227@ == -1
goto_if_false @POOL2_35138
470@ = 0.05
goto @POOL2_35184

:POOL2_35138
if 
  is_int_lvar_equal_to_int_lvar 482@ == 227@
goto_if_false @POOL2_35174
470@ = 0.05
goto @POOL2_35184

:POOL2_35174
470@ = -1000.0

:POOL2_35184
if 
  129@ == 1
goto_if_false @POOL2_35339
save_newline_to_debug_file 
save_string_to_debug_file " CUE_PATH_SCORE = "
save_float_to_debug_file 470@

:POOL2_35339
$x, $y, $z = get_object_coordinates 82@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 522@ {toZ} 523@
if 
  0.3 > 42@
goto_if_false @POOL2_35427
43@ = 0.3
sub_float_lvar_from_float_lvar 43@ -= 42@
42@ = 0.3
add_float_lvar_to_float_lvar 42@ += 43@

:POOL2_35427
42@ += -0.3
43@ = 2.0
sub_float_lvar_from_float_lvar 43@ -= 42@
43@ /= 2.0
set_lvar_float_to_lvar_float 468@ = 43@
if 
  129@ == 1
goto_if_false @POOL2_35628
save_newline_to_debug_file 
save_string_to_debug_file " CUE_DIST_SCORE = "
save_float_to_debug_file 468@

:POOL2_35628
469@ *= 1.0
470@ *= 1.0
468@ *= 0.3
471@ *= 0.4
472@ *= 0.8
set_lvar_float_to_lvar_float 473@ = 469@
add_float_lvar_to_float_lvar 473@ += 470@
add_float_lvar_to_float_lvar 473@ += 468@
add_float_lvar_to_float_lvar 473@ += 471@
add_float_lvar_to_float_lvar 473@ += 472@
473@ /= 5.0
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_36141 {caseNum1} 1 {caseLabel1} @POOL2_35856 {caseNum2} 2 {caseLabel2} @POOL2_35875 {caseNum3} 3 {caseLabel3} @POOL2_35894 {caseNum4} 4 {caseLabel4} @POOL2_35913 {caseNum5} 5 {caseLabel5} @POOL2_35932 {caseNum6} 6 {caseLabel6} @POOL2_35951 {caseNum7} 7 {caseLabel7} @POOL2_35970
switch_continued 8 {caseLabel1} @POOL2_35989 {caseNum2} 9 {caseLabel2} @POOL2_36008 {caseNum3} 10 {caseLabel3} @POOL2_36027 {caseNum4} 11 {caseLabel4} @POOL2_36046 {caseNum5} 12 {caseLabel5} @POOL2_36065 {caseNum6} 13 {caseLabel6} @POOL2_36084 {caseNum7} 14 {caseLabel7} @POOL2_36103 {caseNum8} 15 {caseLabel8} @POOL2_36122 {caseNum9} -1 {caseLabel9} @POOL2_36141

:POOL2_35856
set_lvar_float_to_lvar_float 378@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35875
set_lvar_float_to_lvar_float 384@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35894
set_lvar_float_to_lvar_float 390@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35913
set_lvar_float_to_lvar_float 396@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35932
set_lvar_float_to_lvar_float 402@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35951
set_lvar_float_to_lvar_float 408@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35970
set_lvar_float_to_lvar_float 414@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35989
set_lvar_float_to_lvar_float 420@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36008
set_lvar_float_to_lvar_float 426@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36027
set_lvar_float_to_lvar_float 432@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36046
set_lvar_float_to_lvar_float 438@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36065
set_lvar_float_to_lvar_float 444@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36084
set_lvar_float_to_lvar_float 450@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36103
set_lvar_float_to_lvar_float 456@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36122
set_lvar_float_to_lvar_float 462@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36141
goto @POOL2_36591

:POOL2_36148
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_36591 {caseNum1} 1 {caseLabel1} @POOL2_36276 {caseNum2} 2 {caseLabel2} @POOL2_36297 {caseNum3} 3 {caseLabel3} @POOL2_36318 {caseNum4} 4 {caseLabel4} @POOL2_36339 {caseNum5} 5 {caseLabel5} @POOL2_36360 {caseNum6} 6 {caseLabel6} @POOL2_36381 {caseNum7} 7 {caseLabel7} @POOL2_36402
switch_continued 8 {caseLabel1} @POOL2_36423 {caseNum2} 9 {caseLabel2} @POOL2_36444 {caseNum3} 10 {caseLabel3} @POOL2_36465 {caseNum4} 11 {caseLabel4} @POOL2_36486 {caseNum5} 12 {caseLabel5} @POOL2_36507 {caseNum6} 13 {caseLabel6} @POOL2_36528 {caseNum7} 14 {caseLabel7} @POOL2_36549 {caseNum8} 15 {caseLabel8} @POOL2_36570 {caseNum9} -1 {caseLabel9} @POOL2_36591

:POOL2_36276
378@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36297
384@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36318
390@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36339
396@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36360
402@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36381
408@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36402
414@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36423
420@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36444
426@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36465
432@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36486
438@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36507
444@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36528
450@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36549
456@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36570
462@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36591
363@ += 1
goto @POOL2_33807

:POOL2_36605
goto @POOL2_36619

:POOL2_36612
377@ = 1

:POOL2_36619
goto @POOL2_36633

:POOL2_36626
377@ = 1

:POOL2_36633
goto @POOL2_36647

:POOL2_36640
377@ = 1

:POOL2_36647
if 
  377@ == 1
goto_if_false @POOL2_37693
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_37693 {caseNum1} 1 {caseLabel1} @POOL2_36793 {caseNum2} 2 {caseLabel2} @POOL2_36853 {caseNum3} 3 {caseLabel3} @POOL2_36913 {caseNum4} 4 {caseLabel4} @POOL2_36973 {caseNum5} 5 {caseLabel5} @POOL2_37033 {caseNum6} 6 {caseLabel6} @POOL2_37093 {caseNum7} 7 {caseLabel7} @POOL2_37153
switch_continued 8 {caseLabel1} @POOL2_37213 {caseNum2} 9 {caseLabel2} @POOL2_37273 {caseNum3} 10 {caseLabel3} @POOL2_37333 {caseNum4} 11 {caseLabel4} @POOL2_37393 {caseNum5} 12 {caseLabel5} @POOL2_37453 {caseNum6} 13 {caseLabel6} @POOL2_37513 {caseNum7} 14 {caseLabel7} @POOL2_37573 {caseNum8} 15 {caseLabel8} @POOL2_37633 {caseNum9} -1 {caseLabel9} @POOL2_37693

:POOL2_36793
363@ = 0

:POOL2_36800
if 
  6 > 363@
goto_if_false @POOL2_36846
378@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36800

:POOL2_36846
goto @POOL2_37693

:POOL2_36853
363@ = 0

:POOL2_36860
if 
  6 > 363@
goto_if_false @POOL2_36906
384@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36860

:POOL2_36906
goto @POOL2_37693

:POOL2_36913
363@ = 0

:POOL2_36920
if 
  6 > 363@
goto_if_false @POOL2_36966
390@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36920

:POOL2_36966
goto @POOL2_37693

:POOL2_36973
363@ = 0

:POOL2_36980
if 
  6 > 363@
goto_if_false @POOL2_37026
396@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36980

:POOL2_37026
goto @POOL2_37693

:POOL2_37033
363@ = 0

:POOL2_37040
if 
  6 > 363@
goto_if_false @POOL2_37086
402@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37040

:POOL2_37086
goto @POOL2_37693

:POOL2_37093
363@ = 0

:POOL2_37100
if 
  6 > 363@
goto_if_false @POOL2_37146
408@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37100

:POOL2_37146
goto @POOL2_37693

:POOL2_37153
363@ = 0

:POOL2_37160
if 
  6 > 363@
goto_if_false @POOL2_37206
414@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37160

:POOL2_37206
goto @POOL2_37693

:POOL2_37213
363@ = 0

:POOL2_37220
if 
  6 > 363@
goto_if_false @POOL2_37266
420@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37220

:POOL2_37266
goto @POOL2_37693

:POOL2_37273
363@ = 0

:POOL2_37280
if 
  6 > 363@
goto_if_false @POOL2_37326
426@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37280

:POOL2_37326
goto @POOL2_37693

:POOL2_37333
363@ = 0

:POOL2_37340
if 
  6 > 363@
goto_if_false @POOL2_37386
432@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37340

:POOL2_37386
goto @POOL2_37693

:POOL2_37393
363@ = 0

:POOL2_37400
if 
  6 > 363@
goto_if_false @POOL2_37446
438@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37400

:POOL2_37446
goto @POOL2_37693

:POOL2_37453
363@ = 0

:POOL2_37460
if 
  6 > 363@
goto_if_false @POOL2_37506
444@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37460

:POOL2_37506
goto @POOL2_37693

:POOL2_37513
363@ = 0

:POOL2_37520
if 
  6 > 363@
goto_if_false @POOL2_37566
450@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37520

:POOL2_37566
goto @POOL2_37693

:POOL2_37573
363@ = 0

:POOL2_37580
if 
  6 > 363@
goto_if_false @POOL2_37626
456@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37580

:POOL2_37626
goto @POOL2_37693

:POOL2_37633
363@ = 0

:POOL2_37640
if 
  6 > 363@
goto_if_false @POOL2_37686
462@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37640

:POOL2_37686
goto @POOL2_37693

:POOL2_37693
362@ += 1
goto @POOL2_33436

:POOL2_37707
474@ = -9999.9004
475@ = -1
476@ = -1
362@ = 0
if 
  129@ == 1
goto_if_false @POOL2_37888
save_newline_to_debug_file 
save_string_to_debug_file "POOL AI POTENTIAL SHOT SCORES"

:POOL2_37888
if 
  6 > 362@
goto_if_false @POOL2_41212
if 
  129@ == 1
goto_if_false @POOL2_38202
save_newline_to_debug_file 
save_string_to_debug_file "POCKET"
save_int_to_debug_file 362@
save_newline_to_debug_file 
save_string_to_debug_file "BALL 01 = "
save_float_to_debug_file 378@(362@,6f)

:POOL2_38202
if 
  is_float_lvar_greater_than_float_lvar 378@(362@,6f) > 474@
goto_if_false @POOL2_38252
set_lvar_float_to_lvar_float 474@ = 378@(362@,6f)
475@ = 1
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38252
if 
  129@ == 1
goto_if_false @POOL2_38411
save_newline_to_debug_file 
save_string_to_debug_file "BALL 02 = "
save_float_to_debug_file 384@(362@,6f)

:POOL2_38411
if 
  is_float_lvar_greater_than_float_lvar 384@(362@,6f) > 474@
goto_if_false @POOL2_38461
set_lvar_float_to_lvar_float 474@ = 384@(362@,6f)
475@ = 2
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38461
if 
  129@ == 1
goto_if_false @POOL2_38620
save_newline_to_debug_file 
save_string_to_debug_file "BALL 03 = "
save_float_to_debug_file 390@(362@,6f)

:POOL2_38620
if 
  is_float_lvar_greater_than_float_lvar 390@(362@,6f) > 474@
goto_if_false @POOL2_38670
set_lvar_float_to_lvar_float 474@ = 390@(362@,6f)
475@ = 3
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38670
if 
  129@ == 1
goto_if_false @POOL2_38829
save_newline_to_debug_file 
save_string_to_debug_file "BALL 04 = "
save_float_to_debug_file 396@(362@,6f)

:POOL2_38829
if 
  is_float_lvar_greater_than_float_lvar 396@(362@,6f) > 474@
goto_if_false @POOL2_38879
set_lvar_float_to_lvar_float 474@ = 396@(362@,6f)
475@ = 4
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38879
if 
  129@ == 1
goto_if_false @POOL2_39038
save_newline_to_debug_file 
save_string_to_debug_file "BALL 05 = "
save_float_to_debug_file 402@(362@,6f)

:POOL2_39038
if 
  is_float_lvar_greater_than_float_lvar 402@(362@,6f) > 474@
goto_if_false @POOL2_39088
set_lvar_float_to_lvar_float 474@ = 402@(362@,6f)
475@ = 5
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39088
if 
  129@ == 1
goto_if_false @POOL2_39247
save_newline_to_debug_file 
save_string_to_debug_file "BALL 06 = "
save_float_to_debug_file 408@(362@,6f)

:POOL2_39247
if 
  is_float_lvar_greater_than_float_lvar 408@(362@,6f) > 474@
goto_if_false @POOL2_39297
set_lvar_float_to_lvar_float 474@ = 408@(362@,6f)
475@ = 6
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39297
if 
  129@ == 1
goto_if_false @POOL2_39456
save_newline_to_debug_file 
save_string_to_debug_file "BALL 07 = "
save_float_to_debug_file 414@(362@,6f)

:POOL2_39456
if 
  is_float_lvar_greater_than_float_lvar 414@(362@,6f) > 474@
goto_if_false @POOL2_39506
set_lvar_float_to_lvar_float 474@ = 414@(362@,6f)
475@ = 7
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39506
if 
  129@ == 1
goto_if_false @POOL2_39665
save_newline_to_debug_file 
save_string_to_debug_file "BALL 08 = "
save_float_to_debug_file 420@(362@,6f)

:POOL2_39665
if 
  is_float_lvar_greater_than_float_lvar 420@(362@,6f) > 474@
goto_if_false @POOL2_39715
set_lvar_float_to_lvar_float 474@ = 420@(362@,6f)
475@ = 8
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39715
if 
  129@ == 1
goto_if_false @POOL2_39874
save_newline_to_debug_file 
save_string_to_debug_file "BALL 09 = "
save_float_to_debug_file 426@(362@,6f)

:POOL2_39874
if 
  is_float_lvar_greater_than_float_lvar 426@(362@,6f) > 474@
goto_if_false @POOL2_39924
set_lvar_float_to_lvar_float 474@ = 426@(362@,6f)
475@ = 9
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39924
if 
  129@ == 1
goto_if_false @POOL2_40083
save_newline_to_debug_file 
save_string_to_debug_file "BALL 10 = "
save_float_to_debug_file 432@(362@,6f)

:POOL2_40083
if 
  is_float_lvar_greater_than_float_lvar 432@(362@,6f) > 474@
goto_if_false @POOL2_40133
set_lvar_float_to_lvar_float 474@ = 432@(362@,6f)
475@ = 10
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40133
if 
  129@ == 1
goto_if_false @POOL2_40292
save_newline_to_debug_file 
save_string_to_debug_file "BALL 11 = "
save_float_to_debug_file 438@(362@,6f)

:POOL2_40292
if 
  is_float_lvar_greater_than_float_lvar 438@(362@,6f) > 474@
goto_if_false @POOL2_40342
set_lvar_float_to_lvar_float 474@ = 438@(362@,6f)
475@ = 11
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40342
if 
  129@ == 1
goto_if_false @POOL2_40501
save_newline_to_debug_file 
save_string_to_debug_file "BALL 12 = "
save_float_to_debug_file 444@(362@,6f)

:POOL2_40501
if 
  is_float_lvar_greater_than_float_lvar 444@(362@,6f) > 474@
goto_if_false @POOL2_40551
set_lvar_float_to_lvar_float 474@ = 444@(362@,6f)
475@ = 12
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40551
if 
  129@ == 1
goto_if_false @POOL2_40710
save_newline_to_debug_file 
save_string_to_debug_file "BALL 13 = "
save_float_to_debug_file 450@(362@,6f)

:POOL2_40710
if 
  is_float_lvar_greater_than_float_lvar 450@(362@,6f) > 474@
goto_if_false @POOL2_40760
set_lvar_float_to_lvar_float 474@ = 450@(362@,6f)
475@ = 13
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40760
if 
  129@ == 1
goto_if_false @POOL2_40919
save_newline_to_debug_file 
save_string_to_debug_file "BALL 14 = "
save_float_to_debug_file 456@(362@,6f)

:POOL2_40919
if 
  is_float_lvar_greater_than_float_lvar 456@(362@,6f) > 474@
goto_if_false @POOL2_40969
set_lvar_float_to_lvar_float 474@ = 456@(362@,6f)
475@ = 14
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40969
if 
  129@ == 1
goto_if_false @POOL2_41128
save_newline_to_debug_file 
save_string_to_debug_file "BALL 15 = "
save_float_to_debug_file 462@(362@,6f)

:POOL2_41128
if 
  is_float_lvar_greater_than_float_lvar 462@(362@,6f) > 474@
goto_if_false @POOL2_41178
set_lvar_float_to_lvar_float 474@ = 462@(362@,6f)
475@ = 15
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_41178
if 
  129@ == 1
goto_if_false @POOL2_41198
save_newline_to_debug_file 

:POOL2_41198
362@ += 1
goto @POOL2_37888

:POOL2_41212
if 
  474@ > 0.0
goto_if_false @POOL2_41633
368@, 369@, 370@ = get_object_coordinates 82@(475@,16i)
374@, 375@, 376@ = get_object_coordinates 82@
set_lvar_float_to_lvar_float 371@ = 54@(476@,6f)
sub_float_lvar_from_float_lvar 371@ -= 368@
set_lvar_float_to_lvar_float 372@ = 60@(476@,6f)
sub_float_lvar_from_float_lvar 372@ -= 369@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 54@(476@,6f) {toZ} 60@(476@,6f)
div_float_lvar_by_float_lvar 371@ /= 42@
div_float_lvar_by_float_lvar 372@ /= 42@
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= -2.0
mult_float_lvar_by_float_lvar 371@ *= 43@
mult_float_lvar_by_float_lvar 372@ *= 43@
set_lvar_float_to_lvar_float 365@ = 368@
add_float_lvar_to_float_lvar 365@ += 371@
set_lvar_float_to_lvar_float 366@ = 369@
add_float_lvar_to_float_lvar 366@ += 372@
set_var_float_to_lvar_float $x = 368@
sub_float_lvar_from_float_var $x -= 365@
set_var_float_to_lvar_float $y = 369@
sub_float_lvar_from_float_var $y -= 366@
set_lvar_float_to_lvar_float 169@ = 365@
sub_float_lvar_from_float_lvar 169@ -= 374@
set_lvar_float_to_lvar_float 170@ = 366@
sub_float_lvar_from_float_lvar 170@ -= 375@
361@ = get_angle_between_2d_vectors $x {y1} $y {x2} 169@ {y2} 170@
set_lvar_float_to_lvar_float 42@ = 361@
42@ /= 90.0
42@ *= 0.25
mult_float_var_by_float_lvar $x *= 42@
mult_float_var_by_float_lvar $y *= 42@
add_float_var_to_float_lvar 365@ += $x
add_float_var_to_float_lvar 366@ += $y
42@ = get_distance_between_coords_2d 374@ {fromY} 375@ {toX} 365@ {toZ} 366@
43@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 365@ {toZ} 366@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 2.0 {max} 6.0
mult_float_lvar_by_float_lvar 367@ *= 42@
goto @POOL2_46120

:POOL2_41633
if 
  129@ == 1
goto_if_false @POOL2_41783
save_newline_to_debug_file 
save_string_to_debug_file "HIT AND HOPE"

:POOL2_41783
362@ = 1

:POOL2_41790
if 
  16 > 362@
goto_if_false @POOL2_42389
wait 0
if 
  does_object_exist 82@(362@,16i)
goto_if_false @POOL2_42375
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_42375
if 
  362@ == 0
goto_if_false @POOL2_41886
364@ = 3
goto @POOL2_41957

:POOL2_41886
if 
  8 > 362@
goto_if_false @POOL2_41918
364@ = 0
goto @POOL2_41957

:POOL2_41918
if 
  362@ == 8
goto_if_false @POOL2_41950
364@ = 2
goto @POOL2_41957

:POOL2_41950
364@ = 1

:POOL2_41957
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_42375
if and
  227@ == 0
  364@ == 2
goto_if_false @POOL2_42015
goto @POOL2_42375

:POOL2_42015
set_lvar_int_to_lvar_int 524@ = 82@
set_lvar_int_to_lvar_int 525@ = 82@(362@,16i)
gosub @POOL2_48503
if 
  526@ <> 0
goto_if_false @POOL2_42375
if 
  526@ == 1
goto_if_false @POOL2_42101
set_lvar_float_to_lvar_float 365@ = 535@
set_lvar_float_to_lvar_float 366@ = 536@
goto @POOL2_42306

:POOL2_42101
if 
  526@ == 2
goto_if_false @POOL2_42142
set_lvar_float_to_lvar_float 365@ = 537@
set_lvar_float_to_lvar_float 366@ = 538@
goto @POOL2_42306

:POOL2_42142
set_var_float_to_lvar_float $x = 537@
sub_float_lvar_from_float_var $x -= 535@
set_var_float_to_lvar_float $y = 538@
sub_float_lvar_from_float_var $y -= 536@
42@ = get_distance_between_coords_2d 535@ {fromY} 536@ {toX} 537@ {toZ} 538@
div_float_var_by_float_lvar $x /= 42@
div_float_var_by_float_lvar $y /= 42@
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
42@ *= 2.0
43@ = generate_random_float_in_range 0.0 {max} 42@
mult_float_var_by_float_lvar $x *= 43@
mult_float_var_by_float_lvar $y *= 43@
set_lvar_float_to_lvar_float 365@ = 535@
add_float_var_to_float_lvar 365@ += $x
set_lvar_float_to_lvar_float 366@ = 536@
add_float_var_to_float_lvar 366@ += $y

:POOL2_42306
$x, $y, $z = get_object_coordinates 82@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 365@ {toZ} 366@
43@ = generate_random_float_in_range 2.0 {max} 5.0
set_lvar_float_to_lvar_float 367@ = 42@
mult_float_lvar_by_float_lvar 367@ *= 43@
362@ = 16

:POOL2_42375
362@ += 1
goto @POOL2_41790

:POOL2_42389
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_44417
if 
  129@ == 1
goto_if_false @POOL2_42570
save_newline_to_debug_file 
save_string_to_debug_file "BOUNCE OFF CUSHION"

:POOL2_42570
362@ = 1

:POOL2_42577
if 
  16 > 362@
goto_if_false @POOL2_44417
wait 0
if 
  does_object_exist 82@(362@,16i)
goto_if_false @POOL2_44403
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_44403
if 
  362@ == 0
goto_if_false @POOL2_42673
364@ = 3
goto @POOL2_42744

:POOL2_42673
if 
  8 > 362@
goto_if_false @POOL2_42705
364@ = 0
goto @POOL2_42744

:POOL2_42705
if 
  362@ == 8
goto_if_false @POOL2_42737
364@ = 2
goto @POOL2_42744

:POOL2_42737
364@ = 1

:POOL2_42744
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_44403
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_42802
goto @POOL2_44403

:POOL2_42802
368@, 369@, 370@ = get_object_coordinates 82@
371@, 372@, 373@ = get_object_coordinates 82@(362@,16i)
if 
  129@ == 1
goto_if_false @POOL2_42984
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 1 DATA = "

:POOL2_42984
set_lvar_float_to_lvar_float 374@ = 368@
add_float_lvar_to_float_lvar 374@ += 371@
374@ /= 2.0
set_lvar_float_to_lvar_float 375@ = 100@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_43216
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_43216
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_43216
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_43603
if 
  129@ == 1
goto_if_false @POOL2_43397
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 2 DATA = "

:POOL2_43397
set_lvar_float_to_lvar_float 375@ = 101@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_43603
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_43603
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_43603
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_44016
if 
  129@ == 1
goto_if_false @POOL2_43784
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 3 DATA = "

:POOL2_43784
set_lvar_float_to_lvar_float 375@ = 369@
add_float_lvar_to_float_lvar 375@ += 372@
375@ /= 2.0
set_lvar_float_to_lvar_float 374@ = 98@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_44016
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_44016
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_44016
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_44403
if 
  129@ == 1
goto_if_false @POOL2_44197
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 4 DATA = "

:POOL2_44197
set_lvar_float_to_lvar_float 374@ = 99@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_44403
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_44403
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_44403
362@ += 1
goto @POOL2_42577

:POOL2_44417
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_45889
if 
  129@ == 1
goto_if_false @POOL2_44598
save_newline_to_debug_file 
save_string_to_debug_file "SNOOKER - BOUNCE 2"

:POOL2_44598
362@ = 1

:POOL2_44605
if 
  16 > 362@
goto_if_false @POOL2_45889
wait 0
if 
  does_object_exist 82@(362@,16i)
goto_if_false @POOL2_45875
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_45875
if 
  362@ == 0
goto_if_false @POOL2_44701
364@ = 3
goto @POOL2_44772

:POOL2_44701
if 
  8 > 362@
goto_if_false @POOL2_44733
364@ = 0
goto @POOL2_44772

:POOL2_44733
if 
  362@ == 8
goto_if_false @POOL2_44765
364@ = 2
goto @POOL2_44772

:POOL2_44765
364@ = 1

:POOL2_44772
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_45875
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_44830
goto @POOL2_45875

:POOL2_44830
368@, 369@, 370@ = get_object_coordinates 82@
371@, 372@, 373@ = get_object_coordinates 82@(362@,16i)
set_lvar_float_to_lvar_float 374@ = 368@
add_float_lvar_to_float_lvar 374@ += 371@
374@ /= 2.0
set_lvar_float_to_lvar_float 375@ = 100@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45105
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45105
set_lvar_float_to_lvar_float 365@ = 374@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 365@ += 42@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45105
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_45353
set_lvar_float_to_lvar_float 375@ = 101@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45353
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45353
set_lvar_float_to_lvar_float 365@ = 374@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 365@ += 42@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45353
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_45627
set_lvar_float_to_lvar_float 375@ = 369@
add_float_lvar_to_float_lvar 375@ += 372@
375@ /= 2.0
set_lvar_float_to_lvar_float 374@ = 98@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45627
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45627
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 366@ += 42@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45627
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_45875
set_lvar_float_to_lvar_float 374@ = 99@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45875
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45875
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 366@ += 42@
42@ = get_distance_between_coords_2d 368@ {fromY} 369@ {toX} 374@ {toZ} 375@
43@ = get_distance_between_coords_2d 371@ {fromY} 372@ {toX} 374@ {toZ} 375@
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45875
362@ += 1
goto @POOL2_44605

:POOL2_45889
if and
  365@ == 99999.8984
  366@ == 99999.8984
goto_if_false @POOL2_46120
if 
  129@ == 1
goto_if_false @POOL2_46070
save_newline_to_debug_file 
save_string_to_debug_file "SNOOKER - LAST RESORT"

:POOL2_46070
359@ = generate_random_float_in_range 0.0 {max} 360.0
360@ = generate_random_float_in_range 4.0 {max} 8.0
365@ = 0.0
366@ = 0.0

:POOL2_46120
if and
  359@ == 99999.8984
  360@ == 99999.8984
goto_if_false @POOL2_46283
368@, 369@, 370@ = get_object_coordinates 82@
set_lvar_float_to_lvar_float 371@ = 365@
sub_float_lvar_from_float_lvar 371@ -= 368@
set_lvar_float_to_lvar_float 372@ = 366@
sub_float_lvar_from_float_lvar 372@ -= 369@
359@ = get_heading_from_vector_2d 371@ {y} 372@
set_lvar_float_to_lvar_float 360@ = 367@
360@ *= 1.0
if 
  90.0 > 361@
goto_if_false @POOL2_46283
set_lvar_float_to_lvar_float 42@ = 361@
42@ /= 90.0
42@ *= 2.0
add_float_lvar_to_float_lvar 360@ += 42@

:POOL2_46283
if 
  0.7 > 360@
goto_if_false @POOL2_46314
360@ = 0.7

:POOL2_46314
if 
  360@ > 4.0
goto_if_false @POOL2_46345
360@ = 4.0

:POOL2_46345
return 

:POOL2_46347
goto @POOL2_46398
477@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
478@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_46398
481@ = 1
500@ = -1
if 
  does_object_exist 477@
goto_if_false @POOL2_46491
483@, 484@, $z = get_object_coordinates 477@
set_lvar_float_to_lvar_float 487@ = 479@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 488@ = 480@
sub_float_lvar_from_float_lvar 488@ -= 484@
493@ = get_distance_between_coords_2d 483@ {fromY} 484@ {toX} 479@ {toZ} 480@

:POOL2_46491
wait 0
if or
  227@ == -1
  227@ == 2
  227@ == 1
goto_if_false @POOL2_46580
497@ = 1

:POOL2_46534
if 
  16 > 497@
goto_if_false @POOL2_46573
gosub @POOL2_46675
497@ += 1
goto @POOL2_46534

:POOL2_46573
goto @POOL2_46666

:POOL2_46580
499@ = 1

:POOL2_46587
if 
  16 > 499@
goto_if_false @POOL2_46666
set_lvar_int_to_lvar_int 497@ = 499@
497@ += 7
if 
  497@ > 15
goto_if_false @POOL2_46645
497@ += -15

:POOL2_46645
gosub @POOL2_46675
499@ += 1
goto @POOL2_46587

:POOL2_46666
478@ = 0
return 

:POOL2_46675
if 
  does_object_exist 82@(497@,16i)
goto_if_false @POOL2_47595
if 
  66@(497@,16i) == 0
goto_if_false @POOL2_47595
if 
  not is_int_lvar_equal_to_int_lvar 82@(497@,16i) == 477@
goto_if_false @POOL2_47595
498@ = 0
if 
  does_object_exist 478@
goto_if_false @POOL2_46793
if 
  is_int_lvar_equal_to_int_lvar 82@(497@,16i) == 478@
goto_if_false @POOL2_46793
498@ = 1

:POOL2_46793
if 
  498@ == 0
goto_if_false @POOL2_47595
485@, 486@, $z = get_object_coordinates 82@(497@,16i)
set_lvar_float_to_lvar_float 489@ = 485@
sub_float_lvar_from_float_lvar 489@ -= 483@
set_lvar_float_to_lvar_float 490@ = 486@
sub_float_lvar_from_float_lvar 490@ -= 484@
494@ = get_distance_between_coords_2d 483@ {fromY} 484@ {toX} 485@ {toZ} 486@
42@ = get_angle_between_2d_vectors 487@ {y1} 488@ {x2} 489@ {y2} 490@
495@ = get_distance_between_coords_2d 485@ {fromY} 486@ {toX} 479@ {toZ} 480@
if 
  is_float_lvar_greater_than_float_lvar 53@ > 495@
goto_if_false @POOL2_47225
if 
  497@ == 0
goto_if_false @POOL2_46963
482@ = 3
goto @POOL2_47034

:POOL2_46963
if 
  8 > 497@
goto_if_false @POOL2_46995
482@ = 0
goto @POOL2_47034

:POOL2_46995
if 
  497@ == 8
goto_if_false @POOL2_47027
482@ = 2
goto @POOL2_47034

:POOL2_47027
482@ = 1

:POOL2_47034
if 
  129@ == 1
goto_if_false @POOL2_47189
save_newline_to_debug_file 
save_string_to_debug_file "    BALL OBSTRUCTING PATH (TOO CLOSE TO TARGET DESTINATION) = "
save_int_to_debug_file 497@

:POOL2_47189
set_lvar_int_to_lvar_int 500@ = 497@
481@ = 0
497@ = 16
499@ = 16
goto @POOL2_47595

:POOL2_47225
if 
  90.0 >= 42@
goto_if_false @POOL2_47595
if 
  is_float_lvar_greater_than_float_lvar 493@ > 494@
goto_if_false @POOL2_47595
496@ = sin 42@
set_lvar_float_to_lvar_float 42@ = 496@
mult_float_lvar_by_float_lvar 42@ *= 494@
if 
  is_float_lvar_greater_than_float_lvar 53@ > 42@
goto_if_false @POOL2_47595
if 
  497@ == 0
goto_if_false @POOL2_47340
482@ = 3
goto @POOL2_47411

:POOL2_47340
if 
  8 > 497@
goto_if_false @POOL2_47372
482@ = 0
goto @POOL2_47411

:POOL2_47372
if 
  497@ == 8
goto_if_false @POOL2_47404
482@ = 2
goto @POOL2_47411

:POOL2_47404
482@ = 1

:POOL2_47411
if 
  129@ == 1
goto_if_false @POOL2_47566
save_newline_to_debug_file 
save_string_to_debug_file "    BALL OBSTRUCTING PATH (OVERLAPPING PATH) = "
save_int_to_debug_file 497@

:POOL2_47566
set_lvar_int_to_lvar_int 500@ = 497@
481@ = 0
497@ = 16
499@ = 16

:POOL2_47595
return 

:POOL2_47597
481@ = 1
500@ = -1
set_lvar_float_to_lvar_float 487@ = 479@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 488@ = 480@
sub_float_lvar_from_float_lvar 488@ -= 484@
if or
  is_float_lvar_greater_than_float_lvar 98@ > 479@
  is_float_lvar_greater_than_float_lvar 479@ > 99@
  is_float_lvar_greater_than_float_lvar 100@ > 480@
  is_float_lvar_greater_than_float_lvar 480@ > 101@
goto_if_false @POOL2_48158
501@ = -99999.8984
502@ = -99999.8984
39@ = 0
if and
  501@, 502@ = get_2d_lines_intersect_point 483@ {line1StartY} 484@ {line1EndX} 479@ {line1EndY} 480@ {line2StartX} 98@ {line2StartY} 100@ {line2EndX} 98@ {line2EndY} 101@
  511@ <> 1
goto_if_false @POOL2_47777
39@ = 1
goto @POOL2_47962

:POOL2_47777
if and
  501@, 502@ = get_2d_lines_intersect_point 483@ {line1StartY} 484@ {line1EndX} 479@ {line1EndY} 480@ {line2StartX} 99@ {line2StartY} 100@ {line2EndX} 99@ {line2EndY} 101@
  511@ <> 2
goto_if_false @POOL2_47841
39@ = 2
goto @POOL2_47962

:POOL2_47841
if and
  501@, 502@ = get_2d_lines_intersect_point 483@ {line1StartY} 484@ {line1EndX} 479@ {line1EndY} 480@ {line2StartX} 98@ {line2StartY} 100@ {line2EndX} 99@ {line2EndY} 100@
  511@ <> 3
goto_if_false @POOL2_47905
39@ = 3
goto @POOL2_47962

:POOL2_47905
if and
  501@, 502@ = get_2d_lines_intersect_point 483@ {line1StartY} 484@ {line1EndX} 479@ {line1EndY} 480@ {line2StartX} 98@ {line2StartY} 101@ {line2EndX} 99@ {line2EndY} 101@
  511@ <> 4
goto_if_false @POOL2_47962
39@ = 4

:POOL2_47962
42@ = get_distance_between_coords_2d 479@ {fromY} 480@ {toX} 483@ {toZ} 484@
if 
  42@ > 0.0
goto_if_false @POOL2_48016
div_float_lvar_by_float_lvar 487@ /= 42@
div_float_lvar_by_float_lvar 488@ /= 42@

:POOL2_48016
if or
  39@ == 1
  39@ == 2
goto_if_false @POOL2_48067
set_lvar_float_to_lvar_float 503@ = 487@
503@ *= -1.0
set_lvar_float_to_lvar_float 504@ = 488@

:POOL2_48067
if or
  39@ == 3
  39@ == 4
goto_if_false @POOL2_48118
set_lvar_float_to_lvar_float 503@ = 487@
set_lvar_float_to_lvar_float 504@ = 488@
504@ *= -1.0

:POOL2_48118
if 
  39@ <> 0
goto_if_false @POOL2_48144
set_lvar_int_to_lvar_int 511@ = 39@

:POOL2_48144
481@ = 0
goto @POOL2_48181

:POOL2_48158
set_lvar_float_to_lvar_float 501@ = 479@
set_lvar_float_to_lvar_float 502@ = 480@
481@ = 1

:POOL2_48181
return 

:POOL2_48183
if 
  does_object_exist 512@
goto_if_false @POOL2_48253
522@, 523@, $z = get_object_coordinates 512@
set_lvar_float_to_lvar_float 516@ = 54@(513@,6f)
sub_float_lvar_from_float_lvar 516@ -= 522@
set_lvar_float_to_lvar_float 517@ = 60@(513@,6f)
sub_float_lvar_from_float_lvar 517@ -= 523@

:POOL2_48253
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 54@(513@,6f) {toZ} 60@(513@,6f)
set_lvar_float_to_lvar_float 518@ = 516@
div_float_lvar_by_float_lvar 518@ /= 42@
set_lvar_float_to_lvar_float 519@ = 517@
div_float_lvar_by_float_lvar 519@ /= 42@
518@ *= -1.0
519@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
mult_float_lvar_by_float_lvar 518@ *= 42@
mult_float_lvar_by_float_lvar 519@ *= 42@
add_float_lvar_to_float_lvar 522@ += 518@
add_float_lvar_to_float_lvar 523@ += 519@
if 
  does_object_exist 82@
goto_if_false @POOL2_48442
$x, $y, $z = get_object_coordinates 82@
set_lvar_float_to_lvar_float 520@ = 522@
sub_float_var_from_float_lvar 520@ -= $x
set_lvar_float_to_lvar_float 521@ = 523@
sub_float_var_from_float_lvar 521@ -= $y

:POOL2_48442
515@ = get_angle_between_2d_vectors 516@ {y1} 517@ {x2} 520@ {y2} 521@
if 
  90.0 > 515@
goto_if_false @POOL2_48494
514@ = 1
goto @POOL2_48501

:POOL2_48494
514@ = 0

:POOL2_48501
return 

:POOL2_48503
526@ = 0
527@ = 0
528@ = 0
if and
  does_object_exist 524@
  does_object_exist 525@
goto_if_false @POOL2_49104
$x, $y, $z = get_object_coordinates 524@
533@, 534@, $z = get_object_coordinates 525@
set_lvar_float_to_lvar_float 529@ = 533@
sub_float_var_from_float_lvar 529@ -= $x
set_lvar_float_to_lvar_float 530@ = 534@
sub_float_var_from_float_lvar 530@ -= $y
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 533@ {toZ} 534@
div_float_lvar_by_float_lvar 529@ /= 42@
div_float_lvar_by_float_lvar 530@ /= 42@
set_lvar_float_to_lvar_float 531@ = 530@
set_lvar_float_to_lvar_float 532@ = 529@
532@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
set_lvar_float_to_lvar_float 43@ = 531@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 535@ = 533@
add_float_lvar_to_float_lvar 535@ += 43@
set_lvar_float_to_lvar_float 43@ = 532@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 536@ = 534@
add_float_lvar_to_float_lvar 536@ += 43@
set_lvar_int_to_lvar_int 477@ = 524@
set_lvar_int_to_lvar_int 478@ = 525@
set_lvar_float_to_lvar_float 479@ = 535@
set_lvar_float_to_lvar_float 480@ = 536@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_48820
527@ = 1

:POOL2_48820
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= -0.8
set_lvar_float_to_lvar_float 43@ = 531@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 537@ = 533@
add_float_lvar_to_float_lvar 537@ += 43@
set_lvar_float_to_lvar_float 43@ = 532@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 538@ = 534@
add_float_lvar_to_float_lvar 538@ += 43@
set_lvar_int_to_lvar_int 477@ = 524@
set_lvar_int_to_lvar_int 478@ = 525@
set_lvar_float_to_lvar_float 479@ = 537@
set_lvar_float_to_lvar_float 480@ = 538@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_48976
528@ = 1

:POOL2_48976
if and
  527@ == 0
  528@ == 0
goto_if_false @POOL2_49008
526@ = 0

:POOL2_49008
if and
  527@ == 1
  528@ == 0
goto_if_false @POOL2_49040
526@ = 1

:POOL2_49040
if and
  527@ == 0
  528@ == 1
goto_if_false @POOL2_49072
526@ = 2

:POOL2_49072
if and
  527@ == 1
  528@ == 1
goto_if_false @POOL2_49104
526@ = 3

:POOL2_49104
return 

:POOL2_49106
541@ = 0
543@ = 2.5
mult_float_lvar_by_float_lvar 543@ *= 52@
544@ = 0

:POOL2_49138
if 
  6 > 544@
goto_if_false @POOL2_49360
542@ = get_distance_between_coords_2d 539@ {fromY} 540@ {toX} 54@(544@,6f) {toZ} 60@(544@,6f)
if 
  is_float_lvar_greater_than_float_lvar 543@ > 542@
goto_if_false @POOL2_49346
save_newline_to_debug_file 
save_string_to_debug_file "    POINT LIES ON POCKET"
541@ = 1
544@ = 6

:POOL2_49346
544@ += 1
goto @POOL2_49138

:POOL2_49360
return 

:POOL2_49362
549@ = 0
save_newline_to_debug_file 
save_string_to_debug_file "       BOUNCE_SHOT_PATH_CLEAR DATA = "
set_lvar_int_to_lvar_int 477@ = 545@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49880
save_string_to_debug_file "1ST PATH CLEAR "
set_lvar_int_to_lvar_int 477@ = 546@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49880
save_string_to_debug_file "2ND PATH CLEAR "
549@ = 1

:POOL2_49880
return 

:POOL2_49882
553@ = 0
set_lvar_int_to_lvar_int 477@ = 545@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49952
553@ = 1

:POOL2_49952
return 

:POOL2_49954
set_lvar_float_to_lvar_float 561@ = 52@
561@ *= 2.0
set_lvar_float_to_lvar_float 558@ = 52@
558@ *= -1.0
set_lvar_float_to_lvar_float 562@ = 561@
562@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 561@
mult_float_lvar_by_float_lvar 42@ *= 561@
set_lvar_float_to_lvar_float 43@ = 52@
mult_float_lvar_by_float_lvar 43@ *= 52@
set_lvar_float_to_lvar_float 559@ = 42@
sub_float_lvar_from_float_lvar 559@ -= 43@
559@ = sqrt 559@
set_lvar_float_to_lvar_float 560@ = 559@
560@ *= -1.0
563@ = 1

:POOL2_50089
if 
  15 > 563@
goto_if_false @POOL2_50132
freeze_object_position 82@(563@,16i) {state} False
563@ += 1
goto @POOL2_50089

:POOL2_50132
set_object_coordinates 83@ {x} 554@ {y} 555@ {z} 556@
set_object_heading 83@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 83@ {xOffset} 558@ {yOffset} 560@ {zOffset} 0.0
set_object_coordinates 91@ {x} $x {y} $y {z} $z
set_object_heading 91@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 91@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 85@ {x} $x {y} $y {z} $z
set_object_heading 85@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 91@ {xOffset} 558@ {yOffset} 560@ {zOffset} 0.0
set_object_coordinates 89@ {x} $x {y} $y {z} $z
set_object_heading 89@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 89@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 90@ {x} $x {y} $y {z} $z
set_object_heading 90@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 90@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 92@ {x} $x {y} $y {z} $z
set_object_heading 92@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 89@ {xOffset} 558@ {yOffset} 560@ {zOffset} 0.0
set_object_coordinates 93@ {x} $x {y} $y {z} $z
set_object_heading 93@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 93@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 84@ {x} $x {y} $y {z} $z
set_object_heading 84@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 84@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 97@ {x} $x {y} $y {z} $z
set_object_heading 97@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 97@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 87@ {x} $x {y} $y {z} $z
set_object_heading 87@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 93@ {xOffset} 558@ {yOffset} 560@ {zOffset} 0.0
set_object_coordinates 88@ {x} $x {y} $y {z} $z
set_object_heading 88@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 88@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 94@ {x} $x {y} $y {z} $z
set_object_heading 94@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 94@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 95@ {x} $x {y} $y {z} $z
set_object_heading 95@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 95@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 86@ {x} $x {y} $y {z} $z
set_object_heading 86@ {heading} 557@
$x, $y, $z = get_offset_from_object_in_world_coords 86@ {xOffset} 561@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 96@ {x} $x {y} $y {z} $z
set_object_heading 96@ {heading} 557@
return 

:POOL2_50834
598@ = -0.96
599@ = 0.49
600@ = 0.97
601@ = 0.49
602@ = 0.97
603@ = -0.49
604@ = -0.96
605@ = -0.49
567@, 568@, 569@ = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.0
570@, 571@, 572@ = get_object_coordinates 82@
$z = get_ground_z_for_3d_coord 570@ {y} 571@ {z} 572@
573@, 574@, 575@ = get_offset_from_object_in_world_coords 163@ {xOffset} 598@ {yOffset} 599@ {zOffset} 0.0
576@, 577@, 578@ = get_offset_from_object_in_world_coords 163@ {xOffset} 600@ {yOffset} 601@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 567@ {line1StartY} 568@ {line1EndX} 570@ {line1EndY} 571@ {line2StartX} 573@ {line2StartY} 574@ {line2EndX} 576@ {line2EndY} 577@
goto_if_false @POOL2_51088
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51088
573@, 574@, 575@ = get_offset_from_object_in_world_coords 163@ {xOffset} 602@ {yOffset} 603@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 567@ {line1StartY} 568@ {line1EndX} 570@ {line1EndY} 571@ {line2StartX} 573@ {line2StartY} 574@ {line2EndX} 576@ {line2EndY} 577@
goto_if_false @POOL2_51180
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51180
576@, 577@, 578@ = get_offset_from_object_in_world_coords 163@ {xOffset} 604@ {yOffset} 605@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 567@ {line1StartY} 568@ {line1EndX} 570@ {line1EndY} 571@ {line2StartX} 573@ {line2StartY} 574@ {line2EndX} 576@ {line2EndY} 577@
goto_if_false @POOL2_51272
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51272
573@, 574@, 575@ = get_offset_from_object_in_world_coords 163@ {xOffset} 598@ {yOffset} 599@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 567@ {line1StartY} 568@ {line1EndX} 570@ {line1EndY} 571@ {line2StartX} 573@ {line2StartY} 574@ {line2EndX} 576@ {line2EndY} 577@
goto_if_false @POOL2_51364
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51364
set_lvar_float_to_lvar_float 169@ = 570@
sub_float_lvar_from_float_lvar 169@ -= 581@
set_lvar_float_to_lvar_float 170@ = 571@
sub_float_lvar_from_float_lvar 170@ -= 585@
set_lvar_float_to_lvar_float 171@ = 572@
sub_float_lvar_from_float_lvar 171@ -= 589@
593@ = get_heading_from_vector_2d 169@ {y} 170@
set_lvar_float_to_lvar_float 591@ = 593@
set_lvar_float_to_lvar_float 592@ = 593@
set_lvar_float_to_lvar_float 594@ = 593@
set_lvar_float_to_lvar_float 590@ = 589@
set_lvar_float_to_lvar_float 587@ = 589@
set_lvar_float_to_lvar_float 588@ = 589@
595@ = get_distance_between_coords_2d 570@ {fromY} 571@ {toX} 581@ {toZ} 585@
div_float_lvar_by_float_lvar 169@ /= 595@
div_float_lvar_by_float_lvar 170@ /= 595@
set_var_float_to_lvar_float $x = 169@
$x *= 3.0
set_var_float_to_lvar_float $y = 170@
$y *= 3.0
set_lvar_float_to_lvar_float 579@ = 581@
sub_float_var_from_float_lvar 579@ -= $x
set_lvar_float_to_lvar_float 583@ = 585@
sub_float_var_from_float_lvar 583@ -= $y
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 606@ = 581@
sub_float_var_from_float_lvar 606@ -= $x
set_lvar_float_to_lvar_float 607@ = 585@
sub_float_var_from_float_lvar 607@ -= $y
set_lvar_float_to_lvar_float 608@ = 589@
if 
  0.25 > 595@
goto_if_false @POOL2_51683
596@ = 1
goto @POOL2_51760

:POOL2_51683
if 
  0.65 > 595@
goto_if_false @POOL2_51718
596@ = 2
goto @POOL2_51760

:POOL2_51718
if 
  1.1 > 595@
goto_if_false @POOL2_51753
596@ = 3
goto @POOL2_51760

:POOL2_51753
596@ = 4

:POOL2_51760
if 
  596@ == 1
goto_if_false @POOL2_51846
set_var_float_to_lvar_float $x = 169@
$x *= 0.615
set_var_float_to_lvar_float $y = 170@
$y *= 0.615
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_51846
if 
  596@ == 2
goto_if_false @POOL2_51932
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_51932
if 
  596@ == 3
goto_if_false @POOL2_52018
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52018
if 
  596@ == 4
goto_if_false @POOL2_52104
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52104
$distance = get_distance_between_coords_2d 570@ {fromY} 571@ {toX} 580@ {toZ} 584@
set_lvar_float_to_lvar_float 42@ = 595@
42@ += 0.3
if 
  is_float_lvar_greater_than_float_var 42@ > $distance
goto_if_false @POOL2_52240
set_lvar_float_to_lvar_float 42@ = 595@
42@ += 0.3
set_var_float_to_lvar_float $x = 169@
mult_float_var_by_float_lvar $x *= 42@
set_var_float_to_lvar_float $y = 170@
mult_float_var_by_float_lvar $y *= 42@
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52240
if 
  596@ == 1
goto_if_false @POOL2_52326
set_var_float_to_lvar_float $x = 169@
$x *= 0.655
set_var_float_to_lvar_float $y = 170@
$y *= 0.655
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52326
if 
  596@ == 2
goto_if_false @POOL2_52412
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52412
if 
  596@ == 3
goto_if_false @POOL2_52498
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52498
if 
  596@ == 4
goto_if_false @POOL2_52584
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52584
return 

:POOL2_52586
draw_sprite 1 {offsetLeft} 609@ {offsetTop} 610@ {width} 611@ {height} 612@ {r} 128 {g} 128 {b} 128 {a} 255
draw_sprite 2 {offsetLeft} 613@ {offsetTop} 614@ {width} 615@ {height} 616@ {r} 128 {g} 128 {b} 128 {a} 255
if or
  is_button_pressed 180@ {buttonId} Button.LeftStickY
  is_button_pressed 180@ {buttonId} Button.LeftStickX
goto_if_false @POOL2_53137
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= 128.0
$x *= 5.0
$y *= 5.0
set_lvar_float_to_lvar_float 42@ = 613@
add_float_var_to_float_lvar 42@ += $x
set_lvar_float_to_lvar_float 44@ = 611@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 609@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_52852
set_lvar_float_to_lvar_float 43@ = 609@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_52852
set_var_float_to_lvar_float $x = 42@

:POOL2_52852
set_lvar_float_to_lvar_float 42@ = 614@
add_float_var_to_float_lvar 42@ += $y
set_lvar_float_to_lvar_float 44@ = 612@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 610@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_52964
set_lvar_float_to_lvar_float 43@ = 610@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_52964
set_var_float_to_lvar_float $y = 42@

:POOL2_52964
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 609@ {toZ} 610@
set_lvar_float_to_lvar_float 43@ = 611@
43@ /= 3.2
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_53121
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 609@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 610@
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 43@
mult_float_lvar_by_float_lvar 170@ *= 43@
set_lvar_float_to_lvar_float 613@ = 609@
add_float_lvar_to_float_lvar 613@ += 169@
set_lvar_float_to_lvar_float 614@ = 610@
add_float_lvar_to_float_lvar 614@ += 170@
goto @POOL2_53137

:POOL2_53121
set_lvar_float_to_var_float 613@ = $x
set_lvar_float_to_var_float 614@ = $y

:POOL2_53137
return 

:POOL2_53139
set_lvar_float_to_lvar_float 622@ = 52@
622@ *= 2.0
620@ = 1

:POOL2_53164
if 
  16 > 620@
goto_if_false @POOL2_53366
if 
  does_object_exist 82@(620@,16i)
goto_if_false @POOL2_53352
$x, $y, $z = get_object_coordinates 82@(620@,16i)
621@ = get_distance_between_coords_2d $x {fromY} $y {toX} 618@ {toZ} 619@
if 
  is_float_lvar_greater_than_float_lvar 622@ > 621@
goto_if_false @POOL2_53352
set_lvar_float_to_lvar_float 623@ = 618@
sub_float_var_from_float_lvar 623@ -= $x
set_lvar_float_to_lvar_float 624@ = 619@
sub_float_var_from_float_lvar 624@ -= $y
div_float_lvar_by_float_lvar 623@ /= 621@
div_float_lvar_by_float_lvar 624@ /= 621@
mult_float_lvar_by_float_lvar 623@ *= 622@
mult_float_lvar_by_float_lvar 624@ *= 622@
set_lvar_float_to_var_float 618@ = $x
add_float_lvar_to_float_lvar 618@ += 623@
set_lvar_float_to_var_float 619@ = $y
add_float_lvar_to_float_lvar 619@ += 624@

:POOL2_53352
620@ += 1
goto @POOL2_53164

:POOL2_53366
set_lvar_float_to_lvar_float 621@ = 98@
if 
  is_float_lvar_greater_than_float_lvar 621@ > 618@
goto_if_false @POOL2_53401
set_lvar_float_to_lvar_float 618@ = 621@

:POOL2_53401
set_lvar_float_to_lvar_float 621@ = 99@
if 
  is_float_lvar_greater_than_float_lvar 618@ > 621@
goto_if_false @POOL2_53436
set_lvar_float_to_lvar_float 618@ = 621@

:POOL2_53436
set_lvar_float_to_lvar_float 621@ = 100@
if 
  is_float_lvar_greater_than_float_lvar 621@ > 619@
goto_if_false @POOL2_53471
set_lvar_float_to_lvar_float 619@ = 621@

:POOL2_53471
set_lvar_float_to_lvar_float 621@ = 101@
if 
  is_float_lvar_greater_than_float_lvar 619@ > 621@
goto_if_false @POOL2_53506
set_lvar_float_to_lvar_float 619@ = 621@

:POOL2_53506
return 

:POOL2_53508
$debug_char_health, $cam_x1, $cam_y1 = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$cam_z1, $cam_x2, $cam_y2 = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_var_float_to_var_float $cam_z2 = $debug_char_health
sub_float_var_from_float_var $cam_z2 -= $cam_z1
set_var_float_to_var_float $cam_rvec_x = $cam_x1
sub_float_var_from_float_var $cam_rvec_x -= $cam_x2
$cam_rvec_y = get_distance_between_coords_2d $debug_char_health {fromY} $cam_x1 {toX} $cam_z1 {toZ} $cam_x2
div_float_var_by_float_var $cam_z2 /= $cam_rvec_y
div_float_var_by_float_var $cam_rvec_x /= $cam_rvec_y
set_var_float_to_var_float $cam_nvec_x = $cam_rvec_x
set_var_float_to_var_float $cam_nvec_y = $cam_z2
$cam_nvec_y *= -1.0
return 

:POOL2_53659
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 632@ {rightBottomY} 638@ {header} 'BJ_TITL' {zIndex} 2
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 240.0 {key} 'BJ_01'
gosub @POOL2_59559
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 155@
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @POOL2_59559
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} $active_initial_cue
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @POOL2_59559
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} $pool_min_bet
return 

:POOL2_53966
if and
  270@ == 0
  267@ == 0
goto_if_false @POOL2_54012
626@ = 1
gosub @POOL2_56162
goto @POOL2_55363

:POOL2_54012
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 628@ {rightBottomY} 634@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'PL_01'
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  213@ == 0
goto_if_false @POOL2_54137
display_text 36.0 {offsetTop} 260.0 {key} 'PL_12'

:POOL2_54137
if 
  213@ == 1
goto_if_false @POOL2_54176
display_text 36.0 {offsetTop} 260.0 {key} 'PL_13'

:POOL2_54176
if 
  213@ == -1
goto_if_false @POOL2_54215
display_text 36.0 {offsetTop} 260.0 {key} 'PL_15'

:POOL2_54215
if 
  213@ == 2
goto_if_false @POOL2_54254
display_text 36.0 {offsetTop} 260.0 {key} 'PL_14'

:POOL2_54254
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_54321
display_text 36.0 {offsetTop} 290.0 {key} 'PL_02'
goto @POOL2_54342

:POOL2_54321
display_text 36.0 {offsetTop} 290.0 {key} 'PL_03'

:POOL2_54342
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  214@ == 0
goto_if_false @POOL2_54396
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_54396
if 
  214@ == 1
goto_if_false @POOL2_54435
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_54435
if 
  214@ == -1
goto_if_false @POOL2_54474
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_54474
if 
  214@ == 2
goto_if_false @POOL2_54513
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_54513
if 
  270@ > 0
goto_if_false @POOL2_54833
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_04'
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
switch_start 270@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_54826 {caseNum1} 0 {caseLabel1} @POOL2_54651 {caseNum2} 1 {caseLabel2} @POOL2_54658 {caseNum3} 2 {caseLabel3} @POOL2_54686 {caseNum4} 3 {caseLabel4} @POOL2_54714 {caseNum5} 4 {caseLabel5} @POOL2_54742 {caseNum6} 5 {caseLabel6} @POOL2_54770 {caseNum7} 6 {caseLabel7} @POOL2_54798

:POOL2_54651
goto @POOL2_54826

:POOL2_54658
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL1'
goto @POOL2_54826

:POOL2_54686
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL2'
goto @POOL2_54826

:POOL2_54714
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL3'
goto @POOL2_54826

:POOL2_54742
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL4'
goto @POOL2_54826

:POOL2_54770
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL5'
goto @POOL2_54826

:POOL2_54798
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL6'
goto @POOL2_54826

:POOL2_54826
goto @POOL2_55363

:POOL2_54833
if 
  267@ > 0
goto_if_false @POOL2_55363
if 
  267@ == 1
goto_if_false @POOL2_55025
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_05'
39@ = 1

:POOL2_54918
if 
  16 > 39@
goto_if_false @POOL2_55018
if 
  251@(39@,16i) <> 0
goto_if_false @POOL2_55004
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'NUM' {num} 39@
39@ = 16

:POOL2_55004
39@ += 1
goto @POOL2_54918

:POOL2_55018
goto @POOL2_55363

:POOL2_55025
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_06'
39@ = 1
set_lvar_int_to_lvar_int 40@ = 267@
42@ = 36.0

:POOL2_55092
if 
  40@ > 0
goto_if_false @POOL2_55363

:POOL2_55110
if 
  16 > 39@
goto_if_false @POOL2_55356
if 
  251@(39@,16i) <> 0
goto_if_false @POOL2_55317
if 
  40@ > 1
goto_if_false @POOL2_55259
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
41@ = get_string_width_with_number 'COMMA' {number} 39@
cset_lvar_float_to_lvar_int 43@ =# 41@
display_text_with_number 42@ {offsetTop} 360.0 {key} 'COMMA' {num} 39@
add_float_lvar_to_float_lvar 42@ += 43@
39@ += 1
40@ -= 1
goto @POOL2_55310

:POOL2_55259
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
display_text_with_number 42@ {offsetTop} 360.0 {key} 'NUM' {num} 39@
40@ = -1
39@ = 16

:POOL2_55310
goto @POOL2_55324

:POOL2_55317
39@ += 1

:POOL2_55324
if 
  39@ >= 16
goto_if_false @POOL2_55349
40@ = -1

:POOL2_55349
goto @POOL2_55110

:POOL2_55356
goto @POOL2_55092

:POOL2_55363
return 
if or
is_ps2_keyboard_key_just_pressed 82
is_ps2_keyboard_key_just_pressed 26
goto_if_false @POOL2_55394
612@ += 1.0

:POOL2_55394
if or
is_ps2_keyboard_key_just_pressed 81
is_ps2_keyboard_key_just_pressed 29
goto_if_false @POOL2_55423
612@ += -1.0

:POOL2_55423
if or
is_ps2_keyboard_key_just_pressed 79
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_55452
611@ += 1.0

:POOL2_55452
if or
is_ps2_keyboard_key_just_pressed 80
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_55481
611@ += -1.0

:POOL2_55481
if or
is_ps2_keyboard_key_just_pressed 96
is_ps2_keyboard_key_just_pressed 26
goto_if_false @POOL2_55510
615@ += 1.0

:POOL2_55510
if or
is_ps2_keyboard_key_just_pressed 90
is_ps2_keyboard_key_just_pressed 29
goto_if_false @POOL2_55539
615@ += -1.0

:POOL2_55539
if or
is_ps2_keyboard_key_just_pressed 94
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_55568
616@ += 1.0

:POOL2_55568
if or
is_ps2_keyboard_key_just_pressed 92
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_55597
616@ += -1.0

:POOL2_55597
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_56160
save_newline_to_debug_file 
save_string_to_debug_file "BALL_SPRITE_HEIGHT = "
save_float_to_debug_file 612@
save_newline_to_debug_file 
save_string_to_debug_file "BALL_SPRITE_WIDTH = "
save_float_to_debug_file 611@
save_newline_to_debug_file 
save_string_to_debug_file "NIB_SPRITE_HEIGHT = "
save_float_to_debug_file 615@
save_newline_to_debug_file 
save_string_to_debug_file "NIB_SPRITE_WIDTH = "
save_float_to_debug_file 616@

:POOL2_56160
return 

:POOL2_56162
if 
  626@ == 0
goto_if_false @POOL2_56411
39@ = 0
if 
  3000 > 201@
goto_if_false @POOL2_56213
39@ = 1

:POOL2_56213
if 
  232@ == 1
goto_if_false @POOL2_56270
201@ = 0
39@ = 1
if 
  198@ > 1
goto_if_false @POOL2_56270
198@ = 0

:POOL2_56270
if 
  198@ == 0
goto_if_false @POOL2_56315
clear_help 
print_help_forever 'PL_H3'
201@ = 0
198@ += 1

:POOL2_56315
if 
  34@ == 5
goto_if_false @POOL2_56397
if 
  198@ == 1
goto_if_false @POOL2_56390
if 
  201@ > 3000
goto_if_false @POOL2_56390
clear_help 
print_help_forever 'PL_H7'
198@ += 1

:POOL2_56390
goto @POOL2_56404

:POOL2_56397
39@ = 1

:POOL2_56404
goto @POOL2_56425

:POOL2_56411
39@ = 1
626@ = 0

:POOL2_56425
if 
  39@ == 1
goto_if_false @POOL2_56944
draw_window 29.0 {leftTopY} 270.0 {rightBottomX} 629@ {rightBottomY} 635@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'PL_01'
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  213@ == 0
goto_if_false @POOL2_56568
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_56568
if 
  213@ == 1
goto_if_false @POOL2_56607
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_56607
if 
  213@ == -1
goto_if_false @POOL2_56646
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_56646
if 
  213@ == 2
goto_if_false @POOL2_56685
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_56685
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_56752
display_text 36.0 {offsetTop} 340.0 {key} 'PL_02'
goto @POOL2_56773

:POOL2_56752
display_text 36.0 {offsetTop} 340.0 {key} 'PL_03'

:POOL2_56773
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  214@ == 0
goto_if_false @POOL2_56827
display_text 36.0 {offsetTop} 360.0 {key} 'PL_12'

:POOL2_56827
if 
  214@ == 1
goto_if_false @POOL2_56866
display_text 36.0 {offsetTop} 360.0 {key} 'PL_13'

:POOL2_56866
if 
  214@ == -1
goto_if_false @POOL2_56905
display_text 36.0 {offsetTop} 360.0 {key} 'PL_15'

:POOL2_56905
if 
  214@ == 2
goto_if_false @POOL2_56944
display_text 36.0 {offsetTop} 360.0 {key} 'PL_14'

:POOL2_56944
return 

:POOL2_56946
627@ = 0.4753
633@ = 2.3176
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @POOL2_57137 {caseNum1} 1 {caseLabel1} @POOL2_57029 {caseNum2} 2 {caseLabel2} @POOL2_57083 {caseNum3} 3 {caseLabel3} @POOL2_57110 {caseNum4} 4 {caseLabel4} @POOL2_57056 {caseNum5} -1 {caseLabel5} @POOL2_57164 {caseNum6} -1 {caseLabel6} @POOL2_57164 {caseNum7} -1 {caseLabel7} @POOL2_57164

:POOL2_57029
628@ = 210.6556
634@ = 426.4957
goto @POOL2_57164

:POOL2_57056
628@ = 175.0805
634@ = 426.4957
goto @POOL2_57164

:POOL2_57083
628@ = 190.782
634@ = 409.0
goto @POOL2_57164

:POOL2_57110
628@ = 214.9799
634@ = 409.0
goto @POOL2_57164

:POOL2_57137
628@ = 174.4835
634@ = 409.0
goto @POOL2_57164

:POOL2_57164
switch_start $current_Language {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @POOL2_57308 {caseNum1} 2 {caseLabel1} @POOL2_57254 {caseNum2} 3 {caseLabel2} @POOL2_57281 {caseNum3} 4 {caseLabel3} @POOL2_57227 {caseNum4} -1 {caseLabel4} @POOL2_57335 {caseNum5} -1 {caseLabel5} @POOL2_57335 {caseNum6} -1 {caseLabel6} @POOL2_57335 {caseNum7} -1 {caseLabel7} @POOL2_57335

:POOL2_57227
629@ = 179.098
635@ = 396.8582
goto @POOL2_57335

:POOL2_57254
629@ = 166.0992
635@ = 396.8582
goto @POOL2_57335

:POOL2_57281
629@ = 205.4915
635@ = 396.8582
goto @POOL2_57335

:POOL2_57308
629@ = 157.0
635@ = 396.8582
goto @POOL2_57335

:POOL2_57335
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_57423 {caseNum1} 3 {caseLabel1} @POOL2_57398 {caseNum2} -1 {caseLabel2} @POOL2_57450 {caseNum3} -1 {caseLabel3} @POOL2_57450 {caseNum4} -1 {caseLabel4} @POOL2_57450 {caseNum5} -1 {caseLabel5} @POOL2_57450 {caseNum6} -1 {caseLabel6} @POOL2_57450 {caseNum7} -1 {caseLabel7} @POOL2_57450

:POOL2_57398
set_lvar_float_to_lvar_float 630@ = 629@
636@ = 394.4953
goto @POOL2_57450

:POOL2_57423
630@ = 168.1938
636@ = 394.4953
goto @POOL2_57450

:POOL2_57450
631@ = 0.4914
637@ = 2.3977
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_57560 {caseNum1} 3 {caseLabel1} @POOL2_57533 {caseNum2} -1 {caseLabel2} @POOL2_57587 {caseNum3} -1 {caseLabel3} @POOL2_57587 {caseNum4} -1 {caseLabel4} @POOL2_57587 {caseNum5} -1 {caseLabel5} @POOL2_57587 {caseNum6} -1 {caseLabel6} @POOL2_57587 {caseNum7} -1 {caseLabel7} @POOL2_57587

:POOL2_57533
632@ = 178.0981
638@ = 409.0
goto @POOL2_57587

:POOL2_57560
632@ = 157.0
638@ = 409.0
goto @POOL2_57587

:POOL2_57587
return 
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @POOL2_57654
639@ += 1
if 
  639@ > 5
goto_if_false @POOL2_57636
639@ = 0

:POOL2_57636
write_debug_with_int "SCREEN_EDIT" {number} 639@

:POOL2_57654
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_57683
633@(639@,6f) += -0.1

:POOL2_57683
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_57712
633@(639@,6f) += 0.1

:POOL2_57712
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @POOL2_57741
627@(639@,6f) += 0.1

:POOL2_57741
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @POOL2_57770
627@(639@,6f) += -0.1

:POOL2_57770
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_58510
save_newline_to_debug_file 
save_string_to_debug_file "POOL - SCREEN_COORDS"
save_newline_to_debug_file 
39@ = 0

:POOL2_57926
if 
  6 > 39@
goto_if_false @POOL2_58510
save_string_to_debug_file "SCREEN_COORD_X["
save_int_to_debug_file 39@
save_string_to_debug_file "] = "
save_float_to_debug_file 627@(39@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_COORD_Y["
save_int_to_debug_file 39@
save_string_to_debug_file "] = "
save_float_to_debug_file 633@(39@,6f)
save_newline_to_debug_file 
39@ += 1
goto @POOL2_57926

:POOL2_58510
return 

:POOL2_58512
39@ = 0
if 
  3000 > 201@
goto_if_false @POOL2_58545
39@ = 1

:POOL2_58545
if 
  198@ == 0
goto_if_false @POOL2_58590
clear_help 
print_help_forever 'PL_H6'
201@ = 0
198@ += 1

:POOL2_58590
if 
  34@ == 4
goto_if_false @POOL2_58665
if 
  198@ == 1
goto_if_false @POOL2_58665
if 
  201@ > 3000
goto_if_false @POOL2_58665
clear_help 
print_help_forever 'PL_H7'
198@ += 1

:POOL2_58665
if 
  39@ == 1
goto_if_false @POOL2_59262
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 630@ {rightBottomY} 636@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'PL_01'
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  213@ == 0
goto_if_false @POOL2_58808
display_text 36.0 {offsetTop} 260.0 {key} 'PL_12'

:POOL2_58808
if 
  213@ == 1
goto_if_false @POOL2_58847
display_text 36.0 {offsetTop} 260.0 {key} 'PL_13'

:POOL2_58847
if 
  213@ == -1
goto_if_false @POOL2_58886
display_text 36.0 {offsetTop} 260.0 {key} 'PL_15'

:POOL2_58886
if 
  213@ == 2
goto_if_false @POOL2_58925
display_text 36.0 {offsetTop} 260.0 {key} 'PL_14'

:POOL2_58925
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_58992
display_text 36.0 {offsetTop} 290.0 {key} 'PL_02'
goto @POOL2_59013

:POOL2_58992
display_text 36.0 {offsetTop} 290.0 {key} 'PL_03'

:POOL2_59013
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
if 
  214@ == 0
goto_if_false @POOL2_59067
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_59067
if 
  214@ == 1
goto_if_false @POOL2_59106
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_59106
if 
  214@ == -1
goto_if_false @POOL2_59145
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_59145
if 
  214@ == 2
goto_if_false @POOL2_59184
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_59184
gosub @POOL2_59559
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_16'
gosub @POOL2_59559
set_text_scale 627@ {heightScale} 633@
display_text 36.0 {offsetTop} 360.0 {key} 'PL_17'

:POOL2_59262
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_right_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.405 {heightScale} 1.08
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:POOL2_59559
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 631@ {heightScale} 637@
set_text_right_justify False
set_text_justify False
set_text_centre False
set_lvar_float_to_lvar_float 640@ = 628@
640@ -= 20.0
set_text_wrapx 640@
set_text_proportional True
set_text_background False
return 

:POOL2_59626
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_59746
if 
  does_object_exist 82@
goto_if_false @POOL2_59665
641@ = get_object_turn_mass 82@

:POOL2_59665
641@ += 0.001
39@ = 0

:POOL2_59682
if 
  16 > 39@
goto_if_false @POOL2_59746
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_59732
set_object_turn_mass 82@(39@,16i) {turnMass} 641@

:POOL2_59732
39@ += 1
goto @POOL2_59682

:POOL2_59746
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_59897
if 
  does_object_exist 82@
goto_if_false @POOL2_59785
641@ = get_object_turn_mass 82@

:POOL2_59785
641@ += -0.0001
if 
  0.0 >= 641@
goto_if_false @POOL2_59826
641@ = 0.0001

:POOL2_59826
39@ = 0

:POOL2_59833
if 
  16 > 39@
goto_if_false @POOL2_59897
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_59883
set_object_turn_mass 82@(39@,16i) {turnMass} 641@

:POOL2_59883
39@ += 1
goto @POOL2_59833

:POOL2_59897
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_59983
39@ = 0

:POOL2_59919
if 
  16 > 39@
goto_if_false @POOL2_59983
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_59969
set_object_turn_mass 82@(39@,16i) {turnMass} 641@

:POOL2_59969
39@ += 1
goto @POOL2_59919

:POOL2_59983
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @POOL2_60008
199@ += 0.001

:POOL2_60008
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_60033
199@ += -0.001

:POOL2_60033
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @POOL2_60058
200@ += 0.001

:POOL2_60058
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @POOL2_60083
200@ += -0.001

:POOL2_60083
return 

:POOL2_60085
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:POOL2_60103
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
clear_wanted_level $player1
return 

:POOL2_60137
make_player_gang_reappear 
disable_2nd_pad_for_debug 0
set_script_coop_game False
$disable_debug = 0
clear_mission_audio MissionAudioSlot.Slot4
39@ = 0

:POOL2_60165
if 
  10 > 39@
goto_if_false @POOL2_60226
if 
  does_object_exist 343@(39@,10i)
goto_if_false @POOL2_60212
delete_object 343@(39@,10i)

:POOL2_60212
39@ += 1
goto @POOL2_60165

:POOL2_60226
if 
  not is_char_dead $active_pool_table
goto_if_false @POOL2_60291
clear_look_at $active_pool_table
$x, $y, $z = get_char_coordinates $active_pool_table
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 219@ = $z
set_lvar_float_to_var_float 223@ = $z

:POOL2_60291
if 
  not is_char_dead $active_pool_table
goto_if_false @POOL2_60335
$x, $y, $z = get_char_coordinates $active_pool_table
set_char_coordinates $active_pool_table {x} $x {y} $y {z} 223@

:POOL2_60335
if 
  is_player_playing $player1
goto_if_false @POOL2_60460
$x, $y, $z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 217@ {y} 218@ {z} 219@
if 
  not is_char_dead $active_pool_table
goto_if_false @POOL2_60409
165@, 166@, 167@ = get_char_coordinates $active_pool_table

:POOL2_60409
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
$heading = get_heading_from_vector_2d 169@ {y} 170@
set_char_heading $scplayer {heading} $heading

:POOL2_60460
request_model 338

:POOL2_60465
if 
  not has_model_loaded 338
goto_if_false @POOL2_60492
wait 0
goto @POOL2_60465

:POOL2_60492
if 
  is_player_playing $player1
goto_if_false @POOL2_60532
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
drop_object $scplayer {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.PoolCue {ammo} 9999

:POOL2_60532
if 
  does_object_exist 106@
goto_if_false @POOL2_60553
delete_object 106@

:POOL2_60553
if 
  does_object_exist 107@
goto_if_false @POOL2_60574
delete_object 107@

:POOL2_60574
if 
  does_object_exist 234@
goto_if_false @POOL2_60595
delete_object 234@

:POOL2_60595
if 
  does_object_exist $active_pool_opponent
goto_if_false @POOL2_60616
delete_object $active_pool_opponent

:POOL2_60616
mark_model_as_no_longer_needed 338
mark_model_as_no_longer_needed #K_POOLQ
remove_animation "POOL"
if 
  is_player_playing $player1
goto_if_false @POOL2_60661
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} True

:POOL2_60661
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_prints 
clear_help 
$onmission = 0
if 
  is_player_playing $player1
goto_if_false @POOL2_60767
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
47@ = open_sequence_task 
task_stand_still -1 {time} 1
task_pause -1 {time} 1
close_sequence_task 47@
perform_sequence_task $scplayer {sequence} 47@
clear_sequence_task 47@

:POOL2_60767
mission_has_finished 
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 163@
goto_if_false @POOL2_60820
165@, 166@, 167@ = get_object_coordinates 163@
$heading = get_object_heading 163@

:POOL2_60820
$heading *= -1.0
42@ = cos $heading
43@ = sin $heading
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = get_debug_camera_point_at 
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_char_exist 211@
goto_if_false @POOL2_61474
if 
  not is_char_dead 211@
goto_if_false @POOL2_61474
165@, 166@, 167@ = get_char_coordinates 211@
$heading = get_char_heading 211@

:POOL2_61474
$heading *= -1.0
42@ = cos $heading
43@ = sin $heading
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CHAR = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = get_debug_camera_point_at 
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CHAR = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 

//-------------Mission 9---------------
// Originally: Lowrider (Bet And Dance)

:LOWR
script_name 'LOWR'
gosub @LOWR_47
if 
  has_deatharrest_been_executed 
goto_if_false @LOWR_38
gosub @LOWR_27222

:LOWR_38
gosub @LOWR_27226
terminate_this_script 

:LOWR_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:LOWR_145
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @LOWR_171
36@ = 1

:LOWR_171
39@ += 1
if 
  39@ > 22
goto_if_false @LOWR_203
39@ = 0

:LOWR_203
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 133@ += 42@
add_int_lvar_to_int_lvar 134@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
43@ = get_area_visible 
if 
  43@ == 0
goto_if_false @LOWR_319
add_int_lvar_to_int_var $cam_dist += 42@

:LOWR_319
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWR_466 {caseNum1} 0 {caseLabel1} @LOWR_382 {caseNum2} 1 {caseLabel2} @LOWR_396 {caseNum3} 2 {caseLabel3} @LOWR_403 {caseNum4} 3 {caseLabel4} @LOWR_410 {caseNum5} 4 {caseLabel5} @LOWR_424 {caseNum6} 5 {caseLabel6} @LOWR_438 {caseNum7} 6 {caseLabel7} @LOWR_452

:LOWR_382
gosub @LOWR_619
goto @LOWR_466

:LOWR_396
goto @LOWR_466

:LOWR_403
goto @LOWR_466

:LOWR_410
gosub @LOWR_915
goto @LOWR_466

:LOWR_424
gosub @LOWR_9455
goto @LOWR_466

:LOWR_438
gosub @LOWR_12531
goto @LOWR_466

:LOWR_452
gosub @LOWR_17573
goto @LOWR_466

:LOWR_466
gosub @LOWR_19728
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @LOWR_495
gosub @LOWR_26505

:LOWR_495
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @LOWR_517
gosub @LOWR_26607

:LOWR_517
if 
  38@ == 0
goto_if_false @LOWR_617
if 
  37@ == 0
goto_if_false @LOWR_601
if 
  36@ == 0
goto_if_false @LOWR_585
goto @LOWR_145
goto @LOWR_594

:LOWR_585
gosub @LOWR_27224
return 

:LOWR_594
goto @LOWR_610

:LOWR_601
gosub @LOWR_27222
return 

:LOWR_610
goto @LOWR_619

:LOWR_617
return 

:LOWR_619
if 
  35@ == -1
goto_if_false @LOWR_748
69@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
102@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
103@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:LOWR_748
271@ = 50
272@ = 1000
104@ = 0
43@ = 0

:LOWR_777
if 
  22 > 43@
goto_if_false @LOWR_820
105@(43@,22i) = 0
43@ += 1
goto @LOWR_777

:LOWR_820
127@ = 0
128@ = 0
129@ = 0
130@ = 0
132@ = 0
269@ = 0.01
if 
  35@ == -1
goto_if_false @LOWR_883

:LOWR_883
load_mission_text 'LOWR'
suppress_car_model 567
gosub @LOWR_27164
34@ = 3
return 

:LOWR_915
if 
  35@ == 0
goto_if_false @LOWR_2114
clear_area_of_chars 1721.1169 {leftBottomY} -1967.489 {leftBottomZ} 11.0 {rightTopX} 1904.391 {rightTopY} -1838.3149 {rightTopZ} 15.0
127@ = 0
128@ = 0
138@ = 1796.947
145@ = -1924.376
152@ = 13.2937
159@ = 60.9627
139@ = 1802.865
146@ = -1918.7419
153@ = 13.2965
160@ = 357.6195
140@ = 1788.9919
147@ = -1924.501
154@ = 13.2937
161@ = 305.5176
141@ = 1784.189
148@ = -1913.4399
155@ = 13.2957
162@ = 188.9639
142@ = 1790.964
149@ = -1913.8979
156@ = 13.2985
163@ = 266.2616
143@ = 1799.899
150@ = -1906.425
157@ = 13.3025
164@ = 184.4735
144@ = 1785.9399
151@ = -1904.839
158@ = 13.297
165@ = 152.5742
166@ = 1798.603
188@ = -1908.26
210@ = 12.4388
232@ = 102.3995
167@ = 1798.887
189@ = -1907.668
211@ = 12.4399
233@ = 174.1189
168@ = 1798.834
190@ = -1911.782
212@ = 12.4374
234@ = 158.2591
169@ = 1799.584
191@ = -1912.795
213@ = 12.4368
235@ = 74.6392
170@ = 1800.902
192@ = -1918.714
214@ = 12.4331
236@ = 256.6391
171@ = 1798.166
193@ = -1920.427
215@ = 12.4321
237@ = 19.6592
172@ = 1796.811
194@ = -1920.426
216@ = 12.4321
238@ = 331.8393
173@ = 1787.78
195@ = -1919.071
217@ = 12.4329
239@ = 331.8393
174@ = 1786.71
196@ = -1917.9821
218@ = 12.4332
240@ = 285.8198
175@ = 1786.194
197@ = -1907.356
219@ = 12.4327
241@ = 260.4003
176@ = 1786.8979
198@ = -1906.531
220@ = 12.4335
242@ = 141.9807
177@ = 1786.23
199@ = -1908.6219
221@ = 12.4328
243@ = 327.1608
178@ = 1789.188
200@ = -1919.665
222@ = 12.4325
244@ = 357.2196
179@ = 1788.103
201@ = -1907.949
223@ = 12.4352
245@ = 200.9411
180@ = 1797.9969
202@ = -1912.74
224@ = 12.4368
246@ = 312.2806
181@ = 1796.46
203@ = -1908.882
225@ = 12.4368
247@ = 312.2806
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:LOWR_1943
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @LOWR_1985
wait 0
goto @LOWR_1943

:LOWR_1985
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @LOWR_2017
wait 0
goto @LOWR_1985

:LOWR_2017
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWR_2051
wait 0
goto @LOWR_2017

:LOWR_2051
if 
  not does_blip_exist 102@
goto_if_false @LOWR_2087
102@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:LOWR_2087
switch_audio_zone 'LOWRIDE' {state} True
$cam_dist = 0
35@ += 1

:LOWR_2114
if 
  35@ == 1
goto_if_false @LOWR_9428
if 
  128@ == 0
goto_if_false @LOWR_3578
if 
  locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_3571
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
set_car_status 69@ {status} EntityStatus.Physics
set_car_status 73@ {status} EntityStatus.Physics
set_car_status 72@ {status} EntityStatus.Physics
set_car_hydraulics 69@ {state} True
set_car_hydraulics 73@ {state} True
set_car_hydraulics 72@ {state} True
set_car_only_damaged_by_player 69@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_only_damaged_by_player 72@ {state} True
43@ = 0

:LOWR_2482
if 
  7 > 43@
goto_if_false @LOWR_2571
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_2482

:LOWR_2571
wait 0
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
83@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
78@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
93@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
43@ = 0

:LOWR_3122
if 
  16 > 43@
goto_if_false @LOWR_3240
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_3226
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_3226
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)

:LOWR_3226
43@ += 1
goto @LOWR_3122

:LOWR_3240
wait 0
43@ = 0

:LOWR_3251
if 
  22 > 43@
goto_if_false @LOWR_3315
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_3301
set_char_decision_maker 77@(43@,22i) {handleOrTemplate} 67@

:LOWR_3301
43@ += 4
goto @LOWR_3251

:LOWR_3315
if 
  not is_char_dead 93@
goto_if_false @LOWR_3355
if 
  not is_car_dead 70@
goto_if_false @LOWR_3355
warp_char_into_car 93@ {vehicle} 70@

:LOWR_3355
if 
  not is_char_dead 94@
goto_if_false @LOWR_3395
if 
  not is_car_dead 71@
goto_if_false @LOWR_3395
warp_char_into_car 94@ {vehicle} 71@

:LOWR_3395
if 
  not is_char_dead 95@
goto_if_false @LOWR_3435
if 
  not is_car_dead 73@
goto_if_false @LOWR_3435
warp_char_into_car 95@ {vehicle} 73@

:LOWR_3435
if 
  not is_char_dead 96@
goto_if_false @LOWR_3475
if 
  not is_car_dead 69@
goto_if_false @LOWR_3475
warp_char_into_car 96@ {vehicle} 69@

:LOWR_3475
if 
  not is_char_dead 97@
goto_if_false @LOWR_3515
if 
  not is_car_dead 72@
goto_if_false @LOWR_3515
warp_char_into_car 97@ {vehicle} 72@

:LOWR_3515
if 
  not is_char_dead 98@
goto_if_false @LOWR_3557
if 
  not is_car_dead 71@
goto_if_false @LOWR_3557
warp_char_into_car_as_passenger 98@ {handle} 71@ {seat} SeatId.BikeRear

:LOWR_3557
128@ = 1
$lowrider_meeting_is_loaded = 1

:LOWR_3571
goto @LOWR_3719

:LOWR_3578
if 
  not locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_3719
43@ = 0

:LOWR_3623
if 
  7 > 43@
goto_if_false @LOWR_3664
delete_car 69@(43@,7i)
43@ += 1
goto @LOWR_3623

:LOWR_3664
43@ = 0

:LOWR_3671
if 
  22 > 43@
goto_if_false @LOWR_3712
delete_char 77@(43@,22i)
43@ += 1
goto @LOWR_3671

:LOWR_3712
128@ = 0

:LOWR_3719
if 
  128@ == 1
goto_if_false @LOWR_8968
if 
  127@ == 0
goto_if_false @LOWR_8682
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_7962 {caseNum1} 0 {caseLabel1} @LOWR_3948 {caseNum2} 1 {caseLabel2} @LOWR_4324 {caseNum3} 2 {caseLabel3} @LOWR_4700 {caseNum4} 3 {caseLabel4} @LOWR_4850 {caseNum5} 4 {caseLabel5} @LOWR_5000 {caseNum6} 5 {caseLabel6} @LOWR_5115 {caseNum7} 6 {caseLabel7} @LOWR_5265
switch_continued 7 {caseLabel1} @LOWR_5415 {caseNum2} 8 {caseLabel2} @LOWR_5531 {caseNum3} 9 {caseLabel3} @LOWR_5647 {caseNum4} 10 {caseLabel4} @LOWR_6023 {caseNum5} 11 {caseLabel5} @LOWR_6206 {caseNum6} 12 {caseLabel6} @LOWR_6322 {caseNum7} 13 {caseLabel7} @LOWR_6438 {caseNum8} 14 {caseLabel8} @LOWR_6745 {caseNum9} 15 {caseLabel9} @LOWR_7070
switch_continued 16 {caseLabel1} @LOWR_7354 {caseNum2} 17 {caseLabel2} @LOWR_7463 {caseNum3} 18 {caseLabel3} @LOWR_7572 {caseNum4} 19 {caseLabel4} @LOWR_7779 {caseNum5} 20 {caseLabel5} @LOWR_7955 {caseNum6} -1 {caseLabel6} @LOWR_7962 {caseNum7} -1 {caseLabel7} @LOWR_7962 {caseNum8} -1 {caseLabel8} @LOWR_7962 {caseNum9} -1 {caseLabel9} @LOWR_7962

:LOWR_3948
if 
  not is_char_dead 77@
goto_if_false @LOWR_4317
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4222
49@ = open_sequence_task 
if 
  not is_car_dead 74@
goto_if_false @LOWR_4156
if 
  locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4108
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_4149

:LOWR_4108
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4149
goto @LOWR_4197

:LOWR_4156
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4197
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_4317

:LOWR_4222
if 
  is_char_playing_anim 77@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @LOWR_4317
if 
  not is_car_dead 74@
goto_if_false @LOWR_4317
if 
  not locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4317
clear_char_tasks 77@

:LOWR_4317
goto @LOWR_7962

:LOWR_4324
if 
  not is_char_dead 78@
goto_if_false @LOWR_4693
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4598
49@ = open_sequence_task 
if 
  not is_car_dead 74@
goto_if_false @LOWR_4532
if 
  locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4484
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_4525

:LOWR_4484
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4525
goto @LOWR_4573

:LOWR_4532
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4573
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_4693

:LOWR_4598
if 
  is_char_playing_anim 78@ {animationName} "F_SMKLEAN_LOOP"
goto_if_false @LOWR_4693
if 
  not is_car_dead 74@
goto_if_false @LOWR_4693
if 
  not locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4693
clear_char_tasks 78@

:LOWR_4693
goto @LOWR_7962

:LOWR_4700
if 
  not is_char_dead 79@
goto_if_false @LOWR_4843
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4843
49@ = open_sequence_task 
if 
  not is_char_dead 80@
goto_if_false @LOWR_4784
task_chat_with_char -1 {other} 80@ {leadSpeaker} True {_p4} 1
goto @LOWR_4825

:LOWR_4784
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4825
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_4843
goto @LOWR_7962

:LOWR_4850
if 
  not is_char_dead 80@
goto_if_false @LOWR_4993
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4993
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @LOWR_4934
task_chat_with_char -1 {other} 79@ {leadSpeaker} False {_p4} 1
goto @LOWR_4975

:LOWR_4934
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4975
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_4993
goto @LOWR_7962

:LOWR_5000
if 
  not is_char_dead 81@
goto_if_false @LOWR_5108
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5108
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5108
goto @LOWR_7962

:LOWR_5115
if 
  not is_char_dead 82@
goto_if_false @LOWR_5258
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5258
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @LOWR_5199
task_chat_with_char -1 {other} 83@ {leadSpeaker} False {_p4} 1
goto @LOWR_5240

:LOWR_5199
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5240
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5258
goto @LOWR_7962

:LOWR_5265
if 
  not is_char_dead 83@
goto_if_false @LOWR_5408
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5408
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @LOWR_5349
task_chat_with_char -1 {other} 82@ {leadSpeaker} True {_p4} 1
goto @LOWR_5390

:LOWR_5349
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5390
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5408
goto @LOWR_7962

:LOWR_5415
if 
  not is_char_dead 84@
goto_if_false @LOWR_5524
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5524
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5524
goto @LOWR_7962

:LOWR_5531
if 
  not is_char_dead 85@
goto_if_false @LOWR_5640
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5640
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5640
goto @LOWR_7962

:LOWR_5647
if 
  not is_char_dead 86@
goto_if_false @LOWR_6016
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5921
49@ = open_sequence_task 
if 
  not is_car_dead 75@
goto_if_false @LOWR_5855
if 
  locate_car_3d 75@ {x} 144@ {y} 151@ {z} 158@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_5807
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_5848

:LOWR_5807
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5848
goto @LOWR_5896

:LOWR_5855
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5896
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_6016

:LOWR_5921
if 
  is_char_playing_anim 86@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @LOWR_6016
if 
  not is_car_dead 75@
goto_if_false @LOWR_6016
if 
  not locate_car_3d 75@ {x} 144@ {y} 151@ {z} 158@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_6016
clear_char_tasks 86@

:LOWR_6016
goto @LOWR_7962

:LOWR_6023
if 
  not is_char_dead 87@
goto_if_false @LOWR_6199
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6199
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6199
goto @LOWR_7962

:LOWR_6206
if 
  not is_char_dead 88@
goto_if_false @LOWR_6315
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6315
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6315
goto @LOWR_7962

:LOWR_6322
if 
  not is_char_dead 89@
goto_if_false @LOWR_6431
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6431
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6431
goto @LOWR_7962

:LOWR_6438
if 
  not is_char_dead 90@
goto_if_false @LOWR_6738
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6738
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.179 {y} -1919.465 {z} 12.3928 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 179@ {y} 201@ {z} 223@ {speed} MoveState.Walk {time} 60000
if 
  not is_char_dead 86@
goto_if_false @LOWR_6679
task_turn_char_to_face_char -1 {target} 86@

:LOWR_6679
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6738
goto @LOWR_7962

:LOWR_6745
if 
  not is_char_dead 91@
goto_if_false @LOWR_7063
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7063
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1800.3669 {y} -1917.394 {z} 12.3938 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1789.057 {y} -1917.901 {z} 12.3936 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1788.526 {y} -1907.2939 {z} 12.3955 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.478 {y} -1908.174 {z} 12.3983 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7063
goto @LOWR_7962

:LOWR_7070
if 
  not is_char_dead 92@
goto_if_false @LOWR_7347
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7347
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1917.1071 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 181@ {y} 203@ {z} 225@ {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7347
goto @LOWR_7962

:LOWR_7354
if 
  not is_char_dead 93@
goto_if_false @LOWR_7456
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7456
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7456
goto @LOWR_7962

:LOWR_7463
if 
  not is_char_dead 94@
goto_if_false @LOWR_7565
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7565
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7565
goto @LOWR_7962

:LOWR_7572
43@ = 0

:LOWR_7579
if 
  7 > 43@
goto_if_false @LOWR_7772
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_7758
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_7728
if 
  has_car_been_damaged_by_char 69@(43@,7i) {handle} $scplayer
goto_if_false @LOWR_7721
44@ = get_car_health 69@(43@,7i)
if 
  950 > 44@
goto_if_false @LOWR_7721
print_now 'LOW_32' {time} 5000 {flag} 1
127@ = 1
43@ = 7

:LOWR_7721
goto @LOWR_7758

:LOWR_7728
print_now 'LOW_32' {time} 5000 {flag} 1
127@ = 1
43@ = 7

:LOWR_7758
43@ += 1
goto @LOWR_7579

:LOWR_7772
goto @LOWR_7962

:LOWR_7779
43@ = 0

:LOWR_7786
if 
  22 > 43@
goto_if_false @LOWR_7948
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_7934
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_7904
if 
  has_char_been_damaged_by_char 77@(43@,22i) {handle} $scplayer
goto_if_false @LOWR_7897
print_now 'LOW_04' {time} 5000 {flag} 1
127@ = 1
43@ = 22

:LOWR_7897
goto @LOWR_7934

:LOWR_7904
print_now 'LOW_04' {time} 5000 {flag} 1
127@ = 1
43@ = 22

:LOWR_7934
43@ += 1
goto @LOWR_7786

:LOWR_7948
goto @LOWR_7962

:LOWR_7955
goto @LOWR_7962

:LOWR_7962
if 
  300 > 133@
goto_if_false @LOWR_8028
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_8101

:LOWR_8028
if 
  133@ > 500
goto_if_false @LOWR_8061
133@ = 0
goto @LOWR_8101

:LOWR_8061
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_8101
if 
  134@ > 2000
goto_if_false @LOWR_8175
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20072
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_8175
if 
  135@ > 300
goto_if_false @LOWR_8249
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20072
set_lvar_float_to_lvar_float 256@ = 281@
set_lvar_float_to_lvar_float 259@ = 279@
set_lvar_float_to_lvar_float 262@ = 282@
set_lvar_float_to_lvar_float 265@ = 280@
135@ = 0

:LOWR_8249
if 
  not is_car_dead 69@
goto_if_false @LOWR_8391
if 
  does_car_have_hydraulics 69@
goto_if_false @LOWR_8391
control_car_hydraulics 69@ {_p2} 257@ {_p3} 263@ {_p4} 254@ {_p5} 260@
$x, $y, $z = get_car_coordinates 69@
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 69@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8391
if 
  not is_car_dead 72@
goto_if_false @LOWR_8533
if 
  does_car_have_hydraulics 72@
goto_if_false @LOWR_8533
control_car_hydraulics 72@ {_p2} 258@ {_p3} 264@ {_p4} 255@ {_p5} 261@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8533
if 
  not is_car_dead 73@
goto_if_false @LOWR_8675
if 
  does_car_have_hydraulics 73@
goto_if_false @LOWR_8675
control_car_hydraulics 73@ {_p2} 259@ {_p3} 265@ {_p4} 256@ {_p5} 262@
$x, $y, $z = get_car_coordinates 73@
set_lvar_float_to_lvar_float 50@ = 142@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 73@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8675
goto @LOWR_8968

:LOWR_8682
if 
  127@ == 1
goto_if_false @LOWR_8968
43@ = 0

:LOWR_8707
if 
  12 > 43@
goto_if_false @LOWR_8768
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_8754
clear_char_tasks_immediately 77@(43@,22i)

:LOWR_8754
43@ += 1
goto @LOWR_8707

:LOWR_8768
if 
  37@ <> 1
goto_if_false @LOWR_8858
43@ = 0

:LOWR_8793
if 
  22 > 43@
goto_if_false @LOWR_8858
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_8844
set_char_relationship 77@(43@,22i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:LOWR_8844
43@ += 1
goto @LOWR_8793

:LOWR_8858
43@ = 0

:LOWR_8865
if 
  22 > 43@
goto_if_false @LOWR_8906
mark_char_as_no_longer_needed 77@(43@,22i)
43@ += 1
goto @LOWR_8865

:LOWR_8906
43@ = 0

:LOWR_8913
if 
  7 > 43@
goto_if_false @LOWR_8954
mark_car_as_no_longer_needed 69@(43@,7i)
43@ += 1
goto @LOWR_8913

:LOWR_8954
37@ = 1
127@ += 1

:LOWR_8968
if 
  $cam_dist > 120000
goto_if_false @LOWR_9019
print_now 'LOW_35' {time} 5000 {flag} 1
37@ = 1
goto @LOWR_9428

:LOWR_9019
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @LOWR_9066
print_now 'LOW_35' {time} 5000 {flag} 1
37@ = 1
goto @LOWR_9428

:LOWR_9066
if 
  locate_char_in_car_3d $scplayer {x} 1793.068 {y} -1904.254 {z} 12.3989 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LOWR_9403
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_low_rider $car
goto_if_false @LOWR_9355
if 
  does_car_have_hydraulics $car
goto_if_false @LOWR_9307
43@ = store_score $player1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 271@
goto_if_false @LOWR_9256
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
35@ = 99
set_player_control $player1 {state} False
68@ = store_car_char_is_in $scplayer
do_fade 500 {direction} Fade.Out

:LOWR_9225
if 
  get_fading_status 
goto_if_false @LOWR_9249
wait 0
goto @LOWR_9225

:LOWR_9249
goto @LOWR_9300

:LOWR_9256
if 
  62@ == 0
goto_if_false @LOWR_9300
print_with_number_now 'LOW_38' {num} 271@ {duration} 5000 {flag} 1
62@ += 1

:LOWR_9300
goto @LOWR_9348

:LOWR_9307
if 
  62@ == 0
goto_if_false @LOWR_9348
print_now 'LOW_36' {time} 5000 {flag} 1
62@ += 1

:LOWR_9348
goto @LOWR_9396

:LOWR_9355
if 
  62@ == 0
goto_if_false @LOWR_9396
print_now 'LOW_36' {time} 5000 {flag} 1
62@ += 1

:LOWR_9396
goto @LOWR_9428

:LOWR_9403
if 
  62@ <> 0
goto_if_false @LOWR_9428
62@ = 0

:LOWR_9428
if 
  35@ == 99
goto_if_false @LOWR_9453
gosub @LOWR_27164

:LOWR_9453
return 

:LOWR_9455
if 
  35@ == 0
goto_if_false @LOWR_10048
do_fade 500 {direction} Fade.Out

:LOWR_9480
if 
  get_fading_status 
goto_if_false @LOWR_9504
wait 0
goto @LOWR_9480

:LOWR_9504
if 
  not is_car_dead 68@
goto_if_false @LOWR_9525
reset_vehicle_hydraulics 68@

:LOWR_9525
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1793.068 {y} -1904.254 {z} 12.3989 {radius} 30.0 {clearParticles} True
if 
  does_blip_exist 102@
goto_if_false @LOWR_9584
remove_blip 102@

:LOWR_9584
if 
  not is_car_dead 68@
goto_if_false @LOWR_9630
set_car_coordinates 68@ {x} 1793.068 {y} -1904.254 {z} 12.3989
set_car_heading 68@ {heading} 171.6728

:LOWR_9630
43@ = 0

:LOWR_9637
if 
  16 > 43@
goto_if_false @LOWR_9698
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9684
clear_char_tasks_immediately 77@(43@,22i)

:LOWR_9684
43@ += 1
goto @LOWR_9637

:LOWR_9698
43@ = 0

:LOWR_9705
if 
  22 > 43@
goto_if_false @LOWR_9769
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9755
set_char_decision_maker 77@(43@,22i) {handleOrTemplate} 66@

:LOWR_9755
43@ += 1
goto @LOWR_9705

:LOWR_9769
43@ = 0

:LOWR_9776
if 
  16 > 43@
goto_if_false @LOWR_9874
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9860
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)

:LOWR_9860
43@ += 1
goto @LOWR_9776

:LOWR_9874
43@ = 0

:LOWR_9881
if 
  7 > 43@
goto_if_false @LOWR_9979
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_9965
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)

:LOWR_9965
43@ += 1
goto @LOWR_9881

:LOWR_9979
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1796.749 {y} -1916.9611 {z} 13.8583 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1796.125 {y} -1916.181 {z} 13.807 {switchStyle} SwitchType.JumpCut
35@ += 1

:LOWR_10048
if 
  35@ == 1
goto_if_false @LOWR_10073
35@ += 1

:LOWR_10073
if 
  35@ == 2
goto_if_false @LOWR_10231
if 
  not is_char_dead 95@
goto_if_false @LOWR_10231
clear_char_tasks_immediately 95@
set_char_coordinates 95@ {x} 1792.631 {y} -1909.274 {z} 12.4371
set_char_heading 95@ {heading} 331.0204
set_fixed_camera_position 1793.816 {y} -1910.713 {z} 14.0346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.453 {y} -1909.801 {z} 13.8451 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:LOWR_10200
if 
  get_fading_status 
goto_if_false @LOWR_10224
wait 0
goto @LOWR_10200

:LOWR_10224
35@ += 1

:LOWR_10231
if 
  35@ == 3
goto_if_false @LOWR_10698
if 
  not is_char_dead 95@
goto_if_false @LOWR_10698
49@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@
43@ = generate_random_int_in_range 0 {max} 3
switch_start 43@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @LOWR_10684 {caseNum1} 0 {caseLabel1} @LOWR_10540 {caseNum2} 1 {caseLabel2} @LOWR_10588 {caseNum3} 2 {caseLabel3} @LOWR_10636 {caseNum4} -1 {caseLabel4} @LOWR_10684 {caseNum5} -1 {caseLabel5} @LOWR_10684 {caseNum6} -1 {caseLabel6} @LOWR_10684 {caseNum7} -1 {caseLabel7} @LOWR_10684

:LOWR_10540
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 9208
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10588
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 9209
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10636
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 9210
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10684
TIMERA = 0
35@ += 1

:LOWR_10698
if 
  35@ == 4
goto_if_false @LOWR_10812
if 
  TIMERA > 1000
goto_if_false @LOWR_10812
if or
  $audio_line_is_active == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_10812
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
35@ += 1
131@ = 1
if 
  not is_char_dead 95@
goto_if_false @LOWR_10812
clear_char_tasks 95@

:LOWR_10812
if 
  35@ == 5
goto_if_false @LOWR_10944
clear_prints 
switch_widescreen False
set_fixed_camera_position 1793.485 {y} -1907.354 {z} 13.4436 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.129 {y} -1908.2889 {z} 13.4481 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 273@ = 271@
set_lvar_int_to_lvar_int 43@ = 273@
43@ *= -1
add_score $player1 {money} 43@
print_help_forever 'LOW_37'
use_text_commands True
wait 1
35@ += 1

:LOWR_10944
if 
  35@ == 6
goto_if_false @LOWR_12323
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @LOWR_11388
if and
  274@ <> 1
  274@ <> -1
goto_if_false @LOWR_11337
if 
  273@ >= 10000
goto_if_false @LOWR_11038
270@ = 1000
goto @LOWR_11142

:LOWR_11038
if 
  273@ >= 1000
goto_if_false @LOWR_11071
270@ = 100
goto @LOWR_11142

:LOWR_11071
if 
  273@ >= 100
goto_if_false @LOWR_11103
270@ = 10
goto @LOWR_11142

:LOWR_11103
if 
  273@ == 0
goto_if_false @LOWR_11135
270@ = 2
goto @LOWR_11142

:LOWR_11135
270@ = 1

:LOWR_11142
43@ = store_score $player1
if 
  is_int_lvar_greater_than_int_lvar 270@ > 43@
goto_if_false @LOWR_11177
set_lvar_int_to_lvar_int 270@ = 43@

:LOWR_11177
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 43@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 272@
goto_if_false @LOWR_11228
set_lvar_int_to_lvar_int 270@ = 272@
sub_int_lvar_from_int_lvar 270@ -= 273@

:LOWR_11228
if 
  0 > 270@
goto_if_false @LOWR_11253
270@ *= -1

:LOWR_11253
add_int_lvar_to_int_lvar 273@ += 270@
add_int_lvar_to_int_lvar 275@ += 270@
270@ *= -1
add_score $player1 {money} 270@
274@ += 1
if 
  274@ > 1
goto_if_false @LOWR_11323
274@ = 2
goto @LOWR_11330

:LOWR_11323
TIMERA = 0

:LOWR_11330
goto @LOWR_11381

:LOWR_11337
if 
  274@ == 1
goto_if_false @LOWR_11381
if 
  TIMERA > 500
goto_if_false @LOWR_11381
274@ = 2

:LOWR_11381
goto @LOWR_11779

:LOWR_11388
if 
  274@ <> 0
goto_if_false @LOWR_11413
274@ = 0

:LOWR_11413
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @LOWR_11754
if 
  276@ <> 1
goto_if_false @LOWR_11721
if 
  273@ > 10000
goto_if_false @LOWR_11482
270@ = -1000
goto @LOWR_11554

:LOWR_11482
if 
  273@ > 1000
goto_if_false @LOWR_11515
270@ = -100
goto @LOWR_11554

:LOWR_11515
if 
  273@ > 100
goto_if_false @LOWR_11547
270@ = -10
goto @LOWR_11554

:LOWR_11547
270@ = -1

:LOWR_11554
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 273@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11611
273@ = 0
set_lvar_int_to_lvar_int 270@ = 43@
270@ *= -1

:LOWR_11611
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11645
set_lvar_int_to_lvar_int 273@ = 271@
goto @LOWR_11668

:LOWR_11645
270@ *= -1
sub_int_lvar_from_int_lvar 275@ -= 270@
add_score $player1 {money} 270@

:LOWR_11668
276@ += 1
if 
  276@ > 1
goto_if_false @LOWR_11707
276@ = 2
goto @LOWR_11714

:LOWR_11707
TIMERA = 0

:LOWR_11714
goto @LOWR_11747

:LOWR_11721
if 
  TIMERA > 500
goto_if_false @LOWR_11747
276@ = 2

:LOWR_11747
goto @LOWR_11779

:LOWR_11754
if 
  276@ <> 0
goto_if_false @LOWR_11779
276@ = 0

:LOWR_11779
gosub @LOWR_26709
if 
  131@ == 0
goto_if_false @LOWR_11855
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_11848
cset_lvar_float_to_lvar_int 46@ =# 273@
46@ *= 0.1
clear_help 
35@ += 1

:LOWR_11848
goto @LOWR_11879

:LOWR_11855
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_11879
131@ = 0

:LOWR_11879
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LOWR_12323
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  does_vehicle_exist 70@
goto_if_false @LOWR_11932
delete_car 70@

:LOWR_11932
if 
  does_vehicle_exist 73@
goto_if_false @LOWR_11953
delete_car 73@

:LOWR_11953
if 
  does_vehicle_exist 71@
goto_if_false @LOWR_11974
delete_car 71@

:LOWR_11974
if 
  does_vehicle_exist 74@
goto_if_false @LOWR_11995
delete_car 74@

:LOWR_11995
if 
  does_vehicle_exist 72@
goto_if_false @LOWR_12016
delete_car 72@

:LOWR_12016
if 
  does_char_exist 78@
goto_if_false @LOWR_12037
delete_char 78@

:LOWR_12037
if 
  does_char_exist 80@
goto_if_false @LOWR_12058
delete_char 80@

:LOWR_12058
if 
  does_char_exist 93@
goto_if_false @LOWR_12079
delete_char 93@

:LOWR_12079
if 
  does_char_exist 83@
goto_if_false @LOWR_12100
delete_char 83@

:LOWR_12100
if 
  does_char_exist 84@
goto_if_false @LOWR_12121
delete_char 84@

:LOWR_12121
if 
  does_char_exist 86@
goto_if_false @LOWR_12142
delete_char 86@

:LOWR_12142
if 
  does_char_exist 87@
goto_if_false @LOWR_12163
delete_char 87@

:LOWR_12163
if 
  does_char_exist 89@
goto_if_false @LOWR_12184
delete_char 89@

:LOWR_12184
if 
  does_char_exist 97@
goto_if_false @LOWR_12205
delete_char 97@

:LOWR_12205
if 
  does_char_exist 90@
goto_if_false @LOWR_12226
delete_char 90@

:LOWR_12226
if 
  not is_char_dead 99@
goto_if_false @LOWR_12285
if 
  not is_car_dead 68@
goto_if_false @LOWR_12285
if 
  is_char_in_car 99@ {vehicle} 68@
goto_if_false @LOWR_12285
task_leave_car 99@ {vehicle} 68@

:LOWR_12285
do_fade 500 {direction} Fade.In

:LOWR_12292
if 
  get_fading_status 
goto_if_false @LOWR_12316
wait 0
goto @LOWR_12292

:LOWR_12316
37@ = 1

:LOWR_12323
if 
  35@ == 7
goto_if_false @LOWR_12352
use_text_commands False
35@ += 1

:LOWR_12352
if 
  35@ == 8
goto_if_false @LOWR_12377
35@ += 1

:LOWR_12377
if 
  35@ == 9
goto_if_false @LOWR_12402
35@ += 1

:LOWR_12402
if 
  35@ == 10
goto_if_false @LOWR_12479
if 
  TIMERA > 2000
goto_if_false @LOWR_12479
clear_prints 
do_fade 500 {direction} Fade.Out

:LOWR_12448
if 
  get_fading_status 
goto_if_false @LOWR_12472
wait 0
goto @LOWR_12448

:LOWR_12472
35@ = 99

:LOWR_12479
if 
  37@ <> 1
goto_if_false @LOWR_12504
gosub @LOWR_21002

:LOWR_12504
if 
  35@ == 99
goto_if_false @LOWR_12529
gosub @LOWR_27164

:LOWR_12529
return 

:LOWR_12531
if 
  35@ == 0
goto_if_false @LOWR_12637
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 1788.1071 {y} -1903.804 {z} 13.3553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1788.944 {y} -1904.343 {z} 13.2601 {switchStyle} SwitchType.JumpCut
load_scene 1788.944 {y} -1904.343 {z} 13.2601
35@ += 1

:LOWR_12637
if 
  35@ == 1
goto_if_false @LOWR_15458
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:LOWR_12699
if 
  not has_model_loaded 114
goto_if_false @LOWR_12725
wait 0
goto @LOWR_12699

:LOWR_12725
if 
  not has_model_loaded 115
goto_if_false @LOWR_12751
wait 0
goto @LOWR_12725

:LOWR_12751
if 
  not has_model_loaded 116
goto_if_false @LOWR_12777
wait 0
goto @LOWR_12751

:LOWR_12777
if 
  not has_model_loaded 63
goto_if_false @LOWR_12803
wait 0
goto @LOWR_12777

:LOWR_12803
if 
  not has_model_loaded 41
goto_if_false @LOWR_12829
wait 0
goto @LOWR_12803

:LOWR_12829
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @LOWR_12861
wait 0
goto @LOWR_12829

:LOWR_12861
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWR_12895
wait 0
goto @LOWR_12861

:LOWR_12895
138@ = 1798.203
145@ = -1926.222
152@ = 12.3895
159@ = 73.1404
139@ = 1802.864
146@ = -1918.741
153@ = 12.3931
160@ = 357.6193
140@ = 1784.635
147@ = -1924.968
154@ = 12.3901
161@ = 305.062
141@ = 1784.188
148@ = -1913.439
155@ = 12.3923
162@ = 183.5814
142@ = 1792.318
149@ = -1919.5129
156@ = 12.3928
163@ = 8.2504
143@ = 1801.462
150@ = -1905.691
157@ = 12.3995
164@ = 189.9314
144@ = 1787.642
151@ = -1901.136
158@ = 12.3949
165@ = 145.4181
166@ = 1800.0
188@ = -1907.83
210@ = 12.4398
232@ = 73.7198
167@ = 1799.8459
189@ = -1912.124
211@ = 12.4582
233@ = 48.2386
168@ = 1800.0861
190@ = -1910.434
212@ = 12.4372
234@ = 83.7398
169@ = 1801.321
191@ = -1916.427
213@ = 12.4343
235@ = 83.7398
170@ = 1798.541
192@ = -1922.1801
214@ = 12.431
236@ = 46.5794
171@ = 1799.49
193@ = -1920.6169
215@ = 12.4322
237@ = 46.5794
172@ = 1787.255
194@ = -1926.597
216@ = 12.4283
238@ = 323.6194
173@ = 1786.442
195@ = -1920.201
217@ = 12.4322
239@ = 306.1995
174@ = 1785.824
196@ = -1919.162
218@ = 12.4324
240@ = 294.6196
175@ = 1786.1021
197@ = -1913.833
219@ = 12.4327
241@ = 280.7204
176@ = 1786.806
198@ = -1905.246
220@ = 12.4342
242@ = 262.8214
177@ = 1788.693
199@ = -1902.139
221@ = 12.4348
243@ = 247.161
178@ = 1794.616
200@ = -1899.608
222@ = 12.4398
244@ = 191.0618
179@ = 1799.135
201@ = -1902.488
223@ = 12.4431
245@ = 157.4622
180@ = 1795.674
202@ = -1899.569
224@ = 12.4407
246@ = 162.6424
181@ = 1800.369
203@ = -1907.0031
225@ = 12.4403
247@ = 77.6197
182@ = 1800.826
204@ = -1917.325
226@ = 12.434
248@ = 36.1793
183@ = 1785.85
205@ = -1917.955
227@ = 12.4324
249@ = 287.0602
184@ = 1788.538
206@ = -1927.0909
228@ = 12.428
250@ = 345.1206
185@ = 1787.323
207@ = -1904.11
229@ = 12.4337
251@ = 263.3813
186@ = 1798.39
208@ = -1901.733
230@ = 12.4429
252@ = 142.4208
$lowrider_level = -1
$lowrider_last_level = -1
269@ = 0.01
43@ = 0

:LOWR_14046
if 
  7 > 43@
goto_if_false @LOWR_14107
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_14093
delete_car 69@(43@,7i)

:LOWR_14093
43@ += 1
goto @LOWR_14046

:LOWR_14107
43@ = 0

:LOWR_14114
if 
  22 > 43@
goto_if_false @LOWR_14175
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_14161
delete_char 77@(43@,22i)

:LOWR_14161
43@ += 1
goto @LOWR_14114

:LOWR_14175
if 
  not does_vehicle_exist 68@
goto_if_false @LOWR_14236
68@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231
reset_vehicle_hydraulics 68@
goto @LOWR_14282

:LOWR_14236
if 
  not is_car_dead 68@
goto_if_false @LOWR_14282
set_car_coordinates 68@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231

:LOWR_14282
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 68@
goto_if_false @LOWR_14354
warp_char_into_car $scplayer {vehicle} 68@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:LOWR_14354
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
43@ = 0

:LOWR_14585
if 
  7 > 43@
goto_if_false @LOWR_14685
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
freeze_car_position 69@(43@,7i) {state} True
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_14585

:LOWR_14685
freeze_car_position 73@ {state} False
set_car_status 73@ {status} EntityStatus.Physics
set_car_hydraulics 73@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char_inside_car 73@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:LOWR_15251
if 
  21 > 43@
goto_if_false @LOWR_15329
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)
43@ += 1
goto @LOWR_15251

:LOWR_15329
99@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 99@ {heading} 232.5412
if 
  $lowr_timer == 0
goto_if_false @LOWR_15399
preload_beat_track 13
$lowr_timer += 1
goto @LOWR_15410

:LOWR_15399
preload_beat_track 0
$lowr_timer = 0

:LOWR_15410
43@ = 0

:LOWR_15417
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @LOWR_15451
wait 0
43@ = get_beat_track_status 
goto @LOWR_15417

:LOWR_15451
35@ += 1

:LOWR_15458
if 
  35@ == 2
goto_if_false @LOWR_15582
if 
  is_char_in_any_car $scplayer
goto_if_false @LOWR_15582
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @LOWR_15549
if 
  not is_car_passenger_seat_free $car {seat} SeatId.BikeRear
goto_if_false @LOWR_15549
277@ = get_char_in_car_passenger_seat $car {seat} SeatId.BikeRear
delete_char 277@

:LOWR_15549
if 
  not is_char_dead 99@
goto_if_false @LOWR_15582
warp_char_into_car_as_passenger 99@ {handle} $car {seat} SeatId.BikeRear
35@ += 1

:LOWR_15582
if 
  35@ == 3
goto_if_false @LOWR_16153
switch_widescreen False
set_fixed_camera_position 1788.516 {y} -1910.318 {z} 14.8901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1789.355 {y} -1909.843 {z} 14.6269 {switchStyle} SwitchType.JumpCut
display_radar False
display_hud False
if 
  not is_car_dead 68@
goto_if_false @LOWR_15708
lock_car_doors 68@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 68@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LOWR_15708
266@ = 0.62
267@ = 0.31
268@ = -0.167
if 
  not is_car_dead 68@
goto_if_false @LOWR_15820
if 
  not is_char_dead 99@
goto_if_false @LOWR_15820
if 
  is_car_model 68@ {modelId} 567
goto_if_false @LOWR_15820
clear_char_tasks_immediately 99@
attach_char_to_car 99@ {vehicle} 68@ {xOffset} 266@ {yOffset} 267@ {zOffset} 268@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:LOWR_15820
49@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
if 
  not is_char_dead 99@
goto_if_false @LOWR_15955
if 
  is_char_attached_to_any_car 99@
goto_if_false @LOWR_15955
perform_sequence_task 99@ {sequence} 49@

:LOWR_15955
clear_sequence_task 49@
TIMERA = 0
$lowrider_level = -1
$lowrider_last_level = -1
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16006
$lowrider_opposition_skill = 1

:LOWR_16006
cset_lvar_float_to_lvar_int 46@ =# 273@
cset_lvar_float_to_lvar_int 47@ =# 272@
div_float_lvar_by_float_lvar 46@ /= 47@
46@ *= 4.0
cset_lvar_int_to_lvar_float 43@ =# 46@
add_int_lvar_to_int_var $lowrider_opposition_skill += 43@
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWR_16081
$lowrider_opposition_skill = 5

:LOWR_16081
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16106
$lowrider_opposition_skill = 1

:LOWR_16106
wait 500
do_fade 500 {direction} Fade.In

:LOWR_16118
if 
  get_fading_status 
goto_if_false @LOWR_16142
wait 0
goto @LOWR_16118

:LOWR_16142
clear_prints 
play_beat_track 
35@ += 1

:LOWR_16153
if 
  35@ == 4
goto_if_false @LOWR_16267
set_player_control $player1 {state} True
start_new_script @BDISPLY 
start_new_script @LOWGAME 68@ 73@ 99@ 
TIMERA = 0
136@ = 0
130@ = 0
clear_prints 
clear_help 
print_help 'LOW_26'
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:LOWR_16267
if 
  35@ == 5
goto_if_false @LOWR_16310
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_16310
35@ += 1

:LOWR_16310
if 
  35@ == 6
goto_if_false @LOWR_17476
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_17469
if 
  132@ == 0
goto_if_false @LOWR_16787
if or
  136@ > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @LOWR_16780
130@ += 1
if 
  130@ >= 5
goto_if_false @LOWR_16421
130@ = 0

:LOWR_16421
if 
  not is_car_dead 68@
goto_if_false @LOWR_16451
$x, $y, $z = get_car_coordinates 68@

:LOWR_16451
if 
  130@ == 0
goto_if_false @LOWR_16514
set_fixed_camera_position 1803.978 {y} -1909.369 {z} 15.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16514
if 
  130@ == 1
goto_if_false @LOWR_16577
set_fixed_camera_position 1795.369 {y} -1900.999 {z} 14.1795 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16577
if 
  130@ == 2
goto_if_false @LOWR_16640
set_fixed_camera_position 1788.793 {y} -1902.99 {z} 13.7203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16640
if 
  130@ == 3
goto_if_false @LOWR_16703
set_fixed_camera_position 1789.377 {y} -1912.1949 {z} 14.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16703
if 
  130@ == 4
goto_if_false @LOWR_16766
set_fixed_camera_position 1796.4091 {y} -1912.231 {z} 13.8316 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16766
132@ += 1
136@ = 0

:LOWR_16780
goto @LOWR_16811

:LOWR_16787
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @LOWR_16811
132@ = 0

:LOWR_16811
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @LOWR_17462
$x, $y, $z = get_active_camera_coordinates 
if 
  not is_car_dead 68@
goto_if_false @LOWR_16875
56@, 57@, 58@ = get_car_coordinates 68@
$heading = get_car_heading 68@

:LOWR_16875
$heading *= -1.0
46@ = cos $heading
47@ = sin $heading
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = get_active_camera_point_at 
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:LOWR_17462
goto @LOWR_17476

:LOWR_17469
35@ += 1

:LOWR_17476
if 
  35@ == 7
goto_if_false @LOWR_17539
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:LOWR_17508
if 
  get_fading_status 
goto_if_false @LOWR_17532
wait 0
goto @LOWR_17508

:LOWR_17532
35@ = 99

:LOWR_17539
gosub @LOWR_23846
if 
  35@ == 99
goto_if_false @LOWR_17571
gosub @LOWR_27164

:LOWR_17571
return 

:LOWR_17573
if 
  35@ == 0
goto_if_false @LOWR_17611
stop_beat_track 
clear_prints 
restore_camera_jumpcut 
set_player_control $player1 {state} False
35@ += 1

:LOWR_17611
if 
  35@ == 1
goto_if_false @LOWR_19080
43@ = 0

:LOWR_17636
if 
  7 > 43@
goto_if_false @LOWR_17697
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_17683
delete_car 69@(43@,7i)

:LOWR_17683
43@ += 1
goto @LOWR_17636

:LOWR_17697
43@ = 0

:LOWR_17704
if 
  22 > 43@
goto_if_false @LOWR_17765
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_17751
delete_char 77@(43@,22i)

:LOWR_17751
43@ += 1
goto @LOWR_17704

:LOWR_17765
if 
  does_char_exist 99@
goto_if_false @LOWR_17786
delete_char 99@

:LOWR_17786
if 
  not does_vehicle_exist 68@
goto_if_false @LOWR_17842
68@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231
goto @LOWR_17888

:LOWR_17842
if 
  not is_car_dead 68@
goto_if_false @LOWR_17888
set_car_coordinates 68@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231

:LOWR_17888
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
43@ = 0

:LOWR_18119
if 
  7 > 43@
goto_if_false @LOWR_18219
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
freeze_car_position 69@(43@,7i) {state} True
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_18119

:LOWR_18219
freeze_car_position 73@ {state} False
set_car_status 73@ {status} EntityStatus.Physics
set_car_hydraulics 73@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char_inside_car 73@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:LOWR_18785
if 
  21 > 43@
goto_if_false @LOWR_18863
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)
43@ += 1
goto @LOWR_18785

:LOWR_18863
99@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 99@ {heading} 232.5412
if 
  not is_car_dead 68@
goto_if_false @LOWR_18977
reset_vehicle_hydraulics 68@
if 
  not is_car_passenger_seat_free 68@ {seat} SeatId.BikeRear
goto_if_false @LOWR_18951
277@ = get_char_in_car_passenger_seat 68@ {seat} SeatId.BikeRear
delete_char 277@

:LOWR_18951
if 
  not is_char_dead 99@
goto_if_false @LOWR_18977
warp_char_into_car_as_passenger 99@ {handle} 68@ {seat} SeatId.BikeRear

:LOWR_18977
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 68@
goto_if_false @LOWR_19049
warp_char_into_car $scplayer {vehicle} 68@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:LOWR_19049
load_scene_in_direction 1793.0 {y} -1908.0 {z} 14.0 {heading} 180.0
load_all_models_now 
35@ = 99

:LOWR_19080
if 
  35@ == 99
goto_if_false @LOWR_19719
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
load_scene_in_direction 1793.0 {y} -1908.0 {z} 14.0 {heading} 180.0
load_all_models_now 
wait 500
if 
  does_vehicle_exist 70@
goto_if_false @LOWR_19163
delete_car 70@

:LOWR_19163
if 
  does_vehicle_exist 73@
goto_if_false @LOWR_19184
delete_car 73@

:LOWR_19184
if 
  does_vehicle_exist 71@
goto_if_false @LOWR_19205
delete_car 71@

:LOWR_19205
if 
  does_vehicle_exist 74@
goto_if_false @LOWR_19226
delete_car 74@

:LOWR_19226
if 
  does_vehicle_exist 72@
goto_if_false @LOWR_19247
delete_car 72@

:LOWR_19247
if 
  does_char_exist 78@
goto_if_false @LOWR_19268
delete_char 78@

:LOWR_19268
if 
  does_char_exist 80@
goto_if_false @LOWR_19289
delete_char 80@

:LOWR_19289
if 
  does_char_exist 93@
goto_if_false @LOWR_19310
delete_char 93@

:LOWR_19310
if 
  does_char_exist 83@
goto_if_false @LOWR_19331
delete_char 83@

:LOWR_19331
if 
  does_char_exist 84@
goto_if_false @LOWR_19352
delete_char 84@

:LOWR_19352
if 
  does_char_exist 86@
goto_if_false @LOWR_19373
delete_char 86@

:LOWR_19373
if 
  does_char_exist 87@
goto_if_false @LOWR_19394
delete_char 87@

:LOWR_19394
if 
  does_char_exist 89@
goto_if_false @LOWR_19415
delete_char 89@

:LOWR_19415
if 
  does_char_exist 97@
goto_if_false @LOWR_19436
delete_char 97@

:LOWR_19436
if 
  does_char_exist 90@
goto_if_false @LOWR_19457
delete_char 90@

:LOWR_19457
if 
  not is_char_dead 81@
goto_if_false @LOWR_19502
if 
  not is_car_dead 69@
goto_if_false @LOWR_19502
clear_char_tasks_immediately 81@
warp_char_into_car 81@ {vehicle} 69@

:LOWR_19502
if 
  not is_char_dead 88@
goto_if_false @LOWR_19547
if 
  not is_car_dead 75@
goto_if_false @LOWR_19547
clear_char_tasks_immediately 88@
warp_char_into_car 88@ {vehicle} 75@

:LOWR_19547
if 
  not is_char_dead 99@
goto_if_false @LOWR_19587
if 
  not is_car_dead 68@
goto_if_false @LOWR_19587
task_leave_car 99@ {vehicle} 68@

:LOWR_19587
do_fade 500 {direction} Fade.In

:LOWR_19594
if 
  get_fading_status 
goto_if_false @LOWR_19618
wait 0
goto @LOWR_19594

:LOWR_19618
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @LOWR_19685
273@ *= 2
print_with_number_big 'WINNER' {num} 273@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 273@
36@ = 1
goto @LOWR_19708

:LOWR_19685
print_now 'LOW_33' {time} 5000 {flag} 1
37@ = 1

:LOWR_19708
wait 0
gosub @LOWR_27164

:LOWR_19719
gosub @LOWR_23846
return 

:LOWR_19728
if 
is_ps2_keyboard_key_just_pressed 33
goto_if_false @LOWR_19753
269@ += 0.01

:LOWR_19753
if 
is_ps2_keyboard_key_just_pressed 34
goto_if_false @LOWR_19778
269@ += -0.01

:LOWR_19778
if 
  does_vehicle_exist 68@
goto_if_false @LOWR_19833
if 
  is_car_dead 68@
goto_if_false @LOWR_19833
print_now 'LOW_34' {time} 5000 {flag} 1
37@ = 1

:LOWR_19833
if 
  is_player_playing $player1
goto_if_false @LOWR_20010
if 
  34@ > 2
goto_if_false @LOWR_20010
if 
  278@ == 0
goto_if_false @LOWR_19951
if 
  locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @LOWR_19944
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
278@ = 1

:LOWR_19944
goto @LOWR_20010

:LOWR_19951
if 
  not locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_20010
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
278@ = 0

:LOWR_20010
return 
if 
  not is_car_dead 68@
goto_if_false @LOWR_20070
if 
  not is_char_dead 99@
goto_if_false @LOWR_20070
attach_char_to_car 99@ {vehicle} 68@ {xOffset} 266@ {yOffset} 267@ {zOffset} 268@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:LOWR_20070
return 

:LOWR_20072
if 
  283@ == 0
goto_if_false @LOWR_20130
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20130
if 
  283@ == 1
goto_if_false @LOWR_20188
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20188
if 
  283@ == 2
goto_if_false @LOWR_20246
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20246
if 
  283@ == 3
goto_if_false @LOWR_20304
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20304
if 
  283@ == 4
goto_if_false @LOWR_20362
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20362
if 
  283@ == 5
goto_if_false @LOWR_20420
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20420
if 
  283@ == 6
goto_if_false @LOWR_20478
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20478
if 
  283@ == 7
goto_if_false @LOWR_20536
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_20536
if 
  283@ == 8
goto_if_false @LOWR_20594
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20594
if 
  283@ == 9
goto_if_false @LOWR_20652
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20652
if 
  283@ == 10
goto_if_false @LOWR_20710
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20710
if 
  283@ == 11
goto_if_false @LOWR_20768
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20768
if 
  283@ == 12
goto_if_false @LOWR_20826
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20826
if 
  283@ == 13
goto_if_false @LOWR_20884
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20884
if 
  283@ == 14
goto_if_false @LOWR_20942
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20942
if 
  283@ == 15
goto_if_false @LOWR_21000
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_21000
return 

:LOWR_21002
if 
  300 > 133@
goto_if_false @LOWR_21068
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_21141

:LOWR_21068
if 
  133@ > 500
goto_if_false @LOWR_21101
133@ = 0
goto @LOWR_21141

:LOWR_21101
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_21141
if 
  134@ > 2000
goto_if_false @LOWR_21215
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20072
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_21215
if 
  not is_car_dead 69@
goto_if_false @LOWR_21357
if 
  does_car_have_hydraulics 69@
goto_if_false @LOWR_21357
control_car_hydraulics 69@ {_p2} 257@ {_p3} 263@ {_p4} 254@ {_p5} 260@
$x, $y, $z = get_car_coordinates 69@
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 69@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_21357
if 
  not is_car_dead 72@
goto_if_false @LOWR_21499
if 
  does_car_have_hydraulics 72@
goto_if_false @LOWR_21499
control_car_hydraulics 72@ {_p2} 258@ {_p3} 264@ {_p4} 255@ {_p5} 261@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_21499
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @LOWR_23844 {caseNum1} 0 {caseLabel1} @LOWR_21692 {caseNum2} 1 {caseLabel2} @LOWR_21812 {caseNum3} 2 {caseLabel3} @LOWR_21932 {caseNum4} 3 {caseLabel4} @LOWR_22048 {caseNum5} 4 {caseLabel5} @LOWR_22164 {caseNum6} 5 {caseLabel6} @LOWR_22279 {caseNum7} 6 {caseLabel7} @LOWR_22395
switch_continued 7 {caseLabel1} @LOWR_22511 {caseNum2} 8 {caseLabel2} @LOWR_22627 {caseNum3} 9 {caseLabel3} @LOWR_22743 {caseNum4} 10 {caseLabel4} @LOWR_22863 {caseNum5} 11 {caseLabel5} @LOWR_23046 {caseNum6} 12 {caseLabel6} @LOWR_23162 {caseNum7} 13 {caseLabel7} @LOWR_23278 {caseNum8} 14 {caseLabel8} @LOWR_23394 {caseNum9} 15 {caseLabel9} @LOWR_23510
switch_continued 16 {caseLabel1} @LOWR_23626 {caseNum2} 17 {caseLabel2} @LOWR_23735 {caseNum3} -1 {caseLabel3} @LOWR_23844 {caseNum4} -1 {caseLabel4} @LOWR_23844 {caseNum5} -1 {caseLabel5} @LOWR_23844 {caseNum6} -1 {caseLabel6} @LOWR_23844 {caseNum7} -1 {caseLabel7} @LOWR_23844 {caseNum8} -1 {caseLabel8} @LOWR_23844 {caseNum9} -1 {caseLabel9} @LOWR_23844

:LOWR_21692
if 
  not is_char_dead 77@
goto_if_false @LOWR_21805
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21805
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:LOWR_21805
goto @LOWR_23844

:LOWR_21812
if 
  not is_char_dead 78@
goto_if_false @LOWR_21925
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21925
49@ = open_sequence_task 
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@

:LOWR_21925
goto @LOWR_23844

:LOWR_21932
if 
  not is_char_dead 79@
goto_if_false @LOWR_22041
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22041
49@ = open_sequence_task 
if 
  not is_char_dead 80@
goto_if_false @LOWR_22016
task_chat_with_char -1 {other} 80@ {leadSpeaker} True {_p4} 1
goto @LOWR_22023

:LOWR_22016
task_pause -1 {time} 1000

:LOWR_22023
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22041
goto @LOWR_23844

:LOWR_22048
if 
  not is_char_dead 80@
goto_if_false @LOWR_22157
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22157
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @LOWR_22132
task_chat_with_char -1 {other} 79@ {leadSpeaker} False {_p4} 1
goto @LOWR_22139

:LOWR_22132
task_pause -1 {time} 1000

:LOWR_22139
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22157
goto @LOWR_23844

:LOWR_22164
if 
  not is_char_dead 81@
goto_if_false @LOWR_22272
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22272
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22272
goto @LOWR_23844

:LOWR_22279
if 
  not is_char_dead 82@
goto_if_false @LOWR_22388
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22388
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @LOWR_22363
task_chat_with_char -1 {other} 83@ {leadSpeaker} False {_p4} 1
goto @LOWR_22370

:LOWR_22363
task_pause -1 {time} 1000

:LOWR_22370
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22388
goto @LOWR_23844

:LOWR_22395
if 
  not is_char_dead 83@
goto_if_false @LOWR_22504
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22504
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @LOWR_22479
task_chat_with_char -1 {other} 82@ {leadSpeaker} True {_p4} 1
goto @LOWR_22486

:LOWR_22479
task_pause -1 {time} 1000

:LOWR_22486
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22504
goto @LOWR_23844

:LOWR_22511
if 
  not is_char_dead 84@
goto_if_false @LOWR_22620
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22620
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22620
goto @LOWR_23844

:LOWR_22627
if 
  not is_char_dead 85@
goto_if_false @LOWR_22736
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22736
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22736
goto @LOWR_23844

:LOWR_22743
if 
  not is_char_dead 86@
goto_if_false @LOWR_22856
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22856
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22856
goto @LOWR_23844

:LOWR_22863
if 
  not is_char_dead 87@
goto_if_false @LOWR_23039
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23039
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23039
goto @LOWR_23844

:LOWR_23046
if 
  not is_char_dead 88@
goto_if_false @LOWR_23155
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23155
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23155
goto @LOWR_23844

:LOWR_23162
if 
  not is_char_dead 89@
goto_if_false @LOWR_23271
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23271
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23271
goto @LOWR_23844

:LOWR_23278
if 
  not is_char_dead 90@
goto_if_false @LOWR_23387
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23387
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23387
goto @LOWR_23844

:LOWR_23394
if 
  not is_char_dead 91@
goto_if_false @LOWR_23503
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23503
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23503
goto @LOWR_23844

:LOWR_23510
if 
  not is_char_dead 92@
goto_if_false @LOWR_23619
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23619
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23619
goto @LOWR_23844

:LOWR_23626
if 
  not is_char_dead 93@
goto_if_false @LOWR_23728
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23728
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23728
goto @LOWR_23844

:LOWR_23735
if 
  not is_char_dead 94@
goto_if_false @LOWR_23837
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23837
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23837
goto @LOWR_23844

:LOWR_23844
return 

:LOWR_23846
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_26503 {caseNum1} 0 {caseLabel1} @LOWR_24039 {caseNum2} 1 {caseLabel2} @LOWR_24159 {caseNum3} 2 {caseLabel3} @LOWR_24275 {caseNum4} 3 {caseLabel4} @LOWR_24391 {caseNum5} 4 {caseLabel5} @LOWR_24511 {caseNum6} 5 {caseLabel6} @LOWR_24631 {caseNum7} 6 {caseLabel7} @LOWR_24747
switch_continued 7 {caseLabel1} @LOWR_24867 {caseNum2} 8 {caseLabel2} @LOWR_24983 {caseNum3} 9 {caseLabel3} @LOWR_25099 {caseNum4} 10 {caseLabel4} @LOWR_25219 {caseNum5} 11 {caseLabel5} @LOWR_25335 {caseNum6} 12 {caseLabel6} @LOWR_25455 {caseNum7} 13 {caseLabel7} @LOWR_25575 {caseNum8} 14 {caseLabel8} @LOWR_25691 {caseNum9} 15 {caseLabel9} @LOWR_25807
switch_continued 16 {caseLabel1} @LOWR_25923 {caseNum2} 17 {caseLabel2} @LOWR_26039 {caseNum3} 18 {caseLabel3} @LOWR_26155 {caseNum4} 19 {caseLabel4} @LOWR_26271 {caseNum5} 20 {caseLabel5} @LOWR_26387 {caseNum6} -1 {caseLabel6} @LOWR_26503 {caseNum7} -1 {caseLabel7} @LOWR_26503 {caseNum8} -1 {caseLabel8} @LOWR_26503 {caseNum9} -1 {caseLabel9} @LOWR_26503

:LOWR_24039
if 
  not is_char_dead 77@
goto_if_false @LOWR_24152
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24152
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24152
goto @LOWR_26503

:LOWR_24159
if 
  not is_char_dead 78@
goto_if_false @LOWR_24268
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24268
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24268
goto @LOWR_26503

:LOWR_24275
if 
  not is_char_dead 79@
goto_if_false @LOWR_24384
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24384
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24384
goto @LOWR_26503

:LOWR_24391
if 
  not is_char_dead 80@
goto_if_false @LOWR_24504
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24504
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24504
goto @LOWR_26503

:LOWR_24511
if 
  not is_char_dead 81@
goto_if_false @LOWR_24624
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24624
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24624
goto @LOWR_26503

:LOWR_24631
if 
  not is_char_dead 82@
goto_if_false @LOWR_24740
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24740
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24740
goto @LOWR_26503

:LOWR_24747
if 
  not is_char_dead 83@
goto_if_false @LOWR_24860
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24860
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24860
goto @LOWR_26503

:LOWR_24867
if 
  not is_char_dead 84@
goto_if_false @LOWR_24976
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24976
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24976
goto @LOWR_26503

:LOWR_24983
if 
  not is_char_dead 85@
goto_if_false @LOWR_25092
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25092
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25092
goto @LOWR_26503

:LOWR_25099
if 
  not is_char_dead 86@
goto_if_false @LOWR_25212
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25212
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25212
goto @LOWR_26503

:LOWR_25219
if 
  not is_char_dead 87@
goto_if_false @LOWR_25328
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25328
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25328
goto @LOWR_26503

:LOWR_25335
if 
  not is_char_dead 88@
goto_if_false @LOWR_25448
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25448
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25448
goto @LOWR_26503

:LOWR_25455
if 
  not is_char_dead 89@
goto_if_false @LOWR_25568
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25568
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25568
goto @LOWR_26503

:LOWR_25575
if 
  not is_char_dead 90@
goto_if_false @LOWR_25684
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25684
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25684
goto @LOWR_26503

:LOWR_25691
if 
  not is_char_dead 91@
goto_if_false @LOWR_25800
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25800
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25800
goto @LOWR_26503

:LOWR_25807
if 
  not is_char_dead 92@
goto_if_false @LOWR_25916
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25916
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25916
goto @LOWR_26503

:LOWR_25923
if 
  not is_char_dead 93@
goto_if_false @LOWR_26032
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26032
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26032
goto @LOWR_26503

:LOWR_26039
if 
  not is_char_dead 94@
goto_if_false @LOWR_26148
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26148
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26148
goto @LOWR_26503

:LOWR_26155
if 
  not is_char_dead 95@
goto_if_false @LOWR_26264
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26264
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26264
goto @LOWR_26503

:LOWR_26271
if 
  not is_char_dead 96@
goto_if_false @LOWR_26380
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26380
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26380
goto @LOWR_26503

:LOWR_26387
if 
  not is_char_dead 97@
goto_if_false @LOWR_26496
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26496
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26496
goto @LOWR_26503

:LOWR_26503
return 

:LOWR_26505
43@ = 0

:LOWR_26512
if 
  22 > 43@
goto_if_false @LOWR_26605
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_26591
delete_char 77@(43@,22i)
write_debug_with_int "PED_DELETED" {number} 43@
43@ = 22
goto @LOWR_26598

:LOWR_26591
43@ += 1

:LOWR_26598
goto @LOWR_26512

:LOWR_26605
return 

:LOWR_26607
43@ = 0

:LOWR_26614
if 
  7 > 43@
goto_if_false @LOWR_26707
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_26693
delete_car 69@(43@,7i)
write_debug_with_int "CAR_DELETED" {number} 43@
43@ = 7
goto @LOWR_26700

:LOWR_26693
43@ += 1

:LOWR_26700
goto @LOWR_26614

:LOWR_26707
return 

:LOWR_26709
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @LOWR_26812 {caseNum1} 3 {caseLabel1} @LOWR_26772 {caseNum2} -1 {caseLabel2} @LOWR_26852 {caseNum3} -1 {caseLabel3} @LOWR_26852 {caseNum4} -1 {caseLabel4} @LOWR_26852 {caseNum5} -1 {caseLabel5} @LOWR_26852 {caseNum6} -1 {caseLabel6} @LOWR_26852 {caseNum7} -1 {caseLabel7} @LOWR_26852

:LOWR_26772
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @LOWR_26852

:LOWR_26812
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @LOWR_26852

:LOWR_26852
gosub @LOWR_27109
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @LOWR_27109
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 273@
gosub @LOWR_27109
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @LOWR_27109
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} 271@
gosub @LOWR_27109
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @LOWR_27109
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 272@
return 

:LOWR_27109
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:LOWR_27164
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:LOWR_27222
return 

:LOWR_27224
return 

:LOWR_27226
switch_audio_zone 'LOWRIDE' {state} False
if 
  does_vehicle_exist 68@
goto_if_false @LOWR_27362
if 
  not is_car_dead 68@
goto_if_false @LOWR_27362
set_car_status 68@ {status} EntityStatus.Abandoned
freeze_car_position 68@ {state} False
set_car_proofs 68@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_player_playing $player1
goto_if_false @LOWR_27323
apply_brakes_to_players_car $player1 {state} False

:LOWR_27323
lock_car_doors 68@ {lockStatus} CarLock.Unlocked
if 
  is_char_in_car $scplayer {vehicle} 68@
goto_if_false @LOWR_27362
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 68@

:LOWR_27362
43@ = 0

:LOWR_27369
if 
  7 > 43@
goto_if_false @LOWR_27553
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_27539
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_27530
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @LOWR_27508
if 
  does_car_have_hydraulics 69@(43@,7i)
goto_if_false @LOWR_27508
control_car_hydraulics 69@(43@,7i) {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:LOWR_27508
set_car_status 69@(43@,7i) {status} EntityStatus.Simple
set_car_hydraulics 69@(43@,7i) {state} False

:LOWR_27530
mark_car_as_no_longer_needed 69@(43@,7i)

:LOWR_27539
43@ += 1
goto @LOWR_27369

:LOWR_27553
43@ = 0

:LOWR_27560
if 
  22 > 43@
goto_if_false @LOWR_27641
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_27627
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_27618

:LOWR_27618
mark_char_as_no_longer_needed 77@(43@,22i)

:LOWR_27627
43@ += 1
goto @LOWR_27560

:LOWR_27641
if 
  does_char_exist 99@
goto_if_false @LOWR_27662
mark_char_as_no_longer_needed 99@

:LOWR_27662
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 567
remove_animation "LOWRIDER"
remove_blip 102@
display_radar True
43@ = get_beat_track_status 
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @LOWR_27752
stop_beat_track 

:LOWR_27752
dont_suppress_car_model 567
$bd_terminate_script = 1
remove_decision_maker 66@
remove_decision_maker 67@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 10---------------
// Originally: Beefy Baron

:ZERO5
gosub @ZERO5_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO5_27
gosub @ZERO5_1896

:ZERO5_27
gosub @ZERO5_1993
terminate_this_script 

:ZERO5_36
66@ = 0
$onmission = 1
clear_this_print_big_now TextStyle.Middle
register_mission_given 
script_name 'ZERO5'
set_player_control $player1 {state} False
wait 0
48@ = 1
49@ = 0
50@ = 0
51@ = 0
57@ = 0
55@ = 0
56@ = 0
63@ = 0
64@ = 0
52@ = 0
53@ = 0
$timer_time_limit_zero5 = 0
$lowr_track_to_play = 180000
40@ = -2205.4399
41@ = 128.99
42@ = 57.33
43@ = 90.0
44@ = -2227.0
45@ = 113.0
46@ = 35.5
reset_num_of_models_killed_by_player $player1
TIMERA = 0
69@ = 0
request_model 464
request_model 459

:ZERO5_271
if or
  not has_model_loaded 464
  not has_model_loaded 459
goto_if_false @ZERO5_303
wait 0
goto @ZERO5_271

:ZERO5_303
display_car_names False
load_mission_text 'ZERO2'
disable_all_entry_exits True

:ZERO5_322
wait 0
if 
  48@ == 1
goto_if_false @ZERO5_351
gosub @ZERO5_408

:ZERO5_351
if 
  52@ == 1
goto_if_false @ZERO5_376
goto @ZERO5_1859

:ZERO5_376
if 
  53@ == 1
goto_if_false @ZERO5_401
goto @ZERO5_1896

:ZERO5_401
goto @ZERO5_322

:ZERO5_408
TIMERB = 0
clear_area 44@ {y} 45@ {z} 46@ {radius} 1000.0 {clearParticles} True
35@ = create_car 459 {x} -2250.8999 {y} 124.6 {z} 28.48
set_load_collision_for_car_flag 35@ {state} False
open_car_door 35@ {door} CarDoor.LeftRearDoor
open_car_door 35@ {door} CarDoor.RightRearDoor
warp_char_into_car $scplayer {vehicle} 35@
restore_camera_jumpcut 
set_camera_behind_player 
set_police_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
if 
  not is_car_dead 35@
goto_if_false @ZERO5_557
set_car_coordinates 35@ {x} -2233.8999 {y} 122.6 {z} 746.48
set_car_heading 35@ {heading} 90.0
freeze_car_position 35@ {state} True

:ZERO5_557
wait 1000
if 
  not is_car_dead 35@
goto_if_false @ZERO5_583
close_all_car_doors 35@

:ZERO5_583
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} -2240.854 {y} 129.3346 {radius} 1.5
load_scene 40@ {y} 41@ {z} 42@
give_remote_controlled_model_to_player $player1 {x} 40@ {y} 41@ {z} 42@ {angle} 40.09 {modelId} 464
34@ = get_remote_controlled_car $player1
set_car_heading 34@ {heading} 90.0
set_enable_rc_detonate_on_contact False
set_enable_rc_detonate False
set_car_health 34@ {health} 1000
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
switch_widescreen False
if 
  not is_car_dead 34@
goto_if_false @ZERO5_733
point_camera_at_car 34@ {mode} CameraMode.CamOnAString {switchStyle} SwitchType.JumpCut
freeze_car_position 34@ {state} False
wait 0
set_camera_zoom 1

:ZERO5_733
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:ZERO5_748
if 
  get_fading_status 
goto_if_false @ZERO5_772
wait 0
goto @ZERO5_748

:ZERO5_772
set_player_control $player1 {state} True
display_onscreen_timer_with_string $lowr_track_to_play {direction} TimerDirection.Down {text} 'ZER2_5'
display_onscreen_counter_with_string $timer_time_limit_zero5 {display} CounterDisplay.Number {text} 'ZER2_43'
print_now 'ZER2_45' {time} 5000 {flag} 1
set_force_random_car_model 459

:ZERO5_832
if 
  57@ <> 1
goto_if_false @ZERO5_1857
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO5_913
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
return 

:ZERO5_913
if 
  0 >= $lowr_track_to_play
goto_if_false @ZERO5_1156
if 
  not is_car_dead 34@
goto_if_false @ZERO5_961
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO5_961
remove_rc_buggy 
TIMERA = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
print_with_number_big 'ZER2_43' {num} $timer_time_limit_zero5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1120
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1140

:ZERO5_1120
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1140
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1156
if 
  not is_car_dead 34@
goto_if_false @ZERO5_1681
if 
  is_player_in_remote_mode $player1
goto_if_false @ZERO5_1674
70@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 72@ {y} 73@ {z} 74@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO5_1272
72@, 73@, 74@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 71@ = 70@
71@ += 4000
64@ = 0

:ZERO5_1272
if 
  locate_car_3d 34@ {x} 72@ {y} 73@ {z} 74@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO5_1612
if 
  is_int_lvar_greater_than_int_lvar 70@ > 71@
goto_if_false @ZERO5_1612
if 
  64@ == 0
goto_if_false @ZERO5_1369
print_help 'ZER2_4'
64@ = 1

:ZERO5_1369
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO5_1612
53@ = 1
48@ = 0
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
add_explosion 72@ {y} 73@ {z} 74@ {type} ExplosionType.Grenade
remove_rc_buggy 
53@ = 1
48@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1576
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1596

:ZERO5_1576
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1596
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1612
37@, 38@, 39@ = get_car_coordinates 34@
36@ = get_random_car_in_sphere_no_save 37@ {y} 38@ {z} 39@ {radius} 30.0 {model} 459
if 
  not is_car_dead 36@
goto_if_false @ZERO5_1674
set_car_cruise_speed 36@ {maxSpeed} 10.0

:ZERO5_1674
goto @ZERO5_1839

:ZERO5_1681
53@ = 1
48@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
set_player_control $player1 {state} False
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1803
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1823

:ZERO5_1803
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1823
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1839
$timer_time_limit_zero5 = get_num_of_models_killed_by_player $player1 {modelId} 459
goto @ZERO5_832

:ZERO5_1857
return 

:ZERO5_1859
set_player_control $player1 {state} True
clear_wanted_level $player1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO5_1894
set_player_control $player1 {state} True

:ZERO5_1894
return 

:ZERO5_1896
if 
  not is_char_dead $scplayer
goto_if_false @ZERO5_1919
set_player_control $player1 {state} True

:ZERO5_1919
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:ZERO5_1935
if 
  3000 > TIMERA
goto_if_false @ZERO5_1991
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO5_1984
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO5_1984
goto @ZERO5_1935

:ZERO5_1991
return 

:ZERO5_1993
camera_reset_new_scriptables 
$onmission = 0
set_police_ignore_player $player1 {state} False
mark_car_as_no_longer_needed 35@
if 
  is_player_playing $player1
goto_if_false @ZERO5_2076
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_2076
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
set_char_heading $scplayer {heading} 90.0

:ZERO5_2076
release_weather 
set_player_control $player1 {state} True
disable_all_entry_exits False
remove_rc_buggy 
mark_model_as_no_longer_needed 459
mark_model_as_no_longer_needed 464
clear_onscreen_timer $lowr_track_to_play
clear_onscreen_counter $timer_time_limit_zero5
$timer_mobile_start = get_game_timer 
display_car_names True
mission_has_finished 
return 

//-------------Mission 11---------------
// Originally: Big Smoke

:INTRO1
script_name 'INTRO1'
gosub @INTRO1_914
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO1_38
gosub @INTRO1_18053

:INTRO1_38
gosub @INTRO1_18183
terminate_this_script 

:INTRO1_47
switch_start 46@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @INTRO1_912 {caseNum1} 0 {caseLabel1} @INTRO1_110 {caseNum2} 1 {caseLabel2} @INTRO1_212 {caseNum3} 2 {caseLabel3} @INTRO1_314 {caseNum4} 3 {caseLabel4} @INTRO1_570 {caseNum5} 4 {caseLabel5} @INTRO1_628 {caseNum6} 5 {caseLabel6} @INTRO1_774 {caseNum7} 6 {caseLabel7} @INTRO1_854

:INTRO1_110
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_AB'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_AC'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_AR'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_AA'
set_lvar_int_to_constant 93@ = 10048
set_lvar_int_to_constant 94@ = 10070
set_lvar_int_to_constant 95@ = 10071
set_lvar_int_to_constant 96@ = 10047
63@ = 3
goto @INTRO1_912

:INTRO1_212
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_AI'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_AJ'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_AK'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_AQ'
set_lvar_int_to_constant 93@ = 10027
set_lvar_int_to_constant 94@ = 10052
set_lvar_int_to_constant 95@ = 10028
set_lvar_int_to_constant 96@ = 10031
63@ = 3
goto @INTRO1_912

:INTRO1_314
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_GN'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_GA'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_GB'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_GC'
set_var_text_label s$van_death_counter_zero5[4] = 'INT1_GD'
set_var_text_label s$van_death_counter_zero5[5] = 'INT1_GE'
set_var_text_label s$van_death_counter_zero5[6] = 'INT1_GH'
set_var_text_label s$van_death_counter_zero5[7] = 'INT1_GI'
set_var_text_label s$van_death_counter_zero5[8] = 'INT1_GJ'
set_var_text_label s$van_death_counter_zero5[9] = 'INT1_GL'
set_var_text_label s$van_death_counter_zero5[10] = 'INT1_GM'
set_lvar_int_to_constant 93@ = 10026
set_lvar_int_to_constant 94@ = 10044
set_lvar_int_to_constant 95@ = 10007
set_lvar_int_to_constant 96@ = 10008
set_lvar_int_to_constant 97@ = 10045
set_lvar_int_to_constant 98@ = 10009
set_lvar_int_to_constant 99@ = 10046
set_lvar_int_to_constant 100@ = 10010
set_lvar_int_to_constant 101@ = 10068
set_lvar_int_to_constant 102@ = 10024
set_lvar_int_to_constant 103@ = 10025
63@ = 10
goto @INTRO1_912

:INTRO1_570
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_CA'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_EI'
set_lvar_int_to_constant 93@ = 10034
set_lvar_int_to_constant 94@ = 10019
63@ = 1
goto @INTRO1_912

:INTRO1_628
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BA'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BC'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_BB'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_BD'
set_var_text_label s$van_death_counter_zero5[4] = 'INT1_AM'
set_var_text_label s$van_death_counter_zero5[5] = 'INT1_AN'
set_lvar_int_to_constant 93@ = 10032
set_lvar_int_to_constant 94@ = 10004
set_lvar_int_to_constant 95@ = 10033
set_lvar_int_to_constant 96@ = 10005
set_lvar_int_to_constant 97@ = 10002
set_lvar_int_to_constant 98@ = 10029
63@ = 5
goto @INTRO1_912

:INTRO1_774
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BF'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BG'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_BH'
set_lvar_int_to_constant 93@ = 10053
set_lvar_int_to_constant 94@ = 10054
set_lvar_int_to_constant 95@ = 10055
63@ = 2
goto @INTRO1_912

:INTRO1_854
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BI'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BK'
set_lvar_int_to_constant 93@ = 10011
set_lvar_int_to_constant 94@ = 10072
63@ = 1
goto @INTRO1_912

:INTRO1_912
return 

:INTRO1_914
$onmission = 1
set_lvar_int_to_var_int 65@ = $big_smoke
set_lvar_int_to_var_int 66@ = $ryder
set_lvar_int_to_var_int 67@ = $sweet
set_lvar_int_to_lvar_int 76@ = 34@
set_lvar_int_to_lvar_int 77@ = 36@
set_lvar_int_to_lvar_int 78@ = 35@
79@ = 0
80@ = 0
81@ = 0
83@ = 0
84@ = 0
85@ = 0
58@ = 0
59@ = 0
60@ = 0
86@ = 0
48@ = 0
49@ = 0
$been_in_a_bmx = 0
68@ = 0
55@ = 0
57@ = 0
61@ = 0
62@ = 0
74@ = 0
92@ = 0
45@ = 0
54@ = 0
107@ = 3
115@ = 1
108@ = 1
87@ = 0
register_mission_given 
load_mission_text 'INTRO1'
set_time_of_day 9 {minutes} 0
clear_char_tasks_immediately $scplayer
set_area_visible 3
load_cutscene 'INTRO1A'

:INTRO1_1190
if 
  not has_cutscene_loaded 
goto_if_false @INTRO1_1214
wait 0
goto @INTRO1_1190

:INTRO1_1214
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO1_1223
if 
  not has_cutscene_finished 
goto_if_false @INTRO1_1247
wait 0
goto @INTRO1_1223

:INTRO1_1247
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:INTRO1_1260
if 
  get_fading_status 
goto_if_false @INTRO1_1284
wait 0
goto @INTRO1_1260

:INTRO1_1284
clear_cutscene 
set_area_visible 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.2
enable_ambient_crime False
load_special_character 10 {modelName} 'SMOKE'
request_model 404
load_all_models_now 

:INTRO1_1328
if or
  not has_model_loaded 404
  not has_special_character_loaded 10
goto_if_false @INTRO1_1359
wait 0
goto @INTRO1_1328

:INTRO1_1359
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks $scplayer
clear_char_tasks_immediately $scplayer
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2498.9099 {y} -1680.5 {z} 12.37
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 90.0
41@ = create_car 404 {x} 2494.9099 {y} -1682.17 {z} 12.32
mark_model_as_no_longer_needed 404
change_car_colour 41@ {color1} 0 {color2} 0
set_car_heading 41@ {heading} 90.0
set_char_coordinates $scplayer {x} 2495.5901 {y} -1686.96 {z} 12.51
task_stand_still $scplayer {time} 1
set_char_heading $scplayer {heading} 32.0
clear_char_tasks_immediately $scplayer
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} 41@ {time} 10000 {seat} SeatId.BikeRear
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} 41@ {time} 10000
clear_area 2494.9099 {y} -1682.17 {z} 12.32 {radius} 50.0 {clearParticles} True
load_scene_in_direction 2495.5901 {y} -1686.96 {z} 12.51 {heading} 32.2
set_area_visible 0
set_radio_channel RadioChannel.BounceFM
86@ = 0
75@ = 0
109@ = 0
46@ = 0
gosub @INTRO1_47
do_fade 1500 {direction} Fade.In
set_fixed_camera_position 2498.947 {y} -1690.0 {z} 14.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.405 {y} -1689.177 {z} 14.2309 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @INTRO1_2033

:INTRO1_1703
if 
  86@ <> 2
goto_if_false @INTRO1_1739
wait 0
gosub @INTRO1_20347
goto @INTRO1_1703

:INTRO1_1739
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2498.947 {fromY} -1690.0 {fromZ} 14.4011 {toX} 2501.2361 {toY} -1678.23 {toZ} 17.5252 {time} 9000 {ease} True
camera_set_vector_track 2498.405 {fromY} -1689.177 {fromZ} 14.2309 {toX} 2500.238 {toY} -1678.188 {toZ} 17.4907 {time} 9000 {ease} True
if 
  not is_car_dead 41@
goto_if_false @INTRO1_1946
if 
  not is_char_dead $big_smoke
goto_if_false @INTRO1_1946

:INTRO1_1855
if or
  not is_char_in_car $scplayer {vehicle} 41@
  not is_char_in_car $big_smoke {vehicle} 41@
goto_if_false @INTRO1_1946
wait 0
if 
  is_car_dead 41@
goto_if_false @INTRO1_1909
goto @INTRO1_18053

:INTRO1_1909
if 
  is_char_dead $big_smoke
goto_if_false @INTRO1_1932
goto @INTRO1_18053

:INTRO1_1932
gosub @INTRO1_20347
goto @INTRO1_1855

:INTRO1_1946
if 
  not is_car_dead 41@
goto_if_false @INTRO1_1997
task_car_drive_to_coord $scplayer {vehicle} 41@ {x} 2414.6799 {y} -1656.38 {z} 12.38 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 404 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_1997
if 
  86@ <> 4
goto_if_false @INTRO1_2033
wait 0
gosub @INTRO1_20347
goto @INTRO1_1997

:INTRO1_2033
skip_cutscene_end 
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
print_big 'FUNERAL' {time} 1000 {style} TextStyle.BottomRight

:INTRO1_2068
if 
  get_fading_status 
goto_if_false @INTRO1_2092
wait 0
goto @INTRO1_2068

:INTRO1_2092
camera_reset_new_scriptables 
delete_char $big_smoke
unload_special_character 10
if 
  not is_car_dead 41@
goto_if_false @INTRO1_2227
clear_char_tasks_immediately $scplayer
set_car_coordinates 41@ {x} 956.6 {y} -1099.47 {z} 22.73
set_car_heading 41@ {heading} 0.0
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_2197
warp_char_from_car_to_coord $scplayer {x} 910.78 {y} -1075.26 {z} 23.29
goto @INTRO1_2217

:INTRO1_2197
set_char_coordinates $scplayer {x} 910.78 {y} -1075.26 {z} 23.29

:INTRO1_2217
set_char_heading $scplayer {heading} 265.0

:INTRO1_2227
make_player_safe_for_cutscene $player1
load_scene_in_direction 910.78 {y} -1075.26 {z} 23.29 {heading} 265.0
load_cutscene 'INTRO1B'

:INTRO1_2265
if 
  not has_cutscene_loaded 
goto_if_false @INTRO1_2289
wait 0
goto @INTRO1_2265

:INTRO1_2289
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO1_2298
if 
  not has_cutscene_finished 
goto_if_false @INTRO1_2322
wait 0
goto @INTRO1_2298

:INTRO1_2322
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:INTRO1_2335
if 
  get_fading_status 
goto_if_false @INTRO1_2359
wait 0
goto @INTRO1_2335

:INTRO1_2359
clear_cutscene 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.2
load_special_character 1 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
load_special_character 10 {modelName} 'SMOKE'
request_model 404
request_model 481
request_model 352
request_model 412
request_model 102
request_model 346
request_car_recording 201
load_all_models_now 

:INTRO1_2450
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 3
  not has_special_character_loaded 10
  not has_model_loaded 404
  not has_model_loaded 481
  not has_model_loaded 412
goto_if_false @INTRO1_2499
wait 0
goto @INTRO1_2450

:INTRO1_2499
if or
  not has_model_loaded 352
  not has_model_loaded 102
  not has_model_loaded 346
  not has_car_recording_been_loaded 201
goto_if_false @INTRO1_2540
wait 0
goto @INTRO1_2499

:INTRO1_2540
switch_widescreen True
set_player_control $player1 {state} False
set_near_clip 0.2
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 943.71 {y} -1103.5 {z} 22.85 {radius} 70.0 {clearParticles} True
load_scene_in_direction 943.71 {y} -1103.5 {z} 22.85 {heading} 90.0
51@ = create_car 412 {x} 1038.5 {y} -954.9 {z} 41.5
suppress_car_model 412
change_car_colour 51@ {color1} 22 {color2} 22
set_load_collision_for_car_flag 51@ {state} False
50@ = create_char_inside_car 51@ {pedType} PedType.Mission2 {modelId} 102
52@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear
110@ = load_char_decision_maker DecisionMakerType.Empty
set_char_accuracy 50@ {accuracy} 25
set_char_accuracy 52@ {accuracy} 25
set_char_shoot_rate 50@ {rate} 30
set_char_shoot_rate 52@ {rate} 30
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
mark_model_as_no_longer_needed 102
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 52@ {weaponType} WeaponType.MicroUzi
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 30000
mark_model_as_no_longer_needed 352
set_current_char_weapon 50@ {weaponType} WeaponType.MicroUzi
lock_car_doors 51@ {lockStatus} CarLock.Locked
set_car_heading 51@ {heading} 100.8
set_car_health 51@ {health} 2000
37@ = create_car 481 {x} 971.8 {y} -1108.0 {z} 23.1
set_car_health 37@ {health} 2000
set_car_heading 37@ {heading} 140.0
set_can_burst_car_tyres 37@ {state} False
76@ = create_car 481 {x} 971.4 {y} -1110.5 {z} 23.3
set_car_health 76@ {health} 2000
set_car_heading 76@ {heading} 110.0
set_can_burst_car_tyres 76@ {state} False
set_car_straight_line_distance 76@ {distance} 30
77@ = create_car 481 {x} 971.8 {y} -1115.5 {z} 23.1
set_car_health 77@ {health} 2000
set_car_heading 77@ {heading} 140.0
set_can_burst_car_tyres 77@ {state} False
set_car_straight_line_distance 77@ {distance} 30
78@ = create_car 481 {x} 971.8 {y} -1113.0 {z} 23.1
set_car_health 78@ {health} 2000
set_car_heading 78@ {heading} 140.0
set_can_burst_car_tyres 78@ {state} False
set_car_straight_line_distance 78@ {distance} 30
mark_model_as_no_longer_needed 481
if 
  not is_car_dead 41@
goto_if_false @INTRO1_3087
set_player_control $player1 {state} False
set_car_can_be_damaged 41@ {state} True
set_car_coordinates 41@ {x} 956.6 {y} -1099.47 {z} 22.73
set_car_heading 41@ {heading} 0.0

:INTRO1_3087
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_3135
warp_char_from_car_to_coord $scplayer {x} 940.0 {y} -1103.5 {z} 22.85
goto @INTRO1_3155

:INTRO1_3135
set_char_coordinates $scplayer {x} 940.0 {y} -1103.5 {z} 22.85

:INTRO1_3155
set_char_heading $scplayer {heading} 272.5
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 954.0 {y} -1103.5 {z} 22.85 {speed} MoveState.Walk {time} 20000
65@ = create_char PedType.Mission1 {modelId} 299 {x} 942.79 {y} -1104.41 {z} 22.85
set_anim_group_for_char 65@ {animGroup} "FATMAN"
set_char_health 65@ {health} 2000
set_char_heading 65@ {heading} 184.0
set_char_never_targetted 65@ {state} True
set_char_suffers_critical_hits 65@ {state} False
set_char_cant_be_dragged_out 65@ {state} True
set_char_stay_in_car_when_jacked 65@ {state} True
task_go_straight_to_coord 65@ {x} 954.0 {y} -1104.41 {z} 22.85 {speed} MoveState.Walk {time} 20000
set_char_decision_maker 65@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 65@ {stayOnBike} True
66@ = create_char PedType.Mission1 {modelId} 292 {x} 942.9 {y} -1105.79 {z} 22.85
set_anim_group_for_char 66@ {animGroup} "GANG1"
set_char_health 66@ {health} 2000
set_char_heading 66@ {heading} 50.0
set_char_never_targetted 66@ {state} True
set_char_suffers_critical_hits 66@ {state} False
set_char_cant_be_dragged_out 66@ {state} True
set_char_stay_in_car_when_jacked 66@ {state} True
task_go_straight_to_coord 66@ {x} 954.0 {y} -1105.79 {z} 22.85 {speed} MoveState.Walk {time} 25000
set_char_decision_maker 66@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 66@ {stayOnBike} True
67@ = create_char PedType.Mission1 {modelId} 290 {x} 942.96 {y} -1102.0 {z} 22.85
set_anim_group_for_char 67@ {animGroup} "GANG2"
set_char_health 67@ {health} 2000
set_char_heading 67@ {heading} 96.0
set_char_never_targetted 67@ {state} True
set_char_suffers_critical_hits 67@ {state} False
set_char_cant_be_dragged_out 67@ {state} True
set_char_stay_in_car_when_jacked 67@ {state} True
task_go_straight_to_coord 67@ {x} 954.0 {y} -1102.0 {z} 22.85 {speed} MoveState.Walk {time} 20000
set_char_decision_maker 67@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 67@ {stayOnBike} True
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True
remove_blip 39@
TIMERB = 0

:INTRO1_3601
if 
  900 > TIMERB
goto_if_false @INTRO1_3631
wait 0
goto @INTRO1_3601

:INTRO1_3631
load_scene_in_direction 940.0 {y} -1103.5 {z} 22.85 {heading} 272.5
do_fade 500 {direction} Fade.In
clear_area 949.8 {y} -1100.3 {z} 23.0 {radius} 500.0 {clearParticles} True
set_fixed_camera_position 947.9119 {y} -1103.912 {z} 23.4476 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 946.9478 {y} -1103.822 {z} 23.6977 {switchStyle} SwitchType.JumpCut
86@ = 0
75@ = 0
109@ = 0
46@ = 1
gosub @INTRO1_47
91@ = 0
skip_cutscene_start_internal @INTRO1_5496
TIMERB = 0

:INTRO1_3791
if 
  3300 > TIMERB
goto_if_false @INTRO1_3821
wait 0
goto @INTRO1_3791

:INTRO1_3821
if 
  not is_car_dead 51@
goto_if_false @INTRO1_3877
if 
  not is_char_dead 50@
goto_if_false @INTRO1_3877
if 
  has_car_recording_been_loaded 201
goto_if_false @INTRO1_3877
start_playback_recorded_car 51@ {path} 201

:INTRO1_3877
if 
  not is_car_dead 41@
goto_if_false @INTRO1_4028
if 
  not is_char_dead 52@
goto_if_false @INTRO1_3960
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_3960
task_drive_by 52@ {targetChar} -1 {targetVehicle} -1 {x} 952.92 {y} -1102.99 {z} 22.85 {radius} 100.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 90

:INTRO1_3960
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4028
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_4028
task_drive_by 50@ {targetChar} -1 {targetVehicle} 41@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.FixedLeft {rightHandCarSeat} False {fireRate} 90

:INTRO1_4028
TIMERB = 0

:INTRO1_4035
if 
  1500 > TIMERB
goto_if_false @INTRO1_4065
wait 0
goto @INTRO1_4035

:INTRO1_4065
camera_reset_new_scriptables 
set_fixed_camera_position 951.3326 {y} -1099.652 {z} 25.3079 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 951.9009 {y} -1100.452 {z} 25.1184 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:INTRO1_4125
if 
  2500 > TIMERB
goto_if_false @INTRO1_4155
wait 0
goto @INTRO1_4125

:INTRO1_4155
if 
  not is_car_dead 51@
goto_if_false @INTRO1_4203
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4203
clear_look_at 66@
task_look_at_vehicle 66@ {vehicle} 51@ {time} 4000

:INTRO1_4203
TIMERB = 0

:INTRO1_4210
if 
  1000 > TIMERB
goto_if_false @INTRO1_4240
wait 0
goto @INTRO1_4210

:INTRO1_4240
if 
  86@ <> 1
goto_if_false @INTRO1_4742
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_4510
if 
  75@ == 2
goto_if_false @INTRO1_4510
if 
  not is_car_dead 51@
goto_if_false @INTRO1_4426
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4426
TIMERB = 0
task_look_at_vehicle $scplayer {vehicle} 51@ {time} 4000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_4387
clear_look_at 65@
task_look_at_vehicle 65@ {vehicle} 51@ {time} 4000

:INTRO1_4387
if 
  not is_char_dead 67@
goto_if_false @INTRO1_4419
clear_look_at 67@
task_look_at_vehicle 67@ {vehicle} 51@ {time} 4000

:INTRO1_4419
109@ = 1

:INTRO1_4426
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 951.3326 {fromY} -1099.652 {fromZ} 25.3079 {toX} 951.3326 {toY} -1099.652 {toZ} 25.3079 {time} 7500 {ease} True
camera_set_vector_track 951.9009 {fromY} -1100.452 {fromZ} 25.1184 {toX} 951.9258 {toY} -1098.847 {toZ} 25.3253 {time} 7500 {ease} True

:INTRO1_4510
if 
  TIMERB > 1000
goto_if_false @INTRO1_4735
if 
  109@ == 1
goto_if_false @INTRO1_4735
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4728
task_dive_and_get_up 66@ {directionX} 1.0 {directionY} -3.0 {timeOnGround} 1000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_4654
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 50
set_char_heading 65@ {heading} 270.0
set_char_stay_in_same_place 65@ {state} True
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4654
task_toggle_duck 65@ {state} True
task_kill_char_on_foot 65@ {target} 50@

:INTRO1_4654
if 
  not is_char_dead 67@
goto_if_false @INTRO1_4710
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 50
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4710
task_kill_char_on_foot_while_ducking 67@ {target} 50@ {flags} 4 {actionDelay} 2000 {actionChance} 100

:INTRO1_4710
task_dive_and_get_up $scplayer {directionX} -1.5 {directionY} -1.0 {timeOnGround} 1000

:INTRO1_4728
109@ = 2

:INTRO1_4735
goto @INTRO1_4240

:INTRO1_4742
TIMERB = 0

:INTRO1_4749
if 
  1000 > TIMERB
goto_if_false @INTRO1_4779
wait 0
goto @INTRO1_4749

:INTRO1_4779
if 
  not is_car_dead 41@
goto_if_false @INTRO1_4800
explode_car_in_cutscene 41@

:INTRO1_4800
TIMERB = 0
109@ = 0

:INTRO1_4814
if 
  86@ <> 2
goto_if_false @INTRO1_4876
wait 0
gosub @INTRO1_20347
if 
  TIMERB > 1600
goto_if_false @INTRO1_4869
goto @INTRO1_4876

:INTRO1_4869
goto @INTRO1_4814

:INTRO1_4876
clear_area 956.09 {y} -1105.6801 {z} 22.75 {radius} 50.0 {clearParticles} True
if 
  not is_char_dead 52@
goto_if_false @INTRO1_4955
clear_char_tasks 52@
task_play_anim 52@ {animationName} "CAR_SIT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_4955
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 945.7507 {y} -1103.549 {z} 23.0477
set_char_heading $scplayer {heading} 252.8
task_stand_still $scplayer {time} 1
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5095
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5095
set_char_stay_in_same_place 65@ {state} False
task_stand_still 65@ {time} 1
clear_look_at 65@
task_toggle_duck 65@ {state} False
set_char_coordinates 65@ {x} 957.0725 {y} -1106.504 {z} 22.7146
set_char_heading 65@ {heading} 251.1192
task_enter_car_as_driver 65@ {vehicle} 76@ {time} -1

:INTRO1_5095
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5156
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5156
set_char_stay_in_same_place 66@ {state} False
task_stand_still 66@ {time} 1
clear_look_at 66@
task_enter_car_as_driver 66@ {vehicle} 77@ {time} -1

:INTRO1_5156
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5237
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5237
set_char_stay_in_same_place 67@ {state} False
task_stand_still 67@ {time} 1
clear_look_at 67@
set_char_coordinates 67@ {x} 957.12 {y} -1104.4 {z} 22.7146
task_enter_car_as_driver 67@ {vehicle} 78@ {time} -1

:INTRO1_5237
wait 100
camera_reset_new_scriptables 
set_fixed_camera_position 953.489 {y} -1100.465 {z} 24.8611 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 954.1205 {y} -1101.236 {z} 24.7823 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10030
109@ = 0

:INTRO1_5308
if 
  86@ <> 3
goto_if_false @INTRO1_5417
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_5410
if 
  75@ == 2
goto_if_false @INTRO1_5410
clear_char_tasks_immediately $scplayer
task_go_straight_to_coord $scplayer {x} 971.181 {y} -1108.193 {z} 22.8672 {speed} MoveState.Run {time} 10000
109@ = 1

:INTRO1_5410
goto @INTRO1_5308

:INTRO1_5417
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO1_5443
wait 0
goto @INTRO1_5417

:INTRO1_5443
play_mission_audio MissionAudioSlot.Slot2
print_now 'INT1_AP' {time} 10000 {flag} 1

:INTRO1_5463
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO1_5489
wait 0
goto @INTRO1_5463

:INTRO1_5489
91@ = 1

:INTRO1_5496
skip_cutscene_end 
if 
  91@ == 0
goto_if_false @INTRO1_5778
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:INTRO1_5533
if 
  get_fading_status 
goto_if_false @INTRO1_5557
wait 0
goto @INTRO1_5533

:INTRO1_5557
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5626
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5626
set_char_coordinates 65@ {x} 969.2067 {y} -1110.3 {z} 22.8672
set_char_heading 65@ {heading} 273.1099
task_toggle_duck 65@ {state} False

:INTRO1_5626
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5688
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5688
set_char_coordinates 66@ {x} 969.1187 {y} -1116.561 {z} 22.8552
set_char_heading 66@ {heading} 298.5085

:INTRO1_5688
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5755
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5755
clear_look_at 67@
set_char_coordinates 67@ {x} 969.436 {y} -1113.775 {z} 22.8593
set_char_heading 67@ {heading} 267.2885

:INTRO1_5755
camera_reset_new_scriptables 
if 
  not is_car_dead 41@
goto_if_false @INTRO1_5778
explode_car_in_cutscene 41@

:INTRO1_5778
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5827
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5827
task_toggle_duck 65@ {state} False
task_enter_car_as_driver 65@ {vehicle} 76@ {time} -1

:INTRO1_5827
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5869
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5869
task_enter_car_as_driver 66@ {vehicle} 77@ {time} -1

:INTRO1_5869
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5916
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5916
clear_look_at 67@
task_enter_car_as_driver 67@ {vehicle} 78@ {time} -1

:INTRO1_5916
mark_car_as_no_longer_needed 41@
mark_model_as_no_longer_needed 404
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5949
remove_weapon_from_char 65@ {weaponType} WeaponType.Pistol

:INTRO1_5949
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5972
remove_weapon_from_char 67@ {weaponType} WeaponType.Pistol

:INTRO1_5972
mark_model_as_no_longer_needed 346
if 
  not is_car_dead 51@
goto_if_false @INTRO1_6005
stop_playback_recorded_car 51@
goto @INTRO1_6010

:INTRO1_6005
stop_playback_recorded_car 51@

:INTRO1_6010
remove_car_recording 201
wait 100
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_look_at $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_car_dead 37@
goto_if_false @INTRO1_6077
43@ = add_blip_for_car 37@
set_blip_as_friendly 43@ {state} True

:INTRO1_6077
if 
  not is_car_dead 51@
goto_if_false @INTRO1_6138
116@, 117@, 118@ = get_car_coordinates 51@
118@ -= 50.0
set_car_coordinates 51@ {x} 116@ {y} 117@ {z} 118@
freeze_car_position_and_dont_load_collision 51@ {state} True

:INTRO1_6138
if 
  91@ == 0
goto_if_false @INTRO1_6235
set_fading_colour 0 {g} 0 {b} 0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 970.0873 {y} -1107.776 {z} 22.8672
set_char_heading $scplayer {heading} 254.4577
wait 1000
do_fade 500 {direction} Fade.In

:INTRO1_6211
if 
  get_fading_status 
goto_if_false @INTRO1_6235
wait 0
goto @INTRO1_6211

:INTRO1_6235
82@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 962.5424 {y} -1128.6 {z} 22.6656 {speed} 8.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1036.603 {y} -1148.943 {z} 22.6562 {speed} 16.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1325.583 {y} -1150.183 {z} 22.6484 {speed} 23.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1644.7729 {y} -1051.334 {z} 22.8984 {speed} 23.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 82@
72@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 1780.85 {y} -1111.48 {z} 23.08 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1786.54 {y} -1191.3 {z} 22.95 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1798.67 {y} -1270.41 {z} 12.47 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1891.0 {y} -1347.78 {z} 12.54 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1959.12 {y} -1450.1 {z} 12.45 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1987.61 {y} -1516.6899 {z} 2.39 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 72@
111@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 1780.85 {y} -1111.48 {z} 23.08 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1784.54 {y} -1191.3 {z} 22.95 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1798.67 {y} -1270.41 {z} 12.47 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1891.0 {y} -1347.78 {z} 12.54 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1959.12 {y} -1450.1 {z} 12.45 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1987.61 {y} -1516.6899 {z} 2.39 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} 24.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 111@
if 
  is_car_dead 37@
goto_if_false @INTRO1_6898
print_now 'INT2_F4' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_6898
75@ = 0
86@ = 3

:INTRO1_6912
if 
  86@ <> 4
goto_if_false @INTRO1_6987
wait 0
gosub @INTRO1_20347
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  45@ == 1
goto_if_false @INTRO1_6980
goto @INTRO1_18053

:INTRO1_6980
goto @INTRO1_6912

:INTRO1_6987
print_now 'INTRO2E' {time} 10000 {flag} 1
request_animation "MISC"
$blob_flag = 1
TIMERA = 0
if 
  is_char_dead 67@
goto_if_false @INTRO1_7064
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_7064
92@ = 0
114@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 4
gosub @INTRO1_47

:INTRO1_7113
if or
  not locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  not locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_9043
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @INTRO1_7244
set_char_coordinates $scplayer {x} 2473.6919 {y} -1684.215 {z} 12.4625
goto @INTRO1_18071

:INTRO1_7244
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  not is_car_dead 37@
goto_if_false @INTRO1_7304
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_7304
clear_this_print 'INTRO2E'

:INTRO1_7304
if 
  45@ == 1
goto_if_false @INTRO1_7329
goto @INTRO1_18053

:INTRO1_7329
if 
  92@ == 0
goto_if_false @INTRO1_7387
if 
  TIMERA > 6000
goto_if_false @INTRO1_7387
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
92@ = 1

:INTRO1_7387
if 
  68@ == 0
goto_if_false @INTRO1_7847
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7840
if 
  not locate_char_any_means_3d $scplayer {x} 949.4 {y} -1102.1 {z} 23.2 {xRadius} 50.0 {yRadius} 60.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @INTRO1_7840
set_car_coordinates 51@ {x} 1079.15 {y} -1084.73 {z} 25.43
set_car_heading 51@ {heading} 175.95
freeze_car_position_and_dont_load_collision 51@ {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_7699
if 
  not is_char_dead 52@
goto_if_false @INTRO1_7595
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_7595
clear_char_tasks 52@
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_7595
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_7692
69@ = store_car_char_is_in $scplayer
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7692
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7692
clear_char_tasks 50@
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_7692
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_7692
goto @INTRO1_7833

:INTRO1_7699
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7833
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_7833
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7833
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7833
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_7833
68@ = 1

:INTRO1_7840
goto @INTRO1_8678

:INTRO1_7847
if 
  not is_car_dead 51@
goto_if_false @INTRO1_8600
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8541
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8475
125@, 126@, 127@ = get_char_coordinates $scplayer
if and
  not locate_car_2d 51@ {x} 125@ {y} 126@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  not is_car_on_screen 51@
goto_if_false @INTRO1_8044
clear_char_tasks 50@
116@, 117@, 118@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
119@, 120@, 121@ = get_closest_car_node 116@ {y} 117@ {z} 118@
set_car_coordinates 51@ {x} 119@ {y} 120@ {z} 121@
turn_car_to_face_coord 51@ {x} 116@ {y} 117@
set_car_forward_speed 51@ {forwardSpeed} 20.0
goto @INTRO1_8468

:INTRO1_8044
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_8253
53@ = get_script_task_status 50@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8149
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_8149
69@ = store_car_char_is_in $scplayer
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_8149
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_8149
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8246
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_8246
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8246
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_8246
goto @INTRO1_8468

:INTRO1_8253
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8371
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8371
if 
  not is_car_dead 51@
goto_if_false @INTRO1_8371
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_8371
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8468
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_8468
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8468
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_8468
goto @INTRO1_8534

:INTRO1_8475
if 
  114@ == 0
goto_if_false @INTRO1_8534
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8534
clear_char_tasks 50@
task_leave_any_car 50@
task_kill_char_on_foot 50@ {target} $scplayer
114@ = 1

:INTRO1_8534
goto @INTRO1_8600

:INTRO1_8541
if 
  114@ == 0
goto_if_false @INTRO1_8600
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8600
clear_char_tasks 52@
task_leave_any_car 52@
task_kill_char_on_foot 52@ {target} $scplayer
114@ = 1

:INTRO1_8600
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_8678
if 
  not is_char_dead 67@
goto_if_false @INTRO1_8678
if 
  locate_char_any_means_char_3d $scplayer {target} 67@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_8678
gosub @INTRO1_20347

:INTRO1_8678
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @INTRO1_8919
if 
  $been_in_a_bmx == 0
goto_if_false @INTRO1_8747
print_help 'INTRO2C'
TIMERA = 0
$been_in_a_bmx = 1
goto @INTRO1_8919

:INTRO1_8747
if 
  $been_in_a_bmx == 1
goto_if_false @INTRO1_8809
if 
  TIMERA > 10000
goto_if_false @INTRO1_8809
print_help 'INTRO2D'
TIMERA = 0
$been_in_a_bmx = 2

:INTRO1_8809
if 
  $been_in_a_bmx == 2
goto_if_false @INTRO1_8864
if 
  TIMERA > 20000
goto_if_false @INTRO1_8864
print_help 'HELP3B'
$been_in_a_bmx = 3

:INTRO1_8864
if 
  $been_in_a_bmx == 3
goto_if_false @INTRO1_8919
if 
  TIMERA > 28000
goto_if_false @INTRO1_8919
print_help 'HELP3B2'
$been_in_a_bmx = 4

:INTRO1_8919
if 
  is_char_dead 65@
goto_if_false @INTRO1_8958
print_now 'INT2_F1' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_8958
if 
  is_char_dead 66@
goto_if_false @INTRO1_8997
print_now 'INT2_F3' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_8997
if 
  is_char_dead 67@
goto_if_false @INTRO1_9036
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_9036
goto @INTRO1_7113

:INTRO1_9043
113@ = 0
do_fade 500 {direction} Fade.Out

:INTRO1_9057
if 
  get_fading_status 
goto_if_false @INTRO1_9081
wait 0
goto @INTRO1_9057

:INTRO1_9081
set_fixed_camera_position 1647.208 {y} -1085.2321 {z} 24.1633 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1646.354 {y} -1084.712 {z} 24.164 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
load_scene_in_direction 1637.642 {y} -1063.702 {z} 22.8984 {heading} 152.0807
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:INTRO1_9169
if 
  not has_animation_loaded "MISC"
goto_if_false @INTRO1_9213
wait 0
request_animation "MISC"
do_fade 0 {direction} Fade.Out
goto @INTRO1_9169

:INTRO1_9213
107@ = 2
if 
  is_car_dead 51@
goto_if_false @INTRO1_9257
113@ = 1
107@ = 3
goto @INTRO1_9297

:INTRO1_9257
if or
  is_car_in_water 51@
  is_char_dead 50@
  is_char_dead 52@
goto_if_false @INTRO1_9297
113@ = 1
107@ = 3

:INTRO1_9297
switch_ped_roads_off 1782.802 {leftBottomY} -1203.4969 {leftBottomZ} 0.0 {rightTopX} 1788.2729 {rightTopY} -1236.15 {rightTopZ} 20.0
set_near_clip 0.2
86@ = 0
75@ = 0
109@ = 0
46@ = 3
gosub @INTRO1_47
if 
  not is_car_dead 78@
goto_if_false @INTRO1_9745
if 
  not is_char_dead 67@
goto_if_false @INTRO1_9745
freeze_char_position_and_dont_load_collision 67@ {state} False
freeze_car_position_and_dont_load_collision 78@ {state} False
if 
  not is_char_in_car 67@ {vehicle} 78@
goto_if_false @INTRO1_9444
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_9444
clear_area 1644.47 {y} -1072.658 {z} 22.9062 {radius} 4.0 {clearParticles} True
if 
  113@ == 0
goto_if_false @INTRO1_9710
set_car_coordinates 78@ {x} 1644.47 {y} -1072.658 {z} 22.9062
set_car_heading 78@ {heading} 170.0
task_car_drive_to_coord 67@ {vehicle} 78@ {x} 1540.298 {y} -1159.188 {z} 22.9062 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
set_car_forward_speed 78@ {forwardSpeed} 10.0
if 
  not is_car_dead 51@
goto_if_false @INTRO1_9703
clear_area 1637.08 {y} -1061.001 {z} 22.9114 {radius} 4.0 {clearParticles} True
set_car_coordinates 51@ {x} 1637.08 {y} -1061.001 {z} 22.9114
set_car_heading 51@ {heading} 182.2789
set_car_forward_speed 51@ {forwardSpeed} 5.0
if 
  not is_char_dead 52@
goto_if_false @INTRO1_9662
clear_char_tasks 52@

:INTRO1_9662
if 
  not is_char_dead 50@
goto_if_false @INTRO1_9703
clear_char_tasks 50@
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 78@ {missionId} CarMission.EscortLeft {cruiseSpeed} 40.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_9703
goto @INTRO1_9740

:INTRO1_9710
set_car_coordinates 78@ {x} 1638.166 {y} -1056.298 {z} 22.9062
set_car_heading 78@ {heading} 272.6299

:INTRO1_9740
remove_blip 39@

:INTRO1_9745
clear_area 1638.712 {y} -1050.319 {z} 22.8984 {radius} 4.0 {clearParticles} True
if 
  not is_char_dead 65@
goto_if_false @INTRO1_9896
if 
  not is_car_dead 76@
goto_if_false @INTRO1_9896
freeze_char_position_and_dont_load_collision 65@ {state} False
freeze_car_position_and_dont_load_collision 76@ {state} False
if 
  not is_char_in_car 65@ {vehicle} 76@
goto_if_false @INTRO1_9842
warp_char_into_car 65@ {vehicle} 76@

:INTRO1_9842
clear_area 1640.649 {y} -1055.473 {z} 22.9062 {radius} 4.0 {clearParticles} True
set_car_coordinates 76@ {x} 1640.649 {y} -1055.473 {z} 22.9062
set_car_heading 76@ {heading} 260.0

:INTRO1_9896
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10023
if 
  not is_car_dead 77@
goto_if_false @INTRO1_10023
freeze_char_position_and_dont_load_collision 66@ {state} False
freeze_car_position_and_dont_load_collision 77@ {state} False
if 
  not is_char_in_car 66@ {vehicle} 77@
goto_if_false @INTRO1_9969
warp_char_into_car 66@ {vehicle} 77@

:INTRO1_9969
clear_area 1644.913 {y} -1050.538 {z} 22.8984 {radius} 4.0 {clearParticles} True
set_car_coordinates 77@ {x} 1644.913 {y} -1050.538 {z} 22.8984
set_car_heading 77@ {heading} 270.0

:INTRO1_10023
switch_widescreen True
wait 100
if or
  is_char_in_any_car $scplayer
  is_char_on_any_bike $scplayer
goto_if_false @INTRO1_10097
69@ = store_car_char_is_in $scplayer
set_car_coordinates 69@ {x} 1638.712 {y} -1050.319 {z} 22.8984
set_car_heading 69@ {heading} 252.8
goto @INTRO1_10127

:INTRO1_10097
set_char_coordinates $scplayer {x} 1638.712 {y} -1050.319 {z} 22.8984
set_char_heading $scplayer {heading} 252.8

:INTRO1_10127
clear_area 1636.084 {y} -1093.459 {z} 23.7139 {radius} 100.0 {clearParticles} True
if 
  113@ == 1
goto_if_false @INTRO1_10176
goto @INTRO1_10377

:INTRO1_10176
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1647.208 {fromY} -1085.2321 {fromZ} 24.1633 {toX} 1647.969 {toY} -1098.429 {toZ} 24.1724 {time} 4100 {ease} True
camera_set_vector_track 1646.354 {fromY} -1084.712 {fromZ} 24.164 {toX} 1647.5229 {toY} -1099.323 {toZ} 24.1731 {time} 4100 {ease} True
do_fade 500 {direction} Fade.In
TIMERA = 0

:INTRO1_10274
if 
  500 > TIMERA
goto_if_false @INTRO1_10304
wait 0
goto @INTRO1_10274

:INTRO1_10304
if 
  86@ <> 1
goto_if_false @INTRO1_10340
wait 0
gosub @INTRO1_20347
goto @INTRO1_10304

:INTRO1_10340
TIMERA = 0

:INTRO1_10347
if 
  1000 > TIMERA
goto_if_false @INTRO1_10377
wait 0
goto @INTRO1_10347

:INTRO1_10377
if 
  113@ == 1
goto_if_false @INTRO1_10409
86@ = 1
do_fade 500 {direction} Fade.In

:INTRO1_10409
camera_reset_new_scriptables 
set_fixed_camera_position 1646.476 {y} -1049.4301 {z} 23.0659 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1645.693 {y} -1049.9969 {z} 23.3176 {switchStyle} SwitchType.JumpCut

:INTRO1_10462
if 
  86@ <> 2
goto_if_false @INTRO1_10606
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_10599
if 
  75@ == 2
goto_if_false @INTRO1_10599
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10592
task_play_anim 66@ {animationName} "BMX_COMEON" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
53@ = get_script_task_status 66@ {taskId} 1541

:INTRO1_10592
109@ = 1

:INTRO1_10599
goto @INTRO1_10462

:INTRO1_10606
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10680
if 
  not is_car_dead 37@
goto_if_false @INTRO1_10672
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_10672
40@ = add_blip_for_char 66@
set_blip_as_friendly 40@ {state} True

:INTRO1_10672
perform_sequence_task 66@ {sequence} 72@

:INTRO1_10680
if 
  not is_char_dead 65@
goto_if_false @INTRO1_10725
if 
  not is_car_dead 76@
goto_if_false @INTRO1_10725
perform_sequence_task 65@ {sequence} 111@
clear_sequence_task 111@

:INTRO1_10725
if 
  113@ == 0
goto_if_false @INTRO1_11032
if 
  not is_char_dead 67@
goto_if_false @INTRO1_10874
if 
  not is_car_dead 78@
goto_if_false @INTRO1_10874
clear_char_tasks_immediately 67@
set_car_coordinates 78@ {x} 1540.298 {y} -1159.188 {z} -50.3438
wait 0
if 
  not is_char_dead 67@
goto_if_false @INTRO1_10874
if 
  not is_car_dead 78@
goto_if_false @INTRO1_10874
if 
  not is_char_in_any_car 67@
goto_if_false @INTRO1_10860
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_10860
freeze_char_position_and_dont_load_collision 67@ {state} True
freeze_car_position_and_dont_load_collision 78@ {state} True

:INTRO1_10874
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11025
if 
  not is_char_dead 52@
goto_if_false @INTRO1_11025
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11025
clear_char_tasks_immediately 50@
clear_char_tasks_immediately 52@
set_car_coordinates 51@ {x} 1540.298 {y} -1171.188 {z} -50.3438
wait 0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11025
if 
  not is_char_dead 52@
goto_if_false @INTRO1_11025
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11025
freeze_char_position_and_dont_load_collision 50@ {state} True
freeze_char_position_and_dont_load_collision 52@ {state} True
freeze_car_position_and_dont_load_collision 51@ {state} True

:INTRO1_11025
goto @INTRO1_11072

:INTRO1_11032
if 
  not is_char_dead 67@
goto_if_false @INTRO1_11072
if 
  not is_car_dead 78@
goto_if_false @INTRO1_11072
perform_sequence_task 67@ {sequence} 72@

:INTRO1_11072
clear_sequence_task 72@
wait 1000
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
74@ = 1
if 
  not is_car_dead 37@
goto_if_false @INTRO1_11178
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_11162
print_now 'INTRO2K' {time} 1000 {flag} 1
goto @INTRO1_11178

:INTRO1_11162
print_now 'INTRO2E' {time} 10000 {flag} 1

:INTRO1_11178
92@ = 2
if 
  is_car_dead 37@
goto_if_false @INTRO1_11224
print_now 'INT2_F4' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_11224
if 
  is_char_dead 66@
goto_if_false @INTRO1_11247
goto @INTRO1_18053

:INTRO1_11247
if 
  not is_car_dead 37@
goto_if_false @INTRO1_11303
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_11296
$blob_flag = 1
goto @INTRO1_11303

:INTRO1_11296
$blob_flag = 0

:INTRO1_11303
68@ = 0
57@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 6
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 0

:INTRO1_11373
if or
  not locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  not locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_13472
wait 0
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  45@ == 1
goto_if_false @INTRO1_11489
goto @INTRO1_18053

:INTRO1_11489
if 
  57@ == 0
goto_if_false @INTRO1_12923
if 
  68@ == 0
goto_if_false @INTRO1_12047
if 
  locate_char_any_means_3d $scplayer {x} 1981.292 {y} -1510.219 {z} 2.3844 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @INTRO1_12040
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12040
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12040
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11779
freeze_char_position_and_dont_load_collision 50@ {state} False
freeze_char_position_and_dont_load_collision 52@ {state} False
freeze_car_position_and_dont_load_collision 51@ {state} False
set_car_coordinates 51@ {x} 1809.0 {y} -1519.0 {z} 7.0
set_car_heading 51@ {heading} 270.0
if 
  not is_char_in_any_car 50@
goto_if_false @INTRO1_11696
warp_char_into_car 50@ {vehicle} 51@

:INTRO1_11696
if 
  not is_char_in_any_car 52@
goto_if_false @INTRO1_11722
warp_char_into_car_as_passenger 52@ {handle} 51@ {seat} SeatId.BikeRear

:INTRO1_11722
clear_char_tasks 52@
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_11779
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_11779
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_11883
69@ = store_car_char_is_in $scplayer
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11876
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11876
clear_char_tasks 50@
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_11876
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_11876
goto @INTRO1_12033

:INTRO1_11883
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12033
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12033
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12033
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12033
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12033
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12033
68@ = 1

:INTRO1_12040
goto @INTRO1_12816

:INTRO1_12047
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12816
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12757
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12691
125@, 126@, 127@ = get_char_coordinates $scplayer
if and
  not locate_car_2d 51@ {x} 125@ {y} 126@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  not is_car_on_screen 51@
goto_if_false @INTRO1_12244
clear_char_tasks 50@
116@, 117@, 118@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
119@, 120@, 121@ = get_closest_car_node 116@ {y} 117@ {z} 118@
set_car_coordinates 51@ {x} 119@ {y} 120@ {z} 121@
turn_car_to_face_coord 51@ {x} 116@ {y} 117@
set_car_forward_speed 51@ {forwardSpeed} 20.0
goto @INTRO1_12684

:INTRO1_12244
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_12453
53@ = get_script_task_status 50@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12349
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_12349
69@ = store_car_char_is_in $scplayer
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12349
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12349
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12446
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_12446
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12446
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_12446
goto @INTRO1_12684

:INTRO1_12453
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12587
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12587
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12587
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12587
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12587
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12684
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_12684
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12684
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_12684
goto @INTRO1_12750

:INTRO1_12691
if 
  114@ == 0
goto_if_false @INTRO1_12750
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12750
clear_char_tasks 50@
task_leave_any_car 50@
task_kill_char_on_foot 50@ {target} $scplayer
114@ = 1

:INTRO1_12750
goto @INTRO1_12816

:INTRO1_12757
if 
  114@ == 0
goto_if_false @INTRO1_12816
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12816
clear_char_tasks 52@
task_leave_any_car 52@
task_kill_char_on_foot 52@ {target} $scplayer
114@ = 1

:INTRO1_12816
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12923
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12923
if 
  locate_char_any_means_3d 50@ {x} 2341.8501 {y} -1658.92 {z} 12.39 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @INTRO1_12923
clear_char_tasks 50@
task_car_drive_wander 50@ {vehicle} 51@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
57@ = 1

:INTRO1_12923
if 
  112@ == 0
goto_if_false @INTRO1_13093
if 
  TIMERA > 1500
goto_if_false @INTRO1_13061
if 
  not is_char_dead 66@
goto_if_false @INTRO1_13061
if 
  not is_car_dead 77@
goto_if_false @INTRO1_13061
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13061
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_13061
gosub @INTRO1_20347
115@ = 1

:INTRO1_13061
if 
  86@ > 1
goto_if_false @INTRO1_13086
112@ = 1

:INTRO1_13086
goto @INTRO1_13330

:INTRO1_13093
if 
  112@ == 1
goto_if_false @INTRO1_13167
86@ = 0
75@ = 0
109@ = 0
46@ = 5
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 2

:INTRO1_13167
if 
  112@ == 2
goto_if_false @INTRO1_13330
if 
  TIMERA > 1500
goto_if_false @INTRO1_13305
if 
  not is_char_dead 65@
goto_if_false @INTRO1_13305
if 
  not is_car_dead 76@
goto_if_false @INTRO1_13305
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13305
if 
  locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_13305
gosub @INTRO1_20347
108@ = 1

:INTRO1_13305
if 
  86@ > 2
goto_if_false @INTRO1_13330
112@ = 3

:INTRO1_13330
if 
  is_char_dead 65@
goto_if_false @INTRO1_13369
print_now 'INT2_F1' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_13369
if 
  is_char_dead 66@
goto_if_false @INTRO1_13408
print_now 'INT2_F3' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_13408
if 
  113@ == 1
goto_if_false @INTRO1_13465
if 
  is_char_dead 67@
goto_if_false @INTRO1_13465
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18053

:INTRO1_13465
goto @INTRO1_11373

:INTRO1_13472
set_player_control $player1 {state} False
113@ = 0
if 
  not is_car_dead 37@
goto_if_false @INTRO1_13562
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13562
task_play_anim $scplayer {animationName} "BMX_CELEBRATE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_13562
wait 1000
do_fade 1500 {direction} Fade.Out

:INTRO1_13574
if 
  get_fading_status 
goto_if_false @INTRO1_13598
wait 0
goto @INTRO1_13574

:INTRO1_13598
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_wanted_level $player1
request_car_recording 205
request_car_recording 206
request_animation "MISC"
request_animation "GANGS"
load_all_models_now 

:INTRO1_13640
if or
  not has_car_recording_been_loaded 205
  not has_car_recording_been_loaded 206
  not has_animation_loaded "MISC"
  not has_animation_loaded "GANGS"
goto_if_false @INTRO1_13689
wait 0
goto @INTRO1_13640

:INTRO1_13689
switch_widescreen True
set_near_clip 0.2
86@ = 0
75@ = 0
109@ = 0
46@ = 2
gosub @INTRO1_47
if 
  not is_car_dead 37@
goto_if_false @INTRO1_13918
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13888
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_13837
warp_char_from_car_to_coord $scplayer {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_char_heading $scplayer {heading} 80.0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
113@ = 1
goto @INTRO1_13881

:INTRO1_13837
set_char_coordinates $scplayer {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_char_heading $scplayer {heading} 80.0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
113@ = 1

:INTRO1_13881
goto @INTRO1_13918

:INTRO1_13888
set_car_coordinates 37@ {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_car_heading 37@ {heading} 80.0

:INTRO1_13918
clear_area 2487.3091 {y} -1668.3719 {z} 12.3438 {radius} 50.0 {clearParticles} True
if 
  not is_char_dead 65@
goto_if_false @INTRO1_14047
if 
  not is_car_dead 76@
goto_if_false @INTRO1_14047
clear_char_tasks_immediately 65@
freeze_char_position_and_dont_load_collision 65@ {state} False
freeze_car_position_and_dont_load_collision 76@ {state} False
if 
  not is_char_in_any_car 65@
goto_if_false @INTRO1_14017
warp_char_into_car 65@ {vehicle} 76@

:INTRO1_14017
set_car_coordinates 76@ {x} 2487.1721 {y} -1666.301 {z} 12.3438
set_car_heading 76@ {heading} 124.2698

:INTRO1_14047
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14122
if 
  not is_car_dead 77@
goto_if_false @INTRO1_14122
clear_char_tasks_immediately 66@
freeze_char_position_and_dont_load_collision 66@ {state} False
freeze_car_position_and_dont_load_collision 77@ {state} False
if 
  not is_char_in_any_car 66@
goto_if_false @INTRO1_14122
warp_char_into_car 66@ {vehicle} 77@

:INTRO1_14122
if 
  not is_char_dead 67@
goto_if_false @INTRO1_14217
if 
  not is_car_dead 78@
goto_if_false @INTRO1_14217
clear_char_tasks_immediately 67@
freeze_char_position_and_dont_load_collision 67@ {state} False
freeze_car_position_and_dont_load_collision 78@ {state} False
if 
  not is_char_in_any_car 67@
goto_if_false @INTRO1_14197
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_14197
set_car_coordinates 78@ {x} 2371.5 {y} -1654.895 {z} 12.3826

:INTRO1_14217
delete_char 50@
delete_char 52@
delete_car 51@
set_fixed_camera_position 2409.0371 {y} -1672.324 {z} 18.3556 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2409.9541 {y} -1671.944 {z} 18.2334 {switchStyle} SwitchType.JumpCut
load_scene 2480.689 {y} -1670.006 {z} 13.0061
set_fixed_camera_position 2479.8269 {y} -1670.506 {z} 12.9206 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2480.689 {y} -1670.006 {z} 13.0061 {switchStyle} SwitchType.JumpCut
wait 1000
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14413
if 
  not is_car_dead 77@
goto_if_false @INTRO1_14413
start_playback_recorded_car 77@ {path} 206
set_playback_speed 77@ {speed} 1.0

:INTRO1_14413
109@ = 0

:INTRO1_14420
if 
  86@ <> 1
goto_if_false @INTRO1_14725
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_14718
if 
  75@ == 2
goto_if_false @INTRO1_14718
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14711
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 30000
start_char_facial_talk 66@ {duration} 20000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 30000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_14600
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_14600
if 
  113@ == 0
goto_if_false @INTRO1_14661
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_14661
if 
  not is_char_dead 67@
goto_if_false @INTRO1_14711
if 
  not is_car_dead 78@
goto_if_false @INTRO1_14711
start_playback_recorded_car 78@ {path} 205
set_playback_speed 78@ {speed} 0.8

:INTRO1_14711
109@ = 1

:INTRO1_14718
goto @INTRO1_14420

:INTRO1_14725
TIMERB = 0

:INTRO1_14732
if 
  200 > TIMERB
goto_if_false @INTRO1_14762
wait 0
goto @INTRO1_14732

:INTRO1_14762
skip_cutscene_start_internal @INTRO1_17639
109@ = 0

:INTRO1_14776
if 
  86@ <> 2
goto_if_false @INTRO1_15074
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15067
if 
  75@ == 2
goto_if_false @INTRO1_15067
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15060
clear_look_at 67@
task_look_at_char 67@ {target} $scplayer {time} 30000
start_char_facial_talk 67@ {duration} 20000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 67@ {time} 30000
task_play_anim 67@ {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  113@ == 0
goto_if_false @INTRO1_15001
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15001
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15060
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15060
109@ = 1

:INTRO1_15067
goto @INTRO1_14776

:INTRO1_15074
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15095
stop_char_facial_talk 67@

:INTRO1_15095
set_fixed_camera_position 2488.323 {y} -1669.926 {z} 13.3261 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2487.4851 {y} -1669.385 {z} 13.2679 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_15153
if 
  86@ <> 3
goto_if_false @INTRO1_15418
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15411
if 
  75@ == 2
goto_if_false @INTRO1_15411
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15404
clear_look_at 65@
task_look_at_char 65@ {target} $scplayer {time} 15000
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15282
clear_look_at $scplayer
task_look_at_char $scplayer {target} 67@ {time} 30000

:INTRO1_15282
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_15361
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_15404

:INTRO1_15361
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15404
109@ = 1

:INTRO1_15411
goto @INTRO1_15153

:INTRO1_15418
stop_char_facial_talk $scplayer
109@ = 0

:INTRO1_15430
if 
  86@ <> 4
goto_if_false @INTRO1_15517
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15510
if 
  75@ == 2
goto_if_false @INTRO1_15510
109@ = 1
start_char_facial_talk $scplayer {duration} 20000

:INTRO1_15510
goto @INTRO1_15430

:INTRO1_15517
set_fixed_camera_position 2482.804 {y} -1666.785 {z} 13.785 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2483.7781 {y} -1666.774 {z} 13.5566 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_15634
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15634
stop_char_facial_talk $scplayer
109@ = 0

:INTRO1_15646
if 
  86@ <> 5
goto_if_false @INTRO1_15781
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15774
if 
  75@ == 2
goto_if_false @INTRO1_15774
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15767
start_char_facial_talk 67@ {duration} 20000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15767
clear_look_at 65@
task_look_at_char 65@ {target} 67@ {time} 15000

:INTRO1_15767
109@ = 1

:INTRO1_15774
goto @INTRO1_15646

:INTRO1_15781
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15802
stop_char_facial_talk 67@

:INTRO1_15802
109@ = 0

:INTRO1_15809
if 
  86@ <> 6
goto_if_false @INTRO1_16004
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15997
if 
  75@ == 2
goto_if_false @INTRO1_15997
109@ = 1
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_15960
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_15997

:INTRO1_15960
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:INTRO1_15997
goto @INTRO1_15809

:INTRO1_16004
stop_char_facial_talk $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_16077
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16082

:INTRO1_16077
clear_char_tasks $scplayer

:INTRO1_16082
set_fixed_camera_position 2482.9109 {y} -1662.575 {z} 14.0425 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2483.366 {y} -1663.4561 {z} 13.914 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_16140
if 
  86@ <> 7
goto_if_false @INTRO1_16275
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16268
if 
  75@ == 2
goto_if_false @INTRO1_16268
if 
  not is_char_dead 67@
goto_if_false @INTRO1_16261
start_char_facial_talk 67@ {duration} 20000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16261
clear_look_at 65@
task_look_at_char 65@ {target} 67@ {time} 15000

:INTRO1_16261
109@ = 1

:INTRO1_16268
goto @INTRO1_16140

:INTRO1_16275
if 
  not is_char_dead 67@
goto_if_false @INTRO1_16296
stop_char_facial_talk 67@

:INTRO1_16296
109@ = 0

:INTRO1_16303
if 
  86@ <> 8
goto_if_false @INTRO1_16508
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16501
if 
  75@ == 2
goto_if_false @INTRO1_16501
109@ = 1
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_16464
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16501

:INTRO1_16464
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:INTRO1_16501
goto @INTRO1_16303

:INTRO1_16508
stop_char_facial_talk $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_16581
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16586

:INTRO1_16581
clear_char_tasks $scplayer

:INTRO1_16586
set_fixed_camera_position 2490.0 {y} -1667.537 {z} 13.7938 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2489.0439 {y} -1667.4969 {z} 13.5038 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_16644
if 
  86@ <> 9
goto_if_false @INTRO1_16824
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16817
if 
  75@ == 2
goto_if_false @INTRO1_16817
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16810
clear_look_at 65@
task_look_at_char 65@ {target} $scplayer {time} 15000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 65@ {time} 15000
start_char_facial_talk 65@ {duration} 20000
task_play_anim 65@ {animationName} "BMX_TALKLEFT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_16810
109@ = 1

:INTRO1_16817
goto @INTRO1_16644

:INTRO1_16824
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16883
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_16883
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16904
stop_char_facial_talk 65@

:INTRO1_16904
TIMERB = 0

:INTRO1_16911
if 
  1500 > TIMERB
goto_if_false @INTRO1_16941
wait 0
goto @INTRO1_16911

:INTRO1_16941
set_fixed_camera_position 2474.3059 {y} -1668.478 {z} 13.4599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2475.302 {y} -1668.458 {z} 13.5477 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 76@
goto_if_false @INTRO1_17018
set_car_heading 76@ {heading} 0.0

:INTRO1_17018
109@ = 0

:INTRO1_17025
if 
  86@ <> 10
goto_if_false @INTRO1_17160
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_17153
if 
  75@ == 2
goto_if_false @INTRO1_17153
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17146
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 15000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 15000
start_char_facial_talk 66@ {duration} 20000

:INTRO1_17146
109@ = 1

:INTRO1_17153
goto @INTRO1_17025

:INTRO1_17160
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17181
stop_char_facial_talk 66@

:INTRO1_17181
TIMERB = 0
109@ = 0

:INTRO1_17195
if 
  86@ <> 11
goto_if_false @INTRO1_17493
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_17323
if 
  75@ == 2
goto_if_false @INTRO1_17323
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17323
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 12500
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 12500
start_char_facial_talk 66@ {duration} 20000
109@ = 1

:INTRO1_17323
if 
  TIMERB > 3000
goto_if_false @INTRO1_17486
if 
  not is_char_dead 65@
goto_if_false @INTRO1_17414
if 
  not is_car_dead 76@
goto_if_false @INTRO1_17414
clear_char_tasks 65@
task_car_drive_to_coord 65@ {vehicle} 76@ {x} 2501.2439 {y} -1657.769 {z} 12.3949 {speed} 4.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17414
if 
  not is_char_dead 67@
goto_if_false @INTRO1_17486
if 
  not is_car_dead 78@
goto_if_false @INTRO1_17486
clear_char_tasks 67@
task_car_drive_to_coord 67@ {vehicle} 78@ {x} 2497.1689 {y} -1680.446 {z} 12.3614 {speed} 6.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17486
goto @INTRO1_17195

:INTRO1_17493
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17514
stop_char_facial_talk 66@

:INTRO1_17514
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17602
if 
  not is_car_dead 77@
goto_if_false @INTRO1_17602
if 
  is_char_in_any_car 66@
goto_if_false @INTRO1_17602
clear_look_at 66@
task_car_drive_to_coord 66@ {vehicle} 77@ {x} 2466.27 {y} -1690.28 {z} 12.51 {speed} 2.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17602
TIMERB = 0

:INTRO1_17609
if 
  3000 > TIMERB
goto_if_false @INTRO1_17639
wait 0
goto @INTRO1_17609

:INTRO1_17639
skip_cutscene_end 
camera_reset_new_scriptables 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_entry_exit 'CARLS' {state} True
skip_cutscene_start_internal @INTRO1_18014
clear_prints 
set_fixed_camera_position 2499.3059 {y} -1678.921 {z} 13.0313 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2499.0439 {y} -1679.8521 {z} 13.2865 {switchStyle} SwitchType.JumpCut
delete_car 76@
delete_car 77@
delete_car 78@
delete_char 65@
delete_char 66@
delete_char 67@
print_help 'SAVE_G'
TIMERB = 0

:INTRO1_17779
if 
  6000 > TIMERB
goto_if_false @INTRO1_17809
wait 0
goto @INTRO1_17779

:INTRO1_17809
set_fixed_camera_position 2504.28 {y} -1682.8571 {z} 15.1427 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2504.3059 {y} -1683.851 {z} 15.0385 {switchStyle} SwitchType.JumpCut
print_help 'SAVE_G2'
TIMERB = 0

:INTRO1_17878
if 
  6000 > TIMERB
goto_if_false @INTRO1_17908
wait 0
goto @INTRO1_17878

:INTRO1_17908
set_fixed_camera_position 2494.863 {y} -1683.051 {z} 13.0207 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2494.939 {y} -1684.037 {z} 13.1717 {switchStyle} SwitchType.JumpCut
print_help 'SAVE_G3'
set_player_control $player1 {state} True
TIMERB = 0

:INTRO1_17984
if 
  6000 > TIMERB
goto_if_false @INTRO1_18014
wait 0
goto @INTRO1_17984

:INTRO1_18014
skip_cutscene_end 
clear_char_tasks $scplayer
set_char_heading $scplayer {heading} 82.97
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
goto @INTRO1_18071

:INTRO1_18053
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:INTRO1_18071
$flag_intro_mission_counter += 1
register_mission_passed 'INTRO_1'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
terminate_all_scripts_with_this_name 'INT'
remove_blip $save_house_blip
$save_house_blip = add_short_range_sprite_blip_for_contact_point $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0] {sprite} RadarSprite.SaveGame
change_blip_display $save_house_blip {display} BlipDisplay.BlipOnly
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
remove_blip $intro_contact_blip
switch_entry_exit 'CARLS' {state} True
return 

:INTRO1_18183
$onmission = 0
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 404
mark_model_as_no_longer_needed 481
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 412
dont_suppress_car_model 412
mark_model_as_no_longer_needed 346
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
remove_car_recording 201
remove_car_recording 205
remove_car_recording 206
remove_animation "MISC"
remove_animation "GANGS"
switch_ped_roads_on 1782.802 {leftBottomY} -1203.4969 {leftBottomZ} 0.0 {rightTopX} 1788.2729 {rightTopY} -1236.15 {rightTopZ} 20.0
if 
  not is_car_dead 51@
goto_if_false @INTRO1_18371
stop_playback_recorded_car 51@
goto @INTRO1_18376

:INTRO1_18371
stop_playback_recorded_car 51@

:INTRO1_18376
enable_ambient_crime True
delete_car 76@
delete_car 77@
delete_car 78@
remove_char_elegantly 65@
remove_char_elegantly 66@
remove_char_elegantly 67@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
unload_special_character 1
unload_special_character 10
unload_special_character 3
remove_blip 39@
remove_blip 40@
remove_blip 43@
mission_has_finished 
return 

:INTRO1_18455
if 
  not is_car_dead 37@
goto_if_false @INTRO1_19510
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_19407
if 
  92@ == 1
goto_if_false @INTRO1_18748
if 
  not is_char_dead 67@
goto_if_false @INTRO1_18748
if 
  not locate_char_any_means_char_3d $scplayer {target} 67@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18615
print_now 'INTRO2G' {time} 6000 {flag} 1
if 
  115@ == 1
goto_if_false @INTRO1_18601
115@ = 0

:INTRO1_18601
$blob_flag = 0
goto @INTRO1_18748

:INTRO1_18615
if 
  115@ == 0
goto_if_false @INTRO1_18730
if 
  46@ == 4
goto_if_false @INTRO1_18730
if 
  86@ > 5
goto_if_false @INTRO1_18730
if 
  not is_char_dead 67@
goto_if_false @INTRO1_18730
if 
  locate_char_any_means_char_2d 67@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18730
115@ = 1
gosub @INTRO1_20578

:INTRO1_18730
clear_this_print 'INTRO2G'
$blob_flag = 1

:INTRO1_18748
if 
  92@ == 2
goto_if_false @INTRO1_19180
if 
  not is_char_dead 66@
goto_if_false @INTRO1_18988
if 
  not locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18873
print_now 'INTRO2J' {time} 6000 {flag} 1
if 
  115@ == 1
goto_if_false @INTRO1_18859
115@ = 0

:INTRO1_18859
$blob_flag = 0
goto @INTRO1_18988

:INTRO1_18873
if 
  115@ == 0
goto_if_false @INTRO1_18970
if 
  86@ > 1
goto_if_false @INTRO1_18970
if 
  not is_char_dead 66@
goto_if_false @INTRO1_18970
if 
  locate_char_any_means_char_2d 66@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18970
115@ = 1
gosub @INTRO1_20578

:INTRO1_18970
clear_this_print 'INTRO2J'
$blob_flag = 1

:INTRO1_18988
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19180
if 
  not locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_19072
if 
  108@ == 1
goto_if_false @INTRO1_19065
108@ = 0

:INTRO1_19065
goto @INTRO1_19180

:INTRO1_19072
if 
  108@ == 0
goto_if_false @INTRO1_19169
if 
  86@ > 2
goto_if_false @INTRO1_19169
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19169
if 
  locate_char_any_means_char_2d 65@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_19169
108@ = 1
gosub @INTRO1_21273

:INTRO1_19169
clear_this_print 'INTRO2J'

:INTRO1_19180
if 
  54@ == 0
goto_if_false @INTRO1_19400
remove_blip 43@
$blob_flag = 1
if 
  92@ == 0
goto_if_false @INTRO1_19285
if 
  not is_char_dead 67@
goto_if_false @INTRO1_19264
remove_blip 39@
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True

:INTRO1_19264
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
92@ = 1

:INTRO1_19285
if 
  92@ == 1
goto_if_false @INTRO1_19339
if 
  not is_char_dead 67@
goto_if_false @INTRO1_19339
remove_blip 39@
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True

:INTRO1_19339
if 
  92@ == 2
goto_if_false @INTRO1_19393
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19393
remove_blip 40@
40@ = add_blip_for_char 66@
set_blip_as_friendly 40@ {state} True

:INTRO1_19393
54@ = 1

:INTRO1_19400
goto @INTRO1_19503

:INTRO1_19407
if 
  54@ == 1
goto_if_false @INTRO1_19503
remove_blip 43@
remove_blip 40@
remove_blip 39@
43@ = add_blip_for_car 37@
set_blip_as_friendly 43@ {state} True
if 
  92@ <> 0
goto_if_false @INTRO1_19489
print_now 'INTRO2E' {time} 10000 {flag} 1

:INTRO1_19489
$blob_flag = 0
54@ = 0

:INTRO1_19503
goto @INTRO1_19533

:INTRO1_19510
print_now 'INT2_F4' {time} 10000 {flag} 1
45@ = 1

:INTRO1_19533
if 
  is_char_dead 65@
goto_if_false @INTRO1_19579
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_19675

:INTRO1_19579
if 
  83@ == 0
goto_if_false @INTRO1_19675
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19675
if 
  not is_car_dead 76@
goto_if_false @INTRO1_19675
if 
  is_char_in_car 65@ {vehicle} 76@
goto_if_false @INTRO1_19675
clear_char_tasks 65@
perform_sequence_task 65@ {sequence} 82@
set_car_straight_line_distance 76@ {distance} 10
83@ = 1

:INTRO1_19675
if 
  is_char_dead 66@
goto_if_false @INTRO1_19721
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_19817

:INTRO1_19721
if 
  85@ == 0
goto_if_false @INTRO1_19817
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19817
if 
  not is_car_dead 77@
goto_if_false @INTRO1_19817
if 
  is_char_in_car 66@ {vehicle} 77@
goto_if_false @INTRO1_19817
clear_char_tasks 66@
perform_sequence_task 66@ {sequence} 82@
set_car_straight_line_distance 77@ {distance} 10
85@ = 1

:INTRO1_19817
if 
  92@ <> 2
goto_if_false @INTRO1_19977
if 
  is_char_dead 67@
goto_if_false @INTRO1_19881
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_19977

:INTRO1_19881
if 
  84@ == 0
goto_if_false @INTRO1_19977
if 
  not is_char_dead 67@
goto_if_false @INTRO1_19977
if 
  not is_car_dead 78@
goto_if_false @INTRO1_19977
if 
  is_char_in_car 67@ {vehicle} 78@
goto_if_false @INTRO1_19977
clear_char_tasks 67@
perform_sequence_task 67@ {sequence} 82@
set_car_straight_line_distance 78@ {distance} 10
84@ = 1

:INTRO1_19977
if and
  83@ == 1
  84@ == 1
  85@ == 1
goto_if_false @INTRO1_20021
clear_sequence_task 82@
83@ = 2

:INTRO1_20021
return 

:INTRO1_20023
if 
  TIMERB > 1000
goto_if_false @INTRO1_20345
if 
  not is_char_dead 65@(48@,3i)
goto_if_false @INTRO1_20305
if 
  not is_car_dead 76@(48@,3i)
goto_if_false @INTRO1_20268
if 
  is_char_in_car 65@(48@,3i) {vehicle} 76@(48@,3i)
goto_if_false @INTRO1_20261
if 
  locate_char_any_means_char_2d 65@(48@,3i) {target} $scplayer {xRadius} 130.0 {yRadius} 130.0 {drawSphere} False
goto_if_false @INTRO1_20206
if 
  58@(48@,3i) == 0
goto_if_false @INTRO1_20199
freeze_char_position_and_dont_load_collision 65@(48@,3i) {state} False
freeze_car_position_and_dont_load_collision 76@(48@,3i) {state} False
58@(48@,3i) = 1

:INTRO1_20199
goto @INTRO1_20261

:INTRO1_20206
if 
  58@(48@,3i) == 1
goto_if_false @INTRO1_20261
freeze_char_position_and_dont_load_collision 65@(48@,3i) {state} True
freeze_car_position_and_dont_load_collision 76@(48@,3i) {state} True
58@(48@,3i) = 0

:INTRO1_20261
goto @INTRO1_20305

:INTRO1_20268
clear_char_tasks 65@(48@,3i)
task_go_to_coord_any_means 65@(48@,3i) {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} MoveState.Sprint {vehicle} -1

:INTRO1_20305
48@ += 1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 107@
goto_if_false @INTRO1_20338
48@ = 0

:INTRO1_20338
TIMERB = 0

:INTRO1_20345
return 

:INTRO1_20347
if or
  75@ == 0
  75@ == 1
goto_if_false @INTRO1_20417
if 
  is_int_lvar_greater_or_equal_to_int_lvar 63@ >= 86@
goto_if_false @INTRO1_20417
if 
  TIMERA > 200
goto_if_false @INTRO1_20417
gosub @INTRO1_20482

:INTRO1_20417
if 
  75@ == 2
goto_if_false @INTRO1_20480
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO1_20480
75@ = 0
86@ += 1
109@ = 0
clear_prints 
TIMERA = 0

:INTRO1_20480
return 

:INTRO1_20482
if 
  75@ == 0
goto_if_false @INTRO1_20518
load_mission_audio MissionAudioSlot.Slot1 {audioId} 93@(86@,14i)
75@ = 1

:INTRO1_20518
if 
  75@ == 1
goto_if_false @INTRO1_20576
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO1_20576
print_now $van_death_counter_zero5(86@,14s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
75@ = 2

:INTRO1_20576
return 

:INTRO1_20578
clear_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 1
goto_if_false @INTRO1_20718
if 
  115@ == 1
goto_if_false @INTRO1_20718
if 
  64@ == 0
goto_if_false @INTRO1_20643
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10038

:INTRO1_20643
if 
  64@ == 1
goto_if_false @INTRO1_20668
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10039

:INTRO1_20668
if 
  64@ == 2
goto_if_false @INTRO1_20693
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10040

:INTRO1_20693
if 
  64@ == 3
goto_if_false @INTRO1_20718
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10036

:INTRO1_20718
if 
  92@ == 2
goto_if_false @INTRO1_20854
if 
  115@ == 1
goto_if_false @INTRO1_20854
if 
  64@ == 0
goto_if_false @INTRO1_20779
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10018

:INTRO1_20779
if 
  64@ == 1
goto_if_false @INTRO1_20804
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10017

:INTRO1_20804
if 
  64@ == 2
goto_if_false @INTRO1_20829
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10019

:INTRO1_20829
if 
  64@ == 3
goto_if_false @INTRO1_20854
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10020

:INTRO1_20854
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1
gosub @INTRO1_21660
play_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 1
goto_if_false @INTRO1_21053
if 
  115@ == 1
goto_if_false @INTRO1_21053
if 
  64@ == 0
goto_if_false @INTRO1_20951
print_now 'INT1_EA' {time} 3000 {flag} 1

:INTRO1_20951
if 
  64@ == 1
goto_if_false @INTRO1_20985
print_now 'INT1_EB' {time} 3000 {flag} 1

:INTRO1_20985
if 
  64@ == 2
goto_if_false @INTRO1_21019
print_now 'INT1_EC' {time} 3000 {flag} 1

:INTRO1_21019
if 
  64@ == 3
goto_if_false @INTRO1_21053
print_now 'INT1_BD' {time} 3000 {flag} 1

:INTRO1_21053
if 
  92@ == 2
goto_if_false @INTRO1_21225
if 
  115@ == 1
goto_if_false @INTRO1_21225
if 
  64@ == 0
goto_if_false @INTRO1_21123
print_now 'INT1_EH' {time} 3000 {flag} 1

:INTRO1_21123
if 
  64@ == 1
goto_if_false @INTRO1_21157
print_now 'INT1_EG' {time} 3000 {flag} 1

:INTRO1_21157
if 
  64@ == 2
goto_if_false @INTRO1_21191
print_now 'INT1_EI' {time} 3000 {flag} 1

:INTRO1_21191
if 
  64@ == 3
goto_if_false @INTRO1_21225
print_now 'INT1_FG' {time} 3000 {flag} 1

:INTRO1_21225
gosub @INTRO1_22075
64@ += 1
if 
  64@ > 3
goto_if_false @INTRO1_21264
64@ = 0

:INTRO1_21264
TIMERA = 0
return 

:INTRO1_21273
clear_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 2
goto_if_false @INTRO1_21413
if 
  108@ == 1
goto_if_false @INTRO1_21413
if 
  87@ == 0
goto_if_false @INTRO1_21338
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10063

:INTRO1_21338
if 
  87@ == 1
goto_if_false @INTRO1_21363
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10060

:INTRO1_21363
if 
  87@ == 2
goto_if_false @INTRO1_21388
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10061

:INTRO1_21388
if 
  87@ == 3
goto_if_false @INTRO1_21413
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10062

:INTRO1_21413
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1
gosub @INTRO1_21660
play_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 2
goto_if_false @INTRO1_21612
if 
  108@ == 1
goto_if_false @INTRO1_21612
if 
  87@ == 0
goto_if_false @INTRO1_21510
print_now 'INT1_EJ' {time} 3000 {flag} 1

:INTRO1_21510
if 
  87@ == 1
goto_if_false @INTRO1_21544
print_now 'INT1_ED' {time} 3000 {flag} 1

:INTRO1_21544
if 
  87@ == 2
goto_if_false @INTRO1_21578
print_now 'INT1_EE' {time} 3000 {flag} 1

:INTRO1_21578
if 
  87@ == 3
goto_if_false @INTRO1_21612
print_now 'INT1_EF' {time} 3000 {flag} 1

:INTRO1_21612
gosub @INTRO1_22075
87@ += 1
if 
  87@ > 3
goto_if_false @INTRO1_21651
87@ = 0

:INTRO1_21651
TIMERA = 0
return 

:INTRO1_21660
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO1_22073
wait 0
if 
  is_car_dead 37@
goto_if_false @INTRO1_21695

:INTRO1_21695
if 
  is_char_dead 65@
goto_if_false @INTRO1_21736
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21736
if 
  is_char_dead 66@
goto_if_false @INTRO1_21777
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21777
if 
  92@ <> 2
goto_if_false @INTRO1_21836
if 
  is_char_dead 67@
goto_if_false @INTRO1_21836
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21836
if 
  92@ == 1
goto_if_false @INTRO1_21957
if 
  not is_char_dead 67@
goto_if_false @INTRO1_21957
if and
  locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_21957
return 

:INTRO1_21957
if 
  92@ == 2
goto_if_false @INTRO1_22066
if 
  not is_char_dead 66@
goto_if_false @INTRO1_22066
if and
  locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22066
return 

:INTRO1_22066
goto @INTRO1_21660

:INTRO1_22073
return 

:INTRO1_22075
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO1_22488
wait 0
if 
  is_car_dead 37@
goto_if_false @INTRO1_22110

:INTRO1_22110
if 
  is_char_dead 65@
goto_if_false @INTRO1_22151
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22151
if 
  is_char_dead 66@
goto_if_false @INTRO1_22192
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22192
if 
  92@ <> 2
goto_if_false @INTRO1_22251
if 
  is_char_dead 67@
goto_if_false @INTRO1_22251
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22251
if 
  92@ == 1
goto_if_false @INTRO1_22372
if 
  not is_char_dead 67@
goto_if_false @INTRO1_22372
if and
  locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22372
return 

:INTRO1_22372
if 
  92@ == 2
goto_if_false @INTRO1_22481
if 
  not is_char_dead 66@
goto_if_false @INTRO1_22481
if and
  locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22481
return 

:INTRO1_22481
goto @INTRO1_22075

:INTRO1_22488
return 

//-------------Mission 12---------------
// Originally: Ryder

:INTRO2
script_name 'INTRO2'
gosub @INTRO2_908
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO2_38
gosub @INTRO2_13667

:INTRO2_38
gosub @INTRO2_14795
terminate_this_script 

:INTRO2_47
switch_start 40@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO2_906 {caseNum1} 0 {caseLabel1} @INTRO2_110 {caseNum2} 1 {caseLabel2} @INTRO2_498 {caseNum3} 2 {caseLabel3} @INTRO2_600 {caseNum4} 3 {caseLabel4} @INTRO2_768 {caseNum5} 4 {caseLabel5} @INTRO2_848 {caseNum6} -1 {caseLabel6} @INTRO2_906 {caseNum7} -1 {caseLabel7} @INTRO2_906

:INTRO2_110
set_var_text_label s$6502[0] = 'INT2_CA'
set_var_text_label s$6502[1] = 'INT2_CB'
set_var_text_label s$6502[2] = 'INT2_CC'
set_var_text_label s$6502[3] = 'INT2_CD'
set_var_text_label s$6502[4] = 'INT2_CE'
set_var_text_label s$6502[5] = 'INT2_CF'
set_var_text_label s$6502[6] = 'INT2_CG'
set_var_text_label s$6502[7] = 'INT2_BA'
set_var_text_label s$6502[8] = 'INT2_BB'
set_var_text_label s$6502[9] = 'INT2_BC'
set_var_text_label s$6502[10] = 'INT2_BD'
set_var_text_label s$6502[11] = 'INT2_BE'
set_var_text_label s$6502[12] = 'INT2_BF'
set_var_text_label s$6502[13] = 'INT2_BG'
set_var_text_label s$6502[14] = 'INT2_BH'
set_var_text_label s$6502[15] = 'INT2_BJ'
set_var_text_label s$6502[16] = 'INT2_BK'
set_lvar_int_to_constant 70@ = 10204
set_lvar_int_to_constant 71@ = 10216
set_lvar_int_to_constant 72@ = 10217
set_lvar_int_to_constant 73@ = 10218
set_lvar_int_to_constant 74@ = 10205
set_lvar_int_to_constant 75@ = 10219
set_lvar_int_to_constant 76@ = 10220
set_lvar_int_to_constant 77@ = 10210
set_lvar_int_to_constant 78@ = 10200
set_lvar_int_to_constant 79@ = 10211
set_lvar_int_to_constant 80@ = 10201
set_lvar_int_to_constant 81@ = 10212
set_lvar_int_to_constant 82@ = 10202
set_lvar_int_to_constant 83@ = 10213
set_lvar_int_to_constant 84@ = 10214
set_lvar_int_to_constant 85@ = 10203
set_lvar_int_to_constant 86@ = 10215
50@ = 16
goto @INTRO2_906

:INTRO2_498
set_var_text_label s$6502[0] = 'INT2_FA'
set_var_text_label s$6502[1] = 'INT2_FB'
set_var_text_label s$6502[2] = 'INT2_FC'
set_var_text_label s$6502[3] = 'INT2_FD'
set_lvar_int_to_constant 70@ = 10225
set_lvar_int_to_constant 71@ = 10226
set_lvar_int_to_constant 72@ = 10227
set_lvar_int_to_constant 73@ = 10228
50@ = 3
goto @INTRO2_906

:INTRO2_600
set_var_text_label s$6502[0] = 'INT2_GA'
set_var_text_label s$6502[1] = 'INT2_GB'
set_var_text_label s$6502[2] = 'INT2_GC'
set_var_text_label s$6502[3] = 'INT2_GD'
set_var_text_label s$6502[4] = 'INT2_GE'
set_var_text_label s$6502[5] = 'INT2_GF'
set_var_text_label s$6502[6] = 'INT2_HB'
set_lvar_int_to_constant 70@ = 10229
set_lvar_int_to_constant 71@ = 10246
set_lvar_int_to_constant 72@ = 10230
set_lvar_int_to_constant 73@ = 10247
set_lvar_int_to_constant 74@ = 10206
set_lvar_int_to_constant 75@ = 10231
set_lvar_int_to_constant 76@ = 10232
50@ = 7
goto @INTRO2_906

:INTRO2_768
set_var_text_label s$6502[0] = 'INT2_NB'
set_var_text_label s$6502[1] = 'INT2_NC'
set_var_text_label s$6502[2] = 'INT2_ND'
set_lvar_int_to_constant 70@ = 10243
set_lvar_int_to_constant 71@ = 10244
set_lvar_int_to_constant 72@ = 10245
50@ = 2
goto @INTRO2_906

:INTRO2_848
set_var_text_label s$6502[0] = 'INT2_JA'
set_var_text_label s$6502[1] = 'INT2_JB'
set_lvar_int_to_constant 70@ = 10235
set_lvar_int_to_constant 71@ = 10236
50@ = 1
goto @INTRO2_906

:INTRO2_906
return 

:INTRO2_908
register_mission_given 
$onmission = 1
36@ = 0
38@ = 0
$flag_changed_hair_intro2 = 0
59@ = 0
60@ = 0
$flag_menace_buyfood = 0
44@ = 0
66@ = 0
$cj_vomits_for_menace = 0
68@ = 0
61@ = 0
69@ = 0
48@ = 0
63@ = 0
57@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0.05
91@ = 0.12
92@ = 0.0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 5
wait 0
load_mission_text 'INTRO2'
goto @INTRO2_1204
$clothes_hat_cam_pointY = create_char PedType.Mission1 {modelId} $shopkeeper_model_shops {x} $flag_bought_some_food {y} $vomit_foodshop {z} $vomitX

:INTRO2_1204
set_area_visible 2
load_cutscene 'INTRO2A'

:INTRO2_1219
if 
  not has_cutscene_loaded 
goto_if_false @INTRO2_1243
wait 0
goto @INTRO2_1219

:INTRO2_1243
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO2_1252
if 
  not has_cutscene_finished 
goto_if_false @INTRO2_1276
wait 0
goto @INTRO2_1252

:INTRO2_1276
do_fade 0 {direction} Fade.Out

:INTRO2_1282
if 
  get_fading_status 
goto_if_false @INTRO2_1306
wait 0
goto @INTRO2_1282

:INTRO2_1306
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
remove_blip $spray_shop1
load_special_character 1 {modelName} 'RYDER2'
request_model 600
request_model #CIGAR
request_model #CIGAR_GLOW
load_all_models_now 

:INTRO2_1352
if or
  not has_model_loaded 600
  not has_model_loaded #CIGAR
  not has_model_loaded #CIGAR_GLOW
  not has_special_character_loaded 1
goto_if_false @INTRO2_1391
wait 0
goto @INTRO2_1352

:INTRO2_1391
switch_entry_exit 'BARBERS' {state} False
switch_entry_exit 'BARBER2' {state} False
switch_entry_exit 'BARBER3' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'FDBURG' {state} False
clear_char_tasks $scplayer
clear_char_tasks_immediately $scplayer
switch_car_generator $gen_car5 {amount} 0
clear_area $ryder_carX {y} $ryder_carY {z} $ryder_carZ {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 600 {text} "_SHERM__"
$ryder_car = create_car 600 {x} $ryder_carX {y} $ryder_carY {z} $ryder_carZ
set_can_burst_car_tyres $ryder_car {state} False
change_car_colour $ryder_car {color1} 84 {color2} 84
set_car_heading $ryder_car {heading} 0.0
set_car_can_be_visibly_damaged $ryder_car {state} False
set_radio_channel RadioChannel.RadioLosSantos
$ryder = create_char PedType.Mission1 {modelId} 290 {x} 2475.29 {y} -1687.85 {z} 12.51
67@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $ryder {handleOrTemplate} 67@
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $scplayer {heading} 176.0
set_char_never_targetted $ryder {state} True
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
set_char_suffers_critical_hits $ryder {state} False
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_get_out_upside_down_car $ryder {state} False
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
34@ = add_blip_for_coord 2074.3999 {y} -1800.8 {z} 12.5
remove_blip 34@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10209
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2464.03 {y} -1687.61 {z} 12.51
set_char_heading $scplayer {heading} 252.27
set_area_visible 0
load_scene 2464.03 {y} -1687.61 {z} 12.51
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_1851
goto @INTRO2_13667

:INTRO2_1851
if 
  is_char_dead $ryder
goto_if_false @INTRO2_1874
goto @INTRO2_13667

:INTRO2_1874
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_1978
wait 0
if 
  is_char_dead $ryder
goto_if_false @INTRO2_1932
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_1932
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_1971
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_1971
goto @INTRO2_1874

:INTRO2_1978
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_AA' {time} 10000 {flag} 1

:INTRO2_1998
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_2102
wait 0
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2056
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2056
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2095
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2095
goto @INTRO2_1998

:INTRO2_2102
$blob_flag = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 0
gosub @INTRO2_47
clear_this_print 'INT2_1'
print_now 'INT2_6' {time} 6000 {flag} 1
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2210
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2210
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2249
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2249
$flag_player_on_menace_mission = 1

:INTRO2_2256
if or
  not locate_car_3d $ryder_car {x} 2077.8401 {y} -1792.59 {z} 12.38 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $ryder_car
  not is_char_in_car $ryder {vehicle} $ryder_car
  not is_vehicle_on_all_wheels $ryder_car
goto_if_false @INTRO2_2886
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @INTRO2_2352
goto @INTRO2_13692

:INTRO2_2352
if 
  48@ == 0
goto_if_false @INTRO2_2436
if 
  locate_char_any_means_3d $scplayer {x} 2077.8401 {y} -1792.59 {z} 12.38 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @INTRO2_2436
print_help 'HELP44B'
48@ = 1

:INTRO2_2436
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2475
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2475
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2521
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667
goto @INTRO2_2724

:INTRO2_2521
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_2632
if 
  38@ == 0
goto_if_false @INTRO2_2625
remove_blip 37@
remove_blip 34@
34@ = add_blip_for_coord 2077.8401 {y} -1792.59 {z} 12.56
$blob_flag = 1
print_now 'HOOD2_A' {time} 6000 {flag} 1
TIMERB = 0
38@ = 1

:INTRO2_2625
goto @INTRO2_2724

:INTRO2_2632
if 
  38@ == 1
goto_if_false @INTRO2_2724
remove_blip 34@
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
$blob_flag = 0
gosub @INTRO2_15095
print_now 'INT2_6' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
38@ = 0

:INTRO2_2724
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_2801
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_2801
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_2801
if 
  TIMERB > 3000
goto_if_false @INTRO2_2801
gosub @INTRO2_15999

:INTRO2_2801
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2840
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2840
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2879
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2879
goto @INTRO2_2256

:INTRO2_2886
switch_widescreen True
set_player_control $player1 {state} False
clear_help 
switch_entry_exit 'BARBERS' {state} True
set_fixed_camera_position 2086.4241 {y} -1783.578 {z} 16.9391 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2085.603 {y} -1784.1429 {z} 16.8617 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:INTRO2_2970
if 
  3000 > TIMERB
goto_if_false @INTRO2_3058
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3051
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3051
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3051
gosub @INTRO2_15999

:INTRO2_3051
goto @INTRO2_2970

:INTRO2_3058
skip_cutscene_start_internal @INTRO2_3229
set_fixed_camera_position 2075.418 {y} -1794.748 {z} 14.3637 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2074.4399 {y} -1794.564 {z} 14.2591 {switchStyle} SwitchType.JumpCut
print_help 'INT2_8'
set_player_control $player1 {state} True
TIMERB = 0

:INTRO2_3141
if 
  3000 > TIMERB
goto_if_false @INTRO2_3229
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3222
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3222
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3222
gosub @INTRO2_15999

:INTRO2_3222
goto @INTRO2_3141

:INTRO2_3229
skip_cutscene_end 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
remove_blip 34@
34@ = add_blip_for_coord 413.6397 {y} -19.9389 {z} 1000.812
set_blip_entry_exit 34@ {x} 2073.042 {y} -1794.563 {radius} 20.0
$flag_changed_hair_intro2 = 0

:INTRO2_3298
if or
  $flag_changed_hair_intro2 == 0
  not locate_char_on_foot_3d $scplayer {x} 2072.1101 {y} -1793.8 {z} 12.56 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3809
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_3396
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3396
if 
  is_char_dead $ryder
goto_if_false @INTRO2_3435
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3435
if 
  57@ == 0
goto_if_false @INTRO2_3525
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3525
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3525
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3518
gosub @INTRO2_15999
goto @INTRO2_3525

:INTRO2_3518
57@ = 1

:INTRO2_3525
58@ = get_area_visible 
if 
  58@ == 2
goto_if_false @INTRO2_3654
if 
  59@ == 0
goto_if_false @INTRO2_3647
if 
  locate_char_on_foot_3d $scplayer {x} 411.68 {y} -21.77 {z} 1000.79 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3647
clear_prints 
print_now 'INT2_9' {time} 5000 {flag} 1
request_animation "SHOP"
59@ = 1

:INTRO2_3647
goto @INTRO2_3743

:INTRO2_3654
if 
  59@ == 1
goto_if_false @INTRO2_3743
if 
  locate_char_on_foot_3d $scplayer {x} 2072.1101 {y} -1793.8 {z} 12.56 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3743
print_now 'INT2_8' {time} 10000 {flag} 1
59@ = 0

:INTRO2_3743
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @INTRO2_3802
if 
  $flag_attacked_keeper_food == 1
goto_if_false @INTRO2_3802
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3802
goto @INTRO2_3298

:INTRO2_3809
do_fade 0 {direction} Fade.Out
clear_prints 
remove_blip 34@
switch_entry_exit 'FDPIZA' {state} True
switch_widescreen True
set_player_control $player1 {state} False
clear_area 2072.04 {y} -1800.92 {z} 12.55 {radius} 200.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_near_clip 0.2
task_stand_still $scplayer {time} 10

:INTRO2_3898
if 
  not has_animation_loaded "SHOP"
goto_if_false @INTRO2_3934
wait 0
do_fade 0 {direction} Fade.Out
goto @INTRO2_3898

:INTRO2_3934
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_4403
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4373

:INTRO2_3966
if 
  is_car_waiting_for_world_collision $ryder_car
goto_if_false @INTRO2_4038
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_4025
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4025
do_fade 0 {direction} Fade.Out
goto @INTRO2_3966

:INTRO2_4038
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4270
set_char_coordinates $scplayer {x} 2072.55 {y} -1794.67 {z} 12.56
set_char_heading $scplayer {heading} 240.55
clear_char_tasks_immediately $ryder
if 
  is_char_in_any_car $ryder
goto_if_false @INTRO2_4132
warp_char_from_car_to_coord $ryder {x} 2076.4919 {y} -1796.413 {z} 12.5545
goto @INTRO2_4152

:INTRO2_4132
set_char_coordinates $ryder {x} 2076.4919 {y} -1796.413 {z} 12.5545

:INTRO2_4152
set_char_heading $ryder {heading} 80.0
set_char_health $ryder {health} 500
46@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 14.2
task_pick_up_object $ryder {object} 46@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim $ryder {animationName} "SMOKE_RYD" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_4270
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_4340
clear_area 2078.0901 {y} -1796.21 {z} 12.3828 {radius} 100.0 {clearParticles} True
set_car_coordinates $ryder_car {x} 2078.0901 {y} -1796.21 {z} 12.3828
set_car_heading $ryder_car {heading} 176.9536

:INTRO2_4340
fix_car_door $ryder_car {door} CarDoor.LeftFrontDoor
fix_car_door $ryder_car {door} CarDoor.RightFrontDoor
close_all_car_doors $ryder_car
lock_car_doors $ryder_car {lockStatus} CarLock.LockoutPlayerOnly
goto @INTRO2_4396

:INTRO2_4373
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4396
goto @INTRO2_4426

:INTRO2_4403
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4426
TIMERA = 0

:INTRO2_4433
if 
  TIMERA <= 400
goto_if_false @INTRO2_4469
wait 0
do_fade 0 {direction} Fade.Out
goto @INTRO2_4433

:INTRO2_4469
clear_prints 
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4535
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2075.53 {y} -1796.3199 {z} 12.55 {speed} MoveState.Walk {time} 10000
clear_look_at -1
task_look_at_char -1 {target} $ryder {time} 4500
close_sequence_task 45@

:INTRO2_4535
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
set_fixed_camera_position 2074.866 {y} -1800.882 {z} 13.4518 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.0669 {y} -1799.903 {z} 13.4124 {switchStyle} SwitchType.JumpCut
clear_prints 
do_fade 500 {direction} Fade.In
63@ = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 1
gosub @INTRO2_47
TIMERA = 0

:INTRO2_4657
if 
  TIMERA <= 1700
goto_if_false @INTRO2_4694
wait 0
gosub @INTRO2_15690
goto @INTRO2_4657

:INTRO2_4694
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_4719
skip_cutscene_start_internal @INTRO2_6566

:INTRO2_4719
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4751
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 2000

:INTRO2_4751
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4804
55@ = create_fx_system_on_char "EXHALE" {char} $ryder {xOffset} 90@ {yOffset} 91@ {zOffset} 92@ {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 55@ {handle} $ryder {pedBone} PedBone.Neck

:INTRO2_4804
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4825
stop_char_facial_talk $ryder

:INTRO2_4825
if or
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "TASH"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "GOATEE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "BEARD"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "PLAYER_FACE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "HIGHFADE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "FLATTOP"
goto_if_false @INTRO2_5442
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10221
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10222
64@ = 0

:INTRO2_4952
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_5021
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5014
if 
  56@ == 2
goto_if_false @INTRO2_5014

:INTRO2_5014
goto @INTRO2_4952

:INTRO2_5021
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_DA' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5065
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5065
64@ = 0

:INTRO2_5072
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_5141
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5134
if 
  56@ == 2
goto_if_false @INTRO2_5134

:INTRO2_5134
goto @INTRO2_5072

:INTRO2_5141
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5162
stop_char_facial_talk $ryder

:INTRO2_5162
set_fixed_camera_position 2074.8269 {y} -1797.4139 {z} 14.233 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.4319 {y} -1796.6639 {z} 13.9678 {switchStyle} SwitchType.JumpCut
wait 1000
64@ = 0

:INTRO2_5225
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO2_5294
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5287
if 
  56@ == 2
goto_if_false @INTRO2_5287

:INTRO2_5287
goto @INTRO2_5225

:INTRO2_5294
play_mission_audio MissionAudioSlot.Slot2
print_now 'INT2_DB' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5338
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5338
64@ = 0

:INTRO2_5345
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO2_5414
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5407
if 
  56@ == 2
goto_if_false @INTRO2_5407

:INTRO2_5407
goto @INTRO2_5345

:INTRO2_5414
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5435
stop_char_facial_talk $ryder

:INTRO2_5435
goto @INTRO2_5731

:INTRO2_5442
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10224
load_mission_audio MissionAudioSlot.Slot2 {audioId} 65535
64@ = 0

:INTRO2_5465
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_5534
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5527
if 
  56@ == 2
goto_if_false @INTRO2_5527

:INTRO2_5527
goto @INTRO2_5465

:INTRO2_5534
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_EA' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5578
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5578
64@ = 0

:INTRO2_5585
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_5654
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5647
if 
  56@ == 2
goto_if_false @INTRO2_5647

:INTRO2_5647
goto @INTRO2_5585

:INTRO2_5654
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5675
stop_char_facial_talk $ryder

:INTRO2_5675
set_fixed_camera_position 2075.1899 {y} -1797.282 {z} 14.4799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.6379 {y} -1796.4709 {z} 14.103 {switchStyle} SwitchType.JumpCut
wait 1000

:INTRO2_5731
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5752
stop_char_facial_talk $ryder

:INTRO2_5752
TIMERA = 0

:INTRO2_5759
if 
  TIMERA <= 1000
goto_if_false @INTRO2_5796
wait 0
gosub @INTRO2_15690
goto @INTRO2_5759

:INTRO2_5796
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5817
stop_char_facial_talk $ryder

:INTRO2_5817
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5861
clear_look_at $ryder
task_look_at_coord $ryder {x} 2102.0 {y} -1806.0 {z} 14.0 {time} 3000

:INTRO2_5861
64@ = 0

:INTRO2_5868
if 
  49@ <> 1
goto_if_false @INTRO2_5954
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_5940
if 
  56@ == 2
goto_if_false @INTRO2_5940
64@ = 1

:INTRO2_5940
gosub @INTRO2_15690
goto @INTRO2_5868

:INTRO2_5954
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2102.0 {y} -1806.0 {z} 14.0 {time} 3000
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2074.23 {fromY} -1795.03 {fromZ} 14.4282 {toX} 2074.9829 {toY} -1798.671 {toZ} 14.4451 {time} 12000 {ease} True
camera_set_vector_track 2077.167 {fromY} -1795.729 {fromZ} 14.1884 {toX} 2075.9729 {toY} -1798.734 {toZ} 14.5649 {time} 12000 {ease} True
64@ = 0

:INTRO2_6073
if 
  49@ <> 2
goto_if_false @INTRO2_6175
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6161
if 
  56@ == 2
goto_if_false @INTRO2_6161
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6154

:INTRO2_6154
64@ = 1

:INTRO2_6161
gosub @INTRO2_15690
goto @INTRO2_6073

:INTRO2_6175
TIMERB = 0
64@ = 0

:INTRO2_6189
if 
  49@ <> 3
goto_if_false @INTRO2_6291
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6277
if 
  56@ == 2
goto_if_false @INTRO2_6277
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6270

:INTRO2_6270
64@ = 1

:INTRO2_6277
gosub @INTRO2_15690
goto @INTRO2_6189

:INTRO2_6291
64@ = 0

:INTRO2_6298
if 
  49@ <> 4
goto_if_false @INTRO2_6400
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6386
if 
  56@ == 2
goto_if_false @INTRO2_6386
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6379

:INTRO2_6379
64@ = 1

:INTRO2_6386
gosub @INTRO2_15690
goto @INTRO2_6298

:INTRO2_6400
if 
  TIMERB <= 18000
goto_if_false @INTRO2_6548
wait 0
if 
  44@ == 0
goto_if_false @INTRO2_6482
if 
  TIMERB > 7500
goto_if_false @INTRO2_6482
print_help 'FUDHLP1'
flash_hud_object HudObject.Health
44@ = 1

:INTRO2_6482
if 
  44@ == 1
goto_if_false @INTRO2_6541
if 
  TIMERB > 13500
goto_if_false @INTRO2_6541
print_help 'FUDHLP2'
flash_hud_object -1
44@ = 2

:INTRO2_6541
goto @INTRO2_6400

:INTRO2_6548
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_6576

:INTRO2_6566
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:INTRO2_6576
clear_help 
camera_reset_new_scriptables 
print_now 'HOOD2_B' {time} 10000 {flag} 1
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_6634
set_car_can_be_visibly_damaged $ryder_car {state} True

:INTRO2_6634
remove_blip 34@
34@ = add_blip_for_coord 372.9 {y} -118.8 {z} 1000.57
set_blip_entry_exit 34@ {x} 2103.376 {y} -1806.311 {radius} 20.0
59@ = 0
$flag_menace_buyfood = 1
set_car_density_multiplier 0.5
set_ped_density_multiplier 0.5
TIMERB = 0
$blob_flag = 1

:INTRO2_6721
if or
  not locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7480
wait 0
if 
  87@ == 0
goto_if_false @INTRO2_6829
if 
  TIMERB > 2000
goto_if_false @INTRO2_6829
print_help 'FUDHLP3'
87@ = 1

:INTRO2_6829
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_6868
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_6868
if 
  is_char_dead $ryder
goto_if_false @INTRO2_6907
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_6907
gosub @INTRO2_15690
if 
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7083
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @INTRO2_7083
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @INTRO2_6996
print_now 'INT2_10' {time} 10000 {flag} 1
goto @INTRO2_13667
goto @INTRO2_7083

:INTRO2_6996
if 
  not is_char_health_greater $clothes_hat_cam_pointY {health} 99
goto_if_false @INTRO2_7083
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @INTRO2_7083
give_weapon_to_char $clothes_hat_cam_pointY {weaponType} WeaponType.Shotgun {ammo} 30
set_current_char_weapon $clothes_hat_cam_pointY {weaponType} WeaponType.Shotgun
set_char_relationship $clothes_hat_cam_pointY {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
wait 1000
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7083
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_7209
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_7209
if 
  68@ == 0
goto_if_false @INTRO2_7209
if or
  not locate_car_3d $ryder_car {x} 2078.0901 {y} -1796.2 {z} 12.38 {xRadius} 0.2 {yRadius} 0.2 {zRadius} 2.0 {drawSphere} False
  not is_char_health_greater $ryder {health} 499
goto_if_false @INTRO2_7209
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear
68@ = 1

:INTRO2_7209
58@ = get_area_visible 
if 
  58@ == 5
goto_if_false @INTRO2_7405
if 
  59@ == 0
goto_if_false @INTRO2_7309
request_animation "GANGS"
request_animation "FOOD"
request_model 346
request_model 349
load_special_character 2 {modelName} 'RYDER3'
request_model 155
TIMERA = 0
59@ = 1

:INTRO2_7309
if 
  59@ == 1
goto_if_false @INTRO2_7398
if 
  locate_char_on_foot_3d $scplayer {x} 372.05 {y} -130.63 {z} 1000.49 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_7398
print_now 'INT2_13' {time} 5000 {flag} 1
59@ = 2

:INTRO2_7398
goto @INTRO2_7432

:INTRO2_7405
if 
  59@ == 2
goto_if_false @INTRO2_7432
clear_prints 
59@ = 1

:INTRO2_7432
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_7473
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7473
goto @INTRO2_6721

:INTRO2_7480
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_near_clip 0.1
stop_fx_system 55@
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed #CIGAR_GLOW
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1828

:INTRO2_7520
if or
  not has_animation_loaded "FOOD"
  not has_animation_loaded "GANGS"
  not has_special_character_loaded 2
  not has_model_loaded 155
  not has_model_loaded 346
  not has_model_loaded 349
goto_if_false @INTRO2_7697
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_7610
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7610
if 
  is_char_dead $ryder
goto_if_false @INTRO2_7649
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7649
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_7690
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7690
goto @INTRO2_7520

:INTRO2_7697
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_7816
drop_object $ryder {state} True
clear_char_tasks_immediately $ryder
task_stand_still $ryder {time} 100
set_char_coordinates $ryder {x} 375.7327 {y} -125.2345 {z} 1000.53
set_char_heading $ryder {heading} 201.2298
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
task_play_anim $ryder {animationName} "ROB_SHIFTY" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_7816
clear_area 372.9 {y} -118.8 {z} 1000.57 {radius} 20.0 {clearParticles} True
clear_area 369.058 {y} -4.92 {z} 1000.883 {radius} 20.0 {clearParticles} True
35@ = create_char PedType.Mission1 {modelId} 155 {x} 373.14 {y} -117.11 {z} 1000.57
set_char_heading 35@ {heading} 180.0
43@ = load_char_decision_maker DecisionMakerType.Tough
set_char_decision_maker 35@ {handleOrTemplate} 43@
clear_look_at 35@
task_look_at_char 35@ {target} $scplayer {time} 4700
task_turn_char_to_face_char 35@ {target} $scplayer
set_char_coordinates $scplayer {x} 372.9 {y} -118.8 {z} 1000.57
task_turn_char_to_face_char $scplayer {target} 35@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
51@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 375.2 {y} -119.8 {z} 1000.5 {speed} MoveState.Walk {time} 7000
task_play_anim -1 {animationName} "ROB_STICKUP_IN" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "ROB_LOOP_THREAT" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 51@
49@ = 0
56@ = 0
64@ = 0
40@ = 2
gosub @INTRO2_47
wait 200
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_8192
task_play_anim $scplayer {animationName} "EAT_PIZZA" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO2_8332

:INTRO2_8192
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 90@ = $player_x
90@ += 0.355
set_lvar_float_to_var_float 91@ = $player_y
91@ -= 0.116
set_lvar_float_to_var_float 92@ = $player_z
92@ -= 0.048
62@ = create_fx_system "PUKE" {x} 90@ {y} 91@ {z} 92@ {ignoreBoundingChecks} True
task_play_anim_non_interruptable $scplayer {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$sample_name_shop = set_char_say_context $scplayer {phrase} SpeechId.PainSprayed

:INTRO2_8332
do_fade 500 {direction} Fade.In
set_music_does_fade True
set_fixed_camera_position 376.4939 {y} -126.0317 {z} 1002.396 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 375.9087 {y} -125.2215 {z} 1002.361 {switchStyle} SwitchType.JumpCut
wait 4500
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 377.0709 {fromY} -121.8843 {fromZ} 1000.714 {toX} 377.3563 {toY} -119.1986 {toZ} 1002.57 {time} 7000 {ease} True
camera_set_vector_track 376.4134 {fromY} -122.6288 {fromZ} 1000.598 {toX} 376.423 {toY} -119.1806 {toZ} 1002.211 {time} 7000 {ease} True
delete_char $ryder
unload_special_character 1
$ryder = create_char PedType.Mission1 {modelId} 291 {x} 376.3327 {y} -125.2345 {z} 1000.53
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_never_targetted $ryder {state} True
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
set_char_suffers_critical_hits $ryder {state} False
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 67@
set_char_get_out_upside_down_car $ryder {state} False
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_8649
give_weapon_to_char $ryder {weaponType} WeaponType.Pistol {ammo} 30
set_current_char_weapon $ryder {weaponType} WeaponType.Pistol
if 
  not is_char_dead 35@
goto_if_false @INTRO2_8649
perform_sequence_task $ryder {sequence} 51@
clear_sequence_task 51@

:INTRO2_8649
41@ = 0
skip_cutscene_start_internal @INTRO2_10954
TIMERA = 0
63@ = 0

:INTRO2_8677
if 
  not locate_char_any_means_3d $ryder {x} 375.2 {y} -119.8 {z} 1000.5 {xRadius} 0.4 {yRadius} 0.6 {zRadius} 2.0 {drawSphere} False
goto_if_false @INTRO2_9124
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "EAT_VOMIT_P"
goto_if_false @INTRO2_8899
93@ = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"
if 
  63@ == 0
goto_if_false @INTRO2_8848
if 
  93@ >= 0.463
goto_if_false @INTRO2_8848
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @INTRO2_8841
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjPuke

:INTRO2_8841
63@ = 1

:INTRO2_8848
if 
  63@ == 1
goto_if_false @INTRO2_8899
if 
  93@ >= 0.52
goto_if_false @INTRO2_8899
play_fx_system 62@
63@ = 2

:INTRO2_8899
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_8938
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_8938
if 
  is_char_dead $ryder
goto_if_false @INTRO2_8977
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_8977
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_9018
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_9018
if 
  69@ == 0
goto_if_false @INTRO2_9117
if 
  TIMERA > 1000
goto_if_false @INTRO2_9117
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_9110
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000

:INTRO2_9110
69@ = 1

:INTRO2_9117
goto @INTRO2_8677

:INTRO2_9124
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9253
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9253
clear_char_tasks 35@
clear_look_at 35@
task_look_at_char 35@ {target} $ryder {time} 12500
task_stand_still $scplayer {time} 100
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 10000
set_char_heading 35@ {heading} 200.0
task_play_anim 35@ {animationName} "SHP_ROB_HANDSUP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9253
$iSetPizzaPanic = 1
64@ = 0

:INTRO2_9267
if 
  49@ <> 1
goto_if_false @INTRO2_9378
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9371
if 
  56@ == 2
goto_if_false @INTRO2_9371
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9364
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:INTRO2_9364
64@ = 1

:INTRO2_9371
goto @INTRO2_9267

:INTRO2_9378
64@ = 0

:INTRO2_9385
if 
  49@ <> 2
goto_if_false @INTRO2_9548
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9541
if 
  56@ == 2
goto_if_false @INTRO2_9541
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9502
task_play_anim $ryder {animationName} "ROB_LOOP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9502
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9534
clear_look_at $scplayer
task_look_at_char $scplayer {target} 35@ {time} 6000

:INTRO2_9534
64@ = 1

:INTRO2_9541
goto @INTRO2_9385

:INTRO2_9548
64@ = 0

:INTRO2_9555
if 
  49@ <> 3
goto_if_false @INTRO2_9778
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9771
if 
  56@ == 2
goto_if_false @INTRO2_9771
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9679
task_play_anim $ryder {animationName} "ROB_LOOP_THREAT" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9679
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9711
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:INTRO2_9711
camera_reset_new_scriptables 
set_fixed_camera_position 374.9156 {y} -121.7312 {z} 1002.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.7307 {y} -120.7778 {z} 1002.262 {switchStyle} SwitchType.JumpCut
64@ = 1

:INTRO2_9771
goto @INTRO2_9555

:INTRO2_9778
64@ = 0

:INTRO2_9785
if 
  49@ <> 4
goto_if_false @INTRO2_9948
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9941
if 
  56@ == 2
goto_if_false @INTRO2_9941
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9882
clear_look_at $scplayer
task_look_at_char $scplayer {target} 35@ {time} 6000

:INTRO2_9882
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9934
task_play_anim $ryder {animationName} "ROB_LOOP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9934
64@ = 1

:INTRO2_9941
goto @INTRO2_9785

:INTRO2_9948
42@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "ROB_2IDLE" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 42@
64@ = 0

:INTRO2_10050
if 
  49@ <> 5
goto_if_false @INTRO2_10289
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10282
if 
  56@ == 2
goto_if_false @INTRO2_10282
set_fixed_camera_position 371.562 {y} -120.1569 {z} 1002.404 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 372.4125 {y} -119.6767 {z} 1002.19 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10275
clear_char_tasks $scplayer
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 10000
clear_char_tasks $ryder
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 10000
task_turn_char_to_face_char $scplayer {target} $ryder
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_10275
64@ = 1

:INTRO2_10282
goto @INTRO2_10050

:INTRO2_10289
64@ = 0

:INTRO2_10296
if 
  49@ <> 6
goto_if_false @INTRO2_10455
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10448
if 
  56@ == 2
goto_if_false @INTRO2_10448
set_fixed_camera_position 374.6357 {y} -121.6844 {z} 1001.637 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.5972 {y} -120.6883 {z} 1001.716 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10441
perform_sequence_task $ryder {sequence} 42@
clear_sequence_task 42@

:INTRO2_10441
64@ = 1

:INTRO2_10448
goto @INTRO2_10296

:INTRO2_10455
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10476
clear_char_tasks $ryder

:INTRO2_10476
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10542
set_char_heading 35@ {heading} 180.0
task_play_anim 35@ {animationName} "SHP_GUN_GRAB" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:INTRO2_10542
wait 500
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10580
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 35@ {weaponType} WeaponType.Shotgun

:INTRO2_10580
wait 500
set_fixed_camera_position 373.03 {y} -116.1498 {z} 1002.375 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 373.0192 {y} -117.1292 {z} 1002.173 {switchStyle} SwitchType.JumpCut
wait 300
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10680
task_shoot_at_coord 35@ {x} 374.2905 {y} -125.681 {z} 1001.308 {time} 2000

:INTRO2_10680
64@ = 0

:INTRO2_10687
if 
  49@ <> 7
goto_if_false @INTRO2_10947
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10940
if 
  56@ == 2
goto_if_false @INTRO2_10940
flush_route 
extend_route 372.0 {y} -120.1 {z} 1000.5
extend_route 370.5 {y} -132.3 {z} 1000.4
task_follow_point_route $scplayer {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route 376.3 {y} -121.0 {z} 1000.5
extend_route 375.9 {y} -132.0 {z} 1000.5
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10858
task_follow_point_route $ryder {speed} MoveState.Run {mode} RouteMode.Once

:INTRO2_10858
if and
  not is_char_dead $ryder
  not is_char_dead 35@
goto_if_false @INTRO2_10894
clear_look_at $ryder
clear_look_at $scplayer
clear_look_at 35@

:INTRO2_10894
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10933
task_shoot_at_coord 35@ {x} 374.2905 {y} -125.681 {z} 1001.308 {time} 1500

:INTRO2_10933
64@ = 1

:INTRO2_10940
goto @INTRO2_10687

:INTRO2_10947
41@ = 1

:INTRO2_10954
skip_cutscene_end 
if 
  41@ == 0
goto_if_false @INTRO2_11013
do_fade 0 {direction} Fade.Out
clear_prints 

:INTRO2_10982
if 
  get_fading_status 
goto_if_false @INTRO2_11006
wait 0
goto @INTRO2_10982

:INTRO2_11006
goto @INTRO2_11046

:INTRO2_11013
do_fade 500 {direction} Fade.Out
clear_prints 

:INTRO2_11022
if 
  get_fading_status 
goto_if_false @INTRO2_11046
wait 0
goto @INTRO2_11022

:INTRO2_11046
camera_reset_new_scriptables 
clear_area 372.9 {y} -118.8 {z} 1000.57 {radius} 100.0 {clearParticles} True
set_area_visible 0
task_stand_still $scplayer {time} 0
set_char_coordinates $scplayer {x} 2102.21 {y} -1806.65 {z} 12.4
set_char_heading $scplayer {heading} 75.0
set_char_cant_be_dragged_out $scplayer {state} True
set_char_area_visible $scplayer {areaId} 0
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_11322
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_11322
clear_look_at $ryder
clear_look_at $scplayer
clear_area 2077.5701 {y} -1796.41 {z} 12.38 {radius} 100.0 {clearParticles} True
set_car_coordinates $ryder_car {x} 2077.5701 {y} -1796.41 {z} 12.0
set_car_heading $ryder_car {heading} 180.0
set_car_health $ryder_car {health} 1000
clear_area 2098.6101 {y} -1801.62 {z} 12.39 {radius} 100.0 {clearParticles} True
set_char_coordinates $ryder {x} 2092.6101 {y} -1801.62 {z} 12.39
set_char_heading $ryder {heading} 72.0
set_char_area_visible $ryder {areaId} 0
lock_car_doors $ryder_car {lockStatus} CarLock.Unlocked
set_next_desired_move_state MoveState.Run
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 40000 {seat} SeatId.BikeRear

:INTRO2_11322
release_weather 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
clear_loaded_shop 
clear_extra_colours False
remove_animation "SHOP"
remove_animation "GANGS"
remove_animation "FOOD"
38@ = 0
print_now 'INT2_6' {time} 10000 {flag} 1
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11425
goto @INTRO2_13667
goto @INTRO2_11454

:INTRO2_11425
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
47@ = add_blip_for_char $ryder
remove_blip 47@

:INTRO2_11454
remove_blip 34@
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_11502
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
goto @INTRO2_11509

:INTRO2_11502
goto @INTRO2_13667

:INTRO2_11509
switch_entry_exit 'FDPIZA' {state} False
$blob_flag = 1
60@ = 0
54@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2102.77 {y} -1806.35 {z} 12.55 {speed} MoveState.Run {time} 4000
task_shoot_at_coord -1 {x} 2092.6699 {y} -1803.64 {z} 15.56 {time} 1000
close_sequence_task 54@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10248

:INTRO2_11607
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_11633
wait 0
goto @INTRO2_11607

:INTRO2_11633
load_scene_in_direction 2102.21 {y} -1806.65 {z} 12.4 {heading} 75.0
do_fade 500 {direction} Fade.In
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_11701
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11701
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11740
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11740
49@ = 0
56@ = 0
64@ = 0
40@ = 4
gosub @INTRO2_47
TIMERA = 0
TIMERB = 0
clear_area 2077.5701 {y} -1796.41 {z} 12.38 {radius} 20.0 {clearParticles} True

:INTRO2_11813
if or
  not locate_car_3d $ryder_car {x} 2473.8799 {y} -1692.8101 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_in_car $ryder {vehicle} $ryder_car
  not is_char_sitting_in_car $scplayer {vehicle} $ryder_car
  not is_vehicle_on_all_wheels $ryder_car
goto_if_false @INTRO2_12919
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_11926
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11926
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11965
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11965
if 
  not locate_char_on_foot_3d $scplayer {x} 2104.6201 {y} -1806.54 {z} 12.55 {xRadius} 7.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_12304
if 
  66@ == 0
goto_if_false @INTRO2_12187
if 
  not is_char_dead 35@
goto_if_false @INTRO2_12180
clear_char_tasks 35@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 2105.3201 {y} -1806.24 {z} 12.55
set_char_heading 35@ {heading} 90.0
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 35@ {weaponType} WeaponType.Shotgun
set_char_accuracy 35@ {accuracy} 30
set_near_clip 0.1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_12153
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_HA' {time} 2000 {flag} 1

:INTRO2_12153
perform_sequence_task 35@ {sequence} 54@
clear_sequence_task 54@
TIMERA = 0
66@ = 1

:INTRO2_12180
goto @INTRO2_12304

:INTRO2_12187
if 
  TIMERA > 2000
goto_if_false @INTRO2_12304
if 
  66@ == 1
goto_if_false @INTRO2_12304
if 
  not is_char_dead 35@
goto_if_false @INTRO2_12304
if 
  locate_char_on_foot_3d 35@ {x} 2102.77 {y} -1806.35 {z} 12.55 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_12304
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
66@ = 2

:INTRO2_12304
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_12413
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_12413
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_12413
if 
  is_char_sitting_in_car $ryder {vehicle} $ryder_car
goto_if_false @INTRO2_12413
gosub @INTRO2_15999
if 
  88@ == 0
goto_if_false @INTRO2_12413
TIMERB = 0
88@ = 1

:INTRO2_12413
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_12834
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_12811
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_12712
if 
  is_char_sitting_in_car $ryder {vehicle} $ryder_car
goto_if_false @INTRO2_12610
if 
  38@ == 0
goto_if_false @INTRO2_12603
remove_blip 47@
remove_blip 37@
remove_blip 34@
34@ = add_blip_for_coord 2473.8799 {y} -1692.8101 {z} 12.52
$blob_flag = 1
if 
  88@ == 1
goto_if_false @INTRO2_12603
if 
  TIMERB > 7000
goto_if_false @INTRO2_12603
print_now 'INT2_O' {time} 10000 {flag} 1
38@ = 1

:INTRO2_12603
goto @INTRO2_12705

:INTRO2_12610
remove_blip 37@
remove_blip 34@
remove_blip 47@
47@ = add_blip_for_char $ryder
set_blip_as_friendly 47@ {state} True
print_now 'INT2_5' {time} 1000 {flag} 1
65@ = get_script_task_status $ryder {taskId} 1482
if 
  is_int_lvar_equal_to_constant 65@ == 7
goto_if_false @INTRO2_12698
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear

:INTRO2_12698
$blob_flag = 0

:INTRO2_12705
goto @INTRO2_12804

:INTRO2_12712
if 
  38@ == 1
goto_if_false @INTRO2_12804
remove_blip 34@
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
$blob_flag = 0
gosub @INTRO2_15095
print_now 'INT2_6' {time} 10000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
38@ = 0

:INTRO2_12804
goto @INTRO2_12834

:INTRO2_12811
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12834
if 
  is_char_dead $ryder
goto_if_false @INTRO2_12873
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12873
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_12912
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12912
goto @INTRO2_11813

:INTRO2_12919
set_player_control $player1 {state} False
49@ = 0
56@ = 0
64@ = 0
40@ = 3
gosub @INTRO2_47
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13030
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_13030
task_leave_car $ryder {vehicle} $ryder_car
wait 700
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_13030
task_leave_car $scplayer {vehicle} $ryder_car

:INTRO2_13030
do_fade 1600 {direction} Fade.Out

:INTRO2_13037
if 
  get_fading_status 
goto_if_false @INTRO2_13061
wait 0
goto @INTRO2_13037

:INTRO2_13061
switch_widescreen True
do_fade 1500 {direction} Fade.In
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13151
if 
  is_char_in_any_car $ryder
goto_if_false @INTRO2_13131
warp_char_from_car_to_coord $ryder {x} 2467.345 {y} -1688.22 {z} 12.5156
goto @INTRO2_13151

:INTRO2_13131
set_char_coordinates $ryder {x} 2467.345 {y} -1688.22 {z} 12.5156

:INTRO2_13151
set_char_heading $ryder {heading} 284.0
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO2_13204
warp_char_from_car_to_coord $scplayer {x} 2468.3589 {y} -1687.39 {z} 12.518
goto @INTRO2_13224

:INTRO2_13204
set_char_coordinates $scplayer {x} 2468.3589 {y} -1687.39 {z} 12.5189

:INTRO2_13224
set_char_heading $scplayer {heading} 108.0
set_fixed_camera_position 2464.771 {y} -1687.493 {z} 14.2709 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2465.75 {y} -1687.675 {z} 14.1833 {switchStyle} SwitchType.JumpCut
64@ = 0

:INTRO2_13292
if 
  49@ <> 1
goto_if_false @INTRO2_13371
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13364
if 
  56@ == 2
goto_if_false @INTRO2_13364
64@ = 1

:INTRO2_13364
goto @INTRO2_13292

:INTRO2_13371
64@ = 0

:INTRO2_13378
if 
  49@ <> 2
goto_if_false @INTRO2_13457
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13450
if 
  56@ == 2
goto_if_false @INTRO2_13450
64@ = 1

:INTRO2_13450
goto @INTRO2_13378

:INTRO2_13457
64@ = 0

:INTRO2_13464
if 
  49@ <> 3
goto_if_false @INTRO2_13584
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13577
if 
  56@ == 2
goto_if_false @INTRO2_13577
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13570
task_go_straight_to_coord $ryder {x} 2459.79 {y} -1688.1801 {z} 12.56 {speed} MoveState.Walk {time} 3000

:INTRO2_13570
64@ = 1

:INTRO2_13577
goto @INTRO2_13464

:INTRO2_13584
task_go_straight_to_coord $scplayer {x} 2471.5801 {y} -1685.73 {z} 12.51 {speed} MoveState.Walk {time} 3000
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13630
stop_char_facial_talk $ryder

:INTRO2_13630
wait 1000
clear_char_tasks $scplayer
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
delete_char $ryder
goto @INTRO2_13692

:INTRO2_13667
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$can_skip_smoking_cutscene = 1
return 

:INTRO2_13692
register_mission_passed 'INTRO_2'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
switch_car_generator $gen_car5 {amount} 101
$flag_intro_mission_counter += 1
remove_blip $intro_contact_blip
start_new_script @SWEET 
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
clear_wanted_level $player1
switch_entry_exit 'BARBERS' {state} True
switch_entry_exit 'BARBER2' {state} True
switch_entry_exit 'BARBER3' {state} True
switch_entry_exit 'FDPIZA' {state} True
switch_entry_exit 'FDCHICK' {state} True
switch_entry_exit 'FDBURG' {state} True
switch_entry_exit 'TATTOO' {state} True
remove_blip $barber_shop1
$barber_shop1 = add_short_range_sprite_blip_for_coord 2070.27 {y} -1791.092 {z} 17.1484 {sprite} RadarSprite.Barbers
remove_blip $food_shop1
$food_shop1 = add_short_range_sprite_blip_for_coord 2107.624 {y} -1807.516 {z} 21.2114 {sprite} RadarSprite.Pizza
play_mission_passed_tune 1
if 
  $2654 == 0
goto_if_false @INTRO2_14789
$barbers_blips = add_short_range_sprite_blip_for_coord 822.6 {y} -1590.3 {z} 13.5 {sprite} RadarSprite.Barbers
$2592 = add_short_range_sprite_blip_for_coord -2570.1001 {y} 245.4 {z} 10.3 {sprite} RadarSprite.Barbers
$2593 = add_short_range_sprite_blip_for_coord 2726.6001 {y} -2026.4 {z} 17.5 {sprite} RadarSprite.Barbers
$2594 = add_short_range_sprite_blip_for_coord 2080.3 {y} 2119.0 {z} 10.8 {sprite} RadarSprite.Barbers
$2595 = add_short_range_sprite_blip_for_coord 675.7 {y} -496.6 {z} 16.8 {sprite} RadarSprite.Barbers
$pizza_blips = add_short_range_sprite_blip_for_coord -1805.7 {y} 943.2 {z} 24.8 {sprite} RadarSprite.Pizza
$2597 = add_short_range_sprite_blip_for_coord 2750.8999 {y} 2470.8999 {z} 11.0 {sprite} RadarSprite.Pizza
$2598 = add_short_range_sprite_blip_for_coord 2351.8 {y} 2529.0 {z} 10.8 {sprite} RadarSprite.Pizza
$2599 = add_short_range_sprite_blip_for_coord 2635.5 {y} 1847.4 {z} 11.0 {sprite} RadarSprite.Pizza
$2600 = add_short_range_sprite_blip_for_coord 2083.3999 {y} 2221.0 {z} 11.0 {sprite} RadarSprite.Pizza
$2601 = add_short_range_sprite_blip_for_coord -1719.1 {y} 1359.4 {z} 8.6 {sprite} RadarSprite.Pizza
$2602 = add_short_range_sprite_blip_for_coord 2330.2 {y} 75.2 {z} 31.0 {sprite} RadarSprite.Pizza
$2603 = add_short_range_sprite_blip_for_coord 203.2 {y} -200.4 {z} 6.5 {sprite} RadarSprite.Pizza
$burger_blips = add_short_range_sprite_blip_for_coord 812.9 {y} -1616.1 {z} 13.6 {sprite} RadarSprite.BurgerShot
$2605 = add_short_range_sprite_blip_for_coord 1199.1 {y} -924.0 {z} 43.3 {sprite} RadarSprite.BurgerShot
$2606 = add_short_range_sprite_blip_for_coord 2362.2 {y} 2069.8999 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2607 = add_short_range_sprite_blip_for_coord 2469.5 {y} 2033.8 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2608 = add_short_range_sprite_blip_for_coord 2172.8999 {y} 2795.7 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2609 = add_short_range_sprite_blip_for_coord 1875.3 {y} 2072.0 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2610 = add_short_range_sprite_blip_for_coord 1161.5 {y} 2072.0 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2611 = add_short_range_sprite_blip_for_coord -2356.0 {y} 1009.0 {z} 49.0 {sprite} RadarSprite.BurgerShot
$2612 = add_short_range_sprite_blip_for_coord -1913.3 {y} 826.2 {z} 36.9 {sprite} RadarSprite.BurgerShot
$2613 = add_short_range_sprite_blip_for_coord -2335.6001 {y} -165.6 {z} 39.5 {sprite} RadarSprite.BurgerShot
$chicken_blips = add_short_range_sprite_blip_for_coord 2397.8 {y} -1895.6 {z} 13.7 {sprite} RadarSprite.Chicken
$2615 = add_short_range_sprite_blip_for_coord 2421.6001 {y} -1509.6 {z} 24.1 {sprite} RadarSprite.Chicken
$2616 = add_short_range_sprite_blip_for_coord -2671.6001 {y} 257.4 {z} 4.6 {sprite} RadarSprite.Chicken
$2617 = add_short_range_sprite_blip_for_coord 2392.3999 {y} 2046.5 {z} 10.8 {sprite} RadarSprite.Chicken
$2618 = add_short_range_sprite_blip_for_coord 2844.5 {y} 2401.1001 {z} 11.0 {sprite} RadarSprite.Chicken
$2619 = add_short_range_sprite_blip_for_coord 2635.5 {y} 1674.3 {z} 11.0 {sprite} RadarSprite.Chicken
$2620 = add_short_range_sprite_blip_for_coord 2105.7 {y} 2228.7 {z} 11.0 {sprite} RadarSprite.Chicken
$2621 = add_short_range_sprite_blip_for_coord -2154.0 {y} -2461.2 {z} 30.8 {sprite} RadarSprite.Chicken
$2622 = add_short_range_sprite_blip_for_coord -1816.2 {y} 620.8 {z} 37.5 {sprite} RadarSprite.Chicken
$2623 = add_short_range_sprite_blip_for_coord -1216.0 {y} 1831.4 {z} 45.3 {sprite} RadarSprite.Chicken
$2624 = add_short_range_sprite_blip_for_coord 172.73 {y} 1176.76 {z} 13.7 {sprite} RadarSprite.Chicken
$2625 = add_short_range_sprite_blip_for_coord 1971.7 {y} -2036.6 {z} 13.5 {sprite} RadarSprite.Tattoo
$tattoo_blips = add_short_range_sprite_blip_for_coord 2071.6001 {y} -1779.9 {z} 13.5 {sprite} RadarSprite.Tattoo
$2627 = add_short_range_sprite_blip_for_coord 2094.6001 {y} 2119.0 {z} 10.8 {sprite} RadarSprite.Tattoo
$2628 = add_short_range_sprite_blip_for_coord -2490.5 {y} -40.1 {z} 39.3 {sprite} RadarSprite.Tattoo
$2654 = 1

:INTRO2_14789
player_made_progress 1
return 

:INTRO2_14795
$onmission = 0
if 
  is_player_playing $player1
goto_if_false @INTRO2_14830
set_char_cant_be_dragged_out $scplayer {state} False
clear_look_at $scplayer

:INTRO2_14830
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_14853
set_can_burst_car_tyres $ryder_car {state} True

:INTRO2_14853
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed #CIGAR_GLOW
remove_animation "SHOP"
remove_animation "GANGS"
remove_animation "FOOD"
$flag_menace_buyfood = 0
$flag_changed_hair_intro2 = 0
$timer_mobile_start = get_game_timer 
remove_blip 47@
remove_blip 34@
remove_blip 37@
remove_char_elegantly $ryder
mark_char_as_no_longer_needed 35@
unload_special_character 1
unload_special_character 2
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
$flag_player_on_menace_mission = 0
mission_has_finished 
return 

:INTRO2_15095
clear_mission_audio MissionAudioSlot.Slot2
if 
  89@ == 0
goto_if_false @INTRO2_15124
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25600

:INTRO2_15124
if 
  89@ == 1
goto_if_false @INTRO2_15149
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25601

:INTRO2_15149
if 
  89@ == 2
goto_if_false @INTRO2_15174
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25602

:INTRO2_15174
if 
  89@ == 3
goto_if_false @INTRO2_15199
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25603

:INTRO2_15199
if 
  89@ == 4
goto_if_false @INTRO2_15224
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25604

:INTRO2_15224
if 
  89@ == 5
goto_if_false @INTRO2_15249
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25605

:INTRO2_15249
if 
  89@ == 6
goto_if_false @INTRO2_15274
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25606

:INTRO2_15274
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:INTRO2_15290
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO2_15352
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_15327
return 

:INTRO2_15327
if 
  is_char_dead $ryder
goto_if_false @INTRO2_15345
return 

:INTRO2_15345
goto @INTRO2_15290

:INTRO2_15352
play_mission_audio MissionAudioSlot.Slot2
if 
  89@ == 0
goto_if_false @INTRO2_15390
print_now 'RYDX_AA' {time} 3000 {flag} 1

:INTRO2_15390
if 
  89@ == 1
goto_if_false @INTRO2_15424
print_now 'RYDX_AB' {time} 3000 {flag} 1

:INTRO2_15424
if 
  89@ == 2
goto_if_false @INTRO2_15458
print_now 'RYDX_AC' {time} 3000 {flag} 1

:INTRO2_15458
if 
  89@ == 3
goto_if_false @INTRO2_15492
print_now 'RYDX_AD' {time} 3000 {flag} 1

:INTRO2_15492
if 
  89@ == 4
goto_if_false @INTRO2_15526
print_now 'RYDX_AE' {time} 3000 {flag} 1

:INTRO2_15526
if 
  89@ == 5
goto_if_false @INTRO2_15560
print_now 'RYDX_AF' {time} 3000 {flag} 1

:INTRO2_15560
if 
  89@ == 6
goto_if_false @INTRO2_15594
print_now 'RYDX_AG' {time} 3000 {flag} 1

:INTRO2_15594
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO2_15656
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_15631
return 

:INTRO2_15631
if 
  is_char_dead $ryder
goto_if_false @INTRO2_15649
return 

:INTRO2_15649
goto @INTRO2_15594

:INTRO2_15656
89@ += 1
if 
  89@ > 6
goto_if_false @INTRO2_15688
89@ = 0

:INTRO2_15688
return 

:INTRO2_15690
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_15997
if 
  is_char_playing_anim $ryder {animationName} "SMOKE_RYD"
goto_if_false @INTRO2_15992
93@ = get_char_anim_current_time $ryder {animationName} "SMOKE_RYD"
if 
  63@ == 0
goto_if_false @INTRO2_15858
if 
  93@ >= 0.785
goto_if_false @INTRO2_15858
39@ = create_object #CIGAR_GLOW {x} 2440.5801 {y} -1979.89 {z} 14.2
attach_object_to_object 39@ {handle} 46@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
63@ = 1

:INTRO2_15858
if 
  63@ == 1
goto_if_false @INTRO2_15924
if and
  93@ >= 0.15
  0.335 > 93@
goto_if_false @INTRO2_15924
play_fx_system 55@
delete_object 39@
63@ = 2

:INTRO2_15924
if 
  63@ == 2
goto_if_false @INTRO2_15985
if or
  93@ >= 0.335
  0.15 > 93@
goto_if_false @INTRO2_15985
stop_fx_system 55@
63@ = 0

:INTRO2_15985
goto @INTRO2_15997

:INTRO2_15992
stop_fx_system 55@

:INTRO2_15997
return 

:INTRO2_15999
if or
  56@ == 0
  56@ == 1
goto_if_false @INTRO2_16069
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 49@
goto_if_false @INTRO2_16069
if 
  TIMERA > 200
goto_if_false @INTRO2_16069
gosub @INTRO2_16141

:INTRO2_16069
if 
  56@ == 2
goto_if_false @INTRO2_16139
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_16139
gosub @INTRO2_16490
56@ = 0
49@ += 1
64@ = 0
clear_prints 
TIMERA = 0

:INTRO2_16139
return 

:INTRO2_16141
if 
  56@ == 0
goto_if_false @INTRO2_16177
load_mission_audio MissionAudioSlot.Slot1 {audioId} 70@(49@,17i)
56@ = 1

:INTRO2_16177
if 
  56@ == 1
goto_if_false @INTRO2_16242
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_16242
print_now $6502(49@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @INTRO2_16244
56@ = 2

:INTRO2_16242
return 

:INTRO2_16244
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10246
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10247
goto_if_false @INTRO2_16312
if 
  not is_char_dead 35@
goto_if_false @INTRO2_16312
shut_char_up_for_scripted_speech 35@ {state} True
start_char_facial_talk 35@ {duration} 3000
return 

:INTRO2_16312
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10205
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10200
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10201
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10202
goto_if_false @INTRO2_16400
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:INTRO2_16400
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10203
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10206
goto_if_false @INTRO2_16457
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
goto @INTRO2_16488

:INTRO2_16457
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_16488
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:INTRO2_16488
return 

:INTRO2_16490
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10246
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10247
goto_if_false @INTRO2_16555
if 
  not is_char_dead 35@
goto_if_false @INTRO2_16555
shut_char_up_for_scripted_speech 35@ {state} False
stop_char_facial_talk 35@
return 

:INTRO2_16555
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10205
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10200
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10201
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10202
goto_if_false @INTRO2_16640
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:INTRO2_16640
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10203
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10206
goto_if_false @INTRO2_16694
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @INTRO2_16722

:INTRO2_16694
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_16722
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:INTRO2_16722
return 

//-------------Mission 13---------------
// Originally: Tagging Up Turf

:SWEET1
script_name 'SWEET1'
gosub @SWEET1_444
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1_38
gosub @SWEET1_14533

:SWEET1_38
gosub @SWEET1_14796
terminate_this_script 
clear_char_tasks $scplayer

:SWEET1_52
switch_start $sweet1_index {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET1_407 {caseNum1} 0 {caseLabel1} @SWEET1_115 {caseNum2} 1 {caseLabel2} @SWEET1_239 {caseNum3} -1 {caseLabel3} @SWEET1_407 {caseNum4} -1 {caseLabel4} @SWEET1_407 {caseNum5} -1 {caseLabel5} @SWEET1_407 {caseNum6} -1 {caseLabel6} @SWEET1_407 {caseNum7} -1 {caseLabel7} @SWEET1_407

:SWEET1_115
set_var_text_label s$get_in_counter_swee1[0] = 'SWE1_AA'
set_var_text_label s$get_in_counter_swee1[1] = 'SWE1_AB'
set_var_text_label s$get_in_counter_swee1[2] = 'SWE1_AC'
set_var_text_label s$get_in_counter_swee1[3] = 'SWE1_AD'
set_var_text_label s$get_in_counter_swee1[4] = 'SWE1_AE'
set_var_int_to_constant $spray_can_pickup[0] = 7442
set_var_int_to_constant $spray_can_pickup[1] = 7402
set_var_int_to_constant $spray_can_pickup[2] = 7443
set_var_int_to_constant $spray_can_pickup[3] = 7444
set_var_int_to_constant $spray_can_pickup[4] = 7403
48@ = 4
goto @SWEET1_407

:SWEET1_239
set_var_text_label s$get_in_counter_swee1[0] = 'SWE1_BN'
set_var_text_label s$get_in_counter_swee1[1] = 'SWE1_BO'
set_var_text_label s$get_in_counter_swee1[2] = 'SWE1_BP'
set_var_text_label s$get_in_counter_swee1[3] = 'SWE1_BQ'
set_var_text_label s$get_in_counter_swee1[4] = 'SWE1_BX'
set_var_text_label s$get_in_counter_swee1[5] = 'SWE1_BT'
set_var_text_label s$get_in_counter_swee1[6] = 'SWE1_BU'
set_var_int_to_constant $spray_can_pickup[0] = 7469
set_var_int_to_constant $spray_can_pickup[1] = 7404
set_var_int_to_constant $spray_can_pickup[2] = 7470
set_var_int_to_constant $spray_can_pickup[3] = 7405
set_var_int_to_constant $spray_can_pickup[4] = 7494
set_var_int_to_constant $spray_can_pickup[5] = 7472
set_var_int_to_constant $spray_can_pickup[6] = 7473
48@ = 6
goto @SWEET1_407

:SWEET1_407
return 
goto @SWEET1_444
$6536 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 1000 {x} 2493.52 {y} -1700.83 {z} 14.27

:SWEET1_444
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SWEET1'
clear_area 2527.8999 {y} -1667.7 {z} 14.1 {radius} 10.0 {clearParticles} True
load_cutscene 'SWEET1A'

:SWEET1_503
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1_527
wait 0
goto @SWEET1_503

:SWEET1_527
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1_536
if 
  not has_cutscene_finished 
goto_if_false @SWEET1_560
wait 0
goto @SWEET1_536

:SWEET1_560
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET1_573
if 
  get_fading_status 
goto_if_false @SWEET1_597
wait 0
goto @SWEET1_573

:SWEET1_597
clear_cutscene 
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
35@ = 0
63@ = 0
71@ = 0
69@ = 0
61@ = 0
34@ = 0
57@ = 0
46@ = 0
58@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
36@ = 0
38@ = 0
39@ = 0
40@ = 0
$sweet1_cutscene_flag = 0
88@ = 2038.7581
89@ = -1624.4189
90@ = 2074.5029
91@ = -1662.767
92@ = 2345.6799
93@ = -1515.79
94@ = 2423.7
95@ = -1393.28
84@ = 2401.6001
85@ = -1550.8
86@ = 2396.3301
87@ = -1555.12
96@ = 2100.9719
97@ = -1646.623
98@ = 2105.2639
99@ = -1656.712
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 10
load_special_character 1 {modelName} 'SWEET'
load_special_character 10 {modelName} 'SMOKE'
request_model 365
request_model 492
request_model 102
request_model 103
load_all_models_now 

:SWEET1_1146
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 10
goto_if_false @SWEET1_1176
wait 0
goto @SWEET1_1146

:SWEET1_1176
if or
  not has_model_loaded 365
  not has_model_loaded 492
  not has_model_loaded 102
  not has_model_loaded 103
goto_if_false @SWEET1_1216
wait 0
goto @SWEET1_1176

:SWEET1_1216
$sweet1_audio_is_playing = 0
$6545 = 0
$sweet1_chat_switch = 0
$sweet1_index = 0
gosub @SWEET1_52
set_char_coordinates $scplayer {x} 2516.53 {y} -1671.37 {z} 12.88
set_char_heading $scplayer {heading} 61.28
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 30000
set_current_char_weapon $scplayer {weaponType} WeaponType.SprayCan
$sweet = create_char PedType.Mission1 {modelId} 290 {x} 2518.0701 {y} -1668.8199 {z} 12.85
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 103.76
72@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $sweet {handleOrTemplate} 72@
set_char_never_targetted $sweet {state} True
give_weapon_to_char $sweet {weaponType} WeaponType.SprayCan {ammo} 30000
set_current_char_weapon $sweet {weaponType} WeaponType.SprayCan
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_max_health $sweet {maxHealth} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
switch_car_generator $gen_car6 {amount} 0
clear_area 2518.0701 {y} -1668.8199 {z} 12.85 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.1599 {y} -1666.47 {z} 13.0
set_can_burst_car_tyres $sweet_car {state} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 16.0
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
set_radio_channel RadioChannel.BounceFM
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2520.1001 {y} -1669.58 {z} 13.1
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 173.99
task_go_straight_to_coord $big_smoke {x} 2518.509 {y} -1676.124 {z} 13.3855 {speed} MoveState.Walk {time} 10000
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
switch_widescreen True
set_player_control $player1 {state} False
clear_area 2518.0701 {y} -1668.8199 {z} 12.85 {radius} 40.0 {clearParticles} True
set_near_clip 0.2
set_fixed_camera_position 2512.01 {y} -1671.207 {z} 14.2722 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2512.938 {y} -1670.842 {z} 14.1948 {switchStyle} SwitchType.JumpCut
load_scene 2515.4199 {y} -1671.1899 {z} 14.46
task_go_straight_to_coord $sweet {x} 2513.812 {y} -1669.527 {z} 12.5348 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $scplayer {x} 2512.6399 {y} -1671.0699 {z} 12.5 {speed} MoveState.Walk {time} 10000
do_fade 500 {direction} Fade.In

:SWEET1_1863
if 
  get_fading_status 
goto_if_false @SWEET1_1887
wait 0
goto @SWEET1_1863

:SWEET1_1887
36@ = 0
skip_cutscene_start_internal @SWEET1_2699

:SWEET1_1901
if 
  $sweet1_audio_is_playing <> 1
goto_if_false @SWEET1_2028
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2021
if 
  $6545 == 2
goto_if_false @SWEET1_2021
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2014
clear_look_at $scplayer
clear_look_at $sweet
task_look_at_char $scplayer {target} $sweet {time} 8000
task_look_at_char $sweet {target} $scplayer {time} 8000

:SWEET1_2014
$sweet1_chat_switch = 1

:SWEET1_2021
goto @SWEET1_1901

:SWEET1_2028
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2052
task_turn_char_to_face_char $scplayer {target} $sweet

:SWEET1_2052
clear_area 2512.26 {y} -1667.83 {z} 12.56 {radius} 30.0 {clearParticles} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2523.417 {fromY} -1664.991 {fromZ} 15.1254 {toX} 2522.9609 {toY} -1667.46 {toZ} 15.2254 {time} 13000 {ease} True
camera_set_vector_track 2513.6951 {fromY} -1670.609 {fromZ} 13.8556 {toX} 2514.2971 {toY} -1669.343 {toZ} 13.9372 {time} 13000 {ease} True

:SWEET1_2160
if 
  $sweet1_audio_is_playing <> 2
goto_if_false @SWEET1_2255
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2248
if 
  $6545 == 2
goto_if_false @SWEET1_2248
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2241

:SWEET1_2241
$sweet1_chat_switch = 1

:SWEET1_2248
goto @SWEET1_2160

:SWEET1_2255
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2271

:SWEET1_2271
if 
  $sweet1_audio_is_playing <> 3
goto_if_false @SWEET1_2403
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2396
if 
  $6545 == 2
goto_if_false @SWEET1_2396
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2389
task_play_anim $sweet {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:SWEET1_2389
$sweet1_chat_switch = 1

:SWEET1_2396
goto @SWEET1_2271

:SWEET1_2403
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2419

:SWEET1_2419
if 
  $sweet1_audio_is_playing <> 4
goto_if_false @SWEET1_2514
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2507
if 
  $6545 == 2
goto_if_false @SWEET1_2507
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2500

:SWEET1_2500
$sweet1_chat_switch = 1

:SWEET1_2507
goto @SWEET1_2419

:SWEET1_2514
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2530

:SWEET1_2530
if 
  $sweet1_audio_is_playing <> 5
goto_if_false @SWEET1_2687
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2680
if 
  $6545 == 2
goto_if_false @SWEET1_2680
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2673
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_2673
set_next_desired_move_state MoveState.Walk
task_go_straight_to_coord $scplayer {x} 2510.271 {y} -1669.803 {z} 12.4092 {speed} MoveState.Walk {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 20000 {seat} SeatId.BikeRear

:SWEET1_2673
$sweet1_chat_switch = 1

:SWEET1_2680
goto @SWEET1_2530

:SWEET1_2687
wait 1000
36@ = 1

:SWEET1_2699
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_char $big_smoke
unload_special_character 10
62@ = add_blip_for_coord 2089.01 {y} -1649.08 {z} 12.8
remove_blip 62@
if 
  36@ == 0
goto_if_false @SWEET1_2909
set_char_coordinates $scplayer {x} 2511.6799 {y} -1670.33 {z} 12.46
set_char_heading $scplayer {heading} 62.36
clear_look_at $scplayer
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2909
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_2909
clear_area 2510.05 {y} -1666.61 {z} 12.57 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2510.05 {y} -1666.61 {z} 12.57
set_char_heading $sweet {heading} 53.89
clear_look_at $sweet
clear_char_tasks_immediately $sweet
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 20000 {seat} SeatId.BikeRear

:SWEET1_2909
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2979
clear_area 2510.05 {y} -1666.61 {z} 12.57 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2510.05 {y} -1666.61 {z} 12.57
set_char_heading $sweet {heading} 53.89

:SWEET1_2979
clear_char_tasks $scplayer
camera_reset_new_scriptables 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE1_A' {time} 7000 {flag} 1
45@ = 0
$blob_flag = 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3070
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3070
if or
  not locate_car_3d $sweet_car {x} 2089.01 {y} -1649.08 {z} 12.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_3594
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1_3158
goto @SWEET1_14640

:SWEET1_3158
if 
  is_char_dead $sweet
goto_if_false @SWEET1_3197
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3197
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_3238
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3238
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3284
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533
goto @SWEET1_3468

:SWEET1_3284
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_3388
if 
  34@ == 0
goto_if_false @SWEET1_3381
remove_blip 56@
remove_blip 62@
62@ = add_blip_for_coord 2089.01 {y} -1649.08 {z} 12.8
print_now 'HOOD3_A' {time} 5000 {flag} 1
$blob_flag = 1
34@ = 1

:SWEET1_3381
goto @SWEET1_3468

:SWEET1_3388
if 
  34@ == 1
goto_if_false @SWEET1_3468
remove_blip 56@
remove_blip 62@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15124
print_now 'SWE1_S' {time} 5000 {flag} 1
$blob_flag = 0
34@ = 0

:SWEET1_3468
if 
  is_char_dead $sweet
goto_if_false @SWEET1_3507
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3507
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_3548
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3548
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3587
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_3587
goto @SWEET1_3070

:SWEET1_3594
set_player_control $player1 {state} False
set_fixed_camera_position 2082.533 {y} -1650.244 {z} 14.8007 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2083.5149 {y} -1650.202 {z} 14.6181 {switchStyle} SwitchType.JumpCut
request_animation "GRAFFITI"
78@, 79@, 80@ = get_nearest_tag_position 2100.8401 {yCoord} -1648.71 {zCoord} 12.42
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3763
66@ = open_sequence_task 
task_leave_car -1 {vehicle} $sweet_car
task_go_straight_to_coord -1 {x} 2100.48 {y} -1649.14 {z} 12.47 {speed} MoveState.Walk {time} 20000
task_shoot_at_coord -1 {x} 78@ {y} 79@ {z} 80@ {time} 15000
close_sequence_task 66@

:SWEET1_3763
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
set_char_accuracy $sweet {accuracy} 90
set_char_shoot_rate $sweet {rate} 100
69@ = 0
switch_widescreen True
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_3877
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3877
task_leave_car $sweet {vehicle} $sweet_car

:SWEET1_3877
wait 600
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3906
task_leave_car $scplayer {vehicle} $sweet_car

:SWEET1_3906
wait 500
do_fade 1000 {direction} Fade.Out

:SWEET1_3918
if 
  get_fading_status 
goto_if_false @SWEET1_3942
wait 0
goto @SWEET1_3918

:SWEET1_3942
if 
  not has_animation_loaded "GRAFFITI"
goto_if_false @SWEET1_3976
wait 0
goto @SWEET1_3942

:SWEET1_3976
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7474
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7456
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1_4033
warp_char_from_car_to_coord $scplayer {x} 2094.7 {y} -1652.05 {z} 12.65
goto @SWEET1_4053

:SWEET1_4033
set_char_coordinates $scplayer {x} 2094.7 {y} -1652.05 {z} 12.65

:SWEET1_4053
set_char_heading $scplayer {heading} 302.0
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 2099.1201 {y} -1651.26 {z} 12.63 {speed} MoveState.Walk {time} 20000
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4200
if 
  is_char_in_any_car $sweet
goto_if_false @SWEET1_4152
warp_char_from_car_to_coord $sweet {x} 2095.8 {y} -1649.86 {z} 12.7
goto @SWEET1_4172

:SWEET1_4152
set_char_coordinates $sweet {x} 2095.8 {y} -1649.86 {z} 12.7

:SWEET1_4172
set_char_heading $sweet {heading} 277.0
clear_char_tasks $sweet
perform_sequence_task $sweet {sequence} 66@
clear_sequence_task 66@

:SWEET1_4200
set_fixed_camera_position 2095.531 {y} -1659.485 {z} 13.3156 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2095.7419 {y} -1658.519 {z} 13.4672 {switchStyle} SwitchType.JumpCut
clear_area 2094.2 {y} -1652.05 {z} 12.65 {radius} 10.0 {clearParticles} True
wait 500
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4319
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 4500

:SWEET1_4319
36@ = 0
skip_cutscene_start_internal @SWEET1_5931
wait 2000
set_fixed_camera_position 2102.1101 {y} -1647.672 {z} 13.1493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2101.3689 {y} -1648.3149 {z} 13.3438 {switchStyle} SwitchType.JumpCut

:SWEET1_4389
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_4493
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4447
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4447
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4486
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4486
goto @SWEET1_4389

:SWEET1_4493
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_AR' {time} 10000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4537
start_char_facial_talk $sweet {duration} 3000

:SWEET1_4537
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_4641
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4595
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4595
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4634
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4634
goto @SWEET1_4537

:SWEET1_4641
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4664
stop_char_facial_talk $sweet

:SWEET1_4664
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4688
64@ = get_sequence_progress $sweet

:SWEET1_4688
if 
  64@ <> 2
goto_if_false @SWEET1_4844
wait 0
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_4751
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4751
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4790
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4790
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4829
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_4829
64@ = get_sequence_progress $sweet
goto @SWEET1_4688

:SWEET1_4844
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2097.269 {fromY} -1648.215 {fromZ} 14.4973 {toX} 2098.3191 {toY} -1650.517 {toZ} 14.3662 {time} 10000 {ease} True
camera_set_vector_track 2101.626 {fromY} -1649.577 {fromZ} 13.7631 {toX} 2101.8899 {toY} -1647.925 {toZ} 13.7316 {time} 10000 {ease} True
print_help_forever 'SWE1_D'
58@ = 1
TIMERA = 0

:SWEET1_4953
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_5198
wait 0
$tag_percentage = get_percentage_tagged_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5031
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5031
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5070
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5070
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_5111
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5111
if 
  58@ == 1
goto_if_false @SWEET1_5191
if 
  TIMERA > 5000
goto_if_false @SWEET1_5180
print_help 'SWE1_F'
TIMERA = 0
58@ = 2
goto @SWEET1_5191

:SWEET1_5180
print_help_forever 'SWE1_D'

:SWEET1_5191
goto @SWEET1_4953

:SWEET1_5198
wait 1000
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5287
set_char_heading $sweet {heading} 280.0
task_play_anim $sweet {animationName} "GRAFFITI_CHKOUT" {animationFile} "GRAFFITI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
77@ = get_script_task_status $sweet {taskId} 1541

:SWEET1_5287
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_5526
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5348
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5348
77@ = get_script_task_status $sweet {taskId} 1541
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5398
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5398
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_5439
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5439
if 
  58@ == 1
goto_if_false @SWEET1_5519
if 
  TIMERA > 5000
goto_if_false @SWEET1_5508
print_help 'SWE1_F'
TIMERA = 0
58@ = 2
goto @SWEET1_5519

:SWEET1_5508
print_help_forever 'SWE1_D'

:SWEET1_5519
goto @SWEET1_5287

:SWEET1_5526
camera_reset_new_scriptables 
clear_help 
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5571
task_go_straight_to_coord $sweet {x} 2099.1001 {y} -1650.02 {z} 12.57 {speed} MoveState.Walk {time} 20000

:SWEET1_5571
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5619
clear_look_at $sweet
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 4500
task_look_at_char $sweet {target} $scplayer {time} 4500

:SWEET1_5619
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_5723
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5677
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5677
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5716
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5716
goto @SWEET1_5619

:SWEET1_5723
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_CA' {time} 10000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5767
start_char_facial_talk $sweet {duration} 3000

:SWEET1_5767
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_5871
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5825
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5825
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5864
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_5864
goto @SWEET1_5767

:SWEET1_5871
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5892
stop_char_facial_talk $sweet

:SWEET1_5892
clear_prints 
task_go_straight_to_coord $scplayer {x} 2097.5601 {y} -1651.36 {z} 12.71 {speed} MoveState.Walk {time} 20000
wait 500
36@ = 1

:SWEET1_5931
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7475
camera_reset_new_scriptables 
if 
  36@ == 0
goto_if_false @SWEET1_6144
do_fade 500 {direction} Fade.Out

:SWEET1_5977
if 
  get_fading_status 
goto_if_false @SWEET1_6001
wait 0
goto @SWEET1_5977

:SWEET1_6001
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 1
set_char_coordinates $scplayer {x} 2097.5601 {y} -1651.36 {z} 12.71
set_char_heading $scplayer {heading} 99.0
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_6098
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 2099.1001 {y} -1650.02 {z} 12.57
set_char_heading $sweet {heading} 99.0

:SWEET1_6098
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
do_fade 700 {direction} Fade.In

:SWEET1_6120
if 
  get_fading_status 
goto_if_false @SWEET1_6144
wait 0
goto @SWEET1_6120

:SWEET1_6144
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_6189
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_6189
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 15000 {seat} SeatId.BikeRear

:SWEET1_6189
remove_blip 56@
remove_blip 62@
clear_look_at $scplayer
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
remove_blip 62@
42@ = add_blip_for_coord 2068.3101 {y} -1654.0 {z} 14.3
change_blip_colour 42@ {color} BlipColor.Green
43@ = add_blip_for_coord 2047.3101 {y} -1634.65 {z} 13.8
change_blip_colour 43@ {color} BlipColor.Green
remove_animation "GRAFFITI"
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_6313
lock_car_doors $sweet_car {lockStatus} CarLock.LockoutPlayerOnly

:SWEET1_6313
69@ = 1
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
65@ = 0

:SWEET1_6360
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_6933
wait 0
if 
  65@ == 0
goto_if_false @SWEET1_6449
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_6442
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_CB' {time} 2500 {flag} 1
65@ = 1

:SWEET1_6442
goto @SWEET1_6505

:SWEET1_6449
if 
  65@ == 1
goto_if_false @SWEET1_6505
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_6505
print_now 'SWE1_X' {time} 6000 {flag} 1
65@ = 2

:SWEET1_6505
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
59@ = get_percentage_tagged_in_area 2068.876 {leftBottomY} -1654.589 {rightTopX} 2063.5439 {rightTopY} -1650.0129
60@ = get_percentage_tagged_in_area 2044.8361 {leftBottomY} -1633.986 {rightTopX} 2047.145 {rightTopY} -1638.957
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_6611
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_6611
if 
  is_char_dead $sweet
goto_if_false @SWEET1_6650
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_6650
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_6691
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_6691
if or
  locate_char_on_foot_2d $scplayer {x} 2043.6801 {y} -1635.73 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
  locate_char_on_foot_2d $scplayer {x} 2067.99 {y} -1652.61 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1_6880
if 
  58@ == 0
goto_if_false @SWEET1_6818
if 
  TIMERA > 1000
goto_if_false @SWEET1_6818
print_help 'SWE1_D'
TIMERA = 0
58@ = 1

:SWEET1_6818
if 
  58@ == 1
goto_if_false @SWEET1_6880
if 
  TIMERA > 5000
goto_if_false @SWEET1_6880
print_help 'SWE1_F'
TIMERA = 0
58@ = 2

:SWEET1_6880
if 
  59@ == 100
goto_if_false @SWEET1_6903
remove_blip 42@

:SWEET1_6903
if 
  60@ == 100
goto_if_false @SWEET1_6926
remove_blip 43@

:SWEET1_6926
goto @SWEET1_6360

:SWEET1_6933
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_6981
remove_blip 42@
remove_blip 43@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
lock_car_doors $sweet_car {lockStatus} CarLock.Unlocked

:SWEET1_6981
print_now 'SWE1_S' {time} 6000 {flag} 1
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7036
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7036
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7457

:SWEET1_7043
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_7233
wait 0
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7107
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7107
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7146
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7146
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7185
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7185
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7226
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7226
goto @SWEET1_7043

:SWEET1_7233
45@ = 0
58@ = 0
TIMERA = 0
$blob_flag = 1
remove_blip 56@
41@ = add_blip_for_coord 2338.74 {y} -1500.3101 {z} 22.83

:SWEET1_7286
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_7431
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7344
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7344
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7383
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7383
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7424
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7424
goto @SWEET1_7286

:SWEET1_7431
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_AS' {time} 3000 {flag} 1

:SWEET1_7451
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_7596
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7509
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7509
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7548
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7548
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7589
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7589
goto @SWEET1_7451

:SWEET1_7596
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7635
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7635
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7674
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7674
TIMERA = 0

:SWEET1_7681
if or
  not locate_car_3d $sweet_car {x} 2338.74 {y} -1500.3101 {z} 22.83 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_8310
wait 0
if 
  39@ == 0
goto_if_false @SWEET1_7802
if 
  TIMERA > 10000
goto_if_false @SWEET1_7802
print_help 'SWE1_Z1'
39@ = 1

:SWEET1_7802
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7841
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7841
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7882
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_7882
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7928
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533
goto @SWEET1_8124

:SWEET1_7928
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8032
if 
  34@ == 0
goto_if_false @SWEET1_8025
remove_blip 41@
remove_blip 56@
41@ = add_blip_for_coord 2338.74 {y} -1500.3101 {z} 22.83
print_now 'HOOD3_B' {time} 5000 {flag} 1
34@ = 1
$blob_flag = 1

:SWEET1_8025
goto @SWEET1_8124

:SWEET1_8032
if 
  34@ == 1
goto_if_false @SWEET1_8124
remove_blip 56@
remove_blip 41@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15124
print_now 'SWE1_S' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
34@ = 0

:SWEET1_8124
if 
  58@ == 0
goto_if_false @SWEET1_8184
if 
  TIMERA > 3000
goto_if_false @SWEET1_8184
print_now 'HOOD3_B' {time} 5000 {flag} 1
58@ = 1

:SWEET1_8184
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8223
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8223
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_8264
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8264
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8303
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8303
goto @SWEET1_7681

:SWEET1_8310
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7460
remove_blip 56@
remove_blip 41@
43@ = add_blip_for_coord 2396.21 {y} -1469.8 {z} 24.9
change_blip_colour 43@ {color} BlipColor.Green
44@ = add_blip_for_coord 2353.22 {y} -1506.54 {z} 24.7
change_blip_colour 44@ {color} BlipColor.Green
switch_widescreen True
set_fixed_camera_position 2329.675 {y} -1499.911 {z} 25.8505 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2330.6531 {y} -1499.926 {z} 25.644 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
wait 100
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8490
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8490
task_leave_car $scplayer {vehicle} $sweet_car

:SWEET1_8490
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_8594
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8548
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8548
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8587
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8587
goto @SWEET1_8490

:SWEET1_8594
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_AV' {time} 10000 {flag} 1

:SWEET1_8614
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_8718
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8672
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8672
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8711
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_8711
goto @SWEET1_8614

:SWEET1_8718
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8780
wait 0
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_8773
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8773

:SWEET1_8773
goto @SWEET1_8718

:SWEET1_8780
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_8834
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8834
lock_car_doors $sweet_car {lockStatus} CarLock.LockoutPlayerOnly
task_car_drive_wander $sweet {vehicle} $sweet_car {speed} 20.0 {drivingMode} DrivingMode.AvoidCars

:SWEET1_8834
58@ = 0
39@ = 0
TIMERA = 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@
wait 1000
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SWEET1_8908
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_10350
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_9004
if 
  TIMERA > 2500
goto_if_false @SWEET1_9004
print_now 'SWE1_M' {time} 6000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7488
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7492
58@ = 1

:SWEET1_9004
$tag_percentage = get_percentage_tagged_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@
59@ = get_percentage_tagged_in_area 2396.21 {leftBottomY} -1469.8 {rightTopX} 2387.95 {rightTopY} -1463.55
60@ = get_percentage_tagged_in_area 2353.22 {leftBottomY} -1506.54 {rightTopX} 2354.8799 {rightTopY} -1511.58
if 
  61@ == 0
goto_if_false @SWEET1_9305
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SWEET1_9298
54@ = create_char PedType.Mission1 {modelId} 102 {x} 2400.45 {y} -1470.39 {z} 22.97
set_char_heading 54@ {heading} 82.4
55@ = create_char PedType.Mission1 {modelId} 103 {x} 2396.48 {y} -1469.9 {z} 22.99
set_char_heading 55@ {heading} 262.64
task_chat_with_char 55@ {other} 54@ {leadSpeaker} False {_p4} 1
task_chat_with_char 54@ {other} 55@ {leadSpeaker} True {_p4} 1
47@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 0.5 {heading} 90.0
set_sequence_to_repeat 47@ {state} True
close_sequence_task 47@
37@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 0.5 {heading} 270.0
set_sequence_to_repeat 37@ {state} True
close_sequence_task 37@
61@ = 1

:SWEET1_9298
goto @SWEET1_9971

:SWEET1_9305
if 
  46@ == 0
goto_if_false @SWEET1_9505
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 20.0 {yRadius} 17.0 {drawSphere} False
goto_if_false @SWEET1_9505
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9498
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9498
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2400.384 {y} -1472.208 {z} 23.9349 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2399.49 {y} -1471.7629 {z} 23.988 {switchStyle} SwitchType.JumpCut
print_help 'SWE1_H'
wait 500
skip_cutscene_start_internal @SWEET1_9483
wait 6500

:SWEET1_9483
skip_cutscene_end 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SWEET1_9498
46@ = 1

:SWEET1_9505
if 
  46@ == 1
goto_if_false @SWEET1_9751
if 
  39@ == 0
goto_if_false @SWEET1_9578
if 
  TIMERA > 2000
goto_if_false @SWEET1_9578
print_help 'SWE1_I'
39@ = 1

:SWEET1_9578
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SWEET1_9751
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9659
shut_char_up_for_scripted_speech 54@ {state} True
task_stand_still 54@ {time} 0
perform_sequence_task 54@ {sequence} 47@
clear_sequence_task 47@

:SWEET1_9659
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9744
shut_char_up_for_scripted_speech 55@ {state} True
task_stand_still 55@ {time} 0
perform_sequence_task 55@ {sequence} 37@
clear_sequence_task 37@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_9737
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_BA' {time} 2000 {flag} 1

:SWEET1_9737
TIMERA = 0

:SWEET1_9744
46@ = 2

:SWEET1_9751
if 
  46@ == 2
goto_if_false @SWEET1_9885
if or
  59@ == 100
  TIMERA > 5000
goto_if_false @SWEET1_9885
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9819
task_kill_char_on_foot 54@ {target} $scplayer

:SWEET1_9819
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9878
task_kill_char_on_foot 55@ {target} $scplayer
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_9878
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_BE' {time} 2000 {flag} 1

:SWEET1_9878
46@ = 3

:SWEET1_9885
if 
  46@ == 3
goto_if_false @SWEET1_9971
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_9971
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9941
shut_char_up_for_scripted_speech 54@ {state} False

:SWEET1_9941
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9964
shut_char_up_for_scripted_speech 55@ {state} False

:SWEET1_9964
46@ = 4

:SWEET1_9971
if 
  59@ == 100
goto_if_false @SWEET1_9994
remove_blip 43@

:SWEET1_9994
if 
  60@ == 100
goto_if_false @SWEET1_10017
remove_blip 44@

:SWEET1_10017
if and
  locate_char_on_foot_2d $scplayer {x} 2353.3 {y} -1508.1801 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  35@ == 0
goto_if_false @SWEET1_10087
print_help 'SWE1_G'
TIMERA = 0
35@ = 1

:SWEET1_10087
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_10126
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_10126
if 
  is_char_dead $sweet
goto_if_false @SWEET1_10165
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_10165
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_10206
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_10206
if 
  38@ == 0
goto_if_false @SWEET1_10343
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_10343
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_10343
if and
  not locate_char_any_means_car_3d $scplayer {vehicle} $sweet_car {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
  not is_car_on_screen $sweet_car
goto_if_false @SWEET1_10343
clear_char_tasks $sweet
set_car_coordinates $sweet_car {x} 2487.1721 {y} -1666.301 {z} -100.3438
freeze_car_position_and_dont_load_collision $sweet_car {state} True
freeze_char_position_and_dont_load_collision $sweet {state} True
38@ = 1

:SWEET1_10343
goto @SWEET1_8908

:SWEET1_10350
remove_blip 43@
remove_blip 44@
remove_blip 41@
41@ = add_blip_for_coord 2374.0 {y} -1534.1 {z} 23.0
print_now 'SWE1_Z' {time} 5000 {flag} 1
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@
request_car_recording 207

:SWEET1_10439
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_11234
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_10521
if 
  TIMERA > 2500
goto_if_false @SWEET1_10521
print_now 'SWE1_M' {time} 6000 {flag} 1
58@ = 1

:SWEET1_10521
$tag_percentage = get_percentage_tagged_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@
if 
  $tag_percentage == 100
goto_if_false @SWEET1_10561
remove_blip 42@

:SWEET1_10561
if 
  49@ == 0
goto_if_false @SWEET1_10682
if 
  locate_char_on_foot_3d $scplayer {x} 2374.0 {y} -1534.1 {z} 23.0 {xRadius} 1.4 {yRadius} 1.4 {zRadius} 2.0 {drawSphere} True
goto_if_false @SWEET1_10682
print_help 'JUMPH1'
remove_blip 41@
remove_blip 42@
42@ = add_blip_for_coord 2395.4299 {y} -1551.6899 {z} 26.98
change_blip_colour 42@ {color} BlipColor.Green
49@ = 1

:SWEET1_10682
if and
  locate_char_on_foot_2d $scplayer {x} 2352.3 {y} -1552.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  49@ == 0
goto_if_false @SWEET1_10745
print_help 'JUMPH1'
49@ = 1

:SWEET1_10745
if and
  locate_char_on_foot_2d $scplayer {x} 2420.7 {y} -1572.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  49@ == 0
goto_if_false @SWEET1_10808
print_help 'JUMPH1'
49@ = 1

:SWEET1_10808
if and
  locate_char_on_foot_2d $scplayer {x} 2373.5 {y} -1547.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  50@ == 0
goto_if_false @SWEET1_10871
print_help 'RADAR5'
50@ = 1

:SWEET1_10871
if and
  locate_char_on_foot_2d $scplayer {x} 2378.7549 {y} -1555.89 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  53@ == 0
goto_if_false @SWEET1_10971
print_help 'JUMPH2'
remove_blip 41@
remove_blip 42@
42@ = add_blip_for_coord 2395.4299 {y} -1551.6899 {z} 26.98
change_blip_colour 42@ {color} BlipColor.Green
53@ = 1

:SWEET1_10971
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_11012
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11012
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11051
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11051
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11090
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11090
if 
  38@ == 0
goto_if_false @SWEET1_11227
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11227
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11227
if or
  not locate_char_any_means_car_3d $scplayer {vehicle} $sweet_car {xRadius} 100.0 {yRadius} 100.0 {zRadius} 10.0 {drawSphere} False
  not is_car_on_screen $sweet_car
goto_if_false @SWEET1_11227
clear_char_tasks $sweet
set_car_coordinates $sweet_car {x} 2487.1721 {y} -1666.301 {z} -100.3438
freeze_car_position_and_dont_load_collision $sweet_car {state} True
freeze_char_position_and_dont_load_collision $sweet {state} True
38@ = 1

:SWEET1_11227
goto @SWEET1_10439

:SWEET1_11234
remove_blip 42@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11401
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11401
if 
  38@ == 1
goto_if_false @SWEET1_11303
freeze_car_position_and_dont_load_collision $sweet_car {state} False
freeze_char_position_and_dont_load_collision $sweet {state} False

:SWEET1_11303
set_car_coordinates $sweet_car {x} 2337.8601 {y} -1467.21 {z} 22.82
set_car_heading $sweet_car {heading} 180.0
wait 100
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11401
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11401
clear_char_tasks_immediately $sweet
task_warp_char_into_car_as_driver $sweet {vehicle} $sweet_car
set_char_can_be_shot_in_vehicle $sweet {state} False
remove_blip 41@
lock_car_doors $sweet_car {lockStatus} CarLock.Unlocked

:SWEET1_11401
if 
  not has_car_recording_been_loaded 207
goto_if_false @SWEET1_11511
wait 0
request_car_recording 207
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11465
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11465
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11504
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11504
goto @SWEET1_11401

:SWEET1_11511
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11616
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11616
if 
  has_car_recording_been_loaded 207
goto_if_false @SWEET1_11616
clear_char_tasks_immediately $sweet
wait 0
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11608
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11608
task_warp_char_into_car_as_driver $sweet {vehicle} $sweet_car

:SWEET1_11608
start_playback_recorded_car $sweet_car {path} 207

:SWEET1_11616
wait 2000
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11657
remove_blip 56@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True

:SWEET1_11657
set_player_control $player1 {state} False
clear_help 
clear_area 2378.323 {y} -1526.153 {z} 23.869 {radius} 50.0 {clearParticles} True
do_fade 300 {direction} Fade.Out

:SWEET1_11697
if 
  get_fading_status 
goto_if_false @SWEET1_11721
wait 0
goto @SWEET1_11697

:SWEET1_11721
load_scene_in_direction 2385.4441 {y} -1529.335 {z} 24.0351 {heading} 82.7482
switch_widescreen True
set_fixed_camera_position 2386.4441 {y} -1529.313 {z} 24.0696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2385.4441 {y} -1529.335 {z} 24.0351 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7464

:SWEET1_11819
if 
  TIMERA <= 3500
goto_if_false @SWEET1_11927
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11881
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11881
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11920
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_11920
goto @SWEET1_11819

:SWEET1_11927
set_fixed_camera_position 2386.4441 {y} -1529.313 {z} 24.0696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2385.4441 {y} -1529.335 {z} 24.0351 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12002
report_mission_audio_event_at_car $sweet_car {soundId} ScriptSound.SoundSweetsHorn

:SWEET1_12002
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_12106
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12060
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12060
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12099
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12099
goto @SWEET1_12002

:SWEET1_12106
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12130
report_mission_audio_event_at_car $sweet_car {soundId} ScriptSound.SoundSweetsHorn

:SWEET1_12130
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_BH' {time} 10000 {flag} 1

:SWEET1_12150
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_12254
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12208
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12208
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12247
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12247
goto @SWEET1_12150

:SWEET1_12254
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12301
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_12301
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} $sweet_car {seat} SeatId.BikeRear

:SWEET1_12301
camera_reset_new_scriptables 
if 
  not is_char_dead 54@
goto_if_false @SWEET1_12329
clear_char_tasks 54@
task_wander_standard 54@

:SWEET1_12329
if 
  not is_char_dead 55@
goto_if_false @SWEET1_12355
clear_char_tasks 55@
task_wander_standard 55@

:SWEET1_12355
$blob_flag = 0
34@ = 0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE1_S' {time} 6000 {flag} 1
remove_blip 56@
remove_blip 41@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12439
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True

:SWEET1_12439
load_mission_audio MissionAudioSlot.Slot1 {audioId} 26007

:SWEET1_12446
if or
  not locate_car_3d $sweet_car {x} 2504.7351 {y} -1672.45 {z} 12.3848 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_12964
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12551
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12551
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12597
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533
goto @SWEET1_12879

:SWEET1_12597
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_12787
if 
  40@ == 0
goto_if_false @SWEET1_12683
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_12683
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWEX_AH' {time} 3000 {flag} 1
TIMERA = 0
40@ = 1

:SWEET1_12683
if 
  34@ == 0
goto_if_false @SWEET1_12780
remove_blip 41@
remove_blip 56@
41@ = add_blip_for_coord 2504.7351 {y} -1672.45 {z} 12.3848
if 
  TIMERA > 3000
goto_if_false @SWEET1_12773
print_now 'SWE1_B' {time} 6000 {flag} 1
34@ = 1

:SWEET1_12773
$blob_flag = 1

:SWEET1_12780
goto @SWEET1_12879

:SWEET1_12787
if 
  34@ == 1
goto_if_false @SWEET1_12879
remove_blip 56@
remove_blip 41@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15124
print_now 'SWE1_S' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
34@ = 0

:SWEET1_12879
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12918
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12918
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12957
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14533

:SWEET1_12957
goto @SWEET1_12446

:SWEET1_12964
switch_widescreen True
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:SWEET1_12982
if 
  get_fading_status 
goto_if_false @SWEET1_13006
wait 0
goto @SWEET1_12982

:SWEET1_13006
request_animation "GANGS"

:SWEET1_13015
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1_13046
wait 0
goto @SWEET1_13015

:SWEET1_13046
set_near_clip 0.2
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13076
hide_char_weapon_for_scripted_cutscene $sweet {state} True

:SWEET1_13076
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13123
stop_char_facial_talk $sweet
stop_char_facial_talk $scplayer

:SWEET1_13123
$sweet1_audio_is_playing = 0
$6545 = 0
$sweet1_chat_switch = 0
$sweet1_index = 1
gosub @SWEET1_52
set_fixed_camera_position 2509.95 {y} -1672.095 {z} 13.7315 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.8911 {y} -1672.4189 {z} 13.8204 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2510.1531 {fromY} -1673.551 {fromZ} 14.2267 {toX} 2509.9971 {toY} -1671.866 {toZ} 13.9831 {time} 18000 {ease} True
camera_set_vector_track 2510.967 {fromY} -1672.995 {fromZ} 14.0633 {toX} 2510.885 {toY} -1672.317 {toZ} 13.896 {time} 18000 {ease} True
mark_car_as_no_longer_needed $sweet_car
clear_area 2511.3521 {y} -1672.14 {z} 12.4588 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1_13370
set_char_coordinates $scplayer {x} 2511.3521 {y} -1672.14 {z} 12.4588
goto @SWEET1_13390

:SWEET1_13370
warp_char_from_car_to_coord $scplayer {x} 2511.3521 {y} -1672.14 {z} 12.4588

:SWEET1_13390
set_char_heading $scplayer {heading} 180.0
clear_area 2511.3521 {y} -1673.14 {z} 12.4588 {radius} 1.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13518
clear_char_tasks_immediately $sweet
if 
  not is_char_in_any_car $sweet
goto_if_false @SWEET1_13488
set_char_coordinates $sweet {x} 2511.3521 {y} -1673.14 {z} 12.4588
goto @SWEET1_13508

:SWEET1_13488
warp_char_from_car_to_coord $sweet {x} 2511.3521 {y} -1673.14 {z} 12.4588

:SWEET1_13508
set_char_heading $sweet {heading} 0.0

:SWEET1_13518
do_fade 1000 {direction} Fade.In
wait 700
100@ = 0.0
$sweet1_chat_switch = 0

:SWEET1_13547
if 
  $sweet1_audio_is_playing <> 1
goto_if_false @SWEET1_13658
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13651
if 
  $6545 == 2
goto_if_false @SWEET1_13651
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13644
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 20000

:SWEET1_13644
$sweet1_chat_switch = 1

:SWEET1_13651
goto @SWEET1_13547

:SWEET1_13658
$sweet1_chat_switch = 0

:SWEET1_13665
if 
  $sweet1_audio_is_playing <> 2
goto_if_false @SWEET1_13760
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13753
if 
  $6545 == 2
goto_if_false @SWEET1_13753
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13746

:SWEET1_13746
$sweet1_chat_switch = 1

:SWEET1_13753
goto @SWEET1_13665

:SWEET1_13760
$sweet1_chat_switch = 0

:SWEET1_13767
if 
  $sweet1_audio_is_playing <> 3
goto_if_false @SWEET1_13862
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13855
if 
  $6545 == 2
goto_if_false @SWEET1_13855
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13848

:SWEET1_13848
$sweet1_chat_switch = 1

:SWEET1_13855
goto @SWEET1_13767

:SWEET1_13862
$sweet1_chat_switch = 0

:SWEET1_13869
if 
  $sweet1_audio_is_playing <> 4
goto_if_false @SWEET1_14001
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13994
if 
  $6545 == 2
goto_if_false @SWEET1_13994
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13987
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:SWEET1_13987
$sweet1_chat_switch = 1

:SWEET1_13994
goto @SWEET1_13869

:SWEET1_14001
$sweet1_chat_switch = 0

:SWEET1_14008
if 
  $sweet1_audio_is_playing <> 5
goto_if_false @SWEET1_14103
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14096
if 
  $6545 == 2
goto_if_false @SWEET1_14096
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14089

:SWEET1_14089
$sweet1_chat_switch = 1

:SWEET1_14096
goto @SWEET1_14008

:SWEET1_14103
$sweet1_chat_switch = 0

:SWEET1_14110
if 
  $sweet1_audio_is_playing <> 6
goto_if_false @SWEET1_14295
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14288
if 
  $6545 == 2
goto_if_false @SWEET1_14288
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14281
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14281
task_play_anim $sweet {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1_14281
$sweet1_chat_switch = 1

:SWEET1_14288
goto @SWEET1_14110

:SWEET1_14295
77@ = get_script_task_status $scplayer {taskId} 1541

:SWEET1_14306
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_14346
wait 0
77@ = get_script_task_status $scplayer {taskId} 1541
goto @SWEET1_14306

:SWEET1_14346
$sweet1_chat_switch = 0

:SWEET1_14353
if 
  $sweet1_audio_is_playing <> 7
goto_if_false @SWEET1_14489
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14482
if 
  $6545 == 2
goto_if_false @SWEET1_14482
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14475
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 2000
task_go_straight_to_coord $sweet {x} 2517.397 {y} -1677.3521 {z} 13.2548 {speed} MoveState.Walk {time} 20000

:SWEET1_14475
$sweet1_chat_switch = 1

:SWEET1_14482
goto @SWEET1_14353

:SWEET1_14489
wait 1500
clear_look_at $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
camera_reset_new_scriptables 
delete_char $sweet
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
goto @SWEET1_14640

:SWEET1_14533
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_14638
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan

:SWEET1_14638
return 

:SWEET1_14640
$flag_sweet_mission_counter += 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_14689
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 1000
goto @SWEET1_14699

:SWEET1_14689
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 1000

:SWEET1_14699
$bball_unlocked = 1
remove_pickup $6536
$6536 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 1000 {x} 2492.5049 {y} -1700.825 {z} 1017.8
player_made_progress 1
register_mission_passed 'SWEET_1'
print_with_number_big 'M_PASSS' {num} 200 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
add_score $player1 {money} 200
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:SWEET1_14796
mark_model_as_no_longer_needed 365
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed $sweet
$timer_mobile_start = get_game_timer 
switch_car_generator $gen_car6 {amount} 101
remove_blip 41@
remove_blip 42@
remove_blip 43@
remove_blip 44@
remove_blip 56@
remove_blip 62@
remove_animation "GRAFFITI"
remove_animation "GANGS"
remove_char_elegantly $sweet
remove_car_recording 207
unload_special_character 1
unload_special_character 10
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_14933
set_can_burst_car_tyres $sweet_car {state} True

:SWEET1_14933
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
$onmission = 0
mission_has_finished 
return 

:SWEET1_15124
clear_mission_audio MissionAudioSlot.Slot2
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_15153
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7468

:SWEET1_15153
if 
  $sweet1_cutscene_flag == 1
goto_if_false @SWEET1_15178
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26044

:SWEET1_15178
if 
  $sweet1_cutscene_flag == 2
goto_if_false @SWEET1_15203
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26041

:SWEET1_15203
if 
  $sweet1_cutscene_flag == 3
goto_if_false @SWEET1_15228
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7463

:SWEET1_15228
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET1_15244
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_15326
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_15281
return 

:SWEET1_15281
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_15301
return 

:SWEET1_15301
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_15319
return 

:SWEET1_15319
goto @SWEET1_15244

:SWEET1_15326
play_mission_audio MissionAudioSlot.Slot2
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_15364
print_now 'SWE1_BM' {time} 3000 {flag} 1

:SWEET1_15364
if 
  $sweet1_cutscene_flag == 1
goto_if_false @SWEET1_15398
print_now 'SWEX_BS' {time} 3000 {flag} 1

:SWEET1_15398
if 
  $sweet1_cutscene_flag == 2
goto_if_false @SWEET1_15432
print_now 'SWEX_BP' {time} 3000 {flag} 1

:SWEET1_15432
if 
  $sweet1_cutscene_flag == 3
goto_if_false @SWEET1_15466
print_now 'SWE1_BG' {time} 3000 {flag} 1

:SWEET1_15466
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_15548
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_15503
return 

:SWEET1_15503
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_15523
return 

:SWEET1_15523
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_15541
return 

:SWEET1_15541
goto @SWEET1_15466

:SWEET1_15548
$sweet1_cutscene_flag += 1
if 
  $sweet1_cutscene_flag > 3
goto_if_false @SWEET1_15580
$sweet1_cutscene_flag = 0

:SWEET1_15580
return 

:SWEET1_15582
if or
  $6545 == 0
  $6545 == 1
goto_if_false @SWEET1_15652
if 
  is_int_lvar_greater_or_equal_to_int_var 48@ >= $sweet1_audio_is_playing
goto_if_false @SWEET1_15652
if 
  TIMERA > 200
goto_if_false @SWEET1_15652
gosub @SWEET1_15724

:SWEET1_15652
if 
  $6545 == 2
goto_if_false @SWEET1_15722
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_15722
gosub @SWEET1_15953
$6545 = 0
$sweet1_audio_is_playing += 1
$sweet1_chat_switch = 0
clear_prints 
TIMERA = 0

:SWEET1_15722
return 

:SWEET1_15724
if 
  $6545 == 0
goto_if_false @SWEET1_15760
load_mission_audio MissionAudioSlot.Slot1 {audioId} $spray_can_pickup($sweet1_audio_is_playing,8i)
$6545 = 1

:SWEET1_15760
if 
  $6545 == 1
goto_if_false @SWEET1_15825
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_15825
print_now $get_in_counter_swee1($sweet1_audio_is_playing,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET1_15827
$6545 = 2

:SWEET1_15825
return 

:SWEET1_15827
if or
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7402
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7403
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7404
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7405
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7494
goto_if_false @SWEET1_15920
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 2000
goto @SWEET1_15951

:SWEET1_15920
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_15951
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 2000

:SWEET1_15951
return 

:SWEET1_15953
if or
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7402
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7403
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7404
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7405
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7494
goto_if_false @SWEET1_16043
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @SWEET1_16071

:SWEET1_16043
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_16071
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet

:SWEET1_16071
return 

//-------------Mission 14---------------
// Originally: Cleaning The Hood

:SWEET1B
script_name 'SWEET1B'
gosub @SWEET1B_1015
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1B_38
gosub @SWEET1B_15476

:SWEET1B_38
gosub @SWEET1B_15986
terminate_this_script 

:SWEET1B_47
switch_start 87@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET1B_1013 {caseNum1} 0 {caseLabel1} @SWEET1B_175 {caseNum2} 1 {caseLabel2} @SWEET1B_365 {caseNum3} 2 {caseLabel3} @SWEET1B_533 {caseNum4} 3 {caseLabel4} @SWEET1B_591 {caseNum5} 4 {caseLabel5} @SWEET1B_737 {caseNum6} 5 {caseLabel6} @SWEET1B_795 {caseNum7} 6 {caseLabel7} @SWEET1B_853
switch_continued 7 {caseLabel1} @SWEET1B_911 {caseNum2} -1 {caseLabel2} @SWEET1B_1013 {caseNum3} -1 {caseLabel3} @SWEET1B_1013 {caseNum4} -1 {caseLabel4} @SWEET1B_1013 {caseNum5} -1 {caseLabel5} @SWEET1B_1013 {caseNum6} -1 {caseLabel6} @SWEET1B_1013 {caseNum7} -1 {caseLabel7} @SWEET1B_1013 {caseNum8} -1 {caseLabel8} @SWEET1B_1013 {caseNum9} -1 {caseLabel9} @SWEET1B_1013

:SWEET1B_175
set_var_text_label s$6566[0] = 'SWE1_ZF'
set_var_text_label s$6566[1] = 'SWE1_YA'
set_var_text_label s$6566[2] = 'SWE1_YB'
set_var_text_label s$6566[3] = 'SWE1_YC'
set_var_text_label s$6566[4] = 'SWE1_YD'
set_var_text_label s$6566[5] = 'SWE1_YE'
set_var_text_label s$6566[6] = 'SWE1_YF'
set_var_text_label s$6566[7] = 'SWE1_YG'
set_lvar_int_to_constant 93@ = 7487
set_lvar_int_to_constant 94@ = 7408
set_lvar_int_to_constant 95@ = 7423
set_lvar_int_to_constant 96@ = 7409
set_lvar_int_to_constant 97@ = 7424
set_lvar_int_to_constant 98@ = 7425
set_lvar_int_to_constant 99@ = 7410
set_lvar_int_to_constant 100@ = 7426
91@ = 7
goto @SWEET1B_1013

:SWEET1B_365
set_var_text_label s$6566[0] = 'SWE1_YM'
set_var_text_label s$6566[1] = 'SWE1_YN'
set_var_text_label s$6566[2] = 'SWE1_YO'
set_var_text_label s$6566[3] = 'SWE1_YP'
set_var_text_label s$6566[4] = 'SWE1_YQ'
set_var_text_label s$6566[5] = 'SWE1_YR'
set_var_text_label s$6566[6] = 'SWE1_YS'
set_lvar_int_to_constant 93@ = 7430
set_lvar_int_to_constant 94@ = 7431
set_lvar_int_to_constant 95@ = 7432
set_lvar_int_to_constant 96@ = 7433
set_lvar_int_to_constant 97@ = 7481
set_lvar_int_to_constant 98@ = 7434
set_lvar_int_to_constant 99@ = 7482
91@ = 6
goto @SWEET1B_1013

:SWEET1B_533
set_var_text_label s$6566[0] = 'SWE1_YX'
set_var_text_label s$6566[1] = 'SWE1_YY'
set_lvar_int_to_constant 93@ = 7437
set_lvar_int_to_constant 94@ = 7438
91@ = 1
goto @SWEET1B_1013

:SWEET1B_591
set_var_text_label s$6566[0] = 'SWE1_TA'
set_var_text_label s$6566[1] = 'SWE1_TB'
set_var_text_label s$6566[2] = 'SWE1_TC'
set_var_text_label s$6566[3] = 'SWE1_TD'
set_var_text_label s$6566[4] = 'SWE1_TE'
set_var_text_label s$6566[5] = 'SWE1_TF'
set_lvar_int_to_constant 93@ = 7476
set_lvar_int_to_constant 94@ = 7411
set_lvar_int_to_constant 95@ = 7412
set_lvar_int_to_constant 96@ = 7477
set_lvar_int_to_constant 97@ = 7413
set_lvar_int_to_constant 98@ = 7414
91@ = 5
goto @SWEET1B_1013

:SWEET1B_737
set_var_text_label s$6566[0] = 'SWE1_SA'
set_var_text_label s$6566[1] = 'SWE1_SB'
set_lvar_int_to_constant 93@ = 7400
set_lvar_int_to_constant 94@ = 7401
91@ = 1
goto @SWEET1B_1013

:SWEET1B_795
set_var_text_label s$6566[0] = 'SWE1_YT'
set_var_text_label s$6566[1] = 'SWE1_YU'
set_lvar_int_to_constant 93@ = 7483
set_lvar_int_to_constant 94@ = 7435
91@ = 1
goto @SWEET1B_1013

:SWEET1B_853
set_var_text_label s$6566[0] = 'SWE1_YV'
set_var_text_label s$6566[1] = 'SWE1_YW'
set_lvar_int_to_constant 93@ = 7436
set_lvar_int_to_constant 94@ = 7484
91@ = 1
goto @SWEET1B_1013

:SWEET1B_911
set_var_text_label s$6566[0] = 'SWE1_UA'
set_var_text_label s$6566[1] = 'SWE1_UB'
set_var_text_label s$6566[2] = 'SWE1_UC'
set_var_text_label s$6566[3] = 'SWE1_UD'
set_lvar_int_to_constant 93@ = 7415
set_lvar_int_to_constant 94@ = 7416
set_lvar_int_to_constant 95@ = 7407
set_lvar_int_to_constant 96@ = 10245
91@ = 3
goto @SWEET1B_1013

:SWEET1B_1013
return 

:SWEET1B_1015
register_mission_given 
55@ = 0
47@ = 0
$onmission = 1
63@ = 0
52@ = 0
57@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
77@ = 0
84@ = 0
50@ = 0
43@ = 0
83@ = 0
86@ = 0
102@ = 0
66@ = 0
69@ = 0
51@ = 0
105@ = 0
103@ = 0
60@ = 0
switch_roads_off 2272.9221 {leftBottomY} -1649.556 {leftBottomZ} 14.3311 {rightTopX} 2266.1011 {rightTopY} -1633.219 {rightTopZ} 14.3505
switch_ped_roads_off 324.1973 {leftBottomY} 1116.7581 {leftBottomZ} 1082.8979 {rightTopX} 313.1226 {rightTopY} 1124.197 {rightTopZ} 1082.8979
wait 0
load_mission_text 'SWEET1B'
set_area_visible 1
load_cutscene 'SWEET1B'

:SWEET1B_1272
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1B_1296
wait 0
goto @SWEET1B_1272

:SWEET1B_1296
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1B_1305
if 
  not has_cutscene_finished 
goto_if_false @SWEET1B_1329
wait 0
goto @SWEET1B_1305

:SWEET1B_1329
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET1B_1342
if 
  get_fading_status 
goto_if_false @SWEET1B_1366
wait 0
goto @SWEET1B_1342

:SWEET1B_1366
clear_cutscene 
set_area_visible 0
request_model 336
request_model 492
load_special_character 1 {modelName} 'RYDER2'
75@ = load_char_decision_maker DecisionMakerType.Empty
load_all_models_now 

:SWEET1B_1404
if or
  not has_model_loaded 336
  not has_special_character_loaded 1
  not has_model_loaded 492
goto_if_false @SWEET1B_1440
wait 0
goto @SWEET1B_1404

:SWEET1B_1440
enable_ambient_crime False
clear_area 2516.3921 {y} -1676.517 {z} 13.0041 {radius} 5.0 {clearParticles} True
clear_area 2508.7419 {y} -1671.132 {z} 12.3818 {radius} 5.0 {clearParticles} True
clear_area 2516.95 {y} -1675.23 {z} 13.05 {radius} 2.0 {clearParticles} True
$ryder = create_char PedType.Mission1 {modelId} 290 {x} 2516.3921 {y} -1676.517 {z} 13.0041
set_char_heading $ryder {heading} 45.7
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
give_weapon_to_char $ryder {weaponType} WeaponType.BaseballBat {ammo} 3000
set_current_char_weapon $ryder {weaponType} WeaponType.BaseballBat
set_char_decision_maker $ryder {handleOrTemplate} 75@
set_char_only_damaged_by_player $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_max_health $ryder {maxHealth} 500
set_char_health $ryder {health} 500
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} True
39@ = add_blip_for_char $ryder
set_blip_as_friendly 39@ {state} True
remove_blip 39@
set_char_coordinates $scplayer {x} 2516.95 {y} -1675.23 {z} 13.05
set_char_heading $scplayer {heading} 56.0
load_scene 2509.8101 {y} -1670.89 {z} 12.39
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
set_player_group_to_follow_always $player1 {state} True
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} True
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} True
make_room_in_player_gang_for_mission_peds 1
set_char_signal_after_kill $ryder {state} False
print_now 'SW1B_A' {time} 10000 {flag} 1
switch_car_generator $gen_car6 {amount} 0
clear_area 2508.1599 {y} -1666.47 {z} 12.3983 {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.1599 {y} -1666.47 {z} 12.3983
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 16.0
set_radio_channel RadioChannel.RadioLosSantos
mark_model_as_no_longer_needed 492
set_player_control $player1 {state} True
do_fade 1200 {direction} Fade.In
38@ = add_blip_for_coord 2301.0701 {y} -1754.4 {z} 12.54
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
$blob_flag = 1
TIMERA = 0
switch_entry_exit 'LACRAK' {state} False
58@ = 0
101@ = 0
92@ = 0
87@ = 0
gosub @SWEET1B_47
clear_area 2301.0701 {y} -1754.4 {z} 12.54 {radius} 20.0 {clearParticles} True

:SWEET1B_2035
if or
  not locate_char_any_means_3d $scplayer {x} 2301.0701 {y} -1754.4 {z} 12.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_2424
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_2152
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_2152
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1B_2174
goto @SWEET1B_15901

:SWEET1B_2174
if 
  78@ == 0
goto_if_false @SWEET1B_2316
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2316
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_2316
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_2272
gosub @SWEET1B_16997

:SWEET1B_2272
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2316
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_2316
gosub @SWEET1B_16997

:SWEET1B_2316
if 
  104@ == 0
goto_if_false @SWEET1B_2371
if 
  TIMERA > 5000
goto_if_false @SWEET1B_2371
print_help 'CALLRYD'
104@ = 1

:SWEET1B_2371
gosub @SWEET1B_16294
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_2417
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_2417
goto @SWEET1B_2035

:SWEET1B_2424
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2301.918 {y} -1746.505 {z} 14.009 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2301.8101 {y} -1747.499 {z} 14.0471 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2557
if 
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_2532
task_leave_any_car $ryder
goto @SWEET1B_2557

:SWEET1B_2532
task_go_straight_to_coord $ryder {x} 2298.5701 {y} -1775.4399 {z} 12.56 {speed} MoveState.Walk {time} 2500

:SWEET1B_2557
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1B_2590
wait 800
task_leave_any_car $scplayer
goto @SWEET1B_2615

:SWEET1B_2590
task_go_straight_to_coord $scplayer {x} 2298.5701 {y} -1775.4399 {z} 12.56 {speed} MoveState.Walk {time} 2500

:SWEET1B_2615
mark_car_as_no_longer_needed $sweet_car
do_fade 1700 {direction} Fade.Out

:SWEET1B_2627
if 
  get_fading_status 
goto_if_false @SWEET1B_2651
wait 0
goto @SWEET1B_2627

:SWEET1B_2651
set_area_visible 3
make_player_safe_for_cutscene $player1
load_cutscene 'SWEET1C'

:SWEET1B_2671
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1B_2695
wait 0
goto @SWEET1B_2671

:SWEET1B_2695
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1B_2704
if 
  not has_cutscene_finished 
goto_if_false @SWEET1B_2728
wait 0
goto @SWEET1B_2704

:SWEET1B_2728
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET1B_2736
if 
  get_fading_status 
goto_if_false @SWEET1B_2760
wait 0
goto @SWEET1B_2736

:SWEET1B_2760
set_area_visible 0
request_model 28
request_model 107
request_animation "DEALER"
request_animation "GANGS"
34@ = load_char_decision_maker DecisionMakerType.Tough
76@ = load_char_decision_maker DecisionMakerType.Weak
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7427
load_all_models_now 

:SWEET1B_2814
if or
  not has_model_loaded 28
  not has_model_loaded 107
  not has_animation_loaded "DEALER"
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1B_2863
wait 0
goto @SWEET1B_2814

:SWEET1B_2863
remove_blip 38@
48@ = create_char PedType.Mission2 {modelId} 107 {x} 2283.656 {y} -1645.599 {z} 14.1598
set_char_decision_maker 48@ {handleOrTemplate} 75@
35@ = create_char PedType.Mission2 {modelId} 28 {x} 2284.947 {y} -1645.396 {z} 14.1413
set_char_max_health 35@ {maxHealth} 120
set_char_health 35@ {health} 120
set_char_heading 35@ {heading} 114.0
44@ = add_blip_for_char 35@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_shoot_rate 35@ {rate} 75
shut_char_up_for_scripted_speech 35@ {state} True
task_turn_char_to_face_char 35@ {target} 48@
task_turn_char_to_face_char 48@ {target} 35@
freeze_char_position_and_dont_load_collision 35@ {state} True
freeze_char_position_and_dont_load_collision 48@ {state} True
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2300.1299 {y} -1763.1801 {z} 12.63
set_char_heading $scplayer {heading} 0.0
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_3099
set_char_coordinates $ryder {x} 2298.1499 {y} -1762.67 {z} 12.56
set_char_heading $ryder {heading} 355.37

:SWEET1B_3099
load_scene 2300.1299 {y} -1763.1801 {z} 12.63
85@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2281.116 {y} -1647.527 {z} 14.2174 {speed} MoveState.Run {time} 10000
task_go_straight_to_coord -1 {x} 2281.1331 {y} -1650.709 {z} 14.1714 {speed} MoveState.Run {time} 10000
task_go_straight_to_coord -1 {x} 2238.0911 {y} -1661.728 {z} 14.469 {speed} MoveState.Run {time} 10000
task_wander_standard -1
close_sequence_task 85@
42@ = open_sequence_task 
task_play_anim -1 {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "DEALER_DEAL" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
40@ = open_sequence_task 
task_look_at_char -1 {target} 35@ {time} 3000
task_look_about -1 {time} 2000
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "DRUGS_BUY" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 40@ {state} True
close_sequence_task 40@
102@ = 1
do_fade 1000 {direction} Fade.In

:SWEET1B_3420
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_3485
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3478
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_3478
goto @SWEET1B_3420

:SWEET1B_3485
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YH' {time} 3000 {flag} 1

:SWEET1B_3505
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_3570
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3563
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_3563
goto @SWEET1B_3505

:SWEET1B_3570
print_now 'SW1B_B' {time} 10000 {flag} 1

:SWEET1B_3586
if or
  not is_char_dead 35@
  not locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_5267
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3682
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_3682
if 
  104@ == 0
goto_if_false @SWEET1B_3737
if 
  TIMERA > 2000
goto_if_false @SWEET1B_3737
print_help 'CALLRYD'
104@ = 1

:SWEET1B_3737
if 
  52@ == 0
goto_if_false @SWEET1B_3905
if 
  locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_3898
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_3826
freeze_char_position_and_dont_load_collision 48@ {state} False

:SWEET1B_3826
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_3891
freeze_char_position_and_dont_load_collision 35@ {state} False
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_3891
perform_sequence_task 35@ {sequence} 42@
clear_sequence_task 42@
perform_sequence_task 48@ {sequence} 40@
clear_sequence_task 40@

:SWEET1B_3891
52@ = 1

:SWEET1B_3898
goto @SWEET1B_4171

:SWEET1B_3905
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4171
if 
  52@ == 1
goto_if_false @SWEET1B_4171
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_4171
clear_char_tasks 35@
task_look_at_char 35@ {target} $scplayer {time} 3000
task_turn_char_to_face_char 35@ {target} $scplayer
set_char_decision_maker 35@ {handleOrTemplate} 34@
task_play_anim 35@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  51@ == 0
goto_if_false @SWEET1B_4122
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4122
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
51@ = 1

:SWEET1B_4122
58@ = 0
101@ = 0
92@ = 0
87@ = 4
gosub @SWEET1B_47
TIMERA = 0
52@ = 2

:SWEET1B_4171
if 
  52@ == 2
goto_if_false @SWEET1B_4331
if 
  105@ == 0
goto_if_false @SWEET1B_4260
if 
  TIMERA > 2000
goto_if_false @SWEET1B_4260
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_4260
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_4260
if 
  105@ == 1
goto_if_false @SWEET1B_4331
if 
  TIMERA > 8000
goto_if_false @SWEET1B_4331
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_4331
print_help 'MELHLP2'
105@ = 2

:SWEET1B_4331
if 
  51@ == 0
goto_if_false @SWEET1B_4636
if 
  is_char_dead 35@
goto_if_false @SWEET1B_4428
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4421
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
51@ = 1

:SWEET1B_4421
goto @SWEET1B_4636

:SWEET1B_4428
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4573
if or
  not is_char_health_greater 35@ {health} 119
  not is_char_health_greater 48@ {health} 99
goto_if_false @SWEET1B_4566
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4559
task_play_anim 35@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_4559
51@ = 1

:SWEET1B_4566
goto @SWEET1B_4636

:SWEET1B_4573
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4636
task_play_anim 35@ {animationName} "XPRESSSCRATCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:SWEET1B_4636
if 
  90@ == 0
goto_if_false @SWEET1B_4810
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4795
if 
  is_char_health_greater 35@ {health} 119
goto_if_false @SWEET1B_4738
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_4731
gosub @SWEET1B_16997

:SWEET1B_4731
goto @SWEET1B_4788

:SWEET1B_4738
give_weapon_to_char 35@ {weaponType} WeaponType.BaseballBat {ammo} 3000
set_char_drops_weapons_when_dead 35@ {state} False
shut_char_up_for_scripted_speech 35@ {state} False
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
clear_char_tasks 35@
task_kill_char_on_foot 35@ {target} $scplayer
90@ = 1

:SWEET1B_4788
goto @SWEET1B_4810

:SWEET1B_4795
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
90@ = 1

:SWEET1B_4810
if 
  66@ == 0
goto_if_false @SWEET1B_5214
if 
  locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 20.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET1B_5214
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7428
set_player_control $player1 {state} False
wait 1000
switch_widescreen True
set_fixed_camera_position 2283.019 {y} -1649.472 {z} 15.0999 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2283.3259 {y} -1648.525 {z} 15.1884 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5164
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_5159

:SWEET1B_5002
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_5067
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5060
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_5060
goto @SWEET1B_5002

:SWEET1B_5067
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YK' {time} 5000 {flag} 1

:SWEET1B_5087
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_5152
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5145
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_5145
goto @SWEET1B_5087

:SWEET1B_5152
goto @SWEET1B_5164

:SWEET1B_5159
wait 2000

:SWEET1B_5164
wait 1000
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1B_5190
task_leave_any_car $scplayer

:SWEET1B_5190
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
66@ = 1

:SWEET1B_5214
gosub @SWEET1B_16294
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5260
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_5260
goto @SWEET1B_3586

:SWEET1B_5267
mark_model_as_no_longer_needed 107
TIMERA = 0
remove_blip 44@

:SWEET1B_5283
if or
  TIMERA <= 2000
  78@ <> 0
goto_if_false @SWEET1B_5359
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5352
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_5352
goto @SWEET1B_5283

:SWEET1B_5359
do_fade 500 {direction} Fade.Out

:SWEET1B_5366
if 
  get_fading_status 
goto_if_false @SWEET1B_5390
wait 0
goto @SWEET1B_5366

:SWEET1B_5390
set_area_visible 0
delete_char 48@
mark_model_as_no_longer_needed 28
remove_animation "DEALER"
load_scene 2283.0 {y} -1644.4 {z} 14.2
clear_area 2285.1699 {y} -1644.74 {z} 14.08 {radius} 4.0 {clearParticles} True
clear_area_of_cars 2288.28 {leftBottomY} -1648.13 {leftBottomZ} 14.0 {rightTopX} 2274.9199 {rightTopY} -1641.33 {rightTopZ} 14.31
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5542
set_char_area_visible $ryder {areaId} 0
hide_char_weapon_for_scripted_cutscene $ryder {state} True
remove_char_from_group $ryder
clear_char_tasks_immediately $ryder
clear_look_at $ryder

:SWEET1B_5542
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
set_char_area_visible $scplayer {areaId} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
wait 1000
clear_area 2285.1699 {y} -1644.74 {z} 14.08 {radius} 5.0 {clearParticles} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_5638
set_char_coordinates $scplayer {x} 2284.4619 {y} -1645.925 {z} 14.1362
goto @SWEET1B_5658

:SWEET1B_5638
warp_char_from_car_to_coord $scplayer {x} 2284.4619 {y} -1645.925 {z} 14.1362

:SWEET1B_5658
set_char_heading $scplayer {heading} 333.0
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5757
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_5727
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_5747

:SWEET1B_5727
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_5747
set_char_heading $ryder {heading} 310.0

:SWEET1B_5757
108@ = 0
if 
  does_char_exist 35@
goto_if_false @SWEET1B_5803
if 
  is_char_head_missing 35@
goto_if_false @SWEET1B_5803
108@ = 1

:SWEET1B_5803
set_fixed_camera_position 2285.177 {y} -1644.748 {z} 14.0885 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2284.635 {y} -1645.266 {z} 14.7501 {switchStyle} SwitchType.JumpCut
if 
  108@ == 0
goto_if_false @SWEET1B_5879
set_player_drunkenness $player1 {intensity} 100

:SWEET1B_5879
58@ = 0
101@ = 0
92@ = 0
87@ = 1
gosub @SWEET1B_47
wait 200
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 21000
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5991
clear_look_at $ryder
task_look_at_coord $ryder {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 21000

:SWEET1B_5991
delete_char 35@
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6133
if 
  not locate_char_on_foot_3d $ryder {x} 2283.27 {y} -1645.8 {z} 14.15 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_6133
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_6103
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_6123

:SWEET1B_6103
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_6123
set_char_heading $ryder {heading} 310.0

:SWEET1B_6133
wait 200
do_fade 500 {direction} Fade.In
wait 700
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6287
if 
  not locate_char_on_foot_3d $ryder {x} 2283.27 {y} -1645.8 {z} 14.15 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_6287
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_6257
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_6277

:SWEET1B_6257
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_6277
set_char_heading $ryder {heading} 310.0

:SWEET1B_6287
clear_prints 
clear_help 
if 
  108@ == 0
goto_if_false @SWEET1B_6309

:SWEET1B_6309
skip_cutscene_start_internal @SWEET1B_7320
92@ = 0

:SWEET1B_6323
if 
  58@ == 0
goto_if_false @SWEET1B_6455
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6448
if 
  101@ == 2
goto_if_false @SWEET1B_6448
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6448
task_play_anim $ryder {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
92@ = 1

:SWEET1B_6448
goto @SWEET1B_6323

:SWEET1B_6455
92@ = 0

:SWEET1B_6462
if 
  58@ == 1
goto_if_false @SWEET1B_6498
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_6462

:SWEET1B_6498
92@ = 0

:SWEET1B_6505
if 
  58@ == 2
goto_if_false @SWEET1B_6616
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6609
if 
  101@ == 2
goto_if_false @SWEET1B_6609
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6609
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 9000
92@ = 1

:SWEET1B_6609
goto @SWEET1B_6505

:SWEET1B_6616
if 
  108@ == 0
goto_if_false @SWEET1B_6634

:SWEET1B_6634
92@ = 0

:SWEET1B_6641
if 
  58@ == 3
goto_if_false @SWEET1B_6677
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_6641

:SWEET1B_6677
92@ = 0

:SWEET1B_6684
if 
  58@ == 4
goto_if_false @SWEET1B_6795
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6788
if 
  101@ == 2
goto_if_false @SWEET1B_6788
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6788
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 5000
92@ = 1

:SWEET1B_6788
goto @SWEET1B_6684

:SWEET1B_6795
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6827
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 5000

:SWEET1B_6827
92@ = 0

:SWEET1B_6834
if 
  58@ == 5
goto_if_false @SWEET1B_6972
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6965
if 
  101@ == 2
goto_if_false @SWEET1B_6965
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6965
task_play_anim $ryder {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
92@ = 1

:SWEET1B_6965
goto @SWEET1B_6834

:SWEET1B_6972
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7026
task_play_anim $ryder {animationName} "IDLE_STANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_7026
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 20000
92@ = 0

:SWEET1B_7061
if 
  58@ == 6
goto_if_false @SWEET1B_7184
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_7177
if 
  101@ == 2
goto_if_false @SWEET1B_7177
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7177
clear_look_at $ryder
task_look_at_coord $ryder {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 20000
92@ = 1

:SWEET1B_7177
goto @SWEET1B_7061

:SWEET1B_7184
clear_char_tasks $scplayer
task_play_anim $scplayer {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_7224
if 
  0.351 > 110@
goto_if_false @SWEET1B_7300
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "FIGHTA_G"
goto_if_false @SWEET1B_7293
110@ = get_char_anim_current_time $scplayer {animationName} "FIGHTA_G"

:SWEET1B_7293
goto @SWEET1B_7224

:SWEET1B_7300
report_mission_audio_event_at_position 2285.177 {y} -1644.748 {z} 14.0885 {soundId} ScriptSound.SoundStampPed

:SWEET1B_7320
skip_cutscene_end 
clear_char_tasks $scplayer
clear_prints 
set_music_does_fade False
do_fade 0 {direction} Fade.Out
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7369
hide_char_weapon_for_scripted_cutscene $ryder {state} False

:SWEET1B_7369
wait 1000
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7395
clear_look_at $ryder

:SWEET1B_7395
clear_look_at $scplayer
remove_animation "GANGS"
remove_blip 38@
38@ = add_blip_for_coord 2171.781 {y} -1676.78 {z} 14.0859
102@ = 2
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7499
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
47@ = 1

:SWEET1B_7499
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
camera_reset_new_scriptables 
set_player_drunkenness $player1 {intensity} 0
set_char_heading $scplayer {heading} 152.235
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
79@ = create_pickup 336 {pickupType} PickupType.Once {x} 2285.7429 {y} -1647.309 {z} 14.0782
set_music_does_fade True
do_fade 1000 {direction} Fade.In
clear_prints 
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.BaseballBat
goto_if_false @SWEET1B_7805
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7441
wait 500

:SWEET1B_7609
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_7720
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7667
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_7667
gosub @SWEET1B_16294
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7713
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_7713
goto @SWEET1B_7609

:SWEET1B_7720
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_ZC' {time} 3000 {flag} 1

:SWEET1B_7740
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_7805
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7798
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_7798
goto @SWEET1B_7740

:SWEET1B_7805
58@ = 0
101@ = 0
92@ = 0
87@ = 5
gosub @SWEET1B_47
TIMERB = 0
TIMERA = 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7893
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_7893
print_now 'SW1B_1' {time} 10000 {flag} 1
clear_area 2171.781 {y} -1676.78 {z} 14.0859 {radius} 8.0 {clearParticles} True

:SWEET1B_7933
if or
  not locate_char_any_means_3d $scplayer {x} 2171.781 {y} -1676.78 {z} 14.0859 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_8372
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8050
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_8050
if 
  TIMERB > 5000
goto_if_false @SWEET1B_8177
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_8177
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_8133
gosub @SWEET1B_16997

:SWEET1B_8133
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_8177
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_8177
gosub @SWEET1B_16997

:SWEET1B_8177
gosub @SWEET1B_16294
if 
  105@ == 0
goto_if_false @SWEET1B_8255
if 
  TIMERA > 2000
goto_if_false @SWEET1B_8255
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_8255
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_8255
if 
  105@ == 1
goto_if_false @SWEET1B_8326
if 
  TIMERA > 8000
goto_if_false @SWEET1B_8326
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_8326
print_help 'MELHLP2'
105@ = 2

:SWEET1B_8326
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8365
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_8365
goto @SWEET1B_7933

:SWEET1B_8372
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
58@ = 0
101@ = 0
92@ = 0
87@ = 6
gosub @SWEET1B_47
switch_widescreen True
switch_entry_exit 'LACRAK' {state} True
set_player_control $player1 {state} False
set_fixed_camera_position 2177.072 {y} -1682.038 {z} 15.8487 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.343 {y} -1681.354 {z} 15.8969 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:SWEET1B_8497
if 
  58@ <> 1
goto_if_false @SWEET1B_8533
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_8497

:SWEET1B_8533
remove_blip 38@
38@ = add_blip_for_coord 2169.72 {y} -1673.14 {z} 13.01
102@ = 3
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
110@ = 0.0
TIMERB = 0
106@ = 0

:SWEET1B_8604
if 
  43@ <> 1
goto_if_false @SWEET1B_13618
wait 0
78@ = get_area_visible 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1B_8653
goto @SWEET1B_15901

:SWEET1B_8653
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8692
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_8692
gosub @SWEET1B_16997
if 
  78@ == 5
goto_if_false @SWEET1B_12954
activate_interior_peds False
if 
  locate_char_any_means_3d $scplayer {x} 319.15 {y} 1120.89 {z} 1082.87 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET1B_12954
if 
  63@ == 0
goto_if_false @SWEET1B_12544
set_player_control $player1 {state} False
switch_widescreen True
clear_area 319.15 {y} 1120.89 {z} 1082.87 {radius} 100.0 {clearParticles} True
remove_blip 39@
do_fade 0 {direction} Fade.Out
request_model 102
request_model 64
request_model 63
request_model 28
request_model #CIGAR
request_animation "CRACK"
request_animation "BLOWJOBZ"
request_animation "BASEBALL"
load_all_models_now 

:SWEET1B_8888
if or
  not has_animation_loaded "CRACK"
  not has_animation_loaded "BLOWJOBZ"
  not has_animation_loaded "BASEBALL"
goto_if_false @SWEET1B_8949
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_8888

:SWEET1B_8949
if or
  not has_model_loaded 102
  not has_model_loaded 63
  not has_model_loaded 64
  not has_model_loaded #CIGAR
  not has_model_loaded 28
goto_if_false @SWEET1B_8997
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_8949

:SWEET1B_8997
68@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 315.81 {y} 1122.3 {z} 1082.8 {speed} MoveState.Run {time} 10000
task_play_anim -1 {animationName} "BBALBAT_IDLE_01" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 68@
switch_entry_exit 'LACRAK' {state} False
61@ = create_char PedType.CivFemale {modelId} 64 {x} 309.77 {y} 1123.5 {z} 1082.87
set_char_area_visible 61@ {areaId} 5
set_char_heading 61@ {heading} 107.12
task_play_anim_non_interruptable 61@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 61@ {handleOrTemplate} 75@
36@ = create_char PedType.Mission2 {modelId} 64 {x} 317.5892 {y} 1124.777 {z} 1082.8669
set_char_area_visible 36@ {areaId} 5
set_char_heading 36@ {heading} 180.0
task_play_anim_non_interruptable 36@ {animationName} "CRCKIDLE2" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 36@ {handleOrTemplate} 75@
54@ = create_char PedType.Mission2 {modelId} 102 {x} 325.0 {y} 1119.975 {z} 1082.875
set_char_area_visible 54@ {areaId} 5
set_char_heading 54@ {heading} 90.0
task_play_anim_non_interruptable 54@ {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 75@
80@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 54@ {object} 80@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
49@ = create_char PedType.Mission2 {modelId} 102 {x} 320.1898 {y} 1123.292 {z} 1082.875
set_char_area_visible 49@ {areaId} 5
set_char_heading 49@ {heading} 177.9659
task_play_anim_non_interruptable 49@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 75@
81@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 49@ {object} 81@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
62@ = create_char PedType.Mission2 {modelId} 102 {x} 333.63 {y} 1124.51 {z} 1082.88
set_char_max_health 62@ {maxHealth} 70
set_char_health 62@ {health} 70
set_char_area_visible 62@ {areaId} 5
set_char_heading 62@ {heading} 267.96
set_char_decision_maker 62@ {handleOrTemplate} 34@
set_char_relationship 62@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
82@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 62@ {object} 82@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
88@ = add_blip_for_char 62@
set_blip_entry_exit 88@ {x} 2167.835 {y} -1672.923 {radius} 2.0
64@ = create_char PedType.Mission2 {modelId} 102 {x} 325.0 {y} 1129.213 {z} 1082.8831
set_char_area_visible 64@ {areaId} 5
set_char_heading 64@ {heading} 90.0
task_play_anim 64@ {animationName} "BJ_COUCH_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 64@ {handleOrTemplate} 34@
set_char_relationship 64@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
89@ = add_blip_for_char 64@
set_blip_entry_exit 89@ {x} 2167.835 {y} -1672.923 {radius} 2.0
65@ = create_char PedType.CivFemale {modelId} 63 {x} 324.0 {y} 1129.2 {z} 1082.8831
set_char_area_visible 65@ {areaId} 5
set_char_heading 65@ {heading} 270.0
task_play_anim 65@ {animationName} "BJ_COUCH_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 65@ {handleOrTemplate} 75@
set_char_relationship 65@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
59@ = create_char PedType.Mission2 {modelId} 102 {x} 333.4072 {y} 1124.462 {z} 1082.89
set_char_area_visible 59@ {areaId} 5
set_char_heading 59@ {heading} 83.6676
task_play_anim_non_interruptable 59@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 59@ {handleOrTemplate} 75@
81@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 59@ {object} 81@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
37@ = create_char PedType.Mission2 {modelId} 28 {x} 306.03 {y} 1121.86 {z} 1082.87
set_char_area_visible 37@ {areaId} 5
set_char_shoot_rate 37@ {rate} 80
set_char_max_health 37@ {maxHealth} 150
set_char_health 37@ {health} 150
set_char_heading 37@ {heading} 263.66
give_weapon_to_char 37@ {weaponType} WeaponType.BaseballBat {ammo} 3000
set_char_decision_maker 37@ {handleOrTemplate} 34@
set_char_relationship 37@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
45@ = add_blip_for_char 37@
set_blip_entry_exit 45@ {x} 2167.835 {y} -1672.923 {radius} 2.0
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7437
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7438

:SWEET1B_10252
if 
  TIMERA <= 1000
goto_if_false @SWEET1B_10288
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_10252

:SWEET1B_10288
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_10385
remove_char_from_group $ryder
clear_char_tasks_immediately $ryder
clear_look_at $ryder
set_char_coordinates $ryder {x} 320.12 {y} 1118.2 {z} 1082.89
set_char_heading $ryder {heading} 7.0
set_char_has_used_entry_exit $ryder {x} 2169.72 {y} -1673.14 {radius} 20.0
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:SWEET1B_10385
set_fixed_camera_position 318.297 {y} 1115.438 {z} 1085.054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.7138 {y} 1116.318 {z} 1084.827 {switchStyle} SwitchType.JumpCut
wait 300
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_10489
task_go_straight_to_coord $ryder {x} 320.0 {y} 1122.3 {z} 1082.8 {speed} MoveState.Walk {time} 6000

:SWEET1B_10489
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_10567
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10560
print_now 'SW1B_G' {time} 10000 {flag} 1
switch_entry_exit 'LACRAK' {state} True
goto @SWEET1B_15476

:SWEET1B_10560
goto @SWEET1B_10489

:SWEET1B_10567
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YX' {time} 10000 {flag} 1

:SWEET1B_10587
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_10665
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10658
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_10658
goto @SWEET1B_10587

:SWEET1B_10665
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30000
69@ = 0
skip_cutscene_start_internal @SWEET1B_11904

:SWEET1B_10686
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_10764
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10757
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_10757
goto @SWEET1B_10686

:SWEET1B_10764
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_YY' {time} 10000 {flag} 1

:SWEET1B_10784
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_10862
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10855
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_10855
goto @SWEET1B_10784

:SWEET1B_10862
load_mission_audio MissionAudioSlot.Slot2 {audioId} 30001
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_10996

:SWEET1B_10885
if 
  not locate_char_any_means_3d $ryder {x} 320.0 {y} 1122.3 {z} 1082.8 {xRadius} 0.9 {yRadius} 0.9 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_10996
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10989
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_10989
goto @SWEET1B_10885

:SWEET1B_10996
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_11182
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_11182
task_play_anim $ryder {animationName} "BAT_4" {animationFile} "BASEBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0

:SWEET1B_11072
if 
  TIMERA <= 400
goto_if_false @SWEET1B_11102
wait 0
goto @SWEET1B_11072

:SWEET1B_11102
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_11175
report_mission_audio_event_at_position 320.1898 {y} 1123.292 {z} 1082.875 {soundId} ScriptSound.SoundBaseballBatHitPed
task_die_named_anim 49@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 49@ {state} False

:SWEET1B_11175
92@ = 1

:SWEET1B_11182
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_11306
task_go_straight_to_coord 64@ {x} 323.8 {y} 1124.35 {z} 1082.89 {speed} MoveState.Walk {time} 10000
if 
  not is_char_dead 65@
goto_if_false @SWEET1B_11306
clear_char_tasks 65@
set_char_coordinates 65@ {x} 325.3923 {y} 1131.8879 {z} 1082.8831
set_char_heading 65@ {heading} 246.147
task_play_anim 65@ {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_11306
TIMERA = 0

:SWEET1B_11313
if 
  TIMERA <= 700
goto_if_false @SWEET1B_11395
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11388
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_11388
goto @SWEET1B_11313

:SWEET1B_11395
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_11454
set_char_coordinates 37@ {x} 310.1843 {y} 1122.598 {z} 1082.89
set_char_heading 37@ {heading} 270.0
remove_blip 38@
perform_sequence_task 37@ {sequence} 68@

:SWEET1B_11454
set_fixed_camera_position 319.2787 {y} 1121.339 {z} 1083.123 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.3951 {y} 1121.7729 {z} 1083.297 {switchStyle} SwitchType.JumpCut
clear_look_at $scplayer
TIMERA = 0

:SWEET1B_11517
if 
  TIMERA <= 2500
goto_if_false @SWEET1B_11599
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11592
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_11592
goto @SWEET1B_11517

:SWEET1B_11599
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_11670
set_char_coordinates 62@ {x} 329.29 {y} 1122.13 {z} 1082.88
set_char_heading 62@ {heading} 90.0
task_go_straight_to_coord 62@ {x} 325.25 {y} 1122.5 {z} 1082.88 {speed} MoveState.Run {time} 10000

:SWEET1B_11670
set_fixed_camera_position 318.6783 {y} 1118.741 {z} 1084.642 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 319.4823 {y} 1119.317 {z} 1084.494 {switchStyle} SwitchType.JumpCut

:SWEET1B_11721
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_11799
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11792
print_now 'SW1B_G' {time} 10000 {flag} 1
switch_entry_exit 'LACRAK' {state} True
goto @SWEET1B_15476

:SWEET1B_11792
goto @SWEET1B_11721

:SWEET1B_11799
play_mission_audio MissionAudioSlot.Slot2
print_now 'BALLA_2' {time} 10000 {flag} 1

:SWEET1B_11819
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_11897
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11890
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_11890
goto @SWEET1B_11819

:SWEET1B_11897
69@ = 1

:SWEET1B_11904
skip_cutscene_end 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25623
if 
  69@ == 0
goto_if_false @SWEET1B_12339
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SWEET1B_11946
if 
  get_fading_status 
goto_if_false @SWEET1B_11970
wait 0
goto @SWEET1B_11946

:SWEET1B_11970
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30000
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25623
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_12051
set_char_coordinates 37@ {x} 310.1843 {y} 1122.598 {z} 1082.89
set_char_heading 37@ {heading} 270.0
remove_blip 38@
perform_sequence_task 37@ {sequence} 68@

:SWEET1B_12051
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_12205
set_char_coordinates 64@ {x} 323.5565 {y} 1124.3621 {z} 1082.8831
set_char_heading 64@ {heading} 132.073
task_go_straight_to_coord 64@ {x} 323.8 {y} 1124.35 {z} 1082.89 {speed} MoveState.Walk {time} 10000
if 
  not is_char_dead 65@
goto_if_false @SWEET1B_12205
clear_char_tasks 65@
set_char_coordinates 65@ {x} 325.3923 {y} 1131.8879 {z} 1082.8831
set_char_heading 65@ {heading} 246.147
task_play_anim 65@ {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_12205
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_12276
set_char_coordinates 62@ {x} 326.96 {y} 1122.52 {z} 1082.89
set_char_heading 62@ {heading} 90.0
task_go_straight_to_coord 62@ {x} 325.25 {y} 1122.5 {z} 1082.88 {speed} MoveState.Walk {time} 10000

:SWEET1B_12276
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_12322
task_die_named_anim 49@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0

:SWEET1B_12322
wait 1000
clear_look_at $scplayer
do_fade 500 {direction} Fade.In

:SWEET1B_12339
clear_sequence_task 68@
remove_animation "BLOWJOBZ"
remove_animation "BASEBALL"
remove_animation "DEALER"
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_12417
task_kill_char_on_foot 64@ {target} $scplayer

:SWEET1B_12417
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_12488
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_12488
task_kill_char_on_foot $ryder {target} 62@
task_kill_char_on_foot 62@ {target} $ryder
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
drop_object 62@ {state} True

:SWEET1B_12488
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_12523
play_mission_audio MissionAudioSlot.Slot1
print_now 'BALLA_1' {time} 2000 {flag} 1

:SWEET1B_12523
TIMERA = 0
63@ = 1
goto @SWEET1B_12954

:SWEET1B_12544
if 
  TIMERA > 2000
goto_if_false @SWEET1B_12623
if 
  103@ == 0
goto_if_false @SWEET1B_12623
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_12623
play_mission_audio MissionAudioSlot.Slot2
print_now 'RYDX_BC' {time} 2000 {flag} 1
103@ = 1

:SWEET1B_12623
if 
  TIMERA > 4000
goto_if_false @SWEET1B_12683
if 
  103@ == 1
goto_if_false @SWEET1B_12683
print_now 'SW1B_B' {time} 6000 {flag} 1
103@ = 2

:SWEET1B_12683
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_12857
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12857
if 
  105@ == 0
goto_if_false @SWEET1B_12786
if 
  TIMERA > 3000
goto_if_false @SWEET1B_12786
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12786
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_12786
if 
  105@ == 1
goto_if_false @SWEET1B_12857
if 
  TIMERA > 9000
goto_if_false @SWEET1B_12857
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12857
print_help 'MELHLP2'
105@ = 2

:SWEET1B_12857
if 
  63@ == 1
goto_if_false @SWEET1B_12954
if or
  is_char_dead 62@
  is_char_dead 37@
goto_if_false @SWEET1B_12954
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_12954
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
63@ = 2

:SWEET1B_12954
if 
  63@ > 0
goto_if_false @SWEET1B_13163
if 
  is_char_dead 37@
goto_if_false @SWEET1B_12993
remove_blip 45@

:SWEET1B_12993
if 
  is_char_dead 62@
goto_if_false @SWEET1B_13014
remove_blip 88@

:SWEET1B_13014
if 
  is_char_dead 64@
goto_if_false @SWEET1B_13035
remove_blip 89@

:SWEET1B_13035
if and
  is_char_dead 64@
  is_char_dead 62@
  is_char_dead 37@
goto_if_false @SWEET1B_13068
43@ = 1

:SWEET1B_13068
if 
  60@ == 0
goto_if_false @SWEET1B_13163
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_13163
if or
  is_char_dead 62@
  is_char_dead 64@
  locate_char_any_means_char_3d $scplayer {target} 37@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_13163
task_kill_char_on_foot 37@ {target} $scplayer
60@ = 1

:SWEET1B_13163
if 
  78@ == 5
goto_if_false @SWEET1B_13565
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_13277
if 
  not is_char_health_greater 36@ {health} 80
goto_if_false @SWEET1B_13277
if 
  71@ == 0
goto_if_false @SWEET1B_13277
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_13277
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_13373
if 
  not is_char_health_greater 54@ {health} 80
goto_if_false @SWEET1B_13373
if 
  72@ == 0
goto_if_false @SWEET1B_13373
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_13373
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_13469
if 
  not is_char_health_greater 61@ {health} 80
goto_if_false @SWEET1B_13469
if 
  74@ == 0
goto_if_false @SWEET1B_13469
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_13469
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_13565
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_13565
if 
  70@ == 0
goto_if_false @SWEET1B_13565
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_13565
gosub @SWEET1B_16294
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_13611
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_13611
goto @SWEET1B_8604

:SWEET1B_13618
wait 2000
switch_entry_exit 'LACRAK' {state} True
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} True
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} True
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #CIGAR
activate_interior_peds True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_13766
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
47@ = 1

:SWEET1B_13766
print_now 'SW1B_F' {time} 10000 {flag} 1
remove_blip 45@
remove_blip 38@
38@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
$blob_flag = 1
102@ = 4
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_13842

:SWEET1B_13842
107@ = 0
58@ = 0
101@ = 0
92@ = 0
87@ = 3
gosub @SWEET1B_47

:SWEET1B_13884
if or
  not locate_char_any_means_3d $scplayer {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_3d $ryder {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1B_14929
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_14013
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_14013
if 
  107@ == 1
goto_if_false @SWEET1B_14038
gosub @SWEET1B_16294

:SWEET1B_14038
78@ = get_area_visible 
if 
  78@ == 0
goto_if_false @SWEET1B_14481
if 
  107@ == 0
goto_if_false @SWEET1B_14292
if 
  locate_char_any_means_3d $scplayer {x} 2167.6011 {y} -1672.592 {z} 14.081 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1B_14292
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14285
if 
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_14285
clear_area 2164.9609 {y} -1673.7581 {z} 14.0803 {radius} 1.0 {clearParticles} True
set_char_coordinates $ryder {x} 2164.9609 {y} -1673.7581 {z} 14.0803
set_char_heading $ryder {heading} 280.1246
set_char_area_visible $ryder {areaId} 0
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False

:SWEET1B_14285
107@ = 1

:SWEET1B_14292
if 
  107@ == 1
goto_if_false @SWEET1B_14481
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14481
if 
  78@ == 0
goto_if_false @SWEET1B_14481
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14481
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_14481
switch_entry_exit 'LACRAK' {state} False
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_14437
gosub @SWEET1B_16997

:SWEET1B_14437
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14481
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_14481
gosub @SWEET1B_16997

:SWEET1B_14481
if 
  78@ == 5
goto_if_false @SWEET1B_14883
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_14595
if 
  not is_char_health_greater 36@ {health} 80
goto_if_false @SWEET1B_14595
if 
  71@ == 0
goto_if_false @SWEET1B_14595
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_14595
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_14691
if 
  not is_char_health_greater 54@ {health} 80
goto_if_false @SWEET1B_14691
if 
  72@ == 0
goto_if_false @SWEET1B_14691
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_14691
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_14787
if 
  not is_char_health_greater 61@ {health} 80
goto_if_false @SWEET1B_14787
if 
  74@ == 0
goto_if_false @SWEET1B_14787
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_14787
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_14883
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_14883
if 
  70@ == 0
goto_if_false @SWEET1B_14883
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_14883
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_14922
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15476

:SWEET1B_14922
goto @SWEET1B_13884

:SWEET1B_14929
58@ = 0
101@ = 0
92@ = 0
87@ = 7
gosub @SWEET1B_47
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
wait 500
do_fade 1000 {direction} Fade.Out

:SWEET1B_14994
if 
  get_fading_status 
goto_if_false @SWEET1B_15018
wait 0
goto @SWEET1B_14994

:SWEET1B_15018
request_animation "GANGS"

:SWEET1B_15027
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1B_15058
wait 0
goto @SWEET1B_15027

:SWEET1B_15058
set_fixed_camera_position 2518.491 {y} -1679.401 {z} 14.4781 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2518.0859 {y} -1678.499 {z} 14.6304 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_15152
set_char_coordinates $scplayer {x} 2517.5239 {y} -1678.4969 {z} 13.3912
goto @SWEET1B_15172

:SWEET1B_15152
warp_char_from_car_to_coord $scplayer {x} 2517.5239 {y} -1678.4969 {z} 13.3912

:SWEET1B_15172
set_char_heading $scplayer {heading} 328.5351
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_15321
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
clear_char_tasks $ryder
hide_char_weapon_for_scripted_cutscene $ryder {state} True
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_15275
set_char_coordinates $ryder {x} 2518.314 {y} -1676.907 {z} 13.3726
goto @SWEET1B_15295

:SWEET1B_15275
warp_char_from_car_to_coord $ryder {x} 2518.314 {y} -1676.907 {z} 13.3726

:SWEET1B_15295
task_turn_char_to_face_char $ryder {target} $scplayer
task_turn_char_to_face_char $scplayer {target} $ryder
set_char_heading $scplayer {heading} 180.0

:SWEET1B_15321
wait 500
do_fade 1000 {direction} Fade.In

:SWEET1B_15333
if 
  58@ <> 3
goto_if_false @SWEET1B_15369
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_15333

:SWEET1B_15369
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_15410
task_go_straight_to_coord $ryder {x} 2522.9971 {y} -1679.196 {z} 14.497 {speed} MoveState.Walk {time} 4000

:SWEET1B_15410
if 
  58@ <> 4
goto_if_false @SWEET1B_15446
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_15410

:SWEET1B_15446
wait 1000
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char $ryder
goto @SWEET1B_15901

:SWEET1B_15476
78@ = get_area_visible 
if 
  78@ == 5
goto_if_false @SWEET1B_15512
switch_entry_exit 'LACRAK' {state} True

:SWEET1B_15512
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
78@ = get_area_visible 
if 
  78@ == 5
goto_if_false @SWEET1B_15899
if 
  63@ == 1
goto_if_false @SWEET1B_15899
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_15647
if 
  71@ == 0
goto_if_false @SWEET1B_15647
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_15647
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_15725
if 
  72@ == 0
goto_if_false @SWEET1B_15725
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_15725
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_15803
if 
  74@ == 0
goto_if_false @SWEET1B_15803
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_15803
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_15899
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_15899
if 
  70@ == 0
goto_if_false @SWEET1B_15899
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_15899
return 

:SWEET1B_15901
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET1B'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 40
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
return 

:SWEET1B_15986
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'LACRAK'
start_new_script @ENTEXT 
if 
  is_player_playing $player1
goto_if_false @SWEET1B_16045
set_player_drunkenness $player1 {intensity} 0

:SWEET1B_16045
$onmission = 0
$timer_mobile_start = get_game_timer 
switch_roads_on 2272.9221 {leftBottomY} -1649.556 {leftBottomZ} 14.3311 {rightTopX} 2266.1011 {rightTopY} -1633.219 {rightTopZ} 14.3505
switch_ped_roads_on 324.1973 {leftBottomY} 1116.7581 {leftBottomZ} 1082.8979 {rightTopX} 313.1226 {rightTopY} 1124.197 {rightTopZ} 1082.8979
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed 492
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} False
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} False
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "BLOWJOBZ"
remove_animation "BASEBALL"
remove_animation "DEALER"
remove_pickup 79@
remove_blip 44@
remove_blip 45@
remove_blip 38@
remove_blip 39@
switch_car_generator $gen_car6 {amount} 101
remove_char_elegantly $ryder
unload_special_character 1
enable_ambient_crime True
mission_has_finished 
return 

:SWEET1B_16294
78@ = get_area_visible 
if 
  78@ == 0
goto_if_false @SWEET1B_16995
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_16995
if 
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_16507
if 
  47@ == 0
goto_if_false @SWEET1B_16500
if 
  43@ == 0
goto_if_false @SWEET1B_16418
switch_entry_exit 'LACRAK' {state} False

:SWEET1B_16418
remove_blip 45@
remove_blip 44@
remove_blip 39@
remove_blip 38@
39@ = add_blip_for_char $ryder
set_blip_as_friendly 39@ {state} True
remove_char_from_group $ryder
clear_char_tasks $ryder
gosub @SWEET1B_17794
print_now 'SW1B_H' {time} 6000 {flag} 1
$blob_flag = 0
47@ = 1

:SWEET1B_16500
goto @SWEET1B_16995

:SWEET1B_16507
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_16995
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_16995
if 
  47@ == 1
goto_if_false @SWEET1B_16995
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_16633
remove_blip 39@
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False

:SWEET1B_16633
if 
  102@ == 0
goto_if_false @SWEET1B_16692
remove_blip 38@
38@ = add_blip_for_coord 2301.0701 {y} -1754.4 {z} 12.54
print_now 'SW1B_A' {time} 7000 {flag} 1

:SWEET1B_16692
if 
  102@ == 1
goto_if_false @SWEET1B_16755
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_16739
remove_blip 44@
44@ = add_blip_for_char 35@

:SWEET1B_16739
print_now 'SW1B_B' {time} 7000 {flag} 1

:SWEET1B_16755
if 
  102@ == 2
goto_if_false @SWEET1B_16832
if 
  78@ == 0
goto_if_false @SWEET1B_16816
remove_blip 38@
38@ = add_blip_for_coord 2171.781 {y} -1676.78 {z} 14.0859

:SWEET1B_16816
print_now 'SW1B_1' {time} 7000 {flag} 1

:SWEET1B_16832
if 
  102@ == 3
goto_if_false @SWEET1B_16922
switch_entry_exit 'LACRAK' {state} True
if 
  78@ == 0
goto_if_false @SWEET1B_16906
remove_blip 38@
38@ = add_blip_for_coord 2169.72 {y} -1673.14 {z} 13.01

:SWEET1B_16906
print_now 'SW1B_1' {time} 7000 {flag} 1

:SWEET1B_16922
if 
  102@ == 4
goto_if_false @SWEET1B_16981
remove_blip 38@
38@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
print_now 'SW1B_F' {time} 7000 {flag} 1

:SWEET1B_16981
$blob_flag = 1
47@ = 0

:SWEET1B_16995
return 

:SWEET1B_16997
if or
  101@ == 0
  101@ == 1
goto_if_false @SWEET1B_17067
if 
  is_int_lvar_greater_or_equal_to_int_lvar 91@ >= 58@
goto_if_false @SWEET1B_17067
if 
  TIMERA > 200
goto_if_false @SWEET1B_17067
gosub @SWEET1B_17139

:SWEET1B_17067
if 
  101@ == 2
goto_if_false @SWEET1B_17137
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_17137
gosub @SWEET1B_17524
101@ = 0
58@ += 1
92@ = 0
clear_prints 
TIMERA = 0

:SWEET1B_17137
return 

:SWEET1B_17139
if 
  101@ == 0
goto_if_false @SWEET1B_17175
load_mission_audio MissionAudioSlot.Slot1 {audioId} 93@(58@,8i)
101@ = 1

:SWEET1B_17175
if 
  101@ == 1
goto_if_false @SWEET1B_17240
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_17240
print_now $6566(58@,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET1B_17242
101@ = 2

:SWEET1B_17240
return 

:SWEET1B_17242
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7400
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7401
goto_if_false @SWEET1B_17310
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_17310
shut_char_up_for_scripted_speech 35@ {state} True
start_char_facial_talk 35@ {duration} 3000
return 

:SWEET1B_17310
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7408
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7409
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7410
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7481
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7482
goto_if_false @SWEET1B_17398
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET1B_17398
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7476
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7477
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7484
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7407
goto_if_false @SWEET1B_17491
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
goto @SWEET1B_17522

:SWEET1B_17491
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17522
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:SWEET1B_17522
return 

:SWEET1B_17524
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7400
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7401
goto_if_false @SWEET1B_17589
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_17589
shut_char_up_for_scripted_speech 35@ {state} False
stop_char_facial_talk 35@
return 

:SWEET1B_17589
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7408
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7409
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7410
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7481
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7482
goto_if_false @SWEET1B_17674
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET1B_17674
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7476
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7477
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7484
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7407
goto_if_false @SWEET1B_17764
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @SWEET1B_17792

:SWEET1B_17764
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17792
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:SWEET1B_17792
return 

:SWEET1B_17794
clear_mission_audio MissionAudioSlot.Slot2
if 
  109@ == 0
goto_if_false @SWEET1B_17823
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25611

:SWEET1B_17823
if 
  109@ == 1
goto_if_false @SWEET1B_17848
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25612

:SWEET1B_17848
if 
  109@ == 2
goto_if_false @SWEET1B_17873
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25613

:SWEET1B_17873
if 
  109@ == 3
goto_if_false @SWEET1B_17898
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25614

:SWEET1B_17898
if 
  109@ == 4
goto_if_false @SWEET1B_17923
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25615

:SWEET1B_17923
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET1B_17939
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_17983
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_17976
return 

:SWEET1B_17976
goto @SWEET1B_17939

:SWEET1B_17983
play_mission_audio MissionAudioSlot.Slot2
if 
  109@ == 0
goto_if_false @SWEET1B_18021
print_now 'RYDX_AL' {time} 3000 {flag} 1

:SWEET1B_18021
if 
  109@ == 1
goto_if_false @SWEET1B_18055
print_now 'RYDX_AM' {time} 3000 {flag} 1

:SWEET1B_18055
if 
  109@ == 2
goto_if_false @SWEET1B_18089
print_now 'RYDX_AN' {time} 3000 {flag} 1

:SWEET1B_18089
if 
  109@ == 3
goto_if_false @SWEET1B_18123
print_now 'RYDX_AO' {time} 3000 {flag} 1

:SWEET1B_18123
if 
  109@ == 4
goto_if_false @SWEET1B_18157
print_now 'RYDX_AP' {time} 3000 {flag} 1

:SWEET1B_18157
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_18201
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_18194
return 

:SWEET1B_18194
goto @SWEET1B_18157

:SWEET1B_18201
109@ += 1
if 
  109@ > 4
goto_if_false @SWEET1B_18233
109@ = 0

:SWEET1B_18233
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_18249

:SWEET1B_18249
return 

//-------------Mission 15---------------
// Originally: Drive-Thru

:SWEET3
script_name 'SWEET3'
gosub @SWEET3_1697
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET3_38
gosub @SWEET3_12752

:SWEET3_38
gosub @SWEET3_12841
terminate_this_script 

:SWEET3_47
switch_start 79@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET3_1695 {caseNum1} 1 {caseLabel1} @SWEET3_175 {caseNum2} 2 {caseLabel2} @SWEET3_453 {caseNum3} 3 {caseLabel3} @SWEET3_731 {caseNum4} 4 {caseLabel4} @SWEET3_943 {caseNum5} 5 {caseLabel5} @SWEET3_1133 {caseNum6} 6 {caseLabel6} @SWEET3_1345 {caseNum7} 7 {caseLabel7} @SWEET3_1469
switch_continued 8 {caseLabel1} @SWEET3_1571 {caseNum2} -1 {caseLabel2} @SWEET3_1695 {caseNum3} -1 {caseLabel3} @SWEET3_1695 {caseNum4} -1 {caseLabel4} @SWEET3_1695 {caseNum5} -1 {caseLabel5} @SWEET3_1695 {caseNum6} -1 {caseLabel6} @SWEET3_1695 {caseNum7} -1 {caseLabel7} @SWEET3_1695 {caseNum8} -1 {caseLabel8} @SWEET3_1695 {caseNum9} -1 {caseLabel9} @SWEET3_1695

:SWEET3_175
set_var_text_label s$6582[0] = 'SWE2_BA'
set_var_text_label s$6582[1] = 'SWE2_BB'
set_var_text_label s$6582[2] = 'SWE2_BC'
set_var_text_label s$6582[3] = 'SWE2_BD'
set_var_text_label s$6582[4] = 'SWE2_BE'
set_var_text_label s$6582[5] = 'SWE2_BF'
set_var_text_label s$6582[6] = 'SWE2_BG'
set_var_text_label s$6582[7] = 'SWE2_BH'
set_var_text_label s$6582[8] = 'SWE2_BJ'
set_var_text_label s$6582[9] = 'SWE2_BK'
set_var_text_label s$6582[10] = 'SWE2_BL'
set_var_text_label s$6582[11] = 'SWE2_BM'
set_lvar_int_to_constant 66@ = 11200
set_lvar_int_to_constant 67@ = 11203
set_lvar_int_to_constant 68@ = 11239
set_lvar_int_to_constant 69@ = 11240
set_lvar_int_to_constant 70@ = 11241
set_lvar_int_to_constant 71@ = 11204
set_lvar_int_to_constant 72@ = 11205
set_lvar_int_to_constant 73@ = 11242
set_lvar_int_to_constant 74@ = 11243
set_lvar_int_to_constant 75@ = 11206
set_lvar_int_to_constant 76@ = 11201
set_lvar_int_to_constant 77@ = 11220
58@ = 11
goto @SWEET3_1695

:SWEET3_453
set_var_text_label s$6582[0] = 'SWE2_CA'
set_var_text_label s$6582[1] = 'SWE2_CC'
set_var_text_label s$6582[2] = 'SWE2_GA'
set_var_text_label s$6582[3] = 'SWE2_GB'
set_var_text_label s$6582[4] = 'SWE2_GC'
set_var_text_label s$6582[5] = 'SWE2_GD'
set_var_text_label s$6582[6] = 'SWE2_GE'
set_var_text_label s$6582[7] = 'SWE2_HA'
set_var_text_label s$6582[8] = 'SWE2_HB'
set_var_text_label s$6582[9] = 'SWE2_HC'
set_var_text_label s$6582[10] = 'SWE2_HD'
set_var_text_label s$6582[11] = 'SWE2_HE'
set_lvar_int_to_constant 66@ = 11221
set_lvar_int_to_constant 67@ = 11223
set_lvar_int_to_constant 68@ = 11281
set_lvar_int_to_constant 69@ = 11250
set_lvar_int_to_constant 70@ = 11202
set_lvar_int_to_constant 71@ = 11251
set_lvar_int_to_constant 72@ = 11252
set_lvar_int_to_constant 73@ = 11211
set_lvar_int_to_constant 74@ = 11253
set_lvar_int_to_constant 75@ = 11228
set_lvar_int_to_constant 76@ = 11229
set_lvar_int_to_constant 77@ = 11254
58@ = 11
goto @SWEET3_1695

:SWEET3_731
set_var_text_label s$6582[0] = 'SWE2_MA'
set_var_text_label s$6582[1] = 'SWE2_MB'
set_var_text_label s$6582[2] = 'SWE2_MC'
set_var_text_label s$6582[3] = 'SWE2_MD'
set_var_text_label s$6582[4] = 'SWE2_ME'
set_var_text_label s$6582[5] = 'SWE2_MF'
set_var_text_label s$6582[6] = 'SWE2_MG'
set_var_text_label s$6582[7] = 'SWE2_MH'
set_var_text_label s$6582[8] = 'SWE2_MJ'
set_lvar_int_to_constant 66@ = 11214
set_lvar_int_to_constant 67@ = 11235
set_lvar_int_to_constant 68@ = 11236
set_lvar_int_to_constant 69@ = 11274
set_lvar_int_to_constant 70@ = 11259
set_lvar_int_to_constant 71@ = 11215
set_lvar_int_to_constant 72@ = 11216
set_lvar_int_to_constant 73@ = 11237
set_lvar_int_to_constant 74@ = 11260
58@ = 8
goto @SWEET3_1695

:SWEET3_943
set_var_text_label s$6582[0] = 'SWE2_NA'
set_var_text_label s$6582[1] = 'SWE2_NB'
set_var_text_label s$6582[2] = 'SWE2_NC'
set_var_text_label s$6582[3] = 'SWE2_ND'
set_var_text_label s$6582[4] = 'SWE2_NE'
set_var_text_label s$6582[5] = 'SWE2_NF'
set_var_text_label s$6582[6] = 'SWE2_NG'
set_var_text_label s$6582[7] = 'SWE2_NH'
set_lvar_int_to_constant 66@ = 11261
set_lvar_int_to_constant 67@ = 11217
set_lvar_int_to_constant 68@ = 11218
set_lvar_int_to_constant 69@ = 11262
set_lvar_int_to_constant 70@ = 11238
set_lvar_int_to_constant 71@ = 11263
set_lvar_int_to_constant 72@ = 11264
set_lvar_int_to_constant 73@ = 11275
58@ = 7
goto @SWEET3_1695

:SWEET3_1133
set_var_text_label s$6582[0] = 'SWE2_OA'
set_var_text_label s$6582[1] = 'SWE2_OB'
set_var_text_label s$6582[2] = 'SWE2_OC'
set_var_text_label s$6582[3] = 'SWE2_OD'
set_var_text_label s$6582[4] = 'SWE2_OE'
set_var_text_label s$6582[5] = 'SWE2_OF'
set_var_text_label s$6582[6] = 'SWE2_OG'
set_var_text_label s$6582[7] = 'SWE2_OH'
set_var_text_label s$6582[8] = 'SWE2_OJ'
set_lvar_int_to_constant 66@ = 11276
set_lvar_int_to_constant 67@ = 11265
set_lvar_int_to_constant 68@ = 11266
set_lvar_int_to_constant 69@ = 11277
set_lvar_int_to_constant 70@ = 11267
set_lvar_int_to_constant 71@ = 11278
set_lvar_int_to_constant 72@ = 11268
set_lvar_int_to_constant 73@ = 11269
set_lvar_int_to_constant 74@ = 11279
58@ = 8
goto @SWEET3_1695

:SWEET3_1345
set_var_text_label s$6582[0] = 'SWE2_PA'
set_var_text_label s$6582[1] = 'SWE2_PB'
set_var_text_label s$6582[2] = 'SWE2_PC'
set_var_text_label s$6582[3] = 'SWE2_PD'
set_var_text_label s$6582[4] = 'SWE2_PE'
set_lvar_int_to_constant 66@ = 11270
set_lvar_int_to_constant 67@ = 11280
set_lvar_int_to_constant 68@ = 11271
set_lvar_int_to_constant 69@ = 11272
set_lvar_int_to_constant 70@ = 11273
58@ = 4
goto @SWEET3_1695

:SWEET3_1469
set_var_text_label s$6582[0] = 'SWE2_DA'
set_var_text_label s$6582[1] = 'SWE2_DB'
set_var_text_label s$6582[2] = 'SWE2_DC'
set_var_text_label s$6582[3] = 'SWE2_DD'
set_lvar_int_to_constant 66@ = 11244
set_lvar_int_to_constant 67@ = 11207
set_lvar_int_to_constant 68@ = 11245
set_lvar_int_to_constant 69@ = 11208
58@ = 3
goto @SWEET3_1695

:SWEET3_1571
set_var_text_label s$6582[0] = 'SWE2_EA'
set_var_text_label s$6582[1] = 'SWE2_EB'
set_var_text_label s$6582[2] = 'SWE2_EC'
set_var_text_label s$6582[3] = 'SWE2_ED'
set_var_text_label s$6582[4] = 'SWE2_EE'
set_lvar_int_to_constant 66@ = 11209
set_lvar_int_to_constant 67@ = 11246
set_lvar_int_to_constant 68@ = 11210
set_lvar_int_to_constant 69@ = 11224
set_lvar_int_to_constant 70@ = 11225
58@ = 4
goto @SWEET3_1695

:SWEET3_1695
return 

:SWEET3_1697
register_mission_given 
$onmission = 1
96@ = 0
97@ = 0
41@ = 0
92@ = 0
83@ = 0
84@ = 0
91@ = 0
101@ = 0
102@ = 0
103@ = 0
59@ = 0
60@ = 0
47@ = 0
98@ = 0
99@ = 0
42@ = 0
56@ = 0
43@ = 0
51@ = 0
set_lvar_int_to_lvar_int 89@ = 45@
set_lvar_int_to_lvar_int 90@ = 46@
wait 0
load_mission_text 'SWEET3'
request_model 492

:SWEET3_1875
if 
  not has_model_loaded 492
goto_if_false @SWEET3_1902
wait 0
goto @SWEET3_1875

:SWEET3_1902
switch_car_generator $gen_car6 {amount} 0
clear_area 2516.636 {y} -1675.691 {z} 13.0101 {radius} 15.0 {clearParticles} True
clear_area 2508.7949 {y} -1671.707 {z} 12.3892 {radius} 15.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.7 {y} -1671.7 {z} 12.3
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 166.9
set_can_burst_car_tyres $sweet_car {state} False
mark_model_as_no_longer_needed 492
load_cutscene 'SWEET2A'

:SWEET3_2052
if 
  not has_cutscene_loaded 
goto_if_false @SWEET3_2076
wait 0
goto @SWEET3_2052

:SWEET3_2076
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET3_2085
if 
  not has_cutscene_finished 
goto_if_false @SWEET3_2109
wait 0
goto @SWEET3_2085

:SWEET3_2109
do_fade 0 {direction} Fade.Out

:SWEET3_2115
if 
  get_fading_status 
goto_if_false @SWEET3_2139
wait 0
goto @SWEET3_2115

:SWEET3_2139
clear_cutscene 
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
request_model 372
request_model #CIGAR
load_all_models_now 

:SWEET3_2191
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_model_loaded 372
goto_if_false @SWEET3_2230
wait 0
goto @SWEET3_2191

:SWEET3_2230
if 
  not has_model_loaded #CIGAR
goto_if_false @SWEET3_2256
wait 0
goto @SWEET3_2230

:SWEET3_2256
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_2691
$big_smoke = create_char PedType.Mission1 {modelId} 290 {x} 2511.5139 {y} -1671.464 {z} 12.4607
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 84.5
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearLeft
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
93@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $big_smoke {handleOrTemplate} 93@
set_char_get_out_upside_down_car $big_smoke {state} False
$sweet = create_char PedType.Mission1 {modelId} 291 {x} 2507.886 {y} -1667.801 {z} 12.3881
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 167.8
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearRight
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
94@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $sweet {handleOrTemplate} 94@
set_char_get_out_upside_down_car $sweet {state} False
$ryder = create_char PedType.Mission1 {modelId} 292 {x} 2506.3479 {y} -1673.5909 {z} 12.3784
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $ryder {heading} 346.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 10000 {seat} SeatId.BikeRear
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_health $ryder {health} 500
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
95@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $ryder {handleOrTemplate} 95@
set_char_get_out_upside_down_car $ryder {state} False
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2

:SWEET3_2691
set_radio_channel RadioChannel.BounceFM
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
set_fading_colour 0 {g} 0 {b} 0
clear_area 2516.54 {y} -1671.2 {z} 12.87 {radius} 2.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2516.54 {y} -1671.2 {z} 12.87
set_char_heading $scplayer {heading} 81.2
load_scene_in_direction 2516.54 {y} -1671.2 {z} 12.87 {heading} 81.2
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_2839
goto @SWEET3_12752

:SWEET3_2839
TIMERB = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11219

:SWEET3_2853
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET3_2918
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_2911
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_2911
goto @SWEET3_2853

:SWEET3_2918
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE2_AA' {time} 10000 {flag} 1

:SWEET3_2938
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET3_3003
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_2996
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_2996
goto @SWEET3_2938

:SWEET3_3003
86@ = 0
85@ = 0
87@ = 0
79@ = 1
gosub @SWEET3_47
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3077
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3077
print_now 'TWAR2_A' {time} 6000 {flag} 1
TIMERB = 0
$blob_flag = 0
59@ = 0

:SWEET3_3114
if or
  not locate_car_3d $sweet_car {x} 2404.1001 {y} -1891.5 {z} 12.3 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_4301
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET3_3202
goto @SWEET3_12770

:SWEET3_3202
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3248
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752
goto @SWEET3_4138

:SWEET3_3248
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_4138
if 
  56@ == 0
goto_if_false @SWEET3_3540
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_3453
if 
  59@ == 0
goto_if_false @SWEET3_3381
remove_blip 39@
39@ = add_blip_for_coord 2404.1001 {y} -1891.5 {z} 12.3
print_now 'TWAR2_C' {time} 6000 {flag} 1
$blob_flag = 1
TIMERB = 0
59@ = 1

:SWEET3_3381
if 
  43@ == 0
goto_if_false @SWEET3_3439
if 
  TIMERB > 4000
goto_if_false @SWEET3_3432
gosub @SWEET3_13006
43@ = 1

:SWEET3_3432
goto @SWEET3_3446

:SWEET3_3439
gosub @SWEET3_13006

:SWEET3_3446
goto @SWEET3_3540

:SWEET3_3453
if 
  59@ == 1
goto_if_false @SWEET3_3540
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15196
print_now 'TW2_X' {time} 3000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_3540
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_4138
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11231

:SWEET3_3566
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_3748
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_3624
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3624
if 
  is_char_dead $ryder
goto_if_false @SWEET3_3663
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3663
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_3702
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3702
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3741
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3741
goto @SWEET3_3566

:SWEET3_3748
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KC' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_3933
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_3933
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_3846
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_3846
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_3886
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_3886
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_3926
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_3926
56@ = 1

:SWEET3_3933
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_4115
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_3991
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_3991
if 
  is_char_dead $ryder
goto_if_false @SWEET3_4030
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4030
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_4069
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4069
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_4108
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4108
goto @SWEET3_3933

:SWEET3_4115
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4138
if 
  is_char_dead $sweet
goto_if_false @SWEET3_4177
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4177
if 
  is_char_dead $ryder
goto_if_false @SWEET3_4216
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4216
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_4255
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4255
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_4294
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_4294
goto @SWEET3_3114

:SWEET3_4301
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2405.9751 {y} -1882.475 {z} 15.2036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2405.5691 {y} -1883.389 {z} 15.2158 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.Out

:SWEET3_4372
if 
  get_fading_status 
goto_if_false @SWEET3_4396
wait 0
goto @SWEET3_4372

:SWEET3_4396
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET3_4439
set_char_coordinates $scplayer {x} 2364.1931 {y} -1914.077 {z} 12.4235
goto @SWEET3_4459

:SWEET3_4439
warp_char_from_car_to_coord $scplayer {x} 2364.1931 {y} -1914.077 {z} 12.4235

:SWEET3_4459
delete_char $big_smoke
delete_char $sweet
delete_char $ryder
delete_car $sweet_car
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #CIGAR
unload_special_character 1
unload_special_character 2
unload_special_character 3
load_scene_in_direction 2397.644 {y} -1880.276 {z} 23.8686 {heading} 160.0
clear_area 2404.1001 {y} -1891.5 {z} 12.3 {radius} 120.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'SWEET2B'

:SWEET3_4584
if 
  not has_cutscene_loaded 
goto_if_false @SWEET3_4608
wait 0
goto @SWEET3_4584

:SWEET3_4608
clear_area 2404.1001 {y} -1891.5 {z} 12.3 {radius} 120.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET3_4641
if 
  not has_cutscene_finished 
goto_if_false @SWEET3_4665
wait 0
goto @SWEET3_4641

:SWEET3_4665
do_fade 0 {direction} Fade.Out

:SWEET3_4671
if 
  get_fading_status 
goto_if_false @SWEET3_4695
wait 0
goto @SWEET3_4671

:SWEET3_4695
clear_cutscene 
request_model 412
request_model 107
request_model 106
request_model 103
request_model 492
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
request_model 372
load_all_models_now 

:SWEET3_4765
if or
  not has_model_loaded 412
  not has_model_loaded 107
  not has_model_loaded 103
  not has_model_loaded 492
goto_if_false @SWEET3_4805
wait 0
goto @SWEET3_4765

:SWEET3_4805
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_model_loaded 372
goto_if_false @SWEET3_4844
wait 0
goto @SWEET3_4805

:SWEET3_4844
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_blip 39@
65@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 2410.739 {y} -1960.027 {z} 12.3906 {speed} 13.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2326.9031 {y} -1969.676 {z} 12.3738 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2235.262 {y} -1891.301 {z} 12.3828 {speed} 18.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2094.3069 {y} -1891.856 {z} 12.3738 {speed} 18.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2105.8201 {y} -1754.177 {z} 12.3984 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2321.9141 {y} -1736.094 {z} 12.3828 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2498.3201 {y} -1658.28 {z} 12.36 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2502.8899 {y} -1674.71 {z} 12.37 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 65@
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2396.3601 {y} -1917.96 {z} 12.38
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_can_burst_car_tyres $sweet_car {state} False
mark_model_as_no_longer_needed 492
$big_smoke = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.RearRight
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 84.5
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearLeft
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 93@
set_char_get_out_upside_down_car $big_smoke {state} False
$sweet = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.RearLeft
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 167.8
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearRight
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 94@
set_char_get_out_upside_down_car $sweet {state} False
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 292 {seat} SeatId.BikeRear
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $ryder {heading} 346.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 10000 {seat} SeatId.BikeRear
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_health $ryder {health} 500
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 95@
set_char_get_out_upside_down_car $ryder {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_5660
clear_area 2396.3601 {y} -1917.96 {z} 12.38 {radius} 10.0 {clearParticles} True
set_car_coordinates $sweet_car {x} 2396.3601 {y} -1917.96 {z} 12.38
set_car_heading $sweet_car {heading} 267.3
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_5660
warp_char_into_car $scplayer {vehicle} $sweet_car

:SWEET3_5660
clear_area 2411.3101 {y} -1928.837 {z} 12.3906 {radius} 10.0 {clearParticles} True
40@ = create_car 412 {x} 2411.3101 {y} -1928.837 {z} 12.3906
change_car_colour 40@ {color1} 22 {color2} 22
set_can_burst_car_tyres 40@ {state} False
set_load_collision_for_car_flag 40@ {state} False
set_car_health 40@ {health} 3000
lock_car_doors 40@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 40@ {heading} 178.7106
52@ = add_blip_for_car 40@
89@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 103
set_char_suffers_critical_hits 89@ {state} False
give_weapon_to_char 89@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon 89@ {weaponType} WeaponType.Tec9
set_char_accuracy 89@ {accuracy} 40
perform_sequence_task 89@ {sequence} 65@
clear_sequence_task 65@
90@ = create_char_as_passenger 40@ {pedType} PedType.Mission2 {modelId} 103 {seat} SeatId.BikeRear
set_char_suffers_critical_hits 90@ {state} False
give_weapon_to_char 90@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon 90@ {weaponType} WeaponType.Tec9
set_char_accuracy 90@ {accuracy} 40
task_drive_by 90@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60
53@ = create_char PedType.Mission1 {modelId} 106 {x} 2506.45 {y} -1681.02 {z} 12.53
set_char_heading 53@ {heading} 80.0
set_char_health 53@ {health} 30
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_stay_in_same_place 53@ {state} True
set_char_never_targetted 53@ {state} True
54@ = create_char PedType.Mission1 {modelId} 107 {x} 2507.3 {y} -1680.1 {z} 13.0
set_char_heading 54@ {heading} 90.0
set_char_health 54@ {health} 30
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_stay_in_same_place 54@ {state} True
set_char_never_targetted 54@ {state} True
task_chat_with_char 53@ {other} 54@ {leadSpeaker} True {_p4} 1
task_chat_with_char 54@ {other} 53@ {leadSpeaker} False {_p4} 1
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_6164
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_6164
set_car_health $sweet_car {health} 3100
if 
  is_char_in_car $ryder {vehicle} $sweet_car
goto_if_false @SWEET3_6164
set_current_char_weapon $ryder {weaponType} WeaponType.Tec9
task_drive_by $ryder {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 45

:SWEET3_6164
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_6251
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_6251
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @SWEET3_6251
task_drive_by $sweet {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 45

:SWEET3_6251
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 107
restore_camera_jumpcut 
set_camera_behind_player 
TIMERB = 0
60@ = 0
91@ = 0
59@ = 0
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
load_scene_in_direction 2396.3601 {y} -1917.96 {z} 12.38 {heading} 267.3
do_fade 1000 {direction} Fade.In
86@ = 0
85@ = 0
87@ = 0
79@ = 2
gosub @SWEET3_47
43@ = 0
100@ = 0
clear_wanted_level $player1
enable_ambient_crime False
36@ = 0
37@ = 0
64@ = 0
goto @SWEET3_6447
81@ = add_blip_for_char 89@
82@ = add_blip_for_char 90@

:SWEET3_6447
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_9232
wait 0
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7477
80@ = get_area_visible 
if 
  can_player_start_mission $player1
goto_if_false @SWEET3_7477
if 
  80@ == 0
goto_if_false @SWEET3_7477
if and
  locate_car_3d 40@ {x} 2502.8899 {y} -1674.71 {z} 12.37 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7477
do_fade 500 {direction} Fade.Out

:SWEET3_6592
if 
  get_fading_status 
goto_if_false @SWEET3_6616
wait 0
goto @SWEET3_6592

:SWEET3_6616
set_player_control $player1 {state} False
switch_widescreen True
80@ = get_area_visible 
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET3_6670
62@ = store_car_char_is_in $scplayer
freeze_car_position 62@ {state} True
goto @SWEET3_6677

:SWEET3_6670
freeze_char_position $scplayer {state} True

:SWEET3_6677
set_area_visible 0
request_collision 2497.2991 {y} -1679.542
load_scene_in_direction 2513.5439 {y} -1682.85 {z} 14.1195 {heading} 41.0
clear_area 2513.5439 {y} -1682.85 {z} 14.1195 {radius} 70.0 {clearParticles} True
set_fixed_camera_position 2514.3989 {y} -1683.345 {z} 14.2746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.5439 {y} -1682.85 {z} 14.1195 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 89@
goto_if_false @SWEET3_6857
if 
  not is_car_dead 40@
goto_if_false @SWEET3_6857
task_car_drive_to_coord 89@ {vehicle} 40@ {x} 2386.24 {y} -1658.95 {z} 12.38 {speed} 1.0 {driveStyle} DriveMode.Straightline {modelId} 412 {drivingStyle} DrivingMode.PloughThrough

:SWEET3_6857
if 
  not is_char_dead 90@
goto_if_false @SWEET3_6878
clear_char_tasks 90@

:SWEET3_6878
do_fade 500 {direction} Fade.In
TIMERA = 0

:SWEET3_6892
if 
  500 > TIMERA
goto_if_false @SWEET3_6922
wait 0
goto @SWEET3_6892

:SWEET3_6922
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7050
if 
  not is_char_dead 54@
goto_if_false @SWEET3_7043
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7043
if 
  is_char_in_car 90@ {vehicle} 40@
goto_if_false @SWEET3_7043
clear_char_tasks 90@
set_char_accuracy 90@ {accuracy} 50
set_char_shoot_rate 90@ {rate} 90
task_drive_by 90@ {targetChar} -1 {targetVehicle} -1 {x} 2507.6499 {y} -1681.24 {z} 12.8469 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:SWEET3_7043
goto @SWEET3_7057

:SWEET3_7050
goto @SWEET3_9232

:SWEET3_7057
TIMERA = 0

:SWEET3_7064
if or
  not is_char_dead 54@
  not is_char_dead 53@
goto_if_false @SWEET3_7176
wait 0
if 
  TIMERA > 2500
goto_if_false @SWEET3_7129
if 
  not is_char_dead 54@
goto_if_false @SWEET3_7129
task_die 54@

:SWEET3_7129
if 
  TIMERA > 2000
goto_if_false @SWEET3_7169
if 
  not is_char_dead 53@
goto_if_false @SWEET3_7169
task_die 53@

:SWEET3_7169
goto @SWEET3_7064

:SWEET3_7176
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7243
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7243
task_car_drive_to_coord 89@ {vehicle} 40@ {x} 2386.24 {y} -1658.95 {z} 12.38 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 412 {drivingStyle} DrivingMode.PloughThrough

:SWEET3_7243
TIMERA = 0

:SWEET3_7250
if 
  TIMERA <= 3000
goto_if_false @SWEET3_7280
wait 0
goto @SWEET3_7250

:SWEET3_7280
do_fade 500 {direction} Fade.Out

:SWEET3_7287
if 
  get_fading_status 
goto_if_false @SWEET3_7311
wait 0
goto @SWEET3_7287

:SWEET3_7311
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7332
clear_char_tasks_immediately 89@

:SWEET3_7332
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7353
clear_char_tasks_immediately 90@

:SWEET3_7353
delete_car 40@
delete_char 89@
delete_char 90@
set_area_visible 80@
107@, 108@, 109@ = get_char_coordinates $scplayer
load_scene 107@ {y} 108@ {z} 109@
wait 100
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET3_7463
if 
  not is_car_dead 62@
goto_if_false @SWEET3_7456
freeze_car_position 62@ {state} False

:SWEET3_7456
goto @SWEET3_7470

:SWEET3_7463
freeze_char_position $scplayer {state} False

:SWEET3_7470
do_fade 500 {direction} Fade.In

:SWEET3_7477
if 
  is_car_dead 40@
goto_if_false @SWEET3_7553
if 
  44@ == 0
goto_if_false @SWEET3_7546
remove_blip 52@
gosub @SWEET3_15863
print_now 'K_BALLA' {time} 6000 {flag} 1
44@ = 1

:SWEET3_7546
goto @SWEET3_7646

:SWEET3_7553
if 
  not is_car_health_greater 40@ {health} 250
goto_if_false @SWEET3_7646
if 
  44@ == 0
goto_if_false @SWEET3_7646
remove_blip 52@
gosub @SWEET3_15863
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7639
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_7639
44@ = 1

:SWEET3_7646
if 
  64@ == 0
goto_if_false @SWEET3_7872
if 
  is_char_dead 89@
goto_if_false @SWEET3_7768
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7724
remove_blip 81@
81@ = add_blip_for_char 90@
task_kill_char_on_foot 90@ {target} $scplayer
64@ = 1

:SWEET3_7724
gosub @SWEET3_15863
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7768
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_7768
if 
  is_char_dead 90@
goto_if_false @SWEET3_7872
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7828
remove_blip 82@
82@ = add_blip_for_char 89@
task_kill_char_on_foot 89@ {target} $scplayer
64@ = 1

:SWEET3_7828
gosub @SWEET3_15863
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7872
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_7872
if 
  is_char_dead 89@
goto_if_false @SWEET3_7893
remove_blip 81@

:SWEET3_7893
if 
  is_char_dead 90@
goto_if_false @SWEET3_7914
remove_blip 82@

:SWEET3_7914
if or
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @SWEET3_7958
print_now 'TW2_Y' {time} 6000 {flag} 1
goto @SWEET3_12752

:SWEET3_7958
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_8004
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752
goto @SWEET3_9053

:SWEET3_8004
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9053
if 
  56@ == 0
goto_if_false @SWEET3_8611
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_8526
if 
  59@ == 0
goto_if_false @SWEET3_8132
remove_blip 39@
remove_blip 52@
if 
  not is_car_dead 40@
goto_if_false @SWEET3_8109
52@ = add_blip_for_car 40@

:SWEET3_8109
print_now 'SWE3_B' {time} 3000 {flag} 1
59@ = 1

:SWEET3_8132
if 
  36@ == 0
goto_if_false @SWEET3_8176
if 
  TIMERB > 2000
goto_if_false @SWEET3_8176
gosub @SWEET3_13006

:SWEET3_8176
if 
  100@ == 0
goto_if_false @SWEET3_8231
if 
  TIMERB > 6000
goto_if_false @SWEET3_8231
print_help 'SWE3_H'
100@ = 1

:SWEET3_8231
34@ = get_car_health $sweet_car
if 
  37@ == 0
goto_if_false @SWEET3_8357
if 
  36@ == 0
goto_if_false @SWEET3_8357
if 
  86@ > 11
goto_if_false @SWEET3_8357
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 7
37@ = 1
gosub @SWEET3_47
36@ = 1

:SWEET3_8357
if 
  37@ == 1
goto_if_false @SWEET3_8475
if 
  36@ == 0
goto_if_false @SWEET3_8475
if 
  86@ > 3
goto_if_false @SWEET3_8475
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 8
37@ = 2
gosub @SWEET3_47
36@ = 1

:SWEET3_8475
if 
  36@ == 1
goto_if_false @SWEET3_8519
if 
  not is_car_health_greater $sweet_car {health} 35@
goto_if_false @SWEET3_8519
36@ = 0

:SWEET3_8519
goto @SWEET3_8611

:SWEET3_8526
if 
  59@ == 1
goto_if_false @SWEET3_8611
remove_blip 39@
remove_blip 52@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15196
print_now 'TW2_X' {time} 3000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
59@ = 0

:SWEET3_8611
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_9053
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11213

:SWEET3_8637
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_8663
wait 0
goto @SWEET3_8637

:SWEET3_8663
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KA' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_8848
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_8848
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_8761
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8761
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_8801
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8801
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_8841
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8841
56@ = 1

:SWEET3_8848
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_9030
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_8906
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_8906
if 
  is_char_dead $ryder
goto_if_false @SWEET3_8945
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_8945
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_8984
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_8984
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9023
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9023
goto @SWEET3_8848

:SWEET3_9030
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9053
if 
  is_char_dead $sweet
goto_if_false @SWEET3_9092
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9092
if 
  is_char_dead $ryder
goto_if_false @SWEET3_9131
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9131
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_9170
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9170
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9209
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9209
if 
  is_car_dead 40@
goto_if_false @SWEET3_9225

:SWEET3_9225
goto @SWEET3_6447

:SWEET3_9232
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_9253
clear_char_tasks $sweet

:SWEET3_9253
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_9274
clear_char_tasks $ryder

:SWEET3_9274
remove_blip 81@
remove_blip 82@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9365
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9358
$blob_flag = 1
remove_blip 52@
52@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
goto @SWEET3_9365

:SWEET3_9358
$blob_flag = 0

:SWEET3_9365
if 
  is_char_dead $sweet
goto_if_false @SWEET3_9404
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_9404
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 3
gosub @SWEET3_47
TIMERA = 0
43@ = 0
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9535
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9519
print_now 'TW2_W' {time} 6000 {flag} 1
goto @SWEET3_9535

:SWEET3_9519
print_now 'TW2_X' {time} 6000 {flag} 1

:SWEET3_9535
if or
  not locate_car_3d $sweet_car {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_10573
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9647
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752
goto @SWEET3_10410

:SWEET3_9647
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_10410
if 
  56@ == 0
goto_if_false @SWEET3_9968
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9876
if 
  59@ == 0
goto_if_false @SWEET3_9785
remove_blip 39@
remove_blip 52@
52@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
print_now 'TW2_W' {time} 6000 {flag} 1
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_9785
if 
  43@ == 0
goto_if_false @SWEET3_9862
if 
  TIMERA > 4000
goto_if_false @SWEET3_9855
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9855
gosub @SWEET3_13006
43@ = 1

:SWEET3_9855
goto @SWEET3_9869

:SWEET3_9862
gosub @SWEET3_13006

:SWEET3_9869
goto @SWEET3_9968

:SWEET3_9876
if 
  59@ == 1
goto_if_false @SWEET3_9968
remove_blip 52@
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15196
print_now 'TW2_X' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_9968
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_10410
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11258

:SWEET3_9994
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_10020
wait 0
goto @SWEET3_9994

:SWEET3_10020
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KB' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_10205
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_10205
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_10118
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10118
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_10158
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10158
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_10198
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10198
56@ = 1

:SWEET3_10205
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_10387
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_10263
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10263
if 
  is_char_dead $ryder
goto_if_false @SWEET3_10302
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10302
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_10341
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10341
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_10380
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10380
goto @SWEET3_10205

:SWEET3_10387
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10410
if 
  is_char_dead $sweet
goto_if_false @SWEET3_10449
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10449
if 
  is_char_dead $ryder
goto_if_false @SWEET3_10488
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10488
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_10527
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10527
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_10566
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_10566
goto @SWEET3_9535

:SWEET3_10573
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2502.7639 {y} -1670.778 {z} 18.432 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.6731 {y} -1670.851 {z} 18.0218 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 4
gosub @SWEET3_47
43@ = 0

:SWEET3_10685
if 
  86@ <> 1
goto_if_false @SWEET3_10721
wait 0
gosub @SWEET3_13006
goto @SWEET3_10685

:SWEET3_10721
38@ = 0
skip_cutscene_start_internal @SWEET3_11070
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_10767
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 15000

:SWEET3_10767
if 
  86@ <> 3
goto_if_false @SWEET3_10803
wait 0
gosub @SWEET3_13006
goto @SWEET3_10767

:SWEET3_10803
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2522.3711 {fromY} -1679.26 {fromZ} 15.9361 {toX} 2516.479 {toY} -1680.764 {toZ} 17.4286 {time} 17000 {ease} True
camera_set_vector_track 2521.5349 {fromY} -1678.7841 {fromZ} 15.6635 {toX} 2516.3811 {toY} -1679.917 {toZ} 16.9049 {time} 17000 {ease} True

:SWEET3_10887
if 
  86@ <> 8
goto_if_false @SWEET3_10923
wait 0
gosub @SWEET3_13006
goto @SWEET3_10887

:SWEET3_10923
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_10988
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_10988
task_leave_car $sweet {vehicle} $sweet_car
task_go_straight_to_coord $sweet {x} 2519.3879 {y} -1678.689 {z} 13.707 {speed} MoveState.Walk {time} 5000

:SWEET3_10988
wait 500
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11058
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_11058
task_leave_car $ryder {vehicle} $sweet_car
task_go_straight_to_coord $ryder {x} 2519.3879 {y} -1678.689 {z} 13.707 {speed} MoveState.Walk {time} 5000

:SWEET3_11058
wait 6000
38@ = 1

:SWEET3_11070
skip_cutscene_end 
clear_look_at $scplayer
clear_prints 
if 
  38@ == 0
goto_if_false @SWEET3_11133
do_fade 500 {direction} Fade.Out

:SWEET3_11104
if 
  get_fading_status 
goto_if_false @SWEET3_11128
wait 0
goto @SWEET3_11104

:SWEET3_11128
wait 500

:SWEET3_11133
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
camera_reset_new_scriptables 
delete_char $ryder
delete_char $sweet
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  38@ == 0
goto_if_false @SWEET3_11215
do_fade 500 {direction} Fade.In

:SWEET3_11191
if 
  get_fading_status 
goto_if_false @SWEET3_11215
wait 0
goto @SWEET3_11191

:SWEET3_11215
86@ = 0
85@ = 0
87@ = 0
79@ = 5
gosub @SWEET3_47
43@ = 0
TIMERA = 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_11303
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_11303
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11384
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11377
$blob_flag = 1
remove_blip 52@
52@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
goto @SWEET3_11384

:SWEET3_11377
$blob_flag = 0

:SWEET3_11384
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11458
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11442
print_now 'TW2_Z' {time} 6000 {flag} 1
goto @SWEET3_11458

:SWEET3_11442
print_now 'TW2_X' {time} 6000 {flag} 1

:SWEET3_11458
if or
  not locate_car_3d $sweet_car {x} 2066.4651 {y} -1695.444 {z} 12.5547 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_12260
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_11570
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752
goto @SWEET3_12175

:SWEET3_11570
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12175
if 
  56@ == 0
goto_if_false @SWEET3_11891
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11799
if 
  59@ == 0
goto_if_false @SWEET3_11708
remove_blip 39@
remove_blip 52@
52@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
print_now 'TW2_Z' {time} 6000 {flag} 1
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_11708
if 
  43@ == 0
goto_if_false @SWEET3_11785
if 
  TIMERA > 4000
goto_if_false @SWEET3_11778
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11778
gosub @SWEET3_13006
43@ = 1

:SWEET3_11778
goto @SWEET3_11792

:SWEET3_11785
gosub @SWEET3_13006

:SWEET3_11792
goto @SWEET3_11891

:SWEET3_11799
if 
  59@ == 1
goto_if_false @SWEET3_11891
remove_blip 52@
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_14719
print_now 'TW2_X' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_11891
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_12175
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11258

:SWEET3_11917
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_11943
wait 0
goto @SWEET3_11917

:SWEET3_11943
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KB' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_12048
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12048
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12041
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_12041
56@ = 1

:SWEET3_12048
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_12152
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_12106
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_12106
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_12145
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_12145
goto @SWEET3_12048

:SWEET3_12152
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_12175
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_12214
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_12214
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_12253
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12752

:SWEET3_12253
goto @SWEET3_11458

:SWEET3_12260
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 6
gosub @SWEET3_47
43@ = 0
switch_widescreen True
set_player_control $player1 {state} False
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2079.1089 {fromY} -1703.561 {fromZ} 17.6928 {toX} 2067.1621 {toY} -1703.3149 {toZ} 13.4746 {time} 17000 {ease} True
camera_set_vector_track 2078.251 {fromY} -1703.2061 {fromZ} 17.3208 {toX} 2067.105 {toY} -1702.33 {toZ} 13.6396 {time} 17000 {ease} True
wait 500
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12442
clear_look_at $scplayer
task_look_at_char $scplayer {target} $big_smoke {time} 15000

:SWEET3_12442
38@ = 0
skip_cutscene_start_internal @SWEET3_12605

:SWEET3_12456
if 
  86@ <> 1
goto_if_false @SWEET3_12492
wait 0
gosub @SWEET3_13006
goto @SWEET3_12456

:SWEET3_12492
if 
  86@ <> 5
goto_if_false @SWEET3_12528
wait 0
gosub @SWEET3_13006
goto @SWEET3_12492

:SWEET3_12528
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12593
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12593
task_leave_car $big_smoke {vehicle} $sweet_car
task_go_straight_to_coord $big_smoke {x} 2058.4041 {y} -1697.166 {z} 12.5547 {speed} MoveState.Walk {time} 8000

:SWEET3_12593
wait 5000
38@ = 1

:SWEET3_12605
skip_cutscene_end 
clear_look_at $scplayer
clear_prints 
if 
  38@ == 0
goto_if_false @SWEET3_12668
do_fade 500 {direction} Fade.Out

:SWEET3_12639
if 
  get_fading_status 
goto_if_false @SWEET3_12663
wait 0
goto @SWEET3_12639

:SWEET3_12663
wait 500

:SWEET3_12668
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
camera_reset_new_scriptables 
delete_char $big_smoke
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  38@ == 0
goto_if_false @SWEET3_12745
do_fade 500 {direction} Fade.In

:SWEET3_12721
if 
  get_fading_status 
goto_if_false @SWEET3_12745
wait 0
goto @SWEET3_12721

:SWEET3_12745
goto @SWEET3_12770

:SWEET3_12752
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET3_12770
register_mission_passed 'SWEET_3'
print_with_number_big 'M_PASSS' {num} 200 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
add_score $player1 {money} 200
clear_wanted_level $player1
play_mission_passed_tune 1
$flag_sweet_mission_counter += 1
set_int_stat StatId.PassedSweet2 {value} 1
player_made_progress 1
return 

:SWEET3_12841
remove_char_elegantly $big_smoke
remove_char_elegantly $ryder
remove_char_elegantly $sweet
remove_blip 39@
remove_blip 52@
remove_blip 81@
remove_blip 82@
enable_ambient_crime True
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12903
set_can_burst_car_tyres $sweet_car {state} True

:SWEET3_12903
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #CIGAR
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
unload_special_character 1
unload_special_character 2
unload_special_character 3
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_car_generator $gen_car6 {amount} 101
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:SWEET3_13006
if or
  85@ == 0
  85@ == 1
goto_if_false @SWEET3_13076
if 
  is_int_lvar_greater_or_equal_to_int_lvar 58@ >= 86@
goto_if_false @SWEET3_13076
if 
  TIMERA > 200
goto_if_false @SWEET3_13076
gosub @SWEET3_13148

:SWEET3_13076
if 
  85@ == 2
goto_if_false @SWEET3_13146
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET3_13146
gosub @SWEET3_13997
85@ = 0
86@ += 1
87@ = 0
clear_prints 
TIMERA = 0

:SWEET3_13146
return 

:SWEET3_13148
if 
  85@ == 0
goto_if_false @SWEET3_13184
load_mission_audio MissionAudioSlot.Slot1 {audioId} 66@(86@,13i)
85@ = 1

:SWEET3_13184
if 
  85@ == 1
goto_if_false @SWEET3_13249
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET3_13249
print_now $6582(86@,13s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET3_13251
85@ = 2

:SWEET3_13249
return 

:SWEET3_13251
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11200
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11201
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11202
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11274
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11275
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11276
goto_if_false @SWEET3_13351
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET3_13351
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11277
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11278
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11279
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11280
goto_if_false @SWEET3_13427
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET3_13427
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11220
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11221
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11223
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11228
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11229
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11237
goto_if_false @SWEET3_13543
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_13543
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 3000
return 

:SWEET3_13543
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11238
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11235
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11236
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11224
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11225
goto_if_false @SWEET3_13647
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_13647
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 3000
return 

:SWEET3_13647
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11214
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11215
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11216
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11217
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11218
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11210
goto_if_false @SWEET3_13763
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_13763
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000
return 

:SWEET3_13763
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11207
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11208
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11209
goto_if_false @SWEET3_13843
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_13843
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000
return 

:SWEET3_13843
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11203
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11204
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11205
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11206
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11281
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11211
goto_if_false @SWEET3_13964
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_13957
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:SWEET3_13957
goto @SWEET3_13995

:SWEET3_13964
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_13995
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET3_13995
return 

:SWEET3_13997
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11200
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11201
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11202
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11274
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11275
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11276
goto_if_false @SWEET3_14094
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET3_14094
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11277
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11278
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11279
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11280
goto_if_false @SWEET3_14167
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET3_14167
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11220
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11221
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11223
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11228
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11229
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11237
goto_if_false @SWEET3_14280
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_14280
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet
return 

:SWEET3_14280
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11238
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11235
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11236
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11224
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11225
goto_if_false @SWEET3_14381
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_14381
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet
return 

:SWEET3_14381
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11214
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11215
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11216
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11217
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11218
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11210
goto_if_false @SWEET3_14494
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14494
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder
return 

:SWEET3_14494
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11207
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11208
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11209
goto_if_false @SWEET3_14571
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14571
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder
return 

:SWEET3_14571
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11203
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11204
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11205
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11206
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11281
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11211
goto_if_false @SWEET3_14689
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14682
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:SWEET3_14682
goto @SWEET3_14717

:SWEET3_14689
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_14717
shut_char_up_for_scripted_speech $big_smoke {state} False
stop_char_facial_talk $big_smoke

:SWEET3_14717
return 

:SWEET3_14719
clear_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_14748
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25800

:SWEET3_14748
if 
  51@ == 1
goto_if_false @SWEET3_14773
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25801

:SWEET3_14773
if 
  51@ == 2
goto_if_false @SWEET3_14798
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25802

:SWEET3_14798
if 
  51@ == 3
goto_if_false @SWEET3_14823
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25803

:SWEET3_14823
if 
  51@ == 4
goto_if_false @SWEET3_14848
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25804

:SWEET3_14848
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET3_14864
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_14926
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_14901
return 

:SWEET3_14901
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_14919
return 

:SWEET3_14919
goto @SWEET3_14864

:SWEET3_14926
play_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_14964
print_now 'SMOX_AA' {time} 3000 {flag} 1

:SWEET3_14964
if 
  51@ == 1
goto_if_false @SWEET3_14998
print_now 'SMOX_AB' {time} 3000 {flag} 1

:SWEET3_14998
if 
  51@ == 2
goto_if_false @SWEET3_15032
print_now 'SMOX_AC' {time} 3000 {flag} 1

:SWEET3_15032
if 
  51@ == 3
goto_if_false @SWEET3_15066
print_now 'SMOX_AD' {time} 3000 {flag} 1

:SWEET3_15066
if 
  51@ == 4
goto_if_false @SWEET3_15100
print_now 'SMOX_AE' {time} 3000 {flag} 1

:SWEET3_15100
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_15162
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15137
return 

:SWEET3_15137
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15155
return 

:SWEET3_15155
goto @SWEET3_15100

:SWEET3_15162
51@ += 1
if 
  51@ > 4
goto_if_false @SWEET3_15194
51@ = 0

:SWEET3_15194
return 

:SWEET3_15196
clear_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15225
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25605

:SWEET3_15225
if 
  51@ == 1
goto_if_false @SWEET3_15250
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7468

:SWEET3_15250
if 
  51@ == 2
goto_if_false @SWEET3_15275
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26041

:SWEET3_15275
if 
  51@ == 3
goto_if_false @SWEET3_15300
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25602

:SWEET3_15300
if 
  51@ == 4
goto_if_false @SWEET3_15325
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26044

:SWEET3_15325
if 
  51@ == 5
goto_if_false @SWEET3_15350
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25603

:SWEET3_15350
if 
  51@ == 6
goto_if_false @SWEET3_15375
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7463

:SWEET3_15375
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET3_15391
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_15489
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_15428
return 

:SWEET3_15428
if 
  is_char_dead $ryder
goto_if_false @SWEET3_15446
return 

:SWEET3_15446
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15464
return 

:SWEET3_15464
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15482
return 

:SWEET3_15482
goto @SWEET3_15391

:SWEET3_15489
play_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15527
print_now 'RYDX_AF' {time} 3000 {flag} 1

:SWEET3_15527
if 
  51@ == 1
goto_if_false @SWEET3_15561
print_now 'SWE1_BM' {time} 3000 {flag} 1

:SWEET3_15561
if 
  51@ == 2
goto_if_false @SWEET3_15595
print_now 'SWEX_BP' {time} 3000 {flag} 1

:SWEET3_15595
if 
  51@ == 3
goto_if_false @SWEET3_15629
print_now 'RYDX_AC' {time} 3000 {flag} 1

:SWEET3_15629
if 
  51@ == 4
goto_if_false @SWEET3_15663
print_now 'SWEX_BS' {time} 3000 {flag} 1

:SWEET3_15663
if 
  51@ == 5
goto_if_false @SWEET3_15697
print_now 'RYDX_AD' {time} 3000 {flag} 1

:SWEET3_15697
if 
  51@ == 6
goto_if_false @SWEET3_15731
print_now 'SWE1_BG' {time} 3000 {flag} 1

:SWEET3_15731
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_15829
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_15768
return 

:SWEET3_15768
if 
  is_char_dead $ryder
goto_if_false @SWEET3_15786
return 

:SWEET3_15786
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15804
return 

:SWEET3_15804
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15822
return 

:SWEET3_15822
goto @SWEET3_15731

:SWEET3_15829
51@ += 1
if 
  51@ > 6
goto_if_false @SWEET3_15861
51@ = 0

:SWEET3_15861
return 

:SWEET3_15863
if 
  not is_char_dead 89@
goto_if_false @SWEET3_15992
remove_blip 81@
81@ = add_blip_for_char 89@
task_kill_char_on_foot 89@ {target} $scplayer
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_15992
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_15992
if 
  is_char_in_car $ryder {vehicle} $sweet_car
goto_if_false @SWEET3_15992
clear_char_tasks $ryder
task_drive_by $ryder {targetChar} 89@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 70

:SWEET3_15992
if 
  not is_char_dead 90@
goto_if_false @SWEET3_16121
remove_blip 82@
82@ = add_blip_for_char 90@
task_kill_char_on_foot 90@ {target} $scplayer
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_16121
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_16121
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @SWEET3_16121
clear_char_tasks $sweet
task_drive_by $sweet {targetChar} 90@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 70

:SWEET3_16121
return 

//-------------Mission 16---------------
// Originally: Nines And AK's

:SWEET2
script_name 'SWEET2'
gosub @SWEET2_1048
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET2_38
gosub @SWEET2_20129

:SWEET2_38
gosub @SWEET2_20646
terminate_this_script 

:SWEET2_47
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET2_1046 {caseNum1} 0 {caseLabel1} @SWEET2_110 {caseNum2} 1 {caseLabel2} @SWEET2_322 {caseNum3} 2 {caseLabel3} @SWEET2_644 {caseNum4} 3 {caseLabel4} @SWEET2_812 {caseNum5} -1 {caseLabel5} @SWEET2_1046 {caseNum6} -1 {caseLabel6} @SWEET2_1046 {caseNum7} -1 {caseLabel7} @SWEET2_1046

:SWEET2_110
set_var_text_label s$6608[0] = 'SWE3_AA'
set_var_text_label s$6608[1] = 'SWE3_AB'
set_var_text_label s$6608[2] = 'SWE3_AC'
set_var_text_label s$6608[3] = 'SWE3_AD'
set_var_text_label s$6608[4] = 'SWE3_AE'
set_var_text_label s$6608[5] = 'SWE3_AF'
set_var_text_label s$6608[6] = 'SWE3_AH'
set_var_text_label s$6608[7] = 'SWE3_AJ'
set_var_text_label s$6608[8] = 'SWE3_AK'
set_lvar_int_to_constant 66@ = 9831
set_lvar_int_to_constant 67@ = 9834
set_lvar_int_to_constant 68@ = 9835
set_lvar_int_to_constant 69@ = 9836
set_lvar_int_to_constant 70@ = 9837
set_lvar_int_to_constant 71@ = 9866
set_lvar_int_to_constant 72@ = 9871
set_lvar_int_to_constant 73@ = 9872
set_lvar_int_to_constant 74@ = 9832
48@ = 8
goto @SWEET2_1046

:SWEET2_322
set_var_text_label s$6608[0] = 'SWE3_GA'
set_var_text_label s$6608[1] = 'SWE3_GB'
set_var_text_label s$6608[2] = 'SWE3_GC'
set_var_text_label s$6608[3] = 'SWE3_GD'
set_var_text_label s$6608[4] = 'SWE3_GE'
set_var_text_label s$6608[5] = 'SWE3_GF'
set_var_text_label s$6608[6] = 'SWE3_GG'
set_var_text_label s$6608[7] = 'SWE3_GH'
set_var_text_label s$6608[8] = 'SWE3_GJ'
set_var_text_label s$6608[9] = 'SWE3_GK'
set_var_text_label s$6608[10] = 'SWE3_GL'
set_var_text_label s$6608[11] = 'SWE3_GM'
set_var_text_label s$6608[12] = 'SWE3_GN'
set_var_text_label s$6608[13] = 'SWE3_GO'
set_lvar_int_to_constant 66@ = 9854
set_lvar_int_to_constant 67@ = 9855
set_lvar_int_to_constant 68@ = 9825
set_lvar_int_to_constant 69@ = 9856
set_lvar_int_to_constant 70@ = 9857
set_lvar_int_to_constant 71@ = 9858
set_lvar_int_to_constant 72@ = 9826
set_lvar_int_to_constant 73@ = 9827
set_lvar_int_to_constant 74@ = 9828
set_lvar_int_to_constant 75@ = 9829
set_lvar_int_to_constant 76@ = 9830
set_lvar_int_to_constant 77@ = 9859
set_lvar_int_to_constant 78@ = 9833
set_lvar_int_to_constant 79@ = 9860
48@ = 13
goto @SWEET2_1046

:SWEET2_644
set_var_text_label s$6608[0] = 'SWE3_HA'
set_var_text_label s$6608[1] = 'SWE3_HB'
set_var_text_label s$6608[2] = 'SWE3_HC'
set_var_text_label s$6608[3] = 'SWE3_HD'
set_var_text_label s$6608[4] = 'SWE3_HE'
set_var_text_label s$6608[5] = 'SWE3_HF'
set_var_text_label s$6608[6] = 'SWE3_HG'
set_lvar_int_to_constant 66@ = 9867
set_lvar_int_to_constant 67@ = 9861
set_lvar_int_to_constant 68@ = 9868
set_lvar_int_to_constant 69@ = 9862
set_lvar_int_to_constant 70@ = 9863
set_lvar_int_to_constant 71@ = 9869
set_lvar_int_to_constant 72@ = 9864
48@ = 6
goto @SWEET2_1046

:SWEET2_812
set_var_text_label s$6608[0] = 'MSWE07A'
set_var_text_label s$6608[1] = 'MSWE07B'
set_var_text_label s$6608[2] = 'MSWE07C'
set_var_text_label s$6608[3] = 'MSWE07D'
set_var_text_label s$6608[4] = 'MSWE07E'
set_var_text_label s$6608[5] = 'MSWE07F'
set_var_text_label s$6608[6] = 'MSWE07G'
set_var_text_label s$6608[7] = 'MSWE07H'
set_var_text_label s$6608[8] = 'MSWE07J'
set_var_text_label s$6608[9] = 'MSWE07K'
set_lvar_int_to_constant 66@ = 14524
set_lvar_int_to_constant 67@ = 14439
set_lvar_int_to_constant 68@ = 14525
set_lvar_int_to_constant 69@ = 14440
set_lvar_int_to_constant 70@ = 14526
set_lvar_int_to_constant 71@ = 14441
set_lvar_int_to_constant 72@ = 14442
set_lvar_int_to_constant 73@ = 14443
set_lvar_int_to_constant 74@ = 14527
set_lvar_int_to_constant 75@ = 14444
48@ = 9
goto @SWEET2_1046

:SWEET2_1046
return 

:SWEET2_1048
register_mission_given 
$onmission = 1
36@ = 0
42@ = 0
38@ = 0
51@ = 0
53@ = 0
62@ = 0
45@ = 0
47@ = 0
56@ = 0
57@ = 0
89@ = 2440.5801
94@ = -1979.89
99@ = 14.1
90@ = 2440.1399
95@ = -1976.5
100@ = 13.4
91@ = 2440.95
96@ = -1973.76
101@ = 14.2
92@ = 2448.97
97@ = -1973.29
102@ = 13.35
93@ = 2444.3501
98@ = -1970.61
103@ = 13.8
wait 0
load_mission_text 'SWEET2'
set_area_visible 1
load_cutscene 'SWEET3A'

:SWEET2_1307
if 
  not has_cutscene_loaded 
goto_if_false @SWEET2_1331
wait 0
goto @SWEET2_1307

:SWEET2_1331
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET2_1340
if 
  not has_cutscene_finished 
goto_if_false @SWEET2_1364
wait 0
goto @SWEET2_1340

:SWEET2_1364
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET2_1377
if 
  get_fading_status 
goto_if_false @SWEET2_1401
wait 0
goto @SWEET2_1377

:SWEET2_1401
clear_cutscene 
set_area_visible 0
force_weather WeatherType.SunnyLa
load_special_character 10 {modelName} 'SMOKE'
request_model 466
load_all_models_now 

:SWEET2_1431
if or
  not has_special_character_loaded 10
  not has_model_loaded 466
goto_if_false @SWEET2_1462
wait 0
goto @SWEET2_1431

:SWEET2_1462
52@ = load_char_decision_maker DecisionMakerType.Empty
switch_car_generator $gen_car6 {amount} 0
clear_area 2506.23 {y} -1675.75 {z} 12.37 {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
$big_smoke_car = create_car 466 {x} 2506.23 {y} -1675.75 {z} 12.37
change_car_colour $big_smoke_car {color1} 98 {color2} 14
set_car_heading $big_smoke_car {heading} 148.0
set_radio_channel RadioChannel.BounceFM
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2505.8689 {y} -1672.723 {z} 12.3778
set_char_heading $big_smoke {heading} 160.0
set_char_health $big_smoke {health} 500
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_weapon_skill $big_smoke {skill} WeaponSkill.Std
set_char_accuracy $big_smoke {accuracy} 100
set_char_shoot_rate $big_smoke {rate} 30
set_char_only_damaged_by_player $big_smoke {state} True
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_decision_maker $big_smoke {handleOrTemplate} 52@
set_char_coordinates $scplayer {x} 2515.28 {y} -1673.4399 {z} 12.73
set_char_heading $scplayer {heading} 81.2
load_scene 2516.54 {y} -1671.2 {z} 12.87
do_fade 1000 {direction} Fade.In
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE2_A' {time} 10000 {flag} 1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $big_smoke_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
35@ = add_blip_for_coord 2453.0701 {y} -2003.96 {z} 12.56
remove_blip 35@
$blob_flag = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 0
gosub @SWEET2_47
TIMERB = 0
56@ = 0

:SWEET2_1889
if or
  not locate_car_3d $big_smoke_car {x} 2453.0701 {y} -2003.96 {z} 12.56 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
  not is_vehicle_on_all_wheels $big_smoke_car
goto_if_false @SWEET2_2360
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET2_1977
goto @SWEET2_20218

:SWEET2_1977
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_2252
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2222
if 
  is_char_in_car $scplayer {vehicle} $big_smoke_car
goto_if_false @SWEET2_2123
if 
  45@ == 0
goto_if_false @SWEET2_2090
remove_blip 44@
remove_blip 35@
35@ = add_blip_for_coord 2453.0701 {y} -2003.96 {z} 12.56
$blob_flag = 1
45@ = 1

:SWEET2_2090
if 
  TIMERB > 5000
goto_if_false @SWEET2_2116
gosub @SWEET2_20914

:SWEET2_2116
goto @SWEET2_2215

:SWEET2_2123
if 
  45@ == 1
goto_if_false @SWEET2_2215
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
gosub @SWEET2_21159
print_now 'SWE2_L' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
45@ = 0

:SWEET2_2215
goto @SWEET2_2245

:SWEET2_2222
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_2245
goto @SWEET2_2275

:SWEET2_2252
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_2275
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_2314
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_2314
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_2353
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_2353
goto @SWEET2_1889

:SWEET2_2360
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2452.949 {y} -2011.824 {z} 16.3096 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.98 {y} -2010.903 {z} 15.9217 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_2582
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2582
37@ = open_sequence_task 
task_leave_car -1 {vehicle} $big_smoke_car
flush_route 
extend_route 2453.5149 {y} -1980.771 {z} 12.5547
extend_route 2450.4861 {y} -1981.6591 {z} 12.5547
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 37@
perform_sequence_task $big_smoke {sequence} 37@
clear_sequence_task 37@
wait 800
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2582
task_leave_car $scplayer {vehicle} $big_smoke_car
task_go_straight_to_coord $scplayer {x} 2453.29 {y} -1983.71 {z} 12.54 {speed} MoveState.Walk {time} 5000

:SWEET2_2582
wait 2000
gosub @SWEET2_22332
do_fade 1000 {direction} Fade.Out

:SWEET2_2601
if 
  get_fading_status 
goto_if_false @SWEET2_2625
wait 0
goto @SWEET2_2601

:SWEET2_2625
set_script_limit_to_gang_size 0
clear_area 2448.7339 {y} -1976.193 {z} 12.5469 {radius} 200.0 {clearParticles} False
make_player_safe_for_cutscene $player1
load_cutscene 'SWEET3B'

:SWEET2_2669
if 
  not has_cutscene_loaded 
goto_if_false @SWEET2_2693
wait 0
goto @SWEET2_2669

:SWEET2_2693
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET2_2702
if 
  not has_cutscene_finished 
goto_if_false @SWEET2_2726
wait 0
goto @SWEET2_2702

:SWEET2_2726
do_fade 0 {direction} Fade.Out

:SWEET2_2732
if 
  get_fading_status 
goto_if_false @SWEET2_2756
wait 0
goto @SWEET2_2732

:SWEET2_2756
clear_cutscene 
load_special_character 1 {modelName} 'EMMET'
request_model #DYN_WINE_BIG
request_animation "GANGS"
request_animation "CRACK"
request_animation "COLT45"
request_animation "FAT"
request_model 346
request_model 549
load_all_models_now 

:SWEET2_2822
if or
  not has_special_character_loaded 1
  not has_model_loaded #DYN_WINE_BIG
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CRACK"
  not has_model_loaded 346
  not has_animation_loaded "COLT45"
goto_if_false @SWEET2_2885
wait 0
goto @SWEET2_2822

:SWEET2_2885
if or
  not has_model_loaded 549
  not has_animation_loaded "FAT"
goto_if_false @SWEET2_2919
wait 0
goto @SWEET2_2885

:SWEET2_2919
clear_area 2446.49 {y} -1966.47 {z} 12.54 {radius} 4.0 {clearParticles} True
custom_plate_for_next_car 549 {text} "_FELTCH_"
83@ = create_car 549 {x} 2446.49 {y} -1965.0 {z} 12.54
set_car_heading 83@ {heading} 101.85
lock_car_doors 83@ {lockStatus} CarLock.Locked
set_car_proofs 83@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
63@ = create_char PedType.Mission1 {modelId} 290 {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292
set_char_health 63@ {health} 600
set_char_never_targetted 63@ {state} True
set_char_suffers_critical_hits 63@ {state} False
remove_blip 35@
41@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Pistol
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3135
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol

:SWEET2_3135
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9840
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3220
clear_char_tasks_immediately $big_smoke
set_char_coordinates $big_smoke {x} 2450.4651 {y} -1980.577 {z} 12.5469
set_char_heading $big_smoke {heading} 79.2792

:SWEET2_3220
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_3299
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_3299
set_fixed_camera_position 2445.7971 {y} -1976.585 {z} 14.8864 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2444.9829 {y} -1977.151 {z} 14.7514 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_3393
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_3413

:SWEET2_3393
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_3413
set_char_heading $scplayer {heading} 89.5159
38@ = 0
wait 2500
set_fixed_camera_position 2451.365 {y} -1980.395 {z} 14.288 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.365 {y} -1980.363 {z} 14.2636 {switchStyle} SwitchType.JumpCut
62@ = 0
54@ = open_sequence_task 
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1300
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
close_sequence_task 54@

:SWEET2_3667
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_3732
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_3725
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_3725
goto @SWEET2_3667

:SWEET2_3732
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BC' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3783
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_3783
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_3848
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_3841
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_3841
goto @SWEET2_3783

:SWEET2_3848
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3884
clear_prints 
stop_char_facial_talk $big_smoke
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_3884
84@ = 0

:SWEET2_3891
if 
  36@ <> 1
goto_if_false @SWEET2_4748
wait 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_4004
if 
  is_player_targetting_object $player1 {handle} $tag_target[0]
goto_if_false @SWEET2_3962
gosub @SWEET2_20816
goto @SWEET2_3969

:SWEET2_3962
gosub @SWEET2_20869

:SWEET2_3969
if 
  has_object_been_damaged $tag_target[0]
goto_if_false @SWEET2_4004
make_object_targettable $tag_target[0] {state} False
delete_object $tag_target[0]
36@ += 1

:SWEET2_4004
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_4154
if 
  38@ == 0
goto_if_false @SWEET2_4147
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_4140
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_4140
38@ = 1

:SWEET2_4147
goto @SWEET2_4302

:SWEET2_4154
if 
  84@ == 0
goto_if_false @SWEET2_4217
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_4217
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_4217
if 
  38@ == 1
goto_if_false @SWEET2_4302
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_4268
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_4268
print_help_forever 'HOOD2A'
print_now 'SWE2_G' {time} 10000 {flag} 1
38@ = 0

:SWEET2_4302
if 
  62@ == 0
goto_if_false @SWEET2_4624
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_4624
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 0
goto_if_false @SWEET2_4624
set_near_clip 0.2
set_fixed_camera_position 2439.8589 {y} -1979.678 {z} 14.4278 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2440.833 {y} -1979.7939 {z} 14.235 {switchStyle} SwitchType.JumpCut
wait 500
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_4459
break_object $tag_target[0] {intensity} 1

:SWEET2_4459
wait 1000
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_4540
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_4540
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
36@ = 0
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 2440.5801 {y} -1979.89 {z} 14.2
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
print_help_forever 'HOOD2A'
62@ = 1

:SWEET2_4624
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_4663
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_4663
if 
  is_char_dead 63@
goto_if_false @SWEET2_4702
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_4702
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_4741
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_4741
goto @SWEET2_3891

:SWEET2_4748
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9812

:SWEET2_4755
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_4859
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_4813
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_4813
if 
  is_char_dead 63@
goto_if_false @SWEET2_4852
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_4852
goto @SWEET2_4755

:SWEET2_4859
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DC' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_4953
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_4953
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_5057
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_5011
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_5011
if 
  is_char_dead 63@
goto_if_false @SWEET2_5050
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_5050
goto @SWEET2_4953

:SWEET2_5057
if 
  not is_char_dead 63@
goto_if_false @SWEET2_5085
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_5085
set_player_control $player1 {state} False
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9838
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_5180
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_5180
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_5322
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_5342

:SWEET2_5322
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_5342
set_char_heading $scplayer {heading} 89.5159
set_fixed_camera_position 2447.3789 {y} -1977.062 {z} 15.2851 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2446.3911 {y} -1977.011 {z} 15.1366 {switchStyle} SwitchType.JumpCut
wait 2500
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2451.3879 {fromY} -1981.104 {fromZ} 14.5206 {toX} 2451.738 {toY} -1980.585 {toZ} 14.5765 {time} 8000 {ease} True
camera_set_vector_track 2450.427 {fromY} -1980.924 {fromZ} 14.3127 {toX} 2450.8579 {toY} -1980.187 {toZ} 14.318 {time} 8000 {ease} True
set_char_heading $scplayer {heading} 65.0
38@ = 0
62@ = 0
60@ = open_sequence_task 
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
set_sequence_to_repeat 60@ {state} True
close_sequence_task 60@
54@ = open_sequence_task 
task_play_anim -1 {animationName} "COLT45_FIRE" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 2000
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1300
task_shoot_at_coord -1 {x} 90@ {y} 95@ {z} 100@ {time} 1300
task_shoot_at_coord -1 {x} 91@ {y} 96@ {z} 101@ {time} 1300
perform_sequence_task -1 {sequence} 60@
close_sequence_task 54@
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_5816
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_5816
84@ = 0

:SWEET2_5823
if 
  36@ <> 3
goto_if_false @SWEET2_7111
wait 0
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_5956
if 
  is_player_targetting_object $player1 {handle} $tag_target(42@,10i)
goto_if_false @SWEET2_5902
gosub @SWEET2_20816
goto @SWEET2_5909

:SWEET2_5902
gosub @SWEET2_20869

:SWEET2_5909
if 
  has_object_been_damaged $tag_target(42@,10i)
goto_if_false @SWEET2_5956
make_object_targettable $tag_target(42@,10i) {state} False
delete_object $tag_target(42@,10i)
36@ += 1

:SWEET2_5956
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_6106
if 
  38@ == 0
goto_if_false @SWEET2_6099
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_6092
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_6092
38@ = 1

:SWEET2_6099
goto @SWEET2_6254

:SWEET2_6106
if 
  84@ == 0
goto_if_false @SWEET2_6169
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6169
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_6169
if 
  38@ == 1
goto_if_false @SWEET2_6254
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_6220
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_6220
print_help_forever 'HOOD2B'
print_now 'SWE2_H' {time} 10000 {flag} 1
38@ = 0

:SWEET2_6254
if 
  62@ == 0
goto_if_false @SWEET2_6955
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6955
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 1
goto_if_false @SWEET2_6353
wait 700
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_6353
break_object $tag_target[0] {intensity} 1

:SWEET2_6353
if 
  64@ == 2
goto_if_false @SWEET2_6399
wait 500
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_6399
break_object $tag_target[1] {intensity} 1

:SWEET2_6399
if 
  64@ == 3
goto_if_false @SWEET2_6955

:SWEET2_6417
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_6482
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_6475
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_6475
goto @SWEET2_6417

:SWEET2_6482
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BA' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6533
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_6533
wait 500
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_6561
break_object $tag_target[2] {intensity} 1

:SWEET2_6561
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_6626
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_6619
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_6619
goto @SWEET2_6561

:SWEET2_6626
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6649
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_6649
wait 1000
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_6730
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_6730
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
print_help_forever 'HOOD2B'
36@ = 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_6788
make_object_targettable $tag_target[0] {state} False

:SWEET2_6788
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_6849
make_object_targettable $tag_target[1] {state} False

:SWEET2_6849
delete_object $tag_target[1]
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_6910
make_object_targettable $tag_target[2] {state} False

:SWEET2_6910
delete_object $tag_target[2]
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
62@ = 1

:SWEET2_6955
42@ += 1
if 
  42@ >= 3
goto_if_false @SWEET2_6987
42@ = 0

:SWEET2_6987
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7026
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7026
if 
  is_char_dead 63@
goto_if_false @SWEET2_7065
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7065
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_7104
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7104
goto @SWEET2_5823

:SWEET2_7111
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9810

:SWEET2_7118
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_7222
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7176
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7176
if 
  is_char_dead 63@
goto_if_false @SWEET2_7215
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7215
goto @SWEET2_7118

:SWEET2_7222
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DA' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_7316
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_7316
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_7420
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7374
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7374
if 
  is_char_dead 63@
goto_if_false @SWEET2_7413
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_7413
goto @SWEET2_7316

:SWEET2_7420
if 
  not is_char_dead 63@
goto_if_false @SWEET2_7448
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_7448
set_player_control $player1 {state} False
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9841
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9842
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_7550
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_7550
89@ = 2440.5801
94@ = -1979.89
99@ = 14.1
90@ = 2440.1399
95@ = -1976.5
100@ = 13.4
91@ = 2440.6599
96@ = -1973.76
101@ = 14.1
92@ = 2448.97
97@ = -1973.29
102@ = 13.3
93@ = 2444.3501
98@ = -1970.61
103@ = 13.7
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
$tag_target[3] = create_object #DYN_WINE_BIG {x} 92@ {y} 97@ {z} 102@
set_object_heading $tag_target[3] {heading} 90.0
make_object_targettable $tag_target[3] {state} True
$tag_target[4] = create_object #DYN_WINE_BIG {x} 93@ {y} 98@ {z} 103@
set_object_heading $tag_target[4] {heading} 90.0
make_object_targettable $tag_target[4] {state} True
set_fixed_camera_position 2453.7549 {y} -1978.959 {z} 15.389 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.8369 {y} -1978.611 {z} 15.1996 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_7959
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_7979

:SWEET2_7959
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_7979
set_char_heading $scplayer {heading} 89.5159
wait 2500
set_fixed_camera_position 2449.041 {y} -1977.7321 {z} 12.9667 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.835 {y} -1978.326 {z} 13.0934 {switchStyle} SwitchType.JumpCut
set_char_heading $scplayer {heading} 65.0
38@ = 0
62@ = 0
clear_sequence_task 60@
59@ = open_sequence_task 
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 59@ {state} True
close_sequence_task 59@
60@ = open_sequence_task 
task_achieve_heading -1 {heading} 77.0
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
perform_sequence_task -1 {sequence} 59@
close_sequence_task 60@
58@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2450.48 {y} -1981.65 {z} 12.55 {speed} MoveState.Walk {time} 4000
perform_sequence_task -1 {sequence} 60@
close_sequence_task 58@
54@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1400
task_shoot_at_coord -1 {x} 90@ {y} 95@ {z} 100@ {time} 1400
task_shoot_at_coord -1 {x} 91@ {y} 96@ {z} 101@ {time} 1400
task_shoot_at_coord -1 {x} 92@ {y} 97@ {z} 102@ {time} 1400
task_shoot_at_coord -1 {x} 93@ {y} 98@ {z} 103@ {time} 1400
perform_sequence_task -1 {sequence} 58@
close_sequence_task 54@
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_8699
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_8699
40@ = 0
84@ = 0

:SWEET2_8713
if 
  36@ <> 5
goto_if_false @SWEET2_11713
wait 0
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_8846
if 
  is_player_targetting_object $player1 {handle} $tag_target(42@,10i)
goto_if_false @SWEET2_8792
gosub @SWEET2_20816
goto @SWEET2_8799

:SWEET2_8792
gosub @SWEET2_20869

:SWEET2_8799
if 
  has_object_been_damaged $tag_target(42@,10i)
goto_if_false @SWEET2_8846
make_object_targettable $tag_target(42@,10i) {state} False
delete_object $tag_target(42@,10i)
36@ += 1

:SWEET2_8846
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_8996
if 
  38@ == 0
goto_if_false @SWEET2_8989
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_8982
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_8982
38@ = 1

:SWEET2_8989
goto @SWEET2_9125

:SWEET2_8996
if 
  84@ == 0
goto_if_false @SWEET2_9059
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9059
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_9059
if 
  38@ == 1
goto_if_false @SWEET2_9125
remove_blip 35@
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 10
print_help_forever 'HOOD2F'
print_now 'SWE2_I' {time} 10000 {flag} 1
38@ = 0

:SWEET2_9125
if 
  62@ == 0
goto_if_false @SWEET2_11557
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_11557
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 2
goto_if_false @SWEET2_9511
set_fixed_camera_position 2452.865 {y} -1977.859 {z} 13.739 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2451.9009 {y} -1978.1169 {z} 13.6752 {switchStyle} SwitchType.JumpCut
if 
  40@ == 0
goto_if_false @SWEET2_9511

:SWEET2_9265
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_9330
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9323
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_9323
goto @SWEET2_9265

:SWEET2_9330
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BD' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9381
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9381
wait 500
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_9409
break_object $tag_target[0] {intensity} 1

:SWEET2_9409
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_9474
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9467
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_9467
goto @SWEET2_9409

:SWEET2_9474
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9497
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_9497
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9843
40@ = 1

:SWEET2_9511
if 
  64@ == 3
goto_if_false @SWEET2_9852
set_fixed_camera_position 2452.979 {y} -1980.734 {z} 13.866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.0891 {y} -1980.282 {z} 13.8231 {switchStyle} SwitchType.JumpCut
if 
  40@ == 1
goto_if_false @SWEET2_9852

:SWEET2_9598
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_9663
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9656
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_9656
goto @SWEET2_9598

:SWEET2_9663
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BE' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9714
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9714
wait 500
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_9742
break_object $tag_target[1] {intensity} 1

:SWEET2_9742
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_9807
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9800
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_9800
goto @SWEET2_9742

:SWEET2_9807
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9838
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9838
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9844
40@ = 2

:SWEET2_9852
if 
  64@ == 4
goto_if_false @SWEET2_10248
set_fixed_camera_position 2453.303 {y} -1979.46 {z} 14.432 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.354 {y} -1979.243 {z} 14.2053 {switchStyle} SwitchType.JumpCut
if 
  84@ == 1
goto_if_false @SWEET2_9984
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9984
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 2

:SWEET2_9984
if 
  40@ == 2
goto_if_false @SWEET2_10248

:SWEET2_10002
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_10067
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10060
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10060
goto @SWEET2_10002

:SWEET2_10067
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BF' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10118
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10118
wait 500
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_10146
break_object $tag_target[2] {intensity} 1

:SWEET2_10146
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_10211
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10204
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10204
goto @SWEET2_10146

:SWEET2_10211
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10234
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_10234
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9839
40@ = 3

:SWEET2_10248
if 
  64@ == 5
goto_if_false @SWEET2_10581
set_fixed_camera_position 2449.363 {y} -1971.9139 {z} 13.768 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.4919 {y} -1972.896 {z} 13.6288 {switchStyle} SwitchType.JumpCut
if 
  40@ == 3
goto_if_false @SWEET2_10581

:SWEET2_10335
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_10400
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10393
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10393
goto @SWEET2_10335

:SWEET2_10400
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BG' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10451
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10451
wait 500
if 
  does_object_exist $tag_target[3]
goto_if_false @SWEET2_10479
break_object $tag_target[3] {intensity} 1

:SWEET2_10479
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_10544
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10537
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10537
goto @SWEET2_10479

:SWEET2_10544
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9873
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10574
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_10574
40@ = 4

:SWEET2_10581
if 
  64@ == 6
goto_if_false @SWEET2_11557
set_fixed_camera_position 2442.5029 {y} -1967.3361 {z} 14.1262 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2443.092 {y} -1968.1331 {z} 13.9918 {switchStyle} SwitchType.JumpCut
if 
  84@ == 2
goto_if_false @SWEET2_10713
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10713
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 3

:SWEET2_10713
if 
  40@ == 4
goto_if_false @SWEET2_10970

:SWEET2_10731
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_10796
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10789
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10789
goto @SWEET2_10731

:SWEET2_10796
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BB' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10847
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10847
wait 500
if 
  does_object_exist $tag_target[4]
goto_if_false @SWEET2_10875
break_object $tag_target[4] {intensity} 1

:SWEET2_10875
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_10940
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10933
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_10933
goto @SWEET2_10875

:SWEET2_10940
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10963
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_10963
40@ = 5

:SWEET2_10970
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_11035
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11028
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11028
goto @SWEET2_10970

:SWEET2_11035
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_ZZ' {time} 10000 {flag} 1

:SWEET2_11055
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_11120
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11113
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11113
goto @SWEET2_11055

:SWEET2_11120
print_now 'SWE2_I' {time} 10000 {flag} 1
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_11212
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_11212
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
print_help_forever 'HOOD2F'
36@ = 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_11268
make_object_targettable $tag_target[0] {state} False

:SWEET2_11268
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_11329
make_object_targettable $tag_target[1] {state} False

:SWEET2_11329
delete_object $tag_target[1]
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_11390
make_object_targettable $tag_target[2] {state} False

:SWEET2_11390
delete_object $tag_target[2]
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
if 
  does_object_exist $tag_target[3]
goto_if_false @SWEET2_11451
make_object_targettable $tag_target[3] {state} False

:SWEET2_11451
delete_object $tag_target[3]
$tag_target[3] = create_object #DYN_WINE_BIG {x} 92@ {y} 97@ {z} 102@
set_object_heading $tag_target[3] {heading} 90.0
make_object_targettable $tag_target[3] {state} True
if 
  does_object_exist $tag_target[4]
goto_if_false @SWEET2_11512
make_object_targettable $tag_target[4] {state} False

:SWEET2_11512
delete_object $tag_target[4]
$tag_target[4] = create_object #DYN_WINE_BIG {x} 93@ {y} 98@ {z} 103@
set_object_heading $tag_target[4] {heading} 90.0
make_object_targettable $tag_target[4] {state} True
62@ = 1

:SWEET2_11557
42@ += 1
if 
  42@ >= 5
goto_if_false @SWEET2_11589
42@ = 0

:SWEET2_11589
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11628
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11628
if 
  is_char_dead 63@
goto_if_false @SWEET2_11667
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11667
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_11706
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11706
goto @SWEET2_8713

:SWEET2_11713
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9816

:SWEET2_11720
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_11824
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11778
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11778
if 
  is_char_dead 63@
goto_if_false @SWEET2_11817
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11817
goto @SWEET2_11720

:SWEET2_11824
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DG' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_11918
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_11918
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_12022
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11976
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_11976
if 
  is_char_dead 63@
goto_if_false @SWEET2_12015
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_12015
goto @SWEET2_11918

:SWEET2_12022
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12050
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_12050
clear_wanted_level $player1
set_player_control $player1 {state} False
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12189
set_car_coordinates 83@ {x} 2446.49 {y} -1966.47 {z} 12.54
set_car_heading 83@ {heading} 101.85
set_fixed_camera_position 2447.2229 {y} -1971.385 {z} 14.5714 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2447.0701 {y} -1970.434 {z} 14.2998 {switchStyle} SwitchType.JumpCut

:SWEET2_12189
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12235
set_char_coordinates 63@ {x} 2452.6899 {y} -1980.218 {z} 12.5469
set_char_heading 63@ {heading} 44.7926

:SWEET2_12235
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_12281
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_12281
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_12324
set_char_coordinates $scplayer {x} 2446.1101 {y} -1974.53 {z} 12.54
goto @SWEET2_12344

:SWEET2_12324
warp_char_from_car_to_coord $scplayer {x} 2446.1101 {y} -1974.53 {z} 12.54

:SWEET2_12344
set_char_heading $scplayer {heading} 349.81
print_now 'SWE2_F' {time} 10000 {flag} 1
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12447
wait 3000
set_fixed_camera_position 2448.249 {y} -1968.608 {z} 13.7351 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2447.9189 {y} -1967.707 {z} 13.4528 {switchStyle} SwitchType.JumpCut
wait 2000

:SWEET2_12447
print_help_forever 'HOOD2C'
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
38@ = 0
62@ = 0

:SWEET2_12487
if 
  not is_car_dead 83@
goto_if_false @SWEET2_13007
wait 0
if 
  not locate_char_on_foot_3d $scplayer {x} 2451.95 {y} -1978.9301 {z} 12.55 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_12657
if 
  38@ == 0
goto_if_false @SWEET2_12650
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_12643
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_12643
38@ = 1

:SWEET2_12650
goto @SWEET2_12742

:SWEET2_12657
if 
  38@ == 1
goto_if_false @SWEET2_12742
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_12708
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_12708
print_help_forever 'HOOD2C'
print_now 'SWE2_F' {time} 10000 {flag} 1
38@ = 0

:SWEET2_12742
if 
  62@ == 0
goto_if_false @SWEET2_12883
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_12883
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12830
set_char_proofs 63@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 63@ {health} 600

:SWEET2_12830
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12861
set_car_proofs 83@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET2_12861
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
62@ = 1

:SWEET2_12883
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_12922
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_12922
if 
  is_char_dead 63@
goto_if_false @SWEET2_12961
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_12961
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_13000
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_13000
goto @SWEET2_12487

:SWEET2_13007
clear_help 
clear_wanted_level $player1
mark_model_as_no_longer_needed 549
wait 2000
clear_wanted_level $player1
do_fade 500 {direction} Fade.Out

:SWEET2_13036
if 
  get_fading_status 
goto_if_false @SWEET2_13060
wait 0
goto @SWEET2_13036

:SWEET2_13060
load_scene_in_direction 2450.5669 {y} -1975.641 {z} 12.5469 {heading} 288.0
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
request_animation "GANGS"

:SWEET2_13131
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET2_13162
wait 0
goto @SWEET2_13131

:SWEET2_13162
80@ = 0
81@ = 0
82@ = 0
39@ = 1
gosub @SWEET2_47
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_13240
set_char_coordinates $scplayer {x} 2450.5669 {y} -1975.641 {z} 12.5469
goto @SWEET2_13260

:SWEET2_13240
warp_char_from_car_to_coord $scplayer {x} 2450.5669 {y} -1975.641 {z} 12.5469

:SWEET2_13260
set_char_heading $scplayer {heading} 288.25
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_13402
set_char_coordinates $big_smoke {x} 2452.741 {y} -1976.45 {z} 12.5469
set_char_heading $big_smoke {heading} 345.3302
if 
  not is_char_dead 63@
goto_if_false @SWEET2_13402
set_char_health 63@ {health} 600
set_char_coordinates 63@ {x} 2452.8459 {y} -1975.1 {z} 12.5469
set_char_heading 63@ {heading} 160.25
task_turn_char_to_face_char $big_smoke {target} $scplayer
task_turn_char_to_face_char 63@ {target} $scplayer
clear_look_at 63@
task_look_at_char 63@ {target} $scplayer {time} 30000

:SWEET2_13402
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_13448
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_13448
clear_area 2453.0291 {y} -2001.059 {z} 12.554 {radius} 30.0 {clearParticles} True
clear_help 
clear_prints 
do_fade 500 {direction} Fade.In
set_fixed_camera_position 2450.1069 {y} -1977.553 {z} 14.0919 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.7771 {y} -1976.838 {z} 13.8915 {switchStyle} SwitchType.JumpCut
82@ = 0

:SWEET2_13541
if 
  80@ <> 1
goto_if_false @SWEET2_13796
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_13672
if 
  81@ == 2
goto_if_false @SWEET2_13672
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_13672
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = 1

:SWEET2_13672
if 
  is_char_dead 63@
goto_if_false @SWEET2_13711
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_13711
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_13750
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_13750
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_13789
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_13789
goto @SWEET2_13541

:SWEET2_13796
88@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 2452.646 {y} -2003.876 {z} 12.554 {radius} 50.0 {clearParticles} True
skip_cutscene_start_internal @SWEET2_17017
82@ = 0

:SWEET2_13855
if 
  80@ <> 2
goto_if_false @SWEET2_14067
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_13943
if 
  81@ == 2
goto_if_false @SWEET2_13943
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_13943
82@ = 1

:SWEET2_13943
if 
  is_char_dead 63@
goto_if_false @SWEET2_13982
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_13982
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14021
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14021
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14060
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14060
goto @SWEET2_13855

:SWEET2_14067
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14088
stop_char_facial_talk $big_smoke

:SWEET2_14088
82@ = 0

:SWEET2_14095
if 
  80@ <> 3
goto_if_false @SWEET2_14307
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14183
if 
  81@ == 2
goto_if_false @SWEET2_14183
if 
  not is_char_dead 63@
goto_if_false @SWEET2_14183
82@ = 1

:SWEET2_14183
if 
  is_char_dead 63@
goto_if_false @SWEET2_14222
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14222
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14261
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14261
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14300
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14300
goto @SWEET2_14095

:SWEET2_14307
82@ = 0

:SWEET2_14314
if 
  80@ <> 4
goto_if_false @SWEET2_14526
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14402
if 
  81@ == 2
goto_if_false @SWEET2_14402
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14402
82@ = 1

:SWEET2_14402
if 
  is_char_dead 63@
goto_if_false @SWEET2_14441
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14441
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14480
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14480
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14519
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14519
goto @SWEET2_14314

:SWEET2_14526
82@ = 0

:SWEET2_14533
if 
  80@ <> 5
goto_if_false @SWEET2_14745
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14621
if 
  81@ == 2
goto_if_false @SWEET2_14621
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14621
82@ = 1

:SWEET2_14621
if 
  is_char_dead 63@
goto_if_false @SWEET2_14660
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14660
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14699
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14699
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14738
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14738
goto @SWEET2_14533

:SWEET2_14745
task_go_straight_to_coord $scplayer {x} 2452.6421 {y} -1998.219 {z} 12.554 {speed} MoveState.Walk {time} 20000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14811
task_go_straight_to_coord $big_smoke {x} 2454.9509 {y} -1998.658 {z} 12.554 {speed} MoveState.Walk {time} 20000

:SWEET2_14811
82@ = 0

:SWEET2_14818
if 
  80@ <> 6
goto_if_false @SWEET2_15030
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14906
if 
  81@ == 2
goto_if_false @SWEET2_14906
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14906
82@ = 1

:SWEET2_14906
if 
  is_char_dead 63@
goto_if_false @SWEET2_14945
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14945
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14984
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_14984
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15023
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15023
goto @SWEET2_14818

:SWEET2_15030
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15083
task_go_straight_to_coord 63@ {x} 2453.321 {y} -1987.714 {z} 12.5469 {speed} MoveState.Walk {time} 20000
set_anim_group_for_char 63@ {animGroup} "GANG1"

:SWEET2_15083
set_char_coordinates $scplayer {x} 2452.0791 {y} -1978.844 {z} 12.5469
set_char_heading $scplayer {heading} 180.0
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 2452.6421 {y} -1998.219 {z} 12.554 {speed} MoveState.Walk {time} 20000
82@ = 0

:SWEET2_15150
if 
  80@ <> 7
goto_if_false @SWEET2_15362
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15238
if 
  81@ == 2
goto_if_false @SWEET2_15238
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15238
82@ = 1

:SWEET2_15238
if 
  is_char_dead 63@
goto_if_false @SWEET2_15277
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15277
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15316
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15316
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15355
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15355
goto @SWEET2_15150

:SWEET2_15362
set_fixed_camera_position 2453.5879 {y} -1992.36 {z} 14.707 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.5381 {y} -1991.412 {z} 14.3914 {switchStyle} SwitchType.JumpCut
82@ = 0

:SWEET2_15420
if 
  80@ <> 8
goto_if_false @SWEET2_15632
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15508
if 
  81@ == 2
goto_if_false @SWEET2_15508
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15508
82@ = 1

:SWEET2_15508
if 
  is_char_dead 63@
goto_if_false @SWEET2_15547
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15547
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15586
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15586
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15625
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15625
goto @SWEET2_15420

:SWEET2_15632
82@ = 0

:SWEET2_15639
if 
  80@ <> 9
goto_if_false @SWEET2_15851
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15727
if 
  81@ == 2
goto_if_false @SWEET2_15727
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15727
82@ = 1

:SWEET2_15727
if 
  is_char_dead 63@
goto_if_false @SWEET2_15766
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15766
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15805
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15805
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15844
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_15844
goto @SWEET2_15639

:SWEET2_15851
82@ = 0

:SWEET2_15858
if 
  80@ <> 10
goto_if_false @SWEET2_16113
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15989
if 
  81@ == 2
goto_if_false @SWEET2_15989
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15989
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = 1

:SWEET2_15989
if 
  is_char_dead 63@
goto_if_false @SWEET2_16028
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16028
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16067
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16067
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16106
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16106
goto @SWEET2_15858

:SWEET2_16113
if 
  80@ <> 11
goto_if_false @SWEET2_16266
wait 0
gosub @SWEET2_20914
if 
  is_char_dead 63@
goto_if_false @SWEET2_16181
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16181
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16220
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16220
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16259
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16259
goto @SWEET2_16113

:SWEET2_16266
if 
  not is_char_dead 63@
goto_if_false @SWEET2_16287
clear_char_tasks 63@

:SWEET2_16287
clear_area 2453.0291 {y} -2001.059 {z} 12.554 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2453.5691 {y} -1992.405 {z} 16.0824 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.603 {y} -1993.318 {z} 15.6741 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_16430
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_16430
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $big_smoke_car {time} 50000 {seat} SeatId.BikeRear
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} $big_smoke_car {time} 50000

:SWEET2_16430
if 
  80@ <> 12
goto_if_false @SWEET2_16583
wait 0
gosub @SWEET2_20914
if 
  is_char_dead 63@
goto_if_false @SWEET2_16498
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16498
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16537
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16537
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16576
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16576
goto @SWEET2_16430

:SWEET2_16583
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_16731
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_16731

:SWEET2_16615
if or
  not is_char_sitting_in_car $scplayer {vehicle} $big_smoke_car
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
goto_if_false @SWEET2_16731
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16685
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16685
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16724
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16724
goto @SWEET2_16615

:SWEET2_16731
set_fixed_camera_position 2456.7581 {y} -1999.2531 {z} 15.2969 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2456.231 {y} -2000.027 {z} 14.947 {switchStyle} SwitchType.JumpCut

:SWEET2_16782
if 
  80@ <> 13
goto_if_false @SWEET2_16896
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16843
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16843
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16882
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16882
gosub @SWEET2_20914
goto @SWEET2_16782

:SWEET2_16896
if 
  80@ <> 14
goto_if_false @SWEET2_17010
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16957
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16957
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16996
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_16996
gosub @SWEET2_20914
goto @SWEET2_16896

:SWEET2_17010
88@ = 1

:SWEET2_17017
skip_cutscene_end 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
if 
  88@ == 0
goto_if_false @SWEET2_17199
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SWEET2_17068
if 
  get_fading_status 
goto_if_false @SWEET2_17092
wait 0
goto @SWEET2_17068

:SWEET2_17092
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
camera_reset_new_scriptables 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_17188
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_17188
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_17162
warp_char_into_car $scplayer {vehicle} $big_smoke_car

:SWEET2_17162
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SWEET2_17188
warp_char_into_car_as_passenger $big_smoke {handle} $big_smoke_car {seat} SeatId.BikeRear

:SWEET2_17188
wait 100
do_fade 500 {direction} Fade.In

:SWEET2_17199
delete_char 63@
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_script_limit_to_gang_size 99
41@ += 60
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_17258
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 41@

:SWEET2_17258
print_now 'SWE2_D' {time} 10000 {flag} 1
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_17315
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True

:SWEET2_17315
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_17351
46@ = add_blip_for_char $big_smoke
set_blip_as_friendly 46@ {state} True
remove_blip 46@

:SWEET2_17351
35@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
remove_blip 35@
$blob_flag = 1
47@ = 0
45@ = 0
38@ = 0
61@ = 0
53@ = 0
TIMERA = 0
TIMERB = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 2
gosub @SWEET2_47
gosub @SWEET2_22589
56@ = 0
release_weather 
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
remove_animation "FAT"
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 549
unload_special_character 1

:SWEET2_17536
if or
  not locate_car_3d $big_smoke_car {x} 2066.4651 {y} -1695.444 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
  not is_vehicle_on_all_wheels $big_smoke_car
goto_if_false @SWEET2_18306
wait 0
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_17811
if 
  TIMERA > 5000
goto_if_false @SWEET2_17680
if 
  53@ == 1
goto_if_false @SWEET2_17680
print_help 'HELP53'
TIMERA = 0
53@ = 2

:SWEET2_17680
if 
  TIMERA > 5000
goto_if_false @SWEET2_17742
if 
  53@ == 2
goto_if_false @SWEET2_17742
print_help 'HOOD2D'
TIMERA = 0
53@ = 3

:SWEET2_17742
if 
  TIMERA > 5000
goto_if_false @SWEET2_17804
if 
  53@ == 3
goto_if_false @SWEET2_17804
print_help 'HOOD2E'
TIMERA = 0
53@ = 4

:SWEET2_17804
goto @SWEET2_17900

:SWEET2_17811
if 
  TIMERA > 2000
goto_if_false @SWEET2_17900
if 
  53@ == 0
goto_if_false @SWEET2_17900
print_help 'EMMET_G'
remove_blip $emmets_shop_blip
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
TIMERA = 0
53@ = 1

:SWEET2_17900
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18198
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_18168
if 
  is_char_in_car $scplayer {vehicle} $big_smoke_car
goto_if_false @SWEET2_18069
if 
  45@ == 0
goto_if_false @SWEET2_18029
remove_blip 44@
remove_blip 35@
print_now 'SWE2_D' {time} 6000 {flag} 1
35@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
$blob_flag = 1
45@ = 1

:SWEET2_18029
if 
  TIMERB > 6000
goto_if_false @SWEET2_18062
gosub @SWEET2_20914
56@ = 1

:SWEET2_18062
goto @SWEET2_18161

:SWEET2_18069
if 
  45@ == 1
goto_if_false @SWEET2_18161
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
gosub @SWEET2_21159
print_now 'SWE2_L' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
45@ = 0

:SWEET2_18161
goto @SWEET2_18191

:SWEET2_18168
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18191
goto @SWEET2_18221

:SWEET2_18198
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18221
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_18260
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18260
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18299
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18299
goto @SWEET2_17536

:SWEET2_18306
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
set_fixed_camera_position 2086.01 {y} -1699.698 {z} 17.7495 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2085.0601 {y} -1699.8311 {z} 17.4682 {switchStyle} SwitchType.JumpCut
request_model 330
wait 1000
do_fade 1000 {direction} Fade.Out

:SWEET2_18392
if 
  get_fading_status 
goto_if_false @SWEET2_18416
wait 0
goto @SWEET2_18392

:SWEET2_18416
if 
  not has_model_loaded 330
goto_if_false @SWEET2_18443
wait 0
goto @SWEET2_18416

:SWEET2_18443
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18553
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SWEET2_18502
set_char_coordinates $big_smoke {x} 2071.1689 {y} -1703.0601 {z} 12.5538
goto @SWEET2_18522

:SWEET2_18502
warp_char_from_car_to_coord $big_smoke {x} 2071.1689 {y} -1703.0601 {z} 12.5538

:SWEET2_18522
set_char_heading $big_smoke {heading} 162.3527
clear_char_tasks $big_smoke
clear_look_at $big_smoke
task_look_at_char $big_smoke {target} $scplayer {time} 4000

:SWEET2_18553
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_18596
set_char_coordinates $scplayer {x} 2071.554 {y} -1704.375 {z} 12.5538
goto @SWEET2_18616

:SWEET2_18596
warp_char_from_car_to_coord $scplayer {x} 2071.554 {y} -1704.375 {z} 12.5538

:SWEET2_18616
set_char_heading $scplayer {heading} 12.5041
clear_char_tasks $scplayer
set_fixed_camera_position 2069.6069 {y} -1704.63 {z} 14.2313 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2070.4751 {y} -1704.174 {z} 14.0353 {switchStyle} SwitchType.JumpCut
wait 1000
do_fade 1000 {direction} Fade.In
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9865
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9870
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200

:SWEET2_18715
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_18780
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18773
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18773
goto @SWEET2_18715

:SWEET2_18780
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_JA' {time} 10000 {flag} 1
gosub @SWEET2_21636

:SWEET2_18807
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_18872
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18865
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18865
goto @SWEET2_18807

:SWEET2_18872
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18893
clear_look_at $big_smoke

:SWEET2_18893
gosub @SWEET2_21990

:SWEET2_18900
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_18965
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18958
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20129

:SWEET2_18958
goto @SWEET2_18900

:SWEET2_18965
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_JB' {time} 10000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_19041
task_go_straight_to_coord $big_smoke {x} 2065.1001 {y} -1703.4 {z} 13.15 {speed} MoveState.Walk {time} 4000

:SWEET2_19041
wait 1000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_19087
task_go_straight_to_coord $scplayer {x} 2073.2871 {y} -1702.104 {z} 12.5469 {speed} MoveState.Walk {time} 4000

:SWEET2_19087
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_prints 
wait 1000
set_fixed_camera_position 2072.7229 {y} -1699.7371 {z} 14.1283 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2072.9351 {y} -1700.67 {z} 13.8382 {switchStyle} SwitchType.JumpCut
delete_char $big_smoke

:SWEET2_19162
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SWEET2_19188
wait 0
goto @SWEET2_19162

:SWEET2_19188
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:SWEET2_19199
if 
  not has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SWEET2_19251
wait 0
if 
  TIMERA > 1500
goto_if_false @SWEET2_19244
goto @SWEET2_19251

:SWEET2_19244
goto @SWEET2_19199

:SWEET2_19251
80@ = 0
81@ = 0
82@ = 0
39@ = 3
gosub @SWEET2_47
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True
wait 1800
85@ = 0
65@ = 0
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 549
unload_special_character 10
unload_special_character 1

:SWEET2_19372
if 
  not locate_char_any_means_3d $scplayer {x} 2246.9719 {y} -1660.7791 {z} 14.2856 {xRadius} 3.5 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET2_19620
wait 0
if 
  85@ == 0
goto_if_false @SWEET2_19532
gosub @SWEET2_20914
if 
  80@ > 0
goto_if_false @SWEET2_19532
if or
  80@ == 10
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SWEET2_19532
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
print_now 'COLORS' {time} 6000 {flag} 1
85@ = 1

:SWEET2_19532
if 
  65@ == 0
goto_if_false @SWEET2_19613
if 
  80@ > 0
goto_if_false @SWEET2_19613
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
remove_blip 35@
35@ = add_blip_for_coord 2246.9719 {y} -1660.7791 {z} 14.2856
65@ = 1

:SWEET2_19613
goto @SWEET2_19372

:SWEET2_19620
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2253.0991 {y} -1644.225 {z} 16.6501 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2252.7739 {y} -1645.161 {z} 16.5203 {switchStyle} SwitchType.JumpCut
print_now 'S2HELP1' {time} 6000 {flag} 1
switch_entry_exit 'CSCHP' {state} True
switch_entry_exit 'CSSPRT' {state} True
switch_entry_exit 'LACS1' {state} True
wait 2500
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
87@ = 0

:SWEET2_19762
if 
  87@ <> 2
goto_if_false @SWEET2_20109
wait 0
86@ = get_area_visible 
if 
  86@ == 15
goto_if_false @SWEET2_20001
if 
  87@ == 0
goto_if_false @SWEET2_20001
if 
  locate_char_on_foot_3d $scplayer {x} 208.0279 {y} -107.9499 {z} 1004.133 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET2_20001
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
wait 1500
set_player_control $player1 {state} False
set_fixed_camera_position 213.0277 {y} -102.9124 {z} 1006.377 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 213.7582 {y} -102.2797 {z} 1006.119 {switchStyle} SwitchType.JumpCut
print_now 'S2HELP2' {time} 6000 {flag} 1
wait 4000
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
print_help 'HELWARD'
87@ = 1

:SWEET2_20001
if 
  87@ == 1
goto_if_false @SWEET2_20102
if 
  86@ == 0
goto_if_false @SWEET2_20102
if 
  locate_char_on_foot_3d $scplayer {x} 2244.48 {y} -1664.0601 {z} 14.469 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET2_20102
remove_blip 35@
wait 2000
87@ = 2

:SWEET2_20102
goto @SWEET2_19762

:SWEET2_20109
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
goto @SWEET2_20218

:SWEET2_20129
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_20172
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 5

:SWEET2_20172
remove_blip $emmets_shop_blip
switch_entry_exit 'CSCHP' {state} False
switch_entry_exit 'CSSPRT' {state} False
switch_entry_exit 'LACS1' {state} False
return 

:SWEET2_20218
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_2'
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 4
start_new_script @SMOKE 
remove_blip $smoke_contact_blip
$smoke_contact_blip = add_sprite_blip_for_contact_point $smokeX {y} $smokeY {z} $smokeZ {sprite} $smoke_blip_icon
remove_blip $clothes_shop1
$clothes_shop1 = add_short_range_sprite_blip_for_coord 2243.8069 {y} -1668.567 {z} 20.0313 {sprite} RadarSprite.Tshirt
remove_blip $emmets_shop_blip
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
$emmets_gun = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 16 {x} 2447.7729 {y} -1975.663 {z} 13.0
if 
  $added_all_food_blips_before == 0
goto_if_false @SWEET2_20631
switch_entry_exit 'CSCHP' {state} True
switch_entry_exit 'CSSPRT' {state} True
switch_entry_exit 'LACS1' {state} True
$2637 = add_short_range_sprite_blip_for_coord -2376.3999 {y} 909.2 {z} 45.4 {sprite} RadarSprite.Tshirt
$2638 = add_short_range_sprite_blip_for_coord 1654.0 {y} 1733.4 {z} 11.0 {sprite} RadarSprite.Tshirt
$2639 = add_short_range_sprite_blip_for_coord 2105.7 {y} 2257.3999 {z} 11.0 {sprite} RadarSprite.Tshirt
$2645 = add_short_range_sprite_blip_for_coord -2371.1001 {y} 910.2 {z} 47.2 {sprite} RadarSprite.Tshirt
$2640 = add_short_range_sprite_blip_for_coord 501.7 {y} -1358.5 {z} 16.4 {sprite} RadarSprite.Tshirt
$2641 = add_short_range_sprite_blip_for_coord 2818.6001 {y} 2401.5 {z} 11.0 {sprite} RadarSprite.Tshirt
$2635 = add_short_range_sprite_blip_for_coord 2112.8 {y} -1214.7 {z} 23.9 {sprite} RadarSprite.Tshirt
$2636 = add_short_range_sprite_blip_for_coord 2772.0 {y} 2447.6001 {z} 11.0 {sprite} RadarSprite.Tshirt
$2647 = add_short_range_sprite_blip_for_coord -2489.0 {y} -26.9 {z} 32.6 {sprite} RadarSprite.Tshirt
$added_all_food_blips_before = 1

:SWEET2_20631
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
return 

:SWEET2_20646
$onmission = 0
$timer_mobile_start = get_game_timer 
remove_char_elegantly $big_smoke
remove_char_elegantly 63@
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
remove_animation "FAT"
switch_car_generator $gen_car6 {amount} 101
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 549
gosub @SWEET2_22589
unload_special_character 10
unload_special_character 1
remove_blip 35@
remove_blip 44@
set_script_limit_to_gang_size 99
release_weather 
if 
  not is_car_dead 83@
goto_if_false @SWEET2_20796
set_car_proofs 83@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET2_20796
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_help 
mission_has_finished 
return 

:SWEET2_20816
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_20867
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_20867
task_look_at_object $big_smoke {object} $tag_target(42@,10i) {time} 5000

:SWEET2_20867
return 

:SWEET2_20869
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_20910
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_20910
clear_look_at $big_smoke

:SWEET2_20910
return 
return 

:SWEET2_20914
if or
  81@ == 0
  81@ == 1
goto_if_false @SWEET2_20984
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 80@
goto_if_false @SWEET2_20984
if 
  TIMERA > 200
goto_if_false @SWEET2_20984
gosub @SWEET2_21056

:SWEET2_20984
if 
  81@ == 2
goto_if_false @SWEET2_21054
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_21054
gosub @SWEET2_21990
81@ = 0
80@ += 1
82@ = 0
clear_prints 
TIMERA = 0

:SWEET2_21054
return 

:SWEET2_21056
if 
  81@ == 0
goto_if_false @SWEET2_21092
load_mission_audio MissionAudioSlot.Slot1 {audioId} 66@(80@,14i)
81@ = 1

:SWEET2_21092
if 
  81@ == 1
goto_if_false @SWEET2_21157
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_21157
print_now $6608(80@,14s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET2_21636
81@ = 2

:SWEET2_21157
return 

:SWEET2_21159
clear_mission_audio MissionAudioSlot.Slot2
if 
  57@ == 0
goto_if_false @SWEET2_21188
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25800

:SWEET2_21188
if 
  57@ == 1
goto_if_false @SWEET2_21213
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25801

:SWEET2_21213
if 
  57@ == 2
goto_if_false @SWEET2_21238
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25802

:SWEET2_21238
if 
  57@ == 3
goto_if_false @SWEET2_21263
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25803

:SWEET2_21263
if 
  57@ == 4
goto_if_false @SWEET2_21288
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25804

:SWEET2_21288
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET2_21304
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_21366
wait 0
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_21341
return 

:SWEET2_21341
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_21359
return 

:SWEET2_21359
goto @SWEET2_21304

:SWEET2_21366
play_mission_audio MissionAudioSlot.Slot2
if 
  57@ == 0
goto_if_false @SWEET2_21404
print_now 'SMOX_AA' {time} 3000 {flag} 1

:SWEET2_21404
if 
  57@ == 1
goto_if_false @SWEET2_21438
print_now 'SMOX_AB' {time} 3000 {flag} 1

:SWEET2_21438
if 
  57@ == 2
goto_if_false @SWEET2_21472
print_now 'SMOX_AC' {time} 3000 {flag} 1

:SWEET2_21472
if 
  57@ == 3
goto_if_false @SWEET2_21506
print_now 'SMOX_AD' {time} 3000 {flag} 1

:SWEET2_21506
if 
  57@ == 4
goto_if_false @SWEET2_21540
print_now 'SMOX_AE' {time} 3000 {flag} 1

:SWEET2_21540
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_21602
wait 0
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_21577
return 

:SWEET2_21577
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_21595
return 

:SWEET2_21595
goto @SWEET2_21540

:SWEET2_21602
57@ += 1
if 
  57@ > 4
goto_if_false @SWEET2_21634
57@ = 0

:SWEET2_21634
return 

:SWEET2_21636
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9831
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9866
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9832
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9833
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9867
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9868
goto_if_false @SWEET2_21736
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET2_21736
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14524
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14525
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14526
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14527
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9870
goto_if_false @SWEET2_21836
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET2_21836
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9825
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9826
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9827
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9828
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9829
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9830
goto_if_false @SWEET2_21957
if 
  not is_char_dead 63@
goto_if_false @SWEET2_21950
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000

:SWEET2_21950
goto @SWEET2_21988

:SWEET2_21957
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_21988
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_21988
return 

:SWEET2_21990
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9831
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9866
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9832
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9833
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9867
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9868
goto_if_false @SWEET2_22087
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET2_22087
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14524
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14525
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14526
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14527
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9870
goto_if_false @SWEET2_22184
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET2_22184
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9825
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9826
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9827
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9828
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9829
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9830
goto_if_false @SWEET2_22302
if 
  not is_char_dead 63@
goto_if_false @SWEET2_22295
shut_char_up_for_scripted_speech 63@ {state} False
stop_char_facial_talk 63@

:SWEET2_22295
goto @SWEET2_22330

:SWEET2_22302
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_22330
shut_char_up_for_scripted_speech $big_smoke {state} False
stop_char_facial_talk $big_smoke

:SWEET2_22330
return 

:SWEET2_22332
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 0
return 

:SWEET2_22589
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 30
return 

//-------------Mission 17---------------
// Originally: Drive-By

:SWEET4
script_name 'SWEET4'
gosub @SWEET4_4512
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET4_38
gosub @SWEET4_23645

:SWEET4_38
gosub @SWEET4_23765
terminate_this_script 

:SWEET4_47
request_model 492
request_model 372
request_model 346
load_special_character 10 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'RYDER2'
load_special_character 3 {modelName} 'SWEET'
load_all_models_now 

:SWEET4_103
if or
  not has_model_loaded 492
  not has_model_loaded 372
  not has_model_loaded 346
  not has_special_character_loaded 10
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @SWEET4_152
wait 0
goto @SWEET4_103

:SWEET4_152
return 

:SWEET4_154
397@ = 2510.76
398@ = -1665.8199
399@ = 12.3835
400@ = 213.1638
clear_area 397@ {y} 398@ {z} 399@ {radius} 1.0 {clearParticles} True
394@ = create_char PedType.CivMale {modelId} 299 {x} 397@ {y} 398@ {z} 399@
set_char_get_out_upside_down_car 394@ {state} False
give_weapon_to_char 394@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
set_char_heading 394@ {heading} 400@
set_char_accuracy 394@ {accuracy} 90
set_anim_group_for_char 394@ {animGroup} "FATMAN"
set_char_proofs 394@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 

:SWEET4_300
404@ = 2509.3899
405@ = -1672.0699
406@ = 12.3835
407@ = 59.592
clear_area 404@ {y} 405@ {z} 406@ {radius} 1.0 {clearParticles} True
401@ = create_char PedType.CivMale {modelId} 291 {x} 404@ {y} 405@ {z} 406@
set_char_get_out_upside_down_car 401@ {state} False
give_weapon_to_char 401@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_current_char_weapon 401@ {weaponType} WeaponType.Tec9
set_char_heading 401@ {heading} 407@
set_char_accuracy 401@ {accuracy} 90
set_anim_group_for_char 401@ {animGroup} "GANG1"
set_char_proofs 401@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 
mark_char_as_no_longer_needed 401@
return 

:SWEET4_452
411@ = 2514.29
412@ = -1670.46
413@ = 12.3835
414@ = 41.1276
clear_area 411@ {y} 412@ {z} 413@ {radius} 1.0 {clearParticles} True
408@ = create_char PedType.CivMale {modelId} 292 {x} 411@ {y} 412@ {z} 413@
set_char_get_out_upside_down_car 408@ {state} False
give_weapon_to_char 408@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
set_char_heading 408@ {heading} 414@
set_char_accuracy 408@ {accuracy} 90
set_anim_group_for_char 408@ {animGroup} "GANG2"
set_char_proofs 408@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 

:SWEET4_597
request_model 102
request_model 103
request_model 346
request_model 412
request_model 365
load_all_models_now 

:SWEET4_622
if or
  not has_model_loaded 102
  not has_model_loaded 103
  not has_model_loaded 346
  not has_model_loaded 412
  not has_model_loaded 365
goto_if_false @SWEET4_667
wait 0
goto @SWEET4_622

:SWEET4_667
request_animation "GANGS"
request_animation "GHANDS"
request_animation "GHETTO_DB"

:SWEET4_699
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "GHANDS"
  not has_animation_loaded "GHETTO_DB"
goto_if_false @SWEET4_753
wait 0
goto @SWEET4_699

:SWEET4_753
42@ = 1
return 
$6657 = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21
195@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
326@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
395@ = add_blip_for_char 394@
409@ = add_blip_for_char 408@
402@ = add_blip_for_char 401@

:SWEET4_842
527@ = 2077.1799
531@ = -1362.05
535@ = 23.65
539@ = 180.0
451@ = 2079.4199
469@ = -1364.08
487@ = 23.04
505@ = 314.1323
clear_area 527@ {y} 531@ {z} 535@ {radius} 0.5 {clearParticles} True
523@ = create_car 412 {x} 527@ {y} 531@ {z} 535@
415@ = create_char_inside_car 523@ {pedType} PedType.Gang1 {modelId} 102
set_car_heading 523@ {heading} 539@
suppress_car_model 412
open_car_door 523@ {door} CarDoor.LeftFrontDoor
give_weapon_to_char 415@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_char_accuracy 415@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1033
433@ = add_blip_for_char 415@

:SWEET4_1033
452@ = 2075.95
470@ = -1365.74
488@ = 24.02
506@ = 315.85
clear_area 452@ {y} 470@ {z} 488@ {radius} 0.5 {clearParticles} True
416@ = create_char PedType.Gang1 {modelId} 103 {x} 452@ {y} 470@ {z} 488@
give_weapon_to_char 416@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 416@ {heading} 506@
set_char_accuracy 416@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1161
434@ = add_blip_for_char 416@

:SWEET4_1161
453@ = 2079.8701
471@ = -1361.88
489@ = 24.02
507@ = 54.15
clear_area 453@ {y} 471@ {z} 489@ {radius} 0.5 {clearParticles} True
417@ = create_char PedType.Gang1 {modelId} 102 {x} 453@ {y} 471@ {z} 489@
give_weapon_to_char 417@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 417@ {heading} 507@
set_char_accuracy 417@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1289
435@ = add_blip_for_char 417@

:SWEET4_1289
454@ = 2079.3401
472@ = -1360.02
490@ = 24.02
508@ = 214.36
clear_area 454@ {y} 472@ {z} 490@ {radius} 0.5 {clearParticles} True
418@ = create_char PedType.Gang1 {modelId} 102 {x} 454@ {y} 472@ {z} 490@
give_weapon_to_char 418@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 418@ {heading} 508@
set_char_accuracy 418@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1417
436@ = add_blip_for_char 418@

:SWEET4_1417
return 

:SWEET4_1419
528@ = 2101.5701
532@ = -1287.65
536@ = 24.17
540@ = 5.0
455@ = 2101.5701
473@ = -1287.65
491@ = 24.17
509@ = 5.0
clear_area 455@ {y} 473@ {z} 491@ {radius} 0.5 {clearParticles} True
524@ = create_car 412 {x} 528@ {y} 532@ {z} 536@
419@ = create_char_inside_car 524@ {pedType} PedType.Gang1 {modelId} 102
set_car_heading 524@ {heading} 540@
pop_car_boot 524@
give_weapon_to_char 419@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_char_accuracy 419@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1603
437@ = add_blip_for_char 419@

:SWEET4_1603
456@ = 2101.5801
474@ = -1291.78
492@ = 24.02
510@ = 182.8706
clear_area 456@ {y} 474@ {z} 492@ {radius} 0.5 {clearParticles} True
420@ = create_char PedType.Gang1 {modelId} 103 {x} 456@ {y} 474@ {z} 492@
give_weapon_to_char 420@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 420@ {heading} 510@
set_char_accuracy 420@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1731
438@ = add_blip_for_char 420@

:SWEET4_1731
457@ = 2099.3
475@ = -1291.12
493@ = 24.02
511@ = 105.53
clear_area 457@ {y} 475@ {z} 493@ {radius} 0.5 {clearParticles} True
421@ = create_char PedType.Gang1 {modelId} 102 {x} 457@ {y} 475@ {z} 493@
give_weapon_to_char 421@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 421@ {heading} 511@
set_char_accuracy 421@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1859
439@ = add_blip_for_char 421@

:SWEET4_1859
458@ = 2093.8401
476@ = -1290.0699
494@ = 23.15
512@ = 58.035
clear_area 458@ {y} 476@ {z} 494@ {radius} 0.5 {clearParticles} True
422@ = create_char PedType.Gang1 {modelId} 103 {x} 458@ {y} 476@ {z} 494@
give_weapon_to_char 422@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 422@ {heading} 512@
set_char_accuracy 422@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1987
440@ = add_blip_for_char 422@

:SWEET4_1987
return 

:SWEET4_1989
459@ = 2161.0701
477@ = -1265.92
495@ = 23.02
513@ = 257.59
clear_area 459@ {y} 477@ {z} 495@ {radius} 0.5 {clearParticles} True
423@ = create_char PedType.Gang1 {modelId} 102 {x} 459@ {y} 477@ {z} 495@
give_weapon_to_char 423@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_char_heading 423@ {heading} 513@
set_char_accuracy 423@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2117
441@ = add_blip_for_char 423@

:SWEET4_2117
460@ = 2162.1799
478@ = -1264.6899
496@ = 23.03
514@ = 238.46
clear_area 460@ {y} 478@ {z} 496@ {radius} 0.5 {clearParticles} True
424@ = create_char PedType.Gang1 {modelId} 102 {x} 460@ {y} 478@ {z} 496@
give_weapon_to_char 424@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 424@ {heading} 514@
set_char_accuracy 424@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2245
442@ = add_blip_for_char 424@

:SWEET4_2245
461@ = 2162.97
479@ = -1261.92
497@ = 23.02
515@ = 45.33
clear_area 461@ {y} 479@ {z} 497@ {radius} 0.5 {clearParticles} True
425@ = create_char PedType.Gang1 {modelId} 103 {x} 461@ {y} 479@ {z} 497@
give_weapon_to_char 425@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 425@ {heading} 515@
set_char_accuracy 425@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2373
443@ = add_blip_for_char 425@

:SWEET4_2373
462@ = 2160.1201
480@ = -1262.98
498@ = 23.03
516@ = 18.46
clear_area 462@ {y} 480@ {z} 498@ {radius} 0.5 {clearParticles} True
426@ = create_char PedType.Gang1 {modelId} 103 {x} 462@ {y} 480@ {z} 498@
give_weapon_to_char 426@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 426@ {heading} 516@
set_char_accuracy 426@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2501
444@ = add_blip_for_char 426@

:SWEET4_2501
return 

:SWEET4_2503
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
clear_area 463@ {y} 481@ {z} 499@ {radius} 0.5 {clearParticles} True
427@ = create_char PedType.Gang1 {modelId} 102 {x} 463@ {y} 481@ {z} 499@
give_weapon_to_char 427@ {weaponType} WeaponType.Tec9 {ammo} $sw4_hood_acc
set_char_heading 427@ {heading} 517@
set_char_accuracy 427@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2631
445@ = add_blip_for_char 427@

:SWEET4_2631
464@ = 1981.3
482@ = -1233.9399
500@ = 20.04
518@ = 254.99
clear_area 464@ {y} 482@ {z} 500@ {radius} 0.5 {clearParticles} True
428@ = create_char PedType.Gang1 {modelId} 103 {x} 464@ {y} 482@ {z} 500@
give_weapon_to_char 428@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 428@ {heading} 518@
set_char_accuracy 428@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2759
446@ = add_blip_for_char 428@

:SWEET4_2759
465@ = 1986.67
483@ = -1239.76
501@ = 19.17
519@ = 98.28
clear_area 465@ {y} 483@ {z} 501@ {radius} 0.5 {clearParticles} True
429@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
give_weapon_to_char 429@ {weaponType} WeaponType.SprayCan {ammo} $sw4_hood_acc
task_stay_in_same_place 429@ {state} True
set_char_heading 429@ {heading} 519@
set_char_accuracy 429@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2894
447@ = add_blip_for_char 429@

:SWEET4_2894
466@ = 1986.54
484@ = -1233.03
502@ = 20.07
520@ = 143.42
clear_area 466@ {y} 484@ {z} 502@ {radius} 0.5 {clearParticles} True
430@ = create_char PedType.Gang1 {modelId} 103 {x} 466@ {y} 484@ {z} 502@
give_weapon_to_char 430@ {weaponType} WeaponType.Pistol {ammo} $sw4_hood_acc
set_char_heading 430@ {heading} 520@
set_char_accuracy 430@ {accuracy} $sw4_stage
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_3022
448@ = add_blip_for_char 430@

:SWEET4_3022
return 

:SWEET4_3024
mark_char_as_no_longer_needed 415@
mark_char_as_no_longer_needed 416@
mark_char_as_no_longer_needed 417@
mark_char_as_no_longer_needed 418@
mark_char_as_no_longer_needed 419@
mark_char_as_no_longer_needed 420@
mark_char_as_no_longer_needed 421@
mark_char_as_no_longer_needed 422@
mark_char_as_no_longer_needed 423@
mark_char_as_no_longer_needed 424@
mark_char_as_no_longer_needed 425@
mark_char_as_no_longer_needed 426@
mark_char_as_no_longer_needed 427@
mark_char_as_no_longer_needed 428@
mark_char_as_no_longer_needed 429@
mark_char_as_no_longer_needed 430@
return 

:SWEET4_3106
545@ = 2508.1599
546@ = -1666.47
547@ = 13.0
548@ = 16.0
switch_car_generator $gen_car6 {amount} 0
custom_plate_for_next_car 492 {text} "GROVE4L_"
clear_area 545@ {y} 546@ {z} 547@ {radius} 6.0 {clearParticles} True
543@ = create_car 492 {x} 545@ {y} 546@ {z} 547@
change_car_colour 543@ {color1} 59 {color2} 34
set_car_heading 543@ {heading} 548@
544@ = add_blip_for_car 543@
set_blip_as_friendly 544@ {state} True
set_can_burst_car_tyres 543@ {state} False
set_car_health 543@ {health} 1450
alter_wanted_level $player1 {wantedLevel} 0
return 

:SWEET4_3259
if 
  not is_car_dead 543@
goto_if_false @SWEET4_3296
if 
  not is_car_on_screen 543@
goto_if_false @SWEET4_3296
delete_car 543@

:SWEET4_3296
mark_model_as_no_longer_needed 492
return 

:SWEET4_3303
return 

:SWEET4_3305
return 

:SWEET4_3307
if and
  not is_char_dead 423@
  not is_char_dead 424@
  not is_char_dead 425@
  not is_char_dead 426@
goto_if_false @SWEET4_3377
192@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 192@ {handle} 423@
set_group_member 192@ {handle} 424@
set_group_member 192@ {handle} 425@
set_group_member 192@ {handle} 426@

:SWEET4_3377
return 

:SWEET4_3379
if and
  not is_char_dead 427@
  not is_char_dead 428@
  not is_char_dead 429@
  not is_char_dead 430@
goto_if_false @SWEET4_3449
193@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 193@ {handle} 427@
set_group_member 193@ {handle} 428@
set_group_member 193@ {handle} 429@
set_group_member 193@ {handle} 430@

:SWEET4_3449
return 

:SWEET4_3451
if and
  not is_car_dead 523@
  not is_car_dead 543@
goto_if_false @SWEET4_3502
98@ = open_sequence_task 
task_leave_car -1 {vehicle} 523@
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 98@

:SWEET4_3502
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_3580
99@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2075.1499 {y} -1363.85 {z} 23.85 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 5.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 99@

:SWEET4_3580
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3636
100@ = open_sequence_task 
task_dive_and_get_up -1 {directionX} 1.0 {directionY} 1.0 {timeOnGround} 500
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 100@

:SWEET4_3636
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3746
118@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 118@

:SWEET4_3746
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3785
101@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 101@

:SWEET4_3785
return 

:SWEET4_3787
if and
  not is_car_dead 524@
  not is_char_dead $scplayer
goto_if_false @SWEET4_3860
102@ = open_sequence_task 
task_leave_car -1 {vehicle} 524@
task_go_to_coord_while_shooting -1 {x} 545@ {y} 546@ {z} 547@ {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 102@

:SWEET4_3860
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3899
103@ = open_sequence_task 
task_weapon_roll -1 {direction} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 103@

:SWEET4_3899
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3966
104@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2080.6599 {y} -1292.61 {z} 24.02 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 104@

:SWEET4_3966
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4033
105@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2132.0 {y} -1307.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 105@

:SWEET4_4033
return 

:SWEET4_4035
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4136
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2163.0 {y} -1262.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2080.0 {y} -1261.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 106@

:SWEET4_4136
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4169
107@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 107@

:SWEET4_4169
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_4213
108@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 108@

:SWEET4_4213
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4314
109@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2163.0 {y} -1262.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2080.0 {y} -1261.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 109@

:SWEET4_4314
return 

:SWEET4_4316
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4377
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 545@ {y} 546@ {z} 547@ {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 110@

:SWEET4_4377
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_4415
111@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 111@

:SWEET4_4415
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4477
112@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1984.21 {y} -1239.04 {z} 20.5 {time} 6000
task_flee_char -1 {threat} $scplayer {radius} 50.0 {time} -1
close_sequence_task 112@

:SWEET4_4477
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4510
113@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 113@

:SWEET4_4510
return 

:SWEET4_4512
register_mission_given 
$onmission = 1
wait 0
$6636 = 0
43@ = 0
$sw4_stage = 30
$sw4_hood_acc = 30000
$sw4_spray_marker = 0
$sw4_blipped = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
48@ = 0
396@ = 0
403@ = 0
410@ = 0
$sw4_cut = 0
$sw4_attack = 0
$6662 = 0
$6663 = 0
$6664 = 0
$sw4_hood_create = 0
$6666 = 0
$6667 = 0
77@ = 0
$sw4_ammo = 0
$sw4_hood_dead = 0
$6641 = 0
$6642 = 0
$6643 = 0
$6644 = 0
$6645 = 0
$6646 = 0
$6647 = 0
$6648 = 0
$6649 = 0
$6650 = 0
$6651 = 0
$6652 = 0
$6653 = 0
$6654 = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
34@ = 0
42@ = 0
84@ = 0
94@ = 0
98@ = 1
99@ = 2
100@ = 3
101@ = 4
117@ = 5
116@ = 6
96@ = 7
97@ = 8
118@ = 9
77@ = 0
85@ = 25.0
451@ = 2227.72
469@ = -1315.79
487@ = 24.04
456@ = 2099.8
474@ = -1288.37
492@ = 24.35
461@ = 2184.97
479@ = -1230.92
497@ = 24.02
466@ = 2157.77
484@ = -1345.03
502@ = 24.04
89@ = 2507.0
90@ = -1671.0
91@ = 12.0
119@ = 2500.0259
129@ = -1661.1801
139@ = 17.763
120@ = 2194.3501
130@ = -1380.42
140@ = 24.34
121@ = 2082.4199
131@ = -1362.58
141@ = 26.81
122@ = 2078.99
132@ = -1366.22
142@ = 25.09
123@ = 2152.0
133@ = -1339.0
143@ = 30.0
124@ = 2502.1599
134@ = -1661.95
144@ = 15.76
125@ = 2509.1799
135@ = -1662.8101
145@ = 14.07
126@ = 2510.6299
136@ = -1665.8101
146@ = 13.83
127@ = 2511.8899
137@ = -1668.39
147@ = 14.26
128@ = 0.0
138@ = 0.0
148@ = 0.0
54@ = 2132.239
55@ = -1379.652
56@ = 22.8281
455@ = 2101.5701
473@ = -1287.65
491@ = 24.17
509@ = 5.0
459@ = 2161.0701
477@ = -1265.92
495@ = 23.02
513@ = 257.59
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
391@ = 1
392@ = 2
389@ = 0
393@ = 1
390@ = 0
set_lvar_text_label 204@s = 'SWE4_AA'
set_lvar_text_label 206@s = 'SWE4_AB'
set_lvar_text_label 208@s = 'SWE4_AC'
set_lvar_text_label 210@s = 'SWE4_AD'
set_lvar_text_label 212@s = 'SWE4_AE'
set_lvar_text_label 214@s = 'SWE4_AF'
set_lvar_text_label 216@s = 'SWE4_AG'
set_lvar_text_label 218@s = 'SWE4_AH'
set_lvar_text_label 220@s = 'SWE4_AI'
set_lvar_text_label 222@s = 'SWE4_AJ'
set_lvar_text_label 224@s = 'SWE4_AK'
set_lvar_text_label 226@s = 'SWE4_BA'
set_lvar_text_label 228@s = 'SWE4_BB'
set_lvar_text_label 230@s = 'SWE4_BC'
set_lvar_text_label 232@s = 'SWE4_BD'
set_lvar_text_label 234@s = 'SWE4_BE'
set_lvar_text_label 236@s = 'SWE4_CA'
set_lvar_text_label 238@s = 'SWE4_CB'
set_lvar_text_label 240@s = 'SWE4_CC'
set_lvar_text_label 242@s = 'SWE4_DA'
set_lvar_text_label 244@s = 'SWE4_DB'
set_lvar_text_label 246@s = 'SWE4_DC'
set_lvar_text_label 248@s = 'SWE4_DD'
set_lvar_text_label 250@s = 'SWE4_DE'
set_lvar_text_label 252@s = 'SWE4_DF'
set_lvar_text_label 254@s = 'SWE4_EA'
set_lvar_text_label 256@s = 'SWE4_EB'
set_lvar_text_label 258@s = 'SWE4_EC'
set_lvar_text_label 260@s = 'SWE4_FA'
set_lvar_text_label 262@s = 'SWE4_FB'
set_lvar_text_label 264@s = 'SWE4_FC'
set_lvar_text_label 266@s = 'SWE4_FD'
set_lvar_text_label 268@s = 'SWE4_GA'
set_lvar_text_label 270@s = 'SWE4_GB'
set_lvar_text_label 272@s = 'SWE4_HA'
set_lvar_text_label 274@s = 'SWE4_HB'
set_lvar_text_label 276@s = 'SWE4_KA'
set_lvar_text_label 278@s = 'SWE4_KB'
set_lvar_text_label 280@s = 'SWE4_KC'
set_lvar_text_label 282@s = 'SWE4_KD'
set_lvar_text_label 284@s = 'SWE4_KF'
set_lvar_text_label 286@s = 'SWE4_KG'
set_lvar_text_label 288@s = 'SWE4_KH'
set_lvar_text_label 290@s = 'SWE4_KE'
set_lvar_text_label 292@s = 'SWE4_KI'
set_lvar_text_label 294@s = 'SWE4_LA'
set_lvar_text_label 296@s = 'SWE4_LB'
set_lvar_text_label 298@s = 'SWE4_LC'
set_lvar_text_label 300@s = 'SWE4_MA'
set_lvar_text_label 302@s = 'SWE4_MB'
set_lvar_text_label 304@s = 'SWE4_MC'
set_lvar_text_label 306@s = 'SWE4_MD'
set_lvar_text_label 308@s = 'SWE4_NA'
set_lvar_text_label 310@s = 'SWE4_NB'
set_lvar_text_label 312@s = 'SWE4_NC'
set_lvar_text_label 314@s = 'SWE4_OA'
set_lvar_text_label 316@s = 'SWE4_OB'
set_lvar_text_label 318@s = 'SWE4_OC'
set_lvar_text_label 320@s = 'SWE4_PA'
set_lvar_text_label 322@s = 'SWE4_PB'
set_lvar_text_label 324@s = 'SWE4_PC'
set_lvar_int_to_constant 328@ = 11405
set_lvar_int_to_constant 329@ = 11433
set_lvar_int_to_constant 330@ = 11434
set_lvar_int_to_constant 331@ = 11435
set_lvar_int_to_constant 332@ = 11406
set_lvar_int_to_constant 333@ = 11436
set_lvar_int_to_constant 334@ = 11400
set_lvar_int_to_constant 335@ = 11407
set_lvar_int_to_constant 336@ = 11408
set_lvar_int_to_constant 337@ = 11401
set_lvar_int_to_constant 338@ = 11409
set_lvar_int_to_constant 339@ = 11437
set_lvar_int_to_constant 340@ = 11402
set_lvar_int_to_constant 341@ = 11438
set_lvar_int_to_constant 342@ = 11410
set_lvar_int_to_constant 343@ = 11439
set_lvar_int_to_constant 344@ = 11411
set_lvar_int_to_constant 345@ = 11412
set_lvar_int_to_constant 346@ = 11413
set_lvar_int_to_constant 347@ = 11414
set_lvar_int_to_constant 348@ = 11415
set_lvar_int_to_constant 349@ = 11416
set_lvar_int_to_constant 350@ = 11417
set_lvar_int_to_constant 351@ = 11418
set_lvar_int_to_constant 352@ = 11419
set_lvar_int_to_constant 353@ = 11420
set_lvar_int_to_constant 354@ = 11440
set_lvar_int_to_constant 355@ = 11455
set_lvar_int_to_constant 356@ = 11421
set_lvar_int_to_constant 357@ = 11441
set_lvar_int_to_constant 358@ = 11422
set_lvar_int_to_constant 359@ = 11456
set_lvar_int_to_constant 360@ = 11442
set_lvar_int_to_constant 361@ = 11423
set_lvar_int_to_constant 362@ = 11443
set_lvar_int_to_constant 363@ = 11424
set_lvar_int_to_constant 364@ = 11444
set_lvar_int_to_constant 365@ = 11403
set_lvar_int_to_constant 366@ = 11425
set_lvar_int_to_constant 367@ = 11426
set_lvar_int_to_constant 368@ = 11445
set_lvar_int_to_constant 369@ = 11446
set_lvar_int_to_constant 370@ = 11447
set_lvar_int_to_constant 371@ = 11404
set_lvar_int_to_constant 372@ = 11457
set_lvar_int_to_constant 373@ = 11458
set_lvar_int_to_constant 374@ = 11448
set_lvar_int_to_constant 375@ = 11427
set_lvar_int_to_constant 376@ = 11459
set_lvar_int_to_constant 377@ = 11449
set_lvar_int_to_constant 378@ = 11450
set_lvar_int_to_constant 379@ = 11428
set_lvar_int_to_constant 380@ = 11429
set_lvar_int_to_constant 381@ = 11430
set_lvar_int_to_constant 382@ = 11431
set_lvar_int_to_constant 383@ = 11451
set_lvar_int_to_constant 384@ = 11452
set_lvar_int_to_constant 385@ = 11453
set_lvar_int_to_constant 386@ = 11460
set_lvar_int_to_constant 387@ = 11432
set_lvar_int_to_constant 388@ = 11454
clear_this_print 'M_FAIL'
load_mission_text 'SWEET4'
clear_area 2518.0 {y} -1673.0 {z} 14.0 {radius} 50.0 {clearParticles} False
do_fade 1000 {direction} Fade.Out

:SWEET4_6965
if 
  get_fading_status 
goto_if_false @SWEET4_6989
wait 0
goto @SWEET4_6965

:SWEET4_6989
load_cutscene 'SWEET4A'
do_fade 0 {direction} Fade.Out

:SWEET4_7006
if 
  not has_cutscene_loaded 
goto_if_false @SWEET4_7030
wait 0
goto @SWEET4_7006

:SWEET4_7030
do_fade 0 {direction} Fade.Out
start_cutscene 
do_fade 0 {direction} Fade.Out
do_fade 1000 {direction} Fade.In

:SWEET4_7051
if 
  not has_cutscene_finished 
goto_if_false @SWEET4_7075
wait 0
goto @SWEET4_7051

:SWEET4_7075
do_fade 0 {direction} Fade.Out

:SWEET4_7081
if 
  get_fading_status 
goto_if_false @SWEET4_7105
wait 0
goto @SWEET4_7081

:SWEET4_7105
clear_cutscene 
set_music_does_fade False
set_player_control $player1 {state} True
switch_widescreen False
set_radio_channel RadioChannel.CSR
set_create_random_gang_members False
gosub @SWEET4_47
gosub @SWEET4_154
gosub @SWEET4_300
gosub @SWEET4_452
gosub @SWEET4_3106
if and
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
  not is_car_dead 543@
goto_if_false @SWEET4_7339
set_next_desired_move_state MoveState.Walk
97@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_enter_car_as_passenger -1 {vehicle} 543@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 97@
perform_sequence_task 394@ {sequence} 97@
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger 401@ {vehicle} 543@ {time} -1 {seat} SeatId.RearLeft
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger 408@ {vehicle} 543@ {time} -1 {seat} SeatId.RearRight
47@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 394@ {handleOrTemplate} 47@
set_char_decision_maker 401@ {handleOrTemplate} 47@
set_char_decision_maker 408@ {handleOrTemplate} 47@
set_char_cant_be_dragged_out $scplayer {state} True
set_char_cant_be_dragged_out 394@ {state} True
set_char_cant_be_dragged_out 401@ {state} True
set_char_cant_be_dragged_out 408@ {state} True
$6668 = get_game_timer 
$sw4_text_timer_diff = -1

:SWEET4_7339
53@ = get_max_wanted_level 
set_max_wanted_level 0
set_create_random_cops False
switch_cops_on_bikes False
set_camera_behind_player 
set_wanted_multiplier 0.7
set_player_group_recruitment $player1 {state} False
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_7418
set_char_coordinates $scplayer {x} 2516.9199 {y} -1679.45 {z} 13.42
set_char_heading $scplayer {heading} 27.25

:SWEET4_7418
gosub @SWEET4_597
print_now 'SWE4_00' {time} 5000 {flag} 1
61@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:SWEET4_7477
wait 0
if 
  389@ <> 0
goto_if_false @SWEET4_7961
if 
  390@ == 0
goto_if_false @SWEET4_7545
if 
  has_mission_audio_loaded 392@
goto_if_false @SWEET4_7538
clear_mission_audio 392@

:SWEET4_7538
390@ = 1

:SWEET4_7545
if 
  390@ == 1
goto_if_false @SWEET4_7589
load_mission_audio 391@ {audioId} 327@(389@,62i)
gosub @SWEET4_24349
390@ = 2

:SWEET4_7589
if 
  390@ == 2
goto_if_false @SWEET4_7698
if 
  has_mission_audio_loaded 391@
goto_if_false @SWEET4_7698
if 
  326@ <> 0
goto_if_false @SWEET4_7672
if 
  not is_char_dead 326@
goto_if_false @SWEET4_7672
start_char_facial_talk 326@ {duration} 10000
shut_char_up_for_scripted_speech 326@ {state} True

:SWEET4_7672
play_mission_audio 391@
print_now 202@(389@,62s) {time} 10000 {flag} 1
390@ = 3

:SWEET4_7698
if 
  390@ == 3
goto_if_false @SWEET4_7961
if 
  has_mission_audio_finished 391@
goto_if_false @SWEET4_7900
clear_this_print 202@(389@,62s)
if 
  326@ <> 0
goto_if_false @SWEET4_7787
if 
  not is_char_dead 326@
goto_if_false @SWEET4_7787
stop_char_facial_talk 326@
shut_char_up_for_scripted_speech 326@ {state} False

:SWEET4_7787
if 
  391@ == 1
goto_if_false @SWEET4_7826
391@ = 2
392@ = 1
goto @SWEET4_7840

:SWEET4_7826
391@ = 1
392@ = 2

:SWEET4_7840
389@ = 0
390@ = 0
if 
  $sw4_text_timer_diff == 2
goto_if_false @SWEET4_7886
$sw4_text_timer_diff = 6
goto @SWEET4_7893

:SWEET4_7886
$sw4_text_timer_diff += 1

:SWEET4_7893
goto @SWEET4_7961

:SWEET4_7900
if 
  not has_mission_audio_loaded 392@
goto_if_false @SWEET4_7961
if 
  60 > 389@
goto_if_false @SWEET4_7961
set_lvar_int_to_lvar_int 393@ = 389@
393@ += 1
load_mission_audio 392@ {audioId} 327@(393@,62i)

:SWEET4_7961
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET4_7983
goto @SWEET4_23663

:SWEET4_7983
if or
  8 > $6636
  $6636 == 666
goto_if_false @SWEET4_8058
if or
  is_char_dead 394@
  is_char_dead 401@
  is_char_dead 408@
goto_if_false @SWEET4_8058
print_now 'SWE4_04' {time} 5000 {flag} 1
goto @SWEET4_23645

:SWEET4_8058
if 
  is_car_dead 543@
goto_if_false @SWEET4_8097
print_now 'SWE4_04' {time} 5000 {flag} 1
goto @SWEET4_23645

:SWEET4_8097
if 
  $6636 == 0
goto_if_false @SWEET4_9056
if 
  not is_car_dead 543@
goto_if_false @SWEET4_9056
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_9056
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_8251
clear_prints 
clear_look_at 394@
remove_blip 544@
remove_blip 395@
remove_blip 402@
remove_blip 409@
$6668 = get_game_timer 
$sw4_spray_marker = 0
$6636 = 1

:SWEET4_8251
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_9056
if 
  396@ == 0
goto_if_false @SWEET4_8334
if 
  not is_char_in_car 394@ {vehicle} 543@
goto_if_false @SWEET4_8334
remove_blip 544@
395@ = add_blip_for_char 394@
set_blip_as_friendly 395@ {state} True
396@ = 1

:SWEET4_8334
if 
  396@ == 1
goto_if_false @SWEET4_8448
if 
  not is_char_in_car 394@ {vehicle} 543@
goto_if_false @SWEET4_8448
if 
  not locate_char_on_foot_car_2d 394@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_8424
print_now 'SWE4_09' {time} 100 {flag} 1
goto @SWEET4_8448

:SWEET4_8424
task_enter_car_as_passenger 394@ {vehicle} 543@ {time} -1 {seat} SeatId.BikeRear
61@ = get_game_timer 
396@ = 2

:SWEET4_8448
if 
  396@ == 2
goto_if_false @SWEET4_8532
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8532
if 
  73@ > 3000
goto_if_false @SWEET4_8532
396@ = 1

:SWEET4_8532
if 
  403@ == 0
goto_if_false @SWEET4_8596
if 
  not is_char_in_car 401@ {vehicle} 543@
goto_if_false @SWEET4_8596
remove_blip 544@
402@ = add_blip_for_char 401@
set_blip_as_friendly 402@ {state} True
403@ = 1

:SWEET4_8596
if 
  403@ == 1
goto_if_false @SWEET4_8710
if 
  not is_char_in_car 401@ {vehicle} 543@
goto_if_false @SWEET4_8710
if 
  not locate_char_on_foot_car_2d 401@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_8686
print_now 'SWE4_10' {time} 100 {flag} 1
goto @SWEET4_8710

:SWEET4_8686
task_enter_car_as_passenger 401@ {vehicle} 543@ {time} -1 {seat} SeatId.RearLeft
61@ = get_game_timer 
403@ = 2

:SWEET4_8710
if 
  403@ == 2
goto_if_false @SWEET4_8794
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8794
if 
  73@ > 3000
goto_if_false @SWEET4_8794
403@ = 1

:SWEET4_8794
if 
  410@ == 0
goto_if_false @SWEET4_8858
if 
  not is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_8858
remove_blip 544@
409@ = add_blip_for_char 408@
set_blip_as_friendly 409@ {state} True
410@ = 1

:SWEET4_8858
if 
  410@ == 1
goto_if_false @SWEET4_8972
if 
  not is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_8972
if 
  not locate_char_on_foot_car_2d 408@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_8948
print_now 'SWE4_11' {time} 100 {flag} 1
goto @SWEET4_8972

:SWEET4_8948
task_enter_car_as_passenger 408@ {vehicle} 543@ {time} -1 {seat} SeatId.RearRight
61@ = get_game_timer 
410@ = 2

:SWEET4_8972
if 
  410@ == 2
goto_if_false @SWEET4_9056
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_9056
if 
  73@ > 3000
goto_if_false @SWEET4_9056
410@ = 1

:SWEET4_9056
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_10027
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10027
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_10027
if 
  $6636 == 1
goto_if_false @SWEET4_9171
$6636 = 2

:SWEET4_9171
if 
  $6636 == 2
goto_if_false @SWEET4_9229
$sw4_blipped = 0
set_ped_density_multiplier 0.0
57@ = add_blip_for_coord 54@ {y} 55@ {z} 56@
61@ = get_game_timer 
$6636 = 3

:SWEET4_9229
if 
  $6636 == 3
goto_if_false @SWEET4_9387
if 
  43@ == 0
goto_if_false @SWEET4_9317
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 6000
goto_if_false @SWEET4_9317
61@ = get_game_timer 
43@ = 1

:SWEET4_9317
if 
  43@ == 1
goto_if_false @SWEET4_9387
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 5000
goto_if_false @SWEET4_9387
61@ = get_game_timer 
43@ = 2

:SWEET4_9387
if 
  $6636 == 3
goto_if_false @SWEET4_10027
if and
  $sw4_hood_create == 0
  34@ == 0
goto_if_false @SWEET4_10027
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10027
if 
  locate_char_in_car_3d $scplayer {x} 54@ {y} 55@ {z} 56@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @SWEET4_9513
if 
  42@ == 0
goto_if_false @SWEET4_9513
set_ped_density_multiplier 0.0

:SWEET4_9513
if 
  locate_char_in_car_3d $scplayer {x} 54@ {y} 55@ {z} 56@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_10027
if 
  is_char_sitting_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_10027
set_player_control $player1 {state} False
$sw4_text_timer_diff = 9
remove_blip 57@
set_player_control $player1 {state} False
switch_widescreen True
do_fade 300 {direction} Fade.Out
$6668 = get_game_timer 
task_play_anim $scplayer {animationName} "GDB_CAR_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
task_play_anim 394@ {animationName} "GDB_CAR_SMO" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
task_play_anim 408@ {animationName} "GDB_CAR_SWE" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 401@ {weaponType} WeaponType.Tec9
task_play_anim 401@ {animationName} "GDB_CAR_RYD" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_car_can_be_visibly_damaged 543@ {state} False
198@ = create_object #KB_BEER {x} 2440.5801 {y} -1979.89 {z} 14.2
gosub @SWEET4_842
gosub @SWEET4_3303
gosub @SWEET4_3451
if 
  not is_char_dead 418@
goto_if_false @SWEET4_9927
hide_char_weapon_for_scripted_cutscene 418@ {state} True
task_pick_up_object 418@ {object} 198@ {xOffset} 0.1 {yOffset} 0.1 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:SWEET4_9927
request_model #LAEROAD30

:SWEET4_9931
if 
  get_fading_status 
goto_if_false @SWEET4_9955
wait 0
goto @SWEET4_9931

:SWEET4_9955
if 
  not has_model_loaded #LAEROAD30
goto_if_false @SWEET4_9981
wait 0
goto @SWEET4_9955

:SWEET4_9981
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10006
pop_car_panel 543@ {panelId} 4 {visibility} True

:SWEET4_10006
$6636 = 4
34@ = 1
$6664 = 1

:SWEET4_10027
if and
  $6636 == 4
  $sw4_blipped == 0
goto_if_false @SWEET4_10111
if and
  not is_char_dead 401@
  not is_char_dead 394@
goto_if_false @SWEET4_10111
if and
  not is_car_dead 543@
  not is_char_dead 408@
goto_if_false @SWEET4_10111
59@ = get_game_timer 
$6668 = get_game_timer 
$sw4_blipped = 1

:SWEET4_10111
if 
  $6636 == 4
goto_if_false @SWEET4_11385
if 
  $sw4_blipped > 0
goto_if_false @SWEET4_10227
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 2000
goto_if_false @SWEET4_10227
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET4_10227
clear_prints 
$sw4_text_timer_diff = 14
50@ = 1
$sw4_blipped = 4

:SWEET4_10227
if 
  $sw4_blipped == 1
goto_if_false @SWEET4_10481
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 300
goto_if_false @SWEET4_10481
if 
  $6664 == 1
goto_if_false @SWEET4_10481
if 
  not is_char_dead 401@
goto_if_false @SWEET4_10481
set_near_clip 0.1
120@, 130@, 140@ = get_offset_from_car_in_world_coords 543@ {xOffset} -0.337 {yOffset} 1.566 {zOffset} 0.657
122@, 132@, 142@ = get_offset_from_car_in_world_coords 543@ {xOffset} 0.038 {yOffset} -1.033 {zOffset} 0.088
set_fixed_camera_position 120@ {y} 130@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 122@ {y} 132@ {z} 142@ {switchStyle} SwitchType.JumpCut
59@ = get_game_timer 
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In

:SWEET4_10443
if 
  get_fading_status 
goto_if_false @SWEET4_10467
wait 0
goto @SWEET4_10443

:SWEET4_10467
$sw4_text_timer_diff = 9
$sw4_blipped = 2

:SWEET4_10481
if 
  $sw4_blipped == 2
goto_if_false @SWEET4_10603
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 10700
goto_if_false @SWEET4_10603
if 
  $6664 == 1
goto_if_false @SWEET4_10603
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.Out

:SWEET4_10572
if 
  get_fading_status 
goto_if_false @SWEET4_10596
wait 0
goto @SWEET4_10572

:SWEET4_10596
$sw4_blipped = 31

:SWEET4_10603
if 
  $sw4_blipped == 31
goto_if_false @SWEET4_10765
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 11000
goto_if_false @SWEET4_10765
set_near_clip 0.1
set_fading_colour 0 {g} 0 {b} 0
set_fixed_camera_position 2098.1389 {y} -1385.882 {z} 30.5735 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2098.9519 {y} -1385.364 {z} 30.3086 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:SWEET4_10734
if 
  get_fading_status 
goto_if_false @SWEET4_10758
wait 0
goto @SWEET4_10734

:SWEET4_10758
$sw4_blipped = 3

:SWEET4_10765
if 
  $sw4_blipped == 3
goto_if_false @SWEET4_11024
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 13000
goto_if_false @SWEET4_11024
if 
  $6664 == 1
goto_if_false @SWEET4_11024
if 
  not is_car_dead 523@
goto_if_false @SWEET4_11024
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2098.1389 {fromY} -1385.882 {fromZ} 30.5735 {toX} 2075.7871 {toY} -1369.657 {toZ} 23.6289 {time} 3500 {ease} True
camera_set_vector_track 2098.9519 {fromY} -1385.364 {fromZ} 30.3086 {toX} 2076.3159 {toY} -1368.814 {toZ} 23.7227 {time} 3500 {ease} True
if 
  not is_char_dead 417@
goto_if_false @SWEET4_10993
task_play_anim 417@ {animationName} "GSIGN1" {animationFile} "GHANDS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_10993
if 
  not is_char_dead 416@
goto_if_false @SWEET4_11017
perform_sequence_task 416@ {sequence} 118@

:SWEET4_11017
$sw4_blipped = 4

:SWEET4_11024
if 
  $sw4_blipped == 4
goto_if_false @SWEET4_11111
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 20000
  50@ == 1
goto_if_false @SWEET4_11111
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.Out
$sw4_blipped = 6

:SWEET4_11111
if 
  $sw4_blipped == 6
goto_if_false @SWEET4_11385
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 21000
  50@ == 1
goto_if_false @SWEET4_11385
clear_prints 
$sw4_text_timer_diff = 14
mark_model_as_no_longer_needed #LAEROAD30
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In
remove_animation "GANGS"
remove_animation "GHANDS"
62@ = get_game_timer 
63@ = get_game_timer 
64@ = get_game_timer 
print_help 'SWE4_13'
fix_car_panel 543@ {panelId} 4
clear_area 54@ {y} 55@ {z} 56@ {radius} 4.0 {clearParticles} True
set_car_can_be_visibly_damaged 543@ {state} True
if 
  not is_car_dead 543@
goto_if_false @SWEET4_11364
$sw4_health_display = get_car_health 543@
if 
  $sw4_health_display > 250
goto_if_false @SWEET4_11349
$sw4_health_display -= 250

:SWEET4_11349
set_var_int_to_var_int $sw4_text_timer_flag = $sw4_health_display
$sw4_text_timer_flag /= 10

:SWEET4_11364
$sw4_spray_marker = 1
50@ = 0
$6636 = 5

:SWEET4_11385
if and
  $6636 == 5
  $sw4_blipped >= 6
goto_if_false @SWEET4_12654
70@ = get_game_timer 
set_lvar_int_to_lvar_int 76@ = 70@
sub_int_lvar_from_int_lvar 76@ -= 64@
if 
  76@ > 5000
goto_if_false @SWEET4_11512
if 
  84@ == 0
goto_if_false @SWEET4_11512
clear_onscreen_counter $sw4_text_timer_flag
display_onscreen_counter_with_string $sw4_text_timer_flag {display} CounterDisplay.Bar {text} 'SWE4_08'
print_help 'SWE4_15'
62@ = get_game_timer 
84@ = 1

:SWEET4_11512
if and
  $sw4_cut == 0
  $6664 == 1
goto_if_false @SWEET4_11717
if 
  not is_car_dead 543@
goto_if_false @SWEET4_11717
if and
  not is_char_dead 415@
  not is_char_dead 394@
goto_if_false @SWEET4_11717
if or
  locate_car_3d 543@ {x} 451@ {y} 469@ {z} 487@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_11717
if and
  not is_char_dead 416@
  not is_char_dead 417@
  not is_char_dead 418@
  not is_car_dead 523@
goto_if_false @SWEET4_11717
delete_object 198@
set_current_char_weapon 418@ {weaponType} WeaponType.Pistol
perform_sequence_task 415@ {sequence} 98@
clear_sequence_task 98@
perform_sequence_task 416@ {sequence} 99@
clear_sequence_task 99@
perform_sequence_task 417@ {sequence} 100@
clear_sequence_task 100@
perform_sequence_task 418@ {sequence} 101@
clear_sequence_task 101@
$sw4_cut = 1

:SWEET4_11717
if and
  $sw4_attack == 0
  $sw4_hood_create == 1
goto_if_false @SWEET4_11910
if 
  not is_car_dead 543@
goto_if_false @SWEET4_11910
if and
  not is_char_dead 419@
  not is_char_dead 394@
goto_if_false @SWEET4_11910
if or
  locate_car_3d 543@ {x} 455@ {y} 473@ {z} 491@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_11910
if and
  not is_char_dead 420@
  not is_char_dead 421@
  not is_char_dead 422@
  not is_car_dead 524@
goto_if_false @SWEET4_11910
perform_sequence_task 419@ {sequence} 102@
clear_sequence_task 102@
perform_sequence_task 420@ {sequence} 103@
clear_sequence_task 103@
perform_sequence_task 421@ {sequence} 104@
clear_sequence_task 104@
perform_sequence_task 422@ {sequence} 105@
clear_sequence_task 105@
$sw4_attack = 1

:SWEET4_11910
if and
  $6662 == 0
  $6666 == 1
goto_if_false @SWEET4_12098
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12098
if and
  not is_char_dead 423@
  not is_char_dead 394@
goto_if_false @SWEET4_12098
if or
  locate_car_3d 543@ {x} 459@ {y} 477@ {z} 495@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_12098
if and
  not is_char_dead 424@
  not is_char_dead 425@
  not is_char_dead 426@
goto_if_false @SWEET4_12098
perform_sequence_task 423@ {sequence} 106@
clear_sequence_task 106@
perform_sequence_task 424@ {sequence} 107@
clear_sequence_task 107@
perform_sequence_task 425@ {sequence} 108@
clear_sequence_task 108@
perform_sequence_task 426@ {sequence} 109@
clear_sequence_task 109@
$6662 = 1

:SWEET4_12098
if and
  $6663 == 0
  $6667 == 1
goto_if_false @SWEET4_12286
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12286
if and
  not is_char_dead 427@
  not is_char_dead 394@
goto_if_false @SWEET4_12286
if or
  locate_car_3d 543@ {x} 463@ {y} 481@ {z} 499@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_12286
if and
  not is_char_dead 428@
  not is_char_dead 429@
  not is_char_dead 430@
goto_if_false @SWEET4_12286
perform_sequence_task 427@ {sequence} 110@
clear_sequence_task 110@
perform_sequence_task 428@ {sequence} 111@
clear_sequence_task 111@
perform_sequence_task 429@ {sequence} 112@
clear_sequence_task 112@
perform_sequence_task 430@ {sequence} 113@
clear_sequence_task 113@
$6663 = 1

:SWEET4_12286
if and
  $sw4_hood_create == 0
  34@ == 2
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12430
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12430
if 
  not is_point_on_screen 455@ {y} 473@ {z} 491@ {radius} 4.0
goto_if_false @SWEET4_12430
if 
  not locate_char_any_means_3d $scplayer {x} 455@ {y} 473@ {z} 491@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12430
gosub @SWEET4_1419
gosub @SWEET4_3305
gosub @SWEET4_3787
mark_model_as_no_longer_needed 412
$sw4_hood_create = 1

:SWEET4_12430
if and
  $6666 == 0
  34@ == 3
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12542
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12542
if 
  not locate_char_any_means_3d $scplayer {x} 459@ {y} 477@ {z} 495@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12542
gosub @SWEET4_1989
gosub @SWEET4_3307
gosub @SWEET4_4035
$6666 = 1

:SWEET4_12542
if and
  $6667 == 0
  34@ == 4
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12654
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12654
if 
  not locate_char_any_means_3d $scplayer {x} 463@ {y} 481@ {z} 499@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12654
gosub @SWEET4_2503
gosub @SWEET4_3379
gosub @SWEET4_4316
$6667 = 1

:SWEET4_12654
if 
  $6636 > 4
goto_if_false @SWEET4_14589
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_12967
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12967
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_12967
if 
  not is_car_on_fire 543@
goto_if_false @SWEET4_12937
if 
  48@ == 1
goto_if_false @SWEET4_12824
clear_onscreen_counter $sw4_text_timer_flag
display_onscreen_counter_with_string $sw4_text_timer_flag {display} CounterDisplay.Bar {text} 'SWE4_08'
48@ = 0

:SWEET4_12824
$sw4_health_display = get_car_health 543@
$sw4_health_display -= 250
set_var_int_to_var_int $sw4_text_timer_flag = $sw4_health_display
$sw4_text_timer_flag /= 12
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2067.0 {y} -1831.0 {z} 13.0 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET4_12930
if 
  $sw4_health_display == 750
goto_if_false @SWEET4_12930
set_car_health 543@ {health} 1450

:SWEET4_12930
goto @SWEET4_12967

:SWEET4_12937
if 
  48@ == 0
goto_if_false @SWEET4_12967
clear_onscreen_counter $sw4_text_timer_flag
48@ = 1

:SWEET4_12967
68@ = get_game_timer 
set_lvar_int_to_lvar_int 74@ = 68@
sub_int_lvar_from_int_lvar 74@ -= 62@
if or
  74@ > 2000
  is_char_dead 195@
goto_if_false @SWEET4_13078
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 408@
gosub @SWEET4_24058
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 401@
gosub @SWEET4_24058
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 394@
gosub @SWEET4_24058

:SWEET4_13078
if 
  $6664 == 1
goto_if_false @SWEET4_13467
if 
  34@ == 1
goto_if_false @SWEET4_13467
if 
  $sw4_ammo == 0
goto_if_false @SWEET4_13172
if 
  is_char_dead 415@
goto_if_false @SWEET4_13172
remove_blip 433@
mark_char_as_no_longer_needed 415@
77@ += 1
$sw4_ammo = 1

:SWEET4_13172
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_13230
if 
  is_char_dead 416@
goto_if_false @SWEET4_13230
remove_blip 434@
mark_char_as_no_longer_needed 416@
77@ += 1
$sw4_hood_dead = 1

:SWEET4_13230
if 
  $6641 == 0
goto_if_false @SWEET4_13288
if 
  is_char_dead 417@
goto_if_false @SWEET4_13288
remove_blip 435@
mark_char_as_no_longer_needed 417@
77@ += 1
$6641 = 1

:SWEET4_13288
if 
  $6642 == 0
goto_if_false @SWEET4_13346
if 
  is_char_dead 418@
goto_if_false @SWEET4_13346
remove_blip 436@
mark_char_as_no_longer_needed 418@
77@ += 1
$6642 = 1

:SWEET4_13346
if 
  35@ == 0
goto_if_false @SWEET4_13467
if and
  $sw4_ammo == 1
  $sw4_hood_dead == 1
  $6641 == 1
  $6642 == 1
goto_if_false @SWEET4_13467
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_13453
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13453
389@ = 46

:SWEET4_13453
34@ = 2
35@ = 1

:SWEET4_13467
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_13856
if 
  34@ == 2
goto_if_false @SWEET4_13856
if 
  $6643 == 0
goto_if_false @SWEET4_13561
if 
  is_char_dead 419@
goto_if_false @SWEET4_13561
remove_blip 437@
mark_char_as_no_longer_needed 419@
77@ += 1
$6643 = 1

:SWEET4_13561
if 
  $6644 == 0
goto_if_false @SWEET4_13619
if 
  is_char_dead 420@
goto_if_false @SWEET4_13619
remove_blip 438@
mark_char_as_no_longer_needed 420@
77@ += 1
$6644 = 1

:SWEET4_13619
if 
  $6645 == 0
goto_if_false @SWEET4_13677
if 
  is_char_dead 421@
goto_if_false @SWEET4_13677
remove_blip 439@
mark_char_as_no_longer_needed 421@
77@ += 1
$6645 = 1

:SWEET4_13677
if 
  $6646 == 0
goto_if_false @SWEET4_13735
if 
  is_char_dead 422@
goto_if_false @SWEET4_13735
remove_blip 440@
mark_char_as_no_longer_needed 422@
77@ += 1
$6646 = 1

:SWEET4_13735
if 
  36@ == 0
goto_if_false @SWEET4_13856
if and
  $6643 == 1
  $6644 == 1
  $6645 == 1
  $6646 == 1
goto_if_false @SWEET4_13856
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_13842
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13842
389@ = 47

:SWEET4_13842
34@ = 3
36@ = 1

:SWEET4_13856
if 
  $6666 == 1
goto_if_false @SWEET4_14245
if 
  34@ == 3
goto_if_false @SWEET4_14245
if 
  $6647 == 0
goto_if_false @SWEET4_13950
if 
  is_char_dead 423@
goto_if_false @SWEET4_13950
remove_blip 441@
mark_char_as_no_longer_needed 423@
77@ += 1
$6647 = 1

:SWEET4_13950
if 
  $6648 == 0
goto_if_false @SWEET4_14008
if 
  is_char_dead 424@
goto_if_false @SWEET4_14008
remove_blip 442@
mark_char_as_no_longer_needed 424@
77@ += 1
$6648 = 1

:SWEET4_14008
if 
  $6649 == 0
goto_if_false @SWEET4_14066
if 
  is_char_dead 425@
goto_if_false @SWEET4_14066
remove_blip 443@
mark_char_as_no_longer_needed 425@
77@ += 1
$6649 = 1

:SWEET4_14066
if 
  $6650 == 0
goto_if_false @SWEET4_14124
if 
  is_char_dead 426@
goto_if_false @SWEET4_14124
remove_blip 444@
mark_char_as_no_longer_needed 426@
77@ += 1
$6650 = 1

:SWEET4_14124
if 
  37@ == 0
goto_if_false @SWEET4_14245
if and
  $6647 == 1
  $6648 == 1
  $6649 == 1
  $6650 == 1
goto_if_false @SWEET4_14245
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_14231
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_14231
389@ = 48

:SWEET4_14231
34@ = 4
37@ = 1

:SWEET4_14245
if 
  $6667 == 1
goto_if_false @SWEET4_14589
if 
  34@ == 4
goto_if_false @SWEET4_14589
if 
  $6651 == 0
goto_if_false @SWEET4_14339
if 
  is_char_dead 427@
goto_if_false @SWEET4_14339
remove_blip 445@
mark_char_as_no_longer_needed 427@
77@ += 1
$6651 = 1

:SWEET4_14339
if 
  $6652 == 0
goto_if_false @SWEET4_14397
if 
  is_char_dead 428@
goto_if_false @SWEET4_14397
remove_blip 446@
mark_char_as_no_longer_needed 428@
77@ += 1
$6652 = 1

:SWEET4_14397
if 
  $6653 == 0
goto_if_false @SWEET4_14455
if 
  is_char_dead 429@
goto_if_false @SWEET4_14455
remove_blip 447@
mark_char_as_no_longer_needed 429@
77@ += 1
$6653 = 1

:SWEET4_14455
if 
  $6654 == 0
goto_if_false @SWEET4_14513
if 
  is_char_dead 430@
goto_if_false @SWEET4_14513
remove_blip 448@
mark_char_as_no_longer_needed 430@
77@ += 1
$6654 = 1

:SWEET4_14513
if 
  38@ == 0
goto_if_false @SWEET4_14589
if and
  $6651 == 1
  $6652 == 1
  $6653 == 1
  $6654 == 1
goto_if_false @SWEET4_14589
$6668 = get_game_timer 
34@ = 1
38@ = 0

:SWEET4_14589
if 
  $6636 == 5
goto_if_false @SWEET4_16380
if 
  not is_car_dead 543@
goto_if_false @SWEET4_16049
if 
  45@ == 0
goto_if_false @SWEET4_15077
if and
  is_car_stopped 543@
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_15077
59@ = get_game_timer 
44@ = generate_random_int_in_range 0 {max} 5
$sw4_stage = 50
if 
  not is_char_dead 415@
goto_if_false @SWEET4_14710
set_char_accuracy 415@ {accuracy} $sw4_stage

:SWEET4_14710
if 
  not is_char_dead 416@
goto_if_false @SWEET4_14734
set_char_accuracy 416@ {accuracy} $sw4_stage

:SWEET4_14734
if 
  not is_char_dead 417@
goto_if_false @SWEET4_14758
set_char_accuracy 417@ {accuracy} $sw4_stage

:SWEET4_14758
if 
  not is_char_dead 418@
goto_if_false @SWEET4_14782
set_char_accuracy 418@ {accuracy} $sw4_stage

:SWEET4_14782
if 
  not is_char_dead 419@
goto_if_false @SWEET4_14806
set_char_accuracy 419@ {accuracy} $sw4_stage

:SWEET4_14806
if 
  not is_char_dead 420@
goto_if_false @SWEET4_14830
set_char_accuracy 420@ {accuracy} $sw4_stage

:SWEET4_14830
if 
  not is_char_dead 421@
goto_if_false @SWEET4_14854
set_char_accuracy 421@ {accuracy} $sw4_stage

:SWEET4_14854
if 
  not is_char_dead 422@
goto_if_false @SWEET4_14878
set_char_accuracy 422@ {accuracy} $sw4_stage

:SWEET4_14878
if 
  not is_char_dead 423@
goto_if_false @SWEET4_14902
set_char_accuracy 423@ {accuracy} $sw4_stage

:SWEET4_14902
if 
  not is_char_dead 424@
goto_if_false @SWEET4_14926
set_char_accuracy 424@ {accuracy} $sw4_stage

:SWEET4_14926
if 
  not is_char_dead 425@
goto_if_false @SWEET4_14950
set_char_accuracy 425@ {accuracy} $sw4_stage

:SWEET4_14950
if 
  not is_char_dead 426@
goto_if_false @SWEET4_14974
set_char_accuracy 426@ {accuracy} $sw4_stage

:SWEET4_14974
if 
  not is_char_dead 427@
goto_if_false @SWEET4_14998
set_char_accuracy 427@ {accuracy} $sw4_stage

:SWEET4_14998
if 
  not is_char_dead 428@
goto_if_false @SWEET4_15022
set_char_accuracy 428@ {accuracy} $sw4_stage

:SWEET4_15022
if 
  not is_char_dead 429@
goto_if_false @SWEET4_15046
set_char_accuracy 429@ {accuracy} $sw4_stage

:SWEET4_15046
if 
  not is_char_dead 430@
goto_if_false @SWEET4_15070
set_char_accuracy 430@ {accuracy} $sw4_stage

:SWEET4_15070
45@ = 1

:SWEET4_15077
if 
  45@ == 1
goto_if_false @SWEET4_15577
69@ = get_game_timer 
set_lvar_int_to_lvar_int 75@ = 69@
sub_int_lvar_from_int_lvar 75@ -= 63@
if 
  75@ > 3000
goto_if_false @SWEET4_15577
if 
  is_car_stopped 543@
goto_if_false @SWEET4_15570
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 250
goto_if_false @SWEET4_15563
if 
  44@ == 0
goto_if_false @SWEET4_15253
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15253
389@ = 20
59@ = get_game_timer 
45@ = 2

:SWEET4_15253
if 
  44@ == 1
goto_if_false @SWEET4_15315
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15315
389@ = 21
59@ = get_game_timer 
45@ = 2

:SWEET4_15315
if 
  44@ == 2
goto_if_false @SWEET4_15377
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15377
389@ = 22
59@ = get_game_timer 
45@ = 2

:SWEET4_15377
if 
  44@ == 3
goto_if_false @SWEET4_15439
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15439
389@ = 23
59@ = get_game_timer 
45@ = 2

:SWEET4_15439
if 
  44@ == 4
goto_if_false @SWEET4_15501
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15501
389@ = 24
59@ = get_game_timer 
45@ = 2

:SWEET4_15501
if 
  44@ == 5
goto_if_false @SWEET4_15563
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15563
389@ = 25
59@ = get_game_timer 
45@ = 2

:SWEET4_15563
goto @SWEET4_15577

:SWEET4_15570
45@ = 2

:SWEET4_15577
if 
  45@ == 2
goto_if_false @SWEET4_16049
if 
  not is_car_stopped 543@
goto_if_false @SWEET4_16049
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 3100
goto_if_false @SWEET4_15658
45@ = 0

:SWEET4_15658
$sw4_stage = 30
if 
  not is_char_dead 415@
goto_if_false @SWEET4_15689
set_char_accuracy 415@ {accuracy} $sw4_stage

:SWEET4_15689
if 
  not is_char_dead 416@
goto_if_false @SWEET4_15713
set_char_accuracy 416@ {accuracy} $sw4_stage

:SWEET4_15713
if 
  not is_char_dead 417@
goto_if_false @SWEET4_15737
set_char_accuracy 417@ {accuracy} $sw4_stage

:SWEET4_15737
if 
  not is_char_dead 418@
goto_if_false @SWEET4_15761
set_char_accuracy 418@ {accuracy} $sw4_stage

:SWEET4_15761
if 
  not is_char_dead 419@
goto_if_false @SWEET4_15785
set_char_accuracy 419@ {accuracy} $sw4_stage

:SWEET4_15785
if 
  not is_char_dead 420@
goto_if_false @SWEET4_15809
set_char_accuracy 420@ {accuracy} $sw4_stage

:SWEET4_15809
if 
  not is_char_dead 421@
goto_if_false @SWEET4_15833
set_char_accuracy 421@ {accuracy} $sw4_stage

:SWEET4_15833
if 
  not is_char_dead 422@
goto_if_false @SWEET4_15857
set_char_accuracy 422@ {accuracy} $sw4_stage

:SWEET4_15857
if 
  not is_char_dead 423@
goto_if_false @SWEET4_15881
set_char_accuracy 423@ {accuracy} $sw4_stage

:SWEET4_15881
if 
  not is_char_dead 424@
goto_if_false @SWEET4_15905
set_char_accuracy 424@ {accuracy} $sw4_stage

:SWEET4_15905
if 
  not is_char_dead 425@
goto_if_false @SWEET4_15929
set_char_accuracy 425@ {accuracy} $sw4_stage

:SWEET4_15929
if 
  not is_char_dead 426@
goto_if_false @SWEET4_15953
set_char_accuracy 426@ {accuracy} $sw4_stage

:SWEET4_15953
if 
  not is_char_dead 427@
goto_if_false @SWEET4_15977
set_char_accuracy 427@ {accuracy} $sw4_stage

:SWEET4_15977
if 
  not is_char_dead 428@
goto_if_false @SWEET4_16001
set_char_accuracy 428@ {accuracy} $sw4_stage

:SWEET4_16001
if 
  not is_char_dead 429@
goto_if_false @SWEET4_16025
set_char_accuracy 429@ {accuracy} $sw4_stage

:SWEET4_16025
if 
  not is_char_dead 430@
goto_if_false @SWEET4_16049
set_char_accuracy 430@ {accuracy} $sw4_stage

:SWEET4_16049
if 
  77@ == 16
goto_if_false @SWEET4_16111
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_16111
389@ = 33
82@ = get_game_timer 
77@ = 17

:SWEET4_16111
if 
  77@ == 17
goto_if_false @SWEET4_16380
81@ = get_game_timer 
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  80@ > 3000
goto_if_false @SWEET4_16380
set_free_resprays True
clear_prints 
set_max_wanted_level 53@
if 
  49@ == 0
goto_if_false @SWEET4_16209
set_create_random_cops True
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:SWEET4_16209
lock_car_doors 543@ {lockStatus} CarLock.Unlocked
clear_onscreen_counter $sw4_text_timer_flag
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
82@ = get_game_timer 
set_ped_density_multiplier 0.5
remove_blip 433@
remove_blip 434@
remove_blip 435@
remove_blip 436@
remove_blip 437@
remove_blip 438@
remove_blip 439@
remove_blip 440@
remove_blip 441@
remove_blip 442@
remove_blip 443@
remove_blip 444@
remove_blip 445@
remove_blip 446@
remove_blip 447@
remove_blip 448@
$6668 = get_game_timer 
$sw4_text_timer_diff = 14
$sw4_blipped = 0
$6636 = 6
set_wanted_multiplier 1.0
83@ = 0

:SWEET4_16380
if and
  $6636 == 6
  $sw4_text_timer_diff == 18
goto_if_false @SWEET4_17912
81@ = get_game_timer 
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  83@ == 0
goto_if_false @SWEET4_16486
if 
  80@ > 500
goto_if_false @SWEET4_16486
print_help 'SWE4_07'
remove_blip $spray_shop1
83@ += 1

:SWEET4_16486
if 
  83@ == 1
goto_if_false @SWEET4_16557
if 
  80@ > 1000
goto_if_false @SWEET4_16557
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16557
if 
  83@ == 2
goto_if_false @SWEET4_16606
if 
  80@ > 1500
goto_if_false @SWEET4_16606
remove_blip $spray_shop1
83@ += 1

:SWEET4_16606
if 
  83@ == 3
goto_if_false @SWEET4_16677
if 
  80@ > 2000
goto_if_false @SWEET4_16677
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16677
if 
  83@ == 4
goto_if_false @SWEET4_16726
if 
  80@ > 2500
goto_if_false @SWEET4_16726
remove_blip $spray_shop1
83@ += 1

:SWEET4_16726
if 
  83@ == 5
goto_if_false @SWEET4_16797
if 
  80@ > 3000
goto_if_false @SWEET4_16797
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16797
if 
  83@ == 6
goto_if_false @SWEET4_16846
if 
  80@ > 3500
goto_if_false @SWEET4_16846
remove_blip $spray_shop1
83@ += 1

:SWEET4_16846
if 
  83@ == 7
goto_if_false @SWEET4_16917
if 
  80@ > 4000
goto_if_false @SWEET4_16917
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16917
if 
  83@ == 8
goto_if_false @SWEET4_16966
if 
  80@ > 4500
goto_if_false @SWEET4_16966
remove_blip $spray_shop1
83@ += 1

:SWEET4_16966
if 
  83@ == 9
goto_if_false @SWEET4_17037
if 
  80@ > 5000
goto_if_false @SWEET4_17037
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17037
if 
  83@ == 10
goto_if_false @SWEET4_17086
if 
  80@ > 5500
goto_if_false @SWEET4_17086
remove_blip $spray_shop1
83@ += 1

:SWEET4_17086
if 
  83@ == 11
goto_if_false @SWEET4_17157
if 
  80@ > 6000
goto_if_false @SWEET4_17157
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17157
if 
  83@ == 12
goto_if_false @SWEET4_17206
if 
  80@ > 6500
goto_if_false @SWEET4_17206
remove_blip $spray_shop1
83@ += 1

:SWEET4_17206
if 
  83@ == 13
goto_if_false @SWEET4_17277
if 
  80@ > 7000
goto_if_false @SWEET4_17277
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17277
if 
  83@ == 14
goto_if_false @SWEET4_17326
if 
  80@ > 7500
goto_if_false @SWEET4_17326
remove_blip $spray_shop1
83@ += 1

:SWEET4_17326
if 
  83@ == 15
goto_if_false @SWEET4_17397
if 
  80@ > 8000
goto_if_false @SWEET4_17397
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17397
if 
  83@ == 16
goto_if_false @SWEET4_17446
if 
  80@ > 8500
goto_if_false @SWEET4_17446
remove_blip $spray_shop1
83@ += 1

:SWEET4_17446
if 
  83@ == 17
goto_if_false @SWEET4_17517
if 
  80@ > 9000
goto_if_false @SWEET4_17517
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17517
if 
  83@ == 18
goto_if_false @SWEET4_17566
if 
  80@ > 9500
goto_if_false @SWEET4_17566
remove_blip $spray_shop1
83@ += 1

:SWEET4_17566
if 
  83@ == 19
goto_if_false @SWEET4_17662
if 
  80@ > 10000
goto_if_false @SWEET4_17662
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
remove_blip $6657
$6657 = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21
83@ += 1

:SWEET4_17662
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_17769
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_17769
if 
  locate_char_in_car_3d $scplayer {x} 2075.55 {y} -1831.09 {z} 12.21 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_17769
clear_prints 
print_help 'SWE4_06'
remove_blip $6657
$sw4_blipped = 1

:SWEET4_17769
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @SWEET4_17912
if or
  locate_char_in_car_3d $scplayer {x} 2075.55 {y} -1831.09 {z} 12.21 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} True
  locate_char_in_car_3d $scplayer {x} 1024.55 {y} -1039.09 {z} 35.21 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} True
goto_if_false @SWEET4_17905
clear_help 
59@ = get_game_timer 
remove_blip $6657
$6636 = 7
$sw4_blipped = 0
goto @SWEET4_17912

:SWEET4_17905
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:SWEET4_17912
if 
  $6636 == 7
goto_if_false @SWEET4_18551
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18061
if 
  43@ == 2
goto_if_false @SWEET4_18061
set_free_resprays False
print_help 'WANT_L'
58@ = add_blip_for_coord 545@ {y} 546@ {z} 547@
remove_blip $spray_shop1
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
59@ = get_game_timer 
$6668 = get_game_timer 
43@ = 3

:SWEET4_18061
if 
  43@ == 3
goto_if_false @SWEET4_18179
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18179
if 
  49@ == 0
goto_if_false @SWEET4_18172
$sw4_text_timer_diff = 18
$6668 = get_game_timer 
print_now 'SWE4_14' {time} 8000 {flag} 1
49@ = 1

:SWEET4_18172
43@ = 4

:SWEET4_18179
if 
  43@ == 4
goto_if_false @SWEET4_18551
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_18551
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_18551
if 
  locate_char_in_car_3d $scplayer {x} 545@ {y} 546@ {z} 547@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_18551
if 
  is_char_sitting_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_18551
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} 543@ {actionId} TempAction.HandbrakeStraight {time} 2000000
clear_area 2518.0 {y} -1673.0 {z} 14.0 {radius} 50.0 {clearParticles} False
clear_prints 
set_ped_density_multiplier 0.0
switch_widescreen True
do_fade 300 {direction} Fade.Out
59@ = get_game_timer 
$6668 = get_game_timer 
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
task_play_anim 394@ {animationName} "GDB_CAR2_SMO" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
task_play_anim 408@ {animationName} "GDB_CAR2_SWE" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_car_can_be_visibly_damaged 543@ {state} False
$sw4_blipped = 0
$6636 = 8

:SWEET4_18551
if 
  $6636 == 8
goto_if_false @SWEET4_19858
if 
  not is_car_dead 543@
goto_if_false @SWEET4_19858
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_18992
if 
  52@ == 0
goto_if_false @SWEET4_18883
if 
  390@ == 0
goto_if_false @SWEET4_18883
if 
  is_car_stopped 543@
goto_if_false @SWEET4_18883
if 
  not is_char_dead 401@
goto_if_false @SWEET4_18736
pop_car_panel 543@ {panelId} 4 {visibility} True
set_fading_colour 0 {g} 0 {b} 0
117@ = open_sequence_task 
task_leave_car -1 {vehicle} 543@
task_go_straight_to_coord -1 {x} 2513.79 {y} -1663.09 {z} 14.56 {speed} MoveState.Walk {time} -2
close_sequence_task 117@
perform_sequence_task 401@ {sequence} 117@

:SWEET4_18736
120@, 130@, 140@ = get_offset_from_car_in_world_coords 543@ {xOffset} -0.4 {yOffset} 1.566 {zOffset} 0.657
122@, 132@, 142@ = get_offset_from_car_in_world_coords 543@ {xOffset} 0.038 {yOffset} -1.033 {zOffset} 0.088
set_fixed_camera_position 120@ {y} 130@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 122@ {y} 132@ {z} 142@ {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:SWEET4_18840
if 
  get_fading_status 
goto_if_false @SWEET4_18864
wait 0
goto @SWEET4_18840

:SWEET4_18864
389@ = 42
59@ = get_game_timer 
52@ = 1

:SWEET4_18883
if 
  52@ == 1
goto_if_false @SWEET4_18992
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_18992
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_18992
389@ = 43
59@ = get_game_timer 
52@ = 2
$sw4_blipped = 3

:SWEET4_18992
if 
  $sw4_blipped == 3
goto_if_false @SWEET4_19331
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19117
remove_char_elegantly 401@
if 
  52@ == 2
goto_if_false @SWEET4_19117
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19117
389@ = 44
59@ = get_game_timer 
52@ = 3

:SWEET4_19117
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  52@ == 3
goto_if_false @SWEET4_19219
if 
  71@ > 1000
goto_if_false @SWEET4_19219
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19219
389@ = 45
59@ = get_game_timer 
52@ = 4

:SWEET4_19219
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  not is_char_dead 408@
goto_if_false @SWEET4_19331
if 
  71@ > 1000
goto_if_false @SWEET4_19331
410@ = get_script_task_status 408@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 410@ == 7
  52@ == 4
goto_if_false @SWEET4_19331
perform_sequence_task 408@ {sequence} 117@
59@ = get_game_timer 
$sw4_blipped = 4

:SWEET4_19331
if 
  $sw4_blipped == 4
goto_if_false @SWEET4_19448
if 
  not is_char_dead 394@
goto_if_false @SWEET4_19448
396@ = get_script_task_status 394@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 396@ == 7
  390@ == 0
goto_if_false @SWEET4_19448
perform_sequence_task 394@ {sequence} 117@
wait 100
perform_sequence_task $scplayer {sequence} 117@
59@ = get_game_timer 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.Out
$sw4_blipped = 5

:SWEET4_19448
if 
  $sw4_blipped == 5
goto_if_false @SWEET4_19715
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19715

:SWEET4_19506
if 
  get_fading_status 
goto_if_false @SWEET4_19530
wait 0
goto @SWEET4_19506

:SWEET4_19530
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET4_19618
warp_char_from_car_to_coord $scplayer {x} 2511.0 {y} -1671.0 {z} 12.5
goto @SWEET4_19638

:SWEET4_19618
set_char_coordinates $scplayer {x} 2511.0 {y} -1671.0 {z} 12.5

:SWEET4_19638
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1
set_char_heading $scplayer {heading} 223.0
remove_char_elegantly 408@
remove_char_elegantly 394@
59@ = get_game_timer 
$sw4_blipped = 7

:SWEET4_19715
if 
  $sw4_blipped == 7
goto_if_false @SWEET4_19858
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 100
goto_if_false @SWEET4_19858
if 
  not is_car_dead 543@
goto_if_false @SWEET4_19858
delete_char 394@
delete_char 394@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
do_fade 2000 {direction} Fade.In

:SWEET4_19820
if 
  get_fading_status 
goto_if_false @SWEET4_19844
wait 0
goto @SWEET4_19820

:SWEET4_19844
goto @SWEET4_23663
$sw4_blipped = 8

:SWEET4_19858
if and
  $6636 > 2
  8 > $6636
goto_if_false @SWEET4_21901
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_20588
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_20588
if and
  not is_char_in_car $scplayer {vehicle} 543@
  is_char_on_foot $scplayer
goto_if_false @SWEET4_20588
close_all_car_doors 543@
if 
  51@ == 0
goto_if_false @SWEET4_20007
96@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 543@
task_car_drive_wander -1 {vehicle} 543@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 96@
51@ = 1

:SWEET4_20007
46@ = 0
79@ = 15000
544@ = add_blip_for_car 543@
set_blip_as_friendly 544@ {state} True
if 
  $6636 == 3
goto_if_false @SWEET4_20060
remove_blip 57@

:SWEET4_20060
if 
  $6636 == 5
goto_if_false @SWEET4_20523
clear_onscreen_counter $sw4_text_timer_flag
if 
  34@ == 1
goto_if_false @SWEET4_20193
if 
  $sw4_ammo == 0
goto_if_false @SWEET4_20124
remove_blip 433@

:SWEET4_20124
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_20147
remove_blip 434@

:SWEET4_20147
if 
  $6641 == 0
goto_if_false @SWEET4_20170
remove_blip 435@

:SWEET4_20170
if 
  $6642 == 0
goto_if_false @SWEET4_20193
remove_blip 436@

:SWEET4_20193
if 
  34@ == 2
goto_if_false @SWEET4_20303
if 
  $6643 == 0
goto_if_false @SWEET4_20234
remove_blip 437@

:SWEET4_20234
if 
  $6644 == 0
goto_if_false @SWEET4_20257
remove_blip 438@

:SWEET4_20257
if 
  $6645 == 0
goto_if_false @SWEET4_20280
remove_blip 439@

:SWEET4_20280
if 
  $6646 == 0
goto_if_false @SWEET4_20303
remove_blip 440@

:SWEET4_20303
if 
  34@ == 3
goto_if_false @SWEET4_20413
if 
  $6647 == 0
goto_if_false @SWEET4_20344
remove_blip 441@

:SWEET4_20344
if 
  $6648 == 0
goto_if_false @SWEET4_20367
remove_blip 442@

:SWEET4_20367
if 
  $6649 == 0
goto_if_false @SWEET4_20390
remove_blip 443@

:SWEET4_20390
if 
  $6650 == 0
goto_if_false @SWEET4_20413
remove_blip 444@

:SWEET4_20413
if 
  34@ == 4
goto_if_false @SWEET4_20523
if 
  $6651 == 0
goto_if_false @SWEET4_20454
remove_blip 445@

:SWEET4_20454
if 
  $6652 == 0
goto_if_false @SWEET4_20477
remove_blip 446@

:SWEET4_20477
if 
  $6653 == 0
goto_if_false @SWEET4_20500
remove_blip 447@

:SWEET4_20500
if 
  $6654 == 0
goto_if_false @SWEET4_20523
remove_blip 448@

:SWEET4_20523
if 
  $6636 == 6
goto_if_false @SWEET4_20546
remove_blip $6657

:SWEET4_20546
if 
  $6636 == 7
goto_if_false @SWEET4_20569
remove_blip 58@

:SWEET4_20569
lock_car_doors 543@ {lockStatus} CarLock.Unlocked
61@ = get_game_timer 
$sw4_spray_marker = 1

:SWEET4_20588
if 
  $sw4_spray_marker == 1
goto_if_false @SWEET4_21901
if 
  78@ >= 0
goto_if_false @SWEET4_20945
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
79@ = 10000
sub_int_lvar_from_int_lvar 79@ -= 73@
set_lvar_int_to_lvar_int 78@ = 79@
78@ /= 1000
if 
  46@ == 0
goto_if_false @SWEET4_20716
59@ = get_game_timer 
44@ = generate_random_int_in_range 0 {max} 2
46@ = 1

:SWEET4_20716
if 
  46@ == 1
goto_if_false @SWEET4_20945
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 200
goto_if_false @SWEET4_20945
if 
  44@ == 0
goto_if_false @SWEET4_20831
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20831
389@ = 26
44@ = 5

:SWEET4_20831
if 
  44@ == 1
goto_if_false @SWEET4_20888
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20888
389@ = 27
44@ = 5

:SWEET4_20888
if 
  44@ == 2
goto_if_false @SWEET4_20945
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20945
389@ = 28
44@ = 5

:SWEET4_20945
if and
  100 > 79@
  79@ > 0
goto_if_false @SWEET4_21013
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SWEET4_21013
lock_car_doors 543@ {lockStatus} CarLock.Locked

:SWEET4_21013
if 
  0 > 78@
goto_if_false @SWEET4_21038
78@ = 0

:SWEET4_21038
if 
  78@ == 0
goto_if_false @SWEET4_21175
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SWEET4_21175
if 
  not is_char_dead 394@
goto_if_false @SWEET4_21175
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_21175
lock_car_doors 543@ {lockStatus} CarLock.Locked
perform_sequence_task 394@ {sequence} 96@
clear_prints 
389@ = 29
61@ = get_game_timer 
remove_blip 544@
$6636 = 666

:SWEET4_21175
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_21901
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_21901
46@ = 0
remove_blip 544@
if 
  $6636 == 3
goto_if_false @SWEET4_21259
57@ = add_blip_for_coord 54@ {y} 55@ {z} 56@

:SWEET4_21259
if 
  $6636 == 5
goto_if_false @SWEET4_21780
if 
  84@ == 1
goto_if_false @SWEET4_21316
clear_onscreen_counter $sw4_text_timer_flag
display_onscreen_counter_with_string $sw4_text_timer_flag {display} CounterDisplay.Bar {text} 'SWE4_08'

:SWEET4_21316
if 
  not is_char_dead 415@
goto_if_false @SWEET4_21345
remove_blip 433@
433@ = add_blip_for_char 415@

:SWEET4_21345
if 
  not is_char_dead 416@
goto_if_false @SWEET4_21374
remove_blip 434@
434@ = add_blip_for_char 416@

:SWEET4_21374
if 
  not is_char_dead 417@
goto_if_false @SWEET4_21403
remove_blip 435@
435@ = add_blip_for_char 417@

:SWEET4_21403
if 
  not is_char_dead 418@
goto_if_false @SWEET4_21432
remove_blip 436@
436@ = add_blip_for_char 418@

:SWEET4_21432
if 
  not is_char_dead 419@
goto_if_false @SWEET4_21461
remove_blip 437@
437@ = add_blip_for_char 419@

:SWEET4_21461
if 
  not is_char_dead 420@
goto_if_false @SWEET4_21490
remove_blip 438@
438@ = add_blip_for_char 420@

:SWEET4_21490
if 
  not is_char_dead 421@
goto_if_false @SWEET4_21519
remove_blip 439@
439@ = add_blip_for_char 421@

:SWEET4_21519
if 
  not is_char_dead 422@
goto_if_false @SWEET4_21548
remove_blip 440@
440@ = add_blip_for_char 422@

:SWEET4_21548
if 
  not is_char_dead 423@
goto_if_false @SWEET4_21577
remove_blip 441@
441@ = add_blip_for_char 423@

:SWEET4_21577
if 
  not is_char_dead 424@
goto_if_false @SWEET4_21606
remove_blip 442@
442@ = add_blip_for_char 424@

:SWEET4_21606
if 
  not is_char_dead 425@
goto_if_false @SWEET4_21635
remove_blip 443@
443@ = add_blip_for_char 425@

:SWEET4_21635
if 
  not is_char_dead 426@
goto_if_false @SWEET4_21664
remove_blip 444@
444@ = add_blip_for_char 426@

:SWEET4_21664
if 
  not is_char_dead 427@
goto_if_false @SWEET4_21693
remove_blip 445@
445@ = add_blip_for_char 427@

:SWEET4_21693
if 
  not is_char_dead 428@
goto_if_false @SWEET4_21722
remove_blip 446@
446@ = add_blip_for_char 428@

:SWEET4_21722
if 
  not is_char_dead 429@
goto_if_false @SWEET4_21751
remove_blip 447@
447@ = add_blip_for_char 429@

:SWEET4_21751
if 
  not is_char_dead 430@
goto_if_false @SWEET4_21780
remove_blip 448@
448@ = add_blip_for_char 430@

:SWEET4_21780
if 
  $6636 == 6
goto_if_false @SWEET4_21843
$sw4_text_timer_diff = 18
82@ = get_game_timer 
82@ -= 5000
remove_blip $6657
$6657 = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21

:SWEET4_21843
if 
  $6636 == 7
goto_if_false @SWEET4_21880
remove_blip 58@
58@ = add_blip_for_coord 89@ {y} 90@ {z} 91@

:SWEET4_21880
clear_prints 
78@ = 1
$6668 = get_game_timer 
$sw4_spray_marker = 0

:SWEET4_21901
if 
  $6636 == 666
goto_if_false @SWEET4_22036
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_22036
if and
  not is_char_dead 394@
  not is_car_dead 543@
goto_if_false @SWEET4_22036
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22036
task_car_drive_wander 394@ {vehicle} 543@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
389@ = 32
$6636 = 667

:SWEET4_22036
if 
  $6636 == 667
goto_if_false @SWEET4_22135
if 
  not is_car_dead 543@
goto_if_false @SWEET4_22135
if or
  not is_car_on_screen 543@
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SWEET4_22135
print_now 'SWE4_05' {time} 5000 {flag} 1
goto @SWEET4_23645

:SWEET4_22135
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_23638
if 
  $6636 == 3
goto_if_false @SWEET4_22569
if 
  $sw4_text_timer_diff == -1
goto_if_false @SWEET4_22276
if 
  390@ == 0
goto_if_false @SWEET4_22222
print 'SWE4_01' {time} 100 {flag} 1

:SWEET4_22222
$sw4_text_timer_start = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 3000
goto_if_false @SWEET4_22276
clear_prints 
$sw4_text_timer_diff += 1
$6668 = get_game_timer 

:SWEET4_22276
if 
  $sw4_text_timer_diff == 0
goto_if_false @SWEET4_22326
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22326
389@ = 1

:SWEET4_22326
if 
  $sw4_text_timer_diff == 1
goto_if_false @SWEET4_22376
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22376
389@ = 2

:SWEET4_22376
if 
  $sw4_text_timer_diff == 2
goto_if_false @SWEET4_22426
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22426
389@ = 5

:SWEET4_22426
if 
  $sw4_text_timer_diff == 6
goto_if_false @SWEET4_22476
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22476
389@ = 9

:SWEET4_22476
if 
  $sw4_text_timer_diff == 7
goto_if_false @SWEET4_22526
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22526
389@ = 10

:SWEET4_22526
if 
  $sw4_text_timer_diff == 8
goto_if_false @SWEET4_22569
if 
  390@ == 0
goto_if_false @SWEET4_22569
389@ = 11

:SWEET4_22569
if 
  $6636 == 4
goto_if_false @SWEET4_22945
if 
  $sw4_text_timer_diff == 9
goto_if_false @SWEET4_22637
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22637
389@ = 12

:SWEET4_22637
if 
  $sw4_text_timer_diff == 10
goto_if_false @SWEET4_22687
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22687
389@ = 13

:SWEET4_22687
if 
  $sw4_text_timer_diff == 11
goto_if_false @SWEET4_22737
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22737
389@ = 14

:SWEET4_22737
if 
  $sw4_text_timer_diff == 12
goto_if_false @SWEET4_22787
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22787
389@ = 15

:SWEET4_22787
if 
  $sw4_text_timer_diff == 13
goto_if_false @SWEET4_22945
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22945
389@ = 16
if 
  not is_char_dead 417@
goto_if_false @SWEET4_22889
task_play_anim 417@ {animationName} "GSIGN3" {animationFile} "GHANDS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_22889
if 
  not is_char_dead 418@
goto_if_false @SWEET4_22945
task_play_anim 418@ {animationName} "DRNKBR_PRTL" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_22945
if 
  $6636 == 6
goto_if_false @SWEET4_23323
if 
  49@ == 0
goto_if_false @SWEET4_23177
if 
  $sw4_text_timer_diff == 14
goto_if_false @SWEET4_23066
print 'SWE4_12' {time} 100 {flag} 1
$sw4_text_timer_start = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 4000
goto_if_false @SWEET4_23066
$sw4_text_timer_diff += 1
$6668 = get_game_timer 

:SWEET4_23066
if 
  $sw4_text_timer_diff == 15
goto_if_false @SWEET4_23170
print 'SWE4_03' {time} 100 {flag} 1
$sw4_text_timer_start = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 4000
goto_if_false @SWEET4_23170
82@ = get_game_timer 
$sw4_text_timer_diff += 1
$sw4_text_timer_diff += 1
$sw4_text_timer_diff += 1
$6668 = get_game_timer 

:SWEET4_23170
goto @SWEET4_23323

:SWEET4_23177
if 
  $sw4_text_timer_diff == 14
goto_if_false @SWEET4_23227
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23227
389@ = 55

:SWEET4_23227
if 
  $sw4_text_timer_diff == 15
goto_if_false @SWEET4_23277
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23277
389@ = 56

:SWEET4_23277
if 
  $sw4_text_timer_diff == 16
goto_if_false @SWEET4_23323
print 'SWE4_03' {time} 4000 {flag} 1
$sw4_text_timer_diff += 1
$6668 = get_game_timer 

:SWEET4_23323
if and
  $6636 == 7
  43@ == 4
goto_if_false @SWEET4_23638
$sw4_text_timer_start = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 6000
goto_if_false @SWEET4_23438
if 
  $sw4_text_timer_diff == 18
goto_if_false @SWEET4_23438
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23438
389@ = 37

:SWEET4_23438
if 
  $sw4_text_timer_diff == 19
goto_if_false @SWEET4_23488
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23488
389@ = 38

:SWEET4_23488
if 
  $sw4_text_timer_diff == 20
goto_if_false @SWEET4_23538
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23538
389@ = 39

:SWEET4_23538
if 
  $sw4_text_timer_diff == 21
goto_if_false @SWEET4_23588
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23588
389@ = 40

:SWEET4_23588
if 
  $sw4_text_timer_diff == 22
goto_if_false @SWEET4_23638
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23638
389@ = 41

:SWEET4_23638
goto @SWEET4_7477

:SWEET4_23645
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET4_23663
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_4'
player_made_progress 1
add_score $player1 {money} 500
award_player_mission_respect 6
print_with_number_big 'M_PASSS' {num} 500 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
start_new_script @RYDER 
remove_blip $ryder_contact_blip
$ryder_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
clear_wanted_level $player1
return 

:SWEET4_23765
gosub @SWEET4_3259
gosub @SWEET4_3024
remove_char_elegantly 408@
remove_char_elegantly 401@
remove_char_elegantly 394@
unload_special_character 10
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 365
remove_animation "GHANDS"
remove_animation "GANGS"
remove_blip 544@
remove_blip 57@
remove_blip 58@
remove_blip 433@
remove_blip 434@
remove_blip 435@
remove_blip 436@
remove_blip 437@
remove_blip 438@
remove_blip 439@
remove_blip 440@
remove_blip 441@
remove_blip 442@
remove_blip 443@
remove_blip 444@
remove_blip 445@
remove_blip 446@
remove_blip 447@
remove_blip 448@
remove_blip $spray_shop1
remove_blip $6657
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
set_free_resprays False
set_wanted_multiplier 1.0
set_max_wanted_level 53@
set_create_random_cops True
switch_cops_on_bikes True
switch_car_generator $gen_car6 {amount} 101
dont_suppress_car_model 412
remove_animation "GHETTO_DB"
clear_onscreen_counter $sw4_text_timer_flag
set_music_does_fade True
set_create_random_gang_members True
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:SWEET4_24058
if 
  not is_char_dead 194@
goto_if_false @SWEET4_24088
86@, 87@, 88@ = get_char_coordinates 194@

:SWEET4_24088
195@ = -1
199@ = 99999.8984
39@ = 0

:SWEET4_24112
if 
  18 > 39@
goto_if_false @SWEET4_24258
if 
  not is_char_dead 415@(39@,18i)
goto_if_false @SWEET4_24244
get_char_coordinates 415@(39@,18i) {var_x} 451@(39@,18f) {var_y} 469@(39@,18f) {var_z} 487@(39@,18f)
200@ = get_distance_between_coords_2d 86@ {fromY} 87@ {toX} 451@(39@,18f) {toZ} 469@(39@,18f)
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @SWEET4_24244
set_lvar_float_to_lvar_float 199@ = 200@
set_lvar_int_to_lvar_int 195@ = 415@(39@,18i)

:SWEET4_24244
39@ += 1
goto @SWEET4_24112

:SWEET4_24258
if 
  195@ >= 0
goto_if_false @SWEET4_24342
if and
  not is_char_dead 195@
  not is_char_dead 194@
goto_if_false @SWEET4_24342
task_drive_by 194@ {targetChar} 195@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 40.0 {type} 41@ {rightHandCarSeat} 40@ {fireRate} 99
set_current_char_weapon 194@ {weaponType} WeaponType.Tec9

:SWEET4_24342
62@ = get_game_timer 
return 

:SWEET4_24349
if and
  389@ <= 11
  17 <= 389@
goto_if_false @SWEET4_24381
326@ = 0

:SWEET4_24381
if and
  389@ <= 41
  46 <= 389@
goto_if_false @SWEET4_24413
326@ = 0

:SWEET4_24413
if or
  389@ == 12
  389@ == 14
  389@ == 16
  389@ == 42
  389@ == 43
goto_if_false @SWEET4_24467
set_lvar_int_to_lvar_int 326@ = 408@

:SWEET4_24467
if or
  389@ == 13
  389@ == 44
goto_if_false @SWEET4_24500
set_lvar_int_to_var_int 326@ = $scplayer

:SWEET4_24500
if 
  389@ == 15
goto_if_false @SWEET4_24526
set_lvar_int_to_lvar_int 326@ = 401@

:SWEET4_24526
if 
  389@ == 45
goto_if_false @SWEET4_24552
set_lvar_int_to_lvar_int 326@ = 394@

:SWEET4_24552
return 

//-------------Mission 18---------------
// Originally: Sweet's Girl

:HOODS5
script_name 'HOODS5'
gosub @HOODS5_251
if 
  has_deatharrest_been_executed 
goto_if_false @HOODS5_38
gosub @HOODS5_15216

:HOODS5_38
gosub @HOODS5_15289
terminate_this_script 
if 
  127@ == 99
goto_if_false @HOODS5_251
50@ = create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 20 {x} 2444.895 {y} -1981.524 {z} 13.933
49@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.Ammugun
48@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.Ammugun
75@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
43@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
37@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
71@ = add_blip_for_char 75@
72@ = add_blip_for_char 75@
201@ = add_blip_for_char 75@
202@ = add_blip_for_char 75@
167@ = add_blip_for_pickup 50@

:HOODS5_251
register_mission_given 
$onmission = 1
set_player_group_to_follow_always $player1 {state} True
154@ = 14
155@ = 15
156@ = 16
157@ = 17
158@ = 18
161@ = 21
148@ = 0
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1

:HOODS5_325
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HOODS5_351
goto @HOODS5_15234

:HOODS5_351
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @HOODS5_454
set_char_coordinates $scplayer {x} 2769.4919 {y} -1967.329 {z} 12.3834
36@ = 0

:HOODS5_393
if 
  6 > 36@
goto_if_false @HOODS5_454
if 
  not is_char_dead 37@(36@,6i)
goto_if_false @HOODS5_440
task_die 37@(36@,6i)

:HOODS5_440
36@ += 1
goto @HOODS5_393

:HOODS5_454
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @HOODS5_476
127@ = 7

:HOODS5_476
switch_start 127@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @HOODS5_737 {caseNum1} 0 {caseLabel1} @HOODS5_604 {caseNum2} 1 {caseLabel2} @HOODS5_625 {caseNum3} 2 {caseLabel3} @HOODS5_639 {caseNum4} 3 {caseLabel4} @HOODS5_653 {caseNum5} 4 {caseLabel5} @HOODS5_667 {caseNum6} 5 {caseLabel6} @HOODS5_681 {caseNum7} 6 {caseLabel7} @HOODS5_695
switch_continued 7 {caseLabel1} @HOODS5_709 {caseNum2} 8 {caseLabel2} @HOODS5_723 {caseNum3} -1 {caseLabel3} @HOODS5_737 {caseNum4} -1 {caseLabel4} @HOODS5_737 {caseNum5} -1 {caseLabel5} @HOODS5_737 {caseNum6} -1 {caseLabel6} @HOODS5_737 {caseNum7} -1 {caseLabel7} @HOODS5_737 {caseNum8} -1 {caseLabel8} @HOODS5_737 {caseNum9} -1 {caseLabel9} @HOODS5_737

:HOODS5_604
gosub @HOODS5_918
127@ = 1
goto @HOODS5_737

:HOODS5_625
gosub @HOODS5_1302
goto @HOODS5_737

:HOODS5_639
gosub @HOODS5_3513
goto @HOODS5_737

:HOODS5_653
gosub @HOODS5_4668
goto @HOODS5_737

:HOODS5_667
gosub @HOODS5_5153
goto @HOODS5_737

:HOODS5_681
gosub @HOODS5_5483
goto @HOODS5_737

:HOODS5_695
gosub @HOODS5_7802
goto @HOODS5_737

:HOODS5_709
gosub @HOODS5_9684
goto @HOODS5_737

:HOODS5_723
goto @HOODS5_15234
goto @HOODS5_737

:HOODS5_737
gosub @HOODS5_792
gosub @HOODS5_890
gosub @HOODS5_13224
if 
  126@ == 1
goto_if_false @HOODS5_783
goto @HOODS5_15216

:HOODS5_783
goto @HOODS5_325
return 

:HOODS5_792
if 
  125@ == 1
goto_if_false @HOODS5_888
if 
  is_char_dead 75@
goto_if_false @HOODS5_849
126@ = 1
print 'SW5_L' {time} 4000 {flag} 1

:HOODS5_849
if 
  is_char_dead 43@
goto_if_false @HOODS5_888
126@ = 1
print 'SW5_M' {time} 4000 {flag} 1

:HOODS5_888
return 

:HOODS5_890
if 
  has_pickup_been_collected $emmets_gun
goto_if_false @HOODS5_916
remove_blip 49@
remove_blip 167@

:HOODS5_916
return 

:HOODS5_918
clear_area $sweet_carX {y} $sweet_carY {z} $sweet_carZ {radius} 5.0 {clearParticles} True
switch_car_generator $gen_car6 {amount} 0
request_model 330
request_model 12
request_model 372
request_model 405
request_model 346
request_model 492
request_model 105
request_model 106
load_special_character 1 {modelName} 'SWEET'
load_all_models_now 

:HOODS5_995
if or
  not has_model_loaded 330
  not has_model_loaded 12
  not has_model_loaded 372
  not has_model_loaded 346
  not has_model_loaded 405
goto_if_false @HOODS5_1041
wait 0
goto @HOODS5_995

:HOODS5_1041
if or
  not has_special_character_loaded 1
  not has_model_loaded 105
  not has_model_loaded 106
  not has_model_loaded 492
goto_if_false @HOODS5_1080
wait 0
goto @HOODS5_1041

:HOODS5_1080
request_animation "SWEET"
request_animation "GANGS"

:HOODS5_1098
if or
  not has_animation_loaded "SWEET"
  not has_animation_loaded "GANGS"
goto_if_false @HOODS5_1138
wait 0
goto @HOODS5_1098

:HOODS5_1138
request_car_recording 153
request_car_recording 154

:HOODS5_1148
if or
  not has_car_recording_been_loaded 153
  not has_car_recording_been_loaded 154
goto_if_false @HOODS5_1180
wait 0
goto @HOODS5_1148

:HOODS5_1180
99@ = load_char_decision_maker DecisionMakerType.Empty
100@ = load_char_decision_maker DecisionMakerType.Tough
47@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission3
clear_char_decision_maker_event_response 47@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 47@ {event} Event.Damage
clear_char_decision_maker_event_response 47@ {event} Event.GunAimedAt
$sw4_health = 0
$sw5_target = 0
$6676 = 0
$6677 = 0
$6678 = 0
$6679 = 0
198@ = 99999.0
199@ = 99999.0
return 

:HOODS5_1302
if 
  148@ > 1
goto_if_false @HOODS5_1379
if 
  166@ == 0
goto_if_false @HOODS5_1379
if 
  is_skip_cutscene_button_pressed 
goto_if_false @HOODS5_1379
148@ = 7
147@ = 1
355@ = 5
35@ = 0

:HOODS5_1379
if 
  148@ == 0
goto_if_false @HOODS5_1786
load_mission_text 'SWEET5'
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_area_visible 1
load_cutscene 'SWEET5A'

:HOODS5_1437
if 
  not has_cutscene_loaded 
goto_if_false @HOODS5_1461
wait 0
goto @HOODS5_1437

:HOODS5_1461
start_cutscene 
do_fade 1000 {direction} Fade.In

:HOODS5_1470
if 
  not has_cutscene_finished 
goto_if_false @HOODS5_1494
wait 0
goto @HOODS5_1470

:HOODS5_1494
do_fade 0 {direction} Fade.Out

:HOODS5_1500
if 
  get_fading_status 
goto_if_false @HOODS5_1524
wait 0
goto @HOODS5_1500

:HOODS5_1524
clear_cutscene 
set_area_visible 0
48@ = add_blip_for_coord 2775.793 {y} -1942.9091 {z} 15.6576
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy
49@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.EmmetGun
remove_pickup $emmets_gun
$emmets_gun = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 16 {x} 2447.7729 {y} -1975.663 {z} 13.0
167@ = add_blip_for_pickup $emmets_gun
change_blip_display 167@ {display} BlipDisplay.MarkerOnly
request_collision 2770.116 {y} -1915.896
set_char_coordinates $scplayer {x} 2770.116 {y} -1915.896 {z} 11.651
clear_char_tasks_immediately $scplayer
load_scene 2770.116 {y} -1915.896 {z} 11.651
set_fixed_camera_position 2770.897 {y} -1915.951 {z} 12.6746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2770.3369 {y} -1916.334 {z} 13.4091 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
do_fade 1500 {direction} Fade.In
352@ = 29
148@ = 1
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_1786
if 
  148@ == 1
goto_if_false @HOODS5_1860
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_1860
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2200
355@ = 3
148@ = 20

:HOODS5_1860
if 
  148@ == 20
goto_if_false @HOODS5_2062
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2062
if 
  352@ == 0
goto_if_false @HOODS5_2062
75@ = create_char PedType.Mission3 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
105@ = create_car 492 {x} 2745.5449 {y} -1942.74 {z} 12.5394
set_car_heading 105@ {heading} 90.0
set_char_heading 75@ {heading} 0.0
43@ = create_char PedType.Mission3 {modelId} 12 {x} 2751.282 {y} -1948.8669 {z} 16.3125
set_char_heading 43@ {heading} 0.0
set_char_decision_maker 43@ {handleOrTemplate} 99@
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
352@ = 1
354@ = 7
148@ = 2

:HOODS5_2062
if 
  148@ == 2
goto_if_false @HOODS5_2469
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2469
if 
  not is_char_dead 75@
goto_if_false @HOODS5_2150
68@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_use_mobile_phone -1 {start} True
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_2150
if 
  not is_char_dead 43@
goto_if_false @HOODS5_2233
68@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "DUCK_COWER" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 16000
close_sequence_task 68@
perform_sequence_task 43@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_2233
37@ = create_char PedType.Mission2 {modelId} 106 {x} 2751.5149 {y} -1973.178 {z} 16.3051
set_char_accuracy 37@ {accuracy} 40
set_char_decision_maker 37@ {handleOrTemplate} 99@
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_duck 37@ {state} True
68@ = open_sequence_task 
task_pause -1 {time} 2500
task_go_straight_to_coord -1 {x} 2751.791 {y} -1964.08 {z} 16.3125 {speed} MoveState.Walk {time} -2
task_pause -1 {time} 3500
task_go_straight_to_coord -1 {x} 2751.791 {y} -1954.08 {z} 16.3125 {speed} MoveState.Walk {time} -2
close_sequence_task 68@
perform_sequence_task 37@ {sequence} 68@
clear_sequence_task 68@
38@ = create_char PedType.Mission2 {modelId} 105 {x} 2753.197 {y} -1973.946 {z} 16.3051
set_char_accuracy 38@ {accuracy} 40
give_weapon_to_char 38@ {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_duck 38@ {state} True
task_shoot_at_coord 38@ {x} 2753.1499 {y} -1949.642 {z} 16.5866 {time} -2
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_2469
if 
  148@ == 3
goto_if_false @HOODS5_2598
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2598
if 
  352@ == 3
goto_if_false @HOODS5_2598
set_fixed_camera_position 2753.7839 {y} -1947.4659 {z} 16.489 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2753.2549 {y} -1948.292 {z} 16.6835 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 4

:HOODS5_2598
if 
  148@ == 4
goto_if_false @HOODS5_2658
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2658
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 5

:HOODS5_2658
if 
  148@ == 5
goto_if_false @HOODS5_2791
if 
  352@ == 7
goto_if_false @HOODS5_2791
set_fixed_camera_position 2770.897 {y} -1915.951 {z} 12.6746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2770.3369 {y} -1916.334 {z} 13.4091 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @HOODS5_2768
set_char_accuracy 75@ {accuracy} 100

:HOODS5_2768
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4500
148@ = 21

:HOODS5_2791
if 
  148@ == 21
goto_if_false @HOODS5_2858
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2858
task_use_mobile_phone $scplayer {start} False
148@ = 6
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1000

:HOODS5_2858
if 
  148@ == 6
goto_if_false @HOODS5_3111
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3111
set_fixed_camera_position 2756.252 {y} -1949.02 {z} 17.513 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2755.4021 {y} -1949.5179 {z} 17.3404 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @HOODS5_3088
clear_char_tasks_immediately 75@
task_toggle_duck 75@ {state} True
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 500
set_current_char_weapon 75@ {weaponType} WeaponType.Pistol
set_char_heading 75@ {heading} 180.0
68@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
if 
  not is_char_dead 37@
goto_if_false @HOODS5_3070
task_shoot_at_char -1 {target} 37@ {time} -2

:HOODS5_3070
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_3088
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 7

:HOODS5_3111
if 
  148@ == 7
goto_if_false @HOODS5_3171
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3171
clear_prints 
166@ = 1
do_fade 1000 {direction} Fade.Out
148@ = 8

:HOODS5_3171
if 
  148@ == 8
goto_if_false @HOODS5_3345
if 
  not get_fading_status 
goto_if_false @HOODS5_3345
request_collision 2518.7891 {y} -1677.22
set_char_coordinates $scplayer {x} 2518.448 {y} -1677.224 {z} 13.4109
set_char_heading $scplayer {heading} 90.691
load_scene 2510.2839 {y} -1674.066 {z} 14.5338
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 9
$6680 = 100
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA
display_onscreen_counter_with_string $6680 {display} CounterDisplay.Bar {text} 'SW5_A3'
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA

:HOODS5_3345
if 
  148@ == 9
goto_if_false @HOODS5_3511
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3511
do_fade 1500 {direction} Fade.In
delete_char 75@
delete_char 37@
delete_char 38@
delete_char 43@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
34@ = get_script_task_status $scplayer {taskId} 1833
print 'SW5_A2' {time} 6000 {flag} 1
print 'SW5_17' {time} 6000 {flag} 1
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
set_wanted_multiplier 0.2
147@ = 1
127@ = 2

:HOODS5_3511
return 

:HOODS5_3513
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 170@
goto_if_false @HOODS5_3616
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA
171@ = generate_random_int_in_range 2 {max} 4
sub_int_lvar_from_int_var $6680 -= 171@
if 
  0 >= $6680
goto_if_false @HOODS5_3616
$6680 = 0
print 'SW5_L' {time} 4000 {flag} 1
125@ = 1

:HOODS5_3616
if 
  97@ == 0
goto_if_false @HOODS5_4349
if 
  locate_char_any_means_3d $scplayer {x} 2775.793 {y} -1942.9091 {z} 15.6576 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @HOODS5_4349
set_create_random_gang_members False
97@ = 1
print 'SW5_J' {time} 4000 {flag} 1
106@ = 2761.5161
112@ = -1972.028
118@ = 12.5459
set_lvar_int_to_constant 140@ = 105
107@ = 2761.5991
113@ = -1955.673
119@ = 12.5469
set_lvar_int_to_constant 141@ = 106
108@ = 2768.4509
114@ = -1972.605
120@ = 12.3837
set_lvar_int_to_constant 142@ = 105
109@ = 2761.551
115@ = -1980.099
121@ = 12.5478
set_lvar_int_to_constant 143@ = 106
110@ = 2752.1589
116@ = -1979.574
122@ = 14.0469
set_lvar_int_to_constant 144@ = 106
111@ = 2768.4509
117@ = -1972.605
123@ = 12.3837
set_lvar_int_to_constant 145@ = 105
172@ = create_car 492 {x} 2766.9231 {y} -1974.348 {z} 12.3783
set_car_heading 172@ {heading} 4.0
36@ = 0

:HOODS5_3971
if 
  5 > 36@
goto_if_false @HOODS5_4165
create_char PedType.Mission1 {modelId} 140@(36@,6i) {x} 106@(36@,6f) {y} 112@(36@,6f) {z} 118@(36@,6f) {var_handle} 37@(36@,6i)
set_char_accuracy 37@(36@,6i) {accuracy} 65
if or
  36@ == 0
  36@ == 3
goto_if_false @HOODS5_4087
give_weapon_to_char 37@(36@,6i) {weaponType} WeaponType.Tec9 {ammo} 99999
goto @HOODS5_4103

:HOODS5_4087
give_weapon_to_char 37@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 99999

:HOODS5_4103
task_toggle_duck 37@(36@,6i) {state} True
task_shoot_at_coord 37@(36@,6i) {x} 2750.957 {y} -1968.016 {z} 17.9291 {time} -2
set_char_kinda_stay_in_same_place 37@(36@,6i) {state} True
36@ += 1
goto @HOODS5_3971

:HOODS5_4165
51@ = add_blip_for_char 37@
52@ = add_blip_for_char 38@
53@ = add_blip_for_char 39@
54@ = add_blip_for_char 40@
55@ = add_blip_for_char 41@
remove_blip 48@
set_char_decision_maker 37@ {handleOrTemplate} 47@
set_char_decision_maker 38@ {handleOrTemplate} 47@
set_char_decision_maker 39@ {handleOrTemplate} 47@
set_char_decision_maker 40@ {handleOrTemplate} 47@
set_char_decision_maker 41@ {handleOrTemplate} 47@
set_char_is_target_priority 37@ {state} True
set_char_is_target_priority 38@ {state} True
set_char_is_target_priority 39@ {state} True
set_char_is_target_priority 40@ {state} True
set_char_is_target_priority 41@ {state} True
switch_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752

:HOODS5_4349
if 
  97@ == 1
goto_if_false @HOODS5_4666
gosub @HOODS5_11951
if 
  146@ == 0
goto_if_false @HOODS5_4474
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2782.6931 {leftBottomY} -1921.125 {leftBottomZ} 11.7984 {rightTopX} 2746.0979 {rightTopY} -1993.905 {rightTopZ} 16.9599 {drawSphere} False
goto_if_false @HOODS5_4474
if 
  not is_char_in_any_car $scplayer
goto_if_false @HOODS5_4474
146@ = 1
print_help 'SW5_19'

:HOODS5_4474
36@ = 0
57@ = 0

:HOODS5_4488
if 
  5 > 36@
goto_if_false @HOODS5_4587
if 
  is_char_dead 37@(36@,6i)
goto_if_false @HOODS5_4549
remove_blip 51@(36@,6i)
57@ += 1
goto @HOODS5_4573

:HOODS5_4549
set_char_accuracy 37@(36@,6i) {accuracy} 173@
set_char_shoot_rate 37@(36@,6i) {rate} 173@

:HOODS5_4573
36@ += 1
goto @HOODS5_4488

:HOODS5_4587
set_lvar_int_to_lvar_int 173@ = 57@
173@ *= 6
173@ += 60
if 
  57@ == 5
goto_if_false @HOODS5_4666
148@ = 0
130@ = 0
131@ = 0
128@ = 0
127@ = 3
set_script_limit_to_gang_size 0

:HOODS5_4666
return 

:HOODS5_4668
if 
  148@ == 0
goto_if_false @HOODS5_4709
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500
148@ = 1

:HOODS5_4709
if 
  148@ == 1
goto_if_false @HOODS5_4781
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4781
352@ = 29
clear_onscreen_counter $6680
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 2

:HOODS5_4781
if 
  148@ == 2
goto_if_false @HOODS5_4848
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4848
352@ = 29
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 3

:HOODS5_4848
if 
  148@ == 3
goto_if_false @HOODS5_4943
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4943
if and
  not is_char_in_air $scplayer
  not is_char_getting_in_to_a_car $scplayer
goto_if_false @HOODS5_4943
174@ = 1
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 4

:HOODS5_4943
if 
  148@ == 4
goto_if_false @HOODS5_5001
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5001
148@ = 5
352@ = 8
354@ = 2

:HOODS5_5001
if 
  148@ == 5
goto_if_false @HOODS5_5151
if 
  352@ == 0
goto_if_false @HOODS5_5151
task_use_mobile_phone $scplayer {start} False
48@ = add_blip_for_coord 2764.272 {y} -1979.494 {z} 12.5394
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
print 'SW5_14' {time} 5000 {flag} 1
127@ = 4

:HOODS5_5151
return 

:HOODS5_5153
if 
  locate_char_any_means_3d $scplayer {x} 2764.272 {y} -1979.494 {z} 12.5394 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HOODS5_5481
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_5481
59@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 59@
goto_if_false @HOODS5_5481
60@ = get_maximum_number_of_passengers 59@
if 
  2 > 60@
goto_if_false @HOODS5_5315
if 
  61@ == 0
goto_if_false @HOODS5_5308
print_now 'SW5_G' {time} 5000 {flag} 1
61@ = 1

:HOODS5_5308
goto @HOODS5_5481

:HOODS5_5315
104@ = get_vehicle_class 59@
102@ = get_car_model 59@
if or
  is_int_lvar_equal_to_constant 104@ == 0
  is_int_lvar_equal_to_constant 104@ == 1
  is_int_lvar_equal_to_constant 104@ == 2
  is_int_lvar_equal_to_constant 104@ == 3
  is_int_lvar_equal_to_constant 102@ == 596
  is_int_lvar_equal_to_constant 102@ == 420
goto_if_false @HOODS5_5465
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} 59@ {actionId} TempAction.HandbrakeStraight {time} 2000000
do_fade 800 {direction} Fade.Out

:HOODS5_5415
if 
  get_fading_status 
goto_if_false @HOODS5_5439
wait 0
goto @HOODS5_5415

:HOODS5_5439
127@ = 5
148@ = 0
remove_blip 48@
goto @HOODS5_5481

:HOODS5_5465
print_now 'SW5_16' {time} 1000 {flag} 1

:HOODS5_5481
return 

:HOODS5_5483
if 
  130@ == 0
goto_if_false @HOODS5_5532
130@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HOODS5_5532
131@ = 1

:HOODS5_5532
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HOODS5_5648
if 
  131@ == 0
goto_if_false @HOODS5_5641
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_5641
if and
  148@ <> 0
  148@ <> 5
goto_if_false @HOODS5_5641
148@ = 4
35@ = 0
131@ = 1
355@ = 5

:HOODS5_5641
goto @HOODS5_5673

:HOODS5_5648
if 
  131@ == 1
goto_if_false @HOODS5_5673
131@ = 0

:HOODS5_5673
if 
  148@ == 5
goto_if_false @HOODS5_5740
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5740
do_fade 800 {direction} Fade.In
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3000
148@ = 1

:HOODS5_5740
if 
  148@ == 0
goto_if_false @HOODS5_6493
clear_prints 
clear_area_of_cars 2746.5039 {leftBottomY} -2001.611 {leftBottomZ} 10.775 {rightTopX} 2789.562 {rightTopY} -1927.1541 {rightTopZ} 21.633
switch_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_char_decision_maker_event_response 47@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 47@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
75@ = create_char PedType.Mission3 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
43@ = create_char PedType.Mission3 {modelId} 12 {x} 2751.282 {y} -1948.8669 {z} 16.3125
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
set_char_suffers_critical_hits 75@ {state} False
set_char_suffers_critical_hits 43@ {state} False
set_char_only_damaged_by_player 75@ {state} False
set_char_only_damaged_by_player 43@ {state} False
62@ = create_car 405 {x} 2766.665 {y} -1901.943 {z} 10.005
63@ = create_car 405 {x} 2772.6379 {y} -1903.127 {z} 10.1479
set_car_heading 62@ {heading} 180.0
set_car_heading 63@ {heading} 180.0
set_car_can_go_against_traffic 62@ {state} True
set_car_can_go_against_traffic 63@ {state} True
start_playback_recorded_car 62@ {path} 153
start_playback_recorded_car 63@ {path} 154
65@ = create_char_inside_car 63@ {pedType} PedType.Mission1 {modelId} 105
64@ = create_char_inside_car 62@ {pedType} PedType.Mission1 {modelId} 105
set_char_decision_maker 64@ {handleOrTemplate} 47@
set_char_decision_maker 65@ {handleOrTemplate} 47@
give_weapon_to_char 64@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 99999
set_playback_speed 62@ {speed} 0.0
set_playback_speed 63@ {speed} 0.0
if 
  not is_car_dead 59@
goto_if_false @HOODS5_6293
set_car_coordinates 59@ {x} 2763.96 {y} -1978.8979 {z} 12.5394
set_car_heading 59@ {heading} 0.0
if 
  not is_car_passenger_seat_free 59@ {seat} SeatId.BikeRear
goto_if_false @HOODS5_6260
175@ = get_char_in_car_passenger_seat 59@ {seat} SeatId.BikeRear
delete_char 175@

:HOODS5_6260
if 
  not is_car_passenger_seat_free 59@ {seat} SeatId.RearLeft
goto_if_false @HOODS5_6293
175@ = get_char_in_car_passenger_seat 59@ {seat} SeatId.RearLeft
delete_char 175@

:HOODS5_6293
set_fixed_camera_position 2756.231 {y} -1949.667 {z} 18.0543 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2755.751 {y} -1950.535 {z} 17.9303 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2752.4021 {y} -1974.077 {z} 16.3125
set_char_coordinates 43@ {x} 2752.312 {y} -1952.896 {z} 16.3051
set_char_heading 43@ {heading} 180.0
task_follow_point_route 43@ {speed} MoveState.Run {mode} RouteMode.Once
set_char_coordinates 75@ {x} 2752.395 {y} -1950.699 {z} 16.3125
set_char_heading 75@ {heading} 180.0
68@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 5

:HOODS5_6493
if 
  148@ == 1
goto_if_false @HOODS5_6771
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6771
set_fixed_camera_position 2764.6011 {y} -1986.696 {z} 15.021 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2764.3201 {y} -1985.751 {z} 14.8511 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 59@
goto_if_false @HOODS5_6715
if 
  not is_char_dead 43@
goto_if_false @HOODS5_6656
set_char_coordinates 43@ {x} 2760.3579 {y} -1979.501 {z} 12.5394
set_char_heading 43@ {heading} 330.0
task_enter_car_as_passenger 43@ {vehicle} 59@ {time} 5000 {seat} SeatId.RearLeft

:HOODS5_6656
if 
  not is_char_dead 75@
goto_if_false @HOODS5_6715
set_char_coordinates 75@ {x} 2767.2241 {y} -1981.524 {z} 12.381
set_char_heading 75@ {heading} 0.0
task_enter_car_as_passenger 75@ {vehicle} 59@ {time} 5000 {seat} SeatId.BikeRear

:HOODS5_6715
if 
  not is_car_dead 63@
goto_if_false @HOODS5_6748
set_playback_speed 63@ {speed} 1.0
66@ = 1

:HOODS5_6748
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 2

:HOODS5_6771
if 
  148@ == 2
goto_if_false @HOODS5_6864
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6864
if 
  not is_car_dead 62@
goto_if_false @HOODS5_6841
set_playback_speed 62@ {speed} 1.0
66@ = 1

:HOODS5_6841
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_6864
if 
  148@ == 3
goto_if_false @HOODS5_6931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6931
352@ = 12
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 4

:HOODS5_6931
if 
  148@ == 4
goto_if_false @HOODS5_7800
if 
  176@ == 0
goto_if_false @HOODS5_7041
if 
  not is_car_dead 62@
goto_if_false @HOODS5_7041
if 
  not is_playback_going_on_for_car 62@
goto_if_false @HOODS5_7041
set_car_mission 62@ {carMission} CarMission.BlockPlayerClose
set_car_cruise_speed 62@ {maxSpeed} 60.0
set_car_health 62@ {health} 2500
set_vehicle_air_resistance_multiplier 62@ {multiplier} 0.1
176@ = 1

:HOODS5_7041
if 
  177@ == 0
goto_if_false @HOODS5_7133
if 
  not is_car_dead 63@
goto_if_false @HOODS5_7133
if 
  not is_playback_going_on_for_car 63@
goto_if_false @HOODS5_7133
set_car_mission 63@ {carMission} CarMission.BlockPlayerClose
set_car_cruise_speed 63@ {maxSpeed} 60.0
set_car_health 63@ {health} 2500
set_vehicle_air_resistance_multiplier 63@ {multiplier} 0.1
177@ = 1

:HOODS5_7133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_7800
if 
  352@ == 0
goto_if_false @HOODS5_7800
66@ = 1
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_7275
59@ = get_car_char_is_using $scplayer
set_vehicle_air_resistance_multiplier 59@ {multiplier} 5.0

:HOODS5_7275
if 
  131@ == 1
goto_if_false @HOODS5_7367
if 
  not is_car_dead 62@
goto_if_false @HOODS5_7330
if 
  is_playback_going_on_for_car 62@
goto_if_false @HOODS5_7330
skip_to_end_and_stop_playback_recorded_car 62@

:HOODS5_7330
if 
  not is_car_dead 63@
goto_if_false @HOODS5_7367
if 
  is_playback_going_on_for_car 63@
goto_if_false @HOODS5_7367
skip_to_end_and_stop_playback_recorded_car 63@

:HOODS5_7367
if and
  not is_car_dead 62@
  not is_car_dead 63@
goto_if_false @HOODS5_7458
set_car_mission 62@ {carMission} CarMission.BlockPlayerClose
set_car_mission 63@ {carMission} CarMission.RamPlayerClose
set_car_cruise_speed 62@ {maxSpeed} 60.0
set_car_cruise_speed 63@ {maxSpeed} 60.0
set_car_health 62@ {health} 2500
set_car_health 63@ {health} 2500
set_vehicle_air_resistance_multiplier 62@ {multiplier} 0.1
set_vehicle_air_resistance_multiplier 63@ {multiplier} 0.1

:HOODS5_7458
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386
set_blip_as_friendly 73@ {state} True
if and
  not is_char_dead 75@
  not is_car_dead 59@
  not is_char_dead 43@
goto_if_false @HOODS5_7619
set_group_member $Players_Group {handle} 75@
set_group_member $Players_Group {handle} 43@
listen_to_player_group_commands 75@ {state} False
listen_to_player_group_commands 43@ {state} False
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 9999
if 
  not is_char_in_car 75@ {vehicle} 59@
goto_if_false @HOODS5_7585
clear_char_tasks_immediately 75@
warp_char_into_car_as_passenger 75@ {handle} 59@ {seat} SeatId.BikeRear

:HOODS5_7585
if 
  not is_char_in_car 43@ {vehicle} 59@
goto_if_false @HOODS5_7619
clear_char_tasks_immediately 43@
warp_char_into_car_as_passenger 43@ {handle} 59@ {seat} SeatId.RearLeft

:HOODS5_7619
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_7687
68@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 63@ {actionId} TempAction.Wait {time} 1500
task_car_temp_action -1 {vehicle} 63@ {actionId} TempAction.ReverseRight {time} 1000
close_sequence_task 68@
perform_sequence_task 65@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_7687
if and
  not is_car_dead 62@
  not is_char_dead 64@
goto_if_false @HOODS5_7721
task_car_temp_action 64@ {vehicle} 62@ {actionId} TempAction.Wait {time} 1500

:HOODS5_7721
set_player_control $player1 {state} True
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
print 'SW5_I' {time} 5000 {flag} 1
127@ = 6
125@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 3000
164@ = 0
make_player_gang_reappear 

:HOODS5_7800
return 

:HOODS5_7802
if 
  152@ == 0
goto_if_false @HOODS5_7938
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_7938
149@ = get_car_char_is_using $scplayer
150@ = get_car_health 149@
if 
  900 > 150@
goto_if_false @HOODS5_7938
if 
  352@ == 0
goto_if_false @HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_7938
352@ = 13
152@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 6000

:HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_8497
if and
  not is_car_dead 62@
  not is_car_dead 63@
goto_if_false @HOODS5_8349
if or
  locate_char_in_car_car_3d $scplayer {vehicle} 62@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_in_car_car_3d $scplayer {vehicle} 63@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HOODS5_8194
151@ = generate_random_int_in_range 0 {max} 5
165@ = 0

:HOODS5_8055
if 
  154@(151@,7i) == 0
goto_if_false @HOODS5_8148
151@ += 1
165@ += 1
if 
  151@ > 4
goto_if_false @HOODS5_8116
151@ = 0

:HOODS5_8116
if 
  165@ > 4
goto_if_false @HOODS5_8141
goto @HOODS5_8171

:HOODS5_8141
goto @HOODS5_8055

:HOODS5_8148
set_lvar_int_to_lvar_int 352@ = 154@(151@,7i)
154@(151@,7i) = 0

:HOODS5_8171
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500
goto @HOODS5_8342

:HOODS5_8194
151@ = generate_random_int_in_range 0 {max} 1
165@ = 0

:HOODS5_8210
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8303
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8271
151@ = 0

:HOODS5_8271
if 
  165@ > 2
goto_if_false @HOODS5_8296
goto @HOODS5_8481

:HOODS5_8296
goto @HOODS5_8210

:HOODS5_8303
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8342
goto @HOODS5_8497

:HOODS5_8349
151@ = generate_random_int_in_range 0 {max} 2
165@ = 0

:HOODS5_8365
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8458
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8426
151@ = 0

:HOODS5_8426
if 
  165@ > 2
goto_if_false @HOODS5_8451
goto @HOODS5_8481

:HOODS5_8451
goto @HOODS5_8365

:HOODS5_8458
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0

:HOODS5_8481
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8497
if 
  not is_char_dead 75@
goto_if_false @HOODS5_8712
if 
  not is_group_member 75@ {handle} $Players_Group
goto_if_false @HOODS5_8712
if 
  69@ == 0
goto_if_false @HOODS5_8609
69@ = 1
print 'SW5_T' {time} 4000 {flag} 1
if 
  not does_blip_exist 71@
goto_if_false @HOODS5_8604
71@ = add_blip_for_char 75@
set_blip_as_friendly 71@ {state} True

:HOODS5_8604
remove_blip 73@

:HOODS5_8609
if and
  locate_char_any_means_char_2d $scplayer {target} 75@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
  69@ == 1
goto_if_false @HOODS5_8712
69@ = 0
set_group_member $Players_Group {handle} 75@
listen_to_player_group_commands 75@ {state} False
remove_blip 71@
if 
  70@ == 0
goto_if_false @HOODS5_8712
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386

:HOODS5_8712
if 
  not is_char_dead 43@
goto_if_false @HOODS5_8934
if 
  not is_group_member 43@ {handle} $Players_Group
goto_if_false @HOODS5_8934
if 
  70@ == 0
goto_if_false @HOODS5_8824
70@ = 1
print 'SW5_U' {time} 4000 {flag} 1
if 
  not does_blip_exist 72@
goto_if_false @HOODS5_8819
72@ = add_blip_for_char 43@
set_blip_as_friendly 72@ {state} True

:HOODS5_8819
remove_blip 73@

:HOODS5_8824
if and
  locate_char_any_means_char_2d $scplayer {target} 43@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
  70@ == 1
goto_if_false @HOODS5_8934
70@ = 0
set_group_member $Players_Group {handle} 43@
listen_to_player_group_commands 43@ {state} False
remove_blip 72@
if 
  69@ == 0
goto_if_false @HOODS5_8934
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386
set_blip_as_friendly 73@ {state} True

:HOODS5_8934
if 
  66@ == 1
goto_if_false @HOODS5_9054
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_9054
if 
  not locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HOODS5_9054
85@, 86@, 87@ = get_char_coordinates $scplayer
91@ = get_char_heading $scplayer
66@ = 2
set_lvar_int_to_lvar_int 67@ = TIMERA
67@ += 800

:HOODS5_9054
if and
  66@ == 2
  103@ == 0
goto_if_false @HOODS5_9284
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 67@
goto_if_false @HOODS5_9284
88@, 89@, 90@ = get_nth_closest_car_node $player_x {fromY} $player_y {fromZ} $player_z {n} 2
if 
  not is_point_on_screen 85@ {y} 86@ {z} 87@ {radius} 8.0
goto_if_false @HOODS5_9284
if 
  not locate_stopped_char_any_means_3d $scplayer {x} 88@ {y} 89@ {z} 90@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HOODS5_9284
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_9284
if 
  not is_car_upsidedown 63@
goto_if_false @HOODS5_9284
if 
  is_char_in_car 65@ {vehicle} 63@
goto_if_false @HOODS5_9284
set_car_coordinates 63@ {x} 85@ {y} 86@ {z} 87@
set_car_heading 63@ {heading} 91@
set_car_forward_speed 63@ {forwardSpeed} 25.0
66@ = 1

:HOODS5_9284
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_9682
if 
  103@ == 0
goto_if_false @HOODS5_9464
if 
  locate_char_any_means_3d $scplayer {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 63.0 {yRadius} 63.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @HOODS5_9464
103@ = 1
if 
  not is_car_dead 62@
goto_if_false @HOODS5_9421
set_car_mission 62@ {carMission} CarMission.Cruise
set_car_cruise_speed 62@ {maxSpeed} 20.0
mark_car_as_no_longer_needed 62@
mark_char_as_no_longer_needed 64@

:HOODS5_9421
if 
  not is_car_dead 63@
goto_if_false @HOODS5_9464
set_car_mission 63@ {carMission} CarMission.Cruise
set_car_cruise_speed 63@ {maxSpeed} 20.0
mark_car_as_no_longer_needed 63@
mark_char_as_no_longer_needed 65@

:HOODS5_9464
if and
  70@ == 0
  69@ == 0
goto_if_false @HOODS5_9682
if 
  locate_char_any_means_3d $scplayer {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HOODS5_9682
if and
  locate_char_any_means_3d 75@ {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d 43@ {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HOODS5_9682
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_9668
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:HOODS5_9668
127@ = 7
148@ = 0

:HOODS5_9682
return 

:HOODS5_9684
if 
  148@ == 0
goto_if_false @HOODS5_9732
125@ = 0
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 600
148@ = 12

:HOODS5_9732
if 
  148@ == 12
goto_if_false @HOODS5_10395
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10395
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_9801
59@ = get_car_char_is_using $scplayer
129@ = get_car_model 59@

:HOODS5_9801
if 
  not is_char_dead 75@
goto_if_false @HOODS5_9832
set_char_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:HOODS5_9832
if 
  not is_char_dead 43@
goto_if_false @HOODS5_9863
set_char_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:HOODS5_9863
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
clear_area_of_cars 2472.1021 {leftBottomY} -1646.181 {leftBottomZ} 19.6421 {rightTopX} 2517.3831 {rightTopY} -1691.2321 {rightTopZ} 9.4098
clear_area_of_chars 2472.1021 {leftBottomY} -1646.181 {leftBottomZ} 19.6421 {rightTopX} 2517.3831 {rightTopY} -1691.2321 {rightTopZ} 9.4098
if 
  not is_car_dead 62@
goto_if_false @HOODS5_9992
if 
  not is_char_in_car $scplayer {vehicle} 62@
goto_if_false @HOODS5_9992
delete_car 62@

:HOODS5_9992
if 
  not is_car_dead 63@
goto_if_false @HOODS5_10032
if 
  not is_char_in_car $scplayer {vehicle} 63@
goto_if_false @HOODS5_10032
delete_car 63@

:HOODS5_10032
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_10099
if 
  not is_car_dead 59@
goto_if_false @HOODS5_10099
task_leave_any_car $scplayer
set_car_coordinates 59@ {x} 2507.709 {y} -1672.192 {z} 13.458
set_car_heading 59@ {heading} 340.0

:HOODS5_10099
set_fixed_camera_position 2514.24 {y} -1679.2679 {z} 14.5054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.6489 {y} -1678.483 {z} 14.3221 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 43@
goto_if_false @HOODS5_10246
$car = get_car_char_is_using 43@
if 
  $car == -1
goto_if_false @HOODS5_10246
set_char_coordinates 43@ {x} 2509.821 {y} -1675.8149 {z} 12.5469
set_char_heading 43@ {heading} 337.0
task_go_straight_to_coord 43@ {x} 2512.229 {y} -1672.7841 {z} 12.4531 {speed} MoveState.Walk {time} -2

:HOODS5_10246
if 
  not is_char_dead 75@
goto_if_false @HOODS5_10342
$car = get_car_char_is_using 75@
if 
  $car == -1
goto_if_false @HOODS5_10342
set_char_coordinates 75@ {x} 2508.821 {y} -1675.8149 {z} 12.5469
set_char_heading 75@ {heading} 337.0
task_go_straight_to_coord 75@ {x} 2511.229 {y} -1672.7841 {z} 12.4531 {speed} MoveState.Walk {time} -2

:HOODS5_10342
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_10388
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 10
goto @HOODS5_10395

:HOODS5_10388
148@ = 2

:HOODS5_10395
if 
  148@ == 10
goto_if_false @HOODS5_10502
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10502
if 
  not is_char_dead 43@
goto_if_false @HOODS5_10502
$car = get_car_char_is_using 43@
if 
  $car <> -1
goto_if_false @HOODS5_10479
task_leave_any_car 43@

:HOODS5_10479
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 400
148@ = 11

:HOODS5_10502
if 
  148@ == 11
goto_if_false @HOODS5_10609
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10609
if 
  not is_char_dead 75@
goto_if_false @HOODS5_10609
$car = get_car_char_is_using 75@
if 
  $car <> -1
goto_if_false @HOODS5_10586
task_leave_any_car 75@

:HOODS5_10586
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 1

:HOODS5_10609
if 
  148@ == 1
goto_if_false @HOODS5_10653
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10653
148@ = 2

:HOODS5_10653
if 
  148@ == 2
goto_if_false @HOODS5_11132
if 
  not is_car_dead 59@
goto_if_false @HOODS5_10694
set_car_visible 59@ {state} False

:HOODS5_10694
set_fixed_camera_position 2509.7129 {y} -1671.558 {z} 13.5033 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.1899 {y} -1672.389 {z} 13.8387 {switchStyle} SwitchType.JumpCut
set_char_coordinates_no_offset $scplayer {x} 2509.8921 {y} -1672.469 {z} 13.5032
set_char_heading $scplayer {heading} 270.0
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_11006
delete_char 75@
75@ = create_char PedType.CivMale {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
set_current_char_weapon 75@ {weaponType} WeaponType.Unarmed
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
remove_char_from_group 75@
remove_char_from_group 43@
clear_char_tasks_immediately 75@
clear_char_tasks_immediately 43@
set_char_coordinates_no_offset 75@ {x} 2510.792 {y} -1672.469 {z} 13.5032
set_char_coordinates_no_offset 43@ {x} 2510.792 {y} -1673.469 {z} 13.5032
set_char_heading 75@ {heading} 90.0
set_char_heading 43@ {heading} 90.0
task_play_anim_non_interruptable 75@ {animationName} "SWEET_ASS_SLAP" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim_non_interruptable 43@ {animationName} "HO_ASS_SLAPPED" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:HOODS5_11006
set_lvar_int_to_lvar_int 399@ = 75@
$wz1_health_bar = 1
203@ = 23
227@ = 5
207@ = 100
208@ = 1900
209@ = 4200
210@ = 6000
211@ = 8000
217@ = 23
218@ = 24
219@ = 25
220@ = 26
221@ = 27
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1700
148@ = 3

:HOODS5_11132
if 
  148@ == 3
goto_if_false @HOODS5_11251
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11251
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11228
task_play_anim_non_interruptable 75@ {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:HOODS5_11228
148@ = 4
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300

:HOODS5_11251
if 
  148@ == 4
goto_if_false @HOODS5_11352
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11352
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11329
task_follow_path_nodes_to_coord 43@ {x} 2516.686 {y} -1675.861 {z} 13.1227 {speed} MoveState.Walk {time} 5500

:HOODS5_11329
148@ = 5
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_11352
if 
  148@ == 5
goto_if_false @HOODS5_11503
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11503
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11480
task_play_anim_non_interruptable 75@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3400

:HOODS5_11480
148@ = 7
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000

:HOODS5_11503
if 
  148@ == 7
goto_if_false @HOODS5_11691
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11691
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11668
task_play_anim_non_interruptable 75@ {animationName} "SWEET_HNDSHLDR_01" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim_non_interruptable $scplayer {animationName} "PLYR_HNDSHLDR_01" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11668
delete_char 43@

:HOODS5_11668
148@ = 8
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3500

:HOODS5_11691
if 
  148@ == 8
goto_if_false @HOODS5_11799
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11799
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11776
freeze_char_position 75@ {state} False
task_follow_path_nodes_to_coord 75@ {x} 2516.686 {y} -1675.861 {z} 13.1227 {speed} MoveState.Walk {time} 5500

:HOODS5_11776
148@ = 9
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500

:HOODS5_11799
if 
  148@ == 9
goto_if_false @HOODS5_11949
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11949
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11857
delete_char 75@

:HOODS5_11857
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11878
delete_char 43@

:HOODS5_11878
if 
  not is_car_dead 59@
goto_if_false @HOODS5_11901
set_car_visible 59@ {state} True

:HOODS5_11901
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
set_char_heading $scplayer {heading} 90.0
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
127@ = 8

:HOODS5_11949
return 

:HOODS5_11951
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 179@
goto_if_false @HOODS5_13222
set_lvar_int_to_lvar_int 179@ = TIMERA
179@ += 50
180@ += 1
if 
  180@ == 5
goto_if_false @HOODS5_12017
180@ = 0

:HOODS5_12017
if 
  not is_char_dead 37@(180@,6i)
goto_if_false @HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_12085
if 
  has_char_been_damaged_by_char 37@(180@,6i) {handle} $scplayer
goto_if_false @HOODS5_12085
96@ = 1

:HOODS5_12085
82@, 83@, 84@ = get_char_coordinates 37@(180@,6i)
85@, 86@, 87@ = get_char_coordinates $scplayer
200@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} 82@ {toZ} 83@
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12211
if 
  is_float_lvar_greater_than_float_lvar 198@ > 200@
goto_if_false @HOODS5_12204
set_lvar_int_to_lvar_int 194@ = 193@
set_lvar_float_to_lvar_float 199@ = 198@
set_lvar_float_to_lvar_float 198@ = 200@
set_lvar_int_to_lvar_int 193@ = 180@

:HOODS5_12204
goto @HOODS5_12219

:HOODS5_12211
set_lvar_float_to_lvar_float 198@ = 200@

:HOODS5_12219
if 
  not is_int_lvar_equal_to_int_lvar 194@ == 180@
goto_if_false @HOODS5_12299
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12292
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @HOODS5_12292
set_lvar_int_to_lvar_int 194@ = 180@
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12292
goto @HOODS5_12307

:HOODS5_12299
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12307
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_12573
59@ = get_car_char_is_using $scplayer
188@ = get_car_speed 59@
if 
  188@ > 5.0
goto_if_false @HOODS5_12573
197@ = generate_random_float_in_range -0.2 {max} 0.2
set_lvar_float_to_lvar_float 196@ = 188@
196@ *= 1.6
add_float_lvar_to_float_lvar 196@ += 197@
if 
  is_float_lvar_greater_than_float_lvar 196@ > 200@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 196@ = 87@
sub_float_lvar_from_float_lvar 196@ -= 84@
196@ = abs_lvar_float 
if 
  1.0 > 196@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 195@ = 82@
sub_float_lvar_from_float_lvar 195@ -= 85@
set_lvar_float_to_lvar_float 196@ = 83@
sub_float_lvar_from_float_lvar 196@ -= 86@
190@ = get_heading_from_vector_2d 195@ {y} 196@
189@ = get_car_heading 59@
set_lvar_float_to_lvar_float 195@ = 190@
sub_float_lvar_from_float_lvar 195@ -= 189@
195@ = abs_lvar_float 
if 
  5.0 > 195@
goto_if_false @HOODS5_12573
96@ = 1
181@(180@,6i) = 4

:HOODS5_12573
if 
  181@(180@,6i) == 4
goto_if_false @HOODS5_12661
34@ = get_script_task_status 37@(180@,6i) {taskId} 1651
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12661
task_dive_and_get_up 37@(180@,6i) {directionX} 1.0 {directionY} 0.0 {timeOnGround} 500
181@(180@,6i) = 5

:HOODS5_12661
if 
  181@(180@,6i) == 5
goto_if_false @HOODS5_12727
34@ = get_script_task_status 37@(180@,6i) {taskId} 1651
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12727
181@(180@,6i) = 0

:HOODS5_12727
if 
  181@(180@,6i) == 0
goto_if_false @HOODS5_12805
if 
  96@ == 1
goto_if_false @HOODS5_12805
if or
  is_int_lvar_equal_to_int_lvar 180@ == 193@
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_12805
181@(180@,6i) = 1

:HOODS5_12805
if 
  181@(180@,6i) == 1
goto_if_false @HOODS5_13102
34@ = get_script_task_status 37@(180@,6i) {taskId} 1869
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
34@ = get_script_task_status 37@(180@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
187@ = generate_random_int_in_range 0 {max} 2
if 
  187@ == 0
goto_if_false @HOODS5_12941
task_shoot_at_char 37@(180@,6i) {target} $scplayer {time} -2
goto @HOODS5_12953

:HOODS5_12941
task_kill_char_on_foot 37@(180@,6i) {target} $scplayer

:HOODS5_12953
if and
  not is_int_lvar_equal_to_int_lvar 180@ == 193@
  not is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13102
34@ = get_script_task_status 37@(180@,6i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_13102
68@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 106@(180@,6f) {y} 112@(180@,6f) {z} 118@(180@,6f) {speed} MoveState.Run {time} 6000
task_shoot_at_coord -1 {x} 2750.957 {y} -1968.016 {z} 17.9291 {time} -2
close_sequence_task 68@
perform_sequence_task 37@(180@,6i) {sequence} 68@
clear_sequence_task 68@
181@(180@,6i) = 0

:HOODS5_13102
goto @HOODS5_13222

:HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_13134
96@ = 1

:HOODS5_13134
if 
  is_int_lvar_equal_to_int_lvar 180@ == 193@
goto_if_false @HOODS5_13186
set_lvar_int_to_lvar_int 193@ = 194@
set_lvar_float_to_lvar_float 198@ = 199@
194@ = 0
199@ = 99999.0

:HOODS5_13186
if 
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13222
194@ = 0
199@ = 99999.0

:HOODS5_13222
return 

:HOODS5_13224
if 
  203@ <> 0
goto_if_false @HOODS5_13424
if 
  204@ == 0
goto_if_false @HOODS5_13302
204@ = 1
set_lvar_int_to_lvar_int 205@ = TIMERA
206@ = 0
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13302
if 
  204@ == 1
goto_if_false @HOODS5_13424
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 408@
goto_if_false @HOODS5_13424
set_lvar_int_to_lvar_int 352@ = 217@(206@,10i)
206@ += 1
227@ -= 1
if 
  227@ == 0
goto_if_false @HOODS5_13404
203@ = 0
204@ = 0
goto @HOODS5_13424

:HOODS5_13404
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13424
switch_start 355@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @HOODS5_15214 {caseNum1} 0 {caseLabel1} @HOODS5_13487 {caseNum2} 1 {caseLabel2} @HOODS5_14356 {caseNum3} 2 {caseLabel3} @HOODS5_14885 {caseNum4} 3 {caseLabel4} @HOODS5_14961 {caseNum5} 4 {caseLabel5} @HOODS5_15019 {caseNum6} 5 {caseLabel6} @HOODS5_15133 {caseNum7} -1 {caseLabel7} @HOODS5_15214

:HOODS5_13487
set_lvar_text_label 230@s = 'MSWE13A'
set_lvar_int_to_constant 309@ = 14538
set_lvar_text_label 232@s = 'MSWE13B'
set_lvar_int_to_constant 310@ = 14484
set_lvar_text_label 234@s = 'MSWE13C'
set_lvar_int_to_constant 311@ = 14485
set_lvar_text_label 236@s = 'MSWE13D'
set_lvar_int_to_constant 312@ = 14486
set_lvar_text_label 238@s = 'MSWE13E'
set_lvar_int_to_constant 313@ = 14487
set_lvar_text_label 240@s = 'MSWE13F'
set_lvar_int_to_constant 314@ = 14539
set_lvar_text_label 242@s = 'MSWE13G'
set_lvar_int_to_constant 315@ = 14488
set_lvar_text_label 244@s = 'SWE5_FA'
set_lvar_int_to_constant 316@ = 15019
set_lvar_text_label 246@s = 'SWE5_FB'
set_lvar_int_to_constant 317@ = 15020
set_lvar_text_label 248@s = 'SWE5_GH'
set_lvar_int_to_constant 318@ = 15035
set_lvar_text_label 250@s = 'SWE5_CA'
set_lvar_int_to_constant 319@ = 15010
set_lvar_text_label 252@s = 'SWE5_CC'
set_lvar_int_to_constant 320@ = 15012
set_lvar_text_label 254@s = 'SWE5_GA'
set_lvar_int_to_constant 321@ = 15021
set_lvar_text_label 256@s = 'SWE5_GC'
set_lvar_int_to_constant 322@ = 15023
set_lvar_text_label 258@s = 'SWE5_GD'
set_lvar_int_to_constant 323@ = 15024
set_lvar_text_label 260@s = 'SWE5_GE'
set_lvar_int_to_constant 324@ = 15028
set_lvar_text_label 262@s = 'SWE5_GF'
set_lvar_int_to_constant 325@ = 15029
set_lvar_text_label 264@s = 'SWE5_GG'
set_lvar_int_to_constant 326@ = 15030
set_lvar_text_label 266@s = 'SWE5_GJ'
set_lvar_int_to_constant 327@ = 15036
set_lvar_text_label 268@s = 'SWE5_GK'
set_lvar_int_to_constant 328@ = 15037
set_lvar_text_label 270@s = 'SWE5_GB'
set_lvar_int_to_constant 329@ = 15022
set_lvar_text_label 272@s = 'SWE5_GL'
set_lvar_int_to_constant 330@ = 15038
set_lvar_text_label 274@s = 'SWE5_EA'
set_lvar_int_to_constant 331@ = 15015
set_lvar_text_label 276@s = 'SWE5_EB'
set_lvar_int_to_constant 332@ = 15016
set_lvar_text_label 278@s = 'SWE5_EC'
set_lvar_int_to_constant 333@ = 15017
set_lvar_text_label 280@s = 'SWE5_ED'
set_lvar_int_to_constant 334@ = 15027
set_lvar_text_label 282@s = 'SWE5_EE'
set_lvar_int_to_constant 335@ = 15018
set_lvar_text_label 286@s = 'MOBRING'
set_lvar_int_to_constant 337@ = 28200
358@ = 1
359@ = 0
360@ = 0
361@ = 0
362@ = 0
363@ = 1
364@ = 0
365@ = 0
366@ = 0
367@ = 3
368@ = 0
369@ = 0
370@ = 2
371@ = 2
372@ = 2
373@ = 1
374@ = 1
375@ = 1
376@ = 3
377@ = 3
378@ = 2
379@ = 3
380@ = 2
381@ = 2
382@ = 2
383@ = 1
384@ = 2
385@ = 2
386@ = 0
set_lvar_int_to_var_int 398@ = $scplayer
355@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 309@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 310@
349@ = 1
350@ = 2
goto @HOODS5_15214

:HOODS5_14356
if 
  352@ <> 0
goto_if_false @HOODS5_14878
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 356@
goto_if_false @HOODS5_14878
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HOODS5_14878
if 
  is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14445
351@ = 1
goto @HOODS5_14508

:HOODS5_14445
if 
  is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14478
351@ = 2
goto @HOODS5_14508

:HOODS5_14478
351@ = 1
set_lvar_int_to_lvar_int 349@ = 352@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 308@(352@,40i)

:HOODS5_14508
if 
  has_mission_audio_loaded 351@
goto_if_false @HOODS5_14866
if 
  357@(352@,40i) <> 0
goto_if_false @HOODS5_14639
set_lvar_int_to_lvar_int 405@ = 357@(352@,40i)
set_lvar_int_to_lvar_int 406@ = 397@(405@,7i)
if 
  not is_char_dead 406@
goto_if_false @HOODS5_14639
attach_mission_audio_to_char 351@ {handle} 406@
if 
  not is_char_talking 406@
goto_if_false @HOODS5_14632
404@ = 1
start_char_facial_talk 406@ {duration} 15000
goto @HOODS5_14639

:HOODS5_14632
disable_char_speech 406@ {stopNow} False

:HOODS5_14639
if 
  357@(352@,40i) == 0
goto_if_false @HOODS5_14668
404@ = 1

:HOODS5_14668
if 
  404@ == 1
goto_if_false @HOODS5_14859
play_mission_audio 351@
clear_prints 
print 228@(352@,40s) {time} 10000 {flag} 1
355@ += 1
404@ = 0
352@ += 1
set_lvar_int_to_lvar_int 353@ = 352@
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_14859
if 
  351@ == 1
goto_if_false @HOODS5_14821
if 
  not is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14814
load_mission_audio MissionAudioSlot.Slot2 {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 350@ = 352@

:HOODS5_14814
goto @HOODS5_14859

:HOODS5_14821
if 
  not is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14859
load_mission_audio MissionAudioSlot.Slot1 {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 349@ = 352@

:HOODS5_14859
goto @HOODS5_14878

:HOODS5_14866
load_mission_audio 351@ {audioId} 308@(352@,40i)

:HOODS5_14878
goto @HOODS5_15214

:HOODS5_14885
if 
  has_mission_audio_finished 351@
goto_if_false @HOODS5_14915
355@ += 1
goto @HOODS5_14954

:HOODS5_14915
if 
  does_char_exist 406@
goto_if_false @HOODS5_14954
if 
  is_char_dead 406@
goto_if_false @HOODS5_14954
355@ += 1

:HOODS5_14954
goto @HOODS5_15214

:HOODS5_14961
clear_mission_audio 351@
348@(351@,3i) = 0
clear_prints 
if 
  not is_char_dead 406@
goto_if_false @HOODS5_15005
stop_char_facial_talk 406@
enable_char_speech 406@

:HOODS5_15005
355@ += 1
goto @HOODS5_15214

:HOODS5_15019
352@ += 1
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_15072
load_mission_audio 351@ {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 348@(351@,3i) = 352@

:HOODS5_15072
354@ -= 1
if 
  354@ <= 0
goto_if_false @HOODS5_15111
352@ = 0
goto @HOODS5_15119

:HOODS5_15111
set_lvar_int_to_lvar_int 352@ = 353@

:HOODS5_15119
355@ = 1
goto @HOODS5_15214

:HOODS5_15133
355@ = 1
352@ = 0
354@ = 0
203@ = 0
227@ = 0
clear_mission_audio 351@
348@(351@,3i) = 0
clear_prints 
if 
  not is_char_dead 406@
goto_if_false @HOODS5_15207
enable_char_speech 406@

:HOODS5_15207
goto @HOODS5_15214

:HOODS5_15214
return 

:HOODS5_15216
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HOODS5_15234
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_5'
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
print_with_number_big 'M_PASSR' {num} 7 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 7
return 

:HOODS5_15289
$onmission = 0
switch_car_generator $gen_car6 {amount} 101
set_script_limit_to_gang_size 99
if 
  does_char_exist 75@
goto_if_false @HOODS5_15373
if 
  not is_char_dead 75@
goto_if_false @HOODS5_15373
set_char_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 75@ {state} False
set_char_never_targetted 75@ {state} False
mark_char_as_no_longer_needed 75@

:HOODS5_15373
if 
  does_char_exist 43@
goto_if_false @HOODS5_15439
if 
  not is_char_dead 43@
goto_if_false @HOODS5_15439
set_char_proofs 43@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 43@ {state} False
set_char_never_targetted 43@ {state} False
mark_char_as_no_longer_needed 43@

:HOODS5_15439
36@ = 0

:HOODS5_15446
if 
  5 > 36@
goto_if_false @HOODS5_15487
mark_char_as_no_longer_needed 37@(36@,6i)
36@ += 1
goto @HOODS5_15446

:HOODS5_15487
if 
  not is_char_dead $scplayer
goto_if_false @HOODS5_15510
task_use_mobile_phone $scplayer {start} False

:HOODS5_15510
remove_animation "SWEET"
remove_animation "GANGS"
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
unload_special_character 1
remove_car_recording 153
remove_car_recording 154
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_roads_back_to_original 2463.375 {leftBottomY} -1702.6949 {leftBottomZ} 17.9193 {rightTopX} 2508.7351 {rightTopY} -1644.574 {rightTopZ} 10.5835
if 
  not is_car_dead 105@
goto_if_false @HOODS5_15696
mark_car_as_no_longer_needed 105@

:HOODS5_15696
clear_onscreen_counter $6680
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 48@
remove_blip 73@
remove_blip 49@
remove_blip 71@
remove_blip 72@
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
remove_decision_maker 47@
remove_decision_maker 99@
set_create_random_gang_members True
set_player_group_to_follow_always $player1 {state} False
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 19---------------
// Originally: Cesar Vialpando

:SWEET6
script_name 'SWEET6'
gosub @SWEET6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET6_38
gosub @SWEET6_35885

:SWEET6_38
gosub @SWEET6_36111
terminate_this_script 

:SWEET6_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:SWEET6_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SWEET6_173
36@ = 1

:SWEET6_173
39@ += 1
if 
  39@ > 22
goto_if_false @SWEET6_205
39@ = 0

:SWEET6_205
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
add_int_lvar_to_int_lvar 139@ += 42@
add_int_lvar_to_int_lvar 140@ += 42@
gosub @SWEET6_567
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SWEET6_458 {caseNum1} 0 {caseLabel1} @SWEET6_360 {caseNum2} 1 {caseLabel2} @SWEET6_374 {caseNum3} 2 {caseLabel3} @SWEET6_388 {caseNum4} 3 {caseLabel4} @SWEET6_402 {caseNum5} 4 {caseLabel5} @SWEET6_416 {caseNum6} 5 {caseLabel6} @SWEET6_430 {caseNum7} 6 {caseLabel7} @SWEET6_444

:SWEET6_360
gosub @SWEET6_1379
goto @SWEET6_458

:SWEET6_374
gosub @SWEET6_1720
goto @SWEET6_458

:SWEET6_388
gosub @SWEET6_2081
goto @SWEET6_458

:SWEET6_402
gosub @SWEET6_7478
goto @SWEET6_458

:SWEET6_416
gosub @SWEET6_16694
goto @SWEET6_458

:SWEET6_430
gosub @SWEET6_19507
goto @SWEET6_458

:SWEET6_444
gosub @SWEET6_24628
goto @SWEET6_458

:SWEET6_458
gosub @SWEET6_28469

:SWEET6_465
if 
  38@ == 0
goto_if_false @SWEET6_565
if 
  37@ == 0
goto_if_false @SWEET6_549
if 
  36@ == 0
goto_if_false @SWEET6_533
goto @SWEET6_147
goto @SWEET6_542

:SWEET6_533
gosub @SWEET6_35937
return 

:SWEET6_542
goto @SWEET6_558

:SWEET6_549
gosub @SWEET6_35885
return 

:SWEET6_558
goto @SWEET6_567

:SWEET6_565
return 

:SWEET6_567
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @SWEET6_658
if 
  68@ == 0
goto_if_false @SWEET6_632
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SWEET6_658

:SWEET6_632
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SWEET6_658
if 
  68@ == 1
goto_if_false @SWEET6_1377
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @SWEET6_725
69@ += 1
if 
  69@ > 3
goto_if_false @SWEET6_723
69@ = 0

:SWEET6_723
clear_all_view_variables 

:SWEET6_725
if 
  69@ == 1
goto_if_false @SWEET6_935
set_var_int_to_lvar_int $sw5_sweet_health = 34@
set_var_int_to_lvar_int $SWEET6_view_debug = 35@
set_var_int_to_lvar_int $6683 = 62@
set_var_int_to_lvar_int $6684 = 64@
set_var_int_to_lvar_int $6685 = 63@
set_var_int_to_lvar_int $6686 = 65@
set_var_int_to_lvar_int $6687 = TIMERA
set_var_int_to_lvar_int $6688 = TIMERB
view_integer_variable $sw5_sweet_health {_p2} "M_STAGE"
view_integer_variable $SWEET6_view_debug {_p2} "M_GOALS"
view_integer_variable $6683 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6684 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6685 {_p2} "HELP_FLAG"
view_integer_variable $6686 {_p2} "HELP_TIMER"
view_integer_variable $6687 {_p2} "TIMERA"
view_integer_variable $6688 {_p2} "TIMERB"

:SWEET6_935
if 
  69@ == 2
goto_if_false @SWEET6_1054
set_var_int_to_lvar_int $sw5_sweet_health = 107@
set_var_int_to_var_int $SWEET6_view_debug = $sw6_mission_attempts
set_var_int_to_lvar_int $6688 = 130@
view_integer_variable $sw5_sweet_health {_p2} "CAR_HYD_FLAG"
view_integer_variable $SWEET6_view_debug {_p2} "SW6_MISSION_ATTEMPTS"
view_integer_variable $6688 {_p2} "PLAYER_HAS_ATTACKED_MEET"

:SWEET6_1054
if 
  69@ == 3
goto_if_false @SWEET6_1132
set_var_int_to_lvar_int $sw5_sweet_health = 131@
set_var_int_to_lvar_int $SWEET6_view_debug = 276@
view_integer_variable $sw5_sweet_health {_p2} "MEETING_IS_LOADED"
view_integer_variable $SWEET6_view_debug {_p2} "CURRENT_WAGER"

:SWEET6_1132
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @SWEET6_1154
38@ = 1

:SWEET6_1154
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @SWEET6_1242
if 
  70@ == 0
goto_if_false @SWEET6_1217
70@ = 1
write_debug "LEVEL_PAUSED"
goto @SWEET6_1242

:SWEET6_1217
70@ = 0
write_debug "LEVEL_UNPAUSED"

:SWEET6_1242
if 
  70@ == 1
goto_if_false @SWEET6_1267
goto @SWEET6_465

:SWEET6_1267
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @SWEET6_1289
35@ += 1

:SWEET6_1289
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @SWEET6_1311
35@ -= 1

:SWEET6_1311
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @SWEET6_1333
34@ += 1

:SWEET6_1333
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @SWEET6_1355
34@ -= 1

:SWEET6_1355
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @SWEET6_1377
35@ = 99

:SWEET6_1377
return 

:SWEET6_1379
if 
  35@ == -1
goto_if_false @SWEET6_1524
72@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
105@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
106@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$mod_garage_blip = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$mod_garage1 = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SWEET6_1524
107@ = 0
43@ = 0

:SWEET6_1538
if 
  22 > 43@
goto_if_false @SWEET6_1581
108@(43@,22i) = 0
43@ += 1
goto @SWEET6_1538

:SWEET6_1581
130@ = 0
131@ = 0
132@ = 0
133@ = 0
135@ = 0
272@ = 0.01
if 
  35@ == -1
goto_if_false @SWEET6_1664
$6689 = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SWEET6_1664
load_mission_text 'SWEET6'
suppress_car_model 567
274@ = 50
275@ = 1000
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
gosub @SWEET6_35827
return 

:SWEET6_1720
if 
  35@ == 0
goto_if_false @SWEET6_1853
set_area_visible 1
load_cutscene 'SWEET6A'

:SWEET6_1753
if 
  not has_cutscene_loaded 
goto_if_false @SWEET6_1777
wait 0
goto @SWEET6_1753

:SWEET6_1777
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET6_1786
if 
  not has_cutscene_finished 
goto_if_false @SWEET6_1810
wait 0
goto @SWEET6_1786

:SWEET6_1810
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET6_1818
if 
  get_fading_status 
goto_if_false @SWEET6_1842
wait 0
goto @SWEET6_1818

:SWEET6_1842
set_area_visible 0
35@ += 1

:SWEET6_1853
if 
  35@ == 1
goto_if_false @SWEET6_2029
load_scene 2519.575 {y} -1677.88 {z} 13.7661
set_char_coordinates $scplayer {x} 2519.575 {y} -1677.88 {z} 13.7661
set_char_heading $scplayer {heading} 107.8934
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_area 2519.575 {y} -1677.88 {z} 13.7661 {radius} 1000.0 {clearParticles} True
do_fade 500 {direction} Fade.In

:SWEET6_1962
if 
  get_fading_status 
goto_if_false @SWEET6_1986
wait 0
goto @SWEET6_1962

:SWEET6_1986
print 'S6_01' {time} 10000 {flag} 1
105@ = add_blip_for_coord 2653.0161 {y} -2009.172 {z} 12.5547
35@ += 1

:SWEET6_2029
if 
  35@ == 2
goto_if_false @SWEET6_2054
35@ = 99

:SWEET6_2054
if 
  35@ == 99
goto_if_false @SWEET6_2079
gosub @SWEET6_35827

:SWEET6_2079
return 

:SWEET6_2081
if 
  35@ == 0
goto_if_false @SWEET6_2349
43@ = 0
if 
  locate_char_any_means_3d $scplayer {x} 2653.0161 {y} -2009.172 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET6_2300
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_2208
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @SWEET6_2208
set_player_control $player1 {state} False
43@ = 1

:SWEET6_2208
if 
  is_char_on_foot $scplayer
goto_if_false @SWEET6_2254
if 
  is_char_stopped $scplayer
goto_if_false @SWEET6_2254
set_player_control $player1 {state} False
43@ = 1

:SWEET6_2254
if 
  43@ == 1
goto_if_false @SWEET6_2300
if 
  does_blip_exist 105@
goto_if_false @SWEET6_2293
remove_blip 105@

:SWEET6_2293
35@ += 1

:SWEET6_2300
if 
  68@ == 1
goto_if_false @SWEET6_2349
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SWEET6_2349
set_char_coordinates $scplayer {x} $lowrideX {y} $lowrideY {z} $lowrideZ

:SWEET6_2349
if 
  35@ == 1
goto_if_false @SWEET6_2428
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_2421
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @SWEET6_2414
35@ += 1

:SWEET6_2414
goto @SWEET6_2428

:SWEET6_2421
35@ += 1

:SWEET6_2428
if 
  35@ == 2
goto_if_false @SWEET6_2952
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SWEET6_2460
if 
  get_fading_status 
goto_if_false @SWEET6_2484
wait 0
goto @SWEET6_2460

:SWEET6_2484
clear_prints 
request_collision 2644.252 {y} -2028.246
load_scene 2644.252 {y} -2028.246 {z} 12.5547
switch_widescreen True
set_fixed_camera_position 2640.3621 {y} -2011.104 {z} 14.9634 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2640.959 {y} -2011.886 {z} 14.7846 {switchStyle} SwitchType.JumpCut
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
make_player_gang_disappear 
clear_area 2648.9409 {y} -2017.2469 {z} 12.5625 {radius} 15.0 {clearParticles} True
clear_area 2643.875 {y} -2029.439 {z} 12.5547 {radius} 15.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2641.7429 {y} -2015.496 {z} 12.6446
set_char_heading $scplayer {heading} 214.4731
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
$stop_gargae_for_neil = 1
request_model 50
request_model 567
load_all_models_now 

:SWEET6_2694
if or
  not has_model_loaded 50
  not has_model_loaded 567
goto_if_false @SWEET6_2725
wait 0
goto @SWEET6_2694

:SWEET6_2725
request_animation "CAR"
request_animation "GANGS"

:SWEET6_2741
if or
  not has_animation_loaded "CAR"
  not has_animation_loaded "GANGS"
goto_if_false @SWEET6_2779
wait 0
goto @SWEET6_2741

:SWEET6_2779
request_car_recording 552

:SWEET6_2784
if 
  not has_car_recording_been_loaded 552
goto_if_false @SWEET6_2811
wait 0
goto @SWEET6_2784

:SWEET6_2811
71@ = create_car 567 {x} 2644.252 {y} -2028.246 {z} 12.5547
set_car_heading 71@ {heading} 358.8272
set_car_hydraulics 71@ {state} True
set_car_straight_line_distance 71@ {distance} 40
set_car_driving_style 71@ {drivingStyle} DrivingMode.PloughThrough
79@ = create_char_inside_car 71@ {pedType} PedType.CivMale {modelId} 50
set_char_decision_maker 79@ {handleOrTemplate} 66@
task_look_at_char $scplayer {target} 79@ {time} 99999
do_fade 500 {direction} Fade.In

:SWEET6_2905
if 
  get_fading_status 
goto_if_false @SWEET6_2929
wait 0
goto @SWEET6_2905

:SWEET6_2929
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SWEET6_2952
if and
  35@ > 2
  17 > 35@
goto_if_false @SWEET6_3001
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_3001
35@ = 17

:SWEET6_3001
if 
  35@ == 3
goto_if_false @SWEET6_3117
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3117
freeze_car_position 71@ {state} False
set_car_forward_speed 71@ {forwardSpeed} 2.0
set_car_cruise_speed 71@ {maxSpeed} 4.0
car_goto_coordinates_accurate 71@ {x} 2644.4619 {y} -2016.282 {z} 12.5547
TIMERA = 0
TIMERB = 0
43@ = 0
set_car_status 71@ {status} EntityStatus.Physics
35@ += 1

:SWEET6_3117
if 
  35@ == 4
goto_if_false @SWEET6_3558
if 
  15000 > TIMERA
goto_if_false @SWEET6_3505
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3498
if 
  locate_stopped_car_3d 71@ {x} 2644.4619 {y} -2017.282 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET6_3273
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_3259
control_car_hydraulics 71@ {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_3259
35@ += 1
goto @SWEET6_3498

:SWEET6_3273
if 
  2 > 43@
goto_if_false @SWEET6_3465
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_3365
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_3465

:SWEET6_3365
if 
  TIMERB > 1800
goto_if_false @SWEET6_3465
if 
  2500 > TIMERB
goto_if_false @SWEET6_3450
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_3465

:SWEET6_3450
TIMERB = 1300
43@ += 1

:SWEET6_3465
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_3498
control_car_hydraulics 71@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:SWEET6_3498
goto @SWEET6_3558

:SWEET6_3505
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3558
set_car_coordinates 71@ {x} 2644.4619 {y} -2017.282 {z} 12.5547
set_car_heading 71@ {heading} 358.5157
35@ += 1

:SWEET6_3558
if 
  35@ == 5
goto_if_false @SWEET6_3703
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3703
49@ = open_sequence_task 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3620
task_leave_car -1 {vehicle} 71@

:SWEET6_3620
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -2
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_3703
if 
  35@ == 6
goto_if_false @SWEET6_3795
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3795
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3795
if 
  not is_char_in_car 79@ {vehicle} 71@
goto_if_false @SWEET6_3795
if 
  is_char_on_foot 79@
goto_if_false @SWEET6_3795
35@ += 1

:SWEET6_3795
if 
  35@ == 7
goto_if_false @SWEET6_4168
set_fixed_camera_position 2640.2 {y} -2018.059 {z} 14.3965 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2641.135 {y} -2017.7581 {z} 14.2101 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 2642.658 {y} -2015.291 {z} 12.5947
set_char_heading $scplayer {heading} 181.4479
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3950
set_char_coordinates 79@ {x} 2641.8621 {y} -2018.108 {z} 12.2327
set_char_heading 79@ {heading} 353.04
task_look_at_char 79@ {target} $scplayer {time} -2

:SWEET6_3950
clear_char_tasks_immediately $scplayer
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4026
task_look_at_char -1 {target} 79@ {time} 99999
task_go_straight_to_coord -1 {x} 2642.3911 {y} -2016.5811 {z} 12.5947 {speed} MoveState.Walk {time} 5000
task_turn_char_to_face_char -1 {target} 79@
goto @SWEET6_4033

:SWEET6_4026
task_pause -1 {time} 1000

:SWEET6_4033
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4146
clear_char_tasks_immediately 79@
49@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_4146
62@ = 0
TIMERA = 500
35@ += 1

:SWEET6_4168
if 
  35@ == 8
goto_if_false @SWEET6_4592
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4281
$x, $y, $z = get_char_coordinates $scplayer
56@, 57@, 58@ = get_char_coordinates 79@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_char_heading 79@ {heading} $heading

:SWEET6_4281
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_4592
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET6_4592 {caseNum1} 0 {caseLabel1} @SWEET6_4370 {caseNum2} 1 {caseLabel2} @SWEET6_4436 {caseNum3} 2 {caseLabel3} @SWEET6_4502 {caseNum4} 3 {caseLabel4} @SWEET6_4557 {caseNum5} -1 {caseLabel5} @SWEET6_4592 {caseNum6} -1 {caseLabel6} @SWEET6_4592 {caseNum7} -1 {caseLabel7} @SWEET6_4592

:SWEET6_4370
set_var_text_label s$audio_string = 'LOWR_KA'
set_var_int_to_constant $audio_sound_file = 9233
start_new_script @AUDIOL 79@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9234
62@ += 1
goto @SWEET6_4592

:SWEET6_4436
set_var_text_label s$audio_string = 'LOWR_KB'
set_var_int_to_constant $audio_sound_file = 9234
start_new_script @AUDIOL 79@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9235
62@ += 1
goto @SWEET6_4592

:SWEET6_4502
set_var_text_label s$audio_string = 'LOWR_KC'
set_var_int_to_constant $audio_sound_file = 9235
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_4592

:SWEET6_4557
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4578
clear_char_tasks 79@

:SWEET6_4578
35@ += 1
goto @SWEET6_4592

:SWEET6_4592
if 
  35@ == 9
goto_if_false @SWEET6_4745
if 
  not is_car_dead 71@
goto_if_false @SWEET6_4745
set_radio_channel RadioChannel.PlaybackFM
clear_look_at $scplayer
49@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 71@ {time} 10000
task_play_anim -1 {animationName} "SIT_RELAXED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4738
task_look_at_char 79@ {target} $scplayer {time} -2

:SWEET6_4738
35@ += 1

:SWEET6_4745
if 
  35@ == 10
goto_if_false @SWEET6_4833
if 
  not is_car_dead 71@
goto_if_false @SWEET6_4833
if and
  is_char_in_car $scplayer {vehicle} 71@
  not is_char_on_foot $scplayer
goto_if_false @SWEET6_4833
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4826
freeze_char_position 79@ {state} True

:SWEET6_4826
35@ += 1

:SWEET6_4833
if 
  35@ == 11
goto_if_false @SWEET6_5124
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5124
49@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -2
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@
35@ += 1
43@ = 0
TIMERA = 500
TIMERB = 0
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
62@ = 0
if 
  not is_car_dead 71@
goto_if_false @SWEET6_5124
set_car_status 71@ {status} EntityStatus.Physics

:SWEET6_5124
if 
  35@ == 12
goto_if_false @SWEET6_5827
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_5519
switch_start 62@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET6_5519 {caseNum1} 0 {caseLabel1} @SWEET6_5231 {caseNum2} 1 {caseLabel2} @SWEET6_5297 {caseNum3} 2 {caseLabel3} @SWEET6_5363 {caseNum4} 3 {caseLabel4} @SWEET6_5429 {caseNum5} 4 {caseLabel5} @SWEET6_5484 {caseNum6} -1 {caseLabel6} @SWEET6_5519 {caseNum7} -1 {caseLabel7} @SWEET6_5519

:SWEET6_5231
set_var_text_label s$audio_string = 'LOWR_KD'
set_var_int_to_constant $audio_sound_file = 9236
start_new_script @AUDIOL 79@ 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9237
62@ += 1
goto @SWEET6_5519

:SWEET6_5297
set_var_text_label s$audio_string = 'LOWR_KE'
set_var_int_to_constant $audio_sound_file = 9237
start_new_script @AUDIOL 79@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9238
62@ += 1
goto @SWEET6_5519

:SWEET6_5363
set_var_text_label s$audio_string = 'LOWR_KF'
set_var_int_to_constant $audio_sound_file = 9238
start_new_script @AUDIOL 79@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9239
62@ += 1
goto @SWEET6_5519

:SWEET6_5429
set_var_text_label s$audio_string = 'LOWR_KG'
set_var_int_to_constant $audio_sound_file = 9239
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_5519

:SWEET6_5484
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5505
clear_char_tasks 79@

:SWEET6_5505
35@ += 1
goto @SWEET6_5519

:SWEET6_5519
if 
  not is_car_dead 71@
goto_if_false @SWEET6_5827
if 
  4 > 43@
goto_if_false @SWEET6_5734
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_5627
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_5727

:SWEET6_5627
if 
  TIMERB > 1800
goto_if_false @SWEET6_5727
if 
  2500 > TIMERB
goto_if_false @SWEET6_5712
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_5727

:SWEET6_5712
TIMERB = 1300
43@ += 1

:SWEET6_5727
goto @SWEET6_5794

:SWEET6_5734
if 
  43@ == 4
goto_if_false @SWEET6_5794
task_play_anim $scplayer {animationName} "TAP_HAND" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
43@ += 1

:SWEET6_5794
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_5827
control_car_hydraulics 71@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:SWEET6_5827
if 
  is_player_playing $player1
goto_if_false @SWEET6_5889
if 
  is_char_playing_anim $scplayer {animationName} "TAP_HAND"
goto_if_false @SWEET6_5889
set_char_anim_speed $scplayer {animName} "TAP_HAND" {animSpeed} 0.5

:SWEET6_5889
if 
  35@ == 13
goto_if_false @SWEET6_6070
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_6063
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5978
clear_char_tasks 79@
freeze_char_position 79@ {state} False
task_go_straight_to_coord 79@ {x} 2641.231 {y} -2020.621 {z} 12.7578 {speed} MoveState.Walk {time} 5000

:SWEET6_5978
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6035
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_6035
control_car_hydraulics 71@ {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_6035
35@ += 1
TIMERA = 0
TIMERB = 0
goto @SWEET6_6070

:SWEET6_6063
35@ = 17

:SWEET6_6070
if 
  35@ == 14
goto_if_false @SWEET6_6214
if 
  TIMERA > 1000
goto_if_false @SWEET6_6214
set_fixed_camera_position 2643.9851 {y} -2023.749 {z} 14.95 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2644.0911 {y} -2022.8 {z} 14.6533 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6214
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@
start_playback_recorded_car 71@ {path} 552
pause_playback_recorded_car 71@
35@ += 1
TIMERA = 0

:SWEET6_6214
if 
  35@ == 15
goto_if_false @SWEET6_6302
if 
  TIMERA > 1000
goto_if_false @SWEET6_6302
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6302
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6302
unpause_playback_recorded_car 71@
35@ += 1
TIMERA = 0

:SWEET6_6302
if 
  35@ == 16
goto_if_false @SWEET6_6367
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6367
if or
  not is_car_on_screen 71@
  TIMERA > 3000
goto_if_false @SWEET6_6367
35@ += 1

:SWEET6_6367
if 
  35@ == 17
goto_if_false @SWEET6_6637
clear_prints 
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
$stop_gargae_for_neil = 0
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6557
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6446
stop_playback_recorded_car 71@

:SWEET6_6446
freeze_car_position 71@ {state} False
if 
  does_char_exist 79@
goto_if_false @SWEET6_6474
delete_char 79@

:SWEET6_6474
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6508
stop_playback_recorded_car 71@

:SWEET6_6508
$heading = get_car_heading 71@
set_car_coordinates 71@ {x} 2644.2581 {y} -2026.526 {z} 12.5469
set_car_heading 71@ {heading} 2.3109
set_player_control $player1 {state} True
set_camera_in_front_of_player 
restore_camera_jumpcut 

:SWEET6_6557
delete_char 79@
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "GANGS"
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  $sw6_mission_attempts <> 0
goto_if_false @SWEET6_6630
35@ = 99
goto @SWEET6_6637

:SWEET6_6630
35@ += 1

:SWEET6_6637
if 
  35@ == 18
goto_if_false @SWEET6_6714
remove_blip 105@
105@ = add_blip_for_coord 2645.1121 {y} -2045.745 {z} 12.607
activate_garage 'MODLAST'
print_now 'S6_38' {time} 7000 {flag} 1
35@ += 1

:SWEET6_6714
if 
  35@ == 19
goto_if_false @SWEET6_6965
if 
  $foodmed_junkfud <> 0
goto_if_false @SWEET6_6771
clear_prints 
remove_blip 105@
35@ += 1
goto @SWEET6_6965

:SWEET6_6771
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6965
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_6881
if 
  does_blip_exist 105@
goto_if_false @SWEET6_6827
remove_blip 105@

:SWEET6_6827
if 
  not does_blip_exist 106@
goto_if_false @SWEET6_6874
106@ = add_blip_for_car 71@
set_blip_as_friendly 106@ {state} True
print_now 'S6_23' {time} 5000 {flag} 1

:SWEET6_6874
goto @SWEET6_6965

:SWEET6_6881
if 
  does_blip_exist 106@
goto_if_false @SWEET6_6913
remove_blip 106@
clear_this_print 'S6_23'

:SWEET6_6913
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_6965
105@ = add_blip_for_coord 2645.1121 {y} -2045.745 {z} 12.607
print_now 'S6_38' {time} 7000 {flag} 1

:SWEET6_6965
if 
  35@ == 20
goto_if_false @SWEET6_7130
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_7060
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7053
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7053
set_car_heading 71@ {heading} 0.0

:SWEET6_7053
35@ = 99

:SWEET6_7060
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_7130
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7123
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7123
set_car_heading 71@ {heading} 0.0

:SWEET6_7123
35@ = 99

:SWEET6_7130
if 
  35@ > 12
goto_if_false @SWEET6_7362
43@ = 0
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_7187
43@ = 1

:SWEET6_7187
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_7212
43@ = 1

:SWEET6_7212
if 
  43@ == 1
goto_if_false @SWEET6_7362
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_7362
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7325
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7318
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_7318
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_7318
goto @SWEET6_7362

:SWEET6_7325
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_7362
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_7362
if 
  35@ == 99
goto_if_false @SWEET6_7476
make_player_gang_reappear 
$sw6_mission_attempts += 1
activate_garage 'MODLAST'
clear_prints 
if 
  does_char_exist 79@
goto_if_false @SWEET6_7423
delete_char 79@

:SWEET6_7423
$stop_gargae_for_neil = 1
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "GANGS"
remove_car_recording 552
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
gosub @SWEET6_35827

:SWEET6_7476
return 

:SWEET6_7478
if 
  35@ == 0
goto_if_false @SWEET6_8696
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7554
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7554
print_now 'S6_03' {time} 7000 {flag} 1
goto @SWEET6_7554

:SWEET6_7554
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_7590
105@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:SWEET6_7590
130@ = 0
131@ = 0
141@ = 1796.947
148@ = -1924.376
155@ = 13.2937
162@ = 60.9627
142@ = 1802.865
149@ = -1918.7419
156@ = 13.2965
163@ = 357.6195
143@ = 1788.9919
150@ = -1924.501
157@ = 13.2937
164@ = 305.5176
144@ = 1784.189
151@ = -1913.4399
158@ = 13.2957
165@ = 188.9639
145@ = 1790.964
152@ = -1913.8979
159@ = 13.2985
166@ = 266.2616
146@ = 1799.899
153@ = -1906.425
160@ = 13.3025
167@ = 184.4735
147@ = 1785.9399
154@ = -1904.839
161@ = 13.297
168@ = 152.5742
169@ = 1798.603
191@ = -1908.26
213@ = 12.4388
235@ = 102.3995
170@ = 1798.887
192@ = -1907.668
214@ = 12.4399
236@ = 174.1189
171@ = 1798.834
193@ = -1911.782
215@ = 12.4374
237@ = 158.2591
172@ = 1799.584
194@ = -1912.795
216@ = 12.4368
238@ = 74.6392
173@ = 1800.902
195@ = -1918.714
217@ = 12.4331
239@ = 256.6391
174@ = 1798.166
196@ = -1920.427
218@ = 12.4321
240@ = 19.6592
175@ = 1796.811
197@ = -1920.426
219@ = 12.4321
241@ = 331.8393
176@ = 1787.78
198@ = -1919.071
220@ = 12.4329
242@ = 331.8393
177@ = 1786.71
199@ = -1917.9821
221@ = 12.4332
243@ = 285.8198
178@ = 1786.194
200@ = -1907.356
222@ = 12.4327
244@ = 260.4003
179@ = 1786.8979
201@ = -1906.531
223@ = 12.4335
245@ = 141.9807
180@ = 1786.23
202@ = -1908.6219
224@ = 12.4328
246@ = 327.1608
181@ = 1789.188
203@ = -1919.665
225@ = 12.4325
247@ = 357.2196
182@ = 1788.103
204@ = -1907.949
226@ = 12.4352
248@ = 200.9411
183@ = 1797.9969
205@ = -1912.74
227@ = 12.4368
249@ = 312.2806
184@ = 1796.46
206@ = -1908.882
228@ = 12.4368
250@ = 312.2806
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:SWEET6_8568
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @SWEET6_8610
wait 0
goto @SWEET6_8568

:SWEET6_8610
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @SWEET6_8642
wait 0
goto @SWEET6_8610

:SWEET6_8642
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @SWEET6_8676
wait 0
goto @SWEET6_8642

:SWEET6_8676
switch_audio_zone 'LOWRIDE' {state} True
35@ += 1

:SWEET6_8696
if 
  35@ == 1
goto_if_false @SWEET6_16325
if 
  68@ == 1
goto_if_false @SWEET6_8795
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SWEET6_8795
if 
  not is_car_dead 71@
goto_if_false @SWEET6_8795
set_car_coordinates 71@ {x} 1800.978 {y} -1895.775 {z} 12.4046
set_car_heading 71@ {heading} 136.3521

:SWEET6_8795
if 
  not is_car_dead 71@
goto_if_false @SWEET6_8978
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_8905
if 
  does_blip_exist 105@
goto_if_false @SWEET6_8851
remove_blip 105@

:SWEET6_8851
if 
  not does_blip_exist 106@
goto_if_false @SWEET6_8898
print_now 'S6_35' {time} 5000 {flag} 1
106@ = add_blip_for_car 71@
set_blip_as_friendly 106@ {state} True

:SWEET6_8898
goto @SWEET6_8978

:SWEET6_8905
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_8957
print_now 'S6_03' {time} 7000 {flag} 1
105@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:SWEET6_8957
if 
  does_blip_exist 106@
goto_if_false @SWEET6_8978
remove_blip 106@

:SWEET6_8978
43@ = 0
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_9017
43@ = 1

:SWEET6_9017
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_9042
43@ = 1

:SWEET6_9042
if 
  43@ == 1
goto_if_false @SWEET6_9192
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_9192
if 
  not is_car_dead 71@
goto_if_false @SWEET6_9155
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_9148
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_9148
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_9148
goto @SWEET6_9192

:SWEET6_9155
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_9192
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_9192
if 
  131@ == 0
goto_if_false @SWEET6_10695
if 
  locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_10688
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
set_car_status 72@ {status} EntityStatus.Physics
set_car_status 75@ {status} EntityStatus.Physics
set_car_hydraulics 72@ {state} True
set_car_hydraulics 75@ {state} True
set_car_only_damaged_by_player 72@ {state} True
set_car_only_damaged_by_player 75@ {state} True
wait 0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
wait 0
43@ = 0

:SWEET6_9550
if 
  7 > 43@
goto_if_false @SWEET6_9659
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_9645
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly

:SWEET6_9645
43@ += 1
goto @SWEET6_9550

:SWEET6_9659
wait 0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
81@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
93@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
96@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
43@ = 0

:SWEET6_10214
if 
  16 > 43@
goto_if_false @SWEET6_10332
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_10318
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_10318
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)

:SWEET6_10318
43@ += 1
goto @SWEET6_10214

:SWEET6_10332
43@ = 0

:SWEET6_10339
if 
  22 > 43@
goto_if_false @SWEET6_10423
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_10409
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_10409
set_char_decision_maker 80@(43@,22i) {handleOrTemplate} 67@

:SWEET6_10409
43@ += 4
goto @SWEET6_10339

:SWEET6_10423
if 
  not is_char_dead 96@
goto_if_false @SWEET6_10463
if 
  not is_car_dead 73@
goto_if_false @SWEET6_10463
warp_char_into_car 96@ {vehicle} 73@

:SWEET6_10463
if 
  not is_char_dead 97@
goto_if_false @SWEET6_10503
if 
  not is_car_dead 74@
goto_if_false @SWEET6_10503
warp_char_into_car 97@ {vehicle} 74@

:SWEET6_10503
if 
  not is_char_dead 98@
goto_if_false @SWEET6_10543
if 
  not is_car_dead 76@
goto_if_false @SWEET6_10543
warp_char_into_car 98@ {vehicle} 76@

:SWEET6_10543
if 
  not is_char_dead 99@
goto_if_false @SWEET6_10583
if 
  not is_car_dead 72@
goto_if_false @SWEET6_10583
warp_char_into_car 99@ {vehicle} 72@

:SWEET6_10583
if 
  not is_char_dead 100@
goto_if_false @SWEET6_10623
if 
  not is_car_dead 75@
goto_if_false @SWEET6_10623
warp_char_into_car 100@ {vehicle} 75@

:SWEET6_10623
if 
  does_char_exist 101@
goto_if_false @SWEET6_10681
if 
  not is_char_dead 101@
goto_if_false @SWEET6_10681
if 
  not is_car_dead 74@
goto_if_false @SWEET6_10681
warp_char_into_car_as_passenger 101@ {handle} 74@ {seat} SeatId.BikeRear

:SWEET6_10681
131@ = 1

:SWEET6_10688
goto @SWEET6_10836

:SWEET6_10695
if 
  not locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_10836
43@ = 0

:SWEET6_10740
if 
  7 > 43@
goto_if_false @SWEET6_10781
delete_car 72@(43@,7i)
43@ += 1
goto @SWEET6_10740

:SWEET6_10781
43@ = 0

:SWEET6_10788
if 
  22 > 43@
goto_if_false @SWEET6_10829
delete_char 80@(43@,22i)
43@ += 1
goto @SWEET6_10788

:SWEET6_10829
131@ = 0

:SWEET6_10836
if 
  131@ == 1
goto_if_false @SWEET6_16060
if 
  130@ == 0
goto_if_false @SWEET6_15792
if 
  300 > 136@
goto_if_false @SWEET6_10938
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_11011

:SWEET6_10938
if 
  136@ > 500
goto_if_false @SWEET6_10971
136@ = 0
goto @SWEET6_11011

:SWEET6_10971
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_11011
if 
  137@ > 2000
goto_if_false @SWEET6_11085
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_11085
if 
  138@ > 300
goto_if_false @SWEET6_11159
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 259@ = 294@
set_lvar_float_to_lvar_float 262@ = 292@
set_lvar_float_to_lvar_float 265@ = 295@
set_lvar_float_to_lvar_float 268@ = 293@
138@ = 0

:SWEET6_11159
if 
  not is_car_dead 72@
goto_if_false @SWEET6_11301
if 
  does_car_have_hydraulics 72@
goto_if_false @SWEET6_11301
control_car_hydraulics 72@ {_p2} 260@ {_p3} 266@ {_p4} 257@ {_p5} 263@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11301
if 
  not is_car_dead 75@
goto_if_false @SWEET6_11443
if 
  does_car_have_hydraulics 75@
goto_if_false @SWEET6_11443
control_car_hydraulics 75@ {_p2} 261@ {_p3} 267@ {_p4} 258@ {_p5} 264@
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11443
if 
  not is_car_dead 76@
goto_if_false @SWEET6_11585
if 
  does_car_have_hydraulics 76@
goto_if_false @SWEET6_11585
control_car_hydraulics 76@ {_p2} 262@ {_p3} 268@ {_p4} 259@ {_p5} 265@
$x, $y, $z = get_car_coordinates 76@
set_lvar_float_to_lvar_float 50@ = 145@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 152@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 76@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11585
switch_start 39@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @SWEET6_15785 {caseNum1} 0 {caseLabel1} @SWEET6_11778 {caseNum2} 1 {caseLabel2} @SWEET6_12154 {caseNum3} 2 {caseLabel3} @SWEET6_12530 {caseNum4} 3 {caseLabel4} @SWEET6_12680 {caseNum5} 4 {caseLabel5} @SWEET6_12830 {caseNum6} 5 {caseLabel6} @SWEET6_12945 {caseNum7} 6 {caseLabel7} @SWEET6_13095
switch_continued 7 {caseLabel1} @SWEET6_13245 {caseNum2} 8 {caseLabel2} @SWEET6_13361 {caseNum3} 9 {caseLabel3} @SWEET6_13477 {caseNum4} 10 {caseLabel4} @SWEET6_13853 {caseNum5} 11 {caseLabel5} @SWEET6_14036 {caseNum6} 12 {caseLabel6} @SWEET6_14152 {caseNum7} 13 {caseLabel7} @SWEET6_14268 {caseNum8} 14 {caseLabel8} @SWEET6_14575 {caseNum9} 15 {caseLabel9} @SWEET6_14900
switch_continued 16 {caseLabel1} @SWEET6_15184 {caseNum2} 17 {caseLabel2} @SWEET6_15293 {caseNum3} 18 {caseLabel3} @SWEET6_15402 {caseNum4} 19 {caseLabel4} @SWEET6_15609 {caseNum5} -1 {caseLabel5} @SWEET6_15785 {caseNum6} -1 {caseLabel6} @SWEET6_15785 {caseNum7} -1 {caseLabel7} @SWEET6_15785 {caseNum8} -1 {caseLabel8} @SWEET6_15785 {caseNum9} -1 {caseLabel9} @SWEET6_15785

:SWEET6_11778
if 
  not is_char_dead 80@
goto_if_false @SWEET6_12147
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12052
49@ = open_sequence_task 
if 
  not is_car_dead 77@
goto_if_false @SWEET6_11986
if 
  locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_11938
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_11979

:SWEET6_11938
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_11979
goto @SWEET6_12027

:SWEET6_11986
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12027
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_12147

:SWEET6_12052
if 
  is_char_playing_anim 80@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @SWEET6_12147
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12147
if 
  not locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12147
clear_char_tasks 80@

:SWEET6_12147
goto @SWEET6_15785

:SWEET6_12154
if 
  not is_char_dead 81@
goto_if_false @SWEET6_12523
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12428
49@ = open_sequence_task 
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12362
if 
  locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12314
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_12355

:SWEET6_12314
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12355
goto @SWEET6_12403

:SWEET6_12362
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12403
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_12523

:SWEET6_12428
if 
  is_char_playing_anim 81@ {animationName} "F_SMKLEAN_LOOP"
goto_if_false @SWEET6_12523
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12523
if 
  not locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12523
clear_char_tasks 81@

:SWEET6_12523
goto @SWEET6_15785

:SWEET6_12530
if 
  not is_char_dead 82@
goto_if_false @SWEET6_12673
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12673
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @SWEET6_12614
task_chat_with_char -1 {other} 83@ {leadSpeaker} True {_p4} 1
goto @SWEET6_12655

:SWEET6_12614
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12655
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12673
goto @SWEET6_15785

:SWEET6_12680
if 
  not is_char_dead 83@
goto_if_false @SWEET6_12823
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12823
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @SWEET6_12764
task_chat_with_char -1 {other} 82@ {leadSpeaker} False {_p4} 1
goto @SWEET6_12805

:SWEET6_12764
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12805
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12823
goto @SWEET6_15785

:SWEET6_12830
if 
  not is_char_dead 84@
goto_if_false @SWEET6_12938
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12938
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12938
goto @SWEET6_15785

:SWEET6_12945
if 
  not is_char_dead 85@
goto_if_false @SWEET6_13088
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13088
49@ = open_sequence_task 
if 
  not is_char_dead 86@
goto_if_false @SWEET6_13029
task_chat_with_char -1 {other} 86@ {leadSpeaker} False {_p4} 1
goto @SWEET6_13070

:SWEET6_13029
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13070
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13088
goto @SWEET6_15785

:SWEET6_13095
if 
  not is_char_dead 86@
goto_if_false @SWEET6_13238
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13238
49@ = open_sequence_task 
if 
  not is_char_dead 85@
goto_if_false @SWEET6_13179
task_chat_with_char -1 {other} 85@ {leadSpeaker} True {_p4} 1
goto @SWEET6_13220

:SWEET6_13179
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13220
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13238
goto @SWEET6_15785

:SWEET6_13245
if 
  not is_char_dead 87@
goto_if_false @SWEET6_13354
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13354
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13354
goto @SWEET6_15785

:SWEET6_13361
if 
  not is_char_dead 88@
goto_if_false @SWEET6_13470
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13470
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13470
goto @SWEET6_15785

:SWEET6_13477
if 
  not is_char_dead 89@
goto_if_false @SWEET6_13846
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13751
49@ = open_sequence_task 
if 
  not is_car_dead 78@
goto_if_false @SWEET6_13685
if 
  locate_car_3d 78@ {x} 147@ {y} 154@ {z} 161@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_13637
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_13678

:SWEET6_13637
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13678
goto @SWEET6_13726

:SWEET6_13685
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13726
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_13846

:SWEET6_13751
if 
  is_char_playing_anim 89@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @SWEET6_13846
if 
  not is_car_dead 78@
goto_if_false @SWEET6_13846
if 
  not locate_car_3d 78@ {x} 147@ {y} 154@ {z} 161@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_13846
clear_char_tasks 89@

:SWEET6_13846
goto @SWEET6_15785

:SWEET6_13853
if 
  not is_char_dead 90@
goto_if_false @SWEET6_14029
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14029
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14029
goto @SWEET6_15785

:SWEET6_14036
if 
  not is_char_dead 91@
goto_if_false @SWEET6_14145
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14145
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14145
goto @SWEET6_15785

:SWEET6_14152
if 
  not is_char_dead 92@
goto_if_false @SWEET6_14261
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14261
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14261
goto @SWEET6_15785

:SWEET6_14268
if 
  not is_char_dead 93@
goto_if_false @SWEET6_14568
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14568
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.179 {y} -1919.465 {z} 12.3928 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 182@ {y} 204@ {z} 226@ {speed} MoveState.Walk {time} 60000
if 
  not is_char_dead 89@
goto_if_false @SWEET6_14509
task_turn_char_to_face_char -1 {target} 89@

:SWEET6_14509
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14568
goto @SWEET6_15785

:SWEET6_14575
if 
  not is_char_dead 94@
goto_if_false @SWEET6_14893
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14893
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1800.3669 {y} -1917.394 {z} 12.3938 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1789.057 {y} -1917.901 {z} 12.3936 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1788.526 {y} -1907.2939 {z} 12.3955 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.478 {y} -1908.174 {z} 12.3983 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14893
goto @SWEET6_15785

:SWEET6_14900
if 
  not is_char_dead 95@
goto_if_false @SWEET6_15177
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15177
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1917.1071 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 184@ {y} 206@ {z} 228@ {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15177
goto @SWEET6_15785

:SWEET6_15184
if 
  not is_char_dead 96@
goto_if_false @SWEET6_15286
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15286
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15286
goto @SWEET6_15785

:SWEET6_15293
if 
  not is_char_dead 97@
goto_if_false @SWEET6_15395
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15395
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15395
goto @SWEET6_15785

:SWEET6_15402
43@ = 0

:SWEET6_15409
if 
  7 > 43@
goto_if_false @SWEET6_15602
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_15588
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_15558
if 
  has_car_been_damaged_by_char 72@(43@,7i) {handle} $scplayer
goto_if_false @SWEET6_15551
44@ = get_car_health 72@(43@,7i)
if 
  950 > 44@
goto_if_false @SWEET6_15551
print_now 'S6_32' {time} 5000 {flag} 1
130@ = 1
43@ = 7

:SWEET6_15551
goto @SWEET6_15588

:SWEET6_15558
print_now 'S6_32' {time} 5000 {flag} 1
130@ = 1
43@ = 7

:SWEET6_15588
43@ += 1
goto @SWEET6_15409

:SWEET6_15602
goto @SWEET6_15785

:SWEET6_15609
43@ = 0

:SWEET6_15616
if 
  22 > 43@
goto_if_false @SWEET6_15778
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_15764
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15734
if 
  has_char_been_damaged_by_char 80@(43@,22i) {handle} $scplayer
goto_if_false @SWEET6_15727
print_now 'S6_04' {time} 5000 {flag} 1
130@ = 1
43@ = 22

:SWEET6_15727
goto @SWEET6_15764

:SWEET6_15734
print_now 'S6_04' {time} 5000 {flag} 1
130@ = 1
43@ = 22

:SWEET6_15764
43@ += 1
goto @SWEET6_15616

:SWEET6_15778
goto @SWEET6_15785

:SWEET6_15785
goto @SWEET6_16060

:SWEET6_15792
if 
  130@ == 1
goto_if_false @SWEET6_16060
43@ = 0

:SWEET6_15817
if 
  12 > 43@
goto_if_false @SWEET6_15878
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15864
clear_char_tasks_immediately 80@(43@,22i)

:SWEET6_15864
43@ += 1
goto @SWEET6_15817

:SWEET6_15878
43@ = 0

:SWEET6_15885
if 
  22 > 43@
goto_if_false @SWEET6_15950
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15936
set_char_relationship 80@(43@,22i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:SWEET6_15936
43@ += 1
goto @SWEET6_15885

:SWEET6_15950
43@ = 0

:SWEET6_15957
if 
  22 > 43@
goto_if_false @SWEET6_15998
mark_char_as_no_longer_needed 80@(43@,22i)
43@ += 1
goto @SWEET6_15957

:SWEET6_15998
43@ = 0

:SWEET6_16005
if 
  7 > 43@
goto_if_false @SWEET6_16046
mark_car_as_no_longer_needed 72@(43@,7i)
43@ += 1
goto @SWEET6_16005

:SWEET6_16046
37@ = 1
130@ += 1

:SWEET6_16060
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16325
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16325
if 
  locate_char_in_car_3d $scplayer {x} 1793.068 {y} -1904.254 {z} 12.3989 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET6_16318
if 
  is_vehicle_on_all_wheels 71@
goto_if_false @SWEET6_16311
43@ = store_score $player1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 274@
goto_if_false @SWEET6_16215
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
35@ = 99
goto @SWEET6_16311

:SWEET6_16215
if and
  $audio_line_is_active == 0
  not is_message_being_displayed 
goto_if_false @SWEET6_16311
if 
  280@ == 0
goto_if_false @SWEET6_16311
set_var_text_label s$audio_string = 'LOWR_AK'
set_var_int_to_constant $audio_sound_file = 9206
start_new_script @AUDIOL -1 0 0 1 0 
280@ += 1
print_help 'S6_40'

:SWEET6_16311
goto @SWEET6_16325

:SWEET6_16318
280@ = 0

:SWEET6_16325
if 
  281@ == 0
goto_if_false @SWEET6_16448
if 
  not locate_char_any_means_2d $scplayer {x} 2644.0691 {y} -2029.135 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET6_16441
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16441
print_help 'S6_22'
remove_blip $mod_garage_blip
$mod_garage_blip = add_short_range_sprite_blip_for_coord 2644.252 {y} -2028.246 {z} 12.5547 {sprite} RadarSprite.ModGarage
281@ += 1

:SWEET6_16441
goto @SWEET6_16627

:SWEET6_16448
if 
  282@ == 0
goto_if_false @SWEET6_16541
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16534
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16534
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16534
print_help 'S6_36'
282@ += 1

:SWEET6_16534
goto @SWEET6_16627

:SWEET6_16541
if 
  282@ == 1
goto_if_false @SWEET6_16627
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16627
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16627
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16627
print_help 'S6_41'
282@ += 1

:SWEET6_16627
if 
  35@ == 99
goto_if_false @SWEET6_16692
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_16692
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @SWEET6_16692
gosub @SWEET6_35827

:SWEET6_16692
return 

:SWEET6_16694
if 
  35@ == 0
goto_if_false @SWEET6_17318
do_fade 500 {direction} Fade.Out

:SWEET6_16719
if 
  get_fading_status 
goto_if_false @SWEET6_16743
wait 0
goto @SWEET6_16719

:SWEET6_16743
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16764
reset_vehicle_hydraulics 71@

:SWEET6_16764
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1793.068 {y} -1904.254 {z} 12.3989 {radius} 30.0 {clearParticles} True
if 
  does_blip_exist 105@
goto_if_false @SWEET6_16823
remove_blip 105@

:SWEET6_16823
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16869
set_car_coordinates 71@ {x} 1793.068 {y} -1904.254 {z} 12.3989
set_car_heading 71@ {heading} 171.6728

:SWEET6_16869
43@ = 0

:SWEET6_16876
if 
  16 > 43@
goto_if_false @SWEET6_16937
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_16923
clear_char_tasks_immediately 80@(43@,22i)

:SWEET6_16923
43@ += 1
goto @SWEET6_16876

:SWEET6_16937
43@ = 0

:SWEET6_16944
if 
  22 > 43@
goto_if_false @SWEET6_17008
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_16994
set_char_decision_maker 80@(43@,22i) {handleOrTemplate} 66@

:SWEET6_16994
43@ += 1
goto @SWEET6_16944

:SWEET6_17008
43@ = 0

:SWEET6_17015
if 
  16 > 43@
goto_if_false @SWEET6_17113
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_17099
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)

:SWEET6_17099
43@ += 1
goto @SWEET6_17015

:SWEET6_17113
43@ = 0

:SWEET6_17120
if 
  7 > 43@
goto_if_false @SWEET6_17218
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_17204
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)

:SWEET6_17204
43@ += 1
goto @SWEET6_17120

:SWEET6_17218
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1796.749 {y} -1916.9611 {z} 13.8583 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1796.125 {y} -1916.181 {z} 13.807 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:SWEET6_17287
if 
  get_fading_status 
goto_if_false @SWEET6_17311
wait 0
goto @SWEET6_17287

:SWEET6_17311
35@ += 1

:SWEET6_17318
if 
  35@ == 1
goto_if_false @SWEET6_17436
if 
  not is_char_dead 98@
goto_if_false @SWEET6_17422
49@ = open_sequence_task 
if 
  not is_car_dead 76@
goto_if_false @SWEET6_17380
task_leave_car -1 {vehicle} 76@

:SWEET6_17380
task_go_straight_to_coord -1 {x} 1792.631 {y} -1909.274 {z} 12.4371 {speed} MoveState.Walk {time} 10000
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_17422
TIMERA = 0
35@ += 1

:SWEET6_17436
if 
  35@ == 2
goto_if_false @SWEET6_17588
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_17588
if 
  not is_char_dead 98@
goto_if_false @SWEET6_17588
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 1792.631 {y} -1909.274 {z} 12.4371
set_char_heading 98@ {heading} 331.0204
set_fixed_camera_position 1793.816 {y} -1910.713 {z} 14.0346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.453 {y} -1909.801 {z} 13.8451 {switchStyle} SwitchType.JumpCut
35@ += 1

:SWEET6_17588
if 
  35@ == 3
goto_if_false @SWEET6_18038
if 
  not is_char_dead 98@
goto_if_false @SWEET6_18038
49@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@
43@ = generate_random_int_in_range 0 {max} 3
if 
  43@ == 0
goto_if_false @SWEET6_17893
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 9208
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17893
if 
  43@ == 1
goto_if_false @SWEET6_17952
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 9209
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17952
if 
  43@ == 2
goto_if_false @SWEET6_18011
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 9210
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_18011
wait 1000
use_text_commands True
wait 1
TIMERA = 0
35@ += 1

:SWEET6_18038
if 
  35@ == 4
goto_if_false @SWEET6_18133
if or
  $audio_line_is_active == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_18133
35@ += 1
134@ = 1
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  not is_char_dead 98@
goto_if_false @SWEET6_18133
clear_char_tasks 98@

:SWEET6_18133
if 
  35@ == 5
goto_if_false @SWEET6_18255
switch_widescreen False
set_fixed_camera_position 1793.485 {y} -1907.354 {z} 13.4436 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.129 {y} -1908.2889 {z} 13.4481 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 276@ = 274@
set_lvar_int_to_lvar_int 43@ = 276@
43@ *= -1
add_score $player1 {money} 43@
print_help_forever 'S6_37'
35@ += 1

:SWEET6_18255
if 
  35@ == 6
goto_if_false @SWEET6_19190
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @SWEET6_18699
if and
  277@ <> 1
  277@ <> -1
goto_if_false @SWEET6_18648
if 
  276@ >= 10000
goto_if_false @SWEET6_18349
273@ = 1000
goto @SWEET6_18453

:SWEET6_18349
if 
  276@ >= 1000
goto_if_false @SWEET6_18382
273@ = 100
goto @SWEET6_18453

:SWEET6_18382
if 
  276@ >= 100
goto_if_false @SWEET6_18414
273@ = 10
goto @SWEET6_18453

:SWEET6_18414
if 
  276@ == 0
goto_if_false @SWEET6_18446
273@ = 2
goto @SWEET6_18453

:SWEET6_18446
273@ = 1

:SWEET6_18453
43@ = store_score $player1
if 
  is_int_lvar_greater_than_int_lvar 273@ > 43@
goto_if_false @SWEET6_18488
set_lvar_int_to_lvar_int 273@ = 43@

:SWEET6_18488
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 43@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 275@
goto_if_false @SWEET6_18539
set_lvar_int_to_lvar_int 273@ = 275@
sub_int_lvar_from_int_lvar 273@ -= 276@

:SWEET6_18539
if 
  0 > 273@
goto_if_false @SWEET6_18564
273@ *= -1

:SWEET6_18564
add_int_lvar_to_int_lvar 276@ += 273@
add_int_lvar_to_int_lvar 278@ += 273@
273@ *= -1
add_score $player1 {money} 273@
277@ += 1
if 
  277@ > 1
goto_if_false @SWEET6_18634
277@ = 2
goto @SWEET6_18641

:SWEET6_18634
TIMERA = 0

:SWEET6_18641
goto @SWEET6_18692

:SWEET6_18648
if 
  277@ == 1
goto_if_false @SWEET6_18692
if 
  TIMERA > 500
goto_if_false @SWEET6_18692
277@ = 2

:SWEET6_18692
goto @SWEET6_19090

:SWEET6_18699
if 
  277@ <> 0
goto_if_false @SWEET6_18724
277@ = 0

:SWEET6_18724
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @SWEET6_19065
if 
  279@ <> 1
goto_if_false @SWEET6_19032
if 
  276@ > 10000
goto_if_false @SWEET6_18793
273@ = -1000
goto @SWEET6_18865

:SWEET6_18793
if 
  276@ > 1000
goto_if_false @SWEET6_18826
273@ = -100
goto @SWEET6_18865

:SWEET6_18826
if 
  276@ > 100
goto_if_false @SWEET6_18858
273@ = -10
goto @SWEET6_18865

:SWEET6_18858
273@ = -1

:SWEET6_18865
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 276@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18922
276@ = 0
set_lvar_int_to_lvar_int 273@ = 43@
273@ *= -1

:SWEET6_18922
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18956
set_lvar_int_to_lvar_int 276@ = 274@
goto @SWEET6_18979

:SWEET6_18956
273@ *= -1
sub_int_lvar_from_int_lvar 278@ -= 273@
add_score $player1 {money} 273@

:SWEET6_18979
279@ += 1
if 
  279@ > 1
goto_if_false @SWEET6_19018
279@ = 2
goto @SWEET6_19025

:SWEET6_19018
TIMERA = 0

:SWEET6_19025
goto @SWEET6_19058

:SWEET6_19032
if 
  TIMERA > 500
goto_if_false @SWEET6_19058
279@ = 2

:SWEET6_19058
goto @SWEET6_19090

:SWEET6_19065
if 
  279@ <> 0
goto_if_false @SWEET6_19090
279@ = 0

:SWEET6_19090
gosub @SWEET6_35372
if 
  134@ == 0
goto_if_false @SWEET6_19166
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_19159
cset_lvar_float_to_lvar_int 46@ =# 276@
46@ *= 0.1
clear_help 
35@ += 1

:SWEET6_19159
goto @SWEET6_19190

:SWEET6_19166
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_19190
134@ = 0

:SWEET6_19190
if 
  35@ == 7
goto_if_false @SWEET6_19223
use_text_commands False
switch_widescreen True
35@ += 1

:SWEET6_19223
if 
  35@ == 8
goto_if_false @SWEET6_19271
if 
  not is_char_dead 98@
goto_if_false @SWEET6_19271
TIMERA = 0
35@ += 1

:SWEET6_19271
if 
  35@ == 9
goto_if_false @SWEET6_19396
if 
  not is_char_dead 98@
goto_if_false @SWEET6_19396
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1791.433 {y} -1911.4139 {z} 12.4371 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_19364
task_enter_car_as_driver -1 {vehicle} 76@ {time} 5000

:SWEET6_19364
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_19396
if 
  35@ == 10
goto_if_false @SWEET6_19473
if 
  TIMERA > 2000
goto_if_false @SWEET6_19473
clear_prints 
do_fade 500 {direction} Fade.Out

:SWEET6_19442
if 
  get_fading_status 
goto_if_false @SWEET6_19466
wait 0
goto @SWEET6_19442

:SWEET6_19466
35@ = 99

:SWEET6_19473
gosub @SWEET6_29743
if 
  35@ == 99
goto_if_false @SWEET6_19505
gosub @SWEET6_35827

:SWEET6_19505
return 

:SWEET6_19507
if 
  35@ == 0
goto_if_false @SWEET6_19613
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 1788.1071 {y} -1903.804 {z} 13.3553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1788.944 {y} -1904.343 {z} 13.2601 {switchStyle} SwitchType.JumpCut
load_scene 1788.944 {y} -1904.343 {z} 13.2601
35@ += 1

:SWEET6_19613
if 
  35@ == 1
goto_if_false @SWEET6_22333
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:SWEET6_19675
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @SWEET6_19717
wait 0
goto @SWEET6_19675

:SWEET6_19717
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @SWEET6_19749
wait 0
goto @SWEET6_19717

:SWEET6_19749
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @SWEET6_19783
wait 0
goto @SWEET6_19749

:SWEET6_19783
141@ = 1798.203
148@ = -1926.222
155@ = 12.3895
162@ = 73.1404
142@ = 1802.864
149@ = -1918.741
156@ = 12.3931
163@ = 357.6193
143@ = 1784.635
150@ = -1924.968
157@ = 12.3901
164@ = 305.062
144@ = 1784.188
151@ = -1913.439
158@ = 12.3923
165@ = 183.5814
145@ = 1792.318
152@ = -1919.5129
159@ = 12.3928
166@ = 8.2504
146@ = 1801.462
153@ = -1905.691
160@ = 12.3995
167@ = 189.9314
147@ = 1787.642
154@ = -1901.136
161@ = 12.3949
168@ = 145.4181
169@ = 1800.0
191@ = -1907.83
213@ = 12.4398
235@ = 73.7198
170@ = 1799.8459
192@ = -1912.124
214@ = 12.4582
236@ = 48.2386
171@ = 1800.0861
193@ = -1910.434
215@ = 12.4372
237@ = 83.7398
172@ = 1801.321
194@ = -1916.427
216@ = 12.4343
238@ = 83.7398
173@ = 1798.541
195@ = -1922.1801
217@ = 12.431
239@ = 46.5794
174@ = 1799.49
196@ = -1920.6169
218@ = 12.4322
240@ = 46.5794
175@ = 1787.255
197@ = -1926.597
219@ = 12.4283
241@ = 323.6194
176@ = 1786.442
198@ = -1920.201
220@ = 12.4322
242@ = 306.1995
177@ = 1785.824
199@ = -1919.162
221@ = 12.4324
243@ = 294.6196
178@ = 1786.1021
200@ = -1913.833
222@ = 12.4327
244@ = 280.7204
179@ = 1786.806
201@ = -1905.246
223@ = 12.4342
245@ = 262.8214
180@ = 1788.693
202@ = -1902.139
224@ = 12.4348
246@ = 247.161
181@ = 1794.616
203@ = -1899.608
225@ = 12.4398
247@ = 191.0618
182@ = 1799.135
204@ = -1902.488
226@ = 12.4431
248@ = 157.4622
183@ = 1795.674
205@ = -1899.569
227@ = 12.4407
249@ = 162.6424
184@ = 1800.369
206@ = -1907.0031
228@ = 12.4403
250@ = 77.6197
185@ = 1800.826
207@ = -1917.325
229@ = 12.434
251@ = 36.1793
186@ = 1785.85
208@ = -1917.955
230@ = 12.4324
252@ = 287.0602
187@ = 1788.538
209@ = -1927.0909
231@ = 12.428
253@ = 345.1206
188@ = 1787.323
210@ = -1904.11
232@ = 12.4337
254@ = 263.3813
189@ = 1798.39
211@ = -1901.733
233@ = 12.4429
255@ = 142.4208
272@ = 0.01
43@ = 0

:SWEET6_20920
if 
  7 > 43@
goto_if_false @SWEET6_20981
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_20967
delete_car 72@(43@,7i)

:SWEET6_20967
43@ += 1
goto @SWEET6_20920

:SWEET6_20981
43@ = 0

:SWEET6_20988
if 
  22 > 43@
goto_if_false @SWEET6_21049
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_21035
delete_char 80@(43@,22i)

:SWEET6_21035
43@ += 1
goto @SWEET6_20988

:SWEET6_21049
if 
  not does_vehicle_exist 71@
goto_if_false @SWEET6_21105
71@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231
goto @SWEET6_21151

:SWEET6_21105
if 
  not is_car_dead 71@
goto_if_false @SWEET6_21151
set_car_coordinates 71@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231

:SWEET6_21151
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 71@
goto_if_false @SWEET6_21223
warp_char_into_car $scplayer {vehicle} 71@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET6_21223
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
43@ = 0

:SWEET6_21454
if 
  7 > 43@
goto_if_false @SWEET6_21554
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
freeze_car_position 72@(43@,7i) {state} True
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @SWEET6_21454

:SWEET6_21554
freeze_car_position 76@ {state} False
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:SWEET6_22120
if 
  21 > 43@
goto_if_false @SWEET6_22198
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)
43@ += 1
goto @SWEET6_22120

:SWEET6_22198
102@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 102@ {heading} 232.5412
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22281
if 
  not is_car_passenger_seat_free 71@ {seat} SeatId.BikeRear
goto_if_false @SWEET6_22281
283@ = get_char_in_car_passenger_seat 71@ {seat} SeatId.BikeRear
delete_char 283@

:SWEET6_22281
preload_beat_track 0
43@ = 0

:SWEET6_22292
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @SWEET6_22326
wait 0
43@ = get_beat_track_status 
goto @SWEET6_22292

:SWEET6_22326
35@ += 1

:SWEET6_22333
if 
  35@ == 2
goto_if_false @SWEET6_22486
do_fade 500 {direction} Fade.In

:SWEET6_22358
if 
  get_fading_status 
goto_if_false @SWEET6_22382
wait 0
goto @SWEET6_22358

:SWEET6_22382
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22477
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1791.178 {y} -1905.84 {z} 12.3975 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22459
task_enter_car_as_passenger -1 {vehicle} 71@ {time} 5000 {seat} SeatId.BikeRear

:SWEET6_22459
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_22477
clear_prints 
35@ += 1

:SWEET6_22486
if 
  35@ == 3
goto_if_false @SWEET6_22607
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_22593
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22586
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22586
if 
  is_char_in_car 102@ {vehicle} 71@
goto_if_false @SWEET6_22586
35@ += 1
TIMERA = 0

:SWEET6_22586
goto @SWEET6_22607

:SWEET6_22593
35@ += 1
TIMERA = 0

:SWEET6_22607
if 
  35@ == 4
goto_if_false @SWEET6_23201
do_fade 500 {direction} Fade.Out

:SWEET6_22632
if 
  get_fading_status 
goto_if_false @SWEET6_22656
wait 0
goto @SWEET6_22632

:SWEET6_22656
display_hud False
switch_widescreen False
set_fixed_camera_position 1788.516 {y} -1910.318 {z} 14.8901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1789.355 {y} -1909.843 {z} 14.6269 {switchStyle} SwitchType.JumpCut
display_radar False
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22764
lock_car_doors 71@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 71@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SWEET6_22764
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22829
clear_char_tasks_immediately 102@
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22829
if 
  is_car_passenger_seat_free 71@ {seat} SeatId.BikeRear
goto_if_false @SWEET6_22829
warp_char_into_car_as_passenger 102@ {handle} 71@ {seat} SeatId.BikeRear

:SWEET6_22829
269@ = 0.62
270@ = 0.31
271@ = -0.167
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22941
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22941
if 
  is_car_model 71@ {modelId} 567
goto_if_false @SWEET6_22941
clear_char_tasks_immediately 102@
attach_char_to_car 102@ {vehicle} 71@ {xOffset} 269@ {yOffset} 270@ {zOffset} 271@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SWEET6_22941
49@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
if 
  not is_char_dead 102@
goto_if_false @SWEET6_23076
if 
  is_char_attached_to_any_car 102@
goto_if_false @SWEET6_23076
perform_sequence_task 102@ {sequence} 49@

:SWEET6_23076
clear_sequence_task 49@
TIMERA = 0
clear_prints 
$lowrider_level = -1
$lowrider_last_level = -1
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_23136
$lowrider_opposition_skill = 2
goto @SWEET6_23161

:SWEET6_23136
if 
  1 > $lowrider_opposition_skill
goto_if_false @SWEET6_23161
$lowrider_opposition_skill = 1

:SWEET6_23161
do_fade 500 {direction} Fade.In

:SWEET6_23168
if 
  get_fading_status 
goto_if_false @SWEET6_23192
wait 0
goto @SWEET6_23168

:SWEET6_23192
play_beat_track 
35@ += 1

:SWEET6_23201
if 
  35@ == 5
goto_if_false @SWEET6_23315
set_player_control $player1 {state} True
start_new_script @BDISPLY 
start_new_script @LOWGAME 71@ 76@ 102@ 
TIMERA = 0
139@ = 0
133@ = 0
clear_prints 
clear_help 
print_help 'S6_39'
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:SWEET6_23315
if 
  35@ == 6
goto_if_false @SWEET6_23358
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_23358
35@ += 1

:SWEET6_23358
if 
  35@ == 7
goto_if_false @SWEET6_24524
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_24517
if 
  135@ == 0
goto_if_false @SWEET6_23835
if or
  139@ > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @SWEET6_23828
133@ += 1
if 
  133@ >= 5
goto_if_false @SWEET6_23469
133@ = 0

:SWEET6_23469
if 
  not is_car_dead 71@
goto_if_false @SWEET6_23499
$x, $y, $z = get_car_coordinates 71@

:SWEET6_23499
if 
  133@ == 0
goto_if_false @SWEET6_23562
set_fixed_camera_position 1803.978 {y} -1909.369 {z} 15.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23562
if 
  133@ == 1
goto_if_false @SWEET6_23625
set_fixed_camera_position 1795.369 {y} -1900.999 {z} 14.1795 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23625
if 
  133@ == 2
goto_if_false @SWEET6_23688
set_fixed_camera_position 1788.793 {y} -1902.99 {z} 13.7203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23688
if 
  133@ == 3
goto_if_false @SWEET6_23751
set_fixed_camera_position 1789.377 {y} -1912.1949 {z} 14.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23751
if 
  133@ == 4
goto_if_false @SWEET6_23814
set_fixed_camera_position 1796.4091 {y} -1912.231 {z} 13.8316 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23814
135@ += 1
139@ = 0

:SWEET6_23828
goto @SWEET6_23859

:SWEET6_23835
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @SWEET6_23859
135@ = 0

:SWEET6_23859
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @SWEET6_24510
$x, $y, $z = get_active_camera_coordinates 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_23923
56@, 57@, 58@ = get_car_coordinates 71@
$heading = get_car_heading 71@

:SWEET6_23923
$heading *= -1.0
46@ = cos $heading
47@ = sin $heading
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = get_active_camera_point_at 
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:SWEET6_24510
goto @SWEET6_24524

:SWEET6_24517
35@ += 1

:SWEET6_24524
if 
  35@ == 8
goto_if_false @SWEET6_24594
set_player_control $player1 {state} False
$bd_terminate_script = 1
do_fade 500 {direction} Fade.Out

:SWEET6_24563
if 
  get_fading_status 
goto_if_false @SWEET6_24587
wait 0
goto @SWEET6_24563

:SWEET6_24587
35@ = 99

:SWEET6_24594
gosub @SWEET6_32587
if 
  35@ == 99
goto_if_false @SWEET6_24626
gosub @SWEET6_35827

:SWEET6_24626
return 

:SWEET6_24628
if 
  35@ == 0
goto_if_false @SWEET6_24742
stop_beat_track 
clear_prints 
restore_camera_jumpcut 
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 1785.766 {y} -1924.333 {z} 14.4648 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1786.283 {y} -1923.493 {z} 14.3015 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 71@
goto_if_false @SWEET6_24735
reset_vehicle_hydraulics 71@

:SWEET6_24735
35@ += 1

:SWEET6_24742
if 
  35@ == 1
goto_if_false @SWEET6_26230
43@ = 0

:SWEET6_24767
if 
  7 > 43@
goto_if_false @SWEET6_24828
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_24814
delete_car 72@(43@,7i)

:SWEET6_24814
43@ += 1
goto @SWEET6_24767

:SWEET6_24828
43@ = 0

:SWEET6_24835
if 
  22 > 43@
goto_if_false @SWEET6_24896
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_24882
delete_char 80@(43@,22i)

:SWEET6_24882
43@ += 1
goto @SWEET6_24835

:SWEET6_24896
if 
  does_char_exist 102@
goto_if_false @SWEET6_24917
delete_char 102@

:SWEET6_24917
if 
  not does_vehicle_exist 71@
goto_if_false @SWEET6_24973
71@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231
goto @SWEET6_25019

:SWEET6_24973
if 
  not is_car_dead 71@
goto_if_false @SWEET6_25019
set_car_coordinates 71@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231

:SWEET6_25019
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
43@ = 0

:SWEET6_25250
if 
  7 > 43@
goto_if_false @SWEET6_25350
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
freeze_car_position 72@(43@,7i) {state} True
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @SWEET6_25250

:SWEET6_25350
freeze_car_position 76@ {state} False
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:SWEET6_25916
if 
  21 > 43@
goto_if_false @SWEET6_25994
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)
43@ += 1
goto @SWEET6_25916

:SWEET6_25994
102@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 102@ {heading} 232.5412
if 
  not is_car_dead 71@
goto_if_false @SWEET6_26103
43@ = get_number_of_passengers 71@
if 
  43@ > 0
goto_if_false @SWEET6_26077
goto @SWEET6_26103

:SWEET6_26077
if 
  not is_char_dead 102@
goto_if_false @SWEET6_26103
warp_char_into_car_as_passenger 102@ {handle} 71@ {seat} SeatId.BikeRear

:SWEET6_26103
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 71@
goto_if_false @SWEET6_26175
warp_char_into_car $scplayer {vehicle} 71@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET6_26175
load_scene 1791.574 {y} -1911.437 {z} 12.4378
do_fade 1000 {direction} Fade.In

:SWEET6_26199
if 
  get_fading_status 
goto_if_false @SWEET6_26223
wait 0
goto @SWEET6_26199

:SWEET6_26223
35@ += 1

:SWEET6_26230
if 
  35@ == 2
goto_if_false @SWEET6_26348
if 
  not is_char_dead 101@
goto_if_false @SWEET6_26348
49@ = open_sequence_task 
if 
  not is_car_dead 76@
goto_if_false @SWEET6_26292
task_leave_car -1 {vehicle} 76@

:SWEET6_26292
task_go_straight_to_coord -1 {x} 1791.574 {y} -1911.437 {z} 12.4378 {speed} MoveState.Walk {time} 10000
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_26348
if 
  35@ == 3
goto_if_false @SWEET6_26571
if 
  TIMERA > 5000
goto_if_false @SWEET6_26571
set_fixed_camera_position 1795.4301 {y} -1905.0179 {z} 13.6653 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1795.145 {y} -1905.968 {z} 13.5431 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 101@
goto_if_false @SWEET6_26557
clear_char_tasks_immediately 101@
set_char_coordinates 101@ {x} 1795.968 {y} -1909.333 {z} 12.4389
set_char_heading 101@ {heading} 20.3199
49@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 99999
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_26557
TIMERA = 0
35@ += 1

:SWEET6_26571
if 
  35@ == 4
goto_if_false @SWEET6_26901
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_26745
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @SWEET6_26683
set_var_text_label s$audio_string = 'LOWR_CA'
set_var_int_to_constant $audio_sound_file = 9211
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26724

:SWEET6_26683
set_var_text_label s$audio_string = 'LOWR_CB'
set_var_int_to_constant $audio_sound_file = 9212
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26724
TIMERA = 0
35@ += 1
goto @SWEET6_26896

:SWEET6_26745
$lowrider_opposition_skill -= 1
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @SWEET6_26827
set_var_text_label s$audio_string = 'LOWR_DA'
set_var_int_to_constant $audio_sound_file = 9213
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26868

:SWEET6_26827
set_var_text_label s$audio_string = 'LOWR_DB'
set_var_int_to_constant $audio_sound_file = 9214
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26868
TIMERA = 0
35@ += 2
276@ *= -1
TIMERA = 0

:SWEET6_26896
wait 1000

:SWEET6_26901
if 
  35@ == 5
goto_if_false @SWEET6_27058
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27058
if 
  not is_char_dead 101@
goto_if_false @SWEET6_27058
clear_char_tasks 101@
clear_look_at 101@
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.299 {y} -1917.246 {z} 12.4339 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_27026
task_enter_car_as_driver -1 {vehicle} 76@ {time} 10000

:SWEET6_27026
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 2

:SWEET6_27058
if 
  35@ == 6
goto_if_false @SWEET6_27219
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27219
if 
  not is_char_dead 101@
goto_if_false @SWEET6_27219
clear_char_tasks 101@
clear_look_at 101@
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.299 {y} -1917.246 {z} 12.4339 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_27187
task_enter_car_as_driver -1 {vehicle} 76@ {time} 10000

:SWEET6_27187
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_27219
if 
  35@ == 7
goto_if_false @SWEET6_27334
if 
  TIMERA > 3000
goto_if_false @SWEET6_27334
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_27296
35@ += 1
TIMERA = 0
goto @SWEET6_27334

:SWEET6_27296
do_fade 500 {direction} Fade.Out

:SWEET6_27303
if 
  get_fading_status 
goto_if_false @SWEET6_27327
wait 0
goto @SWEET6_27303

:SWEET6_27327
35@ = 99

:SWEET6_27334
if 
  35@ == 8
goto_if_false @SWEET6_27366
TIMERA = 0
35@ += 1

:SWEET6_27366
if 
  35@ == 9
goto_if_false @SWEET6_27817
do_fade 500 {direction} Fade.Out

:SWEET6_27391
if 
  get_fading_status 
goto_if_false @SWEET6_27415
wait 0
goto @SWEET6_27391

:SWEET6_27415
43@ = 0

:SWEET6_27422
if 
  7 > 43@
goto_if_false @SWEET6_27483
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_27469
delete_car 72@(43@,7i)

:SWEET6_27469
43@ += 1
goto @SWEET6_27422

:SWEET6_27483
43@ = 0

:SWEET6_27490
if 
  22 > 43@
goto_if_false @SWEET6_27551
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_27537
delete_char 80@(43@,22i)

:SWEET6_27537
43@ += 1
goto @SWEET6_27490

:SWEET6_27551
if 
  does_char_exist 102@
goto_if_false @SWEET6_27572
delete_char 102@

:SWEET6_27572
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
remove_animation "LOWRIDER"
if 
  not is_car_dead 71@
goto_if_false @SWEET6_27705
reset_vehicle_hydraulics 71@
clear_area 1784.757 {y} -1890.923 {z} 12.399 {radius} 25.0 {clearParticles} True
set_car_coordinates 71@ {x} 1784.757 {y} -1889.923 {z} 12.399
set_car_heading 71@ {heading} 90.0
freeze_car_position 71@ {state} True

:SWEET6_27705
wait 500
load_cutscene 'SWEET6B'

:SWEET6_27721
if 
  not has_cutscene_loaded 
goto_if_false @SWEET6_27745
wait 0
goto @SWEET6_27721

:SWEET6_27745
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET6_27754
if 
  not has_cutscene_finished 
goto_if_false @SWEET6_27778
wait 0
goto @SWEET6_27754

:SWEET6_27778
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET6_27786
if 
  get_fading_status 
goto_if_false @SWEET6_27810
wait 0
goto @SWEET6_27786

:SWEET6_27810
35@ = 99

:SWEET6_27817
if 
  35@ == 99
goto_if_false @SWEET6_28460
43@ = 0

:SWEET6_27842
if 
  7 > 43@
goto_if_false @SWEET6_27903
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_27889
delete_car 72@(43@,7i)

:SWEET6_27889
43@ += 1
goto @SWEET6_27842

:SWEET6_27903
43@ = 0

:SWEET6_27910
if 
  22 > 43@
goto_if_false @SWEET6_27971
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_27957
delete_char 80@(43@,22i)

:SWEET6_27957
43@ += 1
goto @SWEET6_27910

:SWEET6_27971
if 
  does_char_exist 102@
goto_if_false @SWEET6_27992
delete_char 102@

:SWEET6_27992
request_model 534
request_model 567
request_model 114
request_model 115
request_model 116

:SWEET6_28014
if or
  not has_model_loaded 534
  not has_model_loaded 567
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
goto_if_false @SWEET6_28058
wait 0
goto @SWEET6_28014

:SWEET6_28058
284@ = create_car 534 {x} 1787.266 {y} -1925.162 {z} 12.39
set_car_heading 284@ {heading} 24.6517
285@ = create_car 567 {x} 1799.9189 {y} -1926.14 {z} 12.3895
set_car_heading 285@ {heading} 341.4824
286@ = create_char_inside_car 284@ {pedType} PedType.CivMale {modelId} 114
287@ = create_char_inside_car 285@ {pedType} PedType.CivMale {modelId} 114
288@ = create_char PedType.CivMale {modelId} 114 {x} 1796.7 {y} -1915.7419 {z} 12.3946
set_char_heading 288@ {heading} 80.7
289@ = create_char PedType.CivMale {modelId} 115 {x} 1791.623 {y} -1919.621 {z} 12.3927
set_char_heading 289@ {heading} 10.9
290@ = create_char PedType.CivMale {modelId} 116 {x} 1786.067 {y} -1911.462 {z} 12.3937
set_char_heading 290@ {heading} 120.0
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
mark_char_as_no_longer_needed 288@
mark_char_as_no_longer_needed 289@
mark_char_as_no_longer_needed 290@
mark_char_as_no_longer_needed 286@
mark_char_as_no_longer_needed 287@
mark_car_as_no_longer_needed 284@
mark_car_as_no_longer_needed 285@
if 
  not is_car_dead 71@
goto_if_false @SWEET6_28345
freeze_car_position 71@ {state} True

:SWEET6_28345
load_scene 1793.989 {y} -1908.417 {z} 12.3995
do_fade 1500 {direction} Fade.In

:SWEET6_28369
if 
  get_fading_status 
goto_if_false @SWEET6_28393
wait 0
goto @SWEET6_28369

:SWEET6_28393
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_28426
36@ = 1
goto @SWEET6_28449

:SWEET6_28426
print_now 'S6_33' {time} 5000 {flag} 1
37@ = 1

:SWEET6_28449
wait 0
gosub @SWEET6_35827

:SWEET6_28460
gosub @SWEET6_32587
return 

:SWEET6_28469
if 
is_ps2_keyboard_key_just_pressed 33
goto_if_false @SWEET6_28494
272@ += 0.01

:SWEET6_28494
if 
is_ps2_keyboard_key_just_pressed 34
goto_if_false @SWEET6_28519
272@ += -0.01

:SWEET6_28519
if 
  does_vehicle_exist 71@
goto_if_false @SWEET6_28574
if 
  is_car_dead 71@
goto_if_false @SWEET6_28574
print_now 'S6_34' {time} 5000 {flag} 1
37@ = 1

:SWEET6_28574
if 
  is_player_playing $player1
goto_if_false @SWEET6_28751
if 
  34@ > 2
goto_if_false @SWEET6_28751
if 
  291@ == 0
goto_if_false @SWEET6_28692
if 
  locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @SWEET6_28685
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
291@ = 1

:SWEET6_28685
goto @SWEET6_28751

:SWEET6_28692
if 
  not locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_28751
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
291@ = 0

:SWEET6_28751
return 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_28811
if 
  not is_char_dead 102@
goto_if_false @SWEET6_28811
attach_char_to_car 102@ {vehicle} 71@ {xOffset} 269@ {yOffset} 270@ {zOffset} 271@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SWEET6_28811
return 

:SWEET6_28813
if 
  296@ == 0
goto_if_false @SWEET6_28871
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_28871
if 
  296@ == 1
goto_if_false @SWEET6_28929
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_28929
if 
  296@ == 2
goto_if_false @SWEET6_28987
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_28987
if 
  296@ == 3
goto_if_false @SWEET6_29045
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29045
if 
  296@ == 4
goto_if_false @SWEET6_29103
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29103
if 
  296@ == 5
goto_if_false @SWEET6_29161
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29161
if 
  296@ == 6
goto_if_false @SWEET6_29219
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29219
if 
  296@ == 7
goto_if_false @SWEET6_29277
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29277
if 
  296@ == 8
goto_if_false @SWEET6_29335
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_29335
if 
  296@ == 9
goto_if_false @SWEET6_29393
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_29393
if 
  296@ == 10
goto_if_false @SWEET6_29451
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_29451
if 
  296@ == 11
goto_if_false @SWEET6_29509
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29509
if 
  296@ == 12
goto_if_false @SWEET6_29567
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29567
if 
  296@ == 13
goto_if_false @SWEET6_29625
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29625
if 
  296@ == 14
goto_if_false @SWEET6_29683
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29683
if 
  296@ == 15
goto_if_false @SWEET6_29741
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29741
return 

:SWEET6_29743
if 
  300 > 136@
goto_if_false @SWEET6_29809
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_29882

:SWEET6_29809
if 
  136@ > 500
goto_if_false @SWEET6_29842
136@ = 0
goto @SWEET6_29882

:SWEET6_29842
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_29882
if 
  137@ > 2000
goto_if_false @SWEET6_29956
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_29956
if 
  not is_car_dead 72@
goto_if_false @SWEET6_30098
if 
  does_car_have_hydraulics 72@
goto_if_false @SWEET6_30098
control_car_hydraulics 72@ {_p2} 260@ {_p3} 266@ {_p4} 257@ {_p5} 263@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_30098
if 
  not is_car_dead 75@
goto_if_false @SWEET6_30240
if 
  does_car_have_hydraulics 75@
goto_if_false @SWEET6_30240
control_car_hydraulics 75@ {_p2} 261@ {_p3} 267@ {_p4} 258@ {_p5} 264@
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_30240
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @SWEET6_32585 {caseNum1} 0 {caseLabel1} @SWEET6_30433 {caseNum2} 1 {caseLabel2} @SWEET6_30553 {caseNum3} 2 {caseLabel3} @SWEET6_30673 {caseNum4} 3 {caseLabel4} @SWEET6_30789 {caseNum5} 4 {caseLabel5} @SWEET6_30905 {caseNum6} 5 {caseLabel6} @SWEET6_31020 {caseNum7} 6 {caseLabel7} @SWEET6_31136
switch_continued 7 {caseLabel1} @SWEET6_31252 {caseNum2} 8 {caseLabel2} @SWEET6_31368 {caseNum3} 9 {caseLabel3} @SWEET6_31484 {caseNum4} 10 {caseLabel4} @SWEET6_31604 {caseNum5} 11 {caseLabel5} @SWEET6_31787 {caseNum6} 12 {caseLabel6} @SWEET6_31903 {caseNum7} 13 {caseLabel7} @SWEET6_32019 {caseNum8} 14 {caseLabel8} @SWEET6_32135 {caseNum9} 15 {caseLabel9} @SWEET6_32251
switch_continued 16 {caseLabel1} @SWEET6_32367 {caseNum2} 17 {caseLabel2} @SWEET6_32476 {caseNum3} -1 {caseLabel3} @SWEET6_32585 {caseNum4} -1 {caseLabel4} @SWEET6_32585 {caseNum5} -1 {caseLabel5} @SWEET6_32585 {caseNum6} -1 {caseLabel6} @SWEET6_32585 {caseNum7} -1 {caseLabel7} @SWEET6_32585 {caseNum8} -1 {caseLabel8} @SWEET6_32585 {caseNum9} -1 {caseLabel9} @SWEET6_32585

:SWEET6_30433
if 
  not is_char_dead 80@
goto_if_false @SWEET6_30546
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30546
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30546
goto @SWEET6_32585

:SWEET6_30553
if 
  not is_char_dead 81@
goto_if_false @SWEET6_30666
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30666
49@ = open_sequence_task 
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30666
goto @SWEET6_32585

:SWEET6_30673
if 
  not is_char_dead 82@
goto_if_false @SWEET6_30782
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30782
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @SWEET6_30757
task_chat_with_char -1 {other} 83@ {leadSpeaker} True {_p4} 1
goto @SWEET6_30764

:SWEET6_30757
task_pause -1 {time} 1000

:SWEET6_30764
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30782
goto @SWEET6_32585

:SWEET6_30789
if 
  not is_char_dead 83@
goto_if_false @SWEET6_30898
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30898
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @SWEET6_30873
task_chat_with_char -1 {other} 82@ {leadSpeaker} False {_p4} 1
goto @SWEET6_30880

:SWEET6_30873
task_pause -1 {time} 1000

:SWEET6_30880
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30898
goto @SWEET6_32585

:SWEET6_30905
if 
  not is_char_dead 84@
goto_if_false @SWEET6_31013
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31013
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31013
goto @SWEET6_32585

:SWEET6_31020
if 
  not is_char_dead 85@
goto_if_false @SWEET6_31129
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31129
49@ = open_sequence_task 
if 
  not is_char_dead 86@
goto_if_false @SWEET6_31104
task_chat_with_char -1 {other} 86@ {leadSpeaker} False {_p4} 1
goto @SWEET6_31111

:SWEET6_31104
task_pause -1 {time} 1000

:SWEET6_31111
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31129
goto @SWEET6_32585

:SWEET6_31136
if 
  not is_char_dead 86@
goto_if_false @SWEET6_31245
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31245
49@ = open_sequence_task 
if 
  not is_char_dead 85@
goto_if_false @SWEET6_31220
task_chat_with_char -1 {other} 85@ {leadSpeaker} True {_p4} 1
goto @SWEET6_31227

:SWEET6_31220
task_pause -1 {time} 1000

:SWEET6_31227
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31245
goto @SWEET6_32585

:SWEET6_31252
if 
  not is_char_dead 87@
goto_if_false @SWEET6_31361
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31361
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31361
goto @SWEET6_32585

:SWEET6_31368
if 
  not is_char_dead 88@
goto_if_false @SWEET6_31477
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31477
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31477
goto @SWEET6_32585

:SWEET6_31484
if 
  not is_char_dead 89@
goto_if_false @SWEET6_31597
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31597
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31597
goto @SWEET6_32585

:SWEET6_31604
if 
  not is_char_dead 90@
goto_if_false @SWEET6_31780
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31780
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31780
goto @SWEET6_32585

:SWEET6_31787
if 
  not is_char_dead 91@
goto_if_false @SWEET6_31896
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31896
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31896
goto @SWEET6_32585

:SWEET6_31903
if 
  not is_char_dead 92@
goto_if_false @SWEET6_32012
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32012
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32012
goto @SWEET6_32585

:SWEET6_32019
if 
  not is_char_dead 93@
goto_if_false @SWEET6_32128
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32128
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32128
goto @SWEET6_32585

:SWEET6_32135
if 
  not is_char_dead 94@
goto_if_false @SWEET6_32244
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32244
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32244
goto @SWEET6_32585

:SWEET6_32251
if 
  not is_char_dead 95@
goto_if_false @SWEET6_32360
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32360
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32360
goto @SWEET6_32585

:SWEET6_32367
if 
  not is_char_dead 96@
goto_if_false @SWEET6_32469
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32469
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32469
goto @SWEET6_32585

:SWEET6_32476
if 
  not is_char_dead 97@
goto_if_false @SWEET6_32578
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32578
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32578
goto @SWEET6_32585

:SWEET6_32585
return 

:SWEET6_32587
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @SWEET6_35244 {caseNum1} 0 {caseLabel1} @SWEET6_32780 {caseNum2} 1 {caseLabel2} @SWEET6_32900 {caseNum3} 2 {caseLabel3} @SWEET6_33016 {caseNum4} 3 {caseLabel4} @SWEET6_33132 {caseNum5} 4 {caseLabel5} @SWEET6_33252 {caseNum6} 5 {caseLabel6} @SWEET6_33372 {caseNum7} 6 {caseLabel7} @SWEET6_33488
switch_continued 7 {caseLabel1} @SWEET6_33608 {caseNum2} 8 {caseLabel2} @SWEET6_33724 {caseNum3} 9 {caseLabel3} @SWEET6_33840 {caseNum4} 10 {caseLabel4} @SWEET6_33960 {caseNum5} 11 {caseLabel5} @SWEET6_34076 {caseNum6} 12 {caseLabel6} @SWEET6_34196 {caseNum7} 13 {caseLabel7} @SWEET6_34316 {caseNum8} 14 {caseLabel8} @SWEET6_34432 {caseNum9} 15 {caseLabel9} @SWEET6_34548
switch_continued 16 {caseLabel1} @SWEET6_34664 {caseNum2} 17 {caseLabel2} @SWEET6_34780 {caseNum3} 18 {caseLabel3} @SWEET6_34896 {caseNum4} 19 {caseLabel4} @SWEET6_35012 {caseNum5} 20 {caseLabel5} @SWEET6_35128 {caseNum6} -1 {caseLabel6} @SWEET6_35244 {caseNum7} -1 {caseLabel7} @SWEET6_35244 {caseNum8} -1 {caseLabel8} @SWEET6_35244 {caseNum9} -1 {caseLabel9} @SWEET6_35244

:SWEET6_32780
if 
  not is_char_dead 80@
goto_if_false @SWEET6_32893
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32893
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32893
goto @SWEET6_35244

:SWEET6_32900
if 
  not is_char_dead 81@
goto_if_false @SWEET6_33009
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33009
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33009
goto @SWEET6_35244

:SWEET6_33016
if 
  not is_char_dead 82@
goto_if_false @SWEET6_33125
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33125
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33125
goto @SWEET6_35244

:SWEET6_33132
if 
  not is_char_dead 83@
goto_if_false @SWEET6_33245
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33245
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33245
goto @SWEET6_35244

:SWEET6_33252
if 
  not is_char_dead 84@
goto_if_false @SWEET6_33365
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33365
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33365
goto @SWEET6_35244

:SWEET6_33372
if 
  not is_char_dead 85@
goto_if_false @SWEET6_33481
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33481
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33481
goto @SWEET6_35244

:SWEET6_33488
if 
  not is_char_dead 86@
goto_if_false @SWEET6_33601
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33601
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33601
goto @SWEET6_35244

:SWEET6_33608
if 
  not is_char_dead 87@
goto_if_false @SWEET6_33717
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33717
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33717
goto @SWEET6_35244

:SWEET6_33724
if 
  not is_char_dead 88@
goto_if_false @SWEET6_33833
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33833
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33833
goto @SWEET6_35244

:SWEET6_33840
if 
  not is_char_dead 89@
goto_if_false @SWEET6_33953
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33953
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33953
goto @SWEET6_35244

:SWEET6_33960
if 
  not is_char_dead 90@
goto_if_false @SWEET6_34069
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34069
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34069
goto @SWEET6_35244

:SWEET6_34076
if 
  not is_char_dead 91@
goto_if_false @SWEET6_34189
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34189
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34189
goto @SWEET6_35244

:SWEET6_34196
if 
  not is_char_dead 92@
goto_if_false @SWEET6_34309
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34309
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34309
goto @SWEET6_35244

:SWEET6_34316
if 
  not is_char_dead 93@
goto_if_false @SWEET6_34425
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34425
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34425
goto @SWEET6_35244

:SWEET6_34432
if 
  not is_char_dead 94@
goto_if_false @SWEET6_34541
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34541
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34541
goto @SWEET6_35244

:SWEET6_34548
if 
  not is_char_dead 95@
goto_if_false @SWEET6_34657
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34657
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34657
goto @SWEET6_35244

:SWEET6_34664
if 
  not is_char_dead 96@
goto_if_false @SWEET6_34773
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34773
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34773
goto @SWEET6_35244

:SWEET6_34780
if 
  not is_char_dead 97@
goto_if_false @SWEET6_34889
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34889
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34889
goto @SWEET6_35244

:SWEET6_34896
if 
  not is_char_dead 98@
goto_if_false @SWEET6_35005
43@ = get_script_task_status 98@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35005
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35005
goto @SWEET6_35244

:SWEET6_35012
if 
  not is_char_dead 99@
goto_if_false @SWEET6_35121
43@ = get_script_task_status 99@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35121
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 99@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35121
goto @SWEET6_35244

:SWEET6_35128
if 
  not is_char_dead 100@
goto_if_false @SWEET6_35237
43@ = get_script_task_status 100@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35237
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 100@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35237
goto @SWEET6_35244

:SWEET6_35244
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:SWEET6_35372
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @SWEET6_35475 {caseNum1} 3 {caseLabel1} @SWEET6_35435 {caseNum2} -1 {caseLabel2} @SWEET6_35515 {caseNum3} -1 {caseLabel3} @SWEET6_35515 {caseNum4} -1 {caseLabel4} @SWEET6_35515 {caseNum5} -1 {caseLabel5} @SWEET6_35515 {caseNum6} -1 {caseLabel6} @SWEET6_35515 {caseNum7} -1 {caseLabel7} @SWEET6_35515

:SWEET6_35435
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @SWEET6_35515

:SWEET6_35475
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @SWEET6_35515

:SWEET6_35515
gosub @SWEET6_35772
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @SWEET6_35772
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 276@
gosub @SWEET6_35772
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @SWEET6_35772
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} 274@
gosub @SWEET6_35772
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @SWEET6_35772
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 275@
return 

:SWEET6_35772
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:SWEET6_35827
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:SWEET6_35885
remove_blip $mod_garage_blip
$stop_gargae_for_neil = 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
deactivate_garage 'MODLAST'
deactivate_garage 'BODLAWN'
return 

:SWEET6_35937
remove_blip $mod_garage_blip
$mod_garage_blip = add_short_range_sprite_blip_for_coord 2644.252 {y} -2028.246 {z} 12.5547 {sprite} RadarSprite.ModGarage
remove_blip $mod_garage1
$mod_garage1 = add_short_range_sprite_blip_for_coord 1043.4 {y} -1025.3 {z} 34.4 {sprite} RadarSprite.ModGarage
remove_blip $sweet_contact_blip
activate_garage 'MODLAST'
activate_garage 'BODLAWN'
276@ *= 2
print_with_number_big 'M_PASS' {num} 276@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 276@
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
clear_wanted_level $player1
$flag_sweet_mission_counter += 1
$lowrider_minigame_unlocked = 1
$stop_gargae_for_neil = 0
register_mission_passed 'SWEET_6'
switch_car_generator $dirtrack_reward_cargen {amount} 101
return 

:SWEET6_36111
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_audio_zone 'LOWRIDE' {state} False
if 
  does_vehicle_exist 71@
goto_if_false @SWEET6_36263
if 
  not is_car_dead 71@
goto_if_false @SWEET6_36263
set_car_status 71@ {status} EntityStatus.Abandoned
freeze_car_position 71@ {state} False
set_car_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_player_playing $player1
goto_if_false @SWEET6_36224
apply_brakes_to_players_car $player1 {state} False

:SWEET6_36224
lock_car_doors 71@ {lockStatus} CarLock.Unlocked
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_36263
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@

:SWEET6_36263
43@ = 0

:SWEET6_36270
if 
  7 > 43@
goto_if_false @SWEET6_36454
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_36440
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_36431
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @SWEET6_36409
if 
  does_car_have_hydraulics 72@(43@,7i)
goto_if_false @SWEET6_36409
control_car_hydraulics 72@(43@,7i) {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_36409
set_car_status 72@(43@,7i) {status} EntityStatus.Simple
set_car_hydraulics 72@(43@,7i) {state} False

:SWEET6_36431
mark_car_as_no_longer_needed 72@(43@,7i)

:SWEET6_36440
43@ += 1
goto @SWEET6_36270

:SWEET6_36454
43@ = 0

:SWEET6_36461
if 
  22 > 43@
goto_if_false @SWEET6_36542
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_36528
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_36519

:SWEET6_36519
mark_char_as_no_longer_needed 80@(43@,22i)

:SWEET6_36528
43@ += 1
goto @SWEET6_36461

:SWEET6_36542
if 
  does_char_exist 79@
goto_if_false @SWEET6_36563
mark_char_as_no_longer_needed 79@

:SWEET6_36563
if 
  does_char_exist 102@
goto_if_false @SWEET6_36584
mark_char_as_no_longer_needed 102@

:SWEET6_36584
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
remove_animation "CAR"
remove_animation "GANGS"
remove_animation "LOWRIDER"
remove_blip 105@
remove_blip 106@
clear_onscreen_counter $lowrider_pscore
clear_onscreen_counter $lowrider_oscore
display_radar True
43@ = get_beat_track_status 
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @SWEET6_36700
stop_beat_track 

:SWEET6_36700
dont_suppress_car_model 567
$bd_terminate_script = 1
remove_decision_maker 66@
remove_decision_maker 67@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 20---------------
// Originally: Los Sepulcros

:SWEET7
script_name 'SWEET7'
gosub @SWEET7_54
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET7_38
gosub @SWEET7_32138

:SWEET7_38
gosub @SWEET7_32237
terminate_this_script 
546@ = 0

:SWEET7_54
register_mission_given 
load_mission_text 'SWEET7'
$onmission = 1
wait 0
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out
force_weather_now WeatherType.SunnyLa

:SWEET7_104
if 
  get_fading_status 
goto_if_false @SWEET7_128
wait 0
goto @SWEET7_104

:SWEET7_128
load_cutscene 'SWEET7A'

:SWEET7_139
if 
  not has_cutscene_loaded 
goto_if_false @SWEET7_163
wait 0
goto @SWEET7_139

:SWEET7_163
clear_area 2508.9751 {y} -1671.537 {z} 12.3853 {radius} 500.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET7_196
if 
  not has_cutscene_finished 
goto_if_false @SWEET7_220
wait 0
goto @SWEET7_196

:SWEET7_220
do_fade 0 {direction} Fade.Out

:SWEET7_226
if 
  get_fading_status 
goto_if_false @SWEET7_250
wait 0
goto @SWEET7_226

:SWEET7_250
clear_cutscene 
release_weather 
wait 0
set_char_coordinates $scplayer {x} 2515.207 {y} -1674.0861 {z} 12.7552
set_char_heading $scplayer {heading} 54.1779
load_special_character 1 {modelName} 'SWEET'
request_model 492
request_model 68
request_model 12
request_model 445
request_model 543
request_model 352
request_model 346
request_model 349
request_model 104
request_model 103
request_model 102
request_model 107
request_model 106
request_model 105
request_animation "GRAVEYARD"
request_animation "SMOKING"
load_all_models_now 

:SWEET7_389
if or
  not has_special_character_loaded 1
  not has_model_loaded 68
  not has_model_loaded 12
  not has_model_loaded 445
  not has_model_loaded 543
goto_if_false @SWEET7_433
wait 0
goto @SWEET7_389

:SWEET7_433
if or
  not has_model_loaded 346
  not has_model_loaded 492
  not has_model_loaded 352
  not has_model_loaded 349
goto_if_false @SWEET7_475
wait 0
goto @SWEET7_433

:SWEET7_475
if or
  not has_model_loaded 104
  not has_model_loaded 103
  not has_model_loaded 102
goto_if_false @SWEET7_509
wait 0
goto @SWEET7_475

:SWEET7_509
if or
  not has_model_loaded 107
  not has_model_loaded 106
  not has_model_loaded 105
  not has_animation_loaded "GRAVEYARD"
  not has_animation_loaded "SMOKING"
goto_if_false @SWEET7_567
wait 0
goto @SWEET7_509

:SWEET7_567
wait 500
302@ = 0
286@ = 0
285@ = 0
278@ = 0
279@ = 0
280@ = 0
276@ = 0
277@ = 0
$sw7_kanefuckedhealth = 0
275@ = 0
73@ = 0
74@ = 0
274@ = 0
133@ = 0
38@ = 0
37@ = 0
53@ = 0
139@ = 0
54@ = 0
55@ = -13
61@ = 0
56@ = 0
57@ = 0
58@ = 0
62@ = 0
63@ = 0
64@ = 0
303@ = 0
69@ = 0
71@ = 0
132@ = 0
123@ = 0
135@ = 806.4608
136@ = -1129.844
137@ = 952.2434
138@ = -1051.8409
141@ = 931.9752
151@ = -1062.447
161@ = 23.6757
171@ = 921.2714
181@ = -1064.736
191@ = 23.327
201@ = 920.3427
211@ = -1061.403
221@ = 23.6757
231@ = 921.269
241@ = -1081.521
251@ = 23.623
142@ = 922.6375
152@ = -1122.282
162@ = 23.0028
143@ = 899.537
153@ = -1114.694
163@ = 23.232
172@ = 913.2869
182@ = -1092.168
192@ = 23.1942
202@ = 911.2869
212@ = -1092.168
222@ = 22.1942
232@ = 914.2869
242@ = -1092.168
252@ = 25.1942
173@ = 886.0813
183@ = -1114.899
193@ = 22.9879
203@ = 883.5623
213@ = -1112.9399
223@ = 23.0419
233@ = 881.4856
243@ = -1116.985
253@ = 23.0419
144@ = 907.4198
154@ = -1101.579
164@ = 23.2969
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
$sw7_kanefuckedhealth = 240000
switch_roads_off 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
switch_ped_roads_off 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
35@ = get_zone_gang_strength 'GAN1' {gangId} GangType.Grove
36@ = get_zone_gang_strength 'GAN2' {gangId} GangType.Grove
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
53@ = 0
287@ = get_max_wanted_level 
clear_area 954.4976 {y} -1103.594 {z} 22.8015 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
clear_area 2508.084 {y} -1671.1899 {z} 12.3794 {radius} 500.0 {clearParticles} True
78@ = create_car 492 {x} 2508.084 {y} -1671.1899 {z} 12.3794
set_car_heading 78@ {heading} 354.4729
set_can_burst_car_tyres 78@ {state} False
change_car_colour 78@ {color1} 59 {color2} 34
open_car_door 78@ {door} CarDoor.RightFrontDoor
79@ = create_car 445 {x} 925.7109 {y} -1122.968 {z} 22.9909
set_car_heading 79@ {heading} 330.8056
change_car_colour 79@ {color1} 59 {color2} 34
set_can_burst_car_tyres 79@ {state} False
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_proofs 79@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 79@ {lockStatus} CarLock.Locked
set_fading_colour 0 {g} 0 {b} 0
set_camera_behind_player 
92@ = load_char_decision_maker DecisionMakerType.Empty
93@ = load_char_decision_maker DecisionMakerType.Empty
94@ = load_char_decision_maker DecisionMakerType.Tough
95@ = load_char_decision_maker DecisionMakerType.Weak
105@ = create_char PedType.Mission1 {modelId} 102 {x} 885.1994 {y} -1075.546 {z} 23.3273
set_char_decision_maker 105@ {handleOrTemplate} 92@
set_char_heading 105@ {heading} 170.0
set_char_accuracy 105@ {accuracy} 90
550@ = get_char_health 105@
set_char_health 105@ {health} 120
107@ = create_char PedType.Mission1 {modelId} 103 {x} 883.2532 {y} -1075.496 {z} 23.3273
set_char_decision_maker 107@ {handleOrTemplate} 92@
set_char_heading 107@ {heading} 175.0
set_char_accuracy 107@ {accuracy} 90
set_char_health 107@ {health} 120
109@ = create_char PedType.Mission1 {modelId} 103 {x} 881.4261 {y} -1077.114 {z} 23.3203
set_char_decision_maker 109@ {handleOrTemplate} 92@
set_char_heading 109@ {heading} 275.0
set_char_accuracy 109@ {accuracy} 90
set_char_health 109@ {health} 120
if 
  not is_char_dead 105@
goto_if_false @SWEET7_1917
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 2000
task_play_anim 105@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_1917
if 
  not is_char_dead 107@
goto_if_false @SWEET7_1943
give_weapon_to_char 107@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_1943
if 
  not is_char_dead 109@
goto_if_false @SWEET7_2011
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 2000
task_play_anim 109@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 10.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_2011
134@ = create_object_no_offset #CASKET_LAW {x} 885.6575 {y} -1077.412 {z} 23.3188
96@ = create_char PedType.CivMale {modelId} 68 {x} 886.6391 {y} -1079.179 {z} 23.3136
task_play_anim 96@ {animationName} "PRST_LOOPA" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 96@ {handleOrTemplate} 93@
set_char_heading 96@ {heading} 24.0
mark_model_as_no_longer_needed 68
97@ = create_char PedType.CivFemale {modelId} 12 {x} 884.9761 {y} -1079.983 {z} 23.3133
task_play_anim 97@ {animationName} "MRNF_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 97@ {handleOrTemplate} 93@
set_char_heading 97@ {heading} 4.0
mark_model_as_no_longer_needed 12
clear_area 2297.9709 {y} -1628.015 {z} 13.7028 {radius} 20.0 {clearParticles} True
263@ = create_char PedType.Gang2 {modelId} 105 {x} 2509.418 {y} -1663.134 {z} 12.5872
set_char_heading 263@ {heading} 214.5012
set_char_decision_maker 263@ {handleOrTemplate} 93@
set_char_suffers_critical_hits 263@ {state} False
set_char_cant_be_dragged_out 263@ {state} True
set_char_stay_in_car_when_jacked 263@ {state} True
set_char_get_out_upside_down_car 263@ {state} False
task_play_anim 263@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
264@ = create_char PedType.Gang2 {modelId} 106 {x} 2504.4709 {y} -1675.764 {z} 12.3709
set_char_heading 264@ {heading} 277.5012
set_char_decision_maker 264@ {handleOrTemplate} 93@
set_char_suffers_critical_hits 264@ {state} False
set_char_cant_be_dragged_out 264@ {state} True
set_char_stay_in_car_when_jacked 264@ {state} True
set_char_get_out_upside_down_car 264@ {state} False
task_play_anim 264@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
switch_roads_off 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
switch_ped_roads_off 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
281@ = get_int_stat StatId.Respect
301@ = find_max_number_of_group_members 
if 
  301@ > 1
goto_if_false @SWEET7_2695
55@ = 3
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 2509.5901 {y} -1672.2371 {z} 12.3934
set_char_heading $sweet {heading} 239.0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_2614
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 78@ {state} True

:SWEET7_2614
give_weapon_to_char $sweet {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
set_radio_channel RadioChannel.CSR
TIMERA = 0
goto @SWEET7_3126

:SWEET7_2695
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 2511.343 {y} -1674.936 {z} 12.5473
if 
  not is_car_dead 78@
goto_if_false @SWEET7_2750
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 78@ {state} True

:SWEET7_2750
give_weapon_to_char $sweet {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
288@ = create_car 543 {x} 2491.9121 {y} -1681.3719 {z} 12.345
set_car_heading 288@ {heading} 87.9
change_car_colour 288@ {color1} 113 {color2} 8
289@ = create_char PedType.Gang1 {modelId} 102 {x} 2262.7971 {y} -1348.54 {z} 22.985
set_char_heading 289@ {heading} 312.0
give_weapon_to_char 289@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 289@ {handleOrTemplate} 93@
290@ = create_char PedType.Gang1 {modelId} 103 {x} 2263.582 {y} -1346.651 {z} 22.9838
set_char_heading 290@ {heading} 140.0
give_weapon_to_char 290@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 290@ {handleOrTemplate} 93@
task_chat_with_char 289@ {other} 290@ {leadSpeaker} True {_p4} 1
task_chat_with_char 290@ {other} 289@ {leadSpeaker} False {_p4} 1
291@ = create_char PedType.Gang1 {modelId} 104 {x} 2261.8501 {y} -1345.101 {z} 22.9864
set_char_heading 291@ {heading} 224.0
give_weapon_to_char 291@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 291@ {handleOrTemplate} 93@
task_play_anim 291@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 10.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
unload_special_character 1
292@ = add_blip_for_char 289@
293@ = add_blip_for_char 290@
294@ = add_blip_for_char 291@
55@ = 0
282@ = -10
TIMERB = 0

:SWEET7_3126
task_turn_char_to_face_char $scplayer {target} $sweet
TIMERA = 0

:SWEET7_3141
if 
  2000 > TIMERA
goto_if_false @SWEET7_3171
wait 0
goto @SWEET7_3141

:SWEET7_3171
mark_model_as_no_longer_needed 543
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_area 2508.1599 {y} -1666.47 {z} 13.0 {radius} 10.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
260@ = get_player_group $player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} False
set_group_follow_status 260@ {state} True
if 
  274@ == 13
goto_if_false @SWEET7_3326
40@ = add_blip_for_char $scplayer
78@ = create_car 492 {x} 2508.9751 {y} -1671.537 {z} 12.3853
43@ = add_blip_for_car 78@
98@ = create_char PedType.Mission1 {modelId} 102 {x} 885.1994 {y} -1075.546 {z} 23.3273

:SWEET7_3326
304@ = 0
532@ = 1
533@ = 2
534@ = 0
535@ = 1
536@ = 0
537@ = 0
set_lvar_text_label 312@s = 'SWE7_AA'
set_lvar_text_label 314@s = 'SWE7_AB'
set_lvar_text_label 316@s = 'SWE7_AC'
set_lvar_text_label 318@s = 'SWE7_AD'
set_lvar_text_label 320@s = 'SWE7_AE'
set_lvar_text_label 322@s = 'SWE7_AF'
set_lvar_text_label 324@s = 'SWE7_AG'
set_lvar_text_label 326@s = 'SWE7_AH'
set_lvar_text_label 328@s = 'SWE7_BA'
set_lvar_text_label 330@s = 'SWE7_BB'
set_lvar_text_label 332@s = 'SWE7_BC'
set_lvar_text_label 334@s = 'SWE7_BD'
set_lvar_text_label 336@s = 'SWE7_BE'
set_lvar_text_label 338@s = 'SWE7_CA'
set_lvar_text_label 340@s = 'SWE7_CB'
set_lvar_text_label 342@s = 'SWE7_CC'
set_lvar_text_label 344@s = 'SWE7_DA'
set_lvar_text_label 346@s = 'SWE7_DB'
set_lvar_text_label 348@s = 'SWE7_DC'
set_lvar_text_label 350@s = 'SWE7_DD'
set_lvar_text_label 352@s = 'SWE7_DE'
set_lvar_text_label 354@s = 'SWE7_EA'
set_lvar_text_label 356@s = 'SWE7_EB'
set_lvar_text_label 358@s = 'SWE7_EC'
set_lvar_text_label 360@s = 'SWE7_ED'
set_lvar_text_label 362@s = 'SWE7_EE'
set_lvar_text_label 364@s = 'SWE7_EF'
set_lvar_text_label 366@s = 'SWE7_EG'
set_lvar_text_label 368@s = 'SWE7_EH'
set_lvar_text_label 370@s = 'SWE7_EJ'
set_lvar_text_label 372@s = 'SWE7_EK'
set_lvar_text_label 374@s = 'SWE7_FA'
set_lvar_text_label 376@s = 'SWE7_FB'
set_lvar_text_label 378@s = 'SWE7_GA'
set_lvar_text_label 380@s = 'SWE7_GB'
set_lvar_text_label 382@s = 'SWE7_GC'
set_lvar_text_label 384@s = 'SWE7_HA'
set_lvar_text_label 386@s = 'SWE7_HB'
set_lvar_text_label 388@s = 'SWE7_HC'
set_lvar_text_label 390@s = 'SWE7_JA'
set_lvar_text_label 392@s = 'SWE7_JB'
set_lvar_text_label 394@s = 'SWE7_JC'
set_lvar_text_label 396@s = 'SWE7_KA'
set_lvar_text_label 398@s = 'SWE7_KB'
set_lvar_text_label 400@s = 'SWE7_KC'
set_lvar_text_label 402@s = 'SWE7_LA'
set_lvar_text_label 404@s = 'SWE7_LB'
set_lvar_text_label 406@s = 'SWE7_LC'
set_lvar_text_label 408@s = 'SWE7_MA'
set_lvar_text_label 410@s = 'SWE7_MB'
set_lvar_text_label 412@s = 'SWE7_MC'
set_lvar_text_label 414@s = 'SWE7_MD'
set_lvar_text_label 416@s = 'SWE7_NA'
set_lvar_text_label 418@s = 'SWE7_NB'
set_lvar_text_label 420@s = 'SWE7_OA'
set_lvar_text_label 422@s = 'SWE7_OB'
set_lvar_text_label 424@s = 'SWE7_PA'
set_lvar_text_label 426@s = 'SWE7_PB'
set_lvar_text_label 428@s = 'SWE7_PC'
set_lvar_text_label 430@s = 'SWE7_PD'
set_lvar_text_label 432@s = 'SWE7_QA'
set_lvar_text_label 434@s = 'SWE7_QB'
set_lvar_text_label 436@s = 'SWE7_QC'
set_lvar_text_label 438@s = 'SWE7_RA'
set_lvar_text_label 440@s = 'SWE7_RB'
set_lvar_text_label 442@s = 'SWE7_RC'
set_lvar_text_label 444@s = 'SWE7_SA'
set_lvar_text_label 446@s = 'SWE7_SB'
set_lvar_text_label 448@s = 'SWE7_SC'
set_lvar_text_label 450@s = 'SWE7_TA'
set_lvar_text_label 452@s = 'SWE7_TB'
set_lvar_text_label 454@s = 'SWE7_TC'
set_lvar_int_to_constant 459@ = 15200
set_lvar_int_to_constant 460@ = 15267
set_lvar_int_to_constant 461@ = 15201
set_lvar_int_to_constant 462@ = 15202
set_lvar_int_to_constant 463@ = 15268
set_lvar_int_to_constant 464@ = 15203
set_lvar_int_to_constant 465@ = 15204
set_lvar_int_to_constant 466@ = 15205
set_lvar_int_to_constant 467@ = 15206
set_lvar_int_to_constant 468@ = 15269
set_lvar_int_to_constant 469@ = 15207
set_lvar_int_to_constant 470@ = 15208
set_lvar_int_to_constant 471@ = 15270
set_lvar_int_to_constant 472@ = 15209
set_lvar_int_to_constant 473@ = 15210
set_lvar_int_to_constant 474@ = 15211
set_lvar_int_to_constant 475@ = 15212
set_lvar_int_to_constant 476@ = 15213
set_lvar_int_to_constant 477@ = 15214
set_lvar_int_to_constant 478@ = 15215
set_lvar_int_to_constant 479@ = 15216
set_lvar_int_to_constant 480@ = 15217
set_lvar_int_to_constant 481@ = 15218
set_lvar_int_to_constant 482@ = 15219
set_lvar_int_to_constant 483@ = 15220
set_lvar_int_to_constant 484@ = 15221
set_lvar_int_to_constant 485@ = 15222
set_lvar_int_to_constant 486@ = 15223
set_lvar_int_to_constant 487@ = 15224
set_lvar_int_to_constant 488@ = 15225
set_lvar_int_to_constant 489@ = 15226
set_lvar_int_to_constant 490@ = 15227
set_lvar_int_to_constant 491@ = 15228
set_lvar_int_to_constant 492@ = 15229
set_lvar_int_to_constant 493@ = 15271
set_lvar_int_to_constant 494@ = 15230
set_lvar_int_to_constant 495@ = 15231
set_lvar_int_to_constant 496@ = 15232
set_lvar_int_to_constant 497@ = 15233
set_lvar_int_to_constant 498@ = 15234
set_lvar_int_to_constant 499@ = 15235
set_lvar_int_to_constant 500@ = 15236
set_lvar_int_to_constant 501@ = 15237
set_lvar_int_to_constant 502@ = 15238
set_lvar_int_to_constant 503@ = 15239
set_lvar_int_to_constant 504@ = 15240
set_lvar_int_to_constant 505@ = 15241
set_lvar_int_to_constant 506@ = 15242
set_lvar_int_to_constant 507@ = 15243
set_lvar_int_to_constant 508@ = 15244
set_lvar_int_to_constant 509@ = 15245
set_lvar_int_to_constant 510@ = 15246
set_lvar_int_to_constant 511@ = 15247
set_lvar_int_to_constant 512@ = 15248
set_lvar_int_to_constant 513@ = 15249
set_lvar_int_to_constant 514@ = 15250
set_lvar_int_to_constant 515@ = 15251
set_lvar_int_to_constant 516@ = 15252
set_lvar_int_to_constant 517@ = 15253
set_lvar_int_to_constant 518@ = 15254
set_lvar_int_to_constant 519@ = 15255
set_lvar_int_to_constant 520@ = 15256
set_lvar_int_to_constant 521@ = 15257
set_lvar_int_to_constant 522@ = 15258
set_lvar_int_to_constant 523@ = 15259
set_lvar_int_to_constant 524@ = 15260
set_lvar_int_to_constant 525@ = 15261
set_lvar_int_to_constant 526@ = 15262
set_lvar_int_to_constant 527@ = 15263
set_lvar_int_to_constant 528@ = 15264
set_lvar_int_to_constant 529@ = 15265
set_lvar_int_to_constant 530@ = 15266

:SWEET7_4959
wait 0
if 
  304@ == 0
goto_if_false @SWEET7_4997
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34800
304@ = 1

:SWEET7_4997
if 
  304@ == 1
goto_if_false @SWEET7_5037
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SWEET7_5037
304@ = 2

:SWEET7_5037
if 
  304@ == 2
goto_if_false @SWEET7_5132
if 
  not is_char_dead 97@
goto_if_false @SWEET7_5132
if 
  locate_char_any_means_char_2d $scplayer {target} 97@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SWEET7_5132
set_mission_audio_position MissionAudioSlot.Slot3 {x} 884.9761 {y} -1079.983 {z} 23.3133
play_mission_audio MissionAudioSlot.Slot3
304@ = 3

:SWEET7_5132
if 
  534@ <> 0
goto_if_false @SWEET7_5485
if 
  536@ == 0
goto_if_false @SWEET7_5203
if 
  has_mission_audio_loaded 533@
goto_if_false @SWEET7_5189
clear_mission_audio 533@

:SWEET7_5189
536@ = 1
537@ = 1

:SWEET7_5203
if 
  536@ == 1
goto_if_false @SWEET7_5240
load_mission_audio 532@ {audioId} 458@(534@,74i)
536@ = 2

:SWEET7_5240
if 
  536@ == 2
goto_if_false @SWEET7_5300
if 
  has_mission_audio_loaded 532@
goto_if_false @SWEET7_5300
play_mission_audio 532@
print_now 310@(534@,74s) {time} 10000 {flag} 1
536@ = 3

:SWEET7_5300
if 
  536@ == 3
goto_if_false @SWEET7_5485
if 
  has_mission_audio_finished 532@
goto_if_false @SWEET7_5424
clear_this_print 310@(534@,74s)
if 
  532@ == 1
goto_if_false @SWEET7_5382
532@ = 2
533@ = 1
goto @SWEET7_5396

:SWEET7_5382
532@ = 1
533@ = 2

:SWEET7_5396
534@ = 0
536@ = 0
537@ = 0
goto @SWEET7_5485

:SWEET7_5424
if 
  not has_mission_audio_loaded 533@
goto_if_false @SWEET7_5485
if 
  72 > 534@
goto_if_false @SWEET7_5485
set_lvar_int_to_lvar_int 535@ = 534@
535@ += 1
load_mission_audio 533@ {audioId} 458@(535@,74i)

:SWEET7_5485
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET7_5507
goto @SWEET7_32156

:SWEET7_5507
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @SWEET7_5558
if 
  not is_car_dead 78@
goto_if_false @SWEET7_5558
set_car_coordinates 78@ {x} 794.203 {y} -1059.1851 {z} 23.6844

:SWEET7_5558
262@, 261@ = get_group_size 260@
if 
  1 > 53@
goto_if_false @SWEET7_5693
if 
  1 > $sw7_kanefuckedhealth
goto_if_false @SWEET7_5636
clear_onscreen_timer $sw7_kanefuckedhealth
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
539@ = 31
53@ = 999

:SWEET7_5636
if 
  not is_car_dead 78@
goto_if_false @SWEET7_5693
if 
  is_car_on_fire 78@
goto_if_false @SWEET7_5693
clear_prints 
print_now 'TWAR664' {time} 6000 {flag} 1
goto @SWEET7_32138

:SWEET7_5693
281@ = get_int_stat StatId.Respect
if 
  55@ == 0
goto_if_false @SWEET7_7055
if 
  0 > 282@
goto_if_false @SWEET7_6071
if 
  537@ == 0
goto_if_false @SWEET7_6071
switch_start 282@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SWEET7_6071 {caseNum1} -10 {caseLabel1} @SWEET7_5882 {caseNum2} -9 {caseLabel2} @SWEET7_5903 {caseNum3} -8 {caseLabel3} @SWEET7_5924 {caseNum4} -7 {caseLabel4} @SWEET7_5945 {caseNum5} -6 {caseLabel5} @SWEET7_5966 {caseNum6} -5 {caseLabel6} @SWEET7_5987 {caseNum7} -4 {caseLabel7} @SWEET7_6008
switch_continued -3 {caseLabel1} @SWEET7_6029 {caseNum2} -2 {caseLabel2} @SWEET7_6050 {caseNum3} -1 {caseLabel3} @SWEET7_6071 {caseNum4} -1 {caseLabel4} @SWEET7_6071 {caseNum5} -1 {caseLabel5} @SWEET7_6071 {caseNum6} -1 {caseLabel6} @SWEET7_6071 {caseNum7} -1 {caseLabel7} @SWEET7_6071 {caseNum8} -1 {caseLabel8} @SWEET7_6071 {caseNum9} -1 {caseLabel9} @SWEET7_6071

:SWEET7_5882
534@ = 1
282@ = -9
goto @SWEET7_6071

:SWEET7_5903
534@ = 2
282@ = -8
goto @SWEET7_6071

:SWEET7_5924
534@ = 3
282@ = -7
goto @SWEET7_6071

:SWEET7_5945
534@ = 4
282@ = -6
goto @SWEET7_6071

:SWEET7_5966
534@ = 5
282@ = -5
goto @SWEET7_6071

:SWEET7_5987
534@ = 6
282@ = -4
goto @SWEET7_6071

:SWEET7_6008
534@ = 7
282@ = -3
goto @SWEET7_6071

:SWEET7_6029
534@ = 8
282@ = -2
goto @SWEET7_6071

:SWEET7_6050
534@ = 0
282@ = 0
goto @SWEET7_6071

:SWEET7_6071
if 
  537@ == 0
goto_if_false @SWEET7_6196
if 
  282@ == 0
goto_if_false @SWEET7_6139
clear_prints 
print_now 'TWAR612' {time} 6000 {flag} 1
282@ = 1
TIMERB = 0

:SWEET7_6139
if 
  282@ == 1
goto_if_false @SWEET7_6196
if 
  TIMERB > 7000
goto_if_false @SWEET7_6196
clear_prints 
print_help 'HELP101'
282@ = 2

:SWEET7_6196
if 
  284@ == 0
goto_if_false @SWEET7_6285
if 
  TIMERA > 3000
goto_if_false @SWEET7_6285
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_6285
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_6285
clear_char_tasks $sweet
task_turn_char_to_face_char $sweet {target} $scplayer
TIMERA = 0

:SWEET7_6285
if 
  does_char_exist $sweet
goto_if_false @SWEET7_6345
if 
  has_char_been_damaged_by_char $sweet {handle} $scplayer
goto_if_false @SWEET7_6345
clear_prints 
print_now 'TWAR618' {time} 6000 {flag} 1
goto @SWEET7_32138

:SWEET7_6345
if 
  295@ == 0
goto_if_false @SWEET7_6405
if 
  does_char_exist 289@
goto_if_false @SWEET7_6405
if 
  has_char_been_damaged_by_char 289@ {handle} $scplayer
goto_if_false @SWEET7_6405
295@ = 1

:SWEET7_6405
if 
  295@ == 0
goto_if_false @SWEET7_6465
if 
  does_char_exist 290@
goto_if_false @SWEET7_6465
if 
  has_char_been_damaged_by_char 290@ {handle} $scplayer
goto_if_false @SWEET7_6465
295@ = 1

:SWEET7_6465
if 
  295@ == 0
goto_if_false @SWEET7_6525
if 
  does_char_exist 291@
goto_if_false @SWEET7_6525
if 
  has_char_been_damaged_by_char 291@ {handle} $scplayer
goto_if_false @SWEET7_6525
295@ = 1

:SWEET7_6525
if 
  295@ == 1
goto_if_false @SWEET7_6637
if 
  not is_char_dead 289@
goto_if_false @SWEET7_6572
clear_char_tasks 289@
task_kill_char_on_foot 289@ {target} $scplayer

:SWEET7_6572
if 
  not is_char_dead 290@
goto_if_false @SWEET7_6601
clear_char_tasks 290@
task_kill_char_on_foot 290@ {target} $scplayer

:SWEET7_6601
if 
  not is_char_dead 291@
goto_if_false @SWEET7_6630
clear_char_tasks 291@
task_kill_char_on_foot 291@ {target} $scplayer

:SWEET7_6630
295@ = 2

:SWEET7_6637
if 
  296@ == 0
goto_if_false @SWEET7_6696
if 
  is_char_dead 289@
goto_if_false @SWEET7_6696
increment_int_stat StatId.Respect {value} 35
remove_blip 292@
281@ = get_int_stat StatId.Respect
296@ = 1

:SWEET7_6696
if 
  297@ == 0
goto_if_false @SWEET7_6755
if 
  is_char_dead 290@
goto_if_false @SWEET7_6755
increment_int_stat StatId.Respect {value} 35
remove_blip 293@
281@ = get_int_stat StatId.Respect
297@ = 1

:SWEET7_6755
if 
  298@ == 0
goto_if_false @SWEET7_6814
if 
  is_char_dead 291@
goto_if_false @SWEET7_6814
increment_int_stat StatId.Respect {value} 35
remove_blip 294@
281@ = get_int_stat StatId.Respect
298@ = 1

:SWEET7_6814
if 
  is_char_dead 289@
goto_if_false @SWEET7_6894
if 
  is_char_dead 290@
goto_if_false @SWEET7_6894
if 
  is_char_dead 291@
goto_if_false @SWEET7_6894
281@ = get_int_stat StatId.Respect
if 
  100 > 281@
goto_if_false @SWEET7_6894
set_int_stat StatId.Respect {value} 200

:SWEET7_6894
301@ = find_max_number_of_group_members 
if 
  301@ > 1
goto_if_false @SWEET7_7055
mark_char_as_no_longer_needed 289@
mark_char_as_no_longer_needed 290@
mark_char_as_no_longer_needed 291@
remove_blip 292@
remove_blip 293@
remove_blip 294@
clear_prints 
print_now 'TWAR617' {time} 6000 {flag} 1
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7055
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
55@ = 1
284@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7055
clear_char_tasks $sweet
task_enter_car_as_passenger $sweet {vehicle} 78@ {time} 20000 {seat} SeatId.BikeRear
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True

:SWEET7_7055
if 
  55@ == 1
goto_if_false @SWEET7_7281
if 
  284@ == 1
goto_if_false @SWEET7_7170
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7170
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7170
if 
  is_char_sitting_in_car $sweet {vehicle} 78@
goto_if_false @SWEET7_7170
freeze_car_position 78@ {state} False
lock_car_doors 78@ {lockStatus} CarLock.Unlocked
open_car_door 78@ {door} CarDoor.LeftFrontDoor
284@ = 2

:SWEET7_7170
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7281
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_7281
remove_blip 41@
281@ = get_int_stat StatId.Respect
267@ = add_blip_for_coord 2460.499 {y} -1656.5699 {z} 12.3125
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7260
shut_char_up_for_scripted_speech $sweet {state} True

:SWEET7_7260
55@ = 2
44@ = 0
539@ = 1

:SWEET7_7281
if 
  55@ == 2
goto_if_false @SWEET7_8493
if 
  not is_car_dead 78@
goto_if_false @SWEET7_8493
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_7577
if 
  539@ > 0
goto_if_false @SWEET7_7577
if 
  537@ == 0
goto_if_false @SWEET7_7577
switch_start 539@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7577 {caseNum1} 1 {caseLabel1} @SWEET7_7433 {caseNum2} 2 {caseLabel2} @SWEET7_7454 {caseNum3} 3 {caseLabel3} @SWEET7_7475 {caseNum4} 4 {caseLabel4} @SWEET7_7496 {caseNum5} 5 {caseLabel5} @SWEET7_7517 {caseNum6} -1 {caseLabel6} @SWEET7_7577 {caseNum7} -1 {caseLabel7} @SWEET7_7577

:SWEET7_7433
534@ = 10
539@ = 2
goto @SWEET7_7577

:SWEET7_7454
534@ = 11
539@ = 3
goto @SWEET7_7577

:SWEET7_7475
534@ = 12
539@ = 4
goto @SWEET7_7577

:SWEET7_7496
534@ = 13
539@ = 5
goto @SWEET7_7577

:SWEET7_7517
534@ = 0
print_now 'TWAR650' {time} 6000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7563
shut_char_up_for_scripted_speech $sweet {state} False

:SWEET7_7563
539@ = 0
goto @SWEET7_7577

:SWEET7_7577
if 
  541@ > 0
goto_if_false @SWEET7_7800
if 
  537@ == 0
goto_if_false @SWEET7_7800
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7800 {caseNum1} 1 {caseLabel1} @SWEET7_7676 {caseNum2} 2 {caseLabel2} @SWEET7_7740 {caseNum3} -1 {caseLabel3} @SWEET7_7800 {caseNum4} -1 {caseLabel4} @SWEET7_7800 {caseNum5} -1 {caseLabel5} @SWEET7_7800 {caseNum6} -1 {caseLabel6} @SWEET7_7800 {caseNum7} -1 {caseLabel7} @SWEET7_7800

:SWEET7_7676
if 
  540@ == 0
goto_if_false @SWEET7_7701
534@ = 24

:SWEET7_7701
if 
  540@ == 1
goto_if_false @SWEET7_7726
534@ = 26

:SWEET7_7726
541@ = 2
goto @SWEET7_7800

:SWEET7_7740
534@ = 0
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7770
shut_char_up_for_scripted_speech $sweet {state} False

:SWEET7_7770
print_now 'TWAR645' {time} 6000 {flag} 1
541@ = 0
goto @SWEET7_7800

:SWEET7_7800
if 
  542@ > 0
goto_if_false @SWEET7_7975
if 
  537@ == 0
goto_if_false @SWEET7_7975
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7975 {caseNum1} 1 {caseLabel1} @SWEET7_7899 {caseNum2} 2 {caseLabel2} @SWEET7_7938 {caseNum3} -1 {caseLabel3} @SWEET7_7975 {caseNum4} -1 {caseLabel4} @SWEET7_7975 {caseNum5} -1 {caseLabel5} @SWEET7_7975 {caseNum6} -1 {caseLabel6} @SWEET7_7975 {caseNum7} -1 {caseLabel7} @SWEET7_7975

:SWEET7_7899
if 
  540@ == 0
goto_if_false @SWEET7_7924
534@ = 25

:SWEET7_7924
542@ = 2
goto @SWEET7_7975

:SWEET7_7938
534@ = 0
print_now 'TWAR650' {time} 6000 {flag} 1
542@ = 0
goto @SWEET7_7975

:SWEET7_7975
281@ = get_int_stat StatId.Respect
if 
  44@ == 0
goto_if_false @SWEET7_8075
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8075
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True
remove_blip 267@
clear_prints 
44@ = 1
539@ = 0
541@ = 1
540@ = generate_random_int_in_range 0 {max} 2

:SWEET7_8075
if 
  44@ == 1
goto_if_false @SWEET7_8169
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8169
remove_blip 41@
267@ = add_blip_for_coord 2460.499 {y} -1656.5699 {z} 12.3125
clear_prints 
44@ = 0
539@ = 0
542@ = 1
540@ = generate_random_int_in_range 0 {max} 1

:SWEET7_8169
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_8212
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_8212
set_player_control $player1 {state} True

:SWEET7_8212
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8493
if 
  locate_char_in_car_3d $scplayer {x} 2460.499 {y} -1656.5699 {z} 12.3125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_8493
set_player_control $player1 {state} False
if 
  is_car_stopped 78@
goto_if_false @SWEET7_8493
freeze_car_position 78@ {state} True
clear_area 2268.0391 {y} -1670.6949 {z} 14.3594 {radius} 10.0 {clearParticles} True
remove_animation "SMOKING"
clear_prints 
539@ = 1
set_player_control $player1 {state} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} True
remove_blip 267@
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8493
if 
  not is_char_dead 264@
goto_if_false @SWEET7_8493
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = generate_random_int_in_range 0 {max} 3

:SWEET7_8493
if 
  55@ == 3
goto_if_false @SWEET7_8697
freeze_car_position 78@ {state} True
clear_area 2268.0391 {y} -1670.6949 {z} 14.3594 {radius} 10.0 {clearParticles} True
remove_animation "SMOKING"
clear_prints 
539@ = 1
set_player_control $player1 {state} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} True
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8697
if 
  not is_char_dead 264@
goto_if_false @SWEET7_8697
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = generate_random_int_in_range 0 {max} 3

:SWEET7_8697
if 
  285@ == 1
goto_if_false @SWEET7_8763
if 
  TIMERA > 8000
goto_if_false @SWEET7_8763
clear_this_print 'TWAR652'
print_help 'TWAR660'
285@ = 2

:SWEET7_8763
if 
  270@ == 1
goto_if_false @SWEET7_9539
if 
  268@ == 1
goto_if_false @SWEET7_8846
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8846
if 
  is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_8846
remove_blip 265@
268@ = 0

:SWEET7_8846
if 
  269@ == 1
goto_if_false @SWEET7_8911
if 
  not is_char_dead 264@
goto_if_false @SWEET7_8911
if 
  is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_8911
remove_blip 266@
269@ = 0

:SWEET7_8911
if 
  268@ == 0
goto_if_false @SWEET7_8998
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8998
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_8998
remove_blip 41@
55@ = 4
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1

:SWEET7_8998
if 
  269@ == 0
goto_if_false @SWEET7_9085
if 
  not is_char_dead 264@
goto_if_false @SWEET7_9085
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_9085
remove_blip 41@
55@ = 4
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1

:SWEET7_9085
262@, 261@ = get_group_size 260@
if 
  261@ > 1
goto_if_false @SWEET7_9483
if 
  not is_char_dead 263@
goto_if_false @SWEET7_9198
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_9198
clear_help 
print_help_forever 'TWAR662'
if 
  11 > 543@
goto_if_false @SWEET7_9198
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
543@ = 11

:SWEET7_9198
if 
  not is_char_dead 264@
goto_if_false @SWEET7_9282
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_9282
clear_help 
print_help_forever 'TWAR662'
if 
  11 > 543@
goto_if_false @SWEET7_9282
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
543@ = 11

:SWEET7_9282
if 
  543@ > 10
goto_if_false @SWEET7_9483
if 
  537@ == 0
goto_if_false @SWEET7_9483
switch_start 543@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_9483 {caseNum1} 11 {caseLabel1} @SWEET7_9381 {caseNum2} 12 {caseLabel2} @SWEET7_9445 {caseNum3} -1 {caseLabel3} @SWEET7_9483 {caseNum4} -1 {caseLabel4} @SWEET7_9483 {caseNum5} -1 {caseLabel5} @SWEET7_9483 {caseNum6} -1 {caseLabel6} @SWEET7_9483 {caseNum7} -1 {caseLabel7} @SWEET7_9483

:SWEET7_9381
if 
  540@ == 0
goto_if_false @SWEET7_9406
534@ = 20

:SWEET7_9406
if 
  540@ == 1
goto_if_false @SWEET7_9431
534@ = 21

:SWEET7_9431
543@ = 12
goto @SWEET7_9483

:SWEET7_9445
534@ = 0
print_now 'TWAR659' {time} 6000 {flag} 1
543@ = 999
goto @SWEET7_9483

:SWEET7_9483
if 
  2 > 261@
goto_if_false @SWEET7_9539
if 
  285@ == 2
goto_if_false @SWEET7_9539
clear_help 
print_help_forever 'TWAR660'
543@ = 0

:SWEET7_9539
if 
  55@ == 4
goto_if_false @SWEET7_10198
if 
  539@ > 0
goto_if_false @SWEET7_10010
if 
  537@ == 0
goto_if_false @SWEET7_10010
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_10010 {caseNum1} 1 {caseLabel1} @SWEET7_9656 {caseNum2} 2 {caseLabel2} @SWEET7_9919 {caseNum3} -1 {caseLabel3} @SWEET7_10010 {caseNum4} -1 {caseLabel4} @SWEET7_10010 {caseNum5} -1 {caseLabel5} @SWEET7_10010 {caseNum6} -1 {caseLabel6} @SWEET7_10010 {caseNum7} -1 {caseLabel7} @SWEET7_10010

:SWEET7_9656
if 
  540@ == 0
goto_if_false @SWEET7_9739
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9739
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_9739
if 
  540@ == 1
goto_if_false @SWEET7_9822
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9822
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_9822
if 
  540@ == 2
goto_if_false @SWEET7_9905
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9905
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_9905
539@ = 2
goto @SWEET7_10010

:SWEET7_9919
534@ = 0
print_now 'TWAR652' {time} 6000 {flag} 1
if 
  not is_car_dead 78@
goto_if_false @SWEET7_9996
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9996
clear_char_tasks $sweet
task_enter_car_as_passenger $sweet {vehicle} 78@ {time} 20000 {seat} SeatId.BikeRear
set_radio_channel RadioChannel.CSR

:SWEET7_9996
539@ = 0
goto @SWEET7_10010

:SWEET7_10010
if 
  not is_char_dead 263@
goto_if_false @SWEET7_10198
if 
  not is_char_dead 264@
goto_if_false @SWEET7_10198
if 
  is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_10198
if 
  is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_10198
clear_help 
clear_prints 
print_now 'TWAR654' {time} 5500 {flag} 1
286@ = 1
TIMERB = 0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_10191
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10191
if 
  is_char_sitting_in_car $sweet {vehicle} 78@
goto_if_false @SWEET7_10191
lock_car_doors 78@ {lockStatus} CarLock.Unlocked
41@ = add_blip_for_car 78@
set_blip_as_friendly 41@ {state} True
set_radio_channel RadioChannel.CSR

:SWEET7_10191
55@ = 10

:SWEET7_10198
if 
  286@ == 1
goto_if_false @SWEET7_10242
if 
  TIMERB > 6000
goto_if_false @SWEET7_10242
286@ = 2

:SWEET7_10242
if 
  55@ == 10
goto_if_false @SWEET7_10554
if 
  not is_car_dead 78@
goto_if_false @SWEET7_10554
if 
  not is_char_dead 263@
goto_if_false @SWEET7_10554
if 
  not is_char_dead 264@
goto_if_false @SWEET7_10554
if 
  is_char_sitting_in_car 263@ {vehicle} 78@
goto_if_false @SWEET7_10554
if 
  is_char_sitting_in_car 264@ {vehicle} 78@
goto_if_false @SWEET7_10554
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_10554
freeze_car_position 78@ {state} False
clear_help 
clear_prints 
set_camera_behind_player 
if 
  302@ == 0
goto_if_false @SWEET7_10462
display_onscreen_timer_with_string $sw7_kanefuckedhealth {direction} TimerDirection.Down {text} 'TWAR620'
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 35@
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 36@
remove_animation "SMOKING"
302@ = 1

:SWEET7_10462
remove_blip 41@
42@ = add_blip_for_coord 799.0102 {y} -1074.032 {z} 23.0115
270@ = 1
44@ = 0
539@ = 1
55@ = 20
TIMERA = 0
switch_roads_off 772.243 {leftBottomY} -1050.323 {leftBottomZ} 10.2931 {rightTopX} 806.2723 {rightTopY} -1130.1949 {rightTopZ} 23.8359

:SWEET7_10554
if 
  37@ == 1
goto_if_false @SWEET7_10621
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET7_10621
if 
  10 > 53@
goto_if_false @SWEET7_10621
53@ = 10
37@ = 0

:SWEET7_10621
if 
  38@ == 1
goto_if_false @SWEET7_10663
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET7_10663
133@ = 15

:SWEET7_10663
if 
  is_char_dead $sweet
goto_if_false @SWEET7_10704
clear_prints 
print_now 'TWAR638' {time} 10000 {flag} 1
goto @SWEET7_32138

:SWEET7_10704
if 
  is_car_dead 79@
goto_if_false @SWEET7_10777
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10777
if 
  not is_char_in_any_car $sweet
goto_if_false @SWEET7_10777
clear_prints 
print_now 'TWAR648' {time} 6000 {flag} 1
goto @SWEET7_32138

:SWEET7_10777
if 
  53@ == 0
goto_if_false @SWEET7_12683
if 
  55@ == 20
goto_if_false @SWEET7_12683
if 
  not is_car_dead 78@
goto_if_false @SWEET7_12683
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11102
if 
  278@ == 0
goto_if_false @SWEET7_10903
if 
  TIMERA > 20000
goto_if_false @SWEET7_10903
print_help 'TWAR656'
278@ = 1

:SWEET7_10903
if 
  539@ > 0
goto_if_false @SWEET7_11102
if 
  537@ == 0
goto_if_false @SWEET7_11102
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11102 {caseNum1} 1 {caseLabel1} @SWEET7_11002 {caseNum2} 2 {caseLabel2} @SWEET7_11023 {caseNum3} 3 {caseLabel3} @SWEET7_11044 {caseNum4} 4 {caseLabel4} @SWEET7_11065 {caseNum5} -1 {caseLabel5} @SWEET7_11102 {caseNum6} -1 {caseLabel6} @SWEET7_11102 {caseNum7} -1 {caseLabel7} @SWEET7_11102

:SWEET7_11002
534@ = 23
539@ = 2
goto @SWEET7_11102

:SWEET7_11023
534@ = 35
539@ = 3
goto @SWEET7_11102

:SWEET7_11044
534@ = 36
539@ = 4
goto @SWEET7_11102

:SWEET7_11065
534@ = 0
print_now 'TWAR631' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_11102

:SWEET7_11102
if 
  541@ > 0
goto_if_false @SWEET7_11302
if 
  537@ == 0
goto_if_false @SWEET7_11302
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11302 {caseNum1} 1 {caseLabel1} @SWEET7_11201 {caseNum2} 2 {caseLabel2} @SWEET7_11265 {caseNum3} -1 {caseLabel3} @SWEET7_11302 {caseNum4} -1 {caseLabel4} @SWEET7_11302 {caseNum5} -1 {caseLabel5} @SWEET7_11302 {caseNum6} -1 {caseLabel6} @SWEET7_11302 {caseNum7} -1 {caseLabel7} @SWEET7_11302

:SWEET7_11201
if 
  540@ == 0
goto_if_false @SWEET7_11226
534@ = 24

:SWEET7_11226
if 
  540@ == 1
goto_if_false @SWEET7_11251
534@ = 26

:SWEET7_11251
541@ = 2
goto @SWEET7_11302

:SWEET7_11265
534@ = 0
print_now 'TWAR632' {time} 6000 {flag} 1
541@ = 0
goto @SWEET7_11302

:SWEET7_11302
if 
  542@ > 0
goto_if_false @SWEET7_11477
if 
  537@ == 0
goto_if_false @SWEET7_11477
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11477 {caseNum1} 1 {caseLabel1} @SWEET7_11401 {caseNum2} 2 {caseLabel2} @SWEET7_11440 {caseNum3} -1 {caseLabel3} @SWEET7_11477 {caseNum4} -1 {caseLabel4} @SWEET7_11477 {caseNum5} -1 {caseLabel5} @SWEET7_11477 {caseNum6} -1 {caseLabel6} @SWEET7_11477 {caseNum7} -1 {caseLabel7} @SWEET7_11477

:SWEET7_11401
if 
  540@ == 0
goto_if_false @SWEET7_11426
534@ = 25

:SWEET7_11426
542@ = 2
goto @SWEET7_11477

:SWEET7_11440
534@ = 0
print_now 'TWAR631' {time} 6000 {flag} 1
542@ = 0
goto @SWEET7_11477

:SWEET7_11477
if 
  44@ == 0
goto_if_false @SWEET7_11570
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11570
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True
remove_blip 42@
clear_prints 
44@ = 1
539@ = 0
541@ = 1
540@ = generate_random_int_in_range 0 {max} 2

:SWEET7_11570
if 
  44@ == 1
goto_if_false @SWEET7_11734
if 
  not is_char_dead 263@
goto_if_false @SWEET7_11734
if 
  not is_char_dead 264@
goto_if_false @SWEET7_11734
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11734
if 
  is_char_sitting_in_car 263@ {vehicle} 78@
goto_if_false @SWEET7_11734
if 
  is_char_sitting_in_car 264@ {vehicle} 78@
goto_if_false @SWEET7_11734
remove_blip 41@
42@ = add_blip_for_coord 799.0102 {y} -1074.032 {z} 23.0115
clear_prints 
44@ = 0
539@ = 0
542@ = 1
540@ = generate_random_int_in_range 0 {max} 1

:SWEET7_11734
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_11777
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_11777
set_player_control $player1 {state} True

:SWEET7_11777
if 
  44@ == 0
goto_if_false @SWEET7_12683
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_12683
if 
  locate_char_in_car_3d $scplayer {x} 799.0102 {y} -1074.032 {z} 23.0115 {xRadius} 3.8 {yRadius} 3.8 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_12683
set_player_control $player1 {state} False
if 
  is_car_stopped 78@
goto_if_false @SWEET7_12683
remove_blip 42@
set_player_control $player1 {state} False
clear_onscreen_timer $sw7_kanefuckedhealth
do_fade 500 {direction} Fade.Out

:SWEET7_11909
if 
  get_fading_status 
goto_if_false @SWEET7_11933
wait 0
goto @SWEET7_11909

:SWEET7_11933
set_fixed_camera_position 790.7784 {y} -1072.139 {z} 26.2131 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 791.6847 {y} -1072.3781 {z} 25.8645 {switchStyle} SwitchType.JumpCut
load_scene 803.5742 {y} -1075.752 {z} 23.3957
wait 0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_12028
freeze_car_position 78@ {state} True

:SWEET7_12028
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.In

:SWEET7_12046
if 
  get_fading_status 
goto_if_false @SWEET7_12070
wait 0
goto @SWEET7_12046

:SWEET7_12070
clear_onscreen_timer $sw7_kanefuckedhealth
do_fade 1000 {direction} Fade.In

:SWEET7_12082
if 
  get_fading_status 
goto_if_false @SWEET7_12106
wait 0
goto @SWEET7_12082

:SWEET7_12106
270@ = 0
53@ = 1
133@ = 1
TIMERA = 0
if 
  537@ == 0
goto_if_false @SWEET7_12159
534@ = 29

:SWEET7_12159
if 
  53@ == -999
goto_if_false @SWEET7_12332
81@ = create_char PedType.Mission2 {modelId} 106 {x} 820.7578 {y} -1078.671 {z} 22.9313
set_char_heading 81@ {heading} 258.1012
set_char_decision_maker 81@ {handleOrTemplate} 93@
set_char_health 81@ {health} 500
set_char_max_health 81@ {maxHealth} 500
set_char_never_targetted 81@ {state} True
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 99999
82@ = create_char PedType.Mission2 {modelId} 106 {x} 820.2401 {y} -1075.7629 {z} 23.0894
set_char_heading 82@ {heading} 200.7
set_char_decision_maker 82@ {handleOrTemplate} 93@
set_char_health 82@ {health} 500
set_char_max_health 82@ {maxHealth} 500
set_char_never_targetted 82@ {state} True
give_weapon_to_char 82@ {weaponType} WeaponType.MicroUzi {ammo} 99999

:SWEET7_12332
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 105
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_12453
set_char_decision_maker $sweet {handleOrTemplate} 93@
clear_char_tasks $sweet
39@ = add_blip_for_char $sweet
set_blip_as_friendly 39@ {state} True
83@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 804.576 {y} -1075.795 {z} 23.3946 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 83@
perform_sequence_task $sweet {sequence} 83@
clear_sequence_task 83@
TIMERA = 0

:SWEET7_12453
if 
  1000 > TIMERA
goto_if_false @SWEET7_12483
wait 0
goto @SWEET7_12453

:SWEET7_12483
if 
  not is_char_dead 263@
goto_if_false @SWEET7_12568
set_char_decision_maker 263@ {handleOrTemplate} 93@
remove_char_from_group 263@
clear_char_tasks 263@
272@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 804.8553 {y} -1074.422 {z} 23.4385 {speed} MoveState.Walk {time} 10000
close_sequence_task 272@
perform_sequence_task 263@ {sequence} 272@
clear_sequence_task 272@

:SWEET7_12568
if 
  1750 > TIMERA
goto_if_false @SWEET7_12598
wait 0
goto @SWEET7_12568

:SWEET7_12598
if 
  not is_char_dead 264@
goto_if_false @SWEET7_12683
set_char_decision_maker 264@ {handleOrTemplate} 93@
remove_char_from_group 264@
clear_char_tasks 264@
273@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 805.1254 {y} -1072.344 {z} 23.5187 {speed} MoveState.Run {time} 10000
close_sequence_task 273@
perform_sequence_task 264@ {sequence} 273@
clear_sequence_task 273@

:SWEET7_12683
if 
  133@ == 1
goto_if_false @SWEET7_12734
if 
  TIMERA > 500
goto_if_false @SWEET7_12734
133@ = 4
TIMERA = 0

:SWEET7_12734
if 
  133@ == 4
goto_if_false @SWEET7_13121
if 
  TIMERA > 1000
goto_if_false @SWEET7_12803
if 
  303@ == 0
goto_if_false @SWEET7_12803
38@ = 1
303@ = 1

:SWEET7_12803
if 
  TIMERA > 3000
goto_if_false @SWEET7_13121
clear_area 804.576 {y} -1075.795 {z} 23.3946 {radius} 5.0 {clearParticles} True
set_fixed_camera_position 813.1065 {y} -1071.708 {z} 27.3524 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 812.2476 {y} -1072.201 {z} 27.2129 {switchStyle} SwitchType.JumpCut
133@ = 5
if 
  537@ == 0
goto_if_false @SWEET7_12922

:SWEET7_12922
if 
  not is_char_dead $scplayer
goto_if_false @SWEET7_13003
clear_char_tasks $scplayer
549@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 803.7976 {y} -1075.882 {z} 23.3933 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 272.0
close_sequence_task 549@
perform_sequence_task $scplayer {sequence} 549@
clear_sequence_task 549@

:SWEET7_13003
TIMERA = 0
if 
  not is_char_dead 264@
goto_if_false @SWEET7_13121
clear_char_tasks 264@
set_char_coordinates 264@ {x} 805.1254 {y} -1072.344 {z} 23.5187
set_char_heading 264@ {heading} 230.0
273@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 820.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 273@
perform_sequence_task 264@ {sequence} 273@
clear_sequence_task 273@

:SWEET7_13121
if 
  133@ == 5
goto_if_false @SWEET7_13276
if 
  TIMERA > 200
goto_if_false @SWEET7_13276
clear_area 804.576 {y} -1075.795 {z} 23.3946 {radius} 5.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13262
clear_char_tasks $sweet
set_char_coordinates $sweet {x} 804.576 {y} -1075.795 {z} 23.3946
set_char_heading $sweet {heading} 271.0
83@ = open_sequence_task 
task_climb -1 {flag} True
close_sequence_task 83@
perform_sequence_task $sweet {sequence} 83@
clear_sequence_task 83@

:SWEET7_13262
TIMERA = 0
133@ = 6

:SWEET7_13276
if 
  133@ == 6
goto_if_false @SWEET7_13438
if 
  TIMERA > 1000
goto_if_false @SWEET7_13438
if 
  not is_char_dead 263@
goto_if_false @SWEET7_13424
clear_char_tasks 263@
set_char_coordinates 263@ {x} 804.8553 {y} -1074.422 {z} 23.4385
set_char_heading 263@ {heading} 262.0
272@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 818.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 272@
perform_sequence_task 263@ {sequence} 272@
clear_sequence_task 272@

:SWEET7_13424
133@ = 10
TIMERA = 0

:SWEET7_13438
if 
  133@ == 10
goto_if_false @SWEET7_13560
if 
  TIMERA > 2000
goto_if_false @SWEET7_13560
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13521
clear_char_tasks $sweet
task_go_straight_to_coord $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000

:SWEET7_13521
if 
  537@ == 0
goto_if_false @SWEET7_13546
534@ = 31

:SWEET7_13546
133@ = 13
TIMERA = 0

:SWEET7_13560
if 
  133@ == 13
goto_if_false @SWEET7_13622
if 
  537@ == 0
goto_if_false @SWEET7_13622
if 
  TIMERA > 2000
goto_if_false @SWEET7_13622
133@ = 15

:SWEET7_13622
if 
  133@ == 15
goto_if_false @SWEET7_13855
38@ = 0
clear_char_tasks $scplayer
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
clear_prints 
set_player_control $player1 {state} True
133@ = 20
clear_prints 
print_now 'TWAR635' {time} 6000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13753
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623
set_char_heading $sweet {heading} 279.0
task_turn_char_to_face_char $sweet {target} $scplayer

:SWEET7_13753
if 
  not is_char_dead 263@
goto_if_false @SWEET7_13804
clear_char_tasks_immediately 263@
set_char_coordinates 263@ {x} 816.0391 {y} -1072.6071 {z} 23.71
set_char_heading 263@ {heading} 248.0

:SWEET7_13804
if 
  not is_char_dead 264@
goto_if_false @SWEET7_13855
clear_char_tasks_immediately 264@
set_char_coordinates 264@ {x} 815.9681 {y} -1073.723 {z} 23.5666
set_char_heading 264@ {heading} 253.0

:SWEET7_13855
if 
  53@ == 1
goto_if_false @SWEET7_14139
if 
  55@ == 20
goto_if_false @SWEET7_14139
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_14139
if 
  68@ == 0
goto_if_false @SWEET7_14048
if 
  locate_char_any_means_3d $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET7_14048
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14048
clear_char_tasks $sweet
if 
  not is_char_dead 82@
goto_if_false @SWEET7_14025

:SWEET7_14025
if 
  not is_char_dead 81@
goto_if_false @SWEET7_14041

:SWEET7_14041
68@ = 1

:SWEET7_14048
if 
  locate_char_any_means_3d $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14139
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14139
53@ = 4
remove_blip 39@

:SWEET7_14139
if 
  1 > 53@
goto_if_false @SWEET7_14198
if 
  is_car_dead 78@
goto_if_false @SWEET7_14198
clear_prints 
print_now 'TWAR633' {time} 8000 {flag} 1
goto @SWEET7_32138

:SWEET7_14198
if 
  5 > 53@
goto_if_false @SWEET7_15457
if 
  does_char_exist 263@
goto_if_false @SWEET7_14274
if 
  is_char_dead 263@
goto_if_false @SWEET7_14274
clear_prints 
540@ = generate_random_int_in_range 0 {max} 3
539@ = 21
53@ = 999

:SWEET7_14274
if 
  does_char_exist 264@
goto_if_false @SWEET7_14332
if 
  is_char_dead 264@
goto_if_false @SWEET7_14332
clear_prints 
540@ = generate_random_int_in_range 0 {max} 3
539@ = 21
53@ = 999

:SWEET7_14332
if 
  does_char_exist 105@
goto_if_false @SWEET7_14557
if 
  has_char_been_damaged_by_char 105@ {handle} $scplayer
goto_if_false @SWEET7_14557
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14403
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14403
if 
  not is_char_dead 107@
goto_if_false @SWEET7_14432
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_14432
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14461
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14461
if 
  not is_char_dead 97@
goto_if_false @SWEET7_14497
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14497
if 
  not is_char_dead 96@
goto_if_false @SWEET7_14533
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14533
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_14557
if 
  does_char_exist 107@
goto_if_false @SWEET7_14782
if 
  has_char_been_damaged_by_char 107@ {handle} $scplayer
goto_if_false @SWEET7_14782
69@ = 1
if 
  not is_char_dead 107@
goto_if_false @SWEET7_14628
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_14628
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14657
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14657
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14686
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14686
if 
  not is_char_dead 97@
goto_if_false @SWEET7_14722
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14722
if 
  not is_char_dead 96@
goto_if_false @SWEET7_14758
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14758
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_14782
if 
  does_char_exist 109@
goto_if_false @SWEET7_15007
if 
  has_char_been_damaged_by_char 109@ {handle} $scplayer
goto_if_false @SWEET7_15007
69@ = 1
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14853
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14853
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14882
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14882
if 
  not is_char_dead 107@
goto_if_false @SWEET7_14911
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_14911
if 
  not is_char_dead 97@
goto_if_false @SWEET7_14947
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14947
if 
  not is_char_dead 96@
goto_if_false @SWEET7_14983
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14983
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15007
if 
  does_char_exist 96@
goto_if_false @SWEET7_15232
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @SWEET7_15232
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_15078
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_15078
if 
  not is_char_dead 107@
goto_if_false @SWEET7_15107
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_15107
if 
  not is_char_dead 109@
goto_if_false @SWEET7_15136
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_15136
if 
  not is_char_dead 97@
goto_if_false @SWEET7_15172
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15172
if 
  not is_char_dead 96@
goto_if_false @SWEET7_15208
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15208
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15232
if 
  does_char_exist 97@
goto_if_false @SWEET7_15457
if 
  has_char_been_damaged_by_char 97@ {handle} $scplayer
goto_if_false @SWEET7_15457
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_15303
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_15303
if 
  not is_char_dead 107@
goto_if_false @SWEET7_15332
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_15332
if 
  not is_char_dead 109@
goto_if_false @SWEET7_15361
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_15361
if 
  not is_char_dead 97@
goto_if_false @SWEET7_15397
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15397
if 
  not is_char_dead 96@
goto_if_false @SWEET7_15433
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15433
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15457
if 
  53@ == 999
goto_if_false @SWEET7_16414
if and
  539@ > 20
  30 > 539@
goto_if_false @SWEET7_15715
if 
  537@ == 0
goto_if_false @SWEET7_15715
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_15715 {caseNum1} 21 {caseLabel1} @SWEET7_15582 {caseNum2} 22 {caseLabel2} @SWEET7_15671 {caseNum3} -1 {caseLabel3} @SWEET7_15715 {caseNum4} -1 {caseLabel4} @SWEET7_15715 {caseNum5} -1 {caseLabel5} @SWEET7_15715 {caseNum6} -1 {caseLabel6} @SWEET7_15715 {caseNum7} -1 {caseLabel7} @SWEET7_15715

:SWEET7_15582
if 
  540@ == 0
goto_if_false @SWEET7_15607
534@ = 17

:SWEET7_15607
if 
  540@ == 1
goto_if_false @SWEET7_15632
534@ = 18

:SWEET7_15632
if 
  540@ == 2
goto_if_false @SWEET7_15657
534@ = 19

:SWEET7_15657
539@ = 22
goto @SWEET7_15715

:SWEET7_15671
534@ = 0
print_now 'TWAR658' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32138
goto @SWEET7_15715

:SWEET7_15715
if and
  539@ > 30
  40 > 539@
goto_if_false @SWEET7_15929
if 
  537@ == 0
goto_if_false @SWEET7_15929
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_15929 {caseNum1} 31 {caseLabel1} @SWEET7_15821 {caseNum2} 32 {caseLabel2} @SWEET7_15885 {caseNum3} -1 {caseLabel3} @SWEET7_15929 {caseNum4} -1 {caseLabel4} @SWEET7_15929 {caseNum5} -1 {caseLabel5} @SWEET7_15929 {caseNum6} -1 {caseLabel6} @SWEET7_15929 {caseNum7} -1 {caseLabel7} @SWEET7_15929

:SWEET7_15821
if 
  540@ == 0
goto_if_false @SWEET7_15846
534@ = 27

:SWEET7_15846
if 
  540@ == 1
goto_if_false @SWEET7_15871
534@ = 28

:SWEET7_15871
539@ = 32
goto @SWEET7_15929

:SWEET7_15885
534@ = 0
print_now 'TWAR619' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32138
goto @SWEET7_15929

:SWEET7_15929
if and
  539@ > 40
  50 > 539@
goto_if_false @SWEET7_16168
if 
  537@ == 0
goto_if_false @SWEET7_16168
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16168 {caseNum1} 41 {caseLabel1} @SWEET7_16035 {caseNum2} 42 {caseLabel2} @SWEET7_16124 {caseNum3} -1 {caseLabel3} @SWEET7_16168 {caseNum4} -1 {caseLabel4} @SWEET7_16168 {caseNum5} -1 {caseLabel5} @SWEET7_16168 {caseNum6} -1 {caseLabel6} @SWEET7_16168 {caseNum7} -1 {caseLabel7} @SWEET7_16168

:SWEET7_16035
if 
  540@ == 0
goto_if_false @SWEET7_16060
534@ = 37

:SWEET7_16060
if 
  540@ == 1
goto_if_false @SWEET7_16085
534@ = 38

:SWEET7_16085
if 
  540@ == 1
goto_if_false @SWEET7_16110
534@ = 39

:SWEET7_16110
539@ = 42
goto @SWEET7_16168

:SWEET7_16124
534@ = 0
print_now 'TWAR625' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32138
goto @SWEET7_16168

:SWEET7_16168
if and
  539@ > 60
  70 > 539@
goto_if_false @SWEET7_16414
if 
  537@ == 0
goto_if_false @SWEET7_16414
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16414 {caseNum1} 61 {caseLabel1} @SWEET7_16274 {caseNum2} 62 {caseLabel2} @SWEET7_16363 {caseNum3} -1 {caseLabel3} @SWEET7_16414 {caseNum4} -1 {caseLabel4} @SWEET7_16414 {caseNum5} -1 {caseLabel5} @SWEET7_16414 {caseNum6} -1 {caseLabel6} @SWEET7_16414 {caseNum7} -1 {caseLabel7} @SWEET7_16414

:SWEET7_16274
if 
  540@ == 0
goto_if_false @SWEET7_16299
534@ = 61

:SWEET7_16299
if 
  540@ == 1
goto_if_false @SWEET7_16324
534@ = 62

:SWEET7_16324
if 
  540@ == 2
goto_if_false @SWEET7_16349
534@ = 63

:SWEET7_16349
539@ = 62
goto @SWEET7_16414

:SWEET7_16363
534@ = 0
clear_prints 
print_now 'TWAR627' {time} 8000 {flag} 1
delete_char 98@
539@ = 0
goto @SWEET7_32138
goto @SWEET7_16414

:SWEET7_16414
if 
  53@ == 4
goto_if_false @SWEET7_16922
53@ = 5
if 
  not is_car_dead 78@
goto_if_false @SWEET7_16479
close_all_car_doors 78@
freeze_car_position 78@ {state} False
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
mark_car_as_no_longer_needed 78@

:SWEET7_16479
clear_area 894.0744 {y} -1073.4969 {z} 23.3203 {radius} 125.0 {clearParticles} True
set_player_control $player1 {state} False
76@ = create_car 445 {x} 897.3787 {y} -1073.502 {z} 23.3203
set_car_heading 76@ {heading} 90.2
change_car_colour 76@ {color1} 25 {color2} 40
lock_car_doors 76@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
mark_model_as_no_longer_needed 445
98@ = create_char_as_passenger 76@ {pedType} PedType.Mission1 {modelId} 104 {seat} SeatId.BikeRear
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 103
give_weapon_to_char 101@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 98@ {handleOrTemplate} 92@
set_char_decision_maker 101@ {handleOrTemplate} 92@
set_char_health 98@ {health} 260
set_char_max_health 98@ {maxHealth} 300
set_char_accuracy 98@ {accuracy} 100
add_armour_to_char 98@ {amount} 100
set_char_only_damaged_by_player 98@ {state} True
set_char_suffers_critical_hits 98@ {state} False
set_char_can_be_shot_in_vehicle 98@ {state} False
set_char_allowed_to_duck 98@ {state} False
111@ = create_char PedType.Mission1 {modelId} 103 {x} 876.4128 {y} -1068.866 {z} 23.3745
set_char_decision_maker 111@ {handleOrTemplate} 93@
set_char_heading 111@ {heading} 166.6
give_weapon_to_char 111@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_only_damaged_by_player 111@ {state} True
set_char_accuracy 111@ {accuracy} 90
set_char_health 111@ {health} 120
112@ = create_char PedType.Mission1 {modelId} 103 {x} 922.7446 {y} -1066.214 {z} 23.3203
set_char_decision_maker 112@ {handleOrTemplate} 93@
set_char_heading 112@ {heading} 66.6
give_weapon_to_char 112@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 112@ {rate} 15
set_char_only_damaged_by_player 112@ {state} True
set_char_accuracy 112@ {accuracy} 90
set_char_health 112@ {health} 120
113@ = create_char PedType.Mission1 {modelId} 103 {x} 922.4503 {y} -1117.908 {z} 23.0517
set_char_decision_maker 113@ {handleOrTemplate} 93@
set_char_heading 113@ {heading} 357.6
give_weapon_to_char 113@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 113@ {rate} 15
set_char_only_damaged_by_player 113@ {state} True
set_char_accuracy 113@ {accuracy} 90
set_char_health 113@ {health} 120

:SWEET7_16922
if 
  71@ == 0
goto_if_false @SWEET7_17438
if and
  53@ > 4
  999 > 53@
goto_if_false @SWEET7_17438
if 
  not is_char_dead 98@
goto_if_false @SWEET7_17005
$sw7_kanehealth = get_char_health 98@
set_var_int_to_var_int $sweet6_contact_blip = $sw7_kanehealth
$sweet6_contact_blip /= 3

:SWEET7_17005
if 
  132@ == 0
goto_if_false @SWEET7_17392
if 
  is_char_dead 98@
goto_if_false @SWEET7_17392
remove_blip 40@
gosub @SWEET7_31126
clear_prints 
71@ = 1
62@ = 99
63@ = 99
64@ = 99
539@ = 1
if 
  not is_car_dead 79@
goto_if_false @SWEET7_17198
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_17198
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly
clear_char_tasks $sweet
87@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 930.8062 {y} -1114.459 {z} 23.094 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 30000 {seat} -1
close_sequence_task 87@
perform_sequence_task $sweet {sequence} 87@
clear_sequence_task 87@

:SWEET7_17198
if 
  not is_char_dead 81@
goto_if_false @SWEET7_17295
clear_char_tasks 81@
300@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 945.3914 {y} -1100.376 {z} 23.2999 {speed} MoveState.Run {time} -1
task_aim_gun_at_coord -1 {x} 969.3931 {y} -1098.3409 {z} 22.877 {time} 120000
task_stay_in_same_place -1 {state} True
close_sequence_task 300@
perform_sequence_task 81@ {sequence} 300@
clear_sequence_task 300@

:SWEET7_17295
if 
  not is_char_dead 82@
goto_if_false @SWEET7_17392
clear_char_tasks 82@
299@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 944.9411 {y} -1106.7729 {z} 23.2539 {speed} MoveState.Run {time} -1
task_aim_gun_at_coord -1 {x} 970.9636 {y} -1107.962 {z} 22.8672 {time} 120000
task_stay_in_same_place -1 {state} True
close_sequence_task 299@
perform_sequence_task 82@ {sequence} 299@
clear_sequence_task 299@

:SWEET7_17392
if 
  132@ > 0
goto_if_false @SWEET7_17438
if 
  is_char_dead 98@
goto_if_false @SWEET7_17438
remove_blip 40@
71@ = 4

:SWEET7_17438
if 
  71@ == 4
goto_if_false @SWEET7_17600
if 
  not is_car_dead 79@
goto_if_false @SWEET7_17600
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_17600
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_17600
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
if 
  is_char_sitting_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_17600
276@ = 1
clear_char_tasks $sweet
remove_blip 43@
271@ = add_blip_for_coord 2501.634 {y} -1674.131 {z} 12.3689
set_police_ignore_player $player1 {state} False
set_camera_behind_player 
71@ = 8
44@ = 0
539@ = 1

:SWEET7_17600
if 
  71@ == 8
goto_if_false @SWEET7_18393
if 
  132@ == 0
goto_if_false @SWEET7_17793
if 
  539@ > 0
goto_if_false @SWEET7_17793
if 
  537@ == 0
goto_if_false @SWEET7_17793
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_17793 {caseNum1} 1 {caseLabel1} @SWEET7_17735 {caseNum2} 2 {caseLabel2} @SWEET7_17756 {caseNum3} -1 {caseLabel3} @SWEET7_17793 {caseNum4} -1 {caseLabel4} @SWEET7_17793 {caseNum5} -1 {caseLabel5} @SWEET7_17793 {caseNum6} -1 {caseLabel6} @SWEET7_17793 {caseNum7} -1 {caseLabel7} @SWEET7_17793

:SWEET7_17735
534@ = 69
539@ = 2
goto @SWEET7_17793

:SWEET7_17756
534@ = 0
print_now 'TWAR646' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_17793

:SWEET7_17793
if 
  132@ > 0
goto_if_false @SWEET7_18012
if 
  539@ > 0
goto_if_false @SWEET7_18012
if 
  537@ == 0
goto_if_false @SWEET7_18012
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18012 {caseNum1} 1 {caseLabel1} @SWEET7_17910 {caseNum2} 2 {caseLabel2} @SWEET7_17931 {caseNum3} 3 {caseLabel3} @SWEET7_17952 {caseNum4} 4 {caseLabel4} @SWEET7_17973 {caseNum5} -1 {caseLabel5} @SWEET7_18012 {caseNum6} -1 {caseLabel6} @SWEET7_18012 {caseNum7} -1 {caseLabel7} @SWEET7_18012

:SWEET7_17910
534@ = 64
539@ = 2
goto @SWEET7_18012

:SWEET7_17931
534@ = 65
539@ = 3
goto @SWEET7_18012

:SWEET7_17952
534@ = 66
539@ = 4
goto @SWEET7_18012

:SWEET7_17973
534@ = 0
clear_prints 
print_now 'TWAR646' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_18012

:SWEET7_18012
if 
  not is_car_dead 79@
goto_if_false @SWEET7_18393
if 
  44@ == 0
goto_if_false @SWEET7_18117
if 
  not is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18117
539@ = 0
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
remove_blip 271@
clear_prints 
print_now 'TWAR645' {time} 6000 {flag} 1
44@ = 1

:SWEET7_18117
if 
  44@ == 1
goto_if_false @SWEET7_18211
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18211
remove_blip 43@
271@ = add_blip_for_coord 2501.634 {y} -1674.131 {z} 12.3689
set_police_ignore_player $player1 {state} False
clear_prints 
print_now 'TWAR647' {time} 8000 {flag} 1
44@ = 0

:SWEET7_18211
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_18254
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_18254
set_player_control $player1 {state} True

:SWEET7_18254
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_18393
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_18393
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18393
if 
  locate_char_in_car_3d $scplayer {x} 2501.634 {y} -1674.131 {z} 12.3689 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_18393
set_player_control $player1 {state} False
if 
  is_car_stopped 79@
goto_if_false @SWEET7_18393
remove_blip 271@
clear_prints 
71@ = 74

:SWEET7_18393
if 
  71@ == 74
goto_if_false @SWEET7_18599
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
clear_area 2501.634 {y} -1674.131 {z} 12.3689 {radius} 5.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 2499.582 {y} -1682.395 {z} 15.2226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2499.969 {y} -1681.485 {z} 15.079 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_18578
85@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2516.634 {y} -1673.847 {z} 13.9671 {speed} MoveState.Walk {time} 20000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 85@
perform_sequence_task $sweet {sequence} 85@
clear_sequence_task 85@

:SWEET7_18578
TIMERB = 0
539@ = 1
71@ = 77

:SWEET7_18599
if 
  71@ == 77
goto_if_false @SWEET7_18807
if 
  539@ > 0
goto_if_false @SWEET7_18807
if 
  537@ == 0
goto_if_false @SWEET7_18807
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18807 {caseNum1} 1 {caseLabel1} @SWEET7_18716 {caseNum2} 2 {caseLabel2} @SWEET7_18737 {caseNum3} 3 {caseLabel3} @SWEET7_18758 {caseNum4} 4 {caseLabel4} @SWEET7_18779 {caseNum5} -1 {caseLabel5} @SWEET7_18807 {caseNum6} -1 {caseLabel6} @SWEET7_18807 {caseNum7} -1 {caseLabel7} @SWEET7_18807

:SWEET7_18716
534@ = 70
539@ = 2
goto @SWEET7_18807

:SWEET7_18737
534@ = 71
539@ = 3
goto @SWEET7_18807

:SWEET7_18758
534@ = 72
539@ = 4
goto @SWEET7_18807

:SWEET7_18779
534@ = 0
71@ = 80
539@ = 0
goto @SWEET7_18807

:SWEET7_18807
if 
  71@ == 80
goto_if_false @SWEET7_18861
set_camera_behind_player 
delete_char $sweet
switch_widescreen False
restore_camera_jumpcut 
clear_prints 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
goto @SWEET7_32156

:SWEET7_18861
if 
  53@ == 5
goto_if_false @SWEET7_19161
set_player_control $player1 {state} False
wait 0
do_fade 1500 {direction} Fade.Out

:SWEET7_18897
if 
  get_fading_status 
goto_if_false @SWEET7_18921
wait 0
goto @SWEET7_18897

:SWEET7_18921
set_player_control $player1 {state} False
if 
  not is_char_dead 81@
goto_if_false @SWEET7_18951
set_char_suffers_critical_hits 81@ {state} False

:SWEET7_18951
if 
  not is_char_dead 82@
goto_if_false @SWEET7_18974
set_char_suffers_critical_hits 82@ {state} False

:SWEET7_18974
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_18995
clear_char_tasks $sweet

:SWEET7_18995
switch_widescreen True
set_char_coordinates $scplayer {x} 816.8154 {y} -1075.3831 {z} 23.3516
set_char_heading $scplayer {heading} 277.0
set_fixed_camera_position 822.0925 {y} -1077.8781 {z} 23.6895 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 821.1437 {y} -1077.566 {z} 23.7335 {switchStyle} SwitchType.JumpCut
load_scene 803.9182 {y} -1078.626 {z} 23.3515
wait 1000
do_fade 1000 {direction} Fade.In

:SWEET7_19109
if 
  get_fading_status 
goto_if_false @SWEET7_19133
wait 0
goto @SWEET7_19109

:SWEET7_19133
53@ = 6
539@ = 1
TIMERA = 0
TIMERB = 0

:SWEET7_19161
if 
  53@ == 6
goto_if_false @SWEET7_19987
if 
  539@ > 0
goto_if_false @SWEET7_19411
if 
  537@ == 0
goto_if_false @SWEET7_19411
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_19411 {caseNum1} 1 {caseLabel1} @SWEET7_19278 {caseNum2} 2 {caseLabel2} @SWEET7_19292 {caseNum3} 3 {caseLabel3} @SWEET7_19351 {caseNum4} 4 {caseLabel4} @SWEET7_19372 {caseNum5} -1 {caseLabel5} @SWEET7_19411 {caseNum6} -1 {caseLabel6} @SWEET7_19411 {caseNum7} -1 {caseLabel7} @SWEET7_19411

:SWEET7_19278
539@ = 2
goto @SWEET7_19411

:SWEET7_19292
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_19337
if 
  not is_char_dead 98@
goto_if_false @SWEET7_19337
clear_char_tasks $sweet
task_turn_char_to_face_char $sweet {target} 98@

:SWEET7_19337
539@ = 3
goto @SWEET7_19411

:SWEET7_19351
534@ = 34
539@ = 4
goto @SWEET7_19411

:SWEET7_19372
534@ = 0
print_help 'TWAR661'
546@ = 1
539@ = 0
goto @SWEET7_19411

:SWEET7_19411
if 
  TIMERB > 10000
goto_if_false @SWEET7_19475
if 
  546@ == 1
goto_if_false @SWEET7_19475
clear_help 
print_help 'TWAR662'
546@ = 2
TIMERB = 0

:SWEET7_19475
if 
  546@ == 2
goto_if_false @SWEET7_19987
if 
  TIMERB > 8000
goto_if_false @SWEET7_19987
clear_help 
set_fixed_camera_position 891.9803 {y} -1068.343 {z} 23.6669 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 891.3828 {y} -1069.141 {z} 23.7373 {switchStyle} SwitchType.JumpCut
37@ = 1
if 
  75@ == 0
goto_if_false @SWEET7_19688
if 
  not is_car_dead 76@
goto_if_false @SWEET7_19688
if 
  not is_char_dead 101@
goto_if_false @SWEET7_19688
task_car_drive_to_coord 101@ {vehicle} 76@ {x} 875.3232 {y} -1073.502 {z} 23.3364 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
if 
  537@ == 0
goto_if_false @SWEET7_19681
534@ = 40

:SWEET7_19681
75@ = 1

:SWEET7_19688
if 
  not is_car_dead 76@
goto_if_false @SWEET7_19987
if 
  not is_char_dead 101@
goto_if_false @SWEET7_19987
if 
  locate_car_3d 76@ {x} 875.3232 {y} -1071.941 {z} 23.3364 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_19987
if 
  is_car_stopped 76@
goto_if_false @SWEET7_19987
53@ = 7
if 
  537@ == 0
goto_if_false @SWEET7_19816
545@ = 0

:SWEET7_19816
set_fixed_camera_position 871.9701 {y} -1069.5031 {z} 25.6673 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 872.7517 {y} -1070.042 {z} 25.353 {switchStyle} SwitchType.JumpCut
lock_car_doors 76@ {lockStatus} CarLock.Unlocked
set_car_proofs 76@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead 98@
goto_if_false @SWEET7_19980
99@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 869.1639 {y} -1071.619 {z} 25.2208 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} 892.7105 {y} -1077.929 {z} 23.2684 {speed} MoveState.Walk {time} 10000
close_sequence_task 99@
perform_sequence_task 98@ {sequence} 99@
clear_sequence_task 99@

:SWEET7_19980
TIMERA = 0

:SWEET7_19987
if 
  53@ == 7
goto_if_false @SWEET7_20131
if 
  TIMERA > 2000
goto_if_false @SWEET7_20131
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20115
102@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 873.9978 {y} -1077.988 {z} 23.3203 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} 833.1347 {y} -1095.187 {z} 22.8281 {speed} MoveState.Walk {time} 10000
close_sequence_task 102@
perform_sequence_task 101@ {sequence} 102@
clear_sequence_task 102@

:SWEET7_20115
clear_prints 
53@ = 8
539@ = 1

:SWEET7_20131
if 
  53@ == 8
goto_if_false @SWEET7_20337
if 
  539@ > 0
goto_if_false @SWEET7_20311
if 
  537@ == 0
goto_if_false @SWEET7_20311
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_20311 {caseNum1} 1 {caseLabel1} @SWEET7_20248 {caseNum2} 2 {caseLabel2} @SWEET7_20269 {caseNum3} 3 {caseLabel3} @SWEET7_20290 {caseNum4} -1 {caseLabel4} @SWEET7_20311 {caseNum5} -1 {caseLabel5} @SWEET7_20311 {caseNum6} -1 {caseLabel6} @SWEET7_20311 {caseNum7} -1 {caseLabel7} @SWEET7_20311

:SWEET7_20248
534@ = 41
539@ = 2
goto @SWEET7_20311

:SWEET7_20269
534@ = 42
539@ = 3
goto @SWEET7_20311

:SWEET7_20290
534@ = 0
539@ = 0
goto @SWEET7_20311

:SWEET7_20311
if 
  TIMERA > 8000
goto_if_false @SWEET7_20337
53@ = 10

:SWEET7_20337
if 
  53@ == 10
goto_if_false @SWEET7_20980
37@ = 0
539@ = 0
270@ = 99
set_char_coordinates $scplayer {x} 817.3972 {y} -1076.1639 {z} 23.1065
if 
  not is_char_dead 263@
goto_if_false @SWEET7_20442
set_char_coordinates 263@ {x} 820.5947 {y} -1074.517 {z} 23.1755
set_char_heading 263@ {heading} 176.0

:SWEET7_20442
if 
  not is_char_dead 264@
goto_if_false @SWEET7_20488
set_char_coordinates 264@ {x} 818.3846 {y} -1079.001 {z} 22.929
set_char_heading 264@ {heading} 291.0

:SWEET7_20488
if 
  not is_char_dead 98@
goto_if_false @SWEET7_20591
clear_char_tasks_immediately 98@
if 
  not is_char_in_any_car 98@
goto_if_false @SWEET7_20545
set_char_coordinates 98@ {x} 890.4531 {y} -1063.368 {z} 23.7342

:SWEET7_20545
if 
  is_char_in_any_car 98@
goto_if_false @SWEET7_20581
warp_char_from_car_to_coord 98@ {x} 890.4531 {y} -1063.368 {z} 23.7342

:SWEET7_20581
task_achieve_heading 98@ {heading} 84.0

:SWEET7_20591
set_char_heading $scplayer {heading} 255.0
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
remove_animation "SMOKING"
remove_animation "GRAVEYARD"
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20701
clear_char_tasks_immediately 101@
set_char_coordinates 101@ {x} 844.5107 {y} -1101.66 {z} 22.8516
task_achieve_heading 101@ {heading} 135.0
give_weapon_to_char 101@ {weaponType} WeaponType.Pistol {ammo} 2000
add_armour_to_char 101@ {amount} 50

:SWEET7_20701
if 
  not is_car_dead 76@
goto_if_false @SWEET7_20769
set_car_coordinates 76@ {x} 875.3232 {y} -1073.502 {z} 23.3364
set_car_heading 76@ {heading} 89.0
lock_car_doors 76@ {lockStatus} CarLock.Unlocked
set_car_proofs 76@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET7_20769
set_player_control $player1 {state} True
set_group_follow_status 260@ {state} True
if 
  not is_char_dead 263@
goto_if_false @SWEET7_20833
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_20833
set_group_member 260@ {handle} 263@
set_char_never_leaves_group 263@ {state} True

:SWEET7_20833
if 
  not is_char_dead 264@
goto_if_false @SWEET7_20883
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_20883
set_group_member 260@ {handle} 264@
set_char_never_leaves_group 264@ {state} True

:SWEET7_20883
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20912
set_char_decision_maker 101@ {handleOrTemplate} 93@
clear_char_tasks 101@

:SWEET7_20912
task_stay_in_same_place 101@ {state} True
53@ = 15
if 
  not is_char_dead 98@
goto_if_false @SWEET7_20957
40@ = add_blip_for_char 98@
change_blip_colour 40@ {color} BlipColor.Red

:SWEET7_20957
if 
  not is_car_dead 78@
goto_if_false @SWEET7_20978
delete_car 78@

:SWEET7_20978
clear_help 

:SWEET7_20980
if 
  53@ == 15
goto_if_false @SWEET7_21530
set_police_ignore_player $player1 {state} True
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21436
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_21131
84@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 832.3179 {y} -1081.627 {z} 22.9332 {speed} MoveState.Run {time} 10000
task_go_to_coord_while_shooting -1 {x} 833.9351 {y} -1101.9659 {z} 22.8281 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 84@
perform_sequence_task $sweet {sequence} 84@
clear_sequence_task 84@

:SWEET7_21131
if 
  not is_char_dead 81@
goto_if_false @SWEET7_21246
clear_char_tasks 81@
88@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 828.6603 {y} -1080.408 {z} 23.03 {speed} MoveState.Sprint {time} 10000
task_go_to_coord_while_shooting -1 {x} 832.5559 {y} -1104.067 {z} 22.8281 {speed} MoveState.Sprint {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 88@
perform_sequence_task 81@ {sequence} 88@
clear_sequence_task 88@

:SWEET7_21246
if 
  not is_char_dead 82@
goto_if_false @SWEET7_21361
clear_char_tasks 82@
90@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 832.2366 {y} -1077.225 {z} 23.1896 {speed} MoveState.Sprint {time} 10000
task_go_to_coord_while_shooting -1 {x} 835.7187 {y} -1097.325 {z} 22.8784 {speed} MoveState.Sprint {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 90@
perform_sequence_task 82@ {sequence} 90@
clear_sequence_task 90@

:SWEET7_21361
gosub @SWEET7_30356
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21436
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_21436
104@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $sweet
close_sequence_task 104@
perform_sequence_task 101@ {sequence} 104@
clear_sequence_task 104@

:SWEET7_21436
if 
  54@ == 1
goto_if_false @SWEET7_21496
if 
  not is_char_dead 97@
goto_if_false @SWEET7_21475
delete_char 97@

:SWEET7_21475
if 
  not is_char_dead 96@
goto_if_false @SWEET7_21496
delete_char 96@

:SWEET7_21496
TIMERB = 0
61@ = 1
539@ = 1
540@ = generate_random_int_in_range 0 {max} 3
clear_mission_audio MissionAudioSlot.Slot3

:SWEET7_21530
if 
  61@ == 1
goto_if_false @SWEET7_22126
if 
  539@ > 0
goto_if_false @SWEET7_21773
if 
  537@ == 0
goto_if_false @SWEET7_21773
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_21773 {caseNum1} 1 {caseLabel1} @SWEET7_21647 {caseNum2} 2 {caseLabel2} @SWEET7_21736 {caseNum3} -1 {caseLabel3} @SWEET7_21773 {caseNum4} -1 {caseLabel4} @SWEET7_21773 {caseNum5} -1 {caseLabel5} @SWEET7_21773 {caseNum6} -1 {caseLabel6} @SWEET7_21773 {caseNum7} -1 {caseLabel7} @SWEET7_21773

:SWEET7_21647
if 
  540@ == 0
goto_if_false @SWEET7_21672
534@ = 43

:SWEET7_21672
if 
  540@ == 1
goto_if_false @SWEET7_21697
534@ = 44

:SWEET7_21697
if 
  540@ == 1
goto_if_false @SWEET7_21722
534@ = 45

:SWEET7_21722
539@ = 2
goto @SWEET7_21773

:SWEET7_21736
print_now 'TWAR636' {time} 8000 {flag} 1
534@ = 0
539@ = 0
goto @SWEET7_21773

:SWEET7_21773
if 
  TIMERB > 6000
goto_if_false @SWEET7_21886
if 
  70@ == 0
goto_if_false @SWEET7_21886
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21886
clear_char_tasks 101@
task_play_anim 101@ {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 101@ {health} 0
70@ = 1
clear_prints 

:SWEET7_21886
if 
  TIMERB > 7000
goto_if_false @SWEET7_22126
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21931
clear_char_tasks 101@
task_die 101@

:SWEET7_21931
if 
  71@ == 0
goto_if_false @SWEET7_22005
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22005
clear_char_tasks $sweet
flush_route 
extend_route 872.7859 {y} -1100.792 {z} 22.8437
65@ = 1
task_follow_point_route $sweet {speed} MoveState.Run {mode} RouteMode.Once

:SWEET7_22005
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22061
clear_char_tasks 81@
flush_route 
extend_route 882.445 {y} -1102.041 {z} 22.8281
66@ = 1
task_follow_point_route 81@ {speed} MoveState.Sprint {mode} RouteMode.Once

:SWEET7_22061
if 
  not is_char_dead 82@
goto_if_false @SWEET7_22117
clear_char_tasks 82@
flush_route 
extend_route 888.5107 {y} -1099.9351 {z} 21.8918
67@ = 1
task_follow_point_route 82@ {speed} MoveState.Sprint {mode} RouteMode.Once

:SWEET7_22117
61@ = 2
clear_prints 

:SWEET7_22126
if 
  71@ == 0
goto_if_false @SWEET7_22263
if 
  65@ == 1
goto_if_false @SWEET7_22263
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22263
if 
  locate_char_any_means_3d $sweet {x} 872.7859 {y} -1100.792 {z} 22.8437 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22263
clear_char_tasks $sweet
task_go_straight_to_coord $sweet {x} 875.9534 {y} -1079.515 {z} 23.3203 {speed} MoveState.Run {time} 10000
65@ = 2

:SWEET7_22263
if 
  66@ == 1
goto_if_false @SWEET7_22382
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22382
if 
  locate_char_any_means_3d 81@ {x} 882.445 {y} -1102.041 {z} 22.8281 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22382
clear_char_tasks 81@
task_go_straight_to_coord 81@ {x} 881.3811 {y} -1088.896 {z} 23.1974 {speed} MoveState.Run {time} 10000
66@ = 2

:SWEET7_22382
if 
  67@ == 1
goto_if_false @SWEET7_22501
if 
  not is_char_dead 82@
goto_if_false @SWEET7_22501
if 
  locate_char_any_means_3d 82@ {x} 888.5107 {y} -1099.9351 {z} 21.8918 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22501
clear_char_tasks 82@
task_go_straight_to_coord 82@ {x} 893.6727 {y} -1077.295 {z} 23.2759 {speed} MoveState.Sprint {time} 10000
67@ = 2

:SWEET7_22501
if 
  61@ > 0
goto_if_false @SWEET7_22975
if 
  71@ == 0
goto_if_false @SWEET7_22683
if 
  64@ == 0
goto_if_false @SWEET7_22683
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22683
if 
  locate_char_any_means_3d $sweet {x} 875.9534 {y} -1079.515 {z} 23.3203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22683
clear_char_tasks $sweet
if 
  not is_char_dead 105@
goto_if_false @SWEET7_22676
86@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 105@
close_sequence_task 86@
perform_sequence_task $sweet {sequence} 86@
clear_sequence_task 86@

:SWEET7_22676
64@ = 1

:SWEET7_22683
if 
  62@ == 0
goto_if_false @SWEET7_22829
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22829
if 
  locate_char_any_means_3d 81@ {x} 881.3811 {y} -1088.896 {z} 23.1974 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22829
clear_char_tasks 81@
if 
  not is_char_dead 107@
goto_if_false @SWEET7_22822
89@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 107@
close_sequence_task 89@
perform_sequence_task 81@ {sequence} 89@
clear_sequence_task 89@

:SWEET7_22822
62@ = 1

:SWEET7_22829
if 
  63@ == 0
goto_if_false @SWEET7_22975
if 
  not is_char_dead 82@
goto_if_false @SWEET7_22975
if 
  locate_char_any_means_3d 82@ {x} 893.6727 {y} -1077.295 {z} 23.2759 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22975
clear_char_tasks 82@
if 
  not is_char_dead 109@
goto_if_false @SWEET7_22968
91@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 109@
close_sequence_task 91@
perform_sequence_task 82@ {sequence} 91@
clear_sequence_task 91@

:SWEET7_22968
63@ = 1

:SWEET7_22975
if 
  62@ == 1
goto_if_false @SWEET7_23061
if 
  is_char_dead 107@
goto_if_false @SWEET7_23061
if 
  not is_char_dead 111@
goto_if_false @SWEET7_23054
if 
  not is_char_dead 81@
goto_if_false @SWEET7_23054
clear_char_tasks 81@
task_kill_char_on_foot 81@ {target} 111@

:SWEET7_23054
62@ = 2

:SWEET7_23061
if 
  63@ == 1
goto_if_false @SWEET7_23147
if 
  is_char_dead 109@
goto_if_false @SWEET7_23140
if 
  not is_char_dead 112@
goto_if_false @SWEET7_23140
if 
  not is_char_dead 82@
goto_if_false @SWEET7_23140
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} 112@

:SWEET7_23140
63@ = 2

:SWEET7_23147
if 
  71@ == 0
goto_if_false @SWEET7_23269
if 
  132@ == 0
goto_if_false @SWEET7_23269
if 
  64@ == 1
goto_if_false @SWEET7_23269
if 
  is_char_dead 105@
goto_if_false @SWEET7_23269
if 
  not is_char_dead 113@
goto_if_false @SWEET7_23262
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_23262
clear_char_tasks $sweet
task_kill_char_on_foot $sweet {target} 113@

:SWEET7_23262
64@ = 2

:SWEET7_23269
if 
  62@ == 2
goto_if_false @SWEET7_23355
if 
  is_char_dead 111@
goto_if_false @SWEET7_23355
if 
  not is_char_dead 81@
goto_if_false @SWEET7_23355
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23348
clear_char_tasks 81@
task_kill_char_on_foot 81@ {target} 98@

:SWEET7_23348
62@ = 3

:SWEET7_23355
if 
  63@ == 2
goto_if_false @SWEET7_23441
if 
  is_char_dead 112@
goto_if_false @SWEET7_23441
if 
  not is_char_dead 82@
goto_if_false @SWEET7_23441
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23434
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} 98@

:SWEET7_23434
63@ = 3

:SWEET7_23441
if 
  71@ == 0
goto_if_false @SWEET7_23563
if 
  132@ == 0
goto_if_false @SWEET7_23563
if 
  64@ == 2
goto_if_false @SWEET7_23563
if 
  is_char_dead 113@
goto_if_false @SWEET7_23563
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_23563
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23556
clear_char_tasks $sweet
task_kill_char_on_foot $sweet {target} 98@

:SWEET7_23556
64@ = 3

:SWEET7_23563
if 
  59@ == 1
goto_if_false @SWEET7_23771
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23771
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_23685
set_char_allowed_to_duck 98@ {state} True
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
59@ = 2

:SWEET7_23685
if 
  60@ == 1
goto_if_false @SWEET7_23771
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_23771
gosub @SWEET7_30054
60@ = 2

:SWEET7_23771
if 
  59@ == 3
goto_if_false @SWEET7_24008
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24008
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_23922
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
if 
  not is_char_dead 112@
goto_if_false @SWEET7_23915
clear_char_tasks 112@
task_kill_char_on_foot_while_ducking 112@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50

:SWEET7_23915
59@ = 4

:SWEET7_23922
if 
  60@ == 2
goto_if_false @SWEET7_24008
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24008
gosub @SWEET7_30054
60@ = 3

:SWEET7_24008
if 
  59@ == 5
goto_if_false @SWEET7_24123
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24123
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24123
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
59@ = 6

:SWEET7_24123
if 
  59@ == 7
goto_if_false @SWEET7_24238
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24238
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24238
clear_char_tasks 98@
task_stay_in_same_place 98@ {state} False
task_kill_char_on_foot 98@ {target} $scplayer
59@ = 8

:SWEET7_24238
if 
  53@ == 20
goto_if_false @SWEET7_24748
if 
  53@ <> 25
goto_if_false @SWEET7_24363
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24363
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_24363
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1
TIMERA = 0

:SWEET7_24363
if 
  53@ <> 25
goto_if_false @SWEET7_24451
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24451
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_24451
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24451
if 
  53@ <> 25
goto_if_false @SWEET7_24527
if 
  is_char_dead 105@
goto_if_false @SWEET7_24527
56@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24527
if 
  53@ <> 25
goto_if_false @SWEET7_24603
if 
  is_char_dead 107@
goto_if_false @SWEET7_24603
57@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24603
if 
  53@ <> 25
goto_if_false @SWEET7_24679
if 
  is_char_dead 109@
goto_if_false @SWEET7_24679
58@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24679
if 
  53@ <> 25
goto_if_false @SWEET7_24748
if 
  is_char_dead 111@
goto_if_false @SWEET7_24748
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24748
if 
  53@ == 25
goto_if_false @SWEET7_24972
if 
  59@ == 2
goto_if_false @SWEET7_24972
if 
  53@ <> 30
goto_if_false @SWEET7_24884
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24884
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_24884
53@ = 30
139@ += 1
gosub @SWEET7_29974
59@ = 3
60@ = 2

:SWEET7_24884
if 
  53@ <> 30
goto_if_false @SWEET7_24972
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24972
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_24972
53@ = 30
139@ += 1
gosub @SWEET7_29974
59@ = 3
60@ = 2

:SWEET7_24972
if 
  53@ == 30
goto_if_false @SWEET7_25182
if 
  59@ == 4
goto_if_false @SWEET7_25182
if 
  53@ <> 35
goto_if_false @SWEET7_25101
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25101
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_25101
53@ = 35
139@ += 1
gosub @SWEET7_29974
59@ = 5

:SWEET7_25101
if 
  53@ <> 35
goto_if_false @SWEET7_25182
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25182
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_25182
53@ = 35
139@ += 1
gosub @SWEET7_29974
59@ = 5

:SWEET7_25182
if 
  53@ == 35
goto_if_false @SWEET7_25406
if 
  59@ == 6
goto_if_false @SWEET7_25406
if 
  53@ <> 40
goto_if_false @SWEET7_25318
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25318
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SWEET7_25318
53@ = 40
139@ += 1
gosub @SWEET7_29974
59@ = 7
53@ = 50

:SWEET7_25318
if 
  53@ <> 40
goto_if_false @SWEET7_25406
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25406
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_25406
53@ = 40
139@ += 1
gosub @SWEET7_29974
59@ = 7
53@ = 50

:SWEET7_25406
if 
  53@ == 50
goto_if_false @SWEET7_25671
77@ = create_car 492 {x} 960.0995 {y} -1032.099 {z} 29.0858
set_car_heading 77@ {heading} 180.4729
change_car_colour 77@ {color1} 0 {color2} 2
set_can_burst_car_tyres 77@ {state} False
122@ = create_char_inside_car 77@ {pedType} PedType.CivMale {modelId} 103
set_char_suffers_critical_hits 122@ {state} False
set_char_decision_maker 122@ {handleOrTemplate} 93@
117@ = create_char_as_passenger 77@ {pedType} PedType.Mission1 {modelId} 103 {seat} SeatId.RearLeft
set_char_decision_maker 117@ {handleOrTemplate} 93@
give_weapon_to_char 117@ {weaponType} WeaponType.Shotgun {ammo} 2000
set_char_shoot_rate 117@ {rate} 15
119@ = create_char_as_passenger 77@ {pedType} PedType.Mission1 {modelId} 102 {seat} SeatId.RearRight
set_char_decision_maker 119@ {handleOrTemplate} 93@
give_weapon_to_char 119@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 119@ {rate} 15
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
lock_car_doors 77@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 122@
goto_if_false @SWEET7_25671
if 
  not is_car_dead 77@
goto_if_false @SWEET7_25671
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 955.9623 {y} -1100.14 {z} 22.7516 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
53@ = 55

:SWEET7_25671
if 
  277@ == 0
goto_if_false @SWEET7_25767
if and
  53@ > 50
  999 > 53@
goto_if_false @SWEET7_25767
if 
  is_char_dead 122@
goto_if_false @SWEET7_25767
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25760
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer

:SWEET7_25760
277@ = 1

:SWEET7_25767
if 
  53@ == 55
goto_if_false @SWEET7_25954
if 
  not is_char_dead 122@
goto_if_false @SWEET7_25954
if 
  not is_car_dead 77@
goto_if_false @SWEET7_25954
if 
  locate_car_3d 77@ {x} 955.9623 {y} -1100.14 {z} 22.7516 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_25954
if 
  not is_char_dead 122@
goto_if_false @SWEET7_25954
if 
  not is_car_dead 77@
goto_if_false @SWEET7_25954
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 929.9791 {y} -1103.645 {z} 22.8506 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
53@ = 60
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25954

:SWEET7_25954
if 
  53@ == 60
goto_if_false @SWEET7_26302
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26302
if 
  locate_car_3d 77@ {x} 929.9791 {y} -1103.645 {z} 22.8506 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_26302
if 
  is_car_stopped 77@
goto_if_false @SWEET7_26302
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26140
clear_char_tasks 98@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26140
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26140
539@ = 1
540@ = generate_random_int_in_range 0 {max} 3
task_enter_car_as_passenger 98@ {vehicle} 77@ {time} -2 {seat} SeatId.BikeRear
53@ = 65

:SWEET7_26140
if 
  not is_char_dead 117@
goto_if_false @SWEET7_26221
118@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 916.3773 {y} -1107.937 {z} 23.1694 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 118@
perform_sequence_task 117@ {sequence} 118@
clear_sequence_task 118@
53@ = 65

:SWEET7_26221
if 
  not is_char_dead 119@
goto_if_false @SWEET7_26302
120@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 918.4471 {y} -1094.806 {z} 23.4897 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 120@
perform_sequence_task 119@ {sequence} 120@
clear_sequence_task 120@
53@ = 65

:SWEET7_26302
if 
  53@ == 65
goto_if_false @SWEET7_26913
if 
  539@ > 0
goto_if_false @SWEET7_26545
if 
  537@ == 0
goto_if_false @SWEET7_26545
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_26545 {caseNum1} 1 {caseLabel1} @SWEET7_26419 {caseNum2} 2 {caseLabel2} @SWEET7_26508 {caseNum3} -1 {caseLabel3} @SWEET7_26545 {caseNum4} -1 {caseLabel4} @SWEET7_26545 {caseNum5} -1 {caseLabel5} @SWEET7_26545 {caseNum6} -1 {caseLabel6} @SWEET7_26545 {caseNum7} -1 {caseLabel7} @SWEET7_26545

:SWEET7_26419
if 
  540@ == 0
goto_if_false @SWEET7_26444
534@ = 46

:SWEET7_26444
if 
  540@ == 1
goto_if_false @SWEET7_26469
534@ = 47

:SWEET7_26469
if 
  540@ == 2
goto_if_false @SWEET7_26494
534@ = 48

:SWEET7_26494
539@ = 2
goto @SWEET7_26545

:SWEET7_26508
534@ = 0
print_now 'TWAR626' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_26545

:SWEET7_26545
if 
  is_char_dead 98@
goto_if_false @SWEET7_26639
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26639
if 
  not is_char_dead 122@
goto_if_false @SWEET7_26639
clear_char_tasks 122@
103@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 103@
perform_sequence_task 122@ {sequence} 103@
clear_sequence_task 103@
53@ = 90

:SWEET7_26639
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26913
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26913
if 
  not is_char_dead 122@
goto_if_false @SWEET7_26913
if 
  is_char_sitting_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_26913
remove_blip 40@
set_car_temp_action 77@ {actionId} TempAction.Reverse {time} 6000
lock_car_doors 77@ {lockStatus} CarLock.LockoutPlayerOnly
set_char_cant_be_dragged_out 98@ {state} True
set_char_cant_be_dragged_out 98@ {state} True
set_char_stay_in_car_when_jacked 98@ {state} True
53@ = 70
TIMERA = 0
clear_prints 
539@ = 11
540@ = generate_random_int_in_range 0 {max} 4
if 
  not is_car_dead 79@
goto_if_false @SWEET7_26811
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly

:SWEET7_26811
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_26913
39@ = add_blip_for_char $sweet
set_blip_as_friendly 39@ {state} True
clear_char_tasks $sweet
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 930.8062 {y} -1114.459 {z} 23.094 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 30000 {seat} -1
close_sequence_task 121@
perform_sequence_task $sweet {sequence} 121@
clear_sequence_task 121@
132@ = 1

:SWEET7_26913
if 
  53@ == 70
goto_if_false @SWEET7_27275
if 
  539@ > 10
goto_if_false @SWEET7_27181
if 
  537@ == 0
goto_if_false @SWEET7_27181
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27181 {caseNum1} 11 {caseLabel1} @SWEET7_27030 {caseNum2} 12 {caseLabel2} @SWEET7_27144 {caseNum3} -1 {caseLabel3} @SWEET7_27181 {caseNum4} -1 {caseLabel4} @SWEET7_27181 {caseNum5} -1 {caseLabel5} @SWEET7_27181 {caseNum6} -1 {caseLabel6} @SWEET7_27181 {caseNum7} -1 {caseLabel7} @SWEET7_27181

:SWEET7_27030
if 
  540@ == 0
goto_if_false @SWEET7_27055
534@ = 49

:SWEET7_27055
if 
  540@ == 1
goto_if_false @SWEET7_27080
534@ = 50

:SWEET7_27080
if 
  540@ == 2
goto_if_false @SWEET7_27105
534@ = 51

:SWEET7_27105
if 
  540@ == 3
goto_if_false @SWEET7_27130
534@ = 52

:SWEET7_27130
539@ = 12
goto @SWEET7_27181

:SWEET7_27144
534@ = 0
print_now 'TWAR629' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_27181

:SWEET7_27181
if 
  TIMERA > 5000
goto_if_false @SWEET7_27275
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27275
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27275
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 1952.432 {y} -1136.238 {z} 24.621 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
clear_prints 
53@ = 75

:SWEET7_27275
if 
  53@ == 75
goto_if_false @SWEET7_27814
if 
  539@ > 10
goto_if_false @SWEET7_27545
if 
  537@ == 0
goto_if_false @SWEET7_27545
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27545 {caseNum1} 11 {caseLabel1} @SWEET7_27392 {caseNum2} 12 {caseLabel2} @SWEET7_27506 {caseNum3} -1 {caseLabel3} @SWEET7_27545 {caseNum4} -1 {caseLabel4} @SWEET7_27545 {caseNum5} -1 {caseLabel5} @SWEET7_27545 {caseNum6} -1 {caseLabel6} @SWEET7_27545 {caseNum7} -1 {caseLabel7} @SWEET7_27545

:SWEET7_27392
if 
  540@ == 0
goto_if_false @SWEET7_27417
534@ = 49

:SWEET7_27417
if 
  540@ == 1
goto_if_false @SWEET7_27442
534@ = 50

:SWEET7_27442
if 
  540@ == 2
goto_if_false @SWEET7_27467
534@ = 51

:SWEET7_27467
if 
  540@ == 3
goto_if_false @SWEET7_27492
534@ = 52

:SWEET7_27492
539@ = 12
goto @SWEET7_27545

:SWEET7_27506
534@ = 0
clear_prints 
print_now 'TWAR629' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_27545

:SWEET7_27545
if 
  not is_char_dead 98@
goto_if_false @SWEET7_27814
if 
  locate_char_any_means_3d 98@ {x} 1952.432 {y} -1136.238 {z} 24.621 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_27668
53@ = 80
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27668
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27668
clear_char_tasks 122@
task_car_drive_wander 122@ {vehicle} 77@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars

:SWEET7_27668
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27814
if 
  not is_char_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_27741
if 
  73@ == 0
goto_if_false @SWEET7_27741
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer
73@ = 1

:SWEET7_27741
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27814
if 
  not is_char_in_car 122@ {vehicle} 77@
goto_if_false @SWEET7_27814
if 
  74@ == 0
goto_if_false @SWEET7_27814
clear_char_tasks 122@
task_kill_char_on_foot 122@ {target} $scplayer
74@ = 1

:SWEET7_27814
if 
  53@ == 80
goto_if_false @SWEET7_28086
if 
  not is_car_dead 77@
goto_if_false @SWEET7_28086
if 
  not is_char_dead 98@
goto_if_false @SWEET7_28086
if 
  not locate_char_any_means_char_3d $scplayer {target} 98@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SWEET7_27940
if 
  not is_car_on_screen 77@
goto_if_false @SWEET7_27940
540@ = generate_random_int_in_range 0 {max} 3
539@ = 61
53@ = 999

:SWEET7_27940
if 
  not is_car_dead 77@
goto_if_false @SWEET7_28013
if 
  not is_char_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_28013
if 
  73@ == 0
goto_if_false @SWEET7_28013
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer
73@ = 1

:SWEET7_28013
if 
  not is_char_dead 122@
goto_if_false @SWEET7_28086
if 
  not is_char_in_car 122@ {vehicle} 77@
goto_if_false @SWEET7_28086
if 
  74@ == 0
goto_if_false @SWEET7_28086
clear_char_tasks 122@
task_kill_char_on_foot 122@ {target} $scplayer
74@ = 1

:SWEET7_28086
if 
  71@ == 1
goto_if_false @SWEET7_28420
gosub @SWEET7_31488
if 
  539@ > 0
goto_if_false @SWEET7_28289
if 
  537@ == 0
goto_if_false @SWEET7_28289
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28289 {caseNum1} 1 {caseLabel1} @SWEET7_28210 {caseNum2} 2 {caseLabel2} @SWEET7_28231 {caseNum3} 3 {caseLabel3} @SWEET7_28252 {caseNum4} -1 {caseLabel4} @SWEET7_28289 {caseNum5} -1 {caseLabel5} @SWEET7_28289 {caseNum6} -1 {caseLabel6} @SWEET7_28289 {caseNum7} -1 {caseLabel7} @SWEET7_28289

:SWEET7_28210
534@ = 67
539@ = 2
goto @SWEET7_28289

:SWEET7_28231
534@ = 68
539@ = 3
goto @SWEET7_28289

:SWEET7_28252
534@ = 0
print_now 'TWAR628' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_28289

:SWEET7_28289
if 
  123@ == 0
goto_if_false @SWEET7_28420
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_28420
if 
  not is_car_dead 79@
goto_if_false @SWEET7_28420
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
clear_prints 
print_now 'TWAR644' {time} 6000 {flag} 1
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_28398
lock_car_doors 79@ {lockStatus} CarLock.Unlocked

:SWEET7_28398
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
71@ = 4

:SWEET7_28420
if 
  132@ == 1
goto_if_false @SWEET7_28529
if 
  not is_car_dead 79@
goto_if_false @SWEET7_28529
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_28529
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_28529
clear_prints 
539@ = 1
540@ = generate_random_int_in_range 0 {max} 2
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
set_car_health 79@ {health} 1000
132@ = 2

:SWEET7_28529
if 
  132@ == 2
goto_if_false @SWEET7_28888
if 
  539@ > 0
goto_if_false @SWEET7_28749
if 
  537@ == 0
goto_if_false @SWEET7_28749
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28749 {caseNum1} 1 {caseLabel1} @SWEET7_28646 {caseNum2} 2 {caseLabel2} @SWEET7_28710 {caseNum3} -1 {caseLabel3} @SWEET7_28749 {caseNum4} -1 {caseLabel4} @SWEET7_28749 {caseNum5} -1 {caseLabel5} @SWEET7_28749 {caseNum6} -1 {caseLabel6} @SWEET7_28749 {caseNum7} -1 {caseLabel7} @SWEET7_28749

:SWEET7_28646
if 
  540@ == 0
goto_if_false @SWEET7_28671
534@ = 53

:SWEET7_28671
if 
  540@ == 1
goto_if_false @SWEET7_28696
534@ = 54

:SWEET7_28696
539@ = 2
goto @SWEET7_28749

:SWEET7_28710
534@ = 0
clear_prints 
print_now 'TWAR640' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_28749

:SWEET7_28749
if 
  not is_car_dead 79@
goto_if_false @SWEET7_28888
if 
  is_char_sitting_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_28888
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
remove_blip 39@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_28860
40@ = add_blip_for_char 98@
clear_prints 
539@ = 1
540@ = generate_random_int_in_range 0 {max} 2
44@ = 0

:SWEET7_28860
276@ = 1
132@ = 3
275@ = 1
544@ = 1

:SWEET7_28888
if 
  132@ == 3
goto_if_false @SWEET7_29328
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29328
if 
  not is_car_dead 79@
goto_if_false @SWEET7_29328
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29157
if 
  539@ > 0
goto_if_false @SWEET7_29157
if 
  537@ == 0
goto_if_false @SWEET7_29157
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29157 {caseNum1} 1 {caseLabel1} @SWEET7_29056 {caseNum2} 2 {caseLabel2} @SWEET7_29120 {caseNum3} -1 {caseLabel3} @SWEET7_29157 {caseNum4} -1 {caseLabel4} @SWEET7_29157 {caseNum5} -1 {caseLabel5} @SWEET7_29157 {caseNum6} -1 {caseLabel6} @SWEET7_29157 {caseNum7} -1 {caseLabel7} @SWEET7_29157

:SWEET7_29056
if 
  540@ == 0
goto_if_false @SWEET7_29081
534@ = 55

:SWEET7_29081
if 
  540@ == 1
goto_if_false @SWEET7_29106
534@ = 56

:SWEET7_29106
539@ = 2
goto @SWEET7_29157

:SWEET7_29120
534@ = 0
print_now 'TWAR641' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_29157

:SWEET7_29157
if 
  44@ == 0
goto_if_false @SWEET7_29239
if 
  not is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29239
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
remove_blip 40@
clear_prints 
print_now 'TWAR643' {time} 6000 {flag} 1
44@ = 1

:SWEET7_29239
if 
  44@ == 1
goto_if_false @SWEET7_29328
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29328
remove_blip 43@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29321
40@ = add_blip_for_char 98@
print_now 'TWAR641' {time} 6000 {flag} 1

:SWEET7_29321
44@ = 0

:SWEET7_29328
if 
  275@ == 1
goto_if_false @SWEET7_29473
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_29473
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29473
if 
  locate_char_any_means_char_2d $sweet {target} 98@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SWEET7_29473
clear_char_tasks $sweet
task_drive_by $sweet {targetChar} 98@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
275@ = 2
544@ = 1
540@ = generate_random_int_in_range 0 {max} 4

:SWEET7_29473
if 
  275@ == 2
goto_if_false @SWEET7_29816
if 
  544@ > 0
goto_if_false @SWEET7_29741
if 
  537@ == 0
goto_if_false @SWEET7_29741
switch_start 544@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29741 {caseNum1} 1 {caseLabel1} @SWEET7_29590 {caseNum2} 2 {caseLabel2} @SWEET7_29704 {caseNum3} -1 {caseLabel3} @SWEET7_29741 {caseNum4} -1 {caseLabel4} @SWEET7_29741 {caseNum5} -1 {caseLabel5} @SWEET7_29741 {caseNum6} -1 {caseLabel6} @SWEET7_29741 {caseNum7} -1 {caseLabel7} @SWEET7_29741

:SWEET7_29590
if 
  540@ == 0
goto_if_false @SWEET7_29615
534@ = 57

:SWEET7_29615
if 
  540@ == 1
goto_if_false @SWEET7_29640
534@ = 58

:SWEET7_29640
if 
  540@ == 2
goto_if_false @SWEET7_29665
534@ = 59

:SWEET7_29665
if 
  540@ == 3
goto_if_false @SWEET7_29690
534@ = 60

:SWEET7_29690
544@ = 2
goto @SWEET7_29741

:SWEET7_29704
534@ = 0
print_now 'TWAR649' {time} 6000 {flag} 1
544@ = 0
goto @SWEET7_29741

:SWEET7_29741
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_29816
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29816
if 
  not locate_char_any_means_char_2d $sweet {target} 98@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SWEET7_29816
clear_char_tasks $sweet
275@ = 1

:SWEET7_29816
if 
  276@ == 1
goto_if_false @SWEET7_29896
if 
  not locate_char_any_means_3d $scplayer {x} 875.3232 {y} -1071.941 {z} 23.3364 {xRadius} 400.0 {yRadius} 400.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SWEET7_29896
gosub @SWEET7_31914
276@ = 2

:SWEET7_29896
if 
  279@ == 1
goto_if_false @SWEET7_29967
if 
  TIMERB > 6000
goto_if_false @SWEET7_29967
clear_help 
print_help 'TWAR801'
279@ = 2
280@ = 1
TIMERB = 0

:SWEET7_29967
goto @SWEET7_4959

:SWEET7_29974
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30052
100@ = open_sequence_task 
task_toggle_ped_threat_scanner -1 {onFoot} False {inCar} False {duringScriptTask} False
task_go_straight_to_coord -1 {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {speed} MoveState.Sprint {time} -2
close_sequence_task 100@
perform_sequence_task 98@ {sequence} 100@
clear_sequence_task 100@

:SWEET7_30052
return 

:SWEET7_30054
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30146
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 170@(139@,10f) {y} 180@(139@,10f) {z} 190@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 105@ {sequence} 106@
clear_sequence_task 106@

:SWEET7_30146
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30252
108@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 200@(139@,10f) {y} 210@(139@,10f) {z} 220@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 108@
perform_sequence_task 107@ {sequence} 108@
clear_sequence_task 108@

:SWEET7_30252
if 
  not is_char_dead 109@
goto_if_false @SWEET7_30354
set_follow_node_threshold_distance 109@ {range} 150.0
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 230@(139@,10f) {y} 240@(139@,10f) {z} 250@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@

:SWEET7_30354
return 

:SWEET7_30356
53@ = 20
54@ = 1
279@ = 1
TIMERB = 0
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30410
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30410
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30436
give_weapon_to_char 107@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30436
if 
  not is_char_dead 109@
goto_if_false @SWEET7_30462
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30462
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30488
give_weapon_to_char 98@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30488
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30629
100@ = open_sequence_task 
if 
  139@ == 3
goto_if_false @SWEET7_30550
task_go_straight_to_coord -1 {x} 889.4055 {y} -1057.0601 {z} 24.0241 {speed} MoveState.Sprint {time} -2

:SWEET7_30550
if 
  3 > 139@
goto_if_false @SWEET7_30591
task_go_straight_to_coord -1 {x} 889.4055 {y} -1057.0601 {z} 24.0241 {speed} MoveState.Sprint {time} -2

:SWEET7_30591
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 100@
perform_sequence_task 98@ {sequence} 100@
clear_sequence_task 100@

:SWEET7_30629
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30725
set_follow_node_threshold_distance 105@ {range} 150.0
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 884.8275 {y} -1057.9969 {z} 24.8115 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 105@ {sequence} 106@
clear_sequence_task 106@

:SWEET7_30725
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30835
set_follow_node_threshold_distance 107@ {range} 150.0
108@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 880.5971 {y} -1057.468 {z} 25.9345 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 108@
perform_sequence_task 107@ {sequence} 108@
clear_sequence_task 108@

:SWEET7_30835
if 
  not is_char_dead 109@
goto_if_false @SWEET7_30931
set_follow_node_threshold_distance 109@ {range} 150.0
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 881.8948 {y} -1061.774 {z} 24.2952 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@

:SWEET7_30931
if 
  not is_char_dead 111@
goto_if_false @SWEET7_31000
set_follow_node_threshold_distance 111@ {range} 150.0
114@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 114@
perform_sequence_task 111@ {sequence} 114@
clear_sequence_task 114@

:SWEET7_31000
if 
  not is_char_dead 112@
goto_if_false @SWEET7_31062
set_follow_node_threshold_distance 112@ {range} 150.0
115@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 115@
perform_sequence_task 112@ {sequence} 115@
clear_sequence_task 115@

:SWEET7_31062
if 
  not is_char_dead 113@
goto_if_false @SWEET7_31124
set_follow_node_threshold_distance 113@ {range} 150.0
116@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 116@
perform_sequence_task 113@ {sequence} 116@
clear_sequence_task 116@

:SWEET7_31124
return 

:SWEET7_31126
if 
  not is_char_dead 105@
goto_if_false @SWEET7_31171
45@ = add_blip_for_char 105@
change_blip_scale 45@ {size} 2
123@ += 1
124@ = 1

:SWEET7_31171
if 
  not is_char_dead 107@
goto_if_false @SWEET7_31216
46@ = add_blip_for_char 107@
change_blip_scale 46@ {size} 2
123@ += 1
125@ = 1

:SWEET7_31216
if 
  not is_char_dead 109@
goto_if_false @SWEET7_31261
47@ = add_blip_for_char 109@
change_blip_scale 47@ {size} 2
123@ += 1
126@ = 1

:SWEET7_31261
if 
  not is_char_dead 111@
goto_if_false @SWEET7_31306
48@ = add_blip_for_char 111@
change_blip_scale 48@ {size} 2
123@ += 1
127@ = 1

:SWEET7_31306
if 
  not is_char_dead 112@
goto_if_false @SWEET7_31351
49@ = add_blip_for_char 112@
change_blip_scale 49@ {size} 2
123@ += 1
128@ = 1

:SWEET7_31351
if 
  not is_char_dead 113@
goto_if_false @SWEET7_31396
50@ = add_blip_for_char 113@
change_blip_scale 50@ {size} 2
123@ += 1
129@ = 1

:SWEET7_31396
if 
  not is_char_dead 117@
goto_if_false @SWEET7_31441
51@ = add_blip_for_char 117@
change_blip_scale 51@ {size} 2
123@ += 1
130@ = 1

:SWEET7_31441
if 
  not is_char_dead 119@
goto_if_false @SWEET7_31486
52@ = add_blip_for_char 119@
change_blip_scale 52@ {size} 2
123@ += 1
131@ = 1

:SWEET7_31486
return 

:SWEET7_31488
if 
  124@ == 1
goto_if_false @SWEET7_31541
if 
  is_char_dead 105@
goto_if_false @SWEET7_31541
remove_blip 45@
123@ -= 1
124@ = 2

:SWEET7_31541
if 
  125@ == 1
goto_if_false @SWEET7_31594
if 
  is_char_dead 107@
goto_if_false @SWEET7_31594
remove_blip 46@
123@ -= 1
125@ = 2

:SWEET7_31594
if 
  126@ == 1
goto_if_false @SWEET7_31647
if 
  is_char_dead 109@
goto_if_false @SWEET7_31647
remove_blip 47@
123@ -= 1
126@ = 2

:SWEET7_31647
if 
  127@ == 1
goto_if_false @SWEET7_31700
if 
  is_char_dead 111@
goto_if_false @SWEET7_31700
remove_blip 48@
123@ -= 1
127@ = 2

:SWEET7_31700
if 
  128@ == 1
goto_if_false @SWEET7_31753
if 
  is_char_dead 112@
goto_if_false @SWEET7_31753
123@ -= 1
remove_blip 49@
128@ = 2

:SWEET7_31753
if 
  129@ == 1
goto_if_false @SWEET7_31806
if 
  is_char_dead 113@
goto_if_false @SWEET7_31806
remove_blip 50@
123@ -= 1
129@ = 2

:SWEET7_31806
if 
  130@ == 1
goto_if_false @SWEET7_31859
if 
  is_char_dead 117@
goto_if_false @SWEET7_31859
remove_blip 51@
123@ -= 1
130@ = 2

:SWEET7_31859
if 
  131@ == 1
goto_if_false @SWEET7_31912
if 
  is_char_dead 119@
goto_if_false @SWEET7_31912
remove_blip 52@
123@ -= 1
131@ = 2

:SWEET7_31912
return 

:SWEET7_31914
if 
  not is_car_dead 79@
goto_if_false @SWEET7_32010
if 
  not is_char_dead 263@
goto_if_false @SWEET7_31970
if 
  not is_char_sitting_in_car 263@ {vehicle} 79@
goto_if_false @SWEET7_31970
mark_char_as_no_longer_needed 263@

:SWEET7_31970
if 
  not is_char_dead 264@
goto_if_false @SWEET7_32010
if 
  not is_char_sitting_in_car 264@ {vehicle} 79@
goto_if_false @SWEET7_32010
mark_char_as_no_longer_needed 264@

:SWEET7_32010
if 
  not is_char_dead 98@
goto_if_false @SWEET7_32066
if 
  not is_car_dead 77@
goto_if_false @SWEET7_32066
if 
  not is_char_sitting_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_32066
mark_car_as_no_longer_needed 77@

:SWEET7_32066
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 117@
mark_char_as_no_longer_needed 119@
mark_char_as_no_longer_needed 96@
mark_char_as_no_longer_needed 97@
mark_char_as_no_longer_needed 105@
mark_char_as_no_longer_needed 107@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 112@
mark_char_as_no_longer_needed 113@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 78@
return 

:SWEET7_32138
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET7_32156
281@ = get_int_stat StatId.Respect
281@ = get_int_stat StatId.Respect
register_mission_passed 'SWEET_7'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_sweet_mission_counter += 1
remove_blip $sweet_contact_blip
set_police_ignore_player $player1 {state} False
return 

:SWEET7_32237
set_everyone_ignore_player $player1 {state} False
switch_roads_on 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
switch_ped_roads_on 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 35@
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 36@
clear_mission_audio MissionAudioSlot.Slot3
clear_help 
$timer_mobile_start = get_game_timer 
set_police_ignore_player $player1 {state} False
clear_wanted_level $player1
remove_char_elegantly $sweet
release_weather 
unload_special_character 1
if 
  not is_char_dead 263@
goto_if_false @SWEET7_32409
set_char_suffers_critical_hits 263@ {state} True
set_char_health 263@ {health} 100
mark_char_as_no_longer_needed 263@

:SWEET7_32409
if 
  not is_char_dead 264@
goto_if_false @SWEET7_32444
set_char_suffers_critical_hits 264@ {state} True
set_char_health 264@ {health} 100
mark_char_as_no_longer_needed 264@

:SWEET7_32444
remove_blip 40@
remove_blip 39@
remove_blip 41@
remove_blip 42@
remove_blip 43@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 267@
remove_blip 265@
remove_blip 266@
remove_blip 292@
remove_blip 293@
remove_blip 294@
remove_blip 271@
clear_onscreen_timer $sw7_kanefuckedhealth
remove_animation "GRAVEYARD"
remove_animation "SMOKING"
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 12
switch_roads_on 772.243 {leftBottomY} -1050.323 {leftBottomZ} 10.2931 {rightTopX} 806.2723 {rightTopY} -1130.1949 {rightTopZ} 23.8359
switch_roads_on 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
switch_ped_roads_on 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 21---------------
// Originally: Doberman

:CRASH4
script_name 'CRASH4'
gosub @CRASH4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH4_38
gosub @CRASH4_6189

:CRASH4_38
gosub @CRASH4_6788
terminate_this_script 

:CRASH4_47
$onmission = 1
$flag_on_doberman_mission = 1
49@ = 0
50@ = 0
46@ = 0
36@ = 0
37@ = 0
38@ = 0
42@ = 0
42@ = 0
44@ = 0
56@ = 0.0
57@ = 0.0
59@ = 0
58@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
68@ = 0
70@ = 0
$flag_bought_gun_for_doberman = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
register_mission_given 
wait 0
clear_this_print_big_now TextStyle.Middle
wait 1000
load_mission_text 'CRASH2'
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
71@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Vagos
72@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 0
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
43@ = load_char_decision_maker DecisionMakerType.Tough
request_model 102
request_model 103
request_model 372
request_animation "GANGS"
request_animation "SMOKING"
request_model #CIGAR
request_model 106
request_model 107
load_all_models_now 

:CRASH4_442
if or
  not has_model_loaded 103
  not has_model_loaded 372
  not has_model_loaded 102
  not has_animation_loaded "GANGS"
goto_if_false @CRASH4_486
wait 0
goto @CRASH4_442

:CRASH4_486
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded #CIGAR
  not has_model_loaded 106
  not has_model_loaded 107
goto_if_false @CRASH4_531
wait 0
goto @CRASH4_486

:CRASH4_531
set_ped_density_multiplier 0.0
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
load_scene 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_disappear 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
clear_area 1350.177 {y} -1264.921 {z} 14.7166 {radius} 1.0 {clearParticles} True
set_fixed_camera_position 1350.177 {y} -1264.921 {z} 14.7166 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1350.9871 {y} -1265.499 {z} 14.8167 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_730
if 
  get_fading_status 
goto_if_false @CRASH4_754
wait 0
goto @CRASH4_730

:CRASH4_754
print_now 'AMUHLP' {time} 10000 {flag} 1
skip_cutscene_start_internal @CRASH4_814
TIMERA = 0

:CRASH4_784
if 
  5000 > TIMERA
goto_if_false @CRASH4_814
wait 0
goto @CRASH4_784

:CRASH4_814
skip_cutscene_end 
clear_this_print 'AMUHLP'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_842
if 
  get_fading_status 
goto_if_false @CRASH4_866
wait 0
goto @CRASH4_842

:CRASH4_866
request_model #LAEJEFFERSALPHA
request_model #LAELODPARK02
request_model #LAEMACPARK02

:CRASH4_881
if or
  not has_model_loaded #LAEJEFFERSALPHA
  not has_model_loaded #LAELODPARK02
  not has_model_loaded #LAEMACPARK02
goto_if_false @CRASH4_918
wait 0
goto @CRASH4_881

:CRASH4_918
load_all_models_now 
switch_widescreen True
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_949
skip_cutscene_start_internal @CRASH4_2106

:CRASH4_949
set_char_coordinates $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946
load_scene_in_direction 1859.931 {y} -1137.139 {z} 22.946 {heading} 89.9
if 
  62@ == 0
goto_if_false @CRASH4_1343
clear_area 1924.632 {y} -1126.623 {z} 24.135 {radius} 30.0 {clearParticles} True
53@ = create_char PedType.Mission1 {modelId} 103 {x} 1924.632 {y} -1126.623 {z} 24.135
set_char_only_damaged_by_player 53@ {state} True
set_char_heading 53@ {heading} 180.0
60@ = create_object #CIGAR {x} 1924.632 {y} -1126.623 {z} 24.135
task_pick_up_object 53@ {object} 60@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim_non_interruptable 53@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
54@ = create_char PedType.Mission1 {modelId} 102 {x} 1921.157 {y} -1127.438 {z} 24.048
set_char_only_damaged_by_player 54@ {state} True
set_char_heading 54@ {heading} 270.0
task_play_anim_non_interruptable 54@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
55@ = create_char PedType.Mission1 {modelId} 103 {x} 1922.157 {y} -1127.438 {z} 24.048
set_char_only_damaged_by_player 55@ {state} True
set_char_heading 55@ {heading} 90.0
task_play_anim_non_interruptable 55@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
62@ = 1

:CRASH4_1343
set_fixed_camera_position 1858.9091 {y} -1136.1021 {z} 26.7903 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1859.8669 {y} -1136.38 {z} 26.725 {switchStyle} SwitchType.JumpCut
set_ped_density_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:CRASH4_1416
if 
  get_fading_status 
goto_if_false @CRASH4_1440
wait 0
goto @CRASH4_1416

:CRASH4_1440
print_now 'CM2_10' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_1463
if 
  10000 > TIMERA
goto_if_false @CRASH4_1493
wait 0
goto @CRASH4_1463

:CRASH4_1493
clear_this_print 'CM2_10'
set_fixed_camera_position 1916.77 {y} -1130.479 {z} 26.9978 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1917.738 {y} -1130.27 {z} 26.8593 {switchStyle} SwitchType.JumpCut
print_now 'CM2_11' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_1578
if 
  10000 > TIMERA
goto_if_false @CRASH4_1778
wait 0
if 
  49@ == 0
goto_if_false @CRASH4_1771
if 
  TIMERA > 7000
goto_if_false @CRASH4_1771
if 
  not is_char_dead 54@
goto_if_false @CRASH4_1771
if 
  not is_char_dead 55@
goto_if_false @CRASH4_1771
task_play_anim_non_interruptable 54@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
56@ = 0.0
task_play_anim_non_interruptable 55@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
57@ = 0.0
49@ = 1

:CRASH4_1771
goto @CRASH4_1578

:CRASH4_1778
clear_this_print 'CM2_11'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_1804
if 
  get_fading_status 
goto_if_false @CRASH4_1828
wait 0
goto @CRASH4_1804

:CRASH4_1828
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
clear_this_print 'CM2_2'
request_collision 1363.689 {y} -1280.441
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
load_scene_in_direction 1363.689 {y} -1280.441 {z} 12.5469 {heading} 90.0
remove_animation "GANGS"
remove_animation "SMOKING"
if 
  62@ == 1
goto_if_false @CRASH4_2000
delete_char 53@
delete_char 54@
delete_char 55@
delete_object 60@

:CRASH4_2000
mark_model_as_no_longer_needed #CIGAR
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
make_player_gang_reappear 
set_ped_density_multiplier 1.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_2036
if 
  get_fading_status 
goto_if_false @CRASH4_2060
wait 0
goto @CRASH4_2036

:CRASH4_2060
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_2409
44@ = 1

:CRASH4_2106
skip_cutscene_end 
if 
  44@ == 0
goto_if_false @CRASH4_2409
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_2143
if 
  get_fading_status 
goto_if_false @CRASH4_2167
wait 0
goto @CRASH4_2143

:CRASH4_2167
set_ped_density_multiplier 1.0
request_collision 1363.689 {y} -1280.441
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
load_scene_in_direction 1363.689 {y} -1280.441 {z} 12.5469 {heading} 90.0
remove_animation "GANGS"
remove_animation "SMOKING"
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
if 
  62@ == 1
goto_if_false @CRASH4_2335
delete_char 53@
delete_char 54@
delete_char 55@
delete_object 60@

:CRASH4_2335
mark_model_as_no_longer_needed #CIGAR
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_2369
if 
  get_fading_status 
goto_if_false @CRASH4_2393
wait 0
goto @CRASH4_2369

:CRASH4_2393
set_camera_behind_player 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False

:CRASH4_2409
$played_cut1_before_crash4 = 1
52@ = add_sprite_blip_for_coord 1362.895 {y} -1281.0081 {z} 12.586 {sprite} RadarSprite.Ammugun
switch_entry_exit 'AMMUN1' {state} True
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_only_create_gang_members True
set_gang_wars_training_mission True
set_zone_for_gang_wars_training 'GLN1'
set_wanted_multiplier 0.5
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
$flag_gang_war_active = 1
print_now 'CM2_3' {time} 8000 {flag} 1
45@ = add_sprite_blip_for_coord 1932.351 {y} -1189.647 {z} 19.063 {sprite} RadarSprite.GangG

:CRASH4_2560
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_2812
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRASH4_2611
goto @CRASH4_6345

:CRASH4_2611
if 
  67@ == 0
goto_if_false @CRASH4_2718
if 
  locate_char_any_means_3d $scplayer {x} 2444.895 {y} -1981.524 {z} 13.933 {xRadius} 880.0 {yRadius} 880.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CRASH4_2718
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2718
print_help 'CM2_18'
TIMERB = 0
67@ = 1

:CRASH4_2718
if 
  67@ == 1
goto_if_false @CRASH4_2789
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2789
if 
  TIMERB > 5000
goto_if_false @CRASH4_2789
print_help 'CM2_19'
67@ = 2

:CRASH4_2789
47@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
goto @CRASH4_2560

:CRASH4_2812
remove_blip 52@
print_now 'CM2_5' {time} 8000 {flag} 1
TIMERA = 0

:CRASH4_2840
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3104
wait 0
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_2930
if 
  46@ == 0
goto_if_false @CRASH4_2923
print_now 'CM2_6' {time} 8000 {flag} 1
46@ = 1

:CRASH4_2923
goto @CRASH4_2982

:CRASH4_2930
if 
  46@ == 1
goto_if_false @CRASH4_2982
clear_this_print 'CM2_6'
print_now 'CM2_5' {time} 8000 {flag} 1
46@ = 0

:CRASH4_2982
if 
  73@ == 0
goto_if_false @CRASH4_3044
if 
  TIMERA >= 60000
goto_if_false @CRASH4_3044
print_now 'CM2_5' {time} 8000 {flag} 1
73@ = 1

:CRASH4_3044
if 
  73@ == 1
goto_if_false @CRASH4_3097
if 
  TIMERA >= 70000
goto_if_false @CRASH4_3097
TIMERA = 0
73@ = 0

:CRASH4_3097
goto @CRASH4_2840

:CRASH4_3104
clear_this_print 'CM2_5'
TIMERA = 0

:CRASH4_3122
if 
  47@ <> 0
goto_if_false @CRASH4_3464
wait 0
47@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
74@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Grove
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_3335
if 
  46@ == 0
goto_if_false @CRASH4_3242
print_now 'CM2_6' {time} 8000 {flag} 1
46@ = 1

:CRASH4_3242
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3321
if 
  74@ == 0
goto_if_false @CRASH4_3314
if 
  66@ == 0
goto_if_false @CRASH4_3314
print_now 'CM2_17' {time} 8000 {flag} 1
66@ = 1

:CRASH4_3314
goto @CRASH4_3328

:CRASH4_3321
66@ = 0

:CRASH4_3328
goto @CRASH4_3457

:CRASH4_3335
if 
  46@ == 1
goto_if_false @CRASH4_3371
clear_this_print 'CM2_6'
46@ = 0

:CRASH4_3371
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3450
if 
  74@ == 0
goto_if_false @CRASH4_3443
if 
  65@ == 0
goto_if_false @CRASH4_3443
print_now 'CM2_16' {time} 8000 {flag} 1
65@ = 1

:CRASH4_3443
goto @CRASH4_3457

:CRASH4_3450
65@ = 0

:CRASH4_3457
goto @CRASH4_3122

:CRASH4_3464
remove_blip 45@
clear_this_print 'CM2_16'
clear_this_print 'CM2_17'
clear_this_print 'CM2_6'
clear_this_print 'CM2_5'
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 0
can_trigger_gang_war_when_on_a_mission False
wait 5000
set_only_create_gang_members False
gosub @ENTEXT_63

:CRASH4_3548
if 
  $player_is_completely_safe <> 1
goto_if_false @CRASH4_3584
wait 0
gosub @ENTEXT_63
goto @CRASH4_3548

:CRASH4_3584
clear_prints 
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_3622
if 
  get_fading_status 
goto_if_false @CRASH4_3646
wait 0
goto @CRASH4_3622

:CRASH4_3646
set_ped_density_multiplier 0.0
make_player_gang_disappear 
switch_widescreen True
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH4_3753
clear_area 1859.931 {y} -1137.139 {z} 22.946 {radius} 2.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946
set_char_heading $scplayer {heading} 284.0
load_scene 1859.931 {y} -1137.139 {z} 22.946
goto @CRASH4_3859

:CRASH4_3753
75@ = store_car_char_is_in $scplayer
clear_area 1859.931 {y} -1137.139 {z} 22.946 {radius} 2.0 {clearParticles} True
warp_char_from_car_to_coord $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946

:CRASH4_3805
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH4_3832
wait 0
goto @CRASH4_3805

:CRASH4_3832
set_char_heading $scplayer {heading} 284.0
load_scene 1859.931 {y} -1137.139 {z} 22.946

:CRASH4_3859
set_fixed_camera_position 1859.828 {y} -1136.1801 {z} 33.7679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1860.751 {y} -1136.463 {z} 33.508 {switchStyle} SwitchType.JumpCut
if 
  63@ == 0
goto_if_false @CRASH4_4089
53@ = create_char PedType.Mission1 {modelId} 106 {x} 1910.3361 {y} -1154.475 {z} 22.699
set_char_heading 53@ {heading} 131.345
set_char_only_damaged_by_player 53@ {state} True
task_play_anim_non_interruptable 53@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
54@ = create_char PedType.Mission1 {modelId} 107 {x} 1907.99 {y} -1157.554 {z} 22.932
set_char_heading 54@ {heading} 318.746
set_char_only_damaged_by_player 54@ {state} True
task_play_anim_non_interruptable 54@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
63@ = 1

:CRASH4_4089
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH4_4104
if 
  get_fading_status 
goto_if_false @CRASH4_4128
wait 0
goto @CRASH4_4104

:CRASH4_4128
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4153
skip_cutscene_start_internal @CRASH4_4683

:CRASH4_4153
print_now 'CM2_12' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4176
if 
  10000 > TIMERA
goto_if_false @CRASH4_4206
wait 0
goto @CRASH4_4176

:CRASH4_4206
clear_this_print 'CM2_12'
set_fixed_camera_position 1891.889 {y} -1163.394 {z} 25.5792 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1892.865 {y} -1163.187 {z} 25.5167 {switchStyle} SwitchType.JumpCut
print_now 'CM2_13' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4291
if 
  10000 > TIMERA
goto_if_false @CRASH4_4321
wait 0
goto @CRASH4_4291

:CRASH4_4321
clear_this_print 'CM2_13'
print_now 'CM2_14' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4355
if 
  10000 > TIMERA
goto_if_false @CRASH4_4385
wait 0
goto @CRASH4_4355

:CRASH4_4385
clear_this_print 'CM2_14'
set_fixed_camera_position 1859.828 {y} -1136.1801 {z} 33.7679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1860.751 {y} -1136.463 {z} 33.508 {switchStyle} SwitchType.JumpCut
print_now 'CM2_15' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4470
if 
  10000 > TIMERA
goto_if_false @CRASH4_4500
wait 0
goto @CRASH4_4470

:CRASH4_4500
clear_this_print 'CM2_15'
print_now 'CM2_20' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4534
if 
  10000 > TIMERA
goto_if_false @CRASH4_4564
wait 0
goto @CRASH4_4534

:CRASH4_4564
clear_this_print 'CM2_20'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_4590
if 
  get_fading_status 
goto_if_false @CRASH4_4614
wait 0
goto @CRASH4_4590

:CRASH4_4614
clear_prints 
if 
  63@ == 1
goto_if_false @CRASH4_4644
delete_char 53@
delete_char 54@

:CRASH4_4644
set_ped_density_multiplier 1.0
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4779
61@ = 1
$played_cut2_before_crash4 = 1

:CRASH4_4683
skip_cutscene_end 
if 
  61@ == 0
goto_if_false @CRASH4_4779
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_4718
if 
  get_fading_status 
goto_if_false @CRASH4_4742
wait 0
goto @CRASH4_4718

:CRASH4_4742
clear_prints 
set_ped_density_multiplier 1.0
if 
  63@ == 1
goto_if_false @CRASH4_4779
delete_char 53@
delete_char 54@

:CRASH4_4779
$played_cut2_before_crash4 = 1
set_fixed_camera_position 1914.1071 {y} -1130.994 {z} 27.8685 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1914.8409 {y} -1130.332 {z} 27.7162 {switchStyle} SwitchType.JumpCut
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_4869
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8030
goto @CRASH4_4926

:CRASH4_4869
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_4901
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8031
goto @CRASH4_4926

:CRASH4_4901
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_4926
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8032

:CRASH4_4926
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CRASH4_4952
wait 0
goto @CRASH4_4926

:CRASH4_4952
clear_area 1922.439 {y} -1118.043 {z} 25.125 {radius} 10.0 {clearParticles} False
34@ = create_char PedType.Mission2 {modelId} 103 {x} 1922.439 {y} -1118.043 {z} 25.125
set_char_heading 34@ {heading} 180.0
set_char_only_damaged_by_player 34@ {state} True
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5104
task_go_straight_to_coord 34@ {x} 1922.328 {y} -1127.938 {z} 24.078 {speed} MoveState.Run {time} -1
goto @CRASH4_5111

:CRASH4_5104
38@ = 1

:CRASH4_5111
if 
  get_fading_status 
goto_if_false @CRASH4_5135
wait 0
goto @CRASH4_5111

:CRASH4_5135
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5323
shut_char_up_for_scripted_speech 34@ {state} True
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_5213
print_now 'CRA2_ZA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999
goto @CRASH4_5316

:CRASH4_5213
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_5268
print_now 'CRA2_ZB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999
goto @CRASH4_5316

:CRASH4_5268
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_5316
print_now 'CRA2_ZC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999

:CRASH4_5316
goto @CRASH4_5363

:CRASH4_5323
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'
38@ = 1

:CRASH4_5363
skip_cutscene_start_internal @CRASH4_5757
TIMERA = 0

:CRASH4_5377
if 
  2000 > TIMERA
goto_if_false @CRASH4_5555
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_5548
if 
  is_char_dead 34@
goto_if_false @CRASH4_5500
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5453
clear_mission_audio MissionAudioSlot.Slot1

:CRASH4_5453
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'
38@ = 1
goto @CRASH4_5548

:CRASH4_5500
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5548
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'

:CRASH4_5548
goto @CRASH4_5377

:CRASH4_5555
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5603
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'

:CRASH4_5603
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5638
stop_char_facial_talk 34@
shut_char_up_for_scripted_speech 34@ {state} False
goto @CRASH4_5645

:CRASH4_5638
38@ = 1

:CRASH4_5645
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5738
set_char_decision_maker 34@ {handleOrTemplate} 43@
35@ = add_blip_for_char 34@
task_kill_char_on_foot 34@ {target} $scplayer
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @CRASH4_5750

:CRASH4_5738
remove_blip 35@
38@ = 1

:CRASH4_5750
64@ = 1

:CRASH4_5757
skip_cutscene_end 
if 
  64@ == 0
goto_if_false @CRASH4_6048
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_5792
if 
  get_fading_status 
goto_if_false @CRASH4_5816
wait 0
goto @CRASH4_5792

:CRASH4_5816
make_player_gang_reappear 
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5907
clear_area 1922.903 {y} -1128.4771 {z} 24.092 {radius} 2.0 {clearParticles} False
set_char_coordinates 34@ {x} 1922.903 {y} -1128.4771 {z} 24.092
set_char_heading 34@ {heading} 180.0
stop_char_facial_talk 34@
shut_char_up_for_scripted_speech 34@ {state} False
goto @CRASH4_5914

:CRASH4_5907
38@ = 1

:CRASH4_5914
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH4_5937
if 
  get_fading_status 
goto_if_false @CRASH4_5961
wait 0
goto @CRASH4_5937

:CRASH4_5961
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 34@
goto_if_false @CRASH4_6036
35@ = add_blip_for_char 34@
task_kill_char_on_foot 34@ {target} $scplayer
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @CRASH4_6048

:CRASH4_6036
remove_blip 35@
38@ = 1

:CRASH4_6048
$flag_end_guy_audio_crash4 += 1
if 
  $flag_end_guy_audio_crash4 > 2
goto_if_false @CRASH4_6080
$flag_end_guy_audio_crash4 = 0

:CRASH4_6080
print_now 'CM2_8' {time} 8000 {flag} 1

:CRASH4_6096
if 
  38@ <> 1
goto_if_false @CRASH4_6182
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_6175
if 
  is_char_dead 34@
goto_if_false @CRASH4_6175
clear_this_print 'CM2_7'
remove_blip 35@
38@ = 1

:CRASH4_6175
goto @CRASH4_6096

:CRASH4_6182
goto @CRASH4_6345

:CRASH4_6189
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 71@
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 72@
switch_entry_exit 'AMMUN1' {state} False
switch_entry_exit 'AMMUN2' {state} False
switch_entry_exit 'AMMUN3' {state} False
switch_entry_exit 'AMMUN4' {state} False
switch_entry_exit 'AMMUN5' {state} False
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_gang_wars_active False
$flag_gang_war_active = 0
return 

:CRASH4_6345
$flag_sweet_mission_counter += 1
register_mission_passed 'CRASH_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 40 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$territory_pickup = create_protection_pickup 2502.1001 {y} -1686.38 {z} 13.0 {revenueLimit} 10000 {revenueRate} $territory_cash
start_new_script @TCASH 
switch_entry_exit 'AMMUN1' {state} True
switch_entry_exit 'AMMUN2' {state} True
switch_entry_exit 'AMMUN3' {state} True
switch_entry_exit 'AMMUN4' {state} True
switch_entry_exit 'AMMUN5' {state} True
if 
  $add_all_ammu_blips == 0
goto_if_false @CRASH4_6786
$weapon_shop1_blip = add_short_range_sprite_blip_for_coord 1372.9 {y} -1278.8 {z} 12.5 {sprite} RadarSprite.Ammugun
$ammu_shop_blip = add_short_range_sprite_blip_for_coord 2400.5 {y} -1978.4 {z} 13.5 {sprite} RadarSprite.Ammugun
$2579 = add_short_range_sprite_blip_for_coord -2626.6001 {y} 209.4 {z} 4.9 {sprite} RadarSprite.Ammugun
$2580 = add_short_range_sprite_blip_for_coord 2535.8999 {y} 2083.5 {z} 10.8 {sprite} RadarSprite.Ammugun
$2581 = add_short_range_sprite_blip_for_coord 2156.5 {y} 943.2 {z} 10.8 {sprite} RadarSprite.Ammugun
$2582 = add_short_range_sprite_blip_for_coord 779.7 {y} 1874.3 {z} 4.9 {sprite} RadarSprite.Ammugun
$2583 = add_short_range_sprite_blip_for_coord -2092.7 {y} -2463.8 {z} 30.6 {sprite} RadarSprite.Ammugun
$2584 = add_short_range_sprite_blip_for_coord 240.0 {y} -178.2 {z} 2.0 {sprite} RadarSprite.Ammugun
$2585 = add_short_range_sprite_blip_for_coord -1509.4 {y} 2611.8 {z} 58.5 {sprite} RadarSprite.Ammugun
$2586 = add_short_range_sprite_blip_for_coord -315.67 {y} 829.87 {z} 13.43 {sprite} RadarSprite.Ammugun
$2587 = add_short_range_sprite_blip_for_coord 2332.8999 {y} 63.6 {z} 31.0 {sprite} RadarSprite.Ammugun
$add_all_ammu_blips = 1

:CRASH4_6786
return 

:CRASH4_6788
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
set_ped_density_multiplier 1.0
set_only_create_gang_members False
$onmission = 0
$flag_on_doberman_mission = 0
remove_blip 45@
remove_blip 35@
remove_blip 52@
can_trigger_gang_war_when_on_a_mission False
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
remove_animation "GANGS"
remove_animation "SMOKING"
delete_object 60@
mark_model_as_no_longer_needed #CIGAR
delete_char 53@
delete_char 54@
delete_char 55@
remove_decision_maker 43@
mission_has_finished 
return 

//-------------Mission 22---------------
// Originally: Burning Desire

:CRASH1
script_name 'CRASH1'
gosub @CRASH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH1_38
gosub @CRASH1_41227

:CRASH1_38
gosub @CRASH1_41349
terminate_this_script 

:CRASH1_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
TIMERA = 0
TIMERB = 0
47@ = 1
48@ = 0
49@ = 0
50@ = 0
51@ = -1
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 1
213@ = 0

:CRASH1_210
57@(213@,3i) = 0
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_210
355@ = 0
356@ = 0
357@ = 0
358@ = 0
359@ = 0
360@ = 0
361@ = 0
198@ = 0
314@ = 0
315@ = 0
316@ = 0
323@ = 0
322@ = 0
313@ = 0
317@ = 0
325@ = 0
353@ = 0
354@ = 0
336@ = 0
340@ = 0
342@ = 0
345@ = 0
346@ = 1
347@ = 1
348@ = 0
349@ = 0
350@ = 0
210@ = 0
if 
  34@ == -99
goto_if_false @CRASH1_1160
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
98@ = create_car 412 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_car 412 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
213@ = 0

:CRASH1_575
create_char PedType.Gang8 {modelId} 110 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_575
213@ = 0

:CRASH1_631
create_char PedType.Gang8 {modelId} 110 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_631
94@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.CivFemale {modelId} 195 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
213@ = 0

:CRASH1_784
create_object_no_offset #BD_WINDOW {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 101@(213@,8i)
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_784
114@ = create_object #CR1_DOOR {x} 0.0 {y} 0.0 {z} 0.0
119@ = create_object #BREAK_WALL_1B {x} 0.0 {y} 0.0 {z} 0.0
120@ = create_object #BREAK_WALL_2B {x} 0.0 {y} 0.0 {z} 0.0
121@ = create_object #BREAK_WALL_3B {x} 0.0 {y} 0.0 {z} 0.0
119@ = create_object #BD_FIRE1_O {x} 0.0 {y} 0.0 {z} 0.0
138@ = start_char_fire 94@
139@ = start_char_fire 95@
140@ = start_char_fire 96@
141@ = start_char_fire 97@
213@ = 0

:CRASH1_985
start_script_fire 0.0 {y} 0.0 {z} 0.0 {propagation} 0 {size} 1 {var_handle} 142@(213@,21i)
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_985
213@ = 0

:CRASH1_1041
start_script_fire 0.0 {y} 0.0 {z} 0.0 {propagation} 0 {size} 1 {var_handle} 163@(213@,4i)
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_1041
135@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
132@ = create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
131@ = add_blip_for_char 95@
128@ = add_blip_for_pickup 132@

:CRASH1_1160
load_mission_text 'CRASH1'
gosub @CRASH1_38857
180@ = load_char_decision_maker DecisionMakerType.Empty
181@ = load_char_decision_maker DecisionMakerType.Tough
gosub @CRASH1_39065

:CRASH1_1199
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRASH1_1232
36@ = 1
goto @CRASH1_1651

:CRASH1_1232
gosub @CRASH1_36706
gosub @CRASH1_37130
if or
  38@ == 1
  39@ == 1
goto_if_false @CRASH1_1278
goto @CRASH1_1651

:CRASH1_1278
gosub @CRASH1_38228
gosub @CRASH1_38262
if 
  is_char_dead $scplayer
goto_if_false @CRASH1_1322
37@ = 1
goto @CRASH1_1651

:CRASH1_1322
if 
  34@ == 0
goto_if_false @CRASH1_1380
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:CRASH1_1380
if 
  34@ == 1
goto_if_false @CRASH1_1405
gosub @CRASH1_1838

:CRASH1_1405
if 
  34@ == 2
goto_if_false @CRASH1_1430
gosub @CRASH1_2345

:CRASH1_1430
if 
  34@ == 3
goto_if_false @CRASH1_1455
gosub @CRASH1_3600

:CRASH1_1455
if 
  34@ == 4
goto_if_false @CRASH1_1480
gosub @CRASH1_5983

:CRASH1_1480
if 
  34@ == 5
goto_if_false @CRASH1_1505
gosub @CRASH1_8432

:CRASH1_1505
if 
  34@ == 6
goto_if_false @CRASH1_1530
gosub @CRASH1_10291

:CRASH1_1530
if 
  34@ == 7
goto_if_false @CRASH1_1555
gosub @CRASH1_13180

:CRASH1_1555
if 
  34@ == 8
goto_if_false @CRASH1_1580
36@ = 1

:CRASH1_1580
if 
  34@ == 50
goto_if_false @CRASH1_1605
gosub @CRASH1_15449

:CRASH1_1605
if 
  34@ == 51
goto_if_false @CRASH1_1630
38@ = 1

:CRASH1_1630
gosub @CRASH1_38301
gosub @CRASH1_38357
gosub @CRASH1_32145

:CRASH1_1651
if 
  38@ == 0
goto_if_false @CRASH1_1834
if 
  37@ == 0
goto_if_false @CRASH1_1735
if 
  36@ == 0
goto_if_false @CRASH1_1719
goto @CRASH1_1199
goto @CRASH1_1728

:CRASH1_1719
gosub @CRASH1_41291
return 

:CRASH1_1728
goto @CRASH1_1827

:CRASH1_1735
gosub @CRASH1_41227
if or
  314@ == 1
  is_char_in_area_3d $scplayer {leftBottomX} 2350.405 {leftBottomY} -1181.907 {leftBottomZ} 26.8553 {rightTopX} 2353.4839 {rightTopY} -1170.524 {rightTopZ} 30.0687 {drawSphere} False
goto_if_false @CRASH1_1825
34@ = 50
35@ = 0
37@ = 0
goto @CRASH1_1199

:CRASH1_1825
return 

:CRASH1_1827
goto @CRASH1_1836

:CRASH1_1834
return 

:CRASH1_1836
return 

:CRASH1_1838
if 
  35@ == 0
goto_if_false @CRASH1_1900
print_now 'CRA1_00' {time} 15000 {flag} 1
gosub @CRASH1_16457
349@ = 0
204@ = 0
35@ += 1

:CRASH1_1900
if 
  35@ == 1
goto_if_false @CRASH1_1969
if 
  has_pickup_been_collected 132@
goto_if_false @CRASH1_1969
remove_blip 128@
349@ = 0
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 5000
35@ += 1

:CRASH1_1969
if 
  35@ == 2
goto_if_false @CRASH1_1994
35@ += 1

:CRASH1_1994
if 
  35@ == 3
goto_if_false @CRASH1_2055
print_now 'CRA1_01' {time} 5000 {flag} 1
122@ = add_blip_for_coord 2351.9041 {y} -1170.826 {z} 28.5
35@ += 1

:CRASH1_2055
if 
  35@ == 4
goto_if_false @CRASH1_2146
if 
  locate_char_any_means_2d $scplayer {x} 2350.168 {y} -1164.938 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @CRASH1_2146
gosub @CRASH1_39609
gosub @CRASH1_39708
gosub @CRASH1_40373
gosub @CRASH1_40881
35@ += 1

:CRASH1_2146
if 
  35@ == 5
goto_if_false @CRASH1_2245
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_2245
remove_blip 122@
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1
35@ = 99

:CRASH1_2245
if 
  349@ == 0
goto_if_false @CRASH1_2318
if 
  204@ <> 0
goto_if_false @CRASH1_2318
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2318
print_help 'MOLOTOV'
349@ = 1

:CRASH1_2318
if 
  35@ == 99
goto_if_false @CRASH1_2343
gosub @CRASH1_38827

:CRASH1_2343
return 

:CRASH1_2345
if 
  35@ == 0
goto_if_false @CRASH1_2476
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
313@ = 0
332@ = 0
333@ = 0
209@ = 0
187@ = -1
205@ = 0
gosub @CRASH1_18730
gosub @CRASH1_19322
switch_emergency_services False
set_wanted_multiplier 0.3
set_max_fire_generations 1
35@ += 1

:CRASH1_2476
if 
  35@ == 1
goto_if_false @CRASH1_2533
print_now 'CRA1_02' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 7000
35@ += 1

:CRASH1_2533
if 
  35@ == 2
goto_if_false @CRASH1_2631
213@ = 0

:CRASH1_2558
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2558
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2631
print_help 'WINDOWS'
35@ += 1

:CRASH1_2631
if 
  35@ == 3
goto_if_false @CRASH1_2733
213@ = 0

:CRASH1_2656
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2656
if 
  209@ == 5
goto_if_false @CRASH1_2733
print_now 'CRA1_04' {time} 3000 {flag} 1
35@ = 99

:CRASH1_2733
213@ = 0

:CRASH1_2740
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2740
if 
  313@ == 1
goto_if_false @CRASH1_2808
gosub @CRASH1_21015
goto @CRASH1_2815

:CRASH1_2808
gosub @CRASH1_20662

:CRASH1_2815
gosub @CRASH1_21168
if 
  205@ <> 0
goto_if_false @CRASH1_3150
if 
  is_int_lvar_greater_than_int_lvar 45@ > 205@
goto_if_false @CRASH1_3150
205@ = 0
214@ = 0
213@ = 0

:CRASH1_2880
if 
  302@(213@,5i) == 1
goto_if_false @CRASH1_2909
214@ += 1

:CRASH1_2909
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2880
209@ += 1
if 
  not is_int_lvar_equal_to_int_lvar 214@ == 209@
goto_if_false @CRASH1_3006
if 
  is_int_lvar_greater_than_int_lvar 209@ > 214@
goto_if_false @CRASH1_2990
set_lvar_int_to_lvar_int 209@ = 214@
goto @CRASH1_3006

:CRASH1_2990
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_3006
if 
  5 > 209@
goto_if_false @CRASH1_3031
gosub @CRASH1_20473

:CRASH1_3031
351@ = 0
213@ = 0

:CRASH1_3045
if 
  351@ == 0
goto_if_false @CRASH1_3129
if and
  302@(213@,5i) == 1
  307@(213@,5i) == 0
goto_if_false @CRASH1_3129
set_lvar_int_to_lvar_int 191@ = 213@
gosub @CRASH1_23203
307@(213@,5i) = 1
351@ = 1

:CRASH1_3129
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_3045

:CRASH1_3150
if 
  297@ == 0
goto_if_false @CRASH1_3410
289@ = 2337.666
289@ -= 31.0
291@ = -1180.994
291@ -= 38.0
293@ = 31.7513
293@ -= 8.0
290@ = 2337.666
290@ += 31.0
292@ = -1180.994
292@ += 38.0
294@ = 31.7513
294@ += 8.0
if 
  332@ == 0
goto_if_false @CRASH1_3344
if 
  is_projectile_in_area 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@
goto_if_false @CRASH1_3344
332@ = 1

:CRASH1_3344
if 
  333@ == 0
goto_if_false @CRASH1_3410
214@ = get_number_of_fires_in_area 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@
if 
  214@ > 0
goto_if_false @CRASH1_3410
333@ = 1

:CRASH1_3410
if 
  348@ == 1
goto_if_false @CRASH1_3504
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_3497
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_3497
goto @CRASH1_3573

:CRASH1_3504
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_3573
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_3573
if 
  35@ == 99
goto_if_false @CRASH1_3598
gosub @CRASH1_38827

:CRASH1_3598
return 

:CRASH1_3600
if 
  35@ == 0
goto_if_false @CRASH1_3751
191@ = 5
gosub @CRASH1_23203
192@ = 0
gosub @CRASH1_24873
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
329@ = 0
334@ = 0
335@ = 0
352@ = 0
353@ = 0
354@ = 0
337@ = 0
347@ = 1
206@ = 0
set_wanted_multiplier 0.0
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 21403
35@ += 1

:CRASH1_3751
if 
  359@ == 1
goto_if_false @CRASH1_3794
if 
  is_char_dead 95@
goto_if_false @CRASH1_3794
37@ = 1
return 

:CRASH1_3794
if 
  35@ == 1
goto_if_false @CRASH1_3903
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_3903
do_fade 400 {direction} Fade.Out
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2500
gosub @CRASH1_26362
gosub @CRASH1_26452
341@ = 0
50@ = 1
gosub @CRASH1_32981
35@ += 1

:CRASH1_3903
if 
  35@ == 2
goto_if_false @CRASH1_4000
if 
  354@ == 1
goto_if_false @CRASH1_3953
35@ += 1
goto @CRASH1_4000

:CRASH1_3953
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4000
gosub @CRASH1_23105
329@ = 1
352@ = 1
35@ += 1

:CRASH1_4000
if 
  35@ == 3
goto_if_false @CRASH1_4087
if 
  354@ == 1
goto_if_false @CRASH1_4050
35@ += 1
goto @CRASH1_4087

:CRASH1_4050
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_4087
gosub @CRASH1_26665
35@ += 1

:CRASH1_4087
if 
  35@ == 4
goto_if_false @CRASH1_4229
if 
  354@ == 1
goto_if_false @CRASH1_4137
35@ += 1
goto @CRASH1_4229

:CRASH1_4137
if and
  is_char_dead 94@
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4175
gosub @CRASH1_26924
35@ += 1

:CRASH1_4175
set_lvar_int_to_lvar_int 219@ = 200@
219@ += 8000
if and
  not is_char_dead 94@
  is_int_lvar_greater_than_int_lvar 45@ > 219@
goto_if_false @CRASH1_4229
gosub @CRASH1_26924
35@ += 1

:CRASH1_4229
if 
  35@ == 5
goto_if_false @CRASH1_4411
if 
  354@ == 1
goto_if_false @CRASH1_4279
35@ += 1
goto @CRASH1_4411

:CRASH1_4279
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4411
if 
  does_object_exist 106@
goto_if_false @CRASH1_4337
if 
  not has_object_been_damaged 106@
goto_if_false @CRASH1_4337
break_object 106@ {intensity} 1

:CRASH1_4337
197@ = 4
gosub @CRASH1_25459
335@ = 1
56@ = 0
gosub @CRASH1_33143
print_now 'CRA1_05' {time} 4600 {flag} 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4300
35@ += 1

:CRASH1_4411
if 
  35@ == 6
goto_if_false @CRASH1_4524
if 
  354@ == 1
goto_if_false @CRASH1_4461
35@ += 1
goto @CRASH1_4524

:CRASH1_4461
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4524
do_fade 300 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
gosub @CRASH1_18650
gosub @CRASH1_23025
35@ += 1

:CRASH1_4524
if 
  35@ == 7
goto_if_false @CRASH1_4688
if 
  354@ == 1
goto_if_false @CRASH1_4574
35@ += 1
goto @CRASH1_4688

:CRASH1_4574
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4688
gosub @CRASH1_26993
282@ = 2352.0371
283@ = -1170.318
284@ = 26.9702
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
192@ = 2
gosub @CRASH1_24873
do_fade 200 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
35@ += 1

:CRASH1_4688
if 
  35@ == 8
goto_if_false @CRASH1_4824
if 
  354@ == 1
goto_if_false @CRASH1_4738
35@ = 50
goto @CRASH1_4824

:CRASH1_4738
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4824
329@ = 0
352@ = 0
set_player_control $player1 {state} True
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
print 'CRA1_06' {time} 4000 {flag} 1
35@ += 1

:CRASH1_4824
if 
  35@ == 9
goto_if_false @CRASH1_5086
if 
  314@ == 1
goto_if_false @CRASH1_5036
remove_blip 122@
341@ = 0
206@ = 0
if 
  not is_char_dead 95@
goto_if_false @CRASH1_4968
set_char_has_used_entry_exit 95@ {x} 2352.114 {y} -1170.61 {radius} 8.0
282@, 283@, 284@ = get_char_coordinates 95@
284@ += 999.0
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_4968
remove_script_fire 138@
192@ = 4
gosub @CRASH1_24873
197@ = 6
gosub @CRASH1_25459
gosub @CRASH1_26123
gosub @CRASH1_26184
gosub @CRASH1_40944
35@ = 99
goto @CRASH1_5086

:CRASH1_5036
213@ = 0

:CRASH1_5043
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5043
gosub @CRASH1_21168

:CRASH1_5086
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_5120
354@ = 1

:CRASH1_5120
if 
  35@ == 50
goto_if_false @CRASH1_5175
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_5175
if 
  35@ == 51
goto_if_false @CRASH1_5249
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5249
gosub @CRASH1_16094
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_5249
if 
  35@ == 52
goto_if_false @CRASH1_5367
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5367
353@ = 0
354@ = 0
329@ = 0
352@ = 0
set_player_control $player1 {state} True
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
print 'CRA1_06' {time} 4000 {flag} 1
35@ = 9

:CRASH1_5367
gosub @CRASH1_27063
if 
  353@ == 0
goto_if_false @CRASH1_5435
213@ = 0

:CRASH1_5399
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5399

:CRASH1_5435
if 
  353@ == 0
goto_if_false @CRASH1_5460
gosub @CRASH1_21168

:CRASH1_5460
if 
  337@ == 1
goto_if_false @CRASH1_5485
gosub @CRASH1_28317

:CRASH1_5485
if 
  206@ > 0
goto_if_false @CRASH1_5536
if 
  is_int_lvar_greater_than_int_lvar 45@ > 206@
goto_if_false @CRASH1_5536
206@ = 0
341@ = 1

:CRASH1_5536
if 
  347@ == 1
goto_if_false @CRASH1_5602
clear_area 2345.907 {y} -1171.6591 {z} 30.9688 {radius} 1.5 {clearParticles} False
clear_area 2345.907 {y} -1171.6591 {z} 1030.969 {radius} 1.5 {clearParticles} False

:CRASH1_5602
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 3
  341@ == 1
goto_if_false @CRASH1_5793
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2340.262 {leftBottomY} -1170.5389 {leftBottomZ} 24.9859 {rightTopX} 2351.095 {rightTopY} -1164.287 {rightTopZ} 28.2183 {drawSphere} False
goto_if_false @CRASH1_5793
if or
  49@ == 2
  49@ == 1
goto_if_false @CRASH1_5727
if 
  48@ == 2
goto_if_false @CRASH1_5720
return 

:CRASH1_5720
gosub @CRASH1_33172

:CRASH1_5727
if 
  49@ == 0
goto_if_false @CRASH1_5761
50@ = 3
gosub @CRASH1_32981
return 

:CRASH1_5761
if and
  49@ == 3
  48@ <> 2
goto_if_false @CRASH1_5793
gosub @CRASH1_33143

:CRASH1_5793
if 
  348@ == 1
goto_if_false @CRASH1_5887
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_5880
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_5880
goto @CRASH1_5956

:CRASH1_5887
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_5956
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_5956
if 
  35@ == 99
goto_if_false @CRASH1_5981
gosub @CRASH1_38827

:CRASH1_5981
return 

:CRASH1_5983
if 
  35@ == 0
goto_if_false @CRASH1_6083
gosub @CRASH1_28623
327@ = 0
330@ = 0
352@ = 0
353@ = 0
354@ = 0
338@ = 0
339@ = 0
350@ = 0
190@ = -1
mark_model_as_no_longer_needed #CR_AMMOBOX
35@ += 1

:CRASH1_6083
if 
  is_char_dead 95@
goto_if_false @CRASH1_6108
37@ = 1
return 

:CRASH1_6108
if 
  35@ == 1
goto_if_false @CRASH1_6133
35@ += 1

:CRASH1_6133
if 
  35@ == 2
goto_if_false @CRASH1_6513
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.9611
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.9611
294@ += 1.5
if 
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_6513
remove_blip 131@
347@ = 0
set_char_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
350@ = 1
if 
  not has_pickup_been_collected 135@
goto_if_false @CRASH1_6506
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
set_player_control $player1 {state} False
285@ = 180.0
set_char_heading 95@ {heading} 285@
282@, 283@, 284@ = get_char_coordinates 95@
284@ = 1030.969
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
211@ = 99
201@ = 0
330@ = 1
352@ = 1
gosub @CRASH1_33172
50@ = 5
gosub @CRASH1_32981
35@ += 1
goto @CRASH1_6513

:CRASH1_6506
35@ = 10

:CRASH1_6513
if 
  35@ == 3
goto_if_false @CRASH1_6679
if 
  354@ == 1
goto_if_false @CRASH1_6563
35@ += 1
goto @CRASH1_6679

:CRASH1_6563
if 
  49@ <> 5
goto_if_false @CRASH1_6595
50@ = 5
gosub @CRASH1_32981

:CRASH1_6595
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_6679
122@ = add_blip_for_pickup 135@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
gosub @CRASH1_28934
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
35@ += 1

:CRASH1_6679
if 
  35@ == 4
goto_if_false @CRASH1_6801
if 
  354@ == 1
goto_if_false @CRASH1_6729
35@ += 1
goto @CRASH1_6801

:CRASH1_6729
if 
  49@ <> 5
goto_if_false @CRASH1_6761
50@ = 5
gosub @CRASH1_32981

:CRASH1_6761
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 5
goto_if_false @CRASH1_6801
gosub @CRASH1_33143
35@ += 1

:CRASH1_6801
if 
  35@ == 5
goto_if_false @CRASH1_6876
if 
  354@ == 1
goto_if_false @CRASH1_6851
35@ += 1
goto @CRASH1_6876

:CRASH1_6851
if 
  is_local_var_bit_set_const 54@ {bitIndex} 5
goto_if_false @CRASH1_6876
35@ += 1

:CRASH1_6876
if 
  35@ == 6
goto_if_false @CRASH1_6972
if 
  354@ == 1
goto_if_false @CRASH1_6926
35@ += 1
goto @CRASH1_6972

:CRASH1_6926
if 
  49@ <> 6
goto_if_false @CRASH1_6965
50@ = 6
gosub @CRASH1_32981
goto @CRASH1_6972

:CRASH1_6965
35@ += 1

:CRASH1_6972
if 
  35@ == 7
goto_if_false @CRASH1_7087
if 
  354@ == 1
goto_if_false @CRASH1_7022
35@ += 1
goto @CRASH1_7087

:CRASH1_7022
set_fixed_camera_position 2329.6799 {y} -1172.025 {z} 1030.137 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2328.8679 {y} -1172.5341 {z} 1029.854 {switchStyle} SwitchType.JumpCut
gosub @CRASH1_33143
35@ += 1

:CRASH1_7087
if 
  35@ == 8
goto_if_false @CRASH1_7198
if 
  354@ == 1
goto_if_false @CRASH1_7137
35@ = 50
goto @CRASH1_7198

:CRASH1_7137
if 
  is_local_var_bit_set_const 54@ {bitIndex} 6
goto_if_false @CRASH1_7198
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
330@ = 0
352@ = 0
35@ += 1

:CRASH1_7198
if 
  35@ == 9
goto_if_false @CRASH1_7262
50@ = 7
gosub @CRASH1_32981
if 
  49@ == 7
goto_if_false @CRASH1_7262
gosub @CRASH1_33143
35@ += 1

:CRASH1_7262
if 
  35@ == 10
goto_if_false @CRASH1_7362
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_7362
remove_blip 122@
if 
  not is_char_dead 95@
goto_if_false @CRASH1_7334
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_7334
gosub @CRASH1_33172
50@ = 8
gosub @CRASH1_32981
35@ += 1

:CRASH1_7362
if 
  35@ == 11
goto_if_false @CRASH1_7679
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.9611
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.9611
294@ += 1.5
if 
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_7679
if 
  49@ <> 8
goto_if_false @CRASH1_7568
50@ = 8
gosub @CRASH1_32981

:CRASH1_7568
if 
  49@ == 8
goto_if_false @CRASH1_7679
gosub @CRASH1_33143
285@ = 180.0
set_char_heading 95@ {heading} 285@
282@, 283@, 284@ = get_char_coordinates 95@
284@ = 1030.969
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
211@ = 99
35@ += 1

:CRASH1_7679
if 
  35@ == 12
goto_if_false @CRASH1_7802
if 
  200@ > 0
goto_if_false @CRASH1_7752
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_7752
200@ = 0
print_help 'CRA1_35'

:CRASH1_7752
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @CRASH1_7802
set_char_health 95@ {health} 100
35@ = 99

:CRASH1_7802
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_7836
354@ = 1

:CRASH1_7836
if 
  35@ == 50
goto_if_false @CRASH1_7918
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
211@ = 0
353@ = 0
354@ = 0
330@ = 0
352@ = 0
35@ = 10

:CRASH1_7918
gosub @CRASH1_27063
gosub @CRASH1_28317
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_7971
338@ = 1
315@ = 0

:CRASH1_7971
if 
  338@ == 1
goto_if_false @CRASH1_8016
if 
  get_fading_status 
goto_if_false @CRASH1_8016
338@ = 0
339@ = 1

:CRASH1_8016
if 
  339@ == 1
goto_if_false @CRASH1_8070
if 
  not get_fading_status 
goto_if_false @CRASH1_8070
339@ = 0
print_now 'CRA1_10' {time} 5000 {flag} 1

:CRASH1_8070
clear_area 255@ {y} 256@ {z} 257@ {radius} 3.0 {clearParticles} False
if 
  327@ == 0
goto_if_false @CRASH1_8158
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_8158
327@ = 1
print_now 'CRA1_09' {time} 4000 {flag} 1
print_help 'FIRE_EX'

:CRASH1_8158
if 
  347@ == 1
goto_if_false @CRASH1_8224
clear_area 2345.907 {y} -1171.6591 {z} 30.9688 {radius} 1.5 {clearParticles} False
clear_area 2345.907 {y} -1171.6591 {z} 1030.969 {radius} 1.5 {clearParticles} False

:CRASH1_8224
if 
  314@ == 0
goto_if_false @CRASH1_8405
if 
  348@ == 1
goto_if_false @CRASH1_8336
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_8329
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_8329
goto @CRASH1_8405

:CRASH1_8336
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_8405
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_8405
if 
  35@ == 99
goto_if_false @CRASH1_8430
gosub @CRASH1_38827

:CRASH1_8430
return 

:CRASH1_8432
if 
  35@ == 0
goto_if_false @CRASH1_8840
346@ = 1
if 
  is_script_fire_extinguished 163@
goto_if_false @CRASH1_8480
346@ = 0

:CRASH1_8480
set_player_control $player1 {state} False
gosub @CRASH1_29056
mark_model_as_no_longer_needed 109
if 
  not is_car_dead 98@
goto_if_false @CRASH1_8526
open_car_door_a_bit 98@ {door} CarDoor.Hood {value} 0.0

:CRASH1_8526
322@ = 0
196@ = 0
192@ = 3
gosub @CRASH1_24873
clear_onscreen_counter $sw7_funeraltimer
194@ = 3
195@ = 3
282@ = 2319.717
283@ = -1178.556
284@ = 1030.969
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
324@ = 1
352@ = 0
353@ = 0
354@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 21402
freeze_char_position 95@ {state} False
task_go_straight_to_coord 95@ {x} 2345.627 {y} -1175.844 {z} 1030.969 {speed} MoveState.Run {time} -2
task_turn_char_to_face_char $scplayer {target} 95@
set_fixed_camera_position 2349.7681 {y} -1177.1591 {z} 1031.791 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2348.8491 {y} -1176.765 {z} 1031.828 {switchStyle} SwitchType.JumpCut
if 
  346@ == 1
goto_if_false @CRASH1_8794
192@ = 4
gosub @CRASH1_24873

:CRASH1_8794
191@ = 1
gosub @CRASH1_24064
switch_widescreen True
352@ = 1
353@ = 0
354@ = 0
35@ += 1

:CRASH1_8840
if 
  35@ == 1
goto_if_false @CRASH1_8952
if 
  354@ == 1
goto_if_false @CRASH1_8890
35@ += 1
goto @CRASH1_8952

:CRASH1_8890
50@ = 9
gosub @CRASH1_32981
if 
  49@ == 9
goto_if_false @CRASH1_8952
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_8952
if 
  35@ == 2
goto_if_false @CRASH1_9073
if 
  354@ == 1
goto_if_false @CRASH1_9002
35@ += 1
goto @CRASH1_9073

:CRASH1_9002
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9073
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_9073
task_turn_char_to_face_char $scplayer {target} 95@
task_turn_char_to_face_char 95@ {target} $scplayer
35@ += 1

:CRASH1_9073
if 
  35@ == 3
goto_if_false @CRASH1_9178
if 
  354@ == 1
goto_if_false @CRASH1_9123
35@ += 1
goto @CRASH1_9178

:CRASH1_9123
if and
  is_local_var_bit_set_const 54@ {bitIndex} 9
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_9178
play_mission_audio MissionAudioSlot.Slot3
193@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 100
35@ += 1

:CRASH1_9178
if 
  35@ == 4
goto_if_false @CRASH1_9319
if 
  354@ == 1
goto_if_false @CRASH1_9228
35@ += 1
goto @CRASH1_9319

:CRASH1_9228
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9319
set_fixed_camera_position 2347.9419 {y} -1179.954 {z} 1031.858 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2346.95 {y} -1179.89 {z} 1031.9611 {switchStyle} SwitchType.JumpCut
50@ = 10
gosub @CRASH1_32981
35@ += 1

:CRASH1_9319
if 
  35@ == 5
goto_if_false @CRASH1_9450
if 
  354@ == 1
goto_if_false @CRASH1_9369
35@ += 1
goto @CRASH1_9450

:CRASH1_9369
if 
  49@ <> 10
goto_if_false @CRASH1_9401
50@ = 10
gosub @CRASH1_32981

:CRASH1_9401
shake_cam 40
if and
  193@ == 5
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CRASH1_9450
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_9450
if 
  35@ == 6
goto_if_false @CRASH1_9639
if 
  354@ == 1
goto_if_false @CRASH1_9500
35@ += 1
goto @CRASH1_9639

:CRASH1_9500
if 
  49@ <> 10
goto_if_false @CRASH1_9532
50@ = 10
gosub @CRASH1_32981

:CRASH1_9532
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 10
goto_if_false @CRASH1_9639
set_fixed_camera_position 2348.4951 {y} -1176.45 {z} 1031.486 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2347.5381 {y} -1176.7321 {z} 1031.558 {switchStyle} SwitchType.JumpCut
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
35@ += 1

:CRASH1_9639
if 
  35@ == 7
goto_if_false @CRASH1_9757
if 
  354@ == 1
goto_if_false @CRASH1_9689
35@ += 1
goto @CRASH1_9757

:CRASH1_9689
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9757
if 
  346@ == 0
goto_if_false @CRASH1_9750
task_go_straight_to_coord $scplayer {x} 2344.738 {y} -1180.853 {z} 1030.9771 {speed} MoveState.Walk {time} -2

:CRASH1_9750
35@ += 1

:CRASH1_9757
if 
  35@ == 8
goto_if_false @CRASH1_9854
if 
  354@ == 1
goto_if_false @CRASH1_9807
35@ = 50
goto @CRASH1_9854

:CRASH1_9807
if 
  is_local_var_bit_set_const 54@ {bitIndex} 10
goto_if_false @CRASH1_9854
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
352@ = 0
35@ += 1

:CRASH1_9854
if 
  35@ == 9
goto_if_false @CRASH1_9879
35@ = 99

:CRASH1_9879
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_9913
354@ = 1

:CRASH1_9913
if 
  35@ == 50
goto_if_false @CRASH1_9968
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_9968
if 
  35@ == 51
goto_if_false @CRASH1_10192
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10192
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 9
goto_if_false @CRASH1_10037
gosub @CRASH1_33172
set_local_var_bit_const 54@ {bitIndex} 10

:CRASH1_10037
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 10
goto_if_false @CRASH1_10062
gosub @CRASH1_33172

:CRASH1_10062
if 
  5 > 193@
goto_if_false @CRASH1_10147
if 
  is_object_playing_anim 119@ {animationName} "BD_FIRE1"
goto_if_false @CRASH1_10140
set_object_anim_current_time 119@ {animationName} "BD_FIRE1" {time} 1.0
193@ = 3
goto @CRASH1_10147

:CRASH1_10140
193@ = 4

:CRASH1_10147
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10192
if 
  35@ == 52
goto_if_false @CRASH1_10257
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10257
353@ = 0
354@ = 0
352@ = 0
35@ = 9

:CRASH1_10257
gosub @CRASH1_31027
if 
  35@ == 99
goto_if_false @CRASH1_10289
gosub @CRASH1_38827

:CRASH1_10289
return 

:CRASH1_10291
if 
  is_char_dead 95@
goto_if_false @CRASH1_10316
37@ = 1
return 

:CRASH1_10316
if 
  35@ == 0
goto_if_false @CRASH1_10369
352@ = 0
353@ = 0
354@ = 0
331@ = 0
35@ += 1

:CRASH1_10369
if 
  35@ == 1
goto_if_false @CRASH1_10394
35@ += 1

:CRASH1_10394
if 
  35@ == 2
goto_if_false @CRASH1_10419
35@ += 1

:CRASH1_10419
if 
  35@ == 3
goto_if_false @CRASH1_10476
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1

:CRASH1_10476
if 
  35@ == 4
goto_if_false @CRASH1_10595
if 
  207@ <> 0
goto_if_false @CRASH1_10545
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10545
load_mission_audio MissionAudioSlot.Slot3 {audioId} 21400
207@ = 0

:CRASH1_10545
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_10595
play_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2000
35@ += 1

:CRASH1_10595
if 
  35@ == 5
goto_if_false @CRASH1_10682
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10678
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1
goto @CRASH1_10682

:CRASH1_10678
shake_cam 80

:CRASH1_10682
if 
  35@ == 6
goto_if_false @CRASH1_10801
if 
  207@ <> 0
goto_if_false @CRASH1_10751
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10751
load_mission_audio MissionAudioSlot.Slot3 {audioId} 21401
207@ = 0

:CRASH1_10751
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_10801
play_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10801
if 
  35@ == 7
goto_if_false @CRASH1_10856
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10852
35@ += 1
goto @CRASH1_10856

:CRASH1_10852
shake_cam 40

:CRASH1_10856
if 
  35@ == 8
goto_if_false @CRASH1_11024
if 
  322@ == 1
goto_if_false @CRASH1_11024
clear_area 2351.762 {y} -1178.75 {z} 26.9753 {radius} 15.0 {clearParticles} True
set_char_coordinates 95@ {x} 2352.262 {y} -1176.75 {z} 26.9753
set_char_heading 95@ {heading} 0.0
set_char_has_used_entry_exit 95@ {x} 2352.114 {y} -1170.61 {radius} 8.0
set_char_area_visible 95@ {areaId} 0
clear_char_tasks_immediately 95@
switch_entry_exit 'GANG' {state} False
remove_blip 122@
gosub @CRASH1_33172
50@ = 12
gosub @CRASH1_32981
35@ += 1

:CRASH1_11024
if 
  35@ == 9
goto_if_false @CRASH1_11274
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 2354.5891 {y} -1166.262 {z} 27.87 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2353.8259 {y} -1166.89 {z} 28.0181 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2351.97 {y} -1169.26 {z} 27.013 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 180.0
close_sequence_task 220@
perform_sequence_task $scplayer {sequence} 220@
clear_sequence_task 220@
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2351.97 {y} -1170.26 {z} 27.013 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 0.0
close_sequence_task 220@
perform_sequence_task 95@ {sequence} 220@
clear_sequence_task 220@
request_model 407
request_model 277
load_all_models_now 
331@ = 1
352@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_11274
if 
  35@ == 10
goto_if_false @CRASH1_11456
if 
  354@ == 1
goto_if_false @CRASH1_11324
35@ = 50
goto @CRASH1_11456

:CRASH1_11324
if 
  49@ <> 12
goto_if_false @CRASH1_11356
50@ = 12
gosub @CRASH1_32981

:CRASH1_11356
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11456
if 
  49@ == 12
goto_if_false @CRASH1_11456
40@ = get_script_task_status 95@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
40@ = get_script_task_status $scplayer {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
35@ += 1

:CRASH1_11456
if 
  35@ == 11
goto_if_false @CRASH1_11675
if 
  354@ == 1
goto_if_false @CRASH1_11506
35@ = 50
goto @CRASH1_11675

:CRASH1_11506
task_char_slide_to_coord_and_play_anim 95@ {x} 2351.97 {y} -1170.26 {z} 27.013 {heading} 0.0 {radius} 0.2 {animationName} "GRLFRD_KISS_03" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_char_slide_to_coord_and_play_anim $scplayer {x} 2351.97 {y} -1169.26 {z} 27.013 {heading} 180.0 {radius} 0.2 {animationName} "PLAYA_KISS_03" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_11675
if 
  35@ == 12
goto_if_false @CRASH1_11871
if 
  354@ == 1
goto_if_false @CRASH1_11725
35@ = 50
goto @CRASH1_11871

:CRASH1_11725
if and
  not is_char_playing_anim 95@ {animationName} "GRLFRD_KISS_03"
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11871
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
task_follow_footsteps 95@ {target} $scplayer
set_player_group_to_follow_always $player1 {state} True
331@ = 0
352@ = 0
clear_all_script_fire_flags 
35@ += 1

:CRASH1_11871
if 
  35@ == 13
goto_if_false @CRASH1_11917
if and
  has_model_loaded 407
  has_model_loaded 277
goto_if_false @CRASH1_11917
35@ = 99

:CRASH1_11917
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_11951
354@ = 1

:CRASH1_11951
if 
  35@ == 50
goto_if_false @CRASH1_12161
if 
  is_char_playing_anim 95@ {animationName} "GRLFRD_KISS_03"
goto_if_false @CRASH1_12027
set_char_anim_current_time 95@ {animationName} "GRLFRD_KISS_03" {time} 1.0

:CRASH1_12027
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @CRASH1_12083
set_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_03" {time} 1.0

:CRASH1_12083
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 12
goto_if_false @CRASH1_12108
gosub @CRASH1_33172

:CRASH1_12108
clear_char_tasks_immediately 95@
clear_char_tasks_immediately $scplayer
set_lvar_int_to_lvar_int 200@ = 45@
353@ = 0
354@ = 0
331@ = 0
352@ = 0
35@ = 12

:CRASH1_12161
if 
  331@ == 0
goto_if_false @CRASH1_12186
gosub @CRASH1_29132

:CRASH1_12186
gosub @CRASH1_31027
gosub @CRASH1_31470
gosub @CRASH1_31657
289@ = 2319.9939
289@ -= 1.5
291@ = -1179.218
291@ -= 1.5
293@ = 1030.9771
293@ -= 1.2
290@ = 2319.9939
290@ += 1.5
292@ = -1179.218
292@ += 1.5
294@ = 1030.9771
294@ += 1.2
if and
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
  324@ == 1
goto_if_false @CRASH1_12446
remove_blip 122@
282@ = 2353.085
283@ = -1181.1
284@ = 1026.97
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
324@ = 0

:CRASH1_12446
clear_area 255@ {y} 256@ {z} 257@ {radius} 3.0 {clearParticles} False
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_12536
315@ = 0
set_player_control $player1 {state} False
remove_char_from_group 95@
task_stand_still 95@ {time} -2
freeze_char_position 95@ {state} True
323@ = 1
336@ = 0

:CRASH1_12536
if and
  314@ == 0
  323@ == 1
goto_if_false @CRASH1_12765
if 
  locate_char_on_foot_3d $scplayer {x} 2351.575 {y} -1166.1899 {z} 26.4524 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CRASH1_12765
if 
  not get_fading_status 
goto_if_false @CRASH1_12765
if or
  is_char_in_area_3d 95@ {leftBottomX} 2340.0969 {leftBottomY} -1188.51 {leftBottomZ} 1025.577 {rightTopX} 2352.9771 {rightTopY} -1179.882 {rightTopZ} 1028.184 {drawSphere} False
  is_char_in_area_3d 95@ {leftBottomX} 2344.22 {leftBottomY} -1179.892 {leftBottomZ} 1025.577 {rightTopX} 2349.8311 {rightTopY} -1171.6639 {rightTopZ} 1028.184 {drawSphere} False
goto_if_false @CRASH1_12735
322@ = 1
323@ = 0
freeze_char_position 95@ {state} False
goto @CRASH1_12765

:CRASH1_12735
print_now 'CRA1_10' {time} 8000 {flag} 1
set_player_control $player1 {state} True
336@ = 1

:CRASH1_12765
if and
  314@ == 1
  336@ == 1
goto_if_false @CRASH1_12844
336@ = 0
freeze_char_position 95@ {state} False
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
set_player_group_to_follow_always $player1 {state} True
190@ = 2

:CRASH1_12844
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_12901
214@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Extinguisher
if 
  500 > 214@
goto_if_false @CRASH1_12901
set_char_ammo $scplayer {weaponType} WeaponType.Extinguisher {ammo} 30000

:CRASH1_12901
if 
  342@ == 1
goto_if_false @CRASH1_12972
clear_local_var_bit_const 54@ {bitIndex} 11
50@ = 11
gosub @CRASH1_32981
if 
  49@ == 11
goto_if_false @CRASH1_12972
gosub @CRASH1_33143
342@ = 0

:CRASH1_12972
if 
  314@ == 0
goto_if_false @CRASH1_13153
if 
  348@ == 1
goto_if_false @CRASH1_13084
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_13077
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_13077
goto @CRASH1_13153

:CRASH1_13084
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_13153
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_13153
if 
  35@ == 99
goto_if_false @CRASH1_13178
gosub @CRASH1_38827

:CRASH1_13178
return 

:CRASH1_13180
if 
  35@ == 0
goto_if_false @CRASH1_13324
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
gosub @CRASH1_31844
258@ = 2402.3069
259@ = -1727.53
260@ = 12.3906
122@ = add_blip_for_coord 258@ {y} 259@ {z} 260@
remove_blip 131@
325@ = 0
326@ = 0
336@ = 0
50@ = 13
gosub @CRASH1_32981
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech 95@ {state} True
35@ += 1

:CRASH1_13324
if 
  is_char_dead 95@
goto_if_false @CRASH1_13367
if 
  326@ == 0
goto_if_false @CRASH1_13367
37@ = 1
return 

:CRASH1_13367
if 
  35@ == 1
goto_if_false @CRASH1_13449
if 
  49@ <> 13
goto_if_false @CRASH1_13417
50@ = 13
gosub @CRASH1_32981

:CRASH1_13417
if 
  49@ == 13
goto_if_false @CRASH1_13449
gosub @CRASH1_33143
35@ += 1

:CRASH1_13449
if 
  35@ == 2
goto_if_false @CRASH1_13773
351@ = 0
if 
  locate_char_any_means_3d 95@ {x} 258@ {y} 259@ {z} 260@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CRASH1_13580
351@ = 1
set_player_control $player1 {state} False
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_13580
$car = store_car_char_is_in_no_save 95@
if 
  not is_char_in_car $scplayer {vehicle} $car
goto_if_false @CRASH1_13580
351@ = 0

:CRASH1_13580
if 
  351@ == 1
goto_if_false @CRASH1_13773
remove_char_from_group 95@
remove_blip 122@
remove_blip 131@
326@ = 1
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2401.52 {y} -1722.074 {z} 12.6072 {radius} 8.0 {clearParticles} True
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_13715
$car = store_car_char_is_in_no_save 95@
282@, 283@, 284@ = get_car_coordinates $car
clear_area 282@ {y} 283@ {z} 284@ {radius} 5.0 {clearParticles} True

:CRASH1_13715
set_fixed_camera_position 2392.542 {y} -1727.949 {z} 14.991 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2393.458 {y} -1727.558 {z} 14.9067 {switchStyle} SwitchType.JumpCut
35@ += 1

:CRASH1_13773
if 
  35@ == 3
goto_if_false @CRASH1_13861
50@ = 16
gosub @CRASH1_32981
if 
  49@ == 16
goto_if_false @CRASH1_13861
gosub @CRASH1_33143
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_13854
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_13854
35@ += 1

:CRASH1_13861
if 
  35@ == 4
goto_if_false @CRASH1_13904
if 
  is_local_var_bit_set_const 54@ {bitIndex} 16
goto_if_false @CRASH1_13904
35@ += 1

:CRASH1_13904
if 
  35@ == 5
goto_if_false @CRASH1_13968
50@ = 17
gosub @CRASH1_32981
if 
  49@ == 17
goto_if_false @CRASH1_13968
gosub @CRASH1_33143
35@ += 1

:CRASH1_13968
if 
  35@ == 6
goto_if_false @CRASH1_14028
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_14021
task_leave_any_car 95@
35@ += 1
goto @CRASH1_14028

:CRASH1_14021
35@ = 8

:CRASH1_14028
if 
  35@ == 7
goto_if_false @CRASH1_14082
40@ = get_script_task_status 95@ {taskId} 1587
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14082
35@ += 1

:CRASH1_14082
if 
  35@ == 8
goto_if_false @CRASH1_14155
task_go_straight_to_coord 95@ {x} 2402.052 {y} -1719.7159 {z} 12.6181 {speed} MoveState.Run {time} -2
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_14148
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_14148
35@ += 1

:CRASH1_14155
if 
  35@ == 9
goto_if_false @CRASH1_14400
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14400
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
282@, 283@, 284@ = get_char_coordinates 95@
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = get_heading_from_vector_2d 282@ {y} 283@
task_char_slide_to_coord_and_play_anim 95@ {x} 2402.052 {y} -1719.7159 {z} 12.6181 {heading} 285@ {radius} 0.2 {animationName} "BD_GF_WAVE" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_14393
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_14393
35@ += 1

:CRASH1_14400
if 
  35@ == 10
goto_if_false @CRASH1_14464
50@ = 18
gosub @CRASH1_32981
if 
  49@ == 18
goto_if_false @CRASH1_14464
gosub @CRASH1_33143
35@ += 1

:CRASH1_14464
if 
  35@ == 11
goto_if_false @CRASH1_14582
if 
  is_char_playing_anim 95@ {animationName} "BD_GF_WAVE"
goto_if_false @CRASH1_14582
295@ = get_char_anim_current_time 95@ {animationName} "BD_GF_WAVE"
if 
  295@ == 1.0
goto_if_false @CRASH1_14582
task_go_straight_to_coord 95@ {x} 2401.8569 {y} -1717.01 {z} 12.6334 {speed} MoveState.Run {time} -2
35@ += 1

:CRASH1_14582
if 
  35@ == 12
goto_if_false @CRASH1_14656
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14656
delete_char 95@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
shut_char_up_for_scripted_speech $scplayer {state} False
35@ += 1

:CRASH1_14656
if 
  35@ == 13
goto_if_false @CRASH1_14699
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
35@ = 99

:CRASH1_14699
if 
  326@ == 0
goto_if_false @CRASH1_14803
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH1_14770
if 
  325@ == 0
goto_if_false @CRASH1_14763
325@ = 1
clear_char_tasks_immediately 95@

:CRASH1_14763
goto @CRASH1_14803

:CRASH1_14770
if 
  325@ == 1
goto_if_false @CRASH1_14803
325@ = 0
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_14803
if 
  not is_char_dead 95@
goto_if_false @CRASH1_15122
214@ = get_char_area_visible $scplayer
215@ = get_char_area_visible 95@
if 
  is_int_lvar_equal_to_int_lvar 214@ == 215@
goto_if_false @CRASH1_15122
282@, 283@, 284@ = get_char_coordinates 95@
286@, 287@, 288@ = get_char_coordinates $scplayer
296@ = get_distance_between_coords_3d 282@ {fromY} 283@ {fromZ} 284@ {toX} 286@ {toY} 287@ {toZ} 288@
if 
  336@ == 1
goto_if_false @CRASH1_15041
if 
  20.0 > 296@
goto_if_false @CRASH1_15034
336@ = 0
clear_char_tasks 95@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
set_player_group_to_follow_always $player1 {state} True
if 
  325@ == 0
goto_if_false @CRASH1_15015
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_15015
122@ = add_blip_for_coord 258@ {y} 259@ {z} 260@
remove_blip 131@

:CRASH1_15034
goto @CRASH1_15122

:CRASH1_15041
if 
  296@ > 50.0
goto_if_false @CRASH1_15122
336@ = 1
print_now 'CRA1_12' {time} 7000 {flag} 1
remove_char_from_group 95@
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
remove_blip 122@
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_15122
if and
  not is_char_dead 95@
  326@ == 0
goto_if_false @CRASH1_15262
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 95@
goto_if_false @CRASH1_15262
$car = store_car_char_is_in_no_save $scplayer
if and
  is_char_in_car 95@ {vehicle} $car
  not is_car_stopped $car
goto_if_false @CRASH1_15262
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 14
  49@ == 0
goto_if_false @CRASH1_15262
50@ = 14
gosub @CRASH1_32981
if 
  49@ == 14
goto_if_false @CRASH1_15262
gosub @CRASH1_33143

:CRASH1_15262
if and
  not is_char_dead 95@
  326@ == 0
goto_if_false @CRASH1_15422
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 15
  49@ <> 15
goto_if_false @CRASH1_15422
if 
  locate_char_any_means_3d 95@ {x} 258@ {y} 259@ {z} 260@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CRASH1_15422
gosub @CRASH1_33172
50@ = 15
gosub @CRASH1_32981
if 
  49@ == 15
goto_if_false @CRASH1_15398
gosub @CRASH1_33143

:CRASH1_15398
clear_area 2401.52 {y} -1722.074 {z} 12.6072 {radius} 8.0 {clearParticles} True

:CRASH1_15422
if 
  35@ == 99
goto_if_false @CRASH1_15447
gosub @CRASH1_38827

:CRASH1_15447
return 

:CRASH1_15449
if 
  35@ == 0
goto_if_false @CRASH1_15512
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15512
if 
  35@ == 1
goto_if_false @CRASH1_15587
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15587
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15587
if 
  35@ == 2
goto_if_false @CRASH1_15849
if and
  not get_fading_status 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15849
if 
  314@ == 0
goto_if_false @CRASH1_15693
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH1_15693
$car = store_car_char_is_in_no_save $scplayer
warp_char_from_car_to_coord $scplayer {x} 2351.7329 {y} -1179.042 {z} 26.9753
delete_car $car

:CRASH1_15693
set_area_visible 0
clear_area 2351.9609 {y} -1172.073 {z} 26.9765 {radius} 8.0 {clearParticles} True
load_scene 2351.9609 {y} -1172.073 {z} 26.9765
set_char_coordinates $scplayer {x} 2351.9609 {y} -1172.073 {z} 26.9765
set_char_heading $scplayer {heading} 0.0
set_char_area_visible $scplayer {areaId} 0
set_fixed_camera_position 2345.0439 {y} -1170.015 {z} 32.0063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2345.8 {y} -1169.822 {z} 31.381 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15849
if 
  35@ == 3
goto_if_false @CRASH1_15940
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15940
do_fade 500 {direction} Fade.In
task_go_straight_to_coord $scplayer {x} 2351.928 {y} -1166.08 {z} 26.4593 {speed} MoveState.Run {time} -2
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15940
if 
  35@ == 4
goto_if_false @CRASH1_16045
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_16045
40@ = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_16045
set_char_coordinates $scplayer {x} 2351.928 {y} -1166.08 {z} 26.4593
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
35@ = 99

:CRASH1_16045
if 
  35@ == 99
goto_if_false @CRASH1_16092
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
gosub @CRASH1_38827

:CRASH1_16092
return 

:CRASH1_16094
if 
  334@ == 0
goto_if_false @CRASH1_16169
set_object_proofs 114@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_object_collision_damage_effect 114@ {state} True
set_object_dynamic 114@ {state} True
break_object 114@ {intensity} 1
197@ = 0
gosub @CRASH1_25459
goto @CRASH1_16183

:CRASH1_16169
192@ = 2
gosub @CRASH1_24873

:CRASH1_16183
if 
  not is_char_dead 94@
goto_if_false @CRASH1_16244
set_char_coordinates 94@ {x} 2352.1809 {y} -1164.8929 {z} 26.4392
138@ = start_char_fire 94@
set_char_health 94@ {health} 1
clear_char_tasks_immediately 94@
task_die 94@

:CRASH1_16244
if 
  does_object_exist 106@
goto_if_false @CRASH1_16265
delete_object 106@

:CRASH1_16265
if 
  335@ == 0
goto_if_false @CRASH1_16297
197@ = 4
gosub @CRASH1_25459

:CRASH1_16297
remove_blip 122@
282@ = 2352.0371
283@ = -1170.318
284@ = 26.9702
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
gosub @CRASH1_26993
216@ = 0

:CRASH1_16360
if 
  not is_char_dead 87@(216@,5i)
goto_if_false @CRASH1_16409
if 
  182@(216@,5i) == 6
goto_if_false @CRASH1_16409
gosub @CRASH1_18650

:CRASH1_16409
216@ += 1
  216@ >= 5
goto_if_false @CRASH1_16360
if 
  187@ == 5
goto_if_false @CRASH1_16455
gosub @CRASH1_23025

:CRASH1_16455
return 

:CRASH1_16457
282@ = 1785.698
283@ = -1222.105
284@ = 16.9119
214@ = 0
132@ = create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@
128@ = add_blip_for_pickup 132@
return 

:CRASH1_16525
if 
  is_char_dead 87@(216@,5i)
goto_if_false @CRASH1_16554
299@ = 1
return 

:CRASH1_16554
switch_start 182@(216@,5i) {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CRASH1_16802 {caseNum1} -1 {caseLabel1} @CRASH1_16686 {caseNum2} 0 {caseLabel2} @CRASH1_16711 {caseNum3} 1 {caseLabel3} @CRASH1_16725 {caseNum4} 2 {caseLabel4} @CRASH1_16739 {caseNum5} 3 {caseLabel5} @CRASH1_16753 {caseNum6} 4 {caseLabel6} @CRASH1_16760 {caseNum7} 5 {caseLabel7} @CRASH1_16774
switch_continued 6 {caseLabel1} @CRASH1_16788 {caseNum2} -1 {caseLabel2} @CRASH1_16802 {caseNum3} -1 {caseLabel3} @CRASH1_16802 {caseNum4} -1 {caseLabel4} @CRASH1_16802 {caseNum5} -1 {caseLabel5} @CRASH1_16802 {caseNum6} -1 {caseLabel6} @CRASH1_16802 {caseNum7} -1 {caseLabel7} @CRASH1_16802 {caseNum8} -1 {caseLabel8} @CRASH1_16802 {caseNum9} -1 {caseLabel9} @CRASH1_16802

:CRASH1_16686
gosub @CRASH1_16804
182@(216@,5i) = 0
goto @CRASH1_16802

:CRASH1_16711
gosub @CRASH1_17015
goto @CRASH1_16802

:CRASH1_16725
gosub @CRASH1_17569
goto @CRASH1_16802

:CRASH1_16739
gosub @CRASH1_18020
goto @CRASH1_16802

:CRASH1_16753
goto @CRASH1_16802

:CRASH1_16760
gosub @CRASH1_17664
goto @CRASH1_16802

:CRASH1_16774
gosub @CRASH1_18158
goto @CRASH1_16802

:CRASH1_16788
gosub @CRASH1_18210
goto @CRASH1_16802

:CRASH1_16802
return 

:CRASH1_16804
switch_start 216@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_16964 {caseNum1} 0 {caseLabel1} @CRASH1_16867 {caseNum2} 1 {caseLabel2} @CRASH1_16916 {caseNum3} -1 {caseLabel3} @CRASH1_17013 {caseNum4} -1 {caseLabel4} @CRASH1_17013 {caseNum5} -1 {caseLabel5} @CRASH1_17013 {caseNum6} -1 {caseLabel6} @CRASH1_17013 {caseNum7} -1 {caseLabel7} @CRASH1_17013

:CRASH1_16867
task_play_anim_non_interruptable 87@(216@,5i) {animationName} "WASH_UP" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_17013

:CRASH1_16916
task_play_anim 87@(216@,5i) {animationName} "PHONE_TALK" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_17013

:CRASH1_16964
task_play_anim 87@(216@,5i) {animationName} "M_SMKLEAN_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CRASH1_17013
return 

:CRASH1_17015
if 
  301@ == 1
goto_if_false @CRASH1_17042
gosub @CRASH1_17618
return 

:CRASH1_17042
if and
  332@ == 1
  333@ == 1
goto_if_false @CRASH1_17076
gosub @CRASH1_17618
return 

:CRASH1_17076
if 
  298@ == 1
goto_if_false @CRASH1_17103
gosub @CRASH1_17848
return 

:CRASH1_17103
if 
  299@ == 1
goto_if_false @CRASH1_17130
gosub @CRASH1_17618
return 

:CRASH1_17130
if 
  has_char_been_damaged_by_char 87@(216@,5i) {handle} $scplayer
goto_if_false @CRASH1_17169
gosub @CRASH1_17618
299@ = 1
return 

:CRASH1_17169
if 
  297@ == 1
goto_if_false @CRASH1_17189
return 

:CRASH1_17189
switch_start 216@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_17497 {caseNum1} 0 {caseLabel1} @CRASH1_17252 {caseNum2} 1 {caseLabel2} @CRASH1_17301 {caseNum3} 2 {caseLabel3} @CRASH1_17350 {caseNum4} 3 {caseLabel4} @CRASH1_17399 {caseNum5} 4 {caseLabel5} @CRASH1_17448 {caseNum6} -1 {caseLabel6} @CRASH1_17497 {caseNum7} -1 {caseLabel7} @CRASH1_17497

:CRASH1_17252
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17294
gosub @CRASH1_17499

:CRASH1_17294
goto @CRASH1_17497

:CRASH1_17301
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17343
gosub @CRASH1_17499

:CRASH1_17343
goto @CRASH1_17497

:CRASH1_17350
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17392
gosub @CRASH1_17499

:CRASH1_17392
goto @CRASH1_17497

:CRASH1_17399
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17441
gosub @CRASH1_17499

:CRASH1_17441
goto @CRASH1_17497

:CRASH1_17448
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17490
gosub @CRASH1_17499

:CRASH1_17490
goto @CRASH1_17497

:CRASH1_17497
return 

:CRASH1_17499
221@ = set_char_say_context 87@(216@,5i) {phrase} SpeechId.AbuseGangLsv
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_17549
task_goto_char 87@(216@,5i) {target} $scplayer {time} 5000 {radius} 3.0

:CRASH1_17549
182@(216@,5i) = 1
297@ = 1
return 

:CRASH1_17569
40@ = get_script_task_status 87@(216@,5i) {taskId} 1497
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17616
298@ = 1
gosub @CRASH1_17618

:CRASH1_17616
return 

:CRASH1_17618
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 181@
task_kill_char_on_foot 87@(216@,5i) {target} $scplayer
182@(216@,5i) = 4
return 

:CRASH1_17664
if 
  329@ == 1
goto_if_false @CRASH1_17695
182@(216@,5i) = 5
return 

:CRASH1_17695
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = get_distance_between_coords_2d 289@ {fromY} 291@ {toX} 290@ {toZ} 292@
if 
  295@ > 38.0
goto_if_false @CRASH1_17806
gosub @CRASH1_17848
return 

:CRASH1_17806
40@ = get_script_task_status 87@(216@,5i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17846
gosub @CRASH1_17618

:CRASH1_17846
return 

:CRASH1_17848
if 
  329@ == 1
goto_if_false @CRASH1_17879
182@(216@,5i) = 5
return 

:CRASH1_17879
clear_char_tasks_immediately 87@(216@,5i)
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = get_heading_from_vector_2d 282@ {y} 283@
task_achieve_heading 87@(216@,5i) {heading} 285@
182@(216@,5i) = 2
return 

:CRASH1_18020
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = get_distance_between_coords_2d 289@ {fromY} 291@ {toX} 290@ {toZ} 292@
if 
  35.0 > 295@
goto_if_false @CRASH1_18131
gosub @CRASH1_17618
return 

:CRASH1_18131
if 
  300@ == 1
goto_if_false @CRASH1_18156
gosub @CRASH1_17848

:CRASH1_18156
return 

:CRASH1_18158
gosub @CRASH1_18329
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 180@
task_stand_still 87@(216@,5i) {time} -2
182@(216@,5i) = 6
return 

:CRASH1_18210
if 
  329@ == 1
goto_if_false @CRASH1_18283
40@ = get_script_task_status 87@(216@,5i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_18281
clear_char_tasks_immediately 87@(216@,5i)
task_stand_still 87@(216@,5i) {time} -2

:CRASH1_18281
return 

:CRASH1_18283
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 181@
task_kill_char_on_foot 87@(216@,5i) {target} $scplayer
182@(216@,5i) = 4
return 

:CRASH1_18329
get_char_coordinates 87@(216@,5i) {var_x} 261@(216@,5f) {var_y} 266@(216@,5f) {var_z} 271@(216@,5f)
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_18639 {caseNum1} 0 {caseLabel1} @CRASH1_18422 {caseNum2} 1 {caseLabel2} @CRASH1_18453 {caseNum3} 2 {caseLabel3} @CRASH1_18484 {caseNum4} 3 {caseLabel4} @CRASH1_18515 {caseNum5} 4 {caseLabel5} @CRASH1_18546 {caseNum6} 5 {caseLabel6} @CRASH1_18577 {caseNum7} 6 {caseLabel7} @CRASH1_18608

:CRASH1_18422
set_char_coordinates 87@(216@,5i) {x} 2319.314 {y} -1202.897 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18453
set_char_coordinates 87@(216@,5i) {x} 2315.9771 {y} -1204.658 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18484
set_char_coordinates 87@(216@,5i) {x} 2318.991 {y} -1207.222 {z} 26.9615
goto @CRASH1_18641

:CRASH1_18515
set_char_coordinates 87@(216@,5i) {x} 2315.7451 {y} -1210.296 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18546
set_char_coordinates 87@(216@,5i) {x} 2318.0901 {y} -1212.916 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18577
set_char_coordinates 87@(216@,5i) {x} 2314.1089 {y} -1215.641 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18608
set_char_coordinates 87@(216@,5i) {x} 2316.042 {y} -1219.501 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18639
return 

:CRASH1_18641
210@ += 1
return 

:CRASH1_18650
213@ = 0

:CRASH1_18657
if 
  not is_char_dead 87@(213@,5i)
goto_if_false @CRASH1_18707
set_char_coordinates 87@(213@,5i) {x} 261@(213@,5f) {y} 266@(213@,5f) {z} 271@(213@,5f)

:CRASH1_18707
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_18657
return 

:CRASH1_18730
282@ = 2346.0471
283@ = -1189.661
284@ = 27.9709
214@ = 0
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2336.0449
283@ = -1189.661
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2326.4089
283@ = -1189.661
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2345.8979
283@ = -1170.0439
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2326.407
283@ = -1170.0439
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
return 

:CRASH1_19322
214@ = 0
222@(214@,5f) = 2345.979
222@(214@,5f) -= 2.1
227@(214@,5f) = 2345.979
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2336.188
222@(214@,5f) -= 2.1
227@(214@,5f) = 2336.188
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.2549
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.2549
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2346.116
222@(214@,5f) -= 2.1
227@(214@,5f) = 2346.116
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.2549
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.2549
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
return 

:CRASH1_20309
if 
  302@(217@,5i) == 1
goto_if_false @CRASH1_20333
return 

:CRASH1_20333
if 
  is_projectile_in_area 222@(217@,5f) {leftBottomY} 232@(217@,5f) {leftBottomZ} 242@(217@,5f) {rightTopX} 227@(217@,5f) {rightTopY} 237@(217@,5f) {rightTopZ} 247@(217@,5f)
goto_if_false @CRASH1_20471
if 
  not has_object_been_damaged 101@(217@,8i)
goto_if_false @CRASH1_20419
break_object 101@(217@,8i) {intensity} 1

:CRASH1_20419
302@(217@,5i) = 1
301@ = 1
delete_object 109@(217@,5i)
remove_blip 123@(217@,5i)
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_20471
return 

:CRASH1_20473
214@ = generate_random_int_in_range 0 {max} 5
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_20660 {caseNum1} 0 {caseLabel1} @CRASH1_20545 {caseNum2} 1 {caseLabel2} @CRASH1_20568 {caseNum3} 2 {caseLabel3} @CRASH1_20591 {caseNum4} 3 {caseLabel4} @CRASH1_20614 {caseNum5} 4 {caseLabel5} @CRASH1_20637 {caseNum6} -1 {caseLabel6} @CRASH1_20660 {caseNum7} -1 {caseLabel7} @CRASH1_20660

:CRASH1_20545
print_now 'CRA1_30' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20568
print_now 'CRA1_31' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20591
print_now 'CRA1_32' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20614
print_now 'CRA1_33' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20637
print_now 'CRA1_34' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20660
return 

:CRASH1_20662
218@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Molotov
if and
  218@ == 0
  5 > 209@
goto_if_false @CRASH1_21013
if 
  345@ == 0
goto_if_false @CRASH1_20740
set_lvar_int_to_lvar_int 208@ = 45@
208@ += 3000
345@ = 1
return 

:CRASH1_20740
if 
  not is_int_lvar_greater_than_int_lvar 45@ > 208@
goto_if_false @CRASH1_20761
return 

:CRASH1_20761
208@ = 0
345@ = 0
282@ = 2337.6021
283@ = -1169.369
284@ = 28.2207
214@ = 0
create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@ {var_handle} 133@(214@,2i)
add_blip_for_pickup 133@(214@,2i) {var_handle} 129@(214@,2i)
282@ = 2334.1289
283@ = -1200.438
284@ = 28.1609
214@ += 1
create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@ {var_handle} 133@(214@,2i)
add_blip_for_pickup 133@(214@,2i) {var_handle} 129@(214@,2i)
213@ = 0

:CRASH1_20938
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_20969
remove_blip 123@(213@,5i)

:CRASH1_20969
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_20938
print_now 'CRA1_03' {time} 5000 {flag} 1
313@ = 1

:CRASH1_21013
return 

:CRASH1_21015
if or
  has_pickup_been_collected 133@
  has_pickup_been_collected 134@
goto_if_false @CRASH1_21166
213@ = 0

:CRASH1_21043
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_21043
213@ = 0

:CRASH1_21089
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_21138
add_blip_for_object 109@(213@,5i) {var_handle} 123@(213@,5i)
change_blip_colour 123@(213@,5i) {color} BlipColor.Red

:CRASH1_21138
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_21089
313@ = 0

:CRASH1_21166
return 

:CRASH1_21168
switch_start 187@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_21329 {caseNum1} -1 {caseLabel1} @CRASH1_21231 {caseNum2} 0 {caseLabel2} @CRASH1_21245 {caseNum3} 1 {caseLabel3} @CRASH1_21259 {caseNum4} 2 {caseLabel4} @CRASH1_21273 {caseNum5} 3 {caseLabel5} @CRASH1_21287 {caseNum6} 4 {caseLabel6} @CRASH1_21301 {caseNum7} 5 {caseLabel7} @CRASH1_21315

:CRASH1_21231
gosub @CRASH1_21331
goto @CRASH1_21329

:CRASH1_21245
gosub @CRASH1_21609
goto @CRASH1_21329

:CRASH1_21259
gosub @CRASH1_21703
goto @CRASH1_21329

:CRASH1_21273
gosub @CRASH1_21766
goto @CRASH1_21329

:CRASH1_21287
gosub @CRASH1_21874
goto @CRASH1_21329

:CRASH1_21301
gosub @CRASH1_22007
goto @CRASH1_21329

:CRASH1_21315
gosub @CRASH1_22347
goto @CRASH1_21329

:CRASH1_21329
return 

:CRASH1_21331
if 
  209@ <> 2
goto_if_false @CRASH1_21351
return 

:CRASH1_21351
282@ = 2370.792
283@ = -1250.899
284@ = 22.8451
285@ = 358.0048
clear_area 282@ {y} 283@ {z} 284@ {radius} 10.0 {clearParticles} False
99@ = create_car 412 {x} 282@ {y} 283@ {z} 284@
set_car_heading 99@ {heading} 285@
set_car_cruise_speed 99@ {maxSpeed} 100.0
set_car_driving_style 99@ {drivingStyle} DrivingMode.AvoidCars
214@ = 0
create_char_inside_car 99@ {pedType} PedType.Gang8 {modelId} 109 {var_handle} 92@(214@,2i)
give_weapon_to_char 92@(214@,2i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 92@(214@,2i) {state} True
214@ += 1
create_char_as_passenger 99@ {pedType} PedType.Gang8 {modelId} 108 {seat} SeatId.BikeRear {var_handle} 92@(214@,2i)
give_weapon_to_char 92@(214@,2i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 92@(214@,2i) {state} True
252@ = 2370.792
253@ = -1185.662
254@ = 26.4297
car_goto_coordinates 99@ {x} 252@ {y} 253@ {z} 254@
187@ = 0
357@ = 1
return 

:CRASH1_21609
if 
  is_car_dead 99@
goto_if_false @CRASH1_21634
187@ = 2
return 

:CRASH1_21634
if 
  locate_car_2d 99@ {x} 252@ {y} 253@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @CRASH1_21701
set_car_temp_action 99@ {actionId} TempAction.TurnLeft {time} 500
set_lvar_int_to_lvar_int 199@ = 45@
199@ += 350
187@ = 1

:CRASH1_21701
return 

:CRASH1_21703
if 
  is_car_dead 99@
goto_if_false @CRASH1_21728
187@ = 2
return 

:CRASH1_21728
if 
  is_int_lvar_greater_than_int_lvar 45@ > 199@
goto_if_false @CRASH1_21764
set_car_temp_action 99@ {actionId} TempAction.HandbrakeTurnLeft {time} 5000
187@ = 2

:CRASH1_21764
return 

:CRASH1_21766
if or
  is_car_dead 99@
  is_car_stopped 99@
goto_if_false @CRASH1_21872
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21826
task_leave_car 92@(216@,2i) {vehicle} 99@

:CRASH1_21826
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21865
task_leave_car 92@(216@,2i) {vehicle} 99@

:CRASH1_21865
187@ = 3

:CRASH1_21872
return 

:CRASH1_21874
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21936
40@ = get_script_task_status 92@(216@,2i) {taskId} 1485
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21936
return 

:CRASH1_21936
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21998
40@ = get_script_task_status 92@(216@,2i) {taskId} 1485
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21998
return 

:CRASH1_21998
187@ = 4
return 

:CRASH1_22007
if 
  329@ == 1
goto_if_false @CRASH1_22159
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22084
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 180@
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22084
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22143
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 180@
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22143
gosub @CRASH1_22656
187@ = 5
return 

:CRASH1_22159
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22252
40@ = get_script_task_status 92@(216@,2i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22252
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22252
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22345
40@ = get_script_task_status 92@(216@,2i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22345
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22345
return 

:CRASH1_22347
if 
  329@ == 1
goto_if_false @CRASH1_22527
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22445
40@ = get_script_task_status 92@(216@,2i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22445
clear_char_tasks_immediately 92@(216@,2i)
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22445
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22525
40@ = get_script_task_status 92@(216@,2i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22525
clear_char_tasks_immediately 92@(216@,2i)
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22525
return 

:CRASH1_22527
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22587
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22587
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22647
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22647
187@ = 4
return 

:CRASH1_22656
213@ = 0

:CRASH1_22663
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_23002
get_char_coordinates 92@(213@,2i) {var_x} 276@(213@,2f) {var_y} 278@(213@,2f) {var_z} 280@(213@,2f)
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_22993 {caseNum1} 0 {caseLabel1} @CRASH1_22776 {caseNum2} 1 {caseLabel2} @CRASH1_22807 {caseNum3} 2 {caseLabel3} @CRASH1_22838 {caseNum4} 3 {caseLabel4} @CRASH1_22869 {caseNum5} 4 {caseLabel5} @CRASH1_22900 {caseNum6} 5 {caseLabel6} @CRASH1_22931 {caseNum7} 6 {caseLabel7} @CRASH1_22962

:CRASH1_22776
set_char_coordinates 92@(213@,2i) {x} 2319.314 {y} -1202.897 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22807
set_char_coordinates 92@(213@,2i) {x} 2315.9771 {y} -1204.658 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22838
set_char_coordinates 92@(213@,2i) {x} 2318.991 {y} -1207.222 {z} 26.9615
goto @CRASH1_22995

:CRASH1_22869
set_char_coordinates 92@(213@,2i) {x} 2315.7451 {y} -1210.296 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22900
set_char_coordinates 92@(213@,2i) {x} 2318.0901 {y} -1212.916 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22931
set_char_coordinates 92@(213@,2i) {x} 2314.1089 {y} -1215.641 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22962
set_char_coordinates 92@(213@,2i) {x} 2316.042 {y} -1219.501 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22993
return 

:CRASH1_22995
210@ += 1

:CRASH1_23002
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_22663
return 

:CRASH1_23025
213@ = 0

:CRASH1_23032
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_23082
set_char_coordinates 92@(213@,2i) {x} 276@(213@,2f) {y} 278@(213@,2f) {z} 280@(213@,2f)

:CRASH1_23082
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_23032
return 

:CRASH1_23105
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 2335.3391 {y} -1159.13 {z} 30.4689 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2336.1541 {y} -1159.707 {z} 30.42 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
return 

:CRASH1_23203
if 
  191@ == 5
goto_if_false @CRASH1_23223
remove_all_script_fires 

:CRASH1_23223
if or
  191@ == 5
  191@ == 3
goto_if_false @CRASH1_23384
214@ = generate_random_int_in_range 2 {max} 4
142@ = start_script_fire 2346.355 {y} -1172.734 {z} 27.2957 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
143@ = start_script_fire 2345.4839 {y} -1171.842 {z} 27.2957 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
144@ = start_script_fire 2348.1709 {y} -1173.493 {z} 27.2957 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
145@ = start_script_fire 2348.387 {y} -1172.34 {z} 27.2957 {propagation} 1 {size} 214@

:CRASH1_23384
if or
  191@ == 5
  191@ == 0
goto_if_false @CRASH1_23545
214@ = generate_random_int_in_range 1 {max} 4
146@ = start_script_fire 2347.9829 {y} -1187.069 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
147@ = start_script_fire 2347.792 {y} -1186.2531 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
148@ = start_script_fire 2346.1499 {y} -1186.639 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
149@ = start_script_fire 2345.988 {y} -1188.301 {z} 27.2891 {propagation} 1 {size} 214@

:CRASH1_23545
if or
  191@ == 5
  191@ == 1
goto_if_false @CRASH1_23706
214@ = generate_random_int_in_range 1 {max} 4
150@ = start_script_fire 2334.9719 {y} -1187.806 {z} 27.082 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
151@ = start_script_fire 2334.1819 {y} -1188.269 {z} 27.008 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
152@ = start_script_fire 2335.7859 {y} -1188.25 {z} 27.7429 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
153@ = start_script_fire 2335.467 {y} -1187.1429 {z} 27.5372 {propagation} 0 {size} 214@

:CRASH1_23706
if or
  191@ == 5
  191@ == 2
goto_if_false @CRASH1_23901
214@ = generate_random_int_in_range 2 {max} 4
154@ = start_script_fire 2323.4309 {y} -1185.613 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
155@ = start_script_fire 2324.5491 {y} -1186.614 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
156@ = start_script_fire 2325.3711 {y} -1184.3831 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
157@ = start_script_fire 2324.762 {y} -1187.462 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
158@ = start_script_fire 2324.7161 {y} -1188.478 {z} 30.58 {propagation} 1 {size} 214@

:CRASH1_23901
if or
  191@ == 5
  191@ == 4
goto_if_false @CRASH1_24062
214@ = generate_random_int_in_range 2 {max} 4
159@ = start_script_fire 2322.239 {y} -1172.9709 {z} 27.1409 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
160@ = start_script_fire 2322.22 {y} -1174.752 {z} 27.2031 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
161@ = start_script_fire 2323.696 {y} -1174.429 {z} 27.2131 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
162@ = start_script_fire 2325.1589 {y} -1172.793 {z} 27.1539 {propagation} 1 {size} 214@

:CRASH1_24062
return 

:CRASH1_24064
if 
  191@ == 0
goto_if_false @CRASH1_24084
remove_all_script_fires 

:CRASH1_24084
if 
  191@ == 1
goto_if_false @CRASH1_24139
213@ = 0

:CRASH1_24109
remove_script_fire 142@(213@,21i)
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_24109

:CRASH1_24139
214@ = generate_random_int_in_range 1 {max} 3
142@ = start_script_fire 2345.646 {y} -1178.38 {z} 1027.153 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
143@ = start_script_fire 2344.5581 {y} -1178.334 {z} 1027.125 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
144@ = start_script_fire 2345.0271 {y} -1177.208 {z} 1027.165 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
145@ = start_script_fire 2347.865 {y} -1173.929 {z} 1027.224 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
146@ = start_script_fire 2349.136 {y} -1187.9139 {z} 1027.259 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
147@ = start_script_fire 2348.7981 {y} -1186.306 {z} 1027.281 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
148@ = start_script_fire 2347.625 {y} -1187.324 {z} 1027.2679 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
149@ = start_script_fire 2347.5869 {y} -1184.5959 {z} 1027.134 {propagation} 1 {size} 214@
if 
  191@ == 0
goto_if_false @CRASH1_24871
214@ = generate_random_int_in_range 1 {max} 3
150@ = start_script_fire 2334.9719 {y} -1187.806 {z} 1027.182 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
151@ = start_script_fire 2334.1819 {y} -1188.269 {z} 1027.108 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
152@ = start_script_fire 2335.7859 {y} -1188.25 {z} 1027.743 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
153@ = start_script_fire 2335.467 {y} -1187.1429 {z} 1027.537 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
154@ = start_script_fire 2321.8201 {y} -1179.514 {z} 1027.767 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
155@ = start_script_fire 2321.4541 {y} -1181.0439 {z} 1027.224 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
156@ = start_script_fire 2322.7891 {y} -1181.093 {z} 1027.172 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
157@ = start_script_fire 2321.8521 {y} -1183.062 {z} 1027.1121 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
158@ = start_script_fire 2322.6111 {y} -1184.014 {z} 1027.1331 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
159@ = start_script_fire 2322.239 {y} -1172.9709 {z} 1027.141 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
160@ = start_script_fire 2322.22 {y} -1174.752 {z} 1027.203 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
161@ = start_script_fire 2323.696 {y} -1174.429 {z} 1027.213 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
162@ = start_script_fire 2325.1589 {y} -1172.793 {z} 1027.1541 {propagation} 1 {size} 214@

:CRASH1_24871
return 

:CRASH1_24873
switch_start 192@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_25457 {caseNum1} 0 {caseLabel1} @CRASH1_24936 {caseNum2} 1 {caseLabel2} @CRASH1_24967 {caseNum3} 2 {caseLabel3} @CRASH1_24998 {caseNum4} 3 {caseLabel4} @CRASH1_25010 {caseNum5} 4 {caseLabel5} @CRASH1_25089 {caseNum6} 5 {caseLabel6} @CRASH1_25125 {caseNum7} 6 {caseLabel7} @CRASH1_25222

:CRASH1_24936
163@ = start_script_fire 2345.4641 {y} -1174.033 {z} 31.1 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_24967
164@ = start_script_fire 2352.1001 {y} -1171.25 {z} 26.97 {propagation} 0 {size} 2
goto @CRASH1_25457

:CRASH1_24998
remove_script_fire 164@
goto @CRASH1_25457

:CRASH1_25010
164@ = start_script_fire 2340.365 {y} -1184.928 {z} 1031.1 {propagation} 0 {size} 3
165@ = start_script_fire 2332.4829 {y} -1180.889 {z} 1031.1 {propagation} 0 {size} 3
166@ = start_script_fire 2326.0811 {y} -1178.825 {z} 1027.2 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_25089
remove_script_fire 163@
163@ = start_script_fire 2344.884 {y} -1178.697 {z} 1031.1 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_25125
213@ = 0

:CRASH1_25132
318@(213@,4i) = 1
if 
  does_script_fire_exist 163@(213@,4i)
goto_if_false @CRASH1_25194
if 
  is_script_fire_extinguished 163@(213@,4i)
goto_if_false @CRASH1_25194
318@(213@,4i) = 0

:CRASH1_25194
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_25132
goto @CRASH1_25457

:CRASH1_25222
214@ = 3
if 
  318@ == 0
goto_if_false @CRASH1_25254
214@ = 1

:CRASH1_25254
163@ = start_script_fire 2344.884 {y} -1178.697 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  319@ == 0
goto_if_false @CRASH1_25311
214@ = 1

:CRASH1_25311
164@ = start_script_fire 2340.365 {y} -1184.928 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  320@ == 0
goto_if_false @CRASH1_25368
214@ = 1

:CRASH1_25368
165@ = start_script_fire 2332.4829 {y} -1180.889 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  321@ == 0
goto_if_false @CRASH1_25425
214@ = 1

:CRASH1_25425
166@ = start_script_fire 2326.0811 {y} -1178.825 {z} 1027.2 {propagation} 0 {size} 214@
goto @CRASH1_25457

:CRASH1_25457
return 

:CRASH1_25459
switch_start 197@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_26121 {caseNum1} 0 {caseLabel1} @CRASH1_25522 {caseNum2} 1 {caseLabel2} @CRASH1_25603 {caseNum3} 2 {caseLabel3} @CRASH1_25620 {caseNum4} 3 {caseLabel4} @CRASH1_25970 {caseNum5} 4 {caseLabel5} @CRASH1_26014 {caseNum6} 5 {caseLabel6} @CRASH1_26059 {caseNum7} 6 {caseLabel7} @CRASH1_26071

:CRASH1_25522
177@ = create_fx_system "TEARGASAD" {x} 2351.718 {y} -1170.9821 {z} 26.7609 {ignoreBoundingChecks} True
play_fx_system 177@
179@ = create_fx_system "TEARGAS" {x} 2351.813 {y} -1181.29 {z} 1029.783 {ignoreBoundingChecks} True
play_fx_system 179@
goto @CRASH1_26121

:CRASH1_25603
kill_fx_system 177@
kill_fx_system 179@
goto @CRASH1_26121

:CRASH1_25620
168@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {ignoreBoundingChecks} True
169@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 1.8 {ignoreBoundingChecks} True
170@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
171@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.5 {ignoreBoundingChecks} True
172@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 1.8 {ignoreBoundingChecks} True
173@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
174@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
175@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
176@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
213@ = 0

:CRASH1_25933
play_fx_system 168@(213@,9i)
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25933
goto @CRASH1_26121

:CRASH1_25970
213@ = 0

:CRASH1_25977
kill_fx_system 168@(213@,9i)
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25977
goto @CRASH1_26121

:CRASH1_26014
178@ = create_fx_system "TEARGASAD" {x} 2345.0071 {y} -1171.812 {z} 33.996 {ignoreBoundingChecks} True
play_fx_system 178@
goto @CRASH1_26121

:CRASH1_26059
kill_fx_system 178@
goto @CRASH1_26121

:CRASH1_26071
kill_fx_system 177@
177@ = create_fx_system "TEARGASAD" {x} 2351.718 {y} -1175.129 {z} 26.7609 {ignoreBoundingChecks} True
play_fx_system 177@
goto @CRASH1_26121

:CRASH1_26121
return 

:CRASH1_26123
255@ = 2322.6389
256@ = -1176.537
257@ = 1027.757
135@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 30000 {x} 255@ {y} 256@ {z} 257@
317@ = 1
return 

:CRASH1_26184
115@ = create_object_no_offset #CR1_DOOR {x} 2342.708 {y} -1177.826 {z} 1031.002
116@ = create_object_no_offset #CR1_DOOR {x} 2338.4021 {y} -1177.832 {z} 1030.985
117@ = create_object_no_offset #CR1_DOOR {x} 2333.665 {y} -1173.932 {z} 1030.9771
118@ = create_object_no_offset #CR1_DOOR {x} 2335.968 {y} -1179.4351 {z} 1030.969
set_object_heading 118@ {heading} 89.3975
213@ = 0

:CRASH1_26289
set_object_area_visible 115@(213@,4i) {areaId} 5
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26289
213@ = 0

:CRASH1_26328
set_object_collision_damage_effect 115@(213@,4i) {state} False
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26328
return 

:CRASH1_26362
282@ = 2352.325
283@ = -1179.79
284@ = 26.9766
285@ = 2.8064
94@ = create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@
set_char_area_visible 94@ {areaId} 5
set_char_heading 94@ {heading} 285@
set_char_decision_maker 94@ {handleOrTemplate} 180@
358@ = 1
return 

:CRASH1_26452
282@ = 2345.907
283@ = -1171.6591
284@ = 30.9688
285@ = 359.0737
95@ = create_char PedType.CivFemale {modelId} 195 {x} 282@ {y} 283@ {z} 284@
set_char_area_visible 95@ {areaId} 5
set_char_heading 95@ {heading} 285@
set_char_health 95@ {health} 100
set_char_never_targetted 95@ {state} True
set_char_proofs 95@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_char_relationship 95@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
freeze_char_position 95@ {state} True
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
211@ = 0
214@ = generate_random_int_in_range 500 {max} 2000
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@
disable_char_speech 95@ {stopNow} False
359@ = 1
return 

:CRASH1_26665
set_object_proofs 114@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_object_collision_damage_effect 114@ {state} True
set_object_dynamic 114@ {state} True
set_object_velocity 114@ {xSpeed} 0.0 {ySpeed} 15.0 {zSpeed} 0.0
break_object 114@ {intensity} 1
167@ = create_fx_system "EXPLOSION_DOOR" {x} 2351.918 {y} -1171.014 {z} 28.1817 {ignoreBoundingChecks} True
play_and_kill_fx_system 167@
play_mission_audio MissionAudioSlot.Slot3
197@ = 0
gosub @CRASH1_25459
192@ = 1
gosub @CRASH1_24873
334@ = 1
if 
  is_char_dead 94@
goto_if_false @CRASH1_26821
return 

:CRASH1_26821
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2352.1809 {y} -1164.8929 {z} 26.4392 {speed} MoveState.Run {time} -2
task_die -1
close_sequence_task 220@
perform_sequence_task 94@ {sequence} 220@
clear_sequence_task 220@
set_char_proofs 94@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
remove_script_fire 138@
138@ = start_char_fire 94@
set_char_health 94@ {health} 55
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4000
return 

:CRASH1_26924
set_fixed_camera_position 2343.5601 {y} -1168.507 {z} 32.4408 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2344.3911 {y} -1169.01 {z} 32.6753 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
return 

:CRASH1_26993
switch_entry_exit 'GANG' {state} True
282@, 283@, 284@ = get_char_coordinates $scplayer
load_scene 282@ {y} 283@ {z} 284@
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
set_area_visible 0
return 

:CRASH1_27063
if or
  is_char_dead 95@
  211@ == 99
goto_if_false @CRASH1_27088
return 

:CRASH1_27088
if 
  is_int_lvar_greater_than_int_lvar 201@ > 45@
goto_if_false @CRASH1_27109
return 

:CRASH1_27109
if 
  211@ == 0
goto_if_false @CRASH1_27186
if 
  350@ == 1
goto_if_false @CRASH1_27170
set_lvar_int_to_lvar_int 201@ = 45@
201@ += 120000
goto @CRASH1_27179

:CRASH1_27170
211@ = generate_random_int_in_range 1 {max} 5

:CRASH1_27179
goto @CRASH1_27544

:CRASH1_27186
295@ = 1.0
switch_start 211@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27487 {caseNum1} 1 {caseLabel1} @CRASH1_27259 {caseNum2} 2 {caseLabel2} @CRASH1_27316 {caseNum3} 3 {caseLabel3} @CRASH1_27373 {caseNum4} 4 {caseLabel4} @CRASH1_27430 {caseNum5} -1 {caseLabel5} @CRASH1_27487 {caseNum6} -1 {caseLabel6} @CRASH1_27487 {caseNum7} -1 {caseLabel7} @CRASH1_27487

:CRASH1_27259
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_01"
goto_if_false @CRASH1_27309
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_01"

:CRASH1_27309
goto @CRASH1_27487

:CRASH1_27316
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_02"
goto_if_false @CRASH1_27366
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_02"

:CRASH1_27366
goto @CRASH1_27487

:CRASH1_27373
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_03"
goto_if_false @CRASH1_27423
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_03"

:CRASH1_27423
goto @CRASH1_27487

:CRASH1_27430
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_04"
goto_if_false @CRASH1_27480
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_04"

:CRASH1_27480
goto @CRASH1_27487

:CRASH1_27487
if 
  295@ <> 1.0
goto_if_false @CRASH1_27510
return 

:CRASH1_27510
211@ = 0
214@ = generate_random_int_in_range 500 {max} 2000
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@

:CRASH1_27544
switch_start 211@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27885 {caseNum1} 0 {caseLabel1} @CRASH1_27607 {caseNum2} 1 {caseLabel2} @CRASH1_27689 {caseNum3} 2 {caseLabel3} @CRASH1_27738 {caseNum4} 3 {caseLabel4} @CRASH1_27787 {caseNum5} 4 {caseLabel5} @CRASH1_27836 {caseNum6} -1 {caseLabel6} @CRASH1_27885 {caseNum7} -1 {caseLabel7} @CRASH1_27885

:CRASH1_27607
if 
  not is_char_playing_anim 95@ {animationName} "BD_PANIC_LOOP"
goto_if_false @CRASH1_27682
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CRASH1_27682
goto @CRASH1_27885

:CRASH1_27689
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_01" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27738
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_02" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27787
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_03" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27836
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_04" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27885
if 
  341@ == 0
goto_if_false @CRASH1_27905
return 

:CRASH1_27905
if and
  49@ <> 1
  49@ <> 2
  49@ <> 0
goto_if_false @CRASH1_27939
return 

:CRASH1_27939
if 
  211@ == 0
goto_if_false @CRASH1_28132
if or
  is_local_var_bit_set_const 54@ {bitIndex} 1
  is_local_var_bit_set_const 54@ {bitIndex} 2
goto_if_false @CRASH1_27996
clear_local_var_bit_const 54@ {bitIndex} 1
clear_local_var_bit_const 54@ {bitIndex} 2

:CRASH1_27996
if 
  49@ == 0
goto_if_false @CRASH1_28130
214@ = generate_random_int_in_range 0 {max} 3
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_28128 {caseNum1} 0 {caseLabel1} @CRASH1_28086 {caseNum2} 1 {caseLabel2} @CRASH1_28107 {caseNum3} -1 {caseLabel3} @CRASH1_28130 {caseNum4} -1 {caseLabel4} @CRASH1_28130 {caseNum5} -1 {caseLabel5} @CRASH1_28130 {caseNum6} -1 {caseLabel6} @CRASH1_28130 {caseNum7} -1 {caseLabel7} @CRASH1_28130

:CRASH1_28086
50@ = 1
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28107
50@ = 2
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28128
return 

:CRASH1_28130
return 

:CRASH1_28132
if and
  211@ >= 1
  4 >= 211@
goto_if_false @CRASH1_28244
if and
  48@ == 1
  is_char_in_area_3d $scplayer {leftBottomX} 2327.2419 {leftBottomY} -1175.052 {leftBottomZ} 24.6005 {rightTopX} 2361.9519 {rightTopY} -1149.0909 {rightTopZ} 28.2697 {drawSphere} False
goto_if_false @CRASH1_28244
if 
  49@ == 2
goto_if_false @CRASH1_28237
56@ = 0

:CRASH1_28237
gosub @CRASH1_33143

:CRASH1_28244
return 

:CRASH1_28246
print_now 'CRA1_07' {time} 5000 {flag} 1
$sw7_funeraltimer = 100
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000
display_onscreen_counter_with_string $sw7_funeraltimer {display} CounterDisplay.Bar {text} 'CRA1_70'
337@ = 1
set_char_health 95@ {health} 100
return 

:CRASH1_28317
if 
  is_char_dead 95@
goto_if_false @CRASH1_28335
return 

:CRASH1_28335
214@ = get_char_health 95@
if 
  is_int_lvar_greater_than_int_lvar 45@ > 202@
goto_if_false @CRASH1_28465
214@ -= 1
282@, 283@, 284@ = get_char_coordinates 95@
215@ = get_number_of_fires_in_range 282@ {y} 283@ {z} 284@ {radius} 1.2
if and
  215@ > 0
  314@ == 1
goto_if_false @CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 100
goto @CRASH1_28465

:CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000

:CRASH1_28465
if 
  0 > 214@
goto_if_false @CRASH1_28490
214@ = 0

:CRASH1_28490
if 
  214@ == 0
goto_if_false @CRASH1_28605
clear_char_tasks_immediately 95@
remove_script_fire 139@
139@ = start_char_fire 95@
set_char_health 95@ {health} 20
task_die 95@
freeze_char_position 95@ {state} False
211@ = 99
clear_onscreen_counter $sw7_funeraltimer
print_now 'CRA1_50' {time} 5000 {flag} 1
340@ = 1
285@ = 180.0
set_char_heading 95@ {heading} 285@
goto @CRASH1_28613

:CRASH1_28605
set_char_health 95@ {health} 214@

:CRASH1_28613
set_var_int_to_lvar_int $sw7_funeraltimer = 214@
return 

:CRASH1_28623
282@ = 2342.7419
283@ = -1184.731
284@ = 1026.9771
285@ = 274.3023
96@ = create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@
set_char_has_used_entry_exit 96@ {x} 2352.114 {y} -1170.61 {radius} 2.0
set_char_area_visible 96@ {areaId} 5
set_char_heading 96@ {heading} 285@
set_char_decision_maker 96@ {handleOrTemplate} 180@
set_char_health 96@ {health} 20
set_char_max_health 96@ {maxHealth} 100
set_char_relationship 96@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 96@ {accuracy} 5
140@ = start_char_fire 96@
task_dead 96@
188@ = 0
282@ = 2322.563
283@ = -1185.218
284@ = 1026.9771
285@ = 292.9689
97@ = create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@
set_char_has_used_entry_exit 97@ {x} 2352.114 {y} -1170.61 {radius} 2.0
set_char_area_visible 97@ {areaId} 5
set_char_heading 97@ {heading} 285@
set_char_decision_maker 97@ {handleOrTemplate} 180@
set_char_health 97@ {health} 20
set_char_max_health 97@ {maxHealth} 100
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 97@ {accuracy} 5
141@ = start_char_fire 97@
task_dead 97@
189@ = 0
360@ = 1
return 

:CRASH1_28934
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_char_coordinates $scplayer {x} 2344.5349 {y} -1181.745 {z} 1030.9611
set_char_heading $scplayer {heading} 359.8736
set_fixed_camera_position 2344.624 {y} -1185.354 {z} 1033.783 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2344.6951 {y} -1184.373 {z} 1033.6021 {switchStyle} SwitchType.JumpCut
192@ = 4
gosub @CRASH1_24873
191@ = 1
gosub @CRASH1_24064
return 

:CRASH1_29056
213@ = 0

:CRASH1_29063
remove_char_elegantly 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_29063
213@ = 0

:CRASH1_29100
remove_char_elegantly 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_29100
return 

:CRASH1_29132
switch_start 190@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_29657 {caseNum1} -1 {caseLabel1} @CRASH1_29195 {caseNum2} 0 {caseLabel2} @CRASH1_29250 {caseNum3} 1 {caseLabel3} @CRASH1_29382 {caseNum4} 2 {caseLabel4} @CRASH1_29466 {caseNum5} 3 {caseLabel5} @CRASH1_29492 {caseNum6} -1 {caseLabel6} @CRASH1_29657 {caseNum7} -1 {caseLabel7} @CRASH1_29657

:CRASH1_29195
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
task_follow_footsteps 95@ {target} $scplayer
set_player_group_to_follow_always $player1 {state} True
190@ = 0
goto @CRASH1_29657

:CRASH1_29250
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29375
gosub @CRASH1_29659
if 
  328@ == 1
goto_if_false @CRASH1_29333
342@ = 1
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
190@ = 1
goto @CRASH1_29375

:CRASH1_29333
40@ = get_script_task_status 95@ {taskId} 2128
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_29375
clear_char_tasks_immediately 95@
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_29375
goto @CRASH1_29657

:CRASH1_29382
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29459
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29459
clear_char_tasks_immediately 95@
task_follow_footsteps 95@ {target} $scplayer
342@ = 0
190@ = 0

:CRASH1_29459
goto @CRASH1_29657

:CRASH1_29466
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
190@ = 3
goto @CRASH1_29657

:CRASH1_29492
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @CRASH1_29650
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29650
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29600
task_follow_footsteps 95@ {target} $scplayer
190@ = 0
goto @CRASH1_29650

:CRASH1_29600
220@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_stand_still -1 {time} -2
close_sequence_task 220@
perform_sequence_task 95@ {sequence} 220@
clear_sequence_task 220@
342@ = 1
190@ = 1

:CRASH1_29650
goto @CRASH1_29657

:CRASH1_29657
return 

:CRASH1_29659
switch_start 196@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31025 {caseNum1} 0 {caseLabel1} @CRASH1_29722 {caseNum2} 1 {caseLabel2} @CRASH1_29952 {caseNum3} 2 {caseLabel3} @CRASH1_30182 {caseNum4} 3 {caseLabel4} @CRASH1_30412 {caseNum5} 4 {caseLabel5} @CRASH1_30642 {caseNum6} -1 {caseLabel6} @CRASH1_31025 {caseNum7} -1 {caseLabel7} @CRASH1_31025

:CRASH1_29722
289@ = 2345.5
289@ -= 2.0
291@ = -1177.1219
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2345.5
290@ += 2.0
292@ = -1177.1219
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_29945
if 
  does_script_fire_exist 163@
goto_if_false @CRASH1_29938
if 
  is_script_fire_extinguished 163@
goto_if_false @CRASH1_29924
196@ += 1
goto @CRASH1_29931

:CRASH1_29924
328@ = 1

:CRASH1_29931
goto @CRASH1_29945

:CRASH1_29938
196@ += 1

:CRASH1_29945
goto @CRASH1_31025

:CRASH1_29952
289@ = 2342.7949
289@ -= 2.0
291@ = -1184.9709
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2342.7949
290@ += 2.0
292@ = -1184.9709
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30175
if 
  does_script_fire_exist 164@
goto_if_false @CRASH1_30168
if 
  is_script_fire_extinguished 164@
goto_if_false @CRASH1_30154
196@ += 1
goto @CRASH1_30161

:CRASH1_30154
328@ = 1

:CRASH1_30161
goto @CRASH1_30175

:CRASH1_30168
196@ += 1

:CRASH1_30175
goto @CRASH1_31025

:CRASH1_30182
289@ = 2334.4451
289@ -= 2.0
291@ = -1181.463
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2334.4451
290@ += 2.0
292@ = -1181.463
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30405
if 
  does_script_fire_exist 165@
goto_if_false @CRASH1_30398
if 
  is_script_fire_extinguished 165@
goto_if_false @CRASH1_30384
196@ += 1
goto @CRASH1_30391

:CRASH1_30384
328@ = 1

:CRASH1_30391
goto @CRASH1_30405

:CRASH1_30398
196@ += 1

:CRASH1_30405
goto @CRASH1_31025

:CRASH1_30412
289@ = 2325.854
289@ -= 2.5
291@ = -1182.636
291@ -= 2.5
293@ = 1026.984
293@ -= 0.5
290@ = 2325.854
290@ += 2.5
292@ = -1182.636
292@ += 2.5
294@ = 1026.984
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30635
if 
  does_script_fire_exist 166@
goto_if_false @CRASH1_30628
if 
  is_script_fire_extinguished 166@
goto_if_false @CRASH1_30614
196@ += 1
goto @CRASH1_30621

:CRASH1_30614
328@ = 1

:CRASH1_30621
goto @CRASH1_30635

:CRASH1_30628
196@ += 1

:CRASH1_30635
goto @CRASH1_31025

:CRASH1_30642
289@ = 2342.9609
289@ -= 2.0
291@ = -1176.906
291@ -= 2.0
293@ = 1026.9771
293@ -= 0.5
290@ = 2342.9609
290@ += 2.0
292@ = -1176.906
292@ += 2.0
294@ = 1026.9771
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_31018
289@ = 2344.99
291@ = -1178.3979
293@ = 1026.9771
213@ = 0

:CRASH1_30835
if 
  does_script_fire_exist 142@(213@,21i)
goto_if_false @CRASH1_30946
if 
  not is_script_fire_extinguished 142@(213@,21i)
goto_if_false @CRASH1_30946
290@, 292@, 294@ = get_script_fire_coords 142@(213@,21i)
295@ = get_distance_between_coords_3d 289@ {fromY} 291@ {fromZ} 293@ {toX} 290@ {toY} 292@ {toZ} 294@
if 
  3.0 >= 295@
goto_if_false @CRASH1_30946
328@ = 1
return 

:CRASH1_30946
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_30835
214@ = get_number_of_fires_in_range 289@ {y} 291@ {z} 293@ {radius} 3.0
if 
  214@ <> 0
goto_if_false @CRASH1_31011
328@ = 1

:CRASH1_31011
196@ += 1

:CRASH1_31018
goto @CRASH1_31025

:CRASH1_31025
return 

:CRASH1_31027
214@ = 0
switch_start 193@(214@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31468 {caseNum1} 0 {caseLabel1} @CRASH1_31101 {caseNum2} 1 {caseLabel2} @CRASH1_31108 {caseNum3} 2 {caseLabel3} @CRASH1_31213 {caseNum4} 3 {caseLabel4} @CRASH1_31317 {caseNum5} 4 {caseLabel5} @CRASH1_31378 {caseNum6} 5 {caseLabel6} @CRASH1_31461 {caseNum7} -1 {caseLabel7} @CRASH1_31468

:CRASH1_31101
goto @CRASH1_31468

:CRASH1_31108
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_1A
282@ = 2338.0
283@ = -1180.0
284@ = 1030.5
285@ = 90.0
create_object_no_offset #BD_FIRE1_O {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 285@
193@(214@,3i) = 2
goto @CRASH1_31468

:CRASH1_31213
if 
  does_object_exist 119@(214@,3i)
goto_if_false @CRASH1_31310
if 
play_object_anim 119@(214@,3i) {animationName} "BD_FIRE1" {animationFile} "BD_FIRE" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @CRASH1_31299
193@(214@,3i) = 3
goto @CRASH1_31310

:CRASH1_31299
193@(214@,3i) = 4

:CRASH1_31310
goto @CRASH1_31468

:CRASH1_31317
295@ = get_object_anim_current_time 119@(214@,3i) {animationName} "BD_FIRE1"
if 
  295@ == 1.0
goto_if_false @CRASH1_31371
193@(214@,3i) = 4

:CRASH1_31371
goto @CRASH1_31468

:CRASH1_31378
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BD_FIRE1_O
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
create_object_no_offset #BREAK_WALL_1B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 5
goto @CRASH1_31468

:CRASH1_31461
goto @CRASH1_31468

:CRASH1_31468
return 

:CRASH1_31470
214@ = 1
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31655 {caseNum1} 0 {caseLabel1} @CRASH1_31544 {caseNum2} 1 {caseLabel2} @CRASH1_31551 {caseNum3} 2 {caseLabel3} @CRASH1_31558 {caseNum4} 3 {caseLabel4} @CRASH1_31565 {caseNum5} 4 {caseLabel5} @CRASH1_31648 {caseNum6} -1 {caseLabel6} @CRASH1_31655 {caseNum7} -1 {caseLabel7} @CRASH1_31655

:CRASH1_31544
goto @CRASH1_31655

:CRASH1_31551
goto @CRASH1_31655

:CRASH1_31558
goto @CRASH1_31655

:CRASH1_31565
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_2A
282@ = 2330.4021
283@ = -1179.15
284@ = 1030.55
create_object_no_offset #BREAK_WALL_2B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 4
goto @CRASH1_31655

:CRASH1_31648
goto @CRASH1_31655

:CRASH1_31655
return 

:CRASH1_31657
214@ = 2
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31842 {caseNum1} 0 {caseLabel1} @CRASH1_31731 {caseNum2} 1 {caseLabel2} @CRASH1_31738 {caseNum3} 2 {caseLabel3} @CRASH1_31745 {caseNum4} 3 {caseLabel4} @CRASH1_31752 {caseNum5} 4 {caseLabel5} @CRASH1_31835 {caseNum6} -1 {caseLabel6} @CRASH1_31842 {caseNum7} -1 {caseLabel7} @CRASH1_31842

:CRASH1_31731
goto @CRASH1_31842

:CRASH1_31738
goto @CRASH1_31842

:CRASH1_31745
goto @CRASH1_31842

:CRASH1_31752
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_3A
282@ = 2340.293
283@ = -1182.2939
284@ = 1026.957
create_object_no_offset #BREAK_WALL_3B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 4
goto @CRASH1_31842

:CRASH1_31835
goto @CRASH1_31842

:CRASH1_31842
return 

:CRASH1_31844
create_emergency_services_car 407 {x} 2340.637 {y} -1152.722 {z} 25.9686
return 

:CRASH1_31866
213@ = 0

:CRASH1_31873
if 
  343@(213@,2i) == 0
goto_if_false @CRASH1_31910
set_lvar_int_to_lvar_int 212@ = 213@
gosub @CRASH1_31933

:CRASH1_31910
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_31873
return 

:CRASH1_31933
if 
  343@(212@,2i) == 1
goto_if_false @CRASH1_31957
return 

:CRASH1_31957
switch_start 212@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32114 {caseNum1} 0 {caseLabel1} @CRASH1_32020 {caseNum2} 1 {caseLabel2} @CRASH1_32067 {caseNum3} -1 {caseLabel3} @CRASH1_32143 {caseNum4} -1 {caseLabel4} @CRASH1_32143 {caseNum5} -1 {caseLabel5} @CRASH1_32143 {caseNum6} -1 {caseLabel6} @CRASH1_32143 {caseNum7} -1 {caseLabel7} @CRASH1_32143

:CRASH1_32020
create_money_pickup 2338.551 {y} -1186.939 {z} 1027.9771 {cashAmount} 500 {permanent} True {var_handle} 136@(212@,2i)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32067
create_money_pickup 2348.1841 {y} -1173.1639 {z} 1031.9771 {cashAmount} 500 {permanent} True {var_handle} 136@(212@,2i)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32114
write_debug_with_int "ILLEGAL_CASH_PICKUP_ID" {number} 212@

:CRASH1_32143
return 

:CRASH1_32145
switch_start 48@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32229 {caseNum1} 0 {caseLabel1} @CRASH1_32208 {caseNum2} 1 {caseLabel2} @CRASH1_32208 {caseNum3} 2 {caseLabel3} @CRASH1_32215 {caseNum4} 3 {caseLabel4} @CRASH1_32208 {caseNum5} 4 {caseLabel5} @CRASH1_32208 {caseNum6} -1 {caseLabel6} @CRASH1_32265 {caseNum7} -1 {caseLabel7} @CRASH1_32265

:CRASH1_32208
goto @CRASH1_32265

:CRASH1_32215
gosub @CRASH1_32405
goto @CRASH1_32265

:CRASH1_32229
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:CRASH1_32265
return 

:CRASH1_32267
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32288
return 

:CRASH1_32288
214@ = 1
57@(214@,3i) = 1
load_mission_audio 214@ {audioId} 60@(53@,9i)
53@ += 1
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32346
return 

:CRASH1_32346
214@ += 1
if 
  214@ > 2
goto_if_false @CRASH1_32373
return 

:CRASH1_32373
57@(214@,3i) = 1
load_mission_audio 214@ {audioId} 60@(53@,9i)
53@ += 1
return 

:CRASH1_32405
gosub @CRASH1_33674
if 
  48@ == 3
goto_if_false @CRASH1_32439
gosub @CRASH1_32673
return 

:CRASH1_32439
switch_start 57@(47@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32640 {caseNum1} 0 {caseLabel1} @CRASH1_32506 {caseNum2} 1 {caseLabel2} @CRASH1_32515 {caseNum3} 2 {caseLabel3} @CRASH1_32551 {caseNum4} 3 {caseLabel4} @CRASH1_32608 {caseNum5} -1 {caseLabel5} @CRASH1_32671 {caseNum6} -1 {caseLabel6} @CRASH1_32671 {caseNum7} -1 {caseLabel7} @CRASH1_32671

:CRASH1_32506
return 
goto @CRASH1_32671

:CRASH1_32515
if 
  not has_mission_audio_loaded 47@
goto_if_false @CRASH1_32533
return 

:CRASH1_32533
57@(47@,3i) = 2
goto @CRASH1_32671

:CRASH1_32551
play_mission_audio 47@
if 
  56@ == 1
goto_if_false @CRASH1_32588
print_now 69@(51@,9s) {time} 10000 {flag} 1

:CRASH1_32588
57@(47@,3i) = 3
return 
goto @CRASH1_32671

:CRASH1_32608
if 
  not has_mission_audio_finished 47@
goto_if_false @CRASH1_32626
return 

:CRASH1_32626
gosub @CRASH1_32726
goto @CRASH1_32671

:CRASH1_32640
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:CRASH1_32671
return 

:CRASH1_32673
214@ = 1

:CRASH1_32680
if 
  2 >= 214@
goto_if_false @CRASH1_32717
clear_mission_audio 214@
214@ += 1
goto @CRASH1_32680

:CRASH1_32717
gosub @CRASH1_32855
return 

:CRASH1_32726
57@(47@,3i) = 0
51@ += 1
if 
  is_int_lvar_equal_to_int_lvar 51@ == 52@
goto_if_false @CRASH1_32772
gosub @CRASH1_32855
return 

:CRASH1_32772
if 
  is_int_lvar_greater_than_int_lvar 52@ > 53@
goto_if_false @CRASH1_32821
57@(47@,3i) = 1
load_mission_audio 47@ {audioId} 60@(53@,9i)
53@ += 1

:CRASH1_32821
47@ += 1
if 
  47@ > 2
goto_if_false @CRASH1_32853
47@ = 1

:CRASH1_32853
return 

:CRASH1_32855
set_local_var_bit_lvar 54@ {var_bitIndex} 49@
49@ = 0
48@ = 0
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
214@ = 1

:CRASH1_32919
if 
  2 > 214@
goto_if_false @CRASH1_32962
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_32919

:CRASH1_32962
clear_small_prints 
set_lvar_int_to_lvar_int 55@ = 45@
55@ += 120
return 

:CRASH1_32981
if 
  48@ <> 0
goto_if_false @CRASH1_33006
gosub @CRASH1_33172

:CRASH1_33006
if 
  is_int_lvar_greater_than_int_lvar 55@ > 45@
goto_if_false @CRASH1_33027
return 

:CRASH1_33027
55@ = 0
set_lvar_int_to_lvar_int 49@ = 50@
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
56@ = 1
214@ = 1

:CRASH1_33091
if 
  2 > 214@
goto_if_false @CRASH1_33134
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_33091

:CRASH1_33134
gosub @CRASH1_33201
return 

:CRASH1_33143
if 
  48@ <> 1
goto_if_false @CRASH1_33163
return 

:CRASH1_33163
48@ = 2
return 

:CRASH1_33172
if 
  48@ == 0
goto_if_false @CRASH1_33192
return 

:CRASH1_33192
gosub @CRASH1_32673
return 

:CRASH1_33201
switch_start 49@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @CRASH1_33632 {caseNum1} 1 {caseLabel1} @CRASH1_33394 {caseNum2} 2 {caseLabel2} @CRASH1_33408 {caseNum3} 3 {caseLabel3} @CRASH1_33422 {caseNum4} 5 {caseLabel4} @CRASH1_33436 {caseNum5} 6 {caseLabel5} @CRASH1_33450 {caseNum6} 7 {caseLabel6} @CRASH1_33464 {caseNum7} 8 {caseLabel7} @CRASH1_33478
switch_continued 9 {caseLabel1} @CRASH1_33492 {caseNum2} 10 {caseLabel2} @CRASH1_33506 {caseNum3} 11 {caseLabel3} @CRASH1_33520 {caseNum4} 12 {caseLabel4} @CRASH1_33534 {caseNum5} 13 {caseLabel5} @CRASH1_33548 {caseNum6} 14 {caseLabel6} @CRASH1_33562 {caseNum7} 15 {caseLabel7} @CRASH1_33576 {caseNum8} 16 {caseLabel8} @CRASH1_33590 {caseNum9} 17 {caseLabel9} @CRASH1_33604
switch_continued 18 {caseLabel1} @CRASH1_33618 {caseNum2} -1 {caseLabel2} @CRASH1_33658 {caseNum3} -1 {caseLabel3} @CRASH1_33658 {caseNum4} -1 {caseLabel4} @CRASH1_33658 {caseNum5} -1 {caseLabel5} @CRASH1_33658 {caseNum6} -1 {caseLabel6} @CRASH1_33658 {caseNum7} -1 {caseLabel7} @CRASH1_33658 {caseNum8} -1 {caseLabel8} @CRASH1_33658 {caseNum9} -1 {caseLabel9} @CRASH1_33658

:CRASH1_33394
gosub @CRASH1_34116
goto @CRASH1_33658

:CRASH1_33408
gosub @CRASH1_34523
goto @CRASH1_33658

:CRASH1_33422
gosub @CRASH1_34749
goto @CRASH1_33658

:CRASH1_33436
gosub @CRASH1_34888
goto @CRASH1_33658

:CRASH1_33450
gosub @CRASH1_35028
goto @CRASH1_33658

:CRASH1_33464
gosub @CRASH1_35059
goto @CRASH1_33658

:CRASH1_33478
gosub @CRASH1_35090
goto @CRASH1_33658

:CRASH1_33492
gosub @CRASH1_35230
goto @CRASH1_33658

:CRASH1_33506
gosub @CRASH1_35261
goto @CRASH1_33658

:CRASH1_33520
gosub @CRASH1_35401
goto @CRASH1_33658

:CRASH1_33534
gosub @CRASH1_35866
goto @CRASH1_33658

:CRASH1_33548
gosub @CRASH1_35897
goto @CRASH1_33658

:CRASH1_33562
gosub @CRASH1_36074
goto @CRASH1_33658

:CRASH1_33576
gosub @CRASH1_36473
goto @CRASH1_33658

:CRASH1_33590
gosub @CRASH1_36504
goto @CRASH1_33658

:CRASH1_33604
gosub @CRASH1_36644
goto @CRASH1_33658

:CRASH1_33618
gosub @CRASH1_36675
goto @CRASH1_33658

:CRASH1_33632
write_debug "UNKNOWN_CONVERSATION"
return 

:CRASH1_33658
gosub @CRASH1_32267
48@ = 1
return 

:CRASH1_33674
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33834 {caseNum1} 3 {caseLabel1} @CRASH1_33802 {caseNum2} 5 {caseLabel2} @CRASH1_33802 {caseNum3} 6 {caseLabel3} @CRASH1_33802 {caseNum4} 7 {caseLabel4} @CRASH1_33802 {caseNum5} 8 {caseLabel5} @CRASH1_33802 {caseNum6} 9 {caseLabel6} @CRASH1_33802 {caseNum7} 10 {caseLabel7} @CRASH1_33802
switch_continued 11 {caseLabel1} @CRASH1_33802 {caseNum2} 12 {caseLabel2} @CRASH1_33802 {caseNum3} 13 {caseLabel3} @CRASH1_33802 {caseNum4} 14 {caseLabel4} @CRASH1_33802 {caseNum5} 15 {caseLabel5} @CRASH1_33802 {caseNum6} 16 {caseLabel6} @CRASH1_33802 {caseNum7} 17 {caseLabel7} @CRASH1_33802 {caseNum8} 18 {caseLabel8} @CRASH1_33802 {caseNum9} -1 {caseLabel9} @CRASH1_33834

:CRASH1_33802
if 
  is_char_dead $scplayer
goto_if_false @CRASH1_33827
48@ = 3
return 

:CRASH1_33827
goto @CRASH1_33834

:CRASH1_33834
switch_start 49@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33994 {caseNum1} 1 {caseLabel1} @CRASH1_33962 {caseNum2} 2 {caseLabel2} @CRASH1_33962 {caseNum3} 5 {caseLabel3} @CRASH1_33962 {caseNum4} 6 {caseLabel4} @CRASH1_33962 {caseNum5} 7 {caseLabel5} @CRASH1_33962 {caseNum6} 8 {caseLabel6} @CRASH1_33962 {caseNum7} 9 {caseLabel7} @CRASH1_33962
switch_continued 10 {caseLabel1} @CRASH1_33962 {caseNum2} 11 {caseLabel2} @CRASH1_33962 {caseNum3} 12 {caseLabel3} @CRASH1_33962 {caseNum4} 13 {caseLabel4} @CRASH1_33962 {caseNum5} 14 {caseLabel5} @CRASH1_33962 {caseNum6} 15 {caseLabel6} @CRASH1_33962 {caseNum7} 16 {caseLabel7} @CRASH1_33962 {caseNum8} 17 {caseLabel8} @CRASH1_33962 {caseNum9} 18 {caseLabel9} @CRASH1_33962

:CRASH1_33962
if 
  is_char_dead 95@
goto_if_false @CRASH1_33987
48@ = 3
return 

:CRASH1_33987
goto @CRASH1_33994

:CRASH1_33994
switch_start 49@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34114 {caseNum1} 14 {caseLabel1} @CRASH1_34057 {caseNum2} -1 {caseLabel2} @CRASH1_34114 {caseNum3} -1 {caseLabel3} @CRASH1_34114 {caseNum4} -1 {caseLabel4} @CRASH1_34114 {caseNum5} -1 {caseLabel5} @CRASH1_34114 {caseNum6} -1 {caseLabel6} @CRASH1_34114 {caseNum7} -1 {caseLabel7} @CRASH1_34114

:CRASH1_34057
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_34082
48@ = 3
return 

:CRASH1_34082
if 
  not is_char_in_any_car 95@
goto_if_false @CRASH1_34107
48@ = 3
return 

:CRASH1_34107
goto @CRASH1_34114

:CRASH1_34114
return 

:CRASH1_34116
214@ = generate_random_int_in_range 0 {max} 9
switch_start 214@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34514 {caseNum1} 0 {caseLabel1} @CRASH1_34253 {caseNum2} 1 {caseLabel2} @CRASH1_34282 {caseNum3} 2 {caseLabel3} @CRASH1_34311 {caseNum4} 3 {caseLabel4} @CRASH1_34340 {caseNum5} 4 {caseLabel5} @CRASH1_34369 {caseNum6} 5 {caseLabel6} @CRASH1_34398 {caseNum7} 6 {caseLabel7} @CRASH1_34427
switch_continued 7 {caseLabel1} @CRASH1_34456 {caseNum2} 8 {caseLabel2} @CRASH1_34485 {caseNum3} -1 {caseLabel3} @CRASH1_34514 {caseNum4} -1 {caseLabel4} @CRASH1_34514 {caseNum5} -1 {caseLabel5} @CRASH1_34514 {caseNum6} -1 {caseLabel6} @CRASH1_34514 {caseNum7} -1 {caseLabel7} @CRASH1_34514 {caseNum8} -1 {caseLabel8} @CRASH1_34514 {caseNum9} -1 {caseLabel9} @CRASH1_34514

:CRASH1_34253
set_lvar_int_to_constant 60@ = 17818
set_lvar_text_label 69@s = 'CRA1_AA'
goto @CRASH1_34514

:CRASH1_34282
set_lvar_int_to_constant 60@ = 17819
set_lvar_text_label 69@s = 'CRA1_AB'
goto @CRASH1_34514

:CRASH1_34311
set_lvar_int_to_constant 60@ = 17820
set_lvar_text_label 69@s = 'CRA1_AC'
goto @CRASH1_34514

:CRASH1_34340
set_lvar_int_to_constant 60@ = 17821
set_lvar_text_label 69@s = 'CRA1_AD'
goto @CRASH1_34514

:CRASH1_34369
set_lvar_int_to_constant 60@ = 17822
set_lvar_text_label 69@s = 'CRA1_AE'
goto @CRASH1_34514

:CRASH1_34398
set_lvar_int_to_constant 60@ = 17823
set_lvar_text_label 69@s = 'CRA1_AF'
goto @CRASH1_34514

:CRASH1_34427
set_lvar_int_to_constant 60@ = 17824
set_lvar_text_label 69@s = 'CRA1_AG'
goto @CRASH1_34514

:CRASH1_34456
set_lvar_int_to_constant 60@ = 17825
set_lvar_text_label 69@s = 'CRA1_AH'
goto @CRASH1_34514

:CRASH1_34485
set_lvar_int_to_constant 60@ = 17863
set_lvar_text_label 69@s = 'CRA1_AJ'
goto @CRASH1_34514

:CRASH1_34514
52@ = 1
return 

:CRASH1_34523
214@ = generate_random_int_in_range 0 {max} 5
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34740 {caseNum1} 0 {caseLabel1} @CRASH1_34595 {caseNum2} 1 {caseLabel2} @CRASH1_34624 {caseNum3} 2 {caseLabel3} @CRASH1_34653 {caseNum4} 3 {caseLabel4} @CRASH1_34682 {caseNum5} 4 {caseLabel5} @CRASH1_34711 {caseNum6} -1 {caseLabel6} @CRASH1_34740 {caseNum7} -1 {caseLabel7} @CRASH1_34740

:CRASH1_34595
set_lvar_int_to_constant 60@ = 17827
set_lvar_text_label 69@s = 'CRA1_BA'
goto @CRASH1_34740

:CRASH1_34624
set_lvar_int_to_constant 60@ = 17828
set_lvar_text_label 69@s = 'CRA1_BB'
goto @CRASH1_34740

:CRASH1_34653
set_lvar_int_to_constant 60@ = 17829
set_lvar_text_label 69@s = 'CRA1_BC'
goto @CRASH1_34740

:CRASH1_34682
set_lvar_int_to_constant 60@ = 17830
set_lvar_text_label 69@s = 'CRA1_BD'
goto @CRASH1_34740

:CRASH1_34711
set_lvar_int_to_constant 60@ = 17831
set_lvar_text_label 69@s = 'CRA1_BE'
goto @CRASH1_34740

:CRASH1_34740
52@ = 1
return 

:CRASH1_34749
214@ = generate_random_int_in_range 0 {max} 2
switch_start 214@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34879 {caseNum1} 0 {caseLabel1} @CRASH1_34821 {caseNum2} 1 {caseLabel2} @CRASH1_34850 {caseNum3} -1 {caseLabel3} @CRASH1_34879 {caseNum4} -1 {caseLabel4} @CRASH1_34879 {caseNum5} -1 {caseLabel5} @CRASH1_34879 {caseNum6} -1 {caseLabel6} @CRASH1_34879 {caseNum7} -1 {caseLabel7} @CRASH1_34879

:CRASH1_34821
set_lvar_int_to_constant 60@ = 17800
set_lvar_text_label 69@s = 'CRA1_CA'
goto @CRASH1_34879

:CRASH1_34850
set_lvar_int_to_constant 60@ = 17801
set_lvar_text_label 69@s = 'CRA1_CB'
goto @CRASH1_34879

:CRASH1_34879
52@ = 1
return 

:CRASH1_34888
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17802
set_lvar_text_label 69@(214@,9s) = 'CRA1_EA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17837
set_lvar_text_label 69@(214@,9s) = 'CRA1_EB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35018
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35018
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35028
set_lvar_int_to_constant 60@ = 17803
set_lvar_text_label 69@s = 'CRA1_EC'
52@ = 1
return 

:CRASH1_35059
set_lvar_int_to_constant 60@ = 17804
set_lvar_text_label 69@s = 'CRA1_ED'
52@ = 1
return 

:CRASH1_35090
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17805
set_lvar_text_label 69@(214@,9s) = 'CRA1_FA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17838
set_lvar_text_label 69@(214@,9s) = 'CRA1_FB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35220
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35220
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35230
set_lvar_int_to_constant 60@ = 17839
set_lvar_text_label 69@s = 'CRA1_GA'
52@ = 1
return 

:CRASH1_35261
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17840
set_lvar_text_label 69@(214@,9s) = 'CRA1_GB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17806
set_lvar_text_label 69@(214@,9s) = 'CRA1_GC'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35391
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35391
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35401
214@ = generate_random_int_in_range 0 {max} 11
switch_start 214@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @CRASH1_35857 {caseNum1} 0 {caseLabel1} @CRASH1_35538 {caseNum2} 1 {caseLabel2} @CRASH1_35567 {caseNum3} 2 {caseLabel3} @CRASH1_35596 {caseNum4} 3 {caseLabel4} @CRASH1_35625 {caseNum5} 4 {caseLabel5} @CRASH1_35654 {caseNum6} 5 {caseLabel6} @CRASH1_35683 {caseNum7} 6 {caseLabel7} @CRASH1_35712
switch_continued 7 {caseLabel1} @CRASH1_35741 {caseNum2} 8 {caseLabel2} @CRASH1_35770 {caseNum3} 9 {caseLabel3} @CRASH1_35799 {caseNum4} 10 {caseLabel4} @CRASH1_35828 {caseNum5} -1 {caseLabel5} @CRASH1_35857 {caseNum6} -1 {caseLabel6} @CRASH1_35857 {caseNum7} -1 {caseLabel7} @CRASH1_35857 {caseNum8} -1 {caseLabel8} @CRASH1_35857 {caseNum9} -1 {caseLabel9} @CRASH1_35857

:CRASH1_35538
set_lvar_int_to_constant 60@ = 17841
set_lvar_text_label 69@s = 'CRA1_HA'
goto @CRASH1_35857

:CRASH1_35567
set_lvar_int_to_constant 60@ = 17842
set_lvar_text_label 69@s = 'CRA1_HB'
goto @CRASH1_35857

:CRASH1_35596
set_lvar_int_to_constant 60@ = 17843
set_lvar_text_label 69@s = 'CRA1_HC'
goto @CRASH1_35857

:CRASH1_35625
set_lvar_int_to_constant 60@ = 17844
set_lvar_text_label 69@s = 'CRA1_HD'
goto @CRASH1_35857

:CRASH1_35654
set_lvar_int_to_constant 60@ = 17807
set_lvar_text_label 69@s = 'CRA1_HE'
goto @CRASH1_35857

:CRASH1_35683
set_lvar_int_to_constant 60@ = 17808
set_lvar_text_label 69@s = 'CRA1_HF'
goto @CRASH1_35857

:CRASH1_35712
set_lvar_int_to_constant 60@ = 17809
set_lvar_text_label 69@s = 'CRA1_HG'
goto @CRASH1_35857

:CRASH1_35741
set_lvar_int_to_constant 60@ = 17810
set_lvar_text_label 69@s = 'CRA1_HH'
goto @CRASH1_35857

:CRASH1_35770
set_lvar_int_to_constant 60@ = 17845
set_lvar_text_label 69@s = 'CRA1_HJ'
goto @CRASH1_35857

:CRASH1_35799
set_lvar_int_to_constant 60@ = 17846
set_lvar_text_label 69@s = 'CRA1_HK'
goto @CRASH1_35857

:CRASH1_35828
set_lvar_int_to_constant 60@ = 17847
set_lvar_text_label 69@s = 'CRA1_HL'
goto @CRASH1_35857

:CRASH1_35857
52@ = 1
return 

:CRASH1_35866
set_lvar_int_to_constant 60@ = 17848
set_lvar_text_label 69@s = 'CRA1_JA'
52@ = 1
return 

:CRASH1_35897
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17849
set_lvar_text_label 69@(214@,9s) = 'CRA1_JB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17811
set_lvar_text_label 69@(214@,9s) = 'CRA1_JC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17850
set_lvar_text_label 69@(214@,9s) = 'CRA1_JD'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36064
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36064
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36074
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17812
set_lvar_text_label 69@(214@,9s) = 'CRA1_KA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17851
set_lvar_text_label 69@(214@,9s) = 'CRA1_KB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17813
set_lvar_text_label 69@(214@,9s) = 'CRA1_KC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17852
set_lvar_text_label 69@(214@,9s) = 'CRA1_KD'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17853
set_lvar_text_label 69@(214@,9s) = 'CRA1_KE'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17814
set_lvar_text_label 69@(214@,9s) = 'CRA1_KF'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17854
set_lvar_text_label 69@(214@,9s) = 'CRA1_KG'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17855
set_lvar_text_label 69@(214@,9s) = 'CRA1_KH'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17815
set_lvar_text_label 69@(214@,9s) = 'CRA1_KJ'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36463
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36463
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36473
set_lvar_int_to_constant 60@ = 17856
set_lvar_text_label 69@s = 'CRA1_LA'
52@ = 1
return 

:CRASH1_36504
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17816
set_lvar_text_label 69@(214@,9s) = 'CRA1_MA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17857
set_lvar_text_label 69@(214@,9s) = 'CRA1_MB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36634
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36634
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36644
set_lvar_int_to_constant 60@ = 17817
set_lvar_text_label 69@s = 'CRA1_MC'
52@ = 1
return 

:CRASH1_36675
set_lvar_int_to_constant 60@ = 17858
set_lvar_text_label 69@s = 'CRA1_MD'
52@ = 1
return 

:CRASH1_36706
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @CRASH1_36755
46@ += 1
if 
  46@ > 2
goto_if_false @CRASH1_36753
46@ = 0

:CRASH1_36753
clear_all_view_variables 

:CRASH1_36755
214@ = get_char_health $scplayer
if 
  not is_char_dead 95@
goto_if_false @CRASH1_36787
215@ = get_char_health 95@

:CRASH1_36787
if 
  46@ == 1
goto_if_false @CRASH1_37000
set_var_int_to_lvar_int $g_Crash1_counterKM1 = 34@
set_var_int_to_lvar_int $Crash1_view_debug = 35@
set_var_int_to_lvar_int $6696 = 45@
set_var_int_to_lvar_int $6697 = 214@
set_var_int_to_lvar_int $6698 = 215@
set_var_int_to_lvar_int $6699 = 190@
$6700 = 0
$6701 = 0
view_integer_variable $6700 {_p2} "IGNORE"
view_integer_variable $6701 {_p2} "IGNORE"
view_integer_variable $g_Crash1_counterKM1 {_p2} "M_STAGE"
view_integer_variable $Crash1_view_debug {_p2} "M_GOALS"
view_integer_variable $6696 {_p2} "M_MISSION_TIMER"
view_integer_variable $6697 {_p2} "PLAYER_HEALTH"
view_integer_variable $6698 {_p2} "COOCHIE_HEALTH"
view_integer_variable $6699 {_p2} "AICOOCHIE"

:CRASH1_37000
if 
  46@ == 2
goto_if_false @CRASH1_37018

:CRASH1_37018
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @CRASH1_37040
38@ = 1

:CRASH1_37040
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CRASH1_37128
if 
  39@ == 0
goto_if_false @CRASH1_37103
39@ = 1
write_debug "LEVEL_PAUSED"
goto @CRASH1_37128

:CRASH1_37103
39@ = 0
write_debug "LEVEL_UNPAUSED"

:CRASH1_37128
return 

:CRASH1_37130
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @CRASH1_37147
return 

:CRASH1_37147
if and
  34@ == 1
  3 > 35@
goto_if_false @CRASH1_37294
clear_area 2311.2339 {y} -1150.613 {z} 25.8027 {radius} 0.5 {clearParticles} False
load_scene 2311.2339 {y} -1150.613 {z} 25.8027
set_char_heading $scplayer {heading} 266.3994
set_char_coordinates $scplayer {x} 2311.2339 {y} -1150.613 {z} 25.8027
set_camera_behind_player 
remove_blip 122@
remove_blip 128@
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Molotov
goto_if_false @CRASH1_37287
remove_pickup 132@
give_weapon_to_char $scplayer {weaponType} WeaponType.Molotov {ammo} 20

:CRASH1_37287
35@ = 3

:CRASH1_37294
if 
  34@ == 2
goto_if_false @CRASH1_37707
213@ = 0

:CRASH1_37319
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_37412
if 
  not has_object_been_damaged 101@(213@,8i)
goto_if_false @CRASH1_37372
break_object 101@(213@,8i) {intensity} 1

:CRASH1_37372
302@(213@,5i) = 1
307@(213@,5i) = 1
delete_object 109@(213@,5i)
remove_blip 123@(213@,5i)

:CRASH1_37412
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37319
209@ = 5
if 
  313@ == 1
goto_if_false @CRASH1_37504
213@ = 0

:CRASH1_37465
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_37465

:CRASH1_37504
if 
  312@ == 1
goto_if_false @CRASH1_37532
remove_pickup 132@
remove_blip 128@

:CRASH1_37532
if 
  355@ == 1
goto_if_false @CRASH1_37616
213@ = 0

:CRASH1_37557
if 
  not is_char_dead 87@(213@,5i)
goto_if_false @CRASH1_37595
clear_char_tasks_immediately 87@(213@,5i)
task_die 87@(213@,5i)

:CRASH1_37595
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37557

:CRASH1_37616
if 
  357@ == 1
goto_if_false @CRASH1_37700
213@ = 0

:CRASH1_37641
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_37679
clear_char_tasks_immediately 92@(213@,2i)
task_die 92@(213@,2i)

:CRASH1_37679
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37641

:CRASH1_37700
gosub @CRASH1_38827

:CRASH1_37707
if and
  34@ == 4
  10 > 35@
goto_if_false @CRASH1_37896
327@ = 1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_37772
give_weapon_to_char $scplayer {weaponType} WeaponType.Extinguisher {ammo} 30000
remove_blip 122@

:CRASH1_37772
clear_area 2336.51 {y} -1181.342 {z} 1030.969 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 279.3672
set_char_coordinates $scplayer {x} 2336.51 {y} -1181.342 {z} 1030.969
set_camera_behind_player 
347@ = 0
set_char_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  49@ <> 0
goto_if_false @CRASH1_37875
gosub @CRASH1_33172

:CRASH1_37875
50@ = 8
gosub @CRASH1_32981
35@ = 11

:CRASH1_37896
if and
  34@ == 6
  8 > 35@
goto_if_false @CRASH1_38059
remove_blip 122@
clear_area 2350.3601 {y} -1180.5601 {z} 1026.9771 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 266.3335
set_char_coordinates $scplayer {x} 2350.3601 {y} -1180.5601 {z} 1026.9771
set_camera_behind_player 
if 
  not is_char_dead 95@
goto_if_false @CRASH1_38052
clear_area 2349.0701 {y} -1181.505 {z} 1026.983 {radius} 0.5 {clearParticles} False
set_char_heading 95@ {heading} 266.6129
set_char_coordinates 95@ {x} 2349.0701 {y} -1181.505 {z} 1026.983

:CRASH1_38052
35@ = 8

:CRASH1_38059
if and
  34@ == 7
  35@ == 2
goto_if_false @CRASH1_38226
clear_area 2423.5391 {y} -1721.212 {z} 12.9061 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 154.9302
set_char_coordinates $scplayer {x} 2423.5391 {y} -1721.212 {z} 12.9061
set_camera_behind_player 
if 
  not is_char_dead 95@
goto_if_false @CRASH1_38226
if 
  not is_char_in_any_car 95@
goto_if_false @CRASH1_38226
clear_area 2419.168 {y} -1718.171 {z} 12.7866 {radius} 0.5 {clearParticles} False
set_char_heading 95@ {heading} 75.9556
set_char_coordinates 95@ {x} 2419.168 {y} -1718.171 {z} 12.7866

:CRASH1_38226
return 

:CRASH1_38228
41@ += 1
if 
  41@ > 9
goto_if_false @CRASH1_38260
41@ = 0

:CRASH1_38260
return 

:CRASH1_38262
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 45@ += 44@
return 

:CRASH1_38301
219@ = get_game_timer 
300@ = 0
if 
  is_int_lvar_greater_than_int_lvar 219@ > 198@
goto_if_false @CRASH1_38355
300@ = 1
set_lvar_int_to_lvar_int 198@ = 219@
198@ += 3000

:CRASH1_38355
return 

:CRASH1_38357
if 
  314@ == 1
goto_if_false @CRASH1_38489
214@ = get_area_visible 
if 
  214@ <> 5
goto_if_false @CRASH1_38487
314@ = 0
316@ = 1
disable_player_sprint $player1 {state} False
197@ = 3
gosub @CRASH1_25459
set_heathaze_effect False
if 
  34@ == 5
goto_if_false @CRASH1_38469
192@ = 5
gosub @CRASH1_24873

:CRASH1_38469
191@ = 5
gosub @CRASH1_23203
set_radar_zoom 0

:CRASH1_38487
return 

:CRASH1_38489
if 
  314@ == 0
goto_if_false @CRASH1_38825
214@ = get_char_area_visible $scplayer
if 
  316@ == 1
goto_if_false @CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38560
return 
goto @CRASH1_38567

:CRASH1_38560
316@ = 0

:CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38825
v$5310 = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$5310 == "GANG"
goto_if_false @CRASH1_38825
314@ = 1
315@ = 1
323@ = 0
203@ = 0
disable_player_sprint $player1 {state} True
197@ = 2
gosub @CRASH1_25459
set_heathaze_effect True
set_char_fire_damage_multiplier $scplayer {_p2} 0.3
switch_ped_roads_on 2300.0 {leftBottomY} -1200.0 {leftBottomZ} 1000.0 {rightTopX} 2370.0 {rightTopY} -1160.0 {rightTopZ} 1050.0
191@ = 0
gosub @CRASH1_24064
if 
  34@ == 4
goto_if_false @CRASH1_38756
192@ = 4
gosub @CRASH1_24873

:CRASH1_38756
if 
  34@ == 5
goto_if_false @CRASH1_38788
192@ = 6
gosub @CRASH1_24873

:CRASH1_38788
gosub @CRASH1_31866
set_radar_zoom 50
show_blips_on_all_levels True
clear_this_print 'CRA1_06'
clear_this_print 'CRA1_10'

:CRASH1_38825
return 

:CRASH1_38827
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:CRASH1_38857
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH1_38872
if 
  get_fading_status 
goto_if_false @CRASH1_38896
wait 0
goto @CRASH1_38872

:CRASH1_38896
set_area_visible 17
set_char_coordinates $scplayer {x} 1038.17 {y} -1335.2209 {z} 12.5493
set_char_heading $scplayer {heading} 0.0
load_cutscene 'CRASH1A'

:CRASH1_38941
if 
  not has_cutscene_loaded 
goto_if_false @CRASH1_38965
wait 0
goto @CRASH1_38941

:CRASH1_38965
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH1_38982
if 
  not has_cutscene_finished 
goto_if_false @CRASH1_39006
wait 0
goto @CRASH1_38982

:CRASH1_39006
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:CRASH1_39020
if 
  get_fading_status 
goto_if_false @CRASH1_39044
wait 0
goto @CRASH1_39020

:CRASH1_39044
clear_cutscene 
set_area_visible 0
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
return 

:CRASH1_39065
if 
  not is_player_playing $player1
goto_if_false @CRASH1_39092
wait 0
goto @CRASH1_39065

:CRASH1_39092
gosub @CRASH1_39285
gosub @CRASH1_39563
clear_area 1038.17 {y} -1335.2209 {z} 12.5493 {radius} 0.5 {clearParticles} False
load_scene 1038.17 {y} -1335.2209 {z} 12.5493
set_char_coordinates $scplayer {x} 1038.17 {y} -1335.2209 {z} 12.5493
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
100@ = create_car 596 {x} 1032.438 {y} -1330.931 {z} 12.3864
set_car_heading 100@ {heading} 270.0
lock_car_doors 100@ {lockStatus} CarLock.Unlocked
mark_car_as_no_longer_needed 100@
switch_entry_exit 'GANG' {state} False
delete_object $ca3_loadingbay
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
$disable_mod_garage = 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
gosub @CRASH1_38827
return 

:CRASH1_39285
request_model 412
request_model 596
request_model 108
request_model 109
request_model 110
request_model 195
request_model 346
request_model 344
request_model 366
request_model #BREAK_WALL_1A
request_model #BREAK_WALL_2A
request_model #BREAK_WALL_3A
request_model #BREAK_WALL_1B
request_model #BREAK_WALL_2B
request_model #BREAK_WALL_3B
request_model #BD_FIRE1_O
request_model #CR_AMMOBOX
load_all_models_now 

:CRASH1_39369
if or
  not has_model_loaded 412
  not has_model_loaded 596
goto_if_false @CRASH1_39401
wait 0
goto @CRASH1_39369

:CRASH1_39401
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 195
goto_if_false @CRASH1_39440
wait 0
goto @CRASH1_39401

:CRASH1_39440
if or
  not has_model_loaded 346
  not has_model_loaded 344
  not has_model_loaded 366
goto_if_false @CRASH1_39477
wait 0
goto @CRASH1_39440

:CRASH1_39477
if or
  not has_model_loaded #BREAK_WALL_1B
  not has_model_loaded #BREAK_WALL_2B
  not has_model_loaded #BREAK_WALL_3B
  not has_model_loaded #BD_FIRE1_O
goto_if_false @CRASH1_39519
wait 0
goto @CRASH1_39477

:CRASH1_39519
if or
  not has_model_loaded #CR_AMMOBOX
  not has_model_loaded #BREAK_WALL_1A
  not has_model_loaded #BREAK_WALL_2A
  not has_model_loaded #BREAK_WALL_3A
goto_if_false @CRASH1_39561
wait 0
goto @CRASH1_39519

:CRASH1_39561
return 

:CRASH1_39563
request_animation "BD_FIRE"

:CRASH1_39574
if 
  not has_animation_loaded "BD_FIRE"
goto_if_false @CRASH1_39607
wait 0
goto @CRASH1_39574

:CRASH1_39607
return 

:CRASH1_39609
282@ = 2351.2371
283@ = -1161.075
284@ = 27.4175
285@ = 268.343
clear_area 282@ {y} 283@ {z} 284@ {radius} 10.0 {clearParticles} False
98@ = create_car 412 {x} 282@ {y} 283@ {z} 284@
set_car_heading 98@ {heading} 285@
open_car_door 98@ {door} CarDoor.Hood
356@ = 1
return 

:CRASH1_39708
282@ = 2354.26
283@ = -1161.106
284@ = 26.4678
285@ = 80.3034
214@ = 0
create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2349.739
283@ = -1165.192
284@ = 26.3933
285@ = 65.0946
214@ += 1
create_char PedType.Gang8 {modelId} 109 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2354.2451
283@ = -1170.401
284@ = 26.9609
285@ = 1.1416
214@ += 1
create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2315.0061
283@ = -1189.825
284@ = 27.0045
285@ = 52.4876
214@ += 1
create_char PedType.Gang8 {modelId} 109 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
set_char_accuracy 87@(214@,5i) {accuracy} 15
182@(214@,5i) = -1
282@ = 2349.9529
283@ = -1204.126
284@ = 26.9609
285@ = 348.4
214@ += 1
create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
355@ = 1
return 

:CRASH1_40373
282@ = 2345.9141
283@ = -1188.6331
284@ = 28.969
214@ = 0
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2336.0229
283@ = -1188.6331
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2326.1641
283@ = -1188.6331
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2345.9771
283@ = -1170.9771
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2326.5701
283@ = -1170.984
284@ = 28.953
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2345.9771
283@ = -1170.9771
284@ = 32.953
214@ += 1
create_object_no_offset #BD_WINDOW_SHATTER {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2336.0229
283@ = -1188.6331
284@ = 32.961
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2345.9141
283@ = -1188.6331
284@ = 32.961
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
return 

:CRASH1_40881
114@ = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading 114@ {heading} 90.0
set_object_dynamic 114@ {state} False
set_object_collision_damage_effect 114@ {state} False
set_object_proofs 114@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 

:CRASH1_40944
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
214@ = 0
create_object_no_offset #BREAK_WALL_1A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 90.0
193@(214@,3i) = 0
282@ = 2330.4021
283@ = -1179.15
284@ = 1030.55
214@ += 1
create_object_no_offset #BREAK_WALL_2A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 0
282@ = 2340.293
283@ = -1182.2939
284@ = 1026.963
214@ += 1
create_object_no_offset #BREAK_WALL_3A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 90.0
193@(214@,3i) = 0
213@ = 0

:CRASH1_41186
set_object_area_visible 119@(213@,3i) {areaId} 5
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_41186
361@ = 1
return 

:CRASH1_41227
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if and
  340@ == 0
  359@ == 1
  is_char_dead 95@
goto_if_false @CRASH1_41289
print_now 'CRA1_51' {time} 5000 {flag} 1

:CRASH1_41289
return 

:CRASH1_41291
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'CRASH_1'
player_made_progress 1
$flag_crash_mission_counter += 1
set_global_var_bit_const $iActiveGF {bitIndex} 0
return 

:CRASH1_41349
if 
  355@ == 1
goto_if_false @CRASH1_41411
213@ = 0

:CRASH1_41374
mark_char_as_no_longer_needed 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_41374
355@ = 0

:CRASH1_41411
if 
  356@ == 1
goto_if_false @CRASH1_41441
mark_car_as_no_longer_needed 98@
356@ = 0

:CRASH1_41441
if 
  313@ == 1
goto_if_false @CRASH1_41512
213@ = 0

:CRASH1_41466
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41466
313@ = 0

:CRASH1_41512
213@ = 0

:CRASH1_41519
remove_pickup 136@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41519
if 
  357@ == 1
goto_if_false @CRASH1_41616
mark_car_as_no_longer_needed 99@
213@ = 0

:CRASH1_41579
mark_char_as_no_longer_needed 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41579
357@ = 0

:CRASH1_41616
if 
  358@ == 1
goto_if_false @CRASH1_41651
mark_char_as_no_longer_needed 94@
remove_script_fire 138@
358@ = 0

:CRASH1_41651
if 
  359@ == 1
goto_if_false @CRASH1_41696
mark_char_as_no_longer_needed 95@
remove_blip 131@
clear_onscreen_counter $sw7_funeraltimer
remove_script_fire 139@
359@ = 1

:CRASH1_41696
if 
  360@ == 1
goto_if_false @CRASH1_41731
remove_char_elegantly 96@
remove_char_elegantly 97@
360@ = 0

:CRASH1_41731
if 
  317@ == 1
goto_if_false @CRASH1_41761
remove_pickup 135@
317@ = 0

:CRASH1_41761
remove_blip 122@
remove_blip 128@
remove_animation "BD_FIRE"
if 
  is_player_playing $player1
goto_if_false @CRASH1_41843
remove_weapon_from_char $scplayer {weaponType} WeaponType.Molotov
remove_weapon_from_char $scplayer {weaponType} WeaponType.Extinguisher
set_char_fire_damage_multiplier $scplayer {_p2} 1.0
disable_player_sprint $player1 {state} False
set_player_group_to_follow_always $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CRASH1_41843
if 
  314@ == 1
goto_if_false @CRASH1_41875
197@ = 3
gosub @CRASH1_25459

:CRASH1_41875
197@ = 1
gosub @CRASH1_25459
197@ = 5
gosub @CRASH1_25459
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 407
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 277
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BREAK_WALL_1A
mark_model_as_no_longer_needed #BREAK_WALL_2A
mark_model_as_no_longer_needed #BREAK_WALL_3A
mark_model_as_no_longer_needed #BREAK_WALL_1B
mark_model_as_no_longer_needed #BREAK_WALL_2B
mark_model_as_no_longer_needed #BREAK_WALL_3B
mark_model_as_no_longer_needed #BD_FIRE1_O
mark_model_as_no_longer_needed #CR_AMMOBOX
set_heathaze_effect False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
set_radar_zoom 0
disable_player_sprint $player1 {state} False
switch_emergency_services True
switch_entry_exit 'GANG' {state} False
set_player_group_recruitment $player1 {state} True
$disable_mod_garage = 0
$ca3_loadingbay = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading $ca3_loadingbay {heading} 90.0
set_object_dynamic $ca3_loadingbay {state} False
set_object_collision_damage_effect $ca3_loadingbay {state} False
set_object_proofs $ca3_loadingbay {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $ca3_loadingbay
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 23---------------
// Originally: Gray Imports

:DRUGS3
script_name 'DRUGS3'
gosub @DRUGS3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS3_38
gosub @DRUGS3_19343

:DRUGS3_38
gosub @DRUGS3_19417
terminate_this_script 

:DRUGS3_47
$onmission = 1
register_mission_given 
load_mission_text 'CRASH3'
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 1036.86 {y} -1336.49 {z} 20.0 {radius} 20.0 {clearParticles} False
load_cutscene 'CRASH3A'

:DRUGS3_116
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS3_140
wait 0
goto @DRUGS3_116

:DRUGS3_140
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS3_149
if 
  not has_cutscene_finished 
goto_if_false @DRUGS3_173
wait 0
goto @DRUGS3_149

:DRUGS3_173
do_fade 0 {direction} Fade.Out

:DRUGS3_179
if 
  get_fading_status 
goto_if_false @DRUGS3_203
wait 0
goto @DRUGS3_179

:DRUGS3_203
clear_cutscene 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
request_model 530
request_model 414
request_model 353
request_model #SEC_KEYPAD
request_model #KMB_RAMP
request_model 429
request_model 461
request_car_recording 342
load_all_models_now 

:DRUGS3_260
if or
  not has_model_loaded 530
  not has_model_loaded 414
  not has_car_recording_been_loaded 342
goto_if_false @DRUGS3_297
wait 0
goto @DRUGS3_260

:DRUGS3_297
if or
  not has_model_loaded #SEC_KEYPAD
  not has_model_loaded 353
  not has_model_loaded #KMB_RAMP
  not has_model_loaded 429
  not has_model_loaded 461
goto_if_false @DRUGS3_344
wait 0
goto @DRUGS3_297

:DRUGS3_344
set_wanted_multiplier 0.1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
52@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 52@ {event} Event.DraggedOutCar
add_char_decision_maker_event_response 52@ {event} Event.DraggedOutCar {taskId} TaskId.ComplexKillPedOnFoot {respect} 50.0 {hate} 50.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
53@ = load_char_decision_maker DecisionMakerType.Weak
set_char_coordinates $scplayer {x} 1038.0 {y} -1339.0 {z} 12.8
set_char_heading $scplayer {heading} 1.0
set_camera_behind_player 
load_scene_in_direction 1038.0 {y} -1340.99 {z} 13.94 {heading} 1.0
do_fade 1500 {direction} Fade.In
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
if 
  $6702 > 0
goto_if_false @DRUGS3_850
set_up_skip 2263.3779 {y} -2226.3301 {z} 12.4 {heading} 47.416

:DRUGS3_850
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS3_876
goto @DRUGS3_19361

:DRUGS3_876
if 
  141@ == 0
goto_if_false @DRUGS3_937
137@ = add_blip_for_coord 2247.6389 {y} -2202.144 {z} 12.59
print_now 'CSH3_1' {time} 7000 {flag} 1
141@ = 1

:DRUGS3_937
if 
  141@ == 1
goto_if_false @DRUGS3_3398
if 
  locate_char_any_means_2d $scplayer {x} 2247.6389 {y} -2202.144 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} True
goto_if_false @DRUGS3_3398
if 
  $6702 == 0
goto_if_false @DRUGS3_1018
$6702 = 1

:DRUGS3_1018
clear_skip 
set_player_control $player1 {state} False
switch_emergency_services False
do_fade 500 {direction} Fade.Out

:DRUGS3_1038
if 
  get_fading_status 
goto_if_false @DRUGS3_1062
wait 0
goto @DRUGS3_1038

:DRUGS3_1062
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS3_1126
$car = store_car_char_is_in_no_save $scplayer
set_car_proofs $car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_heading $car {heading} 128.0
set_car_health $car {health} 2000
goto @DRUGS3_1136

:DRUGS3_1126
set_char_heading $scplayer {heading} 128.0

:DRUGS3_1136
clear_area 2174.896 {y} -2258.9141 {z} 150.0 {radius} 150.0 {clearParticles} True
request_model #IMCMPTRKDRL_LAS
request_model #IMCMPTRKDRR_LAS
request_model #IMCOMPMOVEDR1_LAS
request_model 50
request_model 346
request_model #BARREL4
request_car_recording 310
request_car_recording 328
request_car_recording 329
request_car_recording 309
request_car_recording 347
load_all_models_now 

:DRUGS3_1216
if or
  not has_model_loaded 50
  not has_model_loaded 346
  not has_model_loaded #BARREL4
goto_if_false @DRUGS3_1252
wait 0
goto @DRUGS3_1216

:DRUGS3_1252
if or
  not has_car_recording_been_loaded 310
  not has_car_recording_been_loaded 328
  not has_car_recording_been_loaded 329
  not has_car_recording_been_loaded 309
goto_if_false @DRUGS3_1294
wait 0
goto @DRUGS3_1252

:DRUGS3_1294
if or
  not has_car_recording_been_loaded 347
  not has_model_loaded #IMCMPTRKDRL_LAS
  not has_model_loaded #IMCMPTRKDRR_LAS
  not has_model_loaded #IMCOMPMOVEDR1_LAS
goto_if_false @DRUGS3_1336
wait 0
goto @DRUGS3_1294

:DRUGS3_1336
load_scene 2212.02 {y} -2225.45 {z} 12.24
34@ = create_object #IMCMPTRKDRL_LAS {x} 2192.925 {y} -2231.824 {z} 14.205
35@ = create_object #IMCMPTRKDRR_LAS {x} 2195.072 {y} -2229.5891 {z} 14.205
set_object_heading 34@ {heading} 135.0
set_object_heading 35@ {heading} 85.0
36@ = create_object #IMCMPTRKDRL_LAS {x} 2200.1841 {y} -2224.4189 {z} 14.205
37@ = create_object #IMCMPTRKDRR_LAS {x} 2202.4319 {y} -2222.2661 {z} 14.205
set_object_heading 36@ {heading} 135.0
set_object_heading 37@ {heading} 85.0
38@ = create_object #IMCMPTRKDRL_LAS {x} 2207.7661 {y} -2217.281 {z} 14.205
39@ = create_object #IMCMPTRKDRR_LAS {x} 2210.0139 {y} -2215.0581 {z} 14.205
set_object_heading 38@ {heading} 135.0
set_object_heading 39@ {heading} 85.0
40@ = create_object #IMCMPTRKDRL_LAS {x} 2215.0959 {y} -2210.761 {z} 14.205
41@ = create_object #IMCMPTRKDRR_LAS {x} 2217.344 {y} -2208.5371 {z} 14.205
set_object_heading 40@ {heading} 135.0
set_object_heading 41@ {heading} 85.0
42@ = create_object_no_offset #KMB_RAMP {x} 2193.418 {y} -2231.3521 {z} 14.183
43@ = create_object_no_offset #KMB_RAMP {x} 2194.6421 {y} -2230.1279 {z} 14.183
44@ = create_object_no_offset #KMB_RAMP {x} 2200.686 {y} -2224.019 {z} 14.183
45@ = create_object_no_offset #KMB_RAMP {x} 2201.9099 {y} -2222.7949 {z} 14.183
46@ = create_object_no_offset #KMB_RAMP {x} 2208.2429 {y} -2216.833 {z} 14.183
47@ = create_object_no_offset #KMB_RAMP {x} 2209.468 {y} -2215.6089 {z} 14.183
48@ = create_object_no_offset #KMB_RAMP {x} 2215.489 {y} -2210.406 {z} 14.183
49@ = create_object_no_offset #KMB_RAMP {x} 2216.7129 {y} -2209.1819 {z} 14.183
set_object_rotation 42@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 43@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 44@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 45@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 46@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 47@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 48@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 49@ {x} 0.0 {y} 0.0 {z} 45.0
50@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2178.073 {y} -2254.384 {z} 15.9
set_object_heading 50@ {heading} 224.0
51@ = create_object #SEC_KEYPAD {x} 2174.896 {y} -2258.9141 {z} 15.0
freeze_object_position 51@ {state} True
set_object_heading 51@ {heading} 35.23
set_object_health 51@ {health} 10
set_object_only_damaged_by_player 51@ {state} True
73@ = create_object #BARREL4 {x} 2187.5381 {y} -2255.5811 {z} 12.51
set_object_only_damaged_by_player 73@ {state} True
58@ = create_car 414 {x} 2175.9399 {y} -2268.1001 {z} 12.66
set_car_heading 58@ {heading} 48.24
set_car_health 58@ {health} 450
59@ = create_car 414 {x} 2159.395 {y} -2295.29 {z} 12.688
set_car_heading 59@ {heading} 44.51
set_car_health 59@ {health} 450
60@ = create_car 530 {x} 2174.8701 {y} -2289.22 {z} 12.06
set_car_heading 60@ {heading} 321.59
62@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 50
set_car_straight_line_distance 60@ {distance} 150
set_char_decision_maker 62@ {handleOrTemplate} 52@
61@ = create_car 530 {x} 2193.25 {y} -2256.3999 {z} 12.25
set_car_heading 61@ {heading} 266.92
63@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 50
set_car_straight_line_distance 61@ {distance} 150
set_char_decision_maker 63@ {handleOrTemplate} 52@
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_2503
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_2503
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_2503
71@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
set_object_only_damaged_by_player 71@ {state} True
72@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 72@ {state} True
attach_object_to_car 71@ {handle} 60@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 72@ {handle} 60@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
task_car_drive_to_coord 62@ {vehicle} 60@ {x} 2179.49 {y} -2280.46 {z} 14.03 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_2503
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_2724
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_2724
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_2724
69@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
set_object_only_damaged_by_player 69@ {state} True
70@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 70@ {state} True
attach_object_to_car 69@ {handle} 61@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 70@ {handle} 61@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
task_car_drive_to_coord 63@ {vehicle} 61@ {x} 2209.1001 {y} -2253.6399 {z} 12.25 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_2724
54@ = create_car 429 {x} 2207.7 {y} -2246.157 {z} 12.597
83@ = create_char_inside_car 54@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 83@ {handleOrTemplate} 52@
55@ = create_car 461 {x} 2212.8999 {y} -2241.6001 {z} 12.59
84@ = create_char_inside_car 55@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 84@ {handleOrTemplate} 52@
56@ = create_car 429 {x} 2218.8701 {y} -2234.29 {z} 12.6
85@ = create_char_inside_car 56@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 85@ {handleOrTemplate} 52@
57@ = create_car 461 {x} 2224.3 {y} -2228.1899 {z} 12.597
86@ = create_char_inside_car 57@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 86@ {handleOrTemplate} 52@
64@ = create_char PedType.Mission1 {modelId} 50 {x} 2181.97 {y} -2252.6951 {z} 13.82
set_char_heading 64@ {heading} 231.26
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 64@ {handleOrTemplate} 52@
set_char_accuracy 64@ {accuracy} 30
65@ = create_char PedType.Mission1 {modelId} 50 {x} 2189.6499 {y} -2250.05 {z} 12.597
set_char_heading 65@ {heading} 229.24
set_char_decision_maker 65@ {handleOrTemplate} 52@
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 65@ {accuracy} 30
66@ = create_char PedType.Mission1 {modelId} 50 {x} 2193.126 {y} -2233.95 {z} 12.59
set_char_heading 66@ {heading} 249.77
set_char_decision_maker 66@ {handleOrTemplate} 52@
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 66@ {accuracy} 30
67@ = create_char PedType.Mission1 {modelId} 50 {x} 2199.71 {y} -2257.8411 {z} 12.597
set_char_heading 67@ {heading} 347.22
set_char_decision_maker 67@ {handleOrTemplate} 52@
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 67@ {accuracy} 30
68@ = create_char PedType.Mission1 {modelId} 50 {x} 2200.2 {y} -2256.49 {z} 12.597
set_char_heading 68@ {heading} 168.1
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
set_char_decision_maker 68@ {handleOrTemplate} 52@
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 68@ {accuracy} 30
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1
set_fixed_camera_position 2256.623 {y} -2213.522 {z} 23.0389 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2255.7019 {y} -2213.833 {z} 22.8027 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 55@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 56@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 57@
goto_if_false @DRUGS3_3391
start_playback_recorded_car 55@ {path} 310
start_playback_recorded_car 56@ {path} 328
start_playback_recorded_car 57@ {path} 329
start_playback_recorded_car 54@ {path} 309
print_now 'CSH3_2' {time} 5000 {flag} 1

:DRUGS3_3391
141@ = 2

:DRUGS3_3398
if 
  141@ == 2
goto_if_false @DRUGS3_3490
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3483
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_3483
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3483
pause_playback_recorded_car 54@
TIMERA = 0
141@ = 3

:DRUGS3_3483
skip_cutscene_start_internal @DRUGS3_5144

:DRUGS3_3490
if 
  141@ == 3
goto_if_false @DRUGS3_3679
if 
  TIMERA > 5499
goto_if_false @DRUGS3_3679
set_fixed_camera_position 2207.0139 {y} -2244.207 {z} 13.7376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2206.333 {y} -2243.4861 {z} 13.613 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_3628
task_play_anim 66@ {animationName} "HANDSUP" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3628
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3679
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_3679
unpause_playback_recorded_car 54@
TIMERA = 0
141@ = 4

:DRUGS3_3679
if 
  141@ == 4
goto_if_false @DRUGS3_3833
if 
  TIMERA > 1799
goto_if_false @DRUGS3_3833
set_fixed_camera_position 2205.3711 {y} -2235.2529 {z} 14.1153 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2204.374 {y} -2235.2649 {z} 14.0397 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_3819
task_play_anim 66@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3819
TIMERA = 0
141@ = 5

:DRUGS3_3833
if 
  141@ == 5
goto_if_false @DRUGS3_4088
if 
  TIMERA > 3150
goto_if_false @DRUGS3_4088
print_now 'CSH3_3' {time} 7000 {flag} 2
set_fixed_camera_position 2210.3 {y} -2254.0669 {z} 16.7105 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2209.311 {y} -2254.1809 {z} 16.6143 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 68@
goto_if_false @DRUGS3_3989
task_play_anim 68@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3989
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_4074
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_4074
if 
  not is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_4074
task_car_drive_to_coord 62@ {vehicle} 60@ {x} 2187.8799 {y} -2265.1101 {z} 12.6 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_4074
TIMERA = 0
141@ = 6

:DRUGS3_4088
if 
  TIMERA > 2999
goto_if_false @DRUGS3_5126
if 
  141@ == 6
goto_if_false @DRUGS3_5126
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2177.95 {y} -2261.002 {z} 13.818
set_char_heading 87@ {heading} 45.4
set_char_decision_maker 87@ {handleOrTemplate} 52@
set_fixed_camera_position 2187.0791 {y} -2255.27 {z} 15.5563 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2186.082 {y} -2255.3159 {z} 15.5002 {switchStyle} SwitchType.JumpCut
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2175.29 {y} -2259.22 {z} 14.8 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 75@
perform_sequence_task 87@ {sequence} 75@
clear_sequence_task 75@
if 
  not is_char_dead 64@
goto_if_false @DRUGS3_4345
task_play_anim 64@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_4345
if 
  142@ <> 6
goto_if_false @DRUGS3_5119
wait 0
if 
  142@ == 0
goto_if_false @DRUGS3_4453
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4453
if 
  locate_stopped_char_on_foot_2d 87@ {x} 2175.29 {y} -2259.22 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_4453
TIMERB = 0
142@ = 1

:DRUGS3_4453
if 
  142@ == 1
goto_if_false @DRUGS3_4583
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4583
if 
  locate_stopped_char_on_foot_2d 87@ {x} 2175.29 {y} -2259.22 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_4583
if 
  TIMERB > 1000
goto_if_false @DRUGS3_4583
task_achieve_heading 87@ {heading} 308.1
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart
TIMERB = 0
159@ = 1
142@ = 2

:DRUGS3_4583
if 
  159@ == 1
goto_if_false @DRUGS3_4686
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4686
77@ = get_script_task_status 87@ {taskId} 1492
if or
  is_int_lvar_equal_to_constant 77@ == 7
  TIMERB > 1000
goto_if_false @DRUGS3_4686
task_go_straight_to_coord 87@ {x} 2179.5229 {y} -2256.364 {z} 14.81 {speed} MoveState.Run {time} 5000
159@ = 2

:DRUGS3_4686
if 
  142@ == 2
goto_if_false @DRUGS3_4799
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4799
if 
  does_object_exist 50@
goto_if_false @DRUGS3_4799
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 19.7 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @DRUGS3_4799
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
142@ = 3

:DRUGS3_4799
if 
  142@ == 3
goto_if_false @DRUGS3_4903
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4903
if 
  locate_char_on_foot_2d 87@ {x} 2179.522 {y} -2256.364 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @DRUGS3_4903
task_go_straight_to_coord 87@ {x} 2173.5 {y} -2250.3501 {z} 14.81 {speed} MoveState.Run {time} 5000
142@ = 4

:DRUGS3_4903
if 
  142@ == 4
goto_if_false @DRUGS3_5015
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_5015
if 
  locate_char_on_foot_2d 87@ {x} 2174.3101 {y} -2251.0901 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @DRUGS3_5015
task_go_straight_to_coord 87@ {x} 2168.6599 {y} -2254.9041 {z} 14.59 {speed} MoveState.Run {time} 5000
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart
142@ = 5

:DRUGS3_5015
if 
  142@ == 5
goto_if_false @DRUGS3_5112
if 
  does_object_exist 50@
goto_if_false @DRUGS3_5112
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 15.9 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @DRUGS3_5112
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
142@ = 6

:DRUGS3_5112
goto @DRUGS3_4345

:DRUGS3_5119
141@ = 7

:DRUGS3_5126
if 
  141@ == 7
goto_if_false @DRUGS3_6312

:DRUGS3_5144
skip_cutscene_end 
do_fade 500 {direction} Fade.Out

:DRUGS3_5153
if 
  get_fading_status 
goto_if_false @DRUGS3_5177
wait 0
goto @DRUGS3_5153

:DRUGS3_5177
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
159@ = 0
stop_playback_recorded_car 54@
stop_playback_recorded_car 55@
stop_playback_recorded_car 56@
stop_playback_recorded_car 57@
delete_object 50@
delete_object 42@
delete_object 43@
delete_object 44@
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_object 49@
delete_object 34@
delete_object 35@
delete_object 36@
delete_object 37@
delete_object 38@
delete_object 39@
delete_object 40@
delete_object 41@
delete_car 54@
delete_car 55@
delete_car 56@
delete_car 57@
delete_car 60@
delete_car 61@
delete_char 62@
delete_char 63@
delete_object 69@
delete_object 70@
delete_object 71@
delete_object 72@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
clear_area 2192.925 {y} -2231.824 {z} 100.0 {radius} 100.0 {clearParticles} False
34@ = create_object #IMCMPTRKDRL_LAS {x} 2192.925 {y} -2231.824 {z} 14.205
35@ = create_object #IMCMPTRKDRR_LAS {x} 2195.072 {y} -2229.5891 {z} 14.205
set_object_heading 34@ {heading} 315.0
set_object_heading 35@ {heading} 315.0
36@ = create_object #IMCMPTRKDRL_LAS {x} 2200.1841 {y} -2224.4189 {z} 14.205
37@ = create_object #IMCMPTRKDRR_LAS {x} 2202.4319 {y} -2222.2661 {z} 14.205
set_object_heading 36@ {heading} 315.0
set_object_heading 37@ {heading} 315.0
38@ = create_object #IMCMPTRKDRL_LAS {x} 2207.7661 {y} -2217.281 {z} 14.205
39@ = create_object #IMCMPTRKDRR_LAS {x} 2210.0139 {y} -2215.0581 {z} 14.205
set_object_heading 38@ {heading} 315.0
set_object_heading 39@ {heading} 315.0
40@ = create_object #IMCMPTRKDRL_LAS {x} 2215.0959 {y} -2210.761 {z} 14.205
41@ = create_object #IMCMPTRKDRR_LAS {x} 2217.344 {y} -2208.5371 {z} 14.205
set_object_heading 40@ {heading} 315.0
set_object_heading 41@ {heading} 315.0
50@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2178.073 {y} -2254.384 {z} 15.9
set_object_heading 50@ {heading} 224.0
60@ = create_car 530 {x} 2176.8899 {y} -2291.75 {z} 12.25
set_car_heading 60@ {heading} 321.59
62@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 50
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 62@ {accuracy} 30
set_car_straight_line_distance 60@ {distance} 150
set_char_decision_maker 62@ {handleOrTemplate} 52@
set_car_health 60@ {health} 600
set_car_only_damaged_by_player 60@ {state} True
61@ = create_car 530 {x} 2210.8101 {y} -2253.72 {z} 12.598
set_car_heading 61@ {heading} 71.09
63@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 50
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 63@ {accuracy} 30
set_car_straight_line_distance 61@ {distance} 150
set_char_decision_maker 63@ {handleOrTemplate} 52@
set_car_only_damaged_by_player 61@ {state} True
set_car_health 61@ {health} 600
69@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
70@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 69@ {state} True
set_object_only_damaged_by_player 70@ {state} True
attach_object_to_car 69@ {handle} 61@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 70@ {handle} 61@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2186.5071 {y} -2244.9929 {z} 15.81
134@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2146.5591 {y} -2244.46 {z} 13.58
135@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2158.8201 {y} -2232.7471 {z} 13.59
request_model 102
request_model #IMY_BBOX
request_animation "SWAT"
request_animation "DODGE"
request_car_recording 347
load_special_character 1 {modelName} 'ANDRE'
load_all_models_now 

:DRUGS3_6144
if or
  not has_model_loaded 102
  not has_animation_loaded "SWAT"
  not has_model_loaded #IMY_BBOX
  not has_car_recording_been_loaded 347
goto_if_false @DRUGS3_6188
wait 0
goto @DRUGS3_6144

:DRUGS3_6188
if or
  not has_animation_loaded "DODGE"
  not has_special_character_loaded 1
goto_if_false @DRUGS3_6223
wait 0
goto @DRUGS3_6188

:DRUGS3_6223
switch_widescreen False
set_player_control $player1 {state} True
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
remove_blip 137@
137@ = add_blip_for_coord 2178.3799 {y} -2254.8899 {z} 13.81
do_fade 500 {direction} Fade.In
111@ = create_object_no_offset #IMY_LA_DOOR {x} 2118.0879 {y} -2274.635 {z} 20.867
set_object_heading 111@ {heading} 225.0
141@ = 8

:DRUGS3_6312
if 
  141@ == 8
goto_if_false @DRUGS3_9925
if 
  149@ == 0
goto_if_false @DRUGS3_6434
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6434
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6434
if 
  locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6434
print_help 'CSH3_7'
149@ = 1

:DRUGS3_6434
if 
  149@ == 1
goto_if_false @DRUGS3_6538
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6538
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6538
if 
  locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6538
print_help 'CSH3_7'
149@ = 2

:DRUGS3_6538
if 
  149@ == 2
goto_if_false @DRUGS3_6631
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6631
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6631
if 
  not locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6631
149@ = 1

:DRUGS3_6631
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6672
if 
  has_object_been_damaged 51@
goto_if_false @DRUGS3_6672
clear_prints 
141@ = 9

:DRUGS3_6672
if 
  147@ == 0
goto_if_false @DRUGS3_9007
if 
  144@ == 0
goto_if_false @DRUGS3_6783
if 
  145@ == 0
goto_if_false @DRUGS3_6783
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6783
144@ = 1
145@ = 1

:DRUGS3_6783
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2172.3601 {leftBottomY} -2207.176 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6849
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS3_6849
147@ = 1

:DRUGS3_6849
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6938
if 
  is_char_shooting $scplayer
goto_if_false @DRUGS3_6915
147@ = 1

:DRUGS3_6915
if 
  is_player_targetting_anything $player1
goto_if_false @DRUGS3_6938
147@ = 1

:DRUGS3_6938
if 
  does_char_exist 62@
goto_if_false @DRUGS3_6980
if 
  has_char_been_damaged_by_char 62@ {handle} $scplayer
goto_if_false @DRUGS3_6980
147@ = 1

:DRUGS3_6980
if 
  does_char_exist 63@
goto_if_false @DRUGS3_7022
if 
  has_char_been_damaged_by_char 62@ {handle} $scplayer
goto_if_false @DRUGS3_7022
147@ = 1

:DRUGS3_7022
if 
  does_char_exist 64@
goto_if_false @DRUGS3_7064
if 
  has_char_been_damaged_by_char 64@ {handle} $scplayer
goto_if_false @DRUGS3_7064
147@ = 1

:DRUGS3_7064
if 
  does_char_exist 65@
goto_if_false @DRUGS3_7106
if 
  has_char_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @DRUGS3_7106
147@ = 1

:DRUGS3_7106
if 
  does_char_exist 66@
goto_if_false @DRUGS3_7148
if 
  has_char_been_damaged_by_char 66@ {handle} $scplayer
goto_if_false @DRUGS3_7148
147@ = 1

:DRUGS3_7148
if 
  does_char_exist 67@
goto_if_false @DRUGS3_7190
if 
  has_char_been_damaged_by_char 67@ {handle} $scplayer
goto_if_false @DRUGS3_7190
147@ = 1

:DRUGS3_7190
if 
  does_char_exist 68@
goto_if_false @DRUGS3_7232
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @DRUGS3_7232
147@ = 1

:DRUGS3_7232
if 
  145@ == 1
goto_if_false @DRUGS3_7350
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7350
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_7350
task_goto_char_offset 66@ {target} $scplayer {time} -1 {radius} 1.5 {heading} 0.0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 18001
load_mission_audio MissionAudioSlot.Slot2 {audioId} 18003
145@ = 2

:DRUGS3_7350
if 
  145@ == 2
goto_if_false @DRUGS3_7436
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7436
if 
  locate_char_any_means_char_2d 66@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS3_7436
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 66@
attach_mission_audio_to_char MissionAudioSlot.Slot2 {handle} 66@
145@ = 3

:DRUGS3_7436
if 
  145@ == 3
goto_if_false @DRUGS3_7512
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7512
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS3_7512
play_mission_audio MissionAudioSlot.Slot1
print_now 'CRA3_EA' {time} 3000 {flag} 1
145@ = 4

:DRUGS3_7512
if 
  145@ == 4
goto_if_false @DRUGS3_7609
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7609
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS3_7609
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS3_7609
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'CRA3_EC' {time} 3000 {flag} 1
145@ = 5

:DRUGS3_7609
if 
  145@ == 5
goto_if_false @DRUGS3_7658
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS3_7658
clear_prints 
147@ = 1
145@ = 6

:DRUGS3_7658
if 
  144@ == 1
goto_if_false @DRUGS3_7784
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_7784
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7784
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_7784
if 
  is_car_on_screen 61@
goto_if_false @DRUGS3_7784
task_car_drive_to_coord 63@ {vehicle} 61@ {x} 2195.8401 {y} -2251.522 {z} 12.598 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
144@ = 2

:DRUGS3_7784
if 
  144@ == 2
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7965
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_7965
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_7965
if 
  locate_stopped_car_2d 61@ {x} 2195.8401 {y} -2251.522 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_7958
task_look_at_char 63@ {target} 65@ {time} 30000
task_go_straight_to_coord 65@ {x} 2197.896 {y} -2249.251 {z} 12.59 {speed} MoveState.Walk {time} -1

:DRUGS3_7958
144@ = 3

:DRUGS3_7965
if 
  144@ == 3
goto_if_false @DRUGS3_8097
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_8097
if 
  is_char_sitting_in_any_car 63@
goto_if_false @DRUGS3_8097
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_8097
if 
  locate_stopped_char_on_foot_2d 65@ {x} 2197.896 {y} -2249.251 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_8097
task_turn_char_to_face_char 65@ {target} 63@
task_look_at_char 63@ {target} 65@ {time} 60000
144@ = 4

:DRUGS3_8097
if 
  144@ == 4
goto_if_false @DRUGS3_8244
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_8244
if 
  is_char_sitting_in_any_car 63@
goto_if_false @DRUGS3_8244
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_8244
if 
  locate_stopped_char_on_foot_2d 65@ {x} 2197.896 {y} -2249.251 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_8244
task_play_anim 65@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
144@ = 5

:DRUGS3_8244
if 
  143@ == 0
goto_if_false @DRUGS3_8320
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8320
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8320
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8320
143@ = 1

:DRUGS3_8320
if 
  143@ == 1
goto_if_false @DRUGS3_8563
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8563
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8563
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8563
if 
  has_car_recording_been_loaded 347
goto_if_false @DRUGS3_8563
start_playback_recorded_car_looped 60@ {pathId} 347
71@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
72@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
attach_object_to_car 71@ {handle} 60@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 72@ {handle} 60@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_only_damaged_by_player 71@ {state} True
set_object_only_damaged_by_player 72@ {state} True
146@ = 1
143@ = 2

:DRUGS3_8563
if 
  143@ == 2
goto_if_false @DRUGS3_8662
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8662
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8662
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8662
if 
  not is_playback_going_on_for_car 60@
goto_if_false @DRUGS3_8662
TIMERA = 0
143@ = 3

:DRUGS3_8662
if 
  143@ == 3
goto_if_false @DRUGS3_8757
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8757
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8757
if 
  is_char_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8757
if 
  TIMERA > 500
goto_if_false @DRUGS3_8757
143@ = 0

:DRUGS3_8757
if 
  146@ == 1
goto_if_false @DRUGS3_8881
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8881
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8881
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8881
if 
  locate_car_2d 60@ {x} 2179.1799 {y} -2270.9199 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRUGS3_8881
delete_object 71@
delete_object 72@
146@ = 0

:DRUGS3_8881
if 
  4 > 143@
goto_if_false @DRUGS3_9007
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8995
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8976
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8957
goto @DRUGS3_8969

:DRUGS3_8957
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_8969
goto @DRUGS3_8988

:DRUGS3_8976
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_8988
goto @DRUGS3_9007

:DRUGS3_8995
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_9007
if 
  147@ == 1
goto_if_false @DRUGS3_9461
if 
  not is_char_dead 67@
goto_if_false @DRUGS3_9086
set_lvar_int_to_lvar_int 112@ = 67@
116@ = 2203.1201
117@ = -2264.7671
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9086
if 
  not is_char_dead 68@
goto_if_false @DRUGS3_9147
set_lvar_int_to_lvar_int 112@ = 68@
116@ = 2188.5859
117@ = -2258.2729
118@ = 14.0
gosub @DRUGS3_18706

:DRUGS3_9147
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_9208
set_lvar_int_to_lvar_int 112@ = 65@
116@ = 2207.9851
117@ = -2244.51
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9208
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_9232
task_kill_char_on_foot 66@ {target} $scplayer

:DRUGS3_9232
if 
  not is_char_dead 64@
goto_if_false @DRUGS3_9263
set_lvar_int_to_lvar_int 112@ = 64@
gosub @DRUGS3_18882

:DRUGS3_9263
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9361
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9361
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9361
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9361
stop_playback_recorded_car 60@
task_car_mission 62@ {vehicle} 60@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
185@ = 1

:DRUGS3_9361
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9454
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9454
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9454
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9454
task_car_mission 63@ {vehicle} 61@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 5.0 {drivingStyle} DrivingMode.PloughThrough
186@ = 1

:DRUGS3_9454
147@ = 2

:DRUGS3_9461
if 
  185@ == 1
goto_if_false @DRUGS3_9569
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9569
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9569
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9569
if 
  is_char_touching_char 62@ {other} $scplayer
goto_if_false @DRUGS3_9569
task_car_temp_action 62@ {vehicle} 60@ {actionId} TempAction.Reverse {time} 2000
185@ = 2

:DRUGS3_9569
if 
  185@ == 2
goto_if_false @DRUGS3_9693
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9693
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9693
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9693
132@ = get_script_task_status 62@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9693
task_car_mission 62@ {vehicle} 60@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
185@ = 1

:DRUGS3_9693
if 
  186@ == 1
goto_if_false @DRUGS3_9801
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9801
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9801
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9801
if 
  is_char_touching_char 63@ {other} $scplayer
goto_if_false @DRUGS3_9801
task_car_temp_action 63@ {vehicle} 61@ {actionId} TempAction.Reverse {time} 2000
186@ = 2

:DRUGS3_9801
if 
  186@ == 2
goto_if_false @DRUGS3_9925
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9925
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9925
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9925
132@ = get_script_task_status 63@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9925
task_car_mission 63@ {vehicle} 61@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
186@ = 1

:DRUGS3_9925
if 
  141@ == 9
goto_if_false @DRUGS3_10758
if 
  150@ == 0
goto_if_false @DRUGS3_10758
print_now 'CSH3_13' {time} 5000 {flag} 1
delete_object 51@
mark_model_as_no_longer_needed #SEC_KEYPAD
add_one_off_sound 2181.127 {y} -2251.999 {z} 14.036 {soundId} 65535
add_continuous_sound 2181.127 {_p2} -2251.999 {_p3} 14.036 {_p4} 65535 {_p5} 76@
remove_blip 137@
set_max_fire_generations 0
101@ = create_char PedType.Special {modelId} 290 {x} 2125.8 {y} -2274.24 {z} 19.67
set_char_heading 101@ {heading} 221.579
set_char_decision_maker 101@ {handleOrTemplate} 52@
set_char_health 101@ {health} 1000
set_char_max_health 101@ {maxHealth} 1000
set_char_money 101@ {amount} 3000
set_char_suffers_critical_hits 101@ {state} False
set_char_uses_upperbody_damage_anims_only 101@ {state} True
138@ = add_blip_for_char 101@
109@ = create_char PedType.Mission1 {modelId} 102 {x} 2129.217 {y} -2281.78 {z} 19.6719
set_char_heading 109@ {heading} 314.7061
set_char_decision_maker 109@ {handleOrTemplate} 52@
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 109@ {skill} WeaponSkill.Pro
set_char_accuracy 109@ {accuracy} 20
set_char_health 109@ {health} 50
110@ = create_char PedType.Mission1 {modelId} 102 {x} 2124.1541 {y} -2277.2429 {z} 19.6719
set_char_heading 110@ {heading} 241.1202
set_char_decision_maker 110@ {handleOrTemplate} 52@
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 110@ {skill} WeaponSkill.Pro
set_char_accuracy 110@ {accuracy} 20
set_char_health 110@ {health} 50
179@ = 1
83@ = create_char PedType.Mission1 {modelId} 50 {x} 2172.73 {y} -2249.8301 {z} 12.6
set_char_heading 83@ {heading} 227.0
set_char_decision_maker 83@ {handleOrTemplate} 52@
give_weapon_to_char 83@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 83@ {accuracy} 20
set_char_health 83@ {health} 30
84@ = create_char PedType.Mission1 {modelId} 50 {x} 2168.4199 {y} -2252.7141 {z} 12.59
set_char_heading 84@ {heading} 250.942
set_char_decision_maker 84@ {handleOrTemplate} 52@
give_weapon_to_char 84@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 84@ {accuracy} 20
set_char_shoot_rate 84@ {rate} 30
set_char_health 84@ {health} 20
85@ = create_char PedType.Mission1 {modelId} 50 {x} 2174.6599 {y} -2248.6001 {z} 12.6
set_char_heading 85@ {heading} 227.0
set_char_decision_maker 85@ {handleOrTemplate} 52@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_allowed_to_duck 85@ {state} False
set_char_accuracy 85@ {accuracy} 20
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2163.072 {y} -2246.0271 {z} 12.59
set_char_heading 87@ {heading} 224.58
set_char_decision_maker 87@ {handleOrTemplate} 52@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 87@ {accuracy} 20
88@ = create_char PedType.Mission1 {modelId} 50 {x} 2158.03 {y} -2233.23 {z} 12.59
set_char_heading 88@ {heading} 230.37
set_char_decision_maker 88@ {handleOrTemplate} 52@
give_weapon_to_char 88@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 88@ {accuracy} 20
if 
  155@ == 0
goto_if_false @DRUGS3_10671
if 
  not is_char_dead 83@
goto_if_false @DRUGS3_10671
task_kill_char_on_foot 83@ {target} $scplayer
155@ = 1

:DRUGS3_10671
if 
  157@ == 0
goto_if_false @DRUGS3_10720
if 
  not is_char_dead 85@
goto_if_false @DRUGS3_10720
task_kill_char_on_foot 85@ {target} $scplayer
157@ = 1

:DRUGS3_10720
if 
  does_object_exist 50@
goto_if_false @DRUGS3_10744
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart

:DRUGS3_10744
150@ = 1
141@ = 10

:DRUGS3_10758
if 
  150@ == 1
goto_if_false @DRUGS3_10855
if 
  does_object_exist 50@
goto_if_false @DRUGS3_10855
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 19.7 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
goto_if_false @DRUGS3_10855
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
150@ = 2

:DRUGS3_10855
if 
  141@ == 10
goto_if_false @DRUGS3_11049
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2167.9551 {leftBottomY} -2253.054 {rightTopX} 2175.0229 {rightTopY} -2245.3269 {angle} -11.5 {drawSphere} False
goto_if_false @DRUGS3_10923
141@ = 11

:DRUGS3_10923
if 
  does_char_exist 83@
goto_if_false @DRUGS3_10965
if 
  has_char_been_damaged_by_char 83@ {handle} $scplayer
goto_if_false @DRUGS3_10965
141@ = 11

:DRUGS3_10965
if 
  does_char_exist 84@
goto_if_false @DRUGS3_11007
if 
  has_char_been_damaged_by_char 84@ {handle} $scplayer
goto_if_false @DRUGS3_11007
141@ = 11

:DRUGS3_11007
if 
  does_char_exist 85@
goto_if_false @DRUGS3_11049
if 
  has_char_been_damaged_by_char 85@ {handle} $scplayer
goto_if_false @DRUGS3_11049
141@ = 11

:DRUGS3_11049
if 
  141@ == 11
goto_if_false @DRUGS3_18446
if 
  178@ == 0
goto_if_false @DRUGS3_11176
if 
  TIMERA > 0
goto_if_false @DRUGS3_11176
if 
  is_char_dead 83@
goto_if_false @DRUGS3_11176
if 
  is_char_dead 85@
goto_if_false @DRUGS3_11176
if 
  is_char_dead 87@
goto_if_false @DRUGS3_11176
print_help 'CSH3_10'
TIMERA = 0
178@ = 1

:DRUGS3_11176
if 
  178@ == 1
goto_if_false @DRUGS3_11238
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11238
print_help 'CSH3_11'
TIMERA = 0
178@ = 2

:DRUGS3_11238
if 
  178@ == 2
goto_if_false @DRUGS3_11300
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11300
print_help 'CSH3_12'
TIMERA = 0
178@ = 3

:DRUGS3_11300
if 
  178@ == 3
goto_if_false @DRUGS3_11362
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11362
print_help 'CSH3_52'
TIMERA = 0
178@ = 4

:DRUGS3_11362
if 
  178@ == 4
goto_if_false @DRUGS3_11417
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11417
print_help 'CSH3_51'
178@ = 5

:DRUGS3_11417
if 
  151@ == 0
goto_if_false @DRUGS3_11761
if 
  156@ == 0
goto_if_false @DRUGS3_11491
if 
  not is_char_dead 84@
goto_if_false @DRUGS3_11491
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18882
156@ = 1

:DRUGS3_11491
if 
  159@ == 0
goto_if_false @DRUGS3_11547
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_11547
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_19119
159@ = 1

:DRUGS3_11547
if 
  159@ == 1
goto_if_false @DRUGS3_11654
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_11642
if or
  has_char_been_damaged_by_char 87@ {handle} $scplayer
  locate_char_any_means_char_2d 87@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_11635
task_kill_char_on_foot 87@ {target} $scplayer
159@ = 2

:DRUGS3_11635
goto @DRUGS3_11654

:DRUGS3_11642
mark_char_as_no_longer_needed 87@
159@ = 2

:DRUGS3_11654
if 
  160@ == 0
goto_if_false @DRUGS3_11761
if 
  not is_char_dead 88@
goto_if_false @DRUGS3_11761
if or
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2161.927 {leftBottomY} -2243.252 {rightTopX} 2168.71 {rightTopY} -2237.79 {angle} 10.0 {drawSphere} False
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @DRUGS3_11761
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_19036
160@ = 1

:DRUGS3_11761
if 
  152@ == 0
goto_if_false @DRUGS3_12231
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2160.6589 {leftBottomY} -2244.4089 {rightTopX} 2168.71 {rightTopY} -2237.79 {angle} 12.0 {drawSphere} False
goto_if_false @DRUGS3_12231
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #KMB_RAMP
mark_car_as_no_longer_needed 60@
mark_car_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_object_as_no_longer_needed 69@
mark_object_as_no_longer_needed 70@
mark_object_as_no_longer_needed 71@
mark_object_as_no_longer_needed 72@
mark_object_as_no_longer_needed 73@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
89@ = create_char PedType.Mission1 {modelId} 50 {x} 2149.249 {y} -2243.958 {z} 12.6
set_char_heading 89@ {heading} 312.4132
set_char_decision_maker 89@ {handleOrTemplate} 52@
give_weapon_to_char 89@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 89@ {accuracy} 20
set_char_health 89@ {health} 50
90@ = create_char PedType.Mission1 {modelId} 50 {x} 2156.04 {y} -2250.73 {z} 12.59
set_char_heading 90@ {heading} 46.763
set_char_decision_maker 90@ {handleOrTemplate} 52@
give_weapon_to_char 90@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 90@ {accuracy} 20
69@ = create_object #BARREL4 {x} 2149.7251 {y} -2249.8501 {z} 12.35
70@ = create_object #BARREL4 {x} 2162.3989 {y} -2259.4331 {z} 12.35
71@ = create_object #BARREL4 {x} 2152.3169 {y} -2270.3889 {z} 12.35
72@ = create_object #BARREL4 {x} 2139.3101 {y} -2270.019 {z} 14.7
set_object_only_damaged_by_player 69@ {state} True
set_object_only_damaged_by_player 70@ {state} True
set_object_only_damaged_by_player 71@ {state} True
set_object_only_damaged_by_player 72@ {state} True
102@ = create_object #IMY_BBOX {x} 2140.9099 {y} -2260.2 {z} 18.1
set_object_heading 102@ {heading} 317.068
set_object_health 102@ {health} 1000
set_object_only_damaged_by_player 102@ {state} True
152@ = 1

:DRUGS3_12231
if 
  152@ == 1
goto_if_false @DRUGS3_12498
if 
  161@ == 0
goto_if_false @DRUGS3_12305
if 
  not is_char_dead 89@
goto_if_false @DRUGS3_12305
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_19119
161@ = 1

:DRUGS3_12305
if 
  161@ == 1
goto_if_false @DRUGS3_12412
if 
  not is_char_dead 89@
goto_if_false @DRUGS3_12400
if or
  has_char_been_damaged_by_char 89@ {handle} $scplayer
  locate_char_any_means_char_2d 89@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_12393
task_kill_char_on_foot 89@ {target} $scplayer
161@ = 2

:DRUGS3_12393
goto @DRUGS3_12412

:DRUGS3_12400
mark_char_as_no_longer_needed 89@
161@ = 2

:DRUGS3_12412
if 
  162@ == 0
goto_if_false @DRUGS3_12498
if 
  not is_char_dead 90@
goto_if_false @DRUGS3_12498
set_lvar_int_to_lvar_int 112@ = 90@
116@ = 2152.019
117@ = -2246.949
118@ = 12.595
gosub @DRUGS3_18964
162@ = 1

:DRUGS3_12498
if 
  153@ == 0
goto_if_false @DRUGS3_13164
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2157.47 {leftBottomY} -2246.72 {rightTopX} 2152.7371 {rightTopY} -2251.8569 {angle} -10.0 {drawSphere} False
goto_if_false @DRUGS3_13164
92@ = create_char PedType.Mission1 {modelId} 50 {x} 2164.9431 {y} -2259.2749 {z} 12.594
set_char_heading 92@ {heading} 46.776
set_char_decision_maker 92@ {handleOrTemplate} 52@
give_weapon_to_char 92@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 92@ {accuracy} 30
set_char_shoot_rate 92@ {rate} 20
93@ = create_char PedType.Mission1 {modelId} 50 {x} 2159.2959 {y} -2256.6599 {z} 12.59
set_char_heading 93@ {heading} 46.776
set_char_decision_maker 93@ {handleOrTemplate} 52@
give_weapon_to_char 93@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 93@ {accuracy} 20
set_char_allowed_to_duck 93@ {state} False
set_char_shoot_rate 93@ {rate} 20
94@ = create_char PedType.Mission1 {modelId} 50 {x} 2137.5779 {y} -2262.2161 {z} 12.59
set_char_heading 94@ {heading} 211.9
set_char_decision_maker 94@ {handleOrTemplate} 52@
give_weapon_to_char 94@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 94@ {accuracy} 10
95@ = create_char PedType.Mission1 {modelId} 50 {x} 2138.0081 {y} -2253.3689 {z} 12.59
set_char_heading 95@ {heading} 139.993
set_char_decision_maker 95@ {handleOrTemplate} 52@
give_weapon_to_char 95@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 95@ {accuracy} 10
96@ = create_char PedType.Mission1 {modelId} 50 {x} 2151.5449 {y} -2279.6069 {z} 13.82
set_char_heading 96@ {heading} 46.63
set_char_decision_maker 96@ {handleOrTemplate} 52@
give_weapon_to_char 96@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 96@ {accuracy} 10
97@ = create_char PedType.Mission1 {modelId} 50 {x} 2140.6951 {y} -2259.877 {z} 12.5547
set_char_heading 97@ {heading} 259.7427
set_char_decision_maker 97@ {handleOrTemplate} 52@
give_weapon_to_char 97@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 97@ {accuracy} 10
set_char_shoot_rate 97@ {rate} 20
98@ = create_char PedType.Mission1 {modelId} 50 {x} 2141.7629 {y} -2261.2771 {z} 12.5547
set_char_heading 98@ {heading} 259.742
set_char_decision_maker 98@ {handleOrTemplate} 52@
give_weapon_to_char 98@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 98@ {accuracy} 10
set_char_shoot_rate 98@ {rate} 20
99@ = create_char PedType.Mission1 {modelId} 102 {x} 2131.561 {y} -2279.4241 {z} 19.712
set_char_heading 99@ {heading} 313.176
set_char_decision_maker 99@ {handleOrTemplate} 52@
give_weapon_to_char 99@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 99@ {accuracy} 10
set_char_shoot_rate 99@ {rate} 20
100@ = create_char PedType.Mission1 {modelId} 102 {x} 2128.9519 {y} -2282.271 {z} 19.712
set_char_heading 100@ {heading} 313.176
set_char_decision_maker 100@ {handleOrTemplate} 52@
give_weapon_to_char 100@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 100@ {accuracy} 10
set_char_shoot_rate 100@ {rate} 20
153@ = 1

:DRUGS3_13164
if 
  153@ == 1
goto_if_false @DRUGS3_13294
if 
  164@ == 0
goto_if_false @DRUGS3_13238
if 
  not is_char_dead 92@
goto_if_false @DRUGS3_13238
set_lvar_int_to_lvar_int 112@ = 92@
gosub @DRUGS3_18882
164@ = 1

:DRUGS3_13238
if 
  165@ == 0
goto_if_false @DRUGS3_13294
if 
  not is_char_dead 93@
goto_if_false @DRUGS3_13294
set_lvar_int_to_lvar_int 112@ = 93@
gosub @DRUGS3_18882
165@ = 1

:DRUGS3_13294
if 
  154@ == 0
goto_if_false @DRUGS3_14045
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2160.728 {leftBottomY} -2254.5859 {rightTopX} 2152.3999 {rightTopY} -2263.3 {angle} 10.0 {drawSphere} False
goto_if_false @DRUGS3_14045
if 
  166@ == 0
goto_if_false @DRUGS3_13464
if 
  does_object_exist 102@
goto_if_false @DRUGS3_13389

:DRUGS3_13389
if 
  not is_char_dead 94@
goto_if_false @DRUGS3_13464
set_lvar_int_to_lvar_int 112@ = 94@
116@ = 2148.9451
117@ = -2273.314
118@ = 13.595
set_char_allowed_to_duck 94@ {state} False
gosub @DRUGS3_18706
166@ = 1

:DRUGS3_13464
if 
  167@ == 0
goto_if_false @DRUGS3_13587
if 
  not is_char_dead 95@
goto_if_false @DRUGS3_13587
set_lvar_int_to_lvar_int 112@ = 95@
116@ = 2133.613
117@ = -2258.0669
118@ = 12.59
119@ = 2143.387
120@ = -2267.5
121@ = 13.595
task_toggle_duck 95@ {state} True
gosub @DRUGS3_18761
167@ = 1

:DRUGS3_13587
if 
  168@ == 0
goto_if_false @DRUGS3_13680
if 
  not is_char_dead 96@
goto_if_false @DRUGS3_13680
set_lvar_int_to_lvar_int 112@ = 96@
116@ = 2140.375
117@ = -2269.6599
118@ = 13.59
task_toggle_duck 96@ {state} True
gosub @DRUGS3_18706
168@ = 1

:DRUGS3_13680
if 
  171@ == 0
goto_if_false @DRUGS3_13803
if 
  not is_char_dead 99@
goto_if_false @DRUGS3_13803
set_lvar_int_to_lvar_int 112@ = 99@
116@ = 2134.5039
117@ = -2276.708
118@ = 19.712
119@ = 2130.845
120@ = -2272.55
121@ = 19.71
set_char_allowed_to_duck 99@ {state} False
gosub @DRUGS3_18761
171@ = 1

:DRUGS3_13803
if 
  172@ == 0
goto_if_false @DRUGS3_13926
if 
  not is_char_dead 100@
goto_if_false @DRUGS3_13926
set_lvar_int_to_lvar_int 112@ = 100@
116@ = 2134.7881
117@ = -2275.9409
118@ = 19.712
119@ = 2139.8789
120@ = -2270.926
121@ = 18.0
set_char_allowed_to_duck 100@ {state} False
gosub @DRUGS3_18761
172@ = 1

:DRUGS3_13926
if 
  169@ == 0
goto_if_false @DRUGS3_13982
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_13982
set_lvar_int_to_lvar_int 112@ = 97@
gosub @DRUGS3_18882
169@ = 1

:DRUGS3_13982
if 
  170@ == 0
goto_if_false @DRUGS3_14038
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14038
set_lvar_int_to_lvar_int 112@ = 98@
gosub @DRUGS3_18882
170@ = 1

:DRUGS3_14038
154@ = 1

:DRUGS3_14045
if 
  173@ == 0
goto_if_false @DRUGS3_14209
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} 2136.48 {leftBottomY} -2266.78 {leftBottomZ} 28.0 {rightTopX} 2145.55 {rightTopY} -2275.04 {rightTopZ} 18.0 {angle} -20.0 {drawSphere} False
goto_if_false @DRUGS3_14209
mark_model_as_no_longer_needed #IMCMPTRKDRL_LAS
mark_model_as_no_longer_needed #IMCMPTRKDRR_LAS
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
print_now 'CSH3_53' {time} 7000 {flag} 1
if 
  not is_char_dead 109@
goto_if_false @DRUGS3_14178
set_lvar_int_to_lvar_int 112@ = 109@
gosub @DRUGS3_18882

:DRUGS3_14178
if 
  not is_char_dead 110@
goto_if_false @DRUGS3_14202
task_kill_char_on_foot 110@ {target} $scplayer

:DRUGS3_14202
173@ = 1

:DRUGS3_14209
if 
  179@ == 1
goto_if_false @DRUGS3_14250
if 
  is_char_dead 101@
goto_if_false @DRUGS3_14250
179@ = 2

:DRUGS3_14250
if 
  179@ == 2
goto_if_false @DRUGS3_14275
goto @DRUGS3_19361

:DRUGS3_14275
if 
  is_char_dead 101@
goto_if_false @DRUGS3_14312
if 
  does_blip_exist 138@
goto_if_false @DRUGS3_14312
remove_blip 138@

:DRUGS3_14312
if 
  174@ == 0
goto_if_false @DRUGS3_14467
if 
  does_object_exist 102@
goto_if_false @DRUGS3_14467
103@ = get_object_health 102@
if 
  1000 > 103@
goto_if_false @DRUGS3_14467
set_object_proofs 102@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14453
set_char_heading 98@ {heading} 200.025
task_play_anim_non_interruptable 98@ {animationName} "CRUSH_JUMP" {animationFile} "DODGE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:DRUGS3_14453
TIMERB = 0
174@ = 1

:DRUGS3_14467
if 
  174@ == 1
goto_if_false @DRUGS3_14647
if 
  TIMERB > 1500
goto_if_false @DRUGS3_14647
if 
  does_object_exist 102@
goto_if_false @DRUGS3_14647
set_object_coordinates 102@ {x} 2140.9099 {y} -2260.2 {z} 18.1
set_object_dynamic 102@ {state} True
set_object_collision 102@ {state} True
add_to_object_velocity 102@ {x} 0.0 {y} 0.0 {z} -2.0
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_14633
set_char_collision 97@ {state} False
task_play_anim_non_interruptable 97@ {animationName} "CRUSHED" {animationFile} "DODGE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:DRUGS3_14633
TIMERB = 0
174@ = 2

:DRUGS3_14647
if 
  174@ == 2
goto_if_false @DRUGS3_14742
if 
  TIMERB > 600
goto_if_false @DRUGS3_14742
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_14712
set_char_never_targetted 97@ {state} True
remove_char_elegantly 97@

:DRUGS3_14712
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14735
set_char_never_targetted 98@ {state} True

:DRUGS3_14735
174@ = 3

:DRUGS3_14742
if 
  155@ == 1
goto_if_false @DRUGS3_14788
if 
  is_char_dead 83@
goto_if_false @DRUGS3_14788
mark_char_as_no_longer_needed 83@
155@ = 2

:DRUGS3_14788
if 
  156@ == 1
goto_if_false @DRUGS3_14834
if 
  is_char_dead 84@
goto_if_false @DRUGS3_14834
mark_char_as_no_longer_needed 84@
156@ = 2

:DRUGS3_14834
if 
  157@ == 1
goto_if_false @DRUGS3_14880
if 
  is_char_dead 85@
goto_if_false @DRUGS3_14880
mark_char_as_no_longer_needed 85@
157@ = 2

:DRUGS3_14880
if 
  159@ > 0
goto_if_false @DRUGS3_14944
if 
  3 > 159@
goto_if_false @DRUGS3_14944
if 
  is_char_dead 87@
goto_if_false @DRUGS3_14944
mark_char_as_no_longer_needed 87@
159@ = 2

:DRUGS3_14944
if 
  160@ == 1
goto_if_false @DRUGS3_14990
if 
  is_char_dead 88@
goto_if_false @DRUGS3_14990
mark_char_as_no_longer_needed 88@
160@ = 2

:DRUGS3_14990
if 
  161@ > 0
goto_if_false @DRUGS3_15054
if 
  3 > 161@
goto_if_false @DRUGS3_15054
if 
  is_char_dead 89@
goto_if_false @DRUGS3_15054
mark_char_as_no_longer_needed 89@
161@ = 3

:DRUGS3_15054
if 
  162@ == 1
goto_if_false @DRUGS3_15100
if 
  is_char_dead 90@
goto_if_false @DRUGS3_15100
mark_char_as_no_longer_needed 90@
162@ = 2

:DRUGS3_15100
if 
  164@ == 1
goto_if_false @DRUGS3_15146
if 
  is_char_dead 92@
goto_if_false @DRUGS3_15146
mark_char_as_no_longer_needed 92@
164@ = 2

:DRUGS3_15146
if 
  165@ == 1
goto_if_false @DRUGS3_15192
if 
  is_char_dead 93@
goto_if_false @DRUGS3_15192
mark_char_as_no_longer_needed 93@
165@ = 2

:DRUGS3_15192
if 
  166@ == 1
goto_if_false @DRUGS3_15238
if 
  is_char_dead 94@
goto_if_false @DRUGS3_15238
mark_char_as_no_longer_needed 94@
166@ = 2

:DRUGS3_15238
if 
  167@ == 1
goto_if_false @DRUGS3_15284
if 
  is_char_dead 95@
goto_if_false @DRUGS3_15284
mark_char_as_no_longer_needed 95@
167@ = 2

:DRUGS3_15284
if 
  168@ == 1
goto_if_false @DRUGS3_15330
if 
  is_char_dead 96@
goto_if_false @DRUGS3_15330
mark_char_as_no_longer_needed 96@
168@ = 2

:DRUGS3_15330
if 
  171@ == 1
goto_if_false @DRUGS3_15376
if 
  is_char_dead 99@
goto_if_false @DRUGS3_15376
mark_char_as_no_longer_needed 99@
171@ = 2

:DRUGS3_15376
if 
  172@ == 1
goto_if_false @DRUGS3_15422
if 
  is_char_dead 100@
goto_if_false @DRUGS3_15422
mark_char_as_no_longer_needed 100@
172@ = 2

:DRUGS3_15422
if 
  173@ == 1
goto_if_false @DRUGS3_16461
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} 2125.1399 {leftBottomY} -2270.97 {leftBottomZ} 27.0 {rightTopX} 2121.0901 {rightTopY} -2275.3301 {rightTopZ} 19.0 {angle} 14.0 {drawSphere} False
goto_if_false @DRUGS3_16461
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
remove_char_elegantly 83@
remove_char_elegantly 84@
remove_char_elegantly 85@
remove_char_elegantly 86@
remove_char_elegantly 87@
remove_char_elegantly 88@
remove_char_elegantly 89@
remove_char_elegantly 90@
delete_car 54@
delete_car 55@
delete_car 60@
clear_area 2185.53 {y} -2271.95 {z} 50.0 {radius} 50.0 {clearParticles} False
mark_model_as_no_longer_needed 102
74@ = create_object #BARREL4 {x} 2170.366 {y} -2337.439 {z} 12.54
set_object_only_damaged_by_player 74@ {state} True
60@ = create_car 530 {x} 2122.092 {y} -2307.1411 {z} 12.5693
set_car_heading 60@ {heading} 265.9861
set_can_burst_car_tyres 60@ {state} False
54@ = create_car 429 {x} 2190.0701 {y} -2269.8 {z} 12.5693
set_car_heading 54@ {heading} 308.99
set_car_health 54@ {health} 1000
55@ = create_car 461 {x} 2175.75 {y} -2280.5701 {z} 12.5693
set_car_heading 55@ {heading} 315.41
set_can_burst_car_tyres 55@ {state} False
136@ = create_pickup_with_ammo 353 {pickupType} PickupType.Once {ammo} 250 {x} 2175.614 {y} -2282.959 {z} 13.54
83@ = create_char PedType.Mission1 {modelId} 50 {x} 2132.698 {y} -2303.3701 {z} 13.699
set_char_heading 83@ {heading} 826.228
set_char_decision_maker 83@ {handleOrTemplate} 52@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 83@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 83@
gosub @DRUGS3_18882
84@ = create_char PedType.Mission1 {modelId} 50 {x} 2138.0601 {y} -2308.614 {z} 19.7
set_char_heading 84@ {heading} 60.478
set_char_decision_maker 84@ {handleOrTemplate} 52@
give_weapon_to_char 84@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 84@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18926
85@ = create_char PedType.Mission1 {modelId} 50 {x} 2144.0071 {y} -2295.1941 {z} 19.676
set_char_heading 85@ {heading} 119.8487
set_char_decision_maker 85@ {handleOrTemplate} 52@
give_weapon_to_char 85@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_allowed_to_duck 85@ {state} False
set_char_health 85@ {health} 50
set_char_accuracy 85@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 85@
gosub @DRUGS3_18926
86@ = create_char PedType.Mission1 {modelId} 50 {x} 2131.5601 {y} -2313.6001 {z} 12.5719
set_char_heading 86@ {heading} 265.9861
set_char_decision_maker 86@ {handleOrTemplate} 52@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_allowed_to_duck 86@ {state} False
set_char_accuracy 86@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 86@
gosub @DRUGS3_18882
88@ = create_char PedType.Mission1 {modelId} 50 {x} 2183.3669 {y} -2293.2339 {z} 12.5
set_char_heading 88@ {heading} 148.671
set_char_decision_maker 88@ {handleOrTemplate} 52@
give_weapon_to_char 88@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_kill_char_on_foot 88@ {target} $scplayer
set_char_health 88@ {health} 50
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_18926
89@ = create_char PedType.Mission1 {modelId} 50 {x} 2165.7371 {y} -2324.2891 {z} 17.515
set_char_heading 89@ {heading} 224.6632
set_char_decision_maker 89@ {handleOrTemplate} 52@
give_weapon_to_char 89@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 89@ {health} 70
set_char_accuracy 89@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_18926
90@ = create_char PedType.Mission1 {modelId} 50 {x} 2170.0701 {y} -2334.498 {z} 12.547
set_char_heading 90@ {heading} 89.2721
set_char_decision_maker 90@ {handleOrTemplate} 52@
give_weapon_to_char 90@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 90@ {health} 50
set_lvar_int_to_lvar_int 112@ = 90@
gosub @DRUGS3_18926
if 
  does_object_exist 111@
goto_if_false @DRUGS3_16396
set_object_heading 111@ {heading} 90.0
goto @DRUGS3_16401

:DRUGS3_16396
delete_object 111@

:DRUGS3_16401
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16454
task_play_anim 101@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000

:DRUGS3_16454
173@ = 2

:DRUGS3_16461
if 
  173@ == 2
goto_if_false @DRUGS3_16689
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16689
if or
  TIMERA > 750
  has_char_been_damaged_by_char 101@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 101@
goto_if_false @DRUGS3_16689
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2135.46 {y} -2296.6399 {z} 12.9
set_char_heading 87@ {heading} 337.5533
set_char_decision_maker 87@ {handleOrTemplate} 52@
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 99999
task_kill_char_on_foot 87@ {target} $scplayer
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_18926
113@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2128.4299 {y} -2292.01 {z} 13.75 {speed} MoveState.Run {time} 350000
task_follow_path_nodes_to_coord -1 {x} 2185.5 {y} -2274.8 {z} 13.75 {speed} MoveState.Sprint {time} 350000
close_sequence_task 113@
perform_sequence_task 101@ {sequence} 113@
clear_sequence_task 113@
173@ = 3

:DRUGS3_16689
if 
  173@ == 3
goto_if_false @DRUGS3_16773
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16773
if 
  locate_char_any_means_2d 101@ {x} 2185.5 {y} -2274.8 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS3_16773
mark_char_as_no_longer_needed 86@
173@ = 4

:DRUGS3_16773
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18210
if 
  173@ == 4
goto_if_false @DRUGS3_17553
if 
  not locate_char_any_means_char_2d $scplayer {target} 101@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRUGS3_16877
if 
  not is_char_on_screen 101@
goto_if_false @DRUGS3_16877
print_now 'CSH3_55' {time} 5000 {flag} 1
goto @DRUGS3_19343

:DRUGS3_16877
if 
  2 > 182@
goto_if_false @DRUGS3_17553
if 
  182@ == 1
goto_if_false @DRUGS3_16970
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_16970
$car = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_lvar $car == 54@
goto_if_false @DRUGS3_16970
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_16970
if 
  182@ == 0
goto_if_false @DRUGS3_17185
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17171
if 
  locate_car_2d 54@ {x} 2190.0701 {y} -2269.8 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS3_17150
if 
  not is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17129
if 
  184@ == 0
goto_if_false @DRUGS3_17108
clear_char_tasks 101@
task_enter_car_as_driver 101@ {vehicle} 54@ {time} -2
182@ = 1
goto @DRUGS3_17122

:DRUGS3_17108
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17122
goto @DRUGS3_17143

:DRUGS3_17129
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17143
goto @DRUGS3_17164

:DRUGS3_17150
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17164
goto @DRUGS3_17185

:DRUGS3_17171
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17185
if 
  182@ == 1
goto_if_false @DRUGS3_17421
if 
  184@ == 0
goto_if_false @DRUGS3_17407
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17400
if 
  is_char_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_17400
if 
  locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DRUGS3_17400
print_now 'CSH3_54' {time} 5000 {flag} 1
set_char_health 101@ {health} 100
set_char_suffers_critical_hits 101@ {state} True
car_goto_coordinates 54@ {x} 2246.6101 {y} -2204.78 {z} 13.65
set_car_cruise_speed 54@ {maxSpeed} 20.0
set_car_driving_style 54@ {drivingStyle} DrivingMode.AvoidCars
switch_roads_off 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
183@ = 1
182@ = 2

:DRUGS3_17400
goto @DRUGS3_17421

:DRUGS3_17407
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17421
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17539
if 
  184@ == 0
goto_if_false @DRUGS3_17488
if 
  is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17488
gosub @DRUGS3_18627
184@ = 1

:DRUGS3_17488
if 
  184@ == 1
goto_if_false @DRUGS3_17532
if 
  not is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17532
184@ = 0

:DRUGS3_17532
goto @DRUGS3_17553

:DRUGS3_17539
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17553
if 
  183@ == 1
goto_if_false @DRUGS3_17649
if 
  not is_char_sitting_in_any_car 101@
goto_if_false @DRUGS3_17649
task_smart_flee_char 101@ {threat} $scplayer {radius} 300.0 {time} 500000
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17642
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_17642
stop_playback_recorded_car 54@

:DRUGS3_17642
183@ = 2

:DRUGS3_17649
if 
  182@ == 2
goto_if_false @DRUGS3_17854
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17854
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_17854
if 
  locate_car_2d 54@ {x} 2246.6101 {y} -2204.78 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS3_17854
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
mark_car_as_no_longer_needed 60@
car_set_idle 54@
start_playback_recorded_car_using_ai 54@ {pathId} 342
set_playback_speed 54@ {speed} 0.85
switch_roads_off 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
187@ = 1
182@ = 3

:DRUGS3_17854
if 
  182@ == 3
goto_if_false @DRUGS3_18071
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_18071
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_18071
if 
  187@ == 1
goto_if_false @DRUGS3_17989
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_17989
if 
  not locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRUGS3_17989
set_playback_speed 54@ {speed} 0.4
187@ = 2

:DRUGS3_17989
if 
  187@ == 2
goto_if_false @DRUGS3_18071
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_18071
if 
  locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRUGS3_18071
set_playback_speed 54@ {speed} 0.85
187@ = 1

:DRUGS3_18071
if 
  182@ == 3
goto_if_false @DRUGS3_18210
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_18210
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_18210
if 
  locate_car_2d 54@ {x} 1440.92 {y} -1594.59 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS3_18210
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_18188
stop_playback_recorded_car 54@
car_set_idle 54@

:DRUGS3_18188
task_car_drive_wander 101@ {vehicle} 54@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
182@ = 4

:DRUGS3_18210
if 
  173@ > 1
goto_if_false @DRUGS3_18446
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18446
gosub @DRUGS3_18495
if 
  180@ == 0
goto_if_false @DRUGS3_18316
if 
  181@ == 0
goto_if_false @DRUGS3_18316
set_lvar_int_to_constant 80@ = 18007
set_lvar_text_label 81@s = 'CRA3_DB'
gosub @DRUGS3_18453

:DRUGS3_18316
if 
  180@ == 1
goto_if_false @DRUGS3_18381
if 
  181@ == 0
goto_if_false @DRUGS3_18381
set_lvar_int_to_constant 80@ = 18008
set_lvar_text_label 81@s = 'CRA3_DC'
gosub @DRUGS3_18453

:DRUGS3_18381
if 
  180@ == 2
goto_if_false @DRUGS3_18446
if 
  181@ == 0
goto_if_false @DRUGS3_18446
set_lvar_int_to_constant 80@ = 18009
set_lvar_text_label 81@s = 'CRA3_DD'
gosub @DRUGS3_18453

:DRUGS3_18446
goto @DRUGS3_850

:DRUGS3_18453
if 
  181@ == 0
goto_if_false @DRUGS3_18493
load_mission_audio MissionAudioSlot.Slot1 {audioId} 80@
set_lvar_text_label 78@s = 81@s
181@ = 1

:DRUGS3_18493
return 

:DRUGS3_18495
if 
  181@ == 1
goto_if_false @DRUGS3_18572
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS3_18572
print_now 78@s {time} 4000 {flag} 1
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18561
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 101@

:DRUGS3_18561
play_mission_audio MissionAudioSlot.Slot1
181@ = 2

:DRUGS3_18572
if 
  181@ == 2
goto_if_false @DRUGS3_18625
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS3_18625
180@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
181@ = 0

:DRUGS3_18625
return 

:DRUGS3_18627
set_char_health 101@ {health} 100
set_char_max_health 101@ {maxHealth} 100
114@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2191.4221 {y} -2183.429 {z} 13.55 {speed} MoveState.Run {time} -2
task_smart_flee_char -1 {threat} $scplayer {radius} 300.0 {time} 500000
close_sequence_task 114@
perform_sequence_task 101@ {sequence} 114@
clear_sequence_task 114@
return 

:DRUGS3_18706
124@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 124@
perform_sequence_task 112@ {sequence} 124@
clear_sequence_task 124@
return 

:DRUGS3_18761
125@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 119@ {y} 120@ {z} 121@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 125@
perform_sequence_task 112@ {sequence} 125@
clear_sequence_task 125@
return 

:DRUGS3_18833
123@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 123@
perform_sequence_task 112@ {sequence} 123@
clear_sequence_task 123@
return 

:DRUGS3_18882
122@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 122@
perform_sequence_task 112@ {sequence} 122@
clear_sequence_task 122@
return 

:DRUGS3_18926
129@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 112@ {sequence} 129@
clear_sequence_task 129@
return 

:DRUGS3_18964
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 112@ {sequence} 128@
clear_sequence_task 128@
return 

:DRUGS3_19036
127@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 112@ {sequence} 127@
clear_sequence_task 127@
return 

:DRUGS3_19119
126@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 126@ {state} True
close_sequence_task 126@
perform_sequence_task 112@ {sequence} 126@
clear_sequence_task 126@
return 

:DRUGS3_19343
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRUGS3_19361
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'CRASH_3'
$flag_crash_mission_counter += 1
remove_blip $crash_contact_blip
return 

:DRUGS3_19417
if 
  not is_car_dead $car
goto_if_false @DRUGS3_19448
set_car_proofs $car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS3_19448
if 
  does_object_exist 50@
goto_if_false @DRUGS3_19469
delete_object 50@

:DRUGS3_19469
if 
  does_object_exist 34@
goto_if_false @DRUGS3_19490
delete_object 35@

:DRUGS3_19490
if 
  does_object_exist 36@
goto_if_false @DRUGS3_19511
delete_object 37@

:DRUGS3_19511
if 
  does_object_exist 38@
goto_if_false @DRUGS3_19532
delete_object 39@

:DRUGS3_19532
if 
  does_object_exist 40@
goto_if_false @DRUGS3_19553
delete_object 41@

:DRUGS3_19553
if 
  does_object_exist 50@
goto_if_false @DRUGS3_19574
delete_object 50@

:DRUGS3_19574
if 
  does_object_exist 51@
goto_if_false @DRUGS3_19595
delete_object 51@

:DRUGS3_19595
switch_roads_on 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
remove_blip 137@
remove_blip 138@
remove_animation "SWAT"
remove_animation "DODGE"
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
delete_object 102@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
mark_car_as_no_longer_needed 60@
mark_car_as_no_longer_needed 61@
remove_pickup 136@
remove_char_elegantly 83@
remove_char_elegantly 84@
remove_char_elegantly 85@
remove_char_elegantly 86@
remove_char_elegantly 87@
remove_char_elegantly 88@
remove_char_elegantly 89@
remove_char_elegantly 90@
remove_char_elegantly 92@
remove_char_elegantly 93@
remove_char_elegantly 94@
remove_char_elegantly 95@
remove_char_elegantly 96@
remove_char_elegantly 97@
remove_char_elegantly 98@
set_wanted_multiplier 1.0
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #KMB_RAMP
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed #IMCMPTRKDRL_LAS
mark_model_as_no_longer_needed #IMCMPTRKDRR_LAS
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #IMY_BBOX
mark_model_as_no_longer_needed 461
unload_special_character 1
if 
  not is_car_dead 55@
goto_if_false @DRUGS3_19886
set_can_burst_car_tyres 55@ {state} True

:DRUGS3_19886
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_19909
set_can_burst_car_tyres 60@ {state} True

:DRUGS3_19909
if 
  not is_car_dead $car
goto_if_false @DRUGS3_19940
set_car_proofs $car {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False

:DRUGS3_19940
$timer_mobile_start = get_game_timer 
switch_emergency_services True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 24---------------
// Originally: Home Invasion

:GUNS1
script_name 'GUNS1'
gosub @GUNS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GUNS1_38
gosub @GUNS1_40480

:GUNS1_38
gosub @GUNS1_40575
terminate_this_script 

:GUNS1_47
register_mission_given 
$onmission = 1
wait 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GUNS1_75
if 
  get_fading_status 
goto_if_false @GUNS1_99
wait 0
goto @GUNS1_75

:GUNS1_99
force_weather WeatherType.SunnyLa
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_148
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GUNS1_148
load_mission_text 'RYDER1'
load_cutscene 'RYDER1A'

:GUNS1_170
if 
  not has_cutscene_loaded 
goto_if_false @GUNS1_194
wait 0
goto @GUNS1_170

:GUNS1_194
clear_area 2464.0 {y} -1714.0 {z} 14.0 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:GUNS1_227
if 
  not has_cutscene_finished 
goto_if_false @GUNS1_251
wait 0
goto @GUNS1_227

:GUNS1_251
do_fade 0 {direction} Fade.Out

:GUNS1_257
if 
  get_fading_status 
goto_if_false @GUNS1_281
wait 0
goto @GUNS1_257

:GUNS1_281
release_weather 
clear_cutscene 
set_player_control $player1 {state} False
39@ = load_char_decision_maker DecisionMakerType.Tough
41@ = copy_char_decision_maker 39@
40@ = load_char_decision_maker DecisionMakerType.Empty
change_garage_type 'BURG_LK' {type} GarageType.ForScriptToOpenAndClose
42@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 42@
clear_group_decision_maker_event_response 42@ {event} Event.LeaderEnteredCarAsDriver
clear_group_decision_maker_event_response 42@ {event} Event.LeaderExitedCarAsDriver
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
56@ = 0
58@ = 0
59@ = 0
35@ = 0
60@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
34@ = 0
94@ = 0
$ryd1_time_to_daylight = 0
96@ = 0
68@ = 0
69@ = 0
36@ = 0
38@ = 0
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
43@ = 0
44@ = 0
46@ = 0
77@ = 0
95@ = 0
167@ = 0.0
166@ = 0.0
47@ = 0
48@ = 2
50@ = 0
78@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
97@ = 0
79@ = 0
80@ = 0
$tripskip_c3flag = 0
132@ = 2809.0
139@ = -1168.0
146@ = 1024.572
133@ = 2820.033
140@ = -1165.8361
147@ = 1024.696
134@ = 2819.54
141@ = -1170.556
148@ = 1028.297
135@ = 2817.021
142@ = -1165.202
149@ = 1028.3051
136@ = 2812.656
143@ = -1168.58
150@ = 1028.297
137@ = 2812.6111
144@ = -1172.7321
151@ = 1024.6949
138@ = 2803.6799
145@ = -1161.312
152@ = 1028.3051
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
171@ = 0
if 
  52@ == 999999
goto_if_false @GUNS1_1040
108@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:GUNS1_1040
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
set_var_text_label s$ryd1_noise_bar[1] = 'RYD1_AA'
set_var_text_label s$ryd1_noise_bar[2] = 'RYD1_AB'
set_var_text_label s$ryd1_noise_bar[3] = 'RYD1_AC'
set_var_text_label s$ryd1_noise_bar[4] = 'RYD1_AD'
set_var_text_label s$ryd1_noise_bar[5] = 'RYD1_AE'
set_var_text_label s$ryd1_noise_bar[6] = 'RYD1_AF'
set_var_text_label s$ryd1_noise_bar[7] = 'RYD1_AG'
set_var_text_label s$ryd1_noise_bar[8] = 'RYD1_AH'
set_var_text_label s$ryd1_noise_bar[9] = 'RYD1_AJ'
set_var_text_label s$ryd1_noise_bar[10] = 'RYD1_BA'
set_var_text_label s$ryd1_noise_bar[11] = 'RYD1_BB'
set_var_text_label s$ryd1_noise_bar[12] = 'RYD1_BC'
set_var_text_label s$ryd1_noise_bar[13] = 'RYD1_BD'
set_var_text_label s$ryd1_noise_bar[14] = 'RYD1_BE'
set_var_text_label s$ryd1_noise_bar[15] = 'RYD1_BF'
set_var_text_label s$ryd1_noise_bar[16] = 'RYD1_CA'
set_var_text_label s$ryd1_noise_bar[17] = 'RYD1_CB'
set_var_text_label s$ryd1_noise_bar[18] = 'RYD1_CC'
set_var_text_label s$ryd1_noise_bar[19] = 'RYD1_CD'
set_var_text_label s$ryd1_noise_bar[20] = 'RYD1_CE'
set_var_text_label s$ryd1_noise_bar[21] = 'RYD1_CF'
set_var_text_label s$ryd1_noise_bar[22] = 'RYD1_ZA'
set_var_text_label s$ryd1_noise_bar[23] = 'RYD1_ZB'
set_var_text_label s$ryd1_noise_bar[24] = 'RYD1_ZC'
set_var_text_label s$ryd1_noise_bar[25] = 'RYD1_ZD'
set_var_text_label s$ryd1_noise_bar[26] = 'RYD1_ZE'
set_var_text_label s$ryd1_noise_bar[27] = 'RYD1_ZF'
set_var_text_label s$ryd1_noise_bar[28] = 'RYD1_ZG'
set_var_text_label s$ryd1_noise_bar[29] = 'RYD1_ZH'
set_var_text_label s$ryd1_noise_bar[30] = 'RYD1_ZJ'
set_var_text_label s$ryd1_noise_bar[31] = 'RYD1_ZK'
set_var_text_label s$ryd1_noise_bar[32] = 'RYD1_ZL'
set_var_text_label s$ryd1_noise_bar[33] = 'RYD1_ZM'
set_var_text_label s$ryd1_noise_bar[34] = 'RYD1_ZN'
set_var_text_label s$ryd1_noise_bar[35] = 'RYD1_DA'
set_var_text_label s$ryd1_noise_bar[36] = 'RYD1_DB'
set_var_text_label s$ryd1_noise_bar[37] = 'RYD1_DC'
set_var_text_label s$ryd1_noise_bar[38] = 'RYD1_DD'
set_var_text_label s$ryd1_noise_bar[39] = 'RYD1_DE'
set_var_text_label s$ryd1_noise_bar[40] = 'RYD1_DF'
set_var_text_label s$ryd1_noise_bar[41] = 'RYD1_DG'
set_var_text_label s$ryd1_noise_bar[42] = 'RYD1_DH'
set_var_text_label s$ryd1_noise_bar[43] = 'RYD1_DJ'
set_var_text_label s$ryd1_noise_bar[44] = 'RYD1_DK'
set_var_text_label s$ryd1_noise_bar[45] = 'RYD1_DL'
set_var_text_label s$ryd1_noise_bar[46] = 'RYD1_EA'
set_var_text_label s$ryd1_noise_bar[47] = 'RYD1_EB'
set_var_text_label s$ryd1_noise_bar[48] = 'RYD1_EC'
set_var_text_label s$ryd1_noise_bar[49] = 'RYD1_ED'
set_var_text_label s$ryd1_noise_bar[50] = 'RYD1_FA'
set_var_text_label s$ryd1_noise_bar[51] = 'RYD1_FB'
set_var_text_label s$ryd1_noise_bar[52] = 'RYD1_FC'
set_var_text_label s$ryd1_noise_bar[53] = 'RYD1_GA'
set_var_text_label s$ryd1_noise_bar[54] = 'RYD1_GB'
set_var_text_label s$ryd1_noise_bar[55] = 'RYD1_GC'
set_var_text_label s$ryd1_noise_bar[56] = 'RYD1_GD'
set_var_text_label s$ryd1_noise_bar[57] = 'RYD1_GE'
set_var_text_label s$ryd1_noise_bar[58] = 'RYD1_GF'
set_var_text_label s$ryd1_noise_bar[59] = 'RYD1_GG'
set_var_text_label s$ryd1_noise_bar[60] = 'RYD1_GH'
set_var_text_label s$ryd1_noise_bar[61] = 'RYD1_GJ'
set_var_text_label s$ryd1_noise_bar[62] = 'RYD1_GK'
set_var_text_label s$ryd1_noise_bar[63] = 'RYD1_GL'
set_var_text_label s$ryd1_noise_bar[64] = 'RYD1_HA'
set_var_text_label s$ryd1_noise_bar[65] = 'RYD1_HB'
set_var_text_label s$ryd1_noise_bar[66] = 'RYD1_JA'
set_var_text_label s$ryd1_noise_bar[67] = 'RYD1_JB'
set_var_text_label s$ryd1_noise_bar[68] = 'RYD1_KA'
set_var_text_label s$ryd1_noise_bar[69] = 'RYD1_KB'
set_var_text_label s$ryd1_noise_bar[70] = 'RYD1_KC'
set_var_text_label s$ryd1_noise_bar[71] = 'RYD1_KD'
set_var_text_label s$ryd1_noise_bar[72] = 'RYD1_KE'
set_var_text_label s$ryd1_noise_bar[73] = 'RYD1_KF'
set_var_text_label s$ryd1_noise_bar[74] = 'RYD1_KG'
set_var_text_label s$ryd1_noise_bar[75] = 'RYD1_KH'
set_var_text_label s$ryd1_noise_bar[76] = 'RYDX_AC'
set_var_text_label s$ryd1_noise_bar[77] = 'RYD1_LA'
set_var_text_label s$ryd1_noise_bar[78] = 'RYD1_LB'
set_var_text_label s$ryd1_noise_bar[79] = 'RYD1_LC'
set_var_text_label s$ryd1_noise_bar[80] = 'RYDX_BG'
set_var_text_label s$ryd1_noise_bar[81] = 'RYDX_BI'
set_lvar_int_to_constant 173@ = 10400
set_lvar_int_to_constant 174@ = 10408
set_lvar_int_to_constant 175@ = 10401
set_lvar_int_to_constant 176@ = 10409
set_lvar_int_to_constant 177@ = 10410
set_lvar_int_to_constant 178@ = 10402
set_lvar_int_to_constant 179@ = 10411
set_lvar_int_to_constant 180@ = 10403
set_lvar_int_to_constant 181@ = 10412
set_lvar_int_to_constant 182@ = 10413
set_lvar_int_to_constant 183@ = 10404
set_lvar_int_to_constant 184@ = 10414
set_lvar_int_to_constant 185@ = 10415
set_lvar_int_to_constant 186@ = 10405
set_lvar_int_to_constant 187@ = 10416
set_lvar_int_to_constant 188@ = 10417
set_lvar_int_to_constant 189@ = 10418
set_lvar_int_to_constant 190@ = 10406
set_lvar_int_to_constant 191@ = 10445
set_lvar_int_to_constant 192@ = 10419
set_lvar_int_to_constant 193@ = 10446
set_lvar_int_to_constant 194@ = 10461
set_lvar_int_to_constant 195@ = 10462
set_lvar_int_to_constant 196@ = 10463
set_lvar_int_to_constant 197@ = 10464
set_lvar_int_to_constant 198@ = 10465
set_lvar_int_to_constant 199@ = 10466
set_lvar_int_to_constant 200@ = 10467
set_lvar_int_to_constant 201@ = 10468
set_lvar_int_to_constant 202@ = 10469
set_lvar_int_to_constant 203@ = 10470
set_lvar_int_to_constant 204@ = 10471
set_lvar_int_to_constant 205@ = 10472
set_lvar_int_to_constant 206@ = 10473
set_lvar_int_to_constant 207@ = 65535
set_lvar_int_to_constant 208@ = 10474
set_lvar_int_to_constant 209@ = 10475
set_lvar_int_to_constant 210@ = 10407
set_lvar_int_to_constant 211@ = 10476
set_lvar_int_to_constant 212@ = 10420
set_lvar_int_to_constant 213@ = 10447
set_lvar_int_to_constant 214@ = 10421
set_lvar_int_to_constant 215@ = 10422
set_lvar_int_to_constant 216@ = 10423
set_lvar_int_to_constant 217@ = 10448
set_lvar_int_to_constant 218@ = 10449
set_lvar_int_to_constant 219@ = 10424
set_lvar_int_to_constant 220@ = 10425
set_lvar_int_to_constant 221@ = 10426
set_lvar_int_to_constant 222@ = 10427
set_lvar_int_to_constant 223@ = 10428
set_lvar_int_to_constant 224@ = 10450
set_lvar_int_to_constant 225@ = 10451
set_lvar_int_to_constant 226@ = 10429
set_lvar_int_to_constant 227@ = 10452
set_lvar_int_to_constant 228@ = 10430
set_lvar_int_to_constant 229@ = 10453
set_lvar_int_to_constant 230@ = 10431
set_lvar_int_to_constant 231@ = 10454
set_lvar_int_to_constant 232@ = 10432
set_lvar_int_to_constant 233@ = 10433
set_lvar_int_to_constant 234@ = 10455
set_lvar_int_to_constant 235@ = 10434
set_lvar_int_to_constant 236@ = 10435
set_lvar_int_to_constant 237@ = 10436
set_lvar_int_to_constant 238@ = 10437
set_lvar_int_to_constant 239@ = 10456
set_lvar_int_to_constant 240@ = 10438
set_lvar_int_to_constant 241@ = 10439
set_lvar_int_to_constant 242@ = 10440
set_lvar_int_to_constant 243@ = 10441
set_lvar_int_to_constant 244@ = 10442
set_lvar_int_to_constant 245@ = 10443
set_lvar_int_to_constant 246@ = 10457
set_lvar_int_to_constant 247@ = 10444
set_lvar_int_to_constant 248@ = 25602
set_lvar_int_to_constant 249@ = 10458
set_lvar_int_to_constant 250@ = 10459
set_lvar_int_to_constant 251@ = 10460
set_lvar_int_to_constant 252@ = 25627
set_lvar_int_to_constant 253@ = 25629
set_lvar_int_to_constant 274@ = 23604
set_lvar_int_to_constant 275@ = 29400
set_lvar_int_to_constant 276@ = 23600
277@ = 0
278@ = 0
279@ = 0
$disable_mod_garage = 1
if 
  51@ == 0
goto_if_false @GUNS1_4763
$hours, $minutes = get_time_of_day 
77@ = 1
set_time_of_day 22 {minutes} 0
switch_entry_exit 'BURHOUS' {state} False
request_model 609
request_animation "CAR_CHAT"
load_special_character 1 {modelName} 'RYDER2'

:GUNS1_3091
if or
  not has_model_loaded 609
  not has_special_character_loaded 1
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GUNS1_3134
wait 0
goto @GUNS1_3091

:GUNS1_3134
clear_area 2470.656 {y} -1689.649 {z} 12.5198 {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 609 {text} "__SWAG__"
102@ = create_car 609 {x} 2476.6819 {y} -1679.566 {z} 12.3451
set_car_heading 102@ {heading} 48.737
98@ = create_char PedType.Special {modelId} 290 {x} 2475.168 {y} -1686.483 {z} 12.5007
set_char_cant_be_dragged_out 98@ {state} True
set_char_decision_maker 98@ {handleOrTemplate} 39@
clear_char_decision_maker_event_response 39@ {event} Event.Damage
clear_char_decision_maker_event_response 39@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 39@ {event} Event.GotKnockedOverByCar
clear_char_decision_maker_event_response 39@ {event} Event.VehicleDamageCollision
clear_char_decision_maker_event_response 39@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 39@ {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_anim_group_for_char 98@ {animGroup} "GANG1"
set_char_never_targetted 98@ {state} True
set_char_health 98@ {health} 200
set_char_suffers_critical_hits 98@ {state} False
set_car_heading 102@ {heading} 30.0
if 
  77@ == 999
goto_if_false @GUNS1_3393
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True

:GUNS1_3393
clear_prints 
55@ = 1
59@ = 1
53@ = 1
51@ = 1
load_scene 2475.0 {y} -1699.0 {z} 15.0
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2473.4829 {y} -1686.599 {z} 12.5154
set_char_heading $scplayer {heading} 14.9748
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2473.5271 {y} -1680.036 {z} 12.3551 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 102@ {time} 5000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
set_char_heading 98@ {heading} 349.379
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2480.925 {y} -1682.348 {z} 12.3381 {speed} MoveState.Run {time} 6000
task_go_straight_to_coord -1 {x} 2478.3049 {y} -1677.0601 {z} 12.3478 {speed} MoveState.Run {time} 6000
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 3000 {seat} SeatId.BikeRear
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@
set_fixed_camera_position 2470.3831 {y} -1675.816 {z} 13.2161 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2471.166 {y} -1676.424 {z} 13.347 {switchStyle} SwitchType.JumpCut
switch_widescreen True
clear_area 2470.656 {y} -1689.649 {z} 12.5198 {radius} 100.0 {clearParticles} True
set_time_of_day 22 {minutes} 0
do_fade 1000 {direction} Fade.In

:GUNS1_3718
if 
  get_fading_status 
goto_if_false @GUNS1_3742
wait 0
goto @GUNS1_3718

:GUNS1_3742
skip_cutscene_start_internal @GUNS1_4286
TIMERA = 0
52@ = 0
254@ = 76
255@ = 1
256@ = 2
257@ = 0
263@ = 0

:GUNS1_3798
if 
  52@ == 0
goto_if_false @GUNS1_4286
if 
  254@ <> 0
goto_if_false @GUNS1_4155
if 
  257@ == 0
goto_if_false @GUNS1_3880
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_3873
clear_mission_audio 256@

:GUNS1_3873
257@ = 1

:GUNS1_3880
if 
  257@ == 1
goto_if_false @GUNS1_3917
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_3917
if 
  257@ == 2
goto_if_false @GUNS1_3977
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_3977
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_3977
if 
  257@ == 3
goto_if_false @GUNS1_4155
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_4094
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_4059
255@ = 2
256@ = 1
goto @GUNS1_4073

:GUNS1_4059
255@ = 1
256@ = 2

:GUNS1_4073
254@ = 0
257@ = 0
goto @GUNS1_4155

:GUNS1_4094
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_4155
if 
  76 > 254@
goto_if_false @GUNS1_4155
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_4155
if 
  TIMERA > 15000
goto_if_false @GUNS1_4181
52@ = 1

:GUNS1_4181
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4268
if 
  not is_car_dead 102@
goto_if_false @GUNS1_4254
if and
  is_char_sitting_in_car 98@ {vehicle} 102@
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_4247
52@ = 1

:GUNS1_4247
goto @GUNS1_4261

:GUNS1_4254
52@ = 1

:GUNS1_4261
goto @GUNS1_4275

:GUNS1_4268
52@ = 1

:GUNS1_4275
wait 0
goto @GUNS1_3798

:GUNS1_4286
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  77@ == 1
goto_if_false @GUNS1_4604
set_everyone_ignore_player $player1 {state} True
clear_mission_audio 255@
clear_mission_audio 256@
clear_prints 
freeze_onscreen_timer False
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
do_fade 1000 {direction} Fade.Out

:GUNS1_4416
if 
  get_fading_status 
goto_if_false @GUNS1_4440
wait 0
goto @GUNS1_4416

:GUNS1_4440
if 
  not is_car_dead 102@
goto_if_false @GUNS1_4528
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4528
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_4501
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_4501
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_4528
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_4528
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
make_room_in_player_gang_for_mission_peds 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4604
if 
  not is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_4604
set_script_limit_to_gang_size 1
set_group_member $Players_Group {handle} 98@
set_group_follow_status $Players_Group {state} False
listen_to_player_group_commands 98@ {state} False

:GUNS1_4604
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
set_time_of_day 22 {minutes} 0
remove_animation "CAR_CHAT"
set_everyone_ignore_player $player1 {state} False
store_clothes_state 
88@ = 1
give_player_clothes_outside_shop $player1 {textureName} "BALACLAVA" {modelName} "BALACLAVA" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
clear_this_big_print 'BOXBURG'
print 'GUNS130' {time} 5000 {flag} 1
do_fade 1000 {direction} Fade.In

:GUNS1_4714
if 
  get_fading_status 
goto_if_false @GUNS1_4738
wait 0
goto @GUNS1_4714

:GUNS1_4738
set_player_control $player1 {state} True
if 
  $played_vcrash1_before == 1
goto_if_false @GUNS1_4763

:GUNS1_4763
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @GUNS1_4813
goto @GUNS1_40498
99@ = create_char PedType.Mission1 {modelId} 62 {x} 2817.269 {y} -1169.875 {z} 28.272

:GUNS1_4813
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @GUNS1_4848
set_char_coordinates $scplayer {x} 2834.0 {y} -1182.0 {z} 25.0

:GUNS1_4848
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @GUNS1_4883
set_char_coordinates $scplayer {x} 2492.0 {y} -1666.0 {z} 12.0

:GUNS1_4883
if 
is_ps2_keyboard_key_pressed 33
goto_if_false @GUNS1_4905
35@ = 4

:GUNS1_4905
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @GUNS1_4927
51@ = 8

:GUNS1_4927
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @GUNS1_4952
$tripskip_c3flag = 6000000

:GUNS1_4952
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @GUNS1_4975
$tripskip_c3flag = 5000

:GUNS1_4975
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GUNS1_4997
goto @GUNS1_40498

:GUNS1_4997
if 
  53@ == 1
goto_if_false @GUNS1_5402
if 
  is_char_dead 98@
goto_if_false @GUNS1_5163
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5140
do_fade 1000 {direction} Fade.Out

:GUNS1_5069
if 
  get_fading_status 
goto_if_false @GUNS1_5093
wait 0
goto @GUNS1_5069

:GUNS1_5093
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_5116
if 
  get_fading_status 
goto_if_false @GUNS1_5140
wait 0
goto @GUNS1_5116

:GUNS1_5140
print 'GUNS125' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_5163
if 
  is_car_dead 102@
goto_if_false @GUNS1_5309
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5286
do_fade 1000 {direction} Fade.Out

:GUNS1_5215
if 
  get_fading_status 
goto_if_false @GUNS1_5239
wait 0
goto @GUNS1_5215

:GUNS1_5239
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_5262
if 
  get_fading_status 
goto_if_false @GUNS1_5286
wait 0
goto @GUNS1_5262

:GUNS1_5286
print 'GUNS122' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_5309
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_5402
if 
  8 > 51@
goto_if_false @GUNS1_5402
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5402
print 'RYD1_37' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_5402
if and
  51@ == 1
  not is_car_dead 102@
goto_if_false @GUNS1_5508
if 
  is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_5508
remove_blip 104@
55@ = 0
clear_prints 
105@ = add_blip_for_coord 2819.8999 {y} -1181.7 {z} 25.15
print 'GUNS130' {time} 5000 {flag} 1
56@ = 1
51@ = 2

:GUNS1_5508
if 
  51@ == 2
goto_if_false @GUNS1_8248
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_6558
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_6110
if 
  55@ == 0
goto_if_false @GUNS1_5772
if 
  59@ == 0
goto_if_false @GUNS1_5632
if 
  57@ == 1
goto_if_false @GUNS1_5632
remove_blip 108@
57@ = 0

:GUNS1_5632
remove_blip 105@
if 
  57@ == 1
goto_if_false @GUNS1_5667
remove_blip 108@
57@ = 0

:GUNS1_5667
56@ = 0
if 
  is_message_being_displayed 
goto_if_false @GUNS1_5694
44@ = 1

:GUNS1_5694
clear_prints 
print 'GUNS128' {time} 5000 {flag} 1
254@ = 76
257@ = 0
clear_mission_audio 255@
clear_mission_audio 256@
set_player_group_to_follow_never $player1 {state} True
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1
goto @GUNS1_6103

:GUNS1_5772
if 
  254@ <> 0
goto_if_false @GUNS1_6103
if 
  257@ == 0
goto_if_false @GUNS1_5836
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_5829
clear_mission_audio 256@

:GUNS1_5829
257@ = 1

:GUNS1_5836
if 
  257@ == 1
goto_if_false @GUNS1_5873
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_5873
if 
  257@ == 2
goto_if_false @GUNS1_5934
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_5934
attach_mission_audio_to_char 255@ {handle} 98@
play_mission_audio 255@
43@ += 1
257@ = 3

:GUNS1_5934
if 
  257@ == 3
goto_if_false @GUNS1_6103
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_6042
if 
  255@ == 1
goto_if_false @GUNS1_6007
255@ = 2
256@ = 1
goto @GUNS1_6021

:GUNS1_6007
255@ = 1
256@ = 2

:GUNS1_6021
254@ = 0
257@ = 0
goto @GUNS1_6103

:GUNS1_6042
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_6103
if 
  76 > 254@
goto_if_false @GUNS1_6103
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_6103
goto @GUNS1_6254

:GUNS1_6110
if 
  59@ == 1
goto_if_false @GUNS1_6217
if 
  56@ == 0
goto_if_false @GUNS1_6210
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
55@ = 0
clear_prints 
print 'GUNS130' {time} 5000 {flag} 1
105@ = add_blip_for_coord 2819.8999 {y} -1181.7 {z} 25.15
56@ = 1

:GUNS1_6210
goto @GUNS1_6254

:GUNS1_6217
if 
  55@ == 1
goto_if_false @GUNS1_6254
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
55@ = 0

:GUNS1_6254
if 
  is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_6349
if 
  59@ == 0
goto_if_false @GUNS1_6342
if 
  57@ == 1
goto_if_false @GUNS1_6321
remove_blip 108@
57@ = 0

:GUNS1_6321
59@ = 1
58@ = 0
59@ = 1

:GUNS1_6342
goto @GUNS1_6558

:GUNS1_6349
if 
  59@ == 1
goto_if_false @GUNS1_6374
59@ = 0

:GUNS1_6374
if and
  57@ == 0
  55@ == 0
goto_if_false @GUNS1_6471
remove_blip 105@
56@ = 0
108@ = add_blip_for_char 98@
set_blip_as_friendly 108@ {state} True
if 
  is_message_being_displayed 
goto_if_false @GUNS1_6446
44@ = 1

:GUNS1_6446
clear_prints 
print 'GUNS143' {time} 5000 {flag} 1
57@ = 1

:GUNS1_6471
if 
  58@ == 0
goto_if_false @GUNS1_6515
task_enter_car_as_passenger 98@ {vehicle} 102@ {time} -2 {seat} SeatId.BikeRear
58@ = 1
goto @GUNS1_6558

:GUNS1_6515
38@ = get_script_task_status 98@ {taskId} 1482
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_6558
58@ = 0

:GUNS1_6558
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8086
if 
  44@ == 1
goto_if_false @GUNS1_6674
if 
  8 > 43@
goto_if_false @GUNS1_6674
print 'GUNS135' {time} 4000 {flag} 1
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_6667
43@ = 0

:GUNS1_6667
44@ = 0

:GUNS1_6674
if 
  44@ == 0
goto_if_false @GUNS1_8086
if 
  258@ == 0
goto_if_false @GUNS1_8086
if 
  254@ <> 0
goto_if_false @GUNS1_7056
if 
  257@ == 0
goto_if_false @GUNS1_6774
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_6767
clear_mission_audio 256@

:GUNS1_6767
257@ = 1

:GUNS1_6774
if 
  257@ == 1
goto_if_false @GUNS1_6811
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_6811
if 
  257@ == 2
goto_if_false @GUNS1_6878
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_6878
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
43@ += 1
257@ = 3

:GUNS1_6878
if 
  257@ == 3
goto_if_false @GUNS1_7056
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_6995
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_6960
255@ = 2
256@ = 1
goto @GUNS1_6974

:GUNS1_6960
255@ = 1
256@ = 2

:GUNS1_6974
254@ = 0
257@ = 0
goto @GUNS1_7056

:GUNS1_6995
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_7056
if 
  76 > 254@
goto_if_false @GUNS1_7056
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_7056
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_8086
switch_start 259@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @GUNS1_7963 {caseNum1} 0 {caseLabel1} @GUNS1_7197 {caseNum2} 1 {caseLabel2} @GUNS1_7279 {caseNum3} 2 {caseLabel3} @GUNS1_7363 {caseNum4} 3 {caseLabel4} @GUNS1_7471 {caseNum5} 4 {caseLabel5} @GUNS1_7579 {caseNum6} 5 {caseLabel6} @GUNS1_7663 {caseNum7} 6 {caseLabel7} @GUNS1_7771
switch_continued 7 {caseLabel1} @GUNS1_7855 {caseNum2} -1 {caseLabel2} @GUNS1_8086 {caseNum3} -1 {caseLabel3} @GUNS1_8086 {caseNum4} -1 {caseLabel4} @GUNS1_8086 {caseNum5} -1 {caseLabel5} @GUNS1_8086 {caseNum6} -1 {caseLabel6} @GUNS1_8086 {caseNum7} -1 {caseLabel7} @GUNS1_8086 {caseNum8} -1 {caseLabel8} @GUNS1_8086 {caseNum9} -1 {caseLabel9} @GUNS1_8086

:GUNS1_7197
if 
  257@ == 0
goto_if_false @GUNS1_7272
254@ = 2
259@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7267
start_char_facial_talk 98@ {duration} 5000
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_7267
262@ = get_game_timer 

:GUNS1_7272
goto @GUNS1_8086

:GUNS1_7279
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7356
if 
  257@ == 0
goto_if_false @GUNS1_7356
254@ = 3
259@ = 2
262@ = get_game_timer 

:GUNS1_7356
goto @GUNS1_8086

:GUNS1_7363
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7464
if 
  257@ == 0
goto_if_false @GUNS1_7464
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7445
start_char_facial_talk 98@ {duration} 4000

:GUNS1_7445
254@ = 4
259@ = 3
262@ = get_game_timer 

:GUNS1_7464
goto @GUNS1_8086

:GUNS1_7471
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7572
if 
  257@ == 0
goto_if_false @GUNS1_7572
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7553
start_char_facial_talk 98@ {duration} 4000

:GUNS1_7553
254@ = 5
259@ = 4
262@ = get_game_timer 

:GUNS1_7572
goto @GUNS1_8086

:GUNS1_7579
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7656
if 
  257@ == 0
goto_if_false @GUNS1_7656
254@ = 6
259@ = 5
262@ = get_game_timer 

:GUNS1_7656
goto @GUNS1_8086

:GUNS1_7663
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7764
if 
  257@ == 0
goto_if_false @GUNS1_7764
254@ = 7
259@ = 6
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7759
start_char_facial_talk 98@ {duration} 3000

:GUNS1_7759
262@ = get_game_timer 

:GUNS1_7764
goto @GUNS1_8086

:GUNS1_7771
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7848
if 
  257@ == 0
goto_if_false @GUNS1_7848
254@ = 8
259@ = 7
262@ = get_game_timer 

:GUNS1_7848
goto @GUNS1_8086

:GUNS1_7855
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7956
if 
  257@ == 0
goto_if_false @GUNS1_7956
254@ = 9
259@ = 8
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7951
start_char_facial_talk 98@ {duration} 3000

:GUNS1_7951
262@ = get_game_timer 

:GUNS1_7956
goto @GUNS1_8086

:GUNS1_7963
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_8079
if 
  257@ == 0
goto_if_false @GUNS1_8079
258@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_8063
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk 98@

:GUNS1_8063
print 'GUNS130' {time} 5000 {flag} 1

:GUNS1_8079
goto @GUNS1_8086

:GUNS1_8086
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8248
if 
  locate_char_in_car_3d $scplayer {x} 2819.8999 {y} -1181.7 {z} 25.15 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.5 {drawSphere} True
goto_if_false @GUNS1_8248
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
remove_blip 105@
56@ = 0
44@ = 0
set_police_ignore_player $player1 {state} True
clear_prints 
clear_area 2819.8999 {y} -1181.7 {z} 25.15 {radius} 30.0 {clearParticles} True
51@ = 3

:GUNS1_8248
if and
  4 > 51@
  80@ == 1
goto_if_false @GUNS1_8428
if 
  $tripskip_c3flag == 0
goto_if_false @GUNS1_8428
clear_prints 
clear_char_tasks $scplayer
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_8405
do_fade 1000 {direction} Fade.Out

:GUNS1_8334
if 
  get_fading_status 
goto_if_false @GUNS1_8358
wait 0
goto @GUNS1_8334

:GUNS1_8358
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_8381
if 
  get_fading_status 
goto_if_false @GUNS1_8405
wait 0
goto @GUNS1_8381

:GUNS1_8405
print 'RYD1_35' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_8428
if 
  51@ == 3
goto_if_false @GUNS1_11250
if 
  $played_vcrash1_before == 0
goto_if_false @GUNS1_8471
$played_vcrash1_before = 1

:GUNS1_8471
set_player_control $player1 {state} False
switch_widescreen True
freeze_onscreen_timer True
skip_cutscene_start_internal @GUNS1_10634
set_fixed_camera_position 2798.645 {y} -1190.165 {z} 31.8647 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2799.488 {y} -1189.684 {z} 31.6214 {switchStyle} SwitchType.JumpCut
clear_prints 
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_8616
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_10634
if 
  254@ <> 0
goto_if_false @GUNS1_8977
if 
  257@ == 0
goto_if_false @GUNS1_8702
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_8695
clear_mission_audio 256@

:GUNS1_8695
257@ = 1

:GUNS1_8702
if 
  257@ == 1
goto_if_false @GUNS1_8739
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_8739
if 
  257@ == 2
goto_if_false @GUNS1_8799
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_8799
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_8799
if 
  257@ == 3
goto_if_false @GUNS1_8977
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_8916
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_8881
255@ = 2
256@ = 1
goto @GUNS1_8895

:GUNS1_8881
255@ = 1
256@ = 2

:GUNS1_8895
254@ = 0
257@ = 0
goto @GUNS1_8977

:GUNS1_8916
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_8977
if 
  76 > 254@
goto_if_false @GUNS1_8977
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_8977
switch_start 259@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_10555 {caseNum1} 0 {caseLabel1} @GUNS1_9040 {caseNum2} 1 {caseLabel2} @GUNS1_9158 {caseNum3} 2 {caseLabel3} @GUNS1_9321 {caseNum4} 3 {caseLabel4} @GUNS1_9457 {caseNum5} 4 {caseLabel5} @GUNS1_10010 {caseNum6} 5 {caseLabel6} @GUNS1_10233 {caseNum7} 6 {caseLabel7} @GUNS1_10421

:GUNS1_9040
if 
  257@ == 0
goto_if_false @GUNS1_9151
254@ = 10
259@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9146
start_char_facial_talk 98@ {duration} 4000
125@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2809.281 {y} -1181.609 {z} 24.6181 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task 98@ {sequence} 125@
clear_sequence_task 125@

:GUNS1_9146
262@ = get_game_timer 

:GUNS1_9151
goto @GUNS1_10627

:GUNS1_9158
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9314
if 
  257@ == 0
goto_if_false @GUNS1_9314
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9245
stop_char_facial_talk 98@
start_char_facial_talk $scplayer {duration} 5000

:GUNS1_9245
124@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2808.1189 {y} -1182.255 {z} 24.6181 {speed} MoveState.Walk {time} -1
close_sequence_task 124@
perform_sequence_task $scplayer {sequence} 124@
clear_sequence_task 124@
254@ = 11
259@ = 2
262@ = get_game_timer 

:GUNS1_9314
goto @GUNS1_10627

:GUNS1_9321
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9450
if 
  257@ == 0
goto_if_false @GUNS1_9450
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9408
stop_char_facial_talk $scplayer
start_char_facial_talk 98@ {duration} 4000

:GUNS1_9408
254@ = 12
request_animation "ON_LOOKERS"
request_animation "GANGS"
259@ = 3
262@ = get_game_timer 

:GUNS1_9450
goto @GUNS1_10627

:GUNS1_9457
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10003
if 
  257@ == 0
goto_if_false @GUNS1_10003

:GUNS1_9515
if or
  not has_animation_loaded "ON_LOOKERS"
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_9560
wait 0
goto @GUNS1_9515

:GUNS1_9560
if 
  73@ == 0
goto_if_false @GUNS1_9787
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_9787
if and
  not is_char_in_car $scplayer {vehicle} 102@
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_9787
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 98@
set_char_coordinates $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693
set_char_heading $scplayer {heading} 353.059
set_char_coordinates 98@ {x} 2809.281 {y} -1181.609 {z} 24.3693
set_char_heading 98@ {heading} 30.6396
set_fixed_camera_position 2804.0601 {y} -1181.834 {z} 25.8646 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2804.96 {y} -1181.406 {z} 25.9365 {switchStyle} SwitchType.JumpCut
close_all_car_doors 102@
lock_car_doors 102@ {lockStatus} CarLock.Locked
fix_car_door 102@ {door} CarDoor.LeftFrontDoor
fix_car_door 102@ {door} CarDoor.RightFrontDoor
freeze_car_position 102@ {state} True
73@ = 1

:GUNS1_9787
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9960
126@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 126@
perform_sequence_task 98@ {sequence} 126@
clear_sequence_task 126@
task_turn_char_to_face_char $scplayer {target} 98@

:GUNS1_9960
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9984
start_char_facial_talk 98@ {duration} 4000

:GUNS1_9984
254@ = 13
259@ = 4
262@ = get_game_timer 

:GUNS1_10003
goto @GUNS1_10627

:GUNS1_10010
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10226
if 
  257@ == 0
goto_if_false @GUNS1_10226
request_animation "GANGS"

:GUNS1_10077
if 
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_10108
wait 0
goto @GUNS1_10077

:GUNS1_10108
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10137
stop_char_facial_talk 98@
start_char_facial_talk $scplayer {duration} 3000

:GUNS1_10137
254@ = 14
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10214
task_look_at_char $scplayer {target} 98@ {time} 5000
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GUNS1_10214
259@ = 5
262@ = get_game_timer 

:GUNS1_10226
goto @GUNS1_10627

:GUNS1_10233
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10414
if 
  257@ == 0
goto_if_false @GUNS1_10414
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10320
stop_char_facial_talk $scplayer
start_char_facial_talk 98@ {duration} 4000

:GUNS1_10320
254@ = 15
clear_char_tasks $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10402
task_look_at_char 98@ {target} $scplayer {time} 3000
task_play_anim 98@ {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GUNS1_10402
259@ = 6
262@ = get_game_timer 

:GUNS1_10414
goto @GUNS1_10627

:GUNS1_10421
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10548
if 
  257@ == 0
goto_if_false @GUNS1_10548
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10503
start_char_facial_talk 98@ {duration} 4000

:GUNS1_10503
254@ = 16
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10536
clear_look_at 98@
task_shake_fist 98@

:GUNS1_10536
259@ = 7
262@ = get_game_timer 

:GUNS1_10548
goto @GUNS1_10627

:GUNS1_10555
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10620
if 
  257@ == 0
goto_if_false @GUNS1_10620
258@ = 1

:GUNS1_10620
goto @GUNS1_10627

:GUNS1_10627
goto @GUNS1_8616

:GUNS1_10634
skip_cutscene_end 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10662
stop_char_facial_talk 98@
stop_char_facial_talk $scplayer

:GUNS1_10662
clear_mission_audio 255@
clear_mission_audio 256@
freeze_onscreen_timer False
if 
  73@ == 0
goto_if_false @GUNS1_10911
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_10911
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 98@
if 
  not is_char_in_any_car $scplayer
goto_if_false @GUNS1_10768
set_char_coordinates $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693
goto @GUNS1_10788

:GUNS1_10768
warp_char_from_car_to_coord $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693

:GUNS1_10788
set_char_heading $scplayer {heading} 10.3905
if 
  not is_char_in_any_car 98@
goto_if_false @GUNS1_10841
set_char_coordinates_no_offset 98@ {x} 2809.281 {y} -1181.609 {z} 24.6181
goto @GUNS1_10861

:GUNS1_10841
warp_char_from_car_to_coord 98@ {x} 2809.281 {y} -1181.609 {z} 24.6181

:GUNS1_10861
set_char_heading 98@ {heading} 30.6396
close_all_car_doors 102@
lock_car_doors 102@ {lockStatus} CarLock.Locked
fix_car_door 102@ {door} CarDoor.LeftFrontDoor
fix_car_door 102@ {door} CarDoor.RightFrontDoor
freeze_car_position 102@ {state} True
73@ = 1

:GUNS1_10911
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10937
clear_char_tasks_immediately 98@
clear_look_at 98@

:GUNS1_10937
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
remove_animation "ON_LOOKERS"
clear_prints 
restore_camera_jumpcut 
switch_entry_exit 'BURHOUS' {state} True
set_player_control $player1 {state} True
switch_widescreen False
109@ = add_blip_for_coord 2808.0 {y} -1177.0 {z} 26.0
print 'RYD1_39' {time} 5000 {flag} 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_11243
if 
  is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_11065
remove_char_from_group 98@

:GUNS1_11065
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_11243
51@ = 4

:GUNS1_11250
if 
  51@ == 4
goto_if_false @GUNS1_12377
if or
  locate_char_any_means_3d $scplayer {x} 2808.0 {y} -1170.0 {z} 1026.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2807.96 {y} -1176.236 {z} 24.3824 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} False
goto_if_false @GUNS1_12377
clear_prints 
remove_blip 109@
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:GUNS1_11374
if 
  get_fading_status 
goto_if_false @GUNS1_11398
wait 0
goto @GUNS1_11374

:GUNS1_11398
clear_prints 
clear_help 
display_radar False
display_hud False
set_fixed_camera_position 2806.792 {y} -1168.75 {z} 1025.8831 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2807.3391 {y} -1169.587 {z} 1025.903 {switchStyle} SwitchType.JumpCut
set_radar_zoom 90
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_area_visible 8
load_scene 2807.6201 {y} -1169.88 {z} 1024.578
set_area_visible 8
set_char_has_used_entry_exit $scplayer {x} 2807.96 {y} -1176.236 {radius} 20.0
set_char_coordinates $scplayer {x} 2807.6201 {y} -1171.9 {z} 1024.578
set_char_heading $scplayer {heading} 0.0
167@ = 0.0
$ryd1_time_to_daylight = 0
set_area_visible 8
switch_ped_roads_off 2775.0 {leftBottomY} -1196.4 {leftBottomZ} 0.0 {rightTopX} 2840.0 {rightTopY} -1141.0 {rightTopZ} 40.0
clear_area 2808.73 {y} -1168.3199 {z} 1024.6 {radius} 100.0 {clearParticles} True
load_scene 2808.73 {y} -1168.3199 {z} 1024.6
restore_camera_jumpcut 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_11666
clear_char_tasks 98@

:GUNS1_11666
request_model #DB_AMMO

:GUNS1_11671
if 
  not has_model_loaded #DB_AMMO
goto_if_false @GUNS1_11698
wait 0
goto @GUNS1_11671

:GUNS1_11698
34@ = 0

:GUNS1_11705
if 
  7 > 34@
goto_if_false @GUNS1_11911
create_object #DB_AMMO {x} 132@(34@,7f) {y} 139@(34@,7f) {z} 146@(34@,7f) {var_handle} 117@(34@,7i)
add_blip_for_object 117@(34@,7i) {var_handle} 110@(34@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(34@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_11835
set_blip_entry_exit 110@(34@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_11835
81@(34@,7i) = 1
set_object_area_visible 117@(34@,7i) {areaId} 8
set_object_as_stealable 117@(34@,7i) {state} True
set_object_collision 117@(34@,7i) {state} True
set_object_dynamic 117@(34@,7i) {state} True
47@ += 1
34@ += 1
goto @GUNS1_11705

:GUNS1_11911
request_animation "INT_HOUSE"
request_animation "GANGS"

:GUNS1_11933
if or
  not has_animation_loaded "INT_HOUSE"
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_11977
wait 0
goto @GUNS1_11933

:GUNS1_11977
request_model 62
request_model 349

:GUNS1_11986
if or
  not has_model_loaded 62
  not has_model_loaded 349
goto_if_false @GUNS1_12017
wait 0
goto @GUNS1_11986

:GUNS1_12017
99@ = create_char PedType.Mission1 {modelId} 62 {x} 2816.8569 {y} -1169.075 {z} 1028.172
set_char_area_visible 99@ {areaId} 8
set_char_suffers_critical_hits 99@ {state} True
set_char_uses_collision_closest_object_of_type 2816.8569 {y} -1169.075 {z} 1028.172 {radius} 4.0 {modelId} #MED_BED_8 {state} False {target} 99@
set_char_decision_maker 99@ {handleOrTemplate} 40@
set_char_coordinates 99@ {x} 2816.8569 {y} -1169.075 {z} 1028.172
set_char_heading 99@ {heading} 90.0
give_weapon_to_char 99@ {weaponType} WeaponType.Shotgun {ammo} 3000
set_current_char_weapon 99@ {weaponType} WeaponType.Unarmed
task_play_anim 99@ {animationName} "BED_LOOP_R" {animationFile} "INT_HOUSE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 2806.792 {y} -1168.75 {z} 1025.8831 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2807.3391 {y} -1169.587 {z} 1025.903 {switchStyle} SwitchType.JumpCut
if 
  95@ == 0
goto_if_false @GUNS1_12297
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
95@ = 1

:GUNS1_12297
61@ = 1
35@ += 1
remove_blip 110@
81@ = 0
delete_object 117@
47@ -= 1
do_fade 500 {direction} Fade.In

:GUNS1_12342
if 
  get_fading_status 
goto_if_false @GUNS1_12366
wait 0
goto @GUNS1_12342

:GUNS1_12366
display_hud True
51@ = 5

:GUNS1_12377
if 
  7 > 51@
goto_if_false @GUNS1_12612
if 
  80@ == 0
goto_if_false @GUNS1_12605
$hours, $minutes = get_time_of_day 
if 
  $hours > 21
goto_if_false @GUNS1_12505
49@ = 24
sub_int_var_from_int_lvar 49@ -= $hours
49@ += 6
49@ *= 60000
set_var_int_to_lvar_int $tripskip_c3flag = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $tripskip_c3flag += $minutes

:GUNS1_12505
if 
  5 > $hours
goto_if_false @GUNS1_12582
49@ = 6
sub_int_var_from_int_lvar 49@ -= $hours
49@ *= 60000
set_var_int_to_lvar_int $tripskip_c3flag = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $tripskip_c3flag += $minutes

:GUNS1_12582
display_onscreen_timer_with_string $tripskip_c3flag {direction} TimerDirection.Down {text} 'RYD1_41'
80@ = 1

:GUNS1_12605
goto @GUNS1_12642

:GUNS1_12612
if 
  80@ == 1
goto_if_false @GUNS1_12642
clear_onscreen_timer $tripskip_c3flag
80@ = 0

:GUNS1_12642
if 
  51@ == 5
goto_if_false @GUNS1_14250
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
freeze_onscreen_timer True
skip_cutscene_start_internal @GUNS1_13601
clear_help 
print_help_forever 'RYD1_92'

:GUNS1_12708
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_12732
wait 0
goto @GUNS1_12708

:GUNS1_12732
TIMERA = 0
52@ = 0

:GUNS1_12746
if 
  52@ == 0
goto_if_false @GUNS1_12806
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_12795
52@ = 1

:GUNS1_12795
wait 0
goto @GUNS1_12746

:GUNS1_12806
clear_help 
print_help_forever 'RYD1_93'

:GUNS1_12819
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_12843
wait 0
goto @GUNS1_12819

:GUNS1_12843
TIMERA = 0
52@ = 0

:GUNS1_12857
if 
  52@ == 0
goto_if_false @GUNS1_12917
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_12906
52@ = 1

:GUNS1_12906
wait 0
goto @GUNS1_12857

:GUNS1_12917
set_fixed_camera_position 2815.5901 {y} -1169.15 {z} 1029.45 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.48 {y} -1173.33 {z} 1028.01 {switchStyle} SwitchType.JumpCut
clear_help 
print_help_forever 'RYD1_94'

:GUNS1_12981
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_13005
wait 0
goto @GUNS1_12981

:GUNS1_13005
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0
279@ = 0

:GUNS1_13040
if 
  52@ == 0
goto_if_false @GUNS1_13289
if 
  277@ <> 0
goto_if_false @GUNS1_13247
if 
  278@ == 0
goto_if_false @GUNS1_13120
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13113
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_13113
278@ = 1

:GUNS1_13120
if 
  278@ == 1
goto_if_false @GUNS1_13156
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_13156
if 
  278@ == 2
goto_if_false @GUNS1_13200
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13200
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_13200
if 
  278@ == 3
goto_if_false @GUNS1_13247
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_13247
277@ = 0
278@ = 0

:GUNS1_13247
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_13278
52@ = 1

:GUNS1_13278
wait 0
goto @GUNS1_13040

:GUNS1_13289
print_help_forever 'RYD1_95'

:GUNS1_13300
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_13324
wait 0
goto @GUNS1_13300

:GUNS1_13324
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0

:GUNS1_13352
if 
  52@ == 0
goto_if_false @GUNS1_13601
if 
  277@ <> 0
goto_if_false @GUNS1_13559
if 
  278@ == 0
goto_if_false @GUNS1_13432
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13425
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_13425
278@ = 1

:GUNS1_13432
if 
  278@ == 1
goto_if_false @GUNS1_13468
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_13468
if 
  278@ == 2
goto_if_false @GUNS1_13512
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13512
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_13512
if 
  278@ == 3
goto_if_false @GUNS1_13559
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_13559
277@ = 0
278@ = 0

:GUNS1_13559
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_13590
52@ = 1

:GUNS1_13590
wait 0
goto @GUNS1_13352

:GUNS1_13601
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot3
freeze_onscreen_timer False
clear_help 
clear_prints 
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_14029
clear_area 2812.8999 {y} -1181.13 {z} 1024.396 {radius} 100.0 {clearParticles} True
set_car_coordinates 102@ {x} 2811.8459 {y} -1183.291 {z} 24.2764
set_car_heading 102@ {heading} 246.9816
open_car_door 102@ {door} CarDoor.LeftRearDoor
open_car_door 102@ {door} CarDoor.RightRearDoor
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_13787
153@ += 360.0

:GUNS1_13787
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_14029
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
remove_animation "GANGS"
167@ = 0.0
$ryd1_time_to_daylight = 0
set_player_control $player1 {state} True
switch_widescreen False
if 
  94@ == 0
goto_if_false @GUNS1_14149
167@ = 0.0
$ryd1_time_to_daylight = 0
$ryd1_time_to_daylight = 0
display_onscreen_counter_with_string $ryd1_time_to_daylight {display} CounterDisplay.Bar {text} 'GUNS1_5'
display_radar False
94@ = 1
TIMERB = 0

:GUNS1_14149
95@ = 1
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 6
$ryd1_time_to_daylight = 0
167@ = 0.0

:GUNS1_14250
if and
  96@ == 0
  7 > 51@
goto_if_false @GUNS1_16100
if 
  91@ == 0
goto_if_false @GUNS1_14373
if 
  51@ == 6
goto_if_false @GUNS1_14373
if 
  TIMERB > 2500
goto_if_false @GUNS1_14373
clear_prints 
print 'RYD1_40' {time} 5000 {flag} 1
print_with_number 'RYD1_97' {num} 3 {duration} 5000 {flag} 1
91@ = 1

:GUNS1_14373
if 
  95@ == 0
goto_if_false @GUNS1_16100
if 
  94@ == 0
goto_if_false @GUNS1_16100
37@ = get_area_visible 
if 
  37@ == 8
goto_if_false @GUNS1_14574
if 
  locate_char_any_means_3d $scplayer {x} 2807.6201 {y} -1171.9 {z} 1024.578 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @GUNS1_14567
if 
  96@ == 0
goto_if_false @GUNS1_14567
$ryd1_time_to_daylight = 0
167@ = 0.0
if 
  94@ == 0
goto_if_false @GUNS1_14567
display_onscreen_counter_with_string $ryd1_time_to_daylight {display} CounterDisplay.Bar {text} 'GUNS1_5'
set_onscreen_counter_flash_when_first_displayed $ryd1_time_to_daylight {state} False
display_radar False
94@ = 1

:GUNS1_14567
goto @GUNS1_16100

:GUNS1_14574
if 
  $tripskip_c3flag == 0
goto_if_false @GUNS1_16100
if 
  not is_char_dead 99@
goto_if_false @GUNS1_14695
clear_char_tasks 99@
set_char_coordinates 99@ {x} 2806.9961 {y} -1169.809 {z} 1024.6121
set_char_heading 99@ {heading} 193.7598
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_14695
49@ = 0

:GUNS1_14702
if 
  7 > 49@
goto_if_false @GUNS1_14807
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_14751
set_object_as_stealable 117@(49@,7i) {state} False

:GUNS1_14751
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_14793
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_14793
49@ += 1
goto @GUNS1_14702

:GUNS1_14807
clear_onscreen_timer $tripskip_c3flag
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
if 
  35@ > 3
goto_if_false @GUNS1_14858
clear_onscreen_timer $tripskip_c3flag
51@ = 7
goto @GUNS1_16093

:GUNS1_14858
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @GUNS1_15947
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_15947
set_player_control $player1 {state} False
switch_widescreen True
clear_help 
clear_prints 
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False
load_scene 2807.8579 {y} -1188.103 {z} 25.4725
set_fixed_camera_position 2807.8579 {y} -1188.103 {z} 25.4725 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.792 {y} -1187.748 {z} 25.4449 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2832.2571 {y} -1182.708 {z} 23.7924
extend_route 2840.811 {y} -1211.145 {z} 22.6279
127@ = open_sequence_task 
if 
  51@ > 5
goto_if_false @GUNS1_15084
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 10000

:GUNS1_15084
task_enter_car_as_driver -1 {vehicle} 102@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 102@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
close_sequence_task 127@
perform_sequence_task 98@ {sequence} 127@
clear_sequence_task 127@
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_15186
if 
  52@ == 0
goto_if_false @GUNS1_15947
if 
  254@ <> 0
goto_if_false @GUNS1_15543
if 
  257@ == 0
goto_if_false @GUNS1_15268
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_15261
clear_mission_audio 256@

:GUNS1_15261
257@ = 1

:GUNS1_15268
if 
  257@ == 1
goto_if_false @GUNS1_15305
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_15305
if 
  257@ == 2
goto_if_false @GUNS1_15365
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_15365
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_15365
if 
  257@ == 3
goto_if_false @GUNS1_15543
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_15482
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_15447
255@ = 2
256@ = 1
goto @GUNS1_15461

:GUNS1_15447
255@ = 1
256@ = 2

:GUNS1_15461
254@ = 0
257@ = 0
goto @GUNS1_15543

:GUNS1_15482
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_15543
if 
  76 > 254@
goto_if_false @GUNS1_15543
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_15543
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_15787 {caseNum1} 0 {caseLabel1} @GUNS1_15606 {caseNum2} 1 {caseLabel2} @GUNS1_15674 {caseNum3} -1 {caseLabel3} @GUNS1_15857 {caseNum4} -1 {caseLabel4} @GUNS1_15857 {caseNum5} -1 {caseLabel5} @GUNS1_15857 {caseNum6} -1 {caseLabel6} @GUNS1_15857 {caseNum7} -1 {caseLabel7} @GUNS1_15857

:GUNS1_15606
if 
  257@ == 0
goto_if_false @GUNS1_15667
if 
  not is_char_dead 98@
goto_if_false @GUNS1_15648
start_char_facial_talk 98@ {duration} 5000

:GUNS1_15648
254@ = 81
259@ = 1
262@ = get_game_timer 

:GUNS1_15667
goto @GUNS1_15857

:GUNS1_15674
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_15780
if 
  257@ == 0
goto_if_false @GUNS1_15780
if 
  not is_char_dead 98@
goto_if_false @GUNS1_15753
stop_char_facial_talk 98@

:GUNS1_15753
start_char_facial_talk $scplayer {duration} 5000
254@ = 77
259@ = 2
262@ = get_game_timer 

:GUNS1_15780
goto @GUNS1_15857

:GUNS1_15787
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_15850
if 
  257@ == 0
goto_if_false @GUNS1_15850
stop_char_facial_talk $scplayer

:GUNS1_15850
goto @GUNS1_15857

:GUNS1_15857
if 
  not is_char_dead 98@
goto_if_false @GUNS1_15891
38@ = get_script_task_status 98@ {taskId} 1560
goto @GUNS1_15898

:GUNS1_15891
52@ = 1

:GUNS1_15898
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_15936
stop_char_facial_talk $scplayer
52@ = 1

:GUNS1_15936
wait 0
goto @GUNS1_15186

:GUNS1_15947
clear_prints 
clear_char_tasks $scplayer
restore_camera_jumpcut 
alter_wanted_level $player1 {wantedLevel} 2
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_16070
do_fade 1000 {direction} Fade.Out

:GUNS1_15999
if 
  get_fading_status 
goto_if_false @GUNS1_16023
wait 0
goto @GUNS1_15999

:GUNS1_16023
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_16046
if 
  get_fading_status 
goto_if_false @GUNS1_16070
wait 0
goto @GUNS1_16046

:GUNS1_16070
print 'RYD1_96' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_16093
94@ = 0

:GUNS1_16100
if 
  7 > 51@
goto_if_false @GUNS1_16233
160@, 161@, 162@ = get_char_coordinates $scplayer
if 
  162@ > 900.0
goto_if_false @GUNS1_16208
if 
  92@ == 0
goto_if_false @GUNS1_16201
37@ = get_area_visible 
if 
  37@ == 8
goto_if_false @GUNS1_16201
92@ = 1

:GUNS1_16201
goto @GUNS1_16233

:GUNS1_16208
if 
  92@ == 1
goto_if_false @GUNS1_16233
92@ = 0

:GUNS1_16233
if 
  51@ > 2
goto_if_false @GUNS1_23534
if 
  7 > 51@
goto_if_false @GUNS1_23534
if 
  94@ == 1
goto_if_false @GUNS1_23534
if 
  96@ == 0
goto_if_false @GUNS1_23534
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_16569
if 
  95@ == 1
goto_if_false @GUNS1_16472
clear_mission_audio MissionAudioSlot.Slot3
277@ = 3
278@ = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  60@ == 1
goto_if_false @GUNS1_16427
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_16427
set_object_area_visible 117@(36@,7i) {areaId} 0

:GUNS1_16427
if 
  94@ == 1
goto_if_false @GUNS1_16461
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
94@ = 0

:GUNS1_16461
95@ = 0
set_radar_zoom 0

:GUNS1_16472
if 
  $ryd1_time_to_daylight > 11
goto_if_false @GUNS1_16552
$ryd1_time_to_daylight -= 10
if 
  167@ > 11.0
goto_if_false @GUNS1_16535
167@ -= 10.0
goto @GUNS1_16545

:GUNS1_16535
167@ = 0.0

:GUNS1_16545
goto @GUNS1_16569

:GUNS1_16552
167@ = 0.0
$ryd1_time_to_daylight = 0

:GUNS1_16569
if 
  37@ == 8
goto_if_false @GUNS1_17345
if 
  locate_char_any_means_3d $scplayer {x} 2809.0 {y} -1169.0 {z} 1026.0 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GUNS1_17345
if 
  277@ <> 0
goto_if_false @GUNS1_16861
if 
  278@ == 0
goto_if_false @GUNS1_16697
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_16690
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_16690
278@ = 1

:GUNS1_16697
if 
  278@ == 1
goto_if_false @GUNS1_16733
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_16733
if 
  278@ == 2
goto_if_false @GUNS1_16800
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_16800
if 
  not is_char_dead 99@
goto_if_false @GUNS1_16793
attach_mission_audio_to_char MissionAudioSlot.Slot3 {handle} 99@
play_mission_audio MissionAudioSlot.Slot3

:GUNS1_16793
278@ = 3

:GUNS1_16800
if 
  278@ == 3
goto_if_false @GUNS1_16854
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_16854
277@ = 0
278@ = 0
TIMERA = 0

:GUNS1_16854
goto @GUNS1_16887

:GUNS1_16861
if 
  TIMERA > 3000
goto_if_false @GUNS1_16887
277@ = 3

:GUNS1_16887
if 
  not is_char_dead 99@
goto_if_false @GUNS1_17011
160@, 161@, 162@ = get_char_coordinates $scplayer
if 
  79@ == 1
goto_if_false @GUNS1_16968
166@ = get_sound_level_at_coords -1 {x} 160@ {y} 161@ {z} 162@
166@ *= 1.6
goto @GUNS1_17011

:GUNS1_16968
if 
  TIMERB > 500
goto_if_false @GUNS1_16994
79@ = 1

:GUNS1_16994
$ryd1_time_to_daylight = 0
167@ = 0.0

:GUNS1_17011
if 
  95@ == 0
goto_if_false @GUNS1_17127
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
if 
  60@ == 1
goto_if_false @GUNS1_17116
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_17116
set_object_area_visible 117@(36@,7i) {areaId} 8

:GUNS1_17116
set_radar_zoom 90
95@ = 1

:GUNS1_17127
if 
  166@ > 20.0
goto_if_false @GUNS1_17166
166@ -= 20.0
add_float_lvar_to_float_lvar 167@ += 166@

:GUNS1_17166
167@ *= 0.99
cset_var_int_to_lvar_float $ryd1_time_to_daylight =# 167@
if 
  $ryd1_time_to_daylight >= 100
goto_if_false @GUNS1_17246
$ryd1_time_to_daylight = 100
if 
  171@ == 0
goto_if_false @GUNS1_17239
169@ = get_game_timer 
171@ = 1

:GUNS1_17239
goto @GUNS1_17271

:GUNS1_17246
if 
  0 > $ryd1_time_to_daylight
goto_if_false @GUNS1_17271
$ryd1_time_to_daylight = 0

:GUNS1_17271
if 
  not is_char_dead 99@
goto_if_false @GUNS1_17345
if or
  has_char_been_damaged_by_char 99@ {handle} $scplayer
  locate_char_any_means_char_3d $scplayer {target} 99@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_17345
171@ = 2
$ryd1_time_to_daylight = 100

:GUNS1_17345
if 
  171@ == 1
goto_if_false @GUNS1_18259
168@ = get_game_timer 
set_lvar_int_to_lvar_int 170@ = 168@
sub_int_lvar_from_int_lvar 170@ -= 169@
if 
  170@ > 1500
goto_if_false @GUNS1_18259
if 
  93@ == 0
goto_if_false @GUNS1_18252
clear_mission_audio MissionAudioSlot.Slot3
277@ = 0
278@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2816.0959 {y} -1169.522 {z} 1029.0811 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2817.093 {y} -1169.588 {z} 1029.0551 {switchStyle} SwitchType.JumpCut
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_17573
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_18178
if 
  254@ <> 0
goto_if_false @GUNS1_17934
if 
  257@ == 0
goto_if_false @GUNS1_17659
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_17652
clear_mission_audio 256@

:GUNS1_17652
257@ = 1

:GUNS1_17659
if 
  257@ == 1
goto_if_false @GUNS1_17696
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_17696
if 
  257@ == 2
goto_if_false @GUNS1_17756
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_17756
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_17756
if 
  257@ == 3
goto_if_false @GUNS1_17934
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_17873
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_17838
255@ = 2
256@ = 1
goto @GUNS1_17852

:GUNS1_17838
255@ = 1
256@ = 2

:GUNS1_17852
254@ = 0
257@ = 0
goto @GUNS1_17934

:GUNS1_17873
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_17934
if 
  76 > 254@
goto_if_false @GUNS1_17934
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_17934
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_18171
switch_start 259@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @GUNS1_18078 {caseNum1} 0 {caseLabel1} @GUNS1_18010 {caseNum2} -1 {caseLabel2} @GUNS1_18171 {caseNum3} -1 {caseLabel3} @GUNS1_18171 {caseNum4} -1 {caseLabel4} @GUNS1_18171 {caseNum5} -1 {caseLabel5} @GUNS1_18171 {caseNum6} -1 {caseLabel6} @GUNS1_18171 {caseNum7} -1 {caseLabel7} @GUNS1_18171

:GUNS1_18010
if 
  257@ == 0
goto_if_false @GUNS1_18071
if 
  not is_char_dead 99@
goto_if_false @GUNS1_18052
start_char_facial_talk 99@ {duration} 5000

:GUNS1_18052
254@ = 36
259@ = 1
262@ = get_game_timer 

:GUNS1_18071
goto @GUNS1_18171

:GUNS1_18078
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_18164
if 
  not is_char_dead 99@
goto_if_false @GUNS1_18139
stop_char_facial_talk 99@

:GUNS1_18139
if 
  257@ == 0
goto_if_false @GUNS1_18164
258@ = 1

:GUNS1_18164
goto @GUNS1_18171

:GUNS1_18171
goto @GUNS1_17573

:GUNS1_18178
print 'GUNS134' {time} 3000 {flag} 1
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
171@ = 0
$ryd1_time_to_daylight = 0
167@ = 0.0
93@ = 1
277@ = 3
goto @GUNS1_18259

:GUNS1_18252
171@ = 2

:GUNS1_18259
if or
  171@ == 2
  $tripskip_c3flag == 0
goto_if_false @GUNS1_23174
clear_mission_audio MissionAudioSlot.Slot3
278@ = 0
277@ = 0
49@ = 0

:GUNS1_18309
if 
  7 > 49@
goto_if_false @GUNS1_18414
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_18358
set_object_as_stealable 117@(49@,7i) {state} False

:GUNS1_18358
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_18400
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_18400
49@ += 1
goto @GUNS1_18309

:GUNS1_18414
if 
  37@ == 8
goto_if_false @GUNS1_21775
if 
  not is_char_dead 99@
goto_if_false @GUNS1_21768
49@ = get_char_health 99@
if 
  20 > 49@
goto_if_false @GUNS1_18481
set_char_health 99@ {health} 20

:GUNS1_18481
clear_mission_audio MissionAudioSlot.Slot3
clear_char_tasks_immediately 99@
freeze_char_position_and_dont_load_collision 99@ {state} False
157@, 158@, 159@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 1.0 {zOffset} 0.0
clear_area 2808.123 {y} -1172.823 {z} 1024.6121 {radius} 10.0 {clearParticles} True
if 
  locate_char_any_means_char_3d $scplayer {target} 99@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_18616
set_char_coordinates $scplayer {x} 2817.229 {y} -1166.11 {z} 1028.172
set_char_heading $scplayer {heading} 94.7698

:GUNS1_18616
set_char_coordinates 99@ {x} 2815.9609 {y} -1169.392 {z} 1028.172
set_char_heading 99@ {heading} 14.1
set_fixed_camera_position 2816.2419 {y} -1168.358 {z} 1029.485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2815.6741 {y} -1169.144 {z} 1029.729 {switchStyle} SwitchType.JumpCut
127@ = open_sequence_task 
task_scratch_head -1
task_shake_fist -1
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
set_player_control $player1 {state} False
clear_char_tasks $scplayer
switch_widescreen True
clear_prints 
clear_help 
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  4 > 35@
goto_if_false @GUNS1_18811
set_char_coordinates $scplayer {x} 2807.5249 {y} -1167.076 {z} 1024.578
set_char_heading $scplayer {heading} 169.2411

:GUNS1_18811
set_current_char_weapon 99@ {weaponType} WeaponType.Shotgun
skip_cutscene_start_internal @GUNS1_19606
clear_prints 
if 
  $tripskip_c3flag > 0
goto_if_false @GUNS1_18892
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 99@
goto_if_false @GUNS1_18885
stop_char_facial_talk 99@
start_char_facial_talk 99@ {duration} 4000
254@ = 39

:GUNS1_18885
goto @GUNS1_18922

:GUNS1_18892
print 'RYD1_36' {time} 4000 {flag} 1
278@ = 0
277@ = 1

:GUNS1_18922
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
52@ = 0
TIMERA = 0

:GUNS1_18992
if 
  52@ == 0
goto_if_false @GUNS1_19606
if 
  277@ <> 0
goto_if_false @GUNS1_19211
if 
  278@ == 0
goto_if_false @GUNS1_19072
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_19065
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_19065
278@ = 1

:GUNS1_19072
if 
  278@ == 1
goto_if_false @GUNS1_19108
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_19108
if 
  278@ == 2
goto_if_false @GUNS1_19152
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_19152
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_19152
if 
  278@ == 3
goto_if_false @GUNS1_19211
if or
  has_mission_audio_finished MissionAudioSlot.Slot3
  TIMERA > 3000
goto_if_false @GUNS1_19211
clear_mission_audio MissionAudioSlot.Slot3
277@ = 0
278@ = 0

:GUNS1_19211
if 
  254@ <> 0
goto_if_false @GUNS1_19503
if 
  257@ == 0
goto_if_false @GUNS1_19275
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_19268
clear_mission_audio 256@

:GUNS1_19268
257@ = 1

:GUNS1_19275
if 
  257@ == 1
goto_if_false @GUNS1_19312
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_19312
if 
  257@ == 2
goto_if_false @GUNS1_19372
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_19372
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_19372
if 
  257@ == 3
goto_if_false @GUNS1_19503
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_19503
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  not is_char_dead 99@
goto_if_false @GUNS1_19436
stop_char_facial_talk 99@

:GUNS1_19436
if 
  255@ == 1
goto_if_false @GUNS1_19475
255@ = 2
256@ = 1
goto @GUNS1_19489

:GUNS1_19475
255@ = 1
256@ = 2

:GUNS1_19489
254@ = 0
257@ = 0

:GUNS1_19503
if 
  is_char_dead 99@
goto_if_false @GUNS1_19533
52@ = 1
goto @GUNS1_19569

:GUNS1_19533
38@ = get_script_task_status 99@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_19569
52@ = 1

:GUNS1_19569
if 
  TIMERA > 15000
goto_if_false @GUNS1_19595
52@ = 1

:GUNS1_19595
wait 0
goto @GUNS1_18992

:GUNS1_19606
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
remove_animation "GANGS"
60@ = 0
if 
  not is_char_dead 99@
goto_if_false @GUNS1_19923
stop_char_facial_talk 99@
if and
  locate_char_any_means_3d $scplayer {x} 2811.8821 {y} -1167.5699 {z} 1029.22 {xRadius} 9.1 {yRadius} 7.2 {zRadius} 5.0 {drawSphere} False
  162@ > 1029.0
goto_if_false @GUNS1_19785
127@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 5000
task_goto_char -1 {target} $scplayer {time} -1 {radius} 5.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
goto @GUNS1_19923

:GUNS1_19785
set_char_coordinates 99@ {x} 2804.325 {y} -1162.254 {z} 1028.1801
set_char_heading 99@ {heading} 180.0
127@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 10000
task_go_to_coord_while_shooting -1 {x} 2803.9771 {y} -1168.157 {z} 1025.375 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 0.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2806.9961 {y} -1169.809 {z} 1024.6121 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 0.0 {target} $scplayer
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_19923
clear_char_tasks $scplayer
clear_look_at $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_19959
clear_char_tasks 98@
clear_look_at 98@

:GUNS1_19959
clear_area 2806.9961 {y} -1169.209 {z} 1024.6121 {radius} 50.0 {clearParticles} True
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_20122
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_20087
153@ += 360.0

:GUNS1_20087
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866

:GUNS1_20122
if 
  not is_char_dead 99@
goto_if_false @GUNS1_20168
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1

:GUNS1_20168
remove_animation "INT_HOUSE"
if 
  35@ > 3
goto_if_false @GUNS1_20303
if 
  not is_char_dead 99@
goto_if_false @GUNS1_20245
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_20245
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
print 'RYD1_44' {time} 4000 {flag} 1
43@ = 0
goto @GUNS1_21768

:GUNS1_20303
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_20373
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_20834
if 
  254@ <> 0
goto_if_false @GUNS1_20673
if 
  257@ == 0
goto_if_false @GUNS1_20459
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_20452
clear_mission_audio 256@

:GUNS1_20452
257@ = 1

:GUNS1_20459
if 
  257@ == 1
goto_if_false @GUNS1_20496
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_20496
if 
  257@ == 2
goto_if_false @GUNS1_20556
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_20556
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_20556
if 
  257@ == 3
goto_if_false @GUNS1_20673
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_20673
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_20638
255@ = 2
256@ = 1
goto @GUNS1_20652

:GUNS1_20638
255@ = 1
256@ = 2

:GUNS1_20652
254@ = 0
257@ = 0
258@ = 1

:GUNS1_20673
if 
  257@ == 0
goto_if_false @GUNS1_20827
if 
  258@ == 0
goto_if_false @GUNS1_20827
254@ = 38
set_char_coordinates $scplayer {x} 2807.5249 {y} -1167.076 {z} 1024.578
set_char_heading $scplayer {heading} 169.2411
task_go_straight_to_coord $scplayer {x} 2807.626 {y} -1178.272 {z} 1024.578 {speed} MoveState.Run {time} 6000
clear_sequence_task 127@
set_fixed_camera_position 2809.6709 {y} -1173.223 {z} 1025.994 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.8159 {y} -1172.714 {z} 1025.891 {switchStyle} SwitchType.JumpCut

:GUNS1_20827
goto @GUNS1_20373

:GUNS1_20834
52@ = 0
TIMERA = 0

:GUNS1_20848
if 
  52@ == 0
goto_if_false @GUNS1_20958
38@ = get_script_task_status $scplayer {taskId} 1491
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
  locate_char_any_means_3d $scplayer {x} 2807.626 {y} -1174.272 {z} 1024.578 {xRadius} 1.3 {yRadius} 1.3 {zRadius} 3.0 {drawSphere} False
goto_if_false @GUNS1_20947
52@ = 1

:GUNS1_20947
wait 0
goto @GUNS1_20848

:GUNS1_20958
do_fade 1500 {direction} Fade.Out

:GUNS1_20965
if 
  get_fading_status 
goto_if_false @GUNS1_20989
wait 0
goto @GUNS1_20965

:GUNS1_20989
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2808.7839 {y} -1178.054 {z} 24.3559
set_char_heading $scplayer {heading} 231.7034
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2807.7759 {y} -1174.782 {radius} 20.0
set_fixed_camera_position 2807.4729 {y} -1176.3149 {z} 25.8373 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.3181 {y} -1176.847 {z} 25.8125 {switchStyle} SwitchType.JumpCut
request_collision 2808.7839 {y} -1178.054
load_scene 2808.7839 {y} -1178.054 {z} 24.0
if 
  not is_car_dead 102@
goto_if_false @GUNS1_21149
delete_car 102@

:GUNS1_21149
mark_car_as_no_longer_needed 102@
if 
  not is_char_dead 98@
goto_if_false @GUNS1_21175
delete_char 98@

:GUNS1_21175
mark_char_as_no_longer_needed 98@
127@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.9741 {y} -1181.6949 {z} 24.2639 {speed} MoveState.Run {time} 10000
task_scratch_head -1
close_sequence_task 127@
perform_sequence_task $scplayer {sequence} 127@
clear_sequence_task 127@
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_21276
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GUNS1_21276
do_fade 1000 {direction} Fade.In

:GUNS1_21283
if 
  get_fading_status 
goto_if_false @GUNS1_21307
wait 0
goto @GUNS1_21283

:GUNS1_21307
254@ = 78
255@ = 1
256@ = 2
257@ = 0
263@ = 0
52@ = 0
TIMERA = 0

:GUNS1_21356
if 
  52@ == 0
goto_if_false @GUNS1_21768
if 
  254@ <> 0
goto_if_false @GUNS1_21713
if 
  257@ == 0
goto_if_false @GUNS1_21438
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_21431
clear_mission_audio 256@

:GUNS1_21431
257@ = 1

:GUNS1_21438
if 
  257@ == 1
goto_if_false @GUNS1_21475
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_21475
if 
  257@ == 2
goto_if_false @GUNS1_21535
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_21535
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_21535
if 
  257@ == 3
goto_if_false @GUNS1_21713
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_21652
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_21617
255@ = 2
256@ = 1
goto @GUNS1_21631

:GUNS1_21617
255@ = 1
256@ = 2

:GUNS1_21631
254@ = 0
257@ = 0
goto @GUNS1_21713

:GUNS1_21652
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_21713
if 
  76 > 254@
goto_if_false @GUNS1_21713
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_21713
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_21757
52@ = 1

:GUNS1_21757
wait 0
goto @GUNS1_21356

:GUNS1_21768
goto @GUNS1_22938

:GUNS1_21775
if 
  not is_char_dead 99@
goto_if_false @GUNS1_22938
clear_char_tasks 99@
set_char_coordinates 99@ {x} 2806.9961 {y} -1169.809 {z} 1024.6121
set_char_heading 99@ {heading} 193.7598
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
if 
  35@ <= 3
goto_if_false @GUNS1_22938
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_22938
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
clear_help 
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False
set_fixed_camera_position 2807.8579 {y} -1188.103 {z} 25.4725 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.792 {y} -1187.748 {z} 25.4449 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2832.2571 {y} -1182.708 {z} 23.7924
extend_route 2840.811 {y} -1211.145 {z} 22.6279
127@ = open_sequence_task 
if 
  51@ > 5
goto_if_false @GUNS1_22080
task_go_straight_to_coord -1 {x} 2816.7271 {y} -1185.688 {z} 24.2433 {speed} MoveState.Run {time} 10000

:GUNS1_22080
task_enter_car_as_driver -1 {vehicle} 102@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 102@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
close_sequence_task 127@
perform_sequence_task 98@ {sequence} 127@
clear_sequence_task 127@
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_22182
if 
  52@ == 0
goto_if_false @GUNS1_22938
if 
  254@ <> 0
goto_if_false @GUNS1_22539
if 
  257@ == 0
goto_if_false @GUNS1_22264
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_22257
clear_mission_audio 256@

:GUNS1_22257
257@ = 1

:GUNS1_22264
if 
  257@ == 1
goto_if_false @GUNS1_22301
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_22301
if 
  257@ == 2
goto_if_false @GUNS1_22361
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_22361
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_22361
if 
  257@ == 3
goto_if_false @GUNS1_22539
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_22478
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_22443
255@ = 2
256@ = 1
goto @GUNS1_22457

:GUNS1_22443
255@ = 1
256@ = 2

:GUNS1_22457
254@ = 0
257@ = 0
goto @GUNS1_22539

:GUNS1_22478
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_22539
if 
  76 > 254@
goto_if_false @GUNS1_22539
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_22539
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_22783 {caseNum1} 0 {caseLabel1} @GUNS1_22602 {caseNum2} 1 {caseLabel2} @GUNS1_22670 {caseNum3} -1 {caseLabel3} @GUNS1_22853 {caseNum4} -1 {caseLabel4} @GUNS1_22853 {caseNum5} -1 {caseLabel5} @GUNS1_22853 {caseNum6} -1 {caseLabel6} @GUNS1_22853 {caseNum7} -1 {caseLabel7} @GUNS1_22853

:GUNS1_22602
if 
  257@ == 0
goto_if_false @GUNS1_22663
if 
  not is_char_dead 98@
goto_if_false @GUNS1_22644
start_char_facial_talk 98@ {duration} 5000

:GUNS1_22644
254@ = 80
259@ = 1
262@ = get_game_timer 

:GUNS1_22663
goto @GUNS1_22853

:GUNS1_22670
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_22776
if 
  257@ == 0
goto_if_false @GUNS1_22776
if 
  not is_char_dead 98@
goto_if_false @GUNS1_22749
stop_char_facial_talk 98@

:GUNS1_22749
start_char_facial_talk $scplayer {duration} 5000
254@ = 77
259@ = 2
262@ = get_game_timer 

:GUNS1_22776
goto @GUNS1_22853

:GUNS1_22783
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_22846
if 
  257@ == 0
goto_if_false @GUNS1_22846
stop_char_facial_talk $scplayer

:GUNS1_22846
goto @GUNS1_22853

:GUNS1_22853
if 
  not is_char_dead 98@
goto_if_false @GUNS1_22887
38@ = get_script_task_status 98@ {taskId} 1560
goto @GUNS1_22894

:GUNS1_22887
52@ = 1

:GUNS1_22894
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_22927
52@ = 1

:GUNS1_22927
wait 0
goto @GUNS1_22182

:GUNS1_22938
clear_onscreen_timer $tripskip_c3flag
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
94@ = 0
96@ = 1
if 
  35@ > 3
goto_if_false @GUNS1_23010
clear_onscreen_timer $tripskip_c3flag
96@ = 1
51@ = 7
goto @GUNS1_23167

:GUNS1_23010
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
clear_char_tasks $scplayer
alter_wanted_level $player1 {wantedLevel} 2
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_23144
do_fade 1000 {direction} Fade.Out

:GUNS1_23073
if 
  get_fading_status 
goto_if_false @GUNS1_23097
wait 0
goto @GUNS1_23073

:GUNS1_23097
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_23120
if 
  get_fading_status 
goto_if_false @GUNS1_23144
wait 0
goto @GUNS1_23120

:GUNS1_23144
print 'RYD1_96' {time} 5000 {flag} 1
goto @GUNS1_40480

:GUNS1_23167
goto @GUNS1_23534

:GUNS1_23174
set_lvar_int_to_lvar_int 45@ = 46@
sub_int_var_from_int_lvar 45@ -= $ryd1_time_to_daylight
set_lvar_int_to_var_int 46@ = $ryd1_time_to_daylight
if and
  $ryd1_time_to_daylight > 30
  60 > $ryd1_time_to_daylight
goto_if_false @GUNS1_23363
if 
  0 > 45@
goto_if_false @GUNS1_23302
if 
  44@ == 0
goto_if_false @GUNS1_23295
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23295
print 'GUNS134' {time} 4000 {flag} 1
44@ = 1

:GUNS1_23295
goto @GUNS1_23363

:GUNS1_23302
if 
  44@ == 1
goto_if_false @GUNS1_23363
if and
  not is_message_being_displayed 
  44@ <> 2
goto_if_false @GUNS1_23363
print 'GUNS134' {time} 3000 {flag} 1
44@ = 2

:GUNS1_23363
if 
  $ryd1_time_to_daylight > 59
goto_if_false @GUNS1_23516
if 
  0 > 45@
goto_if_false @GUNS1_23462
if 
  44@ == 1
goto_if_false @GUNS1_23455
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23455
clear_prints 
print 'GUNS1_7' {time} 4000 {flag} 1
44@ = 3

:GUNS1_23455
goto @GUNS1_23516

:GUNS1_23462
if 
  44@ == 2
goto_if_false @GUNS1_23516
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23516
print 'GUNS1_7' {time} 4000 {flag} 1
44@ = 3

:GUNS1_23516
if 
  51 > $ryd1_time_to_daylight
goto_if_false @GUNS1_23534

:GUNS1_23534
if 
  51@ == 6
goto_if_false @GUNS1_25513
49@ = 0

:GUNS1_23559
if 
  7 > 49@
goto_if_false @GUNS1_23790
if 
  60@ == 0
goto_if_false @GUNS1_23734
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_23727
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_23727
add_blip_for_object 117@(49@,7i) {var_handle} 110@(49@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(49@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_23716
set_blip_entry_exit 110@(49@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_23716
81@(49@,7i) = 1

:GUNS1_23727
goto @GUNS1_23776

:GUNS1_23734
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_23776
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_23776
49@ += 1
goto @GUNS1_23559

:GUNS1_23790
if 
  254@ <> 0
goto_if_false @GUNS1_24157
if 
  257@ == 0
goto_if_false @GUNS1_23854
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_23847
clear_mission_audio 256@

:GUNS1_23847
257@ = 1

:GUNS1_23854
if 
  257@ == 1
goto_if_false @GUNS1_23891
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_23891
if 
  257@ == 2
goto_if_false @GUNS1_23951
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_23951
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_23951
if 
  257@ == 3
goto_if_false @GUNS1_24157
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_24157
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  47@ > 0
goto_if_false @GUNS1_24069
if 
  97@ == 0
goto_if_false @GUNS1_24053
print_now 'GUNS147' {time} 5000 {flag} 1
goto @GUNS1_24069

:GUNS1_24053
print_now 'RYD1_2' {time} 5000 {flag} 1

:GUNS1_24069
if 
  255@ == 1
goto_if_false @GUNS1_24108
255@ = 2
256@ = 1
goto @GUNS1_24122

:GUNS1_24108
255@ = 1
256@ = 2

:GUNS1_24122
254@ = 0
257@ = 0
if 
  not is_char_dead 98@
goto_if_false @GUNS1_24157
stop_char_facial_talk 98@

:GUNS1_24157
if 
  97@ == 1
goto_if_false @GUNS1_25447
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25440
if 
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_25440
freeze_car_position 102@ {state} False
close_all_car_doors 102@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2810.199 {y} -1187.979 {z} 25.1092 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2811.0691 {y} -1187.504 {z} 25.2425 {switchStyle} SwitchType.JumpCut
clear_prints 
clear_help 
clear_area 154@ {y} 155@ {z} 156@ {radius} 25.0 {clearParticles} True
delete_object 117@(36@,7i)
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
94@ = 0
remove_blip 104@
55@ = 0
remove_char_elegantly 99@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
delete_object 117@
delete_object 118@
delete_object 119@
delete_object 120@
delete_object 121@
delete_object 122@
delete_object 123@
mark_char_as_no_longer_needed 99@
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed #DB_AMMO
mark_model_as_no_longer_needed 349
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
remove_animation "INT_HOUSE"
if 
  not is_char_dead 98@
goto_if_false @GUNS1_24564
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 4000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_24564
switch_entry_exit 'BURHOUS' {state} False
254@ = 38
257@ = 0
255@ = 1
256@ = 2
TIMERB = 0
52@ = 0

:GUNS1_24619
if 
  52@ == 0
goto_if_false @GUNS1_25181
if 
  254@ <> 0
goto_if_false @GUNS1_24976
if 
  257@ == 0
goto_if_false @GUNS1_24701
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_24694
clear_mission_audio 256@

:GUNS1_24694
257@ = 1

:GUNS1_24701
if 
  257@ == 1
goto_if_false @GUNS1_24738
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_24738
if 
  257@ == 2
goto_if_false @GUNS1_24798
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_24798
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_24798
if 
  257@ == 3
goto_if_false @GUNS1_24976
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_24915
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_24880
255@ = 2
256@ = 1
goto @GUNS1_24894

:GUNS1_24880
255@ = 1
256@ = 2

:GUNS1_24894
254@ = 0
257@ = 0
goto @GUNS1_24976

:GUNS1_24915
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_24976
if 
  76 > 254@
goto_if_false @GUNS1_24976
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_24976
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_25030
if 
  is_char_sitting_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_25023
52@ = 1

:GUNS1_25023
goto @GUNS1_25144

:GUNS1_25030
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_25137
do_fade 1000 {direction} Fade.Out

:GUNS1_25066
if 
  get_fading_status 
goto_if_false @GUNS1_25090
wait 0
goto @GUNS1_25066

:GUNS1_25090
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_25113
if 
  get_fading_status 
goto_if_false @GUNS1_25137
wait 0
goto @GUNS1_25113

:GUNS1_25137
goto @GUNS1_40480

:GUNS1_25144
if 
  TIMERB > 15000
goto_if_false @GUNS1_25170
52@ = 1

:GUNS1_25170
wait 0
goto @GUNS1_24619

:GUNS1_25181
if 
  not is_char_dead 98@
goto_if_false @GUNS1_25242
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25242
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_25242
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_25242
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 1
51@ = 8
43@ = 0
44@ = 0
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_prints 
print 'GUNS124' {time} 10000 {flag} 1
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_25440
goto @GUNS1_25513

:GUNS1_25447
if 
  97@ == 0
goto_if_false @GUNS1_25513
if 
  35@ > 3
goto_if_false @GUNS1_25513
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25513
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
97@ = 1

:GUNS1_25513
if and
  51@ == 6
  60@ == 0
goto_if_false @GUNS1_26285
76@ = 0
34@ = 0
if 
  is_int_lvar_greater_than_int_lvar 48@ > 47@
goto_if_false @GUNS1_25710
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_25680
do_fade 1000 {direction} Fade.Out

:GUNS1_25609
if 
  get_fading_status 
goto_if_false @GUNS1_25633
wait 0
goto @GUNS1_25609

:GUNS1_25633
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_25656
if 
  get_fading_status 
goto_if_false @GUNS1_25680
wait 0
goto @GUNS1_25656

:GUNS1_25680
print 'RYD1_32' {time} 5000 {flag} 1
goto @GUNS1_40480
goto @GUNS1_25735

:GUNS1_25710
if 
  47@ == 0
goto_if_false @GUNS1_25735
51@ = 7

:GUNS1_25735
if 
  7 > 34@
goto_if_false @GUNS1_26258
if 
  61@(34@,7i) == 0
goto_if_false @GUNS1_25918
if 
  does_object_exist 117@(34@,7i)
goto_if_false @GUNS1_25891
if 
  is_object_in_water 117@(34@,7i)
goto_if_false @GUNS1_25884
mark_object_as_no_longer_needed 117@(34@,7i)
if 
  81@(34@,7i) == 1
goto_if_false @GUNS1_25866
remove_blip 110@(34@,7i)
81@(34@,7i) = 0

:GUNS1_25866
61@(34@,7i) = 1
47@ -= 1

:GUNS1_25884
goto @GUNS1_25918

:GUNS1_25891
mark_object_as_no_longer_needed 117@(34@,7i)
61@(34@,7i) = 1
47@ -= 1

:GUNS1_25918
if and
  61@(34@,7i) == 0
  60@ == 0
goto_if_false @GUNS1_26244
if 
  locate_char_on_foot_object_3d $scplayer {object} 117@(34@,7i) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @GUNS1_26244
76@ = 1
if 
  75@ == 0
goto_if_false @GUNS1_26055
if 
  90@ == 0
goto_if_false @GUNS1_26048
print_help_forever 'GUNS118'
90@ = 1

:GUNS1_26048
75@ = 1

:GUNS1_26055
if 
  does_object_exist 117@(34@,7i)
goto_if_false @GUNS1_26244
if 
  is_char_holding_object $scplayer {handle} 117@(34@,7i)
goto_if_false @GUNS1_26244
clear_help 
75@ = 0
set_lvar_int_to_lvar_int 36@ = 34@
if and
  not is_char_dead 98@
  55@ == 0
goto_if_false @GUNS1_26226
if 
  not is_car_dead 102@
goto_if_false @GUNS1_26226
56@ = 0
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
clear_prints 
if 
  89@ == 0
goto_if_false @GUNS1_26219
print 'GUNS146' {time} 10000 {flag} 1
89@ = 1

:GUNS1_26219
55@ = 1

:GUNS1_26226
61@(34@,7i) = 1
60@ = 1

:GUNS1_26244
34@ += 1
goto @GUNS1_25735

:GUNS1_26258
if 
  76@ == 0
goto_if_false @GUNS1_26285
clear_help 
75@ = 0

:GUNS1_26285
if 
  60@ == 1
goto_if_false @GUNS1_26474
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_26474
if 
  is_char_holding_object $scplayer {handle} 117@(36@,7i)
goto_if_false @GUNS1_26353
goto @GUNS1_26474

:GUNS1_26353
61@(36@,7i) = 0
60@ = 0
remove_blip 104@
55@ = 0
if and
  56@ == 0
  35@ <> 5
goto_if_false @GUNS1_26474
clear_prints 
if 
  97@ == 0
goto_if_false @GUNS1_26451
print 'RYD1_40' {time} 5000 {flag} 1
goto @GUNS1_26467

:GUNS1_26451
print 'RYD1_2' {time} 5000 {flag} 1

:GUNS1_26467
56@ = 1

:GUNS1_26474
if and
  60@ == 1
  51@ == 6
goto_if_false @GUNS1_27959
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_27959
if 
  locate_char_on_foot_3d $scplayer {x} 154@ {y} 155@ {z} 24.0 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_27950
if 
  75@ == 0
goto_if_false @GUNS1_26654
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@
print_help_forever 'RYD1_30'
75@ = 1

:GUNS1_26654
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GUNS1_27943
clear_help 
clear_prints 
75@ = 0
35@ += 1
50@ += 50
72@ = 0
48@ -= 1
47@ -= 1
if 
  47@ == 0
goto_if_false @GUNS1_26798
if 
  257@ == 0
goto_if_false @GUNS1_26784
if 
  not is_char_dead 98@
goto_if_false @GUNS1_26777
start_char_facial_talk 98@ {duration} 4000

:GUNS1_26777
254@ = 33

:GUNS1_26784
51@ = 7
goto @GUNS1_27339

:GUNS1_26798
switch_start 35@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_27283 {caseNum1} 2 {caseLabel1} @GUNS1_26861 {caseNum2} 3 {caseLabel2} @GUNS1_26917 {caseNum3} 4 {caseLabel3} @GUNS1_26973 {caseNum4} 5 {caseLabel4} @GUNS1_27059 {caseNum5} 6 {caseLabel5} @GUNS1_27115 {caseNum6} 7 {caseLabel6} @GUNS1_27171 {caseNum7} 8 {caseLabel7} @GUNS1_27227

:GUNS1_26861
if 
  257@ == 0
goto_if_false @GUNS1_26910
if 
  not is_char_dead 98@
goto_if_false @GUNS1_26903
start_char_facial_talk 98@ {duration} 4000

:GUNS1_26903
254@ = 22

:GUNS1_26910
goto @GUNS1_27339

:GUNS1_26917
if 
  257@ == 0
goto_if_false @GUNS1_26966
if 
  not is_char_dead 98@
goto_if_false @GUNS1_26959
start_char_facial_talk 98@ {duration} 4000

:GUNS1_26959
254@ = 23

:GUNS1_26966
goto @GUNS1_27339

:GUNS1_26973
if 
  257@ == 0
goto_if_false @GUNS1_27052
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27015
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27015
97@ = 1
254@ = 31
if 
  not is_car_dead 102@
goto_if_false @GUNS1_27052
lock_car_doors 102@ {lockStatus} CarLock.Unlocked

:GUNS1_27052
goto @GUNS1_27339

:GUNS1_27059
if 
  257@ == 0
goto_if_false @GUNS1_27108
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27101
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27101
254@ = 25

:GUNS1_27108
goto @GUNS1_27339

:GUNS1_27115
if 
  257@ == 0
goto_if_false @GUNS1_27164
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27157
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27157
254@ = 27

:GUNS1_27164
goto @GUNS1_27339

:GUNS1_27171
if 
  257@ == 0
goto_if_false @GUNS1_27220
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27213
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27213
254@ = 24

:GUNS1_27220
goto @GUNS1_27339

:GUNS1_27227
if 
  257@ == 0
goto_if_false @GUNS1_27276
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27269
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27269
254@ = 32

:GUNS1_27276
goto @GUNS1_27339

:GUNS1_27283
if 
  257@ == 0
goto_if_false @GUNS1_27332
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27325
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27325
254@ = 26

:GUNS1_27332
goto @GUNS1_27339

:GUNS1_27339
clear_char_tasks 98@
task_shake_fist 98@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@
60@ = 0
if 
  97@ <> 1
goto_if_false @GUNS1_27564
remove_blip 104@
55@ = 0

:GUNS1_27564
if and
  35@ > 1
  72@ == 0
goto_if_false @GUNS1_27740
52@ = 0
TIMERB = 0
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_27740

:GUNS1_27623
if 
  52@ == 0
goto_if_false @GUNS1_27695
if or
  not is_char_holding_object $scplayer {handle} 117@(36@,7i)
  is_char_dead $scplayer
  TIMERB > 5000
goto_if_false @GUNS1_27684
52@ = 1

:GUNS1_27684
wait 0
goto @GUNS1_27623

:GUNS1_27695
mark_object_as_no_longer_needed 117@(36@,7i)
delete_object 117@(36@,7i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
72@ = 1

:GUNS1_27740
if and
  56@ == 0
  47@ > 0
goto_if_false @GUNS1_27943
49@ = 0

:GUNS1_27772
if 
  7 > 49@
goto_if_false @GUNS1_27936
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_27922
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_27922
add_blip_for_object 117@(49@,7i) {var_handle} 110@(49@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(49@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_27911
set_blip_entry_exit 110@(49@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_27911
81@(49@,7i) = 1

:GUNS1_27922
49@ += 1
goto @GUNS1_27772

:GUNS1_27936
56@ = 1

:GUNS1_27943
goto @GUNS1_27959

:GUNS1_27950
clear_help 
75@ = 0

:GUNS1_27959
if 
  51@ == 7
goto_if_false @GUNS1_32066
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_31466
44@ = 0
43@ = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_player_control $player1 {state} False
clear_prints 
do_fade 1000 {direction} Fade.Out

:GUNS1_28044
if 
  get_fading_status 
goto_if_false @GUNS1_28068
wait 0
goto @GUNS1_28044

:GUNS1_28068
restore_camera_jumpcut 
set_radar_zoom 0
clear_prints 
switch_widescreen True
clear_prints 
clear_help 
clear_area 154@ {y} 155@ {z} 156@ {radius} 25.0 {clearParticles} True
delete_object 117@(36@,7i)
if 
  96@ == 0
goto_if_false @GUNS1_28145
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
94@ = 0

:GUNS1_28145
remove_blip 104@
55@ = 0
remove_char_elegantly 99@
delete_object 117@
delete_object 118@
delete_object 119@
delete_object 120@
delete_object 121@
delete_object 122@
delete_object 123@
mark_char_as_no_longer_needed 99@
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed #DB_AMMO
mark_model_as_no_longer_needed 349
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
remove_animation "INT_HOUSE"
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_28548
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_28368
153@ += 360.0

:GUNS1_28368
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866
154@, 155@, 156@ = get_offset_from_char_in_world_coords 98@ {xOffset} 1.0 {yOffset} 1.0 {zOffset} 0.0
set_char_coordinates $scplayer {x} 154@ {y} 155@ {z} 156@
set_char_coordinates $scplayer {x} 2806.928 {y} -1178.8781 {z} 24.4038
set_char_heading $scplayer {heading} 260.0
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} 3.5 {yOffset} 0.0 {zOffset} 0.0
157@, 158@, 159@ = get_offset_from_car_in_world_coords 102@ {xOffset} -3.5 {yOffset} 0.0 {zOffset} 0.0
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False

:GUNS1_28548
if 
  96@ == 1
goto_if_false @GUNS1_30581
request_model 346
request_model 280
request_model 596

:GUNS1_28581
if or
  not has_model_loaded 280
  not has_model_loaded 596
  not has_model_loaded 346
goto_if_false @GUNS1_28618
wait 0
goto @GUNS1_28581

:GUNS1_28618
custom_plate_for_next_car 596 {text} "TH3_P1G5"
103@ = create_car 596 {x} 2841.1599 {y} -1237.64 {z} 21.56
switch_car_siren 103@ {state} True
set_car_heading 103@ {heading} 10.0
100@ = create_char_inside_car 103@ {pedType} PedType.Cop {modelId} 280
give_weapon_to_char 100@ {weaponType} WeaponType.Pistol {ammo} 3000
101@ = create_char_as_passenger 103@ {pedType} PedType.Cop {modelId} 280 {seat} SeatId.BikeRear
give_weapon_to_char 101@ {weaponType} WeaponType.Pistol {ammo} 3000
if and
  not is_car_dead 102@
  not is_car_dead 103@
  not is_char_dead 100@
goto_if_false @GUNS1_28879
130@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 103@ {x} 2833.26 {y} -1186.6899 {z} 23.8 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 103@
task_aim_gun_at_char -1 {target} $scplayer {time} 2000
task_shoot_at_coord -1 {x} 154@ {y} 155@ {z} 156@ {time} 10000
close_sequence_task 130@
perform_sequence_task 100@ {sequence} 130@
clear_sequence_task 130@
131@ = open_sequence_task 
task_leave_car -1 {vehicle} 103@
task_aim_gun_at_char -1 {target} $scplayer {time} 2000
task_shoot_at_coord -1 {x} 157@ {y} 158@ {z} 159@ {time} 10000
close_sequence_task 131@

:GUNS1_28879
if 
  not is_car_dead 102@
goto_if_false @GUNS1_28900
close_all_car_doors 102@

:GUNS1_28900
set_fixed_camera_position 2835.0149 {y} -1176.0179 {z} 25.3376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2834.2639 {y} -1176.677 {z} 25.3009 {switchStyle} SwitchType.JumpCut
request_collision 2835.0149 {y} -1176.0179
load_scene 2835.0149 {y} -1176.0179 {z} 25.3376
do_fade 1000 {direction} Fade.In

:GUNS1_28987
if 
  get_fading_status 
goto_if_false @GUNS1_29011
wait 0
goto @GUNS1_28987

:GUNS1_29011
TIMERA = 0
52@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_29095
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_30442
if 
  254@ <> 0
goto_if_false @GUNS1_29456
if 
  257@ == 0
goto_if_false @GUNS1_29181
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_29174
clear_mission_audio 256@

:GUNS1_29174
257@ = 1

:GUNS1_29181
if 
  257@ == 1
goto_if_false @GUNS1_29218
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_29218
if 
  257@ == 2
goto_if_false @GUNS1_29278
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_29278
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_29278
if 
  257@ == 3
goto_if_false @GUNS1_29456
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_29395
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_29360
255@ = 2
256@ = 1
goto @GUNS1_29374

:GUNS1_29360
255@ = 1
256@ = 2

:GUNS1_29374
254@ = 0
257@ = 0
goto @GUNS1_29456

:GUNS1_29395
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_29456
if 
  76 > 254@
goto_if_false @GUNS1_29456
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_29456
switch_start 259@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_30222 {caseNum1} 0 {caseLabel1} @GUNS1_29519 {caseNum2} 1 {caseLabel2} @GUNS1_29614 {caseNum3} 2 {caseLabel3} @GUNS1_29698 {caseNum4} 3 {caseLabel4} @GUNS1_30138 {caseNum5} -1 {caseLabel5} @GUNS1_30435 {caseNum6} -1 {caseLabel6} @GUNS1_30435 {caseNum7} -1 {caseLabel7} @GUNS1_30435

:GUNS1_29519
if 
  257@ == 0
goto_if_false @GUNS1_29607
set_fixed_camera_position 2835.0149 {y} -1176.0179 {z} 25.3376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2834.2639 {y} -1176.677 {z} 25.3009 {switchStyle} SwitchType.JumpCut
254@ = 43
259@ = 1
262@ = get_game_timer 

:GUNS1_29607
goto @GUNS1_30435

:GUNS1_29614
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_29691
if 
  257@ == 0
goto_if_false @GUNS1_29691
254@ = 44
259@ = 2
262@ = get_game_timer 

:GUNS1_29691
goto @GUNS1_30435

:GUNS1_29698
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30131
if 
  not is_char_dead 100@
goto_if_false @GUNS1_30131
38@ = get_script_task_status 100@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_30131
38@ = get_sequence_progress 100@
if or
  38@ == 1
  TIMERA > 10000
goto_if_false @GUNS1_30131
if 
  70@ == 0
goto_if_false @GUNS1_30131
if 
  not is_char_dead 101@
goto_if_false @GUNS1_30131
if 
  not is_car_dead 103@
goto_if_false @GUNS1_30131
if 
  257@ == 0
goto_if_false @GUNS1_30131
254@ = 45
259@ = 3
262@ = get_game_timer 
perform_sequence_task 101@ {sequence} 131@
clear_sequence_task 131@
set_fixed_camera_position 2807.873 {y} -1178.356 {z} 24.8046 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.7209 {y} -1178.87 {z} 24.9362 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30124
if 
  not is_char_dead 98@
goto_if_false @GUNS1_30124
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.042 {y} -1181.376 {z} 24.2701 {speed} MoveState.Run {time} 6000
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver -1 {vehicle} 102@ {time} 5000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 6000
set_next_desired_move_state MoveState.Run
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 3000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_30124
70@ = 1

:GUNS1_30131
goto @GUNS1_30435

:GUNS1_30138
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30215
if 
  257@ == 0
goto_if_false @GUNS1_30215
254@ = 46
259@ = 4
262@ = get_game_timer 

:GUNS1_30215
goto @GUNS1_30435

:GUNS1_30222
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30428
if 
  257@ == 0
goto_if_false @GUNS1_30428
if and
  not is_char_dead $scplayer
  not is_car_dead 102@
goto_if_false @GUNS1_30333
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_30333
clear_char_tasks $scplayer
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_30333
if 
  not is_char_dead 98@
goto_if_false @GUNS1_30421
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30421
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_30394
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_30394
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_30421
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_30421
258@ = 1

:GUNS1_30428
goto @GUNS1_30435

:GUNS1_30435
goto @GUNS1_29095

:GUNS1_30442
264@ = 0
print 'GUNS123' {time} 10000 {flag} 1
106@ = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
71@ = 1
69@ = 1
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @GUNS1_30526
alter_wanted_level $player1 {wantedLevel} 2

:GUNS1_30526
if 
  not is_char_dead 100@
goto_if_false @GUNS1_30550
task_kill_char_on_foot 100@ {target} $scplayer

:GUNS1_30550
if 
  not is_char_dead 101@
goto_if_false @GUNS1_30574
task_kill_char_on_foot 101@ {target} $scplayer

:GUNS1_30574
goto @GUNS1_31171

:GUNS1_30581
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30602
close_all_car_doors 102@

:GUNS1_30602
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
set_fixed_camera_position 2818.6699 {y} -1182.264 {z} 24.8706 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2817.7019 {y} -1182.449 {z} 25.0366 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
request_collision 2814.042 {y} -1181.376
load_scene 2814.042 {y} -1181.376 {z} 24.2701

:GUNS1_30705
if 
  get_fading_status 
goto_if_false @GUNS1_30729
wait 0
goto @GUNS1_30705

:GUNS1_30729
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_30874
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.042 {y} -1181.376 {z} 24.2701 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 102@ {time} 6000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 4000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_30874
264@ = 1
TIMERB = 0
52@ = 0

:GUNS1_30895
if 
  52@ == 0
goto_if_false @GUNS1_31126
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_30975
if and
  is_char_sitting_in_car 98@ {vehicle} 102@
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_30968
52@ = 1

:GUNS1_30968
goto @GUNS1_31089

:GUNS1_30975
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_31082
do_fade 1000 {direction} Fade.Out

:GUNS1_31011
if 
  get_fading_status 
goto_if_false @GUNS1_31035
wait 0
goto @GUNS1_31011

:GUNS1_31035
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_31058
if 
  get_fading_status 
goto_if_false @GUNS1_31082
wait 0
goto @GUNS1_31058

:GUNS1_31082
goto @GUNS1_40480

:GUNS1_31089
if 
  TIMERB > 10000
goto_if_false @GUNS1_31115
52@ = 1

:GUNS1_31115
wait 0
goto @GUNS1_30895

:GUNS1_31126
clear_prints 
print 'GUNS124' {time} 10000 {flag} 1
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_31171
if 
  not is_char_dead 98@
goto_if_false @GUNS1_31259
if 
  not is_car_dead 102@
goto_if_false @GUNS1_31259
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_31232
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_31232
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_31259
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_31259
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_char_dead 98@
goto_if_false @GUNS1_31333
if 
  not is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_31333
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 98@
set_group_follow_status $Players_Group {state} False
listen_to_player_group_commands 98@ {state} False

:GUNS1_31333
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 8
43@ = 0
goto @GUNS1_32066

:GUNS1_31466
if 
  254@ <> 0
goto_if_false @GUNS1_31737
if 
  257@ == 0
goto_if_false @GUNS1_31530
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_31523
clear_mission_audio 256@

:GUNS1_31523
257@ = 1

:GUNS1_31530
if 
  257@ == 1
goto_if_false @GUNS1_31567
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_31567
if 
  257@ == 2
goto_if_false @GUNS1_31627
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_31627
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_31627
if 
  257@ == 3
goto_if_false @GUNS1_31737
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_31737
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_31709
255@ = 2
256@ = 1
goto @GUNS1_31723

:GUNS1_31709
255@ = 1
256@ = 2

:GUNS1_31723
254@ = 0
257@ = 0

:GUNS1_31737
if and
  not is_char_dead 98@
  3 > 43@
goto_if_false @GUNS1_31987
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_31980
if 
  43@ == 0
goto_if_false @GUNS1_31838
if 
  257@ == 0
goto_if_false @GUNS1_31831
start_char_facial_talk $scplayer {duration} 3000
254@ = 38
43@ = 1

:GUNS1_31831
goto @GUNS1_31980

:GUNS1_31838
if 
  43@ == 1
goto_if_false @GUNS1_31924
if 
  257@ == 0
goto_if_false @GUNS1_31917
if 
  not is_char_dead 99@
goto_if_false @GUNS1_31903
start_char_facial_talk 99@ {duration} 4000
stop_char_facial_talk $scplayer

:GUNS1_31903
254@ = 36
43@ = 2

:GUNS1_31917
goto @GUNS1_31980

:GUNS1_31924
if 
  257@ == 0
goto_if_false @GUNS1_31980
if 
  not is_char_dead 98@
goto_if_false @GUNS1_31966
start_char_facial_talk 98@ {duration} 4000

:GUNS1_31966
254@ = 37
43@ = 3

:GUNS1_31980
goto @GUNS1_32005

:GUNS1_31987
clear_prints 
print 'RYD1_44' {time} 4000 {flag} 1

:GUNS1_32005
if 
  55@ == 0
goto_if_false @GUNS1_32066
remove_blip 104@
if 
  not is_car_dead 102@
goto_if_false @GUNS1_32066
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1

:GUNS1_32066
if 
  51@ == 8
goto_if_false @GUNS1_40471
if 
  254@ <> 0
goto_if_false @GUNS1_32373
if 
  257@ == 0
goto_if_false @GUNS1_32148
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_32141
clear_mission_audio 256@

:GUNS1_32141
257@ = 1

:GUNS1_32148
if 
  257@ == 1
goto_if_false @GUNS1_32185
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_32185
if 
  257@ == 2
goto_if_false @GUNS1_32263
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_32263
play_mission_audio 255@
if 
  254@ <> 76
goto_if_false @GUNS1_32256
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1

:GUNS1_32256
257@ = 3

:GUNS1_32263
if 
  257@ == 3
goto_if_false @GUNS1_32373
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_32373
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_32345
255@ = 2
256@ = 1
goto @GUNS1_32359

:GUNS1_32345
255@ = 1
256@ = 2

:GUNS1_32359
254@ = 0
257@ = 0

:GUNS1_32373
if 
  264@ == 0
goto_if_false @GUNS1_32913
if 
  266@ == 0
goto_if_false @GUNS1_32906
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_32906
switch_start 265@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_32804 {caseNum1} 0 {caseLabel1} @GUNS1_32485 {caseNum2} 1 {caseLabel2} @GUNS1_32552 {caseNum3} 2 {caseLabel3} @GUNS1_32636 {caseNum4} 3 {caseLabel4} @GUNS1_32720 {caseNum5} -1 {caseLabel5} @GUNS1_32906 {caseNum6} -1 {caseLabel6} @GUNS1_32906 {caseNum7} -1 {caseLabel7} @GUNS1_32906

:GUNS1_32485
if 
  257@ == 0
goto_if_false @GUNS1_32545
if 
  not is_char_dead 98@
goto_if_false @GUNS1_32533
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_32533
265@ = 1
262@ = get_game_timer 

:GUNS1_32545
goto @GUNS1_32906

:GUNS1_32552
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32629
if 
  257@ == 0
goto_if_false @GUNS1_32629
254@ = 47
265@ = 2
262@ = get_game_timer 

:GUNS1_32629
goto @GUNS1_32906

:GUNS1_32636
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32713
if 
  257@ == 0
goto_if_false @GUNS1_32713
254@ = 48
265@ = 3
262@ = get_game_timer 

:GUNS1_32713
goto @GUNS1_32906

:GUNS1_32720
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32797
if 
  257@ == 0
goto_if_false @GUNS1_32797
254@ = 49
265@ = 4
262@ = get_game_timer 

:GUNS1_32797
goto @GUNS1_32906

:GUNS1_32804
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32899
if 
  257@ == 0
goto_if_false @GUNS1_32899
if 
  not is_char_dead 98@
goto_if_false @GUNS1_32892
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_32892
266@ = 1

:GUNS1_32899
goto @GUNS1_32906

:GUNS1_32906
goto @GUNS1_34942

:GUNS1_32913
if 
  264@ == 1
goto_if_false @GUNS1_33383
if 
  268@ == 0
goto_if_false @GUNS1_33376
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_33376
switch_start 267@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33267 {caseNum1} 0 {caseLabel1} @GUNS1_33025 {caseNum2} 1 {caseLabel2} @GUNS1_33099 {caseNum3} 2 {caseLabel3} @GUNS1_33183 {caseNum4} -1 {caseLabel4} @GUNS1_33376 {caseNum5} -1 {caseLabel5} @GUNS1_33376 {caseNum6} -1 {caseLabel6} @GUNS1_33376 {caseNum7} -1 {caseLabel7} @GUNS1_33376

:GUNS1_33025
if 
  257@ == 0
goto_if_false @GUNS1_33092
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33073
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_33073
254@ = 50
267@ = 1
262@ = get_game_timer 

:GUNS1_33092
goto @GUNS1_33376

:GUNS1_33099
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33176
if 
  257@ == 0
goto_if_false @GUNS1_33176
254@ = 51
267@ = 2
262@ = get_game_timer 

:GUNS1_33176
goto @GUNS1_33376

:GUNS1_33183
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33260
if 
  257@ == 0
goto_if_false @GUNS1_33260
254@ = 52
267@ = 3
262@ = get_game_timer 

:GUNS1_33260
goto @GUNS1_33376

:GUNS1_33267
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33369
if 
  257@ == 0
goto_if_false @GUNS1_33369
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33355
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_33355
268@ = 1
264@ = 3

:GUNS1_33369
goto @GUNS1_33376

:GUNS1_33376
goto @GUNS1_34942

:GUNS1_33383
if 
  264@ == 2
goto_if_false @GUNS1_33749
if 
  272@ == 0
goto_if_false @GUNS1_33742
switch_start 271@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33640 {caseNum1} 0 {caseLabel1} @GUNS1_33482 {caseNum2} 1 {caseLabel2} @GUNS1_33556 {caseNum3} -1 {caseLabel3} @GUNS1_33742 {caseNum4} -1 {caseLabel4} @GUNS1_33742 {caseNum5} -1 {caseLabel5} @GUNS1_33742 {caseNum6} -1 {caseLabel6} @GUNS1_33742 {caseNum7} -1 {caseLabel7} @GUNS1_33742

:GUNS1_33482
if 
  257@ == 0
goto_if_false @GUNS1_33549
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33530
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_33530
254@ = 64
271@ = 1
262@ = get_game_timer 

:GUNS1_33549
goto @GUNS1_33742

:GUNS1_33556
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33633
if 
  257@ == 0
goto_if_false @GUNS1_33633
254@ = 65
271@ = 2
262@ = get_game_timer 

:GUNS1_33633
goto @GUNS1_33742

:GUNS1_33640
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33735
if 
  257@ == 0
goto_if_false @GUNS1_33735
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33728
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_33728
272@ = 1

:GUNS1_33735
goto @GUNS1_33742

:GUNS1_33742
goto @GUNS1_34942

:GUNS1_33749
if 
  264@ == 3
goto_if_false @GUNS1_34942
if 
  270@ == 0
goto_if_false @GUNS1_34942
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_34942
switch_start 269@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GUNS1_34840 {caseNum1} 0 {caseLabel1} @GUNS1_33926 {caseNum2} 1 {caseLabel2} @GUNS1_34000 {caseNum3} 2 {caseLabel3} @GUNS1_34084 {caseNum4} 3 {caseLabel4} @GUNS1_34168 {caseNum5} 4 {caseLabel5} @GUNS1_34252 {caseNum6} 5 {caseLabel6} @GUNS1_34336 {caseNum7} 6 {caseLabel7} @GUNS1_34420
switch_continued 7 {caseLabel1} @GUNS1_34504 {caseNum2} 8 {caseLabel2} @GUNS1_34588 {caseNum3} 9 {caseLabel3} @GUNS1_34672 {caseNum4} 10 {caseLabel4} @GUNS1_34756 {caseNum5} -1 {caseLabel5} @GUNS1_34942 {caseNum6} -1 {caseLabel6} @GUNS1_34942 {caseNum7} -1 {caseLabel7} @GUNS1_34942 {caseNum8} -1 {caseLabel8} @GUNS1_34942 {caseNum9} -1 {caseLabel9} @GUNS1_34942

:GUNS1_33926
if 
  257@ == 0
goto_if_false @GUNS1_33993
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33974
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_33974
254@ = 53
269@ = 1
262@ = get_game_timer 

:GUNS1_33993
goto @GUNS1_34942

:GUNS1_34000
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34077
if 
  257@ == 0
goto_if_false @GUNS1_34077
254@ = 54
269@ = 2
262@ = get_game_timer 

:GUNS1_34077
goto @GUNS1_34942

:GUNS1_34084
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34161
if 
  257@ == 0
goto_if_false @GUNS1_34161
254@ = 55
269@ = 3
262@ = get_game_timer 

:GUNS1_34161
goto @GUNS1_34942

:GUNS1_34168
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34245
if 
  257@ == 0
goto_if_false @GUNS1_34245
254@ = 56
269@ = 4
262@ = get_game_timer 

:GUNS1_34245
goto @GUNS1_34942

:GUNS1_34252
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34329
if 
  257@ == 0
goto_if_false @GUNS1_34329
254@ = 57
269@ = 5
262@ = get_game_timer 

:GUNS1_34329
goto @GUNS1_34942

:GUNS1_34336
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34413
if 
  257@ == 0
goto_if_false @GUNS1_34413
254@ = 58
269@ = 6
262@ = get_game_timer 

:GUNS1_34413
goto @GUNS1_34942

:GUNS1_34420
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34497
if 
  257@ == 0
goto_if_false @GUNS1_34497
254@ = 59
269@ = 7
262@ = get_game_timer 

:GUNS1_34497
goto @GUNS1_34942

:GUNS1_34504
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34581
if 
  257@ == 0
goto_if_false @GUNS1_34581
254@ = 60
269@ = 8
262@ = get_game_timer 

:GUNS1_34581
goto @GUNS1_34942

:GUNS1_34588
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34665
if 
  257@ == 0
goto_if_false @GUNS1_34665
254@ = 61
269@ = 9
262@ = get_game_timer 

:GUNS1_34665
goto @GUNS1_34942

:GUNS1_34672
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34749
if 
  257@ == 0
goto_if_false @GUNS1_34749
254@ = 62
269@ = 10
262@ = get_game_timer 

:GUNS1_34749
goto @GUNS1_34942

:GUNS1_34756
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34833
if 
  257@ == 0
goto_if_false @GUNS1_34833
254@ = 63
269@ = 11
262@ = get_game_timer 

:GUNS1_34833
goto @GUNS1_34942

:GUNS1_34840
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34935
if 
  257@ == 0
goto_if_false @GUNS1_34935
if 
  not is_char_dead 98@
goto_if_false @GUNS1_34928
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_34928
270@ = 1

:GUNS1_34935
goto @GUNS1_34942

:GUNS1_34942
if 
  not is_char_dead 98@
goto_if_false @GUNS1_35580
if 
  not is_car_dead 102@
goto_if_false @GUNS1_35580
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_35213
54@ = 0
if 
  55@ == 0
goto_if_false @GUNS1_35206
if 
  68@ == 1
goto_if_false @GUNS1_35048
remove_blip 107@
68@ = 0

:GUNS1_35048
if 
  69@ == 1
goto_if_false @GUNS1_35078
remove_blip 106@
69@ = 0

:GUNS1_35078
if 
  57@ == 1
goto_if_false @GUNS1_35108
remove_blip 108@
57@ = 0

:GUNS1_35108
if 
  is_message_being_displayed 
goto_if_false @GUNS1_35128
44@ = 1

:GUNS1_35128
clear_prints 
print 'GUNS128' {time} 2000 {flag} 1
set_player_group_to_follow_never $player1 {state} True
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1
254@ = 76
257@ = 0
clear_mission_audio 255@
clear_mission_audio 256@
264@ = 99

:GUNS1_35206
goto @GUNS1_35580

:GUNS1_35213
54@ = 1
if 
  55@ == 1
goto_if_false @GUNS1_35271
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
264@ = 3
55@ = 0
goto @GUNS1_35580

:GUNS1_35271
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_35536
59@ = 0
if 
  57@ == 0
goto_if_false @GUNS1_35442
if 
  68@ == 1
goto_if_false @GUNS1_35345
remove_blip 107@
68@ = 0

:GUNS1_35345
if 
  69@ == 1
goto_if_false @GUNS1_35375
remove_blip 106@
69@ = 0

:GUNS1_35375
if 
  is_message_being_displayed 
goto_if_false @GUNS1_35395
44@ = 1

:GUNS1_35395
clear_prints 
print 'GUNS143' {time} 2000 {flag} 1
108@ = add_blip_for_char 98@
set_blip_as_friendly 108@ {state} True
264@ = 99
57@ = 1

:GUNS1_35442
if 
  58@ == 0
goto_if_false @GUNS1_35486
task_enter_car_as_passenger 98@ {vehicle} 102@ {time} -2 {seat} SeatId.BikeRear
58@ = 1
goto @GUNS1_35529

:GUNS1_35486
38@ = get_script_task_status 98@ {taskId} 1482
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_35529
58@ = 0

:GUNS1_35529
goto @GUNS1_35580

:GUNS1_35536
if 
  57@ == 1
goto_if_false @GUNS1_35573
remove_blip 108@
57@ = 0
264@ = 3

:GUNS1_35573
59@ = 1

:GUNS1_35580
if and
  59@ == 1
  54@ == 1
goto_if_false @GUNS1_40471
if 
  68@ == 1
goto_if_false @GUNS1_39657
if 
  locate_char_in_car_3d $scplayer {x} 2742.0 {y} -2008.0 {z} 13.0 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GUNS1_39587
clear_prints 
print 'RYD1_34' {time} 3000 {flag} 1
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2741.241 {y} -2011.274 {z} 13.5869 {xRadius} 2.9 {yRadius} 3.2 {zRadius} 5.0 {drawSphere} False
goto_if_false @GUNS1_39510
set_player_control $player1 {state} False
clear_prints 
do_fade 1500 {direction} Fade.Out

:GUNS1_35753
if 
  get_fading_status 
goto_if_false @GUNS1_35777
wait 0
goto @GUNS1_35753

:GUNS1_35777
clear_area 2741.241 {y} -2011.274 {z} 13.5869 {radius} 10.0 {clearParticles} True
switch_widescreen True
remove_blip 107@
clear_prints 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_35852
if 
  is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_35852
remove_char_from_group 98@

:GUNS1_35852
load_scene 2745.47 {y} -2003.59 {z} 15.53
set_fixed_camera_position 2745.47 {y} -2003.59 {z} 15.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2737.3401 {y} -2002.24 {z} 11.65 {switchStyle} SwitchType.JumpCut
if 
  88@ == 1
goto_if_false @GUNS1_35961
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
88@ = 0

:GUNS1_35961
if 
  is_char_in_any_car $scplayer
goto_if_false @GUNS1_36004
warp_char_from_car_to_coord $scplayer {x} 2741.0 {y} -2007.14 {z} 13.0
goto @GUNS1_36024

:GUNS1_36004
set_char_coordinates $scplayer {x} 2741.0 {y} -2008.14 {z} 13.0

:GUNS1_36024
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36103
if 
  is_char_in_any_car 98@
goto_if_false @GUNS1_36083
warp_char_from_car_to_coord 98@ {x} 2740.0 {y} -2008.14 {z} 13.0
goto @GUNS1_36103

:GUNS1_36083
set_char_coordinates 98@ {x} 2740.0 {y} -2007.14 {z} 13.0

:GUNS1_36103
if 
  not is_car_dead 102@
goto_if_false @GUNS1_36129
delete_car 102@
mark_car_as_no_longer_needed 102@

:GUNS1_36129
clear_area 2741.0 {y} -2005.0 {z} 14.14 {radius} 50.0 {clearParticles} True
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_36223
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_37402
if 
  254@ <> 0
goto_if_false @GUNS1_36584
if 
  257@ == 0
goto_if_false @GUNS1_36309
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_36302
clear_mission_audio 256@

:GUNS1_36302
257@ = 1

:GUNS1_36309
if 
  257@ == 1
goto_if_false @GUNS1_36346
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_36346
if 
  257@ == 2
goto_if_false @GUNS1_36406
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_36406
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_36406
if 
  257@ == 3
goto_if_false @GUNS1_36584
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_36523
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_36488
255@ = 2
256@ = 1
goto @GUNS1_36502

:GUNS1_36488
255@ = 1
256@ = 2

:GUNS1_36502
254@ = 0
257@ = 0
goto @GUNS1_36584

:GUNS1_36523
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_36584
if 
  76 > 254@
goto_if_false @GUNS1_36584
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_36584
switch_start 259@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_37297 {caseNum1} 0 {caseLabel1} @GUNS1_36647 {caseNum2} 1 {caseLabel2} @GUNS1_36960 {caseNum3} 2 {caseLabel3} @GUNS1_37087 {caseNum4} -1 {caseLabel4} @GUNS1_37395 {caseNum5} -1 {caseLabel5} @GUNS1_37395 {caseNum6} -1 {caseLabel6} @GUNS1_37395 {caseNum7} -1 {caseLabel7} @GUNS1_37395

:GUNS1_36647
if 
  257@ == 0
goto_if_false @GUNS1_36953
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36696
start_char_facial_talk 98@ {duration} 4000
shut_char_up_for_scripted_speech 98@ {state} True

:GUNS1_36696
254@ = 66
259@ = 1
262@ = get_game_timer 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36922
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2741.0 {y} -2005.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_go_straight_to_coord -1 {x} 2741.0 {y} -2001.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_turn_char_to_face_char -1 {target} 98@
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2740.0 {y} -2005.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_go_straight_to_coord -1 {x} 2740.0 {y} -2001.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@

:GUNS1_36922
do_fade 1500 {direction} Fade.In

:GUNS1_36929
if 
  get_fading_status 
goto_if_false @GUNS1_36953
wait 0
goto @GUNS1_36929

:GUNS1_36953
goto @GUNS1_37395

:GUNS1_36960
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37080
if 
  257@ == 0
goto_if_false @GUNS1_37080
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37047
start_char_facial_talk $scplayer {duration} 4000
stop_char_facial_talk 98@

:GUNS1_37047
254@ = 67
52@ = 0
TIMERA = 0
259@ = 2
262@ = get_game_timer 

:GUNS1_37080
goto @GUNS1_37395

:GUNS1_37087
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37290
if 
  257@ == 0
goto_if_false @GUNS1_37290
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 8000
goto_if_false @GUNS1_37290
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37198

:GUNS1_37198
close_garage 'BURG_LK'

:GUNS1_37209
if 
  not is_garage_closed 'BURG_LK'
goto_if_false @GUNS1_37242
wait 0
goto @GUNS1_37209

:GUNS1_37242
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37271
start_char_facial_talk 98@ {duration} 5000
stop_char_facial_talk $scplayer

:GUNS1_37271
254@ = 68
259@ = 3
262@ = get_game_timer 

:GUNS1_37290
goto @GUNS1_37395

:GUNS1_37297
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37388
if 
  257@ == 0
goto_if_false @GUNS1_37388
clear_char_tasks $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37381
clear_char_tasks 98@

:GUNS1_37381
258@ = 1

:GUNS1_37388
goto @GUNS1_37395

:GUNS1_37395
goto @GUNS1_36223

:GUNS1_37402
do_fade 1000 {direction} Fade.Out

:GUNS1_37409
if 
  get_fading_status 
goto_if_false @GUNS1_37433
wait 0
goto @GUNS1_37409

:GUNS1_37433
set_char_coordinates $scplayer {x} 2161.0 {y} -1664.0 {z} 22.0
set_fixed_camera_position 2168.155 {y} -1686.374 {z} 15.6932 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2168.094 {y} -1685.377 {z} 15.7351 {switchStyle} SwitchType.JumpCut
request_collision 2168.155 {y} -1686.374
load_scene 2168.155 {y} -1686.374 {z} 15.6932
do_fade 1000 {direction} Fade.In

:GUNS1_37540
if 
  get_fading_status 
goto_if_false @GUNS1_37564
wait 0
goto @GUNS1_37540

:GUNS1_37564
clear_help 
print_help_forever 'RYD1_88'

:GUNS1_37577
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_37601
wait 0
goto @GUNS1_37577

:GUNS1_37601
TIMERA = 0
52@ = 0

:GUNS1_37615
if 
  52@ == 0
goto_if_false @GUNS1_37675
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_37664
52@ = 1

:GUNS1_37664
wait 0
goto @GUNS1_37615

:GUNS1_37675
clear_help 
print_help_forever 'RYD1_90'

:GUNS1_37688
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_37712
wait 0
goto @GUNS1_37688

:GUNS1_37712
TIMERA = 0
52@ = 0

:GUNS1_37726
if 
  52@ == 0
goto_if_false @GUNS1_37786
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_37775
52@ = 1

:GUNS1_37775
wait 0
goto @GUNS1_37726

:GUNS1_37786
clear_help 
do_fade 1000 {direction} Fade.Out

:GUNS1_37795
if 
  get_fading_status 
goto_if_false @GUNS1_37819
wait 0
goto @GUNS1_37795

:GUNS1_37819
set_char_coordinates $scplayer {x} 2272.0 {y} -1792.0 {z} 14.0
set_fixed_camera_position 2255.5391 {y} -1783.703 {z} 13.6049 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2254.8821 {y} -1784.4449 {z} 13.7333 {switchStyle} SwitchType.JumpCut
request_collision 2254.208 {y} -1790.233
load_scene 2254.208 {y} -1790.233 {z} 13.1057
switch_car_generator $gen_car18 {amount} 0
clear_area 2251.0281 {y} -1788.661 {z} 12.7625 {radius} 10.0 {clearParticles} True
102@ = create_car 609 {x} 2251.0281 {y} -1788.661 {z} 12.9625
set_car_heading 102@ {heading} 358.9591
do_fade 1000 {direction} Fade.In

:GUNS1_37990
if 
  get_fading_status 
goto_if_false @GUNS1_38014
wait 0
goto @GUNS1_37990

:GUNS1_38014
print_help_forever 'RYD1_89'

:GUNS1_38025
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_38049
wait 0
goto @GUNS1_38025

:GUNS1_38049
TIMERA = 0
52@ = 0

:GUNS1_38063
if 
  52@ == 0
goto_if_false @GUNS1_38123
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_38112
52@ = 1

:GUNS1_38112
wait 0
goto @GUNS1_38063

:GUNS1_38123
clear_help 
print_help_forever 'RYD1_91'

:GUNS1_38136
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_38160
wait 0
goto @GUNS1_38136

:GUNS1_38160
TIMERA = 0
52@ = 0

:GUNS1_38174
if 
  52@ == 0
goto_if_false @GUNS1_38234
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_38223
52@ = 1

:GUNS1_38223
wait 0
goto @GUNS1_38174

:GUNS1_38234
clear_help 
do_fade 1000 {direction} Fade.Out

:GUNS1_38243
if 
  get_fading_status 
goto_if_false @GUNS1_38267
wait 0
goto @GUNS1_38243

:GUNS1_38267
if 
  not is_car_dead 102@
goto_if_false @GUNS1_38293
delete_car 102@
mark_car_as_no_longer_needed 102@

:GUNS1_38293
set_char_coordinates $scplayer {x} 2741.0 {y} -2001.0 {z} 12.5547
set_char_heading $scplayer {heading} 80.0
switch_widescreen True
set_fixed_camera_position 2745.47 {y} -2003.59 {z} 15.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2737.3401 {y} -2002.24 {z} 11.65 {switchStyle} SwitchType.JumpCut
request_collision 2745.47 {y} -2003.59
load_scene 2745.47 {y} -2003.59 {z} 15.53
if 
  not is_char_dead 98@
goto_if_false @GUNS1_38469
set_char_coordinates 98@ {x} 2740.0 {y} -2001.0 {z} 12.5547
set_char_heading 98@ {heading} 230.0
task_turn_char_to_face_char $scplayer {target} 98@
task_turn_char_to_face_char 98@ {target} $scplayer

:GUNS1_38469
do_fade 1000 {direction} Fade.In

:GUNS1_38476
if 
  get_fading_status 
goto_if_false @GUNS1_38500
wait 0
goto @GUNS1_38476

:GUNS1_38500
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_38570
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_39396
if 
  254@ <> 0
goto_if_false @GUNS1_38931
if 
  257@ == 0
goto_if_false @GUNS1_38656
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_38649
clear_mission_audio 256@

:GUNS1_38649
257@ = 1

:GUNS1_38656
if 
  257@ == 1
goto_if_false @GUNS1_38693
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_38693
if 
  257@ == 2
goto_if_false @GUNS1_38753
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_38753
play_mission_audio 255@
print_now $ryd1_noise_bar(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_38753
if 
  257@ == 3
goto_if_false @GUNS1_38931
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_38870
clear_this_print $ryd1_noise_bar(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_38835
255@ = 2
256@ = 1
goto @GUNS1_38849

:GUNS1_38835
255@ = 1
256@ = 2

:GUNS1_38849
254@ = 0
257@ = 0
goto @GUNS1_38931

:GUNS1_38870
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_38931
if 
  76 > 254@
goto_if_false @GUNS1_38931
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_38931
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_39291 {caseNum1} 0 {caseLabel1} @GUNS1_38994 {caseNum2} 1 {caseLabel2} @GUNS1_39103 {caseNum3} -1 {caseLabel3} @GUNS1_39389 {caseNum4} -1 {caseLabel4} @GUNS1_39389 {caseNum5} -1 {caseLabel5} @GUNS1_39389 {caseNum6} -1 {caseLabel6} @GUNS1_39389 {caseNum7} -1 {caseLabel7} @GUNS1_39389

:GUNS1_38994
if 
  257@ == 0
goto_if_false @GUNS1_39096
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39041
start_char_facial_talk $scplayer {duration} 5000
stop_char_facial_talk 98@

:GUNS1_39041
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
254@ = 74
259@ = 1
262@ = get_game_timer 

:GUNS1_39096
goto @GUNS1_39389

:GUNS1_39103
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39284
if 
  257@ == 0
goto_if_false @GUNS1_39284
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39195
start_char_facial_talk 98@ {duration} 5000
stop_char_facial_talk $scplayer
clear_char_tasks $scplayer

:GUNS1_39195
254@ = 75
259@ = 2
TIMERA = 0
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39279
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2761.0 {y} -2002.0 {z} 14.0 {speed} MoveState.Walk {time} 10000
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@

:GUNS1_39279
262@ = get_game_timer 

:GUNS1_39284
goto @GUNS1_39389

:GUNS1_39291
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39382
if 
  257@ == 0
goto_if_false @GUNS1_39382
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39375
stop_char_facial_talk 98@
stop_char_facial_talk $scplayer

:GUNS1_39375
258@ = 1

:GUNS1_39382
goto @GUNS1_39389

:GUNS1_39389
goto @GUNS1_38570

:GUNS1_39396
52@ = 0

:GUNS1_39403
if 
  52@ == 0
goto_if_false @GUNS1_39476
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 6000
goto_if_false @GUNS1_39465
52@ = 1

:GUNS1_39465
wait 0
goto @GUNS1_39403

:GUNS1_39476
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
shut_char_up_for_scripted_speech $scplayer {state} False
goto @GUNS1_40498
goto @GUNS1_39580

:GUNS1_39510
  locate_char_any_means_3d $scplayer {x} 2741.0 {y} -2010.0 {z} 13.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
if 
  not is_garage_open 'BURG_LK'
goto_if_false @GUNS1_39580
open_garage 'BURG_LK'

:GUNS1_39580
goto @GUNS1_39657

:GUNS1_39587
  locate_char_any_means_3d $scplayer {x} 2742.0 {y} -2000.0 {z} 13.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
if 
  not is_garage_closed 'BURG_LK'
goto_if_false @GUNS1_39657
close_garage 'BURG_LK'

:GUNS1_39657
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @GUNS1_40072
268@ = 0
if 
  96@ == 1
goto_if_false @GUNS1_39929
if 
  locate_char_in_car_2d $scplayer {x} 2067.3999 {y} -1831.2 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @GUNS1_39837
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_39830
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_39816
switch_car_siren 103@ {state} False
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.EmergencyVehicleStop {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.StopForCars

:GUNS1_39816
74@ = 1
71@ = 0

:GUNS1_39830
goto @GUNS1_39929

:GUNS1_39837
if and
  74@ == 1
  71@ == 0
goto_if_false @GUNS1_39929
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_39915
switch_car_siren 103@ {state} True
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 33.0 {drivingStyle} DrivingMode.PloughThrough

:GUNS1_39915
74@ = 0
71@ = 1

:GUNS1_39929
if 
  69@ == 0
goto_if_false @GUNS1_40065
if 
  68@ == 1
goto_if_false @GUNS1_39986
remove_blip 107@
clear_prints 
264@ = 2
68@ = 0

:GUNS1_39986
106@ = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
69@ = 1
clear_prints 
print 'GUNS123' {time} 5000 {flag} 1
if 
  78@ == 1
goto_if_false @GUNS1_40065
264@ = 2
78@ = 0

:GUNS1_40065
goto @GUNS1_40471

:GUNS1_40072
272@ = 0
if 
  44@ == 1
goto_if_false @GUNS1_40170
if 
  11 > 43@
goto_if_false @GUNS1_40170
print 'GUNS135' {time} 4000 {flag} 1
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_40163
43@ = 0

:GUNS1_40163
44@ = 0

:GUNS1_40170
if 
  68@ == 0
goto_if_false @GUNS1_40386
if 
  69@ == 1
goto_if_false @GUNS1_40218
remove_blip 106@
69@ = 0

:GUNS1_40218
clear_prints 
if 
  locate_char_in_car_2d $scplayer {x} 2067.3999 {y} -1831.2 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @GUNS1_40286
wait 3000
print 'GUNS124' {time} 5000 {flag} 1
goto @GUNS1_40302

:GUNS1_40286
print 'GUNS124' {time} 5000 {flag} 1

:GUNS1_40302
if 
  78@ == 0
goto_if_false @GUNS1_40352
if 
  96@ == 1
goto_if_false @GUNS1_40345
264@ = 1

:GUNS1_40345
goto @GUNS1_40359

:GUNS1_40352
264@ = 3

:GUNS1_40359
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_40386
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_40471
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_40471
switch_car_siren 103@ {state} False
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.Cruise {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.AvoidCars
71@ = 0

:GUNS1_40471
goto @GUNS1_4763
return 

:GUNS1_40480
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GUNS1_40498
set_lvar_int_to_lvar_int 50@ = 35@
50@ *= 50
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
set_police_ignore_player $player1 {state} False
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'RYDER_1'
$flag_ryder_mission_counter += 1
return 

:GUNS1_40575
$onmission = 0
$disable_mod_garage = 0
$timer_mobile_start = get_game_timer 
switch_car_generator $gen_car18 {amount} 101
set_radar_zoom 0
if 
  is_player_playing $player1
goto_if_false @GUNS1_40628
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_40628
set_police_ignore_player $player1 {state} False
switch_entry_exit 'BURHOUS' {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
remove_blip 108@
remove_blip 105@
remove_blip 104@
remove_blip 109@
remove_blip 106@
remove_blip 107@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
clear_onscreen_counter $ryd1_time_to_daylight
display_radar True
display_hud True
clear_onscreen_timer $tripskip_c3flag
mark_model_as_no_longer_needed 609
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed #DB_AMMO
remove_animation "CARRY"
remove_animation "GANGS"
remove_animation "POLICE"
remove_animation "INT_HOUSE"
remove_animation "ON_LOOKERS"
remove_animation "CAR_CHAT"
remove_char_elegantly 98@
mark_char_as_no_longer_needed 99@
mark_char_as_no_longer_needed 100@
mark_char_as_no_longer_needed 101@
mark_car_as_no_longer_needed 103@
mark_car_as_no_longer_needed 102@
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
if 
  not is_char_dead 99@
goto_if_false @GUNS1_40937
set_char_decision_maker 99@ {handleOrTemplate} 41@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:GUNS1_40937
unload_special_character 1
remove_decision_maker 39@
remove_decision_maker 40@
remove_decision_maker 41@
remove_decision_maker 42@
switch_ped_roads_back_to_original 2775.0 {leftBottomY} -1196.4 {leftBottomZ} 20.0 {rightTopX} 2840.0 {rightTopY} -1141.0 {rightTopZ} 35.0
mission_has_finished 
return 

//-------------Mission 25---------------
// Originally: Catalyst

:RYDER3
script_name 'RYDER3'
gosub @RYDER3_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER3_38
gosub @RYDER3_17920

:RYDER3_38
gosub @RYDER3_18100
terminate_this_script 

:RYDER3_47
register_mission_given 
$onmission = 1
make_room_in_player_gang_for_mission_peds 1
89@ = 0
$6869 = 0
95@ = 2
102@ = 0
load_mission_text 'RYDER3'
72@ = load_char_decision_maker DecisionMakerType.Tough
105@ = load_char_decision_maker DecisionMakerType.Empty
set_car_density_multiplier 0.5
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:RYDER3_135
if 
  get_fading_status 
goto_if_false @RYDER3_159
wait 0
goto @RYDER3_135

:RYDER3_159
set_area_visible 2
load_cutscene 'RYDER3A'

:RYDER3_174
if 
  not has_cutscene_loaded 
goto_if_false @RYDER3_198
wait 0
goto @RYDER3_174

:RYDER3_198
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:RYDER3_215
if 
  not has_cutscene_finished 
goto_if_false @RYDER3_239
wait 0
goto @RYDER3_215

:RYDER3_239
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:RYDER3_253
if 
  get_fading_status 
goto_if_false @RYDER3_277
wait 0
goto @RYDER3_253

:RYDER3_277
clear_cutscene 
clear_prints 
switch_widescreen False
set_area_visible 0
switch_car_generator $gen_car5 {amount} 0
request_model 600
request_model 352
request_model 346
request_model #CR_GUNCRATE
request_model #CR_AMMOBOX
request_model 105
request_animation "BOX"
request_animation "RYDER"
request_animation "SWAT"
request_model 108
request_model 109
request_model 110
request_model 537
request_model 569
request_model 492
request_model 105
request_model 106
load_special_character 1 {modelName} 'RYDER2'
load_all_models_now 

:RYDER3_399
if or
  not has_model_loaded 600
  not has_model_loaded 352
  not has_model_loaded 346
  not has_model_loaded #CR_GUNCRATE
  not has_model_loaded #CR_AMMOBOX
goto_if_false @RYDER3_446
wait 0
goto @RYDER3_399

:RYDER3_446
if or
  not has_model_loaded 105
  not has_special_character_loaded 1
  not has_animation_loaded "BOX"
  not has_animation_loaded "RYDER"
goto_if_false @RYDER3_492
wait 0
goto @RYDER3_446

:RYDER3_492
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 537
  not has_model_loaded 569
goto_if_false @RYDER3_536
wait 0
goto @RYDER3_492

:RYDER3_536
if or
  not has_model_loaded 492
  not has_model_loaded 105
  not has_model_loaded 106
  not has_animation_loaded "SWAT"
goto_if_false @RYDER3_579
wait 0
goto @RYDER3_536

:RYDER3_579
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_2059
gosub @RYDER3_18751
set_player_control $player1 {state} False
51@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 51@ {state} True
close_sequence_task 51@
52@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 52@ {state} True
close_sequence_task 52@
76@ = open_sequence_task 
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2000
close_sequence_task 76@
75@ = open_sequence_task 
task_play_anim -1 {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 20000
set_sequence_to_repeat 75@ {state} True
close_sequence_task 75@
40@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 2290.584 {y} -1142.411 {z} 25.7144 {speed} MoveState.Run {vehicle} -1
task_go_to_coord_any_means -1 {x} 2288.5391 {y} -1133.7531 {z} 25.7076 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 253.83
task_stay_in_same_place -1 {state} True
close_sequence_task 40@
66@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 2289.092 {y} -1117.049 {z} 25.9062 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 66@
67@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 2285.1101 {y} -1117.1169 {z} 25.9062 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
clear_area 2477.135 {y} -1683.116 {z} 12.3782 {radius} 10.0 {clearParticles} True
clear_area 2469.2241 {y} -1672.496 {z} 12.484 {radius} 10.0 {clearParticles} True
clear_area 2472.783 {y} -1685.696 {z} 12.5153 {radius} 0.5 {clearParticles} False
load_scene 2472.783 {y} -1685.696 {z} 12.5153
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_1446
set_char_coordinates $scplayer {x} 2472.783 {y} -1685.696 {z} 12.5153
set_char_heading $scplayer {heading} 336.6331
set_camera_behind_player 

:RYDER3_1446
set_car_model_components 600 {component1} 4 {component2} 4
custom_plate_for_next_car 600 {text} "_SHERM__"
108@ = create_car 600 {x} 2476.0349 {y} -1678.379 {z} 12.3457
set_can_burst_car_tyres 108@ {state} False
set_car_heading 108@ {heading} 43.9007
set_car_health 108@ {health} 2000
99@ = add_blip_for_car 108@
set_blip_as_friendly 99@ {state} True
set_car_only_damaged_by_player 108@ {state} True
change_car_colour 108@ {color1} 84 {color2} 84
set_car_cruise_speed 108@ {maxSpeed} 5.0
change_blip_display 99@ {display} BlipDisplay.Neither
set_car_straight_line_distance 108@ {distance} 250
$ryder = create_char_as_passenger 108@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $ryder {state} False
unload_special_character 1
set_char_heading $ryder {heading} 121.9883
task_stay_in_same_place $ryder {state} True
set_char_health $ryder {health} 800
set_char_max_health $ryder {maxHealth} 800
set_char_suffers_critical_hits $ryder {state} False
set_char_never_targetted $ryder {state} True
give_weapon_to_char $ryder {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_cant_be_dragged_out $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_relationship $ryder {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker $ryder {handleOrTemplate} 72@
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
109@ = 0

:RYDER3_1724
if 
  10 > 109@
goto_if_false @RYDER3_1767
110@(109@,10i) = -1
109@ += 1
goto @RYDER3_1724

:RYDER3_1767
109@ = 0
$r3_rnd = 0
$collected_guns = 10
122@ = 0
123@ = -1
124@ = 5
if 
  $onmission == 0
goto_if_false @RYDER3_1848
create_object_no_offset #GUNBOX {x} $x {y} $y {z} $z {var_handle} 110@(109@,10i)

:RYDER3_1848
89@ = 0
switch_roads_off 2284.0 {leftBottomY} -1151.0 {leftBottomZ} 10.0 {rightTopX} 2288.0 {rightTopY} -1147.0 {rightTopZ} 30.0
switch_roads_off 2287.321 {leftBottomY} -1132.571 {leftBottomZ} 10.0 {rightTopX} 2360.8391 {rightTopY} -1177.134 {rightTopZ} 40.0
switch_roads_off 2311.676 {leftBottomY} -1375.397 {leftBottomZ} 10.0 {rightTopX} 2292.365 {rightTopY} -1303.1021 {rightTopZ} 40.0
switch_roads_off 2268.6951 {leftBottomY} -1138.541 {leftBottomZ} 10.0 {rightTopX} 2282.3621 {rightTopY} -1159.604 {rightTopZ} 40.0
switch_roads_off 2307.5371 {leftBottomY} -1162.624 {leftBottomZ} 10.0 {rightTopX} 2266.3511 {rightTopY} -1136.99 {rightTopZ} 40.0
switch_random_trains False
set_create_random_gang_members False
125@ = 0
126@ = 0
127@ = -153
TIMERA = 0
set_wanted_multiplier 0.0

:RYDER3_2059
128@ = create_object_no_offset #TMP_BIN {x} 2295.3911 {y} -1129.812 {z} 26.4
set_object_heading 128@ {heading} 187.2863
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_2119
task_enter_car_as_driver $scplayer {vehicle} 108@ {time} 5000

:RYDER3_2119
set_fixed_camera_position 2473.6421 {y} -1674.005 {z} 13.6679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2473.833 {y} -1674.969 {z} 13.4843 {switchStyle} SwitchType.JumpCut
gosub @RYDER3_18844
print_now 'RYD3_Z' {time} 6000 {flag} 1
TIMERB = 0

:RYDER3_2200
if 
  4000 > TIMERB
goto_if_false @RYDER3_2247
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER3_2240

:RYDER3_2240
goto @RYDER3_2200

:RYDER3_2247
gosub @RYDER3_18779

:RYDER3_2254
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_17913
wait 0
gosub @RYDER3_18877
gosub @RYDER3_19947
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RYDER3_2310
goto @RYDER3_17999

:RYDER3_2310
if 
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 275.0 {yRadius} 275.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @RYDER3_2372
set_car_density_multiplier 0.0
goto @RYDER3_2397

:RYDER3_2372
if 
  10 > 89@
goto_if_false @RYDER3_2397
set_car_density_multiplier 1.0

:RYDER3_2397
if 
  102@ == 0
goto_if_false @RYDER3_3444
if and
  has_model_loaded 537
  has_model_loaded 569
goto_if_false @RYDER3_3444
129@ = create_mission_train 10 {x} 2278.177 {y} -1144.882 {z} 27.5107 {direction} True
lock_car_doors 129@ {lockStatus} CarLock.Locked
set_train_speed 129@ {speed} 0.0
set_train_cruise_speed 129@ {speed} 0.0
freeze_car_position 129@ {state} True
163@ = get_train_caboose 129@
74@ = create_object #AMMOTRN_OBJ {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 74@ {handle} 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
91@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 91@ {handle} 163@ {xOffset} 0.5 {yOffset} -5.5 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 145.0
92@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 92@ {handle} 163@ {xOffset} 0.5 {yOffset} 6.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 60.0
93@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 93@ {handle} 163@ {xOffset} -0.5 {yOffset} 8.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 130.0
61@ = create_object #CR_GUNCRATE {x} 2287.7439 {y} -1131.75 {z} 25.7431
set_object_heading 61@ {heading} 85.7739
62@ = create_object #CR_GUNCRATE {x} 2287.3579 {y} -1131.0909 {z} 25.7449
set_object_heading 62@ {heading} 209.4727
63@ = create_object #CR_GUNCRATE {x} 2287.665 {y} -1127.056 {z} 25.8118
set_object_heading 63@ {heading} 97.4572
64@ = create_object #CR_GUNCRATE {x} 2287.4309 {y} -1125.5861 {z} 25.8256
set_object_heading 64@ {heading} 176.9109
102@ = 1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
142@ = create_char PedType.CivMale {modelId} 106 {x} 2291.969 {y} -1131.63 {z} 25.7468
set_char_heading 142@ {heading} 188.6236
task_play_anim_non_interruptable 142@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_collision 142@ {state} False
set_char_never_targetted 142@ {state} True
set_char_decision_maker 142@ {handleOrTemplate} 105@
143@ = create_char PedType.CivMale {modelId} 108 {x} 2290.6599 {y} -1146.0229 {z} 25.7507
set_char_heading 143@ {heading} 180.7254
task_play_anim_non_interruptable 143@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_collision 143@ {state} False
set_char_never_targetted 143@ {state} True
set_char_decision_maker 143@ {handleOrTemplate} 105@
130@ = create_char PedType.Mission2 {modelId} 108 {x} 2295.6831 {y} -1128.682 {z} 25.8647
set_char_heading 130@ {heading} 175.3117
task_stay_in_same_place 130@ {state} True
set_char_is_target_priority 130@ {state} True
131@ = create_char PedType.Mission2 {modelId} 109 {x} 2289.1399 {y} -1131.1331 {z} 25.7539
set_char_heading 131@ {heading} 190.007
task_stay_in_same_place 131@ {state} True
set_char_is_target_priority 131@ {state} True
132@ = create_char PedType.Mission2 {modelId} 109 {x} 2293.741 {y} -1130.343 {z} 25.8004
set_char_heading 132@ {heading} 178.0093
task_toggle_duck 132@ {state} True
task_stay_in_same_place 132@ {state} True
set_char_is_target_priority 132@ {state} True
133@ = create_char PedType.Mission2 {modelId} 110 {x} 2285.522 {y} -1135.369 {z} 28.0
set_char_heading 133@ {heading} 202.6963
set_char_only_damaged_by_player 133@ {state} True
task_stay_in_same_place 133@ {state} True
set_char_is_target_priority 133@ {state} True
144@ = create_char PedType.Mission1 {modelId} 105 {x} 2296.282 {y} -1158.184 {z} 25.6529
set_char_heading 144@ {heading} 9.002
task_toggle_duck 144@ {state} True
task_stay_in_same_place 144@ {state} True
145@ = create_char PedType.Mission1 {modelId} 106 {x} 2287.5239 {y} -1150.041 {z} 25.7574
set_char_heading 145@ {heading} 347.622
task_stay_in_same_place 145@ {state} True
task_toggle_duck 145@ {state} True
146@ = create_char PedType.Mission1 {modelId} 105 {x} 2301.2571 {y} -1157.3719 {z} 25.597
set_char_heading 146@ {heading} 9.002
task_stay_in_same_place 146@ {state} True

:RYDER3_3444
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_3561
if and
  is_char_in_car $scplayer {vehicle} 108@
  89@ == 0
goto_if_false @RYDER3_3561
TIMERB = 0
set_radio_channel RadioChannel.RadioLosSantos
switch_random_trains False
122@ = 4
89@ += 1
change_blip_display 99@ {display} BlipDisplay.Neither
34@ = add_blip_for_coord 2278.177 {y} -1144.882 {z} 27.5107
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
101@ = 1

:RYDER3_3561
if or
  89@ == 1
  89@ == 2
goto_if_false @RYDER3_4008
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_4008
if 
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_3688
if 
  101@ <> 1
goto_if_false @RYDER3_3681
change_blip_display 99@ {display} BlipDisplay.Neither
change_blip_display 34@ {display} BlipDisplay.Both
print_now 'RYD3_Z' {time} 6000 {flag} 1
101@ = 1

:RYDER3_3681
goto @RYDER3_4008

:RYDER3_3688
if 
  101@ == 1
goto_if_false @RYDER3_3953
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_3729
shut_char_up_for_scripted_speech $ryder {state} False

:RYDER3_3729
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_3752
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_3752
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 99@ {display} BlipDisplay.Both
$6869 = generate_random_int_in_range 0 {max} 3
switch_start $6869 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_3946 {caseNum1} 0 {caseLabel1} @RYDER3_3838 {caseNum2} 1 {caseLabel2} @RYDER3_3874 {caseNum3} 2 {caseLabel3} @RYDER3_3910 {caseNum4} -1 {caseLabel4} @RYDER3_3946 {caseNum5} -1 {caseLabel5} @RYDER3_3946 {caseNum6} -1 {caseLabel6} @RYDER3_3946 {caseNum7} -1 {caseLabel7} @RYDER3_3946

:RYDER3_3838
set_lvar_text_label 106@s = 'RYD3_NA'
set_lvar_int_to_constant 96@ = 13649
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3874
set_lvar_text_label 106@s = 'RYD3_NB'
set_lvar_int_to_constant 96@ = 13650
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3910
set_lvar_text_label 106@s = 'RYD3_NC'
set_lvar_int_to_constant 96@ = 13651
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3946
101@ = 2

:RYDER3_3953
if and
  95@ == 2
  101@ == 2
goto_if_false @RYDER3_4001
print_now 'RYD3_Q' {time} 4000 {flag} 1
101@ = 0

:RYDER3_4001
87@ = 1

:RYDER3_4008
if 
  89@ == 1
goto_if_false @RYDER3_5318
if 
  87@ == 0
goto_if_false @RYDER3_4746
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_4151
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_4092
shut_char_up_for_scripted_speech $ryder {state} True

:RYDER3_4092
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_4115
shut_char_up_for_scripted_speech $scplayer {state} True

:RYDER3_4115
set_lvar_text_label 106@s = 'RYD3_AD'
set_lvar_int_to_constant 96@ = 13602
gosub @RYDER3_19927
85@ = 1

:RYDER3_4151
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_4212
set_lvar_text_label 106@s = 'RYD3_AE'
set_lvar_int_to_constant 96@ = 13655
gosub @RYDER3_19927
85@ = 2

:RYDER3_4212
if and
  95@ == 2
  85@ == 2
goto_if_false @RYDER3_4273
set_lvar_text_label 106@s = 'RYD3_BA'
set_lvar_int_to_constant 96@ = 13656
gosub @RYDER3_19927
85@ = 3

:RYDER3_4273
if and
  95@ == 2
  85@ == 3
goto_if_false @RYDER3_4334
set_lvar_text_label 106@s = 'RYD3_BB'
set_lvar_int_to_constant 96@ = 13603
gosub @RYDER3_19927
85@ = 4

:RYDER3_4334
if and
  95@ == 2
  85@ == 4
goto_if_false @RYDER3_4395
set_lvar_text_label 106@s = 'RYD3_BC'
set_lvar_int_to_constant 96@ = 13657
gosub @RYDER3_19927
85@ = 5

:RYDER3_4395
if and
  95@ == 2
  85@ == 5
goto_if_false @RYDER3_4456
set_lvar_text_label 106@s = 'RYD3_BD'
set_lvar_int_to_constant 96@ = 13604
gosub @RYDER3_19927
85@ = 6

:RYDER3_4456
if and
  95@ == 2
  85@ == 6
goto_if_false @RYDER3_4517
set_lvar_text_label 106@s = 'RYD3_BE'
set_lvar_int_to_constant 96@ = 13658
gosub @RYDER3_19927
85@ = 7

:RYDER3_4517
if and
  95@ == 2
  85@ == 7
goto_if_false @RYDER3_4578
set_lvar_text_label 106@s = 'RYD3_BG'
set_lvar_int_to_constant 96@ = 13606
gosub @RYDER3_19927
85@ = 8

:RYDER3_4578
if and
  95@ == 2
  85@ == 8
goto_if_false @RYDER3_4639
set_lvar_text_label 106@s = 'RYD3_BH'
set_lvar_int_to_constant 96@ = 13659
gosub @RYDER3_19927
85@ = 9

:RYDER3_4639
if and
  95@ == 2
  85@ == 9
goto_if_false @RYDER3_4746
set_lvar_text_label 106@s = 'RYD3_BJ'
set_lvar_int_to_constant 96@ = 13607
gosub @RYDER3_19927
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_4716
shut_char_up $ryder {state} False

:RYDER3_4716
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_4739
shut_char_up $scplayer {state} False

:RYDER3_4739
85@ = 10

:RYDER3_4746
if and
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
  102@ == 1
goto_if_false @RYDER3_5249
36@ = 0

:RYDER3_4808
if 
  not is_char_dead 130@(36@,6i)
goto_if_false @RYDER3_4971
task_stay_in_same_place 130@(36@,6i) {state} True
add_blip_for_char 130@(36@,6i) {var_handle} 136@(36@,6i)
if or
  36@ == 3
  36@ == 0
goto_if_false @RYDER3_4912
set_char_weapon_skill 130@(36@,6i) {skill} WeaponSkill.Pro
give_weapon_to_char 130@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_4937

:RYDER3_4912
give_weapon_to_char 130@(36@,6i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 130@(36@,6i) {weaponType} WeaponType.MicroUzi

:RYDER3_4937
set_char_shoot_rate 130@(36@,6i) {rate} 50
set_char_accuracy 130@(36@,6i) {accuracy} 50
set_char_decision_maker 130@(36@,6i) {handleOrTemplate} 72@

:RYDER3_4971
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_4808
36@ = 0

:RYDER3_4999
if 
  not is_char_dead 144@(36@,4i)
goto_if_false @RYDER3_5221
set_char_never_targetted 144@(36@,4i) {state} True
task_stay_in_same_place 144@(36@,4i) {state} True
if 
  36@ == 1
goto_if_false @RYDER3_5090
set_char_health 144@(36@,4i) {health} 200
set_char_max_health 144@(36@,4i) {maxHealth} 200
goto @RYDER3_5112

:RYDER3_5090
set_char_health 144@(36@,4i) {health} 50
set_char_max_health 144@(36@,4i) {maxHealth} 50

:RYDER3_5112
if 
  36@ == 1
goto_if_false @RYDER3_5162
set_char_weapon_skill 144@(36@,4i) {skill} WeaponSkill.Pro
give_weapon_to_char 144@(36@,4i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_5187

:RYDER3_5162
give_weapon_to_char 144@(36@,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 144@(36@,4i) {weaponType} WeaponType.MicroUzi

:RYDER3_5187
set_char_shoot_rate 144@(36@,4i) {rate} 70
set_char_accuracy 144@(36@,4i) {accuracy} 70
set_char_decision_maker 144@(36@,4i) {handleOrTemplate} 72@

:RYDER3_5221
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_4999
102@ = 2

:RYDER3_5249
if 
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @RYDER3_5318
89@ += 1
TIMERB = 0
85@ = 0

:RYDER3_5318
if 
  89@ == 2
goto_if_false @RYDER3_6766
36@ = 0

:RYDER3_5343
if and
  is_char_dead 130@(36@,6i)
  130@(36@,6i) <> 0
goto_if_false @RYDER3_5423
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_5423
remove_blip 136@(36@,6i)
136@(36@,6i) = 0
mark_char_as_no_longer_needed 130@(36@,6i)

:RYDER3_5423
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_5343
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_5498
if 
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_5491
goto @RYDER3_5498

:RYDER3_5491
88@ = 1

:RYDER3_5498
if and
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
  86@ == 0
goto_if_false @RYDER3_6094
if 
  not is_char_dead 145@
goto_if_false @RYDER3_5730
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2291.7241 {y} -1138.6479 {z} 25.6745 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_5638
task_kill_char_on_foot -1 {target} 130@

:RYDER3_5638
if 
  not is_char_dead 131@
goto_if_false @RYDER3_5661
task_kill_char_on_foot -1 {target} 131@

:RYDER3_5661
if 
  not is_char_dead 132@
goto_if_false @RYDER3_5684
task_kill_char_on_foot -1 {target} 132@

:RYDER3_5684
if 
  not is_char_dead 133@
goto_if_false @RYDER3_5707
task_kill_char_on_foot -1 {target} 133@

:RYDER3_5707
close_sequence_task 149@
clear_char_tasks_immediately 145@
perform_sequence_task 145@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_5730
if 
  not is_char_dead 144@
goto_if_false @RYDER3_5907
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2297.533 {y} -1137.578 {z} 25.8778 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_5815
task_kill_char_on_foot -1 {target} 130@

:RYDER3_5815
if 
  not is_char_dead 131@
goto_if_false @RYDER3_5838
task_kill_char_on_foot -1 {target} 131@

:RYDER3_5838
if 
  not is_char_dead 132@
goto_if_false @RYDER3_5861
task_kill_char_on_foot -1 {target} 132@

:RYDER3_5861
if 
  not is_char_dead 133@
goto_if_false @RYDER3_5884
task_kill_char_on_foot -1 {target} 133@

:RYDER3_5884
close_sequence_task 149@
clear_char_tasks_immediately 144@
perform_sequence_task 144@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_5907
if 
  not is_char_dead 146@
goto_if_false @RYDER3_6080
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2290.1179 {y} -1141.78 {z} 25.7024 {speed} MoveState.Run {time} -2
flush_route 
if 
  not is_char_dead 130@
goto_if_false @RYDER3_5988
task_kill_char_on_foot -1 {target} 130@

:RYDER3_5988
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6011
task_kill_char_on_foot -1 {target} 131@

:RYDER3_6011
if 
  not is_char_dead 132@
goto_if_false @RYDER3_6034
task_kill_char_on_foot -1 {target} 132@

:RYDER3_6034
if 
  not is_char_dead 133@
goto_if_false @RYDER3_6057
task_kill_char_on_foot -1 {target} 133@

:RYDER3_6057
close_sequence_task 149@
clear_char_tasks_immediately 146@
perform_sequence_task 146@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_6080
86@ = 1
TIMERB = 0

:RYDER3_6094
if and
  88@ == 0
  86@ == 1
goto_if_false @RYDER3_6241
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_6180
set_lvar_text_label 106@s = 'RYD3_CA'
set_lvar_int_to_constant 96@ = 13608
gosub @RYDER3_19927
85@ = 1

:RYDER3_6180
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_6241
set_lvar_text_label 106@s = 'RYD3_CB'
set_lvar_int_to_constant 96@ = 13660
gosub @RYDER3_19927
85@ = 2

:RYDER3_6241
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_6406
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_6349
print_now 'RYD3_Q' {time} 5000 {flag} 1
if 
  39@ == 0
goto_if_false @RYDER3_6342
remove_blip 34@
34@ = add_blip_for_car 108@
set_blip_as_friendly 34@ {state} True
39@ = 1

:RYDER3_6342
goto @RYDER3_6406

:RYDER3_6349
if 
  39@ == 1
goto_if_false @RYDER3_6406
remove_blip 34@
34@ = add_blip_for_coord 2278.177 {y} -1144.882 {z} 27.5107
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
39@ = 0

:RYDER3_6406
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_6766
if 
  locate_stopped_car_3d 108@ {x} 2289.5911 {y} -1135.625 {z} 25.6863 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @RYDER3_6766
remove_blip 34@
if or
  not is_char_dead 130@
  not is_char_dead 131@
  not is_char_dead 132@
  not is_char_dead 133@
goto_if_false @RYDER3_6540
set_lvar_text_label 106@s = 'RYD3_CC'
set_lvar_int_to_constant 96@ = 13661
gosub @RYDER3_19927

:RYDER3_6540
TIMERA = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_6759
if 
  not is_car_dead 108@
goto_if_false @RYDER3_6759
if 
  is_char_in_car $ryder {vehicle} 108@
goto_if_false @RYDER3_6759
148@ = open_sequence_task 
task_leave_car -1 {vehicle} 108@
task_toggle_duck -1 {state} True
task_go_to_coord_any_means -1 {x} 2295.104 {y} -1148.0291 {z} 25.7612 {speed} MoveState.Run {vehicle} -1
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_6672
task_kill_char_on_foot -1 {target} 130@

:RYDER3_6672
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6695
task_kill_char_on_foot -1 {target} 131@

:RYDER3_6695
if 
  not is_char_dead 132@
goto_if_false @RYDER3_6718
task_kill_char_on_foot -1 {target} 132@

:RYDER3_6718
if 
  not is_char_dead 133@
goto_if_false @RYDER3_6741
task_kill_char_on_foot -1 {target} 133@

:RYDER3_6741
close_sequence_task 148@
clear_char_tasks $ryder
perform_sequence_task $ryder {sequence} 148@

:RYDER3_6759
89@ += 1

:RYDER3_6766
if and
  89@ == 3
  TIMERA > 4000
goto_if_false @RYDER3_6869
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6815
task_stay_in_same_place 131@ {state} False

:RYDER3_6815
if or
  not is_char_dead 130@
  not is_char_dead 131@
  not is_char_dead 132@
  not is_char_dead 133@
goto_if_false @RYDER3_6862
print_now 'RYD3_M' {time} 5000 {flag} 1

:RYDER3_6862
89@ += 1

:RYDER3_6869
if 
  89@ == 4
goto_if_false @RYDER3_7115
36@ = 0

:RYDER3_6894
if and
  is_char_dead 130@(36@,6i)
  130@(36@,6i) <> 0
goto_if_false @RYDER3_6974
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_6974
remove_blip 136@(36@,6i)
136@(36@,6i) = 0
mark_char_as_no_longer_needed 130@(36@,6i)

:RYDER3_6974
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_6894
if and
  is_char_dead 130@
  is_char_dead 131@
  is_char_dead 132@
  is_char_dead 133@
goto_if_false @RYDER3_7058
if 
  84@ == 0
goto_if_false @RYDER3_7058
TIMERA = 0
84@ = 1

:RYDER3_7058
if and
  84@ == 1
  TIMERA > 2000
goto_if_false @RYDER3_7115
89@ += 1
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_7115
perform_sequence_task $ryder {sequence} 40@

:RYDER3_7115
if 
  89@ == 5
goto_if_false @RYDER3_7147
TIMERA = 0
89@ += 1

:RYDER3_7147
if 
  89@ == 6
goto_if_false @RYDER3_8209
gosub @RYDER3_18811
request_model 492
request_model 352
request_model 102
request_model 104
request_model 346

:RYDER3_7195
if or
  not has_model_loaded 492
  not has_model_loaded 352
  not has_model_loaded 102
  not has_model_loaded 104
  not has_model_loaded 346
goto_if_false @RYDER3_7240
wait 0
goto @RYDER3_7195

:RYDER3_7240
150@ = create_car 492 {x} 2340.0549 {y} -1151.432 {z} 25.9546
set_car_heading 150@ {heading} 92.6857
car_goto_coordinates 150@ {x} 2313.4141 {y} -1150.093 {z} 25.7997
set_car_driving_style 150@ {drivingStyle} DrivingMode.PloughThrough
set_car_cruise_speed 150@ {maxSpeed} 25.0
151@ = create_char_inside_car 150@ {pedType} PedType.Mission2 {modelId} 102
set_char_heading 151@ {heading} 227.7265
152@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 104 {seat} SeatId.BikeRear
set_char_heading 152@ {heading} 301.1901
153@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft
set_char_heading 153@ {heading} 82.8733
set_char_only_damaged_by_player 153@ {state} True
154@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 104 {seat} SeatId.RearRight
set_char_heading 154@ {heading} 82.8733
set_char_only_damaged_by_player 154@ {state} True
36@ = 0

:RYDER3_7425
add_blip_for_char 151@(36@,4i) {var_handle} 155@(36@,4i)
if 
  36@ == 3
goto_if_false @RYDER3_7491
set_char_weapon_skill 151@(36@,4i) {skill} WeaponSkill.Pro
give_weapon_to_char 151@(36@,4i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_7516

:RYDER3_7491
give_weapon_to_char 151@(36@,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 151@(36@,4i) {weaponType} WeaponType.MicroUzi

:RYDER3_7516
set_char_health 151@(36@,4i) {health} 200
set_char_max_health 151@(36@,4i) {maxHealth} 200
set_char_shoot_rate 151@(36@,4i) {rate} 40
set_char_accuracy 151@(36@,4i) {accuracy} 40
set_char_decision_maker 151@(36@,4i) {handleOrTemplate} 72@
set_char_is_target_priority 151@(36@,4i) {state} True
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_7425
gosub @RYDER3_18751
load_scene_in_direction 2287.2959 {y} -1140.38 {z} 25.6779 {heading} 252.6459
set_fixed_camera_position 2283.145 {y} -1135.652 {z} 28.6919 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 150@
goto_if_false @RYDER3_7692
point_camera_at_car 150@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:RYDER3_7692
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_7744
if 
  not is_char_in_any_car $scplayer
goto_if_false @RYDER3_7744
task_turn_char_to_face_coord $scplayer {x} 2313.4141 {y} -1150.093 {z} 25.7997

:RYDER3_7744
36@ = 0

:RYDER3_7751
if 
  not is_char_dead 144@(36@,4i)
goto_if_false @RYDER3_7826
if 
  not is_char_in_any_car 144@(36@,4i)
goto_if_false @RYDER3_7826
task_turn_char_to_face_coord 144@(36@,4i) {x} 2313.4141 {y} -1150.093 {z} 25.7997
task_stay_in_same_place 144@(36@,4i) {state} True

:RYDER3_7826
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_7751
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_8047
159@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2295.6931 {y} -1142.469 {z} 25.8392 {speed} MoveState.Run {time} -2
task_turn_char_to_face_coord -1 {x} 2313.4141 {y} -1150.093 {z} 25.7997
if 
  not is_char_dead 151@
goto_if_false @RYDER3_7939
task_kill_char_on_foot -1 {target} 151@

:RYDER3_7939
if 
  not is_char_dead 152@
goto_if_false @RYDER3_7962
task_kill_char_on_foot -1 {target} 152@

:RYDER3_7962
if 
  not is_char_dead 153@
goto_if_false @RYDER3_7985
task_kill_char_on_foot -1 {target} 153@

:RYDER3_7985
if 
  not is_char_dead 154@
goto_if_false @RYDER3_8008
task_kill_char_on_foot -1 {target} 154@

:RYDER3_8008
close_sequence_task 159@
if 
  not is_char_in_any_car $ryder
goto_if_false @RYDER3_8042
clear_char_tasks_immediately $ryder
perform_sequence_task $ryder {sequence} 159@

:RYDER3_8042
clear_sequence_task 159@

:RYDER3_8047
gosub @RYDER3_18844
print_now 'RYD3_2' {time} 3000 {flag} 1
wait 1000
TIMERB = 0

:RYDER3_8082
if 
  3000 > TIMERB
goto_if_false @RYDER3_8136
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER3_8129
goto @RYDER3_8136

:RYDER3_8129
goto @RYDER3_8082

:RYDER3_8136
gosub @RYDER3_18779
print_now 'RYD3_DA' {time} 3000 {flag} 1
set_lvar_text_label 106@s = 'RYD3_DA'
set_lvar_int_to_constant 96@ = 13610
gosub @RYDER3_19927
85@ = 0
TIMERB = 0
89@ += 1

:RYDER3_8209
if 
  89@ == 7
goto_if_false @RYDER3_8293
if 
  not is_car_dead 150@
goto_if_false @RYDER3_8293
if 
  locate_stopped_car_2d 150@ {x} 2304.1819 {y} -1142.619 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @RYDER3_8293
task_everyone_leave_car 150@
89@ += 1

:RYDER3_8293
if 
  89@ == 8
goto_if_false @RYDER3_9029
36@ = 0

:RYDER3_8318
if and
  is_char_dead 151@(36@,4i)
  151@(36@,4i) <> 0
goto_if_false @RYDER3_8398
if 
  does_blip_exist 155@(36@,4i)
goto_if_false @RYDER3_8398
remove_blip 155@(36@,4i)
155@(36@,4i) = 0
mark_char_as_no_longer_needed 151@(36@,4i)

:RYDER3_8398
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_8318
if and
  TIMERB > 3000
  85@ == 0
goto_if_false @RYDER3_8641
set_lvar_text_label 106@s = 'RYD3_DB'
set_lvar_int_to_constant 96@ = 13662
gosub @RYDER3_19927
if 
  not is_char_dead 151@
goto_if_false @RYDER3_8514
task_go_to_coord_any_means 151@ {x} 2299.2839 {y} -1133.929 {z} 27.3281 {speed} MoveState.Run {vehicle} -1

:RYDER3_8514
if 
  not is_char_dead 152@
goto_if_false @RYDER3_8554
task_go_to_coord_any_means 152@ {x} 2291.2261 {y} -1140.1689 {z} 25.6912 {speed} MoveState.Run {vehicle} -1

:RYDER3_8554
if 
  not is_char_dead 153@
goto_if_false @RYDER3_8594
task_go_to_coord_any_means 153@ {x} 2298.0901 {y} -1144.036 {z} 25.919 {speed} MoveState.Run {vehicle} -1

:RYDER3_8594
if 
  not is_char_dead 154@
goto_if_false @RYDER3_8634
task_go_to_coord_any_means 154@ {x} 2291.842 {y} -1129.22 {z} 25.7756 {speed} MoveState.Run {vehicle} -1

:RYDER3_8634
85@ = 1

:RYDER3_8641
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_8702
set_lvar_text_label 106@s = 'RYD3_DC'
set_lvar_int_to_constant 96@ = 13611
gosub @RYDER3_19927
85@ = 2

:RYDER3_8702
if and
  is_char_dead 151@
  is_char_dead 152@
  is_char_dead 153@
  is_char_dead 154@
goto_if_false @RYDER3_9029
89@ += 1
68@ = add_blip_for_coord 2287.147 {y} -1121.702 {z} 25.8903
set_coord_blip_appearance 68@ {color} CoordAppearance.Normal
set_lvar_text_label 106@s = 'RYD3_EA'
set_lvar_int_to_constant 96@ = 13612
gosub @RYDER3_19927
85@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_9022
161@ = open_sequence_task 
task_achieve_heading -1 {heading} 77.6187
task_play_anim -1 {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 2000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 161@ {state} True
close_sequence_task 161@
160@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2294.854 {y} -1143.85 {z} 25.814 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2290.7161 {y} -1122.9969 {z} 25.8774 {speed} MoveState.Run {time} -2
perform_sequence_task -1 {sequence} 161@
close_sequence_task 160@
clear_char_tasks_immediately $ryder
perform_sequence_task $ryder {sequence} 160@
clear_sequence_task 161@
clear_sequence_task 160@

:RYDER3_9022
TIMERB = 0

:RYDER3_9029
if 
  89@ == 9
goto_if_false @RYDER3_10572
if and
  TIMERB > 4000
  85@ == 0
goto_if_false @RYDER3_9096
print_now 'RYD3_1' {time} 4000 {flag} 1
85@ = 1

:RYDER3_9096
if 
  locate_char_on_foot_3d $scplayer {x} 2287.147 {y} -1121.702 {z} 25.8903 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @RYDER3_10572
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9167
set_player_control $player1 {state} False

:RYDER3_9167
if 
  does_blip_exist 68@
goto_if_false @RYDER3_9188
remove_blip 68@

:RYDER3_9188
gosub @RYDER3_18751
delete_char 133@
set_player_display_vital_stats_button $player1 {enabled} False
set_fixed_camera_position 2288.8811 {y} -1117.7581 {z} 28.0044 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2288.3 {y} -1118.549 {z} 27.8136 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9333
set_char_coordinates $scplayer {x} 2287.147 {y} -1121.702 {z} 25.8903
set_char_heading $scplayer {heading} 91.8747
task_climb $scplayer {flag} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:RYDER3_9333
wait 1000
gosub @RYDER3_18811
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9439
clear_char_tasks_immediately $scplayer
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @RYDER3_9409
set_char_coordinates $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386
goto @RYDER3_9429

:RYDER3_9409
warp_char_from_car_to_coord $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386

:RYDER3_9429
set_char_heading $scplayer {heading} 220.0

:RYDER3_9439
request_car_recording 486
request_car_recording 490

:RYDER3_9449
if or
  not has_car_recording_been_loaded 486
  not has_car_recording_been_loaded 490
goto_if_false @RYDER3_9481
wait 0
goto @RYDER3_9449

:RYDER3_9481
clear_area 2284.7319 {y} -1121.916 {z} 27.0 {radius} 50.0 {clearParticles} True
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9648
162@ = create_char PedType.Mission1 {modelId} 105 {x} 2294.554 {y} -1156.382 {z} 25.6646
set_char_heading 162@ {heading} 9.002
if 
  not is_char_dead 162@
goto_if_false @RYDER3_9598
if 
  not is_char_in_car 162@ {vehicle} 108@
goto_if_false @RYDER3_9598
warp_char_into_car 162@ {vehicle} 108@

:RYDER3_9598
if 
  is_char_dead 162@
goto_if_false @RYDER3_9643
162@ = create_char_inside_car 108@ {pedType} PedType.Mission1 {modelId} 105
set_char_never_targetted 162@ {state} True
give_weapon_to_char 162@ {weaponType} WeaponType.MicroUzi {ammo} 9999

:RYDER3_9643
close_all_car_doors 108@

:RYDER3_9648
if and
  not is_car_dead 108@
  not is_char_dead 162@
goto_if_false @RYDER3_9700
70@ = add_blip_for_car 108@
set_blip_as_friendly 70@ {state} True
set_car_health 108@ {health} 5000
set_char_health 162@ {health} 500

:RYDER3_9700
delete_char $ryder
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9735
$x, $y, $z = get_car_coordinates 108@

:RYDER3_9735
$ryder = create_char PedType.Mission1 {modelId} 290 {x} $x {y} $y {z} $z
set_char_health $ryder {health} 500
clear_all_char_relationships $ryder {relationshipType} RelationshipType.Hate
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9817
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -0.85 {zOffset} 0.65 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.MicroUzi

:RYDER3_9817
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} True
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
if 
  not is_char_dead 162@
goto_if_false @RYDER3_9878
task_toggle_ped_threat_scanner 162@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 162@ {handleOrTemplate} 105@

:RYDER3_9878
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9907
start_playback_recorded_car 108@ {path} 486
pause_playback_recorded_car 108@

:RYDER3_9907
wait 800
if 
  not is_car_dead 129@
goto_if_false @RYDER3_9943
freeze_car_position 129@ {state} False
start_playback_recorded_car 129@ {path} 490

:RYDER3_9943
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
36@ = 0

:RYDER3_9970
delete_char 144@(36@,4i)
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_9970
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
load_scene_in_direction 2288.5161 {y} -1136.4041 {z} 28.5557 {heading} 149.2199
set_fixed_camera_position 2288.5161 {y} -1136.4041 {z} 28.5557 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2288.2949 {y} -1137.368 {z} 28.41 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_10138
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386
set_char_heading $scplayer {heading} 0.0

:RYDER3_10138
wait 200
if and
  not is_car_dead 108@
  is_playback_going_on_for_car 108@
goto_if_false @RYDER3_10169
unpause_playback_recorded_car 108@

:RYDER3_10169
gosub @RYDER3_18844
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13663

:RYDER3_10201
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_10227
wait 0
goto @RYDER3_10201

:RYDER3_10227
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_FA' {time} 2000 {flag} 1
wait 2000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13613

:RYDER3_10263
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_10289
wait 0
goto @RYDER3_10263

:RYDER3_10289
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_FB' {time} 4000 {flag} 1
wait 4000
if 
  not is_car_dead 129@
goto_if_false @RYDER3_10407
set_heading_for_attached_player $player1 {heading} 225.0 {headingRange} 225.0
163@ = get_train_caboose 129@
attach_char_to_car $scplayer {vehicle} 163@ {xOffset} 0.0 {yOffset} -8.0 {zOffset} 0.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision $scplayer {state} False

:RYDER3_10407
gosub @RYDER3_18779
set_car_density_multiplier 0.0
draw_crosshair True
set_lvar_text_label 106@s = 'RYD3_GA'
set_lvar_int_to_constant 96@ = 13614
gosub @RYDER3_19927
TIMERB = 0
85@ = 0
$r3_total_guns = 90000
display_onscreen_timer_with_string $r3_total_guns {direction} TimerDirection.Down {text} 'RYD3_3'
$box_timer = 0
122@ = 0
display_nth_onscreen_counter_with_string $box_timer {display} CounterDisplay.Bar {slot} 1 {text} 'RYD3_E'
display_nth_onscreen_counter_with_string $collected_guns {display} CounterDisplay.Number {slot} 2 {text} 'RYD3_F'
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_10565
clear_char_tasks $ryder

:RYDER3_10565
89@ += 1

:RYDER3_10572
if 
  89@ == 10
goto_if_false @RYDER3_13706
if and
  TIMERB > 5000
  85@ == 0
goto_if_false @RYDER3_10634
print_help_forever 'RYD3_D'
85@ = 1

:RYDER3_10634
if 
  TIMERA > 8000
goto_if_false @RYDER3_10900
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_10893
clear_char_tasks $ryder
$6869 = generate_random_int_in_range 0 {max} 3
switch_start $6869 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_10893 {caseNum1} 0 {caseLabel1} @RYDER3_10746 {caseNum2} 1 {caseLabel2} @RYDER3_10795 {caseNum3} 2 {caseLabel3} @RYDER3_10844 {caseNum4} -1 {caseLabel4} @RYDER3_10893 {caseNum5} -1 {caseLabel5} @RYDER3_10893 {caseNum6} -1 {caseLabel6} @RYDER3_10893 {caseNum7} -1 {caseLabel7} @RYDER3_10893

:RYDER3_10746
task_play_anim $ryder {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10893

:RYDER3_10795
task_play_anim $ryder {animationName} "RYD_BECKON_02" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10893

:RYDER3_10844
task_play_anim $ryder {animationName} "RYD_BECKON_03" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10893

:RYDER3_10893
TIMERA = 0

:RYDER3_10900
if 
  not is_car_dead 163@
goto_if_false @RYDER3_13643
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_10995
$x, $y, $z = get_char_coordinates $scplayer
44@, 45@, 46@ = get_char_coordinates $ryder
sub_float_lvar_from_float_var $x -= 44@
sub_float_lvar_from_float_var $y -= 45@
$heading = get_heading_from_vector_2d $x {y} $y
set_char_heading $ryder {heading} $heading

:RYDER3_10995
if 
  $r3_rnd <> 10
goto_if_false @RYDER3_11460
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @RYDER3_11115
add_int_lvar_to_int_var $box_timer += 124@
if 
  $box_timer > 100
goto_if_false @RYDER3_11069
$box_timer = 100

:RYDER3_11069
if 
  0 > $box_timer
goto_if_false @RYDER3_11101
$box_timer = 0
124@ = 50

:RYDER3_11101
164@ += 1
goto @RYDER3_11460

:RYDER3_11115
if 
  164@ > 0
goto_if_false @RYDER3_11460
if 
  $box_timer > 20
goto_if_false @RYDER3_11446
cset_lvar_float_to_var_int 165@ =# $box_timer
165@ /= 2.0
$x, $y, $z = get_active_camera_coordinates 
44@, 45@, 46@ = get_active_camera_point_at 
if 
  does_object_exist 110@(109@,10i)
goto_if_false @RYDER3_11220
delete_object 110@(109@,10i)

:RYDER3_11220
create_object_no_offset 127@ {x} 44@ {y} 45@ {z} 46@ {var_handle} 110@(109@,10i)
set_object_records_collisions 110@(109@,10i) {state} True
set_lvar_int_to_lvar_int 166@(109@,10i) = 127@
sub_float_var_from_float_lvar 44@ -= $x
sub_float_var_from_float_lvar 45@ -= $y
sub_float_var_from_float_lvar 46@ -= $z
mult_float_lvar_by_float_lvar 44@ *= 165@
mult_float_lvar_by_float_lvar 45@ *= 165@
mult_float_lvar_by_float_lvar 46@ *= 165@
set_object_dynamic 110@(109@,10i) {state} True
set_object_collision 110@(109@,10i) {state} True
$x, $y, $z = get_car_speed_vector 163@
set_lvar_float_to_var_float 47@ = $x
add_float_lvar_to_float_lvar 47@ += 44@
set_lvar_float_to_var_float 48@ = $y
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_var_float 49@ = $z
add_float_lvar_to_float_lvar 49@ += 46@
set_object_velocity 110@(109@,10i) {xSpeed} 47@ {ySpeed} 48@ {zSpeed} 49@
109@ += 1
if 
  109@ == 10
goto_if_false @RYDER3_11446
109@ = 0

:RYDER3_11446
164@ = 0
$box_timer = 0

:RYDER3_11460
176@ = 0

:RYDER3_11467
if 
  10 > 176@
goto_if_false @RYDER3_13643
if and
  does_object_exist 110@(176@,10i)
  not is_char_dead $ryder
goto_if_false @RYDER3_13629
$x, $y, $z = get_offset_from_char_in_world_coords $ryder {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.5
if 
  locate_object_3d 110@(176@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @RYDER3_12397
if and
  122@ == 0
  not is_char_dead $ryder
  $r3_rnd <> 10
goto_if_false @RYDER3_12390
set_object_collision 110@(176@,10i) {state} False
task_pick_up_object $ryder {object} 110@(176@,10i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "CATCH_BOX" {animationFile} "BOX" {time} 0
TIMERA = 0
$6869 = generate_random_int_in_range 0 {max} 2
switch_start $r3_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12240 {caseNum1} 1 {caseLabel1} @RYDER3_11754 {caseNum2} 3 {caseLabel2} @RYDER3_11844 {caseNum3} 5 {caseLabel3} @RYDER3_11934 {caseNum4} 7 {caseLabel4} @RYDER3_12024 {caseNum5} 8 {caseLabel5} @RYDER3_12114 {caseNum6} 9 {caseLabel6} @RYDER3_12204 {caseNum7} -1 {caseLabel7} @RYDER3_12240

:RYDER3_11754
if 
  $6869 == 0
goto_if_false @RYDER3_11808
set_lvar_text_label 106@s = 'RYD3_HA'
set_lvar_int_to_constant 96@ = 13616
gosub @RYDER3_19927
goto @RYDER3_11837

:RYDER3_11808
set_lvar_text_label 106@s = 'RYD3_HB'
set_lvar_int_to_constant 96@ = 13617
gosub @RYDER3_19927

:RYDER3_11837
goto @RYDER3_12240

:RYDER3_11844
if 
  $6869 == 0
goto_if_false @RYDER3_11898
set_lvar_text_label 106@s = 'RYD3_HC'
set_lvar_int_to_constant 96@ = 13618
gosub @RYDER3_19927
goto @RYDER3_11927

:RYDER3_11898
set_lvar_text_label 106@s = 'RYD3_HD'
set_lvar_int_to_constant 96@ = 13619
gosub @RYDER3_19927

:RYDER3_11927
goto @RYDER3_12240

:RYDER3_11934
if 
  $6869 == 0
goto_if_false @RYDER3_11988
set_lvar_text_label 106@s = 'RYD3_HE'
set_lvar_int_to_constant 96@ = 13620
gosub @RYDER3_19927
goto @RYDER3_12017

:RYDER3_11988
set_lvar_text_label 106@s = 'RYD3_HF'
set_lvar_int_to_constant 96@ = 13621
gosub @RYDER3_19927

:RYDER3_12017
goto @RYDER3_12240

:RYDER3_12024
if 
  $6869 == 0
goto_if_false @RYDER3_12078
set_lvar_text_label 106@s = 'RYD3_HG'
set_lvar_int_to_constant 96@ = 13622
gosub @RYDER3_19927
goto @RYDER3_12107

:RYDER3_12078
set_lvar_text_label 106@s = 'RYD3_HH'
set_lvar_int_to_constant 96@ = 13623
gosub @RYDER3_19927

:RYDER3_12107
goto @RYDER3_12240

:RYDER3_12114
if 
  $6869 == 0
goto_if_false @RYDER3_12168
set_lvar_text_label 106@s = 'RYD3_HJ'
set_lvar_int_to_constant 96@ = 13624
gosub @RYDER3_19927
goto @RYDER3_12197

:RYDER3_12168
set_lvar_text_label 106@s = 'RYD3_HK'
set_lvar_int_to_constant 96@ = 13625
gosub @RYDER3_19927

:RYDER3_12197
goto @RYDER3_12240

:RYDER3_12204
set_lvar_text_label 106@s = 'RYD3_HM'
set_lvar_int_to_constant 96@ = 13627
gosub @RYDER3_19927
goto @RYDER3_12240

:RYDER3_12240
set_lvar_int_to_lvar_int 123@ = 176@
$r3_rnd += 1
if 
  $collected_guns > 0
goto_if_false @RYDER3_12280
$collected_guns -= 1

:RYDER3_12280
if 
  $r3_rnd == 5
goto_if_false @RYDER3_12354
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_12322
set_char_health $ryder {health} 5000

:RYDER3_12322
if 
  not is_char_dead 162@
goto_if_false @RYDER3_12346
set_char_health 162@ {health} 5000

:RYDER3_12346
127@ = -137

:RYDER3_12354
if 
  $r3_rnd == 10
goto_if_false @RYDER3_12383
draw_crosshair False
set_car_density_multiplier 1.0

:RYDER3_12383
122@ += 1

:RYDER3_12390
goto @RYDER3_12961

:RYDER3_12397
if and
  166@(176@,10i) == -137
  not is_char_dead $ryder
goto_if_false @RYDER3_12961
if 
  has_char_been_damaged_by_weapon $ryder {weaponType} WeaponType.Explosion
goto_if_false @RYDER3_12736
$6869 = generate_random_int_in_range 0 {max} 6
switch_start $6869 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12731 {caseNum1} 0 {caseLabel1} @RYDER3_12515 {caseNum2} 1 {caseLabel2} @RYDER3_12551 {caseNum3} 2 {caseLabel3} @RYDER3_12587 {caseNum4} 3 {caseLabel4} @RYDER3_12623 {caseNum5} 4 {caseLabel5} @RYDER3_12659 {caseNum6} 5 {caseLabel6} @RYDER3_12695 {caseNum7} -1 {caseLabel7} @RYDER3_12731

:RYDER3_12515
set_lvar_text_label 106@s = 'RYD3_JA'
set_lvar_int_to_constant 96@ = 13629
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12551
set_lvar_text_label 106@s = 'RYD3_JB'
set_lvar_int_to_constant 96@ = 13630
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12587
set_lvar_text_label 106@s = 'RYD3_JC'
set_lvar_int_to_constant 96@ = 13631
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12623
set_lvar_text_label 106@s = 'RYD3_JD'
set_lvar_int_to_constant 96@ = 13632
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12659
set_lvar_text_label 106@s = 'RYD3_JE'
set_lvar_int_to_constant 96@ = 13633
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12695
set_lvar_text_label 106@s = 'RYD3_JF'
set_lvar_int_to_constant 96@ = 13634
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12731
clear_char_last_weapon_damage $ryder

:RYDER3_12736
if 
  has_object_collided_with_anything 110@(176@,10i)
goto_if_false @RYDER3_12954
126@ += 1
if 
  126@ > 4
goto_if_false @RYDER3_12947
if and
  not is_char_dead $ryder
  not is_char_dead 162@
goto_if_false @RYDER3_12947
if 
  not is_char_touching_object $ryder {object} 110@(176@,10i)
goto_if_false @RYDER3_12947
if 
  not is_char_touching_object 162@ {object} 110@(176@,10i)
goto_if_false @RYDER3_12947
$x, $y, $z = get_object_coordinates 110@(176@,10i)
break_object 110@(176@,10i) {intensity} 1
report_mission_audio_event_at_object 110@(176@,10i) {soundId} ScriptSound.SoundExplosion
100@ = create_fx_system "EXPLOSION_SMALL" {x} $x {y} $y {z} $z {ignoreBoundingChecks} True
play_and_kill_fx_system 100@
mark_object_as_no_longer_needed 110@(176@,10i)
110@(176@,10i) = 0

:RYDER3_12947
goto @RYDER3_12961

:RYDER3_12954
126@ = 0

:RYDER3_12961
if 
  does_object_exist 110@(176@,10i)
goto_if_false @RYDER3_13036
if 
  not locate_char_any_means_object_2d $scplayer {object} 110@(176@,10i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @RYDER3_13036
mark_object_as_no_longer_needed 110@(176@,10i)
110@(176@,10i) = 0

:RYDER3_13036
if 
  122@ == 1
goto_if_false @RYDER3_13629
if and
  not is_char_dead $ryder
  not is_char_dead 162@
goto_if_false @RYDER3_13086
$task_status = get_script_task_status $ryder {taskId} 1802

:RYDER3_13086
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RYDER3_13629
if 
  123@ > -1
goto_if_false @RYDER3_13622
switch_start 82@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER3_13539 {caseNum1} 0 {caseLabel1} @RYDER3_13185 {caseNum2} 2 {caseLabel2} @RYDER3_13260 {caseNum3} 4 {caseLabel3} @RYDER3_13335 {caseNum4} 6 {caseLabel4} @RYDER3_13403 {caseNum5} 8 {caseLabel5} @RYDER3_13471 {caseNum6} -1 {caseLabel6} @RYDER3_13539 {caseNum7} -1 {caseLabel7} @RYDER3_13539

:RYDER3_13185
79@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 79@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
set_object_collision 79@ {state} False
goto @RYDER3_13539

:RYDER3_13260
77@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 77@ {handle} 108@ {xOffset} -0.5 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 30.0
set_object_collision 77@ {state} False
goto @RYDER3_13539

:RYDER3_13335
78@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 78@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 30.0 {zRotation} 0.0
goto @RYDER3_13539

:RYDER3_13403
80@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 80@ {handle} 108@ {xOffset} -0.6 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
goto @RYDER3_13539

:RYDER3_13471
81@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 81@ {handle} 108@ {xOffset} -0.1 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
goto @RYDER3_13539

:RYDER3_13539
82@ += 1
if 
  82@ >= 10
goto_if_false @RYDER3_13593
clear_onscreen_counter $collected_guns
clear_onscreen_counter $box_timer
clear_onscreen_timer $r3_total_guns
89@ += 1
goto @RYDER3_13622

:RYDER3_13593
if 
  does_object_exist 110@(123@,10i)
goto_if_false @RYDER3_13622
delete_object 110@(123@,10i)

:RYDER3_13622
122@ = 0

:RYDER3_13629
176@ += 1
goto @RYDER3_11467

:RYDER3_13643
if 
  not is_car_dead 108@
goto_if_false @RYDER3_13706
if 
  10 > $r3_total_guns
goto_if_false @RYDER3_13706
clear_onscreen_counter $collected_guns
clear_onscreen_counter $box_timer
clear_onscreen_timer $r3_total_guns
125@ = 1
89@ += 1

:RYDER3_13706
if and
  89@ == 11
  95@ == 2
goto_if_false @RYDER3_14514
gosub @RYDER3_18811
set_car_density_multiplier 1.0
clear_help 
if 
  not is_car_dead 108@
goto_if_false @RYDER3_13768
stop_playback_recorded_car 108@

:RYDER3_13768
if 
  not is_car_dead 163@
goto_if_false @RYDER3_13975
$x, $y, $z = get_car_coordinates 163@
177@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 163@ {xOffset} -2.0 {yOffset} -1.0 {zOffset} -1.0
44@, 45@, 46@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -1.0
47@, 48@, 49@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} -0.5
179@, 180@, 181@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} -50.0 {zOffset} 0.0
$heading = get_car_heading 163@
178@ = get_car_heading 163@
$heading -= 50.0
if 
  not is_car_dead 129@
goto_if_false @RYDER3_13975
stop_playback_recorded_car 129@

:RYDER3_13975
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_14025
set_char_collision $scplayer {state} True
detach_char_from_car $scplayer
remove_animation "BOX"
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER3_14025
delete_mission_trains 
delete_object 74@
delete_object 91@
delete_object 92@
delete_object 93@
set_player_display_vital_stats_button $player1 {enabled} True
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_14132
freeze_car_position 108@ {state} False
set_car_coordinates 108@ {x} $x {y} $y {z} 177@
set_car_heading 108@ {heading} $heading
set_char_coordinates $scplayer {x} 44@ {y} 45@ {z} 177@
set_car_status 108@ {status} EntityStatus.Player
lock_car_doors 108@ {lockStatus} CarLock.Unlocked

:RYDER3_14132
gosub @RYDER3_18751
set_fixed_camera_position 47@ {y} 48@ {z} 49@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
load_scene_in_direction 47@ {y} 48@ {z} 49@ {heading} 178@
if 
  not is_car_dead 108@
goto_if_false @RYDER3_14253
point_camera_at_car 108@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
delete_char 162@
162@ = create_char_as_passenger 108@ {pedType} PedType.Mission1 {modelId} 105 {seat} SeatId.BikeRear
set_char_health 162@ {health} 800
set_char_max_health 162@ {maxHealth} 800
set_char_suffers_critical_hits 162@ {state} False
set_char_never_targetted 162@ {state} True

:RYDER3_14253
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_14306
detach_char_from_car $ryder
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -1.3 {zOffset} 0.8 {heading} Facing.Back {headingRange} 15.0 {weaponType} WeaponType.MicroUzi

:RYDER3_14306
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_14338
task_enter_car_as_driver $scplayer {vehicle} 108@ {time} 4000

:RYDER3_14338
gosub @RYDER3_18844
if 
  125@ == 1
goto_if_false @RYDER3_14427
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13635

:RYDER3_14374
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_14400
wait 0
goto @RYDER3_14374

:RYDER3_14400
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_JG' {time} 2000 {flag} 1
goto @RYDER3_14484

:RYDER3_14427
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13628

:RYDER3_14438
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_14464
wait 0
goto @RYDER3_14438

:RYDER3_14464
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_HN' {time} 2000 {flag} 1

:RYDER3_14484
wait 4000
gosub @RYDER3_18779
draw_crosshair False
TIMERA = 0
89@ = 35

:RYDER3_14514
if 
  89@ == 12
goto_if_false @RYDER3_14578
if 
  125@ == 1
goto_if_false @RYDER3_14571
89@ = 35
69@ = 1
goto @RYDER3_14578

:RYDER3_14571
89@ = 35

:RYDER3_14578
if 
  89@ == 35
goto_if_false @RYDER3_15004
if 
  does_blip_exist 70@
goto_if_false @RYDER3_14617
remove_blip 70@

:RYDER3_14617
if 
  125@ == 1
goto_if_false @RYDER3_14831
gosub @RYDER3_18811
if 
  not is_car_dead 129@
goto_if_false @RYDER3_14663
delete_car 129@

:RYDER3_14663
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_14684
delete_char $ryder

:RYDER3_14684
if 
  not is_char_dead 162@
goto_if_false @RYDER3_14705
delete_char 162@

:RYDER3_14705
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_14753
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_14753
warp_char_into_car $scplayer {vehicle} 108@

:RYDER3_14753
176@ = 0

:RYDER3_14760
if 
  10 > 176@
goto_if_false @RYDER3_14801
delete_object 110@(176@,10i)
176@ += 1
goto @RYDER3_14760

:RYDER3_14801
gosub @RYDER3_18844
print_now 'RYD3_T' {time} 4000 {flag} 1
goto @RYDER3_17920

:RYDER3_14831
if and
  not is_char_dead $ryder
  not is_char_dead $scplayer
goto_if_false @RYDER3_14887
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
set_char_decision_maker $ryder {handleOrTemplate} 72@

:RYDER3_14887
set_lvar_text_label 106@s = 'RYD3_KA'
set_lvar_int_to_constant 96@ = 13636
gosub @RYDER3_19927
TIMERB = 0
85@ = 0
remove_blip 34@
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
set_wanted_multiplier 1.0
alter_wanted_level $player1 {wantedLevel} 3
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
89@ += 1
TIMERA = 0

:RYDER3_15004
if and
  89@ == 36
  TIMERA > 4000
goto_if_false @RYDER3_15083
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15053
task_toggle_duck $ryder {state} True

:RYDER3_15053
print_now 'RYD3_13' {time} 7000 {flag} 1
89@ += 1
39@ = 0

:RYDER3_15083
if 
  89@ == 37
goto_if_false @RYDER3_17828
if 
  not is_car_dead 108@
goto_if_false @RYDER3_15357
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_15204
print_now 'RYD3_Q' {time} 5000 {flag} 1
if 
  39@ == 0
goto_if_false @RYDER3_15197
remove_blip 34@
34@ = add_blip_for_car 108@
set_blip_as_friendly 34@ {state} True
39@ = 1

:RYDER3_15197
goto @RYDER3_15306

:RYDER3_15204
if 
  39@ == 1
goto_if_false @RYDER3_15306
remove_blip 34@
if 
  103@ == 1
goto_if_false @RYDER3_15272
34@ = add_blip_for_coord 2446.887 {y} -1661.962 {z} 12.3047
goto @RYDER3_15292

:RYDER3_15272
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527

:RYDER3_15292
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
39@ = 0

:RYDER3_15306
if and
  is_car_upsidedown 108@
  97@ == 0
goto_if_false @RYDER3_15357
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15350
task_die $ryder

:RYDER3_15350
97@ = 1

:RYDER3_15357
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15831
if and
  is_char_shooting $ryder
  TIMERB > 10000
  not is_message_being_displayed 
goto_if_false @RYDER3_15831
TIMERB = 0
$6869 = generate_random_int_in_range 0 {max} 8
switch_start $6869 {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER3_15831 {caseNum1} 0 {caseLabel1} @RYDER3_15543 {caseNum2} 1 {caseLabel2} @RYDER3_15579 {caseNum3} 2 {caseLabel3} @RYDER3_15615 {caseNum4} 3 {caseLabel4} @RYDER3_15651 {caseNum5} 4 {caseLabel5} @RYDER3_15687 {caseNum6} 5 {caseLabel6} @RYDER3_15723 {caseNum7} 6 {caseLabel7} @RYDER3_15759
switch_continued 7 {caseLabel1} @RYDER3_15795 {caseNum2} -1 {caseLabel2} @RYDER3_15831 {caseNum3} -1 {caseLabel3} @RYDER3_15831 {caseNum4} -1 {caseLabel4} @RYDER3_15831 {caseNum5} -1 {caseLabel5} @RYDER3_15831 {caseNum6} -1 {caseLabel6} @RYDER3_15831 {caseNum7} -1 {caseLabel7} @RYDER3_15831 {caseNum8} -1 {caseLabel8} @RYDER3_15831 {caseNum9} -1 {caseLabel9} @RYDER3_15831

:RYDER3_15543
set_lvar_text_label 106@s = 'RYD3_LA'
set_lvar_int_to_constant 96@ = 13638
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15579
set_lvar_text_label 106@s = 'RYD3_LB'
set_lvar_int_to_constant 96@ = 13639
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15615
set_lvar_text_label 106@s = 'RYD3_LC'
set_lvar_int_to_constant 96@ = 13640
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15651
set_lvar_text_label 106@s = 'RYD3_LD'
set_lvar_int_to_constant 96@ = 13641
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15687
set_lvar_text_label 106@s = 'RYD3_LE'
set_lvar_int_to_constant 96@ = 13642
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15723
set_lvar_text_label 106@s = 'RYD3_LF'
set_lvar_int_to_constant 96@ = 13643
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15759
set_lvar_text_label 106@s = 'RYD3_LG'
set_lvar_int_to_constant 96@ = 13644
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15795
set_lvar_text_label 106@s = 'RYD3_LH'
set_lvar_int_to_constant 96@ = 13645
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15831
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
  39@ == 0
goto_if_false @RYDER3_17828
if and
  not is_char_dead $ryder
  not is_char_dead $scplayer
goto_if_false @RYDER3_16191
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @RYDER3_16057
if and
  103@ == 0
  not is_char_dead $ryder
goto_if_false @RYDER3_16050
clear_char_tasks_immediately $ryder
clear_all_char_relationships $ryder {relationshipType} RelationshipType.Hate
set_char_decision_maker $ryder {handleOrTemplate} 105@
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
task_toggle_duck $ryder {state} True
if 
  does_blip_exist 34@
goto_if_false @RYDER3_15987
remove_blip 34@

:RYDER3_15987
set_lvar_text_label 106@s = 'RYD3_KB'
set_lvar_int_to_constant 96@ = 13637
gosub @RYDER3_19927
TIMERA = 0
34@ = add_blip_for_coord 2451.3799 {y} -1661.609 {z} 12.3047
103@ = 1

:RYDER3_16050
goto @RYDER3_16191

:RYDER3_16057
if and
  103@ == 1
  not is_char_dead $ryder
goto_if_false @RYDER3_16191
if 
  does_blip_exist 34@
goto_if_false @RYDER3_16101
remove_blip 34@

:RYDER3_16101
clear_char_tasks_immediately $ryder
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
set_char_decision_maker $ryder {handleOrTemplate} 72@
task_toggle_duck $ryder {state} True
print_now 'RYD3_I' {time} 7000 {flag} 1
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527
103@ = 0

:RYDER3_16191
if and
  not is_wanted_level_greater $player1 {wantedLevel} 0
  TIMERA > 4000
  104@ == 0
goto_if_false @RYDER3_16247
print_now 'RYD3101' {time} 7000 {flag} 1
104@ = 1

:RYDER3_16247
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @RYDER3_17828
if and
  locate_char_any_means_3d $scplayer {x} 2446.887 {y} -1661.962 {z} 12.3047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_17828
clear_wanted_level $player1
clear_area 2483.6179 {y} -1666.093 {z} 12.3594 {radius} 50.0 {clearParticles} True
gosub @RYDER3_18811
if and
  not is_char_dead $ryder
  not is_car_dead 108@
goto_if_false @RYDER3_16415
detach_char_from_car $ryder
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -1.3 {zOffset} 0.8 {heading} Facing.Forward {headingRange} 15.0 {weaponType} WeaponType.MicroUzi

:RYDER3_16415
remove_blip 34@
request_car_recording 104
request_animation "GANGS"

:RYDER3_16433
if or
  not has_car_recording_been_loaded 104
  not has_animation_loaded "GANGS"
goto_if_false @RYDER3_16468
wait 0
goto @RYDER3_16433

:RYDER3_16468
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_16535
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_16518
warp_char_into_car_as_passenger $scplayer {handle} 108@ {seat} SeatId.BikeRear

:RYDER3_16518
start_playback_recorded_car 108@ {path} 104
skip_in_playback_recorded_car 108@ {amount} 1.0

:RYDER3_16535
gosub @RYDER3_18751
set_fixed_camera_position 2444.7959 {y} -1650.005 {z} 24.6868 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2445.6289 {y} -1650.483 {z} 24.4081 {switchStyle} SwitchType.JumpCut
delete_char 162@
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_16625
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False

:RYDER3_16625
gosub @RYDER3_18844
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13646

:RYDER3_16643
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16669
wait 0
goto @RYDER3_16643

:RYDER3_16669
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MA' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_16696
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_16722
wait 0
goto @RYDER3_16696

:RYDER3_16722
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13664

:RYDER3_16735
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16761
wait 0
goto @RYDER3_16735

:RYDER3_16761
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MB' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_16788
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_16814
wait 0
goto @RYDER3_16788

:RYDER3_16814
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13647

:RYDER3_16827
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16853
wait 0
goto @RYDER3_16827

:RYDER3_16853
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MC' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_16880
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_16906
wait 0
goto @RYDER3_16880

:RYDER3_16906
clear_prints 
if 
  not is_car_dead 108@
goto_if_false @RYDER3_16965
set_fixed_camera_position 2472.5759 {y} -1675.462 {z} 14.0837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 108@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:RYDER3_16965
wait 5000
if 
  69@ == 0
goto_if_false @RYDER3_17828
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_17091
clear_char_tasks $ryder
task_toggle_duck $ryder {state} False
stop_playback_recorded_car 108@
$x, $y, $z = get_offset_from_car_in_world_coords 108@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
task_go_straight_to_coord $ryder {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2

:RYDER3_17091
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13665

:RYDER3_17102
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_17128
wait 0
goto @RYDER3_17102

:RYDER3_17128
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MD' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_17155
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_17181
wait 0
goto @RYDER3_17155

:RYDER3_17181
clear_prints 
wait 1500
if 
  has_animation_loaded "GANGS"
goto_if_false @RYDER3_17807
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_17331
if 
  is_char_in_any_car $scplayer
goto_if_false @RYDER3_17267
warp_char_from_car_to_coord $scplayer {x} 2471.343 {y} -1684.306 {z} 12.5159
goto @RYDER3_17287

:RYDER3_17267
set_char_coordinates $scplayer {x} 2471.343 {y} -1684.306 {z} 12.5159

:RYDER3_17287
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 238.6571
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0

:RYDER3_17331
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_17645
if 
  is_char_in_any_car $ryder
goto_if_false @RYDER3_17389
detach_char_from_car $ryder
warp_char_from_car_to_coord $ryder {x} $x {y} $y {z} $z
goto @RYDER3_17403

:RYDER3_17389
set_char_coordinates $ryder {x} $x {y} $y {z} $z

:RYDER3_17403
50@ = 238.6571
50@ -= 180.0
clear_char_tasks_immediately $ryder
set_char_heading $ryder {heading} 50@
35@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} 2471.343 {y} -1684.306 {z} 12.5159 {heading} 238.6571 {radius} 0.4 {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_look_at_char -1 {target} $ryder {time} 3000
close_sequence_task 35@
perform_sequence_task $scplayer {sequence} 35@
clear_sequence_task 35@
35@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} 50@ {radius} 0.4 {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 2465.728 {y} -1687.025 {z} 12.5184 {speed} MoveState.Walk {time} -2
close_sequence_task 35@
perform_sequence_task $ryder {sequence} 35@
clear_sequence_task 35@

:RYDER3_17645
set_fixed_camera_position 2472.521 {y} -1683.47 {z} 14.0526 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.001 {y} -1684.324 {z} 14.0313 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13648

:RYDER3_17707
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_17733
wait 0
goto @RYDER3_17707

:RYDER3_17733
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_ME' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_17760
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_17786
wait 0
goto @RYDER3_17760

:RYDER3_17786
clear_prints 
wait 1000
gosub @RYDER3_18811
goto @RYDER3_17816

:RYDER3_17807
request_animation "GANGS"

:RYDER3_17816
delete_char $ryder
goto @RYDER3_17999

:RYDER3_17828
if 
  is_car_dead 108@
goto_if_false @RYDER3_17867
print_now 'RYD3_14' {time} 5000 {flag} 1
goto @RYDER3_17920

:RYDER3_17867
if 
  is_char_dead $ryder
goto_if_false @RYDER3_17906
print_now 'RYD3_B' {time} 5000 {flag} 1
goto @RYDER3_17920

:RYDER3_17906
goto @RYDER3_2254

:RYDER3_17913
goto @RYDER3_17920

:RYDER3_17920
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_17943
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_17943
set_wanted_multiplier 1.0
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_17981
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER3_17981
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RYDER3_17999
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18022
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_18022
gosub @RYDER3_18779
set_wanted_multiplier 1.0
set_camera_behind_player 
gosub @RYDER3_18844
print_with_number_big 'M_PASSR' {num} 7 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 7
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_ryder_mission_counter += 1
player_made_progress 1
register_mission_passed 'RYDER_3'
return 

:RYDER3_18100
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18123
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_18123
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_18144
remove_char_elegantly $ryder

:RYDER3_18144
draw_crosshair False
set_wanted_multiplier 1.0
set_player_display_vital_stats_button $player1 {enabled} True
remove_car_recording 490
remove_car_recording 486
remove_car_recording 104
36@ = 0

:RYDER3_18183
if 
  does_blip_exist 155@(36@,4i)
goto_if_false @RYDER3_18212
remove_blip 155@(36@,4i)

:RYDER3_18212
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_18241
remove_blip 136@(36@,6i)

:RYDER3_18241
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_18183
if 
  does_blip_exist 70@
goto_if_false @RYDER3_18283
remove_blip 70@

:RYDER3_18283
if 
  does_blip_exist 34@
goto_if_false @RYDER3_18304
remove_blip 34@

:RYDER3_18304
if 
  does_blip_exist 68@
goto_if_false @RYDER3_18325
remove_blip 68@

:RYDER3_18325
if 
  does_blip_exist 99@
goto_if_false @RYDER3_18346
remove_blip 99@

:RYDER3_18346
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
delete_object 91@
delete_object 92@
delete_object 93@
delete_object 81@
delete_object 77@
delete_object 78@
delete_object 79@
delete_object 80@
set_create_random_gang_members True
clear_onscreen_counter $collected_guns
clear_onscreen_counter $box_timer
clear_onscreen_timer $r3_total_guns
detach_char_from_car $scplayer
switch_random_trains True
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #CR_GUNCRATE
mark_model_as_no_longer_needed #CR_AMMOBOX
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 468
remove_animation "BOX"
remove_animation "GANGS"
remove_animation "RYDER"
remove_animation "SWAT"
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
unload_special_character 1
switch_roads_back_to_original 2284.0 {leftBottomY} -1151.0 {leftBottomZ} 10.0 {rightTopX} 2288.0 {rightTopY} -1147.0 {rightTopZ} 30.0
switch_roads_back_to_original 2287.321 {leftBottomY} -1132.571 {leftBottomZ} 10.0 {rightTopX} 2360.8391 {rightTopY} -1177.134 {rightTopZ} 40.0
switch_roads_back_to_original 2311.676 {leftBottomY} -1375.397 {leftBottomZ} 10.0 {rightTopX} 2292.365 {rightTopY} -1303.1021 {rightTopZ} 40.0
switch_roads_back_to_original 2268.6951 {leftBottomY} -1138.541 {leftBottomZ} 10.0 {rightTopX} 2282.3621 {rightTopY} -1159.604 {rightTopZ} 40.0
switch_roads_back_to_original 2307.5371 {leftBottomY} -1162.624 {leftBottomZ} 10.0 {rightTopX} 2266.3511 {rightTopY} -1136.99 {rightTopZ} 40.0
$onmission = 0
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
set_wanted_multiplier 1.0
mission_has_finished 
return 

:RYDER3_18751
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_prints 
clear_help 
return 

:RYDER3_18779
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_help 
clear_prints 
return 

:RYDER3_18811
do_fade 500 {direction} Fade.Out

:RYDER3_18818
if 
  get_fading_status 
goto_if_false @RYDER3_18842
wait 0
goto @RYDER3_18818

:RYDER3_18842
return 

:RYDER3_18844
do_fade 500 {direction} Fade.In

:RYDER3_18851
if 
  get_fading_status 
goto_if_false @RYDER3_18875
wait 0
goto @RYDER3_18851

:RYDER3_18875
return 

:RYDER3_18877
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RYDER3_18993
request_model 600

:RYDER3_18897
if 
  not has_model_loaded 600
goto_if_false @RYDER3_18924
wait 0
goto @RYDER3_18897

:RYDER3_18924
182@ = create_car 600 {x} 2298.3899 {y} -1149.012 {z} 25.7656
set_car_heading 182@ {heading} 45.766
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18981
warp_char_into_car $scplayer {vehicle} 182@

:RYDER3_18981
mark_model_as_no_longer_needed 600
89@ = 50

:RYDER3_18993
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RYDER3_19081
request_car_recording 486
request_car_recording 490

:RYDER3_19018
if or
  not has_car_recording_been_loaded 486
  not has_car_recording_been_loaded 490
goto_if_false @RYDER3_19050
wait 0
goto @RYDER3_19018

:RYDER3_19050
if 
  not is_car_dead 129@
goto_if_false @RYDER3_19081
freeze_car_position 129@ {state} False
start_playback_recorded_car 129@ {path} 490

:RYDER3_19081
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RYDER3_19246
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
request_model 537
request_model 569
request_model 492
request_car_recording 106

:RYDER3_19129
if 
  not has_car_recording_been_loaded 106
goto_if_false @RYDER3_19155
wait 0
goto @RYDER3_19129

:RYDER3_19155
if or
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 492
goto_if_false @RYDER3_19192
wait 0
goto @RYDER3_19155

:RYDER3_19192
183@ = create_mission_train 10 {x} 2278.177 {y} -1144.882 {z} 27.5107 {direction} True
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
set_train_speed 183@ {speed} 0.0
set_train_cruise_speed 183@ {speed} 0.0

:RYDER3_19246
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RYDER3_19319
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_19319
task_play_anim $ryder {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:RYDER3_19319
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RYDER3_19341
$r3_rnd = 9

:RYDER3_19341
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RYDER3_19504
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_19504
request_animation "CARRY"

:RYDER3_19381
if 
  not has_animation_loaded "CARRY"
goto_if_false @RYDER3_19412
wait 0
goto @RYDER3_19381

:RYDER3_19412
$x, $y, $z = get_char_coordinates $scplayer
110@ = create_object_no_offset 127@ {x} $x {y} $y {z} $z
set_object_collision 110@ {state} False
task_pick_up_object $scplayer {object} 110@ {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "CATCH_BOX" {animationFile} "BOX" {time} 0
remove_animation "CARRY"

:RYDER3_19504
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @RYDER3_19575
request_car_recording 486

:RYDER3_19524
if 
  not has_car_recording_been_loaded 486
goto_if_false @RYDER3_19551
wait 0
goto @RYDER3_19524

:RYDER3_19551
if 
  not is_car_dead 108@
goto_if_false @RYDER3_19575
start_playback_recorded_car 108@ {path} 486

:RYDER3_19575
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @RYDER3_19925
if 
  not is_car_dead 108@
goto_if_false @RYDER3_19925
79@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 79@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
set_object_collision 79@ {state} False
77@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 77@ {handle} 108@ {xOffset} -0.5 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 30.0
set_object_collision 77@ {state} False
78@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 78@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 30.0 {zRotation} 0.0
80@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 80@ {handle} 108@ {xOffset} -0.6 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
81@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 81@ {handle} 108@ {xOffset} -0.1 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0

:RYDER3_19925
return 

:RYDER3_19927
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 96@
95@ = 0
return 

:RYDER3_19947
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  95@ == 0
goto_if_false @RYDER3_19990
play_mission_audio MissionAudioSlot.Slot1
print_now 106@s {time} 10000 {flag} 1
95@ = 1

:RYDER3_19990
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  95@ == 1
goto_if_false @RYDER3_20028
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 106@s
95@ = 2

:RYDER3_20028
return 

//-------------Mission 26---------------
// Originally: Robbing Uncle Sam

:RYDER2
script_name 'RYDER2'
gosub @RYDER2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER2_38
gosub @RYDER2_41077

:RYDER2_38
gosub @RYDER2_41195
terminate_this_script 

:RYDER2_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
49@ = 0
50@ = 0

:RYDER2_98
wait 0
38@ += 1
if 
  38@ > 9
goto_if_false @RYDER2_134
38@ = 0

:RYDER2_134
39@ = get_game_timer 
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
set_lvar_int_to_lvar_int 40@ = 39@
add_int_lvar_to_int_lvar 141@ += 41@
add_int_lvar_to_int_lvar 142@ += 41@
add_int_lvar_to_int_lvar 144@ += 41@
42@ = 0

:RYDER2_194
if 
  9 > 42@
goto_if_false @RYDER2_238
add_int_lvar_to_int_lvar 181@(42@,9i) += 41@
42@ += 1
goto @RYDER2_194

:RYDER2_238
add_int_lvar_to_int_lvar 51@ += 41@
add_int_lvar_to_int_lvar 52@ += 41@
add_int_lvar_to_int_lvar 53@ += 41@
add_int_lvar_to_int_lvar 54@ += 41@
add_int_lvar_to_int_lvar 55@ += 41@
add_int_lvar_to_int_lvar 56@ += 41@
add_int_lvar_to_int_lvar 57@ += 41@
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RYDER2_316
36@ = 1

:RYDER2_316
gosub @RYDER2_988

:RYDER2_323
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_563 {caseNum1} 0 {caseLabel1} @RYDER2_451 {caseNum2} 1 {caseLabel2} @RYDER2_465 {caseNum3} 2 {caseLabel3} @RYDER2_479 {caseNum4} 3 {caseLabel4} @RYDER2_493 {caseNum5} 4 {caseLabel5} @RYDER2_507 {caseNum6} 5 {caseLabel6} @RYDER2_521 {caseNum7} 6 {caseLabel7} @RYDER2_535
switch_continued 7 {caseLabel1} @RYDER2_549 {caseNum2} -1 {caseLabel2} @RYDER2_563 {caseNum3} -1 {caseLabel3} @RYDER2_563 {caseNum4} -1 {caseLabel4} @RYDER2_563 {caseNum5} -1 {caseLabel5} @RYDER2_563 {caseNum6} -1 {caseLabel6} @RYDER2_563 {caseNum7} -1 {caseLabel7} @RYDER2_563 {caseNum8} -1 {caseLabel8} @RYDER2_563 {caseNum9} -1 {caseLabel9} @RYDER2_563

:RYDER2_451
gosub @RYDER2_1573
goto @RYDER2_563

:RYDER2_465
gosub @RYDER2_3425
goto @RYDER2_563

:RYDER2_479
gosub @RYDER2_6954
goto @RYDER2_563

:RYDER2_493
gosub @RYDER2_11610
goto @RYDER2_563

:RYDER2_507
gosub @RYDER2_12737
goto @RYDER2_563

:RYDER2_521
gosub @RYDER2_14026
goto @RYDER2_563

:RYDER2_535
gosub @RYDER2_18066
goto @RYDER2_563

:RYDER2_549
gosub @RYDER2_30046
goto @RYDER2_563

:RYDER2_563
gosub @RYDER2_31793
if 
  203@ == 1
goto_if_false @RYDER2_602
203@ = 0
goto @RYDER2_323

:RYDER2_602
if 
  37@ == 0
goto_if_false @RYDER2_668
if 
  36@ == 0
goto_if_false @RYDER2_652
goto @RYDER2_98
goto @RYDER2_661

:RYDER2_652
gosub @RYDER2_41095
return 

:RYDER2_661
goto @RYDER2_677

:RYDER2_668
gosub @RYDER2_41077
return 

:RYDER2_677
goto @RYDER2_988
$ryder = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
282@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
281@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
308@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
313@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
120@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
121@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
122@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
123@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
93@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
340@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:RYDER2_988
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @RYDER2_1102
if 
  58@ == 0
goto_if_false @RYDER2_1076
58@ = 1
write_debug "LEVEL_DEBUG_ON"
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_1069
set_char_only_damaged_by_player $ryder {state} True

:RYDER2_1069
goto @RYDER2_1102

:RYDER2_1076
58@ = 0
write_debug "LEVEL_DEBUG_OFF"

:RYDER2_1102
if 
  58@ == 1
goto_if_false @RYDER2_1571
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @RYDER2_1169
59@ += 1
if 
  59@ > 2
goto_if_false @RYDER2_1167
59@ = 0

:RYDER2_1167
clear_all_view_variables 

:RYDER2_1169
if 
  59@ == 1
goto_if_false @RYDER2_1409
set_var_int_to_lvar_int $throw_power_bar = 34@
set_var_int_to_lvar_int $ry2_view_debug = 35@
set_var_int_to_lvar_int $6876 = 134@
set_var_int_to_lvar_int $6877 = 132@
set_var_float_to_lvar_float $6886 = 253@
set_var_int_to_lvar_int $6879 = 49@
set_var_int_to_lvar_int $6880 = 50@
set_var_int_to_var_int $6881 = $audio_line_is_active
view_integer_variable $throw_power_bar {_p2} "M_STAGE"
view_integer_variable $ry2_view_debug {_p2} "M_GOALS"
view_integer_variable $6876 {_p2} "RYDER_STAGE"
view_integer_variable $6877 {_p2} "WAREHOUSE_OPENED"
view_float_variable $6886 {_p2} "GATE2_TARGET_Z"
view_integer_variable $6879 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6880 {_p2} "DIALOGUE_FLAG2"
view_integer_variable $6881 {_p2} "AUDIO_LINE_IS_ACTIVE"

:RYDER2_1409
if 
  59@ == 2
goto_if_false @RYDER2_1571
set_var_int_to_lvar_int $throw_power_bar = 279@
set_var_int_to_lvar_int $ry2_view_debug = 127@
set_var_int_to_lvar_int $6876 = 336@
set_var_int_to_lvar_int $6877 = TIMERA
set_var_int_to_lvar_int $6878 = 51@
view_integer_variable $throw_power_bar {_p2} "RYDER_GET_BOX_FLAG"
view_integer_variable $ry2_view_debug {_p2} "LOADED_BOXES"
view_integer_variable $6876 {_p2} "SPAWN_THIS_MANY_GUARDS"
view_integer_variable $6877 {_p2} "TIMERA"
view_integer_variable $6878 {_p2} "SPAWN_TIMER"

:RYDER2_1571
return 

:RYDER2_1573
if 
  35@ == 0
goto_if_false @RYDER2_3246
$ryder = 0
95@ = 0
99@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
$6890 = 0
140@ = 0
143@ = 0
145@ = 0
146@ = 0
198@ = 0
199@ = 0
203@ = 0
42@ = 0

:RYDER2_1787
if 
  9 > 42@
goto_if_false @RYDER2_1830
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_1787

:RYDER2_1830
120@ = 0
193@ = 0
196@ = 0
197@ = 0
307@ = 0
202@ = 0
200@ = 6
242@ = 2720.623
243@ = -2405.4319
244@ = 13.989
245@ = 2774.3611
246@ = -2417.8291
247@ = 14.675
347@ = 2721.0
357@ = -2380.0
367@ = 16.3507
377@ = 173.3713
387@ = 2721.6011
397@ = -2384.6379
407@ = 16.3403
417@ = 2732.873
427@ = -2385.677
437@ = 12.625
447@ = 2763.6919
457@ = -2411.2581
467@ = 12.6276
348@ = 2729.3501
358@ = -2451.0701
368@ = 16.6007
378@ = 247.5382
388@ = 2734.908
398@ = -2451.3201
408@ = 16.5938
418@ = 2735.176
428@ = -2437.915
438@ = 12.6362
448@ = 2763.772
458@ = -2428.2029
468@ = 12.4725
349@ = 2748.5549
359@ = -2453.0491
369@ = 12.8623
379@ = 347.9489
389@ = 2748.595
399@ = -2446.5869
409@ = 12.6432
419@ = 2757.5859
429@ = -2434.761
439@ = 12.4876
449@ = 2766.158
459@ = -2432.0139
469@ = 12.6485
350@ = 2793.5161
360@ = -2394.2839
370@ = 12.8623
380@ = 178.5569
390@ = 2793.4729
400@ = -2398.6621
410@ = 12.6323
420@ = 2799.573
430@ = -2403.292
440@ = 12.6308
450@ = 2799.251
460@ = -2410.9851
470@ = 12.6309
351@ = 2721.0
361@ = -2380.0
371@ = 16.3507
381@ = 186.1396
391@ = 2721.502
401@ = -2383.6089
411@ = 16.3403
421@ = 2733.7439
431@ = -2386.2271
441@ = 12.625
451@ = 2754.885
461@ = -2409.502
471@ = 12.5104
352@ = 2729.3501
362@ = -2451.0701
372@ = 16.6007
382@ = 246.8993
392@ = 2734.468
402@ = -2450.824
412@ = 16.5938
422@ = 2735.573
432@ = -2436.667
442@ = 12.6361
452@ = 2759.3601
462@ = -2420.356
472@ = 12.4948
353@ = 2748.551
363@ = -2452.8279
373@ = 12.8623
383@ = 339.2833
393@ = 2750.6699
403@ = -2442.9441
413@ = 12.6432
423@ = 2758.147
433@ = -2440.491
443@ = 12.4936
453@ = 2769.0291
463@ = -2430.3369
473@ = 12.6485
354@ = 2793.6379
364@ = -2395.2271
374@ = 12.8623
384@ = 170.3273
394@ = 2793.9031
404@ = -2399.063
414@ = 12.6322
424@ = 2799.384
434@ = -2403.4741
444@ = 12.6309
454@ = 2799.4099
464@ = -2414.3359
474@ = 12.6309
355@ = 2799.7639
365@ = -2433.002
375@ = 12.6308
385@ = 358.8697
395@ = 2799.9021
405@ = -2425.6941
415@ = 12.6307
425@ = 2796.6541
435@ = -2420.4629
445@ = 12.6315
455@ = 2786.01
465@ = -2414.4451
475@ = 12.6341
356@ = 2800.0081
366@ = -2432.2849
376@ = 12.6307
386@ = 2.0796
396@ = 2800.0229
406@ = -2426.1531
416@ = 12.6307
426@ = 2790.801
436@ = -2421.917
446@ = 12.633
456@ = 2786.3369
466@ = -2421.4331
476@ = 12.634
35@ += 1

:RYDER2_3246
if 
  35@ == 1
goto_if_false @RYDER2_3282
load_mission_text 'RYDER2'
35@ += 1

:RYDER2_3282
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
237@ = load_char_decision_maker DecisionMakerType.Empty
236@ = load_char_decision_maker DecisionMakerType.Tough
235@ = load_char_decision_maker DecisionMakerType.Tough
238@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1823

:RYDER2_3333
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @RYDER2_3359
wait 0
goto @RYDER2_3333

:RYDER2_3359
if 
  35@ == 2
goto_if_false @RYDER2_3391
set_wanted_multiplier 0.2
35@ = 99

:RYDER2_3391
if 
  35@ == 99
goto_if_false @RYDER2_3423
34@ += 1
35@ = 0

:RYDER2_3423
return 

:RYDER2_3425
if 
  35@ == 0
goto_if_false @RYDER2_3581
clear_area 2463.4751 {y} -1713.428 {z} 12.5025 {radius} 20.0 {clearParticles} True
load_cutscene 'RYDER2A'

:RYDER2_3478
if 
  not has_cutscene_loaded 
goto_if_false @RYDER2_3502
wait 0
goto @RYDER2_3478

:RYDER2_3502
start_cutscene 
do_fade 1000 {direction} Fade.In

:RYDER2_3511
if 
  not has_cutscene_finished 
goto_if_false @RYDER2_3535
wait 0
goto @RYDER2_3511

:RYDER2_3535
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RYDER2_3548
if 
  get_fading_status 
goto_if_false @RYDER2_3572
wait 0
goto @RYDER2_3548

:RYDER2_3572
clear_cutscene 
35@ += 1

:RYDER2_3581
if 
  35@ == 1
goto_if_false @RYDER2_4528
switch_car_generator $gen_car5 {amount} 0
clear_area 2472.8101 {y} -1690.97 {z} 12.53 {radius} 5.0 {clearParticles} True
request_model 414
load_special_character 1 {modelName} 'RYDER2'
request_model 346

:RYDER2_3653
if or
  not has_model_loaded 414
  not has_special_character_loaded 1
  not has_model_loaded 346
goto_if_false @RYDER2_3689
wait 0
goto @RYDER2_3653

:RYDER2_3689
set_player_group_to_follow_always $player1 {state} True
set_car_model_components 414 {component1} -1 {component2} -1
95@ = create_car 414 {x} 2475.908 {y} -1679.621 {z} 12.3447
set_car_heading 95@ {heading} 69.0573
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
set_can_burst_car_tyres 95@ {state} False
vehicle_does_provide_cover 95@ {state} False
suppress_car_model 414
$ryder = create_char_as_passenger 95@ {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $ryder {state} False
give_weapon_to_char $ryder {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy $ryder {accuracy} 70
set_char_max_health $ryder {maxHealth} 500
set_char_health $ryder {health} 500
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_decision_maker $ryder {handleOrTemplate} 235@
clear_char_decision_maker_event_response 235@ {event} Event.VehicleOnFire
task_look_at_char $ryder {target} $scplayer {time} 999999
print_now 'RY2_03' {time} 7000 {flag} 1
49@ = 0
set_char_cant_be_dragged_out $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "MAN"
set_char_coordinates $scplayer {x} 2474.8701 {y} -1698.465 {z} 12.521
set_char_heading $scplayer {heading} 4.8941
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In

:RYDER2_3979
if 
  get_fading_status 
goto_if_false @RYDER2_4003
wait 0
goto @RYDER2_3979

:RYDER2_4003
set_player_control $player1 {state} True
TIMERA = 0
240@ = create_object_no_offset #KMB_FRONTGATE {x} 242@ {y} 243@ {z} 244@
248@, 249@, 250@ = get_offset_from_object_in_world_coords 240@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
241@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 245@ {y} 246@ {z} 247@
251@, 252@, 253@ = get_offset_from_object_in_world_coords 241@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
257@ = create_object_no_offset #KMB_FRONTGATE {x} 2720.623 {y} -2504.0229 {z} 13.989
254@, 255@, 256@ = get_offset_from_object_in_world_coords 257@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
258@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2774.3611 {y} -2493.9221 {z} 14.675
259@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2774.3611 {y} -2455.925 {z} 14.675
87@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2405.394 {z} 14.58
88@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2430.2151 {z} 14.58
89@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2443.4871 {z} 14.58
90@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2468.2539 {z} 14.58
91@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2481.7109 {z} 14.58
92@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2506.313 {z} 14.58
42@ = 0

:RYDER2_4352
if 
  6 > 42@
goto_if_false @RYDER2_4395
freeze_object_position 87@(42@,6i) {state} True
42@ += 1
goto @RYDER2_4352

:RYDER2_4395
60@ = create_object #SEC_KEYPAD {x} 2720.4751 {y} -2411.856 {z} 13.8768
set_object_heading 60@ {heading} 90.0
set_object_health 60@ {health} 10
freeze_object_position 60@ {state} True
set_object_collision 60@ {state} False
61@ = create_object #SEC_KEYPAD {x} 2774.1479 {y} -2423.23 {z} 14.2684
set_object_heading 61@ {heading} 270.0
set_object_health 61@ {health} 10
freeze_object_position 61@ {state} True
set_object_collision 61@ {state} False
set_radio_channel RadioChannel.RadioLosSantos
49@ = 0
TIMERA = 0
35@ += 1

:RYDER2_4528
if 
  35@ == 2
goto_if_false @RYDER2_4689
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_4689
if 
  not is_car_dead 95@
goto_if_false @RYDER2_4689
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_4689
remove_blip 120@
120@ = add_blip_for_coord 2699.293 {y} -2395.0129 {z} 12.6172
print_now 'RY2_02' {time} 7000 {flag} 1
54@ = 0
35@ += 1
49@ = 0
50@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_4689
clear_look_at $ryder

:RYDER2_4689
if 
  35@ == 3
goto_if_false @RYDER2_6356
if 
  58@ == 1
goto_if_false @RYDER2_4762
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @RYDER2_4762
set_char_coordinates $scplayer {x} 2699.293 {y} -2395.0129 {z} 12.6172

:RYDER2_4762
if 
  not is_car_dead 95@
goto_if_false @RYDER2_4919
if 
  does_blip_exist 120@
goto_if_false @RYDER2_4919
if 
  locate_car_3d 95@ {x} 2699.293 {y} -2395.0129 {z} 12.6172 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RYDER2_4919
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_4919
if 
  is_vehicle_on_all_wheels 95@
goto_if_false @RYDER2_4919
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
set_player_control $player1 {state} False
remove_blip 120@
35@ = 99

:RYDER2_4919
if 
  54@ > 7500
goto_if_false @RYDER2_6356
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6356
if 
  is_char_in_any_car $ryder
goto_if_false @RYDER2_6356
$car = store_car_char_is_in $ryder
if 
  not is_car_dead $car
goto_if_false @RYDER2_6356
if 
  is_char_in_car $scplayer {vehicle} $car
goto_if_false @RYDER2_6356
if 
  TIMERB > 1000
goto_if_false @RYDER2_6356
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6356
switch_start 50@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6356 {caseNum1} 0 {caseLabel1} @RYDER2_5178 {caseNum2} 1 {caseLabel2} @RYDER2_5251 {caseNum3} 2 {caseLabel3} @RYDER2_5375 {caseNum4} 3 {caseLabel4} @RYDER2_5499 {caseNum5} 4 {caseLabel5} @RYDER2_5623 {caseNum6} 5 {caseLabel6} @RYDER2_5747 {caseNum7} 6 {caseLabel7} @RYDER2_5871
switch_continued 7 {caseLabel1} @RYDER2_5995 {caseNum2} 8 {caseLabel2} @RYDER2_6119 {caseNum3} 9 {caseLabel3} @RYDER2_6243 {caseNum4} -1 {caseLabel4} @RYDER2_6356 {caseNum5} -1 {caseLabel5} @RYDER2_6356 {caseNum6} -1 {caseLabel6} @RYDER2_6356 {caseNum7} -1 {caseLabel7} @RYDER2_6356 {caseNum8} -1 {caseLabel8} @RYDER2_6356 {caseNum9} -1 {caseLabel9} @RYDER2_6356

:RYDER2_5178
set_var_text_label s$audio_string = 'RYD2_AA'
set_var_int_to_constant $audio_sound_file = 10605
start_new_script @AUDIOL $ryder 0 0 2 0 
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10678
goto @RYDER2_6356

:RYDER2_5251
set_var_text_label s$audio_string = 'RYD2_CA'
set_var_int_to_constant $audio_sound_file = 10678
if 
  49@ == 0
goto_if_false @RYDER2_5317
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5343

:RYDER2_5317
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5343
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10609
goto @RYDER2_6356

:RYDER2_5375
set_var_text_label s$audio_string = 'RYD2_CB'
set_var_int_to_constant $audio_sound_file = 10609
if 
  49@ == 0
goto_if_false @RYDER2_5441
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5467

:RYDER2_5441
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5467
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10679
goto @RYDER2_6356

:RYDER2_5499
set_var_text_label s$audio_string = 'RYD2_CC'
set_var_int_to_constant $audio_sound_file = 10679
if 
  49@ == 0
goto_if_false @RYDER2_5565
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5591

:RYDER2_5565
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5591
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10610
goto @RYDER2_6356

:RYDER2_5623
set_var_text_label s$audio_string = 'RYD2_CD'
set_var_int_to_constant $audio_sound_file = 10610
if 
  49@ == 0
goto_if_false @RYDER2_5689
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5715

:RYDER2_5689
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5715
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10611
goto @RYDER2_6356

:RYDER2_5747
set_var_text_label s$audio_string = 'RYD2_CE'
set_var_int_to_constant $audio_sound_file = 10611
if 
  49@ == 0
goto_if_false @RYDER2_5813
start_new_script @AUDIOL $ryder 0 0 1 1 
goto @RYDER2_5839

:RYDER2_5813
start_new_script @AUDIOL $ryder 0 0 1 0 
49@ = 0

:RYDER2_5839
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10680
goto @RYDER2_6356

:RYDER2_5871
set_var_text_label s$audio_string = 'RYD2_CF'
set_var_int_to_constant $audio_sound_file = 10680
if 
  49@ == 0
goto_if_false @RYDER2_5937
start_new_script @AUDIOL $scplayer 0 0 2 1 
goto @RYDER2_5963

:RYDER2_5937
start_new_script @AUDIOL $scplayer 0 0 2 0 
49@ = 0

:RYDER2_5963
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10681
goto @RYDER2_6356

:RYDER2_5995
set_var_text_label s$audio_string = 'RYD2_CG'
set_var_int_to_constant $audio_sound_file = 10681
if 
  49@ == 0
goto_if_false @RYDER2_6061
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6087

:RYDER2_6061
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6087
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10612
goto @RYDER2_6356

:RYDER2_6119
set_var_text_label s$audio_string = 'RYD2_CH'
set_var_int_to_constant $audio_sound_file = 10612
if 
  49@ == 0
goto_if_false @RYDER2_6185
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_6211

:RYDER2_6185
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_6211
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10682
goto @RYDER2_6356

:RYDER2_6243
set_var_text_label s$audio_string = 'RYD2_CJ'
set_var_int_to_constant $audio_sound_file = 10682
if 
  49@ == 0
goto_if_false @RYDER2_6309
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6335

:RYDER2_6309
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6335
50@ += 1
TIMERB = 0
goto @RYDER2_6356

:RYDER2_6356
if 
  35@ == 99
goto_if_false @RYDER2_6388
35@ = 0
34@ += 1

:RYDER2_6388
if 
  not is_car_dead 95@
goto_if_false @RYDER2_6952
if 
  not is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_6869
if 
  not does_blip_exist 119@
goto_if_false @RYDER2_6501
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
remove_blip 120@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6493
task_look_at_char $ryder {target} $scplayer {time} 999999

:RYDER2_6493
TIMERA = 20001

:RYDER2_6501
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6862
if 
  TIMERA > 60000
goto_if_false @RYDER2_6570
print_now 'RY2_03' {time} 7000 {flag} 1
49@ = 0
TIMERA = 0

:RYDER2_6570
if 
  35@ > 2
goto_if_false @RYDER2_6862
if 
  TIMERA > 5000
goto_if_false @RYDER2_6862
if 
  49@ == 0
goto_if_false @RYDER2_6862
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6862
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_6862
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6836 {caseNum1} 0 {caseLabel1} @RYDER2_6749 {caseNum2} 1 {caseLabel2} @RYDER2_6778 {caseNum3} 2 {caseLabel3} @RYDER2_6807 {caseNum4} -1 {caseLabel4} @RYDER2_6836 {caseNum5} -1 {caseLabel5} @RYDER2_6836 {caseNum6} -1 {caseLabel6} @RYDER2_6836 {caseNum7} -1 {caseLabel7} @RYDER2_6836

:RYDER2_6749
set_var_text_label s$audio_string = 'RYD2_BA'
set_var_int_to_constant $audio_sound_file = 10606
goto @RYDER2_6836

:RYDER2_6778
set_var_text_label s$audio_string = 'RYD2_BB'
set_var_int_to_constant $audio_sound_file = 10607
goto @RYDER2_6836

:RYDER2_6807
set_var_text_label s$audio_string = 'RYD2_BC'
set_var_int_to_constant $audio_sound_file = 10608
goto @RYDER2_6836

:RYDER2_6836
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1

:RYDER2_6862
goto @RYDER2_6952

:RYDER2_6869
if 
  does_blip_exist 119@
goto_if_false @RYDER2_6952
remove_blip 119@
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_6952
remove_blip 120@
120@ = add_blip_for_coord 2699.293 {y} -2395.0129 {z} 12.6172
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6952
clear_look_at $ryder

:RYDER2_6952
return 

:RYDER2_6954
if 
  35@ == 0
goto_if_false @RYDER2_6995
clear_prints 
set_player_control $player1 {state} False
49@ = -1
35@ += 1

:RYDER2_6995
if 
  35@ == 1
goto_if_false @RYDER2_7052
if 
  not is_car_dead 95@
goto_if_false @RYDER2_7052
if 
  is_car_stopped 95@
goto_if_false @RYDER2_7052
35@ += 1

:RYDER2_7052
if 
  35@ == 2
goto_if_false @RYDER2_8785
do_fade 500 {direction} Fade.Out

:RYDER2_7077
if 
  get_fading_status 
goto_if_false @RYDER2_7101
wait 0
goto @RYDER2_7077

:RYDER2_7101
if 
  not is_car_dead 95@
goto_if_false @RYDER2_7147
set_car_coordinates 95@ {x} 2699.623 {y} -2394.7871 {z} 12.6172
set_car_heading 95@ {heading} 267.9095

:RYDER2_7147
clear_area 2720.6111 {y} -2405.3799 {z} 12.4609 {radius} 30.0 {clearParticles} True
clear_area 2768.74 {y} -2413.7881 {z} 12.6172 {radius} 30.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 2688.5701 {y} -2394.186 {z} 17.6992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2689.4551 {y} -2394.5991 {z} 17.4888 {switchStyle} SwitchType.JumpCut
request_model #CJ_CARDBRD_PICKUP
request_model 287
request_model 346
request_model 530
load_all_models_now 

:RYDER2_7272
if or
  not has_model_loaded #CJ_CARDBRD_PICKUP
  not has_model_loaded 287
  not has_model_loaded 346
  not has_model_loaded 530
goto_if_false @RYDER2_7314
wait 0
goto @RYDER2_7272

:RYDER2_7314
66@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2796.875 {y} -2417.1421 {z} 13.23
67@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2798.009 {y} -2417.1069 {z} 13.23
68@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2796.8999 {y} -2418.3101 {z} 13.23
69@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2798.0129 {y} -2418.325 {z} 13.23
73@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2799.886 {y} -2381.2029 {z} 13.23
74@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2799.958 {y} -2379.72 {z} 13.23
75@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2763.531 {y} -2401.9351 {z} 13.23
76@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.75 {y} -2449.835 {z} 13.23
77@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.915 {y} -2448.575 {z} 13.23
78@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.906 {y} -2446.8269 {z} 13.23
79@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2788.9319 {y} -2431.271 {z} 13.23
80@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2790.3979 {y} -2431.3359 {z} 13.23
81@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2778.698 {y} -2442.4331 {z} 13.23
82@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2763.5649 {y} -2400.6411 {z} 13.23
83@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2780.8511 {y} -2392.7371 {z} 13.23
84@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2795.094 {y} -2469.49 {z} 13.23
85@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2803.0669 {y} -2428.3799 {z} 13.23
set_object_heading 66@ {heading} 91.9411
set_object_heading 67@ {heading} 0.032
set_object_heading 68@ {heading} 89.8612
set_object_heading 69@ {heading} 1.6342
set_object_heading 73@ {heading} 6.8174
set_object_heading 74@ {heading} 19.1807
set_object_heading 75@ {heading} 339.113
set_object_heading 76@ {heading} 352.3154
set_object_heading 77@ {heading} 2.8386
set_object_heading 78@ {heading} 3.2099
set_object_heading 79@ {heading} 266.6248
set_object_heading 80@ {heading} 4.6663
set_object_heading 81@ {heading} 175.8277
set_object_heading 82@ {heading} 344.0064
set_object_heading 83@ {heading} 355.9493
set_object_heading 84@ {heading} 1.9283
set_object_heading 85@ {heading} 358.0803
42@ = 0

:RYDER2_7882
if 
  25 > 42@
goto_if_false @RYDER2_7998
wait 0
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_7984
set_object_dynamic 62@(42@,25i) {state} True
43@ = generate_random_int_in_range 1 {max} 8
set_object_mass 62@(42@,25i) {mass} 1000.0
set_object_turn_mass 62@(42@,25i) {turnMass} 1000.0
set_lvar_int_to_lvar_int 147@(42@,25i) = 43@

:RYDER2_7984
42@ += 1
goto @RYDER2_7882

:RYDER2_7998
102@ = create_char PedType.Mission1 {modelId} 287 {x} 2773.7219 {y} -2423.3879 {z} 12.6311
set_char_heading 102@ {heading} 68.8849
204@, 205@, 206@ = get_offset_from_char_in_world_coords 102@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
103@ = create_char PedType.Mission1 {modelId} 287 {x} 2721.9441 {y} -2411.5649 {z} 12.6198
set_char_heading 103@ {heading} 0.0
104@ = create_char PedType.Mission1 {modelId} 287 {x} 2789.5239 {y} -2416.3721 {z} 12.6333
set_char_heading 104@ {heading} 202.4407
105@ = create_char PedType.Mission1 {modelId} 287 {x} 2790.231 {y} -2418.8369 {z} 12.6331
set_char_heading 105@ {heading} 23.3411
106@ = create_char PedType.Mission1 {modelId} 287 {x} 2774.9109 {y} -2404.303 {z} 12.6311
set_char_heading 106@ {heading} 77.8711
239@ = create_group DefaultTaskAllocator.StandStill
42@ = 0

:RYDER2_8216
if 
  5 > 42@
goto_if_false @RYDER2_8408
give_weapon_to_char 102@(42@,9i) {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 102@(42@,9i) {accuracy} 35
set_char_health 102@(42@,9i) {health} 100
task_toggle_ped_threat_scanner 102@(42@,9i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 102@(42@,9i) {handleOrTemplate} 236@
set_sense_range 102@(42@,9i) {range} 100.0
if 
  42@ == 0
goto_if_false @RYDER2_8346
set_group_leader 239@ {handle} 102@
goto @RYDER2_8383

:RYDER2_8346
if and
  42@ <> 2
  42@ <> 3
goto_if_false @RYDER2_8383
set_group_member 239@ {handle} 102@(42@,9i)

:RYDER2_8383
set_char_never_leaves_group 102@(42@,9i) {state} True
42@ += 1
goto @RYDER2_8216

:RYDER2_8408
if 
  not is_char_dead 104@
goto_if_false @RYDER2_8432
set_char_decision_maker 104@ {handleOrTemplate} 237@

:RYDER2_8432
if 
  not is_char_dead 105@
goto_if_false @RYDER2_8456
set_char_decision_maker 105@ {handleOrTemplate} 237@

:RYDER2_8456
99@ = create_car 530 {x} 2791.426 {y} -2418.5769 {z} 12.66
set_car_heading 99@ {heading} 90.0
mark_model_as_no_longer_needed 530
set_car_proofs 99@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_coordinates 99@ {x} 2758.241 {y} -2372.314 {z} 12.6172
set_car_heading 99@ {heading} 180.3774
set_can_burst_car_tyres 99@ {state} False
set_car_health 99@ {health} 3000
112@ = create_char_inside_car 99@ {pedType} PedType.Mission1 {modelId} 287
request_model 500

:RYDER2_8572
if 
  not has_model_loaded 500
goto_if_false @RYDER2_8599
wait 0
goto @RYDER2_8572

:RYDER2_8599
98@ = create_car 500 {x} 2688.9629 {y} -2407.676 {z} 12.4609
set_car_heading 98@ {heading} 270.0
111@ = create_char_inside_car 98@ {pedType} PedType.Mission1 {modelId} 287
car_goto_coordinates_accurate 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684
mark_model_as_no_longer_needed 500
change_car_colour 98@ {color1} 37 {color2} 37
if 
  not is_char_dead 106@
goto_if_false @RYDER2_8740
flush_route 
extend_route 2776.531 {y} -2401.042 {z} 12.625
extend_route 2798.9331 {y} -2400.343 {z} 12.631
task_follow_point_route 106@ {speed} MoveState.Walk {mode} RouteMode.Loop

:RYDER2_8740
do_fade 500 {direction} Fade.In

:RYDER2_8747
if 
  get_fading_status 
goto_if_false @RYDER2_8771
wait 0
goto @RYDER2_8747

:RYDER2_8771
TIMERA = 0
35@ += 1

:RYDER2_8785
if 
  35@ == 3
goto_if_false @RYDER2_9055
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_9055
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9055
if 
  locate_car_3d 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_9055
set_fixed_camera_position 2700.626 {y} -2392.21 {z} 14.9203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2701.092 {y} -2393.0879 {z} 14.8109 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 99@
goto_if_false @RYDER2_8980
car_goto_coordinates_accurate 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172
set_car_straight_line_distance 99@ {distance} 200

:RYDER2_8980
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_9034
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9034
task_look_at_vehicle $ryder {vehicle} 98@ {time} 5000
task_look_at_vehicle $scplayer {vehicle} 98@ {time} 6000

:RYDER2_9034
TIMERA = 0
49@ += 1
35@ += 1

:RYDER2_9055
if 
  35@ == 4
goto_if_false @RYDER2_9175
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9175
if 
  locate_stopped_car_3d 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_9175
35@ += 1
if 
  does_object_exist 240@
goto_if_false @RYDER2_9168
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStart

:RYDER2_9168
TIMERA = 0

:RYDER2_9175
if 
  35@ == 5
goto_if_false @RYDER2_9266
if 
  does_object_exist 240@
goto_if_false @RYDER2_9266
if 
  slide_object 240@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.2 {speedZ} 0.0 {collisionCheck} False
goto_if_false @RYDER2_9266
35@ += 1
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStop

:RYDER2_9266
if 
  35@ == 6
goto_if_false @RYDER2_9440
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9440
set_fixed_camera_position 2723.094 {y} -2413.2451 {z} 14.2659 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2722.5481 {y} -2412.4141 {z} 14.1704 {switchStyle} SwitchType.JumpCut
car_goto_coordinates 98@ {x} 2758.4919 {y} -2454.51 {z} 12.4766
if 
  not is_char_dead 102@
goto_if_false @RYDER2_9397
set_char_heading 102@ {heading} 275.0

:RYDER2_9397
if 
  not is_char_dead 103@
goto_if_false @RYDER2_9426
task_look_at_vehicle 103@ {vehicle} 98@ {time} 999999

:RYDER2_9426
35@ += 1
TIMERA = 0

:RYDER2_9440
if 
  35@ == 7
goto_if_false @RYDER2_9549
if 
  TIMERA > 2500
goto_if_false @RYDER2_9549
set_fixed_camera_position 2770.979 {y} -2426.9331 {z} 13.3413 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2771.1851 {y} -2425.9771 {z} 13.5536 {switchStyle} SwitchType.JumpCut
TIMERA = 0
201@ = 0
35@ += 1

:RYDER2_9549
if 
  35@ == 8
goto_if_false @RYDER2_9831
if 
  not is_car_dead 99@
goto_if_false @RYDER2_9766
if 
  locate_stopped_car_3d 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_9766
if 
  not is_char_dead 102@
goto_if_false @RYDER2_9766
48@ = open_sequence_task 
task_turn_char_to_face_coord -1 {x} 2774.2671 {y} -2423.22 {z} 14.3429
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
task_go_straight_to_coord -1 {x} 2773.7219 {y} -2423.3879 {z} 12.6311 {speed} MoveState.Walk {time} 5000
task_achieve_heading -1 {heading} 90.0
close_sequence_task 48@
perform_sequence_task 102@ {sequence} 48@
clear_sequence_task 48@
TIMERA = 0
35@ += 1

:RYDER2_9766
if 
  TIMERA > 10000
goto_if_false @RYDER2_9831
if 
  not is_car_dead 99@
goto_if_false @RYDER2_9831
set_car_coordinates 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172
set_car_heading 99@ {heading} 225.6142

:RYDER2_9831
if 
  35@ == 9
goto_if_false @RYDER2_10061
if 
  not is_char_dead 102@
goto_if_false @RYDER2_10061
if 
  is_char_playing_anim 102@ {animationName} "ATM"
goto_if_false @RYDER2_9986
if 
  201@ == 0
goto_if_false @RYDER2_9918
TIMERB = 0
201@ += 1

:RYDER2_9918
if 
  201@ == 1
goto_if_false @RYDER2_9986
if 
  TIMERB > 500
goto_if_false @RYDER2_9986
if 
  does_object_exist 61@
goto_if_false @RYDER2_9986
report_mission_audio_event_at_object 61@ {soundId} ScriptSound.SoundKeypadBeep
201@ += 1

:RYDER2_9986
42@ = get_script_task_status 102@ {taskId} 1560
if or
  is_int_lvar_equal_to_constant 42@ == 7
  TIMERA > 4000
goto_if_false @RYDER2_10061
TIMERA = 0
if 
  does_object_exist 241@
goto_if_false @RYDER2_10054
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_10054
35@ += 1

:RYDER2_10061
if 
  35@ == 10
goto_if_false @RYDER2_10195
if 
  does_object_exist 241@
goto_if_false @RYDER2_10195
if 
  slide_object 241@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
goto_if_false @RYDER2_10195
if 
  not is_car_dead 99@
goto_if_false @RYDER2_10195
car_goto_coordinates 99@ {x} 2785.354 {y} -2416.7439 {z} 12.6187
TIMERA = 0
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
35@ += 1

:RYDER2_10195
if 
  35@ == 11
goto_if_false @RYDER2_10263
if 
  TIMERA > 4000
goto_if_false @RYDER2_10263
if 
  does_object_exist 241@
goto_if_false @RYDER2_10256
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_10256
35@ += 1

:RYDER2_10263
if 
  35@ == 12
goto_if_false @RYDER2_10354
if 
  does_object_exist 241@
goto_if_false @RYDER2_10354
if 
  slide_object 241@ {posX} 245@ {posY} 246@ {posZ} 247@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
goto_if_false @RYDER2_10354
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
35@ += 1

:RYDER2_10354
if 
  35@ == 13
goto_if_false @RYDER2_10405
if and
  TIMERA > 2000
  $audio_line_is_active == 0
goto_if_false @RYDER2_10405
35@ = 99

:RYDER2_10405
if 
  TIMERB > 1000
goto_if_false @RYDER2_11039
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_11039
switch_start 49@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_11039 {caseNum1} 0 {caseLabel1} @RYDER2_10570 {caseNum2} 1 {caseLabel2} @RYDER2_10643 {caseNum3} 2 {caseLabel3} @RYDER2_10664 {caseNum4} 3 {caseLabel4} @RYDER2_10737 {caseNum5} 4 {caseLabel5} @RYDER2_10810 {caseNum6} 5 {caseLabel6} @RYDER2_10883 {caseNum7} 6 {caseLabel7} @RYDER2_10956
switch_continued 7 {caseLabel1} @RYDER2_10977 {caseNum2} -1 {caseLabel2} @RYDER2_11039 {caseNum3} -1 {caseLabel3} @RYDER2_11039 {caseNum4} -1 {caseLabel4} @RYDER2_11039 {caseNum5} -1 {caseLabel5} @RYDER2_11039 {caseNum6} -1 {caseLabel6} @RYDER2_11039 {caseNum7} -1 {caseLabel7} @RYDER2_11039 {caseNum8} -1 {caseLabel8} @RYDER2_11039 {caseNum9} -1 {caseLabel9} @RYDER2_11039

:RYDER2_10570
set_var_text_label s$audio_string = 'RYD2_DA'
set_var_int_to_constant $audio_sound_file = 10613
start_new_script @AUDIOL $ryder 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10614
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10643
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10664
set_var_text_label s$audio_string = 'RYD2_DB'
set_var_int_to_constant $audio_sound_file = 10614
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10683
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10737
set_var_text_label s$audio_string = 'RYD2_DC'
set_var_int_to_constant $audio_sound_file = 10683
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10615
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10810
set_var_text_label s$audio_string = 'RYD2_DD'
set_var_int_to_constant $audio_sound_file = 10615
start_new_script @AUDIOL $ryder 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10616
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10883
set_var_text_label s$audio_string = 'RYD2_DE'
set_var_int_to_constant $audio_sound_file = 10616
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10617
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10956
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10977
set_var_text_label s$audio_string = 'RYD2_DF'
set_var_int_to_constant $audio_sound_file = 10617
start_new_script @AUDIOL $ryder 0 1 2 1 
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_11039
if 
  35@ > 2
goto_if_false @RYDER2_11081
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER2_11081
35@ = 99

:RYDER2_11081
if 
  35@ == 99
goto_if_false @RYDER2_11608
do_fade 250 {direction} Fade.Out

:RYDER2_11106
if 
  get_fading_status 
goto_if_false @RYDER2_11130
wait 0
goto @RYDER2_11106

:RYDER2_11130
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11220
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2700.7581 {y} -2392.45 {z} 12.6172
set_char_heading $scplayer {heading} 236.0759
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_11220
clear_char_tasks_immediately $ryder
warp_char_into_car $ryder {vehicle} 95@

:RYDER2_11220
if 
  not is_car_dead 99@
goto_if_false @RYDER2_11266
set_car_coordinates 99@ {x} 2791.426 {y} -2418.3101 {z} 13.66
set_car_heading 99@ {heading} 270.0

:RYDER2_11266
if 
  not is_char_dead 112@
goto_if_false @RYDER2_11287
delete_char 112@

:RYDER2_11287
if 
  not is_car_dead 98@
goto_if_false @RYDER2_11333
set_car_coordinates 98@ {x} 2748.0549 {y} -2394.427 {z} 12.6419
set_car_heading 98@ {heading} 174.3167

:RYDER2_11333
if 
  not is_char_dead 111@
goto_if_false @RYDER2_11354
delete_char 111@

:RYDER2_11354
set_object_coordinates 240@ {x} 242@ {y} 243@ {z} 244@
set_object_coordinates 241@ {x} 245@ {y} 246@ {z} 247@
42@ = 0

:RYDER2_11389
if 
  25 > 42@
goto_if_false @RYDER2_11498
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_11484
freeze_object_position 62@(42@,25i) {state} False
set_object_velocity 62@(42@,25i) {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} 0.0
set_object_dynamic 62@(42@,25i) {state} False
set_object_collision 62@(42@,25i) {state} True

:RYDER2_11484
42@ += 1
goto @RYDER2_11389

:RYDER2_11498
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11523
pop_car_door 95@ {door} CarDoor.Trunk {visibility} False

:RYDER2_11523
if 
  not is_char_dead 103@
goto_if_false @RYDER2_11544
clear_look_at 103@

:RYDER2_11544
switch_emergency_services False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 250 {direction} Fade.In

:RYDER2_11563
if 
  get_fading_status 
goto_if_false @RYDER2_11587
wait 0
goto @RYDER2_11563

:RYDER2_11587
set_player_control $player1 {state} True
35@ = 0
34@ += 1

:RYDER2_11608
return 

:RYDER2_11610
if 
  35@ == 0
goto_if_false @RYDER2_11830
if 
  does_object_exist 60@
goto_if_false @RYDER2_11665
set_object_collision 60@ {state} True
make_object_targettable 60@ {state} False
freeze_object_position 60@ {state} True

:RYDER2_11665
if 
  does_object_exist 61@
goto_if_false @RYDER2_11702
set_object_collision 61@ {state} True
make_object_targettable 61@ {state} False
freeze_object_position 61@ {state} True

:RYDER2_11702
print 'RY2_59' {time} 7000 {flag} 1
remove_blip 122@
122@ = add_blip_for_coord 2722.075 {y} -2411.271 {z} 12.6198
change_blip_colour 122@ {color} BlipColor.Red
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11780
freeze_car_position 95@ {state} True
lock_car_doors 95@ {lockStatus} CarLock.LockoutPlayerOnly

:RYDER2_11780
191@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_11816
task_look_at_char $ryder {target} $scplayer {time} 99999

:RYDER2_11816
142@ = 0
35@ += 1

:RYDER2_11830
if 
  35@ == 1
goto_if_false @RYDER2_12420
if 
  133@ == 2
goto_if_false @RYDER2_12023
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12016
remove_blip 122@
request_car_recording 523

:RYDER2_11892
if 
  not has_car_recording_been_loaded 523
goto_if_false @RYDER2_11919
wait 0
goto @RYDER2_11892

:RYDER2_11919
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11943
start_playback_recorded_car 95@ {path} 523

:RYDER2_11943
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_11964
clear_look_at $ryder

:RYDER2_11964
set_var_text_label s$audio_string = 'RYD2_GA'
set_var_int_to_constant $audio_sound_file = 10621
start_new_script @AUDIOL $ryder 0 1 1 0 
wait 100
35@ = 99

:RYDER2_12016
goto @RYDER2_12420

:RYDER2_12023
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12281
if 
  locate_char_on_foot_car_3d $scplayer {vehicle} 95@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @RYDER2_12281
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @RYDER2_12281
if 
  190@ == 0
goto_if_false @RYDER2_12190
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12176
set_var_text_label s$audio_string = 'RYD2_EA'
set_var_int_to_constant $audio_sound_file = 10618
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12176
190@ += 1
goto @RYDER2_12281

:RYDER2_12190
if 
  190@ == 1
goto_if_false @RYDER2_12281
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12274
set_var_text_label s$audio_string = 'RYD2_EB'
set_var_int_to_constant $audio_sound_file = 10619
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12274
190@ = 0

:RYDER2_12281
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_12420
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_12420
if 
  142@ > 40000
goto_if_false @RYDER2_12420
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12420
set_var_text_label s$audio_string = 'RYD2_FA'
set_var_int_to_constant $audio_sound_file = 10620
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12420
if 
  35@ <> 99
goto_if_false @RYDER2_12689
if 
  38@ == 9
goto_if_false @RYDER2_12689
if and
  132@ <> 0
  133@ == 0
goto_if_false @RYDER2_12576
if 
  locate_char_any_means_3d $scplayer {x} 2785.8899 {y} -2417.98 {z} 14.36 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_12569
if 
  51@ > 30000
goto_if_false @RYDER2_12569
336@ = 3
gosub @RYDER2_39696
51@ = 0

:RYDER2_12569
goto @RYDER2_12689

:RYDER2_12576
if and
  133@ == 0
  132@ == 0
goto_if_false @RYDER2_12689
if 
  locate_char_any_means_3d $scplayer {x} 2785.8899 {y} -2417.98 {z} 14.36 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_12689
if 
  51@ > 30000
goto_if_false @RYDER2_12689
336@ = 3
gosub @RYDER2_39696
51@ = 0

:RYDER2_12689
if 
  35@ == 99
goto_if_false @RYDER2_12735
34@ += 1
35@ = 0
191@ = 0
336@ = 0

:RYDER2_12735
return 

:RYDER2_12737
if 
  35@ == 0
goto_if_false @RYDER2_12884
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_12884
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12884
if 
  132@ == 0
goto_if_false @RYDER2_12877
123@ = add_blip_for_coord 2773.1011 {y} -2423.418 {z} 12.6269
change_blip_colour 123@ {color} BlipColor.Red
print 'RY2_60' {time} 7000 {flag} 1
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_12884

:RYDER2_12877
35@ += 1

:RYDER2_12884
if 
  35@ == 1
goto_if_false @RYDER2_12970
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12970
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_12970
freeze_car_position 95@ {state} True
49@ = 0
54@ = 20000
35@ += 1
TIMERA = 0

:RYDER2_12970
if 
  35@ == 2
goto_if_false @RYDER2_13449
if 
  132@ <> 0
goto_if_false @RYDER2_13111
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13104
remove_blip 123@
request_car_recording 524

:RYDER2_13032
if 
  not has_car_recording_been_loaded 524
goto_if_false @RYDER2_13059
wait 0
goto @RYDER2_13032

:RYDER2_13059
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13083
start_playback_recorded_car 95@ {path} 524

:RYDER2_13083
TIMERA = 0
49@ = 0
35@ += 1

:RYDER2_13104
goto @RYDER2_13449

:RYDER2_13111
if 
  54@ > 20000
goto_if_false @RYDER2_13449
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_13449
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_13449
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13449
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_13449 {caseNum1} 0 {caseLabel1} @RYDER2_13263 {caseNum2} 1 {caseLabel2} @RYDER2_13325 {caseNum3} 2 {caseLabel3} @RYDER2_13387 {caseNum4} -1 {caseLabel4} @RYDER2_13449 {caseNum5} -1 {caseLabel5} @RYDER2_13449 {caseNum6} -1 {caseLabel6} @RYDER2_13449 {caseNum7} -1 {caseLabel7} @RYDER2_13449

:RYDER2_13263
set_var_text_label s$audio_string = 'RYD2_GB'
set_var_int_to_constant $audio_sound_file = 10622
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13449

:RYDER2_13325
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 10629
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13449

:RYDER2_13387
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0
54@ = 0
goto @RYDER2_13449

:RYDER2_13449
if 
  35@ == 3
goto_if_false @RYDER2_13622
49@ = 0
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13622
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_13574
set_var_text_label s$audio_string = 'RYD2_HA'
set_var_int_to_constant $audio_sound_file = 10684
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1
goto @RYDER2_13622

:RYDER2_13574
set_var_text_label s$audio_string = 'RYD2_HB'
set_var_int_to_constant $audio_sound_file = 10685
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1

:RYDER2_13622
if 
  35@ == 4
goto_if_false @RYDER2_13710
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13710
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_13686
35@ = 99
goto @RYDER2_13710

:RYDER2_13686
if 
  TIMERA > 10600
goto_if_false @RYDER2_13710
stop_playback_recorded_car 95@

:RYDER2_13710
if 
  35@ == 99
goto_if_false @RYDER2_13772
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13758
freeze_car_position 95@ {state} True
set_vehicle_is_considered_by_player 95@ {state} False

:RYDER2_13758
35@ = 0
34@ += 1

:RYDER2_13772
if 
  191@ == 0
goto_if_false @RYDER2_13894
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_13894
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13894
if 
  not is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_13894
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_13869
pause_playback_recorded_car 95@
freeze_car_position 95@ {state} True

:RYDER2_13869
task_enter_car_as_driver $ryder {vehicle} 95@ {time} 10000
TIMERA = 0
191@ += 1

:RYDER2_13894
if 
  191@ == 1
goto_if_false @RYDER2_14024
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_13998
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13998
if 
  is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_13998
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_13991
unpause_playback_recorded_car 95@
freeze_car_position 95@ {state} False

:RYDER2_13991
191@ = 0

:RYDER2_13998
if 
  TIMERA > 10000
goto_if_false @RYDER2_14024
191@ = 0

:RYDER2_14024
return 

:RYDER2_14026
if 
  58@ == 1
goto_if_false @RYDER2_14069
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @RYDER2_14069
set_lvar_int_to_lvar_int 127@ = 200@

:RYDER2_14069
if 
  35@ == 0
goto_if_false @RYDER2_14491
request_animation "RYDER"

:RYDER2_14096
if 
  not has_animation_loaded "RYDER"
goto_if_false @RYDER2_14127
wait 0
goto @RYDER2_14096

:RYDER2_14127
266@ = 0
set_var_int_to_lvar_int $ryder_health = 200@
display_nth_onscreen_counter_with_string $ryder_health {display} CounterDisplay.Number {slot} 2 {text} 'RY2_21'
display_nth_onscreen_counter_with_string $6890 {display} CounterDisplay.Bar {slot} 1 {text} 'RY2_19'
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14300
if 
  is_car_model 95@ {modelId} 414
goto_if_false @RYDER2_14271
260@, 261@, 262@ = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -5.5 {zOffset} 0.6
263@, 264@, 265@ = get_offset_from_car_in_world_coords 95@ {xOffset} 3.0 {yOffset} 5.5 {zOffset} 0.6

:RYDER2_14271
set_car_heavy 95@ {state} True
set_car_strong 95@ {state} True
set_car_health 95@ {health} 2500
lock_car_doors 95@ {lockStatus} CarLock.LockoutPlayerOnly

:RYDER2_14300
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14373
clear_char_decision_maker_event_response 235@ {event} Event.PotentialGetRunOver
set_char_relationship $ryder {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
if 
  does_blip_exist 119@
goto_if_false @RYDER2_14373
remove_blip 119@

:RYDER2_14373
if 
  not is_car_dead 99@
goto_if_false @RYDER2_14444
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_14444
print 'RY2_55' {time} 5000 {flag} 1
remove_blip 119@
119@ = add_blip_for_car 99@
set_blip_as_friendly 119@ {state} True

:RYDER2_14444
197@ = 1
267@ = 0
54@ = -4000
49@ = 0
TIMERA = 0
wait 0
35@ += 1

:RYDER2_14491
if 
  267@ == 0
goto_if_false @RYDER2_14571
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14571
if 
  is_char_on_foot $ryder
goto_if_false @RYDER2_14571
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14571
freeze_car_position 95@ {state} True
267@ = 1

:RYDER2_14571
if 
  266@ == 0
goto_if_false @RYDER2_14673
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_14666
set_var_text_label s$audio_string = 'RYD2_KB'
set_var_int_to_constant $audio_sound_file = 10627
start_new_script @AUDIOL $ryder 0 1 1 0 
266@ = 1
TIMERA = 0

:RYDER2_14666
goto @RYDER2_14735

:RYDER2_14673
if 
  266@ == 1
goto_if_false @RYDER2_14735
if 
  TIMERA > 1000
goto_if_false @RYDER2_14735
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_14735
266@ = 2

:RYDER2_14735
if 
  35@ == 1
goto_if_false @RYDER2_14897
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_14897
if 
  not is_car_dead 99@
goto_if_false @RYDER2_14897
if and
  is_char_in_car $scplayer {vehicle} 99@
  266@ == 2
goto_if_false @RYDER2_14860
if 
  1 > 268@
goto_if_false @RYDER2_14835
268@ = 1

:RYDER2_14835
35@ += 1
TIMERA = 0
wait 0
goto @RYDER2_14897

:RYDER2_14860
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_14897
clear_this_print 'RY2_55'
268@ = 1

:RYDER2_14897
if and
  268@ > 0
  5 > 268@
goto_if_false @RYDER2_15105
if 
  not is_car_dead 99@
goto_if_false @RYDER2_15105
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_15103
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_15096
switch_start 268@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15089 {caseNum1} 1 {caseLabel1} @RYDER2_15035 {caseNum2} 2 {caseLabel2} @RYDER2_15053 {caseNum3} 3 {caseLabel3} @RYDER2_15071 {caseNum4} -1 {caseLabel4} @RYDER2_15089 {caseNum5} -1 {caseLabel5} @RYDER2_15089 {caseNum6} -1 {caseLabel6} @RYDER2_15089 {caseNum7} -1 {caseLabel7} @RYDER2_15089

:RYDER2_15035
print_help 'RY2_69'
goto @RYDER2_15089

:RYDER2_15053
print_help 'RY2_68'
goto @RYDER2_15089

:RYDER2_15071
print_help 'RY2_71'
goto @RYDER2_15089

:RYDER2_15089
268@ += 1

:RYDER2_15096
goto @RYDER2_15105

:RYDER2_15103
clear_help 

:RYDER2_15105
if 
  35@ == 2
goto_if_false @RYDER2_15130
35@ += 3

:RYDER2_15130
if 
  35@ == 5
goto_if_false @RYDER2_15346
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @RYDER2_15346
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15346
if 
  54@ > 1000
goto_if_false @RYDER2_15346
switch_start 49@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15346 {caseNum1} 0 {caseLabel1} @RYDER2_15263 {caseNum2} 1 {caseLabel2} @RYDER2_15325 {caseNum3} -1 {caseLabel3} @RYDER2_15346 {caseNum4} -1 {caseLabel4} @RYDER2_15346 {caseNum5} -1 {caseLabel5} @RYDER2_15346 {caseNum6} -1 {caseLabel6} @RYDER2_15346 {caseNum7} -1 {caseLabel7} @RYDER2_15346

:RYDER2_15263
set_var_text_label s$audio_string = 'RYD2_KA'
set_var_int_to_constant $audio_sound_file = 10626
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_15346

:RYDER2_15325
49@ = 0
35@ += 1
goto @RYDER2_15346

:RYDER2_15346
if 
  35@ == 6
goto_if_false @RYDER2_15437
if 
  54@ > 1000
goto_if_false @RYDER2_15437
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15437
51@ = 0
TIMERB = 30000
142@ = 0
TIMERA = 0
35@ += 1

:RYDER2_15437
if and
  35@ > 5
  51@ > 30000
goto_if_false @RYDER2_15477
336@ = 1
51@ = 0

:RYDER2_15477
if 
  35@ == 8
goto_if_false @RYDER2_15894
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_15894
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @RYDER2_15894
192@ = 1
if 
  142@ > 30000
goto_if_false @RYDER2_15894
switch_start 143@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15855 {caseNum1} 0 {caseLabel1} @RYDER2_15615 {caseNum2} 1 {caseLabel2} @RYDER2_15663 {caseNum3} 2 {caseLabel3} @RYDER2_15711 {caseNum4} 3 {caseLabel4} @RYDER2_15759 {caseNum5} 4 {caseLabel5} @RYDER2_15807 {caseNum6} -1 {caseLabel6} @RYDER2_15855 {caseNum7} -1 {caseLabel7} @RYDER2_15855

:RYDER2_15615
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 10629
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15663
set_var_text_label s$audio_string = 'RYD2_LB'
set_var_int_to_constant $audio_sound_file = 10630
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15711
set_var_text_label s$audio_string = 'RYD2_LC'
set_var_int_to_constant $audio_sound_file = 10631
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15759
set_var_text_label s$audio_string = 'RYD2_LD'
set_var_int_to_constant $audio_sound_file = 10632
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15807
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15855
143@ += 1
if 
  143@ > 4
goto_if_false @RYDER2_15887
143@ = 0

:RYDER2_15887
142@ = 0

:RYDER2_15894
if 
  does_blip_exist 119@
goto_if_false @RYDER2_15968
if 
  not is_car_dead 99@
goto_if_false @RYDER2_15961
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_15961
clear_this_print 'RY2_55'
remove_blip 119@

:RYDER2_15961
goto @RYDER2_16137

:RYDER2_15968
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16137
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16067
remove_blip 119@
119@ = add_blip_for_car 99@
set_blip_as_friendly 119@ {state} True
if 
  does_blip_exist 120@
goto_if_false @RYDER2_16044
remove_blip 120@

:RYDER2_16044
print 'RY2_55' {time} 5000 {flag} 1
goto @RYDER2_16137

:RYDER2_16067
if 
  35@ >= 1
goto_if_false @RYDER2_16137
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_16137
remove_blip 120@
if 
  not is_car_dead 95@
goto_if_false @RYDER2_16137
120@ = add_blip_for_car 95@
set_blip_as_friendly 120@ {state} True

:RYDER2_16137
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17099
if 
  134@ == 0
goto_if_false @RYDER2_16409
42@ = get_script_task_status $ryder {taskId} 1560
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_16409

:RYDER2_16200
if 
  not has_animation_loaded "COLT45"
goto_if_false @RYDER2_16242
request_animation "COLT45"
wait 0
goto @RYDER2_16200

:RYDER2_16242
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 263@ {y} 264@ {z} 265@ {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 90.0
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COLT45_RELOAD" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_16409
42@ = 0

:RYDER2_16416
if 
  25 > 42@
goto_if_false @RYDER2_16695
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_16681
if 
  not is_car_dead 95@
goto_if_false @RYDER2_16681
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -2.61 {zOffset} 1.04
if 
  locate_object_3d 62@(42@,25i) {x} $x {y} $y {z} $z {xRadius} 0.71 {yRadius} 1.0 {zRadius} 1.12 {drawSphere} False
goto_if_false @RYDER2_16681
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16681
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16681
if 
  not is_char_on_foot $scplayer
goto_if_false @RYDER2_16681
if 
  is_char_sitting_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16681
if 
  270@ == 0
goto_if_false @RYDER2_16640
270@ = 1

:RYDER2_16640
if 
  56@ > 500
goto_if_false @RYDER2_16681
set_lvar_int_to_lvar_int 272@ = 42@
271@ += 1
56@ = 0

:RYDER2_16681
42@ += 1
goto @RYDER2_16416

:RYDER2_16695
if 
  270@ == 0
goto_if_false @RYDER2_16720
56@ = 0

:RYDER2_16720
if 
  271@ <> 0
goto_if_false @RYDER2_17099
switch_start 271@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17099 {caseNum1} 1 {caseLabel1} @RYDER2_16801 {caseNum2} 2 {caseLabel2} @RYDER2_16924 {caseNum3} 3 {caseLabel3} @RYDER2_16964 {caseNum4} 4 {caseLabel4} @RYDER2_17049 {caseNum5} -1 {caseLabel5} @RYDER2_17099 {caseNum6} -1 {caseLabel6} @RYDER2_17099 {caseNum7} -1 {caseLabel7} @RYDER2_17099

:RYDER2_16801
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16830
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 99@

:RYDER2_16830
switch_widescreen True
clear_help 
set_player_control $player1 {state} False
set_fixed_camera_position 2767.481 {y} -2410.593 {z} 14.7201 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2768.1331 {y} -2411.3459 {z} 14.6336 {switchStyle} SwitchType.JumpCut
delete_object 62@(272@,25i)
127@ += 1
271@ += 1
goto @RYDER2_17099

:RYDER2_16924
if 
  56@ > 1000
goto_if_false @RYDER2_16957
56@ = 0
271@ += 1

:RYDER2_16957
goto @RYDER2_17099

:RYDER2_16964
if 
  56@ > 1000
goto_if_false @RYDER2_16997
271@ += 1
goto @RYDER2_17042

:RYDER2_16997
if 
  500 > 56@
goto_if_false @RYDER2_17042
if 
  not is_car_dead 99@
goto_if_false @RYDER2_17042
set_car_forward_speed 99@ {forwardSpeed} -5.0

:RYDER2_17042
goto @RYDER2_17099

:RYDER2_17049
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
270@ = 0
271@ = 0
56@ = 0
269@ = 1
goto @RYDER2_17099

:RYDER2_17099
if 
  38@ == 7
goto_if_false @RYDER2_17460
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17460
if and
  has_char_been_damaged_by_weapon $ryder {weaponType} WeaponType.Pistol
  57@ > 40000
goto_if_false @RYDER2_17460
273@ += 1
if 
  273@ > 4
goto_if_false @RYDER2_17193
273@ = 1

:RYDER2_17193
switch_start 273@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17448 {caseNum1} 1 {caseLabel1} @RYDER2_17256 {caseNum2} 2 {caseLabel2} @RYDER2_17304 {caseNum3} 3 {caseLabel3} @RYDER2_17352 {caseNum4} 4 {caseLabel4} @RYDER2_17400 {caseNum5} -1 {caseLabel5} @RYDER2_17448 {caseNum6} -1 {caseLabel6} @RYDER2_17448 {caseNum7} -1 {caseLabel7} @RYDER2_17448

:RYDER2_17256
set_var_text_label s$audio_string = 'RYD2_MA'
set_var_int_to_constant $audio_sound_file = 10638
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17304
set_var_text_label s$audio_string = 'RYD2_MC'
set_var_int_to_constant $audio_sound_file = 10640
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17352
set_var_text_label s$audio_string = 'RYD2_MD'
set_var_int_to_constant $audio_sound_file = 10641
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17400
set_var_text_label s$audio_string = 'RYD2_ME'
set_var_int_to_constant $audio_sound_file = 10642
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17448
clear_char_last_weapon_damage $ryder
57@ = 0

:RYDER2_17460
if and
  is_int_lvar_greater_or_equal_to_int_lvar 127@ >= 200@
  271@ == 0
goto_if_false @RYDER2_17582
clear_onscreen_counter $ryder_health
if 
  328@ <> -1
goto_if_false @RYDER2_17575
if 
  does_object_exist 62@(328@,25i)
goto_if_false @RYDER2_17575
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17575
if 
  is_char_holding_object $ryder {handle} 62@(328@,25i)
goto_if_false @RYDER2_17575
drop_object $ryder {state} True

:RYDER2_17575
35@ = 99

:RYDER2_17582
if and
  55@ > 30000
  35@ <> 99
  1 > 202@
goto_if_false @RYDER2_18003
if and
  $audio_line_is_active == 0
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_18003
if 
  38@ == 5
goto_if_false @RYDER2_18003
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2775.781 {leftBottomY} -2406.821 {leftBottomZ} 10.638 {rightTopX} 2801.4331 {rightTopY} -2429.6179 {rightTopZ} 15.3143 {drawSphere} False
goto_if_false @RYDER2_18003
42@ = 0
43@ = 0

:RYDER2_17717
if 
  25 > 42@
goto_if_false @RYDER2_17855
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_17841
if 
  not has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_17841
if 
  is_object_in_area_3d 62@(42@,25i) {leftBottomX} 2774.3081 {leftBottomY} -2405.28 {leftBottomZ} 12.6803 {rightTopX} 2801.6069 {rightTopY} -2430.073 {rightTopZ} 15.3896 {drawSphere} False
goto_if_false @RYDER2_17841
43@ += 1
42@ = 25

:RYDER2_17841
42@ += 1
goto @RYDER2_17717

:RYDER2_17855
if 
  43@ == 0
goto_if_false @RYDER2_18003
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_17948
set_var_text_label s$audio_string = 'RYD2_LH'
set_var_int_to_constant $audio_sound_file = 10636
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17989

:RYDER2_17948
set_var_text_label s$audio_string = 'RYD2_LJ'
set_var_int_to_constant $audio_sound_file = 10637
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_17989
55@ = 0
202@ += 1

:RYDER2_18003
if 
  35@ == 99
goto_if_false @RYDER2_18042
203@ = 1
35@ = 0
34@ += 1

:RYDER2_18042
gosub @RYDER2_39696
set_lvar_int_to_lvar_int 306@ = 127@
gosub @RYDER2_36655
return 

:RYDER2_18066
if 
  35@ == 0
goto_if_false @RYDER2_18228
278@ = 0
279@ = 0
280@ = 0
281@ = 0
42@ = 0

:RYDER2_18119
if 
  10 > 42@
goto_if_false @RYDER2_18162
282@(42@,10i) = 0
42@ += 1
goto @RYDER2_18119

:RYDER2_18162
292@ = 0
293@ = 0
304@ = 4
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_18207
set_char_decision_maker $ryder {handleOrTemplate} 237@

:RYDER2_18207
49@ = 0
292@ = 0
35@ += 1

:RYDER2_18228
if 
  35@ == 1
goto_if_false @RYDER2_18514
296@ = 2765.999
297@ = -2419.7771
298@ = 12.6396
clear_area 296@ {y} 297@ {z} 298@ {radius} 1.5 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2761.1189 {y} -2421.157 {z} 14.5289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2762.002 {y} -2420.6909 {z} 14.4766 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_18441
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} 296@ {y} 297@ {z} 298@
set_char_heading $ryder {heading} 270.0
task_go_straight_to_coord $ryder {x} 2771.3521 {y} -2418.073 {z} 12.644 {speed} MoveState.Run {time} 5000

:RYDER2_18441
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_18500
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_18500
TIMERA = 0
35@ += 1

:RYDER2_18514
if 
  35@ == 2
goto_if_false @RYDER2_18572
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_18572
35@ += 1
TIMERA = 0

:RYDER2_18572
if 
  35@ == 3
goto_if_false @RYDER2_19015
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_18909
if 
  not is_car_dead 95@
goto_if_false @RYDER2_18909
clear_char_tasks_immediately $ryder
attach_char_to_car $ryder {vehicle} 95@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.9 {heading} Facing.Back {headingRange} 180.0 {weaponType} WeaponType.Unarmed
clear_onscreen_counter $6890
set_char_max_health $ryder {maxHealth} 350
set_char_health $ryder {health} 350
94@ = create_object #NF_PED_COLL {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 94@ {handle} 95@ {xOffset} -0.5 {yOffset} -2.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_object_scale 94@ {scale} 0.5
set_object_proofs 94@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
299@ = 1000
292@ = 1
293@ = 1
48@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 2000
task_play_anim_non_interruptable -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 2000
task_play_anim_non_interruptable -1 {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_18909
set_fixed_camera_position 2774.323 {y} -2420.5891 {z} 14.8944 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2773.4409 {y} -2420.1321 {z} 14.7784 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 10645
start_new_script @AUDIOL $ryder 0 1 1 0 
TIMERA = 0
35@ += 1

:RYDER2_19015
if 
  35@ == 4
goto_if_false @RYDER2_19212
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_19212
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'RY2_67' {time} 5000 {flag} 1
if 
  not is_car_dead 95@
goto_if_false @RYDER2_19167
remove_blip 119@
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
set_car_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
freeze_car_position 95@ {state} False
set_vehicle_is_considered_by_player 95@ {state} True
lock_car_doors 95@ {lockStatus} CarLock.Unlocked

:RYDER2_19167
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_19198
set_char_proofs $ryder {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER2_19198
35@ += 1
TIMERA = 0

:RYDER2_19212
if 
  35@ == 5
goto_if_false @RYDER2_19618
43@ = 0
if 
  not is_car_dead 95@
goto_if_false @RYDER2_19579
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_19290
43@ = 1
set_player_in_car_camera_mode 3
goto @RYDER2_19579

:RYDER2_19290
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_19579
if 
  49@ == 0
goto_if_false @RYDER2_19579
if or
  TIMERA > 30000
  43@ == 1
goto_if_false @RYDER2_19579
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_19565 {caseNum1} 0 {caseLabel1} @RYDER2_19421 {caseNum2} 1 {caseLabel2} @RYDER2_19469 {caseNum3} 2 {caseLabel3} @RYDER2_19517 {caseNum4} -1 {caseLabel4} @RYDER2_19565 {caseNum5} -1 {caseLabel5} @RYDER2_19565 {caseNum6} -1 {caseLabel6} @RYDER2_19565 {caseNum7} -1 {caseLabel7} @RYDER2_19565

:RYDER2_19421
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 10644
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19469
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 10646
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19517
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19565
49@ = 1
TIMERA = 0

:RYDER2_19579
if 
  43@ == 1
goto_if_false @RYDER2_19618
TIMERA = 0
54@ = 0
35@ += 1

:RYDER2_19618
if 
  35@ == 6
goto_if_false @RYDER2_20628
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_20628
if 
  not is_car_dead 95@
goto_if_false @RYDER2_20628
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_20271
freeze_car_position 95@ {state} False
if 
  does_blip_exist 119@
goto_if_false @RYDER2_19721
remove_blip 119@

:RYDER2_19721
remove_blip 120@
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_19778
120@ = add_blip_for_coord 2454.626 {y} -1972.5341 {z} 12.5617
print_now 'RY2_66' {time} 6000 {flag} 1

:RYDER2_19778
TIMERA = 0
request_model 470
request_model 287

:RYDER2_19795
if or
  not has_model_loaded 470
  not has_model_loaded 287
goto_if_false @RYDER2_19827
wait 0
goto @RYDER2_19795

:RYDER2_19827
96@ = create_car 470 {x} 2780.718 {y} -2456.103 {z} 12.6354
set_car_heading 96@ {heading} 90.0
set_car_heavy 96@ {state} True
lock_car_doors 96@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 96@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
97@ = create_car 470 {x} 2780.5569 {y} -2493.3459 {z} 12.6287
set_car_heading 97@ {heading} 90.0
set_car_heavy 97@ {state} True
lock_car_doors 97@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 97@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 96@
goto_if_false @RYDER2_20092
113@ = create_char_inside_car 96@ {pedType} PedType.Mission1 {modelId} 287
task_toggle_ped_threat_scanner 113@ {onFoot} False {inCar} False {duringScriptTask} False
set_car_driving_style 96@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 96@ {maxSpeed} 50.0
set_car_proofs 96@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_traction 96@ {traction} 2.0
set_car_heavy 96@ {state} True
set_car_health 96@ {health} 1300
117@ = create_char_as_passenger 96@ {pedType} PedType.Mission1 {modelId} 287 {seat} SeatId.BikeRear
set_char_relationship 117@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 117@ {handleOrTemplate} 237@
give_weapon_to_char 117@ {weaponType} WeaponType.Pistol {ammo} 999999

:RYDER2_20092
if 
  not is_car_dead 97@
goto_if_false @RYDER2_20233
114@ = create_char_inside_car 97@ {pedType} PedType.Mission1 {modelId} 287
task_toggle_ped_threat_scanner 114@ {onFoot} False {inCar} False {duringScriptTask} False
set_car_driving_style 97@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 97@ {maxSpeed} 50.0
set_car_proofs 97@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_traction 97@ {traction} 2.0
set_car_heavy 97@ {state} True
set_car_health 97@ {health} 1300
118@ = create_char_as_passenger 97@ {pedType} PedType.Mission1 {modelId} 287 {seat} SeatId.BikeRear
set_char_relationship 118@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 118@ {handleOrTemplate} 237@
give_weapon_to_char 118@ {weaponType} WeaponType.Pistol {ammo} 999999

:RYDER2_20233
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 287
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_20628

:RYDER2_20271
if 
  54@ > 20000
goto_if_false @RYDER2_20628
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_20628
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_20628
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @RYDER2_20628
42@ = generate_random_int_in_range 0 {max} 4
switch_start 42@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_20621 {caseNum1} 0 {caseLabel1} @RYDER2_20429 {caseNum2} 1 {caseLabel2} @RYDER2_20477 {caseNum3} 2 {caseLabel3} @RYDER2_20525 {caseNum4} 3 {caseLabel4} @RYDER2_20573 {caseNum5} -1 {caseLabel5} @RYDER2_20621 {caseNum6} -1 {caseLabel6} @RYDER2_20621 {caseNum7} -1 {caseLabel7} @RYDER2_20621

:RYDER2_20429
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 10644
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20477
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 10645
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20525
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 10646
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20573
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20621
54@ = 0

:RYDER2_20628
if 
  35@ == 7
goto_if_false @RYDER2_20742
248@, 249@, 250@ = get_offset_from_object_in_world_coords 258@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
251@, 252@, 253@ = get_offset_from_object_in_world_coords 259@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
if 
  does_object_exist 258@
goto_if_false @RYDER2_20728
report_mission_audio_event_at_object 258@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_20728
TIMERA = 0
35@ += 1

:RYDER2_20742
if 
  35@ == 8
goto_if_false @RYDER2_20883
if 
  TIMERA > 1000
goto_if_false @RYDER2_20883
if and
  slide_object 258@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
  slide_object 259@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @RYDER2_20883
if 
  does_object_exist 258@
goto_if_false @RYDER2_20876
report_mission_audio_event_at_object 258@ {soundId} ScriptSound.SoundShutterDoorStop

:RYDER2_20876
35@ += 1

:RYDER2_20883
if 
  35@ == 9
goto_if_false @RYDER2_21209
if 
  not is_car_dead 96@
goto_if_false @RYDER2_20927
set_car_forward_speed 96@ {forwardSpeed} 20.0

:RYDER2_20927
if 
  not is_car_dead 97@
goto_if_false @RYDER2_20953
set_car_forward_speed 97@ {forwardSpeed} 20.0

:RYDER2_20953
49@ = 0
50@ = 0
54@ = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10649
if 
  not is_car_dead 96@
goto_if_false @RYDER2_21053
if 
  not is_car_dead 95@
goto_if_false @RYDER2_21053
if 
  not is_char_dead 113@
goto_if_false @RYDER2_21053
task_car_mission 113@ {vehicle} 96@ {targetVehicle} 95@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 50.0 {drivingStyle} DrivingMode.AvoidCars

:RYDER2_21053
if 
  not is_car_dead 97@
goto_if_false @RYDER2_21121
if 
  not is_car_dead 95@
goto_if_false @RYDER2_21121
if 
  not is_char_dead 114@
goto_if_false @RYDER2_21121
task_car_mission 114@ {vehicle} 97@ {targetVehicle} 95@ {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 50.0 {drivingStyle} DrivingMode.AvoidCars

:RYDER2_21121
if 
  not is_car_dead 96@
goto_if_false @RYDER2_21195
if 
  not is_car_dead 97@
goto_if_false @RYDER2_21195
add_stuck_car_check_with_warp 96@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
add_stuck_car_check_with_warp 97@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:RYDER2_21195
35@ += 1
TIMERA = 0

:RYDER2_21209
if 
  35@ == 10
goto_if_false @RYDER2_21372
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_21372
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_21317
set_var_text_label s$audio_string = 'RYD2_OA'
set_var_int_to_constant $audio_sound_file = 10648
start_new_script @AUDIOL $ryder 0 1 2 0 
goto @RYDER2_21358

:RYDER2_21317
set_var_text_label s$audio_string = 'RYD2_OB'
set_var_int_to_constant $audio_sound_file = 10669
start_new_script @AUDIOL $ryder 0 1 2 0 

:RYDER2_21358
TIMERA = 0
35@ += 1

:RYDER2_21372
if 
  35@ == 11
goto_if_false @RYDER2_22103
if 
  TIMERA > 1000
goto_if_false @RYDER2_22103
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22103
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_22103
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_22103
if 
  54@ > 1000
goto_if_false @RYDER2_22103
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_22103
switch_start 50@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_22096 {caseNum1} 0 {caseLabel1} @RYDER2_21624 {caseNum2} 1 {caseLabel2} @RYDER2_21690 {caseNum3} 2 {caseLabel3} @RYDER2_21756 {caseNum4} 3 {caseLabel4} @RYDER2_21822 {caseNum5} 4 {caseLabel5} @RYDER2_21888 {caseNum6} 5 {caseLabel6} @RYDER2_21961 {caseNum7} 6 {caseLabel7} @RYDER2_22027
switch_continued 7 {caseLabel1} @RYDER2_22082 {caseNum2} -1 {caseLabel2} @RYDER2_22096 {caseNum3} -1 {caseLabel3} @RYDER2_22096 {caseNum4} -1 {caseLabel4} @RYDER2_22096 {caseNum5} -1 {caseLabel5} @RYDER2_22096 {caseNum6} -1 {caseLabel6} @RYDER2_22096 {caseNum7} -1 {caseLabel7} @RYDER2_22096 {caseNum8} -1 {caseLabel8} @RYDER2_22096 {caseNum9} -1 {caseLabel9} @RYDER2_22096

:RYDER2_21624
set_var_text_label s$audio_string = 'RYD2_PA'
set_var_int_to_constant $audio_sound_file = 10649
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10686
50@ += 1
goto @RYDER2_22096

:RYDER2_21690
set_var_text_label s$audio_string = 'RYD2_PB'
set_var_int_to_constant $audio_sound_file = 10686
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10650
50@ += 1
goto @RYDER2_22096

:RYDER2_21756
set_var_text_label s$audio_string = 'RYD2_PC'
set_var_int_to_constant $audio_sound_file = 10650
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10687
50@ += 1
goto @RYDER2_22096

:RYDER2_21822
set_var_text_label s$audio_string = 'RYD2_PD'
set_var_int_to_constant $audio_sound_file = 10687
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10688
50@ += 1
goto @RYDER2_22096

:RYDER2_21888
set_var_text_label s$audio_string = 'RYD2_PE'
set_var_int_to_constant $audio_sound_file = 10688
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10651
50@ += 1
279@ += 1
goto @RYDER2_22096

:RYDER2_21961
set_var_text_label s$audio_string = 'RYD2_PF'
set_var_int_to_constant $audio_sound_file = 10651
start_new_script @AUDIOL $ryder 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10652
50@ += 1
goto @RYDER2_22096

:RYDER2_22027
set_var_text_label s$audio_string = 'RYD2_PG'
set_var_int_to_constant $audio_sound_file = 10652
start_new_script @AUDIOL $ryder 0 1 1 1 
50@ += 1
goto @RYDER2_22096

:RYDER2_22082
35@ += 1
goto @RYDER2_22096

:RYDER2_22096
54@ = 0

:RYDER2_22103
if 
  35@ == 12
goto_if_false @RYDER2_22128
35@ += 1

:RYDER2_22128
if 
  35@ == 13
goto_if_false @RYDER2_22206
print_help 'RY2_72'
293@ = 0
TIMERA = 0
193@ = 0
194@ = 0
195@ = 0
49@ = 0
35@ += 1

:RYDER2_22206
if 
  35@ == 14
goto_if_false @RYDER2_24265
if 
  193@ == 0
goto_if_false @RYDER2_22291
if 
  TIMERA > 10000
goto_if_false @RYDER2_22291
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22291
set_can_burst_car_tyres 95@ {state} True
193@ = 1

:RYDER2_22291
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22409
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_22409
if 
  locate_car_3d 95@ {x} 2454.626 {y} -1972.5341 {z} 12.5617 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RYDER2_22409
if 
  is_vehicle_on_all_wheels 95@
goto_if_false @RYDER2_22409
set_player_control $player1 {state} False
remove_blip 120@
35@ = 99

:RYDER2_22409
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @RYDER2_22460
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22460
set_car_coordinates 95@ {x} 2454.626 {y} -1972.5341 {z} 12.5617

:RYDER2_22460
if 
  195@ == 0
goto_if_false @RYDER2_22623
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22623
if 
  locate_car_2d 95@ {x} 2454.626 {y} -1972.5341 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_22623
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_22553
mark_car_as_no_longer_needed 96@

:RYDER2_22553
if 
  does_char_exist 113@
goto_if_false @RYDER2_22574
mark_char_as_no_longer_needed 113@

:RYDER2_22574
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_22595
mark_car_as_no_longer_needed 97@

:RYDER2_22595
if 
  does_char_exist 114@
goto_if_false @RYDER2_22616
mark_char_as_no_longer_needed 114@

:RYDER2_22616
195@ += 1

:RYDER2_22623
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_24063
if 
  TIMERA > 20000
goto_if_false @RYDER2_24063
if 
  194@ <> 99
goto_if_false @RYDER2_24063
if 
  54@ > 1000
goto_if_false @RYDER2_24063
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_24063
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24063
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_24063
switch_start 194@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_24063 {caseNum1} 0 {caseLabel1} @RYDER2_22892 {caseNum2} 1 {caseLabel2} @RYDER2_22965 {caseNum3} 2 {caseLabel3} @RYDER2_23089 {caseNum4} 3 {caseLabel4} @RYDER2_23213 {caseNum5} 4 {caseLabel5} @RYDER2_23337 {caseNum6} 5 {caseLabel6} @RYDER2_23461 {caseNum7} 6 {caseLabel7} @RYDER2_23585
switch_continued 7 {caseLabel1} @RYDER2_23709 {caseNum2} 8 {caseLabel2} @RYDER2_23833 {caseNum3} 9 {caseLabel3} @RYDER2_23957 {caseNum4} -1 {caseLabel4} @RYDER2_24063 {caseNum5} -1 {caseLabel5} @RYDER2_24063 {caseNum6} -1 {caseLabel6} @RYDER2_24063 {caseNum7} -1 {caseLabel7} @RYDER2_24063 {caseNum8} -1 {caseLabel8} @RYDER2_24063 {caseNum9} -1 {caseLabel9} @RYDER2_24063

:RYDER2_22892
set_var_text_label s$audio_string = 'RYD2_SA'
set_var_int_to_constant $audio_sound_file = 10600
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10601
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_22965
set_var_text_label s$audio_string = 'RYD2_SB'
set_var_int_to_constant $audio_sound_file = 10601
if 
  49@ == 0
goto_if_false @RYDER2_23031
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23057

:RYDER2_23031
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23057
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10658
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23089
set_var_text_label s$audio_string = 'RYD2_SC'
set_var_int_to_constant $audio_sound_file = 10658
if 
  49@ == 0
goto_if_false @RYDER2_23155
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23181

:RYDER2_23155
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23181
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10602
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23213
set_var_text_label s$audio_string = 'RYD2_SD'
set_var_int_to_constant $audio_sound_file = 10602
if 
  49@ == 0
goto_if_false @RYDER2_23279
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23305

:RYDER2_23279
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23305
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10659
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23337
set_var_text_label s$audio_string = 'RYD2_SE'
set_var_int_to_constant $audio_sound_file = 10659
if 
  49@ == 0
goto_if_false @RYDER2_23403
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23429

:RYDER2_23403
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23429
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10660
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23461
set_var_text_label s$audio_string = 'RYD2_SF'
set_var_int_to_constant $audio_sound_file = 10660
if 
  49@ == 0
goto_if_false @RYDER2_23527
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_23553

:RYDER2_23527
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_23553
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10661
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23585
set_var_text_label s$audio_string = 'RYD2_SG'
set_var_int_to_constant $audio_sound_file = 10661
if 
  49@ == 0
goto_if_false @RYDER2_23651
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23677

:RYDER2_23651
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23677
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10603
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23709
set_var_text_label s$audio_string = 'RYD2_SH'
set_var_int_to_constant $audio_sound_file = 10603
if 
  49@ == 0
goto_if_false @RYDER2_23775
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23801

:RYDER2_23775
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23801
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10604
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23833
set_var_text_label s$audio_string = 'RYD2_SJ'
set_var_int_to_constant $audio_sound_file = 10604
if 
  49@ == 0
goto_if_false @RYDER2_23899
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @RYDER2_23925

:RYDER2_23899
start_new_script @AUDIOL $scplayer 0 1 1 0 
49@ = 0

:RYDER2_23925
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10662
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23957
set_var_text_label s$audio_string = 'RYD2_SK'
set_var_int_to_constant $audio_sound_file = 10662
if 
  49@ == 0
goto_if_false @RYDER2_24023
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_24049

:RYDER2_24023
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_24049
194@ = 99
goto @RYDER2_24063

:RYDER2_24063
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_24265
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_24265
if 
  304@ == 0
goto_if_false @RYDER2_24265
293@ = 1
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_24210
set_var_text_label s$audio_string = 'RYD2_RA'
set_var_int_to_constant $audio_sound_file = 10656
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_24258

:RYDER2_24210
set_var_text_label s$audio_string = 'RYD2_RB'
set_var_int_to_constant $audio_sound_file = 10657
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1

:RYDER2_24258
304@ -= 1

:RYDER2_24265
if 
  35@ == 99
goto_if_false @RYDER2_24329
if 
  not is_car_dead 95@
goto_if_false @RYDER2_24329
if 
  is_car_stopped 95@
goto_if_false @RYDER2_24329
35@ = 0
34@ += 1

:RYDER2_24329
gosub @RYDER2_36655
if 
  does_object_exist 94@
goto_if_false @RYDER2_24610
42@ = get_object_health 94@
if 
  is_int_lvar_greater_than_int_lvar 299@ > 42@
goto_if_false @RYDER2_24597
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24597
42@ = get_char_health $ryder
42@ += -17
if 
  1 > 42@
goto_if_false @RYDER2_24435
42@ = 1

:RYDER2_24435
set_char_health $ryder {health} 42@
if 
  42@ == 1
goto_if_false @RYDER2_24466
task_die $ryder

:RYDER2_24466
$x, $y, $z = get_offset_from_char_in_world_coords $ryder {xOffset} 0.5 {yOffset} 0.2 {zOffset} 0.4
207@ = generate_random_float_in_range -1.0 {max} 1.0
208@ = generate_random_float_in_range -1.0 {max} 1.0
209@ = generate_random_float_in_range -1.0 {max} 1.0
if 
  does_char_exist $ryder
goto_if_false @RYDER2_24597
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24597
add_blood $x {y} $y {z} $z {offsetX} 207@ {offsetY} 208@ {offsetZ} 209@ {density} 20 {handle} $ryder

:RYDER2_24597
clear_object_last_weapon_damage 94@
299@ = get_object_health 94@

:RYDER2_24610
if 
  292@ == 1
goto_if_false @RYDER2_26942
if 
  293@ == 0
goto_if_false @RYDER2_24767
if 
  not is_car_dead 95@
goto_if_false @RYDER2_24767
if 
  280@ == 0
goto_if_false @RYDER2_24743
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Leftshock
goto_if_false @RYDER2_24736
280@ = 1
if or
  279@ == 0
  279@ == 3
goto_if_false @RYDER2_24736
279@ += 1

:RYDER2_24736
goto @RYDER2_24767

:RYDER2_24743
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Leftshock
goto_if_false @RYDER2_24767
280@ = 0

:RYDER2_24767
if 
  not is_car_dead 95@
goto_if_false @RYDER2_24833
$heading = get_car_heading 95@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24825
$heading += 180.0
set_char_heading $ryder {heading} $heading

:RYDER2_24825
274@ = get_car_roll 95@

:RYDER2_24833
if 
  not is_car_dead 95@
goto_if_false @RYDER2_24857
275@ = get_car_heading 95@

:RYDER2_24857
set_lvar_float_to_lvar_float 277@ = 275@
sub_float_lvar_from_float_lvar 277@ -= 276@
if 
  -180.0 > 277@
goto_if_false @RYDER2_24904
277@ += 360.0

:RYDER2_24904
if 
  277@ > 180.0
goto_if_false @RYDER2_24935
277@ += -360.0

:RYDER2_24935
set_lvar_float_to_lvar_float 276@ = 275@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_26942
if 
  279@ == 0
goto_if_false @RYDER2_25599
if 
  -60.0 > 274@
goto_if_false @RYDER2_25069
if 
  278@ <> 1
goto_if_false @RYDER2_25062
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 1

:RYDER2_25062
goto @RYDER2_25592

:RYDER2_25069
if 
  274@ > 60.0
goto_if_false @RYDER2_25161
if 
  278@ <> 2
goto_if_false @RYDER2_25154
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 2

:RYDER2_25154
goto @RYDER2_25592

:RYDER2_25161
if 
  -5.0 > 274@
goto_if_false @RYDER2_25253
if 
  278@ <> 3
goto_if_false @RYDER2_25246
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 3

:RYDER2_25246
goto @RYDER2_25592

:RYDER2_25253
if 
  274@ > 5.0
goto_if_false @RYDER2_25345
if 
  278@ <> 4
goto_if_false @RYDER2_25338
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 4

:RYDER2_25338
goto @RYDER2_25592

:RYDER2_25345
if 
  -2.0 > 277@
goto_if_false @RYDER2_25437
if 
  278@ <> 4
goto_if_false @RYDER2_25430
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 4

:RYDER2_25430
goto @RYDER2_25592

:RYDER2_25437
if 
  277@ > 2.0
goto_if_false @RYDER2_25529
if 
  278@ <> 3
goto_if_false @RYDER2_25522
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 3

:RYDER2_25522
goto @RYDER2_25592

:RYDER2_25529
if 
  278@ <> 0
goto_if_false @RYDER2_25592
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 0

:RYDER2_25592
goto @RYDER2_26942

:RYDER2_25599
if 
  279@ == 1
goto_if_false @RYDER2_25819
if 
  278@ <> 5
goto_if_false @RYDER2_25690
task_play_anim_non_interruptable $ryder {animationName} "VAN_PICKUP_S" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 5
goto @RYDER2_25819

:RYDER2_25690
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_25819
$x, $y, $z = get_char_coordinates $ryder
281@ = create_object #CM_BOX {x} $x {y} $y {z} $z
task_pick_up_object $ryder {object} 281@ {xOffset} -0.096 {yOffset} 0.246 {zOffset} 0.142 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
set_object_collision 281@ {state} False
306@ -= 1
304@ -= 1
279@ += 1

:RYDER2_25819
if 
  279@ == 2
goto_if_false @RYDER2_25946
if 
  278@ <> 6
goto_if_false @RYDER2_25910
task_play_anim_non_interruptable $ryder {animationName} "VAN_PICKUP_E" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 6
goto @RYDER2_25946

:RYDER2_25910
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_25946
279@ += 1

:RYDER2_25946
if 
  279@ == 3
goto_if_false @RYDER2_26617
if 
  -60.0 > 274@
goto_if_false @RYDER2_26070
if 
  278@ <> 1
goto_if_false @RYDER2_26063
gosub @RYDER2_39505
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 1
279@ = 0

:RYDER2_26063
goto @RYDER2_26617

:RYDER2_26070
if 
  274@ > 60.0
goto_if_false @RYDER2_26176
if 
  278@ <> 2
goto_if_false @RYDER2_26169
gosub @RYDER2_39505
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 2
279@ = 0

:RYDER2_26169
goto @RYDER2_26617

:RYDER2_26176
if 
  -5.0 > 274@
goto_if_false @RYDER2_26269
if 
  278@ <> 7
goto_if_false @RYDER2_26262
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 7

:RYDER2_26262
goto @RYDER2_26617

:RYDER2_26269
if 
  274@ > 5.0
goto_if_false @RYDER2_26362
if 
  278@ <> 8
goto_if_false @RYDER2_26355
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 8

:RYDER2_26355
goto @RYDER2_26617

:RYDER2_26362
if 
  -2.0 > 277@
goto_if_false @RYDER2_26455
if 
  278@ <> 7
goto_if_false @RYDER2_26448
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 7

:RYDER2_26448
goto @RYDER2_26617

:RYDER2_26455
if 
  277@ > 2.0
goto_if_false @RYDER2_26548
if 
  278@ <> 8
goto_if_false @RYDER2_26541
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 8

:RYDER2_26541
goto @RYDER2_26617

:RYDER2_26548
if 
  278@ <> 9
goto_if_false @RYDER2_26617
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND_CRATE" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 9

:RYDER2_26617
if 
  279@ == 4
goto_if_false @RYDER2_26786
if 
  278@ <> 10
goto_if_false @RYDER2_26705
task_play_anim_non_interruptable $ryder {animationName} "VAN_THROW" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 10
goto @RYDER2_26786

:RYDER2_26705
if 
  is_char_playing_anim $ryder {animationName} "VAN_THROW"
goto_if_false @RYDER2_26786
45@ = get_char_anim_current_time $ryder {animationName} "VAN_THROW"
if 
  45@ > 0.292
goto_if_false @RYDER2_26786
gosub @RYDER2_39505
279@ += 1

:RYDER2_26786
if 
  279@ == 5
goto_if_false @RYDER2_26942
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_26942
if 
  278@ <> 0
goto_if_false @RYDER2_26896
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 0

:RYDER2_26896
if 
  304@ > 0
goto_if_false @RYDER2_26928
279@ = 1
goto @RYDER2_26942

:RYDER2_26928
279@ = 0
293@ = 1

:RYDER2_26942
if 
  292@ <> 0
goto_if_false @RYDER2_27019
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_27019
42@ = get_char_health $ryder
if 
  100 > 42@
goto_if_false @RYDER2_27019
detach_char_from_car $ryder
task_die $ryder
292@ = 0

:RYDER2_27019
42@ = 0

:RYDER2_27026
if 
  5 > 42@
goto_if_false @RYDER2_27383
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27369
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27163
if 
  not is_car_dead 96@
goto_if_false @RYDER2_27163
if 
  is_vehicle_touching_object 96@ {handle} 282@(42@,10i)
goto_if_false @RYDER2_27163
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small

:RYDER2_27163
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27262
if 
  not is_car_dead 97@
goto_if_false @RYDER2_27262
if 
  is_vehicle_touching_object 97@ {handle} 282@(42@,10i)
goto_if_false @RYDER2_27262
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small

:RYDER2_27262
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27369
43@ = get_object_health 282@(42@,10i)
if 
  950 > 43@
goto_if_false @RYDER2_27369
if 
  not is_car_dead 95@
goto_if_false @RYDER2_27369
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade

:RYDER2_27369
42@ += 1
goto @RYDER2_27026

:RYDER2_27383
if 
  35@ > 4
goto_if_false @RYDER2_27552
if 
  not is_car_dead 95@
goto_if_false @RYDER2_27552
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_27500
if 
  does_blip_exist 119@
goto_if_false @RYDER2_27457
remove_blip 119@

:RYDER2_27457
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_27493
120@ = add_blip_for_coord 2454.626 {y} -1972.5341 {z} 12.5617

:RYDER2_27493
goto @RYDER2_27552

:RYDER2_27500
if 
  not does_blip_exist 119@
goto_if_false @RYDER2_27531
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True

:RYDER2_27531
if 
  does_blip_exist 120@
goto_if_false @RYDER2_27552
remove_blip 120@

:RYDER2_27552
if 
  35@ >= 13
goto_if_false @RYDER2_27978
if 
  not is_car_dead 95@
goto_if_false @RYDER2_27978
if 
  not is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_27978
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_27978
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_27978
if 
  54@ > 15000
goto_if_false @RYDER2_27978
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_27978
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_27978
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_27978
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_27971 {caseNum1} 0 {caseLabel1} @RYDER2_27806 {caseNum2} 1 {caseLabel2} @RYDER2_27861 {caseNum3} 2 {caseLabel3} @RYDER2_27916 {caseNum4} -1 {caseLabel4} @RYDER2_27971 {caseNum5} -1 {caseLabel5} @RYDER2_27971 {caseNum6} -1 {caseLabel6} @RYDER2_27971 {caseNum7} -1 {caseLabel7} @RYDER2_27971

:RYDER2_27806
set_var_text_label s$audio_string = 'RYD2_QA'
set_var_int_to_constant $audio_sound_file = 10653
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27861
set_var_text_label s$audio_string = 'RYD2_QB'
set_var_int_to_constant $audio_sound_file = 10654
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27916
set_var_text_label s$audio_string = 'RYD2_QC'
set_var_int_to_constant $audio_sound_file = 10655
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27971
54@ = 0

:RYDER2_27978
if 
  38@ == 4
goto_if_false @RYDER2_28531
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_28531
if 
  not is_car_dead 96@
goto_if_false @RYDER2_28531
if 
  not is_char_dead 113@
goto_if_false @RYDER2_28100
if 
  not is_char_in_car 113@ {vehicle} 96@
goto_if_false @RYDER2_28100
42@ = get_script_task_status 113@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28100
task_kill_char_on_foot 113@ {target} $scplayer

:RYDER2_28100
if 
  not is_char_dead 117@
goto_if_false @RYDER2_28531
if 
  is_char_in_car 117@ {vehicle} 96@
goto_if_false @RYDER2_28494
if 
  not is_car_dead 95@
goto_if_false @RYDER2_28487
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_28323
45@ = get_car_speed 95@
if 
  5.0 > 45@
goto_if_false @RYDER2_28316
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_28316
if 
  locate_char_any_means_char_3d 117@ {target} $ryder {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28316
42@ = get_script_task_status 117@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28316
task_drive_by 117@ {targetChar} -1 {targetVehicle} 95@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:RYDER2_28316
goto @RYDER2_28487

:RYDER2_28323
if 
  not is_char_in_car $scplayer {vehicle} 96@
goto_if_false @RYDER2_28450
if 
  locate_char_any_means_char_3d 117@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28443
42@ = get_script_task_status 117@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28443
task_drive_by 117@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:RYDER2_28443
goto @RYDER2_28487

:RYDER2_28450
42@ = get_script_task_status 117@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28487
task_kill_char_on_foot 117@ {target} $scplayer

:RYDER2_28487
goto @RYDER2_28531

:RYDER2_28494
42@ = get_script_task_status 117@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28531
task_kill_char_on_foot 117@ {target} $scplayer

:RYDER2_28531
if 
  38@ == 8
goto_if_false @RYDER2_29084
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_29084
if 
  not is_car_dead 97@
goto_if_false @RYDER2_29084
if 
  not is_char_dead 114@
goto_if_false @RYDER2_28653
if 
  not is_char_in_car 114@ {vehicle} 97@
goto_if_false @RYDER2_28653
42@ = get_script_task_status 114@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28653
task_kill_char_on_foot 114@ {target} $scplayer

:RYDER2_28653
if 
  not is_char_dead 118@
goto_if_false @RYDER2_29084
if 
  is_char_in_car 118@ {vehicle} 97@
goto_if_false @RYDER2_29047
if 
  not is_car_dead 95@
goto_if_false @RYDER2_29040
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_28876
45@ = get_car_speed 95@
if 
  5.0 > 45@
goto_if_false @RYDER2_28869
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_28869
if 
  locate_char_any_means_char_3d 118@ {target} $ryder {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28869
42@ = get_script_task_status 118@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28869
task_drive_by 118@ {targetChar} -1 {targetVehicle} 95@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:RYDER2_28869
goto @RYDER2_29040

:RYDER2_28876
if 
  not is_char_in_car $scplayer {vehicle} 97@
goto_if_false @RYDER2_29003
if 
  locate_char_any_means_char_3d 118@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28996
42@ = get_script_task_status 118@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28996
task_drive_by 118@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:RYDER2_28996
goto @RYDER2_29040

:RYDER2_29003
42@ = get_script_task_status 118@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29040
task_kill_char_on_foot 118@ {target} $scplayer

:RYDER2_29040
goto @RYDER2_29084

:RYDER2_29047
42@ = get_script_task_status 118@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29084
task_kill_char_on_foot 118@ {target} $scplayer

:RYDER2_29084
if and
  38@ == 0
  35@ > 10
goto_if_false @RYDER2_29564
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_29564
if 
  not is_car_dead 96@
goto_if_false @RYDER2_29564
if 
  not is_car_dead 95@
goto_if_false @RYDER2_29564
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
if 
  not locate_car_2d 96@ {x} $x {y} $y {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_29564
if 
  not is_car_on_screen 96@
goto_if_false @RYDER2_29564
42@ = 1
43@ = 0

:RYDER2_29250
if 
  43@ == 0
goto_if_false @RYDER2_29449
207@, 208@, 209@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if and
  not is_point_on_screen 207@ {y} 208@ {z} 209@ {radius} 5.0
  not is_point_obscured_by_a_mission_entity 207@ {y} 208@ {z} 209@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @RYDER2_29410
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 207@ {toZ} 208@
if 
  45@ > 30.0
goto_if_false @RYDER2_29396
43@ = -1
goto @RYDER2_29403

:RYDER2_29396
43@ = 1

:RYDER2_29403
goto @RYDER2_29442

:RYDER2_29410
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_29442
43@ = -1

:RYDER2_29442
goto @RYDER2_29250

:RYDER2_29449
if 
  43@ == 1
goto_if_false @RYDER2_29564
$x, $y, $z = get_car_coordinates 95@
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = get_heading_from_vector_2d 294@ {y} 295@
clear_area 207@ {y} 208@ {z} 209@ {radius} 5.0 {clearParticles} True
set_car_coordinates 96@ {x} 207@ {y} 208@ {z} 209@
set_car_heading 96@ {heading} $heading

:RYDER2_29564
if and
  38@ == 1
  35@ > 10
goto_if_false @RYDER2_30044
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_30044
if 
  not is_car_dead 97@
goto_if_false @RYDER2_30044
if 
  not is_car_dead 95@
goto_if_false @RYDER2_30044
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
if 
  not locate_car_2d 97@ {x} $x {y} $y {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_30044
if 
  not is_car_on_screen 97@
goto_if_false @RYDER2_30044
42@ = 1
43@ = 0

:RYDER2_29730
if 
  43@ == 0
goto_if_false @RYDER2_29929
207@, 208@, 209@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if and
  not is_point_on_screen 207@ {y} 208@ {z} 209@ {radius} 5.0
  not is_point_obscured_by_a_mission_entity 207@ {y} 208@ {z} 209@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @RYDER2_29890
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 207@ {toZ} 208@
if 
  45@ > 30.0
goto_if_false @RYDER2_29876
43@ = -1
goto @RYDER2_29883

:RYDER2_29876
43@ = 1

:RYDER2_29883
goto @RYDER2_29922

:RYDER2_29890
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_29922
43@ = -1

:RYDER2_29922
goto @RYDER2_29730

:RYDER2_29929
if 
  43@ == 1
goto_if_false @RYDER2_30044
$x, $y, $z = get_car_coordinates 95@
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = get_heading_from_vector_2d 294@ {y} 295@
clear_area 207@ {y} 208@ {z} 209@ {radius} 5.0 {clearParticles} True
set_car_coordinates 97@ {x} 207@ {y} 208@ {z} 209@
set_car_heading 97@ {heading} $heading

:RYDER2_30044
return 

:RYDER2_30046
if 
  35@ == 0
goto_if_false @RYDER2_30754
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:RYDER2_30078
if 
  get_fading_status 
goto_if_false @RYDER2_30102
wait 0
goto @RYDER2_30078

:RYDER2_30102
request_model 105
request_model 106

:RYDER2_30110
if or
  not has_model_loaded 105
  not has_model_loaded 106
goto_if_false @RYDER2_30140
wait 0
goto @RYDER2_30110

:RYDER2_30140
if 
  not is_car_dead 95@
goto_if_false @RYDER2_30186
set_car_coordinates 95@ {x} 2455.708 {y} -1972.858 {z} 12.5469
set_car_heading 95@ {heading} 343.4514

:RYDER2_30186
switch_widescreen True
set_near_clip 0.1
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_30218
clear_char_tasks $ryder

:RYDER2_30218
clear_area 2447.9009 {y} -1980.542 {z} 12.8338 {radius} 20.0 {clearParticles} True
set_fixed_camera_position 2447.9009 {y} -1980.542 {z} 12.8338 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2448.4839 {y} -1979.735 {z} 12.929 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 113@
goto_if_false @RYDER2_30314
delete_char 113@

:RYDER2_30314
if 
  not is_char_dead 114@
goto_if_false @RYDER2_30335
delete_char 114@

:RYDER2_30335
if 
  not is_car_dead 96@
goto_if_false @RYDER2_30356
delete_car 96@

:RYDER2_30356
if 
  not is_car_dead 97@
goto_if_false @RYDER2_30377
delete_car 97@

:RYDER2_30377
115@ = create_char PedType.CivMale {modelId} 105 {x} 2448.4761 {y} -1980.751 {z} 12.5947
116@ = create_char PedType.CivMale {modelId} 106 {x} 2447.553 {y} -1979.8831 {z} 12.5947
set_char_heading 115@ {heading} 316.4611
set_char_heading 116@ {heading} 319.2614
set_char_decision_maker 115@ {handleOrTemplate} 237@
set_char_decision_maker 116@ {handleOrTemplate} 237@
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_30615
detach_char_from_car $ryder
clear_char_tasks_immediately $ryder
if 
  does_object_exist 281@
goto_if_false @RYDER2_30516
delete_object 281@

:RYDER2_30516
set_char_coordinates $ryder {x} 2453.002 {y} -1976.576 {z} 12.5469
set_char_heading $ryder {heading} 5.1526
set_anim_group_for_char $ryder {animGroup} "GANG1"
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2452.7019 {y} -1972.939 {z} 12.5469 {speed} MoveState.Walk {time} 10000
task_look_at_char -1 {target} $scplayer {time} 3000
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_30615
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2452.29 {y} -1971.682 {z} 12.5469
set_char_heading $scplayer {heading} 153.4741
if 
  not is_char_dead 115@
goto_if_false @RYDER2_30677
task_look_at_char $scplayer {target} 115@ {time} 4000

:RYDER2_30677
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
$audio_line_is_active = 0
clear_prints 
49@ = 0
54@ = 1000
TIMERA = 0
do_fade 500 {direction} Fade.In

:RYDER2_30723
if 
  get_fading_status 
goto_if_false @RYDER2_30747
wait 0
goto @RYDER2_30723

:RYDER2_30747
35@ += 1

:RYDER2_30754
if 
  35@ > 0
goto_if_false @RYDER2_31473
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_31473
if 
  54@ > 1000
goto_if_false @RYDER2_31473
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_31473 {caseNum1} 0 {caseLabel1} @RYDER2_30872 {caseNum2} 1 {caseLabel2} @RYDER2_31027 {caseNum3} 2 {caseLabel3} @RYDER2_31100 {caseNum4} 3 {caseLabel4} @RYDER2_31312 {caseNum5} -1 {caseLabel5} @RYDER2_31473 {caseNum6} -1 {caseLabel6} @RYDER2_31473 {caseNum7} -1 {caseLabel7} @RYDER2_31473

:RYDER2_30872
set_var_text_label s$audio_string = 'RYD2_TA'
set_var_int_to_constant $audio_sound_file = 10663
start_new_script @AUDIOL $ryder 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 10689
49@ += 1
54@ = 0
if 
  not is_char_dead 115@
goto_if_false @RYDER2_30979
task_go_straight_to_coord 115@ {x} 2451.915 {y} -1977.506 {z} 12.5947 {speed} MoveState.Walk {time} 10000

:RYDER2_30979
if 
  not is_char_dead 116@
goto_if_false @RYDER2_31020
task_go_straight_to_coord 116@ {x} 2450.5459 {y} -1976.361 {z} 12.5947 {speed} MoveState.Walk {time} 10000

:RYDER2_31020
goto @RYDER2_31473

:RYDER2_31027
set_var_text_label s$audio_string = 'RYD2_TB'
set_var_int_to_constant $audio_sound_file = 10689
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10664
49@ += 1
54@ = 0
goto @RYDER2_31473

:RYDER2_31100
set_fixed_camera_position 2450.0459 {y} -1966.412 {z} 15.1296 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.561 {y} -1967.251 {z} 14.9539 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'RYD2_TC'
set_var_int_to_constant $audio_sound_file = 10664
start_new_script @AUDIOL $ryder 0 1 1 1 
49@ += 1
54@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_31305
48@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 2000
task_go_straight_to_coord -1 {x} 2452.239 {y} -1980.224 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_31305
goto @RYDER2_31473

:RYDER2_31312
if 
  not is_char_dead 115@
goto_if_false @RYDER2_31382
48@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} 2452.9509 {y} -1982.921 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task 115@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_31382
if 
  not is_char_dead 116@
goto_if_false @RYDER2_31452
48@ = open_sequence_task 
task_pause -1 {time} 1500
task_go_straight_to_coord -1 {x} 2452.0061 {y} -1983.186 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task 116@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_31452
49@ += 1
54@ = 0
goto @RYDER2_31473

:RYDER2_31473
if 
  35@ == 1
goto_if_false @RYDER2_31577
if and
  49@ > 3
  54@ > 5000
  $audio_line_is_active == 0
goto_if_false @RYDER2_31553
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_31546
35@ += 1

:RYDER2_31546
goto @RYDER2_31577

:RYDER2_31553
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER2_31577
35@ += 1

:RYDER2_31577
if 
  35@ == 2
goto_if_false @RYDER2_31791
do_fade 1000 {direction} Fade.Out

:RYDER2_31602
if 
  get_fading_status 
goto_if_false @RYDER2_31626
wait 0
goto @RYDER2_31602

:RYDER2_31626
delete_char 115@
delete_char 116@
delete_char $ryder
42@ = 0

:RYDER2_31648
if 
  5 > 42@
goto_if_false @RYDER2_31709
if 
  does_object_exist 308@(42@,5i)
goto_if_false @RYDER2_31695
delete_object 308@(42@,5i)

:RYDER2_31695
42@ += 1
goto @RYDER2_31648

:RYDER2_31709
if 
  does_object_exist 313@
goto_if_false @RYDER2_31730
delete_object 313@

:RYDER2_31730
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:RYDER2_31753
if 
  get_fading_status 
goto_if_false @RYDER2_31777
wait 0
goto @RYDER2_31753

:RYDER2_31777
set_player_control $player1 {state} True
36@ = 1

:RYDER2_31791
return 

:RYDER2_31793
if 
  does_char_exist $ryder
goto_if_false @RYDER2_31848
if 
  is_char_dead $ryder
goto_if_false @RYDER2_31848
37@ = 1
print_now 'RY2_22' {time} 5000 {flag} 1

:RYDER2_31848
if 
  does_vehicle_exist 95@
goto_if_false @RYDER2_31942
if 
  is_car_dead 95@
goto_if_false @RYDER2_31942
if 
  292@ == 1
goto_if_false @RYDER2_31919
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_31919
task_die $ryder

:RYDER2_31919
37@ = 1
print_now 'RY2_25' {time} 5000 {flag} 1

:RYDER2_31942
if 
  6 > 34@
goto_if_false @RYDER2_32061
if 
  does_vehicle_exist 99@
goto_if_false @RYDER2_32061
if 
  is_car_dead 99@
goto_if_false @RYDER2_32022
37@ = 1
print_now 'RY2_40' {time} 5000 {flag} 1
goto @RYDER2_32061

:RYDER2_32022
if 
  is_car_in_water 99@
goto_if_false @RYDER2_32061
37@ = 1
print_now 'RY2_40' {time} 5000 {flag} 1

:RYDER2_32061
if and
  34@ > 2
  6 > 34@
goto_if_false @RYDER2_32406
if 
  38@ == 6
goto_if_false @RYDER2_32406
42@ = 0
43@ = 0

:RYDER2_32118
if 
  25 > 42@
goto_if_false @RYDER2_32243
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_32229
if 
  not is_object_in_water 62@(42@,25i)
goto_if_false @RYDER2_32229
$x, $y, $z = get_object_coordinates 62@(42@,25i)
if 
  $z > 0.0
goto_if_false @RYDER2_32222
43@ += 1

:RYDER2_32222
goto @RYDER2_32229

:RYDER2_32229
42@ += 1
goto @RYDER2_32118

:RYDER2_32243
if 
  is_int_var_greater_than_int_lvar $ryder_health > 43@
goto_if_false @RYDER2_32406
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_32337
set_var_text_label s$audio_string = 'RYD2_LF'
set_var_int_to_constant $audio_sound_file = 10634
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_32378

:RYDER2_32337
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_32378
wait 4000
print_now 'RY2_58' {time} 5000 {flag} 1
37@ = 1

:RYDER2_32406
if 
  34@ >= 3
goto_if_false @RYDER2_32875
if 
  133@ == 0
goto_if_false @RYDER2_32522
if 
  does_object_exist 60@
goto_if_false @RYDER2_32515
if 
  has_object_been_damaged 60@
goto_if_false @RYDER2_32515
133@ += 1
clear_prints 
report_mission_audio_event_at_object 60@ {soundId} ScriptSound.SoundShootControls
if 
  does_object_exist 240@
goto_if_false @RYDER2_32515
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStart

:RYDER2_32515
goto @RYDER2_32613

:RYDER2_32522
if 
  133@ == 1
goto_if_false @RYDER2_32613
if 
  does_object_exist 240@
goto_if_false @RYDER2_32613
if 
  slide_object 240@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.2 {speedZ} 0.0 {collisionCheck} False
goto_if_false @RYDER2_32613
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStop
133@ += 1

:RYDER2_32613
if 
  132@ == 0
goto_if_false @RYDER2_32753
if 
  does_object_exist 61@
goto_if_false @RYDER2_32746
if 
  has_object_been_damaged 61@
goto_if_false @RYDER2_32746
if 
  does_object_exist 87@
goto_if_false @RYDER2_32684
delete_object 87@

:RYDER2_32684
if 
  does_object_exist 88@
goto_if_false @RYDER2_32705
delete_object 88@

:RYDER2_32705
report_mission_audio_event_at_object 61@ {soundId} ScriptSound.SoundShootControls
if 
  does_object_exist 241@
goto_if_false @RYDER2_32737
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_32737
clear_prints 
132@ += 1

:RYDER2_32746
goto @RYDER2_32875

:RYDER2_32753
if 
  132@ == 1
goto_if_false @RYDER2_32875
if 
  does_object_exist 241@
goto_if_false @RYDER2_32875
if 
  slide_object 241@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} False
goto_if_false @RYDER2_32875
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
if 
  133@ <> 0
goto_if_false @RYDER2_32860
remove_blip 120@

:RYDER2_32860
132@ += 1
144@ = 30000

:RYDER2_32875
if 
  38@ == 0
goto_if_false @RYDER2_32970
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2721.0 {leftBottomY} -2329.8521 {rightTopX} 2810.5481 {rightTopY} -2565.9341 {drawSphere} False
goto_if_false @RYDER2_32963
if 
  126@ == 0
goto_if_false @RYDER2_32956
126@ = 1

:RYDER2_32956
goto @RYDER2_32970

:RYDER2_32963
126@ = 0

:RYDER2_32970
set_var_int_to_lvar_int $ryder_health = 200@
sub_int_lvar_from_int_var $ryder_health -= 127@
if 
  0 > $ryder_health
goto_if_false @RYDER2_33011
$ryder_health = 0

:RYDER2_33011
if 
  124@ == 1
goto_if_false @RYDER2_33124
if 
  131@ == 0
goto_if_false @RYDER2_33124
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_33124
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} True {duringScriptTask} False
add_char_decision_maker_event_response 235@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
131@ = 1

:RYDER2_33124
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_33215
$6890 = get_char_health $ryder
cset_lvar_float_to_var_int 45@ =# $6890
45@ /= 500.0
45@ *= 100.0
if 
  45@ > 100.0
goto_if_false @RYDER2_33207
45@ = 100.0

:RYDER2_33207
cset_var_int_to_lvar_float $6890 =# 45@

:RYDER2_33215
if 
  124@ == 0
goto_if_false @RYDER2_34010
if 
  38@ == 1
goto_if_false @RYDER2_34003
42@ = 0

:RYDER2_33258
if 
  5 > 42@
goto_if_false @RYDER2_33352
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_33338
if or
  has_char_been_damaged_by_char 102@(42@,9i) {handle} $scplayer
  is_player_targetting_char $player1 {handle} 102@(42@,9i)
goto_if_false @RYDER2_33338
124@ = 1

:RYDER2_33338
42@ += 1
goto @RYDER2_33258

:RYDER2_33352
if 
  124@ == 0
goto_if_false @RYDER2_33935
42@ = 0

:RYDER2_33377
if 
  5 > 42@
goto_if_false @RYDER2_33935
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_33921
if 
  172@(42@,9i) == 0
goto_if_false @RYDER2_33677
if 
  126@ == 1
goto_if_false @RYDER2_33677
if 
  has_char_spotted_char 102@(42@,9i) {target} $scplayer
goto_if_false @RYDER2_33592
task_aim_gun_at_char 102@(42@,9i) {target} $scplayer {time} 10000
if 
  300@ == 0
goto_if_false @RYDER2_33563
set_var_text_label s$audio_string = 'RYD2_VA'
set_var_int_to_constant $audio_sound_file = 10670
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
300@ += 1

:RYDER2_33563
181@(42@,9i) = 0
172@(42@,9i) += 1
goto @RYDER2_33677

:RYDER2_33592
if 
  locate_char_on_foot_char_3d $scplayer {target} 102@(42@,9i) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_33677
43@ = get_script_task_status 102@(42@,9i) {taskId} 1593
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @RYDER2_33677
task_turn_char_to_face_char 102@(42@,9i) {target} $scplayer

:RYDER2_33677
if 
  172@(42@,9i) == 1
goto_if_false @RYDER2_33921
if 
  181@(42@,9i) > 8000
goto_if_false @RYDER2_33885
if 
  126@ == 1
goto_if_false @RYDER2_33878
43@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_33819
set_var_text_label s$audio_string = 'RYD2_VB'
set_var_int_to_constant $audio_sound_file = 10671
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
goto @RYDER2_33864

:RYDER2_33819
set_var_text_label s$audio_string = 'RYD2_VG'
set_var_int_to_constant $audio_sound_file = 10676
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 

:RYDER2_33864
124@ = 1
42@ = 5

:RYDER2_33878
goto @RYDER2_33921

:RYDER2_33885
if 
  126@ == 0
goto_if_false @RYDER2_33921
172@(42@,9i) = 0
300@ = 0

:RYDER2_33921
42@ += 1
goto @RYDER2_33377

:RYDER2_33935
if 
  124@ == 1
goto_if_false @RYDER2_34003
42@ = 0

:RYDER2_33960
if 
  9 > 42@
goto_if_false @RYDER2_34003
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_33960

:RYDER2_34003
goto @RYDER2_34891

:RYDER2_34010
if 
  9 > 38@
goto_if_false @RYDER2_34891
if 
  not is_char_dead 102@(38@,9i)
goto_if_false @RYDER2_34891
switch_start 38@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @RYDER2_34817 {caseNum1} 1 {caseLabel1} @RYDER2_34111 {caseNum2} 2 {caseLabel2} @RYDER2_34191 {caseNum3} 3 {caseLabel3} @RYDER2_34421 {caseNum4} 4 {caseLabel4} @RYDER2_34644 {caseNum5} -1 {caseLabel5} @RYDER2_34891 {caseNum6} -1 {caseLabel6} @RYDER2_34891 {caseNum7} -1 {caseLabel7} @RYDER2_34891

:RYDER2_34111
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_34184
48@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 48@
perform_sequence_task 102@(38@,9i) {sequence} 48@
clear_sequence_task 48@
172@(38@,9i) += 1

:RYDER2_34184
goto @RYDER2_34891

:RYDER2_34191
if 
  132@ == 1
goto_if_false @RYDER2_34414
if 
  174@ == 0
goto_if_false @RYDER2_34345
set_char_relationship 104@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 104@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
task_toggle_ped_threat_scanner 104@ {onFoot} False {inCar} False {duringScriptTask} False
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2785.752 {y} -2413.019 {z} 12.6316 {speed} MoveState.Run {time} -2
task_set_char_decision_maker -1 {handleOrTemplate} 236@
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} False
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 104@ {sequence} 48@
clear_sequence_task 48@
174@ += 1

:RYDER2_34345
if 
  174@ == 1
goto_if_false @RYDER2_34414
if 
  locate_char_any_means_char_3d 104@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_34414
task_kill_char_on_foot 104@ {target} $scplayer
174@ += 1

:RYDER2_34414
goto @RYDER2_34891

:RYDER2_34421
if 
  132@ == 1
goto_if_false @RYDER2_34637
if 
  175@ == 0
goto_if_false @RYDER2_34568
set_char_relationship 105@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 105@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
task_toggle_ped_threat_scanner 105@ {onFoot} False {inCar} False {duringScriptTask} False
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2786.6631 {y} -2422.2351 {z} 12.634 {speed} MoveState.Run {time} -2
task_set_char_decision_maker -1 {handleOrTemplate} 236@
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} False
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 105@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_34568
if 
  175@ == 1
goto_if_false @RYDER2_34637
if 
  locate_char_any_means_char_3d 105@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_34637
task_kill_char_on_foot 105@ {target} $scplayer
175@ += 1

:RYDER2_34637
goto @RYDER2_34891

:RYDER2_34644
if 
  176@ == 0
goto_if_false @RYDER2_34741
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2764.928 {y} -2402.124 {z} 12.625 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 1 {actionDelay} 3000 {actionChance} 90
task_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 106@ {sequence} 48@
clear_sequence_task 48@
176@ += 1

:RYDER2_34741
if 
  176@ == 1
goto_if_false @RYDER2_34810
if 
  locate_char_any_means_char_3d 106@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_34810
task_kill_char_on_foot 106@ {target} $scplayer
176@ += 1

:RYDER2_34810
goto @RYDER2_34891

:RYDER2_34817
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_34884
48@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 48@
perform_sequence_task 102@(38@,9i) {sequence} 48@
clear_sequence_task 48@
172@(38@,9i) += 1

:RYDER2_34884
goto @RYDER2_34891

:RYDER2_34891
if 
  38@ == 2
goto_if_false @RYDER2_35390
42@ = 0

:RYDER2_34916
if 
  25 > 42@
goto_if_false @RYDER2_35390
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_35376
if 
  has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_35376
$x, $y, $z = get_object_coordinates 62@(42@,25i)
if 
  is_object_attached 62@(42@,25i)
goto_if_false @RYDER2_35019
goto @RYDER2_35360

:RYDER2_35019
if 
  147@(42@,25i) == 1
goto_if_false @RYDER2_35073
create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35360

:RYDER2_35073
if 
  147@(42@,25i) == 2
goto_if_false @RYDER2_35124
create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35360

:RYDER2_35124
if 
  147@(42@,25i) == 3
goto_if_false @RYDER2_35178
create_pickup_with_ammo 342 {pickupType} PickupType.Once {ammo} 6 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35360

:RYDER2_35178
if 
  147@(42@,25i) == 4
goto_if_false @RYDER2_35230
create_pickup #HEALTH {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35360

:RYDER2_35230
if 
  147@(42@,25i) == 5
goto_if_false @RYDER2_35259
goto @RYDER2_35360

:RYDER2_35259
if 
  147@(42@,25i) == 6
goto_if_false @RYDER2_35313
create_pickup_with_ammo 352 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35360

:RYDER2_35313
if 
  147@(42@,25i) == 7
goto_if_false @RYDER2_35360
create_pickup_with_ammo 349 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)

:RYDER2_35360
145@ += 1
delete_object 62@(42@,25i)

:RYDER2_35376
42@ += 1
goto @RYDER2_34916

:RYDER2_35390
if 
  197@ == 1
goto_if_false @RYDER2_35800
if 
  196@ == 0
goto_if_false @RYDER2_35635
if 
  not is_car_dead 99@
goto_if_false @RYDER2_35628
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_35628
if 
  not is_car_dead 95@
goto_if_false @RYDER2_35628
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_35628
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_35628
if 
  not is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_35628
if 
  is_car_stopped 95@
goto_if_false @RYDER2_35628
196@ = 1
freeze_car_position 95@ {state} True
set_car_collision 95@ {state} False
if 
  not does_object_exist 93@
goto_if_false @RYDER2_35628
$x, $y, $z = get_car_coordinates 95@
$heading = get_car_heading 95@
93@ = create_object_no_offset #FAKE_MULE_COL {x} $x {y} $y {z} $z
set_object_heading 93@ {heading} $heading

:RYDER2_35628
goto @RYDER2_35800

:RYDER2_35635
if 
  271@ == 0
goto_if_false @RYDER2_35800
if 
  not is_car_dead 99@
goto_if_false @RYDER2_35702
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_35695
196@ = 0

:RYDER2_35695
goto @RYDER2_35709

:RYDER2_35702
196@ = 0

:RYDER2_35709
if 
  196@ == 0
goto_if_false @RYDER2_35800
if 
  does_object_exist 93@
goto_if_false @RYDER2_35770
$x, $y, $z = get_object_coordinates 93@
$heading = get_object_heading 93@
delete_object 93@

:RYDER2_35770
if 
  not is_car_dead 95@
goto_if_false @RYDER2_35800
set_car_collision 95@ {state} True
freeze_car_position 95@ {state} False

:RYDER2_35800
if and
  38@ == 3
  34@ >= 3
goto_if_false @RYDER2_36153
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36153
if 
  does_object_exist 60@
goto_if_false @RYDER2_36000
if 
  not has_object_been_damaged 60@
goto_if_false @RYDER2_36000
if 
  locate_char_on_foot_3d $scplayer {x} 2722.114 {y} -2412.0549 {z} 12.6198 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_35975
if 
  301@ == 0
goto_if_false @RYDER2_35968
print_now 'RY2_61' {time} 5000 {flag} 1
301@ += 1

:RYDER2_35968
goto @RYDER2_36000

:RYDER2_35975
if 
  301@ <> 0
goto_if_false @RYDER2_36000
301@ = 0

:RYDER2_36000
if 
  does_object_exist 61@
goto_if_false @RYDER2_36153
if 
  not has_object_been_damaged 61@
goto_if_false @RYDER2_36153
if 
  locate_char_on_foot_3d $scplayer {x} 2773.1011 {y} -2423.418 {z} 12.6269 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_36128
if 
  302@ == 0
goto_if_false @RYDER2_36121
print_now 'RY2_62' {time} 5000 {flag} 1
302@ += 1

:RYDER2_36121
goto @RYDER2_36153

:RYDER2_36128
if 
  302@ <> 0
goto_if_false @RYDER2_36153
302@ = 0

:RYDER2_36153
if 
  38@ == 4
goto_if_false @RYDER2_36565
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36565
if 
  not is_car_dead 95@
goto_if_false @RYDER2_36565
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_36565
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_36540
if 
  303@ == 0
goto_if_false @RYDER2_36533
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_36526 {caseNum1} 0 {caseLabel1} @RYDER2_36382 {caseNum2} 1 {caseLabel2} @RYDER2_36430 {caseNum3} 2 {caseLabel3} @RYDER2_36478 {caseNum4} -1 {caseLabel4} @RYDER2_36526 {caseNum5} -1 {caseLabel5} @RYDER2_36526 {caseNum6} -1 {caseLabel6} @RYDER2_36526 {caseNum7} -1 {caseLabel7} @RYDER2_36526

:RYDER2_36382
set_var_text_label s$audio_string = 'RYD2_JA'
set_var_int_to_constant $audio_sound_file = 10623
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36430
set_var_text_label s$audio_string = 'RYD2_JB'
set_var_int_to_constant $audio_sound_file = 10624
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36478
set_var_text_label s$audio_string = 'RYD2_JC'
set_var_int_to_constant $audio_sound_file = 10625
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36526
303@ += 1

:RYDER2_36533
goto @RYDER2_36565

:RYDER2_36540
if 
  303@ <> 0
goto_if_false @RYDER2_36565
303@ = 0

:RYDER2_36565
if 
  145@ == 3
goto_if_false @RYDER2_36653
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36653
set_var_text_label s$audio_string = 'RYD2_LG'
set_var_int_to_constant $audio_sound_file = 10635
start_new_script @AUDIOL $ryder 0 1 1 0 
145@ += 1

:RYDER2_36653
return 

:RYDER2_36655
if 
  306@ == 6
goto_if_false @RYDER2_36687
307@ = 1
306@ = 5

:RYDER2_36687
if 
  307@ == 1
goto_if_false @RYDER2_36812
if 
  not is_car_dead 95@
goto_if_false @RYDER2_36805
if 
  not does_object_exist 313@
goto_if_false @RYDER2_36805
313@ = create_object #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 313@ {state} False
attach_object_to_car 313@ {handle} 95@ {xOffset} 0.6223 {yOffset} -2.3101 {zOffset} 0.2002 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 317.0214

:RYDER2_36805
goto @RYDER2_36833

:RYDER2_36812
if 
  does_object_exist 313@
goto_if_false @RYDER2_36833
delete_object 313@

:RYDER2_36833
switch_start 306@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER2_38778 {caseNum1} 0 {caseLabel1} @RYDER2_36896 {caseNum2} 1 {caseLabel2} @RYDER2_36971 {caseNum3} 2 {caseLabel3} @RYDER2_37146 {caseNum4} 3 {caseLabel4} @RYDER2_37421 {caseNum5} 4 {caseLabel5} @RYDER2_37796 {caseNum6} 5 {caseLabel6} @RYDER2_38271 {caseNum7} -1 {caseLabel7} @RYDER2_38778

:RYDER2_36896
314@ = 0

:RYDER2_36903
if 
  5 > 314@
goto_if_false @RYDER2_36964
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_36950
delete_object 308@(314@,5i)

:RYDER2_36950
314@ += 1
goto @RYDER2_36903

:RYDER2_36964
goto @RYDER2_38778

:RYDER2_36971
if 
  not does_object_exist 308@
goto_if_false @RYDER2_37071
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37071
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37071
314@ = 1

:RYDER2_37078
if 
  5 > 314@
goto_if_false @RYDER2_37139
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37125
delete_object 308@(314@,5i)

:RYDER2_37125
314@ += 1
goto @RYDER2_37078

:RYDER2_37139
goto @RYDER2_38778

:RYDER2_37146
if 
  not does_object_exist 309@
goto_if_false @RYDER2_37246
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37246
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37246
if 
  not does_object_exist 308@
goto_if_false @RYDER2_37346
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37346
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37346
314@ = 2

:RYDER2_37353
if 
  5 > 314@
goto_if_false @RYDER2_37414
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37400
delete_object 308@(314@,5i)

:RYDER2_37400
314@ += 1
goto @RYDER2_37353

:RYDER2_37414
goto @RYDER2_38778

:RYDER2_37421
if 
  not does_object_exist 310@
goto_if_false @RYDER2_37521
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37521
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_37521
if 
  not does_object_exist 309@
goto_if_false @RYDER2_37621
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37621
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37621
if 
  not does_object_exist 308@
goto_if_false @RYDER2_37721
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37721
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37721
314@ = 3

:RYDER2_37728
if 
  5 > 314@
goto_if_false @RYDER2_37789
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37775
delete_object 308@(314@,5i)

:RYDER2_37775
314@ += 1
goto @RYDER2_37728

:RYDER2_37789
goto @RYDER2_38778

:RYDER2_37796
if 
  not does_object_exist 311@
goto_if_false @RYDER2_37896
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37896
311@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 311@ {state} False
attach_object_to_car 311@ {handle} 95@ {xOffset} -0.4009 {yOffset} -1.7762 {zOffset} 0.2292 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 342.0102

:RYDER2_37896
if 
  not does_object_exist 310@
goto_if_false @RYDER2_37996
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37996
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_37996
if 
  not does_object_exist 309@
goto_if_false @RYDER2_38096
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38096
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38096
if 
  not does_object_exist 308@
goto_if_false @RYDER2_38196
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38196
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38196
314@ = 4

:RYDER2_38203
if 
  5 > 314@
goto_if_false @RYDER2_38264
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_38250
delete_object 308@(314@,5i)

:RYDER2_38250
314@ += 1
goto @RYDER2_38203

:RYDER2_38264
goto @RYDER2_38778

:RYDER2_38271
if 
  not does_object_exist 312@
goto_if_false @RYDER2_38371
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38371
312@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 312@ {state} False
attach_object_to_car 312@ {handle} 95@ {xOffset} -0.4374 {yOffset} -1.7451 {zOffset} 0.9021 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 210.1588

:RYDER2_38371
if 
  not does_object_exist 311@
goto_if_false @RYDER2_38471
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38471
311@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 311@ {state} False
attach_object_to_car 311@ {handle} 95@ {xOffset} -0.4009 {yOffset} -1.7762 {zOffset} 0.2292 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 342.0102

:RYDER2_38471
if 
  not does_object_exist 310@
goto_if_false @RYDER2_38571
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38571
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_38571
if 
  not does_object_exist 309@
goto_if_false @RYDER2_38671
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38671
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38671
if 
  not does_object_exist 308@
goto_if_false @RYDER2_38771
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38771
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38771
goto @RYDER2_38778

:RYDER2_38778
return 

:RYDER2_38780
316@ = -1
315@ = 0

:RYDER2_38794
if 
  10 > 315@
goto_if_false @RYDER2_38861
if 
  not does_object_exist 282@(315@,10i)
goto_if_false @RYDER2_38847
set_lvar_int_to_lvar_int 316@ = 315@
315@ = 10

:RYDER2_38847
315@ += 1
goto @RYDER2_38794

:RYDER2_38861
if 
  316@ <> -1
goto_if_false @RYDER2_38916
set_lvar_int_to_lvar_int 282@(316@,10i) = 281@
53@ = 0
set_object_records_collisions 282@(316@,10i) {state} True
127@ -= 1

:RYDER2_38916
return 

:RYDER2_38918
if 
  318@ == -999
goto_if_false @RYDER2_38961
317@ = create_char PedType.Mission1 {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:RYDER2_38961
if 
  not is_char_dead 317@
goto_if_false @RYDER2_39155
give_weapon_to_char 317@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 317@ {accuracy} 32
set_char_health 317@ {health} 100
set_char_decision_maker 317@ {handleOrTemplate} 236@
set_char_relationship 317@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  133@ <> 0
goto_if_false @RYDER2_39047
set_char_relationship 317@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2

:RYDER2_39047
task_toggle_ped_threat_scanner 317@ {onFoot} True {inCar} True {duringScriptTask} True
set_sense_range 317@ {range} 100.0
if 
  not does_group_exist 239@
goto_if_false @RYDER2_39096
remove_group 239@
239@ = create_group DefaultTaskAllocator.StandStill

:RYDER2_39096
318@, 319@ = get_group_size 239@
if 
  318@ == 0
goto_if_false @RYDER2_39140
set_group_leader 239@ {handle} 317@
goto @RYDER2_39148

:RYDER2_39140
set_group_member 239@ {handle} 317@

:RYDER2_39148
set_char_never_leaves_group 317@ {state} True

:RYDER2_39155
return 
320@ = 999999.0
321@ = -1
322@ = 0.0
323@ = 0.0
324@ = 0.0
42@ = 0

:RYDER2_39211
if 
  25 > 42@
goto_if_false @RYDER2_39471
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_39457
if 
  not is_char_holding_object $scplayer {handle} 62@(42@,25i)
goto_if_false @RYDER2_39457
if 
  not is_object_attached 62@(42@,25i)
goto_if_false @RYDER2_39457
if 
  not has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_39457
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_39342
$x, $y, $z = get_char_coordinates $ryder

:RYDER2_39342
325@, 326@, 327@ = get_object_coordinates 62@(42@,25i)
45@ = get_distance_between_coords_2d 325@ {fromY} 326@ {toX} $x {toZ} $y
if 
  6.0 > 45@
goto_if_false @RYDER2_39457
if 
  is_float_lvar_greater_than_float_lvar 320@ > 45@
goto_if_false @RYDER2_39457
set_lvar_float_to_lvar_float 320@ = 45@
set_lvar_int_to_lvar_int 321@ = 42@
set_lvar_float_to_lvar_float 322@ = 325@
set_lvar_float_to_lvar_float 323@ = 326@
set_lvar_float_to_lvar_float 324@ = 327@

:RYDER2_39457
42@ += 1
goto @RYDER2_39211

:RYDER2_39471
set_lvar_int_to_lvar_int 328@ = 321@
set_lvar_float_to_lvar_float 325@ = 322@
set_lvar_float_to_lvar_float 326@ = 323@
set_lvar_float_to_lvar_float 327@ = 324@
return 

:RYDER2_39505
329@, 330@, 331@ = get_object_coordinates 281@
332@, 333@, 334@, 335@ = get_object_quaternion 281@
drop_object $ryder {state} True
if 
  not is_car_dead 95@
goto_if_false @RYDER2_39575
294@ = get_car_forward_x 95@
295@ = get_car_forward_y 95@

:RYDER2_39575
294@ *= -10.0
295@ *= -10.0
set_object_coordinates 281@ {x} 329@ {y} 330@ {z} 331@
set_object_quaternion 281@ {x} 332@ {y} 333@ {z} 334@ {w} 335@
set_object_dynamic 281@ {state} True
set_object_collision 281@ {state} True
add_to_object_velocity 281@ {x} 294@ {y} 295@ {z} 0.0
if 
  not is_car_dead 95@
goto_if_false @RYDER2_39680
sort_out_object_collision_with_car 281@ {handle} 95@

:RYDER2_39680
gosub @RYDER2_38780
281@ = 0
return 

:RYDER2_39696
if 
  336@ > 0
goto_if_false @RYDER2_40476
switch_start 339@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_40469 {caseNum1} 0 {caseLabel1} @RYDER2_39777 {caseNum2} 1 {caseLabel2} @RYDER2_39819 {caseNum3} 2 {caseLabel3} @RYDER2_39994 {caseNum4} 3 {caseLabel4} @RYDER2_40260 {caseNum5} -1 {caseLabel5} @RYDER2_40469 {caseNum6} -1 {caseLabel6} @RYDER2_40469 {caseNum7} -1 {caseLabel7} @RYDER2_40469

:RYDER2_39777
if 
  not has_model_loaded 287
goto_if_false @RYDER2_39805
request_model 287
goto @RYDER2_39812

:RYDER2_39805
339@ += 1

:RYDER2_39812
goto @RYDER2_40469

:RYDER2_39819
345@ = -1
346@ = 0

:RYDER2_39833
if 
  5 > 346@
goto_if_false @RYDER2_39962
if 
  does_char_exist 340@(346@,5i)
goto_if_false @RYDER2_39933
if 
  is_char_dead 340@(346@,5i)
goto_if_false @RYDER2_39926
mark_char_as_no_longer_needed 340@(346@,5i)
340@(346@,5i) = 0
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_39926
goto @RYDER2_39948

:RYDER2_39933
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_39948
346@ += 1
goto @RYDER2_39833

:RYDER2_39962
if 
  345@ <> -1
goto_if_false @RYDER2_39987
339@ += 1

:RYDER2_39987
goto @RYDER2_40469

:RYDER2_39994
if or
  338@ == 3
  338@ == 7
  338@ == 8
  338@ == 9
goto_if_false @RYDER2_40047
338@ += 1
goto @RYDER2_39994

:RYDER2_40047
if 
  338@ > 9
goto_if_false @RYDER2_40072
338@ = 0

:RYDER2_40072
if 
  not is_int_lvar_equal_to_int_lvar 338@ == 337@
goto_if_false @RYDER2_40221
if 
  not is_point_on_screen 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {radius} 2.0
goto_if_false @RYDER2_40207
if 
  not is_point_obscured_by_a_mission_entity 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 2.0
goto_if_false @RYDER2_40193
339@ += 1
goto @RYDER2_40200

:RYDER2_40193
338@ += 1

:RYDER2_40200
goto @RYDER2_40214

:RYDER2_40207
338@ += 1

:RYDER2_40214
goto @RYDER2_40228

:RYDER2_40221
338@ += 1

:RYDER2_40228
if 
  338@ > 9
goto_if_false @RYDER2_40253
338@ = 0

:RYDER2_40253
goto @RYDER2_40469

:RYDER2_40260
create_char PedType.Mission1 {modelId} 287 {x} 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {var_handle} 340@(345@,5i)
set_lvar_int_to_lvar_int 317@ = 340@(345@,5i)
gosub @RYDER2_38918
48@ = open_sequence_task 
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} True
task_go_straight_to_coord -1 {x} 387@(338@,10f) {y} 397@(338@,10f) {z} 407@(338@,10f) {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 417@(338@,10f) {y} 427@(338@,10f) {z} 437@(338@,10f) {speed} MoveState.Run {time} -2
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_40418
task_goto_char -1 {target} $ryder {time} 20000 {radius} 25.0

:RYDER2_40418
close_sequence_task 48@
perform_sequence_task 340@(345@,5i) {sequence} 48@
clear_sequence_task 48@
set_lvar_int_to_lvar_int 337@ = 338@
336@ += -1
339@ = 0
goto @RYDER2_40469

:RYDER2_40469
goto @RYDER2_40483

:RYDER2_40476
339@ = 0

:RYDER2_40483
return 
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RYDER2_40556
477@ += 1
if 
  477@ > 24
goto_if_false @RYDER2_40532
477@ = 0

:RYDER2_40532
write_debug_with_int "ADJUST_BOX_NUMBER" {number} 477@

:RYDER2_40556
if 
  does_object_exist 62@(477@,25i)
goto_if_false @RYDER2_40653
$x, $y, $z = get_object_coordinates 62@(477@,25i)
$heading = get_object_heading 62@(477@,25i)
$z += 1.0
draw_corona $x {y} $y {z} $z {size} 0.2 {coronaType} CoronaType.Moon {flareType} FlareType.None {r} 255 {g} 0 {b} 0
$z += -1.0

:RYDER2_40653
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @RYDER2_40678
$y += 0.1

:RYDER2_40678
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @RYDER2_40703
$y += -0.1

:RYDER2_40703
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @RYDER2_40728
$x += 0.1

:RYDER2_40728
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @RYDER2_40753
$x += -0.1

:RYDER2_40753
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @RYDER2_40778
$z += 0.01

:RYDER2_40778
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @RYDER2_40803
$z += -0.01

:RYDER2_40803
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @RYDER2_40828
$heading += 1.0

:RYDER2_40828
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @RYDER2_40853
$heading += -1.0

:RYDER2_40853
if 
  does_object_exist 62@(477@,25i)
goto_if_false @RYDER2_40903
set_object_coordinates 62@(477@,25i) {x} $x {y} $y {z} $z
set_object_heading 62@(477@,25i) {heading} $heading

:RYDER2_40903
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @RYDER2_41075
save_newline_to_debug_file 
save_string_to_debug_file "BOX COORDS = "
save_int_to_debug_file 477@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:RYDER2_41075
return 

:RYDER2_41077
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RYDER2_41095
clear_wanted_level $player1
register_mission_passed 'RYDER_2'
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
if 
  $flag_returned_tags == 0
goto_if_false @RYDER2_41174
set_gang_weapons GangType.Grove {weaponType1} WeaponType.Pistol {weaponType2} WeaponType.Tec9 {weaponType3} WeaponType.Unarmed

:RYDER2_41174
remove_blip $ryder_contact_blip
set_int_stat StatId.PassedRyder2 {value} 1
$flag_ryder_mission_counter += 1
return 

:RYDER2_41195
if 
  is_player_playing $player1
goto_if_false @RYDER2_41218
set_player_group_to_follow_always $player1 {state} False

:RYDER2_41218
if 
  not is_car_dead 95@
goto_if_false @RYDER2_41248
freeze_car_position 95@ {state} False
set_vehicle_is_considered_by_player 95@ {state} True

:RYDER2_41248
set_player_in_car_camera_mode 2
if 
  not is_car_dead 98@
goto_if_false @RYDER2_41273
mark_car_as_no_longer_needed 98@

:RYDER2_41273
if 
  124@ == 1
goto_if_false @RYDER2_41473
42@ = 0

:RYDER2_41298
if 
  9 > 42@
goto_if_false @RYDER2_41382
if 
  does_char_exist 102@(42@,9i)
goto_if_false @RYDER2_41368
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_41368
task_kill_char_on_foot 102@(42@,9i) {target} $scplayer

:RYDER2_41368
42@ += 1
goto @RYDER2_41298

:RYDER2_41382
42@ = 0

:RYDER2_41389
if 
  5 > 42@
goto_if_false @RYDER2_41473
if 
  does_char_exist 340@(42@,5i)
goto_if_false @RYDER2_41459
if 
  not is_char_dead 340@(42@,5i)
goto_if_false @RYDER2_41459
task_kill_char_on_foot 340@(42@,5i) {target} $scplayer

:RYDER2_41459
42@ += 1
goto @RYDER2_41389

:RYDER2_41473
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_41494
remove_char_elegantly $ryder

:RYDER2_41494
mark_object_as_no_longer_needed 240@
mark_object_as_no_longer_needed 241@
mark_object_as_no_longer_needed 257@
mark_object_as_no_longer_needed 258@
mark_object_as_no_longer_needed 259@
42@ = 0

:RYDER2_41526
if 
  25 > 42@
goto_if_false @RYDER2_41609
mark_object_as_no_longer_needed 62@(42@,25i)
if 
  210@(42@,25i) <> 0
goto_if_false @RYDER2_41595
remove_pickup 210@(42@,25i)
210@(42@,25i) = 0

:RYDER2_41595
42@ += 1
goto @RYDER2_41526

:RYDER2_41609
42@ = 0

:RYDER2_41616
if 
  5 > 42@
goto_if_false @RYDER2_41648
42@ += 1
goto @RYDER2_41616

:RYDER2_41648
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
42@ = 0

:RYDER2_41680
if 
  5 > 42@
goto_if_false @RYDER2_41741
if 
  does_object_exist 308@(42@,5i)
goto_if_false @RYDER2_41727
delete_object 308@(42@,5i)

:RYDER2_41727
42@ += 1
goto @RYDER2_41680

:RYDER2_41741
if 
  does_object_exist 313@
goto_if_false @RYDER2_41762
delete_object 313@

:RYDER2_41762
if 
  does_object_exist 93@
goto_if_false @RYDER2_41783
delete_object 93@

:RYDER2_41783
if 
  does_vehicle_exist 95@
goto_if_false @RYDER2_41829
if 
  not is_car_dead 95@
goto_if_false @RYDER2_41829
freeze_car_position 95@ {state} False
set_car_collision 95@ {state} True

:RYDER2_41829
switch_emergency_services True
remove_decision_maker 237@
remove_decision_maker 236@
remove_decision_maker 235@
remove_decision_maker 238@
dont_suppress_car_model 414
clear_onscreen_counter $ryder_health
clear_onscreen_counter $6890
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 500
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #CJ_CARDBRD_PICKUP
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
remove_animation "RYDER"
remove_animation "COLT45"
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$onmission = 0
mission_has_finished 
return 

//-------------Mission 27---------------
// Originally: OG Loc

:TWAR7
script_name 'TWAR7'
gosub @TWAR7_47
if 
  has_deatharrest_been_executed 
goto_if_false @TWAR7_38
gosub @TWAR7_23165

:TWAR7_38
gosub @TWAR7_23270
terminate_this_script 

:TWAR7_47
$onmission = 1
register_mission_given 
load_mission_text 'SMOKE1'
if 
  $onmission == 0
goto_if_false @TWAR7_130
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7

:TWAR7_130
clear_prints 
wait 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
85@ = 0
71@ = 0
72@ = 0
73@ = 0
79@ = 0
80@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
139@ = 0.0
140@ = 0.0
83@ = 0
84@ = 0
85@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0.0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
81@ = 0
82@ = 0.0
make_player_gang_disappear 
clear_area 2072.3 {y} -1695.2 {z} 12.5 {radius} 80.0 {clearParticles} True
65@ = create_object #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 12.5
load_cutscene 'SMOKE1A'

:TWAR7_515
if 
  not has_cutscene_loaded 
goto_if_false @TWAR7_539
wait 0
goto @TWAR7_515

:TWAR7_539
start_cutscene 
do_fade 1000 {direction} Fade.In

:TWAR7_548
if 
  not has_cutscene_finished 
goto_if_false @TWAR7_572
wait 0
goto @TWAR7_548

:TWAR7_572
do_fade 0 {direction} Fade.Out

:TWAR7_578
if 
  get_fading_status 
goto_if_false @TWAR7_602
wait 0
goto @TWAR7_578

:TWAR7_602
clear_cutscene 
delete_object 65@
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 466
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
make_player_gang_disappear 
set_fixed_camera_position 2073.8701 {y} -1682.701 {z} 14.1963 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2073.698 {y} -1683.686 {z} 14.1768 {switchStyle} SwitchType.JumpCut
148@ = load_char_decision_maker DecisionMakerType.Tough
149@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
146@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 146@ {event} Event.LeaderEnteredCarAsDriver
add_group_decision_maker_event_response 146@ {event} Event.LeaderEnteredCarAsDriver {taskId} TaskId.GroupEnterCarAndPerformSequence {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
clear_group_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
clear_group_decision_maker_event_response 146@ {event} Event.PlayerCommandToGroup
clear_group_decision_maker_event_response 146@ {event} Event.Damage
set_group_decision_maker $Players_Group {handleOrTemplate} 146@
clear_area 2075.0 {y} -1688.5 {z} 12.29 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
37@ = create_car 466 {x} 2075.0 {y} -1688.5 {z} 12.29
set_car_heading 37@ {heading} 359.74
change_car_colour 37@ {color1} 98 {color2} 14
set_can_respray_car 37@ {changeColors} False
set_radio_channel RadioChannel.BounceFM
clear_area 2077.0 {y} -1691.1 {z} 12.5 {radius} 1.0 {clearParticles} True
$big_smoke = create_char PedType.Mission2 {modelId} 290 {x} 2077.0 {y} -1691.1 {z} 12.5
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_heading $big_smoke {heading} 255.7
set_char_never_targetted $big_smoke {state} True
set_char_cant_be_dragged_out $big_smoke {state} True
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} 37@ {time} -2 {seat} SeatId.BikeRear
set_char_decision_maker $big_smoke {handleOrTemplate} 149@
clear_area 2075.3 {y} -1693.4 {z} 12.5 {radius} 1.0 {clearParticles} True
$sweet = create_char PedType.Mission2 {modelId} 291 {x} 2075.3 {y} -1693.4 {z} 12.5
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} 37@ {time} -2 {seat} SeatId.RearRight
set_char_decision_maker $sweet {handleOrTemplate} 149@
clear_char_tasks_immediately $scplayer
clear_area 2072.8999 {y} -1690.6 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2072.8999 {y} -1690.6 {z} 12.5
set_char_heading $scplayer {heading} 33.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} 37@ {time} -2
switch_random_trains False
delete_all_trains 
enable_ambient_crime False
switch_entry_exit 'LAHS1A' {state} False
do_fade 500 {direction} Fade.In
69@ = 1
skip_cutscene_start_internal @TWAR7_1756

:TWAR7_1306
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TWAR7_1332
goto @TWAR7_23183

:TWAR7_1332
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1364
goto @TWAR7_23165

:TWAR7_1364
if or
  67@ == 0
  67@ == 1
goto_if_false @TWAR7_1674
if 
  81@ == 1
goto_if_false @TWAR7_1674
if 
  is_skip_waiting_for_script_to_fade_in 
goto_if_false @TWAR7_1674
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_1598
request_animation "CAR_CHAT"
load_special_character 3 {modelName} 'OGLOC'
load_all_models_now 
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
set_char_get_out_upside_down_car $mc_strap {state} False
set_char_heading $mc_strap {heading} 97.2
set_char_never_targetted $mc_strap {state} True
set_char_cant_be_dragged_out $mc_strap {state} True
set_char_suffers_critical_hits $mc_strap {state} False
set_char_only_damaged_by_player $mc_strap {state} True
warp_char_into_car_as_passenger $mc_strap {handle} 37@ {seat} -1
set_sense_range $mc_strap {range} 80.0

:TWAR7_1598
remove_blip 66@
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7
print_now 'SMK1_10' {time} 7000 {flag} 1
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In
85@ = 2
68@ = 2
67@ = 1

:TWAR7_1674
if 
  67@ == 0
goto_if_false @TWAR7_2248
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_2248
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_2248
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_2248
69@ = 0

:TWAR7_1756
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1790
goto @TWAR7_23165

:TWAR7_1790
if 
  69@ == 1
goto_if_false @TWAR7_1914
do_fade 500 {direction} Fade.Out

:TWAR7_1815
if 
  get_fading_status 
goto_if_false @TWAR7_1839
wait 0
goto @TWAR7_1815

:TWAR7_1839
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1871
goto @TWAR7_23165

:TWAR7_1871
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 37@
clear_char_tasks_immediately $big_smoke
warp_char_into_car_as_passenger $big_smoke {handle} 37@ {seat} SeatId.BikeRear
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} 37@ {seat} SeatId.RearRight

:TWAR7_1914
if 
  $h9_door_c == 1
goto_if_false @TWAR7_2009
set_up_skip_for_specific_vehicle 1526.9 {y} -1654.5 {z} 12.1 {heading} 180.0 {handle} 37@
if 
  $tw7_trip_skip_flag == 0
goto_if_false @TWAR7_1993
print_help 'SKIP_1'
$tw7_trip_skip_flag = 1

:TWAR7_1993
print_now 'SMK1_02' {time} 7000 {flag} 1

:TWAR7_2009
if 
  $h9_door_c == 2
goto_if_false @TWAR7_2095
set_up_skip_for_vehicle_finished_by_script 2453.8 {y} -1305.0 {z} 22.5 {heading} 0.0 {vehicle} 37@
if 
  $tw7_trip_skip_flag == 0
goto_if_false @TWAR7_2088
print_help 'SKIP_1'
$tw7_trip_skip_flag = 1

:TWAR7_2088
81@ = 1

:TWAR7_2095
66@ = add_blip_for_coord 1532.8 {y} -1672.9 {z} 12.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  69@ == 1
goto_if_false @TWAR7_2220
do_fade 500 {direction} Fade.In

:TWAR7_2164
if 
  get_fading_status 
goto_if_false @TWAR7_2188
wait 0
goto @TWAR7_2164

:TWAR7_2188
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_2220
goto @TWAR7_23165

:TWAR7_2220
TIMERB = 0
68@ = 0
71@ = 1
67@ = 1

:TWAR7_2248
if 
  67@ == 1
goto_if_false @TWAR7_4048
if 
  68@ == 0
goto_if_false @TWAR7_2624
if 
  83@ == 0
goto_if_false @TWAR7_2388
if 
  85@ == 0
goto_if_false @TWAR7_2388
if 
  TIMERB > 7000
goto_if_false @TWAR7_2388
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $sweet {state} True
83@ = 1
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_2388
if 
  85@ == 1
goto_if_false @TWAR7_2452
if 
  83@ == 0
goto_if_false @TWAR7_2452
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
85@ = 2

:TWAR7_2452
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_2503
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TWAR7_2503
set_char_coordinates $scplayer {x} 1531.4 {y} -1693.7 {z} 12.4

:TWAR7_2503
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  locate_char_in_car_3d $scplayer {x} 1532.8 {y} -1672.9 {z} 12.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_2624
clear_help 
set_player_control $player1 {state} False
68@ = 1

:TWAR7_2624
if 
  68@ == 1
goto_if_false @TWAR7_3598
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
if 
  $h9_door_c == 0
goto_if_false @TWAR7_2712
$h9_door_c = 1

:TWAR7_2712
clear_skip 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:TWAR7_2729
if 
  get_fading_status 
goto_if_false @TWAR7_2753
wait 0
goto @TWAR7_2729

:TWAR7_2753
make_player_safe_for_cutscene $player1
switch_streaming False
clear_area 1532.8 {y} -1672.9 {z} 12.4 {radius} 300.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1496.5 {y} -1672.6 {z} 13.2
delete_char $big_smoke
delete_char $sweet
delete_car 37@
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 466
load_texture_dictionary 'LD_BUM'
load_sprite 1 {spriteName} "BUM2"
load_sprite 2 {spriteName} "BLKDOT"
load_all_models_now 
use_text_commands True
load_cutscene 'SMOKE1B'

:TWAR7_2903
if 
  not has_cutscene_loaded 
goto_if_false @TWAR7_2927
wait 0
goto @TWAR7_2903

:TWAR7_2927
start_cutscene 
do_fade 1000 {direction} Fade.In
TIMERA = 0

:TWAR7_2943
if 
  not has_cutscene_finished 
goto_if_false @TWAR7_2967
wait 0
goto @TWAR7_2943

:TWAR7_2967
clear_cutscene 
do_fade 0 {direction} Fade.Out

:TWAR7_2975
if 
  get_fading_status 
goto_if_false @TWAR7_2999
wait 0
goto @TWAR7_2975

:TWAR7_2999
use_text_commands False
remove_texture_dictionary 
request_model 466
request_animation "CAR_CHAT"
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'OGLOC'
load_all_models_now 
custom_plate_for_next_car 466 {text} "_A2TMFK_"
37@ = create_car 466 {x} 1532.8 {y} -1672.9 {z} 12.4
set_car_heading 37@ {heading} 184.0
change_car_colour 37@ {color1} 98 {color2} 14
set_can_respray_car 37@ {changeColors} False
warp_char_into_car $scplayer {vehicle} 37@
set_radio_channel RadioChannel.BounceFM
$big_smoke = create_char PedType.Mission2 {modelId} 290 {x} 2072.3 {y} -1697.2 {z} 12.5
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_heading $big_smoke {heading} 255.7
set_char_never_targetted $big_smoke {state} True
set_char_cant_be_dragged_out $big_smoke {state} True
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
task_enter_car_as_passenger $big_smoke {vehicle} 37@ {time} -2 {seat} SeatId.BikeRear
set_char_decision_maker $big_smoke {handleOrTemplate} 149@
warp_char_into_car_as_passenger $big_smoke {handle} 37@ {seat} -1
$sweet = create_char PedType.Mission2 {modelId} 291 {x} 2072.3 {y} -1696.2 {z} 12.5
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_anim_group_for_char $sweet {animGroup} "GANG2"
task_enter_car_as_passenger $sweet {vehicle} 37@ {time} -2 {seat} SeatId.RearRight
set_char_decision_maker $sweet {handleOrTemplate} 149@
warp_char_into_car_as_passenger $sweet {handle} 37@ {seat} -1
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
set_char_get_out_upside_down_car $mc_strap {state} False
set_char_heading $mc_strap {heading} 97.2
set_char_never_targetted $mc_strap {state} True
set_char_cant_be_dragged_out $mc_strap {state} True
set_char_suffers_critical_hits $mc_strap {state} False
set_char_only_damaged_by_player $mc_strap {state} True
warp_char_into_car_as_passenger $mc_strap {handle} 37@ {seat} -1
set_sense_range $mc_strap {range} 80.0
clear_char_decision_maker_event_response 148@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 148@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 148@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_char_decision_maker $mc_strap {handleOrTemplate} 148@
remove_blip 66@
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_3554
goto @TWAR7_23165

:TWAR7_3554
do_fade 1000 {direction} Fade.In
print_now 'SMK1_10' {time} 7000 {flag} 1
TIMERB = 0
85@ = 0
68@ = 2

:TWAR7_3598
if 
  68@ == 2
goto_if_false @TWAR7_4048
if 
  83@ == 0
goto_if_false @TWAR7_3727
if 
  85@ == 0
goto_if_false @TWAR7_3727
if 
  TIMERB > 7000
goto_if_false @TWAR7_3727
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $sweet {state} True
shut_char_up_for_scripted_speech $mc_strap {state} True
83@ = 2
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_3727
if 
  85@ == 1
goto_if_false @TWAR7_3798
if 
  83@ == 0
goto_if_false @TWAR7_3798
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $mc_strap {state} False
85@ = 2

:TWAR7_3798
if 
  is_char_in_any_car $mc_strap
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $sweet
goto_if_false @TWAR7_3897
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TWAR7_3897
set_char_coordinates $scplayer {x} 2454.7 {y} -1294.5 {z} 22.7

:TWAR7_3897
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  locate_char_in_car_3d $scplayer {x} 2454.3999 {y} -1284.5 {z} 22.7 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_4048
if 
  $h9_door_c == 1
goto_if_false @TWAR7_4027
$h9_door_c = 2

:TWAR7_4027
85@ = 0
68@ = 0
67@ = 2

:TWAR7_4048
if 
  67@ == 2
goto_if_false @TWAR7_5665
if 
  68@ == 0
goto_if_false @TWAR7_4312
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 2451.2 {y} -1295.1 {z} 24.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2459.7 {y} -1284.6 {z} 26.5 {switchStyle} SwitchType.JumpCut
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $mc_strap {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
69@ = 1
skip_cutscene_start_internal @TWAR7_4925
task_play_anim $mc_strap {animationName} "CAR_SC1_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
83@ = 3
84@ = 0
gosub @TWAR7_29790
TIMERA = 0
68@ = 1

:TWAR7_4312
if 
  68@ == 1
goto_if_false @TWAR7_4439
if 
  84@ == 1
goto_if_false @TWAR7_4439
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim $sweet {animationName} "CAR_SC1_BL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 2

:TWAR7_4439
if 
  68@ == 2
goto_if_false @TWAR7_4524
if 
  84@ == 4
goto_if_false @TWAR7_4524
task_play_anim $big_smoke {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 3

:TWAR7_4524
if 
  68@ == 3
goto_if_false @TWAR7_4711
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
if 
  83@ == 0
goto_if_false @TWAR7_4711
if 
  is_car_stopped 37@
goto_if_false @TWAR7_4711
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2457.3999 {y} -1286.1 {z} 23.0 {speed} MoveState.Run {time} 60000
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.3999 {y} -1287.8 {z} 23.0 {speed} MoveState.Run {time} 60000
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
68@ = 4

:TWAR7_4711
if 
  68@ == 4
goto_if_false @TWAR7_4860
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_4860
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_4816
warp_char_from_car_to_coord $big_smoke {x} 2472.8 {y} -1277.9 {z} 28.9

:TWAR7_4816
warp_char_into_car $big_smoke {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.Locked
task_car_drive_wander $big_smoke {vehicle} 37@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars
TIMERA = 0
68@ = 5

:TWAR7_4860
if 
  68@ == 5
goto_if_false @TWAR7_5665
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
if 
  TIMERA > 0
goto_if_false @TWAR7_5665
69@ = 0

:TWAR7_4925
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_4959
goto @TWAR7_23165

:TWAR7_4959
if 
  69@ == 1
goto_if_false @TWAR7_5339
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_5001
if 
  get_fading_status 
goto_if_false @TWAR7_5069
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
wait 0
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
goto @TWAR7_5001

:TWAR7_5069
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5101
goto @TWAR7_23165

:TWAR7_5101
clear_area 2457.3999 {y} -1286.1 {z} 23.0 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2457.3999 {y} -1286.1 {z} 23.0
set_char_heading $scplayer {heading} 230.2
clear_area 2458.3999 {y} -1287.8 {z} 23.0 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $mc_strap
set_char_coordinates $mc_strap {x} 2458.3999 {y} -1287.8 {z} 23.0
set_char_heading $mc_strap {heading} 230.2
clear_area 2452.3999 {y} -1267.6 {z} 23.8 {radius} 5.0 {clearParticles} True
set_car_coordinates 37@ {x} 2452.3999 {y} -1267.6 {z} 23.8
set_car_heading 37@ {heading} 0.0
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_5309
warp_char_from_car_to_coord $big_smoke {x} 2472.8 {y} -1277.9 {z} 28.9

:TWAR7_5309
warp_char_into_car $big_smoke {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.Locked
task_car_drive_wander $big_smoke {vehicle} 37@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars

:TWAR7_5339
145@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2463.5 {y} -1286.9 {z} 25.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2463.8999 {y} -1278.4 {z} 29.0 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2467.8 {y} -1277.1 {z} 28.9 {speed} MoveState.Run {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
remove_animation "CAR_CHAT"
remove_blip 66@
66@ = add_blip_for_coord 2468.8 {y} -1278.4 {z} 28.9
set_blip_as_friendly 66@ {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
make_player_gang_reappear 
switch_widescreen False
shut_all_chars_up False
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'SMK1_03' {time} 7000 {flag} 1
if 
  69@ == 1
goto_if_false @TWAR7_5651
do_fade 500 {direction} Fade.In

:TWAR7_5551
if 
  get_fading_status 
goto_if_false @TWAR7_5619
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
wait 0
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
goto @TWAR7_5551

:TWAR7_5619
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5651
goto @TWAR7_23165

:TWAR7_5651
68@ = 0
67@ = 3

:TWAR7_5665
if 
  67@ == 3
goto_if_false @TWAR7_8884
if 
  68@ == 0
goto_if_false @TWAR7_5756
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 2468.8 {y} -1278.2 {z} 29.1 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @TWAR7_5756
68@ = 1

:TWAR7_5756
if 
  68@ == 1
goto_if_false @TWAR7_6760
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_5802
if 
  get_fading_status 
goto_if_false @TWAR7_5826
wait 0
goto @TWAR7_5802

:TWAR7_5826
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5858
goto @TWAR7_23165

:TWAR7_5858
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 461
request_model 372
request_model 109
request_model 352
request_animation "CRIB"
request_animation "MISC"
request_animation "GANGS"
request_animation "RAPPING"
load_texture_dictionary 'LD_BUM'
load_sprite 1 {spriteName} "BUM1"
load_sprite 2 {spriteName} "BLKDOT"
load_all_models_now 
use_text_commands True
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1817

:TWAR7_5983
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TWAR7_6009
wait 0
goto @TWAR7_5983

:TWAR7_6009
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6041
goto @TWAR7_23165

:TWAR7_6041
load_all_models_now 
clear_area 2471.0 {y} -1285.1 {z} 28.3 {radius} 30.0 {clearParticles} True
36@ = create_car 461 {x} 2471.0 {y} -1285.1 {z} 28.3
set_car_heading 36@ {heading} 272.5
set_can_burst_car_tyres 36@ {state} False
clear_area 2488.2 {y} -1279.9 {z} 30.0 {radius} 30.0 {clearParticles} True
35@ = create_car 461 {x} 2488.2 {y} -1279.9 {z} 30.0
set_car_only_damaged_by_player 35@ {state} True
set_car_heading 35@ {heading} 286.4
set_car_always_create_skids 35@ {state} True
set_can_burst_car_tyres 35@ {state} False
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_area 2483.8999 {y} -1280.2 {z} 29.4 {radius} 30.0 {clearParticles} True
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2483.8999 {y} -1280.2 {z} 29.4
shut_char_up_for_scripted_speech 34@ {state} True
set_char_money 34@ {amount} 500
set_char_heading 34@ {heading} 261.6
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_suffers_critical_hits 34@ {state} False
set_char_only_damaged_by_player 34@ {state} True
set_char_can_be_knocked_off_bike 34@ {stayOnBike} True
set_char_stay_in_same_place 34@ {state} True
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} True
set_char_shoot_rate 34@ {rate} 20
set_char_decision_maker 34@ {handleOrTemplate} 149@
147@ = open_sequence_task 
task_drive_by -1 {targetChar} 34@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100
close_sequence_task 147@
set_group_sequence $Players_Group {sequence} 147@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $mc_strap
clear_area 2468.0 {y} -1278.5 {z} 29.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2468.0 {y} -1278.5 {z} 29.1
set_char_heading $scplayer {heading} 269.4
clear_area 2467.3999 {y} -1275.8 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2467.3999 {y} -1275.8 {z} 28.8
set_char_heading $mc_strap {heading} 282.8
145@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2469.2 {y} -1278.7 {z} 29.3 {speed} MoveState.Walk {time} 60000
task_achieve_heading -1 {heading} 262.0
task_play_anim -1 {animationName} "CRIB_USE_SWITCH" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 800
task_look_at_char -1 {target} $mc_strap {time} 7000
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
69@ = 1
skip_cutscene_start_internal @TWAR7_8172
clear_prints 
set_fixed_camera_position 2461.7 {y} -1273.7 {z} 30.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2470.1001 {y} -1277.1 {z} 30.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:TWAR7_6697
if 
  get_fading_status 
goto_if_false @TWAR7_6721
wait 0
goto @TWAR7_6697

:TWAR7_6721
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6753
goto @TWAR7_23165

:TWAR7_6753
68@ = 2

:TWAR7_6760
if 
  68@ == 2
goto_if_false @TWAR7_6884
if 
  is_char_playing_anim $scplayer {animationName} "CRIB_USE_SWITCH"
goto_if_false @TWAR7_6884
82@ = get_char_anim_current_time $scplayer {animationName} "CRIB_USE_SWITCH"
if 
  82@ > 0.65
goto_if_false @TWAR7_6884
report_mission_audio_event_at_position 2469.2 {y} -1278.7 {z} 29.3 {soundId} ScriptSound.SoundOglocDoorbell
68@ = 3

:TWAR7_6884
if 
  68@ == 3
goto_if_false @TWAR7_7086
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_7086
145@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 2467.8 {y} -1274.4 {z} 28.8 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2468.6001 {y} -1273.3 {z} 28.8 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 278.7
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 0
130@ = 5
gosub @TWAR7_29790
68@ = 4

:TWAR7_7086
if 
  68@ == 4
goto_if_false @TWAR7_7198
if 
  84@ > 2
goto_if_false @TWAR7_7198
145@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $mc_strap
task_play_anim -1 {animationName} "PLYR_SHKHEAD" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
68@ = 5

:TWAR7_7198
if 
  68@ == 5
goto_if_false @TWAR7_7402
if 
  83@ == 0
goto_if_false @TWAR7_7402
145@ = open_sequence_task 
task_play_anim -1 {animationName} "BNG_WNDW" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_play_anim -1 {animationName} "LAUGH_01" {animationFile} "RAPPING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 5
130@ = 9
gosub @TWAR7_29790
TIMERA = 0
68@ = 6

:TWAR7_7402
if 
  68@ == 6
goto_if_false @TWAR7_7512
if 
  is_char_playing_anim $mc_strap {animationName} "BNG_WNDW"
goto_if_false @TWAR7_7512
82@ = get_char_anim_current_time $mc_strap {animationName} "BNG_WNDW"
if 
  82@ > 0.4
goto_if_false @TWAR7_7512
report_mission_audio_event_at_position 2468.6001 {y} -1273.3 {z} 28.8 {soundId} ScriptSound.SoundOglocWindowRattleBang
68@ = 7

:TWAR7_7512
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8884
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8884
if 
  68@ == 7
goto_if_false @TWAR7_7698
if 
  83@ == 0
goto_if_false @TWAR7_7698
145@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 9
130@ = 10
gosub @TWAR7_29790
set_fixed_camera_position 2495.3999 {y} -1282.3 {z} 32.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2479.2 {y} -1272.5 {z} 30.5 {switchStyle} SwitchType.JumpCut
68@ = 8

:TWAR7_7698
if 
  68@ == 8
goto_if_false @TWAR7_7756
if 
  is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_7756
start_playback_recorded_car 35@ {path} 30
TIMERA = 0
68@ = 9

:TWAR7_7756
if 
  68@ == 9
goto_if_false @TWAR7_8070
if 
  TIMERA > 2000
goto_if_false @TWAR7_8070
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8070
clear_area 2468.3999 {y} -1282.4 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2468.3999 {y} -1282.4 {z} 28.8
set_char_heading $mc_strap {heading} 171.7
set_next_desired_move_state MoveState.Run
145@ = open_sequence_task 
task_enter_car_as_passenger -1 {vehicle} 36@ {time} -2 {seat} -1
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
clear_area 2467.3999 {y} -1281.2 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2467.3999 {y} -1281.2 {z} 28.8
set_char_heading $scplayer {heading} 171.7
set_next_desired_move_state MoveState.Run
145@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 36@ {time} -2
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
set_fixed_camera_position 2460.8999 {y} -1283.7 {z} 30.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.6001 {y} -1284.4 {z} 31.1 {switchStyle} SwitchType.JumpCut
83@ = 5
84@ = 0
gosub @TWAR7_29790
68@ = 10

:TWAR7_8070
if 
  68@ == 10
goto_if_false @TWAR7_8884
if 
  83@ == 0
goto_if_false @TWAR7_8884
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_8884
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8884
if and
  is_char_in_car $scplayer {vehicle} 36@
  is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_8884
69@ = 0

:TWAR7_8172
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8206
goto @TWAR7_23165

:TWAR7_8206
if 
  69@ == 1
goto_if_false @TWAR7_8454
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_8252
if 
  get_fading_status 
goto_if_false @TWAR7_8276
wait 0
goto @TWAR7_8252

:TWAR7_8276
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8308
goto @TWAR7_23165

:TWAR7_8308
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8372
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8372
clear_char_tasks 34@
if 
  not is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_8372
warp_char_into_car 34@ {vehicle} 35@

:TWAR7_8372
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8454
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $mc_strap
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_8425
warp_char_into_car $scplayer {vehicle} 36@

:TWAR7_8425
if 
  not is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_8454
task_warp_char_into_car_as_passenger $mc_strap {vehicle} 36@ {seatId} -1

:TWAR7_8454
ensure_player_has_drive_by_weapon $player1 {ammo} 78
give_weapon_to_char $mc_strap {weaponType} WeaponType.Tec9 {ammo} 30000
set_current_char_weapon $mc_strap {weaponType} WeaponType.Tec9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap
72@ = 1
71@ = 1
set_char_relationship $mc_strap {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8596
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8596
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_8566
stop_playback_recorded_car 35@

:TWAR7_8566
set_car_coordinates 35@ {x} 2521.2 {y} -1359.0 {z} 27.3
set_car_heading 35@ {heading} 295.2

:TWAR7_8596
set_camera_behind_player 
restore_camera_jumpcut 
remove_animation "CRIB"
remove_animation "MISC"
remove_animation "GANGS"
remove_animation "RAPPING"
clear_help 
print_now 'SMK1_04' {time} 7000 {flag} 1
remove_blip 66@
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8690
66@ = add_blip_for_char 34@
set_blip_as_friendly 66@ {state} False

:TWAR7_8690
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  69@ == 1
goto_if_false @TWAR7_8797
do_fade 500 {direction} Fade.In

:TWAR7_8741
if 
  get_fading_status 
goto_if_false @TWAR7_8765
wait 0
goto @TWAR7_8741

:TWAR7_8765
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8797
goto @TWAR7_23165

:TWAR7_8797
use_text_commands False
remove_texture_dictionary 
delete_char $big_smoke
delete_char $sweet
delete_car 37@
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 466
clear_mission_audio MissionAudioSlot.Slot3
if or
  is_car_dead 35@
  is_car_dead 36@
goto_if_false @TWAR7_8863
goto @TWAR7_23165

:TWAR7_8863
85@ = 0
68@ = 0
67@ = 4

:TWAR7_8884
if 
  67@ > 3
goto_if_false @TWAR7_18503
if 
  15 > 67@
goto_if_false @TWAR7_18503
if 
  not is_char_dead 34@
goto_if_false @TWAR7_18369
if 
  not is_car_dead 35@
goto_if_false @TWAR7_18228
if 
  67@ == 4
goto_if_false @TWAR7_9847
if 
  85@ == 0
goto_if_false @TWAR7_9084
if 
  83@ == 0
goto_if_false @TWAR7_9084
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_9084
if 
  not is_char_dead 34@
goto_if_false @TWAR7_9077
83@ = 6
84@ = 0
130@ = 1
gosub @TWAR7_29790

:TWAR7_9077
85@ = 1

:TWAR7_9084
if 
  73@ == 0
goto_if_false @TWAR7_9300
switch_roads_off 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_off 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_off 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
40@ = create_random_char 2579.8 {y} -1348.3 {z} 35.5
task_die 40@
41@ = create_random_char 2578.8 {y} -1348.3 {z} 35.5
set_char_heading 41@ {heading} 260.0
task_play_anim 41@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
73@ = 1

:TWAR7_9300
if 
  73@ == 1
goto_if_false @TWAR7_9395
if 
  locate_car_2d 35@ {x} 2582.6001 {y} -1351.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9395
switch_roads_on 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
73@ = 2

:TWAR7_9395
if 
  73@ == 2
goto_if_false @TWAR7_9490
if 
  locate_car_2d 35@ {x} 2653.0 {y} -1329.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9490
switch_roads_on 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
73@ = 3

:TWAR7_9490
if 
  73@ == 3
goto_if_false @TWAR7_9585
if 
  locate_car_2d 35@ {x} 2748.3 {y} -1320.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9585
switch_roads_on 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
73@ = 4

:TWAR7_9585
if 
  68@ == 0
goto_if_false @TWAR7_9668
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_9668
start_playback_recorded_car 35@ {path} 31
remove_car_recording 30
68@ = 1

:TWAR7_9668
if 
  68@ == 1
goto_if_false @TWAR7_9833
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_9833
switch_roads_on 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_on 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_on 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
68@ = 0
73@ = 0
67@ = 5

:TWAR7_9833
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_9847
if 
  67@ == 5
goto_if_false @TWAR7_10859
if 
  85@ == 0
goto_if_false @TWAR7_9986
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_9961
if 
  not is_char_dead 34@
goto_if_false @TWAR7_9954
83@ = 6
84@ = 1
130@ = 2
gosub @TWAR7_29790

:TWAR7_9954
85@ = 1

:TWAR7_9961
if 
  68@ == 1
goto_if_false @TWAR7_9986
85@ = 1

:TWAR7_9986
if 
  73@ == 0
goto_if_false @TWAR7_10171
switch_roads_off 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_off 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_off 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_off 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_off 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_10171
if 
  73@ == 1
goto_if_false @TWAR7_10298
if 
  locate_car_2d 35@ {x} 2712.7 {y} -1265.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_10298
switch_roads_on 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_on 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
73@ = 2

:TWAR7_10298
if 
  73@ == 2
goto_if_false @TWAR7_10457
if 
  locate_car_2d 35@ {x} 2630.5 {y} -1248.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_10457
switch_roads_on 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_on 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_on 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
73@ = 3

:TWAR7_10457
if 
  68@ == 0
goto_if_false @TWAR7_10606
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_10606
if 
  not is_char_dead 34@
goto_if_false @TWAR7_10561
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TWAR7_10561
if 
  not is_car_dead 35@
goto_if_false @TWAR7_10592
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TWAR7_10592
start_playback_recorded_car 35@ {path} 32
68@ = 1

:TWAR7_10606
if 
  68@ == 1
goto_if_false @TWAR7_10845
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_10845
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 40@
switch_roads_on 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_on 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_on 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_on 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_on 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 6

:TWAR7_10845
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_10859
if 
  67@ == 6
goto_if_false @TWAR7_11888
if 
  85@ == 0
goto_if_false @TWAR7_11025
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @TWAR7_11000
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_10993
83@ = 6
84@ = 2
130@ = 3
gosub @TWAR7_29790

:TWAR7_10993
85@ = 1

:TWAR7_11000
if 
  68@ == 1
goto_if_false @TWAR7_11025
85@ = 1

:TWAR7_11025
if 
  73@ == 0
goto_if_false @TWAR7_11210
switch_roads_off 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.0
switch_roads_off 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_off 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_off 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_off 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
73@ = 1

:TWAR7_11210
if 
  73@ == 1
goto_if_false @TWAR7_11305
if 
  locate_car_2d 35@ {x} 2563.2 {y} -1191.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11305
switch_roads_on 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
73@ = 2

:TWAR7_11305
if 
  73@ == 2
goto_if_false @TWAR7_11400
if 
  locate_car_2d 35@ {x} 2442.3999 {y} -1191.4 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11400
switch_roads_on 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
73@ = 3

:TWAR7_11400
if 
  73@ == 3
goto_if_false @TWAR7_11495
if 
  locate_car_2d 35@ {x} 2360.1001 {y} -1164.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11495
switch_roads_on 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
73@ = 4

:TWAR7_11495
if 
  73@ == 4
goto_if_false @TWAR7_11590
if 
  locate_car_2d 35@ {x} 2315.0 {y} -1145.9 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11590
switch_roads_on 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
73@ = 5

:TWAR7_11590
if 
  68@ == 0
goto_if_false @TWAR7_11677
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_11677
start_playback_recorded_car 35@ {path} 33
68@ = 1

:TWAR7_11677
if 
  68@ == 1
goto_if_false @TWAR7_11874
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_11874
switch_roads_on 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_on 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_on 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_on 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 7

:TWAR7_11874
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_11888
if 
  67@ == 7
goto_if_false @TWAR7_12388
if 
  85@ == 0
goto_if_false @TWAR7_12034
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_12009
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_12002
83@ = 6
84@ = 3
130@ = 4
gosub @TWAR7_29790

:TWAR7_12002
85@ = 1

:TWAR7_12009
if 
  68@ == 1
goto_if_false @TWAR7_12034
85@ = 1

:TWAR7_12034
if 
  73@ == 0
goto_if_false @TWAR7_12091
switch_roads_off 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
73@ = 1

:TWAR7_12091
if 
  73@ == 1
goto_if_false @TWAR7_12186
if 
  locate_car_2d 35@ {x} 2149.8 {y} -996.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12186
switch_roads_on 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
73@ = 2

:TWAR7_12186
if 
  68@ == 0
goto_if_false @TWAR7_12273
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_12273
start_playback_recorded_car 35@ {path} 34
68@ = 1

:TWAR7_12273
if 
  68@ == 1
goto_if_false @TWAR7_12374
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_12374
switch_roads_on 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 8

:TWAR7_12374
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_12388
if 
  67@ == 8
goto_if_false @TWAR7_13968
if 
  85@ == 0
goto_if_false @TWAR7_12527
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_12502
if 
  not is_char_dead 34@
goto_if_false @TWAR7_12495
83@ = 6
84@ = 4
130@ = 5
gosub @TWAR7_29790

:TWAR7_12495
85@ = 1

:TWAR7_12502
if 
  68@ == 1
goto_if_false @TWAR7_12527
85@ = 1

:TWAR7_12527
if 
  73@ == 0
goto_if_false @TWAR7_12584
switch_roads_off 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1600.0 {rightTopY} -1521.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_12584
if 
  73@ == 1
goto_if_false @TWAR7_12679
if 
  locate_car_2d 35@ {x} 1819.4 {y} -1034.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12679
switch_roads_on 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
73@ = 2

:TWAR7_12679
if 
  73@ == 2
goto_if_false @TWAR7_12774
if 
  locate_car_2d 35@ {x} 1755.3 {y} -1489.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12774
switch_roads_on 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
73@ = 3

:TWAR7_12774
if 
  68@ == 0
goto_if_false @TWAR7_13714
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_13714
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
42@ = create_car 410 {x} 1688.5 {y} -1111.7 {z} 58.5
52@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_car_heading 42@ {heading} 322.3
start_playback_recorded_car 42@ {path} 50
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
43@ = create_car 410 {x} 1679.7 {y} -1131.6 {z} 59.7
53@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_car_heading 43@ {heading} 321.2
start_playback_recorded_car 43@ {path} 51
44@ = create_car 461 {x} 1644.8 {y} -1177.5 {z} 54.3
54@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_car_heading 44@ {heading} 320.8
start_playback_recorded_car 44@ {path} 52
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
45@ = create_car 410 {x} 1637.0 {y} -1203.8 {z} 51.5
55@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_car_heading 45@ {heading} 350.3
start_playback_recorded_car 45@ {path} 53
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13210
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
46@ = create_car 74@ {x} 1618.2 {y} -1306.4 {z} 35.6
set_car_heading 46@ {heading} 343.7
set_load_collision_for_car_flag 46@ {state} True
56@ = create_random_char_as_driver 46@
start_playback_recorded_car 46@ {path} 54

:TWAR7_13210
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13308
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
47@ = create_car 74@ {x} 1621.8 {y} -1317.9 {z} 33.0
set_car_heading 47@ {heading} 348.7
set_load_collision_for_car_flag 47@ {state} True
57@ = create_random_char_as_driver 47@
start_playback_recorded_car 47@ {path} 55

:TWAR7_13308
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13406
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
48@ = create_car 74@ {x} 1615.6 {y} -1327.7 {z} 31.5
set_car_heading 48@ {heading} 352.1
set_load_collision_for_car_flag 48@ {state} True
58@ = create_random_char_as_driver 48@
start_playback_recorded_car 48@ {path} 56

:TWAR7_13406
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13504
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
49@ = create_car 74@ {x} 1612.3 {y} -1394.0 {z} 27.6
set_car_heading 49@ {heading} 353.6
set_load_collision_for_car_flag 49@ {state} True
59@ = create_random_char_as_driver 49@
start_playback_recorded_car 49@ {path} 57

:TWAR7_13504
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13602
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
50@ = create_car 74@ {x} 1612.3 {y} -1462.2 {z} 27.1
set_car_heading 50@ {heading} 357.2
set_load_collision_for_car_flag 50@ {state} True
60@ = create_random_char_as_driver 50@
start_playback_recorded_car 50@ {path} 58

:TWAR7_13602
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13700
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
51@ = create_car 74@ {x} 1663.4 {y} -1457.0 {z} 24.3
set_car_heading 51@ {heading} 51.9
set_load_collision_for_car_flag 51@ {state} True
61@ = create_random_char_as_driver 51@
start_playback_recorded_car 51@ {path} 60

:TWAR7_13700
start_playback_recorded_car 35@ {path} 35
68@ = 1

:TWAR7_13714
if 
  68@ == 1
goto_if_false @TWAR7_13821
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_13755
68@ = 2

:TWAR7_13755
if 
  not is_car_dead 51@
goto_if_false @TWAR7_13821
if 
  locate_car_2d 51@ {x} 1601.4 {y} -1389.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_13821
stop_playback_recorded_car 51@
68@ = 2

:TWAR7_13821
if 
  68@ == 2
goto_if_false @TWAR7_13954
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_13954
switch_roads_on 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_on 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 9

:TWAR7_13954
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_13968
if 
  67@ == 9
goto_if_false @TWAR7_14628
if 
  85@ == 0
goto_if_false @TWAR7_14114
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_14089
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_14082
83@ = 6
84@ = 5
130@ = 6
gosub @TWAR7_29790

:TWAR7_14082
85@ = 1

:TWAR7_14089
if 
  68@ == 1
goto_if_false @TWAR7_14114
85@ = 1

:TWAR7_14114
if 
  73@ == 0
goto_if_false @TWAR7_14171
switch_roads_off 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
73@ = 1

:TWAR7_14171
if 
  73@ == 1
goto_if_false @TWAR7_14266
if 
  locate_car_2d 35@ {x} 1781.3 {y} -1437.9 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_14266
switch_roads_on 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
73@ = 2

:TWAR7_14266
if 
  68@ == 0
goto_if_false @TWAR7_14513
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_14513
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
38@ = create_random_char 1778.4 {y} -1343.1 {z} 14.7
set_char_heading 38@ {heading} 180.0
39@ = create_random_char 1778.4 {y} -1344.1 {z} 14.7
set_char_heading 39@ {heading} 0.0
start_playback_recorded_car 35@ {path} 36
68@ = 1

:TWAR7_14513
if 
  68@ == 1
goto_if_false @TWAR7_14614
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_14614
switch_roads_on 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 10

:TWAR7_14614
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_14628
if 
  67@ == 10
goto_if_false @TWAR7_15329
if 
  85@ == 0
goto_if_false @TWAR7_14774
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_14749
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_14742
83@ = 6
84@ = 6
130@ = 7
gosub @TWAR7_29790

:TWAR7_14742
85@ = 1

:TWAR7_14749
if 
  68@ == 1
goto_if_false @TWAR7_14774
85@ = 1

:TWAR7_14774
if 
  73@ == 0
goto_if_false @TWAR7_14895
switch_roads_off 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_off 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_off 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_14895
if 
  73@ == 1
goto_if_false @TWAR7_14990
if 
  locate_car_2d 35@ {x} 1855.7 {y} -1379.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_14990
switch_roads_on 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
73@ = 2

:TWAR7_14990
if 
  73@ == 2
goto_if_false @TWAR7_15085
if 
  locate_car_2d 35@ {x} 1971.5 {y} -1474.6 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_15085
switch_roads_on 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
73@ = 3

:TWAR7_15085
if 
  68@ == 0
goto_if_false @TWAR7_15172
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_15172
start_playback_recorded_car 35@ {path} 37
68@ = 1

:TWAR7_15172
if 
  68@ == 1
goto_if_false @TWAR7_15315
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_15315
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
switch_roads_on 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_on 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 11

:TWAR7_15315
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15329
if 
  67@ == 11
goto_if_false @TWAR7_15893
if 
  85@ == 0
goto_if_false @TWAR7_15475
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_15450
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_15443
83@ = 6
84@ = 7
130@ = 8
gosub @TWAR7_29790

:TWAR7_15443
85@ = 1

:TWAR7_15450
if 
  68@ == 1
goto_if_false @TWAR7_15475
85@ = 1

:TWAR7_15475
if 
  73@ == 0
goto_if_false @TWAR7_15532
switch_roads_off 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
73@ = 1

:TWAR7_15532
if 
  73@ == 1
goto_if_false @TWAR7_15659
if 
  locate_car_2d 35@ {x} 2394.8 {y} -1508.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_15659
switch_roads_on 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_on 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
73@ = 2

:TWAR7_15659
if 
  68@ == 0
goto_if_false @TWAR7_15746
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_15746
start_playback_recorded_car 35@ {path} 38
68@ = 1

:TWAR7_15746
if 
  68@ == 1
goto_if_false @TWAR7_15879
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_15879
switch_roads_on 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_on 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 12

:TWAR7_15879
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15893
if 
  67@ == 12
goto_if_false @TWAR7_16393
if 
  85@ == 0
goto_if_false @TWAR7_16039
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_16014
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_16007
83@ = 6
84@ = 8
130@ = 9
gosub @TWAR7_29790

:TWAR7_16007
85@ = 1

:TWAR7_16014
if 
  68@ == 1
goto_if_false @TWAR7_16039
85@ = 1

:TWAR7_16039
if 
  73@ == 0
goto_if_false @TWAR7_16096
switch_roads_off 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
73@ = 1

:TWAR7_16096
if 
  73@ == 1
goto_if_false @TWAR7_16191
if 
  locate_car_2d 35@ {x} 2398.6001 {y} -1432.4 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16191
switch_roads_on 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
73@ = 2

:TWAR7_16191
if 
  68@ == 0
goto_if_false @TWAR7_16278
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_16278
start_playback_recorded_car 35@ {path} 39
68@ = 1

:TWAR7_16278
if 
  68@ == 1
goto_if_false @TWAR7_16379
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_16379
switch_roads_on 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 13

:TWAR7_16379
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_16393
if 
  67@ == 13
goto_if_false @TWAR7_17814
gosub @TWAR7_25463
gosub @TWAR7_25201
if 
  85@ == 0
goto_if_false @TWAR7_16553
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_16528
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_16521
83@ = 6
84@ = 9
130@ = 10
gosub @TWAR7_29790

:TWAR7_16521
85@ = 1

:TWAR7_16528
if 
  68@ == 1
goto_if_false @TWAR7_16553
85@ = 1

:TWAR7_16553
if 
  73@ == 0
goto_if_false @TWAR7_16706
switch_roads_off 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_off 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_off 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_off 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
73@ = 1

:TWAR7_16706
if 
  73@ == 1
goto_if_false @TWAR7_16801
if 
  locate_car_2d 35@ {x} 2362.8 {y} -1259.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16801
switch_roads_on 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
73@ = 2

:TWAR7_16801
if 
  73@ == 2
goto_if_false @TWAR7_16896
if 
  locate_car_2d 35@ {x} 2294.5 {y} -1263.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16896
switch_roads_on 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
73@ = 3

:TWAR7_16896
if 
  73@ == 3
goto_if_false @TWAR7_16991
if 
  locate_car_2d 35@ {x} 2284.2 {y} -1393.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16991
switch_roads_on 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
73@ = 4

:TWAR7_16991
if 
  73@ == 4
goto_if_false @TWAR7_17086
if 
  locate_car_2d 35@ {x} 2293.8 {y} -1491.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_17086
switch_roads_on 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
73@ = 5

:TWAR7_17086
if 
  68@ == 0
goto_if_false @TWAR7_17395
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_17395
if 
  has_model_loaded 110
goto_if_false @TWAR7_17233
62@ = create_char PedType.Mission2 {modelId} 110 {x} 2301.8999 {y} -1504.1 {z} 24.3
set_char_heading 62@ {heading} 358.5
give_weapon_to_char 62@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 62@ {state} True
set_char_decision_maker 62@ {handleOrTemplate} 149@

:TWAR7_17233
if 
  has_model_loaded 110
goto_if_false @TWAR7_17307
63@ = create_char PedType.Mission2 {modelId} 110 {x} 2302.5 {y} -1502.3 {z} 24.3
set_char_heading 63@ {heading} 18.5
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 63@ {state} True
set_char_decision_maker 63@ {handleOrTemplate} 149@

:TWAR7_17307
if 
  has_model_loaded 110
goto_if_false @TWAR7_17381
64@ = create_char PedType.Mission2 {modelId} 110 {x} 2300.6001 {y} -1503.9 {z} 24.3
set_char_heading 64@ {heading} 5.9
give_weapon_to_char 64@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 64@ {state} True
set_char_decision_maker 64@ {handleOrTemplate} 149@

:TWAR7_17381
start_playback_recorded_car 35@ {path} 40
68@ = 1

:TWAR7_17395
if 
  68@ == 1
goto_if_false @TWAR7_17646
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_17646
switch_roads_on 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_on 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_on 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_on 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2300.3 {y} -1502.8 {z} 24.3 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 205.1
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
if 
  not is_car_dead 35@
goto_if_false @TWAR7_17639
set_car_always_create_skids 35@ {state} False

:TWAR7_17639
68@ = 2

:TWAR7_17646
if 
  68@ == 2
goto_if_false @TWAR7_17814
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_17814
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_17735
remove_char_from_group $mc_strap

:TWAR7_17735
ignore_height_difference_following_nodes $mc_strap {state} True
set_follow_node_threshold_distance $mc_strap {range} 50.0
145@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} 34@
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
85@ = 0
73@ = 0
68@ = 0
67@ = 14

:TWAR7_17814
if 
  67@ == 14
goto_if_false @TWAR7_18221
if 
  85@ == 0
goto_if_false @TWAR7_17912
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_17912
83@ = 7
84@ = 0
gosub @TWAR7_29790
TIMERB = 0
85@ = 1

:TWAR7_17912
if 
  85@ == 1
goto_if_false @TWAR7_17976
if 
  83@ == 0
goto_if_false @TWAR7_17976
83@ = 17
84@ = 0
gosub @TWAR7_29790
85@ = 2

:TWAR7_17976
if 
  68@ == 0
goto_if_false @TWAR7_18221
remove_blip 66@
66@ = add_blip_for_char 34@
set_char_only_damaged_by_player 34@ {state} False
145@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $mc_strap
task_kill_char_on_foot -1 {target} $mc_strap
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18108
$task_status = get_script_task_status 62@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18108
task_kill_char_on_foot 62@ {target} $scplayer

:TWAR7_18108
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18161
$task_status = get_script_task_status 63@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18161
task_kill_char_on_foot 63@ {target} $scplayer

:TWAR7_18161
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18214
$task_status = get_script_task_status 64@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18214
task_kill_char_on_foot 64@ {target} $scplayer

:TWAR7_18214
68@ = 1

:TWAR7_18221
goto @TWAR7_18362

:TWAR7_18228
remove_blip 66@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18264
task_flee_char 62@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18264
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18295
task_flee_char 63@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18295
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18326
task_flee_char 64@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18326
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18362
goto @TWAR7_18503

:TWAR7_18369
remove_blip 66@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18405
task_flee_char 62@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18405
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18436
task_flee_char 63@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18436
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18467
task_flee_char 64@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18467
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18503
if 
  67@ == 15
goto_if_false @TWAR7_21068
if 
  68@ == 0
goto_if_false @TWAR7_19984
if 
  TIMERA > 2000
goto_if_false @TWAR7_19984
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TWAR7_19984
clear_prints 
do_fade 500 {direction} Fade.Out

:TWAR7_18592
if 
  get_fading_status 
goto_if_false @TWAR7_18616
wait 0
goto @TWAR7_18592

:TWAR7_18616
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_18648
goto @TWAR7_23165

:TWAR7_18648
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
delete_char 62@
delete_char 63@
delete_char 64@
switch_roads_back_to_original 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_back_to_original 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_back_to_original 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
switch_roads_back_to_original 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_back_to_original 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_back_to_original 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_back_to_original 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_back_to_original 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
switch_roads_back_to_original 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_back_to_original 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_back_to_original 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_back_to_original 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
switch_roads_back_to_original 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_back_to_original 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
switch_roads_back_to_original 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
switch_roads_back_to_original 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_back_to_original 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_back_to_original 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
switch_roads_back_to_original 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_back_to_original 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_back_to_original 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_back_to_original 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_back_to_original 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 35@
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 461
request_animation "MISC"
load_all_models_now 
request_collision 2293.3999 {y} -1490.2
load_scene_in_direction 2293.3999 {y} -1490.2 {z} 22.2 {heading} 90.0
clear_area 2293.3999 {y} -1490.2 {z} 22.2 {radius} 20.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
if 
  not is_car_dead 35@
goto_if_false @TWAR7_19616
set_car_always_create_skids 35@ {state} False

:TWAR7_19616
clear_char_tasks_immediately $scplayer
141@, 142@, 143@ = get_char_coordinates $scplayer
144@ = get_char_heading $scplayer
remove_char_from_group $mc_strap
clear_char_tasks_immediately $mc_strap
clear_area 2290.3999 {y} -1490.2 {z} 22.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2290.3999 {y} -1490.2 {z} 22.3
set_char_heading $scplayer {heading} 265.8
task_go_straight_to_coord $scplayer {x} 2295.6001 {y} -1490.5 {z} 21.3 {speed} MoveState.Walk {time} -1
76@ = get_current_char_weapon $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_char_tasks_immediately $mc_strap
clear_area 2295.3 {y} -1491.3 {z} 22.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2295.3 {y} -1491.3 {z} 22.3
set_char_heading $mc_strap {heading} 268.4
task_aim_gun_at_coord $mc_strap {x} 2299.3 {y} -1490.6 {z} 22.8 {time} 10000
set_fixed_camera_position 2299.3 {y} -1490.6 {z} 22.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2255.6001 {y} -1493.3 {z} 38.3 {switchStyle} SwitchType.JumpCut
83@ = 8
84@ = 0
gosub @TWAR7_29790
68@ = 1
do_fade 1500 {direction} Fade.In

:TWAR7_19914
if 
  get_fading_status 
goto_if_false @TWAR7_19938
wait 0
goto @TWAR7_19914

:TWAR7_19938
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_19970
goto @TWAR7_23165

:TWAR7_19970
69@ = 1
skip_cutscene_start_internal @TWAR7_20578

:TWAR7_19984
if 
  68@ == 1
goto_if_false @TWAR7_20115
$task_status = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_20115
task_turn_char_to_face_char $mc_strap {target} $scplayer
145@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $mc_strap
task_play_anim -1 {animationName} "IDLE_CHAT_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
68@ = 2

:TWAR7_20115
if 
  68@ == 2
goto_if_false @TWAR7_20199
if 
  84@ > 2
goto_if_false @TWAR7_20199
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 3

:TWAR7_20199
if 
  68@ == 3
goto_if_false @TWAR7_20283
if 
  84@ > 3
goto_if_false @TWAR7_20283
clear_char_tasks $mc_strap
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 4

:TWAR7_20283
if 
  68@ == 4
goto_if_false @TWAR7_20367
if 
  84@ > 4
goto_if_false @TWAR7_20367
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 5

:TWAR7_20367
if 
  68@ == 5
goto_if_false @TWAR7_20451
if 
  84@ > 5
goto_if_false @TWAR7_20451
clear_char_tasks $mc_strap
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 6

:TWAR7_20451
if 
  68@ == 6
goto_if_false @TWAR7_20535
if 
  84@ > 6
goto_if_false @TWAR7_20535
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 7

:TWAR7_20535
if 
  68@ == 7
goto_if_false @TWAR7_21068
if 
  83@ == 0
goto_if_false @TWAR7_21068
69@ = 0

:TWAR7_20578
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20612
goto @TWAR7_23165

:TWAR7_20612
clear_char_tasks $mc_strap
if 
  69@ == 1
goto_if_false @TWAR7_20652
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0

:TWAR7_20652
do_fade 500 {direction} Fade.Out

:TWAR7_20659
if 
  get_fading_status 
goto_if_false @TWAR7_20683
wait 0
goto @TWAR7_20659

:TWAR7_20683
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20715
goto @TWAR7_23165

:TWAR7_20715
clear_char_tasks_immediately $scplayer
143@ -= 1.0
clear_area 141@ {y} 142@ {z} 143@ {radius} 1.0 {clearParticles} True
request_collision 141@ {y} 142@
load_all_models_now 
set_char_coordinates $scplayer {x} 141@ {y} 142@ {z} 143@
set_char_heading $scplayer {heading} 144@
set_current_char_weapon $scplayer {weaponType} 76@
clear_char_tasks_immediately $mc_strap
137@, 138@, 139@ = get_closest_char_node 141@ {y} 142@ {z} 143@
request_collision 137@ {y} 138@
load_all_models_now 
139@ += 2.0
143@ = get_ground_z_for_3d_coord 137@ {y} 138@ {z} 139@
clear_area 137@ {y} 138@ {z} 143@ {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 137@ {y} 138@ {z} 143@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap
72@ = 1
load_scene 141@ {y} 142@ {z} 143@
remove_animation "MISC"
set_ped_density_multiplier 1.0
remove_blip 66@
66@ = add_blip_for_coord 783.2 {y} -1630.3 {z} 12.2
set_blip_as_friendly 66@ {state} True
switch_widescreen False
shut_all_chars_up False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:TWAR7_20984
if 
  get_fading_status 
goto_if_false @TWAR7_21008
wait 0
goto @TWAR7_20984

:TWAR7_21008
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_21040
goto @TWAR7_23165

:TWAR7_21040
68@ = 0
85@ = 0
67@ = 16
TIMERB = 0

:TWAR7_21068
if 
  67@ == 16
goto_if_false @TWAR7_21370
if 
  83@ == 0
goto_if_false @TWAR7_21150
if 
  85@ == 0
goto_if_false @TWAR7_21150
83@ = 9
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_21150
if 
  83@ == 0
goto_if_false @TWAR7_21209
if 
  85@ == 1
goto_if_false @TWAR7_21209
print_now 'SMK1_13' {time} 8500 {flag} 1
85@ = 2

:TWAR7_21209
if 
  68@ == 0
goto_if_false @TWAR7_21363
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_21363
if 
  locate_char_any_means_3d $scplayer {x} 783.2 {y} -1630.3 {z} 12.2 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_21363
if 
  locate_char_any_means_3d $mc_strap {x} 783.2 {y} -1630.3 {z} 12.2 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @TWAR7_21363
set_player_control $player1 {state} False
68@ = 0
67@ = 17

:TWAR7_21363
gosub @TWAR7_25201

:TWAR7_21370
if 
  67@ == 17
goto_if_false @TWAR7_21765
if 
  68@ == 0
goto_if_false @TWAR7_21629
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_char_from_group $mc_strap
145@ = open_sequence_task 
task_pause -1 {time} 1500
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $mc_strap
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 792.1 {y} -1626.0 {z} 12.4 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
83@ = 10
84@ = 0
gosub @TWAR7_29790
set_fixed_camera_position 776.7145 {y} -1637.248 {z} 14.084 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 777.5906 {y} -1636.769 {z} 14.1398 {switchStyle} SwitchType.JumpCut
68@ = 1

:TWAR7_21629
if 
  68@ == 1
goto_if_false @TWAR7_21765
if 
  83@ == 0
goto_if_false @TWAR7_21765
do_fade 500 {direction} Fade.Out

:TWAR7_21672
if 
  get_fading_status 
goto_if_false @TWAR7_21696
wait 0
goto @TWAR7_21672

:TWAR7_21696
delete_char $mc_strap
remove_blip 66@
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:TWAR7_21734
if 
  get_fading_status 
goto_if_false @TWAR7_21758
wait 0
goto @TWAR7_21734

:TWAR7_21758
goto @TWAR7_23183

:TWAR7_21765
if 
  67@ > 3
goto_if_false @TWAR7_21882
if 
  14 > 67@
goto_if_false @TWAR7_21882
if 
  not is_char_dead 34@
goto_if_false @TWAR7_21882
$task_status = get_script_task_status 34@ {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_21882
task_drive_by 34@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:TWAR7_21882
if 
  67@ > 3
goto_if_false @TWAR7_21995
if 
  15 > 67@
goto_if_false @TWAR7_21995
if 
  not is_char_dead 34@
goto_if_false @TWAR7_21995
if 
  not locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @TWAR7_21995
if 
  not is_char_on_screen 34@
goto_if_false @TWAR7_21995
68@ = 0
67@ = 20

:TWAR7_21995
if 
  67@ == 20
goto_if_false @TWAR7_22472
if 
  68@ == 0
goto_if_false @TWAR7_22273
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_22201
if 
  not is_car_dead 36@
goto_if_false @TWAR7_22201
if 
  is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_22201
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
print_now 'SMK1_12' {time} 4000 {flag} 1
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_22151
apply_brakes_to_players_car $player1 {state} True

:TWAR7_22151
remove_char_from_group $mc_strap
145@ = open_sequence_task 
task_leave_any_car -1
task_wander_standard -1
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
TIMERA = 0
68@ = 1

:TWAR7_22201
if 
  is_car_dead 36@
goto_if_false @TWAR7_22224
68@ = 2

:TWAR7_22224
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_22247
68@ = 2

:TWAR7_22247
if 
  not is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_22273
68@ = 2

:TWAR7_22273
if 
  68@ == 1
goto_if_false @TWAR7_22429
if 
  TIMERA > 3000
goto_if_false @TWAR7_22429
do_fade 500 {direction} Fade.Out

:TWAR7_22317
if 
  get_fading_status 
goto_if_false @TWAR7_22341
wait 0
goto @TWAR7_22317

:TWAR7_22341
delete_char $mc_strap
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_22369
apply_brakes_to_players_car $player1 {state} False

:TWAR7_22369
remove_blip 66@
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:TWAR7_22398
if 
  get_fading_status 
goto_if_false @TWAR7_22422
wait 0
goto @TWAR7_22398

:TWAR7_22422
68@ = 2

:TWAR7_22429
if 
  68@ == 2
goto_if_false @TWAR7_22472
clear_prints 
print_now 'SMK1_12' {time} 4000 {flag} 1
goto @TWAR7_23165

:TWAR7_22472
if 
  67@ == 3
goto_if_false @TWAR7_22528
if 
  not has_car_recording_been_loaded 30
goto_if_false @TWAR7_22509
request_car_recording 30

:TWAR7_22509
if 
  not has_car_recording_been_loaded 31
goto_if_false @TWAR7_22528
request_car_recording 31

:TWAR7_22528
if 
  67@ == 4
goto_if_false @TWAR7_22565
if 
  not has_car_recording_been_loaded 32
goto_if_false @TWAR7_22565
request_car_recording 32

:TWAR7_22565
if 
  67@ == 5
goto_if_false @TWAR7_22602
if 
  not has_car_recording_been_loaded 33
goto_if_false @TWAR7_22602
request_car_recording 33

:TWAR7_22602
if 
  67@ == 6
goto_if_false @TWAR7_22639
if 
  not has_car_recording_been_loaded 34
goto_if_false @TWAR7_22639
request_car_recording 34

:TWAR7_22639
if 
  67@ == 7
goto_if_false @TWAR7_22871
if 
  not has_car_recording_been_loaded 35
goto_if_false @TWAR7_22676
request_car_recording 35

:TWAR7_22676
if 
  not has_car_recording_been_loaded 50
goto_if_false @TWAR7_22695
request_car_recording 50

:TWAR7_22695
if 
  not has_car_recording_been_loaded 51
goto_if_false @TWAR7_22714
request_car_recording 51

:TWAR7_22714
if 
  not has_car_recording_been_loaded 52
goto_if_false @TWAR7_22733
request_car_recording 52

:TWAR7_22733
if 
  not has_car_recording_been_loaded 53
goto_if_false @TWAR7_22752
request_car_recording 53

:TWAR7_22752
if 
  not has_car_recording_been_loaded 54
goto_if_false @TWAR7_22771
request_car_recording 54

:TWAR7_22771
if 
  not has_car_recording_been_loaded 55
goto_if_false @TWAR7_22790
request_car_recording 55

:TWAR7_22790
if 
  not has_car_recording_been_loaded 56
goto_if_false @TWAR7_22809
request_car_recording 56

:TWAR7_22809
if 
  not has_car_recording_been_loaded 57
goto_if_false @TWAR7_22828
request_car_recording 57

:TWAR7_22828
if 
  not has_car_recording_been_loaded 58
goto_if_false @TWAR7_22847
request_car_recording 58

:TWAR7_22847
if 
  not has_car_recording_been_loaded 35
goto_if_false @TWAR7_22866
request_car_recording 60

:TWAR7_22866
request_model 410

:TWAR7_22871
if 
  67@ == 8
goto_if_false @TWAR7_22908
if 
  not has_car_recording_been_loaded 36
goto_if_false @TWAR7_22908
request_car_recording 36

:TWAR7_22908
if 
  67@ == 9
goto_if_false @TWAR7_22950
mark_model_as_no_longer_needed 410
if 
  not has_car_recording_been_loaded 37
goto_if_false @TWAR7_22950
request_car_recording 37

:TWAR7_22950
if 
  67@ == 10
goto_if_false @TWAR7_22987
if 
  not has_car_recording_been_loaded 38
goto_if_false @TWAR7_22987
request_car_recording 38

:TWAR7_22987
if 
  67@ == 11
goto_if_false @TWAR7_23024
if 
  not has_car_recording_been_loaded 39
goto_if_false @TWAR7_23024
request_car_recording 39

:TWAR7_23024
if 
  67@ == 12
goto_if_false @TWAR7_23065
if 
  not has_car_recording_been_loaded 40
goto_if_false @TWAR7_23061
request_car_recording 40

:TWAR7_23061
request_model 110

:TWAR7_23065
if 
  67@ > 0
goto_if_false @TWAR7_23108
if 
  3 > 67@
goto_if_false @TWAR7_23108
gosub @TWAR7_24682

:TWAR7_23108
if 
  67@ > 3
goto_if_false @TWAR7_23151
if 
  14 > 67@
goto_if_false @TWAR7_23151
gosub @TWAR7_24891

:TWAR7_23151
gosub @TWAR7_27399
goto @TWAR7_1306

:TWAR7_23165
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TWAR7_23183
clear_prints 
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SMOKE_1'
player_made_progress 1
$flag_smoke_mission_counter += 1
start_new_script @STRAP 
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
return 

:TWAR7_23270
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TWAR7_23288
restore_camera_jumpcut 

:TWAR7_23288
if 
  not is_char_dead $scplayer
goto_if_false @TWAR7_23311
shut_char_up_for_scripted_speech $scplayer {state} False

:TWAR7_23311
shut_all_chars_up False
remove_blip 66@
clear_mission_audio MissionAudioSlot.Slot3
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 352
remove_animation "CAR_CHAT"
remove_animation "CRIB"
remove_animation "MISC"
remove_animation "RAPPING"
switch_roads_back_to_original 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_back_to_original 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_back_to_original 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
switch_roads_back_to_original 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_back_to_original 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_back_to_original 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_back_to_original 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_back_to_original 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
switch_roads_back_to_original 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_back_to_original 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_back_to_original 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_back_to_original 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
switch_roads_back_to_original 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_back_to_original 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
switch_roads_back_to_original 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
switch_roads_back_to_original 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_back_to_original 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_back_to_original 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
switch_roads_back_to_original 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_back_to_original 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_back_to_original 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_back_to_original 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_back_to_original 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
switch_entry_exit 'LAHS1A' {state} True
switch_random_trains True
remove_char_elegantly $big_smoke
remove_char_elegantly $sweet
remove_char_elegantly $mc_strap
unload_special_character 1
unload_special_character 2
unload_special_character 3
enable_ambient_crime True
clear_sequence_task 147@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TWAR7_24265
if 
  4 > 67@
goto_if_false @TWAR7_24406
if 
  is_char_dead $big_smoke
goto_if_false @TWAR7_24324
clear_prints 
print_now 'SMK1_06' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24324
if 
  is_char_dead $sweet
goto_if_false @TWAR7_24365
clear_prints 
print_now 'SMK1_07' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24365
if 
  is_car_dead 37@
goto_if_false @TWAR7_24406
clear_prints 
print_now 'SMK1_08' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24406
if 
  67@ == 1
goto_if_false @TWAR7_24467
if 
  68@ == 1
goto_if_false @TWAR7_24467
if 
  70@ == 1
goto_if_false @TWAR7_24467
70@ = 0

:TWAR7_24467
if 
  67@ == 1
goto_if_false @TWAR7_24544
if 
  68@ == 2
goto_if_false @TWAR7_24544
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_24544
clear_prints 
print_now 'SMK1_05' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24544
if 
  67@ > 1
goto_if_false @TWAR7_24603
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_24603
clear_prints 
print_now 'SMK1_05' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24603
if 
  67@ > 3
goto_if_false @TWAR7_24680
if 
  15 > 67@
goto_if_false @TWAR7_24680
if 
  is_car_dead 36@
goto_if_false @TWAR7_24680
clear_prints 
print_now 'SMK1_14' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24680
return 

:TWAR7_24682
if 
  71@ == 0
goto_if_false @TWAR7_24825
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_24825
clear_this_print 'SMK1_01'
remove_blip 66@
if 
  67@ == 1
goto_if_false @TWAR7_24818
if 
  68@ == 0
goto_if_false @TWAR7_24798
66@ = add_blip_for_coord 1532.8 {y} -1672.9 {z} 12.4
goto @TWAR7_24818

:TWAR7_24798
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7

:TWAR7_24818
71@ = 1

:TWAR7_24825
if 
  71@ == 1
goto_if_false @TWAR7_24889
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_24889
remove_blip 66@
66@ = add_blip_for_car 37@
set_blip_as_friendly 66@ {state} True
71@ = 0

:TWAR7_24889
return 

:TWAR7_24891
if 
  72@ == 1
goto_if_false @TWAR7_25199
if 
  67@ > 3
goto_if_false @TWAR7_25199
if 
  14 > 67@
goto_if_false @TWAR7_25199
if 
  71@ == 0
goto_if_false @TWAR7_25072
if 
  not is_car_dead 36@
goto_if_false @TWAR7_25072
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25072
clear_this_print 86@(84@,13s)
clear_this_print 'SMK1_11'
clear_this_print 'SMK1_04'
print_now 'SMK1_04' {time} 7000 {flag} 1
remove_blip 66@
66@ = add_blip_for_char 34@
set_blip_as_friendly 66@ {state} False
71@ = 1

:TWAR7_25072
if 
  71@ == 1
goto_if_false @TWAR7_25199
if 
  not is_car_dead 36@
goto_if_false @TWAR7_25199
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25199
clear_this_print 86@(84@,13s)
clear_this_print 'SMK1_11'
clear_this_print 'SMK1_04'
print_now 'SMK1_11' {time} 7000 {flag} 1
remove_blip 66@
66@ = add_blip_for_car 36@
set_blip_as_friendly 66@ {state} True
71@ = 0

:TWAR7_25199
return 

:TWAR7_25201
if 
  72@ == 1
goto_if_false @TWAR7_25265
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_25265
remove_blip 66@
66@ = add_blip_for_char $mc_strap
set_blip_as_friendly 66@ {state} True
72@ = 0

:TWAR7_25265
if 
  72@ == 0
goto_if_false @TWAR7_25461
if 
  locate_char_any_means_char_3d $scplayer {target} $mc_strap {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TWAR7_25461
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_25350
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap

:TWAR7_25350
if 
  16 > 67@
goto_if_false @TWAR7_25429
remove_blip 66@
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25407
66@ = add_blip_for_char 34@
goto @TWAR7_25422

:TWAR7_25407
66@ = add_blip_for_car 36@
set_blip_as_friendly 66@ {state} True

:TWAR7_25422
goto @TWAR7_25454

:TWAR7_25429
remove_blip 66@
66@ = add_blip_for_coord 783.2 {y} -1630.3 {z} 12.2

:TWAR7_25454
72@ = 1

:TWAR7_25461
return 

:TWAR7_25463
if 
  not is_char_dead 34@
goto_if_false @TWAR7_26129
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26122
if 
  is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_26085
if 
  80@ == 0
goto_if_false @TWAR7_25574
if or
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_25574
set_car_health 35@ {health} 350
80@ = 1

:TWAR7_25574
133@, 134@, 137@ = get_char_coordinates $scplayer
135@, 136@, 137@ = get_car_coordinates 35@
137@ = get_distance_between_coords_2d 133@ {fromY} 134@ {toX} 135@ {toZ} 136@
if 
  21.0 > 137@
goto_if_false @TWAR7_25683
137@ /= 20.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 2.0
sub_float_lvar_from_float_lvar 137@ -= 138@
goto @TWAR7_25729

:TWAR7_25683
137@ -= 20.0
137@ /= 90.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 1.0
sub_float_lvar_from_float_lvar 137@ -= 138@

:TWAR7_25729
set_lvar_float_to_lvar_float 140@ = 137@
if 
  140@ > 2.0
goto_if_false @TWAR7_25768
140@ = 2.0

:TWAR7_25768
if 
  0.5 > 140@
goto_if_false @TWAR7_25799
140@ = 0.5

:TWAR7_25799
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_25823
set_playback_speed 35@ {speed} 140@

:TWAR7_25823
if 
  67@ == 8
goto_if_false @TWAR7_26051
if 
  10 > 79@
goto_if_false @TWAR7_26044
if 
  not is_car_dead 42@(79@,10i)
goto_if_false @TWAR7_26030
if 
  not is_char_dead 52@(79@,10i)
goto_if_false @TWAR7_26001
if 
  is_char_in_car 52@(79@,10i) {vehicle} 42@(79@,10i)
goto_if_false @TWAR7_25965
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_25958
set_playback_speed 42@(79@,10i) {speed} 140@

:TWAR7_25958
goto @TWAR7_25994

:TWAR7_25965
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_25994
stop_playback_recorded_car 42@(79@,10i)

:TWAR7_25994
goto @TWAR7_26030

:TWAR7_26001
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_26030
stop_playback_recorded_car 42@(79@,10i)

:TWAR7_26030
79@ += 1
goto @TWAR7_26051

:TWAR7_26044
79@ = 0

:TWAR7_26051
if 
  not is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_26078
warp_char_into_car 34@ {vehicle} 35@

:TWAR7_26078
goto @TWAR7_26122

:TWAR7_26085
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26122
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_26122
stop_playback_recorded_car 35@

:TWAR7_26122
goto @TWAR7_26166

:TWAR7_26129
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26166
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_26166
stop_playback_recorded_car 35@

:TWAR7_26166
return 

:TWAR7_26168
77@ = generate_random_int_in_range 1 {max} 37
if 
  77@ == 1
goto_if_false @TWAR7_26210
custom_plate_for_next_car 78@ {text} "GOT_M00_"

:TWAR7_26210
if 
  77@ == 2
goto_if_false @TWAR7_26243
custom_plate_for_next_car 78@ {text} "M00TV_4U"

:TWAR7_26243
if 
  77@ == 3
goto_if_false @TWAR7_26276
custom_plate_for_next_car 78@ {text} "MATHEW_2"

:TWAR7_26276
if 
  77@ == 4
goto_if_false @TWAR7_26309
custom_plate_for_next_car 78@ {text} "D4_DEW0R"

:TWAR7_26309
if 
  77@ == 5
goto_if_false @TWAR7_26342
custom_plate_for_next_car 78@ {text} "D0DE_777"

:TWAR7_26342
if 
  77@ == 6
goto_if_false @TWAR7_26375
custom_plate_for_next_car 78@ {text} "DAM0_666"

:TWAR7_26375
if 
  77@ == 7
goto_if_false @TWAR7_26408
custom_plate_for_next_car 78@ {text} "C0NEY_88"

:TWAR7_26408
if 
  77@ == 8
goto_if_false @TWAR7_26441
custom_plate_for_next_car 78@ {text} "PRE4CHER"

:TWAR7_26441
if 
  77@ == 9
goto_if_false @TWAR7_26474
custom_plate_for_next_car 78@ {text} "DBP_4NDY"

:TWAR7_26474
if 
  77@ == 10
goto_if_false @TWAR7_26507
custom_plate_for_next_car 78@ {text} "EV1L_SLY"

:TWAR7_26507
if 
  77@ == 11
goto_if_false @TWAR7_26540
custom_plate_for_next_car 78@ {text} "N1_R4V3N"

:TWAR7_26540
if 
  77@ == 12
goto_if_false @TWAR7_26573
custom_plate_for_next_car 78@ {text} "D1VX_Z00"

:TWAR7_26573
if 
  77@ == 13
goto_if_false @TWAR7_26605
custom_plate_for_next_car 78@ {text} "MR_B3NN"

:TWAR7_26605
if 
  77@ == 14
goto_if_false @TWAR7_26638
custom_plate_for_next_car 78@ {text} "R3D_R4SP"

:TWAR7_26638
if 
  77@ == 15
goto_if_false @TWAR7_26671
custom_plate_for_next_car 78@ {text} "LA_B0MBA"

:TWAR7_26671
if 
  77@ == 16
goto_if_false @TWAR7_26704
custom_plate_for_next_car 78@ {text} "L3337_0G"

:TWAR7_26704
if 
  77@ == 17
goto_if_false @TWAR7_26737
custom_plate_for_next_car 78@ {text} "BUDD4H_X"

:TWAR7_26737
if 
  77@ == 18
goto_if_false @TWAR7_26770
custom_plate_for_next_car 78@ {text} "T3H_BUCK"

:TWAR7_26770
if 
  77@ == 19
goto_if_false @TWAR7_26803
custom_plate_for_next_car 78@ {text} "CHUNKY_1"

:TWAR7_26803
if 
  77@ == 20
goto_if_false @TWAR7_26836
custom_plate_for_next_car 78@ {text} "EV1L_BNZ"

:TWAR7_26836
if 
  77@ == 21
goto_if_false @TWAR7_26869
custom_plate_for_next_car 78@ {text} "S4ND_M4N"

:TWAR7_26869
if 
  77@ == 22
goto_if_false @TWAR7_26902
custom_plate_for_next_car 78@ {text} "RKK_DBP1"

:TWAR7_26902
if 
  77@ == 23
goto_if_false @TWAR7_26935
custom_plate_for_next_car 78@ {text} "RE1_K0KU"

:TWAR7_26935
if 
  77@ == 24
goto_if_false @TWAR7_26968
custom_plate_for_next_car 78@ {text} "S3XY_JUD"

:TWAR7_26968
if 
  77@ == 25
goto_if_false @TWAR7_27001
custom_plate_for_next_car 78@ {text} "SUNRA_93"

:TWAR7_27001
if 
  77@ == 26
goto_if_false @TWAR7_27034
custom_plate_for_next_car 78@ {text} "UG_FUX69"

:TWAR7_27034
if 
  77@ == 27
goto_if_false @TWAR7_27067
custom_plate_for_next_car 78@ {text} "LI0N_CUM"

:TWAR7_27067
if 
  77@ == 28
goto_if_false @TWAR7_27100
custom_plate_for_next_car 78@ {text} "RKK_PWND"

:TWAR7_27100
if 
  77@ == 29
goto_if_false @TWAR7_27133
custom_plate_for_next_car 78@ {text} "HAZE_B0B"

:TWAR7_27133
if 
  77@ == 30
goto_if_false @TWAR7_27166
custom_plate_for_next_car 78@ {text} "T3H_FLUF"

:TWAR7_27166
if 
  77@ == 31
goto_if_false @TWAR7_27199
custom_plate_for_next_car 78@ {text} "BM_4NDY_"

:TWAR7_27199
if 
  77@ == 32
goto_if_false @TWAR7_27232
custom_plate_for_next_car 78@ {text} "BM_D34N_"

:TWAR7_27232
if 
  77@ == 33
goto_if_false @TWAR7_27265
custom_plate_for_next_car 78@ {text} "BM_L4C3Y"

:TWAR7_27265
if 
  77@ == 34
goto_if_false @TWAR7_27298
custom_plate_for_next_car 78@ {text} "BM_D3V__"

:TWAR7_27298
if 
  77@ == 35
goto_if_false @TWAR7_27331
custom_plate_for_next_car 78@ {text} "NU_SK00L"

:TWAR7_27331
if 
  77@ == 36
goto_if_false @TWAR7_27364
custom_plate_for_next_car 78@ {text} "G4L_AVET"

:TWAR7_27364
if 
  77@ == 37
goto_if_false @TWAR7_27397
custom_plate_for_next_car 78@ {text} "M0J0_J0J"

:TWAR7_27397
return 

:TWAR7_27399
if 
  67@ == 1
goto_if_false @TWAR7_28418
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_27688
if or
  83@ == 1
  83@ == 2
goto_if_false @TWAR7_27688
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27681
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  68@ == 0
goto_if_false @TWAR7_27578
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @TWAR7_27547
gosub @TWAR7_32215
goto @TWAR7_27578

:TWAR7_27547
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27578
if or
  68@ == 1
  68@ == 2
goto_if_false @TWAR7_27674
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @TWAR7_27643
gosub @TWAR7_32215
goto @TWAR7_27674

:TWAR7_27643
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27674
goto @TWAR7_27688

:TWAR7_27681
83@ = 0

:TWAR7_27688
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_27824
if 
  11 > 83@
goto_if_false @TWAR7_27824
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27751
84@ += 1

:TWAR7_27751
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 86@(84@,13s)
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 11
84@ = generate_random_int_in_range 0 {max} 5
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_27824
if 
  83@ == 11
goto_if_false @TWAR7_28149
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28097
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28074
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  68@ == 0
goto_if_false @TWAR7_27978
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @TWAR7_27947
gosub @TWAR7_32215
goto @TWAR7_27978

:TWAR7_27947
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27978
if 
  68@ == 1
goto_if_false @TWAR7_28067
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28036
gosub @TWAR7_32215
goto @TWAR7_28067

:TWAR7_28036
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28067
goto @TWAR7_28097

:TWAR7_28074
print_now 'SMK1_01' {time} 11000 {flag} 1
83@ = 12

:TWAR7_28097
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28149
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 13
84@ = 0
clear_prints 

:TWAR7_28149
if 
  83@ == 12
goto_if_false @TWAR7_28202
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28202
83@ = 13
84@ = 0
clear_prints 

:TWAR7_28202
if 
  83@ == 13
goto_if_false @TWAR7_28418
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28344
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_28344
if 
  68@ == 0
goto_if_false @TWAR7_28328
print_now 'SMK1_02' {time} 7000 {flag} 1
goto @TWAR7_28344

:TWAR7_28328
print_now 'SMK1_10' {time} 7000 {flag} 1

:TWAR7_28344
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28418
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 11
84@ = generate_random_int_in_range 0 {max} 5
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_28418
if or
  83@ == 3
  83@ == 4
  83@ == 5
  83@ == 8
  83@ == 10
goto_if_false @TWAR7_28518
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28511
gosub @TWAR7_31954
gosub @TWAR7_32061
gosub @TWAR7_32215
goto @TWAR7_28518

:TWAR7_28511
83@ = 0

:TWAR7_28518
if 
  67@ > 3
goto_if_false @TWAR7_29524
if or
  14 > 67@
  67@ == 16
goto_if_false @TWAR7_29524
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_28917
if 
  locate_char_any_means_char_3d $mc_strap {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TWAR7_28910
if and
  is_char_on_foot $scplayer
  is_char_on_foot $mc_strap
goto_if_false @TWAR7_28763
if 
  83@ == 9
goto_if_false @TWAR7_28763
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28756
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28718
gosub @TWAR7_32215
goto @TWAR7_28749

:TWAR7_28718
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28749
goto @TWAR7_28763

:TWAR7_28756
83@ = 0

:TWAR7_28763
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $mc_strap
goto_if_false @TWAR7_28910
if 
  83@ == 9
goto_if_false @TWAR7_28910
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28903
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28865
gosub @TWAR7_32215
goto @TWAR7_28896

:TWAR7_28865
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28896
goto @TWAR7_28910

:TWAR7_28903
83@ = 0

:TWAR7_28910
goto @TWAR7_29034

:TWAR7_28917
if 
  14 > 83@
goto_if_false @TWAR7_29034
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28961
84@ += 1

:TWAR7_28961
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
clear_prints 
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 14
84@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29034
if 
  83@ == 14
goto_if_false @TWAR7_29225
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29202
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29172
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_29134
gosub @TWAR7_32215
goto @TWAR7_29165

:TWAR7_29134
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29165
goto @TWAR7_29195

:TWAR7_29172
print_now 'SMK1_09' {time} 7000 {flag} 1
83@ = 15

:TWAR7_29195
goto @TWAR7_29225

:TWAR7_29202
print_now 'SMK1_09' {time} 7000 {flag} 1
83@ = 15

:TWAR7_29225
if 
  83@ == 15
goto_if_false @TWAR7_29278
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29278
83@ = 16
84@ = 0
clear_prints 

:TWAR7_29278
if 
  83@ == 16
goto_if_false @TWAR7_29524
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29469
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_29462
if 
  14 > 67@
goto_if_false @TWAR7_29446
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_29423
print_now 'SMK1_04' {time} 7000 {flag} 1
goto @TWAR7_29439

:TWAR7_29423
print_now 'SMK1_11' {time} 7000 {flag} 1

:TWAR7_29439
goto @TWAR7_29462

:TWAR7_29446
print_now 'SMK1_13' {time} 8500 {flag} 1

:TWAR7_29462
goto @TWAR7_29524

:TWAR7_29469
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 14
84@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29524
if or
  83@ == 6
  83@ == 7
goto_if_false @TWAR7_29657
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29650
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not is_char_dead 34@
goto_if_false @TWAR7_29612
gosub @TWAR7_32215
goto @TWAR7_29643

:TWAR7_29612
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29643
goto @TWAR7_29657

:TWAR7_29650
83@ = 0

:TWAR7_29657
if 
  83@ == 17
goto_if_false @TWAR7_29788
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29781
gosub @TWAR7_31954
gosub @TWAR7_32061
if and
  not is_char_dead 34@
  not is_char_dead $mc_strap
goto_if_false @TWAR7_29743
gosub @TWAR7_32215
goto @TWAR7_29774

:TWAR7_29743
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29774
goto @TWAR7_29788

:TWAR7_29781
83@ = 0

:TWAR7_29788
return 

:TWAR7_29790
if 
  83@ == 1
goto_if_false @TWAR7_29991
set_lvar_text_label 86@s = 'SMO1_AA'
set_lvar_text_label 88@s = 'SMO1_AC'
set_lvar_text_label 90@s = 'SMO1_AD'
set_lvar_text_label 92@s = 'SMO1_AE'
set_lvar_text_label 94@s = 'SMO1_AF'
set_lvar_text_label 96@s = 'SMO1_AG'
set_lvar_text_label 98@s = 'SMO1_AH'
set_lvar_text_label 100@s = 'SMO1_AJ'
set_lvar_int_to_constant 112@ = 9636
set_lvar_int_to_constant 113@ = 9619
set_lvar_int_to_constant 114@ = 9669
set_lvar_int_to_constant 115@ = 9620
set_lvar_int_to_constant 116@ = 9637
set_lvar_int_to_constant 117@ = 9621
set_lvar_int_to_constant 118@ = 9670
set_lvar_int_to_constant 119@ = 9671
125@ = 8

:TWAR7_29991
if 
  83@ == 2
goto_if_false @TWAR7_30170
set_lvar_text_label 86@s = 'SMO1_BA'
set_lvar_text_label 88@s = 'SMO1_BB'
set_lvar_text_label 90@s = 'SMO1_BC'
set_lvar_text_label 92@s = 'SMO1_BD'
set_lvar_text_label 94@s = 'SMO1_BE'
set_lvar_text_label 96@s = 'SMO1_BF'
set_lvar_text_label 98@s = 'SMO1_BG'
set_lvar_int_to_constant 112@ = 9622
set_lvar_int_to_constant 113@ = 9641
set_lvar_int_to_constant 114@ = 9672
set_lvar_int_to_constant 115@ = 9642
set_lvar_int_to_constant 116@ = 9643
set_lvar_int_to_constant 117@ = 9638
set_lvar_int_to_constant 118@ = 9644
125@ = 7

:TWAR7_30170
if 
  83@ == 3
goto_if_false @TWAR7_30349
set_lvar_text_label 86@s = 'SMO1_CA'
set_lvar_text_label 88@s = 'SMO1_CB'
set_lvar_text_label 90@s = 'SMO1_CC'
set_lvar_text_label 92@s = 'SMO1_CD'
set_lvar_text_label 94@s = 'SMO1_CE'
set_lvar_text_label 96@s = 'SMO1_CF'
set_lvar_text_label 98@s = 'SMO1_CG'
set_lvar_int_to_constant 112@ = 9645
set_lvar_int_to_constant 113@ = 9674
set_lvar_int_to_constant 114@ = 9646
set_lvar_int_to_constant 115@ = 9673
set_lvar_int_to_constant 116@ = 9675
set_lvar_int_to_constant 117@ = 9639
set_lvar_int_to_constant 118@ = 9640
125@ = 7

:TWAR7_30349
if 
  83@ == 4
goto_if_false @TWAR7_30595
set_lvar_text_label 86@s = 'SMO1_CH'
set_lvar_text_label 88@s = 'SMO1_DB'
set_lvar_text_label 90@s = 'SMO1_CJ'
set_lvar_text_label 92@s = 'SMO1_CK'
set_lvar_text_label 94@s = 'SMO1_CL'
set_lvar_text_label 96@s = 'SMO1_CM'
set_lvar_text_label 98@s = 'SMO1_CN'
set_lvar_text_label 100@s = 'SMO1_CO'
set_lvar_text_label 102@s = 'SMO1_CP'
set_lvar_text_label 104@s = 'SMO1_DA'
set_lvar_int_to_constant 112@ = 9647
set_lvar_int_to_constant 113@ = 9623
set_lvar_int_to_constant 114@ = 9600
set_lvar_int_to_constant 115@ = 9601
set_lvar_int_to_constant 116@ = 9602
set_lvar_int_to_constant 117@ = 9648
set_lvar_int_to_constant 118@ = 9649
set_lvar_int_to_constant 119@ = 9603
set_lvar_int_to_constant 120@ = 9604
set_lvar_int_to_constant 121@ = 9650
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30595
if 
  83@ == 5
goto_if_false @TWAR7_30664
set_lvar_text_label 86@s = 'SMO1_EA'
set_lvar_text_label 88@s = 'SMO1_EB'
set_lvar_int_to_constant 112@ = 9625
set_lvar_int_to_constant 113@ = 9651
125@ = 2

:TWAR7_30664
if 
  83@ == 6
goto_if_false @TWAR7_30910
set_lvar_text_label 86@s = 'SMO1_FA'
set_lvar_text_label 88@s = 'SMO1_FB'
set_lvar_text_label 90@s = 'SMO1_FC'
set_lvar_text_label 92@s = 'SMO1_FD'
set_lvar_text_label 94@s = 'SMO1_FE'
set_lvar_text_label 96@s = 'SMO1_FF'
set_lvar_text_label 98@s = 'SMO1_FG'
set_lvar_text_label 100@s = 'SMO1_FH'
set_lvar_text_label 102@s = 'SMO1_FJ'
set_lvar_text_label 104@s = 'SMO1_FK'
set_lvar_int_to_constant 112@ = 9605
set_lvar_int_to_constant 113@ = 9606
set_lvar_int_to_constant 114@ = 9607
set_lvar_int_to_constant 115@ = 9608
set_lvar_int_to_constant 116@ = 9609
set_lvar_int_to_constant 117@ = 9610
set_lvar_int_to_constant 118@ = 9611
set_lvar_int_to_constant 119@ = 9612
set_lvar_int_to_constant 120@ = 9613
set_lvar_int_to_constant 121@ = 9614
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30910
if 
  83@ == 7
goto_if_false @TWAR7_30979
set_lvar_text_label 86@s = 'SMO1_GA'
set_lvar_text_label 88@s = 'SMO1_GB'
set_lvar_int_to_constant 112@ = 9617
set_lvar_int_to_constant 113@ = 9618
125@ = 2

:TWAR7_30979
if 
  83@ == 8
goto_if_false @TWAR7_31180
set_lvar_text_label 86@s = 'SMO1_HA'
set_lvar_text_label 88@s = 'SMO1_HB'
set_lvar_text_label 90@s = 'SMO1_HC'
set_lvar_text_label 92@s = 'SMO1_HD'
set_lvar_text_label 94@s = 'SMO1_HE'
set_lvar_text_label 96@s = 'SMO1_HF'
set_lvar_text_label 98@s = 'SMO1_HG'
set_lvar_text_label 100@s = 'SMO1_HH'
set_lvar_int_to_constant 112@ = 9656
set_lvar_int_to_constant 113@ = 9626
set_lvar_int_to_constant 114@ = 9627
set_lvar_int_to_constant 115@ = 9657
set_lvar_int_to_constant 116@ = 9628
set_lvar_int_to_constant 117@ = 9658
set_lvar_int_to_constant 118@ = 9629
set_lvar_int_to_constant 119@ = 9659
125@ = 8

:TWAR7_31180
if 
  83@ == 9
goto_if_false @TWAR7_31425
set_lvar_text_label 86@s = 'SMO1_JA'
set_lvar_text_label 88@s = 'SMO1_JB'
set_lvar_text_label 90@s = 'SMO1_JC'
set_lvar_text_label 92@s = 'SMO1_JD'
set_lvar_text_label 94@s = 'SMO1_JG'
set_lvar_text_label 96@s = 'SMO1_JM'
set_lvar_text_label 98@s = 'SMO1_JH'
set_lvar_text_label 100@s = 'SMO1_JJ'
set_lvar_text_label 102@s = 'SMO1_JK'
set_lvar_text_label 104@s = 'SMO1_JL'
set_lvar_int_to_constant 112@ = 9660
set_lvar_int_to_constant 113@ = 9630
set_lvar_int_to_constant 114@ = 9661
set_lvar_int_to_constant 115@ = 9662
set_lvar_int_to_constant 116@ = 9631
set_lvar_int_to_constant 117@ = 9634
set_lvar_int_to_constant 118@ = 9663
set_lvar_int_to_constant 119@ = 9632
set_lvar_int_to_constant 120@ = 9664
set_lvar_int_to_constant 121@ = 9633
125@ = 10

:TWAR7_31425
if 
  83@ == 10
goto_if_false @TWAR7_31560
set_lvar_text_label 86@s = 'SMO1_KA'
set_lvar_text_label 88@s = 'SMO1_KB'
set_lvar_text_label 90@s = 'SMO1_KC'
set_lvar_text_label 92@s = 'SMO1_KD'
set_lvar_text_label 94@s = 'SMO1_KE'
set_lvar_int_to_constant 112@ = 9665
set_lvar_int_to_constant 113@ = 9666
set_lvar_int_to_constant 114@ = 9635
set_lvar_int_to_constant 115@ = 9667
set_lvar_int_to_constant 116@ = 9668
125@ = 5

:TWAR7_31560
if 
  83@ == 11
goto_if_false @TWAR7_31718
set_lvar_text_label 86@s = 'SMOX_AA'
set_lvar_text_label 88@s = 'SMOX_AB'
set_lvar_text_label 90@s = 'SMOX_AC'
set_lvar_text_label 92@s = 'SMOX_AD'
set_lvar_text_label 94@s = 'SMOX_AE'
set_lvar_text_label 96@s = 'SMOX_AF'
set_lvar_int_to_constant 112@ = 25800
set_lvar_int_to_constant 113@ = 25801
set_lvar_int_to_constant 114@ = 25802
set_lvar_int_to_constant 115@ = 25803
set_lvar_int_to_constant 116@ = 25804
set_lvar_int_to_constant 117@ = 25805
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31718
if 
  83@ == 14
goto_if_false @TWAR7_31810
set_lvar_text_label 86@s = 'LOCX_AA'
set_lvar_text_label 88@s = 'LOCX_AB'
set_lvar_text_label 90@s = 'LOCX_AC'
set_lvar_int_to_constant 112@ = 25000
set_lvar_int_to_constant 113@ = 25001
set_lvar_int_to_constant 114@ = 25002
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31810
if 
  83@ == 17
goto_if_false @TWAR7_31923
set_lvar_text_label 86@s = 'SMO1_GC'
set_lvar_text_label 88@s = 'SMO1_GD'
set_lvar_text_label 90@s = 'SMO1_GE'
set_lvar_text_label 92@s = 'SMO1_GF'
set_lvar_int_to_constant 112@ = 9652
set_lvar_int_to_constant 113@ = 9653
set_lvar_int_to_constant 114@ = 9654
set_lvar_int_to_constant 115@ = 9655
125@ = 4

:TWAR7_31923
set_lvar_int_to_lvar_int 128@ = 84@
126@ = 0
127@ = 0
129@ = 1
return 

:TWAR7_31954
if 
  is_int_lvar_greater_than_int_lvar 125@ > 128@
goto_if_false @TWAR7_32059
if 
  126@ == 0
goto_if_false @TWAR7_32016
load_mission_audio MissionAudioSlot.Slot1 {audioId} 112@(128@,13i)
128@ += 1
126@ = 1

:TWAR7_32016
if 
  127@ == 0
goto_if_false @TWAR7_32059
load_mission_audio MissionAudioSlot.Slot2 {audioId} 112@(128@,13i)
128@ += 1
127@ = 1

:TWAR7_32059
return 

:TWAR7_32061
if 
  129@ == 1
goto_if_false @TWAR7_32137
if 
  126@ == 1
goto_if_false @TWAR7_32137
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TWAR7_32137
play_mission_audio MissionAudioSlot.Slot1
print_now 86@(84@,13s) {time} 4500 {flag} 1
126@ = 2

:TWAR7_32137
if 
  129@ == 2
goto_if_false @TWAR7_32213
if 
  127@ == 1
goto_if_false @TWAR7_32213
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TWAR7_32213
play_mission_audio MissionAudioSlot.Slot2
print_now 86@(84@,13s) {time} 4500 {flag} 1
127@ = 2

:TWAR7_32213
return 

:TWAR7_32215
if 
  126@ == 2
goto_if_false @TWAR7_32278
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TWAR7_32278
clear_this_print 86@(84@,13s)
84@ += 1
129@ = 2
126@ = 0

:TWAR7_32278
if 
  127@ == 2
goto_if_false @TWAR7_32341
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TWAR7_32341
clear_this_print 86@(84@,13s)
84@ += 1
129@ = 1
127@ = 0

:TWAR7_32341
return 

//-------------Mission 28---------------
// Originally: Running Dog

:SMOKE2
script_name 'SMOKE2'
gosub @SMOKE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE2_38
gosub @SMOKE2_11279

:SMOKE2_38
gosub @SMOKE2_11359
terminate_this_script 

:SMOKE2_47
register_mission_given 
load_mission_text 'SMOKE2'
$onmission = 1
wait 0
36@ = 2068.4199
37@ = -1694.87
38@ = 13.3
39@ = 270.0
$loaded_boxes_neg = 2514.3401
$s2_meet_x = -1411.9301
$s2_meet_y = 27.41
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
46@ = 22
47@ = 2459.8
69@ = -1402.1899
91@ = 24.06
48@ = 2442.0701
70@ = -1370.23
92@ = 24.06
49@ = 2414.49
71@ = -1369.36
93@ = 24.76
50@ = 2410.1899
72@ = -1364.03
94@ = 24.75
51@ = 2399.6799
73@ = -1358.24
95@ = 24.93
52@ = 2381.8799
74@ = -1354.88
96@ = 24.08
53@ = 2343.29
75@ = -1351.41
97@ = 24.06
54@ = 2336.29
76@ = -1310.99
98@ = 24.29
55@ = 2257.0701
77@ = -1291.85
99@ = 24.01
56@ = 2241.6101
78@ = -1281.61
100@ = 24.42
57@ = 2241.6101
79@ = -1264.6801
101@ = 24.37
58@ = 2239.48
80@ = -1260.91
102@ = 23.98
59@ = 2241.1799
81@ = -1257.88
103@ = 23.99
60@ = 2241.1799
82@ = -1254.46
104@ = 24.46
61@ = 2241.1799
83@ = -1238.3
105@ = 25.21
62@ = 2221.54
84@ = -1235.75
106@ = 24.62
63@ = 2202.27
85@ = -1236.72
107@ = 24.0
64@ = 2202.21
86@ = -1257.05
108@ = 23.91
65@ = 2199.5701
87@ = -1263.15
109@ = 23.92
66@ = 2199.0801
88@ = -1279.4399
110@ = 24.57
67@ = 2182.0701
89@ = -1280.2
111@ = 24.68
68@ = 2175.1799
90@ = -1282.8199
112@ = 24.02
126@ = 2117.8601
127@ = -1071.42
128@ = 24.64
129@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
157@ = 0
158@ = 0
160@ = 0
182@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SMOKE2_1021
if 
  get_fading_status 
goto_if_false @SMOKE2_1045
wait 0
goto @SMOKE2_1021

:SMOKE2_1045
clear_area 2069.8999 {y} -1702.73 {z} 12.59 {radius} 100.0 {clearParticles} False
request_model #LAE_SMOKECUTSCENE

:SMOKE2_1074
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @SMOKE2_1101
wait 0
goto @SMOKE2_1074

:SMOKE2_1101
187@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE2A'

:SMOKE2_1135
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE2_1159
wait 0
goto @SMOKE2_1135

:SMOKE2_1159
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE2_1168
if 
  not has_cutscene_finished 
goto_if_false @SMOKE2_1192
wait 0
goto @SMOKE2_1168

:SMOKE2_1192
do_fade 0 {direction} Fade.Out

:SMOKE2_1198
if 
  get_fading_status 
goto_if_false @SMOKE2_1222
wait 0
goto @SMOKE2_1198

:SMOKE2_1222
clear_cutscene 
set_player_control $player1 {state} False
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 187@
load_special_character 1 {modelName} 'SMOKE'
request_model 466
request_model 346
load_all_models_now 

:SMOKE2_1266
if or
  not has_special_character_loaded 1
  not has_model_loaded 466
  not has_model_loaded 346
goto_if_false @SMOKE2_1302
wait 0
goto @SMOKE2_1266

:SMOKE2_1302
gosub @SMOKE2_5382
load_scene 2069.8999 {y} -1702.73 {z} 12.59
clear_area 2069.8999 {y} -1702.73 {z} 12.59 {radius} 100.0 {clearParticles} False
clear_area $loaded_boxes_neg {y} $s2_meet_x {z} $s2_meet_y {radius} 100.0 {clearParticles} False
switch_roads_off 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
switch_roads_off 2252.8899 {leftBottomY} -1286.37 {leftBottomZ} 22.25 {rightTopX} 2258.8899 {rightTopY} -1280.37 {rightTopZ} 28.25
set_radio_channel RadioChannel.BounceFM
set_char_coordinates $scplayer {x} 2070.8701 {y} -1703.01 {z} 12.55
set_char_heading $scplayer {heading} 0.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  182@ == 1
goto_if_false @SMOKE2_1678
34@ = create_car 466 {x} 0.0 {y} 0.0 {z} -100.0
183@ = add_blip_for_car 34@
35@ = create_char PedType.Mission1 {modelId} 290 {x} 0.0 {y} 0.0 {z} -100.0
41@ = create_char PedType.Mission2 {modelId} 108 {x} 0.0 {y} 0.0 {z} -100.0
42@ = create_car 405 {x} 0.0 {y} 0.0 {z} -100.0
43@ = create_char_inside_car 42@ {pedType} PedType.Mission2 {modelId} 109
44@ = create_char PedType.Mission2 {modelId} 109 {x} 0.0 {y} 0.0 {z} -100.0
45@ = create_char PedType.Mission2 {modelId} 110 {x} 0.0 {y} 0.0 {z} -100.0

:SMOKE2_1678
switch_ped_roads_off 2458.5 {leftBottomY} -1410.63 {leftBottomZ} 24.06 {rightTopX} 2504.27 {rightTopY} -1395.83 {rightTopZ} 28.55
115@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 47@ {y} 69@ {z} 91@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 48@ {y} 70@ {z} 92@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 49@ {y} 71@ {z} 93@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 50@ {y} 72@ {z} 94@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 51@ {y} 73@ {z} 95@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 52@ {y} 74@ {z} 96@ {speed} MoveState.Run {time} -1
close_sequence_task 115@
116@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 53@ {y} 75@ {z} 97@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 54@ {y} 76@ {z} 98@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 55@ {y} 77@ {z} 99@ {speed} MoveState.Sprint {time} -1
task_go_straight_to_coord -1 {x} 2254.0901 {y} -1283.83 {z} 25.18 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 56@ {y} 78@ {z} 100@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 57@ {y} 79@ {z} 101@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
close_sequence_task 116@
117@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 58@ {y} 80@ {z} 102@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 59@ {y} 81@ {z} 103@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 60@ {y} 82@ {z} 104@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 61@ {y} 83@ {z} 105@ {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 62@ {y} 84@ {z} 106@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
close_sequence_task 117@
118@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 63@ {y} 85@ {z} 107@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 64@ {y} 86@ {z} 108@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 65@ {y} 87@ {z} 109@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 66@ {y} 88@ {z} 110@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 67@ {y} 89@ {z} 111@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 68@ {y} 90@ {z} 112@ {speed} MoveState.Run {time} -1
close_sequence_task 118@
114@ = open_sequence_task 
perform_sequence_task -1 {sequence} 115@
perform_sequence_task -1 {sequence} 116@
perform_sequence_task -1 {sequence} 117@
perform_sequence_task -1 {sequence} 118@
close_sequence_task 114@
print_now 'SMK2_1' {time} 10000 {flag} 0

:SMOKE2_2258
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SMOKE2_2284
goto @SMOKE2_11304

:SMOKE2_2284
if and
  162@ <> 1
  not is_char_dead 35@
  not is_car_dead 34@
goto_if_false @SMOKE2_2436
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2436
remove_blip 183@
184@ = add_blip_for_coord $loaded_boxes_neg {y} $s2_meet_x {z} $s2_meet_y
162@ = 1
163@ = 1
print_now 'SMK2_2' {time} 11000 {flag} 0
40@ = create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 100 {x} 2444.895 {y} -1981.524 {z} 13.933
186@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.EmmetGun
TIMERA = 0

:SMOKE2_2436
if and
  162@ == 1
  166@ <> 1
  not is_char_dead 35@
  not is_car_dead 34@
goto_if_false @SMOKE2_3206
if 
  167@ <> 1
goto_if_false @SMOKE2_2517
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_2517
remove_blip 186@
167@ = 1

:SMOKE2_2517
if and
  163@ == 1
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2743
remove_blip 184@
183@ = add_blip_for_car 34@
set_blip_as_friendly 183@ {state} True
gosub @SMOKE2_10713
if 
  is_char_dead 35@
goto_if_false @SMOKE2_2613
clear_mission_audio MissionAudioSlot.Slot2
print_now 'SMK2_7' {time} 4000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_2613
if 
  is_car_dead 34@
goto_if_false @SMOKE2_2652
print_now 'SMK2_12' {time} 5000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_2652
if or
  not locate_char_any_means_2d $scplayer {x} 2444.895 {y} -1981.524 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  167@ == 1
goto_if_false @SMOKE2_2720
print_now 'SMK2_3' {time} 5000 {flag} 0
goto @SMOKE2_2736

:SMOKE2_2720
print_now 'SMK2_16' {time} 5000 {flag} 0

:SMOKE2_2736
163@ = 0

:SMOKE2_2743
if and
  163@ == 0
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2829
remove_blip 183@
184@ = add_blip_for_coord $loaded_boxes_neg {y} $s2_meet_x {z} $s2_meet_y
if 
  165@ == 1
goto_if_false @SMOKE2_2822
print_now 'SMK2_15' {time} 5000 {flag} 0

:SMOKE2_2822
163@ = 1

:SMOKE2_2829
if 
  163@ == 1
goto_if_false @SMOKE2_3005
if and
  164@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_2917
161@ = 2
gosub @SMOKE2_9885
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_2910
shut_char_up_for_scripted_speech 35@ {state} True

:SMOKE2_2910
164@ = 1

:SMOKE2_2917
if and
  164@ == 1
  165@ <> 1
goto_if_false @SMOKE2_3005
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_2975
gosub @SMOKE2_10482
goto @SMOKE2_3005

:SMOKE2_2975
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_2998
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_2998
165@ = 1

:SMOKE2_3005
if 
  163@ == 1
goto_if_false @SMOKE2_3206
if 
  locate_char_in_car_3d $scplayer {x} $loaded_boxes_neg {y} $s2_meet_x {z} $s2_meet_y {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SMOKE2_3206
set_player_control $player1 {state} False
166@ = 1
remove_blip 184@
remove_blip 186@
switch_roads_back_to_original 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3144
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_3144
gosub @SMOKE2_5582
switch_roads_off 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
print_now 'SMK2_17' {time} 10000 {flag} 0
TIMERA = 0

:SMOKE2_3206
if 
  166@ == 1
goto_if_false @SMOKE2_5048
if and
  168@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3275
print_help_forever 'SMK2_H1'
168@ = 1
TIMERA = 0

:SMOKE2_3275
if and
  168@ == 1
  169@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3333
print_help_forever 'SMK2_H2'
169@ = 1
TIMERA = 0

:SMOKE2_3333
if and
  169@ == 1
  170@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3391
print_help_forever 'SPRSTAM'
170@ = 1
TIMERA = 0

:SMOKE2_3391
if and
  170@ == 1
  171@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3433
clear_help 
171@ = 1

:SMOKE2_3433
if 
  173@ <> 1
goto_if_false @SMOKE2_3673
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3549
if and
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
  172@ <> 1
goto_if_false @SMOKE2_3549
161@ = 1
gosub @SMOKE2_9885
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3542
shut_char_up_for_scripted_speech 35@ {state} True

:SMOKE2_3542
172@ = 1

:SMOKE2_3549
if and
  172@ == 1
  161@ == 1
goto_if_false @SMOKE2_3673
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_3643
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3623
gosub @SMOKE2_10482
goto @SMOKE2_3636

:SMOKE2_3623
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
173@ = 1

:SMOKE2_3636
goto @SMOKE2_3673

:SMOKE2_3643
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3666
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_3666
173@ = 1

:SMOKE2_3673
if 
  174@ <> 1
goto_if_false @SMOKE2_3806
if 
  locate_char_any_means_2d $scplayer {x} 2354.1101 {y} -1355.54 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SMOKE2_3806
113@ = 0

:SMOKE2_3736
if 
  2 > 113@
goto_if_false @SMOKE2_3799
if 
  not is_char_dead 44@(113@,2i)
goto_if_false @SMOKE2_3785
set_char_kinda_stay_in_same_place 44@(113@,2i) {state} False

:SMOKE2_3785
113@ += 1
goto @SMOKE2_3736

:SMOKE2_3799
174@ = 1

:SMOKE2_3806
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_4137
if 
  175@ <> 1
goto_if_false @SMOKE2_3912
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_3912
119@, 120@ = get_sequence_progress_recursive 41@
if and
  119@ == 1
  120@ == 4
goto_if_false @SMOKE2_3912
175@ = 1

:SMOKE2_3912
if 
  175@ <> 1
goto_if_false @SMOKE2_4037
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_3978
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.5

:SMOKE2_3978
if 
  is_char_playing_anim 41@ {animationName} "SPRINT_CIVI"
goto_if_false @SMOKE2_4030
set_char_anim_speed 41@ {animName} "SPRINT_CIVI" {animSpeed} 1.5

:SMOKE2_4030
goto @SMOKE2_4137

:SMOKE2_4037
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_4085
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.2

:SMOKE2_4085
if 
  is_char_playing_anim 41@ {animationName} "SPRINT_CIVI"
goto_if_false @SMOKE2_4137
set_char_anim_speed 41@ {animName} "SPRINT_CIVI" {animSpeed} 1.2

:SMOKE2_4137
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_5041
if 
  176@ <> 1
goto_if_false @SMOKE2_4314
set_lvar_int_to_lvar_int 113@ = 46@
113@ -= 1
122@ = get_script_task_status 41@ {taskId} 1952
if and
  is_int_lvar_equal_to_constant 122@ == 7
  locate_char_any_means_3d 41@ {x} 47@(113@,22f) {y} 69@(113@,22f) {z} 91@(113@,22f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SMOKE2_4314
176@ = 1
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_4314
if 
  not is_car_on_fire 42@
goto_if_false @SMOKE2_4314
task_enter_car_as_passenger 41@ {vehicle} 42@ {time} -2 {seat} SeatId.BikeRear

:SMOKE2_4314
if 
  180@ <> 1
goto_if_false @SMOKE2_4384
if and
  not is_char_dead 43@
  not is_car_dead 42@
goto_if_false @SMOKE2_4384
if 
  is_car_on_fire 42@
goto_if_false @SMOKE2_4384
task_kill_char_on_foot 43@ {target} $scplayer
180@ = 1

:SMOKE2_4384
if and
  176@ == 1
  177@ <> 1
goto_if_false @SMOKE2_5034
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_4631
if 
  is_char_in_car 41@ {vehicle} 42@
goto_if_false @SMOKE2_4631
178@ = 1
task_car_drive_wander 43@ {vehicle} 42@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 41@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
switch_roads_back_to_original 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_4608
print_now 'SMK2_9' {time} 10000 {flag} 0
goto @SMOKE2_4624

:SMOKE2_4608
print_now 'SMK2_8' {time} 10000 {flag} 0

:SMOKE2_4624
TIMERA = 0

:SMOKE2_4631
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if or
  is_car_dead 42@
  is_char_dead 43@
goto_if_false @SMOKE2_4702
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
177@ = 1
goto @SMOKE2_4743

:SMOKE2_4702
if 
  is_car_on_fire 42@
goto_if_false @SMOKE2_4743
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
177@ = 1

:SMOKE2_4743
if 
  178@ == 1
goto_if_false @SMOKE2_5034
if 
  177@ <> 1
goto_if_false @SMOKE2_4889
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_4889
125@ = get_driver_of_car 42@
if or
  is_car_on_fire 42@
  125@ == -1
goto_if_false @SMOKE2_4889
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
if and
  not is_char_dead 43@
  180@ <> 1
goto_if_false @SMOKE2_4882
task_kill_char_on_foot 43@ {target} $scplayer
180@ = 1

:SMOKE2_4882
177@ = 1

:SMOKE2_4889
if 
  177@ <> 1
goto_if_false @SMOKE2_5034
if and
  179@ <> 1
  TIMERA > 180000
goto_if_false @SMOKE2_5034
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_5034
if and
  is_char_in_car 43@ {vehicle} 42@
  is_char_in_car 41@ {vehicle} 42@
goto_if_false @SMOKE2_5034
task_car_drive_to_coord 43@ {vehicle} 42@ {x} 126@ {y} 127@ {z} 128@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
179@ = 1
print_now 'SMK2_10' {time} 7000 {flag} 0

:SMOKE2_5034
goto @SMOKE2_5048

:SMOKE2_5041
goto @SMOKE2_11304

:SMOKE2_5048
if 
  is_char_dead 35@
goto_if_false @SMOKE2_5087
print_now 'SMK2_7' {time} 4000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_5087
if and
  166@ <> 1
  is_car_dead 34@
goto_if_false @SMOKE2_5133
print_now 'SMK2_12' {time} 5000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_5133
if and
  176@ == 1
  not is_char_dead 41@
goto_if_false @SMOKE2_5210
if 
  not locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @SMOKE2_5210
print_now 'SMK2_11' {time} 4000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_5210
if and
  179@ == 1
  177@ <> 1
  not is_char_dead 41@
  not is_char_dead 43@
  not is_car_dead 42@
goto_if_false @SMOKE2_5375
if and
  is_char_in_car 41@ {vehicle} 42@
  is_char_in_car 43@ {vehicle} 42@
  locate_car_3d 42@ {x} 126@ {y} 127@ {z} 128@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_5375
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SMOKE2_5347
gosub @SMOKE2_8275
goto @SMOKE2_5352

:SMOKE2_5347
remove_char_elegantly 41@

:SMOKE2_5352
print_now 'SMK2_11' {time} 4000 {flag} 0
goto @SMOKE2_11279

:SMOKE2_5375
goto @SMOKE2_2258

:SMOKE2_5382
custom_plate_for_next_car 466 {text} "_A2TMFK_"
34@ = create_car 466 {x} 36@ {y} 37@ {z} 38@
set_car_heading 34@ {heading} 39@
change_car_colour 34@ {color1} 98 {color2} 14
183@ = add_blip_for_car 34@
set_blip_as_friendly 183@ {state} True
35@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_health 35@ {health} 500
set_char_max_health 35@ {maxHealth} 500
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_only_damaged_by_player 35@ {state} True
set_char_never_targetted 35@ {state} True
set_char_suffers_critical_hits 35@ {state} False
set_anim_group_for_char 35@ {animGroup} "FATMAN"
set_char_cant_be_dragged_out 35@ {state} True
set_char_stay_in_car_when_jacked 35@ {state} True
set_char_get_out_upside_down_car 35@ {state} False
124@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 124@ {event} Event.VehicleOnFire
set_char_decision_maker 35@ {handleOrTemplate} 124@
clear_all_char_relationships 35@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 35@ {relationshipType} RelationshipType.Hate
return 

:SMOKE2_5582
do_fade 1000 {direction} Fade.Out

:SMOKE2_5589
if 
  get_fading_status 
goto_if_false @SMOKE2_5613
wait 0
goto @SMOKE2_5589

:SMOKE2_5613
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_area $loaded_boxes_neg {y} $s2_meet_x {z} $s2_meet_y {radius} 150.0 {clearParticles} True
switch_roads_off 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_off 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
set_car_density_multiplier 0.0
192@, 193@ = get_random_car_model_in_memory True
if 
  192@ <> -1
goto_if_false @SMOKE2_5822
188@ = create_car 192@ {x} 2448.3101 {y} -1392.34 {z} 23.68
190@ = create_random_char_as_driver 188@
set_car_heading 188@ {heading} 180.0
189@ = create_car 192@ {x} 2453.7 {y} -1408.14 {z} 23.68
191@ = create_random_char_as_driver 189@
set_car_heading 189@ {heading} 0.0

:SMOKE2_5822
if 
  not is_car_dead 34@
goto_if_false @SMOKE2_5932
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_5877
warp_char_from_car_to_coord $scplayer {x} 2473.6001 {y} -1420.86 {z} 27.88

:SMOKE2_5877
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_5932
if 
  is_char_in_car 35@ {vehicle} 34@
goto_if_false @SMOKE2_5932
warp_char_from_car_to_coord 35@ {x} 2470.6001 {y} -1420.86 {z} 27.88

:SMOKE2_5932
delete_car 34@
set_player_control $player1 {state} False
make_player_safe_for_cutscene $player1
load_cutscene 'SMOKE2B'

:SMOKE2_5960
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE2_5984
wait 0
goto @SMOKE2_5960

:SMOKE2_5984
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE2_5993
if 
  not has_cutscene_finished 
goto_if_false @SMOKE2_6017
wait 0
goto @SMOKE2_5993

:SMOKE2_6017
do_fade 0 {direction} Fade.Out

:SMOKE2_6023
if 
  get_fading_status 
goto_if_false @SMOKE2_6047
wait 0
goto @SMOKE2_6023

:SMOKE2_6047
clear_cutscene 
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 1.0
request_model 108
request_model 109
request_model 110
request_model 405
request_model 352
load_all_models_now 

:SMOKE2_6091
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 405
  not has_model_loaded 352
goto_if_false @SMOKE2_6135
wait 0
goto @SMOKE2_6091

:SMOKE2_6135
set_lvar_text_label 130@s = 'SMO2B11'
set_lvar_int_to_constant 148@ = 10840
$s2_meet_z = generate_random_int_in_range 0 {max} 3
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_6206
set_lvar_text_label 132@s = 'SMO2_CA'
set_lvar_int_to_constant 149@ = 10812

:SMOKE2_6206
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_6246
set_lvar_text_label 132@s = 'SMO2_CB'
set_lvar_int_to_constant 149@ = 10813

:SMOKE2_6246
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_6286
set_lvar_text_label 132@s = 'SMO2_CC'
set_lvar_int_to_constant 149@ = 10814

:SMOKE2_6286
load_mission_audio MissionAudioSlot.Slot1 {audioId} 148@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 149@

:SMOKE2_6300
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE2_6330
wait 0
goto @SMOKE2_6300

:SMOKE2_6330
load_scene 2471.99 {y} -1402.3199 {z} 27.82
41@ = create_char PedType.Mission2 {modelId} 108 {x} 2471.99 {y} -1402.3199 {z} 27.82
set_char_heading 41@ {heading} 90.0
set_char_health 41@ {health} 200
set_char_max_health 41@ {maxHealth} 200
set_char_money 41@ {amount} 500
set_char_only_damaged_by_player 41@ {state} True
give_weapon_to_char 41@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 41@ {accuracy} 5
set_char_stay_in_same_place 41@ {state} True
clear_all_char_relationships 41@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 41@ {relationshipType} RelationshipType.Hate
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_6476
perform_sequence_task 41@ {sequence} 114@

:SMOKE2_6476
set_char_coordinates $scplayer {x} 2473.99 {y} -1402.3199 {z} 27.82
set_char_heading $scplayer {heading} 90.0
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_6552
set_char_coordinates 35@ {x} 2474.99 {y} -1402.3199 {z} 27.82
set_char_heading 35@ {heading} 90.0

:SMOKE2_6552
set_fixed_camera_position 2460.9929 {y} -1400.991 {z} 24.5671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2461.876 {y} -1401.406 {z} 24.7836 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SMOKE2_6610
if 
  get_fading_status 
goto_if_false @SMOKE2_6634
wait 0
goto @SMOKE2_6610

:SMOKE2_6634
181@ = 1
skip_cutscene_start_internal @SMOKE2_7451
wait 2000
flush_route 
extend_route 47@ {y} 69@ {z} 91@
extend_route 48@ {y} 70@ {z} 92@
task_follow_point_route $scplayer {speed} MoveState.Run {mode} RouteMode.Once
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_6778
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 47@ {y} 69@ {z} 91@ {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 121@
perform_sequence_task 35@ {sequence} 121@
clear_sequence_task 121@

:SMOKE2_6778
play_mission_audio MissionAudioSlot.Slot1
print_now 130@s {time} 10000 {flag} 1
wait 4000
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  192@ <> -1
goto_if_false @SMOKE2_6876
if and
  not is_char_dead 190@
  not is_car_dead 188@
goto_if_false @SMOKE2_6876
task_car_drive_to_coord 190@ {vehicle} 188@ {x} 2448.3101 {y} -1429.92 {z} 23.68 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:SMOKE2_6876
set_fixed_camera_position 2459.7161 {y} -1406.5291 {z} 23.4481 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2459.658 {y} -1405.536 {z} 23.553 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7062
122@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7062
119@ = get_sequence_progress 35@

:SMOKE2_6980
if 
  0 >= 119@
goto_if_false @SMOKE2_7062
wait 0
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7055
122@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7055
119@ = get_sequence_progress 35@

:SMOKE2_7055
goto @SMOKE2_6980

:SMOKE2_7062
play_mission_audio MissionAudioSlot.Slot2
print_now 132@s {time} 10000 {flag} 1

:SMOKE2_7076
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE2_7102
wait 0
goto @SMOKE2_7076

:SMOKE2_7102
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
wait 1000
clear_area 49@ {y} 71@ {z} 93@ {radius} 35.0 {clearParticles} False
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7185
set_char_coordinates 41@ {x} 49@ {y} 71@ {z} 23.74
set_char_heading 41@ {heading} 45.0
perform_sequence_task_from_progress 41@ {sequence} 114@ {startTaskIndex} 0 {endTaskIndex} 3

:SMOKE2_7185
set_fixed_camera_position 2406.6499 {y} -1358.0 {z} 25.33 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 50@ {y} 72@ {z} 94@ {switchStyle} SwitchType.JumpCut
wait 1000
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7383
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7383
119@, 120@ = get_sequence_progress_recursive 41@

:SMOKE2_7291
if and
  119@ == 0
  3 >= 120@
goto_if_false @SMOKE2_7383
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7376
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7376
119@, 120@ = get_sequence_progress_recursive 41@

:SMOKE2_7376
goto @SMOKE2_7291

:SMOKE2_7383
wait 2200
set_fixed_camera_position 2404.8101 {y} -1354.37 {z} 25.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2401.3999 {y} -1356.79 {z} 25.31 {switchStyle} SwitchType.JumpCut
wait 4500
181@ = 0

:SMOKE2_7451
skip_cutscene_end 
if 
  181@ == 1
goto_if_false @SMOKE2_7657
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7589
if 
  is_char_in_any_car 35@
goto_if_false @SMOKE2_7526
warp_char_from_car_to_coord 35@ {x} 47@ {y} 69@ {z} 23.06
goto @SMOKE2_7542

:SMOKE2_7526
set_char_coordinates 35@ {x} 47@ {y} 69@ {z} 23.06

:SMOKE2_7542
set_char_heading 35@ {heading} 90.0
task_play_anim 35@ {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE2_7589
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7647
set_char_coordinates 41@ {x} 2390.73 {y} -1355.6899 {z} 23.74
set_char_heading 41@ {heading} 81.47
perform_sequence_task_from_progress 41@ {sequence} 114@ {startTaskIndex} 0 {endTaskIndex} 7

:SMOKE2_7647
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 

:SMOKE2_7657
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7759
123@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 123@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 123@ {event} Event.Damage
clear_char_decision_maker_event_response 123@ {event} Event.ShotFired
clear_char_decision_maker_event_response 123@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 123@ {event} Event.GotKnockedOverByCar
clear_char_decision_maker_event_response 123@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 123@ {event} Event.AcquaintancePedDislike
clear_char_decision_maker_event_response 123@ {event} Event.DeadPed
clear_char_decision_maker_event_response 123@ {event} Event.SexyPed
set_char_decision_maker 41@ {handleOrTemplate} 123@
185@ = add_blip_for_char 41@

:SMOKE2_7759
clear_area 2170.6799 {y} -1282.01 {z} 23.7 {radius} 100.0 {clearParticles} False
42@ = create_car 405 {x} 2170.6799 {y} -1282.01 {z} 23.7
43@ = create_char_inside_car 42@ {pedType} PedType.Mission2 {modelId} 109
set_car_heading 42@ {heading} 357.03
set_car_only_damaged_by_player 42@ {state} True
set_can_burst_car_tyres 42@ {state} False
lock_car_doors 42@ {lockStatus} CarLock.LockoutPlayerOnly
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 99999
clear_area 2353.8601 {y} -1356.92 {z} 23.41 {radius} 5.0 {clearParticles} False
44@ = create_char PedType.Mission2 {modelId} 109 {x} 2353.8601 {y} -1356.92 {z} 23.41
45@ = create_char PedType.Mission2 {modelId} 110 {x} 2354.1101 {y} -1355.54 {z} 23.41
set_char_heading 44@ {heading} 90.0
set_char_heading 45@ {heading} 270.0
113@ = 0

:SMOKE2_7967
if 
  2 > 113@
goto_if_false @SMOKE2_8082
set_char_only_damaged_by_player 44@(113@,2i) {state} True
give_weapon_to_char 44@(113@,2i) {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 44@(113@,2i) {accuracy} 50
clear_all_char_relationships 44@(113@,2i) {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 44@(113@,2i) {relationshipType} RelationshipType.Hate
set_char_kinda_stay_in_same_place 44@(113@,2i) {state} True
task_kill_char_on_foot 44@(113@,2i) {target} $scplayer
113@ += 1
goto @SMOKE2_7967

:SMOKE2_8082
mark_model_as_no_longer_needed 110
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_8125
warp_char_from_car_to_coord $scplayer {x} 48@ {y} 70@ {z} 23.05
goto @SMOKE2_8141

:SMOKE2_8125
set_char_coordinates $scplayer {x} 48@ {y} 70@ {z} 23.05

:SMOKE2_8141
set_char_heading $scplayer {heading} 90.0
switch_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
if 
  192@ <> -1
goto_if_false @SMOKE2_8253
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 190@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 191@

:SMOKE2_8253
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_char_tasks $scplayer
return 

:SMOKE2_8275
set_player_control $player1 {state} False
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_8313
set_char_proofs 41@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8313
if 
  not is_char_dead 43@
goto_if_false @SMOKE2_8344
set_char_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8344
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_8375
set_car_proofs 42@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8375
do_fade 1000 {direction} Fade.Out

:SMOKE2_8382
if 
  get_fading_status 
goto_if_false @SMOKE2_8406
wait 0
goto @SMOKE2_8382

:SMOKE2_8406
clear_area 126@ {y} 127@ {z} 128@ {radius} 100.0 {clearParticles} False
switch_roads_off 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_off 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
195@, 196@, 197@ = get_char_coordinates $scplayer
198@ = get_char_heading $scplayer
200@ = get_water_height_at_coords 195@ {y} 196@ {waves} False
199@ = get_ground_z_for_3d_coord 195@ {y} 196@ {z} 197@
if 
  is_float_lvar_greater_than_float_lvar 200@ > 199@
goto_if_false @SMOKE2_8564
set_lvar_float_to_lvar_float 199@ = 200@

:SMOKE2_8564
request_collision 126@ {y} 127@
load_scene 126@ {y} 127@ {z} 128@
switch_roads_off 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_off 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
clear_area 2092.9099 {y} -1097.01 {z} 24.53 {radius} 20.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2092.9099 {y} -1097.01 {z} -100.0
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_8725
194@ = store_car_char_is_in $scplayer
set_car_heading 194@ {heading} 242.86

:SMOKE2_8725
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_8899
set_car_coordinates 42@ {x} 126@ {y} 127@ {z} -100.0
set_car_heading 42@ {heading} 50.74
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_8834
clear_char_tasks_immediately 41@
if 
  is_char_in_any_car 41@
goto_if_false @SMOKE2_8824
warp_char_from_car_to_coord 41@ {x} 2115.98 {y} -1059.4301 {z} 24.75

:SMOKE2_8824
warp_char_into_car_as_passenger 41@ {handle} 42@ {seat} SeatId.BikeRear

:SMOKE2_8834
if 
  not is_char_dead 43@
goto_if_false @SMOKE2_8899
clear_char_tasks_immediately 43@
if 
  is_char_in_any_car 43@
goto_if_false @SMOKE2_8891
warp_char_from_car_to_coord 43@ {x} 2117.04 {y} -1061.53 {z} 24.53

:SMOKE2_8891
warp_char_into_car 43@ {vehicle} 42@

:SMOKE2_8899
wait 1000
switch_widescreen True
set_fixed_camera_position 2110.5601 {y} -1067.61 {z} 25.27 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2114.8401 {y} -1067.77 {z} 25.63 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9097
flush_route 
extend_route 2121.0 {y} -1068.03 {z} 23.82
extend_route 2127.23 {y} -1061.17 {z} 28.33
extend_route 2139.74 {y} -1066.8199 {z} 34.06
extend_route 2143.6299 {y} -1066.27 {z} 34.06
extend_route 2157.1499 {y} -1072.39 {z} 39.48
201@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 201@
perform_sequence_task 41@ {sequence} 201@
clear_sequence_task 201@

:SMOKE2_9097
do_fade 500 {direction} Fade.In

:SMOKE2_9104
if 
  get_fading_status 
goto_if_false @SMOKE2_9192
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9185
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9185
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9185
goto @SMOKE2_9104

:SMOKE2_9192
202@ = 0
203@ = 0
181@ = 1
skip_cutscene_start_internal @SMOKE2_9517

:SMOKE2_9220
if 
  203@ <> 1
goto_if_false @SMOKE2_9510
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9503
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9306
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9306
if 
  202@ <> 1
goto_if_false @SMOKE2_9430
if 
  locate_char_on_foot_3d 41@ {x} 2143.6299 {y} -1066.27 {z} 34.06 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_9430
set_fixed_camera_position 2131.97 {y} -1067.61 {z} 33.57 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2137.3799 {y} -1068.03 {z} 34.43 {switchStyle} SwitchType.JumpCut
202@ = 1

:SMOKE2_9430
if 
  203@ <> 1
goto_if_false @SMOKE2_9503
if 
  locate_char_on_foot_3d 41@ {x} 2157.1499 {y} -1072.39 {z} 39.48 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_9503
203@ = 1

:SMOKE2_9503
goto @SMOKE2_9220

:SMOKE2_9510
181@ = 0

:SMOKE2_9517
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:SMOKE2_9526
if 
  get_fading_status 
goto_if_false @SMOKE2_9614
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9607
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9607
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9607
goto @SMOKE2_9526

:SMOKE2_9614
request_collision 195@ {y} 196@
load_scene 195@ {y} 196@ {z} 199@
set_char_coordinates $scplayer {x} 195@ {y} 196@ {z} 199@
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_9686
194@ = store_car_char_is_in $scplayer
set_car_heading 194@ {heading} 198@
goto @SMOKE2_9694

:SMOKE2_9686
set_char_heading $scplayer {heading} 198@

:SMOKE2_9694
delete_char 41@
delete_char 43@
delete_car 42@
switch_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SMOKE2_9859
if 
  get_fading_status 
goto_if_false @SMOKE2_9883
wait 0
goto @SMOKE2_9859

:SMOKE2_9883
return 

:SMOKE2_9885
switch_start 161@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10446 {caseNum1} 0 {caseLabel1} @SMOKE2_9948 {caseNum2} 1 {caseLabel2} @SMOKE2_10091 {caseNum3} 2 {caseLabel3} @SMOKE2_10234 {caseNum4} -1 {caseLabel4} @SMOKE2_10453 {caseNum5} -1 {caseLabel5} @SMOKE2_10453 {caseNum6} -1 {caseLabel6} @SMOKE2_10453 {caseNum7} -1 {caseLabel7} @SMOKE2_10453

:SMOKE2_9948
$s2_meet_z = generate_random_int_in_range 0 {max} 3
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_9997
set_lvar_text_label 130@s = 'SMO2_CA'
set_lvar_int_to_constant 148@ = 10812

:SMOKE2_9997
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_10037
set_lvar_text_label 130@s = 'SMO2_CB'
set_lvar_int_to_constant 148@ = 10813

:SMOKE2_10037
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_10077
set_lvar_text_label 130@s = 'SMO2_CC'
set_lvar_int_to_constant 148@ = 10814

:SMOKE2_10077
159@ = 1
goto @SMOKE2_10453

:SMOKE2_10091
$s2_meet_z = generate_random_int_in_range 0 {max} 3
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_10140
set_lvar_text_label 130@s = 'SMO2_DA'
set_lvar_int_to_constant 148@ = 10815

:SMOKE2_10140
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_10180
set_lvar_text_label 130@s = 'SMO2_DB'
set_lvar_int_to_constant 148@ = 10816

:SMOKE2_10180
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_10220
set_lvar_text_label 130@s = 'SMO2_DC'
set_lvar_int_to_constant 148@ = 10817

:SMOKE2_10220
159@ = 1
goto @SMOKE2_10453

:SMOKE2_10234
set_lvar_text_label 130@s = 'SMO2_BA'
set_lvar_int_to_constant 148@ = 10800
set_lvar_text_label 132@s = 'SMO2_BB'
set_lvar_int_to_constant 149@ = 10805
set_lvar_text_label 134@s = 'SMO2_BC'
set_lvar_int_to_constant 150@ = 10801
set_lvar_text_label 136@s = 'SMO2_BD'
set_lvar_int_to_constant 151@ = 10806
set_lvar_text_label 138@s = 'SMO2_BE'
set_lvar_int_to_constant 152@ = 10802
set_lvar_text_label 140@s = 'SMO2_BF'
set_lvar_int_to_constant 153@ = 10807
set_lvar_text_label 142@s = 'SMO2_BG'
set_lvar_int_to_constant 154@ = 10803
set_lvar_text_label 144@s = 'SMO2_BH'
set_lvar_int_to_constant 155@ = 10808
set_lvar_text_label 146@s = 'SMO2_BJ'
set_lvar_int_to_constant 156@ = 10809
159@ = 9
goto @SMOKE2_10453

:SMOKE2_10446
goto @SMOKE2_10453

:SMOKE2_10453
157@ = 0
158@ = 0
160@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
return 

:SMOKE2_10482
if or
  157@ == 0
  157@ == 1
goto_if_false @SMOKE2_10552
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_10552
if 
  TIMERB > 200
goto_if_false @SMOKE2_10552
gosub @SMOKE2_10617

:SMOKE2_10552
if 
  157@ == 2
goto_if_false @SMOKE2_10615
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE2_10615
157@ = 0
158@ += 1
160@ = 0
clear_prints 
TIMERB = 0

:SMOKE2_10615
return 

:SMOKE2_10617
if 
  157@ == 0
goto_if_false @SMOKE2_10653
load_mission_audio MissionAudioSlot.Slot1 {audioId} 148@(158@,9i)
157@ = 1

:SMOKE2_10653
if 
  157@ == 1
goto_if_false @SMOKE2_10711
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE2_10711
print_now 130@(158@,9s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
157@ = 2

:SMOKE2_10711
return 

:SMOKE2_10713
clear_mission_audio MissionAudioSlot.Slot2
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10850 {caseNum1} 0 {caseLabel1} @SMOKE2_10780 {caseNum2} 1 {caseLabel2} @SMOKE2_10794 {caseNum3} 2 {caseLabel3} @SMOKE2_10808 {caseNum4} 3 {caseLabel4} @SMOKE2_10822 {caseNum5} 4 {caseLabel5} @SMOKE2_10836 {caseNum6} -1 {caseLabel6} @SMOKE2_10857 {caseNum7} -1 {caseLabel7} @SMOKE2_10857

:SMOKE2_10780
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25800
goto @SMOKE2_10857

:SMOKE2_10794
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25801
goto @SMOKE2_10857

:SMOKE2_10808
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25802
goto @SMOKE2_10857

:SMOKE2_10822
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25803
goto @SMOKE2_10857

:SMOKE2_10836
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25804
goto @SMOKE2_10857

:SMOKE2_10850
goto @SMOKE2_10857

:SMOKE2_10857
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SMOKE2_10866
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE2_10961
wait 0
if or
  is_char_dead 35@
  is_car_dead 34@
goto_if_false @SMOKE2_10908
return 

:SMOKE2_10908
if 
  167@ <> 1
goto_if_false @SMOKE2_10954
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_10954
remove_blip 186@
167@ = 1

:SMOKE2_10954
goto @SMOKE2_10866

:SMOKE2_10961
play_mission_audio MissionAudioSlot.Slot2
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_11143 {caseNum1} 0 {caseLabel1} @SMOKE2_11028 {caseNum2} 1 {caseLabel2} @SMOKE2_11051 {caseNum3} 2 {caseLabel3} @SMOKE2_11074 {caseNum4} 3 {caseLabel4} @SMOKE2_11097 {caseNum5} 4 {caseLabel5} @SMOKE2_11120 {caseNum6} -1 {caseLabel6} @SMOKE2_11150 {caseNum7} -1 {caseLabel7} @SMOKE2_11150

:SMOKE2_11028
print_now 'SMOX_AA' {time} 3000 {flag} 1
goto @SMOKE2_11150

:SMOKE2_11051
print_now 'SMOX_AB' {time} 3000 {flag} 1
goto @SMOKE2_11150

:SMOKE2_11074
print_now 'SMOX_AC' {time} 3000 {flag} 1
goto @SMOKE2_11150

:SMOKE2_11097
print_now 'SMOX_AD' {time} 3000 {flag} 1
goto @SMOKE2_11150

:SMOKE2_11120
print_now 'SMOX_AE' {time} 3000 {flag} 1
goto @SMOKE2_11150

:SMOKE2_11143
goto @SMOKE2_11150

:SMOKE2_11150
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE2_11245
wait 0
if or
  is_char_dead 35@
  is_car_dead 34@
goto_if_false @SMOKE2_11192
return 

:SMOKE2_11192
if 
  167@ <> 1
goto_if_false @SMOKE2_11238
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_11238
remove_blip 186@
167@ = 1

:SMOKE2_11238
goto @SMOKE2_11150

:SMOKE2_11245
129@ += 1
if 
  129@ > 4
goto_if_false @SMOKE2_11277
129@ = 0

:SMOKE2_11277
return 

:SMOKE2_11279
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$trigger_phonecall_failed = 1
return 

:SMOKE2_11304
$flag_smoke_mission_counter += 1
register_mission_passed 'SMOKE_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:SMOKE2_11359
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
unload_special_character 1
remove_char_elegantly 35@
remove_pickup 40@
remove_blip 186@
remove_blip 183@
remove_blip 184@
remove_blip 185@
clear_sequence_task 114@
clear_sequence_task 115@
clear_sequence_task 116@
clear_sequence_task 117@
clear_sequence_task 118@
clear_sequence_task 121@
clear_sequence_task 201@
clear_help 
remove_decision_maker 123@
remove_decision_maker 124@
switch_ped_roads_back_to_original 2458.5 {leftBottomY} -1410.63 {leftBottomZ} 24.06 {rightTopX} 2504.27 {rightTopY} -1395.83 {rightTopZ} 28.55
switch_roads_back_to_original 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
switch_roads_back_to_original 2252.8899 {leftBottomY} -1286.37 {leftBottomZ} 22.25 {rightTopX} 2258.8899 {rightTopY} -1280.37 {rightTopZ} 28.25
switch_roads_back_to_original 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
switch_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
set_car_density_multiplier 1.0
flush_route 
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 29---------------
// Originally: Wrong Side of the Tracks

:SMOKE3
script_name 'SMOKE3'
gosub @SMOKE3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE3_38
gosub @SMOKE3_20031

:SMOKE3_38
gosub @SMOKE3_20104
terminate_this_script 

:SMOKE3_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SMOKE3'
force_weather_now WeatherType.SunnyLa
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SMOKE3_114
if 
  get_fading_status 
goto_if_false @SMOKE3_138
wait 0
goto @SMOKE3_114

:SMOKE3_138
request_model #LAE_SMOKECUTSCENE

:SMOKE3_143
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @SMOKE3_170
wait 0
goto @SMOKE3_143

:SMOKE3_170
131@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE3A'

:SMOKE3_204
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE3_228
wait 0
goto @SMOKE3_204

:SMOKE3_228
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE3_237
if 
  not has_cutscene_finished 
goto_if_false @SMOKE3_261
wait 0
goto @SMOKE3_237

:SMOKE3_261
do_fade 0 {direction} Fade.Out

:SMOKE3_267
if 
  get_fading_status 
goto_if_false @SMOKE3_291
wait 0
goto @SMOKE3_267

:SMOKE3_291
clear_cutscene 
release_weather 
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 131@
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In
do_fade 1000 {direction} Fade.Out

:SMOKE3_338
if 
  get_fading_status 
goto_if_false @SMOKE3_362
wait 0
goto @SMOKE3_338

:SMOKE3_362
restore_camera_jumpcut 
set_player_control $player1 {state} True
request_model 538
request_model 570
request_model #IMMMCRAN
request_model 466
request_model 372
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17060
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25803
load_special_character 1 {modelName} 'SMOKE'
load_all_models_now 

:SMOKE3_433
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_463
wait 0
goto @SMOKE3_433

:SMOKE3_463
if 
  not has_special_character_loaded 1
goto_if_false @SMOKE3_489
wait 0
goto @SMOKE3_463

:SMOKE3_489
if or
  not has_model_loaded 538
  not has_model_loaded 570
  not has_model_loaded #IMMMCRAN
  not has_model_loaded 372
  not has_model_loaded 466
goto_if_false @SMOKE3_536
wait 0
goto @SMOKE3_489

:SMOKE3_536
74@ = load_char_decision_maker DecisionMakerType.Empty
76@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 76@ {event} Event.Damage
75@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 75@ {event} Event.Damage
clear_char_decision_maker_event_response 75@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 75@ {event} Event.PotentialWalkIntoVehicle
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
switch_random_trains False
delete_all_trains 
40@ = create_mission_train 11 {x} 1725.55 {y} -1953.278 {z} 12.5 {direction} False
set_train_speed 40@ {speed} 0.0
set_train_cruise_speed 40@ {speed} 0.0
43@ = get_train_carriage 40@ {number} 1
44@ = get_train_carriage 40@ {number} 2
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_train_forced_to_slow_down 40@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
lock_car_doors 43@ {lockStatus} CarLock.Locked
lock_car_doors 44@ {lockStatus} CarLock.Locked
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
78@ = create_car 466 {x} 2058.8601 {y} -1694.6121 {z} 12.297
change_car_colour 78@ {color1} 98 {color2} 14
set_car_heading 78@ {heading} 271.822
set_car_health 78@ {health} 1000
$big_smoke = create_char_as_passenger 78@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_only_damaged_by_player $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_never_targetted $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 74@
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_max_fire_generations 1
set_radio_channel RadioChannel.RadioLosSantos
warp_char_into_car $scplayer {vehicle} 78@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_railtrack_resistance_mult 0.3
do_fade 500 {direction} Fade.In
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $scplayer {state} True
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
96@ = 0
95@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
97@ = 0
107@ = 0
105@ = 0
106@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
if 
  80@ == 0
goto_if_false @SMOKE3_1285
118@ = add_blip_for_coord 1783.2111 {y} -1933.1331 {z} 12.597
103@ = 1
80@ = 1

:SMOKE3_1285
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SMOKE3_1311
goto @SMOKE3_20049

:SMOKE3_1311
if 
  80@ == 1
goto_if_false @SMOKE3_1619
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_1619
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1619
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1619
if 
  103@ == 1
goto_if_false @SMOKE3_1425
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_AA' {time} 5000 {flag} 1
103@ = 2

:SMOKE3_1425
if 
  103@ == 2
goto_if_false @SMOKE3_1478
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1478
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17000
103@ = 3

:SMOKE3_1478
if 
  103@ == 3
goto_if_false @SMOKE3_1557
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1557
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1557
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_AB' {time} 5000 {flag} 1
103@ = 4

:SMOKE3_1557
if 
  103@ == 4
goto_if_false @SMOKE3_1619
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1619
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
print_now 'SMK3_1' {time} 5000 {flag} 1
103@ = 5

:SMOKE3_1619
if 
  94@ == 0
goto_if_false @SMOKE3_1901
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1901
if 
  92@ == 0
goto_if_false @SMOKE3_1775
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1775
if 
  not is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1775
123@ = add_blip_for_car 78@
set_blip_as_friendly 123@ {state} True
remove_blip 118@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AD' {time} 2000 {flag} 1
80@ = 10
92@ = 1

:SMOKE3_1775
if 
  92@ == 1
goto_if_false @SMOKE3_1901
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1901
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1901
remove_blip 123@
118@ = add_blip_for_coord 1783.2111 {y} -1933.1331 {z} 12.597
if 
  103@ == 5
goto_if_false @SMOKE3_1887
print_now 'SMK3_1' {time} 12000 {flag} 1

:SMOKE3_1887
80@ = 1
92@ = 0

:SMOKE3_1901
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1965
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_1965
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20031

:SMOKE3_1965
if 
  80@ == 1
goto_if_false @SMOKE3_10192
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10192
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_2810
if 
  81@ == 0
goto_if_false @SMOKE3_2810
if 
  is_char_sitting_in_car $big_smoke {vehicle} 78@
goto_if_false @SMOKE3_2810
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_2810
if 
  locate_car_2d 78@ {x} 1783.2111 {y} -1933.1331 {xRadius} 4.2 {yRadius} 4.2 {drawSphere} True
goto_if_false @SMOKE3_2810
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SMOKE3_2127
if 
  get_fading_status 
goto_if_false @SMOKE3_2151
wait 0
goto @SMOKE3_2127

:SMOKE3_2151
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_2197
set_car_coordinates 78@ {x} 1783.418 {y} -1933.0551 {z} 12.3862
set_car_heading 78@ {heading} 178.4615

:SMOKE3_2197
request_model 108
request_model 109
request_model 110
request_model 353
request_model 468
request_model #TRNTRK8_LAS
request_animation "TRAIN"
request_animation "GANGS"
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17065
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17007
load_special_character 1 {modelName} 'SMOKE'
request_animation "GANGS"
request_animation "TRAIN"
load_all_models_now 

:SMOKE3_2297
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "TRAIN"
goto_if_false @SMOKE3_2337
wait 0
goto @SMOKE3_2297

:SMOKE3_2337
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_2367
wait 0
goto @SMOKE3_2337

:SMOKE3_2367
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 468
  not has_model_loaded 353
goto_if_false @SMOKE3_2411
wait 0
goto @SMOKE3_2367

:SMOKE3_2411
load_scene 1684.53 {y} -1948.48 {z} 20.66
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
94@ = 1
remove_blip 118@
clear_area 1699.3101 {y} -1938.799 {z} 100.0 {radius} 100.0 {clearParticles} False
52@ = create_object_no_offset #IMMMCRAN {x} 2194.438 {y} -1912.756 {z} 11.907
set_object_heading 52@ {heading} 0.0
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.546 {y} -1959.222 {z} 20.99
set_char_heading 34@ {heading} 0.0
set_follow_node_threshold_distance 34@ {range} 500.0
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 34@ {handleOrTemplate} 75@
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.546 {y} -1958.222 {z} 20.99
set_char_heading 35@ {heading} 180.0
set_follow_node_threshold_distance 35@ {range} 500.0
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 35@ {handleOrTemplate} 75@
36@ = create_char PedType.Mission1 {modelId} 109 {x} 1681.038 {y} -1958.03 {z} 20.99
set_char_heading 36@ {heading} 182.467
set_follow_node_threshold_distance 36@ {range} 500.0
set_char_proofs 36@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 36@ {handleOrTemplate} 75@
37@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.129 {y} -1959.63 {z} 20.99
set_char_heading 37@ {heading} 6.22
set_follow_node_threshold_distance 37@ {range} 500.0
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 37@ {handleOrTemplate} 75@
81@ = 1

:SMOKE3_2810
if 
  81@ == 1
goto_if_false @SMOKE3_3039
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3039
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3039
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3039
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
set_fixed_camera_position 1780.729 {y} -1937.955 {z} 13.443 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1781.311 {y} -1937.1479 {z} 13.3475 {switchStyle} SwitchType.JumpCut
load_scene 1687.04 {y} -1946.6 {z} 21.79
load_scene_in_direction 1735.16 {y} -1945.29 {z} 14.44 {heading} 88.46
do_fade 750 {direction} Fade.In
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BA' {time} 5000 {flag} 1
TIMERA = 0
81@ = 2

:SMOKE3_3039
if 
  81@ == 2
goto_if_false @SMOKE3_3260
if 
  TIMERA > 1000
goto_if_false @SMOKE3_3260
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3260
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3260
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_3260
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17066
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $big_smoke {duration} 10000
print_now 'SMO3_BB' {time} 5000 {flag} 1
101@ = 0
skip_cutscene_start_internal @SMOKE3_7981
task_leave_car $big_smoke {vehicle} 78@
wait 100
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3222
task_look_at_char $big_smoke {target} $scplayer {time} 3500

:SMOKE3_3222
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3246
task_leave_car $scplayer {vehicle} 78@

:SMOKE3_3246
TIMERA = 0
81@ = 3

:SMOKE3_3260
if 
  81@ == 3
goto_if_false @SMOKE3_3533
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3533
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3533
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3533
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_3533
if 
  not is_char_in_any_car $scplayer
goto_if_false @SMOKE3_3533
set_fixed_camera_position 1778.61 {y} -1938.675 {z} 12.9064 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1779.275 {y} -1937.944 {z} 13.0581 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1783.92 {y} -1936.33 {z} 12.6
set_char_heading $scplayer {heading} 117.0
task_go_straight_to_coord $big_smoke {x} 1775.3 {y} -1939.23 {z} 12.9 {speed} MoveState.Walk {time} -1
64@ = open_sequence_task 
task_look_at_char -1 {target} $big_smoke {time} 10000
task_go_straight_to_coord -1 {x} 1776.63 {y} -1940.1801 {z} 13.66 {speed} MoveState.Walk {time} -1
close_sequence_task 64@
perform_sequence_task $scplayer {sequence} 64@
clear_sequence_task 64@
TIMERA = 0
81@ = 4

:SMOKE3_3533
if 
  81@ == 4
goto_if_false @SMOKE3_3941
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3941
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3941
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_3941
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_3941
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_3941
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_3941
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3941
if 
  not is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_3941
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_3941
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_3941
if 
  TIMERA > 3000
goto_if_false @SMOKE3_3941
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BC' {time} 5000 {flag} 1
set_fixed_camera_position 1732.47 {y} -1945.045 {z} 12.9171 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1731.4919 {y} -1945.129 {z} 13.1107 {switchStyle} SwitchType.JumpCut
set_char_coordinates $big_smoke {x} 1737.2 {y} -1944.2 {z} 12.6
set_char_heading $big_smoke {heading} 88.5
set_char_coordinates $scplayer {x} 1737.2 {y} -1945.7 {z} 12.6
set_char_heading $scplayer {heading} 88.5
task_go_straight_to_coord $big_smoke {x} 1718.04 {y} -1944.2 {z} 13.6 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord $scplayer {x} 1718.04 {y} -1945.7 {z} 13.6 {speed} MoveState.Walk {time} -1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17067
TIMERA = 0
81@ = 5

:SMOKE3_3941
if 
  81@ == 5
goto_if_false @SMOKE3_4027
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_4027
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17008
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BD' {time} 5000 {flag} 1
81@ = 6

:SMOKE3_4027
if 
  81@ == 6
goto_if_false @SMOKE3_4136
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_4136
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17068
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4122
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 3000
print_now 'SMO3_BE' {time} 5000 {flag} 1

:SMOKE3_4122
TIMERA = 0
81@ = 7

:SMOKE3_4136
if 
  81@ == 7
goto_if_false @SMOKE3_4595
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4595
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_4595
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4595
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4595
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_4595
if 
  TIMERA > 1500
goto_if_false @SMOKE3_4595
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_4595
set_fixed_camera_position 1726.028 {y} -1944.924 {z} 13.9132 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1725.059 {y} -1945.168 {z} 13.9694 {switchStyle} SwitchType.JumpCut
task_play_anim 35@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 34@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 36@ {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1724.08 {y} -1946.27 {z} 12.5
set_char_heading $scplayer {heading} 86.93
clear_char_tasks_immediately $big_smoke
set_char_coordinates $big_smoke {x} 1723.9301 {y} -1944.52 {z} 12.5
set_char_heading $big_smoke {heading} 93.27
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BF' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17009
TIMERA = 0
81@ = 8

:SMOKE3_4595
if 
  81@ == 8
goto_if_false @SMOKE3_4814
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4814
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_4814
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4814
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4814
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_4814
38@ = get_script_task_status 34@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 1750
goto_if_false @SMOKE3_4814
task_look_at_char 34@ {target} $big_smoke {time} 10000
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4768
task_look_at_char 35@ {target} $scplayer {time} 10000

:SMOKE3_4768
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4795
task_look_at_char 36@ {target} $scplayer {time} 10000

:SMOKE3_4795
clear_char_tasks_immediately $scplayer
TIMERA = 0
81@ = 9

:SMOKE3_4814
if 
  81@ == 9
goto_if_false @SMOKE3_5118
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5118
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_5118
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_5118
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_5118
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_5118
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_5118
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_5118
if 
  TIMERA > 0
goto_if_false @SMOKE3_5118
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17010
set_fixed_camera_position 1721.344 {y} -1943.875 {z} 13.8732 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1722.2111 {y} -1944.373 {z} 13.8443 {switchStyle} SwitchType.JumpCut
task_look_at_char $scplayer {target} $big_smoke {time} 10000
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 3000
print_now 'SMO3_BG' {time} 5000 {flag} 1
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
81@ = 10

:SMOKE3_5118
if 
  81@ == 10
goto_if_false @SMOKE3_5798
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5798
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_5798
clear_prints 
54@ = create_car 468 {x} 1778.624 {y} -1939.905 {z} 12.5598
set_car_heading 54@ {heading} 176.7993
set_car_health 54@ {health} 10000
set_can_burst_car_tyres 54@ {state} False
set_car_proofs 54@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 54@ {color1} 6 {color2} 6
114@ = 1
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_5279
set_car_health 78@ {health} 10000
set_can_burst_car_tyres 78@ {state} False

:SMOKE3_5279
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_5357
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1682.254 {y} -1953.64 {z} 20.985
set_char_heading 34@ {heading} 266.36
task_go_straight_to_coord 34@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5357
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_5435
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1679.256 {y} -1953.635 {z} 20.985
set_char_heading 35@ {heading} 266.36
task_go_straight_to_coord 35@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5435
wait 250
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_5518
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1676.74 {y} -1953.59 {z} 20.985
set_char_heading 36@ {heading} 266.36
task_go_straight_to_coord 36@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5518
wait 250
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_5601
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} 1675.3 {y} -1953.67 {z} 20.985
set_char_heading 37@ {heading} 266.389
task_go_straight_to_coord 37@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5601
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_5634
set_train_cruise_speed 40@ {speed} 15.0
86@ = 1

:SMOKE3_5634
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1703.548 {fromY} -1951.496 {fromZ} 16.9714 {toX} 1750.548 {toY} -1951.496 {toZ} 16.9714 {time} 10000 {ease} True
camera_set_vector_track 1702.549 {fromY} -1951.514 {fromZ} 16.9159 {toX} 1702.549 {toY} -1951.514 {toZ} 16.9159 {time} 10000 {ease} True
TIMERB = 0
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5791
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
set_char_coordinates $scplayer {x} 1715.0 {y} -1946.79 {z} 12.6
set_char_coordinates $big_smoke {x} 1712.36 {y} -1944.47 {z} 12.6

:SMOKE3_5791
81@ = 11

:SMOKE3_5798
if 
  81@ > 10
goto_if_false @SMOKE3_6739
if 
  14 > 81@
goto_if_false @SMOKE3_6739
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_6739
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_6739
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_6739
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_6739
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_6739
if 
  not is_car_dead 43@
goto_if_false @SMOKE3_6739
if 
  not is_car_dead 44@
goto_if_false @SMOKE3_6739
46@, 47@, 48@ = get_offset_from_car_in_world_coords 43@ {xOffset} 0.0 {yOffset} 9.84 {zOffset} 3.0
49@, 50@, 51@ = get_offset_from_car_in_world_coords 44@ {xOffset} 0.0 {yOffset} 9.84 {zOffset} 3.0
if 
  81@ <= 11
goto_if_false @SMOKE3_6051
$player_x, $player_y, $player_z = get_char_coordinates 35@
point_camera_at_point $player_x {y} $player_y {z} 18.0 {switchStyle} SwitchType.JumpCut

:SMOKE3_6051
if 
  82@ == 0
goto_if_false @SMOKE3_6165
if 
  locate_char_any_means_3d 34@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6165
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19879
82@ = 1

:SMOKE3_6165
if 
  82@ == 1
goto_if_false @SMOKE3_6247
if 
  locate_char_any_means_3d 34@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6247
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19879
82@ = 2

:SMOKE3_6247
if 
  83@ == 0
goto_if_false @SMOKE3_6329
if 
  locate_char_any_means_3d 35@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6329
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19879
83@ = 1

:SMOKE3_6329
if 
  83@ == 1
goto_if_false @SMOKE3_6411
if 
  locate_char_any_means_3d 35@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6411
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19879
83@ = 2

:SMOKE3_6411
if 
  84@ == 0
goto_if_false @SMOKE3_6493
if 
  locate_char_any_means_3d 36@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6493
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19879
84@ = 1

:SMOKE3_6493
if 
  84@ == 1
goto_if_false @SMOKE3_6575
if 
  locate_char_any_means_3d 36@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6575
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19879
84@ = 2

:SMOKE3_6575
if 
  85@ == 0
goto_if_false @SMOKE3_6657
if 
  locate_char_any_means_3d 37@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6657
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19879
85@ = 1

:SMOKE3_6657
if 
  85@ == 1
goto_if_false @SMOKE3_6739
if 
  locate_char_any_means_3d 37@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6739
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19879
85@ = 2

:SMOKE3_6739
if 
  81@ == 11
goto_if_false @SMOKE3_6873
if 
  TIMERB > 4200
goto_if_false @SMOKE3_6873
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_6873
task_go_straight_to_coord $big_smoke {x} 1765.99 {y} -1944.25 {z} 13.75 {speed} MoveState.Run {time} 100000
task_go_straight_to_coord $scplayer {x} 1771.1 {y} -1946.12 {z} 13.75 {speed} MoveState.Run {time} 100000
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_BH' {time} 5000 {flag} 1
81@ = 12

:SMOKE3_6873
if 
  81@ == 12
goto_if_false @SMOKE3_6919
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_6919
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
81@ = 13

:SMOKE3_6919
if 
  81@ == 13
goto_if_false @SMOKE3_6994
if 
  TIMERB > 8000
goto_if_false @SMOKE3_6994
do_fade 500 {direction} Fade.Out

:SMOKE3_6963
if 
  get_fading_status 
goto_if_false @SMOKE3_6987
wait 0
goto @SMOKE3_6963

:SMOKE3_6987
81@ = 14

:SMOKE3_6994
if 
  81@ == 14
goto_if_false @SMOKE3_7940
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_7940
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_7940
set_mission_train_coordinates 40@ {x} 1880.0601 {y} -1953.67 {z} 12.44
set_train_cruise_speed 40@ {speed} 10.0
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 34@ {state} False
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.99 {y} -1947.17 {z} 20.03
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 35@ {state} False
36@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 36@ {state} False
37@ = create_char PedType.Mission4 {modelId} 110 {x} 1682.5 {y} -1945.17 {z} 20.033
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 37@ {state} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
attach_char_to_car 34@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 5.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 35@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 36@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 37@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -6.1 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
set_char_decision_maker 34@ {handleOrTemplate} 75@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_decision_maker 36@ {handleOrTemplate} 75@
set_char_decision_maker 37@ {handleOrTemplate} 76@
set_char_accuracy 34@ {accuracy} 10
set_char_accuracy 35@ {accuracy} 10
set_char_accuracy 36@ {accuracy} 10
set_char_accuracy 37@ {accuracy} 10
set_char_shoot_rate 34@ {rate} 20
set_char_shoot_rate 35@ {rate} 20
set_char_shoot_rate 36@ {rate} 30
set_char_shoot_rate 37@ {rate} 20
if 
  98@ == 0
goto_if_false @SMOKE3_7605
set_char_max_health 34@ {maxHealth} 500
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 500
set_char_health 34@ {health} 500
set_char_health 35@ {health} 500
set_char_health 36@ {health} 500

:SMOKE3_7605
if 
  98@ == 1
goto_if_false @SMOKE3_7671
set_char_max_health 34@ {maxHealth} 480
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 480
set_char_health 35@ {health} 500
set_char_health 36@ {health} 450

:SMOKE3_7671
if 
  98@ == 2
goto_if_false @SMOKE3_7737
set_char_max_health 34@ {maxHealth} 450
set_char_max_health 35@ {maxHealth} 450
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 450
set_char_health 35@ {health} 450
set_char_health 36@ {health} 450

:SMOKE3_7737
if 
  98@ == 3
goto_if_false @SMOKE3_7803
set_char_max_health 34@ {maxHealth} 350
set_char_max_health 35@ {maxHealth} 350
set_char_max_health 36@ {maxHealth} 350
set_char_health 34@ {health} 350
set_char_health 35@ {health} 350
set_char_health 36@ {health} 350

:SMOKE3_7803
if 
  98@ > 3
goto_if_false @SMOKE3_7869
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 300
set_char_max_health 36@ {maxHealth} 300
set_char_health 34@ {health} 300
set_char_health 35@ {health} 300
set_char_health 36@ {health} 300

:SMOKE3_7869
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
119@ = add_blip_for_char 34@
120@ = add_blip_for_char 35@
121@ = add_blip_for_char 36@
122@ = add_blip_for_char 37@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
TIMERA = 0
81@ = 15

:SMOKE3_7940
if 
  81@ == 15
goto_if_false @SMOKE3_10192
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10192
101@ = 1

:SMOKE3_7981
skip_cutscene_end 
if 
  101@ == 0
goto_if_false @SMOKE3_9391
do_fade 0 {direction} Fade.Out

:SMOKE3_8007
if 
  get_fading_status 
goto_if_false @SMOKE3_8031
wait 0
goto @SMOKE3_8007

:SMOKE3_8031
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
delete_mission_trains 
delete_object 52@
52@ = create_object_no_offset #IMMMCRAN {x} 2194.438 {y} -1912.756 {z} 11.907
set_object_heading 52@ {heading} 0.0
40@ = create_mission_train 11 {x} 1880.0601 {y} -1953.67 {z} 12.44 {direction} False
set_train_forced_to_slow_down 40@ {state} False
set_train_speed 40@ {speed} 10.0
set_train_cruise_speed 40@ {speed} 10.0
43@ = get_train_carriage 40@ {number} 1
44@ = get_train_carriage 40@ {number} 2
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 40@ {lockStatus} CarLock.Locked
lock_car_doors 43@ {lockStatus} CarLock.Locked
lock_car_doors 44@ {lockStatus} CarLock.Locked
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 34@ {state} False
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.99 {y} -1947.17 {z} 20.03
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 35@ {state} False
36@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 36@ {state} False
37@ = create_char PedType.Mission4 {modelId} 110 {x} 1682.5 {y} -1945.17 {z} 20.033
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19936
set_char_suffers_critical_hits 37@ {state} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
attach_char_to_car 34@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 5.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 35@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 36@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 37@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -6.1 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
set_char_decision_maker 34@ {handleOrTemplate} 75@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_decision_maker 36@ {handleOrTemplate} 75@
set_char_decision_maker 37@ {handleOrTemplate} 76@
set_char_accuracy 34@ {accuracy} 10
set_char_accuracy 35@ {accuracy} 10
set_char_accuracy 36@ {accuracy} 10
set_char_accuracy 37@ {accuracy} 10
set_char_shoot_rate 34@ {rate} 20
set_char_shoot_rate 35@ {rate} 20
set_char_shoot_rate 36@ {rate} 30
set_char_shoot_rate 37@ {rate} 20
if 
  98@ == 0
goto_if_false @SMOKE3_8769
set_char_max_health 34@ {maxHealth} 500
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 500
set_char_health 34@ {health} 500
set_char_health 35@ {health} 500
set_char_health 36@ {health} 500

:SMOKE3_8769
if 
  98@ == 1
goto_if_false @SMOKE3_8835
set_char_max_health 34@ {maxHealth} 480
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 480
set_char_health 35@ {health} 500
set_char_health 36@ {health} 450

:SMOKE3_8835
if 
  98@ == 2
goto_if_false @SMOKE3_8901
set_char_max_health 34@ {maxHealth} 450
set_char_max_health 35@ {maxHealth} 450
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 450
set_char_health 35@ {health} 450
set_char_health 36@ {health} 450

:SMOKE3_8901
if 
  98@ == 3
goto_if_false @SMOKE3_8967
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 350
set_char_max_health 36@ {maxHealth} 350
set_char_health 34@ {health} 300
set_char_health 35@ {health} 350
set_char_health 36@ {health} 350

:SMOKE3_8967
if 
  98@ > 3
goto_if_false @SMOKE3_9033
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 300
set_char_max_health 36@ {maxHealth} 300
set_char_health 34@ {health} 300
set_char_health 35@ {health} 300
set_char_health 36@ {health} 300

:SMOKE3_9033
119@ = add_blip_for_char 34@
120@ = add_blip_for_char 35@
121@ = add_blip_for_char 36@
122@ = add_blip_for_char 37@
if 
  114@ == 0
goto_if_false @SMOKE3_9155
54@ = create_car 468 {x} 1778.624 {y} -1939.905 {z} 12.5598
set_car_heading 54@ {heading} 176.7993
set_car_health 54@ {health} 10000
set_car_proofs 54@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 54@ {state} False
change_car_colour 54@ {color1} 6 {color2} 6

:SMOKE3_9155
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_9186
set_car_health 78@ {health} 10000
set_can_burst_car_tyres 78@ {state} False

:SMOKE3_9186
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9300
if 
  is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_9270
warp_char_from_car_to_coord $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216
goto @SMOKE3_9300

:SMOKE3_9270
set_char_coordinates $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216

:SMOKE3_9300
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE3_9353
warp_char_from_car_to_coord $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195
goto @SMOKE3_9383

:SMOKE3_9353
set_char_coordinates $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195

:SMOKE3_9383
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False

:SMOKE3_9391
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9698
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 1
set_char_coordinates $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9494
set_char_coordinates $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216

:SMOKE3_9494
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $big_smoke
set_group_separation_range $Players_Group {range} 30.0
77@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 77@ {event} Event.Damage
clear_group_decision_maker_event_response 77@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 77@ {event} Event.AcquaintancePedHate
set_group_decision_maker $Players_Group {handleOrTemplate} 77@
set_char_relationship $big_smoke {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $big_smoke {handleOrTemplate} 74@
task_toggle_ped_threat_scanner $big_smoke {onFoot} False {inCar} True {duringScriptTask} False
add_group_decision_maker_event_response 77@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response 74@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_player_group_to_follow_always $player1 {state} True
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_car_density_multiplier 0.5
set_ped_density_multiplier 0.5

:SMOKE3_9698
clear_prints 
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_9731
125@ = add_blip_for_car 54@
set_blip_as_friendly 125@ {state} True

:SMOKE3_9731
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_9769
set_char_accuracy 37@ {accuracy} 20
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19977

:SMOKE3_9769
switch_roads_off 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_off 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_off 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_off 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_off 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_off 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_off 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_off 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_off 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 222.36 {rightTopY} -1897.71 {rightTopZ} 15.0
print_now 'SMK3_2' {time} 7000 {flag} 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 109
96@ = 1
80@ = 2
98@ += 1
102@ = 1
add_char_decision_maker_event_response 75@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
do_fade 1000 {direction} Fade.In
mark_car_as_no_longer_needed 78@
set_vehicle_camera_tweak 468 {distance} 1.0 {altitude} 1.0 {angle} 0.12
mark_model_as_no_longer_needed #TRNTRK8_LAS
81@ = 14

:SMOKE3_10192
if 
  102@ == 1
goto_if_false @SMOKE3_10280
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10280
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_10280
remove_blip 125@
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon $big_smoke {weaponType} WeaponType.Tec9
set_char_accuracy $big_smoke {accuracy} 70
102@ = 2

:SMOKE3_10280
if 
  81@ == 14
goto_if_false @SMOKE3_10348
if 
  112@ == 0
goto_if_false @SMOKE3_10348
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_10348
remove_blip 125@
set_player_in_car_camera_mode 3
112@ = 1

:SMOKE3_10348
if 
  80@ == 2
goto_if_false @SMOKE3_16881
if 
  2 > 93@
goto_if_false @SMOKE3_10607
if 
  93@ == 0
goto_if_false @SMOKE3_10529
if 
  locate_char_any_means_2d $scplayer {x} 2272.5701 {y} -1494.89 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_10529
56@ = create_car 466 {x} 2295.7771 {y} -1481.2679 {z} 22.91
60@ = create_char_inside_car 56@ {pedType} PedType.CivMale {modelId} 108
set_car_heading 56@ {heading} 88.47
car_goto_coordinates_accurate 56@ {x} 2280.45 {y} -1480.9611 {z} 22.483
set_car_cruise_speed 56@ {maxSpeed} 6.5
set_car_driving_style 56@ {drivingStyle} DrivingMode.StopForCars
93@ = 1

:SMOKE3_10529
if 
  93@ == 1
goto_if_false @SMOKE3_10607
if 
  not locate_char_any_means_2d $scplayer {x} 2280.45 {y} -1480.9611 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_10607
mark_car_as_no_longer_needed 56@
mark_char_as_no_longer_needed 60@
mark_model_as_no_longer_needed 466
93@ = 2

:SMOKE3_10607
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_13922
if 
  96@ == 1
goto_if_false @SMOKE3_10763
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_10763
if 
  97@ == 1
goto_if_false @SMOKE3_10700
set_train_cruise_speed 40@ {speed} 15.0

:SMOKE3_10700
if 
  97@ > 1
goto_if_false @SMOKE3_10728
set_train_cruise_speed 40@ {speed} 18.0

:SMOKE3_10728
if 
  97@ == 0
goto_if_false @SMOKE3_10756
set_train_cruise_speed 40@ {speed} 10.0

:SMOKE3_10756
96@ = 2

:SMOKE3_10763
if 
  96@ == 2
goto_if_false @SMOKE3_10854
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 45.0 {yRadius} 45.0 {drawSphere} False
goto_if_false @SMOKE3_10854
if 
  97@ == 0
goto_if_false @SMOKE3_10837
97@ = 1

:SMOKE3_10837
set_train_cruise_speed 40@ {speed} 28.0
96@ = 1

:SMOKE3_10854
if 
  96@ == 1
goto_if_false @SMOKE3_10955
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_10955
if 
  97@ > 1
goto_if_false @SMOKE3_10938
set_train_cruise_speed 40@ {speed} 32.5
goto @SMOKE3_10948

:SMOKE3_10938
set_train_cruise_speed 40@ {speed} 30.0

:SMOKE3_10948
96@ = 3

:SMOKE3_10955
if 
  96@ == 3
goto_if_false @SMOKE3_11011
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11011
96@ = 2

:SMOKE3_11011
if 
  15 > 91@
goto_if_false @SMOKE3_11751
if 
  91@ == 0
goto_if_false @SMOKE3_11228
if 
  locate_car_2d 40@ {x} 2282.1201 {y} -1439.76 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11228
if 
  not locate_char_any_means_2d $scplayer {x} 2289.6899 {y} -1034.14 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11221
41@ = create_mission_train 11 {x} 2289.6899 {y} -1034.14 {z} 26.29 {direction} True
set_train_speed 41@ {speed} 30.0
set_train_cruise_speed 41@ {speed} 15.0
53@ = create_object #IMY_TRACK_BARRIER {x} 2151.2891 {y} -664.906 {z} 52.1
set_object_heading 53@ {heading} 50.36
97@ = 2
91@ = 1
goto @SMOKE3_11228

:SMOKE3_11221
91@ = 15

:SMOKE3_11228
if 
  91@ == 1
goto_if_false @SMOKE3_11317
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11317
if 
  locate_car_2d 41@ {x} 2288.3101 {y} -1408.91 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11317
set_train_cruise_speed 41@ {speed} 0.0
91@ = 2

:SMOKE3_11317
if 
  91@ == 2
goto_if_false @SMOKE3_11410
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11410
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_11410
if 
  not is_car_on_screen 41@
goto_if_false @SMOKE3_11410
delete_mission_train 41@
91@ = 3

:SMOKE3_11410
if 
  91@ == 3
goto_if_false @SMOKE3_11569
if 
  locate_car_2d 40@ {x} 2176.8701 {y} -689.51 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11569
if 
  not locate_char_any_means_2d $scplayer {x} 2283.3601 {y} -336.9 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SMOKE3_11562
41@ = create_mission_train 11 {x} 2283.3601 {y} -336.9 {z} 37.27 {direction} True
set_train_speed 41@ {speed} 30.0
set_train_cruise_speed 41@ {speed} 15.0
91@ = 4
goto @SMOKE3_11569

:SMOKE3_11562
91@ = 15

:SMOKE3_11569
if 
  91@ == 4
goto_if_false @SMOKE3_11658
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11658
if 
  locate_car_2d 41@ {x} 2052.0801 {y} -583.31 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11658
set_train_cruise_speed 41@ {speed} 0.0
91@ = 5

:SMOKE3_11658
if 
  91@ == 5
goto_if_false @SMOKE3_11751
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11751
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_11751
if 
  not is_car_on_screen 41@
goto_if_false @SMOKE3_11751
delete_mission_train 41@
91@ = 6

:SMOKE3_11751
if 
  104@ == 0
goto_if_false @SMOKE3_12063
if 
  locate_car_2d 40@ {x} 2198.0 {y} -1913.0 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @SMOKE3_12063
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_11830
task_duck 34@ {time} -1

:SMOKE3_11830
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_11853
task_duck 35@ {time} -1

:SMOKE3_11853
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_11876
task_duck 36@ {time} -1

:SMOKE3_11876
57@ = create_car 466 {x} 2200.0701 {y} -1731.9399 {z} 12.28
set_car_heading 57@ {heading} 277.116
58@ = create_char PedType.Mission3 {modelId} 7 {x} 2201.55 {y} -1728.59 {z} 12.43
set_char_heading 58@ {heading} 285.1
59@ = create_char PedType.Mission3 {modelId} 7 {x} 2202.9299 {y} -1728.36 {z} 12.43
set_char_heading 59@ {heading} 393.56
task_play_anim 58@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 59@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
97@ = 1
104@ = 1

:SMOKE3_12063
if 
  104@ == 1
goto_if_false @SMOKE3_12219
if 
  not locate_car_2d 40@ {x} 2198.0 {y} -1913.0 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @SMOKE3_12219
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12150
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12150
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12181
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936

:SMOKE3_12181
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12212
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12212
104@ = 2

:SMOKE3_12219
if 
  104@ == 2
goto_if_false @SMOKE3_12351
if 
  locate_car_2d 40@ {x} 2285.5801 {y} -1353.75 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12351
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12298
task_duck 34@ {time} -1

:SMOKE3_12298
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12321
task_duck 35@ {time} -1

:SMOKE3_12321
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12344
task_duck 36@ {time} -1

:SMOKE3_12344
104@ = 3

:SMOKE3_12351
if 
  104@ == 3
goto_if_false @SMOKE3_12560
if 
  not locate_car_2d 40@ {x} 2285.5801 {y} -1353.75 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12560
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12438
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12438
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12469
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936

:SMOKE3_12469
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12500
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12500
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_12521
task_die 37@

:SMOKE3_12521
delete_object 52@
mark_model_as_no_longer_needed #IMMMCRAN
mark_car_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
105@ = 1
104@ = 4

:SMOKE3_12560
if 
  104@ == 4
goto_if_false @SMOKE3_12669
if 
  locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12669
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12639
task_duck 34@ {time} -1

:SMOKE3_12639
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12662
task_duck 36@ {time} -1

:SMOKE3_12662
104@ = 5

:SMOKE3_12669
if 
  104@ == 5
goto_if_false @SMOKE3_12794
if 
  not locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12794
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12756
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12756
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12787
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12787
104@ = 6

:SMOKE3_12794
if 
  104@ == 6
goto_if_false @SMOKE3_12864
if 
  not locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12864
97@ = 3
104@ = 7

:SMOKE3_12864
if 
  105@ == 1
goto_if_false @SMOKE3_12951
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12951
if 
  locate_car_2d 40@ {x} 2285.53 {y} -1120.59 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12951
set_char_decision_maker 35@ {handleOrTemplate} 76@
105@ = 2

:SMOKE3_12951
if 
  105@ == 2
goto_if_false @SMOKE3_13076
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13076
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SMOKE3_13076
task_play_anim_non_interruptable 35@ {animationName} "TRAN_STMB" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
105@ = 3

:SMOKE3_13076
if 
  105@ == 3
goto_if_false @SMOKE3_13228
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13228
if 
  is_char_playing_anim 35@ {animationName} "TRAN_STMB"
goto_if_false @SMOKE3_13228
39@ = get_char_anim_current_time 35@ {animationName} "TRAN_STMB"
if 
  39@ == 1.0
goto_if_false @SMOKE3_13228
task_play_anim_non_interruptable 35@ {animationName} "TRAN_HNG" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0
105@ = 4

:SMOKE3_13228
if 
  105@ == 4
goto_if_false @SMOKE3_13326
if 
  TIMERA > 10000
goto_if_false @SMOKE3_13326
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13326
task_play_anim_non_interruptable 35@ {animationName} "TRAN_GTUP" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
105@ = 5

:SMOKE3_13326
if 
  105@ == 5
goto_if_false @SMOKE3_13481
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13481
if 
  is_char_playing_anim 35@ {animationName} "TRAN_GTUP"
goto_if_false @SMOKE3_13481
39@ = get_char_anim_current_time 35@ {animationName} "TRAN_GTUP"
if 
  39@ == 1.0
goto_if_false @SMOKE3_13481
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
remove_animation "TRAIN"
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
105@ = 6

:SMOKE3_13481
if 
  105@ > 0
goto_if_false @SMOKE3_13549
if 
  6 > 105@
goto_if_false @SMOKE3_13549
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13549
45@ = get_car_heading 40@
set_char_heading 35@ {heading} 45@

:SMOKE3_13549
if 
  106@ == 0
goto_if_false @SMOKE3_13797
if 
  does_object_exist 52@
goto_if_false @SMOKE3_13766
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13759
if 
  locate_char_any_means_2d 37@ {x} 2197.53 {y} -1913.39 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @SMOKE3_13759
task_toggle_ped_threat_scanner 37@ {onFoot} False {inCar} False {duringScriptTask} False
detach_char_from_car 37@
set_char_collision 37@ {state} False
attach_char_to_object 37@ {handle} 52@ {xOffset} 2.85 {yOffset} -0.7 {zOffset} 5.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_heading 37@ {heading} 0.0
task_play_anim_non_interruptable 37@ {animationName} "TRAN_OUCH" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
90@ = 1
106@ = 1
remove_blip 122@

:SMOKE3_13759
goto @SMOKE3_13797

:SMOKE3_13766
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13797
set_char_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SMOKE3_13797
if 
  106@ == 1
goto_if_false @SMOKE3_13922
if 
  does_object_exist 52@
goto_if_false @SMOKE3_13863
45@ = get_object_heading 52@
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13863
set_char_heading 37@ {heading} 45@

:SMOKE3_13863
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13922
if 
  not locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_13922
remove_char_elegantly 37@
106@ = 2

:SMOKE3_13922
if 
  87@ == 0
goto_if_false @SMOKE3_13991
if 
  is_char_dead 34@
goto_if_false @SMOKE3_13991
87@ = 1
116@ += 1
if 
  does_blip_exist 119@
goto_if_false @SMOKE3_13991
remove_blip 119@

:SMOKE3_13991
if 
  88@ == 0
goto_if_false @SMOKE3_14060
if 
  is_char_dead 35@
goto_if_false @SMOKE3_14060
88@ = 1
116@ += 1
if 
  does_blip_exist 120@
goto_if_false @SMOKE3_14060
remove_blip 120@

:SMOKE3_14060
if 
  89@ == 0
goto_if_false @SMOKE3_14129
if 
  is_char_dead 36@
goto_if_false @SMOKE3_14129
89@ = 1
116@ += 1
if 
  does_blip_exist 121@
goto_if_false @SMOKE3_14129
remove_blip 121@

:SMOKE3_14129
if 
  90@ == 0
goto_if_false @SMOKE3_14198
if 
  is_char_dead 37@
goto_if_false @SMOKE3_14198
90@ = 1
116@ += 1
if 
  does_blip_exist 122@
goto_if_false @SMOKE3_14198
remove_blip 122@

:SMOKE3_14198
if 
  108@ == 0
goto_if_false @SMOKE3_14263
if 
  not is_car_dead 57@
goto_if_false @SMOKE3_14263
if 
  has_car_been_damaged_by_car 57@ {other} 40@
goto_if_false @SMOKE3_14263
explode_car 57@
108@ = 1

:SMOKE3_14263
if 
  108@ == 1
goto_if_false @SMOKE3_14293
mark_car_as_no_longer_needed 57@
108@ = 2

:SMOKE3_14293
if 
  87@ == 1
goto_if_false @SMOKE3_14885
if 
  88@ == 1
goto_if_false @SMOKE3_14885
if 
  89@ == 1
goto_if_false @SMOKE3_14885
if 
  90@ == 1
goto_if_false @SMOKE3_14885
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_14485
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_14462
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1
goto @SMOKE3_14485

:SMOKE3_14462
115@ = 2
print_now 'SMK3_18' {time} 5000 {flag} 1

:SMOKE3_14485
set_railtrack_resistance_mult -1.0
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_mission_train_as_no_longer_needed 40@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_on 2268.75 {leftBottomY} -1390.8 {leftBottomZ} 20.86 {rightTopX} 2330.03 {rightTopY} -1375.53 {rightTopZ} 23.1
switch_roads_on 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_on 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_on 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_on 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_on 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 222.36 {rightTopY} -1897.71 {rightTopZ} 15.0
80@ = 3

:SMOKE3_14885
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_14924
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20031

:SMOKE3_14924
if 
  80@ == 2
goto_if_false @SMOKE3_15563
if 
  97@ == 0
goto_if_false @SMOKE3_14987
$x = 320.0
$y = 320.0
goto @SMOKE3_15007

:SMOKE3_14987
$x = 200.0
$y = 200.0

:SMOKE3_15007
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_15563
if 
  not is_car_on_screen 40@
goto_if_false @SMOKE3_15563
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} $x {yRadius} $y {drawSphere} False
goto_if_false @SMOKE3_15563
if or
  not is_char_dead 34@
  not is_char_dead 35@
  not is_char_dead 36@
  not is_char_dead 37@
goto_if_false @SMOKE3_15563
switch_widescreen True
set_player_control $player1 {state} False
79@ = get_area_visible 
if 
  79@ <> 0
goto_if_false @SMOKE3_15267
do_fade 250 {direction} Fade.Out
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15169
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE3_15169
if 
  get_fading_status 
goto_if_false @SMOKE3_15193
wait 0
goto @SMOKE3_15169

:SMOKE3_15193
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15267
set_area_visible 0
freeze_char_position $scplayer {state} True
$x, $y, $z = get_char_coordinates $big_smoke
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:SMOKE3_15267
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15342
109@ = 1
set_camera_in_front_of_char $big_smoke
task_wander_standard $big_smoke
$x, $y, $z = get_char_coordinates $big_smoke
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15342
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17036

:SMOKE3_15349
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15375
wait 0
goto @SMOKE3_15349

:SMOKE3_15375
print_now 'SMO3_MC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15395
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15421
wait 0
goto @SMOKE3_15395

:SMOKE3_15421
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  79@ <> 0
goto_if_false @SMOKE3_15520
do_fade 500 {direction} Fade.Out

:SMOKE3_15452
if 
  get_fading_status 
goto_if_false @SMOKE3_15476
wait 0
goto @SMOKE3_15452

:SMOKE3_15476
set_area_visible 79@
freeze_char_position $scplayer {state} False
$x, $y, $z = get_char_coordinates $scplayer
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:SMOKE3_15520
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $big_smoke
print_now 'SMK3_13' {time} 5000 {flag} 1
goto @SMOKE3_20031

:SMOKE3_15563
if 
  80@ == 2
goto_if_false @SMOKE3_16022
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_16022
if 
  locate_car_2d 40@ {x} 2790.52 {y} 223.63 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SMOKE3_16022
set_player_control $player1 {state} False
switch_widescreen True
set_train_speed 40@ {speed} 20.0
set_train_cruise_speed 40@ {speed} 20.0
set_fixed_camera_position 2796.8391 {y} 222.9677 {z} 10.7646 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_15778
$car = store_car_char_is_in_no_save $scplayer
set_car_coordinates $car {x} 2814.8279 {y} 154.135 {z} 17.2
set_car_heading $car {heading} 9.0
set_car_cruise_speed $car {maxSpeed} 0.0
goto @SMOKE3_15808

:SMOKE3_15778
set_char_coordinates $scplayer {x} 2814.8279 {y} 154.135 {z} 17.2
set_char_heading $scplayer {heading} 9.0

:SMOKE3_15808
wait 3000
restore_camera_jumpcut 
wait 0
109@ = 1
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15866
set_camera_in_front_of_char $big_smoke
task_wander_standard $big_smoke
$x, $y, $z = get_char_coordinates $big_smoke

:SMOKE3_15866
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17036

:SMOKE3_15901
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15927
wait 0
goto @SMOKE3_15901

:SMOKE3_15927
print_now 'SMO3_MC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15947
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15973
wait 0
goto @SMOKE3_15947

:SMOKE3_15973
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $big_smoke
print_now 'SMK3_20' {time} 10000 {flag} 1
goto @SMOKE3_20031

:SMOKE3_16022
if 
  109@ == 0
goto_if_false @SMOKE3_16881
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_16881
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_16881
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_16881
gosub @SMOKE3_19729
if 
  110@ == 0
goto_if_false @SMOKE3_16170
if 
  111@ == 0
goto_if_false @SMOKE3_16170
set_lvar_int_to_constant 128@ = 17011
set_lvar_text_label 129@s = 'SMO3_CA'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16170
if 
  110@ == 1
goto_if_false @SMOKE3_16261
if 
  111@ == 0
goto_if_false @SMOKE3_16261
if 
  TIMERB > 4000
goto_if_false @SMOKE3_16261
set_lvar_int_to_constant 128@ = 17018
set_lvar_text_label 129@s = 'SMO3_EB'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16261
if 
  110@ == 2
goto_if_false @SMOKE3_16380
if 
  111@ == 0
goto_if_false @SMOKE3_16380
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_16380
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 40@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_16380
set_lvar_int_to_constant 128@ = 17017
set_lvar_text_label 129@s = 'SMO3_EA'
117@ = 1
gosub @SMOKE3_19687

:SMOKE3_16380
if 
  110@ == 3
goto_if_false @SMOKE3_16492
if 
  111@ == 0
goto_if_false @SMOKE3_16492
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_16492
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 41@ {xRadius} 165.0 {yRadius} 165.0 {drawSphere} False
goto_if_false @SMOKE3_16492
set_lvar_int_to_constant 128@ = 17019
set_lvar_text_label 129@s = 'SMO3_FA'
gosub @SMOKE3_19687

:SMOKE3_16492
if 
  110@ == 4
goto_if_false @SMOKE3_16595
if 
  111@ == 0
goto_if_false @SMOKE3_16595
if 
  locate_char_any_means_2d $big_smoke {x} 2180.22 {y} -689.43 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SMOKE3_16595
set_lvar_int_to_constant 128@ = 17025
set_lvar_text_label 129@s = 'SMO3_HA'
gosub @SMOKE3_19687

:SMOKE3_16595
if 
  110@ == 5
goto_if_false @SMOKE3_16714
if 
  111@ == 0
goto_if_false @SMOKE3_16714
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_16714
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 41@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SMOKE3_16714
set_lvar_int_to_constant 128@ = 17021
set_lvar_text_label 129@s = 'SMO3_FC'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16714
if 
  110@ == 6
goto_if_false @SMOKE3_16881
if 
  111@ == 0
goto_if_false @SMOKE3_16881
if 
  TIMERB > 11000
goto_if_false @SMOKE3_16881
set_lvar_int_to_constant 128@ = 17088
set_lvar_text_label 129@s = 'SMO3_EC'
if 
  does_object_exist 53@
goto_if_false @SMOKE3_16828
if 
  not is_object_on_screen 53@
goto_if_false @SMOKE3_16828
delete_object 53@

:SMOKE3_16828
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_16874
if 
  3 > 116@
goto_if_false @SMOKE3_16874
set_char_accuracy $big_smoke {accuracy} 85

:SMOKE3_16874
gosub @SMOKE3_19687

:SMOKE3_16881
if 
  80@ == 3
goto_if_false @SMOKE3_18339
if 
  115@ == 1
goto_if_false @SMOKE3_18339
if 
  113@ == 0
goto_if_false @SMOKE3_16963
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17044
mark_object_as_no_longer_needed 53@
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
113@ = 1

:SMOKE3_16963
if 
  113@ == 1
goto_if_false @SMOKE3_17023
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_17023
print_now 'SMO3_PC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
113@ = 2

:SMOKE3_17023
if 
  113@ == 2
goto_if_false @SMOKE3_17076
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_17076
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
113@ = 3
TIMERB = 0

:SMOKE3_17076
if 
  113@ == 3
goto_if_false @SMOKE3_17143
if 
  TIMERB > 500
goto_if_false @SMOKE3_17143
print_now 'SMK3_22' {time} 6000 {flag} 1
TIMERB = 0
113@ = 4

:SMOKE3_17143
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_17781
if 
  113@ == 4
goto_if_false @SMOKE3_17781
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_17781
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_17781
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_17781
gosub @SMOKE3_19729
if 
  110@ == 0
goto_if_false @SMOKE3_17326
if 
  111@ == 0
goto_if_false @SMOKE3_17326
if 
  TIMERB > 7000
goto_if_false @SMOKE3_17326
set_lvar_int_to_constant 128@ = 17082
set_lvar_text_label 129@s = 'SMO3_RA'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_17326
if 
  110@ == 1
goto_if_false @SMOKE3_17391
if 
  111@ == 0
goto_if_false @SMOKE3_17391
set_lvar_int_to_constant 128@ = 17054
set_lvar_text_label 129@s = 'SMO3_RB'
gosub @SMOKE3_19687

:SMOKE3_17391
if 
  110@ == 2
goto_if_false @SMOKE3_17456
if 
  111@ == 0
goto_if_false @SMOKE3_17456
set_lvar_int_to_constant 128@ = 17083
set_lvar_text_label 129@s = 'SMO3_RC'
gosub @SMOKE3_19687

:SMOKE3_17456
if 
  110@ == 3
goto_if_false @SMOKE3_17521
if 
  111@ == 0
goto_if_false @SMOKE3_17521
set_lvar_int_to_constant 128@ = 17055
set_lvar_text_label 129@s = 'SMO3_RD'
gosub @SMOKE3_19687

:SMOKE3_17521
if 
  110@ == 4
goto_if_false @SMOKE3_17586
if 
  111@ == 0
goto_if_false @SMOKE3_17586
set_lvar_int_to_constant 128@ = 17084
set_lvar_text_label 129@s = 'SMO3_RE'
gosub @SMOKE3_19687

:SMOKE3_17586
if 
  110@ == 5
goto_if_false @SMOKE3_17651
if 
  111@ == 0
goto_if_false @SMOKE3_17651
set_lvar_int_to_constant 128@ = 17056
set_lvar_text_label 129@s = 'SMO3_RF'
gosub @SMOKE3_19687

:SMOKE3_17651
if 
  110@ == 6
goto_if_false @SMOKE3_17716
if 
  111@ == 0
goto_if_false @SMOKE3_17716
set_lvar_int_to_constant 128@ = 17085
set_lvar_text_label 129@s = 'SMO3_RG'
gosub @SMOKE3_19687

:SMOKE3_17716
if 
  110@ == 7
goto_if_false @SMOKE3_17781
if 
  111@ == 0
goto_if_false @SMOKE3_17781
set_lvar_int_to_constant 128@ = 17057
set_lvar_text_label 129@s = 'SMO3_RH'
gosub @SMOKE3_19687

:SMOKE3_17781
if 
  107@ == 1
goto_if_false @SMOKE3_18300
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18300
if 
  locate_char_any_means_2d $scplayer {x} 2061.6799 {y} -1694.71 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} True
goto_if_false @SMOKE3_18300
if 
  locate_char_any_means_2d $big_smoke {x} 2061.6799 {y} -1694.71 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE3_18300
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out
switch_widescreen True
113@ = 5
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:SMOKE3_17924
if 
  get_fading_status 
goto_if_false @SMOKE3_17948
wait 0
goto @SMOKE3_17924

:SMOKE3_17948
clear_char_tasks_immediately $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_17993
remove_char_from_group $big_smoke
clear_char_tasks_immediately $big_smoke
set_current_char_weapon $big_smoke {weaponType} WeaponType.Unarmed

:SMOKE3_17993
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE3_18046
warp_char_from_car_to_coord $scplayer {x} 2060.325 {y} -1694.8051 {z} 12.5547
set_char_heading $scplayer {heading} 91.3046
goto @SMOKE3_18076

:SMOKE3_18046
set_char_coordinates $scplayer {x} 2060.325 {y} -1694.8051 {z} 12.5547
set_char_heading $scplayer {heading} 91.3046

:SMOKE3_18076
if 
  is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_18129
warp_char_from_car_to_coord $big_smoke {x} 2057.75 {y} -1694.79 {z} 12.554
set_char_heading $big_smoke {heading} 273.188
goto @SMOKE3_18159

:SMOKE3_18129
set_char_coordinates $big_smoke {x} 2057.75 {y} -1694.79 {z} 12.554
set_char_heading $big_smoke {heading} 273.188

:SMOKE3_18159
clear_area 2057.75 {y} -1694.79 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_18229
set_car_coordinates 54@ {x} 2060.3 {y} -1697.975 {z} 9.0
set_car_heading 54@ {heading} 88.04

:SMOKE3_18229
request_animation "GANGS"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17058
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17059
load_all_models_now 

:SMOKE3_18254
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_animation_loaded "GANGS"
goto_if_false @SMOKE3_18293
wait 0
goto @SMOKE3_18254

:SMOKE3_18293
80@ = 4

:SMOKE3_18300
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_18339
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20031

:SMOKE3_18339
if 
  80@ == 4
goto_if_false @SMOKE3_19077
set_fixed_camera_position 2061.814 {y} -1692.7729 {z} 13.1148 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2061.0891 {y} -1693.453 {z} 13.2238 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18502
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 10000
print_now 'SMO3_SA' {time} 4000 {flag} 1

:SMOKE3_18502
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18528
wait 0
goto @SMOKE3_18502

:SMOKE3_18528
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17086
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_SB' {time} 4000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18613
task_play_anim $big_smoke {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE3_18613
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18639
wait 0
goto @SMOKE3_18613

:SMOKE3_18639
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18665
clear_char_tasks $big_smoke
stop_char_facial_talk $big_smoke

:SMOKE3_18665
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17087
set_fixed_camera_position 2055.8511 {y} -1692.644 {z} 14.0837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2056.5811 {y} -1693.324 {z} 14.0171 {switchStyle} SwitchType.JumpCut

:SMOKE3_18729
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18755
wait 0
goto @SMOKE3_18729

:SMOKE3_18755
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_SC' {time} 5000 {flag} 1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE3_18811
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18837
wait 0
goto @SMOKE3_18811

:SMOKE3_18837
clear_prints 

:SMOKE3_18839
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18865
wait 0
goto @SMOKE3_18839

:SMOKE3_18865
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_SD' {time} 5000 {flag} 1

:SMOKE3_18885
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18911
wait 0
goto @SMOKE3_18885

:SMOKE3_18911
do_fade 1500 {direction} Fade.Out
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18982
task_go_straight_to_coord $big_smoke {x} 2058.0271 {y} -1697.166 {z} 13.55 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord $scplayer {x} 2072.7229 {y} -1694.359 {z} 13.55 {speed} MoveState.Walk {time} -1

:SMOKE3_18982
if 
  get_fading_status 
goto_if_false @SMOKE3_19006
wait 0
goto @SMOKE3_18982

:SMOKE3_19006
delete_char $big_smoke
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2072.7229 {y} -1694.359 {z} 12.54
set_char_heading $scplayer {heading} 272.637
switch_widescreen False
set_player_control $player1 {state} False
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In
clear_prints 
goto @SMOKE3_20049

:SMOKE3_19077
if or
  80@ == 2
  80@ == 3
goto_if_false @SMOKE3_19680
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_19680
if 
  95@ == 0
goto_if_false @SMOKE3_19261
if 
  not is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_19261
print_now 'SMK3_18' {time} 5000 {flag} 1
118@ = add_blip_for_char $big_smoke
set_blip_as_friendly 118@ {state} True
if 
  80@ == 2
goto_if_false @SMOKE3_19224
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@

:SMOKE3_19224
if 
  80@ == 3
goto_if_false @SMOKE3_19254
remove_blip 124@
107@ = 0

:SMOKE3_19254
95@ = 1

:SMOKE3_19261
if 
  95@ == 1
goto_if_false @SMOKE3_19680
if 
  locate_char_any_means_char_3d $scplayer {target} $big_smoke {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SMOKE3_19680
if 
  is_char_on_screen $big_smoke
goto_if_false @SMOKE3_19680
if 
  not is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_19368
set_group_member $Players_Group {handle} $big_smoke
set_group_separation_range $Players_Group {range} 30.0

:SMOKE3_19368
remove_blip 118@
if 
  80@ == 2
goto_if_false @SMOKE3_19503
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_19415
119@ = add_blip_for_char 34@

:SMOKE3_19415
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_19439
120@ = add_blip_for_char 35@

:SMOKE3_19439
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_19463
121@ = add_blip_for_char 36@

:SMOKE3_19463
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_19487
122@ = add_blip_for_char 37@

:SMOKE3_19487
print_now 'SMK3_3' {time} 5000 {flag} 1

:SMOKE3_19503
if 
  80@ == 3
goto_if_false @SMOKE3_19582
if 
  115@ == 1
goto_if_false @SMOKE3_19582
print_now 'SMK3_22' {time} 5000 {flag} 1
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1

:SMOKE3_19582
if 
  115@ == 2
goto_if_false @SMOKE3_19673
if 
  80@ == 3
goto_if_false @SMOKE3_19673
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1

:SMOKE3_19673
95@ = 0

:SMOKE3_19680
goto @SMOKE3_1285

:SMOKE3_19687
if 
  111@ == 0
goto_if_false @SMOKE3_19727
load_mission_audio MissionAudioSlot.Slot1 {audioId} 128@
set_lvar_text_label 126@s = 129@s
111@ = 1

:SMOKE3_19727
return 

:SMOKE3_19729
if 
  111@ == 1
goto_if_false @SMOKE3_19783
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_19783
print_now 126@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
111@ = 2

:SMOKE3_19783
if 
  111@ == 2
goto_if_false @SMOKE3_19877
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_19877
110@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  117@ == 1
goto_if_false @SMOKE3_19870
print_now 'SMK3_25' {time} 6000 {flag} 1
117@ = 2

:SMOKE3_19870
111@ = 0

:SMOKE3_19877
return 

:SMOKE3_19879
62@ = open_sequence_task 
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000
close_sequence_task 62@
perform_sequence_task 61@ {sequence} 62@
clear_sequence_task 62@
return 

:SMOKE3_19936
63@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} False {duringScriptTask} False
close_sequence_task 63@
perform_sequence_task 61@ {sequence} 63@
clear_sequence_task 63@
return 

:SMOKE3_19977
65@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_20011
task_kill_char_on_foot -1 {target} $big_smoke

:SMOKE3_20011
close_sequence_task 65@
perform_sequence_task 61@ {sequence} 65@
clear_sequence_task 65@
return 

:SMOKE3_20031
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SMOKE3_20049
$flag_smoke_mission_counter += 1
register_mission_passed 'SMOKE_3'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
return 

:SMOKE3_20104
$onmission = 0
restore_camera_jumpcut 
set_player_in_car_camera_mode 2
mark_object_as_no_longer_needed 53@
mark_object_as_no_longer_needed 52@
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
set_railtrack_resistance_mult -1.0
if 
  is_player_playing $player1
goto_if_false @SMOKE3_20166
set_player_control $player1 {state} True
switch_widescreen False

:SMOKE3_20166
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_20189
set_can_burst_car_tyres 54@ {state} True

:SMOKE3_20189
mark_mission_trains_as_no_longer_needed 
switch_random_trains True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_char_elegantly 34@
remove_char_elegantly 35@
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly $big_smoke
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_on 2268.75 {leftBottomY} -1390.8 {leftBottomZ} 20.86 {rightTopX} 2330.03 {rightTopY} -1375.53 {rightTopZ} 23.1
switch_roads_on 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_on 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_on 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_on 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_on 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 222.36 {rightTopY} -1897.71 {rightTopZ} 15.0
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed #IMMMCRAN
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed #TRNTRK8_LAS
unload_special_character 1
remove_animation "TRAIN"
remove_animation "GANGS"
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_20701
set_train_forced_to_slow_down 40@ {state} True

:SMOKE3_20701
reset_vehicle_camera_tweak 
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_20756
set_car_health 54@ {health} 1000
set_can_burst_car_tyres 54@ {state} True
set_car_proofs 54@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
shut_char_up_for_scripted_speech $scplayer {state} False

:SMOKE3_20756
release_weather 
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_20789
set_car_health 78@ {health} 1000
set_can_burst_car_tyres 78@ {state} True

:SMOKE3_20789
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 78@
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 30---------------
// Originally: Just Business

:DRUGS1
script_name 'DRUGS1'
gosub @DRUGS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS1_38
gosub @DRUGS1_51829

:DRUGS1_38
gosub @DRUGS1_51907
terminate_this_script 

:DRUGS1_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SMOKE4'
clear_area 2060.0 {y} -1694.0 {z} 50.0 {radius} 50.0 {clearParticles} True
force_weather_now WeatherType.SunnyLa
request_model #LAE_SMOKECUTSCENE

:DRUGS1_104
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @DRUGS1_131
wait 0
goto @DRUGS1_104

:DRUGS1_131
290@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE4A'

:DRUGS1_165
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS1_189
wait 0
goto @DRUGS1_165

:DRUGS1_189
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS1_198
if 
  not has_cutscene_finished 
goto_if_false @DRUGS1_222
wait 0
goto @DRUGS1_198

:DRUGS1_222
do_fade 0 {direction} Fade.Out

:DRUGS1_228
if 
  get_fading_status 
goto_if_false @DRUGS1_252
wait 0
goto @DRUGS1_228

:DRUGS1_252
clear_cutscene 
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 290@
set_fading_colour 0 {g} 0 {b} 0
wait 500
request_model 466
request_model 91
request_model 93
request_model 111
request_model 112
load_special_character 1 {modelName} 'SMOKE'
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25802
load_all_models_now 

:DRUGS1_320
if or
  not has_model_loaded 466
  not has_model_loaded 111
  not has_model_loaded 111
  not has_model_loaded 91
  not has_model_loaded 93
goto_if_false @DRUGS1_363
wait 0
goto @DRUGS1_320

:DRUGS1_363
if or
  not has_special_character_loaded 1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_393
wait 0
goto @DRUGS1_363

:DRUGS1_393
90@ = 0
$smokehealth_s4 = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
282@ = 0
283@ = 0
127@ = 0
128@ = 0
129@ = 0
242@ = 0
243@ = 0
244@ = 0
245@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
35@ = load_char_decision_maker DecisionMakerType.Empty
36@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 36@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
34@ = create_car 466 {x} 2058.8601 {y} -1694.6121 {z} 12.297
set_radio_channel RadioChannel.RadioLosSantos
change_car_colour 34@ {color1} 98 {color2} 14
set_car_heading 34@ {heading} 271.822
set_car_health 34@ {health} 1000
$big_smoke = create_char_as_passenger 34@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_signal_after_kill $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_suffers_critical_hits $big_smoke {state} False
set_char_never_targetted $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 35@
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_max_fire_generations 1
warp_char_into_car $scplayer {vehicle} 34@
set_wanted_multiplier 0.0
switch_emergency_services False
do_fade 1500 {direction} Fade.In
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
shut_char_up $scplayer {state} True
switch_roads_off 1694.12 {leftBottomY} -1604.33 {leftBottomZ} 5.0 {rightTopX} 1805.9399 {rightTopY} -1593.12 {rightTopZ} 15.0
print_now 'DGS1_1' {time} 6000 {flag} 1
TIMERB = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:DRUGS1_1346
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS1_1372
goto @DRUGS1_51847

:DRUGS1_1372
if 
  280@ <= 7
goto_if_false @DRUGS1_1429
if 
  is_char_dead $big_smoke
goto_if_false @DRUGS1_1429
print_now 'DGS1_60' {time} 7000 {flag} 1
goto @DRUGS1_51829

:DRUGS1_1429
if 
  123@ == 0
goto_if_false @DRUGS1_9205
if 
  90@ == 11
goto_if_false @DRUGS1_1565
if 
  6 > $smokehealth_s4
goto_if_false @DRUGS1_1565
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 1744.2 {leftBottomY} -1686.6801 {rightTopX} 1698.34 {rightTopY} -1616.4 {drawSphere} False
goto_if_false @DRUGS1_1565
if 
  not is_char_on_screen $big_smoke
goto_if_false @DRUGS1_1565
explode_char_head $big_smoke
print_now 'DGS1_3' {time} 7000 {flag} 1
goto @DRUGS1_51829

:DRUGS1_1565
if 
  90@ == 0
goto_if_false @DRUGS1_1696
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_1696
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1696
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1696
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1696
88@ = add_blip_for_coord 1722.568 {y} -1597.92 {z} 12.405
print_now 'DGS1_1' {time} 10000 {flag} 1
90@ = 1

:DRUGS1_1696
if 
  92@ == 0
goto_if_false @DRUGS1_1984
if or
  90@ == 1
  90@ == 100
goto_if_false @DRUGS1_1984
if 
  91@ == 0
goto_if_false @DRUGS1_1852
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1852
if 
  not is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1852
87@ = add_blip_for_car 34@
set_blip_as_friendly 87@ {state} True
remove_blip 88@
90@ = 100
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AC' {time} 2000 {flag} 1
91@ = 1

:DRUGS1_1852
if 
  91@ == 1
goto_if_false @DRUGS1_1984
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1984
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1984
remove_blip 87@
88@ = add_blip_for_coord 1722.568 {y} -1597.92 {z} 12.405
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  282@ > 12
goto_if_false @DRUGS1_1970
print_now 'DGS1_1' {time} 5000 {flag} 1

:DRUGS1_1970
90@ = 1
91@ = 0

:DRUGS1_1984
if 
  90@ == 1
goto_if_false @DRUGS1_2938
gosub @DRUGS1_51446
if 
  282@ == 0
goto_if_false @DRUGS1_2093
if 
  283@ == 0
goto_if_false @DRUGS1_2093
if 
  TIMERB > 6500
goto_if_false @DRUGS1_2093
set_lvar_int_to_constant 239@ = 11083
set_lvar_text_label 240@s = 'SMO4_AA'
gosub @DRUGS1_51404

:DRUGS1_2093
if 
  282@ == 1
goto_if_false @DRUGS1_2158
if 
  283@ == 0
goto_if_false @DRUGS1_2158
set_lvar_int_to_constant 239@ = 11003
set_lvar_text_label 240@s = 'SMO4_AB'
gosub @DRUGS1_51404

:DRUGS1_2158
if 
  282@ == 2
goto_if_false @DRUGS1_2223
if 
  283@ == 0
goto_if_false @DRUGS1_2223
set_lvar_int_to_constant 239@ = 11004
set_lvar_text_label 240@s = 'SMO4_AC'
gosub @DRUGS1_51404

:DRUGS1_2223
if 
  282@ == 3
goto_if_false @DRUGS1_2288
if 
  283@ == 0
goto_if_false @DRUGS1_2288
set_lvar_int_to_constant 239@ = 11084
set_lvar_text_label 240@s = 'SMO4_AD'
gosub @DRUGS1_51404

:DRUGS1_2288
if 
  282@ == 4
goto_if_false @DRUGS1_2353
if 
  283@ == 0
goto_if_false @DRUGS1_2353
set_lvar_int_to_constant 239@ = 11005
set_lvar_text_label 240@s = 'SMO4_AE'
gosub @DRUGS1_51404

:DRUGS1_2353
if 
  282@ == 5
goto_if_false @DRUGS1_2418
if 
  283@ == 0
goto_if_false @DRUGS1_2418
set_lvar_int_to_constant 239@ = 11006
set_lvar_text_label 240@s = 'SMO4_AF'
gosub @DRUGS1_51404

:DRUGS1_2418
if 
  282@ == 6
goto_if_false @DRUGS1_2483
if 
  283@ == 0
goto_if_false @DRUGS1_2483
set_lvar_int_to_constant 239@ = 11007
set_lvar_text_label 240@s = 'SMO4_AG'
gosub @DRUGS1_51404

:DRUGS1_2483
if 
  282@ == 7
goto_if_false @DRUGS1_2548
if 
  283@ == 0
goto_if_false @DRUGS1_2548
set_lvar_int_to_constant 239@ = 11085
set_lvar_text_label 240@s = 'SMO4_AH'
gosub @DRUGS1_51404

:DRUGS1_2548
if 
  282@ == 7
goto_if_false @DRUGS1_2613
if 
  283@ == 0
goto_if_false @DRUGS1_2613
set_lvar_int_to_constant 239@ = 11008
set_lvar_text_label 240@s = 'SMO4_AJ'
gosub @DRUGS1_51404

:DRUGS1_2613
if 
  282@ == 8
goto_if_false @DRUGS1_2678
if 
  283@ == 0
goto_if_false @DRUGS1_2678
set_lvar_int_to_constant 239@ = 11009
set_lvar_text_label 240@s = 'SMO4_AK'
gosub @DRUGS1_51404

:DRUGS1_2678
if 
  282@ == 9
goto_if_false @DRUGS1_2743
if 
  283@ == 0
goto_if_false @DRUGS1_2743
set_lvar_int_to_constant 239@ = 11010
set_lvar_text_label 240@s = 'SMO4_AL'
gosub @DRUGS1_51404

:DRUGS1_2743
if 
  282@ == 10
goto_if_false @DRUGS1_2808
if 
  283@ == 0
goto_if_false @DRUGS1_2808
set_lvar_int_to_constant 239@ = 11011
set_lvar_text_label 240@s = 'SMO4_AM'
gosub @DRUGS1_51404

:DRUGS1_2808
if 
  282@ == 11
goto_if_false @DRUGS1_2873
if 
  283@ == 0
goto_if_false @DRUGS1_2873
set_lvar_int_to_constant 239@ = 11086
set_lvar_text_label 240@s = 'SMO4_AN'
gosub @DRUGS1_51404

:DRUGS1_2873
if 
  282@ == 12
goto_if_false @DRUGS1_2938
if 
  283@ == 0
goto_if_false @DRUGS1_2938
set_lvar_int_to_constant 239@ = 11012
set_lvar_text_label 240@s = 'SMO4_AO'
gosub @DRUGS1_51404

:DRUGS1_2938
if 
  90@ == 1
goto_if_false @DRUGS1_5103
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_5103
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5103
if 
  is_char_sitting_in_car $big_smoke {vehicle} 34@
goto_if_false @DRUGS1_5103
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_5103
if 
  locate_car_3d 34@ {x} 1722.568 {y} -1597.92 {z} 12.45 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @DRUGS1_5103
set_player_control $player1 {state} False
switch_widescreen True
disable_all_entry_exits True
set_max_wanted_level 0
122@ = 0
clear_area 1722.568 {y} -1597.92 {z} 300.0 {radius} 300.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_fixed_camera_position 1711.449 {y} -1576.924 {z} 30.3531 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1711.6281 {y} -1577.821 {z} 29.9486 {switchStyle} SwitchType.JumpCut
task_leave_any_car $big_smoke
task_leave_any_car $scplayer
do_fade 2000 {direction} Fade.Out

:DRUGS1_3206
if 
  get_fading_status 
goto_if_false @DRUGS1_3230
wait 0
goto @DRUGS1_3206

:DRUGS1_3230
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
request_model 352
request_model 346
request_model 353
request_animation "JST_BUISNESS"
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11013
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11000
load_all_models_now 

:DRUGS1_3292
if or
  not has_model_loaded 346
  not has_model_loaded 353
  not has_animation_loaded "JST_BUISNESS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_3348
wait 0
goto @DRUGS1_3292

:DRUGS1_3348
if 
  not has_model_loaded 353
goto_if_false @DRUGS1_3375
wait 0
goto @DRUGS1_3348

:DRUGS1_3375
37@ = create_char PedType.Mission1 {modelId} 93 {x} 1718.283 {y} -1633.178 {z} 19.2035
shut_char_up 37@ {state} True
set_char_heading 37@ {heading} 59.5412
task_play_anim_non_interruptable 37@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 35@
shut_char_up 37@ {state} True
38@ = create_char PedType.Mission1 {modelId} 93 {x} 1717.72 {y} -1633.952 {z} 19.2029
set_char_heading 38@ {heading} 313.3566
shut_char_up 38@ {state} True
task_play_anim_non_interruptable 38@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 38@ {handleOrTemplate} 35@
shut_char_up 38@ {state} True
39@ = create_char PedType.Mission1 {modelId} 93 {x} 1712.811 {y} -1629.454 {z} 19.201
set_char_heading 39@ {heading} 48.5227
shut_char_up 39@ {state} True
task_play_anim_non_interruptable 39@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 39@ {handleOrTemplate} 35@
shut_char_up 39@ {state} True
40@ = create_char PedType.Mission1 {modelId} 93 {x} 1712.146 {y} -1630.165 {z} 19.2003
set_char_heading 40@ {heading} 322.1413
shut_char_up 40@ {state} True
task_play_anim_non_interruptable 40@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 40@ {handleOrTemplate} 35@
shut_char_up 40@ {state} True
41@ = create_char PedType.Mission1 {modelId} 93 {x} 1732.528 {y} -1627.45 {z} 19.2044
set_char_heading 41@ {heading} 275.6598
shut_char_up 41@ {state} True
task_play_anim_non_interruptable 41@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 41@ {handleOrTemplate} 35@
shut_char_up 41@ {state} True
42@ = create_char PedType.Mission1 {modelId} 111 {x} 1729.973 {y} -1649.115 {z} 19.274
set_char_heading 42@ {heading} 11.051
set_char_decision_maker 42@ {handleOrTemplate} 35@
give_weapon_to_char 42@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 42@ {areaId} 18
set_char_health 42@ {health} 35
214@ = add_blip_for_char 42@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 42@ {state} True
43@ = create_char PedType.Mission1 {modelId} 112 {x} 1729.9709 {y} -1657.139 {z} 19.278
set_char_heading 43@ {heading} 21.106
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 43@ {accuracy} 60
set_char_area_visible 43@ {areaId} 18
215@ = add_blip_for_char 43@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_keep_task 43@ {state} True
set_char_shoot_rate 43@ {rate} 50
44@ = create_char PedType.Mission1 {modelId} 112 {x} 1722.311 {y} -1658.636 {z} 19.108
set_char_heading 44@ {heading} 352.526
set_char_decision_maker 44@ {handleOrTemplate} 36@
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 44@ {areaId} 18
216@ = add_blip_for_char 44@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 44@ {state} True
45@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.399 {y} -1657.463 {z} 19.26
set_char_health 45@ {health} 150
set_char_heading 45@ {heading} 323.108
set_char_decision_maker 45@ {handleOrTemplate} 36@
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 45@ {areaId} 18
set_char_accuracy 45@ {accuracy} 50
217@ = add_blip_for_char 45@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_keep_task 45@ {state} True
set_char_max_health 45@ {maxHealth} 150
set_char_health 45@ {health} 150
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.7629 {y} -1664.816 {z} 19.273
set_char_heading 46@ {heading} 329.331
set_char_decision_maker 46@ {handleOrTemplate} 36@
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 46@ {accuracy} 50
set_char_max_health 46@ {maxHealth} 150
set_char_health 46@ {health} 150
set_char_area_visible 46@ {areaId} 18
218@ = add_blip_for_char 46@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 46@ {state} True
47@ = create_char PedType.Mission1 {modelId} 111 {x} 1718.7111 {y} -1655.182 {z} 19.108
set_char_heading 47@ {heading} 327.782
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_weapon_skill 47@ {skill} WeaponSkill.Pro
give_weapon_to_char 47@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 47@ {areaId} 18
set_char_accuracy 47@ {accuracy} 60
219@ = add_blip_for_char 47@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_keep_task 47@ {state} True
48@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.8 {y} -1650.28 {z} 19.26
set_char_heading 48@ {heading} 265.623
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_weapon_skill 48@ {skill} WeaponSkill.Pro
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_max_health 48@ {maxHealth} 150
set_char_health 48@ {health} 150
set_char_area_visible 48@ {areaId} 18
220@ = add_blip_for_char 48@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 48@ {state} True
set_char_shoot_rate 48@ {rate} 50
51@ = create_char PedType.Mission1 {modelId} 112 {x} 1719.6 {y} -1671.764 {z} 22.741
set_char_health 51@ {health} 5
set_char_heading 51@ {heading} 11.45
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_allowed_to_duck 51@ {state} False
set_char_area_visible 51@ {areaId} 18
223@ = add_blip_for_char 51@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
change_blip_scale 223@ {size} 2
set_char_keep_task 51@ {state} True
52@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.897 {y} -1668.0389 {z} 19.23
set_char_heading 52@ {heading} 276.178
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 52@ {areaId} 18
set_char_accuracy 52@ {accuracy} 60
224@ = add_blip_for_char 52@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
change_blip_scale 224@ {size} 2
set_char_keep_task 52@ {state} True
set_char_max_health 52@ {maxHealth} 150
set_char_health 52@ {health} 150
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1725.037 {y} -1672.6899 {z} 22.735
set_char_heading 53@ {heading} 127.283
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_weapon_skill 53@ {skill} WeaponSkill.Pro
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 53@ {accuracy} 60
set_char_area_visible 53@ {areaId} 18
225@ = add_blip_for_char 53@
change_blip_display 225@ {display} BlipDisplay.BlipOnly
change_blip_scale 225@ {size} 2
set_char_keep_task 53@ {state} True
set_char_shoot_rate 53@ {rate} 50
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1733.358 {y} -1664.599 {z} 22.747
set_char_heading 54@ {heading} 141.981
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 54@ {accuracy} 50
set_char_area_visible 54@ {areaId} 18
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
set_char_keep_task 54@ {state} True
set_char_max_health 54@ {maxHealth} 150
set_char_health 54@ {health} 150
load_scene_in_direction 1726.993 {y} -1628.007 {z} 20.2 {heading} 8.98
load_scene_in_direction 1726.993 {y} -1628.007 {z} 20.2 {heading} 169.7
90@ = 2

:DRUGS1_5103
if 
  90@ == 2
goto_if_false @DRUGS1_5367
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5367
if 
  not is_char_in_any_car $big_smoke
goto_if_false @DRUGS1_5367
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRUGS1_5367
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
set_char_coordinates $scplayer {x} 1726.04 {y} -1632.521 {z} 19.18
set_char_heading $scplayer {heading} 180.0
set_char_coordinates $big_smoke {x} 1726.8149 {y} -1633.001 {z} 19.18
set_char_heading $big_smoke {heading} 180.0
63@ = create_char PedType.Mission1 {modelId} 91 {x} 1727.757 {y} -1632.918 {z} 19.18
set_char_heading 63@ {heading} 270.0
set_char_decision_maker 63@ {handleOrTemplate} 35@
shut_char_up 63@ {state} True
TIMERB = 0
set_fixed_camera_position 1728.489 {y} -1633.5389 {z} 20.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.4041 {y} -1632.053 {z} 20.279 {switchStyle} SwitchType.JumpCut
TIMERA = 0
99@ = 1
90@ = 8

:DRUGS1_5367
if 
  90@ == 8
goto_if_false @DRUGS1_6846
if 
  99@ == 1
goto_if_false @DRUGS1_5438
if 
  TIMERA > 1000
goto_if_false @DRUGS1_5438
clear_prints 
do_fade 500 {direction} Fade.In
99@ = 2

:DRUGS1_5438
if 
  99@ == 2
goto_if_false @DRUGS1_5676
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5676
if 
  not is_char_dead 63@
goto_if_false @DRUGS1_5676
set_char_collision 63@ {state} False
set_char_collision $big_smoke {state} False
set_char_collision $scplayer {state} False
task_play_anim_non_interruptable $scplayer {animationName} "PLAYER_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $big_smoke {animationName} "SMOKE_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable 63@ {animationName} "GIRL_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
TIMERB = 0
93@ = 0
skip_cutscene_start_internal @DRUGS1_6916
99@ = 3

:DRUGS1_5676
if 
  99@ == 3
goto_if_false @DRUGS1_5815
if 
  TIMERB > 2066
goto_if_false @DRUGS1_5815
set_fixed_camera_position 1726.35 {y} -1630.824 {z} 20.7289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.411 {y} -1631.822 {z} 20.7195 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5792
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_5792
print_now 'SMO4_BA' {time} 5000 {flag} 1
99@ = 4

:DRUGS1_5815
if 
  99@ == 4
goto_if_false @DRUGS1_5987
if 
  TIMERB > 4999
goto_if_false @DRUGS1_5987
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_5987
set_fixed_camera_position 1726.37 {y} -1633.38 {z} 20.6705 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.416 {y} -1632.381 {z} 20.6667 {switchStyle} SwitchType.JumpCut
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5945
stop_char_facial_talk $big_smoke

:DRUGS1_5945
print_now 'SMO4_BB' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11014
99@ = 5

:DRUGS1_5987
if 
  99@ == 5
goto_if_false @DRUGS1_6102
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6102
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6102
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6068
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_6068
print_now 'SMO4_BC' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11015
99@ = 6

:DRUGS1_6102
if 
  99@ == 6
goto_if_false @DRUGS1_6184
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6184
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6184
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_BD' {time} 5000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11001
99@ = 7

:DRUGS1_6184
if 
  99@ == 7
goto_if_false @DRUGS1_6426
if 
  TIMERB > 9999
goto_if_false @DRUGS1_6426
if 
  not is_char_dead 63@
goto_if_false @DRUGS1_6426
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6426
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6426
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6288
stop_char_facial_talk $big_smoke

:DRUGS1_6288
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 1732.785 {y} -1633.043 {z} 19.2
set_char_heading 63@ {heading} 0.0
task_play_anim_non_interruptable 63@ {animationName} "GIRL_02" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BE' {time} 3000 {flag} 1
set_near_clip 0.09
start_char_facial_talk $scplayer {duration} 2000
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11002
129@ = 1
99@ = 8

:DRUGS1_6426
if 
  129@ == 1
goto_if_false @DRUGS1_6471
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6471
stop_char_facial_talk $scplayer
129@ = 2

:DRUGS1_6471
if 
  99@ == 8
goto_if_false @DRUGS1_6634
if 
  TIMERB > 18500
goto_if_false @DRUGS1_6634
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6634
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6634
set_fixed_camera_position 1725.094 {y} -1632.446 {z} 20.7074 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.0909 {y} -1632.391 {z} 20.6711 {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_BF' {time} 3000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11016
99@ = 9

:DRUGS1_6634
if 
  99@ == 9
goto_if_false @DRUGS1_6714
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6714
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6714
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BG' {time} 5000 {flag} 1
99@ = 10

:DRUGS1_6714
if 
  99@ == 10
goto_if_false @DRUGS1_6846
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6846
clear_prints 
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6846
if 
  is_char_playing_anim $scplayer {animationName} "PLAYER_01"
goto_if_false @DRUGS1_6846
62@ = get_char_anim_current_time $scplayer {animationName} "PLAYER_01"
if 
  62@ == 1.0
goto_if_false @DRUGS1_6846
90@ = 10
99@ = 11

:DRUGS1_6846
if 
  90@ == 10
goto_if_false @DRUGS1_9205
if 
  TIMERA > 2000
goto_if_false @DRUGS1_9205
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9205
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
93@ = 1

:DRUGS1_6916
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:DRUGS1_6925
if 
  get_fading_status 
goto_if_false @DRUGS1_6949
wait 0
goto @DRUGS1_6925

:DRUGS1_6949
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
set_area_visible 18
load_scene 1722.8101 {y} -1658.54 {z} 20.19
if 
  93@ == 0
goto_if_false @DRUGS1_8315
clear_prints 
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 93
delete_car 34@
mark_model_as_no_longer_needed 466
42@ = create_char PedType.Mission1 {modelId} 111 {x} 1729.973 {y} -1649.115 {z} 19.274
set_char_heading 42@ {heading} 11.051
set_char_decision_maker 42@ {handleOrTemplate} 35@
give_weapon_to_char 42@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 42@ {areaId} 18
set_char_health 42@ {health} 35
214@ = add_blip_for_char 42@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 42@ {state} True
43@ = create_char PedType.Mission1 {modelId} 112 {x} 1729.9709 {y} -1657.139 {z} 19.278
set_char_health 43@ {health} 10
set_char_heading 43@ {heading} 21.106
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 43@ {accuracy} 60
set_char_area_visible 43@ {areaId} 18
215@ = add_blip_for_char 43@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_shoot_rate 43@ {rate} 50
set_char_keep_task 43@ {state} True
44@ = create_char PedType.Mission1 {modelId} 112 {x} 1722.311 {y} -1658.636 {z} 19.108
set_char_heading 44@ {heading} 352.526
set_char_decision_maker 44@ {handleOrTemplate} 36@
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 44@ {areaId} 18
216@ = add_blip_for_char 44@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 44@ {state} True
45@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.399 {y} -1657.463 {z} 19.26
set_char_health 45@ {health} 150
set_char_heading 45@ {heading} 323.108
set_char_decision_maker 45@ {handleOrTemplate} 36@
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 45@ {areaId} 18
217@ = add_blip_for_char 45@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_accuracy 45@ {accuracy} 60
set_char_keep_task 45@ {state} True
set_char_max_health 45@ {maxHealth} 150
set_char_health 45@ {health} 150
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.7629 {y} -1664.816 {z} 19.273
set_char_heading 46@ {heading} 329.331
set_char_decision_maker 46@ {handleOrTemplate} 36@
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 46@ {accuracy} 70
set_char_max_health 46@ {maxHealth} 150
set_char_health 46@ {health} 150
set_char_area_visible 46@ {areaId} 18
218@ = add_blip_for_char 46@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 46@ {state} True
47@ = create_char PedType.Mission1 {modelId} 111 {x} 1718.7111 {y} -1655.182 {z} 19.108
set_char_heading 47@ {heading} 327.782
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_weapon_skill 47@ {skill} WeaponSkill.Pro
give_weapon_to_char 47@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 47@ {areaId} 18
219@ = add_blip_for_char 47@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_accuracy 47@ {accuracy} 60
set_char_keep_task 47@ {state} True
48@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.8 {y} -1650.28 {z} 19.26
set_char_heading 48@ {heading} 265.623
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_weapon_skill 48@ {skill} WeaponSkill.Pro
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_max_health 48@ {maxHealth} 150
set_char_health 48@ {health} 150
set_char_area_visible 48@ {areaId} 18
220@ = add_blip_for_char 48@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 48@ {state} True
set_char_shoot_rate 48@ {rate} 60
51@ = create_char PedType.Mission1 {modelId} 112 {x} 1719.6 {y} -1671.764 {z} 22.741
set_char_health 51@ {health} 5
set_char_heading 51@ {heading} 11.45
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_allowed_to_duck 51@ {state} False
set_char_area_visible 51@ {areaId} 18
223@ = add_blip_for_char 51@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
change_blip_scale 223@ {size} 2
set_char_keep_task 51@ {state} True
52@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.897 {y} -1668.0389 {z} 19.23
set_char_heading 52@ {heading} 276.178
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 52@ {areaId} 18
set_char_accuracy 52@ {accuracy} 60
224@ = add_blip_for_char 52@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
change_blip_scale 224@ {size} 2
set_char_keep_task 52@ {state} True
set_char_max_health 52@ {maxHealth} 150
set_char_health 52@ {health} 150
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1725.037 {y} -1672.6899 {z} 22.735
set_char_heading 53@ {heading} 127.283
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_weapon_skill 53@ {skill} WeaponSkill.Pro
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 53@ {accuracy} 60
set_char_area_visible 53@ {areaId} 18
225@ = add_blip_for_char 53@
change_blip_display 225@ {display} BlipDisplay.BlipOnly
change_blip_scale 225@ {size} 2
set_char_keep_task 53@ {state} True
set_char_shoot_rate 53@ {rate} 50
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1733.358 {y} -1664.599 {z} 22.747
set_char_heading 54@ {heading} 141.981
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 54@ {accuracy} 65
set_char_area_visible 54@ {areaId} 18
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
set_char_keep_task 54@ {state} True
set_char_max_health 54@ {maxHealth} 150
set_char_health 54@ {health} 150

:DRUGS1_8315
if 
  $smokehealth_s4 == 0
goto_if_false @DRUGS1_8582
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8582
clear_char_tasks_immediately $big_smoke
set_char_collision $big_smoke {state} True
set_char_collision $scplayer {state} True
stop_char_facial_talk $big_smoke
stop_char_facial_talk $scplayer
set_char_coordinates $big_smoke {x} 1727.884 {y} -1641.127 {z} 19.2323
set_char_heading $big_smoke {heading} 182.5173
set_char_has_used_entry_exit $big_smoke {x} 1727.009 {y} -1635.826 {radius} 1.0
89@ = add_blip_for_char $big_smoke
set_char_accuracy $big_smoke {accuracy} 100
set_char_area_visible $big_smoke {areaId} 18
set_blip_as_friendly 89@ {state} True
set_char_has_used_entry_exit $scplayer {x} 1727.009 {y} -1635.826 {radius} 1.0
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
load_scene 1727.884 {y} -1641.127 {z} 19.2323
give_weapon_to_char $big_smoke {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_max_health $big_smoke {maxHealth} 500
set_char_health $big_smoke {health} 500
$s2_random_int = get_char_health $big_smoke
set_char_shoot_rate $big_smoke {rate} 55
$s2_random_int /= 5
display_onscreen_counter_with_string $s2_random_int {display} CounterDisplay.Bar {text} 'DGS1_58'
task_toggle_duck $big_smoke {state} True
$smokehealth_s4 = 1

:DRUGS1_8582
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11020
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1725.933 {y} -1638.374 {z} 19.2232
set_char_heading $scplayer {heading} 174.7897
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8663
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_8663
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_8689
wait 0
goto @DRUGS1_8663

:DRUGS1_8689
do_fade 250 {direction} Fade.In
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_8731
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BL' {time} 2500 {flag} 1

:DRUGS1_8731
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_8786
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8786
set_lvar_int_to_lvar_int 79@ = 42@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51747

:DRUGS1_8786
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_8841
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8841
set_lvar_int_to_lvar_int 79@ = 44@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_8841
set_fixed_camera_position 1726.528 {y} -1637.829 {z} 21.257 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.4771 {y} -1638.7791 {z} 20.9496 {switchStyle} SwitchType.JumpCut
task_toggle_duck $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 1724.626 {y} -1640.693 {z} 20.2245 {speed} MoveState.Walk {time} -1
TIMERA = 0

:DRUGS1_8930
if or
  not locate_stopped_char_any_means_2d $scplayer {x} 1724.626 {y} -1640.693 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
  TIMERA <= 1500
goto_if_false @DRUGS1_8987
wait 0
goto @DRUGS1_8930

:DRUGS1_8987
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_9004
clear_prints 

:DRUGS1_9004
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 120
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 180.0
switch_widescreen False
set_char_collision $scplayer {state} True
remove_animation "JST_BUISNESS"
remove_blip 88@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 91
delete_char 63@
delete_car 34@
mark_model_as_no_longer_needed 466
set_player_control $player1 {state} True
task_toggle_duck $scplayer {state} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9152
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS1_9152
clear_mission_audio MissionAudioSlot.Slot1
123@ = 1
282@ = 0
283@ = 0
125@ = 1
90@ = 11
TIMERA = 0
128@ = 2

:DRUGS1_9205
if 
  90@ == 11
goto_if_false @DRUGS1_15665
if 
  128@ == 2
goto_if_false @DRUGS1_15665
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9272
$s2_random_int = get_char_health $big_smoke
$s2_random_int /= 5

:DRUGS1_9272
if 
  126@ == 0
goto_if_false @DRUGS1_13668
if 
  $smokehealth_s4 == 1
goto_if_false @DRUGS1_9765
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_9347
set_lvar_int_to_lvar_int 79@ = 43@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_9347
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_9386
set_lvar_int_to_lvar_int 79@ = 45@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_9386
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_9441
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9441
set_lvar_int_to_lvar_int 79@ = 46@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_9441
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_9480
set_lvar_int_to_lvar_int 79@ = 47@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_9480
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_9519
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_9519
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_9618
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1728.416
82@ = -1669.709
83@ = 22.8493
84@ = 1721.637
85@ = -1662.946
86@ = 20.27
gosub @DRUGS1_51610

:DRUGS1_9618
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9751
122@ = 1
69@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_9681
task_kill_char_on_foot -1 {target} 42@

:DRUGS1_9681
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_9704
task_kill_char_on_foot -1 {target} 43@

:DRUGS1_9704
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 1727.717 {y} -1658.271 {z} 20.277 {speed} MoveState.Run {time} -1
close_sequence_task 69@
perform_sequence_task $big_smoke {sequence} 69@
clear_sequence_task 69@

:DRUGS1_9751
TIMERA = 0
$smokehealth_s4 = 2

:DRUGS1_9765
if 
  $smokehealth_s4 == 2
goto_if_false @DRUGS1_9976
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9976
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_9976
set_char_accuracy $big_smoke {accuracy} 50
70@ = open_sequence_task 
122@ = 2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_9876
task_kill_char_on_foot -1 {target} 44@

:DRUGS1_9876
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_9899
task_kill_char_on_foot -1 {target} 52@

:DRUGS1_9899
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_9922
task_kill_char_on_foot -1 {target} 53@

:DRUGS1_9922
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1719.854 {y} -1666.667 {z} 20.271 {speed} MoveState.Run {time} -1
close_sequence_task 70@
perform_sequence_task $big_smoke {sequence} 70@
clear_sequence_task 70@
$smokehealth_s4 = 3

:DRUGS1_9976
if 
  $smokehealth_s4 == 3
goto_if_false @DRUGS1_10180
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10180
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10180
122@ = 3
71@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_10080
task_kill_char_on_foot -1 {target} 46@

:DRUGS1_10080
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_10103
task_kill_char_on_foot -1 {target} 47@

:DRUGS1_10103
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_10126
task_kill_char_on_foot -1 {target} 48@

:DRUGS1_10126
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1713.96 {y} -1668.24 {z} 19.27 {speed} MoveState.Run {time} -1
close_sequence_task 71@
perform_sequence_task $big_smoke {sequence} 71@
clear_sequence_task 71@
$smokehealth_s4 = 4

:DRUGS1_10180
if 
  $smokehealth_s4 == 4
goto_if_false @DRUGS1_10361
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10361
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10361
122@ = 4
72@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_10290
task_kill_char_on_foot -1 {target} 45@

:DRUGS1_10290
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_10313
task_kill_char_on_foot -1 {target} 51@

:DRUGS1_10313
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_10336
task_kill_char_on_foot -1 {target} 54@

:DRUGS1_10336
close_sequence_task 72@
perform_sequence_task $big_smoke {sequence} 72@
clear_sequence_task 72@
$smokehealth_s4 = 5

:DRUGS1_10361
if 
  $smokehealth_s4 == 5
goto_if_false @DRUGS1_10496
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10496
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10496
122@ = 5
73@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1704.45 {y} -1667.71 {z} 19.68 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 73@
perform_sequence_task $big_smoke {sequence} 73@
clear_sequence_task 73@
$smokehealth_s4 = 6

:DRUGS1_10496
if 
  94@ == 0
goto_if_false @DRUGS1_10571
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_10571
if 
  has_char_been_damaged_by_char 44@ {handle} $scplayer
goto_if_false @DRUGS1_10571
task_stay_in_same_place 44@ {state} False
task_kill_char_on_foot 44@ {target} $scplayer
94@ = 1

:DRUGS1_10571
if 
  95@ == 0
goto_if_false @DRUGS1_10686
if or
  locate_char_any_means_3d $scplayer {x} 1727.0 {y} -1637.0 {z} 20.0 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 1700.1899 {y} -1667.58 {z} 20.0 {xRadius} 6.5 {yRadius} 6.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_10686
remove_char_elegantly 41@
95@ = 1

:DRUGS1_10686
if 
  96@ == 0
goto_if_false @DRUGS1_10964
if 
  does_char_exist 48@
goto_if_false @DRUGS1_10964
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1707.16 {leftBottomY} -1643.73 {leftBottomZ} 17.0 {rightTopX} 1735.9 {rightTopY} -1653.46 {rightTopZ} 22.0 {drawSphere} False
  has_char_been_damaged_by_char 48@ {handle} $scplayer
  is_char_dead 44@
goto_if_false @DRUGS1_10964
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_10858
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1725.069
82@ = -1649.467
83@ = 19.27
set_char_money 48@ {amount} 250
gosub @DRUGS1_51698

:DRUGS1_10858
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_10957
set_lvar_int_to_lvar_int 79@ = 52@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1717.0
82@ = -1667.75
83@ = 20.27
84@ = 1715.609
85@ = -1657.2581
86@ = 20.271
gosub @DRUGS1_51610

:DRUGS1_10957
96@ = 1

:DRUGS1_10964
if 
  98@ == 0
goto_if_false @DRUGS1_11165
if 
  does_char_exist 54@
goto_if_false @DRUGS1_11165
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1738.42 {leftBottomY} -1651.0699 {leftBottomZ} 17.0 {rightTopX} 1698.7 {rightTopY} -1659.61 {rightTopZ} 22.0 {drawSphere} False
  has_char_been_damaged_by_char 54@ {handle} $scplayer
  is_char_dead 45@
goto_if_false @DRUGS1_11165
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_11158
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1729.928
82@ = -1667.75
83@ = 22.85
84@ = 1725.52
85@ = -1663.7371
86@ = 20.5
gosub @DRUGS1_51610

:DRUGS1_11158
98@ = 1

:DRUGS1_11165
if 
  7 > $smokehealth_s4
goto_if_false @DRUGS1_11821
if 
  102@ == 0
goto_if_false @DRUGS1_11241
if 
  is_char_dead 42@
goto_if_false @DRUGS1_11241
mark_char_as_no_longer_needed 42@
remove_blip 214@
124@ += 1
102@ = 1

:DRUGS1_11241
if 
  103@ == 0
goto_if_false @DRUGS1_11299
if 
  is_char_dead 43@
goto_if_false @DRUGS1_11299
mark_char_as_no_longer_needed 43@
remove_blip 215@
124@ += 1
103@ = 1

:DRUGS1_11299
if 
  104@ == 0
goto_if_false @DRUGS1_11357
if 
  is_char_dead 44@
goto_if_false @DRUGS1_11357
mark_char_as_no_longer_needed 44@
remove_blip 216@
124@ += 1
104@ = 1

:DRUGS1_11357
if 
  105@ == 0
goto_if_false @DRUGS1_11415
if 
  is_char_dead 45@
goto_if_false @DRUGS1_11415
mark_char_as_no_longer_needed 45@
remove_blip 217@
124@ += 1
105@ = 1

:DRUGS1_11415
if 
  106@ == 0
goto_if_false @DRUGS1_11473
if 
  is_char_dead 46@
goto_if_false @DRUGS1_11473
mark_char_as_no_longer_needed 46@
remove_blip 218@
124@ += 1
106@ = 1

:DRUGS1_11473
if 
  107@ == 0
goto_if_false @DRUGS1_11531
if 
  is_char_dead 47@
goto_if_false @DRUGS1_11531
mark_char_as_no_longer_needed 47@
remove_blip 219@
124@ += 1
107@ = 1

:DRUGS1_11531
if 
  108@ == 0
goto_if_false @DRUGS1_11589
if 
  is_char_dead 48@
goto_if_false @DRUGS1_11589
mark_char_as_no_longer_needed 48@
remove_blip 220@
124@ += 1
108@ = 1

:DRUGS1_11589
if 
  111@ == 0
goto_if_false @DRUGS1_11647
if 
  is_char_dead 51@
goto_if_false @DRUGS1_11647
mark_char_as_no_longer_needed 51@
remove_blip 223@
124@ += 1
111@ = 1

:DRUGS1_11647
if 
  112@ == 0
goto_if_false @DRUGS1_11705
if 
  is_char_dead 52@
goto_if_false @DRUGS1_11705
mark_char_as_no_longer_needed 52@
remove_blip 224@
124@ += 1
112@ = 1

:DRUGS1_11705
if 
  113@ == 0
goto_if_false @DRUGS1_11763
if 
  is_char_dead 53@
goto_if_false @DRUGS1_11763
mark_char_as_no_longer_needed 53@
remove_blip 225@
124@ += 1
113@ = 1

:DRUGS1_11763
if 
  114@ == 0
goto_if_false @DRUGS1_11821
if 
  is_char_dead 54@
goto_if_false @DRUGS1_11821
mark_char_as_no_longer_needed 54@
remove_blip 226@
124@ += 1
114@ = 1

:DRUGS1_11821
if 
  90@ == 11
goto_if_false @DRUGS1_12448
if 
  126@ == 0
goto_if_false @DRUGS1_12448
gosub @DRUGS1_51446
if 
  282@ == 0
goto_if_false @DRUGS1_11929
if 
  283@ == 0
goto_if_false @DRUGS1_11929
set_lvar_int_to_constant 239@ = 11121
set_lvar_text_label 240@s = 'SMO4_BO'
gosub @DRUGS1_51404

:DRUGS1_11929
if 
  282@ == 1
goto_if_false @DRUGS1_11994
if 
  283@ == 0
goto_if_false @DRUGS1_11994
set_lvar_int_to_constant 239@ = 11037
set_lvar_text_label 240@s = 'SMO4_EK'
gosub @DRUGS1_51404

:DRUGS1_11994
if 
  282@ == 2
goto_if_false @DRUGS1_12059
if 
  283@ == 0
goto_if_false @DRUGS1_12059
set_lvar_int_to_constant 239@ = 11128
set_lvar_text_label 240@s = 'SMO4_DA'
gosub @DRUGS1_51404

:DRUGS1_12059
if 
  282@ == 3
goto_if_false @DRUGS1_12124
if 
  283@ == 0
goto_if_false @DRUGS1_12124
set_lvar_int_to_constant 239@ = 11022
set_lvar_text_label 240@s = 'SMO4_BN'
gosub @DRUGS1_51404

:DRUGS1_12124
if 
  282@ == 4
goto_if_false @DRUGS1_12189
if 
  283@ == 0
goto_if_false @DRUGS1_12189
set_lvar_int_to_constant 239@ = 11023
set_lvar_text_label 240@s = 'SMO4_BP'
gosub @DRUGS1_51404

:DRUGS1_12189
if 
  282@ == 5
goto_if_false @DRUGS1_12254
if 
  283@ == 0
goto_if_false @DRUGS1_12254
set_lvar_int_to_constant 239@ = 11034
set_lvar_text_label 240@s = 'SMO4_EG'
gosub @DRUGS1_51404

:DRUGS1_12254
if 
  282@ == 6
goto_if_false @DRUGS1_12319
if 
  283@ == 0
goto_if_false @DRUGS1_12319
set_lvar_int_to_constant 239@ = 11036
set_lvar_text_label 240@s = 'SMO4_EJ'
gosub @DRUGS1_51404

:DRUGS1_12319
if 
  127@ == 0
goto_if_false @DRUGS1_12383
if or
  $smokehealth_s4 == 6
  124@ == 11
goto_if_false @DRUGS1_12383
283@ = 0
282@ = 12
127@ = 1

:DRUGS1_12383
if 
  282@ == 12
goto_if_false @DRUGS1_12448
if 
  283@ == 0
goto_if_false @DRUGS1_12448
set_lvar_int_to_constant 239@ = 11027
set_lvar_text_label 240@s = 'SMO4_DJ'
gosub @DRUGS1_51404

:DRUGS1_12448
if 
  125@ == 1
goto_if_false @DRUGS1_12491
print_help 'DGS1_63'
TIMERB = 0
125@ = 2

:DRUGS1_12491
if 
  125@ == 2
goto_if_false @DRUGS1_12553
if 
  TIMERB > 10000
goto_if_false @DRUGS1_12553
print_help 'DGS1_2'
TIMERB = 0
125@ = 3

:DRUGS1_12553
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13668
if 
  locate_char_on_foot_3d $big_smoke {x} 1704.45 {y} -1667.71 {z} 19.68 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS1_13668
if 
  locate_char_on_foot_3d $scplayer {x} 1700.49 {y} -1667.87 {z} 19.46 {xRadius} 8.5 {yRadius} 8.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS1_13668
if or
  $smokehealth_s4 == 6
  124@ == 11
goto_if_false @DRUGS1_13668
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
do_fade 500 {direction} Fade.Out

:DRUGS1_12712
if 
  get_fading_status 
goto_if_false @DRUGS1_12736
wait 0
goto @DRUGS1_12712

:DRUGS1_12736
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_12847
set_area_visible 0
set_char_area_visible $big_smoke {areaId} 0
clear_char_tasks_immediately $big_smoke
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $big_smoke {x} 1696.229 {y} -1669.1331 {z} 19.23
set_char_heading $big_smoke {heading} 86.7366
set_char_coordinates $scplayer {x} 1696.339 {y} -1666.897 {z} 19.2
set_char_heading $scplayer {heading} 85.4

:DRUGS1_12847
49@ = create_char PedType.Mission1 {modelId} 112 {x} 1682.6851 {y} -1671.516 {z} 19.24
set_char_heading 49@ {heading} 289.407
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_weapon_skill 49@ {skill} WeaponSkill.Pro
give_weapon_to_char 49@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 49@ {accuracy} 50
set_char_health 49@ {health} 150
214@ = add_blip_for_char 49@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 49@ {state} True
55@ = create_char PedType.Mission1 {modelId} 111 {x} 1676.5291 {y} -1676.516 {z} 20.47
set_char_heading 55@ {heading} 299.59
set_char_decision_maker 55@ {handleOrTemplate} 35@
give_weapon_to_char 55@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 55@ {accuracy} 30
set_char_health 55@ {health} 150
set_char_allowed_to_duck 55@ {state} False
215@ = add_blip_for_char 55@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_keep_task 55@ {state} True
56@ = create_char PedType.Mission1 {modelId} 111 {x} 1645.896 {y} -1667.693 {z} 20.472
set_char_heading 56@ {heading} 270.18
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_weapon_skill 56@ {skill} WeaponSkill.Pro
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 56@ {accuracy} 60
set_char_health 56@ {health} 150
216@ = add_blip_for_char 56@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 56@ {state} True
57@ = create_char PedType.Mission1 {modelId} 111 {x} 1663.022 {y} -1685.541 {z} 20.469
set_char_heading 57@ {heading} 301.304
set_char_decision_maker 57@ {handleOrTemplate} 35@
give_weapon_to_char 57@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 57@ {accuracy} 50
set_char_health 57@ {health} 125
217@ = add_blip_for_char 57@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_keep_task 57@ {state} True
58@ = create_char PedType.Mission1 {modelId} 111 {x} 1663.079 {y} -1676.61 {z} 20.468
set_char_heading 58@ {heading} 268.5
set_char_decision_maker 58@ {handleOrTemplate} 35@
give_weapon_to_char 58@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 58@ {accuracy} 60
set_char_max_health 58@ {maxHealth} 125
set_char_health 58@ {health} 125
set_char_allowed_to_duck 58@ {state} False
218@ = add_blip_for_char 58@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 58@ {state} True
59@ = create_char PedType.Mission1 {modelId} 111 {x} 1662.793 {y} -1670.124 {z} 20.463
set_char_heading 59@ {heading} 268.5
set_char_decision_maker 59@ {handleOrTemplate} 35@
give_weapon_to_char 59@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_only_damaged_by_player 59@ {state} True
set_char_accuracy 59@ {accuracy} 60
set_char_max_health 59@ {maxHealth} 150
set_char_health 59@ {health} 150
219@ = add_blip_for_char 59@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_keep_task 59@ {state} True
50@ = create_char PedType.Mission1 {modelId} 111 {x} 1698.51 {y} -1678.459 {z} 19.233
set_char_heading 50@ {heading} 99.699
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_weapon_skill 50@ {skill} WeaponSkill.Pro
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 50@ {accuracy} 30
set_char_health 50@ {health} 150
220@ = add_blip_for_char 50@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 50@ {state} True
task_toggle_duck $scplayer {state} True
wait 500
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13617
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS1_13617
set_camera_behind_player 
set_player_control $player1 {state} True
do_fade 750 {direction} Fade.In
124@ = 0
$smokehealth_s4 = 6
282@ = 0
283@ = 0
126@ = 1

:DRUGS1_13668
if 
  126@ == 1
goto_if_false @DRUGS1_15665
if 
  $smokehealth_s4 == 6
goto_if_false @DRUGS1_13861
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13861
set_char_accuracy $big_smoke {accuracy} 80
74@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1690.24 {y} -1669.363 {z} 21.46 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_13790
task_kill_char_on_foot -1 {target} 49@

:DRUGS1_13790
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_13813
task_kill_char_on_foot -1 {target} 55@

:DRUGS1_13813
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_13836
task_kill_char_on_foot -1 {target} 56@

:DRUGS1_13836
close_sequence_task 74@
perform_sequence_task $big_smoke {sequence} 74@
clear_sequence_task 74@
$smokehealth_s4 = 7

:DRUGS1_13861
if 
  $smokehealth_s4 == 7
goto_if_false @DRUGS1_14059
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14059
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14059
set_char_accuracy $big_smoke {accuracy} 60
75@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1669.8199 {y} -1671.917 {z} 21.43 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_13988
task_kill_char_on_foot -1 {target} 58@

:DRUGS1_13988
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_14011
task_kill_char_on_foot -1 {target} 56@

:DRUGS1_14011
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_14034
task_kill_char_on_foot -1 {target} 59@

:DRUGS1_14034
close_sequence_task 75@
perform_sequence_task $big_smoke {sequence} 75@
clear_sequence_task 75@
$smokehealth_s4 = 8

:DRUGS1_14059
if 
  $smokehealth_s4 == 8
goto_if_false @DRUGS1_14204
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14204
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14204
76@ = open_sequence_task 
task_toggle_duck -1 {state} True
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_14156
task_kill_char_on_foot -1 {target} 50@

:DRUGS1_14156
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_14179
task_kill_char_on_foot -1 {target} 57@

:DRUGS1_14179
close_sequence_task 76@
perform_sequence_task $big_smoke {sequence} 76@
clear_sequence_task 76@
$smokehealth_s4 = 9

:DRUGS1_14204
if 
  $smokehealth_s4 == 9
goto_if_false @DRUGS1_14295
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14295
77@ = get_script_task_status $big_smoke {taskId} 1560
if or
  is_int_lvar_equal_to_constant 77@ == 7
  124@ == 7
goto_if_false @DRUGS1_14295
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14295
if 
  124@ == 7
goto_if_false @DRUGS1_14334
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14334
if 
  100@ == 0
goto_if_false @DRUGS1_14618
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14618
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_14423
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14423
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_14423
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_14462
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_14462
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_14517
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14517
set_lvar_int_to_lvar_int 79@ = 57@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_14517
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_14556
set_lvar_int_to_lvar_int 79@ = 58@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_14556
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_14611
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14611
set_lvar_int_to_lvar_int 79@ = 59@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51747

:DRUGS1_14611
100@ = 1

:DRUGS1_14618
if 
  101@ == 0
goto_if_false @DRUGS1_14797
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14797
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_14721
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1669.863
82@ = -1679.125
83@ = 20.47
gosub @DRUGS1_51555

:DRUGS1_14721
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_14790
set_lvar_int_to_lvar_int 79@ = 56@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1675.149
82@ = -1667.818
83@ = 20.47
gosub @DRUGS1_51555

:DRUGS1_14790
101@ = 1

:DRUGS1_14797
if 
  282@ == 0
goto_if_false @DRUGS1_14862
if 
  283@ == 0
goto_if_false @DRUGS1_14862
set_lvar_int_to_constant 239@ = 11029
set_lvar_text_label 240@s = 'SMO4_EB'
gosub @DRUGS1_51404

:DRUGS1_14862
if 
  282@ == 1
goto_if_false @DRUGS1_14927
if 
  283@ == 0
goto_if_false @DRUGS1_14927
set_lvar_int_to_constant 239@ = 11021
set_lvar_text_label 240@s = 'SMO4_BM'
gosub @DRUGS1_51404

:DRUGS1_14927
if 
  282@ == 2
goto_if_false @DRUGS1_14992
if 
  283@ == 0
goto_if_false @DRUGS1_14992
set_lvar_int_to_constant 239@ = 11133
set_lvar_text_label 240@s = 'SMO4_DG'
gosub @DRUGS1_51404

:DRUGS1_14992
if 
  282@ == 3
goto_if_false @DRUGS1_15057
if 
  283@ == 0
goto_if_false @DRUGS1_15057
set_lvar_int_to_constant 239@ = 11016
set_lvar_text_label 240@s = 'SMO4_BG'
gosub @DRUGS1_51404

:DRUGS1_15057
if 
  282@ == 4
goto_if_false @DRUGS1_15122
if 
  283@ == 0
goto_if_false @DRUGS1_15122
set_lvar_int_to_constant 239@ = 11031
set_lvar_text_label 240@s = 'SMO4_ED'
gosub @DRUGS1_51404

:DRUGS1_15122
if 
  282@ == 5
goto_if_false @DRUGS1_15187
if 
  283@ == 0
goto_if_false @DRUGS1_15187
set_lvar_int_to_constant 239@ = 11033
set_lvar_text_label 240@s = 'SMO4_EF'
gosub @DRUGS1_51404

:DRUGS1_15187
if 
  282@ == 6
goto_if_false @DRUGS1_15252
if 
  283@ == 0
goto_if_false @DRUGS1_15252
set_lvar_int_to_constant 239@ = 11035
set_lvar_text_label 240@s = 'SMO4_EH'
gosub @DRUGS1_51404

:DRUGS1_15252
gosub @DRUGS1_51446
if 
  109@ == 0
goto_if_false @DRUGS1_15317
if 
  is_char_dead 49@
goto_if_false @DRUGS1_15317
mark_char_as_no_longer_needed 49@
remove_blip 214@
124@ += 1
109@ = 1

:DRUGS1_15317
if 
  115@ == 0
goto_if_false @DRUGS1_15375
if 
  is_char_dead 55@
goto_if_false @DRUGS1_15375
mark_char_as_no_longer_needed 55@
remove_blip 215@
124@ += 1
115@ = 1

:DRUGS1_15375
if 
  116@ == 0
goto_if_false @DRUGS1_15433
if 
  is_char_dead 56@
goto_if_false @DRUGS1_15433
mark_char_as_no_longer_needed 56@
remove_blip 216@
124@ += 1
116@ = 1

:DRUGS1_15433
if 
  117@ == 0
goto_if_false @DRUGS1_15491
if 
  is_char_dead 57@
goto_if_false @DRUGS1_15491
mark_char_as_no_longer_needed 57@
remove_blip 217@
124@ += 1
117@ = 1

:DRUGS1_15491
if 
  118@ == 0
goto_if_false @DRUGS1_15549
if 
  is_char_dead 58@
goto_if_false @DRUGS1_15549
mark_char_as_no_longer_needed 58@
remove_blip 218@
124@ += 1
118@ = 1

:DRUGS1_15549
if 
  119@ == 0
goto_if_false @DRUGS1_15607
if 
  is_char_dead 59@
goto_if_false @DRUGS1_15607
mark_char_as_no_longer_needed 59@
remove_blip 219@
124@ += 1
119@ = 1

:DRUGS1_15607
if 
  110@ == 0
goto_if_false @DRUGS1_15665
if 
  is_char_dead 50@
goto_if_false @DRUGS1_15665
mark_char_as_no_longer_needed 50@
remove_blip 220@
124@ += 1
110@ = 1

:DRUGS1_15665
if 
  284@ == 1
goto_if_false @DRUGS1_15709
if 
  TIMERB > 2000
goto_if_false @DRUGS1_15709
284@ = 2

:DRUGS1_15709
if 
  284@ == 2
goto_if_false @DRUGS1_17003
if 
  90@ == 12
goto_if_false @DRUGS1_16204
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16204
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_player_enter_car_button $player1 {enabled} False
clear_area 1672.321 {y} -1697.259 {z} 200.0 {radius} 200.0 {clearParticles} False
set_fixed_camera_position 1672.321 {y} -1697.259 {z} 20.6216 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.069 {y} -1696.5 {z} 21.2228 {switchStyle} SwitchType.JumpCut
clear_onscreen_counter $s2_random_int
remove_blip 89@
clear_char_tasks_immediately $big_smoke
clear_char_tasks_immediately $scplayer
set_char_coordinates $big_smoke {x} 1668.756 {y} -1689.291 {z} 20.869
set_char_heading $big_smoke {heading} 203.5
set_char_coordinates $scplayer {x} 1667.26 {y} -1683.5 {z} 20.869
set_char_heading $scplayer {heading} 203.5
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 112
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11041
request_car_recording 250
request_car_recording 251
request_car_recording 252
request_model 581
wait 100
load_all_models_now 

:DRUGS1_15987
if or
  not has_car_recording_been_loaded 250
  not has_car_recording_been_loaded 251
  not has_car_recording_been_loaded 252
  not has_model_loaded 581
goto_if_false @DRUGS1_16029
wait 0
goto @DRUGS1_15987

:DRUGS1_16029
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_16055
wait 0
goto @DRUGS1_16029

:DRUGS1_16055
delete_char 63@
clear_area 1668.67 {y} -1694.6801 {z} 19.97 {radius} 200.0 {clearParticles} False
custom_plate_for_next_car 581 {text} "_IMY_AK"
161@ = create_car 581 {x} 1671.791 {y} -1695.106 {z} 19.48
set_car_heading 161@ {heading} 117.5347
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_interpolation_parameters 0.0 {time} 3000
set_can_burst_car_tyres 161@ {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_health 161@ {health} 2000
set_can_burst_car_tyres 161@ {state} False
TIMERA = 0
90@ = 13

:DRUGS1_16204
if 
  90@ == 13
goto_if_false @DRUGS1_16319
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16319
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16319
set_fixed_camera_position 1672.321 {y} -1697.259 {z} 20.6216 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.069 {y} -1696.5 {z} 20.6212 {switchStyle} SwitchType.Interpolation
TIMERA = 0
90@ = 14

:DRUGS1_16319
if 
  90@ == 14
goto_if_false @DRUGS1_16450
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16450
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16450
if 
  TIMERA > 900
goto_if_false @DRUGS1_16450
task_enter_car_as_driver $big_smoke {vehicle} 161@ {time} 5000
task_enter_car_as_passenger $scplayer {vehicle} 161@ {time} 5000 {seat} SeatId.BikeRear
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_EO' {time} 5000 {flag} 1
127@ = 2
90@ = 15

:DRUGS1_16450
if 
  90@ == 15
goto_if_false @DRUGS1_16659
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16659
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16659
if 
  is_char_sitting_in_car $big_smoke {vehicle} 161@
goto_if_false @DRUGS1_16659
set_fixed_camera_position 1672.983 {y} -1692.0909 {z} 19.8891 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.5699 {y} -1692.999 {z} 19.9589 {switchStyle} SwitchType.JumpCut
point_camera_at_car 161@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1674.371 {y} -1695.097 {z} 19.814
set_char_heading $scplayer {heading} 90.0
task_enter_car_as_passenger $scplayer {vehicle} 161@ {time} 5000 {seat} SeatId.BikeRear
task_look_at_char $big_smoke {target} $scplayer {time} 2000
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} True
set_char_can_be_knocked_off_bike $big_smoke {stayOnBike} True
90@ = 16

:DRUGS1_16659
if 
  90@ == 16
goto_if_false @DRUGS1_16759
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16759
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16759
if 
  is_char_sitting_in_car $scplayer {vehicle} 161@
goto_if_false @DRUGS1_16759
set_radio_channel RadioChannel.RadioX
clear_look_at $big_smoke
start_playback_recorded_car 161@ {path} 250
TIMERA = 0
90@ = 17

:DRUGS1_16759
if 
  90@ == 17
goto_if_false @DRUGS1_16952
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16952
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16952
if 
  is_char_sitting_in_car $scplayer {vehicle} 161@
goto_if_false @DRUGS1_16952
if 
  TIMERA > 1600
goto_if_false @DRUGS1_16952
set_fixed_camera_position 1623.3311 {y} -1705.448 {z} 19.7991 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1624.3311 {y} -1705.475 {z} 19.7991 {switchStyle} SwitchType.JumpCut
stop_playback_recorded_car 161@
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16931
start_playback_recorded_car 161@ {path} 251

:DRUGS1_16931
TIMERA = 0
284@ = 3
90@ = 18

:DRUGS1_16952
if 
  127@ == 2
goto_if_false @DRUGS1_17003
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_17003
clear_this_print 'SMO4_EO'
127@ = 3

:DRUGS1_17003
if or
  243@ == 0
  243@ == 1
  243@ == 2
  243@ == 3
goto_if_false @DRUGS1_17225
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_17225
if 
  280@ <= 3
goto_if_false @DRUGS1_17225
$smokeshoot_s4flag = get_car_health 161@
$smokeshoot_s4flag -= 1000
if 
  0 >= $smokeshoot_s4flag
goto_if_false @DRUGS1_17218
$smokeshoot_s4flag = 0
set_car_proofs 161@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_17183
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_die $big_smoke

:DRUGS1_17183
explode_car 161@
print_now 'DGS1_60' {time} 7000 {flag} 1
goto @DRUGS1_51829
goto @DRUGS1_17225

:DRUGS1_17218
$smokeshoot_s4flag /= 10

:DRUGS1_17225
if 
  243@ == 0
goto_if_false @DRUGS1_23355
if 
  90@ == 18
goto_if_false @DRUGS1_18562
if 
  TIMERA > 700
goto_if_false @DRUGS1_18562
$z = 19.7991
request_car_recording 253
request_car_recording 254
request_car_recording 255
request_car_recording 256
request_car_recording 257
request_model 560
request_model #KMB_SKIP
request_model 516
request_model 437
request_model 443
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11087
load_all_models_now 

:DRUGS1_17353
if or
  not has_car_recording_been_loaded 253
  not has_car_recording_been_loaded 254
  not has_car_recording_been_loaded 255
  not has_car_recording_been_loaded 256
  not has_car_recording_been_loaded 257
goto_if_false @DRUGS1_17400
wait 0
goto @DRUGS1_17353

:DRUGS1_17400
if or
  not has_model_loaded 560
  not has_model_loaded #KMB_SKIP
  not has_model_loaded 516
  not has_model_loaded 437
  not has_model_loaded 443
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_17451
wait 0
goto @DRUGS1_17400

:DRUGS1_17451
162@ = create_object #KMB_SKIP {x} 1563.603 {y} -1437.1071 {z} 12.347
set_object_heading 162@ {heading} 90.4568
freeze_object_position 162@ {state} True
163@ = create_car 437 {x} 1552.209 {y} -1437.3 {z} 12.3828
set_car_heading 163@ {heading} 90.2081
freeze_car_position 163@ {state} True
164@ = create_car 437 {x} 1539.759 {y} -1437.34 {z} 12.3906
set_car_heading 164@ {heading} 90.2081
freeze_car_position 164@ {state} True
165@ = create_car 516 {x} 1680.473 {y} -1589.874 {z} 13.23
set_car_heading 165@ {heading} 87.883
change_car_colour 165@ {color1} 3 {color2} 3
177@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 177@ {handleOrTemplate} 35@
166@ = create_car 516 {x} 1594.553 {y} -1595.0389 {z} 13.243
set_car_heading 166@ {heading} 271.189
change_car_colour 166@ {color1} 8 {color2} 8
178@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 178@ {handleOrTemplate} 35@
167@ = create_car 516 {x} 1655.527 {y} -1550.667 {z} 13.226
set_car_heading 167@ {heading} 180.735
change_car_colour 167@ {color1} 51 {color2} 51
179@ = create_char_inside_car 167@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 179@ {handleOrTemplate} 35@
168@ = create_car 516 {x} 1655.391 {y} -1463.511 {z} 13.22
set_car_heading 168@ {heading} 180.735
change_car_colour 168@ {color1} 4 {color2} 4
set_car_heavy 168@ {state} True
180@ = create_char_inside_car 168@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 180@ {handleOrTemplate} 35@
169@ = create_car 516 {x} 1660.788 {y} -1563.222 {z} 13.23
set_car_heading 169@ {heading} 358.832
change_car_colour 169@ {color1} 73 {color2} 73
181@ = create_char_inside_car 169@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 181@ {handleOrTemplate} 35@
170@ = create_car 516 {x} 1660.594 {y} -1522.353 {z} 13.225
set_car_heading 170@ {heading} 358.832
change_car_colour 170@ {color1} 99 {color2} 99
182@ = create_char_inside_car 170@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 182@ {handleOrTemplate} 35@
171@ = create_car 516 {x} 1693.236 {y} -1589.973 {z} 13.224
set_car_heading 171@ {heading} 91.298
change_car_colour 171@ {color1} 2 {color2} 2
set_car_heavy 171@ {state} True
183@ = create_char_inside_car 171@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 183@ {handleOrTemplate} 35@
188@ = create_car 443 {x} 1590.891 {y} -1590.689 {z} 13.09
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 273.516
set_car_health 188@ {health} 3000
set_car_only_damaged_by_player 188@ {state} True
42@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 42@ {state} False
209@ = add_blip_for_car 188@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
change_blip_scale 209@ {size} 2
set_car_proofs 188@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
275@ = 1
TIMERA = 0

:DRUGS1_18152
if 
  $z > 13.8442
goto_if_false @DRUGS1_18555
wait 0
sub_timed_val_from_float_var $z -=@ 0.02
set_fixed_camera_position 1623.3311 {y} -1705.448 {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1624.3311 {y} -1705.475 {z} $z {switchStyle} SwitchType.JumpCut
if 
  271@ == 0
goto_if_false @DRUGS1_18548
if 
  TIMERA > 1000
goto_if_false @DRUGS1_18548
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_18548
if 
  not is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_18548
189@ = create_car 581 {x} 1665.25 {y} -1716.98 {z} 12.75
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 84.0
set_car_health 189@ {health} 800
43@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} True
44@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
247@ = 1
260@ = 1
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_18507
start_playback_recorded_car 161@ {path} 252
set_playback_speed 161@ {speed} 0.9

:DRUGS1_18507
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_18541
start_playback_recorded_car 189@ {path} 256
set_playback_speed 189@ {speed} 0.9

:DRUGS1_18541
271@ = 1

:DRUGS1_18548
goto @DRUGS1_18152

:DRUGS1_18555
90@ = 19

:DRUGS1_18562
if 
  90@ == 19
goto_if_false @DRUGS1_18964
if 
  TIMERA > 8500
goto_if_false @DRUGS1_18964
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_18964
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_18964
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 95.5 {headingRange} 200.0
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
display_onscreen_counter_with_string $smokeshoot_s4flag {display} CounterDisplay.Bar {text} 'DGS1_59'
288@ += 1
if 
  288@ > 1
goto_if_false @DRUGS1_18763
289@ = 30
goto @DRUGS1_18770

:DRUGS1_18763
289@ = 92

:DRUGS1_18770
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_18835
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_18835
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_18887
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_18887
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_help 'DGS1_64'
282@ = 0
283@ = 0
TIMERB = 0
122@ = 200
90@ = 20

:DRUGS1_18964
if 
  122@ == 200
goto_if_false @DRUGS1_19004
if 
  is_help_message_being_displayed 
goto_if_false @DRUGS1_19004
122@ = 201

:DRUGS1_19004
if 
  122@ == 201
goto_if_false @DRUGS1_19055
if 
  not is_help_message_being_displayed 
goto_if_false @DRUGS1_19055
print_help 'DGS1_65'
122@ = 202

:DRUGS1_19055
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_23355
if 
  242@ == 0
goto_if_false @DRUGS1_19347
if 
  locate_car_2d 161@ {x} 1620.59 {y} -1612.14 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS1_19347
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_19190
car_goto_coordinates 165@ {x} 1571.424 {y} -1590.02 {z} 13.23
set_car_cruise_speed 165@ {maxSpeed} 13.5
set_car_forward_speed 165@ {forwardSpeed} 13.5
set_car_driving_style 165@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19190
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_19253
car_goto_coordinates 166@ {x} 1681.473 {y} -1595.059 {z} 13.22
set_car_cruise_speed 166@ {maxSpeed} 13.5
set_car_forward_speed 166@ {forwardSpeed} 4.5
set_car_driving_style 166@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19253
if 
  not is_car_dead 171@
goto_if_false @DRUGS1_19306
car_goto_coordinates 171@ {x} 1582.411 {y} -1590.115 {z} 13.228
set_car_cruise_speed 171@ {maxSpeed} 9.0
set_car_driving_style 171@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19306
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_19340
start_playback_recorded_car 188@ {path} 255
set_playback_speed 188@ {speed} 0.9

:DRUGS1_19340
242@ = 1

:DRUGS1_19347
if 
  242@ == 1
goto_if_false @DRUGS1_19652
if 
  locate_car_2d 161@ {x} 1654.1 {y} -1589.48 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_19652
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_19456
car_goto_coordinates 167@ {x} 1655.839 {y} -1576.842 {z} 13.226
set_car_cruise_speed 167@ {maxSpeed} 9.0
set_car_driving_style 167@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19456
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_19519
car_goto_coordinates 168@ {x} 1655.593 {y} -1559.511 {z} 13.227
set_car_cruise_speed 168@ {maxSpeed} 9.0
set_car_forward_speed 168@ {forwardSpeed} 9.0
set_car_driving_style 168@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19519
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_19582
car_goto_coordinates 169@ {x} 1702.0 {y} -1444.0 {z} 13.0
set_car_cruise_speed 169@ {maxSpeed} 9.0
set_car_forward_speed 169@ {forwardSpeed} 10.8
set_car_driving_style 169@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19582
if 
  not is_car_dead 170@
goto_if_false @DRUGS1_19645
car_goto_coordinates 170@ {x} 1702.0 {y} -1444.0 {z} 13.0
set_car_cruise_speed 170@ {maxSpeed} 9.0
set_car_forward_speed 170@ {forwardSpeed} 9.0
set_car_driving_style 170@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19645
242@ = 2

:DRUGS1_19652
if 
  242@ == 2
goto_if_false @DRUGS1_20019
if 
  locate_car_2d 161@ {x} 1657.5601 {y} -1537.29 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_20019
194@ = create_car 581 {x} 1702.127 {y} -1496.87 {z} 12.95
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 26.5
set_car_health 194@ {health} 800
49@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 49@ {state} True
set_char_health 49@ {health} 10
50@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_health 50@ {health} 10
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
248@ = 1
261@ = 1
172@ = create_car 516 {x} 1622.005 {y} -1443.498 {z} 13.229
set_car_heading 172@ {heading} 266.928
change_car_colour 172@ {color1} 115 {color2} 115
set_car_heavy 172@ {state} True
184@ = create_char_inside_car 172@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 184@ {handleOrTemplate} 35@
173@ = create_car 516 {x} 1536.288 {y} -1443.049 {z} 13.224
set_car_heading 173@ {heading} 269.939
change_car_colour 173@ {color1} 122 {color2} 122
set_car_heavy 173@ {state} True
185@ = create_char_inside_car 173@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 185@ {handleOrTemplate} 35@
242@ = 3

:DRUGS1_20019
if 
  242@ == 3
goto_if_false @DRUGS1_20372
if 
  locate_car_2d 161@ {x} 1657.9399 {y} -1468.9301 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_20372
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_20099
start_playback_recorded_car 194@ {path} 257

:DRUGS1_20099
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_20182
if 
  3 > 288@
goto_if_false @DRUGS1_20182
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_20182
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_20234
task_drive_by 50@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_20234
delete_car 165@
delete_car 166@
delete_car 171@
if 
  not is_car_dead 172@
goto_if_false @DRUGS1_20302
car_goto_coordinates 172@ {x} 1720.037 {y} -1444.137 {z} 13.222
set_car_cruise_speed 172@ {maxSpeed} 9.0
set_car_driving_style 172@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_20302
if 
  not is_car_dead 173@
goto_if_false @DRUGS1_20365
car_goto_coordinates 173@ {x} 1654.817 {y} -1492.993 {z} 13.22
set_car_cruise_speed 173@ {maxSpeed} 13.5
set_car_forward_speed 173@ {forwardSpeed} 20.0
set_car_driving_style 173@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_20365
242@ = 4

:DRUGS1_20372
if 
  242@ == 4
goto_if_false @DRUGS1_20435
if 
  locate_car_2d 161@ {x} 1631.77 {y} -1441.3101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_20435
242@ = 5

:DRUGS1_20435
if 
  242@ == 5
goto_if_false @DRUGS1_20597
if 
  locate_car_2d 161@ {x} 1545.6801 {y} -1437.35 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_20597
175@ = create_car 516 {x} 1394.751 {y} -1427.224 {z} 13.24
set_car_heading 175@ {heading} 184.525
change_car_colour 175@ {color1} 99 {color2} 99
car_goto_coordinates 175@ {x} 1441.028 {y} -1443.271 {z} 13.234
set_car_cruise_speed 175@ {maxSpeed} 13.5
set_car_driving_style 175@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
181@ = create_char_inside_car 175@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 181@ {handleOrTemplate} 35@
242@ = 6

:DRUGS1_20597
if 
  242@ == 6
goto_if_false @DRUGS1_21433
if 
  locate_car_2d 161@ {x} 1508.7 {y} -1440.86 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_21433
delete_car 172@
delete_car 167@
delete_car 168@
176@ = create_car 437 {x} 1457.689 {y} -1371.728 {z} 13.235
set_car_heading 176@ {heading} 177.712
start_playback_recorded_car 176@ {path} 253
set_playback_speed 176@ {speed} 0.9
190@ = create_car 560 {x} 1374.507 {y} -1394.312 {z} 13.272
set_car_health 190@ {health} 400
set_car_heading 190@ {heading} 193.922
52@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 52@ {handleOrTemplate} 35@
task_drive_by 52@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 70
230@ = add_blip_for_car 190@
change_blip_display 230@ {display} BlipDisplay.BlipOnly
change_blip_scale 230@ {size} 2
191@ = create_car 560 {x} 1374.577 {y} -1401.141 {z} 13.102
set_car_heading 191@ {heading} 349.825
change_car_colour 191@ {color1} 0 {color2} 0
set_car_health 191@ {health} 500
192@ = create_car 560 {x} 1374.3621 {y} -1407.8831 {z} 13.239
set_car_heading 192@ {heading} 194.852
set_car_health 192@ {health} 500
228@ = add_blip_for_car 192@
change_blip_display 228@ {display} BlipDisplay.BlipOnly
change_blip_scale 228@ {size} 2
193@ = create_car 560 {x} 1401.058 {y} -1430.891 {z} 12.3905
set_car_heading 193@ {heading} 10.385
set_car_health 193@ {health} 500
229@ = add_blip_for_car 193@
change_blip_display 229@ {display} BlipDisplay.BlipOnly
change_blip_scale 229@ {size} 2
open_car_door 193@ {door} CarDoor.LeftFrontDoor
open_car_door 193@ {door} CarDoor.RightFrontDoor
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1399.464 {y} -1431.604 {z} 12.3905
set_char_decision_maker 53@ {handleOrTemplate} 35@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 53@ {health} 100
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791
235@ = add_blip_for_char 53@
change_blip_display 235@ {display} BlipDisplay.BlipOnly
change_blip_scale 235@ {size} 2
61@ = create_char PedType.Mission1 {modelId} 111 {x} 1401.4659 {y} -1427.389 {z} 12.3905
set_char_decision_maker 61@ {handleOrTemplate} 35@
give_weapon_to_char 61@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 61@ {health} 100
set_lvar_int_to_lvar_int 79@ = 61@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791
236@ = add_blip_for_char 61@
change_blip_display 236@ {display} BlipDisplay.BlipOnly
change_blip_scale 236@ {size} 2
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1374.9919 {y} -1397.639 {z} 12.438
set_char_decision_maker 54@ {handleOrTemplate} 35@
give_weapon_to_char 54@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 54@ {health} 100
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
55@ = create_char PedType.Mission1 {modelId} 111 {x} 1374.543 {y} -1404.678 {z} 12.425
set_char_decision_maker 55@ {handleOrTemplate} 35@
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 55@ {health} 100
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747
227@ = add_blip_for_char 55@
change_blip_display 227@ {display} BlipDisplay.BlipOnly
change_blip_scale 227@ {size} 2
242@ = 7

:DRUGS1_21433
if 
  242@ == 7
goto_if_false @DRUGS1_21731
if 
  not is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_21731
if 
  locate_car_2d 161@ {x} 1395.844 {y} -1408.105 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_21731
freeze_car_position 161@ {state} True
remove_blip 209@
stop_playback_recorded_car 189@
remove_blip 214@
stop_playback_recorded_car 194@
remove_blip 215@
mark_char_as_no_longer_needed 177@
mark_char_as_no_longer_needed 178@
mark_char_as_no_longer_needed 179@
mark_char_as_no_longer_needed 180@
mark_char_as_no_longer_needed 181@
mark_char_as_no_longer_needed 182@
mark_char_as_no_longer_needed 183@
mark_char_as_no_longer_needed 184@
mark_char_as_no_longer_needed 185@
mark_car_as_no_longer_needed 165@
mark_car_as_no_longer_needed 166@
mark_car_as_no_longer_needed 167@
mark_car_as_no_longer_needed 168@
mark_car_as_no_longer_needed 171@
mark_car_as_no_longer_needed 172@
mark_car_as_no_longer_needed 175@
mark_car_as_no_longer_needed 176@
delete_car 169@
delete_car 170@
delete_car 173@
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed 516
delete_object 162@
delete_car 163@
delete_car 164@
mark_car_as_no_longer_needed 176@
delete_car 194@
delete_char 49@
delete_char 50@
delete_car 189@
delete_car 188@
delete_char 42@
delete_char 43@
delete_char 44@
mark_car_as_no_longer_needed 175@
TIMERA = 0
242@ = 8

:DRUGS1_21731
if 
  242@ > 7
goto_if_false @DRUGS1_21838
if 
  244@ == 0
goto_if_false @DRUGS1_21838
if 
  not is_point_on_screen 1400.41 {y} -1447.12 {z} 12.3 {radius} 10.0
goto_if_false @DRUGS1_21838
clear_area 1400.41 {y} -1447.12 {z} 12.3 {radius} 50.0 {clearParticles} False
244@ = 1
  9 > 242@

:DRUGS1_21838
if 
  242@ == 8
goto_if_false @DRUGS1_21918
request_car_recording 258
request_car_recording 259
request_car_recording 260
request_car_recording 261
request_car_recording 262
request_car_recording 263
request_car_recording 264
request_car_recording 265
request_car_recording 266
request_car_recording 267
request_car_recording 268
242@ = 9

:DRUGS1_21918
if 
  242@ == 9
goto_if_false @DRUGS1_22145
if 
  TIMERA > 10000
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 258
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 259
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 260
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 261
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 262
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 263
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 264
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 265
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 266
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 267
goto_if_false @DRUGS1_22145
if 
  has_car_recording_been_loaded 268
goto_if_false @DRUGS1_22145
243@ = 1
242@ = 10

:DRUGS1_22145
if 
  275@ == 1
goto_if_false @DRUGS1_22191
if 
  is_car_dead 188@
goto_if_false @DRUGS1_22191
stop_playback_recorded_car 188@
275@ = 2

:DRUGS1_22191
if 
  247@ == 1
goto_if_false @DRUGS1_22439
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_22439
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_22248
goto @DRUGS1_22439

:DRUGS1_22248
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_22397
if 
  is_char_in_car 44@ {vehicle} 189@
goto_if_false @DRUGS1_22390
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_22390
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 44@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 44@ {vehicle} 189@
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_22390
goto @DRUGS1_22439

:DRUGS1_22397
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_22439
if 
  247@ == 2
goto_if_false @DRUGS1_22531
if 
  is_char_dead 44@
goto_if_false @DRUGS1_22531
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_22524
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_22524
247@ = 3

:DRUGS1_22531
if 
  260@ == 1
goto_if_false @DRUGS1_22618
if 
  is_char_dead 43@
goto_if_false @DRUGS1_22618
if or
  is_char_dead 44@
  is_car_dead 189@
goto_if_false @DRUGS1_22618
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
260@ = 2

:DRUGS1_22618
if 
  248@ == 1
goto_if_false @DRUGS1_22866
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_22866
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_22675
goto @DRUGS1_22866

:DRUGS1_22675
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_22824
if 
  is_char_in_car 50@ {vehicle} 194@
goto_if_false @DRUGS1_22817
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_22817
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 50@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 50@ {vehicle} 194@
task_drive_by 50@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_22817
goto @DRUGS1_22866

:DRUGS1_22824
set_car_forward_speed 194@ {forwardSpeed} 15.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_22866
if 
  248@ == 2
goto_if_false @DRUGS1_22958
if 
  is_char_dead 50@
goto_if_false @DRUGS1_22958
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_22951
set_car_forward_speed 194@ {forwardSpeed} 15.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_22951
248@ = 3

:DRUGS1_22958
if 
  261@ == 1
goto_if_false @DRUGS1_23045
if 
  is_char_dead 49@
goto_if_false @DRUGS1_23045
if or
  is_char_dead 50@
  is_car_dead 194@
goto_if_false @DRUGS1_23045
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
261@ = 2

:DRUGS1_23045
if 
  is_char_dead 54@
goto_if_false @DRUGS1_23082
if 
  does_blip_exist 226@
goto_if_false @DRUGS1_23082
remove_blip 226@

:DRUGS1_23082
if 
  is_char_dead 55@
goto_if_false @DRUGS1_23119
if 
  does_blip_exist 227@
goto_if_false @DRUGS1_23119
remove_blip 227@

:DRUGS1_23119
if 
  is_car_dead 190@
goto_if_false @DRUGS1_23156
if 
  does_blip_exist 230@
goto_if_false @DRUGS1_23156
remove_blip 230@

:DRUGS1_23156
if 
  is_car_dead 192@
goto_if_false @DRUGS1_23193
if 
  does_blip_exist 228@
goto_if_false @DRUGS1_23193
remove_blip 228@

:DRUGS1_23193
if 
  286@ == 0
goto_if_false @DRUGS1_23274
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_23274
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_23274
if 
  has_car_been_damaged_by_car 169@ {other} 188@
goto_if_false @DRUGS1_23274
explode_car 169@
286@ = 1

:DRUGS1_23274
if 
  287@ == 0
goto_if_false @DRUGS1_23355
if 
  not is_car_dead 170@
goto_if_false @DRUGS1_23355
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_23355
if 
  has_car_been_damaged_by_car 170@ {other} 188@
goto_if_false @DRUGS1_23355
explode_car 170@
287@ = 1

:DRUGS1_23355
if or
  90@ == 20
  243@ == 1
goto_if_false @DRUGS1_25358
if 
  3 > 245@
goto_if_false @DRUGS1_25358
if 
  282@ == 0
goto_if_false @DRUGS1_23463
if 
  283@ == 0
goto_if_false @DRUGS1_23463
set_lvar_int_to_constant 239@ = 11088
set_lvar_text_label 240@s = 'SMO4_FB'
gosub @DRUGS1_51404

:DRUGS1_23463
if 
  282@ == 1
goto_if_false @DRUGS1_23528
if 
  283@ == 0
goto_if_false @DRUGS1_23528
set_lvar_int_to_constant 239@ = 11045
set_lvar_text_label 240@s = 'SMO4_ES'
gosub @DRUGS1_51404

:DRUGS1_23528
if 
  285@ == 0
goto_if_false @DRUGS1_23591
if 
  locate_car_2d 161@ {x} 1659.49 {y} -1580.97 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @DRUGS1_23591
285@ = 1

:DRUGS1_23591
if 
  282@ == 2
goto_if_false @DRUGS1_23674
if 
  283@ == 0
goto_if_false @DRUGS1_23674
if 
  285@ == 1
goto_if_false @DRUGS1_23674
set_lvar_int_to_constant 239@ = 11090
set_lvar_text_label 240@s = 'SMO4_FD'
gosub @DRUGS1_51404

:DRUGS1_23674
if 
  282@ == 3
goto_if_false @DRUGS1_23739
if 
  283@ == 0
goto_if_false @DRUGS1_23739
set_lvar_int_to_constant 239@ = 11046
set_lvar_text_label 240@s = 'SMO4_FE'
gosub @DRUGS1_51404

:DRUGS1_23739
if 
  282@ == 4
goto_if_false @DRUGS1_23804
if 
  283@ == 0
goto_if_false @DRUGS1_23804
set_lvar_int_to_constant 239@ = 11047
set_lvar_text_label 240@s = 'SMO4_FF'
gosub @DRUGS1_51404

:DRUGS1_23804
if 
  282@ == 5
goto_if_false @DRUGS1_23869
if 
  283@ == 0
goto_if_false @DRUGS1_23869
set_lvar_int_to_constant 239@ = 11048
set_lvar_text_label 240@s = 'SMO4_FG'
gosub @DRUGS1_51404

:DRUGS1_23869
if 
  285@ == 1
goto_if_false @DRUGS1_23932
if 
  locate_car_2d 161@ {x} 1638.05 {y} -1440.64 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DRUGS1_23932
285@ = 2

:DRUGS1_23932
if 
  282@ == 6
goto_if_false @DRUGS1_24015
if 
  283@ == 0
goto_if_false @DRUGS1_24015
if 
  285@ == 2
goto_if_false @DRUGS1_24015
set_lvar_int_to_constant 239@ = 11089
set_lvar_text_label 240@s = 'SMO4_FC'
gosub @DRUGS1_51404

:DRUGS1_24015
if 
  285@ == 2
goto_if_false @DRUGS1_24078
if 
  locate_car_2d 161@ {x} 1579.33 {y} -1438.05 {xRadius} 55.0 {yRadius} 55.0 {drawSphere} False
goto_if_false @DRUGS1_24078
285@ = 3

:DRUGS1_24078
if 
  282@ == 7
goto_if_false @DRUGS1_24161
if 
  283@ == 0
goto_if_false @DRUGS1_24161
if 
  285@ == 3
goto_if_false @DRUGS1_24161
set_lvar_int_to_constant 239@ = 11050
set_lvar_text_label 240@s = 'SMO4_FJ'
gosub @DRUGS1_51404

:DRUGS1_24161
if 
  282@ == 8
goto_if_false @DRUGS1_24226
if 
  283@ == 0
goto_if_false @DRUGS1_24226
set_lvar_int_to_constant 239@ = 11091
set_lvar_text_label 240@s = 'SMO4_FK'
gosub @DRUGS1_51404

:DRUGS1_24226
if 
  285@ == 3
goto_if_false @DRUGS1_24326
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_24312
if 
  locate_car_2d 161@ {x} 1432.61 {y} -1438.66 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_24305
285@ = 4

:DRUGS1_24305
goto @DRUGS1_24326

:DRUGS1_24312
285@ = 4
282@ = 12

:DRUGS1_24326
if 
  282@ == 9
goto_if_false @DRUGS1_24409
if 
  283@ == 0
goto_if_false @DRUGS1_24409
if 
  285@ == 4
goto_if_false @DRUGS1_24409
set_lvar_int_to_constant 239@ = 11092
set_lvar_text_label 240@s = 'SMO4_FL'
gosub @DRUGS1_51404

:DRUGS1_24409
if 
  282@ == 10
goto_if_false @DRUGS1_24474
if 
  283@ == 0
goto_if_false @DRUGS1_24474
set_lvar_int_to_constant 239@ = 11051
set_lvar_text_label 240@s = 'SMO4_FM'
gosub @DRUGS1_51404

:DRUGS1_24474
if 
  285@ == 4
goto_if_false @DRUGS1_24537
if 
  locate_car_2d 161@ {x} 1406.73 {y} -1393.15 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_24537
285@ = 5

:DRUGS1_24537
if 
  282@ == 11
goto_if_false @DRUGS1_24620
if 
  283@ == 0
goto_if_false @DRUGS1_24620
if 
  285@ == 5
goto_if_false @DRUGS1_24620
set_lvar_int_to_constant 239@ = 11052
set_lvar_text_label 240@s = 'SMO4_GA'
gosub @DRUGS1_51404

:DRUGS1_24620
if 
  282@ == 12
goto_if_false @DRUGS1_24685
if 
  283@ == 0
goto_if_false @DRUGS1_24685
set_lvar_int_to_constant 239@ = 11093
set_lvar_text_label 240@s = 'SMO4_GB'
gosub @DRUGS1_51404

:DRUGS1_24685
if 
  282@ == 13
goto_if_false @DRUGS1_24750
if 
  283@ == 0
goto_if_false @DRUGS1_24750
set_lvar_int_to_constant 239@ = 11053
set_lvar_text_label 240@s = 'SMO4_GD'
gosub @DRUGS1_51404

:DRUGS1_24750
if 
  282@ == 14
goto_if_false @DRUGS1_24815
if 
  283@ == 0
goto_if_false @DRUGS1_24815
set_lvar_int_to_constant 239@ = 11054
set_lvar_text_label 240@s = 'SMO4_GE'
gosub @DRUGS1_51404

:DRUGS1_24815
if 
  282@ == 15
goto_if_false @DRUGS1_24880
if 
  283@ == 0
goto_if_false @DRUGS1_24880
set_lvar_int_to_constant 239@ = 11094
set_lvar_text_label 240@s = 'SMO4_GF'
gosub @DRUGS1_51404

:DRUGS1_24880
if 
  282@ == 16
goto_if_false @DRUGS1_24945
if 
  283@ == 0
goto_if_false @DRUGS1_24945
set_lvar_int_to_constant 239@ = 11055
set_lvar_text_label 240@s = 'SMO4_GG'
gosub @DRUGS1_51404

:DRUGS1_24945
if 
  282@ == 17
goto_if_false @DRUGS1_25010
if 
  283@ == 0
goto_if_false @DRUGS1_25010
set_lvar_int_to_constant 239@ = 11056
set_lvar_text_label 240@s = 'SMO4_GH'
gosub @DRUGS1_51404

:DRUGS1_25010
if 
  282@ == 18
goto_if_false @DRUGS1_25075
if 
  283@ == 0
goto_if_false @DRUGS1_25075
set_lvar_int_to_constant 239@ = 11095
set_lvar_text_label 240@s = 'SMO4_GJ'
gosub @DRUGS1_51404

:DRUGS1_25075
if 
  282@ == 19
goto_if_false @DRUGS1_25140
if 
  283@ == 0
goto_if_false @DRUGS1_25140
set_lvar_int_to_constant 239@ = 11044
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51404

:DRUGS1_25140
if 
  285@ == 5
goto_if_false @DRUGS1_25203
if 
  locate_car_2d 161@ {x} 1362.39 {y} -1590.12 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_25203
285@ = 6

:DRUGS1_25203
if 
  282@ == 20
goto_if_false @DRUGS1_25286
if 
  283@ == 0
goto_if_false @DRUGS1_25286
if 
  285@ == 6
goto_if_false @DRUGS1_25286
set_lvar_int_to_constant 239@ = 11096
set_lvar_text_label 240@s = 'SMO4_GK'
gosub @DRUGS1_51404

:DRUGS1_25286
if 
  282@ == 21
goto_if_false @DRUGS1_25351
if 
  283@ == 0
goto_if_false @DRUGS1_25351
set_lvar_int_to_constant 239@ = 11038
set_lvar_text_label 240@s = 'SMO4_EL'
gosub @DRUGS1_51404

:DRUGS1_25351
gosub @DRUGS1_51446

:DRUGS1_25358
if 
  243@ == 1
goto_if_false @DRUGS1_32458
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_32458
if 
  245@ == 0
goto_if_false @DRUGS1_26694
189@ = create_car 581 {x} 1446.923 {y} -1429.569 {z} 12.1
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 174.719
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} True
set_char_decision_maker 43@ {handleOrTemplate} 35@
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
247@ = 1
260@ = 1
194@ = create_car 581 {x} 1377.421 {y} -1571.321 {z} 12.1
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 166.577
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 45@ {health} 10
set_char_only_damaged_by_player 45@ {state} True
set_char_decision_maker 45@ {handleOrTemplate} 35@
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
248@ = 1
261@ = 1
195@ = create_car 581 {x} 1361.0861 {y} -1665.478 {z} 12.62
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 187.657
46@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
set_char_health 46@ {health} 50
47@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_health 47@ {health} 10
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
249@ = 1
262@ = 1
196@ = create_car 581 {x} 1365.219 {y} -1420.908 {z} 12.104
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 353.946
56@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_health 56@ {health} 10
set_char_only_damaged_by_player 56@ {state} True
57@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 57@ {health} 10
set_char_only_damaged_by_player 57@ {state} True
set_char_decision_maker 57@ {handleOrTemplate} 35@
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
250@ = 1
263@ = 1
165@ = create_car 560 {x} 1374.3719 {y} -1665.108 {z} 12.91
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 176.22
48@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
49@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 49@ {health} 10
set_char_decision_maker 49@ {handleOrTemplate} 35@
210@ = add_blip_for_car 165@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
change_blip_scale 210@ {size} 2
265@ = 1
255@ = 1
166@ = create_car 560 {x} 1373.704 {y} -1633.619 {z} 12.935
set_petrol_tank_weakpoint 166@ {state} False
set_car_heading 166@ {heading} 176.22
50@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 50@ {handleOrTemplate} 35@
51@ = create_char_as_passenger 166@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_health 51@ {health} 10
211@ = add_blip_for_car 166@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
change_blip_scale 211@ {size} 2
266@ = 1
256@ = 1
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_26337
freeze_car_position 161@ {state} False
start_playback_recorded_car 161@ {path} 258

:DRUGS1_26337
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_26512
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_26512
start_playback_recorded_car 189@ {path} 259
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_26460
if 
  2 > 288@
goto_if_false @DRUGS1_26460
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 42@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26460
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_26512
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_26512
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_26687
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_26552
start_playback_recorded_car 196@ {path} 264

:DRUGS1_26552
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_26635
if 
  3 > 288@
goto_if_false @DRUGS1_26635
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 56@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26635
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_26687
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_26687
245@ = 1

:DRUGS1_26694
if 
  245@ == 1
goto_if_false @DRUGS1_27001
if 
  locate_car_2d 161@ {x} 1374.62 {y} -1549.64 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_27001
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_26909
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_26857
start_playback_recorded_car 194@ {path} 260
if 
  2 > 288@
goto_if_false @DRUGS1_26857
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26857
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_26909
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_26909
delete_car 176@
delete_car 190@
delete_car 191@
delete_car 192@
delete_car 193@
delete_char 52@
delete_char 53@
delete_char 54@
delete_char 55@
delete_char 61@
remove_blip 235@
remove_blip 226@
remove_blip 227@
remove_blip 236@
remove_blip 230@
remove_blip 228@
remove_blip 229@
245@ = 2

:DRUGS1_27001
if 
  245@ == 2
goto_if_false @DRUGS1_27340
if 
  locate_car_2d 161@ {x} 1361.0861 {y} -1665.478 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_27340
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_27097
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_27097
start_playback_recorded_car 195@ {path} 261

:DRUGS1_27097
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_27149
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_27149
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_27189
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_27189
start_playback_recorded_car 165@ {path} 262

:DRUGS1_27189
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_27241
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_27241
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_27281
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_27281
start_playback_recorded_car 166@ {path} 263

:DRUGS1_27281
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_27333
task_drive_by 51@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_27333
245@ = 3

:DRUGS1_27340
if 
  245@ == 3
goto_if_false @DRUGS1_28330
if 
  locate_car_2d 161@ {x} 1530.0 {y} -1742.0 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} True
goto_if_false @DRUGS1_28330
switch_widescreen True
set_player_control $player1 {state} False
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_27438
set_car_proofs 161@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_27438
$cam_offz = 0.2
204@ = 0.0
attach_camera_to_vehicle 161@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} $cam_offz {xRotation} 0.0 {yRotation} 0.0 {zRotation} 204@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
warp_char_into_car_as_passenger $scplayer {handle} 161@ {seat} SeatId.BikeRear
stop_playback_recorded_car 189@
delete_car 189@
remove_blip 214@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
remove_blip 215@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 195@
delete_car 195@
remove_blip 216@
delete_char 46@
delete_char 47@
stop_playback_recorded_car 196@
delete_car 196@
remove_blip 217@
delete_char 56@
delete_char 57@
stop_playback_recorded_car 165@
delete_car 165@
remove_blip 210@
delete_char 48@
delete_char 49@
stop_playback_recorded_car 166@
delete_car 166@
remove_blip 211@
delete_char 50@
delete_char 51@
189@ = create_car 581 {x} 1505.103 {y} -1733.09 {z} 3.05
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 258.539
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_health 42@ {health} 10
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
194@ = create_car 581 {x} 1487.213 {y} -1734.792 {z} 3.25
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 250.829
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 45@ {health} 20
set_char_decision_maker 45@ {handleOrTemplate} 35@
165@ = create_car 560 {x} 1496.864 {y} -1731.303 {z} 6.3
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 255.305
48@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
49@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_health 49@ {health} 10
188@ = create_car 443 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 245.14
197@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_can_be_shot_in_vehicle 197@ {state} False
set_car_proofs 188@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 197@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 197@ {handleOrTemplate} 35@
198@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 198@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 198@ {handleOrTemplate} 35@
208@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} -14.1055
set_petrol_tank_weakpoint 208@ {state} False
set_car_heading 208@ {heading} 256.415
set_car_proofs 208@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 208@ {handle} 188@ {xOffset} 0.0 {yOffset} -4.6 {zOffset} 0.65 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
269@ = 0
207@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 207@ {state} False
set_car_heading 207@ {heading} 256.415
set_car_proofs 207@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 207@ {handle} 188@ {xOffset} 0.0 {yOffset} 1.15 {zOffset} 2.4 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
270@ = 0
TIMERA = 0
246@ = 1
245@ = 4

:DRUGS1_28330
if 
  246@ == 1
goto_if_false @DRUGS1_28489
if 
  locate_car_2d 161@ {x} 1550.52 {y} -1749.1899 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} True
goto_if_false @DRUGS1_28489
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_28410
start_playback_recorded_car 188@ {path} 265

:DRUGS1_28410
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_28434
start_playback_recorded_car 189@ {path} 266

:DRUGS1_28434
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_28458
start_playback_recorded_car 165@ {path} 267

:DRUGS1_28458
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_28482
start_playback_recorded_car 194@ {path} 268

:DRUGS1_28482
246@ = 2

:DRUGS1_28489
if 
  245@ == 4
goto_if_false @DRUGS1_28619
if 
  TIMERA > 250
goto_if_false @DRUGS1_28619
if 
  0.8 > $cam_offz
goto_if_false @DRUGS1_28612
add_timed_val_to_float_var $cam_offz +=@ 0.008
add_timed_val_to_float_lvar 204@ +=@ 0.008
attach_camera_to_vehicle 161@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} $cam_offz {xRotation} 0.0 {yRotation} 0.0 {zRotation} 204@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
goto @DRUGS1_28619

:DRUGS1_28612
245@ = 5

:DRUGS1_28619
if 
  245@ == 5
goto_if_false @DRUGS1_28742
if 
  TIMERA > 2500
goto_if_false @DRUGS1_28742
set_fixed_camera_position 1605.5909 {y} -1766.793 {z} 3.3342 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1604.774 {y} -1766.255 {z} 3.5404 {switchStyle} SwitchType.JumpCut
set_time_scale 0.9
TIMERA = 0
TIMERB = 0
276@ = 1
245@ = 6

:DRUGS1_28742
if 
  245@ == 6
goto_if_false @DRUGS1_28796
if 
  TIMERA > 800
goto_if_false @DRUGS1_28796
$z = 0.3
245@ = 7

:DRUGS1_28796
if 
  245@ == 7
goto_if_false @DRUGS1_28900
if 
  0.6 > $z
goto_if_false @DRUGS1_28857
$z += 0.001
set_time_scale $z
goto @DRUGS1_28900

:DRUGS1_28857
if or
  TIMERA > 2500
  $z > 0.6
goto_if_false @DRUGS1_28900
245@ = 7
set_time_scale 0.5

:DRUGS1_28900
if 
  245@ == 7
goto_if_false @DRUGS1_28980
if 
  TIMERA > 2000
goto_if_false @DRUGS1_28980
point_camera_at_point 1605.783 {y} -1765.834 {z} 3.5404 {switchStyle} SwitchType.Interpolation
$z = 0.5
TIMERA = 0
245@ = 8

:DRUGS1_28980
if 
  245@ == 8
goto_if_false @DRUGS1_29091
if 
  1.0 > $z
goto_if_false @DRUGS1_29041
$z += 0.01
set_time_scale $z
goto @DRUGS1_29091

:DRUGS1_29041
if or
  TIMERA > 1000
  $z > 0.9
goto_if_false @DRUGS1_29091
245@ = 9
TIMERA = 0
set_time_scale 1.0

:DRUGS1_29091
if 
  245@ == 9
goto_if_false @DRUGS1_29142
if 
  TIMERA > 2800
goto_if_false @DRUGS1_29142
243@ = 2
245@ = 10

:DRUGS1_29142
if 
  276@ == 1
goto_if_false @DRUGS1_29254
if 
  TIMERB > 1242
goto_if_false @DRUGS1_29254
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
add_sparks 1580.75 {y} -1749.51 {z} 12.92 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 2

:DRUGS1_29254
if 
  276@ == 2
goto_if_false @DRUGS1_29366
if 
  TIMERB > 1400
goto_if_false @DRUGS1_29366
add_sparks 1580.74 {y} -1752.6801 {z} 12.87 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.85 {y} -1749.75 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 3

:DRUGS1_29366
if 
  276@ == 3
goto_if_false @DRUGS1_29478
if 
  TIMERB > 1500
goto_if_false @DRUGS1_29478
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 4

:DRUGS1_29478
if 
  276@ == 4
goto_if_false @DRUGS1_29590
if 
  TIMERB > 1600
goto_if_false @DRUGS1_29590
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.75 {y} -1749.51 {z} 12.92 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 5

:DRUGS1_29590
if 
  276@ == 5
goto_if_false @DRUGS1_29702
if 
  TIMERB > 1700
goto_if_false @DRUGS1_29702
add_sparks 1580.74 {y} -1752.6801 {z} 12.87 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
add_sparks 1580.85 {y} -1749.75 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 6

:DRUGS1_29702
if 
  276@ == 6
goto_if_false @DRUGS1_29814
if 
  TIMERB > 1800
goto_if_false @DRUGS1_29814
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 7

:DRUGS1_29814
if 
  276@ == 7
goto_if_false @DRUGS1_29892
if 
  TIMERB > 2404
goto_if_false @DRUGS1_29892
add_sparks 1599.28 {y} -1757.5601 {z} 3.11 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 8

:DRUGS1_29892
if 
  276@ == 8
goto_if_false @DRUGS1_30004
if 
  TIMERB > 3418
goto_if_false @DRUGS1_30004
add_sparks 1599.76 {y} 1757.96 {z} 3.14 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1601.6899 {y} -1758.73 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 9

:DRUGS1_30004
if 
  276@ == 9
goto_if_false @DRUGS1_30082
if 
  TIMERB > 3598
goto_if_false @DRUGS1_30082
add_sparks 1605.46 {y} -1763.14 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 10

:DRUGS1_30082
if 
  276@ == 10
goto_if_false @DRUGS1_30160
if 
  TIMERB > 3600
goto_if_false @DRUGS1_30160
add_sparks 1605.46 {y} -1763.14 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 11

:DRUGS1_30160
if 
  4 > 245@
goto_if_false @DRUGS1_32458
if 
  247@ == 1
goto_if_false @DRUGS1_30426
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_30426
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_30235
goto @DRUGS1_30426

:DRUGS1_30235
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_30384
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_30377
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_30377
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_30377
goto @DRUGS1_30426

:DRUGS1_30384
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 1.5 {y} 3.3999 {z} 4.1003
247@ = 2

:DRUGS1_30426
if 
  247@ == 2
goto_if_false @DRUGS1_30518
if 
  is_char_dead 43@
goto_if_false @DRUGS1_30518
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_30511
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 1.5 {y} 3.3999 {z} 4.1003

:DRUGS1_30511
247@ = 3

:DRUGS1_30518
if 
  260@ == 1
goto_if_false @DRUGS1_30605
if 
  is_char_dead 42@
goto_if_false @DRUGS1_30605
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_30605
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_30605
if 
  248@ == 1
goto_if_false @DRUGS1_30853
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_30853
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_30662
goto @DRUGS1_30853

:DRUGS1_30662
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_30811
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_30804
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_30804
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_30804
goto @DRUGS1_30853

:DRUGS1_30811
set_car_forward_speed 194@ {forwardSpeed} 15.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 5.5 {y} 3.3999 {z} 5.1003
248@ = 2

:DRUGS1_30853
if 
  248@ == 2
goto_if_false @DRUGS1_30945
if 
  is_char_dead 45@
goto_if_false @DRUGS1_30945
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_30938
set_car_forward_speed 194@ {forwardSpeed} 15.0
set_car_rotation_velocity 194@ {x} 5.5 {y} 3.3999 {z} 5.1003

:DRUGS1_30938
248@ = 3

:DRUGS1_30945
if 
  261@ == 1
goto_if_false @DRUGS1_31032
if 
  is_char_dead 44@
goto_if_false @DRUGS1_31032
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_31032
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_31032
if 
  249@ == 1
goto_if_false @DRUGS1_31281
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_31281
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_31089
goto @DRUGS1_31281

:DRUGS1_31089
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_31239
if 
  is_char_in_car 47@ {vehicle} 195@
goto_if_false @DRUGS1_31232
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_31232
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 195@
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@
249@ = 2

:DRUGS1_31232
goto @DRUGS1_31281

:DRUGS1_31239
set_car_forward_speed 195@ {forwardSpeed} 15.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 1.5 {y} 4.3999 {z} 5.1003
249@ = 2

:DRUGS1_31281
if 
  249@ == 2
goto_if_false @DRUGS1_31373
if 
  is_char_dead 47@
goto_if_false @DRUGS1_31373
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_31366
set_car_forward_speed 195@ {forwardSpeed} 15.0
set_car_rotation_velocity 195@ {x} 1.5 {y} 4.3999 {z} 5.1003

:DRUGS1_31366
249@ = 3

:DRUGS1_31373
if 
  262@ == 1
goto_if_false @DRUGS1_31460
if 
  is_char_dead 46@
goto_if_false @DRUGS1_31460
if or
  is_char_dead 47@
  is_car_dead 195@
goto_if_false @DRUGS1_31460
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
262@ = 2

:DRUGS1_31460
if 
  250@ == 1
goto_if_false @DRUGS1_31709
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_31709
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_31517
goto @DRUGS1_31709

:DRUGS1_31517
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_31667
if 
  is_char_in_car 57@ {vehicle} 196@
goto_if_false @DRUGS1_31660
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_31660
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 196@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@
250@ = 2

:DRUGS1_31660
goto @DRUGS1_31709

:DRUGS1_31667
set_car_forward_speed 196@ {forwardSpeed} 15.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 2.5 {y} 3.3999 {z} 3.1003
250@ = 2

:DRUGS1_31709
if 
  250@ == 2
goto_if_false @DRUGS1_31801
if 
  is_char_dead 57@
goto_if_false @DRUGS1_31801
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_31794
set_car_forward_speed 196@ {forwardSpeed} 15.0
set_car_rotation_velocity 196@ {x} 2.5 {y} 3.3999 {z} 3.1003

:DRUGS1_31794
250@ = 3

:DRUGS1_31801
if 
  263@ == 1
goto_if_false @DRUGS1_31888
if 
  is_char_dead 56@
goto_if_false @DRUGS1_31888
if or
  is_char_dead 57@
  is_car_dead 196@
goto_if_false @DRUGS1_31888
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
263@ = 2

:DRUGS1_31888
if 
  265@ == 1
goto_if_false @DRUGS1_32040
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_32040
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_31945
goto @DRUGS1_32040

:DRUGS1_31945
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_32028
if 
  is_char_in_car 49@ {vehicle} 165@
goto_if_false @DRUGS1_32021
205@ = get_driver_of_car 165@
if 
  205@ == -1
goto_if_false @DRUGS1_32021
task_shuffle_to_next_car_seat 49@ {vehicle} 165@
265@ = 2

:DRUGS1_32021
goto @DRUGS1_32040

:DRUGS1_32028
stop_playback_recorded_car 165@
265@ = 2

:DRUGS1_32040
if 
  265@ == 2
goto_if_false @DRUGS1_32086
if 
  is_char_dead 49@
goto_if_false @DRUGS1_32086
stop_playback_recorded_car 165@
265@ = 3

:DRUGS1_32086
if 
  255@ == 1
goto_if_false @DRUGS1_32173
if 
  is_char_dead 48@
goto_if_false @DRUGS1_32173
if or
  is_char_dead 49@
  is_car_dead 165@
goto_if_false @DRUGS1_32173
stop_playback_recorded_car 165@
remove_blip 210@
mark_car_as_no_longer_needed 165@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
255@ = 2

:DRUGS1_32173
if 
  266@ == 1
goto_if_false @DRUGS1_32325
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_32325
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_32230
goto @DRUGS1_32325

:DRUGS1_32230
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_32313
if 
  is_char_in_car 51@ {vehicle} 166@
goto_if_false @DRUGS1_32306
205@ = get_driver_of_car 166@
if 
  205@ == -1
goto_if_false @DRUGS1_32306
task_shuffle_to_next_car_seat 51@ {vehicle} 166@
266@ = 2

:DRUGS1_32306
goto @DRUGS1_32325

:DRUGS1_32313
stop_playback_recorded_car 166@
266@ = 2

:DRUGS1_32325
if 
  266@ == 2
goto_if_false @DRUGS1_32371
if 
  is_char_dead 51@
goto_if_false @DRUGS1_32371
stop_playback_recorded_car 166@
266@ = 3

:DRUGS1_32371
if 
  256@ == 1
goto_if_false @DRUGS1_32458
if 
  is_char_dead 50@
goto_if_false @DRUGS1_32458
if or
  is_char_dead 51@
  is_car_dead 166@
goto_if_false @DRUGS1_32458
stop_playback_recorded_car 166@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
remove_blip 211@
256@ = 2

:DRUGS1_32458
if 
  243@ == 2
goto_if_false @DRUGS1_42159
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_42159
if 
  272@ == 0
goto_if_false @DRUGS1_34432
do_fade 0 {direction} Fade.Out
stop_playback_recorded_car 189@
delete_car 189@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 165@
delete_car 165@
delete_char 48@
delete_char 49@
delete_car 208@
delete_car 207@
stop_playback_recorded_car 188@
delete_car 188@
delete_char 197@
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_32622
stop_playback_recorded_car 161@

:DRUGS1_32622
request_car_recording 269
request_car_recording 270
request_car_recording 271
request_car_recording 272
request_car_recording 273
request_car_recording 274
request_car_recording 275
request_car_recording 276
request_car_recording 277
request_car_recording 278
request_car_recording 279
request_car_recording 280
request_car_recording 281
load_all_models_now 

:DRUGS1_32689
if or
  not has_car_recording_been_loaded 273
  not has_car_recording_been_loaded 274
  not has_car_recording_been_loaded 275
  not has_car_recording_been_loaded 276
  not has_car_recording_been_loaded 277
goto_if_false @DRUGS1_32736
wait 0
goto @DRUGS1_32689

:DRUGS1_32736
if or
  not has_car_recording_been_loaded 278
  not has_car_recording_been_loaded 279
  not has_car_recording_been_loaded 280
  not has_car_recording_been_loaded 281
goto_if_false @DRUGS1_32778
wait 0
goto @DRUGS1_32736

:DRUGS1_32778
if or
  not has_car_recording_been_loaded 269
  not has_car_recording_been_loaded 270
  not has_car_recording_been_loaded 271
  not has_car_recording_been_loaded 272
goto_if_false @DRUGS1_32820
wait 0
goto @DRUGS1_32778

:DRUGS1_32820
188@ = create_car 443 {x} 1601.915 {y} -1755.917 {z} 4.6
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 256.415
197@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_can_be_shot_in_vehicle 197@ {state} False
set_car_proofs 188@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 197@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 197@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 197@ {state} True
209@ = add_blip_for_car 188@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
change_blip_scale 209@ {size} 2
208@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} -14.1055
set_petrol_tank_weakpoint 208@ {state} False
set_car_heading 208@ {heading} 256.415
set_car_proofs 208@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 208@ {handle} 188@ {xOffset} 0.0 {yOffset} -4.6 {zOffset} 0.65 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
273@ = 1
207@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 207@ {state} False
set_car_heading 207@ {heading} 256.415
set_car_proofs 207@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 207@ {handle} 188@ {xOffset} 0.0 {yOffset} 1.15 {zOffset} 2.4 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
274@ = 1
189@ = create_car 581 {x} 1505.103 {y} -1733.09 {z} 3.05
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 258.539
set_car_proofs 189@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} 10
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 43@ {state} True
247@ = 1
260@ = 1
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
194@ = create_car 581 {x} 1487.213 {y} -1734.792 {z} 3.25
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 258.716
set_car_proofs 194@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 44@ {state} True
set_char_health 44@ {health} 20
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 45@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 45@ {state} True
set_char_health 45@ {health} 30
248@ = 1
261@ = 1
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
165@ = create_car 560 {x} 1496.864 {y} -1731.303 {z} 6.3
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 257.724
46@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 46@ {state} False
set_char_only_damaged_by_player 46@ {state} True
47@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_health 47@ {health} 10
265@ = 1
255@ = 1
210@ = add_blip_for_car 165@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
change_blip_scale 210@ {size} 2
set_car_health 165@ {health} 1000
wait 0
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_33700
start_playback_recorded_car 188@ {path} 269

:DRUGS1_33700
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_33724
start_playback_recorded_car 208@ {path} 270

:DRUGS1_33724
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_33748
start_playback_recorded_car 207@ {path} 271

:DRUGS1_33748
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_33772
start_playback_recorded_car 161@ {path} 272

:DRUGS1_33772
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_33810
detach_car 208@ {x} 20.0 {y} 180.0 {z} 0.0 {collisionDetection} False

:DRUGS1_33810
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_33848
detach_car 207@ {x} 20.0 {y} 180.0 {z} 0.0 {collisionDetection} False

:DRUGS1_33848
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_33872
start_playback_recorded_car 189@ {path} 273

:DRUGS1_33872
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_33896
start_playback_recorded_car 194@ {path} 274

:DRUGS1_33896
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_33920
start_playback_recorded_car 165@ {path} 275

:DRUGS1_33920
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 346.2 {headingRange} 359.0
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_34014
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_34014
do_fade 250 {direction} Fade.In
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
285@ = 0
282@ = 0
283@ = 0
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_34096
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_34096
TIMERB = 0
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_34155
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34155
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_34238
if 
  3 > 288@
goto_if_false @DRUGS1_34238
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 42@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_34238
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_34321
if 
  2 > 288@
goto_if_false @DRUGS1_34321
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_34321
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_34373
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34373
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_34425
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34425
272@ = 1

:DRUGS1_34432
if 
  272@ == 1
goto_if_false @DRUGS1_34977
if 
  locate_car_2d 161@ {x} 1905.28 {y} -1831.5699 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_34977
166@ = create_car 560 {x} 2002.1021 {y} -1890.368 {z} 8.108
set_petrol_tank_weakpoint 166@ {state} False
set_car_heading 166@ {heading} 44.1
start_playback_recorded_car 166@ {path} 276
48@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 48@ {state} False
set_char_only_damaged_by_player 48@ {state} True
49@ = create_char_as_passenger 166@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_health 49@ {health} 10
266@ = 1
256@ = 1
211@ = add_blip_for_car 166@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
change_blip_scale 211@ {size} 2
set_car_health 166@ {health} 1100
set_car_proofs 166@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
167@ = create_car 560 {x} 2008.843 {y} -1897.323 {z} 8.1
set_petrol_tank_weakpoint 167@ {state} False
set_car_heading 167@ {heading} 44.1
start_playback_recorded_car 167@ {path} 277
set_car_proofs 167@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
set_car_only_damaged_by_player 167@ {state} True
50@ = create_char_inside_car 167@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 50@ {state} True
51@ = create_char_as_passenger 167@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 51@ {state} True
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_health 51@ {health} 10
267@ = 1
257@ = 1
212@ = add_blip_for_car 167@
change_blip_display 212@ {display} BlipDisplay.BlipOnly
change_blip_scale 212@ {size} 2
set_car_health 167@ {health} 700
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_34918
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_34918
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_34970
task_drive_by 51@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_34970
272@ = 2

:DRUGS1_34977
if 
  272@ == 2
goto_if_false @DRUGS1_35686
if 
  locate_car_2d 161@ {x} 2101.55 {y} -1850.8101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_35686
196@ = create_car 581 {x} 2093.446 {y} -1836.207 {z} 12.72
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 267.18
set_car_proofs 196@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
52@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_health 52@ {health} 50
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 52@ {state} True
53@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 53@ {state} True
set_char_health 53@ {health} 10
250@ = 1
263@ = 1
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
start_playback_recorded_car 196@ {path} 279
195@ = create_car 581 {x} 2018.735 {y} -1900.925 {z} 8.108
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 258.716
set_car_proofs 195@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
54@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 54@ {state} True
55@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 55@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 55@ {state} True
set_char_health 54@ {health} 10
set_char_only_damaged_by_player 54@ {state} 10
set_char_health 55@ {health} 30
set_char_only_damaged_by_player 55@ {state} 10
249@ = 1
262@ = 1
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
start_playback_recorded_car 195@ {path} 278
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_35492
if 
  4 > 288@
goto_if_false @DRUGS1_35492
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 52@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_35492
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_35575
if 
  4 > 288@
goto_if_false @DRUGS1_35575
give_weapon_to_char 54@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 54@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_35575
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_35627
task_drive_by 53@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_35627
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_35679
task_drive_by 55@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_35679
272@ = 3

:DRUGS1_35686
if 
  272@ == 3
goto_if_false @DRUGS1_36117
if 
  locate_car_2d 161@ {x} 2425.9299 {y} -1874.76 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_36117
delete_car 208@
delete_car 207@
delete_car 189@
delete_car 194@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_car 165@
delete_car 166@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
206@ = create_car 581 {x} 2417.1001 {y} -1876.578 {z} 12.92
set_petrol_tank_weakpoint 206@ {state} False
set_car_heading 206@ {heading} 271.4
start_playback_recorded_car 206@ {path} 280
set_car_proofs 206@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
56@ = create_char_inside_car 206@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 56@ {state} True
57@ = create_char_as_passenger 206@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 57@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 57@ {state} True
set_char_health 56@ {health} 10
set_char_health 57@ {health} 10
251@ = 1
264@ = 1
218@ = add_blip_for_car 206@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_36045
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_36045
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_36110
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 56@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_36110
272@ = 4

:DRUGS1_36117
if 
  272@ == 4
goto_if_false @DRUGS1_36400
if 
  locate_car_2d 161@ {x} 2499.3601 {y} -1871.699 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_36400
168@ = create_car 560 {x} 2529.2561 {y} -1892.9 {z} 13.24
set_petrol_tank_weakpoint 168@ {state} False
set_car_heading 168@ {heading} 269.177
start_playback_recorded_car 168@ {path} 281
set_car_health 168@ {health} 600
58@ = create_char_inside_car 168@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 58@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 58@ {state} True
59@ = create_char_as_passenger 168@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 59@ {state} True
set_char_decision_maker 59@ {handleOrTemplate} 35@
268@ = 1
258@ = 1
213@ = add_blip_for_car 168@
change_blip_display 213@ {display} BlipDisplay.BlipOnly
change_blip_scale 213@ {size} 2
set_car_health 168@ {health} 800
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_36393
task_drive_by 59@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_36393
272@ = 5

:DRUGS1_36400
if 
  272@ == 5
goto_if_false @DRUGS1_36464
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_36464
if 
  not is_recording_going_on_for_car 188@
goto_if_false @DRUGS1_36464
freeze_car_position 188@ {state} True
272@ = 6

:DRUGS1_36464
if 
  272@ == 6
goto_if_false @DRUGS1_36532
if 
  279@ == 0
goto_if_false @DRUGS1_36532
if 
  243@ == 2
goto_if_false @DRUGS1_36532
279@ = 1
277@ = 1

:DRUGS1_36532
if 
  273@ == 1
goto_if_false @DRUGS1_36686
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_36686
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_36686
if 
  TIMERB > 26250
goto_if_false @DRUGS1_36686
if or
  265@ <> 3
  255@ <> 2
goto_if_false @DRUGS1_36686
set_car_proofs 208@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car 208@
set_car_health 208@ {health} 200
set_car_rotation_velocity 208@ {x} 1.5 {y} -2.3999 {z} 4.1003
explode_car 208@
273@ = 2

:DRUGS1_36686
if 
  273@ == 2
goto_if_false @DRUGS1_36751
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_36751
if 
  TIMERB > 26900
goto_if_false @DRUGS1_36751
explode_car 165@
273@ = 3

:DRUGS1_36751
if 
  274@ == 1
goto_if_false @DRUGS1_36852
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_36852
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_36852
if 
  TIMERB > 35647
goto_if_false @DRUGS1_36852
set_car_proofs 207@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_health 207@ {health} 500
274@ = 2

:DRUGS1_36852
if 
  274@ == 2
goto_if_false @DRUGS1_36919
if 
  TIMERB > 35800
goto_if_false @DRUGS1_36919
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_36919
explode_car 207@
274@ = 3

:DRUGS1_36919
if 
  274@ == 3
goto_if_false @DRUGS1_36986
if 
  TIMERB > 36500
goto_if_false @DRUGS1_36986
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_36986
explode_car 166@
274@ = 4

:DRUGS1_36986
if 
  247@ == 1
goto_if_false @DRUGS1_37234
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_37234
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_37043
goto @DRUGS1_37234

:DRUGS1_37043
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_37192
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_37185
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_37185
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_37185
goto @DRUGS1_37234

:DRUGS1_37192
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_37234
if 
  247@ == 2
goto_if_false @DRUGS1_37326
if 
  is_char_dead 43@
goto_if_false @DRUGS1_37326
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_37319
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_37319
247@ = 3

:DRUGS1_37326
if 
  260@ == 1
goto_if_false @DRUGS1_37413
if 
  is_char_dead 42@
goto_if_false @DRUGS1_37413
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_37413
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_37413
if 
  248@ == 1
goto_if_false @DRUGS1_37661
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_37661
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_37470
goto @DRUGS1_37661

:DRUGS1_37470
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_37619
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_37612
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_37612
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_37612
goto @DRUGS1_37661

:DRUGS1_37619
set_car_forward_speed 194@ {forwardSpeed} 18.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_37661
if 
  248@ == 2
goto_if_false @DRUGS1_37753
if 
  is_char_dead 45@
goto_if_false @DRUGS1_37753
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_37746
set_car_forward_speed 194@ {forwardSpeed} 18.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_37746
248@ = 3

:DRUGS1_37753
if 
  261@ == 1
goto_if_false @DRUGS1_37840
if 
  is_char_dead 44@
goto_if_false @DRUGS1_37840
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_37840
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_37840
if 
  265@ == 1
goto_if_false @DRUGS1_37992
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_37992
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_37897
goto @DRUGS1_37992

:DRUGS1_37897
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_37980
if 
  is_char_in_car 47@ {vehicle} 165@
goto_if_false @DRUGS1_37973
205@ = get_driver_of_car 165@
if 
  205@ == -1
goto_if_false @DRUGS1_37973
task_shuffle_to_next_car_seat 47@ {vehicle} 165@
265@ = 2

:DRUGS1_37973
goto @DRUGS1_37992

:DRUGS1_37980
stop_playback_recorded_car 165@
265@ = 2

:DRUGS1_37992
if 
  265@ == 2
goto_if_false @DRUGS1_38059
if 
  is_char_dead 47@
goto_if_false @DRUGS1_38059
stop_playback_recorded_car 165@
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_38052
car_set_idle 165@

:DRUGS1_38052
265@ = 3

:DRUGS1_38059
if 
  255@ == 1
goto_if_false @DRUGS1_38167
if 
  is_char_dead 46@
goto_if_false @DRUGS1_38167
if or
  is_char_dead 47@
  is_car_dead 165@
goto_if_false @DRUGS1_38167
stop_playback_recorded_car 165@
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_38140
car_set_idle 165@

:DRUGS1_38140
remove_blip 210@
mark_car_as_no_longer_needed 165@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
255@ = 2

:DRUGS1_38167
if 
  266@ == 1
goto_if_false @DRUGS1_38319
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38319
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_38224
goto @DRUGS1_38319

:DRUGS1_38224
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_38307
if 
  is_char_in_car 49@ {vehicle} 166@
goto_if_false @DRUGS1_38300
205@ = get_driver_of_car 166@
if 
  205@ == -1
goto_if_false @DRUGS1_38300
task_shuffle_to_next_car_seat 49@ {vehicle} 166@
266@ = 2

:DRUGS1_38300
goto @DRUGS1_38319

:DRUGS1_38307
stop_playback_recorded_car 166@
266@ = 2

:DRUGS1_38319
if 
  266@ == 2
goto_if_false @DRUGS1_38386
if 
  is_char_dead 49@
goto_if_false @DRUGS1_38386
stop_playback_recorded_car 166@
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38379
car_set_idle 166@

:DRUGS1_38379
266@ = 3

:DRUGS1_38386
if 
  256@ == 1
goto_if_false @DRUGS1_38494
if 
  is_char_dead 48@
goto_if_false @DRUGS1_38494
if or
  is_char_dead 49@
  is_car_dead 166@
goto_if_false @DRUGS1_38494
stop_playback_recorded_car 166@
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38467
car_set_idle 166@

:DRUGS1_38467
remove_blip 211@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
256@ = 2

:DRUGS1_38494
if 
  267@ == 1
goto_if_false @DRUGS1_38646
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38646
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_38551
goto @DRUGS1_38646

:DRUGS1_38551
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_38634
if 
  is_char_in_car 51@ {vehicle} 167@
goto_if_false @DRUGS1_38627
205@ = get_driver_of_car 167@
if 
  205@ == -1
goto_if_false @DRUGS1_38627
task_shuffle_to_next_car_seat 51@ {vehicle} 167@
267@ = 2

:DRUGS1_38627
goto @DRUGS1_38646

:DRUGS1_38634
stop_playback_recorded_car 167@
267@ = 2

:DRUGS1_38646
if 
  267@ == 2
goto_if_false @DRUGS1_38713
if 
  is_char_dead 51@
goto_if_false @DRUGS1_38713
stop_playback_recorded_car 167@
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38706
car_set_idle 167@

:DRUGS1_38706
267@ = 3

:DRUGS1_38713
if 
  257@ == 1
goto_if_false @DRUGS1_38821
if 
  is_char_dead 50@
goto_if_false @DRUGS1_38821
if or
  is_char_dead 51@
  is_car_dead 167@
goto_if_false @DRUGS1_38821
stop_playback_recorded_car 167@
remove_blip 212@
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38799
car_set_idle 167@

:DRUGS1_38799
mark_car_as_no_longer_needed 167@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
257@ = 2

:DRUGS1_38821
if 
  250@ == 1
goto_if_false @DRUGS1_39069
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_39069
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_38878
goto @DRUGS1_39069

:DRUGS1_38878
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_39027
if 
  is_char_in_car 53@ {vehicle} 196@
goto_if_false @DRUGS1_39020
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_39020
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 53@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 53@ {vehicle} 196@
task_drive_by 53@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
250@ = 2

:DRUGS1_39020
goto @DRUGS1_39069

:DRUGS1_39027
set_car_forward_speed 196@ {forwardSpeed} 18.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003
250@ = 2

:DRUGS1_39069
if 
  250@ == 2
goto_if_false @DRUGS1_39161
if 
  is_char_dead 53@
goto_if_false @DRUGS1_39161
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_39154
set_car_forward_speed 196@ {forwardSpeed} 18.0
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_39154
250@ = 3

:DRUGS1_39161
if 
  263@ == 1
goto_if_false @DRUGS1_39248
if 
  is_char_dead 52@
goto_if_false @DRUGS1_39248
if or
  is_char_dead 53@
  is_car_dead 196@
goto_if_false @DRUGS1_39248
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
263@ = 2

:DRUGS1_39248
if 
  249@ == 1
goto_if_false @DRUGS1_39496
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_39496
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_39305
goto @DRUGS1_39496

:DRUGS1_39305
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_39454
if 
  is_char_in_car 55@ {vehicle} 195@
goto_if_false @DRUGS1_39447
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_39447
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 55@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 55@ {vehicle} 195@
task_drive_by 55@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
249@ = 2

:DRUGS1_39447
goto @DRUGS1_39496

:DRUGS1_39454
set_car_forward_speed 195@ {forwardSpeed} 18.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003
249@ = 2

:DRUGS1_39496
if 
  249@ == 2
goto_if_false @DRUGS1_39588
if 
  is_char_dead 55@
goto_if_false @DRUGS1_39588
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_39581
set_car_forward_speed 195@ {forwardSpeed} 18.0
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_39581
249@ = 3

:DRUGS1_39588
if 
  262@ == 1
goto_if_false @DRUGS1_39675
if 
  is_char_dead 54@
goto_if_false @DRUGS1_39675
if or
  is_char_dead 55@
  is_car_dead 195@
goto_if_false @DRUGS1_39675
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
262@ = 2

:DRUGS1_39675
if 
  251@ == 1
goto_if_false @DRUGS1_39923
if 
  not is_car_dead 206@
goto_if_false @DRUGS1_39923
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_39732
goto @DRUGS1_39923

:DRUGS1_39732
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_39881
if 
  is_char_in_car 57@ {vehicle} 206@
goto_if_false @DRUGS1_39874
205@ = get_driver_of_car 206@
if 
  205@ == -1
goto_if_false @DRUGS1_39874
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 206@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
251@ = 2

:DRUGS1_39874
goto @DRUGS1_39923

:DRUGS1_39881
set_car_forward_speed 206@ {forwardSpeed} 18.0
stop_playback_recorded_car 206@
set_car_rotation_velocity 206@ {x} 3.5 {y} 7.3999 {z} 8.1003
251@ = 2

:DRUGS1_39923
if 
  251@ == 2
goto_if_false @DRUGS1_40015
if 
  is_char_dead 57@
goto_if_false @DRUGS1_40015
stop_playback_recorded_car 206@
if 
  not is_car_dead 206@
goto_if_false @DRUGS1_40008
set_car_forward_speed 206@ {forwardSpeed} 18.0
set_car_rotation_velocity 206@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_40008
251@ = 3

:DRUGS1_40015
if 
  264@ == 1
goto_if_false @DRUGS1_40102
if 
  is_char_dead 56@
goto_if_false @DRUGS1_40102
if or
  is_char_dead 57@
  is_car_dead 206@
goto_if_false @DRUGS1_40102
stop_playback_recorded_car 206@
remove_blip 218@
mark_car_as_no_longer_needed 206@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
264@ = 2

:DRUGS1_40102
if 
  268@ == 1
goto_if_false @DRUGS1_40254
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40254
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_40159
goto @DRUGS1_40254

:DRUGS1_40159
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_40242
if 
  is_char_in_car 59@ {vehicle} 168@
goto_if_false @DRUGS1_40235
205@ = get_driver_of_car 168@
if 
  205@ == -1
goto_if_false @DRUGS1_40235
task_shuffle_to_next_car_seat 59@ {vehicle} 168@
268@ = 2

:DRUGS1_40235
goto @DRUGS1_40254

:DRUGS1_40242
stop_playback_recorded_car 168@
268@ = 2

:DRUGS1_40254
if 
  268@ == 2
goto_if_false @DRUGS1_40321
if 
  is_char_dead 59@
goto_if_false @DRUGS1_40321
stop_playback_recorded_car 168@
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40314
car_set_idle 168@

:DRUGS1_40314
268@ = 3

:DRUGS1_40321
if 
  258@ == 1
goto_if_false @DRUGS1_40429
if 
  is_char_dead 58@
goto_if_false @DRUGS1_40429
if or
  is_char_dead 59@
  is_car_dead 168@
goto_if_false @DRUGS1_40429
stop_playback_recorded_car 168@
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40402
car_set_idle 168@

:DRUGS1_40402
remove_blip 213@
mark_car_as_no_longer_needed 168@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
258@ = 2

:DRUGS1_40429
if 
  272@ > 0
goto_if_false @DRUGS1_42159
if 
  282@ == 0
goto_if_false @DRUGS1_40512
if 
  283@ == 0
goto_if_false @DRUGS1_40512
set_lvar_int_to_constant 239@ = 11100
set_lvar_text_label 240@s = 'SMO4_HA'
gosub @DRUGS1_51404

:DRUGS1_40512
if 
  282@ == 1
goto_if_false @DRUGS1_40577
if 
  283@ == 0
goto_if_false @DRUGS1_40577
set_lvar_int_to_constant 239@ = 11059
set_lvar_text_label 240@s = 'SMO4_HB'
gosub @DRUGS1_51404

:DRUGS1_40577
if 
  282@ == 2
goto_if_false @DRUGS1_40642
if 
  283@ == 0
goto_if_false @DRUGS1_40642
set_lvar_int_to_constant 239@ = 11060
set_lvar_text_label 240@s = 'SMO4_HC'
gosub @DRUGS1_51404

:DRUGS1_40642
if 
  282@ == 3
goto_if_false @DRUGS1_40707
if 
  283@ == 0
goto_if_false @DRUGS1_40707
set_lvar_int_to_constant 239@ = 11101
set_lvar_text_label 240@s = 'SMO4_HD'
gosub @DRUGS1_51404

:DRUGS1_40707
if 
  282@ == 4
goto_if_false @DRUGS1_40772
if 
  283@ == 0
goto_if_false @DRUGS1_40772
set_lvar_int_to_constant 239@ = 11061
set_lvar_text_label 240@s = 'SMO4_HE'
gosub @DRUGS1_51404

:DRUGS1_40772
if 
  282@ == 5
goto_if_false @DRUGS1_40837
if 
  283@ == 0
goto_if_false @DRUGS1_40837
set_lvar_int_to_constant 239@ = 11062
set_lvar_text_label 240@s = 'SMO4_HF'
gosub @DRUGS1_51404

:DRUGS1_40837
if 
  282@ == 6
goto_if_false @DRUGS1_40902
if 
  283@ == 0
goto_if_false @DRUGS1_40902
set_lvar_int_to_constant 239@ = 11102
set_lvar_text_label 240@s = 'SMO4_HH'
gosub @DRUGS1_51404

:DRUGS1_40902
if 
  282@ == 7
goto_if_false @DRUGS1_40967
if 
  283@ == 0
goto_if_false @DRUGS1_40967
set_lvar_int_to_constant 239@ = 11063
set_lvar_text_label 240@s = 'SMO4_HJ'
gosub @DRUGS1_51404

:DRUGS1_40967
if 
  282@ == 8
goto_if_false @DRUGS1_41032
if 
  283@ == 0
goto_if_false @DRUGS1_41032
set_lvar_int_to_constant 239@ = 11044
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51404

:DRUGS1_41032
if 
  285@ == 0
goto_if_false @DRUGS1_41095
if 
  locate_car_2d 161@ {x} 2047.59 {y} -1850.3199 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41095
285@ = 1

:DRUGS1_41095
if 
  282@ == 9
goto_if_false @DRUGS1_41178
if 
  283@ == 0
goto_if_false @DRUGS1_41178
if 
  285@ == 1
goto_if_false @DRUGS1_41178
set_lvar_int_to_constant 239@ = 11066
set_lvar_text_label 240@s = 'SMO4_HN'
gosub @DRUGS1_51404

:DRUGS1_41178
if 
  285@ == 1
goto_if_false @DRUGS1_41241
if 
  locate_car_2d 161@ {x} 2121.1699 {y} -1853.67 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41241
285@ = 2

:DRUGS1_41241
if 
  282@ == 10
goto_if_false @DRUGS1_41324
if 
  283@ == 0
goto_if_false @DRUGS1_41324
if 
  285@ == 2
goto_if_false @DRUGS1_41324
set_lvar_int_to_constant 239@ = 11098
set_lvar_text_label 240@s = 'SMO4_GM'
gosub @DRUGS1_51404

:DRUGS1_41324
if 
  282@ == 11
goto_if_false @DRUGS1_41389
if 
  283@ == 0
goto_if_false @DRUGS1_41389
set_lvar_int_to_constant 239@ = 11058
set_lvar_text_label 240@s = 'SMO4_GP'
gosub @DRUGS1_51404

:DRUGS1_41389
if 
  285@ == 2
goto_if_false @DRUGS1_41452
if 
  locate_car_2d 161@ {x} 2216.75 {y} -1854.73 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41452
285@ = 3

:DRUGS1_41452
if 
  282@ == 12
goto_if_false @DRUGS1_41535
if 
  283@ == 0
goto_if_false @DRUGS1_41535
if 
  285@ == 3
goto_if_false @DRUGS1_41535
set_lvar_int_to_constant 239@ = 11067
set_lvar_text_label 240@s = 'SMO4_HP'
gosub @DRUGS1_51404

:DRUGS1_41535
if 
  282@ == 13
goto_if_false @DRUGS1_41600
if 
  283@ == 0
goto_if_false @DRUGS1_41600
set_lvar_int_to_constant 239@ = 11107
set_lvar_text_label 240@s = 'SMO4_HS'
gosub @DRUGS1_51404

:DRUGS1_41600
if 
  282@ == 14
goto_if_false @DRUGS1_41665
if 
  283@ == 0
goto_if_false @DRUGS1_41665
set_lvar_int_to_constant 239@ = 11068
set_lvar_text_label 240@s = 'SMO4_HT'
gosub @DRUGS1_51404

:DRUGS1_41665
if 
  285@ == 3
goto_if_false @DRUGS1_41728
if 
  locate_car_2d 161@ {x} 2435.9399 {y} -1874.5699 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41728
285@ = 4

:DRUGS1_41728
if 
  282@ == 15
goto_if_false @DRUGS1_41811
if 
  283@ == 0
goto_if_false @DRUGS1_41811
if 
  285@ == 4
goto_if_false @DRUGS1_41811
set_lvar_int_to_constant 239@ = 11097
set_lvar_text_label 240@s = 'SMO4_GL'
gosub @DRUGS1_51404

:DRUGS1_41811
if 
  282@ == 16
goto_if_false @DRUGS1_41876
if 
  283@ == 0
goto_if_false @DRUGS1_41876
set_lvar_int_to_constant 239@ = 11057
set_lvar_text_label 240@s = 'SMO4_GN'
gosub @DRUGS1_51404

:DRUGS1_41876
if 
  285@ == 4
goto_if_false @DRUGS1_41939
if 
  locate_car_2d 161@ {x} 2539.1101 {y} -1865.3101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41939
285@ = 5

:DRUGS1_41939
if 
  282@ == 17
goto_if_false @DRUGS1_42022
if 
  283@ == 0
goto_if_false @DRUGS1_42022
if 
  285@ == 4
goto_if_false @DRUGS1_42022
set_lvar_int_to_constant 239@ = 11071
set_lvar_text_label 240@s = 'SMO4_JA'
gosub @DRUGS1_51404

:DRUGS1_42022
if 
  282@ == 18
goto_if_false @DRUGS1_42087
if 
  283@ == 0
goto_if_false @DRUGS1_42087
set_lvar_int_to_constant 239@ = 11108
set_lvar_text_label 240@s = 'SMO4_JB'
gosub @DRUGS1_51404

:DRUGS1_42087
if 
  282@ == 19
goto_if_false @DRUGS1_42152
if 
  283@ == 0
goto_if_false @DRUGS1_42152
set_lvar_int_to_constant 239@ = 11072
set_lvar_text_label 240@s = 'SMO4_JC'
gosub @DRUGS1_51404

:DRUGS1_42152
gosub @DRUGS1_51446

:DRUGS1_42159
if 
  279@ == 1
goto_if_false @DRUGS1_44172
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_44172
if 
  277@ == 1
goto_if_false @DRUGS1_43121
if 
  locate_car_2d 161@ {x} 2565.98 {y} -1747.12 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_43121
do_fade 0 {direction} Fade.Out
request_car_recording 282
request_car_recording 283
request_car_recording 284
request_car_recording 285
request_car_recording 286
request_model #STORM_DRAIN_COVER
request_model #BARREL4
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 161@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_42347
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_42347
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_42385
open_car_door 188@ {door} CarDoor.LeftFrontDoor

:DRUGS1_42385
130@ = 2569.144
131@ = -1676.1851
132@ = 2.915
133@ = 2569.512
134@ = -1677.113
135@ = 2.8487
set_fixed_camera_position 2578.406 {y} -1668.328 {z} 1.3204 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2577.853 {y} -1669.157 {z} 1.4051 {switchStyle} SwitchType.JumpCut
stop_playback_recorded_car 189@
delete_car 189@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 165@
delete_car 165@
delete_char 46@
delete_char 47@
stop_playback_recorded_car 166@
delete_car 166@
delete_char 48@
delete_char 49@
stop_playback_recorded_car 167@
delete_car 167@
delete_char 50@
delete_char 51@
stop_playback_recorded_car 196@
delete_car 196@
delete_char 52@
delete_char 53@
stop_playback_recorded_car 195@
delete_car 195@
delete_char 54@
delete_char 55@
stop_playback_recorded_car 206@
delete_car 206@
delete_char 56@
delete_char 57@
stop_playback_recorded_car 168@
delete_car 168@
delete_char 58@
delete_char 59@
165@ = create_car 560 {x} 2575.8711 {y} -1676.557 {z} 0.7246
set_car_heading 165@ {heading} 85.0235
set_car_proofs 165@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
166@ = create_car 560 {x} 2567.3479 {y} -1675.912 {z} 0.7398
set_car_heading 166@ {heading} 263.7667
set_car_proofs 166@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
37@ = create_char PedType.Mission1 {modelId} 111 {x} 2578.022 {y} -1674.761 {z} 0.7667
set_char_heading 37@ {heading} 162.2371
set_char_decision_maker 37@ {handleOrTemplate} 35@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 37@ {x} 2574.8701 {y} -1686.48 {z} 2.02 {time} 3000
38@ = create_char PedType.Mission1 {modelId} 111 {x} 2574.3359 {y} -1674.478 {z} 0.7734
set_char_heading 38@ {heading} 162.2371
set_char_decision_maker 38@ {handleOrTemplate} 35@
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 38@ {x} 2572.21 {y} -1686.5601 {z} 3.13 {time} 3000
task_toggle_duck 38@ {state} True
39@ = create_char PedType.Mission1 {modelId} 111 {x} 2569.2949 {y} -1674.4 {z} 0.7752
set_char_heading 39@ {heading} 170.9985
set_char_decision_maker 39@ {handleOrTemplate} 35@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 39@ {x} 2566.95 {y} -1686.14 {z} 2.5 {time} 3000
40@ = create_char PedType.Mission1 {modelId} 111 {x} 2565.314 {y} -1673.921 {z} 0.7864
set_char_heading 40@ {heading} 170.9985
set_char_decision_maker 40@ {handleOrTemplate} 35@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_toggle_duck 40@ {state} True
task_shoot_at_coord 40@ {x} 2564.3501 {y} -1786.51 {z} 2.18 {time} 3000
if 
  is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_43107
stop_playback_recorded_car 161@

:DRUGS1_43107
243@ = 3
277@ = 2

:DRUGS1_43121
if 
  277@ == 2
goto_if_false @DRUGS1_43258
if 
  has_car_recording_been_loaded 282
goto_if_false @DRUGS1_43258
if 
  has_car_recording_been_loaded 283
goto_if_false @DRUGS1_43258
if 
  has_car_recording_been_loaded 284
goto_if_false @DRUGS1_43258
if 
  has_car_recording_been_loaded 285
goto_if_false @DRUGS1_43258
if 
  has_car_recording_been_loaded 286
goto_if_false @DRUGS1_43258
if 
  has_model_loaded #STORM_DRAIN_COVER
goto_if_false @DRUGS1_43258
if 
  has_model_loaded #BARREL4
goto_if_false @DRUGS1_43258
277@ = 3

:DRUGS1_43258
switch_start 277@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_43583 {caseNum1} 3 {caseLabel1} @DRUGS1_43321 {caseNum2} 7 {caseLabel2} @DRUGS1_43416 {caseNum3} 8 {caseLabel3} @DRUGS1_43472 {caseNum4} -1 {caseLabel4} @DRUGS1_43583 {caseNum5} -1 {caseLabel5} @DRUGS1_43583 {caseNum6} -1 {caseLabel6} @DRUGS1_43583 {caseNum7} -1 {caseLabel7} @DRUGS1_43583

:DRUGS1_43321
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_43409
TIMERA = 0
start_playback_recorded_car 161@ {path} 282
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_43376
set_car_health 188@ {health} 300

:DRUGS1_43376
$z = 1.0
277@ = 7
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_43409

:DRUGS1_43409
goto @DRUGS1_43583

:DRUGS1_43416
277@ = 8
do_fade 250 {direction} Fade.In
TIMERA = 0
TIMERB = 0
151@ = 0
159@ = 0
160@ = 0
goto @DRUGS1_43583

:DRUGS1_43472
gosub @DRUGS1_50300
gosub @DRUGS1_50554
gosub @DRUGS1_51029
if 
  TIMERA > 1800
goto_if_false @DRUGS1_43576
if 
  278@ == 0
goto_if_false @DRUGS1_43537
278@ = 1

:DRUGS1_43537
set_fixed_camera_position 130@ {y} 131@ {z} 132@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 133@ {y} 134@ {z} 135@ {switchStyle} SwitchType.JumpCut

:DRUGS1_43576
goto @DRUGS1_43583

:DRUGS1_43583
if 
  278@ == 1
goto_if_false @DRUGS1_43764
if 
  not is_char_dead 37@
goto_if_false @DRUGS1_43640
set_lvar_int_to_lvar_int 79@ = 37@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_43640
if 
  not is_char_dead 38@
goto_if_false @DRUGS1_43679
set_lvar_int_to_lvar_int 79@ = 38@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_43679
if 
  not is_char_dead 39@
goto_if_false @DRUGS1_43718
set_lvar_int_to_lvar_int 79@ = 39@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_43718
if 
  not is_char_dead 40@
goto_if_false @DRUGS1_43757
set_lvar_int_to_lvar_int 79@ = 40@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_43757
278@ = 2

:DRUGS1_43764
if 
  278@ == 2
goto_if_false @DRUGS1_43808
if 
  TIMERB > 3400
goto_if_false @DRUGS1_43808
278@ = 3

:DRUGS1_43808
if 
  278@ == 3
goto_if_false @DRUGS1_43918
if 
  TIMERB > 3480
goto_if_false @DRUGS1_43918
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_43918
freeze_car_position 188@ {state} False
explode_car 188@
add_explosion 2570.228 {y} -1684.949 {z} 2.2595 {type} ExplosionType.Grenade
add_explosion 2570.228 {y} -1684.949 {z} 2.2595 {type} ExplosionType.Molotov
278@ = 4

:DRUGS1_43918
if 
  278@ == 4
goto_if_false @DRUGS1_44002
if 
  TIMERB > 3550
goto_if_false @DRUGS1_44002
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_43995
explode_car 165@
add_explosion 2575.269 {y} -1677.076 {z} 1.0414 {type} ExplosionType.Molotov

:DRUGS1_43995
278@ = 5

:DRUGS1_44002
if 
  278@ == 5
goto_if_false @DRUGS1_44086
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_44086
if 
  TIMERB > 3625
goto_if_false @DRUGS1_44086
explode_car 166@
add_explosion 2568.749 {y} -1676.139 {z} 1.209 {type} ExplosionType.Rocket
278@ = 6

:DRUGS1_44086
if 
  277@ > 7
goto_if_false @DRUGS1_44172
if 
  TIMERB > 4599
goto_if_false @DRUGS1_44172
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
279@ = 2
277@ = 10

:DRUGS1_44172
if 
  279@ == 2
goto_if_false @DRUGS1_50293
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_50293
if 
  280@ == 0
goto_if_false @DRUGS1_45765
switch_widescreen False
set_player_control $player1 {state} True
set_heading_for_attached_player $player1 {heading} 263.0 {headingRange} 350.0
restore_camera_jumpcut 
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_44298
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_44298
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
152@ = create_object_no_offset #STORM_DRAIN_COVER {x} 2631.8521 {y} -1482.75 {z} 18.109
281@ = 1
282@ = 0
283@ = 0
285@ = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11073
set_object_health 152@ {health} 150
153@ = create_object #BARREL4 {x} 2786.521 {y} -1416.051 {z} 15.31
154@ = create_object #BARREL4 {x} 2787.5481 {y} -1418.323 {z} 15.31
155@ = create_object #BARREL4 {x} 2824.324 {y} -1418.704 {z} 15.31
156@ = create_object #BARREL4 {x} 2822.1599 {y} -1419.988 {z} 15.31
157@ = create_object #BARREL4 {x} 2823.05 {y} -1418.7469 {z} 15.3
mark_model_as_no_longer_needed 443
168@ = create_car 560 {x} 2601.689 {y} -1600.1071 {z} 3.1106
set_car_heading 168@ {heading} 61.4469
258@ = 1
169@ = create_car 560 {x} 2595.717 {y} -1558.29 {z} 8.4514
set_car_heading 169@ {heading} 287.8971
259@ = 1
48@ = create_char PedType.Mission1 {modelId} 111 {x} 2601.4409 {y} -1597.4611 {z} 3.2207
set_char_heading 48@ {heading} 135.3988
set_char_health 48@ {health} 20
set_char_decision_maker 48@ {handleOrTemplate} 35@
give_weapon_to_char 48@ {weaponType} WeaponType.MicroUzi {ammo} 3000
231@ = add_blip_for_char 48@
change_blip_display 231@ {display} BlipDisplay.BlipOnly
change_blip_scale 231@ {size} 2
49@ = create_char PedType.Mission1 {modelId} 111 {x} 2596.7649 {y} -1559.589 {z} 8.277
set_char_heading 49@ {heading} 201.1592
set_char_health 49@ {health} 20
set_char_decision_maker 49@ {handleOrTemplate} 35@
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 3000
232@ = add_blip_for_char 49@
change_blip_display 232@ {display} BlipDisplay.BlipOnly
change_blip_scale 232@ {size} 2
50@ = create_char PedType.Mission1 {modelId} 111 {x} 2596.9409 {y} -1555.855 {z} 8.9717
set_char_heading 50@ {heading} 201.1592
set_char_health 50@ {health} 20
set_char_decision_maker 50@ {handleOrTemplate} 35@
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 3000
233@ = add_blip_for_char 50@
change_blip_display 233@ {display} BlipDisplay.BlipOnly
change_blip_scale 233@ {size} 2
51@ = create_char PedType.Mission1 {modelId} 111 {x} 2624.8191 {y} -1494.002 {z} 15.4086
set_char_heading 51@ {heading} 145.1087
set_char_health 51@ {health} 10
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 3000
234@ = add_blip_for_char 51@
change_blip_display 234@ {display} BlipDisplay.BlipOnly
change_blip_scale 234@ {size} 2
53@ = create_char PedType.Mission1 {modelId} 111 {x} 2625.4131 {y} -1496.587 {z} 15.3563
set_char_heading 53@ {heading} 153.8693
set_char_health 53@ {health} 10
set_char_decision_maker 53@ {handleOrTemplate} 35@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 3000
235@ = add_blip_for_char 53@
change_blip_display 235@ {display} BlipDisplay.BlipOnly
change_blip_scale 235@ {size} 2
189@ = create_car 581 {x} 2539.344 {y} -1712.77 {z} 12.4719
set_car_heading 189@ {heading} 287.1995
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 43@ {handleOrTemplate} 35@
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} 10
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} 10
247@ = 1
260@ = 1
194@ = create_car 581 {x} 2533.5681 {y} -1714.569 {z} 12.4874
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 287.5564
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 45@ {handleOrTemplate} 35@
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_health 44@ {health} 50
set_char_health 45@ {health} 50
248@ = 1
261@ = 1
195@ = create_car 581 {x} 2529.6831 {y} -1715.803 {z} 12.4991
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 287.7722
46@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
47@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 47@ {handleOrTemplate} 35@
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_health 46@ {health} 30
set_char_only_damaged_by_player 46@ {state} 10
set_char_health 47@ {health} 30
set_char_only_damaged_by_player 47@ {state} 10
249@ = 1
262@ = 1
196@ = create_car 581 {x} 2524.542 {y} -1717.4611 {z} 12.5175
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 287.8176
56@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
57@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 57@ {handleOrTemplate} 35@
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
250@ = 1
263@ = 1
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_45602
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_45602
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_45641
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45641
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_45680
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_45680
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_45719
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45719
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_45758
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45758
280@ = 1

:DRUGS1_45765
if 
  280@ == 1
goto_if_false @DRUGS1_46173
if 
  locate_car_2d 161@ {x} 2580.74 {y} -1621.47 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_46173
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_45845
start_playback_recorded_car 189@ {path} 283

:DRUGS1_45845
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_45869
start_playback_recorded_car 194@ {path} 284

:DRUGS1_45869
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_45893
start_playback_recorded_car 195@ {path} 285

:DRUGS1_45893
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_45917
start_playback_recorded_car 196@ {path} 286

:DRUGS1_45917
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_45969
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_45969
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_46022
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_46022
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_46074
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_46074
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_46126
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_46126
mark_car_as_no_longer_needed 165@
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 197@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
280@ = 2

:DRUGS1_46173
if 
  280@ == 2
goto_if_false @DRUGS1_46312
if 
  locate_car_2d 161@ {x} 2676.96 {y} -1432.1 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_46312
delete_char 48@
delete_char 49@
delete_char 50@
delete_car 168@
delete_car 169@
delete_car 188@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 53@
remove_blip 231@
remove_blip 232@
remove_blip 233@
remove_blip 234@
remove_blip 235@
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11117
280@ = 3

:DRUGS1_46312
if 
  280@ == 3
goto_if_false @DRUGS1_46512
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_46512
if 
  locate_car_2d 161@ {x} 2825.3701 {y} -1538.4301 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS1_46512
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2823.7549 {y} -1537.1379 {z} 10.0736 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2823.25 {y} -1537.9659 {z} 10.3176 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11118

:DRUGS1_46459
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_46485
wait 0
goto @DRUGS1_46459

:DRUGS1_46485
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_JS' {time} 5000 {flag} 1
280@ = 4

:DRUGS1_46512
if 
  280@ == 4
goto_if_false @DRUGS1_46768
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_46768
if 
  locate_stopped_car_2d 161@ {x} 2825.3701 {y} -1538.4301 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_46768
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_46768
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_46768
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_46768
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KA' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11080
delete_char 43@
delete_char 44@
delete_car 189@
remove_blip 214@
delete_char 45@
delete_char 46@
delete_car 194@
remove_blip 215@
delete_char 47@
delete_char 48@
delete_car 195@
remove_blip 216@
delete_char 56@
delete_char 57@
delete_car 196@
remove_blip 217@
task_look_at_char $big_smoke {target} $scplayer {time} 10000
TIMERA = 0
280@ = 5

:DRUGS1_46768
if 
  280@ == 5
goto_if_false @DRUGS1_46975
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_46975
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_46975
set_fixed_camera_position 2819.666 {y} -1542.108 {z} 10.2063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.4009 {y} -1541.444 {z} 10.3396 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_46893
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_46893
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KC' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11081
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 80
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS1_46968
task_leave_any_car $scplayer

:DRUGS1_46968
280@ = 6

:DRUGS1_46975
if 
  280@ == 6
goto_if_false @DRUGS1_47054
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS1_47054
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47054
task_look_at_char $scplayer {target} $big_smoke {time} 15000
task_look_at_char $big_smoke {target} $scplayer {time} 15000
280@ = 7

:DRUGS1_47054
if 
  280@ == 7
goto_if_false @DRUGS1_47142
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47142
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47142
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KD' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11119
280@ = 8

:DRUGS1_47142
if 
  280@ == 8
goto_if_false @DRUGS1_47259
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47259
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47259
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47211
stop_char_facial_talk $big_smoke

:DRUGS1_47211
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KE' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11120
280@ = 9

:DRUGS1_47259
if 
  280@ == 9
goto_if_false @DRUGS1_47354
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47354
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47354
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KF' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11082
TIMERA = 0
280@ = 10

:DRUGS1_47354
if 
  280@ == 10
goto_if_false @DRUGS1_47558
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_47558
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47558
if 
  TIMERA > 3000
goto_if_false @DRUGS1_47558
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47558
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47558
stop_char_facial_talk $scplayer
set_car_straight_line_distance 161@ {distance} 200
task_car_drive_to_coord $big_smoke {vehicle} 161@ {x} 2804.5 {y} -1538.95 {z} 10.38 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KG' {time} 2500 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47544
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_47544
TIMERA = 0
280@ = 11

:DRUGS1_47558
if 
  280@ == 11
goto_if_false @DRUGS1_47677
if 
  TIMERA > 2000
goto_if_false @DRUGS1_47677
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47677
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47631
stop_char_facial_talk $big_smoke

:DRUGS1_47631
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_car 161@
delete_char $big_smoke
clear_onscreen_counter $smokeshoot_s4flag
clear_prints 
goto @DRUGS1_51847
280@ = 12

:DRUGS1_47677
if 
  281@ == 1
goto_if_false @DRUGS1_47804
if 
  has_object_of_type_been_smashed 2631.8521 {y} -1482.75 {z} 18.109 {radius} 10.0 {modelId} #STORM_DRAIN_COVER
goto_if_false @DRUGS1_47804
if 
  has_object_been_damaged_by_weapon 152@ {weaponType} WeaponType.MicroUzi
goto_if_false @DRUGS1_47765
clear_prints 
281@ = 2
goto @DRUGS1_47804

:DRUGS1_47765
$smokeshoot_s4flag = get_car_health 161@
$smokeshoot_s4flag -= 100
set_car_health 161@ {health} $smokeshoot_s4flag
$smokeshoot_s4flag /= 10
clear_prints 
281@ = 3

:DRUGS1_47804
if 
  280@ > 0
goto_if_false @DRUGS1_48455
if 
  4 > 280@
goto_if_false @DRUGS1_48455
if 
  282@ == 0
goto_if_false @DRUGS1_47905
if 
  283@ == 0
goto_if_false @DRUGS1_47905
set_lvar_int_to_constant 239@ = 11073
set_lvar_text_label 240@s = 'SMO4_JE'
gosub @DRUGS1_51404

:DRUGS1_47905
if 
  282@ == 1
goto_if_false @DRUGS1_47970
if 
  283@ == 0
goto_if_false @DRUGS1_47970
set_lvar_int_to_constant 239@ = 11074
set_lvar_text_label 240@s = 'SMO4_JF'
gosub @DRUGS1_51404

:DRUGS1_47970
if 
  282@ == 2
goto_if_false @DRUGS1_48035
if 
  283@ == 0
goto_if_false @DRUGS1_48035
set_lvar_int_to_constant 239@ = 11075
set_lvar_text_label 240@s = 'SMO4_JG'
gosub @DRUGS1_51404

:DRUGS1_48035
if 
  282@ == 3
goto_if_false @DRUGS1_48172
if 
  283@ == 0
goto_if_false @DRUGS1_48172
if 
  281@ == 2
goto_if_false @DRUGS1_48125
set_lvar_int_to_constant 239@ = 11076
set_lvar_text_label 240@s = 'SMO4_JH'
gosub @DRUGS1_51404
goto @DRUGS1_48172

:DRUGS1_48125
if 
  281@ == 3
goto_if_false @DRUGS1_48172
set_lvar_int_to_constant 239@ = 11077
set_lvar_text_label 240@s = 'SMO4_JJ'
gosub @DRUGS1_51404

:DRUGS1_48172
if 
  285@ == 0
goto_if_false @DRUGS1_48235
if 
  locate_car_2d 161@ {x} 2647.3101 {y} -1457.67 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_48235
285@ = 1

:DRUGS1_48235
if 
  282@ == 4
goto_if_false @DRUGS1_48318
if 
  283@ == 0
goto_if_false @DRUGS1_48318
if 
  285@ == 1
goto_if_false @DRUGS1_48318
set_lvar_int_to_constant 239@ = 11110
set_lvar_text_label 240@s = 'SMO4_JK'
gosub @DRUGS1_51404

:DRUGS1_48318
if 
  282@ == 5
goto_if_false @DRUGS1_48383
if 
  283@ == 0
goto_if_false @DRUGS1_48383
set_lvar_int_to_constant 239@ = 11078
set_lvar_text_label 240@s = 'SMO4_JL'
gosub @DRUGS1_51404

:DRUGS1_48383
if 
  282@ == 6
goto_if_false @DRUGS1_48448
if 
  283@ == 0
goto_if_false @DRUGS1_48448
set_lvar_int_to_constant 239@ = 11114
set_lvar_text_label 240@s = 'SMO4_JP'
gosub @DRUGS1_51404

:DRUGS1_48448
gosub @DRUGS1_51446

:DRUGS1_48455
if 
  258@ == 1
goto_if_false @DRUGS1_48520
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_48520
if 
  has_car_been_damaged_by_char 168@ {handle} $scplayer
goto_if_false @DRUGS1_48520
explode_car 168@
258@ = 2

:DRUGS1_48520
if 
  259@ == 1
goto_if_false @DRUGS1_48585
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_48585
if 
  has_car_been_damaged_by_char 169@ {handle} $scplayer
goto_if_false @DRUGS1_48585
explode_car 169@
259@ = 2

:DRUGS1_48585
if 
  247@ == 1
goto_if_false @DRUGS1_48833
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_48833
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_48642
goto @DRUGS1_48833

:DRUGS1_48642
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_48791
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_48784
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_48784
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_48784
goto @DRUGS1_48833

:DRUGS1_48791
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_48833
if 
  247@ == 2
goto_if_false @DRUGS1_48925
if 
  is_char_dead 43@
goto_if_false @DRUGS1_48925
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_48918
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_48918
247@ = 3

:DRUGS1_48925
if 
  260@ == 1
goto_if_false @DRUGS1_49012
if 
  is_char_dead 42@
goto_if_false @DRUGS1_49012
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_49012
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_49012
if 
  248@ == 1
goto_if_false @DRUGS1_49260
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_49260
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_49069
goto @DRUGS1_49260

:DRUGS1_49069
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_49218
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_49211
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_49211
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_49211
goto @DRUGS1_49260

:DRUGS1_49218
set_car_forward_speed 194@ {forwardSpeed} 18.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_49260
if 
  248@ == 2
goto_if_false @DRUGS1_49352
if 
  is_char_dead 45@
goto_if_false @DRUGS1_49352
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_49345
set_car_forward_speed 194@ {forwardSpeed} 18.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_49345
248@ = 3

:DRUGS1_49352
if 
  261@ == 1
goto_if_false @DRUGS1_49439
if 
  is_char_dead 44@
goto_if_false @DRUGS1_49439
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_49439
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_49439
if 
  249@ == 1
goto_if_false @DRUGS1_49687
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_49687
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_49496
goto @DRUGS1_49687

:DRUGS1_49496
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_49645
if 
  is_char_in_car 47@ {vehicle} 195@
goto_if_false @DRUGS1_49638
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_49638
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 195@
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
249@ = 2

:DRUGS1_49638
goto @DRUGS1_49687

:DRUGS1_49645
set_car_forward_speed 195@ {forwardSpeed} 18.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003
249@ = 2

:DRUGS1_49687
if 
  249@ == 2
goto_if_false @DRUGS1_49779
if 
  is_char_dead 47@
goto_if_false @DRUGS1_49779
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_49772
set_car_forward_speed 195@ {forwardSpeed} 18.0
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_49772
249@ = 3

:DRUGS1_49779
if 
  262@ == 1
goto_if_false @DRUGS1_49866
if 
  is_char_dead 46@
goto_if_false @DRUGS1_49866
if or
  is_char_dead 47@
  is_car_dead 195@
goto_if_false @DRUGS1_49866
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
262@ = 2

:DRUGS1_49866
if 
  250@ == 1
goto_if_false @DRUGS1_50114
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_50114
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_49923
goto @DRUGS1_50114

:DRUGS1_49923
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_50072
if 
  is_char_in_car 57@ {vehicle} 196@
goto_if_false @DRUGS1_50065
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_50065
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 196@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
250@ = 2

:DRUGS1_50065
goto @DRUGS1_50114

:DRUGS1_50072
set_car_forward_speed 196@ {forwardSpeed} 18.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003
250@ = 2

:DRUGS1_50114
if 
  250@ == 2
goto_if_false @DRUGS1_50206
if 
  is_char_dead 57@
goto_if_false @DRUGS1_50206
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_50199
set_car_forward_speed 196@ {forwardSpeed} 18.0
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_50199
250@ = 3

:DRUGS1_50206
if 
  263@ == 1
goto_if_false @DRUGS1_50293
if 
  is_char_dead 56@
goto_if_false @DRUGS1_50293
if or
  is_char_dead 57@
  is_car_dead 196@
goto_if_false @DRUGS1_50293
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
263@ = 2

:DRUGS1_50293
goto @DRUGS1_1346

:DRUGS1_50300
switch_start 151@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_50552 {caseNum1} 0 {caseLabel1} @DRUGS1_50363 {caseNum2} 1 {caseLabel2} @DRUGS1_50394 {caseNum3} 2 {caseLabel3} @DRUGS1_50473 {caseNum4} -1 {caseLabel4} @DRUGS1_50552 {caseNum5} -1 {caseLabel5} @DRUGS1_50552 {caseNum6} -1 {caseLabel6} @DRUGS1_50552 {caseNum7} -1 {caseLabel7} @DRUGS1_50552

:DRUGS1_50363
set_time_scale 0.8
158@ = 0.8
151@ += 1
goto @DRUGS1_50552

:DRUGS1_50394
if 
  TIMERB > 3200
goto_if_false @DRUGS1_50466
sub_timed_val_from_float_lvar 158@ -=@ 0.05
if 
  0.3 > 158@
goto_if_false @DRUGS1_50461
158@ = 0.3
151@ += 1

:DRUGS1_50461
set_time_scale 158@

:DRUGS1_50466
goto @DRUGS1_50552

:DRUGS1_50473
if 
  TIMERB > 4000
goto_if_false @DRUGS1_50545
add_timed_val_to_float_lvar 158@ +=@ 0.05
if 
  158@ > 1.0
goto_if_false @DRUGS1_50540
158@ = 1.0
151@ += 1

:DRUGS1_50540
set_time_scale 158@

:DRUGS1_50545
goto @DRUGS1_50552

:DRUGS1_50552
return 

:DRUGS1_50554
switch_start 159@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51027 {caseNum1} 0 {caseLabel1} @DRUGS1_50617 {caseNum2} 1 {caseLabel2} @DRUGS1_50787 {caseNum3} 2 {caseLabel3} @DRUGS1_50912 {caseNum4} -1 {caseLabel4} @DRUGS1_51027 {caseNum5} -1 {caseLabel5} @DRUGS1_51027 {caseNum6} -1 {caseLabel6} @DRUGS1_51027 {caseNum7} -1 {caseLabel7} @DRUGS1_51027

:DRUGS1_50617
133@, 134@, 135@ = get_car_coordinates 161@
130@, 131@, 132@ = get_offset_from_car_in_world_coords 161@ {xOffset} 1.0 {yOffset} -2.5 {zOffset} 0.0
130@ = 2563.28
131@ = -1737.328
132@ = 1.1412
133@ = 2562.6499
134@ = -1734.725
135@ = 1.1991
136@ = 0.001
137@ = 0.0
139@ = 0.03
140@ = 0.1
148@ = 0.47
141@ = 0.003
159@ += 1

:DRUGS1_50787
if 
  2900 > TIMERB
goto_if_false @DRUGS1_50895
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_50857
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_50857
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51027
goto @DRUGS1_50912

:DRUGS1_50895
136@ = -0.01
159@ += 1

:DRUGS1_50912
if 
  4000 > TIMERB
goto_if_false @DRUGS1_51020
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_50982
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_50982
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51027
goto @DRUGS1_51027

:DRUGS1_51020
159@ += 1

:DRUGS1_51027
return 

:DRUGS1_51029
switch_start 160@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51402 {caseNum1} 0 {caseLabel1} @DRUGS1_51092 {caseNum2} 1 {caseLabel2} @DRUGS1_51169 {caseNum3} 2 {caseLabel3} @DRUGS1_51268 {caseNum4} -1 {caseLabel4} @DRUGS1_51402 {caseNum5} -1 {caseLabel5} @DRUGS1_51402 {caseNum6} -1 {caseLabel6} @DRUGS1_51402 {caseNum7} -1 {caseLabel7} @DRUGS1_51402

:DRUGS1_51092
143@ = 0.007
144@ = 0.012
145@ = 0.045
146@ = 0.06
149@ = 0.32
147@ = 0.005
150@ = 0.1
160@ += 1

:DRUGS1_51169
if 
  2800 > TIMERB
goto_if_false @DRUGS1_51261
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51223
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51223
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51402
goto @DRUGS1_51268

:DRUGS1_51261
160@ += 1

:DRUGS1_51268
if 
  3600 > TIMERB
goto_if_false @DRUGS1_51388
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51322
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51322
add_timed_float_lvar_to_float_lvar 147@ +=@ 144@
if 
  is_float_lvar_greater_than_float_lvar 147@ > 150@
goto_if_false @DRUGS1_51357
set_lvar_float_to_lvar_float 147@ = 150@

:DRUGS1_51357
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51395

:DRUGS1_51388
160@ += 1

:DRUGS1_51395
goto @DRUGS1_51402

:DRUGS1_51402
return 

:DRUGS1_51404
if 
  283@ == 0
goto_if_false @DRUGS1_51444
load_mission_audio MissionAudioSlot.Slot1 {audioId} 239@
set_lvar_text_label 237@s = 240@s
283@ = 1

:DRUGS1_51444
return 

:DRUGS1_51446
if 
  283@ == 1
goto_if_false @DRUGS1_51500
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_51500
print_now 237@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
283@ = 2

:DRUGS1_51500
if 
  283@ == 2
goto_if_false @DRUGS1_51553
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_51553
282@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
283@ = 0

:DRUGS1_51553
return 

:DRUGS1_51555
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 78@
perform_sequence_task 79@ {sequence} 78@
clear_sequence_task 78@
return 

:DRUGS1_51610
65@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 84@ {y} 85@ {z} 86@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 65@
perform_sequence_task 79@ {sequence} 65@
clear_sequence_task 65@
return 

:DRUGS1_51698
66@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 66@
perform_sequence_task 79@ {sequence} 66@
clear_sequence_task 66@
return 

:DRUGS1_51747
67@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 67@
perform_sequence_task 79@ {sequence} 67@
clear_sequence_task 67@
return 

:DRUGS1_51791
68@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 68@
perform_sequence_task 79@ {sequence} 68@
clear_sequence_task 68@
return 

:DRUGS1_51829
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRUGS1_51847
$flag_smoke_mission_counter += 1
remove_blip $smoke_contact_blip
register_mission_passed 'SMOKE_4'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 10
clear_wanted_level $player1
return 

:DRUGS1_51907
$onmission = 0
switch_roads_on 1694.12 {leftBottomY} -1604.33 {leftBottomZ} 5.0 {rightTopX} 1805.9399 {rightTopY} -1593.12 {rightTopZ} 15.0
remove_char_elegantly $big_smoke
unload_special_character 1
disable_all_entry_exits False
remove_blip 87@
remove_blip 88@
remove_blip 89@
remove_blip 209@
remove_blip 210@
remove_blip 211@
remove_blip 212@
remove_blip 213@
remove_blip 214@
remove_blip 215@
remove_blip 216@
remove_blip 217@
remove_blip 218@
remove_blip 219@
remove_blip 220@
remove_blip 229@
remove_blip 223@
remove_blip 224@
remove_blip 225@
remove_blip 226@
remove_blip 227@
remove_blip 228@
remove_blip 229@
remove_blip 230@
remove_blip 231@
remove_blip 232@
remove_blip 233@
remove_blip 234@
remove_blip 235@
remove_blip 226@
remove_blip 227@
remove_blip 236@
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 112
mark_model_as_no_longer_needed 581
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
remove_animation "JST_BUISNESS"
mark_model_as_no_longer_needed 560
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed 516
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 443
mark_model_as_no_longer_needed #STORM_DRAIN_COVER
mark_model_as_no_longer_needed #BARREL4
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_wanted_multiplier 1.0
set_max_wanted_level 4
clear_onscreen_counter $s2_random_int
clear_onscreen_counter $smokeshoot_s4flag
if 
  is_player_playing $player1
goto_if_false @DRUGS1_52301
shut_char_up $scplayer {state} False
set_player_enter_car_button $player1 {enabled} True
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
shut_char_up_for_scripted_speech $scplayer {state} False

:DRUGS1_52301
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_52324
set_char_can_be_knocked_off_bike $big_smoke {stayOnBike} False

:DRUGS1_52324
release_weather 
detach_char_from_car $scplayer
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
switch_emergency_services True
$timer_mobile_start = get_game_timer 
mission_has_finished 
if 
  is_player_playing $player1
goto_if_false @DRUGS1_52709
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_52397
task_kill_char_on_foot 42@ {target} $scplayer

:DRUGS1_52397
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_52421
task_kill_char_on_foot 43@ {target} $scplayer

:DRUGS1_52421
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_52445
task_kill_char_on_foot 44@ {target} $scplayer

:DRUGS1_52445
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_52469
task_kill_char_on_foot 45@ {target} $scplayer

:DRUGS1_52469
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_52493
task_kill_char_on_foot 46@ {target} $scplayer

:DRUGS1_52493
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_52517
task_kill_char_on_foot 47@ {target} $scplayer

:DRUGS1_52517
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_52541
task_kill_char_on_foot 48@ {target} $scplayer

:DRUGS1_52541
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_52565
task_kill_char_on_foot 49@ {target} $scplayer

:DRUGS1_52565
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_52589
task_kill_char_on_foot 50@ {target} $scplayer

:DRUGS1_52589
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_52613
task_kill_char_on_foot 51@ {target} $scplayer

:DRUGS1_52613
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_52637
task_kill_char_on_foot 52@ {target} $scplayer

:DRUGS1_52637
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_52661
task_kill_char_on_foot 53@ {target} $scplayer

:DRUGS1_52661
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_52685
task_kill_char_on_foot 54@ {target} $scplayer

:DRUGS1_52685
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_52709
task_kill_char_on_foot 55@ {target} $scplayer

:DRUGS1_52709
return 

//-------------Mission 31---------------
// Originally: Life's a Beach

:MUSIC1
script_name 'MUSIC1'
gosub @MUSIC1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC1_38
gosub @MUSIC1_15646

:MUSIC1_38
gosub @MUSIC1_15719
terminate_this_script 

:MUSIC1_47
register_mission_given 
load_mission_text 'STRAP1'
$onmission = 1
wait 0
34@ = 526.84
35@ = -1885.1899
36@ = 2.4
set_lvar_float_to_lvar_float 39@ = 34@
39@ += 2.5
set_lvar_float_to_lvar_float 40@ = 35@
40@ += 3.5
41@ = 2.79
set_lvar_float_to_lvar_float 42@ = 34@
42@ -= 7.0
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 9.8
44@ = 2.06
set_lvar_float_to_lvar_float 48@ = 39@
48@ += 9.0
set_lvar_float_to_lvar_float 49@ = 40@
49@ += 4.0
set_lvar_float_to_lvar_float 50@ = 41@
51@ = 340.0
52@ = 1643.42
53@ = -1524.6899
54@ = 12.61
set_lvar_float_to_lvar_float 56@ = 48@
56@ -= 1.08
set_lvar_float_to_lvar_float 57@ = 49@
57@ -= 3.05
set_lvar_float_to_lvar_float 58@ = 56@
58@ -= 0.54
set_lvar_float_to_lvar_float 59@ = 57@
59@ -= 1.53
60@ = 3.14
61@ = 21
set_lvar_float_to_lvar_float 83@ = 39@
83@ += 10.0
set_lvar_float_to_lvar_float 104@ = 40@
104@ -= 6.0
125@ = 300.0
set_lvar_float_to_lvar_float 84@ = 83@
84@ += 3.0
set_lvar_float_to_lvar_float 105@ = 104@
set_lvar_float_to_lvar_float 126@ = 125@
126@ += 120.0
set_lvar_float_to_lvar_float 85@ = 83@
85@ += 3.0
set_lvar_float_to_lvar_float 106@ = 104@
106@ += 3.0
set_lvar_float_to_lvar_float 127@ = 125@
127@ += 240.0
set_lvar_float_to_lvar_float 86@ = 34@
86@ += 17.5
set_lvar_float_to_lvar_float 107@ = 35@
107@ += 3.0
128@ = 270.0
set_lvar_float_to_lvar_float 87@ = 86@
87@ += 1.0
set_lvar_float_to_lvar_float 108@ = 107@
set_lvar_float_to_lvar_float 129@ = 128@
129@ -= 180.0
set_lvar_float_to_lvar_float 88@ = 39@
88@ -= 2.0
set_lvar_float_to_lvar_float 109@ = 40@
109@ -= 8.0
130@ = 315.0
set_lvar_float_to_lvar_float 89@ = 88@
89@ += 2.5
set_lvar_float_to_lvar_float 110@ = 109@
set_lvar_float_to_lvar_float 131@ = 130@
131@ += 90.0
set_lvar_float_to_lvar_float 90@ = 88@
90@ += 2.5
set_lvar_float_to_lvar_float 111@ = 109@
111@ += 2.5
set_lvar_float_to_lvar_float 132@ = 130@
132@ += 180.0
set_lvar_float_to_lvar_float 91@ = 88@
set_lvar_float_to_lvar_float 112@ = 109@
112@ += 2.5
set_lvar_float_to_lvar_float 133@ = 130@
133@ += 270.0
set_lvar_float_to_lvar_float 92@ = 34@
92@ += 12.0
set_lvar_float_to_lvar_float 113@ = 35@
113@ -= 9.5
134@ = 0.0
set_lvar_float_to_lvar_float 93@ = 92@
93@ -= 0.5
set_lvar_float_to_lvar_float 114@ = 113@
114@ += 1.5
set_lvar_float_to_lvar_float 135@ = 134@
135@ += 180.0
set_lvar_float_to_lvar_float 94@ = 42@
set_lvar_float_to_lvar_float 115@ = 43@
115@ += 5.0
136@ = 200.0
set_lvar_float_to_lvar_float 95@ = 42@
95@ += 3.0
set_lvar_float_to_lvar_float 116@ = 43@
116@ += 3.5
137@ = 170.0
set_lvar_float_to_lvar_float 96@ = 42@
96@ += 4.0
set_lvar_float_to_lvar_float 117@ = 43@
138@ = 0.0
set_lvar_float_to_lvar_float 97@ = 42@
97@ += 5.0
set_lvar_float_to_lvar_float 118@ = 43@
118@ += 2.0
139@ = 270.0
set_lvar_float_to_lvar_float 98@ = 39@
98@ += 1.0
set_lvar_float_to_lvar_float 119@ = 40@
119@ += 6.0
140@ = 270.0
set_lvar_float_to_lvar_float 99@ = 98@
99@ += 1.5
set_lvar_float_to_lvar_float 120@ = 119@
120@ += 1.5
set_lvar_float_to_lvar_float 141@ = 140@
141@ -= 90.0
set_lvar_float_to_lvar_float 100@ = 98@
100@ += 3.0
set_lvar_float_to_lvar_float 121@ = 119@
set_lvar_float_to_lvar_float 142@ = 140@
142@ -= 180.0
set_lvar_float_to_lvar_float 101@ = 98@
101@ += 1.5
set_lvar_float_to_lvar_float 122@ = 119@
122@ -= 1.5
set_lvar_float_to_lvar_float 143@ = 140@
143@ -= 270.0
set_lvar_float_to_lvar_float 102@ = 48@
102@ -= 3.0
set_lvar_float_to_lvar_float 123@ = 49@
123@ -= 1.0
144@ = 0.0
set_lvar_float_to_lvar_float 103@ = 102@
set_lvar_float_to_lvar_float 124@ = 123@
124@ += 1.0
set_lvar_float_to_lvar_float 145@ = 144@
145@ += 180.0
162@ = 20.0
set_lvar_float_to_lvar_float 163@ = 162@
163@ *= 4.0
146@ = 7
gosub @MUSIC1_14072
187@ = 0
188@ = 0
190@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
207@ = 0
208@ = 0
205@ = 0
206@ = 0
209@ = 0
267@ = 0
268@ = 0
269@ = 0
231@ = 0
170@ = 0

:MUSIC1_1557
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_1653
210@(170@,21i) = 0
232@(170@,21i) = 0
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_1639
253@(170@,7i) = 0
260@(170@,7i) = 0

:MUSIC1_1639
170@ += 1
goto @MUSIC1_1557

:MUSIC1_1653
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:MUSIC1_1668
if 
  get_fading_status 
goto_if_false @MUSIC1_1692
wait 0
goto @MUSIC1_1668

:MUSIC1_1692
clear_area 809.5818 {y} -1630.573 {z} 12.5469 {radius} 100.0 {clearParticles} False
load_scene 809.5818 {y} -1630.573 {z} 12.5469
make_player_gang_disappear 
load_cutscene 'STRAP1A'

:MUSIC1_1746
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC1_1770
wait 0
goto @MUSIC1_1746

:MUSIC1_1770
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC1_1779
if 
  not has_cutscene_finished 
goto_if_false @MUSIC1_1803
wait 0
goto @MUSIC1_1779

:MUSIC1_1803
do_fade 0 {direction} Fade.Out

:MUSIC1_1809
if 
  get_fading_status 
goto_if_false @MUSIC1_1833
wait 0
goto @MUSIC1_1809

:MUSIC1_1833
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
request_model 412
request_model 419
request_model 467
request_model 413
request_model 353
request_model 13
request_model 93
request_model 22
request_model 99
request_model 211
request_model 101
request_model 217
request_model 19
request_model 91
request_model 55
request_vehicle_mod #WHEEL_OR1
stream_script 35
load_all_models_now 

:MUSIC1_1922
if or
  not has_model_loaded 412
  not has_model_loaded 419
  not has_model_loaded 467
  not has_model_loaded 413
  not has_model_loaded 353
goto_if_false @MUSIC1_1969
wait 0
goto @MUSIC1_1922

:MUSIC1_1969
if 
  not has_model_loaded 13
goto_if_false @MUSIC1_1995
wait 0
goto @MUSIC1_1969

:MUSIC1_1995
if or
  not has_model_loaded 93
  not has_model_loaded 22
  not has_model_loaded 99
  not has_model_loaded 211
  not has_model_loaded 101
  not has_model_loaded 217
goto_if_false @MUSIC1_2043
wait 0
goto @MUSIC1_1995

:MUSIC1_2043
if or
  not has_model_loaded 19
  not has_model_loaded 91
  not has_model_loaded 55
goto_if_false @MUSIC1_2077
wait 0
goto @MUSIC1_2043

:MUSIC1_2077
if or
  not has_vehicle_mod_loaded #WHEEL_OR1
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_2108
wait 0
goto @MUSIC1_2077

:MUSIC1_2108
change_garage_type 'MUL_LAN' {type} GarageType.ForScriptToOpenAndClose
switch_ped_roads_off 502.15 {leftBottomY} -1913.39 {leftBottomZ} -5.0 {rightTopX} 558.86 {rightTopY} -1838.87 {rightTopZ} 10.0
load_scene 809.5818 {y} -1630.573 {z} 12.5469
force_weather_now WeatherType.SunnyLa
set_char_coordinates $scplayer {x} 809.5818 {y} -1630.573 {z} 12.5469
set_char_heading $scplayer {heading} 176.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@
print_now 'MUS1_5' {time} 10000 {flag} 0
if 
  192@ == 1
goto_if_false @MUSIC1_2489
47@ = create_car 413 {x} 0.0 {y} 0.0 {z} -100.0
272@ = add_blip_for_car 47@
55@ = create_char PedType.Mission1 {modelId} 13 {x} 0.0 {y} 0.0 {z} -100.0
181@ = open_sequence_task 
task_stand_still -1 {time} -2
close_sequence_task 181@
170@ = 0

:MUSIC1_2361
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_2422
create_char PedType.Mission1 {modelId} 13 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 62@(170@,21i)
170@ += 1
goto @MUSIC1_2361

:MUSIC1_2422
170@ = 0

:MUSIC1_2429
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_2489
create_car 412 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 147@(170@,7i)
170@ += 1
goto @MUSIC1_2429

:MUSIC1_2489
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC1_2515
goto @MUSIC1_15664

:MUSIC1_2515
force_weather_now WeatherType.SunnyLa
if 
  193@ <> 1
goto_if_false @MUSIC1_2925
if 
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @MUSIC1_2925
clear_area 34@ {y} 35@ {z} 36@ {radius} 100.0 {clearParticles} False
gosub @MUSIC1_6819
set_lvar_float_to_lvar_float 274@ = 39@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 40@
275@ += 0.15
45@ = create_object_no_offset #DYN_WOODPILE2 {x} 274@ {y} 275@ {z} 2.6
set_lvar_float_to_lvar_float 274@ = 42@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 43@
275@ += 0.15
46@ = create_object_no_offset #DYN_WOODPILE2 {x} 274@ {y} 275@ {z} 2.31
set_object_scale 45@ {scale} 0.5
set_object_scale 46@ {scale} 0.5
set_object_collision_damage_effect 45@ {state} False
set_object_collision_damage_effect 46@ {state} False
switch_audio_zone 'BEACH' {state} True
wait 1500
gosub @MUSIC1_8085
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_2788
freeze_char_position 55@ {state} True

:MUSIC1_2788
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_2811
freeze_car_position 47@ {state} True

:MUSIC1_2811
if 
  does_object_exist 45@
goto_if_false @MUSIC1_2834
freeze_object_position 45@ {state} True

:MUSIC1_2834
if 
  does_object_exist 46@
goto_if_false @MUSIC1_2857
freeze_object_position 46@ {state} True

:MUSIC1_2857
37@ = create_fx_system "FIRE" {x} 39@ {y} 40@ {z} 41@ {ignoreBoundingChecks} True
38@ = create_fx_system "FIRE" {x} 42@ {y} 43@ {z} 44@ {ignoreBoundingChecks} True
play_fx_system 37@
play_fx_system 38@
270@ = 1
193@ = 1

:MUSIC1_2925
if 
  193@ == 1
goto_if_false @MUSIC1_6812
175@, 176@ = get_time_of_day 
if and
  175@ >= 6
  22 > 175@
goto_if_false @MUSIC1_3018
if 
  270@ == 1
goto_if_false @MUSIC1_3011
stop_fx_system 37@
stop_fx_system 38@
270@ = 0

:MUSIC1_3011
goto @MUSIC1_3053

:MUSIC1_3018
if 
  270@ == 0
goto_if_false @MUSIC1_3053
play_fx_system 37@
play_fx_system 38@
270@ = 1

:MUSIC1_3053
if and
  194@ <> 1
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MUSIC1_3108
gosub @MUSIC1_14944
194@ = 1

:MUSIC1_3108
if 
  203@ == 0
goto_if_false @MUSIC1_6025
if and
  195@ <> 1
  197@ <> 1
  199@ <> 1
goto_if_false @MUSIC1_3314
if and
  not is_char_dead 55@
  locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_3314
remove_blip 271@
clear_char_tasks 55@
set_char_heading 55@ {heading} 110.0
gosub @MUSIC1_12841
print_help 'TALK_1'
195@ = 1
196@ = 0
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 58@ {y} 59@ {z} 2.3
set_char_heading $scplayer {heading} 290.0
set_camera_position_unfixed 0.031 {yOffset} -2.152
wait 1000
set_player_control $player1 {state} True

:MUSIC1_3314
if and
  195@ == 1
  197@ <> 1
goto_if_false @MUSIC1_4324
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4324
if 
  is_conversation_at_node 55@ {speech} 287@s
goto_if_false @MUSIC1_4018
set_player_control $player1 {state} False
if 
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_3400
stream_script 35

:MUSIC1_3400
do_fade 1000 {direction} Fade.Out

:MUSIC1_3407
if or
  get_fading_status 
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_3435
wait 0
goto @MUSIC1_3407

:MUSIC1_3435
clear_help 
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC1_3480
warp_char_from_car_to_coord $scplayer {x} 533.81 {y} -1891.64 {z} -100.0
goto @MUSIC1_3500

:MUSIC1_3480
set_char_coordinates $scplayer {x} 533.81 {y} -1891.64 {z} -100.0

:MUSIC1_3500
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_area 533.81 {y} -1891.64 {z} 2.27 {radius} 10.0 {clearParticles} False
170@ = 0

:MUSIC1_3538
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_3668
if 
  not is_car_dead 147@(170@,7i)
goto_if_false @MUSIC1_3645
if 
  locate_car_3d 147@(170@,7i) {x} 533.81 {y} -1891.64 {z} 2.27 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @MUSIC1_3638
delete_car 147@(170@,7i)

:MUSIC1_3638
goto @MUSIC1_3654

:MUSIC1_3645
delete_car 147@(170@,7i)

:MUSIC1_3654
170@ += 1
goto @MUSIC1_3538

:MUSIC1_3668
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_3774
clear_conversation_for_char 55@
clear_char_tasks_immediately 55@
set_char_heading 55@ {heading} 110.0
182@ = open_sequence_task 
task_play_anim -1 {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 182@ {state} True
close_sequence_task 182@
perform_sequence_task 55@ {sequence} 182@
clear_sequence_task 182@

:MUSIC1_3774
switch_audio_zone 'BEACH' {state} False
if 
  not is_char_dead 65@
goto_if_false @MUSIC1_3808
clear_char_tasks_immediately 65@

:MUSIC1_3808
if 
  not is_char_dead 66@
goto_if_false @MUSIC1_3829
clear_char_tasks_immediately 66@

:MUSIC1_3829
clear_prints 
print_now 'MUS1_4' {time} 10000 {flag} 0
170@ = 0

:MUSIC1_3854
if 
  5 > 170@
goto_if_false @MUSIC1_3970
$5314(170@,5f) = 531.18
$5319(170@,5f) = -1893.8
$5324(170@,5f) = 3.45
$5329(170@,5f) = 533.94
$5334(170@,5f) = -1891.8199
$5339(170@,5f) = 3.44
170@ += 1
goto @MUSIC1_3854

:MUSIC1_3970
set_global_var_bit_const $d6_trip_skips_available {bitIndex} 31
start_new_streamed_script 35 {args} 533.81 -1891.64 -100.0 51@ 1 -1 
197@ = 1
goto @MUSIC1_4324

:MUSIC1_4018
if 
  196@ <> 1
goto_if_false @MUSIC1_4215
if or
  is_conversation_at_node 55@ {speech} 285@s
  is_conversation_at_node 55@ {speech} 289@s
goto_if_false @MUSIC1_4077
196@ = 1
goto @MUSIC1_4208

:MUSIC1_4077
if 
  locate_char_any_means_char_2d $scplayer {target} 55@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC1_4122
TIMERB = 0
goto @MUSIC1_4208

:MUSIC1_4122
if 
  TIMERB > 3000
goto_if_false @MUSIC1_4208
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
195@ = 0
196@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_4208
goto @MUSIC1_4324

:MUSIC1_4215
if 
  not locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MUSIC1_4324
196@ = 0
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
195@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_4324
if and
  197@ == 1
  199@ <> 1
goto_if_false @MUSIC1_4626
if and
  not is_global_var_bit_set_const $d6_trip_skips_available {bitIndex} 31
  198@ <> 1
goto_if_false @MUSIC1_4510
set_player_control $player1 {state} True
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4402
clear_char_tasks_immediately 55@

:MUSIC1_4402
clear_prints 
if 
  $iDanceReport >= 4000
goto_if_false @MUSIC1_4482
switch_audio_zone 'BEACH' {state} True
gosub @MUSIC1_13713
print_help 'TALK_1'
199@ = 1
200@ = 1
196@ = 0
goto @MUSIC1_4510

:MUSIC1_4482
191@ = 1
gosub @MUSIC1_15219
TIMERA = 0
198@ = 1

:MUSIC1_4510
if 
  198@ == 1
goto_if_false @MUSIC1_4626
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 1
goto_if_false @MUSIC1_4584
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4577
gosub @MUSIC1_15392

:MUSIC1_4577
goto @MUSIC1_4626

:MUSIC1_4584
if 
  TIMERA > 1000
goto_if_false @MUSIC1_4626
print_now 'MUS1_8' {time} 5000 {flag} 0
goto @MUSIC1_15646

:MUSIC1_4626
if and
  199@ == 1
  201@ <> 1
goto_if_false @MUSIC1_5227
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_5227
if 
  200@ <> 1
goto_if_false @MUSIC1_4786
if 
  locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_4779
remove_blip 271@
clear_char_tasks 55@
set_char_heading 55@ {heading} 110.0
gosub @MUSIC1_13713
print_help 'TALK_1'
200@ = 1
196@ = 0

:MUSIC1_4779
goto @MUSIC1_5227

:MUSIC1_4786
if or
  is_conversation_at_node 55@ {speech} 'VYES1'
  is_conversation_at_node 55@ {speech} 'VYES2'
goto_if_false @MUSIC1_4923
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_4916
clear_conversation_for_char 55@
clear_help 
set_next_desired_move_state MoveState.Walk
freeze_char_position 55@ {state} False
task_enter_car_as_passenger 55@ {vehicle} 47@ {time} -1 {seat} SeatId.BikeRear
272@ = add_blip_for_car 47@
set_blip_as_friendly 272@ {state} True
200@ = 0
201@ = 1
print 'MUS1_7' {time} 10000 {flag} 0

:MUSIC1_4916
goto @MUSIC1_5227

:MUSIC1_4923
if 
  196@ <> 1
goto_if_false @MUSIC1_5118
if 
  is_conversation_at_node 55@ {speech} 'VLATE'
goto_if_false @MUSIC1_4980
196@ = 1
goto @MUSIC1_5111

:MUSIC1_4980
if 
  locate_char_any_means_char_2d $scplayer {target} 55@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC1_5025
TIMERB = 0
goto @MUSIC1_5111

:MUSIC1_5025
if 
  TIMERB > 3000
goto_if_false @MUSIC1_5111
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
200@ = 0
196@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_5111
goto @MUSIC1_5227

:MUSIC1_5118
if 
  not locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MUSIC1_5227
196@ = 0
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
200@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_5227
if and
  201@ == 1
  202@ <> 1
  not is_char_dead 55@
  not is_car_dead 47@
goto_if_false @MUSIC1_5330
if 
  is_char_in_car 55@ {vehicle} 47@
goto_if_false @MUSIC1_5330
lock_car_doors 47@ {lockStatus} CarLock.Unlocked
control_car_door 47@ {door} CarDoor.LeftRearDoor {state} CarDoorState.SwingingFree {angle} -1.0
control_car_door 47@ {door} CarDoor.RightRearDoor {state} CarDoorState.SwingingFree {angle} -1.0
set_car_can_be_visibly_damaged 47@ {state} True
202@ = 1

:MUSIC1_5330
if 
  268@ <> 1
goto_if_false @MUSIC1_5770
if and
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 162@ {yRadius} 162@ {drawSphere} False
  is_char_shooting $scplayer
goto_if_false @MUSIC1_5397
268@ = 1
goto @MUSIC1_5571

:MUSIC1_5397
if 
  is_char_dead 55@
goto_if_false @MUSIC1_5427
268@ = 1
goto @MUSIC1_5460

:MUSIC1_5427
if or
  has_char_been_damaged_by_char 55@ {handle} $scplayer
  is_char_responding_to_event 55@ {event} Event.GunAimedAt
goto_if_false @MUSIC1_5460
268@ = 1

:MUSIC1_5460
170@ = 0

:MUSIC1_5467
if and
  is_int_lvar_greater_than_int_lvar 61@ > 170@
  268@ <> 1
goto_if_false @MUSIC1_5571
if 
  is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_5527
268@ = 1
goto @MUSIC1_5557

:MUSIC1_5527
if 
  has_char_been_damaged_by_char 62@(170@,21i) {handle} $scplayer
goto_if_false @MUSIC1_5557
268@ = 1

:MUSIC1_5557
170@ += 1
goto @MUSIC1_5467

:MUSIC1_5571
if 
  268@ == 1
goto_if_false @MUSIC1_5738
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  202@ <> 1
goto_if_false @MUSIC1_5634
gosub @MUSIC1_10052
gosub @MUSIC1_10452
goto @MUSIC1_5718

:MUSIC1_5634
if 
  209@ <> 1
goto_if_false @MUSIC1_5666
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_5666
if and
  not is_char_dead 55@
  231@ <> 1
goto_if_false @MUSIC1_5718
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
task_kill_char_on_foot 55@ {target} $scplayer
231@ = 1
set_char_keep_task 55@ {state} True

:MUSIC1_5718
switch_audio_zone 'BEACH' {state} False
goto @MUSIC1_5770

:MUSIC1_5738
if or
  197@ <> 1
  199@ == 1
goto_if_false @MUSIC1_5770
gosub @MUSIC1_9958

:MUSIC1_5770
if and
  202@ == 1
  268@ == 1
goto_if_false @MUSIC1_5827
if and
  209@ == 1
  269@ <> 1
goto_if_false @MUSIC1_5827
gosub @MUSIC1_11354

:MUSIC1_5827
if and
  207@ <> 1
  not is_car_dead 47@
goto_if_false @MUSIC1_5927
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_5927
remove_blip 272@
207@ = 1
208@ = 1
freeze_car_position 47@ {state} False
set_camera_behind_player 
print_now 'MUS1_19' {time} 7000 {flag} 0
273@ = add_blip_for_coord 52@ {y} 53@ {z} 54@

:MUSIC1_5927
if 
  207@ == 1
goto_if_false @MUSIC1_6025
gosub @MUSIC1_14778
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_6025
if 
  not locate_car_2d 47@ {x} 34@ {y} 35@ {xRadius} 162@ {yRadius} 162@ {drawSphere} False
goto_if_false @MUSIC1_6025
set_car_only_damaged_by_player 47@ {state} False
203@ = 1
switch_audio_zone 'BEACH' {state} False

:MUSIC1_6025
if 
  203@ == 1
goto_if_false @MUSIC1_6555
if and
  204@ <> 1
  not is_char_dead 55@
  not is_car_dead 47@
goto_if_false @MUSIC1_6115
177@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 47@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 177@
perform_sequence_task 55@ {sequence} 177@
clear_sequence_task 177@
204@ = 1

:MUSIC1_6115
if and
  204@ == 1
  not is_char_dead 55@
  205@ <> 1
goto_if_false @MUSIC1_6228
178@ = get_script_task_status 55@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_6228
179@ = get_sequence_progress 55@
if 
  179@ >= 0
goto_if_false @MUSIC1_6228
191@ = 0
gosub @MUSIC1_15219
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
205@ = 1

:MUSIC1_6228
if and
  205@ == 1
  206@ <> 1
goto_if_false @MUSIC1_6336
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 0
goto_if_false @MUSIC1_6329
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_6309
gosub @MUSIC1_15392
goto @MUSIC1_6322

:MUSIC1_6309
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
206@ = 1

:MUSIC1_6322
goto @MUSIC1_6336

:MUSIC1_6329
206@ = 1

:MUSIC1_6336
if 
  209@ <> 1
goto_if_false @MUSIC1_6368
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_6368
if 
  269@ <> 1
goto_if_false @MUSIC1_6393
gosub @MUSIC1_11354

:MUSIC1_6393
if and
  209@ == 1
  267@ <> 1
goto_if_false @MUSIC1_6462
if 
  not locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 163@ {yRadius} 163@ {drawSphere} False
goto_if_false @MUSIC1_6462
gosub @MUSIC1_10228
267@ = 1

:MUSIC1_6462
if and
  209@ == 1
  not is_car_dead 47@
  269@ <> 1
goto_if_false @MUSIC1_6548
if and
  is_char_in_car $scplayer {vehicle} 47@
  locate_char_in_car_2d $scplayer {x} 52@ {y} 53@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MUSIC1_6548
gosub @MUSIC1_11771
269@ = 1

:MUSIC1_6548
gosub @MUSIC1_14778

:MUSIC1_6555
if 
  202@ <> 1
goto_if_false @MUSIC1_6664
if 
  is_char_dead 55@
goto_if_false @MUSIC1_6621
clear_prints 
print_now 'MUS1_18' {time} 5000 {flag} 0
goto @MUSIC1_15646
goto @MUSIC1_6664

:MUSIC1_6621
if 
  268@ == 1
goto_if_false @MUSIC1_6664
clear_prints 
print_now 'MUS1_21' {time} 5000 {flag} 0
goto @MUSIC1_15646

:MUSIC1_6664
if 
  is_car_dead 47@
goto_if_false @MUSIC1_6712
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15646
goto @MUSIC1_6812

:MUSIC1_6712
if 
  207@ == 1
goto_if_false @MUSIC1_6812
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_6812
if 
  locate_car_3d 47@ {x} 52@ {y} 53@ {z} 54@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_6812
set_player_control $player1 {state} False
gosub @MUSIC1_11889
goto @MUSIC1_15664

:MUSIC1_6812
goto @MUSIC1_2489

:MUSIC1_6819
170@ = 0
164@ = -30.0

:MUSIC1_6836
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_7108
165@ = cos 164@
166@ = sin 164@
mult_float_lvar_by_float_lvar 165@ *= 162@
mult_float_lvar_by_float_lvar 166@ *= 162@
add_float_lvar_to_float_lvar 165@ += 34@
add_float_lvar_to_float_lvar 166@ += 35@
if or
  170@ == 0
  170@ == 3
  170@ == 6
goto_if_false @MUSIC1_6965
create_car 412 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)
goto @MUSIC1_7043

:MUSIC1_6965
if or
  170@ == 1
  170@ == 7
goto_if_false @MUSIC1_7020
create_car 467 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)
goto @MUSIC1_7043

:MUSIC1_7020
create_car 419 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)

:MUSIC1_7043
168@ = 90.0
add_float_lvar_to_float_lvar 168@ += 164@
set_car_heading 147@(170@,7i) {heading} 168@
lock_car_doors 147@(170@,7i) {lockStatus} CarLock.Locked
164@ += 37.0
170@ += 1
goto @MUSIC1_6836

:MUSIC1_7108
set_car_model_components 413 {component1} 0 {component2} 0
47@ = create_car 413 {x} 48@ {y} 49@ {z} 50@
276@ = add_vehicle_mod 47@ {modelId} #WHEEL_OR1
set_car_heading 47@ {heading} 51@
car_set_idle 47@
set_car_only_damaged_by_player 47@ {state} True
set_car_health 47@ {health} 5000
change_car_colour 47@ {color1} 4 {color2} 4
set_can_burst_car_tyres 47@ {state} False
set_car_traction 47@ {traction} 2.0
open_car_door 47@ {door} CarDoor.LeftRearDoor
open_car_door 47@ {door} CarDoor.RightRearDoor
lock_car_doors 47@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_visibly_damaged 47@ {state} False
wait 1000
55@ = create_char PedType.Mission1 {modelId} 13 {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
set_char_only_damaged_by_player 55@ {state} True
give_weapon_to_char 55@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_current_char_weapon 55@ {weaponType} WeaponType.Unarmed
231@ = 0
180@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 180@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
set_char_decision_maker 55@ {handleOrTemplate} 180@
170@ = 0

:MUSIC1_7352
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_8025
if or
  170@ == 0
  170@ == 4
  170@ == 7
  170@ == 11
goto_if_false @MUSIC1_7449
create_char PedType.Mission1 {modelId} 22 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7449
if or
  170@ == 6
  170@ == 3
  170@ == 2
goto_if_false @MUSIC1_7520
create_char PedType.Mission1 {modelId} 101 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7520
if or
  170@ == 9
  170@ == 14
  170@ == 17
  170@ == 19
goto_if_false @MUSIC1_7599
create_char PedType.Mission1 {modelId} 211 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7599
if 
  170@ == 12
goto_if_false @MUSIC1_7656
create_char PedType.Mission1 {modelId} 99 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7656
if or
  170@ == 16
  170@ == 10
goto_if_false @MUSIC1_7720
create_char PedType.Mission1 {modelId} 93 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7720
if or
  170@ == 5
  170@ == 15
goto_if_false @MUSIC1_7785
create_char PedType.Mission1 {modelId} 217 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7785
if or
  170@ == 8
  170@ == 13
goto_if_false @MUSIC1_7849
create_char PedType.Mission1 {modelId} 19 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7849
if or
  170@ == 1
  170@ == 20
goto_if_false @MUSIC1_7913
create_char PedType.Mission1 {modelId} 55 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7913
create_char PedType.Mission1 {modelId} 91 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)

:MUSIC1_7945
set_char_heading 62@(170@,21i) {heading} 125@(170@,21f)
give_weapon_to_char 62@(170@,21i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Unarmed
set_char_decision_maker 62@(170@,21i) {handleOrTemplate} 180@
210@(170@,21i) = 0
170@ += 1
goto @MUSIC1_7352

:MUSIC1_8025
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 467
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 211
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 217
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 55
mark_vehicle_mod_as_no_longer_needed #WHEEL_OR1
return 

:MUSIC1_8085
request_animation "BAR"
request_animation "DANCING"
request_animation "BEACH"
request_animation "SCRATCHING"

:MUSIC1_8126
if or
  not has_animation_loaded "BAR"
  not has_animation_loaded "DANCING"
  not has_animation_loaded "BEACH"
  not has_animation_loaded "SCRATCHING"
goto_if_false @MUSIC1_8189
wait 0
goto @MUSIC1_8126

:MUSIC1_8189
181@ = open_sequence_task 
task_play_anim -1 {animationName} "SCLNG_R" {animationFile} "SCRATCHING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 181@ {state} True
close_sequence_task 181@
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_8270
perform_sequence_task 55@ {sequence} 181@

:MUSIC1_8270
if 
  not is_char_dead 62@
goto_if_false @MUSIC1_8354
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 62@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8354
if 
  not is_char_dead 63@
goto_if_false @MUSIC1_8438
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 63@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8438
if 
  not is_char_dead 64@
goto_if_false @MUSIC1_8522
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 64@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8522
if and
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @MUSIC1_8567
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:MUSIC1_8567
if 
  not is_char_dead 67@
goto_if_false @MUSIC1_8653
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 67@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8653
if 
  not is_char_dead 68@
goto_if_false @MUSIC1_8741
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 68@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8741
if 
  not is_char_dead 69@
goto_if_false @MUSIC1_8827
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 69@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8827
if 
  not is_char_dead 70@
goto_if_false @MUSIC1_8915
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 70@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8915
if 
  not is_char_dead 71@
goto_if_false @MUSIC1_9003
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_W_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 71@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9003
if 
  not is_char_dead 72@
goto_if_false @MUSIC1_9091
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 72@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9091
if 
  not is_char_dead 73@
goto_if_false @MUSIC1_9179
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 73@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9179
if 
  not is_char_dead 74@
goto_if_false @MUSIC1_9265
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 74@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9265
if 
  not is_char_dead 75@
goto_if_false @MUSIC1_9345
183@ = open_sequence_task 
task_play_anim -1 {animationName} "BATHER" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 75@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9345
if 
  not is_char_dead 76@
goto_if_false @MUSIC1_9434
183@ = open_sequence_task 
task_play_anim -1 {animationName} "SITNWAIT_LOOP_W" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 76@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9434
if 
  not is_char_dead 77@
goto_if_false @MUSIC1_9518
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 77@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9518
if 
  not is_char_dead 78@
goto_if_false @MUSIC1_9602
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 78@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9602
if 
  not is_char_dead 79@
goto_if_false @MUSIC1_9686
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 79@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9686
if 
  not is_char_dead 80@
goto_if_false @MUSIC1_9770
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_E" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 80@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9770
if 
  not is_char_dead 81@
goto_if_false @MUSIC1_9863
173@ = open_sequence_task 
task_play_anim -1 {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 4000
set_sequence_to_repeat 173@ {state} True
close_sequence_task 173@
perform_sequence_task 81@ {sequence} 173@
clear_sequence_task 173@

:MUSIC1_9863
if 
  not is_char_dead 82@
goto_if_false @MUSIC1_9956
174@ = open_sequence_task 
task_play_anim -1 {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2200
set_sequence_to_repeat 174@ {state} True
close_sequence_task 174@
perform_sequence_task 82@ {sequence} 174@
clear_sequence_task 174@

:MUSIC1_9956
return 

:MUSIC1_9958
if and
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @MUSIC1_10050
277@ = get_script_task_status 65@ {taskId} 1655
278@ = get_script_task_status 66@ {taskId} 1655
if and
  is_int_lvar_equal_to_constant 277@ == 7
  is_int_lvar_equal_to_constant 278@ == 7
goto_if_false @MUSIC1_10050
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:MUSIC1_10050
return 

:MUSIC1_10052
170@ = 5

:MUSIC1_10059
if 
  8 >= 170@
goto_if_false @MUSIC1_10167
if and
  not is_char_dead 62@(170@,21i)
  210@(170@,21i) == 0
goto_if_false @MUSIC1_10153
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Mp5
task_kill_char_on_foot 62@(170@,21i) {target} $scplayer
210@(170@,21i) = 1
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_10153
170@ += 1
goto @MUSIC1_10059

:MUSIC1_10167
if and
  not is_char_dead 55@
  231@ == 0
goto_if_false @MUSIC1_10226
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
freeze_char_position 55@ {state} False
task_kill_char_on_foot 55@ {target} $scplayer
231@ = 1
set_char_keep_task 55@ {state} True

:MUSIC1_10226
return 

:MUSIC1_10228
170@ = 0

:MUSIC1_10235
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10339
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_10325
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_10325
if 
  not is_char_on_screen 62@(170@,21i)
goto_if_false @MUSIC1_10325
delete_char 62@(170@,21i)

:MUSIC1_10325
170@ += 1
goto @MUSIC1_10235

:MUSIC1_10339
170@ = 0

:MUSIC1_10346
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_10450
if 
  253@(170@,7i) <> 1
goto_if_false @MUSIC1_10436
if 
  not is_car_dead 147@(170@,7i)
goto_if_false @MUSIC1_10436
if 
  not is_car_on_screen 147@(170@,7i)
goto_if_false @MUSIC1_10436
delete_car 147@(170@,7i)

:MUSIC1_10436
170@ += 1
goto @MUSIC1_10346

:MUSIC1_10450
return 

:MUSIC1_10452
170@ = 0

:MUSIC1_10459
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10570
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_10556
if or
  5 > 170@
  170@ > 8
goto_if_false @MUSIC1_10556
task_smart_flee_char 62@(170@,21i) {threat} $scplayer {radius} 400.0 {time} 9999999
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_10556
170@ += 1
goto @MUSIC1_10459

:MUSIC1_10570
if 
  not is_car_dead 148@
goto_if_false @MUSIC1_10647
lock_car_doors 148@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 77@
goto_if_false @MUSIC1_10619
task_enter_car_as_driver 77@ {vehicle} 148@ {time} -1

:MUSIC1_10619
if 
  not is_char_dead 78@
goto_if_false @MUSIC1_10647
task_enter_car_as_passenger 78@ {vehicle} 148@ {time} -1 {seat} SeatId.BikeRear

:MUSIC1_10647
if 
  not is_car_dead 149@
goto_if_false @MUSIC1_10724
lock_car_doors 149@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 79@
goto_if_false @MUSIC1_10696
task_enter_car_as_driver 79@ {vehicle} 149@ {time} -1

:MUSIC1_10696
if 
  not is_char_dead 80@
goto_if_false @MUSIC1_10724
task_enter_car_as_passenger 80@ {vehicle} 149@ {time} -1 {seat} SeatId.BikeRear

:MUSIC1_10724
return 

:MUSIC1_10726
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_11352
169@ = 0
172@ = 0

:MUSIC1_10756
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11063
if 
  not is_car_dead 147@(172@,7i)
goto_if_false @MUSIC1_11049
161@ = get_driver_of_car 147@(172@,7i)
if and
  161@ == -1
  253@(172@,7i) <> 1
  2 > 169@
goto_if_false @MUSIC1_11049
171@ = 0

:MUSIC1_10850
if 
  is_int_lvar_greater_than_int_lvar 61@ > 171@
goto_if_false @MUSIC1_11049
if and
  not is_char_dead 62@(171@,21i)
  232@(171@,21i) <> 1
goto_if_false @MUSIC1_11035
lock_car_doors 147@(172@,7i) {lockStatus} CarLock.LockoutPlayerOnly
task_car_mission 62@(171@,21i) {vehicle} 147@(172@,7i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 154@(172@,7i) = 62@(171@,21i)
260@(172@,7i) = 1
set_car_heavy 147@(172@,7i) {state} True
set_car_strong 147@(172@,7i) {state} True
set_car_only_damaged_by_player 147@(172@,7i) {state} True
232@(171@,21i) = 1
253@(172@,7i) = 1
169@ += 1
set_lvar_int_to_lvar_int 171@ = 61@

:MUSIC1_11035
171@ += 1
goto @MUSIC1_10850

:MUSIC1_11049
172@ += 1
goto @MUSIC1_10756

:MUSIC1_11063
remove_decision_maker 180@
180@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 180@ {event} Event.DraggedOutCar
170@ = 0

:MUSIC1_11089
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_11328
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_11314
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_11291
if and
  170@ >= 5
  8 >= 170@
goto_if_false @MUSIC1_11251
set_char_stay_in_same_place 62@(170@,21i) {state} True
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Mp5
task_kill_char_on_foot 62@(170@,21i) {target} $scplayer
210@(170@,21i) = 1
set_char_keep_task 62@(170@,21i) {state} True
set_char_relationship 62@(170@,21i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
goto @MUSIC1_11284

:MUSIC1_11251
task_smart_flee_char 62@(170@,21i) {threat} $scplayer {radius} 400.0 {time} 9999999
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_11284
goto @MUSIC1_11302

:MUSIC1_11291
set_char_keep_task 62@(170@,21i) {state} False

:MUSIC1_11302
set_char_decision_maker 62@(170@,21i) {handleOrTemplate} 180@

:MUSIC1_11314
170@ += 1
goto @MUSIC1_11089

:MUSIC1_11328
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_11352
set_char_decision_maker 55@ {handleOrTemplate} 180@

:MUSIC1_11352
return 

:MUSIC1_11354
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_11586
172@ = 0

:MUSIC1_11377
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11586
if and
  not is_car_dead 147@(172@,7i)
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11572
if 
  not is_char_dead 154@(172@,7i)
goto_if_false @MUSIC1_11572
if and
  not is_char_in_car 154@(172@,7i) {vehicle} 147@(172@,7i)
  260@(172@,7i) == 0
goto_if_false @MUSIC1_11523
task_car_mission 154@(172@,7i) {vehicle} 147@(172@,7i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
260@(172@,7i) = 1

:MUSIC1_11523
if and
  is_char_in_car 154@(172@,7i) {vehicle} 147@(172@,7i)
  260@(172@,7i) == 1
goto_if_false @MUSIC1_11572
260@(172@,7i) = 0

:MUSIC1_11572
172@ += 1
goto @MUSIC1_11377

:MUSIC1_11586
return 
170@ = 0

:MUSIC1_11595
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_11769
if and
  not is_car_dead 147@(170@,7i)
  253@(170@,7i) == 1
goto_if_false @MUSIC1_11755
161@ = get_driver_of_car 147@(170@,7i)
if and
  not is_car_on_screen 147@(170@,7i)
  161@ <> -1
  not locate_char_any_means_car_2d $scplayer {vehicle} 147@(170@,7i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MUSIC1_11755
165@, 166@, 167@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -10.0 {zOffset} -1.0
set_car_coordinates 147@(170@,7i) {x} 165@ {y} 166@ {z} 167@

:MUSIC1_11755
170@ += 1
goto @MUSIC1_11595

:MUSIC1_11769
return 

:MUSIC1_11771
172@ = 0

:MUSIC1_11778
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11887
if and
  not is_car_dead 147@(172@,7i)
  not is_char_dead 154@(172@,7i)
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11873
task_car_drive_to_coord 154@(172@,7i) {vehicle} 147@(172@,7i) {x} 34@ {y} 35@ {z} 36@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:MUSIC1_11873
172@ += 1
goto @MUSIC1_11778

:MUSIC1_11887
return 

:MUSIC1_11889
do_fade 1000 {direction} Fade.Out

:MUSIC1_11896
if 
  get_fading_status 
goto_if_false @MUSIC1_11920
wait 0
goto @MUSIC1_11896

:MUSIC1_11920
open_garage 'MUL_LAN'

:MUSIC1_11931
if 
  not is_garage_open 'MUL_LAN'
goto_if_false @MUSIC1_11964
wait 0
goto @MUSIC1_11931

:MUSIC1_11964
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12005
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15646

:MUSIC1_12005
clear_area 52@ {y} 53@ {z} 54@ {radius} 50.0 {clearParticles} False
172@ = 0

:MUSIC1_12030
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_12103
if 
  253@(172@,7i) == 1
goto_if_false @MUSIC1_12089
delete_char 154@(172@,7i)
delete_car 147@(172@,7i)

:MUSIC1_12089
172@ += 1
goto @MUSIC1_12030

:MUSIC1_12103
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_12185
set_car_coordinates 47@ {x} 52@ {y} 53@ {z} 54@
set_car_heading 47@ {heading} 0.0
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC1_12185
warp_char_into_car $scplayer {vehicle} 47@

:MUSIC1_12185
wait 500
set_fixed_camera_position 1640.75 {y} -1528.1 {z} 14.25 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1642.49 {y} -1522.89 {z} 14.11 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC1_12248
if 
  get_fading_status 
goto_if_false @MUSIC1_12272
wait 0
goto @MUSIC1_12248

:MUSIC1_12272
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12313
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15646

:MUSIC1_12313
279@ = 1
skip_cutscene_start_internal @MUSIC1_12579
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_12452
280@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1643.48 {y} -1515.73 {z} 13.82 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 47@
task_go_straight_to_coord -1 {x} 1641.91 {y} -1517.64 {z} 12.62 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1641.91 {y} -1522.36 {z} 12.61 {speed} MoveState.Walk {time} -1
close_sequence_task 280@
perform_sequence_task $scplayer {sequence} 280@
clear_sequence_task 280@

:MUSIC1_12452
wait 1000
178@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
179@ = get_sequence_progress $scplayer

:MUSIC1_12494
if and
  1 >= 179@
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
wait 0
178@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12560
179@ = get_sequence_progress $scplayer

:MUSIC1_12560
goto @MUSIC1_12494

:MUSIC1_12567
wait 2000
279@ = 0

:MUSIC1_12579
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_12599

:MUSIC1_12599
do_fade 500 {direction} Fade.Out

:MUSIC1_12606
if 
  get_fading_status 
goto_if_false @MUSIC1_12630
wait 0
goto @MUSIC1_12606

:MUSIC1_12630
close_garage 'MUL_LAN'

:MUSIC1_12641
if 
  not is_garage_closed 'MUL_LAN'
goto_if_false @MUSIC1_12674
wait 0
goto @MUSIC1_12641

:MUSIC1_12674
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12715
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15646

:MUSIC1_12715
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC1_12764
warp_char_from_car_to_coord $scplayer {x} 52@ {y} 53@ {z} 54@
goto @MUSIC1_12778

:MUSIC1_12764
set_char_coordinates $scplayer {x} 52@ {y} 53@ {z} 54@

:MUSIC1_12778
set_char_heading $scplayer {heading} 180.0
delete_car 47@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:MUSIC1_12815
if 
  get_fading_status 
goto_if_false @MUSIC1_12839
wait 0
goto @MUSIC1_12815

:MUSIC1_12839
return 

:MUSIC1_12841
start_setting_up_conversation 55@
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
$m1_random_int = generate_random_int_in_range 0 {max} 3
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13112
switch_start $m1_random_int {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13098 {caseNum1} 0 {caseLabel1} @MUSIC1_12945 {caseNum2} 1 {caseLabel2} @MUSIC1_12996 {caseNum3} 2 {caseLabel3} @MUSIC1_13047 {caseNum4} -1 {caseLabel4} @MUSIC1_13105 {caseNum5} -1 {caseLabel5} @MUSIC1_13105 {caseNum6} -1 {caseLabel6} @MUSIC1_13105 {caseNum7} -1 {caseLabel7} @MUSIC1_13105

:MUSIC1_12945
set_lvar_text_label 281@s = 'HI1'
set_lvar_int_to_constant 291@ = 42617
set_lvar_int_to_constant 292@ = 42619
set_lvar_int_to_constant 293@ = 42618
goto @MUSIC1_13105

:MUSIC1_12996
set_lvar_text_label 281@s = 'HI3'
set_lvar_int_to_constant 291@ = 42623
set_lvar_int_to_constant 292@ = 42625
set_lvar_int_to_constant 293@ = 42624
goto @MUSIC1_13105

:MUSIC1_13047
set_lvar_text_label 281@s = 'HI5'
set_lvar_int_to_constant 291@ = 42629
set_lvar_int_to_constant 292@ = 42631
set_lvar_int_to_constant 293@ = 42630
goto @MUSIC1_13105

:MUSIC1_13098
goto @MUSIC1_13105

:MUSIC1_13105
goto @MUSIC1_13335

:MUSIC1_13112
switch_start $m1_random_int {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13328 {caseNum1} 0 {caseLabel1} @MUSIC1_13175 {caseNum2} 1 {caseLabel2} @MUSIC1_13226 {caseNum3} 2 {caseLabel3} @MUSIC1_13277 {caseNum4} -1 {caseLabel4} @MUSIC1_13335 {caseNum5} -1 {caseLabel5} @MUSIC1_13335 {caseNum6} -1 {caseLabel6} @MUSIC1_13335 {caseNum7} -1 {caseLabel7} @MUSIC1_13335

:MUSIC1_13175
set_lvar_text_label 281@s = 'HI2'
set_lvar_int_to_constant 291@ = 42620
set_lvar_int_to_constant 292@ = 42622
set_lvar_int_to_constant 293@ = 42621
goto @MUSIC1_13335

:MUSIC1_13226
set_lvar_text_label 281@s = 'HI4'
set_lvar_int_to_constant 291@ = 42626
set_lvar_int_to_constant 292@ = 42628
set_lvar_int_to_constant 293@ = 42627
goto @MUSIC1_13335

:MUSIC1_13277
set_lvar_text_label 281@s = 'HI6'
set_lvar_int_to_constant 291@ = 42632
set_lvar_int_to_constant 292@ = 42634
set_lvar_int_to_constant 293@ = 42633
goto @MUSIC1_13335

:MUSIC1_13328
goto @MUSIC1_13335

:MUSIC1_13335
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13413
set_lvar_text_label 283@s = 'DOFFE1'
set_lvar_int_to_constant 294@ = 42654
set_lvar_int_to_constant 295@ = 42605
set_lvar_int_to_constant 296@ = 42604
goto @MUSIC1_13457

:MUSIC1_13413
set_lvar_text_label 283@s = 'DOFFE3'
set_lvar_int_to_constant 294@ = 42608
set_lvar_int_to_constant 295@ = 42610
set_lvar_int_to_constant 296@ = 42609

:MUSIC1_13457
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13515
set_lvar_text_label 285@s = 'BEXIT1'
set_lvar_int_to_constant 297@ = 42600
goto @MUSIC1_13539

:MUSIC1_13515
set_lvar_text_label 285@s = 'BEXIT2'
set_lvar_int_to_constant 297@ = 42601

:MUSIC1_13539
set_lvar_text_label 287@s = 'DSTAR2'
set_lvar_int_to_constant 298@ = 42614
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13621
set_lvar_text_label 289@s = 'GEXIT1'
set_lvar_int_to_constant 299@ = 42615
goto @MUSIC1_13645

:MUSIC1_13621
set_lvar_text_label 289@s = 'GEXIT2'
set_lvar_int_to_constant 299@ = 42616

:MUSIC1_13645
set_up_conversation_node_with_scripted_speech 281@s {positiveAnswer} 283@s {negativeAnswer} 285@s {questionSoundId} 291@ {positiveAnswerSoundId} 292@ {negativeAnswerSoundId} 293@
set_up_conversation_end_node_with_scripted_speech 285@s {speechSoundId} 297@
set_up_conversation_node_with_scripted_speech 283@s {positiveAnswer} 287@s {negativeAnswer} 289@s {questionSoundId} 294@ {positiveAnswerSoundId} 295@ {negativeAnswerSoundId} 296@
set_up_conversation_end_node_with_scripted_speech 287@s {speechSoundId} 298@
set_up_conversation_end_node_with_scripted_speech 289@s {speechSoundId} 299@
finish_setting_up_conversation 
return 

:MUSIC1_13713
start_setting_up_conversation 55@
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13796
set_lvar_text_label 300@s = 'VOFFE1'
set_lvar_int_to_constant 304@ = 42640
set_lvar_int_to_constant 305@ = 42642
set_lvar_int_to_constant 306@ = 42641
goto @MUSIC1_13840

:MUSIC1_13796
set_lvar_text_label 300@s = 'VOFFE2'
set_lvar_int_to_constant 304@ = 42643
set_lvar_int_to_constant 305@ = 42645
set_lvar_int_to_constant 306@ = 42644

:MUSIC1_13840
$bikehealth_s4 = generate_random_int_in_range 0 {max} 2
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13918
set_lvar_text_label 302@s = 'VSURE1'
set_lvar_int_to_constant 307@ = 42646
set_lvar_int_to_constant 308@ = 42648
set_lvar_int_to_constant 309@ = 42647
goto @MUSIC1_13962

:MUSIC1_13918
set_lvar_text_label 302@s = 'VSURE2'
set_lvar_int_to_constant 307@ = 42649
set_lvar_int_to_constant 308@ = 42651
set_lvar_int_to_constant 309@ = 42650

:MUSIC1_13962
set_up_conversation_node_with_scripted_speech 300@s {positiveAnswer} 'VYES2' {negativeAnswer} 302@s {questionSoundId} 304@ {positiveAnswerSoundId} 305@ {negativeAnswerSoundId} 306@
set_up_conversation_end_node_with_scripted_speech 'VYES2' {speechSoundId} 42653
set_up_conversation_node_with_scripted_speech 302@s {positiveAnswer} 'VLATE' {negativeAnswer} 'VYES1' {questionSoundId} 307@ {positiveAnswerSoundId} 308@ {negativeAnswerSoundId} 309@
set_up_conversation_end_node_with_scripted_speech 'VLATE' {speechSoundId} 42639
set_up_conversation_end_node_with_scripted_speech 'VYES1' {speechSoundId} 42652
finish_setting_up_conversation 
return 

:MUSIC1_14072
set_lvar_float_to_lvar_float 310@ = 39@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 40@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 39@ = 312@
set_lvar_float_to_lvar_float 40@ = 313@
41@ = 2.68
set_lvar_float_to_lvar_float 310@ = 42@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 43@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 42@ = 312@
set_lvar_float_to_lvar_float 43@ = 313@
44@ = 2.39
set_lvar_float_to_lvar_float 310@ = 48@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 49@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 48@ = 312@
set_lvar_float_to_lvar_float 49@ = 313@
50@ = 3.42
51@ -= 51.0
set_lvar_float_to_lvar_float 310@ = 56@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 57@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 56@ = 312@
set_lvar_float_to_lvar_float 57@ = 313@
set_lvar_float_to_lvar_float 310@ = 58@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 59@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 58@ = 312@
set_lvar_float_to_lvar_float 59@ = 313@
60@ = 2.31
170@ = 0

:MUSIC1_14404
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_14522
set_lvar_float_to_lvar_float 310@ = 83@(170@,21f)
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 104@(170@,21f)
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 83@(170@,21f) = 312@
set_lvar_float_to_lvar_float 104@(170@,21f) = 313@
125@(170@,21f) -= 51.0
170@ += 1
goto @MUSIC1_14404

:MUSIC1_14522
return 

:MUSIC1_14524
set_lvar_float_to_lvar_float 314@ = 310@
mult_float_lvar_by_float_lvar 314@ *= 310@
set_lvar_float_to_lvar_float 315@ = 311@
mult_float_lvar_by_float_lvar 315@ *= 311@
set_lvar_float_to_lvar_float 317@ = 314@
add_float_lvar_to_float_lvar 317@ += 315@
316@ = sqrt 317@
set_lvar_float_to_lvar_float 318@ = 311@
div_float_lvar_by_float_lvar 318@ /= 316@
set_lvar_float_to_lvar_float 319@ = 310@
div_float_lvar_by_float_lvar 319@ /= 316@
320@ = cos 51.0
321@ = sin 51.0
set_lvar_float_to_lvar_float 322@ = 318@
mult_float_lvar_by_float_lvar 322@ *= 320@
set_lvar_float_to_lvar_float 323@ = 319@
mult_float_lvar_by_float_lvar 323@ *= 321@
set_lvar_float_to_lvar_float 324@ = 319@
mult_float_lvar_by_float_lvar 324@ *= 320@
set_lvar_float_to_lvar_float 325@ = 318@
mult_float_lvar_by_float_lvar 325@ *= 321@
set_lvar_float_to_lvar_float 326@ = 322@
sub_float_lvar_from_float_lvar 326@ -= 323@
set_lvar_float_to_lvar_float 327@ = 324@
add_float_lvar_to_float_lvar 327@ += 325@
set_lvar_float_to_lvar_float 312@ = 316@
mult_float_lvar_by_float_lvar 312@ *= 327@
set_lvar_float_to_lvar_float 313@ = 316@
mult_float_lvar_by_float_lvar 313@ *= 326@
add_float_lvar_to_float_lvar 312@ += 34@
add_float_lvar_to_float_lvar 313@ += 35@
return 

:MUSIC1_14778
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_14942
if 
  208@ == 1
goto_if_false @MUSIC1_14881
if 
  not is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_14874
remove_blip 273@
272@ = add_blip_for_car 47@
set_blip_as_friendly 272@ {state} True
print_now 'MUS1_6' {time} 7000 {flag} 0
208@ = 0

:MUSIC1_14874
goto @MUSIC1_14942

:MUSIC1_14881
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_14942
remove_blip 272@
273@ = add_blip_for_coord 52@ {y} 53@ {z} 54@
print_now 'MUS1_19' {time} 7000 {flag} 0
208@ = 1

:MUSIC1_14942
return 

:MUSIC1_14944
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
print_now 'MUS1_2' {time} 10000 {flag} 0
set_fixed_camera_position 532.87 {y} -1893.6899 {z} 3.29 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 533.97 {y} -1892.67 {z} 3.3 {switchStyle} SwitchType.JumpCut
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} -100.0
set_lvar_float_to_lvar_float 328@ = 34@
sub_float_var_from_float_lvar 328@ -= $player_x
set_lvar_float_to_lvar_float 329@ = 35@
sub_float_var_from_float_lvar 329@ -= $player_y
$heading = get_heading_from_vector_2d 328@ {y} 329@
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC1_15128
set_char_heading $scplayer {heading} $heading
goto @MUSIC1_15149

:MUSIC1_15128
330@ = store_car_char_is_in_no_save $scplayer
car_set_idle 330@
set_car_heading 330@ {heading} $heading

:MUSIC1_15149
wait 2000
279@ = 1
skip_cutscene_start_internal @MUSIC1_15180
wait 8000
279@ = 0

:MUSIC1_15180
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_15200

:MUSIC1_15200
clear_prints 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:MUSIC1_15219
switch_start 191@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_15356 {caseNum1} 0 {caseLabel1} @MUSIC1_15282 {caseNum2} 1 {caseLabel2} @MUSIC1_15318 {caseNum3} -1 {caseLabel3} @MUSIC1_15363 {caseNum4} -1 {caseLabel4} @MUSIC1_15363 {caseNum5} -1 {caseLabel5} @MUSIC1_15363 {caseNum6} -1 {caseLabel6} @MUSIC1_15363 {caseNum7} -1 {caseLabel7} @MUSIC1_15363

:MUSIC1_15282
set_lvar_text_label 184@s = 'LOC1_YT'
set_lvar_int_to_constant 186@ = 8464
189@ = 1
goto @MUSIC1_15363

:MUSIC1_15318
set_lvar_text_label 184@s = 'DNCEF1'
set_lvar_int_to_constant 186@ = 42602
189@ = 1
goto @MUSIC1_15363

:MUSIC1_15356
goto @MUSIC1_15363

:MUSIC1_15363
187@ = 0
188@ = 0
190@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
return 

:MUSIC1_15392
if or
  187@ == 0
  187@ == 1
goto_if_false @MUSIC1_15462
if 
  is_int_lvar_greater_than_int_lvar 189@ > 188@
goto_if_false @MUSIC1_15462
if 
  TIMERA > 1000
goto_if_false @MUSIC1_15462
gosub @MUSIC1_15520

:MUSIC1_15462
if 
  187@ == 2
goto_if_false @MUSIC1_15518
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC1_15518
187@ = 0
188@ += 1
clear_prints 
TIMERA = 0

:MUSIC1_15518
return 

:MUSIC1_15520
if 
  187@ == 0
goto_if_false @MUSIC1_15556
load_mission_audio MissionAudioSlot.Slot1 {audioId} 186@(188@,1i)
187@ = 1

:MUSIC1_15556
if 
  187@ == 1
goto_if_false @MUSIC1_15644
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC1_15644
print_now 184@(188@,1s) {time} 10000 {flag} 1
if and
  191@ == 1
  not is_char_dead 55@
goto_if_false @MUSIC1_15633
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 55@

:MUSIC1_15633
play_mission_audio MissionAudioSlot.Slot1
187@ = 2

:MUSIC1_15644
return 

:MUSIC1_15646
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC1_15664
$flag_strap_mission_counter += 1
register_mission_passed 'STRAP_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:MUSIC1_15719
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 467
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 211
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 217
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 55
mark_vehicle_mod_as_no_longer_needed #WHEEL_OR1
mark_object_as_no_longer_needed 45@
mark_object_as_no_longer_needed 46@
mark_streamed_script_as_no_longer_needed 35
remove_animation "BAR"
remove_animation "DANCING"
remove_animation "BEACH"
remove_animation "SCRATCHING"
remove_blip 271@
remove_blip 272@
remove_blip 273@
kill_fx_system 37@
kill_fx_system 38@
clear_sequence_task 173@
clear_sequence_task 174@
clear_sequence_task 177@
clear_sequence_task 280@
clear_sequence_task 181@
clear_sequence_task 182@
clear_sequence_task 183@
if 
  is_player_playing $player1
goto_if_false @MUSIC1_15929
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:MUSIC1_15929
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_15957
clear_conversation_for_char 55@
freeze_char_position 55@ {state} False

:MUSIC1_15957
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_15980
set_car_can_be_visibly_damaged 47@ {state} True

:MUSIC1_15980
remove_decision_maker 180@
clear_help 
switch_audio_zone 'BEACH' {state} False
switch_ped_roads_back_to_original 502.15 {leftBottomY} -1913.39 {leftBottomZ} -5.0 {rightTopX} 558.86 {rightTopY} -1838.87 {rightTopZ} 10.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 32---------------
// Originally: Madd Dogg's Rhymes

:MUSIC2
script_name 'MUSIC2'
gosub @MUSIC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC2_38
gosub @MUSIC2_10511

:MUSIC2_38
gosub @MUSIC2_10584
terminate_this_script 

:MUSIC2_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP2'
set_fading_colour 0 {g} 0 {b} 0
set_area_visible 10
do_fade 2000 {direction} Fade.Out

:MUSIC2_86
if 
  get_fading_status 
goto_if_false @MUSIC2_110
wait 0
goto @MUSIC2_86

:MUSIC2_110
load_cutscene 'STRAP2A'

:MUSIC2_121
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC2_145
wait 0
goto @MUSIC2_121

:MUSIC2_145
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC2_154
if 
  not has_cutscene_finished 
goto_if_false @MUSIC2_178
wait 0
goto @MUSIC2_154

:MUSIC2_178
clear_cutscene 
do_fade 0 {direction} Fade.Out

:MUSIC2_186
if 
  get_fading_status 
goto_if_false @MUSIC2_210
wait 0
goto @MUSIC2_186

:MUSIC2_210
set_area_visible 0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
request_model 579
request_model 580
request_model #KMB_RHYMESBOOK
request_model #CJ_JUICE_CAN
request_model 347
request_model 510
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15606
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15607
load_all_models_now 

:MUSIC2_281
if or
  not has_model_loaded 579
  not has_model_loaded 580
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC2_321
wait 0
goto @MUSIC2_281

:MUSIC2_321
if or
  not has_model_loaded #KMB_RHYMESBOOK
  not has_model_loaded #CJ_JUICE_CAN
  not has_model_loaded 347
  not has_model_loaded 510
goto_if_false @MUSIC2_363
wait 0
goto @MUSIC2_321

:MUSIC2_363
61@ = add_blip_for_coord 1239.032 {y} -741.106 {z} 94.76
set_char_coordinates $scplayer {x} 790.0 {y} -1626.0 {z} 12.5
load_scene 790.0 {y} -1626.0 {z} 12.5
set_camera_behind_player 
set_char_heading $scplayer {heading} 356.0
45@ = load_char_decision_maker DecisionMakerType.Steal
46@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
switch_entry_exit 'MDDOGS' {state} True
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
do_fade 1500 {direction} Fade.In
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
print_now 'STP2_1' {time} 10000 {flag} 1
if 
  $m1_random_int2 > 0
goto_if_false @MUSIC2_745
set_up_skip 1242.6591 {y} -748.503 {z} 94.33 {heading} 191.586

:MUSIC2_745
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC2_771
goto @MUSIC2_10529

:MUSIC2_771
if 
  70@ == 0
goto_if_false @MUSIC2_973
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1222.799 {leftBottomY} -735.563 {rightTopX} 1348.407 {rightTopY} -759.322 {angle} -100.0 {drawSphere} False
goto_if_false @MUSIC2_973
if 
  $m1_random_int2 == 0
goto_if_false @MUSIC2_857
$m1_random_int2 = 1

:MUSIC2_857
clear_skip 
remove_blip 61@
61@ = add_blip_for_coord 1298.66 {y} -795.58 {z} 83.84
print_now 'STP2_2' {time} 5000 {flag} 1
35@ = create_car 579 {x} 1243.1541 {y} -805.76 {z} 83.188
set_car_heading 35@ {heading} 1.533
36@ = create_car 580 {x} 1255.024 {y} -804.587 {z} 83.934
set_car_heading 36@ {heading} 182.9
70@ = 1

:MUSIC2_973
if 
  70@ == 1
goto_if_false @MUSIC2_1834
34@ = get_char_area_visible $scplayer
if 
  34@ == 5
goto_if_false @MUSIC2_1834
set_wanted_multiplier 0.0
switch_widescreen True
set_fixed_camera_position 1256.623 {y} -801.0125 {z} 1084.0909 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1255.9301 {y} -801.7316 {z} 1084.0439 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1299.3521 {y} -792.6416 {z} 1083.0081
set_char_heading $scplayer {heading} 0.0
clear_area 1299.3521 {y} -792.6416 {z} 200.0 {radius} 200.0 {clearParticles} False
request_animation "CRIB"
request_animation "VENDING"
request_model 335
request_model 24
request_model 25
request_model 352
load_mission_audio MissionAudioSlot.Slot3 {audioId} 43000
load_all_models_now 
load_scene 1256.623 {y} -801.0125 {z} 1084.0909

:MUSIC2_1198
if or
  not has_animation_loaded "CRIB"
  not has_animation_loaded "VENDING"
  not has_model_loaded 335
  not has_model_loaded 24
request_model 25
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC2_1256
wait 0
goto @MUSIC2_1198

:MUSIC2_1256
set_player_control $player1 {state} False
set_radar_zoom 100
remove_blip 61@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1301.98 {y} -785.31 {z} 1083.05
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_follow_node_threshold_distance 37@ {range} 2.0
set_char_heading 37@ {heading} 358.83
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 37@ {accuracy} 90
set_char_drops_weapons_when_dead 37@ {state} False
set_char_area_visible 37@ {areaId} 5
print_now 'STP2_3' {time} 7000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_1703
wait 1000
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.063 {y} -769.8262 {z} 1083.0229
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 38@ {areaId} 5
set_char_heading 38@ {heading} 270.552
set_follow_node_threshold_distance 38@ {range} 5.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
wait 3500
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_1547
task_go_straight_to_coord 38@ {x} 1262.056 {y} -769.9772 {z} 1083.988 {speed} MoveState.Walk {time} -1

:MUSIC2_1547
wait 500
set_fixed_camera_position 1260.744 {y} -769.5749 {z} 1085.2581 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1259.781 {y} -769.5841 {z} 1084.988 {switchStyle} SwitchType.JumpCut
print_now 'STP2_39' {time} 7000 {flag} 1
wait 7000
set_near_clip 0.1
set_fixed_camera_position 1299.504 {y} -793.3958 {z} 1084.693 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1299.589 {y} -792.3994 {z} 1084.6851 {switchStyle} SwitchType.JumpCut
print_now 'STP2_5' {time} 7000 {flag} 1
wait 7000

:MUSIC2_1703
skip_cutscene_end 
delete_char 38@
59@ = create_pickup #KMB_RHYMESBOOK {pickupType} PickupType.Once {x} 1256.871 {y} -801.048 {z} 1084.063
61@ = add_blip_for_pickup 59@
set_blip_entry_exit 61@ {x} 1298.78 {y} -798.2 {radius} 1.0
disable_all_entry_exits True
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
set_player_cycle_weapon_button $player1 {enabled} False
delete_car 35@
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
delete_car 36@
clear_prints 
TIMERA = 0
70@ = 2

:MUSIC2_1834
if 
  85@ == 0
goto_if_false @MUSIC2_6612
if 
  70@ == 2
goto_if_false @MUSIC2_6612
if 
  71@ == 0
goto_if_false @MUSIC2_1924
print_help 'STP2_7'
flash_hud_object HudObject.Radar
TIMERA = 0
TIMERB = 0
71@ = 1

:MUSIC2_1924
if 
  79@ == 0
goto_if_false @MUSIC2_1972
if 
  TIMERB > 5000
goto_if_false @MUSIC2_1972
flash_hud_object -1
79@ = 1

:MUSIC2_1972
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2303
if 
  71@ == 1
goto_if_false @MUSIC2_2054
if 
  TIMERA > 5000
goto_if_false @MUSIC2_2054
print_help 'STP2_9'
flash_hud_object -1
TIMERA = 0
71@ = 2

:MUSIC2_2054
if 
  71@ == 2
goto_if_false @MUSIC2_2141
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2141
if or
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
  TIMERA > 9500
goto_if_false @MUSIC2_2141
TIMERA = 0
71@ = 3

:MUSIC2_2141
if 
  71@ == 3
goto_if_false @MUSIC2_2230
if or
  TIMERA > 10000
  is_char_playing_anim $scplayer {animationName} "KILL_PARTIAL"
  is_player_targetting_char $player1 {handle} 37@
goto_if_false @MUSIC2_2230
print_help 'STP2_10'
TIMERA = 0
71@ = 4

:MUSIC2_2230
if 
  71@ == 4
goto_if_false @MUSIC2_2303
if 
  is_char_playing_anim $scplayer {animationName} "KILL_PARTIAL"
goto_if_false @MUSIC2_2303
print_help 'STP2_11'
TIMERA = 0
71@ = 5

:MUSIC2_2303
if 
  72@ == 0
goto_if_false @MUSIC2_3038
if 
  locate_char_any_means_3d $scplayer {x} 1290.907 {y} -781.423 {z} 1083.59 {xRadius} 4.3 {yRadius} 4.3 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_3038
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_2392
96@ = 1

:MUSIC2_2392
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_near_clip 0.1
clear_area 1290.907 {y} -781.423 {z} 100.0 {radius} 100.0 {clearParticles} False
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 38@ {areaId} 5
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 5.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 90
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop
set_char_coordinates $scplayer {x} 1297.599 {y} -781.234 {z} 1083.048
set_char_heading $scplayer {heading} 89.58
set_fixed_camera_position 1291.0551 {y} -784.506 {z} 1084.514 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1290.55 {y} -783.6482 {z} 1084.417 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2912
delete_char 37@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1304.189 {y} -785.871 {z} 1084.048
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 37@ {areaId} 5
set_follow_node_threshold_distance 37@ {range} 2.0
set_char_heading 37@ {heading} 311.2134
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 37@ {accuracy} 90
set_char_drops_weapons_when_dead 37@ {state} False

:MUSIC2_2912
print_now 'STP2_13' {time} 6000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_2945
wait 4000

:MUSIC2_2945
skip_cutscene_end 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_2983
task_toggle_duck $scplayer {state} True

:MUSIC2_2983
96@ = 0
switch_widescreen False
print_now 'STP2_14' {time} 5000 {flag} 1
TIMERA = 0
TIMERB = 0
72@ = 1
71@ = 6

:MUSIC2_3038
if 
  71@ == 6
goto_if_false @MUSIC2_3082
if 
  TIMERA > 5000
goto_if_false @MUSIC2_3082
71@ = 7

:MUSIC2_3082
if 
  73@ == 0
goto_if_false @MUSIC2_4090
if 
  locate_char_any_means_3d $scplayer {x} 1260.104 {y} -769.51 {z} 1083.0601 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_4090
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_3171
96@ = 1

:MUSIC2_3171
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
clear_prints 
clear_area 1260.104 {y} -769.51 {z} 100.0 {radius} 100.0 {clearParticles} False
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.598 {y} -780.06 {z} 1083.063
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 39@ {areaId} 5
set_char_accuracy 39@ {accuracy} 90
set_char_heading 39@ {heading} 355.188
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
task_go_straight_to_coord 39@ {x} 1250.092 {y} -769.277 {z} 1083.064 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1249.856 {y} -766.8402 {z} 1084.777 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1249.814 {y} -767.8293 {z} 1084.637 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1266.494 {y} -769.705 {z} 1083.0601
set_char_heading $scplayer {heading} 92.259
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_3671
delete_char 38@
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 2.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 90
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop

:MUSIC2_3671
print_now 'STP2_15' {time} 3000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_3846
wait 1000
print_now 'STP2_16' {time} 4000 {flag} 1
set_fixed_camera_position 1267.405 {y} -769.6973 {z} 1084.667 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1266.412 {y} -769.6685 {z} 1084.551 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 39@
goto_if_false @MUSIC2_3817
set_char_coordinates 39@ {x} 1249.598 {y} -780.06 {z} 1083.063
set_char_heading 39@ {heading} 355.188

:MUSIC2_3817
wait 2000
point_camera_at_point 1266.912 {y} -770.5618 {z} 1084.569 {switchStyle} SwitchType.Interpolation
wait 2000

:MUSIC2_3846
skip_cutscene_end 
delete_char 39@
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.634 {y} -781.405 {z} 1083.5
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 39@ {areaId} 5
set_char_heading 39@ {heading} 357.273
64@ = add_blip_for_char 39@
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
58@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1267.96 {y} -769.792 {z} 1084.0601 {speed} MoveState.Walk {time} -2
set_sequence_to_repeat 58@ {state} True
close_sequence_task 58@
perform_sequence_task 39@ {sequence} 58@
clear_sequence_task 58@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 50
set_char_accuracy 39@ {accuracy} 90
set_char_drops_weapons_when_dead 39@ {state} False
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_4063
task_toggle_duck $scplayer {state} True

:MUSIC2_4063
96@ = 0
clear_prints 
print_help 'STP2_41'
73@ = 1

:MUSIC2_4090
if 
  74@ == 0
goto_if_false @MUSIC2_6070
if 
  locate_char_any_means_3d $scplayer {x} 1249.4659 {y} -789.487 {z} 1083.063 {xRadius} 7.5 {yRadius} 7.5 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_6070
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC2_4194
set_mission_audio_position MissionAudioSlot.Slot3 {x} 1276.3101 {y} -793.92 {z} 1084.12
play_mission_audio MissionAudioSlot.Slot3

:MUSIC2_4194
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_4217
96@ = 1

:MUSIC2_4217
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
clear_area 1249.4659 {y} -789.487 {z} 100.0 {radius} 100.0 {clearParticles} False
set_char_coordinates $scplayer {x} 1249.825 {y} -780.682 {z} 1083.0601
set_char_heading $scplayer {heading} 180.659
clear_prints 
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1258.271 {y} -793.395 {z} 1083.2889
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 40@ {areaId} 5
set_char_heading 40@ {heading} 354.328
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 40@ {range} 5.0
set_char_decision_maker 40@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 40@ {state} False
47@ = create_object_no_offset #CJ_JUICE_CAN {x} 1258.25 {y} -792.64 {z} 1084.16
$x, $y, $z, $x, $y, $z = get_model_dimensions #CJ_JUICE_CAN
$y /= 2.0
$y += 0.027
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_accuracy 41@ {accuracy} 100
set_char_area_visible 41@ {areaId} 5
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 45@
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_4670
49@ = open_sequence_task 
task_pick_up_object -1 {object} 47@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_USE_PT2" {animationFile} "VENDING" {time} 0
task_pick_up_object -1 {object} 47@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {time} 0
close_sequence_task 49@
perform_sequence_task 40@ {sequence} 49@
clear_sequence_task 49@

:MUSIC2_4670
set_fixed_camera_position 1251.8199 {y} -788.354 {z} 1084.502 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1252.463 {y} -789.1154 {z} 1084.42 {switchStyle} SwitchType.JumpCut
print_now 'STP2_19' {time} 5000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_5004
delete_char 38@
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 2.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 100
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop

:MUSIC2_5004
if 
  not is_char_dead 39@
goto_if_false @MUSIC2_5135
delete_char 39@
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1267.96 {y} -769.792 {z} 1084.0601
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 39@ {heading} 0.141
64@ = add_blip_for_char 39@
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 50
set_char_accuracy 39@ {accuracy} 100
set_char_drops_weapons_when_dead 39@ {state} False

:MUSIC2_5135
wait 1750
skip_cutscene_start_internal @MUSIC2_5545
wait 2000
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5220
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk 41@ {duration} 10000

:MUSIC2_5220
wait 500
set_fixed_camera_position 1274.983 {y} -790.5506 {z} 1084.063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1275.575 {y} -791.356 {z} 1084.035 {switchStyle} SwitchType.JumpCut
print_now 'LOC2_BA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:MUSIC2_5296
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_5322
wait 0
goto @MUSIC2_5296

:MUSIC2_5322
set_fixed_camera_position 1276.301 {y} -794.5306 {z} 1084.231 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1276.292 {y} -793.5345 {z} 1084.1429 {switchStyle} SwitchType.JumpCut
print_now 'LOC2_BB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5519
50@ = open_sequence_task 
task_play_anim -1 {animationName} "PED_CONSOLE_LOOSE" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 50@
perform_sequence_task 41@ {sequence} 50@
clear_sequence_task 50@

:MUSIC2_5519
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_5545
wait 0
goto @MUSIC2_5519

:MUSIC2_5545
skip_cutscene_end 
delete_char 40@
delete_char 41@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1258.271 {y} -793.395 {z} 1083.2889
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 354.328
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 40@ {state} False
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_accuracy 40@ {accuracy} 100
set_inform_respected_friends 40@ {radius} 5.0 {_p3} 1
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 41@ {state} False
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 5000
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
set_char_accuracy 41@ {accuracy} 100
set_inform_respected_friends 41@ {radius} 5.0 {_p3} 1
43@ = create_char PedType.Mission1 {modelId} 25 {x} 1262.533 {y} -805.139 {z} 1083.056
set_char_has_used_entry_exit 43@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 43@ {heading} 359.265
set_char_decision_maker 43@ {handleOrTemplate} 45@
68@ = add_blip_for_char 43@
change_blip_display 68@ {display} BlipDisplay.BlipOnly
set_char_drops_weapons_when_dead 43@ {state} False
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 5555
set_char_accuracy 43@ {accuracy} 100
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5974
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MUSIC2_5974
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_6024
task_toggle_duck $scplayer {state} True

:MUSIC2_6024
96@ = 0
TIMERA = 0
TIMERB = 0
71@ = 9
print_help 'STP2_36'
74@ = 1

:MUSIC2_6070
if 
  74@ == 1
goto_if_false @MUSIC2_6262
$x = get_char_speed $scplayer
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_6262
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1246.77 {leftBottomY} -785.08 {leftBottomZ} 1083.26 {rightTopX} 1255.87 {rightTopY} -797.69 {rightTopZ} 1090.0 {drawSphere} False
  $x > 0.0
goto_if_false @MUSIC2_6262
set_char_heading 40@ {heading} 168.503
51@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1256.29 {y} -795.6 {z} 1084.2889 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 51@
perform_sequence_task 40@ {sequence} 51@
clear_sequence_task 51@
74@ = 2

:MUSIC2_6262
if 
  has_pickup_been_collected 59@
goto_if_false @MUSIC2_6390
remove_blip 61@
61@ = add_blip_for_coord 1298.74 {y} -797.46 {z} 1083.4
if 
  is_player_playing $player1
goto_if_false @MUSIC2_6326
set_player_cycle_weapon_button $player1 {enabled} True

:MUSIC2_6326
set_blip_entry_exit 61@ {x} 1298.78 {y} -798.2 {radius} 1.0
print_now 'STP2_40' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
70@ = 3
85@ = 1

:MUSIC2_6390
if 
  is_char_dead 37@
goto_if_false @MUSIC2_6427
if 
  does_blip_exist 62@
goto_if_false @MUSIC2_6427
remove_blip 62@

:MUSIC2_6427
if 
  is_char_dead 38@
goto_if_false @MUSIC2_6464
if 
  does_blip_exist 63@
goto_if_false @MUSIC2_6464
remove_blip 63@

:MUSIC2_6464
if 
  is_char_dead 39@
goto_if_false @MUSIC2_6501
if 
  does_blip_exist 64@
goto_if_false @MUSIC2_6501
remove_blip 64@

:MUSIC2_6501
if 
  is_char_dead 40@
goto_if_false @MUSIC2_6538
if 
  does_blip_exist 65@
goto_if_false @MUSIC2_6538
remove_blip 65@

:MUSIC2_6538
if 
  is_char_dead 41@
goto_if_false @MUSIC2_6575
if 
  does_blip_exist 66@
goto_if_false @MUSIC2_6575
remove_blip 66@

:MUSIC2_6575
if 
  is_char_dead 43@
goto_if_false @MUSIC2_6612
if 
  does_blip_exist 68@
goto_if_false @MUSIC2_6612
remove_blip 68@

:MUSIC2_6612
if 
  70@ == 3
goto_if_false @MUSIC2_8701
if 
  85@ == 1
goto_if_false @MUSIC2_8013
disable_all_entry_exits False
60@ = create_pickup_with_ammo 347 {pickupType} PickupType.Once {ammo} 30 {x} 1237.418 {y} -808.5872 {z} 1084.09
delete_char 37@
delete_char 38@
delete_char 39@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1243.53 {y} -812.19 {z} 1083.04
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 37@ {heading} 270.948
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_follow_node_threshold_distance 37@ {range} 2.0
task_follow_path_nodes_to_coord 37@ {x} 1270.694 {y} -802.518 {z} 1084.05 {speed} MoveState.Walk {time} -2
set_inform_respected_friends 37@ {radius} 10.0 {_p3} 1
set_char_accuracy 37@ {accuracy} 100
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1280.02 {y} -789.01 {z} 1083.05
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 91.837
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 38@ {radius} 5.0 {_p3} 1
set_char_accuracy 38@ {accuracy} 100
42@ = create_char PedType.Mission1 {modelId} 24 {x} 1249.7679 {y} -780.616 {z} 1084.063
set_char_has_used_entry_exit 42@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 42@ {heading} 3.43
67@ = add_blip_for_char 42@
change_blip_display 67@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 42@ {handleOrTemplate} 45@
give_weapon_to_char 42@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
flush_patrol_route 
extend_patrol_route 1249.799 {y} -769.679 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1267.62 {y} -769.651 {z} 1084.0601 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1249.799 {y} -769.679 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1249.7679 {y} -780.616 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 42@ {speed} MoveState.Walk {mode} RouteMode.Loop
set_inform_respected_friends 42@ {radius} 15.0 {_p3} 2
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_7349
delete_char 41@
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 46@
give_weapon_to_char 41@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_inform_respected_friends 41@ {radius} 20.0 {_p3} 1
goto @MUSIC2_7465

:MUSIC2_7349
remove_char_elegantly 41@
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1270.616 {y} -792.298 {z} 1084.047
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 186.126
set_char_decision_maker 41@ {handleOrTemplate} 46@
give_weapon_to_char 41@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
task_sit_down 41@ {time} 400000
set_inform_respected_friends 41@ {radius} 20.0 {_p3} 1

:MUSIC2_7465
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_7624
delete_char 40@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1256.4919 {y} -795.662 {z} 1084.282
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 186.842
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 46@
give_weapon_to_char 40@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 40@ {radius} 10.0 {_p3} 1
goto @MUSIC2_7760

:MUSIC2_7624
remove_char_elegantly 40@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1252.99 {y} -795.461 {z} 1083.282
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 186.842
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 46@
give_weapon_to_char 40@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 40@ {radius} 10.0 {_p3} 1

:MUSIC2_7760
44@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 44@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 44@ {heading} 350.151
set_follow_node_threshold_distance 44@ {range} 5.0
set_char_decision_maker 44@ {handleOrTemplate} 46@
69@ = add_blip_for_char 44@
change_blip_display 69@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 44@ {weaponType} WeaponType.PistolSilenced {ammo} 5000
set_char_accuracy 44@ {accuracy} 100
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 44@ {speed} MoveState.Walk {mode} RouteMode.Loop
78@ = 0
85@ = 2

:MUSIC2_8013
if 
  94@ == 0
goto_if_false @MUSIC2_8134
if 
  locate_char_any_means_3d $scplayer {x} 1282.61 {y} -787.389 {z} 1084.063 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_8134
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_8103
set_char_decision_maker 40@ {handleOrTemplate} 45@

:MUSIC2_8103
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_8127
set_char_decision_maker 41@ {handleOrTemplate} 45@

:MUSIC2_8127
94@ = 1

:MUSIC2_8134
if 
  78@ == 0
goto_if_false @MUSIC2_8231
if 
  locate_char_on_foot_3d $scplayer {x} 1249.61 {y} -772.86 {z} 1083.46 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC2_8231
if 
  not is_char_dead 44@
goto_if_false @MUSIC2_8231
set_char_decision_maker 44@ {handleOrTemplate} 45@
78@ = 1

:MUSIC2_8231
if 
  85@ > 0
goto_if_false @MUSIC2_8304
if 
  71@ == 9
goto_if_false @MUSIC2_8304
if 
  TIMERA > 8500
goto_if_false @MUSIC2_8304
print_help 'STP2_33'
71@ = 10

:MUSIC2_8304
34@ = get_char_area_visible $scplayer
if 
  34@ == 0
goto_if_false @MUSIC2_8405
remove_blip 61@

:MUSIC2_8335
if 
  not get_fading_status 
goto_if_false @MUSIC2_8359
wait 0
goto @MUSIC2_8335

:MUSIC2_8359
set_char_coordinates $scplayer {x} 1299.6639 {y} -800.546 {z} 83.148
set_char_heading $scplayer {heading} 271.284
set_camera_behind_player 
85@ = 2
70@ = 4

:MUSIC2_8405
if 
  is_char_dead 37@
goto_if_false @MUSIC2_8442
if 
  does_blip_exist 62@
goto_if_false @MUSIC2_8442
remove_blip 62@

:MUSIC2_8442
if 
  is_char_dead 38@
goto_if_false @MUSIC2_8479
if 
  does_blip_exist 63@
goto_if_false @MUSIC2_8479
remove_blip 63@

:MUSIC2_8479
if 
  is_char_dead 39@
goto_if_false @MUSIC2_8516
if 
  does_blip_exist 64@
goto_if_false @MUSIC2_8516
remove_blip 64@

:MUSIC2_8516
if 
  is_char_dead 40@
goto_if_false @MUSIC2_8553
if 
  does_blip_exist 65@
goto_if_false @MUSIC2_8553
remove_blip 65@

:MUSIC2_8553
if 
  is_char_dead 41@
goto_if_false @MUSIC2_8590
if 
  does_blip_exist 66@
goto_if_false @MUSIC2_8590
remove_blip 66@

:MUSIC2_8590
if 
  is_char_dead 42@
goto_if_false @MUSIC2_8627
if 
  does_blip_exist 67@
goto_if_false @MUSIC2_8627
remove_blip 67@

:MUSIC2_8627
if 
  is_char_dead 43@
goto_if_false @MUSIC2_8664
if 
  does_blip_exist 68@
goto_if_false @MUSIC2_8664
remove_blip 68@

:MUSIC2_8664
if 
  is_char_dead 44@
goto_if_false @MUSIC2_8701
if 
  does_blip_exist 69@
goto_if_false @MUSIC2_8701
remove_blip 69@

:MUSIC2_8701
if 
  85@ == 2
goto_if_false @MUSIC2_8990
if 
  70@ == 4
goto_if_false @MUSIC2_8990
61@ = add_blip_for_coord 790.0 {y} -1631.0 {z} 12.43
clear_mission_audio MissionAudioSlot.Slot3
53@ = create_car 510 {x} 1306.718 {y} -797.24 {z} 83.66
set_car_heading 53@ {heading} 206.253
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
mark_model_as_no_longer_needed #KMB_RHYMESBOOK
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_model_as_no_longer_needed 347
remove_animation "CRIB"
remove_animation "VENDING"
mark_model_as_no_longer_needed 335
set_radar_zoom 0
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
print_now 'STP2_30' {time} 7000 {flag} 1
70@ = 5
TIMERA = 0

:MUSIC2_8990
if 
  97@ == 0
goto_if_false @MUSIC2_9050
if 
  not is_car_dead 53@
goto_if_false @MUSIC2_9050
if 
  is_char_sitting_in_car $scplayer {vehicle} 53@
goto_if_false @MUSIC2_9050
97@ = 1

:MUSIC2_9050
if 
  70@ == 5
goto_if_false @MUSIC2_9584
if 
  locate_char_any_means_3d $scplayer {x} 788.05 {y} -1630.3101 {z} 12.42 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @MUSIC2_9584
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.Out

:MUSIC2_9134
if 
  get_fading_status 
goto_if_false @MUSIC2_9158
wait 0
goto @MUSIC2_9134

:MUSIC2_9158
clear_area -1095.489 {y} -1630.609 {z} 50.0 {radius} 50.0 {clearParticles} True
mark_car_as_no_longer_needed 53@
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC2_9278
$car = store_car_char_is_in $scplayer
set_car_coordinates $car {x} 784.686 {y} -1613.7 {z} 12.22
set_car_heading $car {heading} 353.08
warp_char_from_car_to_coord $scplayer {x} 785.75 {y} -1632.84 {z} 12.43
set_char_heading $scplayer {heading} 316.0
goto @MUSIC2_9308

:MUSIC2_9278
set_char_coordinates $scplayer {x} 785.75 {y} -1632.84 {z} 12.43
set_char_heading $scplayer {heading} 316.0

:MUSIC2_9308
request_animation "GANGS"
load_special_character 1 {modelName} 'OGLOC'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15602
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15600
load_all_models_now 

:MUSIC2_9354
if or
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC2_9393
wait 0
goto @MUSIC2_9354

:MUSIC2_9393
52@ = create_char PedType.Special {modelId} 290 {x} 792.72 {y} -1626.6 {z} 12.43
set_char_heading 52@ {heading} 114.71
set_char_decision_maker 52@ {handleOrTemplate} 46@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up 52@ {state} True
shut_char_up $scplayer {state} True
do_fade 2000 {direction} Fade.In
95@ = 1
set_fixed_camera_position 785.7997 {y} -1635.4301 {z} 13.4579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 786.2913 {y} -1634.5649 {z} 13.3583 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $scplayer {x} 788.98 {y} -1629.61 {z} 12.59 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord 52@ {x} 788.98 {y} -1629.61 {z} 12.59 {speed} MoveState.Walk {time} -1
TIMERA = 0
70@ = 6

:MUSIC2_9584
if 
  70@ == 6
goto_if_false @MUSIC2_9839
if 
  TIMERA > 2440
goto_if_false @MUSIC2_9839
if 
  not is_char_dead 52@
goto_if_false @MUSIC2_9839
set_fixed_camera_position 788.2733 {y} -1628.832 {z} 13.9503 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 788.473 {y} -1629.811 {z} 13.9214 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 787.973 {y} -1630.274 {z} 12.42
set_char_heading $scplayer {heading} 310.378
set_char_coordinates 52@ {x} 788.7348 {y} -1629.626 {z} 12.42
set_char_heading 52@ {heading} 130.378
clear_char_tasks_immediately 52@
clear_char_tasks_immediately $scplayer
task_play_anim 52@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
70@ = 7

:MUSIC2_9839
if 
  70@ > 4
goto_if_false @MUSIC2_10504
if 
  not is_char_dead 52@
goto_if_false @MUSIC2_10504
if 
  95@ == 1
goto_if_false @MUSIC2_9926
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'LOC2_CA' {time} 5000 {flag} 1
95@ = 2

:MUSIC2_9926
if 
  95@ == 2
goto_if_false @MUSIC2_9984
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_9984
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15603
95@ = 3

:MUSIC2_9984
if 
  95@ == 3
goto_if_false @MUSIC2_10037
play_mission_audio MissionAudioSlot.Slot2
print_now 'LOC2_CB' {time} 5000 {flag} 1
start_char_facial_talk 52@ {duration} 10000
95@ = 4

:MUSIC2_10037
if 
  95@ == 4
goto_if_false @MUSIC2_10095
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_10095
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk 52@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15601
95@ = 5

:MUSIC2_10095
if 
  95@ == 5
goto_if_false @MUSIC2_10163
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC2_10163
print_now 'LOC2_CC' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
play_mission_audio MissionAudioSlot.Slot1
95@ = 6

:MUSIC2_10163
if 
  95@ == 6
goto_if_false @MUSIC2_10210
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_10210
clear_prints 
stop_char_facial_talk $scplayer
95@ = 7

:MUSIC2_10210
if 
  95@ == 7
goto_if_false @MUSIC2_10368
set_fixed_camera_position 773.2047 {y} -1633.066 {z} 17.7324 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 774.1813 {y} -1632.908 {z} 17.5877 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot2
print_now 'LOC2_DC' {time} 5000 {flag} 1
start_char_facial_talk 52@ {duration} 4000
task_go_straight_to_coord $scplayer {x} 806.1331 {y} -1630.219 {z} 12.3906 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord 52@ {x} 793.8177 {y} -1625.155 {z} 12.3828 {speed} MoveState.Walk {time} 60000
95@ = 8

:MUSIC2_10368
if 
  95@ == 8
goto_if_false @MUSIC2_10504
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_10504
do_fade 1000 {direction} Fade.Out
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2

:MUSIC2_10414
if 
  get_fading_status 
goto_if_false @MUSIC2_10438
wait 0
goto @MUSIC2_10414

:MUSIC2_10438
set_char_coordinates $scplayer {x} 808.299 {y} -1630.424 {z} 12.42
set_char_heading $scplayer {heading} 254.602
do_fade 1000 {direction} Fade.In
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
goto @MUSIC2_10529
95@ = 9

:MUSIC2_10504
goto @MUSIC2_745

:MUSIC2_10511
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC2_10529
register_mission_passed 'STRAP_2'
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 4
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
$flag_strap_mission_counter += 1
return 

:MUSIC2_10584
set_script_limit_to_gang_size 99
remove_char_elegantly 52@
remove_pickup 60@
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
if 
  is_player_playing $player1
goto_if_false @MUSIC2_10654
set_player_cycle_weapon_button $player1 {enabled} True
set_player_group_recruitment $player1 {state} True

:MUSIC2_10654
set_wanted_multiplier 1.0
set_radar_zoom 0
shut_char_up $scplayer {state} False
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_pickup 59@
unload_special_character 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
mark_model_as_no_longer_needed #KMB_RHYMESBOOK
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_model_as_no_longer_needed 347
remove_animation "CRIB"
remove_animation "VENDING"
mark_model_as_no_longer_needed 335
$onmission = 0
disable_all_entry_exits False
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 33---------------
// Originally: Management Issues

:MUSIC3
script_name 'MUSIC3'
gosub @MUSIC3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC3_38
gosub @MUSIC3_15486

:MUSIC3_38
gosub @MUSIC3_15590
terminate_this_script 

:MUSIC3_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP3'
if 
  $onmission == 0
goto_if_false @MUSIC3_805
90@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1123.2 {z} 22.9
91@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1127.2 {z} 22.9
92@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1131.2 {z} 22.9
93@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1123.2 {z} 22.9
94@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1127.2 {z} 22.9
95@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1131.2 {z} 22.9
96@ = create_object #DYN_ROADBARRIER_2 {x} 1016.5 {y} -1133.2 {z} 22.9
97@ = create_object #DYN_ROADBARRIER_2 {x} 1012.5 {y} -1133.2 {z} 22.9
98@ = create_object #DYN_ROADBARRIER_2 {x} 1008.5 {y} -1133.2 {z} 22.9
99@ = create_object #DYN_ROADBARRIER_2 {x} 1028.5 {y} -1133.2 {z} 22.9
100@ = create_object #DYN_ROADBARRIER_2 {x} 1032.5 {y} -1133.2 {z} 22.9
101@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
78@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
79@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
80@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
81@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
82@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
83@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
84@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
85@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
86@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
87@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
88@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
89@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
113@ = add_blip_for_coord 1118.3 {y} -1140.9 {z} 22.2
63@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
70@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
67@ = create_car 507 {x} 1174.1 {y} -926.8 {z} 43.6
65@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
64@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
111@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9

:MUSIC3_805
clear_prints 
wait 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
175@ = 0
126@ = 0
$x = 0.0
$y = 0.0
$z = 0.0
140@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
set_lvar_int_to_constant 136@ = 24
141@ = 0
142@ = 0
225@ = 0.0
226@ = 0.0
227@ = 0.0
228@ = 0.0
229@ = 0.0
230@ = 0.0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
$minutes = 0
150@ = 0
157@ = 0.0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
220@ = 0
221@ = 0
222@ = 0
223@ = 0
224@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
156@ = 0
170@ = 0
171@ = 0
make_player_gang_disappear 
set_area_visible 10
set_fading_colour 0 {g} 0 {b} 0
load_cutscene 'STRAP3A'

:MUSIC3_1314
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC3_1338
wait 0
goto @MUSIC3_1314

:MUSIC3_1338
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC3_1347
if 
  not has_cutscene_finished 
goto_if_false @MUSIC3_1371
wait 0
goto @MUSIC3_1347

:MUSIC3_1371
do_fade 0 {direction} Fade.Out

:MUSIC3_1377
if 
  get_fading_status 
goto_if_false @MUSIC3_1401
wait 0
goto @MUSIC3_1377

:MUSIC3_1401
set_area_visible 0
clear_cutscene 
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 24
request_model 507
request_model 346
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 35200
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
233@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
234@ = load_char_decision_maker DecisionMakerType.Tough
clear_area 1214.8 {y} -921.7 {z} 41.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
73@ = create_car 507 {x} 1214.8 {y} -921.7 {z} 41.7
set_car_heading 73@ {heading} 169.3
change_car_colour 73@ {color1} 0 {color2} 0
set_can_respray_car 73@ {changeColors} False
set_car_only_damaged_by_player 73@ {state} True
lock_car_doors 73@ {lockStatus} CarLock.Unlocked
set_car_only_damaged_by_player 73@ {state} True
set_can_burst_car_tyres 73@ {state} False
113@ = add_blip_for_car 73@
76@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 24
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 76@ {handleOrTemplate} 234@
clear_area 1297.6 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
72@ = create_car 507 {x} 1297.6 {y} -1137.2 {z} 22.5
set_car_heading 72@ {heading} 90.0
set_car_only_damaged_by_player 72@ {state} True
change_car_colour 72@ {color1} 0 {color2} 0
mark_car_as_convoy_car 72@ {state} True
lock_car_doors 72@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position_and_dont_load_collision 72@ {state} True
set_can_burst_car_tyres 72@ {state} False
clear_area 1316.5 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
74@ = create_car 507 {x} 1316.5 {y} -1137.2 {z} 22.5
set_car_heading 74@ {heading} 90.0
set_car_only_damaged_by_player 74@ {state} True
change_car_colour 74@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
lock_car_doors 74@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_driving_style 74@ {drivingStyle} DrivingMode.SlowDownForCars
freeze_car_position_and_dont_load_collision 74@ {state} True
set_can_burst_car_tyres 74@ {state} False
set_car_straight_line_distance 74@ {distance} 50
set_car_can_be_visibly_damaged 74@ {state} False
mark_road_node_as_dont_wander 76.6 {y} -1527.6 {z} 4.1
mark_road_node_as_dont_wander 162.2 {y} -1394.6 {z} 46.8
mark_road_node_as_dont_wander 273.2 {y} -980.9 {z} 47.4
mark_road_node_as_dont_wander 362.8 {y} -1147.8 {z} 77.0
mark_road_node_as_dont_wander 378.1 {y} -1147.4 {z} 77.0
mark_road_node_as_dont_wander 1536.4 {y} -994.8 {z} 41.5
mark_road_node_as_dont_wander 1638.7 {y} -1177.5 {z} 54.1
mark_road_node_as_dont_wander 1873.9 {y} -1009.4 {z} 35.0
mark_road_node_as_dont_wander 2887.8 {y} -1121.4 {z} 9.8
mark_road_node_as_dont_wander 165.8 {y} -1185.3 {z} 51.8
mark_road_node_as_dont_wander 695.7 {y} -995.6 {z} 51.0
mark_road_node_as_dont_wander 794.8 {y} -1033.6 {z} 23.7
mark_road_node_as_dont_wander 1311.1 {y} -701.7 {z} 91.7
mark_road_node_as_dont_wander 2838.7 {y} -1024.2 {z} 21.5
print_now 'STP3_01' {time} 7000 {flag} 1
print 'STP3_02' {time} 7000 {flag} 1
clear_area 794.6 {y} -1597.1 {z} 12.5 {radius} 1.0 {clearParticles} True
load_scene 794.6 {y} -1597.1 {z} 12.5
set_char_coordinates $scplayer {x} 794.6 {y} -1597.1 {z} 12.5
set_char_heading $scplayer {heading} 45.0
set_time_of_day 16 {minutes} 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
enable_ambient_crime False
TIMERB = 0
do_fade 500 {direction} Fade.In

:MUSIC3_2270
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC3_2296
goto @MUSIC3_15504

:MUSIC3_2296
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_2328
goto @MUSIC3_15486

:MUSIC3_2328
144@ = get_game_timer 
set_lvar_int_to_lvar_int 143@ = 144@
sub_int_lvar_from_int_lvar 143@ -= 145@
set_lvar_int_to_lvar_int 145@ = 144@
sub_int_lvar_from_int_lvar 146@ -= 143@
add_int_lvar_to_int_lvar 159@ += 143@
149@, $minutes = get_time_of_day 
if 
  122@ == 0
goto_if_false @MUSIC3_4540
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @MUSIC3_2444
set_char_coordinates $scplayer {x} 1179.5 {y} -920.3 {z} 42.2
set_char_heading $scplayer {heading} 99.7

:MUSIC3_2444
if 
  175@ == 0
goto_if_false @MUSIC3_2595
if or
  123@ == 1
  123@ == 2
goto_if_false @MUSIC3_2595
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 73@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @MUSIC3_2595
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_2581
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_2574
print 'STP3_19' {time} 7000 {flag} 1

:MUSIC3_2574
goto @MUSIC3_2588

:MUSIC3_2581
175@ = 2

:MUSIC3_2588
175@ = 1

:MUSIC3_2595
if 
  175@ == 1
goto_if_false @MUSIC3_2755
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_2748
if 
  not is_char_sitting_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_2741
clear_this_print 'STP3_19'
if 
  locate_char_any_means_char_3d $scplayer {target} 76@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_2734
if 
  174@ == 0
goto_if_false @MUSIC3_2734
174@ = 1
176@ = 0
gosub @MUSIC3_24543

:MUSIC3_2734
175@ = 2

:MUSIC3_2741
goto @MUSIC3_2755

:MUSIC3_2748
175@ = 2

:MUSIC3_2755
if 
  175@ == 2
goto_if_false @MUSIC3_2874
if 
  174@ == 0
goto_if_false @MUSIC3_2874
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_2874
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_2867
clear_this_print 'STP3_19'
print 'STP3_11' {time} 7000 {flag} 1
175@ = 3
goto @MUSIC3_2874

:MUSIC3_2867
175@ = 3

:MUSIC3_2874
if 
  123@ == 0
goto_if_false @MUSIC3_3327
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3327
if or
  locate_char_any_means_char_2d $scplayer {target} 76@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
  149@ > 17
goto_if_false @MUSIC3_3327
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_3320
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_3099
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
set_player_control $player1 {state} False
switch_widescreen True
174@ = 7
176@ = 0
177@ = 1
gosub @MUSIC3_24543
shut_char_up_for_scripted_speech $scplayer {state} True
124@ = 1
skip_cutscene_start_internal @MUSIC3_3488
task_use_mobile_phone $scplayer {start} True
TIMERA = 0
167@ = 1
123@ = 1
goto @MUSIC3_3313

:MUSIC3_3099
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3264
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_3264
232@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 73@ {time} -1
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1211.0 {y} -932.3 {z} 41.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1160.8 {y} -1027.5 {z} 31.4 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_wander -1 {vehicle} 73@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@
add_stuck_car_check_with_warp 73@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7

:MUSIC3_3264
174@ = 7
176@ = 0
177@ = 5
gosub @MUSIC3_24543
shut_char_up_for_scripted_speech $scplayer {state} True
167@ = 3
123@ = 1

:MUSIC3_3313
goto @MUSIC3_3327

:MUSIC3_3320
123@ = 1

:MUSIC3_3327
if 
  167@ == 1
goto_if_false @MUSIC3_3417
if 
  TIMERA > 2000
goto_if_false @MUSIC3_3417
if 
  174@ == 0
goto_if_false @MUSIC3_3417
174@ = 7
176@ = 1
177@ = 2
gosub @MUSIC3_24543
167@ = 2

:MUSIC3_3417
if 
  167@ == 2
goto_if_false @MUSIC3_3705
if 
  174@ == 0
goto_if_false @MUSIC3_3705
174@ = 7
176@ = 2
177@ = 5
gosub @MUSIC3_24543
124@ = 0

:MUSIC3_3488
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_3522
goto @MUSIC3_15486

:MUSIC3_3522
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3687
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_3687
232@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 73@ {time} -1
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1211.0 {y} -932.3 {z} 41.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1160.8 {y} -1027.5 {z} 31.4 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_wander -1 {vehicle} 73@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@
add_stuck_car_check_with_warp 73@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7

:MUSIC3_3687
set_player_control $player1 {state} True
switch_widescreen False
167@ = 3

:MUSIC3_3705
if 
  167@ == 3
goto_if_false @MUSIC3_3875
if 
  174@ == 0
goto_if_false @MUSIC3_3791
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3777
task_use_mobile_phone $scplayer {start} False

:MUSIC3_3777
shut_char_up_for_scripted_speech $scplayer {state} False
167@ = 4

:MUSIC3_3791
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MUSIC3_3875
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3861
task_use_mobile_phone $scplayer {start} False

:MUSIC3_3861
shut_char_up_for_scripted_speech $scplayer {state} False
167@ = 4

:MUSIC3_3875
if 
  123@ == 1
goto_if_false @MUSIC3_3987
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3987
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_3987
if 
  149@ > 20
goto_if_false @MUSIC3_3987
task_car_drive_to_coord 76@ {vehicle} 73@ {x} 1316.4 {y} -1136.5 {z} 22.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
123@ = 2

:MUSIC3_3987
if 
  123@ == 2
goto_if_false @MUSIC3_4108
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4108
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_4108
if 
  locate_car_2d 73@ {x} 1316.4 {y} -1136.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC3_4108
print_now 'STP3_03' {time} 4000 {flag} 1
150@ = 1
122@ = 9

:MUSIC3_4108
if 
  123@ > 0
goto_if_false @MUSIC3_4341
if 
  3 > 123@
goto_if_false @MUSIC3_4341
if 
  has_car_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @MUSIC3_4225
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4213
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_4213
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4225
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4329
if 
  not is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_4322
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4310
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_4310
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4322
goto @MUSIC3_4341

:MUSIC3_4329
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4341
if 
  149@ > 21
goto_if_false @MUSIC3_4373
150@ = 0
122@ = 9

:MUSIC3_4373
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 73@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MUSIC3_4418
set_car_only_damaged_by_player 73@ {state} False
goto @MUSIC3_4425

:MUSIC3_4418
set_car_only_damaged_by_player 73@ {state} True

:MUSIC3_4425
if 
  123@ == 3
goto_if_false @MUSIC3_4540
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_4540
remove_blip 113@
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
clear_this_print 'STP3_11'
print 'STP3_33' {time} 7000 {flag} 1
mark_model_as_no_longer_needed 330
175@ = 0
123@ = 0
122@ = 1

:MUSIC3_4540
if 
  122@ == 1
goto_if_false @MUSIC3_5521
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @MUSIC3_4603
set_char_coordinates $scplayer {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0

:MUSIC3_4603
if 
  149@ > 21
goto_if_false @MUSIC3_4635
150@ = 0
122@ = 9

:MUSIC3_4635
if 
  123@ == 0
goto_if_false @MUSIC3_4901
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_4901
if or
  not is_car_health_greater 73@ {health} 700
  is_car_visibly_damaged 73@
goto_if_false @MUSIC3_4775
clear_this_print 'STP3_33'
if 
  175@ == 0
goto_if_false @MUSIC3_4775
remove_blip $spray_shop2
$spray_shop2 = add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
print 'STP3_22' {time} 11000 {flag} 1
175@ = 1

:MUSIC3_4775
if 
  is_car_health_greater 73@ {health} 700
goto_if_false @MUSIC3_4901
if 
  not is_car_visibly_damaged 73@
goto_if_false @MUSIC3_4901
clear_this_print 'STP3_22'
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
remove_blip 113@
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
160@ = 0
159@ = 0
175@ = 0
123@ = 1

:MUSIC3_4901
if 
  160@ == 0
goto_if_false @MUSIC3_4961
if 
  159@ > 4000
goto_if_false @MUSIC3_4961
print 'STP3_33' {time} 7000 {flag} 1
160@ = 1

:MUSIC3_4961
if 
  123@ == 1
goto_if_false @MUSIC3_5410
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_5410
if 
  locate_car_3d 73@ {x} 1306.4 {y} -1137.5 {z} 22.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @MUSIC3_5219
157@ = get_car_heading 73@
if 
  157@ > 95.0
goto_if_false @MUSIC3_5112
if 
  360.0 >= 157@
goto_if_false @MUSIC3_5112
print_now 'STP3_25' {time} 7000 {flag} 1

:MUSIC3_5112
if 
  85.0 > 157@
goto_if_false @MUSIC3_5170
if 
  157@ >= 0.0
goto_if_false @MUSIC3_5170
print_now 'STP3_25' {time} 7000 {flag} 1

:MUSIC3_5170
if 
  157@ >= 85.0
goto_if_false @MUSIC3_5219
if 
  95.0 >= 157@
goto_if_false @MUSIC3_5219
123@ = 2

:MUSIC3_5219
if 
  161@ == 0
goto_if_false @MUSIC3_5329
if 
  locate_car_3d 73@ {x} 1306.4 {y} -1137.5 {z} 22.5 {xRadius} 15.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MUSIC3_5329
if or
  is_car_on_screen 72@
  is_car_on_screen 74@
goto_if_false @MUSIC3_5329
print_now 'STP3_25' {time} 7000 {flag} 1
161@ = 1

:MUSIC3_5329
if or
  not is_car_health_greater 73@ {health} 700
  is_car_visibly_damaged 73@
goto_if_false @MUSIC3_5410
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
clear_prints 
print 'STP3_22' {time} 11000 {flag} 1
123@ = 0

:MUSIC3_5410
if 
  is_car_health_greater 73@ {health} 700
goto_if_false @MUSIC3_5514
if 
  not is_car_visibly_damaged 73@
goto_if_false @MUSIC3_5514
if 
  123@ == 2
goto_if_false @MUSIC3_5514
set_player_control $player1 {state} False
mark_char_as_no_longer_needed 76@
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
122@ = 2

:MUSIC3_5514
gosub @MUSIC3_20707

:MUSIC3_5521
if 
  122@ == 9
goto_if_false @MUSIC3_5553
123@ = 0
122@ = 10

:MUSIC3_5553
if 
  122@ == 10
goto_if_false @MUSIC3_7208
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_6509
if 
  123@ == 0
goto_if_false @MUSIC3_6509
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC3_5623
if 
  get_fading_status 
goto_if_false @MUSIC3_5647
wait 0
goto @MUSIC3_5623

:MUSIC3_5647
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
if 
  locate_char_any_means_2d $scplayer {x} 1306.4 {y} -1137.5 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_5768
clear_area 1247.1 {y} -1156.0 {z} 22.7 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1247.1 {y} -1156.0 {z} 22.7

:MUSIC3_5768
load_scene 1305.5 {y} -1131.7 {z} 22.6
delete_car 72@
mark_car_as_no_longer_needed 73@
delete_char 76@
delete_car 74@
set_radio_channel RadioChannel.UserTracks
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
set_char_decision_maker 75@ {handleOrTemplate} 233@
clear_area 1297.6 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
72@ = create_car 507 {x} 1297.6 {y} -1137.2 {z} 22.5
set_car_heading 72@ {heading} 90.0
change_car_colour 72@ {color1} 0 {color2} 0
mark_car_as_convoy_car 72@ {state} True
task_enter_car_as_driver 75@ {vehicle} 72@ {time} -1
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
set_char_decision_maker 77@ {handleOrTemplate} 233@
clear_area 1316.5 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
74@ = create_car 507 {x} 1316.5 {y} -1137.2 {z} 22.5
set_car_heading 74@ {heading} 90.0
change_car_colour 74@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
set_car_straight_line_distance 74@ {distance} 50
if 
  150@ == 1
goto_if_false @MUSIC3_6280
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
73@ = create_car 507 {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
change_car_colour 73@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
set_car_straight_line_distance 73@ {distance} 50
140@ = generate_random_int_in_range 0 {max} 3
76@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 135@(140@,5i)
goto @MUSIC3_6354

:MUSIC3_6280
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_6354
if 
  locate_car_2d 73@ {x} 1306.4 {y} -1137.5 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_6354
set_car_coordinates 73@ {x} 1247.5 {y} -1151.8 {z} 22.6

:MUSIC3_6354
set_fixed_camera_position 1292.8 {y} -1143.5 {z} 24.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1302.3 {y} -1136.2 {z} 24.0 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  150@ == 0
goto_if_false @MUSIC3_6448
print_now 'STP3_20' {time} 8000 {flag} 1
goto @MUSIC3_6464

:MUSIC3_6448
print_now 'STP3_21' {time} 8000 {flag} 1

:MUSIC3_6464
do_fade 500 {direction} Fade.In

:MUSIC3_6471
if 
  get_fading_status 
goto_if_false @MUSIC3_6495
wait 0
goto @MUSIC3_6471

:MUSIC3_6495
TIMERA = 0
123@ = 1

:MUSIC3_6509
if 
  123@ == 1
goto_if_false @MUSIC3_6595
if 
  TIMERA > 1000
goto_if_false @MUSIC3_6595
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_6588
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6588
task_enter_car_as_driver 77@ {vehicle} 74@ {time} -1

:MUSIC3_6588
123@ = 2

:MUSIC3_6595
if 
  123@ == 2
goto_if_false @MUSIC3_6961
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6961
$task_status = get_script_task_status 77@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_6961
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_6746
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_6746
231@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 72@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 75@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6746
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_6841
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6841
231@ = open_sequence_task 
task_pause -1 {time} 500
task_car_drive_to_coord -1 {vehicle} 74@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 77@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6841
if 
  150@ == 1
goto_if_false @MUSIC3_6954
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_6954
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_6954
231@ = open_sequence_task 
task_pause -1 {time} 1000
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 76@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6954
123@ = 3

:MUSIC3_6961
if 
  123@ == 3
goto_if_false @MUSIC3_7208
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_7208
if 
  not is_car_on_screen 72@
goto_if_false @MUSIC3_7208
do_fade 500 {direction} Fade.Out

:MUSIC3_7018
if 
  get_fading_status 
goto_if_false @MUSIC3_7042
wait 0
goto @MUSIC3_7018

:MUSIC3_7042
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
225@, 226@, 227@ = get_char_coordinates $scplayer
load_scene 225@ {y} 226@ {z} 227@
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  150@ == 0
goto_if_false @MUSIC3_7154
print_now 'STP3_20' {time} 5500 {flag} 1
goto @MUSIC3_7170

:MUSIC3_7154
print_now 'STP3_21' {time} 5500 {flag} 1

:MUSIC3_7170
do_fade 500 {direction} Fade.In

:MUSIC3_7177
if 
  get_fading_status 
goto_if_false @MUSIC3_7201
wait 0
goto @MUSIC3_7177

:MUSIC3_7201
goto @MUSIC3_15486

:MUSIC3_7208
if 
  122@ == 2
goto_if_false @MUSIC3_9827
if 
  126@ == 0
goto_if_false @MUSIC3_7591
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
switch_audio_zone 'AWARDS' {state} True
shut_all_chars_up True
clear_wanted_level $player1
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 75@ {handleOrTemplate} 233@
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 77@ {handleOrTemplate} 233@
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_car_coordinates 73@ {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 1288.6 {y} -1146.2 {z} 28.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1301.0 {y} -1137.2 {z} 23.3 {switchStyle} SwitchType.JumpCut
freeze_car_position_and_dont_load_collision 72@ {state} False
task_enter_car_as_driver 75@ {vehicle} 72@ {time} -1
TIMERA = 0
126@ = 1

:MUSIC3_7591
if 
  126@ == 1
goto_if_false @MUSIC3_7682
if 
  TIMERA > 1000
goto_if_false @MUSIC3_7682
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_7661
freeze_car_position_and_dont_load_collision 74@ {state} False
task_enter_car_as_driver 77@ {vehicle} 74@ {time} -1

:MUSIC3_7661
124@ = 1
skip_cutscene_start_internal @MUSIC3_8920
126@ = 2

:MUSIC3_7682
if 
  126@ == 2
goto_if_false @MUSIC3_7780
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_7780
$task_status = get_script_task_status 77@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_7780
174@ = 8
176@ = 0
177@ = 2
gosub @MUSIC3_24543
126@ = 3

:MUSIC3_7780
if 
  126@ == 3
goto_if_false @MUSIC3_8156
if 
  174@ == 0
goto_if_false @MUSIC3_8156
do_fade 500 {direction} Fade.Out

:MUSIC3_7823
if 
  get_fading_status 
goto_if_false @MUSIC3_7847
wait 0
goto @MUSIC3_7823

:MUSIC3_7847
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_7879
goto @MUSIC3_15486

:MUSIC3_7879
request_model 20
request_model 91
request_model 367
request_model 409
request_model 280
request_model #DYN_ROADBARRIER_2
load_all_models_now 
set_radio_channel RadioChannel.UserTracks

:MUSIC3_7913
if 
  130@ == 0
goto_if_false @MUSIC3_7949
wait 0
gosub @MUSIC3_16523
goto @MUSIC3_7913

:MUSIC3_7949
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_7981
goto @MUSIC3_15486

:MUSIC3_7981
set_time_of_day 22 {minutes} 0
clear_area 1022.2 {y} -1133.2 {z} 24.0 {radius} 80.0 {clearParticles} True
load_scene 1022.2 {y} -1133.2 {z} 24.0
set_fixed_camera_position 996.6 {y} -1144.4 {z} 29.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1018.9 {y} -1133.7 {z} 23.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_8086
if 
  get_fading_status 
goto_if_false @MUSIC3_8110
wait 0
goto @MUSIC3_8086

:MUSIC3_8110
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8142
goto @MUSIC3_15486

:MUSIC3_8142
126@ = 4
TIMERA = 0

:MUSIC3_8156
if 
  126@ == 4
goto_if_false @MUSIC3_8324
if 
  not is_car_dead 66@
goto_if_false @MUSIC3_8317
if 
  not is_char_dead 69@
goto_if_false @MUSIC3_8317
$task_status = get_script_task_status 69@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_8317
225@, 226@, $z = get_offset_from_car_in_world_coords 66@ {xOffset} 1.7 {yOffset} 1.5 {zOffset} 0.0
231@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 225@ {y} 226@ {z} 227@ {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 231@
perform_sequence_task 69@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_8317
126@ = 5

:MUSIC3_8324
if 
  126@ == 5
goto_if_false @MUSIC3_8447
gosub @MUSIC3_20255
if 
  TIMERA > 4000
goto_if_false @MUSIC3_8447
set_fixed_camera_position 1026.3 {y} -1123.6 {z} 24.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1023.6 {y} -1123.8 {z} 24.3 {switchStyle} SwitchType.JumpCut
174@ = 11
176@ = 0
gosub @MUSIC3_24543
126@ = 6

:MUSIC3_8447
if 
  126@ == 6
goto_if_false @MUSIC3_8563
if 
  174@ == 0
goto_if_false @MUSIC3_8563
174@ = 12
176@ = 0
gosub @MUSIC3_24543
if 
  not is_char_dead 65@
goto_if_false @MUSIC3_8556
task_play_anim 65@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MUSIC3_8556
126@ = 7

:MUSIC3_8563
if 
  126@ == 7
goto_if_false @MUSIC3_8877
gosub @MUSIC3_20255
if 
  174@ == 0
goto_if_false @MUSIC3_8877
if 
  174@ == 0
goto_if_false @MUSIC3_8877
do_fade 500 {direction} Fade.Out

:MUSIC3_8631
if 
  get_fading_status 
goto_if_false @MUSIC3_8655
wait 0
goto @MUSIC3_8631

:MUSIC3_8655
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8687
goto @MUSIC3_15486

:MUSIC3_8687
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 60.0 {clearParticles} True
load_scene 1305.5 {y} -1131.7 {z} 22.6
set_fixed_camera_position 1288.6 {y} -1146.2 {z} 28.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1301.0 {y} -1137.2 {z} 23.3 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_8786
if 
  get_fading_status 
goto_if_false @MUSIC3_8810
wait 0
goto @MUSIC3_8786

:MUSIC3_8810
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8842
goto @MUSIC3_15486

:MUSIC3_8842
174@ = 8
176@ = 2
177@ = 4
gosub @MUSIC3_24543
126@ = 8

:MUSIC3_8877
if 
  126@ == 8
goto_if_false @MUSIC3_9827
if 
  174@ == 0
goto_if_false @MUSIC3_9827
124@ = 0

:MUSIC3_8920
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8954
goto @MUSIC3_15486

:MUSIC3_8954
if 
  124@ == 1
goto_if_false @MUSIC3_9509
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC3_8996
if 
  get_fading_status 
goto_if_false @MUSIC3_9020
wait 0
goto @MUSIC3_8996

:MUSIC3_9020
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9052
goto @MUSIC3_15486

:MUSIC3_9052
freeze_car_position_and_dont_load_collision 72@ {state} False
if 
  is_char_dead 75@
goto_if_false @MUSIC3_9143
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 3000

:MUSIC3_9143
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_9186
if 
  not is_char_in_car 75@ {vehicle} 72@
goto_if_false @MUSIC3_9186
warp_char_into_car 75@ {vehicle} 72@

:MUSIC3_9186
freeze_car_position_and_dont_load_collision 74@ {state} False
if 
  is_char_dead 77@
goto_if_false @MUSIC3_9313
140@ = generate_random_int_in_range 0 {max} 3
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 3000
if 
  not is_char_in_car 77@ {vehicle} 74@
goto_if_false @MUSIC3_9313
warp_char_into_car 77@ {vehicle} 74@

:MUSIC3_9313
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_9356
if 
  not is_char_in_car 77@ {vehicle} 74@
goto_if_false @MUSIC3_9356
warp_char_into_car 77@ {vehicle} 74@

:MUSIC3_9356
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_car_coordinates 73@ {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
request_model 20
request_model 91
request_model 367
request_model 409
request_model 280
load_all_models_now 

:MUSIC3_9435
if 
  130@ == 0
goto_if_false @MUSIC3_9471
wait 0
gosub @MUSIC3_16523
goto @MUSIC3_9435

:MUSIC3_9471
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9503
goto @MUSIC3_15486

:MUSIC3_9503
set_time_of_day 22 {minutes} 0

:MUSIC3_9509
mark_car_as_convoy_car 72@ {state} True
mark_car_as_convoy_car 73@ {state} True
mark_car_as_convoy_car 74@ {state} True
delete_char 65@
delete_char 64@
delete_char 111@
delete_char 69@
delete_char 70@
delete_car 66@
delete_car 67@
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 409
lock_car_doors 73@ {lockStatus} CarLock.Locked
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STP3_06' {time} 7000 {flag} 1
if 
  124@ == 1
goto_if_false @MUSIC3_9710
do_fade 500 {direction} Fade.In

:MUSIC3_9654
if 
  get_fading_status 
goto_if_false @MUSIC3_9678
wait 0
goto @MUSIC3_9654

:MUSIC3_9678
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9710
goto @MUSIC3_15486

:MUSIC3_9710
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_9760
task_car_drive_to_coord 75@ {vehicle} 72@ {x} 1015.1 {y} -1139.2 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars

:MUSIC3_9760
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_9806
set_car_follow_car 74@ {handle} 72@ {radius} 27.0
set_car_cruise_speed 74@ {maxSpeed} 15.0
set_car_driving_style 74@ {drivingStyle} DrivingMode.SlowDownForCars

:MUSIC3_9806
175@ = 0
123@ = 0
122@ = 3

:MUSIC3_9827
if 
  122@ == 3
goto_if_false @MUSIC3_10346
if 
  175@ == 0
goto_if_false @MUSIC3_9936
if 
  locate_car_2d 72@ {x} 1094.8 {y} -1142.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MUSIC3_9936
174@ = 8
176@ = 4
177@ = 5
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_9936
if 
  123@ == 0
goto_if_false @MUSIC3_10047
if 
  locate_car_2d 72@ {x} 1015.1 {y} -1139.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MUSIC3_10047
225@, 226@, $z = get_offset_from_car_in_world_coords 72@ {xOffset} 0.0 {yOffset} -12.0 {zOffset} 0.0
remove_blip 113@
113@ = add_blip_for_coord 225@ {y} 226@ {z} 227@
123@ = 1

:MUSIC3_10047
if 
  123@ == 1
goto_if_false @MUSIC3_10204
if 
  locate_car_2d 73@ {x} 225@ {y} 226@ {xRadius} 9.0 {yRadius} 9.0 {drawSphere} False
goto_if_false @MUSIC3_10122
print_now 'STP3_32' {time} 7000 {flag} 1
goto @MUSIC3_10124

:MUSIC3_10122
clear_prints 

:MUSIC3_10124
if 
  locate_stopped_car_2d 73@ {x} 225@ {y} 226@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @MUSIC3_10204
remove_blip 113@
clear_prints 
123@ = 0
if 
  129@ == 0
goto_if_false @MUSIC3_10204
175@ = 0
122@ = 4

:MUSIC3_10204
gosub @MUSIC3_20958
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_10271
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_10271
clear_prints 
print_now 'STP3_12' {time} 4000 {flag} 1
goto @MUSIC3_15486

:MUSIC3_10271
gosub @MUSIC3_21432
if 
  130@ == 1
goto_if_false @MUSIC3_10346
gosub @MUSIC3_18919
if 
  129@ == 4
goto_if_false @MUSIC3_10346
clear_prints 
print_now 'STP3_24' {time} 4000 {flag} 1
goto @MUSIC3_15486

:MUSIC3_10346
if 
  122@ == 4
goto_if_false @MUSIC3_13174
if 
  123@ == 0
goto_if_false @MUSIC3_11970
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC3_10391
if 
  get_fading_status 
goto_if_false @MUSIC3_10415
wait 0
goto @MUSIC3_10391

:MUSIC3_10415
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_10447
goto @MUSIC3_15486

:MUSIC3_10447
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
shut_all_chars_up True
shut_char_up_for_scripted_speech $scplayer {state} True
set_radio_channel RadioChannel.UserTracks
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 20
request_model 40
load_all_models_now 
clear_char_decision_maker_event_response 233@ {event} Event.PotentialWalkIntoPed
clear_area 1021.0 {y} -1122.0 {z} 22.9 {radius} 50.0 {clearParticles} True
104@ = create_char PedType.Mission2 {modelId} 24 {x} 1021.0 {y} -1122.0 {z} 22.9
set_char_heading 104@ {heading} 180.0
set_anim_group_for_char 104@ {animGroup} "GANG2"
set_char_decision_maker 104@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 104@ {state} True
give_weapon_to_char 104@ {weaponType} WeaponType.Pistol {ammo} 3000
232@ = open_sequence_task 
task_pause -1 {time} 120
task_go_straight_to_coord -1 {x} 1021.0 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 232@
perform_sequence_task 104@ {sequence} 232@
clear_sequence_task 232@
105@ = create_char PedType.Mission2 {modelId} 24 {x} 1022.2 {y} -1122.0 {z} 22.9
set_char_heading 105@ {heading} 180.0
set_anim_group_for_char 104@ {animGroup} "GANG1"
set_char_decision_maker 105@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 105@ {state} True
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 3000
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1022.2 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 105@ {sequence} 232@
clear_sequence_task 232@
106@ = create_char PedType.Mission2 {modelId} 24 {x} 1023.4 {y} -1122.0 {z} 22.9
give_weapon_to_char 106@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 106@ {heading} 180.0
set_char_decision_maker 106@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 106@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1023.4 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 106@ {sequence} 232@
clear_sequence_task 232@
102@ = create_char PedType.Gang9 {modelId} 20 {x} 1021.6 {y} -1123.2 {z} 22.9
shut_char_up_for_scripted_speech 102@ {state} True
set_char_get_out_upside_down_car 102@ {state} False
set_anim_group_for_char 104@ {animGroup} "GANG2"
set_char_heading 102@ {heading} 187.9
set_char_decision_maker 102@ {handleOrTemplate} 233@
remove_blip 113@
set_char_force_die_in_car 102@ {state} True
set_char_only_damaged_by_player 102@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1021.6 {y} -1134.9 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 73@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 102@ {sequence} 232@
clear_sequence_task 232@
103@ = create_char PedType.Gang9 {modelId} 40 {x} 1022.8 {y} -1123.2 {z} 22.9
set_char_get_out_upside_down_car 103@ {state} False
set_char_heading 103@ {heading} 187.9
set_char_decision_maker 103@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 103@ {state} True
set_char_force_die_in_car 103@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1022.8 {y} -1134.9 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 73@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 103@ {sequence} 232@
clear_sequence_task 232@
task_look_at_char $scplayer {target} 103@ {time} -2
108@ = create_char PedType.Mission2 {modelId} 24 {x} 1022.2 {y} -1124.4 {z} 22.9
give_weapon_to_char 108@ {weaponType} WeaponType.Pistol {ammo} 3000
set_anim_group_for_char 104@ {animGroup} "GANG1"
set_char_heading 108@ {heading} 180.0
set_char_decision_maker 108@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 108@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 50
task_go_straight_to_coord -1 {x} 1022.2 {y} -1136.1 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 232@
perform_sequence_task 108@ {sequence} 232@
clear_sequence_task 232@
109@ = create_char PedType.Mission2 {modelId} 24 {x} 1023.4 {y} -1124.4 {z} 22.9
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 109@ {heading} 180.0
set_char_decision_maker 109@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 109@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 50
task_go_straight_to_coord -1 {x} 1023.4 {y} -1136.1 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 109@ {sequence} 232@
clear_sequence_task 232@
110@ = create_char PedType.Mission2 {modelId} 24 {x} 1021.4 {y} -1125.6 {z} 22.9
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 110@ {heading} 180.0
set_char_decision_maker 110@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 110@ {state} True
232@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1021.4 {y} -1137.3 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 110@ {sequence} 232@
clear_sequence_task 232@
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_11688
clear_area 1015.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 72@ {x} 1015.1 {y} -1139.2 {z} 22.9
set_car_heading 72@ {heading} 90.0

:MUSIC3_11688
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_11758
clear_area 1025.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 73@ {x} 1025.1 {y} -1139.2 {z} 22.9
set_car_heading 73@ {heading} 90.0

:MUSIC3_11758
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_11828
clear_area 1035.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 74@ {x} 1035.1 {y} -1139.2 {z} 22.9
set_car_heading 74@ {heading} 90.0

:MUSIC3_11828
lock_car_doors 73@ {lockStatus} CarLock.Unlocked
set_fixed_camera_position 1021.4 {y} -1135.3 {z} 23.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1021.7 {y} -1124.1 {z} 25.2 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_11893
if 
  get_fading_status 
goto_if_false @MUSIC3_11917
wait 0
goto @MUSIC3_11893

:MUSIC3_11917
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_11949
goto @MUSIC3_15486

:MUSIC3_11949
124@ = 1
skip_cutscene_start_internal @MUSIC3_12295
123@ = 1

:MUSIC3_11970
if 
  123@ == 1
goto_if_false @MUSIC3_12100
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12100
if 
  is_char_in_area_2d 102@ {leftBottomX} 1019.7 {leftBottomY} -1130.2 {rightTopX} 1025.7 {rightTopY} -1135.0 {drawSphere} False
goto_if_false @MUSIC3_12100
set_fixed_camera_position 1024.7 {y} -1141.7 {z} 24.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1024.6 {y} -1138.7 {z} 23.9 {switchStyle} SwitchType.JumpCut
123@ = 2

:MUSIC3_12100
if 
  123@ == 2
goto_if_false @MUSIC3_12208
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_12208
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12208
if 
  is_char_in_car 102@ {vehicle} 73@
goto_if_false @MUSIC3_12208
set_radio_channel RadioChannel.CSR
174@ = 2
176@ = 0
gosub @MUSIC3_24543
TIMERA = 0
123@ = 3

:MUSIC3_12208
if 
  123@ == 3
goto_if_false @MUSIC3_12255
if 
  174@ == 0
goto_if_false @MUSIC3_12255
play_mission_audio MissionAudioSlot.Slot3
123@ = 4

:MUSIC3_12255
if 
  123@ == 4
goto_if_false @MUSIC3_13167
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @MUSIC3_13167
124@ = 0

:MUSIC3_12295
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_12329
goto @MUSIC3_15486

:MUSIC3_12329
if 
  124@ == 1
goto_if_false @MUSIC3_12811
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC3_12371
if 
  get_fading_status 
goto_if_false @MUSIC3_12395
wait 0
goto @MUSIC3_12371

:MUSIC3_12395
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_12427
goto @MUSIC3_15486

:MUSIC3_12427
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_12569
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_12485
if 
  not is_char_in_any_car 104@
goto_if_false @MUSIC3_12485
warp_char_into_car_as_passenger 104@ {handle} 72@ {seat} SeatId.BikeRear

:MUSIC3_12485
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_12527
if 
  not is_char_in_any_car 105@
goto_if_false @MUSIC3_12527
warp_char_into_car_as_passenger 105@ {handle} 72@ {seat} SeatId.RearLeft

:MUSIC3_12527
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_12569
if 
  not is_char_in_any_car 106@
goto_if_false @MUSIC3_12569
warp_char_into_car_as_passenger 106@ {handle} 72@ {seat} SeatId.RearRight

:MUSIC3_12569
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_12669
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12627
if 
  not is_char_in_any_car 102@
goto_if_false @MUSIC3_12627
warp_char_into_car_as_passenger 102@ {handle} 73@ {seat} SeatId.RearLeft

:MUSIC3_12627
if 
  not is_char_dead 103@
goto_if_false @MUSIC3_12669
if 
  not is_char_in_any_car 103@
goto_if_false @MUSIC3_12669
warp_char_into_car_as_passenger 103@ {handle} 73@ {seat} SeatId.RearRight

:MUSIC3_12669
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_12811
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_12727
if 
  not is_char_in_any_car 108@
goto_if_false @MUSIC3_12727
warp_char_into_car_as_passenger 108@ {handle} 74@ {seat} SeatId.BikeRear

:MUSIC3_12727
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_12769
if 
  not is_char_in_any_car 109@
goto_if_false @MUSIC3_12769
warp_char_into_car_as_passenger 109@ {handle} 74@ {seat} SeatId.RearLeft

:MUSIC3_12769
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_12811
if 
  not is_char_in_any_car 110@
goto_if_false @MUSIC3_12811
warp_char_into_car_as_passenger 110@ {handle} 74@ {seat} SeatId.RearRight

:MUSIC3_12811
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_12932
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_12932
232@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 72@ {x} 964.6 {y} -1055.1 {z} 27.6 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 72@ {x} 965.0 {y} -1036.4 {z} 29.0 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 232@
perform_sequence_task 75@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_12932
clear_look_at $scplayer
clear_prints 
print 'STP3_08' {time} 7000 {flag} 1
print 'STP3_09' {time} 7000 {flag} 1
remove_blip 113@
113@ = add_blip_for_coord 836.9 {y} -2041.5 {z} 11.8
add_char_decision_maker_event_response 233@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
lock_car_doors 73@ {lockStatus} CarLock.Locked
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  124@ == 1
goto_if_false @MUSIC3_13146
do_fade 500 {direction} Fade.In

:MUSIC3_13090
if 
  get_fading_status 
goto_if_false @MUSIC3_13114
wait 0
goto @MUSIC3_13090

:MUSIC3_13114
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_13146
goto @MUSIC3_15486

:MUSIC3_13146
TIMERA = 0
123@ = 0
122@ = 5

:MUSIC3_13167
gosub @MUSIC3_20255

:MUSIC3_13174
if 
  122@ == 5
goto_if_false @MUSIC3_14678
gosub @MUSIC3_22296
if 
  123@ == 0
goto_if_false @MUSIC3_13685
if 
  175@ == 0
goto_if_false @MUSIC3_13282
if 
  TIMERA > 14000
goto_if_false @MUSIC3_13282
174@ = 3
176@ = 0
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_13282
if 
  175@ == 1
goto_if_false @MUSIC3_13346
if 
  174@ == 0
goto_if_false @MUSIC3_13346
174@ = 4
176@ = 0
gosub @MUSIC3_24543
175@ = 2

:MUSIC3_13346
if 
  175@ == 2
goto_if_false @MUSIC3_13410
if 
  174@ == 0
goto_if_false @MUSIC3_13410
174@ = 5
176@ = 0
gosub @MUSIC3_24543
175@ = 3

:MUSIC3_13410
if 
  175@ == 3
goto_if_false @MUSIC3_13569
if 
  is_char_in_area_3d $scplayer {leftBottomX} 789.4 {leftBottomY} -1798.8 {leftBottomZ} 10.0 {rightTopX} 896.9 {rightTopY} -1763.6 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13569
if 
  174@ == 5
goto_if_false @MUSIC3_13569
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
clear_prints 
174@ = 10
176@ = 0
gosub @MUSIC3_24543
175@ = 4
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_13562
shut_char_up_for_scripted_speech 102@ {state} False

:MUSIC3_13562
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC3_13569
if 
  not is_char_dead 103@
goto_if_false @MUSIC3_13685
if 
  not is_char_talking 103@
goto_if_false @MUSIC3_13685
if 
  175@ == 0
goto_if_false @MUSIC3_13649
if 
  10000 > TIMERA
goto_if_false @MUSIC3_13649
151@ = set_char_say_context 103@ {phrase} SpeechId.PainDeathDrown

:MUSIC3_13649
if or
  175@ == 3
  175@ == 4
goto_if_false @MUSIC3_13685
151@ = set_char_say_context 103@ {phrase} SpeechId.PainDeathDrown

:MUSIC3_13685
if 
  123@ == 0
goto_if_false @MUSIC3_14186
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_13945
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_13945
if 
  163@ == 0
goto_if_false @MUSIC3_13827
if 
  is_char_in_area_3d $scplayer {leftBottomX} 853.7 {leftBottomY} -1810.1 {leftBottomZ} 10.0 {rightTopX} 818.5 {rightTopY} -1874.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13827
print_now 'STP3_35' {time} 7000 {flag} 1
163@ = 1

:MUSIC3_13827
if 
  163@ == 1
goto_if_false @MUSIC3_13945
158@ = get_car_speed 73@
if 
  158@ > 10.0
goto_if_false @MUSIC3_13945
if 
  is_char_in_area_3d $scplayer {leftBottomX} 820.0 {leftBottomY} -2004.0 {leftBottomZ} 10.0 {rightTopX} 852.4 {rightTopY} -2068.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13945
print_now 'STP3_34' {time} 7000 {flag} 1
163@ = 2

:MUSIC3_13945
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_14144
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_14144
if 
  is_car_in_area_3d 73@ {leftBottomX} 855.6 {leftBottomY} -2067.8999 {leftBottomZ} 5.0 {rightTopX} 812.6 {rightTopY} -2085.8999 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_14144
set_time_scale 0.3
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
set_fixed_camera_position 813.5 {y} -2128.8999 {z} 2.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 847.6 {y} -2068.1001 {z} 11.7 {switchStyle} SwitchType.JumpCut
gosub @MUSIC3_22096
175@ = 0
TIMERA = 0
123@ = 1

:MUSIC3_14144
if 
  is_car_in_water 73@
goto_if_false @MUSIC3_14186
remove_blip 113@
gosub @MUSIC3_22096
174@ = 0
123@ = 2

:MUSIC3_14186
if 
  123@ == 1
goto_if_false @MUSIC3_14295
if 
  175@ == 0
goto_if_false @MUSIC3_14250
174@ = 6
176@ = 0
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_14250
if or
  is_car_in_water 73@
  TIMERA > 10000
goto_if_false @MUSIC3_14295
set_time_scale 1.0
TIMERA = 0
123@ = 2

:MUSIC3_14295
if 
  123@ == 2
goto_if_false @MUSIC3_14427
if 
  TIMERA > 500
goto_if_false @MUSIC3_14427
if 
  174@ == 0
goto_if_false @MUSIC3_14427
if 
  155@ == 0
goto_if_false @MUSIC3_14389
TIMERA = 0
122@ = 7
goto @MUSIC3_14427

:MUSIC3_14389
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
123@ = 0
TIMERB = 0
122@ = 6

:MUSIC3_14427
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  TIMERA > 11000
goto_if_false @MUSIC3_14454
clear_help 

:MUSIC3_14454
if 
  4 > 129@
goto_if_false @MUSIC3_14479
gosub @MUSIC3_18919

:MUSIC3_14479
if 
  3 > 164@
goto_if_false @MUSIC3_14504
gosub @MUSIC3_19550

:MUSIC3_14504
if 
  123@ == 0
goto_if_false @MUSIC3_14678
if 
  not is_car_in_water 73@
goto_if_false @MUSIC3_14678
if 
  is_char_dead 102@
goto_if_false @MUSIC3_14579
clear_prints 
print_now 'STP3_31' {time} 4000 {flag} 1
goto @MUSIC3_15486

:MUSIC3_14579
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_14678
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_14678
if 
  is_car_stopped 73@
goto_if_false @MUSIC3_14678
task_leave_car_and_flee 102@ {vehicle} 73@ {x} 2316.3999 {y} -1519.2 {z} 24.3
clear_prints 
print_now 'STP3_18' {time} 4000 {flag} 1
goto @MUSIC3_15486

:MUSIC3_14678
if 
  122@ == 6
goto_if_false @MUSIC3_15309
gosub @MUSIC3_22296
if 
  123@ == 0
goto_if_false @MUSIC3_14980
if 
  155@ == 0
goto_if_false @MUSIC3_14760
TIMERA = 0
122@ = 7
goto @MUSIC3_14980

:MUSIC3_14760
remove_blip 113@
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_14789
114@ = add_blip_for_char 75@

:MUSIC3_14789
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_14813
115@ = add_blip_for_char 77@

:MUSIC3_14813
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_14837
116@ = add_blip_for_char 104@

:MUSIC3_14837
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_14861
117@ = add_blip_for_char 105@

:MUSIC3_14861
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_14885
118@ = add_blip_for_char 106@

:MUSIC3_14885
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_14909
119@ = add_blip_for_char 108@

:MUSIC3_14909
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_14933
120@ = add_blip_for_char 109@

:MUSIC3_14933
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_14957
121@ = add_blip_for_char 110@

:MUSIC3_14957
print_now 'STP3_26' {time} 11000 {flag} 1
123@ = 1

:MUSIC3_14980
if 
  123@ == 1
goto_if_false @MUSIC3_15309
if 
  is_char_dead 75@
goto_if_false @MUSIC3_15019
remove_blip 114@

:MUSIC3_15019
if 
  is_char_dead 77@
goto_if_false @MUSIC3_15040
remove_blip 115@

:MUSIC3_15040
if 
  is_char_dead 104@
goto_if_false @MUSIC3_15061
remove_blip 116@

:MUSIC3_15061
if 
  is_char_dead 105@
goto_if_false @MUSIC3_15082
remove_blip 117@

:MUSIC3_15082
if 
  is_char_dead 106@
goto_if_false @MUSIC3_15103
remove_blip 118@

:MUSIC3_15103
if 
  is_char_dead 108@
goto_if_false @MUSIC3_15124
remove_blip 119@

:MUSIC3_15124
if 
  is_char_dead 109@
goto_if_false @MUSIC3_15145
remove_blip 120@

:MUSIC3_15145
if 
  is_char_dead 110@
goto_if_false @MUSIC3_15166
remove_blip 121@

:MUSIC3_15166
if 
  is_char_dead 75@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 77@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 104@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 105@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 106@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 108@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 109@
goto_if_false @MUSIC3_15309
if 
  is_char_dead 110@
goto_if_false @MUSIC3_15309
TIMERA = 2000
122@ = 7

:MUSIC3_15309
if 
  122@ == 7
goto_if_false @MUSIC3_15370
if 
  TIMERA > 3000
goto_if_false @MUSIC3_15370
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
goto @MUSIC3_15504

:MUSIC3_15370
if 
  162@ == 0
goto_if_false @MUSIC3_15472
if or
  122@ == 0
  122@ == 1
goto_if_false @MUSIC3_15472
if 
  149@ == 21
goto_if_false @MUSIC3_15472
if 
  $minutes > 30
goto_if_false @MUSIC3_15472
print 'STP3_28' {time} 7000 {flag} 1
162@ = 1

:MUSIC3_15472
gosub @MUSIC3_25779
goto @MUSIC3_2270

:MUSIC3_15486
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC3_15504
$flag_strap_mission_counter += 1
clear_prints 
set_int_stat StatId.PassedStrap3 {value} 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
register_mission_passed 'STRAP_3'
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
player_made_progress 1
return 

:MUSIC3_15590
switch_audio_zone 'AWARDS' {state} False
set_time_scale 1.0
switch_widescreen False
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC3_15632
restore_camera_jumpcut 

:MUSIC3_15632
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
remove_char_elegantly 102@
remove_char_elegantly 103@
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_15697
improve_car_by_cheating 72@ {state} False

:MUSIC3_15697
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_15720
improve_car_by_cheating 74@ {state} False

:MUSIC3_15720
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_15743
lock_car_doors 73@ {lockStatus} CarLock.Unlocked

:MUSIC3_15743
if 
  not is_char_dead $scplayer
goto_if_false @MUSIC3_15766
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC3_15766
shut_all_chars_up False
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 507
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed #DYN_ROADBARRIER_2
mark_model_as_no_longer_needed 330
unmark_all_road_nodes_as_dont_wander 
switch_roads_back_to_original 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_ped_roads_back_to_original 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_roads_back_to_original 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_ped_roads_back_to_original 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_roads_back_to_original 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_ped_roads_back_to_original 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_roads_back_to_original 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_ped_roads_back_to_original 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_roads_back_to_original 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
switch_ped_roads_back_to_original 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:MUSIC3_16167
if 
  5 > 122@
goto_if_false @MUSIC3_16226
if 
  is_car_dead 73@
goto_if_false @MUSIC3_16226
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16226
if 
  5 > 122@
goto_if_false @MUSIC3_16326
if 
  is_car_dead 72@
goto_if_false @MUSIC3_16285
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16285
if 
  is_car_dead 74@
goto_if_false @MUSIC3_16326
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16326
if 
  122@ == 3
goto_if_false @MUSIC3_16403
if 
  4 > 123@
goto_if_false @MUSIC3_16403
if 
  is_char_dead 63@
goto_if_false @MUSIC3_16403
clear_prints 
print_now 'STP3_16' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16403
if 
  122@ > 2
goto_if_false @MUSIC3_16521
if 
  5 > 122@
goto_if_false @MUSIC3_16521
if 
  is_char_dead 75@
goto_if_false @MUSIC3_16480
clear_prints 
print_now 'STP3_17' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16480
if 
  is_char_dead 77@
goto_if_false @MUSIC3_16521
clear_prints 
print_now 'STP3_17' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16521
return 

:MUSIC3_16523
if 
  20 > 132@
goto_if_false @MUSIC3_18910
if 
  132@ == 0
goto_if_false @MUSIC3_18677
65@ = create_char PedType.CivMale {modelId} 20 {x} 1023.4 {y} -1123.6 {z} 22.9
set_char_heading 65@ {heading} 267.1
set_load_collision_for_char_flag 65@ {state} True
set_char_decision_maker 65@ {handleOrTemplate} 233@
64@ = create_char PedType.CivFemale {modelId} 91 {x} 1023.1 {y} -1124.6 {z} 22.9
set_char_heading 64@ {heading} 296.3
set_load_collision_for_char_flag 64@ {state} True
set_char_decision_maker 64@ {handleOrTemplate} 233@
111@ = create_char PedType.CivFemale {modelId} 91 {x} 1025.0 {y} -1124.6 {z} 22.9
set_char_heading 111@ {heading} 90.0
set_load_collision_for_char_flag 111@ {state} True
set_char_decision_maker 111@ {handleOrTemplate} 233@
78@ = create_object #DYN_ROADBARRIER_2 {x} 1092.7 {y} -1144.2 {z} 22.7
set_object_heading 78@ {heading} 0.0
set_object_collision 78@ {state} True
79@ = create_object #DYN_ROADBARRIER_2 {x} 1092.7 {y} -1148.8 {z} 22.7
set_object_heading 79@ {heading} 90.0
set_object_collision 79@ {state} True
switch_roads_off 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_ped_roads_off 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
80@ = create_object #DYN_ROADBARRIER_2 {x} 1062.5 {y} -1159.4 {z} 22.6
set_object_heading 80@ {heading} 180.0
set_object_collision 80@ {state} True
81@ = create_object #DYN_ROADBARRIER_2 {x} 1054.4 {y} -1159.4 {z} 22.6
set_object_heading 81@ {heading} 180.0
set_object_collision 81@ {state} True
switch_roads_off 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_ped_roads_off 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
82@ = create_object #DYN_ROADBARRIER_2 {x} 944.5 {y} -1159.4 {z} 22.6
set_object_heading 82@ {heading} 180.0
set_object_collision 82@ {state} True
83@ = create_object #DYN_ROADBARRIER_2 {x} 940.0 {y} -1159.4 {z} 22.6
set_object_heading 83@ {heading} 180.0
set_object_collision 83@ {state} True
switch_roads_off 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_ped_roads_off 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
84@ = create_object #DYN_ROADBARRIER_2 {x} 931.3 {y} -1148.8 {z} 22.7
set_object_heading 84@ {heading} 90.0
set_object_collision 84@ {state} True
85@ = create_object #DYN_ROADBARRIER_2 {x} 931.3 {y} -1139.9 {z} 22.7
set_object_heading 85@ {heading} 90.0
set_object_collision 85@ {state} True
86@ = create_object #DYN_ROADBARRIER_2 {x} 960.2 {y} -1130.4 {z} 22.7
set_object_heading 86@ {heading} 180.0
set_object_collision 86@ {state} True
87@ = create_object #DYN_ROADBARRIER_2 {x} 967.4 {y} -1130.4 {z} 22.7
set_object_heading 87@ {heading} 90.0
set_object_collision 87@ {state} True
switch_roads_off 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_ped_roads_off 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
88@ = create_object #DYN_ROADBARRIER_2 {x} 1080.6 {y} -1130.7 {z} 22.7
set_object_heading 88@ {heading} 180.0
set_object_collision 88@ {state} True
89@ = create_object #DYN_ROADBARRIER_2 {x} 1085.5 {y} -1130.6 {z} 22.7
set_object_heading 89@ {heading} 180.0
set_object_collision 89@ {state} True
switch_roads_off 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
switch_ped_roads_off 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
90@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1123.2 {z} 22.9
set_object_heading 90@ {heading} 90.0
set_object_collision 90@ {state} False
91@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1127.2 {z} 22.9
set_object_heading 91@ {heading} 90.0
set_object_collision 91@ {state} False
92@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1131.2 {z} 22.9
set_object_heading 92@ {heading} 90.0
set_object_collision 92@ {state} False
93@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1123.2 {z} 22.9
set_object_heading 93@ {heading} 90.0
set_object_collision 93@ {state} False
94@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1127.2 {z} 22.9
set_object_heading 94@ {heading} 90.0
set_object_collision 94@ {state} False
95@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1131.2 {z} 22.9
set_object_heading 95@ {heading} 90.0
set_object_collision 95@ {state} False
96@ = create_object #DYN_ROADBARRIER_2 {x} 1016.5 {y} -1133.2 {z} 22.9
set_object_heading 96@ {heading} 180.0
set_object_collision 96@ {state} False
97@ = create_object #DYN_ROADBARRIER_2 {x} 1012.5 {y} -1133.2 {z} 22.9
set_object_heading 97@ {heading} 180.0
set_object_collision 97@ {state} False
98@ = create_object #DYN_ROADBARRIER_2 {x} 1008.5 {y} -1133.2 {z} 22.9
set_object_heading 98@ {heading} 180.0
set_object_collision 98@ {state} False
99@ = create_object #DYN_ROADBARRIER_2 {x} 1028.5 {y} -1133.2 {z} 22.9
set_object_heading 99@ {heading} 180.0
set_object_collision 99@ {state} False
100@ = create_object #DYN_ROADBARRIER_2 {x} 1032.5 {y} -1133.2 {z} 22.9
set_object_heading 100@ {heading} 180.0
set_object_collision 100@ {state} False
101@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
set_object_heading 101@ {heading} 180.0
set_object_collision 101@ {state} False
55@ = create_char PedType.Mission2 {modelId} 280 {x} 1025.3 {y} -1124.9 {z} 22.9
give_weapon_to_char 55@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 55@ {heading} 276.6
set_load_collision_for_char_flag 55@ {state} True
56@ = create_char PedType.Mission2 {modelId} 280 {x} 1024.7 {y} -1129.1 {z} 22.9
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 56@ {heading} 276.6
set_load_collision_for_char_flag 56@ {state} True
57@ = create_char PedType.Mission2 {modelId} 280 {x} 1024.7 {y} -1133.8 {z} 22.9
give_weapon_to_char 57@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 57@ {heading} 276.6
set_load_collision_for_char_flag 57@ {state} True
58@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1125.2 {z} 22.9
give_weapon_to_char 58@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 58@ {heading} 92.2
set_load_collision_for_char_flag 58@ {state} True
59@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1129.1 {z} 22.9
give_weapon_to_char 59@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 59@ {heading} 92.2
set_load_collision_for_char_flag 59@ {state} True
60@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1133.5 {z} 22.9
give_weapon_to_char 60@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 60@ {heading} 92.2
set_load_collision_for_char_flag 60@ {state} True
61@ = create_char PedType.Mission2 {modelId} 280 {x} 1032.6 {y} -1115.5 {z} 22.9
give_weapon_to_char 61@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 61@ {heading} 173.9
set_load_collision_for_char_flag 61@ {state} True
62@ = create_char PedType.Mission2 {modelId} 280 {x} 1012.0 {y} -1115.8 {z} 22.9
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 62@ {heading} 187.9
set_load_collision_for_char_flag 62@ {state} True
66@ = create_car 409 {x} 1031.4 {y} -1138.6 {z} 22.7
69@ = create_char_inside_car 66@ {pedType} PedType.Mission2 {modelId} 24
set_car_heading 66@ {heading} 90.0
set_load_collision_for_char_flag 69@ {state} True
231@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_car_drive_to_coord -1 {vehicle} 66@ {x} 1023.3 {y} -1138.6 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 69@ {sequence} 231@
clear_sequence_task 231@
67@ = create_car 409 {x} 1042.8 {y} -1138.6 {z} 22.7
70@ = create_char_inside_car 67@ {pedType} PedType.Mission2 {modelId} 24
set_car_heading 67@ {heading} 90.0
set_load_collision_for_char_flag 70@ {state} True
63@ = create_char PedType.Mission2 {modelId} 280 {x} 1093.7 {y} -1145.2 {z} 22.7
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 63@ {heading} 274.6
set_load_collision_for_char_flag 63@ {state} True
set_char_decision_maker 63@ {handleOrTemplate} 233@
112@ = create_random_char 1023.6 {y} -1122.3 {z} 22.9
set_char_visible 112@ {state} False
set_char_collision 112@ {state} False
set_char_decision_maker 112@ {handleOrTemplate} 233@
set_char_stay_in_same_place 112@ {state} True

:MUSIC3_18677
gosub @MUSIC3_20035
create_random_char 225@ {y} 226@ {z} 22.9 {var_handle} 34@(132@,21i)
set_char_heading 34@(132@,21i) {heading} $heading
set_sense_range 34@(132@,21i) {range} 0.0
set_char_stay_in_same_place 34@(132@,21i) {state} True
give_weapon_to_char 34@(132@,21i) {weaponType} WeaponType.Camera {ammo} 30000
set_char_decision_maker 34@(132@,21i) {handleOrTemplate} 233@
set_load_collision_for_char_flag 34@(132@,21i) {state} True
if 
  5 > 132@
goto_if_false @MUSIC3_18885
232@ = open_sequence_task 
152@ = generate_random_int_in_range 500 {max} 2000
if 
  not is_char_dead 112@
goto_if_false @MUSIC3_18838
task_kill_char_on_foot_timed -1 {target} 112@ {time} 152@

:MUSIC3_18838
152@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 152@
set_sequence_to_repeat 232@ {state} True
close_sequence_task 232@
perform_sequence_task 34@(132@,21i) {sequence} 232@
clear_sequence_task 232@

:MUSIC3_18885
set_load_collision_for_char_flag 34@(132@,21i) {state} True
132@ += 1
goto @MUSIC3_18917

:MUSIC3_18910
130@ = 1

:MUSIC3_18917
return 

:MUSIC3_18919
if 
  129@ == 0
goto_if_false @MUSIC3_19169
if 
  20 > 131@
goto_if_false @MUSIC3_19046
if 
  is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_18982
129@ = 1

:MUSIC3_18982
if 
  not is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_19032
if 
  has_char_been_damaged_by_char 34@(131@,21i) {handle} $scplayer
goto_if_false @MUSIC3_19032
129@ = 1

:MUSIC3_19032
131@ += 1
goto @MUSIC3_19053

:MUSIC3_19046
131@ = 0

:MUSIC3_19053
if 
  8 > 141@
goto_if_false @MUSIC3_19162
if 
  is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19098
129@ = 1

:MUSIC3_19098
if 
  not is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19148
if 
  has_char_been_damaged_by_char 55@(141@,9i) {handle} $scplayer
goto_if_false @MUSIC3_19148
129@ = 1

:MUSIC3_19148
141@ += 1
goto @MUSIC3_19169

:MUSIC3_19162
141@ = 0

:MUSIC3_19169
if 
  129@ == 1
goto_if_false @MUSIC3_19208
131@ = 0
141@ = 0
129@ = 2

:MUSIC3_19208
if 
  129@ == 2
goto_if_false @MUSIC3_19415
if 
  20 > 131@
goto_if_false @MUSIC3_19408
if 
  not is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_19394
$task_status = get_script_task_status 34@(131@,21i) {taskId} 1499
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19330
set_char_keep_task 34@(131@,21i) {state} True
task_flee_char 34@(131@,21i) {threat} $scplayer {radius} 80.0 {time} 10000000

:MUSIC3_19330
if 
  not locate_char_any_means_char_2d 34@(131@,21i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19394
if 
  not is_char_on_screen 34@(131@,21i)
goto_if_false @MUSIC3_19394
mark_char_as_no_longer_needed 34@(131@,21i)

:MUSIC3_19394
131@ += 1
goto @MUSIC3_19415

:MUSIC3_19408
129@ = 3

:MUSIC3_19415
if 
  129@ == 3
goto_if_false @MUSIC3_19548
if 
  8 > 141@
goto_if_false @MUSIC3_19541
if 
  not is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19527
$task_status = get_script_task_status 55@(141@,9i) {taskId} 1764
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19527
set_char_keep_task 55@(141@,9i) {state} True
task_char_arrest_char 55@(141@,9i) {target} $scplayer

:MUSIC3_19527
141@ += 1
goto @MUSIC3_19548

:MUSIC3_19541
129@ = 4

:MUSIC3_19548
return 

:MUSIC3_19550
if 
  164@ == 0
goto_if_false @MUSIC3_19691
if 
  8 > 165@
goto_if_false @MUSIC3_19684
if 
  not is_char_dead 55@(165@,9i)
goto_if_false @MUSIC3_19670
if 
  not locate_char_any_means_char_2d 55@(165@,9i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19670
if 
  not is_char_on_screen 55@(165@,9i)
goto_if_false @MUSIC3_19670
mark_char_as_no_longer_needed 55@(165@,9i)

:MUSIC3_19670
165@ += 1
goto @MUSIC3_19691

:MUSIC3_19684
164@ = 1

:MUSIC3_19691
if 
  164@ == 1
goto_if_false @MUSIC3_19832
if 
  8 > 166@
goto_if_false @MUSIC3_19825
if 
  not is_char_dead 55@(166@,9i)
goto_if_false @MUSIC3_19811
if 
  not locate_char_any_means_char_2d 55@(166@,9i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19811
if 
  not is_char_on_screen 55@(166@,9i)
goto_if_false @MUSIC3_19811
mark_char_as_no_longer_needed 55@(166@,9i)

:MUSIC3_19811
166@ += 1
goto @MUSIC3_19832

:MUSIC3_19825
164@ = 2

:MUSIC3_19832
if 
  164@ == 2
goto_if_false @MUSIC3_20033
if 
  not locate_char_any_means_2d $scplayer {x} 1015.1 {y} -1139.2 {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_20033
mark_object_as_no_longer_needed 90@
mark_object_as_no_longer_needed 91@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 94@
mark_object_as_no_longer_needed 95@
mark_object_as_no_longer_needed 96@
mark_object_as_no_longer_needed 97@
mark_object_as_no_longer_needed 98@
mark_object_as_no_longer_needed 99@
mark_object_as_no_longer_needed 100@
mark_object_as_no_longer_needed 101@
mark_object_as_no_longer_needed 78@
mark_object_as_no_longer_needed 79@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_object_as_no_longer_needed 85@
mark_object_as_no_longer_needed 86@
mark_object_as_no_longer_needed 87@
mark_object_as_no_longer_needed 88@
mark_object_as_no_longer_needed 89@
mark_model_as_no_longer_needed #DYN_ROADBARRIER_2
switch_audio_zone 'AWARDS' {state} False
164@ = 3

:MUSIC3_20033
return 

:MUSIC3_20035
225@ = generate_random_float_in_range 1016.2 {max} 1030.8
226@ = generate_random_float_in_range -1122.3 {max} -1133.7
if 
  1020.0 > 225@
goto_if_false @MUSIC3_20103
$heading = 280.1
goto @MUSIC3_20113

:MUSIC3_20103
$heading = 96.5

:MUSIC3_20113
if and
  1027.4 > 225@
  225@ > 1019.8
goto_if_false @MUSIC3_20151
goto @MUSIC3_20035

:MUSIC3_20151
if 
  is_int_lvar_greater_than_int_lvar 133@ > 134@
goto_if_false @MUSIC3_20253
wait 0
if 
  not is_char_dead 34@(134@,21i)
goto_if_false @MUSIC3_20239
if 
  locate_char_any_means_2d 34@(134@,21i) {x} 225@ {y} 226@ {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @MUSIC3_20239
goto @MUSIC3_20035

:MUSIC3_20239
134@ += 1
goto @MUSIC3_20151

:MUSIC3_20253
return 

:MUSIC3_20255
if 
  127@ == 0
goto_if_false @MUSIC3_20287
gosub @MUSIC3_20513
goto @MUSIC3_20383

:MUSIC3_20287
if 
  is_int_lvar_greater_than_int_lvar 170@ > 127@
goto_if_false @MUSIC3_20320
127@ += 1
goto @MUSIC3_20383

:MUSIC3_20320
draw_light_with_range 225@ {y} 226@ {z} 227@ {red} 255 {green} 255 {blue} 255 {radius} 200.0
172@ = create_fx_system "CAMFLASH" {x} 225@ {y} 226@ {z} 227@ {ignoreBoundingChecks} True
play_and_kill_fx_system 172@
127@ = 0

:MUSIC3_20383
if 
  128@ == 0
goto_if_false @MUSIC3_20415
gosub @MUSIC3_20513
goto @MUSIC3_20511

:MUSIC3_20415
if 
  is_int_lvar_greater_than_int_lvar 171@ > 128@
goto_if_false @MUSIC3_20448
128@ += 1
goto @MUSIC3_20511

:MUSIC3_20448
draw_light_with_range 228@ {y} 229@ {z} 230@ {red} 255 {green} 255 {blue} 255 {radius} 200.0
173@ = create_fx_system "CAMFLASH" {x} 228@ {y} 229@ {z} 230@ {ignoreBoundingChecks} True
play_and_kill_fx_system 173@
128@ = 0

:MUSIC3_20511
return 

:MUSIC3_20513
if 
  127@ == 0
goto_if_false @MUSIC3_20609
170@ = generate_random_int_in_range 1 {max} 10
133@ = generate_random_int_in_range 0 {max} 20
if 
  not is_char_dead 34@(133@,21i)
goto_if_false @MUSIC3_20609
225@, 226@, $z = get_offset_from_char_in_world_coords 34@(133@,21i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.5
127@ += 1

:MUSIC3_20609
if 
  128@ == 0
goto_if_false @MUSIC3_20705
171@ = generate_random_int_in_range 1 {max} 10
133@ = generate_random_int_in_range 0 {max} 20
if 
  not is_char_dead 34@(133@,21i)
goto_if_false @MUSIC3_20705
228@, 229@, 230@ = get_offset_from_char_in_world_coords 34@(133@,21i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.5
128@ += 1

:MUSIC3_20705
return 

:MUSIC3_20707
if 
  142@ == 0
goto_if_false @MUSIC3_20846
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_20846
remove_blip 113@
clear_this_print 'STP3_13'
if 
  123@ == 0
goto_if_false @MUSIC3_20785
175@ = 0

:MUSIC3_20785
if 
  123@ == 1
goto_if_false @MUSIC3_20839
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
print 'STP3_33' {time} 7000 {flag} 1

:MUSIC3_20839
142@ = 1

:MUSIC3_20846
if 
  142@ == 1
goto_if_false @MUSIC3_20956
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_20956
remove_blip 113@
113@ = add_blip_for_car 73@
set_blip_as_friendly 113@ {state} True
if 
  TIMERB > 7000
goto_if_false @MUSIC3_20949
clear_this_print 'STP3_33'
print 'STP3_13' {time} 7000 {flag} 1

:MUSIC3_20949
142@ = 0

:MUSIC3_20956
return 

:MUSIC3_20958
if 
  147@ == 0
goto_if_false @MUSIC3_21022
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @MUSIC3_21015
146@ = 5000

:MUSIC3_21015
147@ = 1

:MUSIC3_21022
if 
  147@ == 1
goto_if_false @MUSIC3_21430
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @MUSIC3_21401
if 
  146@ > 4000
goto_if_false @MUSIC3_21116
148@ = 5
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21116
if 
  4000 > 146@
goto_if_false @MUSIC3_21180
if 
  146@ > 3000
goto_if_false @MUSIC3_21180
148@ = 4
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21180
if 
  3000 > 146@
goto_if_false @MUSIC3_21244
if 
  146@ > 2000
goto_if_false @MUSIC3_21244
148@ = 3
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21244
if 
  2000 > 146@
goto_if_false @MUSIC3_21308
if 
  146@ > 1000
goto_if_false @MUSIC3_21308
148@ = 2
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21308
if 
  1000 > 146@
goto_if_false @MUSIC3_21353
148@ = 1
print_with_number_now 'STP3_15' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21353
if 
  0 > 146@
goto_if_false @MUSIC3_21394
print_now 'STP3_07' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_21394
goto @MUSIC3_21430

:MUSIC3_21401
clear_this_print 'STP3_14'
clear_this_print 'STP3_15'
147@ = 0

:MUSIC3_21430
return 

:MUSIC3_21432
if 
  175@ == 0
goto_if_false @MUSIC3_21534
if 
  not is_car_health_greater 72@ {health} 950
goto_if_false @MUSIC3_21492
print_now 'STP3_30' {time} 4000 {flag} 1
175@ = 1

:MUSIC3_21492
if 
  not is_car_health_greater 74@ {health} 950
goto_if_false @MUSIC3_21534
print_now 'STP3_30' {time} 4000 {flag} 1
175@ = 1

:MUSIC3_21534
if 
  175@ == 1
goto_if_false @MUSIC3_21640
if 
  not is_car_health_greater 72@ {health} 850
goto_if_false @MUSIC3_21596
clear_prints 
print 'STP3_23' {time} 4000 {flag} 1
175@ = 2

:MUSIC3_21596
if 
  not is_car_health_greater 74@ {health} 850
goto_if_false @MUSIC3_21640
clear_prints 
print 'STP3_23' {time} 4000 {flag} 1
175@ = 2

:MUSIC3_21640
if 
  175@ == 2
goto_if_false @MUSIC3_21720
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_21682
task_kill_char_on_foot 75@ {target} $scplayer

:MUSIC3_21682
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_21706
task_kill_char_on_foot 77@ {target} $scplayer

:MUSIC3_21706
TIMERA = 0
175@ = 3

:MUSIC3_21720
if 
  175@ == 3
goto_if_false @MUSIC3_21764
if 
  TIMERA > 3000
goto_if_false @MUSIC3_21764
125@ = 1

:MUSIC3_21764
return 

:MUSIC3_21766
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_21823
232@ = open_sequence_task 
task_pause -1 {time} 150
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 104@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21823
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_21873
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 105@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21873
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_21929
232@ = open_sequence_task 
task_pause -1 {time} 100
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 106@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21929
return 

:MUSIC3_21931
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_21988
232@ = open_sequence_task 
task_pause -1 {time} 150
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 108@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21988
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_22038
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 109@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_22038
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_22094
232@ = open_sequence_task 
task_pause -1 {time} 100
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 110@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_22094
return 

:MUSIC3_22096
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22150
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @MUSIC3_22150
155@ += 1

:MUSIC3_22150
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22204
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @MUSIC3_22204
155@ += 1

:MUSIC3_22204
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22249
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22249
task_car_temp_action 75@ {vehicle} 72@ {actionId} TempAction.HandbrakeStraight {time} 3000

:MUSIC3_22249
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22294
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_22294
task_car_temp_action 77@ {vehicle} 74@ {actionId} TempAction.HandbrakeStraight {time} 3000

:MUSIC3_22294
return 

:MUSIC3_22296
if 
  153@ == 0
goto_if_false @MUSIC3_22448
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22448
if 
  not locate_char_in_car_car_2d $scplayer {handle} 72@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_22448
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22448
improve_car_by_cheating 72@ {state} True
set_car_cruise_speed 72@ {maxSpeed} 100.0
mark_car_as_convoy_car 72@ {state} False
add_stuck_car_check_with_warp 72@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
task_car_mission 75@ {vehicle} 72@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
153@ = 1

:MUSIC3_22448
if 
  122@ == 6
goto_if_false @MUSIC3_22803
if 
  TIMERB > 1000
goto_if_false @MUSIC3_22803
if 
  153@ == 1
goto_if_false @MUSIC3_22606
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22606
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22606
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_22599
task_car_mission 75@ {vehicle} 72@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
153@ = 2
goto @MUSIC3_22606

:MUSIC3_22599
153@ = 2

:MUSIC3_22606
if 
  153@ == 2
goto_if_false @MUSIC3_22803
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_22803
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22803
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22782
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_22775
clear_char_tasks 75@
232@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 72@ {actionId} TempAction.HandbrakeStraight {time} 3000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 75@ {sequence} 232@
clear_sequence_task 232@
gosub @MUSIC3_21766
lock_car_doors 72@ {lockStatus} CarLock.Unlocked
153@ = 3

:MUSIC3_22775
goto @MUSIC3_22803

:MUSIC3_22782
gosub @MUSIC3_21766
lock_car_doors 72@ {lockStatus} CarLock.Unlocked
153@ = 3

:MUSIC3_22803
if 
  154@ == 0
goto_if_false @MUSIC3_22955
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22955
if 
  not locate_char_in_car_car_2d $scplayer {handle} 74@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_22955
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_22955
improve_car_by_cheating 74@ {state} True
set_car_cruise_speed 74@ {maxSpeed} 100.0
mark_car_as_convoy_car 74@ {state} False
add_stuck_car_check_with_warp 74@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
task_car_mission 77@ {vehicle} 74@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
154@ = 1

:MUSIC3_22955
if 
  122@ == 6
goto_if_false @MUSIC3_23310
if 
  TIMERB > 1000
goto_if_false @MUSIC3_23310
if 
  154@ == 1
goto_if_false @MUSIC3_23113
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_23113
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_23113
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_23106
task_car_mission 77@ {vehicle} 74@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
154@ = 2
goto @MUSIC3_23113

:MUSIC3_23106
154@ = 2

:MUSIC3_23113
if 
  154@ == 2
goto_if_false @MUSIC3_23310
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_23310
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_23310
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_23289
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_23282
clear_char_tasks 77@
232@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 74@ {actionId} TempAction.HandbrakeStraight {time} 3000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 77@ {sequence} 232@
clear_sequence_task 232@
gosub @MUSIC3_21931
lock_car_doors 74@ {lockStatus} CarLock.Unlocked
154@ = 3

:MUSIC3_23282
goto @MUSIC3_23310

:MUSIC3_23289
gosub @MUSIC3_21931
lock_car_doors 74@ {lockStatus} CarLock.Unlocked
154@ = 3

:MUSIC3_23310
return 

:MUSIC3_23312
168@ = generate_random_int_in_range 1 {max} 37
if 
  168@ == 1
goto_if_false @MUSIC3_23354
custom_plate_for_next_car 169@ {text} "GOT_M00_"

:MUSIC3_23354
if 
  168@ == 2
goto_if_false @MUSIC3_23387
custom_plate_for_next_car 169@ {text} "M00TV_4U"

:MUSIC3_23387
if 
  168@ == 3
goto_if_false @MUSIC3_23420
custom_plate_for_next_car 169@ {text} "MATHEW_2"

:MUSIC3_23420
if 
  168@ == 4
goto_if_false @MUSIC3_23453
custom_plate_for_next_car 169@ {text} "D4_DEW0R"

:MUSIC3_23453
if 
  168@ == 5
goto_if_false @MUSIC3_23486
custom_plate_for_next_car 169@ {text} "D0DE_777"

:MUSIC3_23486
if 
  168@ == 6
goto_if_false @MUSIC3_23519
custom_plate_for_next_car 169@ {text} "DAM0_666"

:MUSIC3_23519
if 
  168@ == 7
goto_if_false @MUSIC3_23552
custom_plate_for_next_car 169@ {text} "C0NEY_88"

:MUSIC3_23552
if 
  168@ == 8
goto_if_false @MUSIC3_23585
custom_plate_for_next_car 169@ {text} "PRE4CHER"

:MUSIC3_23585
if 
  168@ == 9
goto_if_false @MUSIC3_23618
custom_plate_for_next_car 169@ {text} "DBP_4NDY"

:MUSIC3_23618
if 
  168@ == 10
goto_if_false @MUSIC3_23651
custom_plate_for_next_car 169@ {text} "EV1L_SLY"

:MUSIC3_23651
if 
  168@ == 11
goto_if_false @MUSIC3_23684
custom_plate_for_next_car 169@ {text} "N1_R4V3N"

:MUSIC3_23684
if 
  168@ == 12
goto_if_false @MUSIC3_23717
custom_plate_for_next_car 169@ {text} "D1VX_Z00"

:MUSIC3_23717
if 
  168@ == 13
goto_if_false @MUSIC3_23749
custom_plate_for_next_car 169@ {text} "MR_B3NN"

:MUSIC3_23749
if 
  168@ == 14
goto_if_false @MUSIC3_23782
custom_plate_for_next_car 169@ {text} "R3D_R4SP"

:MUSIC3_23782
if 
  168@ == 15
goto_if_false @MUSIC3_23815
custom_plate_for_next_car 169@ {text} "LA_B0MBA"

:MUSIC3_23815
if 
  168@ == 16
goto_if_false @MUSIC3_23848
custom_plate_for_next_car 169@ {text} "L3337_0G"

:MUSIC3_23848
if 
  168@ == 17
goto_if_false @MUSIC3_23881
custom_plate_for_next_car 169@ {text} "BUDD4H_X"

:MUSIC3_23881
if 
  168@ == 18
goto_if_false @MUSIC3_23914
custom_plate_for_next_car 169@ {text} "T3H_BUCK"

:MUSIC3_23914
if 
  168@ == 19
goto_if_false @MUSIC3_23947
custom_plate_for_next_car 169@ {text} "CHUNKY_1"

:MUSIC3_23947
if 
  168@ == 20
goto_if_false @MUSIC3_23980
custom_plate_for_next_car 169@ {text} "EV1L_BNZ"

:MUSIC3_23980
if 
  168@ == 21
goto_if_false @MUSIC3_24013
custom_plate_for_next_car 169@ {text} "S4ND_M4N"

:MUSIC3_24013
if 
  168@ == 22
goto_if_false @MUSIC3_24046
custom_plate_for_next_car 169@ {text} "RKK_DBP1"

:MUSIC3_24046
if 
  168@ == 23
goto_if_false @MUSIC3_24079
custom_plate_for_next_car 169@ {text} "RE1_K0KU"

:MUSIC3_24079
if 
  168@ == 24
goto_if_false @MUSIC3_24112
custom_plate_for_next_car 169@ {text} "S3XY_JUD"

:MUSIC3_24112
if 
  168@ == 25
goto_if_false @MUSIC3_24145
custom_plate_for_next_car 169@ {text} "SUNRA_93"

:MUSIC3_24145
if 
  168@ == 26
goto_if_false @MUSIC3_24178
custom_plate_for_next_car 169@ {text} "UG_FUX69"

:MUSIC3_24178
if 
  168@ == 27
goto_if_false @MUSIC3_24211
custom_plate_for_next_car 169@ {text} "LI0N_CUM"

:MUSIC3_24211
if 
  168@ == 28
goto_if_false @MUSIC3_24244
custom_plate_for_next_car 169@ {text} "RKK_PWND"

:MUSIC3_24244
if 
  168@ == 29
goto_if_false @MUSIC3_24277
custom_plate_for_next_car 169@ {text} "HAZE_B0B"

:MUSIC3_24277
if 
  168@ == 30
goto_if_false @MUSIC3_24310
custom_plate_for_next_car 169@ {text} "T3H_FLUF"

:MUSIC3_24310
if 
  168@ == 31
goto_if_false @MUSIC3_24343
custom_plate_for_next_car 169@ {text} "BM_4NDY_"

:MUSIC3_24343
if 
  168@ == 32
goto_if_false @MUSIC3_24376
custom_plate_for_next_car 169@ {text} "BM_D34N_"

:MUSIC3_24376
if 
  168@ == 33
goto_if_false @MUSIC3_24409
custom_plate_for_next_car 169@ {text} "BM_L4C3Y"

:MUSIC3_24409
if 
  168@ == 34
goto_if_false @MUSIC3_24442
custom_plate_for_next_car 169@ {text} "BM_D3V__"

:MUSIC3_24442
if 
  168@ == 35
goto_if_false @MUSIC3_24475
custom_plate_for_next_car 169@ {text} "NU_SK00L"

:MUSIC3_24475
if 
  168@ == 36
goto_if_false @MUSIC3_24508
custom_plate_for_next_car 169@ {text} "G4L_AVET"

:MUSIC3_24508
if 
  168@ == 37
goto_if_false @MUSIC3_24541
custom_plate_for_next_car 169@ {text} "M0J0_J0J"

:MUSIC3_24541
return 

:MUSIC3_24543
if 
  174@ == 1
goto_if_false @MUSIC3_24590
set_lvar_text_label 178@s = 'LOC3_AA'
set_lvar_int_to_constant 206@ = 19004
220@ = 1

:MUSIC3_24590
if 
  174@ == 2
goto_if_false @MUSIC3_24725
set_lvar_text_label 178@s = 'LOC3_BA'
set_lvar_text_label 180@s = 'LOC3_BB'
set_lvar_text_label 182@s = 'LOC3_BC'
set_lvar_text_label 184@s = 'LOC3_BD'
set_lvar_text_label 186@s = 'LOC3_BE'
set_lvar_int_to_constant 206@ = 19016
set_lvar_int_to_constant 207@ = 19017
set_lvar_int_to_constant 208@ = 19000
set_lvar_int_to_constant 209@ = 19001
set_lvar_int_to_constant 210@ = 19002
220@ = 5

:MUSIC3_24725
if 
  174@ == 3
goto_if_false @MUSIC3_24794
set_lvar_text_label 178@s = 'LOC3_CA'
set_lvar_text_label 180@s = 'LOC3_CB'
set_lvar_int_to_constant 206@ = 19005
set_lvar_int_to_constant 207@ = 19006
220@ = 2

:MUSIC3_24794
if 
  174@ == 4
goto_if_false @MUSIC3_24929
set_lvar_text_label 178@s = 'LOC3_DA'
set_lvar_text_label 180@s = 'LOC3_DB'
set_lvar_text_label 182@s = 'LOC3_DC'
set_lvar_text_label 184@s = 'LOC3_DD'
set_lvar_text_label 186@s = 'LOC3_EA'
set_lvar_int_to_constant 206@ = 19018
set_lvar_int_to_constant 207@ = 19019
set_lvar_int_to_constant 208@ = 19020
set_lvar_int_to_constant 209@ = 19021
set_lvar_int_to_constant 210@ = 19003
220@ = 5

:MUSIC3_24929
if 
  174@ == 5
goto_if_false @MUSIC3_25174
set_lvar_text_label 178@s = 'LOC3_EB'
set_lvar_text_label 180@s = 'LOC3_EC'
set_lvar_text_label 182@s = 'LOC3_ED'
set_lvar_text_label 184@s = 'LOC3_EE'
set_lvar_text_label 186@s = 'LOC3_EF'
set_lvar_text_label 188@s = 'LOC3_EG'
set_lvar_text_label 190@s = 'LOC3_EH'
set_lvar_text_label 192@s = 'LOC3_EJ'
set_lvar_text_label 194@s = 'LOC3_EK'
set_lvar_text_label 196@s = 'LOC3_EL'
set_lvar_int_to_constant 206@ = 19022
set_lvar_int_to_constant 207@ = 19023
set_lvar_int_to_constant 208@ = 19024
set_lvar_int_to_constant 209@ = 19025
set_lvar_int_to_constant 210@ = 19026
set_lvar_int_to_constant 211@ = 19027
set_lvar_int_to_constant 212@ = 19028
set_lvar_int_to_constant 213@ = 19029
set_lvar_int_to_constant 214@ = 19030
set_lvar_int_to_constant 215@ = 19031
220@ = 10

:MUSIC3_25174
if 
  174@ == 6
goto_if_false @MUSIC3_25221
set_lvar_text_label 178@s = 'LOC3_EO'
set_lvar_int_to_constant 206@ = 19034
220@ = 1

:MUSIC3_25221
if 
  174@ == 7
goto_if_false @MUSIC3_25357
set_lvar_text_label 178@s = 'MOBRING'
set_lvar_text_label 180@s = 'MLOC04A'
set_lvar_text_label 182@s = 'MLOC04B'
set_lvar_text_label 184@s = 'MLOC04C'
set_lvar_text_label 186@s = 'MLOC04D'
set_lvar_int_to_constant 206@ = 28200
set_lvar_int_to_constant 207@ = 16421
set_lvar_int_to_constant 208@ = 16412
set_lvar_int_to_constant 209@ = 16413
set_lvar_int_to_constant 210@ = 16422
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25357
if 
  174@ == 8
goto_if_false @MUSIC3_25493
set_lvar_text_label 178@s = 'LOC3_FA'
set_lvar_text_label 180@s = 'LOC3_FB'
set_lvar_text_label 182@s = 'LOC3_FC'
set_lvar_text_label 184@s = 'LOC3_FE'
set_lvar_text_label 186@s = 'LOC3_FF'
set_lvar_int_to_constant 206@ = 19007
set_lvar_int_to_constant 207@ = 19008
set_lvar_int_to_constant 208@ = 19009
set_lvar_int_to_constant 209@ = 19011
set_lvar_int_to_constant 210@ = 19012
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25493
if 
  174@ == 9
goto_if_false @MUSIC3_25607
set_lvar_text_label 178@s = 'LOC3_GA'
set_lvar_text_label 180@s = 'LOC3_GB'
set_lvar_text_label 182@s = 'LOC3_GC'
set_lvar_text_label 184@s = 'LOC3_GD'
set_lvar_int_to_constant 206@ = 19013
set_lvar_int_to_constant 207@ = 19014
set_lvar_int_to_constant 208@ = 19035
set_lvar_int_to_constant 209@ = 19036
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25607
if 
  174@ == 10
goto_if_false @MUSIC3_25654
set_lvar_text_label 178@s = 'RYD1_BE'
set_lvar_int_to_constant 206@ = 10405
220@ = 1

:MUSIC3_25654
if 
  174@ == 11
goto_if_false @MUSIC3_25701
set_lvar_text_label 178@s = 'LOC3_JA'
set_lvar_int_to_constant 206@ = 19038
220@ = 1

:MUSIC3_25701
if 
  174@ == 12
goto_if_false @MUSIC3_25748
set_lvar_text_label 178@s = 'LOC3_JB'
set_lvar_int_to_constant 206@ = 19039
220@ = 1

:MUSIC3_25748
set_lvar_int_to_lvar_int 223@ = 176@
221@ = 0
222@ = 0
224@ = 1
return 

:MUSIC3_25779
if 
  174@ == 1
goto_if_false @MUSIC3_25905
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_25898
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_25860
gosub @MUSIC3_26806
goto @MUSIC3_25891

:MUSIC3_25860
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_25891
goto @MUSIC3_25905

:MUSIC3_25898
174@ = 0

:MUSIC3_25905
if or
  174@ == 7
  174@ == 2
  174@ == 6
  174@ == 11
  174@ == 12
goto_if_false @MUSIC3_26005
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_25998
gosub @MUSIC3_26545
gosub @MUSIC3_26652
gosub @MUSIC3_26806
goto @MUSIC3_26005

:MUSIC3_25998
174@ = 0

:MUSIC3_26005
if 
  122@ == 5
goto_if_false @MUSIC3_26299
if 
  123@ == 0
goto_if_false @MUSIC3_26299
if or
  174@ == 3
  174@ == 4
  174@ == 5
  174@ == 10
goto_if_false @MUSIC3_26299
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26292
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_26254
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_26216
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_26178
gosub @MUSIC3_26806
goto @MUSIC3_26209

:MUSIC3_26178
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26209
goto @MUSIC3_26247

:MUSIC3_26216
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26247
goto @MUSIC3_26285

:MUSIC3_26254
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26285
goto @MUSIC3_26299

:MUSIC3_26292
174@ = 0

:MUSIC3_26299
if or
  174@ == 8
  174@ == 9
goto_if_false @MUSIC3_26543
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26536
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_26498
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_26460
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_26422
gosub @MUSIC3_26806
goto @MUSIC3_26453

:MUSIC3_26422
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26453
goto @MUSIC3_26491

:MUSIC3_26460
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26491
goto @MUSIC3_26529

:MUSIC3_26498
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26529
goto @MUSIC3_26543

:MUSIC3_26536
174@ = 0

:MUSIC3_26543
return 

:MUSIC3_26545
if 
  is_int_lvar_greater_than_int_lvar 220@ > 223@
goto_if_false @MUSIC3_26650
if 
  221@ == 0
goto_if_false @MUSIC3_26607
load_mission_audio MissionAudioSlot.Slot1 {audioId} 206@(223@,14i)
223@ += 1
221@ = 1

:MUSIC3_26607
if 
  222@ == 0
goto_if_false @MUSIC3_26650
load_mission_audio MissionAudioSlot.Slot2 {audioId} 206@(223@,14i)
223@ += 1
222@ = 1

:MUSIC3_26650
return 

:MUSIC3_26652
if 
  224@ == 1
goto_if_false @MUSIC3_26728
if 
  221@ == 1
goto_if_false @MUSIC3_26728
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC3_26728
play_mission_audio MissionAudioSlot.Slot1
print_now 178@(176@,14s) {time} 4500 {flag} 1
221@ = 2

:MUSIC3_26728
if 
  224@ == 2
goto_if_false @MUSIC3_26804
if 
  222@ == 1
goto_if_false @MUSIC3_26804
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC3_26804
play_mission_audio MissionAudioSlot.Slot2
print_now 178@(176@,14s) {time} 4500 {flag} 1
222@ = 2

:MUSIC3_26804
return 

:MUSIC3_26806
if 
  221@ == 2
goto_if_false @MUSIC3_26869
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC3_26869
clear_this_print 178@(176@,14s)
176@ += 1
224@ = 2
221@ = 0

:MUSIC3_26869
if 
  222@ == 2
goto_if_false @MUSIC3_26932
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC3_26932
clear_this_print 178@(176@,14s)
176@ += 1
224@ = 1
222@ = 0

:MUSIC3_26932
return 

//-------------Mission 34---------------
// Originally: House Party

:MUSIC5
script_name 'MUSIC5'
gosub @MUSIC5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC5_38
gosub @MUSIC5_15844

:MUSIC5_38
gosub @MUSIC5_16013
terminate_this_script 

:MUSIC5_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP4'
clear_prints 
wait 0
$LA_hub_activity = 1
80@ = 0
81@ = 0
82@ = 0
83@ = 0
106@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
set_lvar_int_to_constant 89@ = 106
set_lvar_int_to_constant 90@ = 107
set_lvar_int_to_constant 91@ = 107
set_lvar_int_to_constant 92@ = 103
set_lvar_int_to_constant 93@ = 103
set_lvar_int_to_constant 94@ = 104
95@ = 0
96@ = 0
105@ = 0
107@ = 0
108@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
104@ = 75
switch_car_generator $gen_car5 {amount} 0
switch_car_generator $gen_car6 {amount} 0
switch_car_generator $gen_car9 {amount} 0
clear_area 791.7 {y} -1627.0 {z} 12.3 {radius} 10.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
make_player_gang_disappear 
set_fading_colour 0 {g} 0 {b} 0
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_609
clear_area 782.5 {y} -1619.3 {z} 12.0 {radius} 5.0 {clearParticles} False
102@, 103@ = get_random_car_model_in_memory True
if 
  102@ >= 0
goto_if_false @MUSIC5_506
64@ = create_car 102@ {x} 782.5 {y} -1619.3 {z} 12.0
set_car_heading 64@ {heading} 270.0

:MUSIC5_506
clear_area 782.5 {y} -1604.8 {z} 12.0 {radius} 5.0 {clearParticles} False
102@, 103@ = get_random_car_model_in_memory True
if 
  102@ >= 0
goto_if_false @MUSIC5_591
65@ = create_car 102@ {x} 782.5 {y} -1604.8 {z} 12.0
set_car_heading 65@ {heading} 270.0

:MUSIC5_591
load_cutscene 'STRAP4A'
goto @MUSIC5_673

:MUSIC5_609
if 
  97@ == 0
goto_if_false @MUSIC5_673
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_area_visible 3
load_cutscene 'STRP4B1'
97@ = 1

:MUSIC5_673
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC5_697
wait 0
goto @MUSIC5_673

:MUSIC5_697
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC5_706
if 
  not has_cutscene_finished 
goto_if_false @MUSIC5_730
wait 0
goto @MUSIC5_706

:MUSIC5_730
do_fade 0 {direction} Fade.Out

:MUSIC5_736
if 
  get_fading_status 
goto_if_false @MUSIC5_760
wait 0
goto @MUSIC5_736

:MUSIC5_760
mark_car_as_no_longer_needed 64@
mark_car_as_no_longer_needed 65@
clear_cutscene 
set_player_control $player1 {state} False
if 
  97@ == 1
goto_if_false @MUSIC5_1053
if 
  not was_cutscene_skipped 
goto_if_false @MUSIC5_1053
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_fading_colour 0 {g} 0 {b} 0
request_model 492
load_all_models_now 
clear_area 2503.0 {y} -1658.8 {z} 12.3 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
34@ = create_car 492 {x} 2503.0 {y} -1658.8 {z} 13.0
change_car_colour 34@ {color1} 59 {color2} 34
set_car_heading 34@ {heading} 234.0
set_area_visible 0
load_cutscene 'STRP4B2'

:MUSIC5_945
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC5_969
wait 0
goto @MUSIC5_945

:MUSIC5_969
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC5_978
if 
  not has_cutscene_finished 
goto_if_false @MUSIC5_1002
wait 0
goto @MUSIC5_978

:MUSIC5_1002
do_fade 0 {direction} Fade.Out

:MUSIC5_1008
if 
  get_fading_status 
goto_if_false @MUSIC5_1032
wait 0
goto @MUSIC5_1008

:MUSIC5_1032
clear_cutscene 
delete_car 34@
set_player_control $player1 {state} False
97@ = 0

:MUSIC5_1053
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
wait 0
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_1112
do_fade 0 {direction} Fade.In
goto @MUSIC5_15862

:MUSIC5_1112
request_model 106
request_model 107
request_model 103
request_model 104
request_model 492
request_model 566
request_model 412
request_model 344
request_model 372
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'RYDER2'
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34200

:MUSIC5_1188
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC5_1214
wait 0
goto @MUSIC5_1188

:MUSIC5_1214
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2482.0 {y} -1646.3 {z} 12.8
play_mission_audio MissionAudioSlot.Slot3
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission3
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission3
147@ = get_player_group $player1
set_group_separation_range 147@ {range} 1000.0
151@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 151@ {event} Event.LeaderExitedCarAsDriver
clear_group_decision_maker_event_response 151@ {event} Event.LeaderEnteredCarAsDriver
add_group_decision_maker_event_response 151@ {event} Event.ShotFired {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_group_decision_maker 147@ {handleOrTemplate} 151@
set_group_default_task_allocator 147@ {defaultTaskAllocator} DefaultTaskAllocator.StandStill
145@ = load_char_decision_maker DecisionMakerType.Tough
146@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_char_decision_maker_event_response 146@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed
$sweet = create_char PedType.Mission3 {modelId} 290 {x} 2485.5 {y} -1647.7 {z} 13.3
set_char_never_targetted $sweet {state} True
set_char_heading $sweet {heading} 196.6
set_char_only_damaged_by_player $sweet {state} True
set_char_stay_in_same_place $sweet {state} True
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 3000
add_armour_to_char $sweet {amount} 100
set_char_only_damaged_by_player $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 146@
clear_area 2503.0 {y} -1658.8 {z} 12.3 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
34@ = create_car 492 {x} 2503.0 {y} -1658.8 {z} 13.0
change_car_colour 34@ {color1} 59 {color2} 34
set_car_heading 34@ {heading} 234.0
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 34@ {state} True
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
95@ = generate_random_int_in_range 0 {max} 3
63@ = create_char PedType.Mission3 {modelId} 89@(95@,6i) {x} 2487.1001 {y} -1647.7 {z} 13.3
set_char_never_targetted 63@ {state} True
set_char_heading 63@ {heading} 158.9
set_char_only_damaged_by_player 63@ {state} True
set_char_stay_in_same_place 63@ {state} True
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 63@ {handleOrTemplate} 146@
clear_area 2496.7 {y} -1683.4 {z} 13.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16418
35@ = create_car 412 {x} 2496.7 {y} -1683.4 {z} 13.0
set_car_heading 35@ {heading} 272.5
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 35@ {state} True
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
$ryder = create_char PedType.Mission3 {modelId} 291 {x} 2484.1001 {y} -1641.2 {z} 13.5
set_char_stay_in_same_place $ryder {state} True
set_char_never_targetted $ryder {state} True
set_char_heading $ryder {heading} 180.0
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker $ryder {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
36@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1642.2 {z} 13.5
set_char_stay_in_same_place 36@ {state} True
set_char_never_targetted 36@ {state} True
set_char_heading 36@ {heading} 180.0
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 36@ {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
37@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1641.2 {z} 13.5
set_char_stay_in_same_place 37@ {state} True
set_char_never_targetted 37@ {state} True
set_char_heading 37@ {heading} 180.0
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 37@ {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
39@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1639.2 {z} 13.5
set_char_stay_in_same_place 39@ {state} True
set_char_never_targetted 39@ {state} True
set_char_heading 39@ {heading} 180.0
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 39@ {handleOrTemplate} 146@
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
43@ = create_car 566 {x} 2227.6001 {y} -1667.8 {z} 13.7
set_car_heading 43@ {heading} 342.3
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 43@ {lockStatus} CarLock.LockoutPlayerOnly
95@ = generate_random_int_in_range 3 {max} 6
47@ = create_char_inside_car 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i)
set_char_kinda_stay_in_same_place 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 47@ {handleOrTemplate} 146@
149@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 149@ {range} 300.0
set_group_decision_maker 149@ {handleOrTemplate} 151@
set_group_leader 149@ {handle} 47@
set_char_accuracy 47@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
48@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.BikeRear
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 48@
set_char_accuracy 48@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
49@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearLeft
set_char_only_damaged_by_player 49@ {state} True
set_char_suffers_critical_hits 49@ {state} False
add_armour_to_char 49@ {amount} 100
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_char_accuracy 49@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
50@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearRight
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 50@
set_char_accuracy 50@ {accuracy} 104@
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
44@ = create_car 566 {x} 2224.6001 {y} -1677.9 {z} 13.2
set_car_heading 44@ {heading} 342.3
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 44@ {lockStatus} CarLock.LockoutPlayerOnly
95@ = generate_random_int_in_range 3 {max} 6
51@ = create_char_inside_car 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i)
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 51@ {state} True
set_char_decision_maker 51@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 51@
set_char_accuracy 51@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
52@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.BikeRear
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 52@
set_char_accuracy 52@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
53@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearLeft
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 53@ {state} True
set_char_decision_maker 53@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 53@
set_char_accuracy 53@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
54@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearRight
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 54@ {state} True
set_char_decision_maker 54@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 54@
set_char_accuracy 54@ {accuracy} 104@
set_area_visible 0
load_scene 2484.8999 {y} -1649.2 {z} 12.5
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_max_fire_generations 1
request_car_recording 22
request_car_recording 23
clear_area 2492.3999 {y} -1632.0 {z} 12.4 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2492.3999 {y} -1632.0 {z} 12.4
set_fixed_camera_position 2483.0 {y} -1649.8 {z} 12.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2494.3 {y} -1650.3 {z} 16.6 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
enable_ambient_crime False

:MUSIC5_3036
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC5_3062
goto @MUSIC5_15862

:MUSIC5_3062
alter_wanted_level $player1 {wantedLevel} 0
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_3101
goto @MUSIC5_15844

:MUSIC5_3101
if 
  80@ == 0
goto_if_false @MUSIC5_7140
if 
  81@ == 0
goto_if_false @MUSIC5_4061
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_3208
144@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2498.5 {y} -1652.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 34@ {time} -1
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3208
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_3295
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_3295
144@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2487.3999 {y} -1657.9 {z} 12.3 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3295
if 
  not is_char_dead $ryder
goto_if_false @MUSIC5_3433
144@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2485.1001 {y} -1652.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2478.3999 {y} -1649.1 {z} 12.5 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2478.2 {y} -1631.4 {z} 12.5 {speed} MoveState.Run {time} -1
close_sequence_task 144@
perform_sequence_task $ryder {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3433
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_3626
144@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} 2487.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2487.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2472.3 {y} -1652.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_follow_path_nodes_to_coord -1 {x} 2466.3 {y} -1660.7 {z} 12.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 88.6
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3626
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_3795
144@ = open_sequence_task 
task_pause -1 {time} 1500
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2467.6001 {y} -1649.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3795
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_3988
144@ = open_sequence_task 
task_pause -1 {time} 3000
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2473.3999 {y} -1652.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_follow_path_nodes_to_coord -1 {x} 2463.8 {y} -1663.6 {z} 12.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 116.3
close_sequence_task 144@
perform_sequence_task 39@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3988
do_fade 1000 {direction} Fade.In
105@ = 1
107@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 107@
108@ += 1
gosub @MUSIC5_17649
82@ = 1
skip_cutscene_start_internal @MUSIC5_5678
TIMERA = 0
81@ = 1

:MUSIC5_4061
if 
  81@ == 1
goto_if_false @MUSIC5_4207
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_4207
if 
  TIMERA > 3000
goto_if_false @MUSIC5_4207
105@ = 2
107@ = 0
108@ = 2
gosub @MUSIC5_17649
set_fixed_camera_position 2501.5 {y} -1650.5 {z} 13.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.8999 {y} -1682.1 {z} 16.3 {switchStyle} SwitchType.JumpCut
TIMERA = 0
81@ = 2

:MUSIC5_4207
if 
  81@ == 2
goto_if_false @MUSIC5_5336
if 
  86@ == 0
goto_if_false @MUSIC5_4493
if 
  TIMERA > 6000
goto_if_false @MUSIC5_4493
if 
  not is_car_dead 43@
goto_if_false @MUSIC5_4374
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_4374
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 43@ {x} 2435.3 {y} -1661.1 {z} 12.2 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 43@ {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} 43@ {actionId} TempAction.HandbrakeStraight {time} 400
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_4374
if 
  not is_car_dead 44@
goto_if_false @MUSIC5_4486
if 
  not is_char_dead 51@
goto_if_false @MUSIC5_4486
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 44@ {x} 2440.8 {y} -1656.9 {z} 12.2 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 44@ {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} 44@ {actionId} TempAction.HandbrakeStraight {time} 400
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_4486
86@ = 1

:MUSIC5_4493
if or
  2 > 84@
  2 > 85@
goto_if_false @MUSIC5_5266
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_5016
if 
  84@ == 0
goto_if_false @MUSIC5_4802
if 
  is_char_in_car $sweet {vehicle} 34@
goto_if_false @MUSIC5_4795
do_fade 500 {direction} Fade.Out

:MUSIC5_4578
if 
  get_fading_status 
goto_if_false @MUSIC5_4602
wait 0
goto @MUSIC5_4578

:MUSIC5_4602
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_4634
goto @MUSIC5_15844

:MUSIC5_4634
load_scene 2459.2749 {y} -1653.2629 {z} 13.0938
set_fixed_camera_position 2459.2749 {y} -1653.2629 {z} 13.0938 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2460.0891 {y} -1653.843 {z} 13.1158 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_4725
start_playback_recorded_car 34@ {path} 22

:MUSIC5_4725
do_fade 500 {direction} Fade.In

:MUSIC5_4732
if 
  get_fading_status 
goto_if_false @MUSIC5_4756
wait 0
goto @MUSIC5_4732

:MUSIC5_4756
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_4788
goto @MUSIC5_15844

:MUSIC5_4788
84@ = 1

:MUSIC5_4795
goto @MUSIC5_5016

:MUSIC5_4802
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_5016
if 
  not is_playback_going_on_for_car 34@
goto_if_false @MUSIC5_5016
if 
  84@ == 1
goto_if_false @MUSIC5_5016
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.8999 {y} -1665.6 {z} 12.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2465.0 {y} -1666.4 {z} 12.2 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} 2465.3 {y} -1654.6 {z} 12.2 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 107.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@
84@ = 2

:MUSIC5_5016
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_5259
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_5259
if 
  85@ == 0
goto_if_false @MUSIC5_5106
if 
  is_char_in_car 63@ {vehicle} 35@
goto_if_false @MUSIC5_5099
start_playback_recorded_car 35@ {path} 23
85@ = 1

:MUSIC5_5099
goto @MUSIC5_5259

:MUSIC5_5106
if 
  not is_playback_going_on_for_car 35@
goto_if_false @MUSIC5_5259
if 
  85@ == 1
goto_if_false @MUSIC5_5259
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.2 {y} -1655.0 {z} 12.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2461.1001 {y} -1650.8 {z} 12.2 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} 2467.3999 {y} -1657.7 {z} 12.2 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 110.0
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@
85@ = 2

:MUSIC5_5259
goto @MUSIC5_5336

:MUSIC5_5266
do_fade 500 {direction} Fade.Out

:MUSIC5_5273
if 
  get_fading_status 
goto_if_false @MUSIC5_5297
wait 0
goto @MUSIC5_5273

:MUSIC5_5297
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5329
goto @MUSIC5_15844

:MUSIC5_5329
81@ = 3

:MUSIC5_5336
if 
  81@ == 3
goto_if_false @MUSIC5_5609
load_scene 2404.5 {y} -1672.3 {z} 15.8
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
61@ = create_car 566 {x} 2485.0 {y} -1682.5 {z} 15.0
lock_car_doors 61@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 61@ {state} True
set_car_proofs 61@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 61@ {heading} 90.0
camera_reset_new_scriptables 
camera_persist_pos True
camera_persist_track True
camera_set_vector_move 2404.5 {fromY} -1672.3 {fromZ} 15.8 {toX} 2408.6001 {toY} -1672.7 {toZ} 15.9 {time} 5000 {ease} True
camera_set_vector_track 2384.8 {fromY} -1665.4 {fromZ} 13.4 {toX} 2416.5 {toY} -1665.3 {toZ} 13.9 {time} 5000 {ease} True
do_fade 500 {direction} Fade.In

:MUSIC5_5539
if 
  get_fading_status 
goto_if_false @MUSIC5_5563
wait 0
goto @MUSIC5_5539

:MUSIC5_5563
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5595
goto @MUSIC5_15844

:MUSIC5_5595
TIMERA = 0
81@ = 4

:MUSIC5_5609
if 
  81@ == 4
goto_if_false @MUSIC5_5653
if 
  TIMERA > 5800
goto_if_false @MUSIC5_5653
81@ = 5

:MUSIC5_5653
if 
  81@ == 5
goto_if_false @MUSIC5_7140
82@ = 0

:MUSIC5_5678
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5712
goto @MUSIC5_15844

:MUSIC5_5712
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC5_5736
if 
  get_fading_status 
goto_if_false @MUSIC5_5760
wait 0
goto @MUSIC5_5736

:MUSIC5_5760
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5792
goto @MUSIC5_15844

:MUSIC5_5792
camera_reset_new_scriptables 
if 
  82@ == 1
goto_if_false @MUSIC5_5906
if 
  not is_car_dead 43@
goto_if_false @MUSIC5_5858
set_car_coordinates 43@ {x} 2453.1001 {y} -1663.0 {z} 12.3
set_car_heading 43@ {heading} 217.2

:MUSIC5_5858
if 
  not is_car_dead 44@
goto_if_false @MUSIC5_5904
set_car_coordinates 44@ {x} 2452.2 {y} -1651.9 {z} 12.3
set_car_heading 44@ {heading} 314.2

:MUSIC5_5904
clear_prints 

:MUSIC5_5906
if 
  is_car_dead 61@
goto_if_false @MUSIC5_5999
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
61@ = create_car 566 {x} 2485.0 {y} -1682.5 {z} 15.0
lock_car_doors 61@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 61@ {state} True
set_car_proofs 61@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 61@ {heading} 90.0

:MUSIC5_5999
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_6066
if 
  is_playback_going_on_for_car 34@
goto_if_false @MUSIC5_6036
stop_playback_recorded_car 34@

:MUSIC5_6036
set_car_coordinates 34@ {x} 2462.3 {y} -1662.4 {z} 12.1
set_car_heading 34@ {heading} 325.8

:MUSIC5_6066
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_6133
if 
  is_playback_going_on_for_car 35@
goto_if_false @MUSIC5_6103
stop_playback_recorded_car 35@

:MUSIC5_6103
set_car_coordinates 35@ {x} 2463.3999 {y} -1656.1 {z} 12.0
set_car_heading 35@ {heading} 50.5

:MUSIC5_6133
clear_char_tasks_immediately $sweet
clear_area 2465.3 {y} -1654.6 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2465.3 {y} -1654.6 {z} 12.2
set_char_heading $sweet {heading} 107.0
set_char_decision_maker $sweet {handleOrTemplate} 145@
148@ = create_group DefaultTaskAllocator.StandStill
set_group_decision_maker 148@ {handleOrTemplate} 151@
set_group_leader 148@ {handle} $sweet
144@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_6382
clear_char_tasks_immediately 63@
clear_area 2467.3999 {y} -1657.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 63@ {x} 2467.3999 {y} -1657.7 {z} 12.2
set_char_heading 63@ {heading} 107.0
set_char_decision_maker 63@ {handleOrTemplate} 145@
set_group_member 148@ {handle} 63@

:MUSIC5_6382
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_6541
clear_char_tasks_immediately 36@
clear_area 2466.3 {y} -1660.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} 2466.3 {y} -1660.7 {z} 12.2
set_char_heading 36@ {heading} 88.6
set_char_decision_maker 36@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 36@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6541
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_6700
clear_char_tasks_immediately 37@
clear_area 2467.6001 {y} -1649.2 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} 2467.6001 {y} -1649.2 {z} 12.5
set_char_heading 37@ {heading} 110.0
set_char_decision_maker 37@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 37@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6700
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_6859
clear_char_tasks_immediately 39@
clear_area 2462.3 {y} -1665.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 39@ {x} 2462.3 {y} -1665.7 {z} 12.2
set_char_heading 39@ {heading} 76.9
set_char_decision_maker 39@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 39@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 39@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6859
load_scene 2487.3 {y} -1650.7 {z} 12.5
clear_area 2469.7 {y} -1657.0 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates_dont_warp_gang $scplayer {x} 2469.7 {y} -1657.0 {z} 12.3
set_char_heading $scplayer {heading} 90.0
62@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreet {ammo} 120 {x} 2466.0 {y} -1656.1 {z} 13.3
add_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
delete_char $ryder
unload_special_character 2
105@ = 2
107@ = 2
108@ = 4
gosub @MUSIC5_17649
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1500 {direction} Fade.In

:MUSIC5_7063
if 
  get_fading_status 
goto_if_false @MUSIC5_7087
wait 0
goto @MUSIC5_7063

:MUSIC5_7087
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_7119
goto @MUSIC5_15844

:MUSIC5_7119
TIMERA = 0
81@ = 0
80@ = 1

:MUSIC5_7140
if 
  80@ == 1
goto_if_false @MUSIC5_8232
if 
  106@ == 0
goto_if_false @MUSIC5_7217
if 
  105@ == 0
goto_if_false @MUSIC5_7217
print 'STP4_02' {time} 11000 {flag} 1
106@ = 1

:MUSIC5_7217
if 
  81@ == 0
goto_if_false @MUSIC5_7863
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_7307
144@ = open_sequence_task 
task_pause -1 {time} 1200
task_leave_any_car -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1

:MUSIC5_7307
if 
  not is_char_dead 48@
goto_if_false @MUSIC5_7388
144@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_any_car -1
task_achieve_heading -1 {heading} 295.1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1

:MUSIC5_7388
if 
  not is_char_dead 49@
goto_if_false @MUSIC5_7460
144@ = open_sequence_task 
task_pause -1 {time} 2200
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1

:MUSIC5_7460
if 
  not is_char_dead 50@
goto_if_false @MUSIC5_7532
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1

:MUSIC5_7532
if 
  not is_char_dead 51@
goto_if_false @MUSIC5_7613
144@ = open_sequence_task 
task_pause -1 {time} 1800
task_leave_any_car -1
task_achieve_heading -1 {heading} 245.3
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@
70@ = add_blip_for_char 51@
change_blip_scale 70@ {size} 1

:MUSIC5_7613
if 
  not is_char_dead 52@
goto_if_false @MUSIC5_7694
144@ = open_sequence_task 
task_pause -1 {time} 2300
task_leave_any_car -1
task_achieve_heading -1 {heading} 268.6
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 52@ {sequence} 144@
clear_sequence_task 144@
71@ = add_blip_for_char 52@
change_blip_scale 71@ {size} 1

:MUSIC5_7694
if 
  not is_char_dead 53@
goto_if_false @MUSIC5_7775
144@ = open_sequence_task 
task_pause -1 {time} 2100
task_leave_any_car -1
task_achieve_heading -1 {heading} 225.8
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 53@ {sequence} 144@
clear_sequence_task 144@
72@ = add_blip_for_char 53@
change_blip_scale 72@ {size} 1

:MUSIC5_7775
if 
  not is_char_dead 54@
goto_if_false @MUSIC5_7856
144@ = open_sequence_task 
task_pause -1 {time} 1200
task_leave_any_car -1
task_achieve_heading -1 {heading} 236.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 54@ {sequence} 144@
clear_sequence_task 144@
73@ = add_blip_for_char 54@
change_blip_scale 73@ {size} 1

:MUSIC5_7856
81@ = 1

:MUSIC5_7863
if 
  81@ == 1
goto_if_false @MUSIC5_8164
if 
  is_char_dead 47@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 48@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 49@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 50@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 51@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 52@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 53@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 54@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 55@
goto_if_false @MUSIC5_8164
if 
  is_char_dead 56@
goto_if_false @MUSIC5_8164
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 2

:MUSIC5_8164
if 
  10 > 88@
goto_if_false @MUSIC5_8225
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_8211
remove_blip 66@(88@,14i)

:MUSIC5_8211
88@ += 1
goto @MUSIC5_8232

:MUSIC5_8225
88@ = 0

:MUSIC5_8232
if 
  80@ == 2
goto_if_false @MUSIC5_9777
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_9293
if 
  81@ == 0
goto_if_false @MUSIC5_9293
if 
  TIMERA > 2000
goto_if_false @MUSIC5_9293
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
clear_area 2425.8 {y} -1636.6 {z} 26.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
45@ = create_car 566 {x} 2425.8 {y} -1636.6 {z} 26.2
set_car_heading 45@ {heading} 166.8
clear_area 2441.6001 {y} -1658.6 {z} 25.2 {radius} 5.0 {clearParticles} True
47@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1658.6 {z} 25.2
set_char_accuracy 47@ {accuracy} 104@
set_char_heading 47@ {heading} 262.7
set_char_only_damaged_by_player 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 47@ {state} True
150@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 150@ {range} 300.0
set_char_health 47@ {health} 10
set_char_decision_maker 47@ {handleOrTemplate} 146@
set_group_decision_maker 150@ {handleOrTemplate} 151@
set_group_leader 150@ {handle} 47@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 500
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1660.2 {z} 25.1 {radius} 5.0 {clearParticles} True
48@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1660.2 {z} 25.1
set_char_accuracy 48@ {accuracy} 104@
set_char_heading 48@ {heading} 265.9
set_char_only_damaged_by_player 48@ {state} True
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_health 48@ {health} 10
set_char_stay_in_same_place 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 48@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 600
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1665.2 {z} 24.6 {radius} 5.0 {clearParticles} True
49@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1665.2 {z} 24.6
set_char_accuracy 49@ {accuracy} 104@
set_char_heading 49@ {heading} 273.6
set_char_only_damaged_by_player 49@ {state} True
set_char_health 49@ {health} 10
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 49@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 1700
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1655.4 {z} 25.6 {radius} 5.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1655.4 {z} 25.6
set_char_accuracy 50@ {accuracy} 104@
set_char_heading 50@ {heading} 280.0
set_char_only_damaged_by_player 50@ {state} True
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_health 50@ {health} 10
set_char_stay_in_same_place 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 50@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 2000
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
task_turn_char_to_face_char $scplayer {target} 50@
set_fixed_camera_position 2474.3 {y} -1660.9 {z} 14.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.8 {y} -1657.2 {z} 19.1 {switchStyle} SwitchType.JumpCut
105@ = 2
107@ = 5
108@ = 6
gosub @MUSIC5_17649
skip_cutscene_start_internal @MUSIC5_9330
TIMERA = 0
TIMERB = 0
81@ = 1

:MUSIC5_9293
if 
  81@ == 1
goto_if_false @MUSIC5_9500
if 
  TIMERA > 3000
goto_if_false @MUSIC5_9500

:MUSIC5_9330
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_9364
goto @MUSIC5_15844

:MUSIC5_9364
if 
  82@ == 1
goto_if_false @MUSIC5_9399
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0

:MUSIC5_9399
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_9437
task_shoot_at_coord 37@ {x} 2443.8999 {y} -1659.9 {z} 24.6 {time} -2

:MUSIC5_9437
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_9458
explode_char_head 39@

:MUSIC5_9458
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
106@ = 0
81@ = 2

:MUSIC5_9500
if 
  81@ == 2
goto_if_false @MUSIC5_9709
if 
  106@ == 0
goto_if_false @MUSIC5_9577
if 
  105@ == 0
goto_if_false @MUSIC5_9577
print 'STP4_03' {time} 11000 {flag} 1
106@ = 1

:MUSIC5_9577
if 
  is_char_dead 47@
goto_if_false @MUSIC5_9709
if 
  is_char_dead 48@
goto_if_false @MUSIC5_9709
if 
  is_char_dead 49@
goto_if_false @MUSIC5_9709
if 
  is_char_dead 50@
goto_if_false @MUSIC5_9709
mark_car_as_no_longer_needed 45@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 3

:MUSIC5_9709
if 
  4 > 88@
goto_if_false @MUSIC5_9770
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_9756
remove_blip 66@(88@,14i)

:MUSIC5_9756
88@ += 1
goto @MUSIC5_9777

:MUSIC5_9770
88@ = 0

:MUSIC5_9777
if 
  80@ == 3
goto_if_false @MUSIC5_14612
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_11431
if 
  81@ == 0
goto_if_false @MUSIC5_11431
if 
  TIMERA > 2000
goto_if_false @MUSIC5_11431
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC5_9866
if 
  get_fading_status 
goto_if_false @MUSIC5_9890
wait 0
goto @MUSIC5_9866

:MUSIC5_9890
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_9922
goto @MUSIC5_15844

:MUSIC5_9922
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
clear_char_decision_maker_event_response 146@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed
if 
  locate_char_any_means_3d $scplayer {x} 2473.5 {y} -1655.2 {z} 12.1 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC5_10060
clear_area 2475.8 {y} -1663.6 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2475.8 {y} -1663.6 {z} 12.3

:MUSIC5_10060
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_10137
clear_area 2473.5 {y} -1655.2 {z} 12.1 {radius} 5.0 {clearParticles} True
set_car_coordinates 35@ {x} 2473.5 {y} -1655.2 {z} 12.1
set_car_heading 35@ {heading} 267.2
goto @MUSIC5_10238

:MUSIC5_10137
clear_area 2473.5 {y} -1655.2 {z} 12.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16418
35@ = create_car 412 {x} 2473.5 {y} -1655.2 {z} 12.1
set_car_heading 35@ {heading} 267.2
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 35@ {state} True
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False

:MUSIC5_10238
clear_area 2480.7 {y} -1729.2 {z} 12.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
46@ = create_car 566 {x} 2480.7 {y} -1729.2 {z} 12.2
set_car_heading 46@ {heading} 105.1
lock_car_doors 46@ {lockStatus} CarLock.LockoutPlayerOnly
clear_area 2481.2 {y} -1718.2 {z} 12.5 {radius} 5.0 {clearParticles} True
47@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2481.2 {y} -1718.2 {z} 12.5
set_char_accuracy 47@ {accuracy} 104@
set_char_heading 47@ {heading} 353.4
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 146@
150@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 150@ {range} 300.0
set_group_decision_maker 150@ {handleOrTemplate} 151@
set_group_leader 150@ {handle} 47@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2481.2 {y} -1688.1 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 12.5 {time} 10000
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
clear_area 2482.1001 {y} -1720.2 {z} 12.5 {radius} 5.0 {clearParticles} True
48@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2482.1001 {y} -1720.2 {z} 12.5
set_char_accuracy 48@ {accuracy} 104@
set_char_heading 48@ {heading} 352.8
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 48@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2482.1001 {y} -1689.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 4000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
clear_area 2481.0 {y} -1718.2 {z} 12.5 {radius} 5.0 {clearParticles} True
49@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2481.0 {y} -1718.2 {z} 12.5
set_char_accuracy 49@ {accuracy} 104@
set_char_heading 49@ {heading} 352.8
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 49@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2481.0 {y} -1687.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 10000
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
clear_area 2480.3 {y} -1719.2 {z} 12.5 {radius} 5.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2480.3 {y} -1719.2 {z} 12.5
set_char_accuracy 50@ {accuracy} 104@
set_char_heading 50@ {heading} 352.8
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 50@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2480.3 {y} -1689.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 4000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
load_scene_in_direction 2478.8 {y} -1708.1 {z} 12.9 {heading} 190.0
set_fixed_camera_position 2481.0 {y} -1682.5 {z} 12.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2487.3999 {y} -1700.0 {z} 16.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC5_11319
if 
  get_fading_status 
goto_if_false @MUSIC5_11343
wait 0
goto @MUSIC5_11319

:MUSIC5_11343
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11375
goto @MUSIC5_15844

:MUSIC5_11375
105@ = 2
107@ = 6
108@ = 7
gosub @MUSIC5_17649
82@ = 1
skip_cutscene_start_internal @MUSIC5_11475
TIMERA = 0
81@ = 1

:MUSIC5_11431
if 
  81@ == 1
goto_if_false @MUSIC5_13451
if 
  TIMERA > 3000
goto_if_false @MUSIC5_13451
82@ = 0

:MUSIC5_11475
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11509
goto @MUSIC5_15844

:MUSIC5_11509
if 
  82@ == 1
goto_if_false @MUSIC5_11544
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0

:MUSIC5_11544
do_fade 500 {direction} Fade.Out

:MUSIC5_11551
if 
  get_fading_status 
goto_if_false @MUSIC5_11575
wait 0
goto @MUSIC5_11551

:MUSIC5_11575
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11607
goto @MUSIC5_15844

:MUSIC5_11607
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 215.5
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_11770
clear_char_tasks_immediately $sweet
clear_area 2472.5 {y} -1666.2 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2472.5 {y} -1666.2 {z} 12.3
set_char_heading $sweet {heading} 234.4
set_char_stay_in_same_place $sweet {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2476.1001 {y} -1673.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11770
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_11864
clear_char_tasks_immediately 63@
set_char_stay_in_same_place 63@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2478.2 {y} -1673.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11864
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_11958
clear_char_tasks_immediately 36@
set_char_stay_in_same_place 36@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2481.2 {y} -1682.9 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11958
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_12052
clear_char_tasks_immediately 37@
set_char_stay_in_same_place 37@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2482.2 {y} -1682.9 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12052
add_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 151@ {event} Event.ShotFired {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_12171
clear_char_tasks_immediately 47@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12171
if 
  not is_char_dead 48@
goto_if_false @MUSIC5_12222
clear_char_tasks_immediately 48@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12222
if 
  not is_char_dead 49@
goto_if_false @MUSIC5_12273
clear_char_tasks_immediately 49@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12273
if 
  not is_char_dead 50@
goto_if_false @MUSIC5_12378
clear_char_tasks_immediately 50@
clear_area 2489.6001 {y} -1683.3 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates 50@ {x} 2489.6001 {y} -1683.3 {z} 12.5
set_char_heading 50@ {heading} 45.5
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12378
clear_area 2469.3999 {y} -1708.9 {z} 12.5 {radius} 5.0 {clearParticles} True
51@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2469.3999 {y} -1708.9 {z} 12.5
set_char_accuracy 51@ {accuracy} 104@
set_char_heading 51@ {heading} 352.8
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 51@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 51@
70@ = add_blip_for_char 51@
change_blip_scale 70@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@
clear_area 2467.1001 {y} -1710.8 {z} 12.5 {radius} 5.0 {clearParticles} True
52@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2467.1001 {y} -1710.8 {z} 12.5
set_char_accuracy 52@ {accuracy} 104@
set_char_heading 52@ {heading} 352.8
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 52@
71@ = add_blip_for_char 52@
change_blip_scale 71@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 52@ {sequence} 144@
clear_sequence_task 144@
clear_area 2529.3 {y} -1691.6 {z} 12.5 {radius} 5.0 {clearParticles} True
53@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2529.3 {y} -1691.6 {z} 12.5
set_char_accuracy 53@ {accuracy} 104@
set_char_heading 53@ {heading} 352.8
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 53@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 53@
72@ = add_blip_for_char 53@
change_blip_scale 72@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 53@ {sequence} 144@
clear_sequence_task 144@
clear_area 2529.7 {y} -1690.1 {z} 12.5 {radius} 5.0 {clearParticles} True
54@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2529.7 {y} -1690.1 {z} 12.5
set_char_accuracy 54@ {accuracy} 104@
set_char_heading 54@ {heading} 352.8
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 54@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 54@
73@ = add_blip_for_char 54@
change_blip_scale 73@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 54@ {sequence} 144@
clear_sequence_task 144@
clear_area 2478.7 {y} -1645.7 {z} 12.5 {radius} 5.0 {clearParticles} True
55@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2478.7 {y} -1645.7 {z} 12.5
set_char_accuracy 55@ {accuracy} 104@
set_char_heading 55@ {heading} 180.0
give_weapon_to_char 55@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 55@ {state} True
set_char_decision_maker 55@ {handleOrTemplate} 146@
clear_area 2477.7 {y} -1645.7 {z} 12.5 {radius} 5.0 {clearParticles} True
56@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2477.7 {y} -1645.7 {z} 12.5
set_char_accuracy 56@ {accuracy} 104@
set_char_heading 56@ {heading} 180.0
give_weapon_to_char 56@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 56@ {state} True
set_char_decision_maker 56@ {handleOrTemplate} 146@
clear_area 2478.7 {y} -1644.7 {z} 12.5 {radius} 5.0 {clearParticles} True
57@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2478.7 {y} -1644.7 {z} 12.5
set_char_accuracy 57@ {accuracy} 104@
set_char_heading 57@ {heading} 180.0
give_weapon_to_char 57@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 57@ {state} True
set_char_decision_maker 57@ {handleOrTemplate} 146@
clear_area 2477.7 {y} -1644.7 {z} 12.5 {radius} 5.0 {clearParticles} True
58@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2477.7 {y} -1644.7 {z} 12.5
set_char_accuracy 58@ {accuracy} 104@
set_char_heading 58@ {heading} 180.0
give_weapon_to_char 58@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 58@ {state} True
set_char_decision_maker 58@ {handleOrTemplate} 146@
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STP4_04' {time} 11000 {flag} 1
do_fade 500 {direction} Fade.In

:MUSIC5_13381
if 
  get_fading_status 
goto_if_false @MUSIC5_13405
wait 0
goto @MUSIC5_13381

:MUSIC5_13405
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_13437
goto @MUSIC5_15844

:MUSIC5_13437
TIMERA = 0
81@ = 2

:MUSIC5_13451
if 
  81@ == 2
goto_if_false @MUSIC5_14544
if 
  96@ == 0
goto_if_false @MUSIC5_13813
if 
  is_char_dead 47@
goto_if_false @MUSIC5_13574
if 
  is_char_dead 48@
goto_if_false @MUSIC5_13574
if 
  is_char_dead 49@
goto_if_false @MUSIC5_13574
if 
  is_char_dead 54@
goto_if_false @MUSIC5_13574
if 
  is_char_dead 55@
goto_if_false @MUSIC5_13574
96@ = 1

:MUSIC5_13574
if 
  TIMERA > 10000
goto_if_false @MUSIC5_13600
96@ = 1

:MUSIC5_13600
if 
  locate_char_any_means_2d $scplayer {x} 2478.5 {y} -1646.2 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @MUSIC5_13645
96@ = 1

:MUSIC5_13645
if 
  not is_char_dead 55@
goto_if_false @MUSIC5_13687
if 
  has_char_been_damaged_by_char 55@ {handle} $scplayer
goto_if_false @MUSIC5_13687
96@ = 1

:MUSIC5_13687
if 
  not is_char_dead 56@
goto_if_false @MUSIC5_13729
if 
  has_char_been_damaged_by_char 56@ {handle} $scplayer
goto_if_false @MUSIC5_13729
96@ = 1

:MUSIC5_13729
if 
  not is_char_dead 57@
goto_if_false @MUSIC5_13771
if 
  has_char_been_damaged_by_char 57@ {handle} $scplayer
goto_if_false @MUSIC5_13771
96@ = 1

:MUSIC5_13771
if 
  not is_char_dead 58@
goto_if_false @MUSIC5_13813
if 
  has_char_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @MUSIC5_13813
96@ = 1

:MUSIC5_13813
if 
  96@ == 1
goto_if_false @MUSIC5_14209
if 
  not is_char_dead 55@
goto_if_false @MUSIC5_13918
149@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 149@ {range} 300.0
set_char_decision_maker 55@ {handleOrTemplate} 145@
set_group_decision_maker 149@ {handleOrTemplate} 151@
set_group_leader 149@ {handle} 55@
74@ = add_blip_for_char 55@
change_blip_scale 74@ {size} 1
set_char_stay_in_same_place 55@ {state} False
task_kill_char_on_foot 55@ {target} $scplayer

:MUSIC5_13918
if 
  not is_char_dead 56@
goto_if_false @MUSIC5_13980
set_char_decision_maker 56@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 56@
75@ = add_blip_for_char 56@
change_blip_scale 75@ {size} 1
set_char_stay_in_same_place 56@ {state} False
task_kill_char_on_foot 56@ {target} $scplayer

:MUSIC5_13980
if 
  not is_char_dead 57@
goto_if_false @MUSIC5_14110
set_char_decision_maker 57@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 57@
76@ = add_blip_for_char 57@
change_blip_scale 76@ {size} 1
set_char_stay_in_same_place 57@ {state} False
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2477.3 {y} -1651.4 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 2464.0 {y} -1653.4 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 57@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_14110
if 
  not is_char_dead 58@
goto_if_false @MUSIC5_14172
set_char_decision_maker 58@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 58@
77@ = add_blip_for_char 58@
change_blip_scale 77@ {size} 1
set_char_stay_in_same_place 58@ {state} False
task_kill_char_on_foot 58@ {target} $sweet

:MUSIC5_14172
clear_prints 
105@ = 2
107@ = 7
108@ = 8
gosub @MUSIC5_17649
96@ = 2

:MUSIC5_14209
if 
  is_char_dead 47@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 48@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 49@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 50@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 51@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 52@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 53@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 54@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 55@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 56@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 57@
goto_if_false @MUSIC5_14544
if 
  is_char_dead 58@
goto_if_false @MUSIC5_14544
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 4

:MUSIC5_14544
if 
  12 > 88@
goto_if_false @MUSIC5_14605
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_14591
remove_blip 66@(88@,14i)

:MUSIC5_14591
88@ += 1
goto @MUSIC5_14612

:MUSIC5_14605
88@ = 0

:MUSIC5_14612
if 
  80@ == 4
goto_if_false @MUSIC5_15767
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_15424
if 
  81@ == 0
goto_if_false @MUSIC5_15424
if 
  TIMERA > 2000
goto_if_false @MUSIC5_15424
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC5_14701
if 
  get_fading_status 
goto_if_false @MUSIC5_14725
wait 0
goto @MUSIC5_14701

:MUSIC5_14725
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_14757
goto @MUSIC5_15844

:MUSIC5_14757
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2484.2 {y} -1666.2 {z} 12.3
set_char_heading $scplayer {heading} 336.7
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2486.7 {y} -1650.1 {z} 12.3 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} 2486.7 {y} -1646.0 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task $scplayer {sequence} 144@
clear_sequence_task 144@
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_15037
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 2487.2 {y} -1666.1 {z} 12.3
set_char_heading $sweet {heading} 4.3
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2486.7 {y} -1645.1 {z} 12.3 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 178.8
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15037
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_15088
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 2488.8999 {y} -1649.0 {z} 12.5
set_char_heading 63@ {heading} 177.2

:MUSIC5_15088
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_15185
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 2484.2 {y} -1669.1 {z} 12.3
set_char_heading 36@ {heading} 177.2
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2488.3999 {y} -1650.8 {z} 12.3 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15185
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_15282
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} 2485.2 {y} -1669.1 {z} 12.3
set_char_heading 37@ {heading} 177.2
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2489.3999 {y} -1650.7 {z} 12.3 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15282
105@ = 3
107@ = 0
gosub @MUSIC5_17649
set_fixed_camera_position 2480.7 {y} -1660.5 {z} 13.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.7 {y} -1656.6 {z} 17.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC5_15361
if 
  get_fading_status 
goto_if_false @MUSIC5_15385
wait 0
goto @MUSIC5_15361

:MUSIC5_15385
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_15417
goto @MUSIC5_15844

:MUSIC5_15417
81@ = 1

:MUSIC5_15424
if 
  81@ == 1
goto_if_false @MUSIC5_15518
if 
  107@ == 4
goto_if_false @MUSIC5_15518
set_fixed_camera_position 2471.554 {y} -1656.167 {z} 18.379 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.425 {y} -1655.676 {z} 18.402 {switchStyle} SwitchType.JumpCut
81@ = 2

:MUSIC5_15518
if 
  81@ == 2
goto_if_false @MUSIC5_15568
if 
  105@ == 0
goto_if_false @MUSIC5_15568
TIMERA = 0
81@ = 3

:MUSIC5_15568
if 
  81@ == 3
goto_if_false @MUSIC5_15767
if 
  TIMERA > 1000
goto_if_false @MUSIC5_15767
do_fade 2500 {direction} Fade.Out

:MUSIC5_15612
if 
  get_fading_status 
goto_if_false @MUSIC5_15636
wait 0
goto @MUSIC5_15612

:MUSIC5_15636
100@, 101@ = get_time_of_day 
100@ += 6
set_time_of_day 100@ {minutes} 101@
delete_char $sweet
unload_special_character 1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2486.6001 {y} -1649.9 {z} 12.5
set_char_heading $scplayer {heading} 177.8
shut_all_chars_up False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
do_fade 2500 {direction} Fade.In

:MUSIC5_15736
if 
  get_fading_status 
goto_if_false @MUSIC5_15760
wait 0
goto @MUSIC5_15736

:MUSIC5_15760
goto @MUSIC5_15862

:MUSIC5_15767
if 
  not locate_char_any_means_2d $scplayer {x} 2484.8999 {y} -1663.5 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @MUSIC5_15830
clear_prints 
print_now 'STP4_06' {time} 7000 {flag} 1
goto @MUSIC5_15844

:MUSIC5_15830
gosub @MUSIC5_18109
goto @MUSIC5_3036

:MUSIC5_15844
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC5_15862
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_15946
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strap2X {y} $strap2Y {z} $strap2Z {sprite} $strap_blip_icon
do_fade 500 {direction} Fade.In
print_now 'STP4_07' {time} 11000 {flag} 1
$flag_strap_mission_counter += 1
$strap4_mission_passed_once_flag = 1
goto @MUSIC5_16011

:MUSIC5_15946
set_int_stat StatId.PassedStrap4 {value} 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'STRAP_4'
player_made_progress 1
$flag_strap_mission_counter += 1
remove_blip $strap_contact_blip

:MUSIC5_16011
return 

:MUSIC5_16013
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC5_16031
restore_camera_jumpcut 

:MUSIC5_16031
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_16076
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 34@ {state} False

:MUSIC5_16076
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_16121
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 35@ {state} False

:MUSIC5_16121
if 
  not is_car_dead 61@
goto_if_false @MUSIC5_16166
lock_car_doors 61@ {lockStatus} CarLock.Unlocked
set_car_proofs 61@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 61@ {state} False

:MUSIC5_16166
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
remove_blip 78@
remove_blip 79@
$LA_hub_activity = 0
if 
  not is_char_dead $scplayer
goto_if_false @MUSIC5_16266
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC5_16266
shut_all_chars_up False
remove_char_elegantly $sweet
remove_char_elegantly $ryder
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 372
unload_special_character 1
unload_special_character 2
switch_car_generator $gen_car5 {amount} 101
switch_car_generator $gen_car6 {amount} 101
switch_car_generator $gen_car9 {amount} 101
remove_pickup 62@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:MUSIC5_16375
if 
  is_char_dead $sweet
goto_if_false @MUSIC5_16416
clear_prints 
print_now 'STP4_05' {time} 7000 {flag} 1
83@ = 1

:MUSIC5_16416
return 

:MUSIC5_16418
98@ = generate_random_int_in_range 1 {max} 37
if 
  98@ == 1
goto_if_false @MUSIC5_16460
custom_plate_for_next_car 99@ {text} "GOT_M00_"

:MUSIC5_16460
if 
  98@ == 2
goto_if_false @MUSIC5_16493
custom_plate_for_next_car 99@ {text} "M00TV_4U"

:MUSIC5_16493
if 
  98@ == 3
goto_if_false @MUSIC5_16526
custom_plate_for_next_car 99@ {text} "MATHEW_2"

:MUSIC5_16526
if 
  98@ == 4
goto_if_false @MUSIC5_16559
custom_plate_for_next_car 99@ {text} "D4_DEW0R"

:MUSIC5_16559
if 
  98@ == 5
goto_if_false @MUSIC5_16592
custom_plate_for_next_car 99@ {text} "D0DE_777"

:MUSIC5_16592
if 
  98@ == 6
goto_if_false @MUSIC5_16625
custom_plate_for_next_car 99@ {text} "DAM0_666"

:MUSIC5_16625
if 
  98@ == 7
goto_if_false @MUSIC5_16658
custom_plate_for_next_car 99@ {text} "C0NEY_88"

:MUSIC5_16658
if 
  98@ == 8
goto_if_false @MUSIC5_16691
custom_plate_for_next_car 99@ {text} "PRE4CHER"

:MUSIC5_16691
if 
  98@ == 9
goto_if_false @MUSIC5_16724
custom_plate_for_next_car 99@ {text} "DBP_4NDY"

:MUSIC5_16724
if 
  98@ == 10
goto_if_false @MUSIC5_16757
custom_plate_for_next_car 99@ {text} "EV1L_SLY"

:MUSIC5_16757
if 
  98@ == 11
goto_if_false @MUSIC5_16790
custom_plate_for_next_car 99@ {text} "N1_R4V3N"

:MUSIC5_16790
if 
  98@ == 12
goto_if_false @MUSIC5_16823
custom_plate_for_next_car 99@ {text} "D1VX_Z00"

:MUSIC5_16823
if 
  98@ == 13
goto_if_false @MUSIC5_16855
custom_plate_for_next_car 99@ {text} "MR_B3NN"

:MUSIC5_16855
if 
  98@ == 14
goto_if_false @MUSIC5_16888
custom_plate_for_next_car 99@ {text} "R3D_R4SP"

:MUSIC5_16888
if 
  98@ == 15
goto_if_false @MUSIC5_16921
custom_plate_for_next_car 99@ {text} "LA_B0MBA"

:MUSIC5_16921
if 
  98@ == 16
goto_if_false @MUSIC5_16954
custom_plate_for_next_car 99@ {text} "L3337_0G"

:MUSIC5_16954
if 
  98@ == 17
goto_if_false @MUSIC5_16987
custom_plate_for_next_car 99@ {text} "BUDD4H_X"

:MUSIC5_16987
if 
  98@ == 18
goto_if_false @MUSIC5_17020
custom_plate_for_next_car 99@ {text} "T3H_BUCK"

:MUSIC5_17020
if 
  98@ == 19
goto_if_false @MUSIC5_17053
custom_plate_for_next_car 99@ {text} "CHUNKY_1"

:MUSIC5_17053
if 
  98@ == 20
goto_if_false @MUSIC5_17086
custom_plate_for_next_car 99@ {text} "EV1L_BNZ"

:MUSIC5_17086
if 
  98@ == 21
goto_if_false @MUSIC5_17119
custom_plate_for_next_car 99@ {text} "S4ND_M4N"

:MUSIC5_17119
if 
  98@ == 22
goto_if_false @MUSIC5_17152
custom_plate_for_next_car 99@ {text} "RKK_DBP1"

:MUSIC5_17152
if 
  98@ == 23
goto_if_false @MUSIC5_17185
custom_plate_for_next_car 99@ {text} "RE1_K0KU"

:MUSIC5_17185
if 
  98@ == 24
goto_if_false @MUSIC5_17218
custom_plate_for_next_car 99@ {text} "S3XY_JUD"

:MUSIC5_17218
if 
  98@ == 25
goto_if_false @MUSIC5_17251
custom_plate_for_next_car 99@ {text} "SUNRA_93"

:MUSIC5_17251
if 
  98@ == 26
goto_if_false @MUSIC5_17284
custom_plate_for_next_car 99@ {text} "UG_FUX69"

:MUSIC5_17284
if 
  98@ == 27
goto_if_false @MUSIC5_17317
custom_plate_for_next_car 99@ {text} "LI0N_CUM"

:MUSIC5_17317
if 
  98@ == 28
goto_if_false @MUSIC5_17350
custom_plate_for_next_car 99@ {text} "RKK_PWND"

:MUSIC5_17350
if 
  98@ == 29
goto_if_false @MUSIC5_17383
custom_plate_for_next_car 99@ {text} "HAZE_B0B"

:MUSIC5_17383
if 
  98@ == 30
goto_if_false @MUSIC5_17416
custom_plate_for_next_car 99@ {text} "T3H_FLUF"

:MUSIC5_17416
if 
  98@ == 31
goto_if_false @MUSIC5_17449
custom_plate_for_next_car 99@ {text} "BM_4NDY_"

:MUSIC5_17449
if 
  98@ == 32
goto_if_false @MUSIC5_17482
custom_plate_for_next_car 99@ {text} "BM_D34N_"

:MUSIC5_17482
if 
  98@ == 33
goto_if_false @MUSIC5_17515
custom_plate_for_next_car 99@ {text} "BM_L4C3Y"

:MUSIC5_17515
if 
  98@ == 34
goto_if_false @MUSIC5_17548
custom_plate_for_next_car 99@ {text} "BM_D3V__"

:MUSIC5_17548
if 
  98@ == 35
goto_if_false @MUSIC5_17581
custom_plate_for_next_car 99@ {text} "NU_SK00L"

:MUSIC5_17581
if 
  98@ == 36
goto_if_false @MUSIC5_17614
custom_plate_for_next_car 99@ {text} "G4L_AVET"

:MUSIC5_17614
if 
  98@ == 37
goto_if_false @MUSIC5_17647
custom_plate_for_next_car 99@ {text} "M0J0_J0J"

:MUSIC5_17647
return 

:MUSIC5_17649
if 
  105@ == 1
goto_if_false @MUSIC5_17741
set_lvar_text_label 109@s = 'LOC4_CA'
set_lvar_text_label 111@s = 'LOC4_CB'
set_lvar_text_label 113@s = 'LOC4_CC'
set_lvar_int_to_constant 127@ = 13200
set_lvar_int_to_constant 128@ = 13201
set_lvar_int_to_constant 129@ = 13202
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17741
if 
  105@ == 2
goto_if_false @MUSIC5_17921
set_lvar_text_label 109@s = 'LOC4_AA'
set_lvar_text_label 111@s = 'LOC4_AB'
set_lvar_text_label 113@s = 'LOC4_AC'
set_lvar_text_label 115@s = 'LOC4_AE'
set_lvar_text_label 119@s = 'LOC4_AF'
set_lvar_text_label 121@s = 'LOC4_AG'
set_lvar_text_label 123@s = 'LOC4_AH'
set_lvar_int_to_constant 127@ = 13203
set_lvar_int_to_constant 128@ = 13204
set_lvar_int_to_constant 129@ = 13205
set_lvar_int_to_constant 130@ = 13207
set_lvar_int_to_constant 132@ = 13208
set_lvar_int_to_constant 133@ = 13209
set_lvar_int_to_constant 134@ = 13210
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17921
if 
  105@ == 3
goto_if_false @MUSIC5_18078
set_lvar_text_label 109@s = 'LOC4_BA'
set_lvar_text_label 111@s = 'LOC4_BB'
set_lvar_text_label 113@s = 'LOC4_BC'
set_lvar_text_label 115@s = 'LOC4_BD'
set_lvar_text_label 117@s = 'LOC4_BE'
set_lvar_text_label 119@s = 'LOC4_BG'
set_lvar_int_to_constant 127@ = 13211
set_lvar_int_to_constant 128@ = 13215
set_lvar_int_to_constant 129@ = 13212
set_lvar_int_to_constant 130@ = 13216
set_lvar_int_to_constant 131@ = 13213
set_lvar_int_to_constant 132@ = 13217
136@ = 6

:MUSIC5_18078
set_lvar_int_to_lvar_int 139@ = 107@
137@ = 0
138@ = 0
140@ = 1
return 

:MUSIC5_18109
if 
  105@ == 2
goto_if_false @MUSIC5_18235
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18228
gosub @MUSIC5_18316
gosub @MUSIC5_18423
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_18190
gosub @MUSIC5_18577
goto @MUSIC5_18221

:MUSIC5_18190
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 109@(107@,9s)
137@ = 0
138@ = 0

:MUSIC5_18221
goto @MUSIC5_18235

:MUSIC5_18228
105@ = 0

:MUSIC5_18235
if or
  105@ == 1
  105@ == 3
goto_if_false @MUSIC5_18314
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18307
gosub @MUSIC5_18316
gosub @MUSIC5_18423
gosub @MUSIC5_18577
goto @MUSIC5_18314

:MUSIC5_18307
105@ = 0

:MUSIC5_18314
return 

:MUSIC5_18316
if 
  is_int_lvar_greater_than_int_lvar 136@ > 139@
goto_if_false @MUSIC5_18421
if 
  137@ == 0
goto_if_false @MUSIC5_18378
load_mission_audio MissionAudioSlot.Slot1 {audioId} 127@(139@,9i)
139@ += 1
137@ = 1

:MUSIC5_18378
if 
  138@ == 0
goto_if_false @MUSIC5_18421
load_mission_audio MissionAudioSlot.Slot2 {audioId} 127@(139@,9i)
139@ += 1
138@ = 1

:MUSIC5_18421
return 

:MUSIC5_18423
if 
  140@ == 1
goto_if_false @MUSIC5_18499
if 
  137@ == 1
goto_if_false @MUSIC5_18499
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC5_18499
play_mission_audio MissionAudioSlot.Slot1
print_now 109@(107@,9s) {time} 4500 {flag} 1
137@ = 2

:MUSIC5_18499
if 
  140@ == 2
goto_if_false @MUSIC5_18575
if 
  138@ == 1
goto_if_false @MUSIC5_18575
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC5_18575
play_mission_audio MissionAudioSlot.Slot2
print_now 109@(107@,9s) {time} 4500 {flag} 1
138@ = 2

:MUSIC5_18575
return 

:MUSIC5_18577
if 
  137@ == 2
goto_if_false @MUSIC5_18640
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC5_18640
clear_this_print 109@(107@,9s)
107@ += 1
140@ = 2
137@ = 0

:MUSIC5_18640
if 
  138@ == 2
goto_if_false @MUSIC5_18703
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC5_18703
clear_this_print 109@(107@,9s)
107@ += 1
140@ = 1
138@ = 0

:MUSIC5_18703
return 

//-------------Mission 35---------------
// Originally: Race Tournament / 8-track / Dirt Track

:CPRACE
gosub @CPRACE_112
if 
  has_deatharrest_been_executed 
goto_if_false @CPRACE_43
print_now 'RACES25' {time} 5000 {flag} 1
goto @CPRACE_103

:CPRACE_43
if or
  53@ == 0
  53@ == 3
goto_if_false @CPRACE_103
do_fade 2000 {direction} Fade.Out
set_deatharrest_state 0

:CPRACE_79
if 
  get_fading_status 
goto_if_false @CPRACE_103
wait 0
goto @CPRACE_79

:CPRACE_103
gosub @CPRACE_51271
terminate_this_script 

:CPRACE_112
$onmission = 1
$disable_mod_garage = 1
script_name 'CPRACE'
wait 0
disable_all_entry_exits True
load_mission_text 'RACETOR'
if 
  $show_race_selection == 1
goto_if_false @CPRACE_372
set_lvar_int_to_constant 49@ = 1
53@ = 0
if 
  $menu_mode == 0
goto_if_false @CPRACE_220
50@ = 0
51@ = 8

:CPRACE_220
if 
  $menu_mode == 1
goto_if_false @CPRACE_252
50@ = 9
51@ = 14

:CPRACE_252
if 
  $menu_mode == 2
goto_if_false @CPRACE_284
50@ = 15
51@ = 18

:CPRACE_284
if 
  $menu_mode == 3
goto_if_false @CPRACE_316
50@ = 19
51@ = 24

:CPRACE_316
if or
  is_int_lvar_greater_than_int_var 50@ > $race_selection
  is_int_var_greater_than_int_lvar $race_selection > 51@
goto_if_false @CPRACE_351
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_351
52@ = 0
gosub @CPRACE_46973
goto @CPRACE_425

:CPRACE_372
set_lvar_int_to_constant 49@ = 2
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_418
53@ = 3
goto @CPRACE_425

:CPRACE_418
53@ = 2

:CPRACE_425
if 
  is_int_lvar_equal_to_constant 49@ == 10
goto_if_false @CPRACE_1239
54@ = add_blip_for_coord $x {y} $y {z} $z
449@ = create_checkpoint 205@ {x} $x {y} $y {z} $z {pointX} $x {pointY} $y {pointZ} $z {radius} 6.0

:CPRACE_488
363@(253@,16f) += 3.0
get_ground_z_for_3d_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {var_groundZ} 363@(253@,16f)
if 
  0.0 > 363@(253@,16f)
goto_if_false @CPRACE_591
if 
  is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_591
363@(253@,16f) = 0.0

:CPRACE_591
create_car 716@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {var_handle} 379@(253@,16i)
set_car_heading 379@(253@,16i) {heading} $heading
set_vehicle_area_visible 379@(253@,16i) {interiorId} 221@
lock_car_doors 379@(253@,16i) {lockStatus} CarLock.LockoutPlayerOnly
if 
  $race_selection == 25
goto_if_false @CPRACE_693
set_car_health 379@(253@,16i) {health} 2200

:CPRACE_693
if 
  $race_selection == 26
goto_if_false @CPRACE_742
set_car_health 379@(253@,16i) {health} 10000
set_car_proofs 379@(253@,16i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:CPRACE_742
if 
  221@ == 0
goto_if_false @CPRACE_933
set_car_proofs 379@(253@,16i) {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_strong 379@(253@,16i) {state} True
set_car_only_damaged_by_player 379@(253@,16i) {state} True
if 
  is_int_lvar_equal_to_constant 49@ == 6
goto_if_false @CPRACE_915

:CPRACE_819
if 
  is_car_waiting_for_world_collision 379@(253@,16i)
goto_if_false @CPRACE_915
wait 0
if 
  is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_908
if 
  $show_race_selection == 0
goto_if_false @CPRACE_906
if 
  $race_selection == 0
goto_if_false @CPRACE_906
$failed_cesar_race = 1

:CPRACE_906
return 

:CPRACE_908
goto @CPRACE_819

:CPRACE_915
set_load_collision_for_car_flag 379@(253@,16i) {state} False
goto @CPRACE_944

:CPRACE_933
set_load_collision_for_car_flag 379@(253@,16i) {state} True

:CPRACE_944
if 
  209@ <> -1
goto_if_false @CPRACE_985
change_car_colour 379@(253@,16i) {color1} 209@(253@,6i) {color2} 215@(253@,6i)

:CPRACE_985
if 
  is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_1037
set_car_straight_line_distance 379@(253@,16i) {distance} 40
set_boat_cruise_speed 379@(253@,16i) {maxSpeed} 50.0
goto @CPRACE_1237

:CPRACE_1037
if 
  is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_1089
freeze_car_position 379@(253@,16i) {state} True
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 10.0
goto @CPRACE_1237

:CPRACE_1089
if 
  is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_1141
freeze_car_position 379@(253@,16i) {state} True
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 10.0
goto @CPRACE_1237

:CPRACE_1141
set_car_watertight 379@(253@,16i) {state} True
set_can_burst_car_tyres 379@(253@,16i) {state} False
if 
  221@ == 0
goto_if_false @CPRACE_1192
set_upsidedown_car_not_damaged 379@(253@,16i) {state} True

:CPRACE_1192
set_car_straight_line_distance 379@(253@,16i) {distance} 5
set_car_driving_style 379@(253@,16i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 379@(253@,16i) {maxSpeed} 50.0
car_set_idle 379@(253@,16i)

:CPRACE_1237
return 

:CPRACE_1239
$tripskip_s2flag = 70.3919
$6916 = 154.6278
$6930 = 0.6617
$6944 = 2.5845
$y_hud_pos = 203.8119
$x_hud_scale = 0.7208
$y_hud_scale = 2.5114
$6918 = 228.9919
$6932 = 0.7377
$6946 = 2.2364
$6919 = 279.6367
$6921 = 333.4643
$6922 = 358.6443
$6923 = 25.18
55@ = 2357.239
56@ = 1321.193
57@ = 3300.968
58@ = 3646.7991
59@ = 3880.677
60@ = 4216.2729
61@ = 8410.458
62@ = 4817.6362
63@ = 4817.6362
64@ = 3203.229
65@ = 3265.0281
66@ = 1901.285
67@ = 2644.2971
68@ = 8372.6787
69@ = 10760.5
70@ = 7806.103
71@ = 4307.6499
72@ = 4696.6611
73@ = 5960.2798
74@ = 6826.647
75@ = 12299.1396
76@ = 17384.6191
77@ = 4922.4722
78@ = 4398.5
79@ = 4970.7422
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
set_lvar_text_label 85@s = 'RACE00'
set_lvar_text_label 87@s = 'RACE01'
set_lvar_text_label 89@s = 'RACE02'
set_lvar_text_label 91@s = 'RACE03'
set_lvar_text_label 93@s = 'RACE04'
set_lvar_text_label 95@s = 'RACE05'
set_lvar_text_label 97@s = 'RACE06'
set_lvar_text_label 99@s = 'RACE07'
set_lvar_text_label 101@s = 'RACE08'
set_lvar_text_label 103@s = 'RACE09'
set_lvar_text_label 105@s = 'RACE10'
set_lvar_text_label 107@s = 'RACE11'
set_lvar_text_label 109@s = 'RACE12'
set_lvar_text_label 111@s = 'RACE13'
set_lvar_text_label 113@s = 'RACE14'
set_lvar_text_label 115@s = 'RACE15'
set_lvar_text_label 117@s = 'RACE16'
set_lvar_text_label 119@s = 'RACE17'
set_lvar_text_label 121@s = 'RACE18'
set_lvar_text_label 123@s = 'RACE19'
set_lvar_text_label 125@s = 'RACE20'
set_lvar_text_label 127@s = 'RACE21'
set_lvar_text_label 129@s = 'RACE22'
set_lvar_text_label 131@s = 'RACE23'
set_lvar_text_label 133@s = 'RACE24'
set_lvar_int_to_constant 145@ = 259
set_lvar_int_to_constant 146@ = 261
set_lvar_int_to_constant 147@ = 263
set_lvar_int_to_constant 148@ = 265
set_lvar_int_to_constant 149@ = 267
set_lvar_int_to_constant 150@ = 269
set_lvar_int_to_constant 151@ = 271
set_lvar_int_to_constant 152@ = 273
set_lvar_int_to_constant 153@ = 275
set_lvar_int_to_constant 154@ = 277
set_lvar_int_to_constant 155@ = 279
set_lvar_int_to_constant 156@ = 281
set_lvar_int_to_constant 157@ = 283
set_lvar_int_to_constant 158@ = 285
set_lvar_int_to_constant 159@ = 287
set_lvar_int_to_constant 160@ = 289
set_lvar_int_to_constant 161@ = 291
set_lvar_int_to_constant 162@ = 293
set_lvar_int_to_constant 163@ = 295
set_lvar_int_to_constant 164@ = 296
set_lvar_int_to_constant 165@ = 297
set_lvar_int_to_constant 166@ = 298
set_lvar_int_to_constant 167@ = 299
set_lvar_int_to_constant 168@ = 300
set_lvar_int_to_constant 169@ = 301
set_lvar_int_to_constant 170@ = 48
set_lvar_int_to_constant 171@ = 220
set_lvar_int_to_constant 175@ = 258
set_lvar_int_to_constant 176@ = 260
set_lvar_int_to_constant 177@ = 262
set_lvar_int_to_constant 178@ = 264
set_lvar_int_to_constant 179@ = 266
set_lvar_int_to_constant 180@ = 268
set_lvar_int_to_constant 181@ = 270
set_lvar_int_to_constant 182@ = 272
set_lvar_int_to_constant 183@ = 274
set_lvar_int_to_constant 184@ = 276
set_lvar_int_to_constant 185@ = 278
set_lvar_int_to_constant 186@ = 280
set_lvar_int_to_constant 187@ = 282
set_lvar_int_to_constant 188@ = 284
set_lvar_int_to_constant 189@ = 286
set_lvar_int_to_constant 190@ = 288
set_lvar_int_to_constant 191@ = 290
set_lvar_int_to_constant 192@ = 292
set_lvar_int_to_constant 193@ = 294
set_lvar_int_to_constant 200@ = 172
set_lvar_int_to_constant 201@ = 221
$x, $y, $z = get_char_coordinates $scplayer
set_respawn_point_for_duration_of_mission $x {y} $y {z} $z
set_lvar_int_to_constant 205@ = 0
use_text_commands True
set_message_formatting True {margin} 355 {width} 370
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
display_radar False
206@ = 0
207@ = 0
208@ = 25
209@ = -1
221@ = 0
222@ = 0
223@ = 0
224@ = 1
225@ = 0
226@ = 0
227@ = 0
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @CPRACE_2627
$race_debug = 0
$6958 = 0
view_integer_variable $6958 {_p2} "COORDS"
set_player_control $player1 {state} True
set_lvar_int_to_constant 49@ = 0
228@ = 1
goto @CPRACE_2634

:CPRACE_2627
$race_debug = -1

:CPRACE_2634
wait 0
$game_timer = get_game_timer 
if 
  13 > 49@
goto_if_false @CPRACE_2668
229@ = 0

:CPRACE_2668
253@ = 0
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CPRACE_20804 {caseNum1} 0 {caseLabel1} @CPRACE_2803 {caseNum2} 1 {caseLabel2} @CPRACE_5835 {caseNum3} 2 {caseLabel3} @CPRACE_7390 {caseNum4} 3 {caseLabel4} @CPRACE_7576 {caseNum5} 4 {caseLabel5} @CPRACE_7923 {caseNum6} 5 {caseLabel6} @CPRACE_8659 {caseNum7} 6 {caseLabel7} @CPRACE_8771
switch_continued 7 {caseLabel1} @CPRACE_11219 {caseNum2} 8 {caseLabel2} @CPRACE_11296 {caseNum3} 9 {caseLabel3} @CPRACE_11381 {caseNum4} 10 {caseLabel4} @CPRACE_11466 {caseNum5} 11 {caseLabel5} @CPRACE_12350 {caseNum6} 12 {caseLabel6} @CPRACE_12350 {caseNum7} 13 {caseLabel7} @CPRACE_19580 {caseNum8} 14 {caseLabel8} @CPRACE_20087 {caseNum9} -1 {caseLabel9} @CPRACE_20804

:CPRACE_2803
if 
  $race_debug > -1
goto_if_false @CPRACE_4451
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @CPRACE_4444
if 
  228@ == 0
goto_if_false @CPRACE_4437
if 
  $race_debug == 0
goto_if_false @CPRACE_2909
$6958 += 1
print_now 'CHEATON' {time} 800 {flag} 1
$race_debug = 1
goto @CPRACE_4430

:CPRACE_2909
if 
is_ps2_keyboard_key_pressed 102
goto_if_false @CPRACE_4400
224@ = 1
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TOTAL_LAPS = 1"
256@ = 6
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TOTAL_RACERS = 6"
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
save_newline_to_debug_file 
252@ = 0

:CPRACE_3257
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3557
save_newline_to_debug_file 
save_string_to_debug_file "RACER_MODEL["
save_int_to_debug_file 252@
save_string_to_debug_file "] = MALE01"
252@ += 1
goto @CPRACE_3257

:CPRACE_3557
set_lvar_int_to_lvar_int 716@ = 230@
set_lvar_int_to_lvar_int 717@ = 230@
set_lvar_int_to_lvar_int 718@ = 230@
set_lvar_int_to_lvar_int 719@ = 230@
set_lvar_int_to_lvar_int 720@ = 230@
set_lvar_int_to_lvar_int 721@ = 230@
save_newline_to_debug_file 
252@ = 0

:CPRACE_3614
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3919
save_newline_to_debug_file 
save_string_to_debug_file "RACERS_CAR_MODEL["
save_int_to_debug_file 252@
save_string_to_debug_file "] = "
save_int_to_debug_file 230@
252@ += 1
goto @CPRACE_3614

:CPRACE_3919
set_var_float_to_lvar_float $x = 454@
set_var_float_to_lvar_float $y = 536@
set_var_float_to_lvar_float $z = 618@
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_X[0] = "
save_float_to_debug_file $x
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Y[0] = "
save_float_to_debug_file $y
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Z[0] = "
save_float_to_debug_file $z
print_now 'LABEL' {time} 1000 {flag} 1
49@ = 3
$6958 = 0
$race_debug = 0
goto @CPRACE_4430

:CPRACE_4400
$6958 = 0
print_now 'CHEATOF' {time} 800 {flag} 1
$race_debug = 0

:CPRACE_4430
228@ = 1

:CPRACE_4437
goto @CPRACE_4451

:CPRACE_4444
228@ = 0

:CPRACE_4451
if 
  $race_debug == 1
goto_if_false @CPRACE_5828
if 
  is_player_playing $player1
goto_if_false @CPRACE_5828
if 
  $6958 == 0
goto_if_false @CPRACE_4566
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @CPRACE_4559
if 
  235@ == 0
goto_if_false @CPRACE_4552
$6958 += 1
235@ = 1

:CPRACE_4552
goto @CPRACE_4566

:CPRACE_4559
235@ = 0

:CPRACE_4566
if 
  $6958 > 0
goto_if_false @CPRACE_5828
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_5828
443@ = store_car_char_is_in_no_save $scplayer
230@ = get_car_model 443@
if or
  is_this_model_a_plane 230@
  is_this_model_a_heli 230@
goto_if_false @CPRACE_4655
$x, $y, $z = get_debug_camera_coordinates 
goto @CPRACE_4669

:CPRACE_4655
$x, $y, $z = get_char_coordinates $scplayer

:CPRACE_4669
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 231@ {toY} 232@ {toZ} 233@
cset_lvar_int_to_var_float 234@ =# $distance
gosub @CPRACE_47593
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.8 {heightScale} 2.0
display_text_with_number 30.0 {offsetTop} 145.0 {key} 'RACES00' {num} 234@
if or
  $distance > 200.0
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @CPRACE_5821
if 
  235@ == 0
goto_if_false @CPRACE_5814
print_now 'TEXXYZ4' {time} 800 {flag} 1
$6958 -= 1
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_X["
save_int_to_debug_file $6958
save_string_to_debug_file "] = "
save_float_to_debug_file $x
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Y["
save_int_to_debug_file $6958
save_string_to_debug_file "] = "
save_float_to_debug_file $y
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Z["
save_int_to_debug_file $6958
save_string_to_debug_file "] = "
if 
  is_this_model_a_boat 230@
goto_if_false @CPRACE_5658
goto @CPRACE_5718

:CPRACE_5658
if 
  is_this_model_a_heli 230@
goto_if_false @CPRACE_5681
goto @CPRACE_5718

:CPRACE_5681
if 
  is_this_model_a_plane 230@
goto_if_false @CPRACE_5704
goto @CPRACE_5718

:CPRACE_5704
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z

:CPRACE_5718
save_float_to_debug_file $z
save_newline_to_debug_file 
set_lvar_float_to_var_float 454@($6958,82f) = $x
set_lvar_float_to_var_float 536@($6958,82f) = $y
set_lvar_float_to_var_float 618@($6958,82f) = $z
set_lvar_float_to_var_float 231@ = $x
set_lvar_float_to_var_float 232@ = $y
set_lvar_float_to_var_float 233@ = $z
$6958 += 1
set_lvar_int_to_var_int 250@ = $6958
$6958 += 1
235@ = 1

:CPRACE_5814
goto @CPRACE_5828

:CPRACE_5821
235@ = 0

:CPRACE_5828
goto @CPRACE_20804

:CPRACE_5835
display_hud False
display_radar False
$current_Language = get_current_language 
if 
  not is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_5878
set_help_message_box_size 250
goto @CPRACE_5883

:CPRACE_5878
set_help_message_box_size 200

:CPRACE_5883
print_help_forever 'RACES33'
236@, 237@, 238@, 239@ = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > 237@
  236@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @CPRACE_6027
if 
  240@ == 0
goto_if_false @CPRACE_6020
if 
  is_int_lvar_greater_than_int_var 51@ > $race_selection
goto_if_false @CPRACE_5998
$race_selection += 1
goto @CPRACE_6006

:CPRACE_5998
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_6006
gosub @CPRACE_46973
240@ = 1

:CPRACE_6020
goto @CPRACE_6034

:CPRACE_6027
240@ = 0

:CPRACE_6034
if or
  237@ > 100
  -100 > 236@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @CPRACE_6151
if 
  241@ == 0
goto_if_false @CPRACE_6144
if 
  is_int_var_greater_than_int_lvar $race_selection > 50@
goto_if_false @CPRACE_6122
$race_selection -= 1
goto @CPRACE_6130

:CPRACE_6122
set_var_int_to_lvar_int $race_selection = 51@

:CPRACE_6130
gosub @CPRACE_46973
241@ = 1

:CPRACE_6144
goto @CPRACE_6158

:CPRACE_6151
241@ = 0

:CPRACE_6158
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CPRACE_6228
if 
  242@ == 0
goto_if_false @CPRACE_6221
remove_texture_dictionary 
display_hud True
display_radar True
clear_help 
53@ = 1
return 
242@ = 1

:CPRACE_6221
goto @CPRACE_6235

:CPRACE_6228
242@ = 0

:CPRACE_6235
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CPRACE_6316
if 
  243@ == 0
goto_if_false @CPRACE_6309
if 
  $race_selection > -1
goto_if_false @CPRACE_6302
do_fade 500 {direction} Fade.Out
49@ = 2

:CPRACE_6302
243@ = 1

:CPRACE_6309
goto @CPRACE_6323

:CPRACE_6316
243@ = 0

:CPRACE_6323
draw_window 53.0 {leftTopY} 130.0 {rightBottomX} 597.0 {rightBottomY} 410.0 {header} 'RACES_0' {zIndex} 3
gosub @CPRACE_47593
set_text_wrapx 320.0
set_text_scale $6930 {heightScale} $6944
display_text $tripskip_s2flag {offsetTop} $6916 {key} 85@($race_selection,30s)
gosub @CPRACE_47593
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
display_text $tripskip_s2flag {offsetTop} $y_hud_pos {key} 'RACES36'
gosub @CPRACE_47593
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6932 {heightScale} $6946
set_var_float_to_var_float $6918 = $y_hud_pos
add_float_var_to_float_var $6918 += $6923
if 
  are_measurements_in_metres 
goto_if_false @CPRACE_6623
set_lvar_float_to_lvar_float 244@ = 55@($race_selection,30f)
244@ /= 1000.0
cset_lvar_int_to_lvar_float 246@ =# 244@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 244@
sub_float_lvar_from_float_lvar 245@ -= 47@
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6593
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6918 {key} 'RACES35' {num1} 246@ {num2} 247@
goto @CPRACE_6616

:CPRACE_6593
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6918 {key} 'RACES34' {num1} 246@ {num2} 247@

:CPRACE_6616
goto @CPRACE_6766

:CPRACE_6623
set_lvar_float_to_lvar_float 248@ = 55@($race_selection,30f)
248@ /= 1609.0
cset_lvar_int_to_lvar_float 246@ =# 248@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 248@
sub_float_lvar_from_float_lvar 245@ -= 47@
245@ *= 100.0
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6743
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6918 {key} 'RACES47' {num1} 246@ {num2} 247@
goto @CPRACE_6766

:CPRACE_6743
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6918 {key} 'RACES46' {num1} 246@ {num2} 247@

:CPRACE_6766
gosub @CPRACE_47593
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
display_text $tripskip_s2flag {offsetTop} $6919 {key} 'RACES38'
gosub @CPRACE_47593
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6932 {heightScale} $6946
set_var_float_to_var_float $6920 = $6919
add_float_var_to_float_var $6920 += $6923
if 
  $cprace_best_times($race_selection,30i) == 999999999
goto_if_false @CPRACE_6892
display_text $tripskip_s2flag {offsetTop} $6920 {key} 'RACES45'
goto @CPRACE_7017

:CPRACE_6892
set_lvar_int_to_var_int 452@ = $cprace_best_times($race_selection,30i)
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_var_int 453@ = $cprace_best_times($race_selection,30i)
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_6994
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6920 {key} 'RACES40' {num1} 452@ {num2} 453@
goto @CPRACE_7017

:CPRACE_6994
display_text_with_2_numbers $tripskip_s2flag {offsetTop} $6920 {key} 'RACES39' {num1} 452@ {num2} 453@

:CPRACE_7017
if 
  $menu_mode <> 3
goto_if_false @CPRACE_7331
gosub @CPRACE_47593
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
display_text $tripskip_s2flag {offsetTop} $6921 {key} 'RACES37'
gosub @CPRACE_47593
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6932 {heightScale} $6946
set_var_float_to_var_float $6922 = $6921
add_float_var_to_float_var $6922 += $6923
if 
  $cprace_best_position($race_selection,30i) == 1
goto_if_false @CPRACE_7158
display_text $tripskip_s2flag {offsetTop} $6922 {key} 'RACES41'
goto @CPRACE_7331

:CPRACE_7158
if 
  $cprace_best_position($race_selection,30i) == 2
goto_if_false @CPRACE_7204
display_text $tripskip_s2flag {offsetTop} $6922 {key} 'RACES42'
goto @CPRACE_7331

:CPRACE_7204
if 
  $cprace_best_position($race_selection,30i) == 3
goto_if_false @CPRACE_7250
display_text $tripskip_s2flag {offsetTop} $6922 {key} 'RACES43'
goto @CPRACE_7331

:CPRACE_7250
if and
  $cprace_best_position($race_selection,30i) > 3
  100 > $cprace_best_position($race_selection,30i)
goto_if_false @CPRACE_7314
display_text_with_number $tripskip_s2flag {offsetTop} $6922 {key} 'RACES44' {num} $cprace_best_position($race_selection,30i)
goto @CPRACE_7331

:CPRACE_7314
display_text $tripskip_s2flag {offsetTop} $6922 {key} 'RACES45'

:CPRACE_7331
set_lvar_int_to_var_int 36@ = $race_selection
36@ += 1
draw_sprite 36@ {offsetLeft} 454.98 {offsetTop} 268.18 {width} 256.0 {height} 256.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @CPRACE_20804

:CPRACE_7390
if 
  not get_fading_status 
goto_if_false @CPRACE_7569
set_help_message_box_size 200
remove_texture_dictionary 
clear_help 
gosub @CPRACE_20811
display_car_names False
display_hud True
if 
  221@ == 0
goto_if_false @CPRACE_7456
display_radar True
goto @CPRACE_7474

:CPRACE_7456
set_player_is_in_stadium True
display_zone_names False
hide_all_frontend_blips True
set_extra_colours 2 {fade} False

:CPRACE_7474
$flag_car_normal_carmod = 1
if 
  $got_race_made_progress($race_selection,30i) == 0
goto_if_false @CPRACE_7537
if and
  $race_selection == 0
  $show_race_selection == 0
goto_if_false @CPRACE_7535
goto @CPRACE_7537

:CPRACE_7535
register_mission_given 

:CPRACE_7537
if 
  $race_selection == 23
goto_if_false @CPRACE_7562
switch_car_generator $f1_blood_car_gen[1] {amount} 0

:CPRACE_7562
49@ = 3

:CPRACE_7569
goto @CPRACE_20804

:CPRACE_7576
set_lvar_int_to_lvar_int 249@ = 250@
249@ -= 1
set_lvar_int_to_lvar_int 251@ = 224@
251@ -= 1
252@ = 0
253@ = 0
254@ = 0
255@ = 0

:CPRACE_7634
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_7711
257@(253@,16i) = 0
273@(253@,16i) = 0
289@(253@,16i) = 0
305@(253@,16i) = 0
253@ += 1
goto @CPRACE_7634

:CPRACE_7711
253@ = 0
321@ = -1
49@ = 4
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_7876
if or
  $race_selection == 22
  $race_selection == 23
  $race_selection == 24
goto_if_false @CPRACE_7829
322@ = 12.0
323@ = 12.0
324@ = 12.0
325@ = 6.0
goto @CPRACE_7869

:CPRACE_7829
322@ = 25.0
323@ = 25.0
324@ = 25.0
325@ = 12.0

:CPRACE_7869
goto @CPRACE_7916

:CPRACE_7876
322@ = 12.0
323@ = 12.0
324@ = 7.0
325@ = 6.0

:CPRACE_7916
goto @CPRACE_20804

:CPRACE_7923
252@ = 0

:CPRACE_7930
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8153
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8098
if 
  $race_selection == 0
goto_if_false @CPRACE_8016
load_special_character 1 {modelName} 'CESAR'
load_special_character 2 {modelName} 'KENDL'

:CPRACE_8016
if 
  $race_selection == 7
goto_if_false @CPRACE_8047
load_special_character 1 {modelName} 'WUZIMU'

:CPRACE_8047
if 
  $race_selection == 8
goto_if_false @CPRACE_8091
load_special_character 1 {modelName} 'WUZIMU'
load_special_character 2 {modelName} 'CAT'

:CPRACE_8091
goto @CPRACE_8107

:CPRACE_8098
request_model 700@(252@,16i)

:CPRACE_8107
if 
  $race_selection == 8
goto_if_false @CPRACE_8130
request_vehicle_mod #WHEEL_OR1

:CPRACE_8130
request_model 716@(252@,16i)
252@ += 1
goto @CPRACE_7930

:CPRACE_8153
request_animation "CAR"
request_animation "RIOT"
load_all_models_now 
326@ = 0

:CPRACE_8177
if 
  326@ == 0
goto_if_false @CPRACE_8645
wait 0
326@ = 1
252@ = 0

:CPRACE_8213
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8638
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8497
if 
  not has_special_character_loaded 1
goto_if_false @CPRACE_8384
if 
  $race_selection == 0
goto_if_false @CPRACE_8308
load_special_character 1 {modelName} 'CESAR'
326@ = 0

:CPRACE_8308
if 
  $race_selection == 7
goto_if_false @CPRACE_8346
load_special_character 1 {modelName} 'WUZIMU'
326@ = 0

:CPRACE_8346
if 
  $race_selection == 8
goto_if_false @CPRACE_8384
load_special_character 1 {modelName} 'WUZIMU'
326@ = 0

:CPRACE_8384
if 
  $race_selection == 0
goto_if_false @CPRACE_8437
if 
  not has_special_character_loaded 2
goto_if_false @CPRACE_8437
load_special_character 2 {modelName} 'KENDL'
326@ = 0

:CPRACE_8437
if 
  $race_selection == 8
goto_if_false @CPRACE_8490
if 
  not has_special_character_loaded 2
goto_if_false @CPRACE_8490
load_special_character 2 {modelName} 'CAT'
326@ = 0

:CPRACE_8490
goto @CPRACE_8533

:CPRACE_8497
if 
  not has_model_loaded 700@(252@,16i)
goto_if_false @CPRACE_8533
request_model 700@(252@,16i)
326@ = 0

:CPRACE_8533
if 
  $race_selection == 8
goto_if_false @CPRACE_8579
if 
  not has_vehicle_mod_loaded #WHEEL_OR1
goto_if_false @CPRACE_8579
request_vehicle_mod #WHEEL_OR1
326@ = 0

:CPRACE_8579
if 
  not has_model_loaded 716@(252@,16i)
goto_if_false @CPRACE_8624
request_model 700@(252@,16i)
request_model 716@(252@,16i)
326@ = 0

:CPRACE_8624
252@ += 1
goto @CPRACE_8213

:CPRACE_8638
goto @CPRACE_8177

:CPRACE_8645
49@ = 5
goto @CPRACE_20804

:CPRACE_8659
set_car_density_multiplier 0.0
clear_area 454@ {y} 536@ {z} 618@ {radius} 30.0 {clearParticles} False
if 
  $show_race_selection == 1
goto_if_false @CPRACE_8707
clear_char_tasks_immediately $scplayer

:CPRACE_8707
set_char_coordinates $scplayer {x} 454@ {y} 536@ {z} 618@
set_char_area_visible $scplayer {areaId} 221@
set_area_visible 221@
request_collision 454@ {y} 536@
restore_camera_jumpcut 
load_scene 454@ {y} 536@ {z} 618@
set_weather_to_appropriate_type_now 
49@ = 6
goto @CPRACE_20804

:CPRACE_8771
if and
  has_animation_loaded "CAR"
  has_animation_loaded "RIOT"
goto_if_false @CPRACE_11197
443@ = create_car 716@ {x} 454@ {y} 536@ {z} 618@
turn_car_to_face_coord 443@ {x} 455@ {y} 537@
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1
253@ = 0

:CPRACE_8847
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11172
if 
  256@ > 1
goto_if_false @CPRACE_9264
329@, 330@, $z, 327@, 328@, $z = get_model_dimensions 716@
329@ *= -1.0
add_float_lvar_to_float_lvar 327@ += 329@
if 
  2.0 > 327@
goto_if_false @CPRACE_8956
327@ = 2.0

:CPRACE_8956
set_lvar_float_to_lvar_float 329@ = 327@
329@ *= -1.0
330@ *= -1.0
add_float_lvar_to_float_lvar 328@ += 330@
set_lvar_int_to_lvar_int 254@ = 253@
254@ /= 2
254@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 254@ == 253@
goto_if_false @CPRACE_9082
set_var_float_to_lvar_float $x = 327@
cset_lvar_float_to_lvar_int 47@ =# 253@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@
goto @CPRACE_9139

:CPRACE_9082
set_var_float_to_lvar_float $x = 329@
set_lvar_int_to_lvar_int 255@ = 253@
255@ -= 1
cset_lvar_float_to_lvar_int 47@ =# 255@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@

:CPRACE_9139
if 
  is_car_dead 443@
goto_if_false @CPRACE_9200
if 
  $show_race_selection == 0
goto_if_false @CPRACE_9198
if 
  $race_selection == 0
goto_if_false @CPRACE_9198
$failed_cesar_race = 1

:CPRACE_9198
return 

:CPRACE_9200
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} $x {yOffset} $y {zOffset} 0.0
$heading = get_car_heading 443@
set_lvar_float_to_var_float 331@(253@,16f) = $x
set_lvar_float_to_var_float 347@(253@,16f) = $y
goto @CPRACE_9328

:CPRACE_9264
$heading = get_car_heading 443@
set_var_float_to_lvar_float $x = 331@(253@,16f)
set_var_float_to_lvar_float $y = 347@(253@,16f)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@
set_var_float_to_lvar_float $z = 618@

:CPRACE_9328
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_9402
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_9402
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_9402
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z

:CPRACE_9402
set_lvar_float_to_var_float 363@(253@,16f) = $z
if 
  is_int_lvar_greater_than_int_lvar 36@ > 253@
goto_if_false @CPRACE_9755
gosub @CPRACE_488
create_char_inside_car 379@(253@,16i) {pedType} PedType.CivMale {modelId} 700@(253@,16i) {var_handle} 395@(253@,16i)
if 
  is_int_lvar_equal_to_constant 700@(253@,16i) == 290
goto_if_false @CPRACE_9551
if or
  $race_selection == 0
  $race_selection == 8
goto_if_false @CPRACE_9532
411@ = create_char_as_passenger 379@(253@,16i) {pedType} PedType.CivFemale {modelId} 291 {seat} SeatId.BikeRear

:CPRACE_9532
set_car_proofs 379@(253@,16i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True

:CPRACE_9551
if 
  221@ > 0
goto_if_false @CPRACE_9613
if 
  321@ == -1
goto_if_false @CPRACE_9601
321@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 321@ {event} Event.VehicleOnFire

:CPRACE_9601
set_char_decision_maker 395@(253@,16i) {handleOrTemplate} 321@

:CPRACE_9613
set_char_area_visible 395@(253@,16i) {areaId} 221@
set_char_can_be_shot_in_vehicle 395@(253@,16i) {state} False
set_char_suffers_critical_hits 395@(253@,16i) {state} False
set_char_never_targetted 395@(253@,16i) {state} True
set_char_only_damaged_by_player 395@(253@,16i) {state} True
set_char_cant_be_dragged_out 395@(253@,16i) {state} False
set_char_drowns_in_water 395@(253@,16i) {state} False
set_char_health 395@(253@,16i) {health} 500
if 
  221@ == 0
goto_if_false @CPRACE_9737
add_blip_for_char 395@(253@,16i) {var_handle} 412@(253@,16i)

:CPRACE_9737
change_blip_display 412@(253@,16i) {display} BlipDisplay.MarkerOnly
goto @CPRACE_11158

:CPRACE_9755
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_10753
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_10753
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_10753
if 
  221@ == 0
goto_if_false @CPRACE_10753
428@ = load_char_decision_maker DecisionMakerType.Empty
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
429@ = create_random_char $x {y} $y {z} $z
set_char_keep_task 429@ {state} True
set_char_decision_maker 429@ {handleOrTemplate} 428@
task_turn_char_to_face_coord 429@ {x} 454@ {y} 536@ {z} 618@
430@ = create_object_no_offset #KMB_GOFLAG {x} $x {y} $y {z} $z
task_pick_up_object 429@ {object} 430@ {xOffset} 0.062 {yOffset} 0.027 {zOffset} -0.15 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "FLAG_DROP" {animationFile} "CAR" {time} 0
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
431@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
432@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
433@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
434@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
435@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
436@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
437@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
438@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
439@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
440@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
441@ = create_random_char $x {y} $y {z} $z
252@ = 0

:CPRACE_10622
if 
  11 > 252@
goto_if_false @CPRACE_10753
set_char_decision_maker 431@(252@,11i) {handleOrTemplate} 428@
set_char_keep_task 431@(252@,11i) {state} True
38@ = open_sequence_task 
gosub @CPRACE_50647
set_sequence_to_repeat 38@ {state} True
close_sequence_task 38@
37@ = open_sequence_task 
task_turn_char_to_face_coord -1 {x} 454@ {y} 536@ {z} 618@
perform_sequence_task -1 {sequence} 38@
close_sequence_task 37@
perform_sequence_task 431@(252@,11i) {sequence} 37@
clear_sequence_task 38@
clear_sequence_task 37@
252@ += 1
goto @CPRACE_10622

:CPRACE_10753
delete_car 443@
set_lvar_int_to_var_int 395@(253@,16i) = $scplayer
set_lvar_int_to_lvar_int 442@ = 253@
363@(442@,16f) += 3.0
get_ground_z_for_3d_coord 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f) {var_groundZ} 363@(442@,16f)
if 
  0.0 > 363@(442@,16f)
goto_if_false @CPRACE_10881
if 
  is_this_model_a_boat 716@(442@,16i)
goto_if_false @CPRACE_10881
363@(442@,16f) = 0.0

:CPRACE_10881
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_10946
get_car_char_is_using $scplayer {var_handle} 379@(442@,16i)
set_car_coordinates 379@(442@,16i) {x} 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f)
goto @CPRACE_11069

:CPRACE_10946
create_car 716@(442@,16i) {x} 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f) {var_handle} 379@(442@,16i)
if 
  $race_selection == 8
goto_if_false @CPRACE_11016
36@ = add_vehicle_mod 379@(442@,16i) {modelId} #WHEEL_OR1

:CPRACE_11016
if 
  209@ <> -1
goto_if_false @CPRACE_11057
change_car_colour 379@(442@,16i) {color1} 209@(442@,6i) {color2} 215@(442@,6i)

:CPRACE_11057
warp_char_into_car $scplayer {vehicle} 379@(442@,16i)

:CPRACE_11069
set_vehicle_area_visible 379@(442@,16i) {interiorId} 221@
set_car_heading 379@(442@,16i) {heading} $heading
if or
  is_this_model_a_plane 716@(442@,16i)
  is_this_model_a_heli 716@(442@,16i)
goto_if_false @CPRACE_11147
freeze_car_position 379@(442@,16i) {state} True
set_car_forward_speed 379@(442@,16i) {forwardSpeed} 10.0

:CPRACE_11147
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:CPRACE_11158
253@ += 1
goto @CPRACE_8847

:CPRACE_11172
set_player_control $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 7
goto @CPRACE_11212

:CPRACE_11197
request_animation "CAR"
request_animation "RIOT"

:CPRACE_11212
goto @CPRACE_20804

:CPRACE_11219
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 8
goto @CPRACE_20804

:CPRACE_11296
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_11374
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 9

:CPRACE_11374
goto @CPRACE_20804

:CPRACE_11381
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_11459
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 10

:CPRACE_11459
goto @CPRACE_20804

:CPRACE_11466
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_12343
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRaceGo
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
253@ = 0

:CPRACE_11546
if 
  11 > 253@
goto_if_false @CPRACE_11587
mark_char_as_no_longer_needed 431@(253@,11i)
253@ += 1
goto @CPRACE_11546

:CPRACE_11587
mark_char_as_no_longer_needed 429@
remove_animation "CAR"
253@ = 0

:CPRACE_11606
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11828
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_11814
set_car_only_damaged_by_player 379@(253@,16i) {state} False
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_11814
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_11803
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_11785
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_11778
if 
  221@ == 0
goto_if_false @CPRACE_11778
add_stuck_car_check_with_warp 379@(253@,16i) {distance} 3.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:CPRACE_11778
goto @CPRACE_11796

:CPRACE_11785
freeze_car_position 379@(253@,16i) {state} False

:CPRACE_11796
goto @CPRACE_11814

:CPRACE_11803
freeze_car_position 379@(253@,16i) {state} False

:CPRACE_11814
253@ += 1
goto @CPRACE_11606

:CPRACE_11828
set_car_density_multiplier 1.0
$tripskip_s2flag = 582.7242
$6916 = 356.2812
$6930 = 52.2072
$6944 = 52.2072
$x_hud_pos = 584.0833
$y_hud_pos = 329.3647
$x_hud_scale = 0.4943
$y_hud_scale = 2.097
$6904 = 570.6411
$6918 = 323.5937
$6932 = 0.9127
$6946 = 4.8106
$6905 = 585.941
$6919 = 345.6341
$6933 = 0.4197
$6947 = 1.8511
$6906 = 582.7242
$6920 = 359.0323
$6934 = 0.4993
$6948 = 2.637
$6907 = 582.7242
$6921 = 356.2812
$6935 = 56.2072
$6949 = 56.2072
$6908 = 582.7242
$6922 = 356.2812
$6936 = 58.2072
$6950 = 58.2072
$6909 = 582.7242
$6923 = 400.7518
$6937 = 58.2072
$6951 = 32.7789
$6910 = 582.7242
$6924 = 400.2518
$6938 = 56.2072
$6952 = 31.7789
$6911 = 582.7242
$6925 = 399.2518
$6939 = 52.2072
$6953 = 29.7789
$6912 = 560.4862
$6926 = 384.5027
$6940 = 0.5
$6954 = 1.5393
set_var_int_to_var_int $coords = $game_timer
set_lvar_int_to_var_int 206@ = $game_timer
if 
  256@ == 1
goto_if_false @CPRACE_12332
$coords = 0
display_onscreen_timer_with_string $coords {direction} TimerDirection.Up {text} 'TIMER'

:CPRACE_12332
clear_this_print_big_now TextStyle.BottomRight
49@ = 11

:CPRACE_12343
goto @CPRACE_20804

:CPRACE_12350
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_18589
if 
  not is_char_dead 395@(253@,16i)
goto_if_false @CPRACE_18122
if 
  13 > 49@
goto_if_false @CPRACE_12731
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_12731
if 
  is_int_lvar_greater_than_int_lvar 273@(253@,16i) > 273@(442@,16i)
goto_if_false @CPRACE_12471
229@ += 1
goto @CPRACE_12731

:CPRACE_12471
if 
  is_int_lvar_equal_to_int_lvar 273@(442@,16i) == 273@(253@,16i)
goto_if_false @CPRACE_12731
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
goto_if_false @CPRACE_12539
229@ += 1
goto @CPRACE_12731

:CPRACE_12539
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_12576
229@ += 1
goto @CPRACE_12731

:CPRACE_12576
if 
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
goto_if_false @CPRACE_12731
$x, $y, $z = get_char_coordinates 395@(253@,16i)
444@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 331@(253@,16f) {toY} 347@(253@,16f) {toZ} 363@(253@,16f)
$x, $y, $z = get_char_coordinates $scplayer
445@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 331@(253@,16f) {toY} 347@(253@,16f) {toZ} 363@(253@,16f)
if 
  is_float_lvar_greater_than_float_lvar 445@ > 444@
goto_if_false @CPRACE_12731
229@ += 1

:CPRACE_12731
if 
  49@ == 12
goto_if_false @CPRACE_15497
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_14120
if 
  not is_car_dead 379@(442@,16i)
goto_if_false @CPRACE_13747
if 
  is_char_in_car $scplayer {vehicle} 379@(442@,16i)
goto_if_false @CPRACE_13358
if 
  207@ == 1
goto_if_false @CPRACE_13351
clear_this_print 'RACES21'
remove_blip 54@
363@(253@,16f) -= 1000.0
if 
  221@ == 0
goto_if_false @CPRACE_13344
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_12903
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_12983
if 
  not is_char_dead 395@(254@,16i)
goto_if_false @CPRACE_12969
add_blip_for_char 395@(254@,16i) {var_handle} 412@(254@,16i)
change_blip_display 412@(254@,16i) {display} BlipDisplay.MarkerOnly

:CPRACE_12969
254@ += 1
goto @CPRACE_12903

:CPRACE_12983
54@ = add_blip_for_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
change_blip_colour 54@ {color} BlipColor.Red
change_blip_display 54@ {display} BlipDisplay.BlipOnly
change_blip_scale 54@ {size} 3
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_13242
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_13187
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_13127
36@ = 0

:CPRACE_13127
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@
goto @CPRACE_13235

:CPRACE_13187
449@ = create_checkpoint CheckpointType.TubeEnd {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0

:CPRACE_13235
goto @CPRACE_13344

:CPRACE_13242
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_13291
36@ = 1

:CPRACE_13291
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@

:CPRACE_13344
207@ = 0

:CPRACE_13351
goto @CPRACE_13740

:CPRACE_13358
if 
  207@ == 0
goto_if_false @CPRACE_13506
delete_checkpoint 449@
remove_blip 54@
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_13408
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_13450
remove_blip 412@(254@,16i)
254@ += 1
goto @CPRACE_13408

:CPRACE_13450
54@ = add_blip_for_car 379@(442@,16i)
set_blip_as_friendly 54@ {state} True
363@(253@,16f) += 1000.0
set_lvar_int_to_var_int 446@ = $game_timer
446@ += 25400
207@ = 1

:CPRACE_13506
set_lvar_int_to_lvar_int 453@ = 446@
sub_int_var_from_int_lvar 453@ -= $game_timer
453@ /= 1000
if 
  1 > 453@
goto_if_false @CPRACE_13555
453@ = 0

:CPRACE_13555
if 
  is_int_var_greater_than_int_lvar $game_timer > 446@
goto_if_false @CPRACE_13669
print_now 'RACES20' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13624
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13624
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13667
if 
  $race_selection == 0
goto_if_false @CPRACE_13667
$failed_cesar_race = 1

:CPRACE_13667
return 

:CPRACE_13669
if 
  453@ == 1
goto_if_false @CPRACE_13717
add_next_message_to_previous_briefs False
print_with_number_now 'RACE_21' {num} 453@ {duration} 200 {flag} 1
goto @CPRACE_13740

:CPRACE_13717
add_next_message_to_previous_briefs False
print_with_number_now 'RACES21' {num} 453@ {duration} 200 {flag} 1

:CPRACE_13740
goto @CPRACE_14113

:CPRACE_13747
if 
  is_car_in_water 379@(442@,16i)
goto_if_false @CPRACE_14018
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_13916
443@ = store_car_char_is_in_no_save $scplayer
if 
  not is_int_lvar_equal_to_int_lvar 443@ == 379@(442@,16i)
goto_if_false @CPRACE_13909
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13864
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13864
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13907
if 
  $race_selection == 0
goto_if_false @CPRACE_13907
$failed_cesar_race = 1

:CPRACE_13907
return 

:CPRACE_13909
goto @CPRACE_14011

:CPRACE_13916
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13966
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13966
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14009
if 
  $race_selection == 0
goto_if_false @CPRACE_14009
$failed_cesar_race = 1

:CPRACE_14009
return 

:CPRACE_14011
goto @CPRACE_14113

:CPRACE_14018
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14068
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_14068
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14111
if 
  $race_selection == 0
goto_if_false @CPRACE_14111
$failed_cesar_race = 1

:CPRACE_14111
return 

:CPRACE_14113
goto @CPRACE_15497

:CPRACE_14120
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15497
if 
  is_char_in_any_car 395@(253@,16i)
goto_if_false @CPRACE_14411
if 
  221@ == 0
goto_if_false @CPRACE_14404
set_lvar_int_to_lvar_int 36@ = 257@(442@,16i)
36@ += 4
443@ = store_car_char_is_in_no_save 395@(253@,16i)
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 36@
goto_if_false @CPRACE_14252
set_car_cruise_speed 443@ {maxSpeed} 25.0
goto @CPRACE_14311

:CPRACE_14252
if or
  $race_selection == 7
  $race_selection == 8
  $race_selection == 0
goto_if_false @CPRACE_14301
set_car_cruise_speed 443@ {maxSpeed} 35.0
goto @CPRACE_14311

:CPRACE_14301
set_car_cruise_speed 443@ {maxSpeed} 50.0

:CPRACE_14311
if 
  $race_selection == 8
goto_if_false @CPRACE_14404
if or
  locate_car_2d 443@ {x} -882.9833 {y} -47.9468 {xRadius} 24.61 {yRadius} 25.64 {drawSphere} False
  locate_car_2d 443@ {x} -843.0954 {y} -141.9169 {xRadius} 24.59 {yRadius} -29.24 {drawSphere} False
goto_if_false @CPRACE_14404
set_car_cruise_speed 443@ {maxSpeed} 30.0

:CPRACE_14404
goto @CPRACE_14932

:CPRACE_14411
if 
  $race_selection == 25
goto_if_false @CPRACE_14443
goto @CPRACE_18140
goto @CPRACE_14932

:CPRACE_14443
if 
  305@(253@,16i) == 0
goto_if_false @CPRACE_14489
set_lvar_int_to_var_int 305@(253@,16i) = $game_timer
305@(253@,16i) += 8000

:CPRACE_14489
if 
  is_int_var_greater_than_int_lvar $game_timer > 305@(253@,16i)
goto_if_false @CPRACE_14932
if 
  not is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 257@(442@,16i)
goto_if_false @CPRACE_14932
if 
  not locate_char_any_means_char_2d $scplayer {target} 395@(253@,16i) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_14921
if 
  not locate_char_any_means_2d $scplayer {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_14903
if 
  not is_point_obscured_by_a_mission_entity 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CPRACE_14885
if 
  not is_char_on_screen 395@(253@,16i)
goto_if_false @CPRACE_14867
if 
  not is_point_on_screen 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radius} 4.0
goto_if_false @CPRACE_14849
mark_car_as_no_longer_needed 379@(253@,16i)
gosub @CPRACE_488
warp_char_into_car 395@(253@,16i) {vehicle} 379@(253@,16i)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_14831
turn_car_to_face_coord 379@(253@,16i) {x} 454@(36@,82f) {y} 536@(36@,82f)
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 20.0

:CPRACE_14831
305@(253@,16i) = 0
goto @CPRACE_14860

:CPRACE_14849
305@(253@,16i) = 0

:CPRACE_14860
goto @CPRACE_14878

:CPRACE_14867
305@(253@,16i) = 0

:CPRACE_14878
goto @CPRACE_14896

:CPRACE_14885
305@(253@,16i) = 0

:CPRACE_14896
goto @CPRACE_14914

:CPRACE_14903
305@(253@,16i) = 0

:CPRACE_14914
goto @CPRACE_14932

:CPRACE_14921
305@(253@,16i) = 0

:CPRACE_14932
if 
  221@ == 0
goto_if_false @CPRACE_15497
252@ = 0
255@ = 0

:CPRACE_14964
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_15046
set_lvar_int_to_lvar_int 447@ = 257@(252@,16i)
447@ -= 4
if 
  is_int_lvar_greater_than_int_lvar 447@ > 257@(253@,16i)
goto_if_false @CPRACE_15032
255@ += 1

:CPRACE_15032
252@ += 1
goto @CPRACE_14964

:CPRACE_15046
if 
  255@ > 0
goto_if_false @CPRACE_15497
if 
  not locate_char_any_means_char_2d $scplayer {target} 395@(253@,16i) {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @CPRACE_15497
if 
  not locate_char_any_means_2d $scplayer {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @CPRACE_15497
if 
  not locate_char_any_means_2d 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @CPRACE_15497
if 
  not is_point_obscured_by_a_mission_entity 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CPRACE_15497
if 
  not is_char_on_screen 395@(253@,16i)
goto_if_false @CPRACE_15497
if 
  not is_point_on_screen 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radius} 4.0
goto_if_false @CPRACE_15497
if 
  is_char_sitting_in_any_car 395@(253@,16i)
goto_if_false @CPRACE_15390
set_char_coordinates 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
turn_car_to_face_coord 443@ {x} 454@(36@,82f) {y} 536@(36@,82f)
goto @CPRACE_15497

:CPRACE_15390
mark_car_as_no_longer_needed 379@(253@,16i)
gosub @CPRACE_488
warp_char_into_car 395@(253@,16i) {vehicle} 379@(253@,16i)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_15497
turn_car_to_face_coord 379@(253@,16i) {x} 454@(36@,82f) {y} 536@(36@,82f)
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 20.0

:CPRACE_15497
36@ = 0
if 
  locate_char_in_car_3d 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {xRadius} 322@ {yRadius} 323@ {zRadius} 324@ {drawSphere} False
goto_if_false @CPRACE_15570
36@ = 1
goto @CPRACE_15699

:CPRACE_15570
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_15699
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CPRACE_15699
request_collision 331@(253@,16f) {y} 347@(253@,16f)
load_scene 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
set_var_float_to_lvar_float $x = 363@(253@,16f)
$x += 1.0
set_char_coordinates 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)

:CPRACE_15699
if 
  36@ == 1
goto_if_false @CPRACE_18115
if 
  49@ == 11
goto_if_false @CPRACE_15742
49@ = 12

:CPRACE_15742
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_15808
if 
  221@ == 0
goto_if_false @CPRACE_15808
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 54@

:CPRACE_15808
257@(253@,16i) += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15909
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)
goto @CPRACE_16947

:CPRACE_15909
if 
  is_int_lvar_greater_than_int_lvar 224@ > 273@(253@,16i)
goto_if_false @CPRACE_15943
273@(253@,16i) += 1

:CPRACE_15943
if 
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 224@
goto_if_false @CPRACE_16619
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_16208
if 
  224@ > 1
goto_if_false @CPRACE_16118
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16118
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16092
register_fastest_time StatId.BestLapTimeHotring {value} 448@

:CPRACE_16092
if 
  $race_selection == 26
goto_if_false @CPRACE_16118
register_fastest_time StatId.BestLapTimeDirttrack {value} 448@

:CPRACE_16118
delete_checkpoint 449@
remove_blip 54@
49@ = 13
if 
  $show_race_selection == 0
goto_if_false @CPRACE_16187
if 
  229@ > 0
goto_if_false @CPRACE_16187
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_16187
363@(253@,16f) = 99999.0
goto @CPRACE_16612

:CPRACE_16208
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_16237
remove_stuck_car_check 379@(253@,16i)

:CPRACE_16237
if 
  221@ == 0
goto_if_false @CPRACE_16547
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16540
37@ = open_sequence_task 
47@ = get_char_speed 395@(253@,16i)
cset_lvar_int_to_lvar_float 36@ =# 47@
36@ *= -100
36@ += 4000
if 
  10 > 36@
goto_if_false @CPRACE_16353
36@ = 10

:CPRACE_16353
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.GoForward {time} 36@
36@ = generate_random_int_in_range 0 {max} 5
if or
  36@ == 0
  36@ == 1
goto_if_false @CPRACE_16429
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeTurnLeft {time} 250000
goto @CPRACE_16453

:CPRACE_16429
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeTurnRight {time} 250000

:CPRACE_16453
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_drive_wander -1 {vehicle} -1 {speed} 100.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 37@
perform_sequence_task 395@(253@,16i) {sequence} 37@
clear_sequence_task 37@

:CPRACE_16540
goto @CPRACE_16598

:CPRACE_16547
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1490
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16598
task_car_drive_wander 395@(253@,16i) {vehicle} -1 {speed} 100.0 {drivingMode} DrivingMode.AvoidCars

:CPRACE_16598
363@(253@,16f) = 99999.0

:CPRACE_16612
goto @CPRACE_16947

:CPRACE_16619
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_16876
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16868
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16727
register_fastest_time StatId.BestLapTimeHotring {value} 448@

:CPRACE_16727
if 
  $race_selection == 26
goto_if_false @CPRACE_16753
register_fastest_time StatId.BestLapTimeDirttrack {value} 448@

:CPRACE_16753
set_lvar_int_to_lvar_int 452@ = 448@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 448@
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_16846
print_with_2_numbers_now 'LAPTIM0' {num1} 452@ {num2} 453@ {duration} 5000 {style} TextStyle.Middle
goto @CPRACE_16868

:CPRACE_16846
print_with_2_numbers_now 'LAPTIME' {num1} 452@ {num2} 453@ {duration} 5000 {style} TextStyle.Middle

:CPRACE_16868
set_lvar_int_to_var_int 206@ = $game_timer

:CPRACE_16876
257@(253@,16i) = 0
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)

:CPRACE_16947
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_17404
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_17397
if 
  221@ == 0
goto_if_false @CPRACE_17065
54@ = add_blip_for_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
change_blip_colour 54@ {color} BlipColor.Red
change_blip_display 54@ {display} BlipDisplay.BlipOnly
change_blip_scale 54@ {size} 3
delete_checkpoint 449@

:CPRACE_17065
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_17277
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_17222
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_17162
36@ = 0

:CPRACE_17162
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@
goto @CPRACE_17270

:CPRACE_17222
449@ = create_checkpoint CheckpointType.TubeEnd {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0

:CPRACE_17270
goto @CPRACE_17397

:CPRACE_17277
if 
  221@ == 0
goto_if_false @CPRACE_17397
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_17344
36@ = 1

:CPRACE_17344
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@

:CPRACE_17397
goto @CPRACE_18115

:CPRACE_17404
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_18115
if 
  is_char_in_any_heli 395@(253@,16i)
goto_if_false @CPRACE_17659
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_17602
if 
  is_char_in_car 395@(253@,16i) {vehicle} 379@(253@,16i)
goto_if_false @CPRACE_17545
heli_goto_coords 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)
goto @CPRACE_17595

:CPRACE_17545
443@ = store_car_char_is_in_no_save 395@(253@,16i)
heli_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17595
goto @CPRACE_17652

:CPRACE_17602
443@ = store_car_char_is_in_no_save 395@(253@,16i)
heli_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17652
goto @CPRACE_18115

:CPRACE_17659
if 
  is_char_in_any_plane 395@(253@,16i)
goto_if_false @CPRACE_17889
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_17832
if 
  is_char_in_car 395@(253@,16i) {vehicle} 379@(253@,16i)
goto_if_false @CPRACE_17775
plane_goto_coords 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)
goto @CPRACE_17825

:CPRACE_17775
443@ = store_car_char_is_in_no_save 395@(253@,16i)
plane_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17825
goto @CPRACE_17882

:CPRACE_17832
443@ = store_car_char_is_in_no_save 395@(253@,16i)
plane_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17882
goto @CPRACE_18115

:CPRACE_17889
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18115
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1490
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18115
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_18067
task_car_drive_to_coord 395@(253@,16i) {vehicle} 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {speed} 50.0 {driveStyle} DriveMode.Racing {modelId} 716@(253@,16i) {drivingStyle} DrivingMode.AvoidCars
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 250@
goto_if_false @CPRACE_18060
remove_stuck_car_check 379@(253@,16i)

:CPRACE_18060
goto @CPRACE_18115

:CPRACE_18067
task_car_drive_to_coord 395@(253@,16i) {vehicle} -1 {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {speed} 50.0 {driveStyle} DriveMode.Racing {modelId} 716@(253@,16i) {drivingStyle} DrivingMode.AvoidCars

:CPRACE_18115
goto @CPRACE_18575

:CPRACE_18122
if 
  221@ > 0
goto_if_false @CPRACE_18425

:CPRACE_18140
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18418
if 
  not is_point_obscured_by_a_mission_entity 732@ {y} 733@ {z} 734@ {radiusX} 2.5 {radiusY} 2.5 {radiusZ} 2.5
goto_if_false @CPRACE_18418
257@(253@,16i) = 1
remove_blip 412@(253@,16i)
mark_car_as_no_longer_needed 379@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 732@
set_lvar_float_to_lvar_float 347@(253@,16f) = 733@
set_lvar_float_to_lvar_float 363@(253@,16f) = 734@
set_var_float_to_lvar_float $heading = 735@
gosub @CPRACE_488
create_char_inside_car 379@(253@,16i) {pedType} PedType.CivMale {modelId} 700@(253@,16i) {var_handle} 395@(253@,16i)
set_char_area_visible 395@(253@,16i) {areaId} 221@
set_char_can_be_shot_in_vehicle 395@(253@,16i) {state} False
set_char_suffers_critical_hits 395@(253@,16i) {state} False
set_char_never_targetted 395@(253@,16i) {state} True
set_char_only_damaged_by_player 395@(253@,16i) {state} True
set_char_cant_be_dragged_out 395@(253@,16i) {state} False
set_char_drowns_in_water 395@(253@,16i) {state} False
set_char_health 395@(253@,16i) {health} 500
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 25.0

:CPRACE_18418
goto @CPRACE_18575

:CPRACE_18425
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18575
if 
  13 > 49@
goto_if_false @CPRACE_18528
if or
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_18528
229@ += 1

:CPRACE_18528
if 
  not is_char_in_water 395@(253@,16i)
goto_if_false @CPRACE_18575
remove_blip 412@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)
mark_car_as_no_longer_needed 379@(253@,16i)

:CPRACE_18575
253@ += 1
goto @CPRACE_12350

:CPRACE_18589
if 
  256@ > 1
goto_if_false @CPRACE_19516
draw_rect $6908 {y} $6922 {width} $6936 {height} $6950 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $6907 {y} $6921 {width} $6935 {height} $6949 {r} 134 {g} 155 {b} 184 {a} 255
draw_rect $tripskip_s2flag {y} $6916 {width} $6930 {height} $6944 {r} 0 {g} 0 {b} 0 {a} 255
if 
  224@ > 1
goto_if_false @CPRACE_18949
draw_rect $6909 {y} $6923 {width} $6937 {height} $6951 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $6910 {y} $6924 {width} $6938 {height} $6952 {r} 134 {g} 155 {b} 184 {a} 255
draw_rect $6911 {y} $6925 {width} $6939 {height} $6953 {r} 0 {g} 0 {b} 0 {a} 255
set_lvar_int_to_lvar_int 36@ = 273@(442@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 36@ > 224@
goto_if_false @CPRACE_18815
set_lvar_int_to_lvar_int 36@ = 224@

:CPRACE_18815
gosub @CPRACE_47593
$current_Language = get_current_language 
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CPRACE_18862
$6940 = 0.4235
goto @CPRACE_18907

:CPRACE_18862
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CPRACE_18897
$6940 = 0.3786
goto @CPRACE_18907

:CPRACE_18897
$6940 = 0.5

:CPRACE_18907
set_text_scale $6940 {heightScale} $6954
set_text_justify True
set_text_wrapx 600.0
display_text_with_2_numbers $6912 {offsetTop} $6926 {key} 'RACES32' {num1} 36@ {num2} 224@

:CPRACE_18949
set_lvar_int_to_lvar_int 450@ = 229@
450@ += 1
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19001
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19001
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
if 
  450@ == 1
goto_if_false @CPRACE_19044
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'ST'

:CPRACE_19044
if 
  450@ == 2
goto_if_false @CPRACE_19079
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'ND'

:CPRACE_19079
if 
  450@ == 3
goto_if_false @CPRACE_19114
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'RD'

:CPRACE_19114
if 
  450@ > 3
goto_if_false @CPRACE_19149
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'TH'

:CPRACE_19149
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19186
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19186
set_text_scale $6932 {heightScale} $6946
set_text_centre True
display_text_with_number $6904 {offsetTop} $6918 {key} 'NUMBER' {num} 450@
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19255
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19255
set_text_scale $6933 {heightScale} $6947
display_text_with_number $6905 {offsetTop} $6919 {key} 'OUT_OF' {num} 256@
if 
  13 > 49@
goto_if_false @CPRACE_19325
set_lvar_int_to_var_int 451@ = $game_timer
sub_int_var_from_int_lvar 451@ -= $coords
451@ /= 1000

:CPRACE_19325
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
if 
  452@ > 99
goto_if_false @CPRACE_19365
452@ = 99

:CPRACE_19365
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47593
if 
  222@ == 1
goto_if_false @CPRACE_19433
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19433
set_text_centre True
set_text_scale $6934 {heightScale} $6948
if 
  453@ > 9
goto_if_false @CPRACE_19493
display_text_with_2_numbers $6906 {offsetTop} $6920 {key} 'TIME' {num1} 452@ {num2} 453@
goto @CPRACE_19516

:CPRACE_19493
display_text_with_2_numbers $6906 {offsetTop} $6920 {key} 'TIME_0' {num1} 452@ {num2} 453@

:CPRACE_19516
if 
  $race_selection == 7
goto_if_false @CPRACE_19541
gosub @CPRACE_46263

:CPRACE_19541
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_19573
gosub @CPRACE_50979

:CPRACE_19573
goto @CPRACE_20804

:CPRACE_19580
if 
  $show_race_selection == 0
goto_if_false @CPRACE_19765
if 
  450@ == 1
goto_if_false @CPRACE_19717
if or
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19648
$flag_bcesar_mission_counter += 1

:CPRACE_19648
if 
  $race_selection == 0
goto_if_false @CPRACE_19705
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
remove_blip $cesar_contact_blip
$flag_cesar_mission_counter += 1

:CPRACE_19705
clear_wanted_level $player1
goto @CPRACE_19765

:CPRACE_19717
if or
  $race_selection == 0
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19765
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_19765
clear_onscreen_timer $coords
if 
  is_int_var_greater_than_int_lvar $cprace_best_times($race_selection,30i) > 451@
goto_if_false @CPRACE_19858
if 
  256@ == 1
goto_if_false @CPRACE_19827
set_lvar_int_to_var_int 451@ = $coords
451@ /= 1000

:CPRACE_19827
set_var_int_to_lvar_int $cprace_best_times($race_selection,30i) = 451@
register_fastest_time 145@($race_selection,30i) {value} 451@
222@ = 1

:CPRACE_19858
if 
  256@ > 1
goto_if_false @CPRACE_19930
if 
  is_int_var_greater_than_int_lvar $cprace_best_position($race_selection,30i) > 450@
goto_if_false @CPRACE_19930
set_var_int_to_lvar_int $cprace_best_position($race_selection,30i) = 450@
register_best_position 175@($race_selection,30i) {position} 450@
223@ = 1

:CPRACE_19930
$tripskip_s2flag = 208.0665
$6916 = 297.9241
$6930 = 474.2788
$6944 = 383.4714
$x_hud_pos = 229.648
$y_hud_pos = 313.8785
$x_hud_scale = 0.5858
$y_hud_scale = 2.5296
$6904 = 455.3051
$6932 = 0.4116
$6919 = 339.1096
$6933 = 0.5858
gosub @CPRACE_48584
set_var_int_to_var_int $coords = $game_timer
$coords += 8000
49@ = 14
goto @CPRACE_20804

:CPRACE_20087
$current_Language = get_current_language 
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_20125
set_var_float_to_var_float $x_hud_scale = $6933
goto @CPRACE_20133

:CPRACE_20125
set_var_float_to_var_float $x_hud_scale = $6932

:CPRACE_20133
if 
  256@ == 1
goto_if_false @CPRACE_20201
set_var_float_to_var_float $y = $6916
$y += 25.0
draw_window $tripskip_s2flag {leftTopY} $y {rightBottomX} $6930 {rightBottomY} $6944 {header} 'DUMMY' {zIndex} 3
goto @CPRACE_20276

:CPRACE_20201
if 
  450@ == 1
goto_if_false @CPRACE_20251
draw_window $tripskip_s2flag {leftTopY} $6916 {rightBottomX} $6930 {rightBottomY} $6944 {header} 'RACES18' {zIndex} 3
goto @CPRACE_20276

:CPRACE_20251
draw_window $tripskip_s2flag {leftTopY} $6916 {rightBottomX} $6930 {rightBottomY} $6944 {header} 'RACES_8' {zIndex} 3

:CPRACE_20276
if 
  256@ > 1
goto_if_false @CPRACE_20548
gosub @CPRACE_47593
set_text_justify True
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
if 
  223@ == 1
goto_if_false @CPRACE_20355
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'TOP_POS'
goto @CPRACE_20372

:CPRACE_20355
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 'RACES30'

:CPRACE_20372
gosub @CPRACE_47593
set_text_right_justify True
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  450@ == 1
goto_if_false @CPRACE_20440
display_text $6904 {offsetTop} $y_hud_pos {key} 'RACES26'

:CPRACE_20440
if 
  450@ == 2
goto_if_false @CPRACE_20475
display_text $6904 {offsetTop} $y_hud_pos {key} 'RACES27'

:CPRACE_20475
if 
  450@ == 3
goto_if_false @CPRACE_20510
display_text $6904 {offsetTop} $y_hud_pos {key} 'RACES28'

:CPRACE_20510
if 
  450@ > 3
goto_if_false @CPRACE_20548
display_text_with_number $6904 {offsetTop} $y_hud_pos {key} 'RACES29' {num} 450@

:CPRACE_20548
gosub @CPRACE_47593
set_text_justify True
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
if 
  222@ == 1
goto_if_false @CPRACE_20609
display_text $x_hud_pos {offsetTop} $6919 {key} 'TOPTIME'
goto @CPRACE_20626

:CPRACE_20609
display_text $x_hud_pos {offsetTop} $6919 {key} 'RACES31'

:CPRACE_20626
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47593
set_text_right_justify True
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  453@ > 9
goto_if_false @CPRACE_20753
display_text_with_2_numbers $6904 {offsetTop} $6919 {key} 'TIME' {num1} 452@ {num2} 453@
goto @CPRACE_20776

:CPRACE_20753
display_text_with_2_numbers $6904 {offsetTop} $6919 {key} 'TIME_0' {num1} 452@ {num2} 453@

:CPRACE_20776
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_20797
return 

:CPRACE_20797
goto @CPRACE_20804

:CPRACE_20804
goto @CPRACE_2634

:CPRACE_20811
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_46261 {caseNum1} 0 {caseLabel1} @CPRACE_21069 {caseNum2} 1 {caseLabel2} @CPRACE_21615 {caseNum3} 2 {caseLabel3} @CPRACE_22057 {caseNum4} 3 {caseLabel4} @CPRACE_22739 {caseNum5} 4 {caseLabel5} @CPRACE_23421 {caseNum6} 5 {caseLabel6} @CPRACE_24163 {caseNum7} 6 {caseLabel7} @CPRACE_25115
switch_continued 7 {caseLabel1} @CPRACE_26037 {caseNum2} 8 {caseLabel2} @CPRACE_27091 {caseNum3} 9 {caseLabel3} @CPRACE_28205 {caseNum4} 10 {caseLabel4} @CPRACE_28893 {caseNum5} 11 {caseLabel5} @CPRACE_29611 {caseNum6} 12 {caseLabel6} @CPRACE_30203 {caseNum7} 13 {caseLabel7} @CPRACE_30801 {caseNum8} 14 {caseLabel8} @CPRACE_32149 {caseNum9} 15 {caseLabel9} @CPRACE_33527
switch_continued 16 {caseLabel1} @CPRACE_34455 {caseNum2} 17 {caseLabel2} @CPRACE_35317 {caseNum3} 18 {caseLabel3} @CPRACE_36239 {caseNum4} 19 {caseLabel4} @CPRACE_36981 {caseNum5} 20 {caseLabel5} @CPRACE_38119 {caseNum6} 21 {caseLabel6} @CPRACE_40067 {caseNum7} 22 {caseLabel7} @CPRACE_42255 {caseNum8} 23 {caseLabel8} @CPRACE_43153 {caseNum9} 24 {caseLabel9} @CPRACE_44051
switch_continued 25 {caseLabel1} @CPRACE_44979 {caseNum2} 26 {caseLabel2} @CPRACE_45528 {caseNum3} -1 {caseLabel3} @CPRACE_46261 {caseNum4} -1 {caseLabel4} @CPRACE_46261 {caseNum5} -1 {caseLabel5} @CPRACE_46261 {caseNum6} -1 {caseLabel6} @CPRACE_46261 {caseNum7} -1 {caseLabel7} @CPRACE_46261 {caseNum8} -1 {caseLabel8} @CPRACE_46261 {caseNum9} -1 {caseLabel9} @CPRACE_46261

:CPRACE_21069
454@ = 1492.407
536@ = -1872.365
618@ = 15.8
455@ = 1384.2629
537@ = -1872.015
619@ = 12.3828
456@ = 1075.442
538@ = -1851.978
620@ = 12.391
457@ = 647.3663
539@ = -1734.1851
621@ = 12.4844
458@ = 627.2474
540@ = -1228.55
622@ = 16.9893
459@ = 497.0043
541@ = -1282.818
623@ = 14.6513
460@ = 500.412
542@ = -1326.649
624@ = 14.8178
461@ = 401.0033
543@ = -1404.457
625@ = 32.8973
462@ = 420.3067
544@ = -1450.714
626@ = 29.5842
463@ = 329.1244
545@ = -1631.1121
627@ = 32.1247
464@ = 366.4376
546@ = -1647.349
628@ = 31.7176
465@ = 369.98
547@ = -2030.34
629@ = 5.55
250@ = 12
256@ = 6
set_lvar_int_to_constant 700@ = 133
set_lvar_int_to_constant 701@ = 217
set_lvar_int_to_constant 702@ = 157
set_lvar_int_to_constant 703@ = 248
set_lvar_int_to_constant 704@ = 290
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 517
set_lvar_int_to_constant 717@ = 534
set_lvar_int_to_constant 718@ = 517
set_lvar_int_to_constant 719@ = 536
set_lvar_int_to_constant 720@ = 567
set_lvar_int_to_constant 721@ = 536
209@ = 6
215@ = 0
210@ = 8
216@ = 0
211@ = 2
217@ = 1
212@ = 0
218@ = 0
213@ = 3
219@ = 3
goto @CPRACE_46261

:CPRACE_21615
454@ = 2875.1919
536@ = -1458.85
618@ = 10.5892
455@ = 2875.3621
537@ = -1404.7679
619@ = 10.7143
456@ = 2797.0371
538@ = -1291.152
620@ = 41.389
457@ = 2609.9839
539@ = -1256.458
621@ = 47.9322
458@ = 2371.282
540@ = -1280.4771
622@ = 23.6341
459@ = 2450.5569
541@ = -1444.24
623@ = 23.6318
460@ = 2618.436
542@ = -1444.826
624@ = 31.6234
461@ = 2657.3
543@ = -1404.327
625@ = 30.0795
462@ = 2680.5061
544@ = -1489.556
626@ = 30.2098
463@ = 2755.9519
545@ = -1488.515
627@ = 29.3812
set_lvar_float_to_lvar_float 464@ = 454@
set_lvar_float_to_lvar_float 546@ = 536@
set_lvar_float_to_lvar_float 628@ = 618@
250@ = 11
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_22057
454@ = 261.7816
536@ = -1243.111
618@ = 71.8851
455@ = 312.9973
537@ = -1206.853
619@ = 74.9057
456@ = 440.3485
538@ = -1186.672
620@ = 67.2076
457@ = 623.8817
539@ = -1109.967
621@ = 45.6186
458@ = 745.0934
540@ = -951.0351
622@ = 53.766
459@ = 873.6384
541@ = -860.0975
623@ = 76.5242
460@ = 1053.818
542@ = -777.5837
624@ = 104.7803
461@ = 1248.368
543@ = -731.3474
625@ = 93.7346
462@ = 1372.402
544@ = -675.6946
626@ = 92.6217
463@ = 1328.011
545@ = -583.8703
627@ = 93.4113
464@ = 1167.3149
546@ = -633.0795
628@ = 102.7501
465@ = 968.4116
547@ = -646.252
629@ = 120.7201
466@ = 791.077
548@ = -800.4396
630@ = 65.0537
467@ = 620.9355
549@ = -905.8031
631@ = 62.1261
468@ = 454.9853
550@ = -1013.546
632@ = 92.0091
469@ = 276.8912
551@ = -1104.1591
633@ = 80.0612
470@ = 141.6012
552@ = -1247.267
634@ = 43.792
471@ = 192.4688
553@ = -1380.597
635@ = 47.6608
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_22739
454@ = 1927.48
536@ = -1515.516
618@ = 2.2978
455@ = 2018.401
537@ = -1515.405
619@ = 2.4054
456@ = 2179.0061
538@ = -1559.661
620@ = 1.1797
457@ = 2370.1379
539@ = -1619.553
621@ = 7.3323
458@ = 2570.8411
540@ = -1619.056
622@ = 17.6841
459@ = 2756.8459
541@ = -1657.173
623@ = 11.5191
460@ = 2915.178
542@ = -1534.3621
624@ = 9.875
461@ = 2916.228
543@ = -1333.491
625@ = 9.875
462@ = 2819.3311
544@ = -1142.6379
626@ = 15.7018
463@ = 2622.646
545@ = -1152.8719
627@ = 50.4181
464@ = 2423.186
546@ = -1154.1689
628@ = 30.5642
465@ = 2167.0459
547@ = -1101.915
629@ = 24.3864
466@ = 2006.077
548@ = -1027.839
630@ = 34.3152
467@ = 1835.824
549@ = -991.5906
631@ = 35.8824
468@ = 1636.313
550@ = -1005.15
632@ = 49.8831
469@ = 1617.024
551@ = -1215.833
633@ = 51.0566
470@ = 1577.972
552@ = -1417.8311
634@ = 27.6154
471@ = 1722.823
553@ = -1525.932
635@ = 18.3927
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_23421
454@ = 1357.656
536@ = -1361.671
618@ = 12.3828
455@ = 1357.689
537@ = -1186.4041
619@ = 20.2744
456@ = 1369.741
538@ = -1000.526
620@ = 27.02
457@ = 1505.818
539@ = -868.7814
621@ = 61.0462
458@ = 1452.7939
540@ = -711.5325
622@ = 89.8766
459@ = 1253.572
541@ = -729.2587
623@ = 93.4292
460@ = 1059.306
542@ = -775.9847
624@ = 105.3241
461@ = 878.665
543@ = -858.1913
625@ = 76.8826
462@ = 721.7916
544@ = -980.4561
626@ = 51.9555
463@ = 571.0251
545@ = -1045.203
627@ = 72.2876
464@ = 373.2952
546@ = -1075.644
628@ = 72.8049
465@ = 288.4963
547@ = -1249.7469
629@ = 72.721
466@ = 481.2224
548@ = -1240.976
630@ = 19.3512
467@ = 518.334
549@ = -1377.603
631@ = 14.9457
468@ = 448.0064
550@ = -1540.832
632@ = 27.8796
469@ = 487.4595
551@ = -1661.575
633@ = 20.74
470@ = 687.2253
552@ = -1673.48
634@ = 10.7959
471@ = 866.4786
553@ = -1584.698
635@ = 12.3828
472@ = 1066.729
554@ = -1572.3051
636@ = 12.375
473@ = 1261.214
555@ = -1572.243
637@ = 12.3906
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 558
set_lvar_int_to_constant 717@ = 555
set_lvar_int_to_constant 718@ = 496
set_lvar_int_to_constant 719@ = 555
set_lvar_int_to_constant 720@ = 405
set_lvar_int_to_constant 721@ = 550
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_24163
454@ = 852.0544
536@ = -1405.6219
618@ = 12.217
455@ = 1102.7889
537@ = -1405.766
619@ = 12.428
456@ = 1353.038
538@ = -1405.5439
620@ = 12.3251
457@ = 1600.965
539@ = -1440.8521
621@ = 12.3828
458@ = 1850.6219
540@ = -1461.777
622@ = 12.3984
454@ = 831.7679
536@ = -1405.588
618@ = 12.3849
455@ = 1031.822
537@ = -1405.615
619@ = 12.0966
456@ = 1232.144
538@ = -1405.7321
620@ = 12.0633
457@ = 1429.5081
539@ = -1439.0909
621@ = 12.3828
458@ = 1630.1801
540@ = -1440.858
622@ = 12.3828
459@ = 1829.527
541@ = -1460.804
623@ = 12.3448
460@ = 2029.979
542@ = -1463.381
624@ = 14.4553
461@ = 2175.823
543@ = -1384.403
625@ = 22.8281
462@ = 2342.427
544@ = -1442.324
626@ = 22.8281
463@ = 2191.875
545@ = -1545.934
627@ = 1.1724
464@ = 1997.078
546@ = -1499.951
628@ = 2.3804
465@ = 1797.0649
547@ = -1500.874
629@ = 6.8307
466@ = 1641.002
548@ = -1439.345
630@ = 27.0747
467@ = 1627.5551
549@ = -1280.703
631@ = 41.885
468@ = 1683.507
550@ = -1089.012
632@ = 55.7917
469@ = 1566.054
551@ = -927.5945
633@ = 42.7541
470@ = 1366.105
552@ = -933.6759
634@ = 33.1953
471@ = 1166.087
553@ = -941.9011
635@ = 41.8697
472@ = 966.715
554@ = -962.2038
636@ = 38.1905
473@ = 784.2582
555@ = -1043.979
637@ = 23.6177
474@ = 677.2552
556@ = -1164.1281
638@ = 14.164
475@ = 627.7037
557@ = -1337.9041
639@ = 12.4227
set_lvar_float_to_lvar_float 476@ = 454@
set_lvar_float_to_lvar_float 558@ = 536@
set_lvar_float_to_lvar_float 640@ = 618@
250@ = 23
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 429
set_lvar_int_to_constant 717@ = 541
set_lvar_int_to_constant 718@ = 402
set_lvar_int_to_constant 719@ = 429
set_lvar_int_to_constant 720@ = 541
set_lvar_int_to_constant 721@ = 506
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_25115
454@ = 1331.926
536@ = -2280.51
618@ = 13.1732
455@ = 1331.775
537@ = -2541.6819
619@ = 13.1765
456@ = 1544.309
538@ = -2684.9829
620@ = 7.5074
457@ = 1945.947
539@ = -2685.1311
621@ = 6.5549
458@ = 2175.1411
540@ = -2557.9939
622@ = 13.173
459@ = 2352.719
541@ = -2222.2229
623@ = 13.1737
460@ = 2740.522
542@ = -2168.782
624@ = 10.7349
461@ = 2844.832
543@ = -1812.965
625@ = 10.6737
462@ = 2926.094
544@ = -1421.2629
626@ = 10.657
463@ = 2888.946
545@ = -1022.685
627@ = 10.6607
464@ = 2896.4829
546@ = -621.0989
628@ = 10.63
465@ = 2718.623
547@ = -273.2495
629@ = 27.6705
466@ = 2774.2991
548@ = 119.9424
630@ = 22.8712
467@ = 2612.8201
549@ = 327.3945
631@ = 25.6764
468@ = 2213.9829
550@ = 324.9601
632@ = 32.5307
469@ = 1817.184
551@ = 278.3323
633@ = 21.5314
470@ = 1621.1851
552@ = 312.8743
634@ = 20.8534
471@ = 1608.0291
553@ = 372.27
635@ = 26.4284
472@ = 1658.672
554@ = 317.3336
636@ = 30.0474
473@ = 1651.536
555@ = -68.8376
637@ = 35.9156
474@ = 1668.653
556@ = -369.1116
638@ = 34.3923
475@ = 1699.785
557@ = -665.8258
639@ = 43.3311
476@ = 1640.03
558@ = -1062.329
640@ = 60.8035
477@ = 1594.408
559@ = -1457.834
641@ = 28.3679
478@ = 1622.355
560@ = -1856.505
642@ = 25.4707
479@ = 1452.1591
561@ = -2117.271
643@ = 13.1726
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 4
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 429
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 541
set_lvar_int_to_constant 720@ = 451
set_lvar_int_to_constant 721@ = 411
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_26037
454@ = 1559.983
536@ = 17.468
618@ = 26.1563
455@ = 1556.426
537@ = -94.0345
619@ = 19.4957
456@ = 1434.738
538@ = -214.9645
620@ = 7.3527
457@ = 1321.254
539@ = -195.8984
621@ = 15.7447
458@ = 1211.007
540@ = -102.6927
622@ = 39.3603
459@ = 892.2923
541@ = -88.1123
623@ = 22.4405
460@ = 789.9247
542@ = -124.3171
624@ = 21.3365
461@ = 659.6545
543@ = -196.7497
625@ = 11.7663
462@ = 419.4744
544@ = -302.5507
626@ = 6.446
463@ = 289.8085
545@ = -380.3828
627@ = 7.8753
464@ = 207.4451
546@ = -298.923
628@ = 0.4375
465@ = 182.497
547@ = -217.8004
629@ = 0.4216
466@ = 22.0727
548@ = -207.7681
630@ = 0.5827
467@ = -114.231
549@ = -132.3417
631@ = 2.1236
468@ = -38.4818
550@ = 140.8613
632@ = 2.1234
469@ = -141.4718
551@ = 187.6611
633@ = 6.2406
470@ = -329.7878
552@ = 173.921
634@ = 5.403
471@ = -507.6872
553@ = 221.0444
635@ = 8.7633
472@ = -661.1096
554@ = 226.3879
636@ = 16.7064
473@ = -618.4406
555@ = -67.8995
637@ = 62.3489
474@ = -507.8417
556@ = -45.9077
638@ = 59.2556
475@ = -520.6511
557@ = 79.6011
639@ = 32.2117
476@ = -715.4454
558@ = 225.1288
640@ = 0.2899
477@ = -770.0811
559@ = 130.1324
641@ = 9.4651
478@ = -738.1151
560@ = 25.555
642@ = 32.2336
479@ = -885.785
561@ = -41.3927
643@ = 33.2347
480@ = -716.4521
562@ = 5.1206
644@ = 59.1055
481@ = -759.2693
563@ = -92.0455
645@ = 64.8686
482@ = -826.881
564@ = -167.7603
646@ = 64.99
483@ = -728.9467
565@ = -173.5218
647@ = 65.1248
484@ = -544.8638
566@ = -189.4458
648@ = 77.8383
250@ = 31
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 439
set_lvar_int_to_constant 717@ = 475
set_lvar_int_to_constant 718@ = 526
set_lvar_int_to_constant 719@ = 475
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46261

:CPRACE_27091
454@ = -544.8638
536@ = -189.4458
618@ = 81.8383
455@ = -728.9467
537@ = -173.5218
619@ = 65.1248
456@ = -826.881
538@ = -167.7603
620@ = 64.99
457@ = -759.2693
539@ = -92.0455
621@ = 64.8686
458@ = -716.4521
540@ = 5.1206
622@ = 59.1055
459@ = -885.785
541@ = -41.3927
623@ = 33.2347
460@ = -738.1151
542@ = 25.555
624@ = 32.2336
461@ = -770.0811
543@ = 130.1324
625@ = 9.4651
462@ = -715.4454
544@ = 225.1288
626@ = 0.2899
463@ = -624.6024
545@ = 187.2405
627@ = 15.4381
464@ = -520.6511
546@ = 79.6011
628@ = 32.2117
465@ = -507.8417
547@ = -45.9077
629@ = 59.2556
466@ = -618.4406
548@ = -67.8995
630@ = 62.3489
467@ = -658.3503
549@ = 146.4855
631@ = 28.2693
468@ = -507.6872
550@ = 221.0444
632@ = 8.7633
469@ = -329.7878
551@ = 173.921
633@ = 5.5
470@ = -149.4881
552@ = 189.6471
634@ = 7.2644
471@ = -38.4818
553@ = 140.8613
635@ = 2.1234
472@ = -114.231
554@ = -132.3417
636@ = 2.1236
473@ = 22.0727
555@ = -207.7681
637@ = 0.5827
474@ = 182.497
556@ = -217.8004
638@ = 0.4216
475@ = 207.4451
557@ = -298.923
639@ = 0.4375
476@ = 279.6441
558@ = -378.3416
640@ = 7.9003
477@ = 419.4744
559@ = -302.5507
641@ = 6.446
478@ = 573.52
560@ = -202.8494
642@ = 13.7118
479@ = 748.4567
561@ = -150.8298
643@ = 18.3722
480@ = 820.4231
562@ = -111.5991
644@ = 23.2476
481@ = 1000.325
563@ = -80.3516
645@ = 21.0326
482@ = 1187.3929
564@ = -83.879
646@ = 35.2576
483@ = 1265.847
565@ = -153.0857
647@ = 36.8097
484@ = 1434.738
566@ = -214.9645
648@ = 7.3527
485@ = 1548.963
567@ = -146.2702
649@ = 16.4932
486@ = 1559.983
568@ = 17.468
650@ = 23.1563
250@ = 33
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 477
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 562
set_lvar_int_to_constant 719@ = 477
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46261

:CPRACE_28205
454@ = -796.8273
536@ = -2468.5291
618@ = 83.6549
455@ = -938.5198
537@ = -2364.511
619@ = 57.0608
456@ = -1065.656
538@ = -2379.436
620@ = 46.5486
457@ = -1247.823
539@ = -2313.5281
621@ = 19.8007
458@ = -1356.137
540@ = -2180.365
622@ = 21.3467
459@ = -1541.303
541@ = -2154.782
623@ = 5.8607
460@ = -1674.876
542@ = -2235.1321
624@ = 33.8691
461@ = -1839.937
543@ = -2349.3679
625@ = 31.9587
462@ = -1841.037
544@ = -2454.3999
626@ = 27.4044
463@ = -1702.0439
545@ = -2587.9761
627@ = 26.1706
464@ = -1508.332
546@ = -2634.7329
628@ = 46.8766
465@ = -1310.905
547@ = -2637.832
629@ = 12.808
466@ = -1122.6169
548@ = -2652.592
630@ = 15.4117
467@ = -934.2363
549@ = -2668.4729
631@ = 80.3479
468@ = -753.5882
550@ = -2672.7849
632@ = 84.0788
469@ = -668.018
551@ = -2496.988
633@ = 37.5787
470@ = -550.4019
552@ = -2334.5391
634@ = 26.8502
471@ = -366.3848
553@ = -2257.25
635@ = 41.7144
472@ = -276.1146
554@ = -2189.364
636@ = 27.7264
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_28893
454@ = -1936.791
536@ = -2452.2351
618@ = 29.6377
455@ = -1862.54
537@ = -2379.437
619@ = 30.1425
456@ = -1690.144
538@ = -2303.8459
620@ = 43.3626
457@ = -1676.317
539@ = -2132.699
621@ = 35.2082
458@ = -1855.421
540@ = -2087.1169
622@ = 58.3697
459@ = -1919.802
541@ = -1937.457
623@ = 78.5313
460@ = -1749.334
542@ = -1899.519
624@ = 95.8199
461@ = -1571.292
543@ = -1904.166
625@ = 84.3076
462@ = -1483.7841
544@ = -1783.286
626@ = 49.8768
463@ = -1429.8781
545@ = -1915.641
627@ = 25.1751
464@ = -1301.801
546@ = -2084.054
628@ = 22.9116
465@ = -1269.913
547@ = -2248.7361
629@ = 21.3152
466@ = -1146.514
548@ = -2371.5081
630@ = 27.0467
467@ = -959.5773
549@ = -2306.27
631@ = 56.1859
468@ = -867.9595
550@ = -2180.8911
632@ = 25.6567
469@ = -843.4177
551@ = -2018.734
633@ = 20.9828
470@ = -767.7295
552@ = -1865.533
634@ = 11.4149
471@ = -666.3682
553@ = -1996.276
635@ = 23.9143
472@ = -486.6196
554@ = -2025.765
636@ = 48.245
473@ = -323.4612
555@ = -1914.2061
637@ = 11.1951
250@ = 20
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 568
set_lvar_int_to_constant 717@ = 568
set_lvar_int_to_constant 718@ = 568
set_lvar_int_to_constant 719@ = 568
set_lvar_int_to_constant 720@ = 568
set_lvar_int_to_constant 721@ = 568
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_29611
454@ = -2728.3091
536@ = -310.8731
618@ = 6.0391
455@ = -2668.6709
537@ = -251.6207
619@ = 5.4984
456@ = -2655.978
538@ = -104.6751
620@ = 2.9982
457@ = -2460.835
539@ = -69.9766
621@ = 31.2
458@ = -2421.2629
540@ = 55.6089
622@ = 34.0156
459@ = -2545.26
541@ = 137.9111
623@ = 15.2177
460@ = -2604.136
542@ = 136.8579
624@ = 3.1797
461@ = -2558.6609
543@ = 245.625
625@ = 10.7931
462@ = -2578.5039
544@ = 345.8331
626@ = 7.2168
463@ = -2706.282
545@ = 317.6024
627@ = 3.1797
464@ = -2809.2439
546@ = 232.3965
628@ = 6.0313
465@ = -2757.749
547@ = 138.2248
629@ = 5.9033
466@ = -2758.3899
548@ = -43.991
630@ = 6.1263
467@ = -2756.8921
549@ = -184.0135
631@ = 5.8843
468@ = -2812.4641
550@ = -299.5974
632@ = 6.039
set_lvar_float_to_lvar_float 469@ = 454@
set_lvar_float_to_lvar_float 551@ = 536@
set_lvar_float_to_lvar_float 633@ = 618@
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 571
set_lvar_int_to_constant 717@ = 571
set_lvar_int_to_constant 718@ = 571
set_lvar_int_to_constant 719@ = 571
set_lvar_int_to_constant 720@ = 571
set_lvar_int_to_constant 721@ = 571
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_30203
454@ = -2657.1641
536@ = 1153.8719
618@ = 34.7396
455@ = -2593.2209
537@ = 1217.854
619@ = 34.7402
456@ = -2312.2881
538@ = 1176.387
620@ = 49.608
457@ = -2157.1931
539@ = 1268.197
621@ = 26.0127
458@ = -1959.526
540@ = 1287.205
622@ = 6.7514
459@ = -1741.076
541@ = 1325.298
623@ = 6.083
460@ = -1759.865
542@ = 1269.147
624@ = 8.8598
461@ = -1884.2419
543@ = 1160.691
625@ = 45.0107
462@ = -1897.101
544@ = 960.1686
626@ = 34.7366
463@ = -1998.178
545@ = 841.1865
627@ = 45.0219
464@ = -2189.259
546@ = 808.5273
628@ = 56.0602
465@ = -2389.186
547@ = 808.6409
629@ = 34.7495
466@ = -2589.6919
548@ = 808.5219
630@ = 49.5411
467@ = -2711.488
549@ = 812.8809
631@ = 48.9309
468@ = -2750.894
550@ = 890.6993
632@ = 65.8952
469@ = -2653.9121
551@ = 1157.345
633@ = 34.7386
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 559
set_lvar_int_to_constant 717@ = 589
set_lvar_int_to_constant 718@ = 559
set_lvar_int_to_constant 719@ = 565
set_lvar_int_to_constant 720@ = 558
set_lvar_int_to_constant 721@ = 602
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_30801
454@ = -1584.141
536@ = 1053.439
618@ = 6.8392
455@ = -1584.1281
537@ = 1150.261
619@ = 6.8387
456@ = -1699.077
538@ = 1312.02
620@ = 6.8293
457@ = -1875.891
539@ = 1352.059
621@ = 6.8322
458@ = -2060.741
540@ = 1274.452
622@ = 8.0659
459@ = -2258.3059
541@ = 1257.682
623@ = 42.6038
460@ = -2143.281
542@ = 1075.652
624@ = 79.1249
461@ = -2143.1411
543@ = 896.6196
625@ = 79.6432
462@ = -2143.084
544@ = 696.6971
626@ = 67.6451
463@ = -2146.7371
545@ = 532.8465
627@ = 34.8181
464@ = -2055.564
546@ = 504.0781
628@ = 34.8168
465@ = -1968.175
547@ = 605.5881
629@ = 34.8199
466@ = -1820.3929
548@ = 475.0548
630@ = 23.4295
467@ = -1876.903
549@ = 288.4981
631@ = 32.6699
468@ = -1897.585
550@ = 87.7896
632@ = 37.9384
469@ = -1911.151
551@ = -214.2394
633@ = 38.032
470@ = -1910.974
552@ = -515.5727
634@ = 38.0323
471@ = -1910.675
553@ = -816.3037
635@ = 44.7432
472@ = -1910.658
554@ = -1117.4091
636@ = 38.0214
473@ = -1907.276
555@ = -1317.626
637@ = 39.3164
474@ = -1996.896
556@ = -1289.264
638@ = 37.3518
475@ = -2153.53
557@ = -1031.597
639@ = 32.3638
476@ = -2205.5669
558@ = -859.1885
640@ = 54.6872
477@ = -2202.666
559@ = -759.2505
641@ = 62.3413
478@ = -2352.2549
560@ = -775.5399
642@ = 95.1597
479@ = -2421.5439
561@ = -610.6656
643@ = 132.3493
480@ = -2627.1379
562@ = -496.4363
644@ = 70.09
481@ = -2351.2471
563@ = -460.0875
645@ = 79.9485
482@ = -2599.9961
564@ = -372.7368
646@ = 43.7794
483@ = -2702.314
565@ = -530.1367
647@ = 12.4366
484@ = -2699.197
566@ = -401.205
648@ = 7.7008
485@ = -2210.2549
567@ = -348.0724
649@ = 36.8384
486@ = -1897.734
568@ = -314.4976
650@ = 48.9384
487@ = -1890.36
569@ = -45.4288
651@ = 38.0312
488@ = -1886.557
570@ = 55.293
652@ = 38.0326
489@ = -1848.0389
571@ = 242.5393
653@ = 30.825
490@ = -1736.635
572@ = 316.5836
654@ = 6.039
491@ = -1682.981
573@ = 367.1342
655@ = 6.028
492@ = -1559.293
574@ = 528.332
656@ = 6.8409
493@ = -1535.552
575@ = 827.4427
657@ = 6.8401
494@ = -1584.129
576@ = 1115.601
658@ = 6.8376
250@ = 41
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 402
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 506
set_lvar_int_to_constant 719@ = 506
set_lvar_int_to_constant 720@ = 477
set_lvar_int_to_constant 721@ = 603
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_32149
454@ = -1761.655
536@ = -606.3881
618@ = 15.8961
455@ = -1760.54
537@ = -686.4133
619@ = 24.2389
456@ = -1502.876
538@ = -820.2545
620@ = 61.3357
457@ = -1219.332
539@ = -759.4814
621@ = 62.0285
458@ = -1096.152
540@ = -489.1358
622@ = 32.7156
459@ = -911.5416
541@ = -455.9558
623@ = 26.7166
460@ = -621.3364
542@ = -393.158
624@ = 22.1878
461@ = -395.5605
543@ = -533.522
625@ = 17.6561
462@ = -372.2669
544@ = -819.4839
626@ = 28.1926
463@ = -584.5377
545@ = -1160.572
627@ = 21.8153
464@ = -659.3533
546@ = -1548.814
628@ = 22.1495
465@ = -717.1517
547@ = -1697.205
629@ = 48.2586
466@ = -714.6181
548@ = -1395.094
630@ = 60.5799
467@ = -764.046
549@ = -1385.027
631@ = 82.2146
468@ = -762.7014
550@ = -1685.041
632@ = 96.9103
469@ = -945.4141
551@ = -1903.2271
633@ = 81.3436
470@ = -1104.541
552@ = -2155.325
634@ = 34.6761
471@ = -1186.201
553@ = -2444.541
635@ = 54.4532
472@ = -982.3237
554@ = -2611.624
636@ = 86.253
473@ = -713.2529
555@ = -2336.6169
637@ = 36.4201
474@ = -512.3461
556@ = -2166.417
638@ = 53.5212
475@ = -258.5978
557@ = -2074.8721
639@ = 36.648
476@ = -260.1367
558@ = -1777.191
640@ = 7.5735
477@ = -57.3444
559@ = -1601.375
641@ = 1.3776
478@ = -124.296
560@ = -1466.575
642@ = 2.4045
479@ = -143.4815
561@ = -1270.317
643@ = 2.404
480@ = -113.7683
562@ = -998.821
644@ = 23.9178
481@ = -377.3843
563@ = -838.2166
645@ = 47.1444
482@ = -626.0056
564@ = -989.012
646@ = 66.0268
483@ = -877.4561
565@ = -1097.426
647@ = 96.1699
484@ = -925.9376
566@ = -1391.353
648@ = 126.2905
485@ = -1219.141
567@ = -1347.249
649@ = 122.5235
486@ = -1407.723
568@ = -1414.45
650@ = 104.9232
487@ = -1577.0129
569@ = -1168.802
651@ = 102.3586
488@ = -1626.067
570@ = -882.9627
652@ = 97.5243
489@ = -1744.303
571@ = -853.2858
653@ = 77.1834
490@ = -1684.6121
572@ = -1143.291
654@ = 72.4364
491@ = -1549.538
573@ = -1286.347
655@ = 57.1135
492@ = -1525.757
574@ = -1383.531
656@ = 45.1796
493@ = -1626.142
575@ = -1375.587
657@ = 45.2062
494@ = -1800.174
576@ = -1016.79
658@ = 51.6322
495@ = -1817.478
577@ = -617.6195
659@ = 15.9507
250@ = 42
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 541
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_33527
454@ = -2001.856
536@ = 1076.302
618@ = 54.5637
455@ = -2302.386
537@ = 1076.754
619@ = 54.5859
456@ = -2596.7849
538@ = 1136.728
620@ = 54.4297
457@ = -2673.7671
539@ = 1427.293
621@ = 54.4271
458@ = -2673.7749
540@ = 1728.239
622@ = 66.8937
459@ = -2673.8069
541@ = 2028.896
623@ = 57.2377
460@ = -2731.7419
542@ = 2323.1831
624@ = 67.5411
461@ = -2622.094
543@ = 2602.5969
625@ = 68.7
462@ = -2322.772
544@ = 2637.1001
626@ = 53.2135
463@ = -2027.1219
545@ = 2585.865
627@ = 53.9804
464@ = -1885.621
546@ = 2321.522
628@ = 38.5395
465@ = -1675.296
547@ = 2107.697
629@ = 17.3995
466@ = -1629.976
548@ = 1810.828
630@ = 11.059
467@ = -1347.988
549@ = 1705.67
631@ = 4.8179
468@ = -1125.87
550@ = 1504.095
632@ = 22.1877
469@ = -1010.766
551@ = 1227.0439
633@ = 31.1773
470@ = -908.7908
552@ = 944.9431
634@ = 17.337
471@ = -744.0402
553@ = 694.0286
635@ = 16.9982
472@ = -469.1425
554@ = 573.061
636@ = 16.0649
473@ = -168.3162
555@ = 562.0268
637@ = 14.9046
474@ = 110.1296
556@ = 673.4105
638@ = 4.6336
475@ = 400.681
557@ = 749.8367
639@ = 5.0607
476@ = 686.3097
558@ = 656.6995
640@ = 7.8963
477@ = 975.3585
559@ = 738.1249
641@ = 9.6719
478@ = 1242.045
560@ = 876.267
642@ = 13.1519
479@ = 1226.8101
561@ = 1169.877
643@ = 5.8125
480@ = 1226.6639
562@ = 1469.936
644@ = 5.742
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 429
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_34455
454@ = -878.0113
536@ = 1947.484
618@ = 59.1845
455@ = -857.6418
537@ = 1873.25
619@ = 59.183
456@ = -1030.689
538@ = 1853.546
620@ = 58.8558
457@ = -1093.182
539@ = 1748.0229
621@ = 31.6318
458@ = -902.488
540@ = 1687.666
622@ = 26.267
459@ = -847.1951
541@ = 1495.5811
623@ = 17.5443
460@ = -782.4052
542@ = 1305.811
624@ = 12.6016
461@ = -616.3677
543@ = 1193.645
625@ = 9.2126
462@ = -474.1805
544@ = 1052.0861
626@ = 10.0313
463@ = -319.1918
545@ = 925.6066
627@ = 10.3099
464@ = -267.4492
546@ = 825.0159
628@ = 13.2739
465@ = -188.4539
547@ = 1007.19
629@ = 18.5885
466@ = -164.8873
548@ = 1198.2629
630@ = 18.5938
467@ = -142.1028
549@ = 1250.022
631@ = 18.5869
468@ = -341.5205
550@ = 1265.6949
632@ = 22.1515
469@ = -440.031
551@ = 1439.6689
633@ = 32.334
470@ = -438.1716
552@ = 1639.673
634@ = 34.6319
471@ = -381.6811
553@ = 1831.026
635@ = 49.8567
472@ = -433.4627
554@ = 1883.9919
636@ = 59.8611
473@ = -465.4392
555@ = 1768.532
637@ = 71.9576
474@ = -464.5399
556@ = 1968.423
638@ = 81.2536
475@ = -411.0666
557@ = 2074.5959
639@ = 60.6433
476@ = -610.1716
558@ = 2050.887
640@ = 59.1798
477@ = -790.69
559@ = 2053.9099
641@ = 59.1798
set_lvar_float_to_lvar_float 478@ = 454@
set_lvar_float_to_lvar_float 560@ = 536@
set_lvar_float_to_lvar_float 642@ = 618@
250@ = 25
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_35317
454@ = -375.6397
536@ = 2204.217
618@ = 41.0938
455@ = -388.8497
537@ = 2258.0559
619@ = 40.9952
456@ = -410.6823
538@ = 2455.7471
620@ = 42.9124
457@ = -608.4162
539@ = 2447.1899
621@ = 71.7551
458@ = -715.864
540@ = 2536.594
622@ = 72.7592
459@ = -713.7043
541@ = 2697.4661
623@ = 53.2852
460@ = -912.5499
542@ = 2721.9871
624@ = 44.8627
461@ = -1112.755
543@ = 2698.6509
625@ = 44.875
462@ = -1238.171
544@ = 2679.8611
626@ = 45.9321
463@ = -1359.55
545@ = 2659.5569
627@ = 50.4683
464@ = -1545.7729
546@ = 2732.354
628@ = 61.3062
465@ = -1746.036
547@ = 2727.448
629@ = 59.0648
466@ = -1860.2469
548@ = 2563.043
630@ = 48.8929
467@ = -2002.1331
549@ = 2422.603
631@ = 32.9752
468@ = -1961.463
550@ = 2227.8911
632@ = 10.7077
469@ = -1807.124
551@ = 2100.1001
633@ = 7.4268
470@ = -1782.09
552@ = 1901.775
634@ = 14.7248
471@ = -1591.908
553@ = 1837.29
635@ = 24.8515
472@ = -1392.057
554@ = 1852.968
636@ = 35.4945
473@ = -1199.365
555@ = 1799.6379
637@ = 40.4346
474@ = -1008.306
556@ = 1855.604
638@ = 61.6784
475@ = -857.7028
557@ = 1874.014
639@ = 59.1758
476@ = -758.5721
558@ = 2048.2319
640@ = 59.1866
477@ = -563.1158
559@ = 2005.574
641@ = 59.2474
478@ = -468.9791
560@ = 2056.811
642@ = 59.875
479@ = -392.3245
561@ = 2154.448
643@ = 42.1847
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_36239
454@ = 1446.426
536@ = 834.0658
618@ = 5.8125
455@ = 1747.259
537@ = 834.025
619@ = 8.6815
456@ = 2047.335
538@ = 834.1916
620@ = 5.7422
457@ = 2348.7219
539@ = 834.1481
621@ = 5.7422
458@ = 2637.9199
540@ = 915.6277
622@ = 5.7498
459@ = 2726.824
541@ = 1202.266
623@ = 5.7422
460@ = 2726.698
542@ = 1502.967
624@ = 5.7422
461@ = 2726.958
543@ = 1804.343
625@ = 5.7393
462@ = 2726.5791
544@ = 2125.7959
626@ = 5.7269
463@ = 2705.1721
545@ = 2405.5669
627@ = 5.7277
464@ = 2489.2671
546@ = 2614.2729
628@ = 4.1679
465@ = 2188.479
547@ = 2609.6289
629@ = 5.8164
466@ = 1898.309
548@ = 2529.155
630@ = 5.8125
467@ = 1603.524
549@ = 2473.083
631@ = 5.8516
468@ = 1305.181
550@ = 2439.1899
632@ = 5.7422
469@ = 1208.2321
551@ = 2154.5139
633@ = 5.7422
470@ = 1208.38
552@ = 1853.837
634@ = 5.7422
471@ = 1208.322
553@ = 1553.025
635@ = 5.7422
472@ = 1208.126
554@ = 1252.557
636@ = 5.7498
473@ = 1229.187
555@ = 952.9079
637@ = 5.8125
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 562
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 411
set_lvar_int_to_constant 720@ = 562
set_lvar_int_to_constant 721@ = 451
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_36981
454@ = 1796.901
536@ = -2593.3291
618@ = 12.5982
455@ = 1596.915
537@ = -2592.123
619@ = 25.9969
456@ = 1425.429
538@ = -2549.1069
620@ = 37.8234
457@ = 1280.556
539@ = -2394.5859
621@ = 52.2127
458@ = 1296.165
540@ = -2194.1311
622@ = 72.3519
459@ = 1317.012
541@ = -1995.026
623@ = 77.657
460@ = 1385.2159
542@ = -1807.25
624@ = 64.6153
461@ = 1501.202
543@ = -1642.892
625@ = 78.2774
462@ = 1597.783
544@ = -1466.853
626@ = 87.9007
463@ = 1621.693
545@ = -1267.59
627@ = 84.5704
464@ = 1592.626
546@ = -1069.313
628@ = 87.8825
465@ = 1477.0959
547@ = -905.3071
629@ = 103.4455
466@ = 1388.884
548@ = -725.4239
630@ = 125.9394
467@ = 1320.715
549@ = -536.3066
631@ = 127.73
468@ = 1233.948
550@ = -356.5205
632@ = 103.7008
469@ = 1235.2209
551@ = -155.8231
633@ = 83.5
470@ = 1362.454
552@ = -2.0532
634@ = 70.1118
471@ = 1562.073
553@ = -27.0897
635@ = 64.6716
472@ = 1670.313
554@ = -196.5335
636@ = 77.4671
473@ = 1698.697
555@ = -394.7666
637@ = 84.513
474@ = 1841.239
556@ = -535.4985
638@ = 105.1396
475@ = 1999.777
557@ = -658.853
639@ = 125.3019
476@ = 2117.771
558@ = -819.4944
640@ = 144.8639
477@ = 2200.1809
559@ = -1001.27
641@ = 129.4889
478@ = 2265.8049
560@ = -1184.584
642@ = 83.0669
479@ = 2296.145
561@ = -1383.394
643@ = 62.1655
480@ = 2321.6079
562@ = -1582.03
644@ = 63.1144
481@ = 2400.4419
563@ = -1766.2271
645@ = 56.7954
482@ = 2525.2561
564@ = -1922.6801
646@ = 52.2529
483@ = 2593.7261
565@ = -2111.7339
647@ = 53.1139
484@ = 2575.0491
566@ = -2313.6311
648@ = 53.9683
485@ = 2455.397
567@ = -2476.6331
649@ = 54.8922
486@ = 2264.071
568@ = -2548.592
650@ = 55.7578
487@ = 2065.2849
569@ = -2571.635
651@ = 56.5966
488@ = 1862.502
570@ = -2582.0991
652@ = 54.6357
250@ = 35
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 476
set_lvar_int_to_constant 717@ = 476
set_lvar_int_to_constant 718@ = 476
set_lvar_int_to_constant 719@ = 476
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_38119
454@ = -1582.67
536@ = -89.9953
618@ = 13.1683
455@ = -1439.187
537@ = 53.2109
619@ = 30.0
456@ = -1286.686
538@ = 185.0573
620@ = 32.9885
457@ = -1091.876
539@ = 137.3885
621@ = 46.7629
458@ = -1042.1689
540@ = -59.4087
622@ = 43.603
459@ = -1047.567
541@ = -259.0437
623@ = 23.8409
460@ = -1126.559
542@ = -445.5607
624@ = 28.0502
461@ = -1261.24
543@ = -598.8228
625@ = 37.4576
462@ = -1444.803
544@ = -690.5997
626@ = 52.7263
463@ = -1649.0081
545@ = -681.264
627@ = 60.8852
464@ = -1845.585
546@ = -636.4395
628@ = 61.1217
465@ = -2044.818
547@ = -658.4432
629@ = 71.2804
466@ = -2206.165
548@ = -778.5996
630@ = 85.9739
467@ = -2240.928
549@ = -976.7443
631@ = 75.2422
468@ = -2139.48
550@ = -1148.6169
632@ = 61.3795
469@ = -2028.634
551@ = -1315.712
633@ = 40.653
470@ = -1884.623
552@ = -1459.337
634@ = 37.0927
471@ = -1725.283
553@ = -1581.193
635@ = 51.3609
472@ = -1548.501
554@ = -1676.223
636@ = 63.2502
473@ = -1368.613
555@ = -1769.197
637@ = 52.099
474@ = -1327.042
556@ = -1980.8831
638@ = 35.4768
475@ = -1462.6591
557@ = -2110.3401
639@ = 22.6174
476@ = -1551.068
558@ = -2287.2759
640@ = 56.7071
477@ = -1624.645
559@ = -2464.302
641@ = 115.5442
478@ = -1735.012
560@ = -2633.092
642@ = 101.7228
479@ = -1673.618
561@ = -2817.3201
643@ = 50.492
480@ = -1529.3979
562@ = -2958.864
644@ = 35.2493
481@ = -1331.87
563@ = -3016.8149
645@ = 36.5563
482@ = -1140.517
564@ = -2957.8379
646@ = 35.4633
483@ = -1133.483
565@ = -2757.115
647@ = 30.2641
484@ = -1219.593
566@ = -2575.6001
648@ = 35.8018
485@ = -1227.193
567@ = -2375.0991
649@ = 31.7209
486@ = -1172.746
568@ = -2182.804
650@ = 45.2393
487@ = -1144.312
569@ = -1988.0179
651@ = 83.1497
488@ = -1021.386
570@ = -1832.821
652@ = 115.2484
489@ = -943.5054
571@ = -1647.9919
653@ = 133.3276
490@ = -900.7032
572@ = -1450.585
654@ = 142.0757
491@ = -884.4996
573@ = -1249.642
655@ = 148.1781
492@ = -880.2889
574@ = -1048.99
656@ = 158.8745
493@ = -936.6008
575@ = -855.3414
657@ = 160.157
494@ = -972.9082
576@ = -660.9503
658@ = 116.3043
495@ = -980.3859
577@ = -464.2646
659@ = 79.1644
496@ = -818.388
578@ = -348.3954
660@ = 51.4388
497@ = -617.8265
579@ = -330.2328
661@ = 37.1987
498@ = -415.4925
580@ = -339.8519
662@ = 28.2761
499@ = -248.3391
581@ = -451.8987
663@ = 18.5819
500@ = -192.9961
582@ = -643.989
664@ = 8.889
501@ = -128.7125
583@ = -835.6478
665@ = 24.9195
502@ = 63.3296
584@ = -892.0873
666@ = 40.4431
503@ = 236.1952
585@ = -791.0125
667@ = 46.7307
504@ = 298.5167
586@ = -600.2706
668@ = 53.5437
505@ = 326.4258
587@ = -400.9587
669@ = 50.4641
506@ = 308.5928
588@ = -201.9229
670@ = 40.3219
507@ = 244.4628
589@ = -8.211
671@ = 31.0744
508@ = 129.2121
590@ = 155.3022
672@ = 27.6231
509@ = -37.7018
591@ = 268.3331
673@ = 26.3544
510@ = -224.3873
592@ = 341.0904
674@ = 28.1078
511@ = -420.1607
593@ = 382.1896
675@ = 29.8681
512@ = -622.4773
594@ = 381.915
676@ = 31.6354
513@ = -822.824
595@ = 370.0051
677@ = 33.4142
514@ = -1012.349
596@ = 300.3856
678@ = 35.7468
515@ = -1193.1
597@ = 214.7394
679@ = 38.0629
250@ = 62
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 513
set_lvar_int_to_constant 717@ = 513
set_lvar_int_to_constant 718@ = 513
set_lvar_int_to_constant 719@ = 513
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_40067
454@ = 366.982
536@ = 2502.595
618@ = 15.5571
455@ = 116.652
537@ = 2502.9021
619@ = 47.5682
456@ = -133.6242
538@ = 2524.3921
620@ = 55.1281
457@ = -377.8474
539@ = 2588.0681
621@ = 67.6866
458@ = -604.1302
540@ = 2694.6389
622@ = 84.7931
459@ = -838.685
541@ = 2779.9009
623@ = 69.2036
460@ = -1045.629
542@ = 2639.2791
624@ = 69.0984
461@ = -984.3267
543@ = 2395.5081
625@ = 64.5187
462@ = -873.4733
544@ = 2171.186
626@ = 64.5549
463@ = -770.134
545@ = 1943.248
627@ = 70.927
464@ = -653.4092
546@ = 1720.47
628@ = 47.6015
465@ = -578.5898
547@ = 1481.972
629@ = 21.5084
466@ = -521.8337
548@ = 1238.437
630@ = 11.6736
467@ = -469.9443
549@ = 995.721
631@ = 51.4066
468@ = -525.42
550@ = 750.7462
632@ = 44.2215
469@ = -664.0441
551@ = 541.0659
633@ = 15.9243
470@ = -914.7918
552@ = 536.2426
634@ = 11.804
471@ = -1131.918
553@ = 661.8135
635@ = 13.6564
472@ = -1309.833
554@ = 839.316
636@ = 10.7039
473@ = -1449.3719
555@ = 1045.777
637@ = 31.9947
474@ = -1603.1219
556@ = 1243.21
638@ = 38.6648
475@ = -1813.101
557@ = 1379.4399
639@ = 28.4044
476@ = -2061.489
558@ = 1418.549
640@ = 22.0099
477@ = -2312.469
559@ = 1430.699
641@ = 42.3744
478@ = -2522.7451
560@ = 1564.194
642@ = 75.9034
479@ = -2689.238
561@ = 1753.745
643@ = 99.5865
480@ = -2759.3711
562@ = 1994.265
644@ = 110.8744
481@ = -2682.772
563@ = 2233.0969
645@ = 113.4608
482@ = -2493.907
564@ = 2397.5061
646@ = 102.0156
483@ = -2245.1089
565@ = 2418.7729
647@ = 83.5877
484@ = -1994.605
566@ = 2407.9419
648@ = 87.4376
485@ = -1751.4709
567@ = 2349.74
649@ = 90.2881
486@ = -1535.099
568@ = 2217.656
650@ = 75.7349
487@ = -1305.302
569@ = 2118.7161
651@ = 74.7752
488@ = -1064.807
570@ = 2187.7681
652@ = 66.2415
489@ = -814.3556
571@ = 2195.8721
653@ = 56.1521
490@ = -563.2742
572@ = 2203.3301
654@ = 60.9129
491@ = -313.3741
573@ = 2229.26
655@ = 73.2015
492@ = -66.3647
574@ = 2178.082
656@ = 71.9294
493@ = 186.4198
575@ = 2211.2129
657@ = 71.6732
494@ = 390.8383
576@ = 2356.5139
658@ = 65.1402
495@ = 639.1594
577@ = 2385.26
659@ = 47.4816
496@ = 857.994
578@ = 2510.157
660@ = 50.2583
497@ = 929.9869
579@ = 2748.3521
661@ = 77.8011
498@ = 760.5828
580@ = 2935.73
662@ = 91.5673
499@ = 512.0109
581@ = 2901.74
663@ = 93.8596
500@ = 309.843
582@ = 2752.8921
664@ = 93.5908
501@ = 153.0242
583@ = 2560.321
665@ = 64.3547
502@ = 18.2657
584@ = 2347.9041
666@ = 66.4087
503@ = -99.4455
585@ = 2126.343
667@ = 75.4819
504@ = -257.6325
586@ = 1931.184
668@ = 75.4922
505@ = -392.7389
587@ = 1720.594
669@ = 94.1061
506@ = -499.7809
588@ = 1492.545
670@ = 58.172
507@ = -687.7847
589@ = 1327.026
671@ = 45.0028
508@ = -881.8704
590@ = 1169.769
672@ = 68.6343
509@ = -1075.92
591@ = 1008.155
673@ = 61.9286
510@ = -1272.957
592@ = 852.6403
674@ = 61.1137
511@ = -1457.5389
593@ = 680.1183
675@ = 69.2464
512@ = -1634.6479
594@ = 496.5454
676@ = 79.7593
513@ = -1839.814
595@ = 342.0907
677@ = 77.0974
514@ = -2063.729
596@ = 218.3637
678@ = 74.2748
515@ = -2305.2571
597@ = 145.857
679@ = 72.5908
516@ = -2554.304
598@ = 126.6046
680@ = 96.9355
517@ = -2745.509
599@ = -33.5993
681@ = 80.174
518@ = -2863.9419
600@ = -255.546
682@ = 62.7643
519@ = -2912.281
601@ = -500.7706
683@ = 51.8291
520@ = -2947.3879
602@ = -759.2774
684@ = 44.0041
521@ = -2962.4231
603@ = -1011.333
685@ = 42.2517
522@ = -2955.5061
604@ = -1276.0229
686@ = 45.302
523@ = -3000.9041
605@ = -1528.563
687@ = 51.004
250@ = 70
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 520
set_lvar_int_to_constant 717@ = 520
set_lvar_int_to_constant 718@ = 520
set_lvar_int_to_constant 719@ = 520
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_42255
454@ = 381.9952
536@ = 2542.0879
618@ = 15.6876
455@ = 304.6997
537@ = 2547.0569
619@ = 37.975
456@ = -97.4654
538@ = 2554.8411
620@ = 32.4746
457@ = -102.6455
539@ = 2699.2361
621@ = 63.5945
458@ = -221.948
540@ = 2718.0801
622@ = 82.385
459@ = -418.3279
541@ = 2691.0811
623@ = 78.5077
460@ = -392.2611
542@ = 2492.1931
624@ = 84.257
461@ = -360.1944
543@ = 2294.6379
625@ = 79.344
462@ = -238.1485
544@ = 2230.0071
626@ = 81.9684
463@ = -287.1143
545@ = 2091.03
627@ = 70.2663
464@ = -481.0875
546@ = 2051.74
628@ = 76.2466
465@ = -665.1192
547@ = 2131.252
629@ = 77.2696
466@ = -845.4529
548@ = 2218.8611
630@ = 80.0327
467@ = -1044.866
549@ = 2207.615
631@ = 67.0078
468@ = -1234.234
550@ = 2142.3931
632@ = 66.1648
469@ = -1424.931
551@ = 2205.699
633@ = 70.8862
470@ = -1571.2371
552@ = 2247.7661
634@ = 65.1073
471@ = -1745.637
553@ = 2292.511
635@ = 49.3695
472@ = -1945.6021
554@ = 2285.9131
636@ = 44.2433
473@ = -1953.881
555@ = 2484.877
637@ = 63.2602
474@ = -1895.095
556@ = 2633.0339
638@ = 74.4549
475@ = -1706.873
557@ = 2703.2319
639@ = 72.8798
476@ = -1505.724
558@ = 2721.0339
640@ = 69.9706
477@ = -1305.595
559@ = 2708.321
641@ = 66.4619
478@ = -1105.89
560@ = 2731.6111
642@ = 62.9933
479@ = -905.1519
561@ = 2728.8301
643@ = 64.0124
480@ = -704.1036
562@ = 2733.8979
644@ = 66.2347
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 487
set_lvar_int_to_constant 717@ = 487
set_lvar_int_to_constant 718@ = 487
set_lvar_int_to_constant 719@ = 487
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_43153
454@ = -1962.871
536@ = 628.0812
618@ = 150.2844
455@ = -1848.3409
537@ = 531.9294
619@ = 86.1743
456@ = -1827.913
538@ = 399.3668
620@ = 29.91
457@ = -1751.361
539@ = 326.9781
621@ = 25.4958
458@ = -1647.958
540@ = 412.8291
622@ = 26.6578
459@ = -1560.5129
541@ = 532.7433
623@ = 18.6913
460@ = -1572.197
542@ = 638.3369
624@ = 25.3806
461@ = -1700.5551
543@ = 706.7762
625@ = 53.3757
462@ = -1715.507
544@ = 777.6501
626@ = 45.9312
463@ = -1715.978
545@ = 978.3165
627@ = 51.989
464@ = -1714.958
546@ = 1178.562
628@ = 54.9734
465@ = -1912.922
547@ = 1146.255
629@ = 56.3473
466@ = -2003.248
548@ = 982.3228
630@ = 58.819
467@ = -2006.168
549@ = 810.2207
631@ = 54.1756
468@ = -1959.234
550@ = 713.3063
632@ = 75.2571
469@ = -1793.007
551@ = 730.7606
633@ = 44.6388
470@ = -1593.731
552@ = 732.4928
634@ = 20.5721
471@ = -1533.424
553@ = 923.6081
635@ = 29.4493
472@ = -1489.172
554@ = 1118.7371
636@ = 17.2211
473@ = -1605.045
555@ = 1284.0439
637@ = 27.5543
474@ = -1787.921
556@ = 1365.8101
638@ = 32.2595
475@ = -1986.429
557@ = 1319.338
639@ = 23.0384
476@ = -2185.9971
558@ = 1345.1121
640@ = 19.4206
477@ = -2384.5991
559@ = 1380.588
641@ = 17.9485
478@ = -2537.759
560@ = 1369.641
642@ = 23.8562
479@ = -2719.3149
561@ = 1345.675
643@ = 32.2039
480@ = -2875.1421
562@ = 1245.782
644@ = 20.7763
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 488
set_lvar_int_to_constant 717@ = 488
set_lvar_int_to_constant 718@ = 488
set_lvar_int_to_constant 719@ = 488
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_44051
454@ = 1765.609
536@ = -2285.9109
618@ = 25.9621
455@ = 1764.2939
537@ = -2084.3711
619@ = 26.0431
456@ = 1649.402
538@ = -1920.231
620@ = 40.6173
457@ = 1552.024
539@ = -1745.2729
621@ = 30.0462
458@ = 1419.031
540@ = -1595.618
622@ = 25.4285
459@ = 1402.089
541@ = -1441.6219
623@ = 18.2271
460@ = 1545.335
542@ = -1431.194
624@ = 36.437
461@ = 1653.446
543@ = -1305.8409
625@ = 49.6078
462@ = 1786.094
544@ = -1276.766
626@ = 22.6321
463@ = 1901.04
545@ = -1221.949
627@ = 34.699
464@ = 1848.224
546@ = -1097.652
628@ = 46.0898
465@ = 1649.377
547@ = -1085.296
629@ = 36.7768
466@ = 1487.205
548@ = -970.0334
630@ = 60.1281
467@ = 1304.22
549@ = -1038.929
631@ = 39.8547
468@ = 1215.798
550@ = -1218.8621
632@ = 27.923
469@ = 1302.613
551@ = -1399.127
633@ = 26.3812
470@ = 1437.015
552@ = -1321.431
634@ = 45.396
471@ = 1609.09
553@ = -1299.4969
635@ = 25.0714
472@ = 1791.421
554@ = -1381.364
636@ = 35.17
473@ = 1827.021
555@ = -1567.2791
637@ = 22.9243
474@ = 1628.196
556@ = -1600.6
638@ = 38.8226
475@ = 1450.9091
557@ = -1694.839
639@ = 25.2192
476@ = 1389.812
558@ = -1852.984
640@ = 24.997
477@ = 1206.609
559@ = -1933.723
641@ = 57.1028
478@ = 1053.4611
560@ = -2063.9331
642@ = 70.7254
479@ = 1048.698
561@ = -2265.5029
643@ = 47.2394
480@ = 1224.402
562@ = -2359.4939
644@ = 28.5888
481@ = 1425.61
563@ = -2360.0471
645@ = 28.3338
250@ = 28
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 425
set_lvar_int_to_constant 717@ = 425
set_lvar_int_to_constant 718@ = 425
set_lvar_int_to_constant 719@ = 425
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_44979
454@ = -1398.355
536@ = -197.2079
618@ = 1043.119
455@ = -1398.988
537@ = -188.7892
619@ = 1043.202
456@ = -1465.939
538@ = -134.0836
620@ = 1046.011
457@ = -1530.1379
539@ = -193.3988
621@ = 1050.756
458@ = -1415.686
540@ = -274.1765
622@ = 1051.149
459@ = -1305.178
541@ = -143.5283
623@ = 1050.125
460@ = -1302.774
542@ = -268.6358
624@ = 1048.4871
set_lvar_float_to_lvar_float 461@ = 454@
set_lvar_float_to_lvar_float 543@ = 536@
set_lvar_float_to_lvar_float 625@ = 618@
732@ = -1406.327
733@ = -265.7914
734@ = 1042.656
735@ = 346.3297
250@ = 8
221@ = 7
224@ = 12
256@ = 12
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 706@ = 7
set_lvar_int_to_constant 707@ = 7
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 7
set_lvar_int_to_constant 710@ = 7
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 503
set_lvar_int_to_constant 717@ = 502
set_lvar_int_to_constant 718@ = 494
set_lvar_int_to_constant 719@ = 503
set_lvar_int_to_constant 720@ = 502
set_lvar_int_to_constant 721@ = 494
set_lvar_int_to_constant 722@ = 502
set_lvar_int_to_constant 723@ = 494
set_lvar_int_to_constant 724@ = 503
set_lvar_int_to_constant 725@ = 494
set_lvar_int_to_constant 726@ = 503
set_lvar_int_to_constant 727@ = 503
set_lvar_int_to_constant 728@ = 494
set_lvar_int_to_constant 729@ = 502
set_lvar_int_to_constant 730@ = 494
set_lvar_int_to_constant 731@ = 502
goto @CPRACE_46261

:CPRACE_45528
454@ = -1354.358
536@ = -590.5628
618@ = 1055.453
455@ = -1431.177
537@ = -588.3124
619@ = 1054.512
456@ = -1516.874
538@ = -635.0942
620@ = 1050.275
457@ = -1500.678
539@ = -719.0175
621@ = 1051.6429
458@ = -1387.502
540@ = -743.1501
622@ = 1051.016
459@ = -1295.54
541@ = -705.3506
623@ = 1055.255
460@ = -1365.312
542@ = -666.0998
624@ = 1055.058
461@ = -1486.5
543@ = -636.4586
625@ = 1052.225
462@ = -1447.86
544@ = -690.3426
626@ = 1052.834
463@ = -1389.908
545@ = -720.9943
627@ = 1055.119
464@ = -1370.6851
546@ = -687.8977
628@ = 1053.783
465@ = -1399.136
547@ = -635.8359
629@ = 1051.043
466@ = -1308.639
548@ = -649.4201
630@ = 1054.972
set_lvar_float_to_lvar_float 467@ = 454@
set_lvar_float_to_lvar_float 549@ = 536@
set_lvar_float_to_lvar_float 631@ = 618@
732@ = -1344.163
733@ = -598.8836
734@ = 1051.829
735@ = 103.3822
250@ = 14
221@ = 4
224@ = 6
256@ = 12
set_lvar_int_to_constant 700@ = 100
set_lvar_int_to_constant 701@ = 133
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 181
set_lvar_int_to_constant 704@ = 60
set_lvar_int_to_constant 705@ = 34
set_lvar_int_to_constant 706@ = 198
set_lvar_int_to_constant 707@ = 250
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 100
set_lvar_int_to_constant 710@ = 34
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
set_lvar_int_to_constant 722@ = 468
set_lvar_int_to_constant 723@ = 468
set_lvar_int_to_constant 724@ = 468
set_lvar_int_to_constant 725@ = 468
set_lvar_int_to_constant 726@ = 468
set_lvar_int_to_constant 727@ = 468
set_lvar_int_to_constant 728@ = 468
set_lvar_int_to_constant 729@ = 468
set_lvar_int_to_constant 730@ = 468
set_lvar_int_to_constant 731@ = 468
goto @CPRACE_46261

:CPRACE_46261
return 

:CPRACE_46263
if 
  736@ == 0
goto_if_false @CPRACE_46336
if 
  locate_char_any_means_3d $scplayer {x} -148.2144 {y} 87.3396 {z} 2.1234 {xRadius} 280.0 {yRadius} 280.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_46336
736@ = 1

:CPRACE_46336
if 
  736@ == 1
goto_if_false @CPRACE_46370
736@ = 2
request_model 532
request_model 82

:CPRACE_46370
if 
  736@ == 2
goto_if_false @CPRACE_46524
if and
  has_model_loaded 532
  has_model_loaded 82
goto_if_false @CPRACE_46524
736@ = 3
738@ = create_car 532 {x} -128.2144 {y} 80.3396 {z} 2.1234
set_car_heading 738@ {heading} 250.5799
740@ = create_char_inside_car 738@ {pedType} PedType.CivMale {modelId} 82
mark_model_as_no_longer_needed 532
mark_model_as_no_longer_needed 82
flush_route 
extend_route -95.8304 {y} 68.27 {z} 3.4764
extend_route -77.3806 {y} 70.3096 {z} 3.5478
task_drive_point_route_advanced 740@ {vehicle} 738@ {speed} 7.5 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CPRACE_46524
if 
  736@ == 3
goto_if_false @CPRACE_46620
if 
  not is_char_dead 740@
goto_if_false @CPRACE_46620
742@ = get_script_task_status 740@ {taskId} 2023
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46620
736@ = 4
if 
  not is_car_dead 738@
goto_if_false @CPRACE_46615
mark_car_as_no_longer_needed 738@

:CPRACE_46615
mark_char_as_no_longer_needed 740@

:CPRACE_46620
if 
  737@ == 0
goto_if_false @CPRACE_46693
if 
  locate_char_any_means_3d $scplayer {x} -542.1076 {y} 230.7356 {z} 11.6475 {xRadius} 320.0 {yRadius} 320.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_46693
737@ = 1

:CPRACE_46693
if 
  737@ == 1
goto_if_false @CPRACE_46727
737@ = 2
request_model 478
request_model 82

:CPRACE_46727
if 
  737@ == 2
goto_if_false @CPRACE_46860
if and
  has_model_loaded 478
  has_model_loaded 82
goto_if_false @CPRACE_46860
737@ = 3
739@ = create_car 478 {x} -542.1076 {y} 230.7356 {z} 11.6475
set_car_heading 739@ {heading} 262.8685
741@ = create_char_inside_car 739@ {pedType} PedType.CivMale {modelId} 82
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 82
task_car_drive_to_coord 741@ {vehicle} 739@ {x} -270.5629 {y} 199.0073 {z} 6.99 {speed} 11.5 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CPRACE_46860
if 
  737@ == 3
goto_if_false @CPRACE_46971
if 
  not is_char_dead 741@
goto_if_false @CPRACE_46971
742@ = get_script_task_status 741@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46971
737@ = 4
if 
  not is_car_dead 739@
goto_if_false @CPRACE_46966
task_car_drive_wander 741@ {vehicle} 739@ {speed} 11.5 {drivingMode} DrivingMode.AvoidCars
mark_car_as_no_longer_needed 739@

:CPRACE_46966
mark_char_as_no_longer_needed 741@

:CPRACE_46971
return 

:CPRACE_46973
if 
  6 > $race_selection
goto_if_false @CPRACE_47103
if 
  52@ <> 1
goto_if_false @CPRACE_47103
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE1'
load_sprite 1 {spriteName} "RACE00"
load_sprite 2 {spriteName} "RACE01"
load_sprite 3 {spriteName} "RACE02"
load_sprite 4 {spriteName} "RACE03"
load_sprite 5 {spriteName} "RACE04"
load_sprite 6 {spriteName} "RACE05"
52@ = 1
return 

:CPRACE_47103
if and
  $race_selection > 5
  12 > $race_selection
goto_if_false @CPRACE_47240
if 
  52@ <> 2
goto_if_false @CPRACE_47240
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE2'
load_sprite 7 {spriteName} "RACE06"
load_sprite 8 {spriteName} "RACE07"
load_sprite 9 {spriteName} "RACE08"
load_sprite 10 {spriteName} "RACE09"
load_sprite 11 {spriteName} "RACE10"
load_sprite 12 {spriteName} "RACE11"
52@ = 2
return 

:CPRACE_47240
if and
  $race_selection > 11
  18 > $race_selection
goto_if_false @CPRACE_47377
if 
  52@ <> 3
goto_if_false @CPRACE_47377
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE3'
load_sprite 13 {spriteName} "RACE12"
load_sprite 14 {spriteName} "RACE13"
load_sprite 15 {spriteName} "RACE14"
load_sprite 16 {spriteName} "RACE15"
load_sprite 17 {spriteName} "RACE16"
load_sprite 18 {spriteName} "RACE17"
52@ = 3
return 

:CPRACE_47377
if and
  $race_selection > 17
  24 > $race_selection
goto_if_false @CPRACE_47514
if 
  52@ <> 4
goto_if_false @CPRACE_47514
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE4'
load_sprite 19 {spriteName} "RACE18"
load_sprite 20 {spriteName} "RACE19"
load_sprite 21 {spriteName} "RACE20"
load_sprite 22 {spriteName} "RACE21"
load_sprite 23 {spriteName} "RACE22"
load_sprite 24 {spriteName} "RACE23"
52@ = 4
return 

:CPRACE_47514
if and
  $race_selection > 23
  30 > $race_selection
goto_if_false @CPRACE_47591
if 
  52@ <> 5
goto_if_false @CPRACE_47591
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE5'
load_sprite 25 {spriteName} "RACE24"
52@ = 5
return 

:CPRACE_47591
return 

:CPRACE_47593
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:CPRACE_47661
254@ = 0
set_lvar_int_to_lvar_int 255@ = 256@
255@ -= 1

:CPRACE_47683
if 
  is_int_lvar_greater_than_int_lvar 255@ > 254@
goto_if_false @CPRACE_48582
253@ = generate_random_int_in_range 0 {max} 32
switch_start 253@ {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @CPRACE_48568 {caseNum1} 0 {caseLabel1} @CPRACE_47969 {caseNum2} 1 {caseLabel2} @CPRACE_47987 {caseNum3} 2 {caseLabel3} @CPRACE_48005 {caseNum4} 3 {caseLabel4} @CPRACE_48023 {caseNum5} 4 {caseLabel5} @CPRACE_48041 {caseNum6} 5 {caseLabel6} @CPRACE_48059 {caseNum7} 6 {caseLabel7} @CPRACE_48077
switch_continued 7 {caseLabel1} @CPRACE_48095 {caseNum2} 8 {caseLabel2} @CPRACE_48113 {caseNum3} 9 {caseLabel3} @CPRACE_48131 {caseNum4} 10 {caseLabel4} @CPRACE_48150 {caseNum5} 11 {caseLabel5} @CPRACE_48169 {caseNum6} 12 {caseLabel6} @CPRACE_48188 {caseNum7} 13 {caseLabel7} @CPRACE_48207 {caseNum8} 14 {caseLabel8} @CPRACE_48226 {caseNum9} 15 {caseLabel9} @CPRACE_48245
switch_continued 16 {caseLabel1} @CPRACE_48264 {caseNum2} 17 {caseLabel2} @CPRACE_48283 {caseNum3} 18 {caseLabel3} @CPRACE_48302 {caseNum4} 19 {caseLabel4} @CPRACE_48321 {caseNum5} 20 {caseLabel5} @CPRACE_48340 {caseNum6} 21 {caseLabel6} @CPRACE_48359 {caseNum7} 22 {caseLabel7} @CPRACE_48378 {caseNum8} 23 {caseLabel8} @CPRACE_48397 {caseNum9} 24 {caseLabel9} @CPRACE_48416
switch_continued 25 {caseLabel1} @CPRACE_48435 {caseNum2} 26 {caseLabel2} @CPRACE_48454 {caseNum3} 27 {caseLabel3} @CPRACE_48473 {caseNum4} 28 {caseLabel4} @CPRACE_48492 {caseNum5} 29 {caseLabel5} @CPRACE_48511 {caseNum6} 30 {caseLabel6} @CPRACE_48530 {caseNum7} 31 {caseLabel7} @CPRACE_48549 {caseNum8} -1 {caseLabel8} @CPRACE_48568 {caseNum9} -1 {caseLabel9} @CPRACE_48568

:CPRACE_47969
set_lvar_int_to_constant 700@(254@,16i) = 34
goto @CPRACE_48568

:CPRACE_47987
set_lvar_int_to_constant 700@(254@,16i) = 60
goto @CPRACE_48568

:CPRACE_48005
set_lvar_int_to_constant 700@(254@,16i) = 69
goto @CPRACE_48568

:CPRACE_48023
set_lvar_int_to_constant 700@(254@,16i) = 96
goto @CPRACE_48568

:CPRACE_48041
set_lvar_int_to_constant 700@(254@,16i) = 100
goto @CPRACE_48568

:CPRACE_48059
set_lvar_int_to_constant 700@(254@,16i) = 101
goto @CPRACE_48568

:CPRACE_48077
set_lvar_int_to_constant 700@(254@,16i) = 112
goto @CPRACE_48568

:CPRACE_48095
set_lvar_int_to_constant 700@(254@,16i) = 122
goto @CPRACE_48568

:CPRACE_48113
set_lvar_int_to_constant 700@(254@,16i) = 125
goto @CPRACE_48568

:CPRACE_48131
set_lvar_int_to_constant 700@(254@,16i) = 128
goto @CPRACE_48568

:CPRACE_48150
set_lvar_int_to_constant 700@(254@,16i) = 131
goto @CPRACE_48568

:CPRACE_48169
set_lvar_int_to_constant 700@(254@,16i) = 133
goto @CPRACE_48568

:CPRACE_48188
set_lvar_int_to_constant 700@(254@,16i) = 140
goto @CPRACE_48568

:CPRACE_48207
set_lvar_int_to_constant 700@(254@,16i) = 142
goto @CPRACE_48568

:CPRACE_48226
set_lvar_int_to_constant 700@(254@,16i) = 151
goto @CPRACE_48568

:CPRACE_48245
set_lvar_int_to_constant 700@(254@,16i) = 157
goto @CPRACE_48568

:CPRACE_48264
set_lvar_int_to_constant 700@(254@,16i) = 170
goto @CPRACE_48568

:CPRACE_48283
set_lvar_int_to_constant 700@(254@,16i) = 181
goto @CPRACE_48568

:CPRACE_48302
set_lvar_int_to_constant 700@(254@,16i) = 183
goto @CPRACE_48568

:CPRACE_48321
set_lvar_int_to_constant 700@(254@,16i) = 186
goto @CPRACE_48568

:CPRACE_48340
set_lvar_int_to_constant 700@(254@,16i) = 192
goto @CPRACE_48568

:CPRACE_48359
set_lvar_int_to_constant 700@(254@,16i) = 198
goto @CPRACE_48568

:CPRACE_48378
set_lvar_int_to_constant 700@(254@,16i) = 201
goto @CPRACE_48568

:CPRACE_48397
set_lvar_int_to_constant 700@(254@,16i) = 206
goto @CPRACE_48568

:CPRACE_48416
set_lvar_int_to_constant 700@(254@,16i) = 211
goto @CPRACE_48568

:CPRACE_48435
set_lvar_int_to_constant 700@(254@,16i) = 217
goto @CPRACE_48568

:CPRACE_48454
set_lvar_int_to_constant 700@(254@,16i) = 220
goto @CPRACE_48568

:CPRACE_48473
set_lvar_int_to_constant 700@(254@,16i) = 223
goto @CPRACE_48568

:CPRACE_48492
set_lvar_int_to_constant 700@(254@,16i) = 233
goto @CPRACE_48568

:CPRACE_48511
set_lvar_int_to_constant 700@(254@,16i) = 246
goto @CPRACE_48568

:CPRACE_48530
set_lvar_int_to_constant 700@(254@,16i) = 248
goto @CPRACE_48568

:CPRACE_48549
set_lvar_int_to_constant 700@(254@,16i) = 250
goto @CPRACE_48568

:CPRACE_48568
254@ += 1
goto @CPRACE_47683

:CPRACE_48582
return 

:CPRACE_48584
if or
  450@ == 1
  256@ == 1
goto_if_false @CPRACE_50542
play_mission_passed_tune 1
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50542 {caseNum1} 0 {caseLabel1} @CPRACE_48871 {caseNum2} 1 {caseLabel2} @CPRACE_48959 {caseNum3} 2 {caseLabel3} @CPRACE_49018 {caseNum4} 3 {caseLabel4} @CPRACE_49077 {caseNum5} 4 {caseLabel5} @CPRACE_49136 {caseNum6} 5 {caseLabel6} @CPRACE_49195 {caseNum7} 6 {caseLabel7} @CPRACE_49254
switch_continued 7 {caseLabel1} @CPRACE_49313 {caseNum2} 8 {caseLabel2} @CPRACE_49387 {caseNum3} 9 {caseLabel3} @CPRACE_49439 {caseNum4} 10 {caseLabel4} @CPRACE_49498 {caseNum5} 11 {caseLabel5} @CPRACE_49557 {caseNum6} 12 {caseLabel6} @CPRACE_49616 {caseNum7} 13 {caseLabel7} @CPRACE_49675 {caseNum8} 14 {caseLabel8} @CPRACE_49734 {caseNum9} 15 {caseLabel9} @CPRACE_49793
switch_continued 16 {caseLabel1} @CPRACE_49852 {caseNum2} 17 {caseLabel2} @CPRACE_49911 {caseNum3} 18 {caseLabel3} @CPRACE_49970 {caseNum4} 19 {caseLabel4} @CPRACE_50029 {caseNum5} 20 {caseLabel5} @CPRACE_50088 {caseNum6} 21 {caseLabel6} @CPRACE_50147 {caseNum7} 22 {caseLabel7} @CPRACE_50206 {caseNum8} 23 {caseLabel8} @CPRACE_50265 {caseNum9} 24 {caseLabel9} @CPRACE_50324
switch_continued 25 {caseLabel1} @CPRACE_50383 {caseNum2} 26 {caseLabel2} @CPRACE_50466 {caseNum3} -1 {caseLabel3} @CPRACE_50542 {caseNum4} -1 {caseLabel4} @CPRACE_50542 {caseNum5} -1 {caseLabel5} @CPRACE_50542 {caseNum6} -1 {caseLabel6} @CPRACE_50542 {caseNum7} -1 {caseLabel7} @CPRACE_50542 {caseNum8} -1 {caseLabel8} @CPRACE_50542 {caseNum9} -1 {caseLabel9} @CPRACE_50542

:CPRACE_48871
if 
  $got_race_made_progress[0] == 0
goto_if_false @CPRACE_48952
player_made_progress 1
$total_races_completed += 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_48936
register_mission_passed 'CESAR_1'
goto @CPRACE_48945

:CPRACE_48936
register_mission_passed 85@($race_selection,30s)

:CPRACE_48945
$got_race_made_progress[0] = 1

:CPRACE_48952
goto @CPRACE_50542

:CPRACE_48959
if 
  $got_race_made_progress[1] == 0
goto_if_false @CPRACE_49011
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[1] = 1

:CPRACE_49011
goto @CPRACE_50542

:CPRACE_49018
if 
  $got_race_made_progress[2] == 0
goto_if_false @CPRACE_49070
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[2] = 1

:CPRACE_49070
goto @CPRACE_50542

:CPRACE_49077
if 
  $got_race_made_progress[3] == 0
goto_if_false @CPRACE_49129
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[3] = 1

:CPRACE_49129
goto @CPRACE_50542

:CPRACE_49136
if 
  $got_race_made_progress[4] == 0
goto_if_false @CPRACE_49188
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[4] = 1

:CPRACE_49188
goto @CPRACE_50542

:CPRACE_49195
if 
  $got_race_made_progress[5] == 0
goto_if_false @CPRACE_49247
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[5] = 1

:CPRACE_49247
goto @CPRACE_50542

:CPRACE_49254
if 
  $got_race_made_progress[6] == 0
goto_if_false @CPRACE_49306
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[6] = 1

:CPRACE_49306
goto @CPRACE_50542

:CPRACE_49313
if 
  $got_race_made_progress[7] == 0
goto_if_false @CPRACE_49380
player_made_progress 1
start_new_script @CASHWIN 5000 5000 
add_score $player1 {money} 5000
$total_races_completed += 1
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[7] = 1

:CPRACE_49380
goto @CPRACE_50542

:CPRACE_49387
if 
  $got_race_made_progress[8] == 0
goto_if_false @CPRACE_49432
player_made_progress 1
$total_races_completed += 1
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[8] = 1

:CPRACE_49432
goto @CPRACE_50542

:CPRACE_49439
if 
  $got_race_made_progress[9] == 0
goto_if_false @CPRACE_49491
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[9] = 1

:CPRACE_49491
goto @CPRACE_50542

:CPRACE_49498
if 
  $got_race_made_progress[10] == 0
goto_if_false @CPRACE_49550
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[10] = 1

:CPRACE_49550
goto @CPRACE_50542

:CPRACE_49557
if 
  $got_race_made_progress[11] == 0
goto_if_false @CPRACE_49609
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[11] = 1

:CPRACE_49609
goto @CPRACE_50542

:CPRACE_49616
if 
  $got_race_made_progress[12] == 0
goto_if_false @CPRACE_49668
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[12] = 1

:CPRACE_49668
goto @CPRACE_50542

:CPRACE_49675
if 
  $got_race_made_progress[13] == 0
goto_if_false @CPRACE_49727
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[13] = 1

:CPRACE_49727
goto @CPRACE_50542

:CPRACE_49734
if 
  $got_race_made_progress[14] == 0
goto_if_false @CPRACE_49786
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[14] = 1

:CPRACE_49786
goto @CPRACE_50542

:CPRACE_49793
if 
  $got_race_made_progress[15] == 0
goto_if_false @CPRACE_49845
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[15] = 1

:CPRACE_49845
goto @CPRACE_50542

:CPRACE_49852
if 
  $got_race_made_progress[16] == 0
goto_if_false @CPRACE_49904
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[16] = 1

:CPRACE_49904
goto @CPRACE_50542

:CPRACE_49911
if 
  $got_race_made_progress[17] == 0
goto_if_false @CPRACE_49963
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[17] = 1

:CPRACE_49963
goto @CPRACE_50542

:CPRACE_49970
if 
  $got_race_made_progress[18] == 0
goto_if_false @CPRACE_50022
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[18] = 1

:CPRACE_50022
goto @CPRACE_50542

:CPRACE_50029
if 
  $got_race_made_progress[19] == 0
goto_if_false @CPRACE_50081
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[19] = 1

:CPRACE_50081
goto @CPRACE_50542

:CPRACE_50088
if 
  $got_race_made_progress[20] == 0
goto_if_false @CPRACE_50140
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[20] = 1

:CPRACE_50140
goto @CPRACE_50542

:CPRACE_50147
if 
  $got_race_made_progress[21] == 0
goto_if_false @CPRACE_50199
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[21] = 1

:CPRACE_50199
goto @CPRACE_50542

:CPRACE_50206
if 
  $got_race_made_progress[22] == 0
goto_if_false @CPRACE_50258
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[22] = 1

:CPRACE_50258
goto @CPRACE_50542

:CPRACE_50265
if 
  $got_race_made_progress[23] == 0
goto_if_false @CPRACE_50317
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[23] = 1

:CPRACE_50317
goto @CPRACE_50542

:CPRACE_50324
if 
  $got_race_made_progress[24] == 0
goto_if_false @CPRACE_50376
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50544
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[24] = 1

:CPRACE_50376
goto @CPRACE_50542

:CPRACE_50383
if 
  $got_race_made_progress[25] == 0
goto_if_false @CPRACE_50459
start_new_script @CASHWIN 10000 5000 
add_score $player1 {money} 10000
player_made_progress 1
register_mission_passed 'STAD_03'
switch_car_generator $farm_gen3 {amount} 101
switch_car_generator $nascar_reward_cargen1 {amount} 101
$got_race_made_progress[25] = 1

:CPRACE_50459
goto @CPRACE_50542

:CPRACE_50466
if 
  $got_race_made_progress[26] == 0
goto_if_false @CPRACE_50535
start_new_script @CASHWIN 25000 5000 
add_score $player1 {money} 25000
player_made_progress 1
register_mission_passed 'STAD_01'
switch_car_generator $nascar_reward_cargen2 {amount} 101
$got_race_made_progress[26] = 1

:CPRACE_50535
goto @CPRACE_50542

:CPRACE_50542
return 

:CPRACE_50544
if 
  is_int_var_equal_to_int_lvar $total_races_completed == 208@
goto_if_false @CPRACE_50623
if 
  $got_race_mission_complete == 0
goto_if_false @CPRACE_50616
start_new_script @CASHWIN 1000000 5000 45 
add_score $player1 {money} 1000000
$got_race_mission_complete = 1

:CPRACE_50616
goto @CPRACE_50645

:CPRACE_50623
start_new_script @CASHWIN 10000 5000 
add_score $player1 {money} 10000

:CPRACE_50645
return 

:CPRACE_50647
254@ = 0

:CPRACE_50654
255@ = generate_random_int_in_range 0 {max} 5
switch_start 255@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50956 {caseNum1} 0 {caseLabel1} @CPRACE_50726 {caseNum2} 1 {caseLabel2} @CPRACE_50771 {caseNum3} 2 {caseLabel3} @CPRACE_50820 {caseNum4} 3 {caseLabel4} @CPRACE_50865 {caseNum5} 4 {caseLabel5} @CPRACE_50909 {caseNum6} -1 {caseLabel6} @CPRACE_50956 {caseNum7} -1 {caseLabel7} @CPRACE_50956

:CPRACE_50726
task_play_anim -1 {animationName} "RIOT_CHANT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2700
goto @CPRACE_50956

:CPRACE_50771
task_play_anim -1 {animationName} "RIOT_CHALLENGE" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
goto @CPRACE_50956

:CPRACE_50820
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
goto @CPRACE_50956

:CPRACE_50865
task_play_anim -1 {animationName} "RIOT_FUKU" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
goto @CPRACE_50956

:CPRACE_50909
task_play_anim -1 {animationName} "RIOT_PUNCHES" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2200
goto @CPRACE_50956

:CPRACE_50956
254@ += 1
  254@ >= 7
goto_if_false @CPRACE_50654
return 

:CPRACE_50979
if 
  225@ == 0
goto_if_false @CPRACE_51161
if 
  is_int_var_greater_than_int_lvar $game_timer > 226@
goto_if_false @CPRACE_51161
clear_mission_audio MissionAudioSlot.Slot4
227@ = generate_random_int_in_range 0 {max} 4
switch_start 227@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CPRACE_51154 {caseNum1} 0 {caseLabel1} @CPRACE_51092 {caseNum2} 1 {caseLabel2} @CPRACE_51108 {caseNum3} 2 {caseLabel3} @CPRACE_51124 {caseNum4} 3 {caseLabel4} @CPRACE_51140 {caseNum5} -1 {caseLabel5} @CPRACE_51154 {caseNum6} -1 {caseLabel6} @CPRACE_51154 {caseNum7} -1 {caseLabel7} @CPRACE_51154

:CPRACE_51092
load_mission_audio MissionAudioSlot.Slot4 {audioId} 33200
goto @CPRACE_51154

:CPRACE_51108
load_mission_audio MissionAudioSlot.Slot4 {audioId} 33202
goto @CPRACE_51154

:CPRACE_51124
load_mission_audio MissionAudioSlot.Slot4 {audioId} 33205
goto @CPRACE_51154

:CPRACE_51140
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827
goto @CPRACE_51154

:CPRACE_51154
225@ += 1

:CPRACE_51161
if 
  225@ == 1
goto_if_false @CPRACE_51269
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @CPRACE_51269
if 
  227@ == 3
goto_if_false @CPRACE_51239
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
goto @CPRACE_51243

:CPRACE_51239
play_mission_audio MissionAudioSlot.Slot4

:CPRACE_51243
226@ = generate_random_int_in_range 2000 {max} 10000
add_int_var_to_int_lvar 226@ += $game_timer
225@ = 0

:CPRACE_51269
return 

:CPRACE_51271
if or
  53@ == 0
  53@ == 1
  53@ == 3
goto_if_false @CPRACE_51850
if 
  is_player_playing $player1
goto_if_false @CPRACE_51850
if 
  53@ == 3
goto_if_false @CPRACE_51460
if 
  $race_selection == 25
goto_if_false @CPRACE_51395
$x = 2693.1841
$y = -1699.655
$z = 9.3891
$heading = 34.2987

:CPRACE_51395
if 
  $race_selection == 26
goto_if_false @CPRACE_51453
$x = 1101.781
$y = 1604.578
$z = 11.5506
$heading = 353.1771

:CPRACE_51453
goto @CPRACE_51762

:CPRACE_51460
if 
  $menu_mode == 0
goto_if_false @CPRACE_51522
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$y += 4.0
$heading = 180.0

:CPRACE_51522
if 
  $menu_mode == 1
goto_if_false @CPRACE_51584
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51584
if 
  $menu_mode == 2
goto_if_false @CPRACE_51646
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51646
if 
  $menu_mode == 3
goto_if_false @CPRACE_51708
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51708
if 
  53@ <> 1
goto_if_false @CPRACE_51750
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)

:CPRACE_51750
set_var_float_to_var_float $z = $traceZ($menu_mode,4f)

:CPRACE_51762
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} $heading
clear_area $x {y} $y {z} $z {radius} 0.5 {clearParticles} False
request_collision $x {y} $y
load_scene $x {y} $y {z} $z
set_weather_to_appropriate_type_now 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 2000 {direction} Fade.In
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0

:CPRACE_51850
253@ = 0

:CPRACE_51857
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_51977
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_51936
if 
  not is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_51936
mark_car_as_no_longer_needed 379@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)

:CPRACE_51936
mark_model_as_no_longer_needed 700@(253@,16i)
mark_model_as_no_longer_needed 716@(253@,16i)
remove_blip 412@(253@,16i)
253@ += 1
goto @CPRACE_51857

:CPRACE_51977
remove_char_elegantly 411@
unload_special_character 1
unload_special_character 2
if 
  $player_fall_state > 0
goto_if_false @CPRACE_52015
$player_fall_state = 6

:CPRACE_52015
mark_char_as_no_longer_needed 411@
mark_char_as_no_longer_needed 429@
253@ = 0

:CPRACE_52032
if 
  11 > 253@
goto_if_false @CPRACE_52069
mark_char_as_no_longer_needed 441@
253@ += 1
goto @CPRACE_52032

:CPRACE_52069
if 
  $race_selection == 23
goto_if_false @CPRACE_52112
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @CPRACE_52112
switch_car_generator $f1_blood_car_gen[1] {amount} 101

:CPRACE_52112
remove_blip 54@
delete_checkpoint 449@
delete_object 430@
clear_onscreen_timer $coords
remove_animation "RIOT"
remove_animation "CAR"
use_text_commands False
set_message_formatting False {margin} 380 {width} 464
set_car_density_multiplier 1.0
disable_all_entry_exits False
display_radar True
display_car_names True
display_zone_names True
hide_all_frontend_blips False
set_player_is_in_stadium False
display_hud True
clear_extra_colours False
set_help_message_box_size 200
if 
  is_player_playing $player1
goto_if_false @CPRACE_52228
set_char_area_visible $scplayer {areaId} 0

:CPRACE_52228
$flag_car_normal_carmod = 0
$disable_mod_garage = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 36---------------
// Originally: Lowrider (High Stakes)

:CESAR1
script_name 'CESAR1'
gosub @CESAR1_1165
if 
  has_deatharrest_been_executed 
goto_if_false @CESAR1_38
gosub @CESAR1_4957

:CESAR1_38
gosub @CESAR1_5008
terminate_this_script 

:CESAR1_47
request_model 114
request_model 534
request_model 517
request_model 567
request_model 536
load_all_models_now 

:CESAR1_73
if or
  not has_model_loaded 114
  not has_model_loaded 534
  not has_model_loaded 517
  not has_model_loaded 567
  not has_model_loaded 536
goto_if_false @CESAR1_119
wait 0
goto @CESAR1_73

:CESAR1_119
load_special_character 1 {modelName} 'CESAR'
load_special_character 2 {modelName} 'KENDL'
load_all_models_now 

:CESAR1_147
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @CESAR1_177
wait 0
goto @CESAR1_147

:CESAR1_177
return 
116@ = add_blip_for_car $cs1_player_car
return 
42@ = add_blip_for_coord $cesarX {y} $cesarY {z} $cesarZ

:CESAR1_203
request_car_recording 172

:CESAR1_208
if 
  not has_car_recording_been_loaded 172
goto_if_false @CESAR1_235
wait 0
goto @CESAR1_208

:CESAR1_235
128@ = 1793.687
129@ = -2138.686
130@ = 12.5547
131@ = 0.1899
clear_area 128@ {y} 129@ {z} 130@ {radius} 20.5 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
125@ = create_car 567 {x} 128@ {y} 129@ {z} 130@
set_load_collision_for_car_flag 125@ {state} False
suppress_car_model 567
change_car_colour 125@ {color1} 3 {color2} 3
123@ = create_char_inside_car 125@ {pedType} PedType.CivMale {modelId} 290
127@ = create_char_as_passenger 125@ {pedType} PedType.CivFemale {modelId} 291 {seat} SeatId.BikeRear
set_car_heading 125@ {heading} 131@
set_car_cruise_speed 125@ {maxSpeed} 35.0
set_car_driving_style 125@ {drivingStyle} DrivingMode.PloughThrough
set_car_heavy 125@ {state} True
lock_car_doors 125@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 125@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 125@ {state} False
set_char_proofs 123@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 127@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_can_be_shot_in_vehicle 123@ {state} False
set_char_can_be_shot_in_vehicle 127@ {state} False
return 
126@ = add_blip_for_car 125@

:CESAR1_489
142@ = 1492.304
146@ = -1869.0229
150@ = 12.3828
154@ = 90.0
clear_area 142@ {y} 146@ {z} 150@ {radius} 2.5 {clearParticles} True
138@ = create_car 517 {x} 142@ {y} 146@ {z} 150@
set_load_collision_for_car_flag 138@ {state} False
change_car_colour 138@ {color1} 6 {color2} 0
set_car_heading 138@ {heading} 154@
134@ = create_char_inside_car 138@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 134@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 138@ {maxSpeed} 35.0
set_car_driving_style 138@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 138@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 138@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_can_burst_car_tyres 138@ {state} False
143@ = 1492.304
147@ = -1875.0229
151@ = 12.3828
155@ = 90.0
clear_area 143@ {y} 147@ {z} 151@ {radius} 2.5 {clearParticles} True
139@ = create_car 534 {x} 143@ {y} 147@ {z} 151@
set_load_collision_for_car_flag 139@ {state} False
suppress_car_model 534
change_car_colour 139@ {color1} 8 {color2} 0
set_car_heading 139@ {heading} 155@
135@ = create_char_inside_car 139@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 135@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 139@ {maxSpeed} 35.0
set_car_driving_style 139@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 139@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 139@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 139@ {state} False
144@ = 1504.304
148@ = -1869.0229
152@ = 12.3828
156@ = 90.0
clear_area 144@ {y} 148@ {z} 152@ {radius} 2.5 {clearParticles} True
140@ = create_car 517 {x} 144@ {y} 148@ {z} 152@
set_load_collision_for_car_flag 140@ {state} False
suppress_car_model 517
change_car_colour 140@ {color1} 2 {color2} 1
set_car_heading 140@ {heading} 156@
136@ = create_char_inside_car 140@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 136@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 140@ {maxSpeed} 35.0
set_car_driving_style 140@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 140@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 140@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 140@ {state} False
145@ = 1504.304
149@ = -1875.0229
153@ = 12.3828
157@ = 90.0
clear_area 145@ {y} 149@ {z} 153@ {radius} 2.5 {clearParticles} True
141@ = create_car 536 {x} 145@ {y} 149@ {z} 153@
set_load_collision_for_car_flag 141@ {state} False
set_car_heading 141@ {heading} 157@
137@ = create_char_inside_car 141@ {pedType} PedType.Gang8 {modelId} 114
set_car_cruise_speed 141@ {maxSpeed} 35.0
set_car_driving_style 141@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 141@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 141@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 141@ {state} False
return 

:CESAR1_1165
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'CESAR1'
set_player_group_recruitment $player1 {state} False
34@ = 0
35@ = 0
36@ = -1
$cs1_race_is_go = 0
39@ = 2
38@ = 0
111@ = 0
115@ = 1
113@ = 1
114@ = 2
112@ = 0
40@ = 0
41@ = 4
50@ = 1820.4399
51@ = -2117.3201
52@ = 13.09
56@ = 1518.304
57@ = -1875.0229
58@ = 12.3828
53@ = 1518.304
54@ = -1869.0229
55@ = 12.3828
set_lvar_text_label 61@s = 'CES1_AA'
set_lvar_text_label 63@s = 'CES1_AB'
set_lvar_text_label 65@s = 'CES1_AC'
set_lvar_text_label 67@s = 'CES1_AD'
set_lvar_text_label 69@s = 'CES1_BA'
set_lvar_text_label 71@s = 'CES1_BB'
set_lvar_text_label 73@s = 'CES1_BC'
set_lvar_text_label 75@s = 'CES1_BD'
set_lvar_text_label 77@s = 'CES1_CA'
set_lvar_text_label 79@s = 'CES1_CB'
set_lvar_text_label 81@s = 'CES1_CC'
set_lvar_text_label 83@s = 'CES1_CD'
set_lvar_text_label 85@s = 'CES1_CE'
set_lvar_text_label 87@s = 'CES1_CF'
set_lvar_int_to_constant 95@ = 3200
set_lvar_int_to_constant 96@ = 3201
set_lvar_int_to_constant 97@ = 3206
set_lvar_int_to_constant 98@ = 3207
set_lvar_int_to_constant 99@ = 3202
set_lvar_int_to_constant 100@ = 3203
set_lvar_int_to_constant 101@ = 3208
set_lvar_int_to_constant 102@ = 3209
set_lvar_int_to_constant 103@ = 3210
set_lvar_int_to_constant 104@ = 3211
set_lvar_int_to_constant 105@ = 3212
set_lvar_int_to_constant 106@ = 3213
set_lvar_int_to_constant 107@ = 3214
set_lvar_int_to_constant 108@ = 3215
set_car_density_multiplier 0.0
$cs1_player_car = store_car_char_is_in $scplayer
set_car_coordinates $cs1_player_car {x} $cesarX {y} $cesarY {z} $cesarZ
set_car_heading $cs1_player_car {heading} 270.0
clear_area 1796.0 {y} -2118.0 {z} 14.0 {radius} 25.0 {clearParticles} True
load_cutscene 'CESAR1A'

:CESAR1_1759
if 
  not has_cutscene_loaded 
goto_if_false @CESAR1_1783
wait 0
goto @CESAR1_1759

:CESAR1_1783
start_cutscene 
do_fade 1000 {direction} Fade.In

:CESAR1_1792
if 
  not has_cutscene_finished 
goto_if_false @CESAR1_1816
wait 0
goto @CESAR1_1792

:CESAR1_1816
do_fade 0 {direction} Fade.Out

:CESAR1_1822
if 
  get_fading_status 
goto_if_false @CESAR1_1846
wait 0
goto @CESAR1_1822

:CESAR1_1846
clear_cutscene 
clear_area 1796.0 {y} -2118.0 {z} 14.0 {radius} 15.0 {clearParticles} True
set_car_density_multiplier 0.5
gosub @CESAR1_47
set_fading_colour 0 {g} 0 {b} 0
46@ = get_game_timer 
set_camera_behind_player 
set_player_control $player1 {state} False

:CESAR1_1908
wait 0
if 
  111@ <> 0
goto_if_false @CESAR1_2251
if 
  112@ == 0
goto_if_false @CESAR1_1976
if 
  has_mission_audio_loaded 114@
goto_if_false @CESAR1_1969
clear_mission_audio 114@

:CESAR1_1969
112@ = 1

:CESAR1_1976
if 
  112@ == 1
goto_if_false @CESAR1_2013
load_mission_audio 113@ {audioId} 94@(111@,17i)
112@ = 2

:CESAR1_2013
if 
  112@ == 2
goto_if_false @CESAR1_2073
if 
  has_mission_audio_loaded 113@
goto_if_false @CESAR1_2073
play_mission_audio 113@
print_now 59@(111@,17s) {time} 10000 {flag} 1
112@ = 3

:CESAR1_2073
if 
  112@ == 3
goto_if_false @CESAR1_2251
if 
  has_mission_audio_finished 113@
goto_if_false @CESAR1_2190
clear_this_print 59@(111@,17s)
if 
  113@ == 1
goto_if_false @CESAR1_2155
113@ = 2
114@ = 1
goto @CESAR1_2169

:CESAR1_2155
113@ = 1
114@ = 2

:CESAR1_2169
111@ = 0
112@ = 0
goto @CESAR1_2251

:CESAR1_2190
if 
  not has_mission_audio_loaded 114@
goto_if_false @CESAR1_2251
if 
  60 > 111@
goto_if_false @CESAR1_2251
set_lvar_int_to_lvar_int 115@ = 111@
115@ += 1
load_mission_audio 114@ {audioId} 94@(115@,17i)

:CESAR1_2251
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CESAR1_2280
$flag_cesar_mission_counter += 1
goto @CESAR1_4999

:CESAR1_2280
if 
  34@ > 0
goto_if_false @CESAR1_2305
gosub @CESAR1_5106

:CESAR1_2305
if and
  34@ > 0
  666 > 34@
goto_if_false @CESAR1_2370
if 
  is_car_dead 125@
goto_if_false @CESAR1_2370
print_now 'CES1_09' {time} 7000 {flag} 1
goto @CESAR1_4957

:CESAR1_2370
if 
  34@ == 0
goto_if_false @CESAR1_3200
if 
  36@ == -1
goto_if_false @CESAR1_2481
if and
  not is_car_dead $cs1_player_car
  not is_char_dead $scplayer
goto_if_false @CESAR1_2481
warp_char_into_car $scplayer {vehicle} $cs1_player_car
clear_prints 
43@ = get_game_timer 
gosub @CESAR1_203
switch_widescreen True
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
36@ = 0

:CESAR1_2481
if 
  36@ == 0
goto_if_false @CESAR1_2736
if and
  not is_char_dead $scplayer
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_2736
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_2736
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_2736
44@ = get_game_timer 
set_lvar_int_to_lvar_int 45@ = 44@
sub_int_lvar_from_int_lvar 45@ -= 43@
if and
  not is_char_dead 123@
  not is_char_dead 127@
goto_if_false @CESAR1_2736
set_char_proofs 123@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 127@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_can_be_shot_in_vehicle 123@ {state} False
set_char_can_be_shot_in_vehicle 127@ {state} False
if 
  not is_car_dead 125@
goto_if_false @CESAR1_2670
start_playback_recorded_car 125@ {path} 172

:CESAR1_2670
set_fixed_camera_position 1786.3311 {y} -2120.0659 {z} 12.8592 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1787.309 {y} -2120.1289 {z} 13.0548 {switchStyle} SwitchType.JumpCut
117@ = get_car_health $cs1_player_car
36@ = 2

:CESAR1_2736
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_3200
if 
  36@ == 1
goto_if_false @CESAR1_2881
if 
  locate_char_in_car_3d 123@ {x} 1802.126 {y} -2110.103 {z} 12.3902 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CESAR1_2881
set_fixed_camera_position 1825.202 {y} -2100.55 {z} 18.3156 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1824.693 {y} -2101.373 {z} 18.0676 {switchStyle} SwitchType.JumpCut
36@ = 2

:CESAR1_2881
if 
  36@ == 2
goto_if_false @CESAR1_3168
if 
  not is_car_dead 125@
goto_if_false @CESAR1_3168
if 
  is_char_in_car 123@ {vehicle} 125@
goto_if_false @CESAR1_3168
if 
  locate_char_in_car_3d 123@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @CESAR1_3168
if 
  not is_playback_going_on_for_car 125@
goto_if_false @CESAR1_3168
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 125@ {x} 1533.0081 {y} -1877.243 {z} 12.3828 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 125@ {x} 53@ {y} 54@ {z} 55@ {speed} 12.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 49@
perform_sequence_task 123@ {sequence} 49@
add_stuck_car_check_with_warp 125@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
remove_blip 126@
126@ = add_blip_for_car 125@
set_blip_as_friendly 126@ {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
35@ = 1
print_now 'CES1_04' {time} 5000 {flag} 2
39@ = 2
46@ = get_game_timer 
36@ = 3

:CESAR1_3168
if 
  36@ == 3
goto_if_false @CESAR1_3200
gosub @CESAR1_489
34@ = 1

:CESAR1_3200
if 
  34@ == 1
goto_if_false @CESAR1_4924
if 
  36@ == 3
goto_if_false @CESAR1_3340
46@ = get_game_timer 
if 
  not is_char_dead 134@
goto_if_false @CESAR1_3264
set_char_can_be_shot_in_vehicle 134@ {state} False

:CESAR1_3264
if 
  not is_char_dead 135@
goto_if_false @CESAR1_3287
set_char_can_be_shot_in_vehicle 135@ {state} False

:CESAR1_3287
if 
  not is_char_dead 136@
goto_if_false @CESAR1_3310
set_char_can_be_shot_in_vehicle 136@ {state} False

:CESAR1_3310
if 
  not is_char_dead 137@
goto_if_false @CESAR1_3333
set_char_can_be_shot_in_vehicle 137@ {state} False

:CESAR1_3333
36@ = 4

:CESAR1_3340
if 
  36@ == 4
goto_if_false @CESAR1_4776
if 
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_4776
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_3883
37@ = get_script_task_status 123@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 37@ == 7
goto_if_false @CESAR1_3445
if 
  does_car_have_stuck_car_check 125@
goto_if_false @CESAR1_3445
remove_stuck_car_check 125@

:CESAR1_3445
if 
  not locate_char_in_car_3d 123@ {x} 53@ {y} 54@ {z} 55@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CESAR1_3627
119@, 120@, 121@ = get_car_coordinates $cs1_player_car
128@, 129@, 130@ = get_car_coordinates 125@
132@ = get_distance_between_coords_2d 119@ {fromY} 120@ {toX} 128@ {toZ} 129@
133@ = 1000.0
div_float_lvar_by_float_lvar 133@ /= 132@
if 
  133@ > 30.0
goto_if_false @CESAR1_3581
133@ = 30.0

:CESAR1_3581
if 
  12.0 > 133@
goto_if_false @CESAR1_3612
133@ = 12.0

:CESAR1_3612
set_car_cruise_speed 125@ {maxSpeed} 133@
goto @CESAR1_3637

:CESAR1_3627
set_car_cruise_speed 125@ {maxSpeed} 12.0

:CESAR1_3637
if 
  38@ == 0
goto_if_false @CESAR1_3746
if 
  locate_char_in_car_3d 123@ {x} 53@ {y} 54@ {z} 55@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_3746
remove_blip 126@
124@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'CES1_05' {time} 10000 {flag} 1
39@ = 5
38@ = 1

:CESAR1_3746
if 
  locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CESAR1_3883
if 
  not locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_3883
if 
  39@ == 0
goto_if_false @CESAR1_3883
if 
  4 > 40@
goto_if_false @CESAR1_3883
46@ = get_game_timer 
39@ = 1
clear_prints 
set_var_int_to_lvar_int $races_timer = 40@
40@ += 1

:CESAR1_3883
118@ = get_car_health $cs1_player_car
if 
  is_int_lvar_greater_than_int_lvar 117@ > 118@
goto_if_false @CESAR1_4053
if 
  locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CESAR1_4053
if 
  not locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_4053
if 
  39@ == 0
goto_if_false @CESAR1_4053
if 
  8 > 41@
goto_if_false @CESAR1_4053
set_lvar_int_to_lvar_int 117@ = 118@
46@ = get_game_timer 
39@ = 1
set_var_int_to_lvar_int $races_timer = 41@
41@ += 1

:CESAR1_4053
if 
  39@ == 1
goto_if_false @CESAR1_4652
if 
  $races_timer == 0
goto_if_false @CESAR1_4133
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4133
111@ = 1
46@ = get_game_timer 
39@ = 2

:CESAR1_4133
if 
  $races_timer == 1
goto_if_false @CESAR1_4195
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4195
111@ = 2
46@ = get_game_timer 
39@ = 2

:CESAR1_4195
if 
  $races_timer == 2
goto_if_false @CESAR1_4257
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4257
111@ = 3
46@ = get_game_timer 
39@ = 2

:CESAR1_4257
if 
  $races_timer == 3
goto_if_false @CESAR1_4319
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4319
111@ = 4
46@ = get_game_timer 
39@ = 2

:CESAR1_4319
if 
  $races_timer == 4
goto_if_false @CESAR1_4381
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4381
111@ = 5
46@ = get_game_timer 
39@ = 2

:CESAR1_4381
if 
  $races_timer == 5
goto_if_false @CESAR1_4443
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4443
111@ = 6
46@ = get_game_timer 
39@ = 2

:CESAR1_4443
if 
  $races_timer == 6
goto_if_false @CESAR1_4505
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4505
111@ = 7
46@ = get_game_timer 
39@ = 2

:CESAR1_4505
if 
  $races_timer == 7
goto_if_false @CESAR1_4567
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4567
111@ = 8
46@ = get_game_timer 
39@ = 2

:CESAR1_4567
if 
  $races_timer == 8
goto_if_false @CESAR1_4652
print_now 'CES1_04' {time} 100 {flag} 1
47@ = get_game_timer 
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 5000
goto_if_false @CESAR1_4652
46@ = get_game_timer 
39@ = 2

:CESAR1_4652
if 
  39@ == 2
goto_if_false @CESAR1_4776
47@ = get_game_timer 
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 6000
goto_if_false @CESAR1_4776
if and
  not is_car_dead 138@
  not is_car_dead 139@
  not is_car_dead 140@
  not is_car_dead 141@
goto_if_false @CESAR1_4769
freeze_car_position 138@ {state} True
freeze_car_position 139@ {state} True
freeze_car_position 140@ {state} True
freeze_car_position 141@ {state} True

:CESAR1_4769
39@ = 0

:CESAR1_4776
if and
  not is_car_dead 125@
  not is_char_dead 123@
goto_if_false @CESAR1_4924
if and
  not is_car_dead $cs1_player_car
  not is_char_dead $scplayer
goto_if_false @CESAR1_4924
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_4924
if 
  locate_char_in_car_3d $scplayer {x} 56@ {y} 57@ {z} 58@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CESAR1_4924
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:CESAR1_4893
if 
  get_fading_status 
goto_if_false @CESAR1_4917
wait 0
goto @CESAR1_4893

:CESAR1_4917
goto @CESAR1_4999

:CESAR1_4924
if 
  34@ == 666
goto_if_false @CESAR1_4950
goto @CESAR1_4957

:CESAR1_4950
goto @CESAR1_1908

:CESAR1_4957
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 517
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 536
return 

:CESAR1_4999
$cs1_race_is_go = 1
return 

:CESAR1_5008
remove_blip 116@
remove_blip 126@
remove_blip 124@
remove_blip 42@
mark_model_as_no_longer_needed 114
delete_car 125@
delete_car 138@
delete_car 139@
delete_car 140@
delete_car 141@
unload_special_character 1
unload_special_character 2
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
if 
  34@ <> 666
goto_if_false @CESAR1_5104
do_fade 0 {direction} Fade.Out

:CESAR1_5104
return 

:CESAR1_5106
if 
  is_car_dead $cs1_player_car
goto_if_false @CESAR1_5146
print_now 'CES1_08' {time} 5000 {flag} 1
34@ = 666

:CESAR1_5146
if and
  not is_char_dead $scplayer
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_5518
if 
  35@ == 1
goto_if_false @CESAR1_5302
if 
  not is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_5302
if 
  34@ == 1
goto_if_false @CESAR1_5302
if 
  38@ == 0
goto_if_false @CESAR1_5245
remove_blip 126@

:CESAR1_5245
if 
  38@ == 1
goto_if_false @CESAR1_5268
remove_blip 124@

:CESAR1_5268
39@ = 10
remove_blip 116@
116@ = add_blip_for_car $cs1_player_car
set_blip_as_friendly 116@ {state} True
35@ = 0

:CESAR1_5302
if 
  35@ == 0
goto_if_false @CESAR1_5518
if 
  34@ == 1
goto_if_false @CESAR1_5353
print_now 'CES1_06' {time} 100 {flag} 1

:CESAR1_5353
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_5518
clear_prints 
if 
  34@ == 1
goto_if_false @CESAR1_5518
if 
  38@ == 0
goto_if_false @CESAR1_5446
if 
  not is_car_dead 125@
goto_if_false @CESAR1_5446
remove_blip 126@
126@ = add_blip_for_car 125@
set_blip_as_friendly 126@ {state} True

:CESAR1_5446
if 
  38@ == 1
goto_if_false @CESAR1_5499
remove_blip 124@
124@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'CES1_05' {time} 10000 {flag} 1

:CESAR1_5499
remove_blip 116@
39@ = 0
35@ = 1

:CESAR1_5518
return 

//-------------Mission 37---------------
// Originally: Reuniting The Families

:DRUGS4
script_name 'DRUGS4'
gosub @DRUGS4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS4_38
gosub @DRUGS4_67703

:DRUGS4_38
gosub @DRUGS4_67825
terminate_this_script 

:DRUGS4_47
register_mission_given 
load_mission_text 'LAFIN1'
$onmission = 1
wait 0
set_area_visible 1
load_cutscene 'FINAL1A'

:DRUGS4_86
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS4_110
wait 0
goto @DRUGS4_86

:DRUGS4_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS4_119
if 
  not has_cutscene_finished 
goto_if_false @DRUGS4_143
wait 0
goto @DRUGS4_119

:DRUGS4_143
clear_cutscene 
do_fade 0 {direction} Fade.Out

:DRUGS4_151
if 
  get_fading_status 
goto_if_false @DRUGS4_175
wait 0
goto @DRUGS4_151

:DRUGS4_175
set_area_visible 0
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 0
load_scene 2517.2371 {y} -1671.3409 {z} 12.9
force_weather_now WeatherType.SunnyLa
request_model 492
request_model 107
request_model 106
request_model 349
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_car_recording 350
request_model 353
request_model 346
request_model 285
load_mission_audio MissionAudioSlot.Slot2 {audioId} 25803
request_car_recording 352
request_car_recording 353
load_all_models_now 

:DRUGS4_319
if or
  not has_model_loaded 492
  not has_model_loaded 107
  not has_model_loaded 106
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_358
wait 0
goto @DRUGS4_319

:DRUGS4_358
if or
  not has_model_loaded 349
  not has_car_recording_been_loaded 350
  not has_model_loaded 353
  not has_model_loaded 346
  not has_model_loaded 285
goto_if_false @DRUGS4_405
wait 0
goto @DRUGS4_358

:DRUGS4_405
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_car_recording_been_loaded 352
  not has_car_recording_been_loaded 353
goto_if_false @DRUGS4_449
wait 0
goto @DRUGS4_405

:DRUGS4_449
set_script_limit_to_gang_size 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
151@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
305@ = 0
306@ = 0
307@ = 0
308@ = 0
309@ = 0
310@ = 0
311@ = 0
312@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
321@ = 0
322@ = 0
323@ = 0
324@ = 0
325@ = 0
326@ = 0
327@ = 0
328@ = 0
329@ = 0
330@ = 0
331@ = 0
55@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 55@ {event} Event.PotentialGetRunOver
56@ = load_char_decision_maker DecisionMakerType.Weak
57@ = load_char_decision_maker DecisionMakerType.Tough
clear_area 2514.3159 {y} -1673.395 {z} 150.0 {radius} 150.0 {clearParticles} True
set_time_of_day 19 {minutes} 30
set_char_coordinates $scplayer {x} 2517.2371 {y} -1671.3409 {z} 12.9
set_char_heading $scplayer {heading} 63.048
restore_camera_jumpcut 
set_camera_behind_player 
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.0701 {y} -1672.114 {z} 12.0957
set_car_can_be_visibly_damaged $sweet_car {state} False
set_car_heading $sweet_car {heading} 167.195
set_car_only_damaged_by_player $sweet_car {state} True
183@ = add_blip_for_car $sweet_car
set_blip_as_friendly 183@ {state} True
change_car_colour $sweet_car {color1} 59 {color2} 34
$sweet = create_char PedType.Special {modelId} 290 {x} 2511.0049 {y} -1672.2679 {z} 12.493
set_char_heading $sweet {heading} 62.083
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearLeft
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 55@
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_get_out_upside_down_car $sweet {state} False
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2505.3181 {y} -1674.7469 {z} 12.376
set_char_heading $big_smoke {heading} 356.374
set_char_never_targetted $big_smoke {state} True
set_char_only_damaged_by_player $big_smoke {state} True
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_get_out_upside_down_car $big_smoke {state} False
$ryder = create_char PedType.Special {modelId} 292 {x} 2506.5701 {y} -1667.7531 {z} 12.376
set_char_heading $ryder {heading} 171.457
set_char_never_targetted $ryder {state} True
set_char_only_damaged_by_player $ryder {state} True
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearRight
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 55@
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_get_out_upside_down_car $ryder {state} False
print_now 'LAF1_1' {time} 10000 {flag} 1
shut_char_up $scplayer {state} True
set_wanted_multiplier 0.0
set_max_fire_generations 1
switch_roads_off 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_off 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_emergency_services False
do_fade 500 {direction} Fade.In

:DRUGS4_1706
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS4_1732
goto @DRUGS4_67763

:DRUGS4_1732
if 
  129@ == 0
goto_if_false @DRUGS4_1976
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_1976
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_1976
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_1976
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_1976
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_1976
if 
  is_char_sitting_in_car $ryder {vehicle} $sweet_car
goto_if_false @DRUGS4_1976
if 
  is_char_sitting_in_car $big_smoke {vehicle} $sweet_car
goto_if_false @DRUGS4_1976
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_1976
remove_blip 183@
184@ = add_blip_for_coord 2256.239 {y} -1146.9091 {z} 25.121
set_radio_channel RadioChannel.CSR
print_now 'LAF1_3' {time} 7000 {flag} 1
switch_entry_exit 'MOTEL2' {state} False
TIMERA = 0
130@ = 1
128@ = 1
129@ = 1

:DRUGS4_1976
if 
  128@ == 1
goto_if_false @DRUGS4_3125
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_2085
if 
  179@ == 0
goto_if_false @DRUGS4_2085
if 
  TIMERA > 7000
goto_if_false @DRUGS4_2085
set_lvar_int_to_constant 106@ = 8234
set_lvar_text_label 107@s = 'FIN1_GA'
gosub @DRUGS4_66510

:DRUGS4_2085
if 
  178@ == 1
goto_if_false @DRUGS4_2150
if 
  179@ == 0
goto_if_false @DRUGS4_2150
set_lvar_int_to_constant 106@ = 8205
set_lvar_text_label 107@s = 'FIN1_GB'
gosub @DRUGS4_66510

:DRUGS4_2150
if 
  178@ == 2
goto_if_false @DRUGS4_2215
if 
  179@ == 0
goto_if_false @DRUGS4_2215
set_lvar_int_to_constant 106@ = 8262
set_lvar_text_label 107@s = 'FIN1_GC'
gosub @DRUGS4_66510

:DRUGS4_2215
if 
  178@ == 3
goto_if_false @DRUGS4_2280
if 
  179@ == 0
goto_if_false @DRUGS4_2280
set_lvar_int_to_constant 106@ = 8235
set_lvar_text_label 107@s = 'FIN1_GD'
gosub @DRUGS4_66510

:DRUGS4_2280
if 
  178@ == 4
goto_if_false @DRUGS4_2345
if 
  179@ == 0
goto_if_false @DRUGS4_2345
set_lvar_int_to_constant 106@ = 8206
set_lvar_text_label 107@s = 'FIN1_GE'
gosub @DRUGS4_66510

:DRUGS4_2345
if 
  178@ == 5
goto_if_false @DRUGS4_2410
if 
  179@ == 0
goto_if_false @DRUGS4_2410
set_lvar_int_to_constant 106@ = 8236
set_lvar_text_label 107@s = 'FIN1_GG'
gosub @DRUGS4_66510

:DRUGS4_2410
if 
  178@ == 6
goto_if_false @DRUGS4_2475
if 
  179@ == 0
goto_if_false @DRUGS4_2475
set_lvar_int_to_constant 106@ = 8305
set_lvar_text_label 107@s = 'FIN1_GI'
gosub @DRUGS4_66510

:DRUGS4_2475
if 
  178@ == 7
goto_if_false @DRUGS4_2540
if 
  179@ == 0
goto_if_false @DRUGS4_2540
set_lvar_int_to_constant 106@ = 8264
set_lvar_text_label 107@s = 'FIN1_GJ'
gosub @DRUGS4_66510

:DRUGS4_2540
if 
  178@ == 8
goto_if_false @DRUGS4_2605
if 
  179@ == 0
goto_if_false @DRUGS4_2605
set_lvar_int_to_constant 106@ = 8265
set_lvar_text_label 107@s = 'FIN1_GK'
gosub @DRUGS4_66510

:DRUGS4_2605
if 
  178@ == 9
goto_if_false @DRUGS4_2670
if 
  179@ == 0
goto_if_false @DRUGS4_2670
set_lvar_int_to_constant 106@ = 8238
set_lvar_text_label 107@s = 'FIN1_GL'
gosub @DRUGS4_66510

:DRUGS4_2670
if 
  178@ == 10
goto_if_false @DRUGS4_2735
if 
  179@ == 0
goto_if_false @DRUGS4_2735
set_lvar_int_to_constant 106@ = 8266
set_lvar_text_label 107@s = 'FIN1_GM'
gosub @DRUGS4_66510

:DRUGS4_2735
if 
  178@ == 11
goto_if_false @DRUGS4_2800
if 
  179@ == 0
goto_if_false @DRUGS4_2800
set_lvar_int_to_constant 106@ = 8239
set_lvar_text_label 107@s = 'FIN1_GN'
gosub @DRUGS4_66510

:DRUGS4_2800
if 
  178@ == 12
goto_if_false @DRUGS4_2865
if 
  179@ == 0
goto_if_false @DRUGS4_2865
set_lvar_int_to_constant 106@ = 8306
set_lvar_text_label 107@s = 'FIN1_GO'
gosub @DRUGS4_66510

:DRUGS4_2865
if 
  178@ == 13
goto_if_false @DRUGS4_2930
if 
  179@ == 0
goto_if_false @DRUGS4_2930
set_lvar_int_to_constant 106@ = 8307
set_lvar_text_label 107@s = 'FIN1_GP'
gosub @DRUGS4_66510

:DRUGS4_2930
if 
  178@ == 14
goto_if_false @DRUGS4_2995
if 
  179@ == 0
goto_if_false @DRUGS4_2995
set_lvar_int_to_constant 106@ = 8240
set_lvar_text_label 107@s = 'FIN1_GQ'
gosub @DRUGS4_66510

:DRUGS4_2995
if 
  178@ == 15
goto_if_false @DRUGS4_3060
if 
  179@ == 0
goto_if_false @DRUGS4_3060
set_lvar_int_to_constant 106@ = 8241
set_lvar_text_label 107@s = 'FIN1_GR'
gosub @DRUGS4_66510

:DRUGS4_3060
if 
  178@ == 16
goto_if_false @DRUGS4_3125
if 
  179@ == 0
goto_if_false @DRUGS4_3125
set_lvar_int_to_constant 106@ = 8308
set_lvar_text_label 107@s = 'FIN1_GS'
gosub @DRUGS4_66510

:DRUGS4_3125
if or
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3373
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_3373
if 
  130@ == 1
goto_if_false @DRUGS4_3257
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3257
remove_blip 184@
183@ = add_blip_for_car $sweet_car
set_blip_as_friendly 183@ {state} True
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AD' {time} 2000 {flag} 1
128@ = 100
130@ = 0

:DRUGS4_3257
if 
  130@ == 0
goto_if_false @DRUGS4_3373
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3373
remove_blip 183@
184@ = add_blip_for_coord 2256.239 {y} -1146.9091 {z} 25.121
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  178@ > 16
goto_if_false @DRUGS4_3359
print_now 'LAF1_3' {time} 5000 {flag} 1

:DRUGS4_3359
128@ = 1
130@ = 1

:DRUGS4_3373
if or
  128@ == 0
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3493
if or
  is_char_dead $sweet
  is_char_dead $big_smoke
  is_char_dead $ryder
goto_if_false @DRUGS4_3454
print_now 'LAF1_71' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_3454
if 
  is_car_dead $sweet_car
goto_if_false @DRUGS4_3493
print_now 'LAF1_72' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_3493
if 
  128@ == 1
goto_if_false @DRUGS4_3710
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_3710
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_3710
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_3710
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_3710
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3710
if 
  locate_car_2d $sweet_car {x} 2256.239 {y} -1146.9091 {xRadius} 4.4 {yRadius} 4.4 {drawSphere} True
goto_if_false @DRUGS4_3710
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_player_control $player1 {state} False
set_max_wanted_level 0
clear_wanted_level $player1
clear_area 2223.769 {y} -1141.832 {z} 200.0 {radius} 200.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_wanted_multiplier 0.0
clear_prints 
128@ = 2

:DRUGS4_3710
if 
  128@ == 2
goto_if_false @DRUGS4_4460
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4460
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:DRUGS4_3786
if 
  get_fading_status 
goto_if_false @DRUGS4_3810
wait 0
goto @DRUGS4_3786

:DRUGS4_3810
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8268
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8207
request_model 497
request_model 427
request_animation "CAR_CHAT"
load_all_models_now 

:DRUGS4_3856
if or
  not has_model_loaded 497
  not has_model_loaded 427
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_animation_loaded "CAR_CHAT"
goto_if_false @DRUGS4_3908
wait 0
goto @DRUGS4_3856

:DRUGS4_3908
34@ = create_char PedType.Mission3 {modelId} 107 {x} 2220.3701 {y} -1160.318 {z} 24.7265
set_char_heading 34@ {heading} 272.7973
task_play_anim 34@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 34@ {handleOrTemplate} 55@
set_char_never_targetted 34@ {state} True
wait 250
35@ = create_char PedType.Mission3 {modelId} 106 {x} 2221.564 {y} -1160.359 {z} 24.7265
set_char_heading 35@ {heading} 85.7682
task_play_anim 35@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 35@ {handleOrTemplate} 55@
set_char_never_targetted 35@ {state} True
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2227.2241 {y} -1172.0699 {z} 24.7265
set_char_heading 36@ {heading} 359.1032
set_char_decision_maker 36@ {handleOrTemplate} 55@
set_char_never_targetted 36@ {state} True
37@ = create_char PedType.Mission3 {modelId} 107 {x} 2226.3889 {y} -1171.688 {z} 24.7265
set_char_heading 37@ {heading} 278.7767
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 55@
set_char_never_targetted 37@ {state} True
load_scene_in_direction 2236.146 {y} -1146.359 {z} 25.4346 {heading} 34.0
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4324
car_set_idle $sweet_car
set_car_coordinates $sweet_car {x} 2278.4109 {y} -1147.0179 {z} 25.5
set_car_heading $sweet_car {heading} 80.53
camera_reset_new_scriptables 
set_fixed_camera_position 2236.146 {y} -1146.359 {z} 25.4346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DRUGS4_4324
load_scene 2226.3889 {y} -1171.688 {z} 24.7265
do_fade 250 {direction} Fade.In
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4372
start_playback_recorded_car $sweet_car {path} 350

:DRUGS4_4372
camera_set_vector_move 2236.146 {fromY} -1146.359 {fromZ} 25.4346 {toX} 2236.146 {toY} -1146.359 {toZ} 25.4346 {time} 2500 {ease} True
camera_set_vector_track 2235.937 {fromY} -1145.381 {fromZ} 25.444 {toX} 2235.365 {toY} -1145.735 {toZ} 25.444 {time} 2500 {ease} True
TIMERA = 0
128@ = 3

:DRUGS4_4460
if 
  128@ == 3
goto_if_false @DRUGS4_4601
if 
  TIMERA > 2500
goto_if_false @DRUGS4_4601
142@ = 0
skip_cutscene_start_internal @DRUGS4_11247
set_fixed_camera_position 2220.675 {y} -1161.401 {z} 26.4187 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2220.948 {y} -1160.4399 {z} 26.3852 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4587
pop_car_panel $sweet_car {panelId} 4 {visibility} False

:DRUGS4_4587
TIMERA = 0
128@ = 4

:DRUGS4_4601
if 
  128@ == 4
goto_if_false @DRUGS4_5169
if 
  TIMERA > 2750
goto_if_false @DRUGS4_5169
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5169
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5169
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5169
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5169
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5169
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_5169
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_4753
stop_playback_recorded_car $sweet_car

:DRUGS4_4753
set_near_clip 0.1
set_car_coordinates $sweet_car {x} 2224.3569 {y} -1149.741 {z} 24.8342
set_car_heading $sweet_car {heading} 180.1644
set_fixed_camera_position 2224.384 {y} -1150.745 {z} 26.0663 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.3889 {y} -1149.749 {z} 25.9763 {switchStyle} SwitchType.JumpCut
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $sweet {animationName} "CAR_SC1_BL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $big_smoke {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC1_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HA' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_5037
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5063
wait 0
goto @DRUGS4_5037

:DRUGS4_5063
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5090
stop_char_facial_talk $sweet

:DRUGS4_5090
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8269
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HB' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_5125
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_5151
wait 0
goto @DRUGS4_5125

:DRUGS4_5151
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
128@ = 5

:DRUGS4_5169
if 
  128@ == 5
goto_if_false @DRUGS4_5320
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5320
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5320
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HC' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_5246
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5272
wait 0
goto @DRUGS4_5246

:DRUGS4_5272
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5295
stop_char_facial_talk $sweet

:DRUGS4_5295
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8243
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8208
128@ = 6

:DRUGS4_5320
if 
  128@ == 6
goto_if_false @DRUGS4_5436
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5436
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5436
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5436
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5436
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_5436
task_leave_car $sweet {vehicle} $sweet_car
128@ = 7

:DRUGS4_5436
if 
  128@ == 7
goto_if_false @DRUGS4_5696
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5696
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5696
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5696
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5696
if 
  not is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_5696
set_near_clip 0.2
set_fixed_camera_position 2223.625 {y} -1146.995 {z} 26.1711 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.356 {y} -1147.677 {z} 26.2099 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2230.8101 {y} -1159.59 {z} 24.4
extend_route 2233.75 {y} -1159.83 {z} 25.29
task_follow_point_route $sweet {speed} MoveState.Run {mode} RouteMode.Once
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
128@ = 8

:DRUGS4_5696
if 
  128@ == 8
goto_if_false @DRUGS4_5853
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5853
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5853
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5853
if 
  locate_char_on_foot_2d $sweet {x} 2233.75 {y} -1159.83 {xRadius} 2.8 {yRadius} 2.8 {drawSphere} False
goto_if_false @DRUGS4_5814
128@ = 9
goto @DRUGS4_5853

:DRUGS4_5814
if 
  TIMERA > 10000
goto_if_false @DRUGS4_5853
set_char_coordinates $sweet {x} 2233.75 {y} -1159.83 {z} 25.29

:DRUGS4_5853
if 
  128@ == 9
goto_if_false @DRUGS4_6225
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6225
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6225
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6225
set_near_clip 0.1
set_fixed_camera_position 2225.0601 {y} -1148.192 {z} 26.0902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.447 {y} -1148.98 {z} 26.0466 {switchStyle} SwitchType.JumpCut
delete_char $sweet
task_play_anim $scplayer {animationName} "CAR_SC3_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $big_smoke {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HD' {time} 5000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6151
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_6151
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6177
wait 0
goto @DRUGS4_6151

:DRUGS4_6177
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6198
stop_char_facial_talk $ryder

:DRUGS4_6198
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8310
TIMERA = 0
128@ = 10

:DRUGS4_6225
if 
  128@ == 10
goto_if_false @DRUGS4_6416
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6416
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6416
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6416
set_fixed_camera_position 2224.3921 {y} -1148.606 {z} 25.9857 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.396 {y} -1149.605 {z} 25.955 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HE' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_6369
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6395
wait 0
goto @DRUGS4_6369

:DRUGS4_6395
clear_prints 
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8349
128@ = 11

:DRUGS4_6416
if 
  128@ == 11
goto_if_false @DRUGS4_6691
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6691
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6691
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6691
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HG' {time} 5000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6525
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS4_6525
40@ = create_car 497 {x} 2227.03 {y} -1130.199 {z} 25.305
start_playback_recorded_car 40@ {path} 352
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_6577
pause_playback_recorded_car 40@

:DRUGS4_6577
44@ = create_char_inside_car 40@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@

:DRUGS4_6624
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6650
wait 0
goto @DRUGS4_6624

:DRUGS4_6650
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6671
stop_char_facial_talk $big_smoke

:DRUGS4_6671
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8303
128@ = 12

:DRUGS4_6691
if 
  128@ == 12
goto_if_false @DRUGS4_6833
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_6833
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_6833
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6833
set_near_clip 0.2
unpause_playback_recorded_car 40@
set_fixed_camera_position 2182.522 {y} -1083.687 {z} 61.5308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2182.9961 {y} -1084.463 {z} 61.115 {switchStyle} SwitchType.JumpCut
TIMERA = 0
128@ = 13

:DRUGS4_6833
if 
  128@ == 13
goto_if_false @DRUGS4_7096
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7096
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7096
TIMERA = 0
set_fixed_camera_position 2232.178 {y} -1149.902 {z} 33.2809 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2228.3601 {yPoint} -1171.48 {zPoint} 25.82 {pointRadius} 5.0 {radius} 0.4
move_searchlight_between_coords 58@ {fromX} 2228.3601 {fromY} -1171.48 {fromZ} 25.82 {toX} 2215.4099 {toY} -1142.51 {toZ} 25.5 {speed} 0.5
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HH' {time} 5000 {flag} 1

:DRUGS4_7042
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_7068
wait 0
goto @DRUGS4_7042

:DRUGS4_7068
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8341
remove_animation "CAR_CHAT"
128@ = 14

:DRUGS4_7096
if 
  128@ == 14
goto_if_false @DRUGS4_7323
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7323
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_7323
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7323
stop_playback_recorded_car 40@
set_fixed_camera_position 2226.998 {y} -1144.541 {z} 25.3493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2226.594 {y} -1145.45 {z} 25.4594 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 40@ {path} 353
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7269
task_go_straight_to_coord 36@ {x} 2219.71 {y} -1178.52 {z} 25.34 {speed} MoveState.Run {time} -1

:DRUGS4_7269
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_7309
task_go_straight_to_coord 37@ {x} 2206.6499 {y} -1172.63 {z} 25.08 {speed} MoveState.Run {time} -1

:DRUGS4_7309
TIMERA = 0
128@ = 15

:DRUGS4_7323
if 
  128@ == 15
goto_if_false @DRUGS4_7526
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7526
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_7526
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS4_7526
if 
  TIMERA > 2000
goto_if_false @DRUGS4_7526
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_7526
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HI' {time} 5000 {flag} 1
task_leave_any_car $scplayer
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_7512
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_7512
clear_look_at $big_smoke
clear_look_at $ryder
task_look_at_char $big_smoke {target} $scplayer {time} 15000
task_look_at_char $ryder {target} $scplayer {time} 15000

:DRUGS4_7512
TIMERA = 0
128@ = 16

:DRUGS4_7526
if 
  128@ == 16
goto_if_false @DRUGS4_8138
if 
  TIMERA > 2000
goto_if_false @DRUGS4_8138
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8138
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8138
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7639
task_go_straight_to_coord 36@ {x} 2203.25 {y} -1178.87 {z} 25.44 {speed} MoveState.Run {time} -1

:DRUGS4_7639
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_7679
task_go_straight_to_coord 37@ {x} 2204.1499 {y} -1153.74 {z} 25.58 {speed} MoveState.Run {time} -1

:DRUGS4_7679
set_fixed_camera_position 2224.0669 {y} -1162.707 {z} 40.9275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.842 {y} -1163.226 {z} 40.103 {switchStyle} SwitchType.JumpCut
set_time_scale 0.5
47@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2223.5601 {y} -1168.05 {z} 32.28
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 47@ {accuracy} 30
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_CI' {time} 3000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8244
wait 100
48@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2222.6299 {y} -1166.01 {z} 32.25
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 48@ {accuracy} 30
wait 50
49@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2221.5801 {y} -1168.9 {z} 32.27
give_weapon_to_char 49@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 49@ {accuracy} 30
wait 100
50@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2220.74 {y} -1167.28 {z} 32.22
give_weapon_to_char 50@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 50@ {accuracy} 30
wait 500
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7983
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
task_duck 36@ {time} 10000

:DRUGS4_7983
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_8034
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 37@ {x} 2221.179 {y} -1177.662 {z} 25.767 {speed} MoveState.Run {time} 5000

:DRUGS4_8034
set_fixed_camera_position 2222.396 {y} -1165.563 {z} 24.9959 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2222.3159 {y} -1165.83 {z} 25.9562 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 2226.144 {y} -1149.9969 {z} 24.8496
set_char_heading $scplayer {heading} 102.7208
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 60
TIMERA = 0
128@ = 17

:DRUGS4_8138
if 
  128@ == 17
goto_if_false @DRUGS4_8535
if 
  TIMERA > 1500
goto_if_false @DRUGS4_8535
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8535
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8535
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8311
set_time_scale 1.0
set_fixed_camera_position 2222.594 {y} -1150.71 {z} 26.1976 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.4031 {y} -1150.139 {z} 26.0591 {switchStyle} SwitchType.JumpCut
TIMERA = 0
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HJ' {time} 5000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_8327
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_8327
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8353
wait 0
goto @DRUGS4_8327

:DRUGS4_8353
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_8385
stop_char_facial_talk $ryder
task_look_at_char $scplayer {target} $ryder {time} 3000

:DRUGS4_8385
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8210

:DRUGS4_8398
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8424
wait 0
goto @DRUGS4_8398

:DRUGS4_8424
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HK' {time} 5000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_8468
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS4_8468
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8494
wait 0
goto @DRUGS4_8468

:DRUGS4_8494
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_8515
stop_char_facial_talk $big_smoke

:DRUGS4_8515
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8245
128@ = 18

:DRUGS4_8535
if 
  128@ == 18
goto_if_false @DRUGS4_9138
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_9138
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_9138
if 
  not is_char_dead 49@
goto_if_false @DRUGS4_9138
if 
  not is_char_dead 50@
goto_if_false @DRUGS4_9138
if 
  138@ == 0
goto_if_false @DRUGS4_8696
59@ = get_script_task_status 47@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_8696
task_go_straight_to_coord 47@ {x} 2226.4299 {y} -1155.37 {z} 25.33 {speed} MoveState.Run {time} 5000
138@ = 1

:DRUGS4_8696
if 
  139@ == 0
goto_if_false @DRUGS4_8775
60@ = get_script_task_status 48@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_8775
task_go_straight_to_coord 48@ {x} 2230.52 {y} -1165.15 {z} 25.63 {speed} MoveState.Run {time} 5000
139@ = 1

:DRUGS4_8775
if 
  140@ == 0
goto_if_false @DRUGS4_8854
61@ = get_script_task_status 49@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_8854
task_go_straight_to_coord 49@ {x} 2217.53 {y} -1163.1801 {z} 25.27 {speed} MoveState.Run {time} 5000
140@ = 1

:DRUGS4_8854
if 
  141@ == 0
goto_if_false @DRUGS4_8933
62@ = get_script_task_status 50@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_8933
task_go_straight_to_coord 50@ {x} 2226.25 {y} -1167.0 {z} 25.04 {speed} MoveState.Run {time} 5000
141@ = 1

:DRUGS4_8933
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_9012
128@ = 21

:DRUGS4_9012
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9138
task_go_straight_to_coord 47@ {x} 2226.4299 {y} -1155.37 {z} 25.33 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 48@ {x} 2230.52 {y} -1165.15 {z} 25.63 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 49@ {x} 2217.53 {y} -1163.1801 {z} 25.27 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 50@ {x} 2226.25 {y} -1167.0 {z} 25.04 {speed} MoveState.Run {time} 5000
128@ = 19

:DRUGS4_9138
if 
  128@ == 19
goto_if_false @DRUGS4_9559
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9559
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_9559
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_9559
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_9559
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_9559
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_9559
request_car_recording 354
request_car_recording 355
request_car_recording 356
task_shuffle_to_next_car_seat $big_smoke {vehicle} $sweet_car
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HL' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_9320
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_9320
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_9346
wait 0
goto @DRUGS4_9320

:DRUGS4_9346
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_9367
stop_char_facial_talk $scplayer

:DRUGS4_9367
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1

:DRUGS4_9373
if or
  not has_car_recording_been_loaded 354
  not has_car_recording_been_loaded 355
  not has_car_recording_been_loaded 356
goto_if_false @DRUGS4_9410
wait 0
goto @DRUGS4_9373

:DRUGS4_9410
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_9434
start_playback_recorded_car $sweet_car {path} 356

:DRUGS4_9434
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HM' {time} 3000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_9478
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_9478
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_9545
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_9515
stop_playback_recorded_car 40@

:DRUGS4_9515
heli_goto_coords 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61 {minAltitude} 10.0 {maxAltitude} 10.0

:DRUGS4_9545
TIMERA = 0
128@ = 20

:DRUGS4_9559
if 
  128@ == 20
goto_if_false @DRUGS4_10305
if 
  TIMERA > 2000
goto_if_false @DRUGS4_10305
42@ = create_car 427 {x} 2217.2361 {y} -1019.97 {z} 30.7
set_car_heading 42@ {heading} 176.5
switch_car_siren 42@ {state} True
start_playback_recorded_car 42@ {path} 354
45@ = create_char_inside_car 42@ {pedType} PedType.Mission4 {modelId} 285
give_weapon_to_char 45@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_char_accuracy 45@ {accuracy} 30
51@ = create_char_as_passenger 42@ {pedType} PedType.Mission4 {modelId} 285 {seat} SeatId.RearLeft
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_char_accuracy 51@ {accuracy} 30
43@ = create_car 427 {x} 2253.8899 {y} -1144.77 {z} 26.47
set_car_heading 43@ {heading} 89.947
switch_car_siren 43@ {state} True
start_playback_recorded_car 43@ {path} 355
46@ = create_char_inside_car 43@ {pedType} PedType.Mission4 {modelId} 285
set_char_accuracy 46@ {accuracy} 30
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 3000
53@ = create_char_as_passenger 43@ {pedType} PedType.Mission4 {modelId} 285 {seat} SeatId.RearLeft
set_char_accuracy 53@ {accuracy} 30
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_9849
set_char_relationship 34@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 34@ {handleOrTemplate} 57@

:DRUGS4_9849
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_9882
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 35@ {handleOrTemplate} 57@

:DRUGS4_9882
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_9915
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 57@

:DRUGS4_9915
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_9948
set_char_relationship 37@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 37@ {handleOrTemplate} 57@

:DRUGS4_9948
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_9990
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 47@ {handleOrTemplate} 57@

:DRUGS4_9990
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_10032
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 48@ {handleOrTemplate} 57@

:DRUGS4_10032
if 
  not is_char_dead 49@
goto_if_false @DRUGS4_10074
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 49@ {handleOrTemplate} 57@

:DRUGS4_10074
if 
  not is_char_dead 50@
goto_if_false @DRUGS4_10107
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 50@ {handleOrTemplate} 57@

:DRUGS4_10107
set_fixed_camera_position 2203.1631 {y} -1178.891 {z} 31.8778 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2203.897 {y} -1178.225 {z} 31.7493 {switchStyle} SwitchType.JumpCut
task_toggle_duck $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 2231.5691 {y} -1155.75 {z} 25.85 {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_10240
give_weapon_to_char 34@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 34@ {x} 2228.4209 {y} -1164.66 {z} 25.766 {speed} MoveState.Run {time} 5000

:DRUGS4_10240
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_10291
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 35@ {x} 2221.47 {y} -1164.66 {z} 25.766 {speed} MoveState.Run {time} 5000

:DRUGS4_10291
TIMERB = 0
128@ = 21

:DRUGS4_10305
if 
  128@ == 21
goto_if_false @DRUGS4_10448
if 
  not is_car_dead 42@
goto_if_false @DRUGS4_10448
if 
  not is_playback_going_on_for_car 42@
goto_if_false @DRUGS4_10448
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10398
if 
  is_char_in_car 51@ {vehicle} 42@
goto_if_false @DRUGS4_10398
task_leave_car 51@ {vehicle} 42@

:DRUGS4_10398
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10441
if 
  is_char_in_car 45@ {vehicle} 42@
goto_if_false @DRUGS4_10441
task_leave_car 45@ {vehicle} 42@

:DRUGS4_10441
128@ = 22

:DRUGS4_10448
if 
  128@ == 22
goto_if_false @DRUGS4_10749
if 
  not is_car_dead 43@
goto_if_false @DRUGS4_10749
if 
  not is_playback_going_on_for_car 43@
goto_if_false @DRUGS4_10749
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_10541
if 
  is_char_in_car 53@ {vehicle} 43@
goto_if_false @DRUGS4_10541
task_leave_car 53@ {vehicle} 43@

:DRUGS4_10541
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_10584
if 
  is_char_in_car 46@ {vehicle} 43@
goto_if_false @DRUGS4_10584
task_leave_car 46@ {vehicle} 43@

:DRUGS4_10584
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10626
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 45@ {handleOrTemplate} 57@

:DRUGS4_10626
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_10659
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 46@ {handleOrTemplate} 57@

:DRUGS4_10659
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10692
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 51@ {handleOrTemplate} 57@

:DRUGS4_10692
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_10725
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 53@ {handleOrTemplate} 57@

:DRUGS4_10725
set_char_heading $scplayer {heading} 150.0
TIMERA = 0
128@ = 23

:DRUGS4_10749
if 
  128@ == 23
goto_if_false @DRUGS4_11203
if 
  131@ == 0
goto_if_false @DRUGS4_10832
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10832
if 
  not is_char_in_any_car 45@
goto_if_false @DRUGS4_10832
task_duck 45@ {time} 5000
131@ = 1

:DRUGS4_10832
if 
  132@ == 0
goto_if_false @DRUGS4_10914
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10914
if 
  not is_char_in_any_car 51@
goto_if_false @DRUGS4_10914
task_go_straight_to_coord 51@ {x} 2203.77 {y} -1156.4399 {z} 25.31 {speed} MoveState.Run {time} 5000
132@ = 1

:DRUGS4_10914
if 
  134@ == 0
goto_if_false @DRUGS4_11050
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_11050
if 
  not is_char_in_any_car 46@
goto_if_false @DRUGS4_11050
flush_route 
extend_route 2215.3999 {y} -1146.1899 {z} 25.85
extend_route 2214.6699 {y} -1149.71 {z} 25.47
extend_route 2204.8301 {y} -1157.04 {z} 25.88
extend_route 2209.01 {y} -1166.46 {z} 25.89
task_follow_point_route 46@ {speed} MoveState.Run {mode} RouteMode.Once
134@ = 1

:DRUGS4_11050
if 
  135@ == 0
goto_if_false @DRUGS4_11203
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_11203
if 
  not is_char_in_any_car 53@
goto_if_false @DRUGS4_11203
flush_route 
extend_route 2222.47 {y} -1146.52 {z} 25.43
extend_route 2215.3999 {y} -1146.1899 {z} 25.85
extend_route 2204.8301 {y} -1157.04 {z} 25.88
extend_route 2206.6101 {y} -1168.51 {z} 25.89
extend_route 2211.0 {y} -1171.72 {z} 25.55
task_follow_point_route 53@ {speed} MoveState.Run {mode} RouteMode.Once
135@ = 1

:DRUGS4_11203
if 
  128@ == 23
goto_if_false @DRUGS4_13311
if 
  TIMERA > 1000
goto_if_false @DRUGS4_13311
142@ = 1

:DRUGS4_11247
skip_cutscene_end 
if 
  142@ == 0
goto_if_false @DRUGS4_13177
do_fade 500 {direction} Fade.Out

:DRUGS4_11274
if 
  get_fading_status 
goto_if_false @DRUGS4_11298
wait 0
goto @DRUGS4_11274

:DRUGS4_11298
camera_reset_new_scriptables 
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS4_11353
warp_char_from_car_to_coord $scplayer {x} 2231.5691 {y} -1155.75 {z} 24.85
set_char_heading $scplayer {heading} 150.0
goto @DRUGS4_11383

:DRUGS4_11353
set_char_coordinates $scplayer {x} 2231.5691 {y} -1155.75 {z} 24.85
set_char_heading $scplayer {heading} 150.0

:DRUGS4_11383
delete_char $sweet
delete_char $big_smoke
delete_char $ryder
unload_special_character 2
unload_special_character 3
request_model 492
request_model 107
request_model 106
request_model 353
request_model 346
request_model 285
request_model 497
request_model 427
load_all_models_now 

:DRUGS4_11446
if or
  not has_model_loaded 492
  not has_model_loaded 107
  not has_model_loaded 106
goto_if_false @DRUGS4_11481
wait 0
goto @DRUGS4_11446

:DRUGS4_11481
if or
  not has_model_loaded 353
  not has_model_loaded 346
  not has_model_loaded 285
  not has_model_loaded 497
  not has_model_loaded 427
goto_if_false @DRUGS4_11528
wait 0
goto @DRUGS4_11481

:DRUGS4_11528
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 53@
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_11630
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_11630
stop_playback_recorded_car 40@

:DRUGS4_11630
if 
  not is_car_dead 42@
goto_if_false @DRUGS4_11667
if 
  is_playback_going_on_for_car 42@
goto_if_false @DRUGS4_11667
stop_playback_recorded_car 42@

:DRUGS4_11667
if 
  not is_car_dead 43@
goto_if_false @DRUGS4_11704
if 
  is_playback_going_on_for_car 43@
goto_if_false @DRUGS4_11704
stop_playback_recorded_car 43@

:DRUGS4_11704
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_11741
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_11741
stop_playback_recorded_car $sweet_car

:DRUGS4_11741
delete_car 40@
delete_car 42@
delete_car 43@
delete_car $sweet_car
delete_searchlight 58@
42@ = create_car 427 {x} 2210.24 {y} -1159.976 {z} 24.7265
set_car_heading 42@ {heading} 191.9611
switch_car_siren 42@ {state} True
43@ = create_car 427 {x} 2218.7881 {y} -1140.993 {z} 24.7814
set_car_heading 43@ {heading} 78.1047
switch_car_siren 43@ {state} True
40@ = create_car 497 {x} 2276.22 {y} -1140.87 {z} 60.0
44@ = create_char_inside_car 40@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_heli_blades_full_speed 40@
set_car_forward_speed 40@ {forwardSpeed} 10.0
heli_goto_coords 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61 {minAltitude} 10.0 {maxAltitude} 10.0
set_car_coordinates 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2228.3601 {yPoint} -1171.48 {zPoint} 25.82 {pointRadius} 5.0 {radius} 0.4
move_searchlight_between_coords 58@ {fromX} 2228.3601 {fromY} -1171.48 {fromZ} 25.82 {toX} 2215.4099 {toY} -1142.51 {toZ} 25.5 {speed} 0.5
46@ = create_char PedType.Mission4 {modelId} 285 {x} 2209.01 {y} -1166.46 {z} 24.89
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 46@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 46@ {accuracy} 30
45@ = create_char PedType.Mission4 {modelId} 285 {x} 2213.52 {y} -1161.97 {z} 24.77
give_weapon_to_char 45@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 45@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 45@ {accuracy} 30
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2203.77 {y} -1156.4399 {z} 24.31
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 51@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 51@ {accuracy} 30
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2212.95 {y} -1179.16 {z} 24.31
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 53@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 53@ {accuracy} 30
47@ = create_char PedType.Mission4 {modelId} 285 {x} 2226.4299 {y} -1155.37 {z} 24.33
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 47@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 47@ {accuracy} 30
48@ = create_char PedType.Mission4 {modelId} 285 {x} 2230.52 {y} -1165.15 {z} 24.63
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 48@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 48@ {accuracy} 30
49@ = create_char PedType.Mission4 {modelId} 285 {x} 2217.53 {y} -1163.1801 {z} 24.27
give_weapon_to_char 49@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 49@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 49@ {accuracy} 30
50@ = create_char PedType.Mission4 {modelId} 285 {x} 2226.25 {y} -1167.0 {z} 24.04
give_weapon_to_char 50@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 50@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 50@ {accuracy} 30
34@ = create_char PedType.Mission3 {modelId} 107 {x} 2228.4209 {y} -1164.66 {z} 24.766
task_turn_char_to_face_coord 34@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 34@ {handleOrTemplate} 57@
give_weapon_to_char 34@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 34@ {accuracy} 30
set_char_never_targetted 34@ {state} True
35@ = create_char PedType.Mission3 {modelId} 107 {x} 2221.47 {y} -1164.66 {z} 24.766
task_turn_char_to_face_coord 35@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 35@ {handleOrTemplate} 57@
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 35@ {accuracy} 40
set_char_never_targetted 35@ {state} True
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2227.2241 {y} -1172.0699 {z} 24.7265
task_turn_char_to_face_coord 36@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 36@ {handleOrTemplate} 57@
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 36@ {accuracy} 30
set_char_never_targetted 36@ {state} True
37@ = create_char PedType.Mission3 {modelId} 106 {x} 2221.179 {y} -1177.662 {z} 24.767
task_turn_char_to_face_coord 37@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 37@ {handleOrTemplate} 57@
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 37@ {accuracy} 40
set_char_never_targetted 37@ {state} True
set_char_relationship 34@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 34@ {handleOrTemplate} 57@
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 35@ {handleOrTemplate} 57@
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 57@
set_char_relationship 37@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 37@ {handleOrTemplate} 57@
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 45@ {handleOrTemplate} 57@
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 46@ {handleOrTemplate} 57@
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 47@ {handleOrTemplate} 57@
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 48@ {handleOrTemplate} 57@
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 49@ {handleOrTemplate} 57@
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 50@ {handleOrTemplate} 57@
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 51@ {handleOrTemplate} 57@
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 53@ {handleOrTemplate} 57@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_time_scale 1.0
restore_camera_jumpcut 
switch_widescreen False
set_camera_behind_player 
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 60
set_char_heading $scplayer {heading} 192.0
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:DRUGS4_13177
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_13201
set_car_health 40@ {health} 700

:DRUGS4_13201
delete_char $big_smoke
delete_char $ryder
delete_car $sweet_car
mark_model_as_no_longer_needed 492
unload_special_character 2
unload_special_character 3
remove_animation "CAR_CHAT"
clear_prints 
restore_camera_jumpcut 
remove_blip 184@
remove_blip 183@
184@ = add_blip_for_coord 2235.3 {y} -1159.67 {z} 25.94
switch_widescreen False
set_camera_behind_player 
set_player_control $player1 {state} True
print_now 'LAF1_17' {time} 10000 {flag} 1
128@ = 24

:DRUGS4_13311
if 
  128@ == 24
goto_if_false @DRUGS4_15334
if 
  143@ == 0
goto_if_false @DRUGS4_13380
if 
  is_car_dead 40@
goto_if_false @DRUGS4_13380
mark_model_as_no_longer_needed 497
delete_searchlight 58@
143@ = 1

:DRUGS4_13380
if 
  144@ == 0
goto_if_false @DRUGS4_13426
if 
  is_car_dead 42@
goto_if_false @DRUGS4_13426
mark_car_as_no_longer_needed 42@
144@ = 1

:DRUGS4_13426
if 
  145@ == 0
goto_if_false @DRUGS4_13472
if 
  is_car_dead 43@
goto_if_false @DRUGS4_13472
mark_car_as_no_longer_needed 43@
145@ = 1

:DRUGS4_13472
if 
  144@ == 1
goto_if_false @DRUGS4_13527
if 
  145@ == 1
goto_if_false @DRUGS4_13527
mark_model_as_no_longer_needed 427
144@ = 2
145@ = 2

:DRUGS4_13527
64@ = get_char_area_visible $scplayer
if 
  64@ == 15
goto_if_false @DRUGS4_15334
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 53@
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_car 40@
delete_car 42@
delete_car 43@
delete_searchlight 58@
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 427
132@ = 0
133@ = 0
135@ = 0
136@ = 0
138@ = 0
138@ = 0
set_player_control $player1 {state} False
remove_blip 184@
remove_animation "CAR_CHAT"
34@ = create_char PedType.Mission1 {modelId} 106 {x} 2229.5659 {y} -1150.495 {z} 1029.0
set_char_has_used_entry_exit 34@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 34@ {heading} 86.6836
set_char_never_targetted 34@ {state} True
set_char_decision_maker 34@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 34@ {state} 55@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8212
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8331
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29001
request_animation "SWAT"
request_model 63
request_model #IMY_SKYLIGHT
request_model #KMB_TROLLEY
request_animation "KISSING"
load_all_models_now 

:DRUGS4_13852
if or
  not has_animation_loaded "SWAT"
  not has_model_loaded 63
  not has_model_loaded #IMY_SKYLIGHT
  not has_animation_loaded "KISSING"
  not has_model_loaded #KMB_TROLLEY
goto_if_false @DRUGS4_13907
wait 0
goto @DRUGS4_13852

:DRUGS4_13907
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_13941
wait 0
goto @DRUGS4_13907

:DRUGS4_13941
127@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2240.686 {y} -1187.269 {z} 1033.8361
93@ = create_object_no_offset #IMY_SKYLIGHT {x} 2246.0701 {y} -1191.2419 {z} 1037.234
84@ = create_object_no_offset #LXR_MOTEL_DOORSIM {x} 2239.4319 {y} -1170.749 {z} 1029.9969
set_object_heading 84@ {heading} 270.0
85@ = create_object_no_offset #LXR_MOTELVENT {x} 2217.072 {y} -1188.6639 {z} 1032.276
set_object_heading 85@ {heading} 180.0
86@ = create_object #LXR_MOTELVENT {x} 2193.188 {y} -1164.511 {z} 1032.276
set_object_heading 86@ {heading} 90.0
freeze_object_position 85@ {state} True
freeze_object_position 86@ {state} True
82@ = create_char PedType.Mission1 {modelId} 63 {x} 2227.1599 {y} -1148.02 {z} 1029.0
set_char_has_used_entry_exit 82@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_never_targetted 82@ {state} True
set_char_decision_maker 82@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 82@ {state} True
$sweet = create_char PedType.Special {modelId} 290 {x} 2202.23 {y} -1156.9139 {z} 1029.8521
set_char_has_used_entry_exit $sweet {x} 2232.4099 {y} -1160.04 {radius} 3.0
set_char_area_visible $sweet {areaId} 15
set_char_suffers_critical_hits $sweet {state} False
set_char_heading $sweet {heading} 62.083
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 55@
183@ = add_blip_for_char $sweet
set_blip_as_friendly 183@ {state} True
set_char_health $sweet {health} 1000
give_weapon_to_char $sweet {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_proofs $sweet {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
66@ = create_char PedType.Mission1 {modelId} 106 {x} 2220.5239 {y} -1137.826 {z} 1026.798
set_char_has_used_entry_exit 66@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 66@ {heading} 181.8677
task_play_anim_non_interruptable 66@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_proofs 66@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_never_targetted 66@ {state} True
set_char_decision_maker 66@ {handleOrTemplate} 55@
set_char_bleeding 66@ {state} True
set_char_only_damaged_by_player 66@ {state} True
35@ = create_char PedType.Mission1 {modelId} 106 {x} 2234.9199 {y} -1149.63 {z} 1029.0
set_char_decision_maker 35@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 35@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
52@ = create_char PedType.Mission2 {modelId} 285 {x} 2239.3091 {y} -1151.724 {z} 1028.7791
set_char_heading 52@ {heading} 177.9528
give_weapon_to_char 52@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 52@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 52@ {state} True
set_char_health 52@ {health} 100
set_char_has_used_entry_exit 52@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
83@ = create_char PedType.Mission1 {modelId} 63 {x} 2234.99 {y} -1159.55 {z} 1029.84
set_char_heading 83@ {heading} 267.0618
set_char_never_targetted 83@ {state} True
set_char_decision_maker 83@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 83@ {state} True
set_char_has_used_entry_exit 83@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_proofs 83@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
53@ = create_char PedType.Mission2 {modelId} 285 {x} 2238.8169 {y} -1170.598 {z} 1028.813
set_char_heading 53@ {heading} 272.0738
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 53@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 53@ {state} True
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 80
set_char_has_used_entry_exit 53@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2244.5 {y} -1189.627 {z} 1028.8
set_char_heading 36@ {heading} 88.196
set_char_only_damaged_by_player 36@ {state} True
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_never_targetted 36@ {state} True
set_char_accuracy 36@ {accuracy} 10
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 36@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
37@ = create_char PedType.Mission3 {modelId} 107 {x} 2241.05 {y} -1192.373 {z} 1028.798
set_char_heading 37@ {heading} 358.2577
set_char_only_damaged_by_player 37@ {state} True
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 37@ {accuracy} 10
set_char_never_targetted 37@ {state} True
set_char_decision_maker 37@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 37@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
38@ = create_char PedType.Mission1 {modelId} 106 {x} 2240.156 {y} -1186.704 {z} 1028.798
set_char_heading 38@ {heading} 90.1792
set_char_only_damaged_by_player 38@ {state} True
give_weapon_to_char 38@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_never_targetted 38@ {state} True
set_char_decision_maker 38@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 38@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
67@ = create_char PedType.Mission1 {modelId} 107 {x} 2234.8401 {y} -1191.202 {z} 1029.845
set_char_heading 67@ {heading} 272.171
set_char_only_damaged_by_player 67@ {state} True
set_char_never_targetted 67@ {state} True
task_play_anim_non_interruptable 67@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_bleeding 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 67@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
65@ = create_fx_system "EXPLOSION_DOOR" {x} 2239.51 {y} -1170.77 {z} 1029.84 {ignoreBoundingChecks} True
set_char_has_used_entry_exit $scplayer {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_coordinates $scplayer {x} 2216.3401 {y} -1150.509 {z} 1024.85
set_player_control $player1 {state} True
set_camera_behind_player 
switch_entry_exit 'MOTEL1' {state} False
print_help 'LAF1_7'
print_now 'LAF1_6' {time} 5000 {flag} 1
178@ = 0
179@ = 0
128@ = 25
146@ = 1

:DRUGS4_15334
if 
  172@ == 0
goto_if_false @DRUGS4_29396
if 
  146@ == 1
goto_if_false @DRUGS4_29396
if 
  147@ == 0
goto_if_false @DRUGS4_15978
clear_prints 
97@ = create_object_no_offset #KMB_TROLLEY {x} 2242.4331 {y} -1166.712 {z} 1029.304
set_object_health 97@ {health} 150
set_object_only_damaged_by_player 97@ {state} True
98@ = create_object_no_offset #KMB_TROLLEY {x} 2240.1101 {y} -1174.9189 {z} 1029.304
set_object_health 98@ {health} 250
99@ = create_object_no_offset #KMB_TROLLEY {x} 2229.8701 {y} -1189.845 {z} 1029.304
set_object_heading 99@ {heading} 90.0
set_object_health 99@ {health} 150
set_object_only_damaged_by_player 99@ {state} True
100@ = create_object_no_offset #KMB_TROLLEY {x} 2217.5691 {y} -1187.528 {z} 1029.304
set_object_heading 100@ {heading} 90.0
set_object_health 100@ {health} 250
set_object_only_damaged_by_player 100@ {state} True
101@ = create_object_no_offset #KMB_TROLLEY {x} 2204.6489 {y} -1187.5439 {z} 1029.304
set_object_heading 101@ {heading} 90.0
set_object_health 101@ {health} 150
set_object_only_damaged_by_player 101@ {state} True
102@ = create_object_no_offset #KMB_TROLLEY {x} 2194.345 {y} -1171.269 {z} 1029.304
set_object_health 102@ {health} 250
103@ = create_object_no_offset #KMB_TROLLEY {x} 2192.0791 {y} -1166.364 {z} 1029.304
set_object_health 103@ {health} 150
set_object_only_damaged_by_player 103@ {state} True
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_15851
set_char_health 82@ {health} 1
109@ = open_sequence_task 
flush_route 
extend_route 2227.25 {y} -1139.12 {z} 1029.84
extend_route 2221.1699 {y} -1139.09 {z} 1027.84
extend_route 2221.6399 {y} -1145.11 {z} 1025.84
extend_route 2224.5559 {y} -1145.901 {z} 1025.85
extend_route 2224.4651 {y} -1142.276 {z} 1025.85
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 56@
close_sequence_task 109@
perform_sequence_task 82@ {sequence} 109@
clear_sequence_task 109@

:DRUGS4_15851
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_15908
task_play_anim_with_flags 34@ {animationName} "RAIL_FALL" {animationFile} "SWAT" {frameDelta} 8.0 {loop} False {lockX} False {lockY} False {lockF} True {time} -1 {disableForce} False {disableLockZ} True

:DRUGS4_15908
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_15971
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_15971
set_lvar_int_to_lvar_int 118@ = 52@
set_lvar_int_to_lvar_int 119@ = 34@
set_lvar_int_to_var_int 120@ = $scplayer
gosub @DRUGS4_67003

:DRUGS4_15971
147@ = 1

:DRUGS4_15978
if 
  147@ == 1
goto_if_false @DRUGS4_16129
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_16129
if 
  is_char_playing_anim 34@ {animationName} "RAIL_FALL"
goto_if_false @DRUGS4_16129
96@ = get_char_anim_current_time 34@ {animationName} "RAIL_FALL"
if 
  96@ == 1.0
goto_if_false @DRUGS4_16129
task_play_anim_non_interruptable 34@ {animationName} "RAIL_FALL_CRAWL" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
147@ = 2

:DRUGS4_16129
if 
  149@ == 0
goto_if_false @DRUGS4_16525
if 
  not is_char_dead 66@
goto_if_false @DRUGS4_16525
if 
  locate_char_any_means_char_3d 66@ {target} $scplayer {xRadius} 4.5 {yRadius} 4.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_16525
51@ = create_char PedType.Mission2 {modelId} 285 {x} 2229.4619 {y} -1150.524 {z} 1028.845
set_char_has_used_entry_exit 51@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 51@ {heading} 358.795
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 51@ {handleOrTemplate} 55@
set_char_accuracy 51@ {accuracy} 50
set_char_only_damaged_by_player 51@ {state} True
set_char_health 51@ {health} 150
set_char_max_health 51@ {maxHealth} 150
delete_char 52@
52@ = create_char PedType.Mission2 {modelId} 285 {x} 2239.3091 {y} -1151.724 {z} 1029.2791
set_char_has_used_entry_exit 52@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 52@ {heading} 177.9528
give_weapon_to_char 52@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 52@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 52@ {state} True
set_char_accuracy 52@ {accuracy} 80
if 
  133@ == 0
goto_if_false @DRUGS4_16518
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_16518
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_16518
set_lvar_int_to_lvar_int 119@ = 38@
161@ = 1
122@ = 2241.78
123@ = -1194.52
124@ = 1031.38
gosub @DRUGS4_67214
161@ = 0
133@ = 1

:DRUGS4_16518
149@ = 1

:DRUGS4_16525
if 
  148@ == 0
goto_if_false @DRUGS4_19412
if 
  150@ == 0
goto_if_false @DRUGS4_16589
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_16589
explode_char_head 35@
150@ = 1

:DRUGS4_16589
if 
  132@ == 0
goto_if_false @DRUGS4_16701
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_16701
if or
  locate_char_any_means_3d $scplayer {x} 2229.5911 {y} -1150.647 {z} 1028.798 {xRadius} 7.2 {yRadius} 7.2 {zRadius} 1.5 {drawSphere} False
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @DRUGS4_16701
set_lvar_int_to_lvar_int 118@ = 51@
gosub @DRUGS4_67131
132@ = 1

:DRUGS4_16701
if 
  133@ == 1
goto_if_false @DRUGS4_16801
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_16801
if or
  has_char_been_damaged_by_char 52@ {handle} $scplayer
  locate_char_any_means_char_3d 52@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_16801
set_char_accuracy 52@ {accuracy} 50
task_kill_char_on_foot 52@ {target} $scplayer
133@ = 2

:DRUGS4_16801
if 
  137@ == 0
goto_if_false @DRUGS4_17205
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2243.8 {leftBottomY} -1147.9301 {leftBottomZ} 1025.16 {rightTopX} 2238.74 {rightTopY} -1162.62 {rightTopZ} 1033.79 {drawSphere} False
goto_if_false @DRUGS4_17205
152@ = 1
if 
  180@ == 0
goto_if_false @DRUGS4_16985
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_16985
set_char_health 83@ {health} 150
126@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2249.355 {y} -1159.683 {z} 1029.797 {speed} MoveState.Sprint {time} 10000
task_achieve_heading -1 {heading} 87.888
task_stay_in_same_place -1 {state} True
close_sequence_task 126@
perform_sequence_task 83@ {sequence} 126@
clear_sequence_task 126@
180@ = 1

:DRUGS4_16985
69@ = create_char PedType.Mission1 {modelId} 285 {x} 2228.6069 {y} -1189.7209 {z} 1028.798
set_char_has_used_entry_exit 69@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 69@ {heading} 266.5963
give_weapon_to_char 69@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 69@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 69@ {state} True
set_char_health 69@ {health} 150
set_char_max_health 69@ {maxHealth} 150
set_char_uses_upperbody_damage_anims_only 69@ {state} True
70@ = create_char PedType.Mission1 {modelId} 285 {x} 2225.7959 {y} -1186.783 {z} 1028.798
set_char_has_used_entry_exit 70@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 70@ {heading} 273.6395
give_weapon_to_char 70@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 70@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 70@ {state} True
set_char_accuracy 70@ {accuracy} 80
set_char_health 70@ {health} 150
set_char_max_health 70@ {maxHealth} 150
TIMERB = 0
137@ = 1

:DRUGS4_17205
if 
  137@ == 1
goto_if_false @DRUGS4_17278
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2243.0 {leftBottomY} -1154.3 {leftBottomZ} 1025.16 {rightTopX} 2238.74 {rightTopY} -1170.62 {rightTopZ} 1033.79 {drawSphere} False
goto_if_false @DRUGS4_17278
137@ = 2

:DRUGS4_17278
if 
  137@ == 2
goto_if_false @DRUGS4_17708
71@ = create_char PedType.Mission1 {modelId} 285 {x} 2187.48 {y} -1186.9 {z} 1033.3
set_char_has_used_entry_exit 71@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 71@ {heading} 274.247
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 71@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 71@ {state} True
set_char_accuracy 71@ {accuracy} 80
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
72@ = create_char PedType.Mission1 {modelId} 285 {x} 2186.6111 {y} -1183.962 {z} 1033.837
set_char_has_used_entry_exit 72@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 72@ {heading} 286.2857
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 72@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 72@ {state} True
set_char_health 72@ {health} 150
set_char_max_health 72@ {maxHealth} 150
set_char_uses_upperbody_damage_anims_only 72@ {state} True
73@ = create_char PedType.Mission1 {modelId} 285 {x} 2190.157 {y} -1182.068 {z} 1033.829
set_char_has_used_entry_exit 73@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 73@ {heading} 183.8877
give_weapon_to_char 73@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 73@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 73@ {state} True
set_char_health 73@ {health} 150
set_char_max_health 73@ {maxHealth} 150
74@ = create_char PedType.Mission1 {modelId} 285 {x} 2188.5791 {y} -1184.78 {z} 1028.798
set_char_has_used_entry_exit 74@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 74@ {heading} 246.3679
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 74@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 74@ {state} True
set_char_health 74@ {health} 150
set_char_uses_upperbody_damage_anims_only 74@ {state} True
137@ = 3

:DRUGS4_17708
if 
  137@ == 3
goto_if_false @DRUGS4_17886
if 
  135@ == 0
goto_if_false @DRUGS4_17886
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_17886
if 
  does_object_exist 84@
goto_if_false @DRUGS4_17790
set_object_collision 84@ {state} False
break_object 84@ {intensity} 1

:DRUGS4_17790
if 
  181@ == 0
goto_if_false @DRUGS4_17819
play_mission_audio MissionAudioSlot.Slot2
181@ = 1

:DRUGS4_17819
play_and_kill_fx_system 65@
task_play_anim 53@ {animationName} "SWT_BREACH_01" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
135@ = 1
TIMERB = 0
137@ = 4

:DRUGS4_17886
if 
  137@ == 4
goto_if_false @DRUGS4_18098
if 
  136@ == 0
goto_if_false @DRUGS4_18098
if 
  TIMERB > 667
goto_if_false @DRUGS4_18098
54@ = create_char PedType.Mission2 {modelId} 285 {x} 2238.3169 {y} -1170.598 {z} 1028.813
set_char_heading 54@ {heading} 272.0738
give_weapon_to_char 54@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 54@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 54@ {state} True
set_char_health 54@ {health} 150
set_char_shoot_rate 54@ {rate} 80
set_char_has_used_entry_exit 54@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
task_play_anim 54@ {animationName} "SWT_BREACH_02" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
TIMERB = 0
136@ = 1
137@ = 5

:DRUGS4_18098
if 
  137@ == 5
goto_if_false @DRUGS4_18303
if 
  154@ == 0
goto_if_false @DRUGS4_18303
if 
  TIMERB > 333
goto_if_false @DRUGS4_18303
68@ = create_char PedType.Mission2 {modelId} 285 {x} 2237.8181 {y} -1170.598 {z} 1028.813
set_char_heading 68@ {heading} 272.0738
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 68@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 68@ {state} True
set_char_health 68@ {health} 150
set_char_shoot_rate 68@ {rate} 80
set_char_has_used_entry_exit 68@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
task_play_anim 68@ {animationName} "SWT_BREACH_03" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
154@ = 1
137@ = 6

:DRUGS4_18303
if 
  135@ == 1
goto_if_false @DRUGS4_18423
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_18423
87@ = get_script_task_status 53@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 87@ == 7
  locate_char_any_means_char_2d 53@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS4_18423
set_char_uses_upperbody_damage_anims_only 53@ {state} True
set_lvar_int_to_lvar_int 118@ = 53@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
135@ = 2

:DRUGS4_18423
if 
  136@ == 1
goto_if_false @DRUGS4_18552
if 
  not is_char_dead 54@
goto_if_false @DRUGS4_18552
88@ = get_script_task_status 54@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 88@ == 7
  locate_char_any_means_char_2d 54@ {target} $scplayer {xRadius} 4.5 {yRadius} 4.5 {drawSphere} False
goto_if_false @DRUGS4_18552
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_18545
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914

:DRUGS4_18545
136@ = 2

:DRUGS4_18552
if 
  154@ == 1
goto_if_false @DRUGS4_18665
if 
  not is_char_dead 68@
goto_if_false @DRUGS4_18665
89@ = get_script_task_status 68@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 89@ == 7
  locate_char_any_means_char_2d 68@ {target} $scplayer {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_18665
set_lvar_int_to_lvar_int 118@ = 68@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
154@ = 2

:DRUGS4_18665
if 
  180@ == 1
goto_if_false @DRUGS4_19180
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19180
if 
  locate_stopped_char_on_foot_3d 83@ {x} 2249.3501 {y} -1159.683 {z} 1028.79 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_19180
if 
  not has_char_been_damaged_by_char 83@ {handle} $scplayer
goto_if_false @DRUGS4_19180
if 
  locate_char_on_foot_3d $scplayer {x} 2248.3501 {y} -1159.683 {z} 1028.79 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_19180
clear_area 2248.3501 {y} -1159.683 {z} 20.0 {radius} 20.0 {clearParticles} False
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2247.0471 {y} -1157.281 {z} 1030.5811 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2247.6179 {y} -1158.0291 {z} 1030.244 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 83@
set_char_coordinates 83@ {x} 2249.3501 {y} -1159.683 {z} 1028.79
set_char_heading 83@ {heading} 87.888
set_char_coordinates $scplayer {x} 2248.3501 {y} -1159.683 {z} 1028.79
set_char_heading $scplayer {heading} 267.888
clear_mission_audio MissionAudioSlot.Slot1
if 
  179@ <> 0
goto_if_false @DRUGS4_19008
179@ = 0
178@ += 1

:DRUGS4_19008
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8348

:DRUGS4_19015
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_19041
wait 0
goto @DRUGS4_19015

:DRUGS4_19041
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_DC' {time} 3000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19166
task_play_anim_non_interruptable 83@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS4_19166
set_char_health $scplayer {health} 100
180@ = 2

:DRUGS4_19180
if 
  180@ == 2
goto_if_false @DRUGS4_19284
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19284
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_19284
if 
  is_char_playing_anim 83@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_19284
180@ = 3

:DRUGS4_19284
if 
  180@ == 3
goto_if_false @DRUGS4_19412
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19412
if 
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_19412
if 
  not is_char_playing_anim 83@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_19412
set_char_health 83@ {health} 5
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
180@ = 4

:DRUGS4_19412
if 
  152@ == 1
goto_if_false @DRUGS4_19697
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_19491
set_lvar_int_to_lvar_int 118@ = 36@
122@ = 2232.4099
123@ = -1188.66
124@ = 1030.26
gosub @DRUGS4_66786

:DRUGS4_19491
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_19552
set_lvar_int_to_lvar_int 118@ = 37@
122@ = 2233.3501
123@ = -1187.99
124@ = 1030.4
gosub @DRUGS4_66786

:DRUGS4_19552
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_19651
set_lvar_int_to_lvar_int 118@ = 38@
if 
  not is_char_dead 69@
goto_if_false @DRUGS4_19651
set_lvar_int_to_lvar_int 119@ = 69@
122@ = 2186.49
123@ = -1189.1801
124@ = 1030.97
161@ = 1
gosub @DRUGS4_67214
161@ = 0

:DRUGS4_19651
if 
  not is_char_dead 69@
goto_if_false @DRUGS4_19690
set_lvar_int_to_lvar_int 118@ = 69@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914

:DRUGS4_19690
152@ = 2

:DRUGS4_19697
if 
  152@ == 2
goto_if_false @DRUGS4_20605
if 
  locate_char_any_means_2d $scplayer {x} 2235.48 {y} -1188.77 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_20605
if 
  not is_char_dead 70@
goto_if_false @DRUGS4_19784
set_lvar_int_to_lvar_int 118@ = 70@
gosub @DRUGS4_67479

:DRUGS4_19784
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 52@
remove_char_elegantly 83@
if 
  is_char_dead 53@
goto_if_false @DRUGS4_19840
mark_char_as_no_longer_needed 53@

:DRUGS4_19840
if 
  is_char_dead 54@
goto_if_false @DRUGS4_19861
mark_char_as_no_longer_needed 54@

:DRUGS4_19861
if 
  is_char_dead 68@
goto_if_false @DRUGS4_19882
mark_char_as_no_longer_needed 68@

:DRUGS4_19882
75@ = create_char PedType.Mission1 {modelId} 285 {x} 2216.605 {y} -1188.611 {z} 1032.27
set_char_has_used_entry_exit 75@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 75@ {heading} 264.4329
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 75@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 75@ {state} True
set_char_health 75@ {health} 150
set_char_accuracy 75@ {accuracy} 80
76@ = create_char PedType.Mission1 {modelId} 285 {x} 2216.1311 {y} -1188.611 {z} 1032.27
set_char_has_used_entry_exit 76@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 76@ {heading} 264.4329
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 76@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 76@ {state} True
set_char_health 76@ {health} 150
set_char_accuracy 76@ {accuracy} 80
77@ = create_char PedType.Mission1 {modelId} 285 {x} 2193.1289 {y} -1164.661 {z} 1032.269
set_char_has_used_entry_exit 77@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 77@ {heading} 4.98
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 77@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 77@ {state} True
set_char_never_targetted 77@ {state} True
set_char_health 77@ {health} 1000
78@ = create_char PedType.Mission1 {modelId} 285 {x} 2195.489 {y} -1172.941 {z} 1029.859
set_char_has_used_entry_exit 78@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 78@ {heading} 181.323
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 78@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 78@ {state} True
set_char_health 78@ {health} 120
79@ = create_char PedType.Mission1 {modelId} 285 {x} 2191.9871 {y} -1165.214 {z} 1029.8521
set_char_has_used_entry_exit 79@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 79@ {heading} 181.323
give_weapon_to_char 79@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 79@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 79@ {state} True
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
80@ = create_char PedType.Mission1 {modelId} 285 {x} 2190.698 {y} -1156.6331 {z} 1029.859
set_char_has_used_entry_exit 80@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 80@ {heading} 189.575
give_weapon_to_char 80@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 80@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 80@ {state} True
set_char_accuracy 80@ {accuracy} 30
81@ = create_char PedType.Mission1 {modelId} 285 {x} 2194.593 {y} -1156.995 {z} 1029.8521
set_char_has_used_entry_exit 81@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 81@ {heading} 275.754
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 81@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 81@ {state} True
82@ = create_char PedType.Mission1 {modelId} 63 {x} 2192.9099 {y} -1182.15 {z} 1029.35
set_char_has_used_entry_exit 82@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_never_targetted 82@ {state} True
set_char_decision_maker 82@ {handleOrTemplate} 55@
set_char_proofs 82@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
152@ = 3
153@ = 1

:DRUGS4_20605
if 
  173@ == 0
goto_if_false @DRUGS4_20708
if 
  locate_char_on_foot_3d $scplayer {x} 2241.3401 {y} -1186.11 {z} 1029.76 {xRadius} 6.6 {yRadius} 6.6 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_20708
if 
  does_object_exist 93@
goto_if_false @DRUGS4_20694
break_object 93@ {intensity} 1

:DRUGS4_20694
shut_char_up $scplayer {state} True
173@ = 1

:DRUGS4_20708
if 
  173@ == 1
goto_if_false @DRUGS4_20926
47@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2246.4199 {y} -1192.88 {z} 1039.5
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 47@ {handleOrTemplate} 57@
set_char_only_damaged_by_player 47@ {state} True
set_char_health 47@ {health} 150
set_char_max_health 47@ {maxHealth} 150
set_char_accuracy 47@ {accuracy} 80
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_20857
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_20857
task_kill_char_on_foot 37@ {target} 47@

:DRUGS4_20857
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_20912
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_20912
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
gosub @DRUGS4_66914

:DRUGS4_20912
TIMERA = 0
173@ = 2

:DRUGS4_20926
if 
  173@ == 2
goto_if_false @DRUGS4_21210
if 
  TIMERA > 1000
goto_if_false @DRUGS4_21210
48@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2246.1101 {y} -1189.55 {z} 1038.09
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 48@ {handleOrTemplate} 57@
set_char_only_damaged_by_player 48@ {state} True
set_char_health 48@ {health} 125
set_char_max_health 48@ {maxHealth} 125
set_char_accuracy 48@ {accuracy} 80
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_21177
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_21138
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21131
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
set_lvar_int_to_lvar_int 120@ = 48@
gosub @DRUGS4_67003

:DRUGS4_21131
goto @DRUGS4_21177

:DRUGS4_21138
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21177
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 48@
gosub @DRUGS4_66914

:DRUGS4_21177
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_21198
task_die 37@

:DRUGS4_21198
mark_model_as_no_longer_needed #IMY_SKYLIGHT
173@ = 3

:DRUGS4_21210
if 
  173@ > 2
goto_if_false @DRUGS4_21428
if 
  138@ == 0
goto_if_false @DRUGS4_21335
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_21335
59@ = get_script_task_status 47@ {taskId} 1283
if or
  is_int_lvar_equal_to_constant 59@ == 7
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @DRUGS4_21335
task_kill_char_on_foot 47@ {target} $scplayer
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_21328
explode_char_head 37@

:DRUGS4_21328
138@ = 1

:DRUGS4_21335
if 
  139@ == 0
goto_if_false @DRUGS4_21428
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21428
60@ = get_script_task_status 48@ {taskId} 1283
if or
  is_int_lvar_equal_to_constant 60@ == 7
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @DRUGS4_21428
task_kill_char_on_foot 48@ {target} $scplayer
set_char_only_damaged_by_player 48@ {state} False
139@ = 1

:DRUGS4_21428
if 
  153@ == 1
goto_if_false @DRUGS4_28754
if 
  163@ == 0
goto_if_false @DRUGS4_21633
if or
  locate_char_any_means_3d $scplayer {x} 2232.7 {y} -1188.84 {z} 1029.4 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
  is_char_dead 69@
  is_char_dead 70@
goto_if_false @DRUGS4_21633
shut_char_up $scplayer {state} False
if 
  does_object_exist 85@
goto_if_false @DRUGS4_21583
freeze_object_position 85@ {state} False
set_object_rotation_velocity 85@ {x} 0.0 {y} 0.6 {z} 0.0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 85@
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_21583
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_21604
clear_char_tasks 36@

:DRUGS4_21604
if 
  181@ == 3
goto_if_false @DRUGS4_21626
play_mission_audio MissionAudioSlot.Slot2

:DRUGS4_21626
163@ = 1

:DRUGS4_21633
if 
  163@ == 1
goto_if_false @DRUGS4_21727
if 
  not is_char_dead 75@
goto_if_false @DRUGS4_21727
task_play_anim_non_interruptable 75@ {animationName} "SWT_VENT_01" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
163@ = 2
164@ = 1

:DRUGS4_21727
if 
  163@ == 2
goto_if_false @DRUGS4_21912
if 
  not is_char_dead 75@
goto_if_false @DRUGS4_21912
if 
  is_char_playing_anim 75@ {animationName} "SWT_VENT_01"
goto_if_false @DRUGS4_21912
90@ = get_char_anim_current_time 75@ {animationName} "SWT_VENT_01"
if 
  90@ == 1.0
goto_if_false @DRUGS4_21912
set_char_coordinates 75@ {x} 2217.8501 {y} -1188.86 {z} 1028.9301
set_lvar_int_to_lvar_int 118@ = 75@
122@ = 2220.5381
123@ = -1189.594
124@ = 1029.845
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66846
163@ = 3

:DRUGS4_21912
if 
  164@ == 1
goto_if_false @DRUGS4_22011
if 
  TIMERB > 3166
goto_if_false @DRUGS4_22011
if 
  not is_char_dead 76@
goto_if_false @DRUGS4_22011
task_play_anim_non_interruptable 76@ {animationName} "SWT_VENT_02" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
164@ = 2

:DRUGS4_22011
if 
  164@ == 2
goto_if_false @DRUGS4_22151
if 
  not is_char_dead 76@
goto_if_false @DRUGS4_22151
if 
  is_char_playing_anim 76@ {animationName} "SWT_VENT_02"
goto_if_false @DRUGS4_22151
91@ = get_char_anim_current_time 76@ {animationName} "SWT_VENT_02"
if 
  91@ == 1.0
goto_if_false @DRUGS4_22151
set_char_coordinates 76@ {x} 2217.8501 {y} -1188.86 {z} 1028.9301
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 3

:DRUGS4_22151
if 
  174@ == 1
goto_if_false @DRUGS4_22334
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22334
set_char_health 82@ {health} 150
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2193.064 {y} -1188.77 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2206.833 {y} -1188.83 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2209.5879 {y} -1190.2 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2209.7 {y} -1197.323 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_achieve_heading -1 {heading} 358.428
task_stay_in_same_place -1 {state} True
close_sequence_task 121@
perform_sequence_task 82@ {sequence} 121@
clear_sequence_task 121@
174@ = 2

:DRUGS4_22334
if 
  174@ == 2
goto_if_false @DRUGS4_22882
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22882
if 
  locate_stopped_char_on_foot_3d 82@ {x} 2209.7 {y} -1197.323 {z} 1029.845 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_22882
if 
  not has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @DRUGS4_22882
if 
  locate_char_on_foot_3d $scplayer {x} 2209.7 {y} -1197.323 {z} 1029.845 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_22882
clear_area 2209.7 {y} -1197.323 {z} 10.0 {radius} 10.0 {clearParticles} False
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_22535
remove_char_elegantly 36@
goto @DRUGS4_22540

:DRUGS4_22535
mark_char_as_no_longer_needed 36@

:DRUGS4_22540
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2207.5291 {y} -1195.725 {z} 1031.2729 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2208.2729 {y} -1196.114 {z} 1030.731 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 82@
set_char_coordinates 82@ {x} 2209.8 {y} -1197.338 {z} 1028.845
set_char_heading 82@ {heading} 359.354
set_char_coordinates $scplayer {x} 2209.8 {y} -1196.338 {z} 1028.845
set_char_heading $scplayer {heading} 178.62
clear_mission_audio MissionAudioSlot.Slot1
if 
  179@ <> 0
goto_if_false @DRUGS4_22710
179@ = 0
178@ += 1

:DRUGS4_22710
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8346

:DRUGS4_22717
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_22743
wait 0
goto @DRUGS4_22717

:DRUGS4_22743
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_DA' {time} 3000 {flag} 1
task_play_anim $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22868
task_play_anim 82@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS4_22868
set_char_health $scplayer {health} 100
174@ = 3

:DRUGS4_22882
if 
  174@ == 3
goto_if_false @DRUGS4_22986
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22986
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_22986
if 
  is_char_playing_anim 82@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_22986
174@ = 4

:DRUGS4_22986
if 
  174@ == 4
goto_if_false @DRUGS4_23114
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_23114
if 
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_23114
if 
  not is_char_playing_anim 82@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_23114
set_char_health 82@ {health} 5
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
174@ = 5

:DRUGS4_23114
if 
  162@ == 0
goto_if_false @DRUGS4_23215
if 
  locate_char_any_means_3d $scplayer {x} 2240.8 {y} -1182.4 {z} 1029.41 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.5 {drawSphere} False
goto_if_false @DRUGS4_23215
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_23208
set_char_only_damaged_by_player 38@ {state} False
explode_char_head 38@

:DRUGS4_23208
162@ = 1

:DRUGS4_23215
if 
  156@ == 0
goto_if_false @DRUGS4_23315
if 
  not is_char_dead 70@
goto_if_false @DRUGS4_23315
if or
  has_char_been_damaged_by_char 70@ {handle} $scplayer
  locate_char_any_means_char_3d 70@ {target} $scplayer {xRadius} 2.5 {yRadius} 2.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_23315
set_char_accuracy 70@ {accuracy} 30
task_kill_char_on_foot 70@ {target} $scplayer
156@ = 1

:DRUGS4_23315
if 
  157@ == 0
goto_if_false @DRUGS4_23420
if 
  158@ == 0
goto_if_false @DRUGS4_23420
if 
  locate_char_any_means_3d $scplayer {x} 2204.6499 {y} -1188.62 {z} 1029.4399 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_23420
157@ = 1
158@ = 1
174@ = 1

:DRUGS4_23420
if 
  157@ == 1
goto_if_false @DRUGS4_23484
if 
  not is_char_dead 71@
goto_if_false @DRUGS4_23484
set_lvar_int_to_lvar_int 118@ = 71@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
157@ = 2

:DRUGS4_23484
if 
  158@ == 1
goto_if_false @DRUGS4_23604
if 
  not is_char_dead 72@
goto_if_false @DRUGS4_23604
flush_route 
extend_route 2186.6699 {y} -1192.4 {z} 1031.8669
extend_route 2188.4399 {y} -1193.95 {z} 1031.27
extend_route 2193.3101 {y} -1193.5699 {z} 1030.34
extend_route 2196.239 {y} -1191.459 {z} 1029.85
task_follow_point_route 72@ {speed} MoveState.Run {mode} RouteMode.Once
158@ = 2

:DRUGS4_23604
if 
  158@ == 2
goto_if_false @DRUGS4_23714
if 
  not is_char_dead 72@
goto_if_false @DRUGS4_23714
if or
  locate_stopped_char_any_means_2d 72@ {x} 2196.239 {y} -1191.459 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @DRUGS4_23714
set_lvar_int_to_lvar_int 118@ = 72@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
158@ = 3

:DRUGS4_23714
if 
  159@ == 0
goto_if_false @DRUGS4_23778
if 
  not is_char_dead 73@
goto_if_false @DRUGS4_23778
set_lvar_int_to_lvar_int 118@ = 73@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
159@ = 1

:DRUGS4_23778
if 
  160@ == 0
goto_if_false @DRUGS4_23842
if 
  not is_char_dead 74@
goto_if_false @DRUGS4_23842
set_lvar_int_to_lvar_int 118@ = 74@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
160@ = 1

:DRUGS4_23842
if 
  166@ == 0
goto_if_false @DRUGS4_23946
if 
  not is_char_dead 78@
goto_if_false @DRUGS4_23946
if 
  locate_char_any_means_3d $scplayer {x} 2193.4099 {y} -1176.12 {z} 1029.42 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_23946
set_lvar_int_to_lvar_int 118@ = 78@
gosub @DRUGS4_67048
166@ = 1

:DRUGS4_23946
if 
  167@ == 0
goto_if_false @DRUGS4_24010
if 
  not is_char_dead 79@
goto_if_false @DRUGS4_24010
set_lvar_int_to_lvar_int 118@ = 79@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
167@ = 1

:DRUGS4_24010
if 
  165@ == 0
goto_if_false @DRUGS4_24172
if or
  locate_char_any_means_3d $scplayer {x} 2193.3999 {y} -1173.53 {z} 1029.6899 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  is_char_dead 79@
goto_if_false @DRUGS4_24172
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly 38@
remove_char_elegantly 67@
remove_char_elegantly 47@
remove_char_elegantly 48@
if 
  does_object_exist 86@
goto_if_false @DRUGS4_24165
freeze_object_position 86@ {state} False
set_object_rotation_velocity 86@ {x} 0.0 {y} 0.8 {z} 0.0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 86@
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_24165
165@ = 1

:DRUGS4_24172
if 
  165@ == 1
goto_if_false @DRUGS4_24255
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24255
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_IN" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
165@ = 2

:DRUGS4_24255
if 
  165@ == 2
goto_if_false @DRUGS4_24515
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24515
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_IN"
goto_if_false @DRUGS4_24515
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_IN"
if 
  92@ == 1.0
goto_if_false @DRUGS4_24515
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_LOOP" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
fire_single_bullet 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 1
report_mission_audio_event_at_char 77@ {soundId} ScriptSound.SoundMinitankFire
add_big_gun_flash 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z
set_char_never_targetted 77@ {state} False
set_char_is_target_priority 77@ {state} True
TIMERB = 1000
165@ = 3

:DRUGS4_24515
if 
  165@ == 3
goto_if_false @DRUGS4_24786
if 
  TIMERB > 1000
goto_if_false @DRUGS4_24786
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24786
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_LOOP"
goto_if_false @DRUGS4_24786
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_LOOP"
if 
  92@ == 1.0
goto_if_false @DRUGS4_24786
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_LOOP" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z += 0.5
fire_single_bullet 2193.46 {fromY} -1165.83 {fromZ} 1031.55 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 3
report_mission_audio_event_at_char 77@ {soundId} ScriptSound.SoundMinitankFire
add_big_gun_flash 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z
TIMERB = 0

:DRUGS4_24786
if 
  4 > 165@
goto_if_false @DRUGS4_24976
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24976
if or
  locate_char_any_means_3d $scplayer {x} 2193.1201 {y} -1161.86 {z} 1029.61 {xRadius} 2.8 {yRadius} 2.8 {zRadius} 3.0 {drawSphere} False
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @DRUGS4_24976
if 
  does_char_exist 77@
goto_if_false @DRUGS4_24969
set_char_collision 77@ {state} False
set_char_coordinates 77@ {x} 2193.1289 {y} -1164.661 {z} 1032.269
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_DIE" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_never_targetted 77@ {state} True

:DRUGS4_24969
165@ = 4

:DRUGS4_24976
if 
  165@ == 4
goto_if_false @DRUGS4_25096
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_25096
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_DIE"
goto_if_false @DRUGS4_25096
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_DIE"
if 
  92@ == 1.0
goto_if_false @DRUGS4_25096
165@ = 5

:DRUGS4_25096
if 
  165@ == 5
goto_if_false @DRUGS4_25178
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_25178
if or
  not is_char_on_screen 77@
  locate_char_any_means_char_2d 77@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_25178
remove_char_elegantly 77@
165@ = 6

:DRUGS4_25178
if 
  168@ == 0
goto_if_false @DRUGS4_25282
if 
  not is_char_dead 80@
goto_if_false @DRUGS4_25282
if 
  locate_char_any_means_3d $scplayer {x} 2193.1899 {y} -1160.67 {z} 1029.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_25282
set_lvar_int_to_lvar_int 118@ = 80@
gosub @DRUGS4_67131
168@ = 1

:DRUGS4_25282
if 
  169@ == 0
goto_if_false @DRUGS4_25362
if 
  not is_char_dead 81@
goto_if_false @DRUGS4_25362
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_25362
set_lvar_int_to_lvar_int 118@ = 81@
set_lvar_int_to_var_int 119@ = $sweet
gosub @DRUGS4_66914
169@ = 1

:DRUGS4_25362
if 
  170@ == 0
goto_if_false @DRUGS4_25442
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_25442
if 
  not is_char_dead 81@
goto_if_false @DRUGS4_25442
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 81@
gosub @DRUGS4_66965
170@ = 1

:DRUGS4_25442
if 
  163@ == 3
goto_if_false @DRUGS4_25488
if 
  is_char_dead 75@
goto_if_false @DRUGS4_25488
mark_char_as_no_longer_needed 75@
163@ = 4

:DRUGS4_25488
if 
  164@ == 3
goto_if_false @DRUGS4_25534
if 
  is_char_dead 76@
goto_if_false @DRUGS4_25534
mark_char_as_no_longer_needed 76@
163@ = 4

:DRUGS4_25534
if 
  162@ == 1
goto_if_false @DRUGS4_25580
if 
  is_char_dead 38@
goto_if_false @DRUGS4_25580
mark_char_as_no_longer_needed 38@
162@ = 2

:DRUGS4_25580
if 
  156@ == 1
goto_if_false @DRUGS4_25626
if 
  is_char_dead 70@
goto_if_false @DRUGS4_25626
mark_char_as_no_longer_needed 70@
156@ = 2

:DRUGS4_25626
if 
  157@ == 2
goto_if_false @DRUGS4_25672
if 
  is_char_dead 71@
goto_if_false @DRUGS4_25672
mark_char_as_no_longer_needed 71@
157@ = 3

:DRUGS4_25672
if 
  158@ == 2
goto_if_false @DRUGS4_25718
if 
  is_char_dead 72@
goto_if_false @DRUGS4_25718
mark_char_as_no_longer_needed 72@
158@ = 4

:DRUGS4_25718
if 
  159@ == 1
goto_if_false @DRUGS4_25764
if 
  is_char_dead 73@
goto_if_false @DRUGS4_25764
mark_char_as_no_longer_needed 73@
159@ = 2

:DRUGS4_25764
if 
  160@ == 1
goto_if_false @DRUGS4_25810
if 
  is_char_dead 74@
goto_if_false @DRUGS4_25810
mark_char_as_no_longer_needed 74@
160@ = 2

:DRUGS4_25810
if 
  166@ == 1
goto_if_false @DRUGS4_25856
if 
  is_char_dead 78@
goto_if_false @DRUGS4_25856
mark_char_as_no_longer_needed 78@
166@ = 2

:DRUGS4_25856
if 
  167@ == 1
goto_if_false @DRUGS4_25902
if 
  is_char_dead 79@
goto_if_false @DRUGS4_25902
mark_char_as_no_longer_needed 79@
167@ = 2

:DRUGS4_25902
if 
  165@ == 4
goto_if_false @DRUGS4_25948
if 
  is_char_dead 77@
goto_if_false @DRUGS4_25948
mark_char_as_no_longer_needed 77@
165@ = 5

:DRUGS4_25948
if 
  168@ == 1
goto_if_false @DRUGS4_25994
if 
  is_char_dead 80@
goto_if_false @DRUGS4_25994
mark_char_as_no_longer_needed 80@
168@ = 2

:DRUGS4_25994
if 
  169@ == 1
goto_if_false @DRUGS4_26040
if 
  is_char_dead 81@
goto_if_false @DRUGS4_26040
mark_char_as_no_longer_needed 81@
169@ = 2

:DRUGS4_26040
if 
  174@ > 5
goto_if_false @DRUGS4_26097
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_26097
mark_char_as_no_longer_needed 82@
remove_animation "KISSING"
174@ = 6

:DRUGS4_26097
if 
  171@ == 0
goto_if_false @DRUGS4_26566
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_26566
if 
  locate_char_any_means_char_3d $sweet {target} $scplayer {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_26566
if 
  is_char_dead 80@
goto_if_false @DRUGS4_26550
if 
  is_char_dead 81@
goto_if_false @DRUGS4_26527
63@ = get_current_char_weapon $scplayer
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_only_damaged_by_player $sweet {state} False
remove_animation "KISSING"
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed #LXR_MOTEL_DOORSIM
mark_model_as_no_longer_needed #LXR_MOTELVENT
mark_model_as_no_longer_needed #IMY_SKYLIGHT
mark_model_as_no_longer_needed #KMB_TROLLEY
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 346
remove_char_elegantly 34@
remove_char_elegantly 35@
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly 38@
remove_char_elegantly 47@
remove_char_elegantly 48@
remove_char_elegantly 51@
remove_char_elegantly 52@
remove_char_elegantly 53@
remove_char_elegantly 54@
remove_char_elegantly 66@
remove_char_elegantly 67@
remove_char_elegantly 68@
remove_char_elegantly 69@
remove_char_elegantly 70@
remove_char_elegantly 71@
remove_char_elegantly 72@
remove_char_elegantly 73@
remove_char_elegantly 74@
remove_char_elegantly 75@
remove_char_elegantly 76@
remove_char_elegantly 77@
remove_char_elegantly 78@
remove_char_elegantly 79@
remove_char_elegantly 80@
remove_char_elegantly 81@
remove_char_elegantly 82@
remove_char_elegantly 83@
delete_object 84@
delete_object 85@
delete_object 86@
kill_fx_system 65@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8270
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8215
request_animation "GANGS"
load_all_models_now 

:DRUGS4_26474
if or
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_26513
wait 0
goto @DRUGS4_26474

:DRUGS4_26513
171@ = 2
goto @DRUGS4_26543

:DRUGS4_26527
print_now 'LAF1_21' {time} 1000 {flag} 1

:DRUGS4_26543
goto @DRUGS4_26566

:DRUGS4_26550
print_now 'LAF1_21' {time} 1000 {flag} 1

:DRUGS4_26566
if 
  171@ == 2
goto_if_false @DRUGS4_27173
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27173
switch_widescreen True
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
set_near_clip 0.1
do_fade 500 {direction} Fade.In
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed
remove_weapon_from_char $sweet {weaponType} WeaponType.Pistol
set_fixed_camera_position 2197.4871 {y} -1157.675 {z} 1030.356 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2198.3831 {y} -1157.24 {z} 1030.261 {switchStyle} SwitchType.JumpCut
set_char_coordinates $sweet {x} 2202.188 {y} -1156.9301 {z} 1028.844
set_char_heading $sweet {heading} 85.6456
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_coordinates $scplayer {x} 2197.2 {y} -1156.929 {z} 1028.844
set_char_heading $scplayer {heading} 269.764
task_go_straight_to_coord $scplayer {x} 2201.188 {y} -1156.9301 {z} 1028.844 {speed} MoveState.Walk {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_JH' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_26879
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_26905
wait 0
goto @DRUGS4_26879

:DRUGS4_26905
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_26932
stop_char_facial_talk $sweet

:DRUGS4_26932
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8272
set_fixed_camera_position 2201.2339 {y} -1157.545 {z} 1030.373 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.804 {y} -1156.723 {z} 1030.406 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27131
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_char_coordinates $scplayer {x} 2201.188 {y} -1156.9301 {z} 1028.844
set_char_heading $scplayer {heading} 270.0
task_play_anim $sweet {animationName} "HNDSHKFA_SWT" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0

:DRUGS4_27131
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_JI' {time} 2000 {flag} 1
start_char_facial_talk $scplayer {duration} 2000
skip_cutscene_start_internal @DRUGS4_27694
171@ = 3

:DRUGS4_27173
if 
  171@ > 2
goto_if_false @DRUGS4_27315
if 
  6 > 171@
goto_if_false @DRUGS4_27315
if 
  182@ == 0
goto_if_false @DRUGS4_27315
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_27315
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27315
clear_prints 
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27292
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_27292
print_now 'FIN1_JK' {time} 2000 {flag} 1
182@ = 1

:DRUGS4_27315
if 
  182@ == 1
goto_if_false @DRUGS4_27376
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27376
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27376
stop_char_facial_talk $sweet
182@ = 2

:DRUGS4_27376
if 
  171@ == 3
goto_if_false @DRUGS4_27617
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27617
94@ = get_script_task_status $sweet {taskId} 1541
if 
  is_int_lvar_equal_to_constant 94@ == 7
goto_if_false @DRUGS4_27617
95@ = get_script_task_status $scplayer {taskId} 1541
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @DRUGS4_27617
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_27617
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27617
TIMERA = 0
set_fixed_camera_position 2202.4089 {y} -1157.1899 {z} 1030.515 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.4141 {y} -1157.129 {z} 1030.438 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2193.0901 {y} -1157.16 {z} 1029.84
extend_route 2193.3789 {y} -1145.899 {z} 1029.84
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once
task_follow_point_route $sweet {speed} MoveState.Walk {mode} RouteMode.Once
171@ = 4

:DRUGS4_27617
if 
  171@ == 4
goto_if_false @DRUGS4_27642
171@ = 5

:DRUGS4_27642
if 
  171@ == 5
goto_if_false @DRUGS4_28754
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_28754
if 
  TIMERA > 1500
goto_if_false @DRUGS4_28754

:DRUGS4_27694
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27725
stop_char_facial_talk $sweet

:DRUGS4_27725
do_fade 250 {direction} Fade.Out

:DRUGS4_27732
if 
  get_fading_status 
goto_if_false @DRUGS4_27756
wait 0
goto @DRUGS4_27732

:DRUGS4_27756
set_current_char_weapon $scplayer {weaponType} 63@
clear_area 2192.1941 {y} -1153.241 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_28054
stop_char_facial_talk $sweet
stop_char_facial_talk $scplayer
switch_entry_exit 'MOTEL1' {state} True
set_char_has_used_entry_exit $sweet {x} 2214.4099 {y} -1150.48 {radius} 3.0
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $sweet {x} 2192.1941 {y} -1153.241 {z} 32.56
set_char_heading $sweet {heading} 180.359
set_char_coordinates $scplayer {x} 2193.99 {y} -1153.14 {z} 33.56
set_char_heading $scplayer {heading} 180.359
set_char_area_visible $scplayer {areaId} 0
set_char_area_visible $sweet {areaId} 0
set_char_has_used_entry_exit $scplayer {x} 2214.3799 {y} -1150.45 {radius} 1.0
set_char_has_used_entry_exit $sweet {x} 2214.3799 {y} -1150.45 {radius} 1.0
set_area_visible 0
set_fixed_camera_position 2201.644 {y} -1164.351 {z} 38.3367 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.0081 {y} -1163.641 {z} 38.0327 {switchStyle} SwitchType.JumpCut
switch_entry_exit 'MOTEL1' {state} False

:DRUGS4_28054
remove_animation "GANGS"
request_model 497
request_car_recording 349
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8326
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8273
load_all_models_now 

:DRUGS4_28089
if or
  not has_model_loaded 497
  not has_car_recording_been_loaded 349
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_28129
wait 0
goto @DRUGS4_28089

:DRUGS4_28129
task_go_straight_to_coord $scplayer {x} 2193.8601 {y} -1157.682 {z} 33.563 {speed} MoveState.Walk {time} -1
wait 500
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_28198
task_go_straight_to_coord $sweet {x} 2192.25 {y} -1158.078 {z} 33.56 {speed} MoveState.Walk {time} -1

:DRUGS4_28198
40@ = create_car 497 {x} 2249.51 {y} -1111.52 {z} 56.1
set_petrol_tank_weakpoint 40@ {state} False
set_car_only_damaged_by_player 40@ {state} True
set_car_health 40@ {health} 2000
44@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_car_forward_speed 40@ {forwardSpeed} 30.0
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2161.8401 {y} -1154.26 {z} 25.09
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 51@ {handleOrTemplate} 57@
52@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} 25.09
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 52@ {handleOrTemplate} 57@
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -5.09
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 53@ {handleOrTemplate} 57@
54@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -8.09
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 54@ {handleOrTemplate} 57@
132@ = 0
133@ = 0
135@ = 0
136@ = 0
attach_char_to_car 51@ {vehicle} 40@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 51@ {health} 150
set_char_shoot_rate 51@ {rate} 70
attach_char_to_car 52@ {vehicle} 40@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 52@ {health} 150
set_char_shoot_rate 52@ {rate} 70
attach_char_to_car 53@ {vehicle} 40@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 70
attach_char_to_car 54@ {vehicle} 40@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 54@ {health} 150
set_area_visible 0
load_scene 2193.8601 {y} -1157.682 {z} 33.563
set_time_of_day 2 {minutes} 30
clear_extra_colours False
do_fade 500 {direction} Fade.In
TIMERB = 0
171@ = 6
172@ = 1

:DRUGS4_28754
if 
  is_char_dead $sweet
goto_if_false @DRUGS4_28793
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_28793
if 
  171@ == 0
goto_if_false @DRUGS4_29396
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_28901
if 
  179@ == 0
goto_if_false @DRUGS4_28901
if 
  149@ == 1
goto_if_false @DRUGS4_28901
set_lvar_int_to_constant 106@ = 8212
set_lvar_text_label 107@s = 'FIN1_JC'
gosub @DRUGS4_66510

:DRUGS4_28901
if 
  178@ == 1
goto_if_false @DRUGS4_28991
if 
  179@ == 0
goto_if_false @DRUGS4_28991
if 
  149@ == 1
goto_if_false @DRUGS4_28991
151@ = 1
set_lvar_int_to_constant 106@ = 8203
set_lvar_text_label 107@s = 'FIN1_JD'
gosub @DRUGS4_66510

:DRUGS4_28991
if 
  173@ > 0
goto_if_false @DRUGS4_29074
if 
  178@ == 2
goto_if_false @DRUGS4_29074
if 
  179@ == 0
goto_if_false @DRUGS4_29074
set_lvar_int_to_constant 106@ = 8214
set_lvar_text_label 107@s = 'FIN1_JF'
gosub @DRUGS4_66510

:DRUGS4_29074
if 
  157@ > 0
goto_if_false @DRUGS4_29157
if 
  178@ == 3
goto_if_false @DRUGS4_29157
if 
  179@ == 0
goto_if_false @DRUGS4_29157
set_lvar_int_to_constant 106@ = 8333
set_lvar_text_label 107@s = 'FIN1_BD'
gosub @DRUGS4_66510

:DRUGS4_29157
if 
  165@ > 0
goto_if_false @DRUGS4_29240
if 
  178@ == 4
goto_if_false @DRUGS4_29240
if 
  179@ == 0
goto_if_false @DRUGS4_29240
set_lvar_int_to_constant 106@ = 8343
set_lvar_text_label 107@s = 'FIN1_CK'
gosub @DRUGS4_66510

:DRUGS4_29240
if 
  178@ == 5
goto_if_false @DRUGS4_29305
if 
  179@ == 0
goto_if_false @DRUGS4_29305
set_lvar_int_to_constant 106@ = 8334
set_lvar_text_label 107@s = 'FIN1_BE'
gosub @DRUGS4_66510

:DRUGS4_29305
if 
  181@ == 1
goto_if_false @DRUGS4_29356
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_29356
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8329
181@ = 2

:DRUGS4_29356
if 
  181@ == 2
goto_if_false @DRUGS4_29396
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_29396
181@ = 3

:DRUGS4_29396
if 
  172@ == 1
goto_if_false @DRUGS4_32113
if 
  171@ == 6
goto_if_false @DRUGS4_29671
if 
  TIMERB > 2000
goto_if_false @DRUGS4_29671
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_29475
start_playback_recorded_car 40@ {path} 349

:DRUGS4_29475
set_fixed_camera_position 2195.0991 {y} -1157.921 {z} 34.0291 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2194.103 {y} -1157.979 {z} 33.9628 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29671
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29671
wait 200
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29590
task_look_at_char $scplayer {target} 44@ {time} 3000

:DRUGS4_29590
wait 100
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29637
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29637
task_look_at_char $sweet {target} 44@ {time} 3000

:DRUGS4_29637
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_AA' {time} 3000 {flag} 1
TIMERB = 0
171@ = 7

:DRUGS4_29671
if 
  171@ == 7
goto_if_false @DRUGS4_30157
if 
  TIMERB > 2500
goto_if_false @DRUGS4_30157
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30157
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30157
175@ = 0
skip_cutscene_start_internal @DRUGS4_30858
set_fixed_camera_position 2176.6411 {y} -1179.425 {z} 38.9175 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2177.136 {y} -1178.588 {z} 38.6847 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_29869
if 
  132@ == 0
goto_if_false @DRUGS4_29869
set_lvar_int_to_lvar_int 118@ = 51@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
132@ = 1

:DRUGS4_29869
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_29949
if 
  133@ == 0
goto_if_false @DRUGS4_29949
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29935
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_29935
gosub @DRUGS4_66965
133@ = 1

:DRUGS4_29949
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_30029
if 
  135@ == 0
goto_if_false @DRUGS4_30029
set_lvar_int_to_lvar_int 118@ = 53@
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30015
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_30015
gosub @DRUGS4_66965
135@ = 1

:DRUGS4_30029
if 
  not is_char_dead 54@
goto_if_false @DRUGS4_30093
if 
  136@ == 0
goto_if_false @DRUGS4_30093
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
136@ = 1

:DRUGS4_30093
task_go_straight_to_coord $sweet {x} 2192.6831 {y} -1168.5861 {z} 33.56 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord $scplayer {x} 2198.4241 {y} -1158.3199 {z} 33.56 {speed} MoveState.Run {time} 5000
TIMERB = 0
171@ = 8

:DRUGS4_30157
if 
  171@ == 8
goto_if_false @DRUGS4_30456
if 
  TIMERB > 1500
goto_if_false @DRUGS4_30456
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30456
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30456
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_30247
stop_playback_recorded_car 40@

:DRUGS4_30247
set_fixed_camera_position 2196.3379 {y} -1157.223 {z} 32.9594 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2195.762 {y} -1158.032 {z} 33.0705 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2195.9141 {y} -1159.764 {z} 32.563
set_char_heading $scplayer {heading} 181.0915
task_play_anim $scplayer {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_JL' {time} 3000 {flag} 1
set_car_coordinates 40@ {x} 2185.4299 {y} -1172.6899 {z} 37.05
heli_goto_coords 40@ {x} 2194.97 {y} -1182.27 {z} 37.0 {minAltitude} 7.0 {maxAltitude} 7.0
TIMERB = 0
171@ = 9

:DRUGS4_30456
if 
  171@ == 9
goto_if_false @DRUGS4_30652
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30652
if 
  is_char_playing_anim $scplayer {animationName} "SWT_WLLPK_L"
goto_if_false @DRUGS4_30652
96@ = get_char_anim_current_time $scplayer {animationName} "SWT_WLLPK_L"
if 
  96@ == 1.0
goto_if_false @DRUGS4_30652
task_play_anim $scplayer {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_30645
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_30645
171@ = 10

:DRUGS4_30652
if 
  171@ == 10
goto_if_false @DRUGS4_32056
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_32056
if 
  is_char_playing_anim $scplayer {animationName} "SWT_WLLSHOOT_IN_L"
goto_if_false @DRUGS4_32056
96@ = get_char_anim_current_time $scplayer {animationName} "SWT_WLLSHOOT_IN_L"
if 
  96@ == 1.0
goto_if_false @DRUGS4_32056
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30846
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 4.0 {radius} 0.4
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_30846
clear_char_tasks_immediately $scplayer
175@ = 1

:DRUGS4_30858
skip_cutscene_end 
if 
  175@ == 0
goto_if_false @DRUGS4_31751
clear_prints 
do_fade 500 {direction} Fade.Out

:DRUGS4_30887
if 
  get_fading_status 
goto_if_false @DRUGS4_30911
wait 0
goto @DRUGS4_30887

:DRUGS4_30911
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30956
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_30956
stop_playback_recorded_car 40@

:DRUGS4_30956
delete_car 40@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
request_model 497
request_model 285
request_model 353
load_all_models_now 

:DRUGS4_30998
if or
  not has_model_loaded 497
  not has_model_loaded 285
  not has_model_loaded 353
goto_if_false @DRUGS4_31035
wait 0
goto @DRUGS4_30998

:DRUGS4_31035
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31068
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_char_only_damaged_by_player $sweet {state} False

:DRUGS4_31068
40@ = create_car 497 {x} 2249.51 {y} -1111.52 {z} 56.1
set_petrol_tank_weakpoint 40@ {state} False
set_car_only_damaged_by_player 40@ {state} True
set_car_forward_speed 40@ {forwardSpeed} 30.0
set_car_health 40@ {health} 2000
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 3.0 {radius} 0.4
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2
44@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@
set_car_coordinates 40@ {x} 2188.28 {y} -1176.54 {z} 39.54
set_car_heading 40@ {heading} 210.0
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2161.8401 {y} -1154.26 {z} 25.09
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 51@ {handleOrTemplate} 57@
52@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} 25.09
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 52@ {handleOrTemplate} 57@
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -5.09
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 53@ {handleOrTemplate} 57@
54@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -8.09
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 54@ {handleOrTemplate} 57@
132@ = 0
133@ = 0
135@ = 0
136@ = 0
attach_char_to_car 51@ {vehicle} 40@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 51@ {health} 150
set_char_shoot_rate 51@ {rate} 70
attach_char_to_car 52@ {vehicle} 40@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 52@ {health} 150
set_char_shoot_rate 52@ {rate} 70
attach_char_to_car 53@ {vehicle} 40@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 70
attach_char_to_car 54@ {vehicle} 40@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 54@ {health} 150
load_scene 2193.8601 {y} -1157.682 {z} 33.563
set_char_coordinates $scplayer {x} 2194.53 {y} -1159.24 {z} 32.563
set_char_heading $scplayer {heading} 173.208
set_char_coordinates $sweet {x} 2192.6379 {y} -1169.202 {z} 32.563
set_char_heading $sweet {heading} 180.668
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 750 {direction} Fade.In

:DRUGS4_31751
132@ = 0
133@ = 0
135@ = 0
136@ = 0
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31861
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_31861
set_char_proofs $sweet {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
give_weapon_to_char $sweet {weaponType} WeaponType.Mp5 {ammo} 99999
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_31861
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_31892
set_heli_reached_target_distance 40@ {distance} 3
185@ = add_blip_for_car 40@

:DRUGS4_31892
set_char_health $scplayer {health} 100
remove_decision_maker 56@
TIMERA = 0
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31960
set_char_only_damaged_by_player $sweet {state} False
set_char_health $sweet {health} 500
$cs1_random_dialogue = 100

:DRUGS4_31960
remove_animation "SWAT"
restore_camera_jumpcut 
set_camera_behind_player 
display_onscreen_counter_with_string $cs1_random_dialogue {display} CounterDisplay.Bar {text} 'LAF1_20'
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8274
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8344
178@ = 0
179@ = 0
print_now 'LAF1_5' {time} 5000 {flag} 1
172@ = 2
171@ = 11

:DRUGS4_32056
if 
  11 > 171@
goto_if_false @DRUGS4_32113
if 
  is_char_dead $sweet
goto_if_false @DRUGS4_32113
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_32113
if 
  172@ == 2
goto_if_false @DRUGS4_33684
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_32169
$cs1_random_dialogue = get_char_health $sweet
$cs1_random_dialogue /= 5
goto @DRUGS4_32192

:DRUGS4_32169
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_32192
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33684
if 
  171@ == 11
goto_if_false @DRUGS4_32276
if 
  TIMERA > 4000
goto_if_false @DRUGS4_32276
task_go_straight_to_coord $sweet {x} 2193.199 {y} -1179.67 {z} 33.56 {speed} MoveState.Run {time} -1
171@ = 12

:DRUGS4_32276
if 
  171@ == 12
goto_if_false @DRUGS4_32470
if 
  locate_char_any_means_3d $sweet {x} 2193.199 {y} -1179.67 {z} 33.56 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @DRUGS4_32470
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32381
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32381
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32463
heli_goto_coords 40@ {x} 2193.199 {y} -1179.67 {z} 40.5 {minAltitude} 10.0 {maxAltitude} 10.0
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32463
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.2

:DRUGS4_32463
171@ = 13

:DRUGS4_32470
if 
  171@ == 13
goto_if_false @DRUGS4_32590
if 
  TIMERA > 10000
goto_if_false @DRUGS4_32590
task_go_straight_to_coord $sweet {x} 2200.6521 {y} -1188.776 {z} 32.563 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32560
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_32560
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32583
set_car_only_damaged_by_player 40@ {state} False

:DRUGS4_32583
171@ = 14

:DRUGS4_32590
if 
  171@ == 14
goto_if_false @DRUGS4_32755
if 
  locate_char_any_means_3d $sweet {x} 2200.6521 {y} -1188.776 {z} 32.563 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_32755
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32695
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32695
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32748
heli_goto_coords 40@ {x} 2212.4099 {y} -1168.54 {z} 42.0 {minAltitude} 20.0 {maxAltitude} 20.0

:DRUGS4_32748
171@ = 15

:DRUGS4_32755
if 
  171@ == 15
goto_if_false @DRUGS4_32852
if 
  TIMERA > 12000
goto_if_false @DRUGS4_32852
task_go_straight_to_coord $sweet {x} 2209.4741 {y} -1185.644 {z} 33.56 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32845
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.2

:DRUGS4_32845
171@ = 16

:DRUGS4_32852
if 
  171@ == 16
goto_if_false @DRUGS4_33017
if 
  locate_char_any_means_3d $sweet {x} 2209.4741 {y} -1185.644 {z} 33.56 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_33017
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32957
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32957
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33010
heli_goto_coords 40@ {x} 2223.6599 {y} -1169.4 {z} 42.83 {minAltitude} 20.0 {maxAltitude} 20.0

:DRUGS4_33010
171@ = 17

:DRUGS4_33017
if 
  171@ == 17
goto_if_false @DRUGS4_33114
if 
  TIMERA > 5000
goto_if_false @DRUGS4_33114
task_go_straight_to_coord $sweet {x} 2219.186 {y} -1188.8 {z} 33.563 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_33107
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_33107
171@ = 18

:DRUGS4_33114
if 
  171@ == 18
goto_if_false @DRUGS4_33279
if 
  locate_char_any_means_3d $sweet {x} 2219.186 {y} -1188.8 {z} 33.563 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_33279
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_33219
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_33219
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33272
heli_goto_coords 40@ {x} 2242.9099 {y} -1178.87 {z} 42.0 {minAltitude} 10.0 {maxAltitude} 10.0

:DRUGS4_33272
171@ = 19

:DRUGS4_33279
if 
  132@ == 0
goto_if_false @DRUGS4_33325
if 
  is_char_dead 51@
goto_if_false @DRUGS4_33325
detach_char_from_car 51@
132@ = 1

:DRUGS4_33325
if 
  133@ == 0
goto_if_false @DRUGS4_33371
if 
  is_char_dead 52@
goto_if_false @DRUGS4_33371
detach_char_from_car 52@
133@ = 1

:DRUGS4_33371
if 
  135@ == 0
goto_if_false @DRUGS4_33417
if 
  is_char_dead 53@
goto_if_false @DRUGS4_33417
detach_char_from_car 53@
135@ = 1

:DRUGS4_33417
if 
  136@ == 0
goto_if_false @DRUGS4_33463
if 
  is_char_dead 54@
goto_if_false @DRUGS4_33463
detach_char_from_car 54@
136@ = 1

:DRUGS4_33463
if 
  171@ > 10
goto_if_false @DRUGS4_33684
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33649
41@ = get_car_health 40@
if 
  1250 > 41@
goto_if_false @DRUGS4_33642
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
remove_blip 185@
heli_goto_coords 40@ {x} 2220.4399 {y} -1128.29 {z} 43.31 {minAltitude} 30.0 {maxAltitude} 30.0
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_33593
play_mission_audio MissionAudioSlot.Slot2

:DRUGS4_33593
delete_searchlight 58@
TIMERA = 0
176@ = 1
print_now 'LAF1_69' {time} 5000 {flag} 1
172@ = 3
171@ = 20

:DRUGS4_33642
goto @DRUGS4_33684

:DRUGS4_33649
print_now 'LAF1_69' {time} 1000 {flag} 1
delete_searchlight 58@
172@ = 3
171@ = 20

:DRUGS4_33684
if 
  172@ == 3
goto_if_false @DRUGS4_34634
if 
  23 > 171@
goto_if_false @DRUGS4_34634
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33758
$cs1_random_dialogue = get_char_health $sweet
$cs1_random_dialogue /= 5
goto @DRUGS4_33781

:DRUGS4_33758
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67703

:DRUGS4_33781
if 
  171@ == 20
goto_if_false @DRUGS4_33898
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33898
task_follow_path_nodes_to_coord $sweet {x} 2235.3601 {y} -1188.6801 {z} 33.82 {speed} MoveState.Run {time} 35000
TIMERB = 0
178@ = 0
179@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_area 2197.78 {y} -1194.0 {z} 30.0 {radius} 30.0 {clearParticles} True
171@ = 21

:DRUGS4_33898
if 
  171@ == 21
goto_if_false @DRUGS4_34123
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34123
if 
  locate_char_any_means_char_3d $sweet {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34064
if 
  is_char_on_screen $sweet
goto_if_false @DRUGS4_34057
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_follow_path_nodes_to_coord $sweet {x} 2197.78 {y} -1194.0 {z} 26.17 {speed} MoveState.Run {time} 35000
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} False
171@ = 22

:DRUGS4_34057
goto @DRUGS4_34123

:DRUGS4_34064
if 
  TIMERB > 3500
goto_if_false @DRUGS4_34123
print_now 'LAF1_69' {time} 1000 {flag} 1
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} False

:DRUGS4_34123
if 
  176@ == 1
goto_if_false @DRUGS4_34229
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_34229
if 
  locate_car_3d 40@ {x} 2220.4399 {y} -1128.29 {z} 43.31 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_34229
explode_car 40@
explode_car 40@
TIMERA = 0
176@ = 2

:DRUGS4_34229
if 
  176@ == 2
goto_if_false @DRUGS4_34283
if 
  TIMERA > 3000
goto_if_false @DRUGS4_34283
mark_car_as_no_longer_needed 40@
delete_car 40@
176@ = 3

:DRUGS4_34283
if 
  171@ == 22
goto_if_false @DRUGS4_34634
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34634
if 
  locate_char_on_foot_3d $scplayer {x} 2197.78 {y} -1194.0 {z} 26.17 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34497
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_34394
if 
  get_fading_status 
goto_if_false @DRUGS4_34418
wait 0
goto @DRUGS4_34394

:DRUGS4_34418
mark_car_as_no_longer_needed 40@
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34483
set_char_coordinates $sweet {x} 2197.78 {y} -1194.0 {z} 25.0

:DRUGS4_34483
171@ = 23
goto @DRUGS4_34634

:DRUGS4_34497
if 
  locate_char_on_foot_3d $sweet {x} 2197.78 {y} -1194.0 {z} 26.17 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34634
mark_car_as_no_longer_needed 40@
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} True
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_34603
if 
  get_fading_status 
goto_if_false @DRUGS4_34627
wait 0
goto @DRUGS4_34603

:DRUGS4_34627
171@ = 23

:DRUGS4_34634
if 
  172@ > 1
goto_if_false @DRUGS4_35061
if 
  4 > 172@
goto_if_false @DRUGS4_35061
if 
  23 > 171@
goto_if_false @DRUGS4_35061
gosub @DRUGS4_66552
if 
  172@ == 2
goto_if_false @DRUGS4_34960
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_34960
if 
  178@ == 0
goto_if_false @DRUGS4_34812
if 
  179@ == 0
goto_if_false @DRUGS4_34812
if 
  171@ > 11
goto_if_false @DRUGS4_34812
set_lvar_int_to_constant 106@ = 8274
set_lvar_text_label 107@s = 'FIN1_JM'
gosub @DRUGS4_66510

:DRUGS4_34812
if 
  178@ == 1
goto_if_false @DRUGS4_34877
if 
  179@ == 0
goto_if_false @DRUGS4_34877
set_lvar_int_to_constant 106@ = 8350
set_lvar_text_label 107@s = 'FIN1_BY'
gosub @DRUGS4_66510

:DRUGS4_34877
if 
  178@ == 2
goto_if_false @DRUGS4_34960
if 
  179@ == 0
goto_if_false @DRUGS4_34960
if 
  171@ > 14
goto_if_false @DRUGS4_34960
set_lvar_int_to_constant 106@ = 8273
set_lvar_text_label 107@s = 'FIN1_JL'
gosub @DRUGS4_66510

:DRUGS4_34960
if 
  172@ == 3
goto_if_false @DRUGS4_35061
if 
  171@ > 21
goto_if_false @DRUGS4_35061
if 
  178@ == 0
goto_if_false @DRUGS4_35061
if 
  179@ == 0
goto_if_false @DRUGS4_35061
set_lvar_int_to_constant 106@ = 8275
set_lvar_text_label 107@s = 'FIN1_JN'
gosub @DRUGS4_66510

:DRUGS4_35061
if 
  171@ == 23
goto_if_false @DRUGS4_36770
if 
  294@ == 0
goto_if_false @DRUGS4_36770
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36770
set_time_of_day 3 {minutes} 15
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 346
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
switch_widescreen True
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
set_player_control $player1 {state} False
set_near_clip 0.1
set_fixed_camera_position 2190.325 {y} -1194.562 {z} 25.4553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2189.376 {y} -1194.54 {z} 25.1403 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $sweet {x} 2192.6499 {y} -1194.78 {z} 24.2
set_char_heading $sweet {heading} 78.5405
set_char_coordinates $scplayer {x} 2192.0 {y} -1193.78 {z} 24.2
set_char_heading $scplayer {heading} 85.0874
143@ = 0
remove_decision_maker 57@
mark_model_as_no_longer_needed 285
clear_onscreen_counter $cs1_random_dialogue
request_model 596
request_model 280
request_model 355
request_model 538
request_model 492
request_model 497
request_animation "GANGS"
request_animation "CAR_CHAT"
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_car_recording 330
request_car_recording 332
request_car_recording 333
request_car_recording 334
request_car_recording 335
request_car_recording 336
request_car_recording 337
request_car_recording 338
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8277
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8216
load_all_models_now 

:DRUGS4_35461
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CAR_CHAT"
goto_if_false @DRUGS4_35516
wait 0
goto @DRUGS4_35461

:DRUGS4_35516
if or
  not has_model_loaded 596
  not has_model_loaded 280
  not has_model_loaded 355
goto_if_false @DRUGS4_35553
wait 0
goto @DRUGS4_35516

:DRUGS4_35553
if or
  not has_model_loaded 538
  not has_model_loaded 492
  not has_model_loaded 497
goto_if_false @DRUGS4_35590
wait 0
goto @DRUGS4_35553

:DRUGS4_35590
if or
  not has_car_recording_been_loaded 330
  not has_car_recording_been_loaded 332
  not has_car_recording_been_loaded 333
  not has_car_recording_been_loaded 334
  not has_car_recording_been_loaded 335
goto_if_false @DRUGS4_35637
wait 0
goto @DRUGS4_35590

:DRUGS4_35637
if or
  not has_car_recording_been_loaded 336
  not has_car_recording_been_loaded 337
  not has_car_recording_been_loaded 338
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_35682
wait 0
goto @DRUGS4_35637

:DRUGS4_35682
delete_car 40@
delete_char 44@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
clear_area 2192.6499 {y} -1194.78 {z} 100.0 {radius} 100.0 {clearParticles} True
40@ = create_car 497 {x} 2130.0039 {y} -1196.324 {z} 28.198
set_petrol_tank_weakpoint 40@ {state} False
set_car_heading 40@ {heading} 336.905
44@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_car_only_damaged_by_player 40@ {state} True
set_car_proofs 40@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_heli_blades_full_speed 40@
set_car_visible 40@ {state} False
$sweet_car = create_car 492 {x} 2203.498 {y} -1217.624 {z} 23.579
set_radio_channel RadioChannel.RadioLosSantos
set_car_can_be_visibly_damaged $sweet_car {state} False
set_car_heading $sweet_car {heading} 90.386
$big_smoke = create_char_inside_car $sweet_car {pedType} PedType.Special {modelId} 291
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Special {modelId} 292 {seat} SeatId.BikeRear
set_char_decision_maker $ryder {handleOrTemplate} 55@
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health $sweet_car {health} 6000
set_can_burst_car_tyres $sweet_car {state} False
186@ = create_car 596 {x} 2169.1941 {y} -1270.059 {z} 22.8203
set_petrol_tank_weakpoint 186@ {state} False
set_car_heading 186@ {heading} 357.0326
set_car_only_damaged_by_player 186@ {state} True
set_car_health 186@ {health} 750
195@ = create_char_inside_car 186@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 195@ {handleOrTemplate} 55@
set_char_health 195@ {health} 100
set_char_suffers_critical_hits 195@ {state} False
set_char_only_damaged_by_player 195@ {state} True
196@ = create_char_as_passenger 186@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 196@ {handleOrTemplate} 55@
set_char_health 196@ {health} 200
set_char_only_damaged_by_player 196@ {state} True
give_weapon_to_char 196@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_suffers_critical_hits 196@ {state} False
car_set_idle 186@
set_car_visible 186@ {state} False
187@ = create_car 596 {x} 2172.5259 {y} -1280.734 {z} 22.9766
set_petrol_tank_weakpoint 187@ {state} False
set_car_heading 187@ {heading} 0.9448
set_car_only_damaged_by_player 187@ {state} True
set_car_health 187@ {health} 500
197@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 280
set_car_proofs 187@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 197@ {state} True
set_char_health 197@ {health} 100
set_char_decision_maker 197@ {handleOrTemplate} 55@
198@ = create_char_as_passenger 187@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 198@ {state} True
set_char_decision_maker 198@ {handleOrTemplate} 55@
set_char_health 198@ {health} 200
set_char_suffers_critical_hits 198@ {state} False
give_weapon_to_char 198@ {weaponType} WeaponType.Mp5 {ammo} 99999
car_set_idle 187@
set_car_visible 187@ {state} False
188@ = create_car 596 {x} 2223.1101 {y} -1150.118 {z} 24.92
set_petrol_tank_weakpoint 188@ {state} False
199@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 280
set_char_can_be_shot_in_vehicle 199@ {state} False
set_car_only_damaged_by_player 188@ {state} True
set_car_health 188@ {health} 1000
set_char_decision_maker 199@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 199@ {state} True
set_char_suffers_critical_hits 199@ {state} False
200@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 200@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 200@ {state} True
set_char_health 200@ {health} 200
set_char_suffers_critical_hits 200@ {state} False
give_weapon_to_char 200@ {weaponType} WeaponType.Mp5 {ammo} 99999
car_set_idle 188@
189@ = create_car 596 {x} 2388.8081 {y} -1259.431 {z} 22.94
set_car_heading 189@ {heading} 89.36
set_petrol_tank_weakpoint 189@ {state} False
set_car_only_damaged_by_player 189@ {state} True
set_car_health 189@ {health} 900
201@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 201@ {state} True
set_char_decision_maker 201@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 201@ {state} False
set_char_health 201@ {health} 100
202@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 202@ {state} True
set_char_health 202@ {health} 150
set_char_decision_maker 202@ {handleOrTemplate} 55@
give_weapon_to_char 202@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 202@ {state} False
car_set_idle 189@
switch_random_trains False
delete_all_trains 
211@ = create_mission_train 15 {x} 2284.991 {y} -1186.053 {z} 24.756 {direction} False
set_train_speed 211@ {speed} 0.0
set_train_cruise_speed 211@ {speed} 0.0
set_car_proofs 211@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_go_straight_to_coord $scplayer {x} 2183.5669 {y} -1193.851 {z} 23.2419 {speed} MoveState.Run {time} 5000
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36756
task_go_straight_to_coord $sweet {x} 2183.531 {y} -1195.074 {z} 23.2266 {speed} MoveState.Run {time} 5000

:DRUGS4_36756
do_fade 250 {direction} Fade.In
294@ = 1

:DRUGS4_36770
if 
  294@ == 1
goto_if_false @DRUGS4_36945
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36945
if 
  locate_char_any_means_2d $sweet {x} 2183.531 {y} -1195.074 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @DRUGS4_36945
if 
  locate_char_any_means_2d $scplayer {x} 2183.5669 {y} -1193.851 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRUGS4_36945
set_fixed_camera_position 2183.6169 {y} -1193.088 {z} 24.8301 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2183.54 {y} -1194.085 {z} 24.8217 {switchStyle} SwitchType.JumpCut
TIMERA = 0
294@ = 2

:DRUGS4_36945
if 
  294@ == 2
goto_if_false @DRUGS4_37134
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37134
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37134
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37134
if 
  TIMERA > 1500
goto_if_false @DRUGS4_37134
task_look_at_char $scplayer {target} $big_smoke {time} 3000
start_playback_recorded_car $sweet_car {path} 330
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_KA' {time} 2500 {flag} 1
start_char_facial_talk $sweet {duration} 2000
TIMERA = 0
294@ = 3

:DRUGS4_37134
if 
  294@ == 3
goto_if_false @DRUGS4_37269
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37269
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37269
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37269
if 
  TIMERA > 500
goto_if_false @DRUGS4_37269
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
294@ = 4

:DRUGS4_37269
if 
  294@ == 4
goto_if_false @DRUGS4_37515
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37515
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37515
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37515
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_37515
task_look_at_char $sweet {target} $big_smoke {time} 5000
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 2000
print_now 'FIN1_KB' {time} 3000 {flag} 1
stop_char_facial_talk $sweet
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8312
task_go_straight_to_coord $scplayer {x} 2181.53 {y} -1193.8101 {z} 23.67 {speed} MoveState.Walk {time} 5000
task_go_straight_to_coord $sweet {x} 2181.4099 {y} -1195.67 {z} 23.74 {speed} MoveState.Walk {time} 5000
set_fixed_camera_position 2177.9189 {y} -1190.952 {z} 24.4917 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.3721 {y} -1191.8149 {z} 24.2692 {switchStyle} SwitchType.JumpCut
294@ = 5

:DRUGS4_37515
if 
  294@ == 5
goto_if_false @DRUGS4_37938
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37938
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_37938
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37938
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37938
if 
  not is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_37938
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_37938
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_37938
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8217
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 1000
print_now 'FIN1_KC' {time} 2000 {flag} 1
set_fixed_camera_position 2177.9189 {y} -1190.952 {z} 24.4917 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.3721 {y} -1191.8149 {z} 24.2692 {switchStyle} SwitchType.JumpCut
task_look_at_char $scplayer {target} $big_smoke {time} 5000
car_set_idle $sweet_car
task_play_anim $big_smoke {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger $scplayer {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearRight
task_go_straight_to_coord $sweet {x} 2181.51 {y} -1201.97 {z} 24.0 {speed} MoveState.Run {time} 5000
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_37901
switch_car_siren 186@ {state} True

:DRUGS4_37901
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_37924
switch_car_siren 187@ {state} True

:DRUGS4_37924
TIMERA = 0
294@ = 6

:DRUGS4_37938
if 
  294@ == 6
goto_if_false @DRUGS4_38144
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38144
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38144
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38144
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38144
if 
  TIMERA > 2000
goto_if_false @DRUGS4_38144
set_char_coordinates $sweet {x} 2176.78 {y} -1196.64 {z} 23.18
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 6000 {seat} SeatId.RearLeft
stop_char_facial_talk $big_smoke
pop_car_panel $sweet_car {panelId} 4 {visibility} False
set_fixed_camera_position 2178.8811 {y} -1194.196 {z} 24.3172 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.866 {y} -1195.196 {z} 24.2959 {switchStyle} SwitchType.JumpCut
294@ = 7

:DRUGS4_38144
if 
  294@ == 7
goto_if_false @DRUGS4_38250
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_38250
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS4_38250
task_play_anim $scplayer {animationName} "CAR_SC4_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
294@ = 8

:DRUGS4_38250
if 
  294@ == 8
goto_if_false @DRUGS4_38685
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38685
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38685
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38685
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38685
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_38685
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_38685
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_38656
task_play_anim $sweet {animationName} "CAR_SC4_BL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $sweet {duration} 1000
print_now 'FIN1_KE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8218
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_38500
set_car_visible 40@ {state} True
heli_follow_entity 40@ {char} $scplayer {vehicle} -1 {radius} 20.0

:DRUGS4_38500
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_38568
set_car_visible 186@ {state} True
start_playback_recorded_car 186@ {path} 333
285@ = add_blip_for_car 186@
change_blip_display 285@ {display} BlipDisplay.BlipOnly
set_car_health 186@ {health} 1000
297@ = 1
313@ = 1

:DRUGS4_38568
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_38628
set_car_visible 187@ {state} True
start_playback_recorded_car 187@ {path} 334
286@ = add_blip_for_car 187@
change_blip_display 286@ {display} BlipDisplay.BlipOnly
298@ = 1
314@ = 1

:DRUGS4_38628
TIMERA = 0
TIMERB = 0
294@ = 9
goto @DRUGS4_38685

:DRUGS4_38656
if 
  TIMERA > 5000
goto_if_false @DRUGS4_38685
warp_char_into_car_as_passenger $sweet {handle} $sweet_car {seat} SeatId.RearLeft

:DRUGS4_38685
if 
  294@ == 9
goto_if_false @DRUGS4_38800
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38800
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38800
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38800
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38800
if 
  TIMERA > 500
goto_if_false @DRUGS4_38800
TIMERA = 0
294@ = 10

:DRUGS4_38800
if 
  294@ == 10
goto_if_false @DRUGS4_38952
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38952
if 
  TIMERB > 2800
goto_if_false @DRUGS4_38952
start_playback_recorded_car $sweet_car {path} 332
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_38938
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 3.0 {radius} 0.5
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.8

:DRUGS4_38938
TIMERB = 0
294@ = 11

:DRUGS4_38952
if 
  294@ == 11
goto_if_false @DRUGS4_39091
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39091
if 
  TIMERB > 3500
goto_if_false @DRUGS4_39091
set_fixed_camera_position 2178.9871 {y} -1140.6429 {z} 25.902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.9509 {y} -1141.642 {z} 25.8765 {switchStyle} SwitchType.JumpCut
326@ = 1
178@ = 0
179@ = 0
TIMERB = 0
294@ = 12

:DRUGS4_39091
if 
  294@ == 12
goto_if_false @DRUGS4_39622
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39622
if or
  locate_char_any_means_2d $scplayer {x} 2178.9871 {y} -1140.6429 {xRadius} 1.3 {yRadius} 1.3 {drawSphere} False
  TIMERB > 2250
goto_if_false @DRUGS4_39622
warp_char_from_car_to_coord $scplayer {x} 2178.8 {y} -1161.187 {z} 10.0
attach_char_to_car $scplayer {vehicle} $sweet_car {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.8 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Ak47
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 180.0
restore_camera 
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
switch_widescreen False
set_player_control $player1 {state} True
TIMERA = 0
TIMERB = 0
delete_char $sweet
delete_char $big_smoke
delete_char $ryder
remove_animation "GANGS"
remove_animation "CAR_CHAT"
unload_special_character 1
unload_special_character 2
unload_special_character 3
293@ += 1
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_39448
if 
  293@ > 1
goto_if_false @DRUGS4_39412
task_drive_by 196@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40
goto @DRUGS4_39448

:DRUGS4_39412
task_drive_by 196@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_39448
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_39500
task_drive_by 198@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:DRUGS4_39500
set_car_health $sweet_car {health} 6000
$sweethealth_f1 = get_car_health $sweet_car
$sweethealth_f1 /= 60
display_onscreen_counter_with_string $sweethealth_f1 {display} CounterDisplay.Bar {text} 'LAF1_38'
set_player_duck_button $player1 {enabled} False
print_help 'LAF1_50'
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
331@ = 1
312@ = 1
295@ = 1
296@ = 1
294@ = 13

:DRUGS4_39622
if 
  295@ > 0
goto_if_false @DRUGS4_39787
if 
  5 > 325@
goto_if_false @DRUGS4_39787
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39787
$sweethealth_f1 = get_car_health $sweet_car
$sweethealth_f1 -= 1000
if 
  0 >= $sweethealth_f1
goto_if_false @DRUGS4_39780
$sweethealth_f1 = 0
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car $sweet_car
print_now 'LAF1_4' {time} 5000 {flag} 1
goto @DRUGS4_67703
goto @DRUGS4_39787

:DRUGS4_39780
$sweethealth_f1 /= 50

:DRUGS4_39787
if 
  295@ == 1
goto_if_false @DRUGS4_43438
if 
  331@ == 1
goto_if_false @DRUGS4_39843
if 
  is_help_message_being_displayed 
goto_if_false @DRUGS4_39843
331@ = 2

:DRUGS4_39843
if 
  331@ == 2
goto_if_false @DRUGS4_39892
if 
  not is_help_message_being_displayed 
goto_if_false @DRUGS4_39892
print_help 'LAF1_51'
331@ = 3

:DRUGS4_39892
if 
  294@ == 13
goto_if_false @DRUGS4_40007
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40007
if 
  locate_car_2d $sweet_car {x} 2261.95 {y} -1142.2 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_40007
if 
  not is_car_dead 211@
goto_if_false @DRUGS4_40007
set_train_speed 211@ {speed} 10.0
set_train_cruise_speed 211@ {speed} 10.0
294@ = 14

:DRUGS4_40007
if 
  294@ == 14
goto_if_false @DRUGS4_40108
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40108
if 
  locate_car_2d 188@ {x} 2284.98 {y} -1146.61 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_40108
TIMERB = 0
327@ = 1
set_car_health 188@ {health} 750
294@ = 15

:DRUGS4_40108
if 
  294@ == 15
goto_if_false @DRUGS4_40173
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40173
if 
  TIMERB > 1100
goto_if_false @DRUGS4_40173
explode_car 188@
294@ = 16

:DRUGS4_40173
if 
  296@ == 1
goto_if_false @DRUGS4_40357
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40357
if 
  locate_car_2d $sweet_car {x} 2223.1101 {y} -1150.118 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS4_40357
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40350
start_playback_recorded_car 188@ {path} 335
287@ = add_blip_for_car 188@
change_blip_display 287@ {display} BlipDisplay.BlipOnly
315@ = 1
299@ = 1
if 
  not is_char_dead 200@
goto_if_false @DRUGS4_40350
task_drive_by 200@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_40350
296@ = 2

:DRUGS4_40357
if 
  296@ == 2
goto_if_false @DRUGS4_40843
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40843
if 
  locate_car_2d $sweet_car {x} 2352.54 {y} -1271.86 {xRadius} 10.1 {yRadius} 10.1 {drawSphere} False
goto_if_false @DRUGS4_40843
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_40836
start_playback_recorded_car 189@ {path} 336
288@ = add_blip_for_car 189@
change_blip_display 288@ {display} BlipDisplay.BlipOnly
300@ = 1
316@ = 1
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_40534
task_drive_by 202@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_40534
delete_mission_train 211@
delete_mission_trains 
mark_model_as_no_longer_needed 538
190@ = create_car 596 {x} 2500.697 {y} -1443.776 {z} 28.28
set_petrol_tank_weakpoint 190@ {state} False
set_car_heading 190@ {heading} 90.4588
set_car_only_damaged_by_player 190@ {state} True
set_car_health 190@ {health} 750
203@ = create_char_inside_car 190@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 203@ {state} True
set_char_decision_maker 203@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 203@ {state} False
set_char_health 203@ {health} 200
204@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 204@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 204@ {state} True
set_char_health 204@ {health} 100
give_weapon_to_char 204@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 204@ {state} False
car_set_idle 190@
192@ = create_car 596 {x} 2478.2229 {y} -1321.9659 {z} 28.252
set_car_heading 192@ {heading} 356.585
set_car_only_damaged_by_player 192@ {state} True
set_car_health 192@ {health} 280
car_set_idle 192@
205@ = create_char_inside_car 192@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 205@ {state} True
set_char_decision_maker 205@ {handleOrTemplate} 55@
206@ = create_char_as_passenger 192@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 206@ {state} True
set_char_decision_maker 206@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 206@ {state} False
give_weapon_to_char 206@ {weaponType} WeaponType.Mp5 {ammo} 9999
car_set_idle 192@

:DRUGS4_40836
296@ = 3

:DRUGS4_40843
if 
  296@ == 3
goto_if_false @DRUGS4_41304
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_41304
if 
  locate_car_2d $sweet_car {x} 2394.6699 {y} -1442.4301 {xRadius} 10.1 {yRadius} 10.1 {drawSphere} False
goto_if_false @DRUGS4_41304
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_41297
301@ = 1
317@ = 1
start_playback_recorded_car 190@ {path} 337
289@ = add_blip_for_car 190@
change_blip_display 289@ {display} BlipDisplay.BlipOnly
switch_car_siren 190@ {state} True
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_41088
if 
  293@ > 1
goto_if_false @DRUGS4_41052
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
goto @DRUGS4_41088

:DRUGS4_41052
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_41088
delete_all_trains 
191@ = create_car 596 {x} 2447.0359 {y} -1370.772 {z} 22.64
set_car_heading 191@ {heading} 270.267
car_set_idle 191@
set_car_health 191@ {health} 250
set_car_only_damaged_by_player 191@ {state} True
290@ = add_blip_for_car 191@
change_blip_display 290@ {display} BlipDisplay.BlipOnly
207@ = create_char PedType.Mission1 {modelId} 280 {x} 2448.77 {y} -1368.8979 {z} 23.6
set_char_decision_maker 207@ {handleOrTemplate} 55@
give_weapon_to_char 207@ {weaponType} WeaponType.Mp5 {ammo} 999
set_lvar_int_to_lvar_int 118@ = 207@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
208@ = create_char PedType.Mission1 {modelId} 280 {x} 2444.387 {y} -1369.356 {z} 24.02
set_char_decision_maker 208@ {handleOrTemplate} 55@
give_weapon_to_char 208@ {weaponType} WeaponType.Mp5 {ammo} 999
set_lvar_int_to_lvar_int 118@ = 208@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
302@ = 1

:DRUGS4_41297
296@ = 4

:DRUGS4_41304
if 
  296@ == 4
goto_if_false @DRUGS4_41495
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_41495
if 
  locate_car_2d $sweet_car {x} 2448.9399 {y} -1311.15 {xRadius} 30.1 {yRadius} 30.1 {drawSphere} False
goto_if_false @DRUGS4_41495
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_41488
start_playback_recorded_car 192@ {path} 338
switch_car_siren 192@ {state} True
303@ = 1
319@ = 1
if 
  not is_char_dead 205@
goto_if_false @DRUGS4_41473
task_drive_by 205@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:DRUGS4_41473
291@ = add_blip_for_car 192@
change_blip_display 291@ {display} BlipDisplay.BlipOnly

:DRUGS4_41488
296@ = 5

:DRUGS4_41495
if 
  313@ == 1
goto_if_false @DRUGS4_41647
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_41647
if 
  not is_char_dead 195@
goto_if_false @DRUGS4_41552
goto @DRUGS4_41647

:DRUGS4_41552
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_41635
if 
  is_char_in_car 196@ {vehicle} 186@
goto_if_false @DRUGS4_41628
284@ = get_driver_of_car 186@
if 
  284@ == -1
goto_if_false @DRUGS4_41628
task_shuffle_to_next_car_seat 196@ {vehicle} 186@
313@ = 2

:DRUGS4_41628
goto @DRUGS4_41647

:DRUGS4_41635
stop_playback_recorded_car 186@
313@ = 2

:DRUGS4_41647
if 
  313@ == 2
goto_if_false @DRUGS4_41693
if 
  is_char_dead 196@
goto_if_false @DRUGS4_41693
stop_playback_recorded_car 186@
313@ = 3

:DRUGS4_41693
if 
  297@ == 1
goto_if_false @DRUGS4_41809
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_41777
if 
  not is_playback_going_on_for_car 186@
goto_if_false @DRUGS4_41770
mark_car_as_no_longer_needed 186@
mark_char_as_no_longer_needed 195@
mark_char_as_no_longer_needed 196@
remove_blip 285@
297@ = 2

:DRUGS4_41770
goto @DRUGS4_41809

:DRUGS4_41777
stop_playback_recorded_car 186@
mark_char_as_no_longer_needed 195@
mark_char_as_no_longer_needed 196@
mark_car_as_no_longer_needed 186@
remove_blip 285@
297@ = 2

:DRUGS4_41809
if 
  314@ == 1
goto_if_false @DRUGS4_41961
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_41961
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_41866
goto @DRUGS4_41961

:DRUGS4_41866
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_41949
if 
  is_char_in_car 198@ {vehicle} 187@
goto_if_false @DRUGS4_41942
284@ = get_driver_of_car 187@
if 
  284@ == -1
goto_if_false @DRUGS4_41942
task_shuffle_to_next_car_seat 198@ {vehicle} 187@
314@ = 2

:DRUGS4_41942
goto @DRUGS4_41961

:DRUGS4_41949
stop_playback_recorded_car 187@
314@ = 2

:DRUGS4_41961
if 
  314@ == 2
goto_if_false @DRUGS4_42007
if 
  is_char_dead 198@
goto_if_false @DRUGS4_42007
stop_playback_recorded_car 187@
314@ = 3

:DRUGS4_42007
if 
  298@ == 1
goto_if_false @DRUGS4_42123
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_42091
if 
  not is_playback_going_on_for_car 187@
goto_if_false @DRUGS4_42084
mark_car_as_no_longer_needed 187@
mark_char_as_no_longer_needed 197@
mark_char_as_no_longer_needed 198@
remove_blip 286@
298@ = 2

:DRUGS4_42084
goto @DRUGS4_42123

:DRUGS4_42091
stop_playback_recorded_car 187@
mark_char_as_no_longer_needed 197@
mark_char_as_no_longer_needed 198@
mark_car_as_no_longer_needed 187@
remove_blip 286@
298@ = 2

:DRUGS4_42123
if 
  299@ == 1
goto_if_false @DRUGS4_42259
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_42217
if 
  not is_playback_going_on_for_car 188@
goto_if_false @DRUGS4_42210
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 199@
mark_char_as_no_longer_needed 200@
remove_blip 287@
mark_car_as_no_longer_needed 211@
mark_model_as_no_longer_needed 538
299@ = 2

:DRUGS4_42210
goto @DRUGS4_42259

:DRUGS4_42217
stop_playback_recorded_car 188@
mark_char_as_no_longer_needed 199@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 188@
mark_car_as_no_longer_needed 211@
mark_model_as_no_longer_needed 538
remove_blip 287@
299@ = 2

:DRUGS4_42259
if 
  316@ == 1
goto_if_false @DRUGS4_42411
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_42411
if 
  not is_char_dead 201@
goto_if_false @DRUGS4_42316
goto @DRUGS4_42411

:DRUGS4_42316
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_42399
if 
  is_char_in_car 202@ {vehicle} 189@
goto_if_false @DRUGS4_42392
284@ = get_driver_of_car 189@
if 
  284@ == -1
goto_if_false @DRUGS4_42392
task_shuffle_to_next_car_seat 202@ {vehicle} 189@
316@ = 2

:DRUGS4_42392
goto @DRUGS4_42411

:DRUGS4_42399
stop_playback_recorded_car 189@
316@ = 2

:DRUGS4_42411
if 
  316@ == 2
goto_if_false @DRUGS4_42457
if 
  is_char_dead 202@
goto_if_false @DRUGS4_42457
stop_playback_recorded_car 189@
316@ = 3

:DRUGS4_42457
if 
  300@ == 1
goto_if_false @DRUGS4_42573
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_42541
if 
  not is_playback_going_on_for_car 189@
goto_if_false @DRUGS4_42534
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
remove_blip 288@
300@ = 2

:DRUGS4_42534
goto @DRUGS4_42573

:DRUGS4_42541
stop_playback_recorded_car 189@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
mark_car_as_no_longer_needed 189@
remove_blip 288@
300@ = 2

:DRUGS4_42573
if 
  317@ == 1
goto_if_false @DRUGS4_42725
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_42725
if 
  not is_char_dead 203@
goto_if_false @DRUGS4_42630
goto @DRUGS4_42725

:DRUGS4_42630
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_42713
if 
  is_char_in_car 204@ {vehicle} 190@
goto_if_false @DRUGS4_42706
284@ = get_driver_of_car 190@
if 
  284@ == -1
goto_if_false @DRUGS4_42706
task_shuffle_to_next_car_seat 204@ {vehicle} 190@
317@ = 2

:DRUGS4_42706
goto @DRUGS4_42725

:DRUGS4_42713
stop_playback_recorded_car 190@
317@ = 2

:DRUGS4_42725
if 
  317@ == 2
goto_if_false @DRUGS4_42771
if 
  is_char_dead 204@
goto_if_false @DRUGS4_42771
stop_playback_recorded_car 190@
317@ = 3

:DRUGS4_42771
if 
  301@ == 1
goto_if_false @DRUGS4_42887
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_42855
if 
  not is_playback_going_on_for_car 190@
goto_if_false @DRUGS4_42848
mark_car_as_no_longer_needed 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
remove_blip 289@
301@ = 2

:DRUGS4_42848
goto @DRUGS4_42887

:DRUGS4_42855
stop_playback_recorded_car 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
mark_car_as_no_longer_needed 190@
remove_blip 289@
301@ = 2

:DRUGS4_42887
if 
  302@ == 1
goto_if_false @DRUGS4_42948
if 
  is_car_dead 191@
goto_if_false @DRUGS4_42948
mark_char_as_no_longer_needed 207@
mark_char_as_no_longer_needed 208@
mark_car_as_no_longer_needed 191@
remove_blip 290@
302@ = 2

:DRUGS4_42948
if 
  319@ == 1
goto_if_false @DRUGS4_43100
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_43100
if 
  not is_char_dead 205@
goto_if_false @DRUGS4_43005
goto @DRUGS4_43100

:DRUGS4_43005
if 
  not is_char_dead 206@
goto_if_false @DRUGS4_43088
if 
  is_char_in_car 206@ {vehicle} 192@
goto_if_false @DRUGS4_43081
284@ = get_driver_of_car 192@
if 
  284@ == -1
goto_if_false @DRUGS4_43081
task_shuffle_to_next_car_seat 206@ {vehicle} 192@
319@ = 2

:DRUGS4_43081
goto @DRUGS4_43100

:DRUGS4_43088
stop_playback_recorded_car 192@
319@ = 2

:DRUGS4_43100
if 
  319@ == 2
goto_if_false @DRUGS4_43146
if 
  is_char_dead 206@
goto_if_false @DRUGS4_43146
stop_playback_recorded_car 192@
319@ = 3

:DRUGS4_43146
if 
  303@ == 1
goto_if_false @DRUGS4_43262
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_43230
if 
  not is_playback_going_on_for_car 192@
goto_if_false @DRUGS4_43223
mark_car_as_no_longer_needed 192@
mark_char_as_no_longer_needed 205@
mark_char_as_no_longer_needed 206@
remove_blip 291@
303@ = 2

:DRUGS4_43223
goto @DRUGS4_43262

:DRUGS4_43230
stop_playback_recorded_car 192@
mark_char_as_no_longer_needed 205@
mark_char_as_no_longer_needed 206@
mark_car_as_no_longer_needed 192@
remove_blip 291@
303@ = 2

:DRUGS4_43262
if 
  143@ == 0
goto_if_false @DRUGS4_43318
if 
  is_car_dead 40@
goto_if_false @DRUGS4_43318
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
143@ = 1

:DRUGS4_43318
if 
  locate_char_any_means_2d $scplayer {x} 2555.8501 {y} -1257.4301 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_43438
326@ = 2
do_fade 100 {direction} Fade.Out

:DRUGS4_43369
if 
  get_fading_status 
goto_if_false @DRUGS4_43393
wait 0
goto @DRUGS4_43369

:DRUGS4_43393
set_player_control $player1 {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_43431
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_43431
295@ = 2

:DRUGS4_43438
if 
  326@ == 1
goto_if_false @DRUGS4_44956
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_43528
if 
  179@ == 0
goto_if_false @DRUGS4_43528
set_lvar_int_to_constant 106@ = 8218
set_lvar_text_label 107@s = 'FIN1_KF'
gosub @DRUGS4_66510

:DRUGS4_43528
if 
  178@ == 1
goto_if_false @DRUGS4_43593
if 
  179@ == 0
goto_if_false @DRUGS4_43593
set_lvar_int_to_constant 106@ = 8246
set_lvar_text_label 107@s = 'FIN1_KG'
gosub @DRUGS4_66510

:DRUGS4_43593
if 
  178@ == 2
goto_if_false @DRUGS4_43658
if 
  179@ == 0
goto_if_false @DRUGS4_43658
set_lvar_int_to_constant 106@ = 8219
set_lvar_text_label 107@s = 'FIN1_KH'
gosub @DRUGS4_66510

:DRUGS4_43658
if 
  178@ == 3
goto_if_false @DRUGS4_43723
if 
  179@ == 0
goto_if_false @DRUGS4_43723
set_lvar_int_to_constant 106@ = 8247
set_lvar_text_label 107@s = 'FIN1_KI'
gosub @DRUGS4_66510

:DRUGS4_43723
if 
  178@ == 4
goto_if_false @DRUGS4_43788
if 
  179@ == 0
goto_if_false @DRUGS4_43788
set_lvar_int_to_constant 106@ = 8220
set_lvar_text_label 107@s = 'FIN1_KJ'
gosub @DRUGS4_66510

:DRUGS4_43788
if 
  178@ == 5
goto_if_false @DRUGS4_43853
if 
  179@ == 0
goto_if_false @DRUGS4_43853
set_lvar_int_to_constant 106@ = 8301
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66510

:DRUGS4_43853
if 
  178@ == 6
goto_if_false @DRUGS4_43936
if 
  179@ == 0
goto_if_false @DRUGS4_43936
if 
  327@ == 1
goto_if_false @DRUGS4_43936
set_lvar_int_to_constant 106@ = 8278
set_lvar_text_label 107@s = 'FIN1_KM'
gosub @DRUGS4_66510

:DRUGS4_43936
if 
  178@ == 7
goto_if_false @DRUGS4_44001
if 
  179@ == 0
goto_if_false @DRUGS4_44001
set_lvar_int_to_constant 106@ = 8222
set_lvar_text_label 107@s = 'FIN1_KL'
gosub @DRUGS4_66510

:DRUGS4_44001
if 
  178@ == 8
goto_if_false @DRUGS4_44089
if 
  179@ == 0
goto_if_false @DRUGS4_44089
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_44060
set_searchlight_clip_if_colliding 58@ {state} True

:DRUGS4_44060
set_lvar_int_to_constant 106@ = 8248
set_lvar_text_label 107@s = 'FIN1_KO'
gosub @DRUGS4_66510

:DRUGS4_44089
if 
  178@ == 9
goto_if_false @DRUGS4_44154
if 
  179@ == 0
goto_if_false @DRUGS4_44154
set_lvar_int_to_constant 106@ = 8249
set_lvar_text_label 107@s = 'FIN1_KP'
gosub @DRUGS4_66510

:DRUGS4_44154
if 
  327@ == 1
goto_if_false @DRUGS4_44217
if 
  locate_char_any_means_2d $scplayer {x} 2372.3501 {y} -1283.33 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_44217
327@ = 2

:DRUGS4_44217
if 
  178@ == 10
goto_if_false @DRUGS4_44300
if 
  327@ == 2
goto_if_false @DRUGS4_44300
if 
  179@ == 0
goto_if_false @DRUGS4_44300
set_lvar_int_to_constant 106@ = 8250
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66510

:DRUGS4_44300
if 
  178@ == 11
goto_if_false @DRUGS4_44388
if 
  179@ == 0
goto_if_false @DRUGS4_44388
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_44359
set_searchlight_clip_if_colliding 58@ {state} False

:DRUGS4_44359
set_lvar_int_to_constant 106@ = 8304
set_lvar_text_label 107@s = 'FIN1_KT'
gosub @DRUGS4_66510

:DRUGS4_44388
if 
  178@ == 12
goto_if_false @DRUGS4_44453
if 
  179@ == 0
goto_if_false @DRUGS4_44453
set_lvar_int_to_constant 106@ = 8251
set_lvar_text_label 107@s = 'FIN1_KU'
gosub @DRUGS4_66510

:DRUGS4_44453
if 
  178@ == 13
goto_if_false @DRUGS4_44518
if 
  179@ == 0
goto_if_false @DRUGS4_44518
set_lvar_int_to_constant 106@ = 8337
set_lvar_text_label 107@s = 'FIN1_CB'
gosub @DRUGS4_66510

:DRUGS4_44518
if 
  327@ == 2
goto_if_false @DRUGS4_44581
if 
  locate_char_any_means_2d $scplayer {x} 2424.4199 {y} -1446.5699 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_44581
327@ = 3

:DRUGS4_44581
if 
  178@ == 14
goto_if_false @DRUGS4_44664
if 
  327@ == 3
goto_if_false @DRUGS4_44664
if 
  179@ == 0
goto_if_false @DRUGS4_44664
set_lvar_int_to_constant 106@ = 8318
set_lvar_text_label 107@s = 'FIN1_LD'
gosub @DRUGS4_66510

:DRUGS4_44664
if 
  327@ == 3
goto_if_false @DRUGS4_44727
if 
  locate_char_any_means_2d $scplayer {x} 2453.78 {y} -1333.3 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_44727
327@ = 4

:DRUGS4_44727
if 
  178@ == 15
goto_if_false @DRUGS4_44810
if 
  327@ == 3
goto_if_false @DRUGS4_44810
if 
  179@ == 0
goto_if_false @DRUGS4_44810
set_lvar_int_to_constant 106@ = 8302
set_lvar_text_label 107@s = 'FIN1_ZD'
gosub @DRUGS4_66510

:DRUGS4_44810
if 
  327@ == 4
goto_if_false @DRUGS4_44873
if 
  locate_char_any_means_2d $scplayer {x} 2454.1001 {y} -1313.02 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_44873
327@ = 5

:DRUGS4_44873
if 
  178@ == 16
goto_if_false @DRUGS4_44956
if 
  179@ == 0
goto_if_false @DRUGS4_44956
if 
  327@ == 5
goto_if_false @DRUGS4_44956
set_lvar_int_to_constant 106@ = 8280
set_lvar_text_label 107@s = 'FIN1_KX'
gosub @DRUGS4_66510

:DRUGS4_44956
if 
  295@ == 2
goto_if_false @DRUGS4_47214
set_player_control $player1 {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_45012
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_45012
switch_widescreen True
set_near_clip 0.1
stop_playback_recorded_car 186@
delete_car 186@
remove_blip 285@
stop_playback_recorded_car 187@
delete_car 187@
remove_blip 286@
stop_playback_recorded_car 188@
delete_car 188@
remove_blip 287@
stop_playback_recorded_car 189@
delete_car 189@
remove_blip 288@
stop_playback_recorded_car 190@
delete_car 190@
remove_blip 289@
delete_car 191@
remove_blip 290@
stop_playback_recorded_car 192@
delete_car 192@
remove_blip 291@
delete_char 195@
delete_char 196@
delete_char 197@
delete_char 198@
delete_char 199@
delete_char 200@
delete_char 201@
delete_char 202@
delete_char 203@
delete_char 204@
delete_char 205@
delete_char 206@
delete_char 207@
delete_char 208@
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
request_car_recording 331
request_model #DYN_SCAFFOLD_4B
request_car_recording 339
request_animation "MD_CHASE"
request_car_recording 373
request_car_recording 374
request_car_recording 375
request_car_recording 376
request_car_recording 377
request_car_recording 371
request_car_recording 372
request_car_recording 378
request_car_recording 380
request_car_recording 381
request_model #MUNCH_DONUT
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_model #CHOPCOP_ARMR
request_model #CHOPCOP_LEGR
request_model #CHOPCOP_HEAD
request_model #CHOPCOP_TORSO
request_model #WD_FENCE_ANIM
request_model 284
request_model 523
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8319
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8320
request_model #MD_POSTER
load_all_models_now 

:DRUGS4_45475
if or
  not has_car_recording_been_loaded 331
  not has_model_loaded #DYN_SCAFFOLD_4B
  not has_car_recording_been_loaded 339
  not has_animation_loaded "MD_CHASE"
  not has_model_loaded 284
  not has_model_loaded 523
goto_if_false @DRUGS4_45534
wait 0
goto @DRUGS4_45475

:DRUGS4_45534
if or
  not has_car_recording_been_loaded 373
  not has_car_recording_been_loaded 374
  not has_car_recording_been_loaded 375
  not has_car_recording_been_loaded 376
  not has_car_recording_been_loaded 377
goto_if_false @DRUGS4_45581
wait 0
goto @DRUGS4_45534

:DRUGS4_45581
if or
  not has_car_recording_been_loaded 371
  not has_car_recording_been_loaded 372
  not has_car_recording_been_loaded 378
  not has_car_recording_been_loaded 380
goto_if_false @DRUGS4_45623
wait 0
goto @DRUGS4_45581

:DRUGS4_45623
if or
  not has_model_loaded #MUNCH_DONUT
  not has_car_recording_been_loaded 381
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @DRUGS4_45663
wait 0
goto @DRUGS4_45623

:DRUGS4_45663
if or
  not has_model_loaded #CHOPCOP_ARMR
  not has_model_loaded #CHOPCOP_LEGR
  not has_model_loaded #CHOPCOP_HEAD
  not has_model_loaded #WD_FENCE_ANIM
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_45713
wait 0
goto @DRUGS4_45663

:DRUGS4_45713
212@ = create_car 523 {x} 2571.3899 {y} -1248.083 {z} 45.2
set_petrol_tank_weakpoint 212@ {state} False
set_car_heading 212@ {heading} 181.089
213@ = create_car 523 {x} 2569.95 {y} -1248.083 {z} 45.2
set_petrol_tank_weakpoint 213@ {state} False
set_car_heading 213@ {heading} 181.089
214@ = create_car 523 {x} 2586.3391 {y} -1351.697 {z} 35.174
set_petrol_tank_weakpoint 214@ {state} False
set_car_heading 214@ {heading} 87.221
force_car_lights 214@ {lightMode} CarLights.ForceOn
force_car_lights 212@ {lightMode} CarLights.ForceOff
force_car_lights 213@ {lightMode} CarLights.ForceOff
216@ = create_char_inside_car 212@ {pedType} PedType.Mission1 {modelId} 284
set_char_decision_maker 216@ {handleOrTemplate} 55@
217@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 284
set_char_decision_maker 217@ {handleOrTemplate} 55@
186@ = create_car 596 {x} 2505.7361 {y} -1256.7419 {z} 33.64
set_petrol_tank_weakpoint 186@ {state} False
set_car_heading 186@ {heading} 268.42
195@ = create_char_inside_car 186@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 195@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 195@ {state} False
set_char_can_be_shot_in_vehicle 195@ {state} False
set_char_only_damaged_by_player 195@ {state} True
230@ = create_object #MUNCH_DONUT {x} 2570.5901 {y} -1247.66 {z} 44.88
set_fixed_camera_position 2570.636 {y} -1245.9399 {z} 45.3765 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2570.625 {y} -1246.931 {z} 45.2422 {switchStyle} SwitchType.JumpCut
do_fade 250 {direction} Fade.In
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_46127
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_46115
stop_playback_recorded_car $sweet_car
car_set_idle $sweet_car
freeze_car_position $sweet_car {state} True
goto @DRUGS4_46127

:DRUGS4_46115
car_set_idle $sweet_car
freeze_car_position $sweet_car {state} True

:DRUGS4_46127
237@ = create_fx_system "CARWASHSPRAY" {x} 2451.04 {y} -1460.79 {z} 23.0 {ignoreBoundingChecks} True
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_46248
detach_char_from_car $scplayer
set_char_coordinates $scplayer {x} 2585.74 {y} -1264.16 {z} 46.2
$big_smoke = create_char_inside_car $sweet_car {pedType} PedType.Special {modelId} 291
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Special {modelId} 292 {seat} SeatId.BikeRear
set_char_decision_maker $ryder {handleOrTemplate} 55@

:DRUGS4_46248
218@ = create_char PedType.Mission1 {modelId} 284 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 218@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 218@ {state} False
set_char_only_damaged_by_player 218@ {state} True
set_car_proofs 214@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_JMP_F" {animationFile} "MD_CHASE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 218@ {vehicle} 214@ {xOffset} 0.0 {yOffset} -0.401 {zOffset} 0.47 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_health 218@ {health} 1000
308@ = 1
222@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 40.3
set_object_heading 222@ {heading} 170.0
223@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 42.5
set_object_heading 223@ {heading} 170.0
224@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 44.7
set_object_heading 224@ {heading} 170.0
225@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 40.3
set_object_heading 225@ {heading} 170.0
226@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 42.5
set_object_heading 226@ {heading} 170.0
227@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 44.7
set_object_heading 227@ {heading} 170.0
305@ = 1
187@ = create_car 596 {x} 2520.49 {y} -1485.04 {z} 22.84
set_petrol_tank_weakpoint 187@ {state} False
set_car_heading 187@ {heading} 1.33
set_car_health 187@ {health} 750
set_car_only_damaged_by_player 187@ {state} True
196@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 196@ {handleOrTemplate} 55@
set_char_health 196@ {health} 100
set_char_only_damaged_by_player 196@ {state} True
197@ = create_char_as_passenger 187@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 197@ {handleOrTemplate} 55@
set_char_health 197@ {health} 100
set_char_only_damaged_by_player 197@ {state} True
give_weapon_to_char 197@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 197@ {state} False
car_set_idle 187@
188@ = create_car 596 {x} 2532.98 {y} -1502.3719 {z} 23.67
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 266.9
set_car_health 188@ {health} 600
set_car_only_damaged_by_player 188@ {state} True
198@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 198@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 198@ {state} False
set_char_health 198@ {health} 100
set_char_only_damaged_by_player 198@ {state} True
199@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 199@ {handleOrTemplate} 55@
set_char_health 199@ {health} 100
set_char_only_damaged_by_player 199@ {state} True
give_weapon_to_char 199@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 199@ {state} False
car_set_idle 188@
193@ = create_car 596 {x} 2510.967 {y} -1448.1379 {z} 28.398
set_petrol_tank_weakpoint 193@ {state} False
set_car_heading 193@ {heading} 72.49
set_car_health 193@ {health} 325
set_car_only_damaged_by_player 193@ {state} True
201@ = create_char_inside_car 193@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 201@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 201@ {state} False
set_char_only_damaged_by_player 201@ {state} True
202@ = create_char_as_passenger 193@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 202@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 202@ {state} True
give_weapon_to_char 202@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 202@ {state} False
car_set_idle 193@
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47207
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_47207
if 
  not is_car_dead 213@
goto_if_false @DRUGS4_47207
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_47207
freeze_car_position $sweet_car {state} False
start_playback_recorded_car $sweet_car {path} 331
start_playback_recorded_car 186@ {path} 339
start_playback_recorded_car 213@ {path} 371
start_playback_recorded_car 214@ {path} 372
switch_car_siren 214@ {state} True
308@ = 2
285@ = add_blip_for_car 186@
change_blip_display 285@ {display} BlipDisplay.BlipOnly
297@ = 1
switch_car_siren 186@ {state} True
TIMERA = 0

:DRUGS4_47207
295@ = 3

:DRUGS4_47214
if 
  295@ == 3
goto_if_false @DRUGS4_47329
if 
  TIMERA > 1100
goto_if_false @DRUGS4_47329
if 
  does_object_exist 230@
goto_if_false @DRUGS4_47302
play_object_anim 230@ {animationName} "DONUTDROP" {animationFile} "MD_CHASE" {frameDelta} 4.0 {lockF} False {loop} True

:DRUGS4_47302
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_LE' {time} 2250 {flag} 1
295@ = 4

:DRUGS4_47329
if 
  295@ == 4
goto_if_false @DRUGS4_47506
if 
  TIMERA > 3800
goto_if_false @DRUGS4_47506
if 
  not is_car_dead 212@
goto_if_false @DRUGS4_47506
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_LF' {time} 2000 {flag} 1
car_goto_coordinates 212@ {x} 2604.02 {y} -1256.38 {z} 48.84
set_car_cruise_speed 212@ {maxSpeed} 25.0
set_car_driving_style 212@ {drivingStyle} DrivingMode.AvoidCars
if 
  not is_car_dead 212@
goto_if_false @DRUGS4_47469
force_car_lights 212@ {lightMode} CarLights.ForceOn
switch_car_siren 212@ {state} True

:DRUGS4_47469
if 
  not is_car_dead 213@
goto_if_false @DRUGS4_47499
force_car_lights 213@ {lightMode} CarLights.ForceOn
switch_car_siren 213@ {state} True

:DRUGS4_47499
295@ = 5

:DRUGS4_47506
if 
  295@ == 5
goto_if_false @DRUGS4_47611
if 
  TIMERA > 4500
goto_if_false @DRUGS4_47611
set_fixed_camera_position 2569.7429 {y} -1287.646 {z} 46.8949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2569.825 {y} -1286.652 {z} 46.8238 {switchStyle} SwitchType.JumpCut
set_char_heading $scplayer {heading} 180.0
295@ = 6

:DRUGS4_47611
if 
  295@ == 6
goto_if_false @DRUGS4_47912
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47912
if or
  locate_car_2d $sweet_car {x} 2569.7429 {y} -1287.646 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
  TIMERB > 50800
goto_if_false @DRUGS4_47912
delete_car 212@
delete_char 216@
delete_object 230@
delete_char $big_smoke
delete_char $ryder
unload_special_character 2
unload_special_character 3
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47789
attach_char_to_car $scplayer {vehicle} $sweet_car {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.8 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Ak47
set_heading_for_attached_player $player1 {heading} 75.0 {headingRange} 75.0

:DRUGS4_47789
restore_camera 
switch_widescreen False
set_player_control $player1 {state} True
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 217@
goto_if_false @DRUGS4_47870
set_char_can_be_knocked_off_bike 217@ {stayOnBike} 3

:DRUGS4_47870
328@ = 3
327@ = 0
178@ = 0
179@ = 0
296@ = 1
295@ = 7

:DRUGS4_47912
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_49998
if 
  295@ > 2
goto_if_false @DRUGS4_49998
if 
  308@ == 2
goto_if_false @DRUGS4_48087
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48087
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_JMP_F"
goto_if_false @DRUGS4_48087
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_JMP_F"
if 
  228@ > 0.0
goto_if_false @DRUGS4_48087
set_char_anim_speed 218@ {animName} "MD_BIKE_JMP_F" {animSpeed} 0.0
308@ = 3

:DRUGS4_48087
if 
  308@ == 3
goto_if_false @DRUGS4_48224
if 
  TIMERA > 12600
goto_if_false @DRUGS4_48224
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48224
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_JMP_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_anim_speed 218@ {animName} "MD_BIKE_JMP_F" {animSpeed} 1.0
327@ = 1
308@ = 4

:DRUGS4_48224
if 
  308@ == 4
goto_if_false @DRUGS4_48618
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48618
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48618
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_JMP_F"
goto_if_false @DRUGS4_48618
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_JMP_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_48618
if 
  309@ == 1
goto_if_false @DRUGS4_48430
task_play_anim 218@ {animationName} "MD_BIKE_LND_DIE_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 100
goto @DRUGS4_48489

:DRUGS4_48430
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
308@ = 5

:DRUGS4_48489
wait 0
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48562
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48562
detach_char_from_car 218@
attach_char_to_car 218@ {vehicle} $sweet_car {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:DRUGS4_48562
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_48618
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} -3.0 {y} -2.0 {z} 0.2003
mark_car_as_no_longer_needed 214@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 217@

:DRUGS4_48618
if 
  308@ == 5
goto_if_false @DRUGS4_48797
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48797
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48797
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_F"
goto_if_false @DRUGS4_48797
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_48797
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_PUNCH_F" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
308@ = 6

:DRUGS4_48797
if 
  308@ > 0
goto_if_false @DRUGS4_48881
if 
  5 > 308@
goto_if_false @DRUGS4_48881
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_48881
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48881
221@ = get_car_heading 214@
set_char_heading 218@ {heading} 221@

:DRUGS4_48881
if 
  308@ > 4
goto_if_false @DRUGS4_48949
if 
  101 > 308@
goto_if_false @DRUGS4_48949
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48949
221@ = get_car_heading $sweet_car
set_char_heading 218@ {heading} 221@

:DRUGS4_48949
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49104
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_PUNCH_F"
goto_if_false @DRUGS4_49104
229@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_PUNCH_F"
if 
  229@ > 0.2
goto_if_false @DRUGS4_49097
if 
  308@ == 6
goto_if_false @DRUGS4_49090
do_camera_bump -2.2 {yOffset} 1.7
damage_char $scplayer {amount} 10 {damageArmour} True
308@ = 7

:DRUGS4_49090
goto @DRUGS4_49104

:DRUGS4_49097
308@ = 6

:DRUGS4_49104
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49169
232@ = get_char_health 218@
if 
  901 > 232@
goto_if_false @DRUGS4_49169
set_char_proofs 218@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
309@ = 1

:DRUGS4_49169
if 
  308@ == 100
goto_if_false @DRUGS4_49390
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_DIE_F"
goto_if_false @DRUGS4_49390
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_DIE_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49390
detach_char_from_car 218@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
set_char_coordinates 218@ {x} $player_x {y} $player_y {z} $player_z
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_ROLL_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 101

:DRUGS4_49390
if 
  308@ == 101
goto_if_false @DRUGS4_49505
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_ROLL_F"
goto_if_false @DRUGS4_49505
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_ROLL_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49505
remove_char_elegantly 218@
308@ = 102

:DRUGS4_49505
if 
  308@ > 4
goto_if_false @DRUGS4_49575
if 
  8 > 308@
goto_if_false @DRUGS4_49575
if or
  309@ == 1
  TIMERA > 15000
goto_if_false @DRUGS4_49575
308@ = 200

:DRUGS4_49575
if 
  308@ == 200
goto_if_false @DRUGS4_49664
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49664
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_SHOT_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 201

:DRUGS4_49664
if 
  308@ == 201
goto_if_false @DRUGS4_49881
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_SHOT_F"
goto_if_false @DRUGS4_49881
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_SHOT_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49881
detach_char_from_car 218@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
set_char_coordinates 218@ {x} $player_x {y} $player_y {z} $player_z
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_ROLL_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 202

:DRUGS4_49881
if 
  308@ == 201
goto_if_false @DRUGS4_49998
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_ROLL_F"
goto_if_false @DRUGS4_49998
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_ROLL_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49998
delete_char 218@
308@ = 202

:DRUGS4_49998
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_61915
if 
  295@ == 7
goto_if_false @DRUGS4_61915
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_50104
if 
  179@ == 0
goto_if_false @DRUGS4_50104
set_lvar_int_to_constant 106@ = 8315
set_lvar_text_label 107@s = 'FIN1_LA'
gosub @DRUGS4_66510

:DRUGS4_50104
if 
  328@ == 0
goto_if_false @DRUGS4_50185
if 
  TIMERB > 53000
goto_if_false @DRUGS4_50185
if 
  not is_char_dead 217@
goto_if_false @DRUGS4_50178
task_die 217@
328@ = 1
goto @DRUGS4_50185

:DRUGS4_50178
328@ = 1

:DRUGS4_50185
if 
  328@ == 3
goto_if_false @DRUGS4_50266
if 
  TIMERB > 58900
goto_if_false @DRUGS4_50266
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_50259
explode_car 186@
328@ = 4
goto @DRUGS4_50266

:DRUGS4_50259
328@ = 4

:DRUGS4_50266
if 
  328@ == 4
goto_if_false @DRUGS4_50347
if 
  TIMERB > 85200
goto_if_false @DRUGS4_50347
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_50340
explode_car 187@
328@ = 5
goto @DRUGS4_50347

:DRUGS4_50340
328@ = 5

:DRUGS4_50347
if 
  327@ == 1
goto_if_false @DRUGS4_50430
if 
  178@ == 1
goto_if_false @DRUGS4_50430
if 
  179@ == 0
goto_if_false @DRUGS4_50430
set_lvar_int_to_constant 106@ = 8335
set_lvar_text_label 107@s = 'FIN1_BK'
gosub @DRUGS4_66510

:DRUGS4_50430
if 
  178@ == 2
goto_if_false @DRUGS4_50495
if 
  179@ == 0
goto_if_false @DRUGS4_50495
set_lvar_int_to_constant 106@ = 8221
set_lvar_text_label 107@s = 'FIN1_KK'
gosub @DRUGS4_66510

:DRUGS4_50495
if 
  178@ == 3
goto_if_false @DRUGS4_50560
if 
  179@ == 0
goto_if_false @DRUGS4_50560
set_lvar_int_to_constant 106@ = 8314
set_lvar_text_label 107@s = 'FIN1_KR'
gosub @DRUGS4_66510

:DRUGS4_50560
if 
  327@ == 1
goto_if_false @DRUGS4_50623
if 
  locate_char_any_means_2d $scplayer {x} 2545.1499 {y} -1460.3 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_50623
327@ = 2

:DRUGS4_50623
if 
  327@ == 2
goto_if_false @DRUGS4_50706
if 
  178@ == 4
goto_if_false @DRUGS4_50706
if 
  179@ == 0
goto_if_false @DRUGS4_50706
set_lvar_int_to_constant 106@ = 8300
set_lvar_text_label 107@s = 'FIN1_ZB'
gosub @DRUGS4_66510

:DRUGS4_50706
if 
  178@ == 5
goto_if_false @DRUGS4_50771
if 
  179@ == 0
goto_if_false @DRUGS4_50771
set_lvar_int_to_constant 106@ = 8289
set_lvar_text_label 107@s = 'FIN1_LL'
gosub @DRUGS4_66510

:DRUGS4_50771
if 
  178@ == 6
goto_if_false @DRUGS4_50836
if 
  179@ == 0
goto_if_false @DRUGS4_50836
set_lvar_int_to_constant 106@ = 8282
set_lvar_text_label 107@s = 'FIN1_LI'
gosub @DRUGS4_66510

:DRUGS4_50836
if 
  327@ == 2
goto_if_false @DRUGS4_50899
if 
  locate_char_any_means_2d $scplayer {x} 2451.9199 {y} -1461.5 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS4_50899
327@ = 4

:DRUGS4_50899
if 
  327@ == 4
goto_if_false @DRUGS4_50982
if 
  178@ == 7
goto_if_false @DRUGS4_50982
if 
  179@ == 0
goto_if_false @DRUGS4_50982
set_lvar_int_to_constant 106@ = 8224
set_lvar_text_label 107@s = 'FIN1_LP'
gosub @DRUGS4_66510

:DRUGS4_50982
if 
  178@ == 8
goto_if_false @DRUGS4_51047
if 
  179@ == 0
goto_if_false @DRUGS4_51047
set_lvar_int_to_constant 106@ = 8230
set_lvar_text_label 107@s = 'FIN1_MK'
gosub @DRUGS4_66510

:DRUGS4_51047
if 
  178@ == 9
goto_if_false @DRUGS4_51112
if 
  179@ == 0
goto_if_false @DRUGS4_51112
set_lvar_int_to_constant 106@ = 8288
set_lvar_text_label 107@s = 'FIN1_LJ'
gosub @DRUGS4_66510

:DRUGS4_51112
if 
  327@ == 4
goto_if_false @DRUGS4_51175
if 
  locate_char_any_means_2d $scplayer {x} 2344.98 {y} -1382.22 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @DRUGS4_51175
327@ = 5

:DRUGS4_51175
if 
  327@ == 5
goto_if_false @DRUGS4_51258
if 
  178@ == 10
goto_if_false @DRUGS4_51258
if 
  179@ == 0
goto_if_false @DRUGS4_51258
set_lvar_int_to_constant 106@ = 8250
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66510

:DRUGS4_51258
if 
  327@ == 5
goto_if_false @DRUGS4_51321
if 
  locate_char_any_means_2d $scplayer {x} 2305.51 {y} -1370.01 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @DRUGS4_51321
327@ = 6

:DRUGS4_51321
if 
  178@ == 11
goto_if_false @DRUGS4_51386
if 
  179@ == 0
goto_if_false @DRUGS4_51386
set_lvar_int_to_constant 106@ = 8225
set_lvar_text_label 107@s = 'FIN1_LQ'
gosub @DRUGS4_66510

:DRUGS4_51386
if 
  178@ == 12
goto_if_false @DRUGS4_51451
if 
  179@ == 0
goto_if_false @DRUGS4_51451
set_lvar_int_to_constant 106@ = 8290
set_lvar_text_label 107@s = 'FIN1_LT'
gosub @DRUGS4_66510

:DRUGS4_51451
if 
  178@ == 13
goto_if_false @DRUGS4_51516
if 
  179@ == 0
goto_if_false @DRUGS4_51516
set_lvar_int_to_constant 106@ = 8292
set_lvar_text_label 107@s = 'FIN1_LV'
gosub @DRUGS4_66510

:DRUGS4_51516
if 
  327@ == 7
goto_if_false @DRUGS4_51599
if 
  178@ == 14
goto_if_false @DRUGS4_51599
if 
  179@ == 0
goto_if_false @DRUGS4_51599
set_lvar_int_to_constant 106@ = 8336
set_lvar_text_label 107@s = 'FIN1_BL'
gosub @DRUGS4_66510

:DRUGS4_51599
if 
  178@ == 15
goto_if_false @DRUGS4_51664
if 
  179@ == 0
goto_if_false @DRUGS4_51664
set_lvar_int_to_constant 106@ = 8254
set_lvar_text_label 107@s = 'FIN1_LW'
gosub @DRUGS4_66510

:DRUGS4_51664
if 
  178@ == 16
goto_if_false @DRUGS4_51729
if 
  179@ == 0
goto_if_false @DRUGS4_51729
set_lvar_int_to_constant 106@ = 8255
set_lvar_text_label 107@s = 'FIN1_LX'
gosub @DRUGS4_66510

:DRUGS4_51729
if 
  178@ == 17
goto_if_false @DRUGS4_51794
if 
  179@ == 0
goto_if_false @DRUGS4_51794
set_lvar_int_to_constant 106@ = 8299
set_lvar_text_label 107@s = 'FIN1_ZA'
gosub @DRUGS4_66510

:DRUGS4_51794
if 
  178@ == 18
goto_if_false @DRUGS4_51859
if 
  179@ == 0
goto_if_false @DRUGS4_51859
set_lvar_int_to_constant 106@ = 8301
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66510

:DRUGS4_51859
if 
  327@ == 8
goto_if_false @DRUGS4_51942
if 
  179@ == 0
goto_if_false @DRUGS4_51942
if 
  178@ == 20
goto_if_false @DRUGS4_51942
set_lvar_int_to_constant 106@ = 8293
set_lvar_text_label 107@s = 'FIN1_MA'
gosub @DRUGS4_66510

:DRUGS4_51942
if 
  179@ == 0
goto_if_false @DRUGS4_52007
if 
  178@ == 21
goto_if_false @DRUGS4_52007
set_lvar_int_to_constant 106@ = 8228
set_lvar_text_label 107@s = 'FIN1_MB'
gosub @DRUGS4_66510

:DRUGS4_52007
if 
  179@ == 0
goto_if_false @DRUGS4_52072
if 
  178@ == 22
goto_if_false @DRUGS4_52072
set_lvar_int_to_constant 106@ = 8294
set_lvar_text_label 107@s = 'FIN1_MD'
gosub @DRUGS4_66510

:DRUGS4_52072
if 
  179@ == 0
goto_if_false @DRUGS4_52137
if 
  178@ == 23
goto_if_false @DRUGS4_52137
set_lvar_int_to_constant 106@ = 8283
set_lvar_text_label 107@s = 'FIN1_ME'
gosub @DRUGS4_66510

:DRUGS4_52137
if 
  179@ == 0
goto_if_false @DRUGS4_52202
if 
  178@ == 24
goto_if_false @DRUGS4_52202
set_lvar_int_to_constant 106@ = 8200
set_lvar_text_label 107@s = 'FIN1_EA'
gosub @DRUGS4_66510

:DRUGS4_52202
if 
  179@ == 0
goto_if_false @DRUGS4_52267
if 
  178@ == 25
goto_if_false @DRUGS4_52267
set_lvar_int_to_constant 106@ = 8284
set_lvar_text_label 107@s = 'FIN1_MH'
gosub @DRUGS4_66510

:DRUGS4_52267
if 
  179@ == 0
goto_if_false @DRUGS4_52332
if 
  178@ == 26
goto_if_false @DRUGS4_52332
set_lvar_int_to_constant 106@ = 8295
set_lvar_text_label 107@s = 'FIN1_MI'
gosub @DRUGS4_66510

:DRUGS4_52332
if 
  179@ == 0
goto_if_false @DRUGS4_52397
if 
  178@ == 27
goto_if_false @DRUGS4_52397
set_lvar_int_to_constant 106@ = 8260
set_lvar_text_label 107@s = 'FIN1_MT'
gosub @DRUGS4_66510

:DRUGS4_52397
if 
  179@ == 0
goto_if_false @DRUGS4_52462
if 
  178@ == 28
goto_if_false @DRUGS4_52462
set_lvar_int_to_constant 106@ = 8231
set_lvar_text_label 107@s = 'FIN1_ML'
gosub @DRUGS4_66510

:DRUGS4_52462
if 
  179@ == 0
goto_if_false @DRUGS4_52527
if 
  178@ == 29
goto_if_false @DRUGS4_52527
set_lvar_int_to_constant 106@ = 8285
set_lvar_text_label 107@s = 'FIN1_MR'
gosub @DRUGS4_66510

:DRUGS4_52527
if 
  179@ == 0
goto_if_false @DRUGS4_52592
if 
  178@ == 30
goto_if_false @DRUGS4_52592
set_lvar_int_to_constant 106@ = 8297
set_lvar_text_label 107@s = 'FIN1_MS'
gosub @DRUGS4_66510

:DRUGS4_52592
if 
  305@ == 1
goto_if_false @DRUGS4_52717
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_52717
if 
  locate_car_2d 186@ {x} 2566.1201 {y} -1322.35 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @DRUGS4_52717
if 
  does_object_exist 223@
goto_if_false @DRUGS4_52687
break_object 223@ {intensity} 1

:DRUGS4_52687
if 
  does_object_exist 224@
goto_if_false @DRUGS4_52710
break_object 224@ {intensity} 1

:DRUGS4_52710
305@ = 2

:DRUGS4_52717
if 
  296@ == 1
goto_if_false @DRUGS4_53222
if 
  locate_car_2d $sweet_car {x} 2564.6799 {y} -1442.47 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_53222
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_52833
start_playback_recorded_car 187@ {path} 373
286@ = add_blip_for_car 187@
change_blip_display 286@ {display} BlipDisplay.BlipOnly
switch_car_siren 187@ {state} True
298@ = 1
314@ = 1

:DRUGS4_52833
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_52893
start_playback_recorded_car 188@ {path} 374
287@ = add_blip_for_car 188@
change_blip_display 287@ {display} BlipDisplay.BlipOnly
switch_car_siren 188@ {state} True
299@ = 1
315@ = 1

:DRUGS4_52893
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_52953
start_playback_recorded_car 193@ {path} 380
292@ = add_blip_for_car 193@
change_blip_display 292@ {display} BlipDisplay.BlipOnly
switch_car_siren 193@ {state} True
304@ = 1
320@ = 1

:DRUGS4_52953
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_53005
task_drive_by 197@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_53005
if 
  not is_char_dead 199@
goto_if_false @DRUGS4_53118
if 
  293@ > 1
goto_if_false @DRUGS4_53082
task_drive_by 199@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
goto @DRUGS4_53118

:DRUGS4_53082
task_drive_by 199@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_53118
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_53170
task_drive_by 202@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_53170
play_fx_system 237@
delete_object 222@
delete_object 223@
delete_object 224@
delete_object 225@
delete_object 226@
delete_object 227@
mark_model_as_no_longer_needed #DYN_SCAFFOLD_4B
mark_model_as_no_longer_needed #MUNCH_DONUT
296@ = 2

:DRUGS4_53222
if 
  296@ == 2
goto_if_false @DRUGS4_53829
if 
  locate_car_2d $sweet_car {x} 2344.1201 {y} -1384.48 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS4_53829
215@ = create_car 523 {x} 2254.042 {y} -1308.15 {z} 23.02
set_petrol_tank_weakpoint 215@ {state} False
set_car_heading 215@ {heading} 261.999
force_car_lights 215@ {lightMode} CarLights.ForceOn
switch_car_siren 215@ {state} True
310@ = 0
219@ = create_char PedType.Mission1 {modelId} 284 {x} 0.0 {y} 0.0 {z} 0.0
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_JMP_BL" {animationFile} "MD_CHASE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 219@ {vehicle} 215@ {xOffset} 0.0 {yOffset} -0.401 {zOffset} 0.47 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_health 219@ {health} 1000
307@ = 1
set_char_decision_maker 219@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 219@ {state} False
set_char_only_damaged_by_player 219@ {state} True
set_car_only_damaged_by_player 215@ {state} True
set_car_proofs 215@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
190@ = create_car 596 {x} 2222.98 {y} -1303.52 {z} 22.654
set_petrol_tank_weakpoint 190@ {state} False
set_car_heading 190@ {heading} 269.409
set_car_health 190@ {health} 850
set_car_only_damaged_by_player 190@ {state} True
203@ = create_char_inside_car 190@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 203@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 203@ {state} False
set_char_health 203@ {health} 100
set_char_only_damaged_by_player 203@ {state} True
204@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 204@ {handleOrTemplate} 55@
set_char_health 204@ {health} 100
set_char_only_damaged_by_player 204@ {state} True
give_weapon_to_char 204@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 204@ {state} False
car_set_idle 190@
191@ = create_car 596 {x} 2250.6299 {y} -1380.995 {z} 22.65
set_petrol_tank_weakpoint 191@ {state} False
set_car_heading 191@ {heading} 268.1
set_car_health 191@ {health} 800
set_car_proofs 191@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_only_damaged_by_player 191@ {state} True
206@ = create_char_inside_car 191@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 206@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 206@ {state} False
set_char_only_damaged_by_player 206@ {state} True
207@ = create_char_as_passenger 191@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 55@
set_char_health 207@ {health} 200
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 207@ {state} False
car_set_idle 191@
296@ = 3

:DRUGS4_53829
if 
  296@ == 3
goto_if_false @DRUGS4_54009
if 
  locate_car_2d $sweet_car {x} 2304.1851 {y} -1364.7111 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS4_54009
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_53945
start_playback_recorded_car 191@ {path} 377
290@ = add_blip_for_car 191@
change_blip_display 290@ {display} BlipDisplay.BlipOnly
switch_car_siren 191@ {state} True
302@ = 1
318@ = 1

:DRUGS4_53945
if 
  not is_char_dead 207@
goto_if_false @DRUGS4_53997
task_drive_by 207@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30

:DRUGS4_53997
kill_fx_system 237@
296@ = 4

:DRUGS4_54009
if 
  296@ == 4
goto_if_false @DRUGS4_54243
if 
  locate_car_2d $sweet_car {x} 2289.8169 {y} -1319.51 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRUGS4_54243
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_54119
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_54119
start_playback_recorded_car 215@ {path} 375
TIMERA = 0
307@ = 3

:DRUGS4_54119
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_54179
start_playback_recorded_car 190@ {path} 376
289@ = add_blip_for_car 190@
change_blip_display 289@ {display} BlipDisplay.BlipOnly
switch_car_siren 190@ {state} True
301@ = 1
317@ = 1

:DRUGS4_54179
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_54231
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_54231
delete_char 218@
296@ = 5

:DRUGS4_54243
if 
  296@ == 5
goto_if_false @DRUGS4_54839
if 
  locate_car_2d $sweet_car {x} 2221.8101 {y} -1260.26 {xRadius} 5.5 {yRadius} 5.5 {drawSphere} False
goto_if_false @DRUGS4_54839
234@ = create_char PedType.Mission1 {modelId} 280 {x} 2127.116 {y} -1381.61 {z} 23.88
set_char_heading 234@ {heading} 84.93
set_char_decision_maker 234@ {handleOrTemplate} 55@
set_char_proofs 234@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 234@ {state} True
give_weapon_to_char 234@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 234@ {state} False
set_char_accuracy 234@ {accuracy} 5
set_lvar_int_to_lvar_int 118@ = 234@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
233@ = create_char PedType.Mission1 {modelId} 284 {x} 2127.0901 {y} -1382.8101 {z} 23.32
set_char_decision_maker 233@ {handleOrTemplate} 55@
set_char_proofs 233@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 233@ {state} True
give_weapon_to_char 233@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 233@ {state} False
set_char_accuracy 233@ {accuracy} 5
set_lvar_int_to_lvar_int 118@ = 233@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
235@ = create_car 596 {x} 2129.865 {y} -1386.89 {z} 22.65
set_car_heading 235@ {heading} 7.63
car_set_idle 235@
car_set_idle 235@
TIMERB = 0
if 
  311@ == 0
goto_if_false @DRUGS4_54634
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_54634
heli_goto_coords 40@ {x} 2168.0 {y} -1508.0 {z} 33.29 {minAltitude} 30.0 {maxAltitude} 30.0
311@ = 1

:DRUGS4_54634
249@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1470.354 {z} 25.328
set_object_heading 249@ {heading} 90.0
250@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1465.688 {z} 25.328
set_object_heading 250@ {heading} 90.0
251@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1461.021 {z} 25.328
set_object_heading 251@ {heading} 90.0
261@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1470.354 {z} 25.328
set_object_heading 261@ {heading} 270.0
262@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1465.688 {z} 25.328
set_object_heading 262@ {heading} 270.0
263@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1461.021 {z} 25.328
set_object_heading 263@ {heading} 270.0
296@ = 6

:DRUGS4_54839
if 
  296@ == 6
goto_if_false @DRUGS4_54926
if 
  locate_car_2d $sweet_car {x} 2081.9299 {y} -1261.6801 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS4_54926
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_54919
set_car_health 191@ {health} 249

:DRUGS4_54919
296@ = 7

:DRUGS4_54926
if 
  296@ == 7
goto_if_false @DRUGS4_55016
if 
  TIMERB > 3000
goto_if_false @DRUGS4_55016
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_55016
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_55016
freeze_char_position 234@ {state} True
freeze_char_position 233@ {state} True
296@ = 8

:DRUGS4_55016
if 
  323@ == 0
goto_if_false @DRUGS4_55143
if 
  locate_char_any_means_2d $scplayer {x} 2074.1799 {y} -1372.28 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS4_55143
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29002
set_heading_for_attached_player $player1 {heading} 174.0 {headingRange} 8.0
delete_car 215@
mark_model_as_no_longer_needed 523
set_player_fire_button $player1 {enabled} False
327@ = 8
179@ = 0
178@ = 20
323@ = 1

:DRUGS4_55143
if 
  323@ == 1
goto_if_false @DRUGS4_55293
if 
  is_attached_player_heading_achieved $player1
goto_if_false @DRUGS4_55293
set_heading_limit_for_attached_char $scplayer {heading} Facing.Forward {headingRange} 60.0
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_55220
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_55220
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
delete_object $fourdragons_door
$fourdragons_door = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $fourdragons_door {heading} 0.0
set_object_collision_damage_effect $fourdragons_door {state} False
freeze_object_position $fourdragons_door {state} True
323@ = 2

:DRUGS4_55293
if 
  296@ == 8
goto_if_false @DRUGS4_55622
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_55622
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_55622
if or
  is_char_touching_vehicle 234@ {handle} $sweet_car
  is_char_touching_vehicle 233@ {handle} $sweet_car
goto_if_false @DRUGS4_55622
322@ = 1
321@ = 1
296@ = 9
delete_car 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
40@ = create_car 497 {x} 2170.27 {y} -1523.73 {z} 24.76
44@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 280
set_heli_blades_full_speed 40@
start_playback_recorded_car 40@ {path} 381
TIMERA = 0
TIMERB = 0
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_car_only_damaged_by_player 40@ {state} True
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
240@ = create_fx_system "BLOOD_HELI" {x} 2170.74 {y} -1445.63 {z} 25.12 {ignoreBoundingChecks} True
241@ = create_fx_system "BLOOD_HELI" {x} 2170.9199 {y} -1450.5 {z} 25.0 {ignoreBoundingChecks} True
242@ = create_fx_system "BLOOD_HELI" {x} 2171.1101 {y} -1447.04 {z} 25.13 {ignoreBoundingChecks} True

:DRUGS4_55622
if 
  296@ == 9
goto_if_false @DRUGS4_57659
if 
  324@ == 0
goto_if_false @DRUGS4_55762
if 
  TIMERA > 14099
goto_if_false @DRUGS4_55762
play_object_anim 249@ {animationName} "FEN_CHOPPA_R1" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 261@ {animationName} "FEN_CHOPPA_L2" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 1

:DRUGS4_55762
if 
  324@ == 1
goto_if_false @DRUGS4_55884
if 
  TIMERA > 14899
goto_if_false @DRUGS4_55884
play_object_anim 250@ {animationName} "FEN_CHOPPA_R2" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 262@ {animationName} "FEN_CHOPPA_L3" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 2

:DRUGS4_55884
if 
  324@ == 2
goto_if_false @DRUGS4_56006
if 
  TIMERA > 15532
goto_if_false @DRUGS4_56006
play_object_anim 251@ {animationName} "FEN_CHOPPA_R3" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 263@ {animationName} "FEN_CHOPPA_L1" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 3

:DRUGS4_56006
if 
  322@ == 1
goto_if_false @DRUGS4_56131
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56131
freeze_char_position 234@ {state} False
attach_char_to_car 234@ {vehicle} $sweet_car {xOffset} -0.5 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 234@ {animationName} "CARHIT_TUMBLE" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
322@ = 2

:DRUGS4_56131
if 
  322@ == 2
goto_if_false @DRUGS4_56331
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56331
if 
  is_char_playing_anim 234@ {animationName} "CARHIT_TUMBLE"
goto_if_false @DRUGS4_56331
228@ = get_char_anim_current_time 234@ {animationName} "CARHIT_TUMBLE"
if 
  228@ > 0.7
goto_if_false @DRUGS4_56331
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_56331
detach_char_from_car 234@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 0.0
$player_y += -1.763
$player_z += -0.05
set_char_coordinates 234@ {x} $player_x {y} $player_y {z} $player_z
remove_char_elegantly 234@
322@ = 3

:DRUGS4_56331
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56363
239@ = get_car_heading $sweet_car
set_char_heading 234@ {heading} 239@

:DRUGS4_56363
if 
  321@ == 1
goto_if_false @DRUGS4_56488
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56488
freeze_char_position 233@ {state} False
attach_char_to_car 233@ {vehicle} $sweet_car {xOffset} 0.5 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 233@ {animationName} "CARHIT_HANGON" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
321@ = 2

:DRUGS4_56488
if 
  321@ == 2
goto_if_false @DRUGS4_56652
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56652
if 
  is_char_playing_anim 233@ {animationName} "CARHIT_HANGON"
goto_if_false @DRUGS4_56652
228@ = get_char_anim_current_time 233@ {animationName} "CARHIT_HANGON"
if 
  228@ == 1.0
goto_if_false @DRUGS4_56652
task_play_anim_non_interruptable 233@ {animationName} "HANGON_STUN_LOOP" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
321@ = 3

:DRUGS4_56652
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56684
238@ = get_car_heading $sweet_car
set_char_heading 233@ {heading} 238@

:DRUGS4_56684
if 
  325@ == 0
goto_if_false @DRUGS4_56772
if 
  TIMERB > 10499
goto_if_false @DRUGS4_56772
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_56772
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_56772
pause_playback_recorded_car $sweet_car
TIMERB = 0
325@ = 1

:DRUGS4_56772
if 
  325@ == 1
goto_if_false @DRUGS4_56912
if 
  TIMERB > 3000
goto_if_false @DRUGS4_56912
if 
  321@ == 3
goto_if_false @DRUGS4_56905
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56905
task_play_anim_non_interruptable 233@ {animationName} "HANGON_STUN_TURN" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
321@ = 4

:DRUGS4_56905
325@ = 2

:DRUGS4_56912
if 
  325@ == 2
goto_if_false @DRUGS4_57017
if 
  TIMERB > 2000
goto_if_false @DRUGS4_57017
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_57017
unpause_playback_recorded_car $sweet_car
delete_car 235@
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 353
delete_char 234@
325@ = 3

:DRUGS4_57017
if 
  325@ == 3
goto_if_false @DRUGS4_57192
if 
  TIMERB > 4300
goto_if_false @DRUGS4_57192
do_camera_bump 0.0 {yOffset} -1.0
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_57085
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_57085
play_and_kill_fx_system 240@
243@ = create_object #CHOPCOP_TORSO {x} 2170.3501 {y} -1445.99 {z} 25.49
set_object_dynamic 243@ {state} True
244@ = create_object #CHOPCOP_LEGR {x} 2170.5 {y} -1447.65 {z} 25.06
set_object_dynamic 244@ {state} True
delete_char 233@
delete_object 249@
delete_object 262@
delete_object 263@
delete_object 261@
delete_object 262@
delete_object 263@
325@ = 4

:DRUGS4_57192
if 
  325@ == 4
goto_if_false @DRUGS4_57454
if 
  TIMERB > 4800
goto_if_false @DRUGS4_57454
327@ = 9
play_and_kill_fx_system 241@
245@ = create_object #CHOPCOP_LEGR {x} 2170.99 {y} -1448.51 {z} 25.08
set_object_dynamic 245@ {state} True
246@ = create_object #CHOPCOP_ARMR {x} 2170.96 {y} -1450.36 {z} 25.2
set_object_dynamic 246@ {state} True
set_object_rotation 246@ {x} 0.2 {y} 0.2 {z} 0.2
247@ = create_object #CHOPCOP_ARMR {x} 2171.1599 {y} -1451.11 {z} 25.12
set_object_dynamic 247@ {state} True
set_object_rotation 247@ {x} -0.1 {y} 0.05 {z} 0.1
248@ = create_object #CHOPCOP_HEAD {x} 2171.1001 {y} -1453.09 {z} 25.4
set_object_dynamic 248@ {state} True
set_object_rotation 248@ {x} 0.5 {y} 0.2 {z} -0.1
play_and_kill_fx_system 242@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57447
stop_playback_recorded_car 40@

:DRUGS4_57447
325@ = 5

:DRUGS4_57454
if 
  325@ == 5
goto_if_false @DRUGS4_57659
if 
  TIMERB > 5800
goto_if_false @DRUGS4_57659
set_fixed_camera_position 2169.8989 {y} -1543.4969 {z} 38.744 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2169.894 {y} -1542.551 {z} 38.4204 {switchStyle} SwitchType.JumpCut
switch_widescreen True
detach_char_from_car $scplayer
set_char_coordinates $scplayer {x} 2184.8701 {y} -1500.83 {z} 23.55
set_player_control $player1 {state} False
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57645
set_car_coordinates 40@ {x} 2172.5601 {y} -1420.6899 {z} 30.0
explode_car 40@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57640
explode_car 40@

:DRUGS4_57640
delete_char 44@

:DRUGS4_57645
TIMERB = 0
325@ = 6

:DRUGS4_57659
if 
  311@ == 1
goto_if_false @DRUGS4_57715
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57715
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
311@ = 2

:DRUGS4_57715
if 
  297@ == 1
goto_if_false @DRUGS4_57821
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_57794
if 
  not is_playback_going_on_for_car 186@
goto_if_false @DRUGS4_57787
mark_car_as_no_longer_needed 186@
mark_char_as_no_longer_needed 195@
remove_blip 285@
297@ = 2

:DRUGS4_57787
goto @DRUGS4_57821

:DRUGS4_57794
stop_playback_recorded_car 186@
mark_char_as_no_longer_needed 195@
mark_car_as_no_longer_needed 186@
remove_blip 285@
297@ = 2

:DRUGS4_57821
if 
  314@ == 1
goto_if_false @DRUGS4_57973
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_57973
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_57878
goto @DRUGS4_57973

:DRUGS4_57878
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_57961
if 
  is_char_in_car 197@ {vehicle} 187@
goto_if_false @DRUGS4_57954
284@ = get_driver_of_car 187@
if 
  284@ == -1
goto_if_false @DRUGS4_57954
task_shuffle_to_next_car_seat 197@ {vehicle} 187@
314@ = 2

:DRUGS4_57954
goto @DRUGS4_57973

:DRUGS4_57961
stop_playback_recorded_car 187@
314@ = 2

:DRUGS4_57973
if 
  314@ == 2
goto_if_false @DRUGS4_58019
if 
  is_char_dead 197@
goto_if_false @DRUGS4_58019
stop_playback_recorded_car 187@
314@ = 3

:DRUGS4_58019
if 
  298@ == 1
goto_if_false @DRUGS4_58135
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_58103
if 
  not is_playback_going_on_for_car 187@
goto_if_false @DRUGS4_58096
mark_car_as_no_longer_needed 187@
mark_char_as_no_longer_needed 196@
mark_char_as_no_longer_needed 197@
remove_blip 286@
298@ = 2

:DRUGS4_58096
goto @DRUGS4_58135

:DRUGS4_58103
stop_playback_recorded_car 187@
mark_char_as_no_longer_needed 196@
mark_char_as_no_longer_needed 197@
mark_car_as_no_longer_needed 187@
remove_blip 286@
298@ = 2

:DRUGS4_58135
if 
  315@ == 1
goto_if_false @DRUGS4_58287
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_58287
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_58192
goto @DRUGS4_58287

:DRUGS4_58192
if 
  not is_char_dead 199@
goto_if_false @DRUGS4_58275
if 
  is_char_in_car 199@ {vehicle} 188@
goto_if_false @DRUGS4_58268
284@ = get_driver_of_car 188@
if 
  284@ == -1
goto_if_false @DRUGS4_58268
task_shuffle_to_next_car_seat 199@ {vehicle} 188@
315@ = 2

:DRUGS4_58268
goto @DRUGS4_58287

:DRUGS4_58275
stop_playback_recorded_car 188@
315@ = 2

:DRUGS4_58287
if 
  315@ == 2
goto_if_false @DRUGS4_58333
if 
  is_char_dead 199@
goto_if_false @DRUGS4_58333
stop_playback_recorded_car 188@
315@ = 3

:DRUGS4_58333
if 
  299@ == 1
goto_if_false @DRUGS4_58449
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_58417
if 
  not is_playback_going_on_for_car 188@
goto_if_false @DRUGS4_58410
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 198@
mark_char_as_no_longer_needed 199@
remove_blip 287@
299@ = 2

:DRUGS4_58410
goto @DRUGS4_58449

:DRUGS4_58417
stop_playback_recorded_car 188@
mark_char_as_no_longer_needed 198@
mark_char_as_no_longer_needed 199@
mark_car_as_no_longer_needed 188@
remove_blip 287@
299@ = 2

:DRUGS4_58449
if 
  300@ == 1
goto_if_false @DRUGS4_58505
if 
  is_car_dead 189@
goto_if_false @DRUGS4_58505
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 189@
300@ = 2

:DRUGS4_58505
if 
  317@ == 1
goto_if_false @DRUGS4_58657
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_58657
if 
  not is_char_dead 203@
goto_if_false @DRUGS4_58562
goto @DRUGS4_58657

:DRUGS4_58562
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_58645
if 
  is_char_in_car 204@ {vehicle} 190@
goto_if_false @DRUGS4_58638
284@ = get_driver_of_car 190@
if 
  284@ == -1
goto_if_false @DRUGS4_58638
task_shuffle_to_next_car_seat 204@ {vehicle} 190@
317@ = 2

:DRUGS4_58638
goto @DRUGS4_58657

:DRUGS4_58645
stop_playback_recorded_car 190@
317@ = 2

:DRUGS4_58657
if 
  317@ == 2
goto_if_false @DRUGS4_58703
if 
  is_char_dead 204@
goto_if_false @DRUGS4_58703
stop_playback_recorded_car 190@
317@ = 3

:DRUGS4_58703
if 
  301@ == 1
goto_if_false @DRUGS4_58819
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_58787
if 
  not is_playback_going_on_for_car 190@
goto_if_false @DRUGS4_58780
mark_car_as_no_longer_needed 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
remove_blip 289@
301@ = 2

:DRUGS4_58780
goto @DRUGS4_58819

:DRUGS4_58787
stop_playback_recorded_car 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
mark_car_as_no_longer_needed 190@
remove_blip 289@
301@ = 2

:DRUGS4_58819
if 
  318@ == 1
goto_if_false @DRUGS4_58971
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_58971
if 
  not is_char_dead 206@
goto_if_false @DRUGS4_58876
goto @DRUGS4_58971

:DRUGS4_58876
if 
  not is_char_dead 207@
goto_if_false @DRUGS4_58959
if 
  is_char_in_car 207@ {vehicle} 191@
goto_if_false @DRUGS4_58952
284@ = get_driver_of_car 191@
if 
  284@ == -1
goto_if_false @DRUGS4_58952
task_shuffle_to_next_car_seat 207@ {vehicle} 191@
318@ = 2

:DRUGS4_58952
goto @DRUGS4_58971

:DRUGS4_58959
stop_playback_recorded_car 191@
318@ = 2

:DRUGS4_58971
if 
  318@ == 2
goto_if_false @DRUGS4_59017
if 
  is_char_dead 207@
goto_if_false @DRUGS4_59017
stop_playback_recorded_car 191@
318@ = 3

:DRUGS4_59017
if 
  302@ == 1
goto_if_false @DRUGS4_59133
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_59101
if 
  not is_playback_going_on_for_car 191@
goto_if_false @DRUGS4_59094
mark_car_as_no_longer_needed 191@
mark_char_as_no_longer_needed 206@
mark_char_as_no_longer_needed 207@
remove_blip 290@
302@ = 2

:DRUGS4_59094
goto @DRUGS4_59133

:DRUGS4_59101
stop_playback_recorded_car 191@
mark_char_as_no_longer_needed 206@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 191@
remove_blip 290@
302@ = 2

:DRUGS4_59133
if 
  320@ == 1
goto_if_false @DRUGS4_59285
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_59285
if 
  not is_char_dead 201@
goto_if_false @DRUGS4_59190
goto @DRUGS4_59285

:DRUGS4_59190
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_59273
if 
  is_char_in_car 202@ {vehicle} 193@
goto_if_false @DRUGS4_59266
284@ = get_driver_of_car 193@
if 
  284@ == -1
goto_if_false @DRUGS4_59266
task_shuffle_to_next_car_seat 202@ {vehicle} 193@
320@ = 2

:DRUGS4_59266
goto @DRUGS4_59285

:DRUGS4_59273
stop_playback_recorded_car 193@
320@ = 2

:DRUGS4_59285
if 
  320@ == 2
goto_if_false @DRUGS4_59331
if 
  is_char_dead 202@
goto_if_false @DRUGS4_59331
stop_playback_recorded_car 193@
320@ = 3

:DRUGS4_59331
if 
  304@ == 1
goto_if_false @DRUGS4_59559
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_59471
if 
  not is_playback_going_on_for_car 193@
goto_if_false @DRUGS4_59464
mark_car_as_no_longer_needed 193@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
remove_blip 292@
if 
  300@ == 1
goto_if_false @DRUGS4_59457
if 
  is_car_dead 189@
goto_if_false @DRUGS4_59457
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 193@
300@ = 2

:DRUGS4_59457
304@ = 2

:DRUGS4_59464
goto @DRUGS4_59559

:DRUGS4_59471
stop_playback_recorded_car 193@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
mark_car_as_no_longer_needed 193@
remove_blip 292@
if 
  300@ == 1
goto_if_false @DRUGS4_59552
if 
  is_car_dead 189@
goto_if_false @DRUGS4_59552
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 193@
300@ = 2

:DRUGS4_59552
304@ = 2

:DRUGS4_59559
if 
  307@ == 1
goto_if_false @DRUGS4_59719
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_59719
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_59719
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_59719
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ == 0.0
goto_if_false @DRUGS4_59719
set_char_anim_speed 219@ {animName} "MD_BIKE_JMP_BL" {animSpeed} 0.0
307@ = 2

:DRUGS4_59719
if 
  307@ == 3
goto_if_false @DRUGS4_59858
if 
  TIMERA > 3200
goto_if_false @DRUGS4_59858
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_59858
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_JMP_BL" {animationFile} "MD_CHASE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_anim_speed 219@ {animName} "MD_BIKE_JMP_BL" {animSpeed} 1.0
327@ = 7
307@ = 4

:DRUGS4_59858
if 
  307@ == 4
goto_if_false @DRUGS4_60237
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60237
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60237
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_60237
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_60237
detach_char_from_car 219@
if 
  310@ == 1
goto_if_false @DRUGS4_60104
attach_char_to_car 219@ {vehicle} $sweet_car {xOffset} -0.23 {yOffset} -4.0 {zOffset} 0.3 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim 219@ {animationName} "MD_BIKE_LND_DIE_BL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 100
goto @DRUGS4_60196

:DRUGS4_60104
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_LND_BL" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 219@ {vehicle} $sweet_car {xOffset} -0.23 {yOffset} -4.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
TIMERA = 0
307@ = 5

:DRUGS4_60196
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60237
stop_playback_recorded_car 215@
set_car_rotation_velocity 215@ {x} -2.0 {y} 3.0 {z} 0.2003

:DRUGS4_60237
if 
  307@ == 5
goto_if_false @DRUGS4_60416
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60416
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60416
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_BL"
goto_if_false @DRUGS4_60416
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_BL"
if 
  228@ > 0.037
goto_if_false @DRUGS4_60416
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_PUNCH" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
307@ = 6

:DRUGS4_60416
if 
  307@ > 0
goto_if_false @DRUGS4_60500
if 
  4 > 307@
goto_if_false @DRUGS4_60500
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60500
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60500
220@ = get_car_heading 215@
set_char_heading 219@ {heading} 220@

:DRUGS4_60500
if 
  307@ == 4
goto_if_false @DRUGS4_60682
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60682
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_60682
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ > 0.66
goto_if_false @DRUGS4_60650
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60643
220@ = get_car_heading $sweet_car
set_char_heading 219@ {heading} 220@

:DRUGS4_60643
goto @DRUGS4_60682

:DRUGS4_60650
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60682
220@ = get_car_heading 215@
set_char_heading 219@ {heading} 220@

:DRUGS4_60682
if 
  307@ > 4
goto_if_false @DRUGS4_60748
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60748
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60748
220@ = get_car_heading $sweet_car
set_char_heading 219@ {heading} 220@

:DRUGS4_60748
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60899
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_PUNCH"
goto_if_false @DRUGS4_60899
229@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_PUNCH"
if 
  229@ > 0.2
goto_if_false @DRUGS4_60892
if 
  307@ == 6
goto_if_false @DRUGS4_60885
do_camera_bump -2.2 {yOffset} 1.7
damage_char $scplayer {amount} 10 {damageArmour} True
307@ = 7

:DRUGS4_60885
goto @DRUGS4_60899

:DRUGS4_60892
307@ = 6

:DRUGS4_60899
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60964
231@ = get_char_health 219@
if 
  901 > 231@
goto_if_false @DRUGS4_60964
set_char_proofs 219@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
310@ = 1

:DRUGS4_60964
if 
  307@ == 100
goto_if_false @DRUGS4_61127
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_DIE_BL"
goto_if_false @DRUGS4_61127
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_DIE_BL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61127
detach_char_from_car 219@
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_LND_ROLL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 101

:DRUGS4_61127
if 
  307@ == 101
goto_if_false @DRUGS4_61238
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_ROLL"
goto_if_false @DRUGS4_61238
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_ROLL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61238
remove_char_elegantly 219@
307@ = 102

:DRUGS4_61238
if 
  307@ > 4
goto_if_false @DRUGS4_61308
if 
  8 > 307@
goto_if_false @DRUGS4_61308
if or
  310@ == 1
  TIMERA > 12000
goto_if_false @DRUGS4_61308
307@ = 200

:DRUGS4_61308
if 
  307@ == 200
goto_if_false @DRUGS4_61404
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61404
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_2_HANG" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
307@ = 201

:DRUGS4_61404
if 
  307@ == 201
goto_if_false @DRUGS4_61568
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61568
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_2_HANG"
goto_if_false @DRUGS4_61568
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_2_HANG"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61568
task_play_anim_non_interruptable 219@ {animationName} "MD_HANG_LOOP" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
307@ = 202

:DRUGS4_61568
if 
  307@ == 202
goto_if_false @DRUGS4_61663
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61663
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_2_HANG"
goto_if_false @DRUGS4_61663
set_char_proofs 219@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_last_damage_entity 219@
307@ = 203

:DRUGS4_61663
if 
  307@ == 203
goto_if_false @DRUGS4_61786
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61786
if or
  has_char_been_damaged_by_char 219@ {handle} $scplayer
  TIMERA > 5000
goto_if_false @DRUGS4_61786
detach_char_from_car 219@
task_play_anim_non_interruptable 219@ {animationName} "MD_HANG_LND_ROLL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 204

:DRUGS4_61786
if 
  307@ == 204
goto_if_false @DRUGS4_61915
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61915
if 
  is_char_playing_anim 219@ {animationName} "MD_HANG_LND_ROLL"
goto_if_false @DRUGS4_61915
228@ = get_char_anim_current_time 219@ {animationName} "MD_HANG_LND_ROLL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61915
delete_char 219@
307@ = 205

:DRUGS4_61915
if 
  325@ == 6
goto_if_false @DRUGS4_62685
if 
  TIMERB > 3000
goto_if_false @DRUGS4_62685
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62685
delete_car 40@
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #CHOPCOP_ARML
mark_model_as_no_longer_needed #CHOPCOP_ARMR
mark_model_as_no_longer_needed #CHOPCOP_LEGL
mark_model_as_no_longer_needed #CHOPCOP_LEGR
mark_model_as_no_longer_needed #CHOPCOP_HEAD
mark_model_as_no_longer_needed #CHOPCOP_TORSO
delete_object 243@
delete_object 244@
delete_object 245@
delete_object 246@
delete_object 247@
delete_object 248@
delete_object 249@
delete_object 262@
delete_object 263@
delete_object 261@
delete_object 262@
delete_object 263@
delete_car 40@
kill_fx_system 237@
kill_fx_system 240@
kill_fx_system 241@
kill_fx_system 242@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Ak47
mark_model_as_no_longer_needed 355
remove_animation "MD_CHASE"
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
request_car_recording 351
request_car_recording 382
request_car_recording 383
request_car_recording 384
request_model 514
request_model 584
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_animation "MD_END"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8298
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8286
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29000
load_all_models_now 
set_fixed_camera_position 2177.3069 {y} -1535.901 {z} 17.7635 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.855 {y} -1535.1429 {z} 18.2324 {switchStyle} SwitchType.JumpCut

:DRUGS4_62309
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_62351
wait 0
goto @DRUGS4_62309

:DRUGS4_62351
if or
  not has_model_loaded 514
  not has_model_loaded 584
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_62387
wait 0
goto @DRUGS4_62351

:DRUGS4_62387
if or
  not has_car_recording_been_loaded 351
  not has_car_recording_been_loaded 382
  not has_car_recording_been_loaded 383
  not has_car_recording_been_loaded 384
  not has_animation_loaded "MD_END"
goto_if_false @DRUGS4_62439
wait 0
goto @DRUGS4_62387

:DRUGS4_62439
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62460
stop_playback_recorded_car $sweet_car

:DRUGS4_62460
274@ = create_car 514 {x} 2078.002 {y} -1524.349 {z} 2.49
set_car_heading 274@ {heading} 254.103
set_car_health 274@ {health} 5000
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
273@ = create_car 584 {x} 2070.05 {y} -1522.059 {z} 3.668
set_car_heading 273@ {heading} 254.0
set_car_health 273@ {health} 5000
set_car_proofs 273@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
275@ = create_car 492 {x} 2060.05 {y} -1520.059 {z} 3.668
set_car_health 275@ {health} 5000
set_car_proofs 275@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 275@ {color1} 5 {color2} 5
switch_ped_roads_off 2184.4399 {leftBottomY} -1557.1801 {leftBottomZ} -5.481 {rightTopX} 2169.22 {rightTopY} -1560.63 {rightTopZ} 5.91
set_car_density_multiplier 1.0
clear_onscreen_counter $sweethealth_f1
TIMERB = 0
325@ = 7

:DRUGS4_62685
if 
  325@ > 6
goto_if_false @DRUGS4_62788
if 
  329@ == 0
goto_if_false @DRUGS4_62788
if 
  TIMERB > 1989
goto_if_false @DRUGS4_62788
if 
  does_object_exist $fourdragons_door
goto_if_false @DRUGS4_62781
freeze_object_position $fourdragons_door {state} False
set_object_collision_damage_effect $fourdragons_door {state} True
break_object $fourdragons_door {intensity} 1
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_62781
329@ = 1

:DRUGS4_62788
if 
  325@ == 7
goto_if_false @DRUGS4_62909
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62909
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_62909
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_62909
start_playback_recorded_car $sweet_car {path} 351
start_playback_recorded_car 274@ {path} 382
start_playback_recorded_car 273@ {path} 383
if 
  not is_car_dead 275@
goto_if_false @DRUGS4_62902
start_playback_recorded_car 275@ {path} 384

:DRUGS4_62902
325@ = 8

:DRUGS4_62909
if 
  325@ == 8
goto_if_false @DRUGS4_63039
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63039
if 
  locate_car_2d $sweet_car {x} 2170.2 {y} -1518.04 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_63039
set_time_scale 0.3
point_camera_at_car $sweet_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
open_car_door $sweet_car {door} CarDoor.LeftFrontDoor
open_car_door $sweet_car {door} CarDoor.LeftRearDoor
open_car_door $sweet_car {door} CarDoor.RightRearDoor
open_car_door $sweet_car {door} CarDoor.Hood
TIMERA = 0
325@ = 9

:DRUGS4_63039
if 
  325@ == 9
goto_if_false @DRUGS4_63192
if 
  TIMERA > 500
goto_if_false @DRUGS4_63192
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63192
pop_car_panel $sweet_car {panelId} 6 {visibility} True
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_63147
set_car_proofs 273@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_63147
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_63178
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_63178
TIMERA = 0
325@ = 10

:DRUGS4_63192
if 
  325@ == 10
goto_if_false @DRUGS4_63588
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63588
if or
  locate_car_3d $sweet_car {x} 2169.24 {y} -1553.91 {z} 2.5 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 6.0 {drawSphere} False
  TIMERA > 4000
goto_if_false @DRUGS4_63588
set_car_health $sweet_car {health} 300
set_time_scale 0.7
pop_car_panel $sweet_car {panelId} 5 {visibility} True
set_time_of_day 7 {minutes} 15
set_fixed_camera_position 2204.804 {y} -1568.276 {z} 1.9452 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2203.8611 {y} -1567.951 {z} 1.8744 {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
$sweet = create_char PedType.Special {modelId} 290 {x} 2168.479 {y} -1506.067 {z} 24.0
set_char_heading $sweet {heading} 135.0
set_char_decision_maker $sweet {handleOrTemplate} 55@
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2168.9919 {y} -1508.601 {z} 24.0
set_char_heading $big_smoke {heading} 45.0
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$ryder = create_char PedType.Special {modelId} 292 {x} 2167.054 {y} -1507.7 {z} 24.0
set_char_heading $ryder {heading} 290.0
set_char_decision_maker $ryder {handleOrTemplate} 55@
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_coordinates $scplayer {x} 2166.9519 {y} -1506.2371 {z} 24.0
set_char_heading $scplayer {heading} 225.0
TIMERA = 0
325@ = 11

:DRUGS4_63588
if 
  325@ == 11
goto_if_false @DRUGS4_63861
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_63861
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63861
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_63861
if or
  is_car_touching_car $sweet_car {handle} 274@
  TIMERB > 4350
goto_if_false @DRUGS4_63861
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
explode_car $sweet_car
explode_car 273@
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2182.25 {y} -1565.23 {z} 2.88 {type} ExplosionType.Grenade
add_explosion 2166.3401 {y} -1559.97 {z} 6.28 {type} ExplosionType.Rocket
add_explosion 2173.52 {y} -1560.03 {z} 5.0 {type} ExplosionType.Car
add_explosion 2182.6499 {y} -1565.14 {z} 4.01 {type} ExplosionType.Rocket
add_explosion 2183.8 {y} -1564.48 {z} 4.05 {type} ExplosionType.Grenade
TIMERA = 0
325@ = 12

:DRUGS4_63861
if 
  325@ == 12
goto_if_false @DRUGS4_63962
if 
  TIMERA > 250
goto_if_false @DRUGS4_63962
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Grenade
add_explosion 2172.99 {y} -1561.51 {z} 4.88 {type} ExplosionType.Grenade
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
325@ = 13

:DRUGS4_63962
if 
  325@ == 13
goto_if_false @DRUGS4_64378
if 
  TIMERA > 750
goto_if_false @DRUGS4_64378
281@ = start_script_fire 2180.27 {y} -1564.66 {z} 1.93 {propagation} 1 {size} 3
282@ = start_script_fire 2182.25 {y} -1565.23 {z} 1.88 {propagation} 1 {size} 3
283@ = start_script_fire 2187.9399 {y} -1562.73 {z} 1.36 {propagation} 1 {size} 3
278@ = start_script_fire 2204.804 {y} -1568.476 {z} 1.95 {propagation} 1 {size} 1
279@ = start_script_fire 2201.1101 {y} -1565.77 {z} 1.36 {propagation} 1 {size} 1
280@ = start_script_fire 2202.8201 {y} -1565.01 {z} 1.35 {propagation} 1 {size} 3
add_explosion 2175.1201 {y} -1562.63 {z} 5.93 {type} ExplosionType.Car
add_explosion 2179.24 {y} -1563.66 {z} 6.42 {type} ExplosionType.Grenade
add_explosion 2170.3899 {y} -1560.61 {z} 5.91 {type} ExplosionType.Car
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Car
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
add_explosion 2171.73 {y} -1562.22 {z} 5.92 {type} ExplosionType.Car
add_explosion 2179.3 {y} -1563.3199 {z} 6.12 {type} ExplosionType.Rocket
add_explosion 2177.3501 {y} -1562.66 {z} 5.73 {type} ExplosionType.Grenade
add_explosion 2174.04 {y} -1562.21 {z} 6.56 {type} ExplosionType.Grenade
add_explosion 2178.27 {y} -1564.89 {z} 6.58 {type} ExplosionType.Rocket
add_explosion 2177.53 {y} -1564.16 {z} 6.96 {type} ExplosionType.Car
325@ = 14

:DRUGS4_64378
if 
  325@ == 14
goto_if_false @DRUGS4_64498
if 
  TIMERA > 1250
goto_if_false @DRUGS4_64498
add_explosion 2166.3401 {y} -1559.97 {z} 6.28 {type} ExplosionType.Rocket
add_explosion 2173.52 {y} -1560.03 {z} 5.0 {type} ExplosionType.Car
add_explosion 2182.6499 {y} -1565.14 {z} 4.01 {type} ExplosionType.Rocket
add_explosion 2183.8 {y} -1564.48 {z} 4.05 {type} ExplosionType.Grenade
325@ = 15

:DRUGS4_64498
if 
  325@ == 15
goto_if_false @DRUGS4_64781
if 
  TIMERA > 1750
goto_if_false @DRUGS4_64781
add_explosion 2175.1201 {y} -1562.63 {z} 5.93 {type} ExplosionType.Car
add_explosion 2179.24 {y} -1563.66 {z} 6.42 {type} ExplosionType.Grenade
add_explosion 2170.3899 {y} -1560.61 {z} 5.91 {type} ExplosionType.Car
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_64628
set_car_proofs 273@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car 273@

:DRUGS4_64628
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_64669
set_car_proofs 274@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car 274@
explode_car 274@

:DRUGS4_64669
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_64717
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car $sweet_car
set_car_health $sweet_car {health} 100
explode_car $sweet_car

:DRUGS4_64717
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Car
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
325@ = 16

:DRUGS4_64781
if 
  325@ == 16
goto_if_false @DRUGS4_65225
if 
  TIMERA > 4500
goto_if_false @DRUGS4_65225
279@ = start_script_fire 2201.1101 {y} -1565.77 {z} 1.36 {propagation} 1 {size} 1
remove_animation "MD_CHASE"
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 497
set_time_scale 1.0
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_64938
task_play_anim_non_interruptable $sweet {animationName} "END_SC1_SWE" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DRUGS4_64938
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_64995
task_play_anim_non_interruptable $ryder {animationName} "END_SC1_RYD" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DRUGS4_64995
task_play_anim $scplayer {animationName} "END_SC1_PLY" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_65101
task_play_anim $big_smoke {animationName} "END_SC1_SMO" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
start_char_facial_talk $big_smoke {duration} 5000

:DRUGS4_65101
wait 100
set_fixed_camera_position 2171.519 {y} -1521.437 {z} 23.7949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.2871 {y} -1520.465 {z} 23.8322 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_MU' {time} 5000 {flag} 1
delete_car 275@
stop_playback_recorded_car 273@
stop_playback_recorded_car 275@
delete_car 273@
delete_car $sweet_car
delete_car 274@
delete_car 40@
330@ = 1
325@ = 17

:DRUGS4_65225
if 
  325@ > 16
goto_if_false @DRUGS4_65412
if 
  330@ == 1
goto_if_false @DRUGS4_65412
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65412
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_65412
set_fixed_camera_position 2171.519 {y} -1521.437 {z} 23.7949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.2871 {y} -1520.465 {z} 23.8322 {switchStyle} SwitchType.JumpCut
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $big_smoke
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8261
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_MV' {time} 4000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65405
start_char_facial_talk $sweet {duration} 5000

:DRUGS4_65405
330@ = 2

:DRUGS4_65412
if 
  330@ == 2
goto_if_false @DRUGS4_65545
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65545
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65545
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_65545
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65545
clear_prints 
stop_char_facial_talk $sweet
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_MW' {time} 5000 {flag} 1
start_char_facial_talk $ryder {duration} 5000
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8287
330@ = 3

:DRUGS4_65545
if 
  330@ == 3
goto_if_false @DRUGS4_65665
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65665
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65665
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_65665
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65665
stop_char_facial_talk $ryder
start_char_facial_talk $sweet {duration} 5000
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_MX' {time} 5000 {flag} 1
330@ = 4

:DRUGS4_65665
if 
  330@ == 4
goto_if_false @DRUGS4_65728
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65728
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65721
stop_char_facial_talk $sweet

:DRUGS4_65721
330@ = 5

:DRUGS4_65728
if 
  325@ == 17
goto_if_false @DRUGS4_66087
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_66087
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_66087
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_66087
if 
  is_char_playing_anim $big_smoke {animationName} "END_SC1_SMO"
goto_if_false @DRUGS4_66087
277@ = get_char_anim_current_time $big_smoke {animationName} "END_SC1_SMO"
if 
  277@ == 1.0
goto_if_false @DRUGS4_66087
task_play_anim_non_interruptable $sweet {animationName} "END_SC2_SWE" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $big_smoke {animationName} "END_SC2_SMO" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $ryder {animationName} "END_SC2_RYD" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $scplayer {animationName} "END_SC2_PLY" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 2168.1169 {y} -1510.165 {z} 24.3268 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2168.124 {y} -1509.166 {z} 24.294 {switchStyle} SwitchType.JumpCut
325@ = 18

:DRUGS4_66087
if 
  325@ == 18
goto_if_false @DRUGS4_66376
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_66376
if 
  330@ == 5
goto_if_false @DRUGS4_66376
set_fixed_camera_position 2175.271 {y} -1537.7729 {z} 24.5856 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2175.0779 {y} -1536.796 {z} 24.6842 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $big_smoke {x} 2172.1899 {y} -1498.48 {z} 23.55 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $big_smoke {range} 100.0
wait 150
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_66279
task_go_straight_to_coord $sweet {x} 2170.77 {y} -1492.05 {z} 23.65 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $sweet {range} 100.0

:DRUGS4_66279
wait 100
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_66333
task_go_straight_to_coord $ryder {x} 2163.6499 {y} -1506.92 {z} 23.01 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $ryder {range} 100.0

:DRUGS4_66333
do_fade 4000 {direction} Fade.Out

:DRUGS4_66340
if 
  get_fading_status 
goto_if_false @DRUGS4_66364
wait 0
goto @DRUGS4_66340

:DRUGS4_66364
delete_car 40@
325@ = 19

:DRUGS4_66376
if 
  325@ == 19
goto_if_false @DRUGS4_66503
delete_char $big_smoke
delete_char $ryder
delete_char $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2170.9351 {y} -1500.675 {z} 22.9
set_char_heading $scplayer {heading} 355.56
set_char_coordinates $scplayer {x} 2170.5959 {y} -1515.468 {z} 22.89
set_char_heading $scplayer {heading} 356.495
restore_camera_jumpcut 
set_camera_in_front_of_player 
switch_widescreen False
do_fade 2000 {direction} Fade.In
goto @DRUGS4_67763
325@ = 20

:DRUGS4_66503
goto @DRUGS4_1706

:DRUGS4_66510
if 
  179@ == 0
goto_if_false @DRUGS4_66550
load_mission_audio MissionAudioSlot.Slot1 {audioId} 106@
set_lvar_text_label 104@s = 107@s
179@ = 1

:DRUGS4_66550
return 

:DRUGS4_66552
if 
  179@ == 1
goto_if_false @DRUGS4_66731
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_66731
print_now 104@s {time} 4000 {flag} 1
clear_this_print 'FIN1_BD'
clear_this_print 'FIN1_CK'
clear_this_print 'FIN1_BE'
clear_this_print 'FIN1_BY'
clear_this_print 'FIN1_CB'
clear_this_print 'FIN1_BK'
clear_this_print 'FIN1_BL'
if 
  151@ == 1
goto_if_false @DRUGS4_66720
if 
  not is_char_dead 66@
goto_if_false @DRUGS4_66720
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 66@
151@ = 2

:DRUGS4_66720
play_mission_audio MissionAudioSlot.Slot1
179@ = 2

:DRUGS4_66731
if 
  179@ == 2
goto_if_false @DRUGS4_66784
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_66784
178@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
179@ = 0

:DRUGS4_66784
return 

:DRUGS4_66786
125@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_shoot_at_coord -1 {x} 122@ {y} 123@ {z} 124@ {time} 15000
set_sequence_to_repeat 125@ {state} True
close_sequence_task 125@
perform_sequence_task 118@ {sequence} 125@
clear_sequence_task 125@
return 

:DRUGS4_66846
110@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 122@ {y} 123@ {z} 124@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} 119@ {flags} 4 {actionDelay} 5000 {actionChance} 80
close_sequence_task 110@
perform_sequence_task 118@ {sequence} 110@
clear_sequence_task 110@
return 

:DRUGS4_66914
111@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} 119@ {flags} 1 {actionDelay} 5000 {actionChance} 50
close_sequence_task 111@
perform_sequence_task 118@ {sequence} 111@
clear_sequence_task 111@
return 

:DRUGS4_66965
112@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 119@
close_sequence_task 112@
perform_sequence_task 118@ {sequence} 112@
clear_sequence_task 112@
return 

:DRUGS4_67003
113@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 119@
task_kill_char_on_foot -1 {target} 120@
close_sequence_task 113@
perform_sequence_task 118@ {sequence} 113@
clear_sequence_task 113@
return 

:DRUGS4_67048
114@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 114@
perform_sequence_task 118@ {sequence} 114@
clear_sequence_task 114@
return 

:DRUGS4_67131
115@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 115@
perform_sequence_task 118@ {sequence} 115@
clear_sequence_task 115@
return 

:DRUGS4_67214
116@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
if 
  161@ == 0
goto_if_false @DRUGS4_67342
task_kill_char_on_foot_timed -1 {target} 119@ {time} 1500
goto @DRUGS4_67358

:DRUGS4_67342
task_shoot_at_coord -1 {x} 122@ {y} 123@ {z} 124@ {time} 1500

:DRUGS4_67358
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 116@ {state} True
close_sequence_task 116@
perform_sequence_task 118@ {sequence} 116@
clear_sequence_task 116@
return 

:DRUGS4_67479
117@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 117@ {state} True
close_sequence_task 117@
perform_sequence_task 118@ {sequence} 117@
clear_sequence_task 117@
return 

:DRUGS4_67703
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_object $fourdragons_door
$fourdragons_door = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $fourdragons_door {heading} 0.0
dont_remove_object $fourdragons_door
return 

:DRUGS4_67763
register_mission_passed 'LA1FIN1'
set_int_stat StatId.PassedLafin1 {value} 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
$flag_la1fin1_mission_counter += 1
return 

:DRUGS4_67825
$onmission = 0
clear_onscreen_counter $sweethealth_f1
set_script_limit_to_gang_size 99
switch_roads_on 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_on 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_on 2184.4399 {leftBottomY} -1557.1801 {leftBottomZ} -5.481 {rightTopX} 2169.22 {rightTopY} -1560.63 {rightTopZ} 5.91
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_char_elegantly $sweet
remove_char_elegantly $ryder
remove_char_elegantly $big_smoke
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 349
remove_animation "SWAT"
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #IMY_SKYLIGHT
mark_model_as_no_longer_needed #KMB_TROLLEY
remove_animation "KISSING"
remove_animation "GANGS"
remove_blip 185@
remove_blip 183@
remove_blip 184@
clear_onscreen_counter $cs1_random_dialogue
kill_fx_system 65@
remove_pickup 127@
flush_route 
mark_model_as_no_longer_needed #MD_POSTER
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 538
remove_animation "GANGS"
mark_model_as_no_longer_needed #DYN_SCAFFOLD_3B
mark_model_as_no_longer_needed #DYN_SCAFFOLD_4B
remove_animation "MD_CHASE"
mark_model_as_no_longer_needed #MUNCH_DONUT
mark_model_as_no_longer_needed #CHOPCOP_ARML
mark_model_as_no_longer_needed #CHOPCOP_ARMR
mark_model_as_no_longer_needed #CHOPCOP_LEGL
mark_model_as_no_longer_needed #CHOPCOP_LEGR
mark_model_as_no_longer_needed #CHOPCOP_HEAD
mark_model_as_no_longer_needed #CHOPCOP_TORSO
mark_model_as_no_longer_needed #WD_FENCE_ANIM
remove_animation "CAR_CHAT"
remove_animation "MD_END"
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
set_max_wanted_level 4
delete_car 40@
remove_blip 285@
remove_blip 286@
remove_blip 287@
remove_blip 288@
remove_blip 289@
remove_blip 290@
remove_blip 291@
remove_blip 292@
if 
  is_player_playing $player1
goto_if_false @DRUGS4_68304
set_player_duck_button $player1 {enabled} True
set_player_fire_button $player1 {enabled} True
shut_char_up $scplayer {state} False

:DRUGS4_68304
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_68325
remove_char_elegantly 218@

:DRUGS4_68325
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_68346
remove_char_elegantly 219@

:DRUGS4_68346
detach_char_from_car $scplayer
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
remove_all_script_fires 
kill_fx_system 237@
kill_fx_system 240@
kill_fx_system 241@
kill_fx_system 242@
switch_entry_exit 'MOTEL1' {state} True
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 38---------------
// Originally: The Green Sabre

:LA1FIN2
script_name 'LA1FIN2'
gosub @LA1FIN2_339
if 
  has_deatharrest_been_executed 
goto_if_false @LA1FIN2_38
gosub @LA1FIN2_19500

:LA1FIN2_38
gosub @LA1FIN2_22024
terminate_this_script 
if 
  100@ == 99
goto_if_false @LA1FIN2_339
36@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
238@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
243@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
235@ = create_car 401 {x} 1650.115 {y} -1055.243 {z} 22.8984
233@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
280@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
41@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
231@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
232@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
51@ = add_blip_for_char 36@
50@ = add_blip_for_coord 1648.714 {y} -1050.094 {z} 22.9141
122@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
124@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
125@ = create_char_inside_car 122@ {pedType} PedType.CivMale {modelId} 280

:LA1FIN2_339
register_mission_given 
$onmission = 1
84@ = 1
494@ = 1
set_script_limit_to_gang_size 0

:LA1FIN2_366
wait 0
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @LA1FIN2_390
save_int_to_debug_file 100@

:LA1FIN2_390
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @LA1FIN2_412
goto @LA1FIN2_19517

:LA1FIN2_412
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @LA1FIN2_461
set_char_coordinates $scplayer {x} 1650.4561 {y} -1039.614 {z} 22.8984
100@ = 4
101@ = 0

:LA1FIN2_461
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @LA1FIN2_625
100@ = 7
267@ = 0

:LA1FIN2_490
if 
  6 > 267@
goto_if_false @LA1FIN2_551
if 
  not is_char_dead 243@(267@,6i)
goto_if_false @LA1FIN2_537
task_die 243@(267@,6i)

:LA1FIN2_537
267@ += 1
goto @LA1FIN2_490

:LA1FIN2_551
if 
  not is_car_dead 122@
goto_if_false @LA1FIN2_572
delete_car 122@

:LA1FIN2_572
if 
  not is_car_dead 123@
goto_if_false @LA1FIN2_593
delete_car 123@

:LA1FIN2_593
if 
  not is_car_dead 124@
goto_if_false @LA1FIN2_614
delete_car 124@

:LA1FIN2_614
switch_widescreen True
set_player_control $player1 {state} False

:LA1FIN2_625
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @LA1FIN2_660
set_char_coordinates $scplayer {x} 1624.537 {y} -1863.438 {z} 12.5549

:LA1FIN2_660
switch_start 100@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_928 {caseNum1} 0 {caseLabel1} @LA1FIN2_788 {caseNum2} 1 {caseLabel2} @LA1FIN2_809 {caseNum3} 2 {caseLabel3} @LA1FIN2_830 {caseNum4} 3 {caseLabel4} @LA1FIN2_844 {caseNum5} 4 {caseLabel5} @LA1FIN2_858 {caseNum6} 5 {caseLabel6} @LA1FIN2_872 {caseNum7} 6 {caseLabel7} @LA1FIN2_886
switch_continued 7 {caseLabel1} @LA1FIN2_900 {caseNum2} 8 {caseLabel2} @LA1FIN2_914 {caseNum3} -1 {caseLabel3} @LA1FIN2_928 {caseNum4} -1 {caseLabel4} @LA1FIN2_928 {caseNum5} -1 {caseLabel5} @LA1FIN2_928 {caseNum6} -1 {caseLabel6} @LA1FIN2_928 {caseNum7} -1 {caseLabel7} @LA1FIN2_928 {caseNum8} -1 {caseLabel8} @LA1FIN2_928 {caseNum9} -1 {caseLabel9} @LA1FIN2_928

:LA1FIN2_788
gosub @LA1FIN2_1257
100@ = 1
goto @LA1FIN2_928

:LA1FIN2_809
gosub @LA1FIN2_1314
100@ = 2
goto @LA1FIN2_928

:LA1FIN2_830
gosub @LA1FIN2_1795
goto @LA1FIN2_928

:LA1FIN2_844
gosub @LA1FIN2_2441
goto @LA1FIN2_928

:LA1FIN2_858
gosub @LA1FIN2_2993
goto @LA1FIN2_928

:LA1FIN2_872
gosub @LA1FIN2_3931
goto @LA1FIN2_928

:LA1FIN2_886
gosub @LA1FIN2_6195
goto @LA1FIN2_928

:LA1FIN2_900
gosub @LA1FIN2_9533
goto @LA1FIN2_928

:LA1FIN2_914
goto @LA1FIN2_19517
goto @LA1FIN2_928

:LA1FIN2_928
gosub @LA1FIN2_983
gosub @LA1FIN2_1044
gosub @LA1FIN2_17176
if 
  34@ == 1
goto_if_false @LA1FIN2_974
goto @LA1FIN2_19500

:LA1FIN2_974
goto @LA1FIN2_366
return 

:LA1FIN2_983
if 
  35@ == 1
goto_if_false @LA1FIN2_1040
if 
  is_char_dead 36@
goto_if_false @LA1FIN2_1040
34@ = 1
print 'LA1_16' {time} 4000 {flag} 1

:LA1FIN2_1040
return 
return 

:LA1FIN2_1044
if 
  100@ > 1
goto_if_false @LA1FIN2_1255
if 
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @LA1FIN2_1131
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
goto @LA1FIN2_1145

:LA1FIN2_1131
set_ped_density_multiplier 0.6
set_car_density_multiplier 0.6

:LA1FIN2_1145
set_lvar_int_to_lvar_int 280@ = 233@
85@ = 0
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 234@
85@ = 1
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 237@
85@ = 2
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 235@
85@ = 3
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 236@
85@ = 4
gosub @LA1FIN2_16307

:LA1FIN2_1255
return 

:LA1FIN2_1257
103@ = load_char_decision_maker DecisionMakerType.Empty
104@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 104@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 104@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
return 

:LA1FIN2_1314
load_mission_text 'LAFIN2'
set_area_visible 1
load_cutscene 'FINAL2A'

:LA1FIN2_1340
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_1364
wait 0
goto @LA1FIN2_1340

:LA1FIN2_1364
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_1373
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_1397
wait 0
goto @LA1FIN2_1373

:LA1FIN2_1397
do_fade 0 {direction} Fade.Out

:LA1FIN2_1403
if 
  get_fading_status 
goto_if_false @LA1FIN2_1427
wait 0
goto @LA1FIN2_1403

:LA1FIN2_1427
clear_cutscene 
set_area_visible 0
load_scene 2518.7891 {y} -1677.22 {z} 13.5079
set_camera_behind_player 
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2519.825 {y} -1677.714 {z} 13.7425
set_char_heading $scplayer {heading} 67.0
request_model 401
request_model 330

:LA1FIN2_1494
if or
  not has_model_loaded 401
  not has_model_loaded 330
goto_if_false @LA1FIN2_1526
wait 0
goto @LA1FIN2_1494

:LA1FIN2_1526
40@ = create_car 401 {x} 1625.087 {y} -1857.438 {z} 12.5549
change_car_colour 40@ {color1} 32 {color2} 1
freeze_car_position 40@ {state} True
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 40@ {heading} 180.0
wait 500
if 
  $range_cuts_watched == 1
goto_if_false @LA1FIN2_1635
set_up_skip 1642.299 {y} -1869.6429 {z} 12.3906 {heading} 90.0

:LA1FIN2_1635
do_fade 500 {direction} Fade.In
switch_widescreen True
set_fixed_camera_position 2513.498 {y} -1671.741 {z} 13.2117 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.9431 {y} -1672.6281 {z} 13.3312 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
131@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2514.989 {y} -1674.08 {z} 12.7225 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_use_mobile_phone -1 {start} True
close_sequence_task 131@
perform_sequence_task $scplayer {sequence} 131@
clear_sequence_task 131@
437@ = 17
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 3500
113@ = 1
return 

:LA1FIN2_1795
if 
  113@ == 1
goto_if_false @LA1FIN2_1880
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1880
if 
  437@ == 0
goto_if_false @LA1FIN2_1880
437@ = 18
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 2500
113@ = 2

:LA1FIN2_1880
if 
  113@ == 2
goto_if_false @LA1FIN2_1968
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1968
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
436@ = 1
437@ = 19
438@ = 11
113@ = 3

:LA1FIN2_1968
if 
  113@ == 3
goto_if_false @LA1FIN2_2131
if 
  437@ <> 0
goto_if_false @LA1FIN2_2035
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LA1FIN2_2035
437@ = 0
436@ = 5

:LA1FIN2_2035
if 
  437@ == 0
goto_if_false @LA1FIN2_2131
if 
  436@ == 1
goto_if_false @LA1FIN2_2131
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
113@ = 0
print 'LA1_33' {time} 7000 {flag} 1
remove_blip 50@
50@ = add_blip_for_coord 1631.791 {y} -1867.288 {z} 12.5381

:LA1FIN2_2131
if 
  101@ == 0
goto_if_false @LA1FIN2_2316
if 
  locate_char_any_means_3d $scplayer {x} 1631.791 {y} -1867.288 {z} 12.5381 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LA1FIN2_2316
clear_skip 
$range_cuts_watched = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_2252
set_player_control $player1 {state} False
114@ = 1
set_lvar_int_to_lvar_int 115@ = TIMERA
115@ += 1500

:LA1FIN2_2252
remove_blip 50@
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2293
remove_blip 50@
50@ = add_blip_for_car 40@
set_blip_as_friendly 50@ {state} True

:LA1FIN2_2293
print 'LA1_35' {time} 4000 {flag} 1
101@ = 1

:LA1FIN2_2316
if 
  114@ == 1
goto_if_false @LA1FIN2_2372
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 115@
goto_if_false @LA1FIN2_2372
task_leave_any_car $scplayer
set_player_control $player1 {state} True
114@ = 2

:LA1FIN2_2372
if 
  101@ == 1
goto_if_false @LA1FIN2_2439
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2439
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @LA1FIN2_2439
remove_blip 50@
clear_prints 
100@ = 3

:LA1FIN2_2439
return 

:LA1FIN2_2441
mark_model_as_no_longer_needed 401
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:LA1FIN2_2461
if 
  get_fading_status 
goto_if_false @LA1FIN2_2485
wait 0
goto @LA1FIN2_2461

:LA1FIN2_2485
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2508
set_car_visible 40@ {state} False

:LA1FIN2_2508
clear_area_of_cars 1626.6331 {leftBottomY} -1876.4 {leftBottomZ} 16.8284 {rightTopX} 1601.1121 {rightTopY} -1902.103 {rightTopZ} 10.6931
clear_area_of_chars 1626.6331 {leftBottomY} -1876.4 {leftBottomZ} 16.8284 {rightTopX} 1601.1121 {rightTopY} -1902.103 {rightTopZ} 10.6931
remove_blip 50@
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'FINAL2B'

:LA1FIN2_2597
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_2621
wait 0
goto @LA1FIN2_2597

:LA1FIN2_2621
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_2630
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_2654
wait 0
goto @LA1FIN2_2630

:LA1FIN2_2654
do_fade 0 {direction} Fade.Out

:LA1FIN2_2660
if 
  get_fading_status 
goto_if_false @LA1FIN2_2684
wait 0
goto @LA1FIN2_2660

:LA1FIN2_2684
clear_cutscene 
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2747
set_car_visible 40@ {state} True
freeze_car_position 40@ {state} False
set_car_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 40@

:LA1FIN2_2747
remove_blip 50@
50@ = add_blip_for_coord 1648.714 {y} -1050.094 {z} 22.9141
print 'LA1_8' {time} 5000 {flag} 1
$carhealth_f1 = 100
116@ = 1
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
display_onscreen_counter_with_string $carhealth_f1 {display} CounterDisplay.Bar {text} 'LA1_4'
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2964
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @LA1FIN2_2964
118@ = get_driver_of_car 40@
if 
  not is_int_lvar_equal_to_int_var 118@ == $scplayer
goto_if_false @LA1FIN2_2946
if 
  not is_char_dead 118@
goto_if_false @LA1FIN2_2946
delete_char 118@

:LA1FIN2_2946
warp_char_into_car $scplayer {vehicle} 40@
mark_car_as_no_longer_needed 40@
mark_model_as_no_longer_needed 401

:LA1FIN2_2964
task_leave_any_car $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
100@ = 4
101@ = 0
switch_emergency_services False
return 

:LA1FIN2_2993
gosub @LA1FIN2_13791
gosub @LA1FIN2_15316
if 
  119@ == 0
goto_if_false @LA1FIN2_3113
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_y > -1800.0
goto_if_false @LA1FIN2_3113
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3113
437@ = 10
438@ = 2
119@ = 1
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 6000

:LA1FIN2_3113
if 
  119@ == 1
goto_if_false @LA1FIN2_3187
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3187
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_3187
437@ = 12
438@ = 5
119@ = 2

:LA1FIN2_3187
if and
  119@ > 0
  3 > 119@
goto_if_false @LA1FIN2_3256
if 
  not is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3256
494@ = 0
437@ = 0
438@ = 0
119@ = 3

:LA1FIN2_3256
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 117@
goto_if_false @LA1FIN2_3440
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3332
if 
  84@ == 1
goto_if_false @LA1FIN2_3324
set_char_health 238@ {health} $carhealth_f1
84@ = 0

:LA1FIN2_3324
$carhealth_f1 = get_char_health 238@

:LA1FIN2_3332
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
121@ = generate_random_int_in_range 4 {max} 8
sub_int_lvar_from_int_var $carhealth_f1 -= 121@
if 
  0 >= $carhealth_f1
goto_if_false @LA1FIN2_3416
$carhealth_f1 = 0
print 'LA1_16' {time} 4000 {flag} 1
34@ = 1

:LA1FIN2_3416
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3440
set_char_health 238@ {health} $carhealth_f1

:LA1FIN2_3440
if 
  101@ == 0
goto_if_false @LA1FIN2_3664
if 
  255@ == 2
goto_if_false @LA1FIN2_3664
if 
  locate_char_any_means_3d $scplayer {x} 1648.714 {y} -1050.094 {z} 22.9141 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LA1FIN2_3577
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3570
set_char_proofs 238@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LA1FIN2_3570
101@ = 1

:LA1FIN2_3577
if 
  99@ == 6
goto_if_false @LA1FIN2_3664
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3641
set_char_proofs 238@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LA1FIN2_3641
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000

:LA1FIN2_3664
if 
  101@ == 1
goto_if_false @LA1FIN2_3727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_3727
remove_blip 50@
set_player_control $player1 {state} False
do_fade 800 {direction} Fade.Out
101@ = 2

:LA1FIN2_3727
if 
  101@ == 2
goto_if_false @LA1FIN2_3929
if 
  not get_fading_status 
goto_if_false @LA1FIN2_3929
100@ = 5
101@ = 0
set_lvar_int_to_lvar_int 481@ = 238@
286@ = 1
310@ = 9
290@ = 2440
291@ = 5629
292@ = 7974
293@ = 10516
294@ = 13463
295@ = 16047
296@ = 19236
297@ = 21747
298@ = 24483
300@ = 1
301@ = 2
302@ = 3
303@ = 4
304@ = 5
305@ = 6
306@ = 7
307@ = 8
308@ = 9

:LA1FIN2_3929
return 

:LA1FIN2_3931
gosub @LA1FIN2_15316
if 
  101@ > 2
goto_if_false @LA1FIN2_4010
if 
  not get_fading_status 
goto_if_false @LA1FIN2_4010
if 
  is_skip_cutscene_button_pressed 
goto_if_false @LA1FIN2_4010
gosub @LA1FIN2_11408
101@ = 10
102@ = 0
436@ = 5

:LA1FIN2_4010
if 
  101@ == 0
goto_if_false @LA1FIN2_5066
101@ = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1646.703 {y} -1046.744 {z} 25.6308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1646.621 {y} -1047.7111 {z} 25.3892 {switchStyle} SwitchType.JumpCut
request_animation "SWEET"
set_near_clip 0.1
if 
  not is_car_dead 235@
goto_if_false @LA1FIN2_4214
if 
  locate_car_3d 235@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4214
set_car_coordinates 235@ {x} 1649.5551 {y} -1055.767 {z} 22.8984
set_car_heading 235@ {heading} 329.5791
freeze_car_position 235@ {state} True

:LA1FIN2_4214
if 
  not is_car_dead 236@
goto_if_false @LA1FIN2_4315
if 
  locate_car_3d 236@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4315
set_car_coordinates 236@ {x} 1644.42 {y} -1057.843 {z} 22.9062
set_car_heading 236@ {heading} 227.8
freeze_car_position 236@ {state} True

:LA1FIN2_4315
if 
  not is_car_dead 237@
goto_if_false @LA1FIN2_4416
if 
  locate_car_3d 237@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4416
set_car_coordinates 237@ {x} 1643.845 {y} -1051.736 {z} 22.9219
set_car_heading 237@ {heading} 149.9008
freeze_car_position 237@ {state} True

:LA1FIN2_4416
if 
  not is_car_dead 233@
goto_if_false @LA1FIN2_4510
if 
  locate_car_3d 233@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4510
set_car_coordinates 233@ {x} 1640.603 {y} -1071.537 {z} 22.9141
set_car_heading 233@ {heading} 61.7966

:LA1FIN2_4510
if 
  not is_car_dead 234@
goto_if_false @LA1FIN2_4604
if 
  locate_car_3d 234@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4604
set_car_coordinates 234@ {x} 1660.943 {y} -1059.201 {z} 22.9141
set_car_heading 234@ {heading} 148.6633

:LA1FIN2_4604
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_4628
set_char_decision_maker 238@ {handleOrTemplate} 103@

:LA1FIN2_4628
if 
  not is_char_dead 239@
goto_if_false @LA1FIN2_4703
set_char_decision_maker 239@ {handleOrTemplate} 231@
set_char_coordinates 239@ {x} 1646.283 {y} -1057.209 {z} 22.8984
set_char_heading 239@ {heading} 147.187
set_char_kinda_stay_in_same_place 239@ {state} False
set_char_stay_in_same_place 239@ {state} True
task_toggle_duck 239@ {state} True

:LA1FIN2_4703
if 
  not is_char_dead 240@
goto_if_false @LA1FIN2_4778
set_char_decision_maker 240@ {handleOrTemplate} 231@
set_char_coordinates 240@ {x} 1644.1021 {y} -1055.319 {z} 22.9062
set_char_heading 240@ {heading} 117.4901
set_char_kinda_stay_in_same_place 240@ {state} False
set_char_stay_in_same_place 240@ {state} True
task_toggle_duck 240@ {state} True

:LA1FIN2_4778
if 
  not is_char_dead 241@
goto_if_false @LA1FIN2_4846
set_char_decision_maker 241@ {handleOrTemplate} 231@
set_char_coordinates 241@ {x} 1646.229 {y} -1051.182 {z} 23.9257
set_char_heading 241@ {heading} 90.0187
set_char_kinda_stay_in_same_place 241@ {state} False
set_char_stay_in_same_place 241@ {state} True

:LA1FIN2_4846
if 
  not is_char_dead 243@
goto_if_false @LA1FIN2_4890
set_char_coordinates 243@ {x} 1622.276 {y} -1044.679 {z} 22.8984
task_turn_char_to_face_char 243@ {target} $scplayer

:LA1FIN2_4890
if 
  not is_char_dead 244@
goto_if_false @LA1FIN2_4934
set_char_coordinates 244@ {x} 1631.5229 {y} -1060.417 {z} 23.011
task_turn_char_to_face_char 244@ {target} $scplayer

:LA1FIN2_4934
if 
  not is_char_dead 245@
goto_if_false @LA1FIN2_4978
set_char_coordinates 245@ {x} 1638.76 {y} -1072.36 {z} 22.8984
task_turn_char_to_face_char 245@ {target} $scplayer

:LA1FIN2_4978
if 
  not is_char_dead 246@
goto_if_false @LA1FIN2_5022
set_char_coordinates 246@ {x} 1649.349 {y} -1077.868 {z} 22.9062
task_turn_char_to_face_char 246@ {target} $scplayer

:LA1FIN2_5022
if 
  not is_char_dead 247@
goto_if_false @LA1FIN2_5066
set_char_coordinates 247@ {x} 1663.619 {y} -1058.4189 {z} 22.8984
task_turn_char_to_face_char 247@ {target} $scplayer

:LA1FIN2_5066
if 
  101@ == 1
goto_if_false @LA1FIN2_5118
if 
  has_animation_loaded "SWEET"
goto_if_false @LA1FIN2_5118
do_fade 1000 {direction} Fade.In
101@ = 2

:LA1FIN2_5118
if 
  101@ == 2
goto_if_false @LA1FIN2_5456
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_5179
warp_char_from_car_to_coord $scplayer {x} 1648.0341 {y} -1053.9561 {z} 22.9
goto @LA1FIN2_5199

:LA1FIN2_5179
set_char_coordinates $scplayer {x} 1648.0341 {y} -1053.9561 {z} 22.9

:LA1FIN2_5199
set_char_heading $scplayer {heading} 150.0
set_char_collision $scplayer {state} False
87@ = get_current_char_weapon $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_5341
set_char_coordinates 238@ {x} 1647.71 {y} -1054.517 {z} 22.9
set_char_heading 238@ {heading} -30.0
remove_all_char_weapons 238@
set_current_char_weapon 238@ {weaponType} WeaponType.Unarmed
set_char_collision 238@ {state} False
clear_char_tasks_immediately 238@
task_play_anim_non_interruptable 238@ {animationName} "LAFIN_SWEET" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2

:LA1FIN2_5341
task_play_anim_non_interruptable $scplayer {animationName} "LAFIN_PLAYER" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
set_fixed_camera_position 1647.577 {y} -1048.104 {z} 25.4666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1647.281 {y} -1048.998 {z} 25.1312 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2500
101@ = 4

:LA1FIN2_5456
if 
  101@ == 4
goto_if_false @LA1FIN2_5590
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5590
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_5516
set_char_bleeding 238@ {state} True

:LA1FIN2_5516
set_fixed_camera_position 1649.2 {y} -1053.592 {z} 23.6475 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1648.2791 {y} -1053.97 {z} 23.7426 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 3700
101@ = 5

:LA1FIN2_5590
if 
  101@ == 5
goto_if_false @LA1FIN2_5650
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5650
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 7800
101@ = 6

:LA1FIN2_5650
if 
  101@ == 6
goto_if_false @LA1FIN2_5710
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5710
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 5000
101@ = 7

:LA1FIN2_5710
if 
  101@ == 7
goto_if_false @LA1FIN2_5770
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5770
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
101@ = 8

:LA1FIN2_5770
if 
  101@ == 8
goto_if_false @LA1FIN2_5795
gosub @LA1FIN2_11408

:LA1FIN2_5795
if 
  101@ == 9
goto_if_false @LA1FIN2_5924
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5924
set_fixed_camera_position 1651.996 {y} -1051.222 {z} 26.061 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1651.089 {y} -1051.5341 {z} 25.778 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} 87@
set_char_heading $scplayer {heading} 90.0
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500
101@ = 10

:LA1FIN2_5924
if 
  101@ == 10
goto_if_false @LA1FIN2_6193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_6193
set_current_char_weapon $scplayer {weaponType} 87@
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
clear_char_tasks_immediately $scplayer
clear_onscreen_counter $carhealth_f1
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_6092
task_play_anim_non_interruptable 238@ {animationName} "SWEET_INJUREDLOOP" {animationFile} "SWEET" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
set_char_collision 238@ {state} True
freeze_char_position 238@ {state} True

:LA1FIN2_6092
if 
  not is_car_dead 235@
goto_if_false @LA1FIN2_6115
freeze_car_position 235@ {state} False

:LA1FIN2_6115
if 
  not is_car_dead 236@
goto_if_false @LA1FIN2_6138
freeze_car_position 236@ {state} False

:LA1FIN2_6138
if 
  not is_car_dead 237@
goto_if_false @LA1FIN2_6161
freeze_car_position 237@ {state} False

:LA1FIN2_6161
100@ = 6
101@ = 0
clear_prints 
print 'LA1_31' {time} 5000 {flag} 1

:LA1FIN2_6193
return 

:LA1FIN2_6195
gosub @LA1FIN2_13791
gosub @LA1FIN2_15316
if 
  101@ == 0
goto_if_false @LA1FIN2_6257
if 
  99@ == 4
goto_if_false @LA1FIN2_6257
request_model 413
101@ = 1

:LA1FIN2_6257
if 
  101@ == 1
goto_if_false @LA1FIN2_6737
if 
  has_model_loaded 413
goto_if_false @LA1FIN2_6737
46@ = create_car 413 {x} 1553.697 {y} -1046.83 {z} 22.7992
clear_prints 
print 'LA1_36' {time} 5000 {flag} 1
269@ = 0

:LA1FIN2_6339
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6373
269@ += 1
goto @LA1FIN2_6339

:LA1FIN2_6373
create_char_inside_car 46@ {pedType} PedType.Mission2 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
set_car_heading 46@ {heading} 270.0
105@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 46@ {x} 1614.755 {y} -1050.441 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 46@ {x} 1630.5341 {y} -1067.925 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 105@
perform_sequence_task 243@(269@,6i) {sequence} 105@
clear_sequence_task 105@
set_car_forward_speed 46@ {forwardSpeed} 20.0
269@ += 1

:LA1FIN2_6547
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6581
269@ += 1
goto @LA1FIN2_6547

:LA1FIN2_6581
create_char_as_passenger 46@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_6644
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6678
269@ += 1
goto @LA1FIN2_6644

:LA1FIN2_6678
create_char_as_passenger 46@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
101@ = 2
99@ -= 3

:LA1FIN2_6737
if 
  101@ == 2
goto_if_false @LA1FIN2_7627
if 
  97@ == 0
goto_if_false @LA1FIN2_6842
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_6842
81@ = get_car_health 46@
if 
  980 > 81@
goto_if_false @LA1FIN2_6842
if 
  has_car_been_damaged_by_char 46@ {handle} $scplayer
goto_if_false @LA1FIN2_6842
97@ = 1

:LA1FIN2_6842
if 
  97@ == 1
goto_if_false @LA1FIN2_7045
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7045
if and
  not is_car_dead 46@
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7045
270@, 271@, 272@ = get_car_coordinates 46@
276@ = get_car_heading 46@
set_lvar_float_to_lvar_float 277@ = 276@
277@ -= 20.0
276@ -= 90.0
111@ = cos 276@
112@ = sin 276@
111@ *= 20.0
112@ *= 20.0
sub_float_lvar_from_float_lvar 270@ -= 112@
add_float_lvar_to_float_lvar 271@ += 111@
task_car_drive_to_coord 243@(37@,6i) {vehicle} 46@ {x} 270@ {y} 271@ {z} 272@ {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
97@ = 2

:LA1FIN2_7045
if 
  97@ == 2
goto_if_false @LA1FIN2_7129
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7129
276@ = get_car_heading 46@
if 
  is_float_lvar_greater_than_float_lvar 277@ > 276@
goto_if_false @LA1FIN2_7129
97@ = 3
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 800

:LA1FIN2_7129
if 
  97@ == 3
goto_if_false @LA1FIN2_7225
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7183
add_to_car_rotation_velocity 46@ {x} 0.0 {y} -0.35 {z} 0.2

:LA1FIN2_7183
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7225
97@ = 4
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 1000

:LA1FIN2_7225
if 
  97@ == 4
goto_if_false @LA1FIN2_7307
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7307
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7307
clear_char_tasks 243@(37@,6i)
task_leave_any_car 243@(37@,6i)
97@ = 5

:LA1FIN2_7307
if 
  94@ == 0
goto_if_false @LA1FIN2_7377
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7377
276@ = get_car_speed 46@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_7377
94@ = 1

:LA1FIN2_7377
if 
  94@ == 1
goto_if_false @LA1FIN2_7604
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7604
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7473
set_char_stay_in_same_place 243@(37@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} False
task_leave_any_car 243@(37@,6i)
75@(37@,6i) = 0

:LA1FIN2_7473
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_7535
set_char_stay_in_same_place 243@(38@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} False
task_leave_any_car 243@(38@,6i)
75@(38@,6i) = 0

:LA1FIN2_7535
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_7597
set_char_stay_in_same_place 243@(39@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} False
task_leave_any_car 243@(39@,6i)
75@(39@,6i) = 0

:LA1FIN2_7597
101@ = 3

:LA1FIN2_7604
if 
  is_car_dead 46@
goto_if_false @LA1FIN2_7627
101@ = 3

:LA1FIN2_7627
if 
  101@ == 3
goto_if_false @LA1FIN2_7987
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_7742
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7742
85@ = get_script_task_status 243@(37@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7742
75@(37@,6i) = 0
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} True

:LA1FIN2_7742
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_7839
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_7839
85@ = get_script_task_status 243@(38@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7839
75@(38@,6i) = 0
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} True

:LA1FIN2_7839
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_7936
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_7936
85@ = get_script_task_status 243@(39@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7936
75@(39@,6i) = 0
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} True

:LA1FIN2_7936
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_7987
101@ = 4

:LA1FIN2_7987
if 
  101@ == 4
goto_if_false @LA1FIN2_8476
if 
  99@ >= 4
goto_if_false @LA1FIN2_8476
47@ = create_car 413 {x} 1525.366 {y} -1022.267 {z} 22.9105
clear_prints 
print 'LA1_37' {time} 5000 {flag} 1
269@ = 0

:LA1FIN2_8071
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8105
269@ += 1
goto @LA1FIN2_8071

:LA1FIN2_8105
create_char_inside_car 47@ {pedType} PedType.Mission2 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
set_car_heading 47@ {heading} 270.0
105@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1637.666 {y} -1021.644 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1651.127 {y} -1028.5229 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 105@
perform_sequence_task 243@(269@,6i) {sequence} 105@
clear_sequence_task 105@
set_car_forward_speed 47@ {forwardSpeed} 20.0
269@ += 1

:LA1FIN2_8268
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8302
269@ += 1
goto @LA1FIN2_8268

:LA1FIN2_8302
create_char_as_passenger 47@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_8365
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8399
269@ += 1
goto @LA1FIN2_8365

:LA1FIN2_8399
create_char_as_passenger 47@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
94@ = 0
101@ = 5
99@ -= 3

:LA1FIN2_8476
if 
  101@ == 5
goto_if_false @LA1FIN2_8871
if 
  94@ == 0
goto_if_false @LA1FIN2_8564
if 
  not is_car_dead 47@
goto_if_false @LA1FIN2_8564
276@ = get_car_speed 47@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_8564
94@ = 1

:LA1FIN2_8564
if 
  94@ == 1
goto_if_false @LA1FIN2_8848
if 
  not is_car_dead 47@
goto_if_false @LA1FIN2_8848
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_8679
task_go_straight_to_coord 243@(37@,6i) {x} 1654.968 {y} -1041.3719 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(37@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} False
75@(37@,6i) = 1

:LA1FIN2_8679
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_8760
task_go_straight_to_coord 243@(38@,6i) {x} 1650.469 {y} -1041.517 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(38@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} False
75@(38@,6i) = 1

:LA1FIN2_8760
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_8841
task_go_straight_to_coord 243@(39@,6i) {x} 1640.806 {y} -1041.5551 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(39@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} False
75@(39@,6i) = 1

:LA1FIN2_8841
101@ = 6

:LA1FIN2_8848
if 
  is_car_dead 47@
goto_if_false @LA1FIN2_8871
101@ = 6

:LA1FIN2_8871
if 
  101@ == 6
goto_if_false @LA1FIN2_9231
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_8986
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_8986
85@ = get_script_task_status 243@(37@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_8986
75@(37@,6i) = 0
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} True

:LA1FIN2_8986
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_9083
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_9083
85@ = get_script_task_status 243@(38@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9083
75@(38@,6i) = 0
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} True

:LA1FIN2_9083
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_9180
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_9180
85@ = get_script_task_status 243@(39@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9180
75@(39@,6i) = 0
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} True

:LA1FIN2_9180
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_9231
101@ = 8

:LA1FIN2_9231
if 
  101@ == 8
goto_if_false @LA1FIN2_9339
if 
  99@ >= 3
goto_if_false @LA1FIN2_9339
clear_prints 
print 'LA1_38' {time} 5000 {flag} 1
gosub @LA1FIN2_12007
99@ -= 3
101@ = 9
75@(38@,6i) = 1
75@(39@,6i) = 1
75@(37@,6i) = 1

:LA1FIN2_9339
if 
  101@ == 9
goto_if_false @LA1FIN2_9478
gosub @LA1FIN2_13115
269@ = 0
99@ = 0

:LA1FIN2_9378
if 
  6 > 269@
goto_if_false @LA1FIN2_9437
if 
  is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_9423
99@ += 1

:LA1FIN2_9423
269@ += 1
goto @LA1FIN2_9378

:LA1FIN2_9437
if 
  99@ >= 6
goto_if_false @LA1FIN2_9478
101@ = 10
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 1500

:LA1FIN2_9478
if 
  101@ == 10
goto_if_false @LA1FIN2_9531
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_9531
101@ = 0
100@ = 7
clear_help 

:LA1FIN2_9531
return 

:LA1FIN2_9533
267@ = 0

:LA1FIN2_9540
if 
  3 > 267@
goto_if_false @LA1FIN2_9755
if 
  128@(267@,3i) == 1
goto_if_false @LA1FIN2_9741
if 
  not is_car_dead 122@(267@,3i)
goto_if_false @LA1FIN2_9741
if 
  not is_playback_going_on_for_car 122@(267@,3i)
goto_if_false @LA1FIN2_9741
if 
  not is_char_dead 125@(267@,3i)
goto_if_false @LA1FIN2_9741
131@ = open_sequence_task 
task_leave_any_car -1
task_aim_gun_at_coord -1 {x} 1646.332 {y} -1053.7209 {z} 23.385 {time} 10000
close_sequence_task 131@
perform_sequence_task 125@(267@,3i) {sequence} 131@
clear_sequence_task 131@
128@(267@,3i) = 2
132@ = get_script_task_status $scplayer {taskId} 1476
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @LA1FIN2_9741
task_hands_up $scplayer {time} 15000

:LA1FIN2_9741
267@ += 1
goto @LA1FIN2_9540

:LA1FIN2_9755
if 
  101@ == 0
goto_if_false @LA1FIN2_9874
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
do_fade 500 {direction} Fade.Out
request_car_recording 162
request_car_recording 163
request_car_recording 650
request_model 596
request_model 280
request_model 346
request_animation "POLICE"
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
35@ = 0

:LA1FIN2_9874
if 
  101@ == 1
goto_if_false @LA1FIN2_9996
if 
  not get_fading_status 
goto_if_false @LA1FIN2_9996
if and
  has_car_recording_been_loaded 162
  has_car_recording_been_loaded 163
  has_car_recording_been_loaded 650
goto_if_false @LA1FIN2_9996
if and
  has_model_loaded 596
  has_model_loaded 280
  has_model_loaded 346
  has_animation_loaded "POLICE"
goto_if_false @LA1FIN2_9996
load_scene_in_direction 1584.291 {y} -1143.877 {z} 23.8226 {heading} 180.0
101@ = 2

:LA1FIN2_9996
if 
  101@ == 2
goto_if_false @LA1FIN2_10040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10040
101@ = 3

:LA1FIN2_10040
if 
  101@ == 3
goto_if_false @LA1FIN2_10369
122@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
123@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
124@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
125@ = create_char_inside_car 122@ {pedType} PedType.CivMale {modelId} 280
126@ = create_char_inside_car 123@ {pedType} PedType.CivMale {modelId} 280
127@ = create_char_inside_car 124@ {pedType} PedType.CivMale {modelId} 280
give_weapon_to_char 125@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 126@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 127@ {weaponType} WeaponType.Pistol {ammo} 99999
switch_car_siren 122@ {state} True
switch_car_siren 123@ {state} True
switch_car_siren 124@ {state} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1584.291 {fromY} -1143.877 {fromZ} 23.8226 {toX} 1584.291 {toY} -1143.877 {toZ} 23.8226 {time} 3000 {ease} True
camera_set_vector_track 1583.9041 {fromY} -1144.799 {fromZ} 23.802 {toX} 1585.228 {toY} -1144.223 {toZ} 23.802 {time} 3000 {ease} True
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 1647.222 {y} -1053.363 {z} 22.9815
start_playback_recorded_car 122@ {path} 162
101@ = 4
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 300

:LA1FIN2_10369
if 
  101@ == 4
goto_if_false @LA1FIN2_10542
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10542
do_fade 600 {direction} Fade.In
if and
  not is_car_dead 123@
  not is_car_dead 124@
goto_if_false @LA1FIN2_10519
if and
  has_car_recording_been_loaded 162
  has_car_recording_been_loaded 163
  has_car_recording_been_loaded 650
goto_if_false @LA1FIN2_10504
start_playback_recorded_car 123@ {path} 163
start_playback_recorded_car 124@ {path} 650
128@ = 1
129@ = 1
130@ = 1
goto @LA1FIN2_10519

:LA1FIN2_10504
request_car_recording 162
request_car_recording 163
request_car_recording 650

:LA1FIN2_10519
101@ = 5
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2700

:LA1FIN2_10542
if 
  101@ == 5
goto_if_false @LA1FIN2_11058
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11058
133@ = create_char PedType.Mission3 {modelId} 102 {x} 1648.907 {y} -1063.17 {z} 22.99
134@ = create_char PedType.Mission3 {modelId} 102 {x} 1639.755 {y} -1067.994 {z} 22.9478
135@ = create_char PedType.Mission3 {modelId} 102 {x} 1632.4449 {y} -1058.078 {z} 23.0987
136@ = create_char PedType.Mission3 {modelId} 102 {x} 1640.3 {y} -1069.299 {z} 22.9448
task_flee_point 133@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 134@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 135@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 136@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
if 
  not is_char_dead 239@
goto_if_false @LA1FIN2_10870
clear_char_tasks_immediately 239@
set_char_stay_in_same_place 239@ {state} False
set_char_kinda_stay_in_same_place 239@ {state} False
set_char_coordinates 239@ {x} 1649.465 {y} -1059.308 {z} 22.8984
task_flee_point 239@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_10870
if 
  not is_char_dead 240@
goto_if_false @LA1FIN2_10953
clear_char_tasks_immediately 240@
set_char_stay_in_same_place 240@ {state} False
set_char_kinda_stay_in_same_place 240@ {state} False
set_char_coordinates 240@ {x} 1642.0811 {y} -1057.882 {z} 22.9062
task_flee_point 240@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_10953
if 
  not is_char_dead 241@
goto_if_false @LA1FIN2_11036
clear_char_tasks_immediately 241@
set_char_stay_in_same_place 241@ {state} False
set_char_kinda_stay_in_same_place 241@ {state} False
set_char_coordinates 241@ {x} 1640.84 {y} -1051.631 {z} 22.9062
task_flee_point 241@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_11036
101@ = 6
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 100

:LA1FIN2_11058
if 
  101@ == 6
goto_if_false @LA1FIN2_11171
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11171
camera_reset_new_scriptables 
set_fixed_camera_position 1648.645 {y} -1049.3571 {z} 26.0388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1648.533 {y} -1050.337 {z} 25.8716 {switchStyle} SwitchType.JumpCut
101@ = 8
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500

:LA1FIN2_11171
if 
  101@ == 8
goto_if_false @LA1FIN2_11315
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11315
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1648.645 {fromY} -1049.3571 {fromZ} 26.0388 {toX} 1662.257 {toY} -1029.2061 {toZ} 46.3953 {time} 7500 {ease} True
camera_set_vector_track 1648.533 {fromY} -1050.337 {fromZ} 25.8716 {toX} 1661.88 {toY} -1029.896 {toZ} 45.7777 {time} 7500 {ease} True
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6000
101@ = 9

:LA1FIN2_11315
if 
  101@ == 9
goto_if_false @LA1FIN2_11366
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11366
do_fade 1500 {direction} Fade.Out
101@ = 10

:LA1FIN2_11366
if 
  101@ == 10
goto_if_false @LA1FIN2_11406
if 
  not get_fading_status 
goto_if_false @LA1FIN2_11406
100@ = 8
camera_reset_new_scriptables 

:LA1FIN2_11406
return 

:LA1FIN2_11408
delete_char 243@
243@ = create_char PedType.Mission2 {modelId} 102 {x} 1613.231 {y} -1053.684 {z} 22.8984
set_char_heading 243@ {heading} 271.724
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@ {state} True
task_toggle_duck 243@ {state} True
task_go_straight_to_coord 243@ {x} 1622.541 {y} -1045.0081 {z} 22.8984 {speed} MoveState.Run {time} -2
delete_char 244@
244@ = create_char PedType.Mission2 {modelId} 102 {x} 1612.707 {y} -1054.2 {z} 22.8984
set_char_heading 244@ {heading} 285.7294
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 244@ {state} True
task_toggle_duck 244@ {state} True
task_go_straight_to_coord 244@ {x} 1631.4709 {y} -1059.379 {z} 22.9623 {speed} MoveState.Run {time} -2
delete_char 245@
245@ = create_char PedType.Mission2 {modelId} 102 {x} 1617.219 {y} -1057.973 {z} 22.8984
set_char_heading 245@ {heading} 265.7294
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 245@ {state} True
task_toggle_duck 245@ {state} True
task_go_straight_to_coord 245@ {x} 1633.035 {y} -1064.7159 {z} 22.9162 {speed} MoveState.Run {time} -2
if 
  is_char_dead 246@
goto_if_false @LA1FIN2_11815
246@ = create_char PedType.Mission2 {modelId} 102 {x} 1670.707 {y} -1082.179 {z} 22.9062
set_char_heading 246@ {heading} 25.7294
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 246@ {state} True
task_toggle_duck 246@ {state} True
task_go_straight_to_coord 246@ {x} 1659.903 {y} -1067.094 {z} 23.0077 {speed} MoveState.Run {time} -2

:LA1FIN2_11815
if 
  is_char_dead 247@
goto_if_false @LA1FIN2_11925
247@ = create_char PedType.Mission2 {modelId} 102 {x} 1665.267 {y} -1090.467 {z} 22.9062
set_char_heading 247@ {heading} 25.7294
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 247@ {state} True
task_toggle_duck 247@ {state} True
task_go_straight_to_coord 247@ {x} 1649.499 {y} -1077.795 {z} 22.9062 {speed} MoveState.Run {time} -2

:LA1FIN2_11925
101@ = 9
269@ = 0
99@ = 0

:LA1FIN2_11946
if 
  6 > 269@
goto_if_false @LA1FIN2_12005
if 
  is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_11991
99@ += 1

:LA1FIN2_11991
269@ += 1
goto @LA1FIN2_11946

:LA1FIN2_12005
return 

:LA1FIN2_12007
182@ = 1609.194
183@ = 1619.722
184@ = 1633.494
185@ = 1656.4399
186@ = 1665.51
187@ = 1667.756
188@ = 1665.79
189@ = 1654.9771
190@ = 1651.2061
191@ = 1640.057
192@ = 1623.256
193@ = 1662.567
194@ = 1643.7061
195@ = 1627.394
196@ = 1627.083
197@ = 1634.311
198@ = 1650.963
199@ = 1664.3051
200@ = 1670.2729
201@ = 1625.144
202@ = 1639.764
203@ = 1657.49
204@ = 1672.007
205@ = -1047.464
206@ = -1036.524
207@ = -1031.437
208@ = -1034.01
209@ = -1043.593
210@ = -1045.496
211@ = -1049.248
212@ = -1058.438
213@ = -1068.1689
214@ = -1079.37
215@ = -1071.975
216@ = -1048.286
217@ = -1046.566
218@ = -1052.399
219@ = -1051.446
220@ = -1057.1801
221@ = -1067.062
222@ = -1071.1169
223@ = -1061.623
224@ = -1063.712
225@ = -1066.03
226@ = -1071.223
227@ = -1063.609
137@ = 0
147@ = 5
138@ = 6
148@ = 10
139@ = 11
149@ = 13
140@ = 14
150@ = 18
141@ = 19
151@ = 22
142@ = 5
152@ = 0
143@ = 10
153@ = 6
144@ = 13
154@ = 11
145@ = 18
155@ = 14
146@ = 22
156@ = 19
157@ = 1
167@ = 9
158@ = 0
168@ = 7
159@ = 6
169@ = 4
160@ = 5
170@ = 2
161@ = 2
171@ = 5
162@ = 6
172@ = 3
163@ = 8
173@ = 5
164@ = 5
174@ = 9
165@ = 0
175@ = 6
166@ = 7
176@ = 0
48@ = create_car 405 {x} 1582.131 {y} -1043.6689 {z} 22.9141
set_car_heading 48@ {heading} 270.0
set_car_heavy 48@ {state} True
set_car_forward_speed 48@ {forwardSpeed} 20.0
269@ = 0

:LA1FIN2_12804
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_12838
269@ += 1
goto @LA1FIN2_12804

:LA1FIN2_12838
create_char_inside_car 48@ {pedType} PedType.Mission3 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_12899
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_12933
269@ += 1
goto @LA1FIN2_12899

:LA1FIN2_12933
create_char_as_passenger 48@ {pedType} PedType.Mission3 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_12996
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_13030
269@ += 1
goto @LA1FIN2_12996

:LA1FIN2_13030
create_char_as_passenger 48@ {pedType} PedType.Mission3 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
set_char_decision_maker 243@(38@,6i) {handleOrTemplate} 104@
set_char_decision_maker 243@(39@,6i) {handleOrTemplate} 104@
178@ = 1
179@ = 1
return 

:LA1FIN2_13115
if and
  not is_car_dead 48@
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_13789
276@ = get_car_speed 48@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13210
if 
  82@ == 0
goto_if_false @LA1FIN2_13210
82@ = 1
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 1500

:LA1FIN2_13210
if 
  82@ == 1
goto_if_false @LA1FIN2_13334
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13327
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 83@
goto_if_false @LA1FIN2_13320
179@ = 2
82@ = 2
task_everyone_leave_car 48@
75@(38@,6i) = 0
75@(39@,6i) = 0
75@(37@,6i) = 0

:LA1FIN2_13320
goto @LA1FIN2_13334

:LA1FIN2_13327
82@ = 0

:LA1FIN2_13334
if 
  179@ == 0
goto_if_false @LA1FIN2_13403
if 
  locate_car_3d 48@ {x} 180@ {y} 181@ {z} 22.0 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @LA1FIN2_13403
179@ = 1

:LA1FIN2_13403
if 
  179@ == 1
goto_if_false @LA1FIN2_13771
177@ = generate_random_int_in_range 0 {max} 2
if 
  177@ == 0
goto_if_false @LA1FIN2_13467
set_lvar_int_to_lvar_int 178@ = 157@(178@,10i)
goto @LA1FIN2_13479

:LA1FIN2_13467
set_lvar_int_to_lvar_int 178@ = 167@(178@,10i)

:LA1FIN2_13479
set_lvar_int_to_lvar_int 85@ = 137@(178@,10i)
flush_route 
228@, 229@, 230@ = get_car_coordinates 48@
if 
  is_int_lvar_greater_than_int_lvar 147@(178@,10i) > 137@(178@,10i)
goto_if_false @LA1FIN2_13623

:LA1FIN2_13534
if 
  is_int_lvar_greater_or_equal_to_int_lvar 147@(178@,10i) >= 85@
goto_if_false @LA1FIN2_13616
extend_route 182@(85@,23f) {y} 205@(85@,23f) {z} 22.0
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ += 1
goto @LA1FIN2_13534

:LA1FIN2_13616
goto @LA1FIN2_13705

:LA1FIN2_13623
if 
  is_int_lvar_greater_or_equal_to_int_lvar 85@ >= 147@(178@,10i)
goto_if_false @LA1FIN2_13705
extend_route 182@(85@,23f) {y} 205@(85@,23f) {z} 22.0
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ -= 1
goto @LA1FIN2_13623

:LA1FIN2_13705
task_drive_point_route_advanced 243@(37@,6i) {vehicle} 48@ {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
179@ = 0
set_lvar_int_to_lvar_int 85@ = 147@(178@,10i)
set_lvar_float_to_lvar_float 180@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 181@ = 205@(85@,23f)

:LA1FIN2_13771
if 
  179@ == 2
goto_if_false @LA1FIN2_13789

:LA1FIN2_13789
return 

:LA1FIN2_13791
if 
  255@ == 0
goto_if_false @LA1FIN2_14171
if 
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 70.0 {drawSphere} False
goto_if_false @LA1FIN2_14171
255@ = 1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
231@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
232@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
clear_char_decision_maker_event_response 231@ {event} Event.ShotFired
clear_char_decision_maker_event_response 231@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 231@ {event} Event.Damage
clear_char_decision_maker_event_response 231@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 231@ {event} Event.SeenPanickedPed
clear_char_decision_maker_event_response 231@ {event} Event.DeadPed
clear_char_decision_maker_event_response 232@ {event} Event.ShotFired
clear_char_decision_maker_event_response 232@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 232@ {event} Event.Damage
clear_char_decision_maker_event_response 232@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 232@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 232@ {event} Event.DeadPed
clear_char_decision_maker_event_response 232@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 231@ {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 75.0 {like} 0.0 {dislike} 75.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 25.0 {like} 0.0 {dislike} 25.0 {inCar} True {onFoot} True
request_model 475
request_model 405
request_model 105
request_model 102
request_model 353
load_special_character 1 {modelName} 'SWEET'

:LA1FIN2_14171
if 
  255@ == 1
goto_if_false @LA1FIN2_15213
if and
  has_model_loaded 475
  has_model_loaded 105
  has_model_loaded 102
  has_model_loaded 353
  has_model_loaded 405
goto_if_false @LA1FIN2_15213
if and
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 70.0 {drawSphere} False
  has_special_character_loaded 1
goto_if_false @LA1FIN2_15213
235@ = create_car 405 {x} 1649.5551 {y} -1055.767 {z} 22.8984
236@ = create_car 405 {x} 1644.42 {y} -1057.843 {z} 22.9062
237@ = create_car 405 {x} 1643.845 {y} -1051.736 {z} 22.9219
233@ = create_car 475 {x} 1640.603 {y} -1071.537 {z} 22.9141
234@ = create_car 475 {x} 1660.943 {y} -1059.201 {z} 22.9141
set_car_heading 235@ {heading} 329.5791
set_car_heading 236@ {heading} 227.8
set_car_heading 237@ {heading} 149.9008
set_car_heading 233@ {heading} 61.7966
set_car_heading 234@ {heading} 148.6633
set_car_strong 235@ {state} True
set_car_strong 236@ {state} True
set_car_strong 237@ {state} True
set_car_strong 233@ {state} True
set_car_strong 234@ {state} True
open_car_door 233@ {door} CarDoor.RightFrontDoor
open_car_door 234@ {door} CarDoor.RightFrontDoor
open_car_door 234@ {door} CarDoor.LeftFrontDoor
238@ = create_char PedType.Mission1 {modelId} 290 {x} 1648.556 {y} -1054.473 {z} 22.8984
239@ = create_char PedType.Mission1 {modelId} 105 {x} 1648.556 {y} -1054.473 {z} 22.8984
240@ = create_char PedType.Mission1 {modelId} 105 {x} 1646.474 {y} -1057.642 {z} 22.8984
241@ = create_char PedType.Mission1 {modelId} 105 {x} 1644.61 {y} -1053.395 {z} 22.8984
243@ = create_char PedType.Mission2 {modelId} 102 {x} 1622.276 {y} -1044.679 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15215
244@ = create_char PedType.Mission2 {modelId} 102 {x} 1631.5229 {y} -1060.417 {z} 23.011
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15215
245@ = create_char PedType.Mission2 {modelId} 102 {x} 1638.76 {y} -1072.36 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15215
246@ = create_char PedType.Mission2 {modelId} 102 {x} 1649.349 {y} -1077.868 {z} 22.9062
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15215
247@ = create_char PedType.Mission2 {modelId} 102 {x} 1663.619 {y} -1058.4189 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15215
set_lvar_int_to_var_int 242@ = $scplayer
set_char_heading 238@ {heading} 216.2367
set_char_heading 239@ {heading} 149.4687
set_char_heading 240@ {heading} 100.9368
set_char_heading 241@ {heading} 270.9368
set_char_accuracy 238@ {accuracy} 40
set_char_accuracy 239@ {accuracy} 40
set_char_accuracy 240@ {accuracy} 40
set_char_accuracy 241@ {accuracy} 40
set_char_never_targetted 238@ {state} True
set_char_never_targetted 239@ {state} True
set_char_never_targetted 240@ {state} True
set_char_never_targetted 241@ {state} True
set_sense_range 238@ {range} 60.0
set_sense_range 239@ {range} 60.0
set_sense_range 240@ {range} 60.0
set_sense_range 241@ {range} 60.0
set_char_kinda_stay_in_same_place 238@ {state} True
set_char_kinda_stay_in_same_place 239@ {state} True
set_char_kinda_stay_in_same_place 240@ {state} True
set_char_kinda_stay_in_same_place 241@ {state} True
set_char_decision_maker 238@ {handleOrTemplate} 231@
set_char_decision_maker 239@ {handleOrTemplate} 231@
set_char_decision_maker 240@ {handleOrTemplate} 231@
set_char_decision_maker 241@ {handleOrTemplate} 231@
set_char_suffers_critical_hits 238@ {state} False
set_char_suffers_critical_hits 239@ {state} False
set_char_suffers_critical_hits 240@ {state} False
set_char_suffers_critical_hits 241@ {state} False
give_weapon_to_char 238@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 239@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 240@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 241@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 238@ {health} 100
set_char_health 239@ {health} 100
set_char_health 240@ {health} 100
set_char_health 241@ {health} 100
set_char_max_health 238@ {maxHealth} 100
set_char_max_health 239@ {maxHealth} 100
set_char_max_health 240@ {maxHealth} 100
set_char_max_health 241@ {maxHealth} 100
set_char_only_damaged_by_player 238@ {state} True
269@ = generate_random_int_in_range 0 {max} 5
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ = generate_random_int_in_range 0 {max} 5
set_char_only_damaged_by_player 243@(269@,6i) {state} True
255@ = 2

:LA1FIN2_15213
return 

:LA1FIN2_15215
set_char_accuracy 86@ {accuracy} 40
set_char_kinda_stay_in_same_place 86@ {state} True
set_char_decision_maker 86@ {handleOrTemplate} 232@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
249@(269@,6i) = 0
88@(269@,6i) = 0
remove_blip 51@(269@,6i)
if 
  100@ > 3
goto_if_false @LA1FIN2_15314
add_blip_for_char 243@(269@,6i) {var_handle} 51@(269@,6i)

:LA1FIN2_15314
return 

:LA1FIN2_15316
if 
  255@ == 2
goto_if_false @LA1FIN2_16305
266@ += 1
if 
  266@ > 5
goto_if_false @LA1FIN2_15366
266@ = 0

:LA1FIN2_15366
if 
  not is_char_dead 243@(266@,6i)
goto_if_false @LA1FIN2_15860
if 
  75@(266@,6i) <> 1
goto_if_false @LA1FIN2_15853
if 
  not is_char_in_any_car 243@(266@,6i)
goto_if_false @LA1FIN2_15853
269@ = get_script_task_status 243@(266@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15853
if 
  249@(266@,6i) == 0
goto_if_false @LA1FIN2_15579
if 
  locate_char_any_means_3d 243@(266@,6i) {x} 1646.777 {y} -1054.257 {z} 24.8043 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @LA1FIN2_15579
task_toggle_duck 243@(266@,6i) {state} True
set_char_stay_in_same_place 243@(266@,6i) {state} True
set_char_kinda_stay_in_same_place 243@(266@,6i) {state} False
249@(266@,6i) = 1

:LA1FIN2_15579
$x, $y, $z = get_char_coordinates 243@(266@,6i)
267@ = 0
274@ = 40.0

:LA1FIN2_15614
if 
  5 > 267@
goto_if_false @LA1FIN2_15740
if 
  not is_char_dead 238@(267@,5i)
goto_if_false @LA1FIN2_15726
270@, 271@, 272@ = get_char_coordinates 238@(267@,5i)
273@ = get_distance_between_coords_2d 270@ {fromY} 271@ {toX} $x {toZ} $y
if 
  is_float_lvar_greater_than_float_lvar 274@ > 273@
goto_if_false @LA1FIN2_15726
set_lvar_float_to_lvar_float 274@ = 273@
set_lvar_int_to_lvar_int 268@ = 238@(267@,5i)

:LA1FIN2_15726
267@ += 1
goto @LA1FIN2_15614

:LA1FIN2_15740
if 
  not is_int_lvar_equal_to_int_lvar 268@ == 259@(266@,6i)
goto_if_false @LA1FIN2_15784
clear_char_tasks 243@(266@,6i)
set_lvar_int_to_lvar_int 259@(266@,6i) = 268@

:LA1FIN2_15784
269@ = get_script_task_status 243@(266@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15853
if 
  not is_char_dead 259@(266@,6i)
goto_if_false @LA1FIN2_15853
task_kill_char_on_foot 243@(266@,6i) {target} 259@(266@,6i)

:LA1FIN2_15853
goto @LA1FIN2_15929

:LA1FIN2_15860
if 
  88@(266@,6i) == 0
goto_if_false @LA1FIN2_15929
mark_char_as_no_longer_needed 243@(266@,6i)
99@ += 1
88@(266@,6i) = 1
75@(266@,6i) = 0
remove_blip 51@(266@,6i)

:LA1FIN2_15929
265@ += 1
if 
  265@ > 3
goto_if_false @LA1FIN2_15961
265@ = 0

:LA1FIN2_15961
if 
  not is_char_dead 238@(265@,5i)
goto_if_false @LA1FIN2_16305
if 
  57@(265@,5i) == 0
goto_if_false @LA1FIN2_16208
if 
  not locate_char_any_means_3d 238@(265@,5i) {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @LA1FIN2_16201
269@ = get_script_task_status 238@(265@,5i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_16201
set_char_decision_maker 238@(265@,5i) {handleOrTemplate} 103@
276@ = generate_random_float_in_range -1.5 {max} 1.5
$x = 1647.249
add_float_lvar_to_float_var $x += 276@
276@ = generate_random_float_in_range -1.5 {max} 1.5
$y = -1053.4821
add_float_lvar_to_float_var $y += 276@
task_go_straight_to_coord 238@(265@,5i) {x} $x {y} $y {z} 23.8804 {speed} MoveState.Run {time} -1
57@(265@,5i) = 1

:LA1FIN2_16201
goto @LA1FIN2_16305

:LA1FIN2_16208
269@ = get_script_task_status 238@(265@,5i) {taskId} 1491
if or
  is_int_lvar_equal_to_constant 269@ == 7
  locate_char_any_means_3d 238@(265@,5i) {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @LA1FIN2_16305
57@(265@,5i) = 0
set_char_decision_maker 238@(265@,5i) {handleOrTemplate} 231@

:LA1FIN2_16305
return 

:LA1FIN2_16307
if 
  26 > 281@(85@,5i)
goto_if_false @LA1FIN2_16540
if 
  not is_car_dead 280@
goto_if_false @LA1FIN2_16540
if 
  68@(85@,5i) == 0
goto_if_false @LA1FIN2_16540
if 
  not is_char_in_car $scplayer {vehicle} 280@
goto_if_false @LA1FIN2_16514
get_car_health 280@ {var_health} 106@(85@,5i)
if 
  not is_car_health_greater 280@ {health} 550
goto_if_false @LA1FIN2_16507
set_lvar_int_to_lvar_int 279@ = 281@(85@,5i)
if 
  281@(85@,5i) >= 25
goto_if_false @LA1FIN2_16481
set_car_health 280@ {health} 350
set_car_proofs 280@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @LA1FIN2_16489

:LA1FIN2_16481
set_car_health 280@ {health} 900

:LA1FIN2_16489
gosub @LA1FIN2_16542
281@(85@,5i) += 1

:LA1FIN2_16507
goto @LA1FIN2_16540

:LA1FIN2_16514
68@(85@,5i) = 1
set_car_proofs 280@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:LA1FIN2_16540
return 

:LA1FIN2_16542
switch_start 279@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_17174 {caseNum1} 0 {caseLabel1} @LA1FIN2_16800 {caseNum2} 1 {caseLabel2} @LA1FIN2_16814 {caseNum3} 2 {caseLabel3} @LA1FIN2_16828 {caseNum4} 3 {caseLabel4} @LA1FIN2_16842 {caseNum5} 4 {caseLabel5} @LA1FIN2_16856 {caseNum6} 5 {caseLabel6} @LA1FIN2_16870 {caseNum7} 6 {caseLabel7} @LA1FIN2_16884
switch_continued 7 {caseLabel1} @LA1FIN2_16898 {caseNum2} 8 {caseLabel2} @LA1FIN2_16912 {caseNum3} 9 {caseLabel3} @LA1FIN2_16926 {caseNum4} 10 {caseLabel4} @LA1FIN2_16940 {caseNum5} 11 {caseLabel5} @LA1FIN2_16954 {caseNum6} 12 {caseLabel6} @LA1FIN2_16968 {caseNum7} 13 {caseLabel7} @LA1FIN2_16982 {caseNum8} 14 {caseLabel8} @LA1FIN2_16996 {caseNum9} 15 {caseLabel9} @LA1FIN2_17010
switch_continued 16 {caseLabel1} @LA1FIN2_17024 {caseNum2} 17 {caseLabel2} @LA1FIN2_17040 {caseNum3} 18 {caseLabel3} @LA1FIN2_17054 {caseNum4} 19 {caseLabel4} @LA1FIN2_17070 {caseNum5} 20 {caseLabel5} @LA1FIN2_17086 {caseNum6} 21 {caseLabel6} @LA1FIN2_17100 {caseNum7} 22 {caseLabel7} @LA1FIN2_17116 {caseNum8} 23 {caseLabel8} @LA1FIN2_17130 {caseNum9} 24 {caseLabel9} @LA1FIN2_17144
switch_continued 25 {caseLabel1} @LA1FIN2_17158 {caseNum2} -1 {caseLabel2} @LA1FIN2_17174 {caseNum3} -1 {caseLabel3} @LA1FIN2_17174 {caseNum4} -1 {caseLabel4} @LA1FIN2_17174 {caseNum5} -1 {caseLabel5} @LA1FIN2_17174 {caseNum6} -1 {caseLabel6} @LA1FIN2_17174 {caseNum7} -1 {caseLabel7} @LA1FIN2_17174 {caseNum8} -1 {caseLabel8} @LA1FIN2_17174 {caseNum9} -1 {caseLabel9} @LA1FIN2_17174

:LA1FIN2_16800
damage_car_door 280@ {door} CarDoor.Hood
goto @LA1FIN2_17174

:LA1FIN2_16814
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17174

:LA1FIN2_16828
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17174

:LA1FIN2_16842
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17174

:LA1FIN2_16856
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17174

:LA1FIN2_16870
burst_car_tyre 280@ {tireId} WheelId.FrontRight
goto @LA1FIN2_17174

:LA1FIN2_16884
damage_car_panel 280@ {panelId} 5
goto @LA1FIN2_17174

:LA1FIN2_16898
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17174

:LA1FIN2_16912
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17174

:LA1FIN2_16926
damage_car_door 280@ {door} CarDoor.Trunk
goto @LA1FIN2_17174

:LA1FIN2_16940
burst_car_tyre 280@ {tireId} WheelId.RearRight
goto @LA1FIN2_17174

:LA1FIN2_16954
damage_car_panel 280@ {panelId} 6
goto @LA1FIN2_17174

:LA1FIN2_16968
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17174

:LA1FIN2_16982
damage_car_door 280@ {door} CarDoor.Hood
goto @LA1FIN2_17174

:LA1FIN2_16996
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17174

:LA1FIN2_17010
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17174

:LA1FIN2_17024
pop_car_door 280@ {door} CarDoor.Trunk {visibility} True
goto @LA1FIN2_17174

:LA1FIN2_17040
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17174

:LA1FIN2_17054
pop_car_door 280@ {door} CarDoor.Hood {visibility} True
goto @LA1FIN2_17174

:LA1FIN2_17070
pop_car_door 280@ {door} CarDoor.RightFrontDoor {visibility} True
goto @LA1FIN2_17174

:LA1FIN2_17086
damage_car_panel 280@ {panelId} 5
goto @LA1FIN2_17174

:LA1FIN2_17100
pop_car_door 280@ {door} CarDoor.Hood {visibility} True
goto @LA1FIN2_17174

:LA1FIN2_17116
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17174

:LA1FIN2_17130
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17174

:LA1FIN2_17144
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17174

:LA1FIN2_17158
pop_car_door 280@ {door} CarDoor.RightRearDoor {visibility} True
goto @LA1FIN2_17174

:LA1FIN2_17174
return 

:LA1FIN2_17176
if 
  286@ <> 0
goto_if_false @LA1FIN2_17394
if 
  287@ == 0
goto_if_false @LA1FIN2_17254
287@ = 1
set_lvar_int_to_lvar_int 288@ = TIMERA
289@ = 0
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17254
if 
  287@ == 1
goto_if_false @LA1FIN2_17394
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 490@
goto_if_false @LA1FIN2_17394
if 
  437@ == 0
goto_if_false @LA1FIN2_17394
set_lvar_int_to_lvar_int 437@ = 300@(289@,10i)
289@ += 1
310@ -= 1
if 
  310@ == 0
goto_if_false @LA1FIN2_17374
286@ = 0
287@ = 0
goto @LA1FIN2_17394

:LA1FIN2_17374
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17394
switch_start 436@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_19498 {caseNum1} 0 {caseLabel1} @LA1FIN2_17457 {caseNum2} 1 {caseLabel2} @LA1FIN2_18396 {caseNum3} 2 {caseLabel3} @LA1FIN2_19153 {caseNum4} 3 {caseLabel4} @LA1FIN2_19245 {caseNum5} 4 {caseLabel5} @LA1FIN2_19303 {caseNum6} 5 {caseLabel6} @LA1FIN2_19417 {caseNum7} -1 {caseLabel7} @LA1FIN2_19498

:LA1FIN2_17457
if 
  436@ == 1
goto_if_false @LA1FIN2_17525
488@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
492@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:LA1FIN2_17525
set_lvar_text_label 313@s = 'FIN2_BA'
set_lvar_int_to_constant 392@ = 14017
set_lvar_text_label 315@s = 'FIN2_BB'
set_lvar_int_to_constant 393@ = 14001
set_lvar_text_label 317@s = 'FIN2_BC'
set_lvar_int_to_constant 394@ = 14008
set_lvar_text_label 319@s = 'FIN2_BD'
set_lvar_int_to_constant 395@ = 14009
set_lvar_text_label 321@s = 'FIN2_BE'
set_lvar_int_to_constant 396@ = 14010
set_lvar_text_label 323@s = 'FIN2_BF'
set_lvar_int_to_constant 397@ = 14002
set_lvar_text_label 325@s = 'FIN2_BG'
set_lvar_int_to_constant 398@ = 14011
set_lvar_text_label 327@s = 'FIN2_BH'
set_lvar_int_to_constant 399@ = 14012
set_lvar_text_label 329@s = 'FIN2_BJ'
set_lvar_int_to_constant 400@ = 14013
set_lvar_text_label 331@s = 'FIN2_AA'
set_lvar_int_to_constant 401@ = 14005
set_lvar_text_label 333@s = 'FIN2_AB'
set_lvar_int_to_constant 402@ = 14015
set_lvar_text_label 335@s = 'FIN2_AB'
set_lvar_int_to_constant 403@ = 14015
set_lvar_text_label 337@s = 'FIN2_AC'
set_lvar_int_to_constant 404@ = 14006
set_lvar_text_label 339@s = 'FIN2_AD'
set_lvar_int_to_constant 405@ = 14016
set_lvar_text_label 341@s = 'FIN2_AE'
set_lvar_int_to_constant 406@ = 14000
set_lvar_text_label 343@s = 'FIN2_AF'
set_lvar_int_to_constant 407@ = 14007
set_lvar_int_to_constant 408@ = 28200
set_lvar_int_to_constant 409@ = 28200
set_lvar_text_label 349@s = 'MCES03A'
set_lvar_int_to_constant 410@ = 4695
set_lvar_text_label 351@s = 'MCES03B'
set_lvar_int_to_constant 411@ = 4614
set_lvar_text_label 353@s = 'MCES03C'
set_lvar_int_to_constant 412@ = 4696
set_lvar_text_label 355@s = 'MCES03D'
set_lvar_int_to_constant 413@ = 4615
set_lvar_text_label 357@s = 'MCES03E'
set_lvar_int_to_constant 414@ = 4697
set_lvar_text_label 359@s = 'MCES03F'
set_lvar_int_to_constant 415@ = 4616
set_lvar_text_label 361@s = 'MCES03G'
set_lvar_int_to_constant 416@ = 4617
set_lvar_text_label 363@s = 'MCES03H'
set_lvar_int_to_constant 417@ = 4698
set_lvar_text_label 365@s = 'MCES03J'
set_lvar_int_to_constant 418@ = 4618
set_lvar_text_label 367@s = 'MCES03L'
set_lvar_int_to_constant 419@ = 4699
set_lvar_text_label 369@s = 'MCES03M'
set_lvar_int_to_constant 420@ = 4620
440@ = 1
441@ = 1
442@ = 1
443@ = 1
444@ = 1
445@ = 1
446@ = 1
447@ = 1
448@ = 1
449@ = 0
450@ = 0
451@ = 0
452@ = 0
453@ = 0
454@ = 0
455@ = 0
456@ = 0
457@ = 0
458@ = 0
459@ = 0
460@ = 0
461@ = 0
462@ = 0
463@ = 0
464@ = 0
465@ = 0
466@ = 0
467@ = 0
468@ = 0
set_lvar_int_to_var_int 480@ = $scplayer
set_lvar_int_to_lvar_int 481@ = 238@
436@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 392@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 393@
432@ = 1
433@ = 2
goto @LA1FIN2_19498

:LA1FIN2_18396
if 
  437@ <> 0
goto_if_false @LA1FIN2_19146
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @LA1FIN2_19146
if 
  is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_18466
434@ = 1
goto @LA1FIN2_18529

:LA1FIN2_18466
if 
  is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_18499
434@ = 2
goto @LA1FIN2_18529

:LA1FIN2_18499
434@ = 1
set_lvar_int_to_lvar_int 432@ = 437@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 391@(437@,40i)

:LA1FIN2_18529
if 
  has_mission_audio_loaded 434@
goto_if_false @LA1FIN2_19134
set_lvar_int_to_lvar_int 487@ = 439@(437@,40i)
set_lvar_int_to_lvar_int 488@ = 479@(487@,7i)
if 
  494@ <> 1
goto_if_false @LA1FIN2_18757
491@ = 1
493@ = 0

:LA1FIN2_18601
if 
  7 > 491@
goto_if_false @LA1FIN2_18757
set_lvar_int_to_lvar_int 492@ = 479@(491@,7i)
if 
  492@ <> 0
goto_if_false @LA1FIN2_18743
if 
  not is_int_lvar_equal_to_int_lvar 492@ == 488@
goto_if_false @LA1FIN2_18743
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_18743
if 
  not is_char_dead 492@
goto_if_false @LA1FIN2_18743
if 
  locate_char_any_means_char_3d 488@ {target} 492@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_18743
493@ += 1

:LA1FIN2_18743
491@ += 1
goto @LA1FIN2_18601

:LA1FIN2_18757
if or
  494@ == 1
  493@ > 0
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_19127
if 
  439@(437@,40i) <> 0
goto_if_false @LA1FIN2_18884
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_18884
attach_mission_audio_to_char 434@ {handle} 488@
if 
  not is_char_talking 488@
goto_if_false @LA1FIN2_18877
486@ = 1
start_char_facial_talk 488@ {duration} 15000
goto @LA1FIN2_18884

:LA1FIN2_18877
disable_char_speech 488@ {stopNow} False

:LA1FIN2_18884
if 
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_18913
486@ = 1

:LA1FIN2_18913
if 
  486@ == 1
goto_if_false @LA1FIN2_19127
play_mission_audio 434@
clear_prints 
if 
  not is_int_lvar_equal_to_constant 391@(437@,40i) == 28200
goto_if_false @LA1FIN2_18975
print 311@(437@,40s) {time} 10000 {flag} 1

:LA1FIN2_18975
436@ += 1
486@ = 0
437@ += 1
set_lvar_int_to_lvar_int 435@ = 437@
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19127
if 
  434@ == 1
goto_if_false @LA1FIN2_19089
if 
  not is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_19082
load_mission_audio MissionAudioSlot.Slot2 {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 433@ = 437@

:LA1FIN2_19082
goto @LA1FIN2_19127

:LA1FIN2_19089
if 
  not is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_19127
load_mission_audio MissionAudioSlot.Slot1 {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 432@ = 437@

:LA1FIN2_19127
goto @LA1FIN2_19146

:LA1FIN2_19134
load_mission_audio 434@ {audioId} 391@(437@,40i)

:LA1FIN2_19146
goto @LA1FIN2_19498

:LA1FIN2_19153
if 
  has_mission_audio_finished 434@
goto_if_false @LA1FIN2_19183
436@ += 1
goto @LA1FIN2_19238

:LA1FIN2_19183
if 
  does_char_exist 488@
goto_if_false @LA1FIN2_19222
if 
  is_char_dead 488@
goto_if_false @LA1FIN2_19222
436@ += 1

:LA1FIN2_19222
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19238

:LA1FIN2_19238
goto @LA1FIN2_19498

:LA1FIN2_19245
clear_mission_audio 434@
431@(434@,3i) = 0
clear_prints 
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19289
stop_char_facial_talk 488@
enable_char_speech 488@

:LA1FIN2_19289
436@ += 1
goto @LA1FIN2_19498

:LA1FIN2_19303
437@ += 1
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19356
load_mission_audio 434@ {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 431@(434@,3i) = 437@

:LA1FIN2_19356
438@ -= 1
if 
  438@ <= 0
goto_if_false @LA1FIN2_19395
437@ = 0
goto @LA1FIN2_19403

:LA1FIN2_19395
set_lvar_int_to_lvar_int 437@ = 435@

:LA1FIN2_19403
436@ = 1
goto @LA1FIN2_19498

:LA1FIN2_19417
436@ = 1
437@ = 0
438@ = 0
286@ = 0
310@ = 0
clear_mission_audio 434@
431@(434@,3i) = 0
clear_prints 
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19491
enable_char_speech 488@

:LA1FIN2_19491
goto @LA1FIN2_19498

:LA1FIN2_19498
return 

:LA1FIN2_19500
print_big 'M_FAIL' {time} 50 {style} TextStyle.Middle
return 

:LA1FIN2_19517
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_19560
warp_char_from_car_to_coord $scplayer {x} -2007.5 {y} -2542.3999 {z} 35.7
goto @LA1FIN2_19590

:LA1FIN2_19560
set_char_coordinates $scplayer {x} -2007.5 {y} -2542.3999 {z} 35.7
set_char_heading $scplayer {heading} 80.0

:LA1FIN2_19590
delete_car 47@
delete_car 122@
delete_car 123@
delete_car 124@
delete_car 48@
delete_car 235@
delete_car 236@
delete_car 237@
delete_car 233@
delete_car 234@
delete_char 243@
delete_char 244@
delete_char 245@
delete_char 246@
delete_char 247@
delete_char 248@
delete_char 125@
delete_char 126@
delete_char 127@
delete_char 238@
delete_char 239@
delete_char 240@
delete_char 241@
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 413
remove_animation "SWEET"
unload_special_character 1
remove_decision_maker 103@
remove_decision_maker 104@
clear_wanted_level $player1
set_int_stat StatId.CitiesPassed {value} 1
load_cutscene 'BCRAS1'
set_char_coordinates $scplayer {x} -2011.438 {y} -2501.2871 {z} 34.0624
set_player_control $player1 {state} False
load_scene -2011.438 {y} -2501.2871 {z} 34.0624
clear_area -2011.438 {y} -2501.2871 {z} 34.0624 {radius} 100.0 {clearParticles} True
clear_help 
remove_all_char_weapons $scplayer
load_mission_text 'BCRASH1'

:LA1FIN2_19870
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_19894
wait 0
goto @LA1FIN2_19870

:LA1FIN2_19894
wait 1000
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_19908
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_19932
wait 0
goto @LA1FIN2_19908

:LA1FIN2_19932
do_fade 0 {direction} Fade.Out

:LA1FIN2_19938
if 
  get_fading_status 
goto_if_false @LA1FIN2_19962
wait 0
goto @LA1FIN2_19938

:LA1FIN2_19962
clear_cutscene 
load_cutscene 'BCRAS2'

:LA1FIN2_19975
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_19999
wait 0
goto @LA1FIN2_19975

:LA1FIN2_19999
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_20008
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_20032
wait 0
goto @LA1FIN2_20008

:LA1FIN2_20032
request_model 367
do_fade 0 {direction} Fade.Out

:LA1FIN2_20043
if and
  get_fading_status 
  not has_model_loaded 367
goto_if_false @LA1FIN2_20072
wait 0
goto @LA1FIN2_20043

:LA1FIN2_20072
clear_cutscene 
do_fade 1000 {direction} Fade.In
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
mark_model_as_no_longer_needed 367
set_player_control $player1 {state} True
remove_blip $bcrash_contact_blip
remove_blip $sweet_contact_blip
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $crash_blip_icon
remove_blip $1730
$1730 = add_short_range_sprite_blip_for_contact_point $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13] {sprite} RadarSprite.SaveGame
change_blip_display $1730 {display} BlipDisplay.BlipOnly
clear_wanted_level $player1
set_int_stat StatId.PassedLafin2 {value} 1
set_int_stat StatId.StartedBadlands {value} 1
terminate_all_scripts_with_this_name 'MOB_CAT'
start_new_script @MOB_CAT 
$flag_la1fin1_mission_counter += 1
$terminted_territory_pickup = 1
register_mission_passed 'LA1FIN2'
player_made_progress 1
remove_pickup $grove_save_pickup[13]
$grove_save_pickup[13] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13]
$number_of_save_icons = 14
set_zone_gang_strength 'SUN1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3C' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'CHC1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC3' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'EBE1' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE3C' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 25
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN2A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'JEF1A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF1B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF2' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3C' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'LFL1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LFL1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'PLS' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SMB1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SMB2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VIN2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO3' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC4A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC4B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD5' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LFL1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LFL1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'PLS' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SMB1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SMB2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VIN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO4A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO4B' {gangId} GangType.Grove {density} 0
set_gang_wars_active False
start_new_script @BCRASH 
return 

:LA1FIN2_22024
$onmission = 0
clear_skip 
if 
  not is_char_dead $scplayer
goto_if_false @LA1FIN2_22056
task_use_mobile_phone $scplayer {start} False

:LA1FIN2_22056
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 413
remove_animation "SWEET"
remove_car_recording 162
remove_car_recording 163
remove_car_recording 650
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
remove_animation "POLICE"
set_player_control $player1 {state} True
unload_special_character 1
remove_decision_maker 103@
remove_decision_maker 104@
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_22175
mark_car_as_no_longer_needed 40@

:LA1FIN2_22175
remove_blip 50@
267@ = 0

:LA1FIN2_22187
if 
  6 > 267@
goto_if_false @LA1FIN2_22228
remove_blip 51@(267@,6i)
267@ += 1
goto @LA1FIN2_22187

:LA1FIN2_22228
clear_onscreen_counter $carhealth_f1
remove_ipl "BARRIERS1"
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
remove_decision_maker 231@
set_create_random_gang_members True
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
set_script_limit_to_gang_size 99
return 

//-------------Mission 39---------------
// Originally: Badlands

:BCRASH1
script_name 'BCRASH1'
gosub @BCRASH1_922
if 
  has_deatharrest_been_executed 
goto_if_false @BCRASH1_38
gosub @BCRASH1_13511

:BCRASH1_38
gosub @BCRASH1_13680
terminate_this_script 

:BCRASH1_47
request_model 147
request_model 286
request_model 421
request_model 468
request_model 352
request_model 367
load_all_models_now 

:BCRASH1_79
if or
  not has_model_loaded 147
  not has_model_loaded 286
  not has_model_loaded 352
  not has_model_loaded 421
  not has_model_loaded 468
  not has_model_loaded 367
goto_if_false @BCRASH1_131
wait 0
goto @BCRASH1_79

:BCRASH1_131
return 
270@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 24 {x} -2044.1 {y} -2523.8601 {z} 31.11
271@ = add_blip_for_pickup 270@

:BCRASH1_168
287@ = -2814.8401
288@ = -1522.0
289@ = 139.33
284@ = create_char PedType.CivMale {modelId} 147 {x} 287@ {y} 288@ {z} 289@
set_char_can_be_shot_in_vehicle 284@ {state} False
286@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 284@ {handleOrTemplate} 286@
return 

:BCRASH1_241
mark_model_as_no_longer_needed 147
return 

:BCRASH1_248
302@ = -2800.1101
307@ = -1521.49
312@ = 137.37
317@ = 305.1252
303@ = -2799.3401
308@ = -1524.66
313@ = 137.38
318@ = 356.2755
304@ = -2789.0471
309@ = -1533.317
314@ = 138.4778
319@ = 317.5168
305@ = -2801.7
310@ = -1515.16
315@ = 137.33
320@ = 270.3571
300@ = load_char_decision_maker DecisionMakerType.Empty
291@ = create_char PedType.Mission1 {modelId} 286 {x} 81@ {y} 87@ {z} 93@
set_char_heading 291@ {heading} 317@
give_weapon_to_char 291@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 291@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 291@ {state} True
set_char_decision_maker 291@ {handleOrTemplate} 300@
292@ = create_char PedType.Mission1 {modelId} 286 {x} 82@ {y} 88@ {z} 94@
set_char_heading 292@ {heading} 318@
give_weapon_to_char 292@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 292@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 292@ {state} True
set_char_decision_maker 292@ {handleOrTemplate} 300@
293@ = create_char PedType.Mission1 {modelId} 286 {x} 80@ {y} 86@ {z} 92@
set_char_heading 293@ {heading} 319@
give_weapon_to_char 293@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 293@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 293@ {state} True
set_char_decision_maker 293@ {handleOrTemplate} 300@
294@ = create_char PedType.Mission1 {modelId} 286 {x} 79@ {y} 85@ {z} 91@
set_char_heading 294@ {heading} 320@
give_weapon_to_char 294@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 294@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 294@ {state} True
set_char_decision_maker 294@ {handleOrTemplate} 300@
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
return 

:BCRASH1_670
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 286
return 

:BCRASH1_682
324@ = -2815.1599
325@ = -1512.03
326@ = 138.08
327@ = 272.57
custom_plate_for_next_car 421 {text} "_ASSMAN_"
322@ = create_car 421 {x} 324@ {y} 325@ {z} 326@
set_load_collision_for_car_flag 322@ {state} False
set_car_heading 322@ {heading} 327@
lock_car_doors 322@ {lockStatus} CarLock.LockoutPlayerOnly
set_can_burst_car_tyres 322@ {state} False
return 

:BCRASH1_785
mark_model_as_no_longer_needed 421
return 
return 

:BCRASH1_794
request_model 468

:BCRASH1_799
if 
  not has_model_loaded 468
goto_if_false @BCRASH1_826
wait 0
goto @BCRASH1_799

:BCRASH1_826
330@ = -2803.156
331@ = -1519.46
332@ = 138.2818
333@ = 189.4269
328@ = create_car 468 {x} 330@ {y} 331@ {z} 332@
set_load_collision_for_car_flag 328@ {state} False
set_car_heading 328@ {heading} 333@
set_car_proofs 328@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 
mark_model_as_no_longer_needed 468
return 

:BCRASH1_922
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'BCRASH1'
107@ = -2815.3821
147@ = -1511.204
187@ = 139.1089
108@ = -2766.9121
148@ = -1599.0129
188@ = 141.1248
109@ = -2778.6111
149@ = -1698.438
189@ = 141.3879
110@ = -2770.7791
150@ = -1798.475
190@ = 141.5863
111@ = -2705.2419
151@ = -1874.129
191@ = 137.9205
112@ = -2651.3989
152@ = -1958.48
192@ = 127.1876
113@ = -2624.5081
153@ = -2055.0769
193@ = 129.1295
114@ = -2525.1731
154@ = -2071.438
194@ = 126.7572
115@ = -2426.958
155@ = -2090.1919
195@ = 122.5222
116@ = -2393.0
156@ = -2096.0
196@ = 118.0
117@ = -2326.8979
157@ = -2098.7319
197@ = 114.4895
118@ = -2257.158
158@ = -2073.1101
198@ = 119.2503
119@ = -2215.6379
159@ = -2044.962
199@ = 118.7853
120@ = -2143.491
160@ = -1955.6219
200@ = 117.0468
121@ = -2123.1479
161@ = -1897.05
201@ = 113.449
122@ = -2137.8569
162@ = -1994.849
202@ = 96.0566
123@ = -2165.01
163@ = -2044.655
203@ = 90.2613
124@ = -2266.458
164@ = -2142.7351
204@ = 55.9682
125@ = -2345.696
165@ = -2199.511
205@ = 33.1272
126@ = -2245.354
166@ = -2201.1111
206@ = 35.0159
127@ = -2164.646
167@ = -2143.8169
207@ = 51.5793
128@ = -2094.4729
168@ = -2072.822
208@ = 63.6193
129@ = -2063.865
169@ = -1977.4
209@ = 57.6244
130@ = -2014.453
170@ = -1890.356
210@ = 45.5302
131@ = -1949.741
171@ = -1814.233
211@ = 33.7562
132@ = -1872.931
172@ = -1750.007
212@ = 29.084
133@ = -1783.8831
173@ = -1701.444
213@ = 29.5583
134@ = -1697.5601
174@ = -1651.167
214@ = 36.0764
135@ = -1604.938
175@ = -1613.3879
215@ = 36.1148
136@ = -1587.864
176@ = -1514.849
216@ = 37.5464
137@ = -1685.724
177@ = -1494.043
217@ = 34.7867
138@ = -1777.0439
178@ = -1452.411
218@ = 34.6646
139@ = -1862.8459
179@ = -1400.225
219@ = 38.3508
140@ = -1947.106
180@ = -1346.296
220@ = 40.5623
141@ = -2005.1071
181@ = -1264.516
221@ = 36.3458
142@ = -2055.8369
182@ = -1177.761
222@ = 32.1425
143@ = -2106.0791
183@ = -1091.077
223@ = 29.978
144@ = -2168.3721
184@ = -1012.418
224@ = 33.7818
145@ = -2210.5229
185@ = -974.889
225@ = 38.5044
77@ = -2797.75
83@ = -1531.63
89@ = 138.5
78@ = -2803.0901
84@ = -1503.01
90@ = 138.83
79@ = -2804.6899
85@ = -1506.7
91@ = 137.83
80@ = -2818.8899
86@ = -1505.72
92@ = 139.34
81@ = -2826.6799
87@ = -1522.23
93@ = 138.78
82@ = -2822.8999
88@ = -1536.9399
94@ = 138.86
70@ = -2814.8401
71@ = -1522.0
72@ = 139.33
95@ = -2777.05
96@ = -1568.29
97@ = 140.04
98@ = -2346.7
101@ = -2240.1799
104@ = 17.29
99@ = -2103.0
102@ = -1885.0
105@ = 109.0
100@ = -2602.0
103@ = -2084.0
106@ = 131.0
236@ = -2767.98
246@ = -1597.9
256@ = 141.46
237@ = -2787.3899
247@ = -1568.11
257@ = 147.27
238@ = -2796.3501
248@ = -1537.58
258@ = 143.82
239@ = -2800.1899
249@ = -1505.59
259@ = 143.89
240@ = -2801.4299
250@ = -1541.87
260@ = 140.29
321@ = 30.0
$l1f2_sweet_health = -1
34@ = 0
51@ = 1
278@ = 1
279@ = 3
36@ = 0
$bc1_in_water = 0
53@ = 0
54@ = 1
56@ = 0
37@ = 0
57@ = 0
59@ = 1
$bc1_stage = 0
55@ = 0
$bc1_cut = 0
$bc1_route = 1
$bc1_route_nx = 38
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
278@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 278@ {state} True
close_sequence_task 278@
279@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 279@ {state} True
close_sequence_task 279@
280@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 280@ {state} True
close_sequence_task 280@
281@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 281@ {state} True
close_sequence_task 281@
273@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2450.083 {y} -2079.9529 {z} 125.711
set_object_rotation 273@ {x} 9.209 {y} 7.675 {z} -43.371
274@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2449.1499 {y} -2078.21 {z} 125.917
set_object_rotation 274@ {x} 4.992 {y} 7.247 {z} -15.069
275@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2447.8679 {y} -2076.5779 {z} 125.975
set_object_rotation 275@ {x} -1.869 {y} 8.724 {z} -44.611
gosub @BCRASH1_47
set_player_group_recruitment $player1 {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
set_player_control $player1 {state} False
switch_widescreen True
set_char_heading $scplayer {heading} 54.0
set_fixed_camera_position -2041.009 {y} -2527.207 {z} 33.9116 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2041.785 {y} -2526.603 {z} 34.0884 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:BCRASH1_3510
if 
  get_fading_status 
goto_if_false @BCRASH1_3534
wait 0
goto @BCRASH1_3510

:BCRASH1_3534
wait 3000
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'BCR1_03' {time} 5000 {flag} 1
65@ = add_blip_for_coord 98@ {y} 101@ {z} 104@

:BCRASH1_3584
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BCRASH1_3610
goto @BCRASH1_13609

:BCRASH1_3610
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @BCRASH1_3632
$flag_bcr1_skip = 1

:BCRASH1_3632
if 
  $main_visible_area == 0
goto_if_false @BCRASH1_3846
if 
  55@ == 3
goto_if_false @BCRASH1_3699
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3699
print_help 'BCR1_23'
55@ = 4

:BCRASH1_3699
if 
  55@ == 2
goto_if_false @BCRASH1_3748
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3748
print_help 'FEG_HOW'
55@ = 3

:BCRASH1_3748
if 
  55@ == 1
goto_if_false @BCRASH1_3797
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3797
print_help 'BCR1_21'
55@ = 2

:BCRASH1_3797
if 
  55@ == 0
goto_if_false @BCRASH1_3846
if 
  not is_message_being_displayed 
goto_if_false @BCRASH1_3846
print_help 'BCR1_22'
55@ = 1

:BCRASH1_3846
if 
  4 > $l1f2_sweet_health
goto_if_false @BCRASH1_3954
if 
  35@ == 0
goto_if_false @BCRASH1_3913
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_3913
272@ = store_car_char_is_in $scplayer
35@ = 1

:BCRASH1_3913
if 
  35@ == 1
goto_if_false @BCRASH1_3954
if 
  not is_char_in_any_car $scplayer
goto_if_false @BCRASH1_3954
35@ = 0

:BCRASH1_3954
if 
  $l1f2_sweet_health == -1
goto_if_false @BCRASH1_4142
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_4142
if 
  locate_char_any_means_3d $scplayer {x} 98@ {y} 101@ {z} 104@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCRASH1_4142
remove_blip 65@
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = add_blip_for_coord 95@ {y} 96@ {z} 97@
print_now 'BCR1_18' {time} 5000 {flag} 1
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4135
set_up_skip -2767.8831 {y} -1634.114 {z} 140.3939 {heading} 0.0569

:BCRASH1_4135
$l1f2_sweet_health = 0

:BCRASH1_4142
if 
  $l1f2_sweet_health == 0
goto_if_false @BCRASH1_4299
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_4299
if 
  53@ == 0
goto_if_false @BCRASH1_4299
if 
  locate_char_any_means_3d $scplayer {x} 95@ {y} 96@ {z} 97@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @BCRASH1_4299
remove_blip 64@
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = add_blip_for_coord 95@ {y} 96@ {z} 97@
$bc1_in_water = 0
53@ = 1

:BCRASH1_4299
if 
  $l1f2_sweet_health == 0
goto_if_false @BCRASH1_5490
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_5490
if 
  $bc1_in_water > 1
goto_if_false @BCRASH1_4427
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCRASH1_4375
38@ = 0

:BCRASH1_4375
if 
  38@ == 0
goto_if_false @BCRASH1_4427
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCRASH1_4427
clear_prints 
266@ -= 1000
$bc1_in_water = 6

:BCRASH1_4427
if 
  $bc1_in_water == 0
goto_if_false @BCRASH1_4617
if 
  locate_char_any_means_3d $scplayer {x} 95@ {y} 96@ {z} 97@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCRASH1_4617
38@ = 1
set_player_control $player1 {state} False
do_fade 300 {direction} Fade.Out

:BCRASH1_4508
if 
  get_fading_status 
goto_if_false @BCRASH1_4532
wait 0
goto @BCRASH1_4508

:BCRASH1_4532
gosub @BCRASH1_168
gosub @BCRASH1_248
gosub @BCRASH1_682
gosub @BCRASH1_794
266@ = get_game_timer 
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4585
clear_skip 

:BCRASH1_4585
if 
  $flag_bcr1_skip == 0
goto_if_false @BCRASH1_4610
$flag_bcr1_skip = 1

:BCRASH1_4610
$bc1_in_water = 1

:BCRASH1_4617
if 
  $bc1_in_water == 1
goto_if_false @BCRASH1_4927
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 250
goto_if_false @BCRASH1_4927
load_scene 70@ {y} 71@ {z} 72@
set_fixed_camera_position -2795.8611 {y} -1536.975 {z} 139.3093 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2796.553 {y} -1536.282 {z} 139.5107 {switchStyle} SwitchType.JumpCut
clear_area 70@ {y} 71@ {z} 72@ {radius} 75.0 {clearParticles} True
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In

:BCRASH1_4774
if 
  get_fading_status 
goto_if_false @BCRASH1_4798
wait 0
goto @BCRASH1_4774

:BCRASH1_4798
print_now 'BCR1_04' {time} 3000 {flag} 1
remove_blip 64@
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_4843
perform_sequence_task 291@ {sequence} 278@

:BCRASH1_4843
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_4867
perform_sequence_task 292@ {sequence} 279@

:BCRASH1_4867
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_4891
perform_sequence_task 293@ {sequence} 280@

:BCRASH1_4891
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_4915
perform_sequence_task 294@ {sequence} 281@

:BCRASH1_4915
266@ = get_game_timer 
$bc1_in_water = 2

:BCRASH1_4927
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_5490
if 
  $bc1_in_water == 2
goto_if_false @BCRASH1_5029
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5029
print_now 'BCR1_19' {time} 3000 {flag} 1
266@ = get_game_timer 
$bc1_in_water = 3

:BCRASH1_5029
if 
  $bc1_in_water == 3
goto_if_false @BCRASH1_5166
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5166
print_now 'BCR1_20' {time} 4000 {flag} 1
set_fixed_camera_position -2793.092 {y} -1510.473 {z} 139.2297 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2793.947 {y} -1510.9449 {z} 139.4455 {switchStyle} SwitchType.JumpCut
266@ = get_game_timer 
$bc1_in_water = 4

:BCRASH1_5166
if 
  $bc1_in_water == 4
goto_if_false @BCRASH1_5236
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 2000
goto_if_false @BCRASH1_5236
266@ = get_game_timer 
$bc1_in_water = 5

:BCRASH1_5236
if 
  $bc1_in_water == 5
goto_if_false @BCRASH1_5306
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1500
goto_if_false @BCRASH1_5306
266@ = get_game_timer 
$bc1_in_water = 6

:BCRASH1_5306
if 
  $bc1_in_water == 6
goto_if_false @BCRASH1_5490
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 500
goto_if_false @BCRASH1_5490
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if and
  not is_char_dead 284@
  not is_car_dead 322@
goto_if_false @BCRASH1_5490
285@ = add_blip_for_char 284@
$l1f2_sweet_health = 1
$bc1_in_water = 7
282@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2822.47 {y} -1518.595 {z} 139.7656 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord -1 {x} -2822.97 {y} -1514.244 {z} 138.2893 {speed} MoveState.Walk {time} -2
task_enter_car_as_driver -1 {vehicle} 322@ {time} -727379969
close_sequence_task 282@

:BCRASH1_5490
if 
  $l1f2_sweet_health == 1
goto_if_false @BCRASH1_8165
if 
  is_char_on_foot $scplayer
goto_if_false @BCRASH1_5908
if 
  is_char_dead 284@
goto_if_false @BCRASH1_5681
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_5564
task_kill_char_on_foot 291@ {target} $scplayer

:BCRASH1_5564
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_5588
task_kill_char_on_foot 292@ {target} $scplayer

:BCRASH1_5588
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_5612
task_kill_char_on_foot 293@ {target} $scplayer

:BCRASH1_5612
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_5636
task_kill_char_on_foot 294@ {target} $scplayer

:BCRASH1_5636
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_5681
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 322@ {lockStatus} CarLock.Unlocked
freeze_car_position 322@ {state} False

:BCRASH1_5681
if or
  is_char_dead 291@
  is_char_dead 292@
  is_char_dead 293@
  is_char_dead 294@
goto_if_false @BCRASH1_5908
if 
  46@ == 0
goto_if_false @BCRASH1_5761
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_5761
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1

:BCRASH1_5761
if 
  47@ == 0
goto_if_false @BCRASH1_5810
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_5810
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1

:BCRASH1_5810
if 
  48@ == 0
goto_if_false @BCRASH1_5859
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_5859
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1

:BCRASH1_5859
if 
  49@ == 0
goto_if_false @BCRASH1_5908
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_5908
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1

:BCRASH1_5908
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_8165
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_6413
50@ = 1
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 302@ = 73@
set_lvar_float_to_lvar_float 307@ = 74@
set_lvar_float_to_lvar_float 312@ = 75@
if 
  41@ == 0
goto_if_false @BCRASH1_6141
if 
  locate_char_in_car_3d $scplayer {x} 302@ {y} 307@ {z} 312@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_6141
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_6141
task_destroy_car 291@ {vehicle} 272@
41@ = 1
46@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6141
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6141
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6141
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6141
if 
  46@ == 0
goto_if_false @BCRASH1_6413
if 
  locate_char_on_foot_3d $scplayer {x} 302@ {y} 307@ {z} 312@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_6288
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6288
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6288
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6288
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6288
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_6413
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6413
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6413
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6413
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6413
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_6902
50@ = 2
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 303@ = 73@
set_lvar_float_to_lvar_float 308@ = 74@
set_lvar_float_to_lvar_float 313@ = 75@
if 
  42@ == 0
goto_if_false @BCRASH1_6630
if 
  locate_char_in_car_3d $scplayer {x} 303@ {y} 308@ {z} 313@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_6630
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_6630
task_destroy_car 292@ {vehicle} 272@
42@ = 1
47@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6630
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6630
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6630
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6630
if 
  47@ == 0
goto_if_false @BCRASH1_6902
if 
  locate_char_on_foot_3d $scplayer {x} 303@ {y} 308@ {z} 313@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_6777
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6777
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6777
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6777
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6777
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_6902
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6902
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6902
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6902
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6902
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_7391
50@ = 3
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 304@ = 73@
set_lvar_float_to_lvar_float 309@ = 74@
set_lvar_float_to_lvar_float 314@ = 75@
if 
  43@ == 0
goto_if_false @BCRASH1_7119
if 
  locate_char_in_car_3d $scplayer {x} 304@ {y} 309@ {z} 314@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_7119
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_7119
task_destroy_car 293@ {vehicle} 272@
43@ = 1
48@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7119
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7119
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7119
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7119
if 
  48@ == 0
goto_if_false @BCRASH1_7391
if 
  locate_char_on_foot_3d $scplayer {x} 304@ {y} 309@ {z} 314@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_7266
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7266
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7266
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7266
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7266
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_7391
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7391
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7391
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7391
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7391
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_7880
50@ = 4
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 305@ = 73@
set_lvar_float_to_lvar_float 310@ = 74@
set_lvar_float_to_lvar_float 315@ = 75@
if 
  44@ == 0
goto_if_false @BCRASH1_7608
if 
  locate_char_in_car_3d $scplayer {x} 305@ {y} 310@ {z} 315@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_7608
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_7608
task_destroy_car 294@ {vehicle} 272@
44@ = 1
49@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7608
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7608
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7608
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7608
if 
  49@ == 0
goto_if_false @BCRASH1_7880
if 
  locate_char_on_foot_3d $scplayer {x} 305@ {y} 310@ {z} 315@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_7755
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7755
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7755
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7755
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7755
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_7880
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7880
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7880
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7880
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7880
if 
  56@ == 1
goto_if_false @BCRASH1_7963
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7963
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7963
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_7963
$bc1_in_water = 0
$l1f2_sweet_health = 3

:BCRASH1_7963
if 
  is_char_dead 284@
goto_if_false @BCRASH1_8120
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_8003
task_kill_char_on_foot 291@ {target} $scplayer

:BCRASH1_8003
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_8027
task_kill_char_on_foot 292@ {target} $scplayer

:BCRASH1_8027
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_8051
task_kill_char_on_foot 293@ {target} $scplayer

:BCRASH1_8051
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_8075
task_kill_char_on_foot 294@ {target} $scplayer

:BCRASH1_8075
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_8120
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 322@ {lockStatus} CarLock.Unlocked
freeze_car_position 322@ {state} False

:BCRASH1_8120
if and
  is_char_dead 291@
  is_char_dead 292@
  is_char_dead 293@
  is_char_dead 294@
goto_if_false @BCRASH1_8165
$bc1_in_water = 0
$l1f2_sweet_health = 2

:BCRASH1_8165
if 
  $l1f2_sweet_health == 2
goto_if_false @BCRASH1_8313
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_8313
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_8290
if 
  56@ == 0
goto_if_false @BCRASH1_8269
perform_sequence_task 284@ {sequence} 282@
56@ = 1
$bc1_in_water = 0
$l1f2_sweet_health = 3
goto @BCRASH1_8283

:BCRASH1_8269
$bc1_in_water = 0
$l1f2_sweet_health = 3

:BCRASH1_8283
goto @BCRASH1_8313

:BCRASH1_8290
print_now 'BCR1_10' {time} 5000 {flag} 1
$l1f2_sweet_health = 7

:BCRASH1_8313
if 
  $l1f2_sweet_health == 3
goto_if_false @BCRASH1_9346
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_9324
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9279
if 
  is_char_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_9193
if 
  $bc1_in_water > 2
goto_if_false @BCRASH1_8407
$bc1_in_water = 0

:BCRASH1_8407
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_8606
233@, 234@, 235@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  is_area_occupied 227@ {leftBottomY} 228@ {leftBottomZ} 229@ {rightTopX} 230@ {rightTopY} 231@ {rightTopZ} 232@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @BCRASH1_8606
stop_playback_recorded_car 322@

:BCRASH1_8606
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_8690
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCRASH1_8690
$bc1_cut += 1
$bc1_route += 1

:BCRASH1_8690
if 
  $bc1_in_water == 0
goto_if_false @BCRASH1_9016
set_car_health 322@ {health} 1000
set_car_cruise_speed 322@ {maxSpeed} 40.0
set_car_driving_style 322@ {drivingStyle} DrivingMode.PloughThrough
set_car_only_damaged_by_player 322@ {state} True
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
request_car_recording 170

:BCRASH1_8760
if 
  not has_car_recording_been_loaded 170
goto_if_false @BCRASH1_8787
wait 0
goto @BCRASH1_8760

:BCRASH1_8787
if and
  not is_car_dead 322@
  not is_char_dead 284@
goto_if_false @BCRASH1_8873
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_8873
freeze_car_position 322@ {state} False
start_playback_recorded_car 322@ {path} 170
set_playback_speed 322@ {speed} 0.65
add_stuck_car_check_with_warp 322@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 1

:BCRASH1_8873
print_now 'BCR1_07' {time} 4000 {flag} 1
if 
  not is_car_dead 328@
goto_if_false @BCRASH1_8942
if and
  not is_char_on_any_bike $scplayer
  not is_char_in_any_car $scplayer
goto_if_false @BCRASH1_8942
print 'BCR1_14' {time} 4000 {flag} 1

:BCRASH1_8942
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2795.252 {y} -1505.949 {z} 138.8073 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2796.0 {y} -1506.5861 {z} 138.9953 {switchStyle} SwitchType.JumpCut
266@ = get_game_timer 
$bc1_in_water = 1

:BCRASH1_9016
if 
  $bc1_in_water == 1
goto_if_false @BCRASH1_9193
if 
  is_char_on_screen $scplayer
goto_if_false @BCRASH1_9141
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_9111
272@ = store_car_char_is_in_no_save $scplayer
set_car_coordinates 272@ {x} -2789.6721 {y} -1491.142 {z} 137.1726
set_car_heading 272@ {heading} 227.9636
goto @BCRASH1_9141

:BCRASH1_9111
set_char_coordinates $scplayer {x} -2789.6721 {y} -1491.142 {z} 137.1726
set_char_heading $scplayer {heading} 227.9636

:BCRASH1_9141
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 4000
goto_if_false @BCRASH1_9193
266@ = get_game_timer 
$bc1_in_water = 2

:BCRASH1_9193
if 
  $bc1_in_water == 2
goto_if_false @BCRASH1_9272
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1
goto_if_false @BCRASH1_9272
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
$l1f2_sweet_health = 4

:BCRASH1_9272
goto @BCRASH1_9317

:BCRASH1_9279
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'BCR1_10' {time} 5000 {flag} 1
$l1f2_sweet_health = 7

:BCRASH1_9317
goto @BCRASH1_9346

:BCRASH1_9324
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
$l1f2_sweet_health = 4

:BCRASH1_9346
if 
  $l1f2_sweet_health == 4
goto_if_false @BCRASH1_10974
if 
  is_car_dead 322@
goto_if_false @BCRASH1_9454
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9454
if 
  not is_char_on_foot 284@
goto_if_false @BCRASH1_9447
delete_char 284@
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_9454

:BCRASH1_9447
$l1f2_sweet_health = 7

:BCRASH1_9454
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_10974
if and
  not is_char_dead 284@
  not is_char_dead $scplayer
goto_if_false @BCRASH1_10974
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_10937
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_9594
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @BCRASH1_9594
$bc1_cut += 1
$bc1_route += 1

:BCRASH1_9594
if 
  not is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10134
if 
  34@ == 0
goto_if_false @BCRASH1_9673
task_car_drive_to_coord 284@ {vehicle} 322@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {speed} 321@ {driveStyle} DriveMode.Racing {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
34@ = 1

:BCRASH1_9673
if or
  is_car_on_fire 322@
  is_car_upsidedown 322@
goto_if_false @BCRASH1_9746
set_car_cruise_speed 322@ {maxSpeed} 0.0
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9739
set_char_relationship 284@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 284@ {handleOrTemplate} DecisionMakerCharTemplate.RandomWeak

:BCRASH1_9739
$l1f2_sweet_health = 5

:BCRASH1_9746
if 
  34@ == 1
goto_if_false @BCRASH1_10041
if 
  is_int_var_greater_than_int_var $bc1_route_nx > $bc1_cut
goto_if_false @BCRASH1_9955
gosub @BCRASH1_13881
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_9948
if and
  $bc1_cut > 7
  19 > $bc1_cut
goto_if_false @BCRASH1_9886
321@ = 20.0
goto @BCRASH1_9896

:BCRASH1_9886
321@ = 30.0

:BCRASH1_9896
$bc1_cut += 1
$bc1_route += 1
task_car_drive_to_coord 284@ {vehicle} 322@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {speed} 321@ {driveStyle} DriveMode.Racing {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCRASH1_9948
goto @BCRASH1_10041

:BCRASH1_9955
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_cut,40f) {y} 147@($bc1_cut,40f) {z} 187@($bc1_cut,40f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCRASH1_10041
task_car_drive_wander 284@ {vehicle} 322@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
set_car_cruise_speed 322@ {maxSpeed} 50.0
34@ = 2

:BCRASH1_10041
if 
  34@ == 2
goto_if_false @BCRASH1_10134
if 
  not is_char_on_screen 284@
goto_if_false @BCRASH1_10134
if 
  not locate_char_any_means_char_3d $scplayer {target} 284@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCRASH1_10134
print_now 'BCR1_12' {time} 6000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_10134
if 
  57@ == 0
goto_if_false @BCRASH1_10293
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 6000
goto_if_false @BCRASH1_10293
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_10293
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10293
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 322@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_10293
set_playback_speed 322@ {speed} 0.8
print_now 'BCR1_15' {time} 6000 {flag} 1
57@ = 1

:BCRASH1_10293
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10562
233@, 234@, 235@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  is_area_occupied 227@ {leftBottomY} 228@ {leftBottomZ} 229@ {rightTopX} 230@ {rightTopY} 231@ {rightTopZ} 232@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BCRASH1_10492
stop_playback_recorded_car 322@

:BCRASH1_10492
if 
  is_car_on_fire 322@
goto_if_false @BCRASH1_10530
stop_playback_recorded_car 322@
set_car_cruise_speed 322@ {maxSpeed} 0.0
$l1f2_sweet_health = 5

:BCRASH1_10530
269@ = get_car_health 322@
if 
  900 > 269@
goto_if_false @BCRASH1_10562
stop_playback_recorded_car 322@

:BCRASH1_10562
if 
  51@ == 1
goto_if_false @BCRASH1_10661
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10661
266@ = get_game_timer 
51@ = 0

:BCRASH1_10661
if 
  51@ == 0
goto_if_false @BCRASH1_10937
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10889
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if and
  268@ > 1000
  6000 > 268@
goto_if_false @BCRASH1_10811
print_now 'BCR1_07' {time} 100 {flag} 1

:BCRASH1_10811
if 
  268@ > 30000
goto_if_false @BCRASH1_10889
if 
  not locate_char_any_means_char_3d $scplayer {target} 284@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @BCRASH1_10889
print_now 'BCR1_12' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_10889
if 
  is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10937
51@ = 1

:BCRASH1_10937
if 
  is_car_in_water 322@
goto_if_false @BCRASH1_10974
if 
  does_car_have_stuck_car_check 322@
goto_if_false @BCRASH1_10974
remove_stuck_car_check 322@

:BCRASH1_10974
if 
  $l1f2_sweet_health == 5
goto_if_false @BCRASH1_11258
if 
  is_car_dead 322@
goto_if_false @BCRASH1_11082
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11082
if 
  not is_char_on_foot 284@
goto_if_false @BCRASH1_11075
delete_char 284@
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_11082

:BCRASH1_11075
$l1f2_sweet_health = 6

:BCRASH1_11082
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11194
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11187
if 
  is_car_stopped 322@
goto_if_false @BCRASH1_11187
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11187
324@, 325@, 326@ = get_car_coordinates 322@
task_leave_car_and_flee 284@ {vehicle} 322@ {x} 324@ {y} 325@ {z} 326@
$l1f2_sweet_health = 6

:BCRASH1_11187
goto @BCRASH1_11258

:BCRASH1_11194
if and
  not is_char_dead 284@
  not is_car_dead 322@
goto_if_false @BCRASH1_11258
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11258
task_leave_car_and_flee 284@ {vehicle} 322@ {x} 324@ {y} 325@ {z} 326@
$l1f2_sweet_health = 6

:BCRASH1_11258
if and
  $l1f2_sweet_health > 0
  7 > $l1f2_sweet_health
goto_if_false @BCRASH1_11595
if 
  does_char_exist 284@
goto_if_false @BCRASH1_11595
if 
  is_char_head_missing 284@
goto_if_false @BCRASH1_11361
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11338
lock_car_doors 322@ {lockStatus} CarLock.Unlocked

:BCRASH1_11338
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11361
if 
  is_char_dead 284@
goto_if_false @BCRASH1_11407
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11400
lock_car_doors 322@ {lockStatus} CarLock.Unlocked

:BCRASH1_11400
$l1f2_sweet_health = 7

:BCRASH1_11407
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11439
if 
  has_char_been_photographed 284@
goto_if_false @BCRASH1_11439

:BCRASH1_11439
if 
  56@ == 1
goto_if_false @BCRASH1_11595
if 
  37@ <> 2
goto_if_false @BCRASH1_11595
if 
  is_car_dead 322@
goto_if_false @BCRASH1_11595
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11595
283@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2822.47 {y} -1518.595 {z} 139.7656 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord -1 {x} -2822.97 {y} -1514.244 {z} 138.2893 {speed} MoveState.Run {time} -2
task_flee_char -1 {threat} $scplayer {radius} 1000.0 {time} 5000000
close_sequence_task 283@
perform_sequence_task 284@ {sequence} 283@
37@ = 2

:BCRASH1_11595
if 
  $l1f2_sweet_health == 6
goto_if_false @BCRASH1_11700
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11700
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11700
if 
  not is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11700
remove_blip 285@
285@ = add_blip_for_char 284@
print_now 'BCR1_08' {time} 5000 {flag} 1
$l1f2_sweet_health = 7

:BCRASH1_11700
if 
  $l1f2_sweet_health > 3
goto_if_false @BCRASH1_11775
if 
  52@ == 0
goto_if_false @BCRASH1_11775
if 
  not does_char_exist 284@
goto_if_false @BCRASH1_11775
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11775
if 
  $l1f2_sweet_health == 7
goto_if_false @BCRASH1_12538
if 
  does_char_exist 284@
goto_if_false @BCRASH1_11848
if 
  is_char_head_missing 284@
goto_if_false @BCRASH1_11848
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11848
if 
  52@ == 0
goto_if_false @BCRASH1_12477
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_12401
if 
  37@ == 0
goto_if_false @BCRASH1_12005
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11948
36@ = get_script_task_status 284@ {taskId} 1487
goto @BCRASH1_11955

:BCRASH1_11948
set_lvar_int_to_constant 36@ = 7

:BCRASH1_11955
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12005
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000
37@ = 1
36@ = 5

:BCRASH1_12005
if 
  37@ == 1
goto_if_false @BCRASH1_12070
36@ = get_script_task_status 284@ {taskId} 1499
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12070
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000

:BCRASH1_12070
if 
  51@ == 1
goto_if_false @BCRASH1_12169
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12169
266@ = get_game_timer 
51@ = 0

:BCRASH1_12169
if 
  51@ == 0
goto_if_false @BCRASH1_12401
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12353
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1000
goto_if_false @BCRASH1_12311
print_now 'BCR1_07' {time} 100 {flag} 1

:BCRASH1_12311
if 
  268@ > 15000
goto_if_false @BCRASH1_12353
print_now 'BCR1_12' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_12353
if 
  is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12401
51@ = 1

:BCRASH1_12401
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_12477
if 
  does_char_exist 284@
goto_if_false @BCRASH1_12477
if 
  has_char_been_photographed 284@
goto_if_false @BCRASH1_12477
if 
  is_char_dead 284@
goto_if_false @BCRASH1_12477
remove_blip 285@
52@ = 1

:BCRASH1_12477
if 
  52@ == 1
goto_if_false @BCRASH1_12538
66@ = add_blip_for_coord -2044.1 {y} -2523.8601 {z} 31.11
print_now 'BCR1_17' {time} 5000 {flag} 1
$l1f2_sweet_health = 8

:BCRASH1_12538
if 
  $l1f2_sweet_health == 8
goto_if_false @BCRASH1_12636
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_12636
if 
  locate_char_on_foot_3d $scplayer {x} -2044.1 {y} -2523.8601 {z} 31.11 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @BCRASH1_12636
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 0
goto @BCRASH1_13609

:BCRASH1_12636
if 
  $l1f2_sweet_health == 7
goto_if_false @BCRASH1_13301
if 
  52@ == 0
goto_if_false @BCRASH1_13192
276@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
if 
  276@ > 0
goto_if_false @BCRASH1_13052
if 
  59@ == 2
goto_if_false @BCRASH1_12738
285@ = add_blip_for_dead_char 284@
remove_blip 271@
59@ = 1

:BCRASH1_12738
if 
  59@ == 1
goto_if_false @BCRASH1_13045
if 
  is_char_in_water 284@
goto_if_false @BCRASH1_12779
$bc1_stage = 1

:BCRASH1_12779
if and
  not is_char_dead $scplayer
  is_char_dead 284@
goto_if_false @BCRASH1_13045
print_now 'BCR1_10' {time} 100 {flag} 1
if 
  does_char_exist 284@
goto_if_false @BCRASH1_13045
if 
  is_char_dead 284@
goto_if_false @BCRASH1_13045
if 
  58@ == 0
goto_if_false @BCRASH1_12914
if 
  locate_char_any_means_3d $scplayer {x} 287@ {y} 288@ {z} 289@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_12914
58@ = 1

:BCRASH1_12914
if 
  58@ == 1
goto_if_false @BCRASH1_13045
if 
  not locate_char_any_means_3d $scplayer {x} 287@ {y} 288@ {z} 289@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_13045
if 
  $bc1_stage == 1
goto_if_false @BCRASH1_13022
print_now 'BCR1_16' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_13045

:BCRASH1_13022
print_now 'BCR1_16' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_13045
goto @BCRASH1_13192

:BCRASH1_13052
if 
  is_char_dead 284@
goto_if_false @BCRASH1_13192
if 
  59@ == 1
goto_if_false @BCRASH1_13111
if 
  276@ == 0
goto_if_false @BCRASH1_13111
59@ = 0

:BCRASH1_13111
if 
  59@ == 0
goto_if_false @BCRASH1_13192
print_now 'BCR1_11' {time} 5000 {flag} 1
remove_blip 285@
270@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 24 {x} -2044.1 {y} -2523.8601 {z} 31.11
271@ = add_blip_for_pickup 270@
59@ = 2

:BCRASH1_13192
if and
  37@ == 0
  $l1f2_sweet_health <> 4
  $l1f2_sweet_health <> 5
goto_if_false @BCRASH1_13301
if and
  not is_char_dead 284@
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13301
if 
  locate_char_any_means_char_2d $scplayer {target} 284@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @BCRASH1_13301
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000
37@ = 1

:BCRASH1_13301
if 
  $l1f2_sweet_health > 3
goto_if_false @BCRASH1_13483
if 
  54@ == 1
goto_if_false @BCRASH1_13483
if and
  not is_char_dead $scplayer
  not is_car_dead 328@
  not is_char_dead 284@
goto_if_false @BCRASH1_13483
if or
  is_char_in_car $scplayer {vehicle} 328@
  not locate_char_any_means_car_2d $scplayer {vehicle} 328@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BCRASH1_13425
print 'BCR1_13' {time} 5000 {flag} 1
54@ = 0

:BCRASH1_13425
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_13483
if 
  not is_char_in_car $scplayer {vehicle} 328@
goto_if_false @BCRASH1_13483
print 'BCR1_13' {time} 5000 {flag} 1
54@ = 0

:BCRASH1_13483
goto @BCRASH1_3584
wait 1500
restore_camera_jumpcut 
set_player_control $player1 {state} True
goto @BCRASH1_13609

:BCRASH1_13511
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  is_player_playing $player1
goto_if_false @BCRASH1_13586
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13586
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @BCRASH1_13586
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 0

:BCRASH1_13586
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_13607
delete_char 284@

:BCRASH1_13607
return 

:BCRASH1_13609
register_mission_passed 'BCRASH1'
player_made_progress 1
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
set_int_stat StatId.PassedBcrash1 {value} 1
play_mission_passed_tune 1
$flag_bcrash_mission_counter += 1
remove_blip $bcrash_contact_blip
$call_delay = 15000
return 

:BCRASH1_13680
gosub @BCRASH1_241
gosub @BCRASH1_670
gosub @BCRASH1_785
if 
  is_player_playing $player1
goto_if_false @BCRASH1_13760
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13760
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @BCRASH1_13760
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 36

:BCRASH1_13760
if 
  not is_car_dead 328@
goto_if_false @BCRASH1_13791
set_car_proofs 328@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:BCRASH1_13791
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 468
remove_blip 285@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 271@
remove_pickup 270@
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:BCRASH1_13861
73@, 74@, 75@ = get_char_coordinates 290@(50@,5i)
return 

:BCRASH1_13881
62@ = -1
60@ = 10000000.0
63@ = 38

:BCRASH1_13905
if 
  38 > 63@
goto_if_false @BCRASH1_14093
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_14079
61@ = get_distance_between_coords_2d 287@ {fromY} 288@ {toX} 107@($bc1_cut,40f) {toZ} 147@($bc1_cut,40f)
if 
  is_float_lvar_greater_than_float_lvar 60@ > 61@
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 60@ = 61@
set_lvar_int_to_lvar_int 62@ = 63@
if 
  is_float_lvar_greater_than_float_lvar 187@($bc1_cut,40f) > 187@(62@,40f)
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 61@ = 187@($bc1_cut,40f)
sub_float_lvar_from_float_lvar 61@ -= 187@(62@,40f)
if 
  61@ > 3.0
goto_if_false @BCRASH1_14079
set_var_int_to_lvar_int $bc1_cut = 62@

:BCRASH1_14079
63@ += 1
goto @BCRASH1_13905

:BCRASH1_14093
return 

//-------------Mission 40---------------
// Originally: First Date

:CATALIN
gosub @CATALIN_36
if 
  has_deatharrest_been_executed 
goto_if_false @CATALIN_27
gosub @CATALIN_7507

:CATALIN_27
gosub @CATALIN_7530
terminate_this_script 

:CATALIN_36
$onmission = 1
register_mission_given 
script_name 'CATALIN'
wait 0
load_mission_text 'CAT'
52@ = 0
53@ = 0
54@ = 0
set_lvar_int_to_var_int 55@ = $scplayer
make_player_gang_disappear 
if 
  $cat_counter == 0
goto_if_false @CATALIN_1203
set_area_visible 1
load_cutscene 'CAT_1'

:CATALIN_135
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_159
wait 0
goto @CATALIN_135

:CATALIN_159
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_168
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_192
wait 0
goto @CATALIN_168

:CATALIN_192
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_207
if 
  get_fading_status 
goto_if_false @CATALIN_231
wait 0
goto @CATALIN_207

:CATALIN_231
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_248
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_287
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_248

:CATALIN_287
clear_area 681.1634 {y} -478.1859 {z} 15.3281 {radius} 0.5 {clearParticles} False
load_scene 681.1634 {y} -478.1859 {z} 15.3281
set_char_coordinates $scplayer {x} 681.1634 {y} -478.1859 {z} 15.3281
set_char_heading $scplayer {heading} 177.0008
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359
set_char_heading $catalina {heading} 149.5317
set_lvar_text_label 56@s = 'CAT_AA'
set_lvar_text_label 58@s = 'CAT_AB'
set_lvar_text_label 60@s = 'CAT_AC'
set_lvar_text_label 62@s = 'CAT_AD'
set_lvar_int_to_constant 96@ = 2200
set_lvar_int_to_constant 97@ = 2291
set_lvar_int_to_constant 98@ = 2201
set_lvar_int_to_constant 99@ = 2292
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
52@ = 4
set_lvar_text_label 136@s = 'CAT_BA'
set_lvar_text_label 138@s = 'CAT_BB'
set_lvar_text_label 140@s = 'CAT_BC'
set_lvar_text_label 142@s = 'CAT_BD'
set_lvar_text_label 144@s = 'CAT_BE'
set_lvar_text_label 146@s = 'CAT_BH'
set_lvar_text_label 148@s = 'CAT_BG'
set_lvar_text_label 150@s = 'CAT_BF'
set_lvar_text_label 152@s = 'CAT_BI'
set_lvar_text_label 154@s = 'CAT_BJ'
set_lvar_text_label 156@s = 'CAT_BK'
set_lvar_int_to_constant 160@ = 2293
set_lvar_int_to_constant 161@ = 2202
set_lvar_int_to_constant 162@ = 2294
set_lvar_int_to_constant 163@ = 2203
set_lvar_int_to_constant 164@ = 2204
set_lvar_int_to_constant 165@ = 2207
set_lvar_int_to_constant 166@ = 2206
set_lvar_int_to_constant 167@ = 2205
set_lvar_int_to_constant 168@ = 2208
set_lvar_int_to_constant 169@ = 2295
set_lvar_int_to_constant 170@ = 2209
set_lvar_int_to_lvar_int 172@ = 55@
set_lvar_int_to_var_int 173@ = $catalina
set_lvar_int_to_lvar_int 174@ = 55@
set_lvar_int_to_var_int 175@ = $catalina
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_var_int 178@ = $catalina
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
set_lvar_int_to_lvar_int 181@ = 55@
set_lvar_int_to_var_int 182@ = $catalina
53@ = 11
set_lvar_text_label 184@s = 'CAT_CA'
set_lvar_text_label 186@s = 'CAT_CB'
set_lvar_text_label 188@s = 'CAT_CC'
set_lvar_text_label 190@s = 'CAT_CD'
set_lvar_text_label 192@s = 'CAT_CE'
set_lvar_text_label 194@s = 'CAT_CF'
set_lvar_text_label 196@s = 'CAT_CG'
set_lvar_text_label 198@s = 'CAT_CH'
set_lvar_text_label 200@s = 'CAT_CI'
set_lvar_text_label 202@s = 'CAT_CJ'
set_lvar_text_label 204@s = 'CAT_CK'
set_lvar_int_to_constant 208@ = 2296
set_lvar_int_to_constant 209@ = 2210
set_lvar_int_to_constant 210@ = 2211
set_lvar_int_to_constant 211@ = 2297
set_lvar_int_to_constant 212@ = 2212
set_lvar_int_to_constant 213@ = 2213
set_lvar_int_to_constant 214@ = 2214
set_lvar_int_to_constant 215@ = 2298
set_lvar_int_to_constant 216@ = 2215
set_lvar_int_to_constant 217@ = 2216
set_lvar_int_to_constant 218@ = 2299
set_lvar_int_to_lvar_int 220@ = 55@
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_var_int 222@ = $catalina
set_lvar_int_to_lvar_int 223@ = 55@
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_var_int 226@ = $catalina
set_lvar_int_to_lvar_int 227@ = 55@
set_lvar_int_to_var_int 228@ = $catalina
set_lvar_int_to_var_int 229@ = $catalina
set_lvar_int_to_lvar_int 230@ = 55@
54@ = 11
goto @CATALIN_3878

:CATALIN_1203
force_weather_now WeatherType.ExtraSunnyCountryside
if 
  $cat_counter == 1
goto_if_false @CATALIN_2211
load_cutscene 'CAT_2'

:CATALIN_1236
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_1260
wait 0
goto @CATALIN_1236

:CATALIN_1260
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_1293
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_1317
wait 0
goto @CATALIN_1293

:CATALIN_1317
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_1332
if 
  get_fading_status 
goto_if_false @CATALIN_1356
wait 0
goto @CATALIN_1332

:CATALIN_1356
set_area_visible 0
set_int_stat StatId.StartedCat2 {value} 1
load_special_character 5 {modelName} 'CAT'

:CATALIN_1380
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_1419
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_1380

:CATALIN_1419
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT_FA'
set_lvar_int_to_constant 96@ = 2309
set_lvar_int_to_lvar_int 116@ = 55@
set_lvar_text_label 58@s = 'CAT_FB'
set_lvar_int_to_constant 97@ = 2236
set_lvar_int_to_var_int 117@ = $catalina
37@ = 2
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_1661
set_lvar_text_label 56@(37@,20s) = 'CAT_FC'
set_lvar_int_to_constant 96@(37@,20i) = 2237
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1661
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_1728
set_lvar_text_label 56@(37@,20s) = 'CAT_FD'
set_lvar_int_to_constant 96@(37@,20i) = 2238
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1728
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FE'
set_lvar_int_to_constant 96@(37@,20i) = 2239
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
goto @CATALIN_1855

:CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FG'
set_lvar_int_to_constant 96@(37@,20i) = 2241
set_lvar_int_to_var_int 116@(37@,20i) = $catalina

:CATALIN_1855
37@ += 1

:CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FH'
set_lvar_int_to_constant 96@(37@,20i) = 2242
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FI'
set_lvar_int_to_constant 96@(37@,20i) = 2310
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FJ'
set_lvar_int_to_constant 96@(37@,20i) = 2311
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FK'
set_lvar_int_to_constant 96@(37@,20i) = 2243
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1
set_lvar_int_to_lvar_int 52@ = 37@
set_lvar_text_label 136@s = 'CAT_FL'
set_lvar_text_label 138@s = 'CAT_FM'
set_lvar_text_label 140@s = 'CAT_FN'
set_lvar_text_label 142@s = 'CAT_FO'
set_lvar_int_to_constant 160@ = 2244
set_lvar_int_to_constant 161@ = 2312
set_lvar_int_to_constant 162@ = 2245
set_lvar_int_to_constant 163@ = 2246
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_var_int 175@ = $catalina
53@ = 4

:CATALIN_2211
if 
  $cat_counter == 2
goto_if_false @CATALIN_3101
load_cutscene 'CAT_3'

:CATALIN_2240
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_2264
wait 0
goto @CATALIN_2240

:CATALIN_2264
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_2297
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_2321
wait 0
goto @CATALIN_2297

:CATALIN_2321
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_2336
if 
  get_fading_status 
goto_if_false @CATALIN_2360
wait 0
goto @CATALIN_2336

:CATALIN_2360
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_2377
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_2416
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_2377

:CATALIN_2416
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT_KA'
set_lvar_text_label 58@s = 'CAT_KB'
set_lvar_text_label 60@s = 'CAT_KC'
set_lvar_text_label 62@s = 'CAT_KD'
set_lvar_text_label 64@s = 'CAT_KE'
set_lvar_text_label 66@s = 'CAT_KF'
set_lvar_text_label 68@s = 'CAT_KG'
set_lvar_text_label 70@s = 'CAT_KH'
set_lvar_text_label 72@s = 'CAT_KI'
set_lvar_text_label 74@s = 'CAT_KJ'
set_lvar_text_label 76@s = 'CAT_KK'
set_lvar_text_label 78@s = 'CAT_KL'
set_lvar_text_label 80@s = 'CAT_KM'
set_lvar_text_label 82@s = 'CAT_KN'
set_lvar_text_label 84@s = 'CAT_KO'
set_lvar_text_label 86@s = 'CAT_KP'
set_lvar_text_label 88@s = 'CAT_KQ'
set_lvar_text_label 90@s = 'CAT_KR'
set_lvar_text_label 92@s = 'CAT_KS'
set_lvar_int_to_constant 96@ = 2258
set_lvar_int_to_constant 97@ = 2322
set_lvar_int_to_constant 98@ = 2259
set_lvar_int_to_constant 99@ = 2323
set_lvar_int_to_constant 100@ = 2260
set_lvar_int_to_constant 101@ = 2324
set_lvar_int_to_constant 102@ = 2261
set_lvar_int_to_constant 103@ = 2262
set_lvar_int_to_constant 104@ = 2325
set_lvar_int_to_constant 105@ = 2263
set_lvar_int_to_constant 106@ = 2264
set_lvar_int_to_constant 107@ = 2265
set_lvar_int_to_constant 108@ = 2266
set_lvar_int_to_constant 109@ = 2267
set_lvar_int_to_constant 110@ = 2268
set_lvar_int_to_constant 111@ = 2326
set_lvar_int_to_constant 112@ = 2269
set_lvar_int_to_constant 113@ = 2327
set_lvar_int_to_constant 114@ = 2270
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
set_lvar_int_to_var_int 122@ = $catalina
set_lvar_int_to_var_int 123@ = $catalina
set_lvar_int_to_lvar_int 124@ = 55@
set_lvar_int_to_var_int 125@ = $catalina
set_lvar_int_to_var_int 126@ = $catalina
set_lvar_int_to_var_int 127@ = $catalina
set_lvar_int_to_var_int 128@ = $catalina
set_lvar_int_to_var_int 129@ = $catalina
set_lvar_int_to_var_int 130@ = $catalina
set_lvar_int_to_lvar_int 131@ = 55@
set_lvar_int_to_var_int 132@ = $catalina
set_lvar_int_to_lvar_int 133@ = 55@
set_lvar_int_to_var_int 134@ = $catalina
52@ = 19

:CATALIN_3101
if 
  $cat_counter == 3
goto_if_false @CATALIN_3878
load_cutscene 'CAT_4'

:CATALIN_3130
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_3154
wait 0
goto @CATALIN_3130

:CATALIN_3154
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_3187
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_3211
wait 0
goto @CATALIN_3187

:CATALIN_3211
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_3226
if 
  get_fading_status 
goto_if_false @CATALIN_3250
wait 0
goto @CATALIN_3226

:CATALIN_3250
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_3267
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_3306
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_3267

:CATALIN_3306
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT4_LA'
set_lvar_text_label 58@s = 'CAT4_LB'
set_lvar_text_label 60@s = 'CAT4_LC'
set_lvar_text_label 62@s = 'CAT4_LD'
set_lvar_text_label 64@s = 'CAT4_LE'
set_lvar_text_label 66@s = 'CAT4_LF'
set_lvar_int_to_constant 96@ = 3032
set_lvar_int_to_constant 97@ = 3052
set_lvar_int_to_constant 98@ = 3033
set_lvar_int_to_constant 99@ = 3053
set_lvar_int_to_constant 100@ = 3034
set_lvar_int_to_constant 101@ = 3054
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
52@ = 6
set_lvar_text_label 136@s = 'CAT_NA'
set_lvar_text_label 138@s = 'CAT_NB'
set_lvar_text_label 140@s = 'CAT_NC'
set_lvar_text_label 142@s = 'CAT_ND'
set_lvar_text_label 144@s = 'CAT_NE'
set_lvar_text_label 146@s = 'CAT_NF'
set_lvar_text_label 148@s = 'CAT_NG'
set_lvar_text_label 150@s = 'CAT_NH'
set_lvar_text_label 152@s = 'CAT_KT'
set_lvar_int_to_constant 160@ = 2276
set_lvar_int_to_constant 161@ = 2329
set_lvar_int_to_constant 162@ = 2277
set_lvar_int_to_constant 163@ = 2330
set_lvar_int_to_constant 164@ = 2278
set_lvar_int_to_constant 165@ = 2279
set_lvar_int_to_constant 166@ = 2331
set_lvar_int_to_constant 167@ = 2280
set_lvar_int_to_constant 168@ = 2271
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_lvar_int 175@ = 55@
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_lvar_int 178@ = 55@
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
53@ = 9

:CATALIN_3878
set_anim_group_for_char $catalina {animGroup} "WOMAN"
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
set_char_relationship $catalina {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_health $catalina {health} 100
set_char_suffers_critical_hits $catalina {state} False
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_3972
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_player_group_to_follow_always $player1 {state} True
listen_to_player_group_commands $catalina {state} False

:CATALIN_3972
release_weather 
make_player_gang_reappear 
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True

:CATALIN_3990
if 
  get_fading_status 
goto_if_false @CATALIN_4014
wait 0
goto @CATALIN_3990

:CATALIN_4014
if 
  $cat_liquor_banter == 1
goto_if_false @CATALIN_4039
$cat_liquor_banter = 0

:CATALIN_4039
if 
  $cat_otb_banter == 1
goto_if_false @CATALIN_4064
$cat_otb_banter = 0

:CATALIN_4064
if and
  $flag_cat_mission1_passed == 1
  $cat_liquor_banter == 0
goto_if_false @CATALIN_4290
set_lvar_text_label 184@s = 'CAT1_IA'
set_lvar_text_label 186@s = 'CAT1_IB'
set_lvar_text_label 188@s = 'CAT1_IC'
set_lvar_text_label 190@s = 'CAT1_IE'
set_lvar_text_label 192@s = 'CAT1_IF'
set_lvar_text_label 194@s = 'CAT1_IG'
set_lvar_int_to_constant 208@ = 2426
set_lvar_int_to_constant 209@ = 2437
set_lvar_int_to_constant 210@ = 2438
set_lvar_int_to_constant 211@ = 2427
set_lvar_int_to_constant 212@ = 2428
set_lvar_int_to_constant 213@ = 2439
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_lvar_int 221@ = 55@
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_lvar_int 225@ = 55@
54@ = 6
$cat_liquor_banter = 1
goto @CATALIN_4569

:CATALIN_4290
if and
  $flag_cat_mission4_passed == 1
  $cat_otb_banter == 0
goto_if_false @CATALIN_4569
set_lvar_text_label 184@s = 'CAT2_HA'
set_lvar_text_label 186@s = 'CAT2_HB'
set_lvar_text_label 188@s = 'CAT2_HC'
set_lvar_text_label 190@s = 'CAT2_HE'
set_lvar_text_label 192@s = 'CAT2_HF'
set_lvar_text_label 194@s = 'CAT2_HG'
set_lvar_text_label 196@s = 'CAT2_HH'
set_lvar_text_label 198@s = 'CAT2_HI'
set_lvar_int_to_constant 208@ = 2617
set_lvar_int_to_constant 209@ = 2618
set_lvar_int_to_constant 210@ = 2628
set_lvar_int_to_constant 211@ = 2619
set_lvar_int_to_constant 212@ = 2620
set_lvar_int_to_constant 213@ = 2621
set_lvar_int_to_constant 214@ = 2629
set_lvar_int_to_constant 215@ = 2622
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_lvar_int 226@ = 55@
set_lvar_int_to_var_int 227@ = $catalina
54@ = 8
$cat_otb_banter = 1

:CATALIN_4569
232@ = 0
233@ = 0
234@ = 0
235@ = 1
236@ = 0
237@ = 1
238@ = 0
239@ = 0
240@ = 0
241@ = 0
if 
  $cat_counter > 0
goto_if_false @CATALIN_4821
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_4698
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash
238@ = 1

:CATALIN_4698
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_4739
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash
239@ = 1

:CATALIN_4739
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_4780
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash
240@ = 1

:CATALIN_4780
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_4821
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash
241@ = 1

:CATALIN_4821
246@ = 0

:CATALIN_4828
wait 0
$game_timer = get_game_timer 
if 
  not is_char_dead $catalina
goto_if_false @CATALIN_7185
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_6878
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CATALIN_5620
if 
  3 > 233@
goto_if_false @CATALIN_5620
if 
  52@(233@,3i) == 0
goto_if_false @CATALIN_4957
233@ += 1
goto @CATALIN_5620

:CATALIN_4957
if 
  233@ == 1
goto_if_false @CATALIN_5063
if 
  not is_char_in_any_car $catalina
goto_if_false @CATALIN_5030
if or
  $cat_counter == 1
  $cat_counter == 3
goto_if_false @CATALIN_5023
goto @CATALIN_5620

:CATALIN_5023
goto @CATALIN_5063

:CATALIN_5030
if 
  232@ == 0
goto_if_false @CATALIN_5063
set_lvar_int_to_var_int 234@ = $game_timer
234@ -= 10

:CATALIN_5063
if 
  is_int_var_greater_than_int_lvar $game_timer > 234@
goto_if_false @CATALIN_5620
if 
  $audio_line_is_active == 0
goto_if_false @CATALIN_5620
if 
  233@ == 0
goto_if_false @CATALIN_5201
set_var_text_label s$audio_string = 56@(232@,20s)
set_var_int_to_lvar_int $audio_sound_file = 96@(232@,20i)
start_new_script @AUDIOL 116@(232@,20i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 116@(232@,20i) == $catalina
goto_if_false @CATALIN_5201
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5201
if 
  233@ == 1
goto_if_false @CATALIN_5302
set_var_text_label s$audio_string = 136@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 160@(232@,12i)
start_new_script @AUDIOL 172@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 172@(232@,12i) == $catalina
goto_if_false @CATALIN_5302
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5302
if 
  233@ == 2
goto_if_false @CATALIN_5403
set_var_text_label s$audio_string = 184@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 208@(232@,12i)
start_new_script @AUDIOL 220@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 220@(232@,12i) == $catalina
goto_if_false @CATALIN_5403
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5403
if 
  235@ == 1
goto_if_false @CATALIN_5435
235@ = 2
goto @CATALIN_5442

:CATALIN_5435
235@ = 1

:CATALIN_5442
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 500
232@ += 1
if 
  is_int_lvar_greater_than_int_lvar 52@(233@,3i) > 232@
goto_if_false @CATALIN_5590
clear_mission_audio 235@
if 
  233@ == 0
goto_if_false @CATALIN_5523
load_mission_audio 235@ {audioId} 96@(232@,20i)

:CATALIN_5523
if 
  233@ == 1
goto_if_false @CATALIN_5553
load_mission_audio 235@ {audioId} 160@(232@,12i)

:CATALIN_5553
if 
  233@ == 2
goto_if_false @CATALIN_5583
load_mission_audio 235@ {audioId} 208@(232@,12i)

:CATALIN_5583
goto @CATALIN_5620

:CATALIN_5590
232@ = 0
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 10000
233@ += 1

:CATALIN_5620
if 
  $cat_counter == 0
goto_if_false @CATALIN_5920
if 
  233@ == 1
goto_if_false @CATALIN_5920
if 
  236@ == 0
goto_if_false @CATALIN_5722
if 
  232@ > 6
goto_if_false @CATALIN_5722
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash
238@ = 1
236@ += 1

:CATALIN_5722
if 
  236@ == 1
goto_if_false @CATALIN_5788
if 
  232@ > 7
goto_if_false @CATALIN_5788
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash
239@ = 1
236@ += 1

:CATALIN_5788
if 
  236@ == 2
goto_if_false @CATALIN_5854
if 
  232@ > 8
goto_if_false @CATALIN_5854
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash
240@ = 1
236@ += 1

:CATALIN_5854
if 
  236@ == 3
goto_if_false @CATALIN_5920
if 
  232@ > 9
goto_if_false @CATALIN_5920
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash
241@ = 1
236@ += 1

:CATALIN_5920
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CATALIN_6307
if 
  $flag_cat_mission_counter == 0
goto_if_false @CATALIN_6028
clear_area $507 {y} $513 {z} $519 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $507 {y} $513 {z} $519
set_var_float_to_var_float $x = $507
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $513 {z} $519
load_scene $507 {y} $513 {z} $519

:CATALIN_6028
if 
  $flag_cat_mission_counter == 1
goto_if_false @CATALIN_6121
clear_area $508 {y} $514 {z} $520 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $508 {y} $514 {z} $520
set_var_float_to_var_float $x = $508
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $514 {z} $520
load_scene $508 {y} $514 {z} $520

:CATALIN_6121
if 
  $flag_cat_mission_counter == 2
goto_if_false @CATALIN_6214
clear_area $509 {y} $515 {z} $521 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $509 {y} $515 {z} $521
set_var_float_to_var_float $x = $509
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $515 {z} $521
load_scene $509 {y} $515 {z} $521

:CATALIN_6214
if 
  $flag_cat_mission_counter == 3
goto_if_false @CATALIN_6307
clear_area $510 {y} $516 {z} $522 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $510 {y} $516 {z} $522
set_var_float_to_var_float $x = $510
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $516 {z} $522
load_scene $510 {y} $516 {z} $522

:CATALIN_6307
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_6448
if 
  238@ == 1
goto_if_false @CATALIN_6448
if 
  locate_char_any_means_3d $scplayer {x} $507 {y} $513 {z} $519 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6448
set_player_control $player1 {state} False
print_big 'CAT_1' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6415
if 
  get_fading_status 
goto_if_false @CATALIN_6439
wait 0
goto @CATALIN_6415

:CATALIN_6439
$load_and_launch_catalina_mission = 0
return 

:CATALIN_6448
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_6589
if 
  239@ == 1
goto_if_false @CATALIN_6589
if 
  locate_char_any_means_3d $scplayer {x} $508 {y} $514 {z} $520 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6589
set_player_control $player1 {state} False
print_big 'CAT_2' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6556
if 
  get_fading_status 
goto_if_false @CATALIN_6580
wait 0
goto @CATALIN_6556

:CATALIN_6580
$load_and_launch_catalina_mission = 1
return 

:CATALIN_6589
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_6730
if 
  240@ == 1
goto_if_false @CATALIN_6730
if 
  locate_char_any_means_3d $scplayer {x} $509 {y} $515 {z} $521 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6730
set_player_control $player1 {state} False
print_big 'CAT_3' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6697
if 
  get_fading_status 
goto_if_false @CATALIN_6721
wait 0
goto @CATALIN_6697

:CATALIN_6721
$load_and_launch_catalina_mission = 2
return 

:CATALIN_6730
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_6871
if 
  241@ == 1
goto_if_false @CATALIN_6871
if 
  locate_char_any_means_3d $scplayer {x} $510 {y} $516 {z} $522 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6871
set_player_control $player1 {state} False
print_big 'CAT_4' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6838
if 
  get_fading_status 
goto_if_false @CATALIN_6862
wait 0
goto @CATALIN_6838

:CATALIN_6862
$load_and_launch_catalina_mission = 3
return 

:CATALIN_6871
goto @CATALIN_7178

:CATALIN_6878
if 
  237@ == 1
goto_if_false @CATALIN_6954
print_now 'CATLEFT' {time} 5000 {flag} 1
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
34@ = add_blip_for_char $catalina
set_blip_as_friendly 34@ {state} True
237@ += 1

:CATALIN_6954
if 
  237@ == 2
goto_if_false @CATALIN_7178
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CATALIN_7178
remove_blip 34@
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_7035
set_group_member $Players_Group {handle} $catalina

:CATALIN_7035
if 
  238@ == 1
goto_if_false @CATALIN_7069
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash

:CATALIN_7069
if 
  239@ == 1
goto_if_false @CATALIN_7103
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash

:CATALIN_7103
if 
  240@ == 1
goto_if_false @CATALIN_7137
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash

:CATALIN_7137
if 
  241@ == 1
goto_if_false @CATALIN_7171
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash

:CATALIN_7171
237@ = 1

:CATALIN_7178
goto @CATALIN_7208

:CATALIN_7185
print_now 'CATDEAD' {time} 5000 {flag} 1
goto @CATALIN_7507

:CATALIN_7208
if 
  locate_char_any_means_2d $scplayer {x} 660.0 {y} -585.0 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @CATALIN_7455
if 
  246@ == 0
goto_if_false @CATALIN_7448
request_model 514
request_model 584
if and
  has_model_loaded 514
  has_model_loaded 584
goto_if_false @CATALIN_7448
247@ = create_car 514 {x} 657.49 {y} -585.13 {z} 16.36
set_car_heading 247@ {heading} 170.66
set_can_burst_car_tyres 247@ {state} False
set_car_proofs 247@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_car_flag 247@ {state} False
lock_car_doors 247@ {lockStatus} CarLock.Locked
248@ = create_car 584 {x} 667.49 {y} -583.13 {z} 16.36
set_car_heading 248@ {heading} 184.66
set_car_health 248@ {health} 1250
set_car_proofs 248@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 248@ {state} False
set_load_collision_for_car_flag 248@ {state} False
lock_car_doors 248@ {lockStatus} CarLock.Locked
246@ = 1

:CATALIN_7448
goto @CATALIN_7500

:CATALIN_7455
if 
  246@ == 1
goto_if_false @CATALIN_7500
delete_car 247@
delete_car 248@
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
246@ = 0

:CATALIN_7500
goto @CATALIN_4828

:CATALIN_7507
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_char_elegantly $catalina
return 

:CATALIN_7530
remove_blip 34@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
unload_special_character 5
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
$onmission = 0
mission_has_finished 
if 
  $load_and_launch_catalina_mission > -1
goto_if_false @CATALIN_7602
do_fade 0 {direction} Fade.Out

:CATALIN_7602
return 

//-------------Mission 41---------------
// Originally: Local Liquor Store

:CAT1
script_name 'CAT1'
gosub @CAT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT1_38
gosub @CAT1_32486

:CAT1_38
gosub @CAT1_32635
terminate_this_script 

:CAT1_47
$onmission = 1
do_fade 0 {direction} Fade.Out
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
$audio_line_is_active = 0
64@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
67@ = load_char_decision_maker DecisionMakerType.Empty
68@ = load_char_decision_maker DecisionMakerType.Tough

:CAT1_165
wait 0
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @CAT1_260
if 
  69@ == 0
goto_if_false @CAT1_234
69@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @CAT1_260

:CAT1_234
69@ = 0
write_debug "LEVEL_DEBUG_OFF"

:CAT1_260
39@ += 1
if 
  39@ > 9
goto_if_false @CAT1_292
39@ = 0

:CAT1_292
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 66@ += 42@
add_int_lvar_to_int_lvar 147@ += 42@
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CAT1_367
36@ = 1

:CAT1_367
if 
  69@ == 1
goto_if_false @CAT1_392
gosub @CAT1_634

:CAT1_392
switch_start 34@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAT1_525 {caseNum1} 0 {caseLabel1} @CAT1_455 {caseNum2} 1 {caseLabel2} @CAT1_469 {caseNum3} 2 {caseLabel3} @CAT1_483 {caseNum4} 3 {caseLabel4} @CAT1_497 {caseNum5} 4 {caseLabel5} @CAT1_511 {caseNum6} -1 {caseLabel6} @CAT1_525 {caseNum7} -1 {caseLabel7} @CAT1_525

:CAT1_455
gosub @CAT1_2097
goto @CAT1_525

:CAT1_469
gosub @CAT1_2716
goto @CAT1_525

:CAT1_483
gosub @CAT1_14068
goto @CAT1_525

:CAT1_497
gosub @CAT1_17125
goto @CAT1_525

:CAT1_511
gosub @CAT1_18131
goto @CAT1_525

:CAT1_525
gosub @CAT1_25316

:CAT1_532
if 
  38@ == 0
goto_if_false @CAT1_632
if 
  37@ == 0
goto_if_false @CAT1_616
if 
  36@ == 0
goto_if_false @CAT1_600
goto @CAT1_165
goto @CAT1_609

:CAT1_600
gosub @CAT1_32504
return 

:CAT1_609
goto @CAT1_625

:CAT1_616
gosub @CAT1_32486
return 

:CAT1_625
goto @CAT1_634

:CAT1_632
return 

:CAT1_634
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @CAT1_683
70@ += 1
if 
  70@ > 5
goto_if_false @CAT1_681
70@ = 0

:CAT1_681
clear_all_view_variables 

:CAT1_683
if 
  70@ == 1
goto_if_false @CAT1_893
set_var_int_to_lvar_int $bc1_final_dest = 34@
set_var_int_to_lvar_int $CAT1_view_debug = 35@
set_var_int_to_lvar_int $6972 = 62@
set_var_int_to_lvar_int $6973 = 65@
set_var_int_to_lvar_int $6974 = 63@
set_var_int_to_lvar_int $6975 = 66@
set_var_int_to_lvar_int $6976 = TIMERA
set_var_int_to_lvar_int $6977 = TIMERB
view_integer_variable $bc1_final_dest {_p2} "M_STAGE"
view_integer_variable $CAT1_view_debug {_p2} "M_GOALS"
view_integer_variable $6972 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6973 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6974 {_p2} "HELP_FLAG"
view_integer_variable $6975 {_p2} "HELP_TIMER"
view_integer_variable $6976 {_p2} "TIMERA"
view_integer_variable $6977 {_p2} "TIMERB"

:CAT1_893
if 
  70@ == 2
goto_if_false @CAT1_1126
set_var_int_to_lvar_int $bc1_final_dest = 98@
set_var_int_to_lvar_int $CAT1_view_debug = 99@
set_var_int_to_var_int $6972 = $6986
set_var_int_to_lvar_int $6973 = 100@
set_var_int_to_lvar_int $6974 = 101@
set_var_int_to_lvar_int $6975 = 102@
set_var_int_to_lvar_int $6976 = 103@
set_var_int_to_lvar_int $6977 = 108@
view_integer_variable $bc1_final_dest {_p2} "DISABLE_GROUP"
view_integer_variable $CAT1_view_debug {_p2} "IN_GROUP"
view_integer_variable $6972 {_p2} "CAT1_PICKUPS_COLLECTED"
view_integer_variable $6973 {_p2} "PAUSED[0]"
view_integer_variable $6974 {_p2} "PAUSED[1]"
view_integer_variable $6975 {_p2} "PAUSED[2]"
view_integer_variable $6976 {_p2} "PAUSED[3]"
view_integer_variable $6977 {_p2} "SKIPPED_CUTSCENE"

:CAT1_1126
if 
  70@ == 3
goto_if_false @CAT1_1374
set_var_int_to_lvar_int $bc1_final_dest = 104@
set_var_int_to_lvar_int $CAT1_view_debug = 105@
set_var_int_to_lvar_int $6972 = 106@
set_var_int_to_lvar_int $6973 = 107@
set_var_int_to_lvar_int $6974 = 109@
set_var_int_to_lvar_int $6975 = 110@
set_var_int_to_lvar_int $6976 = 111@
set_var_int_to_lvar_int $6977 = 115@
view_integer_variable $bc1_final_dest {_p2} "ROBBER_FLAG[0]"
view_integer_variable $CAT1_view_debug {_p2} "ROBBER_FLAG[1]"
view_integer_variable $6972 {_p2} "ROBBER_FLAG[2]"
view_integer_variable $6973 {_p2} "ROBBER_FLAG[3]"
view_integer_variable $6974 {_p2} "CHASE_FLAG[0]"
view_integer_variable $6975 {_p2} "CHASE_FLAG[1]"
view_integer_variable $6976 {_p2} "CHASE_FLAG[2]"
view_integer_variable $6977 {_p2} "PLAYER_PROGRESS"

:CAT1_1374
if 
  70@ == 4
goto_if_false @CAT1_1652
set_var_int_to_lvar_int $bc1_final_dest = 112@
set_var_int_to_lvar_int $CAT1_view_debug = 113@
set_var_int_to_lvar_int $6972 = 114@
set_var_float_to_lvar_float $6981 = 127@
set_var_float_to_lvar_float $6982 = 128@
set_var_float_to_lvar_float $6983 = 129@
set_var_float_to_lvar_float $6984 = 133@
set_var_int_to_lvar_int $6977 = 116@
view_integer_variable $bc1_final_dest {_p2} "PLAYBACK_PAUSED[0]"
view_integer_variable $CAT1_view_debug {_p2} "PLAYBACK_PAUSED[1]"
view_integer_variable $6972 {_p2} "PLAYBACK_PAUSED[2]"
view_float_variable $6981 {_p2} "QUAD_PLAYBACK_SPEED[0]"
view_float_variable $6982 {_p2} "QUAD_PLAYBACK_SPEED[1]"
view_float_variable $6983 {_p2} "QUAD_PLAYBACK_SPEED[2]"
view_float_variable $6984 {_p2} "MASTER_SPEED"
view_integer_variable $6977 {_p2} "SHOW_GUN"

:CAT1_1652
if 
  70@ == 5
goto_if_false @CAT1_1850
set_var_float_to_lvar_float $6978 = 137@
set_var_float_to_lvar_float $CAT1_view_debug_f = 138@
set_var_float_to_lvar_float $6980 = 139@
set_var_float_to_lvar_float $6981 = 130@
set_var_float_to_lvar_float $6982 = 131@
set_var_float_to_lvar_float $6983 = 132@
view_float_variable $6978 {_p2} "LOOK_X"
view_float_variable $CAT1_view_debug_f {_p2} "LOOK_Y"
view_float_variable $6980 {_p2} "LOOK_Z"
view_float_variable $6981 {_p2} "QUAD_DIST_FROM_PLAYER[0]"
view_float_variable $6982 {_p2} "QUAD_DIST_FROM_PLAYER[1]"
view_float_variable $6983 {_p2} "QUAD_DIST_FROM_PLAYER[2]"

:CAT1_1850
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @CAT1_1872
38@ = 1

:CAT1_1872
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CAT1_1960
if 
  71@ == 0
goto_if_false @CAT1_1935
71@ = 1
write_debug "LEVEL_PAUSED"
goto @CAT1_1960

:CAT1_1935
71@ = 0
write_debug "LEVEL_UNPAUSED"

:CAT1_1960
if 
  71@ == 1
goto_if_false @CAT1_1985
goto @CAT1_532

:CAT1_1985
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @CAT1_2007
35@ += 1

:CAT1_2007
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @CAT1_2029
35@ -= 1

:CAT1_2029
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @CAT1_2051
34@ += 1

:CAT1_2051
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @CAT1_2073
34@ -= 1

:CAT1_2073
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @CAT1_2095
35@ = 99

:CAT1_2095
return 

:CAT1_2097
if 
  35@ == -1
goto_if_false @CAT1_2254
78@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
87@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$catalina = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 0.0 {y} 0.0 {z} 0.0

:CAT1_2254
98@ = 0
99@ = 0
$6986 = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
143@ = 0.0
144@ = 0.0
119@ = 0
120@ = 0
155@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
95@ = -1
96@ = -1
97@ = -1
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_text 'CAT'
gosub @CAT1_32428
return 

:CAT1_2716
switch_start 35@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @CAT1_9952 {caseNum1} 0 {caseLabel1} @CAT1_2974 {caseNum2} 1 {caseLabel2} @CAT1_3298 {caseNum3} 2 {caseLabel3} @CAT1_5475 {caseNum4} 3 {caseLabel4} @CAT1_5489 {caseNum5} 4 {caseLabel5} @CAT1_5748 {caseNum6} 5 {caseLabel6} @CAT1_6021 {caseNum7} 6 {caseLabel7} @CAT1_6199
switch_continued 7 {caseLabel1} @CAT1_6309 {caseNum2} 8 {caseLabel2} @CAT1_6419 {caseNum3} 9 {caseLabel3} @CAT1_6527 {caseNum4} 10 {caseLabel4} @CAT1_7115 {caseNum5} 11 {caseLabel5} @CAT1_7697 {caseNum6} 12 {caseLabel6} @CAT1_7748 {caseNum7} 13 {caseLabel7} @CAT1_7839 {caseNum8} 14 {caseLabel8} @CAT1_7949 {caseNum9} 15 {caseLabel9} @CAT1_8059
switch_continued 16 {caseLabel1} @CAT1_8164 {caseNum2} 17 {caseLabel2} @CAT1_8197 {caseNum3} 18 {caseLabel3} @CAT1_8967 {caseNum4} 19 {caseLabel4} @CAT1_9086 {caseNum5} 20 {caseLabel5} @CAT1_9177 {caseNum6} 21 {caseLabel6} @CAT1_9518 {caseNum7} 22 {caseLabel7} @CAT1_9551 {caseNum8} 23 {caseLabel8} @CAT1_9646 {caseNum9} 24 {caseLabel9} @CAT1_9858
switch_continued 25 {caseLabel1} @CAT1_9872 {caseNum2} -1 {caseLabel2} @CAT1_9952 {caseNum3} -1 {caseLabel3} @CAT1_9952 {caseNum4} -1 {caseLabel4} @CAT1_9952 {caseNum5} -1 {caseLabel5} @CAT1_9952 {caseNum6} -1 {caseLabel6} @CAT1_9952 {caseNum7} -1 {caseLabel7} @CAT1_9952 {caseNum8} -1 {caseLabel8} @CAT1_9952 {caseNum9} -1 {caseLabel9} @CAT1_9952

:CAT1_2974
request_model 471
request_model 161
request_model 162
request_model 346
request_model 44
request_model 77
load_all_models_now 

:CAT1_3004
if or
  not has_model_loaded 471
  not has_model_loaded 161
  not has_model_loaded 162
  not has_model_loaded 346
  not has_model_loaded 44
  not has_model_loaded 77
goto_if_false @CAT1_3054
wait 0
goto @CAT1_3004

:CAT1_3054
request_car_recording 501
request_car_recording 502
request_car_recording 503
request_car_recording 504

:CAT1_3074
if or
  not has_car_recording_been_loaded 501
  not has_car_recording_been_loaded 502
  not has_car_recording_been_loaded 503
  not has_car_recording_been_loaded 504
goto_if_false @CAT1_3116
wait 0
goto @CAT1_3074

:CAT1_3116
request_car_recording 505
request_car_recording 506
request_car_recording 507
request_car_recording 509

:CAT1_3136
if or
  not has_car_recording_been_loaded 505
  not has_car_recording_been_loaded 506
  not has_car_recording_been_loaded 507
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_3178
wait 0
goto @CAT1_3136

:CAT1_3178
TIMERA = 0
TIMERB = 0
load_special_character 5 {modelName} 'CAT'

:CAT1_3205
if 
  not has_special_character_loaded 5
goto_if_false @CAT1_3244
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CAT1_3205

:CAT1_3244
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29400

:CAT1_3251
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CAT1_3277
wait 0
goto @CAT1_3251

:CAT1_3277
35@ += 1
goto @CAT1_25316
goto @CAT1_9952

:CAT1_3298
if 
  does_char_exist $catalina
goto_if_false @CAT1_3319
delete_char $catalina

:CAT1_3319
$catalina = create_char PedType.Special {modelId} 294 {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_drowns_in_water $catalina {state} False
146@ = load_char_decision_maker DecisionMakerType.Tough
145@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 257.5389 {y} -77.23 {z} 1.3678 {radius} 300.0 {clearParticles} True
load_scene 261.1952 {y} -79.2717 {z} 0.4697
98@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3497
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_3497
remove_char_from_group $catalina
99@ = 0

:CAT1_3497
if 
  not is_car_dead 78@
goto_if_false @CAT1_3632
43@ = get_car_model 78@
$x, $y, $z, 56@, 57@, 58@ = get_model_dimensions 43@
set_lvar_float_to_lvar_float 46@ = 57@
sub_float_var_from_float_lvar 46@ -= $y
46@ /= 1.8
$x = 259.7206
$y = -77.2067
$z = 0.5781
sub_float_lvar_from_float_var $x -= 46@
set_car_coordinates 78@ {x} $x {y} $y {z} $z
set_car_heading 78@ {heading} 265.6523

:CAT1_3632
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3866
clear_char_tasks_immediately $catalina
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_3714
set_char_coordinates $catalina {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_decision_maker $catalina {handleOrTemplate} 67@
goto @CAT1_3752

:CAT1_3714
warp_char_from_car_to_coord $catalina {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_decision_maker $catalina {handleOrTemplate} 67@

:CAT1_3752
43@ = get_current_char_weapon $catalina
if 
  not is_int_lvar_equal_to_constant 43@ == 28
goto_if_false @CAT1_3866
if 
  not has_model_loaded 352
goto_if_false @CAT1_3826
request_model 352

:CAT1_3799
if 
  not has_model_loaded 352
goto_if_false @CAT1_3826
wait 0
goto @CAT1_3799

:CAT1_3826
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3866
give_weapon_to_char $catalina {weaponType} WeaponType.MicroUzi {ammo} 99999
set_current_char_weapon $catalina {weaponType} WeaponType.MicroUzi
mark_model_as_no_longer_needed 352

:CAT1_3866
clear_char_tasks_immediately $scplayer
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_3924
set_char_coordinates $scplayer {x} 259.9737 {y} -78.3268 {z} 0.6181
set_char_heading $scplayer {heading} 38.3173
goto @CAT1_3954

:CAT1_3924
warp_char_from_car_to_coord $scplayer {x} 259.9737 {y} -78.3268 {z} 0.6181
set_char_heading $scplayer {heading} 38.3173

:CAT1_3954
79@ = create_car 471 {x} 230.6799 {y} -85.1536 {z} 0.4296
set_car_heading 79@ {heading} 17.5494
set_car_cruise_speed 79@ {maxSpeed} 20.0
set_car_driving_style 79@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 79@ {state} True
set_car_only_damaged_by_player 79@ {state} True
80@ = create_car 471 {x} 232.2597 {y} -90.1452 {z} 0.4297
set_car_heading 80@ {heading} 17.5685
set_car_cruise_speed 80@ {maxSpeed} 20.0
set_car_driving_style 80@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 80@ {state} True
set_car_only_damaged_by_player 80@ {state} True
81@ = create_car 471 {x} 234.0826 {y} -95.9093 {z} 0.4375
set_car_heading 81@ {heading} 17.5565
set_car_cruise_speed 81@ {maxSpeed} 20.0
set_car_driving_style 81@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 81@ {state} True
set_car_only_damaged_by_player 81@ {state} True
82@ = create_car 471 {x} 235.3937 {y} -100.0505 {z} 0.4375
set_car_heading 82@ {heading} 17.5591
set_car_cruise_speed 82@ {maxSpeed} 20.0
set_car_driving_style 82@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 82@ {state} True
set_car_only_damaged_by_player 82@ {state} True
43@ = 0

:CAT1_4217
if 
  4 > 43@
goto_if_false @CAT1_4512
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_4498
if 
  43@ == 0
goto_if_false @CAT1_4294
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 161 {var_handle} 72@(43@,4i)

:CAT1_4294
if 
  43@ == 1
goto_if_false @CAT1_4333
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 162 {var_handle} 72@(43@,4i)

:CAT1_4333
if 
  43@ == 2
goto_if_false @CAT1_4372
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 161 {var_handle} 72@(43@,4i)

:CAT1_4372
if 
  43@ == 3
goto_if_false @CAT1_4411
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 162 {var_handle} 72@(43@,4i)

:CAT1_4411
set_char_accuracy 72@(43@,4i) {accuracy} 60
give_weapon_to_char 72@(43@,4i) {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 72@(43@,4i) {handleOrTemplate} 67@
set_char_proofs 72@(43@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_anim_group_for_char 72@(43@,4i) {animGroup} "MAN"

:CAT1_4498
43@ += 1
goto @CAT1_4217

:CAT1_4512
start_playback_recorded_car 79@ {path} 501
start_playback_recorded_car 80@ {path} 502
start_playback_recorded_car 81@ {path} 503
start_playback_recorded_car 82@ {path} 504
43@ = 0

:CAT1_4551
if 
  4 > 43@
goto_if_false @CAT1_4674
if 
  43@ <> 0
goto_if_false @CAT1_4640
if 
  43@ <> 3
goto_if_false @CAT1_4626
skip_in_playback_recorded_car 79@(43@,4i) {amount} 5.0
goto @CAT1_4640

:CAT1_4626
skip_in_playback_recorded_car 79@(43@,4i) {amount} 7.0

:CAT1_4640
pause_playback_recorded_car 79@(43@,4i)
100@(43@,4i) = 1
43@ += 1
goto @CAT1_4551

:CAT1_4674
76@ = create_char PedType.CivMale {modelId} 44 {x} 251.6866 {y} -54.9554 {z} 0.6181
set_char_heading 76@ {heading} 174.9027
set_char_decision_maker 76@ {handleOrTemplate} 67@
77@ = create_char PedType.CivFemale {modelId} 77 {x} 251.6549 {y} -56.4859 {z} 0.6255
set_char_heading 77@ {heading} 354.6266
set_char_decision_maker 77@ {handleOrTemplate} 67@
task_chat_with_char 76@ {other} 77@ {leadSpeaker} True {_p4} 1
task_chat_with_char 77@ {other} 76@ {leadSpeaker} False {_p4} 1
134@ = 261.814
135@ = -79.2233
136@ = 3.2479
137@ = 261.3385
138@ = -78.3447
139@ = 3.2922
set_var_float_to_lvar_float $x = 137@
sub_float_lvar_from_float_var $x -= 134@
set_var_float_to_lvar_float $y = 138@
sub_float_lvar_from_float_var $y -= 135@
set_var_float_to_lvar_float $z = 139@
sub_float_lvar_from_float_var $z -= 136@
46@ = get_distance_between_coords_3d 137@ {fromY} 138@ {fromZ} 139@ {toX} 134@ {toY} 135@ {toZ} 136@
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
set_lvar_float_to_lvar_float 137@ = 134@
add_float_var_to_float_lvar 137@ += $x
set_lvar_float_to_lvar_float 138@ = 135@
add_float_var_to_float_lvar 138@ += $y
set_lvar_float_to_lvar_float 139@ = 136@
add_float_var_to_float_lvar 139@ += $z
$x = 260.876
$x -= 261.4119
$y = -77.7132
$y += 78.5511
$z = 2.2067
$z -= 2.3102
46@ = get_distance_between_coords_3d 261.4119 {fromY} -78.5511 {fromZ} 2.3102 {toX} 260.876 {toY} -77.7132 {toZ} 2.2067
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
140@ = 261.4119
add_float_var_to_float_lvar 140@ += $x
141@ = -78.5511
add_float_var_to_float_lvar 141@ += $y
142@ = 2.3102
add_float_var_to_float_lvar 142@ += $z
save_newline_to_debug_file 
save_string_to_debug_file "DEST_LOOK_XYZ = "
save_float_to_debug_file 140@
save_float_to_debug_file 141@
save_float_to_debug_file 142@
set_fixed_camera_position 134@ {y} 135@ {z} 136@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 137@ {y} 138@ {z} 139@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
wait 500
do_fade 500 {direction} Fade.In

:CAT1_5423
if 
  get_fading_status 
goto_if_false @CAT1_5447
wait 0
goto @CAT1_5423

:CAT1_5447
TIMERA = 0
TIMERB = 0
35@ += 1
goto @CAT1_9952

:CAT1_5475
35@ += 1
goto @CAT1_9952

:CAT1_5489
if 
  not is_char_dead $catalina
goto_if_false @CAT1_5601
clear_char_tasks_immediately $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 261.2168 {y} -77.1227 {z} 0.6181 {speed} MoveState.Walk {time} 3000
task_achieve_heading -1 {heading} 41.0763
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_5601
clear_char_tasks_immediately $scplayer
49@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} 260.7615 {y} -77.7368 {z} 0.6181 {speed} MoveState.Walk {time} 8000
task_achieve_heading -1 {heading} 5.0
if 
  not is_char_dead $catalina
goto_if_false @CAT1_5677
task_look_at_char -1 {target} $catalina {time} 8000

:CAT1_5677
task_pause -1 {time} 3000
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2400
148@ = 0
35@ += 1
goto @CAT1_9952

:CAT1_5748
if 
  TIMERA > 1500
goto_if_false @CAT1_5879
set_var_text_label s$audio_string = 'CAT1_AA'
set_var_int_to_constant $audio_sound_file = 2400
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
if 
  $cat_counter == 0
goto_if_false @CAT1_5844
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2430
goto @CAT1_5851

:CAT1_5844
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2429

:CAT1_5851
TIMERA = 0
35@ += 1
TIMERA = 0
goto @CAT1_6007

:CAT1_5879
if 
  TIMERA > 1000
goto_if_false @CAT1_6007
if 
  148@ == 0
goto_if_false @CAT1_6007
camera_reset_new_scriptables 
camera_set_vector_move 261.814 {fromY} -79.2233 {fromZ} 3.2479 {toX} 261.4119 {toY} -78.5511 {toZ} 2.3102 {time} 3000 {ease} True
camera_set_vector_track 261.3385 {fromY} -78.3447 {fromZ} 3.2922 {toX} 253.3734 {toY} -65.9824 {toZ} 0.7577 {time} 3000 {ease} True
camera_persist_track True
camera_persist_pos True
148@ += 1

:CAT1_6007
TIMERB = 0
goto @CAT1_9952

:CAT1_6021
if 
  TIMERA > 1000
goto_if_false @CAT1_6192
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6192
if 
  not is_char_dead $catalina
goto_if_false @CAT1_6079
clear_char_tasks $catalina

:CAT1_6079
if 
  $cat_counter == 0
goto_if_false @CAT1_6126
set_var_text_label s$audio_string = 'CAT1_AC'
set_var_int_to_constant $audio_sound_file = 2430
goto @CAT1_6148

:CAT1_6126
set_var_text_label s$audio_string = 'CAT1_AB'
set_var_int_to_constant $audio_sound_file = 2429

:CAT1_6148
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2401
TIMERA = 0
35@ += 1

:CAT1_6192
goto @CAT1_9952

:CAT1_6199
if 
  TIMERA > 1000
goto_if_false @CAT1_6302
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6302
set_var_text_label s$audio_string = 'CAT1_AD'
set_var_int_to_constant $audio_sound_file = 2401
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2431
TIMERA = 0
35@ += 1

:CAT1_6302
goto @CAT1_9952

:CAT1_6309
if 
  TIMERA > 1000
goto_if_false @CAT1_6412
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6412
set_var_text_label s$audio_string = 'CAT1_AE'
set_var_int_to_constant $audio_sound_file = 2431
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2440
TIMERA = 0
35@ += 1

:CAT1_6412
goto @CAT1_9952

:CAT1_6419
if 
  104@ == 2
goto_if_false @CAT1_6520
if 
  not is_char_dead $catalina
goto_if_false @CAT1_6520
camera_reset_new_scriptables 
set_fixed_camera_position 260.045 {y} -63.3693 {z} 2.4676 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 259.1025 {y} -63.6456 {z} 2.2799 {switchStyle} SwitchType.JumpCut
35@ += 1
TIMERA = 0

:CAT1_6520
goto @CAT1_9952

:CAT1_6527
if 
  TIMERA > 2500
goto_if_false @CAT1_7108
set_fixed_camera_position 250.2375 {y} -53.7657 {z} 2.328 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 250.8728 {y} -54.5222 {z} 2.1726 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 72@
goto_if_false @CAT1_6705
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} 252.6819 {y} -56.3618 {z} 0.6181
set_char_heading 72@ {heading} 20.1267
if 
  not is_char_dead 76@
goto_if_false @CAT1_6705
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_aim_gun_at_char -1 {target} 76@ {time} 999999
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:CAT1_6705
if 
  not is_char_dead 73@
goto_if_false @CAT1_6835
clear_char_tasks_immediately 73@
set_char_coordinates 73@ {x} 252.1074 {y} -57.8084 {z} 0.6181
set_char_heading 73@ {heading} 21.3066
if 
  not is_char_dead 77@
goto_if_false @CAT1_6835
set_char_health 77@ {health} 1
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_look_at_char -1 {target} 77@ {time} 5000
task_aim_gun_at_char -1 {target} 77@ {time} 2300
task_kill_char_on_foot -1 {target} 77@
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:CAT1_6835
if 
  not is_char_dead 74@
goto_if_false @CAT1_6886
clear_char_tasks_immediately 74@
set_char_coordinates 74@ {x} 254.4398 {y} -57.6653 {z} 0.6473
set_char_heading 74@ {heading} 48.9264

:CAT1_6886
if 
  not is_char_dead 75@
goto_if_false @CAT1_6937
clear_char_tasks_immediately 75@
set_char_coordinates 75@ {x} 255.1348 {y} -61.2211 {z} 0.6181
set_char_heading 75@ {heading} 170.608

:CAT1_6937
if 
  not is_char_dead 77@
goto_if_false @CAT1_7068
clear_char_tasks_immediately 77@
49@ = open_sequence_task 
if 
  not is_char_dead 72@
goto_if_false @CAT1_6989
task_look_at_char -1 {target} 72@ {time} 5000

:CAT1_6989
task_char_slide_to_coord_and_play_anim -1 {x} 251.1549 {y} -56.4655 {z} 0.6255 {heading} 293.7874 {radius} 0.02 {animationName} "HANDSCOWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:CAT1_7068
if 
  not is_char_dead 76@
goto_if_false @CAT1_7094
task_hands_up 76@ {time} 999999

:CAT1_7094
35@ += 1
TIMERA = 0

:CAT1_7108
goto @CAT1_9952

:CAT1_7115
if 
  TIMERA > 3000
goto_if_false @CAT1_7690
set_ped_density_multiplier 0.0
clear_area 242.0291 {y} -62.9491 {z} 2.3886 {radius} 50.0 {clearParticles} True
set_fixed_camera_position 242.0291 {y} -62.9491 {z} 2.3886 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 242.9384 {y} -63.3287 {z} 2.2181 {switchStyle} SwitchType.JumpCut
83@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
84@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
85@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
86@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
if 
  not is_char_dead 72@
goto_if_false @CAT1_7400
clear_char_tasks_immediately 72@
task_pick_up_object 72@ {object} 83@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 72@ {x} 254.2335 {y} -56.954 {z} 0.6181
set_char_heading 72@ {heading} 190.0

:CAT1_7400
if 
  not is_char_dead 75@
goto_if_false @CAT1_7492
clear_char_tasks_immediately 75@
task_pick_up_object 75@ {object} 86@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 75@ {x} 254.2521 {y} -58.7186 {z} 0.6181
set_char_heading 75@ {heading} 190.0

:CAT1_7492
if 
  not is_char_dead 74@
goto_if_false @CAT1_7584
clear_char_tasks_immediately 74@
task_pick_up_object 74@ {object} 85@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 74@ {x} 254.2762 {y} -60.0254 {z} 0.6255
set_char_heading 74@ {heading} 190.0

:CAT1_7584
if 
  not is_char_dead 73@
goto_if_false @CAT1_7676
clear_char_tasks_immediately 73@
task_pick_up_object 73@ {object} 84@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 73@ {x} 255.1927 {y} -54.9104 {z} 0.6181
set_char_heading 73@ {heading} 190.0

:CAT1_7676
TIMERA = 0
35@ += 1

:CAT1_7690
goto @CAT1_9952

:CAT1_7697
set_mission_audio_position MissionAudioSlot.Slot3 {x} 251.5757 {y} -62.9454 {z} 3.3786
play_mission_audio MissionAudioSlot.Slot3
124@ = 1
35@ += 1
TIMERA = 0
goto @CAT1_9952

:CAT1_7748
43@ = 0

:CAT1_7755
if 
  4 > 43@
goto_if_false @CAT1_7818
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_7804
104@(43@,4i) += 1

:CAT1_7804
43@ += 1
goto @CAT1_7755

:CAT1_7818
TIMERA = 0
35@ += 1
goto @CAT1_9952

:CAT1_7839
if 
  TIMERA > 1000
goto_if_false @CAT1_7942
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_7942
set_var_text_label s$audio_string = 'CAT1_AF'
set_var_int_to_constant $audio_sound_file = 2440
start_new_script @AUDIOL 75@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2402
TIMERA = 0
35@ += 1

:CAT1_7942
goto @CAT1_9952

:CAT1_7949
if 
  TIMERA > 1000
goto_if_false @CAT1_8052
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_8052
set_var_text_label s$audio_string = 'CAT1_AG'
set_var_int_to_constant $audio_sound_file = 2402
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2403
TIMERA = 0
35@ += 1

:CAT1_8052
goto @CAT1_9952

:CAT1_8059
if 
  10000 > TIMERA
goto_if_false @CAT1_8150
if 
  not is_char_dead 75@
goto_if_false @CAT1_8143
if 
  not is_car_dead 82@
goto_if_false @CAT1_8143
if 
  is_char_in_car 75@ {vehicle} 82@
goto_if_false @CAT1_8143
35@ += 1
TIMERA = 0

:CAT1_8143
goto @CAT1_8157

:CAT1_8150
35@ += 1

:CAT1_8157
goto @CAT1_9952

:CAT1_8164
if 
  TIMERA > 500
goto_if_false @CAT1_8190
35@ += 1

:CAT1_8190
goto @CAT1_9952

:CAT1_8197
43@ = 0

:CAT1_8204
if 
  4 > 43@
goto_if_false @CAT1_8265
if 
  does_object_exist 83@(43@,4i)
goto_if_false @CAT1_8251
delete_object 83@(43@,4i)

:CAT1_8251
43@ += 1
goto @CAT1_8204

:CAT1_8265
43@ = 0

:CAT1_8272
if 
  4 > 43@
goto_if_false @CAT1_8398
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_8373
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_8373
if 
  not is_char_in_car 72@(43@,4i) {vehicle} 79@(43@,4i)
goto_if_false @CAT1_8373
warp_char_into_car 72@(43@,4i) {vehicle} 79@(43@,4i)

:CAT1_8373
104@(43@,4i) = 6
43@ += 1
goto @CAT1_8272

:CAT1_8398
if 
  not is_car_dead 79@
goto_if_false @CAT1_8512
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_8512
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_8478
request_car_recording 509

:CAT1_8451
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_8478
wait 0
goto @CAT1_8451

:CAT1_8478
if 
  not is_car_dead 79@
goto_if_false @CAT1_8512
start_playback_recorded_car 79@ {path} 509
skip_in_playback_recorded_car 79@ {amount} 2.0

:CAT1_8512
if 
  not is_car_dead 80@
goto_if_false @CAT1_8626
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_8626
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_8592
request_car_recording 505

:CAT1_8565
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_8592
wait 0
goto @CAT1_8565

:CAT1_8592
if 
  not is_car_dead 80@
goto_if_false @CAT1_8626
start_playback_recorded_car 80@ {path} 505
skip_in_playback_recorded_car 80@ {amount} 0.0

:CAT1_8626
if 
  not is_car_dead 81@
goto_if_false @CAT1_8740
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_8740
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_8706
request_car_recording 506

:CAT1_8679
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_8706
wait 0
goto @CAT1_8679

:CAT1_8706
if 
  not is_car_dead 81@
goto_if_false @CAT1_8740
start_playback_recorded_car 81@ {path} 506
skip_in_playback_recorded_car 81@ {amount} 6.0

:CAT1_8740
if 
  not is_car_dead 82@
goto_if_false @CAT1_8854
if 
  not is_playback_going_on_for_car 82@
goto_if_false @CAT1_8854
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_8820
request_car_recording 507

:CAT1_8793
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_8820
wait 0
goto @CAT1_8793

:CAT1_8820
if 
  not is_car_dead 82@
goto_if_false @CAT1_8854
start_playback_recorded_car 82@ {path} 507
skip_in_playback_recorded_car 82@ {amount} 3.0

:CAT1_8854
if 
  not is_char_dead $catalina
goto_if_false @CAT1_8895
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 260.2472 {y} -75.3335 {z} 0.4697

:CAT1_8895
TIMERA = 0
set_fixed_camera_position 261.735 {y} -75.3817 {z} 2.127 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 260.836 {y} -74.9604 {z} 2.0068 {switchStyle} SwitchType.JumpCut
35@ += 1
goto @CAT1_9952

:CAT1_8967
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9065
set_char_heading $catalina {heading} 53.9394
set_char_shoot_rate $catalina {rate} 100
if 
  not is_char_dead 75@
goto_if_false @CAT1_9065
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_look_at_char -1 {target} 75@ {time} 1000
task_aim_gun_at_char -1 {target} 75@ {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_9065
TIMERA = 0
35@ += 1
goto @CAT1_9952

:CAT1_9086
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_9170
set_var_text_label s$audio_string = 'CAT1_AH'
set_var_int_to_constant $audio_sound_file = 2403
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 12672
TIMERA = 0
35@ += 1

:CAT1_9170
goto @CAT1_9952

:CAT1_9177
if 
  TIMERA > 2000
goto_if_false @CAT1_9258
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9258
if 
  not is_char_dead 75@
goto_if_false @CAT1_9258
set_char_shoot_rate $catalina {rate} 100
task_kill_char_on_foot $catalina {target} 75@
set_char_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:CAT1_9258
if 
  TIMERA > 2500
goto_if_false @CAT1_9328
set_fixed_camera_position 252.0826 {y} -71.4979 {z} 1.3761 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 253.0449 {y} -71.7658 {z} 1.4225 {switchStyle} SwitchType.JumpCut

:CAT1_9328
if 
  TIMERA > 2800
goto_if_false @CAT1_9511
if 
  not is_char_dead 75@
goto_if_false @CAT1_9511
if 
  not is_car_dead 82@
goto_if_false @CAT1_9511
clear_char_tasks_immediately 75@
49@ = open_sequence_task 
task_die_named_anim -1 {animationName} "BIKE_FALL_OFF" {animationFile} "PED" {blendSpeed} 4.0 {time} 1
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 12672
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2404
TIMERA = 0
35@ += 1
TIMERA = 0

:CAT1_9511
goto @CAT1_9952

:CAT1_9518
if 
  TIMERA > 1000
goto_if_false @CAT1_9544
35@ += 1

:CAT1_9544
goto @CAT1_9952

:CAT1_9551
if 
  is_char_dead 75@
goto_if_false @CAT1_9639
$x, $y, $z = get_dead_char_coordinates 75@
set_fixed_camera_position 259.2034 {y} -75.5284 {z} 2.0793 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 260.1396 {y} -75.2342 {z} 1.8871 {switchStyle} SwitchType.JumpCut
35@ += 1

:CAT1_9639
goto @CAT1_9952

:CAT1_9646
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9851
clear_char_tasks $catalina
49@ = open_sequence_task 
if 
  not is_car_dead 82@
goto_if_false @CAT1_9700
task_enter_car_as_passenger -1 {vehicle} 82@ {time} 5000 {seat} SeatId.BikeRear

:CAT1_9700
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@
clear_char_tasks $scplayer
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 263.4937 {y} -75.2639 {z} 0.4697 {speed} MoveState.Run {time} 5000
if 
  not is_car_dead 82@
goto_if_false @CAT1_9778
task_enter_car_as_driver -1 {vehicle} 82@ {time} 10000

:CAT1_9778
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 2404
start_new_script @AUDIOL $catalina 0 1 1 1 
TIMERA = 0
35@ += 1

:CAT1_9851
goto @CAT1_9952

:CAT1_9858
35@ += 1
goto @CAT1_9952

:CAT1_9872
if 
  not is_car_dead 82@
goto_if_false @CAT1_9945
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9945
if and
  is_char_in_car $catalina {vehicle} 82@
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CAT1_9945
35@ = 99
TIMERA = 0

:CAT1_9945
goto @CAT1_9952

:CAT1_9952
if 
  35@ > 1
goto_if_false @CAT1_10001
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT1_10001
35@ = 99
108@ = 1

:CAT1_10001
if 
  104@ == 0
goto_if_false @CAT1_10107
if 
  100@ == 1
goto_if_false @CAT1_10107
if 
  TIMERB > 1000
goto_if_false @CAT1_10107
if 
  not is_car_dead 79@
goto_if_false @CAT1_10107
if 
  is_playback_going_on_for_car 79@
goto_if_false @CAT1_10107
unpause_playback_recorded_car 79@
100@ = 0
104@ += 1

:CAT1_10107
if 
  105@ == 0
goto_if_false @CAT1_10213
if 
  101@ == 1
goto_if_false @CAT1_10213
if 
  TIMERB > 2000
goto_if_false @CAT1_10213
if 
  not is_car_dead 80@
goto_if_false @CAT1_10213
if 
  is_playback_going_on_for_car 80@
goto_if_false @CAT1_10213
unpause_playback_recorded_car 80@
101@ = 0
105@ += 1

:CAT1_10213
if 
  106@ == 0
goto_if_false @CAT1_10319
if 
  102@ == 1
goto_if_false @CAT1_10319
if 
  TIMERB > 2000
goto_if_false @CAT1_10319
if 
  not is_car_dead 81@
goto_if_false @CAT1_10319
if 
  is_playback_going_on_for_car 81@
goto_if_false @CAT1_10319
unpause_playback_recorded_car 81@
102@ = 0
106@ += 1

:CAT1_10319
if 
  107@ == 0
goto_if_false @CAT1_10425
if 
  103@ == 1
goto_if_false @CAT1_10425
if 
  TIMERB > 3000
goto_if_false @CAT1_10425
if 
  not is_car_dead 82@
goto_if_false @CAT1_10425
if 
  is_playback_going_on_for_car 82@
goto_if_false @CAT1_10425
unpause_playback_recorded_car 82@
103@ = 0
107@ += 1

:CAT1_10425
if 
  104@ == 1
goto_if_false @CAT1_10572
if 
  not is_car_dead 79@
goto_if_false @CAT1_10572
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_10572
if 
  not is_char_dead 72@
goto_if_false @CAT1_10572
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 79@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@
104@ += 1

:CAT1_10572
if 
  105@ == 1
goto_if_false @CAT1_10719
if 
  not is_car_dead 80@
goto_if_false @CAT1_10719
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_10719
if 
  not is_char_dead 73@
goto_if_false @CAT1_10719
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 80@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@
105@ += 1

:CAT1_10719
if 
  106@ == 1
goto_if_false @CAT1_10866
if 
  not is_car_dead 81@
goto_if_false @CAT1_10866
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_10866
if 
  not is_char_dead 74@
goto_if_false @CAT1_10866
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 81@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@
106@ += 1

:CAT1_10866
if 
  107@ == 1
goto_if_false @CAT1_11013
if 
  not is_car_dead 82@
goto_if_false @CAT1_11013
if 
  not is_playback_going_on_for_car 82@
goto_if_false @CAT1_11013
if 
  not is_char_dead 75@
goto_if_false @CAT1_11013
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 82@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
107@ += 1

:CAT1_11013
if 
  104@ == 3
goto_if_false @CAT1_11158
if 
  not is_char_dead 72@
goto_if_false @CAT1_11158
if 
  not is_car_dead 79@
goto_if_false @CAT1_11158
flush_route 
extend_route 254.6638 {y} -62.4099 {z} 0.6181
extend_route 252.9 {y} -64.95 {z} 0.6181
49@ = open_sequence_task 
task_pause -1 {time} 2000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 79@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@
104@ += 1

:CAT1_11158
if 
  105@ == 3
goto_if_false @CAT1_11359
if 
  not is_char_dead 73@
goto_if_false @CAT1_11359
if 
  not is_car_dead 80@
goto_if_false @CAT1_11359
if 
  not is_car_dead 80@
goto_if_false @CAT1_11253
$x, $y, $z = get_offset_from_car_in_world_coords 80@ {xOffset} 1.0 {yOffset} 0.5 {zOffset} 0.0

:CAT1_11253
flush_route 
extend_route 255.0126 {y} -62.5672 {z} 0.6181
extend_route 255.9082 {y} -64.7079 {z} 0.5781
extend_route $x {y} $y {z} $z
49@ = open_sequence_task 
task_pause -1 {time} 3000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 80@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@
105@ += 1

:CAT1_11359
if 
  106@ == 3
goto_if_false @CAT1_11503
if 
  not is_char_dead 74@
goto_if_false @CAT1_11503
if 
  not is_car_dead 81@
goto_if_false @CAT1_11503
flush_route 
extend_route 254.3236 {y} -62.2213 {z} 0.6181
extend_route 250.654 {y} -65.0175 {z} 0.6181
49@ = open_sequence_task 
task_pause -1 {time} 0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 81@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@
106@ += 1

:CAT1_11503
if 
  107@ == 3
goto_if_false @CAT1_11704
if 
  not is_char_dead 75@
goto_if_false @CAT1_11704
if 
  not is_car_dead 82@
goto_if_false @CAT1_11704
if 
  not is_car_dead 82@
goto_if_false @CAT1_11598
$x, $y, $z = get_offset_from_car_in_world_coords 82@ {xOffset} 1.0 {yOffset} 0.5 {zOffset} 0.0

:CAT1_11598
flush_route 
extend_route 254.0475 {y} -62.7343 {z} 0.6181
extend_route 247.6622 {y} -64.1287 {z} 0.5781
extend_route $x {y} $y {z} $z
49@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 82@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
107@ += 1

:CAT1_11704
if 
  104@ == 4
goto_if_false @CAT1_11812
if 
  not is_char_dead 72@
goto_if_false @CAT1_11812
if 
  not is_car_dead 79@
goto_if_false @CAT1_11812
if 
  locate_char_on_foot_car_3d 72@ {vehicle} 79@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @CAT1_11812
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver 72@ {vehicle} 79@ {time} 5000
104@ += 1

:CAT1_11812
if 
  105@ == 4
goto_if_false @CAT1_11837
105@ += 1

:CAT1_11837
if 
  106@ == 4
goto_if_false @CAT1_11945
if 
  not is_char_dead 74@
goto_if_false @CAT1_11945
if 
  not is_car_dead 81@
goto_if_false @CAT1_11945
if 
  locate_char_on_foot_car_3d 74@ {vehicle} 81@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @CAT1_11945
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver 74@ {vehicle} 81@ {time} 5000
106@ += 1

:CAT1_11945
if 
  107@ == 4
goto_if_false @CAT1_11970
107@ += 1

:CAT1_11970
if 
  104@ == 5
goto_if_false @CAT1_12118
if 
  not is_char_dead 72@
goto_if_false @CAT1_12118
if 
  not is_car_dead 79@
goto_if_false @CAT1_12118
if 
  is_char_in_car 72@ {vehicle} 79@
goto_if_false @CAT1_12118
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_12087
request_car_recording 509

:CAT1_12060
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_12087
wait 0
goto @CAT1_12060

:CAT1_12087
if 
  not is_car_dead 79@
goto_if_false @CAT1_12111
start_playback_recorded_car 79@ {path} 509

:CAT1_12111
104@ += 1

:CAT1_12118
if 
  105@ == 5
goto_if_false @CAT1_12266
if 
  not is_char_dead 73@
goto_if_false @CAT1_12266
if 
  not is_car_dead 80@
goto_if_false @CAT1_12266
if 
  is_char_in_car 73@ {vehicle} 80@
goto_if_false @CAT1_12266
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_12235
request_car_recording 505

:CAT1_12208
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_12235
wait 0
goto @CAT1_12208

:CAT1_12235
if 
  not is_car_dead 80@
goto_if_false @CAT1_12259
start_playback_recorded_car 80@ {path} 505

:CAT1_12259
105@ += 1

:CAT1_12266
if 
  106@ == 5
goto_if_false @CAT1_12414
if 
  not is_char_dead 74@
goto_if_false @CAT1_12414
if 
  not is_car_dead 81@
goto_if_false @CAT1_12414
if 
  is_char_in_car 74@ {vehicle} 81@
goto_if_false @CAT1_12414
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_12383
request_car_recording 506

:CAT1_12356
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_12383
wait 0
goto @CAT1_12356

:CAT1_12383
if 
  not is_car_dead 81@
goto_if_false @CAT1_12407
start_playback_recorded_car 81@ {path} 506

:CAT1_12407
106@ += 1

:CAT1_12414
if 
  107@ == 5
goto_if_false @CAT1_12562
if 
  not is_char_dead 75@
goto_if_false @CAT1_12562
if 
  not is_car_dead 82@
goto_if_false @CAT1_12562
if 
  is_char_in_car 75@ {vehicle} 82@
goto_if_false @CAT1_12562
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_12531
request_car_recording 507

:CAT1_12504
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_12531
wait 0
goto @CAT1_12504

:CAT1_12531
if 
  not is_car_dead 82@
goto_if_false @CAT1_12555
start_playback_recorded_car 82@ {path} 507

:CAT1_12555
107@ += 1

:CAT1_12562
if 
  104@ == 7
goto_if_false @CAT1_12649
if 
  not is_car_dead 79@
goto_if_false @CAT1_12649
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_12649
set_car_coordinates 79@ {x} 376.1397 {y} -94.8354 {z} 1.8378
set_car_heading 79@ {heading} 285.1002
104@ += 1

:CAT1_12649
if 
  105@ == 7
goto_if_false @CAT1_12736
if 
  not is_car_dead 80@
goto_if_false @CAT1_12736
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_12736
set_car_coordinates 80@ {x} 370.2741 {y} -95.2991 {z} 1.3107
set_car_heading 80@ {heading} 273.2807
105@ += 1

:CAT1_12736
if 
  106@ == 7
goto_if_false @CAT1_12823
if 
  not is_car_dead 81@
goto_if_false @CAT1_12823
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_12823
set_car_coordinates 81@ {x} 363.1674 {y} -95.3071 {z} 0.7736
set_car_heading 81@ {heading} 273.2807
106@ += 1

:CAT1_12823
if 
  35@ == 99
goto_if_false @CAT1_14066
camera_reset_new_scriptables 
switch_widescreen False
set_player_control $player1 {state} True
98@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
if 
  not is_car_dead 79@
goto_if_false @CAT1_12956
if 
  is_playback_going_on_for_car 79@
goto_if_false @CAT1_12926
stop_playback_recorded_car 79@

:CAT1_12926
set_car_coordinates 79@ {x} 376.1397 {y} -94.8354 {z} 1.8378
set_car_heading 79@ {heading} 285.1002

:CAT1_12956
if 
  not is_car_dead 80@
goto_if_false @CAT1_13023
if 
  is_playback_going_on_for_car 80@
goto_if_false @CAT1_12993
stop_playback_recorded_car 80@

:CAT1_12993
set_car_coordinates 80@ {x} 370.2741 {y} -95.2991 {z} 1.3107
set_car_heading 80@ {heading} 273.2807

:CAT1_13023
if 
  not is_car_dead 81@
goto_if_false @CAT1_13090
if 
  is_playback_going_on_for_car 81@
goto_if_false @CAT1_13060
stop_playback_recorded_car 81@

:CAT1_13060
set_car_coordinates 81@ {x} 363.1674 {y} -95.3071 {z} 0.7736
set_car_heading 81@ {heading} 273.2807

:CAT1_13090
if 
  108@ == 1
goto_if_false @CAT1_13183
if 
  not is_car_dead 82@
goto_if_false @CAT1_13183
if 
  is_playback_going_on_for_car 82@
goto_if_false @CAT1_13145
stop_playback_recorded_car 82@

:CAT1_13145
set_car_coordinates 82@ {x} 263.8679 {y} -73.6352 {z} 0.4297
set_car_heading 82@ {heading} 272.3554
set_car_health 82@ {health} 1500

:CAT1_13183
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_object 83@
delete_object 84@
delete_object 85@
delete_object 86@
if 
  not is_char_dead $catalina
goto_if_false @CAT1_13278
set_char_decision_maker $catalina {handleOrTemplate} 68@
clear_char_tasks_immediately $catalina
if 
  not is_car_dead 82@
goto_if_false @CAT1_13278
warp_char_into_car_as_passenger $catalina {handle} 82@ {seat} SeatId.BikeRear

:CAT1_13278
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 82@
goto_if_false @CAT1_13307
warp_char_into_car $scplayer {vehicle} 82@

:CAT1_13307
43@ = 0

:CAT1_13314
if 
  4 > 43@
goto_if_false @CAT1_13674
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_13660
if 
  43@ == 0
goto_if_false @CAT1_13399
create_char PedType.Mission1 {modelId} 161 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13399
if 
  43@ == 1
goto_if_false @CAT1_13446
create_char PedType.Mission1 {modelId} 162 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13446
if 
  43@ == 2
goto_if_false @CAT1_13493
create_char PedType.Mission1 {modelId} 161 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13493
if 
  43@ == 3
goto_if_false @CAT1_13540
create_char PedType.Mission1 {modelId} 162 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13540
set_char_accuracy 72@(43@,4i) {accuracy} 60
give_weapon_to_char 72@(43@,4i) {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 72@(43@,4i) {handleOrTemplate} 68@
set_char_proofs 72@(43@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_anim_group_for_char 72@(43@,4i) {animGroup} "MAN"
set_char_suffers_critical_hits 72@(43@,4i) {state} False
set_char_max_health 72@(43@,4i) {maxHealth} 100
set_char_health 72@(43@,4i) {health} 100

:CAT1_13660
43@ += 1
goto @CAT1_13314

:CAT1_13674
if 
  not is_car_dead 79@
goto_if_false @CAT1_13698
warp_char_into_car 72@ {vehicle} 79@

:CAT1_13698
if 
  not is_car_dead 80@
goto_if_false @CAT1_13722
warp_char_into_car 73@ {vehicle} 80@

:CAT1_13722
if 
  not is_car_dead 81@
goto_if_false @CAT1_13746
warp_char_into_car 74@ {vehicle} 81@

:CAT1_13746
43@ = 0

:CAT1_13753
if 
  3 > 43@
goto_if_false @CAT1_13832
set_car_cruise_speed 79@(43@,4i) {maxSpeed} 20.0
set_car_driving_style 79@(43@,4i) {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 79@(43@,4i) {state} True
set_car_only_damaged_by_player 79@(43@,4i) {state} True
43@ += 1
goto @CAT1_13753

:CAT1_13832
set_camera_behind_player 
restore_camera_jumpcut 
set_char_coordinates 75@ {x} 257.1983 {y} -72.641 {z} 1.4697
task_dead 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 161
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 44
mark_model_as_no_longer_needed 77
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  124@ <> 1
goto_if_false @CAT1_13961
set_mission_audio_position MissionAudioSlot.Slot3 {x} 251.5757 {y} -62.9454 {z} 3.3786
play_mission_audio MissionAudioSlot.Slot3
124@ = 1

:CAT1_13961
98@ = 1
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_14048
if 
  does_blip_exist 87@
goto_if_false @CAT1_14008
remove_blip 87@

:CAT1_14008
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_char_drowns_in_water $catalina {state} False
99@ = 1
64@ = 0
goto @CAT1_14055

:CAT1_14048
99@ = 1

:CAT1_14055
set_radio_channel RadioChannel.KRose
gosub @CAT1_32428

:CAT1_14066
return 

:CAT1_14068
if 
  35@ == 0
goto_if_false @CAT1_14944
set_create_random_gang_members False
166@ = generate_random_int_in_range 0 {max} 8
43@ = 0

:CAT1_14106
if 
  3 > 43@
goto_if_false @CAT1_14309
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_14236
add_blip_for_char 72@(43@,4i) {var_handle} 88@(43@,3i)
set_char_max_health 72@(43@,4i) {maxHealth} 200
set_char_health 72@(43@,4i) {health} 200
set_char_relationship 72@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 72@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} True {inCar} False {duringScriptTask} False
set_char_can_be_knocked_off_bike 72@(43@,4i) {stayOnBike} False

:CAT1_14236
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_14295
set_car_driving_style 79@(43@,4i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 79@(43@,4i) {maxSpeed} 25.0
set_car_forward_speed 79@(43@,4i) {forwardSpeed} 5.0

:CAT1_14295
43@ += 1
goto @CAT1_14106

:CAT1_14309
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
133@ = 1.05
request_car_recording 553
request_car_recording 554
request_car_recording 555

:CAT1_14376
if or
  not has_car_recording_been_loaded 553
  not has_car_recording_been_loaded 554
  not has_car_recording_been_loaded 555
goto_if_false @CAT1_14413
wait 0
goto @CAT1_14376

:CAT1_14413
if 
  not is_car_dead 79@
goto_if_false @CAT1_14460
start_playback_recorded_car_using_ai 79@ {pathId} 553
skip_in_playback_recorded_car 79@ {amount} 1.0
add_stuck_car_check 79@ {distance} 2.0 {time} 2000

:CAT1_14460
if 
  not is_car_dead 80@
goto_if_false @CAT1_14507
start_playback_recorded_car_using_ai 80@ {pathId} 554
skip_in_playback_recorded_car 80@ {amount} 1.0
add_stuck_car_check 80@ {distance} 2.0 {time} 2000

:CAT1_14507
if 
  not is_car_dead 81@
goto_if_false @CAT1_14554
start_playback_recorded_car_using_ai 81@ {pathId} 555
skip_in_playback_recorded_car 81@ {amount} 1.0
add_stuck_car_check 81@ {distance} 2.0 {time} 2000

:CAT1_14554
if 
  not is_char_dead $catalina
goto_if_false @CAT1_14702
clear_group_decision_maker_event_response 145@ {event} Event.AcquaintancePedHate
set_group_decision_maker $Players_Group {handleOrTemplate} 145@
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $catalina {handleOrTemplate} 146@
task_toggle_ped_threat_scanner $catalina {onFoot} True {inCar} False {duringScriptTask} False
add_group_decision_maker_event_response 145@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_accuracy $catalina {accuracy} 35
set_char_shoot_rate $catalina {rate} 100
set_char_drowns_in_water $catalina {state} False

:CAT1_14702
$6986 = 1
104@ = 0
105@ = 0
106@ = 0
98@ = 0
43@ = generate_random_int_in_range 1 {max} 3
if 
  43@ == 0
goto_if_false @CAT1_14805
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 2404
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14805
if 
  43@ == 1
goto_if_false @CAT1_14864
set_var_text_label s$audio_string = 'CAT1_BB'
set_var_int_to_constant $audio_sound_file = 2405
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14864
if 
  43@ == 2
goto_if_false @CAT1_14923
set_var_text_label s$audio_string = 'CAT1_BC'
set_var_int_to_constant $audio_sound_file = 2406
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14923
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
35@ += 1

:CAT1_14944
if 
  35@ == 1
goto_if_false @CAT1_17123
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @CAT1_14987
133@ += 0.1

:CAT1_14987
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @CAT1_15043
133@ += -0.1
if 
  0.0 > 133@
goto_if_false @CAT1_15043
133@ = 0.0

:CAT1_15043
if 
  not is_char_dead $catalina
goto_if_false @CAT1_15154
if 
  not is_car_dead 78@
goto_if_false @CAT1_15147
if 
  is_char_in_car $catalina {vehicle} 78@
goto_if_false @CAT1_15133
if 
  116@ == 0
goto_if_false @CAT1_15126
set_current_char_weapon $catalina {weaponType} WeaponType.MicroUzi
116@ = 1

:CAT1_15126
goto @CAT1_15140

:CAT1_15133
116@ = 0

:CAT1_15140
goto @CAT1_15154

:CAT1_15147
116@ = 0

:CAT1_15154
43@ = 0

:CAT1_15161
if 
  3 > 43@
goto_if_false @CAT1_15220
set_lvar_int_to_lvar_int 163@ = 43@
gosub @CAT1_27428
set_lvar_float_to_lvar_float 127@(43@,3f) = 165@
43@ += 1
goto @CAT1_15161

:CAT1_15220
43@ = 0

:CAT1_15227
if 
  3 > 43@
goto_if_false @CAT1_15624
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_15610
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15509
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15509
if 
  not is_playback_going_on_for_car 79@(43@,4i)
goto_if_false @CAT1_15509
104@(43@,4i) += 1
flush_route 
extend_route 2346.271 {y} -1044.447 {z} 52.6699
extend_route 2349.3369 {y} -1043.6219 {z} 52.9884
extend_route 2354.353 {y} -1041.798 {z} 53.136
extend_route 2355.844 {y} -1039.797 {z} 53.1562
extend_route 2355.5591 {y} -1038.575 {z} 53.3358
49@ = open_sequence_task 
if 
  is_char_in_car 72@(43@,4i) {vehicle} 79@(43@,4i)
goto_if_false @CAT1_15468
task_leave_car -1 {vehicle} 79@(43@,4i)

:CAT1_15468
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 72@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_accuracy 72@(43@,4i) {accuracy} 90

:CAT1_15509
if 
  104@(43@,4i) == 1
goto_if_false @CAT1_15610
if 
  locate_char_on_foot_3d 72@(43@,4i) {x} 2355.5591 {y} -1038.575 {z} 53.3358 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_15610
remove_char_elegantly 72@(43@,4i)
104@(43@,4i) += 1
gosub @CAT1_32428

:CAT1_15610
43@ += 1
goto @CAT1_15227

:CAT1_15624
43@ = 0

:CAT1_15631
if 
  3 > 43@
goto_if_false @CAT1_16011
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_15997
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15997
if 
  not is_char_in_any_car 72@(43@,4i)
goto_if_false @CAT1_15997
44@ = get_script_task_status 72@(43@,4i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @CAT1_15842
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15835
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 79@(43@,4i) {time} 60000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 79@(43@,4i) {time} 60000
close_sequence_task 49@
perform_sequence_task 72@(43@,4i) {sequence} 49@
clear_sequence_task 49@
goto @CAT1_15835

:CAT1_15835
goto @CAT1_15997

:CAT1_15842
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15997
if 
  not is_car_on_screen 79@(43@,4i)
goto_if_false @CAT1_15997
if 
  not is_char_on_screen 72@(43@,4i)
goto_if_false @CAT1_15997
if 
  not locate_char_any_means_char_3d $scplayer {target} 72@(43@,4i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_15997
44@ = get_driver_of_car 79@(43@,4i)
if 
  44@ == -1
goto_if_false @CAT1_15997
clear_char_tasks_immediately 72@(43@,4i)
warp_char_into_car 72@(43@,4i) {vehicle} 79@(43@,4i)

:CAT1_15997
43@ += 1
goto @CAT1_15631

:CAT1_16011
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CAT1_16085
if 
  not is_char_dead 73@
goto_if_false @CAT1_16085
if 
  not is_car_dead 80@
goto_if_false @CAT1_16085
if 
  is_char_in_car 73@ {vehicle} 80@
goto_if_false @CAT1_16085
task_leave_car_immediately 73@ {vehicle} 80@

:CAT1_16085
if 
  locate_char_any_means_2d $scplayer {x} 1397.24 {y} 216.0877 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CAT1_16181
if 
  115@ <> 1
goto_if_false @CAT1_16181
133@ += -0.05
115@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_16181
set_char_accuracy $catalina {accuracy} 50

:CAT1_16181
if 
  locate_char_any_means_2d $scplayer {x} 2711.1189 {y} -53.5082 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CAT1_16277
if 
  115@ <> 2
goto_if_false @CAT1_16277
133@ += 0.25
115@ = 2
if 
  not is_char_dead $catalina
goto_if_false @CAT1_16277
set_char_accuracy $catalina {accuracy} 70

:CAT1_16277
43@ = 0

:CAT1_16284
if 
  3 > 43@
goto_if_false @CAT1_16489
if 
  is_char_dead 72@(43@,4i)
goto_if_false @CAT1_16475
if 
  121@(43@,3i) == 0
goto_if_false @CAT1_16475
if 
  95@(43@,3i) == -1
goto_if_false @CAT1_16475
remove_blip 88@(43@,3i)
88@(43@,3i) = 0
$x, $y, $z = get_dead_char_pickup_coords 72@(43@,4i)
create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 95@(43@,3i)
add_blip_for_coord $x {y} $y {z} $z {var_handle} 91@(43@,3i)
change_blip_colour 91@(43@,3i) {color} BlipColor.Green
147@ = 29000
121@(43@,3i) = 1

:CAT1_16475
43@ += 1
goto @CAT1_16284

:CAT1_16489
43@ = 0

:CAT1_16496
if 
  3 > 43@
goto_if_false @CAT1_16793
if 
  does_pickup_exist 95@(43@,3i)
goto_if_false @CAT1_16779
if 
  147@ > 30000
goto_if_false @CAT1_16576
print_now 'CAT108' {time} 7000 {flag} 1
147@ = 0

:CAT1_16576
$x, $y, $z = get_pickup_coordinates 95@(43@,3i)
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_16701
remove_blip 91@(43@,3i)
remove_pickup 95@(43@,3i)
95@(43@,3i) = -1
clear_prints 
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
$6986 += 1
goto @CAT1_16779

:CAT1_16701
if 
  has_pickup_been_collected 95@(43@,3i)
goto_if_false @CAT1_16779
remove_blip 91@(43@,3i)
remove_pickup 95@(43@,3i)
95@(43@,3i) = -1
clear_prints 
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
$6986 += 1

:CAT1_16779
43@ += 1
goto @CAT1_16496

:CAT1_16793
if 
  is_char_dead $catalina
goto_if_false @CAT1_16832
print_now 'LOSE2' {time} 5000 {flag} 1
37@ = 1

:CAT1_16832
43@ = 0
if 
  not is_char_dead 72@
goto_if_false @CAT1_16888
if or
  300.0 > 130@
  is_char_on_screen 72@
goto_if_false @CAT1_16888
43@ = 1

:CAT1_16888
if 
  not is_char_dead 73@
goto_if_false @CAT1_16937
if or
  300.0 > 131@
  is_char_on_screen 73@
goto_if_false @CAT1_16937
43@ = 1

:CAT1_16937
if 
  not is_char_dead 74@
goto_if_false @CAT1_16986
if or
  300.0 > 132@
  is_char_on_screen 74@
goto_if_false @CAT1_16986
43@ = 1

:CAT1_16986
if and
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @CAT1_17019
43@ = 1

:CAT1_17019
if 
  43@ == 0
goto_if_false @CAT1_17062
if 
  125@ == 0
goto_if_false @CAT1_17062
gosub @CAT1_32428

:CAT1_17062
gosub @CAT1_28492
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @CAT1_17091
$6986 = 4

:CAT1_17091
if 
  $6986 == 4
goto_if_false @CAT1_17123
gosub @CAT1_32428
gosub @CAT1_32428

:CAT1_17123
return 

:CAT1_17125
set_player_control $player1 {state} False
switch_widescreen True
149@ = get_area_visible 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  149@ <> 0
goto_if_false @CAT1_17278
do_fade 250 {direction} Fade.Out

:CAT1_17180
if 
  get_fading_status 
goto_if_false @CAT1_17204
wait 0
goto @CAT1_17180

:CAT1_17204
if 
  not is_char_dead $catalina
goto_if_false @CAT1_17278
set_area_visible 0
freeze_char_position $scplayer {state} True
$x, $y, $z = get_char_coordinates $catalina
set_char_proofs $catalina {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:CAT1_17278
if 
  not is_char_dead $catalina
goto_if_false @CAT1_17338
set_camera_in_front_of_char $catalina
task_wander_standard $catalina
$x, $y, $z = get_char_coordinates $catalina
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False

:CAT1_17338
43@ = generate_random_int_in_range 0 {max} 10
switch_start 43@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_17955 {caseNum1} 0 {caseLabel1} @CAT1_17475 {caseNum2} 1 {caseLabel2} @CAT1_17523 {caseNum3} 2 {caseLabel3} @CAT1_17571 {caseNum4} 3 {caseLabel4} @CAT1_17619 {caseNum5} 4 {caseLabel5} @CAT1_17667 {caseNum6} 5 {caseLabel6} @CAT1_17715 {caseNum7} 6 {caseLabel7} @CAT1_17763
switch_continued 7 {caseLabel1} @CAT1_17811 {caseNum2} 8 {caseLabel2} @CAT1_17859 {caseNum3} 9 {caseLabel3} @CAT1_17907 {caseNum4} -1 {caseLabel4} @CAT1_17955 {caseNum5} -1 {caseLabel5} @CAT1_17955 {caseNum6} -1 {caseLabel6} @CAT1_17955 {caseNum7} -1 {caseLabel7} @CAT1_17955 {caseNum8} -1 {caseLabel8} @CAT1_17955 {caseNum9} -1 {caseLabel9} @CAT1_17955

:CAT1_17475
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 12689
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17523
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 12690
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17571
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 12691
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17619
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 12692
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17667
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 12693
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17715
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 12694
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17763
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 12695
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17811
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 12696
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17859
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 12697
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17907
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 12698
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17955
wait 100

:CAT1_17959
if 
  $audio_line_is_active <> 0
goto_if_false @CAT1_17988
wait 0
goto @CAT1_17959

:CAT1_17988
wait 500
if 
  149@ <> 0
goto_if_false @CAT1_18086
do_fade 500 {direction} Fade.Out

:CAT1_18018
if 
  get_fading_status 
goto_if_false @CAT1_18042
wait 0
goto @CAT1_18018

:CAT1_18042
set_area_visible 149@
freeze_char_position $scplayer {state} False
$x, $y, $z = get_char_coordinates $scplayer
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:CAT1_18086
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $catalina
print_now 'LOSE' {time} 5000 {flag} 1
37@ = 1
return 

:CAT1_18131
if 
  35@ == 0
goto_if_false @CAT1_18218
set_create_random_gang_members True
94@ = add_blip_for_coord $catX {y} $catY {z} $catZ
print_now 'CAT112' {time} 7000 {flag} 1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
150@ = 0
120@ = 0
35@ += 1

:CAT1_18218
if 
  35@ == 1
goto_if_false @CAT1_22350
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @CAT1_18414
if 
  120@ == 0
goto_if_false @CAT1_18414
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @CAT1_18344
set_var_text_label s$audio_string = 'CAT1_FA'
set_var_int_to_constant $audio_sound_file = 2420
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_18385

:CAT1_18344
set_var_text_label s$audio_string = 'CAT1_FB'
set_var_int_to_constant $audio_sound_file = 2421
start_new_script @AUDIOL $catalina 0 0 1 0 

:CAT1_18385
62@ = 0
150@ = 1
120@ += 1
TIMERA = -5000

:CAT1_18414
if 
  150@ == 1
goto_if_false @CAT1_21422
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  TIMERA > 1000
goto_if_false @CAT1_21422
if 
  not is_char_dead $catalina
goto_if_false @CAT1_21422
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_21422
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_21422
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT1_19798
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_19784 {caseNum1} 0 {caseLabel1} @CAT1_18671 {caseNum2} 1 {caseLabel2} @CAT1_18737 {caseNum3} 2 {caseLabel3} @CAT1_19055 {caseNum4} 3 {caseLabel4} @CAT1_19132 {caseNum5} 4 {caseLabel5} @CAT1_19191 {caseNum6} 5 {caseLabel6} @CAT1_19250 {caseNum7} 6 {caseLabel7} @CAT1_19309
switch_continued 8 {caseLabel1} @CAT1_19368 {caseNum2} 9 {caseLabel2} @CAT1_19427 {caseNum3} 10 {caseLabel3} @CAT1_19486 {caseNum4} 11 {caseLabel4} @CAT1_19545 {caseNum5} 12 {caseLabel5} @CAT1_19604 {caseNum6} 13 {caseLabel6} @CAT1_19663 {caseNum7} 14 {caseLabel7} @CAT1_19722 {caseNum8} 15 {caseLabel8} @CAT1_19770 {caseNum9} -1 {caseLabel9} @CAT1_19784

:CAT1_18671
if 
  $cat_counter == 0
goto_if_false @CAT1_18730
set_var_text_label s$audio_string = 'CAT_DA'
set_var_int_to_constant $audio_sound_file = 2217
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_18730
goto @CAT1_19784

:CAT1_18737
if 
  $cat_counter == 0
goto_if_false @CAT1_19048
if 
  not is_char_dead $catalina
goto_if_false @CAT1_18785
$x, $y, $z = get_char_coordinates $catalina

:CAT1_18785
set_lvar_float_to_var_float 46@ = $catY
sub_float_var_from_float_lvar 46@ -= $y
set_lvar_float_to_var_float 47@ = $catX
sub_float_var_from_float_lvar 47@ -= $x
if 
  0.0 > 47@
goto_if_false @CAT1_18863
48@ = -1.0
mult_float_lvar_by_float_lvar 48@ *= 47@
goto @CAT1_18871

:CAT1_18863
set_lvar_float_to_lvar_float 48@ = 47@

:CAT1_18871
if 
  is_float_lvar_greater_than_float_lvar 46@ > 48@
goto_if_false @CAT1_18938
set_var_text_label s$audio_string = 'CAT_DD'
set_var_int_to_constant $audio_sound_file = 2220
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19048

:CAT1_18938
if 
  47@ > 0.0
goto_if_false @CAT1_19007
set_var_text_label s$audio_string = 'CAT_DC'
set_var_int_to_constant $audio_sound_file = 2219
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19048

:CAT1_19007
set_var_text_label s$audio_string = 'CAT_DB'
set_var_int_to_constant $audio_sound_file = 2218
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_19048
goto @CAT1_19784

:CAT1_19055
if 
  $cat_counter == 0
goto_if_false @CAT1_19125
set_var_text_label s$audio_string = 'CAT_DE'
set_var_int_to_constant $audio_sound_file = 2221
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2300

:CAT1_19125
goto @CAT1_19784

:CAT1_19132
set_var_text_label s$audio_string = 'CAT_DF'
set_var_int_to_constant $audio_sound_file = 2300
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2222
goto @CAT1_19784

:CAT1_19191
set_var_text_label s$audio_string = 'CAT_DG'
set_var_int_to_constant $audio_sound_file = 2222
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2223
goto @CAT1_19784

:CAT1_19250
set_var_text_label s$audio_string = 'CAT_DH'
set_var_int_to_constant $audio_sound_file = 2223
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2224
goto @CAT1_19784

:CAT1_19309
set_var_text_label s$audio_string = 'CAT_DI'
set_var_int_to_constant $audio_sound_file = 2224
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2225
goto @CAT1_19784

:CAT1_19368
set_var_text_label s$audio_string = 'CAT_DJ'
set_var_int_to_constant $audio_sound_file = 2225
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2226
goto @CAT1_19784

:CAT1_19427
set_var_text_label s$audio_string = 'CAT_DK'
set_var_int_to_constant $audio_sound_file = 2226
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2301
goto @CAT1_19784

:CAT1_19486
set_var_text_label s$audio_string = 'CAT_DL'
set_var_int_to_constant $audio_sound_file = 2301
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2227
goto @CAT1_19784

:CAT1_19545
set_var_text_label s$audio_string = 'CAT_DM'
set_var_int_to_constant $audio_sound_file = 2227
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2228
goto @CAT1_19784

:CAT1_19604
set_var_text_label s$audio_string = 'CAT_DN'
set_var_int_to_constant $audio_sound_file = 2228
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2302
goto @CAT1_19784

:CAT1_19663
set_var_text_label s$audio_string = 'CAT_DO'
set_var_int_to_constant $audio_sound_file = 2302
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2229
goto @CAT1_19784

:CAT1_19722
set_var_text_label s$audio_string = 'CAT_DP'
set_var_int_to_constant $audio_sound_file = 2229
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_19784

:CAT1_19770
150@ = 0
goto @CAT1_19784

:CAT1_19784
62@ += 1
TIMERA = 0

:CAT1_19798
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT1_20787
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_20773 {caseNum1} 0 {caseLabel1} @CAT1_19944 {caseNum2} 1 {caseLabel2} @CAT1_20003 {caseNum3} 2 {caseLabel3} @CAT1_20062 {caseNum4} 3 {caseLabel4} @CAT1_20121 {caseNum5} 4 {caseLabel5} @CAT1_20180 {caseNum6} 5 {caseLabel6} @CAT1_20239 {caseNum7} 6 {caseLabel7} @CAT1_20298
switch_continued 7 {caseLabel1} @CAT1_20357 {caseNum2} 8 {caseLabel2} @CAT1_20416 {caseNum3} 9 {caseLabel3} @CAT1_20475 {caseNum4} 10 {caseLabel4} @CAT1_20534 {caseNum5} 11 {caseLabel5} @CAT1_20593 {caseNum6} 12 {caseLabel6} @CAT1_20652 {caseNum7} 13 {caseLabel7} @CAT1_20711 {caseNum8} 14 {caseLabel8} @CAT1_20759 {caseNum9} -1 {caseLabel9} @CAT1_20773

:CAT1_19944
set_var_text_label s$audio_string = 'CAT_GA'
set_var_int_to_constant $audio_sound_file = 2247
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2313
goto @CAT1_20773

:CAT1_20003
set_var_text_label s$audio_string = 'CAT_GB'
set_var_int_to_constant $audio_sound_file = 2313
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2248
goto @CAT1_20773

:CAT1_20062
set_var_text_label s$audio_string = 'CAT_GC'
set_var_int_to_constant $audio_sound_file = 2248
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2314
goto @CAT1_20773

:CAT1_20121
set_var_text_label s$audio_string = 'CAT_GD'
set_var_int_to_constant $audio_sound_file = 2314
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2315
goto @CAT1_20773

:CAT1_20180
set_var_text_label s$audio_string = 'CAT_GE'
set_var_int_to_constant $audio_sound_file = 2315
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2249
goto @CAT1_20773

:CAT1_20239
set_var_text_label s$audio_string = 'CAT_GF'
set_var_int_to_constant $audio_sound_file = 2249
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2316
goto @CAT1_20773

:CAT1_20298
set_var_text_label s$audio_string = 'CAT_GG'
set_var_int_to_constant $audio_sound_file = 2316
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2250
goto @CAT1_20773

:CAT1_20357
set_var_text_label s$audio_string = 'CAT_GH'
set_var_int_to_constant $audio_sound_file = 2250
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2317
goto @CAT1_20773

:CAT1_20416
set_var_text_label s$audio_string = 'CAT_GI'
set_var_int_to_constant $audio_sound_file = 2317
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2251
goto @CAT1_20773

:CAT1_20475
set_var_text_label s$audio_string = 'CAT_GJ'
set_var_int_to_constant $audio_sound_file = 2251
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2252
goto @CAT1_20773

:CAT1_20534
set_var_text_label s$audio_string = 'CAT_GK'
set_var_int_to_constant $audio_sound_file = 2252
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2253
goto @CAT1_20773

:CAT1_20593
set_var_text_label s$audio_string = 'CAT_GL'
set_var_int_to_constant $audio_sound_file = 2253
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2254
goto @CAT1_20773

:CAT1_20652
set_var_text_label s$audio_string = 'CAT_GM'
set_var_int_to_constant $audio_sound_file = 2254
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2318
goto @CAT1_20773

:CAT1_20711
set_var_text_label s$audio_string = 'CAT_GN'
set_var_int_to_constant $audio_sound_file = 2318
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @CAT1_20773

:CAT1_20759
150@ = 0
goto @CAT1_20773

:CAT1_20773
62@ += 1
TIMERA = 0

:CAT1_20787
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT1_21422
switch_start 62@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_21408 {caseNum1} 0 {caseLabel1} @CAT1_20933 {caseNum2} 1 {caseLabel2} @CAT1_20992 {caseNum3} 2 {caseLabel3} @CAT1_21051 {caseNum4} 3 {caseLabel4} @CAT1_21110 {caseNum5} 4 {caseLabel5} @CAT1_21169 {caseNum6} 5 {caseLabel6} @CAT1_21228 {caseNum7} 6 {caseLabel7} @CAT1_21287
switch_continued 7 {caseLabel1} @CAT1_21346 {caseNum2} 14 {caseLabel2} @CAT1_21394 {caseNum3} -1 {caseLabel3} @CAT1_21408 {caseNum4} -1 {caseLabel4} @CAT1_21408 {caseNum5} -1 {caseLabel5} @CAT1_21408 {caseNum6} -1 {caseLabel6} @CAT1_21408 {caseNum7} -1 {caseLabel7} @CAT1_21408 {caseNum8} -1 {caseLabel8} @CAT1_21408 {caseNum9} -1 {caseLabel9} @CAT1_21408

:CAT1_20933
set_var_text_label s$audio_string = 'CAT_OA'
set_var_int_to_constant $audio_sound_file = 2281
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2332
goto @CAT1_21408

:CAT1_20992
set_var_text_label s$audio_string = 'CAT_OB'
set_var_int_to_constant $audio_sound_file = 2332
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2282
goto @CAT1_21408

:CAT1_21051
set_var_text_label s$audio_string = 'CAT_OC'
set_var_int_to_constant $audio_sound_file = 2282
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2333
goto @CAT1_21408

:CAT1_21110
set_var_text_label s$audio_string = 'CAT_OD'
set_var_int_to_constant $audio_sound_file = 2333
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2283
goto @CAT1_21408

:CAT1_21169
set_var_text_label s$audio_string = 'CAT_OE'
set_var_int_to_constant $audio_sound_file = 2283
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2334
goto @CAT1_21408

:CAT1_21228
set_var_text_label s$audio_string = 'CAT_OF'
set_var_int_to_constant $audio_sound_file = 2334
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2284
goto @CAT1_21408

:CAT1_21287
set_var_text_label s$audio_string = 'CAT_OG'
set_var_int_to_constant $audio_sound_file = 2284
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2285
goto @CAT1_21408

:CAT1_21346
set_var_text_label s$audio_string = 'CAT_OH'
set_var_int_to_constant $audio_sound_file = 2285
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_21408

:CAT1_21394
150@ = 0
goto @CAT1_21408

:CAT1_21408
62@ += 1
TIMERA = 0

:CAT1_21422
if 
  150@ == 0
goto_if_false @CAT1_22180
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  TIMERA > 30000
goto_if_false @CAT1_22180
43@ = generate_random_int_in_range 0 {max} 16
switch_start 43@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_22154 {caseNum1} 0 {caseLabel1} @CAT1_21600 {caseNum2} 1 {caseLabel2} @CAT1_21629 {caseNum3} 2 {caseLabel3} @CAT1_21658 {caseNum4} 3 {caseLabel4} @CAT1_21687 {caseNum5} 4 {caseLabel5} @CAT1_21716 {caseNum6} 5 {caseLabel6} @CAT1_21745 {caseNum7} 6 {caseLabel7} @CAT1_21774
switch_continued 7 {caseLabel1} @CAT1_21803 {caseNum2} 8 {caseLabel2} @CAT1_21832 {caseNum3} 9 {caseLabel3} @CAT1_21861 {caseNum4} 10 {caseLabel4} @CAT1_21890 {caseNum5} 11 {caseLabel5} @CAT1_21964 {caseNum6} 12 {caseLabel6} @CAT1_21993 {caseNum7} 13 {caseLabel7} @CAT1_22022 {caseNum8} 14 {caseLabel8} @CAT1_22051 {caseNum9} 15 {caseLabel9} @CAT1_22125

:CAT1_21600
set_var_text_label s$audio_string = 'CATX_VA'
set_var_int_to_constant $audio_sound_file = 12699
goto @CAT1_22154

:CAT1_21629
set_var_text_label s$audio_string = 'CATX_VB'
set_var_int_to_constant $audio_sound_file = 12700
goto @CAT1_22154

:CAT1_21658
set_var_text_label s$audio_string = 'CATX_VC'
set_var_int_to_constant $audio_sound_file = 12701
goto @CAT1_22154

:CAT1_21687
set_var_text_label s$audio_string = 'CATX_VD'
set_var_int_to_constant $audio_sound_file = 12702
goto @CAT1_22154

:CAT1_21716
set_var_text_label s$audio_string = 'CATX_VE'
set_var_int_to_constant $audio_sound_file = 12703
goto @CAT1_22154

:CAT1_21745
set_var_text_label s$audio_string = 'CATX_VF'
set_var_int_to_constant $audio_sound_file = 12704
goto @CAT1_22154

:CAT1_21774
set_var_text_label s$audio_string = 'CATX_VG'
set_var_int_to_constant $audio_sound_file = 12705
goto @CAT1_22154

:CAT1_21803
set_var_text_label s$audio_string = 'CATX_VH'
set_var_int_to_constant $audio_sound_file = 12706
goto @CAT1_22154

:CAT1_21832
set_var_text_label s$audio_string = 'CATX_VJ'
set_var_int_to_constant $audio_sound_file = 12707
goto @CAT1_22154

:CAT1_21861
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 12708
goto @CAT1_22154

:CAT1_21890
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_21935
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 12708
goto @CAT1_21957

:CAT1_21935
set_var_text_label s$audio_string = 'CATX_VL'
set_var_int_to_constant $audio_sound_file = 12709

:CAT1_21957
goto @CAT1_22154

:CAT1_21964
set_var_text_label s$audio_string = 'CATX_VM'
set_var_int_to_constant $audio_sound_file = 12710
goto @CAT1_22154

:CAT1_21993
set_var_text_label s$audio_string = 'CATX_VN'
set_var_int_to_constant $audio_sound_file = 12711
goto @CAT1_22154

:CAT1_22022
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 12712
goto @CAT1_22154

:CAT1_22051
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_22096
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 12712
goto @CAT1_22118

:CAT1_22096
set_var_text_label s$audio_string = 'CATX_VP'
set_var_int_to_constant $audio_sound_file = 12713

:CAT1_22118
goto @CAT1_22154

:CAT1_22125
set_var_text_label s$audio_string = 'CATX_VQ'
set_var_int_to_constant $audio_sound_file = 12714
goto @CAT1_22154

:CAT1_22154
start_new_script @AUDIOL $catalina 0 0 1 0 
TIMERA = 0

:CAT1_22180
if 
  99@ == 1
goto_if_false @CAT1_22345
if 
  not does_blip_exist 94@
goto_if_false @CAT1_22228
35@ = 0
goto @CAT1_22338

:CAT1_22228
if 
  locate_char_any_means_3d $scplayer {x} $catX {y} $catY {z} $catZ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CAT1_22338
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_22331
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @CAT1_22324
set_player_control $player1 {state} False
35@ += 1

:CAT1_22324
goto @CAT1_22338

:CAT1_22331
35@ += 1

:CAT1_22338
goto @CAT1_22350

:CAT1_22345
remove_blip 94@

:CAT1_22350
if 
  35@ == 2
goto_if_false @CAT1_22429
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_22422
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @CAT1_22415
35@ += 1

:CAT1_22415
goto @CAT1_22429

:CAT1_22422
35@ += 1

:CAT1_22429
if 
  35@ == 3
goto_if_false @CAT1_22762
set_player_control $player1 {state} False
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
switch_widescreen True
clear_area $catX {y} $catY {z} $catZ {radius} 20.0 {clearParticles} True
set_fixed_camera_position 856.0245 {y} -29.9962 {z} 63.9179 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 856.9926 {y} -29.7496 {z} 63.8739 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT1_22718
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_22645
if 
  not locate_char_any_means_3d $catalina {x} $catX {y} $catY {z} $catZ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_22645
set_char_coordinates $catalina {x} 868.838 {y} -28.2257 {z} 62.1875
set_char_heading $catalina {heading} 161.446

:CAT1_22645
49@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT1_22681
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT1_22681
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 99999
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_22718
43@ = generate_random_int_in_range 0 {max} 10
TIMERA = 0
151@ = 0
62@ = 0
152@ = 0
35@ += 1

:CAT1_22762
if 
  35@ == 4
goto_if_false @CAT1_25143
if 
  151@ == 0
goto_if_false @CAT1_25026
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @CAT1_25019
if 
  $cat_counter == 0
goto_if_false @CAT1_23840
switch_start 62@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_23826 {caseNum1} 0 {caseLabel1} @CAT1_22970 {caseNum2} 1 {caseLabel2} @CAT1_23029 {caseNum3} 2 {caseLabel3} @CAT1_23088 {caseNum4} 3 {caseLabel4} @CAT1_23147 {caseNum5} 4 {caseLabel5} @CAT1_23206 {caseNum6} 5 {caseLabel6} @CAT1_23265 {caseNum7} 6 {caseLabel7} @CAT1_23324
switch_continued 7 {caseLabel1} @CAT1_23383 {caseNum2} 8 {caseLabel2} @CAT1_23442 {caseNum3} 9 {caseLabel3} @CAT1_23501 {caseNum4} 10 {caseLabel4} @CAT1_23560 {caseNum5} 11 {caseLabel5} @CAT1_23619 {caseNum6} 12 {caseLabel6} @CAT1_23777 {caseNum7} 13 {caseLabel7} @CAT1_23798 {caseNum8} 14 {caseLabel8} @CAT1_23805 {caseNum9} 15 {caseLabel9} @CAT1_23812

:CAT1_22970
set_var_text_label s$audio_string = 'CAT_EA'
set_var_int_to_constant $audio_sound_file = 2230
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2231
goto @CAT1_23826

:CAT1_23029
set_var_text_label s$audio_string = 'CAT_EB'
set_var_int_to_constant $audio_sound_file = 2231
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2232
goto @CAT1_23826

:CAT1_23088
set_var_text_label s$audio_string = 'CAT_EC'
set_var_int_to_constant $audio_sound_file = 2232
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2303
goto @CAT1_23826

:CAT1_23147
set_var_text_label s$audio_string = 'CAT_ED'
set_var_int_to_constant $audio_sound_file = 2303
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2304
goto @CAT1_23826

:CAT1_23206
set_var_text_label s$audio_string = 'CAT_EE'
set_var_int_to_constant $audio_sound_file = 2304
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2233
goto @CAT1_23826

:CAT1_23265
set_var_text_label s$audio_string = 'CAT_EF'
set_var_int_to_constant $audio_sound_file = 2233
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2234
goto @CAT1_23826

:CAT1_23324
set_var_text_label s$audio_string = 'CAT_EG'
set_var_int_to_constant $audio_sound_file = 2234
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2235
goto @CAT1_23826

:CAT1_23383
set_var_text_label s$audio_string = 'CAT_EH'
set_var_int_to_constant $audio_sound_file = 2235
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2305
goto @CAT1_23826

:CAT1_23442
set_var_text_label s$audio_string = 'CAT_EI'
set_var_int_to_constant $audio_sound_file = 2305
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2306
goto @CAT1_23826

:CAT1_23501
set_var_text_label s$audio_string = 'CAT_EJ'
set_var_int_to_constant $audio_sound_file = 2306
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2307
goto @CAT1_23826

:CAT1_23560
set_var_text_label s$audio_string = 'CAT_EK'
set_var_int_to_constant $audio_sound_file = 2307
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2308
goto @CAT1_23826

:CAT1_23619
set_var_text_label s$audio_string = 'CAT_EL'
set_var_int_to_constant $audio_sound_file = 2308
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2336
152@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_23770
clear_look_at $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_23770
goto @CAT1_23826

:CAT1_23777
62@ = 16
151@ = 1
goto @CAT1_23826

:CAT1_23798
goto @CAT1_23826

:CAT1_23805
goto @CAT1_23826

:CAT1_23812
151@ = 1
goto @CAT1_23826

:CAT1_23826
62@ += 1
TIMERA = 0

:CAT1_23840
if 
  $cat_counter == 1
goto_if_false @CAT1_24292
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_24278 {caseNum1} 0 {caseLabel1} @CAT1_23921 {caseNum2} 1 {caseLabel2} @CAT1_23980 {caseNum3} 2 {caseLabel3} @CAT1_24039 {caseNum4} 3 {caseLabel4} @CAT1_24098 {caseNum5} 4 {caseLabel5} @CAT1_24157 {caseNum6} 5 {caseLabel6} @CAT1_24216 {caseNum7} 6 {caseLabel7} @CAT1_24264

:CAT1_23921
set_var_text_label s$audio_string = 'CAT_HA'
set_var_int_to_constant $audio_sound_file = 2255
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2319
goto @CAT1_24278

:CAT1_23980
set_var_text_label s$audio_string = 'CAT_HB'
set_var_int_to_constant $audio_sound_file = 2319
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2320
goto @CAT1_24278

:CAT1_24039
set_var_text_label s$audio_string = 'CAT_HC'
set_var_int_to_constant $audio_sound_file = 2320
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2321
goto @CAT1_24278

:CAT1_24098
set_var_text_label s$audio_string = 'CAT_HD'
set_var_int_to_constant $audio_sound_file = 2321
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2256
goto @CAT1_24278

:CAT1_24157
set_var_text_label s$audio_string = 'CAT_HE'
set_var_int_to_constant $audio_sound_file = 2256
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2257
goto @CAT1_24278

:CAT1_24216
set_var_text_label s$audio_string = 'CAT_HF'
set_var_int_to_constant $audio_sound_file = 2257
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_24278

:CAT1_24264
151@ = 1
goto @CAT1_24278

:CAT1_24278
62@ += 1
TIMERA = 0

:CAT1_24292
if 
  $cat_counter == 2
goto_if_false @CAT1_24567
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_24553 {caseNum1} 0 {caseLabel1} @CAT1_24373 {caseNum2} 1 {caseLabel2} @CAT1_24432 {caseNum3} 2 {caseLabel3} @CAT1_24491 {caseNum4} 3 {caseLabel4} @CAT1_24539 {caseNum5} -1 {caseLabel5} @CAT1_24553 {caseNum6} -1 {caseLabel6} @CAT1_24553 {caseNum7} -1 {caseLabel7} @CAT1_24553

:CAT1_24373
set_var_text_label s$audio_string = 'CAT_MA'
set_var_int_to_constant $audio_sound_file = 2273
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2274
goto @CAT1_24553

:CAT1_24432
set_var_text_label s$audio_string = 'CAT_MB'
set_var_int_to_constant $audio_sound_file = 2274
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2275
goto @CAT1_24553

:CAT1_24491
set_var_text_label s$audio_string = 'CAT_MC'
set_var_int_to_constant $audio_sound_file = 2275
start_new_script @AUDIOL $catalina 0 1 2 1 
goto @CAT1_24553

:CAT1_24539
151@ = 1
goto @CAT1_24553

:CAT1_24553
62@ += 1
TIMERA = 0

:CAT1_24567
if 
  $cat_counter == 3
goto_if_false @CAT1_25019
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_25005 {caseNum1} 0 {caseLabel1} @CAT1_24648 {caseNum2} 1 {caseLabel2} @CAT1_24707 {caseNum3} 2 {caseLabel3} @CAT1_24766 {caseNum4} 3 {caseLabel4} @CAT1_24825 {caseNum5} 4 {caseLabel5} @CAT1_24884 {caseNum6} 5 {caseLabel6} @CAT1_24943 {caseNum7} 6 {caseLabel7} @CAT1_24991

:CAT1_24648
set_var_text_label s$audio_string = 'CAT_PA'
set_var_int_to_constant $audio_sound_file = 2286
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2335
goto @CAT1_25005

:CAT1_24707
set_var_text_label s$audio_string = 'CAT_PB'
set_var_int_to_constant $audio_sound_file = 2335
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2287
goto @CAT1_25005

:CAT1_24766
set_var_text_label s$audio_string = 'CAT_PC'
set_var_int_to_constant $audio_sound_file = 2287
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2288
goto @CAT1_25005

:CAT1_24825
set_var_text_label s$audio_string = 'CAT_PD'
set_var_int_to_constant $audio_sound_file = 2288
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 2289
goto @CAT1_25005

:CAT1_24884
set_var_text_label s$audio_string = 'CAT_PE'
set_var_int_to_constant $audio_sound_file = 2289
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2290
goto @CAT1_25005

:CAT1_24943
set_var_text_label s$audio_string = 'CAT_PF'
set_var_int_to_constant $audio_sound_file = 2290
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_25005

:CAT1_24991
151@ = 1
goto @CAT1_25005

:CAT1_25005
62@ += 1
TIMERA = 0

:CAT1_25019
goto @CAT1_25143

:CAT1_25026
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25136
if 
  152@ == 0
goto_if_false @CAT1_25136
clear_look_at $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_25136
35@ += 1

:CAT1_25143
if 
  35@ == 5
goto_if_false @CAT1_25314
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25227
43@ = get_script_task_status $catalina {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @CAT1_25220
43@ = 1
goto @CAT1_25227

:CAT1_25220
43@ = 0

:CAT1_25227
if 
  TIMERA > 10000
goto_if_false @CAT1_25253
43@ = 1

:CAT1_25253
if 
  43@ == 1
goto_if_false @CAT1_25314
set_camera_behind_player 
restore_camera_jumpcut 
if 
  does_char_exist $catalina
goto_if_false @CAT1_25296
delete_char $catalina

:CAT1_25296
set_player_control $player1 {state} True
switch_widescreen False
36@ = 1

:CAT1_25314
return 

:CAT1_25316
43@ = get_area_visible 
if 
  43@ <> 0
goto_if_false @CAT1_25389
if 
  125@ == 0
goto_if_false @CAT1_25382
set_lvar_float_to_lvar_float 126@ = 133@
133@ = 0.0
125@ = 1

:CAT1_25382
goto @CAT1_25422

:CAT1_25389
if 
  125@ == 1
goto_if_false @CAT1_25422
set_lvar_float_to_lvar_float 133@ = 126@
125@ = 0

:CAT1_25422
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_25609
if 
  not is_car_dead 78@
goto_if_false @CAT1_25594
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @CAT1_25587
43@ = 0
44@ = 0

:CAT1_25487
if 
  4 > 43@
goto_if_false @CAT1_25556
if 
  is_int_lvar_equal_to_int_lvar 78@ == 79@(43@,4i)
goto_if_false @CAT1_25542
44@ = 1
43@ = 4

:CAT1_25542
43@ += 1
goto @CAT1_25487

:CAT1_25556
if 
  44@ == 1
goto_if_false @CAT1_25579
mark_car_as_no_longer_needed 78@

:CAT1_25579
78@ = store_car_char_is_in $scplayer

:CAT1_25587
goto @CAT1_25602

:CAT1_25594
78@ = store_car_char_is_in $scplayer

:CAT1_25602
goto @CAT1_25609

:CAT1_25609
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25900
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_25900
if 
  98@ == 0
goto_if_false @CAT1_25900
if 
  99@ == 1
goto_if_false @CAT1_25777
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_25770
print 'LEFTC' {time} 4000 {flag} 1
if 
  not does_blip_exist 87@
goto_if_false @CAT1_25749
87@ = add_blip_for_char $catalina
set_blip_as_friendly 87@ {state} True

:CAT1_25749
64@ = 1
65@ = 0
99@ = 0

:CAT1_25770
goto @CAT1_25900

:CAT1_25777
if 
  locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT1_25900
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_25893
if 
  does_blip_exist 87@
goto_if_false @CAT1_25853
remove_blip 87@

:CAT1_25853
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_char_drowns_in_water $catalina {state} False
99@ = 1
64@ = 0
goto @CAT1_25900

:CAT1_25893
99@ = 1

:CAT1_25900
if 
  not is_char_dead $catalina
goto_if_false @CAT1_26018
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_25970
if 
  not does_blip_exist 87@
goto_if_false @CAT1_25963
87@ = add_blip_for_char $catalina
set_blip_as_friendly 87@ {state} True

:CAT1_25963
goto @CAT1_26018

:CAT1_25970
if 
  does_blip_exist 87@
goto_if_false @CAT1_26018
$car = store_car_char_is_in_no_save $catalina
if 
  is_char_in_car $scplayer {vehicle} $car
goto_if_false @CAT1_26018
remove_blip 87@

:CAT1_26018
if 
  does_char_exist $catalina
goto_if_false @CAT1_26073
if 
  is_char_dead $catalina
goto_if_false @CAT1_26073
print_now 'LOSE2' {time} 5000 {flag} 1
37@ = 1

:CAT1_26073
if 
  125@ == 0
goto_if_false @CAT1_26607
if 
  not is_char_dead $catalina
goto_if_false @CAT1_26607
if and
  has_char_been_damaged_by_char $catalina {handle} $scplayer
  $audio_line_is_active == 0
goto_if_false @CAT1_26607
153@ += 1
if 
  153@ > 9
goto_if_false @CAT1_26165
153@ = 0

:CAT1_26165
switch_start 153@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_26583 {caseNum1} 0 {caseLabel1} @CAT1_26293 {caseNum2} 1 {caseLabel2} @CAT1_26322 {caseNum3} 2 {caseLabel3} @CAT1_26351 {caseNum4} 3 {caseLabel4} @CAT1_26380 {caseNum5} 4 {caseLabel5} @CAT1_26409 {caseNum6} 5 {caseLabel6} @CAT1_26438 {caseNum7} 6 {caseLabel7} @CAT1_26467
switch_continued 7 {caseLabel1} @CAT1_26496 {caseNum2} 8 {caseLabel2} @CAT1_26525 {caseNum3} 9 {caseLabel3} @CAT1_26554 {caseNum4} -1 {caseLabel4} @CAT1_26583 {caseNum5} -1 {caseLabel5} @CAT1_26583 {caseNum6} -1 {caseLabel6} @CAT1_26583 {caseNum7} -1 {caseLabel7} @CAT1_26583 {caseNum8} -1 {caseLabel8} @CAT1_26583 {caseNum9} -1 {caseLabel9} @CAT1_26583

:CAT1_26293
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 12689
goto @CAT1_26583

:CAT1_26322
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 12690
goto @CAT1_26583

:CAT1_26351
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 12691
goto @CAT1_26583

:CAT1_26380
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 12692
goto @CAT1_26583

:CAT1_26409
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 12693
goto @CAT1_26583

:CAT1_26438
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 12694
goto @CAT1_26583

:CAT1_26467
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 12695
goto @CAT1_26583

:CAT1_26496
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 12696
goto @CAT1_26583

:CAT1_26525
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 12697
goto @CAT1_26583

:CAT1_26554
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 12698
goto @CAT1_26583

:CAT1_26583
start_new_script @AUDIOL $catalina 0 0 1 0 
clear_char_last_damage_entity $catalina

:CAT1_26607
return 
if 
  117@ == 0
goto_if_false @CAT1_26675
143@ += 0.001
if 
  143@ > 0.03
goto_if_false @CAT1_26668
143@ = 0.03

:CAT1_26668
goto @CAT1_26716

:CAT1_26675
143@ += -0.001
if 
  0.0 > 143@
goto_if_false @CAT1_26716
143@ = 0.0

:CAT1_26716
144@ += 0.005
if 
  144@ > 0.1
goto_if_false @CAT1_26757
144@ = 0.1

:CAT1_26757
156@ = 261.4119
157@ = -78.5511
158@ = 2.3102
set_lvar_float_to_lvar_float 159@ = 134@
set_lvar_float_to_lvar_float 160@ = 135@
set_lvar_float_to_lvar_float 161@ = 136@
set_lvar_float_to_lvar_float 162@ = 143@
gosub @CAT1_27217
if 
  47@ == 99.9
goto_if_false @CAT1_26872
if 
  117@ == 0
goto_if_false @CAT1_26872
117@ = 1

:CAT1_26872
set_lvar_float_to_lvar_float 134@ = 159@
set_lvar_float_to_lvar_float 135@ = 160@
set_lvar_float_to_lvar_float 136@ = 161@
set_lvar_float_to_lvar_float 156@ = 140@
set_lvar_float_to_lvar_float 157@ = 141@
set_lvar_float_to_lvar_float 158@ = 142@
set_lvar_float_to_lvar_float 159@ = 137@
set_lvar_float_to_lvar_float 160@ = 138@
set_lvar_float_to_lvar_float 161@ = 139@
set_lvar_float_to_lvar_float 162@ = 144@
gosub @CAT1_27217
if 
  47@ == 99.9
goto_if_false @CAT1_27005
if 
  118@ == 0
goto_if_false @CAT1_27005
118@ = 1

:CAT1_27005
set_lvar_float_to_lvar_float 137@ = 159@
set_lvar_float_to_lvar_float 138@ = 160@
set_lvar_float_to_lvar_float 139@ = 161@
if 
  69@ == 1
goto_if_false @CAT1_27215
set_lvar_float_to_lvar_float 56@ = 137@
56@ -= 0.5
set_lvar_float_to_lvar_float 59@ = 137@
59@ += 0.5
set_lvar_float_to_lvar_float 57@ = 138@
57@ -= 0.5
set_lvar_float_to_lvar_float 60@ = 138@
60@ += 0.5
set_lvar_float_to_lvar_float 58@ = 139@
58@ -= 0.5
set_lvar_float_to_lvar_float 61@ = 139@
61@ += 0.5
line 56@ {f2} 138@ {f3} 139@ {f4} 59@ {f5} 138@ {f6} 139@
line 137@ {f2} 57@ {f3} 139@ {f4} 137@ {f5} 60@ {f6} 139@
line 137@ {f2} 138@ {f3} 58@ {f4} 137@ {f5} 138@ {f6} 61@

:CAT1_27215
return 

:CAT1_27217
set_var_float_to_lvar_float $x = 156@
sub_float_lvar_from_float_var $x -= 159@
set_var_float_to_lvar_float $y = 157@
sub_float_lvar_from_float_var $y -= 160@
set_var_float_to_lvar_float $z = 158@
sub_float_lvar_from_float_var $z -= 161@
46@ = get_distance_between_coords_3d 159@ {fromY} 160@ {fromZ} 161@ {toX} 156@ {toY} 157@ {toZ} 158@
set_lvar_float_to_lvar_float 47@ = 162@
47@ *= 20.0
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @CAT1_27335
47@ = 99.9

:CAT1_27335
if 
  is_float_lvar_greater_than_float_lvar 46@ > 162@
goto_if_false @CAT1_27426
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
mult_float_var_by_float_lvar $x *= 162@
mult_float_var_by_float_lvar $y *= 162@
mult_float_var_by_float_lvar $z *= 162@
add_float_var_to_float_lvar 159@ += $x
add_float_var_to_float_lvar 160@ += $y
add_float_var_to_float_lvar 161@ += $z

:CAT1_27426
return 

:CAT1_27428
if 
  not is_car_dead 79@(163@,4i)
goto_if_false @CAT1_28490
if 
  not is_char_dead 72@(163@,4i)
goto_if_false @CAT1_28447
if 
  is_char_in_car 72@(163@,4i) {vehicle} 79@(163@,4i)
goto_if_false @CAT1_28378
if 
  112@(163@,3i) == 1
goto_if_false @CAT1_27557
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27557
unpause_playback_recorded_car 79@(163@,4i)
112@(163@,3i) = 0

:CAT1_27557
165@ = 0.0
$x, $y, $z = get_car_coordinates 79@(163@,4i)
56@, 57@, 58@ = get_char_coordinates $scplayer
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27684
if 
  locate_car_3d 79@(163@,4i) {x} 2711.1189 {y} -53.5082 {z} 39.4695 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_27684
109@(163@,3i) = 1

:CAT1_27684
get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@ {var_distance} 130@(163@,3f)
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27842
if 
  is_float_lvar_greater_than_float_var 56@ > $x
goto_if_false @CAT1_27835
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27835
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_27835
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27835
skip_in_playback_recorded_car 79@(163@,4i) {amount} 1.0

:CAT1_27835
goto @CAT1_27950

:CAT1_27842
if 
  is_float_var_greater_than_float_lvar $y > 57@
goto_if_false @CAT1_27950
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27950
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_27950
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27950
skip_in_playback_recorded_car 79@(163@,4i) {amount} 1.0

:CAT1_27950
if 
  165@ == 0.0
goto_if_false @CAT1_28114
if 
  30.0 > 130@(163@,3f)
goto_if_false @CAT1_28013
165@ = 1.0
goto @CAT1_28114

:CAT1_28013
set_lvar_float_to_lvar_float 46@ = 130@(163@,3f)
if 
  46@ > 200.0
goto_if_false @CAT1_28056
46@ = 200.0

:CAT1_28056
46@ -= 30.0
46@ /= 170.0
165@ = 1.0
sub_float_lvar_from_float_lvar 165@ -= 46@
165@ *= 0.8
165@ += 0.2

:CAT1_28114
mult_float_lvar_by_float_lvar 165@ *= 133@
if 
  is_car_in_area_2d 79@(163@,4i) {leftBottomX} 1940.8199 {leftBottomY} 72.1365 {rightTopX} 2145.438 {rightTopY} 140.5141 {drawSphere} False
goto_if_false @CAT1_28174
165@ = 2.5

:CAT1_28174
if 
  0.1 > 165@
goto_if_false @CAT1_28205
165@ = 0.1

:CAT1_28205
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28237
set_playback_speed 79@(163@,4i) {speed} 165@

:CAT1_28237
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28371
if 
  does_car_have_stuck_car_check 79@(163@,4i)
goto_if_false @CAT1_28371
if 
  is_car_stuck 79@(163@,4i)
goto_if_false @CAT1_28371
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_28371
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 79@(163@,4i) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_28371
skip_in_playback_recorded_car 79@(163@,4i) {amount} 0.1

:CAT1_28371
goto @CAT1_28440

:CAT1_28378
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28440
if 
  112@(163@,3i) == 0
goto_if_false @CAT1_28440
pause_playback_recorded_car 79@(163@,4i)
112@(163@,3i) = 1

:CAT1_28440
goto @CAT1_28490

:CAT1_28447
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28476
stop_playback_recorded_car 79@(163@,4i)

:CAT1_28476
130@(163@,3f) = 0.0

:CAT1_28490
return 

:CAT1_28492
if 
  65@ > 10000
goto_if_false @CAT1_32078
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_29770
if 
  not is_char_dead $catalina
goto_if_false @CAT1_29770
if 
  not is_char_shooting $catalina
goto_if_false @CAT1_29770
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_29770
$car = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_car $catalina {vehicle} $car
goto_if_false @CAT1_29770
43@ = 0
44@ = 0

:CAT1_28622
if 
  3 > 43@
goto_if_false @CAT1_28681
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_28667
44@ += 1

:CAT1_28667
43@ += 1
goto @CAT1_28622

:CAT1_28681
43@ = 0
if 
  not is_char_dead 72@
goto_if_false @CAT1_28732
if 
  50.0 > 130@
goto_if_false @CAT1_28732
43@ += 1

:CAT1_28732
if 
  not is_char_dead 73@
goto_if_false @CAT1_28776
if 
  50.0 > 131@
goto_if_false @CAT1_28776
43@ += 1

:CAT1_28776
if 
  not is_char_dead 74@
goto_if_false @CAT1_28820
if 
  50.0 > 132@
goto_if_false @CAT1_28820
43@ += 1

:CAT1_28820
if and
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @CAT1_28853
43@ += 1

:CAT1_28853
if 
  43@ == 0
goto_if_false @CAT1_29770
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_29770
166@ += 1
if 
  166@ > 8
goto_if_false @CAT1_28921
166@ = 0

:CAT1_28921
switch_start 166@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_29763 {caseNum1} 0 {caseLabel1} @CAT1_29049 {caseNum2} 1 {caseLabel2} @CAT1_29144 {caseNum3} 2 {caseLabel3} @CAT1_29192 {caseNum4} 3 {caseLabel4} @CAT1_29240 {caseNum5} 4 {caseLabel5} @CAT1_29335 {caseNum6} 5 {caseLabel6} @CAT1_29430 {caseNum7} 6 {caseLabel7} @CAT1_29525
switch_continued 7 {caseLabel1} @CAT1_29620 {caseNum2} 8 {caseLabel2} @CAT1_29715 {caseNum3} -1 {caseLabel3} @CAT1_29763 {caseNum4} -1 {caseLabel4} @CAT1_29763 {caseNum5} -1 {caseLabel5} @CAT1_29763 {caseNum6} -1 {caseLabel6} @CAT1_29763 {caseNum7} -1 {caseLabel7} @CAT1_29763 {caseNum8} -1 {caseLabel8} @CAT1_29763 {caseNum9} -1 {caseLabel9} @CAT1_29763

:CAT1_29049
if 
  44@ > 1
goto_if_false @CAT1_29096
set_var_text_label s$audio_string = 'CAT1_CA'
set_var_int_to_constant $audio_sound_file = 2407
goto @CAT1_29118

:CAT1_29096
set_var_text_label s$audio_string = 'CATX_AA'
set_var_int_to_constant $audio_sound_file = 12600

:CAT1_29118
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29144
set_var_text_label s$audio_string = 'CAT1_CB'
set_var_int_to_constant $audio_sound_file = 2408
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29192
set_var_text_label s$audio_string = 'CAT1_CC'
set_var_int_to_constant $audio_sound_file = 2409
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29240
if 
  44@ > 1
goto_if_false @CAT1_29287
set_var_text_label s$audio_string = 'CAT1_CD'
set_var_int_to_constant $audio_sound_file = 2410
goto @CAT1_29309

:CAT1_29287
set_var_text_label s$audio_string = 'CATX_AD'
set_var_int_to_constant $audio_sound_file = 12603

:CAT1_29309
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29335
if 
  44@ > 1
goto_if_false @CAT1_29382
set_var_text_label s$audio_string = 'CAT1_CE'
set_var_int_to_constant $audio_sound_file = 2411
goto @CAT1_29404

:CAT1_29382
set_var_text_label s$audio_string = 'CATX_AG'
set_var_int_to_constant $audio_sound_file = 12606

:CAT1_29404
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29430
if 
  44@ > 1
goto_if_false @CAT1_29477
set_var_text_label s$audio_string = 'CAT1_DA'
set_var_int_to_constant $audio_sound_file = 2412
goto @CAT1_29499

:CAT1_29477
set_var_text_label s$audio_string = 'CATX_AH'
set_var_int_to_constant $audio_sound_file = 12607

:CAT1_29499
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29525
if 
  44@ > 1
goto_if_false @CAT1_29572
set_var_text_label s$audio_string = 'CAT1_DB'
set_var_int_to_constant $audio_sound_file = 2413
goto @CAT1_29594

:CAT1_29572
set_var_text_label s$audio_string = 'CATX_AC'
set_var_int_to_constant $audio_sound_file = 12602

:CAT1_29594
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29620
if 
  44@ > 1
goto_if_false @CAT1_29667
set_var_text_label s$audio_string = 'CAT1_DC'
set_var_int_to_constant $audio_sound_file = 2414
goto @CAT1_29689

:CAT1_29667
set_var_text_label s$audio_string = 'CATX_AB'
set_var_int_to_constant $audio_sound_file = 12601

:CAT1_29689
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29715
set_var_text_label s$audio_string = 'CAT1_DD'
set_var_int_to_constant $audio_sound_file = 2415
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29763
65@ = 0

:CAT1_29770
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_30486
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_30486
if 
  not is_char_dead $catalina
goto_if_false @CAT1_30486
if 
  not is_char_shooting $catalina
goto_if_false @CAT1_30486
if or
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $catalina
goto_if_false @CAT1_30486
if 
  not locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_30486
43@ = generate_random_int_in_range 0 {max} 8
if 
  is_int_lvar_equal_to_int_lvar 43@ == 169@
goto_if_false @CAT1_29959
43@ += 1
if 
  43@ > 7
goto_if_false @CAT1_29959
43@ = 0

:CAT1_29959
set_lvar_int_to_lvar_int 169@ = 43@
switch_start 43@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAT1_30479 {caseNum1} 0 {caseLabel1} @CAT1_30095 {caseNum2} 1 {caseLabel2} @CAT1_30143 {caseNum3} 2 {caseLabel3} @CAT1_30191 {caseNum4} 3 {caseLabel4} @CAT1_30239 {caseNum5} 4 {caseLabel5} @CAT1_30287 {caseNum6} 5 {caseLabel6} @CAT1_30335 {caseNum7} 6 {caseLabel7} @CAT1_30383
switch_continued 7 {caseLabel1} @CAT1_30431 {caseNum2} -1 {caseLabel2} @CAT1_30479 {caseNum3} -1 {caseLabel3} @CAT1_30479 {caseNum4} -1 {caseLabel4} @CAT1_30479 {caseNum5} -1 {caseLabel5} @CAT1_30479 {caseNum6} -1 {caseLabel6} @CAT1_30479 {caseNum7} -1 {caseLabel7} @CAT1_30479 {caseNum8} -1 {caseLabel8} @CAT1_30479 {caseNum9} -1 {caseLabel9} @CAT1_30479

:CAT1_30095
set_var_text_label s$audio_string = 'CATX_JA'
set_var_int_to_constant $audio_sound_file = 12626
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30143
set_var_text_label s$audio_string = 'CATX_JB'
set_var_int_to_constant $audio_sound_file = 12627
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30191
set_var_text_label s$audio_string = 'CATX_JC'
set_var_int_to_constant $audio_sound_file = 12628
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30239
set_var_text_label s$audio_string = 'CATX_JD'
set_var_int_to_constant $audio_sound_file = 12629
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30287
set_var_text_label s$audio_string = 'CATX_JE'
set_var_int_to_constant $audio_sound_file = 12630
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30335
set_var_text_label s$audio_string = 'CATX_JF'
set_var_int_to_constant $audio_sound_file = 12631
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30383
set_var_text_label s$audio_string = 'CATX_JG'
set_var_int_to_constant $audio_sound_file = 12632
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30431
set_var_text_label s$audio_string = 'CATX_JH'
set_var_int_to_constant $audio_sound_file = 12633
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30479
65@ = 0

:CAT1_30486
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_32078
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32078
if 
  not is_char_dead $catalina
goto_if_false @CAT1_32078
if 
  is_char_shooting $catalina
goto_if_false @CAT1_32078
if 
  locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_32078
43@ = 0

:CAT1_30601
if 
  4 > 43@
goto_if_false @CAT1_30667
170@ = generate_random_int_in_range 0 {max} 25
if 
  5 > 170@
goto_if_false @CAT1_30653
43@ = 4

:CAT1_30653
43@ += 1
goto @CAT1_30601

:CAT1_30667
if 
  is_int_lvar_equal_to_int_lvar 170@ == 171@
goto_if_false @CAT1_30718
170@ += 1
if 
  170@ > 24
goto_if_false @CAT1_30718
170@ = 0

:CAT1_30718
set_lvar_int_to_lvar_int 171@ = 170@
switch_start 170@ {numCases} 25 {hasDefaultCase} 0 {defaultLabel} @CAT1_32071 {caseNum1} 0 {caseLabel1} @CAT1_30919 {caseNum2} 1 {caseLabel2} @CAT1_30919 {caseNum3} 2 {caseLabel3} @CAT1_30967 {caseNum4} 3 {caseLabel4} @CAT1_31015 {caseNum5} 4 {caseLabel5} @CAT1_31063 {caseNum6} 5 {caseLabel6} @CAT1_31111 {caseNum7} 6 {caseLabel7} @CAT1_31159
switch_continued 7 {caseLabel1} @CAT1_31207 {caseNum2} 8 {caseLabel2} @CAT1_31255 {caseNum3} 9 {caseLabel3} @CAT1_31303 {caseNum4} 10 {caseLabel4} @CAT1_31351 {caseNum5} 11 {caseLabel5} @CAT1_31399 {caseNum6} 12 {caseLabel6} @CAT1_31447 {caseNum7} 13 {caseLabel7} @CAT1_31495 {caseNum8} 14 {caseLabel8} @CAT1_31543 {caseNum9} 15 {caseLabel9} @CAT1_31591
switch_continued 16 {caseLabel1} @CAT1_31639 {caseNum2} 17 {caseLabel2} @CAT1_31687 {caseNum3} 18 {caseLabel3} @CAT1_31735 {caseNum4} 19 {caseLabel4} @CAT1_31783 {caseNum5} 20 {caseLabel5} @CAT1_31831 {caseNum6} 21 {caseLabel6} @CAT1_31879 {caseNum7} 22 {caseLabel7} @CAT1_31927 {caseNum8} 23 {caseLabel8} @CAT1_31975 {caseNum9} 24 {caseLabel9} @CAT1_32023

:CAT1_30919
set_var_text_label s$audio_string = 'CAT1_HA'
set_var_int_to_constant $audio_sound_file = 2432
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_30967
set_var_text_label s$audio_string = 'CAT1_HC'
set_var_int_to_constant $audio_sound_file = 2434
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31015
set_var_text_label s$audio_string = 'CAT1_HD'
set_var_int_to_constant $audio_sound_file = 2435
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31063
set_var_text_label s$audio_string = 'CAT1_HE'
set_var_int_to_constant $audio_sound_file = 2436
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31111
set_var_text_label s$audio_string = 'CATX_TA'
set_var_int_to_constant $audio_sound_file = 12669
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31159
set_var_text_label s$audio_string = 'CATX_TB'
set_var_int_to_constant $audio_sound_file = 12670
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31207
set_var_text_label s$audio_string = 'CATX_TC'
set_var_int_to_constant $audio_sound_file = 12671
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31255
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 12672
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31303
set_var_text_label s$audio_string = 'CATX_TE'
set_var_int_to_constant $audio_sound_file = 12673
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31351
set_var_text_label s$audio_string = 'CATX_TF'
set_var_int_to_constant $audio_sound_file = 12674
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31399
set_var_text_label s$audio_string = 'CATX_TG'
set_var_int_to_constant $audio_sound_file = 12675
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31447
set_var_text_label s$audio_string = 'CATX_TH'
set_var_int_to_constant $audio_sound_file = 12676
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31495
set_var_text_label s$audio_string = 'CATX_TJ'
set_var_int_to_constant $audio_sound_file = 12677
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31543
set_var_text_label s$audio_string = 'CATX_TK'
set_var_int_to_constant $audio_sound_file = 12678
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31591
set_var_text_label s$audio_string = 'CATX_TL'
set_var_int_to_constant $audio_sound_file = 12679
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31639
set_var_text_label s$audio_string = 'CATX_TM'
set_var_int_to_constant $audio_sound_file = 12680
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31687
set_var_text_label s$audio_string = 'CATX_TN'
set_var_int_to_constant $audio_sound_file = 12681
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31735
set_var_text_label s$audio_string = 'CATX_TO'
set_var_int_to_constant $audio_sound_file = 12682
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31783
set_var_text_label s$audio_string = 'CATX_TP'
set_var_int_to_constant $audio_sound_file = 12683
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31831
set_var_text_label s$audio_string = 'CATX_TQ'
set_var_int_to_constant $audio_sound_file = 12684
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31879
set_var_text_label s$audio_string = 'CATX_TR'
set_var_int_to_constant $audio_sound_file = 12685
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31927
set_var_text_label s$audio_string = 'CATX_TS'
set_var_int_to_constant $audio_sound_file = 12686
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31975
set_var_text_label s$audio_string = 'CATX_TT'
set_var_int_to_constant $audio_sound_file = 12687
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_32023
set_var_text_label s$audio_string = 'CATX_TU'
set_var_int_to_constant $audio_sound_file = 12688
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_32071
65@ = 0

:CAT1_32078
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_32426
if 
  64@ == 1
goto_if_false @CAT1_32426
if 
  65@ > 4000
goto_if_false @CAT1_32426
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32426
43@ = generate_random_int_in_range 0 {max} 4
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_32419 {caseNum1} 0 {caseLabel1} @CAT1_32227 {caseNum2} 1 {caseLabel2} @CAT1_32275 {caseNum3} 2 {caseLabel3} @CAT1_32323 {caseNum4} 3 {caseLabel4} @CAT1_32371 {caseNum5} -1 {caseLabel5} @CAT1_32419 {caseNum6} -1 {caseLabel6} @CAT1_32419 {caseNum7} -1 {caseLabel7} @CAT1_32419

:CAT1_32227
set_var_text_label s$audio_string = 'CAT1_GA'
set_var_int_to_constant $audio_sound_file = 2422
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32275
set_var_text_label s$audio_string = 'CAT1_GB'
set_var_int_to_constant $audio_sound_file = 2423
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32323
set_var_text_label s$audio_string = 'CAT1_GC'
set_var_int_to_constant $audio_sound_file = 2424
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32371
set_var_text_label s$audio_string = 'CAT1_GD'
set_var_int_to_constant $audio_sound_file = 2425
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32419
64@ = 2

:CAT1_32426
return 

:CAT1_32428
34@ += 1
35@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
return 

:CAT1_32486
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CAT1_32504
$flag_cat_mission1_passed = 1
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'CAT_1'
player_made_progress 1
if 
  $cat_otb_banter == 1
goto_if_false @CAT1_32587
$cat_otb_banter = 2

:CAT1_32587
if 
  $cat_liquor_banter == 1
goto_if_false @CAT1_32612
$cat_liquor_banter = 2

:CAT1_32612
$cat_getaway_dialogue += 1
set_int_stat StatId.PassedCat1 {value} 1
$cat_counter += 1
return 

:CAT1_32635
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @CAT1_32669
set_player_group_recruitment $player1 {state} True
set_player_group_to_follow_always $player1 {state} False

:CAT1_32669
set_create_random_gang_members True
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 87@
remove_blip 88@
remove_blip 89@
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_pickup 95@
remove_pickup 96@
remove_pickup 97@
remove_decision_maker 67@
remove_decision_maker 68@
remove_decision_maker 146@
remove_decision_maker 145@
unload_special_character 5
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 42---------------
// Originally: Small Town Bank

:CAT2
gosub @CAT2_36
if 
  has_deatharrest_been_executed 
goto_if_false @CAT2_27
gosub @CAT2_30119

:CAT2_27
gosub @CAT2_30482
terminate_this_script 

:CAT2_36
638@ = 1
37@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
38@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
36@ = 32
$onmission = 1
alter_wanted_level $player1 {wantedLevel} 0
if 
  $onmission == 69
goto_if_false @CAT2_256
add_continuous_sound 2320.043 {_p2} -8.5501 {_p3} 27.2047 {_p4} 65535 {_p5} 82@
298@ = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359

:CAT2_256
script_name 'CAT2'
do_fade 800 {direction} Fade.Out

:CAT2_274
if 
  get_fading_status 
goto_if_false @CAT2_298
wait 0
goto @CAT2_274

:CAT2_298
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  does_char_exist $catalina
goto_if_false @CAT2_333
delete_char $catalina

:CAT2_333
load_special_character 5 {modelName} 'CAT'

:CAT2_346
if 
  not has_special_character_loaded 5
goto_if_false @CAT2_385
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CAT2_346

:CAT2_385
$catalina = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359
unload_special_character 5
set_anim_group_for_char $catalina {animGroup} "WOMAN"
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
set_char_relationship $catalina {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_health $catalina {health} 100
set_char_suffers_critical_hits $catalina {state} False
clear_area 2297.7859 {y} -16.8313 {z} 26.2964 {radius} 20.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_739
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_636
39@ = store_car_char_is_in_no_save $catalina
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @CAT2_583
set_car_coordinates 39@ {x} 2297.9861 {y} -14.0735 {z} 25.3495
set_car_heading 39@ {heading} 180.0
goto @CAT2_629

:CAT2_583
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_629
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
set_char_heading $scplayer {heading} 180.0

:CAT2_629
goto @CAT2_739

:CAT2_636
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_739
39@ = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @CAT2_709
set_car_coordinates 39@ {x} 2297.9861 {y} -14.0735 {z} 25.3495
set_car_heading 39@ {heading} 180.0

:CAT2_709
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
set_char_heading $scplayer {heading} 180.0

:CAT2_739
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_782
warp_char_from_car_to_coord $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
goto @CAT2_802

:CAT2_782
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964

:CAT2_802
set_char_heading $scplayer {heading} 162.229
request_model 283
request_model 346
request_model 349
request_car_recording 123
request_car_recording 124
request_model #KMB_ATM1
request_model #KMB_ATM2
request_model #KMB_ATM3
request_model #MTSAFE
request_model #CR_DOOR_01
request_model #CR_DOOR_03

:CAT2_863
if or
  not has_model_loaded 283
  not has_model_loaded 346
  not has_model_loaded 349
  not has_model_loaded #KMB_ATM1
  not has_model_loaded #KMB_ATM2
  not has_model_loaded #KMB_ATM3
goto_if_false @CAT2_915
wait 0
goto @CAT2_863

:CAT2_915
if or
  not has_car_recording_been_loaded 124
  not has_car_recording_been_loaded 123
  not has_model_loaded #MTSAFE
  not has_model_loaded #CR_DOOR_01
  not has_model_loaded #CR_DOOR_03
goto_if_false @CAT2_958
wait 0
goto @CAT2_915

:CAT2_958
load_mission_text 'CAT'
request_model 71
request_model 240
request_model 76
request_animation "ROB_BANK"
load_all_models_now 

:CAT2_996
if or
  not has_model_loaded 71
  not has_model_loaded 240
  not has_model_loaded 76
goto_if_false @CAT2_1031
wait 0
goto @CAT2_996

:CAT2_1031
if 
  not has_animation_loaded "ROB_BANK"
goto_if_false @CAT2_1065
wait 0
goto @CAT2_1031

:CAT2_1065
if 
  not is_player_playing $player1
goto_if_false @CAT2_1092
wait 0
goto @CAT2_1065

:CAT2_1092
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1826
56@ = 0
57@ = 85.0
58@ = 100.0
59@ = 90.0
60@ = 95.0
61@ = open_sequence_task 
task_scratch_head -1
task_scratch_head -1
close_sequence_task 61@
62@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 62@ {event} Event.GunAimedAt
63@ = create_char PedType.CivFemale {modelId} 76 {x} 2318.4919 {y} -15.5635 {z} 25.6913
set_char_heading 63@ {heading} 95.2069
set_char_decision_maker 63@ {handleOrTemplate} 62@
64@ = create_char PedType.CivFemale {modelId} 76 {x} 2318.4729 {y} -7.4565 {z} 25.6913
mark_model_as_no_longer_needed 76
set_char_heading 64@ {heading} 95.2069
set_char_decision_maker 64@ {handleOrTemplate} 62@
65@ = create_char PedType.CivMale {modelId} 240 {x} 2311.509 {y} -11.1779 {z} 25.6987
set_char_heading 65@ {heading} 176.6813
set_char_decision_maker 65@ {handleOrTemplate} 62@
66@ = create_char PedType.CivMale {modelId} 71 {x} 2316.6179 {y} -12.83 {z} 25.75
mark_model_as_no_longer_needed 71
set_char_heading 66@ {heading} 90.0
set_char_decision_maker 66@ {handleOrTemplate} 62@
give_weapon_to_char 66@ {weaponType} WeaponType.Pistol {ammo} 9999
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_fixed_camera_position 2299.895 {y} -7.9983 {z} 26.6055 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2299.998 {y} -8.993 {z} 26.6023 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
113@ = create_object_no_offset #KMB_ATM2 {x} 2310.3669 {y} -17.0 {z} 20.414
114@ = create_object_no_offset #KMB_ATM2 {x} 2313.689 {y} -17.0 {z} 20.414
115@ = create_object_no_offset #KMB_ATM2 {x} 2313.3181 {y} -0.1206 {z} 20.414
if 
  not is_char_dead $catalina
goto_if_false @CAT2_1751
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_1583
warp_char_from_car_to_coord $catalina {x} 2300.7429 {y} -15.5274 {z} 25.4844
goto @CAT2_1603

:CAT2_1583
set_char_coordinates $catalina {x} 2301.7429 {y} -17.1274 {z} 25.4844

:CAT2_1603
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_1647
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_1674

:CAT2_1647
if 
  48 > 71@
goto_if_false @CAT2_1674
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_1674
set_current_char_weapon $scplayer {weaponType} WeaponType.Shotgun
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
set_char_heading $catalina {heading} 329.4303
task_go_straight_to_coord $scplayer {x} 2307.802 {y} -17.221 {z} 25.7574 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $catalina {x} 2312.426 {y} -15.4762 {z} 25.75 {speed} MoveState.Walk {time} 10000

:CAT2_1751
do_fade 500 {direction} Fade.In
delete_object $2661
delete_object $2662
560@ = 1
$game_timer = get_game_timer 
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ = 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
68@ = -1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0

:CAT2_1838
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT2_1860
goto @CAT2_30343

:CAT2_1860
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @CAT2_2049
$cat_counter = 2
56@ = 9
34@ = 1
41@ = 462
set_char_coordinates $scplayer {x} 857.4263 {y} -29.5418 {z} 62.1858
if 
  not is_char_dead $catalina
goto_if_false @CAT2_1960
set_char_coordinates $catalina {x} 858.4263 {y} -29.5418 {z} 62.1858

:CAT2_1960
request_model 402

:CAT2_1965
if 
  not has_model_loaded 402
goto_if_false @CAT2_1992
wait 0
goto @CAT2_1965

:CAT2_1992
69@ = create_car 402 {x} 857.4263 {y} -29.5418 {z} 62.1858
warp_char_into_car $scplayer {vehicle} 69@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_2049
warp_char_into_car_as_passenger $catalina {handle} 69@ {seat} SeatId.BikeRear

:CAT2_2049
wait 0
if 
  is_char_dead $catalina
goto_if_false @CAT2_2094
clear_prints 
print 'CAT2_A1' {time} 5000 {flag} 1
goto @CAT2_30119

:CAT2_2094
gosub @CAT2_31345
gosub @CAT2_31946
$game_timer = get_game_timer 
if 
  not is_player_playing $player1
goto_if_false @CAT2_2136
goto @CAT2_30119

:CAT2_2136
if 
  is_char_dead $catalina
goto_if_false @CAT2_2159
goto @CAT2_30119

:CAT2_2159
if and
  9 > 41@
  41@ > -1
goto_if_false @CAT2_3231
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_2243
if 
  68@ == 0
goto_if_false @CAT2_2236
do_fade 500 {direction} Fade.Out
41@ = 0
68@ += 1

:CAT2_2236
goto @CAT2_2268

:CAT2_2243
if 
  68@ == -1
goto_if_false @CAT2_2268
68@ += 1

:CAT2_2268
if 
  68@ == 1
goto_if_false @CAT2_3231
if 
  not get_fading_status 
goto_if_false @CAT2_3231
if and
  2 > 41@
  55@ == 0
goto_if_false @CAT2_2675
72@ = create_object_no_offset #KMB_ATM1 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_heading 72@ {heading} 180.0
set_object_collision_damage_effect 72@ {state} False
73@ = create_object_no_offset #KMB_ATM1 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_heading 73@ {heading} 180.0
set_object_collision_damage_effect 73@ {state} False
74@ = create_object_no_offset #KMB_ATM1 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 74@ {state} False
75@ = create_object_no_offset #MTSAFE {x} 2305.666 {y} -4.7944 {z} 25.65
set_object_heading 75@ {heading} 90.0
set_object_collision_damage_effect 75@ {state} False
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 72@ {heading} 180.0
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 73@ {heading} 180.0
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False
70@ = create_object_no_offset #CAT2_SAFE_COL {x} 2305.666 {y} -4.7944 {z} 25.65
set_object_heading 70@ {heading} 90.0
set_object_heading 75@ {heading} 90.0
set_object_heading 76@ {heading} 180.0
set_object_heading 77@ {heading} 180.0
set_object_collision 72@ {state} False
set_object_collision 73@ {state} False
set_object_collision 74@ {state} False
55@ = 1

:CAT2_2675
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_2719
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_2746

:CAT2_2719
if 
  48 > 71@
goto_if_false @CAT2_2746
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_2746
set_current_char_weapon $scplayer {weaponType} WeaponType.Shotgun
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2312.5779 {y} -7.4347 {z} 25.75
set_char_heading $scplayer {heading} 126.7479
set_char_coordinates $catalina {x} 2306.666 {y} -4.7944 {z} 25.75
set_char_heading $catalina {heading} 90.0
clear_char_tasks $catalina
clear_char_tasks_immediately $catalina
task_play_anim $catalina {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
play_object_anim 75@ {animationName} "CAT_SAFE_OPEN_O" {animationFile} "ROB_BANK" {frameDelta} 1000.0 {lockF} False {loop} True
if 
  not is_char_dead 66@
goto_if_false @CAT2_2989
clear_char_tasks_immediately 66@
set_char_coordinates 66@ {x} 2310.5459 {y} -7.7439 {z} 25.7422
set_char_heading 66@ {heading} 281.4267
task_turn_char_to_face_char 66@ {target} $scplayer
freeze_char_position 66@ {state} True

:CAT2_2989
if 
  not is_char_dead 63@
goto_if_false @CAT2_3055
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 2311.5969 {y} -9.1847 {z} 25.7422
set_char_heading 63@ {heading} 314.501
task_turn_char_to_face_char 63@ {target} $scplayer
freeze_char_position 63@ {state} True

:CAT2_3055
if 
  not is_char_dead 64@
goto_if_false @CAT2_3121
clear_char_tasks_immediately 64@
set_char_coordinates 64@ {x} 2310.5911 {y} -9.3749 {z} 25.7422
set_char_heading 64@ {heading} 323.1424
task_turn_char_to_face_char 64@ {target} $scplayer
freeze_char_position 64@ {state} True

:CAT2_3121
if 
  not is_char_dead 65@
goto_if_false @CAT2_3187
clear_char_tasks_immediately 65@
set_char_coordinates 65@ {x} 2309.6101 {y} -8.5556 {z} 25.7422
set_char_heading 65@ {heading} 309.2547
task_turn_char_to_face_char 65@ {target} $scplayer
freeze_char_position 65@ {state} True

:CAT2_3187
do_fade 500 {direction} Fade.In
set_lvar_int_to_var_int 42@ = $game_timer
42@ -= 555
41@ = 9
559@ = 5
68@ += 1

:CAT2_3231
if 
  41@ == 1
goto_if_false @CAT2_4115
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  55@ == 0
  560@ == 0
goto_if_false @CAT2_4115
560@ = 2
clear_small_prints 
clear_area 2307.802 {y} -17.221 {z} 25.7574 {radius} 100.0 {clearParticles} True
set_fixed_camera_position 2308.396 {y} -15.824 {z} 27.666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2309.2729 {y} -15.36 {z} 27.5448 {switchStyle} SwitchType.JumpCut
72@ = create_object_no_offset #KMB_ATM1 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_heading 72@ {heading} 180.0
set_object_collision_damage_effect 72@ {state} False
73@ = create_object_no_offset #KMB_ATM1 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_heading 73@ {heading} 180.0
set_object_collision_damage_effect 73@ {state} False
74@ = create_object_no_offset #KMB_ATM1 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 74@ {state} False
75@ = create_object_no_offset #MTSAFE {x} 2305.7649 {y} -4.7944 {z} 25.75
set_object_heading 75@ {heading} 90.0
70@ = create_object_no_offset #CAT2_SAFE_COL {x} 2305.7649 {y} -4.7944 {z} 25.75
set_object_heading 70@ {heading} 90.0
set_object_collision_damage_effect 75@ {state} False
if 
  not does_object_exist $advert_f1
goto_if_false @CAT2_3606
$advert_f1 = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $advert_f1
set_object_collision_damage_effect $advert_f1 {state} False
freeze_object_position $advert_f1 {state} True

:CAT2_3606
if 
  not does_object_exist $pc_door
goto_if_false @CAT2_3673
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $pc_door
set_object_heading $pc_door {heading} 270.0
freeze_object_position $pc_door {state} True
set_object_collision_damage_effect $pc_door {state} False

:CAT2_3673
if 
  not does_object_exist $2661
goto_if_false @CAT2_3730
$2661 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2661
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False

:CAT2_3730
if 
  not does_object_exist $2662
goto_if_false @CAT2_3797
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_heading $2662 {heading} 180.0
set_object_collision_damage_effect $2662 {state} False

:CAT2_3797
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 72@ {heading} 180.0
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 73@ {heading} 180.0
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False
set_object_heading 75@ {heading} 90.0
set_object_heading 76@ {heading} 180.0
set_object_heading 77@ {heading} 180.0
set_object_collision 72@ {state} False
set_object_collision 73@ {state} False
set_object_collision 74@ {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2309.2891 {y} -14.3987 {z} 25.75
set_char_heading $scplayer {heading} 287.3674
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 2310.2061 {y} -15.8887 {z} 25.7574
set_char_heading $catalina {heading} 287.3674
task_go_straight_to_coord $scplayer {x} 2315.4121 {y} -13.1812 {z} 25.75 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $catalina {x} 2316.6189 {y} -15.1198 {z} 25.75 {speed} MoveState.Walk {time} 10000
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
55@ = 1
set_wanted_multiplier 0.2
41@ += 1

:CAT2_4115
if 
  41@ == 2
goto_if_false @CAT2_4469
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_4469
clear_small_prints 
set_fixed_camera_position 2315.312 {y} -13.8451 {z} 27.6696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2315.771 {y} -12.9906 {z} 27.427 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2315.4121 {y} -12.1812 {z} 25.75
set_char_heading $scplayer {heading} 236.5262
freeze_char_position $scplayer {state} True
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 2316.6189 {y} -15.1198 {z} 25.75
set_char_heading $catalina {heading} 242.0258
freeze_char_position $catalina {state} True
if 
  not is_char_dead 66@
goto_if_false @CAT2_4439
$x, $y, $z = get_char_coordinates 66@
$x += 2.7
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_4380
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_4407

:CAT2_4380
if 
  48 > 71@
goto_if_false @CAT2_4407
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_4407
task_aim_gun_at_coord $scplayer {x} $x {y} $y {z} $z {time} 10000
task_hands_up 66@ {time} 8000
freeze_char_position 66@ {state} True

:CAT2_4439
560@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_4469
if 
  41@ == 3
goto_if_false @CAT2_4680
if 
  560@ == 0
goto_if_false @CAT2_4680
if 
  not is_char_dead 63@
goto_if_false @CAT2_4597
$x, $y, $z = get_char_coordinates 63@
$x += 2.7
$z += 0.5
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
task_aim_gun_at_coord $catalina {x} $x {y} $y {z} $z {time} 10000
freeze_char_position 63@ {state} True
task_hands_up 63@ {time} 8000

:CAT2_4597
clear_small_prints 
set_fixed_camera_position 2317.011 {y} -17.3945 {z} 27.4246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2317.248 {y} -16.4244 {z} 27.3736 {switchStyle} SwitchType.JumpCut
560@ = 4
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_4680
if 
  41@ == 4
goto_if_false @CAT2_4749
if 
  1 > 68@
goto_if_false @CAT2_4749
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_4749
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_4749
if 
  41@ == 5
goto_if_false @CAT2_5253
if 
  1 > 68@
goto_if_false @CAT2_5253
if 
  not get_fading_status 
goto_if_false @CAT2_5253
clear_small_prints 
set_fixed_camera_position 2316.377 {y} -11.0151 {z} 28.6019 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2315.613 {y} -10.6059 {z} 28.1029 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2312.5779 {y} -7.4347 {z} 25.75
set_char_heading $scplayer {heading} 126.7479
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 2308.502 {y} -3.912 {z} 25.7422
set_char_heading $catalina {heading} 81.0
if 
  not is_char_dead $catalina
goto_if_false @CAT2_4968
freeze_char_position $catalina {state} False
task_go_straight_to_coord $catalina {x} 2306.7681 {y} -4.5085 {z} 25.7422 {speed} MoveState.Walk {time} -2

:CAT2_4968
if 
  not is_char_dead 66@
goto_if_false @CAT2_5034
clear_char_tasks 66@
set_char_coordinates 66@ {x} 2310.5459 {y} -7.7439 {z} 25.7422
set_char_heading 66@ {heading} 281.4267
task_turn_char_to_face_char 66@ {target} $scplayer
freeze_char_position 66@ {state} True

:CAT2_5034
if 
  not is_char_dead 63@
goto_if_false @CAT2_5100
clear_char_tasks 63@
set_char_coordinates 63@ {x} 2311.5969 {y} -9.1847 {z} 25.7422
set_char_heading 63@ {heading} 314.501
task_turn_char_to_face_char 63@ {target} $scplayer
freeze_char_position 63@ {state} True

:CAT2_5100
if 
  not is_char_dead 64@
goto_if_false @CAT2_5166
clear_char_tasks 64@
set_char_coordinates 64@ {x} 2310.5911 {y} -9.3749 {z} 25.7422
set_char_heading 64@ {heading} 323.1424
task_turn_char_to_face_char 64@ {target} $scplayer
freeze_char_position 64@ {state} True

:CAT2_5166
if 
  not is_char_dead 65@
goto_if_false @CAT2_5232
clear_char_tasks 65@
set_char_coordinates 65@ {x} 2309.6101 {y} -8.5556 {z} 25.7422
set_char_heading 65@ {heading} 309.2547
task_turn_char_to_face_char 65@ {target} $scplayer
freeze_char_position 65@ {state} True

:CAT2_5232
request_animation "OTB"
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_5253
if 
  41@ == 6
goto_if_false @CAT2_5375
if 
  not get_fading_status 
goto_if_false @CAT2_5375
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #MAN_SAFENEW {state} False
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #KEV_SAFE {state} False
560@ = 5
561@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1

:CAT2_5375
if 
  41@ == 7
goto_if_false @CAT2_5482
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5482
if 
  not is_char_dead 63@
goto_if_false @CAT2_5452
$x, $y, $z = get_char_coordinates 63@
$z += 0.7

:CAT2_5452
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1
80@ = 0

:CAT2_5482
if 
  41@ == 8
goto_if_false @CAT2_6092
if 
  80@ == 0
goto_if_false @CAT2_5849
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5849
set_fixed_camera_position 2314.6021 {y} -4.9551 {z} 28.3779 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2313.7791 {y} -5.363 {z} 27.9827 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT2_5792
set_char_coordinates $catalina {x} 2306.666 {y} -4.7944 {z} 25.75
set_char_heading $catalina {heading} 90.0
set_current_char_weapon $catalina {weaponType} WeaponType.Unarmed
84@ = open_sequence_task 
task_play_anim -1 {animationName} "CAT_SAFE_OPEN" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim -1 {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
close_sequence_task 84@
perform_sequence_task $catalina {sequence} 84@
clear_sequence_task 84@
play_object_anim 75@ {animationName} "CAT_SAFE_OPEN_O" {animationFile} "ROB_BANK" {frameDelta} 1000.0 {lockF} False {loop} True

:CAT2_5792
80@ = 1
freeze_char_position $scplayer {state} False
if 
  not is_char_dead 63@
goto_if_false @CAT2_5833
task_aim_gun_at_char $scplayer {target} 63@ {time} 5500

:CAT2_5833
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800

:CAT2_5849
if 
  80@ == 1
goto_if_false @CAT2_6092
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_6092
if 
  not is_char_dead 66@
goto_if_false @CAT2_5910
task_hands_up 66@ {time} 8000

:CAT2_5910
if 
  not is_char_dead 63@
goto_if_false @CAT2_5963
84@ = open_sequence_task 
task_pause -1 {time} 250
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 63@ {sequence} 84@
clear_sequence_task 84@

:CAT2_5963
if 
  not is_char_dead 64@
goto_if_false @CAT2_6016
84@ = open_sequence_task 
task_pause -1 {time} 350
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 64@ {sequence} 84@
clear_sequence_task 84@

:CAT2_6016
if 
  not is_char_dead 65@
goto_if_false @CAT2_6069
84@ = open_sequence_task 
task_pause -1 {time} 850
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 65@ {sequence} 84@
clear_sequence_task 84@

:CAT2_6069
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_6092
if 
  41@ == 9
goto_if_false @CAT2_6615
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
  559@ == 1
goto_if_false @CAT2_6615
if 
  not does_object_exist $advert_f1
goto_if_false @CAT2_6200
$advert_f1 = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $advert_f1
set_object_collision_damage_effect $advert_f1 {state} False
freeze_object_position $advert_f1 {state} True

:CAT2_6200
if 
  not does_object_exist $pc_door
goto_if_false @CAT2_6267
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $pc_door
set_object_heading $pc_door {heading} 270.0
freeze_object_position $pc_door {state} True
set_object_collision_damage_effect $pc_door {state} False

:CAT2_6267
if 
  not does_object_exist $2661
goto_if_false @CAT2_6324
$2661 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2661
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False

:CAT2_6324
if 
  not does_object_exist $2662
goto_if_false @CAT2_6391
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_heading $2662 {heading} 180.0
set_object_collision_damage_effect $2662 {state} False

:CAT2_6391
freeze_char_position $scplayer {state} False
freeze_char_position $catalina {state} False
set_player_control $player1 {state} True
clear_prints 
print 'CAT2_05' {time} 4000 {flag} 1
print 'CAT2_06' {time} 8000 {flag} 1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_char_tasks_immediately $catalina
set_current_char_weapon $catalina {weaponType} WeaponType.Unarmed
task_play_anim $catalina {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1
81@ = 0.0015
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #MAN_SAFENEW {state} True
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #KEV_SAFE {state} True

:CAT2_6615
if 
  41@ > 9
goto_if_false @CAT2_8421
81@ += 0.0
if 
  not is_char_dead 66@
goto_if_false @CAT2_7045
if 
  41@ > 10
goto_if_false @CAT2_6728
$task_status = get_script_task_status 66@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6721
freeze_char_position 66@ {state} False
task_kill_char_on_foot 66@ {target} $scplayer

:CAT2_6721
goto @CAT2_7038

:CAT2_6728
if and
  is_player_targetting_char $player1 {handle} 66@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_6771
add_timed_val_to_float_lvar 57@ +=@ 0.02
goto @CAT2_6779

:CAT2_6771
sub_timed_float_lvar_from_float_lvar 57@ -=@ 81@

:CAT2_6779
if 
  57@ > 1.0
goto_if_false @CAT2_6810
57@ = 1.0

:CAT2_6810
if 
  0.0 > 57@
goto_if_false @CAT2_6873
57@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_6873
gosub @CAT2_30052
41@ = 11

:CAT2_6873
$task_status = get_script_task_status 66@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6956
task_play_anim 66@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7038

:CAT2_6956
if 
  is_char_playing_anim 66@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7038
set_char_anim_playing_flag 66@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 66@ {animationName} "SHP_HANDSUP_SCR" {time} 57@

:CAT2_7038
goto @CAT2_7082

:CAT2_7045
if 
  41@ == 10
goto_if_false @CAT2_7077
gosub @CAT2_30052
41@ = 11

:CAT2_7077
mark_char_as_no_longer_needed 66@

:CAT2_7082
if 
  not is_char_dead 63@
goto_if_false @CAT2_7486
if 
  41@ > 10
goto_if_false @CAT2_7169
$task_status = get_script_task_status 63@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7162
freeze_char_position 63@ {state} False
task_duck 63@ {time} 1410065407

:CAT2_7162
goto @CAT2_7479

:CAT2_7169
if and
  is_player_targetting_char $player1 {handle} 63@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_7212
add_timed_val_to_float_lvar 58@ +=@ 0.023
goto @CAT2_7220

:CAT2_7212
sub_timed_float_lvar_from_float_lvar 58@ -=@ 81@

:CAT2_7220
if 
  58@ > 1.0
goto_if_false @CAT2_7251
58@ = 1.0

:CAT2_7251
if 
  0.0 > 58@
goto_if_false @CAT2_7314
58@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7314
gosub @CAT2_30052
41@ = 11

:CAT2_7314
$task_status = get_script_task_status 63@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7397
task_play_anim 63@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7479

:CAT2_7397
if 
  is_char_playing_anim 63@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7479
set_char_anim_playing_flag 63@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 63@ {animationName} "SHP_HANDSUP_SCR" {time} 58@

:CAT2_7479
goto @CAT2_7523

:CAT2_7486
if 
  41@ == 10
goto_if_false @CAT2_7518
gosub @CAT2_30052
41@ = 11

:CAT2_7518
mark_char_as_no_longer_needed 63@

:CAT2_7523
if 
  not is_char_dead 64@
goto_if_false @CAT2_7927
if 
  41@ > 10
goto_if_false @CAT2_7610
$task_status = get_script_task_status 64@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7603
freeze_char_position 64@ {state} False
task_duck 64@ {time} 1410065407

:CAT2_7603
goto @CAT2_7920

:CAT2_7610
if and
  is_player_targetting_char $player1 {handle} 64@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_7653
add_timed_val_to_float_lvar 59@ +=@ 0.026
goto @CAT2_7661

:CAT2_7653
sub_timed_float_lvar_from_float_lvar 59@ -=@ 81@

:CAT2_7661
if 
  59@ > 1.0
goto_if_false @CAT2_7692
59@ = 1.0

:CAT2_7692
if 
  0.0 > 59@
goto_if_false @CAT2_7755
59@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7755
gosub @CAT2_30052
41@ = 11

:CAT2_7755
$task_status = get_script_task_status 64@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7838
task_play_anim 64@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7920

:CAT2_7838
if 
  is_char_playing_anim 64@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7920
set_char_anim_playing_flag 64@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 64@ {animationName} "SHP_HANDSUP_SCR" {time} 59@

:CAT2_7920
goto @CAT2_7964

:CAT2_7927
if 
  41@ == 10
goto_if_false @CAT2_7959
gosub @CAT2_30052
41@ = 11

:CAT2_7959
mark_char_as_no_longer_needed 64@

:CAT2_7964
if 
  not is_char_dead 65@
goto_if_false @CAT2_8368
if 
  41@ > 10
goto_if_false @CAT2_8051
$task_status = get_script_task_status 65@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8044
freeze_char_position 65@ {state} False
task_duck 65@ {time} 1410065407

:CAT2_8044
goto @CAT2_8361

:CAT2_8051
if and
  is_player_targetting_char $player1 {handle} 65@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_8094
add_timed_val_to_float_lvar 60@ +=@ 0.025
goto @CAT2_8102

:CAT2_8094
sub_timed_float_lvar_from_float_lvar 60@ -=@ 81@

:CAT2_8102
if 
  60@ > 1.0
goto_if_false @CAT2_8133
60@ = 1.0

:CAT2_8133
if 
  0.0 > 60@
goto_if_false @CAT2_8196
60@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_8196
gosub @CAT2_30052
41@ = 11

:CAT2_8196
$task_status = get_script_task_status 65@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8279
task_play_anim 65@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_8361

:CAT2_8279
if 
  is_char_playing_anim 65@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_8361
set_char_anim_playing_flag 65@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 65@ {animationName} "SHP_HANDSUP_SCR" {time} 60@

:CAT2_8361
goto @CAT2_8421

:CAT2_8368
if 
  41@ == 10
goto_if_false @CAT2_8416
gosub @CAT2_30052
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 500
41@ = 11

:CAT2_8416
mark_char_as_no_longer_needed 65@

:CAT2_8421
if 
  560@ == 9
goto_if_false @CAT2_8635
if 
  not is_char_dead $catalina
goto_if_false @CAT2_8635
if 
  has_animation_loaded "OTB"
goto_if_false @CAT2_8628
$task_status = get_script_task_status $catalina {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8621
clear_char_tasks $catalina
84@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "WTCHRACE_CMON" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "WTCHRACE_LOSE" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 84@
perform_sequence_task $catalina {sequence} 84@
clear_sequence_task 84@

:CAT2_8621
goto @CAT2_8635

:CAT2_8628
request_animation "OTB"

:CAT2_8635
if 
  41@ == 11
goto_if_false @CAT2_8722
remove_animation "ROB_BANK"
if 
  56@ == 4
goto_if_false @CAT2_8722
if 
  is_char_dead 66@
goto_if_false @CAT2_8722
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_8722
if and
  41@ == 12
  560@ == 0
goto_if_false @CAT2_8790
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_8790
do_fade 500 {direction} Fade.Out
request_model 599
request_model 523
41@ += 1

:CAT2_8790
if 
  41@ == 13
goto_if_false @CAT2_9720
if and
  has_car_recording_been_loaded 116
  has_car_recording_been_loaded 117
  has_car_recording_been_loaded 118
  has_car_recording_been_loaded 119
  has_animation_loaded "MISC"
goto_if_false @CAT2_9689
if and
  not get_fading_status 
  has_model_loaded 599
  has_model_loaded 523
goto_if_false @CAT2_9672
remove_animation "OTB"
remove_animation "SHOP"
clear_small_prints 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_near_clip 0.1
remove_sound 82@
85@ = create_car 599 {x} 2302.1809 {y} 6.6 {z} 25.4766
set_car_heading 85@ {heading} 90.0
lock_car_doors 85@ {lockStatus} CarLock.LockoutPlayerOnly
start_playback_recorded_car 85@ {path} 116
set_playback_speed 85@ {speed} 0.0
86@ = create_car 523 {x} 2348.658 {y} 5.906 {z} 25.3359
set_car_heading 86@ {heading} 359.5453
start_playback_recorded_car 86@ {path} 117
set_playback_speed 86@ {speed} 0.0
87@ = create_char_inside_car 86@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 87@ {handleOrTemplate} 62@
88@ = create_car 523 {x} 2264.918 {y} 37.519 {z} 25.3359
set_car_heading 88@ {heading} 268.8078
start_playback_recorded_car 88@ {path} 118
set_playback_speed 88@ {speed} 0.0
89@ = create_char_inside_car 88@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 89@ {handleOrTemplate} 62@
90@ = create_car 599 {x} 2278.4771 {y} 89.2844 {z} 25.3378
set_car_heading 90@ {heading} 269.8063
start_playback_recorded_car 90@ {path} 119
set_playback_speed 90@ {speed} 0.0
91@ = create_char_inside_car 90@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 91@ {handleOrTemplate} 62@
switch_car_siren 90@ {state} True
92@ = create_char PedType.CivMale {modelId} 283 {x} 2328.564 {y} 1.8673 {z} 25.5693
set_char_heading 92@ {heading} 0.0
43@ = open_sequence_task 
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 5000
task_play_anim -1 {animationName} "SEAT_TALK_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 43@
perform_sequence_task 92@ {sequence} 43@
clear_sequence_task 43@
94@ = create_char PedType.CivMale {modelId} 240 {x} 2336.679 {y} -8.2464 {z} 25.4766
mark_model_as_no_longer_needed 240
task_smart_flee_point 94@ {x} 2336.3989 {y} -18.3093 {z} 25.4766 {radius} 30.0 {time} 8000
93@ = create_char PedType.CivMale {modelId} 283 {x} 2328.4761 {y} 2.3077 {z} 25.5693
set_char_decision_maker 93@ {handleOrTemplate} 62@
set_char_heading 93@ {heading} 180.0
43@ = open_sequence_task 
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 9200
task_play_anim -1 {animationName} "SEAT_TALK_02" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim -1 {animationName} "SEAT_WATCH" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 43@
perform_sequence_task 93@ {sequence} 43@
clear_sequence_task 43@
set_lvar_int_to_lvar_int 42@ = TIMERA
42@ += 1000
41@ += 1
goto @CAT2_9682

:CAT2_9672
request_model 599
request_model 523

:CAT2_9682
goto @CAT2_9713

:CAT2_9689
request_car_recording 116
request_car_recording 117
request_car_recording 118
request_car_recording 119
request_animation "MISC"

:CAT2_9713
goto @CAT2_9876

:CAT2_9720
if 
  41@ == 15
goto_if_false @CAT2_9851
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 42@
goto_if_false @CAT2_9851
set_fixed_camera_position 2327.583 {y} 1.796 {z} 26.5414 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2328.5381 {y} 2.0688 {z} 26.6612 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 2328.5381 {y} 2.0688 {z} 26.6612 {heading} 270.0
do_fade 500 {direction} Fade.In
68@ = -1
41@ += 1

:CAT2_9851
if 
  41@ == 14
goto_if_false @CAT2_9876
41@ += 1

:CAT2_9876
if 
  25 > 41@
goto_if_false @CAT2_10654
if or
  41@ > 15
  41@ == -1
goto_if_false @CAT2_10654
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_9978
if 
  68@ == 0
goto_if_false @CAT2_9971
do_fade 500 {direction} Fade.Out
41@ = -1
68@ += 1

:CAT2_9971
goto @CAT2_10003

:CAT2_9978
if 
  68@ == -1
goto_if_false @CAT2_10003
68@ += 1

:CAT2_10003
if 
  68@ == 1
goto_if_false @CAT2_10654
if 
  not get_fading_status 
goto_if_false @CAT2_10654
559@ = 5
if 
  not is_char_dead 92@
goto_if_false @CAT2_10158
clear_char_tasks 92@
give_weapon_to_char 92@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 92@
goto_if_false @CAT2_10115
warp_char_from_car_to_coord 92@ {x} 2292.531 {y} -19.1915 {z} 25.3437
goto @CAT2_10135

:CAT2_10115
set_char_coordinates 92@ {x} 2292.531 {y} -19.1915 {z} 25.3437

:CAT2_10135
task_aim_gun_at_coord 92@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10158
if 
  not is_char_dead 93@
goto_if_false @CAT2_10275
clear_char_tasks 93@
give_weapon_to_char 93@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 93@
goto_if_false @CAT2_10232
warp_char_from_car_to_coord 93@ {x} 2297.022 {y} -19.6483 {z} 25.3359
goto @CAT2_10252

:CAT2_10232
set_char_coordinates 93@ {x} 2297.022 {y} -19.6483 {z} 25.3359

:CAT2_10252
task_aim_gun_at_coord 93@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10275
if 
  not is_char_dead 87@
goto_if_false @CAT2_10379
clear_char_tasks 87@
give_weapon_to_char 87@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 87@
goto_if_false @CAT2_10349
warp_char_from_car_to_coord 87@ {x} 2303.1189 {y} -13.7964 {z} 25.4766
goto @CAT2_10369

:CAT2_10349
set_char_coordinates 87@ {x} 2303.1189 {y} -13.7964 {z} 25.4766

:CAT2_10369
set_char_heading 87@ {heading} 119.4845

:CAT2_10379
if 
  not is_char_dead 89@
goto_if_false @CAT2_10496
clear_char_tasks 89@
give_weapon_to_char 89@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 89@
goto_if_false @CAT2_10453
warp_char_from_car_to_coord 89@ {x} 2297.2439 {y} -16.8148 {z} 25.3328
goto @CAT2_10473

:CAT2_10453
set_char_coordinates 89@ {x} 2297.2439 {y} -16.8148 {z} 25.3328

:CAT2_10473
task_aim_gun_at_coord 89@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10496
if 
  not is_car_dead 85@
goto_if_false @CAT2_10517
skip_to_end_and_stop_playback_recorded_car 85@

:CAT2_10517
if 
  not is_car_dead 86@
goto_if_false @CAT2_10538
skip_to_end_and_stop_playback_recorded_car 86@

:CAT2_10538
if 
  not is_car_dead 88@
goto_if_false @CAT2_10559
skip_to_end_and_stop_playback_recorded_car 88@

:CAT2_10559
if 
  not is_car_dead 90@
goto_if_false @CAT2_10640
skip_to_end_and_stop_playback_recorded_car 90@
set_car_coordinates 90@ {x} 2288.7571 {y} -11.9521 {z} 25.4766
set_car_heading 90@ {heading} 142.4622
set_car_forward_speed 90@ {forwardSpeed} 0.0
set_car_rotation_velocity 90@ {x} 0.0 {y} 0.0 {z} 0.0

:CAT2_10640
68@ += 1
41@ = 25

:CAT2_10654
if 
  41@ == 16
goto_if_false @CAT2_10728
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_10728
560@ = 39
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 4000
41@ += 1

:CAT2_10728
if 
  41@ == 17
goto_if_false @CAT2_10836
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10836
if 
  560@ == 0
goto_if_false @CAT2_10836
set_lvar_int_to_lvar_int 626@ = 92@
set_lvar_int_to_lvar_int 627@ = 93@
$wz1_health_bar = 1
560@ = 11
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2800
41@ += 1

:CAT2_10836
if and
  41@ == 18
  560@ == 0
goto_if_false @CAT2_10910
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10910
560@ = 12
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ += 1

:CAT2_10910
if and
  41@ == 19
  560@ == 0
goto_if_false @CAT2_11193
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11193
if 
  not is_car_dead 85@
goto_if_false @CAT2_11032
if 
  not is_char_dead 92@
goto_if_false @CAT2_11032
clear_char_tasks 92@
set_char_coordinates 92@ {x} 2345.99 {y} 5.6379 {z} 25.3359
set_char_heading 92@ {heading} 276.5795
task_enter_car_as_driver 92@ {vehicle} 85@ {time} 5000

:CAT2_11032
if 
  not is_car_dead 85@
goto_if_false @CAT2_11112
if 
  not is_char_dead 93@
goto_if_false @CAT2_11112
clear_char_tasks 93@
set_char_coordinates 93@ {x} 2349.073 {y} 9.3357 {z} 25.4766
set_char_heading 93@ {heading} 282.9661
task_enter_car_as_passenger 93@ {vehicle} 85@ {time} 5000 {seat} SeatId.BikeRear

:CAT2_11112
clear_small_prints 
set_fixed_camera_position 2353.4939 {y} 10.2912 {z} 29.0217 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2352.7229 {y} 9.7997 {z} 28.6169 {switchStyle} SwitchType.JumpCut
delete_char 94@
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 1000
41@ += 1

:CAT2_11193
if 
  41@ == 20
goto_if_false @CAT2_11305
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11305
if 
  not is_car_dead 86@
goto_if_false @CAT2_11256
set_playback_speed 86@ {speed} 1.0

:CAT2_11256
if 
  not is_car_dead 88@
goto_if_false @CAT2_11282
set_playback_speed 88@ {speed} 1.0

:CAT2_11282
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_11305
if 
  41@ == 21
goto_if_false @CAT2_11479
if 
  not is_car_dead 85@
goto_if_false @CAT2_11456
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11449
set_playback_speed 85@ {speed} 1.0
set_interpolation_parameters 0.0 {time} 5500
set_fixed_camera_position 2353.054 {y} 12.14 {z} 28.0091 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 85@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
switch_car_siren 85@ {state} True
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11449
goto @CAT2_11479

:CAT2_11456
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11479
if 
  41@ == 22
goto_if_false @CAT2_11622
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11622
set_fixed_camera_position 2297.562 {y} 11.3784 {z} 29.2857 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 90@
goto_if_false @CAT2_11580
point_camera_at_car 90@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
goto @CAT2_11599

:CAT2_11580
point_camera_at_point 2297.377 {y} 12.3375 {z} 29.071 {switchStyle} SwitchType.JumpCut

:CAT2_11599
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6500
41@ += 1

:CAT2_11622
if 
  41@ == 23
goto_if_false @CAT2_12535
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12535
560@ = 13
561@ = 3
if 
  not is_car_dead 85@
goto_if_false @CAT2_11894
if 
  is_playback_going_on_for_car 85@
goto_if_false @CAT2_11894
stop_playback_recorded_car 85@
set_car_coordinates 85@ {x} 2297.2661 {y} -27.4791 {z} 25.3359
set_car_heading 85@ {heading} 23.0
set_car_forward_speed 85@ {forwardSpeed} 17.0
if 
  not is_char_dead 92@
goto_if_false @CAT2_11894
give_weapon_to_char 92@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 85@ {x} 2295.6121 {y} -23.6996 {z} 25.3437 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 85@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2292.531 {y} -19.1915 {z} 25.3437 {speed} MoveState.Run {time} 10000
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 92@ {sequence} 43@
clear_sequence_task 43@

:CAT2_11894
if 
  not is_char_dead 93@
goto_if_false @CAT2_12006
give_weapon_to_char 93@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2296.707 {y} -15.3321 {z} 25.3279 {speed} MoveState.Run {time} 10000
task_toggle_duck -1 {state} True
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 93@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12006
if 
  not is_car_dead 86@
goto_if_false @CAT2_12214
if 
  is_playback_going_on_for_car 86@
goto_if_false @CAT2_12214
stop_playback_recorded_car 86@
set_car_coordinates 86@ {x} 2305.835 {y} -30.7209 {z} 25.3382
set_car_heading 86@ {heading} 33.0
set_car_forward_speed 86@ {forwardSpeed} 17.0
if 
  not is_char_dead 87@
goto_if_false @CAT2_12214
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 86@ {x} 2302.1899 {y} -21.2635 {z} 25.4844 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 86@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2297.2439 {y} -16.8148 {z} 25.3328 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 291.4845
close_sequence_task 43@
perform_sequence_task 87@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12214
if 
  not is_car_dead 88@
goto_if_false @CAT2_12435
if 
  is_playback_going_on_for_car 88@
goto_if_false @CAT2_12435
stop_playback_recorded_car 88@
set_car_coordinates 88@ {x} 2294.491 {y} -2.6373 {z} 25.3359
set_car_heading 88@ {heading} 186.0
set_car_forward_speed 88@ {forwardSpeed} 17.0
if 
  not is_char_dead 89@
goto_if_false @CAT2_12435
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 88@ {x} 2298.094 {y} -10.0818 {z} 25.3285 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 88@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2303.1189 {y} -13.7964 {z} 25.4766 {speed} MoveState.Run {time} 10000
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 89@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12435
if 
  not is_car_dead 90@
goto_if_false @CAT2_12461
set_playback_speed 90@ {speed} 1.0

:CAT2_12461
set_fixed_camera_position 2288.5769 {y} -15.1784 {z} 27.8832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2289.553 {y} -15.2742 {z} 27.6869 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6000
41@ += 1

:CAT2_12535
if and
  41@ == 24
  560@ == 0
goto_if_false @CAT2_12598
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12598
do_fade 500 {direction} Fade.Out
request_model 427
41@ += 1

:CAT2_12598
if 
  41@ == 25
goto_if_false @CAT2_13093
if and
  not get_fading_status 
  has_model_loaded 427
goto_if_false @CAT2_13088
switch_roads_off 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
remove_animation "MISC"
request_animation "GANGS"
95@ = create_car 427 {x} 2302.1809 {y} 6.6 {z} 25.4766
set_car_heading 95@ {heading} 90.0
freeze_car_position 95@ {state} True
96@ = create_car 427 {x} 2337.8999 {y} 23.4 {z} 25.4766
set_car_heading 96@ {heading} 270.0
freeze_car_position 96@ {state} True
101@ = 0

:CAT2_12770
if 
  3 > 101@
goto_if_false @CAT2_12872
97@(101@,4i) = 0
if 
  does_object_exist 72@(101@,4i)
goto_if_false @CAT2_12858
add_blip_for_object 72@(101@,4i) {var_handle} 102@(101@,4i)
make_object_targettable 76@(101@,4i) {state} True
set_object_health 76@(101@,4i) {health} 1000

:CAT2_12858
101@ += 1
goto @CAT2_12770

:CAT2_12872
if 
  not is_char_dead 94@
goto_if_false @CAT2_12893
mark_char_as_no_longer_needed 94@

:CAT2_12893
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In
if 
  not is_char_dead 92@
goto_if_false @CAT2_12954
delete_char 92@

:CAT2_12954
if 
  not is_char_dead 93@
goto_if_false @CAT2_12975
delete_char 93@

:CAT2_12975
if 
  not is_char_dead 87@
goto_if_false @CAT2_12996
delete_char 87@

:CAT2_12996
if 
  not is_char_dead 89@
goto_if_false @CAT2_13017
delete_char 89@

:CAT2_13017
delete_car 85@
delete_car 86@
delete_car 88@
delete_car 90@
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
set_char_coordinates $catalina {x} 2312.208 {y} -1.9564 {z} 25.7422
set_char_heading $catalina {heading} 199.0
41@ += 1
goto @CAT2_13093

:CAT2_13088
request_model 427

:CAT2_13093
if 
  41@ == 26
goto_if_false @CAT2_13241
if and
  not get_fading_status 
  559@ == 1
  has_animation_loaded "GANGS"
goto_if_false @CAT2_13241
560@ = 16
561@ = 3
if 
  not is_char_dead $catalina
goto_if_false @CAT2_13213
task_play_anim $catalina {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:CAT2_13213
set_object_collision_damage_effect 76@ {state} False
set_object_collision_damage_effect 77@ {state} True
set_object_collision_damage_effect 78@ {state} True
41@ += 1

:CAT2_13241
if 
  41@ == 27
goto_if_false @CAT2_14339
106@ = get_script_task_status $catalina {taskId} 1541
if 
  is_int_lvar_equal_to_constant 106@ == 7
goto_if_false @CAT2_13317
if 
  has_animation_loaded "GANGS"
goto_if_false @CAT2_13317
remove_animation "GANGS"

:CAT2_13317
101@ = 0

:CAT2_13324
if 
  3 > 101@
goto_if_false @CAT2_14153
if 
  does_object_exist 72@(101@,4i)
goto_if_false @CAT2_13690
if 
  97@(101@,4i) == 0
goto_if_false @CAT2_13690
44@ = get_object_health 76@(101@,4i)
$x, $y, $z = get_object_coordinates 72@(101@,4i)
set_lvar_float_to_var_float 107@ = $x
107@ -= 1.0
set_lvar_float_to_var_float 110@ = $x
110@ += 1.0
set_lvar_float_to_var_float 108@ = $y
108@ -= 1.0
set_lvar_float_to_var_float 111@ = $y
111@ += 1.0
set_lvar_float_to_var_float 109@ = $z
109@ -= 1.0
set_lvar_float_to_var_float 112@ = $z
112@ += 1.0
if 
  is_explosion_in_area -1 {leftBottomX} 107@ {leftBottomY} 108@ {leftBottomZ} 109@ {rightTopX} 110@ {rightTopY} 111@ {rightTopZ} 112@
goto_if_false @CAT2_13573
set_object_health 113@(101@,4i) {health} 0
44@ = 0

:CAT2_13573
if 
  500 > 44@
goto_if_false @CAT2_13690
46@ = get_object_heading 72@(101@,4i)
break_object 72@(101@,4i) {intensity} 1
set_object_coordinates 113@(101@,4i) {x} $x {y} $y {z} $z
set_object_visible 113@(101@,4i) {state} True
set_object_heading 113@(101@,4i) {heading} 46@
set_object_collision 113@(101@,4i) {state} False
set_object_health 113@(101@,4i) {health} 150
97@(101@,4i) += 1

:CAT2_13690
if 
  does_object_exist 113@(101@,4i)
goto_if_false @CAT2_14068
if 
  97@(101@,4i) == 1
goto_if_false @CAT2_14068
44@ = get_object_health 76@(101@,4i)
if 
  1 > 44@
goto_if_false @CAT2_14068
remove_blip 102@(101@,4i)
delete_object 76@(101@,4i)
if 
  101@ == 0
goto_if_false @CAT2_13838
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 76@ {heading} 180.0

:CAT2_13838
if 
  101@ == 1
goto_if_false @CAT2_13896
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 77@ {heading} 180.0

:CAT2_13896
if 
  101@ == 2
goto_if_false @CAT2_13944
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False

:CAT2_13944
mark_object_as_no_longer_needed 72@(101@,4i)
$x, $y, $z = get_offset_from_object_in_world_coords 113@(101@,4i) {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
make_object_targettable 76@(101@,4i) {state} False
set_object_visible 76@(101@,4i) {state} True
break_object 113@(101@,4i) {intensity} 0
create_money_pickup $x {y} $y {z} $z {cashAmount} 0 {permanent} True {var_handle} 117@(101@,4i)
add_blip_for_pickup 117@(101@,4i) {var_handle} 102@(101@,4i)
97@(101@,4i) += 1

:CAT2_14068
if 
  97@(101@,4i) == 2
goto_if_false @CAT2_14139
if 
  has_pickup_been_collected 117@(101@,4i)
goto_if_false @CAT2_14139
mark_object_as_no_longer_needed 113@(101@,4i)
remove_blip 102@(101@,4i)
97@(101@,4i) += 1

:CAT2_14139
101@ += 1
goto @CAT2_13324

:CAT2_14153
if and
  97@ == 3
  98@ == 3
  99@ == 3
goto_if_false @CAT2_14339
set_object_collision_damage_effect $pc_door {state} True
41@ += 1
if 
  not is_char_dead 92@
goto_if_false @CAT2_14224
set_char_relationship 92@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14224
if 
  not is_char_dead 93@
goto_if_false @CAT2_14249
set_char_relationship 93@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14249
if 
  not is_char_dead 87@
goto_if_false @CAT2_14274
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14274
if 
  not is_char_dead 89@
goto_if_false @CAT2_14299
set_char_relationship 89@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14299
switch_roads_on 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
set_char_decision_maker $catalina {handleOrTemplate} 38@

:CAT2_14339
if 
  41@ == 28
goto_if_false @CAT2_14392
mark_model_as_no_longer_needed #KMB_ATM1
mark_model_as_no_longer_needed #KMB_ATM2
mark_model_as_no_longer_needed #KMB_ATM3
mark_model_as_no_longer_needed #MTSAFE
mark_model_as_no_longer_needed #CR_DOOR_01
mark_model_as_no_longer_needed #CR_DOOR_03
41@ = 29

:CAT2_14392
if 
  41@ == 31
goto_if_false @CAT2_14967
if and
  has_car_recording_been_loaded 123
  has_car_recording_been_loaded 124
goto_if_false @CAT2_14959
if 
  344@ == 10
goto_if_false @CAT2_14952
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_14952
if 
  locate_char_any_means_3d $scplayer {x} 2315.5581 {y} 70.7181 {z} 31.4998 {xRadius} 11.4 {yRadius} 8.4 {zRadius} 6.0 {drawSphere} False
goto_if_false @CAT2_14952
clear_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2321.218 {y} 69.1035 {z} 26.7314 {radius} 25.0 {clearParticles} True
set_fixed_camera_position 2324.8989 {y} 66.4572 {z} 25.8911 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2324.1919 {y} 67.157 {z} 25.9911 {switchStyle} SwitchType.JumpCut
delete_car 86@
delete_car 88@
delete_char 87@
delete_char 89@
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_14685
warp_char_from_car_to_coord $scplayer {x} 2319.793 {y} 61.6571 {z} 25.4769
goto @CAT2_14705

:CAT2_14685
set_char_coordinates $scplayer {x} 2319.793 {y} 61.6571 {z} 25.4769

:CAT2_14705
set_char_heading $scplayer {heading} 5.0
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_14763
warp_char_from_car_to_coord $catalina {x} 2318.2419 {y} 61.3145 {z} 25.4759
goto @CAT2_14783

:CAT2_14763
set_char_coordinates $catalina {x} 2318.2419 {y} 61.3145 {z} 25.4759

:CAT2_14783
set_char_heading $catalina {heading} 350.0
86@ = create_car 523 {x} 2287.156 {y} 61.9821 {z} 25.4766
set_car_heading 86@ {heading} 322.7361
87@ = create_char_inside_car 86@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 87@ {handleOrTemplate} 62@
start_playback_recorded_car 86@ {path} 123
set_car_proofs 86@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
88@ = create_car 523 {x} 2289.6289 {y} 58.0551 {z} 25.3359
set_car_heading 88@ {heading} 330.5475
set_car_proofs 88@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
89@ = create_char_inside_car 88@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 89@ {handleOrTemplate} 62@
start_playback_recorded_car 88@ {path} 124
41@ += 1

:CAT2_14952
goto @CAT2_14967

:CAT2_14959
request_car_recording 123
request_car_recording 124

:CAT2_14967
if 
  41@ == 32
goto_if_false @CAT2_15059
if 
  not is_car_dead 86@
goto_if_false @CAT2_15059
if 
  not is_playback_going_on_for_car 86@
goto_if_false @CAT2_15059
if 
  not is_char_dead 87@
goto_if_false @CAT2_15059
set_car_engine_on 86@ {state} False
task_leave_any_car 87@
freeze_car_position 86@ {state} True
41@ += 1

:CAT2_15059
if and
  41@ == 33
  560@ == 0
goto_if_false @CAT2_15165
if 
  not is_car_dead 88@
goto_if_false @CAT2_15165
if 
  not is_playback_going_on_for_car 88@
goto_if_false @CAT2_15165
if 
  not is_char_dead 89@
goto_if_false @CAT2_15165
task_leave_any_car 89@
set_car_engine_on 88@ {state} False
freeze_car_position 88@ {state} True
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_15165
if 
  41@ == 34
goto_if_false @CAT2_15250
if 
  not get_fading_status 
goto_if_false @CAT2_15250
560@ = 29
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_15250
if 
  41@ == 35
goto_if_false @CAT2_15408
if 
  not get_fading_status 
goto_if_false @CAT2_15408
if 
  not is_char_dead 87@
goto_if_false @CAT2_15322
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 9999
task_kill_char_on_foot 87@ {target} $scplayer
set_char_only_damaged_by_player 87@ {state} True

:CAT2_15322
if 
  not is_char_dead 89@
goto_if_false @CAT2_15363
give_weapon_to_char 89@ {weaponType} WeaponType.Shotgun {ammo} 9999
task_kill_char_on_foot 89@ {target} $scplayer
set_char_only_damaged_by_player 89@ {state} True

:CAT2_15363
if 
  not is_char_dead $catalina
goto_if_false @CAT2_15401
task_shoot_at_coord $catalina {x} 2322.1831 {y} 71.2342 {z} 26.549 {time} -2

:CAT2_15401
41@ += 1

:CAT2_15408
if and
  41@ == 36
  560@ == 0
goto_if_false @CAT2_15490
if 
  not get_fading_status 
goto_if_false @CAT2_15490
if and
  is_char_dead 87@
  is_char_dead 89@
goto_if_false @CAT2_15490
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 750
41@ += 1

:CAT2_15490
if 
  41@ == 37
goto_if_false @CAT2_15541
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_15541
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_15541
if 
  38 > 41@
goto_if_false @CAT2_15559

:CAT2_15559
if 
  41@ == 38
goto_if_false @CAT2_16307
if 
  not get_fading_status 
goto_if_false @CAT2_16307
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2321.218 {y} 69.1035 {z} 26.7314 {radius} 25.0 {clearParticles} True
set_fixed_camera_position 2325.291 {y} 70.4759 {z} 26.8236 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2324.353 {y} 70.7834 {z} 26.6641 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $catalina
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_15747
warp_char_from_car_to_coord $scplayer {x} 2322.075 {y} 69.6739 {z} 25.4784
goto @CAT2_15767

:CAT2_15747
set_char_coordinates $scplayer {x} 2322.075 {y} 69.6739 {z} 25.4784

:CAT2_15767
set_char_heading $scplayer {heading} 325.1885
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_15825
warp_char_from_car_to_coord $catalina {x} 2321.6299 {y} 71.6478 {z} 25.4724
goto @CAT2_15845

:CAT2_15825
set_char_coordinates $catalina {x} 2321.6299 {y} 71.6478 {z} 25.4724

:CAT2_15845
set_char_heading $catalina {heading} 295.8968
delete_car 86@
delete_car 88@
delete_char 87@
delete_char 89@
if 
  not is_car_dead 95@
goto_if_false @CAT2_15896
mark_car_as_no_longer_needed 95@

:CAT2_15896
if 
  not is_car_dead 96@
goto_if_false @CAT2_15917
mark_car_as_no_longer_needed 96@

:CAT2_15917
if 
  not is_car_dead 85@
goto_if_false @CAT2_15938
mark_car_as_no_longer_needed 85@

:CAT2_15938
if 
  not is_car_dead 86@
goto_if_false @CAT2_15959
mark_car_as_no_longer_needed 86@

:CAT2_15959
clear_area 2320.634 {y} 79.9329 {z} 27.9897 {radius} 100.0 {clearParticles} True
86@ = create_car 523 {x} 2322.863 {y} 73.0477 {z} 26.0378
set_car_heading 86@ {heading} 34.6853
88@ = create_car 523 {x} 2323.166 {y} 70.1374 {z} 26.0405
set_car_heading 88@ {heading} 345.7562
43@ = open_sequence_task 
task_stand_still -1 {time} 750
task_enter_car_as_driver -1 {vehicle} 86@ {time} -2
close_sequence_task 43@
perform_sequence_task $catalina {sequence} 43@
clear_sequence_task 43@
43@ = open_sequence_task 
task_stand_still -1 {time} 500
task_enter_car_as_driver -1 {vehicle} 88@ {time} -2
close_sequence_task 43@
perform_sequence_task $scplayer {sequence} 43@
clear_sequence_task 43@
mark_object_as_no_longer_needed 113@
mark_object_as_no_longer_needed 114@
mark_object_as_no_longer_needed 115@
mark_object_as_no_longer_needed 72@
mark_object_as_no_longer_needed 73@
mark_object_as_no_longer_needed 74@
mark_object_as_no_longer_needed 75@
mark_object_as_no_longer_needed 76@
mark_object_as_no_longer_needed 77@
mark_object_as_no_longer_needed 78@
mark_object_as_no_longer_needed 70@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 298@
mark_char_as_no_longer_needed 299@
mark_char_as_no_longer_needed 300@
mark_char_as_no_longer_needed 301@
mark_char_as_no_longer_needed 302@
mark_char_as_no_longer_needed 303@
mark_char_as_no_longer_needed 304@
mark_char_as_no_longer_needed 305@
mark_char_as_no_longer_needed 306@
do_fade 500 {direction} Fade.In
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1
560@ = 30
561@ = 2
set_lvar_int_to_lvar_int 634@ = TIMERA
634@ += 400

:CAT2_16307
if 
  41@ == 39
goto_if_false @CAT2_16421
if 
  not is_car_dead 86@
goto_if_false @CAT2_16407
if 
  is_char_sitting_in_car $catalina {vehicle} 86@
goto_if_false @CAT2_16400
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_16400
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_16400
goto @CAT2_16421

:CAT2_16407
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_16421
if 
  41@ == 40
goto_if_false @CAT2_17517
if and
  has_car_recording_been_loaded 156
  has_car_recording_been_loaded 157
  has_car_recording_been_loaded 158
  has_car_recording_been_loaded 159
goto_if_false @CAT2_17497
if and
  has_car_recording_been_loaded 160
  has_car_recording_been_loaded 161
goto_if_false @CAT2_17480
if 
  not get_fading_status 
goto_if_false @CAT2_17473
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
122@ = create_car 599 {x} 1307.095 {y} 280.2934 {z} 18.4062
123@ = create_car 599 {x} 1307.095 {y} 290.2934 {z} 18.4062
124@ = create_car 599 {x} 1307.095 {y} 300.2934 {z} 18.4062
freeze_car_position 122@ {state} True
freeze_car_position 123@ {state} True
freeze_car_position 124@ {state} True
146@ = create_car 523 {x} 2346.5229 {y} 62.9803 {z} 25.3359
147@ = create_car 523 {x} 2346.6819 {y} 45.9405 {z} 25.3359
129@ = create_char_inside_car 122@ {pedType} PedType.Mission1 {modelId} 283
130@ = create_char_as_passenger 122@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
131@ = create_char_inside_car 123@ {pedType} PedType.Mission1 {modelId} 283
132@ = create_char_as_passenger 123@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
133@ = create_char_inside_car 124@ {pedType} PedType.Mission1 {modelId} 283
134@ = create_char_as_passenger 124@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
135@ = create_char_inside_car 146@ {pedType} PedType.Mission2 {modelId} 283
136@ = create_char_inside_car 147@ {pedType} PedType.Mission2 {modelId} 283
set_char_relationship 135@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 136@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
166@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
363@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_char_decision_maker_event_response 166@ {event} Event.ShotFired
clear_char_decision_maker_event_response 166@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 166@ {event} Event.Damage
clear_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 166@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 166@ {event} Event.DeadPed
clear_char_decision_maker_event_response 166@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 166@ {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 75.0 {like} 0.0 {dislike} 75.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 25.0 {like} 0.0 {dislike} 25.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_char_decision_maker 129@ {handleOrTemplate} 363@
set_char_decision_maker 130@ {handleOrTemplate} 363@
set_char_decision_maker 131@ {handleOrTemplate} 363@
set_char_decision_maker 132@ {handleOrTemplate} 363@
set_char_decision_maker 133@ {handleOrTemplate} 363@
set_char_decision_maker 134@ {handleOrTemplate} 363@
set_char_decision_maker 135@ {handleOrTemplate} 363@
set_char_decision_maker 136@ {handleOrTemplate} 363@
set_char_can_be_knocked_off_bike 135@ {stayOnBike} 2
set_char_can_be_knocked_off_bike 136@ {stayOnBike} 2
give_weapon_to_char 129@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 130@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 131@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 132@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 133@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 134@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 135@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 136@ {weaponType} WeaponType.Pistol {ammo} 9999
if 
  not is_char_dead $catalina
goto_if_false @CAT2_17258
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999

:CAT2_17258
148@ = 1290.025
149@ = 1294.2419
150@ = 1282.681
151@ = 1285.585
152@ = 1289.389
153@ = 1285.593
154@ = 252.8313
155@ = 249.3508
156@ = 250.9628
157@ = 253.8959
158@ = 241.5564
159@ = 240.6378
160@ = 18.4062
161@ = 18.4062
162@ = 18.4062
163@ = 18.4062
164@ = 18.4062
165@ = 18.4062
121@ = 0
125@ = 0
126@ = 0
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_17473
goto @CAT2_17490

:CAT2_17480
request_car_recording 160
request_car_recording 161

:CAT2_17490
goto @CAT2_17517

:CAT2_17497
request_car_recording 156
request_car_recording 157
request_car_recording 158
request_car_recording 159

:CAT2_17517
if 
  41@ == 41
goto_if_false @CAT2_17571
if 
  not get_fading_status 
goto_if_false @CAT2_17571
56@ = 8
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
41@ += 1

:CAT2_17571
if 
  41@ > 9
goto_if_false @CAT2_17633
if 
  56@ == 0
goto_if_false @CAT2_17633
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_17633
56@ += 1

:CAT2_17633
if 
  56@ == 1
goto_if_false @CAT2_17687
$task_status = get_script_task_status $catalina {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17687
56@ += 1

:CAT2_17687
if 
  56@ == 2
goto_if_false @CAT2_17757
$task_status = get_script_task_status $catalina {taskId} 1492
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17757
set_lvar_int_to_var_int 167@ = $game_timer
167@ += 20000
56@ += 1

:CAT2_17757
if 
  56@ == 3
goto_if_false @CAT2_17867
168@ += 15
if or
  is_int_var_greater_than_int_lvar $game_timer > 167@
  41@ > 10
goto_if_false @CAT2_17867
if 
  41@ == 10
goto_if_false @CAT2_17860
report_mission_audio_event_at_position 2312.094 {y} -9.6433 {z} 28.679 {soundId} ScriptSound.SoundCat2SecurityAlarm
gosub @CAT2_30052
41@ = 11

:CAT2_17860
56@ += 1

:CAT2_17867
if 
  56@ == 4
goto_if_false @CAT2_18239
if 
  41@ > 27
goto_if_false @CAT2_18239
if 
  not is_char_dead $catalina
goto_if_false @CAT2_18239
if and
  169@ == 0
  560@ == 0
goto_if_false @CAT2_18004
560@ = 19
561@ = 2
372@ = add_blip_for_char $catalina
set_blip_as_friendly 372@ {state} True
task_go_straight_to_coord $catalina {x} 2315.3911 {y} -1.6768 {z} 25.75 {speed} MoveState.Run {time} -2
169@ = 1

:CAT2_18004
if 
  169@ == 1
goto_if_false @CAT2_18117
$task_status = get_script_task_status $catalina {taskId} -1
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18117
if 
  not has_object_been_damaged $pc_door
goto_if_false @CAT2_18110
169@ = 2
task_shoot_at_coord $catalina {x} 2315.4751 {y} 1.0941 {z} 26.8796 {time} 1000
170@ += 1
goto @CAT2_18117

:CAT2_18110
169@ = 2

:CAT2_18117
if 
  169@ == 2
goto_if_false @CAT2_18239
$task_status = get_script_task_status $catalina {taskId} 1640
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18239
if or
  has_object_been_damaged $pc_door
  170@ > 2
goto_if_false @CAT2_18232
task_follow_path_nodes_to_coord $catalina {x} 2315.551 {y} 3.731 {z} 25.4766 {speed} MoveState.Run {time} -2
169@ = 3
56@ += 1
goto @CAT2_18239

:CAT2_18232
169@ = 1

:CAT2_18239
if 
  34@ == 0
goto_if_false @CAT2_18376
if 
  56@ > 4
goto_if_false @CAT2_18376
if and
  35@ == 0
  560@ == 0
goto_if_false @CAT2_18323
print 'CAT2_19' {time} 4000 {flag} 1
35@ = 1

:CAT2_18323
if 
  has_object_been_damaged $pc_door
goto_if_false @CAT2_18376
34@ = 1
560@ = 21
set_lvar_int_to_lvar_int 639@ = TIMERA
639@ += 2500
561@ = 3

:CAT2_18376
if 
  56@ == 5
goto_if_false @CAT2_20195
171@ = 2328.6379
189@ = 9.9046
207@ = 25.4766
225@ = 82.0
251@ = 1
172@ = 2328.6299
190@ = 12.0793
208@ = 26.4366
226@ = 102.156
252@ = 1
173@ = 2323.5391
191@ = 8.1573
209@ = 30.1564
227@ = 119.8251
253@ = 0
174@ = 2313.9189
192@ = 5.5612
210@ = 25.4766
228@ = 179.0108
254@ = 3
175@ = 2319.28
193@ = 10.1457
211@ = 25.4766
229@ = 173.7026
255@ = 1
176@ = 2322.4221
194@ = 14.3559
212@ = 33.4834
230@ = 131.5315
256@ = 0
177@ = 2322.5669
195@ = 22.3196
213@ = 25.4766
231@ = 191.9916
257@ = 5
178@ = 2317.4221
196@ = 31.4408
214@ = 25.4688
232@ = 170.5408
258@ = 1
179@ = 2323.3469
197@ = 32.5086
215@ = 30.3438
233@ = 167.5312
259@ = 2
180@ = 2314.0601
198@ = 27.4771
216@ = 28.4834
234@ = 211.9221
260@ = 0
181@ = 2314.146
199@ = 32.6897
217@ = 30.3072
235@ = 218.8303
261@ = 0
182@ = 2324.323
200@ = 25.9529
218@ = 30.4834
236@ = 146.7435
262@ = 0
183@ = 2315.2351
201@ = 44.7149
219@ = 27.6529
237@ = 177.4772
263@ = 1
184@ = 2322.1421
202@ = 38.0272
220@ = 25.4698
238@ = 165.042
264@ = 5
185@ = 2316.281
203@ = 53.245
221@ = 25.4745
239@ = 211.6924
265@ = 3
186@ = 2316.9771
204@ = 60.9693
222@ = 26.9906
240@ = 217.9312
266@ = 0
187@ = 2322.6899
205@ = 57.5449
223@ = 31.9884
241@ = 174.0596
267@ = 0
188@ = 2313.3899
206@ = 51.5349
224@ = 29.4834
242@ = 196.6579
268@ = 0
278@ = 0

:CAT2_19247
if 
  9 > 278@
goto_if_false @CAT2_20165
if 
  3 > 278@
goto_if_false @CAT2_19353
279@ = generate_random_int_in_range 0 {max} 6

:CAT2_19292
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19353
279@ += 1
if 
  279@ == 6
goto_if_false @CAT2_19346
279@ = 0

:CAT2_19346
goto @CAT2_19292

:CAT2_19353
if and
  278@ > 2
  6 > 278@
goto_if_false @CAT2_19448
279@ = generate_random_int_in_range 6 {max} 12

:CAT2_19387
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19448
279@ += 1
if 
  279@ == 12
goto_if_false @CAT2_19441
279@ = 6

:CAT2_19441
goto @CAT2_19387

:CAT2_19448
if and
  278@ > 5
  9 > 278@
goto_if_false @CAT2_19543
279@ = generate_random_int_in_range 12 {max} 18

:CAT2_19482
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19543
279@ += 1
if 
  279@ == 18
goto_if_false @CAT2_19536
279@ = 12

:CAT2_19536
goto @CAT2_19482

:CAT2_19543
280@(279@,18i) = 1
set_lvar_int_to_lvar_int 316@(279@,18i) = 278@
create_char PedType.CivMale {modelId} 283 {x} 171@(279@,18f) {y} 189@(279@,18f) {z} 207@(279@,18f) {var_handle} 298@(278@,9i)
set_char_shoot_rate 298@(278@,9i) {rate} 40
set_char_accuracy 298@(278@,9i) {accuracy} 60
set_lvar_int_to_lvar_int 307@(278@,9i) = 251@(279@,18i)
set_lvar_int_to_lvar_int 334@(278@,9i) = 279@
set_char_heading 298@(278@,9i) {heading} 225@(279@,18f)
279@ = generate_random_int_in_range 0 {max} 3
if or
  3 > 279@
  343@ > 0
goto_if_false @CAT2_19722
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @CAT2_19797

:CAT2_19722
if 
  6 > 334@(278@,9i)
goto_if_false @CAT2_19765
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @CAT2_19797

:CAT2_19765
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Shotgun {ammo} 9999
set_char_shoot_rate 298@(278@,9i) {rate} 10
343@ = 1

:CAT2_19797
set_char_relationship 298@(278@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 298@(278@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
if 
  251@(279@,18i) == 0
goto_if_false @CAT2_19902
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@
set_char_stay_in_same_place 298@(278@,9i) {state} True

:CAT2_19902
if 
  251@(279@,18i) == 1
goto_if_false @CAT2_19974
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@
set_char_stay_in_same_place 298@(278@,9i) {state} True

:CAT2_19974
if 
  251@(279@,18i) == 2
goto_if_false @CAT2_20029
43@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20029
if 
  251@(279@,18i) == 3
goto_if_false @CAT2_20090
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20090
if 
  251@(279@,18i) == 5
goto_if_false @CAT2_20151
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20151
278@ += 1
goto @CAT2_19247

:CAT2_20165
346@ = 99
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
56@ = 6

:CAT2_20195
if 
  56@ == 6
goto_if_false @CAT2_23402
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23402
if 
  346@ <> 99
goto_if_false @CAT2_20387
if 
  is_char_dead 298@(346@,9i)
goto_if_false @CAT2_20297
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20297
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 350@
goto_if_false @CAT2_20387
if 
  346@ <> 99
goto_if_false @CAT2_20387
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
347@ = 1
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20387
if 
  346@ == 99
goto_if_false @CAT2_22520
if and
  344@ > 0
  10 > 344@
goto_if_false @CAT2_20518
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 1
goto_if_false @CAT2_20474
set_lvar_int_to_lvar_int 348@ = TIMERA
348@ += 8000

:CAT2_20474
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20518
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 348@
goto_if_false @CAT2_20518
347@ = 1

:CAT2_20518
if 
  344@ == 0
goto_if_false @CAT2_20571
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20571
344@ = 1

:CAT2_20571
if 
  344@ == 1
goto_if_false @CAT2_20822
if 
  283@ == 1
goto_if_false @CAT2_20622
set_lvar_int_to_lvar_int 346@ = 319@
goto @CAT2_20759

:CAT2_20622
if 
  282@ == 1
goto_if_false @CAT2_20655
set_lvar_int_to_lvar_int 346@ = 318@
goto @CAT2_20759

:CAT2_20655
if 
  284@ == 1
goto_if_false @CAT2_20688
set_lvar_int_to_lvar_int 346@ = 320@
goto @CAT2_20759

:CAT2_20688
if 
  285@ == 1
goto_if_false @CAT2_20721
set_lvar_int_to_lvar_int 346@ = 321@
goto @CAT2_20759

:CAT2_20721
344@ = 2
560@ = 24
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20759
if 
  347@ == 1
goto_if_false @CAT2_20822
347@ = 0
344@ = 2
560@ = 24
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20822
if 
  344@ == 2
goto_if_false @CAT2_20971
if 
  not is_char_dead $catalina
goto_if_false @CAT2_20971
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20971
if 
  locate_char_any_means_3d $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_20947
344@ = 3
goto @CAT2_20971

:CAT2_20947
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20971
if and
  344@ == 3
  560@ == 0
goto_if_false @CAT2_21163
if 
  280@ == 1
goto_if_false @CAT2_21029
set_lvar_int_to_lvar_int 346@ = 316@
goto @CAT2_21100

:CAT2_21029
if 
  281@ == 1
goto_if_false @CAT2_21062
set_lvar_int_to_lvar_int 346@ = 317@
goto @CAT2_21100

:CAT2_21062
344@ = 4
560@ = 25
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21100
if 
  347@ == 1
goto_if_false @CAT2_21163
347@ = 0
344@ = 4
560@ = 25
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21163
if 
  344@ == 4
goto_if_false @CAT2_21312
if 
  not is_char_dead $catalina
goto_if_false @CAT2_21312
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21312
if 
  locate_char_any_means_3d $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_21288
344@ = 5
goto @CAT2_21312

:CAT2_21288
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21312
if 
  344@ == 5
goto_if_false @CAT2_21629
if 
  286@ == 1
goto_if_false @CAT2_21363
set_lvar_int_to_lvar_int 346@ = 322@
goto @CAT2_21566

:CAT2_21363
if 
  287@ == 1
goto_if_false @CAT2_21396
set_lvar_int_to_lvar_int 346@ = 323@
goto @CAT2_21566

:CAT2_21396
if 
  288@ == 1
goto_if_false @CAT2_21429
set_lvar_int_to_lvar_int 346@ = 324@
goto @CAT2_21566

:CAT2_21429
if 
  289@ == 1
goto_if_false @CAT2_21462
set_lvar_int_to_lvar_int 346@ = 325@
goto @CAT2_21566

:CAT2_21462
if 
  290@ == 1
goto_if_false @CAT2_21495
set_lvar_int_to_lvar_int 346@ = 326@
goto @CAT2_21566

:CAT2_21495
if 
  291@ == 1
goto_if_false @CAT2_21528
set_lvar_int_to_lvar_int 346@ = 327@
goto @CAT2_21566

:CAT2_21528
344@ = 6
560@ = 26
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21566
if 
  347@ == 1
goto_if_false @CAT2_21629
347@ = 0
344@ = 6
560@ = 26
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21629
if 
  344@ == 6
goto_if_false @CAT2_21778
if 
  not is_char_dead $catalina
goto_if_false @CAT2_21778
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21778
if 
  locate_char_any_means_3d $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_21754
344@ = 7
goto @CAT2_21778

:CAT2_21754
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21778
if and
  344@ == 7
  560@ == 0
goto_if_false @CAT2_21956
if 
  292@ == 1
goto_if_false @CAT2_21836
set_lvar_int_to_lvar_int 346@ = 328@
goto @CAT2_21900

:CAT2_21836
if 
  293@ == 1
goto_if_false @CAT2_21869
set_lvar_int_to_lvar_int 346@ = 329@
goto @CAT2_21900

:CAT2_21869
344@ = 8
task_follow_path_nodes_to_coord $catalina {x} 2318.6221 {y} 45.0292 {z} 25.4762 {speed} MoveState.Run {time} -2

:CAT2_21900
if 
  347@ == 1
goto_if_false @CAT2_21956
347@ = 0
344@ = 8
task_follow_path_nodes_to_coord $catalina {x} 2318.6221 {y} 45.0292 {z} 25.4762 {speed} MoveState.Run {time} -2

:CAT2_21956
if 
  344@ == 8
goto_if_false @CAT2_22025
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22025
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22025
344@ = 9

:CAT2_22025
if and
  344@ == 9
  560@ == 0
goto_if_false @CAT2_22283
if 
  294@ == 1
goto_if_false @CAT2_22083
set_lvar_int_to_lvar_int 346@ = 330@
goto @CAT2_22220

:CAT2_22083
if 
  295@ == 1
goto_if_false @CAT2_22116
set_lvar_int_to_lvar_int 346@ = 331@
goto @CAT2_22220

:CAT2_22116
if 
  296@ == 1
goto_if_false @CAT2_22149
set_lvar_int_to_lvar_int 346@ = 332@
goto @CAT2_22220

:CAT2_22149
if 
  297@ == 1
goto_if_false @CAT2_22182
set_lvar_int_to_lvar_int 346@ = 333@
goto @CAT2_22220

:CAT2_22182
344@ = 10
560@ = 28
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22220
if 
  347@ == 1
goto_if_false @CAT2_22283
347@ = 0
344@ = 10
560@ = 28
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22283
if 
  344@ == 10
goto_if_false @CAT2_22438
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22438
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22438
if 
  locate_char_any_means_3d $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CAT2_22414
56@ = 7
41@ = 31
goto @CAT2_22438

:CAT2_22414
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22438
if 
  346@ <> 99
goto_if_false @CAT2_22520
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22520
if 
  not is_char_dead 298@(346@,9i)
goto_if_false @CAT2_22520
task_kill_char_on_foot $catalina {target} 298@(346@,9i)
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 15000

:CAT2_22520
278@ = 0

:CAT2_22527
if 
  9 > 278@
goto_if_false @CAT2_23402
if 
  not is_char_dead 298@(278@,9i)
goto_if_false @CAT2_23388
if 
  307@(278@,9i) == 1
goto_if_false @CAT2_22727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 269@(278@,9i)
goto_if_false @CAT2_22727
345@ = get_script_task_status 298@(278@,9i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 345@ == 7
goto_if_false @CAT2_22727
279@ = generate_random_int_in_range 4000 {max} 8000
set_lvar_int_to_lvar_int 269@(278@,9i) = TIMERA
add_int_lvar_to_int_lvar 269@(278@,9i) += 279@
if 
  is_char_ducking 298@(278@,9i)
goto_if_false @CAT2_22716
task_toggle_duck 298@(278@,9i) {state} False
goto @CAT2_22727

:CAT2_22716
task_toggle_duck 298@(278@,9i) {state} True

:CAT2_22727
if 
  307@(278@,9i) == 2
goto_if_false @CAT2_22805
if 
  not is_char_responding_to_event 298@(278@,9i) {event} Event.AcquaintancePedHate
goto_if_false @CAT2_22805
task_stay_in_same_place 298@(278@,9i) {state} False
task_kill_char_on_foot 298@(278@,9i) {target} $scplayer
307@(278@,9i) = 4

:CAT2_22805
if 
  307@(278@,9i) == 3
goto_if_false @CAT2_23084
243@ = get_char_heading 298@(278@,9i)
244@, 245@, 246@ = get_char_coordinates 298@(278@,9i)
249@ = sin 243@
250@ = cos 243@
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23084
if or
  locate_char_any_means_3d $scplayer {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_23084
task_stay_in_same_place 298@(278@,9i) {state} False
task_play_anim_non_interruptable 298@(278@,9i) {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
307@(278@,9i) = 0

:CAT2_23084
if 
  307@(278@,9i) == 5
goto_if_false @CAT2_23388
243@ = get_char_heading 298@(278@,9i)
244@, 245@, 246@ = get_char_coordinates 298@(278@,9i)
249@ = sin 243@
250@ = cos 243@
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23388
if or
  locate_char_any_means_3d $scplayer {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_23388
if 
  560@ == 0
goto_if_false @CAT2_23322
560@ = 27

:CAT2_23322
task_stay_in_same_place 298@(278@,9i) {state} False
task_play_anim_non_interruptable 298@(278@,9i) {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
307@(278@,9i) = 0

:CAT2_23388
278@ += 1
goto @CAT2_22527

:CAT2_23402
if 
  56@ == 8
goto_if_false @CAT2_28299
if 
  41@ > 40
goto_if_false @CAT2_28299
if 
  351@ == 0
goto_if_false @CAT2_23694
if 
  locate_char_any_means_3d $scplayer {x} 2130.689 {y} 149.1074 {z} 0.3268 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT2_23694
request_model 523
request_model 283
request_model 346
if and
  has_model_loaded 523
  has_model_loaded 283
  has_model_loaded 346
goto_if_false @CAT2_23694
351@ = 1
353@ = create_car 523 {x} 2048.156 {y} 195.1577 {z} 15.8884
switch_car_siren 353@ {state} True
set_car_heading 353@ {heading} 270.0
354@ = create_char_inside_car 353@ {pedType} PedType.Mission1 {modelId} 283
give_weapon_to_char 354@ {weaponType} WeaponType.Pistol {ammo} 9999
355@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 353@ {x} 2105.2361 {y} 179.1932 {z} 0.5812 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_car_temp_action -1 {vehicle} 353@ {actionId} TempAction.HandbrakeTurnRight {time} 1000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 355@
perform_sequence_task 354@ {sequence} 355@
clear_sequence_task 355@

:CAT2_23694
if 
  126@ == 0
goto_if_false @CAT2_23843
if and
  not is_car_dead 88@
  not is_car_dead 86@
  not is_char_dead $catalina
  not is_car_dead 146@
  not is_car_dead 147@
goto_if_false @CAT2_23843
if 
  is_char_in_car $catalina {vehicle} 86@
goto_if_false @CAT2_23843
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23790
set_char_can_be_knocked_off_bike $catalina {stayOnBike} 2

:CAT2_23790
126@ = 1
start_playback_recorded_car 86@ {path} 157
start_playback_recorded_car 146@ {path} 160
start_playback_recorded_car 147@ {path} 161
switch_car_siren 146@ {state} True
switch_car_siren 147@ {state} True
143@ = get_car_char_is_using $scplayer

:CAT2_23843
if 
  126@ > 0
goto_if_false @CAT2_24094
if 
  not is_car_dead 146@
goto_if_false @CAT2_23924
if 
  is_playback_going_on_for_car 146@
goto_if_false @CAT2_23924
356@ = get_driver_of_car 146@
if 
  356@ == -1
goto_if_false @CAT2_23924
stop_playback_recorded_car 146@

:CAT2_23924
if 
  not is_car_dead 147@
goto_if_false @CAT2_24094
if 
  is_playback_going_on_for_car 147@
goto_if_false @CAT2_24094
356@ = get_driver_of_car 147@
if 
  356@ == -1
goto_if_false @CAT2_23994
stop_playback_recorded_car 147@
goto @CAT2_24094

:CAT2_23994
if 
  358@ == 0
goto_if_false @CAT2_24094
$x, $y, $z = get_car_coordinates 147@
if 
  1570.0 > $x
goto_if_false @CAT2_24094
if 
  is_car_in_air_proper 147@
goto_if_false @CAT2_24094
if 
  not is_char_dead 356@
goto_if_false @CAT2_24094
task_leave_car_immediately 356@ {vehicle} 147@
358@ = 1

:CAT2_24094
if 
  126@ == 1
goto_if_false @CAT2_24867
if and
  not is_char_dead $catalina
  not is_car_dead 86@
goto_if_false @CAT2_24867
if 
  121@ == 0
goto_if_false @CAT2_24710
$x, $y, $z = get_char_coordinates $catalina
47@, 48@, 49@ = get_char_coordinates $scplayer
set_var_float_to_lvar_float $distance = 47@
sub_float_var_from_float_var $distance -= $x
if 
  0.0 > $distance
goto_if_false @CAT2_24226
$distance = 0.0

:CAT2_24226
53@ = 2000.0
div_float_lvar_by_float_var 53@ /= $distance
53@ /= 100.0
if 
  53@ > 1.5
goto_if_false @CAT2_24285
53@ = 1.5

:CAT2_24285
if 
  0.3 > 53@
goto_if_false @CAT2_24316
53@ = 0.3

:CAT2_24316
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 359@
  37 > 36@
goto_if_false @CAT2_24429
if and
  $distance > 10.0
  50.0 > $distance
goto_if_false @CAT2_24429
if 
  560@ == 0
goto_if_false @CAT2_24429
set_lvar_int_to_lvar_int 560@ = 36@
$wz1_health_bar = 1
set_lvar_int_to_lvar_int 359@ = TIMERA
359@ += 8000
36@ += 1

:CAT2_24429
if 
  not is_car_dead 146@
goto_if_false @CAT2_24471
if 
  is_car_in_air_proper 146@
goto_if_false @CAT2_24471
53@ = 1.0

:CAT2_24471
if 
  not is_car_dead 147@
goto_if_false @CAT2_24605
if 
  is_car_in_air_proper 147@
goto_if_false @CAT2_24513
53@ = 1.0

:CAT2_24513
if 
  not is_char_dead 136@
goto_if_false @CAT2_24605
if 
  not is_char_in_any_car 136@
goto_if_false @CAT2_24605
if 
  360@ == 0
goto_if_false @CAT2_24605
give_weapon_to_char 136@ {weaponType} WeaponType.Pistol {ammo} 9999
task_kill_char_on_foot 136@ {target} $scplayer
set_char_relationship 136@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 136@ {handleOrTemplate} 166@
360@ = 1

:CAT2_24605
if 
  not is_car_dead 86@
goto_if_false @CAT2_24647
if 
  is_car_in_air_proper 86@
goto_if_false @CAT2_24647
53@ = 1.0

:CAT2_24647
set_playback_speed 86@ {speed} 53@
if 
  not is_car_dead 146@
goto_if_false @CAT2_24679
set_playback_speed 146@ {speed} 53@

:CAT2_24679
if 
  not is_car_dead 147@
goto_if_false @CAT2_24703
set_playback_speed 147@ {speed} 53@

:CAT2_24703
goto @CAT2_24772

:CAT2_24710
set_playback_speed 86@ {speed} 1.0
if 
  not is_car_dead 146@
goto_if_false @CAT2_24746
set_playback_speed 146@ {speed} 1.0

:CAT2_24746
if 
  not is_car_dead 147@
goto_if_false @CAT2_24772
set_playback_speed 147@ {speed} 1.0

:CAT2_24772
if 
  is_char_in_area_2d $catalina {leftBottomX} 1304.957 {leftBottomY} 252.9172 {rightTopX} 1275.84 {rightTopY} 241.8114 {drawSphere} False
goto_if_false @CAT2_24867
126@ = 2
add_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_lvar_int_to_lvar_int 127@ = TIMERA
127@ += 900

:CAT2_24867
if 
  126@ == 2
goto_if_false @CAT2_25010
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 127@
goto_if_false @CAT2_25010
if and
  not is_car_dead 86@
  not is_char_dead $catalina
goto_if_false @CAT2_25010
set_lvar_int_to_lvar_int 361@ = TIMERA
361@ += 1000
128@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 86@
task_go_straight_to_coord -1 {x} 1286.969 {y} 247.1966 {z} 18.4062 {speed} MoveState.Run {time} -2
task_hands_up -1 {time} 40000
close_sequence_task 128@
perform_sequence_task $catalina {sequence} 128@
clear_sequence_task 128@
126@ = 3

:CAT2_25010
if 
  361@ > 0
goto_if_false @CAT2_25099
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 361@
goto_if_false @CAT2_25099
clear_prints 
print 'CAT2_16' {time} 6000 {flag} 1
40@ = add_blip_for_coord 867.6723 {y} -30.3543 {z} 62.1893
361@ = 0
126@ = 4

:CAT2_25099
if 
  126@ == 4
goto_if_false @CAT2_25670
if 
  not is_char_dead $catalina
goto_if_false @CAT2_25670
if or
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  is_char_shooting_in_area $scplayer {leftBottomX} 1389.021 {leftBottomY} 67.2039 {topRightX} 1232.6281 {topRightY} 407.097 {drawSphere} False
goto_if_false @CAT2_25670
mark_char_as_no_longer_needed 135@
mark_char_as_no_longer_needed 136@
mark_car_as_no_longer_needed 122@
mark_car_as_no_longer_needed 123@
mark_car_as_no_longer_needed 124@
if 
  does_char_exist 354@
goto_if_false @CAT2_25242
mark_char_as_no_longer_needed 354@

:CAT2_25242
if 
  not is_car_dead 353@
goto_if_false @CAT2_25289
if 
  not is_char_in_car $scplayer {vehicle} 353@
goto_if_false @CAT2_25282
mark_car_as_no_longer_needed 353@

:CAT2_25282
goto @CAT2_25294

:CAT2_25289
mark_car_as_no_longer_needed 147@

:CAT2_25294
if 
  not is_car_dead 146@
goto_if_false @CAT2_25341
if 
  not is_char_in_car $scplayer {vehicle} 146@
goto_if_false @CAT2_25334
mark_car_as_no_longer_needed 146@

:CAT2_25334
goto @CAT2_25346

:CAT2_25341
mark_car_as_no_longer_needed 146@

:CAT2_25346
if 
  not is_car_dead 147@
goto_if_false @CAT2_25393
if 
  not is_char_in_car $scplayer {vehicle} 147@
goto_if_false @CAT2_25386
mark_car_as_no_longer_needed 147@

:CAT2_25386
goto @CAT2_25398

:CAT2_25393
mark_car_as_no_longer_needed 147@

:CAT2_25398
if 
  not is_car_dead 88@
goto_if_false @CAT2_25445
if 
  not is_char_in_car $scplayer {vehicle} 88@
goto_if_false @CAT2_25438
mark_car_as_no_longer_needed 88@

:CAT2_25438
goto @CAT2_25450

:CAT2_25445
mark_car_as_no_longer_needed 88@

:CAT2_25450
if 
  not is_car_dead 86@
goto_if_false @CAT2_25497
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @CAT2_25490
mark_car_as_no_longer_needed 86@

:CAT2_25490
goto @CAT2_25502

:CAT2_25497
mark_car_as_no_longer_needed 86@

:CAT2_25502
362@ = 0

:CAT2_25509
if 
  8 > 362@
goto_if_false @CAT2_25605
if 
  not is_char_dead 129@(362@,8i)
goto_if_false @CAT2_25591
clear_char_tasks 129@(362@,8i)
mark_char_as_no_longer_needed 129@(362@,8i)
set_char_relationship 129@(362@,8i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 129@(362@,8i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special

:CAT2_25591
362@ += 1
goto @CAT2_25509

:CAT2_25605
35@ = 0
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_25651
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_group_decision_maker $Players_Group {handleOrTemplate} 37@

:CAT2_25651
364@ = 1
remove_blip 372@
126@ = 5

:CAT2_25670
if 
  126@ == 5
goto_if_false @CAT2_27481
if 
  365@ == 0
goto_if_false @CAT2_25803
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 144@
goto_if_false @CAT2_25803
362@ = 0

:CAT2_25732
if 
  8 > 362@
goto_if_false @CAT2_25796
if 
  not is_char_dead 129@(362@,8i)
goto_if_false @CAT2_25782
task_set_char_decision_maker 129@(362@,8i) {handleOrTemplate} 166@

:CAT2_25782
362@ += 1
goto @CAT2_25732

:CAT2_25796
365@ = 1

:CAT2_25803
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27481
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_27314
if 
  366@ == 0
goto_if_false @CAT2_27314
366@ = 1
562@ = 1
$wz1_health_bar = 1
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT2_26612
if 
  $cat_counter == 0
goto_if_false @CAT2_26250
603@ = 2
604@ = 1
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 2
610@ = 1
611@ = 1
612@ = 2
613@ = 1
set_lvar_text_label 454@s = 'CAT_DF'
set_lvar_text_label 456@s = 'CAT_DG'
set_lvar_text_label 458@s = 'CAT_DH'
set_lvar_text_label 460@s = 'CAT_DI'
set_lvar_text_label 462@s = 'CAT_DJ'
set_lvar_text_label 464@s = 'CAT_DK'
set_lvar_text_label 466@s = 'CAT_DL'
set_lvar_text_label 468@s = 'CAT_DM'
set_lvar_text_label 470@s = 'CAT_DN'
set_lvar_text_label 472@s = 'CAT_DO'
set_lvar_text_label 474@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 2300
set_lvar_int_to_constant 535@ = 2222
set_lvar_int_to_constant 536@ = 2223
set_lvar_int_to_constant 537@ = 2224
set_lvar_int_to_constant 538@ = 2225
set_lvar_int_to_constant 539@ = 2226
set_lvar_int_to_constant 540@ = 2301
set_lvar_int_to_constant 541@ = 2227
set_lvar_int_to_constant 542@ = 2228
set_lvar_int_to_constant 543@ = 2302
set_lvar_int_to_constant 544@ = 2229
560@ = 40
561@ = 11
goto @CAT2_26612

:CAT2_26250
603@ = 1
604@ = 2
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 1
610@ = 2
611@ = 1
612@ = 1
613@ = 2
614@ = 1
set_lvar_text_label 454@s = 'CAT_DA'
set_lvar_text_label 456@s = 'CAT_DF'
set_lvar_text_label 458@s = 'CAT_DG'
set_lvar_text_label 460@s = 'CAT_DH'
set_lvar_text_label 462@s = 'CAT_DI'
set_lvar_text_label 464@s = 'CAT_DJ'
set_lvar_text_label 466@s = 'CAT_DK'
set_lvar_text_label 468@s = 'CAT_DL'
set_lvar_text_label 470@s = 'CAT_DM'
set_lvar_text_label 472@s = 'CAT_DN'
set_lvar_text_label 474@s = 'CAT_DO'
set_lvar_text_label 476@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 2217
set_lvar_int_to_constant 535@ = 2300
set_lvar_int_to_constant 536@ = 2222
set_lvar_int_to_constant 537@ = 2223
set_lvar_int_to_constant 538@ = 2224
set_lvar_int_to_constant 539@ = 2225
set_lvar_int_to_constant 540@ = 2226
set_lvar_int_to_constant 541@ = 2301
set_lvar_int_to_constant 542@ = 2227
set_lvar_int_to_constant 543@ = 2228
set_lvar_int_to_constant 544@ = 2302
set_lvar_int_to_constant 545@ = 2229
560@ = 40
561@ = 12

:CAT2_26612
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT2_27050
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 2
608@ = 1
609@ = 2
610@ = 1
611@ = 2
612@ = 1
613@ = 1
614@ = 1
615@ = 1
616@ = 2
set_lvar_text_label 454@s = 'CAT_GA'
set_lvar_text_label 456@s = 'CAT_GB'
set_lvar_text_label 458@s = 'CAT_GC'
set_lvar_text_label 460@s = 'CAT_GD'
set_lvar_text_label 462@s = 'CAT_GE'
set_lvar_text_label 464@s = 'CAT_GF'
set_lvar_text_label 466@s = 'CAT_GG'
set_lvar_text_label 468@s = 'CAT_GH'
set_lvar_text_label 470@s = 'CAT_GI'
set_lvar_text_label 472@s = 'CAT_GJ'
set_lvar_text_label 474@s = 'CAT_GK'
set_lvar_text_label 476@s = 'CAT_GL'
set_lvar_text_label 478@s = 'CAT_GM'
set_lvar_text_label 480@s = 'CAT_GN'
set_lvar_int_to_constant 534@ = 2247
set_lvar_int_to_constant 535@ = 2313
set_lvar_int_to_constant 536@ = 2248
set_lvar_int_to_constant 537@ = 2314
set_lvar_int_to_constant 538@ = 2315
set_lvar_int_to_constant 539@ = 2249
set_lvar_int_to_constant 540@ = 2316
set_lvar_int_to_constant 541@ = 2250
set_lvar_int_to_constant 542@ = 2317
set_lvar_int_to_constant 543@ = 2251
set_lvar_int_to_constant 544@ = 2252
set_lvar_int_to_constant 545@ = 2253
set_lvar_int_to_constant 546@ = 2254
set_lvar_int_to_constant 547@ = 2318
560@ = 40
561@ = 14

:CAT2_27050
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT2_27314
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 1
608@ = 2
609@ = 1
610@ = 1
set_lvar_text_label 454@s = 'CAT_OA'
set_lvar_text_label 456@s = 'CAT_OB'
set_lvar_text_label 458@s = 'CAT_OC'
set_lvar_text_label 460@s = 'CAT_OD'
set_lvar_text_label 462@s = 'CAT_OE'
set_lvar_text_label 464@s = 'CAT_OF'
set_lvar_text_label 466@s = 'CAT_OG'
set_lvar_text_label 468@s = 'CAT_OH'
set_lvar_int_to_constant 534@ = 2281
set_lvar_int_to_constant 535@ = 2332
set_lvar_int_to_constant 536@ = 2282
set_lvar_int_to_constant 537@ = 2333
set_lvar_int_to_constant 538@ = 2283
set_lvar_int_to_constant 539@ = 2334
set_lvar_int_to_constant 540@ = 2284
set_lvar_int_to_constant 541@ = 2285
560@ = 40
561@ = 8

:CAT2_27314
if and
  locate_char_any_means_3d $scplayer {x} 863.6693 {y} -30.852 {z} 62.1615 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_3d $catalina {x} 863.6693 {y} -30.852 {z} 62.1615 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CAT2_27418
remove_blip 40@
set_player_control $player1 {state} False
56@ = 9

:CAT2_27418
if 
  35@ == 0
goto_if_false @CAT2_27481
if 
  not is_message_being_displayed 
goto_if_false @CAT2_27481
if 
  560@ == 0
goto_if_false @CAT2_27481
560@ = 37
35@ = 1

:CAT2_27481
if 
  145@ == 2
goto_if_false @CAT2_27681
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27681
if 
  not locate_char_any_means_3d $catalina {x} 1287.5 {y} 249.2 {z} 19.22 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @CAT2_27681
145@ = 3
if 
  not is_car_dead 122@
goto_if_false @CAT2_27591
mark_car_as_no_longer_needed 122@

:CAT2_27591
if 
  not is_car_dead 123@
goto_if_false @CAT2_27612
mark_car_as_no_longer_needed 123@

:CAT2_27612
if 
  not is_car_dead 124@
goto_if_false @CAT2_27633
mark_car_as_no_longer_needed 124@

:CAT2_27633
137@ = 0

:CAT2_27640
if 
  6 > 137@
goto_if_false @CAT2_27681
mark_char_as_no_longer_needed 129@(137@,8i)
137@ += 1
goto @CAT2_27640

:CAT2_27681
if 
  121@ == 0
goto_if_false @CAT2_27900
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27900
if 
  is_char_in_area_2d $catalina {leftBottomX} 1393.246 {leftBottomY} 233.1637 {rightTopX} 1325.073 {rightTopY} 190.1405 {drawSphere} False
goto_if_false @CAT2_27900
121@ = 1
if and
  not is_car_dead 122@
  not is_car_dead 123@
  not is_car_dead 124@
goto_if_false @CAT2_27900
start_playback_recorded_car 122@ {path} 156
start_playback_recorded_car 123@ {path} 158
start_playback_recorded_car 124@ {path} 159
freeze_car_position 122@ {state} False
freeze_car_position 123@ {state} False
freeze_car_position 124@ {state} False
switch_car_siren 122@ {state} True
switch_car_siren 123@ {state} True
switch_car_siren 124@ {state} True
set_lvar_int_to_lvar_int 138@ = TIMERA
138@ += 4000
set_lvar_int_to_lvar_int 139@ = TIMERA
139@ += 4000
set_lvar_int_to_lvar_int 140@ = TIMERA
140@ += 4000

:CAT2_27900
if 
  121@ == 1
goto_if_false @CAT2_28299
if and
  not is_car_dead 122@
  not is_car_dead 123@
  not is_car_dead 124@
  not is_char_dead $catalina
goto_if_false @CAT2_28299
137@ = 0

:CAT2_27956
if 
  6 > 137@
goto_if_false @CAT2_28299
141@ = 0
if 
  not is_char_dead 129@(137@,8i)
goto_if_false @CAT2_28285
if 
  is_char_sitting_in_any_car 129@(137@,8i)
goto_if_false @CAT2_28285
if 
  2 > 137@
goto_if_false @CAT2_28065
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 138@
goto_if_false @CAT2_28065
141@ = 1

:CAT2_28065
if and
  4 > 137@
  137@ > 1
goto_if_false @CAT2_28116
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@
goto_if_false @CAT2_28116
141@ = 1

:CAT2_28116
if 
  137@ > 3
goto_if_false @CAT2_28160
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 140@
goto_if_false @CAT2_28160
141@ = 1

:CAT2_28160
if 
  141@ == 1
goto_if_false @CAT2_28285
128@ = open_sequence_task 
if or
  137@ == 0
  137@ == 3
  137@ == 4
goto_if_false @CAT2_28221
task_toggle_duck -1 {state} True

:CAT2_28221
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 148@(137@,6f) {y} 154@(137@,6f) {z} 160@(137@,6f) {speed} MoveState.Run {time} -2
task_aim_gun_at_char -1 {target} $catalina {time} -2
close_sequence_task 128@
perform_sequence_task 129@(137@,8i) {sequence} 128@
clear_sequence_task 128@

:CAT2_28285
137@ += 1
goto @CAT2_27956

:CAT2_28299
if 
  56@ == 9
goto_if_false @CAT2_30045
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_28344
367@ = 3
559@ = 5

:CAT2_28344
if 
  367@ == 0
goto_if_false @CAT2_28404
alter_wanted_level $player1 {wantedLevel} 0
559@ = 5
555@ = 0
556@ = 0
$wz1_health_bar = 1
367@ = 1

:CAT2_28404
if 
  367@ == 1
goto_if_false @CAT2_29734
if 
  560@ == 0
goto_if_false @CAT2_29734
if 
  559@ == 1
goto_if_false @CAT2_29734
562@ = 0
if 
  $cat_counter == 0
goto_if_false @CAT2_28845
564@ = 1
565@ = 1
566@ = 1
567@ = 2
568@ = 2
569@ = 1
570@ = 1
571@ = 1
572@ = 2
573@ = 2
574@ = 2
575@ = 2
set_lvar_int_to_constant 495@ = 2230
set_lvar_int_to_constant 496@ = 2231
set_lvar_int_to_constant 497@ = 2232
set_lvar_int_to_constant 498@ = 2303
set_lvar_int_to_constant 499@ = 2304
set_lvar_int_to_constant 500@ = 2233
set_lvar_int_to_constant 501@ = 2234
set_lvar_int_to_constant 502@ = 2235
set_lvar_int_to_constant 503@ = 2305
set_lvar_int_to_constant 504@ = 2306
set_lvar_int_to_constant 505@ = 2307
set_lvar_int_to_constant 506@ = 2308
set_lvar_text_label 376@s = 'CAT_EA'
set_lvar_text_label 378@s = 'CAT_EB'
set_lvar_text_label 380@s = 'CAT_EC'
set_lvar_text_label 382@s = 'CAT_ED'
set_lvar_text_label 384@s = 'CAT_EE'
set_lvar_text_label 386@s = 'CAT_EF'
set_lvar_text_label 388@s = 'CAT_EG'
set_lvar_text_label 390@s = 'CAT_EH'
set_lvar_text_label 392@s = 'CAT_EI'
set_lvar_text_label 394@s = 'CAT_EJ'
set_lvar_text_label 396@s = 'CAT_EK'
set_lvar_text_label 398@s = 'CAT_EL'
560@ = 1
561@ = 12

:CAT2_28845
if 
  $cat_counter == 1
goto_if_false @CAT2_29051
564@ = 1
565@ = 2
566@ = 2
567@ = 2
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 2255
set_lvar_int_to_constant 496@ = 2319
set_lvar_int_to_constant 497@ = 2320
set_lvar_int_to_constant 498@ = 2321
set_lvar_int_to_constant 499@ = 2256
set_lvar_int_to_constant 500@ = 2257
set_lvar_text_label 376@s = 'CAT_HA'
set_lvar_text_label 378@s = 'CAT_HB'
set_lvar_text_label 380@s = 'CAT_HC'
set_lvar_text_label 382@s = 'CAT_HD'
set_lvar_text_label 384@s = 'CAT_HE'
set_lvar_text_label 386@s = 'CAT_HF'
560@ = 1
561@ = 6

:CAT2_29051
if 
  $cat_counter == 2
goto_if_false @CAT2_29170
564@ = 1
565@ = 1
566@ = 1
set_lvar_int_to_constant 495@ = 2273
set_lvar_int_to_constant 496@ = 2274
set_lvar_int_to_constant 497@ = 2275
set_lvar_text_label 376@s = 'CAT_MA'
set_lvar_text_label 378@s = 'CAT_MB'
set_lvar_text_label 380@s = 'CAT_MC'
560@ = 1
561@ = 3

:CAT2_29170
if 
  $cat_counter == 3
goto_if_false @CAT2_29376
564@ = 1
565@ = 2
566@ = 1
567@ = 1
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 2286
set_lvar_int_to_constant 496@ = 2335
set_lvar_int_to_constant 497@ = 2287
set_lvar_int_to_constant 498@ = 2288
set_lvar_int_to_constant 499@ = 2289
set_lvar_int_to_constant 500@ = 2290
set_lvar_text_label 376@s = 'CAT_PA'
set_lvar_text_label 378@s = 'CAT_PB'
set_lvar_text_label 380@s = 'CAT_PC'
set_lvar_text_label 382@s = 'CAT_PD'
set_lvar_text_label 384@s = 'CAT_PE'
set_lvar_text_label 386@s = 'CAT_PF'
560@ = 1
561@ = 6

:CAT2_29376
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29406
$x, $y, $z = get_char_coordinates $catalina

:CAT2_29406
clear_area $x {y} $y {z} $z {radius} 20.0 {clearParticles} True
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 854.5403 {y} -22.1425 {z} 64.3802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 855.2749 {y} -22.7951 {z} 64.1942 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_29550
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29550
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT2_29550
$car = store_car_char_is_in_no_save $scplayer
warp_char_into_car $catalina {vehicle} $car

:CAT2_29550
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29727
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT2_29654
set_char_coordinates $scplayer {x} 857.4263 {y} -29.5418 {z} 62.1858
set_char_coordinates $catalina {x} 858.4263 {y} -29.5418 {z} 62.1858
set_char_heading $catalina {heading} 161.446
set_char_heading $catalina {heading} 340.446
364@ = 0
remove_char_from_group $catalina

:CAT2_29654
368@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_29690
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT2_29690
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 99999
close_sequence_task 368@
perform_sequence_task $catalina {sequence} 368@
clear_sequence_task 368@

:CAT2_29727
367@ = 2

:CAT2_29734
if 
  367@ == 2
goto_if_false @CAT2_29929
if 
  560@ == 0
goto_if_false @CAT2_29929
if 
  559@ == 1
goto_if_false @CAT2_29929
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29906
369@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_29840
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT2_29840
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 369@
perform_sequence_task $catalina {sequence} 369@
clear_sequence_task 369@

:CAT2_29906
367@ = 3
set_lvar_int_to_lvar_int 370@ = TIMERA
370@ += 5000

:CAT2_29929
if 
  367@ == 3
goto_if_false @CAT2_30045
if 
  not is_char_dead $catalina
goto_if_false @CAT2_30045
$task_status = get_script_task_status $catalina {taskId} 1560
if or
  is_int_var_equal_to_constant $task_status == 7
  is_int_lvar_greater_than_int_lvar TIMERA > 370@
goto_if_false @CAT2_30045
set_camera_behind_player 
restore_camera_jumpcut 
if 
  does_char_exist $catalina
goto_if_false @CAT2_30025
delete_char $catalina

:CAT2_30025
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
goto @CAT2_30343

:CAT2_30045
goto @CAT2_1838

:CAT2_30052
alter_wanted_level_no_drop $player1 {wantedLevel} 3
report_mission_audio_event_at_position 2312.094 {y} -9.6433 {z} 28.679 {soundId} ScriptSound.SoundCat2SecurityAlarm
560@ = 8
561@ = 3
if 
  not is_char_dead $catalina
goto_if_false @CAT2_30117
task_turn_char_to_face_char $catalina {target} $scplayer

:CAT2_30117
return 

:CAT2_30119
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 2000
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_30341
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2303.9031 {leftBottomY} -18.2879 {leftBottomZ} 25.5416 {rightTopX} 2321.147 {rightTopY} 0.7716 {rightTopZ} 30.8122 {drawSphere} False
goto_if_false @CAT2_30341
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_30341
do_fade 800 {direction} Fade.Out

:CAT2_30227
if 
  get_fading_status 
goto_if_false @CAT2_30251
wait 0
goto @CAT2_30227

:CAT2_30251
wait 700
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2303.9031 {leftBottomY} -18.2879 {leftBottomZ} 25.5416 {rightTopX} 2321.147 {rightTopY} 0.7716 {rightTopZ} 30.8122 {drawSphere} False
goto_if_false @CAT2_30334
set_char_coordinates $scplayer {x} 2300.1121 {y} -16.5618 {z} 25.4844
set_char_heading $scplayer {heading} 90.0

:CAT2_30334
do_fade 600 {direction} Fade.In

:CAT2_30341
return 

:CAT2_30343
$cat_counter += 1
$cat_getaway_dialogue += 1
set_int_stat StatId.PassedCat2 {value} 1
168@ += 10000
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'CAT_2'
$flag_cat_mission2_passed = 1
if 
  $cat_otb_banter == 1
goto_if_false @CAT2_30455
$cat_otb_banter = 2

:CAT2_30455
if 
  $cat_liquor_banter == 1
goto_if_false @CAT2_30480
$cat_liquor_banter = 2

:CAT2_30480
return 

:CAT2_30482
clear_mission_audio MissionAudioSlot.Slot3
if 
  does_object_exist $advert_f1
goto_if_false @CAT2_30507
delete_object $advert_f1

:CAT2_30507
$advert_f1 = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $advert_f1
set_object_collision_damage_effect $advert_f1 {state} False
freeze_object_position $advert_f1 {state} True
if 
  does_object_exist $pc_door
goto_if_false @CAT2_30569
delete_object $pc_door

:CAT2_30569
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $pc_door
set_object_heading $pc_door {heading} 270.0
freeze_object_position $pc_door {state} True
set_object_collision_damage_effect $pc_door {state} False
if 
  does_object_exist $2661
goto_if_false @CAT2_30641
delete_object $2661

:CAT2_30641
$2661 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2661
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False
if 
  does_object_exist $2662
goto_if_false @CAT2_30703
delete_object $2662

:CAT2_30703
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_heading $2662 {heading} 180.0
set_object_collision_damage_effect $2662 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 76
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed #KMB_ATM1
mark_model_as_no_longer_needed #KMB_ATM2
mark_model_as_no_longer_needed #KMB_ATM3
mark_model_as_no_longer_needed #MTSAFE
mark_model_as_no_longer_needed #CR_DOOR_01
mark_model_as_no_longer_needed #CR_DOOR_03
remove_car_recording 156
remove_car_recording 157
remove_car_recording 123
remove_car_recording 124
remove_car_recording 158
remove_car_recording 159
remove_car_recording 160
remove_car_recording 161
remove_car_recording 116
remove_car_recording 117
remove_car_recording 118
remove_car_recording 119
remove_car_recording 123
remove_car_recording 124
remove_car_recording 160
remove_car_recording 161
remove_car_recording 156
remove_car_recording 157
remove_car_recording 158
remove_car_recording 159
remove_animation "SHOP"
remove_animation "MISC"
remove_animation "OTB"
remove_animation "GANGS"
remove_animation "ROB_BANK"
switch_roads_on 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
remove_blip 372@
remove_blip 40@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
mark_object_as_no_longer_needed 76@
mark_object_as_no_longer_needed 77@
mark_object_as_no_longer_needed 78@
if 
  not is_car_dead 85@
goto_if_false @CAT2_31093
mark_car_as_no_longer_needed 85@

:CAT2_31093
if 
  not is_car_dead 86@
goto_if_false @CAT2_31114
mark_car_as_no_longer_needed 86@

:CAT2_31114
if 
  not is_car_dead 88@
goto_if_false @CAT2_31135
mark_car_as_no_longer_needed 88@

:CAT2_31135
if 
  not is_car_dead 90@
goto_if_false @CAT2_31156
mark_car_as_no_longer_needed 90@

:CAT2_31156
if 
  not is_char_dead 92@
goto_if_false @CAT2_31184
freeze_char_position 92@ {state} False
mark_char_as_no_longer_needed 92@

:CAT2_31184
if 
  not is_char_dead 93@
goto_if_false @CAT2_31212
freeze_char_position 93@ {state} False
mark_char_as_no_longer_needed 93@

:CAT2_31212
if 
  not is_char_dead 87@
goto_if_false @CAT2_31240
freeze_char_position 87@ {state} False
mark_char_as_no_longer_needed 87@

:CAT2_31240
if 
  not is_char_dead 89@
goto_if_false @CAT2_31268
freeze_char_position 89@ {state} False
mark_char_as_no_longer_needed 89@

:CAT2_31268
if 
  not is_char_dead 91@
goto_if_false @CAT2_31296
freeze_char_position 91@ {state} False
mark_char_as_no_longer_needed 91@

:CAT2_31296
if 
  not is_char_dead 94@
goto_if_false @CAT2_31317
mark_char_as_no_longer_needed 94@

:CAT2_31317
remove_sound 82@
$onmission = 0
$timer_mobile_start = get_game_timer 
set_wanted_multiplier 1.0
mission_has_finished 
return 

:CAT2_31345
if 
  364@ == 1
goto_if_false @CAT2_31944
if 
  371@ == 1
goto_if_false @CAT2_31463
if 
  not is_char_dead $catalina
goto_if_false @CAT2_31463
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_31463
371@ = 0
372@ = add_blip_for_char $catalina
set_blip_as_friendly 372@ {state} True
change_blip_display 40@ {display} BlipDisplay.Neither
clear_prints 
print 'CAT2_14' {time} 4000 {flag} 1

:CAT2_31463
if 
  371@ == 0
goto_if_false @CAT2_31592
if 
  not is_char_dead $catalina
goto_if_false @CAT2_31592
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_31530
371@ = 1
goto @CAT2_31592

:CAT2_31530
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CAT2_31592
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
remove_blip 372@
change_blip_display 40@ {display} BlipDisplay.Both
371@ = 1

:CAT2_31592
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_31725
if 
  373@ == 0
goto_if_false @CAT2_31718
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
373@ = 1

:CAT2_31718
goto @CAT2_31944

:CAT2_31725
if 
  373@ == 1
goto_if_false @CAT2_31944
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.Damage {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.GunAimedAt {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.SeenCop {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
373@ = 0

:CAT2_31944
return 

:CAT2_31946
switch_start 559@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CAT2_34497 {caseNum1} 0 {caseLabel1} @CAT2_32009 {caseNum2} 1 {caseLabel2} @CAT2_33228 {caseNum3} 2 {caseLabel3} @CAT2_34095 {caseNum4} 3 {caseLabel4} @CAT2_34194 {caseNum5} 4 {caseLabel5} @CAT2_34270 {caseNum6} 5 {caseLabel6} @CAT2_34407 {caseNum7} -1 {caseLabel7} @CAT2_34497

:CAT2_32009
set_lvar_text_label 374@s = 'CAT4_BI'
set_lvar_text_label 376@s = 'CAT4_CA'
set_lvar_int_to_constant 495@ = 3000
set_lvar_text_label 378@s = 'CAT4_CB'
set_lvar_int_to_constant 496@ = 3001
set_lvar_text_label 380@s = 'CAT4_CD'
set_lvar_int_to_constant 497@ = 3036
set_lvar_text_label 382@s = 'CAT4_CE'
set_lvar_int_to_constant 498@ = 3002
set_lvar_text_label 384@s = 'CAT4_CF'
set_lvar_int_to_constant 499@ = 3003
set_lvar_text_label 386@s = 'CAT4_CG'
set_lvar_int_to_constant 500@ = 3004
set_lvar_text_label 388@s = 'CAT4_CH'
set_lvar_int_to_constant 501@ = 3037
set_lvar_text_label 390@s = 'CAT4_EA'
set_lvar_int_to_constant 502@ = 3051
set_lvar_text_label 392@s = 'CAT4_EC'
set_lvar_int_to_constant 503@ = 3005
set_lvar_text_label 394@s = 'CAT4_ED'
set_lvar_int_to_constant 504@ = 3006
set_lvar_text_label 396@s = 'CAT4_BA'
set_lvar_int_to_constant 505@ = 3067
set_lvar_text_label 398@s = 'CAT4_AB'
set_lvar_int_to_constant 506@ = 3058
set_lvar_text_label 400@s = 'CAT4_AC'
set_lvar_int_to_constant 507@ = 3059
set_lvar_text_label 402@s = 'CAT4_AD'
set_lvar_int_to_constant 508@ = 3060
set_lvar_text_label 404@s = 'CAT4_AE'
set_lvar_int_to_constant 509@ = 3061
set_lvar_text_label 406@s = 'CAT4_FB'
set_lvar_int_to_constant 510@ = 3008
set_lvar_text_label 408@s = 'CAT4_AF'
set_lvar_int_to_constant 511@ = 3062
set_lvar_text_label 410@s = 'CAT4_FD'
set_lvar_int_to_constant 512@ = 3010
set_lvar_text_label 412@s = 'CAT4_GB'
set_lvar_int_to_constant 513@ = 3012
set_lvar_text_label 414@s = 'CAT4_HH'
set_lvar_int_to_constant 514@ = 3020
set_lvar_text_label 416@s = 'CAT4_HF'
set_lvar_int_to_constant 515@ = 3018
set_lvar_text_label 418@s = 'CAT4_AG'
set_lvar_int_to_constant 516@ = 3063
set_lvar_text_label 420@s = 'CAT4_AH'
set_lvar_int_to_constant 517@ = 3064
set_lvar_text_label 422@s = 'CAT4_HI'
set_lvar_int_to_constant 518@ = 3021
set_lvar_text_label 424@s = 'CAT4_BF'
set_lvar_int_to_constant 519@ = 3072
set_lvar_text_label 426@s = 'CAT4_KF'
set_lvar_int_to_constant 520@ = 3030
set_lvar_text_label 428@s = 'CAT4_HB'
set_lvar_int_to_constant 521@ = 3014
set_lvar_text_label 430@s = 'CAT4_HG'
set_lvar_int_to_constant 522@ = 3019
set_lvar_text_label 432@s = 'CAT4_AJ'
set_lvar_int_to_constant 523@ = 3066
set_lvar_text_label 434@s = 'CAT4_JA'
set_lvar_int_to_constant 524@ = 3023
set_lvar_text_label 436@s = 'CAT4_JB'
set_lvar_int_to_constant 525@ = 3024
set_lvar_text_label 438@s = 'CAT4_KA'
set_lvar_int_to_constant 526@ = 3025
set_lvar_text_label 440@s = 'CAT4_KB'
set_lvar_int_to_constant 527@ = 3026
set_lvar_text_label 442@s = 'CAT4_KC'
set_lvar_int_to_constant 528@ = 3027
set_lvar_text_label 444@s = 'CAT4_KD'
set_lvar_int_to_constant 529@ = 3028
set_lvar_text_label 446@s = 'CAT4_KE'
set_lvar_int_to_constant 530@ = 3029
set_lvar_text_label 448@s = 'CAT3_EC'
set_lvar_int_to_constant 531@ = 2809
set_lvar_text_label 450@s = 'CAT_GJ'
set_lvar_int_to_constant 532@ = 2251
set_lvar_text_label 452@s = 'CAT4_BK'
set_lvar_int_to_constant 533@ = 3056
564@ = 1
565@ = 2
566@ = 2
567@ = 1
568@ = 1
569@ = 1
570@ = 2
571@ = 2
572@ = 1
573@ = 1
574@ = 3
575@ = 4
576@ = 3
577@ = 4
578@ = 3
579@ = 1
580@ = 0
581@ = 1
582@ = 1
583@ = 1
584@ = 5
585@ = 5
586@ = 1
587@ = 1
588@ = 6
589@ = 1
590@ = 1
591@ = 1
592@ = 6
593@ = 1
594@ = 1
595@ = 0
596@ = 0
597@ = 0
598@ = 0
599@ = 0
600@ = 1
601@ = 1
602@ = 0
set_lvar_int_to_var_int 624@ = $catalina
set_lvar_int_to_var_int 625@ = $scplayer
set_lvar_int_to_var_int 628@ = $scplayer
set_lvar_int_to_var_int 629@ = $scplayer
559@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 495@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 496@
555@ = 1
556@ = 2
goto @CAT2_34497

:CAT2_33228
if 
  560@ <> 0
goto_if_false @CAT2_34088
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 639@
goto_if_false @CAT2_34088
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CAT2_34088
if 
  is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_33317
557@ = 1
goto @CAT2_33380

:CAT2_33317
if 
  is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_33350
557@ = 2
goto @CAT2_33380

:CAT2_33350
557@ = 1
set_lvar_int_to_lvar_int 555@ = 560@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 494@(560@,60i)

:CAT2_33380
if 
  has_mission_audio_loaded 557@
goto_if_false @CAT2_34076
set_lvar_int_to_lvar_int 631@ = 563@(560@,60i)
set_lvar_int_to_lvar_int 632@ = 623@(631@,7i)
if 
  638@ <> 1
goto_if_false @CAT2_33608
635@ = 1
637@ = 0

:CAT2_33452
if 
  7 > 635@
goto_if_false @CAT2_33608
set_lvar_int_to_lvar_int 636@ = 623@(635@,7i)
if 
  636@ <> 0
goto_if_false @CAT2_33594
if 
  not is_int_lvar_equal_to_int_lvar 636@ == 632@
goto_if_false @CAT2_33594
if 
  not is_char_dead 632@
goto_if_false @CAT2_33594
if 
  not is_char_dead 636@
goto_if_false @CAT2_33594
if 
  locate_char_any_means_char_3d 632@ {target} 636@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT2_33594
637@ += 1

:CAT2_33594
635@ += 1
goto @CAT2_33452

:CAT2_33608
if or
  638@ == 1
  637@ > 0
  563@(560@,60i) == 0
goto_if_false @CAT2_34062
if 
  563@(560@,60i) <> 0
goto_if_false @CAT2_33794
if 
  not is_char_dead 632@
goto_if_false @CAT2_33794
if 
  $wz1_health_bar == 0
goto_if_false @CAT2_33708
attach_mission_audio_to_char 557@ {handle} 632@

:CAT2_33708
if 
  not is_char_talking 632@
goto_if_false @CAT2_33746
630@ = 1
start_char_facial_talk 632@ {duration} 15000
goto @CAT2_33753

:CAT2_33746
disable_char_speech 632@ {stopNow} False

:CAT2_33753
if 
  632@ <> 0
goto_if_false @CAT2_33794
if 
  not is_char_dead 632@
goto_if_false @CAT2_33794
shut_char_up_for_scripted_speech 632@ {state} True

:CAT2_33794
if 
  563@(560@,60i) == 0
goto_if_false @CAT2_33823
630@ = 1

:CAT2_33823
if 
  562@ == 1
goto_if_false @CAT2_33864
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT2_33864
630@ = 0

:CAT2_33864
if 
  630@ == 1
goto_if_false @CAT2_34055
play_mission_audio 557@
clear_prints 
print 374@(560@,60s) {time} 10000 {flag} 1
559@ += 1
630@ = 0
560@ += 1
set_lvar_int_to_lvar_int 558@ = 560@
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34055
if 
  557@ == 1
goto_if_false @CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_34010
load_mission_audio MissionAudioSlot.Slot2 {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 556@ = 560@

:CAT2_34010
goto @CAT2_34055

:CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_34055
load_mission_audio MissionAudioSlot.Slot1 {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 555@ = 560@

:CAT2_34055
goto @CAT2_34069

:CAT2_34062
559@ = 6

:CAT2_34069
goto @CAT2_34088

:CAT2_34076
load_mission_audio 557@ {audioId} 494@(560@,60i)

:CAT2_34088
goto @CAT2_34497

:CAT2_34095
if 
  has_mission_audio_finished 557@
goto_if_false @CAT2_34148
if 
  not is_char_dead 632@
goto_if_false @CAT2_34134
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34134
559@ += 1
goto @CAT2_34187

:CAT2_34148
if 
  does_char_exist 632@
goto_if_false @CAT2_34187
if 
  is_char_dead 632@
goto_if_false @CAT2_34187
559@ += 1

:CAT2_34187
goto @CAT2_34497

:CAT2_34194
if 
  not is_char_dead 632@
goto_if_false @CAT2_34217
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34217
clear_mission_audio 557@
554@(557@,3i) = 0
clear_prints 
if 
  not is_char_dead 632@
goto_if_false @CAT2_34256
enable_char_speech 632@

:CAT2_34256
559@ += 1
goto @CAT2_34497

:CAT2_34270
if 
  not is_char_dead 632@
goto_if_false @CAT2_34293
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34293
560@ += 1
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34346
load_mission_audio 557@ {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 554@(557@,3i) = 560@

:CAT2_34346
561@ -= 1
if 
  561@ <= 0
goto_if_false @CAT2_34385
560@ = 0
goto @CAT2_34393

:CAT2_34385
set_lvar_int_to_lvar_int 560@ = 558@

:CAT2_34393
559@ = 1
goto @CAT2_34497

:CAT2_34407
if 
  not is_char_dead 632@
goto_if_false @CAT2_34430
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34430
559@ = 1
560@ = 0
561@ = 0
clear_mission_audio 557@
554@(557@,3i) = 0
clear_prints 
if 
  not is_char_dead 632@
goto_if_false @CAT2_34490
enable_char_speech 632@

:CAT2_34490
goto @CAT2_34497

:CAT2_34497
return 

//-------------Mission 43---------------
// Originally: Tanker Commander

:CAT3
script_name 'CAT3'
gosub @CAT3_1435
if 
  has_deatharrest_been_executed 
goto_if_false @CAT3_38
gosub @CAT3_16983

:CAT3_38
gosub @CAT3_17185
terminate_this_script 

:CAT3_47
request_model 67
request_model 95
request_model 514
request_model 584
request_model 475
load_all_models_now 

:CAT3_72
if or
  not has_model_loaded 67
  not has_model_loaded 95
  not has_model_loaded 514
  not has_model_loaded 584
  not has_model_loaded 475
goto_if_false @CAT3_117
wait 0
goto @CAT3_72

:CAT3_117
return 

:CAT3_119
request_animation "MISC"
request_model 352
request_model 349
load_mission_audio MissionAudioSlot.Slot3 {audioId} 24000
load_special_character 1 {modelName} 'CAT'
load_all_models_now 

:CAT3_159
if or
  not has_animation_loaded "MISC"
  not has_model_loaded 352
  not has_model_loaded 349
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_special_character_loaded 1
goto_if_false @CAT3_207
wait 0
goto @CAT3_159

:CAT3_207
if 
  not does_char_exist $catalina
goto_if_false @CAT3_249
$catalina = create_char PedType.CivFemale {modelId} 290 {x} 53@ {y} 54@ {z} 55@
goto @CAT3_273

:CAT3_249
delete_char $catalina
$catalina = create_char PedType.CivFemale {modelId} 290 {x} 53@ {y} 54@ {z} 55@

:CAT3_273
if 
  not is_char_dead $catalina
goto_if_false @CAT3_299
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 30000

:CAT3_299
return 
309@ = add_blip_for_char $catalina
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
mark_model_as_no_longer_needed 348
return 

:CAT3_330
313@ = 664.21
315@ = -569.54
317@ = 15.37
319@ = 165.23
clear_area 313@ {y} 315@ {z} 317@ {radius} 3.0 {clearParticles} True
310@ = create_char PedType.CivMale {modelId} 67 {x} 313@ {y} 315@ {z} 317@
give_weapon_to_char 310@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 310@ {heading} 319@
set_char_health 310@ {health} 2000
set_char_can_be_shot_in_vehicle 310@ {state} False
set_char_proofs 310@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
314@ = 664.9634
316@ = -566.7849
318@ = 15.3359
320@ = 139.1057
clear_area 314@ {y} 316@ {z} 318@ {radius} 3.0 {clearParticles} True
311@ = create_char PedType.CivMale {modelId} 95 {x} 314@ {y} 316@ {z} 318@
set_char_heading 311@ {heading} 320@
set_char_health 311@ {health} 2000
set_char_can_be_shot_in_vehicle 311@ {state} False
set_char_proofs 311@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
return 
mark_model_as_no_longer_needed 67
return 

:CAT3_576
request_model 15

:CAT3_580
if 
  not has_model_loaded 15
goto_if_false @CAT3_606
wait 0
goto @CAT3_580

:CAT3_606
323@ = -78.4672
324@ = -1134.739
325@ = 0.0733
326@ = 326.2953
clear_area 323@ {y} 324@ {z} 325@ {radius} 3.0 {clearParticles} True
322@ = create_char PedType.CivMale {modelId} 15 {x} 323@ {y} 324@ {z} 325@
set_char_heading 322@ {heading} 326@
return 
244@ = create_char PedType.CivMale {modelId} 15 {x} 323@ {y} 324@ {z} 325@

:CAT3_710
329@ = 657.49
330@ = -585.13
331@ = 16.36
332@ = 170.66
clear_area 329@ {y} 330@ {z} 331@ {radius} 15.0 {clearParticles} True
327@ = create_car 514 {x} 329@ {y} 330@ {z} 331@
set_car_heading 327@ {heading} 332@
set_can_burst_car_tyres 327@ {state} False
set_car_proofs 327@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_car_flag 327@ {state} False
return 
308@ = create_car 403 {x} 329@ {y} 330@ {z} 331@

:CAT3_841
336@ = 667.49
337@ = -583.13
338@ = 16.36
339@ = 184.66
clear_area 336@ {y} 337@ {z} 338@ {radius} 15.0 {clearParticles} True
334@ = create_car 584 {x} 336@ {y} 337@ {z} 338@
set_car_heading 334@ {heading} 339@
set_car_health 334@ {health} 1250
set_car_proofs 334@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 334@ {state} False
set_load_collision_for_car_flag 334@ {state} False
return 
335@ = add_blip_for_car 334@

:CAT3_971
342@ = 667.54
343@ = -545.97
344@ = 15.09
345@ = 96.19
clear_area 342@ {y} 343@ {z} 344@ {radius} 3.0 {clearParticles} True
340@ = create_car 475 {x} 342@ {y} 343@ {z} 344@
set_car_heading 340@ {heading} 345@
set_car_cruise_speed 340@ {maxSpeed} 50.0
set_car_proofs 340@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 340@ {lockStatus} CarLock.Locked
set_can_burst_car_tyres 340@ {state} False
set_load_collision_for_car_flag 340@ {state} False
return 

:CAT3_1102
request_model 543

:CAT3_1107
if 
  not has_model_loaded 543
goto_if_false @CAT3_1134
wait 0
goto @CAT3_1107

:CAT3_1134
348@ = -87.9239
349@ = -1160.597
350@ = 1.1091
351@ = 170.4884
clear_area 348@ {y} 349@ {z} 350@ {radius} 3.0 {clearParticles} True
346@ = create_car 543 {x} 348@ {y} 349@ {z} 350@
set_car_heading 346@ {heading} 351@
set_car_proofs 346@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 

:CAT3_1234
request_model 468
request_car_recording 189

:CAT3_1244
if or
  not has_model_loaded 468
  not has_car_recording_been_loaded 189
goto_if_false @CAT3_1276
wait 0
goto @CAT3_1244

:CAT3_1276
353@ = -88.1347
354@ = -1127.397
355@ = 0.0847
356@ = 348.4666
clear_area 353@ {y} 354@ {z} 355@ {radius} 3.0 {clearParticles} True
352@ = create_car 468 {x} 353@ {y} 354@ {z} 355@
set_car_heading 352@ {heading} 356@
if 
  not is_char_dead $catalina
goto_if_false @CAT3_1433
warp_char_into_car $catalina {vehicle} 352@
task_look_at_char $catalina {target} $scplayer {time} -1
set_char_coordinates $scplayer {x} -86.3344 {y} -1127.316 {z} 0.0781
set_char_heading $scplayer {heading} 6.874
task_look_at_char $scplayer {target} $catalina {time} -1

:CAT3_1433
return 

:CAT3_1435
$onmission = 1
wait 0
load_mission_text 'CAT'
34@ = 5000
35@ = 0
36@ = 1
37@ = 0
38@ = 0
39@ = 0
307@ = 1500
40@ = 0
301@ = 0
305@ = 1
303@ = 1
304@ = 2
302@ = 0
set_lvar_text_label 134@s = 'CAT3_AA'
set_lvar_text_label 136@s = 'CAT3_AB'
set_lvar_text_label 138@s = 'CAT3_AC'
set_lvar_text_label 140@s = 'CAT3_AD'
set_lvar_text_label 142@s = 'CAT3_AE'
set_lvar_text_label 144@s = 'CAT3_AF'
set_lvar_text_label 146@s = 'CAT3_AG'
set_lvar_text_label 148@s = 'CAT3_BA'
set_lvar_text_label 150@s = 'CAT3_BB'
set_lvar_text_label 152@s = 'CAT3_BC'
set_lvar_text_label 154@s = 'CAT3_BD'
set_lvar_text_label 156@s = 'CAT3_CA'
set_lvar_text_label 158@s = 'CAT3_CB'
set_lvar_text_label 160@s = 'CAT3_CC'
set_lvar_text_label 162@s = 'CAT3_CD'
set_lvar_text_label 164@s = 'CAT3_DA'
set_lvar_text_label 166@s = 'CAT3_DB'
set_lvar_text_label 168@s = 'CAT3_DC'
set_lvar_text_label 170@s = 'CAT3_DD'
set_lvar_text_label 172@s = 'CAT3_EA'
set_lvar_text_label 174@s = 'CAT3_EB'
set_lvar_text_label 176@s = 'CAT3_EC'
set_lvar_text_label 178@s = 'CAT3_ED'
set_lvar_text_label 180@s = 'CAT3_EE'
set_lvar_text_label 182@s = 'CAT3_EF'
set_lvar_text_label 184@s = 'CAT3_EG'
set_lvar_text_label 186@s = 'CAT3_FA'
set_lvar_text_label 188@s = 'CAT3_FB'
set_lvar_text_label 190@s = 'CAT3_FC'
set_lvar_text_label 192@s = 'CAT3_FD'
set_lvar_text_label 194@s = 'CAT3_FE'
set_lvar_text_label 196@s = 'CAT3_FF'
set_lvar_text_label 198@s = 'CAT3_GA'
set_lvar_text_label 200@s = 'CAT3_GB'
set_lvar_text_label 202@s = 'CAT3_GC'
set_lvar_text_label 204@s = 'CAT3_GD'
set_lvar_text_label 206@s = 'CAT3_GE'
set_lvar_text_label 208@s = 'CAT3_GF'
set_lvar_text_label 210@s = 'CAT3_GG'
set_lvar_text_label 212@s = 'CAT3_HA'
set_lvar_text_label 214@s = 'CAT3_HB'
set_lvar_text_label 216@s = 'CAT3_HC'
set_lvar_text_label 218@s = 'CAT3_JA'
set_lvar_text_label 220@s = 'CAT3_JB'
set_lvar_text_label 222@s = 'CAT3_JC'
set_lvar_text_label 224@s = 'CAT3_JD'
set_lvar_text_label 226@s = 'CAT3_JE'
set_lvar_text_label 228@s = 'CAT3_JF'
set_lvar_text_label 230@s = 'CAT3_JG'
set_lvar_text_label 232@s = 'CAT3_JH'
set_lvar_text_label 234@s = 'CAT3_JJ'
set_lvar_text_label 236@s = 'CAT3_JK'
set_lvar_text_label 238@s = 'CATX_UJ'
set_lvar_text_label 240@s = 'CATX_UK'
set_lvar_text_label 242@s = 'CAT_PF'
set_lvar_int_to_constant 246@ = 2800
set_lvar_int_to_constant 247@ = 2821
set_lvar_int_to_constant 248@ = 2822
set_lvar_int_to_constant 249@ = 2823
set_lvar_int_to_constant 250@ = 2801
set_lvar_int_to_constant 251@ = 2802
set_lvar_int_to_constant 252@ = 2824
set_lvar_int_to_constant 253@ = 2803
set_lvar_int_to_constant 254@ = 2820
set_lvar_int_to_constant 255@ = 2841
set_lvar_int_to_constant 256@ = 2804
set_lvar_int_to_constant 257@ = 2805
set_lvar_int_to_constant 258@ = 2825
set_lvar_int_to_constant 259@ = 2826
set_lvar_int_to_constant 260@ = 2827
set_lvar_int_to_constant 261@ = 2806
set_lvar_int_to_constant 262@ = 2842
set_lvar_int_to_constant 263@ = 2843
set_lvar_int_to_constant 264@ = 2844
set_lvar_int_to_constant 265@ = 2807
set_lvar_int_to_constant 266@ = 2808
set_lvar_int_to_constant 267@ = 2809
set_lvar_int_to_constant 268@ = 2810
set_lvar_int_to_constant 269@ = 2811
set_lvar_int_to_constant 270@ = 2812
set_lvar_int_to_constant 271@ = 2813
set_lvar_int_to_constant 272@ = 2828
set_lvar_int_to_constant 273@ = 2829
set_lvar_int_to_constant 274@ = 2830
set_lvar_int_to_constant 275@ = 2831
set_lvar_int_to_constant 276@ = 2832
set_lvar_int_to_constant 277@ = 2833
set_lvar_int_to_constant 278@ = 2834
set_lvar_int_to_constant 279@ = 2835
set_lvar_int_to_constant 280@ = 2836
set_lvar_int_to_constant 281@ = 2837
set_lvar_int_to_constant 282@ = 2838
set_lvar_int_to_constant 283@ = 2839
set_lvar_int_to_constant 284@ = 2840
set_lvar_int_to_constant 285@ = 2814
set_lvar_int_to_constant 286@ = 2815
set_lvar_int_to_constant 287@ = 2816
set_lvar_int_to_constant 288@ = 2817
set_lvar_int_to_constant 289@ = 2845
set_lvar_int_to_constant 290@ = 2818
set_lvar_int_to_constant 291@ = 2846
set_lvar_int_to_constant 292@ = 2819
set_lvar_int_to_constant 293@ = 2847
set_lvar_int_to_constant 294@ = 2848
set_lvar_int_to_constant 295@ = 2849
set_lvar_int_to_constant 296@ = 2850
set_lvar_int_to_constant 297@ = 2851
set_lvar_int_to_constant 298@ = 12697
set_lvar_int_to_constant 299@ = 12698
set_lvar_int_to_constant 300@ = 2290
50@ = -43.7625
51@ = -1141.8051
52@ = 0.0781
53@ = 660.3846
54@ = -571.9213
55@ = 15.3465
65@ = 659.5142
75@ = -571.65
85@ = 17.0104
95@ = 660.4576
105@ = -571.3304
115@ = 16.9229
66@ = 661.7569
76@ = -570.6351
86@ = 17.1184
96@ = 662.4741
106@ = -569.9394
116@ = 17.0783
67@ = 658.7903
77@ = -568.8011
87@ = 17.1657
97@ = 659.5721
107@ = -569.3959
117@ = 16.9783
68@ = 659.4771
78@ = -568.5789
88@ = 17.0879
98@ = 660.1776
108@ = -569.2756
118@ = 16.9335
69@ = 655.2368
79@ = -601.8433
89@ = 16.4703
99@ = 654.2847
109@ = -601.6681
119@ = 16.2199
70@ = -73.4246
80@ = -1132.7159
90@ = 1.4933
100@ = -74.3653
110@ = -1133.049
120@ = 1.5579
71@ = -80.0272
81@ = -1133.954
91@ = 1.2517
101@ = -79.0308
111@ = -1133.9561
121@ = 1.3367
72@ = -76.5131
82@ = -1135.434
92@ = 1.6855
102@ = -75.8151
112@ = -1134.719
122@ = 1.711
321@ = 35.0
gosub @CAT3_119
gosub @CAT3_47
gosub @CAT3_330
gosub @CAT3_710
gosub @CAT3_841
gosub @CAT3_971
set_player_group_recruitment $player1 {state} False
load_scene_in_direction 53@ {y} 54@ {z} 55@ {heading} 295.0
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT3_3429
warp_char_from_car_to_coord $scplayer {x} 659.6722 {y} -569.272 {z} 15.3465
goto @CAT3_3449

:CAT3_3429
set_char_coordinates $scplayer {x} 659.6722 {y} -569.272 {z} 15.3465

:CAT3_3449
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_3642
if 
  is_char_in_any_car $catalina
goto_if_false @CAT3_3507
warp_char_from_car_to_coord $catalina {x} 53@ {y} 54@ {z} 55@
goto @CAT3_3521

:CAT3_3507
set_char_coordinates $catalina {x} 53@ {y} 54@ {z} 55@

:CAT3_3521
task_turn_char_to_face_char $scplayer {target} 310@
task_turn_char_to_face_char 310@ {target} $catalina
set_char_heading $scplayer {heading} 177.1965
hide_char_weapon_for_scripted_cutscene 310@ {state} True
set_fixed_camera_position 65@ {y} 75@ {z} 85@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 95@ {y} 105@ {z} 115@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
remove_char_from_group $catalina
37@ = 1
task_aim_gun_at_char $catalina {target} 310@ {time} 20000
task_stay_in_same_place $catalina {state} True
task_stay_in_same_place 310@ {state} True
301@ = 1

:CAT3_3642
set_fading_colour 0 {g} 0 {b} 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
set_car_density_multiplier 0.5

:CAT3_3679
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_4124
if 
  302@ == 0
goto_if_false @CAT3_3747
if 
  has_mission_audio_loaded 304@
goto_if_false @CAT3_3740
clear_mission_audio 304@

:CAT3_3740
302@ = 1

:CAT3_3747
if 
  302@ == 1
goto_if_false @CAT3_3791
load_mission_audio 303@ {audioId} 245@(301@,56i)
gosub @CAT3_17387
302@ = 2

:CAT3_3791
if 
  302@ == 2
goto_if_false @CAT3_3900
if 
  has_mission_audio_loaded 303@
goto_if_false @CAT3_3900
if 
  244@ <> 0
goto_if_false @CAT3_3874
if 
  not is_char_dead 244@
goto_if_false @CAT3_3874
start_char_facial_talk 244@ {duration} 10000
shut_char_up_for_scripted_speech 244@ {state} True

:CAT3_3874
play_mission_audio 303@
print_now 132@(301@,56s) {time} 10000 {flag} 1
302@ = 3

:CAT3_3900
if 
  302@ == 3
goto_if_false @CAT3_4124
if 
  has_mission_audio_finished 303@
goto_if_false @CAT3_4063
clear_this_print 132@(301@,56s)
if 
  244@ <> 0
goto_if_false @CAT3_3989
if 
  not is_char_dead 244@
goto_if_false @CAT3_3989
stop_char_facial_talk 244@
shut_char_up_for_scripted_speech 244@ {state} False

:CAT3_3989
if 
  303@ == 1
goto_if_false @CAT3_4028
303@ = 2
304@ = 1
goto @CAT3_4042

:CAT3_4028
303@ = 1
304@ = 2

:CAT3_4042
301@ = 0
302@ = 0
goto @CAT3_4124

:CAT3_4063
if 
  not has_mission_audio_loaded 304@
goto_if_false @CAT3_4124
if 
  60 > 301@
goto_if_false @CAT3_4124
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
load_mission_audio 304@ {audioId} 245@(305@,56i)

:CAT3_4124
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT3_4146
goto @CAT3_17001

:CAT3_4146
if 
  35@ == 0
goto_if_false @CAT3_5682
if 
  6 > 37@
goto_if_false @CAT3_4214
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_4214
44@ -= 10000
37@ = 7

:CAT3_4214
if 
  37@ == 1
goto_if_false @CAT3_4388
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4388
if 
  302@ == 0
goto_if_false @CAT3_4388
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_4388
45@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 662.828 {y} -570.1751 {z} 15.3359 {speed} MoveState.Walk {time} -2
task_look_at_char -1 {target} $catalina {time} 30000
task_turn_char_to_face_char -1 {target} $catalina
close_sequence_task 45@
perform_sequence_task 310@ {sequence} 45@
44@ = get_game_timer 
301@ = 2
37@ = 2

:CAT3_4388
if 
  37@ == 2
goto_if_false @CAT3_4656
if 
  not is_char_dead 310@
goto_if_false @CAT3_4519
if 
  not is_char_playing_anim 310@ {animationName} "BNG_WNDW_02"
goto_if_false @CAT3_4519
312@ = get_script_task_status 310@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_4519
task_play_anim 310@ {animationName} "BNG_WNDW_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT3_4519
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4656
if 
  302@ == 0
goto_if_false @CAT3_4656
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_4656
set_fixed_camera_position 66@ {y} 76@ {z} 86@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 96@ {y} 106@ {z} 116@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
301@ = 3
37@ = 3

:CAT3_4656
if 
  37@ == 3
goto_if_false @CAT3_4782
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4782
if 
  302@ == 0
goto_if_false @CAT3_4782
if and
  not is_char_dead $catalina
  not is_char_dead 310@
  not is_char_dead 311@
goto_if_false @CAT3_4782
task_shake_fist 311@
44@ = get_game_timer 
301@ = 4
37@ = 4

:CAT3_4782
if 
  37@ == 4
goto_if_false @CAT3_4932
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4932
if 
  302@ == 0
goto_if_false @CAT3_4932
if 
  not is_car_dead 327@
goto_if_false @CAT3_4932
set_fixed_camera_position 67@ {y} 77@ {z} 87@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 97@ {y} 107@ {z} 117@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
301@ = 5
37@ = 5

:CAT3_4932
if 
  37@ == 5
goto_if_false @CAT3_5159
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5159
if 
  302@ == 0
goto_if_false @CAT3_5159
if and
  not is_car_dead 327@
  not is_char_dead $catalina
  not is_char_dead $scplayer
goto_if_false @CAT3_5159
point_camera_at_car 327@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
task_look_at_char $scplayer {target} $catalina {time} 8000
46@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 1000
task_go_straight_to_coord -1 {x} 657.7125 {y} -576.2346 {z} 15.3359 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 654.6555 {y} -585.0117 {z} 15.3359 {speed} MoveState.Run {time} -1
task_enter_car_as_passenger -1 {vehicle} 327@ {time} 30000 {seat} SeatId.BikeRear
close_sequence_task 46@
perform_sequence_task $catalina {sequence} 46@
301@ = 6
37@ = 6

:CAT3_5159
if 
  37@ == 6
goto_if_false @CAT3_5338
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5338
if 
  302@ == 0
goto_if_false @CAT3_5338
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_5338
set_fixed_camera_position 68@ {y} 78@ {z} 88@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 98@ {y} 108@ {z} 118@ {switchStyle} SwitchType.JumpCut
task_follow_path_nodes_to_coord $scplayer {x} 659.8791 {y} -573.4293 {z} 15.3465 {speed} MoveState.Walk {time} -2
301@ = 7
44@ = get_game_timer 
37@ = 7

:CAT3_5338
if 
  37@ == 7
goto_if_false @CAT3_5682
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2500
goto_if_false @CAT3_5682
if 
  302@ == 0
goto_if_false @CAT3_5682
if and
  not is_char_dead $catalina
  not is_char_dead 310@
  not is_car_dead 327@
goto_if_false @CAT3_5682
do_fade 500 {direction} Fade.Out

:CAT3_5447
if 
  get_fading_status 
goto_if_false @CAT3_5471
wait 0
goto @CAT3_5447

:CAT3_5471
if 
  not is_car_dead 327@
goto_if_false @CAT3_5573
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True
if 
  not is_char_dead $catalina
goto_if_false @CAT3_5550
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_5550
task_enter_car_as_passenger $catalina {vehicle} 327@ {time} 30000 {seat} SeatId.BikeRear

:CAT3_5550
if 
  not is_car_dead 334@
goto_if_false @CAT3_5573
freeze_car_position 334@ {state} True

:CAT3_5573
remove_animation "MISC"
clear_area $509 {y} $515 {z} $521 {radius} 200.0 {clearParticles} True
set_char_heading $scplayer {heading} 332@
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In

:CAT3_5651
if 
  get_fading_status 
goto_if_false @CAT3_5675
wait 0
goto @CAT3_5651

:CAT3_5675
35@ = 1

:CAT3_5682
if 
  35@ == 1
goto_if_false @CAT3_5830
if and
  not is_car_dead 327@
  not is_char_dead $scplayer
  not is_car_dead 334@
goto_if_false @CAT3_5830
print_now 'CAT3_02' {time} 5000 {flag} 1
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_5830
remove_blip 328@
print_help 'CAT3_03'
request_animation "CAR_CHAT"

:CAT3_5789
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @CAT3_5823
wait 0
goto @CAT3_5789

:CAT3_5823
35@ = 2

:CAT3_5830
if 
  35@ == 2
goto_if_false @CAT3_6651
if and
  not is_car_dead 327@
  not is_car_dead 334@
  not is_char_dead $catalina
goto_if_false @CAT3_6651
if 
  locate_char_in_car_car_3d $scplayer {vehicle} 334@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT3_5951
if 
  38@ == 0
goto_if_false @CAT3_5951
print_help 'CAT3_12'
44@ = get_game_timer 
38@ = 1

:CAT3_5951
if 
  38@ == 1
goto_if_false @CAT3_6027
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 8000
goto_if_false @CAT3_6027
print_help 'CAT3_13'
38@ = 2

:CAT3_6027
if 
  39@ == 0
goto_if_false @CAT3_6110
if 
  is_trailer_attached_to_cab 334@ {cab} 327@
goto_if_false @CAT3_6110
if 
  not is_car_dead 334@
goto_if_false @CAT3_6087
freeze_car_position 334@ {state} False

:CAT3_6087
play_mission_audio MissionAudioSlot.Slot3
44@ = get_game_timer 
remove_blip 335@
clear_help 
39@ = 1

:CAT3_6110
if 
  39@ == 1
goto_if_false @CAT3_6651
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1500
goto_if_false @CAT3_6651
clear_prints 
lock_car_doors 327@ {lockStatus} CarLock.LockedPlayerInside
do_fade 150 {direction} Fade.Out

:CAT3_6184
if 
  get_fading_status 
goto_if_false @CAT3_6208
wait 0
goto @CAT3_6184

:CAT3_6208
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CAT3_6240
clear_mission_audio MissionAudioSlot.Slot3

:CAT3_6240
if 
  not is_car_dead 327@
goto_if_false @CAT3_6263
lock_car_doors 327@ {lockStatus} CarLock.Unlocked

:CAT3_6263
if and
  not is_char_dead $catalina
  not is_car_dead 327@
goto_if_false @CAT3_6410
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_6370
remove_char_from_group $catalina
remove_blip 309@
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $cat1_pickups_collected
display_onscreen_counter_with_string $cat1_pickups_collected {display} CounterDisplay.Bar {text} 'CAT3_11'
warp_char_into_car_as_passenger $catalina {handle} 327@ {seat} SeatId.BikeRear
goto @CAT3_6410

:CAT3_6370
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $cat1_pickups_collected
display_onscreen_counter_with_string $cat1_pickups_collected {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_6410
if 
  not is_car_dead 334@
goto_if_false @CAT3_6441
set_car_proofs 334@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT3_6441
request_car_recording 188

:CAT3_6446
if 
  not has_car_recording_been_loaded 188
goto_if_false @CAT3_6473
wait 0
goto @CAT3_6446

:CAT3_6473
if and
  not is_car_dead 340@
  not is_char_dead 310@
  not is_char_dead 311@
  not is_char_dead $catalina
  not is_car_dead 327@
goto_if_false @CAT3_6651
clear_area 658.6589 {y} -567.5756 {z} 15.3465 {radius} 25.0 {clearParticles} True
set_car_coordinates 340@ {x} 658.6589 {y} -567.5756 {z} 15.3465
set_car_heading 340@ {heading} 180.0
warp_char_into_car 311@ {vehicle} 340@
warp_char_into_car_as_passenger 310@ {handle} 340@ {seat} SeatId.BikeRear
set_fixed_camera_position 651.9285 {y} -575.1257 {z} 16.2766 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 652.3163 {y} -576.027 {z} 16.4698 {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
37@ = 1
35@ = 3

:CAT3_6651
if 
  35@ == 3
goto_if_false @CAT3_7803
if and
  not is_char_dead 310@
  not is_char_dead 311@
  not is_car_dead 340@
  not is_car_dead 327@
goto_if_false @CAT3_7803
if 
  4 > 37@
goto_if_false @CAT3_6790
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_6790
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_6790
44@ -= 5000
37@ = 4

:CAT3_6790
if 
  37@ == 1
goto_if_false @CAT3_6916
if 
  not is_car_dead 340@
goto_if_false @CAT3_6916
do_fade 150 {direction} Fade.In

:CAT3_6831
if 
  get_fading_status 
goto_if_false @CAT3_6855
wait 0
goto @CAT3_6831

:CAT3_6855
if 
  not is_car_dead 340@
goto_if_false @CAT3_6879
start_playback_recorded_car 340@ {path} 188

:CAT3_6879
if 
  302@ == 0
goto_if_false @CAT3_6904
301@ = 13

:CAT3_6904
44@ = get_game_timer 
37@ = 2

:CAT3_6916
if 
  37@ == 2
goto_if_false @CAT3_7388
if 
  not is_car_dead 340@
goto_if_false @CAT3_7149
if 
  is_playback_going_on_for_car 340@
goto_if_false @CAT3_7149
62@, 63@, 64@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.0 {yOffset} 5.5 {zOffset} 0.0
set_lvar_float_to_lvar_float 56@ = 62@
56@ -= 0.25
set_lvar_float_to_lvar_float 57@ = 63@
57@ -= 0.25
set_lvar_float_to_lvar_float 58@ = 64@
58@ -= 0.25
set_lvar_float_to_lvar_float 59@ = 62@
59@ += 0.25
set_lvar_float_to_lvar_float 60@ = 63@
60@ += 0.25
set_lvar_float_to_lvar_float 61@ = 64@
61@ += 0.25
if 
  is_area_occupied 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CAT3_7149
stop_playback_recorded_car 340@

:CAT3_7149
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7388
if 
  302@ == 0
goto_if_false @CAT3_7388
if 
  not is_char_dead 310@
goto_if_false @CAT3_7265
task_play_anim 310@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT3_7265
69@, 79@, 89@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.9 {yOffset} 1.0 {zOffset} 0.5
99@, 109@, 119@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.15 {yOffset} 0.0 {zOffset} 0.3
set_fixed_camera_position 69@ {y} 79@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 99@ {y} 109@ {z} 119@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
301@ = 14
44@ = get_game_timer 
37@ = 3

:CAT3_7388
if 
  37@ == 3
goto_if_false @CAT3_7526
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7526
if 
  302@ == 0
goto_if_false @CAT3_7526
301@ = 15
task_play_anim 311@ {animationName} "CAR_SC4_BL" {animationFile} "CAR_CHAT" {blendSpeed} 2.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3500
44@ = get_game_timer 
37@ = 4

:CAT3_7526
if 
  37@ == 4
goto_if_false @CAT3_7803
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_7803
clear_prints 
do_fade 150 {direction} Fade.In

:CAT3_7599
if 
  get_fading_status 
goto_if_false @CAT3_7623
wait 0
goto @CAT3_7599

:CAT3_7623
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
if and
  not is_car_dead 340@
  not is_char_dead 310@
goto_if_false @CAT3_7803
if 
  is_char_in_car 310@ {vehicle} 340@
goto_if_false @CAT3_7803
if 
  not is_car_dead 334@
goto_if_false @CAT3_7699
freeze_car_position 334@ {state} False

:CAT3_7699
set_car_proofs 340@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
remove_animation "CAR_CHAT"
add_stuck_car_check_with_warp 340@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
341@ = add_blip_for_car_old 340@ {color} BlipColor.Red {display} BlipDisplay.MarkerOnly
128@ = 4
131@ = get_game_timer 
if 
  302@ == 0
goto_if_false @CAT3_7796
301@ = 12

:CAT3_7796
35@ = 4

:CAT3_7803
if 
  35@ == 4
goto_if_false @CAT3_12148
if and
  not is_car_dead 327@
  not is_car_dead 334@
  not is_char_dead $catalina
goto_if_false @CAT3_12148
if 
  302@ == 0
goto_if_false @CAT3_7924
if 
  301@ == 0
goto_if_false @CAT3_7924
if 
  37@ == 4
goto_if_false @CAT3_7924
print 'CAT3_05' {time} 5000 {flag} 1
37@ = -4

:CAT3_7924
$cat1_pickups_collected = get_car_health 334@
if 
  $cat1_pickups_collected > 250
goto_if_false @CAT3_7980
$cat1_pickups_collected -= 250
$cat1_pickups_collected /= 100
$cat1_pickups_collected *= 10
goto @CAT3_7985

:CAT3_7980
clear_onscreen_counter $cat1_pickups_collected

:CAT3_7985
if 
  36@ == 1
goto_if_false @CAT3_10209
if and
  not is_car_dead 340@
  not is_char_dead 310@
  not is_char_dead 311@
goto_if_false @CAT3_10202
if 
  128@ == 0
goto_if_false @CAT3_8144
125@ = generate_random_int_in_range 0 {max} 6
131@ = get_game_timer 
128@ = 1
if 
  is_int_lvar_equal_to_int_lvar 125@ == 126@
goto_if_false @CAT3_8144
if 
  5 > 125@
goto_if_false @CAT3_8119
125@ += 1
goto @CAT3_8144

:CAT3_8119
if 
  125@ > 0
goto_if_false @CAT3_8144
125@ -= 1

:CAT3_8144
if 
  128@ == 1
goto_if_false @CAT3_9549
if 
  125@ == 0
goto_if_false @CAT3_8394
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8394
301@ = 27
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8331
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8374

:CAT3_8331
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8374
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8394
if 
  125@ == 1
goto_if_false @CAT3_8626
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8626
301@ = 28
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8563
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8606

:CAT3_8563
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8606
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8626
if 
  125@ == 2
goto_if_false @CAT3_8858
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8858
301@ = 29
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8795
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8838

:CAT3_8795
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8838
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8858
if 
  125@ == 3
goto_if_false @CAT3_9090
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9090
301@ = 30
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9027
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9070

:CAT3_9027
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9070
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_9090
if 
  125@ == 4
goto_if_false @CAT3_9317
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9317
301@ = 31
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9259
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9302

:CAT3_9259
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9302
set_lvar_int_to_lvar_int 126@ = 125@
128@ = 2

:CAT3_9317
if 
  125@ == 5
goto_if_false @CAT3_9549
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9549
301@ = 32
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9486
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9529

:CAT3_9486
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9529
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_9549
if 
  128@ == 2
goto_if_false @CAT3_9664
125@ = generate_random_int_in_range 6 {max} 13
131@ = get_game_timer 
128@ = 3
if 
  is_int_lvar_equal_to_int_lvar 125@ == 127@
goto_if_false @CAT3_9664
if 
  12 > 125@
goto_if_false @CAT3_9639
125@ += 1
goto @CAT3_9664

:CAT3_9639
if 
  125@ > 6
goto_if_false @CAT3_9664
125@ -= 1

:CAT3_9664
if 
  128@ == 3
goto_if_false @CAT3_10137
if 
  125@ == 6
goto_if_false @CAT3_9747
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9747
301@ = 33
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9747
if 
  125@ == 7
goto_if_false @CAT3_9812
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9812
301@ = 34
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9812
if 
  125@ == 8
goto_if_false @CAT3_9877
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9877
301@ = 35
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9877
if 
  125@ == 9
goto_if_false @CAT3_9942
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9942
301@ = 36
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9942
if 
  125@ == 10
goto_if_false @CAT3_10007
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10007
301@ = 37
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10007
if 
  125@ == 11
goto_if_false @CAT3_10072
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10072
301@ = 38
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10072
if 
  125@ == 12
goto_if_false @CAT3_10137
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10137
301@ = 39
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10137
if 
  128@ == 4
goto_if_false @CAT3_10202
130@ = get_game_timer 
set_lvar_int_to_lvar_int 129@ = 130@
sub_int_lvar_from_int_lvar 129@ -= 131@
if 
  129@ > 12000
goto_if_false @CAT3_10202
128@ = 5

:CAT3_10202
goto @CAT3_10302

:CAT3_10209
if and
  not is_car_dead 340@
  not is_char_dead 310@
goto_if_false @CAT3_10302
312@ = get_script_task_status 310@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_10302
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:CAT3_10302
if 
  is_car_dead 340@
goto_if_false @CAT3_10397
if 
  not is_char_dead 310@
goto_if_false @CAT3_10355
if 
  not is_char_on_screen 310@
goto_if_false @CAT3_10355
remove_char_elegantly 310@

:CAT3_10355
if 
  not is_char_dead 311@
goto_if_false @CAT3_10392
if 
  not is_char_on_screen 311@
goto_if_false @CAT3_10392
remove_char_elegantly 311@

:CAT3_10392
remove_blip 341@

:CAT3_10397
if and
  not is_char_dead 310@
  not is_car_dead 340@
goto_if_false @CAT3_10736
if 
  not locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT3_10492
if 
  60.0 > 321@
goto_if_false @CAT3_10485
321@ += 0.2

:CAT3_10485
goto @CAT3_10523

:CAT3_10492
if 
  321@ > 40.0
goto_if_false @CAT3_10523
321@ -= 0.1

:CAT3_10523
if 
  not locate_char_any_means_3d $scplayer {x} 50@ {y} 51@ {z} 52@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CAT3_10736
if 
  not locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CAT3_10711
62@, 63@, 64@ = get_offset_from_car_in_world_coords 334@ {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
342@, 343@, 344@, 345@ = get_nth_closest_car_node_with_heading 62@ {yCoord} 63@ {zCoord} 64@ {nth} 1
if 
  not is_point_on_screen 342@ {y} 343@ {z} 344@ {radius} 15.0
goto_if_false @CAT3_10704
set_car_coordinates 340@ {x} 342@ {y} 343@ {z} 344@
set_car_heading 340@ {heading} 345@

:CAT3_10704
goto @CAT3_10736

:CAT3_10711
if 
  128@ == 5
goto_if_false @CAT3_10736
128@ = 0

:CAT3_10736
306@ = get_car_health 334@
if 
  40@ == 0
goto_if_false @CAT3_11292
if 
  not is_char_dead 310@
goto_if_false @CAT3_11292
if 
  not locate_char_any_means_3d $scplayer {x} 50@ {y} 51@ {z} 52@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CAT3_10922
if 
  not is_char_dead 311@
goto_if_false @CAT3_10915
if 
  not is_car_dead 334@
goto_if_false @CAT3_10915
if 
  not is_car_dead 340@
goto_if_false @CAT3_10915
47@ = get_script_task_status 311@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_10915
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars

:CAT3_10915
goto @CAT3_11000

:CAT3_10922
if 
  not is_car_dead 340@
goto_if_false @CAT3_11000
if 
  not is_char_dead 311@
goto_if_false @CAT3_11000
task_car_temp_action 311@ {vehicle} 340@ {actionId} TempAction.HandbrakeStraight {time} 2000
44@ = get_game_timer 
if 
  does_car_have_stuck_car_check 340@
goto_if_false @CAT3_10993
remove_stuck_car_check 340@

:CAT3_10993
40@ = 1

:CAT3_11000
if 
  locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT3_11292
if 
  not is_char_dead 311@
goto_if_false @CAT3_11292
if 
  not is_car_dead 334@
goto_if_false @CAT3_11292
if 
  not is_car_dead 340@
goto_if_false @CAT3_11292
$c3_trailer_health_display = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ == 5000
goto_if_false @CAT3_11292
if 
  $c3_trailer_health_display == 0
goto_if_false @CAT3_11169
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortLeft {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11169
if 
  $c3_trailer_health_display == 1
goto_if_false @CAT3_11210
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortRight {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11210
if 
  $c3_trailer_health_display == 2
goto_if_false @CAT3_11251
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortRear {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11251
if 
  $c3_trailer_health_display == 3
goto_if_false @CAT3_11292
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortFront {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11292
if and
  not is_car_dead 327@
  not is_char_dead 310@
goto_if_false @CAT3_11421
333@ = get_car_speed 327@
if 
  3.0 > 333@
goto_if_false @CAT3_11421
47@ = get_script_task_status 310@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_11421
set_char_accuracy 310@ {accuracy} 40
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi

:CAT3_11421
if 
  not is_trailer_attached_to_cab 334@ {cab} 327@
goto_if_false @CAT3_11764
if 
  is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_11741
if 
  not is_car_upsidedown 327@
goto_if_false @CAT3_11702
do_fade 50 {direction} Fade.Out

:CAT3_11481
if 
  get_fading_status 
goto_if_false @CAT3_11505
wait 0
goto @CAT3_11481

:CAT3_11505
if 
  not is_car_dead 327@
goto_if_false @CAT3_11695
set_player_control $player1 {state} False
switch_widescreen True
set_car_temp_action 327@ {actionId} TempAction.HandbrakeStraight {time} 2000
73@, 83@, 93@ = get_offset_from_car_in_world_coords 327@ {xOffset} 2.5 {yOffset} 4.0 {zOffset} 0.0
103@, 113@, 123@ = get_offset_from_car_in_world_coords 327@ {xOffset} 2.2 {yOffset} 3.0 {zOffset} 0.0
set_fixed_camera_position 73@ {y} 83@ {z} 93@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 103@ {y} 113@ {z} 123@ {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 340@
goto_if_false @CAT3_11676
if 
  not is_car_on_screen 340@
goto_if_false @CAT3_11676
delete_car 340@

:CAT3_11676
44@ = get_game_timer 
37@ = 0
goto @CAT3_15882

:CAT3_11695
goto @CAT3_11734

:CAT3_11702
do_fade 300 {direction} Fade.In
clear_prints 
print_now 'CAT3_08' {time} 5000 {flag} 1
goto @CAT3_16983

:CAT3_11734
goto @CAT3_11764

:CAT3_11741
print_now 'CAT3_08' {time} 5000 {flag} 1
goto @CAT3_16983

:CAT3_11764
if and
  is_char_in_car $catalina {vehicle} 327@
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_12148
if or
  locate_car_3d 327@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} True
  locate_car_3d 334@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT3_12148
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CAT3_11878
if 
  get_fading_status 
goto_if_false @CAT3_11902
wait 0
goto @CAT3_11878

:CAT3_11902
gosub @CAT3_1102
load_scene -76.1314 {y} -1131.417 {z} 0.0782
switch_widescreen True
remove_blip 41@
clear_prints 
request_car_recording 199

:CAT3_11942
if 
  not has_car_recording_been_loaded 199
goto_if_false @CAT3_11969
wait 0
goto @CAT3_11942

:CAT3_11969
set_fixed_camera_position -81.2678 {y} -1141.735 {z} 3.899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -81.7168 {y} -1140.842 {z} 3.8854 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead $catalina
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_12120
freeze_car_position 327@ {state} True
lock_car_doors 327@ {lockStatus} CarLock.LockoutPlayerOnly
warp_char_from_car_to_coord $catalina {x} -71.5991 {y} -1134.952 {z} 0.0781
set_char_heading $catalina {heading} 63.1513
warp_char_from_car_to_coord $scplayer {x} -74.2582 {y} -1130.526 {z} 0.0781
set_char_heading $scplayer {heading} 135.9294

:CAT3_12120
gosub @CAT3_576
clear_prints 
44@ = get_game_timer 
37@ = -4
35@ = 5

:CAT3_12148
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CAT3_12449
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CAT3_12177
if 
  get_fading_status 
goto_if_false @CAT3_12201
wait 0
goto @CAT3_12177

:CAT3_12201
gosub @CAT3_1102
load_scene -76.1314 {y} -1131.417 {z} 0.0782
switch_widescreen True
remove_blip 41@
clear_prints 
request_car_recording 199

:CAT3_12241
if 
  not has_car_recording_been_loaded 199
goto_if_false @CAT3_12268
wait 0
goto @CAT3_12241

:CAT3_12268
set_fixed_camera_position -81.2678 {y} -1141.735 {z} 3.899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -81.7168 {y} -1140.842 {z} 3.8854 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead $catalina
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_12419
set_car_coordinates 327@ {x} 50@ {y} 51@ {z} 52@
warp_char_from_car_to_coord $catalina {x} -71.5991 {y} -1134.952 {z} 0.0781
set_char_heading $catalina {heading} 63.1513
warp_char_from_car_to_coord $scplayer {x} -74.2582 {y} -1130.526 {z} 0.0781
set_char_heading $scplayer {heading} 135.9294

:CAT3_12419
gosub @CAT3_576
clear_help 
clear_prints 
44@ = get_game_timer 
37@ = -4
35@ = 5

:CAT3_12449
if 
  35@ == 5
goto_if_false @CAT3_15166
if and
  not is_char_dead $catalina
  not is_char_dead 322@
  not is_car_dead 327@
goto_if_false @CAT3_15166
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_12517
remove_char_from_group $catalina

:CAT3_12517
if 
  37@ == -4
goto_if_false @CAT3_12631
if 
  not is_car_dead 340@
goto_if_false @CAT3_12624
set_car_proofs 340@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
start_playback_recorded_car 340@ {path} 199
44@ = get_game_timer 
do_fade 250 {direction} Fade.In

:CAT3_12586
if 
  get_fading_status 
goto_if_false @CAT3_12610
wait 0
goto @CAT3_12586

:CAT3_12610
37@ = -3
goto @CAT3_12631

:CAT3_12624
37@ = -1

:CAT3_12631
if 
  37@ == -3
goto_if_false @CAT3_12770
if 
  not is_car_dead 340@
goto_if_false @CAT3_12770
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_12770
set_fixed_camera_position -107.3115 {y} -1128.808 {z} 2.6543 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -106.788 {y} -1129.652 {z} 2.7731 {switchStyle} SwitchType.JumpCut
set_car_health 340@ {health} 5
37@ = -21

:CAT3_12770
if 
  37@ == -21
goto_if_false @CAT3_12907
if 
  not is_car_dead 340@
goto_if_false @CAT3_12907
if 
  not is_playback_going_on_for_car 340@
goto_if_false @CAT3_12907
set_fixed_camera_position -108.8537 {y} -1168.342 {z} 3.0287 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -108.0611 {y} -1167.736 {z} 3.0908 {switchStyle} SwitchType.JumpCut
add_explosion -92.24 {y} -1161.46 {z} 2.5 {type} ExplosionType.Car
explode_car_in_cutscene 340@
44@ = get_game_timer 
37@ = -22

:CAT3_12907
if 
  37@ == -22
goto_if_false @CAT3_12987
if 
  42@ > 1000
goto_if_false @CAT3_12987
if 
  not is_car_dead 346@
goto_if_false @CAT3_12987
set_car_proofs 346@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car_in_cutscene 346@
37@ = -2

:CAT3_12987
if 
  37@ == -2
goto_if_false @CAT3_13083
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_13083
do_fade 500 {direction} Fade.Out

:CAT3_13052
if 
  get_fading_status 
goto_if_false @CAT3_13076
wait 0
goto @CAT3_13052

:CAT3_13076
37@ = -1

:CAT3_13083
if 
  37@ == -1
goto_if_false @CAT3_13242
set_fixed_camera_position 70@ {y} 80@ {z} 90@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 100@ {y} 110@ {z} 120@ {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 310@
  not is_char_dead 311@
  not is_car_dead 340@
goto_if_false @CAT3_13181
delete_char 310@
delete_char 311@
delete_car 340@

:CAT3_13181
load_scene_in_direction 70@ {y} 80@ {z} 90@ {heading} 100.0
clear_prints 
44@ = get_game_timer 
do_fade 500 {direction} Fade.In

:CAT3_13211
if 
  get_fading_status 
goto_if_false @CAT3_13235
wait 0
goto @CAT3_13211

:CAT3_13235
37@ = 0

:CAT3_13242
if 
  37@ == 0
goto_if_false @CAT3_13415
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 300
goto_if_false @CAT3_13415
if 
  302@ == 0
goto_if_false @CAT3_13415
if and
  not is_char_dead $catalina
  not is_char_dead 322@
goto_if_false @CAT3_13415
48@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 322@
task_go_straight_to_coord -1 {x} -74.8954 {y} -1133.7791 {z} 0.0781 {speed} MoveState.Walk {time} -1
task_look_at_char -1 {target} 322@ {time} -2
close_sequence_task 48@
perform_sequence_task $catalina {sequence} 48@
301@ = 43
44@ = get_game_timer 
37@ = 1

:CAT3_13415
if 
  37@ == 1
goto_if_false @CAT3_13661
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13661
if 
  302@ == 0
goto_if_false @CAT3_13661
do_fade 50 {direction} Fade.Out

:CAT3_13497
if 
  get_fading_status 
goto_if_false @CAT3_13521
wait 0
goto @CAT3_13497

:CAT3_13521
if and
  not is_char_dead 322@
  not is_char_dead $catalina
goto_if_false @CAT3_13557
task_look_at_char 322@ {target} $catalina {time} -2
task_scratch_head 322@

:CAT3_13557
301@ = 44
44@ = get_game_timer 
load_scene_in_direction 71@ {y} 81@ {z} 91@ {heading} 270.0
set_fixed_camera_position 71@ {y} 81@ {z} 91@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 101@ {y} 111@ {z} 121@ {switchStyle} SwitchType.JumpCut
do_fade 50 {direction} Fade.In

:CAT3_13630
if 
  get_fading_status 
goto_if_false @CAT3_13654
wait 0
goto @CAT3_13630

:CAT3_13654
37@ = 2

:CAT3_13661
if 
  37@ == 2
goto_if_false @CAT3_13859
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13859
if 
  302@ == 0
goto_if_false @CAT3_13859
if and
  not is_car_dead 327@
  not is_char_dead 322@
  not is_char_dead $catalina
goto_if_false @CAT3_13859
clear_look_at 322@
task_turn_char_to_face_coord $catalina {x} 50@ {y} 51@ {z} 52@
task_turn_char_to_face_coord 322@ {x} 50@ {y} 51@ {z} 52@
task_look_at_vehicle $catalina {vehicle} 327@ {time} -2
task_look_at_vehicle 322@ {vehicle} 327@ {time} -2
task_go_straight_to_coord 322@ {x} -75.1023 {y} -1134.871 {z} 0.0781 {speed} MoveState.Walk {time} -1
301@ = 45
44@ = get_game_timer 
37@ = 3

:CAT3_13859
if 
  37@ == 3
goto_if_false @CAT3_14050
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14050
if 
  302@ == 0
goto_if_false @CAT3_14050
if 
  not is_char_dead 322@
goto_if_false @CAT3_14031
set_fixed_camera_position 72@ {y} 82@ {z} 92@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 102@ {y} 112@ {z} 122@ {switchStyle} SwitchType.JumpCut
task_turn_char_to_face_char 322@ {target} $catalina
task_look_at_char 322@ {target} $catalina {time} -2
task_scratch_head 322@
task_turn_char_to_face_char $catalina {target} 322@
task_look_at_char $catalina {target} 322@ {time} -2

:CAT3_14031
301@ = 46
44@ = get_game_timer 
37@ = 4

:CAT3_14050
if 
  37@ == 4
goto_if_false @CAT3_14145
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14145
if 
  302@ == 0
goto_if_false @CAT3_14145
301@ = 47
44@ = get_game_timer 
37@ = 5

:CAT3_14145
if 
  37@ == 5
goto_if_false @CAT3_14285
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14285
if 
  302@ == 0
goto_if_false @CAT3_14285
if 
  not is_char_dead $catalina
goto_if_false @CAT3_14285
clear_look_at $catalina
task_go_straight_to_coord $catalina {x} -83.1314 {y} -1129.417 {z} 0.0782 {speed} MoveState.Walk {time} -1
301@ = 48
44@ = get_game_timer 
37@ = 6

:CAT3_14285
if 
  37@ == 6
goto_if_false @CAT3_14437
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14437
if 
  302@ == 0
goto_if_false @CAT3_14437
if 
  not is_char_dead 322@
goto_if_false @CAT3_14437
clear_look_at 322@
task_turn_char_to_face_char 322@ {target} $scplayer
wait 100
task_go_straight_to_coord $scplayer {x} -84.1314 {y} -1128.417 {z} 0.0782 {speed} MoveState.Walk {time} -1
301@ = 51
44@ = get_game_timer 
37@ = 7

:CAT3_14437
if 
  37@ == 7
goto_if_false @CAT3_14532
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14532
if 
  302@ == 0
goto_if_false @CAT3_14532
301@ = 52
44@ = get_game_timer 
37@ = 8

:CAT3_14532
if 
  37@ == 8
goto_if_false @CAT3_14735
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_14735
do_fade 100 {direction} Fade.Out

:CAT3_14596
if 
  get_fading_status 
goto_if_false @CAT3_14620
wait 0
goto @CAT3_14596

:CAT3_14620
44@ = get_game_timer 
if 
  not is_char_dead $catalina
goto_if_false @CAT3_14665
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_14665
remove_char_from_group $catalina

:CAT3_14665
gosub @CAT3_1234
clear_char_tasks $scplayer
set_fixed_camera_position -86.1477 {y} -1130.4449 {z} 0.9157 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -86.5058 {y} -1129.52 {z} 1.0417 {switchStyle} SwitchType.JumpCut
37@ = 9

:CAT3_14735
if 
  37@ == 9
goto_if_false @CAT3_14815
do_fade 100 {direction} Fade.In

:CAT3_14759
if 
  get_fading_status 
goto_if_false @CAT3_14783
wait 0
goto @CAT3_14759

:CAT3_14783
if 
  302@ == 0
goto_if_false @CAT3_14815
301@ = 55
37@ = 10

:CAT3_14815
if 
  37@ == 10
goto_if_false @CAT3_14908
if 
  301@ == 0
goto_if_false @CAT3_14908
if and
  not is_car_dead 352@
  not is_char_dead $catalina
goto_if_false @CAT3_14908
if 
  not is_playback_going_on_for_car 352@
goto_if_false @CAT3_14908
clear_look_at $catalina
start_playback_recorded_car 352@ {path} 189
37@ = 11

:CAT3_14908
if 
  37@ == 11
goto_if_false @CAT3_15021
if 
  not is_car_dead 352@
goto_if_false @CAT3_15021
if 
  not is_playback_going_on_for_car 352@
goto_if_false @CAT3_15021
do_fade 500 {direction} Fade.Out

:CAT3_14965
if 
  get_fading_status 
goto_if_false @CAT3_14989
wait 0
goto @CAT3_14965

:CAT3_14989
clear_char_tasks $scplayer
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @CAT3_17001

:CAT3_15021
if 
  37@ > 0
goto_if_false @CAT3_15166
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_15166
do_fade 500 {direction} Fade.Out

:CAT3_15063
if 
  get_fading_status 
goto_if_false @CAT3_15087
wait 0
goto @CAT3_15063

:CAT3_15087
if 
  not is_char_dead $catalina
goto_if_false @CAT3_15134
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_15134
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina

:CAT3_15134
clear_char_tasks $scplayer
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @CAT3_17001

:CAT3_15166
if and
  35@ > 0
  5 > 35@
goto_if_false @CAT3_15198
gosub @CAT3_18123

:CAT3_15198
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_15711
if and
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_15711
if 
  36@ == 0
goto_if_false @CAT3_15499
if 
  49@ == 1
goto_if_false @CAT3_15499
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15320
print_now 'CAT3_10' {time} 100 {flag} 1

:CAT3_15320
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_15499
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15366
clear_prints 

:CAT3_15366
remove_blip 328@
if 
  35@ == 2
goto_if_false @CAT3_15420
if 
  not is_car_dead 334@
goto_if_false @CAT3_15420
335@ = add_blip_for_car 334@
set_blip_as_friendly 335@ {state} True

:CAT3_15420
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15492
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
set_blip_as_friendly 41@ {state} True
clear_onscreen_counter $cat1_pickups_collected
display_onscreen_counter_with_string $cat1_pickups_collected {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_15492
36@ = 1

:CAT3_15499
if 
  36@ == 1
goto_if_false @CAT3_15711
if 
  not is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_15711
if 
  49@ == 1
goto_if_false @CAT3_15569
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_15569
if 
  35@ == 2
goto_if_false @CAT3_15592
remove_blip 335@

:CAT3_15592
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15627
remove_blip 41@
clear_onscreen_counter $cat1_pickups_collected

:CAT3_15627
if 
  35@ == 4
goto_if_false @CAT3_15704
if 
  not is_char_dead 310@
goto_if_false @CAT3_15704
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:CAT3_15704
36@ = 0

:CAT3_15711
if or
  is_char_dead $catalina
  is_char_in_water $catalina
goto_if_false @CAT3_15757
clear_prints 
print_now 'CAT3_06' {time} 10000 {flag} 1
goto @CAT3_16983

:CAT3_15757
if 
  5 > 35@
goto_if_false @CAT3_15816
if 
  is_car_dead 334@
goto_if_false @CAT3_15816
clear_prints 
print_now 'CAT3_07' {time} 5000 {flag} 1
goto @CAT3_16983

:CAT3_15816
if 
  5 > 35@
goto_if_false @CAT3_15875
if 
  is_car_dead 327@
goto_if_false @CAT3_15875
clear_prints 
print_now 'CAT3_09' {time} 5000 {flag} 1
goto @CAT3_16983

:CAT3_15875
goto @CAT3_3679

:CAT3_15882
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_16313
if 
  302@ == 0
goto_if_false @CAT3_15950
if 
  has_mission_audio_loaded 304@
goto_if_false @CAT3_15943
clear_mission_audio 304@

:CAT3_15943
302@ = 1

:CAT3_15950
if 
  302@ == 1
goto_if_false @CAT3_15994
load_mission_audio 303@ {audioId} 245@(301@,56i)
gosub @CAT3_17387
302@ = 2

:CAT3_15994
if 
  302@ == 2
goto_if_false @CAT3_16096
if 
  has_mission_audio_loaded 303@
goto_if_false @CAT3_16096
if 
  244@ <> 0
goto_if_false @CAT3_16070
if 
  not is_char_dead 244@
goto_if_false @CAT3_16070
start_char_facial_talk 244@ {duration} 10000

:CAT3_16070
play_mission_audio 303@
print_now 132@(301@,56s) {time} 10000 {flag} 1
302@ = 3

:CAT3_16096
if 
  302@ == 3
goto_if_false @CAT3_16313
if 
  has_mission_audio_finished 303@
goto_if_false @CAT3_16252
clear_this_print 132@(301@,56s)
if 
  244@ <> 0
goto_if_false @CAT3_16178
if 
  not is_char_dead 244@
goto_if_false @CAT3_16178
stop_char_facial_talk 244@

:CAT3_16178
if 
  303@ == 1
goto_if_false @CAT3_16217
303@ = 2
304@ = 1
goto @CAT3_16231

:CAT3_16217
303@ = 1
304@ = 2

:CAT3_16231
301@ = 0
302@ = 0
goto @CAT3_16313

:CAT3_16252
if 
  not has_mission_audio_loaded 304@
goto_if_false @CAT3_16313
if 
  54 > 301@
goto_if_false @CAT3_16313
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
load_mission_audio 304@ {audioId} 245@(305@,56i)

:CAT3_16313
if 
  37@ == 0
goto_if_false @CAT3_16448
do_fade 50 {direction} Fade.In

:CAT3_16337
if 
  get_fading_status 
goto_if_false @CAT3_16361
wait 0
goto @CAT3_16337

:CAT3_16361
301@ = 53
44@ = get_game_timer 
if and
  not is_car_dead 327@
  not is_char_dead $catalina
goto_if_false @CAT3_16448
attach_camera_to_vehicle 327@ {xOffset} 1.0 {yOffset} 8.0 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 1.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
clear_onscreen_counter $cat1_pickups_collected
37@ = 1

:CAT3_16448
if 
  37@ == 1
goto_if_false @CAT3_16643
if and
  not is_car_dead 327@
  not is_char_dead $catalina
goto_if_false @CAT3_16643
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16643
if 
  302@ == 0
goto_if_false @CAT3_16643
301@ = 54
attach_camera_to_vehicle 327@ {xOffset} 1.0 {yOffset} 8.0 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 1.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
73@, 83@, 93@ = get_offset_from_car_in_world_coords 327@ {xOffset} 4.5 {yOffset} 10.0 {zOffset} 0.0
task_leave_car $catalina {vehicle} 327@
44@ = get_game_timer 
37@ = 2

:CAT3_16643
if 
  37@ == 2
goto_if_false @CAT3_16890
if 
  302@ == 0
goto_if_false @CAT3_16890
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16890
if 
  not is_char_dead $catalina
goto_if_false @CAT3_16890
if 
  not is_car_dead 327@
goto_if_false @CAT3_16890
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_16890
task_go_straight_to_coord $catalina {x} 73@ {y} 83@ {z} 93@ {speed} MoveState.Walk {time} -1
if 
  302@ == 0
goto_if_false @CAT3_16890
do_fade 50 {direction} Fade.Out

:CAT3_16812
if 
  get_fading_status 
goto_if_false @CAT3_16836
wait 0
goto @CAT3_16812

:CAT3_16836
if 
  not is_char_dead $catalina
goto_if_false @CAT3_16890
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_16890
remove_char_from_group $catalina
delete_char $catalina
clear_prints 
37@ = 3

:CAT3_16890
if 
  37@ == 3
goto_if_false @CAT3_16976
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 50 {direction} Fade.In

:CAT3_16922
if 
  get_fading_status 
goto_if_false @CAT3_16946
wait 0
goto @CAT3_16922

:CAT3_16946
print_now 'CAT3_08' {time} 5000 {flag} 1
set_player_control $player1 {state} True
goto @CAT3_16983

:CAT3_16976
goto @CAT3_15882

:CAT3_16983
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CAT3_17001
$cat_counter += 1
if and
  not is_car_dead 327@
  not is_car_dead 334@
goto_if_false @CAT3_17046
freeze_car_position 327@ {state} False
delete_car 327@
delete_car 334@

:CAT3_17046
start_new_script @TRUCKS 
if 
  $cat_otb_banter == 1
goto_if_false @CAT3_17079
$cat_otb_banter = 2

:CAT3_17079
if 
  $cat_liquor_banter == 1
goto_if_false @CAT3_17104
$cat_liquor_banter = 2

:CAT3_17104
remove_blip $tucking_contact_blip
$tucking_contact_blip = add_short_range_sprite_blip_for_contact_point $truckX {y} $truckY {z} $truckZ {sprite} RadarSprite.Truck
play_mission_passed_tune 1
register_mission_passed 'CAT_3'
player_made_progress 1
print_with_number_big 'M_PASS' {num} 34@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 34@
clear_wanted_level $player1
$flag_cat_mission3_passed = 1
return 

:CAT3_17185
remove_blip 328@
remove_blip 335@
remove_blip 341@
remove_blip 41@
remove_blip 309@
clear_onscreen_counter $cat1_pickups_collected
clear_mission_audio MissionAudioSlot.Slot3
delete_char 322@
delete_car 352@
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 95
mark_model_as_no_longer_needed 67
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 15
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 468
if 
  not is_char_dead $catalina
goto_if_false @CAT3_17301
remove_char_elegantly $catalina

:CAT3_17301
unload_special_character 1
remove_animation "CAR_CHAT"
remove_animation "MISC"
remove_car_recording 188
remove_car_recording 189
remove_car_recording 199
$onmission = 0
$timer_mobile_start = get_game_timer 
do_fade 500 {direction} Fade.In

:CAT3_17359
if 
  get_fading_status 
goto_if_false @CAT3_17383
wait 0
goto @CAT3_17359

:CAT3_17383
mission_has_finished 
return 

:CAT3_17387
if or
  301@ == 1
  301@ == 5
  301@ == 6
  301@ == 8
  301@ == 11
  301@ == 12
goto_if_false @CAT3_17448
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17448
if or
  301@ == 16
  301@ == 20
  301@ == 21
  301@ == 22
  301@ == 23
  301@ == 24
goto_if_false @CAT3_17509
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17509
if or
  301@ == 25
  301@ == 26
  301@ == 40
  301@ == 41
  301@ == 42
  301@ == 43
goto_if_false @CAT3_17570
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17570
if or
  301@ == 45
  301@ == 47
goto_if_false @CAT3_17603
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17603
if or
  301@ == 2
  301@ == 3
  301@ == 7
  301@ == 10
  301@ == 13
  301@ == 14
goto_if_false @CAT3_17664
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17664
if or
  301@ == 17
  301@ == 18
goto_if_false @CAT3_17697
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17697
if or
  301@ == 27
  301@ == 28
  301@ == 29
  301@ == 30
goto_if_false @CAT3_17743
244@ = 0

:CAT3_17743
if or
  301@ == 31
  301@ == 32
  301@ == 15
goto_if_false @CAT3_17782
244@ = 0

:CAT3_17782
if or
  301@ == 4
  301@ == 19
goto_if_false @CAT3_17815
set_lvar_int_to_lvar_int 244@ = 311@

:CAT3_17815
if or
  301@ == 33
  301@ == 34
  301@ == 35
goto_if_false @CAT3_17854
244@ = 0

:CAT3_17854
if or
  301@ == 36
  301@ == 37
  301@ == 38
  301@ == 39
goto_if_false @CAT3_17900
244@ = 0

:CAT3_17900
if or
  301@ == 44
  301@ == 46
  301@ == 48
  301@ == 49
  301@ == 50
  301@ == 51
goto_if_false @CAT3_17961
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_17961
if 
  301@ == 52
goto_if_false @CAT3_17987
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_17987
if 
  301@ == 9
goto_if_false @CAT3_18013
set_lvar_int_to_var_int 244@ = $scplayer

:CAT3_18013
return 
if 
  not is_char_dead $scplayer
goto_if_false @CAT3_18121
if 
  36@ == 0
goto_if_false @CAT3_18080
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT3_18080
308@ = store_car_char_is_in $scplayer
36@ = 1

:CAT3_18080
if 
  36@ == 1
goto_if_false @CAT3_18121
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT3_18121
36@ = 0

:CAT3_18121
return 

:CAT3_18123
if and
  not is_char_dead $scplayer
  not is_char_dead $catalina
goto_if_false @CAT3_18760
if 
  49@ == 0
goto_if_false @CAT3_18563
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_18563
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_18563
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @CAT3_18563
if 
  35@ == 2
goto_if_false @CAT3_18368
if 
  36@ == 1
goto_if_false @CAT3_18314
if 
  not is_car_dead 334@
goto_if_false @CAT3_18314
remove_blip 335@
335@ = add_blip_for_car 334@
set_blip_as_friendly 335@ {state} True

:CAT3_18314
if 
  36@ == 0
goto_if_false @CAT3_18368
if 
  not is_car_dead 327@
goto_if_false @CAT3_18368
remove_blip 328@
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_18368
if 
  35@ == 4
goto_if_false @CAT3_18512
if 
  36@ == 1
goto_if_false @CAT3_18451
128@ = 4
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $cat1_pickups_collected
display_onscreen_counter_with_string $cat1_pickups_collected {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_18451
if 
  36@ == 0
goto_if_false @CAT3_18512
if 
  not is_car_dead 327@
goto_if_false @CAT3_18512
128@ = 4
remove_blip 328@
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_18512
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
remove_blip 309@
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_18556
clear_prints 

:CAT3_18556
49@ = 1

:CAT3_18563
if 
  49@ == 1
goto_if_false @CAT3_18760
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_18760
if 
  35@ == 2
goto_if_false @CAT3_18646
remove_blip 335@
if 
  36@ == 0
goto_if_false @CAT3_18646
remove_blip 328@

:CAT3_18646
if 
  35@ == 4
goto_if_false @CAT3_18704
clear_onscreen_counter $cat1_pickups_collected
remove_blip 41@
128@ = 10
if 
  36@ == 0
goto_if_false @CAT3_18704
remove_blip 328@

:CAT3_18704
309@ = add_blip_for_char $catalina
set_blip_as_friendly 309@ {state} True
if 
  35@ <> 3
goto_if_false @CAT3_18753
print_now 'CAT3_01' {time} 5000 {flag} 1

:CAT3_18753
49@ = 0

:CAT3_18760
return 

//-------------Mission 44---------------
// Originally: Against All Odds

:CAT4
script_name 'CAT4'
gosub @CAT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT4_38
gosub @CAT4_18296

:CAT4_38
gosub @CAT4_18425
terminate_this_script 

:CAT4_47
$onmission = 1
switch_entry_exit 'GENOTB' {state} False
if 
  is_player_playing $player1
goto_if_false @CAT4_90
set_player_control $player1 {state} False

:CAT4_90
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
switch_widescreen True

:CAT4_109
if 
  get_fading_status 
goto_if_false @CAT4_133
wait 0
goto @CAT4_109

:CAT4_133
if 
  is_player_playing $player1
goto_if_false @CAT4_161
set_char_heading $scplayer {heading} 64.0
set_camera_behind_player 

:CAT4_161
111@ = find_max_number_of_group_members 
111@ -= 1
if 
  0 >= 111@
goto_if_false @CAT4_202
set_script_limit_to_gang_size 1
goto @CAT4_207

:CAT4_202
set_script_limit_to_gang_size 111@

:CAT4_207
make_room_in_player_gang_for_mission_peds 1
request_model 348
request_model 364
request_model 363
request_model #RIDER1_DOOR
request_model #KEV_SAFE
request_model #MAN_SAFENEW
request_animation "MISC"

:CAT4_249
if or
  not has_model_loaded 363
  not has_model_loaded 364
goto_if_false @CAT4_281
wait 0
goto @CAT4_249

:CAT4_281
load_mission_text 'CAT'
107@ = 1
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$c3_rand_escort = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
275@ = 0
104@ = 0
109@ = 0
107@ = 0
102@ = 0
108@ = 0
106@ = 1
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
274@ = 0
105@ = 0
61@ = 1289.851
62@ = 269.8778
63@ = 19.5888
64@ = 820.2197
65@ = 4.2019
66@ = 1004.661
67@ = 719.17
68@ = -457.68
69@ = 16.92
70@ = 822.4665
76@ = 1.7837
82@ = 1003.1
71@ = 822.0091
77@ = 6.0787
83@ = 1003.17
72@ = 832.8624
78@ = 0.7513
84@ = 1003.18
73@ = 830.9443
79@ = 0.3996
85@ = 1003.17
74@ = 827.839
80@ = -0.2443
86@ = 1003.1
75@ = 829.2125
81@ = 2.0354
87@ = 1003.17
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT4_1357
if 
  $cat_counter == 0
goto_if_false @CAT4_1108
set_lvar_text_label 118@s = 'CAT_DA'
set_lvar_text_label 120@s = 'CAT_DE'
set_lvar_text_label 122@s = 'CAT_DF'
set_lvar_text_label 124@s = 'CAT_DG'
set_lvar_text_label 126@s = 'CAT_DH'
set_lvar_text_label 128@s = 'CAT_DI'
set_lvar_text_label 130@s = 'CAT_DJ'
set_lvar_text_label 132@s = 'CAT_DK'
set_lvar_text_label 134@s = 'CAT_DL'
set_lvar_text_label 136@s = 'CAT_DM'
set_lvar_text_label 138@s = 'CAT_DN'
set_lvar_text_label 140@s = 'CAT_DO'
set_lvar_text_label 142@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 2217
set_lvar_int_to_constant 223@ = 2221
set_lvar_int_to_constant 224@ = 2300
set_lvar_int_to_constant 225@ = 2222
set_lvar_int_to_constant 226@ = 2223
set_lvar_int_to_constant 227@ = 2224
set_lvar_int_to_constant 228@ = 2225
set_lvar_int_to_constant 229@ = 2226
set_lvar_int_to_constant 230@ = 2301
set_lvar_int_to_constant 231@ = 2227
set_lvar_int_to_constant 232@ = 2228
set_lvar_int_to_constant 233@ = 2302
set_lvar_int_to_constant 234@ = 2229
110@ = 16
goto @CAT4_1357

:CAT4_1108
set_lvar_text_label 118@s = 'CAT_DF'
set_lvar_text_label 120@s = 'CAT_DG'
set_lvar_text_label 122@s = 'CAT_DH'
set_lvar_text_label 124@s = 'CAT_DI'
set_lvar_text_label 126@s = 'CAT_DJ'
set_lvar_text_label 128@s = 'CAT_DK'
set_lvar_text_label 130@s = 'CAT_DL'
set_lvar_text_label 132@s = 'CAT_DM'
set_lvar_text_label 134@s = 'CAT_DN'
set_lvar_text_label 136@s = 'CAT_DO'
set_lvar_text_label 138@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 2300
set_lvar_int_to_constant 223@ = 2222
set_lvar_int_to_constant 224@ = 2223
set_lvar_int_to_constant 225@ = 2224
set_lvar_int_to_constant 226@ = 2225
set_lvar_int_to_constant 227@ = 2226
set_lvar_int_to_constant 228@ = 2301
set_lvar_int_to_constant 229@ = 2227
set_lvar_int_to_constant 230@ = 2228
set_lvar_int_to_constant 231@ = 2302
set_lvar_int_to_constant 232@ = 2229
110@ = 14

:CAT4_1357
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT4_1690
set_lvar_text_label 118@s = 'CAT_GA'
set_lvar_text_label 120@s = 'CAT_GB'
set_lvar_text_label 122@s = 'CAT_GC'
set_lvar_text_label 124@s = 'CAT_GD'
set_lvar_text_label 126@s = 'CAT_GE'
set_lvar_text_label 128@s = 'CAT_GF'
set_lvar_text_label 130@s = 'CAT_GG'
set_lvar_text_label 132@s = 'CAT_GH'
set_lvar_text_label 134@s = 'CAT_GI'
set_lvar_text_label 136@s = 'CAT_GJ'
set_lvar_text_label 138@s = 'CAT_GK'
set_lvar_text_label 140@s = 'CAT_GL'
set_lvar_text_label 142@s = 'CAT_GM'
set_lvar_text_label 144@s = 'CAT_GN'
set_lvar_int_to_constant 222@ = 2247
set_lvar_int_to_constant 223@ = 2313
set_lvar_int_to_constant 224@ = 2248
set_lvar_int_to_constant 225@ = 2314
set_lvar_int_to_constant 226@ = 2315
set_lvar_int_to_constant 227@ = 2249
set_lvar_int_to_constant 228@ = 2316
set_lvar_int_to_constant 229@ = 2250
set_lvar_int_to_constant 230@ = 2317
set_lvar_int_to_constant 231@ = 2251
set_lvar_int_to_constant 232@ = 2252
set_lvar_int_to_constant 233@ = 2253
set_lvar_int_to_constant 234@ = 2254
set_lvar_int_to_constant 235@ = 2318
110@ = 17

:CAT4_1690
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT4_1891
set_lvar_text_label 118@s = 'CAT_OA'
set_lvar_text_label 120@s = 'CAT_OB'
set_lvar_text_label 122@s = 'CAT_OC'
set_lvar_text_label 124@s = 'CAT_OD'
set_lvar_text_label 126@s = 'CAT_OE'
set_lvar_text_label 128@s = 'CAT_OF'
set_lvar_text_label 130@s = 'CAT_OG'
set_lvar_text_label 132@s = 'CAT_OH'
set_lvar_int_to_constant 222@ = 2281
set_lvar_int_to_constant 223@ = 2332
set_lvar_int_to_constant 224@ = 2282
set_lvar_int_to_constant 225@ = 2333
set_lvar_int_to_constant 226@ = 2283
set_lvar_int_to_constant 227@ = 2334
set_lvar_int_to_constant 228@ = 2284
set_lvar_int_to_constant 229@ = 2285
110@ = 11

:CAT4_1891
52@ = 0
112@ = add_blip_for_coord 61@ {y} 62@ {z} 63@
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
116@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
if 
  not is_char_dead $catalina
goto_if_false @CAT4_1969
113@ = add_blip_for_char $catalina
remove_blip 113@

:CAT4_1969
remove_blip 112@
remove_blip 115@
remove_blip 116@
remove_blip 113@
remove_blip $spray_shop4
54@ = load_char_decision_maker DecisionMakerType.Tough
enable_entry_exit_player_group_warping 833.0 {y} 9.0 {radius} 10.0 {state} False
enable_entry_exit_player_group_warping 1291.0 {y} 271.0 {radius} 10.0 {state} True
wait 0
if 
  88@ == 1
goto_if_false @CAT4_2068
gosub @CAT4_4355

:CAT4_2068
if 
  89@ == 1
goto_if_false @CAT4_2093
gosub @CAT4_13682

:CAT4_2093
if 
  90@ == 1
goto_if_false @CAT4_2118
goto @CAT4_18326

:CAT4_2118
if 
  91@ == 1
goto_if_false @CAT4_2143
goto @CAT4_18296

:CAT4_2143
return 

:CAT4_2145
if 
  89@ == 1
goto_if_false @CAT4_3613
if 
  93@ == 0
goto_if_false @CAT4_2849
if 
  not is_char_dead $catalina
goto_if_false @CAT4_2842
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_2842
93@ = 1
if 
  101@ == 1
goto_if_false @CAT4_2248
94@ = 1000

:CAT4_2248
if 
  not does_blip_exist 116@
goto_if_false @CAT4_2280
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray

:CAT4_2280
if 
  106@ == 0
goto_if_false @CAT4_2821
if 
  281@ == 1
goto_if_false @CAT4_2686
if 
  102@ > 2
goto_if_false @CAT4_2341
102@ = 0

:CAT4_2341
if 
  102@ == 2
goto_if_false @CAT4_2456
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12689

:CAT4_2366
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2392
wait 0
goto @CAT4_2366

:CAT4_2392
print_now 'CATX_UA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2412
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2438
wait 0
goto @CAT4_2412

:CAT4_2438
clear_this_print 'CATX_UA'
102@ += 1

:CAT4_2456
if 
  102@ == 1
goto_if_false @CAT4_2571
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12690

:CAT4_2481
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2507
wait 0
goto @CAT4_2481

:CAT4_2507
print_now 'CATX_UB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2527
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2553
wait 0
goto @CAT4_2527

:CAT4_2553
clear_this_print 'CATX_UB'
102@ += 1

:CAT4_2571
if 
  102@ == 0
goto_if_false @CAT4_2686
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12694

:CAT4_2596
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2622
wait 0
goto @CAT4_2596

:CAT4_2622
print_now 'CATX_UF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2642
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2668
wait 0
goto @CAT4_2642

:CAT4_2668
clear_this_print 'CATX_UF'
102@ += 1

:CAT4_2686
if 
  106@ == 0
goto_if_false @CAT4_2805
if 
  99@ == 0
goto_if_false @CAT4_2805
if 
  not is_char_dead $catalina
goto_if_false @CAT4_2805
if 
  not locate_char_any_means_3d $catalina {x} 67@ {y} 68@ {z} 69@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT4_2805
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
99@ = 1
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:CAT4_2805
print 'CAT4_32' {time} 5000 {flag} 1

:CAT4_2821
if 
  does_blip_exist 115@
goto_if_false @CAT4_2842
remove_blip 115@

:CAT4_2842
goto @CAT4_3613

:CAT4_2849
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3306
if 
  100@ == 0
goto_if_false @CAT4_3094
if 
  locate_char_any_means_3d $catalina {x} 720.5 {y} -466.73 {z} 15.72 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CAT4_3094
if 
  100@ == 0
goto_if_false @CAT4_3094
print_now 'CAT4_37' {time} 5000 {flag} 1
if 
  99@ == 1
goto_if_false @CAT4_3087
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3087
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3032
remove_char_from_group $catalina

:CAT4_3032
clear_char_tasks $catalina
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3071
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_3071
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
99@ = 0

:CAT4_3087
100@ = 1

:CAT4_3094
if 
  100@ == 1
goto_if_false @CAT4_3185
if 
  not locate_char_any_means_3d $catalina {x} 720.5 {y} -460.73 {z} 15.72 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT4_3185
if 
  100@ == 1
goto_if_false @CAT4_3185
100@ = 0

:CAT4_3185
if 
  106@ == 0
goto_if_false @CAT4_3306
if 
  99@ == 0
goto_if_false @CAT4_3306
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_3306
if 
  not locate_char_any_means_3d $catalina {x} 67@ {y} 68@ {z} 69@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT4_3306
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
99@ = 1

:CAT4_3306
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_3613
93@ = 0
$game_timer1_cat4 = get_game_timer 
if 
  not does_blip_exist 115@
goto_if_false @CAT4_3463
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12624

:CAT4_3380
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_3406
wait 0
goto @CAT4_3380

:CAT4_3406
print_now 'CATX_DE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_3426
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_3452
wait 0
goto @CAT4_3426

:CAT4_3452
clear_this_print 'CATX_DE'

:CAT4_3463
if 
  does_blip_exist 116@
goto_if_false @CAT4_3484
remove_blip 116@

:CAT4_3484
if 
  99@ == 1
goto_if_false @CAT4_3606
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3606
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3551
remove_char_from_group $catalina

:CAT4_3551
clear_char_tasks $catalina
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3590
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_3590
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
99@ = 0

:CAT4_3606
TIMERA = 0

:CAT4_3613
if 
  is_player_playing $player1
goto_if_false @CAT4_4353
if 
  locate_char_any_means_3d $scplayer {x} 64@ {y} 65@ {z} 66@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @CAT4_4168
if 
  38@ == 0
goto_if_false @CAT4_4150
clear_this_print 'CAT4_01'
if 
  103@ == 0
goto_if_false @CAT4_3765
39@ = create_object #RIDER1_DOOR {x} 824.4123 {y} 10.85 {z} 1003.2
set_object_heading 39@ {heading} 175.0
freeze_object_position 39@ {state} True
set_object_collision_damage_effect 39@ {state} False

:CAT4_3765
if 
  103@ == 1
goto_if_false @CAT4_3783

:CAT4_3783
if 
  $c3_rand_escort == 0
goto_if_false @CAT4_3831
40@ = create_object #KEV_SAFE {x} 820.5 {y} 9.7 {z} 1003.216
goto @CAT4_3854

:CAT4_3831
40@ = create_object #MAN_SAFENEW {x} 820.5 {y} 9.7 {z} 1003.216

:CAT4_3854
set_object_heading 40@ {heading} 90.0
if 
  89@ == 1
goto_if_false @CAT4_3903
if 
  does_blip_exist 115@
goto_if_false @CAT4_3903
remove_blip 115@

:CAT4_3903
if 
  96@ <> 0
goto_if_false @CAT4_4150
if 
  88@ == 1
goto_if_false @CAT4_4150
if 
  does_blip_exist 112@
goto_if_false @CAT4_3962
remove_blip 112@
clear_prints 

:CAT4_3962
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4150
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 823.13 {y} 2.2 {z} 1003.18
set_char_heading $catalina {heading} 107.0
set_char_area_visible $catalina {areaId} 3
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000
freeze_char_position_and_dont_load_collision $catalina {state} False
report_mission_audio_event_at_position 64@ {y} 65@ {z} 66@ {soundId} ScriptSound.SoundCat2SecurityAlarm
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12630

:CAT4_4067
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_4093
wait 0
goto @CAT4_4067

:CAT4_4093
print_now 'CATX_JE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_4113
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_4139
wait 0
goto @CAT4_4113

:CAT4_4139
clear_this_print 'CATX_JE'

:CAT4_4150
display_radar False
38@ = 1
goto @CAT4_4353

:CAT4_4168
if 
  38@ == 1
goto_if_false @CAT4_4353
if 
  does_object_exist 39@
goto_if_false @CAT4_4207
delete_object 39@

:CAT4_4207
if 
  does_object_exist 40@
goto_if_false @CAT4_4228
delete_object 40@

:CAT4_4228
clear_area 61@ {y} 62@ {z} 63@ {radius} 1000.0 {clearParticles} True
if 
  88@ == 1
goto_if_false @CAT4_4342
if 
  not does_blip_exist 112@
goto_if_false @CAT4_4342
112@ = add_blip_for_coord 61@ {y} 62@ {z} 63@
set_coord_blip_appearance 112@ {color} CoordAppearance.Friend
print_now 'CAT4_16' {time} 10000 {flag} 1
clear_help 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4342
freeze_char_position_and_dont_load_collision $catalina {state} True

:CAT4_4342
display_radar True
38@ = 0

:CAT4_4353
return 

:CAT4_4355
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_4406
41@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 1291.575 {y} 269.5648 {z} 18.5469
goto @CAT4_4426

:CAT4_4406
set_char_coordinates $scplayer {x} 1291.575 {y} 269.5648 {z} 18.5469

:CAT4_4426
set_char_heading $scplayer {heading} 60.0
57@ = create_object 363 {x} 1288.141 {y} 267.9079 {z} 18.5469
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4480
delete_char $catalina

:CAT4_4480
load_special_character 5 {modelName} 'CAT'

:CAT4_4493
if 
  not has_special_character_loaded 5
goto_if_false @CAT4_4519
wait 0
goto @CAT4_4493

:CAT4_4519
$catalina = create_char PedType.Special {modelId} 294 {x} 1288.277 {y} 268.9509 {z} 18.9469
set_char_get_out_upside_down_car $catalina {state} False
set_char_heading $catalina {heading} 321.0
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
shut_char_up_for_scripted_speech $catalina {state} True
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_4606
remove_char_from_group $catalina

:CAT4_4606
if 
  not is_car_dead 41@
goto_if_false @CAT4_4652
set_car_coordinates 41@ {x} 1297.0 {y} 278.0 {z} 18.0
set_car_heading 41@ {heading} 150.0

:CAT4_4652
276@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 276@
clear_group_decision_maker_event_response 276@ {event} Event.Damage
clear_group_decision_maker_event_response 276@ {event} Event.VehicleDamageWeapon
55@ = load_char_decision_maker DecisionMakerType.Empty
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $catalina {handleOrTemplate} 55@
task_toggle_ped_threat_scanner $catalina {onFoot} True {inCar} True {duringScriptTask} True
clear_char_decision_maker_event_response 55@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 55@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_shoot_rate $catalina {rate} 100
if 
  does_object_exist 57@
goto_if_false @CAT4_4821
task_pick_up_object $catalina {object} 57@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:CAT4_4821
if 
  not has_animation_loaded "MISC"
goto_if_false @CAT4_4851
wait 0
goto @CAT4_4821

:CAT4_4851
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 1284.625 {y} 257.5731 {z} 23.8334 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1284.5081 {y} 258.5662 {z} 23.824 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1284.625 {fromY} 257.5731 {fromZ} 23.8334 {toX} 1287.068 {toY} 258.5688 {toZ} 22.872 {time} 4500 {ease} True
camera_set_vector_track 1284.5081 {fromY} 258.5662 {fromZ} 23.824 {toX} 1287.1801 {toY} 259.5328 {toZ} 22.6311 {time} 4500 {ease} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5039
set_char_coordinates $catalina {x} 1288.277 {y} 268.9509 {z} 18.546
set_char_heading $catalina {heading} 321.0

:CAT4_5039
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
load_scene_in_direction 1284.625 {y} 257.5731 {z} 23.8334 {heading} 45.0
clear_area 1287.363 {y} 257.5327 {z} 23.0934 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:CAT4_5106
if 
  get_fading_status 
goto_if_false @CAT4_5130
wait 0
goto @CAT4_5106

:CAT4_5130
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_5151
if 
  97@ <> 10
goto_if_false @CAT4_6251
wait 0
if 
  97@ == 0
goto_if_false @CAT4_5301
start_char_facial_talk $scplayer {duration} 10000
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2623

:CAT4_5206
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5232
wait 0
goto @CAT4_5206

:CAT4_5232
print_now 'CAT2_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_5252
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5278
wait 0
goto @CAT4_5252

:CAT4_5278
clear_this_print 'CAT2_AB'
stop_char_facial_talk $scplayer
97@ = 1

:CAT4_5301
if 
  97@ == 1
goto_if_false @CAT4_5367
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5360
task_go_straight_to_coord $catalina {x} 1290.9301 {y} 269.75 {z} 18.5469 {speed} MoveState.Walk {time} 3000

:CAT4_5360
97@ = 2

:CAT4_5367
if 
  TIMERB > 3000
goto_if_false @CAT4_5599
if 
  97@ == 2
goto_if_false @CAT4_5599
camera_reset_new_scriptables 
set_fixed_camera_position 1292.4449 {y} 266.8836 {z} 19.0157 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1291.756 {y} 267.5977 {z} 19.1396 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2601

:CAT4_5464
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5490
wait 0
goto @CAT4_5464

:CAT4_5490
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5534
print_now 'CAT2_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000

:CAT4_5534
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5560
wait 0
goto @CAT4_5534

:CAT4_5560
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5581
stop_char_facial_talk $catalina

:CAT4_5581
clear_this_print 'CAT2_AC'
97@ = 3

:CAT4_5599
if 
  97@ == 3
goto_if_false @CAT4_5995
set_fixed_camera_position 1300.118 {y} 272.2002 {z} 20.6733 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1299.156 {y} 271.9637 {z} 20.5352 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5726
task_play_anim $catalina {animationName} "PASS_RIFLE_PED" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT4_5726
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12659

:CAT4_5733
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5759
wait 0
goto @CAT4_5733

:CAT4_5759
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5780
clear_char_tasks $catalina

:CAT4_5780
task_play_anim $scplayer {animationName} "PASS_RIFLE_PLY" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  does_object_exist 57@
goto_if_false @CAT4_5879
task_pick_up_object $scplayer {object} 57@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:CAT4_5879
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5903
start_char_facial_talk $catalina {duration} 10000

:CAT4_5903
print_now 'CATX_RB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_5923
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5949
wait 0
goto @CAT4_5923

:CAT4_5949
clear_this_print 'CATX_RB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5981
stop_char_facial_talk $catalina

:CAT4_5981
97@ = 4
TIMERA = 0

:CAT4_5995
if 
  97@ == 4
goto_if_false @CAT4_6150
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6053
task_go_straight_to_coord $catalina {x} 1292.8101 {y} 269.01 {z} 18.5469 {speed} MoveState.Walk {time} -1

:CAT4_6053
97@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2631

:CAT4_6067
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_6093
wait 0
goto @CAT4_6067

:CAT4_6093
print_now 'CAT2_JA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_6113
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_6139
wait 0
goto @CAT4_6113

:CAT4_6139
clear_this_print 'CAT2_JA'

:CAT4_6150
if 
  97@ == 5
goto_if_false @CAT4_6194
if 
  TIMERA > 1500
goto_if_false @CAT4_6194
97@ = 10

:CAT4_6194
if 
  TIMERB > 10000
goto_if_false @CAT4_6220
97@ = 10

:CAT4_6220
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT4_6244
clear_mission_audio MissionAudioSlot.Slot1
97@ = 10

:CAT4_6244
goto @CAT4_5151

:CAT4_6251
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if 
  does_object_exist 57@
goto_if_false @CAT4_6287
delete_object 57@

:CAT4_6287
camera_reset_new_scriptables 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_entry_exit 'GENOTB' {state} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6337
stop_char_facial_talk $catalina

:CAT4_6337
stop_char_facial_talk $scplayer
if 
  not is_car_dead 41@
goto_if_false @CAT4_6373
set_car_health 41@ {health} 1000
set_can_burst_car_tyres 41@ {state} False

:CAT4_6373
give_weapon_to_char $scplayer {weaponType} WeaponType.Satchel {ammo} 10
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6432
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_6432
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} False

:CAT4_6432
112@ = add_sprite_blip_for_coord 61@ {y} 62@ {z} 63@ {sprite} RadarSprite.CatalinaPink
print_now 'CAT4_01' {time} 10000 {flag} 1

:CAT4_6464
if 
  not has_model_loaded #KEV_SAFE
goto_if_false @CAT4_6491
wait 0
goto @CAT4_6464

:CAT4_6491
if 
  not has_model_loaded #MAN_SAFENEW
goto_if_false @CAT4_6518
wait 0
goto @CAT4_6491

:CAT4_6518
if or
  not has_model_loaded 348
  not has_model_loaded #RIDER1_DOOR
goto_if_false @CAT4_6550
wait 0
goto @CAT4_6518

:CAT4_6550
if 
  38@ <> 1
goto_if_false @CAT4_6833
wait 0
gosub @CAT4_2145
if 
  not locate_char_any_means_3d $scplayer {x} 64@ {y} 65@ {z} 66@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @CAT4_6628
gosub @CAT4_16165

:CAT4_6628
if 
  91@ == 1
goto_if_false @CAT4_6648
return 

:CAT4_6648
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT4_6686
88@ = 0
89@ = 0
90@ = 1
return 

:CAT4_6686
58@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Detonator
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_6826
if 
  275@ <> 1
goto_if_false @CAT4_6826
if 
  not is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_6826
88@ = 0
91@ = 1
print_now 'CAT4_2' {time} 10000 {flag} 1
return 

:CAT4_6826
goto @CAT4_6550

:CAT4_6833
remove_blip 112@
if 
  96@ == 0
goto_if_false @CAT4_9015
if 
  38@ == 1
goto_if_false @CAT4_9015
remove_animation "MISC"
clear_small_prints 
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 833.5528 {y} 9.9425 {z} 1003.91 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 832.7419 {y} 9.3669 {z} 1004.01 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1826
53@ = 0

:CAT4_6962
if 
  6 > 53@
goto_if_false @CAT4_7024
create_random_char 70@(53@,6f) {y} 76@(53@,6f) {z} 82@(53@,6f) {var_handle} 46@(53@,6i)
53@ += 1
goto @CAT4_6962

:CAT4_7024
display_radar False
96@ = 1
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_7056
if 
  97@ <> 10
goto_if_false @CAT4_8896
wait 0
if 
  97@ >= 2
goto_if_false @CAT4_7115
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CAT4_7115
play_mission_audio MissionAudioSlot.Slot3

:CAT4_7115
if 
  97@ == 0
goto_if_false @CAT4_7434
set_char_coordinates $scplayer {x} 832.4548 {y} 7.0794 {z} 1003.187
task_go_straight_to_coord $scplayer {x} 828.2866 {y} 8.2237 {z} 1003.187 {speed} MoveState.Walk {time} 5000
clear_area 828.2866 {y} 8.2237 {z} 1003.187 {radius} 2.0 {clearParticles} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7427
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_accuracy $catalina {accuracy} 90
clear_char_tasks $catalina
set_char_area_visible $catalina {areaId} 3
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_7276
remove_char_from_group $catalina

:CAT4_7276
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_7319
warp_char_from_car_to_coord $catalina {x} 833.5104 {y} 4.3569 {z} 1003.587
goto @CAT4_7339

:CAT4_7319
set_char_coordinates $catalina {x} 833.5104 {y} 4.3569 {z} 1003.187

:CAT4_7339
set_char_has_used_entry_exit $catalina {x} 1290.0 {y} 270.0 {radius} 10.0
set_char_heading $catalina {heading} 107.0
give_weapon_to_char $catalina {weaponType} WeaponType.DesertEagle {ammo} 10000
task_go_straight_to_coord $catalina {x} 824.3764 {y} 3.4945 {z} 1003.18 {speed} MoveState.Run {time} -1
clear_area 824.3764 {y} 3.4945 {z} 1003.18 {radius} 2.0 {clearParticles} True

:CAT4_7427
97@ = 1

:CAT4_7434
if 
  97@ == 1
goto_if_false @CAT4_8114
if 
  TIMERA > 2000
goto_if_false @CAT4_8114
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8107
clear_char_tasks $catalina
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 824.3764 {y} 3.4945 {z} 1003.18 {speed} MoveState.Run {time} 3000
task_aim_gun_at_coord -1 {x} 64@ {y} 65@ {z} 66@ {time} 5000
close_sequence_task 56@
perform_sequence_task $catalina {sequence} 56@
clear_sequence_task 56@
$played_ryder1_before = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2607

:CAT4_7569
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_7595
wait 0
goto @CAT4_7569

:CAT4_7595
print_now 'CAT2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7639
start_char_facial_talk $catalina {duration} 10000

:CAT4_7639
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_7665
wait 0
goto @CAT4_7639

:CAT4_7665
clear_this_print 'CAT2_DA'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7697
stop_char_facial_talk $catalina

:CAT4_7697
set_fixed_camera_position 829.9543 {y} 8.6043 {z} 1004.892 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 829.2075 {y} 7.9448 {z} 1004.806 {switchStyle} SwitchType.JumpCut
task_look_at_coord $scplayer {x} 824.17 {y} 3.95 {z} 1007.0 {time} 3000
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7839
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 824.3764 {y} 3.4945 {z} 1003.18
set_char_heading $catalina {heading} 107.0
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 5000

:CAT4_7839
53@ = 0

:CAT4_7846
if 
  6 > 53@
goto_if_false @CAT4_7965
if 
  not is_char_dead 46@(53@,6i)
goto_if_false @CAT4_7951
if or
  53@ == 0
  53@ == 3
  53@ == 5
goto_if_false @CAT4_7937
task_hands_up 46@(53@,6i) {time} 900000
goto @CAT4_7951

:CAT4_7937
task_duck 46@(53@,6i) {time} 900000

:CAT4_7951
53@ += 1
goto @CAT4_7846

:CAT4_7965
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2608

:CAT4_7972
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_7998
wait 0
goto @CAT4_7972

:CAT4_7998
print_now 'CAT2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8042
start_char_facial_talk $catalina {duration} 10000

:CAT4_8042
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8068
wait 0
goto @CAT4_8042

:CAT4_8068
clear_this_print 'CAT2_DB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8100
stop_char_facial_talk $catalina

:CAT4_8100
TIMERA = 0

:CAT4_8107
97@ = 2

:CAT4_8114
if 
  97@ == 2
goto_if_false @CAT4_8346
if 
  TIMERA > 500
goto_if_false @CAT4_8346
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8339
clear_char_tasks $catalina
task_stand_still $catalina {time} 900000
set_fixed_camera_position 821.8057 {y} 3.2657 {z} 1005.09 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 822.7056 {y} 3.6678 {z} 1004.921 {switchStyle} SwitchType.JumpCut
task_look_at_coord $scplayer {x} 824.17 {y} 3.95 {z} 1007.0 {time} 3000
task_look_at_coord $catalina {x} 824.17 {y} 3.95 {z} 1007.0 {time} 2000
task_aim_gun_at_coord $catalina {x} 819.55 {y} 5.55 {z} 1005.59 {time} 5000
report_mission_audio_event_at_position 64@ {y} 65@ {z} 66@ {soundId} ScriptSound.SoundCat2SecurityAlarm
print_now 'CAT4_3' {time} 5000 {flag} 1
TIMERA = 0

:CAT4_8339
97@ = 3

:CAT4_8346
if 
  97@ == 3
goto_if_false @CAT4_8609
if 
  TIMERA > 2000
goto_if_false @CAT4_8609
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8416
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 5000

:CAT4_8416
clear_this_print 'CAT4_3'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2613

:CAT4_8434
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_8460
wait 0
goto @CAT4_8434

:CAT4_8460
print_now 'CAT2_FA' {time} 10000 {flag} 1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8500
start_char_facial_talk $catalina {duration} 10000

:CAT4_8500
play_mission_audio MissionAudioSlot.Slot1

:CAT4_8504
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8530
wait 0
goto @CAT4_8504

:CAT4_8530
clear_this_print 'CAT2_FA'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8562
stop_char_facial_talk $catalina

:CAT4_8562
if 
  is_player_playing $player1
goto_if_false @CAT4_8588
task_achieve_heading $scplayer {heading} 112.0

:CAT4_8588
$flag_otb_robbing_peds_panic = 1
97@ = 4
TIMERA = 0

:CAT4_8609
if 
  97@ == 4
goto_if_false @CAT4_8863
if 
  TIMERA > 1000
goto_if_false @CAT4_8863
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8856
clear_char_tasks $catalina
set_fixed_camera_position 829.9543 {y} 8.6043 {z} 1004.892 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 829.2075 {y} 7.9448 {z} 1004.806 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8766
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_8766
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_8766
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2614

:CAT4_8773
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_8799
wait 0
goto @CAT4_8773

:CAT4_8799
print 'CAT2_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_8819
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8845
wait 0
goto @CAT4_8819

:CAT4_8845
clear_this_print 'CAT2_FB'

:CAT4_8856
97@ = 5

:CAT4_8863
if 
  TIMERB > 17000
goto_if_false @CAT4_8889
97@ = 10

:CAT4_8889
goto @CAT4_7056

:CAT4_8896
if 
  is_player_playing $player1
goto_if_false @CAT4_9015
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8962
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000

:CAT4_8962
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
60@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
96@ = 1
$flag_otb_robbing_peds_panic = 1
TIMERA = 0
TIMERB = 0
$game_timer1_cat4 = get_game_timer 

:CAT4_9015
TIMERB = 0

:CAT4_9022
if 
  117@ <> 1
goto_if_false @CAT4_13666
wait 0
58@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Detonator
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_9184
if 
  275@ <> 1
goto_if_false @CAT4_9184
if 
  not is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_9184
88@ = 0
91@ = 1
print_now 'CAT4_2' {time} 5000 {flag} 1
return 

:CAT4_9184
if 
  is_char_dead $catalina
goto_if_false @CAT4_9232
88@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_9232
if 
  108@ == 0
goto_if_false @CAT4_9275
print_help 'CAT4_43'
108@ = 1
TIMERB = 0

:CAT4_9275
if 
  108@ == 1
goto_if_false @CAT4_9342
if 
  TIMERB > 6000
goto_if_false @CAT4_9342
print_now 'CAT4_42' {time} 6000 {flag} 1
108@ = 2
TIMERB = 0

:CAT4_9342
if 
  2 >= 108@
goto_if_false @CAT4_9413
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @CAT4_9413
if 
  is_int_lvar_greater_than_int_lvar 60@ > 58@
goto_if_false @CAT4_9413
clear_help 
108@ = 3
TIMERB = 0

:CAT4_9413
if 
  108@ == 3
goto_if_false @CAT4_9491
if 
  TIMERB > 1500
goto_if_false @CAT4_9491
print_now 'CAT4_44' {time} 6000 {flag} 1
print_help 'CAT4_45'
108@ = 4
TIMERB = 0

:CAT4_9491
if 
  4 >= 108@
goto_if_false @CAT4_9598
if 
  does_object_exist 39@
goto_if_false @CAT4_9598
if 
  has_object_of_type_been_smashed 824.4123 {y} 10.8 {z} 1003.2 {radius} 10.0 {modelId} #RIDER1_DOOR
goto_if_false @CAT4_9598
if 
  TIMERB > 500
goto_if_false @CAT4_9598
clear_small_prints 
clear_help 
108@ = 5
TIMERB = 0

:CAT4_9598
if 
  108@ == 5
goto_if_false @CAT4_9783
clear_help 
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2609

:CAT4_9625
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_9651
wait 0
goto @CAT4_9625

:CAT4_9651
print 'CAT2_DC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9695
start_char_facial_talk $catalina {duration} 10000

:CAT4_9695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_9721
wait 0
goto @CAT4_9695

:CAT4_9721
clear_this_print 'CAT2_DC'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9753
stop_char_facial_talk $catalina

:CAT4_9753
print_now 'CAT4_46' {time} 10000 {flag} 1
108@ = 6
TIMERB = 0

:CAT4_9783
if 
  38@ == 1
goto_if_false @CAT4_10867
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 0
goto_if_false @CAT4_9844
94@ = 1
$game_timer1_cat4 = get_game_timer 

:CAT4_9844
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 1
goto_if_false @CAT4_10003
94@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2615

:CAT4_9889
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_9915
wait 0
goto @CAT4_9889

:CAT4_9915
play_mission_audio MissionAudioSlot.Slot1

:CAT4_9919
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_9945
wait 0
goto @CAT4_9919

:CAT4_9945
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9998
clear_char_tasks $catalina
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_9998
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_9998
$game_timer1_cat4 = get_game_timer 

:CAT4_10003
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 2
goto_if_false @CAT4_10109
94@ = 3
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12677

:CAT4_10048
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10074
wait 0
goto @CAT4_10048

:CAT4_10074
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10078
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10104
wait 0
goto @CAT4_10078

:CAT4_10104
$game_timer1_cat4 = get_game_timer 

:CAT4_10109
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 3
goto_if_false @CAT4_10234
if 
  $flag_has_safe_been_robbed_cat4 > 5000
goto_if_false @CAT4_10234
94@ = 4
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2611

:CAT4_10173
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10199
wait 0
goto @CAT4_10173

:CAT4_10199
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10203
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10229
wait 0
goto @CAT4_10203

:CAT4_10229
$game_timer1_cat4 = get_game_timer 

:CAT4_10234
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 4
goto_if_false @CAT4_10359
if 
  $flag_has_safe_been_robbed_cat4 > 10000
goto_if_false @CAT4_10359
94@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2610

:CAT4_10298
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10324
wait 0
goto @CAT4_10298

:CAT4_10324
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10328
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10354
wait 0
goto @CAT4_10328

:CAT4_10354
$game_timer1_cat4 = get_game_timer 

:CAT4_10359
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 5
goto_if_false @CAT4_10421
if 
  $flag_has_safe_been_robbed_cat4 > 10000
goto_if_false @CAT4_10421
94@ = 6
$game_timer1_cat4 = get_game_timer 

:CAT4_10421
$flag_has_safe_been_robbed_cat4 = get_game_timer 
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ > 1
goto_if_false @CAT4_10867
if 
  2 > 52@
goto_if_false @CAT4_10867
if 
  is_char_dead 46@(52@,6i)
goto_if_false @CAT4_10867
mark_char_as_no_longer_needed 46@(52@,6i)
if 
  not is_char_dead $catalina
goto_if_false @CAT4_10867
if 
  not is_char_shooting $catalina
goto_if_false @CAT4_10867
52@ += 1
if 
  2 > 52@
goto_if_false @CAT4_10843
clear_char_tasks $catalina
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_10593
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_10593
if 
  52@ == 2
goto_if_false @CAT4_10674
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12672

:CAT4_10618
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10644
wait 0
goto @CAT4_10618

:CAT4_10644
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10648
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10674
wait 0
goto @CAT4_10648

:CAT4_10674
if 
  52@ == 4
goto_if_false @CAT4_10755
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12677

:CAT4_10699
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10725
wait 0
goto @CAT4_10699

:CAT4_10725
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10729
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10755
wait 0
goto @CAT4_10729

:CAT4_10755
if 
  52@ == 5
goto_if_false @CAT4_10836
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12684

:CAT4_10780
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10806
wait 0
goto @CAT4_10780

:CAT4_10806
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10810
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10836
wait 0
goto @CAT4_10810

:CAT4_10836
goto @CAT4_10867

:CAT4_10843
clear_char_tasks $catalina
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000

:CAT4_10867
gosub @CAT4_2145
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 820.3084 {leftBottomY} -1.6925 {leftBottomZ} 1003.278 {rightTopX} 828.8 {rightTopY} 4.7199 {rightTopZ} 1008.079
goto_if_false @CAT4_10942
if 
  not is_char_dead $catalina
goto_if_false @CAT4_10942
set_char_health $catalina {health} 0

:CAT4_10942
if 
  103@ == 0
goto_if_false @CAT4_11192
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 823.89 {leftBottomY} 8.99 {leftBottomZ} 1000.4 {rightTopX} 826.18 {rightTopY} 11.98 {rightTopZ} 1009.72
goto_if_false @CAT4_11059
set_object_collision_damage_effect 39@ {state} True
freeze_object_position 39@ {state} False
break_object 39@ {intensity} 1
set_object_health 39@ {health} 0
103@ = 1
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade

:CAT4_11059
if 
  does_object_exist 39@
goto_if_false @CAT4_11192
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @CAT4_11192
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 823.89 {leftBottomY} 8.99 {leftBottomZ} 1000.4 {rightTopX} 826.18 {rightTopY} 11.98 {rightTopZ} 1009.72
goto_if_false @CAT4_11192
set_object_collision_damage_effect 39@ {state} True
freeze_object_position 39@ {state} False
break_object 39@ {intensity} 1
set_object_health 39@ {health} 0
103@ = 1
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade

:CAT4_11192
if 
  103@ == 1
goto_if_false @CAT4_11377
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_11377
clear_help 
clear_prints 
$c3_rand_escort = 1
mark_model_as_no_longer_needed #RIDER1_DOOR
switch_entry_exit 'GENOTB' {state} False
if 
  275@ == 0
goto_if_false @CAT4_11316
275@ = 1
TIMERA = 0

:CAT4_11316
delete_object 40@
40@ = create_object #MAN_SAFENEW {x} 820.5 {y} 9.7 {z} 1003.216
set_object_heading 40@ {heading} 90.0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_11377
freeze_char_position_and_dont_load_collision $catalina {state} False

:CAT4_11377
if 
  275@ == 1
goto_if_false @CAT4_13659
if 
  TIMERA > 500
goto_if_false @CAT4_13659
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade
53@ = 4

:CAT4_11440
if 
  6 > 53@
goto_if_false @CAT4_11481
mark_char_as_no_longer_needed 46@(53@,6i)
53@ += 1
goto @CAT4_11440

:CAT4_11481
if 
  does_object_exist 39@
goto_if_false @CAT4_11502
delete_object 39@

:CAT4_11502
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_ped_density_multiplier 0.0
set_fixed_camera_position 823.9662 {y} 11.5153 {z} 1005.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 823.2487 {y} 11.0891 {z} 1005.26 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 824.8268 {y} 10.0672 {z} 1003.187
set_char_heading $scplayer {heading} 100.0
set_char_area_visible $scplayer {areaId} 3
set_area_visible 3
if 
  not is_char_dead $catalina
goto_if_false @CAT4_11684
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 827.95 {y} 9.21 {z} 1003.13
set_char_heading $catalina {heading} 93.0
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
99@ = 0

:CAT4_11684
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
clear_area 824.8268 {y} 10.0672 {z} 1003.187 {radius} 1000.0 {clearParticles} True
request_animation "BOMBER"

:CAT4_11731
if 
  not has_animation_loaded "BOMBER"
goto_if_false @CAT4_11763
wait 0
goto @CAT4_11731

:CAT4_11763
task_duck $scplayer {time} 3000
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_11792
if 
  97@ <> 10
goto_if_false @CAT4_13153
wait 0
if 
  97@ == 0
goto_if_false @CAT4_11858
if 
  TIMERA > 2000
goto_if_false @CAT4_11858
97@ = 1

:CAT4_11858
if 
  97@ == 1
goto_if_false @CAT4_12236
if 
  TIMERA > 2000
goto_if_false @CAT4_12236
97@ = 2
task_go_straight_to_coord $scplayer {x} 821.3832 {y} 9.7296 {z} 1003.195 {speed} MoveState.Walk {time} -1
if 
  not is_car_dead 41@
goto_if_false @CAT4_12009
freeze_car_position 41@ {state} True
set_car_visible 41@ {state} True
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_health 41@ {health} 1500
set_car_coordinates 41@ {x} 1297.0 {y} 278.0 {z} 18.0
set_car_heading 41@ {heading} 150.0

:CAT4_12009
request_model 599
request_model 283
request_model 346

:CAT4_12024
if or
  not has_model_loaded 599
  not has_model_loaded 283
  not has_model_loaded 346
goto_if_false @CAT4_12061
wait 0
goto @CAT4_12024

:CAT4_12061
34@ = create_car 599 {x} 1296.038 {y} 251.8959 {z} 18.4002
35@ = create_car 599 {x} 1301.326 {y} 265.0127 {z} 18.4007
36@ = create_car 599 {x} 1308.3979 {y} 278.7967 {z} 18.546
set_car_heading 34@ {heading} 11.7173
set_car_heading 35@ {heading} 70.3422
set_car_heading 36@ {heading} 119.5617
43@ = create_char_inside_car 34@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 1000
44@ = create_char_inside_car 35@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 1000
45@ = create_char_inside_car 36@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 1000
TIMERA = 0

:CAT4_12236
if 
  97@ == 2
goto_if_false @CAT4_12718
if 
  TIMERA > 2000
goto_if_false @CAT4_12718
set_fixed_camera_position 819.5102 {y} 10.5367 {z} 1004.439 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 820.4842 {y} 10.324 {z} 1004.362 {switchStyle} SwitchType.JumpCut
56@ = open_sequence_task 
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 5000
close_sequence_task 56@
perform_sequence_task $scplayer {sequence} 56@
clear_sequence_task 56@
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12458
start_char_facial_talk $scplayer {duration} 100000

:CAT4_12458
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2626

:CAT4_12465
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12491
wait 0
goto @CAT4_12465

:CAT4_12491
print_now 'CAT2_GA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12511
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_12537
wait 0
goto @CAT4_12511

:CAT4_12537
clear_this_print 'CAT2_GA'
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12569
stop_char_facial_talk $scplayer

:CAT4_12569
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2616

:CAT4_12576
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12602
wait 0
goto @CAT4_12576

:CAT4_12602
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12626
start_char_facial_talk $catalina {duration} 10000

:CAT4_12626
print_now 'CAT2_GB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12646
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_12672
wait 0
goto @CAT4_12646

:CAT4_12672
clear_this_print 'CAT2_GB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12704
stop_char_facial_talk $catalina

:CAT4_12704
TIMERA = 0
97@ = 3

:CAT4_12718
if 
  97@ == 3
goto_if_false @CAT4_13055
if 
  TIMERA > 1000
goto_if_false @CAT4_13055
set_fixed_camera_position 832.2155 {y} 11.3956 {z} 1003.388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 831.3511 {y} 10.9217 {z} 1003.557 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2627

:CAT4_12813
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12839
wait 0
goto @CAT4_12813

:CAT4_12839
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 10.0
task_go_straight_to_coord -1 {x} 833.0 {y} 10.0 {z} 1003.0 {speed} MoveState.Run {time} -1
close_sequence_task 56@
perform_sequence_task $scplayer {sequence} 56@
clear_sequence_task 56@
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12939
clear_char_tasks $catalina
task_go_straight_to_coord $catalina {x} 834.0 {y} 7.0 {z} 1003.0 {speed} MoveState.Run {time} -1

:CAT4_12939
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12963
start_char_facial_talk $scplayer {duration} 10000

:CAT4_12963
print_now 'CAT2_GC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12983
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_13009
wait 0
goto @CAT4_12983

:CAT4_13009
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_13030
stop_char_facial_talk $scplayer

:CAT4_13030
clear_this_print 'CAT2_GC'
TIMERA = 0
97@ = 4

:CAT4_13055
if 
  97@ == 4
goto_if_false @CAT4_13120
do_fade 1000 {direction} Fade.Out

:CAT4_13080
if 
  get_fading_status 
goto_if_false @CAT4_13104
wait 0
goto @CAT4_13080

:CAT4_13104
make_player_gang_reappear 
TIMERA = 0
97@ = 5

:CAT4_13120
if 
  TIMERB > 14800
goto_if_false @CAT4_13146
97@ = 10

:CAT4_13146
goto @CAT4_11792

:CAT4_13153
set_area_visible 0
set_char_coordinates $scplayer {x} 1292.7209 {y} 271.0581 {z} 18.5469
set_char_has_used_entry_exit $scplayer {x} 833.0 {y} 9.0 {radius} 10.0
load_scene 1292.7209 {y} 271.0581 {z} 18.5469
set_char_heading $scplayer {heading} 333.0
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Detonator
goto_if_false @CAT4_13249
set_current_char_weapon $scplayer {weaponType} WeaponType.Detonator

:CAT4_13249
if 
  not is_char_dead $catalina
goto_if_false @CAT4_13351
set_char_coordinates $catalina {x} 1292.66 {y} 275.2182 {z} 18.5547
set_char_heading $catalina {heading} 340.1134
set_char_cant_be_dragged_out $catalina {state} True
set_char_stay_in_car_when_jacked $catalina {state} True
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_has_used_entry_exit $catalina {x} 833.0 {y} 9.0 {radius} 10.0
set_char_area_visible $catalina {areaId} 0

:CAT4_13351
clear_area 1292.7209 {y} 271.0581 {z} 18.5469 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
if 
  not is_car_dead 41@
goto_if_false @CAT4_13532
if 
  is_car_passenger_seat_free 41@ {seat} SeatId.BikeRear
goto_if_false @CAT4_13484
if 
  not is_char_dead $catalina
goto_if_false @CAT4_13477
task_enter_car_as_passenger $catalina {vehicle} 41@ {time} -1 {seat} SeatId.BikeRear
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13470
set_group_follow_status $Players_Group {state} False

:CAT4_13470
106@ = 1

:CAT4_13477
goto @CAT4_13525

:CAT4_13484
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13518
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_13518
106@ = 0

:CAT4_13525
goto @CAT4_13566

:CAT4_13532
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13566
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_13566
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
remove_animation "BOMBER"
display_radar True
delete_object 39@
delete_object 40@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mark_model_as_no_longer_needed #MAN_SAFENEW
mark_model_as_no_longer_needed #KEV_SAFE
set_radio_channel RadioChannel.KRose
117@ = 1
remove_blip 112@
88@ = 0
89@ = 1

:CAT4_13659
goto @CAT4_9022

:CAT4_13666
88@ = 0
89@ = 1
return 

:CAT4_13682
281@ = 0
277@ = 872.9051
278@ = -30.3161
279@ = 62.1893
set_car_density_multiplier 0.0
gosub @CAT4_2145

:CAT4_13733
if 
  90@ <> 1
goto_if_false @CAT4_16144
wait 0
gosub @CAT4_2145
if 
  98@ == 0
goto_if_false @CAT4_14479
if 
  38@ == 0
goto_if_false @CAT4_14479
alter_wanted_level $player1 {wantedLevel} 4
94@ = 4
display_radar True
set_char_heading $scplayer {heading} 333.0
set_camera_behind_player 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_14211
set_char_accuracy $catalina {accuracy} 100
if 
  not is_car_dead 41@
goto_if_false @CAT4_14121
42@ = get_car_model 41@
if and
  is_car_passenger_seat_free 41@ {seat} SeatId.BikeRear
  is_this_model_a_car 42@
goto_if_false @CAT4_14024
set_char_cant_be_dragged_out $catalina {state} True
set_char_stay_in_car_when_jacked $catalina {state} True
114@ = add_blip_for_car 41@
set_blip_as_friendly 114@ {state} True
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12613

:CAT4_13934
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_13960
wait 0
goto @CAT4_13934

:CAT4_13960
print_now 'CATX_BF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_13980
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14006
wait 0
goto @CAT4_13980

:CAT4_14006
clear_this_print 'CATX_BF'
goto @CAT4_14114

:CAT4_14024
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12647

:CAT4_14031
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_14057
wait 0
goto @CAT4_14031

:CAT4_14057
print_now 'CATX_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_14077
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14103
wait 0
goto @CAT4_14077

:CAT4_14103
clear_this_print 'CATX_NA'

:CAT4_14114
goto @CAT4_14211

:CAT4_14121
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12647

:CAT4_14128
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_14154
wait 0
goto @CAT4_14128

:CAT4_14154
print_now 'CATX_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_14174
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14200
wait 0
goto @CAT4_14174

:CAT4_14200
clear_this_print 'CATX_NA'

:CAT4_14211
if 
  not is_char_dead 43@
goto_if_false @CAT4_14298
if 
  not is_car_dead 34@
goto_if_false @CAT4_14298
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 43@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 43@ {handleOrTemplate} 54@

:CAT4_14298
if 
  not is_char_dead 44@
goto_if_false @CAT4_14385
if 
  not is_car_dead 35@
goto_if_false @CAT4_14385
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 44@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 44@ {handleOrTemplate} 54@

:CAT4_14385
if 
  not is_char_dead 45@
goto_if_false @CAT4_14472
if 
  not is_car_dead 36@
goto_if_false @CAT4_14472
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 36@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 45@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 45@ {handleOrTemplate} 54@

:CAT4_14472
98@ = 1

:CAT4_14479
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15083
if 
  98@ == 1
goto_if_false @CAT4_14618
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_car_as_no_longer_needed 41@
98@ = 2
if 
  does_blip_exist 115@
goto_if_false @CAT4_14576
remove_blip 115@

:CAT4_14576
if 
  does_blip_exist 116@
goto_if_false @CAT4_14597
remove_blip 116@

:CAT4_14597
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
98@ = 2

:CAT4_14618
if 
  98@ == 2
goto_if_false @CAT4_14915
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_14915
98@ = 3
281@ = 1
if 
  does_blip_exist 114@
goto_if_false @CAT4_14687
remove_blip 114@

:CAT4_14687
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_14721
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_14721
if 
  not is_car_dead 41@
goto_if_false @CAT4_14759
freeze_car_position 41@ {state} False
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT4_14759
if 
  93@ == 0
goto_if_false @CAT4_14814
if 
  not does_blip_exist 115@
goto_if_false @CAT4_14814
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow

:CAT4_14814
if 
  93@ == 1
goto_if_false @CAT4_14915
if 
  not is_char_dead $catalina
goto_if_false @CAT4_14915
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_14915
if 
  not does_blip_exist 116@
goto_if_false @CAT4_14915
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray
print_now 'CAT4_32' {time} 5000 {flag} 1

:CAT4_14915
if 
  98@ == 3
goto_if_false @CAT4_15031
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_14960
return 

:CAT4_14960
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15031
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_15031
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
99@ = 1
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
106@ = 0
98@ = 4

:CAT4_15031
if 
  98@ == 4
goto_if_false @CAT4_15076
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_15076
return 

:CAT4_15076
goto @CAT4_15115

:CAT4_15083
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_15115
if 
  93@ == 0
goto_if_false @CAT4_16137
if 
  locate_char_any_means_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CAT4_15175

:CAT4_15175
if 
  is_char_dead $catalina
goto_if_false @CAT4_15230
89@ = 0
91@ = 1
90@ = 0
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_15230
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15369
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_15369
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_15369
if and
  94@ >= 4
  is_int_lvar_greater_or_equal_to_int_lvar 110@ >= 94@
goto_if_false @CAT4_15369
if 
  94@ == 4
goto_if_false @CAT4_15362
shut_player_up $player1 {_p2} 1
if 
  TIMERA > 10000
goto_if_false @CAT4_15355
gosub @CAT4_16800

:CAT4_15355
goto @CAT4_15369

:CAT4_15362
gosub @CAT4_16800

:CAT4_15369
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16137
if and
  locate_char_any_means_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 277@ {y} 278@ {z} 279@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT4_16137
90@ = 1
91@ = 0
if 
  locate_char_in_car_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @CAT4_15544
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:CAT4_15544
set_player_control $player1 {state} False
switch_widescreen True
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_15576
if 
  97@ <> 10
goto_if_false @CAT4_16117
wait 0
clear_area 866.7373 {y} -24.0333 {z} 64.9955 {radius} 1000.0 {clearParticles} True
if 
  97@ == 0
goto_if_false @CAT4_15792
97@ = 1
set_fixed_camera_position 866.3945 {y} -23.1135 {z} 65.1866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 866.7373 {y} -24.0333 {z} 64.9955 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 2605

:CAT4_15709
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_15735
wait 0
goto @CAT4_15709

:CAT4_15735
print_now 'CAT2_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_15755
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_15781
wait 0
goto @CAT4_15755

:CAT4_15781
clear_this_print 'CAT2_CA'

:CAT4_15792
if 
  97@ == 1
goto_if_false @CAT4_15907
97@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12660

:CAT4_15824
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_15850
wait 0
goto @CAT4_15824

:CAT4_15850
print_now 'CATX_RC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_15870
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_15896
wait 0
goto @CAT4_15870

:CAT4_15896
clear_this_print 'CATX_RC'

:CAT4_15907
if 
  97@ == 2
goto_if_false @CAT4_16000
97@ = 3
TIMERA = 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16000
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_15979
remove_char_from_group $catalina

:CAT4_15979
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_16000
task_leave_any_car $catalina

:CAT4_16000
if 
  97@ == 3
goto_if_false @CAT4_16084
if 
  1500 > TIMERA
goto_if_false @CAT4_16084
97@ = 4
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16084
task_go_straight_to_coord $catalina {x} 869.84 {y} -26.24 {z} 63.1797 {speed} MoveState.Walk {time} -1

:CAT4_16084
if 
  TIMERB > 7000
goto_if_false @CAT4_16110
97@ = 10

:CAT4_16110
goto @CAT4_15576

:CAT4_16117
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 

:CAT4_16137
goto @CAT4_13733

:CAT4_16144
remove_blip 115@
90@ = 1
89@ = 0
return 

:CAT4_16165
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16754
if 
  93@ == 1
goto_if_false @CAT4_16222
if 
  is_char_shooting $catalina
goto_if_false @CAT4_16222
gosub @CAT4_17009

:CAT4_16222
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_16747
print_now 'CAT4_16' {time} 4000 {flag} 1
if 
  89@ == 1
goto_if_false @CAT4_16317
if 
  does_blip_exist 116@
goto_if_false @CAT4_16296
remove_blip 116@

:CAT4_16296
if 
  does_blip_exist 115@
goto_if_false @CAT4_16317
remove_blip 115@

:CAT4_16317
if 
  not does_blip_exist 113@
goto_if_false @CAT4_16364
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16364
113@ = add_blip_for_char $catalina
set_blip_as_friendly 113@ {state} True

:CAT4_16364
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_16747
wait 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16696
if 
  not locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @CAT4_16478
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_14' {time} 5000 {flag} 1
return 

:CAT4_16478
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @CAT4_16689
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True
remove_blip 113@
if 
  89@ == 1
goto_if_false @CAT4_16689
if 
  93@ == 0
goto_if_false @CAT4_16623
if 
  not does_blip_exist 115@
goto_if_false @CAT4_16623
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow
print_now 'CAT4_13' {time} 10000 {flag} 1

:CAT4_16623
if 
  93@ == 1
goto_if_false @CAT4_16689
if 
  not does_blip_exist 116@
goto_if_false @CAT4_16689
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray
print_now 'CAT4_32' {time} 5000 {flag} 1

:CAT4_16689
goto @CAT4_16740

:CAT4_16696
remove_blip 112@
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_16740
goto @CAT4_16364

:CAT4_16747
goto @CAT4_16798

:CAT4_16754
remove_blip 112@
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_16798
return 

:CAT4_16800
if 
  107@ == 0
goto_if_false @CAT4_16863
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16841
shut_char_up_for_scripted_speech $catalina {state} True

:CAT4_16841
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 222@(274@,52i)
107@ = 1

:CAT4_16863
if 
  107@ == 1
goto_if_false @CAT4_16921
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_16921
play_mission_audio MissionAudioSlot.Slot1
print_now 118@(274@,52s) {time} 10000 {flag} 1
107@ = 2

:CAT4_16921
if 
  107@ == 2
goto_if_false @CAT4_17007
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17007
107@ = 0
clear_this_print 118@(274@,52s)
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16993
shut_char_up_for_scripted_speech $catalina {state} False

:CAT4_16993
274@ += 1
94@ += 1

:CAT4_17007
return 

:CAT4_17009
if 
  95@ == 0
goto_if_false @CAT4_17126
95@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12661

:CAT4_17041
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17067
wait 0
goto @CAT4_17041

:CAT4_17067
print_now 'CATX_SA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17087
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17113
wait 0
goto @CAT4_17087

:CAT4_17113
clear_this_print 'CATX_SA'
return 

:CAT4_17126
if 
  95@ == 1
goto_if_false @CAT4_17243
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12662

:CAT4_17151
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17177
wait 0
goto @CAT4_17151

:CAT4_17177
print_now 'CATX_SB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17197
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17223
wait 0
goto @CAT4_17197

:CAT4_17223
clear_this_print 'CATX_SB'
95@ = 2
return 

:CAT4_17243
if 
  95@ == 2
goto_if_false @CAT4_17360
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12663

:CAT4_17268
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17294
wait 0
goto @CAT4_17268

:CAT4_17294
print_now 'CATX_SC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17314
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17340
wait 0
goto @CAT4_17314

:CAT4_17340
clear_this_print 'CATX_SC'
95@ = 3
return 

:CAT4_17360
if 
  95@ == 3
goto_if_false @CAT4_17477
95@ = 4
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12664

:CAT4_17392
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17418
wait 0
goto @CAT4_17392

:CAT4_17418
print_now 'CATX_SD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17438
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17464
wait 0
goto @CAT4_17438

:CAT4_17464
clear_this_print 'CATX_SD'
return 

:CAT4_17477
if 
  95@ == 4
goto_if_false @CAT4_17594
95@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12665

:CAT4_17509
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17535
wait 0
goto @CAT4_17509

:CAT4_17535
print_now 'CATX_SE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17555
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17581
wait 0
goto @CAT4_17555

:CAT4_17581
clear_this_print 'CATX_SE'
return 

:CAT4_17594
if 
  95@ == 5
goto_if_false @CAT4_17711
95@ = 6
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12666

:CAT4_17626
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17652
wait 0
goto @CAT4_17626

:CAT4_17652
print_now 'CATX_SF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17672
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17698
wait 0
goto @CAT4_17672

:CAT4_17698
clear_this_print 'CATX_SF'
return 

:CAT4_17711
if 
  95@ == 6
goto_if_false @CAT4_17828
95@ = 7
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12667

:CAT4_17743
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17769
wait 0
goto @CAT4_17743

:CAT4_17769
print_now 'CATX_SG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17789
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17815
wait 0
goto @CAT4_17789

:CAT4_17815
clear_this_print 'CATX_SG'
return 

:CAT4_17828
if 
  95@ == 7
goto_if_false @CAT4_17945
95@ = 8
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12668

:CAT4_17860
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17886
wait 0
goto @CAT4_17860

:CAT4_17886
print_now 'CATX_SH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17906
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17932
wait 0
goto @CAT4_17906

:CAT4_17932
clear_this_print 'CATX_SH'
return 

:CAT4_17945
if 
  95@ == 8
goto_if_false @CAT4_18062
95@ = 9
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12672

:CAT4_17977
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18003
wait 0
goto @CAT4_17977

:CAT4_18003
print_now 'CATX_TD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18023
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18049
wait 0
goto @CAT4_18023

:CAT4_18049
clear_this_print 'CATX_TD'
return 

:CAT4_18062
if 
  95@ == 9
goto_if_false @CAT4_18179
95@ = 10
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12677

:CAT4_18094
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18120
wait 0
goto @CAT4_18094

:CAT4_18120
print_now 'CATX_TJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18140
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18166
wait 0
goto @CAT4_18140

:CAT4_18166
clear_this_print 'CATX_TJ'
return 

:CAT4_18179
if 
  95@ == 10
goto_if_false @CAT4_18296
95@ = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12684

:CAT4_18211
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18237
wait 0
goto @CAT4_18211

:CAT4_18237
print_now 'CATX_TQ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18257
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18283
wait 0
goto @CAT4_18257

:CAT4_18283
clear_this_print 'CATX_TQ'
return 

:CAT4_18296
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_char $catalina
103@ = 0
return 

:CAT4_18326
print_with_number_big 'M_PASS' {num} 2000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 2000
clear_wanted_level $player1
play_mission_passed_tune 1
$cat_counter += 1
$cat_getaway_dialogue += 1
register_mission_passed 'CAT_4'
player_made_progress 1
if 
  $cat_liquor_banter == 1
goto_if_false @CAT4_18416
$cat_liquor_banter = 2

:CAT4_18416
$flag_cat_mission4_passed = 1
return 

:CAT4_18425
clear_help 
$onmission = 0
display_radar True
switch_entry_exit 'GENOTB' {state} True
if 
  is_player_playing $player1
goto_if_false @CAT4_18474
shut_player_up $player1 {_p2} 0

:CAT4_18474
if 
  not is_char_dead $catalina
goto_if_false @CAT4_18505
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT4_18505
if 
  not is_car_dead 41@
goto_if_false @CAT4_18550
freeze_car_position 41@ {state} False
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_can_burst_car_tyres 41@ {state} True

:CAT4_18550
remove_char_elegantly $catalina
53@ = 4

:CAT4_18562
if 
  6 > 53@
goto_if_false @CAT4_18603
mark_char_as_no_longer_needed 46@(53@,6i)
53@ += 1
goto @CAT4_18562

:CAT4_18603
remove_animation "MISC"
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 407
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 277
mark_model_as_no_longer_needed #ROADWORKBARRIER1
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 41@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_object_as_no_longer_needed 39@
mark_object_as_no_longer_needed 40@
mark_model_as_no_longer_needed #RIDER1_DOOR
mark_model_as_no_longer_needed #KEV_SAFE
mark_model_as_no_longer_needed #MAN_SAFENEW
mark_car_as_no_longer_needed 41@
$played_ryder1_before = 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_18777
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:CAT4_18777
remove_animation "BOMBER"
$flag_otb_robbing_peds_panic = 0
$timer_mobile_start = get_game_timer 
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
$spray_shop4 = add_short_range_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_decision_maker 54@
remove_decision_maker 55@
remove_all_script_fires 
mission_has_finished 
set_everyone_ignore_player $player1 {state} False
set_group_separation_range $Players_Group {range} 30.0
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$c3_rand_escort = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
104@ = 0
102@ = 0
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
return 

//-------------Mission 45---------------
// Originally: King in Exile

:CATCUT
script_name 'CATCUT'
gosub @CATCUT_302
if 
  has_deatharrest_been_executed 
goto_if_false @CATCUT_38
gosub @CATCUT_795

:CATCUT_38
gosub @CATCUT_912
terminate_this_script 

:CATCUT_47
switch_start 34@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CATCUT_300 {caseNum1} 0 {caseLabel1} @CATCUT_110 {caseNum2} -1 {caseLabel2} @CATCUT_300 {caseNum3} -1 {caseLabel3} @CATCUT_300 {caseNum4} -1 {caseLabel4} @CATCUT_300 {caseNum5} -1 {caseLabel5} @CATCUT_300 {caseNum6} -1 {caseLabel6} @CATCUT_300 {caseNum7} -1 {caseLabel7} @CATCUT_300

:CATCUT_110
set_var_text_label s$game_timer2_cat4[0] = 'MCAT01A'
set_var_text_label s$game_timer2_cat4[1] = 'MCAT01B'
set_var_text_label s$game_timer2_cat4[2] = 'MCAT01C'
set_var_text_label s$game_timer2_cat4[3] = 'MCAT01D'
set_var_text_label s$game_timer2_cat4[4] = 'MCAT01E'
set_var_text_label s$game_timer2_cat4[5] = 'MCAT01F'
set_var_text_label s$game_timer2_cat4[6] = 'MCAT01G'
set_var_text_label s$game_timer2_cat4[7] = 'MCAT01H'
set_lvar_int_to_constant 39@ = 3625
set_lvar_int_to_constant 40@ = 3600
set_lvar_int_to_constant 41@ = 3601
set_lvar_int_to_constant 42@ = 3626
set_lvar_int_to_constant 43@ = 3602
set_lvar_int_to_constant 44@ = 3627
set_lvar_int_to_constant 45@ = 3603
set_lvar_int_to_constant 46@ = 3628
38@ = 7
goto @CATCUT_300

:CATCUT_300
return 

:CATCUT_302
register_mission_given 
$onmission = 1
load_mission_text 'BCESAR2'
wait 0
set_area_visible 2
load_cutscene 'BCESAR2'

:CATCUT_341
if 
  not has_cutscene_loaded 
goto_if_false @CATCUT_365
wait 0
goto @CATCUT_341

:CATCUT_365
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATCUT_374
if 
  not has_cutscene_finished 
goto_if_false @CATCUT_398
wait 0
goto @CATCUT_374

:CATCUT_398
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATCUT_411
if 
  get_fading_status 
goto_if_false @CATCUT_435
wait 0
goto @CATCUT_411

:CATCUT_435
clear_cutscene 
set_area_visible 0
request_model 330

:CATCUT_446
if 
  not has_model_loaded 330
goto_if_false @CATCUT_473
wait 0
goto @CATCUT_446

:CATCUT_473
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200
35@ = 0
36@ = 0
37@ = 0
34@ = 0
gosub @CATCUT_47
set_char_coordinates $scplayer {x} -2042.129 {y} -2528.791 {z} 29.625
set_char_heading $scplayer {heading} 284.27
load_scene -2042.129 {y} -2528.791 {z} 29.625
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:CATCUT_571
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CATCUT_597
wait 0
goto @CATCUT_571

:CATCUT_597
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:CATCUT_608
if 
  not has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CATCUT_660
wait 0
if 
  1500 > TIMERA
goto_if_false @CATCUT_653
goto @CATCUT_660

:CATCUT_653
goto @CATCUT_608

:CATCUT_660
task_use_mobile_phone $scplayer {start} True
TIMERA = 0

:CATCUT_674
if 
  1500 > TIMERA
goto_if_false @CATCUT_704
wait 0
goto @CATCUT_674

:CATCUT_704
set_player_control $player1 {state} True

:CATCUT_711
if 
  35@ <> 8
goto_if_false @CATCUT_771
wait 0
gosub @CATCUT_933
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CATCUT_764
goto @CATCUT_771

:CATCUT_764
goto @CATCUT_711

:CATCUT_771
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
task_use_mobile_phone $scplayer {start} False
goto @CATCUT_813

:CATCUT_795
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CATCUT_813
remove_blip $bcrash_contact_blip
clear_wanted_level $player1
$flag_trailor_cutscene = 1
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
remove_blip $1731
$1731 = add_short_range_sprite_blip_for_contact_point $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14] {sprite} RadarSprite.SaveGame
change_blip_display $1731 {display} BlipDisplay.BlipOnly
remove_pickup $grove_save_pickup[14]
$grove_save_pickup[14] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14]
$number_of_save_icons = 15
return 

:CATCUT_912
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
mark_model_as_no_longer_needed 330
return 

:CATCUT_933
if or
  36@ == 0
  36@ == 1
goto_if_false @CATCUT_984
if 
  is_int_lvar_greater_or_equal_to_int_lvar 38@ >= 35@
goto_if_false @CATCUT_984
gosub @CATCUT_1042

:CATCUT_984
if 
  36@ == 2
goto_if_false @CATCUT_1040
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CATCUT_1040
36@ = 0
35@ += 1
37@ = 0
clear_prints 

:CATCUT_1040
return 

:CATCUT_1042
if 
  36@ == 0
goto_if_false @CATCUT_1078
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39@(35@,8i)
36@ = 1

:CATCUT_1078
if 
  36@ == 1
goto_if_false @CATCUT_1136
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CATCUT_1136
print_now $game_timer2_cat4(35@,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
36@ = 2

:CATCUT_1136
return 

//-------------Mission 46---------------
// Originally: Body Harvest

:TRUTH1
script_name 'TRUTH1'
gosub @TRUTH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH1_38
gosub @TRUTH1_16357

:TRUTH1_38
gosub @TRUTH1_16513
terminate_this_script 

:TRUTH1_47
register_mission_given 
load_mission_text 'TRU1'
$onmission = 1
wait 0
set_area_visible 12
load_cutscene 'TRUTH_1'

:TRUTH1_86
if 
  not has_cutscene_loaded 
goto_if_false @TRUTH1_110
wait 0
goto @TRUTH1_86

:TRUTH1_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:TRUTH1_119
if 
  not has_cutscene_finished 
goto_if_false @TRUTH1_143
wait 0
goto @TRUTH1_119

:TRUTH1_143
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:TRUTH1_158
if 
  get_fading_status 
goto_if_false @TRUTH1_182
wait 0
goto @TRUTH1_158

:TRUTH1_182
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
request_model 532
request_model 531
request_model #KMB_MARIJUANA
request_car_recording 348
request_model #SW_HAYBREAK02
request_model 357
request_model 478
request_model 337
request_model 157
request_model 160
request_model 162
load_all_models_now 

:TRUTH1_251
if or
  not has_model_loaded 532
  not has_model_loaded 531
  not has_model_loaded #KMB_MARIJUANA
  not has_model_loaded 157
  not has_model_loaded 160
goto_if_false @TRUTH1_298
wait 0
goto @TRUTH1_251

:TRUTH1_298
if or
  not has_car_recording_been_loaded 348
  not has_model_loaded #SW_HAYBREAK02
  not has_model_loaded 357
  not has_model_loaded 162
goto_if_false @TRUTH1_340
wait 0
goto @TRUTH1_298

:TRUTH1_340
if or
  not has_model_loaded 478
  not has_model_loaded 337
goto_if_false @TRUTH1_372
wait 0
goto @TRUTH1_340

:TRUTH1_372
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
116@ = add_blip_for_coord -1047.593 {y} -1347.254 {z} 129.216
97@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 97@ {event} Event.DraggedOutCar
add_char_decision_maker_event_response 97@ {event} Event.DraggedOutCar {taskId} TaskId.ComplexKillPedOnFoot {respect} 50.0 {hate} 50.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
98@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_char_coordinates $scplayer {x} -2195.8999 {y} -2258.0291 {z} 30.0
set_char_heading $scplayer {heading} 141.0
load_scene_in_direction -2196.46 {y} -2256.96 {z} 31.43 {heading} 141.0
do_fade 500 {direction} Fade.In
117@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
118@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
print_now 'TRU1_1' {time} 10000 {flag} 1
if 
  122@ == 100
goto_if_false @TRUTH1_888
43@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
44@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
45@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
46@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
47@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
48@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
122@ = 101

:TRUTH1_888
set_wanted_multiplier 0.3
if 
  $7008 > 0
goto_if_false @TRUTH1_935
set_up_skip -1084.219 {y} -1341.156 {z} 128.365 {heading} 257.771

:TRUTH1_935
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TRUTH1_961
goto @TRUTH1_16375

:TRUTH1_961
if 
  118@ == 0
goto_if_false @TRUTH1_4518
if 
  117@ == 0
goto_if_false @TRUTH1_2275
if 
  locate_char_any_means_3d $scplayer {x} -1047.593 {y} -1347.254 {z} 129.39 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TRUTH1_2275
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 116@
do_fade 500 {direction} Fade.Out

:TRUTH1_1068
if 
  get_fading_status 
goto_if_false @TRUTH1_1092
wait 0
goto @TRUTH1_1068

:TRUTH1_1092
if 
  $7008 == 0
goto_if_false @TRUTH1_1117
$7008 = 1

:TRUTH1_1117
clear_skip 
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_1143
$car = store_car_char_is_in_no_save $scplayer

:TRUTH1_1143
34@ = create_car 532 {x} -1060.25 {y} -1044.209 {z} 128.2188
set_car_heading 34@ {heading} 84.2638
set_car_straight_line_distance 34@ {distance} 100
car_goto_coordinates 34@ {x} -1136.78 {y} -1044.209 {z} 128.2188
set_car_cruise_speed 34@ {maxSpeed} 7.0
38@ = create_char_inside_car 34@ {pedType} PedType.Mission1 {modelId} 160
wait 500
do_fade 1000 {direction} Fade.In
set_fixed_camera_position -1073.802 {y} -1038.203 {z} 128.492 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_1295
point_camera_at_car 34@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:TRUTH1_1295
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_1336
$car = store_car_char_is_in_no_save $scplayer
set_car_heading $car {heading} 355.69
goto @TRUTH1_1346

:TRUTH1_1336
set_char_heading $scplayer {heading} 355.73

:TRUTH1_1346
90@ = create_car 531 {x} -1043.989 {y} -1312.677 {z} 128.772
set_car_heading 90@ {heading} 1.243
set_can_burst_car_tyres 90@ {state} False
set_car_health 90@ {health} 2000
60@ = create_object_no_offset #SW_HAYBREAK02 {x} -1053.792 {y} -1187.624 {z} 129.396
61@ = create_object_no_offset #SW_HAYBREAK02 {x} -1038.506 {y} -1154.722 {z} 129.699
62@ = create_object_no_offset #SW_HAYBREAK02 {x} -1105.4189 {y} -1112.451 {z} 128.864
63@ = create_object_no_offset #SW_HAYBREAK02 {x} -1182.3459 {y} -1043.797 {z} 129.699
64@ = create_object_no_offset #SW_HAYBREAK02 {x} -1141.389 {y} -1008.254 {z} 129.735
65@ = create_object_no_offset #SW_HAYBREAK02 {x} -1197.385 {y} -1084.951 {z} 129.743
66@ = create_object_no_offset #SW_HAYBREAK02 {x} -1161.353 {y} -1117.198 {z} 129.049
35@ = create_car 531 {x} -1115.569 {y} -1115.231 {z} 128.366
39@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 160
set_car_heading 35@ {heading} 274.604
49@ = create_char PedType.Mission1 {modelId} 160 {x} -1064.3409 {y} -1283.63 {z} 128.247
set_char_heading 49@ {heading} 116.09
task_play_anim 49@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 97@
set_char_health 49@ {health} 50
set_follow_node_threshold_distance 49@ {range} 100.0
give_weapon_to_char 49@ {weaponType} WeaponType.Rifle {ammo} 99999
50@ = create_char PedType.Mission1 {modelId} 157 {x} -1074.646 {y} -1095.812 {z} 128.245
set_char_heading 50@ {heading} 96.069
task_play_anim 50@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 50@ {handleOrTemplate} 97@
set_char_health 50@ {health} 50
set_follow_node_threshold_distance 50@ {range} 100.0
52@ = create_char PedType.Mission1 {modelId} 157 {x} -1135.339 {y} -1134.299 {z} 128.259
set_char_heading 52@ {heading} 90.157
task_play_anim 52@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 52@ {handleOrTemplate} 97@
set_char_health 52@ {health} 50
set_follow_node_threshold_distance 52@ {range} 100.0
53@ = create_char PedType.Mission1 {modelId} 162 {x} -1121.739 {y} -1095.64 {z} 128.247
set_char_heading 53@ {heading} 94.64
task_play_anim 53@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 53@ {handleOrTemplate} 97@
set_char_health 53@ {health} 50
54@ = create_char PedType.Mission1 {modelId} 157 {x} -1121.713 {y} -1084.165 {z} 128.247
set_char_heading 54@ {heading} 79.746
task_play_anim 54@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 97@
set_char_health 54@ {health} 50
set_follow_node_threshold_distance 54@ {range} 100.0
55@ = create_char PedType.Mission1 {modelId} 162 {x} -1159.3669 {y} -1134.375 {z} 128.259
set_char_heading 55@ {heading} 270.749
task_play_anim 55@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 55@ {handleOrTemplate} 97@
set_char_health 55@ {health} 50
set_follow_node_threshold_distance 55@ {range} 100.0
print_now 'TRU1_2' {time} 7000 {flag} 1
wait 200
51@ = create_char PedType.Mission1 {modelId} 162 {x} -1074.332 {y} -1084.3879 {z} 128.244
set_char_heading 51@ {heading} 60.659
task_play_anim 51@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 51@ {handleOrTemplate} 97@
set_char_health 51@ {health} 50
set_follow_node_threshold_distance 51@ {range} 30.0
TIMERA = 0
TIMERB = 0
117@ = 1

:TRUTH1_2275
if 
  TIMERB > 1800
goto_if_false @TRUTH1_2393
if 
  117@ == 1
goto_if_false @TRUTH1_2393
121@ = 0
skip_cutscene_start_internal @TRUTH1_2749
if 
  not is_car_dead 35@
goto_if_false @TRUTH1_2379
set_car_straight_line_distance 35@ {distance} 100
car_goto_coordinates 35@ {x} -1061.059 {y} -1116.129 {z} 128.366
set_car_cruise_speed 35@ {maxSpeed} 10.0

:TRUTH1_2379
TIMERB = 0
117@ = 2

:TRUTH1_2393
if 
  117@ == 2
goto_if_false @TRUTH1_2587
if 
  TIMERB > 5000
goto_if_false @TRUTH1_2587
set_fixed_camera_position -1057.875 {y} -1120.592 {z} 136.4117 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1058.704 {y} -1120.089 {z} 136.1667 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_2557
set_car_coordinates 34@ {x} -1082.1379 {y} -1046.8929 {z} 129.29
set_car_heading 34@ {heading} 84.2638
car_goto_coordinates 34@ {x} -1195.58 {y} -1045.87 {z} 129.1
set_car_cruise_speed 34@ {maxSpeed} 7.0

:TRUTH1_2557
print_now 'TRU1_3' {time} 7000 {flag} 1
TIMERB = 0
117@ = 3

:TRUTH1_2587
if 
  117@ == 3
goto_if_false @TRUTH1_2705
if 
  TIMERB > 7000
goto_if_false @TRUTH1_2705
set_fixed_camera_position -1035.782 {y} -1331.041 {z} 134.0494 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1036.184 {y} -1330.134 {z} 133.9223 {switchStyle} SwitchType.JumpCut
print_now 'TRU1_4' {time} 10000 {flag} 1
TIMERB = 0
117@ = 4

:TRUTH1_2705
if 
  117@ == 4
goto_if_false @TRUTH1_4518
if 
  TIMERB > 5000
goto_if_false @TRUTH1_4518
121@ = 1

:TRUTH1_2749
skip_cutscene_end 
if 
  121@ == 0
goto_if_false @TRUTH1_3570
do_fade 500 {direction} Fade.Out

:TRUTH1_2776
if 
  get_fading_status 
goto_if_false @TRUTH1_2800
wait 0
goto @TRUTH1_2776

:TRUTH1_2800
delete_car 34@
delete_car 35@
delete_object 43@
delete_object 44@
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_char 38@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
delete_char 55@
49@ = create_char PedType.Mission1 {modelId} 160 {x} -1064.3409 {y} -1283.63 {z} 128.247
set_char_heading 49@ {heading} 116.09
task_play_anim 49@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 97@
set_char_health 49@ {health} 50
set_follow_node_threshold_distance 49@ {range} 100.0
give_weapon_to_char 49@ {weaponType} WeaponType.Rifle {ammo} 99999
50@ = create_char PedType.Mission1 {modelId} 157 {x} -1074.646 {y} -1095.812 {z} 128.245
set_char_heading 50@ {heading} 96.069
task_play_anim 50@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 50@ {handleOrTemplate} 97@
set_char_health 50@ {health} 50
set_follow_node_threshold_distance 50@ {range} 100.0
51@ = create_char PedType.Mission1 {modelId} 162 {x} -1074.332 {y} -1084.3879 {z} 128.244
set_char_heading 51@ {heading} 60.659
task_play_anim 51@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 51@ {handleOrTemplate} 97@
set_char_health 51@ {health} 50
set_follow_node_threshold_distance 51@ {range} 100.0
52@ = create_char PedType.Mission1 {modelId} 157 {x} -1135.339 {y} -1134.299 {z} 128.259
set_char_heading 52@ {heading} 90.157
task_play_anim 52@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 52@ {handleOrTemplate} 97@
set_char_health 52@ {health} 50
set_follow_node_threshold_distance 52@ {range} 100.0
53@ = create_char PedType.Mission1 {modelId} 162 {x} -1121.739 {y} -1095.64 {z} 128.247
set_char_heading 53@ {heading} 94.64
task_play_anim 53@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 53@ {handleOrTemplate} 97@
set_char_health 53@ {health} 50
54@ = create_char PedType.Mission1 {modelId} 157 {x} -1121.713 {y} -1084.165 {z} 128.247
set_char_heading 54@ {heading} 79.746
task_play_anim 54@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 97@
set_char_health 54@ {health} 50
set_follow_node_threshold_distance 54@ {range} 100.0
55@ = create_char PedType.Mission1 {modelId} 162 {x} -1159.3669 {y} -1134.375 {z} 128.259
set_char_heading 55@ {heading} 270.749
task_play_anim 55@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 55@ {handleOrTemplate} 97@
set_char_health 55@ {health} 50
set_follow_node_threshold_distance 55@ {range} 100.0
load_scene -1049.08 {y} -1268.08 {z} 127.81
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
clear_prints 
do_fade 500 {direction} Fade.In

:TRUTH1_3546
if 
  get_fading_status 
goto_if_false @TRUTH1_3570
wait 0
goto @TRUTH1_3546

:TRUTH1_3570
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
print_now 'TRU1_4' {time} 7000 {flag} 1
delete_car 34@
delete_char 38@
delete_char 39@
delete_car 35@
34@ = create_car 532 {x} -1023.706 {y} -933.357 {z} 129.292
set_car_heading 34@ {heading} 177.348
set_car_straight_line_distance 34@ {distance} 20
38@ = create_char_inside_car 34@ {pedType} PedType.Mission1 {modelId} 160
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_accuracy 38@ {accuracy} 30
set_car_health 34@ {health} 9000
116@ = add_blip_for_car 34@
set_blip_as_friendly 116@ {state} True
set_can_burst_car_tyres 34@ {state} False
56@ = create_car 531 {x} -1029.287 {y} -1183.826 {z} 128.184
set_car_heading 56@ {heading} 90.725
57@ = create_char_inside_car 56@ {pedType} PedType.Mission1 {modelId} 162
set_char_decision_maker 57@ {handleOrTemplate} 97@
give_weapon_to_char 57@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 57@ {accuracy} 50
58@ = create_car 531 {x} -1067.1281 {y} -1153.574 {z} 128.2188
set_car_heading 58@ {heading} 272.1696
59@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 157
set_char_decision_maker 59@ {handleOrTemplate} 97@
give_weapon_to_char 59@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 59@ {accuracy} 50
118@ = 1
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_3894
give_weapon_to_char 50@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_3894
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_3919
give_weapon_to_char 52@ {weaponType} WeaponType.Shovel {ammo} 1

:TRUTH1_3919
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_3944
give_weapon_to_char 53@ {weaponType} WeaponType.Shovel {ammo} 1

:TRUTH1_3944
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_4002
set_char_coordinates 51@ {x} -1070.71 {y} -1126.36 {z} 128.23
set_char_heading 51@ {heading} 345.592
give_weapon_to_char 51@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4002
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_4060
set_char_coordinates 54@ {x} -1111.92 {y} -1107.797 {z} 127.892
set_char_heading 54@ {heading} 212.87
give_weapon_to_char 54@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4060
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_4118
set_char_coordinates 55@ {x} -1154.72 {y} -1116.097 {z} 127.27
set_char_heading 55@ {heading} 238.5
give_weapon_to_char 55@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4118
91@ = create_char PedType.Mission1 {modelId} 162 {x} -1043.28 {y} -1055.5 {z} 128.22
set_char_heading 91@ {heading} 175.56
give_weapon_to_char 91@ {weaponType} WeaponType.Rifle {ammo} 99999
set_char_decision_maker 91@ {handleOrTemplate} 98@
set_sense_range 91@ {range} 80.0
92@ = create_char PedType.Mission1 {modelId} 157 {x} -1147.91 {y} -1023.34 {z} 128.22
give_weapon_to_char 92@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_decision_maker 92@ {handleOrTemplate} 98@
set_sense_range 92@ {range} 80.0
93@ = create_char PedType.Mission1 {modelId} 160 {x} -1094.89 {y} -999.528 {z} 128.21
set_char_heading 93@ {heading} 175.56
give_weapon_to_char 93@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 93@ {accuracy} 50
set_char_decision_maker 93@ {handleOrTemplate} 98@
set_sense_range 93@ {range} 150.0
94@ = create_char PedType.Mission1 {modelId} 160 {x} -1181.37 {y} -992.4972 {z} 128.2188
set_char_heading 94@ {heading} 170.5759
give_weapon_to_char 94@ {weaponType} WeaponType.Rifle {ammo} 1
set_char_accuracy 94@ {accuracy} 50
set_char_decision_maker 94@ {handleOrTemplate} 98@
set_sense_range 94@ {range} 150.0
95@ = create_char PedType.Mission1 {modelId} 160 {x} -1008.989 {y} -998.692 {z} 128.2188
set_char_heading 95@ {heading} 170.5759
give_weapon_to_char 95@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 95@ {accuracy} 50
set_char_decision_maker 95@ {handleOrTemplate} 98@
set_sense_range 95@ {range} 150.0
96@ = create_char PedType.Mission1 {modelId} 160 {x} -1151.001 {y} -1011.517 {z} 128.2188
set_char_heading 96@ {heading} 170.5759
give_weapon_to_char 96@ {weaponType} WeaponType.Rifle {ammo} 1
set_char_accuracy 96@ {accuracy} 50
set_char_decision_maker 96@ {handleOrTemplate} 98@
set_sense_range 96@ {range} 150.0
117@ = 5

:TRUTH1_4518
if 
  118@ == 1
goto_if_false @TRUTH1_15937
if 
  123@ == 0
goto_if_false @TRUTH1_4658
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_4658
if or
  locate_char_any_means_char_2d 49@ {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
  has_char_been_damaged_by_char 49@ {handle} $scplayer
  is_char_in_area_2d $scplayer {leftBottomX} -1074.33 {leftBottomY} -1321.1 {rightTopX} -1022.5 {rightTopY} -1271.4301 {drawSphere} False
goto_if_false @TRUTH1_4658
143@ = 1
task_kill_char_on_foot 49@ {target} $scplayer
123@ = 1

:TRUTH1_4658
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1096.488 {leftBottomY} -1170.5601 {rightTopX} -1032.682 {rightTopY} -1249.599 {drawSphere} False
goto_if_false @TRUTH1_4900
if 
  124@ == 0
goto_if_false @TRUTH1_4780
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_4780
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_4780
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_4780
start_playback_recorded_car 56@ {path} 348
124@ = 1

:TRUTH1_4780
if 
  125@ == 0
goto_if_false @TRUTH1_4900
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_4900
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_4900
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_4900
set_car_forward_speed 58@ {forwardSpeed} 12.0
task_car_drive_to_coord 59@ {vehicle} 58@ {x} -1045.147 {y} -1152.724 {z} 127.5258 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
125@ = 1

:TRUTH1_4900
if 
  124@ == 1
goto_if_false @TRUTH1_5022
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5022
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5022
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5022
if 
  not is_playback_going_on_for_car 56@
goto_if_false @TRUTH1_5022
143@ = 8
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16313
124@ = 2

:TRUTH1_5022
if 
  125@ == 1
goto_if_false @TRUTH1_5159
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5159
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5159
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5159
if 
  locate_car_2d 58@ {x} -1045.147 {y} -1152.724 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @TRUTH1_5159
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16313
125@ = 2

:TRUTH1_5159
if 
  124@ == 2
goto_if_false @TRUTH1_5267
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5267
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5267
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5267
if 
  is_char_touching_char 57@ {other} $scplayer
goto_if_false @TRUTH1_5267
task_car_temp_action 57@ {vehicle} 56@ {actionId} TempAction.Reverse {time} 3000
124@ = 3

:TRUTH1_5267
if 
  124@ == 3
goto_if_false @TRUTH1_5395
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5395
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5395
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5395
110@ = get_script_task_status 57@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5395
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16313
124@ = 2

:TRUTH1_5395
if 
  125@ == 2
goto_if_false @TRUTH1_5503
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5503
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5503
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5503
if 
  is_char_touching_char 59@ {other} $scplayer
goto_if_false @TRUTH1_5503
task_car_temp_action 59@ {vehicle} 58@ {actionId} TempAction.Reverse {time} 3000
125@ = 3

:TRUTH1_5503
if 
  125@ == 3
goto_if_false @TRUTH1_5631
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5631
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5631
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5631
110@ = get_script_task_status 59@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5631
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16313
125@ = 2

:TRUTH1_5631
if 
  126@ == 0
goto_if_false @TRUTH1_6072
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1033.47 {leftBottomY} -1067.1801 {rightTopX} -1202.46 {rightTopY} -1149.65 {drawSphere} False
goto_if_false @TRUTH1_5733
if 
  is_char_shooting $scplayer
goto_if_false @TRUTH1_5710
126@ = 1

:TRUTH1_5710
if 
  is_player_targetting_anything $player1
goto_if_false @TRUTH1_5733
126@ = 1

:TRUTH1_5733
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1033.47 {leftBottomY} -1067.1801 {rightTopX} -1202.46 {rightTopY} -1149.65 {drawSphere} False
goto_if_false @TRUTH1_5778
126@ = 1

:TRUTH1_5778
if 
  does_char_exist 50@
goto_if_false @TRUTH1_5820
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @TRUTH1_5820
126@ = 1

:TRUTH1_5820
if 
  does_char_exist 50@
goto_if_false @TRUTH1_5862
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @TRUTH1_5862
126@ = 1

:TRUTH1_5862
if 
  does_char_exist 51@
goto_if_false @TRUTH1_5904
if 
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @TRUTH1_5904
126@ = 1

:TRUTH1_5904
if 
  does_char_exist 52@
goto_if_false @TRUTH1_5946
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @TRUTH1_5946
126@ = 1

:TRUTH1_5946
if 
  does_char_exist 53@
goto_if_false @TRUTH1_5988
if 
  has_char_been_damaged_by_char 53@ {handle} $scplayer
goto_if_false @TRUTH1_5988
126@ = 1

:TRUTH1_5988
if 
  does_char_exist 54@
goto_if_false @TRUTH1_6030
if 
  has_char_been_damaged_by_char 54@ {handle} $scplayer
goto_if_false @TRUTH1_6030
126@ = 1

:TRUTH1_6030
if 
  does_char_exist 55@
goto_if_false @TRUTH1_6072
if 
  has_char_been_damaged_by_char 55@ {handle} $scplayer
goto_if_false @TRUTH1_6072
126@ = 1

:TRUTH1_6072
if 
  126@ == 1
goto_if_false @TRUTH1_6269
143@ = 12
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_6121
task_kill_char_on_foot 50@ {target} $scplayer

:TRUTH1_6121
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_6152
task_kill_char_on_foot 51@ {target} $scplayer
set_char_accuracy 51@ {accuracy} 50

:TRUTH1_6152
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_6176
task_kill_char_on_foot 52@ {target} $scplayer

:TRUTH1_6176
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_6200
task_kill_char_on_foot 53@ {target} $scplayer

:TRUTH1_6200
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_6231
task_kill_char_on_foot 54@ {target} $scplayer
set_char_accuracy 54@ {accuracy} 60

:TRUTH1_6231
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_6262
task_kill_char_on_foot 55@ {target} $scplayer
set_char_accuracy 55@ {accuracy} 70

:TRUTH1_6262
126@ = 2

:TRUTH1_6269
if 
  128@ == 0
goto_if_false @TRUTH1_6462
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6462
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6462
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6462
$player_x, $player_y, $player_z = get_offset_from_char_in_world_coords 38@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
if or
  locate_stopped_char_any_means_2d $scplayer {x} $player_x {y} $player_y {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} $player_x {y} $player_y {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @TRUTH1_6462
give_weapon_to_char 38@ {weaponType} WeaponType.Rifle {ammo} 50
set_char_accuracy 38@ {accuracy} 20
task_kill_char_on_foot 38@ {target} $scplayer
143@ = 23
128@ = 1

:TRUTH1_6462
if 
  117@ > 4
goto_if_false @TRUTH1_6695
if 
  119@ == 0
goto_if_false @TRUTH1_6581
if 
  128@ == 0
goto_if_false @TRUTH1_6581
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6581
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6581
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6581
gosub @TRUTH1_16156
119@ = 1

:TRUTH1_6581
if 
  119@ == 1
goto_if_false @TRUTH1_6695
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6695
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6695
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6695
if 
  locate_car_2d 34@ {x} -1031.46 {y} -935.51 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @TRUTH1_6695
119@ = 0

:TRUTH1_6695
if 
  119@ >= 0
goto_if_false @TRUTH1_7941
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_7941
if 
  is_car_in_area_2d 34@ {leftBottomX} -1201.5179 {leftBottomY} -926.777 {rightTopX} -1016.98 {rightTopY} -1052.652 {drawSphere} False
goto_if_false @TRUTH1_7941
106@ = get_driver_of_car 34@
if 
  106@ <> -1
goto_if_false @TRUTH1_7941
if 
  120@ == 100
goto_if_false @TRUTH1_6949
43@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
44@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
45@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
46@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
47@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
48@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3

:TRUTH1_6949
if 
  120@ == 0
goto_if_false @TRUTH1_7119
if 
  TIMERA > 1250
goto_if_false @TRUTH1_7119
if 
  does_object_exist 43@
goto_if_false @TRUTH1_7007
delete_object 43@

:TRUTH1_7007
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
43@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 43@ {state} True
set_object_velocity 43@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 43@ {fromAngle} 68.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 43@ {handle} 34@
TIMERA = 0
120@ = 1

:TRUTH1_7119
if 
  120@ == 1
goto_if_false @TRUTH1_7282
if 
  TIMERA > 2250
goto_if_false @TRUTH1_7282
if 
  does_object_exist 44@
goto_if_false @TRUTH1_7177
delete_object 44@

:TRUTH1_7177
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
44@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 44@ {state} True
set_object_velocity 44@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 44@ {fromAngle} 73.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 44@ {handle} 34@
120@ = 2

:TRUTH1_7282
if 
  120@ == 2
goto_if_false @TRUTH1_7445
if 
  TIMERA > 4250
goto_if_false @TRUTH1_7445
if 
  does_object_exist 45@
goto_if_false @TRUTH1_7340
delete_object 45@

:TRUTH1_7340
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
45@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 45@ {state} True
set_object_velocity 45@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 45@ {fromAngle} 90.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 45@ {handle} 34@
120@ = 3

:TRUTH1_7445
if 
  120@ == 3
goto_if_false @TRUTH1_7608
if 
  TIMERA > 6250
goto_if_false @TRUTH1_7608
if 
  does_object_exist 46@
goto_if_false @TRUTH1_7503
delete_object 46@

:TRUTH1_7503
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
46@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 46@ {state} True
set_object_velocity 46@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 46@ {fromAngle} 180.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 46@ {handle} 34@
120@ = 4

:TRUTH1_7608
if 
  120@ == 4
goto_if_false @TRUTH1_7771
if 
  TIMERA > 8250
goto_if_false @TRUTH1_7771
if 
  does_object_exist 47@
goto_if_false @TRUTH1_7666
delete_object 47@

:TRUTH1_7666
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
47@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 47@ {state} True
set_object_velocity 47@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 47@ {fromAngle} 80.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 47@ {handle} 34@
120@ = 5

:TRUTH1_7771
if 
  120@ == 5
goto_if_false @TRUTH1_7941
if 
  TIMERA > 10250
goto_if_false @TRUTH1_7941
if 
  does_object_exist 48@
goto_if_false @TRUTH1_7829
delete_object 48@

:TRUTH1_7829
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
48@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 48@ {state} True
set_object_velocity 48@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 48@ {fromAngle} 180.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 48@ {handle} 34@
TIMERA = 0
120@ = 0

:TRUTH1_7941
if 
  131@ == 0
goto_if_false @TRUTH1_8921
if 
  129@ == 1
goto_if_false @TRUTH1_8921
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 52@
delete_char 53@
109@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 109@
67@ = create_char PedType.Mission1 {modelId} 160 {x} -1205.812 {y} -1092.725 {z} 127.2578
set_char_heading 67@ {heading} 359.4852
give_weapon_to_char 67@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 67@ {handleOrTemplate} 97@
set_char_health 67@ {health} 50
perform_sequence_task 67@ {sequence} 109@
68@ = create_char PedType.Mission1 {modelId} 162 {x} -1205.812 {y} -1090.725 {z} 127.2578
set_char_heading 68@ {heading} 359.4852
give_weapon_to_char 68@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 68@ {handleOrTemplate} 97@
set_char_health 68@ {health} 50
perform_sequence_task 68@ {sequence} 109@
69@ = create_char PedType.Mission1 {modelId} 157 {x} -1181.8 {y} -1116.735 {z} 127.2578
set_char_heading 69@ {heading} 79.3899
give_weapon_to_char 69@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 69@ {handleOrTemplate} 97@
set_char_health 69@ {health} 50
perform_sequence_task 69@ {sequence} 109@
70@ = create_char PedType.Mission1 {modelId} 160 {x} -1211.422 {y} -1090.9771 {z} 127.2578
set_char_heading 70@ {heading} 2.4516
give_weapon_to_char 70@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 70@ {handleOrTemplate} 97@
set_char_health 70@ {health} 50
perform_sequence_task 70@ {sequence} 109@
71@ = create_char PedType.Mission1 {modelId} 162 {x} -1179.283 {y} -1113.823 {z} 127.2578
set_char_heading 71@ {heading} 74.1823
give_weapon_to_char 71@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 71@ {handleOrTemplate} 97@
set_char_health 71@ {health} 50
perform_sequence_task 71@ {sequence} 109@
72@ = create_char PedType.Mission1 {modelId} 157 {x} -1145.651 {y} -1111.67 {z} 127.2595
set_char_heading 72@ {heading} 90.0989
give_weapon_to_char 72@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 72@ {handleOrTemplate} 97@
set_char_health 72@ {health} 50
perform_sequence_task 72@ {sequence} 109@
73@ = create_char PedType.Mission1 {modelId} 162 {x} -1146.601 {y} -1114.9561 {z} 127.2595
set_char_heading 73@ {heading} 102.0699
give_weapon_to_char 73@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 73@ {handleOrTemplate} 97@
set_char_health 73@ {health} 50
perform_sequence_task 73@ {sequence} 109@
74@ = create_char PedType.Mission1 {modelId} 160 {x} -1051.4969 {y} -1133.651 {z} 127.2669
set_char_heading 74@ {heading} 10.9064
give_weapon_to_char 74@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 74@ {handleOrTemplate} 97@
set_char_health 74@ {health} 50
perform_sequence_task 74@ {sequence} 109@
75@ = create_char PedType.Mission1 {modelId} 157 {x} -1048.588 {y} -1131.942 {z} 127.2595
set_char_heading 75@ {heading} 57.544
give_weapon_to_char 75@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 75@ {handleOrTemplate} 97@
set_char_health 75@ {health} 50
perform_sequence_task 75@ {sequence} 109@
76@ = create_char PedType.Mission1 {modelId} 162 {x} -1118.818 {y} -1116.196 {z} 127.2595
set_char_heading 76@ {heading} 90.5502
give_weapon_to_char 76@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 76@ {handleOrTemplate} 97@
set_char_health 76@ {health} 50
perform_sequence_task 76@ {sequence} 109@
77@ = create_char PedType.Mission1 {modelId} 162 {x} -1120.998 {y} -1112.729 {z} 127.2595
set_char_heading 77@ {heading} 57.544
give_weapon_to_char 77@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 77@ {handleOrTemplate} 97@
set_char_health 77@ {health} 50
perform_sequence_task 77@ {sequence} 109@
78@ = create_char PedType.Mission1 {modelId} 160 {x} -1115.5959 {y} -1115.524 {z} 127.2595
set_char_heading 78@ {heading} 57.544
give_weapon_to_char 78@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 78@ {handleOrTemplate} 97@
set_char_health 78@ {health} 50
perform_sequence_task 78@ {sequence} 109@
79@ = create_char PedType.Mission1 {modelId} 160 {x} -1117.895 {y} -1111.266 {z} 127.2595
set_char_heading 79@ {heading} 57.544
give_weapon_to_char 79@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 79@ {handleOrTemplate} 97@
set_char_health 79@ {health} 50
perform_sequence_task 79@ {sequence} 109@
clear_sequence_task 109@
131@ = 1

:TRUTH1_8921
if 
  131@ == 1
goto_if_false @TRUTH1_9766
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_9766
if 
  132@ == 0
goto_if_false @TRUTH1_9109
if 
  locate_car_2d 34@ {x} -1205.812 {y} -1090.725 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9109
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 67@
goto_if_false @TRUTH1_9066
perform_sequence_task 67@ {sequence} 107@

:TRUTH1_9066
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_9090
perform_sequence_task 68@ {sequence} 107@

:TRUTH1_9090
143@ = 28
clear_sequence_task 107@
132@ = 1

:TRUTH1_9109
if 
  133@ == 0
goto_if_false @TRUTH1_9256
if 
  locate_car_2d 34@ {x} -1181.8 {y} -1116.735 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9256
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 69@
goto_if_false @TRUTH1_9220
perform_sequence_task 69@ {sequence} 107@

:TRUTH1_9220
if 
  not is_char_dead 71@
goto_if_false @TRUTH1_9244
perform_sequence_task 71@ {sequence} 107@

:TRUTH1_9244
clear_sequence_task 107@
133@ = 1

:TRUTH1_9256
if 
  134@ == 0
goto_if_false @TRUTH1_9379
if 
  locate_car_2d 34@ {x} -1211.422 {y} -1090.9771 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @TRUTH1_9379
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 70@
goto_if_false @TRUTH1_9367
perform_sequence_task 70@ {sequence} 107@

:TRUTH1_9367
clear_sequence_task 107@
134@ = 1

:TRUTH1_9379
if 
  135@ == 0
goto_if_false @TRUTH1_9564
if 
  locate_car_2d 34@ {x} -1145.651 {y} -1111.67 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9564
if 
  not is_char_dead 72@
goto_if_false @TRUTH1_9496
set_lvar_int_to_lvar_int 102@ = 72@
103@ = -1113.777
104@ = 1128.22
105@ = 128.22
gosub @TRUTH1_16095

:TRUTH1_9496
if 
  not is_char_dead 73@
goto_if_false @TRUTH1_9557
set_lvar_int_to_lvar_int 102@ = 73@
103@ = -1055.9399
104@ = -1120.62
105@ = 128.56
gosub @TRUTH1_16095

:TRUTH1_9557
135@ = 1

:TRUTH1_9564
if 
  136@ == 0
goto_if_false @TRUTH1_9766
if 
  is_car_in_area_2d 34@ {leftBottomX} -1224.0601 {leftBottomY} -1135.61 {rightTopX} -999.06 {rightTopY} -1063.3 {drawSphere} False
goto_if_false @TRUTH1_9766
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 76@
goto_if_false @TRUTH1_9675
perform_sequence_task 76@ {sequence} 107@

:TRUTH1_9675
if 
  not is_char_dead 77@
goto_if_false @TRUTH1_9699
perform_sequence_task 77@ {sequence} 107@

:TRUTH1_9699
if 
  not is_char_dead 78@
goto_if_false @TRUTH1_9723
perform_sequence_task 78@ {sequence} 107@

:TRUTH1_9723
if 
  not is_char_dead 79@
goto_if_false @TRUTH1_9747
perform_sequence_task 79@ {sequence} 107@

:TRUTH1_9747
clear_sequence_task 107@
141@ = 1
136@ = 1

:TRUTH1_9766
if 
  141@ == 1
goto_if_false @TRUTH1_10560
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_9821
if 
  not is_char_on_screen 54@
goto_if_false @TRUTH1_9821
delete_char 54@

:TRUTH1_9821
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_9858
if 
  not is_char_on_screen 55@
goto_if_false @TRUTH1_9858
delete_char 55@

:TRUTH1_9858
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_9895
if 
  not is_char_on_screen 49@
goto_if_false @TRUTH1_9895
delete_char 67@

:TRUTH1_9895
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_9932
if 
  not is_char_on_screen 50@
goto_if_false @TRUTH1_9932
delete_char 68@

:TRUTH1_9932
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_9969
if 
  not is_char_on_screen 51@
goto_if_false @TRUTH1_9969
delete_char 69@

:TRUTH1_9969
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_10006
if 
  not is_char_on_screen 52@
goto_if_false @TRUTH1_10006
delete_char 70@

:TRUTH1_10006
109@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 109@
80@ = create_char PedType.Mission1 {modelId} 162 {x} -1050.942 {y} -1171.55 {z} 127.4132
set_char_heading 80@ {heading} 57.544
give_weapon_to_char 80@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 80@ {handleOrTemplate} 97@
set_char_health 80@ {health} 50
perform_sequence_task 80@ {sequence} 109@
81@ = create_char PedType.Mission1 {modelId} 160 {x} -1048.379 {y} -1172.351 {z} 127.4308
set_char_heading 81@ {heading} 57.544
give_weapon_to_char 81@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 81@ {handleOrTemplate} 97@
set_char_health 81@ {health} 50
perform_sequence_task 81@ {sequence} 109@
82@ = create_char PedType.Mission1 {modelId} 162 {x} -1047.927 {y} -1177.559 {z} 127.507
set_char_heading 82@ {heading} 57.544
give_weapon_to_char 82@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 82@ {handleOrTemplate} 97@
set_char_health 82@ {health} 50
perform_sequence_task 82@ {sequence} 109@
83@ = create_char PedType.Mission1 {modelId} 157 {x} -1051.1591 {y} -1180.129 {z} 127.5367
set_char_heading 83@ {heading} 57.544
give_weapon_to_char 83@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 83@ {handleOrTemplate} 97@
set_char_health 83@ {health} 50
perform_sequence_task 83@ {sequence} 109@
custom_plate_for_next_car 478 {text} "__HOM__"
87@ = create_car 478 {x} -1049.0 {y} -1296.0 {z} 128.3
set_car_heading 87@ {heading} 277.382
84@ = create_char PedType.Mission1 {modelId} 162 {x} -1049.1899 {y} -1291.9399 {z} 127.7206
set_char_heading 84@ {heading} 57.544
give_weapon_to_char 84@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 84@ {handleOrTemplate} 97@
set_char_health 84@ {health} 50
perform_sequence_task 84@ {sequence} 109@
custom_plate_for_next_car 478 {text} "__HOM__"
88@ = create_car 478 {x} -1154.0861 {y} -1339.7159 {z} 126.61
set_car_heading 88@ {heading} 272.428
86@ = create_char_inside_car 88@ {pedType} PedType.Mission1 {modelId} 157
85@ = create_char PedType.Mission1 {modelId} 162 {x} -1049.1899 {y} -1295.9399 {z} 0.0
set_char_decision_maker 85@ {handleOrTemplate} 97@
attach_char_to_car 85@ {vehicle} 88@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Rifle
task_stay_in_same_place 85@ {state} True
clear_sequence_task 109@
141@ = 2

:TRUTH1_10560
if 
  141@ == 2
goto_if_false @TRUTH1_10771
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_10771
if 
  locate_car_2d 34@ {x} -1050.942 {y} -1171.55 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @TRUTH1_10771
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 80@
goto_if_false @TRUTH1_10687
perform_sequence_task 80@ {sequence} 107@

:TRUTH1_10687
if 
  not is_char_dead 81@
goto_if_false @TRUTH1_10711
perform_sequence_task 81@ {sequence} 107@

:TRUTH1_10711
if 
  not is_char_dead 82@
goto_if_false @TRUTH1_10735
perform_sequence_task 82@ {sequence} 107@

:TRUTH1_10735
if 
  not is_char_dead 83@
goto_if_false @TRUTH1_10759
perform_sequence_task 83@ {sequence} 107@

:TRUTH1_10759
clear_sequence_task 107@
141@ = 3

:TRUTH1_10771
if 
  141@ > 1
goto_if_false @TRUTH1_11120
if 
  142@ == 0
goto_if_false @TRUTH1_11120
if 
  is_char_in_area_2d $scplayer {leftBottomX} -974.32 {leftBottomY} -1287.37 {rightTopX} -1129.14 {rightTopY} -1330.41 {drawSphere} False
goto_if_false @TRUTH1_11120
if 
  not is_car_dead 88@
goto_if_false @TRUTH1_10931
if 
  not is_char_dead 86@
goto_if_false @TRUTH1_10931
set_car_forward_speed 88@ {forwardSpeed} 30.0
if 
  not is_char_dead 85@
goto_if_false @TRUTH1_10911
task_kill_char_on_foot 85@ {target} $scplayer

:TRUTH1_10911
task_car_mission 86@ {vehicle} 88@ {targetVehicle} 88@ {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.PloughThrough

:TRUTH1_10931
143@ = 100
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_object_as_no_longer_needed 60@
mark_object_as_no_longer_needed 61@
mark_object_as_no_longer_needed 62@
mark_object_as_no_longer_needed 63@
mark_object_as_no_longer_needed 64@
mark_object_as_no_longer_needed 65@
mark_object_as_no_longer_needed 66@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 44@
mark_object_as_no_longer_needed 45@
mark_object_as_no_longer_needed 46@
mark_object_as_no_longer_needed 47@
mark_object_as_no_longer_needed 48@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 90@
mark_char_as_no_longer_needed 91@
mark_char_as_no_longer_needed 92@
mark_char_as_no_longer_needed 93@
mark_char_as_no_longer_needed 94@
mark_char_as_no_longer_needed 95@
mark_char_as_no_longer_needed 96@
142@ = 1

:TRUTH1_11120
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11233
if 
  130@ == 0
goto_if_false @TRUTH1_11233
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11233
mark_car_as_no_longer_needed 90@
129@ = 1
print_now 'TRU1_5' {time} 5000 {flag} 1
remove_blip 116@
116@ = add_blip_for_coord -1114.25 {y} -1619.96 {z} 76.68
130@ = 1

:TRUTH1_11233
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11347
if 
  130@ == 1
goto_if_false @TRUTH1_11347
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11347
if 
  129@ <= 1
goto_if_false @TRUTH1_11347
print_now 'TRU1_7' {time} 5000 {flag} 1
remove_blip 116@
116@ = add_blip_for_car 34@
set_blip_as_friendly 116@ {state} True
130@ = 0

:TRUTH1_11347
if 
  129@ == 1
goto_if_false @TRUTH1_11539
if 
  130@ == 1
goto_if_false @TRUTH1_11539
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11539
if 
  locate_car_3d 34@ {x} -1100.007 {y} -1620.949 {z} 75.375 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @TRUTH1_11539
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11539
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_11490
$car = store_car_char_is_in_no_save $scplayer

:TRUTH1_11490
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:TRUTH1_11504
if 
  get_fading_status 
goto_if_false @TRUTH1_11528
wait 0
goto @TRUTH1_11504

:TRUTH1_11528
switch_widescreen True
129@ = 2

:TRUTH1_11539
if 
  129@ == 2
goto_if_false @TRUTH1_12167
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_12167
mark_car_as_no_longer_needed 56@
delete_car 56@
mark_char_as_no_longer_needed 57@
mark_car_as_no_longer_needed 58@
delete_car 58@
mark_char_as_no_longer_needed 59@
mark_car_as_no_longer_needed 88@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_model_as_no_longer_needed 531
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 337
load_special_character 1 {modelName} 'TRUTH'
request_model 424
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13816
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13817
load_all_models_now 

:TRUTH1_11690
if or
  not has_special_character_loaded 1
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_model_loaded 424
goto_if_false @TRUTH1_11729
wait 0
goto @TRUTH1_11690

:TRUTH1_11729
TIMERA = 0
TIMERB = 0
clear_area -1100.007 {y} -1620.949 {z} 200.0 {radius} 200.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11813
set_car_coordinates 34@ {x} -1102.21 {y} -1620.017 {z} 77.345
set_car_heading 34@ {heading} 90.738

:TRUTH1_11813
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TRUTH1_11843
wait 0
goto @TRUTH1_11813

:TRUTH1_11843
56@ = create_car 424 {x} -1074.53 {y} -1643.624 {z} 75.066
set_car_heading 56@ {heading} 84.918
89@ = create_char PedType.Mission2 {modelId} 290 {x} -1088.84 {y} -1623.9969 {z} 75.375
set_char_heading 89@ {heading} 91.269
shut_char_up 89@ {state} True
set_char_proofs 89@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 89@ {handleOrTemplate} 97@
if 
  is_char_in_any_car $scplayer
goto_if_false @TRUTH1_11994
warp_char_from_car_to_coord $scplayer {x} -1098.84 {y} -1623.9969 {z} 75.375
set_char_heading $scplayer {heading} 264.123
goto @TRUTH1_12024

:TRUTH1_11994
set_char_coordinates $scplayer {x} -1098.84 {y} -1623.9969 {z} 75.375
set_char_heading $scplayer {heading} 264.123

:TRUTH1_12024
set_fixed_camera_position -1087.733 {y} -1625.124 {z} 76.7194 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1088.662 {y} -1624.7581 {z} 76.6608 {switchStyle} SwitchType.JumpCut
remove_blip 116@
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12128
task_go_straight_to_coord 89@ {x} -1093.189 {y} -1624.021 {z} 75.375 {speed} MoveState.Walk {time} 5000

:TRUTH1_12128
task_go_straight_to_coord $scplayer {x} -1094.931 {y} -1623.946 {z} 75.375 {speed} MoveState.Walk {time} 5000
TIMERA = 0
129@ = 3

:TRUTH1_12167
if 
  129@ == 3
goto_if_false @TRUTH1_12406
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12406
if or
  TIMERA > 2500
  locate_stopped_char_on_foot_2d 89@ {x} -1093.189 {y} -1624.021 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @TRUTH1_12406
set_fixed_camera_position -1092.296 {y} -1624.917 {z} 76.9985 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1093.1169 {y} -1624.3719 {z} 76.8283 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 89@
set_char_coordinates 89@ {x} -1093.189 {y} -1624.021 {z} 75.375
set_char_heading 89@ {heading} 88.0345
set_char_coordinates $scplayer {x} -1094.931 {y} -1623.946 {z} 75.375
set_char_heading $scplayer {heading} 264.123
task_play_anim 89@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
129@ = 4

:TRUTH1_12406
if 
  129@ == 4
goto_if_false @TRUTH1_12451
print_now 'TRU1_ZA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
129@ = 5

:TRUTH1_12451
if 
  129@ == 5
goto_if_false @TRUTH1_12524
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12524
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13818
print_now 'TRU1_ZB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2
129@ = 6

:TRUTH1_12524
if 
  129@ == 6
goto_if_false @TRUTH1_12599
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TRUTH1_12599
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12599
print_now 'TRU1_ZC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
129@ = 7

:TRUTH1_12599
if 
  129@ == 7
goto_if_false @TRUTH1_12719
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12719
clear_prints 
task_go_straight_to_coord $scplayer {x} -1092.25 {y} -1629.8199 {z} 76.0 {speed} MoveState.Walk {time} 5000
wait 250
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12705
task_go_straight_to_coord 89@ {x} -1099.96 {y} -1623.7 {z} 76.4 {speed} MoveState.Walk {time} 5000

:TRUTH1_12705
TIMERA = 0
129@ = 8

:TRUTH1_12719
if 
  129@ == 8
goto_if_false @TRUTH1_12912
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12912
do_fade 1000 {direction} Fade.Out

:TRUTH1_12763
if 
  get_fading_status 
goto_if_false @TRUTH1_12787
wait 0
goto @TRUTH1_12763

:TRUTH1_12787
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200
load_all_models_now 

:TRUTH1_12801
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TRUTH1_12832
wait 0
goto @TRUTH1_12801

:TRUTH1_12832
delete_car 34@
delete_char 89@
switch_widescreen False
set_char_coordinates $scplayer {x} -1092.561 {y} -1633.6281 {z} 75.37
set_char_heading $scplayer {heading} 273.438
do_fade 1000 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
play_mission_audio MissionAudioSlot.Slot3
set_player_control $player1 {state} True
TIMERA = 0
129@ = 9

:TRUTH1_12912
if 
  129@ == 9
goto_if_false @TRUTH1_12974
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12974
task_use_mobile_phone $scplayer {start} True
clear_mission_audio MissionAudioSlot.Slot3
TIMERA = 0
129@ = 10

:TRUTH1_12974
if 
  129@ == 10
goto_if_false @TRUTH1_13032
if 
  TIMERA > 2000
goto_if_false @TRUTH1_13032
144@ = 1
145@ = 0
129@ = 11

:TRUTH1_13032
if 
  129@ == 11
goto_if_false @TRUTH1_14312
gosub @TRUTH1_15986
if 
  144@ == 1
goto_if_false @TRUTH1_13122
if 
  145@ == 0
goto_if_false @TRUTH1_13122
set_lvar_int_to_constant 113@ = 4705
set_lvar_text_label 114@s = 'MCES05A'
gosub @TRUTH1_15944

:TRUTH1_13122
if 
  144@ == 2
goto_if_false @TRUTH1_13187
if 
  145@ == 0
goto_if_false @TRUTH1_13187
set_lvar_int_to_constant 113@ = 4633
set_lvar_text_label 114@s = 'MCES05B'
gosub @TRUTH1_15944

:TRUTH1_13187
if 
  144@ == 3
goto_if_false @TRUTH1_13252
if 
  145@ == 0
goto_if_false @TRUTH1_13252
set_lvar_int_to_constant 113@ = 4706
set_lvar_text_label 114@s = 'MCES05C'
gosub @TRUTH1_15944

:TRUTH1_13252
if 
  144@ == 4
goto_if_false @TRUTH1_13317
if 
  145@ == 0
goto_if_false @TRUTH1_13317
set_lvar_int_to_constant 113@ = 4634
set_lvar_text_label 114@s = 'MCES05D'
gosub @TRUTH1_15944

:TRUTH1_13317
if 
  144@ == 5
goto_if_false @TRUTH1_13382
if 
  145@ == 0
goto_if_false @TRUTH1_13382
set_lvar_int_to_constant 113@ = 4707
set_lvar_text_label 114@s = 'MCES05E'
gosub @TRUTH1_15944

:TRUTH1_13382
if 
  144@ == 6
goto_if_false @TRUTH1_13447
if 
  145@ == 0
goto_if_false @TRUTH1_13447
set_lvar_int_to_constant 113@ = 4635
set_lvar_text_label 114@s = 'MCES05F'
gosub @TRUTH1_15944

:TRUTH1_13447
if 
  144@ == 7
goto_if_false @TRUTH1_13512
if 
  145@ == 0
goto_if_false @TRUTH1_13512
set_lvar_int_to_constant 113@ = 4636
set_lvar_text_label 114@s = 'MCES05G'
gosub @TRUTH1_15944

:TRUTH1_13512
if 
  144@ == 8
goto_if_false @TRUTH1_13577
if 
  145@ == 0
goto_if_false @TRUTH1_13577
set_lvar_int_to_constant 113@ = 4637
set_lvar_text_label 114@s = 'MCES05H'
gosub @TRUTH1_15944

:TRUTH1_13577
if 
  144@ == 9
goto_if_false @TRUTH1_13642
if 
  145@ == 0
goto_if_false @TRUTH1_13642
set_lvar_int_to_constant 113@ = 4708
set_lvar_text_label 114@s = 'MCES05J'
gosub @TRUTH1_15944

:TRUTH1_13642
if 
  144@ == 10
goto_if_false @TRUTH1_13707
if 
  145@ == 0
goto_if_false @TRUTH1_13707
set_lvar_int_to_constant 113@ = 4638
set_lvar_text_label 114@s = 'MCES05K'
gosub @TRUTH1_15944

:TRUTH1_13707
if 
  144@ == 11
goto_if_false @TRUTH1_13772
if 
  145@ == 0
goto_if_false @TRUTH1_13772
set_lvar_int_to_constant 113@ = 4639
set_lvar_text_label 114@s = 'MCES05L'
gosub @TRUTH1_15944

:TRUTH1_13772
if 
  144@ == 12
goto_if_false @TRUTH1_13837
if 
  145@ == 0
goto_if_false @TRUTH1_13837
set_lvar_int_to_constant 113@ = 4709
set_lvar_text_label 114@s = 'MCES05M'
gosub @TRUTH1_15944

:TRUTH1_13837
if 
  144@ == 13
goto_if_false @TRUTH1_13902
if 
  145@ == 0
goto_if_false @TRUTH1_13902
set_lvar_int_to_constant 113@ = 4710
set_lvar_text_label 114@s = 'MCES05N'
gosub @TRUTH1_15944

:TRUTH1_13902
if 
  144@ == 14
goto_if_false @TRUTH1_13967
if 
  145@ == 0
goto_if_false @TRUTH1_13967
set_lvar_int_to_constant 113@ = 4640
set_lvar_text_label 114@s = 'MCES05O'
gosub @TRUTH1_15944

:TRUTH1_13967
if 
  144@ == 15
goto_if_false @TRUTH1_14032
if 
  145@ == 0
goto_if_false @TRUTH1_14032
set_lvar_int_to_constant 113@ = 4711
set_lvar_text_label 114@s = 'MCES05P'
gosub @TRUTH1_15944

:TRUTH1_14032
if 
  144@ == 16
goto_if_false @TRUTH1_14097
if 
  145@ == 0
goto_if_false @TRUTH1_14097
set_lvar_int_to_constant 113@ = 4712
set_lvar_text_label 114@s = 'MCES05Q'
gosub @TRUTH1_15944

:TRUTH1_14097
if 
  144@ == 17
goto_if_false @TRUTH1_14162
if 
  145@ == 0
goto_if_false @TRUTH1_14162
set_lvar_int_to_constant 113@ = 4641
set_lvar_text_label 114@s = 'MCES05R'
gosub @TRUTH1_15944

:TRUTH1_14162
if 
  144@ == 18
goto_if_false @TRUTH1_14201
task_use_mobile_phone $scplayer {start} False
TIMERA = 0
144@ = 19

:TRUTH1_14201
if 
  144@ == 19
goto_if_false @TRUTH1_14252
if 
  TIMERA > 2000
goto_if_false @TRUTH1_14252
goto @TRUTH1_16375
144@ = 20

:TRUTH1_14252
if 
  146@ == 0
goto_if_false @TRUTH1_14312
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TRUTH1_14312
clear_mission_audio MissionAudioSlot.Slot1
145@ = 0
144@ = 18
146@ = 1

:TRUTH1_14312
if 
  117@ > 4
goto_if_false @TRUTH1_14387
if 
  is_car_dead 34@
goto_if_false @TRUTH1_14387
if 
  8 > 129@
goto_if_false @TRUTH1_14387
print_now 'TRU1_16' {time} 5000 {flag} 1
goto @TRUTH1_16357

:TRUTH1_14387
if 
  100 > 143@
goto_if_false @TRUTH1_15937
if 
  143@ == 1
goto_if_false @TRUTH1_14457
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14457
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13813
143@ = 2

:TRUTH1_14457
if 
  143@ == 2
goto_if_false @TRUTH1_14540
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14540
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14540
shut_char_up 49@ {state} True
print_now 'TRU1_DF' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 3

:TRUTH1_14540
if 
  143@ == 3
goto_if_false @TRUTH1_14582
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14582
clear_prints 
143@ = 4

:TRUTH1_14582
if 
  143@ == 4
goto_if_false @TRUTH1_14634
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14634
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13814
143@ = 5

:TRUTH1_14634
if 
  143@ == 5
goto_if_false @TRUTH1_14717
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14717
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14717
print_now 'TRU1_DG' {time} 4000 {flag} 1
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 49@
play_mission_audio MissionAudioSlot.Slot1
143@ = 6

:TRUTH1_14717
if 
  143@ == 6
goto_if_false @TRUTH1_14782
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14782
clear_prints 
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14775
shut_char_up 49@ {state} False

:TRUTH1_14775
143@ = 7

:TRUTH1_14782
if 
  143@ == 8
goto_if_false @TRUTH1_14834
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14834
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13822
143@ = 9

:TRUTH1_14834
if 
  143@ == 9
goto_if_false @TRUTH1_14917
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14917
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14917
print_now 'TRU1_FD' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
shut_char_up 59@ {state} True
143@ = 10

:TRUTH1_14917
if 
  143@ == 10
goto_if_false @TRUTH1_14982
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14982
clear_prints 
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14975
shut_char_up 59@ {state} False

:TRUTH1_14975
143@ = 11

:TRUTH1_14982
if 
  143@ == 12
goto_if_false @TRUTH1_15049
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_15049
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15049
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13819
143@ = 13

:TRUTH1_15049
if 
  143@ == 13
goto_if_false @TRUTH1_15125
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_15125
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15125
print_now 'TRU1_FA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 14

:TRUTH1_15125
if 
  143@ == 14
goto_if_false @TRUTH1_15167
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15167
clear_prints 
143@ = 15

:TRUTH1_15167
if 
  143@ == 15
goto_if_false @TRUTH1_15226
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15226
shut_char_up 53@ {state} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13836
143@ = 16

:TRUTH1_15226
if 
  143@ == 16
goto_if_false @TRUTH1_15302
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15302
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15302
print_now 'TRU1_AB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 17

:TRUTH1_15302
if 
  143@ == 17
goto_if_false @TRUTH1_15344
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15344
clear_prints 
143@ = 18

:TRUTH1_15344
if 
  143@ == 18
goto_if_false @TRUTH1_15396
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15396
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13838
143@ = 19

:TRUTH1_15396
if 
  143@ == 19
goto_if_false @TRUTH1_15472
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15472
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15472
print_now 'TRU1_AD' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 20

:TRUTH1_15472
if 
  143@ == 21
goto_if_false @TRUTH1_15537
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15537
clear_prints 
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15530
shut_char_up 53@ {state} False

:TRUTH1_15530
143@ = 22

:TRUTH1_15537
if 
  143@ == 23
goto_if_false @TRUTH1_15589
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15589
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13812
143@ = 24

:TRUTH1_15589
if 
  143@ == 24
goto_if_false @TRUTH1_15672
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15672
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15672
shut_char_up 38@ {state} True
print_now 'TRU1_DE' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 25

:TRUTH1_15672
if 
  143@ == 26
goto_if_false @TRUTH1_15737
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15737
clear_prints 
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15730
shut_char_up 38@ {state} False

:TRUTH1_15730
143@ = 27

:TRUTH1_15737
if 
  143@ == 28
goto_if_false @TRUTH1_15789
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15789
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13837
143@ = 29

:TRUTH1_15789
if 
  143@ == 29
goto_if_false @TRUTH1_15872
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15872
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15872
shut_char_up 68@ {state} True
print_now 'TRU1_AC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 30

:TRUTH1_15872
if 
  143@ == 30
goto_if_false @TRUTH1_15937
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15937
clear_prints 
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15930
shut_char_up 68@ {state} False

:TRUTH1_15930
143@ = 31

:TRUTH1_15937
goto @TRUTH1_935

:TRUTH1_15944
if 
  145@ == 0
goto_if_false @TRUTH1_15984
load_mission_audio MissionAudioSlot.Slot1 {audioId} 113@
set_lvar_text_label 111@s = 114@s
145@ = 1

:TRUTH1_15984
return 

:TRUTH1_15986
if 
  145@ == 1
goto_if_false @TRUTH1_16040
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_16040
print_now 111@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
145@ = 2

:TRUTH1_16040
if 
  145@ == 2
goto_if_false @TRUTH1_16093
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_16093
144@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
145@ = 0

:TRUTH1_16093
return 

:TRUTH1_16095
108@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 103@ {y} 104@ {z} 105@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 108@
perform_sequence_task 102@ {sequence} 108@
clear_sequence_task 108@
return 

:TRUTH1_16156
99@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1025.67 {y} -1029.39 {z} 130.5 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1154.0601 {y} -1041.3199 {z} 130.5 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1166.8199 {y} -941.32 {z} 130.21 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1031.46 {y} -935.51 {z} 130.19 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 99@
perform_sequence_task 38@ {sequence} 99@
clear_sequence_task 99@
return 

:TRUTH1_16313
100@ = open_sequence_task 
task_car_mission -1 {vehicle} 101@ {targetVehicle} 101@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 100@
perform_sequence_task 102@ {sequence} 100@
clear_sequence_task 100@
return 

:TRUTH1_16357
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TRUTH1_16375
remove_blip $bcrash_contact_blip
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $cesar_blip_icon
switch_car_generator $2864 {amount} 101
switch_car_generator $iFieldHarvester {amount} 101
switch_car_generator $2866 {amount} 101
switch_car_generator $2867 {amount} 101
switch_car_generator $2868 {amount} 101
switch_car_generator $2869 {amount} 101
switch_car_generator $2870 {amount} 101
switch_car_generator $2871 {amount} 101
register_mission_passed 'TRUTH_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
$flag_truth_mission_counter += 1
remove_blip $truth_contact_blip
return 

:TRUTH1_16513
$onmission = 0
mark_model_as_no_longer_needed 532
mark_model_as_no_longer_needed 531
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 157
mark_model_as_no_longer_needed 160
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 337
unload_special_character 1
remove_blip 116@
mark_car_as_no_longer_needed 56@
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 47---------------
// Originally: Are you going to San Fierro?

:TRUTH2
script_name 'TRUTH2'
gosub @TRUTH2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH2_38
gosub @TRUTH2_11910

:TRUTH2_38
gosub @TRUTH2_12153
terminate_this_script 

:TRUTH2_47
$onmission = 1
register_mission_given 
load_mission_text 'TRU2'
if 
  $onmission == 0
goto_if_false @TRUTH2_159
42@ = add_blip_for_coord -1111.7 {y} -1622.7 {z} 76.4
41@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4
40@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4

:TRUTH2_159
clear_prints 
wait 0
$t2_total_weed_burnt = 331000
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$recordflag = 44
135@ = 0
136@ = 0
148@ = 0
149@ = 0
137@ = 0
138@ = 0.0
139@ = 0.0
140@ = 0.0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0
145@ = 0
146@ = 0
147@ = 44
151@ = 0
152@ = 0
153@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
206@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
150@ = 0
213@ = 0
214@ = 0
212@ = 0
make_player_gang_disappear 
clear_area -1110.2 {y} -1638.5 {z} 76.0 {radius} 20.0 {clearParticles} True
load_cutscene 'TRUTH_2'

:TRUTH2_797
if 
  not has_cutscene_loaded 
goto_if_false @TRUTH2_821
wait 0
goto @TRUTH2_797

:TRUTH2_821
start_cutscene 
do_fade 1000 {direction} Fade.In

:TRUTH2_830
if 
  not has_cutscene_finished 
goto_if_false @TRUTH2_854
wait 0
goto @TRUTH2_830

:TRUTH2_854
do_fade 0 {direction} Fade.Out

:TRUTH2_860
if 
  get_fading_status 
goto_if_false @TRUTH2_884
wait 0
goto @TRUTH2_860

:TRUTH2_884
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 483
request_model 543
request_model 497
request_model 283
request_model 361
request_model 346
load_special_character 1 {modelName} 'TRUTH'
remove_ipl "TRUTHSFARM"
request_ipl "TRUTHSFARM"
load_all_models_now 
set_max_fire_generations 2
clear_area -913.3 {y} -1720.5 {z} 76.6 {radius} 300.0 {clearParticles} True
216@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_area -913.3 {y} -1720.5 {z} 76.6 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -913.3 {y} -1720.5 {z} 76.6
give_weapon_to_char $scplayer {weaponType} WeaponType.Flamethrower {ammo} 3000
clear_area -1079.4041 {y} -1640.694 {z} 75.375 {radius} 20.0 {clearParticles} True
$truth = create_char PedType.Mission1 {modelId} 290 {x} -1079.4041 {y} -1640.694 {z} 75.375
set_char_drops_weapons_when_dead $truth {state} False
set_char_get_out_upside_down_car $truth {state} False
set_char_decision_maker $truth {handleOrTemplate} 216@
set_char_heading $truth {heading} 299.7411
give_weapon_to_char $truth {weaponType} WeaponType.Flamethrower {ammo} 3000
set_char_never_targetted $truth {state} True
set_char_cant_be_dragged_out $truth {state} True
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1070.1 {y} -1636.5 {z} 75.4 {speed} MoveState.Run {time} -1
task_shoot_at_coord -1 {x} -1062.2 {y} -1631.1 {z} 75.3 {time} -1
close_sequence_task 215@
perform_sequence_task $truth {sequence} 215@
clear_sequence_task 215@
clear_area -1077.6 {y} -1650.2 {z} 75.3 {radius} 20.0 {clearParticles} True
custom_plate_for_next_car 483 {text} "OUTTHERE"
34@ = create_car 483 {x} -1077.6 {y} -1650.2 {z} 75.3
change_car_colour 34@ {color1} 1 {color2} 1
give_vehicle_paintjob 34@ {paintjobId} 0
set_can_respray_car 34@ {changeColors} False
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_traction 34@ {traction} 2.0
set_car_heading 34@ {heading} 256.4
freeze_car_position 34@ {state} True
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
clear_area -946.6 {y} -1735.0 {z} 76.9 {radius} 5.0 {clearParticles} True
39@ = create_car 543 {x} -946.6 {y} -1735.0 {z} 76.9
set_car_heading 39@ {heading} 1.4
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
clear_area -918.5 {y} -1751.1 {z} 97.3 {radius} 5.0 {clearParticles} True
35@ = create_car 497 {x} -918.5 {y} -1751.1 {z} 97.3
set_heli_blades_full_speed 35@
36@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 283
38@ = create_searchlight_on_vehicle 35@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xPoint} -936.6 {yPoint} -1723.2 {zPoint} 76.8 {pointRadius} 6.0 {radius} 1.0
point_searchlight_at_char 38@ {handle} $truth {speed} 10.0
heli_follow_entity 35@ {char} $truth {vehicle} -1 {radius} 20.0
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_char_can_be_shot_in_vehicle 36@ {state} False
set_char_decision_maker 36@ {handleOrTemplate} 216@
43@ = add_blip_for_coord -1062.1 {y} -1631.7 {z} 75.3
change_blip_scale 43@ {size} 1
set_coord_blip_appearance 43@ {color} CoordAppearance.Enemy
44@ = add_blip_for_coord -1052.3 {y} -1631.7 {z} 75.3
change_blip_scale 44@ {size} 1
set_coord_blip_appearance 44@ {color} CoordAppearance.Enemy
45@ = add_blip_for_coord -1042.4 {y} -1631.7 {z} 75.3
change_blip_scale 45@ {size} 1
set_coord_blip_appearance 45@ {color} CoordAppearance.Enemy
46@ = add_blip_for_coord -1032.6 {y} -1631.7 {z} 75.3
change_blip_scale 46@ {size} 1
set_coord_blip_appearance 46@ {color} CoordAppearance.Enemy
47@ = add_blip_for_coord -1023.1 {y} -1631.7 {z} 75.3
change_blip_scale 47@ {size} 1
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy
48@ = add_blip_for_coord -1062.1 {y} -1622.2 {z} 75.3
change_blip_scale 48@ {size} 1
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy
49@ = add_blip_for_coord -1052.3 {y} -1622.2 {z} 75.3
change_blip_scale 49@ {size} 1
set_coord_blip_appearance 49@ {color} CoordAppearance.Enemy
50@ = add_blip_for_coord -1042.4 {y} -1622.2 {z} 75.3
change_blip_scale 50@ {size} 1
set_coord_blip_appearance 50@ {color} CoordAppearance.Enemy
51@ = add_blip_for_coord -1032.6 {y} -1622.2 {z} 75.3
change_blip_scale 51@ {size} 1
set_coord_blip_appearance 51@ {color} CoordAppearance.Enemy
52@ = add_blip_for_coord -1023.1 {y} -1622.2 {z} 75.3
change_blip_scale 52@ {size} 1
set_coord_blip_appearance 52@ {color} CoordAppearance.Enemy
53@ = add_blip_for_coord -991.92 {y} -1703.1 {z} 75.3
change_blip_scale 53@ {size} 1
set_coord_blip_appearance 53@ {color} CoordAppearance.Enemy
54@ = add_blip_for_coord -982.38 {y} -1703.1 {z} 75.3
change_blip_scale 54@ {size} 1
set_coord_blip_appearance 54@ {color} CoordAppearance.Enemy
55@ = add_blip_for_coord -991.92 {y} -1693.6 {z} 75.3
change_blip_scale 55@ {size} 1
set_coord_blip_appearance 55@ {color} CoordAppearance.Enemy
56@ = add_blip_for_coord -982.38 {y} -1693.6 {z} 75.3
change_blip_scale 56@ {size} 1
set_coord_blip_appearance 56@ {color} CoordAppearance.Enemy
57@ = add_blip_for_coord -991.92 {y} -1684.1 {z} 75.3
change_blip_scale 57@ {size} 1
set_coord_blip_appearance 57@ {color} CoordAppearance.Enemy
58@ = add_blip_for_coord -982.38 {y} -1684.1 {z} 75.3
change_blip_scale 58@ {size} 1
set_coord_blip_appearance 58@ {color} CoordAppearance.Enemy
59@ = add_blip_for_coord -1011.8 {y} -1667.6 {z} 75.3
change_blip_scale 59@ {size} 1
set_coord_blip_appearance 59@ {color} CoordAppearance.Enemy
60@ = add_blip_for_coord -1011.8 {y} -1658.1 {z} 75.3
change_blip_scale 60@ {size} 1
set_coord_blip_appearance 60@ {color} CoordAppearance.Enemy
61@ = add_blip_for_coord -1011.8 {y} -1648.7 {z} 75.3
change_blip_scale 61@ {size} 1
set_coord_blip_appearance 61@ {color} CoordAppearance.Enemy
62@ = add_blip_for_coord -1000.7 {y} -1667.6 {z} 75.3
change_blip_scale 62@ {size} 1
set_coord_blip_appearance 62@ {color} CoordAppearance.Enemy
63@ = add_blip_for_coord -1000.7 {y} -1658.1 {z} 75.3
change_blip_scale 63@ {size} 1
set_coord_blip_appearance 63@ {color} CoordAppearance.Enemy
64@ = add_blip_for_coord -1000.7 {y} -1648.7 {z} 75.3
change_blip_scale 64@ {size} 1
set_coord_blip_appearance 64@ {color} CoordAppearance.Enemy
65@ = add_blip_for_coord -1011.8 {y} -1672.3 {z} 75.3
change_blip_scale 65@ {size} 1
set_coord_blip_appearance 65@ {color} CoordAppearance.Enemy
66@ = add_blip_for_coord -991.92 {y} -1688.8 {z} 75.3
change_blip_scale 66@ {size} 1
set_coord_blip_appearance 66@ {color} CoordAppearance.Enemy
67@ = add_blip_for_coord -982.38 {y} -1688.8 {z} 75.3
change_blip_scale 67@ {size} 1
set_coord_blip_appearance 67@ {color} CoordAppearance.Enemy
68@ = add_blip_for_coord -982.38 {y} -1698.2 {z} 75.3
change_blip_scale 68@ {size} 1
set_coord_blip_appearance 68@ {color} CoordAppearance.Enemy
69@ = add_blip_for_coord -991.92 {y} -1698.2 {z} 75.3
change_blip_scale 69@ {size} 1
set_coord_blip_appearance 69@ {color} CoordAppearance.Enemy
70@ = add_blip_for_coord -982.38 {y} -1707.7 {z} 75.3
change_blip_scale 70@ {size} 1
set_coord_blip_appearance 70@ {color} CoordAppearance.Enemy
71@ = add_blip_for_coord -1011.8 {y} -1662.8 {z} 75.3
change_blip_scale 71@ {size} 1
set_coord_blip_appearance 71@ {color} CoordAppearance.Enemy
72@ = add_blip_for_coord -1000.7 {y} -1672.3 {z} 75.3
change_blip_scale 72@ {size} 1
set_coord_blip_appearance 72@ {color} CoordAppearance.Enemy
73@ = add_blip_for_coord -1011.8 {y} -1653.4 {z} 75.3
change_blip_scale 73@ {size} 1
set_coord_blip_appearance 73@ {color} CoordAppearance.Enemy
74@ = add_blip_for_coord -1032.6 {y} -1636.3 {z} 75.3
change_blip_scale 74@ {size} 1
set_coord_blip_appearance 74@ {color} CoordAppearance.Enemy
75@ = add_blip_for_coord -1052.3 {y} -1636.3 {z} 75.3
change_blip_scale 75@ {size} 1
set_coord_blip_appearance 75@ {color} CoordAppearance.Enemy
76@ = add_blip_for_coord -1042.4 {y} -1636.3 {z} 75.3
change_blip_scale 76@ {size} 1
set_coord_blip_appearance 76@ {color} CoordAppearance.Enemy
77@ = add_blip_for_coord -1062.1 {y} -1626.8 {z} 75.3
change_blip_scale 77@ {size} 1
set_coord_blip_appearance 77@ {color} CoordAppearance.Enemy
78@ = add_blip_for_coord -991.92 {y} -1707.7 {z} 75.3
change_blip_scale 78@ {size} 1
set_coord_blip_appearance 78@ {color} CoordAppearance.Enemy
79@ = add_blip_for_coord -1023.1 {y} -1626.8 {z} 75.3
change_blip_scale 79@ {size} 1
set_coord_blip_appearance 79@ {color} CoordAppearance.Enemy
80@ = add_blip_for_coord -1000.7 {y} -1662.8 {z} 75.3
change_blip_scale 80@ {size} 1
set_coord_blip_appearance 80@ {color} CoordAppearance.Enemy
81@ = add_blip_for_coord -1000.7 {y} -1653.4 {z} 75.3
change_blip_scale 81@ {size} 1
set_coord_blip_appearance 81@ {color} CoordAppearance.Enemy
82@ = add_blip_for_coord -1032.6 {y} -1626.8 {z} 75.3
change_blip_scale 82@ {size} 1
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
83@ = add_blip_for_coord -1042.4 {y} -1626.8 {z} 75.3
change_blip_scale 83@ {size} 1
set_coord_blip_appearance 83@ {color} CoordAppearance.Enemy
84@ = add_blip_for_coord -1052.3 {y} -1626.8 {z} 75.3
change_blip_scale 84@ {size} 1
set_coord_blip_appearance 84@ {color} CoordAppearance.Enemy
85@ = add_blip_for_coord -1062.1 {y} -1636.3 {z} 75.3
change_blip_scale 85@ {size} 1
set_coord_blip_appearance 85@ {color} CoordAppearance.Enemy
86@ = add_blip_for_coord -1023.1 {y} -1636.3 {z} 75.3
change_blip_scale 86@ {size} 1
set_coord_blip_appearance 86@ {color} CoordAppearance.Enemy
display_onscreen_timer_with_string $t2_total_weed_burnt {direction} TimerDirection.Down {text} 'TRU2_06'
set_char_coordinates $scplayer {x} -1089.9 {y} -1644.1 {z} 75.4
set_char_heading $scplayer {heading} 283.3
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
print 'TRU2_01' {time} 7000 {flag} 1
print 'TRU2_02' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0

:TRUTH2_3224
wait 0
gosub @TRUTH2_14570
clear_wanted_level $player1
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TRUTH2_3262
goto @TRUTH2_11942

:TRUTH2_3262
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_3294
goto @TRUTH2_11910

:TRUTH2_3294
if 
  87@ == 0
goto_if_false @TRUTH2_7881
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_3388
151@ = 0
if 
  88@ == 0
goto_if_false @TRUTH2_3361
clear_prints 
88@ = 1

:TRUTH2_3361
set_char_coordinates $scplayer {x} -1104.7 {y} -1648.0 {z} 75.4
$recordflag = 0

:TRUTH2_3388
if 
  88@ == 0
goto_if_false @TRUTH2_3461
if 
  20 > $recordflag
goto_if_false @TRUTH2_3461
clear_prints 
151@ = 1
152@ = 0
gosub @TRUTH2_14975
88@ = 1
TIMERA = 0

:TRUTH2_3461
if 
  88@ == 1
goto_if_false @TRUTH2_3514
if 
  151@ == 0
goto_if_false @TRUTH2_3514
task_enter_car_as_driver $truth {vehicle} 34@ {time} -1
88@ = 2

:TRUTH2_3514
gosub @TRUTH2_12789
if 
  91@ == 0
goto_if_false @TRUTH2_3618
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3618
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 43@
$recordflag -= 1
91@ = 1

:TRUTH2_3618
if 
  92@ == 0
goto_if_false @TRUTH2_3715
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3715
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 44@
$recordflag -= 1
92@ = 1

:TRUTH2_3715
if 
  93@ == 0
goto_if_false @TRUTH2_3812
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3812
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 45@
$recordflag -= 1
93@ = 1

:TRUTH2_3812
if 
  94@ == 0
goto_if_false @TRUTH2_3909
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3909
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 46@
$recordflag -= 1
94@ = 1

:TRUTH2_3909
if 
  95@ == 0
goto_if_false @TRUTH2_4006
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4006
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 47@
$recordflag -= 1
95@ = 1

:TRUTH2_4006
if 
  96@ == 0
goto_if_false @TRUTH2_4103
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4103
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 48@
$recordflag -= 1
96@ = 1

:TRUTH2_4103
if 
  97@ == 0
goto_if_false @TRUTH2_4200
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4200
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 49@
$recordflag -= 1
97@ = 1

:TRUTH2_4200
if 
  98@ == 0
goto_if_false @TRUTH2_4297
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4297
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 50@
$recordflag -= 1
98@ = 1

:TRUTH2_4297
if 
  99@ == 0
goto_if_false @TRUTH2_4394
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4394
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 51@
$recordflag -= 1
99@ = 1

:TRUTH2_4394
if 
  100@ == 0
goto_if_false @TRUTH2_4491
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4491
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 52@
$recordflag -= 1
100@ = 1

:TRUTH2_4491
if 
  101@ == 0
goto_if_false @TRUTH2_4588
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1703.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4588
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 53@
$recordflag -= 1
101@ = 1

:TRUTH2_4588
if 
  102@ == 0
goto_if_false @TRUTH2_4685
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1703.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4685
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 54@
$recordflag -= 1
102@ = 1

:TRUTH2_4685
if 
  103@ == 0
goto_if_false @TRUTH2_4782
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1693.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4782
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 55@
$recordflag -= 1
103@ = 1

:TRUTH2_4782
if 
  104@ == 0
goto_if_false @TRUTH2_4879
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1693.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4879
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 56@
$recordflag -= 1
104@ = 1

:TRUTH2_4879
if 
  105@ == 0
goto_if_false @TRUTH2_4976
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1684.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4976
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 57@
$recordflag -= 1
105@ = 1

:TRUTH2_4976
if 
  106@ == 0
goto_if_false @TRUTH2_5073
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1684.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5073
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 58@
$recordflag -= 1
106@ = 1

:TRUTH2_5073
if 
  107@ == 0
goto_if_false @TRUTH2_5170
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1667.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5170
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 59@
$recordflag -= 1
107@ = 1

:TRUTH2_5170
if 
  108@ == 0
goto_if_false @TRUTH2_5267
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1658.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5267
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 60@
$recordflag -= 1
108@ = 1

:TRUTH2_5267
if 
  109@ == 0
goto_if_false @TRUTH2_5364
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1648.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5364
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 61@
$recordflag -= 1
109@ = 1

:TRUTH2_5364
if 
  110@ == 0
goto_if_false @TRUTH2_5461
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1667.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5461
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 62@
$recordflag -= 1
110@ = 1

:TRUTH2_5461
if 
  111@ == 0
goto_if_false @TRUTH2_5558
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1658.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5558
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 63@
$recordflag -= 1
111@ = 1

:TRUTH2_5558
if 
  112@ == 0
goto_if_false @TRUTH2_5655
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1648.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5655
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 64@
$recordflag -= 1
112@ = 1

:TRUTH2_5655
if 
  113@ == 0
goto_if_false @TRUTH2_5752
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1672.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5752
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 65@
$recordflag -= 1
113@ = 1

:TRUTH2_5752
if 
  114@ == 0
goto_if_false @TRUTH2_5849
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1688.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5849
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 66@
$recordflag -= 1
114@ = 1

:TRUTH2_5849
if 
  115@ == 0
goto_if_false @TRUTH2_5946
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1688.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5946
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 67@
$recordflag -= 1
115@ = 1

:TRUTH2_5946
if 
  116@ == 0
goto_if_false @TRUTH2_6043
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1698.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6043
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 68@
$recordflag -= 1
116@ = 1

:TRUTH2_6043
if 
  117@ == 0
goto_if_false @TRUTH2_6140
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1698.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6140
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 69@
$recordflag -= 1
117@ = 1

:TRUTH2_6140
if 
  118@ == 0
goto_if_false @TRUTH2_6237
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1707.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6237
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 70@
$recordflag -= 1
118@ = 1

:TRUTH2_6237
if 
  119@ == 0
goto_if_false @TRUTH2_6334
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1662.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6334
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 71@
$recordflag -= 1
119@ = 1

:TRUTH2_6334
if 
  120@ == 0
goto_if_false @TRUTH2_6431
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1672.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6431
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 72@
$recordflag -= 1
120@ = 1

:TRUTH2_6431
if 
  121@ == 0
goto_if_false @TRUTH2_6528
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1653.4 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6528
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 73@
$recordflag -= 1
121@ = 1

:TRUTH2_6528
if 
  122@ == 0
goto_if_false @TRUTH2_6625
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6625
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 74@
$recordflag -= 1
122@ = 1

:TRUTH2_6625
if 
  123@ == 0
goto_if_false @TRUTH2_6722
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6722
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 75@
$recordflag -= 1
123@ = 1

:TRUTH2_6722
if 
  124@ == 0
goto_if_false @TRUTH2_6819
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6819
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 76@
$recordflag -= 1
124@ = 1

:TRUTH2_6819
if 
  125@ == 0
goto_if_false @TRUTH2_6916
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6916
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 77@
$recordflag -= 1
125@ = 1

:TRUTH2_6916
if 
  126@ == 0
goto_if_false @TRUTH2_7013
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1707.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7013
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 78@
$recordflag -= 1
126@ = 1

:TRUTH2_7013
if 
  127@ == 0
goto_if_false @TRUTH2_7110
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7110
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 79@
$recordflag -= 1
127@ = 1

:TRUTH2_7110
if 
  128@ == 0
goto_if_false @TRUTH2_7207
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1662.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7207
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 80@
$recordflag -= 1
128@ = 1

:TRUTH2_7207
if 
  129@ == 0
goto_if_false @TRUTH2_7304
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1653.4 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7304
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 81@
$recordflag -= 1
129@ = 1

:TRUTH2_7304
if 
  130@ == 0
goto_if_false @TRUTH2_7401
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7401
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 82@
$recordflag -= 1
130@ = 1

:TRUTH2_7401
if 
  131@ == 0
goto_if_false @TRUTH2_7498
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7498
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 83@
$recordflag -= 1
131@ = 1

:TRUTH2_7498
if 
  132@ == 0
goto_if_false @TRUTH2_7595
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7595
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 84@
$recordflag -= 1
132@ = 1

:TRUTH2_7595
if 
  133@ == 0
goto_if_false @TRUTH2_7692
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7692
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 85@
$recordflag -= 1
133@ = 1

:TRUTH2_7692
if 
  134@ == 0
goto_if_false @TRUTH2_7789
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7789
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 86@
$recordflag -= 1
134@ = 1

:TRUTH2_7789
if 
  $recordflag == 0
goto_if_false @TRUTH2_7881
mark_model_as_no_longer_needed 361
remove_blip 42@
42@ = add_blip_for_coord -1075.5 {y} -1648.5 {z} 75.1
set_coord_blip_appearance 42@ {color} CoordAppearance.Friend
print 'TRU2_14' {time} 11000 {flag} 1
144@ = 0
88@ = 0
87@ = 1

:TRUTH2_7881
if 
  87@ == 1
goto_if_false @TRUTH2_9383
if 
  88@ == 0
goto_if_false @TRUTH2_8279
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_8231
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @TRUTH2_8224
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
set_player_drunkenness $player1 {intensity} 0
remove_pickup 40@
freeze_onscreen_timer True
request_model 359
load_all_models_now 
clear_area -1075.5 {y} -1648.0 {z} 75.1 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1
set_char_heading $scplayer {heading} 157.1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 6.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 4000
set_fixed_camera_position -1071.3 {y} -1647.8 {z} 75.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1078.8 {y} -1648.8 {z} 76.3 {switchStyle} SwitchType.JumpCut
clear_prints 
89@ = 1
skip_cutscene_start_internal @TRUTH2_8545
151@ = 8
152@ = 0
gosub @TRUTH2_14975
88@ = 1

:TRUTH2_8224
goto @TRUTH2_8279

:TRUTH2_8231
freeze_car_position 34@ {state} False
task_car_drive_to_coord $truth {vehicle} 34@ {x} -939.5 {y} -1718.8 {z} 76.7 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
88@ = 5

:TRUTH2_8279
if 
  88@ == 1
goto_if_false @TRUTH2_8351
if 
  151@ == 0
goto_if_false @TRUTH2_8351
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} -1081.4 {y} -1650.3 {z} 75.4 {speed} MoveState.Walk {time} -1
88@ = 2

:TRUTH2_8351
if 
  88@ == 2
goto_if_false @TRUTH2_8435
$task_status = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TRUTH2_8435
give_weapon_to_char $scplayer {weaponType} WeaponType.RocketLauncher {ammo} 10
151@ = 9
152@ = 0
gosub @TRUTH2_14975
88@ = 3

:TRUTH2_8435
if 
  88@ == 3
goto_if_false @TRUTH2_8502
if 
  152@ == 1
goto_if_false @TRUTH2_8502
task_go_straight_to_coord $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1 {speed} MoveState.Walk {time} -1
88@ = 4

:TRUTH2_8502
if 
  88@ == 4
goto_if_false @TRUTH2_8967
if 
  151@ == 0
goto_if_false @TRUTH2_8967
89@ = 0

:TRUTH2_8545
skip_cutscene_end 
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8579
goto @TRUTH2_11910

:TRUTH2_8579
if 
  89@ == 1
goto_if_false @TRUTH2_8745
clear_char_tasks_immediately $scplayer
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
do_fade 500 {direction} Fade.Out

:TRUTH2_8626
if 
  get_fading_status 
goto_if_false @TRUTH2_8650
wait 0
goto @TRUTH2_8626

:TRUTH2_8650
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8682
goto @TRUTH2_11910

:TRUTH2_8682
give_weapon_to_char $scplayer {weaponType} WeaponType.RocketLauncher {ammo} 10
clear_area -1075.5 {y} -1648.0 {z} 75.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1
set_char_heading $scplayer {heading} 268.0

:TRUTH2_8745
shut_all_chars_up False
freeze_onscreen_timer False
freeze_car_position 34@ {state} False
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
task_car_drive_to_coord $truth {vehicle} 34@ {x} -939.5 {y} -1718.8 {z} 76.7 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
remove_blip 42@
42@ = add_blip_for_car 35@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_8872
print_now 'TRU2_15' {time} 7000 {flag} 1

:TRUTH2_8872
if 
  89@ == 1
goto_if_false @TRUTH2_8953
do_fade 500 {direction} Fade.In

:TRUTH2_8897
if 
  get_fading_status 
goto_if_false @TRUTH2_8921
wait 0
goto @TRUTH2_8897

:TRUTH2_8921
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8953
goto @TRUTH2_11910

:TRUTH2_8953
TIMERB = 0
88@ = 5

:TRUTH2_8967
if 
  88@ == 5
goto_if_false @TRUTH2_9383
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_9041
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_9021
explode_car 35@

:TRUTH2_9021
set_char_coordinates $scplayer {x} -946.8 {y} -1733.5 {z} 76.8

:TRUTH2_9041
if 
  153@ == 0
goto_if_false @TRUTH2_9096
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9096
print_help 'SYN3_22'
153@ = 1

:TRUTH2_9096
if 
  153@ == 1
goto_if_false @TRUTH2_9154
if 
  not is_this_help_message_being_displayed 'SYN3_22'
goto_if_false @TRUTH2_9154
print_help 'SYN3_23'
153@ = 2

:TRUTH2_9154
if 
  153@ == 2
goto_if_false @TRUTH2_9212
if 
  not is_this_help_message_being_displayed 'SYN3_23'
goto_if_false @TRUTH2_9212
print_help 'SYN3_24'
153@ = 3

:TRUTH2_9212
if 
  is_car_dead 35@
goto_if_false @TRUTH2_9376
clear_onscreen_timer $t2_total_weed_burnt
clear_prints 
set_radio_channel RadioChannel.KDST
print 'TRU2_17' {time} 11000 {flag} 1
set_car_status 34@ {status} EntityStatus.Physics
set_car_cruise_speed 34@ {maxSpeed} 0.0
set_car_temp_action 34@ {actionId} TempAction.HandbrakeStraight {time} 1000
if 
  is_char_in_any_car $truth
goto_if_false @TRUTH2_9318
warp_char_from_car_to_coord $truth {x} -1516.4 {y} -1596.9 {z} 41.0

:TRUTH2_9318
warp_char_into_car_as_passenger $truth {handle} 34@ {seat} -1
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
remove_blip 42@
42@ = add_blip_for_car 34@
set_blip_as_friendly 42@ {state} True
88@ = 0
87@ = 2
goto @TRUTH2_9383

:TRUTH2_9376
gosub @TRUTH2_14224

:TRUTH2_9383
if 
  87@ == 2
goto_if_false @TRUTH2_9591
if 
  88@ == 0
goto_if_false @TRUTH2_9546
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_9546
set_car_status 34@ {status} EntityStatus.Player
clear_this_print 'TRU2_17'
print_now 'TRU2_12' {time} 7000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $truth {state} True
remove_blip 42@
42@ = add_blip_for_coord -2031.3 {y} 178.5 {z} 27.9
set_blip_as_friendly 42@ {state} False
TIMERB = 0
136@ = 1
88@ = 0
87@ = 3

:TRUTH2_9546
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @TRUTH2_9591
88@ = 0
87@ = 4

:TRUTH2_9591
if 
  87@ == 3
goto_if_false @TRUTH2_10299
if 
  151@ == 3
goto_if_false @TRUTH2_9679
if 
  152@ == 6
goto_if_false @TRUTH2_9679
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TRUTH2_9679
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0

:TRUTH2_9679
if 
  88@ == 0
goto_if_false @TRUTH2_9769
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9769
if 
  151@ == 0
goto_if_false @TRUTH2_9769
151@ = 3
152@ = 0
gosub @TRUTH2_14975
TIMERB = 0
88@ = 1

:TRUTH2_9769
if 
  88@ == 1
goto_if_false @TRUTH2_10105
if 
  151@ == 0
goto_if_false @TRUTH2_10105
if 
  TIMERB > 7000
goto_if_false @TRUTH2_10105
151@ = generate_random_int_in_range 4 {max} 8
if 
  151@ == 4
goto_if_false @TRUTH2_9883
if 
  202@ == 1
goto_if_false @TRUTH2_9876
151@ = 0

:TRUTH2_9876
202@ = 1

:TRUTH2_9883
if 
  151@ == 5
goto_if_false @TRUTH2_9933
if 
  203@ == 1
goto_if_false @TRUTH2_9926
151@ = 0

:TRUTH2_9926
203@ = 1

:TRUTH2_9933
if 
  151@ == 6
goto_if_false @TRUTH2_9983
if 
  204@ == 1
goto_if_false @TRUTH2_9976
151@ = 0

:TRUTH2_9976
204@ = 1

:TRUTH2_9983
if 
  151@ == 7
goto_if_false @TRUTH2_10033
if 
  205@ == 1
goto_if_false @TRUTH2_10026
151@ = 0

:TRUTH2_10026
205@ = 1

:TRUTH2_10033
if 
  206@ == 0
goto_if_false @TRUTH2_10091
137@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 137@ == 2
goto_if_false @TRUTH2_10091
206@ = 1
151@ = 10

:TRUTH2_10091
152@ = 0
gosub @TRUTH2_14975

:TRUTH2_10105
if 
  2 > 88@
goto_if_false @TRUTH2_10292
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_10292
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_10187
set_car_coordinates 34@ {x} -2009.3 {y} 145.2 {z} 26.7
set_car_heading 34@ {heading} 359.8

:TRUTH2_10187
if 
  locate_char_in_car_3d $scplayer {x} -2031.3 {y} 178.5 {z} 27.9 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TRUTH2_10292
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $truth {state} False
set_player_control $player1 {state} False
mark_model_as_no_longer_needed 283
88@ = 0
87@ = 5

:TRUTH2_10292
gosub @TRUTH2_14428

:TRUTH2_10299
if 
  87@ == 4
goto_if_false @TRUTH2_10975
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TRUTH2_10780
if 
  88@ == 0
goto_if_false @TRUTH2_10780
clear_prints 
do_fade 500 {direction} Fade.Out

:TRUTH2_10369
if 
  get_fading_status 
goto_if_false @TRUTH2_10393
wait 0
goto @TRUTH2_10369

:TRUTH2_10393
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10425
goto @TRUTH2_11910

:TRUTH2_10425
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
set_player_drunkenness $player1 {intensity} 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_only_damaged_by_player $truth {state} True
138@, 139@, 140@ = get_offset_from_char_in_world_coords $truth {xOffset} 0.0 {yOffset} -10.0 {zOffset} 5.0
request_model 334
load_scene 138@ {y} 139@ {z} 140@
clear_area 138@ {y} 139@ {z} 140@ {radius} 30.0 {clearParticles} True
set_fixed_camera_position 138@ {y} 139@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $truth {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_char_tasks $truth
if 
  is_char_in_car $truth {vehicle} 34@
goto_if_false @TRUTH2_10613
task_car_temp_action $truth {vehicle} 34@ {actionId} TempAction.HandbrakeStraight {time} 2000000

:TRUTH2_10613
141@, 142@, 143@ = get_nth_closest_car_node 138@ {fromY} 139@ {fromZ} 140@ {n} 1
37@ = create_char PedType.Mission1 {modelId} 283 {x} 141@ {y} 142@ {z} 143@
if 
  is_char_in_any_car $truth
goto_if_false @TRUTH2_10679
give_weapon_to_char 37@ {weaponType} WeaponType.NightStick {ammo} 1

:TRUTH2_10679
task_char_arrest_char 37@ {target} $truth
print_now 'TRU2_10' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:TRUTH2_10710
if 
  get_fading_status 
goto_if_false @TRUTH2_10734
wait 0
goto @TRUTH2_10710

:TRUTH2_10734
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10766
goto @TRUTH2_11910

:TRUTH2_10766
TIMERA = 0
88@ = 1

:TRUTH2_10780
if 
  88@ == 1
goto_if_false @TRUTH2_10975
if 
  TIMERA > 7000
goto_if_false @TRUTH2_10975
do_fade 500 {direction} Fade.Out

:TRUTH2_10824
if 
  get_fading_status 
goto_if_false @TRUTH2_10848
wait 0
goto @TRUTH2_10824

:TRUTH2_10848
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_10869
delete_searchlight 38@

:TRUTH2_10869
delete_char $truth
unload_special_character 1
delete_car 34@
delete_char 37@
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'TRU2_10' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:TRUTH2_10944
if 
  get_fading_status 
goto_if_false @TRUTH2_10968
wait 0
goto @TRUTH2_10944

:TRUTH2_10968
goto @TRUTH2_11910

:TRUTH2_10975
if 
  87@ == 5
goto_if_false @TRUTH2_11839
if 
  88@ == 0
goto_if_false @TRUTH2_11037
if 
  TIMERA > 1500
goto_if_false @TRUTH2_11037
88@ = 1

:TRUTH2_11037
if 
  88@ == 1
goto_if_false @TRUTH2_11617
do_fade 500 {direction} Fade.Out

:TRUTH2_11062
if 
  get_fading_status 
goto_if_false @TRUTH2_11086
wait 0
goto @TRUTH2_11062

:TRUTH2_11086
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11118
goto @TRUTH2_11910

:TRUTH2_11118
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_player_drunkenness $player1 {intensity} 0
set_fixed_camera_position -2025.0 {y} 172.3 {z} 28.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2032.9 {y} 163.0 {z} 30.88 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
clear_area -2028.9 {y} 172.3 {z} 27.8 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2028.9 {y} 172.3 {z} 27.8
set_char_heading $scplayer {heading} 167.6
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2029.9 {y} 167.7 {z} 27.8 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 2000
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
task_go_straight_to_coord -1 {x} -2033.0 {y} 161.4 {z} 28.0 {speed} MoveState.Walk {time} -1
close_sequence_task 215@
perform_sequence_task $scplayer {sequence} 215@
clear_sequence_task 215@
set_player_drunkenness $player1 {intensity} 0
clear_area -2030.9 {y} 172.3 {z} 27.8 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $truth
set_char_coordinates $truth {x} -2030.9 {y} 172.3 {z} 27.8
set_char_heading $truth {heading} 167.6
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2030.9 {y} 167.7 {z} 27.8 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} -2033.0 {y} 161.4 {z} 28.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 115.2
close_sequence_task 215@
perform_sequence_task $truth {sequence} 215@
clear_sequence_task 215@
do_fade 500 {direction} Fade.In

:TRUTH2_11523
if 
  get_fading_status 
goto_if_false @TRUTH2_11547
wait 0
goto @TRUTH2_11523

:TRUTH2_11547
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11579
goto @TRUTH2_11910

:TRUTH2_11579
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 11
152@ = 0
gosub @TRUTH2_14975
88@ = 2

:TRUTH2_11617
if 
  88@ == 2
goto_if_false @TRUTH2_11667
if 
  151@ == 0
goto_if_false @TRUTH2_11667
88@ = 3
TIMERA = 0

:TRUTH2_11667
if 
  88@ == 3
goto_if_false @TRUTH2_11839
if 
  TIMERA > 1000
goto_if_false @TRUTH2_11839
do_fade 500 {direction} Fade.Out

:TRUTH2_11711
if 
  get_fading_status 
goto_if_false @TRUTH2_11735
wait 0
goto @TRUTH2_11711

:TRUTH2_11735
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_11756
delete_searchlight 38@

:TRUTH2_11756
delete_char $truth
unload_special_character 1
delete_car 34@
delete_char 37@
clear_char_tasks_immediately $scplayer
shut_all_chars_up False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:TRUTH2_11808
if 
  get_fading_status 
goto_if_false @TRUTH2_11832
wait 0
goto @TRUTH2_11808

:TRUTH2_11832
goto @TRUTH2_11942

:TRUTH2_11839
if 
  2 > 87@
goto_if_false @TRUTH2_11896
if 
  $t2_total_weed_burnt == 0
goto_if_false @TRUTH2_11896
87@ = 4
88@ = 0
set_char_health $truth {health} 10

:TRUTH2_11896
gosub @TRUTH2_16979
goto @TRUTH2_3224

:TRUTH2_11910
remove_weapon_from_char $scplayer {weaponType} WeaponType.Flamethrower
remove_weapon_from_char $scplayer {weaponType} WeaponType.RocketLauncher
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TRUTH2_11942
set_int_stat StatId.PassedTruth2 {value} 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'TRUTH_2'
player_made_progress 1
$flag_truth_mission_counter += 1
remove_blip $truth_contact_blip
terminate_all_scripts_with_this_name 'MOB_SF'
start_new_script @MOB_SF 
remove_blip $1732
$1732 = add_short_range_sprite_blip_for_contact_point $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15] {sprite} RadarSprite.SaveGame
change_blip_display $1732 {display} BlipDisplay.BlipOnly
start_new_script @GARAGE 
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} RadarSprite.CJ
remove_pickup $grove_save_pickup[15]
$grove_save_pickup[15] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15]
$number_of_save_icons = 16
activate_garage 'MDSSFSE'
remove_blip $2589
$2589 = add_short_range_sprite_blip_for_coord -1941.0 {y} 251.7 {z} 33.4 {sprite} RadarSprite.ModGarage
return 

:TRUTH2_12153
if 
  is_player_playing $player1
goto_if_false @TRUTH2_12183
set_drunk_input_delay $player1 {delay} 0
set_player_drunkenness $player1 {intensity} 0

:TRUTH2_12183
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TRUTH2_12201
restore_camera_jumpcut 

:TRUTH2_12201
remove_ipl_discreetly "TRUTHSFARM"
remove_blip 42@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_12266
heli_goto_coords 35@ {x} 0.0 {y} 0.0 {z} 200.0 {minAltitude} 0.0 {maxAltitude} 200.0

:TRUTH2_12266
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_12287
detach_char_from_car $truth

:TRUTH2_12287
if 
  not is_car_dead 39@
goto_if_false @TRUTH2_12318
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TRUTH2_12318
if 
  not is_car_dead 34@
goto_if_false @TRUTH2_12341
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:TRUTH2_12341
remove_pickup 40@
remove_pickup 41@
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 361
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 334
remove_char_elegantly $truth
unload_special_character 1
clear_onscreen_timer $t2_total_weed_burnt
if 
  not is_char_dead $scplayer
goto_if_false @TRUTH2_12428
shut_char_up_for_scripted_speech $scplayer {state} False

:TRUTH2_12428
shut_all_chars_up False
remove_blip 43@
remove_blip 44@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 56@
remove_blip 57@
remove_blip 58@
remove_blip 59@
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
remove_blip 78@
remove_blip 79@
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TRUTH2_12668
if 
  is_char_dead $truth
goto_if_false @TRUTH2_12709
clear_prints 
print_now 'TRU2_08' {time} 7000 {flag} 1
90@ = 1

:TRUTH2_12709
if 
  is_car_dead 34@
goto_if_false @TRUTH2_12750
clear_prints 
print_now 'TRU2_09' {time} 7000 {flag} 1
90@ = 1

:TRUTH2_12750
if 
  is_car_dead 35@
goto_if_false @TRUTH2_12787
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_12787
delete_searchlight 38@

:TRUTH2_12787
return 

:TRUTH2_12789
if 
  148@ == 0
goto_if_false @TRUTH2_13016
149@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Flamethrower
if 
  149@ == 0
goto_if_false @TRUTH2_13016
remove_blip 43@
remove_blip 44@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 56@
remove_blip 57@
remove_blip 58@
remove_blip 59@
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 42@
40@ = create_pickup_with_ammo 361 {pickupType} PickupType.Once {ammo} 3000 {x} -1100.3 {y} -1640.4 {z} 76.4
42@ = add_blip_for_pickup 40@
set_blip_as_friendly 42@ {state} False
print_now 'TRU2_13' {time} 7000 {flag} 1
148@ = 1

:TRUTH2_13016
if 
  148@ == 1
goto_if_false @TRUTH2_14222
if 
  has_pickup_been_collected 40@
goto_if_false @TRUTH2_14222
remove_blip 42@
if 
  91@ == 0
goto_if_false @TRUTH2_13107
43@ = add_blip_for_coord -1061.9 {y} -1630.7 {z} 75.3
change_blip_scale 43@ {size} 1
set_coord_blip_appearance 43@ {color} CoordAppearance.Enemy

:TRUTH2_13107
if 
  92@ == 0
goto_if_false @TRUTH2_13159
44@ = add_blip_for_coord -1062.3 {y} -1621.4 {z} 75.3
change_blip_scale 44@ {size} 1
set_coord_blip_appearance 44@ {color} CoordAppearance.Enemy

:TRUTH2_13159
if 
  93@ == 0
goto_if_false @TRUTH2_13211
45@ = add_blip_for_coord -1052.8 {y} -1630.8 {z} 75.3
change_blip_scale 45@ {size} 1
set_coord_blip_appearance 45@ {color} CoordAppearance.Enemy

:TRUTH2_13211
if 
  94@ == 0
goto_if_false @TRUTH2_13263
46@ = add_blip_for_coord -1052.8 {y} -1621.4 {z} 75.3
change_blip_scale 46@ {size} 1
set_coord_blip_appearance 46@ {color} CoordAppearance.Enemy

:TRUTH2_13263
if 
  95@ == 0
goto_if_false @TRUTH2_13315
47@ = add_blip_for_coord -1042.8 {y} -1630.8 {z} 75.3
change_blip_scale 47@ {size} 1
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy

:TRUTH2_13315
if 
  96@ == 0
goto_if_false @TRUTH2_13367
48@ = add_blip_for_coord -1042.8 {y} -1621.4 {z} 75.3
change_blip_scale 48@ {size} 1
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy

:TRUTH2_13367
if 
  97@ == 0
goto_if_false @TRUTH2_13419
49@ = add_blip_for_coord -1032.8 {y} -1630.8 {z} 75.3
change_blip_scale 49@ {size} 1
set_coord_blip_appearance 49@ {color} CoordAppearance.Enemy

:TRUTH2_13419
if 
  98@ == 0
goto_if_false @TRUTH2_13471
50@ = add_blip_for_coord -1032.8 {y} -1621.4 {z} 75.3
change_blip_scale 50@ {size} 1
set_coord_blip_appearance 50@ {color} CoordAppearance.Enemy

:TRUTH2_13471
if 
  99@ == 0
goto_if_false @TRUTH2_13523
51@ = add_blip_for_coord -1022.8 {y} -1630.8 {z} 75.3
change_blip_scale 51@ {size} 1
set_coord_blip_appearance 51@ {color} CoordAppearance.Enemy

:TRUTH2_13523
if 
  100@ == 0
goto_if_false @TRUTH2_13575
52@ = add_blip_for_coord -1022.8 {y} -1621.4 {z} 75.3
change_blip_scale 52@ {size} 1
set_coord_blip_appearance 52@ {color} CoordAppearance.Enemy

:TRUTH2_13575
if 
  101@ == 0
goto_if_false @TRUTH2_13627
53@ = add_blip_for_coord -1012.1 {y} -1666.8 {z} 75.3
change_blip_scale 53@ {size} 1
set_coord_blip_appearance 53@ {color} CoordAppearance.Enemy

:TRUTH2_13627
if 
  102@ == 0
goto_if_false @TRUTH2_13679
54@ = add_blip_for_coord -1012.8 {y} -1657.4 {z} 75.3
change_blip_scale 54@ {size} 1
set_coord_blip_appearance 54@ {color} CoordAppearance.Enemy

:TRUTH2_13679
if 
  103@ == 0
goto_if_false @TRUTH2_13731
55@ = add_blip_for_coord -1012.8 {y} -1648.4 {z} 75.3
change_blip_scale 55@ {size} 1
set_coord_blip_appearance 55@ {color} CoordAppearance.Enemy

:TRUTH2_13731
if 
  104@ == 0
goto_if_false @TRUTH2_13783
56@ = add_blip_for_coord -1000.1 {y} -1666.8 {z} 75.3
change_blip_scale 56@ {size} 1
set_coord_blip_appearance 56@ {color} CoordAppearance.Enemy

:TRUTH2_13783
if 
  105@ == 0
goto_if_false @TRUTH2_13835
57@ = add_blip_for_coord -1000.8 {y} -1657.4 {z} 75.3
change_blip_scale 57@ {size} 1
set_coord_blip_appearance 57@ {color} CoordAppearance.Enemy

:TRUTH2_13835
if 
  106@ == 0
goto_if_false @TRUTH2_13887
58@ = add_blip_for_coord -1000.8 {y} -1648.4 {z} 75.3
change_blip_scale 58@ {size} 1
set_coord_blip_appearance 58@ {color} CoordAppearance.Enemy

:TRUTH2_13887
if 
  107@ == 0
goto_if_false @TRUTH2_13939
59@ = add_blip_for_coord -992.1 {y} -1702.8 {z} 75.3
change_blip_scale 59@ {size} 1
set_coord_blip_appearance 59@ {color} CoordAppearance.Enemy

:TRUTH2_13939
if 
  108@ == 0
goto_if_false @TRUTH2_13991
60@ = add_blip_for_coord -992.8 {y} -1693.4 {z} 75.3
change_blip_scale 60@ {size} 1
set_coord_blip_appearance 60@ {color} CoordAppearance.Enemy

:TRUTH2_13991
if 
  109@ == 0
goto_if_false @TRUTH2_14043
61@ = add_blip_for_coord -992.8 {y} -1684.4 {z} 75.3
change_blip_scale 61@ {size} 1
set_coord_blip_appearance 61@ {color} CoordAppearance.Enemy

:TRUTH2_14043
if 
  110@ == 0
goto_if_false @TRUTH2_14095
62@ = add_blip_for_coord -982.1 {y} -1702.8 {z} 75.3
change_blip_scale 62@ {size} 1
set_coord_blip_appearance 62@ {color} CoordAppearance.Enemy

:TRUTH2_14095
if 
  111@ == 0
goto_if_false @TRUTH2_14147
63@ = add_blip_for_coord -982.8 {y} -1693.4 {z} 75.3
change_blip_scale 63@ {size} 1
set_coord_blip_appearance 63@ {color} CoordAppearance.Enemy

:TRUTH2_14147
if 
  112@ == 0
goto_if_false @TRUTH2_14199
64@ = add_blip_for_coord -982.8 {y} -1684.4 {z} 75.3
change_blip_scale 64@ {size} 1
set_coord_blip_appearance 64@ {color} CoordAppearance.Enemy

:TRUTH2_14199
print_now 'TRU2_01' {time} 11000 {flag} 1
148@ = 0

:TRUTH2_14222
return 

:TRUTH2_14224
if 
  150@ == 0
goto_if_false @TRUTH2_14340
149@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncher
if 
  149@ == 0
goto_if_false @TRUTH2_14340
remove_blip 42@
41@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4
42@ = add_blip_for_pickup 41@
set_blip_as_friendly 42@ {state} False
print_now 'TRU2_13' {time} 7000 {flag} 1
150@ = 1

:TRUTH2_14340
if 
  150@ == 1
goto_if_false @TRUTH2_14426
if 
  has_pickup_been_collected 41@
goto_if_false @TRUTH2_14426
remove_blip 42@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_14419
42@ = add_blip_for_car 35@
print_now 'TRU2_15' {time} 11000 {flag} 1

:TRUTH2_14419
150@ = 0

:TRUTH2_14426
return 

:TRUTH2_14428
if 
  136@ == 0
goto_if_false @TRUTH2_14504
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_14504
remove_blip 42@
42@ = add_blip_for_coord -2031.3 {y} 178.5 {z} 27.9
set_blip_as_friendly 42@ {state} False
136@ = 1

:TRUTH2_14504
if 
  136@ == 1
goto_if_false @TRUTH2_14568
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_14568
remove_blip 42@
42@ = add_blip_for_car 34@
set_blip_as_friendly 42@ {state} True
136@ = 0

:TRUTH2_14568
return 

:TRUTH2_14570
if 
  87@ == 0
goto_if_false @TRUTH2_14881
if 
  $recordflag > 0
goto_if_false @TRUTH2_14665
if 
  is_int_lvar_greater_than_int_var 147@ > $recordflag
goto_if_false @TRUTH2_14665
if 
  200 > 146@
goto_if_false @TRUTH2_14658
146@ += 1
146@ += 1

:TRUTH2_14658
147@ -= 1

:TRUTH2_14665
if 
  144@ == 0
goto_if_false @TRUTH2_14715
if 
  40 > $recordflag
goto_if_false @TRUTH2_14715
145@ += 1
144@ = 1

:TRUTH2_14715
if 
  144@ == 1
goto_if_false @TRUTH2_14765
if 
  30 > $recordflag
goto_if_false @TRUTH2_14765
145@ += 1
144@ = 2

:TRUTH2_14765
if 
  144@ == 2
goto_if_false @TRUTH2_14815
if 
  20 > $recordflag
goto_if_false @TRUTH2_14815
145@ += 1
144@ = 3

:TRUTH2_14815
if 
  144@ == 3
goto_if_false @TRUTH2_14865
if 
  10 > $recordflag
goto_if_false @TRUTH2_14865
145@ += 1
144@ = 4

:TRUTH2_14865
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@

:TRUTH2_14881
if or
  87@ == 2
  87@ == 3
goto_if_false @TRUTH2_14973
if 
  TIMERA > 660
goto_if_false @TRUTH2_14973
if 
  146@ > 1
goto_if_false @TRUTH2_14950
146@ -= 1

:TRUTH2_14950
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@
TIMERA = 0

:TRUTH2_14973
return 

:TRUTH2_14975
if 
  151@ == 1
goto_if_false @TRUTH2_15176
set_lvar_text_label 154@s = 'TRU2_AA'
set_lvar_text_label 156@s = 'TRU2_AB'
set_lvar_text_label 158@s = 'TRU2_AC'
set_lvar_text_label 160@s = 'TRU2_AD'
set_lvar_text_label 162@s = 'TRU2_AE'
set_lvar_text_label 164@s = 'TRU2_BA'
set_lvar_text_label 166@s = 'TRU2_BB'
set_lvar_text_label 168@s = 'TRU2_BC'
set_lvar_int_to_constant 186@ = 7800
set_lvar_int_to_constant 187@ = 7838
set_lvar_int_to_constant 188@ = 7801
set_lvar_int_to_constant 189@ = 7839
set_lvar_int_to_constant 190@ = 7802
set_lvar_int_to_constant 191@ = 7803
set_lvar_int_to_constant 192@ = 7840
set_lvar_int_to_constant 193@ = 7841
207@ = 8

:TRUTH2_15176
if 
  151@ == 2
goto_if_false @TRUTH2_15245
set_lvar_text_label 154@s = 'TRU2_CA'
set_lvar_text_label 156@s = 'TRU2_CB'
set_lvar_int_to_constant 186@ = 7842
set_lvar_int_to_constant 187@ = 7804
207@ = 2

:TRUTH2_15245
if 
  151@ == 3
goto_if_false @TRUTH2_15512
set_lvar_text_label 154@s = 'TRU2_DA'
set_lvar_text_label 156@s = 'TRU2_DB'
set_lvar_text_label 158@s = 'TRU2_DC'
set_lvar_text_label 160@s = 'TRU2_DD'
set_lvar_text_label 162@s = 'TRU2_DE'
set_lvar_text_label 164@s = 'TRU2_OA'
set_lvar_text_label 166@s = 'TRU2_OB'
set_lvar_text_label 168@s = 'TRU2_OC'
set_lvar_text_label 170@s = 'TRU2_OD'
set_lvar_text_label 172@s = 'TRU2_OE'
set_lvar_text_label 174@s = 'TRU2_OF'
set_lvar_int_to_constant 186@ = 7843
set_lvar_int_to_constant 187@ = 7805
set_lvar_int_to_constant 188@ = 7844
set_lvar_int_to_constant 189@ = 7806
set_lvar_int_to_constant 190@ = 7807
set_lvar_int_to_constant 191@ = 7868
set_lvar_int_to_constant 192@ = 31200
set_lvar_int_to_constant 193@ = 7869
set_lvar_int_to_constant 194@ = 7870
set_lvar_int_to_constant 195@ = 7871
set_lvar_int_to_constant 196@ = 7872
207@ = 11

:TRUTH2_15512
if 
  151@ == 4
goto_if_false @TRUTH2_15669
set_lvar_text_label 154@s = 'TRU2_EA'
set_lvar_text_label 156@s = 'TRU2_EB'
set_lvar_text_label 158@s = 'TRU2_EC'
set_lvar_text_label 160@s = 'TRU2_ED'
set_lvar_text_label 162@s = 'TRU2_EF'
set_lvar_text_label 164@s = 'TRU2_EG'
set_lvar_int_to_constant 186@ = 7846
set_lvar_int_to_constant 187@ = 7808
set_lvar_int_to_constant 188@ = 7847
set_lvar_int_to_constant 189@ = 7809
set_lvar_int_to_constant 190@ = 7810
set_lvar_int_to_constant 191@ = 7848
207@ = 6

:TRUTH2_15669
if 
  151@ == 5
goto_if_false @TRUTH2_15914
set_lvar_text_label 154@s = 'TRU2_FA'
set_lvar_text_label 156@s = 'TRU2_FB'
set_lvar_text_label 158@s = 'TRU2_FC'
set_lvar_text_label 160@s = 'TRU2_FD'
set_lvar_text_label 162@s = 'TRU2_FE'
set_lvar_text_label 164@s = 'TRU2_FF'
set_lvar_text_label 166@s = 'TRU2_FG'
set_lvar_text_label 168@s = 'TRU2_FH'
set_lvar_text_label 170@s = 'TRU2_FJ'
set_lvar_text_label 172@s = 'TRU2_FK'
set_lvar_int_to_constant 186@ = 7865
set_lvar_int_to_constant 187@ = 7811
set_lvar_int_to_constant 188@ = 7849
set_lvar_int_to_constant 189@ = 7812
set_lvar_int_to_constant 190@ = 7850
set_lvar_int_to_constant 191@ = 7813
set_lvar_int_to_constant 192@ = 7814
set_lvar_int_to_constant 193@ = 7815
set_lvar_int_to_constant 194@ = 7816
set_lvar_int_to_constant 195@ = 7851
207@ = 10

:TRUTH2_15914
if 
  151@ == 6
goto_if_false @TRUTH2_16115
set_lvar_text_label 154@s = 'TRU2_GA'
set_lvar_text_label 156@s = 'TRU2_GB'
set_lvar_text_label 158@s = 'TRU2_GC'
set_lvar_text_label 160@s = 'TRU2_GE'
set_lvar_text_label 162@s = 'TRU2_GF'
set_lvar_text_label 164@s = 'TRU2_GG'
set_lvar_text_label 166@s = 'TRU2_GH'
set_lvar_text_label 168@s = 'TRU2_GJ'
set_lvar_int_to_constant 186@ = 7852
set_lvar_int_to_constant 187@ = 7817
set_lvar_int_to_constant 188@ = 7818
set_lvar_int_to_constant 189@ = 7853
set_lvar_int_to_constant 190@ = 7819
set_lvar_int_to_constant 191@ = 7820
set_lvar_int_to_constant 192@ = 7821
set_lvar_int_to_constant 193@ = 7822
207@ = 8

:TRUTH2_16115
if 
  151@ == 7
goto_if_false @TRUTH2_16448
set_lvar_text_label 154@s = 'TRU2_HA'
set_lvar_text_label 156@s = 'TRU2_HB'
set_lvar_text_label 158@s = 'TRU2_HC'
set_lvar_text_label 160@s = 'TRU2_HD'
set_lvar_text_label 162@s = 'TRU2_HE'
set_lvar_text_label 164@s = 'TRU2_HF'
set_lvar_text_label 166@s = 'TRU2_HG'
set_lvar_text_label 168@s = 'TRU2_HH'
set_lvar_text_label 170@s = 'TRU2_HJ'
set_lvar_text_label 172@s = 'TRU2_HK'
set_lvar_text_label 174@s = 'TRU2_HL'
set_lvar_text_label 176@s = 'TRU2_HM'
set_lvar_text_label 178@s = 'TRU2_HN'
set_lvar_text_label 180@s = 'TRU2_HO'
set_lvar_int_to_constant 186@ = 7854
set_lvar_int_to_constant 187@ = 7823
set_lvar_int_to_constant 188@ = 7855
set_lvar_int_to_constant 189@ = 7824
set_lvar_int_to_constant 190@ = 7825
set_lvar_int_to_constant 191@ = 7866
set_lvar_int_to_constant 192@ = 7856
set_lvar_int_to_constant 193@ = 7826
set_lvar_int_to_constant 194@ = 7827
set_lvar_int_to_constant 195@ = 7857
set_lvar_int_to_constant 196@ = 7828
set_lvar_int_to_constant 197@ = 7829
set_lvar_int_to_constant 198@ = 7858
set_lvar_int_to_constant 199@ = 7859
207@ = 14

:TRUTH2_16448
if 
  151@ == 8
goto_if_false @TRUTH2_16517
set_lvar_text_label 154@s = 'TRU2_JA'
set_lvar_text_label 156@s = 'TRU2_JB'
set_lvar_int_to_constant 186@ = 7860
set_lvar_int_to_constant 187@ = 7830
207@ = 2

:TRUTH2_16517
if 
  151@ == 9
goto_if_false @TRUTH2_16630
set_lvar_text_label 154@s = 'TRU2_KA'
set_lvar_text_label 156@s = 'TRU2_KB'
set_lvar_text_label 158@s = 'TRU2_KC'
set_lvar_text_label 160@s = 'TRU2_KD'
set_lvar_int_to_constant 186@ = 7861
set_lvar_int_to_constant 187@ = 7862
set_lvar_int_to_constant 188@ = 7831
set_lvar_int_to_constant 189@ = 7832
207@ = 4

:TRUTH2_16630
if 
  151@ == 10
goto_if_false @TRUTH2_16787
set_lvar_text_label 154@s = 'TRU2_LA'
set_lvar_text_label 156@s = 'TRU2_LB'
set_lvar_text_label 158@s = 'TRU2_LC'
set_lvar_text_label 160@s = 'TRU2_MA'
set_lvar_text_label 162@s = 'TRU2_MB'
set_lvar_text_label 164@s = 'TRU2_MC'
set_lvar_int_to_constant 186@ = 7833
set_lvar_int_to_constant 187@ = 7863
set_lvar_int_to_constant 188@ = 7834
set_lvar_int_to_constant 189@ = 7864
set_lvar_int_to_constant 190@ = 7835
set_lvar_int_to_constant 191@ = 7867
207@ = 6

:TRUTH2_16787
if 
  151@ == 11
goto_if_false @TRUTH2_16856
set_lvar_text_label 154@s = 'TRU2_NA'
set_lvar_text_label 156@s = 'TRU2_NB'
set_lvar_int_to_constant 186@ = 7836
set_lvar_int_to_constant 187@ = 7837
207@ = 2

:TRUTH2_16856
if 
  151@ == 12
goto_if_false @TRUTH2_16948
set_lvar_text_label 154@s = 'TRUX_AA'
set_lvar_text_label 156@s = 'TRUX_AB'
set_lvar_text_label 158@s = 'TRUX_AC'
set_lvar_int_to_constant 186@ = 26600
set_lvar_int_to_constant 187@ = 26601
set_lvar_int_to_constant 188@ = 26602
set_lvar_int_to_lvar_int 207@ = 212@

:TRUTH2_16948
set_lvar_int_to_lvar_int 210@ = 152@
208@ = 0
209@ = 0
211@ = 1
return 

:TRUTH2_16979
if or
  151@ == 1
  151@ == 2
  151@ == 8
  151@ == 9
  151@ == 11
goto_if_false @TRUTH2_17133
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17126
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17088
gosub @TRUTH2_18354
goto @TRUTH2_17119

:TRUTH2_17088
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17119
goto @TRUTH2_17133

:TRUTH2_17126
151@ = 0

:TRUTH2_17133
if or
  87@ == 3
  87@ == 4
goto_if_false @TRUTH2_17632
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17496
if 
  151@ == 3
goto_if_false @TRUTH2_17310
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17296
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17258
gosub @TRUTH2_18354
goto @TRUTH2_17289

:TRUTH2_17258
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17289
goto @TRUTH2_17310

:TRUTH2_17296
TIMERB = 0
151@ = 0

:TRUTH2_17310
if or
  151@ == 4
  151@ == 5
  151@ == 6
  151@ == 7
  151@ == 10
goto_if_false @TRUTH2_17496
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17457
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17419
gosub @TRUTH2_18354
goto @TRUTH2_17450

:TRUTH2_17419
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17450
goto @TRUTH2_17496

:TRUTH2_17457
if 
  145@ > 0
goto_if_false @TRUTH2_17482
145@ -= 1

:TRUTH2_17482
TIMERB = 0
151@ = 0

:TRUTH2_17496
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17632
if 
  12 > 151@
goto_if_false @TRUTH2_17632
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17559
152@ += 1

:TRUTH2_17559
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
clear_prints 
set_lvar_int_to_lvar_int 214@ = 151@
set_lvar_int_to_lvar_int 213@ = 152@
151@ = 12
152@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_17632
if 
  4 > 87@
goto_if_false @TRUTH2_18091
if 
  151@ == 12
goto_if_false @TRUTH2_17863
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17811
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17788
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17750
gosub @TRUTH2_18354
goto @TRUTH2_17781

:TRUTH2_17750
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17781
goto @TRUTH2_17811

:TRUTH2_17788
print 'TRU2_17' {time} 11000 {flag} 1
151@ = 13

:TRUTH2_17811
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17863
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
151@ = 14
152@ = 0
clear_prints 

:TRUTH2_17863
if 
  151@ == 13
goto_if_false @TRUTH2_17916
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17916
151@ = 14
152@ = 0
clear_prints 

:TRUTH2_17916
if 
  151@ == 14
goto_if_false @TRUTH2_18091
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18017
TIMERB = 0
set_lvar_int_to_lvar_int 151@ = 214@
set_lvar_int_to_lvar_int 152@ = 213@
gosub @TRUTH2_14975
if 
  214@ == 0
goto_if_false @TRUTH2_18017
print 'TRU2_12' {time} 7000 {flag} 1

:TRUTH2_18017
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18091
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
151@ = 12
152@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_18091
return 

:TRUTH2_18093
if 
  is_int_lvar_greater_than_int_lvar 207@ > 210@
goto_if_false @TRUTH2_18198
if 
  208@ == 0
goto_if_false @TRUTH2_18155
load_mission_audio MissionAudioSlot.Slot1 {audioId} 186@(210@,16i)
210@ += 1
208@ = 1

:TRUTH2_18155
if 
  209@ == 0
goto_if_false @TRUTH2_18198
load_mission_audio MissionAudioSlot.Slot2 {audioId} 186@(210@,16i)
210@ += 1
209@ = 1

:TRUTH2_18198
return 

:TRUTH2_18200
if 
  211@ == 1
goto_if_false @TRUTH2_18276
if 
  208@ == 1
goto_if_false @TRUTH2_18276
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH2_18276
play_mission_audio MissionAudioSlot.Slot1
print_now 154@(152@,16s) {time} 4500 {flag} 1
208@ = 2

:TRUTH2_18276
if 
  211@ == 2
goto_if_false @TRUTH2_18352
if 
  209@ == 1
goto_if_false @TRUTH2_18352
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TRUTH2_18352
play_mission_audio MissionAudioSlot.Slot2
print_now 154@(152@,16s) {time} 4500 {flag} 1
209@ = 2

:TRUTH2_18352
return 

:TRUTH2_18354
if 
  208@ == 2
goto_if_false @TRUTH2_18417
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH2_18417
clear_this_print 154@(152@,16s)
152@ += 1
211@ = 2
208@ = 0

:TRUTH2_18417
if 
  209@ == 2
goto_if_false @TRUTH2_18480
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TRUTH2_18480
clear_this_print 154@(152@,16s)
152@ += 1
211@ = 1
209@ = 0

:TRUTH2_18480
return 

//-------------Mission 48---------------
// Originally: Wu Zi Mu / Farewell, My Love...

:BCESAR4
script_name 'BCESAR4'
gosub @BCESAR4_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCESAR4_38
gosub @BCESAR4_2683

:BCESAR4_38
gosub @BCESAR4_2736
terminate_this_script 

:BCESAR4_47
$onmission = 1

:BCESAR4_54
wait 0
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR4_401
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_168
34@ = get_car_char_is_using $scplayer
set_car_as_mission_car 34@
$x, $y, $z = get_car_coordinates 34@
$z += 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z
freeze_car_position 34@ {state} True
goto @BCESAR4_175

:BCESAR4_168
34@ = -1

:BCESAR4_175
clear_area 1557.162 {y} 24.305 {z} 22.7313 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESAR4'

:BCESAR4_219
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_243
wait 0
goto @BCESAR4_219

:BCESAR4_243
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_252
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_276
wait 0
goto @BCESAR4_252

:BCESAR4_276
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_289
if 
  get_fading_status 
goto_if_false @BCESAR4_313
wait 0
goto @BCESAR4_289

:BCESAR4_313
clear_cutscene 
$flag_stage_of_bcesar_race = 1
$start_the_bcesar_race = 1
if 
  34@ <> -1
goto_if_false @BCESAR4_394
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_394
freeze_car_position 34@ {state} False
$z -= 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z

:BCESAR4_394
goto @BCESAR4_2685

:BCESAR4_401
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR4_1629
if 
  is_char_in_area_3d $scplayer {leftBottomX} -782.3699 {leftBottomY} -147.948 {leftBottomZ} 19.5518 {rightTopX} -405.0757 {rightTopY} -237.5195 {rightTopZ} 91.1306 {drawSphere} False
goto_if_false @BCESAR4_1601
$onmission = 1
do_fade 1000 {direction} Fade.Out

:BCESAR4_481
if 
  get_fading_status 
goto_if_false @BCESAR4_505
wait 0
goto @BCESAR4_481

:BCESAR4_505
request_model 439
request_model 475
request_model 526
request_model 101
request_model 23
request_model 290
request_animation "KISSING"
clear_area -518.049 {y} -189.3775 {z} 79.3468 {radius} 100.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -535.8186 {y} -198.0116 {z} 80.8647 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -535.5711 {y} -197.1029 {z} 80.5285 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR4_732
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_732
$car = get_car_char_is_using $scplayer
if 
  $car > 0
goto_if_false @BCESAR4_732
if 
  not is_car_dead $car
goto_if_false @BCESAR4_732
set_car_visible $car {state} False
freeze_car_position $car {state} True
set_car_collision $car {state} False
set_char_visible $scplayer {state} False

:BCESAR4_732
wait 1000

:BCESAR4_737
if and
  not has_model_loaded 439
  not has_model_loaded 475
  not has_model_loaded 526
  not has_model_loaded 101
  not has_model_loaded 23
  not has_model_loaded 290
goto_if_false @BCESAR4_787
wait 0
goto @BCESAR4_737

:BCESAR4_787
if 
  not has_animation_loaded "KISSING"
goto_if_false @BCESAR4_820
wait 0
goto @BCESAR4_787

:BCESAR4_820
35@ = create_car 439 {x} -536.7188 {y} -192.5453 {z} 77.404
38@ = create_char PedType.Mission1 {modelId} 101 {x} -530.4067 {y} -188.8082 {z} 77.3986
set_car_heading 35@ {heading} 287.0
41@ = open_sequence_task 
task_play_anim -1 {animationName} "GIFT_GIVE" {animationFile} "KISSING" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_enter_car_as_driver -1 {vehicle} 35@ {time} -2
task_car_drive_to_coord -1 {vehicle} 35@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 38@ {sequence} 41@
clear_sequence_task 41@
36@ = create_car 475 {x} -536.158 {y} -185.2865 {z} 77.398
39@ = create_char PedType.Mission1 {modelId} 23 {x} -530.4067 {y} -187.8082 {z} 77.3986
set_char_heading 39@ {heading} 180.0
set_car_heading 36@ {heading} 243.0
41@ = open_sequence_task 
task_play_anim -1 {animationName} "GIFT_GET" {animationFile} "KISSING" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_enter_car_as_driver -1 {vehicle} 36@ {time} -2
task_car_drive_to_coord -1 {vehicle} 36@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 39@ {sequence} 41@
clear_sequence_task 41@
37@ = create_car 526 {x} -524.9425 {y} -184.208 {z} 77.2766
40@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 290
set_car_heading 37@ {heading} 239.0
41@ = open_sequence_task 
task_pause -1 {time} 7000
task_car_drive_to_coord -1 {vehicle} 37@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 40@ {sequence} 41@
clear_sequence_task 41@
do_fade 800 {direction} Fade.In
skip_cutscene_start_internal @BCESAR4_1310
wait 10000
do_fade 1000 {direction} Fade.Out

:BCESAR4_1286
if 
  get_fading_status 
goto_if_false @BCESAR4_1310
wait 0
goto @BCESAR4_1286

:BCESAR4_1310
skip_cutscene_end 
if 
  not is_car_dead 35@
goto_if_false @BCESAR4_1333
delete_car 35@

:BCESAR4_1333
if 
  not is_car_dead 36@
goto_if_false @BCESAR4_1354
delete_car 36@

:BCESAR4_1354
if 
  not is_car_dead 37@
goto_if_false @BCESAR4_1375
delete_car 37@

:BCESAR4_1375
if 
  not is_char_dead 38@
goto_if_false @BCESAR4_1396
delete_char 38@

:BCESAR4_1396
if 
  not is_char_dead 39@
goto_if_false @BCESAR4_1417
delete_char 39@

:BCESAR4_1417
if 
  not is_char_dead 40@
goto_if_false @BCESAR4_1438
delete_char 40@

:BCESAR4_1438
mark_model_as_no_longer_needed 439
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 526
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 290
remove_animation "KISSING"
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR4_1579
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_1579
$car = get_car_char_is_using $scplayer
if 
  $car > 0
goto_if_false @BCESAR4_1579
if 
  not is_car_dead $car
goto_if_false @BCESAR4_1579
set_car_visible $car {state} True
freeze_car_position $car {state} False
set_car_collision $car {state} True
set_char_visible $scplayer {state} True

:BCESAR4_1579
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 800 {direction} Fade.In

:BCESAR4_1601
$flag_bcesar_mission_counter = -1
$onmission = 0
34@ = 0
goto @BCESAR4_2685

:BCESAR4_1629
if 
  $flag_bcesar_mission_counter == 4
goto_if_false @BCESAR4_2019
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_1710
34@ = get_car_char_is_using $scplayer
freeze_car_position 34@ {state} True
set_car_visible 34@ {state} False
set_car_collision 34@ {state} False
goto @BCESAR4_1717

:BCESAR4_1710
34@ = -1

:BCESAR4_1717
clear_area -526.7778 {y} -189.0571 {z} 76.9917 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESA4W'

:BCESAR4_1761
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_1785
wait 0
goto @BCESAR4_1761

:BCESAR4_1785
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_1794
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_1818
wait 0
goto @BCESAR4_1794

:BCESAR4_1818
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_1831
if 
  get_fading_status 
goto_if_false @BCESAR4_1855
wait 0
goto @BCESAR4_1831

:BCESAR4_1855
clear_cutscene 
if 
  34@ <> -1
goto_if_false @BCESAR4_1923
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_1916
freeze_car_position 34@ {state} False
set_car_visible 34@ {state} True
set_car_collision 34@ {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_1916
goto @BCESAR4_1957

:BCESAR4_1923
set_char_coordinates $scplayer {x} -503.3945 {y} -186.0599 {z} 76.6103
set_char_heading $scplayer {heading} 53.0
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_1957
do_fade 1000 {direction} Fade.In
remove_blip $bcesar_contact_blip
register_mission_passed 'BCESAR4'
print_with_number_big 'M_PASSD' {num} 3 {duration} 5000 {style} TextStyle.Middle
$flag_stage_of_bcesar_race = 0
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2019
if 
  $flag_bcesar_mission_counter == 5
goto_if_false @BCESAR4_2222
load_mission_text 'BCESAR4'
clear_area -526.7778 {y} -189.0571 {z} 76.9917 {radius} 100.0 {clearParticles} True
set_char_coordinates $scplayer {x} -495.9034 {y} -196.2218 {z} 77.3986
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESAR5'

:BCESAR4_2112
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_2136
wait 0
goto @BCESAR4_2112

:BCESAR4_2136
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_2145
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_2169
wait 0
goto @BCESAR4_2145

:BCESAR4_2169
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_2182
if 
  get_fading_status 
goto_if_false @BCESAR4_2206
wait 0
goto @BCESAR4_2182

:BCESAR4_2206
clear_cutscene 
$start_the_bcesar_race = 1
goto @BCESAR4_2685

:BCESAR4_2222
if 
  $flag_bcesar_mission_counter == 9
goto_if_false @BCESAR4_2676
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_2332
34@ = get_car_char_is_using $scplayer
set_car_as_mission_car 34@
$x, $y, $z = get_car_coordinates 34@
$z += 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z
freeze_car_position 34@ {state} True
goto @BCESAR4_2339

:BCESAR4_2332
34@ = -1

:BCESAR4_2339
clear_area 1557.162 {y} 24.305 {z} 22.7313 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESA5W'

:BCESAR4_2383
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_2407
wait 0
goto @BCESAR4_2383

:BCESAR4_2407
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_2416
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_2440
wait 0
goto @BCESAR4_2416

:BCESAR4_2440
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_2453
if 
  get_fading_status 
goto_if_false @BCESAR4_2477
wait 0
goto @BCESAR4_2453

:BCESAR4_2477
clear_cutscene 
if 
  34@ <> -1
goto_if_false @BCESAR4_2583
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_2576
freeze_car_position 34@ {state} False
set_car_visible 34@ {state} True
set_car_collision 34@ {state} True
set_car_coordinates 34@ {x} 1557.694 {y} 17.4472 {z} 23.1641
set_car_heading 34@ {heading} 9.0
warp_char_into_car $scplayer {vehicle} 34@
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_2576
goto @BCESAR4_2617

:BCESAR4_2583
set_char_coordinates $scplayer {x} 1559.7679 {y} 14.4176 {z} 23.1641
set_char_heading $scplayer {heading} 10.0
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_2617
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
remove_blip $bcesar_contact_blip
register_mission_passed 'BCES4_2'
print_with_number_big 'M_PASSD' {num} 3 {duration} 5000 {style} TextStyle.Middle
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2676
goto @BCESAR4_54

:BCESAR4_2683
return 

:BCESAR4_2685
if 
  5 > $flag_bcesar_mission_counter
goto_if_false @BCESAR4_2734
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_2734
warp_char_into_car $scplayer {vehicle} 34@
freeze_car_position 34@ {state} False

:BCESAR4_2734
return 

:BCESAR4_2736
$flag_bcesar_mission_counter += 1
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR4_2781
do_fade 0 {direction} Fade.Out

:BCESAR4_2781
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR4_2805
do_fade 0 {direction} Fade.Out

:BCESAR4_2805
return 

//-------------Mission 49---------------
// Originally: Wear Flowers In Your Hair

:GARAG1
script_name 'GARAG1'
gosub @GARAG1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GARAG1_38
gosub @GARAG1_24492

:GARAG1_38
gosub @GARAG1_24510
terminate_this_script 

:GARAG1_47
$onmission = 1
force_weather_now WeatherType.SunnySf
register_mission_given 
load_mission_text 'GARAGE1'
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:GARAG1_85
if 
  get_fading_status 
goto_if_false @GARAG1_109
wait 0
goto @GARAG1_85

:GARAG1_109
set_area_visible 1
load_cutscene 'GARAG1B'

:GARAG1_124
if 
  not has_cutscene_loaded 
goto_if_false @GARAG1_148
wait 0
goto @GARAG1_124

:GARAG1_148
start_cutscene 
do_fade 1000 {direction} Fade.In
wait 1000

:GARAG1_162
if 
  not has_cutscene_finished 
goto_if_false @GARAG1_186
wait 0
goto @GARAG1_162

:GARAG1_186
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GARAG1_201
if 
  get_fading_status 
goto_if_false @GARAG1_225
wait 0
goto @GARAG1_201

:GARAG1_225
set_area_visible 0
load_special_character 3 {modelName} 'JETHRO'

:GARAG1_242
if 
  not has_special_character_loaded 3
goto_if_false @GARAG1_268
wait 0
goto @GARAG1_242

:GARAG1_268
135@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 135@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 135@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 135@ {event} Event.PotentialWalkIntoVehicle
set_script_limit_to_gang_size 3
make_room_in_player_gang_for_mission_peds 3
54@ = -1669.0
59@ = 439.773
64@ = 6.219
43@ = 80.0
55@ = -2230.168
60@ = 544.7148
65@ = 34.2219
56@ = -2248.1011
61@ = 132.8547
66@ = 35.3302
57@ = -2052.1011
62@ = -147.8547
67@ = 28.3302
58@ = -2059.553
63@ = -22.1661
68@ = 34.305
45@ = -2584.0
46@ = 585.0
47@ = 14.0
48@ = -1624.41
49@ = 725.25
50@ = 14.11
69@ = -2042.03
70@ = 178.11
71@ = 28.15
101@ = 1
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$t2_cop_timer = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
72@ = -1674.21
77@ = 438.5
82@ = 6.2
73@ = -2237.0
78@ = 542.0782
83@ = 33.901
74@ = -2243.1011
79@ = 128.8547
84@ = 34.3302
75@ = -2052.1011
80@ = -147.8547
85@ = 28.3302
119@ = 0
348@ = 0
134@ = 0
349@ = 0
if 
  349@ == 1
goto_if_false @GARAG1_947
242@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.CivMale {modelId} 291 {x} -2031.252 {y} 164.0169 {z} 27.8429
94@ = create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)

:GARAG1_947
set_var_text_label s$flag_is_zero_on_bike[0] = 'GAR1_AA'
set_var_text_label s$flag_is_zero_on_bike[1] = 'GAR1_AB'
set_var_text_label s$flag_is_zero_on_bike[2] = 'GAR1_AC'
set_var_text_label s$flag_is_zero_on_bike[3] = 'GAR1_AD'
set_var_text_label s$flag_is_zero_on_bike[4] = 'GAR1_AE'
set_var_text_label s$flag_is_zero_on_bike[5] = 'GAR1_AF'
set_var_text_label s$flag_is_zero_on_bike[6] = 'GAR1_AG'
set_var_text_label s$flag_is_zero_on_bike[7] = 'GAR1_AH'
set_var_text_label s$flag_is_zero_on_bike[8] = 'GAR1_AJ'
set_var_text_label s$flag_is_zero_on_bike[9] = 'GAR1_BA'
set_var_text_label s$flag_is_zero_on_bike[10] = 'GAR1_BB'
set_var_text_label s$flag_is_zero_on_bike[11] = 'GAR1_BC'
set_var_text_label s$flag_is_zero_on_bike[12] = 'GAR1_BD'
set_var_text_label s$flag_is_zero_on_bike[13] = 'GAR1_BE'
set_var_text_label s$flag_is_zero_on_bike[14] = 'GAR1_BF'
set_var_text_label s$flag_is_zero_on_bike[15] = 'GAR1_BG'
set_var_text_label s$flag_is_zero_on_bike[16] = 'GAR1_BH'
set_var_text_label s$flag_is_zero_on_bike[17] = 'GAR1_CA'
set_var_text_label s$flag_is_zero_on_bike[18] = 'GAR1_CB'
set_var_text_label s$flag_is_zero_on_bike[19] = 'GAR1_CC'
set_var_text_label s$flag_is_zero_on_bike[20] = 'GAR1_DA'
set_var_text_label s$flag_is_zero_on_bike[21] = 'GAR1_DF'
set_var_text_label s$flag_is_zero_on_bike[22] = 'GAR1_DB'
set_var_text_label s$flag_is_zero_on_bike[23] = 'GAR1_DC'
set_var_text_label s$flag_is_zero_on_bike[24] = 'GAR1_DD'
set_var_text_label s$flag_is_zero_on_bike[25] = 'GAR1_DE'
set_var_text_label s$flag_is_zero_on_bike[26] = 'GAR1_EA'
set_var_text_label s$flag_is_zero_on_bike[27] = 'GAR1_EB'
set_var_text_label s$flag_is_zero_on_bike[28] = 'GAR1_EC'
set_var_text_label s$flag_is_zero_on_bike[29] = 'GAR1_ED'
set_var_text_label s$flag_is_zero_on_bike[30] = 'GAR1_EE'
set_var_text_label s$flag_is_zero_on_bike[31] = 'GAR1_FA'
set_var_text_label s$flag_is_zero_on_bike[32] = 'GAR1_FB'
set_var_text_label s$flag_is_zero_on_bike[33] = 'GAR1_FC'
set_var_text_label s$flag_is_zero_on_bike[34] = 'GAR1_FD'
set_var_text_label s$flag_is_zero_on_bike[35] = 'GAR1_FE'
set_var_text_label s$flag_is_zero_on_bike[36] = 'GAR1_FF'
set_var_text_label s$flag_is_zero_on_bike[37] = 'GAR1_FG'
set_var_text_label s$flag_is_zero_on_bike[38] = 'GAR1_GA'
set_var_text_label s$flag_is_zero_on_bike[39] = 'GAR1_GB'
set_var_text_label s$flag_is_zero_on_bike[40] = 'GAR1_GC'
set_var_text_label s$flag_is_zero_on_bike[41] = 'GAR1_GD'
set_var_text_label s$flag_is_zero_on_bike[42] = 'GAR1_GE'
set_var_text_label s$flag_is_zero_on_bike[43] = 'GAR1_GF'
set_var_text_label s$flag_is_zero_on_bike[44] = 'GAR1_GG'
set_var_text_label s$flag_is_zero_on_bike[45] = 'GAR1_GH'
set_var_text_label s$flag_is_zero_on_bike[46] = 'GAR1_GI'
set_var_text_label s$flag_is_zero_on_bike[47] = 'GAR1_GJ'
set_var_text_label s$flag_is_zero_on_bike[48] = 'GAR1_HA'
set_var_text_label s$flag_is_zero_on_bike[49] = 'GAR1_HB'
set_var_text_label s$flag_is_zero_on_bike[50] = 'GAR1_HC'
set_var_text_label s$flag_is_zero_on_bike[51] = 'GAR1_HD'
set_var_text_label s$flag_is_zero_on_bike[52] = 'GAR1_HE'
set_var_text_label s$flag_is_zero_on_bike[53] = 'GAR1_HF'
set_var_text_label s$flag_is_zero_on_bike[54] = 'GAR1_HG'
set_var_text_label s$flag_is_zero_on_bike[55] = 'GAR1_JA'
set_var_text_label s$flag_is_zero_on_bike[56] = 'GAR1_JB'
set_var_text_label s$flag_is_zero_on_bike[57] = 'GAR1_JC'
set_var_text_label s$flag_is_zero_on_bike[58] = 'GAR1_JD'
set_var_text_label s$flag_is_zero_on_bike[59] = 'GAR1_JE'
set_var_text_label s$flag_is_zero_on_bike[60] = 'GAR1_JF'
set_var_text_label s$flag_is_zero_on_bike[61] = 'GAR1_JG'
set_var_text_label s$flag_is_zero_on_bike[62] = 'GAR1_JH'
set_var_text_label s$flag_is_zero_on_bike[63] = 'GAR1_JJ'
set_var_text_label s$flag_is_zero_on_bike[64] = 'GAR1_KA'
set_var_text_label s$flag_is_zero_on_bike[65] = 'GAR1_KB'
set_var_text_label s$flag_is_zero_on_bike[66] = 'GAR1_KC'
set_var_text_label s$flag_is_zero_on_bike[67] = 'GAR1_KD'
set_var_text_label s$flag_is_zero_on_bike[68] = 'GAR1_KE'
set_var_text_label s$flag_is_zero_on_bike[69] = 'GAR1_LA'
set_var_text_label s$flag_is_zero_on_bike[70] = 'GAR1_LB'
set_var_text_label s$flag_is_zero_on_bike[71] = 'GAR1_LC'
set_var_text_label s$flag_is_zero_on_bike[72] = 'GAR1_LD'
set_var_text_label s$flag_is_zero_on_bike[73] = 'GAR1_MA'
set_var_text_label s$flag_is_zero_on_bike[74] = 'GAR1_MB'
set_var_text_label s$flag_is_zero_on_bike[75] = 'GAR1_MC'
set_var_text_label s$flag_is_zero_on_bike[76] = 'GAR1_MD'
set_var_text_label s$flag_is_zero_on_bike[77] = 'GAR1_ME'
set_var_text_label s$flag_is_zero_on_bike[78] = 'GAR1_MF'
set_var_text_label s$flag_is_zero_on_bike[79] = 'GAR1_MG'
set_var_text_label s$flag_is_zero_on_bike[80] = 'GAR1_NA'
set_var_text_label s$flag_is_zero_on_bike[81] = 'GAR1_NB'
set_var_text_label s$flag_is_zero_on_bike[82] = 'GAR1_NC'
set_var_text_label s$flag_is_zero_on_bike[83] = 'GAR1_ND'
set_var_text_label s$flag_is_zero_on_bike[84] = 'GAR1_NE'
set_var_text_label s$flag_is_zero_on_bike[85] = 'GAR1_NF'
set_var_text_label s$flag_is_zero_on_bike[86] = 'GAR1_NG'
set_var_text_label s$flag_is_zero_on_bike[87] = 'GAR1_NH'
set_var_text_label s$flag_is_zero_on_bike[88] = 'GAR1_NJ'
set_var_text_label s$flag_is_zero_on_bike[89] = 'GAR1_NK'
set_var_text_label s$flag_is_zero_on_bike[91] = 'GAR1_OA'
set_var_text_label s$flag_is_zero_on_bike[92] = 'GAR1_OB'
set_var_text_label s$flag_is_zero_on_bike[93] = 'GAR1_OC'
set_var_text_label s$flag_is_zero_on_bike[94] = 'GAR1_OD'
set_var_text_label s$flag_is_zero_on_bike[95] = 'GAR1_OE'
set_var_text_label s$flag_is_zero_on_bike[96] = 'GAR1_OF'
set_var_text_label s$flag_is_zero_on_bike[97] = 'GAR1_PA'
set_var_text_label s$flag_is_zero_on_bike[98] = 'GAR1_PB'
set_var_text_label s$flag_is_zero_on_bike[99] = 'GAR1_PC'
set_var_text_label s$flag_is_zero_on_bike[100] = 'GAR1_PD'
set_var_text_label s$flag_is_zero_on_bike[101] = 'GAR1_PE'
set_var_text_label s$flag_is_zero_on_bike[102] = 'GAR1_PJ'
set_var_text_label s$flag_is_zero_on_bike[103] = 'GAR1_PF'
set_var_text_label s$flag_is_zero_on_bike[104] = 'GAR1_PG'
set_var_text_label s$flag_is_zero_on_bike[105] = 'GAR1_PH'
set_lvar_int_to_constant 136@ = 6600
set_lvar_int_to_constant 137@ = 6601
set_lvar_int_to_constant 138@ = 6602
set_lvar_int_to_constant 139@ = 6603
set_lvar_int_to_constant 140@ = 6604
set_lvar_int_to_constant 141@ = 6605
set_lvar_int_to_constant 142@ = 6606
set_lvar_int_to_constant 143@ = 6607
set_lvar_int_to_constant 144@ = 6608
set_lvar_int_to_constant 145@ = 6704
set_lvar_int_to_constant 146@ = 6609
set_lvar_int_to_constant 147@ = 6661
set_lvar_int_to_constant 148@ = 6610
set_lvar_int_to_constant 149@ = 6611
set_lvar_int_to_constant 150@ = 6612
set_lvar_int_to_constant 151@ = 6662
set_lvar_int_to_constant 152@ = 6613
set_lvar_int_to_constant 153@ = 6614
set_lvar_int_to_constant 154@ = 6615
set_lvar_int_to_constant 155@ = 6616
set_lvar_int_to_constant 156@ = 6617
set_lvar_int_to_constant 157@ = 6619
set_lvar_int_to_constant 158@ = 6685
set_lvar_int_to_constant 159@ = 6686
set_lvar_int_to_constant 160@ = 6687
set_lvar_int_to_constant 161@ = 6618
set_lvar_int_to_constant 162@ = 6620
set_lvar_int_to_constant 163@ = 6663
set_lvar_int_to_constant 164@ = 6621
set_lvar_int_to_constant 165@ = 6664
set_lvar_int_to_constant 166@ = 6622
set_lvar_int_to_constant 167@ = 6688
set_lvar_int_to_constant 168@ = 6665
set_lvar_int_to_constant 169@ = 6666
set_lvar_int_to_constant 170@ = 6667
set_lvar_int_to_constant 171@ = 6689
set_lvar_int_to_constant 172@ = 6623
set_lvar_int_to_constant 173@ = 6690
set_lvar_int_to_constant 174@ = 6668
set_lvar_int_to_constant 175@ = 6624
set_lvar_int_to_constant 176@ = 6625
set_lvar_int_to_constant 177@ = 6626
set_lvar_int_to_constant 178@ = 6627
set_lvar_int_to_constant 179@ = 6669
set_lvar_int_to_constant 180@ = 6628
set_lvar_int_to_constant 181@ = 6629
set_lvar_int_to_constant 182@ = 6630
set_lvar_int_to_constant 183@ = 6691
set_lvar_int_to_constant 184@ = 6670
set_lvar_int_to_constant 185@ = 6631
set_lvar_int_to_constant 186@ = 6671
set_lvar_int_to_constant 187@ = 6632
set_lvar_int_to_constant 188@ = 6672
set_lvar_int_to_constant 189@ = 6633
set_lvar_int_to_constant 190@ = 6634
set_lvar_int_to_constant 191@ = 6635
set_lvar_int_to_constant 192@ = 6700
set_lvar_int_to_constant 193@ = 6636
set_lvar_int_to_constant 194@ = 6637
set_lvar_int_to_constant 195@ = 6701
set_lvar_int_to_constant 196@ = 6702
set_lvar_int_to_constant 197@ = 6703
set_lvar_int_to_constant 198@ = 6673
set_lvar_int_to_constant 199@ = 6674
set_lvar_int_to_constant 200@ = 6638
set_lvar_int_to_constant 201@ = 6675
set_lvar_int_to_constant 202@ = 6639
set_lvar_int_to_constant 203@ = 6692
set_lvar_int_to_constant 204@ = 6676
set_lvar_int_to_constant 205@ = 6640
set_lvar_int_to_constant 206@ = 6641
set_lvar_int_to_constant 207@ = 6642
set_lvar_int_to_constant 208@ = 6643
set_lvar_int_to_constant 209@ = 6677
set_lvar_int_to_constant 210@ = 6644
set_lvar_int_to_constant 211@ = 6645
set_lvar_int_to_constant 212@ = 6646
set_lvar_int_to_constant 213@ = 6647
set_lvar_int_to_constant 214@ = 6648
set_lvar_int_to_constant 215@ = 6649
set_lvar_int_to_constant 216@ = 6678
set_lvar_int_to_constant 217@ = 6679
set_lvar_int_to_constant 218@ = 6693
set_lvar_int_to_constant 219@ = 6650
set_lvar_int_to_constant 220@ = 6651
set_lvar_int_to_constant 221@ = 6652
set_lvar_int_to_constant 222@ = 6653
set_lvar_int_to_constant 223@ = 6684
set_lvar_int_to_constant 224@ = 6680
set_lvar_int_to_constant 225@ = 6654
set_lvar_int_to_constant 227@ = 6655
set_lvar_int_to_constant 228@ = 6694
set_lvar_int_to_constant 229@ = 6695
set_lvar_int_to_constant 230@ = 6696
set_lvar_int_to_constant 231@ = 6656
set_lvar_int_to_constant 232@ = 6657
set_lvar_int_to_constant 233@ = 6658
set_lvar_int_to_constant 234@ = 6681
set_lvar_int_to_constant 235@ = 6659
set_lvar_int_to_constant 236@ = 6660
set_lvar_int_to_constant 237@ = 6697
set_lvar_int_to_constant 238@ = 6699
set_lvar_int_to_constant 239@ = 6698
set_lvar_int_to_constant 240@ = 6682
set_lvar_int_to_constant 241@ = 6683
TIMERA = 0
clear_area -2028.7729 {y} 154.0429 {z} 27.2416 {radius} 10000.0 {clearParticles} True
disable_all_entry_exits True
request_model 585

:GARAG1_3297
if 
  not has_model_loaded 585
goto_if_false @GARAG1_3324
wait 0
goto @GARAG1_3297

:GARAG1_3324
34@ = create_car 585 {x} -2030.6281 {y} 170.7956 {z} 27.8359
set_car_health 34@ {health} 3000
set_char_coordinates $scplayer {x} -2031.0 {y} 162.0 {z} 27.83
set_car_heading 34@ {heading} 270.0
load_special_character 2 {modelName} 'TRUTH'

:GARAG1_3398
if 
  not has_special_character_loaded 2
goto_if_false @GARAG1_3424
wait 0
goto @GARAG1_3398

:GARAG1_3424
93@ = create_char PedType.CivMale {modelId} 291 {x} -2031.252 {y} 164.0169 {z} 27.8429
set_char_never_targetted 93@ {state} True
set_char_get_out_upside_down_car 93@ {state} False
set_char_relationship 93@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 93@ {handleOrTemplate} 135@
set_char_heading 93@ {heading} 180.0
set_char_proofs 93@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_health 93@ {health} 200
set_char_suffers_critical_hits 93@ {state} False
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:GARAG1_3532
wait 0
if 
  101@ == 1
goto_if_false @GARAG1_3561
gosub @GARAG1_3743

:GARAG1_3561
if 
  102@ == 1
goto_if_false @GARAG1_3586
gosub @GARAG1_9738

:GARAG1_3586
if 
  103@ == 1
goto_if_false @GARAG1_3611
gosub @GARAG1_15129

:GARAG1_3611
if 
  105@ == 1
goto_if_false @GARAG1_3636
gosub @GARAG1_7692

:GARAG1_3636
if 
  106@ == 1
goto_if_false @GARAG1_3661
gosub @GARAG1_13409

:GARAG1_3661
if 
  107@ == 1
goto_if_false @GARAG1_3686
gosub @GARAG1_17180

:GARAG1_3686
if 
  109@ == 1
goto_if_false @GARAG1_3711
goto @GARAG1_24426

:GARAG1_3711
if 
  110@ == 1
goto_if_false @GARAG1_3736
goto @GARAG1_24492

:GARAG1_3736
goto @GARAG1_3532

:GARAG1_3743
set_lvar_int_to_lvar_int 242@ = 93@
set_lvar_int_to_lvar_int 243@ = 93@
set_lvar_int_to_lvar_int 244@ = 93@
set_lvar_int_to_lvar_int 245@ = 93@
set_lvar_int_to_lvar_int 246@ = 93@
set_lvar_int_to_lvar_int 247@ = 93@
set_lvar_int_to_lvar_int 248@ = 93@
set_lvar_int_to_var_int 251@ = $scplayer
set_lvar_int_to_lvar_int 252@ = 93@
set_lvar_int_to_var_int 253@ = $scplayer
set_lvar_int_to_lvar_int 254@ = 93@
set_lvar_int_to_lvar_int 255@ = 93@
set_lvar_int_to_lvar_int 256@ = 93@
set_lvar_int_to_var_int 257@ = $scplayer
set_lvar_int_to_lvar_int 258@ = 93@
set_lvar_int_to_lvar_int 259@ = 93@
set_lvar_int_to_lvar_int 260@ = 93@
set_lvar_int_to_lvar_int 261@ = 93@
request_animation "GANGS"

:GARAG1_3896
if 
  not has_animation_loaded "GANGS"
goto_if_false @GARAG1_3927
wait 0
goto @GARAG1_3896

:GARAG1_3927
set_fixed_camera_position -2021.483 {y} 159.1135 {z} 30.588 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2022.153 {y} 159.8494 {z} 30.4897 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2019.916 {fromY} 157.5772 {fromZ} 33.449 {toX} -2019.951 {toY} 157.5985 {toZ} 31.8268 {time} 4500 {ease} True
camera_set_vector_track -2020.77 {fromY} 158.0734 {fromZ} 33.2929 {toX} -2020.787 {toY} 158.0842 {toZ} 31.5706 {time} 4500 {ease} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2031.77 {y} 161.21 {z} 29.42 {radius} 1000.0 {clearParticles} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 1000 {direction} Fade.In
switch_widescreen True

:GARAG1_4118
if 
  get_fading_status 
goto_if_false @GARAG1_4142
wait 0
goto @GARAG1_4118

:GARAG1_4142
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_4163
if 
  114@ <> 10
goto_if_false @GARAG1_4729
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_4217
skip_cutscene_start_internal @GARAG1_4729
gosub @GARAG1_24089

:GARAG1_4217
if 
  114@ == 1
goto_if_false @GARAG1_4498
if 
  not is_char_dead 93@
goto_if_false @GARAG1_4484
130@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 130@
perform_sequence_task 93@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_4484
gosub @GARAG1_24089
TIMERA = 0

:GARAG1_4498
if and
  114@ >= 2
  3 >= 114@
goto_if_false @GARAG1_4530
gosub @GARAG1_24089

:GARAG1_4530
if 
  114@ == 4
goto_if_false @GARAG1_4608
camera_reset_new_scriptables 
set_fixed_camera_position -2030.073 {y} 161.3698 {z} 28.8915 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2030.593 {y} 162.2026 {z} 29.0817 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24089

:GARAG1_4608
if or
  114@ >= 5
  6 >= 114@
goto_if_false @GARAG1_4640
gosub @GARAG1_24089

:GARAG1_4640
if 
  114@ == 7
goto_if_false @GARAG1_4672
gosub @GARAG1_24089
114@ = 10

:GARAG1_4672
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_4696
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_4696
if 
  TIMERB > 23500
goto_if_false @GARAG1_4722
114@ = 10

:GARAG1_4722
goto @GARAG1_4163

:GARAG1_4729
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
set_player_control $player1 {state} True
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
if 
  is_player_playing $player1
goto_if_false @GARAG1_4775
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_4775
set_radio_channel RadioChannel.KDST
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
348@ = 9
349@ = 0
114@ = 0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_4872
if 
  not is_car_dead 34@
goto_if_false @GARAG1_4872
task_enter_car_as_passenger 93@ {vehicle} 34@ {time} -2 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 93@ {state} True
set_char_stay_in_car_when_jacked 93@ {state} True

:GARAG1_4872
remove_animation "GANGS"
if 
  not is_car_dead 34@
goto_if_false @GARAG1_5345
127@ = add_blip_for_car 34@
set_blip_as_friendly 127@ {state} True
print_now 'GAR1_22' {time} 5000 {flag} 1

:GARAG1_4928
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_5292
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GARAG1_5024
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 1
110@ = 0
return 

:GARAG1_5024
if 
  is_car_dead 34@
goto_if_false @GARAG1_5114
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5114
if 
  is_char_dead 93@
goto_if_false @GARAG1_5204
print_now 'GAR1_17' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5204
if 
  is_car_on_fire 34@
goto_if_false @GARAG1_5285
explode_car 34@
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_5285
goto @GARAG1_4928

:GARAG1_5292
remove_blip 127@
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
goto @GARAG1_5377

:GARAG1_5345
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
110@ = 1
return 

:GARAG1_5377
request_model 525
request_animation "CAR"

:GARAG1_5389
if or
  not has_model_loaded 525
  not has_animation_loaded "CAR"
goto_if_false @GARAG1_5423
wait 0
goto @GARAG1_5389

:GARAG1_5423
create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_heading 94@(134@,4i) {heading} 120.0
set_char_proofs 94@(134@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
36@ = create_car 525 {x} -1676.0 {y} 440.0 {z} 6.7
set_car_heading 36@ {heading} 229.0
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
delete_car 36@
delete_char 94@(134@,4i)
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_5601
return 

:GARAG1_5601
TIMERA = 0
request_animation "CAR_CHAT"

:GARAG1_5620
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_5654
wait 0
goto @GARAG1_5620

:GARAG1_5654
set_lvar_int_to_lvar_int 262@ = 93@
set_lvar_int_to_lvar_int 263@ = 93@
set_lvar_int_to_lvar_int 264@ = 94@
set_lvar_int_to_lvar_int 265@ = 94@
set_lvar_int_to_lvar_int 266@ = 93@
set_lvar_int_to_lvar_int 267@ = 93@
set_lvar_int_to_lvar_int 268@ = 93@
set_lvar_int_to_var_int 269@ = $scplayer
set_lvar_int_to_lvar_int 270@ = 93@
set_lvar_int_to_lvar_int 271@ = 93@
set_lvar_int_to_lvar_int 272@ = 93@
set_lvar_int_to_lvar_int 273@ = 94@
set_lvar_int_to_var_int 274@ = $scplayer
set_lvar_int_to_var_int 275@ = $scplayer
set_lvar_int_to_var_int 276@ = $scplayer
set_lvar_int_to_lvar_int 277@ = 94@
set_lvar_int_to_lvar_int 278@ = 93@
set_lvar_int_to_lvar_int 279@ = 94@
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2031.77 {y} 161.21 {z} 29.42 {radius} 1000.0 {clearParticles} True
clear_mission_audio MissionAudioSlot.Slot1
114@ = 0
TIMERA = 0
TIMERB = 0
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_5951
if 
  not is_car_passenger_seat_free 34@ {seat} SeatId.RearRight
goto_if_false @GARAG1_5951
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearRight
delete_char 100@

:GARAG1_5951
if 
  114@ <> 20
goto_if_false @GARAG1_7286
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_6228
skip_cutscene_start_internal @GARAG1_7286
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6196
if 
  not is_char_dead 93@
goto_if_false @GARAG1_6173
set_fixed_camera_position -1674.2629 {y} 438.2627 {z} 11.0956 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1674.246 {y} 438.3686 {z} 10.1014 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_6108
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_6108
set_car_coordinates 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f)
set_car_heading 34@ {heading} 43@
set_car_cruise_speed 34@ {maxSpeed} 0.0
348@ = 20
gosub @GARAG1_24320
goto @GARAG1_6189

:GARAG1_6173
101@ = 0
110@ = 1
return 

:GARAG1_6189
goto @GARAG1_6228

:GARAG1_6196
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
110@ = 1
return 

:GARAG1_6228
if 
  114@ == 1
goto_if_false @GARAG1_6526
if 
  TIMERA > 2000
goto_if_false @GARAG1_6526
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6526
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6526
set_fixed_camera_position -1672.658 {y} 431.5702 {z} 7.2947 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1672.72 {y} 432.5628 {z} 7.3989 {switchStyle} SwitchType.JumpCut
130@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_turn_char_to_face_char -1 {target} $scplayer
task_go_straight_to_coord -1 {x} -1668.853 {y} 442.619 {z} 6.219 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 193.0
task_enter_car_as_passenger -1 {vehicle} 34@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 130@
perform_sequence_task 94@(134@,4i) {sequence} 130@
clear_sequence_task 130@
114@ = 2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1825

:GARAG1_6481
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GARAG1_6507
wait 0
goto @GARAG1_6481

:GARAG1_6507
report_mission_audio_event_at_char 94@(134@,4i) {soundId} ScriptSound.SoundMechanicSlideOut
TIMERA = 0

:GARAG1_6526
if 
  114@ == 2
goto_if_false @GARAG1_6709
if 
  TIMERA > 2000
goto_if_false @GARAG1_6709
set_fixed_camera_position -1665.5229 {y} 443.0056 {z} 7.5433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1666.462 {y} 442.6743 {z} 7.4596 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6650
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6650

:GARAG1_6650
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6695
set_char_heading 94@(134@,4i) {heading} 228.0
set_char_collision 94@(134@,4i) {state} True

:GARAG1_6695
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_6709
if 
  114@ == 3
goto_if_false @GARAG1_6734
gosub @GARAG1_24320

:GARAG1_6734
if 
  114@ == 4
goto_if_false @GARAG1_6759
gosub @GARAG1_24320

:GARAG1_6759
if 
  114@ == 5
goto_if_false @GARAG1_6862
if 
  TIMERA > 1500
goto_if_false @GARAG1_6862
if 
  not is_char_dead 93@
goto_if_false @GARAG1_6855
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_6855
gosub @GARAG1_24320

:GARAG1_6862
if 
  114@ == 6
goto_if_false @GARAG1_6996
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6947
set_fixed_camera_position -1670.605 {y} 442.2138 {z} 7.3642 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1669.891 {y} 441.5237 {z} 7.2424 {switchStyle} SwitchType.JumpCut

:GARAG1_6947
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @GARAG1_24320

:GARAG1_6996
if 
  114@ == 7
goto_if_false @GARAG1_7021
gosub @GARAG1_24320

:GARAG1_7021
if 
  114@ == 8
goto_if_false @GARAG1_7046
gosub @GARAG1_24320

:GARAG1_7046
if 
  114@ == 9
goto_if_false @GARAG1_7141
if 
  TIMERA > 1500
goto_if_false @GARAG1_7141
set_fixed_camera_position -1648.684 {y} 411.5628 {z} 18.7936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1649.09 {y} 412.4462 {z} 18.5605 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24320

:GARAG1_7141
if 
  114@ == 10
goto_if_false @GARAG1_7185
if 
  TIMERA > 1500
goto_if_false @GARAG1_7185
gosub @GARAG1_24320

:GARAG1_7185
if 
  114@ == 11
goto_if_false @GARAG1_7229
if 
  TIMERA > 1500
goto_if_false @GARAG1_7229
gosub @GARAG1_24320

:GARAG1_7229
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_7253
114@ = 20
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_7253
if 
  TIMERB > 21500
goto_if_false @GARAG1_7279
114@ = 20

:GARAG1_7279
goto @GARAG1_5951

:GARAG1_7286
skip_cutscene_end 
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_7315
return 

:GARAG1_7315
remove_animation "CAR"
mark_model_as_no_longer_needed 525
if 
  not is_car_dead 36@
goto_if_false @GARAG1_7350
freeze_car_position 36@ {state} False

:GARAG1_7350
mark_car_as_no_longer_needed 36@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_7403
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_7403
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_prints 
114@ = 0
348@ = 31
349@ = 0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_7669
set_car_status 34@ {status} EntityStatus.Player
if 
  not is_char_dead 93@
goto_if_false @GARAG1_7558
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_7558
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.BikeRear
goto_if_false @GARAG1_7533
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear
goto @GARAG1_7558

:GARAG1_7533
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.BikeRear
delete_char 100@
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear

:GARAG1_7558
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_7669
if 
  not is_char_in_car 94@(134@,4i) {vehicle} 34@
goto_if_false @GARAG1_7669
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.RearRight
goto_if_false @GARAG1_7640
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearRight
goto @GARAG1_7669

:GARAG1_7640
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearRight
delete_char 100@
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearRight

:GARAG1_7669
134@ = 1
101@ = 0
105@ = 1
return 

:GARAG1_7692
request_model 413

:GARAG1_7697
if 
  not has_model_loaded 413
goto_if_false @GARAG1_7724
wait 0
goto @GARAG1_7697

:GARAG1_7724
38@ = create_car 413 {x} -2607.1101 {y} 623.91 {z} 14.66
mark_model_as_no_longer_needed 413
set_car_heading 38@ {heading} 277.0
delete_car 38@
128@ = add_sprite_blip_for_coord 45@ {y} 46@ {z} 47@ {sprite} RadarSprite.Hospital
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_7810
return 

:GARAG1_7810
set_lvar_int_to_var_int 280@ = $scplayer
set_lvar_int_to_lvar_int 281@ = 93@
set_lvar_int_to_lvar_int 282@ = 93@
set_lvar_int_to_lvar_int 283@ = 93@
set_lvar_int_to_lvar_int 284@ = 93@
set_lvar_int_to_var_int 285@ = $scplayer
set_lvar_int_to_lvar_int 286@ = 93@
set_lvar_int_to_lvar_int 287@ = 93@
set_lvar_int_to_lvar_int 288@ = 93@
set_lvar_int_to_lvar_int 289@ = 93@
set_lvar_int_to_var_int 290@ = $scplayer
set_lvar_int_to_lvar_int 291@ = 93@
set_lvar_int_to_var_int 292@ = $scplayer
set_lvar_int_to_lvar_int 293@ = 93@
set_lvar_int_to_var_int 294@ = $scplayer
set_lvar_int_to_lvar_int 295@ = 93@
set_lvar_int_to_lvar_int 296@ = 93@
remove_blip 128@
request_model 413

:GARAG1_7956
if 
  not has_model_loaded 413
goto_if_false @GARAG1_7983
wait 0
goto @GARAG1_7956

:GARAG1_7983
request_animation "CAR_CHAT"

:GARAG1_7995
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_8029
wait 0
goto @GARAG1_7995

:GARAG1_8029
38@ = create_car 413 {x} -2607.1101 {y} 623.91 {z} 14.66
mark_model_as_no_longer_needed 413
lock_car_doors 38@ {lockStatus} CarLock.Locked
set_car_heading 38@ {heading} 180.0
freeze_car_position 38@ {state} True
348@ = 38
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
114@ = 0
TIMERA = 0
TIMERB = 0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_8394
set_car_coordinates 34@ {x} 45@ {y} 46@ {z} 47@
40@ = get_car_heading 34@
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_8224
set_car_heading 34@ {heading} 90.0
goto @GARAG1_8234

:GARAG1_8224
set_car_heading 34@ {heading} 270.0

:GARAG1_8234
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_8261
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_8261
set_fixed_camera_position -2581.9399 {y} 580.42 {z} 17.8189 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2582.491 {y} 581.153 {z} 18.2173 {switchStyle} SwitchType.JumpCut
87@, 88@, 89@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.8 {yOffset} 2.2 {zOffset} 0.8
90@, 91@, 92@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
clear_area -2607.1101 {y} 623.91 {z} 14.66 {radius} 1000.0 {clearParticles} True

:GARAG1_8394
if 
  not is_char_dead 93@
goto_if_false @GARAG1_8453
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_8453
gosub @GARAG1_24320
clear_area 45@ {y} 46@ {z} 47@ {radius} 1000.0 {clearParticles} True
114@ = 0

:GARAG1_8485
if 
  114@ <> 10
goto_if_false @GARAG1_9623
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_8534
return 

:GARAG1_8534
if 
  114@ == 0
goto_if_false @GARAG1_8777
if 
  TIMERA > 1500
goto_if_false @GARAG1_8777
skip_cutscene_start_internal @GARAG1_9623
if 
  not is_char_dead 94@
goto_if_false @GARAG1_8637
task_play_anim 94@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_8637
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2581.9399 {fromY} 580.42 {fromZ} 17.8189 {toX} -2583.3201 {toY} 581.73 {toZ} 15.39 {time} 5000 {ease} True
camera_set_vector_track -2582.491 {fromY} 581.153 {fromZ} 18.2173 {toX} -2607.1101 {toY} 623.91 {toZ} 14.66 {time} 5000 {ease} True
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_8777
if 
  114@ == 1
goto_if_false @GARAG1_8849
if 
  TIMERA > 1500
goto_if_false @GARAG1_8849
gosub @GARAG1_24320
if 
  not is_car_dead 38@
goto_if_false @GARAG1_8849
99@ = create_char_inside_car 38@ {pedType} PedType.CivMale {modelId} 7

:GARAG1_8849
if 
  114@ == 2
goto_if_false @GARAG1_8946
if 
  TIMERA > 1500
goto_if_false @GARAG1_8946
gosub @GARAG1_24320
camera_reset_new_scriptables 
set_fixed_camera_position -2583.3201 {y} 581.73 {z} 15.39 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2607.1101 {y} 623.91 {z} 14.66 {switchStyle} SwitchType.JumpCut

:GARAG1_8946
if 
  114@ == 3
goto_if_false @GARAG1_8990
if 
  TIMERA > 1500
goto_if_false @GARAG1_8990
gosub @GARAG1_24320

:GARAG1_8990
if 
  114@ == 4
goto_if_false @GARAG1_9126
if 
  TIMERA > 1500
goto_if_false @GARAG1_9126
if 
  not is_car_dead 38@
goto_if_false @GARAG1_9119
freeze_car_position 38@ {state} False
if 
  not is_char_dead 99@
goto_if_false @GARAG1_9119
if 
  is_char_in_car 99@ {vehicle} 38@
goto_if_false @GARAG1_9119
task_car_drive_to_coord 99@ {vehicle} 38@ {x} -2607.95 {y} 528.47 {z} 13.98 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:GARAG1_9119
gosub @GARAG1_24320

:GARAG1_9126
if 
  114@ == 5
goto_if_false @GARAG1_9228
if 
  TIMERA > 1500
goto_if_false @GARAG1_9228
gosub @GARAG1_24320
set_fixed_camera_position -2614.4609 {y} 573.477 {z} 16.9766 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2613.8 {y} 574.224 {z} 16.911 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:GARAG1_9228
if 
  114@ == 6
goto_if_false @GARAG1_9471
if 
  TIMERA > 2500
goto_if_false @GARAG1_9471
gosub @GARAG1_24320
if 
  not is_char_dead 93@
goto_if_false @GARAG1_9331
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_9331
if 
  not is_char_dead 94@
goto_if_false @GARAG1_9390
task_play_anim 94@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_9390
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 87@ {y} 88@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 90@ {y} 91@ {z} 92@ {switchStyle} SwitchType.JumpCut

:GARAG1_9471
if 
  114@ == 7
goto_if_false @GARAG1_9515
if 
  TIMERA > 1500
goto_if_false @GARAG1_9515
gosub @GARAG1_24320

:GARAG1_9515
if 
  114@ == 8
goto_if_false @GARAG1_9566
if 
  TIMERA > 1500
goto_if_false @GARAG1_9566
gosub @GARAG1_24320
114@ = 10

:GARAG1_9566
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_9590
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_9590
if 
  TIMERB > 20500
goto_if_false @GARAG1_9616
114@ = 10

:GARAG1_9616
goto @GARAG1_8485

:GARAG1_9623
skip_cutscene_end 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
camera_reset_new_scriptables 
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_9677
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_9677
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
348@ = 48
349@ = 0
delete_char 99@
delete_car 38@
105@ = 0
102@ = 1
return 

:GARAG1_9738
request_model 588

:GARAG1_9743
if 
  not has_model_loaded 588
goto_if_false @GARAG1_9770
wait 0
goto @GARAG1_9743

:GARAG1_9770
request_animation "SMOKING"

:GARAG1_9781
if 
  not has_animation_loaded "SMOKING"
goto_if_false @GARAG1_9814
wait 0
goto @GARAG1_9781

:GARAG1_9814
load_special_character 4 {modelName} 'DWAYNE'

:GARAG1_9827
if 
  not has_special_character_loaded 4
goto_if_false @GARAG1_9853
wait 0
goto @GARAG1_9827

:GARAG1_9853
request_model #CIGAR

:GARAG1_9857
if 
  not has_model_loaded #CIGAR
goto_if_false @GARAG1_9883
wait 0
goto @GARAG1_9857

:GARAG1_9883
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
if 
  110@ == 14
goto_if_false @GARAG1_10047
create_char PedType.CivMale {modelId} 293 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
35@ = create_car 588 {x} -2238.8879 {y} 541.5267 {z} 34.375
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
delete_car 35@
delete_char 94@(134@,4i)
delete_object 42@

:GARAG1_10047
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_10074
return 

:GARAG1_10074
if 
  does_object_exist 42@
goto_if_false @GARAG1_10095
delete_object 42@

:GARAG1_10095
request_animation "CAR_CHAT"

:GARAG1_10107
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_10141
wait 0
goto @GARAG1_10107

:GARAG1_10141
set_lvar_int_to_lvar_int 297@ = 93@
set_lvar_int_to_lvar_int 298@ = 95@
set_lvar_int_to_lvar_int 299@ = 93@
set_lvar_int_to_lvar_int 300@ = 93@
set_lvar_int_to_lvar_int 301@ = 95@
set_lvar_int_to_lvar_int 302@ = 95@
set_lvar_int_to_lvar_int 303@ = 95@
set_lvar_int_to_var_int 304@ = $scplayer
set_lvar_int_to_lvar_int 305@ = 95@
set_lvar_int_to_lvar_int 306@ = 93@
set_lvar_int_to_var_int 307@ = $scplayer
set_lvar_int_to_lvar_int 308@ = 93@
set_lvar_int_to_lvar_int 309@ = 94@
set_lvar_int_to_var_int 310@ = $scplayer
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_10413
if 
  not does_object_exist 42@
goto_if_false @GARAG1_10413
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
task_pick_up_object 94@(134@,4i) {object} 42@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} 0.05 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
350@ = create_fx_system_on_char "EXHALE" {char} 94@(134@,4i) {xOffset} 0.05 {yOffset} 0.12 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 350@ {handle} 94@(134@,4i) {pedBone} PedBone.Neck

:GARAG1_10413
if 
  not is_car_dead 34@
goto_if_false @GARAG1_10882
40@ = get_car_heading 34@
set_car_coordinates 34@ {x} 55@ {y} 60@ {z} 65@
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_10478
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_10478
set_fixed_camera_position -2235.8149 {y} 541.4094 {z} 35.7451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2236.521 {y} 542.1174 {z} 35.7312 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_10623
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GARAG1_10623
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_10771
set_car_heading 34@ {heading} 180.0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_10722
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_10722
task_play_anim $scplayer {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @GARAG1_10882

:GARAG1_10771
set_car_heading 34@ {heading} 0.0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_10840
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_10840
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_10882
348@ = 55
gosub @GARAG1_24320
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_10946
if 
  114@ <> 20
goto_if_false @GARAG1_13033
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_10995
return 

:GARAG1_10995
if 
  114@ == 0
goto_if_false @GARAG1_11397
skip_cutscene_start_internal @GARAG1_13033
if 
  TIMERA > 2000
goto_if_false @GARAG1_11397
play_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11076
start_char_facial_talk 94@(134@,4i) {duration} 4000

:GARAG1_11076
gosub @GARAG1_24320
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11158
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
freeze_char_position 94@(134@,4i) {state} False

:GARAG1_11158
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11296
if 
  not is_char_dead 93@
goto_if_false @GARAG1_11247
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_11247
task_play_anim $scplayer {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @GARAG1_11397

:GARAG1_11296
if 
  not is_char_dead 93@
goto_if_false @GARAG1_11355
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_11355
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_11397
if 
  114@ == 1
goto_if_false @GARAG1_11783
if 
  TIMERA > 2000
goto_if_false @GARAG1_11783
if 
  not is_car_dead 35@
goto_if_false @GARAG1_11751
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
if 
  not is_char_dead 95@
goto_if_false @GARAG1_11655
task_go_straight_to_coord 95@ {x} -2232.0701 {y} 545.04 {z} 34.39 {speed} MoveState.Walk {time} -1
remove_animation "SMOKING"
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11597
set_fixed_camera_position -2233.689 {y} 541.4159 {z} 35.2249 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2233.1389 {y} 542.2441 {z} 35.1142 {switchStyle} SwitchType.JumpCut
goto @GARAG1_11648

:GARAG1_11597
set_fixed_camera_position -2228.6201 {y} 540.7846 {z} 35.5936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2229.199 {y} 541.5954 {z} 35.5075 {switchStyle} SwitchType.JumpCut

:GARAG1_11648
goto @GARAG1_11687

:GARAG1_11655
print_now 'GAR1_07' {time} 5000 {flag} 1
102@ = 0
110@ = 1
return 

:GARAG1_11687
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11728
freeze_car_position 35@ {state} False
gosub @GARAG1_24320
goto @GARAG1_11744

:GARAG1_11728
102@ = 0
110@ = 1
return 

:GARAG1_11744
goto @GARAG1_11783

:GARAG1_11751
print_now 'GAR1_07' {time} 5000 {flag} 1
102@ = 0
110@ = 1
return 

:GARAG1_11783
if 
  TIMERA > 1500
goto_if_false @GARAG1_12039
if 
  114@ == 2
goto_if_false @GARAG1_12039
gosub @GARAG1_24320
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12039
set_char_heading 94@(134@,4i) {heading} 270.0
130@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2232.0701 {y} 545.04 {z} 34.39 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "CAR_TALKM_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_LOOP" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12039
if 
  114@ == 3
goto_if_false @GARAG1_12064
gosub @GARAG1_24320

:GARAG1_12064
if 
  114@ == 4
goto_if_false @GARAG1_12089
gosub @GARAG1_24320

:GARAG1_12089
if 
  114@ == 5
goto_if_false @GARAG1_12114
gosub @GARAG1_24320

:GARAG1_12114
if 
  114@ == 6
goto_if_false @GARAG1_12233
gosub @GARAG1_24320
TIMERA = 0
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12233
if 
  not is_char_dead 95@
goto_if_false @GARAG1_12233
130@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2241.6599 {y} 547.19 {z} 34.49 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12233
if 
  114@ == 7
goto_if_false @GARAG1_12469
gosub @GARAG1_24320
set_fixed_camera_position -2229.155 {y} 533.4247 {z} 41.4992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2229.6589 {y} 534.123 {z} 40.9914 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12469
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12469
warp_char_into_car 94@(134@,4i) {vehicle} 35@
if 
  is_char_in_car 94@(134@,4i) {vehicle} 35@
goto_if_false @GARAG1_12469
130@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2240.4299 {y} 557.96 {z} 34.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2185.4299 {y} 567.96 {z} 34.0 {speed} 50.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12469
if 
  TIMERA > 4000
goto_if_false @GARAG1_12715
if 
  114@ == 8
goto_if_false @GARAG1_12715
gosub @GARAG1_24320
if 
  not is_car_dead 34@
goto_if_false @GARAG1_12639
set_fixed_camera_position -2235.01 {y} 538.8505 {z} 34.3478 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2234.1831 {y} 539.4094 {z} 34.3942 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 93@
goto_if_false @GARAG1_12639
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_12639
stop_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12673
delete_char 94@(134@,4i)

:GARAG1_12673
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12694
delete_car 35@

:GARAG1_12694
if 
  does_object_exist 42@
goto_if_false @GARAG1_12715
delete_object 42@

:GARAG1_12715
if 
  TIMERA > 1500
goto_if_false @GARAG1_12759
if 
  114@ == 9
goto_if_false @GARAG1_12759
gosub @GARAG1_24320

:GARAG1_12759
if 
  TIMERA > 1500
goto_if_false @GARAG1_12803
if 
  114@ == 10
goto_if_false @GARAG1_12803
gosub @GARAG1_24320

:GARAG1_12803
if 
  TIMERA > 1500
goto_if_false @GARAG1_12847
if 
  114@ == 11
goto_if_false @GARAG1_12847
gosub @GARAG1_24320

:GARAG1_12847
if 
  TIMERA > 1500
goto_if_false @GARAG1_12898
if 
  114@ == 12
goto_if_false @GARAG1_12898
gosub @GARAG1_24320
114@ = 20

:GARAG1_12898
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_12998
114@ = 20
stop_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12952
delete_char 94@(134@,4i)

:GARAG1_12952
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12973
delete_car 35@

:GARAG1_12973
if 
  does_object_exist 42@
goto_if_false @GARAG1_12994
delete_object 42@

:GARAG1_12994
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_12998
if 
  TIMERB > 40000
goto_if_false @GARAG1_13026
114@ = 20

:GARAG1_13026
goto @GARAG1_10946

:GARAG1_13033
skip_cutscene_end 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_13083
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_13083
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
349@ = 0
clear_prints 
if 
  not is_car_dead 34@
goto_if_false @GARAG1_13302
set_car_status 34@ {status} EntityStatus.Player
if 
  not is_char_dead 93@
goto_if_false @GARAG1_13231
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_13231
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.BikeRear
goto_if_false @GARAG1_13206
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear
goto @GARAG1_13231

:GARAG1_13206
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.BikeRear
delete_char 100@
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear

:GARAG1_13231
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_13302
if 
  not is_car_dead 35@
goto_if_false @GARAG1_13302
if 
  not is_char_in_car 94@(134@,4i) {vehicle} 35@
goto_if_false @GARAG1_13302
warp_char_into_car 94@(134@,4i) {vehicle} 35@

:GARAG1_13302
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed #CIGAR
unload_special_character 4
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_13344
delete_char 94@(134@,4i)

:GARAG1_13344
if 
  not is_car_dead 35@
goto_if_false @GARAG1_13365
delete_car 35@

:GARAG1_13365
if 
  does_object_exist 42@
goto_if_false @GARAG1_13386
delete_object 42@

:GARAG1_13386
134@ = 2
102@ = 0
106@ = 1
return 

:GARAG1_13409
129@ = add_sprite_blip_for_coord 48@ {y} 49@ {z} 50@ {sprite} RadarSprite.Police
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_13452
return 

:GARAG1_13452
request_model 413
request_animation "CAR_CHAT"

:GARAG1_13469
if or
  not has_model_loaded 413
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_13508
wait 0
goto @GARAG1_13469

:GARAG1_13508
38@ = create_car 413 {x} -1659.92 {y} 751.31 {z} 17.29
lock_car_doors 38@ {lockStatus} CarLock.Locked
set_car_heading 38@ {heading} 180.0
freeze_car_position 38@ {state} True
if 
  not is_car_dead 38@
goto_if_false @GARAG1_13600
99@ = create_char_inside_car 38@ {pedType} PedType.CivMale {modelId} 7
freeze_car_position 38@ {state} False
set_car_cruise_speed 38@ {maxSpeed} 30.0

:GARAG1_13600
set_lvar_int_to_lvar_int 311@ = 93@
set_lvar_int_to_lvar_int 312@ = 93@
set_lvar_int_to_lvar_int 313@ = 93@
set_lvar_int_to_lvar_int 314@ = 93@
set_lvar_int_to_var_int 315@ = $scplayer
set_lvar_int_to_lvar_int 316@ = 93@
set_lvar_int_to_lvar_int 317@ = 93@
set_lvar_int_to_lvar_int 318@ = 93@
set_lvar_int_to_lvar_int 319@ = 93@
set_lvar_int_to_lvar_int 320@ = 93@
set_lvar_int_to_lvar_int 321@ = 93@
set_lvar_int_to_var_int 322@ = $scplayer
set_lvar_int_to_var_int 323@ = $scplayer
set_lvar_int_to_lvar_int 324@ = 94@
set_lvar_int_to_lvar_int 325@ = 93@
set_lvar_int_to_lvar_int 326@ = 93@
set_lvar_int_to_lvar_int 327@ = 93@
set_lvar_int_to_lvar_int 328@ = 93@
set_lvar_int_to_lvar_int 329@ = 93@
set_lvar_int_to_var_int 330@ = $scplayer
set_lvar_int_to_lvar_int 331@ = 93@
set_lvar_int_to_lvar_int 333@ = 93@
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_14055
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_13848
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_13848
40@ = get_car_heading 34@
set_car_coordinates 34@ {x} -1626.167 {y} 725.0057 {z} 13.4609
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_13924
set_car_heading 34@ {heading} 90.0
goto @GARAG1_13934

:GARAG1_13924
set_car_heading 34@ {heading} 270.0

:GARAG1_13934
87@, 88@, 89@ = get_offset_from_car_in_world_coords 34@ {xOffset} 1.0 {yOffset} 1.5 {zOffset} 0.8
90@, 91@, 92@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
set_fixed_camera_position 87@ {y} 88@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 90@ {y} 91@ {z} 92@ {switchStyle} SwitchType.JumpCut
clear_area -1659.92 {y} 751.31 {z} 17.29 {radius} 1000.0 {clearParticles} True

:GARAG1_14055
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14114
task_play_anim 93@ {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_14114
114@ = 0
348@ = 69
TIMERA = 0
TIMERB = 0

:GARAG1_14142
if 
  114@ <> 20
goto_if_false @GARAG1_14973
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_14191
return 

:GARAG1_14191
if 
  114@ == 0
goto_if_false @GARAG1_14266
skip_cutscene_start_internal @GARAG1_14973
if 
  TIMERA > 1500
goto_if_false @GARAG1_14266
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14259
start_char_facial_talk 93@ {duration} 29000

:GARAG1_14259
gosub @GARAG1_24320

:GARAG1_14266
if 
  114@ == 1
goto_if_false @GARAG1_14453
if 
  TIMERA > 2000
goto_if_false @GARAG1_14453
gosub @GARAG1_24320
if 
  not is_car_dead 38@
goto_if_false @GARAG1_14395
if 
  not is_char_dead 99@
goto_if_false @GARAG1_14395
if 
  is_char_in_car 99@ {vehicle} 38@
goto_if_false @GARAG1_14395
task_car_drive_to_coord 99@ {vehicle} 38@ {x} -1716.03 {y} 732.96 {z} 24.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:GARAG1_14395
set_fixed_camera_position -1671.547 {y} 729.851 {z} 18.6107 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1670.621 {y} 730.2037 {z} 18.7409 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:GARAG1_14453
if 
  114@ == 2
goto_if_false @GARAG1_14497
if 
  TIMERA > 2000
goto_if_false @GARAG1_14497
gosub @GARAG1_24320

:GARAG1_14497
if 
  114@ == 3
goto_if_false @GARAG1_14725
if 
  TIMERA > 6000
goto_if_false @GARAG1_14725
set_fixed_camera_position -1624.639 {y} 723.3417 {z} 14.5936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1625.473 {y} 723.8466 {z} 14.8151 {switchStyle} SwitchType.JumpCut
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 3000
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14694
task_play_anim 93@ {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_14694
gosub @GARAG1_24320
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14725
start_char_facial_talk 93@ {duration} 20000

:GARAG1_14725
if and
  114@ >= 4
  7 >= 114@
goto_if_false @GARAG1_14757
gosub @GARAG1_24320

:GARAG1_14757
if 
  114@ == 8
goto_if_false @GARAG1_14859
if 
  TIMERA > 2000
goto_if_false @GARAG1_14859
set_fixed_camera_position -1628.8 {y} 727.3613 {z} 14.7421 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1627.844 {y} 727.0695 {z} 14.7728 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_14859
if and
  114@ >= 9
  11 >= 114@
goto_if_false @GARAG1_14891
gosub @GARAG1_24320

:GARAG1_14891
if 
  114@ >= 12
goto_if_false @GARAG1_14916
114@ = 20

:GARAG1_14916
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_14940
114@ = 20
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_14940
if 
  TIMERB > 29000
goto_if_false @GARAG1_14966
114@ = 20

:GARAG1_14966
goto @GARAG1_14142

:GARAG1_14973
skip_cutscene_end 
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14996
stop_char_facial_talk 93@

:GARAG1_14996
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @GARAG1_15032
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_15032
remove_animation "CAR_CHAT"
mark_model_as_no_longer_needed 413
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
348@ = 80
349@ = 0
clear_prints 
remove_blip 129@
delete_char 99@
delete_car 38@
106@ = 0
103@ = 1
remove_animation "CAR_CHAT"
return 

:GARAG1_15129
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
request_animation "CRIB"
request_model 465

:GARAG1_15183
if or
  not has_animation_loaded "CRIB"
  not has_model_loaded 465
goto_if_false @GARAG1_15218
wait 0
goto @GARAG1_15183

:GARAG1_15218
41@ = create_object #PARKBENCH1 {x} -2242.6001 {y} 136.91 {z} 34.65
delete_object 41@
37@ = create_car 465 {x} -2250.3301 {y} 139.91 {z} 44.66
delete_car 37@
load_special_character 1 {modelName} 'ZERO'

:GARAG1_15287
if 
  not has_special_character_loaded 1
goto_if_false @GARAG1_15313
wait 0
goto @GARAG1_15287

:GARAG1_15313
request_model 364
request_model 363

:GARAG1_15323
if or
  not has_model_loaded 364
  not has_model_loaded 363
goto_if_false @GARAG1_15355
wait 0
goto @GARAG1_15323

:GARAG1_15355
96@ = create_char PedType.CivMale {modelId} 290 {x} 74@ {y} 79@ {z} 84@
set_char_only_damaged_by_player 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Satchel {ammo} 10
set_char_never_targetted 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Detonator {ammo} 1
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_current_char_weapon 96@ {weaponType} WeaponType.Detonator
delete_char 96@
gosub @GARAG1_18471
request_animation "CAR_CHAT"

:GARAG1_15454
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_15488
wait 0
goto @GARAG1_15454

:GARAG1_15488
if 
  110@ == 1
goto_if_false @GARAG1_15508
return 

:GARAG1_15508
set_lvar_int_to_lvar_int 334@ = 96@
set_lvar_int_to_lvar_int 335@ = 96@
set_lvar_int_to_lvar_int 336@ = 96@
set_lvar_int_to_lvar_int 337@ = 93@
set_lvar_int_to_lvar_int 338@ = 93@
set_lvar_int_to_lvar_int 339@ = 93@
set_lvar_int_to_var_int 340@ = $scplayer
set_lvar_int_to_lvar_int 341@ = 93@
set_lvar_int_to_lvar_int 342@ = 93@
set_lvar_int_to_lvar_int 343@ = 96@
set_lvar_int_to_lvar_int 344@ = 96@
set_lvar_int_to_lvar_int 345@ = 96@
set_lvar_int_to_var_int 346@ = $scplayer
set_lvar_int_to_var_int 347@ = $scplayer
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
switch_random_trains False
if 
  not is_car_dead 37@
goto_if_false @GARAG1_15729
set_car_coordinates 37@ {x} -2244.5601 {y} 127.11 {z} 40.0
heli_land_at_coords 37@ {x} -2244.48 {y} 129.14 {z} 34.56 {minAltitude} 0.0 {maxAltitude} 0.0
set_car_cruise_speed 37@ {maxSpeed} 21.0

:GARAG1_15729
set_fixed_camera_position -2250.3059 {y} 140.9439 {z} 41.7533 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2249.804 {y} 140.343 {z} 41.1311 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_15952
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_15853
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_15853
40@ = get_car_heading 34@
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_15909
set_car_heading 34@ {heading} 180.0
goto @GARAG1_15919

:GARAG1_15909
set_car_heading 34@ {heading} 0.0

:GARAG1_15919
if 
  not is_car_passenger_seat_free 34@ {seat} SeatId.RearLeft
goto_if_false @GARAG1_15952
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearLeft
delete_char 100@

:GARAG1_15952
if 
  not is_char_dead 96@
goto_if_false @GARAG1_15998
set_char_health 96@ {health} 200
set_char_suffers_critical_hits 96@ {state} False
set_char_proofs 96@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:GARAG1_15998
348@ = 92
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_16026
if 
  114@ <> 10
goto_if_false @GARAG1_16806
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_16099
if 
  TIMERA > 1500
goto_if_false @GARAG1_16099
skip_cutscene_start_internal @GARAG1_16806
gosub @GARAG1_24320

:GARAG1_16099
if 
  114@ == 1
goto_if_false @GARAG1_16194
if 
  TIMERA > 2000
goto_if_false @GARAG1_16194
gosub @GARAG1_24320
set_fixed_camera_position -2244.449 {y} 135.8613 {z} 34.9713 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2244.844 {y} 134.9551 {z} 35.1198 {switchStyle} SwitchType.JumpCut

:GARAG1_16194
if 
  114@ == 2
goto_if_false @GARAG1_16552
if 
  TIMERA > 3000
goto_if_false @GARAG1_16552
gosub @GARAG1_24320
if 
  not is_char_dead 96@
goto_if_false @GARAG1_16552
if 
  not is_car_dead 34@
goto_if_false @GARAG1_16469
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_16293
set_char_collision 96@ {state} True

:GARAG1_16293
set_char_coordinates 96@ {x} -2245.3401 {y} 134.11 {z} 34.5
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_16395
130@ = open_sequence_task 
task_achieve_heading -1 {heading} 93.0
task_enter_car_as_passenger -1 {vehicle} 34@ {time} 6000 {seat} SeatId.RearLeft
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@
goto @GARAG1_16462

:GARAG1_16395
130@ = open_sequence_task 
task_achieve_heading -1 {heading} 93.0
task_go_straight_to_coord -1 {x} -2252.853 {y} 138.619 {z} 34.219 {speed} MoveState.Run {time} -1
task_enter_car_as_passenger -1 {vehicle} 34@ {time} 6000 {seat} SeatId.RearLeft
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_16462
goto @GARAG1_16501

:GARAG1_16469
print_now 'GAR1_07' {time} 5000 {flag} 1
103@ = 0
110@ = 1
return 

:GARAG1_16501
set_fixed_camera_position -2251.4209 {y} 130.1502 {z} 35.5076 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2250.7451 {y} 130.8858 {z} 35.4549 {switchStyle} SwitchType.JumpCut

:GARAG1_16552
if 
  114@ == 3
goto_if_false @GARAG1_16647
if 
  TIMERA > 3000
goto_if_false @GARAG1_16647
set_fixed_camera_position -2253.4509 {y} 139.6341 {z} 38.4909 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2252.7019 {y} 139.074 {z} 38.1371 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24320

:GARAG1_16647
if 
  114@ == 4
goto_if_false @GARAG1_16705
if 
  TIMERA > 3000
goto_if_false @GARAG1_16705
gosub @GARAG1_24320
114@ = 5
TIMERA = 0

:GARAG1_16705
if 
  114@ == 5
goto_if_false @GARAG1_16749
if 
  TIMERA > 2000
goto_if_false @GARAG1_16749
114@ = 10

:GARAG1_16749
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_16773
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_16773
if 
  TIMERB > 13500
goto_if_false @GARAG1_16799
114@ = 10

:GARAG1_16799
goto @GARAG1_16026

:GARAG1_16806
skip_cutscene_end 
if 
  not is_char_dead 96@
goto_if_false @GARAG1_16959
set_current_char_weapon 96@ {weaponType} WeaponType.Unarmed
if 
  not is_car_dead 34@
goto_if_false @GARAG1_16944
if 
  not is_char_in_car 96@ {vehicle} 34@
goto_if_false @GARAG1_16944
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.RearLeft
goto_if_false @GARAG1_16901
warp_char_into_car_as_passenger 96@ {handle} 34@ {seat} SeatId.RearLeft
goto @GARAG1_16930

:GARAG1_16901
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearLeft
delete_char 100@
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearLeft

:GARAG1_16930
set_current_char_weapon 96@ {weaponType} WeaponType.Unarmed
set_char_only_damaged_by_player 96@ {state} False

:GARAG1_16944
set_char_proofs 96@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GARAG1_16959
if 
  not is_car_dead 37@
goto_if_false @GARAG1_17035
set_car_coordinates 37@ {x} -2242.3401 {y} 128.0 {z} 34.2
set_car_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_cruise_speed 37@ {maxSpeed} 0.0
set_car_health 37@ {health} 400
freeze_car_position 37@ {state} True

:GARAG1_17035
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @GARAG1_17071
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_17071
switch_random_trains True
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
348@ = 97
114@ = 0
349@ = 0
clear_prints 
mark_object_as_no_longer_needed 41@
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
remove_animation "CRIB"
mark_car_as_no_longer_needed 37@
remove_animation "CAR_CHAT"
134@ = 3
103@ = 0
107@ = 1
mark_model_as_no_longer_needed 465
return 

:GARAG1_17180
add_blip_for_coord 69@ {y} 70@ {z} 71@ {var_handle} 122@(134@,5i)
request_model 588

:GARAG1_17203
if 
  not has_model_loaded 588
goto_if_false @GARAG1_17230
wait 0
goto @GARAG1_17203

:GARAG1_17230
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_17257
return 

:GARAG1_17257
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
TIMERA = 0
set_fixed_camera_position -2040.63 {y} 180.9374 {z} 29.2617 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2039.8 {y} 180.3834 {z} 29.3231 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17481
set_car_coordinates 34@ {x} -2033.932 {y} 178.5836 {z} 27.6359
set_car_heading 34@ {heading} 86.5989
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_17447
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_17447
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} -2039.97 {y} 179.98 {z} 28.08 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 1 {drivingStyle} DrivingMode.PloughThrough

:GARAG1_17481
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6683

:GARAG1_17488
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_17514
wait 0
goto @GARAG1_17488

:GARAG1_17514
print_now 'GAR1_PH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_17534
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_17560
wait 0
goto @GARAG1_17534

:GARAG1_17560
clear_this_print 'GAR1_PH'
114@ = 0

:GARAG1_17578
if 
  4000 > TIMERA
goto_if_false @GARAG1_18065
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_17979
if 
  TIMERA > 1000
goto_if_false @GARAG1_17979
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17746
if 
  not is_char_dead 94@
goto_if_false @GARAG1_17746
51@, 52@, 53@ = get_offset_from_char_in_world_coords 94@ {xOffset} 1.0 {yOffset} 5.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 94@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17746
wait 1000
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17859
if 
  not is_char_dead 96@
goto_if_false @GARAG1_17859
51@, 52@, 53@ = get_offset_from_char_in_world_coords 96@ {xOffset} -5.0 {yOffset} 0.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17859
wait 500
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17972
if 
  not is_char_dead 93@
goto_if_false @GARAG1_17972
51@, 52@, 53@ = get_offset_from_char_in_world_coords 93@ {xOffset} 1.0 {yOffset} 5.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 93@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17972
114@ = 1

:GARAG1_17979
if 
  114@ == 1
goto_if_false @GARAG1_18038
if 
  TIMERA > 2500
goto_if_false @GARAG1_18038
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
114@ = 2

:GARAG1_18038
if 
  110@ == 1
goto_if_false @GARAG1_18058
return 

:GARAG1_18058
goto @GARAG1_17578

:GARAG1_18065
if 
  is_char_in_any_car $scplayer
goto_if_false @GARAG1_18101
warp_char_from_car_to_coord $scplayer {x} -2028.0 {y} 177.0 {z} 28.2

:GARAG1_18101
remove_animation "SMOKING"
remove_animation "PARK"
remove_animation "CAR"
remove_animation "CRIB"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 585
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 525
unload_special_character 1
unload_special_character 2
unload_special_character 3

:GARAG1_18203
if 
  get_fading_status 
goto_if_false @GARAG1_18227
wait 0
goto @GARAG1_18203

:GARAG1_18227
set_char_coordinates $scplayer {x} -2028.0 {y} 177.0 {z} 28.2
set_char_heading $scplayer {heading} 267.0
delete_char 93@
delete_char 94@
delete_char 95@
delete_char 96@
delete_char 97@
delete_char 99@
delete_car 35@
delete_car 34@
load_cutscene 'GARAG1C'
set_area_visible 1

:GARAG1_18312
if 
  not has_cutscene_loaded 
goto_if_false @GARAG1_18336
wait 0
goto @GARAG1_18312

:GARAG1_18336
wait 1500
start_cutscene 
do_fade 1000 {direction} Fade.In

:GARAG1_18350
if 
  not has_cutscene_finished 
goto_if_false @GARAG1_18374
wait 0
goto @GARAG1_18350

:GARAG1_18374
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GARAG1_18389
if 
  get_fading_status 
goto_if_false @GARAG1_18413
wait 0
goto @GARAG1_18389

:GARAG1_18413
set_area_visible 0
do_fade 1000 {direction} Fade.In

:GARAG1_18424
if 
  get_fading_status 
goto_if_false @GARAG1_18448
wait 0
goto @GARAG1_18424

:GARAG1_18448
349@ = 0
107@ = 0
109@ = 1
return 

:GARAG1_18471
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21930

:GARAG1_18487
if 
  119@ <> 1
goto_if_false @GARAG1_21923
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_18536
return 

:GARAG1_18536
if 
  101@ == 1
goto_if_false @GARAG1_18974
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_18899
if 
  120@ == 0
goto_if_false @GARAG1_18892
create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_collision 94@(134@,4i) {state} False
set_char_heading 94@(134@,4i) {heading} 228.0
set_char_proofs 94@(134@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_get_out_upside_down_car 94@(134@,4i) {state} False
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
set_char_never_targetted 94@(134@,4i) {state} True
36@ = create_car 525 {x} -1676.0 {y} 440.0 {z} 6.7
lock_car_doors 36@ {lockStatus} CarLock.Locked
set_car_engine_on 36@ {state} True
set_car_lights_on 36@ {state} True
set_car_heading 36@ {heading} 313.0
set_car_health 36@ {health} 500
freeze_car_position 36@ {state} True
pop_car_door 36@ {door} CarDoor.Hood {visibility} False
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
120@ = 1

:GARAG1_18892
goto @GARAG1_18974

:GARAG1_18899
if 
  120@ == 1
goto_if_false @GARAG1_18974
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_18946
delete_char 94@(134@,4i)

:GARAG1_18946
if 
  not is_car_dead 36@
goto_if_false @GARAG1_18967
delete_car 36@

:GARAG1_18967
120@ = 0

:GARAG1_18974
if 
  102@ == 1
goto_if_false @GARAG1_19464
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_19368
if 
  120@ == 0
goto_if_false @GARAG1_19361
35@ = create_car 588 {x} -2238.8879 {y} 541.5267 {z} 34.375
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_car_engine_on 35@ {state} True
set_car_lights_on 35@ {state} True
set_car_heading 35@ {heading} 0.0
freeze_car_position 35@ {state} True
create_char PedType.CivMale {modelId} 293 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_heading 94@(134@,4i) {heading} 270.0
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
task_pick_up_object 94@(134@,4i) {object} 42@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} 0.05 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_char_position 94@(134@,4i) {state} True
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
set_char_get_out_upside_down_car 94@(134@,4i) {state} False
task_play_anim 94@(134@,4i) {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
120@ = 1

:GARAG1_19361
goto @GARAG1_19464

:GARAG1_19368
if 
  120@ == 1
goto_if_false @GARAG1_19464
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_19415
delete_char 94@(134@,4i)

:GARAG1_19415
if 
  not is_car_dead 35@
goto_if_false @GARAG1_19436
delete_car 35@

:GARAG1_19436
if 
  does_object_exist 42@
goto_if_false @GARAG1_19457
delete_object 42@

:GARAG1_19457
120@ = 0

:GARAG1_19464
if 
  103@ == 1
goto_if_false @GARAG1_19953
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_19865
if 
  120@ == 0
goto_if_false @GARAG1_19858
41@ = create_object #PARKBENCH1 {x} -2244.55 {y} 133.91 {z} 34.4
set_object_heading 41@ {heading} 0.0
freeze_object_position 41@ {state} True
96@ = create_char PedType.CivMale {modelId} 290 {x} -2244.7 {y} 133.91 {z} 33.82
set_char_get_out_upside_down_car 96@ {state} False
set_char_never_targetted 96@ {state} True
task_play_anim_non_interruptable 96@ {animationName} "CRIB_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_char_collision 96@ {state} False
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_char_heading 96@ {heading} 280.0
set_char_only_damaged_by_player 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Satchel {ammo} 10
set_char_never_targetted 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Detonator {ammo} 1
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_current_char_weapon 96@ {weaponType} WeaponType.Detonator
37@ = create_car 465 {x} -2250.3301 {y} 139.91 {z} 44.66
set_car_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 37@ {maxSpeed} 30.0
set_heli_blades_full_speed 37@
heli_goto_coords 37@ {x} -2258.7 {y} 132.54 {z} 37.72 {minAltitude} 5.0 {maxAltitude} 35.0
120@ = 1

:GARAG1_19858
goto @GARAG1_19953

:GARAG1_19865
if 
  120@ == 1
goto_if_false @GARAG1_19953
if 
  does_object_exist 41@
goto_if_false @GARAG1_19904
delete_object 41@

:GARAG1_19904
if 
  not is_char_dead 96@
goto_if_false @GARAG1_19925
delete_char 96@

:GARAG1_19925
if 
  not is_car_dead 37@
goto_if_false @GARAG1_19946
delete_car 37@

:GARAG1_19946
120@ = 0

:GARAG1_19953
if 
  107@ == 1
goto_if_false @GARAG1_20131
if 
  locate_char_any_means_3d $scplayer {x} 69@ {y} 70@ {z} 71@ {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_20085
if 
  120@ == 0
goto_if_false @GARAG1_20078
35@ = create_car 588 {x} -2026.0 {y} 169.0 {z} 28.2
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_car_heading 35@ {heading} 120.0
120@ = 1

:GARAG1_20078
goto @GARAG1_20131

:GARAG1_20085
if 
  120@ == 1
goto_if_false @GARAG1_20131
if 
  not is_car_dead 35@
goto_if_false @GARAG1_20124
delete_car 35@

:GARAG1_20124
120@ = 0

:GARAG1_20131
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21856
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_20515
if 
  locate_stopped_car_3d 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20515
if 
  locate_stopped_car_3d 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @GARAG1_20506
if 
  118@ == 0
goto_if_false @GARAG1_20323
print_help 'GAR1_23'
118@ = 1

:GARAG1_20323
if 
  is_player_pressing_horn $player1
goto_if_false @GARAG1_20499
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @GARAG1_20499
set_char_cant_be_dragged_out $scplayer {state} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20385
lock_car_doors 34@ {lockStatus} CarLock.LockedPlayerInside

:GARAG1_20385
wait 500
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
clear_help 
wait 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20469
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_20469
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_20469
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20492
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:GARAG1_20492
119@ = 1

:GARAG1_20499
goto @GARAG1_20515

:GARAG1_20506
clear_help 
118@ = 0

:GARAG1_20515
if 
  105@ == 1
goto_if_false @GARAG1_20612
if 
  locate_char_in_car_3d $scplayer {x} 45@ {y} 46@ {z} 47@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20612
119@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:GARAG1_20612
if 
  106@ == 1
goto_if_false @GARAG1_20709
if 
  locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20709
119@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:GARAG1_20709
if 
  107@ == 1
goto_if_false @GARAG1_20903
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20903
if 
  113@ == 0
goto_if_false @GARAG1_20903
40@ = get_car_heading 34@
if 
  locate_car_3d 34@ {x} -2034.59 {y} 180.23 {z} 28.43 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20903
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_20903
open_garage 'HBGDSFS'
113@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
119@ = 1

:GARAG1_20903
if 
  101@ == 1
goto_if_false @GARAG1_21035
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_20953
gosub @GARAG1_24089

:GARAG1_20953
if 
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @GARAG1_21003
if 
  114@ == 8
goto_if_false @GARAG1_21003
gosub @GARAG1_24089

:GARAG1_21003
if or
  114@ == 9
  114@ == 10
goto_if_false @GARAG1_21035
gosub @GARAG1_24089

:GARAG1_21035
if 
  105@ == 1
goto_if_false @GARAG1_21085
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21085
gosub @GARAG1_24089

:GARAG1_21085
if 
  102@ == 1
goto_if_false @GARAG1_21135
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21135
gosub @GARAG1_24089

:GARAG1_21135
if 
  103@ == 1
goto_if_false @GARAG1_21185
if and
  114@ >= 0
  9 >= 114@
goto_if_false @GARAG1_21185
gosub @GARAG1_24089

:GARAG1_21185
if 
  107@ == 1
goto_if_false @GARAG1_21235
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_21235
gosub @GARAG1_24089

:GARAG1_21235
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21849
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_21849
remove_blip 122@(134@,5i)
remove_blip 128@
remove_blip 129@
127@ = add_blip_for_car 34@
set_blip_as_friendly 127@ {state} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 26602

:GARAG1_21315
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_21341
wait 0
goto @GARAG1_21315

:GARAG1_21341
print_now 'TRUX_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_21361
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_21387
wait 0
goto @GARAG1_21361

:GARAG1_21387
clear_this_print 'TRUX_AC'
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21660

:GARAG1_21414
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_21660
wait 0
if 
  112@ == 0
goto_if_false @GARAG1_21462
112@ = 1

:GARAG1_21462
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21485
goto @GARAG1_21545

:GARAG1_21485
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21545
if 
  is_car_on_fire 34@
goto_if_false @GARAG1_21626
explode_car 34@
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21626
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_21653
return 

:GARAG1_21653
goto @GARAG1_21414

:GARAG1_21660
112@ = 0
remove_blip 127@
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_21745
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend

:GARAG1_21745
if 
  105@ == 1
goto_if_false @GARAG1_21779
128@ = add_sprite_blip_for_coord 45@ {y} 46@ {z} 47@ {sprite} RadarSprite.Hospital

:GARAG1_21779
if 
  106@ == 1
goto_if_false @GARAG1_21813
129@ = add_sprite_blip_for_coord 48@ {y} 49@ {z} 50@ {sprite} RadarSprite.Police

:GARAG1_21813
if 
  107@ == 1
goto_if_false @GARAG1_21849
add_blip_for_coord 69@ {y} 70@ {z} 71@ {var_handle} 122@(134@,5i)

:GARAG1_21849
goto @GARAG1_21916

:GARAG1_21856
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21916
goto @GARAG1_18487

:GARAG1_21923
goto @GARAG1_21983

:GARAG1_21930
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
110@ = 1
return 

:GARAG1_21983
119@ = 0
remove_blip 122@(134@,5i)
118@ = 0
120@ = 0
114@ = 0
clear_help 
return 

:GARAG1_22024
if 
  not is_car_dead 34@
goto_if_false @GARAG1_22846
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 34@ {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22141
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_18' {time} 5000 {flag} 1

:GARAG1_22141
if 
  not is_char_dead 93@
goto_if_false @GARAG1_22364
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_22339
if 
  115@ == 0
goto_if_false @GARAG1_22213
task_enter_car_as_passenger 93@ {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
115@ = 1

:GARAG1_22213
if 
  115@ == 1
goto_if_false @GARAG1_22332
if 
  not locate_char_on_foot_char_3d 93@ {target} $scplayer {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22332
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_19' {time} 5000 {flag} 1

:GARAG1_22332
goto @GARAG1_22364

:GARAG1_22339
if 
  115@ == 1
goto_if_false @GARAG1_22364
115@ = 0

:GARAG1_22364
if 
  101@ <> 1
goto_if_false @GARAG1_22605
if 
  not is_char_dead 94@
goto_if_false @GARAG1_22605
if 
  not is_char_in_car 94@ {vehicle} 34@
goto_if_false @GARAG1_22580
if 
  117@ == 0
goto_if_false @GARAG1_22454
task_enter_car_as_passenger 94@ {vehicle} 34@ {time} -1 {seat} SeatId.RearRight
117@ = 1

:GARAG1_22454
if 
  117@ == 1
goto_if_false @GARAG1_22573
if 
  not locate_char_on_foot_char_3d 94@ {target} $scplayer {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22573
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_20' {time} 5000 {flag} 1

:GARAG1_22573
goto @GARAG1_22605

:GARAG1_22580
if 
  117@ == 1
goto_if_false @GARAG1_22605
117@ = 0

:GARAG1_22605
if 
  102@ <> 1
goto_if_false @GARAG1_22846
if 
  not is_char_dead 95@
goto_if_false @GARAG1_22846
if 
  not is_char_in_car 95@ {vehicle} 34@
goto_if_false @GARAG1_22821
if 
  116@ == 0
goto_if_false @GARAG1_22695
task_enter_car_as_passenger 95@ {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
116@ = 1

:GARAG1_22695
if 
  116@ <> 1
goto_if_false @GARAG1_22814
if 
  not locate_char_on_foot_char_3d 95@ {target} $scplayer {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22814
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_21' {time} 5000 {flag} 1

:GARAG1_22814
goto @GARAG1_22846

:GARAG1_22821
if 
  116@ == 1
goto_if_false @GARAG1_22846
116@ = 0

:GARAG1_22846
if 
  is_char_dead 93@
goto_if_false @GARAG1_22929
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_17' {time} 5000 {flag} 1
return 

:GARAG1_22929
if 
  101@ == 1
goto_if_false @GARAG1_23131
if 
  120@ == 1
goto_if_false @GARAG1_23131
if 
  is_car_dead 36@
goto_if_false @GARAG1_23048
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23048
if 
  is_char_dead 94@
goto_if_false @GARAG1_23131
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23131
if 
  102@ == 1
goto_if_false @GARAG1_23416
if 
  is_char_dead 94@
goto_if_false @GARAG1_23232
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23232
if 
  120@ == 1
goto_if_false @GARAG1_23416
if 
  is_char_dead 95@
goto_if_false @GARAG1_23333
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_15' {time} 5000 {flag} 1
return 

:GARAG1_23333
if 
  is_car_dead 35@
goto_if_false @GARAG1_23416
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_15' {time} 5000 {flag} 1
return 

:GARAG1_23416
if 
  103@ == 1
goto_if_false @GARAG1_23795
if 
  is_char_dead 94@
goto_if_false @GARAG1_23517
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23517
if 
  120@ == 1
goto_if_false @GARAG1_23795
if 
  is_char_dead 96@
goto_if_false @GARAG1_23618
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23618
if 
  not is_char_dead 96@
goto_if_false @GARAG1_23795
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @GARAG1_23708
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_23676
set_char_collision 96@ {state} True

:GARAG1_23676
set_char_health 96@ {health} 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23708
if 
  does_object_exist 41@
goto_if_false @GARAG1_23795
if 
  has_object_been_damaged 41@
goto_if_false @GARAG1_23795
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_23763
set_char_collision 96@ {state} True

:GARAG1_23763
set_char_health 96@ {health} 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23795
if 
  107@ == 1
goto_if_false @GARAG1_23979
if 
  is_char_dead 94@
goto_if_false @GARAG1_23896
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23896
if 
  is_char_dead 96@
goto_if_false @GARAG1_23979
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23979
if or
  105@ == 1
  106@ == 1
goto_if_false @GARAG1_24087
if 
  is_char_dead 94@
goto_if_false @GARAG1_24087
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_24087
return 

:GARAG1_24089
if 
  349@ == 0
goto_if_false @GARAG1_24129
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 136@(348@,106i)
349@ = 1

:GARAG1_24129
if 
  349@ == 1
goto_if_false @GARAG1_24219
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_24219
if 
  not is_char_dead 242@(348@,106i)
goto_if_false @GARAG1_24194
start_char_facial_talk 242@(348@,106i) {duration} 10000

:GARAG1_24194
play_mission_audio MissionAudioSlot.Slot1
print_now $flag_is_zero_on_bike(348@,106s) {time} 10000 {flag} 1
349@ = 2

:GARAG1_24219
if 
  349@ == 2
goto_if_false @GARAG1_24318
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_24318
if 
  not is_char_dead 242@(348@,106i)
goto_if_false @GARAG1_24281
stop_char_facial_talk 242@(348@,106i)

:GARAG1_24281
TIMERA = 0
349@ = 0
clear_this_print $flag_is_zero_on_bike(348@,106s)
348@ += 1
114@ += 1

:GARAG1_24318
return 

:GARAG1_24320
load_mission_audio MissionAudioSlot.Slot1 {audioId} 136@(348@,106i)

:GARAG1_24331
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_24357
wait 0
goto @GARAG1_24331

:GARAG1_24357
print_now $flag_is_zero_on_bike(348@,106s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_24375
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_24401
wait 0
goto @GARAG1_24375

:GARAG1_24401
clear_this_print $flag_is_zero_on_bike(348@,106s)
348@ += 1
114@ += 1
return 

:GARAG1_24426
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'GAR_1'
player_made_progress 1
set_int_stat StatId.PassedGarage1 {value} 1
start_new_script @SCRASH 
$flag_garage_mission_counter += 1
return 

:GARAG1_24492
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GARAG1_24510
camera_reset_new_scriptables 
disable_all_entry_exits False
if 
  is_player_playing $player1
goto_if_false @GARAG1_24539
shut_char_up_for_scripted_speech $scplayer {state} False

:GARAG1_24539
switch_random_trains True
clear_help 
134@ = 0

:GARAG1_24552
if 
  5 > 134@
goto_if_false @GARAG1_24593
remove_blip 122@(134@,5i)
134@ += 1
goto @GARAG1_24552

:GARAG1_24593
remove_animation "PARK"
remove_animation "CAR"
remove_animation "CRIB"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
remove_animation "SMOKING"
remove_blip 127@
remove_blip 128@
remove_blip 129@
if 
  not is_car_dead 34@
goto_if_false @GARAG1_24687
set_car_health 34@ {health} 600

:GARAG1_24687
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 35@
delete_car 37@
remove_char_elegantly 93@
remove_char_elegantly 94@
remove_char_elegantly 95@
remove_char_elegantly 96@
remove_char_elegantly 97@
remove_char_elegantly 99@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
delete_object 41@
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 585
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 525
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed #CIGAR
delete_object 42@
set_script_limit_to_gang_size 99
release_weather 
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
$timer_mobile_start = get_game_timer 
if 
  is_garage_open 'HBGDSFS'
goto_if_false @GARAG1_24870
close_garage 'HBGDSFS'

:GARAG1_24870
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$t2_cop_timer = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
stop_fx_system 350@
$onmission = 0
mission_has_finished 
return 

//-------------Mission 50---------------
// Originally: Deconstruction

:DECON
script_name 'DECON'
gosub @DECON_47
if 
  has_deatharrest_been_executed 
goto_if_false @DECON_38
gosub @DECON_20888

:DECON_38
gosub @DECON_21163
terminate_this_script 

:DECON_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0

:DECON_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DECON_159
36@ = 1

:DECON_159
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @DECON_181
37@ = 1

:DECON_181
39@ += 1
if 
  39@ > 9
goto_if_false @DECON_213
39@ = 0

:DECON_213
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 171@ += 42@
add_int_lvar_to_int_lvar 172@ += 42@
if 
  68@ == 1
goto_if_false @DECON_299
goto @DECON_460

:DECON_299
gosub @DECON_562
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DECON_453 {caseNum1} 0 {caseLabel1} @DECON_369 {caseNum2} 1 {caseLabel2} @DECON_383 {caseNum3} 2 {caseLabel3} @DECON_397 {caseNum4} 3 {caseLabel4} @DECON_411 {caseNum5} 4 {caseLabel5} @DECON_425 {caseNum6} 5 {caseLabel6} @DECON_439 {caseNum7} -1 {caseLabel7} @DECON_453

:DECON_369
gosub @DECON_1610
goto @DECON_453

:DECON_383
gosub @DECON_2071
goto @DECON_453

:DECON_397
gosub @DECON_5645
goto @DECON_453

:DECON_411
gosub @DECON_6775
goto @DECON_453

:DECON_425
gosub @DECON_9684
goto @DECON_453

:DECON_439
gosub @DECON_12359
goto @DECON_453

:DECON_453
gosub @DECON_13626

:DECON_460
if 
  38@ == 0
goto_if_false @DECON_560
if 
  37@ == 0
goto_if_false @DECON_544
if 
  36@ == 0
goto_if_false @DECON_528
goto @DECON_133
goto @DECON_537

:DECON_528
gosub @DECON_21028
return 

:DECON_537
goto @DECON_553

:DECON_544
gosub @DECON_20888
return 

:DECON_553
goto @DECON_562

:DECON_560
return 

:DECON_562
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @DECON_653
if 
  66@ == 0
goto_if_false @DECON_627
66@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DECON_653

:DECON_627
66@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DECON_653
if 
  66@ == 1
goto_if_false @DECON_1608
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DECON_720
67@ += 1
if 
  67@ > 4
goto_if_false @DECON_718
67@ = 0

:DECON_718
clear_all_view_variables 

:DECON_720
if 
  67@ == 1
goto_if_false @DECON_939
43@ = 0

:DECON_745
if 
  6 > 43@
goto_if_false @DECON_813
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_799
get_object_health $launchdoor_a51(43@,6i) {var_health} $7225(43@,8i)

:DECON_799
43@ += 1
goto @DECON_745

:DECON_813
view_integer_variable $7225[0] {_p2} "CABIN_0_HEALTH"
view_integer_variable $7225[1] {_p2} "CABIN_1_HEALTH"
view_integer_variable $7225[2] {_p2} "CABIN_2_HEALTH"
view_integer_variable $7225[3] {_p2} "CABIN_3_HEALTH"
view_integer_variable $7225[4] {_p2} "CABIN_4_HEALTH"
view_integer_variable $7225[5] {_p2} "CABIN_5_HEALTH"

:DECON_939
if 
  67@ == 2
goto_if_false @DECON_1149
set_var_int_to_lvar_int $7225[0] = 34@
set_var_int_to_lvar_int $7225[1] = 35@
set_var_int_to_lvar_int $7225[2] = 62@
set_var_int_to_lvar_int $7225[3] = 64@
set_var_int_to_lvar_int $7225[4] = 63@
set_var_int_to_lvar_int $7225[5] = 65@
set_var_int_to_lvar_int $7225[6] = TIMERA
set_var_int_to_lvar_int $7225[7] = TIMERB
view_integer_variable $7225[0] {_p2} "M_STAGE"
view_integer_variable $7225[1] {_p2} "M_GOALS"
view_integer_variable $7225[2] {_p2} "DIALOGUE_FLAG"
view_integer_variable $7225[3] {_p2} "DIALOGUE_TIMER"
view_integer_variable $7225[4] {_p2} "HELP_FLAG"
view_integer_variable $7225[5] {_p2} "HELP_TIMER"
view_integer_variable $7225[6] {_p2} "TIMERA"
view_integer_variable $7225[7] {_p2} "TIMERB"

:DECON_1149
if 
  67@ == 3
goto_if_false @DECON_1447
set_var_int_to_lvar_int $7225[0] = 158@
set_var_int_to_lvar_int $7225[1] = 152@
set_var_int_to_lvar_int $7225[2] = 159@
set_var_int_to_lvar_int $7225[3] = 153@
set_var_int_to_lvar_int $7225[4] = 160@
set_var_int_to_lvar_int $7225[5] = 154@
set_var_int_to_lvar_int $7225[6] = 161@
set_var_int_to_lvar_int $7225[7] = 155@
view_integer_variable $7225[0] {_p2} "CABIN_THIS_HEALTH[0]"
view_integer_variable $7225[1] {_p2} "CABIN_LAST_HEALTH[0]"
view_integer_variable $7225[2] {_p2} "CABIN_THIS_HEALTH[1]"
view_integer_variable $7225[3] {_p2} "CABIN_LAST_HEALTH[1]"
view_integer_variable $7225[4] {_p2} "CABIN_THIS_HEALTH[2]"
view_integer_variable $7225[5] {_p2} "CABIN_LAST_HEALTH[2]"
view_integer_variable $7225[6] {_p2} "CABIN_THIS_HEALTH[3]"
view_integer_variable $7225[7] {_p2} "CABIN_LAST_HEALTH[3]"

:DECON_1447
if 
  67@ == 4
goto_if_false @DECON_1498
set_var_int_to_var_int $7225[0] = $player_is_in_crane
view_integer_variable $7225[0] {_p2} "PLAYER_IS_IN_CRANE"

:DECON_1498
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DECON_1520
38@ = 1

:DECON_1520
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DECON_1608
if 
  68@ == 0
goto_if_false @DECON_1583
68@ = 1
write_debug "LEVEL_PAUSED"
goto @DECON_1608

:DECON_1583
68@ = 0
write_debug "LEVEL_UNPAUSED"

:DECON_1608
return 

:DECON_1610
if 
  35@ == -1
goto_if_false @DECON_1806
90@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
103@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
184@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
115@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
125@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
126@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
123@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:DECON_1806
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DECON_1828
if 
  get_fading_status 
goto_if_false @DECON_1852
wait 0
goto @DECON_1828

:DECON_1852
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
gosub @DECON_20830
return 

:DECON_2071
clear_help 
if 
  35@ == 0
goto_if_false @DECON_2255
load_mission_text 'GARAGE2'
load_cutscene 'GARAG3A'

:DECON_2113
if 
  not has_cutscene_loaded 
goto_if_false @DECON_2137
wait 0
goto @DECON_2113

:DECON_2137
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
start_cutscene 
do_fade 1000 {direction} Fade.In

:DECON_2174
if 
  not has_cutscene_finished 
goto_if_false @DECON_2198
wait 0
goto @DECON_2174

:DECON_2198
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DECON_2213
if 
  get_fading_status 
goto_if_false @DECON_2237
wait 0
goto @DECON_2213

:DECON_2237
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
35@ += 1

:DECON_2255
if 
  35@ == 1
goto_if_false @DECON_4356
request_model #PORTALOO
request_model #PORTAKABIN
request_model #BARREL4
request_model 486
request_model 524
request_model 406
request_model 422
request_model 27
request_model 337
request_model 346
request_model 16
load_all_models_now 

:DECON_2327
if or
  not has_model_loaded #PORTALOO
  not has_model_loaded #PORTAKABIN
  not has_model_loaded #BARREL4
  not has_model_loaded 486
  not has_model_loaded 524
  not has_model_loaded 16
goto_if_false @DECON_2377
wait 0
goto @DECON_2327

:DECON_2377
if or
  not has_model_loaded 406
  not has_model_loaded 422
  not has_model_loaded 27
  not has_model_loaded 337
  not has_model_loaded 346
goto_if_false @DECON_2423
wait 0
goto @DECON_2377

:DECON_2423
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE1_SFSE {toModelId} #HUBHOLE2_SFSE
43@ = 0

:DECON_2458
if 
  6 > 43@
goto_if_false @DECON_2603
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_2505
delete_object $launchdoor_a51(43@,6i)

:DECON_2505
create_object #PORTAKABIN {x} $2676(43@,6f) {y} $2682(43@,6f) {z} $2688(43@,6f) {var_handle} $launchdoor_a51(43@,6i)
set_object_heading $launchdoor_a51(43@,6i) {heading} $2694(43@,6f)
set_object_dynamic $launchdoor_a51(43@,6i) {state} False
dont_remove_object $launchdoor_a51(43@,6i)
add_blip_for_object $launchdoor_a51(43@,6i) {var_handle} 117@(43@,6i)
43@ += 1
goto @DECON_2458

:DECON_2603
69@ = create_object_no_offset #PORTALOO {x} -2087.8611 {y} 178.2922 {z} 35.3947
set_object_heading 69@ {heading} 3.3302
70@ = create_object_no_offset #PORTALOO {x} -2114.9031 {y} 156.9329 {z} 35.4667
set_object_heading 70@ {heading} 271.6719
71@ = create_object_no_offset #PORTALOO {x} -2116.425 {y} 157.4618 {z} 35.7225
set_object_heading 71@ {heading} 269.1095
72@ = create_object_no_offset #PORTALOO {x} -2054.4741 {y} 222.6438 {z} 35.8767
set_object_heading 72@ {heading} 0.0
freeze_object_position 72@ {state} True
73@ = create_object_no_offset #PORTALOO {x} -2069.262 {y} 285.8519 {z} 35.8543
set_object_heading 73@ {heading} 51.0305
74@ = create_object_no_offset #PORTALOO {x} -2134.873 {y} 293.1065 {z} 35.4117
set_object_heading 74@ {heading} 175.9489
75@ = create_object_no_offset #BARREL4 {x} -2109.397 {y} 157.8976 {z} 34.4311
76@ = create_object_no_offset #BARREL4 {x} -2108.4929 {y} 157.8779 {z} 34.4523
77@ = create_object_no_offset #BARREL4 {x} -2091.6831 {y} 172.1051 {z} 34.443
78@ = create_object_no_offset #BARREL4 {x} -2128.95 {y} 303.401 {z} 33.888
79@ = create_object_no_offset #BARREL4 {x} -2129.9231 {y} 303.447 {z} 33.8842
43@ = 0

:DECON_2930
if 
  5 > 43@
goto_if_false @DECON_2973
make_object_targettable 75@(43@,5i) {state} True
43@ += 1
goto @DECON_2930

:DECON_2973
if 
  does_object_exist $sf_crane1_arm
goto_if_false @DECON_2999
set_rope_height_for_object $sf_crane1_arm {height} 0.3

:DECON_2999
if 
  does_object_exist $sf_crane1_base
goto_if_false @DECON_3120
set_object_heading $sf_crane1_base {heading} 78.0
if 
  does_object_exist $sf_crane1_base_LOD
goto_if_false @DECON_3051
set_object_heading $sf_crane1_base_LOD {heading} 78.0

:DECON_3051
if 
  does_object_exist $sf_crane1_arm
goto_if_false @DECON_3120
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_base {xOffset} 0.0 {yOffset} 15.0 {zOffset} 3.453
set_object_coordinates_and_velocity $sf_crane1_arm {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_arm {heading} 78.0

:DECON_3120
82@ = create_car 486 {x} -2098.7261 {y} 278.5271 {z} 34.8743
set_car_heading 82@ {heading} 15.4537
set_car_health 82@ {health} 5000
set_can_burst_car_tyres 82@ {state} False
83@ = create_car 486 {x} -2088.802 {y} 188.5362 {z} 34.0469
set_car_heading 83@ {heading} 182.8425
set_car_health 83@ {health} 5000
set_can_burst_car_tyres 83@ {state} False
request_car_recording 551

:DECON_3221
if 
  not has_car_recording_been_loaded 551
goto_if_false @DECON_3248
wait 0
goto @DECON_3221

:DECON_3248
if 
  not is_car_dead 82@
goto_if_false @DECON_3272
start_playback_recorded_car_looped 82@ {pathId} 551

:DECON_3272
84@ = create_car 524 {x} -2112.603 {y} 193.7894 {z} 33.6684
set_car_heading 84@ {heading} 276.2221
85@ = create_car 422 {x} -2102.4609 {y} 160.2542 {z} 34.8444
set_car_heading 85@ {heading} 66.4396
86@ = create_car 422 {x} -2121.6689 {y} 302.741 {z} 34.459
set_car_heading 86@ {heading} 160.6221
set_lvar_int_to_lvar_int 90@ = 82@
set_lvar_int_to_lvar_int 91@ = 83@
set_lvar_int_to_lvar_int 92@ = 84@
set_lvar_int_to_lvar_int 94@ = 85@
set_lvar_int_to_lvar_int 95@ = 86@
43@ = 0

:DECON_3418
if 
  6 > 43@
goto_if_false @DECON_3481
if 
  not is_car_dead 90@(43@,7i)
goto_if_false @DECON_3467
set_car_straight_line_distance 90@(43@,7i) {distance} 50

:DECON_3467
43@ += 1
goto @DECON_3418

:DECON_3481
173@ = load_char_decision_maker DecisionMakerType.Tough
97@ = create_char PedType.Mission1 {modelId} 27 {x} -2098.7581 {y} 168.5889 {z} 34.0869
98@ = create_char PedType.Mission1 {modelId} 27 {x} -2099.9741 {y} 169.3999 {z} 34.0947
99@ = create_char PedType.Mission1 {modelId} 27 {x} -2090.9551 {y} 265.4674 {z} 34.6686
100@ = create_char PedType.Mission1 {modelId} 27 {x} -2089.761 {y} 264.5739 {z} 34.6557
101@ = create_char PedType.Mission1 {modelId} 27 {x} -2085.7529 {y} 269.4974 {z} 34.5456
102@ = create_char PedType.Mission1 {modelId} 27 {x} -2125.748 {y} 303.8916 {z} 33.5532
set_char_heading 97@ {heading} 47.9799
set_char_heading 98@ {heading} 229.2811
set_char_heading 99@ {heading} 229.2811
set_char_heading 100@ {heading} 51.1609
set_char_heading 101@ {heading} 177.1601
set_char_heading 102@ {heading} 177.1601
give_weapon_to_char 101@ {weaponType} WeaponType.Shovel {ammo} 9999
give_weapon_to_char 102@ {weaponType} WeaponType.Shovel {ammo} 9999
43@ = 0

:DECON_3719
if 
  6 > 43@
goto_if_false @DECON_3801
set_char_decision_maker 97@(43@,6i) {handleOrTemplate} 173@
set_char_only_damaged_by_player 97@(43@,6i) {state} True
set_char_health 97@(43@,6i) {health} 50
set_lvar_int_to_lvar_int 103@(43@,10i) = 97@(43@,6i)
43@ += 1
goto @DECON_3719

:DECON_3801
task_chat_with_char 97@ {other} 98@ {leadSpeaker} True {_p4} 1
task_chat_with_char 98@ {other} 97@ {leadSpeaker} False {_p4} 1
task_chat_with_char 99@ {other} 100@ {leadSpeaker} True {_p4} 1
task_chat_with_char 100@ {other} 99@ {leadSpeaker} False {_p4} 1
if 
  not is_car_dead 82@
goto_if_false @DECON_3907
114@ = create_char_inside_car 82@ {pedType} PedType.Mission1 {modelId} 27
set_char_decision_maker 114@ {handleOrTemplate} 173@
set_char_only_damaged_by_player 114@ {state} True
set_char_health 114@ {health} 50
set_lvar_int_to_lvar_int 109@ = 114@

:DECON_3907
116@ = create_char PedType.Mission1 {modelId} 16 {x} -2089.709 {y} 266.1128 {z} 34.6455
set_char_heading 116@ {heading} 170.2217
set_char_health 116@ {health} 40
174@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 116@ {handleOrTemplate} 174@
set_lvar_int_to_lvar_int 110@ = 116@
clear_area -2036.1801 {y} 179.2597 {z} 27.8359 {radius} 5.0 {clearParticles} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_wanted_level $player1
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -2010.4611 {y} 171.3564 {z} 41.8495 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2011.302 {y} 171.8702 {z} 41.6786 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2030.9871 {y} 148.5787 {z} 27.8359
set_char_heading $scplayer {heading} 359.4339
50@ = -2011.302
50@ += 2010.4611
51@ = 171.8702
51@ -= 171.3564
52@ = 41.6786
52@ -= 41.8495
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2010.4611
add_float_lvar_to_float_var $x += 50@
$y = 171.3564
add_float_lvar_to_float_var $y += 51@
$z = 41.8495
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
do_fade 1000 {direction} Fade.In

:DECON_4302
if 
  get_fading_status 
goto_if_false @DECON_4326
wait 0
goto @DECON_4302

:DECON_4326
print_now 'GAR2_01' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_4356
if 
  35@ == 2
goto_if_false @DECON_4843
if 
  TIMERA > 5000
goto_if_false @DECON_4843
set_fixed_camera_position -2076.394 {y} 263.7876 {z} 35.7185 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2077.2871 {y} 264.2365 {z} 35.6941 {switchStyle} SwitchType.JumpCut
50@ = -2077.2871
50@ += 2076.394
51@ = 264.2365
51@ -= 263.7876
52@ = 35.6941
52@ -= 35.7185
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2076.394
add_float_lvar_to_float_var $x += 50@
$y = 263.7876
add_float_lvar_to_float_var $y += 51@
$z = 35.7185
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
if 
  not is_char_dead 101@
goto_if_false @DECON_4721
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@

:DECON_4721
if 
  not is_char_dead 116@
goto_if_false @DECON_4813
49@ = open_sequence_task 
task_scratch_head -1
task_look_about -1 {time} 5000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 116@ {sequence} 49@
clear_sequence_task 49@

:DECON_4813
print_now 'GAR2_02' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_4843
if 
  35@ == 3
goto_if_false @DECON_5240
if 
  TIMERA > 5500
goto_if_false @DECON_5240
do_fade 150 {direction} Fade.Out

:DECON_4887
if 
  get_fading_status 
goto_if_false @DECON_4911
wait 0
goto @DECON_4887

:DECON_4911
if 
  not is_char_dead 101@
goto_if_false @DECON_4957
set_char_coordinates 101@ {x} -2098.833 {y} 191.043 {z} 34.2113
set_char_heading 101@ {heading} 150.0

:DECON_4957
set_fixed_camera_position -2084.9929 {y} 195.2235 {z} 39.2186 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2085.4661 {y} 194.3752 {z} 38.9801 {switchStyle} SwitchType.JumpCut
50@ = -2085.4661
50@ += 2084.9929
51@ = 194.3752
51@ -= 195.2235
52@ = 38.9801
52@ -= 39.2186
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2084.9929
add_float_lvar_to_float_var $x += 50@
$y = 195.2235
add_float_lvar_to_float_var $y += 51@
$z = 39.2186
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
do_fade 150 {direction} Fade.In

:DECON_5186
if 
  get_fading_status 
goto_if_false @DECON_5210
wait 0
goto @DECON_5186

:DECON_5210
print 'GAR2_05' {time} 5000 {flag} 1
35@ += 1
TIMERA = 0

:DECON_5240
if 
  35@ == 4
goto_if_false @DECON_5284
if 
  TIMERA > 5000
goto_if_false @DECON_5284
35@ = 99

:DECON_5284
if 
  35@ > 0
goto_if_false @DECON_5326
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DECON_5326
35@ = 99

:DECON_5326
if 
  35@ == 99
goto_if_false @DECON_5643
if 
  not is_char_dead 101@
goto_if_false @DECON_5475
set_char_coordinates 101@ {x} -2092.252 {y} 252.5526 {z} 34.4575
clear_char_tasks 101@
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@

:DECON_5475
if 
  not is_char_dead 116@
goto_if_false @DECON_5567
49@ = open_sequence_task 
task_scratch_head -1
task_look_about -1 {time} 5000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 116@ {sequence} 49@
clear_sequence_task 49@

:DECON_5567
if 
  does_object_exist $launchdoor_a51[3]
goto_if_false @DECON_5613
set_object_coordinates $launchdoor_a51[3] {x} -2077.04 {y} 280.395 {z} 35.817
set_object_heading $launchdoor_a51[3] {heading} 0.0

:DECON_5613
clear_prints 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In
gosub @DECON_20830

:DECON_5643
return 

:DECON_5645
if 
  is_player_playing $player1
goto_if_false @DECON_5720
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2053.2261 {leftBottomY} 139.1389 {rightTopX} -2135.449 {rightTopY} 309.5472 {drawSphere} False
goto_if_false @DECON_5713
set_wanted_multiplier 0.0
goto @DECON_5720

:DECON_5713
set_wanted_multiplier 1.0

:DECON_5720
if 
  35@ == 0
goto_if_false @DECON_5843
if 
  TIMERA > 0
goto_if_false @DECON_5843
print_now 'GAR2_19' {time} 10000 {flag} 1
35@ += 1
TIMERB = 30000
62@ = 0
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32401

:DECON_5817
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_5843
wait 0
goto @DECON_5817

:DECON_5843
if 
  35@ == 1
goto_if_false @DECON_6165
if 
  TIMERB > 30000
goto_if_false @DECON_6133
if 
  does_object_exist 72@
goto_if_false @DECON_6133
if 
  is_char_touching_object $scplayer {object} 72@
goto_if_false @DECON_6133
if 
  $audio_line_is_active == 0
goto_if_false @DECON_6133
switch_start 62@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DECON_6094 {caseNum1} 0 {caseLabel1} @DECON_5996 {caseNum2} 1 {caseLabel2} @DECON_6045 {caseNum3} -1 {caseLabel3} @DECON_6094 {caseNum4} -1 {caseLabel4} @DECON_6094 {caseNum5} -1 {caseLabel5} @DECON_6094 {caseNum6} -1 {caseLabel6} @DECON_6094 {caseNum7} -1 {caseLabel7} @DECON_6094

:DECON_5996
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 42209
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6094

:DECON_6045
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 42205
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6094

:DECON_6094
62@ += 1
if 
  62@ > 1
goto_if_false @DECON_6126
62@ = 0

:DECON_6126
TIMERB = 0

:DECON_6133
if 
  139@ == 6
goto_if_false @DECON_6165
TIMERA = 0
35@ += 1

:DECON_6165
if 
  35@ == 2
goto_if_false @DECON_6209
if 
  TIMERA > 1000
goto_if_false @DECON_6209
35@ = 99

:DECON_6209
if and
  140@ == 1
  0 >= $7233
  6 > 139@
goto_if_false @DECON_6329
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DECON_6266
alter_wanted_level $player1 {wantedLevel} 2

:DECON_6266
create_emergency_services_car 597 {x} -2039.255 {y} 232.481 {z} 33.9528
create_emergency_services_car 597 {x} -2038.1851 {y} 254.2709 {z} 34.0893
37@ = 1
print_now 'GAR2_40' {time} 5000 {flag} 1

:DECON_6329
if 
  35@ == 99
goto_if_false @DECON_6363
clear_mission_audio MissionAudioSlot.Slot3
clear_onscreen_timer $7233
gosub @DECON_20830

:DECON_6363
43@ = 0

:DECON_6370
if 
  6 > 43@
goto_if_false @DECON_6668
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_6654
if 
  has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_6654
if 
  127@(43@,6i) == 0
goto_if_false @DECON_6654
remove_blip 117@(43@,6i)
139@ += 1
127@(43@,6i) = 1
if 
  139@ == 1
goto_if_false @DECON_6511
print_now 'GAR2_29' {time} 7000 {flag} 1

:DECON_6511
if 
  139@ == 2
goto_if_false @DECON_6545
print_now 'GAR2_30' {time} 7000 {flag} 1

:DECON_6545
if 
  139@ == 3
goto_if_false @DECON_6579
print_now 'GAR2_31' {time} 7000 {flag} 1

:DECON_6579
if 
  139@ == 4
goto_if_false @DECON_6613
print_now 'GAR2_32' {time} 7000 {flag} 1

:DECON_6613
if 
  139@ == 5
goto_if_false @DECON_6647
print_now 'GAR2_33' {time} 7000 {flag} 1

:DECON_6647
TIMERA = 0

:DECON_6654
43@ += 1
goto @DECON_6370

:DECON_6668
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @DECON_6773
43@ = 0

:DECON_6690
if 
  6 > 43@
goto_if_false @DECON_6773
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_6759
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_6759
break_object $launchdoor_a51(43@,6i) {intensity} 0

:DECON_6759
43@ += 1
goto @DECON_6690

:DECON_6773
return 

:DECON_6775
clear_help 
if 
  35@ == 0
goto_if_false @DECON_8054
clear_prints 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:DECON_6819
if 
  get_fading_status 
goto_if_false @DECON_6843
wait 0
goto @DECON_6819

:DECON_6843
switch_widescreen True
if 
  $player_is_in_crane <> 1
goto_if_false @DECON_6950
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2066.8391 {leftBottomY} 209.6444 {leftBottomZ} 28.403 {rightTopX} -2040.101 {rightTopY} 262.7024 {rightTopZ} 34.9146 {drawSphere} False
goto_if_false @DECON_6943
set_char_coordinates $scplayer {x} -2090.0439 {y} 209.4996 {z} 33.9509
set_char_heading $scplayer {heading} 250.813

:DECON_6943
goto @DECON_6957

:DECON_6950
$flag_car_lowrider_carmod = 1

:DECON_6957
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32405

:DECON_6964
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_6990
wait 0
goto @DECON_6964

:DECON_6990
clear_area -2054.4741 {y} 222.6438 {z} 35.8767 {radius} 3.0 {clearParticles} True
43@ = 0

:DECON_7021
if 
  10 > 43@
goto_if_false @DECON_7170
if 
  does_char_exist 103@(43@,10i)
goto_if_false @DECON_7156
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_7147
if 
  locate_char_any_means_3d 103@(43@,10i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DECON_7140
delete_char 103@(43@,10i)

:DECON_7140
goto @DECON_7156

:DECON_7147
delete_char 103@(43@,10i)

:DECON_7156
43@ += 1
goto @DECON_7021

:DECON_7170
43@ = 0

:DECON_7177
if 
  7 > 43@
goto_if_false @DECON_7331
if 
  does_vehicle_exist 90@(43@,7i)
goto_if_false @DECON_7317
if 
  not is_car_dead 90@(43@,7i)
goto_if_false @DECON_7308
if 
  locate_car_3d 90@(43@,7i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} 90@(43@,7i)
goto_if_false @DECON_7301
delete_car 90@(43@,7i)

:DECON_7301
goto @DECON_7317

:DECON_7308
delete_car 90@(43@,7i)

:DECON_7317
43@ += 1
goto @DECON_7177

:DECON_7331
43@ = 0

:DECON_7338
if 
  6 > 43@
goto_if_false @DECON_7456
if 
  does_object_exist 69@(43@,6i)
goto_if_false @DECON_7442
if 
  locate_object_3d 69@(43@,6i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} 69@(43@,6i)
goto_if_false @DECON_7442
delete_object 69@(43@,6i)

:DECON_7442
43@ += 1
goto @DECON_7338

:DECON_7456
43@ = 0

:DECON_7463
if 
  5 > 43@
goto_if_false @DECON_7581
if 
  does_object_exist 75@(43@,5i)
goto_if_false @DECON_7567
if 
  locate_object_3d 75@(43@,5i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} 75@(43@,5i)
goto_if_false @DECON_7567
delete_object 75@(43@,5i)

:DECON_7567
43@ += 1
goto @DECON_7463

:DECON_7581
if 
  does_object_exist $sf_crane1_arm
goto_if_false @DECON_7607
set_rope_height_for_object $sf_crane1_arm {height} 0.5

:DECON_7607
if 
  does_object_exist 72@
goto_if_false @DECON_7628
delete_object 72@

:DECON_7628
72@ = create_object_no_offset #PORTALOO {x} -2054.4741 {y} 222.6438 {z} 35.8767
set_object_heading 72@ {heading} 0.0
set_object_collision 72@ {state} False
set_fixed_camera_position -2058.05 {y} 218.8743 {z} 35.7489 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2057.4231 {y} 219.653 {z} 35.7245 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $launchdoor_a51[2]
goto_if_false @DECON_7740
delete_object $launchdoor_a51[2]

:DECON_7740
$launchdoor_a51[2] = create_object #PORTAKABIN {x} $2676[2] {y} $2682[2] {z} $2688[2]
set_object_heading $launchdoor_a51[2] {heading} $2694[2]
set_object_dynamic $launchdoor_a51[2] {state} False
dont_remove_object $launchdoor_a51[2]
113@ = create_char PedType.CivMale {modelId} 16 {x} -2054.4741 {y} 222.6438 {z} 34.8767
set_char_heading 113@ {heading} 90.0
88@ = create_car 524 {x} -2037.176 {y} 269.7917 {z} 34.9191
set_car_heading 88@ {heading} 179.5245
set_lvar_int_to_lvar_int 96@ = 88@
43@ = 0

:DECON_7858
if 
  10 > 43@
goto_if_false @DECON_8016
if 
  does_char_exist 103@(43@,10i)
goto_if_false @DECON_8002
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_8002
if 
  not is_char_in_any_car 103@(43@,10i)
goto_if_false @DECON_7976
freeze_char_position 103@(43@,10i) {state} True
set_char_collision 103@(43@,10i) {state} False
set_char_visible 103@(43@,10i) {state} False
goto @DECON_8002

:DECON_7976
$car = store_car_char_is_in_no_save 103@(43@,10i)
freeze_car_position $car {state} True
set_car_visible $car {state} False

:DECON_8002
43@ += 1
goto @DECON_7858

:DECON_8016
do_fade 500 {direction} Fade.In

:DECON_8023
if 
  get_fading_status 
goto_if_false @DECON_8047
wait 0
goto @DECON_8023

:DECON_8047
35@ += 1

:DECON_8054
if 
  35@ > 0
goto_if_false @DECON_8096
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DECON_8096
35@ = 99

:DECON_8096
if 
  35@ == 1
goto_if_false @DECON_8155
if 
  does_object_exist 72@
goto_if_false @DECON_8141
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 72@
play_mission_audio MissionAudioSlot.Slot3

:DECON_8141
TIMERA = 0
35@ += 1

:DECON_8155
if 
  35@ == 2
goto_if_false @DECON_8222
if 
  TIMERA > 3000
goto_if_false @DECON_8222
if 
  does_object_exist $launchdoor_a51[2]
goto_if_false @DECON_8222
break_object $launchdoor_a51[2] {intensity} 0
35@ += 1

:DECON_8222
if 
  35@ == 3
goto_if_false @DECON_8455
if 
  TIMERA > 4000
goto_if_false @DECON_8455
if 
  not is_char_dead 113@
goto_if_false @DECON_8455
set_fixed_camera_position -2051.7209 {y} 225.4406 {z} 36.5865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.561 {y} 224.9327 {z} 36.3922 {switchStyle} SwitchType.JumpCut
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2057.137 {y} 223.541 {z} 34.582 {speed} MoveState.Walk {time} 5000
if 
  does_object_exist $launchdoor_a51[2]
goto_if_false @DECON_8380
task_look_at_object -1 {object} $launchdoor_a51[2] {time} 100

:DECON_8380
close_sequence_task 49@
perform_sequence_task 113@ {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'GAR2_AA'
set_var_int_to_constant $audio_sound_file = 42200
start_new_script @AUDIOL 113@ 0 1 1 0 
35@ += 1
TIMERA = 0

:DECON_8455
if 
  35@ == 4
goto_if_false @DECON_8506
if and
  TIMERA > 3000
  $audio_line_is_active == 0
goto_if_false @DECON_8506
35@ += 1

:DECON_8506
if 
  35@ == 5
goto_if_false @DECON_8687
if 
  not is_char_dead 113@
goto_if_false @DECON_8687
43@ = get_script_task_status 113@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_8687
set_char_coordinates 113@ {x} -2057.137 {y} 223.541 {z} 34.582
set_char_heading 113@ {heading} 97.4598
set_fixed_camera_position -2056.0559 {y} 222.2135 {z} 36.2036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2056.939 {y} 222.6817 {z} 36.1606 {switchStyle} SwitchType.JumpCut
task_look_at_coord 113@ {x} -2069.0 {y} 229.0 {z} 36.0 {time} 2000
TIMERA = 0
35@ += 1

:DECON_8687
if 
  35@ == 6
goto_if_false @DECON_8789
if 
  TIMERA > 2000
goto_if_false @DECON_8789
TIMERA = 0
set_fixed_camera_position -2051.7209 {y} 225.4406 {z} 36.5865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.561 {y} 224.9327 {z} 36.3922 {switchStyle} SwitchType.JumpCut
35@ += 1

:DECON_8789
if 
  35@ == 7
goto_if_false @DECON_8905
if 
  not is_char_dead 113@
goto_if_false @DECON_8905
set_var_text_label s$audio_string = 'GAR2_AB'
set_var_int_to_constant $audio_sound_file = 42201
start_new_script @AUDIOL 113@ 0 1 1 0 
task_go_straight_to_coord 113@ {x} -2054.4741 {y} 222.6438 {z} 35.8767 {speed} MoveState.Run {time} 5000
TIMERA = 0
35@ += 1

:DECON_8905
if 
  35@ == 8
goto_if_false @DECON_8949
if 
  TIMERA > 1500
goto_if_false @DECON_8949
35@ += 1

:DECON_8949
if 
  35@ == 9
goto_if_false @DECON_9031
if 
  not is_char_dead 113@
goto_if_false @DECON_9031
43@ = get_script_task_status 113@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_9031
delete_char 113@
TIMERA = 0
35@ += 1

:DECON_9031
if 
  35@ == 10
goto_if_false @DECON_9144
if 
  TIMERA > 2000
goto_if_false @DECON_9144
clear_prints 
set_fixed_camera_position -2037.439 {y} 244.0506 {z} 43.8289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2038.147 {y} 244.4092 {z} 43.2209 {switchStyle} SwitchType.JumpCut
print 'GAR2_11' {time} 5000 {flag} 1
35@ += 1

:DECON_9144
if 
  35@ == 11
goto_if_false @DECON_9188
if 
  TIMERA > 5000
goto_if_false @DECON_9188
35@ += 1

:DECON_9188
if 
  35@ == 12
goto_if_false @DECON_9289
clear_prints 
set_fixed_camera_position -2031.781 {y} 262.1947 {z} 36.3181 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2032.476 {y} 262.9132 {z} 36.3398 {switchStyle} SwitchType.JumpCut
print 'GAR2_12' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_9289
if 
  35@ == 13
goto_if_false @DECON_9333
if 
  TIMERA > 5000
goto_if_false @DECON_9333
35@ = 99

:DECON_9333
if 
  35@ == 99
goto_if_false @DECON_9682
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  does_object_exist 72@
goto_if_false @DECON_9390
set_object_collision 72@ {state} True

:DECON_9390
clear_prints 
if 
  $player_is_in_crane == 0
goto_if_false @DECON_9424
set_player_control $player1 {state} True
goto @DECON_9431

:DECON_9424
$flag_car_lowrider_carmod = 0

:DECON_9431
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
if 
  does_object_exist $launchdoor_a51[2]
goto_if_false @DECON_9460
delete_object $launchdoor_a51[2]

:DECON_9460
if 
  does_char_exist 113@
goto_if_false @DECON_9481
delete_char 113@

:DECON_9481
43@ = 0

:DECON_9488
if 
  10 > 43@
goto_if_false @DECON_9646
if 
  does_char_exist 103@(43@,10i)
goto_if_false @DECON_9632
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_9632
if 
  not is_char_in_any_car 103@(43@,10i)
goto_if_false @DECON_9606
freeze_char_position 103@(43@,10i) {state} False
set_char_collision 103@(43@,10i) {state} True
set_char_visible 103@(43@,10i) {state} True
goto @DECON_9632

:DECON_9606
$car = store_car_char_is_in_no_save 103@(43@,10i)
freeze_car_position $car {state} False
set_car_visible $car {state} True

:DECON_9632
43@ += 1
goto @DECON_9488

:DECON_9646
if 
  $player_is_in_crane == 1
goto_if_false @DECON_9671
$reset_crane_camera = 1

:DECON_9671
clear_mission_audio MissionAudioSlot.Slot3
gosub @DECON_20830

:DECON_9682
return 

:DECON_9684
if 
  is_player_playing $player1
goto_if_false @DECON_9759
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2053.2261 {leftBottomY} 139.1389 {rightTopX} -2135.449 {rightTopY} 309.5472 {drawSphere} False
goto_if_false @DECON_9752
set_wanted_multiplier 0.0
goto @DECON_9759

:DECON_9752
set_wanted_multiplier 1.0

:DECON_9759
if 
  35@ == 0
goto_if_false @DECON_9903
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  does_object_exist 72@
goto_if_false @DECON_9824
124@ = add_blip_for_object 72@
change_blip_colour 124@ {color} BlipColor.Red

:DECON_9824
123@ = add_blip_for_coord -2048.644 {y} 250.1341 {z} 35.54
print 'GAR2_10' {time} 7000 {flag} 1
TIMERA = 0
62@ = 0
64@ = 4000
172@ = 0
167@ = -1
35@ += 1

:DECON_9903
if 
  35@ == 1
goto_if_false @DECON_10854
if 
  64@ > 5000
goto_if_false @DECON_10523
if 
  not is_message_being_displayed 
goto_if_false @DECON_10523
if 
  does_object_exist 72@
goto_if_false @DECON_10523
46@ = get_object_speed 72@
if or
  46@ > 2.0
  is_char_touching_object $scplayer {object} 72@
goto_if_false @DECON_10523
if 
  $audio_line_is_active == 0
goto_if_false @DECON_10523
switch_start 62@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @DECON_10462 {caseNum1} 0 {caseLabel1} @DECON_10152 {caseNum2} 1 {caseLabel2} @DECON_10183 {caseNum3} 2 {caseLabel3} @DECON_10214 {caseNum4} 3 {caseLabel4} @DECON_10245 {caseNum5} 4 {caseLabel5} @DECON_10276 {caseNum6} 5 {caseLabel6} @DECON_10307 {caseNum7} 6 {caseLabel7} @DECON_10338
switch_continued 7 {caseLabel1} @DECON_10369 {caseNum2} 8 {caseLabel2} @DECON_10400 {caseNum3} 9 {caseLabel3} @DECON_10431 {caseNum4} -1 {caseLabel4} @DECON_10462 {caseNum5} -1 {caseLabel5} @DECON_10462 {caseNum6} -1 {caseLabel6} @DECON_10462 {caseNum7} -1 {caseLabel7} @DECON_10462 {caseNum8} -1 {caseLabel8} @DECON_10462 {caseNum9} -1 {caseLabel9} @DECON_10462

:DECON_10152
set_var_text_label s$audio_string = 'GAR2_AC'
set_var_int_to_constant $audio_sound_file = 42202
goto @DECON_10462

:DECON_10183
set_var_text_label s$audio_string = 'GAR2_AD'
set_var_int_to_constant $audio_sound_file = 42203
goto @DECON_10462

:DECON_10214
set_var_text_label s$audio_string = 'GAR2_AE'
set_var_int_to_constant $audio_sound_file = 42204
goto @DECON_10462

:DECON_10245
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 42205
goto @DECON_10462

:DECON_10276
set_var_text_label s$audio_string = 'GAR2_AG'
set_var_int_to_constant $audio_sound_file = 42206
goto @DECON_10462

:DECON_10307
set_var_text_label s$audio_string = 'GAR2_AH'
set_var_int_to_constant $audio_sound_file = 42207
goto @DECON_10462

:DECON_10338
set_var_text_label s$audio_string = 'GAR2_AJ'
set_var_int_to_constant $audio_sound_file = 42208
goto @DECON_10462

:DECON_10369
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 42209
goto @DECON_10462

:DECON_10400
set_var_text_label s$audio_string = 'GAR2_AL'
set_var_int_to_constant $audio_sound_file = 42210
goto @DECON_10462

:DECON_10431
set_var_text_label s$audio_string = 'GAR2_AM'
set_var_int_to_constant $audio_sound_file = 42211
goto @DECON_10462

:DECON_10462
start_new_script @AUDIOL -1 0 0 1 0 
62@ += 1
if 
  62@ > 7
goto_if_false @DECON_10512
62@ = 0

:DECON_10512
64@ = 0
wait 1

:DECON_10523
if and
  172@ > 150000
  151000 > 172@
goto_if_false @DECON_10589
clear_prints 
print_now 'GAR2_34' {time} 7000 {flag} 1
172@ = 151001
64@ = 0

:DECON_10589
if 
  172@ > 200000
goto_if_false @DECON_10698
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DECON_10635
alter_wanted_level $player1 {wantedLevel} 2

:DECON_10635
create_emergency_services_car 597 {x} -2039.255 {y} 232.481 {z} 33.9528
create_emergency_services_car 597 {x} -2038.1851 {y} 254.2709 {z} 34.0893
37@ = 1
print_now 'GAR2_35' {time} 5000 {flag} 1

:DECON_10698
if 
  does_object_exist 72@
goto_if_false @DECON_10847
if 
  locate_object_3d 72@ {x} -2048.886 {y} 250.6607 {z} 32.5177 {xRadius} 2.898 {yRadius} 5.05 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_10847
if and
  not is_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @DECON_10847
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GAR2_36' {time} 7000 {flag} 1
remove_blip 123@
remove_blip 124@
35@ += 1
TIMERA = 0
TIMERB = 0

:DECON_10847
gosub @DECON_11807

:DECON_10854
if and
  35@ > 1
  4 > 35@
goto_if_false @DECON_11131
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_11092
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_model $car {modelId} 524
goto_if_false @DECON_11053
if 
  167@ <> 1
goto_if_false @DECON_11046
print_now 'GAR2_37' {time} 7000 {flag} 1
if 
  does_blip_exist 125@
goto_if_false @DECON_10977
remove_blip 125@

:DECON_10977
if 
  does_blip_exist 126@
goto_if_false @DECON_10998
remove_blip 126@

:DECON_10998
if 
  does_blip_exist 123@
goto_if_false @DECON_11019
remove_blip 123@

:DECON_11019
123@ = add_blip_for_coord -2049.707 {y} 240.5694 {z} 34.762
167@ = 1

:DECON_11046
goto @DECON_11085

:DECON_11053
if 
  167@ <> 0
goto_if_false @DECON_11085
gosub @DECON_11658
167@ = 0

:DECON_11085
goto @DECON_11124

:DECON_11092
if 
  167@ <> 0
goto_if_false @DECON_11124
gosub @DECON_11658
167@ = 0

:DECON_11124
gosub @DECON_11807

:DECON_11131
if 
  35@ == 2
goto_if_false @DECON_11277
TIMERA = 0
TIMERB = 0
35@ += 1
if 
  164@ == 0
goto_if_false @DECON_11277
if 
  does_object_exist 72@
goto_if_false @DECON_11277
if 
  not is_object_on_screen 72@
goto_if_false @DECON_11277
set_object_coordinates 72@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 72@ {heading} 158.56
set_object_rotation 72@ {x} -170.1394 {y} -88.8094 {z} -21.44
164@ = 1

:DECON_11277
if 
  35@ == 3
goto_if_false @DECON_11631
if 
  164@ == 0
goto_if_false @DECON_11402
if 
  does_object_exist 72@
goto_if_false @DECON_11402
if 
  not is_object_on_screen 72@
goto_if_false @DECON_11402
set_object_coordinates 72@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 72@ {heading} 158.56
set_object_rotation 72@ {x} -170.1394 {y} -88.8094 {z} -21.44
164@ = 1

:DECON_11402
if 
  locate_char_any_means_3d $scplayer {x} -2049.707 {y} 240.5694 {z} 34.762 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @DECON_11631
if 
  is_char_in_model $scplayer {modelId} 524
goto_if_false @DECON_11582
if 
  is_car_stopped 89@
goto_if_false @DECON_11575
if 
  not is_car_dead 89@
goto_if_false @DECON_11575
$heading = get_car_heading 89@
if and
  190.0 > $heading
  $heading > 170.0
goto_if_false @DECON_11559
remove_blip 123@
35@ = 99
goto @DECON_11575

:DECON_11559
print_now 'GAR2_14' {time} 1000 {flag} 1

:DECON_11575
goto @DECON_11624

:DECON_11582
if 
  TIMERA > 30000
goto_if_false @DECON_11624
print_now 'GAR2_20' {time} 7000 {flag} 1
TIMERA = 0

:DECON_11624
goto @DECON_11631

:DECON_11631
if 
  35@ == 99
goto_if_false @DECON_11656
gosub @DECON_20830

:DECON_11656
return 

:DECON_11658
if 
  does_blip_exist 123@
goto_if_false @DECON_11679
remove_blip 123@

:DECON_11679
if 
  not is_car_dead 84@
goto_if_false @DECON_11742
if 
  not does_blip_exist 125@
goto_if_false @DECON_11742
125@ = add_blip_for_car 84@
set_blip_as_friendly 125@ {state} True
print_now 'GAR2_36' {time} 7000 {flag} 1

:DECON_11742
if 
  not is_car_dead 88@
goto_if_false @DECON_11805
if 
  not does_blip_exist 126@
goto_if_false @DECON_11805
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'GAR2_36' {time} 7000 {flag} 1

:DECON_11805
return 

:DECON_11807
if 
  does_vehicle_exist 84@
goto_if_false @DECON_11937
if 
  not is_car_dead 84@
goto_if_false @DECON_11920
if 
  locate_car_3d 84@ {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_11913
if 
  not is_car_on_screen 84@
goto_if_false @DECON_11913
delete_car 84@
remove_blip 125@

:DECON_11913
goto @DECON_11930

:DECON_11920
mark_car_as_no_longer_needed 84@
remove_blip 125@

:DECON_11930
goto @DECON_12082

:DECON_11937
if 
  not is_point_on_screen -2112.603 {y} 193.7894 {z} 33.6684 {radius} 5.0
goto_if_false @DECON_12082
if 
  not is_point_obscured_by_a_mission_entity -2112.603 {y} 193.7894 {z} 33.6684 {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 3.0
goto_if_false @DECON_12082
84@ = create_car 524 {x} -2112.603 {y} 193.7894 {z} 33.6684
set_car_heading 84@ {heading} 276.2221
if 
  does_blip_exist 125@
goto_if_false @DECON_12067
remove_blip 125@

:DECON_12067
125@ = add_blip_for_car 84@
set_blip_as_friendly 125@ {state} True

:DECON_12082
if 
  does_vehicle_exist 88@
goto_if_false @DECON_12212
if 
  not is_car_dead 88@
goto_if_false @DECON_12195
if 
  locate_car_3d 88@ {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_12188
if 
  not is_car_on_screen 88@
goto_if_false @DECON_12188
delete_car 88@
remove_blip 126@

:DECON_12188
goto @DECON_12205

:DECON_12195
mark_car_as_no_longer_needed 88@
remove_blip 126@

:DECON_12205
goto @DECON_12357

:DECON_12212
if 
  not is_point_on_screen -2037.176 {y} 269.7917 {z} 34.9191 {radius} 5.0
goto_if_false @DECON_12357
if 
  not is_point_obscured_by_a_mission_entity -2037.176 {y} 269.7917 {z} 34.9191 {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 3.0
goto_if_false @DECON_12357
88@ = create_car 524 {x} -2037.176 {y} 269.7917 {z} 34.9191
set_car_heading 88@ {heading} 179.5245
if 
  does_blip_exist 126@
goto_if_false @DECON_12342
remove_blip 126@

:DECON_12342
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True

:DECON_12357
return 

:DECON_12359
if 
  35@ == 0
goto_if_false @DECON_13168
clear_prints 
set_player_control $player1 {state} False
do_fade 250 {direction} Fade.Out

:DECON_12393
if 
  get_fading_status 
goto_if_false @DECON_12417
wait 0
goto @DECON_12393

:DECON_12417
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32400

:DECON_12424
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_12450
wait 0
goto @DECON_12424

:DECON_12450
if 
  does_object_exist 72@
goto_if_false @DECON_12532
if 
  not is_object_on_screen 72@
goto_if_false @DECON_12532
set_object_coordinates 72@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 72@ {heading} 158.56
set_object_rotation 72@ {x} -170.1394 {y} -88.8094 {z} -21.44

:DECON_12532
switch_widescreen True
set_fixed_camera_position -2046.33 {y} 255.5639 {z} 35.1158 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2046.688 {y} 254.6398 {z} 34.9808 {switchStyle} SwitchType.JumpCut
43@ = 0

:DECON_12594
if 
  10 > 43@
goto_if_false @DECON_12666
if 
  does_char_exist 103@(43@,10i)
goto_if_false @DECON_12652
delete_char 103@(43@,10i)
103@(43@,10i) = 0

:DECON_12652
43@ += 1
goto @DECON_12594

:DECON_12666
set_char_coordinates $scplayer {x} -2049.7339 {y} 241.7195 {z} 70.7037
set_char_heading $scplayer {heading} 176.835
43@ = 0

:DECON_12703
if 
  7 > 43@
goto_if_false @DECON_12816
if 
  not is_car_dead 90@(43@,7i)
goto_if_false @DECON_12802
if 
  locate_car_3d 90@(43@,7i) {x} -2049.7339 {y} 241.7195 {z} 34.7037 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DECON_12802
delete_car 90@(43@,7i)

:DECON_12802
43@ += 1
goto @DECON_12703

:DECON_12816
43@ = 0

:DECON_12823
if 
  7 > 43@
goto_if_false @DECON_12952
if 
  not is_car_dead 90@(43@,7i)
goto_if_false @DECON_12929
if 
  locate_car_3d 90@(43@,7i) {x} -2048.886 {y} 250.6607 {z} 32.5177 {xRadius} 2.898 {yRadius} 5.05 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_12922
delete_car 90@(43@,7i)

:DECON_12922
goto @DECON_12938

:DECON_12929
delete_car 90@(43@,7i)

:DECON_12938
43@ += 1
goto @DECON_12823

:DECON_12952
clear_area -2049.7339 {y} 241.7195 {z} 34.7037 {radius} 10.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2049.7339 {y} 241.7195 {z} 34.7037
set_char_heading $scplayer {heading} 176.835
if 
  not is_car_dead 89@
goto_if_false @DECON_13118
set_vehicle_quaternion 89@ {x} -0.0448 {y} 0.0178 {z} 1.003 {w} -0.0611
80@ = create_object_no_offset #HUBHOLE3_SFSE {x} -2049.1709 {y} 250.3193 {z} 30.8784
178@ = create_fx_system_on_car_with_direction "CEMENT" {vehicle} 89@ {xOffset} 0.0 {yOffset} -4.4 {zOffset} 0.0 {xDirection} 0.0 {yDirection} -1.0 {zDirection} 0.0 {ignoreBoundingChecks} True

:DECON_13118
wait 500
do_fade 250 {direction} Fade.In

:DECON_13130
if 
  get_fading_status 
goto_if_false @DECON_13154
wait 0
goto @DECON_13130

:DECON_13154
TIMERA = 0
35@ += 1

:DECON_13168
if 
  35@ == 1
goto_if_false @DECON_13269
46@ = 0.0

:DECON_13196
if 
  1.0 > 46@
goto_if_false @DECON_13262
wait 0
if 
  not is_car_dead 89@
goto_if_false @DECON_13245
control_movable_vehicle_part 89@ {range} 46@

:DECON_13245
add_timed_val_to_float_lvar 46@ +=@ 0.01
goto @DECON_13196

:DECON_13262
35@ += 1

:DECON_13269
if 
  35@ == 2
goto_if_false @DECON_13387
if 
  TIMERA > 2000
goto_if_false @DECON_13387
play_fx_system 178@
if 
  not is_car_dead 89@
goto_if_false @DECON_13373
$x, $y, $z = get_offset_from_car_in_world_coords 89@ {xOffset} 0.0 {yOffset} -4.4 {zOffset} 0.0
set_mission_audio_position MissionAudioSlot.Slot3 {x} $x {y} $y {z} $z
play_mission_audio MissionAudioSlot.Slot3

:DECON_13373
TIMERA = 0
35@ += 1

:DECON_13387
if 
  35@ == 3
goto_if_false @DECON_13431
if 
  TIMERA > 1000
goto_if_false @DECON_13431
35@ += 1

:DECON_13431
if 
  35@ == 4
goto_if_false @DECON_13520
if 
  slide_object 80@ {posX} -2049.1709 {posY} 250.3193 {posZ} 34.177 {speedX} 0.01 {speedY} 0.01 {speedZ} 0.009 {collisionCheck} False
goto_if_false @DECON_13520
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
stop_fx_system 178@
35@ += 1

:DECON_13520
if 
  35@ == 5
goto_if_false @DECON_13564
if 
  TIMERA > 2000
goto_if_false @DECON_13564
35@ = 99

:DECON_13564
if 
  35@ == 99
goto_if_false @DECON_13624
if 
  not is_car_dead 89@
goto_if_false @DECON_13598

:DECON_13598
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_mission_audio MissionAudioSlot.Slot3
36@ = 1

:DECON_13624
return 

:DECON_13626
if and
  39@ == 1
  140@ == 0
goto_if_false @DECON_14223
43@ = 0

:DECON_13658
if 
  6 > 43@
goto_if_false @DECON_13749
if 
  does_char_exist 97@(43@,6i)
goto_if_false @DECON_13735
if or
  has_char_been_damaged_by_char 97@(43@,6i) {handle} $scplayer
  is_char_dead 97@(43@,6i)
goto_if_false @DECON_13735
140@ = 1

:DECON_13735
43@ += 1
goto @DECON_13658

:DECON_13749
if 
  does_char_exist 116@
goto_if_false @DECON_13796
if or
  has_char_been_damaged_by_char 116@ {handle} $scplayer
  is_char_dead 116@
goto_if_false @DECON_13796
140@ = 1

:DECON_13796
if 
  does_char_exist 114@
goto_if_false @DECON_13843
if or
  has_char_been_damaged_by_char 114@ {handle} $scplayer
  is_char_dead 114@
goto_if_false @DECON_13843
140@ = 1

:DECON_13843
43@ = 0

:DECON_13850
if 
  6 > 43@
goto_if_false @DECON_13940
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_13926
44@ = get_object_health $launchdoor_a51(43@,6i)
if 
  900 > 44@
goto_if_false @DECON_13926
140@ = 1

:DECON_13926
43@ += 1
goto @DECON_13850

:DECON_13940
43@ = 0

:DECON_13947
if 
  7 > 43@
goto_if_false @DECON_14079
if 
  does_vehicle_exist 90@(43@,7i)
goto_if_false @DECON_14065
if 
  not is_car_dead 90@(43@,7i)
goto_if_false @DECON_14065
if 
  is_char_in_car $scplayer {vehicle} 90@(43@,7i)
goto_if_false @DECON_14035
140@ = 1

:DECON_14035
if 
  has_car_been_damaged_by_char 90@(43@,7i) {handle} $scplayer
goto_if_false @DECON_14065
140@ = 1

:DECON_14065
43@ += 1
goto @DECON_13947

:DECON_14079
if 
  140@ == 1
goto_if_false @DECON_14165
43@ = 0

:DECON_14104
if 
  10 > 43@
goto_if_false @DECON_14165
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_14151
clear_char_tasks 103@(43@,10i)

:DECON_14151
43@ += 1
goto @DECON_14104

:DECON_14165
if 
  140@ == 1
goto_if_false @DECON_14216
$7233 = 180000
display_onscreen_timer $7233 {direction} TimerDirection.Down
print 'GAR2_41' {time} 7000 {flag} 1

:DECON_14216
goto @DECON_14317

:DECON_14223
if 
  168@ == 0
goto_if_false @DECON_14317
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @DECON_14317
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_14317
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_model $car {modelId} 486
goto_if_false @DECON_14317
print_help 'GAR2_42'
168@ += 1

:DECON_14317
if and
  166@ == 0
  2 >= 34@
goto_if_false @DECON_14399
if and
  is_car_dead 82@
  is_car_dead 83@
goto_if_false @DECON_14399
if 
  not is_message_being_displayed 
goto_if_false @DECON_14399
print_now 'GAR2_39' {time} 7000 {flag} 1
166@ += 1

:DECON_14399
if 
  140@ == 1
goto_if_false @DECON_16020
if 
  not is_char_dead 116@
goto_if_false @DECON_14531
43@ = get_script_task_status 116@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_14531
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 20.0
task_smart_flee_char -1 {threat} $scplayer {radius} 300.0 {time} 60000
close_sequence_task 49@
perform_sequence_task 116@ {sequence} 49@
clear_sequence_task 49@
mark_char_as_no_longer_needed 116@
110@ = 0

:DECON_14531
175@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14576
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 5.0
goto @DECON_14593

:DECON_14576
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 15.0

:DECON_14593
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14651
task_play_anim -1 {animationName} "FIGHTIDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @DECON_14651

:DECON_14651
close_sequence_task 175@
176@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14701
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 7.5
goto @DECON_14718

:DECON_14701
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 10.0

:DECON_14718
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14776
task_play_anim -1 {animationName} "FIGHTIDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @DECON_14776

:DECON_14776
close_sequence_task 176@
177@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14826
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 10.0
goto @DECON_14843

:DECON_14826
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 20.0

:DECON_14843
task_flee_char -1 {threat} $scplayer {radius} 20.0 {time} 3000
close_sequence_task 177@
43@ = 0

:DECON_14870
if 
  2 > 43@
goto_if_false @DECON_14927
179@(43@,2i) = -1
181@(43@,2f) = 9999.0
43@ += 1
goto @DECON_14870

:DECON_14927
43@ = 0

:DECON_14934
if 
  10 > 43@
goto_if_false @DECON_15178
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_15164
$x, $y, $z = get_char_coordinates 103@(43@,10i)
56@, 57@, 58@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  is_float_lvar_greater_than_float_var 181@ > $distance
goto_if_false @DECON_15079
set_lvar_float_to_lvar_float 182@ = 181@
set_lvar_float_to_var_float 181@ = $distance
set_lvar_int_to_lvar_int 180@ = 179@
set_lvar_int_to_lvar_int 179@ = 43@
goto @DECON_15114

:DECON_15079
if 
  is_float_lvar_greater_than_float_var 182@ > $distance
goto_if_false @DECON_15114
set_lvar_float_to_var_float 182@ = $distance
set_lvar_int_to_lvar_int 180@ = 43@

:DECON_15114
if and
  $distance > 500.0
  not is_char_on_screen 103@(43@,10i)
goto_if_false @DECON_15164
delete_char 103@(43@,10i)
103@(43@,10i) = 0

:DECON_15164
43@ += 1
goto @DECON_14934

:DECON_15178
43@ = 0

:DECON_15185
if 
  10 > 43@
goto_if_false @DECON_16005
if 
  not is_char_dead 103@(43@,10i)
goto_if_false @DECON_15991
if 
  not is_char_in_any_car 103@(43@,10i)
goto_if_false @DECON_15725
if 
  is_current_char_weapon 103@(43@,10i) {weaponType} WeaponType.Pistol
goto_if_false @DECON_15326
44@ = get_script_task_status 103@(43@,10i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15319
clear_char_tasks 103@(43@,10i)
task_kill_char_on_foot 103@(43@,10i) {target} $scplayer

:DECON_15319
goto @DECON_15718

:DECON_15326
if or
  is_int_lvar_equal_to_int_lvar 43@ == 179@
  is_int_lvar_equal_to_int_lvar 43@ == 180@
goto_if_false @DECON_15414
44@ = get_script_task_status 103@(43@,10i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15407
clear_char_tasks 103@(43@,10i)
task_kill_char_on_foot 103@(43@,10i) {target} $scplayer

:DECON_15407
goto @DECON_15718

:DECON_15414
44@ = get_script_task_status 103@(43@,10i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15576
44@ = generate_random_int_in_range 0 {max} 9
if 
  4 > 44@
goto_if_false @DECON_15502
clear_char_tasks 103@(43@,10i)
perform_sequence_task 103@(43@,10i) {sequence} 175@
goto @DECON_15569

:DECON_15502
if 
  8 > 44@
goto_if_false @DECON_15548
clear_char_tasks 103@(43@,10i)
perform_sequence_task 103@(43@,10i) {sequence} 176@
goto @DECON_15569

:DECON_15548
clear_char_tasks 103@(43@,10i)
perform_sequence_task 103@(43@,10i) {sequence} 177@

:DECON_15569
goto @DECON_15718

:DECON_15576
if or
  is_char_playing_anim 103@(43@,10i) {animationName} "PANIC_POINT"
  is_char_playing_anim 103@(43@,10i) {animationName} "PANIC_SHOUT"
goto_if_false @DECON_15718
$x, $y, $z = get_char_coordinates 103@(43@,10i)
56@, 57@, 58@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 50@ = 56@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 57@
sub_float_var_from_float_lvar 51@ -= $y
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_char_heading 103@(43@,10i) {heading} $heading

:DECON_15718
goto @DECON_15991

:DECON_15725
$car = store_car_char_is_in_no_save 103@(43@,10i)
set_car_straight_line_distance $car {distance} 255
if 
  not is_car_dead $car
goto_if_false @DECON_15782
if 
  is_playback_going_on_for_car $car
goto_if_false @DECON_15782
stop_playback_recorded_car $car

:DECON_15782
44@ = get_script_task_status 103@(43@,10i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15892
49@ = open_sequence_task 
task_car_mission -1 {vehicle} $car {targetVehicle} -1 {missionId} CarMission.RamPlayerClose {cruiseSpeed} 40.0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
perform_sequence_task 103@(43@,10i) {sequence} 49@
clear_sequence_task 49@
if 
  183@ <> 0
goto_if_false @DECON_15885
183@ = 0

:DECON_15885
goto @DECON_15991

:DECON_15892
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_15991
if 
  is_char_touching_vehicle $scplayer {handle} $car
goto_if_false @DECON_15991
if 
  183@ == 0
goto_if_false @DECON_15991
49@ = open_sequence_task 
task_car_temp_action -1 {vehicle} $car {actionId} TempAction.Reverse {time} 2500
close_sequence_task 49@
perform_sequence_task 103@(43@,10i) {sequence} 49@
clear_sequence_task 49@
183@ = 1

:DECON_15991
43@ += 1
goto @DECON_15185

:DECON_16005
clear_sequence_task 175@
clear_sequence_task 176@
clear_sequence_task 177@

:DECON_16020
if 
  140@ == 0
goto_if_false @DECON_16770
if 
  not is_char_dead 101@
goto_if_false @DECON_16770
if 
  145@ == 0
goto_if_false @DECON_16183
if 
  locate_char_any_means_3d $scplayer {x} -2074.2639 {y} 222.39 {z} 34.7395 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DECON_16183
clear_char_tasks 101@
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 50000 {radius} 3.0
task_turn_char_to_face_char -1 {target} $scplayer
task_scratch_head -1
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
145@ += 1

:DECON_16183
if 
  145@ == 1
goto_if_false @DECON_16626
if 
  locate_char_any_means_3d $scplayer {x} -2074.2639 {y} 222.39 {z} 34.7395 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DECON_16529
if 
  not is_message_being_displayed 
goto_if_false @DECON_16522
if 
  $audio_line_is_active == 0
goto_if_false @DECON_16522
if 
  locate_char_on_foot_char_3d 101@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_16515
43@ = generate_random_int_in_range 0 {max} 3
if 
  43@ == 0
goto_if_false @DECON_16386
set_var_text_label s$audio_string = 'GAR2_BA'
set_var_int_to_constant $audio_sound_file = 42212
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16386
if 
  43@ == 1
goto_if_false @DECON_16447
set_var_text_label s$audio_string = 'GAR2_BB'
set_var_int_to_constant $audio_sound_file = 42213
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16447
if 
  43@ == 2
goto_if_false @DECON_16508
set_var_text_label s$audio_string = 'GAR2_BC'
set_var_int_to_constant $audio_sound_file = 42214
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16508
145@ += 1

:DECON_16515
TIMERB = 0

:DECON_16522
goto @DECON_16626

:DECON_16529
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
145@ = 0

:DECON_16626
if 
  145@ == 2
goto_if_false @DECON_16770
43@ = get_script_task_status 101@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_16770
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
145@ += 1

:DECON_16770
if 
  not is_char_dead 114@
goto_if_false @DECON_16849
if 
  not is_car_dead 82@
goto_if_false @DECON_16842
if 
  is_playback_going_on_for_car 82@
goto_if_false @DECON_16842
if 
  not is_char_in_car 114@ {vehicle} 82@
goto_if_false @DECON_16842
stop_playback_recorded_car 82@

:DECON_16842
goto @DECON_16886

:DECON_16849
if 
  not is_car_dead 82@
goto_if_false @DECON_16886
if 
  is_playback_going_on_for_car 82@
goto_if_false @DECON_16886
stop_playback_recorded_car 82@

:DECON_16886
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_16974
if 
  not is_car_dead 89@
goto_if_false @DECON_16959
if 
  not is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_16952
89@ = 0
89@ = store_car_char_is_in $scplayer

:DECON_16952
goto @DECON_16974

:DECON_16959
89@ = 0
89@ = store_car_char_is_in $scplayer

:DECON_16974
43@ = 0

:DECON_16981
if 
  6 > 43@
goto_if_false @DECON_18437
if 
  66@ == 1
goto_if_false @DECON_17167
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_17167
if or
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Explosion
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.RocketLauncher
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Grenade
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.RocketHs
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Satchel
goto_if_false @DECON_17127
write_debug "DAMAGED_BY_EXPLOSION"

:DECON_17127
if 
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.AnyWeapon
goto_if_false @DECON_17167
write_debug "DAMAGED_BY_ANY"

:DECON_17167
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_17356
if or
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Explosion
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.RocketLauncher
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Grenade
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.RocketHs
  has_object_been_damaged_by_weapon $launchdoor_a51(43@,6i) {weaponType} WeaponType.Satchel
goto_if_false @DECON_17356
clear_object_last_weapon_damage $launchdoor_a51(43@,6i)
44@ = get_object_health $launchdoor_a51(43@,6i)
44@ += -500
if 
  1 > 44@
goto_if_false @DECON_17344
set_object_health $launchdoor_a51(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $launchdoor_a51(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $launchdoor_a51(43@,6i) {intensity} 0
goto @DECON_17356

:DECON_17344
set_object_health $launchdoor_a51(43@,6i) {health} 44@

:DECON_17356
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_17555
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_17555
if 
  not is_car_dead 89@
goto_if_false @DECON_17555
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_17555
if 
  is_vehicle_touching_object 89@ {handle} $launchdoor_a51(43@,6i)
goto_if_false @DECON_17555
if 
  170@ > 65000.0
goto_if_false @DECON_17555
set_object_health $launchdoor_a51(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $launchdoor_a51(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $launchdoor_a51(43@,6i) {intensity} 0
if 
  not is_car_dead 89@
goto_if_false @DECON_17555
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_17555
set_car_forward_speed 89@ {forwardSpeed} 169@

:DECON_17555
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_18196
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_18196
get_object_health $launchdoor_a51(43@,6i) {var_health} 158@(43@,6i)
if 
  is_int_lvar_greater_than_int_lvar 152@(43@,6i) > 158@(43@,6i)
goto_if_false @DECON_18180
if 
  158@(43@,6i) > 0
goto_if_false @DECON_18180
if 
  not is_car_dead 89@
goto_if_false @DECON_18034
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_18034
if 
  is_vehicle_touching_object 89@ {handle} $launchdoor_a51(43@,6i)
goto_if_false @DECON_18034
if 
  169@ > 5.0
goto_if_false @DECON_18018
if 
  not is_car_model 89@ {modelId} 486
goto_if_false @DECON_17843
set_lvar_int_to_lvar_int 44@ = 152@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 158@(43@,6i)
cset_lvar_float_to_lvar_int 46@ =# 44@
46@ *= 0.5
cset_lvar_int_to_lvar_float 44@ =# 46@
add_int_lvar_to_int_lvar 158@(43@,6i) += 44@
set_object_health $launchdoor_a51(43@,6i) {health} 158@(43@,6i)
goto @DECON_18011

:DECON_17843
set_lvar_int_to_lvar_int 44@ = 152@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 158@(43@,6i)
44@ *= -30
add_int_lvar_to_int_lvar 158@(43@,6i) += 44@
if 
  0 > 158@(43@,6i)
goto_if_false @DECON_17919
158@(43@,6i) = 0

:DECON_17919
if 
  165@ == 0
goto_if_false @DECON_17995
if 
  158@(43@,6i) > 10
goto_if_false @DECON_17995
if 
  not is_message_being_displayed 
goto_if_false @DECON_17995
print_now 'GAR2_38' {time} 5000 {flag} 1
165@ = 1

:DECON_17995
set_object_health $launchdoor_a51(43@,6i) {health} 158@(43@,6i)

:DECON_18011
goto @DECON_18034

:DECON_18018
set_object_health $launchdoor_a51(43@,6i) {health} 152@(43@,6i)

:DECON_18034
if 
  $player_is_in_crane == 1
goto_if_false @DECON_18089
set_object_health $launchdoor_a51(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $launchdoor_a51(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $launchdoor_a51(43@,6i) {intensity} 0

:DECON_18089
if 
  158@(43@,6i) == 0
goto_if_false @DECON_18180
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $launchdoor_a51(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $launchdoor_a51(43@,6i) {intensity} 0
if 
  not is_car_dead 89@
goto_if_false @DECON_18180
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_18180
set_car_forward_speed 89@ {forwardSpeed} 169@

:DECON_18180
set_lvar_int_to_lvar_int 152@(43@,6i) = 158@(43@,6i)

:DECON_18196
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_18423
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_18423
if 
  not is_car_dead 89@
goto_if_false @DECON_18423
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_18423
if 
  is_car_model 89@ {modelId} 486
goto_if_false @DECON_18423
if 
  is_vehicle_touching_object 89@ {handle} $launchdoor_a51(43@,6i)
goto_if_false @DECON_18423
44@ = get_object_health $launchdoor_a51(43@,6i)
if 
  10 > 44@
goto_if_false @DECON_18423
set_object_health $launchdoor_a51(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $launchdoor_a51(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $launchdoor_a51(43@,6i) {intensity} 0
if 
  not is_car_dead 89@
goto_if_false @DECON_18423
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @DECON_18423
set_car_forward_speed 89@ {forwardSpeed} 169@

:DECON_18423
43@ += 1
goto @DECON_16981

:DECON_18437
43@ = 0

:DECON_18444
if 
  6 > 43@
goto_if_false @DECON_19180
if 
  151@ > 0
goto_if_false @DECON_19016
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_19016
44@ = get_object_health $launchdoor_a51(43@,6i)
if 
  995 > 44@
goto_if_false @DECON_19016
if 
  44@ > 500
goto_if_false @DECON_18724
if 
  133@(43@,6i) == 0
goto_if_false @DECON_18717
$x, $y, $z = get_offset_from_object_in_world_coords $launchdoor_a51(43@,6i) {xOffset} 3.252 {yOffset} -2.1084 {zOffset} 0.0
gosub @DECON_20709
if 
  189@ == 0
goto_if_false @DECON_18717
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading = get_object_heading $launchdoor_a51(43@,6i)
$heading += 180.0
115@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 115@ {heading} $heading
set_char_health 115@ {health} 50
133@(43@,6i) += 1
43@ = 6

:DECON_18717
goto @DECON_19016

:DECON_18724
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_18751
goto @DECON_19016

:DECON_18751
if 
  133@(43@,6i) <> 99
goto_if_false @DECON_19016
$x, $y, $z = get_offset_from_object_in_world_coords $launchdoor_a51(43@,6i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading $launchdoor_a51(43@,6i)
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading += 180.0
115@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 115@ {heading} $heading
set_char_health 115@ {health} 50
133@(43@,6i) = 99
43@ = 6
56@, 57@, 58@ = get_char_coordinates $scplayer
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
44@ = generate_random_int_in_range 0 {max} 2
if 
  44@ <> 0
goto_if_false @DECON_18976
51@ *= -1.0

:DECON_18976
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 54@ = 50@
54@ *= -1.0
task_dive_and_get_up 115@ {directionX} 53@ {directionY} 54@ {timeOnGround} 1000

:DECON_19016
if 
  does_char_exist 115@
goto_if_false @DECON_19159
if 
  not is_char_dead 115@
goto_if_false @DECON_19159
if 
  139@ > 0
goto_if_false @DECON_19115
if 
  2 > 139@
goto_if_false @DECON_19103
give_weapon_to_char 115@ {weaponType} WeaponType.Shovel {ammo} 99999
goto @DECON_19115

:DECON_19103
give_weapon_to_char 115@ {weaponType} WeaponType.Pistol {ammo} 99999

:DECON_19115
set_char_shoot_rate 115@ {rate} 30
set_char_accuracy 115@ {accuracy} 30
set_char_decision_maker 115@ {handleOrTemplate} 173@
set_lvar_int_to_lvar_int 184@ = 115@
gosub @DECON_19944
171@ = 0

:DECON_19159
115@ = 0
43@ += 1
goto @DECON_18444

:DECON_19180
if 
  140@ == 1
goto_if_false @DECON_19703
if 
  4 >= 151@
goto_if_false @DECON_19223
171@ = 0

:DECON_19223
if 
  171@ > 20000
goto_if_false @DECON_19703
if 
  151@ > 4
goto_if_false @DECON_19703
47@ = 200.0
44@ = -1
43@ = 0

:DECON_19284
if 
  6 > 43@
goto_if_false @DECON_19440
if 
  does_object_exist $launchdoor_a51(43@,6i)
goto_if_false @DECON_19426
if 
  not has_object_been_damaged $launchdoor_a51(43@,6i)
goto_if_false @DECON_19426
$x, $y, $z = get_object_coordinates $launchdoor_a51(43@,6i)
56@, 57@, 58@ = get_char_coordinates $scplayer
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @DECON_19426
set_lvar_float_to_lvar_float 47@ = 46@
set_lvar_int_to_lvar_int 44@ = 43@

:DECON_19426
43@ += 1
goto @DECON_19284

:DECON_19440
if 
  44@ <> -1
goto_if_false @DECON_19703
$x, $y, $z = get_offset_from_object_in_world_coords $launchdoor_a51(44@,6i) {xOffset} 3.252 {yOffset} -2.1084 {zOffset} 0.0
gosub @DECON_20709
if 
  189@ == 0
goto_if_false @DECON_19703
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading = get_object_heading $launchdoor_a51(44@,6i)
$heading += 180.0
115@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 115@ {heading} $heading
set_char_health 115@ {health} 50
if 
  139@ > 2
goto_if_false @DECON_19652
if 
  5 > 139@
goto_if_false @DECON_19640
give_weapon_to_char 115@ {weaponType} WeaponType.Shovel {ammo} 99999
goto @DECON_19652

:DECON_19640
give_weapon_to_char 115@ {weaponType} WeaponType.Pistol {ammo} 99999

:DECON_19652
set_char_shoot_rate 115@ {rate} 30
set_char_accuracy 115@ {accuracy} 30
set_char_decision_maker 115@ {handleOrTemplate} 173@
set_lvar_int_to_lvar_int 184@ = 115@
115@ = 0
171@ = 0
gosub @DECON_19944

:DECON_19703
43@ = 0

:DECON_19710
if 
  10 > 43@
goto_if_false @DECON_19813
if 
  does_char_exist 103@(43@,10i)
goto_if_false @DECON_19799
if 
  is_char_dead 103@(43@,10i)
goto_if_false @DECON_19799
mark_char_as_no_longer_needed 103@(43@,10i)
103@(43@,10i) = 0
141@(43@,10i) = 0

:DECON_19799
43@ += 1
goto @DECON_19710

:DECON_19813
gosub @DECON_20044
if 
  not is_car_dead 89@
goto_if_false @DECON_19868
169@ = get_car_speed 89@
46@ = get_car_mass 89@
set_lvar_float_to_lvar_float 170@ = 169@
mult_float_lvar_by_float_lvar 170@ *= 46@

:DECON_19868
if 
  does_blip_exist 125@
goto_if_false @DECON_19905
if 
  is_car_dead 84@
goto_if_false @DECON_19905
remove_blip 125@

:DECON_19905
if 
  does_blip_exist 126@
goto_if_false @DECON_19942
if 
  is_car_dead 88@
goto_if_false @DECON_19942
remove_blip 126@

:DECON_19942
return 

:DECON_19944
185@ = 0

:DECON_19951
if 
  4 > 185@
goto_if_false @DECON_20035
if 
  103@(185@,10i) == 0
goto_if_false @DECON_20021
set_lvar_int_to_lvar_int 103@(185@,10i) = 184@
141@(185@,10i) = 0
185@ = 6

:DECON_20021
185@ += 1
goto @DECON_19951

:DECON_20035
gosub @DECON_20044
return 

:DECON_20044
151@ = 4
186@ = 0

:DECON_20058
if 
  4 > 186@
goto_if_false @DECON_20117
if 
  does_char_exist 103@(186@,10i)
goto_if_false @DECON_20103
151@ -= 1

:DECON_20103
186@ += 1
goto @DECON_20058

:DECON_20117
return 
save_newline_to_debug_file 
save_string_to_debug_file "AVAILABLE PEDS"
save_newline_to_debug_file 
187@ = 0

:DECON_20260
if 
  10 > 187@
goto_if_false @DECON_20568
save_newline_to_debug_file 
save_string_to_debug_file "MISSION PED "
save_int_to_debug_file 187@
save_string_to_debug_file " = "
save_int_to_debug_file 103@(187@,10i)
187@ += 1
goto @DECON_20260

:DECON_20568
save_newline_to_debug_file 
save_string_to_debug_file "AVAILABLE_MISSION_PEDS = "
save_int_to_debug_file 151@
save_newline_to_debug_file 
return 

:DECON_20709
189@ = 0
188@ = 0

:DECON_20723
if 
  10 > 188@
goto_if_false @DECON_20828
if 
  not is_char_dead 103@(188@,10i)
goto_if_false @DECON_20814
if 
  locate_char_on_foot_3d 103@(188@,10i) {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @DECON_20814
189@ = 1

:DECON_20814
188@ += 1
goto @DECON_20723

:DECON_20828
return 

:DECON_20830
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:DECON_20888
if 
  is_player_playing $player1
goto_if_false @DECON_20982
if 
  locate_char_any_means_3d $scplayer {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_20982
set_char_coordinates $scplayer {x} -2045.189 {y} 241.7544 {z} 34.9462
set_char_heading $scplayer {heading} 186.3532

:DECON_20982
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE2_SFSE {toModelId} #HUBHOLE1_SFSE
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DECON_21028
if 
  does_object_exist 80@
goto_if_false @DECON_21049
delete_object 80@

:DECON_21049
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE2_SFSE {toModelId} #HUBHOLE4_SFSE
register_mission_passed 'GAR_2'
start_new_script @SYND 
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
player_made_progress 1
set_int_stat StatId.PassedGarage2 {value} 1
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_garage_mission_counter += 1
return 

:DECON_21163
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$flag_car_lowrider_carmod = 0
mark_model_as_no_longer_needed #PORTALOO
mark_model_as_no_longer_needed #PORTAKABIN
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 524
mark_model_as_no_longer_needed 406
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 27
mark_model_as_no_longer_needed 337
mark_model_as_no_longer_needed 346
remove_blip 117@
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
clear_onscreen_timer $7233
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 51---------------
// Originally: 555 WE TIP

:SCRASH3
script_name 'SCRASH3'
gosub @SCRASH3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH3_38
gosub @SCRASH3_18100

:SCRASH3_38
gosub @SCRASH3_18244
terminate_this_script 

:SCRASH3_47
clear_this_print 'M_FAIL'
$onmission = 1
$playing_scrash1 = 1
register_mission_given 
80@ = 1
81@ = 0
82@ = 0
65@ = 0
66@ = 0
84@ = 0
85@ = 0
set_script_limit_to_gang_size 0
load_mission_text 'VALET1'
set_fading_colour 0 {g} 0 {b} 0
terminate_all_scripts_with_this_name 'VALET'
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_198
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:SCRASH3_198
set_area_visible 1
load_cutscene 'SCRASH1'

:SCRASH3_213
if 
  not has_cutscene_loaded 
goto_if_false @SCRASH3_237
wait 0
goto @SCRASH3_213

:SCRASH3_237
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SCRASH3_254
if 
  not has_cutscene_finished 
goto_if_false @SCRASH3_278
wait 0
goto @SCRASH3_254

:SCRASH3_278
do_fade 0 {direction} Fade.Out

:SCRASH3_284
if 
  get_fading_status 
goto_if_false @SCRASH3_308
wait 0
goto @SCRASH3_284

:SCRASH3_308
clear_cutscene 
set_area_visible 0
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
restore_camera_jumpcut 
request_model 415
request_model 240

:SCRASH3_338
if or
  not has_model_loaded 415
  not has_model_loaded 240
goto_if_false @SCRASH3_370
wait 0
goto @SCRASH3_338

:SCRASH3_370
set_car_density_multiplier 1.0
65@ = 0
if 
  65@ == 20
goto_if_false @SCRASH3_581
57@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
60@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
59@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
37@ = create_char PedType.Mission1 {modelId} 189 {x} 0.0 {y} 0.0 {z} 0.0
$valet[0] = create_char PedType.CivMale {modelId} 189 {x} 0.0 {y} 0.0 {z} 0.0
$valet_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$drop_off_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$sc3_missioncar = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_581
57@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
wait 500
do_fade 1000 {direction} Fade.In
281@ = 0
print 'VAL_5' {time} 10000 {flag} 1

:SCRASH3_636
wait 0
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @SCRASH3_672
94@ = 1
goto @SCRASH3_679

:SCRASH3_672
94@ = 0

:SCRASH3_679
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SCRASH3_708
gosub @SCRASH3_17346
goto @SCRASH3_18132

:SCRASH3_708
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @SCRASH3_743
set_char_coordinates $scplayer {x} -1755.088 {y} 910.0911 {z} 23.8906

:SCRASH3_743
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @SCRASH3_821
set_char_coordinates $scplayer {x} -1712.653 {y} 985.0446 {z} 16.5859
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_821
set_char_coordinates $valet[2] {x} -1700.77 {y} 984.3545 {z} 16.5936
set_char_suffers_critical_hits $valet[2] {state} False

:SCRASH3_821
if 
is_ps2_keyboard_key_pressed 10
goto_if_false @SCRASH3_856
set_char_coordinates $scplayer {x} -1753.8409 {y} 960.2274 {z} 23.8828

:SCRASH3_856
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @SCRASH3_1057
if 
  is_char_dead 37@
goto_if_false @SCRASH3_912
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715

:SCRASH3_912
request_model 551

:SCRASH3_917
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_944
wait 0
goto @SCRASH3_917

:SCRASH3_944
if 
  is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_983
$sc3_missioncar = create_car 551 {x} -1753.9611 {y} 951.9568 {z} 23.7422

:SCRASH3_983
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1029
set_car_coordinates $sc3_missioncar {x} -1753.9611 {y} 951.9568 {z} 23.7422
set_car_heading $sc3_missioncar {heading} 90.0

:SCRASH3_1029
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_1057
task_leave_any_car 37@
106@ = 1

:SCRASH3_1057
if 
is_ps2_keyboard_key_pressed 13
goto_if_false @SCRASH3_1118
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1118
set_car_coordinates $sc3_missioncar {x} -2031.828 {y} 179.5876 {z} 27.8359
set_car_heading $sc3_missioncar {heading} 90.0

:SCRASH3_1118
if 
is_ps2_keyboard_key_pressed 14
goto_if_false @SCRASH3_1169
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1169
set_car_coordinates $sc3_missioncar {x} -1779.759 {y} 971.5197 {z} 23.7344

:SCRASH3_1169
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @SCRASH3_1198
65@ = 10
72@ = 90

:SCRASH3_1198
if 
  73@ == 1
goto_if_false @SCRASH3_1264
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_1264
print 'VAL_B1' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_1264
gosub @SCRASH3_15223
89@ = 0
if 
  65@ > 1
goto_if_false @SCRASH3_1496

:SCRASH3_1296
if 
  2 > 89@
goto_if_false @SCRASH3_1496
if 
  is_int_var_equal_to_constant $valet_task(89@,3i) == 6
goto_if_false @SCRASH3_1482
if 
  does_char_exist $valet(89@,3i)
goto_if_false @SCRASH3_1482
$x, $y, $z = get_dead_char_pickup_coords $valet(89@,3i)
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_1452
goto @SCRASH3_1482

:SCRASH3_1452
gosub @SCRASH3_17346
print 'VAL_9' {time} 3000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_1482
89@ += 1
goto @SCRASH3_1296

:SCRASH3_1496
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_1648
if 
  68@ == 1
goto_if_false @SCRASH3_1564
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1564
$10741 = get_car_blocking_car $sc3_missioncar
set_var_int_to_var_int $last_player_y = $10741

:SCRASH3_1564
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1648
90@, 91@ = get_car_colours $sc3_missioncar
if or
  not is_int_lvar_equal_to_constant 90@ == 4
  not is_int_lvar_equal_to_constant 91@ == 4
goto_if_false @SCRASH3_1648
clear_prints 
gosub @SCRASH3_17346
print 'VAL_A35' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_1648
if 
  65@ == 0
goto_if_false @SCRASH3_1692
65@ = 1
70@ = 0
$force_valet_on_mission = 1
suppress_car_model 551

:SCRASH3_1692
if 
  65@ == 1
goto_if_false @SCRASH3_2999
if 
  70@ == 0
goto_if_false @SCRASH3_1790
if 
  locate_char_any_means_3d $scplayer {x} -1748.402 {y} 909.7514 {z} 23.8906 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_1790
set_player_control $player1 {state} False
70@ = 1

:SCRASH3_1790
if 
  70@ == 1
goto_if_false @SCRASH3_1827
do_fade 1000 {direction} Fade.Out
request_model 477
70@ = 2

:SCRASH3_1827
if 
  70@ == 2
goto_if_false @SCRASH3_2333
if and
  not get_fading_status 
  has_model_loaded 477
goto_if_false @SCRASH3_2333
delete_char $valet[0]
delete_char $valet[1]
delete_char $valet[2]
$valet_unlocked = 1
stream_script 72
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1964
$force_valet_cleanup = 1

:SCRASH3_1921
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1957
wait 0
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
goto @SCRASH3_1921

:SCRASH3_1957
$force_valet_cleanup = 0

:SCRASH3_1964
if 
  not has_streamed_script_loaded 72
goto_if_false @SCRASH3_1990
wait 0
goto @SCRASH3_1964

:SCRASH3_1990
start_new_streamed_script 72
$force_valet_on_mission = 2
$freeze_creating_drop_off_cars = 1
switch_ped_roads_off -1729.549 {leftBottomY} 942.886 {leftBottomZ} 40.3585 {rightTopX} -1742.7729 {rightTopY} 937.7814 {rightTopZ} 10.1928
switch_ped_roads_off -1768.524 {leftBottomY} 938.887 {leftBottomZ} 40.7496 {rightTopX} -1780.765 {rightTopY} 943.4574 {rightTopZ} 10.0929
clear_area -1722.675 {y} 935.279 {z} 23.75 {radius} 55.0 {clearParticles} False
92@ = create_car 477 {x} -1736.9611 {y} 946.0503 {z} 23.7487
set_car_can_go_against_traffic 92@ {state} False
set_car_heading 92@ {heading} 19.0
93@ = create_random_char_as_driver 92@
mark_char_as_no_longer_needed 93@
mark_car_as_no_longer_needed 92@
mark_model_as_no_longer_needed 477
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_2250
86@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} -1753.968 {y} 952.9821 {z} 23.75 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_car -1 {vehicle} 92@
task_say -1 {phrase} SpeechId.ValetGood
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 93@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_2250
remove_blip 57@
switch_widescreen True
set_fixed_camera_position -1763.4821 {y} 959.9526 {z} 25.8866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1762.601 {y} 959.5414 {z} 25.6518 {switchStyle} SwitchType.JumpCut
70@ = 3
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_2333
if 
  70@ == 3
goto_if_false @SCRASH3_2476
if and
  is_int_var_equal_to_constant $valet_task[0] == 2
  is_int_var_equal_to_constant $valet_task[1] == 2
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_2420
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2420
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2476
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2476
if 
  70@ == 4
goto_if_false @SCRASH3_2527
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2527
do_fade 700 {direction} Fade.In
70@ = 5

:SCRASH3_2527
if 
  70@ == 5
goto_if_false @SCRASH3_2597
if 
  not get_fading_status 
goto_if_false @SCRASH3_2597
print_now 'VAL_6' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 6000
70@ = 6

:SCRASH3_2597
if 
  70@ == 6
goto_if_false @SCRASH3_2661
if 
  is_skip_cutscene_button_pressed 
goto_if_false @SCRASH3_2635
70@ = 7

:SCRASH3_2635
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2661
70@ = 7

:SCRASH3_2661
if 
  70@ == 7
goto_if_false @SCRASH3_2999
if 
  not is_char_in_any_car $scplayer
goto_if_false @SCRASH3_2732
set_char_coordinates $scplayer {x} -1747.198 {y} 909.9226 {z} 23.8906
set_char_heading $scplayer {heading} 5.6727
goto @SCRASH3_2766

:SCRASH3_2732
$10741 = get_car_char_is_using $scplayer
if 
  not is_car_dead $10741
goto_if_false @SCRASH3_2766
set_car_heading $10741 {heading} 0.0

:SCRASH3_2766
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
print_now 'VAL_A25' {time} 6000 {flag} 1
65@ = 2
$10922 = 1
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_2999
63@ = add_blip_for_char $valet[2]
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_2999
if 
  not is_char_in_car $valet[2] {vehicle} 92@
goto_if_false @SCRASH3_2999
if 
  not is_char_dead 93@
goto_if_false @SCRASH3_2999
delete_char 93@
warp_char_into_car $valet[2] {vehicle} 92@
$x, $y, $z = get_parking_node_in_area -1760.178 {leftBottomY} 972.2405 {leftBottomZ} 16.1633 {rightTopX} -1679.605 {rightTopY} 1064.293 {rightTopZ} 24.8629
set_var_float_to_var_float $dont_clear_valets = $x
set_var_float_to_var_float $valet_cars_to_park = $y
set_var_float_to_var_float $valet_mission_car = $z
task_car_drive_to_coord $valet[2] {vehicle} 92@ {x} $x {y} $y {z} $z {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
set_var_int_to_constant $valet_task[2] = 8

:SCRASH3_2999
if 
  65@ == 2
goto_if_false @SCRASH3_3761
if and
  95@ == 0
  94@ == 1
goto_if_false @SCRASH3_3058
print 'VAL_B3' {time} 5000 {flag} 1

:SCRASH3_3058
if 
  94@ == 1
goto_if_false @SCRASH3_3186
$x, $y, $z = get_char_coordinates $scplayer
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3186
clear_prints 
print 'VAL_B4' {time} 5000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_3186
set_lvar_int_to_lvar_int 95@ = 94@
if 
  does_char_exist $valet[2]
goto_if_false @SCRASH3_3761
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_3544
$x, $y, $z = get_char_coordinates $valet[2]
if 
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_3283
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_3283
$imp_seq2 = 1

:SCRASH3_3283
if 
  $stored_shop_time == 0
goto_if_false @SCRASH3_3427
if 
  94@ == 0
goto_if_false @SCRASH3_3420
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3420
print 'VAL_A22' {time} 5000 {flag} 1
$stored_shop_time = 1
set_wanted_multiplier -1.0

:SCRASH3_3420
goto @SCRASH3_3544

:SCRASH3_3427
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @SCRASH3_3544
print 'VAL_A23' {time} 4000 {flag} 1
print 'VAL_A24' {time} 5000 {flag} 1
$stored_shop_time = 0
set_wanted_multiplier 1.0

:SCRASH3_3544
if 
  is_char_dead $valet[2]
goto_if_false @SCRASH3_3761
remove_blip 63@
96@, 97@, 98@ = get_dead_char_pickup_coords $valet[2]
set_wanted_multiplier 1.0
if and
  96@ > -1760.178
  97@ > 972.2405
  98@ > 16.1633
  -1679.605 > 96@
  1064.293 > 97@
  24.8629 > 98@
goto_if_false @SCRASH3_3714
74@ = create_pickup #CLOTHESP {pickupType} PickupType.Once {x} 96@ {y} 97@ {z} 98@
64@ = add_blip_for_pickup 74@
print_now 'VAL_8' {time} 5000 {flag} 1
65@ = 3
goto @SCRASH3_3761

:SCRASH3_3714
remove_blip 61@
remove_blip 62@
remove_blip 63@
clear_prints 
gosub @SCRASH3_17346
print_now 'VAL_9' {time} 5000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_3761
if 
  65@ == 3
goto_if_false @SCRASH3_3858
if 
  has_pickup_been_collected 74@
goto_if_false @SCRASH3_3858
100@ = 1
set_music_does_fade False
do_fade 1000 {direction} Fade.Out
remove_pickup 74@
remove_blip 64@
request_model 252
65@ = 41
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000
99@ = 0

:SCRASH3_3858
if 
  65@ == 41
goto_if_false @SCRASH3_4169
if 
  not get_fading_status 
goto_if_false @SCRASH3_4169
if 
  99@ == 0
goto_if_false @SCRASH3_3938
set_lvar_int_to_constant 151@ = 23801
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 500
99@ = 1

:SCRASH3_3938
if 
  has_model_loaded 252
goto_if_false @SCRASH3_4169
if 
  does_char_exist $valet[2]
goto_if_false @SCRASH3_4026
96@, 97@, 98@ = get_dead_char_coordinates $valet[2]
96@, 97@, 98@ = get_dead_char_pickup_coords $valet[2]
if 
  is_char_head_missing $valet[2]
goto_if_false @SCRASH3_4021
100@ = 1

:SCRASH3_4021
delete_char $valet[2]

:SCRASH3_4026
101@ = create_char PedType.CivMale {modelId} 252 {x} 96@ {y} 97@ {z} 98@
set_char_coordinates 101@ {x} 96@ {y} 97@ {z} 98@
mark_char_as_no_longer_needed 101@
shut_char_up 101@ {state} True
if 
  100@ == 1
goto_if_false @SCRASH3_4094
explode_char_head 101@

:SCRASH3_4094
task_die 101@
set_player_control $player1 {state} False
give_player_clothes_outside_shop $player1 {textureName} "VALET" {modelName} "VALET" {bodyPart} BodyPart.SpecialCostume
73@ = 1
build_player_model $player1
set_player_control $player1 {state} True
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
65@ = 40

:SCRASH3_4169
if 
  73@ == 1
goto_if_false @SCRASH3_4237
if 
  94@ == 1
goto_if_false @SCRASH3_4237
clear_prints 
gosub @SCRASH3_17346
print_now 'VAL_B5' {time} 5000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_4237
if 
  65@ == 40
goto_if_false @SCRASH3_4306
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_4306
if 
  151@ == 0
goto_if_false @SCRASH3_4306
do_fade 600 {direction} Fade.In
65@ = 42

:SCRASH3_4306
if 
  65@ == 42
goto_if_false @SCRASH3_4391
if 
  not get_fading_status 
goto_if_false @SCRASH3_4391
set_music_does_fade True
clear_prints 
print_now 'VAL_A32' {time} 5000 {flag} 1
remove_blip 57@
57@ = add_blip_for_coord -1759.026 {y} 960.4122 {z} 23.8905
65@ = 4

:SCRASH3_4391
if 
  65@ == 4
goto_if_false @SCRASH3_4551
if 
  102@ == 0
goto_if_false @SCRASH3_4489
if 
  locate_char_on_foot_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_4489
102@ = 1
281@ = 13

:SCRASH3_4489
if 
  locate_char_on_foot_3d $scplayer {x} -1757.054 {y} 960.1191 {z} 23.8906 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SCRASH3_4551
65@ = 5
72@ = 0

:SCRASH3_4551
if 
  65@ == 5
goto_if_false @SCRASH3_6071
if 
  72@ == 0
goto_if_false @SCRASH3_4616
do_fade 1000 {direction} Fade.Out
request_model 551
request_model 402
request_car_recording 155
72@ = 1

:SCRASH3_4616
if 
  72@ == 1
goto_if_false @SCRASH3_4766
if 
  not get_fading_status 
goto_if_false @SCRASH3_4766
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -1584.371 {y} 727.5854 {z} 28.9622 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1585.114 {y} 727.2239 {z} 28.3981 {switchStyle} SwitchType.JumpCut
request_collision -1585.114 {y} 727.2239
load_scene_in_direction -1584.371 {y} 727.5854 {z} 28.9622 {heading} 270.0
72@ = 2
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000

:SCRASH3_4766
if 
  72@ == 2
goto_if_false @SCRASH3_4817
if and
  has_model_loaded 551
  has_car_recording_been_loaded 155
goto_if_false @SCRASH3_4817
remove_blip 57@
72@ = 3

:SCRASH3_4817
if 
  72@ == 3
goto_if_false @SCRASH3_5292
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
  has_model_loaded 402
  has_model_loaded 551
goto_if_false @SCRASH3_5282
set_fixed_camera_position -1621.481 {y} 738.7783 {z} 14.293 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1620.6379 {y} 738.2501 {z} 14.3895 {switchStyle} SwitchType.JumpCut
$sc3_missioncar = create_car 551 {x} -1611.379 {y} 725.24 {z} 11.8774
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
start_playback_recorded_car $sc3_missioncar {path} 155
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715
set_char_health 37@ {health} 200
set_char_max_health 37@ {maxHealth} 200
set_char_heading 37@ {heading} 0.0
86@ = open_sequence_task 
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_5066
task_go_straight_to_coord -1 {x} -1611.5959 {y} 723.0802 {z} 12.2361 {speed} MoveState.Walk {time} -2
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2

:SCRASH3_5066
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@
clear_area -1779.804 {y} 915.7557 {z} 23.7487 {radius} 25.0 {clearParticles} False
92@ = create_car 402 {x} -1779.804 {y} 915.7557 {z} 23.7487
set_car_can_go_against_traffic 92@ {state} False
set_car_heading 92@ {heading} 270.0
93@ = create_random_char_as_driver 92@
mark_char_as_no_longer_needed 93@
mark_car_as_no_longer_needed 92@
mark_model_as_no_longer_needed 402
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_5261
86@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} -1753.968 {y} 952.9821 {z} 23.75 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_car -1 {vehicle} 92@
task_say -1 {phrase} SpeechId.ValetGood
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 93@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_5261
do_fade 1000 {direction} Fade.In
72@ = 4
goto @SCRASH3_5292

:SCRASH3_5282
request_model 402
request_model 551

:SCRASH3_5292
if 
  72@ == 4
goto_if_false @SCRASH3_5385
if 
  not get_fading_status 
goto_if_false @SCRASH3_5385
skip_cutscene_start_internal @SCRASH3_5739
print_now 'VAL_12' {time} 4000 {flag} 1
print 'VAL_13' {time} 4000 {flag} 1
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3500
72@ = 5

:SCRASH3_5385
if 
  72@ == 5
goto_if_false @SCRASH3_5429
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5429
72@ = 6

:SCRASH3_5429
if 
  72@ == 6
goto_if_false @SCRASH3_5591
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_5591
if 
  is_char_in_any_car 37@
goto_if_false @SCRASH3_5591
stop_playback_recorded_car $sc3_missioncar
if and
  not is_char_dead 37@
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_5568
86@ = open_sequence_task 
task_pause -1 {time} 800
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1571.425 {y} 725.7955 {z} 6.0391 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_5568
72@ = 7
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000

:SCRASH3_5591
if 
  72@ == 7
goto_if_false @SCRASH3_5702
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5702
set_fixed_camera_position -1587.974 {y} 725.1835 {z} 7.7383 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1588.891 {y} 725.1658 {z} 8.1361 {switchStyle} SwitchType.JumpCut
72@ = 8
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_5702
if 
  72@ == 8
goto_if_false @SCRASH3_5755
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5755

:SCRASH3_5739
skip_cutscene_end 
do_fade 900 {direction} Fade.Out
72@ = 9

:SCRASH3_5755
if 
  72@ == 9
goto_if_false @SCRASH3_5957
if 
  not get_fading_status 
goto_if_false @SCRASH3_5957
remove_car_recording 155
switch_roads_on 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
if and
  not is_car_dead $sc3_missioncar
  not is_char_dead 37@
goto_if_false @SCRASH3_5875
if 
  is_playback_going_on_for_car $sc3_missioncar
goto_if_false @SCRASH3_5875
stop_playback_recorded_car $sc3_missioncar
delete_car $sc3_missioncar
delete_char 37@

:SCRASH3_5875
set_char_coordinates $scplayer {x} -1759.631 {y} 960.4594 {z} 23.8905
set_char_heading $scplayer {heading} 194.1832
request_collision -1748.402 {y} 909.7514
load_scene -1748.402 {y} 909.7514 {z} 23.8906
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
72@ = 10

:SCRASH3_5957
if 
  72@ == 10
goto_if_false @SCRASH3_6071
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_6071
do_fade 900 {direction} Fade.In
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
print 'VAL_A27' {time} 7000 {flag} 1
set_var_int_to_constant $valet_task[0] = 2
set_var_int_to_constant $valet_task[1] = 2
$imp_seq2 = generate_random_int_in_range 1 {max} 3
56@ = 1
65@ = 6

:SCRASH3_6071
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_6137
if 
  is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_6137
clear_prints 
gosub @SCRASH3_17346
print 'VAL_40' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_6137
if 
  56@ == 1
goto_if_false @SCRASH3_7004
if 
  107@ <> 2
goto_if_false @SCRASH3_7004
if and
  not is_int_var_equal_to_constant $valet_task[0] == 2
  not is_int_var_equal_to_constant $valet_task[1] == 2
goto_if_false @SCRASH3_6205
$imp_seq2 = 0

:SCRASH3_6205
if 
  56@ == 1
goto_if_false @SCRASH3_7004
if 
  $imp_seq2 == 0
goto_if_false @SCRASH3_6766
if 
  $create_drop_off_car_now == 0
goto_if_false @SCRASH3_6766
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_6766
if 
  107@ == 0
goto_if_false @SCRASH3_6440
if 
  not is_point_on_screen -1709.886 {y} 899.3372 {z} 23.7422 {radius} 5.0
goto_if_false @SCRASH3_6440
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1709.886 {leftBottomY} 899.3372 {leftBottomZ} 23.7422 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6440
clear_area -1709.886 {y} 899.3372 {z} 23.7422 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1611.379 {y} 725.24 {z} 11.8774
set_car_heading $sc3_missioncar {heading} 0.0
107@ = 1

:SCRASH3_6440
if 
  107@ == 0
goto_if_false @SCRASH3_6603
if 
  not is_point_on_screen -1674.725 {y} 933.5232 {z} 23.7365 {radius} 5.0
goto_if_false @SCRASH3_6603
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1674.725 {leftBottomY} 933.5232 {leftBottomZ} 23.7365 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6603
clear_area -1674.725 {y} 933.5232 {z} 23.7365 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1674.725 {y} 933.5232 {z} 23.7365
set_car_heading $sc3_missioncar {heading} 90.0
107@ = 1

:SCRASH3_6603
if 
  107@ == 0
goto_if_false @SCRASH3_6766
if 
  not is_point_on_screen -1791.158 {y} 877.27 {z} 23.75 {radius} 5.0
goto_if_false @SCRASH3_6766
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1791.158 {leftBottomY} 877.27 {leftBottomZ} 23.75 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6766
clear_area -1791.158 {y} 877.27 {z} 23.75 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1791.158 {y} 877.27 {z} 23.75
set_car_heading $sc3_missioncar {heading} 0.0
107@ = 1

:SCRASH3_6766
if 
  107@ == 1
goto_if_false @SCRASH3_7004
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_7004
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715
set_char_health 37@ {health} 200
set_char_max_health 37@ {maxHealth} 200
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_6886
clear_char_tasks_immediately 37@
warp_char_into_car 37@ {vehicle} $sc3_missioncar

:SCRASH3_6886
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_6983
86@ = open_sequence_task 
task_pause -1 {time} 10000
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1758.877 {y} 952.744 {z} 23.7487 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_leave_car -1 {vehicle} $sc3_missioncar
task_say -1 {phrase} SpeechId.ValetGood
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_6983
68@ = 1
$sc3_missioncar_alive = 1
107@ = 2

:SCRASH3_7004
if 
  68@ == 1
goto_if_false @SCRASH3_7222
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_7174
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_7126
105@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 1
goto_if_false @SCRASH3_7119
105@ = get_sequence_progress 37@
if 
  105@ == 2
goto_if_false @SCRASH3_7119
106@ = 1

:SCRASH3_7119
goto @SCRASH3_7174

:SCRASH3_7126
if 
  106@ <> 1
goto_if_false @SCRASH3_7174
gosub @SCRASH3_17346
print 'VAL_A1' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_7174
if 
  is_char_dead 37@
goto_if_false @SCRASH3_7222
clear_prints 
gosub @SCRASH3_17346
print 'VAL_34' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_7222
if 
  65@ > 6
goto_if_false @SCRASH3_7299
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_7299
if 
  not locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @SCRASH3_7299
delete_char 37@
68@ = 0

:SCRASH3_7299
if 
  65@ > 5
goto_if_false @SCRASH3_7472
if and
  108@ == 0
  112@ == 0
goto_if_false @SCRASH3_7472
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_7472
79@ = get_driver_of_car $sc3_missioncar
if and
  not is_int_lvar_equal_to_int_lvar 79@ == 37@
  not is_int_lvar_equal_to_int_var 79@ == $scplayer
  79@ <> -1
goto_if_false @SCRASH3_7472
print 'VAL_A28' {time} 4000 {flag} 1
remove_blip 60@
60@ = add_blip_for_car $sc3_missioncar
remove_blip 57@
56@ = 0
108@ = 1
set_lvar_float_to_var_float 109@ = $dont_clear_valets
set_lvar_float_to_var_float 110@ = $valet_cars_to_park
set_lvar_float_to_var_float 111@ = $valet_mission_car

:SCRASH3_7472
if 
  108@ == 1
goto_if_false @SCRASH3_7609
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_7609
if 
  locate_car_3d $sc3_missioncar {x} 109@ {y} 110@ {z} 111@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH3_7578
gosub @SCRASH3_17346
print 'VAL_A29' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_7578
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_7609
108@ = 2
remove_blip 60@

:SCRASH3_7609
if 
  65@ == 6
goto_if_false @SCRASH3_8406
if 
  56@ == 1
goto_if_false @SCRASH3_7860
if 
  69@ == 0
goto_if_false @SCRASH3_7782
if 
  not locate_char_any_means_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_7782
clear_prints 
if or
  not is_char_dead $valet[1]
  not is_char_dead $valet[0]
goto_if_false @SCRASH3_7750
print_now 'VAL_49' {time} 5000 {flag} 1

:SCRASH3_7750
remove_blip 57@
57@ = add_blip_for_coord -1759.026 {y} 960.4122 {z} 23.8905
69@ = 1

:SCRASH3_7782
if 
  69@ == 1
goto_if_false @SCRASH3_7860
if 
  locate_char_on_foot_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SCRASH3_7860
remove_blip 57@
69@ = 0

:SCRASH3_7860
if 
  56@ == 1
goto_if_false @SCRASH3_8172
if 
  locate_char_any_means_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_8172
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8172
if 
  locate_car_3d $sc3_missioncar {x} -1757.907 {y} 952.8868 {z} 25.9104 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_8172
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_8172
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8172
if 
  not is_char_dead $valet[1]
goto_if_false @SCRASH3_8096
if 
  locate_char_any_means_3d $valet[1] {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_8096
56@ = 2

:SCRASH3_8096
if 
  not is_char_dead $valet[0]
goto_if_false @SCRASH3_8167
if 
  locate_char_any_means_3d $valet[0] {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_8167
56@ = 2

:SCRASH3_8167
remove_blip 57@

:SCRASH3_8172
if 
  56@ == 2
goto_if_false @SCRASH3_8206
56@ = 3
clear_prints 
281@ = 14

:SCRASH3_8206
if 
  106@ == 1
goto_if_false @SCRASH3_8406
77@ = get_car_char_is_using $scplayer
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_8406
78@ = get_car_char_is_using 37@
if 
  not is_int_lvar_equal_to_int_lvar 77@ == 78@
goto_if_false @SCRASH3_8406
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8406
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8406
clear_prints 
print 'VAL_15' {time} 7000 {flag} 1
65@ = 7
remove_blip 57@
remove_blip 59@
59@ = add_blip_for_coord -2045.252 {y} 178.7994 {z} 27.8359
set_car_health $sc3_missioncar {health} 1000
$portacabin_timer = 150000
display_onscreen_timer_with_string $portacabin_timer {direction} TimerDirection.Down {text} 'VAL_21'
67@ = 1

:SCRASH3_8406
if 
  65@ > 6
goto_if_false @SCRASH3_8635
if or
  10 > 65@
  65@ == 13
  65@ == 20
goto_if_false @SCRASH3_8635
if 
  112@ <> 1
goto_if_false @SCRASH3_8635
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8635
if 
  not is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8579
if 
  85@ == 1
goto_if_false @SCRASH3_8579
85@ = 0
remove_blip 60@
60@ = add_blip_for_car $sc3_missioncar
set_blip_as_friendly 60@ {state} True
change_blip_display 59@ {display} BlipDisplay.Neither
clear_prints 
print 'VAL_29' {time} 5000 {flag} 1

:SCRASH3_8579
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8635
if 
  85@ == 0
goto_if_false @SCRASH3_8635
85@ = 1
remove_blip 60@
change_blip_display 59@ {display} BlipDisplay.BlipOnly

:SCRASH3_8635
if 
  65@ == 7
goto_if_false @SCRASH3_8788
if 
  locate_char_in_car_3d $scplayer {x} -2033.626 {y} 178.856 {z} 27.8359 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_8788
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8788
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8788
remove_blip 59@
59@ = add_blip_for_coord -2045.947 {y} 178.5964 {z} 28.1397
change_blip_display 59@ {display} BlipDisplay.BlipOnly
clear_prints 
open_garage 'HBGDSFS'
65@ = 80

:SCRASH3_8788
if 
  65@ == 80
goto_if_false @SCRASH3_8988
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8988
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2038.0551 {y} 186.7164 {z} 31.0085 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.704 {y} 185.8301 {z} 30.7068 {switchStyle} SwitchType.JumpCut
set_car_coordinates $sc3_missioncar {x} -2033.626 {y} 178.856 {z} 27.8359
set_car_heading $sc3_missioncar {heading} 90.0
114@ = open_sequence_task 
task_pause -1 {time} 1000
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -2047.517 {y} 178.5924 {z} 27.8359 {speed} 7.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_any_car -1
close_sequence_task 114@
perform_sequence_task $scplayer {sequence} 114@
clear_sequence_task 114@
65@ = 81

:SCRASH3_8988
if 
  65@ == 81
goto_if_false @SCRASH3_9049
105@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_9049
do_fade 700 {direction} Fade.Out
65@ = 82

:SCRASH3_9049
if 
  65@ == 82
goto_if_false @SCRASH3_9114
if 
  not get_fading_status 
goto_if_false @SCRASH3_9114
close_garage 'HBGDSFS'
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
65@ = 83

:SCRASH3_9114
if 
  65@ == 83
goto_if_false @SCRASH3_9427
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_9427
if 
  is_garage_closed 'HBGDSFS'
goto_if_false @SCRASH3_9427
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9232
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_9232
request_model 551

:SCRASH3_9237
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_9264
wait 0
goto @SCRASH3_9237

:SCRASH3_9264
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9332
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_9332
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_20' {time} 5000 {flag} 1
print 'VAL_A31' {time} 5000 {flag} 1
set_player_control $player1 {state} True

:SCRASH3_9427
if 
  65@ == 20
goto_if_false @SCRASH3_10007
if 
  not locate_char_any_means_3d $scplayer {x} -2037.239 {y} 179.5294 {z} 28.316 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_9543
65@ = 7
remove_blip 59@
59@ = add_blip_for_coord -2033.626 {y} 178.856 {z} 27.8359
clear_prints 
print 'VAL_51' {time} 5000 {flag} 1

:SCRASH3_9543
if 
  locate_char_in_car_3d $scplayer {x} -2045.947 {y} 178.5964 {z} 28.1397 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SCRASH3_10007
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10007
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10007
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} $sc3_missioncar {actionId} TempAction.HandbrakeStraight {time} 2000000
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10007
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10007
do_fade 1000 {direction} Fade.Out

:SCRASH3_9690
if 
  get_fading_status 
goto_if_false @SCRASH3_9714
wait 0
goto @SCRASH3_9690

:SCRASH3_9714
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9773
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_9773
request_model 551

:SCRASH3_9778
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_9805
wait 0
goto @SCRASH3_9778

:SCRASH3_9805
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
set_target_car_for_mission_garage 'HBGDSFS' {vehicle} $sc3_missioncar
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9887
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_9887
set_camera_behind_player 
restore_camera_jumpcut 
wait 1000
do_fade 500 {direction} Fade.In

:SCRASH3_9903
if 
  get_fading_status 
goto_if_false @SCRASH3_9927
wait 0
goto @SCRASH3_9903

:SCRASH3_9927
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_20' {time} 5000 {flag} 1
print 'VAL_A31' {time} 5000 {flag} 1
set_player_control $player1 {state} True

:SCRASH3_10007
if 
  65@ == 8
goto_if_false @SCRASH3_10137
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10137
if 
  locate_car_3d $sc3_missioncar {x} -1780.069 {y} 970.9553 {z} 23.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_10137
print 'VAL_32' {time} 5000 {flag} 1
remove_blip 59@
59@ = add_blip_for_coord -1688.214 {y} 987.1218 {z} 16.5855
65@ = 9

:SCRASH3_10137
if 
  67@ == 1
goto_if_false @SCRASH3_10205
if 
  $portacabin_timer == 0
goto_if_false @SCRASH3_10205
clear_prints 
gosub @SCRASH3_17346
print 'VAL_47' {time} 5000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_10205
if 
  65@ == 9
goto_if_false @SCRASH3_10641
if 
  85@ == 1
goto_if_false @SCRASH3_10641
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10641
if 
  locate_stopped_car_3d $sc3_missioncar {x} -1688.214 {y} 987.1218 {z} 16.5855 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_10641
set_player_control $player1 {state} False
task_leave_any_car $scplayer
lock_car_doors $sc3_missioncar {lockStatus} CarLock.LockoutPlayerOnly
remove_blip 59@
remove_blip 60@
59@ = add_blip_for_coord -1742.3 {y} 940.8106 {z} 23.8972
change_blip_display 59@ {display} BlipDisplay.BlipOnly
clear_onscreen_timer $portacabin_timer
67@ = 0
clear_prints 
print 'VAL_A30' {time} 6000 {flag} 1
65@ = 30
113@ = create_char PedType.Mission1 {modelId} 189 {x} -1772.809 {y} 977.8892 {z} 22.6614
set_char_only_damaged_by_player 113@ {state} True
114@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1710.667 {y} 985.5689 {z} 16.5936 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2
task_car_temp_action -1 {vehicle} $sc3_missioncar {actionId} TempAction.ReverseRight {time} 1400
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1764.082 {y} 982.5382 {z} 21.1042 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1754.889 {y} 952.3113 {z} 23.7422 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1754.1169 {y} 959.0662 {z} 23.8828 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 147.0
close_sequence_task 114@
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.Mission1 {modelId} 240 {x} -1755.392 {y} 946.9804 {z} 23.8906
set_char_heading 37@ {heading} 0.0
perform_sequence_task 113@ {sequence} 114@
clear_sequence_task 114@

:SCRASH3_10641
if 
  65@ == 30
goto_if_false @SCRASH3_11109
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_11109
if 
  not is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10741
if 
  112@ == 0
goto_if_false @SCRASH3_10741
set_player_control $player1 {state} True
112@ = 1
set_car_proofs $sc3_missioncar {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SCRASH3_10741
if 
  is_car_in_area_3d $sc3_missioncar {leftBottomX} -1764.199 {leftBottomY} 946.595 {leftBottomZ} 28.3546 {rightTopX} -1744.0861 {rightTopY} 957.879 {rightTopZ} 22.6221 {drawSphere} False
goto_if_false @SCRASH3_10880
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_10880
105@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_10880
114@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2
task_car_drive_wander -1 {vehicle} $sc3_missioncar {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 114@
perform_sequence_task 37@ {sequence} 114@
clear_sequence_task 114@

:SCRASH3_10880
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_10947
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10947
clear_prints 
gosub @SCRASH3_17346
print 'VAL_A34' {time} 5000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_10947
if 
  locate_char_on_foot_3d $scplayer {x} -1742.3 {y} 940.8106 {z} 23.8972 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_11028
67@ = 0
set_player_control $player1 {state} False
remove_blip 59@
65@ = 10
72@ = 90

:SCRASH3_11028
if 
  is_car_visibly_damaged $sc3_missioncar
goto_if_false @SCRASH3_11109
if 
  not is_char_dead 113@
goto_if_false @SCRASH3_11109
if 
  not is_char_in_car 113@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_11109
gosub @SCRASH3_17346
print 'VAL_B2' {time} 4000 {flag} 1
goto @SCRASH3_18100

:SCRASH3_11109
if 
  65@ > 7
goto_if_false @SCRASH3_11225
if 
  10 > 65@
goto_if_false @SCRASH3_11225
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_11225
if 
  is_car_visibly_damaged $sc3_missioncar
goto_if_false @SCRASH3_11225
65@ = 7
print 'VAL_31' {time} 5000 {flag} 1
remove_blip 59@
59@ = add_blip_for_coord -2045.252 {y} 178.7994 {z} 27.8359

:SCRASH3_11225
if 
  65@ == 10
goto_if_false @SCRASH3_14734
set_uses_collision_of_closest_object_of_type -1741.792 {y} 939.731 {z} 23.8906 {radius} 2.5 {modelId} #LAMPPOST3 {state} False
if 
  72@ == 90
goto_if_false @SCRASH3_11307
request_model 330
338@ = 1
72@ = 91

:SCRASH3_11307
if 
  72@ == 91
goto_if_false @SCRASH3_11523
if 
  has_model_loaded 330
goto_if_false @SCRASH3_11523
switch_widescreen True
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
clear_area -1741.792 {y} 939.731 {z} 23.8906 {radius} 20.0 {clearParticles} False
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_11463
warp_char_from_car_to_coord $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906
goto @SCRASH3_11483

:SCRASH3_11463
set_char_coordinates $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906

:SCRASH3_11483
set_char_heading $scplayer {heading} 270.0
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 2500
72@ = 89

:SCRASH3_11523
if 
  72@ == 89
goto_if_false @SCRASH3_11581
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_11581
281@ = 1
282@ = 2
72@ = 88

:SCRASH3_11581
if 
  72@ == 88
goto_if_false @SCRASH3_11652
if and
  281@ == 0
  282@ == 0
goto_if_false @SCRASH3_11652
task_use_mobile_phone $scplayer {start} False
do_fade 1000 {direction} Fade.Out
$sc3_missioncar_alive = 0
72@ = 87

:SCRASH3_11652
if 
  72@ == 87
goto_if_false @SCRASH3_11784
if 
  not get_fading_status 
goto_if_false @SCRASH3_11784
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_11704
delete_char 37@

:SCRASH3_11704
72@ = 99
$freeze_creating_drop_off_cars = 1
if 
  not is_car_dead $drop_off_car
goto_if_false @SCRASH3_11739
delete_car $drop_off_car

:SCRASH3_11739
if 
  not is_car_dead $valet_pickup_car
goto_if_false @SCRASH3_11760
delete_car $valet_pickup_car

:SCRASH3_11760
clear_area -1741.792 {y} 939.731 {z} 23.0 {radius} 80.0 {clearParticles} False

:SCRASH3_11784
if 
  72@ == 99
goto_if_false @SCRASH3_12015
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
$last_player_x = 1
request_collision -1759.449 {y} 954.4333
load_scene -1759.449 {y} 954.4333 {z} 23.72
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_11895
warp_char_from_car_to_coord $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906
goto @SCRASH3_11915

:SCRASH3_11895
set_char_coordinates $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906

:SCRASH3_11915
set_char_heading $scplayer {heading} 40.0
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_12008
delete_car $sc3_missioncar

:SCRASH3_12008
72@ = 98

:SCRASH3_12015
if 
  72@ == 98
goto_if_false @SCRASH3_12182
if and
  has_model_loaded 551
  has_model_loaded 346
  has_model_loaded 240
  has_animation_loaded "POLICE"
  has_animation_loaded "MISC"
goto_if_false @SCRASH3_12149
if and
  has_model_loaded 281
  has_car_recording_been_loaded 165
  has_car_recording_been_loaded 166
  has_model_loaded 597
goto_if_false @SCRASH3_12122
72@ = 0
goto @SCRASH3_12142

:SCRASH3_12122
request_model 597
request_car_recording 166
request_car_recording 165
request_model 281

:SCRASH3_12142
goto @SCRASH3_12182

:SCRASH3_12149
request_animation "MISC"
request_animation "POLICE"
request_model 240
request_model 346
request_model 551

:SCRASH3_12182
if 
  72@ == 0
goto_if_false @SCRASH3_12645
do_fade 800 {direction} Fade.In
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -1759.449 {y} 954.4333 {z} 23.72 {radius} 50.0 {clearParticles} False
set_car_density_multiplier 0.0
$sc3_missioncar = create_car 551 {x} -1759.449 {y} 954.4333 {z} 23.72
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
115@ = create_car 597 {x} -1711.399 {y} 903.0281 {z} 24.1296
116@ = create_car 597 {x} -1711.016 {y} 893.7642 {z} 24.0975
switch_car_siren 115@ {state} True
switch_car_siren 116@ {state} True
121@ = create_char_inside_car 115@ {pedType} PedType.CivMale {modelId} 281
122@ = create_char_inside_car 116@ {pedType} PedType.CivMale {modelId} 281
give_weapon_to_char 121@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 122@ {weaponType} WeaponType.Pistol {ammo} 99999
37@ = create_char PedType.CivMale {modelId} 240 {x} -1763.276 {y} 946.1676 {z} 23.8905
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_12436
warp_char_into_car 37@ {vehicle} $sc3_missioncar

:SCRASH3_12436
117@ = open_sequence_task 
task_pause -1 {time} 6500
task_leave_any_car -1
task_hands_up -1 {time} 3000
close_sequence_task 117@
perform_sequence_task 37@ {sequence} 117@
clear_sequence_task 117@
set_car_heading $sc3_missioncar {heading} 90.0
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PLYRLEAN_LOOP" {animationFile} "MISC" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
$sc3_countdown, $cunt_x, $player_z = get_char_coordinates $scplayer
set_fixed_camera_position -1740.345 {y} 939.6078 {z} 25.3651 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1741.223 {y} 940.0797 {z} 25.2814 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 325@ = 37@
set_lvar_int_to_lvar_int 326@ = 121@
set_lvar_int_to_lvar_int 327@ = 122@
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1000
72@ = 1

:SCRASH3_12645
if 
  72@ == 1
goto_if_false @SCRASH3_12689
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12689
72@ = 2

:SCRASH3_12689
if 
  72@ == 2
goto_if_false @SCRASH3_12825
if and
  not is_car_dead 115@
  not is_car_dead 116@
goto_if_false @SCRASH3_12802
if and
  has_car_recording_been_loaded 165
  has_car_recording_been_loaded 166
goto_if_false @SCRASH3_12792
start_playback_recorded_car 115@ {path} 165
start_playback_recorded_car 116@ {path} 166
set_playback_speed 115@ {speed} 0.8
set_playback_speed 116@ {speed} 0.8
goto @SCRASH3_12802

:SCRASH3_12792
request_car_recording 165
request_car_recording 166

:SCRASH3_12802
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3000
72@ = 3

:SCRASH3_12825
if 
  72@ == 3
goto_if_false @SCRASH3_12869
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12869
72@ = 4

:SCRASH3_12869
if 
  72@ == 4
goto_if_false @SCRASH3_13087
clear_prints 
281@ = 3
282@ = 2
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_13064
if 
  not is_char_dead 121@
goto_if_false @SCRASH3_12972
117@ = open_sequence_task 
task_leave_any_car -1
task_aim_gun_at_char -1 {target} 37@ {time} 3000
close_sequence_task 117@
perform_sequence_task 121@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_12972
if 
  not is_char_dead 122@
goto_if_false @SCRASH3_13064
117@ = open_sequence_task 
task_leave_any_car -1
task_go_to_coord_while_aiming -1 {x} -1762.369 {y} 951.1278 {z} 23.7487 {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 1.0 {target} 37@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
close_sequence_task 117@
perform_sequence_task 122@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_13064
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 6200
72@ = 5

:SCRASH3_13087
if 
  72@ == 5
goto_if_false @SCRASH3_13149
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13149
if 
  281@ == 0
goto_if_false @SCRASH3_13149
72@ = 6

:SCRASH3_13149
if 
  72@ == 6
goto_if_false @SCRASH3_13566
281@ = 5
282@ = 3
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 17333
set_lvar_int_to_lvar_int 119@ = TIMERA
119@ += 17633
set_lvar_int_to_lvar_int 118@ = TIMERA
118@ += 4313
if and
  not is_char_dead 121@
  not is_char_dead 122@
goto_if_false @SCRASH3_13274
set_current_char_weapon 121@ {weaponType} WeaponType.Unarmed
set_current_char_weapon 122@ {weaponType} WeaponType.Unarmed
set_char_heading 121@ {heading} 0.0

:SCRASH3_13274
set_fixed_camera_position -1768.048 {y} 955.8058 {z} 25.1327 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1767.238 {y} 955.2321 {z} 25.0132 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_13346
pop_car_boot $sc3_missioncar

:SCRASH3_13346
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_13454
clear_char_tasks_immediately 37@
set_char_collision 37@ {state} False
set_char_coordinates 37@ {x} -1761.71 {y} 952.9333 {z} 23.79
set_char_heading 37@ {heading} 0.0
freeze_char_position 37@ {state} True
task_play_anim_non_interruptable 37@ {animationName} "CRM_DRGBST_01" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SCRASH3_13454
set_char_coordinates 121@ {x} -1761.724 {y} 952.4515 {z} 23.72
clear_char_tasks_immediately 122@
set_char_coordinates 122@ {x} -1755.75 {y} 953.9333 {z} 23.72
task_play_anim_non_interruptable 121@ {animationName} "PLC_DRGBST_01" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 25000
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 7606
72@ = 7

:SCRASH3_13566
if 
  72@ == 7
goto_if_false @SCRASH3_13680
if 
  118@ <> 0
goto_if_false @SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 118@
goto_if_false @SCRASH3_13636
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundBonnetDent
118@ = 0

:SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13680
if 
  281@ == 0
goto_if_false @SCRASH3_13680
72@ = 8

:SCRASH3_13680
if 
  72@ == 8
goto_if_false @SCRASH3_13855
281@ = 8
282@ = 2
set_fixed_camera_position -1757.7469 {y} 952.7751 {z} 24.8666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1756.9091 {y} 953.301 {z} 25.0154 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 122@
goto_if_false @SCRASH3_13832
set_char_heading 122@ {heading} 90.0
task_play_anim_non_interruptable 122@ {animationName} "PLC_DRGBST_02" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SCRASH3_13832
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3267
72@ = 9

:SCRASH3_13855
if 
  72@ == 9
goto_if_false @SCRASH3_13917
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13917
if 
  281@ == 0
goto_if_false @SCRASH3_13917
72@ = 10

:SCRASH3_13917
if 
  72@ == 10
goto_if_false @SCRASH3_14023
281@ = 10
282@ = 2
set_fixed_camera_position -1768.048 {y} 955.8058 {z} 25.1327 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1767.238 {y} 955.2321 {z} 25.0132 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 750
72@ = 80

:SCRASH3_14023
if 
  72@ == 80
goto_if_false @SCRASH3_14091
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @SCRASH3_14091
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundPunchPed
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 500
72@ = 81

:SCRASH3_14091
if 
  72@ == 81
goto_if_false @SCRASH3_14159
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 119@
goto_if_false @SCRASH3_14159
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundBonnetDent
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1900
72@ = 11

:SCRASH3_14159
if and
  72@ == 11
  281@ == 0
goto_if_false @SCRASH3_14448
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14448
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 121@
  not is_char_dead 122@
  not is_car_dead 115@
  not is_car_dead 116@
  not is_char_dead 37@
goto_if_false @SCRASH3_14425
warp_char_into_car 121@ {vehicle} 115@
warp_char_into_car 122@ {vehicle} 116@
freeze_char_position 37@ {state} False
warp_char_into_car_as_passenger 37@ {handle} 116@ {seat} SeatId.RearLeft
task_car_drive_to_coord 122@ {vehicle} 116@ {x} -1790.405 {y} 905.0311 {z} 25.0203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
117@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 115@ {actionId} TempAction.ReverseRight {time} 800
task_car_drive_to_coord -1 {vehicle} 115@ {x} -1790.405 {y} 905.0311 {z} 25.0203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 117@
perform_sequence_task 121@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_14425
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 4000
72@ = 12

:SCRASH3_14448
if 
  72@ == 12
goto_if_false @SCRASH3_14734
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14734
72@ = 13
do_fade 1000 {direction} Fade.Out

:SCRASH3_14499
if 
  get_fading_status 
goto_if_false @SCRASH3_14523
wait 0
goto @SCRASH3_14499

:SCRASH3_14523
if 
  does_char_exist 113@
goto_if_false @SCRASH3_14544
delete_char 113@

:SCRASH3_14544
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14565
mark_car_as_no_longer_needed $sc3_missioncar

:SCRASH3_14565
if and
  not is_char_dead 121@
  not is_char_dead 122@
  not is_car_dead 115@
  not is_car_dead 116@
  not is_char_dead 37@
goto_if_false @SCRASH3_14626
delete_char 121@
delete_char 122@
delete_car 115@
delete_car 116@
delete_char 37@

:SCRASH3_14626
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14647
delete_car $sc3_missioncar

:SCRASH3_14647
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_14688
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:SCRASH3_14688
wait 1000
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
goto @SCRASH3_18132

:SCRASH3_14734
if 
  65@ == 13
goto_if_false @SCRASH3_15198
if 
  locate_stopped_char_in_car_3d $scplayer {x} -2045.252 {y} 178.7994 {z} 27.8359 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_14800

:SCRASH3_14800
if 
  is_char_in_area_in_car_3d $scplayer {leftBottomX} -2042.943 {leftBottomY} 167.5841 {leftBottomZ} 26.759 {rightTopX} -2055.2019 {rightTopY} 180.1328 {rightTopZ} 32.3919 {drawSphere} False
goto_if_false @SCRASH3_15198
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_15198
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_15198
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:SCRASH3_14897
if 
  get_fading_status 
goto_if_false @SCRASH3_14921
wait 0
goto @SCRASH3_14897

:SCRASH3_14921
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14980
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_14980
request_model 551

:SCRASH3_14985
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_15012
wait 0
goto @SCRASH3_14985

:SCRASH3_15012
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
set_target_car_for_mission_garage 'HBGDSFS' {vehicle} $sc3_missioncar
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_15094
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_15094
wait 1000
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:SCRASH3_15117
if 
  get_fading_status 
goto_if_false @SCRASH3_15141
wait 0
goto @SCRASH3_15117

:SCRASH3_15141
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_33' {time} 5000 {flag} 1

:SCRASH3_15198
if 
  65@ == 11
goto_if_false @SCRASH3_15216

:SCRASH3_15216
goto @SCRASH3_636

:SCRASH3_15223
if 
  151@ <> 0
goto_if_false @SCRASH3_15414
if 
  150@ == 0
goto_if_false @SCRASH3_15277
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 151@
150@ = 1

:SCRASH3_15277
if 
  150@ == 1
goto_if_false @SCRASH3_15340
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SCRASH3_15340
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @SCRASH3_15340
play_mission_audio MissionAudioSlot.Slot3
150@ = 2

:SCRASH3_15340
if 
  150@ == 2
goto_if_false @SCRASH3_15414
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SCRASH3_15414
clear_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 151@ = 152@
152@ = 0
set_lvar_int_to_lvar_int 153@ = 154@
154@ = 0
150@ = 0

:SCRASH3_15414
if 
  124@ <> 0
goto_if_false @SCRASH3_15614
if 
  125@ == 0
goto_if_false @SCRASH3_15492
125@ = 1
set_lvar_int_to_lvar_int 126@ = TIMERA
127@ = 0
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15492
if 
  125@ == 1
goto_if_false @SCRASH3_15614
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 334@
goto_if_false @SCRASH3_15614
set_lvar_int_to_lvar_int 281@ = 138@(127@,10i)
127@ += 1
148@ -= 1
if 
  148@ == 0
goto_if_false @SCRASH3_15594
124@ = 0
125@ = 0
goto @SCRASH3_15614

:SCRASH3_15594
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15614
if 
  149@ == 1
goto_if_false @SCRASH3_15678
if 
  not get_fading_status 
goto_if_false @SCRASH3_15678
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SCRASH3_15678
149@ = 0
280@ = 5

:SCRASH3_15678
switch_start 280@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SCRASH3_17344 {caseNum1} 0 {caseLabel1} @SCRASH3_15741 {caseNum2} 1 {caseLabel2} @SCRASH3_16265 {caseNum3} 2 {caseLabel3} @SCRASH3_16999 {caseNum4} 3 {caseLabel4} @SCRASH3_17091 {caseNum5} 4 {caseLabel5} @SCRASH3_17149 {caseNum6} 5 {caseLabel6} @SCRASH3_17263 {caseNum7} -1 {caseLabel7} @SCRASH3_17344

:SCRASH3_15741
if 
  280@ == 1
goto_if_false @SCRASH3_15809
332@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
336@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:SCRASH3_15809
set_lvar_text_label 157@s = 'SCR1_AA'
set_lvar_text_label 159@s = 'SCR1_AB'
set_lvar_text_label 161@s = 'SCR1_AC'
set_lvar_text_label 163@s = 'SCR1_AD'
set_lvar_text_label 165@s = 'SCR1_AE'
set_lvar_text_label 167@s = 'SCR1_AF'
set_lvar_text_label 169@s = 'SCR1_AG'
set_lvar_text_label 171@s = 'SCR1_AH'
set_lvar_text_label 173@s = 'SCR1_AJ'
set_lvar_text_label 175@s = 'SCR1_AK'
set_lvar_text_label 177@s = 'SCR1_AL'
set_lvar_text_label 179@s = 'SCR1_AM'
set_lvar_text_label 181@s = 'SCR1_BB'
set_lvar_text_label 183@s = 'SCR1_BA'
set_lvar_int_to_constant 236@ = 20400
set_lvar_int_to_constant 237@ = 20401
set_lvar_int_to_constant 238@ = 20406
set_lvar_int_to_constant 239@ = 20407
set_lvar_int_to_constant 240@ = 20408
set_lvar_int_to_constant 241@ = 20409
set_lvar_int_to_constant 242@ = 20410
set_lvar_int_to_constant 243@ = 20411
set_lvar_int_to_constant 244@ = 20412
set_lvar_int_to_constant 245@ = 20413
set_lvar_int_to_constant 246@ = 20414
set_lvar_int_to_constant 247@ = 20415
set_lvar_int_to_constant 248@ = 20403
set_lvar_int_to_constant 249@ = 20402
284@ = 1
285@ = 1
286@ = 3
287@ = 3
288@ = 2
289@ = 2
290@ = 3
291@ = 4
292@ = 4
293@ = 2
294@ = 3
295@ = 3
296@ = 0
297@ = 0
set_lvar_int_to_var_int 324@ = $scplayer
280@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 236@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 237@
276@ = 1
277@ = 2
goto @SCRASH3_17344

:SCRASH3_16265
if 
  281@ <> 0
goto_if_false @SCRASH3_16992
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SCRASH3_16992
if 
  is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_16335
278@ = 1
goto @SCRASH3_16398

:SCRASH3_16335
if 
  is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16368
278@ = 2
goto @SCRASH3_16398

:SCRASH3_16368
278@ = 1
set_lvar_int_to_lvar_int 276@ = 281@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 235@(281@,40i)

:SCRASH3_16398
if 
  has_mission_audio_loaded 278@
goto_if_false @SCRASH3_16980
set_lvar_int_to_lvar_int 331@ = 283@(281@,40i)
set_lvar_int_to_lvar_int 332@ = 323@(331@,7i)
if 
  338@ <> 1
goto_if_false @SCRASH3_16626
335@ = 1
337@ = 0

:SCRASH3_16470
if 
  7 > 335@
goto_if_false @SCRASH3_16626
set_lvar_int_to_lvar_int 336@ = 323@(335@,7i)
if 
  336@ <> 0
goto_if_false @SCRASH3_16612
if 
  not is_int_lvar_equal_to_int_lvar 336@ == 332@
goto_if_false @SCRASH3_16612
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_16612
if 
  not is_char_dead 336@
goto_if_false @SCRASH3_16612
if 
  locate_char_any_means_char_3d 332@ {target} 336@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_16612
337@ += 1

:SCRASH3_16612
335@ += 1
goto @SCRASH3_16470

:SCRASH3_16626
if or
  338@ == 1
  337@ > 0
  283@(281@,40i) == 0
goto_if_false @SCRASH3_16973
if 
  283@(281@,40i) <> 0
goto_if_false @SCRASH3_16753
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_16753
attach_mission_audio_to_char 278@ {handle} 332@
if 
  not is_char_talking 332@
goto_if_false @SCRASH3_16746
330@ = 1
start_char_facial_talk 332@ {duration} 15000
goto @SCRASH3_16753

:SCRASH3_16746
disable_char_speech 332@ {stopNow} False

:SCRASH3_16753
if 
  283@(281@,40i) == 0
goto_if_false @SCRASH3_16782
330@ = 1

:SCRASH3_16782
if 
  330@ == 1
goto_if_false @SCRASH3_16973
play_mission_audio 278@
clear_prints 
print 155@(281@,40s) {time} 10000 {flag} 1
280@ += 1
330@ = 0
281@ += 1
set_lvar_int_to_lvar_int 279@ = 281@
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_16973
if 
  278@ == 1
goto_if_false @SCRASH3_16935
if 
  not is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16928
load_mission_audio MissionAudioSlot.Slot2 {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 277@ = 281@

:SCRASH3_16928
goto @SCRASH3_16973

:SCRASH3_16935
if 
  not is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_16973
load_mission_audio MissionAudioSlot.Slot1 {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 276@ = 281@

:SCRASH3_16973
goto @SCRASH3_16992

:SCRASH3_16980
load_mission_audio 278@ {audioId} 235@(281@,40i)

:SCRASH3_16992
goto @SCRASH3_17344

:SCRASH3_16999
if 
  has_mission_audio_finished 278@
goto_if_false @SCRASH3_17029
280@ += 1
goto @SCRASH3_17084

:SCRASH3_17029
if 
  does_char_exist 332@
goto_if_false @SCRASH3_17068
if 
  is_char_dead 332@
goto_if_false @SCRASH3_17068
280@ += 1

:SCRASH3_17068
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17084

:SCRASH3_17084
goto @SCRASH3_17344

:SCRASH3_17091
clear_mission_audio 278@
275@(278@,3i) = 0
clear_prints 
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17135
stop_char_facial_talk 332@
enable_char_speech 332@

:SCRASH3_17135
280@ += 1
goto @SCRASH3_17344

:SCRASH3_17149
281@ += 1
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_17202
load_mission_audio 278@ {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 275@(278@,3i) = 281@

:SCRASH3_17202
282@ -= 1
if 
  282@ <= 0
goto_if_false @SCRASH3_17241
281@ = 0
goto @SCRASH3_17249

:SCRASH3_17241
set_lvar_int_to_lvar_int 281@ = 279@

:SCRASH3_17249
280@ = 1
goto @SCRASH3_17344

:SCRASH3_17263
280@ = 1
281@ = 0
282@ = 0
124@ = 0
148@ = 0
clear_mission_audio 278@
275@(278@,3i) = 0
clear_prints 
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17337
enable_char_speech 332@

:SCRASH3_17337
goto @SCRASH3_17344

:SCRASH3_17344
return 

:SCRASH3_17346
clear_prints 
if 
  not is_minigame_in_progress 
goto_if_false @SCRASH3_17368
set_player_control $player1 {state} False

:SCRASH3_17368
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2039.153 {leftBottomY} 182.7238 {leftBottomZ} 20.8154 {rightTopX} -2057.0869 {rightTopY} 150.6935 {rightTopZ} 34.1252 {drawSphere} False
goto_if_false @SCRASH3_17764
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_17757
do_fade 1000 {direction} Fade.Out

:SCRASH3_17448
if 
  get_fading_status 
goto_if_false @SCRASH3_17472
wait 0
goto @SCRASH3_17448

:SCRASH3_17472
$car = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_17523
$car = get_car_char_is_using $scplayer
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_17523
clear_area_of_cars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
clear_area_of_chars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
set_char_coordinates_no_offset $scplayer {x} -2037.886 {y} 178.9478 {z} 27.8359
set_char_heading $scplayer {heading} 270.0
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_17654
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_17654
delete_char 37@

:SCRASH3_17654
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$valet_mission_terminate = 1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:SCRASH3_17733
if 
  get_fading_status 
goto_if_false @SCRASH3_17757
wait 0
goto @SCRASH3_17733

:SCRASH3_17757
goto @SCRASH3_18098

:SCRASH3_17764
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_18098
do_fade 1000 {direction} Fade.Out

:SCRASH3_17796
if 
  get_fading_status 
goto_if_false @SCRASH3_17820
wait 0
goto @SCRASH3_17796

:SCRASH3_17820
$car = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_17871
$car = get_car_char_is_using $scplayer
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_17871
clear_area_of_cars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
clear_area_of_chars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
if 
  not is_car_dead $car
goto_if_false @SCRASH3_17966
warp_char_into_car $scplayer {vehicle} $car
goto @SCRASH3_18014

:SCRASH3_17966
if 
  $car <> 0
goto_if_false @SCRASH3_18014
set_char_coordinates_no_offset $scplayer {x} -2037.886 {y} 178.9478 {z} 27.8359
set_char_heading $scplayer {heading} 270.0

:SCRASH3_18014
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_18051
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_18051
delete_char 37@

:SCRASH3_18051
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:SCRASH3_18074
if 
  get_fading_status 
goto_if_false @SCRASH3_18098
wait 0
goto @SCRASH3_18074

:SCRASH3_18098
return 

:SCRASH3_18100
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$valet_mission_terminate = 1
$valet_unlocked = 0
return 

:SCRASH3_18132
set_int_stat StatId.PassedZero1 {value} 1
$valet_unlocked = 1
$valet_oddjob_opened = 1
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
set_int_stat StatId.PassedScrash1 {value} 1
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
$flag_scrash_mission_counter += 1
$flag_player_got_valet_uniform = 1
register_mission_passed 'SCRA_1'
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} RadarSprite.CJ
remove_blip $scrash_contact_blip
return 

:SCRASH3_18244
set_script_limit_to_gang_size 99
$playing_scrash1 = 0
$freeze_creating_drop_off_cars = 0
$force_valet_on_mission = 0
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
clear_onscreen_timer $portacabin_timer
remove_blip 59@
remove_blip 60@
remove_blip 57@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
set_uses_collision_of_closest_object_of_type -1741.792 {y} 939.731 {z} 23.8906 {radius} 2.5 {modelId} #LAMPPOST3 {state} True
dont_suppress_car_model 551
switch_ped_roads_back_to_original -1729.549 {leftBottomY} 942.886 {leftBottomZ} 40.3585 {rightTopX} -1742.7729 {rightTopY} 937.7814 {rightTopZ} 10.1928
switch_ped_roads_back_to_original -1768.524 {leftBottomY} 938.887 {leftBottomZ} 40.7496 {rightTopX} -1780.765 {rightTopY} 943.4574 {rightTopZ} 10.0929
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 415
mark_model_as_no_longer_needed 551
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 252
mark_model_as_no_longer_needed 330
remove_car_recording 155
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed 346
remove_animation "POLICE"
remove_animation "MISC"
remove_car_recording 165
remove_car_recording 166
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_18577
set_car_proofs $sc3_missioncar {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SCRASH3_18577
$timer_mobile_start = get_game_timer 
$last_player_x = 0
$onmission = 0
$freeze_creating_drop_off_cars = 0
$sc3_missioncar_alive = 0
$10922 = 0
$stored_shop_time = 0
mission_has_finished 
return 

//-------------Mission 52---------------
// Originally: Snail Trail

:SCRASH2
script_name 'SCRASH2'
$cunt_y = 0
gosub @SCRASH2_54
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH2_45
gosub @SCRASH2_20955

:SCRASH2_45
gosub @SCRASH2_21293
terminate_this_script 

:SCRASH2_54
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
144@ = 0
145@ = 0
146@ = 0
149@ = 0
153@ = 0
155@ = 1
161@ = 0
164@ = 0
165@ = 0
if 
  34@ == -99
goto_if_false @SCRASH2_605
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
81@ = create_mission_train 11 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False
87@ = create_car 420 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 468 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:SCRASH2_404
create_mission_train 10 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False {var_handle} 84@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_404
78@ = create_char PedType.CivMale {modelId} 147 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.CivMale {modelId} 18 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.CivMale {modelId} 46 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
90@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
91@ = add_blip_for_car 81@
92@ = add_blip_for_char 78@
93@ = add_blip_for_char 80@
94@ = add_blip_for_pickup 95@

:SCRASH2_605
load_mission_text 'SCRASH2'
gosub @SCRASH2_20312
96@ = load_char_decision_maker DecisionMakerType.Empty
97@ = load_char_decision_maker DecisionMakerType.Tough
gosub @SCRASH2_20489
131@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
155@ = 1

:SCRASH2_661
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SCRASH2_694
36@ = 1
goto @SCRASH2_1017

:SCRASH2_694
gosub @SCRASH2_18834
gosub @SCRASH2_19245
if or
  38@ == 1
  39@ == 1
goto_if_false @SCRASH2_740
goto @SCRASH2_1017

:SCRASH2_740
gosub @SCRASH2_20209
gosub @SCRASH2_20243
if 
  is_char_dead $scplayer
goto_if_false @SCRASH2_784
37@ = 1
goto @SCRASH2_1017

:SCRASH2_784
if 
  34@ == 0
goto_if_false @SCRASH2_842
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:SCRASH2_842
if 
  34@ == 1
goto_if_false @SCRASH2_867
gosub @SCRASH2_1165

:SCRASH2_867
if 
  34@ == 2
goto_if_false @SCRASH2_892
gosub @SCRASH2_1286

:SCRASH2_892
if 
  34@ == 3
goto_if_false @SCRASH2_917
gosub @SCRASH2_2139

:SCRASH2_917
if 
  34@ == 4
goto_if_false @SCRASH2_942
gosub @SCRASH2_3032

:SCRASH2_942
if 
  34@ == 5
goto_if_false @SCRASH2_967
gosub @SCRASH2_5855

:SCRASH2_967
if 
  34@ == 6
goto_if_false @SCRASH2_992
gosub @SCRASH2_6907

:SCRASH2_992
if 
  34@ == 7
goto_if_false @SCRASH2_1017
36@ = 1

:SCRASH2_1017
if 
  38@ == 0
goto_if_false @SCRASH2_1117
if 
  37@ == 0
goto_if_false @SCRASH2_1101
if 
  36@ == 0
goto_if_false @SCRASH2_1085
goto @SCRASH2_661
goto @SCRASH2_1094

:SCRASH2_1085
gosub @SCRASH2_21206
return 

:SCRASH2_1094
goto @SCRASH2_1110

:SCRASH2_1101
gosub @SCRASH2_20955
return 

:SCRASH2_1110
goto @SCRASH2_1119

:SCRASH2_1117
return 

:SCRASH2_1119
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:SCRASH2_1165
if 
  35@ == 0
goto_if_false @SCRASH2_1213
gosub @SCRASH2_10051
print_now 'SCR2_21' {time} 7000 {flag} 1
35@ += 1

:SCRASH2_1213
if 
  35@ == 1
goto_if_false @SCRASH2_1259
if 
  has_pickup_been_collected 95@
goto_if_false @SCRASH2_1259
remove_blip 94@
35@ = 99

:SCRASH2_1259
if 
  35@ == 99
goto_if_false @SCRASH2_1284
gosub @SCRASH2_20282

:SCRASH2_1284
return 

:SCRASH2_1286
if and
  35@ > 0
  is_char_dead 78@
goto_if_false @SCRASH2_1318
37@ = 1
return 

:SCRASH2_1318
if and
  35@ > 1
  is_car_dead 81@
goto_if_false @SCRASH2_1350
37@ = 1
return 

:SCRASH2_1350
if 
  35@ == 0
goto_if_false @SCRASH2_1465
gosub @SCRASH2_10187
132@ = -1952.791
133@ = 136.5608
134@ = 25.2734
90@ = add_blip_for_coord 132@ {y} 133@ {z} 134@
change_blip_display 90@ {display} BlipDisplay.BlipOnly
print_now 'SCR2_00' {time} 8000 {flag} 1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 6000
35@ += 1

:SCRASH2_1465
if 
  35@ == 1
goto_if_false @SCRASH2_1552
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1552
gosub @SCRASH2_10112
set_train_speed 81@ {speed} 20.0
set_train_cruise_speed 81@ {speed} 20.0
print 'SCR2_01' {time} 10000 {flag} 1
35@ += 1

:SCRASH2_1552
if 
  35@ == 2
goto_if_false @SCRASH2_1635
if 
  locate_car_2d 81@ {x} -1944.545 {y} 130.8166 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SCRASH2_1635
set_train_speed 81@ {speed} 4.0
set_train_cruise_speed 81@ {speed} 0.0
35@ += 1

:SCRASH2_1635
if 
  35@ == 3
goto_if_false @SCRASH2_1717
if 
  is_car_stopped 81@
goto_if_false @SCRASH2_1717
82@ = get_train_carriage 81@ {number} 1
task_enter_car_as_passenger 78@ {vehicle} 82@ {time} 500 {seat} -1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1717
if 
  35@ == 4
goto_if_false @SCRASH2_1938
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  is_char_in_area_2d $scplayer {leftBottomX} 64@ {leftBottomY} 65@ {rightTopX} 67@ {rightTopY} 68@ {drawSphere} False
goto_if_false @SCRASH2_1877
lock_car_doors 81@ {lockStatus} CarLock.LockoutPlayerOnly
set_train_cruise_speed 81@ {speed} 40.0
remove_blip 90@
91@ = add_blip_for_car 81@
remove_char_elegantly 78@
167@ = 0
print_now 'SCR2_02' {time} 10000 {flag} 1
35@ = 99
goto @SCRASH2_1938

:SCRASH2_1877
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1938
lock_car_doors 81@ {lockStatus} CarLock.LockoutPlayerOnly
set_train_cruise_speed 81@ {speed} 5.0
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1938
if 
  35@ == 5
goto_if_false @SCRASH2_2112
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  is_char_in_area_2d $scplayer {leftBottomX} 64@ {leftBottomY} 65@ {rightTopX} 67@ {rightTopY} 68@ {drawSphere} False
goto_if_false @SCRASH2_2079
remove_blip 90@
91@ = add_blip_for_car 81@
print_now 'SCR2_02' {time} 10000 {flag} 1
set_train_cruise_speed 81@ {speed} 10.0
35@ = 99
goto @SCRASH2_2112

:SCRASH2_2079
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2112
37@ = 1
45@ = 1

:SCRASH2_2112
if 
  35@ == 99
goto_if_false @SCRASH2_2137
gosub @SCRASH2_20282

:SCRASH2_2137
return 

:SCRASH2_2139
if 
  is_car_dead 81@
goto_if_false @SCRASH2_2164
37@ = 1
return 

:SCRASH2_2164
if 
  35@ == 0
goto_if_false @SCRASH2_2314
119@ = 0
120@ = 0
121@ = 0
122@ = 0
138@ = 0
139@ = 0
140@ = 0
132@ = 833.7101
133@ = -1383.6429
134@ = -2.6352
48@ = 0

:SCRASH2_2268
123@(48@,3i) = -1
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_2268
set_wanted_multiplier 0.3
35@ += 1

:SCRASH2_2314
if 
  35@ == 1
goto_if_false @SCRASH2_2432
if 
  locate_car_2d 81@ {x} 132@ {y} 133@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SCRASH2_2432
set_train_speed 81@ {speed} 16.0
set_train_cruise_speed 81@ {speed} 0.0
print_now 'SCR2_03' {time} 11000 {flag} 1
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 10000
138@ = 1
35@ += 1

:SCRASH2_2432
if 
  35@ == 2
goto_if_false @SCRASH2_2515
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2515
gosub @SCRASH2_18816
print_now 'SCR2_09' {time} 9000 {flag} 1
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 8000
35@ += 1

:SCRASH2_2515
if 
  35@ == 3
goto_if_false @SCRASH2_2559
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2559
35@ += 1

:SCRASH2_2559
if 
  35@ == 4
goto_if_false @SCRASH2_2630
if 
  is_car_stopped 81@
goto_if_false @SCRASH2_2630
140@ = 1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 120000
remove_blip 91@
35@ += 1

:SCRASH2_2630
if 
  35@ == 5
goto_if_false @SCRASH2_2673
if 
  139@ == 1
goto_if_false @SCRASH2_2673
35@ = 99

:SCRASH2_2673
gosub @SCRASH2_10288
gosub @SCRASH2_10454
gosub @SCRASH2_10613
gosub @SCRASH2_10745
gosub @SCRASH2_10963
gosub @SCRASH2_11038
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2766
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2766
139@ = 1

:SCRASH2_2766
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2817
if 
  300 > 121@
goto_if_false @SCRASH2_2817
139@ = 1

:SCRASH2_2817
if 
  161@ == 1
goto_if_false @SCRASH2_3005
if 
  not is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @SCRASH2_3005
if 
  is_car_dead 89@
goto_if_false @SCRASH2_2883
161@ = 0

:SCRASH2_2883
if 
  2800 > 121@
goto_if_false @SCRASH2_3005
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_car_coordinates 89@
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  100.0 > 72@
goto_if_false @SCRASH2_2988
161@ = 0
goto @SCRASH2_3005

:SCRASH2_2988
161@ = 0
mark_car_as_no_longer_needed 89@
mark_model_as_no_longer_needed 468

:SCRASH2_3005
if 
  35@ == 99
goto_if_false @SCRASH2_3030
gosub @SCRASH2_20282

:SCRASH2_3030
return 

:SCRASH2_3032
if 
  35@ == 0
goto_if_false @SCRASH2_3284
print 'SCR2_04' {time} 5000 {flag} 1
gosub @SCRASH2_15982
gosub @SCRASH2_12265
92@ = add_blip_for_char 78@
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 10000
109@ = 0
118@ = 0
143@ = 0
142@ = 0
141@ = 0
154@ = 0
157@ = 0
160@ = 0
163@ = 0
switch_roads_off 789.595 {leftBottomY} -1387.97 {leftBottomZ} 11.5469 {rightTopX} 807.2843 {rightTopY} -1334.546 {rightTopZ} 13.725
switch_roads_off 804.9978 {leftBottomY} -1414.032 {leftBottomZ} 11.3801 {rightTopX} 908.0844 {rightTopY} -1386.618 {rightTopZ} 13.5524
switch_roads_off 802.1913 {leftBottomY} -1335.066 {leftBottomZ} 11.1828 {rightTopX} 911.4662 {rightTopY} -1313.045 {rightTopZ} 13.7469
101@ = 0
102@ = 0
35@ += 1

:SCRASH2_3284
if 
  167@ == 1
goto_if_false @SCRASH2_3385
if 
  is_char_dead 78@
goto_if_false @SCRASH2_3334
37@ = 1
45@ = 2
return 

:SCRASH2_3334
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_3385
37@ = 1
45@ = 7
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000
return 

:SCRASH2_3385
if 
  156@ == 1
goto_if_false @SCRASH2_3438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3436
37@ = 1
45@ = 7

:SCRASH2_3436
return 

:SCRASH2_3438
if 
  157@ == 1
goto_if_false @SCRASH2_3491
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3489
37@ = 1
45@ = 7

:SCRASH2_3489
return 

:SCRASH2_3491
if and
  168@ == 1
  141@ == 1
goto_if_false @SCRASH2_3830
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_3773
if 
  is_char_dead 79@
goto_if_false @SCRASH2_3555
157@ = 1

:SCRASH2_3555
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_3581
157@ = 1

:SCRASH2_3581
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_3672
73@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_3664
70@ = get_char_speed $scplayer
if 
  13.0 > 70@
goto_if_false @SCRASH2_3664
73@ = 0
clear_car_last_damage_entity 87@

:SCRASH2_3664
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_3672
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_3698
157@ = 1

:SCRASH2_3698
if 
  157@ == 1
goto_if_false @SCRASH2_3766
if 
  not is_char_in_any_car 78@
goto_if_false @SCRASH2_3748
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_3748
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3766
goto @SCRASH2_3830

:SCRASH2_3773
157@ = 1
if 
  not is_char_in_any_car 78@
goto_if_false @SCRASH2_3812
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_3812
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3830
if and
  168@ == 1
  141@ == 0
goto_if_false @SCRASH2_4066
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_4035
73@ = 0
if 
  is_char_dead 79@
goto_if_false @SCRASH2_3901
73@ = 1

:SCRASH2_3901
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_3927
73@ = 1

:SCRASH2_3927
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_3953
73@ = 1

:SCRASH2_3953
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_3979
73@ = 1

:SCRASH2_3979
if 
  73@ == 1
goto_if_false @SCRASH2_4028
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4028
goto @SCRASH2_4066

:SCRASH2_4035
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4066
if 
  35@ == 1
goto_if_false @SCRASH2_4115
task_go_straight_to_coord 78@ {x} 833.4493 {y} -1374.261 {z} -1.5078 {speed} MoveState.Walk {time} -1
35@ += 1

:SCRASH2_4115
if 
  35@ == 2
goto_if_false @SCRASH2_4221
40@ = get_script_task_status 78@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4221
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4221
if 
  35@ == 3
goto_if_false @SCRASH2_4292
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4292
if 
  not is_char_playing_anim 78@ {animationName} "ROADCROSS"
goto_if_false @SCRASH2_4292
35@ += 1

:SCRASH2_4292
if 
  35@ == 4
goto_if_false @SCRASH2_4342
gosub @SCRASH2_12646
if 
  101@ == 7
goto_if_false @SCRASH2_4342
35@ += 1

:SCRASH2_4342
if 
  35@ == 5
goto_if_false @SCRASH2_4419
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4419
if 
  35@ == 6
goto_if_false @SCRASH2_4504
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4504
if 
  not is_char_playing_anim 78@ {animationName} "ROADCROSS"
goto_if_false @SCRASH2_4504
101@ = 8
102@ = 8
35@ += 1

:SCRASH2_4504
if 
  35@ == 7
goto_if_false @SCRASH2_4641
gosub @SCRASH2_12646
if 
  101@ == 10
goto_if_false @SCRASH2_4641
143@ = 1
set_lvar_int_to_lvar_int 105@ = 46@
105@ += 60000
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_4611
print_now 'SCR2_20' {time} 10000 {flag} 1
goto @SCRASH2_4627

:SCRASH2_4611
print_now 'SCR2_06' {time} 10000 {flag} 1

:SCRASH2_4627
163@ = 1
35@ += 1

:SCRASH2_4641
if 
  35@ == 8
goto_if_false @SCRASH2_4774
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4774
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 90.0
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4774
if 
  35@ == 9
goto_if_false @SCRASH2_4903
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4903
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4903
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4903
if 
  141@ == 1
goto_if_false @SCRASH2_4896
35@ += 1
goto @SCRASH2_4903

:SCRASH2_4896
35@ -= 1

:SCRASH2_4903
if 
  35@ == 10
goto_if_false @SCRASH2_5046
if 
  158@ == 1
goto_if_false @SCRASH2_5015
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 180.0
task_play_anim -1 {animationName} "HIKER_POSE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
goto @SCRASH2_5039

:SCRASH2_5015
task_go_straight_to_coord 78@ {x} 821.7603 {y} -1334.683 {z} 12.5391 {speed} MoveState.Run {time} -2

:SCRASH2_5039
35@ += 1

:SCRASH2_5046
if 
  35@ == 11
goto_if_false @SCRASH2_5375
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_5276
73@ = 0
if and
  158@ == 1
  locate_car_3d 87@ {x} 803.7784 {y} -1342.926 {z} 12.5469 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5158
73@ = 1

:SCRASH2_5158
if and
  158@ == 0
  locate_car_3d 87@ {x} 824.4391 {y} -1330.707 {z} 12.4174 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5220
73@ = 1

:SCRASH2_5220
if and
  73@ == 1
  is_car_stopped 87@
goto_if_false @SCRASH2_5269
task_enter_car_as_passenger 78@ {vehicle} 87@ {time} -2 {seat} SeatId.RearRight
154@ = 1
35@ += 1

:SCRASH2_5269
goto @SCRASH2_5375

:SCRASH2_5276
if 
  is_char_playing_anim 78@ {animationName} "HIKER_POSE"
goto_if_false @SCRASH2_5375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 109@
goto_if_false @SCRASH2_5375
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 100
set_lvar_int_to_lvar_int 109@ = 46@
109@ += 250

:SCRASH2_5375
if 
  35@ == 12
goto_if_false @SCRASH2_5451
40@ = get_script_task_status 78@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_5451
set_taxi_lights 87@ {state} False
126@ = 0
set_lvar_int_to_lvar_int 88@ = 87@
35@ = 99

:SCRASH2_5451
if 
  170@ == 0
goto_if_false @SCRASH2_5499
request_model 420
load_all_models_now 
if 
  has_model_loaded 420
goto_if_false @SCRASH2_5499
170@ = 1

:SCRASH2_5499
if 
  166@ == 1
goto_if_false @SCRASH2_5571
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_5571
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_5562
set_train_cruise_speed 81@ {speed} 30.0

:SCRASH2_5562
mark_mission_trains_as_no_longer_needed 
166@ = 0

:SCRASH2_5571
if and
  143@ == 1
  142@ == 0
goto_if_false @SCRASH2_5714
if 
  locate_char_any_means_3d $scplayer {x} 812.4495 {y} -1343.488 {z} 12.532 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SCRASH2_5679
142@ = 1
gosub @SCRASH2_12313
gosub @SCRASH2_12377
set_taxi_lights 87@ {state} True
goto @SCRASH2_5714

:SCRASH2_5679
if 
  is_int_lvar_greater_than_int_lvar 46@ > 105@
goto_if_false @SCRASH2_5714
37@ = 1
45@ = 3
return 

:SCRASH2_5714
if and
  141@ == 0
  168@ == 1
goto_if_false @SCRASH2_5794
if 
  locate_car_3d 87@ {x} 796.9285 {y} -1374.8669 {z} 12.3949 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5794
141@ = 1

:SCRASH2_5794
gosub @SCRASH2_16005
gosub @SCRASH2_16193
if 
  37@ == 1
goto_if_false @SCRASH2_5828
return 

:SCRASH2_5828
if 
  35@ == 99
goto_if_false @SCRASH2_5853
gosub @SCRASH2_20282

:SCRASH2_5853
return 

:SCRASH2_5855
if 
  35@ == 0
goto_if_false @SCRASH2_6033
132@ = 366.4698
133@ = -2030.6429
134@ = 6.6582
128@ = 0
129@ = 0
127@ = 0
gosub @SCRASH2_13627
set_car_can_go_against_traffic 87@ {state} False
set_lvar_int_to_lvar_int 116@ = 46@
116@ += 3000
152@ = 1
149@ = 0
150@ = 0
159@ = 0
160@ = 0
add_stuck_car_check_with_warp 87@ {distance} 2.0 {time} 30000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 20
print_now 'SCR2_07' {time} 5000 {flag} 1
35@ += 1

:SCRASH2_6033
if 
  is_char_dead 78@
goto_if_false @SCRASH2_6065
37@ = 1
45@ = 2
return 

:SCRASH2_6065
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_6100
37@ = 1
45@ = 7
return 

:SCRASH2_6100
if 
  157@ == 1
goto_if_false @SCRASH2_6153
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_6151
37@ = 1
45@ = 7

:SCRASH2_6151
return 

:SCRASH2_6153
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_6431
if 
  is_char_dead 79@
goto_if_false @SCRASH2_6192
157@ = 1

:SCRASH2_6192
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_6218
157@ = 1

:SCRASH2_6218
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_6309
73@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_6301
70@ = get_char_speed $scplayer
if 
  13.0 > 70@
goto_if_false @SCRASH2_6301
73@ = 0
clear_car_last_damage_entity 87@

:SCRASH2_6301
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_6309
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_6335
157@ = 1

:SCRASH2_6335
if 
  157@ == 1
goto_if_false @SCRASH2_6424
if 
  is_char_in_any_car 78@
goto_if_false @SCRASH2_6390
37@ = 1
45@ = 7
goto @SCRASH2_6422

:SCRASH2_6390
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_6422
return 

:SCRASH2_6424
goto @SCRASH2_6472

:SCRASH2_6431
157@ = 1
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000
return 

:SCRASH2_6472
if 
  35@ == 1
goto_if_false @SCRASH2_6569
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_6569
if 
  locate_char_any_means_3d 78@ {x} 132@ {y} 133@ {z} 134@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6569
clear_onscreen_counter $cunt_y
35@ = 99

:SCRASH2_6569
if 
  149@ == 0
goto_if_false @SCRASH2_6656
if 
  locate_char_any_means_3d 78@ {x} 369.3609 {y} -1671.889 {z} 31.811 {xRadius} 14.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6656
149@ = 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:SCRASH2_6656
if 
  150@ == 0
goto_if_false @SCRASH2_6736
if 
  locate_char_any_means_3d $scplayer {x} 369.3609 {y} -1671.889 {z} 31.811 {xRadius} 14.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6729
150@ = 1

:SCRASH2_6729
goto @SCRASH2_6791

:SCRASH2_6736
if 
  locate_char_any_means_3d $scplayer {x} 370.2572 {y} -1656.79 {z} 31.7201 {xRadius} 14.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6791
150@ = 0

:SCRASH2_6791
gosub @SCRASH2_17369
if 
  37@ == 1
goto_if_false @SCRASH2_6818
return 

:SCRASH2_6818
if and
  151@ == 0
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_6873
151@ = 1
print_now 'SCR2_18' {time} 10000 {flag} 1

:SCRASH2_6873
gosub @SCRASH2_15210
if 
  35@ == 99
goto_if_false @SCRASH2_6905
gosub @SCRASH2_20282

:SCRASH2_6905
return 

:SCRASH2_6907
if 
  is_char_dead 78@
goto_if_false @SCRASH2_6935
144@ = 1
remove_blip 92@

:SCRASH2_6935
if 
  169@ == 1
goto_if_false @SCRASH2_6981
if 
  is_char_dead 80@
goto_if_false @SCRASH2_6981
145@ = 1
remove_blip 93@

:SCRASH2_6981
if and
  144@ == 1
  145@ == 1
goto_if_false @SCRASH2_7013
35@ = 99

:SCRASH2_7013
if 
  35@ == 0
goto_if_false @SCRASH2_7345
gosub @SCRASH2_15427
93@ = add_blip_for_char 80@
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 359.4136 {y} -2036.943 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 362.2674 {y} -2035.844 {z} 6.836 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 270.0
close_sequence_task 56@
perform_sequence_task 80@ {sequence} 56@
clear_sequence_task 56@
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 363.1874 {y} -2035.844 {z} 6.836 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 90.0
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
set_lvar_int_to_lvar_int 106@ = 46@
106@ += 180000
146@ = 0
147@ = 0
98@ = 0
99@ = 0
107@ = 0
148@ = 0
print_now 'SCR2_19' {time} 10000 {flag} 1
if 
  $lf2_skip_allowed == 0
goto_if_false @SCRASH2_7317
164@ = 0
165@ = 0
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000
$lf2_skip_allowed = 1
goto @SCRASH2_7338

:SCRASH2_7317
164@ = 1
165@ = 1
112@ = 0

:SCRASH2_7338
35@ += 1

:SCRASH2_7345
if 
  35@ == 1
goto_if_false @SCRASH2_7447
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7447
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
35@ += 1

:SCRASH2_7447
if 
  35@ == 2
goto_if_false @SCRASH2_7625
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7625
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
task_char_slide_to_coord 80@ {x} 362.2674 {y} -2035.844 {z} 6.836 {angle} 270.0 {radius} 4.0
task_char_slide_to_coord 78@ {x} 363.1874 {y} -2035.844 {z} 6.836 {angle} 90.0 {radius} 4.0
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_7625
if 
  35@ == 3
goto_if_false @SCRASH2_7814
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7814
task_play_anim 78@ {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 80@ {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 87@
35@ += 1

:SCRASH2_7814
if 
  35@ == 4
goto_if_false @SCRASH2_7944
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7944
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7944
if and
  not is_char_playing_anim 78@ {animationName} "PRTIAL_HNDSHK_BIZ_01"
  not is_char_playing_anim 80@ {animationName} "PRTIAL_HNDSHK_BIZ_01"
goto_if_false @SCRASH2_7944
35@ += 1

:SCRASH2_7944
if 
  35@ == 5
goto_if_false @SCRASH2_8053
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8053
task_play_anim 78@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
50@ = generate_random_int_in_range 2000 {max} 5000
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8053
if 
  35@ == 6
goto_if_false @SCRASH2_8123
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8123
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8123
clear_char_tasks 78@
35@ += 1

:SCRASH2_8123
if 
  35@ == 7
goto_if_false @SCRASH2_8232
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8232
task_play_anim 80@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
50@ = generate_random_int_in_range 5000 {max} 10000
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8232
if 
  35@ == 8
goto_if_false @SCRASH2_8302
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8302
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8302
clear_char_tasks 80@
35@ = 5

:SCRASH2_8302
if 
  35@ == 20
goto_if_false @SCRASH2_8559
if 
  not is_char_dead 80@
goto_if_false @SCRASH2_8428
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 361.2376 {y} -2047.8409 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.2802 {y} -2049.696 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.8605 {y} -2057.5879 {z} 6.836 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 80@ {sequence} 56@
clear_sequence_task 56@

:SCRASH2_8428
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_8536
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 361.2376 {y} -2047.8409 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.2802 {y} -2049.696 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.863 {y} -2060.05 {z} 6.836 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@

:SCRASH2_8536
print_now 'SCR2_05' {time} 10000 {flag} 1
35@ += 1

:SCRASH2_8559
if 
  35@ == 21
goto_if_false @SCRASH2_8661
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8661
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
35@ += 1

:SCRASH2_8661
if 
  35@ == 22
goto_if_false @SCRASH2_8782
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8782
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
37@ = 1
45@ = 4
remove_char_elegantly 78@
remove_char_elegantly 80@
return 

:SCRASH2_8782
if 
  35@ == 30
goto_if_false @SCRASH2_8873
98@ = 3
99@ = 3
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_8835
clear_char_tasks 78@

:SCRASH2_8835
if 
  not is_char_dead 80@
goto_if_false @SCRASH2_8856
clear_char_tasks 80@

:SCRASH2_8856
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 87@
35@ += 1

:SCRASH2_8873
if 
  35@ == 31
goto_if_false @SCRASH2_8905
gosub @SCRASH2_15527
gosub @SCRASH2_15749

:SCRASH2_8905
if 
  146@ == 0
goto_if_false @SCRASH2_9434
if 
  144@ == 1
goto_if_false @SCRASH2_8964
146@ = 1
print_now 'SCR2_10' {time} 10000 {flag} 1

:SCRASH2_8964
if 
  146@ == 0
goto_if_false @SCRASH2_9023
if 
  145@ == 1
goto_if_false @SCRASH2_9023
146@ = 1
print_now 'SCR2_11' {time} 10000 {flag} 1

:SCRASH2_9023
if 
  146@ == 0
goto_if_false @SCRASH2_9083
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_9083
146@ = 1
print_now 'SCR2_14' {time} 10000 {flag} 1

:SCRASH2_9083
if 
  146@ == 0
goto_if_false @SCRASH2_9143
if 
  has_char_been_damaged_by_char 80@ {handle} $scplayer
goto_if_false @SCRASH2_9143
146@ = 1
print_now 'SCR2_15' {time} 10000 {flag} 1

:SCRASH2_9143
if and
  146@ == 0
  148@ == 0
goto_if_false @SCRASH2_9229
if 
  is_char_shooting_in_area $scplayer {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {topRightX} 409.7505 {topRightY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9229
148@ = 1
set_lvar_int_to_lvar_int 107@ = 46@
107@ += 1000

:SCRASH2_9229
if and
  146@ == 0
  148@ == 1
goto_if_false @SCRASH2_9296
if 
  is_int_lvar_greater_than_int_lvar 46@ > 107@
goto_if_false @SCRASH2_9296
146@ = 1
print_now 'SCR2_12' {time} 10000 {flag} 1

:SCRASH2_9296
if 
  146@ == 0
goto_if_false @SCRASH2_9409
57@, 58@, 59@ = get_char_coordinates 80@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  30.0 > 70@
goto_if_false @SCRASH2_9409
146@ = 1
print_now 'SCR2_13' {time} 10000 {flag} 1

:SCRASH2_9409
if 
  146@ == 1
goto_if_false @SCRASH2_9434
35@ = 30

:SCRASH2_9434
if and
  146@ == 0
  147@ == 0
goto_if_false @SCRASH2_9492
if 
  is_int_lvar_greater_than_int_lvar 46@ > 106@
goto_if_false @SCRASH2_9492
147@ = 1
35@ = 20

:SCRASH2_9492
if 
  146@ == 1
goto_if_false @SCRASH2_9798
if 
  144@ == 0
goto_if_false @SCRASH2_9654
if 
  not is_char_in_area_2d 78@ {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {rightTopX} 409.7505 {rightTopY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9654
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 200.0
goto_if_false @SCRASH2_9654
37@ = 1
45@ = 5
return 

:SCRASH2_9654
if 
  145@ == 0
goto_if_false @SCRASH2_9798
if 
  not is_char_in_area_2d 80@ {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {rightTopX} 409.7505 {rightTopY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9798
57@, 58@, 59@ = get_char_coordinates 80@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 200.0
goto_if_false @SCRASH2_9798
37@ = 1
45@ = 6
return 

:SCRASH2_9798
if 
  164@ == 0
goto_if_false @SCRASH2_9869
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9869
print_help_forever 'SNIPER1'
164@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 15000

:SCRASH2_9869
if 
  164@ == 1
goto_if_false @SCRASH2_9960
if 
  165@ == 0
goto_if_false @SCRASH2_9960
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9960
clear_help 
print_help_forever 'SNIPER2'
165@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000

:SCRASH2_9960
if 
  165@ == 1
goto_if_false @SCRASH2_10024
if 
  112@ > 0
goto_if_false @SCRASH2_10024
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_10024
clear_help 
112@ = 0

:SCRASH2_10024
if 
  35@ == 99
goto_if_false @SCRASH2_10049
gosub @SCRASH2_20282

:SCRASH2_10049
return 

:SCRASH2_10051
57@ = -2063.2251
58@ = 258.3273
59@ = 35.3958
95@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 5 {x} 57@ {y} 58@ {z} 59@
94@ = add_blip_for_pickup 95@
return 

:SCRASH2_10112
57@ = -1937.312
58@ = 221.1162
59@ = 23.8414
clear_area 57@ {y} 58@ {z} 59@ {radius} 60.0 {clearParticles} True
81@ = create_mission_train 11 {x} 57@ {y} 58@ {z} 59@ {direction} False
166@ = 1
return 

:SCRASH2_10187
57@ = -1939.52
58@ = 132.8362
59@ = 25.2734
63@ = 90.4279
clear_area 57@ {y} 58@ {z} 59@ {radius} 1.0 {clearParticles} True
78@ = create_char PedType.CivMale {modelId} 147 {x} 57@ {y} 58@ {z} 59@
set_char_heading 78@ {heading} 63@
set_char_is_target_priority 78@ {state} True
167@ = 1
return 

:SCRASH2_10288
if 
  138@ == 1
goto_if_false @SCRASH2_10308
return 

:SCRASH2_10308
if 
  41@ <> 5
goto_if_false @SCRASH2_10328
return 

:SCRASH2_10328
57@, 58@, 59@ = get_car_coordinates 81@
60@, 61@, 62@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 60@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 61@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 119@ =# 71@
return 

:SCRASH2_10454
if 
  138@ == 1
goto_if_false @SCRASH2_10481
120@ = 0
return 

:SCRASH2_10481
if 
  41@ <> 3
goto_if_false @SCRASH2_10501
return 

:SCRASH2_10501
57@, 58@, 59@ = get_car_coordinates 81@
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 120@ =# 71@
return 

:SCRASH2_10613
if 
  41@ <> 1
goto_if_false @SCRASH2_10633
return 

:SCRASH2_10633
57@, 58@, 59@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 121@ =# 71@
return 

:SCRASH2_10745
if 
  138@ == 1
goto_if_false @SCRASH2_10765
return 

:SCRASH2_10765
if 
  41@ <> 7
goto_if_false @SCRASH2_10785
return 

:SCRASH2_10785
70@ = 25.0
if 
  is_int_lvar_greater_or_equal_to_int_lvar 121@ >= 120@
goto_if_false @SCRASH2_10896
if 
  80 > 119@
goto_if_false @SCRASH2_10889
71@ = get_car_speed 81@
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10881
71@ = 25.0

:SCRASH2_10881
set_train_speed 81@ {speed} 71@

:SCRASH2_10889
goto @SCRASH2_10953

:SCRASH2_10896
71@ = get_car_speed 81@
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10945
71@ = 25.0

:SCRASH2_10945
set_train_speed 81@ {speed} 71@

:SCRASH2_10953
set_train_cruise_speed 81@ {speed} 70@
return 

:SCRASH2_10963
if 
  122@ == 0
goto_if_false @SCRASH2_11016
if 
  120@ == 0
goto_if_false @SCRASH2_11006
goto @SCRASH2_11014

:SCRASH2_11006
set_lvar_int_to_lvar_int 122@ = 120@

:SCRASH2_11014
return 

:SCRASH2_11016
if 
  5 > 120@
goto_if_false @SCRASH2_11036
return 

:SCRASH2_11036
return 

:SCRASH2_11038
73@ = 1
48@ = 0

:SCRASH2_11052
if 
  123@(48@,3i) <> -2
goto_if_false @SCRASH2_11081
73@ = 0

:SCRASH2_11081
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11052
if 
  73@ == 1
goto_if_false @SCRASH2_11122
return 

:SCRASH2_11122
48@ = 0

:SCRASH2_11129
if 
  123@(48@,3i) == -1
goto_if_false @SCRASH2_11288

:SCRASH2_11151
generate_random_int_in_range 0 {max} 5 {var_result} 123@(48@,3i)
73@ = 0
49@ = 0

:SCRASH2_11178
if 
  is_int_lvar_greater_than_int_lvar 48@ > 49@
goto_if_false @SCRASH2_11263
if 
  73@ == 0
goto_if_false @SCRASH2_11249
if 
  is_int_lvar_equal_to_int_lvar 123@(48@,3i) == 123@(49@,3i)
goto_if_false @SCRASH2_11249
73@ = 1

:SCRASH2_11249
49@ += 1
goto @SCRASH2_11178

:SCRASH2_11263
if 
  73@ == 1
goto_if_false @SCRASH2_11288
goto @SCRASH2_11151

:SCRASH2_11288
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11129
48@ = 0

:SCRASH2_11316
73@ = 0
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_11700 {caseNum1} 0 {caseLabel1} @SCRASH2_11390 {caseNum2} 1 {caseLabel2} @SCRASH2_11452 {caseNum3} 2 {caseLabel3} @SCRASH2_11514 {caseNum4} 3 {caseLabel4} @SCRASH2_11576 {caseNum5} 4 {caseLabel5} @SCRASH2_11638 {caseNum6} -1 {caseLabel6} @SCRASH2_11700 {caseNum7} -1 {caseLabel7} @SCRASH2_11700

:SCRASH2_11390
if 
  locate_char_any_means_3d $scplayer {x} -1982.442 {y} -598.0178 {z} 24.7266 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11445
73@ = 1

:SCRASH2_11445
goto @SCRASH2_11700

:SCRASH2_11452
if 
  locate_char_any_means_3d $scplayer {x} -1827.173 {y} -1332.306 {z} 12.9453 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11507
73@ = 1

:SCRASH2_11507
goto @SCRASH2_11700

:SCRASH2_11514
if 
  locate_char_any_means_3d $scplayer {x} -946.4463 {y} -1497.618 {z} 89.2872 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11569
73@ = 1

:SCRASH2_11569
goto @SCRASH2_11700

:SCRASH2_11576
if 
  locate_char_any_means_3d $scplayer {x} -620.5595 {y} -1144.573 {z} 42.0616 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11631
73@ = 1

:SCRASH2_11631
goto @SCRASH2_11700

:SCRASH2_11638
if 
  locate_char_any_means_3d $scplayer {x} 98.3887 {y} -1021.795 {z} 21.2188 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11693
73@ = 1

:SCRASH2_11693
goto @SCRASH2_11700

:SCRASH2_11700
if 
  73@ == 1
goto_if_false @SCRASH2_12242
50@ = generate_random_int_in_range 10 {max} 14
51@ = generate_random_int_in_range 10 {max} 20
cset_lvar_float_to_lvar_int 70@ =# 51@
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_12231 {caseNum1} 0 {caseLabel1} @SCRASH2_11811 {caseNum2} 1 {caseLabel2} @SCRASH2_11895 {caseNum3} 2 {caseLabel3} @SCRASH2_11979 {caseNum4} 3 {caseLabel4} @SCRASH2_12063 {caseNum5} 4 {caseLabel5} @SCRASH2_12147 {caseNum6} -1 {caseLabel6} @SCRASH2_12231 {caseNum7} -1 {caseLabel7} @SCRASH2_12231

:SCRASH2_11811
clear_area -1875.72 {y} -1267.059 {z} 12.9511 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -1875.72 {y} -1267.059 {z} 12.9511 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_11895
clear_area -1332.7209 {y} -1514.8879 {z} 22.7265 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -1332.7209 {y} -1514.8879 {z} 22.7265 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_11979
clear_area -673.6719 {y} -1127.875 {z} 48.8875 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -673.6719 {y} -1127.875 {z} 48.8875 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12063
clear_area -321.8627 {y} -1191.647 {z} 35.5265 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -321.8627 {y} -1191.647 {z} 35.5265 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12147
clear_area 802.302 {y} -1362.661 {z} -2.6302 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} 802.302 {y} -1362.661 {z} -2.6302 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12231
123@(48@,3i) = -2

:SCRASH2_12242
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11316
return 

:SCRASH2_12265
83@ = get_train_carriage 81@ {number} 2
78@ = create_char_inside_car 83@ {pedType} PedType.CivMale {modelId} 147
set_char_decision_maker 78@ {handleOrTemplate} 96@
task_leave_car 78@ {vehicle} 83@
167@ = 1
return 

:SCRASH2_12313
158@ = 1
if 
  is_char_in_area_3d $scplayer {leftBottomX} 685.9716 {leftBottomY} -1433.5229 {leftBottomZ} 11.0857 {rightTopX} 965.9512 {rightTopY} -1379.386 {rightTopZ} 14.9731 {drawSphere} False
goto_if_false @SCRASH2_12375
158@ = 0

:SCRASH2_12375
return 

:SCRASH2_12377
if 
  158@ == 1
goto_if_false @SCRASH2_12442
57@ = 850.1132
58@ = -1391.708
59@ = 12.4161
63@ = 101.528
goto @SCRASH2_12482

:SCRASH2_12442
57@ = 847.1364
58@ = -1331.1281
59@ = 12.5097
63@ = 91.6504

:SCRASH2_12482
clear_area 57@ {y} 58@ {z} 59@ {radius} 10.0 {clearParticles} True
87@ = create_car 420 {x} 57@ {y} 58@ {z} 59@
set_car_heading 87@ {heading} 63@
79@ = create_char_inside_car 87@ {pedType} PedType.CivMale {modelId} 18
if 
  158@ == 1
goto_if_false @SCRASH2_12596
task_car_drive_to_coord 79@ {vehicle} 87@ {x} 801.0299 {y} -1337.929 {z} 12.3906 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCarsIgnoreLights
goto @SCRASH2_12637

:SCRASH2_12596
task_car_drive_to_coord 79@ {vehicle} 87@ {x} 824.4391 {y} -1330.707 {z} 12.4174 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCarsIgnoreLights
141@ = 1

:SCRASH2_12637
168@ = 1
return 

:SCRASH2_12646
if 
  153@ == 1
goto_if_false @SCRASH2_12930
if 
  163@ == 1
goto_if_false @SCRASH2_12700
40@ = get_script_task_status 78@ {taskId} 1492
goto @SCRASH2_12711

:SCRASH2_12700
40@ = get_script_task_status 78@ {taskId} 1471

:SCRASH2_12711
if 
  is_int_lvar_greater_than_int_lvar 46@ > 117@
goto_if_false @SCRASH2_12928
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @SCRASH2_12928
if 
  163@ == 1
goto_if_false @SCRASH2_12876
57@, 58@, 59@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
57@, 58@, 59@ = get_char_coordinates 78@
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = get_heading_from_vector_2d 57@ {y} 58@

:SCRASH2_12876
task_look_at_char 78@ {target} $scplayer {time} -2
if 
  163@ == 1
goto_if_false @SCRASH2_12928
task_achieve_heading 78@ {heading} 63@
set_lvar_int_to_lvar_int 117@ = 46@
117@ += 250

:SCRASH2_12928
return 

:SCRASH2_12930
switch_start 101@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_13594 {caseNum1} 0 {caseLabel1} @SCRASH2_13058 {caseNum2} 1 {caseLabel2} @SCRASH2_13352 {caseNum3} 2 {caseLabel3} @SCRASH2_13390 {caseNum4} 3 {caseLabel4} @SCRASH2_13193 {caseNum5} 4 {caseLabel5} @SCRASH2_13276 {caseNum6} 5 {caseLabel6} @SCRASH2_13079 {caseNum7} 6 {caseLabel7} @SCRASH2_13117
switch_continued 7 {caseLabel1} @SCRASH2_13466 {caseNum2} 8 {caseLabel2} @SCRASH2_13473 {caseNum3} 9 {caseLabel3} @SCRASH2_13511 {caseNum4} 10 {caseLabel4} @SCRASH2_13587 {caseNum5} -1 {caseLabel5} @SCRASH2_13625 {caseNum6} -1 {caseLabel6} @SCRASH2_13625 {caseNum7} -1 {caseLabel7} @SCRASH2_13625 {caseNum8} -1 {caseLabel8} @SCRASH2_13625 {caseNum9} -1 {caseLabel9} @SCRASH2_13625

:SCRASH2_13058
101@ = 5
102@ = 5
goto @SCRASH2_13625

:SCRASH2_13079
task_go_straight_to_coord 78@ {x} 828.2594 {y} -1358.995 {z} -1.5078 {speed} MoveState.Walk {time} -2
101@ = 6
goto @SCRASH2_13625

:SCRASH2_13117
if 
  locate_char_any_means_3d 78@ {x} 828.2594 {y} -1358.995 {z} -1.5078 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13186
101@ = 3
102@ = 3
126@ = 2

:SCRASH2_13186
goto @SCRASH2_13625

:SCRASH2_13193
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 837.388 {y} -1346.233 {z} 6.1719 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 836.6295 {y} -1342.926 {z} 6.1719 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
101@ = 4
goto @SCRASH2_13625

:SCRASH2_13276
if 
  locate_char_any_means_3d 78@ {x} 836.6295 {y} -1342.926 {z} 6.1719 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13345
101@ = 1
102@ = 1
126@ = 3

:SCRASH2_13345
goto @SCRASH2_13625

:SCRASH2_13352
task_go_straight_to_coord 78@ {x} 822.0569 {y} -1342.302 {z} 12.519 {speed} MoveState.Walk {time} -2
101@ = 2
goto @SCRASH2_13625

:SCRASH2_13390
if 
  locate_char_any_means_3d 78@ {x} 822.0569 {y} -1342.302 {z} 12.519 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13459
101@ = 7
102@ = 7
126@ = 4

:SCRASH2_13459
goto @SCRASH2_13625

:SCRASH2_13466
goto @SCRASH2_13625

:SCRASH2_13473
task_go_straight_to_coord 78@ {x} 803.7784 {y} -1340.535 {z} 12.5469 {speed} MoveState.Walk {time} -2
101@ = 9
goto @SCRASH2_13625

:SCRASH2_13511
if 
  locate_char_any_means_3d 78@ {x} 803.7784 {y} -1340.535 {z} 12.5469 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13580
101@ = 10
102@ = 10
126@ = 5

:SCRASH2_13580
goto @SCRASH2_13625

:SCRASH2_13587
goto @SCRASH2_13625

:SCRASH2_13594
write_debug "UNKNOWN_STATION_WALK_STATUS"

:SCRASH2_13625
return 

:SCRASH2_13627
73@ = 1
74@ = 1
if 
  127@ == 0
goto_if_false @SCRASH2_13666
73@ = 0

:SCRASH2_13666
switch_start 127@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_14144 {caseNum1} 0 {caseLabel1} @SCRASH2_13794 {caseNum2} 1 {caseLabel2} @SCRASH2_13885 {caseNum3} 2 {caseLabel3} @SCRASH2_13899 {caseNum4} 3 {caseLabel4} @SCRASH2_13913 {caseNum5} 4 {caseLabel5} @SCRASH2_13927 {caseNum6} 5 {caseLabel6} @SCRASH2_13941 {caseNum7} 6 {caseLabel7} @SCRASH2_13955
switch_continued 7 {caseLabel1} @SCRASH2_13969 {caseNum2} 8 {caseLabel2} @SCRASH2_13983 {caseNum3} 9 {caseLabel3} @SCRASH2_13997 {caseNum4} 10 {caseLabel4} @SCRASH2_14011 {caseNum5} 11 {caseLabel5} @SCRASH2_14025 {caseNum6} 12 {caseLabel6} @SCRASH2_14039 {caseNum7} 13 {caseLabel7} @SCRASH2_14053 {caseNum8} -1 {caseLabel8} @SCRASH2_14177 {caseNum9} -1 {caseLabel9} @SCRASH2_14177

:SCRASH2_13794
50@ = generate_random_int_in_range 0 {max} 3
if 
  50@ == 0
goto_if_false @SCRASH2_13828
127@ = 1

:SCRASH2_13828
if 
  50@ == 1
goto_if_false @SCRASH2_13853
127@ = 2

:SCRASH2_13853
if 
  50@ == 2
goto_if_false @SCRASH2_13878
127@ = 3

:SCRASH2_13878
goto @SCRASH2_14177

:SCRASH2_13885
127@ = 4
goto @SCRASH2_14177

:SCRASH2_13899
127@ = 6
goto @SCRASH2_14177

:SCRASH2_13913
127@ = 7
goto @SCRASH2_14177

:SCRASH2_13927
127@ = 9
goto @SCRASH2_14177

:SCRASH2_13941
127@ = 10
goto @SCRASH2_14177

:SCRASH2_13955
127@ = 5
goto @SCRASH2_14177

:SCRASH2_13969
127@ = 12
goto @SCRASH2_14177

:SCRASH2_13983
127@ = 13
goto @SCRASH2_14177

:SCRASH2_13997
127@ = 8
goto @SCRASH2_14177

:SCRASH2_14011
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14025
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14039
127@ = 11
goto @SCRASH2_14177

:SCRASH2_14053
50@ = generate_random_int_in_range 0 {max} 3
if 
  50@ == 0
goto_if_false @SCRASH2_14087
127@ = 9

:SCRASH2_14087
if 
  50@ == 1
goto_if_false @SCRASH2_14112
127@ = 5

:SCRASH2_14112
if 
  50@ == 2
goto_if_false @SCRASH2_14137
127@ = 12

:SCRASH2_14137
goto @SCRASH2_14177

:SCRASH2_14144
write_debug "UNKNOWN_CURRENT_TAXI_WAYPOINT"

:SCRASH2_14177
if 
  127@ == 13
goto_if_false @SCRASH2_14209
73@ = 0
74@ = 0

:SCRASH2_14209
switch_start 127@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_14847 {caseNum1} 0 {caseLabel1} @SCRASH2_14337 {caseNum2} 1 {caseLabel2} @SCRASH2_14372 {caseNum3} 2 {caseLabel3} @SCRASH2_14409 {caseNum4} 3 {caseLabel4} @SCRASH2_14446 {caseNum5} 4 {caseLabel5} @SCRASH2_14483 {caseNum6} 5 {caseLabel6} @SCRASH2_14520 {caseNum7} 6 {caseLabel7} @SCRASH2_14557
switch_continued 7 {caseLabel1} @SCRASH2_14594 {caseNum2} 8 {caseLabel2} @SCRASH2_14631 {caseNum3} 9 {caseLabel3} @SCRASH2_14668 {caseNum4} 10 {caseLabel4} @SCRASH2_14705 {caseNum5} 11 {caseLabel5} @SCRASH2_14742 {caseNum6} 12 {caseLabel6} @SCRASH2_14779 {caseNum7} 13 {caseLabel7} @SCRASH2_14816 {caseNum8} -1 {caseLabel8} @SCRASH2_14847 {caseNum9} -1 {caseLabel9} @SCRASH2_14847

:SCRASH2_14337
write_debug "TAXI_WAYPOINT_STILL_NONE"
goto @SCRASH2_14847

:SCRASH2_14372
135@ = 728.2346
136@ = -1068.5291
137@ = 21.3149
goto @SCRASH2_14847

:SCRASH2_14409
135@ = 885.8015
136@ = -1152.047
137@ = 22.7156
goto @SCRASH2_14847

:SCRASH2_14446
135@ = 623.9262
136@ = -1356.3361
137@ = 12.4009
goto @SCRASH2_14847

:SCRASH2_14483
135@ = 554.1271
136@ = -1327.217
137@ = 12.3984
goto @SCRASH2_14847

:SCRASH2_14520
135@ = 552.7402
136@ = -1401.848
137@ = 14.0907
goto @SCRASH2_14847

:SCRASH2_14557
135@ = 913.4064
136@ = -1381.0389
137@ = 12.3208
goto @SCRASH2_14847

:SCRASH2_14594
135@ = 807.6411
136@ = -1737.392
137@ = 12.3906
goto @SCRASH2_14847

:SCRASH2_14631
135@ = 318.3799
136@ = -1464.926
137@ = 33.003
goto @SCRASH2_14847

:SCRASH2_14668
135@ = 461.6126
136@ = -1433.671
137@ = 23.2117
goto @SCRASH2_14847

:SCRASH2_14705
135@ = 484.8509
136@ = -1579.22
137@ = 20.2086
goto @SCRASH2_14847

:SCRASH2_14742
135@ = 570.8074
136@ = -1580.052
137@ = 15.0078
goto @SCRASH2_14847

:SCRASH2_14779
135@ = 673.4271
136@ = -1737.34
137@ = 12.4441
goto @SCRASH2_14847

:SCRASH2_14816
set_lvar_float_to_lvar_float 135@ = 132@
set_lvar_float_to_lvar_float 136@ = 133@
set_lvar_float_to_lvar_float 137@ = 134@
goto @SCRASH2_14847

:SCRASH2_14847
if 
  73@ == 1
goto_if_false @SCRASH2_14932
if 
  128@ == 0
goto_if_false @SCRASH2_14897
73@ = 0
goto @SCRASH2_14932

:SCRASH2_14897
50@ = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_greater_than_int_lvar 50@ > 128@
goto_if_false @SCRASH2_14932
73@ = 0

:SCRASH2_14932
if 
  73@ == 1
goto_if_false @SCRASH2_14964
128@ = 0
goto @SCRASH2_14971

:SCRASH2_14964
128@ += 1

:SCRASH2_14971
if 
  not is_char_dead 79@
goto_if_false @SCRASH2_15201
if 
  73@ == 1
goto_if_false @SCRASH2_15039
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @SCRASH2_15201

:SCRASH2_15039
if 
  127@ == 13
goto_if_false @SCRASH2_15071
50@ = 15
goto @SCRASH2_15118

:SCRASH2_15071
set_lvar_int_to_lvar_int 50@ = 129@
50@ *= 3
50@ += 18
if 
  50@ > 25
goto_if_false @SCRASH2_15118
50@ = 25

:SCRASH2_15118
cset_lvar_float_to_lvar_int 70@ =# 50@
if 
  2 > 129@
goto_if_false @SCRASH2_15176
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 70@ {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
goto @SCRASH2_15201

:SCRASH2_15176
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 70@ {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:SCRASH2_15201
129@ += 1
return 

:SCRASH2_15210
if 
  is_char_dead 78@
goto_if_false @SCRASH2_15228
return 

:SCRASH2_15228
if 
  not is_char_in_car 78@ {vehicle} 87@
goto_if_false @SCRASH2_15249
return 

:SCRASH2_15249
if 
  is_car_dead 87@
goto_if_false @SCRASH2_15267
return 

:SCRASH2_15267
if 
  127@ <> 13
goto_if_false @SCRASH2_15334
if 
  locate_car_3d 87@ {x} 135@ {y} 136@ {z} 137@ {xRadius} 18.0 {yRadius} 18.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_15334
gosub @SCRASH2_13627

:SCRASH2_15334
if 
  127@ == 13
goto_if_false @SCRASH2_15425
if 
  locate_car_3d 87@ {x} 370.0204 {y} -1647.647 {z} 31.7173 {xRadius} 14.0 {yRadius} 14.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_15425
if 
  150@ == 1
goto_if_false @SCRASH2_15425
gosub @SCRASH2_13627

:SCRASH2_15425
return 

:SCRASH2_15427
57@ = 355.618
58@ = -2037.007
59@ = 6.836
63@ = 271.1917
clear_area 57@ {y} 58@ {z} 59@ {radius} 10.0 {clearParticles} True
80@ = create_char PedType.CivMale {modelId} 46 {x} 57@ {y} 58@ {z} 59@
set_char_heading 80@ {heading} 63@
set_char_is_target_priority 80@ {state} True
169@ = 1
return 

:SCRASH2_15527
if 
  144@ == 1
goto_if_false @SCRASH2_15547
return 

:SCRASH2_15547
switch_start 98@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15747 {caseNum1} 3 {caseLabel1} @SCRASH2_15610 {caseNum2} 4 {caseLabel2} @SCRASH2_15658 {caseNum3} -1 {caseLabel3} @SCRASH2_15747 {caseNum4} -1 {caseLabel4} @SCRASH2_15747 {caseNum5} -1 {caseLabel5} @SCRASH2_15747 {caseNum6} -1 {caseLabel6} @SCRASH2_15747 {caseNum7} -1 {caseLabel7} @SCRASH2_15747

:SCRASH2_15610
task_smart_flee_char 78@ {threat} $scplayer {radius} 4000.0 {time} 3600000
98@ = 4
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250
goto @SCRASH2_15747

:SCRASH2_15658
if 
  is_int_lvar_greater_than_int_lvar 46@ > 108@
goto_if_false @SCRASH2_15740
40@ = get_script_task_status 78@ {taskId} 1501
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15740
task_smart_flee_char 78@ {threat} $scplayer {radius} 4000.0 {time} 3600000
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250

:SCRASH2_15740
goto @SCRASH2_15747

:SCRASH2_15747
return 

:SCRASH2_15749
if 
  145@ == 1
goto_if_false @SCRASH2_15769
return 

:SCRASH2_15769
switch_start 99@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15980 {caseNum1} 3 {caseLabel1} @SCRASH2_15832 {caseNum2} 4 {caseLabel2} @SCRASH2_15894 {caseNum3} -1 {caseLabel3} @SCRASH2_15980 {caseNum4} -1 {caseLabel4} @SCRASH2_15980 {caseNum5} -1 {caseLabel5} @SCRASH2_15980 {caseNum6} -1 {caseLabel6} @SCRASH2_15980 {caseNum7} -1 {caseLabel7} @SCRASH2_15980

:SCRASH2_15832
give_weapon_to_char 80@ {weaponType} WeaponType.Pistol {ammo} 99
set_char_decision_maker 80@ {handleOrTemplate} 97@
task_kill_char_on_foot_while_ducking 80@ {target} $scplayer {flags} 4 {actionDelay} 4000 {actionChance} 34
99@ = 4
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250
goto @SCRASH2_15980

:SCRASH2_15894
if 
  is_int_lvar_greater_than_int_lvar 46@ > 110@
goto_if_false @SCRASH2_15973
40@ = get_script_task_status 80@ {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15973
task_kill_char_on_foot_while_ducking 80@ {target} $scplayer {flags} 4 {actionDelay} 4000 {actionChance} 34
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250

:SCRASH2_15973
goto @SCRASH2_15980

:SCRASH2_15980
return 

:SCRASH2_15982
126@ = 0
100@ = 0
153@ = 0
return 

:SCRASH2_16005
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16165 {caseNum1} 0 {caseLabel1} @SCRASH2_16068 {caseNum2} 1 {caseLabel2} @SCRASH2_16130 {caseNum3} 2 {caseLabel3} @SCRASH2_16137 {caseNum4} 3 {caseLabel4} @SCRASH2_16144 {caseNum5} 4 {caseLabel5} @SCRASH2_16151 {caseNum6} 5 {caseLabel6} @SCRASH2_16158 {caseNum7} -1 {caseLabel7} @SCRASH2_16191

:SCRASH2_16068
if 
  locate_char_any_means_3d 78@ {x} 833.4493 {y} -1374.261 {z} -1.5078 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_16123
126@ = 1

:SCRASH2_16123
goto @SCRASH2_16191

:SCRASH2_16130
goto @SCRASH2_16191

:SCRASH2_16137
goto @SCRASH2_16191

:SCRASH2_16144
goto @SCRASH2_16191

:SCRASH2_16151
goto @SCRASH2_16191

:SCRASH2_16158
goto @SCRASH2_16191

:SCRASH2_16165
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16191
return 

:SCRASH2_16193
if 
  156@ == 1
goto_if_false @SCRASH2_16213
return 

:SCRASH2_16213
if 
  is_char_shooting $scplayer
goto_if_false @SCRASH2_16236
156@ = 1

:SCRASH2_16236
73@ = 0
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16752 {caseNum1} 0 {caseLabel1} @SCRASH2_16306 {caseNum2} 1 {caseLabel2} @SCRASH2_16313 {caseNum3} 2 {caseLabel3} @SCRASH2_16375 {caseNum4} 3 {caseLabel4} @SCRASH2_16474 {caseNum5} 4 {caseLabel5} @SCRASH2_16573 {caseNum6} 5 {caseLabel6} @SCRASH2_16672 {caseNum7} -1 {caseLabel7} @SCRASH2_16778

:SCRASH2_16306
goto @SCRASH2_16778

:SCRASH2_16313
if 
  is_char_in_area_3d $scplayer {leftBottomX} 783.9064 {leftBottomY} -1393.156 {leftBottomZ} -2.7078 {rightTopX} 858.4905 {rightTopY} -1322.64 {rightTopZ} -0.3006 {drawSphere} False
goto_if_false @SCRASH2_16368
73@ = 1

:SCRASH2_16368
goto @SCRASH2_16778

:SCRASH2_16375
if or
  is_char_in_area_3d $scplayer {leftBottomX} 825.3654 {leftBottomY} -1359.666 {leftBottomZ} -2.7078 {rightTopX} 842.8153 {rightTopY} -1338.8929 {rightTopZ} 7.3875 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 820.1507 {leftBottomY} -1365.766 {leftBottomZ} -2.7078 {rightTopX} 831.27 {rightTopY} -1354.908 {rightTopZ} -0.3078 {drawSphere} False
goto_if_false @SCRASH2_16467
73@ = 1

:SCRASH2_16467
goto @SCRASH2_16778

:SCRASH2_16474
if or
  is_char_in_area_3d $scplayer {leftBottomX} 819.6318 {leftBottomY} -1344.2581 {leftBottomZ} 4.9875 {rightTopX} 842.2764 {rightTopY} -1338.7419 {rightTopZ} 13.7162 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 816.749 {leftBottomY} -1345.116 {leftBottomZ} 8.8156 {rightTopX} 829.4735 {rightTopY} -1338.895 {rightTopZ} 13.7281 {drawSphere} False
goto_if_false @SCRASH2_16566
73@ = 1

:SCRASH2_16566
goto @SCRASH2_16778

:SCRASH2_16573
if or
  is_char_in_area_3d $scplayer {leftBottomX} 787.7994 {leftBottomY} -1357.323 {leftBottomZ} 11.3391 {rightTopX} 827.1069 {rightTopY} -1309.406 {rightTopZ} 13.7625 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 816.749 {leftBottomY} -1345.116 {leftBottomZ} 8.8156 {rightTopX} 829.4735 {rightTopY} -1338.895 {rightTopZ} 13.7281 {drawSphere} False
goto_if_false @SCRASH2_16665
73@ = 1

:SCRASH2_16665
goto @SCRASH2_16778

:SCRASH2_16672
if 
  154@ == 0
goto_if_false @SCRASH2_16745
if 
  is_char_in_area_3d $scplayer {leftBottomX} 787.0083 {leftBottomY} -1376.24 {leftBottomZ} 11.3391 {rightTopX} 809.962 {rightTopY} -1310.506 {rightTopZ} 13.8144 {drawSphere} False
goto_if_false @SCRASH2_16745
73@ = 1

:SCRASH2_16745
goto @SCRASH2_16778

:SCRASH2_16752
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16778
if 
  156@ == 1
goto_if_false @SCRASH2_16804
set_lvar_int_to_lvar_int 156@ = 73@

:SCRASH2_16804
if 
  156@ == 1
goto_if_false @SCRASH2_16854
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_16854
if 
  73@ == 1
goto_if_false @SCRASH2_17004
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  100@ == 1
goto_if_false @SCRASH2_16976
if 
  72@ > 10.0
goto_if_false @SCRASH2_16969
73@ = 0

:SCRASH2_16969
goto @SCRASH2_17004

:SCRASH2_16976
if 
  72@ > 8.0
goto_if_false @SCRASH2_17004
73@ = 0

:SCRASH2_17004
if 
  73@ == 1
goto_if_false @SCRASH2_17215
if 
  100@ == 0
goto_if_false @SCRASH2_17117
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  160@ == 0
goto_if_false @SCRASH2_17096
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_17096
153@ = 1
100@ = 1
goto @SCRASH2_17208

:SCRASH2_17117
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17208
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_17193
$cunt_y = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_17208

:SCRASH2_17193
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17208
goto @SCRASH2_17367

:SCRASH2_17215
if 
  100@ == 1
goto_if_false @SCRASH2_17284
clear_small_prints 
100@ = 0
153@ = 0
set_lvar_int_to_lvar_int 101@ = 102@
clear_look_at 78@
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_17367

:SCRASH2_17284
if 
  $cunt_y > 0
goto_if_false @SCRASH2_17367
if and
  114@ > 0
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17367
$cunt_y -= 1
if 
  0 > $cunt_y
goto_if_false @SCRASH2_17367
$cunt_y = 0
114@ = 0

:SCRASH2_17367
return 

:SCRASH2_17369
if 
  152@ == 1
goto_if_false @SCRASH2_17420
if 
  is_int_lvar_greater_than_int_lvar 46@ > 116@
goto_if_false @SCRASH2_17420
152@ = 0
116@ = 0

:SCRASH2_17420
162@ = 0
if or
  100@ == 3
  100@ == 1
goto_if_false @SCRASH2_17459
162@ = 1

:SCRASH2_17459
73@ = 0
74@ = 0
159@ = 0
if and
  150@ == 1
  149@ == 1
goto_if_false @SCRASH2_17617
57@, 58@, 59@ = get_char_coordinates 78@
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 372.661 {toY} -2088.79 {toZ} 6.836
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 60@ {fromY} 61@ {fromZ} 62@ {toX} 372.661 {toY} -2088.79 {toZ} 6.836
if 
  is_float_lvar_greater_than_float_lvar 72@ > 70@
goto_if_false @SCRASH2_17617
159@ = 1

:SCRASH2_17617
if 
  159@ == 1
goto_if_false @SCRASH2_17809
if 
  100@ <> 3
goto_if_false @SCRASH2_17716
if 
  100@ <> 1
goto_if_false @SCRASH2_17686
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17686
100@ = 3
print_now 'SCR2_23' {time} 30000 {flag} 1
goto @SCRASH2_17807

:SCRASH2_17716
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17807
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_17792
$cunt_y = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_17807

:SCRASH2_17792
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17807
return 

:SCRASH2_17809
if 
  159@ == 0
goto_if_false @SCRASH2_17959
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  40.0 >= 72@
goto_if_false @SCRASH2_17931
if 
  152@ == 0
goto_if_false @SCRASH2_17924
73@ = 1

:SCRASH2_17924
goto @SCRASH2_17959

:SCRASH2_17931
if 
  72@ >= 100.0
goto_if_false @SCRASH2_17959
74@ = 1

:SCRASH2_17959
if 
  159@ == 0
goto_if_false @SCRASH2_18029
if 
  100@ == 3
goto_if_false @SCRASH2_18029
if and
  73@ == 0
  74@ == 0
goto_if_false @SCRASH2_18029
clear_small_prints 
100@ = 0

:SCRASH2_18029
if 
  73@ == 1
goto_if_false @SCRASH2_18288
if 
  100@ <> 1
goto_if_false @SCRASH2_18190
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  100@ <> 3
goto_if_false @SCRASH2_18146
if 
  160@ == 0
goto_if_false @SCRASH2_18139
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_18139
goto @SCRASH2_18169

:SCRASH2_18146
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_18169
153@ = 1
100@ = 1
goto @SCRASH2_18281

:SCRASH2_18190
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18281
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_18266
$cunt_y = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_18281

:SCRASH2_18266
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_18281
goto @SCRASH2_18315

:SCRASH2_18288
if 
  100@ == 1
goto_if_false @SCRASH2_18315
clear_small_prints 
100@ = 0

:SCRASH2_18315
if 
  74@ == 1
goto_if_false @SCRASH2_18365
if and
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_18365
74@ = 0

:SCRASH2_18365
if 
  74@ == 1
goto_if_false @SCRASH2_18615
if 
  100@ == 0
goto_if_false @SCRASH2_18438
130@ = 21
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000
100@ = 2
goto @SCRASH2_18608

:SCRASH2_18438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 113@
goto_if_false @SCRASH2_18530
130@ -= 1
if 
  0 > 130@
goto_if_false @SCRASH2_18514
130@ = 0
37@ = 1
45@ = 3
clear_small_prints 
return 
goto @SCRASH2_18530

:SCRASH2_18514
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000

:SCRASH2_18530
if and
  130@ > 10
  72@ >= 140.0
goto_if_false @SCRASH2_18574
print_now 'SCR2_16' {time} 30000 {flag} 1

:SCRASH2_18574
if 
  130@ == 10
goto_if_false @SCRASH2_18608
print_now 'SCR2_16' {time} 30000 {flag} 1

:SCRASH2_18608
goto @SCRASH2_18651

:SCRASH2_18615
if 
  100@ == 2
goto_if_false @SCRASH2_18651
clear_this_print 'SCR2_16'
100@ = 0

:SCRASH2_18651
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_18814
if 
  162@ == 1
goto_if_false @SCRASH2_18716
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_18814

:SCRASH2_18716
if 
  $cunt_y > 0
goto_if_false @SCRASH2_18814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18814
$cunt_y -= 1
if 
  0 > $cunt_y
goto_if_false @SCRASH2_18799
$cunt_y = 0
114@ = 0
goto @SCRASH2_18814

:SCRASH2_18799
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40

:SCRASH2_18814
return 

:SCRASH2_18816
display_onscreen_counter_with_string $cunt_y {display} CounterDisplay.Bar {text} 'SCR2_52'
return 

:SCRASH2_18834
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @SCRASH2_18883
47@ += 1
if 
  47@ > 2
goto_if_false @SCRASH2_18881
47@ = 0

:SCRASH2_18881
clear_all_view_variables 

:SCRASH2_18883
if 
  47@ == 1
goto_if_false @SCRASH2_19115
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_18933
70@ = get_car_speed 81@
cset_var_int_to_lvar_float $7244 =# 70@

:SCRASH2_18933
set_var_int_to_lvar_int $g_SCrash2_spookKM = 34@
set_var_int_to_lvar_int $SCrash2_view_debug = 35@
set_var_int_to_lvar_int $7240 = TIMERA
set_var_int_to_lvar_int $7241 = TIMERB
set_var_int_to_lvar_int $7242 = 46@
set_var_int_to_lvar_int $7243 = 119@
set_var_int_to_lvar_int $7245 = 121@
view_integer_variable $g_SCrash2_spookKM {_p2} "M_STAGE"
view_integer_variable $SCrash2_view_debug {_p2} "M_GOALS"
view_integer_variable $7242 {_p2} "M_MISSION_TIMER"
view_integer_variable $7243 {_p2} "TRAIN_DISTANCE"
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19094
view_integer_variable $7244 {_p2} "TRAIN_SPEED"

:SCRASH2_19094
view_integer_variable $7245 {_p2} "PLAYER_FROM_LS"

:SCRASH2_19115
if 
  47@ == 2
goto_if_false @SCRASH2_19133

:SCRASH2_19133
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @SCRASH2_19155
38@ = 1

:SCRASH2_19155
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @SCRASH2_19243
if 
  39@ == 0
goto_if_false @SCRASH2_19218
39@ = 1
write_debug "LEVEL_PAUSED"
goto @SCRASH2_19243

:SCRASH2_19218
39@ = 0
write_debug "LEVEL_UNPAUSED"

:SCRASH2_19243
return 

:SCRASH2_19245
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @SCRASH2_19262
return 

:SCRASH2_19262
if 
  34@ == 1
goto_if_false @SCRASH2_19334
clear_area -2063.5471 {y} 253.2754 {z} 34.3043 {radius} 0.5 {clearParticles} True
set_char_coordinates $scplayer {x} -2063.5471 {y} 253.2754 {z} 34.3043
set_char_heading $scplayer {heading} 0.0

:SCRASH2_19334
if and
  34@ == 2
  4 > 35@
goto_if_false @SCRASH2_19585
if 
  166@ == 0
goto_if_false @SCRASH2_19452
clear_area -1944.025 {y} 135.5236 {z} 24.7109 {radius} 100.0 {clearParticles} True
81@ = create_mission_train 11 {x} -1944.025 {y} 135.5236 {z} 24.7109 {direction} False
set_train_speed 81@ {speed} 0.0
set_train_cruise_speed 81@ {speed} 0.0
166@ = 1

:SCRASH2_19452
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19478
82@ = get_train_carriage 81@ {number} 1

:SCRASH2_19478
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_19506
task_enter_car_as_passenger 78@ {vehicle} 82@ {time} 100 {seat} -1

:SCRASH2_19506
clear_area -1989.161 {y} 208.5921 {z} 26.6797 {radius} 0.5 {clearParticles} True
set_char_coordinates $scplayer {x} -1989.161 {y} 208.5921 {z} 26.6797
set_char_heading $scplayer {heading} 221.8946
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ = 4

:SCRASH2_19585
if and
  34@ == 3
  4 > 35@
goto_if_false @SCRASH2_19732
if 
  35@ == 1
goto_if_false @SCRASH2_19671
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19664
set_mission_train_coordinates 81@ {x} 779.9327 {y} -1334.155 {z} -2.534

:SCRASH2_19664
goto @SCRASH2_19678

:SCRASH2_19671
35@ = 4

:SCRASH2_19678
clear_area 815.0453 {y} -1323.097 {z} 12.5036 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} 815.0453 {y} -1323.097 {z} 12.5036
set_char_heading $scplayer {heading} 187.142

:SCRASH2_19732
if and
  34@ == 4
  11 > 35@
goto_if_false @SCRASH2_20028
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_19803
set_char_coordinates 78@ {x} 803.7784 {y} -1342.926 {z} 12.5469
set_char_heading 78@ {heading} 92.3748

:SCRASH2_19803
if 
  168@ == 1
goto_if_false @SCRASH2_19874
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_19867
set_car_coordinates 87@ {x} 799.7784 {y} -1342.926 {z} 12.5469
set_car_heading 87@ {heading} 7.9128

:SCRASH2_19867
goto @SCRASH2_19950

:SCRASH2_19874
clear_area 799.7784 {y} -1342.926 {z} 12.5469 {radius} 10.0 {clearParticles} True
87@ = create_car 420 {x} 799.7784 {y} -1342.926 {z} 12.5469
set_car_heading 87@ {heading} 7.9128
79@ = create_char_inside_car 87@ {pedType} PedType.CivMale {modelId} 18
168@ = 1

:SCRASH2_19950
if and
  not is_car_dead 81@
  166@ == 1
goto_if_false @SCRASH2_19995
set_train_cruise_speed 81@ {speed} 30.0
mark_mission_train_as_no_longer_needed 81@
166@ = 0

:SCRASH2_19995
156@ = 0
157@ = 0
158@ = 1
remove_blip 90@
35@ = 11

:SCRASH2_20028
if 
  34@ == 5
goto_if_false @SCRASH2_20207
132@ = 366.4698
133@ = -2030.6429
134@ = 6.6582
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_20146
clear_area 366.4698 {y} -2030.6429 {z} 6.6582 {radius} 5.0 {clearParticles} True
set_char_coordinates 78@ {x} 366.4698 {y} -2030.6429 {z} 6.6582
set_char_heading 78@ {heading} 179.2269

:SCRASH2_20146
clear_area 383.3648 {y} -1930.448 {z} 6.8301 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} 383.3648 {y} -1930.448 {z} 6.8301
set_char_heading $scplayer {heading} 88.4042
35@ = 1

:SCRASH2_20207
return 

:SCRASH2_20209
41@ += 1
if 
  41@ > 9
goto_if_false @SCRASH2_20241
41@ = 0

:SCRASH2_20241
return 

:SCRASH2_20243
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:SCRASH2_20282
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:SCRASH2_20312
set_player_control $player1 {state} False
load_cutscene 'SCRASH2'

:SCRASH2_20330
if 
  not has_cutscene_loaded 
goto_if_false @SCRASH2_20354
wait 0
goto @SCRASH2_20330

:SCRASH2_20354
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SCRASH2_20399
if 
  not has_cutscene_finished 
goto_if_false @SCRASH2_20423
wait 0
goto @SCRASH2_20399

:SCRASH2_20423
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SCRASH2_20437
if 
  get_fading_status 
goto_if_false @SCRASH2_20461
wait 0
goto @SCRASH2_20437

:SCRASH2_20461
clear_cutscene 
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
return 

:SCRASH2_20489
if 
  not is_player_playing $player1
goto_if_false @SCRASH2_20516
wait 0
goto @SCRASH2_20489

:SCRASH2_20516
gosub @SCRASH2_20731
gosub @SCRASH2_20897
clear_area -1978.85 {y} 169.6607 {z} 26.6953 {radius} 3.0 {clearParticles} False
89@ = create_car 468 {x} -1978.85 {y} 169.6607 {z} 26.6953
set_car_heading 89@ {heading} 90.1127
161@ = 1
clear_area -2033.339 {y} 148.6139 {z} 27.8359 {radius} 0.5 {clearParticles} False
load_scene -2033.339 {y} 148.6139 {z} 27.8359
set_char_coordinates $scplayer {x} -2033.339 {y} 148.6139 {z} 27.8359
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
set_player_control $player1 {state} True
switch_random_trains False
set_respawn_point_for_duration_of_mission -2026.061 {y} 148.828 {z} 27.8359
set_railtrack_resistance_mult 0.4
wait 1000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
gosub @SCRASH2_20282
return 

:SCRASH2_20731
request_model 538
request_model 570
request_model 537
request_model 569
request_model 468
request_model 147
request_model 18
request_model 46
request_model 358
request_model 346
load_all_models_now 

:SCRASH2_20781
if or
  not has_model_loaded 538
  not has_model_loaded 570
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 468
goto_if_false @SCRASH2_20828
wait 0
goto @SCRASH2_20781

:SCRASH2_20828
if or
  not has_model_loaded 147
  not has_model_loaded 18
  not has_model_loaded 46
goto_if_false @SCRASH2_20863
wait 0
goto @SCRASH2_20828

:SCRASH2_20863
if or
  not has_model_loaded 358
  not has_model_loaded 346
goto_if_false @SCRASH2_20895
wait 0
goto @SCRASH2_20863

:SCRASH2_20895
return 

:SCRASH2_20897
request_animation "MISC"
request_animation "GANGS"

:SCRASH2_20914
if or
  not has_animation_loaded "MISC"
  not has_animation_loaded "GANGS"
goto_if_false @SCRASH2_20953
wait 0
goto @SCRASH2_20914

:SCRASH2_20953
return 

:SCRASH2_20955
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_21197 {caseNum1} 1 {caseLabel1} @SCRASH2_21036 {caseNum2} 2 {caseLabel2} @SCRASH2_21059 {caseNum3} 3 {caseLabel3} @SCRASH2_21082 {caseNum4} 4 {caseLabel4} @SCRASH2_21105 {caseNum5} 5 {caseLabel5} @SCRASH2_21128 {caseNum6} 6 {caseLabel6} @SCRASH2_21151 {caseNum7} 7 {caseLabel7} @SCRASH2_21174

:SCRASH2_21036
print_now 'SCR2_80' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21059
print_now 'SCR2_81' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21082
print_now 'SCR2_82' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21105
print_now 'SCR2_83' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21128
print_now 'SCR2_84' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21151
print_now 'SCR2_85' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21174
print_now 'SCR2_86' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21197
155@ = 1
return 

:SCRASH2_21206
clear_small_prints 
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SCRA_2'
player_made_progress 1
$flag_scrash_mission_counter += 1
remove_blip $scrash_contact_blip
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
155@ = 0
return 

:SCRASH2_21293
if 
  is_player_playing $player1
goto_if_false @SCRASH2_21398
if 
  155@ == 1
goto_if_false @SCRASH2_21398
if 
  131@ == 0
goto_if_false @SCRASH2_21359
remove_weapon_from_char $scplayer {weaponType} WeaponType.Sniper
goto @SCRASH2_21398

:SCRASH2_21359
50@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  is_int_lvar_greater_than_int_lvar 50@ > 131@
goto_if_false @SCRASH2_21398
set_char_ammo $scplayer {weaponType} WeaponType.Sniper {ammo} 131@

:SCRASH2_21398
if and
  168@ == 1
  not is_car_dead 87@
goto_if_false @SCRASH2_21428
set_taxi_lights 87@ {state} False

:SCRASH2_21428
if 
  not is_char_dead 79@
goto_if_false @SCRASH2_21449
clear_char_tasks 79@

:SCRASH2_21449
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_21470
clear_look_at 78@

:SCRASH2_21470
remove_pickup 95@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 80@
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 358
48@ = 0

:SCRASH2_21512
mark_mission_train_as_no_longer_needed 84@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_21512
if 
  166@ == 1
goto_if_false @SCRASH2_21591
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_21591
set_train_cruise_speed 81@ {speed} 30.0
mark_mission_train_as_no_longer_needed 81@

:SCRASH2_21591
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
clear_onscreen_counter $cunt_y
remove_animation "MISC"
remove_animation "GANGS"
clear_help 
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 46
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 346
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original 789.595 {leftBottomY} -1387.97 {leftBottomZ} 11.5469 {rightTopX} 807.2843 {rightTopY} -1334.546 {rightTopZ} 13.725
switch_roads_back_to_original 804.9978 {leftBottomY} -1414.032 {leftBottomZ} 11.3801 {rightTopX} 908.0844 {rightTopY} -1386.618 {rightTopZ} 13.5524
switch_roads_back_to_original 802.1913 {leftBottomY} -1335.066 {leftBottomZ} 11.1828 {rightTopX} 911.4662 {rightTopY} -1313.045 {rightTopZ} 13.7469
set_railtrack_resistance_mult -1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 53---------------
// Originally: Mountain Cloud Boys

:WUZI1
script_name 'WUZI1'
gosub @WUZI1_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI1_38
gosub @WUZI1_27783

:WUZI1_38
gosub @WUZI1_27865
terminate_this_script 

:WUZI1_47
231@ = 15
232@ = 33
233@ = 38
234@ = 39
235@ = 40
236@ = 41
237@ = 42
265@ = 0
load_mission_text 'WUZI1'
clear_this_print 'M_FAIL'
$onmission = 1
register_mission_given 
if 
  71@ == 99
goto_if_false @WUZI1_231
35@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
104@ = create_car 419 {x} 0.0 {y} 0.0 {z} 0.0
157@ = create_group DefaultTaskAllocator.StandStill
107@ = add_blip_for_char 35@
109@ = add_blip_for_char 35@
108@ = add_blip_for_char 35@

:WUZI1_231
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI1_257
goto @WUZI1_27801

:WUZI1_257
if 
is_ps2_keyboard_key_pressed 27
goto_if_false @WUZI1_328
set_char_coordinates $scplayer {x} -2175.7351 {y} 653.6188 {z} 48.4453
if 
  not is_char_dead 35@
goto_if_false @WUZI1_328
set_char_coordinates 35@ {x} -2176.7351 {y} 653.6188 {z} 48.4453

:WUZI1_328
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @WUZI1_399
set_char_coordinates $scplayer {x} -2247.749 {y} 649.4075 {z} 48.4375
if 
  not is_char_dead 35@
goto_if_false @WUZI1_399
set_char_coordinates 35@ {x} -2246.749 {y} 649.4075 {z} 48.4375

:WUZI1_399
switch_start 71@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @WUZI1_695 {caseNum1} 0 {caseLabel1} @WUZI1_527 {caseNum2} 1 {caseLabel2} @WUZI1_548 {caseNum3} 2 {caseLabel3} @WUZI1_569 {caseNum4} 3 {caseLabel4} @WUZI1_583 {caseNum5} 4 {caseLabel5} @WUZI1_597 {caseNum6} 5 {caseLabel6} @WUZI1_611 {caseNum7} 6 {caseLabel7} @WUZI1_625
switch_continued 7 {caseLabel1} @WUZI1_639 {caseNum2} 8 {caseLabel2} @WUZI1_653 {caseNum3} 9 {caseLabel3} @WUZI1_667 {caseNum4} 10 {caseLabel4} @WUZI1_681 {caseNum5} -1 {caseLabel5} @WUZI1_695 {caseNum6} -1 {caseLabel6} @WUZI1_695 {caseNum7} -1 {caseLabel7} @WUZI1_695 {caseNum8} -1 {caseLabel8} @WUZI1_695 {caseNum9} -1 {caseLabel9} @WUZI1_695

:WUZI1_527
gosub @WUZI1_2353
71@ = 1
goto @WUZI1_695

:WUZI1_548
gosub @WUZI1_1167
71@ = 2
goto @WUZI1_695

:WUZI1_569
gosub @WUZI1_2631
goto @WUZI1_695

:WUZI1_583
gosub @WUZI1_7076
goto @WUZI1_695

:WUZI1_597
gosub @WUZI1_13135
goto @WUZI1_695

:WUZI1_611
gosub @WUZI1_13771
goto @WUZI1_695

:WUZI1_625
gosub @WUZI1_16455
goto @WUZI1_695

:WUZI1_639
gosub @WUZI1_17108
goto @WUZI1_695

:WUZI1_653
gosub @WUZI1_18970
goto @WUZI1_695

:WUZI1_667
gosub @WUZI1_19863
goto @WUZI1_695

:WUZI1_681
goto @WUZI1_27801
goto @WUZI1_695

:WUZI1_695
gosub @WUZI1_838
gosub @WUZI1_906
gosub @WUZI1_23150
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
228@, 229@, 230@ = get_char_coordinates $scplayer
if or
  71@ == 2
  71@ == 4
  71@ == 6
goto_if_false @WUZI1_804
gosub @WUZI1_20338
gosub @WUZI1_22825
gosub @WUZI1_23039
gosub @WUZI1_23148

:WUZI1_804
if 
  36@ == 1
goto_if_false @WUZI1_829
goto @WUZI1_27783

:WUZI1_829
goto @WUZI1_231
return 

:WUZI1_838
if 
  37@ == 1
goto_if_false @WUZI1_904
if 
  is_char_dead 35@
goto_if_false @WUZI1_904
clear_prints 
print 'WZ1_40' {time} 5000 {flag} 1
36@ = 1
goto @WUZI1_27783

:WUZI1_904
return 

:WUZI1_906
if 
  73@ == 1
goto_if_false @WUZI1_1165
if 
  72@ == 1
goto_if_false @WUZI1_1029
if 
  not is_char_dead 35@
goto_if_false @WUZI1_1029
if 
  not is_group_member 35@ {handle} $Players_Group
goto_if_false @WUZI1_1029
72@ = 0
remove_blip 108@
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
change_blip_display 107@ {display} BlipDisplay.Neither
clear_prints 
print 'WZ1_41' {time} 4000 {flag} 1

:WUZI1_1029
if 
  72@ == 0
goto_if_false @WUZI1_1165
if 
  not is_char_dead 35@
goto_if_false @WUZI1_1165
if 
  is_group_member 35@ {handle} $Players_Group
goto_if_false @WUZI1_1096
72@ = 1
goto @WUZI1_1165

:WUZI1_1096
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @WUZI1_1165
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@
listen_to_player_group_commands 35@ {state} False
remove_blip 108@
change_blip_display 107@ {display} BlipDisplay.Both
72@ = 1

:WUZI1_1165
return 

:WUZI1_1167
191@ = 4
load_special_character 1 {modelName} 'WUZIMU'
request_model 352
request_model 121
request_model 122
request_model 123
request_model 117
request_model 118
request_model 358
request_model 405
request_model 468
request_model 58
request_animation "WUZI"
request_car_recording 169
request_car_recording 139

:WUZI1_1249
if or
  not has_special_character_loaded 1
  not has_model_loaded 352
  not has_model_loaded 358
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
goto_if_false @WUZI1_1297
wait 0
goto @WUZI1_1249

:WUZI1_1297
if or
  not has_model_loaded 405
  not has_model_loaded 468
  not has_model_loaded 117
  not has_model_loaded 118
  not has_model_loaded 58
goto_if_false @WUZI1_1341
wait 0
goto @WUZI1_1297

:WUZI1_1341
if or
  not has_car_recording_been_loaded 169
  not has_car_recording_been_loaded 139
goto_if_false @WUZI1_1373
wait 0
goto @WUZI1_1341

:WUZI1_1373
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
34@ = load_char_decision_maker DecisionMakerType.Tough
clear_char_decision_maker_event_response 34@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 34@ {event} Event.Damage
clear_char_decision_maker_event_response 34@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 34@ {event} Event.ShotFired
add_char_decision_maker_event_response 34@ {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 34@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
if 
  does_object_exist $g_BD_DOOR
goto_if_false @WUZI1_1529
delete_object $g_BD_DOOR

:WUZI1_1529
$g_BD_DOOR = create_object_no_offset #CT_GATEXR {x} -2179.353 {y} 661.232 {z} 50.214
set_object_collision_damage_effect $g_BD_DOOR {state} False
mark_model_as_no_longer_needed #CT_GATEXR
68@ = create_object_no_offset #CT_STALL1 {x} -2213.4131 {y} 640.908 {z} 48.43
set_object_heading 68@ {heading} 90.0
58@ = create_object_no_offset #CT_TABLE {x} -2201.436 {y} 647.109 {z} 48.413
49@ = create_object_no_offset #CHINATGARAGEDOOR {x} -2184.415 {y} 711.556 {z} 54.523
50@ = create_object_no_offset #CHINATGARAGEDOOR {x} -2178.8701 {y} 711.556 {z} 54.523
45@ = create_object_no_offset #TMP_BIN {x} -2183.968 {y} 647.055 {z} 49.185
46@ = create_object_no_offset #TMP_BIN {x} -2172.813 {y} 654.019 {z} 49.185
47@ = create_object_no_offset #TMP_BIN {x} -2172.813 {y} 649.293 {z} 49.185
set_object_heading 46@ {heading} 270.0
set_object_heading 47@ {heading} 270.0
set_object_heading $g_BD_DOOR {heading} 0.0
set_wanted_multiplier 0.2
alter_wanted_level $player1 {wantedLevel} 0
73@ = 1
switch_emergency_services False
77@ = 99
201@ = -2199.0
205@ = 645.4869
209@ = 48.4453
213@ = -2194.6799
217@ = 646.1572
221@ = 48.4453
202@ = -2199.0
206@ = 640.8279
210@ = 48.4453
214@ = -2194.043
218@ = 638.7194
222@ = 48.4453
203@ = -2195.8391
207@ = 635.439
211@ = 48.4453
215@ = -2189.3669
219@ = 636.7801
223@ = 48.4453
204@ = -2213.0049
208@ = 638.9453
212@ = 48.4459
216@ = -2204.7781
220@ = 639.4221
224@ = 48.4453
35@ = create_char PedType.Mission2 {modelId} 290 {x} -2155.4619 {y} 645.8904 {z} 51.3516
set_lvar_int_to_lvar_int 741@ = 35@
37@ = 1
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_current_char_weapon 35@ {weaponType} WeaponType.Unarmed
set_char_heading 35@ {heading} 180.0
set_char_health 35@ {health} 250
set_char_max_health 35@ {maxHealth} 250
161@ = 250
set_char_suffers_critical_hits 35@ {state} False
unload_special_character 1
107@ = add_blip_for_coord -2244.9951 {y} 642.8972 {z} 48.4077
if 
  not is_char_dead $scplayer
goto_if_false @WUZI1_2203
set_char_coordinates $scplayer {x} -2155.2661 {y} 645.0895 {z} 51.3516
set_char_heading $scplayer {heading} 270.0

:WUZI1_2203
if 
  not is_char_dead 35@
goto_if_false @WUZI1_2268
set_anim_group_for_char 35@ {animGroup} "BLINDMAN"
set_char_decision_maker 35@ {handleOrTemplate} 34@
set_char_never_targetted 35@ {state} True
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@
72@ = 1

:WUZI1_2268
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
load_scene_in_direction -2155.2661 {y} 645.0895 {z} 51.3516 {heading} 270.0
request_collision -2155.0 {y} 645.0
do_fade 1000 {direction} Fade.In
load_scene -2155.2661 {y} 645.0895 {z} 51.3
71@ = 2
42@ = 0
return 

:WUZI1_2353
load_mission_text 'WUZI1'
set_player_control $player1 {state} False
set_area_visible 1
load_cutscene 'WOOZI1A'

:WUZI1_2386
if 
  not has_cutscene_loaded 
goto_if_false @WUZI1_2410
wait 0
goto @WUZI1_2386

:WUZI1_2410
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI1_2419
if 
  not has_cutscene_finished 
goto_if_false @WUZI1_2443
wait 0
goto @WUZI1_2419

:WUZI1_2443
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_2463
238@ = 1

:WUZI1_2463
do_fade 0 {direction} Fade.Out

:WUZI1_2469
if 
  get_fading_status 
goto_if_false @WUZI1_2493
wait 0
goto @WUZI1_2469

:WUZI1_2493
clear_cutscene 
if 
  238@ == 0
goto_if_false @WUZI1_2613
load_cutscene 'WOOZI1B'

:WUZI1_2524
if 
  not has_cutscene_loaded 
goto_if_false @WUZI1_2548
wait 0
goto @WUZI1_2524

:WUZI1_2548
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI1_2557
if 
  not has_cutscene_finished 
goto_if_false @WUZI1_2581
wait 0
goto @WUZI1_2557

:WUZI1_2581
do_fade 0 {direction} Fade.Out

:WUZI1_2587
if 
  get_fading_status 
goto_if_false @WUZI1_2611
wait 0
goto @WUZI1_2587

:WUZI1_2611
clear_cutscene 

:WUZI1_2613
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
wait 0
return 

:WUZI1_2631
if 
  38@ == 0
goto_if_false @WUZI1_3754
if 
  75@ == 0
goto_if_false @WUZI1_2724
637@ = 1
638@ = 2
75@ = 1
if 
  does_object_exist $g_BD_DOOR
goto_if_false @WUZI1_2724
set_object_rotation $g_BD_DOOR {x} 0.0 {y} 0.0 {z} 330.0

:WUZI1_2724
if 
  75@ == 1
goto_if_false @WUZI1_2783
if 
  637@ == 0
goto_if_false @WUZI1_2783
print 'WZ1_1' {time} 8000 {flag} 1
75@ = 2

:WUZI1_2783
if 
  75@ == 2
goto_if_false @WUZI1_3754
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  43@ == 0
goto_if_false @WUZI1_2871
if or
  627.0 > $player_y
  $player_y > 657.0
goto_if_false @WUZI1_2871
43@ = 1

:WUZI1_2871
if 
  43@ == 1
goto_if_false @WUZI1_2928
if 
  637@ == 0
goto_if_false @WUZI1_2928
637@ = 3
638@ = 2
43@ = 2

:WUZI1_2928
if 
  43@ == 2
goto_if_false @WUZI1_2974
if 
  -2164.0 > $player_x
goto_if_false @WUZI1_2974
43@ = 3

:WUZI1_2974
if 
  43@ == 3
goto_if_false @WUZI1_3031
if 
  637@ == 0
goto_if_false @WUZI1_3031
637@ = 5
638@ = 3
43@ = 4

:WUZI1_3031
if 
  43@ == 4
goto_if_false @WUZI1_3087
if and
  707.0 > $player_y
  $player_y > 587.0
goto_if_false @WUZI1_3087
43@ = 5

:WUZI1_3087
if 
  43@ == 5
goto_if_false @WUZI1_3144
if 
  637@ == 0
goto_if_false @WUZI1_3144
637@ = 9
638@ = 2
43@ = 6

:WUZI1_3144
if 
  43@ == 7
goto_if_false @WUZI1_3193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_3193
task_leave_any_car $scplayer
43@ = 8

:WUZI1_3193
if 
  43@ == 8
goto_if_false @WUZI1_3303
if 
  not is_char_in_any_car $scplayer
goto_if_false @WUZI1_3269
set_player_control $player1 {state} True
43@ = 11
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3262
remove_char_from_group 35@

:WUZI1_3262
goto @WUZI1_3303

:WUZI1_3269
195@ = get_script_task_status $scplayer {taskId} 1587
if 
  is_int_lvar_equal_to_constant 195@ == 7
goto_if_false @WUZI1_3303
task_leave_any_car $scplayer

:WUZI1_3303
if 
  239@ == 1
goto_if_false @WUZI1_3367
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3367
637@ = 11
638@ = 2
239@ = 2

:WUZI1_3367
if 
  239@ == 2
goto_if_false @WUZI1_3440
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3440
print 'WZ1_B4' {time} 5000 {flag} 1
38@ = 1
239@ = 3

:WUZI1_3440
if 
  7 > 43@
goto_if_false @WUZI1_3754
if 
  72@ == 1
goto_if_false @WUZI1_3754
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3754
if 
  locate_char_any_means_3d $scplayer {x} -2248.0769 {y} 651.3163 {z} 48.3815 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI1_3754
if 
  not locate_char_any_means_3d 35@ {x} -2248.0769 {y} 651.3163 {z} 48.3815 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @WUZI1_3611
print_now 'WZ1_2' {time} 1000 {flag} 1
goto @WUZI1_3754

:WUZI1_3611
239@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_3728
$car = get_car_char_is_using $scplayer
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 600
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600
if 
  is_char_in_any_car 35@
goto_if_false @WUZI1_3728
132@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_3728
636@ = 6
remove_blip 107@
43@ = 7
73@ = 0

:WUZI1_3754
if 
  38@ == 1
goto_if_false @WUZI1_3878
if 
  not is_char_in_any_car $scplayer
goto_if_false @WUZI1_3878
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3878
132@ = open_sequence_task 
task_pause -1 {time} 300
task_follow_path_nodes_to_coord -1 {x} -2244.439 {y} 643.4277 {z} 48.4375 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
253@ = 20
38@ = 2

:WUZI1_3878
if 
  38@ == 2
goto_if_false @WUZI1_7074
if 
  240@ == 0
goto_if_false @WUZI1_4389
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  646.0 > $player_y
goto_if_false @WUZI1_4389
243@ = create_random_char -2182.969 {y} 645.0695 {z} 48.4453
244@ = create_random_char -2183.6431 {y} 642.2832 {z} 48.4453
245@ = create_random_char -2190.5071 {y} 636.5036 {z} 48.4429
246@ = create_random_char -2200.647 {y} 641.6252 {z} 48.4429
247@ = create_random_char -2200.6221 {y} 642.8997 {z} 48.4429
248@ = create_random_char -2223.2429 {y} 644.5712 {z} 48.4448
249@ = create_random_char -2235.814 {y} 642.5659 {z} 48.4472
set_lvar_int_to_lvar_int 250@ = TIMERA
132@ = open_sequence_task 
task_pause -1 {time} 2000
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 243@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 244@ {x} -2190.978 {y} 646.0287 {z} 48.4453 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord 245@ {x} -2192.9641 {y} 644.2189 {z} 48.4453 {speed} MoveState.Walk {time} -2
132@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 247@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
close_sequence_task 132@
perform_sequence_task 246@ {sequence} 132@
clear_sequence_task 132@
132@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 246@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
close_sequence_task 132@
perform_sequence_task 247@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 248@ {x} -2200.9409 {y} 644.4352 {z} 48.4429 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord 249@ {x} -2213.1709 {y} 638.7413 {z} 48.4496 {speed} MoveState.Walk {time} -2
240@ = 1

:WUZI1_4389
if 
  240@ > 0
goto_if_false @WUZI1_5233
set_lvar_int_to_lvar_int 251@ = TIMERA
sub_int_lvar_from_int_lvar 251@ -= 250@
if 
  252@ == 0
goto_if_false @WUZI1_4511
if 
  251@ > 3500
goto_if_false @WUZI1_4511
if 
  not is_char_dead 244@
goto_if_false @WUZI1_4504
task_smart_flee_point 244@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4504
252@ = 1

:WUZI1_4511
if 
  252@ == 1
goto_if_false @WUZI1_4657
if 
  251@ > 6000
goto_if_false @WUZI1_4657
if 
  not is_char_dead 245@
goto_if_false @WUZI1_4650
132@ = open_sequence_task 
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 5000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 245@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_4650
252@ = 2

:WUZI1_4657
if 
  252@ == 2
goto_if_false @WUZI1_4745
if 
  251@ > 9000
goto_if_false @WUZI1_4745
if 
  not is_char_dead 246@
goto_if_false @WUZI1_4738
task_smart_flee_point 246@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4738
252@ = 3

:WUZI1_4745
if 
  252@ == 3
goto_if_false @WUZI1_4891
if 
  251@ > 8000
goto_if_false @WUZI1_4891
if 
  not is_char_dead 247@
goto_if_false @WUZI1_4884
132@ = open_sequence_task 
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 3000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 247@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_4884
252@ = 4

:WUZI1_4891
if 
  252@ == 4
goto_if_false @WUZI1_4979
if 
  251@ > 10000
goto_if_false @WUZI1_4979
if 
  not is_char_dead 248@
goto_if_false @WUZI1_4972
task_smart_flee_point 248@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4972
252@ = 5

:WUZI1_4979
if 
  252@ == 5
goto_if_false @WUZI1_5067
if 
  251@ > 12000
goto_if_false @WUZI1_5067
if 
  not is_char_dead 249@
goto_if_false @WUZI1_5060
task_smart_flee_point 249@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_5060
252@ = 6

:WUZI1_5067
if 
  252@ == 6
goto_if_false @WUZI1_5233
if 
  251@ > 52000
goto_if_false @WUZI1_5233
130@ = 0

:WUZI1_5113
if 
  7 > 130@
goto_if_false @WUZI1_5226
if 
  not is_char_dead 243@(130@,7i)
goto_if_false @WUZI1_5212
task_pause 243@(130@,7i) {time} 1
mark_char_as_no_longer_needed 243@(130@,7i)
task_wander_standard 243@(130@,7i)
switch_ped_roads_off -2239.251 {leftBottomY} 636.6675 {leftBottomZ} 53.1933 {rightTopX} -2165.0471 {rightTopY} 720.0577 {rightTopZ} 49.5456

:WUZI1_5212
130@ += 1
goto @WUZI1_5113

:WUZI1_5226
252@ = 7

:WUZI1_5233
if 
  240@ == 1
goto_if_false @WUZI1_5535
if and
  251@ > 12000
  22000 > 251@
goto_if_false @WUZI1_5535
if 
  not is_char_dead 35@
goto_if_false @WUZI1_5535
$x, $y, $z = get_char_coordinates 35@
if and
  $x > -2240.2759
  -2227.0 > $x
goto_if_false @WUZI1_5535
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @WUZI1_5535
clear_char_tasks 35@
task_pause 35@ {time} 1
flush_route 
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
132@ = open_sequence_task 
task_scratch_head -1
task_look_at_char -1 {target} $scplayer {time} 5000
task_pause -1 {time} 1000
task_pause -1 {time} 0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
637@ = 69
638@ = 4
240@ = 2
253@ = 21

:WUZI1_5535
if 
  253@ == 1
goto_if_false @WUZI1_5786
if 
  not is_char_dead 35@
goto_if_false @WUZI1_5786
158@ = get_script_task_status 35@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_5786
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_5786
132@ = open_sequence_task 
task_play_anim -1 {animationName} "WUZI_GRND_CHK" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
task_go_straight_to_coord -1 {x} -2214.083 {y} 641.1605 {z} 48.4489 {speed} MoveState.Walk {time} -2
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
clear_char_decision_maker_event_response 34@ {event} Event.PotentialWalkIntoObject
637@ = 73
638@ = 3
253@ = 20

:WUZI1_5786
if 
  253@ == 20
goto_if_false @WUZI1_6150
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6150
158@ = get_script_task_status 35@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6150
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_6150
flush_route 
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @WUZI1_5976
254@ = 1
goto @WUZI1_5983

:WUZI1_5976
254@ = 0

:WUZI1_5983
132@ = open_sequence_task 
task_play_anim -1 {animationName} "WUZI_GRND_CHK" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
if 
  254@ == 1
goto_if_false @WUZI1_6096
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3500

:WUZI1_6096
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
clear_char_decision_maker_event_response 34@ {event} Event.PotentialWalkIntoObject
637@ = 73
638@ = 3
253@ = 21

:WUZI1_6150
if 
  253@ == 21
goto_if_false @WUZI1_6488
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6488
158@ = get_script_task_status 35@ {taskId} 1560
$x, $y, $z = get_char_coordinates 35@
if 
  $x > -2181.2759
goto_if_false @WUZI1_6292
132@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2172.958 {y} 644.4861 {z} 48.4453 {speed} MoveState.Run {time} -2
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
253@ = 22

:WUZI1_6292
if and
  -2243.0 > $x
  257@ == 1
goto_if_false @WUZI1_6435
257@ = 2
flush_route 
extend_route -2244.8311 {y} 643.3638 {z} 48.439
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
132@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_6435
if 
  $x > -2240.0
goto_if_false @WUZI1_6488
if or
  257@ == 0
  257@ == 2
goto_if_false @WUZI1_6488
257@ = 1

:WUZI1_6488
if 
  253@ == 22
goto_if_false @WUZI1_6633
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6633
158@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 1
goto_if_false @WUZI1_6633
if 
  255@ == 0
goto_if_false @WUZI1_6633
132@ = get_sequence_progress 35@
if or
  132@ == 1
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6633
256@ = set_char_say_context_important 35@ {phrase} SpeechId.PainCough {overrideSilence} True {ignoreMute} False {frontEnd} False
253@ = 23
255@ = 1

:WUZI1_6633
if 
  253@ == 23
goto_if_false @WUZI1_6784
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6784
158@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6784
132@ = open_sequence_task 
task_scratch_head -1
task_look_at_char -1 {target} $scplayer {time} 5000
task_pause -1 {time} 4000
task_go_straight_to_coord -1 {x} -2176.1841 {y} 653.9911 {z} 48.4453 {speed} MoveState.Walk {time} -2
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
637@ = 78
638@ = 4
253@ = 10

:WUZI1_6784
if 
  not is_char_dead 35@
goto_if_false @WUZI1_7074
if 
  78@ == 0
goto_if_false @WUZI1_6856
if 
  not is_char_in_any_car 35@
goto_if_false @WUZI1_6856
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
78@ = 1

:WUZI1_6856
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_7074
if or
  locate_char_any_means_3d $scplayer {x} -2175.8721 {y} 659.7667 {z} 49.4793 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} -2191.5129 {leftBottomY} 711.8201 {leftBottomZ} 63.4591 {rightTopX} -2171.8589 {rightTopY} 648.7307 {rightTopZ} 48.1132 {drawSphere} False
goto_if_false @WUZI1_7074
71@ = 3
42@ = 0
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 1500
remove_char_from_group 35@
remove_blip 108@
130@ = 0

:WUZI1_7013
if 
  7 > 130@
goto_if_false @WUZI1_7074
if 
  does_char_exist 243@(130@,7i)
goto_if_false @WUZI1_7060
delete_char 243@(130@,7i)

:WUZI1_7060
130@ += 1
goto @WUZI1_7013

:WUZI1_7074
return 

:WUZI1_7076
set_wanted_multiplier 0.1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_police_ignore_player $player1 {state} True
if 
  92@ == 1
goto_if_false @WUZI1_7122

:WUZI1_7122
if 
  39@ == 0
goto_if_false @WUZI1_7171
39@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WUZI1_7171
40@ = 1

:WUZI1_7171
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WUZI1_7253
if 
  40@ == 0
goto_if_false @WUZI1_7246
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_7246
42@ = 13
159@ = 0
636@ = 6

:WUZI1_7246
goto @WUZI1_7278

:WUZI1_7253
if 
  40@ == 1
goto_if_false @WUZI1_7278
40@ = 0

:WUZI1_7278
if 
  42@ == 0
goto_if_false @WUZI1_8405
set_near_clip 0.1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} False
196@ = get_current_char_weapon $scplayer
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -2172.251 {y} 660.9875 {z} 48.5695 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2173.0391 {y} 660.4017 {z} 48.7593 {switchStyle} SwitchType.JumpCut
set_object_collision_damage_effect $g_BD_DOOR {state} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
request_car_recording 169
100@ = create_car 405 {x} -2183.575 {y} 705.0761 {z} 52.8984
99@ = create_car 405 {x} -2174.429 {y} 703.2332 {z} 52.8918
set_car_heading 99@ {heading} 218.7637
set_car_heading 100@ {heading} 347.2325
freeze_car_position 99@ {state} True
freeze_car_position 100@ {state} True
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightRearDoor
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.LeftFrontDoor
damage_car_door 99@ {door} CarDoor.LeftFrontDoor
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 5
damage_car_panel 99@ {panelId} 4
damage_car_panel 99@ {panelId} 4
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 5
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.RightFrontDoor
damage_car_door 100@ {door} CarDoor.RightFrontDoor
damage_car_door 100@ {door} CarDoor.RightRearDoor
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 5
damage_car_door 100@ {door} CarDoor.Trunk
damage_car_door 100@ {door} CarDoor.Trunk
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.LeftFrontDoor
damage_car_door 100@ {door} CarDoor.LeftFrontDoor
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 5
open_car_door 99@ {door} CarDoor.RightFrontDoor
open_car_door 99@ {door} CarDoor.RightRearDoor
open_car_door 100@ {door} CarDoor.RightFrontDoor
burst_car_tyre 100@ {tireId} WheelId.BikeRear
pop_car_boot 100@
force_car_lights 99@ {lightMode} CarLights.ForceOn
explode_car_in_cutscene_shake_and_bits 99@ {shake} False {effect} False {sound} False
explode_car_in_cutscene_shake_and_bits 100@ {shake} False {effect} False {sound} False
clear_area -2180.4431 {y} 703.3992 {z} 55.7186 {radius} 20.0 {clearParticles} False
clear_area -2175.947 {y} 660.2386 {z} 49.7032 {radius} 10.0 {clearParticles} False
258@ = start_script_fire -2183.575 {y} 705.0761 {z} 52.8984 {propagation} 3 {size} 2
259@ = start_script_fire -2174.429 {y} 703.2332 {z} 52.8918 {propagation} 5 {size} 2
set_max_fire_generations 0
if 
  not is_char_dead 35@
goto_if_false @WUZI1_8350
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -2176.3301 {y} 654.2678 {z} 48.4453
set_char_coordinates $scplayer {x} -2175.3301 {y} 653.2678 {z} 48.4453
set_char_heading $scplayer {heading} 280.0
set_char_heading 35@ {heading} 270.0
task_go_straight_to_coord $scplayer {x} -2173.9519 {y} 657.6135 {z} 49.8762 {speed} MoveState.Walk {time} -2
132@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2174.469 {y} 658.379 {z} 48.4453 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 72.0
task_play_anim -1 {animationName} "WUZI_GREET_WUZI" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
754@ = 1
$wz1_health_bar = 1
285@ = 15
329@ = 12
289@ = 395
290@ = 4202
291@ = 7380
292@ = 13000
293@ = 14516
294@ = 17352
295@ = 19617
296@ = 21861
297@ = 23540
298@ = 26894
299@ = 28934
300@ = 33619
309@ = 15
310@ = 16
311@ = 17
312@ = 18
313@ = 19
314@ = 20
315@ = 21
316@ = 22
317@ = 23
318@ = 24
319@ = 25
320@ = 26

:WUZI1_8350
clear_area_of_cars -2168.531 {leftBottomY} 717.8694 {leftBottomZ} 68.3455 {rightTopX} -2254.3789 {rightTopY} 608.9255 {rightTopZ} 44.7364
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 7880
42@ = 1

:WUZI1_8405
if 
  42@ == 1
goto_if_false @WUZI1_8629
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8629
flush_route 
if 
  not is_char_dead 35@
goto_if_false @WUZI1_8525
extend_route -2175.939 {y} 662.5935 {z} 48.7831
extend_route -2175.3889 {y} 658.0797 {z} 48.4453
132@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_8525
flush_route 
extend_route -2174.71 {y} 658.746 {z} 48.4453
extend_route -2175.939 {y} 662.5935 {z} 48.7831
132@ = open_sequence_task 
task_pause -1 {time} 1200
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task $scplayer {sequence} 132@
clear_sequence_task 132@
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 2
92@ = 1

:WUZI1_8629
if 
  42@ == 2
goto_if_false @WUZI1_8673
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8673
42@ = 3

:WUZI1_8673
if 
  42@ == 3
goto_if_false @WUZI1_9104
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9104
set_fixed_camera_position -2176.8379 {y} 696.095 {z} 53.828 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2178.1709 {y} 693.774 {z} 54.725 {switchStyle} SwitchType.JumpCut
134@ = create_char PedType.CivMale {modelId} 117 {x} -2177.4619 {y} 698.151 {z} 52.923
135@ = create_char PedType.CivMale {modelId} 118 {x} -2182.4419 {y} 704.3199 {z} 52.8984
136@ = create_char PedType.CivMale {modelId} 117 {x} -2176.552 {y} 702.9572 {z} 52.8984
137@ = create_char PedType.CivMale {modelId} 118 {x} -2178.468 {y} 707.6988 {z} 52.8971
set_char_heading 134@ {heading} 77.5
set_char_heading 135@ {heading} 229.921
set_char_heading 136@ {heading} 148.6859
set_char_heading 137@ {heading} 12.4516
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
task_die 135@
task_die 136@
task_die 137@
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9081
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
set_char_coordinates $scplayer {x} -2177.0339 {y} 690.892 {z} 52.9
set_char_coordinates 35@ {x} -2177.9951 {y} 690.775 {z} 52.9
set_char_heading 35@ {heading} 0.0
set_char_heading $scplayer {heading} 0.0
task_play_anim $scplayer {animationName} "CS_PLYR_PT1" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
task_play_anim 35@ {animationName} "CS_WUZI_PT1" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2

:WUZI1_9081
42@ = 4
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000

:WUZI1_9104
if 
  42@ == 4
goto_if_false @WUZI1_9263
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9263
if 
  not is_char_dead 134@
goto_if_false @WUZI1_9263
set_char_coordinates 134@ {x} -2177.6021 {y} 698.151 {z} 53.0
set_char_heading 134@ {heading} 77.5
task_play_anim_non_interruptable 134@ {animationName} "CS_DEAD_GUY" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
freeze_char_position 134@ {state} True
set_char_collision 134@ {state} False
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 766
42@ = 5

:WUZI1_9263
if 
  42@ == 5
goto_if_false @WUZI1_9528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9528
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9528
42@ = 6
set_fixed_camera_position -2178.1331 {y} 693.2726 {z} 54.0799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2178.1299 {y} 694.2693 {z} 54.0 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2177.0339 {y} 694.913 {z} 52.87
set_char_coordinates 35@ {x} -2177.9939 {y} 696.476 {z} 52.87
set_char_heading 35@ {heading} 0.0
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
task_play_anim_non_interruptable $scplayer {animationName} "CS_PLYR_PT2" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
task_play_anim_non_interruptable 35@ {animationName} "CS_WUZI_PT2" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2234

:WUZI1_9528
if 
  42@ == 6
goto_if_false @WUZI1_9677
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9677
if 
  not is_char_dead 134@
goto_if_false @WUZI1_9677
set_char_coordinates 134@ {x} -2177.6021 {y} 698.151 {z} 53.0
task_play_anim_non_interruptable 134@ {animationName} "CS_DEAD_GUY" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
freeze_char_position 134@ {state} True
set_char_collision 134@ {state} False
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3833
42@ = 7

:WUZI1_9677
if 
  42@ == 7
goto_if_false @WUZI1_10092
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10092
if 
  not is_char_dead 35@
goto_if_false @WUZI1_10092
set_fixed_camera_position -2177.7981 {y} 695.7769 {z} 54.2318 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.627 {y} 696.7596 {z} 54.3015 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 8
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9830
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 5000

:WUZI1_9830
101@ = create_car 405 {x} -2177.5239 {y} 642.8537 {z} 48.4453
92@ = 0
set_object_heading $g_BD_DOOR {heading} 0.0
138@ = create_char_inside_car 101@ {pedType} PedType.Mission1 {modelId} 121
139@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
140@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.RearLeft
141@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.RearRight
give_weapon_to_char 138@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 140@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 138@ {accuracy} 60
set_char_accuracy 139@ {accuracy} 60
set_char_accuracy 140@ {accuracy} 60
set_char_accuracy 141@ {accuracy} 60
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_car_forward_speed 101@ {forwardSpeed} 20.0
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
156@ = create_char PedType.CivMale {modelId} 117 {x} -2180.2649 {y} 712.9368 {z} 52.905
set_lvar_int_to_lvar_int 742@ = 156@
set_char_heading 156@ {heading} 180.0

:WUZI1_10092
if 
  42@ == 8
goto_if_false @WUZI1_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10220
if 
  not is_char_dead 156@
goto_if_false @WUZI1_10220
if 
  not is_char_dead 35@
goto_if_false @WUZI1_10179
set_current_char_weapon 35@ {weaponType} WeaponType.MicroUzi
task_aim_gun_at_char 35@ {target} 156@ {time} 4000

:WUZI1_10179
task_aim_gun_at_char $scplayer {target} 156@ {time} 4000
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
42@ = 9
260@ = 1

:WUZI1_10220
if 
  42@ == 9
goto_if_false @WUZI1_10432
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10432
if 
  not is_char_dead 156@
goto_if_false @WUZI1_10406
task_hands_up 156@ {time} 5000
132@ = open_sequence_task 
task_pause -1 {time} 6000
task_play_anim -1 {animationName} "FLEE_LKAROUND_01" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 132@
perform_sequence_task $scplayer {sequence} 132@
clear_sequence_task 132@
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 8000
42@ = 10
263@ = 3
set_lvar_int_to_lvar_int 262@ = TIMERA
262@ += 8500
261@ = 1

:WUZI1_10406
set_lvar_int_to_constant 281@ = 35800
set_lvar_int_to_lvar_int 283@ = TIMERA
283@ += 6000

:WUZI1_10432
if 
  260@ == 1
goto_if_false @WUZI1_10595
if 
  263@ == 0
goto_if_false @WUZI1_10495
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStart
263@ = 1

:WUZI1_10495
if 
  slide_object 50@ {posX} -2178.8701 {posY} 711.556 {posZ} 57.523 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @WUZI1_10595
if 
  263@ == 1
goto_if_false @WUZI1_10595
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStop
263@ = 2
260@ = 2

:WUZI1_10595
if 
  261@ == 1
goto_if_false @WUZI1_10639
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 262@
goto_if_false @WUZI1_10639
261@ = 2

:WUZI1_10639
if 
  261@ == 2
goto_if_false @WUZI1_10795
if 
  263@ == 3
goto_if_false @WUZI1_10702
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStart
263@ = 4

:WUZI1_10702
if 
  slide_object 50@ {posX} -2178.8701 {posY} 711.556 {posZ} 54.523 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @WUZI1_10795
if 
  263@ == 4
goto_if_false @WUZI1_10795
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStop
263@ = 5

:WUZI1_10795
if 
  42@ == 10
goto_if_false @WUZI1_10855
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10855
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000
42@ = 11

:WUZI1_10855
if 
  42@ == 11
goto_if_false @WUZI1_11025
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11025
set_fixed_camera_position -2172.6741 {y} 674.1689 {z} 53.0772 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2173.2681 {y} 673.4052 {z} 52.8255 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 134@
goto_if_false @WUZI1_10966
set_char_health 134@ {health} 0

:WUZI1_10966
if and
  not is_car_dead 101@
  not is_char_dead 138@
goto_if_false @WUZI1_10995
start_playback_recorded_car 101@ {path} 169

:WUZI1_10995
set_object_collision_damage_effect $g_BD_DOOR {state} True
42@ = 14
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600

:WUZI1_11025
if 
  42@ == 14
goto_if_false @WUZI1_11112
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11112
break_object $g_BD_DOOR {intensity} 0
report_mission_audio_event_at_position -2177.4221 {y} 662.1031 {z} 51.0185 {soundId} ScriptSound.SoundCarSmashGate
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2800

:WUZI1_11112
if 
  42@ == 12
goto_if_false @WUZI1_11245
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11245
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11245
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11245
task_everyone_leave_car 101@
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
flush_route 
extend_route -2178.4719 {y} 676.4617 {z} 48.8898
extend_route -2178.4719 {y} 695.4617 {z} 52.8898

:WUZI1_11245
if 
  42@ == 13
goto_if_false @WUZI1_11410
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11361
if 
  not is_char_in_any_car 138@
goto_if_false @WUZI1_11361
158@ = get_script_task_status 138@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_11361
132@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 138@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_11361
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11410
42@ = 15
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000

:WUZI1_11410
if 
  42@ == 15
goto_if_false @WUZI1_13133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_13133
92@ = 0
if 
  does_object_exist $g_BD_DOOR
goto_if_false @WUZI1_11475
delete_object $g_BD_DOOR

:WUZI1_11475
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11521
set_car_coordinates 101@ {x} -2174.7271 {y} 673.9934 {z} 51.8769
set_car_heading 101@ {heading} 337.6978

:WUZI1_11521
request_model 117
request_model 118
request_car_recording 169

:WUZI1_11534
if or
  not has_model_loaded 117
  not has_model_loaded 118
  not has_car_recording_been_loaded 169
goto_if_false @WUZI1_11569
wait 0
goto @WUZI1_11534

:WUZI1_11569
if 
  is_car_dead 101@
goto_if_false @WUZI1_11608
101@ = create_car 405 {x} -2174.7271 {y} 673.9934 {z} 51.8769

:WUZI1_11608
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11653
if 
  not is_playback_going_on_for_car 101@
goto_if_false @WUZI1_11648
start_playback_recorded_car 101@ {path} 169

:WUZI1_11648
skip_to_end_and_stop_playback_recorded_car 101@

:WUZI1_11653
delete_char 138@
delete_char 139@
delete_char 140@
delete_char 141@
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11759
if 
  is_char_in_any_car 138@
goto_if_false @WUZI1_11732
warp_char_from_car_to_coord 138@ {x} -2176.6489 {y} 669.7497 {z} 50.7274
goto @WUZI1_11752

:WUZI1_11732
set_char_coordinates 138@ {x} -2176.6489 {y} 669.7497 {z} 50.7274

:WUZI1_11752
goto @WUZI1_11783

:WUZI1_11759
138@ = create_char PedType.Mission1 {modelId} 121 {x} -2176.6489 {y} 669.7497 {z} 50.7274

:WUZI1_11783
set_char_heading 138@ {heading} 34.4985
if 
  not is_char_dead 139@
goto_if_false @WUZI1_11879
if 
  is_char_in_any_car 139@
goto_if_false @WUZI1_11852
warp_char_from_car_to_coord 139@ {x} -2172.771 {y} 671.1902 {z} 51.1101
goto @WUZI1_11872

:WUZI1_11852
set_char_coordinates 139@ {x} -2172.771 {y} 671.1902 {z} 51.1101

:WUZI1_11872
goto @WUZI1_11903

:WUZI1_11879
139@ = create_char PedType.Mission1 {modelId} 122 {x} -2172.771 {y} 671.1902 {z} 51.1101

:WUZI1_11903
set_char_heading 139@ {heading} 28.6454
if 
  not is_char_dead 140@
goto_if_false @WUZI1_11999
if 
  is_char_in_any_car 140@
goto_if_false @WUZI1_11972
warp_char_from_car_to_coord 140@ {x} -2176.1431 {y} 676.2279 {z} 52.4792
goto @WUZI1_11992

:WUZI1_11972
set_char_coordinates 140@ {x} -2176.1431 {y} 676.2279 {z} 52.4792

:WUZI1_11992
goto @WUZI1_12023

:WUZI1_11999
140@ = create_char PedType.Mission1 {modelId} 123 {x} -2176.1431 {y} 676.2279 {z} 52.4792

:WUZI1_12023
set_char_heading 140@ {heading} 6.8518
if 
  not is_char_dead 141@
goto_if_false @WUZI1_12119
if 
  is_char_in_any_car 141@
goto_if_false @WUZI1_12092
warp_char_from_car_to_coord 141@ {x} -2177.8201 {y} 675.736 {z} 52.3458
goto @WUZI1_12112

:WUZI1_12092
set_char_coordinates 141@ {x} -2177.8201 {y} 675.736 {z} 52.3458

:WUZI1_12112
goto @WUZI1_12143

:WUZI1_12119
141@ = create_char PedType.Mission1 {modelId} 122 {x} -2177.8201 {y} 675.736 {z} 52.3458

:WUZI1_12143
set_char_heading 141@ {heading} 6.2257
give_weapon_to_char 138@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 140@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_accuracy 138@ {accuracy} 60
set_char_accuracy 139@ {accuracy} 60
set_char_accuracy 140@ {accuracy} 60
set_char_accuracy 141@ {accuracy} 60
set_inform_respected_friends 138@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 139@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 140@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 141@ {radius} 30.0 {_p3} 8
flush_route 
extend_route -2178.0039 {y} 685.6806 {z} 52.8942
task_follow_point_route 141@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route -2176.0039 {y} 685.6806 {z} 52.8942
task_follow_point_route 140@ {speed} MoveState.Run {mode} RouteMode.Once
set_sense_range 138@ {range} 40.0
set_sense_range 139@ {range} 40.0
set_sense_range 140@ {range} 40.0
set_sense_range 141@ {range} 40.0
delete_char 134@
delete_char 135@
delete_char 136@
delete_char 137@
111@ = add_blip_for_char 138@
112@ = add_blip_for_char 139@
113@ = add_blip_for_char 140@
114@ = add_blip_for_char 141@
134@ = create_char PedType.CivMale {modelId} 117 {x} -2177.946 {y} 670.3361 {z} 50.8814
135@ = create_char PedType.CivMale {modelId} 118 {x} -2182.4419 {y} 704.3199 {z} 52.8984
136@ = create_char PedType.CivMale {modelId} 117 {x} -2176.552 {y} 702.9572 {z} 52.8984
137@ = create_char PedType.CivMale {modelId} 118 {x} -2178.468 {y} 707.6988 {z} 52.8971
set_char_heading 134@ {heading} 77.5
set_char_heading 135@ {heading} 229.921
set_char_heading 136@ {heading} 148.6859
set_char_heading 137@ {heading} 12.4516
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
task_die 134@
task_die 135@
task_die 136@
task_die 137@
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
set_char_allowed_to_duck 138@ {state} False
set_char_allowed_to_duck 139@ {state} False
set_char_stay_in_same_place 138@ {state} True
set_char_stay_in_same_place 139@ {state} True
if 
  not is_car_dead 99@
goto_if_false @WUZI1_12695
99@ = create_car 405 {x} -2174.429 {y} 703.2332 {z} 52.8918
set_car_heading 99@ {heading} 218.7637
explode_car_in_cutscene 99@

:WUZI1_12695
if 
  not is_car_dead 100@
goto_if_false @WUZI1_12749
100@ = create_car 405 {x} -2183.575 {y} 705.0761 {z} 52.8984
set_car_heading 100@ {heading} 347.2325
explode_car_in_cutscene 100@

:WUZI1_12749
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 123
if 
  does_object_exist 50@
goto_if_false @WUZI1_12798
set_object_coordinates 50@ {x} -2178.8701 {y} 711.556 {z} 54.523

:WUZI1_12798
wait 1000
clear_prints 
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} True
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CHINA_TOWN_GATEB {state} True
71@ = 4
38@ = 0
200@ = 1
77@ = 0
96@ = 1
$wz1_health_bar = 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13016
clear_char_tasks_immediately 35@
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2178.9719 {y} 704.3181 {z} 52.8971
set_char_coordinates 35@ {x} -2180.4231 {y} 703.6827 {z} 52.8971
set_char_heading $scplayer {heading} 190.0
set_char_heading 35@ {heading} 196.0
set_char_health 35@ {health} 250
set_current_char_weapon 35@ {weaponType} WeaponType.MicroUzi

:WUZI1_13016
$7246 = 100
display_onscreen_counter_with_string $7246 {display} CounterDisplay.Bar {text} 'WZ1_19'
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13082
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@

:WUZI1_13082
set_current_char_weapon $scplayer {weaponType} 196@
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 3000
754@ = 0
remove_animation "WUZI"
do_fade 1000 {direction} Fade.In
wait 1000

:WUZI1_13133
return 

:WUZI1_13135
if 
  264@ == 0
goto_if_false @WUZI1_13192
if 
  637@ == 0
goto_if_false @WUZI1_13192
637@ = 30
264@ = 1
73@ = 1

:WUZI1_13192
if 
  264@ == 1
goto_if_false @WUZI1_13251
if 
  637@ == 0
goto_if_false @WUZI1_13251
print 'WZ1_B1' {time} 4000 {flag} 1
264@ = 2

:WUZI1_13251
if 
  72@ == 1
goto_if_false @WUZI1_13647
if 
  636@ == 1
goto_if_false @WUZI1_13647
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13647
if 
  265@ == 0
goto_if_false @WUZI1_13429
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_13429
print 'WZ1_B3' {time} 5000 {flag} 1
265@ = 1

:WUZI1_13429
if 
  265@ == 1
goto_if_false @WUZI1_13647
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_13539
265@ = 0

:WUZI1_13539
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
goto_if_false @WUZI1_13647
print 'VAL_A9' {time} 4000 {flag} 1
36@ = 1

:WUZI1_13647
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2179.7759 {leftBottomY} 654.5721 {leftBottomZ} 51.7195 {rightTopX} -2172.2871 {rightTopY} 632.6477 {rightTopZ} 48.3312 {drawSphere} False
goto_if_false @WUZI1_13769
71@ = 5
42@ = 8
77@ = 7
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2000
39@ = 0
40@ = 0
754@ = 1
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 2500

:WUZI1_13769
return 

:WUZI1_13771
if 
  39@ == 0
goto_if_false @WUZI1_13816
39@ = 1
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_13816
40@ = 1

:WUZI1_13816
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_13894
if 
  40@ == 0
goto_if_false @WUZI1_13887
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_13887
42@ = 8
159@ = 0
636@ = 6

:WUZI1_13887
goto @WUZI1_13919

:WUZI1_13894
if 
  40@ == 1
goto_if_false @WUZI1_13919
40@ = 0

:WUZI1_13919
if 
  42@ == 0
goto_if_false @WUZI1_14440
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14440
42@ = 1
637@ = 47
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2176.937 {y} 641.8041 {z} 49.2832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.2949 {y} 642.7374 {z} 49.3052 {switchStyle} SwitchType.JumpCut
clear_area_of_cars -2179.249 {leftBottomY} 659.2075 {leftBottomZ} 50.1335 {rightTopX} -2172.2629 {rightTopY} 641.8954 {rightTopZ} 50.377
if 
  not is_car_dead 101@
goto_if_false @WUZI1_14158
if 
  is_car_in_area_3d 101@ {leftBottomX} -2182.094 {leftBottomY} 653.1942 {leftBottomZ} 50.6565 {rightTopX} -2173.9509 {rightTopY} 636.2528 {rightTopZ} 47.0812 {drawSphere} False
goto_if_false @WUZI1_14158
set_car_coordinates 101@ {x} -2175.7151 {y} 636.0 {z} 48.445
set_car_heading 101@ {heading} 306.9228

:WUZI1_14158
146@ = create_char PedType.Mission1 {modelId} 121 {x} -2218.2251 {y} 636.991 {z} 53.9509
set_inform_respected_friends 146@ {radius} 30.0 {_p3} 8
set_char_stay_in_same_place 146@ {state} True
set_char_accuracy 146@ {accuracy} 100
set_char_decision_maker 146@ {handleOrTemplate} 34@
give_weapon_to_char 146@ {weaponType} WeaponType.Sniper {ammo} 9999
set_char_shoot_rate 146@ {rate} 20
task_aim_gun_at_coord 146@ {x} -2182.917 {y} 645.9363 {z} 48.9215 {time} -2
set_char_heading 146@ {heading} 289.0
task_toggle_duck 146@ {state} True
if 
  not is_car_dead 102@
goto_if_false @WUZI1_14356
if 
  is_car_in_area_2d 102@ {leftBottomX} -2187.0339 {leftBottomY} 633.111 {rightTopX} -2172.262 {rightTopY} 660.5647 {drawSphere} False
goto_if_false @WUZI1_14356
set_car_coordinates 102@ {x} -2176.387 {y} 641.4572 {z} 50.5019
set_car_heading 102@ {heading} 320.0

:WUZI1_14356
if 
  not is_car_dead 103@
goto_if_false @WUZI1_14440
if 
  is_car_in_area_2d 103@ {leftBottomX} -2187.0339 {leftBottomY} 633.111 {rightTopX} -2172.262 {rightTopY} 660.5647 {drawSphere} False
goto_if_false @WUZI1_14440
set_car_coordinates 103@ {x} -2175.3831 {y} 640.9232 {z} 50.5734
set_car_heading 103@ {heading} 320.0

:WUZI1_14440
if 
  42@ == 1
goto_if_false @WUZI1_14646
clear_char_tasks_immediately $scplayer
set_fixed_camera_position -2176.937 {y} 641.8041 {z} 49.2832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.2949 {y} 642.7374 {z} 49.3052 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 35@
goto_if_false @WUZI1_14579
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -2175.697 {y} 650.9794 {z} 48.4429
task_go_straight_to_coord 35@ {x} -2179.958 {y} 641.7931 {z} 48.4453 {speed} MoveState.Walk {time} -2

:WUZI1_14579
set_char_coordinates $scplayer {x} -2176.897 {y} 650.9794 {z} 48.4429
task_go_straight_to_coord $scplayer {x} -2180.958 {y} 641.7931 {z} 48.4453 {speed} MoveState.Walk {time} -2
42@ = 2
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500

:WUZI1_14646
if 
  42@ == 2
goto_if_false @WUZI1_14752
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14752
if 
  not is_char_dead 146@
goto_if_false @WUZI1_14722
task_shoot_at_coord 146@ {x} -2179.925 {y} 646.69 {z} 48.4548 {time} 200

:WUZI1_14722
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 300
42@ = 3
75@ = 0

:WUZI1_14752
if 
  42@ == 3
goto_if_false @WUZI1_14936
if 
  75@ == 0
goto_if_false @WUZI1_14869
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14869
task_dive_and_get_up $scplayer {directionX} -1.0 {directionY} -1.0 {timeOnGround} 1000
if 
  not is_char_dead 35@
goto_if_false @WUZI1_14846
task_cower 35@

:WUZI1_14846
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 400
75@ = 1

:WUZI1_14869
if 
  75@ == 1
goto_if_false @WUZI1_14936
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14936
42@ = 4
637@ = 36
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 1000

:WUZI1_14936
if 
  42@ == 4
goto_if_false @WUZI1_15115
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15115
set_fixed_camera_position -2220.552 {y} 639.9709 {z} 53.7095 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2219.6379 {y} 639.5733 {z} 53.7963 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2178.2981 {y} 648.3584 {z} 48.4429
set_char_heading $scplayer {heading} 133.2868
if 
  not is_char_dead 146@
goto_if_false @WUZI1_15092
task_aim_gun_at_coord 146@ {x} -2184.709 {y} 635.0774 {z} 49.4781 {time} -2

:WUZI1_15092
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500
42@ = 5

:WUZI1_15115
if 
  42@ == 5
goto_if_false @WUZI1_15595
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15595
147@ = create_char PedType.Mission1 {modelId} 122 {x} -2219.5869 {y} 643.4511 {z} 48.4472
148@ = create_char PedType.Mission1 {modelId} 123 {x} -2223.5869 {y} 642.4511 {z} 48.4472
149@ = create_char PedType.Mission1 {modelId} 122 {x} -2227.5869 {y} 644.4511 {z} 48.4472
150@ = create_char PedType.Mission1 {modelId} 123 {x} -2230.5869 {y} 643.4511 {z} 48.4472
set_inform_respected_friends 147@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 148@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 149@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 150@ {radius} 30.0 {_p3} 8
set_char_accuracy 147@ {accuracy} 80
set_char_accuracy 148@ {accuracy} 80
set_char_accuracy 149@ {accuracy} 80
set_char_accuracy 150@ {accuracy} 85
set_char_decision_maker 147@ {handleOrTemplate} 34@
set_char_decision_maker 148@ {handleOrTemplate} 34@
set_char_decision_maker 149@ {handleOrTemplate} 34@
set_char_decision_maker 150@ {handleOrTemplate} 34@
task_go_straight_to_coord 147@ {x} -2194.9021 {y} 645.9846 {z} 48.4453 {speed} MoveState.Run {time} -2
flush_route 
extend_route -2200.209 {y} 644.2397 {z} 48.4429
extend_route -2199.939 {y} 641.5246 {z} 48.4429
set_char_stay_in_same_place 147@ {state} True
set_char_stay_in_same_place 148@ {state} True
set_char_stay_in_same_place 149@ {state} True
set_char_stay_in_same_place 150@ {state} True
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 5000
132@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_achieve_heading -1 {heading} 270.0
close_sequence_task 132@
perform_sequence_task 148@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 149@ {x} -2204.8511 {y} 641.7612 {z} 48.4429 {speed} MoveState.Run {time} -2
task_go_straight_to_coord 150@ {x} -2214.3711 {y} 641.3669 {z} 48.4515 {speed} MoveState.Run {time} -2
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 500
42@ = 6

:WUZI1_15595
if 
  42@ == 6
goto_if_false @WUZI1_15713
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15713
set_fixed_camera_position -2229.436 {y} 644.2267 {z} 48.4907 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2228.4871 {y} 643.9835 {z} 48.6883 {switchStyle} SwitchType.JumpCut
637@ = 46
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 3000
42@ = 7

:WUZI1_15713
if 
  42@ == 7
goto_if_false @WUZI1_15757
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15757
42@ = 8

:WUZI1_15757
if 
  42@ == 8
goto_if_false @WUZI1_16453
if 
  not does_char_exist 146@
goto_if_false @WUZI1_15864
146@ = create_char PedType.Mission1 {modelId} 123 {x} -2218.2251 {y} 636.991 {z} 53.9509
set_char_stay_in_same_place 146@ {state} True
set_char_decision_maker 146@ {handleOrTemplate} 34@
give_weapon_to_char 146@ {weaponType} WeaponType.Sniper {ammo} 9999
set_char_shoot_rate 146@ {rate} 20
set_char_heading 146@ {heading} 289.0
task_toggle_duck 146@ {state} True

:WUZI1_15864
if 
  not is_char_dead 146@
goto_if_false @WUZI1_15887
set_char_accuracy 146@ {accuracy} 50

:WUZI1_15887
delete_char 147@
delete_char 148@
delete_char 149@
delete_char 150@
147@ = create_char PedType.Mission1 {modelId} 121 {x} -2203.491 {y} 647.0372 {z} 48.4453
148@ = create_char PedType.Mission1 {modelId} 122 {x} -2200.6951 {y} 637.1932 {z} 48.4429
149@ = create_char PedType.Mission1 {modelId} 123 {x} -2196.9431 {y} 635.1917 {z} 48.4429
150@ = create_char PedType.Mission1 {modelId} 121 {x} -2214.3779 {y} 641.6099 {z} 48.4484
set_char_heading 147@ {heading} 255.1494
set_char_heading 148@ {heading} 285.6451
set_char_heading 149@ {heading} 295.4749
set_char_heading 150@ {heading} 277.3081
set_char_accuracy 147@ {accuracy} 60
set_char_accuracy 148@ {accuracy} 60
set_char_accuracy 149@ {accuracy} 60
set_char_accuracy 150@ {accuracy} 60
set_char_shoot_rate 147@ {rate} 85
set_char_shoot_rate 148@ {rate} 85
set_char_shoot_rate 149@ {rate} 85
set_char_shoot_rate 150@ {rate} 85
task_duck 147@ {time} 1000
task_duck 149@ {time} 3000
set_char_stay_in_same_place 147@ {state} True
set_char_stay_in_same_place 148@ {state} True
set_char_stay_in_same_place 149@ {state} True
set_char_stay_in_same_place 150@ {state} True
set_sense_range 147@ {range} 40.0
set_sense_range 148@ {range} 40.0
set_sense_range 149@ {range} 40.0
set_sense_range 150@ {range} 40.0
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 5000
151@ = create_char PedType.Mission1 {modelId} 121 {x} -2205.344 {y} 648.4099 {z} 48.4429
set_inform_respected_friends 151@ {radius} 30.0 {_p3} 8
give_weapon_to_char 151@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_heading 151@ {heading} 270.0
set_char_stay_in_same_place 151@ {state} True
120@ = add_blip_for_char 147@
121@ = add_blip_for_char 148@
122@ = add_blip_for_char 149@
123@ = add_blip_for_char 150@
124@ = add_blip_for_char 151@
if 
  not is_char_dead 146@
goto_if_false @WUZI1_16355
remove_blip 119@
119@ = add_blip_for_char 146@

:WUZI1_16355
set_char_decision_maker 147@ {handleOrTemplate} 34@
set_char_decision_maker 148@ {handleOrTemplate} 34@
set_char_decision_maker 149@ {handleOrTemplate} 34@
set_char_decision_maker 150@ {handleOrTemplate} 34@
set_char_decision_maker 151@ {handleOrTemplate} 34@
71@ = 6
200@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
77@ = 8
38@ = 0
265@ = 0
754@ = 0

:WUZI1_16453
return 

:WUZI1_16455
if 
  72@ == 1
goto_if_false @WUZI1_16851
if 
  636@ == 1
goto_if_false @WUZI1_16851
if 
  not is_char_dead 35@
goto_if_false @WUZI1_16851
if 
  265@ == 0
goto_if_false @WUZI1_16633
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_16633
print 'WZ1_B3' {time} 5000 {flag} 1
265@ = 1

:WUZI1_16633
if 
  265@ == 1
goto_if_false @WUZI1_16851
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_16743
265@ = 0

:WUZI1_16743
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
goto_if_false @WUZI1_16851
print 'VAL_A9' {time} 4000 {flag} 1
36@ = 1

:WUZI1_16851
if 
  267@ == 0
goto_if_false @WUZI1_16933
if 
  not is_char_dead 146@
goto_if_false @WUZI1_16933
if 
  is_char_shooting 146@
goto_if_false @WUZI1_16933
if 
  637@ == 0
goto_if_false @WUZI1_16933
637@ = 36
267@ = 1

:WUZI1_16933
if 
  267@ == 1
goto_if_false @WUZI1_17015
if 
  not is_char_dead 146@
goto_if_false @WUZI1_17015
if 
  is_char_shooting 146@
goto_if_false @WUZI1_17015
if 
  637@ == 0
goto_if_false @WUZI1_17015
637@ = 43
267@ = 2

:WUZI1_17015
if 
  95@ == 10
goto_if_false @WUZI1_17106
71@ = 7
42@ = 0
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 468
remove_animation "WUZI"
remove_car_recording 169
remove_car_recording 139
265@ = 0

:WUZI1_17106
return 

:WUZI1_17108
if 
  42@ == 0
goto_if_false @WUZI1_17259
if 
  636@ == 1
goto_if_false @WUZI1_17259
if 
  637@ == 0
goto_if_false @WUZI1_17259
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17183
remove_char_from_group 35@

:WUZI1_17183
clear_onscreen_counter $7246
request_animation "GANGS"
request_animation "CAR_CHAT"
request_car_recording 136
request_car_recording 137
request_car_recording 138
637@ = 55
$wz1_health_bar = 1
754@ = 1
42@ = 6
72@ = 0

:WUZI1_17259
if 
  42@ == 6
goto_if_false @WUZI1_17997
if 
  636@ == 1
goto_if_false @WUZI1_17997
if 
  637@ == 0
goto_if_false @WUZI1_17997
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
  has_car_recording_been_loaded 136
  has_car_recording_been_loaded 137
  has_car_recording_been_loaded 138
goto_if_false @WUZI1_17997
754@ = 0
if 
  not is_car_dead 104@
goto_if_false @WUZI1_17414
lock_car_doors 104@ {lockStatus} CarLock.Unlocked
freeze_car_position 104@ {state} False
set_car_coordinates 104@ {x} -2218.9299 {y} 642.3626 {z} 48.4475
set_car_heading 104@ {heading} 267.1711

:WUZI1_17414
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_17449
$car = get_car_char_is_using $scplayer

:WUZI1_17449
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17482
clear_char_tasks_immediately 35@
task_toggle_duck 35@ {state} False

:WUZI1_17482
if 
  not is_car_dead $car
goto_if_false @WUZI1_17503
delete_car $car

:WUZI1_17503
set_fixed_camera_position -2212.125 {y} 644.6052 {z} 51.6509 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2213.062 {y} 644.5379 {z} 51.3082 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 104@
goto_if_false @WUZI1_17700
set_char_coordinates $scplayer {x} -2212.3799 {y} 643.0919 {z} 48.4466
set_char_heading $scplayer {heading} 180.0
task_enter_car_as_driver $scplayer {vehicle} 104@ {time} -2
set_car_proofs 104@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17700
set_char_shoot_rate 35@ {rate} 80
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_coordinates 35@ {x} -2217.781 {y} 640.998 {z} 48.4549
set_char_heading 35@ {heading} 77.0
task_enter_car_as_passenger 35@ {vehicle} 104@ {time} 2600 {seat} SeatId.BikeRear

:WUZI1_17700
130@ = 0

:WUZI1_17707
if 
  18 > 130@
goto_if_false @WUZI1_17748
mark_char_as_no_longer_needed 138@(130@,18i)
130@ += 1
goto @WUZI1_17707

:WUZI1_17748
105@ = create_car 405 {x} -2245.343 {y} 715.4953 {z} 48.4375
set_car_heading 105@ {heading} 180.0
138@ = create_char_inside_car 105@ {pedType} PedType.Mission1 {modelId} 122
139@ = create_char_as_passenger 105@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.BikeRear
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 5000
start_playback_recorded_car 105@ {path} 136
106@ = create_car 405 {x} -2251.676 {y} 612.6026 {z} 42.259
set_car_heading 106@ {heading} 0.0
140@ = create_char_inside_car 106@ {pedType} PedType.Mission1 {modelId} 121
141@ = create_char_as_passenger 106@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
clear_char_decision_maker_event_response 34@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 34@ {event} Event.VehicleOnFire
add_char_decision_maker_event_response 34@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
42@ = 7
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2600

:WUZI1_17997
if 
  42@ == 7
goto_if_false @WUZI1_18092
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18092
set_fixed_camera_position -2217.8689 {y} 642.181 {z} 49.7208 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2218.8201 {y} 642.4485 {z} 49.5654 {switchStyle} SwitchType.JumpCut
42@ = 8

:WUZI1_18092
if 
  42@ == 8
goto_if_false @WUZI1_18173
if and
  not is_car_dead 105@
  not is_char_dead 138@
goto_if_false @WUZI1_18173
$x, $y, $z = get_car_coordinates 105@
if 
  653.8901 > $y
goto_if_false @WUZI1_18173
42@ = 9

:WUZI1_18173
if 
  42@ == 9
goto_if_false @WUZI1_18296
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_18296
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18223

:WUZI1_18223
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000
637@ = 60
42@ = 10
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3200

:WUZI1_18296
if 
  42@ == 10
goto_if_false @WUZI1_18416
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18416
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18416
set_car_heavy 104@ {state} True
start_playback_recorded_car 104@ {path} 138
if 
  not is_car_dead 105@
goto_if_false @WUZI1_18393
stop_playback_recorded_car 105@
start_playback_recorded_car 105@ {path} 137

:WUZI1_18393
42@ = 11
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000

:WUZI1_18416
if 
  42@ == 11
goto_if_false @WUZI1_18571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18571
set_fixed_camera_position -2251.02 {y} 649.9792 {z} 52.244 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 105@
goto_if_false @WUZI1_18528
$x, $y, $z = get_car_coordinates 105@
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:WUZI1_18528
report_mission_audio_event_at_position -2243.918 {y} 642.959 {z} 49.6897 {soundId} ScriptSound.SoundCarSmashCar
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 800

:WUZI1_18571
if 
  42@ == 12
goto_if_false @WUZI1_18639
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18639
set_lvar_int_to_lvar_int 270@ = TIMERA
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500

:WUZI1_18639
if 
  42@ == 13
goto_if_false @WUZI1_18871
set_lvar_int_to_lvar_int 271@ = TIMERA
sub_int_lvar_from_int_lvar 271@ -= 270@
cset_lvar_float_to_lvar_int 225@ =# 271@
set_lvar_float_to_lvar_float 226@ = 225@
226@ /= 2500.0
if and
  not is_car_dead 104@
  not is_car_dead 105@
goto_if_false @WUZI1_18845
$x, $y, $z = get_car_coordinates 105@
228@, 229@, 230@ = get_car_coordinates 104@
set_lvar_float_to_lvar_float 268@ = 228@
sub_float_var_from_float_lvar 268@ -= $x
set_lvar_float_to_lvar_float 269@ = 229@
sub_float_var_from_float_lvar 269@ -= $y
mult_float_lvar_by_float_lvar 268@ *= 226@
mult_float_lvar_by_float_lvar 269@ *= 226@
268@ /= 2.0
269@ /= 2.0
add_float_var_to_float_lvar 268@ += $x
add_float_var_to_float_lvar 269@ += $y
point_camera_at_point 268@ {y} 269@ {z} $z {switchStyle} SwitchType.JumpCut

:WUZI1_18845
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18871
42@ = 14

:WUZI1_18871
if 
  42@ == 14
goto_if_false @WUZI1_18968
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18942
set_car_heavy 104@ {state} False
set_car_proofs 104@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:WUZI1_18942
71@ = 8
38@ = 0
637@ = 63
remove_blip 108@

:WUZI1_18968
return 

:WUZI1_18970
if 
  38@ == 0
goto_if_false @WUZI1_19263
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19053
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_shoot_rate 35@ {rate} 80
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999

:WUZI1_19053
if 
  not is_car_dead 104@
goto_if_false @WUZI1_19183
if and
  not is_car_dead 105@
  not is_char_dead 138@
goto_if_false @WUZI1_19126
task_car_mission 138@ {vehicle} 105@ {targetVehicle} 104@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
set_car_health 105@ {health} 800
109@ = add_blip_for_char 138@

:WUZI1_19126
if and
  not is_car_dead 106@
  not is_char_dead 140@
goto_if_false @WUZI1_19183
task_car_mission 140@ {vehicle} 106@ {targetVehicle} 104@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
set_car_health 106@ {health} 800
110@ = add_blip_for_char 140@

:WUZI1_19183
if 
  not is_car_dead 104@
goto_if_false @WUZI1_19214
set_car_health 104@ {health} 3000
set_can_burst_car_tyres 104@ {state} False

:WUZI1_19214
81@ = 1
82@ = 1
73@ = 1
72@ = 0
38@ = 1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0

:WUZI1_19263
if 
  38@ == 1
goto_if_false @WUZI1_19633
if 
  272@ == 0
goto_if_false @WUZI1_19340
if 
  637@ == 0
goto_if_false @WUZI1_19340
272@ = 1
print 'WZ1_37' {time} 4000 {flag} 1

:WUZI1_19340
if 
  81@ == 1
goto_if_false @WUZI1_19418
if 
  is_char_dead 138@
goto_if_false @WUZI1_19418
if 
  273@ == 0
goto_if_false @WUZI1_19406
273@ = 1
637@ = 64

:WUZI1_19406
remove_blip 109@
81@ = 0

:WUZI1_19418
if 
  82@ == 1
goto_if_false @WUZI1_19496
if 
  is_char_dead 140@
goto_if_false @WUZI1_19496
if 
  273@ == 0
goto_if_false @WUZI1_19484
273@ = 1
637@ = 64

:WUZI1_19484
remove_blip 110@
82@ = 0

:WUZI1_19496
if and
  81@ == 0
  82@ == 0
goto_if_false @WUZI1_19633
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19633
if 
  locate_char_any_means_char_3d $scplayer {target} 35@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @WUZI1_19633
637@ = 65
638@ = 3
38@ = 2
remove_blip 107@
107@ = add_blip_for_coord -2151.5891 {y} 639.5962 {z} 51.218
73@ = 1
72@ = 0

:WUZI1_19633
if 
  38@ == 2
goto_if_false @WUZI1_19861
if 
  637@ == 0
goto_if_false @WUZI1_19710
if 
  274@ == 0
goto_if_false @WUZI1_19710
274@ = 1
print 'WZ1_39' {time} 4000 {flag} 1

:WUZI1_19710
if 
  72@ == 1
goto_if_false @WUZI1_19861
if 
  locate_char_any_means_3d $scplayer {x} -2150.165 {y} 642.3364 {z} 51.2188 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI1_19861
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19861
if 
  locate_char_any_means_3d 35@ {x} -2150.165 {y} 642.3364 {z} 51.2188 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @WUZI1_19861
71@ = 9
42@ = 0
637@ = 68

:WUZI1_19861
return 

:WUZI1_19863
if 
  42@ == 0
goto_if_false @WUZI1_19957
73@ = 0
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_19934
$car = get_car_char_is_using $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:WUZI1_19934
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 1

:WUZI1_19957
if 
  42@ == 1
goto_if_false @WUZI1_20249
if 
  637@ == 0
goto_if_false @WUZI1_20249
set_fixed_camera_position -2156.8721 {y} 649.7653 {z} 51.6094 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2156.3621 {y} 648.9217 {z} 51.7758 {switchStyle} SwitchType.JumpCut
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_20102
$car = get_car_char_is_using $scplayer
set_car_coordinates $car {x} -2150.165 {y} 642.3364 {z} 51.2188
set_car_heading $car {heading} 0.0

:WUZI1_20102
if 
  not is_char_dead 35@
goto_if_false @WUZI1_20226
flush_route 
extend_route -2155.1499 {y} 645.1982 {z} 51.2293
extend_route -2162.0229 {y} 645.1555 {z} 51.7499
if 
  is_char_in_any_car 35@
goto_if_false @WUZI1_20217
remove_char_from_group 35@
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
goto @WUZI1_20226

:WUZI1_20217
task_follow_point_route 35@ {speed} MoveState.Run {mode} RouteMode.Once

:WUZI1_20226
42@ = 2
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 5000

:WUZI1_20249
if 
  42@ == 2
goto_if_false @WUZI1_20336
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_20336
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  not is_char_dead 35@
goto_if_false @WUZI1_20315
delete_char 35@

:WUZI1_20315
37@ = 0
set_player_control $player1 {state} True
71@ = 10

:WUZI1_20336
return 

:WUZI1_20338
if 
  200@ > 0
goto_if_false @WUZI1_20476
130@ = 0
95@ = 0

:WUZI1_20370
if 
  18 > 130@
goto_if_false @WUZI1_20476
if 
  does_char_exist 138@(130@,18i)
goto_if_false @WUZI1_20462
if 
  is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_20462
remove_blip 111@(130@,18i)
if 
  130@ > 7
goto_if_false @WUZI1_20462
95@ += 1

:WUZI1_20462
130@ += 1
goto @WUZI1_20370

:WUZI1_20476
if 
  200@ == 1
goto_if_false @WUZI1_21168
if or
  676.0 > $player_y
  676.0 > 229@
goto_if_false @WUZI1_21168
102@ = create_car 468 {x} -2191.2739 {y} 644.4189 {z} 48.4453
103@ = create_car 468 {x} -2200.2051 {y} 644.3219 {z} 48.4429
set_car_heading 102@ {heading} 270.0
set_car_heading 103@ {heading} 270.0
mark_model_as_no_longer_needed 468
request_car_recording 139
142@ = create_char_inside_car 102@ {pedType} PedType.Mission1 {modelId} 123
143@ = create_char_as_passenger 102@ {pedType} PedType.Mission1 {modelId} 121 {seat} SeatId.BikeRear
144@ = create_char_inside_car 103@ {pedType} PedType.Mission1 {modelId} 122
145@ = create_char_as_passenger 103@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
give_weapon_to_char 142@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 143@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 144@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 145@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 142@ {accuracy} 80
set_char_accuracy 143@ {accuracy} 85
set_char_accuracy 144@ {accuracy} 90
set_char_accuracy 145@ {accuracy} 85
115@ = add_blip_for_char 142@
116@ = add_blip_for_char 143@
117@ = add_blip_for_char 144@
118@ = add_blip_for_char 145@
set_char_drops_weapons_when_dead 142@ {state} False
set_char_drops_weapons_when_dead 143@ {state} False
set_char_drops_weapons_when_dead 144@ {state} False
set_char_drops_weapons_when_dead 145@ {state} False
set_car_forward_speed 102@ {forwardSpeed} 20.0
set_car_forward_speed 103@ {forwardSpeed} 20.0
set_char_decision_maker 142@ {handleOrTemplate} 34@
set_char_decision_maker 143@ {handleOrTemplate} 34@
set_char_decision_maker 144@ {handleOrTemplate} 34@
set_char_decision_maker 145@ {handleOrTemplate} 34@
set_sense_range 142@ {range} 40.0
set_sense_range 143@ {range} 40.0
set_sense_range 144@ {range} 40.0
set_sense_range 145@ {range} 40.0
set_inform_respected_friends 142@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 143@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 144@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 145@ {radius} 30.0 {_p3} 8
task_kinda_stay_in_same_place 142@ {state} True
task_kinda_stay_in_same_place 143@ {state} True
task_kinda_stay_in_same_place 144@ {state} True
task_kinda_stay_in_same_place 145@ {state} True
132@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 102@ {x} -2177.165 {y} 645.6417 {z} 48.4453 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 102@ {actionId} TempAction.HandbrakeTurnLeft {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2172.865 {y} 652.5621 {z} 48.4429 {speed} MoveState.Run {time} 4000
task_stay_in_same_place -1 {state} True
close_sequence_task 132@
perform_sequence_task 142@ {sequence} 132@
clear_sequence_task 132@
132@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 103@ {x} -2174.811 {y} 644.3727 {z} 48.4453 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 103@ {actionId} TempAction.HandbrakeTurnLeft {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2176.99 {y} 650.9326 {z} 48.4429 {speed} MoveState.Run {time} 3000
task_toggle_duck -1 {state} True
close_sequence_task 132@
perform_sequence_task 144@ {sequence} 132@
clear_sequence_task 132@
200@ = 2

:WUZI1_21168
if 
  200@ == 2
goto_if_false @WUZI1_21358
129@ = 0
if 
  not is_char_dead 142@
goto_if_false @WUZI1_21217
129@ = get_car_char_is_using 142@

:WUZI1_21217
if or
  129@ == -1
  is_char_dead 142@
goto_if_false @WUZI1_21358
if 
  not is_char_dead 143@
goto_if_false @WUZI1_21277
if 
  is_char_in_any_car 143@
goto_if_false @WUZI1_21277
task_leave_any_car 143@

:WUZI1_21277
if 
  not is_char_dead 144@
goto_if_false @WUZI1_21314
if 
  is_char_in_any_car 144@
goto_if_false @WUZI1_21314
task_leave_any_car 144@

:WUZI1_21314
if 
  not is_char_dead 145@
goto_if_false @WUZI1_21351
if 
  is_char_in_any_car 145@
goto_if_false @WUZI1_21351
task_leave_any_car 145@

:WUZI1_21351
200@ = 3

:WUZI1_21358
if 
  200@ == 4
goto_if_false @WUZI1_22823
if 
  93@ == 0
goto_if_false @WUZI1_21522
if 
  not is_char_dead 151@
goto_if_false @WUZI1_21522
if or
  -2193.0 > $player_x
  -2193.0 > 228@
goto_if_false @WUZI1_21522
93@ = 1
132@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
close_sequence_task 132@
perform_sequence_task 151@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_21522
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2171.8569 {leftBottomY} 658.2869 {leftBottomZ} 52.1667 {rightTopX} -2240.303 {rightTopY} 631.7034 {rightTopZ} 48.0251 {drawSphere} False
goto_if_false @WUZI1_21806
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_21702
if 
  84@ == 0
goto_if_false @WUZI1_21695
84@ = 1
130@ = 9

:WUZI1_21618
if 
  13 > 130@
goto_if_false @WUZI1_21695
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_21681
set_char_accuracy 138@(130@,18i) {accuracy} 100
task_shoot_at_char 138@(130@,18i) {target} $scplayer {time} -2

:WUZI1_21681
130@ += 1
goto @WUZI1_21618

:WUZI1_21695
goto @WUZI1_21806

:WUZI1_21702
if 
  84@ == 1
goto_if_false @WUZI1_21806
84@ = 0
130@ = 9

:WUZI1_21734
if 
  13 > 130@
goto_if_false @WUZI1_21806
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_21792
set_char_accuracy 138@(130@,18i) {accuracy} 80
clear_char_tasks 138@(130@,18i)

:WUZI1_21792
130@ += 1
goto @WUZI1_21734

:WUZI1_21806
if 
  85@ == 0
goto_if_false @WUZI1_22071
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @WUZI1_22071
130@ = generate_random_int_in_range 9 {max} 13
91@ = 0

:WUZI1_21859
if 
  4 > 91@
goto_if_false @WUZI1_22055
set_lvar_int_to_lvar_int 131@ = 130@
131@ -= 9
if and
  not is_char_dead 138@(130@,18i)
  87@(131@,4i) == 0
goto_if_false @WUZI1_22009
87@(131@,4i) = 1
flush_route 
extend_route 201@(131@,4f) {y} 205@(131@,4f) {z} 209@(131@,4f)
extend_route 213@(131@,4f) {y} 217@(131@,4f) {z} 221@(131@,4f)
task_follow_point_route 138@(130@,18i) {speed} MoveState.Run {mode} RouteMode.Once
91@ = 4
goto @WUZI1_22041

:WUZI1_22009
130@ += 1
if 
  130@ > 12
goto_if_false @WUZI1_22041
130@ = 9

:WUZI1_22041
91@ += 1
goto @WUZI1_21859

:WUZI1_22055
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 10000

:WUZI1_22071
if 
  94@ == 0
goto_if_false @WUZI1_22543
if or
  -2197.0 > $player_x
  95@ > 1
goto_if_false @WUZI1_22543
94@ = 1
152@ = create_char PedType.Mission1 {modelId} 123 {x} -2205.8611 {y} 625.282 {z} 48.4396
153@ = create_char PedType.Mission1 {modelId} 121 {x} -2207.0759 {y} 627.3953 {z} 48.4384
give_weapon_to_char 152@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 153@ {weaponType} WeaponType.MicroUzi {ammo} 500
flush_route 
extend_route -2205.8081 {y} 626.6268 {z} 48.4429
extend_route -2205.8491 {y} 635.5339 {z} 48.4453
task_follow_point_route 152@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route -2205.8081 {y} 626.6268 {z} 48.4429
extend_route -2204.5801 {y} 634.2507 {z} 48.4453
task_follow_point_route 153@ {speed} MoveState.Run {mode} RouteMode.Once
104@ = create_car 405 {x} -2267.322 {y} 659.5334 {z} 48.2969
set_car_proofs 104@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 104@ {heading} 344.0
lock_car_doors 104@ {lockStatus} CarLock.LockoutPlayerOnly
154@ = create_char_inside_car 104@ {pedType} PedType.Mission1 {modelId} 121
155@ = create_char_as_passenger 104@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 154@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_decision_maker 152@ {handleOrTemplate} 34@
set_char_decision_maker 153@ {handleOrTemplate} 34@
set_char_decision_maker 154@ {handleOrTemplate} 34@
set_char_decision_maker 155@ {handleOrTemplate} 34@
125@ = add_blip_for_char 152@
126@ = add_blip_for_char 153@
127@ = add_blip_for_char 154@
128@ = add_blip_for_char 155@
set_sense_range 152@ {range} 40.0
set_sense_range 153@ {range} 40.0
set_sense_range 154@ {range} 40.0
set_sense_range 155@ {range} 40.0
set_inform_respected_friends 152@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 153@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 154@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 155@ {radius} 30.0 {_p3} 8
start_playback_recorded_car 104@ {path} 139

:WUZI1_22543
if 
  94@ == 1
goto_if_false @WUZI1_22759
if 
  not is_car_dead 104@
goto_if_false @WUZI1_22759
$x, $y, $z = get_car_coordinates 104@
if 
  $x > -2227.0
goto_if_false @WUZI1_22759
94@ = 2
if 
  not is_char_dead 154@
goto_if_false @WUZI1_22689
flush_route 
extend_route -2214.6331 {y} 642.2872 {z} 48.447
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 154@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_22689
if 
  not is_char_dead 154@
goto_if_false @WUZI1_22759
flush_route 
extend_route -2214.373 {y} 639.3536 {z} 48.4511
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 155@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_22759
if 
  94@ == 2
goto_if_false @WUZI1_22823
if 
  not is_car_dead 104@
goto_if_false @WUZI1_22823
if 
  not is_playback_going_on_for_car 104@
goto_if_false @WUZI1_22823
94@ = 3
freeze_car_position 104@ {state} True

:WUZI1_22823
return 

:WUZI1_22825
if 
  not is_char_dead 35@
goto_if_false @WUZI1_23035
if 
  is_char_shooting 35@
goto_if_false @WUZI1_23035
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 277@
goto_if_false @WUZI1_23035
if 
  637@ == 0
goto_if_false @WUZI1_23035
if 
  6 > 275@
goto_if_false @WUZI1_23035
276@ = generate_random_int_in_range 0 {max} 6

:WUZI1_22921
if 
  232@(276@,6i) == 0
goto_if_false @WUZI1_22982
276@ += 1
if 
  276@ > 5
goto_if_false @WUZI1_22975
276@ = 0

:WUZI1_22975
goto @WUZI1_22921

:WUZI1_22982
275@ += 1
set_lvar_int_to_lvar_int 637@ = 232@(276@,6i)
232@(276@,6i) = 0
279@ = 0
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 8000

:WUZI1_23035
return 
return 

:WUZI1_23039
if 
  96@ == 1
goto_if_false @WUZI1_23146
if 
  not is_char_dead 35@
goto_if_false @WUZI1_23146
set_lvar_int_to_lvar_int 278@ = 161@
161@ = get_char_health 35@
if 
  not is_int_lvar_equal_to_int_lvar 161@ == 278@
goto_if_false @WUZI1_23123
set_lvar_int_to_lvar_int 278@ = 161@
279@ = 1

:WUZI1_23123
set_var_int_to_lvar_int $7246 = 161@
$7246 *= 100
$7246 /= 250

:WUZI1_23146
return 

:WUZI1_23148
return 

:WUZI1_23150
if 
  281@ <> 0
goto_if_false @WUZI1_23343
if 
  280@ == 0
goto_if_false @WUZI1_23204
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 281@
280@ = 1

:WUZI1_23204
if 
  280@ == 1
goto_if_false @WUZI1_23267
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @WUZI1_23267
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 283@
goto_if_false @WUZI1_23267
play_mission_audio MissionAudioSlot.Slot3
280@ = 2

:WUZI1_23267
if or
  280@ == 2
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_23343
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @WUZI1_23343
clear_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 281@ = 282@
282@ = 0
set_lvar_int_to_lvar_int 283@ = 284@
284@ = 0
280@ = 0

:WUZI1_23343
if 
  285@ <> 0
goto_if_false @WUZI1_23550
if 
  286@ == 0
goto_if_false @WUZI1_23421
286@ = 1
set_lvar_int_to_lvar_int 287@ = TIMERA
288@ = 0
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23421
if 
  286@ == 1
goto_if_false @WUZI1_23550
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 750@
  637@ == 0
goto_if_false @WUZI1_23550
set_lvar_int_to_lvar_int 637@ = 309@(288@,20i)
288@ += 1
329@ -= 1
if 
  329@ == 0
goto_if_false @WUZI1_23530
285@ = 0
286@ = 0
goto @WUZI1_23550

:WUZI1_23530
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23550
switch_start 636@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI1_27781 {caseNum1} 0 {caseLabel1} @WUZI1_23613 {caseNum2} 1 {caseLabel2} @WUZI1_26396 {caseNum3} 2 {caseLabel3} @WUZI1_27240 {caseNum4} 3 {caseLabel4} @WUZI1_27339 {caseNum5} 4 {caseLabel5} @WUZI1_27420 {caseNum6} 5 {caseLabel6} @WUZI1_27564 {caseNum7} 6 {caseLabel7} @WUZI1_27675

:WUZI1_23613
if 
  636@ == 1
goto_if_false @WUZI1_23681
748@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
752@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:WUZI1_23681
set_lvar_int_to_constant 532@ = 12400
set_lvar_int_to_constant 533@ = 12469
set_lvar_int_to_constant 534@ = 12402
set_lvar_int_to_constant 535@ = 12403
set_lvar_int_to_constant 536@ = 12471
set_lvar_int_to_constant 537@ = 12404
set_lvar_int_to_constant 538@ = 12405
set_lvar_int_to_constant 539@ = 65535
set_lvar_int_to_constant 540@ = 12472
set_lvar_int_to_constant 541@ = 12406
set_lvar_int_to_constant 542@ = 12407
set_lvar_int_to_constant 543@ = 12409
set_lvar_int_to_constant 544@ = 12473
set_lvar_int_to_constant 545@ = 12408
set_lvar_int_to_constant 546@ = 12434
set_lvar_int_to_constant 547@ = 12436
set_lvar_int_to_constant 548@ = 12433
set_lvar_int_to_constant 549@ = 12480
set_lvar_int_to_constant 550@ = 12438
set_lvar_int_to_constant 551@ = 12439
set_lvar_int_to_constant 552@ = 12481
set_lvar_int_to_constant 553@ = 12440
set_lvar_int_to_constant 554@ = 12503
set_lvar_int_to_constant 555@ = 12441
set_lvar_int_to_constant 556@ = 12504
set_lvar_int_to_constant 557@ = 12505
set_lvar_int_to_constant 558@ = 65535
set_lvar_int_to_constant 559@ = 65535
set_lvar_int_to_constant 560@ = 65535
set_lvar_int_to_constant 561@ = 12442
set_lvar_int_to_constant 562@ = 12443
set_lvar_int_to_constant 563@ = 12444
set_lvar_int_to_constant 564@ = 12445
set_lvar_int_to_constant 565@ = 12446
set_lvar_int_to_constant 566@ = 12447
set_lvar_int_to_constant 567@ = 12448
set_lvar_int_to_constant 568@ = 12449
set_lvar_int_to_constant 569@ = 12450
set_lvar_int_to_constant 570@ = 12451
set_lvar_int_to_constant 571@ = 12452
set_lvar_int_to_constant 572@ = 12453
set_lvar_int_to_constant 573@ = 12454
set_lvar_int_to_constant 574@ = 12455
set_lvar_int_to_constant 575@ = 12456
set_lvar_int_to_constant 576@ = 12457
set_lvar_int_to_constant 577@ = 12482
set_lvar_int_to_constant 578@ = 12483
set_lvar_int_to_constant 579@ = 12484
set_lvar_int_to_constant 580@ = 12485
set_lvar_int_to_constant 581@ = 12486
set_lvar_int_to_constant 582@ = 12487
set_lvar_int_to_constant 583@ = 12488
set_lvar_int_to_constant 584@ = 12489
set_lvar_int_to_constant 585@ = 12490
set_lvar_int_to_constant 586@ = 12491
set_lvar_int_to_constant 587@ = 12492
set_lvar_int_to_constant 588@ = 12493
set_lvar_int_to_constant 589@ = 12494
set_lvar_int_to_constant 590@ = 12495
set_lvar_int_to_constant 591@ = 12496
set_lvar_int_to_constant 592@ = 12497
set_lvar_int_to_constant 593@ = 12498
set_lvar_int_to_constant 594@ = 12458
set_lvar_int_to_constant 595@ = 12459
set_lvar_int_to_constant 596@ = 12500
set_lvar_int_to_constant 597@ = 12466
set_lvar_int_to_constant 598@ = 12460
set_lvar_int_to_constant 599@ = 12468
set_lvar_int_to_constant 600@ = 12474
set_lvar_int_to_constant 601@ = 12475
set_lvar_int_to_constant 602@ = 12410
set_lvar_int_to_constant 603@ = 12411
set_lvar_int_to_constant 604@ = 12424
set_lvar_int_to_constant 605@ = 12478
set_lvar_int_to_constant 606@ = 12430
set_lvar_int_to_constant 607@ = 65535
set_lvar_int_to_constant 608@ = 12418
set_lvar_int_to_constant 609@ = 12479
set_lvar_int_to_constant 610@ = 12431
set_lvar_int_to_constant 611@ = 12432
set_lvar_int_to_constant 612@ = 12433
set_lvar_int_to_constant 613@ = 12420
set_lvar_int_to_constant 614@ = 12421
set_lvar_int_to_constant 615@ = 12412
set_lvar_int_to_constant 616@ = 12476
set_lvar_int_to_constant 617@ = 12413
set_lvar_int_to_constant 618@ = 12414
set_lvar_int_to_constant 619@ = 12415
set_lvar_int_to_constant 620@ = 12428
set_lvar_int_to_constant 621@ = 12477
set_lvar_int_to_constant 622@ = 12429
set_lvar_int_to_constant 623@ = 12493
set_lvar_int_to_constant 624@ = 12491
set_lvar_text_label 333@s = 'WUZ1_AA'
set_lvar_text_label 335@s = 'WUZ1_AB'
set_lvar_text_label 337@s = 'WUZ1_CA'
set_lvar_text_label 339@s = 'WUZ1_CB'
set_lvar_text_label 341@s = 'WUZ1_CC'
set_lvar_text_label 343@s = 'WUZ1_CD'
set_lvar_text_label 345@s = 'WUZ1_CE'
set_lvar_text_label 349@s = 'WUZ1_CG'
set_lvar_text_label 351@s = 'WUZ1_CH'
set_lvar_text_label 353@s = 'WUZ1_DA'
set_lvar_text_label 355@s = 'WUZ1_DD'
set_lvar_text_label 357@s = 'WUZ1_DB'
set_lvar_text_label 359@s = 'WUZ1_DC'
set_lvar_text_label 361@s = 'WUZ1_LA'
set_lvar_text_label 363@s = 'WUZ1_LC'
set_lvar_text_label 365@s = 'WUZ1_KD'
set_lvar_text_label 367@s = 'WUZ1_MA'
set_lvar_text_label 369@s = 'WUZ1_MB'
set_lvar_text_label 371@s = 'WUZ1_MC'
set_lvar_text_label 373@s = 'WUZ1_MD'
set_lvar_text_label 375@s = 'WUZ1_ME'
set_lvar_text_label 377@s = 'WUZ1_MF'
set_lvar_text_label 379@s = 'WUZ1_MG'
set_lvar_text_label 381@s = 'WUZ1_MH'
set_lvar_text_label 383@s = 'WUZ1_MJ'
set_lvar_text_label 387@s = 'WUZ1_MH'
set_lvar_text_label 389@s = 'WUZ1_MJ'
set_lvar_text_label 391@s = 'WUZ1_NA'
set_lvar_text_label 393@s = 'WUZ1_NB'
set_lvar_text_label 395@s = 'WUZ1_NC'
set_lvar_text_label 397@s = 'WUZ1_ND'
set_lvar_text_label 399@s = 'WUZ1_NE'
set_lvar_text_label 401@s = 'WUZ1_NF'
set_lvar_text_label 403@s = 'WUZ1_NG'
set_lvar_text_label 405@s = 'WUZ1_NH'
set_lvar_text_label 407@s = 'WUZ1_NJ'
set_lvar_text_label 409@s = 'WUZ1_NK'
set_lvar_text_label 411@s = 'WUZ1_NL'
set_lvar_text_label 413@s = 'WUZ1_NM'
set_lvar_text_label 415@s = 'WUZ1_NN'
set_lvar_text_label 417@s = 'WUZ1_NO'
set_lvar_text_label 419@s = 'WUZ1_NP'
set_lvar_text_label 421@s = 'WUZ1_NQ'
set_lvar_text_label 423@s = 'WUZ1_OA'
set_lvar_text_label 425@s = 'WUZ1_OB'
set_lvar_text_label 427@s = 'WUZ1_OC'
set_lvar_text_label 429@s = 'WUZ1_OD'
set_lvar_text_label 431@s = 'WUZ1_OE'
set_lvar_text_label 433@s = 'WUZ1_OF'
set_lvar_text_label 435@s = 'WUZ1_OG'
set_lvar_text_label 437@s = 'WUZ1_OH'
set_lvar_text_label 439@s = 'WUZ1_OJ'
set_lvar_text_label 441@s = 'WUZ1_OK'
set_lvar_text_label 443@s = 'WUZ1_OL'
set_lvar_text_label 445@s = 'WUZ1_OM'
set_lvar_text_label 447@s = 'WUZ1_ON'
set_lvar_text_label 449@s = 'WUZ1_OO'
set_lvar_text_label 451@s = 'WUZ1_OP'
set_lvar_text_label 453@s = 'WUZ1_OQ'
set_lvar_text_label 455@s = 'WUZ1_OR'
set_lvar_text_label 457@s = 'WUZ1_PA'
set_lvar_text_label 459@s = 'WUZ1_PB'
set_lvar_text_label 461@s = 'WUZ1_QA'
set_lvar_text_label 463@s = 'WUZ1_RA'
set_lvar_text_label 465@s = 'WUZ1_QB'
set_lvar_text_label 467@s = 'WUZ1_RD'
set_lvar_text_label 469@s = 'WUZ1_EA'
set_lvar_text_label 471@s = 'WUZ1_EB'
set_lvar_text_label 473@s = 'WUZ1_EC'
set_lvar_text_label 475@s = 'WUZ1_EE'
set_lvar_text_label 477@s = 'WUZ1_GJ'
set_lvar_text_label 479@s = 'WUZ1_JA'
set_lvar_text_label 481@s = 'WUZ1_JB'
set_lvar_text_label 485@s = 'WUZ1_GC'
set_lvar_text_label 487@s = 'WUZ1_KA'
set_lvar_text_label 489@s = 'WUZ1_KB'
set_lvar_text_label 491@s = 'WUZ1_KC'
set_lvar_text_label 493@s = 'WUZ1_KD'
set_lvar_text_label 495@s = 'WUZ1_GE'
set_lvar_text_label 497@s = 'WUZ1_GF'
set_lvar_text_label 499@s = 'WUZ1_FA'
set_lvar_text_label 501@s = 'WUZ1_FB'
set_lvar_text_label 503@s = 'WUZ1_FC'
set_lvar_text_label 505@s = 'WUZ1_FD'
set_lvar_text_label 507@s = 'WUZ1_FE'
set_lvar_text_label 509@s = 'WUZ1_HA'
set_lvar_text_label 511@s = 'WUZ1_HB'
set_lvar_text_label 513@s = 'WUZ1_HC'
set_lvar_text_label 515@s = 'WUZ1_OM'
set_lvar_text_label 517@s = 'WUZ1_OK'
640@ = 2
641@ = 1
642@ = 2
643@ = 2
644@ = 1
645@ = 2
646@ = 2
647@ = 2
648@ = 1
649@ = 2
650@ = 2
651@ = 2
652@ = 1
653@ = 2
654@ = 2
655@ = 2
656@ = 2
657@ = 1
658@ = 2
659@ = 2
660@ = 1
661@ = 2
662@ = 3
663@ = 2
664@ = 3
665@ = 3
666@ = 2
667@ = 2
668@ = 2
669@ = 2
670@ = 2
671@ = 2
672@ = 1
673@ = 2
674@ = 2
675@ = 0
676@ = 2
677@ = 1
678@ = 2
679@ = 2
680@ = 2
681@ = 2
682@ = 2
683@ = 2
684@ = 2
685@ = 0
686@ = 2
687@ = 2
688@ = 2
689@ = 2
690@ = 2
691@ = 2
692@ = 1
693@ = 2
694@ = 2
695@ = 1
696@ = 1
697@ = 1
698@ = 2
699@ = 1
700@ = 2
701@ = 2
702@ = 1
703@ = 2
704@ = 2
705@ = 1
706@ = 1
707@ = 1
708@ = 2
709@ = 1
710@ = 2
711@ = 2
712@ = 2
713@ = 1
714@ = 2
715@ = 2
716@ = 2
717@ = 1
718@ = 2
719@ = 2
720@ = 2
721@ = 2
722@ = 2
723@ = 2
724@ = 1
725@ = 2
726@ = 2
727@ = 2
728@ = 2
729@ = 1
730@ = 2
731@ = 1
732@ = 1
set_lvar_int_to_var_int 740@ = $scplayer
636@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 532@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 533@
632@ = 1
633@ = 2
goto @WUZI1_27781

:WUZI1_26396
if 
  637@ <> 0
goto_if_false @WUZI1_27233
if 
  265@ == 0
goto_if_false @WUZI1_27233
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 755@
goto_if_false @WUZI1_27233
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @WUZI1_27233
if 
  is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_26503
634@ = 1
goto @WUZI1_26566

:WUZI1_26503
if 
  is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_26536
634@ = 2
goto @WUZI1_26566

:WUZI1_26536
634@ = 1
set_lvar_int_to_lvar_int 632@ = 637@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 531@(637@,100i)

:WUZI1_26566
if 
  has_mission_audio_loaded 634@
goto_if_false @WUZI1_27221
set_lvar_int_to_lvar_int 747@ = 639@(637@,100i)
set_lvar_int_to_lvar_int 748@ = 739@(747@,7i)
if 
  754@ <> 1
goto_if_false @WUZI1_26794
751@ = 1
753@ = 0

:WUZI1_26638
if 
  7 > 751@
goto_if_false @WUZI1_26794
set_lvar_int_to_lvar_int 752@ = 739@(751@,7i)
if 
  752@ <> 0
goto_if_false @WUZI1_26780
if 
  not is_int_lvar_equal_to_int_lvar 752@ == 748@
goto_if_false @WUZI1_26780
if 
  not is_char_dead 748@
goto_if_false @WUZI1_26780
if 
  not is_char_dead 752@
goto_if_false @WUZI1_26780
if 
  locate_char_any_means_char_3d 748@ {target} 752@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @WUZI1_26780
753@ += 1

:WUZI1_26780
751@ += 1
goto @WUZI1_26638

:WUZI1_26794
if or
  754@ == 1
  753@ > 0
  639@(637@,100i) == 0
goto_if_false @WUZI1_27207
if 
  639@(637@,100i) <> 0
goto_if_false @WUZI1_26939
if 
  not is_char_dead 748@
goto_if_false @WUZI1_26939
if 
  $wz1_health_bar == 0
goto_if_false @WUZI1_26894
attach_mission_audio_to_char 634@ {handle} 748@

:WUZI1_26894
if 
  not is_char_talking 748@
goto_if_false @WUZI1_26932
746@ = 1
start_char_facial_talk 748@ {duration} 15000
goto @WUZI1_26939

:WUZI1_26932
disable_char_speech 748@ {stopNow} False

:WUZI1_26939
if 
  639@(637@,100i) == 0
goto_if_false @WUZI1_26968
746@ = 1

:WUZI1_26968
if 
  746@ == 1
goto_if_false @WUZI1_27200
if 
  748@ <> 0
goto_if_false @WUZI1_27027
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27027
shut_char_up_for_scripted_speech 748@ {state} True

:WUZI1_27027
play_mission_audio 634@
clear_prints 
print 331@(637@,100s) {time} 10000 {flag} 1
636@ += 1
746@ = 0
637@ += 1
set_lvar_int_to_lvar_int 635@ = 637@
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27200
if 
  634@ == 1
goto_if_false @WUZI1_27162
if 
  not is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_27155
load_mission_audio MissionAudioSlot.Slot2 {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 633@ = 637@

:WUZI1_27155
goto @WUZI1_27200

:WUZI1_27162
if 
  not is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_27200
load_mission_audio MissionAudioSlot.Slot1 {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 632@ = 637@

:WUZI1_27200
goto @WUZI1_27214

:WUZI1_27207
636@ = 6

:WUZI1_27214
goto @WUZI1_27233

:WUZI1_27221
load_mission_audio 634@ {audioId} 531@(637@,100i)

:WUZI1_27233
goto @WUZI1_27781

:WUZI1_27240
if 
  has_mission_audio_finished 634@
goto_if_false @WUZI1_27293
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27279
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27279
636@ += 1
goto @WUZI1_27332

:WUZI1_27293
if 
  does_char_exist 748@
goto_if_false @WUZI1_27332
if 
  is_char_dead 748@
goto_if_false @WUZI1_27332
636@ += 1

:WUZI1_27332
goto @WUZI1_27781

:WUZI1_27339
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27362
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27362
clear_mission_audio 634@
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27406
stop_char_facial_talk 748@
enable_char_speech 748@

:WUZI1_27406
636@ += 1
goto @WUZI1_27781

:WUZI1_27420
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27443
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27443
637@ += 1
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27496
load_mission_audio 634@ {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 631@(634@,3i) = 637@

:WUZI1_27496
638@ -= 1
if 
  638@ <= 0
goto_if_false @WUZI1_27542
637@ = 0
638@ = 0
goto @WUZI1_27550

:WUZI1_27542
set_lvar_int_to_lvar_int 637@ = 635@

:WUZI1_27550
636@ = 1
goto @WUZI1_27781

:WUZI1_27564
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27587
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27587
636@ = 1
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$wz1_health_bar = 0
clear_mission_audio 634@
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27668
enable_char_speech 748@

:WUZI1_27668
goto @WUZI1_27781

:WUZI1_27675
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27698
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27698
636@ = 2
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$wz1_health_bar = 0
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27774
enable_char_speech 748@

:WUZI1_27774
goto @WUZI1_27781

:WUZI1_27781
return 

:WUZI1_27783
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:WUZI1_27801
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 10
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'WUZI_1'
$flag_wuzi_mission_counter += 1
return 

:WUZI1_27865
130@ = 0

:WUZI1_27872
if 
  18 > 130@
goto_if_false @WUZI1_27965
remove_blip 111@(130@,18i)
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_27951
task_kill_char_on_foot 138@(130@,18i) {target} $scplayer
set_char_keep_task 138@(130@,18i) {state} True
mark_char_as_no_longer_needed 138@(130@,18i)

:WUZI1_27951
130@ += 1
goto @WUZI1_27872

:WUZI1_27965
clear_help 
if 
  not is_car_dead 104@
goto_if_false @WUZI1_28012
set_car_heavy 104@ {state} False
set_car_proofs 104@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 104@ {lockStatus} CarLock.Unlocked

:WUZI1_28012
if 
  is_player_playing $player1
goto_if_false @WUZI1_28035
set_player_control $player1 {state} True

:WUZI1_28035
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
unload_special_character 1
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 468
remove_animation "SWAT"
remove_animation "WUZI"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
remove_car_recording 136
remove_car_recording 137
remove_car_recording 138
remove_car_recording 139
remove_car_recording 169
switch_ped_roads_back_to_original -2239.251 {leftBottomY} 636.6675 {leftBottomZ} 53.1933 {rightTopX} -2165.0471 {rightTopY} 720.0577 {rightTopZ} 49.5456
clear_onscreen_counter $7246
switch_random_trains True
set_wanted_multiplier 1.0
if 
  not is_char_dead $scplayer
goto_if_false @WUZI1_28230
shut_char_up_for_scripted_speech $scplayer {state} False

:WUZI1_28230
if 
  not is_char_dead 35@
goto_if_false @WUZI1_28251
remove_char_elegantly 35@

:WUZI1_28251
remove_blip 107@
remove_blip 108@
remove_blip 109@
remove_blip 110@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_script_fire 258@
remove_script_fire 259@
remove_decision_maker 34@
switch_emergency_services True
$onmission = 0
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} True
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CHINA_TOWN_GATEB {state} True
mission_has_finished 
return 

//-------------Mission 54---------------
// Originally: Ran Fa Li

:FARLIE4
script_name 'FARLIE4'
gosub @FARLIE4_47
if 
  has_deatharrest_been_executed 
goto_if_false @FARLIE4_38
gosub @FARLIE4_7853

:FARLIE4_38
gosub @FARLIE4_8354
terminate_this_script 

:FARLIE4_47
load_mission_text 'FARLIE4'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FARLIE4_73
if 
  get_fading_status 
goto_if_false @FARLIE4_97
wait 0
goto @FARLIE4_73

:FARLIE4_97
set_area_visible 1
load_cutscene 'FARL_4A'

:FARLIE4_112
if 
  not has_cutscene_loaded 
goto_if_false @FARLIE4_136
wait 0
goto @FARLIE4_112

:FARLIE4_136
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:FARLIE4_153
if 
  not has_cutscene_finished 
goto_if_false @FARLIE4_177
wait 0
goto @FARLIE4_153

:FARLIE4_177
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:FARLIE4_191
if 
  get_fading_status 
goto_if_false @FARLIE4_215
wait 0
goto @FARLIE4_191

:FARLIE4_215
clear_cutscene 
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_286
load_scene -2154.998 {y} 645.5436 {z} 51.3516
set_char_coordinates $scplayer {x} -2154.998 {y} 645.5436 {z} 51.3516
set_char_heading $scplayer {heading} 271.113
set_camera_behind_player 

:FARLIE4_286
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
register_mission_given 
$onmission = 1
switch_roads_off -1478.2939 {leftBottomY} -65.4014 {leftBottomZ} 0.0 {rightTopX} -1395.423 {rightTopY} 2.7054 {rightTopZ} 10.0
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
46@ = load_char_decision_maker DecisionMakerType.Tough
146@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 146@ {event} Event.PedEnteredMyVehicle {taskId} TaskId.ComplexLeaveCar {respect} 0.0 {hate} 0.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 46@ {event} Event.PedEnteredMyVehicle {taskId} TaskId.ComplexLeaveCar {respect} 0.0 {hate} 0.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
37@ = add_blip_for_coord -1742.2729 {y} 1422.631 {z} 6.1842
change_blip_display 37@ {display} BlipDisplay.Neither
41@ = add_blip_for_coord -1409.9 {y} -303.4 {z} 4.5
change_garage_type 'FDORSFE' {type} GarageType.ForScriptToOpenAndClose
request_model 352

:FARLIE4_509
if 
  not has_model_loaded 352
goto_if_false @FARLIE4_536
wait 0
goto @FARLIE4_509

:FARLIE4_536
if and
  not has_char_got_weapon $scplayer {weaponType} WeaponType.MicroUzi
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Mp5
goto_if_false @FARLIE4_578
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 150
set_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi

:FARLIE4_578
TIMERA = 0
140@ = 2
print_now 'F4_T0' {time} 9000 {flag} 1

:FARLIE4_608
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_875
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @FARLIE4_650
goto @FARLIE4_8015

:FARLIE4_650
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if 
  locate_char_any_means_3d $scplayer {x} -1409.9 {y} -303.4 {z} 4.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FARLIE4_868
request_model 475
request_model 410

:FARLIE4_722
if or
  not has_model_loaded 475
  not has_model_loaded 410
goto_if_false @FARLIE4_754
wait 0
goto @FARLIE4_722

:FARLIE4_754
141@ = 1
remove_blip 41@
34@ = create_car 410 {x} -1425.512 {y} -21.2813 {z} 5.0078
set_car_heading 34@ {heading} 88.7848
freeze_car_position 34@ {state} True
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 3000
change_car_colour 34@ {color1} 3 {color2} 3
print_now 'F4_T7' {time} 4000 {flag} 1
goto @FARLIE4_882

:FARLIE4_868
goto @FARLIE4_608

:FARLIE4_875
goto @FARLIE4_7853

:FARLIE4_882
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_1039
wait 0
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if and
  is_char_in_any_car $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_969
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_969
$car = store_car_char_is_in $scplayer

:FARLIE4_969
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1032
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_1032
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Both
freeze_car_position 34@ {state} False
goto @FARLIE4_1046

:FARLIE4_1032
goto @FARLIE4_882

:FARLIE4_1039
goto @FARLIE4_7853

:FARLIE4_1046
set_player_control $player1 {state} False
request_model 121
request_model 122
request_model 521
request_model 352
request_model 414
request_model 330
request_model 475
request_model 543

:FARLIE4_1091
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 521
  not has_model_loaded 352
  not has_model_loaded 414
  not has_model_loaded 330
goto_if_false @FARLIE4_1141
wait 0
goto @FARLIE4_1091

:FARLIE4_1141
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 35800

:FARLIE4_1154
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_model_loaded 475
  not has_model_loaded 543
goto_if_false @FARLIE4_1190
wait 0
goto @FARLIE4_1154

:FARLIE4_1190
set_car_density_multiplier 0.0

:FARLIE4_1197
gosub @FARLIE4_8288
if 
  not is_car_dead $car
goto_if_false @FARLIE4_1308
if 
  locate_car_3d $car {x} -1429.619 {y} -21.2788 {z} 5.0078 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_1303
set_car_as_mission_car $car
set_car_coordinates $car {x} -1425.615 {y} -16.4956 {z} 5.0078
set_car_heading $car {heading} 271.5388

:FARLIE4_1303
wait 500

:FARLIE4_1308
clear_area -1412.5601 {y} -138.0878 {z} 5.0 {radius} 200.0 {clearParticles} True
gosub @FARLIE4_8254
set_fixed_camera_position -1430.361 {y} -18.6971 {z} 6.191 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1429.655 {y} -19.4032 {z} 6.1376 {switchStyle} SwitchType.JumpCut
49@ = create_car 414 {x} -1414.173 {y} -50.4918 {z} 5.0
set_car_heading 49@ {heading} 0.0
59@ = create_char_inside_car 49@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 59@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 49@
  not is_char_dead 59@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_1543
142@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 49@ {x} -1414.428 {y} -32.5711 {z} 5.0069 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 49@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 142@
perform_sequence_task 59@ {sequence} 142@

:FARLIE4_1543
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1567
43@ = get_car_health 34@

:FARLIE4_1567
set_var_int_to_lvar_int $f4_rnd = 43@
$f4_rnd /= 30
display_onscreen_counter_with_string $f4_rnd {display} CounterDisplay.Bar {text} 'F4_D'
gosub @FARLIE4_8321
print_now 'F4_T5' {time} 5000 {flag} 1
TIMERB = 0

:FARLIE4_1628
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1682
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @FARLIE4_1675
goto @FARLIE4_1762

:FARLIE4_1675
goto @FARLIE4_1628

:FARLIE4_1682
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @FARLIE4_1701
play_mission_audio MissionAudioSlot.Slot3

:FARLIE4_1701
TIMERB = 0

:FARLIE4_1708
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1762
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @FARLIE4_1755
goto @FARLIE4_1762

:FARLIE4_1755
goto @FARLIE4_1708

:FARLIE4_1762
gosub @FARLIE4_8269
print_now 'F4_T8' {time} 4000 {flag} 1
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1808
freeze_car_position 34@ {state} False

:FARLIE4_1808
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_7846
wait 0
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1887
if 
  has_car_been_resprayed 34@
goto_if_false @FARLIE4_1887
set_car_health 34@ {health} 3000

:FARLIE4_1887
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_2046
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_1968
if 
  40@ == 0
goto_if_false @FARLIE4_1961
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Both
40@ = 1

:FARLIE4_1961
goto @FARLIE4_2023

:FARLIE4_1968
if 
  40@ == 1
goto_if_false @FARLIE4_2023
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 37@ {display} BlipDisplay.Neither
print_now 'F4_T4' {time} 4000 {flag} 1
40@ = 0

:FARLIE4_2023
43@ = get_car_health 34@
set_var_int_to_lvar_int $f4_rnd = 43@
$f4_rnd /= 30

:FARLIE4_2046
if or
  locate_char_any_means_3d $scplayer {x} -1467.032 {y} -133.7941 {z} 5.0078 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_2370
if 
  79@ == 0
goto_if_false @FARLIE4_2370
clear_area -1474.4659 {y} -162.8309 {z} 5.0234 {radius} 10.0 {clearParticles} True
51@ = create_car 414 {x} -1474.4659 {y} -162.8309 {z} 5.0234
set_car_heading 51@ {heading} 272.5542
61@ = create_char_inside_car 51@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 61@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 61@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 51@
  not is_char_dead 61@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_2363
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 51@ {x} -1464.8621 {y} -162.4026 {z} 5.0226 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 51@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 61@ {sequence} 144@

:FARLIE4_2363
79@ = 1

:FARLIE4_2370
if or
  locate_char_any_means_3d $scplayer {x} -1423.849 {y} -135.7411 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_2694
if 
  80@ == 0
goto_if_false @FARLIE4_2694
clear_area -1387.2679 {y} -126.9234 {z} 5.0078 {radius} 10.0 {clearParticles} True
50@ = create_car 414 {x} -1387.2679 {y} -126.9234 {z} 5.0078
set_car_heading 50@ {heading} 180.2388
60@ = create_char_inside_car 50@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 60@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 60@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 50@
  not is_char_dead 60@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_2687
143@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 50@ {x} -1387.225 {y} -135.6199 {z} 5.0078 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 50@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 143@
perform_sequence_task 60@ {sequence} 143@

:FARLIE4_2687
80@ = 1

:FARLIE4_2694
if or
  locate_char_any_means_3d $scplayer {x} -1427.269 {y} -238.5722 {z} 5.0234 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_3013
if 
  89@ == 0
goto_if_false @FARLIE4_3013
clear_area -1387.792 {y} -230.1776 {z} 5.0078 {radius} 10.0 {clearParticles} True
52@ = create_car 414 {x} -1387.792 {y} -230.1776 {z} 5.0078
set_car_heading 52@ {heading} 179.5878
62@ = create_char_inside_car 52@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 62@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 62@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 52@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_3006
145@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 52@ {x} -1387.8621 {y} -240.3811 {z} 5.0078 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 52@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task 62@ {sequence} 145@

:FARLIE4_3006
89@ = 1

:FARLIE4_3013
if and
  locate_char_any_means_3d $scplayer {x} -1399.686 {y} -184.757 {z} 5.3047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 10.0 {drawSphere} False
  81@ == 0
goto_if_false @FARLIE4_3148
44@ = create_char PedType.Mission1 {modelId} 122 {x} -1404.049 {y} -234.7071 {z} 5.3047
set_char_heading 44@ {heading} 353.8535
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 44@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 44@ {accuracy} 80
set_char_decision_maker 44@ {handleOrTemplate} 46@
task_weapon_roll 44@ {direction} True
81@ = 1

:FARLIE4_3148
if and
  locate_char_any_means_3d $scplayer {x} -1400.184 {y} -205.7361 {z} 5.3047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 10.0 {drawSphere} False
  82@ == 0
goto_if_false @FARLIE4_3283
45@ = create_char PedType.Mission1 {modelId} 121 {x} -1394.235 {y} -234.735 {z} 5.3047
set_char_heading 45@ {heading} 1.5813
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 45@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 45@ {accuracy} 80
set_char_decision_maker 45@ {handleOrTemplate} 46@
task_weapon_roll 45@ {direction} False
82@ = 1

:FARLIE4_3283
if and
  locate_char_any_means_3d $scplayer {x} -1407.187 {y} -239.4782 {z} 5.3047 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  83@ == 0
goto_if_false @FARLIE4_3824
69@ = create_char PedType.Mission1 {modelId} 122 {x} -1407.076 {y} -358.3559 {z} 8.3099
set_char_heading 69@ {heading} 9.5994
70@ = create_char PedType.Mission1 {modelId} 121 {x} -1476.887 {y} -291.53 {z} 8.7087
set_char_heading 70@ {heading} 258.9856
36@ = 0

:FARLIE4_3413
give_weapon_to_char 69@(36@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 69@(36@,10i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 69@(36@,10i) {accuracy} 80
set_char_decision_maker 69@(36@,10i) {handleOrTemplate} 46@
task_stay_in_same_place 69@(36@,10i) {state} True
task_kill_char_on_foot 69@(36@,10i) {target} $scplayer
task_toggle_duck 69@(36@,10i) {state} True
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_3413
52@ = create_car 414 {x} -1478.896 {y} -470.3535 {z} 10.9926
set_car_heading 52@ {heading} 11.1921
99@ = create_char PedType.Mission1 {modelId} 122 {x} -1478.188 {y} -476.1086 {z} 11.1411
set_char_heading 99@ {heading} 277.8792
100@ = create_char PedType.Mission1 {modelId} 122 {x} -1479.535 {y} -466.4356 {z} 11.0
set_char_heading 100@ {heading} 263.3237
53@ = create_car 414 {x} -1586.0229 {y} -359.7679 {z} 10.9926
set_car_heading 53@ {heading} 248.7342
101@ = create_char PedType.Mission1 {modelId} 122 {x} -1582.225 {y} -362.0264 {z} 11.0
set_char_heading 101@ {heading} 356.2877
102@ = create_char PedType.Mission1 {modelId} 122 {x} -1590.694 {y} -357.4667 {z} 11.1411
set_char_heading 102@ {heading} 323.3828
36@ = 0

:FARLIE4_3725
give_weapon_to_char 99@(36@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 99@(36@,10i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 99@(36@,10i) {accuracy} 80
set_char_decision_maker 99@(36@,10i) {handleOrTemplate} 46@
task_stay_in_same_place 99@(36@,10i) {state} True
task_kill_char_on_foot 99@(36@,10i) {target} $scplayer
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_3725
83@ = 1

:FARLIE4_3824
if and
  locate_char_any_means_3d $scplayer {x} -1570.8879 {y} -455.6748 {z} 5.0 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 10.0 {drawSphere} False
  84@ == 0
goto_if_false @FARLIE4_4001
set_car_density_multiplier 1.0
delete_char 44@
delete_char 45@
36@ = 0

:FARLIE4_3903
delete_char 59@(36@,10i)
if 
  not is_car_dead 49@(36@,10i)
goto_if_false @FARLIE4_3964
if 
  not is_char_in_car $scplayer {vehicle} 49@(36@,10i)
goto_if_false @FARLIE4_3964
delete_car 49@(36@,10i)

:FARLIE4_3964
delete_char 69@(36@,10i)
36@ += 1
  36@ >= 3
goto_if_false @FARLIE4_3903
84@ = 1

:FARLIE4_4001
if and
  locate_char_any_means_3d $scplayer {x} -2258.519 {y} 124.3485 {z} 34.3125 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  85@ == 0
goto_if_false @FARLIE4_4311
clear_area -2258.519 {y} 124.3485 {z} 34.3125 {radius} 10.0 {clearParticles} True
109@ = create_car 521 {x} -2258.519 {y} 124.3485 {z} 34.3125
129@ = add_blip_for_car 109@
set_car_driving_style 109@ {drivingStyle} DrivingMode.AvoidCars
set_car_heading 109@ {heading} 179.5562
119@ = create_char_inside_car 109@ {pedType} PedType.Mission1 {modelId} 121
120@ = create_char_as_passenger 109@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 119@ {stayOnBike} False
set_char_can_be_knocked_off_bike 120@ {stayOnBike} False
give_weapon_to_char 119@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 119@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 119@ {accuracy} 30
give_weapon_to_char 120@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 120@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 120@ {accuracy} 30
set_char_decision_maker 119@ {handleOrTemplate} 46@
set_char_decision_maker 120@ {handleOrTemplate} 46@
task_drive_by 120@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4304
task_car_mission 119@ {vehicle} 109@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_4304
85@ = 1

:FARLIE4_4311
if and
  locate_char_any_means_3d $scplayer {x} -1817.8051 {y} -552.1889 {z} 15.0039 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  86@ == 0
goto_if_false @FARLIE4_4650
clear_area -1817.8051 {y} -552.1889 {z} 15.0039 {radius} 10.0 {clearParticles} True
110@ = create_car 521 {x} -1817.8051 {y} -552.1889 {z} 15.0039
130@ = add_blip_for_car 110@
set_car_heading 110@ {heading} 174.0251
set_car_driving_style 110@ {drivingStyle} DrivingMode.AvoidCars
121@ = create_char_inside_car 110@ {pedType} PedType.Mission1 {modelId} 121
122@ = create_char_as_passenger 110@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 121@ {stayOnBike} False
set_char_can_be_knocked_off_bike 122@ {stayOnBike} False
give_weapon_to_char 121@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 121@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 121@ {accuracy} 30
give_weapon_to_char 122@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 122@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 122@ {accuracy} 30
task_drive_by 122@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 122@ {handleOrTemplate} 46@
set_char_decision_maker 121@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4643
38@ = open_sequence_task 
task_pause -1 {time} 5000
task_car_mission -1 {vehicle} 110@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 38@
perform_sequence_task 121@ {sequence} 38@
clear_sequence_task 38@

:FARLIE4_4643
86@ = 1

:FARLIE4_4650
if and
  locate_char_any_means_3d $scplayer {x} -1818.385 {y} -621.8912 {z} 15.312 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  87@ == 0
goto_if_false @FARLIE4_4989
clear_area -1818.385 {y} -621.8912 {z} 15.312 {radius} 10.0 {clearParticles} True
111@ = create_car 521 {x} -1818.385 {y} -621.8912 {z} 15.312
131@ = add_blip_for_car 111@
set_car_heading 111@ {heading} 1.701
set_car_driving_style 111@ {drivingStyle} DrivingMode.AvoidCars
123@ = create_char_inside_car 111@ {pedType} PedType.Mission1 {modelId} 121
124@ = create_char_as_passenger 111@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 123@ {stayOnBike} False
set_char_can_be_knocked_off_bike 124@ {stayOnBike} False
give_weapon_to_char 123@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 123@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 123@ {accuracy} 30
give_weapon_to_char 124@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 124@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 124@ {accuracy} 30
task_drive_by 124@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 124@ {handleOrTemplate} 46@
set_char_decision_maker 123@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4982
38@ = open_sequence_task 
task_pause -1 {time} 5000
task_car_mission -1 {vehicle} 111@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 38@
perform_sequence_task 123@ {sequence} 38@
clear_sequence_task 38@

:FARLIE4_4982
87@ = 1

:FARLIE4_4989
if and
  locate_char_any_means_3d $scplayer {x} -2211.6201 {y} 580.9911 {z} 34.1691 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  157@ == 0
goto_if_false @FARLIE4_5292
clear_area -2211.6201 {y} 580.9911 {z} 34.1691 {radius} 10.0 {clearParticles} True
162@ = create_car 410 {x} -2211.6201 {y} 580.9911 {z} 34.1691
167@ = add_blip_for_car 162@
set_car_heading 162@ {heading} 176.7102
set_car_driving_style 162@ {drivingStyle} DrivingMode.AvoidCars
147@ = create_char_inside_car 162@ {pedType} PedType.Mission1 {modelId} 121
148@ = create_char_as_passenger 162@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 148@ {stayOnBike} 2
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 147@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 147@ {accuracy} 30
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 148@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 148@ {accuracy} 30
task_drive_by 148@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 148@ {handleOrTemplate} 46@
set_char_decision_maker 147@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5285
task_car_mission 147@ {vehicle} 162@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5285
157@ = 1

:FARLIE4_5292
if and
  locate_char_any_means_3d $scplayer {x} -1850.127 {y} 1096.324 {z} 44.2969 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  158@ == 0
goto_if_false @FARLIE4_5588
clear_area -1850.127 {y} 1096.324 {z} 44.2969 {radius} 10.0 {clearParticles} True
163@ = create_car 475 {x} -1850.127 {y} 1096.324 {z} 44.2969
168@ = add_blip_for_car 163@
set_car_heading 163@ {heading} 81.5282
set_car_driving_style 163@ {drivingStyle} DrivingMode.AvoidCars
149@ = create_char_inside_car 163@ {pedType} PedType.Mission1 {modelId} 121
150@ = create_char_as_passenger 163@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 149@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 149@ {accuracy} 30
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 150@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 150@ {accuracy} 30
task_drive_by 150@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 150@ {handleOrTemplate} 46@
set_char_decision_maker 149@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5581
task_car_mission 149@ {vehicle} 163@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5581
158@ = 1

:FARLIE4_5588
if and
  locate_char_any_means_3d $scplayer {x} -1740.369 {y} 1404.4611 {z} 6.1875 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  159@ == 0
goto_if_false @FARLIE4_5884
clear_area -1740.369 {y} 1404.4611 {z} 6.1875 {radius} 10.0 {clearParticles} True
164@ = create_car 543 {x} -1740.369 {y} 1404.4611 {z} 6.1875
169@ = add_blip_for_car 164@
set_car_heading 164@ {heading} 172.1585
set_car_driving_style 164@ {drivingStyle} DrivingMode.AvoidCars
151@ = create_char_inside_car 164@ {pedType} PedType.Mission1 {modelId} 121
152@ = create_char_as_passenger 164@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 151@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 151@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 151@ {accuracy} 30
give_weapon_to_char 152@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 152@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 152@ {accuracy} 30
task_drive_by 152@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 152@ {handleOrTemplate} 46@
set_char_decision_maker 151@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5877
task_car_mission 151@ {vehicle} 164@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5877
159@ = 1

:FARLIE4_5884
if and
  locate_char_any_means_3d $scplayer {x} -1892.652 {y} 745.0367 {z} 44.2969 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  160@ == 0
goto_if_false @FARLIE4_6187
clear_area -1892.652 {y} 745.0367 {z} 44.2969 {radius} 10.0 {clearParticles} True
165@ = create_car 475 {x} -1892.652 {y} 745.0367 {z} 44.2969
170@ = add_blip_for_car 165@
set_car_heading 165@ {heading} 167.9494
set_car_driving_style 165@ {drivingStyle} DrivingMode.AvoidCars
set_car_mission 165@ {carMission} CarMission.BlockPlayerClose
153@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 121
154@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 153@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 153@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 153@ {accuracy} 30
give_weapon_to_char 154@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 154@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 154@ {accuracy} 30
task_drive_by 153@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 154@ {handleOrTemplate} 46@
set_char_decision_maker 153@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_6180
task_car_mission 154@ {vehicle} 165@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_6180
160@ = 1

:FARLIE4_6187
if and
  locate_char_any_means_3d $scplayer {x} -2154.207 {y} 576.4759 {z} 34.1719 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  88@ == 0
goto_if_false @FARLIE4_6379
clear_area -1818.385 {y} -621.8912 {z} 15.312 {radius} 10.0 {clearParticles} True
183@ = create_char PedType.Mission1 {modelId} 121 {x} -2154.207 {y} 576.4759 {z} 34.1719
182@ = create_car 521 {x} -2154.3821 {y} 577.5017 {z} 34.1719
set_car_heading 182@ {heading} 114.1029
set_char_heading 183@ {heading} 211.0992
give_weapon_to_char 183@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 183@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 183@ {accuracy} 90
set_char_decision_maker 183@ {handleOrTemplate} 46@
task_stay_in_same_place 183@ {state} True
88@ = 1

:FARLIE4_6379
if and
  locate_char_any_means_3d $scplayer {x} -2245.675 {y} 303.3215 {z} 34.3203 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  88@ == 0
goto_if_false @FARLIE4_6571
clear_area -2245.675 {y} 303.3215 {z} 34.3203 {radius} 10.0 {clearParticles} True
185@ = create_char PedType.Mission1 {modelId} 121 {x} -2245.675 {y} 303.3215 {z} 34.3203
184@ = create_car 521 {x} -2244.782 {y} 304.8253 {z} 34.3203
set_car_heading 184@ {heading} 191.9683
set_char_heading 185@ {heading} 165.1429
give_weapon_to_char 185@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 185@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 185@ {accuracy} 90
set_char_decision_maker 185@ {handleOrTemplate} 46@
task_stay_in_same_place 185@ {state} True
88@ = 1

:FARLIE4_6571
if 
  not is_char_dead 119@
goto_if_false @FARLIE4_6636
if 
  not is_char_in_any_car 119@
goto_if_false @FARLIE4_6629
task_die 119@
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_6629
remove_blip 129@

:FARLIE4_6629
goto @FARLIE4_6657

:FARLIE4_6636
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_6657
remove_blip 129@

:FARLIE4_6657
if 
  not is_char_dead 121@
goto_if_false @FARLIE4_6717
if 
  not is_char_in_any_car 121@
goto_if_false @FARLIE4_6710
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_6710
remove_blip 130@

:FARLIE4_6710
goto @FARLIE4_6738

:FARLIE4_6717
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_6738
remove_blip 130@

:FARLIE4_6738
if 
  not is_char_dead 123@
goto_if_false @FARLIE4_6798
if 
  not is_char_in_any_car 123@
goto_if_false @FARLIE4_6791
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_6791
remove_blip 131@

:FARLIE4_6791
goto @FARLIE4_6819

:FARLIE4_6798
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_6819
remove_blip 131@

:FARLIE4_6819
if 
  not is_char_dead 147@
goto_if_false @FARLIE4_6879
if 
  not is_char_in_any_car 147@
goto_if_false @FARLIE4_6872
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_6872
remove_blip 167@

:FARLIE4_6872
goto @FARLIE4_6900

:FARLIE4_6879
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_6900
remove_blip 167@

:FARLIE4_6900
if 
  not is_char_dead 149@
goto_if_false @FARLIE4_6960
if 
  not is_char_in_any_car 149@
goto_if_false @FARLIE4_6953
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_6953
remove_blip 168@

:FARLIE4_6953
goto @FARLIE4_6981

:FARLIE4_6960
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_6981
remove_blip 168@

:FARLIE4_6981
if 
  not is_char_dead 151@
goto_if_false @FARLIE4_7041
if 
  not is_char_in_any_car 151@
goto_if_false @FARLIE4_7034
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_7034
remove_blip 169@

:FARLIE4_7034
goto @FARLIE4_7062

:FARLIE4_7041
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_7062
remove_blip 169@

:FARLIE4_7062
if 
  not is_char_dead 153@
goto_if_false @FARLIE4_7122
if 
  not is_char_in_any_car 153@
goto_if_false @FARLIE4_7115
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_7115
remove_blip 170@

:FARLIE4_7115
goto @FARLIE4_7143

:FARLIE4_7122
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_7143
remove_blip 170@

:FARLIE4_7143
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_7509
36@ = 0

:FARLIE4_7166
if 
  not is_char_dead 119@(36@,10i)
goto_if_false @FARLIE4_7228
if 
  locate_char_any_means_char_2d $scplayer {target} 119@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7228
gosub @FARLIE4_8978

:FARLIE4_7228
if 
  not is_char_dead 99@(36@,10i)
goto_if_false @FARLIE4_7290
if 
  locate_char_any_means_char_2d $scplayer {target} 99@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7290
gosub @FARLIE4_8978

:FARLIE4_7290
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_7166
36@ = 0

:FARLIE4_7318
if 
  not is_char_dead 69@(36@,10i)
goto_if_false @FARLIE4_7380
if 
  locate_char_any_means_char_2d $scplayer {target} 69@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7380
gosub @FARLIE4_8978

:FARLIE4_7380
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_7318
if 
  not is_char_dead 44@
goto_if_false @FARLIE4_7455
if 
  locate_char_any_means_char_2d $scplayer {target} 44@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7455
gosub @FARLIE4_8978

:FARLIE4_7455
if 
  not is_char_dead 45@
goto_if_false @FARLIE4_7509
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7509
gosub @FARLIE4_8978

:FARLIE4_7509
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_7839
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_7839
if 
  locate_char_any_means_3d $scplayer {x} -1742.2729 {y} 1422.631 {z} 6.1842 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FARLIE4_7839
set_player_control $player1 {state} False
gosub @FARLIE4_8288
if 
  not is_car_dead 109@
goto_if_false @FARLIE4_7627
delete_car 109@

:FARLIE4_7627
if 
  not is_car_dead 110@
goto_if_false @FARLIE4_7648
delete_car 110@

:FARLIE4_7648
if 
  not is_car_dead 111@
goto_if_false @FARLIE4_7669
delete_car 111@

:FARLIE4_7669
if 
  not is_car_dead 162@
goto_if_false @FARLIE4_7690
delete_car 162@

:FARLIE4_7690
if 
  not is_car_dead 163@
goto_if_false @FARLIE4_7711
delete_car 163@

:FARLIE4_7711
if 
  not is_car_dead 164@
goto_if_false @FARLIE4_7732
delete_car 164@

:FARLIE4_7732
if 
  not is_car_dead 165@
goto_if_false @FARLIE4_7753
delete_car 165@

:FARLIE4_7753
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_7799
warp_char_from_car_to_coord $scplayer {x} -1741.7061 {y} 1425.384 {z} 6.1842
set_char_heading $scplayer {heading} 179.2136

:FARLIE4_7799
clear_onscreen_counter $f4_rnd
delete_car 34@
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
gosub @FARLIE4_8321
goto @FARLIE4_8015

:FARLIE4_7839
goto @FARLIE4_1808

:FARLIE4_7846
goto @FARLIE4_7853

:FARLIE4_7853
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_7874
remove_blip 37@

:FARLIE4_7874
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_7895
remove_blip 35@

:FARLIE4_7895
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_7916
remove_blip 129@

:FARLIE4_7916
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_7937
remove_blip 130@

:FARLIE4_7937
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_7958
remove_blip 131@

:FARLIE4_7958
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if and
  is_car_dead 34@
  141@ == 1
goto_if_false @FARLIE4_8013
print_now 'F4_F' {time} 4000 {flag} 1

:FARLIE4_8013
return 

:FARLIE4_8015
$flag_wuzi_mission_counter += 1
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_8043
remove_blip 37@

:FARLIE4_8043
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_8064
remove_blip 35@

:FARLIE4_8064
register_mission_passed 'FAR_4'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSS' {num} 6000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 6000
award_player_mission_respect 15
clear_wanted_level $player1
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_8140
remove_blip 129@

:FARLIE4_8140
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_8161
remove_blip 130@

:FARLIE4_8161
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_8182
remove_blip 131@

:FARLIE4_8182
if 
  not is_car_dead 109@
goto_if_false @FARLIE4_8203
delete_car 109@

:FARLIE4_8203
if 
  not is_car_dead 110@
goto_if_false @FARLIE4_8224
delete_car 110@

:FARLIE4_8224
if 
  not is_car_dead 111@
goto_if_false @FARLIE4_8245
delete_car 111@

:FARLIE4_8245
gosub @FARLIE4_8321
return 

:FARLIE4_8254
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:FARLIE4_8269
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:FARLIE4_8288
do_fade 500 {direction} Fade.Out

:FARLIE4_8295
if 
  get_fading_status 
goto_if_false @FARLIE4_8319
wait 0
goto @FARLIE4_8295

:FARLIE4_8319
return 

:FARLIE4_8321
do_fade 500 {direction} Fade.In

:FARLIE4_8328
if 
  get_fading_status 
goto_if_false @FARLIE4_8352
wait 0
goto @FARLIE4_8328

:FARLIE4_8352
return 

:FARLIE4_8354
$onmission = 0
clear_onscreen_counter $f4_rnd
switch_roads_back_to_original -1478.2939 {leftBottomY} -65.4014 {leftBottomZ} 0.0 {rightTopX} -1395.423 {rightTopY} 2.7054 {rightTopZ} 10.0
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 543
$timer_mobile_start = get_game_timer 
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_8467
remove_blip 37@

:FARLIE4_8467
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_8488
remove_blip 35@

:FARLIE4_8488
if 
  does_blip_exist 41@
goto_if_false @FARLIE4_8509
remove_blip 41@

:FARLIE4_8509
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_8530
remove_blip 129@

:FARLIE4_8530
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_8551
remove_blip 130@

:FARLIE4_8551
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_8572
remove_blip 131@

:FARLIE4_8572
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_8593
remove_blip 167@

:FARLIE4_8593
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_8614
remove_blip 168@

:FARLIE4_8614
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_8635
remove_blip 169@

:FARLIE4_8635
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_8656
remove_blip 170@

:FARLIE4_8656
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8742
if and
  is_garage_open 'FDORSFE'
  not locate_char_any_means_3d $scplayer {x} -2161.6279 {y} 654.652 {z} 51.3706 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_8742
close_garage 'FDORSFE'

:FARLIE4_8742
mission_has_finished 
return 

:FARLIE4_8746
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @FARLIE4_8807
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8807
set_char_coordinates $scplayer {x} -1403.283 {y} -395.7443 {z} 11.0
set_char_heading $scplayer {heading} 343.9661

:FARLIE4_8807
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @FARLIE4_8851
if 
  is_char_in_any_car $scplayer
goto_if_false @FARLIE4_8851
186@ = store_car_char_is_in $scplayer
pop_car_boot 186@

:FARLIE4_8851
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @FARLIE4_8873
goto @FARLIE4_1046

:FARLIE4_8873
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @FARLIE4_8909
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8909
task_die $scplayer

:FARLIE4_8909
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @FARLIE4_8954
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8954
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:FARLIE4_8954
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @FARLIE4_8976
goto @FARLIE4_1197

:FARLIE4_8976
return 

:FARLIE4_8978
if 
  TIMERB > 15000
goto_if_false @FARLIE4_9530
if 
  not is_message_being_displayed 
goto_if_false @FARLIE4_9530
switch_start $play_audio_global {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @FARLIE4_9498 {caseNum1} 0 {caseLabel1} @FARLIE4_9138 {caseNum2} 1 {caseLabel2} @FARLIE4_9183 {caseNum3} 2 {caseLabel3} @FARLIE4_9228 {caseNum4} 3 {caseLabel4} @FARLIE4_9273 {caseNum5} 4 {caseLabel5} @FARLIE4_9318 {caseNum6} 5 {caseLabel6} @FARLIE4_9363 {caseNum7} 6 {caseLabel7} @FARLIE4_9408
switch_continued 7 {caseLabel1} @FARLIE4_9453 {caseNum2} -1 {caseLabel2} @FARLIE4_9498 {caseNum3} -1 {caseLabel3} @FARLIE4_9498 {caseNum4} -1 {caseLabel4} @FARLIE4_9498 {caseNum5} -1 {caseLabel5} @FARLIE4_9498 {caseNum6} -1 {caseLabel6} @FARLIE4_9498 {caseNum7} -1 {caseLabel7} @FARLIE4_9498 {caseNum8} -1 {caseLabel8} @FARLIE4_9498 {caseNum9} -1 {caseLabel9} @FARLIE4_9498

:FARLIE4_9138
set_lvar_text_label 177@s = 'FAR4_AA'
set_lvar_int_to_constant 139@ = 38800
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9183
set_lvar_text_label 177@s = 'FAR4_AB'
set_lvar_int_to_constant 139@ = 38801
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9228
set_lvar_text_label 177@s = 'FAR4_AC'
set_lvar_int_to_constant 139@ = 38802
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9273
set_lvar_text_label 177@s = 'FAR4_AD'
set_lvar_int_to_constant 139@ = 38803
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9318
set_lvar_text_label 177@s = 'FAR4_AE'
set_lvar_int_to_constant 139@ = 38804
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9363
set_lvar_text_label 177@s = 'FAR4_AG'
set_lvar_int_to_constant 139@ = 38806
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9408
set_lvar_text_label 177@s = 'FAR4_AH'
set_lvar_int_to_constant 139@ = 38807
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9453
set_lvar_text_label 177@s = 'FAR4_AJ'
set_lvar_int_to_constant 139@ = 38808
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9498
$play_audio_global += 1
if 
  $play_audio_global == 8
goto_if_false @FARLIE4_9530
$play_audio_global = 0

:FARLIE4_9530
return 

:FARLIE4_9532
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 139@
140@ = 0
return 

:FARLIE4_9552
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  140@ == 0
goto_if_false @FARLIE4_9595
play_mission_audio MissionAudioSlot.Slot1
print_now 177@s {time} 10000 {flag} 1
140@ = 1

:FARLIE4_9595
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  140@ == 1
goto_if_false @FARLIE4_9633
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 177@s
140@ = 2

:FARLIE4_9633
return 

//-------------Mission 55---------------
// Originally: Lure

:DRIV6
script_name 'DRIV6'
gosub @DRIV6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV6_38
gosub @DRIV6_12763

:DRIV6_38
gosub @DRIV6_12845
terminate_this_script 

:DRIV6_47
register_mission_given 
load_mission_text 'FARLIE5'
$onmission = 1
wait 0
35@ = -1957.67
36@ = -2443.7
37@ = 30.83
38@ = -1571.4
39@ = -2742.0901
40@ = 47.57
49@ = 0
50@ = 14
104@ = 0

:DRIV6_152
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_273
140@(104@,14i) = 0
154@(104@,14i) = 0
168@(104@,14i) = 0
182@(104@,14i) = 0
196@(104@,14i) = 0
210@(104@,14i) = 0
224@(104@,14i) = 0
238@(104@,14i) = 0
104@ += 1
goto @DRIV6_152

:DRIV6_273
137@ = 0
138@ = 0
139@ = 0
$f4_car_damage = 0
$d6_player_in_ravine = 0
253@ = 0
$d6_player_in_tunnel = 0
$d6_player_reached_first_creation_pt = 0
254@ = 0
255@ = 0
$d6_player_reached_second_creation_pt = 0
$d6_player_reached_fifth_creation_pt = 0
98@ = 0
252@ = 0
256@ = 0
257@ = 0
260@ = 0
261@ = 0
131@ = 0
132@ = 0
134@ = 0
136@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DRIV6_442
if 
  get_fading_status 
goto_if_false @DRIV6_466
wait 0
goto @DRIV6_442

:DRIV6_466
set_area_visible 1
load_cutscene 'FARL_5A'

:DRIV6_481
if 
  not has_cutscene_loaded 
goto_if_false @DRIV6_505
wait 0
goto @DRIV6_481

:DRIV6_505
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV6_514
if 
  not has_cutscene_finished 
goto_if_false @DRIV6_538
wait 0
goto @DRIV6_514

:DRIV6_538
do_fade 0 {direction} Fade.Out

:DRIV6_544
if 
  get_fading_status 
goto_if_false @DRIV6_568
wait 0
goto @DRIV6_544

:DRIV6_568
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
if 
  136@ == 1
goto_if_false @DRIV6_727
34@ = create_car 489 {x} 0.0 {y} 0.0 {z} -100.0
104@ = 0

:DRIV6_629
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_727
create_car 468 {x} 94@ {y} 95@ {z} -100.0 {var_handle} 52@(104@,14i)
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
104@ += 1
goto @DRIV6_629

:DRIV6_727
request_model 468
request_model 123
request_model 122
request_model 353

:DRIV6_745
if or
  not has_model_loaded 468
  not has_model_loaded 123
  not has_model_loaded 122
  not has_model_loaded 353
goto_if_false @DRIV6_785
wait 0
goto @DRIV6_745

:DRIV6_785
switch_car_generator $5279 {amount} 0
switch_car_generator $5280 {amount} 0
switch_car_generator $5281 {amount} 0
set_char_coordinates $scplayer {x} -2154.2 {y} 645.31 {z} 51.39
set_char_heading $scplayer {heading} 270.0
gosub @DRIV6_4442
262@ = add_blip_for_car 34@
set_blip_as_friendly 262@ {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'DRV6_8' {time} 10000 {flag} 0

:DRIV6_905
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV6_931
goto @DRIV6_12781

:DRIV6_931
if 
  137@ <> 1
goto_if_false @DRIV6_1088
if 
  not is_car_dead 34@
goto_if_false @DRIV6_1088
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_1088
remove_blip 262@
137@ = 1
263@ = add_blip_for_coord -1963.84 {y} -2441.49 {z} 30.78
print_now 'DRV6_19' {time} 10000 {flag} 0
print 'DRV6_17' {time} 7000 {flag} 0
if 
  $burglary_player_stealth == 1
goto_if_false @DRIV6_1088
set_up_skip -1990.65 {y} -2428.6499 {z} 30.77 {heading} 225.0

:DRIV6_1088
if and
  137@ == 1
  139@ <> 1
goto_if_false @DRIV6_1498
if 
  not is_car_dead 34@
goto_if_false @DRIV6_1498
if and
  138@ <> 1
  locate_char_any_means_2d $scplayer {x} -1990.65 {y} -2428.6499 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @DRIV6_1192
clear_this_print 'DRV6_19'
138@ = 1

:DRIV6_1192
if and
  $burglary_player_stealth <> 1
  locate_char_any_means_2d $scplayer {x} -1963.84 {y} -2441.49 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRIV6_1244
$burglary_player_stealth = 1

:DRIV6_1244
if 
  locate_char_in_car_3d $scplayer {x} -1963.84 {y} -2441.49 {z} 30.78 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @DRIV6_1498
set_player_control $player1 {state} False
clear_skip 
remove_blip 263@
gosub @DRIV6_4788
264@ = add_blip_for_coord -1867.14 {y} -2442.3899 {z} 31.24
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -1867.14 {y} -2442.3899 {z} 31.24 {pointX} -1178.3199 {pointY} -2638.8501 {pointZ} 10.8 {radius} 4.0
display_onscreen_counter_with_string $d6_door_health {display} CounterDisplay.Bar {text} 'DRV6_18'
100@ = 0
$d6_door_health = 100
set_car_health 34@ {health} 9000
print_now 'DRV6_2' {time} 10000 {flag} 0
print 'DRV6_17' {time} 7000 {flag} 0
print 'DRV6_4' {time} 10000 {flag} 0
print 'DRV6_15' {time} 10000 {flag} 0
139@ = 1
TIMERB = 0

:DRIV6_1498
if 
  139@ == 1
goto_if_false @DRIV6_3767
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV6_1539
clear_wanted_level $player1

:DRIV6_1539
if 
  not is_car_dead 34@
goto_if_false @DRIV6_3767
if and
  261@ <> 1
  TIMERB > 2000
goto_if_false @DRIV6_1681
if and
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @DRIV6_1681
task_drive_by 80@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
task_drive_by 81@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
261@ = 1

:DRIV6_1681
if 
  is_car_upsidedown 34@
goto_if_false @DRIV6_1744
if 
  252@ == 1
goto_if_false @DRIV6_1737
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
252@ = 0

:DRIV6_1737
goto @DRIV6_1784

:DRIV6_1744
if 
  252@ <> 1
goto_if_false @DRIV6_1784
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
252@ = 1

:DRIV6_1784
gosub @DRIV6_7450
if 
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_1945
if 
  $f4_car_damage <> 1
goto_if_false @DRIV6_1886
if 
  locate_car_2d 34@ {x} -1181.9301 {y} -2642.3301 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DRIV6_1879
gosub @DRIV6_8721
$f4_car_damage = 1

:DRIV6_1879
goto @DRIV6_1938

:DRIV6_1886
if 
  not locate_car_2d 34@ {x} -1181.9301 {y} -2642.3301 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DRIV6_1938
gosub @DRIV6_8888
$f4_car_damage = 0

:DRIV6_1938
goto @DRIV6_1970

:DRIV6_1945
if 
  $f4_car_damage == 1
goto_if_false @DRIV6_1970
$f4_car_damage = 0

:DRIV6_1970
if 
  $d6_player_reached_second_creation_pt == 1
goto_if_false @DRIV6_2124
if 
  $d6_player_in_ravine <> 1
goto_if_false @DRIV6_2065
if 
  locate_car_2d 34@ {x} -519.74 {y} -2782.1101 {xRadius} 214.0 {yRadius} 214.0 {drawSphere} False
goto_if_false @DRIV6_2058
gosub @DRIV6_8721
$d6_player_in_ravine = 1

:DRIV6_2058
goto @DRIV6_2117

:DRIV6_2065
if 
  not locate_car_2d 34@ {x} -519.74 {y} -2782.1101 {xRadius} 214.0 {yRadius} 214.0 {drawSphere} False
goto_if_false @DRIV6_2117
gosub @DRIV6_8888
$d6_player_in_ravine = 0

:DRIV6_2117
goto @DRIV6_2149

:DRIV6_2124
if 
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_2149
$d6_player_in_ravine = 0

:DRIV6_2149
if 
  253@ <> 1
goto_if_false @DRIV6_2301
if 
  locate_car_3d 34@ {x} -1867.14 {y} -2442.3899 {z} 31.24 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2301
remove_blip 264@
delete_checkpoint 41@
253@ = 1
264@ = add_blip_for_coord -1178.3199 {y} -2638.8501 {z} 10.8
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -1178.3199 {y} -2638.8501 {z} 10.8 {pointX} -654.95 {pointY} -2469.3501 {pointZ} 33.3 {radius} 4.0

:DRIV6_2301
if and
  253@ == 1
  $d6_player_in_tunnel <> 1
goto_if_false @DRIV6_2467
if 
  locate_car_3d 34@ {x} -1178.3199 {y} -2638.8501 {z} 10.8 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2467
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_in_tunnel = 1
264@ = add_blip_for_coord -654.95 {y} -2469.3501 {z} 33.3
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -654.95 {y} -2469.3501 {z} 33.3 {pointX} -309.54 {pointY} -2248.8101 {pointZ} 29.59 {radius} 4.0

:DRIV6_2467
if and
  $d6_player_in_tunnel == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_2633
if 
  locate_car_3d 34@ {x} -654.95 {y} -2469.3501 {z} 33.3 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2633
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_first_creation_pt = 1
264@ = add_blip_for_coord -309.54 {y} -2248.8101 {z} 29.59
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -309.54 {y} -2248.8101 {z} 29.59 {pointX} -165.7 {pointY} -2421.71 {pointZ} 35.1 {radius} 4.0

:DRIV6_2633
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_2799
if 
  locate_car_3d 34@ {x} -309.54 {y} -2248.8101 {z} 29.59 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2799
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
254@ = 1
264@ = add_blip_for_coord -165.7 {y} -2421.71 {z} 35.1
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -165.7 {y} -2421.71 {z} 35.1 {pointX} -191.26 {pointY} -2822.52 {pointZ} 42.09 {radius} 4.0

:DRIV6_2799
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_2965
if 
  locate_car_3d 34@ {x} -165.7 {y} -2421.71 {z} 35.1 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2965
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
255@ = 1
264@ = add_blip_for_coord -191.26 {y} -2822.52 {z} 42.09
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -191.26 {y} -2822.52 {z} 42.09 {pointX} -946.91 {pointY} -2844.8401 {pointZ} 67.36 {radius} 4.0

:DRIV6_2965
if and
  255@ == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_3125
if 
  locate_car_3d 34@ {x} -191.26 {y} -2822.52 {z} 42.09 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_3125
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_second_creation_pt = 1
264@ = add_blip_for_coord -946.91 {y} -2844.8401 {z} 67.36
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -946.91 {y} -2844.8401 {z} 67.36 {pointX} 38@ {pointY} 39@ {pointZ} 40@ {radius} 4.0

:DRIV6_3125
if and
  $d6_player_reached_second_creation_pt == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_3279
if 
  locate_car_3d 34@ {x} -946.91 {y} -2844.8401 {z} 67.36 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_3279
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_fifth_creation_pt = 1
265@ = add_blip_for_coord 38@ {y} 39@ {z} 40@
change_blip_colour 265@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.Tube {x} 38@ {y} 39@ {z} 40@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 4.0

:DRIV6_3279
if 
  100 > 100@
goto_if_false @DRIV6_3350
99@ = get_car_health 34@
set_lvar_int_to_lvar_int 100@ = 99@
100@ -= 3000
100@ /= 60
set_var_int_to_lvar_int $d6_door_health = 100@
100@ *= -1
100@ += 100

:DRIV6_3350
if 
  45 >= 100@
goto_if_false @DRIV6_3439
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_3411
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_3411
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Intact {angle} 0.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Intact {angle} 0.0

:DRIV6_3439
if and
  100@ > 45
  80 >= 100@
goto_if_false @DRIV6_3535
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_3507
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_3507
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Bashed {angle} 0.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Bashed {angle} 0.0

:DRIV6_3535
if and
  100@ > 80
  100 > 100@
goto_if_false @DRIV6_3588
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.BashedAndSwingingFree {angle} -1.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.BashedAndSwingingFree {angle} -1.0

:DRIV6_3588
if 
  100@ >= 100
goto_if_false @DRIV6_3634
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Missing {angle} -1.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Missing {angle} -1.0

:DRIV6_3634
if and
  100@ > 80
  256@ <> 1
goto_if_false @DRIV6_3682
print_now 'DRV6_6' {time} 7000 {flag} 0
256@ = 1

:DRIV6_3682
if and
  100@ >= 100
  257@ <> 1
goto_if_false @DRIV6_3742
clear_onscreen_counter $d6_door_health
print_now 'DRV6_16' {time} 5000 {flag} 0
TIMERA = 0
257@ = 1

:DRIV6_3742
if 
  257@ == 1
goto_if_false @DRIV6_3767
gosub @DRIV6_9159

:DRIV6_3767
if 
  137@ <> 1
goto_if_false @DRIV6_3826
if 
  is_car_dead 34@
goto_if_false @DRIV6_3826
clear_prints 
print_now 'DRV6_11' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_3826
if 
  137@ == 1
goto_if_false @DRIV6_4181
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4156
gosub @DRIV6_9768
266@ = 0
104@ = 0

:DRIV6_3899
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  266@ <> 1
goto_if_false @DRIV6_4073
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_3992
if 
  locate_char_any_means_char_3d $scplayer {target} 66@(104@,14i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV6_3992
266@ = 1

:DRIV6_3992
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_4059
if 
  locate_char_any_means_char_3d $scplayer {target} 80@(104@,14i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV6_4059
266@ = 1

:DRIV6_4059
104@ += 1
goto @DRIV6_3899

:DRIV6_4073
if 
  266@ == 1
goto_if_false @DRIV6_4149
135@ = 0
gosub @DRIV6_12213
132@ = 1

:DRIV6_4112
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4149
wait 0
gosub @DRIV6_12532
goto @DRIV6_4112

:DRIV6_4149
gosub @DRIV6_9452

:DRIV6_4156
clear_prints 
print_now 'DRV6_7' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4435
if and
  257@ == 1
  TIMERA > 10000
goto_if_false @DRIV6_4344
135@ = 0
gosub @DRIV6_12213

:DRIV6_4239
if 
  1 > 132@
goto_if_false @DRIV6_4275
wait 0
gosub @DRIV6_12532
goto @DRIV6_4239

:DRIV6_4275
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4312
wait 0
gosub @DRIV6_12532
goto @DRIV6_4275

:DRIV6_4312
gosub @DRIV6_9452
clear_prints 
print_now 'DRV6_7' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_4344
if 
  $d6_player_reached_fifth_creation_pt == 1
goto_if_false @DRIV6_4435
if 
  locate_char_in_car_3d $scplayer {x} 38@ {y} 39@ {z} 40@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @DRIV6_4435
set_player_control $player1 {state} False
remove_blip 265@
delete_checkpoint 41@
gosub @DRIV6_10195
goto @DRIV6_12781

:DRIV6_4435
goto @DRIV6_905

:DRIV6_4442
request_model 489

:DRIV6_4447
if 
  not has_model_loaded 489
goto_if_false @DRIV6_4474
wait 0
goto @DRIV6_4447

:DRIV6_4474
clear_area -2149.95 {y} 644.31 {z} 52.35 {radius} 100.0 {clearParticles} False
34@ = create_car 489 {x} -2149.95 {y} 644.31 {z} 52.35
set_car_heading 34@ {heading} 180.0
set_car_strong 34@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 9000
set_car_can_be_visibly_damaged 34@ {state} False
return 

:DRIV6_4562
52@ = create_car 468 {x} -2015.66 {y} -2408.8201 {z} 30.28
set_car_heading 52@ {heading} 229.35
53@ = create_car 468 {x} -2017.0699 {y} -2410.3701 {z} 30.3
set_car_heading 53@ {heading} 225.81
104@ = 0

:DRIV6_4635
if 
  2 > 104@
goto_if_false @DRIV6_4779
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
give_weapon_to_char 80@(104@,14i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_car_only_damaged_by_player 52@(104@,14i) {state} True
set_car_traction 52@(104@,14i) {traction} 2.0
set_char_can_be_knocked_off_bike 66@(104@,14i) {stayOnBike} 2
set_char_can_be_knocked_off_bike 80@(104@,14i) {stayOnBike} 2
49@ += 1
104@ += 1
goto @DRIV6_4635

:DRIV6_4779
98@ += 1
return 

:DRIV6_4788
do_fade 1000 {direction} Fade.Out

:DRIV6_4795
if 
  get_fading_status 
goto_if_false @DRIV6_4819
wait 0
goto @DRIV6_4795

:DRIV6_4819
clear_area 35@ {y} 36@ {z} 37@ {radius} 300.0 {clearParticles} False
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 34@
goto_if_false @DRIV6_4890
set_car_coordinates 34@ {x} 35@ {y} 36@ {z} 37@
set_car_heading 34@ {heading} 241.85

:DRIV6_4890
gosub @DRIV6_4562
set_fixed_camera_position -1955.92 {y} -2447.6899 {z} 30.78 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1962.83 {y} -2441.79 {z} 30.44 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV6_4955
if 
  get_fading_status 
goto_if_false @DRIV6_4979
wait 0
goto @DRIV6_4955

:DRIV6_4979
259@ = 1
skip_cutscene_start_internal @DRIV6_5561
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5119
if and
  not is_char_dead 66@
  not is_car_dead 52@
goto_if_false @DRIV6_5064
task_car_drive_to_coord 66@ {vehicle} 52@ {x} -1977.97 {y} -2435.05 {z} 30.3 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5064
if and
  not is_char_dead 67@
  not is_car_dead 53@
goto_if_false @DRIV6_5119
task_car_drive_to_coord 67@ {vehicle} 53@ {x} -1979.45 {y} -2437.47 {z} 30.3 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5119
TIMERB = 0

:DRIV6_5126
if 
  2500 > TIMERB
goto_if_false @DRIV6_5156
wait 0
goto @DRIV6_5126

:DRIV6_5156
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5223
set_fixed_camera_position -1989.91 {y} -2435.3301 {z} 30.68 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1987.22 {y} -2436.0701 {z} 30.82 {switchStyle} SwitchType.JumpCut

:DRIV6_5223
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5269
set_car_coordinates 52@ {x} -1985.6 {y} -2435.1399 {z} 30.3
set_car_heading 52@ {heading} 254.67

:DRIV6_5269
if 
  not is_car_dead 53@
goto_if_false @DRIV6_5315
set_car_coordinates 53@ {x} -1986.37 {y} -2437.8 {z} 30.3
set_car_heading 53@ {heading} 250.82

:DRIV6_5315
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5439
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5385
set_car_straight_line_distance 52@ {distance} 250
task_car_mission 66@ {vehicle} 52@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 10.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5385
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5439
set_car_straight_line_distance 53@ {distance} 250
task_car_mission 67@ {vehicle} 53@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 10.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5439
if and
  260@ <> 1
  not is_char_dead 66@
  not is_car_dead 52@
  not is_car_dead 34@
goto_if_false @DRIV6_5554
if 
  is_char_in_car 66@ {vehicle} 52@
goto_if_false @DRIV6_5536
if 
  locate_char_in_car_car_2d 66@ {handle} 34@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRIV6_5529
260@ = 1

:DRIV6_5529
goto @DRIV6_5543

:DRIV6_5536
260@ = 1

:DRIV6_5543
wait 0
goto @DRIV6_5439

:DRIV6_5554
259@ = 0

:DRIV6_5561
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_5755
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5755
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5676
94@, 95@, 96@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.0 {yOffset} -14.0 {zOffset} 0.0
96@ = -100.0
set_car_coordinates 52@ {x} 94@ {y} 95@ {z} 96@

:DRIV6_5676
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5755
94@, 95@, 96@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} -14.0 {zOffset} 0.0
96@ = -100.0
set_car_coordinates 53@ {x} 94@ {y} 95@ {z} 96@

:DRIV6_5755
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5778
set_car_straight_line_distance 52@ {distance} 20

:DRIV6_5778
if 
  not is_car_dead 53@
goto_if_false @DRIV6_5801
set_car_straight_line_distance 53@ {distance} 20

:DRIV6_5801
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5909
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5863
task_car_mission 66@ {vehicle} 52@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5863
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5909
task_car_mission 67@ {vehicle} 53@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5909
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV6_5926
if 
  not is_car_dead 34@
goto_if_false @DRIV6_7448
51@ = 0
104@ = 0

:DRIV6_5956
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_6085
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_6071
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 52@(104@,14i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DRIV6_6044
51@ += 1
goto @DRIV6_6071

:DRIV6_6044
delete_car 52@(104@,14i)
delete_char 66@(104@,14i)
delete_char 80@(104@,14i)

:DRIV6_6071
104@ += 1
goto @DRIV6_5956

:DRIV6_6085
if 
  51@ <= 2
goto_if_false @DRIV6_7448
set_lvar_int_to_lvar_int 104@ = 98@
104@ *= 2
set_lvar_int_to_lvar_int 105@ = 104@
105@ += 2
106@ = 0

:DRIV6_6140
if 
  is_int_lvar_greater_than_int_lvar 105@ > 104@
goto_if_false @DRIV6_7441
if and
  253@ == 1
  $d6_player_in_tunnel <> 1
goto_if_false @DRIV6_6300
if 
  106@ == 0
goto_if_false @DRIV6_6242
94@ = -1342.9399
95@ = -2624.45
96@ = 19.58
97@ = 261.04

:DRIV6_6242
if 
  106@ == 1
goto_if_false @DRIV6_6300
94@ = -1344.02
95@ = -2628.0701
96@ = 19.82
97@ = 260.5

:DRIV6_6300
if and
  $d6_player_in_tunnel == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_6441
if 
  106@ == 0
goto_if_false @DRIV6_6383
94@ = -708.68
95@ = -2601.46
96@ = 69.83
97@ = 338.56

:DRIV6_6383
if 
  106@ == 1
goto_if_false @DRIV6_6441
94@ = -704.89
95@ = -2602.9199
96@ = 69.9
97@ = 340.64

:DRIV6_6441
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_6582
if 
  106@ == 0
goto_if_false @DRIV6_6524
94@ = -420.89
95@ = -2258.8701
96@ = 47.37
97@ = 278.1

:DRIV6_6524
if 
  106@ == 1
goto_if_false @DRIV6_6582
94@ = -420.64
95@ = -2261.3899
96@ = 47.79
97@ = 279.7

:DRIV6_6582
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_6723
if 
  106@ == 0
goto_if_false @DRIV6_6665
94@ = -260.22
95@ = -2323.1201
96@ = 30.42
97@ = 222.63

:DRIV6_6665
if 
  106@ == 1
goto_if_false @DRIV6_6723
94@ = -262.81
95@ = -2326.8
96@ = 30.43
97@ = 220.93

:DRIV6_6723
if and
  255@ == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_6864
if 
  106@ == 0
goto_if_false @DRIV6_6806
94@ = -179.45
95@ = -2708.9099
96@ = 35.82
97@ = 177.36

:DRIV6_6806
if 
  106@ == 1
goto_if_false @DRIV6_6864
94@ = -182.07
95@ = -2709.0601
96@ = 35.77
97@ = 176.56

:DRIV6_6864
if and
  $d6_player_reached_second_creation_pt == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_7005
if 
  106@ == 0
goto_if_false @DRIV6_6947
94@ = -846.18
95@ = -2809.6001
96@ = 70.32
97@ = 112.41

:DRIV6_6947
if 
  106@ == 1
goto_if_false @DRIV6_7005
94@ = -848.6
95@ = -2806.3
96@ = 70.29
97@ = 111.76

:DRIV6_7005
clear_area 94@ {y} 95@ {z} 96@ {radius} 5.0 {clearParticles} True
create_car 468 {x} 94@ {y} 95@ {z} 96@ {var_handle} 52@(104@,14i)
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
set_car_heading 52@(104@,14i) {heading} 97@
set_car_only_damaged_by_player 52@(104@,14i) {state} True
set_car_traction 52@(104@,14i) {traction} 2.0
set_char_can_be_knocked_off_bike 66@(104@,14i) {stayOnBike} 2
set_char_can_be_knocked_off_bike 80@(104@,14i) {stayOnBike} 2
if or
  $f4_car_damage == 1
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_7205
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
goto @DRIV6_7297

:DRIV6_7205
if 
  106@ == 0
goto_if_false @DRIV6_7251
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7251
if 
  106@ == 1
goto_if_false @DRIV6_7297
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7297
give_weapon_to_char 80@(104@,14i) {weaponType} WeaponType.Mp5 {ammo} 99999
task_drive_by 80@(104@,14i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_7399
set_car_forward_speed 52@(104@,14i) {forwardSpeed} 30.0
goto @DRIV6_7413

:DRIV6_7399
set_car_forward_speed 52@(104@,14i) {forwardSpeed} 70.0

:DRIV6_7413
49@ += 1
104@ += 1
106@ += 1
goto @DRIV6_6140

:DRIV6_7441
98@ += 1

:DRIV6_7448
return 

:DRIV6_7450
if 
  not is_car_dead 34@
goto_if_false @DRIV6_8719
104@ = 0

:DRIV6_7473
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8719
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_8705
if and
  is_char_dead 66@(104@,14i)
  168@(104@,14i) <> 1
goto_if_false @DRIV6_7554
168@(104@,14i) = 1

:DRIV6_7554
if and
  is_char_dead 80@(104@,14i)
  182@(104@,14i) <> 1
goto_if_false @DRIV6_7596
182@(104@,14i) = 1

:DRIV6_7596
if and
  not is_char_dead 66@(104@,14i)
  182@(104@,14i) == 1
  196@(104@,14i) <> 1
goto_if_false @DRIV6_7688
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
224@(104@,14i) = 1
196@(104@,14i) = 1

:DRIV6_7688
if and
  not is_char_dead 80@(104@,14i)
  168@(104@,14i) == 1
  210@(104@,14i) <> 1
goto_if_false @DRIV6_7850
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_7839
94@, 95@, 96@ = get_car_coordinates 52@(104@,14i)
warp_char_from_car_to_coord 80@(104@,14i) {x} 94@ {y} 95@ {z} -10.0
warp_char_into_car 80@(104@,14i) {vehicle} 52@(104@,14i)
task_car_mission 80@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7839
210@(104@,14i) = 1

:DRIV6_7850
if and
  not is_char_dead 66@(104@,14i)
  196@(104@,14i) == 1
goto_if_false @DRIV6_8009
if 
  not is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_7976
if 
  224@(104@,14i) == 0
goto_if_false @DRIV6_7969
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
224@(104@,14i) = 1

:DRIV6_7969
goto @DRIV6_8009

:DRIV6_7976
if 
  224@(104@,14i) == 1
goto_if_false @DRIV6_8009
224@(104@,14i) = 0

:DRIV6_8009
if and
  not is_char_dead 80@(104@,14i)
  210@(104@,14i) == 1
goto_if_false @DRIV6_8168
if 
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8135
if 
  238@(104@,14i) == 0
goto_if_false @DRIV6_8128
task_car_mission 80@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
238@(104@,14i) = 1

:DRIV6_8128
goto @DRIV6_8168

:DRIV6_8135
if 
  238@(104@,14i) == 1
goto_if_false @DRIV6_8168
238@(104@,14i) = 0

:DRIV6_8168
if and
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8665
if and
  not is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  140@(104@,14i) == 0
goto_if_false @DRIV6_8265
task_enter_car_as_driver 66@(104@,14i) {vehicle} 52@(104@,14i) {time} 10000
140@(104@,14i) = 1

:DRIV6_8265
if and
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
  154@(104@,14i) == 0
goto_if_false @DRIV6_8335
task_enter_car_as_passenger 80@(104@,14i) {vehicle} 52@(104@,14i) {time} 10000 {seat} SeatId.BikeRear
154@(104@,14i) = 1

:DRIV6_8335
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8665
if or
  140@(104@,14i) == 1
  154@(104@,14i) == 1
goto_if_false @DRIV6_8665
if or
  $f4_car_damage == 1
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_8471
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
goto @DRIV6_8603

:DRIV6_8471
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_8479
if 
  106@ >= 2
goto_if_false @DRIV6_8511
106@ -= 2
goto @DRIV6_8479

:DRIV6_8511
if 
  106@ == 0
goto_if_false @DRIV6_8557
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8557
if 
  106@ == 1
goto_if_false @DRIV6_8603
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8603
task_drive_by 80@(104@,14i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
140@(104@,14i) = 0
154@(104@,14i) = 0

:DRIV6_8665
if and
  is_char_dead 66@(104@,14i)
  is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8705
set_car_mission 52@(104@,14i) {carMission} CarMission.None

:DRIV6_8705
104@ += 1
goto @DRIV6_7473

:DRIV6_8719
return 

:DRIV6_8721
if 
  not is_car_dead 34@
goto_if_false @DRIV6_8886
104@ = 0

:DRIV6_8744
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8886
if and
  not is_car_dead 52@(104@,14i)
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8872
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8872
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8872
104@ += 1
goto @DRIV6_8744

:DRIV6_8886
return 

:DRIV6_8888
if 
  not is_car_dead 34@
goto_if_false @DRIV6_9157
104@ = 0

:DRIV6_8911
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9157
if and
  not is_car_dead 52@(104@,14i)
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9143
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9143
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_9019
if 
  106@ >= 2
goto_if_false @DRIV6_9051
106@ -= 2
goto @DRIV6_9019

:DRIV6_9051
if 
  106@ == 0
goto_if_false @DRIV6_9097
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9097
if 
  106@ == 1
goto_if_false @DRIV6_9143
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9143
104@ += 1
goto @DRIV6_8911

:DRIV6_9157
return 

:DRIV6_9159
if 
  not is_car_dead 34@
goto_if_false @DRIV6_9450
258@ = 1
42@, 43@, 44@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
45@, 46@, 47@ = get_offset_from_car_in_world_coords 34@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
104@ = 0

:DRIV6_9247
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  258@ == 1
goto_if_false @DRIV6_9425
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_9411
48@ = get_driver_of_car 52@(104@,14i)
if 
  48@ <> -1
goto_if_false @DRIV6_9411
if or
  locate_car_3d 52@(104@,14i) {x} 42@ {y} 43@ {z} 44@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  locate_car_3d 52@(104@,14i) {x} 45@ {y} 46@ {z} 47@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DRIV6_9411
258@ = 0

:DRIV6_9411
104@ += 1
goto @DRIV6_9247

:DRIV6_9425
if 
  258@ == 1
goto_if_false @DRIV6_9450
TIMERA = 0

:DRIV6_9450
return 

:DRIV6_9452
104@ = 0

:DRIV6_9459
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9766
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_9752
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_9578
task_car_drive_to_coord 66@(104@,14i) {vehicle} 52@(104@,14i) {x} -2148.6201 {y} 1063.98 {z} 79.73 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_char_keep_task 66@(104@,14i) {state} True
goto @DRIV6_9721

:DRIV6_9578
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9721
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9679
94@, 95@, 96@ = get_car_coordinates 52@(104@,14i)
warp_char_from_car_to_coord 80@(104@,14i) {x} 94@ {y} 95@ {z} -10.0
warp_char_into_car 80@(104@,14i) {vehicle} 52@(104@,14i)

:DRIV6_9679
task_car_drive_to_coord 80@(104@,14i) {vehicle} 52@(104@,14i) {x} -2148.6201 {y} 1063.98 {z} 79.73 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9721
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9752
set_char_keep_task 80@(104@,14i) {state} True

:DRIV6_9752
104@ += 1
goto @DRIV6_9459

:DRIV6_9766
return 

:DRIV6_9768
104@ = 0

:DRIV6_9775
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10124
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_10110
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_9924
task_look_at_char 66@(104@,14i) {target} $scplayer {time} 5000
if 
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9906
task_car_temp_action 66@(104@,14i) {vehicle} 52@(104@,14i) {actionId} TempAction.HandbrakeStraight {time} 2000000
goto @DRIV6_9924

:DRIV6_9906
task_enter_car_as_driver 66@(104@,14i) {vehicle} 52@(104@,14i) {time} -1

:DRIV6_9924
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_10110
task_look_at_char 80@(104@,14i) {target} $scplayer {time} 5000
if 
  210@(104@,14i) == 1
goto_if_false @DRIV6_10063
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_10038
task_car_temp_action 80@(104@,14i) {vehicle} 52@(104@,14i) {actionId} TempAction.HandbrakeStraight {time} 2000000
goto @DRIV6_10056

:DRIV6_10038
task_enter_car_as_driver 80@(104@,14i) {vehicle} 52@(104@,14i) {time} -1

:DRIV6_10056
goto @DRIV6_10110

:DRIV6_10063
if 
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_10110
task_enter_car_as_passenger 80@(104@,14i) {vehicle} 52@(104@,14i) {time} -1 {seat} SeatId.BikeRear

:DRIV6_10110
104@ += 1
goto @DRIV6_9775

:DRIV6_10124
return 

:DRIV6_10126
104@ = 0

:DRIV6_10133
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10193
delete_char 66@(104@,14i)
delete_char 80@(104@,14i)
delete_car 52@(104@,14i)
104@ += 1
goto @DRIV6_10133

:DRIV6_10193
return 

:DRIV6_10195
if 
  not is_car_dead 34@
goto_if_false @DRIV6_10218
lock_car_doors 34@ {lockStatus} CarLock.Locked

:DRIV6_10218
do_fade 1000 {direction} Fade.Out

:DRIV6_10225
if 
  get_fading_status 
goto_if_false @DRIV6_10249
wait 0
goto @DRIV6_10225

:DRIV6_10249
clear_area 38@ {y} 39@ {z} 40@ {radius} 100.0 {clearParticles} False
gosub @DRIV6_10126
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 330

:DRIV6_10297
if 
  not has_model_loaded 330
goto_if_false @DRIV6_10324
wait 0
goto @DRIV6_10297

:DRIV6_10324
267@ = create_object_no_offset 330 {x} -1561.4 {y} -2721.1001 {z} 47.57
set_object_visible 267@ {state} False
task_pick_up_object $scplayer {object} 267@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  not is_car_dead 34@
goto_if_false @DRIV6_10466
car_set_idle 34@
set_car_coordinates 34@ {x} 38@ {y} 39@ {z} -100.0
set_car_heading 34@ {heading} 55.5
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_10466
request_animation "CAR_CHAT"
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200

:DRIV6_10485
if or
  not has_animation_loaded "CAR_CHAT"
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRIV6_10523
wait 0
goto @DRIV6_10485

:DRIV6_10523
set_fixed_camera_position -1573.6 {y} -2743.74 {z} 49.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1573.0 {y} -2743.3899 {z} 49.05 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV6_10581
if 
  get_fading_status 
goto_if_false @DRIV6_10628
if 
  does_object_exist 267@
goto_if_false @DRIV6_10617
set_object_visible 267@ {state} False

:DRIV6_10617
wait 0
goto @DRIV6_10581

:DRIV6_10628
259@ = 1
skip_cutscene_start_internal @DRIV6_12111
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:DRIV6_10810
if 
  3000 > TIMERA
goto_if_false @DRIV6_10863
if 
  does_object_exist 267@
goto_if_false @DRIV6_10852
set_object_visible 267@ {state} False

:DRIV6_10852
wait 0
goto @DRIV6_10810

:DRIV6_10863
set_object_visible 267@ {state} True
clear_mission_audio MissionAudioSlot.Slot3
135@ = 1
gosub @DRIV6_12213
TIMERA = 0
102@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_10939
103@ = get_sequence_progress $scplayer
goto @DRIV6_10946

:DRIV6_10939
103@ = 2

:DRIV6_10946
if or
  2 > 103@
  132@ == 0
goto_if_false @DRIV6_11059
wait 0
if 
  TIMERA > 1000
goto_if_false @DRIV6_11001
gosub @DRIV6_12532

:DRIV6_11001
102@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11045
103@ = get_sequence_progress $scplayer
goto @DRIV6_11052

:DRIV6_11045
103@ = 2

:DRIV6_11052
goto @DRIV6_10946

:DRIV6_11059
if 
  not is_car_dead 34@
goto_if_false @DRIV6_11172
107@, 108@, 109@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.4 {yOffset} 0.51 {zOffset} 0.65
set_fixed_camera_position 107@ {y} 108@ {z} 109@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
107@, 108@, 109@ = get_offset_from_car_in_world_coords 34@ {xOffset} -0.13 {yOffset} 0.22 {zOffset} 0.54
point_camera_at_point 107@ {y} 108@ {z} 109@ {switchStyle} SwitchType.JumpCut

:DRIV6_11172
task_play_anim $scplayer {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRIV6_11217
if 
  1 >= 132@
goto_if_false @DRIV6_11253
wait 0
gosub @DRIV6_12532
goto @DRIV6_11217

:DRIV6_11253
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@

:DRIV6_11369
if 
  4 >= 132@
goto_if_false @DRIV6_11405
wait 0
gosub @DRIV6_12532
goto @DRIV6_11369

:DRIV6_11405
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@

:DRIV6_11521
if 
  5 >= 132@
goto_if_false @DRIV6_11597
wait 0
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_11590
start_char_facial_talk $scplayer {duration} 4000
134@ = 1

:DRIV6_11590
goto @DRIV6_11521

:DRIV6_11597
268@ = create_car 468 {x} -1565.89 {y} -2748.3201 {z} 48.21
set_car_heading 268@ {heading} 58.42
269@ = create_char_inside_car 268@ {pedType} PedType.Mission1 {modelId} 123
wait 1000
if and
  not is_char_dead 269@
  not is_car_dead 268@
goto_if_false @DRIV6_11702
task_car_drive_to_coord 269@ {vehicle} 268@ {x} -1574.23 {y} -2742.6201 {z} 48.2 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRIV6_11702
set_fixed_camera_position -1570.65 {y} -2748.3899 {z} 48.35 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1571.99 {y} -2745.26 {z} 48.29 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11850
102@ = get_script_task_status 269@ {taskId} 1489

:DRIV6_11780
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11850
wait 0
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11836
102@ = get_script_task_status 269@ {taskId} 1489
goto @DRIV6_11843

:DRIV6_11836
set_lvar_int_to_constant 102@ = 7

:DRIV6_11843
goto @DRIV6_11780

:DRIV6_11850
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11882
task_look_at_char 269@ {target} $scplayer {time} 3000
wait 3000

:DRIV6_11882
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11920
task_look_at_coord 269@ {x} -1572.73 {y} -2747.1201 {z} 48.2 {time} -2

:DRIV6_11920
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12034
wait 0
if 
  not is_char_dead 269@
goto_if_false @DRIV6_12013
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_12006
start_char_facial_talk 269@ {duration} 10000
134@ = 1

:DRIV6_12006
goto @DRIV6_12027

:DRIV6_12013
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
set_lvar_int_to_lvar_int 132@ = 133@

:DRIV6_12027
goto @DRIV6_11920

:DRIV6_12034
if and
  not is_char_dead 269@
  not is_car_dead 268@
goto_if_false @DRIV6_12099
stop_char_facial_talk 269@
clear_look_at 269@
task_car_drive_to_coord 269@ {vehicle} 268@ {x} -1630.35 {y} -2721.1699 {z} 48.62 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_12099
wait 3000
259@ = 0

:DRIV6_12111
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_12131

:DRIV6_12131
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot3
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
delete_char 269@
delete_car 268@
delete_object 267@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_car_dead 34@
goto_if_false @DRIV6_12196
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:DRIV6_12196
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV6_12213
switch_start 135@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DRIV6_12502 {caseNum1} 0 {caseLabel1} @DRIV6_12276 {caseNum2} 1 {caseLabel2} @DRIV6_12334 {caseNum3} -1 {caseLabel3} @DRIV6_12509 {caseNum4} -1 {caseLabel4} @DRIV6_12509 {caseNum5} -1 {caseLabel5} @DRIV6_12509 {caseNum6} -1 {caseLabel6} @DRIV6_12509 {caseNum7} -1 {caseLabel7} @DRIV6_12509

:DRIV6_12276
set_lvar_text_label 110@s = 'FAR5_AB'
set_lvar_text_label 112@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 30603
set_lvar_int_to_constant 125@ = 30602
133@ = 2
goto @DRIV6_12509

:DRIV6_12334
set_lvar_text_label 110@s = 'MTG02A'
set_lvar_text_label 112@s = 'MTG02B'
set_lvar_text_label 114@s = 'MTG02C'
set_lvar_text_label 116@s = 'MTG02D'
set_lvar_text_label 118@s = 'MTG02E'
set_lvar_text_label 120@s = 'MTG02F'
set_lvar_text_label 122@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 20008
set_lvar_int_to_constant 125@ = 20012
set_lvar_int_to_constant 126@ = 20009
set_lvar_int_to_constant 127@ = 20010
set_lvar_int_to_constant 128@ = 20013
set_lvar_int_to_constant 129@ = 20011
set_lvar_int_to_constant 130@ = 30602
133@ = 7
goto @DRIV6_12509

:DRIV6_12502
goto @DRIV6_12509

:DRIV6_12509
131@ = 0
132@ = 0
134@ = 0
return 

:DRIV6_12532
if or
  131@ == 0
  131@ == 1
goto_if_false @DRIV6_12602
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12602
if 
  TIMERB > 1000
goto_if_false @DRIV6_12602
gosub @DRIV6_12667

:DRIV6_12602
if 
  131@ == 2
goto_if_false @DRIV6_12665
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV6_12665
131@ = 0
132@ += 1
134@ = 0
clear_prints 
TIMERB = 0

:DRIV6_12665
return 

:DRIV6_12667
if 
  131@ == 0
goto_if_false @DRIV6_12703
load_mission_audio MissionAudioSlot.Slot1 {audioId} 124@(132@,7i)
131@ = 1

:DRIV6_12703
if 
  131@ == 1
goto_if_false @DRIV6_12761
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV6_12761
print_now 110@(132@,7s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
131@ = 2

:DRIV6_12761
return 

:DRIV6_12763
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV6_12781
$flag_wuzi_mission_counter += 1
register_mission_passed 'FAR_5'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 8000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 8000
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:DRIV6_12845
if 
  not is_car_dead 34@
goto_if_false @DRIV6_12883
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_can_be_visibly_damaged 34@ {state} True

:DRIV6_12883
mark_model_as_no_longer_needed 489
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 330
remove_animation "CAR_CHAT"
remove_blip 262@
remove_blip 263@
remove_blip 264@
remove_blip 265@
gosub @DRIV6_9452
delete_checkpoint 41@
clear_onscreen_counter $d6_door_health
clear_sequence_task 101@
switch_car_generator $5279 {amount} 101
switch_car_generator $5280 {amount} 101
switch_car_generator $5281 {amount} 101
$timer_mobile_start = get_game_timer 
set_car_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 56---------------
// Originally: Amphibious Assault

:WUZI2
script_name 'WUZI2'
gosub @WUZI2_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI2_38
gosub @WUZI2_26542

:WUZI2_38
gosub @WUZI2_26652
terminate_this_script 

:WUZI2_47
register_mission_given 
$onmission = 1
257@ = get_max_wanted_level 
load_mission_text 'WUZI2'
$guard_limit_W2 = get_int_stat StatId.UnderwaterBreathStamina
if 
  not is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI2_242
if 
  50 >= $guard_limit_W2
goto_if_false @WUZI2_242
$guard_limit_W2 = 1
set_area_visible 1
load_cutscene 'W2_ALT'

:WUZI2_135
if 
  not has_cutscene_loaded 
goto_if_false @WUZI2_159
wait 0
goto @WUZI2_135

:WUZI2_159
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI2_168
if 
  not has_cutscene_finished 
goto_if_false @WUZI2_192
wait 0
goto @WUZI2_168

:WUZI2_192
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:WUZI2_205
if 
  get_fading_status 
goto_if_false @WUZI2_229
wait 0
goto @WUZI2_205

:WUZI2_229
clear_cutscene 
set_area_visible 0
goto @WUZI2_26652

:WUZI2_242
$guard_limit_W2 = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 1
load_cutscene 'WOOZIE2'

:WUZI2_275
if 
  not has_cutscene_loaded 
goto_if_false @WUZI2_299
wait 0
goto @WUZI2_275

:WUZI2_299
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI2_308
if 
  not has_cutscene_finished 
goto_if_false @WUZI2_332
wait 0
goto @WUZI2_308

:WUZI2_332
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:WUZI2_345
if 
  get_fading_status 
goto_if_false @WUZI2_369
wait 0
goto @WUZI2_345

:WUZI2_369
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
request_model 121
request_model 122
request_model 123
request_model 454
request_model 355
request_model 335
request_model #A51_SPOTBASE
request_model #A51_SPOTHOUSING
request_model #A51_SPOTBULB
request_animation "DAM_JUMP"

:WUZI2_441
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
  not has_model_loaded 454
  not has_model_loaded 355
  not has_model_loaded 335
goto_if_false @WUZI2_490
wait 0
goto @WUZI2_441

:WUZI2_490
if or
  not has_model_loaded #A51_SPOTBASE
  not has_model_loaded #A51_SPOTHOUSING
  not has_model_loaded #A51_SPOTBULB
  not has_animation_loaded "DAM_JUMP"
goto_if_false @WUZI2_539
wait 0
goto @WUZI2_490

:WUZI2_539
34@ = load_char_decision_maker DecisionMakerType.Steal
35@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
force_weather_now WeatherType.FoggySf
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_char_coordinates $scplayer {x} -2153.6111 {y} 645.31 {z} 51.3516
set_char_heading $scplayer {heading} 270.0
do_fade 1500 {direction} Fade.In
36@ = add_blip_for_coord -1641.995 {y} 1309.217 {z} 6.1764
print_now 'WZI2_1' {time} 8000 {flag} 1
40@ = 0
253@ = 0
if 
  253@ == 1
goto_if_false @WUZI2_910
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 290@($d6_player_reached_sixth_creation_pt,2i)
create_char PedType.CivMale {modelId} 121 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 436@($d6_player_reached_sixth_creation_pt,7i)
add_blip_for_char 436@($d6_player_reached_sixth_creation_pt,7i) {var_handle} 443@($d6_player_reached_sixth_creation_pt,8i)
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 413@($d6_player_reached_sixth_creation_pt,2i)
create_char PedType.CivMale {modelId} 121 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 417@($d6_player_reached_sixth_creation_pt,6i)
259@ = add_blip_for_char 417@($d6_player_reached_sixth_creation_pt,6i)
create_searchlight 0.0 {y} 0.0 {z} 0.0 {xPoint} 0.0 {yPoint} 0.0 {zPoint} 0.0 {radius} 0.0 {radiusPoint} 0.0 {var_handle} 383@($d6_player_reached_sixth_creation_pt,6i)
276@ = create_checkpoint CheckpointType.Torus {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0

:WUZI2_910
set_lvar_text_label 127@s = 'WUZ2_AA'
set_lvar_int_to_constant 58@ = 39200
set_lvar_text_label 129@s = 'WUZ2_NA'
set_lvar_int_to_constant 59@ = 39236
set_lvar_text_label 131@s = 'WUZ2_ZA'
set_lvar_int_to_constant 60@ = 39283
set_lvar_text_label 133@s = 'WUZ2_AB'
set_lvar_int_to_constant 61@ = 39201
set_lvar_text_label 135@s = 'WUZ2_NB'
set_lvar_int_to_constant 62@ = 39237
set_lvar_text_label 137@s = 'WUZ2_ZB'
set_lvar_int_to_constant 63@ = 39284
set_lvar_text_label 139@s = 'WUZ2_AC'
set_lvar_int_to_constant 64@ = 39202
set_lvar_text_label 141@s = 'WUZ2_NC'
set_lvar_int_to_constant 65@ = 39238
set_lvar_text_label 143@s = 'WUZ2_ZC'
set_lvar_int_to_constant 66@ = 39285
set_lvar_text_label 145@s = 'WUZ2_BA'
set_lvar_int_to_constant 67@ = 39203
set_lvar_text_label 147@s = 'WUZ2_OA'
set_lvar_int_to_constant 68@ = 39239
set_lvar_text_label 149@s = 'WUZ2_ZD'
set_lvar_int_to_constant 69@ = 39286
set_lvar_text_label 151@s = 'WUZ2_BB'
set_lvar_int_to_constant 70@ = 39204
set_lvar_text_label 153@s = 'WUZ2_OB'
set_lvar_int_to_constant 71@ = 39240
set_lvar_text_label 155@s = 'WUZ2_ZE'
set_lvar_int_to_constant 72@ = 39287
set_lvar_text_label 157@s = 'WUZ2_BC'
set_lvar_int_to_constant 73@ = 39205
set_lvar_text_label 159@s = 'WUZ2_OC'
set_lvar_int_to_constant 74@ = 39241
set_lvar_text_label 161@s = 'WUZ2_ZF'
set_lvar_int_to_constant 75@ = 39288
set_lvar_text_label 163@s = 'WUZ2_CA'
set_lvar_int_to_constant 76@ = 39206
set_lvar_text_label 165@s = 'WUZ2_PA'
set_lvar_int_to_constant 77@ = 39242
set_lvar_text_label 167@s = 'WUZ2_ZG'
set_lvar_int_to_constant 78@ = 39289
set_lvar_text_label 169@s = 'WUZ2_CB'
set_lvar_int_to_constant 79@ = 39207
set_lvar_text_label 171@s = 'WUZ2_PB'
set_lvar_int_to_constant 80@ = 39243
set_lvar_text_label 173@s = 'WUZ2_ZH'
set_lvar_int_to_constant 81@ = 39290
set_lvar_text_label 175@s = 'WUZ2_CC'
set_lvar_int_to_constant 82@ = 39208
set_lvar_text_label 177@s = 'WUZ2_PC'
set_lvar_int_to_constant 83@ = 39244
set_lvar_text_label 179@s = 'WUZ2_ZJ'
set_lvar_int_to_constant 84@ = 39291
set_lvar_text_label 181@s = 'WUZ2_DA'
set_lvar_int_to_constant 85@ = 39209
set_lvar_text_label 183@s = 'WUZ2_QA'
set_lvar_int_to_constant 86@ = 39245
set_lvar_text_label 185@s = 'WUZ2_ZK'
set_lvar_int_to_constant 87@ = 39292
set_lvar_text_label 187@s = 'WUZ2_DB'
set_lvar_int_to_constant 88@ = 39210
set_lvar_text_label 189@s = 'WUZ2_QB'
set_lvar_int_to_constant 89@ = 39246
set_lvar_text_label 191@s = 'WUZ2_ZL'
set_lvar_int_to_constant 90@ = 39293
set_lvar_text_label 193@s = 'WUZ2_DC'
set_lvar_int_to_constant 91@ = 39211
set_lvar_text_label 195@s = 'WUZ2_QC'
set_lvar_int_to_constant 92@ = 39247
set_lvar_text_label 197@s = 'WUZ2_ZM'
set_lvar_int_to_constant 93@ = 39294
set_lvar_text_label 199@s = 'WUZ2_EA'
set_lvar_int_to_constant 94@ = 39212
set_lvar_text_label 201@s = 'WUZ2_RA'
set_lvar_int_to_constant 95@ = 39248
set_lvar_text_label 203@s = 'WUZ2_ZN'
set_lvar_int_to_constant 96@ = 39295
set_lvar_text_label 205@s = 'WUZ2_EB'
set_lvar_int_to_constant 97@ = 39213
set_lvar_text_label 207@s = 'WUZ2_RB'
set_lvar_int_to_constant 98@ = 39249
set_lvar_text_label 209@s = 'WUZ2_ZO'
set_lvar_int_to_constant 99@ = 39296
set_lvar_text_label 211@s = 'WUZ2_EC'
set_lvar_int_to_constant 100@ = 39214
set_lvar_text_label 213@s = 'WUZ2_RC'
set_lvar_int_to_constant 101@ = 39250
set_lvar_text_label 215@s = 'WUZ2_ZP'
set_lvar_int_to_constant 102@ = 39297
set_lvar_text_label 217@s = 'WUZ2_FA'
set_lvar_int_to_constant 103@ = 39215
set_lvar_text_label 219@s = 'WUZ2_SA'
set_lvar_int_to_constant 104@ = 39251
set_lvar_text_label 221@s = 'WUZ2_ZQ'
set_lvar_int_to_constant 105@ = 39298
set_lvar_text_label 223@s = 'WUZ2_FB'
set_lvar_int_to_constant 106@ = 39216
set_lvar_text_label 225@s = 'WUZ2_SB'
set_lvar_int_to_constant 107@ = 39252
set_lvar_text_label 227@s = 'WUZ2_ZR'
set_lvar_int_to_constant 108@ = 39299
set_lvar_text_label 229@s = 'WUZ2_FC'
set_lvar_int_to_constant 109@ = 39217
set_lvar_text_label 231@s = 'WUZ2_SC'
set_lvar_int_to_constant 110@ = 39253
set_lvar_text_label 233@s = 'WUZ2_ZS'
set_lvar_int_to_constant 111@ = 39300
set_lvar_text_label 235@s = 'WUZ2_GA'
set_lvar_int_to_constant 112@ = 39218
set_lvar_text_label 237@s = 'WUZ2_TA'
set_lvar_int_to_constant 113@ = 39254
set_lvar_text_label 239@s = 'WUZ2_ZT'
set_lvar_int_to_constant 114@ = 39301
set_lvar_text_label 241@s = 'WUZ2_GB'
set_lvar_int_to_constant 115@ = 39219
set_lvar_text_label 243@s = 'WUZ2_TB'
set_lvar_int_to_constant 116@ = 39255
set_lvar_text_label 245@s = 'WUZ2_ZU'
set_lvar_int_to_constant 117@ = 39302
set_lvar_text_label 247@s = 'WUZ2_GC'
set_lvar_int_to_constant 118@ = 39220
set_lvar_text_label 249@s = 'WUZ2_TC'
set_lvar_int_to_constant 119@ = 39256
set_lvar_text_label 251@s = 'WUZ2_ZV'
set_lvar_int_to_constant 120@ = 39303
121@ = generate_random_int_in_range 0 {max} 3
122@ = generate_random_int_in_range 0 {max} 3
123@ = 0
124@ = 10

:WUZI2_2454
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI2_2480
goto @WUZI2_26588

:WUZI2_2480
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -1641.995 {y} 1309.217 {z} 6.1764 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_2547
set_player_control $player1 {state} False
remove_blip 36@
goto @WUZI2_2554

:WUZI2_2547
goto @WUZI2_2454

:WUZI2_2554
do_fade 500 {direction} Fade.Out

:WUZI2_2561
if 
  get_fading_status 
goto_if_false @WUZI2_2585
wait 0
goto @WUZI2_2561

:WUZI2_2585
clear_wanted_level $player1
set_max_wanted_level 0
clear_area_of_cars -1648.875 {leftBottomY} 1319.2419 {leftBottomZ} 6.0 {rightTopX} -1636.3669 {rightTopY} 1297.54 {rightTopZ} 9.0
clear_area_of_chars -1648.875 {leftBottomY} 1319.2419 {leftBottomZ} 6.0 {rightTopX} -1636.3669 {rightTopY} 1297.54 {rightTopZ} 9.0
gosub @WUZI2_8379
gosub @WUZI2_18697
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI2_2715
warp_char_from_car_to_coord $scplayer {x} -1640.9 {y} 1310.6 {z} 6.1797
goto @WUZI2_2735

:WUZI2_2715
set_char_coordinates $scplayer {x} -1640.9 {y} 1310.6 {z} 6.1797

:WUZI2_2735
set_char_heading $scplayer {heading} 315.0
switch_widescreen True
set_player_control $player1 {state} False
47@ = 0
load_scene -1455.999 {y} 1529.144 {z} 19.179
set_fixed_camera_position -1358.484 {y} 1468.994 {z} 18.4397 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1359.312 {y} 1469.54 {z} 18.3092 {switchStyle} SwitchType.JumpCut
gosub @WUZI2_18118
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
do_fade 500 {direction} Fade.In

:WUZI2_2852
if 
  get_fading_status 
goto_if_false @WUZI2_2876
wait 0
goto @WUZI2_2852

:WUZI2_2876
skip_cutscene_start_internal @WUZI2_3040
print_now 'WZI2_2' {time} 6500 {flag} 1
TIMERA = 0

:WUZI2_2906
if 
  6500 > TIMERA
goto_if_false @WUZI2_2936
wait 0
goto @WUZI2_2906

:WUZI2_2936
set_fixed_camera_position -1511.427 {y} 1374.075 {z} 5.9802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1511.29 {y} 1373.103 {z} 5.7898 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_3' {time} 6500 {flag} 1
TIMERA = 0

:WUZI2_3010
if 
  6500 > TIMERA
goto_if_false @WUZI2_3040
wait 0
goto @WUZI2_3010

:WUZI2_3040
skip_cutscene_end 
clear_prints 
skip_cutscene_start_internal @WUZI2_3877
set_fixed_camera_position -1642.439 {y} 1308.882 {z} 11.1649 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1641.9139 {y} 1309.402 {z} 10.4912 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:WUZI2_3109
if 
  500 > TIMERA
goto_if_false @WUZI2_3139
wait 0
goto @WUZI2_3109

:WUZI2_3139
task_play_anim $scplayer {animationName} "SF_JUMPWALL" {animationFile} "DAM_JUMP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
TIMERA = 0

:WUZI2_3189
if 
  1000 > TIMERA
goto_if_false @WUZI2_3219
wait 0
goto @WUZI2_3189

:WUZI2_3219
set_time_scale 0.2
set_fixed_camera_position -1636.6639 {y} 1316.354 {z} -3.7183 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1636.729 {y} 1315.749 {z} -2.925 {switchStyle} SwitchType.JumpCut
$z = -2.925
TIMERA = 0
254@ = 0

:WUZI2_3301
if 
  $z > -3.2406
goto_if_false @WUZI2_3570
wait 0
$z -= 0.003
if 
  -3.2406 > $z
goto_if_false @WUZI2_3367
$z = -3.2406

:WUZI2_3367
point_camera_at_point -1636.729 {y} 1315.749 {z} $z {switchStyle} SwitchType.JumpCut
if and
  TIMERA > 200
  2 > 254@
goto_if_false @WUZI2_3563
if 
  254@ == 0
goto_if_false @WUZI2_3546
$x = get_water_height_at_coords -1637.354 {y} 1314.11 {waves} True
255@ = create_fx_system "WATER_SPLASH" {x} -1637.354 {y} 1314.11 {z} $x {ignoreBoundingChecks} True
256@ = create_fx_system "WATER_RIPPLES" {x} -1637.354 {y} 1314.11 {z} $x {ignoreBoundingChecks} True
report_mission_audio_event_at_position -1637.354 {y} 1314.11 {z} $x {soundId} ScriptSound.SoundPedHitWaterSplash
254@ += 1
goto @WUZI2_3563

:WUZI2_3546
play_fx_system 255@
play_fx_system 256@
254@ += 1

:WUZI2_3563
goto @WUZI2_3301

:WUZI2_3570
$z = 0.2

:WUZI2_3580
if 
  0.5 > $z
goto_if_false @WUZI2_3658
wait 0
$z += 0.014
if 
  $z > 0.5
goto_if_false @WUZI2_3646
$z = 0.5

:WUZI2_3646
set_time_scale $z
goto @WUZI2_3580

:WUZI2_3658
kill_fx_system 255@
kill_fx_system 256@

:WUZI2_3668
if 
  is_char_playing_anim $scplayer {animationName} "SF_JUMPWALL"
goto_if_false @WUZI2_3708
wait 0
goto @WUZI2_3668

:WUZI2_3708
set_char_coordinates $scplayer {x} -1636.33 {y} 1315.36 {z} -1.0
set_char_heading $scplayer {heading} 285.0
TIMERA = 0

:WUZI2_3745
if 
  500 > TIMERA
goto_if_false @WUZI2_3775
wait 0
goto @WUZI2_3745

:WUZI2_3775
set_time_scale 1.0
set_fixed_camera_position -1641.399 {y} 1314.413 {z} 1.3246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1640.422 {y} 1314.574 {z} 1.1792 {switchStyle} SwitchType.JumpCut
47@ = 1
TIMERA = 0

:WUZI2_3847
if 
  1500 > TIMERA
goto_if_false @WUZI2_3877
wait 0
goto @WUZI2_3847

:WUZI2_3877
skip_cutscene_end 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
kill_fx_system 255@
kill_fx_system 256@
switch_widescreen False
set_player_control $player1 {state} True
set_always_draw_3d_markers True
277@ = 0
278@ = 0
280@ = -1625.651
281@ = 1317.92
279@ = 1
if 
  47@ == 0
goto_if_false @WUZI2_4018
set_char_coordinates $scplayer {x} -1636.33 {y} 1315.36 {z} -1.0
set_char_heading $scplayer {heading} 285.0
set_time_scale 1.0
restore_camera_jumpcut 
set_camera_behind_player 
goto @WUZI2_4020

:WUZI2_4018
restore_camera 

:WUZI2_4020
remove_animation "DAM_JUMP"
47@ = 0
clear_prints 
print_now 'WZI2_8' {time} 8000 {flag} 1
36@ = add_blip_for_coord -1449.642 {y} 1501.135 {z} 0.7366
$swim_stamina_check = 0
$help_text_switch_W2 = 0
set_lvar_text_label 260@s = 'WZI2_A0'
set_lvar_text_label 262@s = 'WZI2_A1'
set_lvar_text_label 264@s = 'WZI2_A2'
set_lvar_text_label 266@s = 'WZI2_A3'
set_lvar_text_label 268@s = 'WZI2_A4'
set_lvar_text_label 270@s = 'WZI2_A5'
set_lvar_text_label 272@s = 'WZI2_A6'
set_lvar_text_label 274@s = 'WZI2_A7'
if 
  379@ == 0
goto_if_false @WUZI2_4248
258@ = create_pickup_with_ammo 335 {pickupType} PickupType.Once {ammo} 1 {x} -1595.0 {y} 1345.0 {z} -7.5

:WUZI2_4248
TIMERB = 0

:WUZI2_4255
wait 0
gosub @WUZI2_16055
if 
  373@ == 2
goto_if_false @WUZI2_4296
remove_blip 259@
goto @WUZI2_7278

:WUZI2_4296
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_4328
goto @WUZI2_6224

:WUZI2_4328
switch_start $swim_stamina_check {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5276 {caseNum1} 0 {caseLabel1} @WUZI2_4391 {caseNum2} 1 {caseLabel2} @WUZI2_4880 {caseNum3} 2 {caseLabel3} @WUZI2_5040 {caseNum4} 3 {caseLabel4} @WUZI2_5217 {caseNum5} -1 {caseLabel5} @WUZI2_5276 {caseNum6} -1 {caseLabel6} @WUZI2_5276 {caseNum7} -1 {caseLabel7} @WUZI2_5276

:WUZI2_4391
if and
  is_char_in_area_3d $scplayer {leftBottomX} -1602.782 {leftBottomY} 1320.688 {leftBottomZ} -8.0 {rightTopX} -1606.119 {rightTopY} 1331.51 {rightTopZ} 1.0 {drawSphere} False
  287@ == 0
goto_if_false @WUZI2_4759
switch_widescreen True
set_player_control $player1 {state} False
clear_help 
clear_prints 
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track -1600.998 {fromY} 1323.041 {fromZ} 1.9093 {toX} -1600.3149 {toY} 1322.4139 {toZ} -2.0672 {time} 6000 {ease} True
camera_set_vector_move -1598.525 {fromY} 1318.594 {fromZ} 2.3701 {toX} -1598.525 {toY} 1318.594 {toZ} -2.3701 {time} 6000 {ease} True
print_now 'WZI2_5' {time} 8000 {flag} 1
TIMERA = 0

:WUZI2_4568
if 
  800 > TIMERA
goto_if_false @WUZI2_4598
wait 0
goto @WUZI2_4568

:WUZI2_4598
skip_cutscene_start_internal @WUZI2_4717

:WUZI2_4605
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_4629
wait 0
goto @WUZI2_4605

:WUZI2_4629
TIMERA = 0

:WUZI2_4636
if 
  1500 > TIMERA
goto_if_false @WUZI2_4666
wait 0
goto @WUZI2_4636

:WUZI2_4666
set_fixed_camera_position -1598.525 {y} 1318.594 {z} 1.3701 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1599.181 {y} 1319.288 {z} 1.0744 {switchStyle} SwitchType.JumpCut

:WUZI2_4717
skip_cutscene_end 
clear_prints 
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
$swim_stamina_check += 1
TIMERB = 0
goto @WUZI2_4873

:WUZI2_4759
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1611.833 {leftBottomY} 1334.313 {leftBottomZ} 0.8012 {rightTopX} -1615.812 {rightTopY} 1329.394 {rightTopZ} -7.9862 {drawSphere} False
goto_if_false @WUZI2_4821
$swim_stamina_check = 3
goto @WUZI2_4873

:WUZI2_4821
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_4873
282@ = 0
goto @WUZI2_5983

:WUZI2_4873
goto @WUZI2_5276

:WUZI2_4880
if 
  is_char_in_angled_area_on_foot_3d $scplayer {leftBottomX} -1611.833 {leftBottomY} 1334.313 {leftBottomZ} 0.8012 {rightTopX} -1615.812 {rightTopY} 1329.394 {rightTopZ} -7.9862 {angle} 2.0 {drawSphere} False
goto_if_false @WUZI2_4981
if 
  287@ == 1
goto_if_false @WUZI2_4967
print_now 'WZI2_6' {time} 5000 {flag} 1

:WUZI2_4967
$swim_stamina_check += 1
goto @WUZI2_5033

:WUZI2_4981
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5033
282@ = 0
goto @WUZI2_5983

:WUZI2_5033
goto @WUZI2_5276

:WUZI2_5040
if 
  locate_char_on_foot_2d $scplayer {x} -1612.208 {y} 1349.552 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5158
clear_help 
if 
  379@ == 0
goto_if_false @WUZI2_5136
print_now 'WZI2_7' {time} 6000 {flag} 1
259@ = add_blip_for_pickup 258@
TIMERB = 0
goto @WUZI2_5144

:WUZI2_5136
TIMERB = 6001

:WUZI2_5144
$swim_stamina_check += 1
goto @WUZI2_5210

:WUZI2_5158
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5210
282@ = 0
goto @WUZI2_5983

:WUZI2_5210
goto @WUZI2_5276

:WUZI2_5217
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5269
282@ = 0
goto @WUZI2_5983

:WUZI2_5269
goto @WUZI2_5276

:WUZI2_5276
gosub @WUZI2_5297
gosub @WUZI2_18290
goto @WUZI2_4255

:WUZI2_5297
switch_start 278@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5487 {caseNum1} 0 {caseLabel1} @WUZI2_5360 {caseNum2} 1 {caseLabel2} @WUZI2_5466 {caseNum3} -1 {caseLabel3} @WUZI2_5487 {caseNum4} -1 {caseLabel4} @WUZI2_5487 {caseNum5} -1 {caseLabel5} @WUZI2_5487 {caseNum6} -1 {caseLabel6} @WUZI2_5487 {caseNum7} -1 {caseLabel7} @WUZI2_5487

:WUZI2_5360
if 
  locate_char_on_foot_2d $scplayer {x} 280@ {y} 281@ {xRadius} 4.0 {yRadius} 4.0 {drawSphere} 279@
goto_if_false @WUZI2_5459
delete_checkpoint 276@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
if 
  6 > 277@
goto_if_false @WUZI2_5452
278@ += 1
goto @WUZI2_5459

:WUZI2_5452
278@ = -1

:WUZI2_5459
goto @WUZI2_5487

:WUZI2_5466
gosub @WUZI2_5489
278@ -= 1
goto @WUZI2_5487

:WUZI2_5487
return 

:WUZI2_5489
277@ += 1
switch_start 277@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5981 {caseNum1} 1 {caseLabel1} @WUZI2_5559 {caseNum2} 2 {caseLabel2} @WUZI2_5593 {caseNum3} 3 {caseLabel3} @WUZI2_5665 {caseNum4} 4 {caseLabel4} @WUZI2_5699 {caseNum5} 5 {caseLabel5} @WUZI2_5803 {caseNum6} 6 {caseLabel6} @WUZI2_5837 {caseNum7} 7 {caseLabel7} @WUZI2_5909

:WUZI2_5559
280@ = -1604.522
281@ = 1312.674
279@ = 1
goto @WUZI2_5981

:WUZI2_5593
280@ = -1611.557
281@ = 1330.7889
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -2.2294 {pointX} -1610.672 {pointY} 1330.325 {pointZ} -2.2294 {radius} 0.8
279@ = 0
goto @WUZI2_5981

:WUZI2_5665
280@ = -1626.098
281@ = 1343.811
279@ = 1
goto @WUZI2_5981

:WUZI2_5699
if 
  379@ > 0
goto_if_false @WUZI2_5796
280@ = -1596.333
281@ = 1345.053
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -6.2933 {pointX} -1597.2729 {pointY} 1345.396 {pointZ} -6.2933 {radius} 0.8
279@ = 0
goto @WUZI2_5981
goto @WUZI2_5803

:WUZI2_5796
277@ += 1

:WUZI2_5803
280@ = -1576.722
281@ = 1338.4771
279@ = 1
goto @WUZI2_5981

:WUZI2_5837
280@ = -1559.1379
281@ = 1333.954
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -5.3882 {pointX} -1560.119 {pointY} 1334.147 {pointZ} -5.3819 {radius} 1.2
279@ = 0
goto @WUZI2_5981

:WUZI2_5909
280@ = -1548.2159
281@ = 1342.198
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -7.0752 {pointX} -1548.608 {pointY} 1341.277 {pointZ} -7.0752 {radius} 1.2
279@ = 0
goto @WUZI2_5981

:WUZI2_5981
return 

:WUZI2_5983
wait 0
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_6019
goto @WUZI2_6224

:WUZI2_6019
if 
  287@ == 0
goto_if_false @WUZI2_6154
if 
  282@ == 0
goto_if_false @WUZI2_6147
if 
  not is_char_in_angled_area_on_foot_3d $scplayer {leftBottomX} -1558.932 {leftBottomY} 1338.285 {leftBottomZ} -5.0 {rightTopX} -1563.078 {rightTopY} 1329.29 {rightTopZ} 5.0 {angle} 10.0 {drawSphere} False
goto_if_false @WUZI2_6140
if 
  289@ == 0
goto_if_false @WUZI2_6133
goto @WUZI2_6224

:WUZI2_6133
goto @WUZI2_6147

:WUZI2_6140
282@ = 1

:WUZI2_6147
goto @WUZI2_6217

:WUZI2_6154
if 
  282@ == 1
goto_if_false @WUZI2_6217
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_6217
282@ = 0

:WUZI2_6217
goto @WUZI2_5983

:WUZI2_6224
$y_grid_pos_W2 = -2
clear_help 
clear_prints 
remove_blip 259@
delete_checkpoint 276@
set_player_control $player1 {state} False
switch_widescreen True
if 
  289@ <> 2
goto_if_false @WUZI2_6823
set_camera_behind_player 
TIMERA = 0

:WUZI2_6283
if 
  500 > TIMERA
goto_if_false @WUZI2_6313
wait 0
goto @WUZI2_6283

:WUZI2_6313
51@, 52@, 53@ = get_active_camera_coordinates 
54@, 55@, 56@ = get_active_camera_point_at 
if 
  not is_car_dead 291@
goto_if_false @WUZI2_6365
$x, $y, $z = get_car_coordinates 291@

:WUZI2_6365
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track 54@ {fromY} 55@ {fromZ} 56@ {toX} $x {toY} $y {toZ} $z {time} 3500 {ease} True
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 3500 {ease} True
print_now 'WZI2_40' {time} 8000 {flag} 1
TIMERA = 0

:WUZI2_6448
if 
  1000 > TIMERA
goto_if_false @WUZI2_6478
wait 0
goto @WUZI2_6448

:WUZI2_6478
skip_cutscene_start_internal @WUZI2_6814
wait 0

:WUZI2_6489
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6513
wait 0
goto @WUZI2_6489

:WUZI2_6513
if 
  not is_car_dead 290@
goto_if_false @WUZI2_6543
$player_x, $player_y, $player_z = get_car_coordinates 290@

:WUZI2_6543
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track $x {fromY} $y {fromZ} $z {toX} $player_x {toY} $player_y {toZ} $player_z {time} 3000 {ease} False
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 3000 {ease} False
wait 0

:WUZI2_6607
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6645
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6607

:WUZI2_6645
print_now 'WZI2_41' {time} 8000 {flag} 1
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track $player_x {fromY} $player_y {fromZ} $player_z {toX} 54@ {toY} 55@ {toZ} 56@ {time} 4500 {ease} True
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 4500 {ease} True
wait 0

:WUZI2_6725
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6763
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6725

:WUZI2_6763
TIMERA = 0

:WUZI2_6770
if 
  1000 > TIMERA
goto_if_false @WUZI2_6814
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6770

:WUZI2_6814
skip_cutscene_end 
goto @WUZI2_7040

:WUZI2_6823
skip_cutscene_start_internal @WUZI2_7038
set_fixed_camera_position -1568.7419 {y} 1385.366 {z} 5.9871 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1569.707 {y} 1385.126 {z} 5.8767 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_40' {time} 6000 {flag} 1
TIMERA = 0

:WUZI2_6904
if 
  6000 > TIMERA
goto_if_false @WUZI2_6934
wait 0
goto @WUZI2_6904

:WUZI2_6934
set_fixed_camera_position -1494.649 {y} 1350.358 {z} 6.0727 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1495.1639 {y} 1349.516 {z} 5.9146 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_41' {time} 6000 {flag} 1
TIMERA = 0

:WUZI2_7008
if 
  6000 > TIMERA
goto_if_false @WUZI2_7038
wait 0
goto @WUZI2_7008

:WUZI2_7038
skip_cutscene_end 

:WUZI2_7040
print_now 'WZI2_8' {time} 6000 {flag} 1
if 
  not is_car_dead 290@
goto_if_false @WUZI2_7087
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_7087
if 
  not is_car_dead 291@
goto_if_false @WUZI2_7118
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_7118
407@ = add_blip_for_searchlight 383@
408@ = add_blip_for_searchlight 384@
409@ = add_blip_for_searchlight 385@
410@ = add_blip_for_searchlight 386@
if 
  not is_car_dead 413@
goto_if_false @WUZI2_7181
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_7181
if 
  not is_car_dead 414@
goto_if_false @WUZI2_7212
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_7212
print_now 'WZI2_8' {time} 6000 {flag} 1
$player_status_W2 = 1
288@ = 0
$player_breath_W2 = 0
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
set_player_control $player1 {state} True
switch_widescreen False
283@ = 0

:WUZI2_7278
wait 0
37@ = get_game_timer 
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 39@
set_lvar_int_to_lvar_int 39@ = 37@
add_int_lvar_to_int_lvar 288@ += 38@
add_int_lvar_to_int_var $7267[0] += 38@
add_int_lvar_to_int_var $7267[1] += 38@
if 
  373@ <> 2
goto_if_false @WUZI2_7459
gosub @WUZI2_8017
gosub @WUZI2_9364
gosub @WUZI2_12194
gosub @WUZI2_13003
gosub @WUZI2_14422
if 
  $attack_status_W2 > 35
goto_if_false @WUZI2_7438
if 
  284@ == 0
goto_if_false @WUZI2_7431
284@ = 1

:WUZI2_7431
gosub @WUZI2_20108

:WUZI2_7438
gosub @WUZI2_18290
gosub @WUZI2_16055
goto @WUZI2_7466

:WUZI2_7459
gosub @WUZI2_16700

:WUZI2_7466
gosub @WUZI2_20987
if 
  283@ == 0
goto_if_false @WUZI2_7597
if 
  is_char_in_water $scplayer
goto_if_false @WUZI2_7590
if 
  287@ == 0
goto_if_false @WUZI2_7590
if 
  locate_char_on_foot_2d $scplayer {x} -1447.1281 {y} 1501.241 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @WUZI2_7590
clear_help 
print_help_forever 'WZI2_C0'
TIMERB = 0
283@ += 1

:WUZI2_7590
goto @WUZI2_8003

:WUZI2_7597
if 
  283@ == 1
goto_if_false @WUZI2_7723
if 
  TIMERB > 8000
goto_if_false @WUZI2_7636
clear_help 

:WUZI2_7636
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_7716
if 
  locate_char_on_foot_3d $scplayer {x} -1449.642 {y} 1501.135 {z} 0.7366 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @WUZI2_7716
clear_help 
gosub @WUZI2_22319
283@ += 1

:WUZI2_7716
goto @WUZI2_8003

:WUZI2_7723
gosub @WUZI2_23872
gosub @WUZI2_24874
gosub @WUZI2_25427
if 
  48@ == 0
goto_if_false @WUZI2_7948
if 
  locate_char_on_foot_3d $scplayer {x} -1372.733 {y} 1495.55 {z} 0.8578 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_7941
if 
  522@ <> 2
goto_if_false @WUZI2_7925
print_now 'WZI2_30' {time} 1000 {flag} 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WUZI2_7918
clear_prints 
print_now 'WZI2_32' {time} 6000 {flag} 1
remove_blip 36@
36@ = add_blip_for_coord -1508.558 {y} 1296.067 {z} 0.397
48@ = 1
gosub @WUZI2_18207

:WUZI2_7918
goto @WUZI2_7941

:WUZI2_7925
print_now 'WZI2_31' {time} 3000 {flag} 1

:WUZI2_7941
goto @WUZI2_8003

:WUZI2_7948
if 
  locate_char_on_foot_3d $scplayer {x} -1508.558 {y} 1296.067 {z} 0.397 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_8003
goto @WUZI2_26588

:WUZI2_8003
gosub @WUZI2_21524
goto @WUZI2_7278

:WUZI2_8017
287@ = 0
286@ = 0
if 
  is_char_swimming $scplayer
goto_if_false @WUZI2_8329
285@ = get_char_swim_state $scplayer
if 
  is_int_lvar_equal_to_constant 285@ == 4
goto_if_false @WUZI2_8119
287@ = 1
if 
  0 >= $y_grid_pos_W2
goto_if_false @WUZI2_8112
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_8112
goto @WUZI2_8144

:WUZI2_8119
if 
  is_int_lvar_equal_to_constant 285@ == 2
goto_if_false @WUZI2_8144
286@ = 1

:WUZI2_8144
if 
  289@ == 1
goto_if_false @WUZI2_8322
if or
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1559.287 {leftBottomY} 1337.199 {rightTopX} -1562.583 {rightTopY} 1327.257 {angle} -62.9096 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1590.327 {leftBottomY} 1336.881 {rightTopX} -1607.2061 {rightTopY} 1307.5649 {angle} -37.0915 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1616.574 {leftBottomY} 1319.3361 {rightTopX} -1632.86 {rightTopY} 1303.452 {angle} -23.9075 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1595.184 {leftBottomY} 1316.681 {rightTopX} -1603.483 {rightTopY} 1308.894 {angle} -8.3514 {drawSphere} False
goto_if_false @WUZI2_8315
289@ = 0
goto @WUZI2_8322

:WUZI2_8315
289@ = 2

:WUZI2_8322
goto @WUZI2_8377

:WUZI2_8329
if 
  289@ == 0
goto_if_false @WUZI2_8354
289@ = 1

:WUZI2_8354
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI2_8377
286@ = 1

:WUZI2_8377
return 

:WUZI2_8379
switch_roads_off -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
clear_area_of_cars -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
331@ = -1605.0
332@ = -1565.0
333@ = -1525.0
334@ = -1485.0
335@ = -1445.0
336@ = -1405.0
337@ = -1365.0
338@ = 1315.0
339@ = 1355.0
340@ = 1395.0
341@ = 1435.0
342@ = 1475.0
343@ = -1585.0
344@ = -1545.0
345@ = -1505.0
346@ = -1465.0
347@ = -1425.0
348@ = -1385.0
349@ = 1335.0
350@ = 1375.0
351@ = 1415.0
352@ = 1455.0
$attack_status_W2 = 0
$p_current_square = -1
359@ = 40.0
357@ = 3.0
358@ = 0.1
290@ = create_car 454 {x} -1585.0 {y} 1375.0 {z} 1.0
anchor_boat 290@ {state} True
300@ = create_char_inside_car 290@ {pedType} PedType.Mission1 {modelId} 121
308@ = create_char PedType.Mission1 {modelId} 121 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 308@ {vehicle} 290@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 308@ {state} True
set_char_accuracy 308@ {accuracy} 80
set_char_shoot_rate 308@ {rate} 20
322@ = 0.0
309@ = create_char PedType.Mission1 {modelId} 122 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 309@ {vehicle} 290@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 309@ {state} True
set_char_accuracy 309@ {accuracy} 80
set_char_shoot_rate 309@ {rate} 20
323@ = -90.0
310@ = create_char PedType.Mission1 {modelId} 123 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 310@ {vehicle} 290@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 310@ {state} True
set_char_accuracy 310@ {accuracy} 80
set_char_shoot_rate 310@ {rate} 20
324@ = 140.0
294@ = 0
296@ = 17
$help_text_flag_W2[0] = 0
291@ = create_car 454 {x} -1505.0 {y} 1335.0 {z} 1.0
anchor_boat 291@ {state} True
301@ = create_char_inside_car 291@ {pedType} PedType.Mission1 {modelId} 121
311@ = create_char PedType.Mission1 {modelId} 121 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 311@ {vehicle} 291@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 311@ {state} True
set_char_accuracy 311@ {accuracy} 80
set_char_shoot_rate 311@ {rate} 20
325@ = 0.0
312@ = create_char PedType.Mission1 {modelId} 122 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 312@ {vehicle} 291@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 312@ {state} True
set_char_accuracy 312@ {accuracy} 80
set_char_shoot_rate 312@ {rate} 20
326@ = -90.0
313@ = create_char PedType.Mission1 {modelId} 123 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 313@ {vehicle} 291@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 313@ {state} True
set_char_accuracy 313@ {accuracy} 80
set_char_shoot_rate 313@ {rate} 20
327@ = 140.0
295@ = 0
297@ = 11
$help_text_flag_W2[1] = 0
$square_attack_status_W2 = 0
return 

:WUZI2_9364
$x, $y, $z = get_char_coordinates $scplayer
$p_last_square = -1
$x_grid_pos_W2 = -1
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_9399
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_9469
if 
  is_float_lvar_greater_than_float_var 331@($d6_player_reached_sixth_creation_pt,7f) > $x
goto_if_false @WUZI2_9455
set_var_int_to_var_int $p_last_square = $d6_player_reached_sixth_creation_pt
$d6_player_reached_sixth_creation_pt = 7

:WUZI2_9455
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_9399

:WUZI2_9469
if 
  $p_last_square == -1
goto_if_false @WUZI2_9494
$p_last_square = 7

:WUZI2_9494
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_9501
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_9571
if 
  is_float_lvar_greater_than_float_var 338@($d6_player_reached_sixth_creation_pt,5f) > $y
goto_if_false @WUZI2_9557
set_var_int_to_var_int $x_grid_pos_W2 = $d6_player_reached_sixth_creation_pt
$d6_player_reached_sixth_creation_pt = 5

:WUZI2_9557
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_9501

:WUZI2_9571
if 
  $x_grid_pos_W2 == -1
goto_if_false @WUZI2_9596
$x_grid_pos_W2 = 5

:WUZI2_9596
$x_grid_pos_W2 *= 8
set_var_int_to_var_int $attack_status_W2 = $p_last_square
add_int_var_to_int_var $attack_status_W2 += $x_grid_pos_W2
if 
  not is_int_var_equal_to_int_var $attack_status_W2 == $p_current_square
goto_if_false @WUZI2_9653
gosub @WUZI2_9655
set_var_int_to_var_int $p_current_square = $attack_status_W2

:WUZI2_9653
return 

:WUZI2_9655
switch_start $attack_status_W2 {numCases} 48 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12067 {caseNum1} 0 {caseLabel1} @WUZI2_10043 {caseNum2} 1 {caseLabel2} @WUZI2_10043 {caseNum3} 2 {caseLabel3} @WUZI2_10099 {caseNum4} 3 {caseLabel4} @WUZI2_10099 {caseNum5} 4 {caseLabel5} @WUZI2_10155 {caseNum6} 5 {caseLabel6} @WUZI2_10211 {caseNum7} 6 {caseLabel7} @WUZI2_10267
switch_continued 7 {caseLabel1} @WUZI2_10267 {caseNum2} 8 {caseLabel2} @WUZI2_10323 {caseNum3} 9 {caseLabel3} @WUZI2_10379 {caseNum4} 10 {caseLabel4} @WUZI2_10379 {caseNum5} 11 {caseLabel5} @WUZI2_10435 {caseNum6} 12 {caseLabel6} @WUZI2_10491 {caseNum7} 13 {caseLabel7} @WUZI2_10547 {caseNum8} 14 {caseLabel8} @WUZI2_10603 {caseNum9} 15 {caseLabel9} @WUZI2_10267
switch_continued 16 {caseLabel1} @WUZI2_10659 {caseNum2} 17 {caseLabel2} @WUZI2_10715 {caseNum3} 18 {caseLabel3} @WUZI2_10771 {caseNum4} 19 {caseLabel4} @WUZI2_10827 {caseNum5} 20 {caseLabel5} @WUZI2_10883 {caseNum6} 21 {caseLabel6} @WUZI2_10939 {caseNum7} 22 {caseLabel7} @WUZI2_11041 {caseNum8} 23 {caseLabel8} @WUZI2_11143 {caseNum9} 24 {caseLabel9} @WUZI2_11199
switch_continued 25 {caseLabel1} @WUZI2_11255 {caseNum2} 26 {caseLabel2} @WUZI2_11311 {caseNum3} 27 {caseLabel3} @WUZI2_11413 {caseNum4} 28 {caseLabel4} @WUZI2_11547 {caseNum5} 29 {caseLabel5} @WUZI2_11041 {caseNum6} 30 {caseLabel6} @WUZI2_10939 {caseNum7} 31 {caseLabel7} @WUZI2_11603 {caseNum8} 32 {caseLabel8} @WUZI2_11659 {caseNum9} 33 {caseLabel9} @WUZI2_11715
switch_continued 34 {caseLabel1} @WUZI2_11413 {caseNum2} 35 {caseLabel2} @WUZI2_11311 {caseNum3} 36 {caseLabel3} @WUZI2_11803 {caseNum4} 37 {caseLabel4} @WUZI2_11891 {caseNum5} 38 {caseLabel5} @WUZI2_11979 {caseNum6} 39 {caseLabel6} @WUZI2_11979 {caseNum7} 40 {caseLabel7} @WUZI2_11659 {caseNum8} 41 {caseLabel8} @WUZI2_11659 {caseNum9} 42 {caseLabel9} @WUZI2_11715
switch_continued 43 {caseLabel1} @WUZI2_11803 {caseNum2} 44 {caseLabel2} @WUZI2_11803 {caseNum3} 45 {caseLabel3} @WUZI2_11891 {caseNum4} 46 {caseLabel4} @WUZI2_11979 {caseNum5} 47 {caseLabel5} @WUZI2_11979 {caseNum6} -1 {caseLabel6} @WUZI2_12067 {caseNum7} -1 {caseLabel7} @WUZI2_12067 {caseNum8} -1 {caseLabel8} @WUZI2_12067 {caseNum9} -1 {caseLabel9} @WUZI2_12067

:WUZI2_10043
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = -1
goto @WUZI2_12067

:WUZI2_10099
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10155
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10211
360@ = 18
362@ = 1
364@ = 1
361@ = 13
363@ = 4
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10267
360@ = 18
362@ = 1
364@ = 1
361@ = 14
363@ = 5
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10323
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 3
goto @WUZI2_12067

:WUZI2_10379
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 5
goto @WUZI2_12067

:WUZI2_10435
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$7269 = 2
goto @WUZI2_12067

:WUZI2_10491
360@ = 18
362@ = 1
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10547
360@ = 18
362@ = 1
364@ = 1
361@ = 21
363@ = 4
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10603
360@ = 18
362@ = 1
364@ = 1
361@ = 22
363@ = 5
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10659
360@ = 17
362@ = 0
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$7269 = 3
goto @WUZI2_12067

:WUZI2_10715
360@ = 25
362@ = 0
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 0
goto @WUZI2_12067

:WUZI2_10771
360@ = 26
362@ = 1
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 0
goto @WUZI2_12067

:WUZI2_10827
360@ = 27
362@ = 2
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 2
goto @WUZI2_12067

:WUZI2_10883
360@ = 27
362@ = 2
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$7269 = 1
goto @WUZI2_12067

:WUZI2_10939
360@ = 27
362@ = 2
364@ = 2
if 
  $p_current_square == 29
goto_if_false @WUZI2_11006
361@ = 22
363@ = 5
365@ = 1
goto @WUZI2_11027

:WUZI2_11006
361@ = 29
363@ = 4
365@ = 2

:WUZI2_11027
$7269 = 1
goto @WUZI2_12067

:WUZI2_11041
360@ = 27
362@ = 2
364@ = 2
if 
  $p_current_square == 30
goto_if_false @WUZI2_11108
361@ = 21
363@ = 4
365@ = 1
goto @WUZI2_11129

:WUZI2_11108
361@ = 30
363@ = 5
365@ = 2

:WUZI2_11129
$7269 = 1
goto @WUZI2_12067

:WUZI2_11143
360@ = 27
362@ = 2
364@ = 2
361@ = 22
363@ = 5
365@ = 1
$7269 = 4
goto @WUZI2_12067

:WUZI2_11199
360@ = 25
362@ = 0
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$7269 = 3
goto @WUZI2_12067

:WUZI2_11255
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$7269 = 0
goto @WUZI2_12067

:WUZI2_11311
if 
  $p_current_square == 34
goto_if_false @WUZI2_11357
360@ = 27
362@ = 2
364@ = 2
goto @WUZI2_11378

:WUZI2_11357
360@ = 34
362@ = 1
364@ = 3

:WUZI2_11378
361@ = 28
363@ = 3
365@ = 2
$7269 = 0
goto @WUZI2_12067

:WUZI2_11413
if 
  $p_current_square == 35
goto_if_false @WUZI2_11459
360@ = 26
362@ = 1
364@ = 2
goto @WUZI2_11480

:WUZI2_11459
360@ = 35
362@ = 2
364@ = 3

:WUZI2_11480
361@ = 28
363@ = 3
365@ = 2
if 
  $attack_status_W2 == 27
goto_if_false @WUZI2_11533
$7269 = 2
goto @WUZI2_11540

:WUZI2_11533
$7269 = 0

:WUZI2_11540
goto @WUZI2_12067

:WUZI2_11547
360@ = 27
362@ = 2
364@ = 2
361@ = 29
363@ = 4
365@ = 2
$7269 = 2
goto @WUZI2_12067

:WUZI2_11603
360@ = 27
362@ = 2
364@ = 2
361@ = 30
363@ = 5
365@ = 2
$7269 = 4
goto @WUZI2_12067

:WUZI2_11659
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$7269 = 3
goto @WUZI2_12067

:WUZI2_11715
360@ = 34
362@ = 1
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $7269 == 33
goto_if_false @WUZI2_11789
$7269 = 0
goto @WUZI2_11796

:WUZI2_11789
$7269 = 3

:WUZI2_11796
goto @WUZI2_12067

:WUZI2_11803
360@ = 35
362@ = 2
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $7269 == 36
goto_if_false @WUZI2_11877
$7269 = 5
goto @WUZI2_11884

:WUZI2_11877
$7269 = 3

:WUZI2_11884
goto @WUZI2_12067

:WUZI2_11891
360@ = 35
362@ = 2
364@ = 3
361@ = 29
363@ = 4
365@ = 2
if 
  $7269 == 37
goto_if_false @WUZI2_11965
$7269 = 4
goto @WUZI2_11972

:WUZI2_11965
$7269 = -1

:WUZI2_11972
goto @WUZI2_12067

:WUZI2_11979
360@ = 35
362@ = 2
364@ = 3
361@ = 30
363@ = 5
365@ = 2
if 
  40 > $7269
goto_if_false @WUZI2_12053
$7269 = 4
goto @WUZI2_12060

:WUZI2_12053
$7269 = -1

:WUZI2_12060
goto @WUZI2_12067

:WUZI2_12067
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_12074
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_12192
if 
  not is_int_lvar_equal_to_int_lvar 296@($d6_player_reached_sixth_creation_pt,2i) == 360@($d6_player_reached_sixth_creation_pt,2i)
goto_if_false @WUZI2_12178
set_lvar_int_to_lvar_int 353@($d6_player_reached_sixth_creation_pt,2i) = 362@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 355@($d6_player_reached_sixth_creation_pt,2i) = 364@($d6_player_reached_sixth_creation_pt,2i)
294@($d6_player_reached_sixth_creation_pt,2i) = 1
set_lvar_int_to_lvar_int 296@($d6_player_reached_sixth_creation_pt,2i) = 360@($d6_player_reached_sixth_creation_pt,2i)

:WUZI2_12178
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_12074

:WUZI2_12192
return 

:WUZI2_12194
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_12201
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_13001
if 
  not is_car_dead 290@($d6_player_reached_sixth_creation_pt,2i)
goto_if_false @WUZI2_12987
switch_start 294@($d6_player_reached_sixth_creation_pt,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12987 {caseNum1} 1 {caseLabel1} @WUZI2_12306 {caseNum2} 2 {caseLabel2} @WUZI2_12417 {caseNum3} 3 {caseLabel3} @WUZI2_12882 {caseNum4} -1 {caseLabel4} @WUZI2_12987 {caseNum5} -1 {caseLabel5} @WUZI2_12987 {caseNum6} -1 {caseLabel6} @WUZI2_12987 {caseNum7} -1 {caseLabel7} @WUZI2_12987

:WUZI2_12306
set_lvar_int_to_lvar_int 366@ = 353@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 367@ = 355@($d6_player_reached_sixth_creation_pt,2i)
anchor_boat 290@($d6_player_reached_sixth_creation_pt,2i) {state} False
boat_goto_coords 290@($d6_player_reached_sixth_creation_pt,2i) {x} 343@(366@,6f) {y} 349@(367@,4f) {z} 0.0
set_boat_cruise_speed 290@($d6_player_reached_sixth_creation_pt,2i) {maxSpeed} 7.0
get_car_speed 290@($d6_player_reached_sixth_creation_pt,2i) {var_speed} 314@($d6_player_reached_sixth_creation_pt,2f)
294@($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_12987

:WUZI2_12417
set_lvar_int_to_lvar_int 366@ = 353@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 367@ = 355@($d6_player_reached_sixth_creation_pt,2i)
if 
  locate_car_2d 290@($d6_player_reached_sixth_creation_pt,2i) {x} 343@(366@,6f) {y} 349@(367@,4f) {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @WUZI2_12521
get_car_speed 290@($d6_player_reached_sixth_creation_pt,2i) {var_speed} 314@($d6_player_reached_sixth_creation_pt,2f)
294@($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_12875

:WUZI2_12521
if 
  is_float_lvar_greater_than_float_lvar 357@ > 314@($d6_player_reached_sixth_creation_pt,2f)
goto_if_false @WUZI2_12572
add_float_lvar_to_float_lvar 314@($d6_player_reached_sixth_creation_pt,2f) += 358@
set_car_forward_speed 290@($d6_player_reached_sixth_creation_pt,2i) {forwardSpeed} 314@($d6_player_reached_sixth_creation_pt,2f)

:WUZI2_12572
get_car_coordinates 290@($d6_player_reached_sixth_creation_pt,2i) {var_x} 316@($d6_player_reached_sixth_creation_pt,2f) {var_y} 318@($d6_player_reached_sixth_creation_pt,2f) {var_z} $z
get_car_heading 290@($d6_player_reached_sixth_creation_pt,2i) {var_heading} 320@($d6_player_reached_sixth_creation_pt,2f)
set_var_float_to_lvar_float $x = 343@(366@,6f)
sub_float_lvar_from_float_var $x -= 316@($d6_player_reached_sixth_creation_pt,2f)
set_var_float_to_lvar_float $y = 349@(367@,4f)
sub_float_lvar_from_float_var $y -= 318@($d6_player_reached_sixth_creation_pt,2f)

:WUZI2_12662
if 
  320@($d6_player_reached_sixth_creation_pt,2f) >= 180.0
goto_if_false @WUZI2_12708
320@($d6_player_reached_sixth_creation_pt,2f) += -360.0
goto @WUZI2_12662

:WUZI2_12708
$heading = get_heading_from_vector_2d $x {y} $y

:WUZI2_12719
if 
  $heading >= 180.0
goto_if_false @WUZI2_12757
$heading += -360.0
goto @WUZI2_12719

:WUZI2_12757
set_var_float_to_var_float $z = $heading
sub_float_lvar_from_float_var $z -= 320@($d6_player_reached_sixth_creation_pt,2f)
if 
  -180.0 >= $z
goto_if_false @WUZI2_12808
$z += 360.0

:WUZI2_12808
if 
  $z >= 180.0
goto_if_false @WUZI2_12839
$z += -360.0

:WUZI2_12839
div_float_var_by_float_lvar $z /= 359@
add_float_var_to_float_lvar 320@($d6_player_reached_sixth_creation_pt,2f) += $z
set_car_heading 290@($d6_player_reached_sixth_creation_pt,2i) {heading} 320@($d6_player_reached_sixth_creation_pt,2f)

:WUZI2_12875
goto @WUZI2_12987

:WUZI2_12882
sub_float_lvar_from_float_lvar 314@($d6_player_reached_sixth_creation_pt,2f) -= 358@
set_car_forward_speed 290@($d6_player_reached_sixth_creation_pt,2i) {forwardSpeed} 314@($d6_player_reached_sixth_creation_pt,2f)
if 
  2.5 > 314@($d6_player_reached_sixth_creation_pt,2f)
goto_if_false @WUZI2_12980
set_car_forward_speed 290@($d6_player_reached_sixth_creation_pt,2i) {forwardSpeed} 1.0
boat_stop 290@($d6_player_reached_sixth_creation_pt,2i)
anchor_boat 290@($d6_player_reached_sixth_creation_pt,2i) {state} True
294@($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_12980
goto @WUZI2_12987

:WUZI2_12987
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_12201

:WUZI2_13001
return 

:WUZI2_13003
$d6_player_reached_sixth_creation_pt = 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:WUZI2_13024
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_14314
if 
  not is_car_dead 290@($d6_player_reached_sixth_creation_pt,2i)
goto_if_false @WUZI2_14238
368@($d6_player_reached_sixth_creation_pt,2i) = 0
switch_start $d6_player_reached_sixth_creation_pt {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_13399 {caseNum1} 0 {caseLabel1} @WUZI2_13136 {caseNum2} 1 {caseLabel2} @WUZI2_13278 {caseNum3} -1 {caseLabel3} @WUZI2_13399 {caseNum4} -1 {caseLabel4} @WUZI2_13399 {caseNum5} -1 {caseLabel5} @WUZI2_13399 {caseNum6} -1 {caseLabel6} @WUZI2_13399 {caseNum7} -1 {caseLabel7} @WUZI2_13399

:WUZI2_13136
if or
  $7269 == 0
  $7269 == 2
goto_if_false @WUZI2_13179
368@($d6_player_reached_sixth_creation_pt,2i) = 1
goto @WUZI2_13271

:WUZI2_13179
if or
  $7269 == 3
  $7269 == 5
goto_if_false @WUZI2_13271
$x, $y, $z = get_car_coordinates 290@($d6_player_reached_sixth_creation_pt,2i)
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  29.0 > $distance
goto_if_false @WUZI2_13271
368@($d6_player_reached_sixth_creation_pt,2i) = 1

:WUZI2_13271
goto @WUZI2_13399

:WUZI2_13278
if or
  $7269 == 1
  $7269 == 2
goto_if_false @WUZI2_13321
368@($d6_player_reached_sixth_creation_pt,2i) = 1
goto @WUZI2_13392

:WUZI2_13321
if or
  $7269 == 4
  $7269 == 5
goto_if_false @WUZI2_13392
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 290@($d6_player_reached_sixth_creation_pt,2i) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @WUZI2_13392
368@($d6_player_reached_sixth_creation_pt,2i) = 1

:WUZI2_13392
goto @WUZI2_13399

:WUZI2_13399
switch_start $help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_14231 {caseNum1} 0 {caseLabel1} @WUZI2_13466 {caseNum2} 1 {caseLabel2} @WUZI2_13732 {caseNum3} 2 {caseLabel3} @WUZI2_13841 {caseNum4} 3 {caseLabel4} @WUZI2_13986 {caseNum5} 4 {caseLabel5} @WUZI2_14136 {caseNum6} -1 {caseLabel6} @WUZI2_14231 {caseNum7} -1 {caseLabel7} @WUZI2_14231

:WUZI2_13466
if 
  $player_status_W2 == 0
goto_if_false @WUZI2_13725
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13639
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_13543
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_13632
if 
  not is_char_dead 308@($pointer4_W2,6i)
goto_if_false @WUZI2_13618
set_var_float_to_lvar_float $heading = 320@($d6_player_reached_sixth_creation_pt,2f)
sub_float_lvar_from_float_var $heading -= 322@($pointer4_W2,6f)
set_char_heading 308@($pointer4_W2,6i) {heading} $heading

:WUZI2_13618
$pointer4_W2 += 1
goto @WUZI2_13543

:WUZI2_13632
goto @WUZI2_13725

:WUZI2_13639
if or
  286@ == 1
  $y_grid_pos_W2 >= 3
goto_if_false @WUZI2_13689
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3
goto @WUZI2_13725

:WUZI2_13689
if 
  0 >= $y_grid_pos_W2
goto_if_false @WUZI2_13714
288@ = 0

:WUZI2_13714
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1

:WUZI2_13725
goto @WUZI2_14231

:WUZI2_13732
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13790
$7267($d6_player_reached_sixth_creation_pt,2i) = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_13834

:WUZI2_13790
if or
  288@ > 6000
  286@ == 1
goto_if_false @WUZI2_13834
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_13834
goto @WUZI2_14231

:WUZI2_13841
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13911
if 
  $7267($d6_player_reached_sixth_creation_pt,2i) > 3000
goto_if_false @WUZI2_13904
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_13904
goto @WUZI2_13979

:WUZI2_13911
if and
  3 > $y_grid_pos_W2
  286@ == 0
goto_if_false @WUZI2_13961
288@ = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) -= 1
goto @WUZI2_13979

:WUZI2_13961
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_13979
goto @WUZI2_14231

:WUZI2_13986
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14129
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_14045
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_14107
if 
  not is_char_dead 308@($pointer4_W2,6i)
goto_if_false @WUZI2_14093
clear_char_tasks 308@($pointer4_W2,6i)

:WUZI2_14093
$pointer4_W2 += 1
goto @WUZI2_14045

:WUZI2_14107
$7267($d6_player_reached_sixth_creation_pt,2i) = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1

:WUZI2_14129
goto @WUZI2_14231

:WUZI2_14136
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14206
if 
  $7267($d6_player_reached_sixth_creation_pt,2i) > 5000
goto_if_false @WUZI2_14199
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_14199
goto @WUZI2_14224

:WUZI2_14206
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_14224
goto @WUZI2_14231

:WUZI2_14231
goto @WUZI2_14300

:WUZI2_14238
if 
  does_blip_exist 292@($d6_player_reached_sixth_creation_pt,2i)
goto_if_false @WUZI2_14267
remove_blip 292@($d6_player_reached_sixth_creation_pt,2i)

:WUZI2_14267
if 
  $help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) <> 0
goto_if_false @WUZI2_14300
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_14300
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_13024

:WUZI2_14314
return 

:WUZI2_14316
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_14346
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_14420
if 
  not is_char_dead 308@($pointer4_W2,6i)
goto_if_false @WUZI2_14406
clear_char_tasks 308@($pointer4_W2,6i)
task_kill_char_on_foot 308@($pointer4_W2,6i) {target} $scplayer

:WUZI2_14406
$pointer4_W2 += 1
goto @WUZI2_14346

:WUZI2_14420
return 

:WUZI2_14422
switch_start $y_grid_pos_W2 {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_15489 {caseNum1} -2 {caseLabel1} @WUZI2_14485 {caseNum2} -1 {caseLabel2} @WUZI2_14531 {caseNum3} 0 {caseLabel3} @WUZI2_14586 {caseNum4} 1 {caseLabel4} @WUZI2_14742 {caseNum5} 2 {caseLabel5} @WUZI2_14919 {caseNum6} 3 {caseLabel6} @WUZI2_15124 {caseNum7} 4 {caseLabel7} @WUZI2_15248

:WUZI2_14485
if 
  287@ == 0
goto_if_false @WUZI2_14524
370@, 371@, $z = get_char_coordinates $scplayer
$y_grid_pos_W2 = -1

:WUZI2_14524
goto @WUZI2_15489

:WUZI2_14531
if 
  not locate_char_on_foot_2d $scplayer {x} 370@ {y} 371@ {xRadius} 2.5 {yRadius} 2.5 {drawSphere} False
goto_if_false @WUZI2_14579
$player_status_W2 = 0
$y_grid_pos_W2 = 0

:WUZI2_14579
goto @WUZI2_15489

:WUZI2_14586
if or
  $help_text_flag_W2[0] > 0
  $help_text_flag_W2[1] > 0
goto_if_false @WUZI2_14735
if and
  3 > $help_text_flag_W2[0]
  3 > $help_text_flag_W2[1]
goto_if_false @WUZI2_14689
123@ = 0
gosub @WUZI2_17920
$y_grid_pos_W2 = 1
if 
  $player_breath_W2 == 0
goto_if_false @WUZI2_14682
$player_breath_W2 = 1

:WUZI2_14682
goto @WUZI2_14735

:WUZI2_14689
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
if 
  $player_breath_W2 == 0
goto_if_false @WUZI2_14735
$player_breath_W2 = 1

:WUZI2_14735
goto @WUZI2_15489

:WUZI2_14742
if or
  $help_text_flag_W2[0] >= 3
  $help_text_flag_W2[1] >= 3
goto_if_false @WUZI2_14795
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_14912

:WUZI2_14795
if and
  $help_text_flag_W2[0] <> 1
  $help_text_flag_W2[1] <> 1
goto_if_false @WUZI2_14912
if or
  $help_text_flag_W2[0] == 2
  $help_text_flag_W2[1] == 2
goto_if_false @WUZI2_14859
$y_grid_pos_W2 = 2
goto @WUZI2_14912

:WUZI2_14859
if or
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_14912
123@ = 9
gosub @WUZI2_17920
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_14912
goto @WUZI2_15489

:WUZI2_14919
if or
  $help_text_flag_W2[0] >= 3
  $help_text_flag_W2[1] >= 3
goto_if_false @WUZI2_14972
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_15117

:WUZI2_14972
if and
  $help_text_flag_W2[0] <> 2
  $help_text_flag_W2[1] <> 2
goto_if_false @WUZI2_15117
if or
  $help_text_flag_W2[0] == 1
  $help_text_flag_W2[1] == 1
goto_if_false @WUZI2_15057
123@ = 0
gosub @WUZI2_18052
gosub @WUZI2_17920
$y_grid_pos_W2 = 1
goto @WUZI2_15117

:WUZI2_15057
if or
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_15117
123@ = 9
gosub @WUZI2_17920
gosub @WUZI2_18052
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_15117
goto @WUZI2_15489

:WUZI2_15124
if and
  $help_text_flag_W2[0] <> 3
  $help_text_flag_W2[1] <> 3
goto_if_false @WUZI2_15241
if or
  $help_text_flag_W2[0] == 4
  $help_text_flag_W2[1] == 4
goto_if_false @WUZI2_15241
123@ = 27
if 
  $help_text_flag_W2[0] == 4
goto_if_false @WUZI2_15213
125@ = 0
goto @WUZI2_15220

:WUZI2_15213
125@ = 1

:WUZI2_15220
gosub @WUZI2_17920
$y_grid_pos_W2 = 4
gosub @WUZI2_18052

:WUZI2_15241
goto @WUZI2_15489

:WUZI2_15248
if and
  $help_text_flag_W2[0] <> 4
  $help_text_flag_W2[1] <> 4
goto_if_false @WUZI2_15482
if or
  $help_text_flag_W2[0] == 3
  $help_text_flag_W2[1] == 3
goto_if_false @WUZI2_15429
if 
  $help_text_flag_W2[0] == 3
goto_if_false @WUZI2_15362
if 
  125@ == 0
goto_if_false @WUZI2_15348
123@ = 45
goto @WUZI2_15355

:WUZI2_15348
123@ = 45

:WUZI2_15355
goto @WUZI2_15401

:WUZI2_15362
if 
  125@ == 1
goto_if_false @WUZI2_15394
123@ = 45
goto @WUZI2_15401

:WUZI2_15394
123@ = 45

:WUZI2_15401
gosub @WUZI2_18052
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_15482

:WUZI2_15429
if and
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_15482
123@ = 36
gosub @WUZI2_17920
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_15482
goto @WUZI2_15489

:WUZI2_15489
switch_start $player_breath_W2 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WUZI2_16053 {caseNum1} 0 {caseLabel1} @WUZI2_15552 {caseNum2} 1 {caseLabel2} @WUZI2_15602 {caseNum3} 2 {caseLabel3} @WUZI2_15634 {caseNum4} 3 {caseLabel4} @WUZI2_15737 {caseNum5} 4 {caseLabel5} @WUZI2_15840 {caseNum6} 5 {caseLabel6} @WUZI2_15943 {caseNum7} -1 {caseLabel7} @WUZI2_16053

:WUZI2_15552
if 
  284@ == 1
goto_if_false @WUZI2_15595
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1

:WUZI2_15595
goto @WUZI2_16053

:WUZI2_15602
print_help_forever 'WZI2_36'
TIMERB = 0
$player_breath_W2 += 1
goto @WUZI2_16053

:WUZI2_15634
if 
  TIMERB > 6000
goto_if_false @WUZI2_15730
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15705
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15730

:WUZI2_15705
print_help_forever 'WZI2_37'
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15730
goto @WUZI2_16053

:WUZI2_15737
if 
  TIMERB > 6000
goto_if_false @WUZI2_15833
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15808
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15833

:WUZI2_15808
print_help_forever 'WZI2_38'
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15833
goto @WUZI2_16053

:WUZI2_15840
if 
  TIMERB > 6000
goto_if_false @WUZI2_15936
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15911
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15936

:WUZI2_15911
print_help_forever 'WZI2_39'
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15936
goto @WUZI2_16053

:WUZI2_15943
if 
  TIMERB > 6000
goto_if_false @WUZI2_16046
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_16021
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
$player_breath_W2 += 1
goto @WUZI2_16046

:WUZI2_16021
if 
  284@ == 2
goto_if_false @WUZI2_16046
$player_breath_W2 += 1

:WUZI2_16046
goto @WUZI2_16053

:WUZI2_16053
return 

:WUZI2_16055
372@ = 0

:WUZI2_16062
if 
  6 > 372@
goto_if_false @WUZI2_16179
if 
  not is_char_dead 308@(372@,6i)
goto_if_false @WUZI2_16158
if 
  has_char_been_damaged_by_char 308@(372@,6i) {handle} $scplayer
goto_if_false @WUZI2_16144
373@ = 1
372@ = 6
goto @WUZI2_16151

:WUZI2_16144
372@ += 1

:WUZI2_16151
goto @WUZI2_16172

:WUZI2_16158
373@ = 1
372@ = 6

:WUZI2_16172
goto @WUZI2_16062

:WUZI2_16179
if 
  373@ == 0
goto_if_false @WUZI2_16321
372@ = 0

:WUZI2_16204
if 
  6 > 372@
goto_if_false @WUZI2_16321
if 
  not is_char_dead 417@(372@,6i)
goto_if_false @WUZI2_16300
if 
  has_char_been_damaged_by_char 417@(372@,6i) {handle} $scplayer
goto_if_false @WUZI2_16286
373@ = 1
372@ = 6
goto @WUZI2_16293

:WUZI2_16286
372@ += 1

:WUZI2_16293
goto @WUZI2_16314

:WUZI2_16300
373@ = 1
372@ = 6

:WUZI2_16314
goto @WUZI2_16204

:WUZI2_16321
if 
  373@ == 1
goto_if_false @WUZI2_16353
gosub @WUZI2_16355
373@ = 2

:WUZI2_16353
return 

:WUZI2_16355
clear_help 
clear_prints 
if 
  not is_car_dead 290@
goto_if_false @WUZI2_16406
if 
  not does_blip_exist 292@
goto_if_false @WUZI2_16406
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_16406
if 
  not is_car_dead 291@
goto_if_false @WUZI2_16453
if 
  not does_blip_exist 293@
goto_if_false @WUZI2_16453
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_16453
if 
  not is_car_dead 413@
goto_if_false @WUZI2_16500
if 
  not does_blip_exist 415@
goto_if_false @WUZI2_16500
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_16500
if 
  not is_car_dead 414@
goto_if_false @WUZI2_16547
if 
  not does_blip_exist 416@
goto_if_false @WUZI2_16547
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_16547
372@ = 0

:WUZI2_16554
if 
  6 > 372@
goto_if_false @WUZI2_16670
if 
  not is_char_dead 308@(372@,6i)
goto_if_false @WUZI2_16614
set_char_accuracy 308@(372@,6i) {accuracy} 80
set_char_shoot_rate 308@(372@,6i) {rate} 50

:WUZI2_16614
if 
  not is_char_dead 417@(372@,6i)
goto_if_false @WUZI2_16656
set_char_accuracy 417@(372@,6i) {accuracy} 80
set_char_shoot_rate 417@(372@,6i) {rate} 50

:WUZI2_16656
372@ += 1
goto @WUZI2_16554

:WUZI2_16670
374@ = 0
375@ = 0
376@ = 0
377@ = 0
return 

:WUZI2_16700
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  not is_car_dead 290@
goto_if_false @WUZI2_16994
if 
  374@ == 0
goto_if_false @WUZI2_16883
if 
  locate_car_2d 290@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_16876
if 
  not is_char_dead 308@
goto_if_false @WUZI2_16811
clear_char_tasks 308@
task_kill_char_on_foot 308@ {target} $scplayer

:WUZI2_16811
if 
  not is_char_dead 309@
goto_if_false @WUZI2_16840
clear_char_tasks 309@
task_kill_char_on_foot 309@ {target} $scplayer

:WUZI2_16840
if 
  not is_char_dead 310@
goto_if_false @WUZI2_16869
clear_char_tasks 310@
task_kill_char_on_foot 310@ {target} $scplayer

:WUZI2_16869
374@ = 1

:WUZI2_16876
goto @WUZI2_16987

:WUZI2_16883
if 
  not locate_car_2d 290@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_16987
if 
  not is_char_dead 308@
goto_if_false @WUZI2_16938
clear_char_tasks 308@

:WUZI2_16938
if 
  not is_char_dead 309@
goto_if_false @WUZI2_16959
clear_char_tasks 309@

:WUZI2_16959
if 
  not is_char_dead 310@
goto_if_false @WUZI2_16980
clear_char_tasks 310@

:WUZI2_16980
374@ = 0

:WUZI2_16987
goto @WUZI2_17015

:WUZI2_16994
if 
  does_blip_exist 292@
goto_if_false @WUZI2_17015
remove_blip 292@

:WUZI2_17015
if 
  not is_car_dead 291@
goto_if_false @WUZI2_17295
if 
  375@ == 0
goto_if_false @WUZI2_17184
if 
  locate_car_2d 291@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17177
if 
  not is_char_dead 311@
goto_if_false @WUZI2_17112
clear_char_tasks 311@
task_kill_char_on_foot 311@ {target} $scplayer

:WUZI2_17112
if 
  not is_char_dead 312@
goto_if_false @WUZI2_17141
clear_char_tasks 312@
task_kill_char_on_foot 312@ {target} $scplayer

:WUZI2_17141
if 
  not is_char_dead 313@
goto_if_false @WUZI2_17170
clear_char_tasks 313@
task_kill_char_on_foot 313@ {target} $scplayer

:WUZI2_17170
375@ = 1

:WUZI2_17177
goto @WUZI2_17288

:WUZI2_17184
if 
  not locate_car_2d 291@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17288
if 
  not is_char_dead 311@
goto_if_false @WUZI2_17239
clear_char_tasks 311@

:WUZI2_17239
if 
  not is_char_dead 312@
goto_if_false @WUZI2_17260
clear_char_tasks 312@

:WUZI2_17260
if 
  not is_char_dead 313@
goto_if_false @WUZI2_17281
clear_char_tasks 313@

:WUZI2_17281
375@ = 0

:WUZI2_17288
goto @WUZI2_17316

:WUZI2_17295
if 
  does_blip_exist 293@
goto_if_false @WUZI2_17316
remove_blip 293@

:WUZI2_17316
if 
  not is_car_dead 413@
goto_if_false @WUZI2_17596
if 
  376@ == 0
goto_if_false @WUZI2_17485
if 
  locate_car_2d 413@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17478
if 
  not is_char_dead 417@
goto_if_false @WUZI2_17413
clear_char_tasks 417@
task_kill_char_on_foot 417@ {target} $scplayer

:WUZI2_17413
if 
  not is_char_dead 418@
goto_if_false @WUZI2_17442
clear_char_tasks 418@
task_kill_char_on_foot 418@ {target} $scplayer

:WUZI2_17442
if 
  not is_char_dead 419@
goto_if_false @WUZI2_17471
clear_char_tasks 419@
task_kill_char_on_foot 419@ {target} $scplayer

:WUZI2_17471
376@ = 1

:WUZI2_17478
goto @WUZI2_17589

:WUZI2_17485
if 
  not locate_car_2d 413@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17589
if 
  not is_char_dead 417@
goto_if_false @WUZI2_17540
clear_char_tasks 417@

:WUZI2_17540
if 
  not is_char_dead 418@
goto_if_false @WUZI2_17561
clear_char_tasks 418@

:WUZI2_17561
if 
  not is_char_dead 419@
goto_if_false @WUZI2_17582
clear_char_tasks 419@

:WUZI2_17582
376@ = 0

:WUZI2_17589
goto @WUZI2_17617

:WUZI2_17596
if 
  does_blip_exist 415@
goto_if_false @WUZI2_17617
remove_blip 415@

:WUZI2_17617
if 
  not is_car_dead 414@
goto_if_false @WUZI2_17897
if 
  377@ == 0
goto_if_false @WUZI2_17786
if 
  locate_car_2d 414@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17779
if 
  not is_char_dead 420@
goto_if_false @WUZI2_17714
clear_char_tasks 420@
task_kill_char_on_foot 420@ {target} $scplayer

:WUZI2_17714
if 
  not is_char_dead 421@
goto_if_false @WUZI2_17743
clear_char_tasks 421@
task_kill_char_on_foot 421@ {target} $scplayer

:WUZI2_17743
if 
  not is_char_dead 422@
goto_if_false @WUZI2_17772
clear_char_tasks 422@
task_kill_char_on_foot 422@ {target} $scplayer

:WUZI2_17772
377@ = 1

:WUZI2_17779
goto @WUZI2_17890

:WUZI2_17786
if 
  not locate_car_2d 414@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17890
if 
  not is_char_dead 420@
goto_if_false @WUZI2_17841
clear_char_tasks 420@

:WUZI2_17841
if 
  not is_char_dead 421@
goto_if_false @WUZI2_17862
clear_char_tasks 421@

:WUZI2_17862
if 
  not is_char_dead 422@
goto_if_false @WUZI2_17883
clear_char_tasks 422@

:WUZI2_17883
377@ = 0

:WUZI2_17890
goto @WUZI2_17918

:WUZI2_17897
if 
  does_blip_exist 416@
goto_if_false @WUZI2_17918
remove_blip 416@

:WUZI2_17918
return 

:WUZI2_17920
set_lvar_int_to_lvar_int 57@ = 122@
57@ *= 3
add_int_lvar_to_int_lvar 57@ += 121@
add_int_lvar_to_int_lvar 57@ += 123@
if 
  368@ == 1
goto_if_false @WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
goto @WUZI2_17999

:WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
378@ += 3

:WUZI2_17999
set_var_int_to_lvar_int $load_sample = 58@(57@,63i)
set_var_text_label s$load_text = 127@(57@,63s)
start_new_script @A_ALAP 2 124@ 308@(378@,6i) 
124@ += 1
return 

:WUZI2_18052
121@ += 1
if 
  121@ == 3
goto_if_false @WUZI2_18116
121@ = 0
122@ += 1
if 
  122@ == 3
goto_if_false @WUZI2_18116
122@ = 0

:WUZI2_18116
return 

:WUZI2_18118
380@, 381@, 381@ = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Melee
if 
  is_int_lvar_equal_to_constant 380@ == 0
goto_if_false @WUZI2_18166
379@ = 0
goto @WUZI2_18205

:WUZI2_18166
if 
  is_int_lvar_equal_to_constant 380@ == 4
goto_if_false @WUZI2_18198
379@ = 1
goto @WUZI2_18205

:WUZI2_18198
379@ = 2

:WUZI2_18205
return 

:WUZI2_18207
$pointer4_W2 = 0

:WUZI2_18214
if 
  6 > $pointer4_W2
goto_if_false @WUZI2_18288
if 
  not is_char_dead 308@($pointer4_W2,6i)
goto_if_false @WUZI2_18274
set_char_accuracy 308@($pointer4_W2,6i) {accuracy} 30
set_char_shoot_rate 308@($pointer4_W2,6i) {rate} 30

:WUZI2_18274
$pointer4_W2 += 1
goto @WUZI2_18214

:WUZI2_18288
return 

:WUZI2_18290
if 
  382@ == 1
goto_if_false @WUZI2_18640
if and
is_ps2_keyboard_key_pressed 10
  TIMERB > 200
goto_if_false @WUZI2_18345
TIMERB = 0
382@ = 0

:WUZI2_18345
line 331@ {f2} 338@ {f3} 2.0 {f4} 337@ {f5} 338@ {f6} 2.0
line 331@ {f2} 339@ {f3} 2.0 {f4} 337@ {f5} 339@ {f6} 2.0
line 331@ {f2} 340@ {f3} 2.0 {f4} 337@ {f5} 340@ {f6} 2.0
line 331@ {f2} 341@ {f3} 2.0 {f4} 337@ {f5} 341@ {f6} 2.0
line 331@ {f2} 342@ {f3} 2.0 {f4} 337@ {f5} 342@ {f6} 2.0
line 331@ {f2} 338@ {f3} 2.0 {f4} 331@ {f5} 342@ {f6} 2.0
line 332@ {f2} 338@ {f3} 2.0 {f4} 332@ {f5} 342@ {f6} 2.0
line 333@ {f2} 338@ {f3} 2.0 {f4} 333@ {f5} 342@ {f6} 2.0
line 334@ {f2} 338@ {f3} 2.0 {f4} 334@ {f5} 342@ {f6} 2.0
line 335@ {f2} 338@ {f3} 2.0 {f4} 335@ {f5} 342@ {f6} 2.0
line 336@ {f2} 338@ {f3} 2.0 {f4} 336@ {f5} 342@ {f6} 2.0
line 337@ {f2} 338@ {f3} 2.0 {f4} 337@ {f5} 342@ {f6} 2.0
goto @WUZI2_18695

:WUZI2_18640
if 
  382@ == 0
goto_if_false @WUZI2_18695
if and
is_ps2_keyboard_key_pressed 10
  TIMERB > 200
goto_if_false @WUZI2_18695
TIMERB = 0
382@ = 1

:WUZI2_18695
return 

:WUZI2_18697
383@ = create_searchlight -1474.145 {y} 1484.038 {z} 11.3824 {xPoint} -1465.1541 {yPoint} 1463.004 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
389@ = create_object_no_offset #A51_SPOTBASE {x} -1474.145 {y} 1484.038 {z} 10.8824
set_object_heading 389@ {heading} 326.1907
395@ = create_object_no_offset #A51_SPOTHOUSING {x} -1474.145 {y} 1484.038 {z} 10.8824
401@ = create_object_no_offset #A51_SPOTBULB {x} -1474.145 {y} 1484.038 {z} 10.8824
attach_searchlight_to_searchlight_object 383@ {spotTower} 389@ {spotHousing} 395@ {spotBulb} 401@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 401@ {health} 1000
move_searchlight_between_coords 383@ {fromX} -1465.1541 {fromY} 1463.004 {fromZ} -0.5 {toX} -1489.672 {toY} 1472.111 {toZ} -0.5 {speed} 0.1
set_searchlight_clip_if_colliding 383@ {state} False
428@ = 0
384@ = create_searchlight -1474.198 {y} 1494.927 {z} 11.6265 {xPoint} -1459.363 {yPoint} 1514.413 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
390@ = create_object_no_offset #A51_SPOTBASE {x} -1474.198 {y} 1494.927 {z} 10.8824
set_object_heading 390@ {heading} 34.4591
396@ = create_object_no_offset #A51_SPOTHOUSING {x} -1474.198 {y} 1494.927 {z} 10.8824
402@ = create_object_no_offset #A51_SPOTBULB {x} -1474.198 {y} 1494.927 {z} 10.8824
attach_searchlight_to_searchlight_object 384@ {spotTower} 390@ {spotHousing} 396@ {spotBulb} 402@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 402@ {health} 1000
move_searchlight_between_coords 384@ {fromX} -1459.363 {fromY} 1514.413 {fromZ} -0.5 {toX} -1491.379 {toY} 1501.309 {toZ} -0.5 {speed} 0.08
set_searchlight_clip_if_colliding 384@ {state} False
429@ = 0
385@ = create_searchlight -1369.2791 {y} 1484.219 {z} 14.3425 {xPoint} -1351.937 {yPoint} 1504.4351 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
391@ = create_object_no_offset #A51_SPOTBASE {x} -1369.2791 {y} 1484.219 {z} 13.8425
set_object_heading 391@ {heading} 32.5701
397@ = create_object_no_offset #A51_SPOTHOUSING {x} -1369.2791 {y} 1484.219 {z} 13.8425
403@ = create_object_no_offset #A51_SPOTBULB {x} -1369.2791 {y} 1484.219 {z} 13.8425
attach_searchlight_to_searchlight_object 385@ {spotTower} 391@ {spotHousing} 397@ {spotBulb} 403@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 403@ {health} 1000
move_searchlight_between_coords 385@ {fromX} -1347.1429 {fromY} 1476.63 {fromZ} -0.5 {toX} -1370.499 {toY} 1465.479 {toZ} -0.5 {speed} 0.08
set_searchlight_clip_if_colliding 385@ {state} False
430@ = 0
386@ = create_searchlight -1368.467 {y} 1494.225 {z} 14.3425 {xPoint} -1347.1429 {yPoint} 1476.63 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
392@ = create_object_no_offset #A51_SPOTBASE {x} -1368.467 {y} 1494.225 {z} 13.8425
set_object_heading 392@ {heading} 327.3304
398@ = create_object_no_offset #A51_SPOTHOUSING {x} -1368.467 {y} 1494.225 {z} 13.8425
404@ = create_object_no_offset #A51_SPOTBULB {x} -1368.467 {y} 1494.225 {z} 13.8425
attach_searchlight_to_searchlight_object 386@ {spotTower} 392@ {spotHousing} 398@ {spotBulb} 404@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 404@ {health} 1000
move_searchlight_between_coords 386@ {fromX} -1351.937 {fromY} 1504.4351 {fromZ} -0.5 {toX} -1377.028 {toY} 1515.729 {toZ} -0.5 {speed} 0.1
set_searchlight_clip_if_colliding 386@ {state} False
431@ = 0
413@ = create_car 454 {x} -1491.662 {y} 1488.5 {z} 1.0
set_car_heading 413@ {heading} 180.0
anchor_boat 413@ {state} True
417@ = create_char PedType.Mission1 {modelId} 123 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 417@ {vehicle} 413@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 417@ {state} True
set_char_accuracy 417@ {accuracy} 80
set_char_shoot_rate 417@ {rate} 20
418@ = create_char PedType.Mission1 {modelId} 122 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 418@ {vehicle} 413@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 418@ {state} True
set_char_accuracy 418@ {accuracy} 80
set_char_shoot_rate 418@ {rate} 20
419@ = create_char PedType.Mission1 {modelId} 121 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 419@ {vehicle} 413@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 419@ {state} True
set_char_accuracy 419@ {accuracy} 80
set_char_shoot_rate 419@ {rate} 20
414@ = create_car 454 {x} -1350.12 {y} 1488.5 {z} 1.0
set_car_heading 414@ {heading} 0.0
anchor_boat 414@ {state} True
420@ = create_char PedType.Mission1 {modelId} 123 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 420@ {vehicle} 414@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 420@ {state} True
set_char_accuracy 420@ {accuracy} 80
set_char_shoot_rate 420@ {rate} 20
421@ = create_char PedType.Mission1 {modelId} 122 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 421@ {vehicle} 414@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 421@ {state} True
set_char_accuracy 421@ {accuracy} 80
set_char_shoot_rate 421@ {rate} 20
422@ = create_char PedType.Mission1 {modelId} 121 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 422@ {vehicle} 414@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 422@ {state} True
set_char_accuracy 422@ {accuracy} 80
set_char_shoot_rate 422@ {rate} 20
423@ = 0
return 

:WUZI2_20108
switch_start 423@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20689 {caseNum1} 0 {caseLabel1} @WUZI2_20171 {caseNum2} 1 {caseLabel2} @WUZI2_20483 {caseNum3} -1 {caseLabel3} @WUZI2_20689 {caseNum4} -1 {caseLabel4} @WUZI2_20689 {caseNum5} -1 {caseLabel5} @WUZI2_20689 {caseNum6} -1 {caseLabel6} @WUZI2_20689 {caseNum7} -1 {caseLabel7} @WUZI2_20689

:WUZI2_20171
if 
  287@ == 0
goto_if_false @WUZI2_20476
if 
  not 424@ = is_char_in_any_searchlight $scplayer
goto_if_false @WUZI2_20392
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_20378
if 
  not is_car_dead 413@
goto_if_false @WUZI2_20301
if 
  is_char_touching_vehicle $scplayer {handle} 413@
goto_if_false @WUZI2_20301
123@ = 18
gosub @WUZI2_17920
425@ = 0
gosub @WUZI2_20691
423@ = 1
goto @WUZI2_20689

:WUZI2_20301
if 
  not is_car_dead 414@
goto_if_false @WUZI2_20371
if 
  is_char_touching_vehicle $scplayer {handle} 414@
goto_if_false @WUZI2_20371
123@ = 18
gosub @WUZI2_17920
425@ = 1
gosub @WUZI2_20691
423@ = 1

:WUZI2_20371
goto @WUZI2_20385

:WUZI2_20378
goto @WUZI2_20689

:WUZI2_20385
goto @WUZI2_20476

:WUZI2_20392
123@ = 18
gosub @WUZI2_17920
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  -1430.0 > $player_x
goto_if_false @WUZI2_20455
425@ = 0
goto @WUZI2_20462

:WUZI2_20455
425@ = 1

:WUZI2_20462
gosub @WUZI2_20691
423@ = 1

:WUZI2_20476
goto @WUZI2_20689

:WUZI2_20483
if 
  not is_car_dead 413@(425@,2i)
goto_if_false @WUZI2_20661
if 
  287@ == 0
goto_if_false @WUZI2_20612
$x, $y, $z = get_car_coordinates 413@(425@,2i)
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  55.0 > $distance
goto_if_false @WUZI2_20598
goto @WUZI2_20689

:WUZI2_20598
123@ = 36
goto @WUZI2_20619

:WUZI2_20612
123@ = 27

:WUZI2_20619
gosub @WUZI2_17920
425@ += 2
gosub @WUZI2_20691
gosub @WUZI2_18052
423@ = 0
goto @WUZI2_20682

:WUZI2_20661
425@ += 2
gosub @WUZI2_20691
423@ = 0

:WUZI2_20682
goto @WUZI2_20689

:WUZI2_20689
return 

:WUZI2_20691
427@ = 0
switch_start 425@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20985 {caseNum1} 0 {caseLabel1} @WUZI2_20761 {caseNum2} 1 {caseLabel2} @WUZI2_20873 {caseNum3} 2 {caseLabel3} @WUZI2_20761 {caseNum4} 3 {caseLabel4} @WUZI2_20873 {caseNum5} -1 {caseLabel5} @WUZI2_20985 {caseNum6} -1 {caseLabel6} @WUZI2_20985 {caseNum7} -1 {caseLabel7} @WUZI2_20985

:WUZI2_20761
426@ = 0

:WUZI2_20768
if 
  3 > 426@
goto_if_false @WUZI2_20866
if 
  not is_char_dead 417@(426@,6i)
goto_if_false @WUZI2_20852
clear_char_tasks 417@(426@,6i)
if 
  425@ == 0
goto_if_false @WUZI2_20845
task_kill_char_on_foot 417@(426@,6i) {target} $scplayer

:WUZI2_20845
427@ += 1

:WUZI2_20852
426@ += 1
goto @WUZI2_20768

:WUZI2_20866
goto @WUZI2_20985

:WUZI2_20873
426@ = 3

:WUZI2_20880
if 
  6 > 426@
goto_if_false @WUZI2_20978
if 
  not is_char_dead 417@(426@,6i)
goto_if_false @WUZI2_20964
clear_char_tasks 417@(426@,6i)
if 
  425@ == 1
goto_if_false @WUZI2_20957
task_kill_char_on_foot 417@(426@,6i) {target} $scplayer

:WUZI2_20957
427@ += 1

:WUZI2_20964
426@ += 1
goto @WUZI2_20880

:WUZI2_20978
goto @WUZI2_20985

:WUZI2_20985
return 

:WUZI2_20987
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_20994
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_21117
if and
  428@($d6_player_reached_sixth_creation_pt,6i) == 0
  does_object_exist 401@($d6_player_reached_sixth_creation_pt,6i)
goto_if_false @WUZI2_21103
434@ = get_object_health 401@($d6_player_reached_sixth_creation_pt,6i)
if 
  1000 > 434@
goto_if_false @WUZI2_21103
delete_searchlight 383@($d6_player_reached_sixth_creation_pt,6i)
remove_blip 407@($d6_player_reached_sixth_creation_pt,6i)
428@($d6_player_reached_sixth_creation_pt,6i) += 1

:WUZI2_21103
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_20994

:WUZI2_21117
return 
if 
  $help_text_switch_W2 > 0
goto_if_false @WUZI2_21497
if and
  $help_text_switch_W2 == 1
  $y_grid_pos_W2 > 0
goto_if_false @WUZI2_21229
if and
  TIMERB > 6500
  4 > $swim_stamina_check
goto_if_false @WUZI2_21195
$swim_stamina_check += 1

:WUZI2_21195
clear_help 
print_help_forever 'WZI2_B4'
TIMERB = 0
$help_text_switch_W2 += 1
goto @WUZI2_21490

:WUZI2_21229
if 
  5 > $swim_stamina_check
goto_if_false @WUZI2_21490
switch_start $swim_stamina_check {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WUZI2_21439 {caseNum1} -2 {caseLabel1} @WUZI2_21310 {caseNum2} -1 {caseLabel2} @WUZI2_21347 {caseNum3} 4 {caseLabel3} @WUZI2_21404 {caseNum4} -1 {caseLabel4} @WUZI2_21490 {caseNum5} -1 {caseLabel5} @WUZI2_21490 {caseNum6} -1 {caseLabel6} @WUZI2_21490 {caseNum7} -1 {caseLabel7} @WUZI2_21490

:WUZI2_21310
print_now 'WZI2_8' {time} 7000 {flag} 1
TIMERB = 0
$swim_stamina_check += 1
goto @WUZI2_21490

:WUZI2_21347
if 
  TIMERB > 7000
goto_if_false @WUZI2_21397
print_now 'WZI2_9' {time} 8000 {flag} 1
TIMERB = 6500
$swim_stamina_check += 1

:WUZI2_21397
goto @WUZI2_21490

:WUZI2_21404
if 
  TIMERB > 8000
goto_if_false @WUZI2_21432
clear_help 
$swim_stamina_check += 1

:WUZI2_21432
goto @WUZI2_21490

:WUZI2_21439
if 
  TIMERB > 8000
goto_if_false @WUZI2_21483
clear_help 
print_help_forever 260@($swim_stamina_check,8s)
TIMERB = 0
$swim_stamina_check += 1

:WUZI2_21483
goto @WUZI2_21490

:WUZI2_21490
goto @WUZI2_21522

:WUZI2_21497
if 
  287@ == 0
goto_if_false @WUZI2_21522
$help_text_switch_W2 = 1

:WUZI2_21522
return 

:WUZI2_21524
switch_start 435@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_21723 {caseNum1} 0 {caseLabel1} @WUZI2_21587 {caseNum2} 1 {caseLabel2} @WUZI2_21679 {caseNum3} -1 {caseLabel3} @WUZI2_21723 {caseNum4} -1 {caseLabel4} @WUZI2_21723 {caseNum5} -1 {caseLabel5} @WUZI2_21723 {caseNum6} -1 {caseLabel6} @WUZI2_21723 {caseNum7} -1 {caseLabel7} @WUZI2_21723

:WUZI2_21587
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_21672
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1491.319 {leftBottomY} 1505.334 {leftBottomZ} 0.0 {rightTopX} -1352.436 {rightTopY} 1475.738 {rightTopZ} 15.0 {drawSphere} False
goto_if_false @WUZI2_21672
gosub @WUZI2_22064
435@ += 1
goto @WUZI2_21723

:WUZI2_21672
goto @WUZI2_21723

:WUZI2_21679
if 
  is_char_in_water $scplayer
goto_if_false @WUZI2_21716
gosub @WUZI2_21725
435@ -= 1
goto @WUZI2_21723

:WUZI2_21716
goto @WUZI2_21723

:WUZI2_21723
return 

:WUZI2_21725
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_21732
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_21773
remove_blip 443@($d6_player_reached_sixth_creation_pt,8i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_21732

:WUZI2_21773
set_radar_zoom 0
if 
  not is_car_dead 290@
goto_if_false @WUZI2_21824
if 
  not does_blip_exist 292@
goto_if_false @WUZI2_21824
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_21824
if 
  not is_car_dead 291@
goto_if_false @WUZI2_21871
if 
  not does_blip_exist 293@
goto_if_false @WUZI2_21871
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_21871
if 
  not is_car_dead 413@
goto_if_false @WUZI2_21918
if 
  not does_blip_exist 415@
goto_if_false @WUZI2_21918
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_21918
if 
  not is_car_dead 414@
goto_if_false @WUZI2_21965
if 
  not does_blip_exist 416@
goto_if_false @WUZI2_21965
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_21965
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_21972
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22062
if 
  428@($d6_player_reached_sixth_creation_pt,6i) == 0
goto_if_false @WUZI2_22048
if 
  not does_blip_exist 407@($d6_player_reached_sixth_creation_pt,6i)
goto_if_false @WUZI2_22048
add_blip_for_searchlight 383@($d6_player_reached_sixth_creation_pt,6i) {var_handle} 407@($d6_player_reached_sixth_creation_pt,6i)

:WUZI2_22048
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_21972

:WUZI2_22062
return 

:WUZI2_22064
if 
  not is_car_dead 290@
goto_if_false @WUZI2_22085
remove_blip 292@

:WUZI2_22085
if 
  not is_car_dead 291@
goto_if_false @WUZI2_22106
remove_blip 293@

:WUZI2_22106
if 
  not is_car_dead 413@
goto_if_false @WUZI2_22127
remove_blip 415@

:WUZI2_22127
if 
  not is_car_dead 414@
goto_if_false @WUZI2_22148
remove_blip 416@

:WUZI2_22148
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_22155
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22196
remove_blip 407@($d6_player_reached_sixth_creation_pt,6i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_22155

:WUZI2_22196
set_radar_zoom 90
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_22207
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22317
if 
  not is_char_dead 436@($d6_player_reached_sixth_creation_pt,7i)
goto_if_false @WUZI2_22303
if 
  not does_blip_exist 443@($d6_player_reached_sixth_creation_pt,8i)
goto_if_false @WUZI2_22303
add_blip_for_char 436@($d6_player_reached_sixth_creation_pt,7i) {var_handle} 443@($d6_player_reached_sixth_creation_pt,8i)
change_blip_display 443@($d6_player_reached_sixth_creation_pt,8i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 443@($d6_player_reached_sixth_creation_pt,8i) {state} True

:WUZI2_22303
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_22207

:WUZI2_22317
return 

:WUZI2_22319
clear_help 
clear_prints 
if 
  379@ == 0
goto_if_false @WUZI2_22346
remove_pickup 258@

:WUZI2_22346
gosub @WUZI2_18118
if 
  379@ <> 1
goto_if_false @WUZI2_22398
258@ = create_pickup_with_ammo 335 {pickupType} PickupType.Once {ammo} 1 {x} -1456.2889 {y} 1497.905 {z} 6.7

:WUZI2_22398
remove_blip 36@
36@ = add_blip_for_coord -1372.733 {y} 1495.55 {z} 0.8578
466@ = -1442.207
470@ = 1489.462
474@ = 6.1016
478@ = 270.0
467@ = -1402.308
471@ = 1486.719
475@ = 6.0938
479@ = 301.3607
468@ = -1382.657
472@ = 1480.446
476@ = 7.5625
480@ = 180.0
469@ = -1370.584
473@ = 1486.74
477@ = 10.0313
481@ = 347.1257
436@ = create_char PedType.Mission2 {modelId} 121 {x} 466@ {y} 470@ {z} 474@
set_char_heading 436@ {heading} 478@
give_weapon_to_char 436@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 436@ {weaponType} WeaponType.Knife
set_char_decision_maker 436@ {handleOrTemplate} 34@
443@ = add_blip_for_char 436@
change_blip_display 443@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 443@ {state} True
set_char_shoot_rate 436@ {rate} 80
set_sense_range 436@ {range} 80.0
451@ = 0
437@ = create_char PedType.Mission2 {modelId} 122 {x} 467@ {y} 471@ {z} 475@
set_char_heading 437@ {heading} 479@
give_weapon_to_char 437@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 437@ {weaponType} WeaponType.Knife
set_char_decision_maker 437@ {handleOrTemplate} 34@
444@ = add_blip_for_char 437@
change_blip_display 444@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 444@ {state} True
set_char_shoot_rate 437@ {rate} 80
set_sense_range 437@ {range} 80.0
452@ = 0
438@ = create_char PedType.Mission2 {modelId} 123 {x} 468@ {y} 472@ {z} 476@
set_char_heading 438@ {heading} 480@
give_weapon_to_char 438@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 438@ {weaponType} WeaponType.Knife
set_char_decision_maker 438@ {handleOrTemplate} 34@
445@ = add_blip_for_char 438@
change_blip_display 445@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 445@ {state} True
set_char_shoot_rate 438@ {rate} 80
set_sense_range 438@ {range} 80.0
453@ = 0
439@ = create_char PedType.Mission2 {modelId} 121 {x} 469@ {y} 473@ {z} 477@
set_char_heading 439@ {heading} 481@
give_weapon_to_char 439@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 439@ {weaponType} WeaponType.Knife
set_char_decision_maker 439@ {handleOrTemplate} 34@
446@ = add_blip_for_char 439@
change_blip_display 446@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 446@ {state} True
set_char_shoot_rate 439@ {rate} 80
set_sense_range 439@ {range} 80.0
454@ = 0
482@ = -1415.15
492@ = 1489.33
502@ = 6.1092
512@ = 274.6376
483@ = -1393.05
493@ = 1490.035
503@ = 6.1016
513@ = 273.1324
484@ = -1377.694
494@ = 1494.01
504@ = 0.8594
514@ = 268.1749
485@ = -1384.855
495@ = 1493.9041
505@ = 0.8594
515@ = 86.0142
486@ = -1433.38
496@ = 1483.448
506@ = 0.625
516@ = 272.9424
487@ = -1393.022
497@ = 1483.625
507@ = 0.625
517@ = 266.08
488@ = -1392.567
498@ = 1496.2729
508@ = 0.6312
518@ = 163.775
489@ = -1423.0601
499@ = 1496.2889
509@ = 0.625
519@ = 134.281
490@ = -1423.291
500@ = 1491.614
510@ = 0.625
520@ = 172.1411
491@ = -1433.231
501@ = 1488.718
511@ = 0.625
521@ = 106.1638
458@ = 0
462@ = 1
set_var_int_to_lvar_int $pointer_W2 = 458@
440@ = create_char PedType.Mission2 {modelId} 123 {x} 482@($pointer_W2,10f) {y} 492@($pointer_W2,10f) {z} 502@($pointer_W2,10f)
set_char_heading 440@ {heading} 512@($pointer_W2,10f)
give_weapon_to_char 440@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 440@ {weaponType} WeaponType.Knife
set_char_decision_maker 440@ {handleOrTemplate} 34@
447@ = add_blip_for_char 440@
change_blip_display 447@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 447@ {state} True
set_char_shoot_rate 440@ {rate} 80
set_sense_range 440@ {range} 80.0
455@ = 0
459@ = 2
463@ = 3
set_var_int_to_lvar_int $pointer_W2 = 459@
441@ = create_char PedType.Mission2 {modelId} 122 {x} 482@($pointer_W2,10f) {y} 492@($pointer_W2,10f) {z} 502@($pointer_W2,10f)
set_char_heading 441@ {heading} 512@($pointer_W2,10f)
give_weapon_to_char 441@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 441@ {weaponType} WeaponType.Knife
set_char_decision_maker 441@ {handleOrTemplate} 34@
448@ = add_blip_for_char 441@
change_blip_display 448@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 448@ {state} True
set_char_shoot_rate 441@ {rate} 80
set_sense_range 441@ {range} 80.0
456@ = 0
460@ = 4
464@ = 9
set_var_int_to_lvar_int $pointer_W2 = 460@
442@ = create_char PedType.Mission2 {modelId} 121 {x} 482@($pointer_W2,10f) {y} 492@($pointer_W2,10f) {z} 502@($pointer_W2,10f)
set_char_heading 442@ {heading} 512@($pointer_W2,10f)
give_weapon_to_char 442@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 442@ {weaponType} WeaponType.Knife
set_char_decision_maker 442@ {handleOrTemplate} 34@
449@ = add_blip_for_char 442@
change_blip_display 449@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 449@ {state} True
set_char_shoot_rate 442@ {rate} 80
set_sense_range 442@ {range} 80.0
457@ = 0
print_now 'WZI2_35' {time} 7000 {flag} 1
522@ = 0
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_23799
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_23863
if 
  not is_char_dead 436@($d6_player_reached_sixth_creation_pt,7i)
goto_if_false @WUZI2_23849
set_char_decision_maker 436@($d6_player_reached_sixth_creation_pt,7i) {handleOrTemplate} 34@

:WUZI2_23849
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_23799

:WUZI2_23863
283@ = 1
return 

:WUZI2_23872
$d6_player_reached_sixth_creation_pt = 0
530@ = 0
531@ = 0
531@ = 0

:WUZI2_23900
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_24617
if 
  not is_char_dead 436@($d6_player_reached_sixth_creation_pt,7i)
goto_if_false @WUZI2_24561
switch_start 523@($d6_player_reached_sixth_creation_pt,7i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24554 {caseNum1} 0 {caseLabel1} @WUZI2_24005 {caseNum2} 1 {caseLabel2} @WUZI2_24237 {caseNum3} 2 {caseLabel3} @WUZI2_24419 {caseNum4} -1 {caseLabel4} @WUZI2_24554 {caseNum5} -1 {caseLabel5} @WUZI2_24554 {caseNum6} -1 {caseLabel6} @WUZI2_24554 {caseNum7} -1 {caseLabel7} @WUZI2_24554

:WUZI2_24005
if or
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.SoundQuiet
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @WUZI2_24132
if 
  not is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHate
goto_if_false @WUZI2_24096
523@($d6_player_reached_sixth_creation_pt,7i) = 1
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1
goto @WUZI2_24125

:WUZI2_24096
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1

:WUZI2_24125
goto @WUZI2_24230

:WUZI2_24132
if or
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.Damage
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.GunAimedAt
goto_if_false @WUZI2_24223
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1
goto @WUZI2_24230

:WUZI2_24223
530@ += 1

:WUZI2_24230
goto @WUZI2_24554

:WUZI2_24237
if or
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.Damage
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.GunAimedAt
goto_if_false @WUZI2_24336
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
set_lvar_int_to_var_int 532@ = $d6_player_reached_sixth_creation_pt
531@ += 1
goto @WUZI2_24412

:WUZI2_24336
if or
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHateBadlyLit
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.SoundQuiet
goto_if_false @WUZI2_24383
531@ += 1
goto @WUZI2_24412

:WUZI2_24383
523@($d6_player_reached_sixth_creation_pt,7i) = 0
451@($d6_player_reached_sixth_creation_pt,7i) = 0
530@ += 1

:WUZI2_24412
goto @WUZI2_24554

:WUZI2_24419
if or
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.AcquaintancePedHateBadlyLit
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.Damage
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.GunAimedAt
  is_char_responding_to_event 436@($d6_player_reached_sixth_creation_pt,7i) {event} Event.SoundQuiet
goto_if_false @WUZI2_24518
set_lvar_int_to_var_int 532@ = $d6_player_reached_sixth_creation_pt
531@ += 1
goto @WUZI2_24547

:WUZI2_24518
523@($d6_player_reached_sixth_creation_pt,7i) = 0
451@($d6_player_reached_sixth_creation_pt,7i) = 0
530@ += 1

:WUZI2_24547
goto @WUZI2_24554

:WUZI2_24554
goto @WUZI2_24603

:WUZI2_24561
if 
  523@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_24603
remove_blip 443@($d6_player_reached_sixth_creation_pt,8i)
523@($d6_player_reached_sixth_creation_pt,7i) = -1

:WUZI2_24603
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_23900

:WUZI2_24617
switch_start 522@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24872 {caseNum1} 0 {caseLabel1} @WUZI2_24680 {caseNum2} 1 {caseLabel2} @WUZI2_24744 {caseNum3} 2 {caseLabel3} @WUZI2_24808 {caseNum4} -1 {caseLabel4} @WUZI2_24872 {caseNum5} -1 {caseLabel5} @WUZI2_24872 {caseNum6} -1 {caseLabel6} @WUZI2_24872 {caseNum7} -1 {caseLabel7} @WUZI2_24872

:WUZI2_24680
if 
  531@ > 0
goto_if_false @WUZI2_24712
522@ = 2
goto @WUZI2_24737

:WUZI2_24712
if 
  531@ > 0
goto_if_false @WUZI2_24737
522@ = 1

:WUZI2_24737
goto @WUZI2_24872

:WUZI2_24744
if 
  531@ > 0
goto_if_false @WUZI2_24776
522@ = 2
goto @WUZI2_24801

:WUZI2_24776
if 
  531@ == 0
goto_if_false @WUZI2_24801
522@ = 0

:WUZI2_24801
goto @WUZI2_24872

:WUZI2_24808
if and
  531@ == 0
  531@ == 0
goto_if_false @WUZI2_24865
522@ = 0
if and
  not is_char_dead 436@(532@,7i)
  not is_char_dead $scplayer
goto_if_false @WUZI2_24865

:WUZI2_24865
goto @WUZI2_24872

:WUZI2_24872
return 

:WUZI2_24874
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_24881
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_25425
if 
  451@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_25411
if 
  not is_char_dead 436@($d6_player_reached_sixth_creation_pt,7i)
goto_if_false @WUZI2_25411
switch_start 451@($d6_player_reached_sixth_creation_pt,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_25411 {caseNum1} 0 {caseLabel1} @WUZI2_25008 {caseNum2} 1 {caseLabel2} @WUZI2_25100 {caseNum3} 2 {caseLabel3} @WUZI2_25221 {caseNum4} 3 {caseLabel4} @WUZI2_25347 {caseNum5} 4 {caseLabel5} @WUZI2_25404 {caseNum6} -1 {caseLabel6} @WUZI2_25411 {caseNum7} -1 {caseLabel7} @WUZI2_25411

:WUZI2_25008
43@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 466@($d6_player_reached_sixth_creation_pt,4f) {y} 470@($d6_player_reached_sixth_creation_pt,4f) {z} 474@($d6_player_reached_sixth_creation_pt,4f) {speed} MoveState.Walk {vehicle} -2
task_achieve_heading -1 {heading} 478@($d6_player_reached_sixth_creation_pt,4f)
task_stand_still -1 {time} 5000
close_sequence_task 43@
perform_sequence_task 436@($d6_player_reached_sixth_creation_pt,7i) {sequence} 43@
clear_sequence_task 43@
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25411

:WUZI2_25100
44@ = get_sequence_progress 436@($d6_player_reached_sixth_creation_pt,7i)
if 
  44@ == 2
goto_if_false @WUZI2_25214
if 
  locate_char_on_foot_2d 436@($d6_player_reached_sixth_creation_pt,7i) {x} 466@($d6_player_reached_sixth_creation_pt,4f) {y} 470@($d6_player_reached_sixth_creation_pt,4f) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @WUZI2_25194
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25214

:WUZI2_25194
clear_char_tasks 436@($d6_player_reached_sixth_creation_pt,7i)
451@($d6_player_reached_sixth_creation_pt,7i) -= 1

:WUZI2_25214
goto @WUZI2_25411

:WUZI2_25221
45@ = generate_random_int_in_range 7000 {max} 15000
46@ = generate_random_int_in_range 0 {max} 500
clear_char_tasks 436@($d6_player_reached_sixth_creation_pt,7i)
43@ = open_sequence_task 
task_stand_still -1 {time} 45@
if 
  250 > 46@
goto_if_false @WUZI2_25296
task_look_about -1 {time} 8000
goto @WUZI2_25300

:WUZI2_25296
task_scratch_head -1

:WUZI2_25300
task_stand_still -1 {time} 5000
close_sequence_task 43@
perform_sequence_task 436@($d6_player_reached_sixth_creation_pt,7i) {sequence} 43@
clear_sequence_task 43@
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25411

:WUZI2_25347
44@ = get_sequence_progress 436@($d6_player_reached_sixth_creation_pt,7i)
if 
  44@ == 2
goto_if_false @WUZI2_25397
clear_char_tasks 436@($d6_player_reached_sixth_creation_pt,7i)
451@($d6_player_reached_sixth_creation_pt,7i) -= 1

:WUZI2_25397
goto @WUZI2_25411

:WUZI2_25404
goto @WUZI2_25411

:WUZI2_25411
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_24881

:WUZI2_25425
return 

:WUZI2_25427
$d6_player_reached_sixth_creation_pt = 4
$pointer_W2 = 0

:WUZI2_25441
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26089
if 
  451@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_26068
if 
  not is_char_dead 436@($d6_player_reached_sixth_creation_pt,7i)
goto_if_false @WUZI2_26068
set_var_int_to_lvar_int $pointer2_W2 = 458@($pointer_W2,4i)
set_var_int_to_lvar_int $pointer3_W2 = 462@($pointer_W2,4i)
switch_start 451@($d6_player_reached_sixth_creation_pt,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_26068 {caseNum1} 0 {caseLabel1} @WUZI2_25592 {caseNum2} 1 {caseLabel2} @WUZI2_25767 {caseNum3} 2 {caseLabel3} @WUZI2_25857 {caseNum4} 3 {caseLabel4} @WUZI2_25989 {caseNum5} 4 {caseLabel5} @WUZI2_26061 {caseNum6} -1 {caseLabel6} @WUZI2_26068 {caseNum7} -1 {caseLabel7} @WUZI2_26068

:WUZI2_25592
43@ = open_sequence_task 

:WUZI2_25597
if 
  is_int_var_greater_or_equal_to_int_var $pointer3_W2 >= $pointer2_W2
goto_if_false @WUZI2_25659
task_go_to_coord_any_means -1 {x} 482@($pointer2_W2,10f) {y} 492@($pointer2_W2,10f) {z} 502@($pointer2_W2,10f) {speed} MoveState.Walk {vehicle} -2
$pointer2_W2 += 1
goto @WUZI2_25597

:WUZI2_25659
if 
  $d6_player_reached_sixth_creation_pt == 6
goto_if_false @WUZI2_25702
set_sequence_to_repeat 43@ {state} True
451@($d6_player_reached_sixth_creation_pt,7i) = 90
goto @WUZI2_25738

:WUZI2_25702
task_achieve_heading -1 {heading} 512@($pointer3_W2,10f)
task_stand_still -1 {time} 5000
task_stand_still -1 {time} 5000
451@($d6_player_reached_sixth_creation_pt,7i) += 1

:WUZI2_25738
close_sequence_task 43@
perform_sequence_task 436@($d6_player_reached_sixth_creation_pt,7i) {sequence} 43@
clear_sequence_task 43@
goto @WUZI2_26068

:WUZI2_25767
set_lvar_int_to_var_int 533@ = $pointer3_W2
sub_int_var_from_int_lvar 533@ -= $pointer2_W2
533@ += 3
44@ = get_sequence_progress 436@($d6_player_reached_sixth_creation_pt,7i)
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_25850
if 
  $d6_player_reached_sixth_creation_pt == 4
goto_if_false @WUZI2_25839

:WUZI2_25839
451@($d6_player_reached_sixth_creation_pt,7i) += 1

:WUZI2_25850
goto @WUZI2_26068

:WUZI2_25857
43@ = open_sequence_task 

:WUZI2_25862
if 
  is_int_var_greater_or_equal_to_int_var $pointer3_W2 >= $pointer2_W2
goto_if_false @WUZI2_25924
task_go_to_coord_any_means -1 {x} 482@($pointer3_W2,10f) {y} 492@($pointer3_W2,10f) {z} 502@($pointer3_W2,10f) {speed} MoveState.Walk {vehicle} -2
$pointer3_W2 -= 1
goto @WUZI2_25862

:WUZI2_25924
task_achieve_heading -1 {heading} 512@($pointer2_W2,10f)
task_stand_still -1 {time} 5000
task_stand_still -1 {time} 5000
451@($d6_player_reached_sixth_creation_pt,7i) += 1
close_sequence_task 43@
perform_sequence_task 436@($d6_player_reached_sixth_creation_pt,7i) {sequence} 43@
clear_sequence_task 43@
goto @WUZI2_26068

:WUZI2_25989
set_lvar_int_to_var_int 533@ = $pointer3_W2
sub_int_var_from_int_lvar 533@ -= $pointer2_W2
533@ += 3
44@ = get_sequence_progress 436@($d6_player_reached_sixth_creation_pt,7i)
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_26054
451@($d6_player_reached_sixth_creation_pt,7i) = 0

:WUZI2_26054
goto @WUZI2_26068

:WUZI2_26061
goto @WUZI2_26068

:WUZI2_26068
$d6_player_reached_sixth_creation_pt += 1
$pointer_W2 += 1
goto @WUZI2_25441

:WUZI2_26089
return 
$d6_player_reached_sixth_creation_pt = 0
574@ = 1
573@ = get_current_char_weapon $scplayer

:WUZI2_26113
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26181
get_char_weapon_in_slot $scplayer {weaponSlotId} 574@ {var_weaponType} 534@($d6_player_reached_sixth_creation_pt,13i) {var_weaponAmmo} 547@($d6_player_reached_sixth_creation_pt,13i) {var_weaponModel} 560@($d6_player_reached_sixth_creation_pt,13i)
$d6_player_reached_sixth_creation_pt += 1
574@ += 1
goto @WUZI2_26113

:WUZI2_26181
return 
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26190
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26260
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26246
request_model 560@($d6_player_reached_sixth_creation_pt,13i)
575@ += 1

:WUZI2_26246
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26190

:WUZI2_26260
if 
  not is_int_lvar_equal_to_int_lvar 576@ == 575@
goto_if_false @WUZI2_26385
wait 0
576@ = 0
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26297
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26378
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26364
if 
  has_model_loaded 560@($d6_player_reached_sixth_creation_pt,13i)
goto_if_false @WUZI2_26364
576@ += 1

:WUZI2_26364
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26297

:WUZI2_26378
goto @WUZI2_26260

:WUZI2_26385
remove_all_char_weapons $scplayer
$d6_player_reached_sixth_creation_pt = 0
574@ = 1

:WUZI2_26404
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26462
give_weapon_to_char $scplayer {weaponType} 534@($d6_player_reached_sixth_creation_pt,13i) {ammo} 547@($d6_player_reached_sixth_creation_pt,13i)
$d6_player_reached_sixth_creation_pt += 1
574@ += 1
goto @WUZI2_26404

:WUZI2_26462
set_current_char_weapon $scplayer {weaponType} 573@
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26477
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26540
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26526
mark_model_as_no_longer_needed 560@($d6_player_reached_sixth_creation_pt,13i)

:WUZI2_26526
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26477

:WUZI2_26540
return 

:WUZI2_26542
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  40@ == 1
goto_if_false @WUZI2_26586
print_now 41@s {time} 5000 {flag} 1

:WUZI2_26586
return 

:WUZI2_26588
$flag_wuzi_mission_counter += 1
register_mission_passed 'WUZI_2'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 11000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 11000
award_player_mission_respect 25
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:WUZI2_26652
if 
  $guard_limit_W2 == 0
goto_if_false @WUZI2_27103
set_max_wanted_level 257@
if 
  is_player_playing $player1
goto_if_false @WUZI2_26702
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:WUZI2_26702
start_new_script @A_TERM 
remove_blip 259@
remove_pickup 258@
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBULB
remove_animation "DAM_JUMP"
remove_blip 36@
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26823
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26873
remove_blip 443@($d6_player_reached_sixth_creation_pt,8i)
mark_char_as_no_longer_needed 436@($d6_player_reached_sixth_creation_pt,7i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26823

:WUZI2_26873
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26880
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26948
remove_blip 407@($d6_player_reached_sixth_creation_pt,6i)
mark_object_as_no_longer_needed 389@($d6_player_reached_sixth_creation_pt,6i)
mark_object_as_no_longer_needed 395@($d6_player_reached_sixth_creation_pt,6i)
mark_object_as_no_longer_needed 401@($d6_player_reached_sixth_creation_pt,6i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26880

:WUZI2_26948
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26955
if 
  6 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_27005
mark_char_as_no_longer_needed 308@($d6_player_reached_sixth_creation_pt,6i)
mark_char_as_no_longer_needed 417@($d6_player_reached_sixth_creation_pt,6i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26955

:WUZI2_27005
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_27012
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_27094
remove_blip 292@($d6_player_reached_sixth_creation_pt,2i)
mark_char_as_no_longer_needed 300@($d6_player_reached_sixth_creation_pt,2i)
mark_car_as_no_longer_needed 290@($d6_player_reached_sixth_creation_pt,2i)
remove_blip 415@
mark_char_as_no_longer_needed 417@($d6_player_reached_sixth_creation_pt,6i)
mark_car_as_no_longer_needed 413@($d6_player_reached_sixth_creation_pt,2i)
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_27012

:WUZI2_27094
release_weather 
goto @WUZI2_27255

:WUZI2_27103
if 
  is_player_playing $player1
goto_if_false @WUZI2_27126
set_player_control $player1 {state} False

:WUZI2_27126
set_char_coordinates $scplayer {x} -2154.8149 {y} 641.3157 {z} 51.3594
set_char_heading $scplayer {heading} 268.4865
load_scene -2154.8149 {y} 641.3157 {z} 51.3594
TIMERA = 0

:WUZI2_27180
if 
  500 > TIMERA
goto_if_false @WUZI2_27210
wait 0
goto @WUZI2_27180

:WUZI2_27210
do_fade 0 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @WUZI2_27239
set_player_control $player1 {state} True

:WUZI2_27239
print_now 'WZI2_60' {time} 8000 {flag} 1

:WUZI2_27255
$onmission = 0
mission_has_finished 
return 

//-------------Mission 57---------------
// Originally: The Da Nang Thang

:WUZI5
script_name 'WUZI5'
gosub @WUZI5_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI5_38
gosub @WUZI5_20666

:WUZI5_38
gosub @WUZI5_20753
terminate_this_script 

:WUZI5_47
$onmission = 1
register_mission_given 
load_mission_text 'WUZI4'
if 
  $onmission == 0
goto_if_false @WUZI5_302
create_char PedType.Mission5 {modelId} 118 {x} -2433.5 {y} 1536.3 {z} 16.4 {var_handle} 36@(94@,17i)
58@ = create_char PedType.Mission5 {modelId} 118 {x} -2433.5 {y} 1536.3 {z} 16.4
create_char PedType.Mission5 {modelId} 118 {x} -2389.2 {y} 1537.1 {z} 1.1 {var_handle} 59@(96@,4i)
63@ = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 6 {x} -2412.3999 {y} 1547.9 {z} 25.0
64@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} -2427.8 {y} 1547.6 {z} 22.1
add_blip_for_char 36@(94@,17i) {var_handle} 81@(94@,9i)
53@ = create_car 473 {x} -2430.7 {y} 1563.6 {z} 0.0
54@ = create_car 473 {x} -2442.3999 {y} 1564.6 {z} 0.0
55@ = create_car 473 {x} -2426.8999 {y} 1570.6 {z} 0.0

:WUZI5_302
clear_prints 
wait 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
114@ = 0
94@ = 0
95@ = 0
96@ = 0
set_lvar_int_to_constant 97@ = 121
set_lvar_int_to_constant 98@ = 122
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
144@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
149@ = 0.0
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.0
154@ = 0.0
155@ = 0.0
make_player_gang_disappear 
set_area_visible 1
load_cutscene 'WOOZIE4'

:WUZI5_613
if 
  not has_cutscene_loaded 
goto_if_false @WUZI5_637
wait 0
goto @WUZI5_613

:WUZI5_637
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI5_646
if 
  not has_cutscene_finished 
goto_if_false @WUZI5_670
wait 0
goto @WUZI5_646

:WUZI5_670
do_fade 0 {direction} Fade.Out

:WUZI5_676
if 
  get_fading_status 
goto_if_false @WUZI5_700
wait 0
goto @WUZI5_676

:WUZI5_700
set_area_visible 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
force_weather_now WeatherType.ExtraSunnySf
wait 0
request_model 118
request_model 487
request_animation "CAR_CHAT"
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
158@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
157@ = load_char_decision_maker DecisionMakerType.Tough
159@ = load_char_decision_maker DecisionMakerType.Steal
clear_area -2167.8 {y} 634.9 {z} 69.7 {radius} 5.0 {clearParticles} True
34@ = create_car 487 {x} -2167.8 {y} 634.9 {z} 69.7
set_car_heading 34@ {heading} 92.3
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
35@ = create_char_inside_car 34@ {pedType} PedType.Mission5 {modelId} 118
set_char_never_targetted 35@ {state} True
set_load_collision_for_char_flag 35@ {state} True
set_char_decision_maker 35@ {handleOrTemplate} 158@
clear_area -2168.3999 {y} 639.0 {z} 69.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2168.3999 {y} 639.0 {z} 69.9
set_char_heading $scplayer {heading} 189.4
load_scene -2168.3999 {y} 639.0 {z} 69.9

:WUZI5_975
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI5_1001
goto @WUZI5_20684

:WUZI5_1001
alter_wanted_level $player1 {wantedLevel} 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1040
goto @WUZI5_20666

:WUZI5_1040
if 
  90@ == 0
goto_if_false @WUZI5_2013
if 
  91@ == 0
goto_if_false @WUZI5_1311
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2172.7 {y} 636.0 {z} 71.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2161.7 {y} 631.4 {z} 72.4 {switchStyle} SwitchType.JumpCut
shut_char_up_for_scripted_speech $scplayer {state} True
156@ = open_sequence_task 
task_enter_car_as_passenger -1 {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
load_scene_in_direction -2168.7 {y} 634.9 {z} 70.3 {heading} 248.0
do_fade 500 {direction} Fade.In

:WUZI5_1234
if 
  get_fading_status 
goto_if_false @WUZI5_1258
wait 0
goto @WUZI5_1234

:WUZI5_1258
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1290
goto @WUZI5_20666

:WUZI5_1290
92@ = 1
skip_cutscene_start_internal @WUZI5_1590
91@ = 1

:WUZI5_1311
if 
  91@ == 1
goto_if_false @WUZI5_1466
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI5_1466
task_play_anim 35@ {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 8000
task_play_anim $scplayer {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 8500
113@ = 1
115@ = 0
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_1466
if 
  91@ == 2
goto_if_false @WUZI5_1547
if 
  TIMERA > 9000
goto_if_false @WUZI5_1547
heli_goto_coords 34@ {x} -2167.8 {y} 634.9 {z} 80.7 {minAltitude} 0.0 {maxAltitude} 80.7
TIMERA = 0
91@ = 3

:WUZI5_1547
if 
  91@ == 3
goto_if_false @WUZI5_2013
if 
  113@ == 0
goto_if_false @WUZI5_2013
92@ = 0

:WUZI5_1590
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1624
goto @WUZI5_20666

:WUZI5_1624
if 
  92@ == 1
goto_if_false @WUZI5_1659
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0

:WUZI5_1659
do_fade 1000 {direction} Fade.Out

:WUZI5_1666
if 
  get_fading_status 
goto_if_false @WUZI5_1694
wait 0
request_car_recording 25
goto @WUZI5_1666

:WUZI5_1694
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1726
goto @WUZI5_20666

:WUZI5_1726
request_model 362
request_model 359
request_model 372
request_model 121
request_model 122
request_car_recording 25
load_all_models_now 
clear_prints 
clear_char_tasks $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
attach_char_to_car $scplayer {vehicle} 34@ {xOffset} -1.4 {yOffset} 1.0 {zOffset} -0.1 {heading} Facing.Left {headingRange} 90.0 {weaponType} WeaponType.Minigun
start_playback_recorded_car 34@ {path} 25
skip_in_playback_recorded_car 34@ {amount} 750.0
set_heli_blades_full_speed 34@
remove_animation "CAR_CHAT"
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_1903
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:WUZI5_1903
load_scene_in_direction -1735.7 {y} 1303.5 {z} 7.1 {heading} 120.8
do_fade 2000 {direction} Fade.In

:WUZI5_1932
if 
  get_fading_status 
goto_if_false @WUZI5_1960
wait 0
request_car_recording 25
goto @WUZI5_1932

:WUZI5_1960
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1992
goto @WUZI5_20666

:WUZI5_1992
TIMERA = 0
91@ = 0
90@ = 1

:WUZI5_2013
if 
  90@ == 1
goto_if_false @WUZI5_4184
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_2127
if 
  2 > 95@
goto_if_false @WUZI5_2078
gosub @WUZI5_21147
goto @WUZI5_2127

:WUZI5_2078
if 
  not is_car_dead 34@
goto_if_false @WUZI5_2127
if 
  is_playback_going_on_for_car 34@
goto_if_false @WUZI5_2120
stop_playback_recorded_car 34@
make_heli_come_crashing_down 34@

:WUZI5_2120
91@ = 3

:WUZI5_2127
if 
  114@ == 0
goto_if_false @WUZI5_2192
if 
  TIMERA > 6000
goto_if_false @WUZI5_2192
113@ = 2
115@ = 0
gosub @WUZI5_26535
114@ = 1

:WUZI5_2192
if 
  2 > 95@
goto_if_false @WUZI5_2262
if 
  locate_char_any_means_2d $scplayer {x} -2409.1001 {y} 1541.0 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @WUZI5_2255
gosub @WUZI5_21147

:WUZI5_2255
goto @WUZI5_2276

:WUZI5_2262
gosub @WUZI5_22151
gosub @WUZI5_24641

:WUZI5_2276
if 
  not is_car_dead 34@
goto_if_false @WUZI5_3356
if 
  91@ == 0
goto_if_false @WUZI5_2386
if 
  locate_char_any_means_2d $scplayer {x} -2287.1001 {y} 1582.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2386
113@ = 3
115@ = 0
gosub @WUZI5_26535
set_playback_speed 34@ {speed} 0.6
91@ = 1

:WUZI5_2386
if 
  91@ == 1
goto_if_false @WUZI5_2602
if 
  locate_char_any_means_2d $scplayer {x} -2483.3 {y} 1509.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2602
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2429.5 {y} 1536.8 {z} 30.8 {radius} 1.0 {clearParticles} True
58@ = create_char PedType.Mission5 {modelId} 97@(99@,2i) {x} -2429.5 {y} 1536.8 {z} 30.8
give_weapon_to_char 58@ {weaponType} WeaponType.RocketLauncher {ammo} 12
set_char_stay_in_same_place 58@ {state} True
set_char_proofs 58@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2431.0 {y} 1530.4 {z} 30.8 {speed} MoveState.Run {time} -1
task_destroy_car -1 {vehicle} 34@
close_sequence_task 156@
perform_sequence_task 58@ {sequence} 156@
clear_sequence_task 156@
TIMERA = 0
91@ = 2

:WUZI5_2602
if 
  91@ == 2
goto_if_false @WUZI5_2674
if 
  TIMERA > 1800
goto_if_false @WUZI5_2674
113@ = 4
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 3

:WUZI5_2674
if 
  91@ == 3
goto_if_false @WUZI5_2797
if 
  locate_char_any_means_2d $scplayer {x} -2401.0 {y} 1499.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2797
shake_pad PadId.Pad1 {time} 10000 {intensity} 200
140@, 141@, 142@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
add_explosion 140@ {y} 141@ {z} 142@ {type} ExplosionType.Aircraft
set_car_health 34@ {health} 300
91@ = 4

:WUZI5_2797
if 
  91@ > 3
goto_if_false @WUZI5_3041
140@, 141@, 142@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
144@ = generate_random_float_in_range -2.0 {max} 2.0
add_float_lvar_to_float_lvar 144@ += 140@
145@ = generate_random_float_in_range -2.0 {max} 2.0
add_float_lvar_to_float_lvar 145@ += 141@
set_lvar_float_to_lvar_float 146@ = 142@
147@ = generate_random_float_in_range -1.5 {max} 1.5
148@ = generate_random_float_in_range -1.5 {max} 1.5
149@ = generate_random_float_in_range 0.0 {max} 1.0
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.2
154@ = 1.0
155@ = 1.0
add_smoke_particle 144@ {y} 145@ {z} 146@ {velocityX} 147@ {velocityY} 148@ {velocityZ} 149@ {red} 150@ {green} 151@ {blue} 152@ {alpha} 153@ {size} 154@ {lastFactor} 155@

:WUZI5_3041
if 
  91@ == 4
goto_if_false @WUZI5_3293
if 
  locate_char_any_means_2d $scplayer {x} -2381.0 {y} 1489.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_3293
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
detach_char_from_car $scplayer
clear_area -2351.7 {y} 1487.4 {z} 1.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2351.7 {y} 1487.4 {z} 1.0
113@ = 4
115@ = 2
116@ = 5
gosub @WUZI5_26535
set_playback_speed 34@ {speed} 1.0
set_fixed_camera_position -2353.5 {y} 1450.2 {z} 82.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2365.3 {y} 1471.5 {z} 64.7 {switchStyle} SwitchType.JumpCut
92@ = 1
skip_cutscene_start_internal @WUZI5_3397
91@ = 5

:WUZI5_3293
if 
  91@ == 5
goto_if_false @WUZI5_3356
if 
  locate_car_2d 34@ {x} -2360.0 {y} 1481.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @WUZI5_3356
91@ = 6

:WUZI5_3356
if 
  7 > 91@
goto_if_false @WUZI5_4184
if 
  is_car_in_water 34@
goto_if_false @WUZI5_4184
92@ = 0

:WUZI5_3397
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_3431
goto @WUZI5_20666

:WUZI5_3431
if 
  92@ == 1
goto_if_false @WUZI5_3518
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_3473
if 
  get_fading_status 
goto_if_false @WUZI5_3497
wait 0
goto @WUZI5_3473

:WUZI5_3497
if 
  not is_car_dead 34@
goto_if_false @WUZI5_3518
skip_to_end_and_stop_playback_recorded_car 34@

:WUZI5_3518
shake_pad PadId.Pad1 {time} 0 {intensity} 0
do_fade 1000 {direction} Fade.Out

:WUZI5_3533
if 
  get_fading_status 
goto_if_false @WUZI5_3557
wait 0
goto @WUZI5_3533

:WUZI5_3557
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
detach_char_from_car $scplayer
mark_char_as_no_longer_needed 35@
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 118
request_model 342
request_model 335
request_model 349
load_all_models_now 
remove_all_char_weapons $scplayer
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Knife
clear_char_tasks_immediately $scplayer
clear_area -2351.7 {y} 1487.4 {z} 0.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2351.7 {y} 1487.4 {z} -1.0
set_char_heading $scplayer {heading} 318.0
if 
  not is_char_dead 36@
goto_if_false @WUZI5_3738
clear_char_tasks 36@

:WUZI5_3738
if 
  not is_char_dead 37@
goto_if_false @WUZI5_3759
clear_char_tasks 37@

:WUZI5_3759
if 
  not is_char_dead 38@
goto_if_false @WUZI5_3780
clear_char_tasks 38@

:WUZI5_3780
if 
  not is_char_dead 39@
goto_if_false @WUZI5_3801
clear_char_tasks 39@

:WUZI5_3801
if 
  not is_char_dead 40@
goto_if_false @WUZI5_3822
clear_char_tasks 40@

:WUZI5_3822
if 
  not is_char_dead 41@
goto_if_false @WUZI5_3850
clear_char_tasks 41@
task_toggle_duck 41@ {state} True

:WUZI5_3850
if 
  not is_char_dead 43@
goto_if_false @WUZI5_3871
clear_char_tasks 43@

:WUZI5_3871
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
remove_blip 87@
remove_blip 88@
remove_blip 89@
80@ = add_blip_for_coord -2329.1001 {y} 1528.7 {z} 0.0
delete_char 58@
100@ = get_char_health $scplayer
if 
  100@ > 25
goto_if_false @WUZI5_4014
100@ /= 4
100@ *= 3
if 
  25 > 100@
goto_if_false @WUZI5_4006
100@ = 25

:WUZI5_4006
set_char_health $scplayer {health} 100@

:WUZI5_4014
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_char_tasks $scplayer
clear_prints 
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
do_fade 2000 {direction} Fade.In

:WUZI5_4074
if 
  get_fading_status 
goto_if_false @WUZI5_4142
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
wait 0
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
goto @WUZI5_4074

:WUZI5_4142
113@ = 12
115@ = 0
gosub @WUZI5_26535
114@ = 0
91@ = 0
90@ = 2

:WUZI5_4184
if 
  90@ == 2
goto_if_false @WUZI5_7182
if 
  91@ == 0
goto_if_false @WUZI5_4355
if 
  locate_char_any_means_3d $scplayer {x} -2329.1001 {y} 1528.7 {z} 0.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI5_4296
do_fade 500 {direction} Fade.Out
TIMERA = 0
91@ = 1
goto @WUZI5_4355

:WUZI5_4296
if 
  114@ == 0
goto_if_false @WUZI5_4355
if 
  113@ == 0
goto_if_false @WUZI5_4355
print_now 'WUZ4_02' {time} 7000 {flag} 1
114@ = 1

:WUZI5_4355
if 
  91@ == 1
goto_if_false @WUZI5_6385
if 
  TIMERA > 500
goto_if_false @WUZI5_6385
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
request_model #KMB_CONTAINER_RED
load_all_models_now 
request_animation "SWAT"

:WUZI5_4437
if 
  not has_animation_loaded "SWAT"
goto_if_false @WUZI5_4467
wait 0
goto @WUZI5_4437

:WUZI5_4467
71@ = create_object #KMB_CONTAINER_RED {x} -2323.8999 {y} 1527.3 {z} 14.0
set_object_collision 71@ {state} True
set_object_dynamic 71@ {state} False
set_object_visible 71@ {state} False
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_4547
goto @WUZI5_20666

:WUZI5_4547
clear_char_tasks_immediately $scplayer
clear_area -2323.2 {y} 1530.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.2 {y} 1530.2 {z} 16.9
set_char_heading $scplayer {heading} 3.3
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 36@
goto_if_false @WUZI5_4721
clear_area -2350.6001 {y} 1561.2 {z} 22.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} -2350.6001 {y} 1561.2 {z} 22.1
set_char_heading 36@ {heading} 4.7
task_play_anim 36@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:WUZI5_4721
if 
  not is_char_dead 37@
goto_if_false @WUZI5_4798
clear_area -2357.1001 {y} 1529.2 {z} 25.0 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} -2357.1001 {y} 1529.2 {z} 25.0
set_char_heading 37@ {heading} 180.9
task_look_about 37@ {time} -2

:WUZI5_4798
delete_char 38@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2388.3 {y} 1553.1 {z} 25.0 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2388.3 {y} 1553.1 {z} 25.0
set_char_heading 38@ {heading} 0.0
set_char_decision_maker 38@ {handleOrTemplate} 157@
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 39@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2390.8999 {y} 1552.6 {z} 25.0 {radius} 1.0 {clearParticles} True
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2390.8999 {y} 1552.6 {z} 25.0
set_char_heading 39@ {heading} 0.0
set_char_decision_maker 39@ {handleOrTemplate} 157@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 40@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2389.8 {y} 1554.9 {z} 25.0 {radius} 1.0 {clearParticles} True
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2389.8 {y} 1554.9 {z} 25.0
set_char_heading 40@ {heading} 220.6
set_char_decision_maker 40@ {handleOrTemplate} 157@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
if 
  not is_char_dead 39@
goto_if_false @WUZI5_5139
if 
  not is_char_dead 40@
goto_if_false @WUZI5_5139
task_chat_with_char 40@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 40@ {leadSpeaker} False {_p4} 1

:WUZI5_5139
delete_char 41@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2407.3 {y} 1547.6 {z} 25.0 {radius} 1.0 {clearParticles} True
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2407.3 {y} 1547.6 {z} 25.0
set_char_heading 41@ {heading} 319.2
set_char_decision_maker 41@ {handleOrTemplate} 157@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 42@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2420.3999 {y} 1553.4 {z} 25.0 {radius} 1.0 {clearParticles} True
42@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2420.3999 {y} 1553.4 {z} 25.0
set_char_heading 42@ {heading} 180.0
set_char_decision_maker 42@ {handleOrTemplate} 158@
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 43@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2427.6001 {y} 1532.3 {z} 25.0 {radius} 1.0 {clearParticles} True
43@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2427.6001 {y} 1532.3 {z} 25.0
set_char_heading 43@ {heading} 275.0
set_char_decision_maker 43@ {handleOrTemplate} 157@
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 44@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2427.8999 {y} 1553.9 {z} 25.0 {radius} 1.0 {clearParticles} True
44@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2427.8999 {y} 1553.9 {z} 25.0
set_char_heading 44@ {heading} 183.8
set_char_decision_maker 44@ {handleOrTemplate} 157@
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 30000
clear_area -2334.5 {y} 1533.3 {z} 16.3 {radius} 1.0 {clearParticles} True
46@ = create_char PedType.Mission2 {modelId} 121 {x} -2334.5 {y} 1533.3 {z} 16.3
set_char_heading 46@ {heading} 116.3
give_weapon_to_char 46@ {weaponType} WeaponType.Shotgun {ammo} 3000
set_char_kinda_stay_in_same_place 46@ {state} True
set_char_decision_maker 46@ {handleOrTemplate} 157@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2401.8 {y} 1530.3 {z} 30.8 {radius} 1.0 {clearParticles} True
47@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2401.8 {y} 1530.3 {z} 30.8
set_char_heading 47@ {heading} 0.0
set_char_decision_maker 47@ {handleOrTemplate} 157@
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2405.5 {y} 1530.3 {z} 30.8 {radius} 1.0 {clearParticles} True
48@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2405.5 {y} 1530.3 {z} 30.8
set_char_heading 48@ {heading} 0.0
set_char_decision_maker 48@ {handleOrTemplate} 158@
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2426.5 {y} 1548.8 {z} 22.2 {radius} 1.0 {clearParticles} True
49@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2426.5 {y} 1548.8 {z} 22.2
set_char_heading 49@ {heading} 180.0
set_char_decision_maker 49@ {handleOrTemplate} 158@
set_char_stay_in_same_place 49@ {state} True
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2422.5 {y} 1548.8 {z} 22.2 {radius} 1.0 {clearParticles} True
50@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2422.5 {y} 1548.8 {z} 22.2
set_char_heading 50@ {heading} 180.0
set_char_decision_maker 50@ {handleOrTemplate} 158@
set_char_stay_in_same_place 50@ {state} True
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2339.2 {y} 1555.5 {z} 24.7 {radius} 1.0 {clearParticles} True
51@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2339.2 {y} 1555.5 {z} 24.7
set_char_heading 51@ {heading} 348.3
set_char_decision_maker 51@ {handleOrTemplate} 157@
set_char_kinda_stay_in_same_place 51@ {state} True
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_look_about 51@ {time} -2
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2360.0 {y} 1560.3 {z} 25.0 {radius} 1.0 {clearParticles} True
52@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2360.0 {y} 1560.3 {z} 25.0
set_char_heading 52@ {heading} 26.4
set_char_decision_maker 52@ {handleOrTemplate} 157@
set_char_kinda_stay_in_same_place 52@ {state} True
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_look_about 52@ {time} -2
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2334.7 {y} 1529.8 {z} 16.3 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 126.8
task_look_about -1 {time} -2
close_sequence_task 156@
perform_sequence_task 46@ {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2332.5 {y} 1534.4 {z} 18.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2342.5 {y} 1513.7 {z} 15.33 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
113@ = 5
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_6385
if 
  91@ == 2
goto_if_false @WUZI5_6443
if 
  TIMERA > 2000
goto_if_false @WUZI5_6443
92@ = 1
skip_cutscene_start_internal @WUZI5_6715
91@ = 3

:WUZI5_6443
if 
  91@ == 3
goto_if_false @WUZI5_6533
if 
  113@ == 0
goto_if_false @WUZI5_6533
if 
  TIMERA > 3200
goto_if_false @WUZI5_6533
113@ = 5
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 4

:WUZI5_6533
if 
  91@ == 4
goto_if_false @WUZI5_6671
if 
  TIMERA > 6000
goto_if_false @WUZI5_6671
clear_char_tasks_immediately $scplayer
156@ = open_sequence_task 
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 85.1
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2320.3999 {y} 1535.2 {z} 18.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2354.3999 {y} 1508.1 {z} 18.9 {switchStyle} SwitchType.JumpCut
91@ = 5

:WUZI5_6671
if 
  91@ == 5
goto_if_false @WUZI5_7182
if 
  TIMERA > 8500
goto_if_false @WUZI5_7182
92@ = 0

:WUZI5_6715
skip_cutscene_end 
if 
  92@ == 1
goto_if_false @WUZI5_6815
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_6759
if 
  get_fading_status 
goto_if_false @WUZI5_6783
wait 0
goto @WUZI5_6759

:WUZI5_6783
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_6815
goto @WUZI5_20666

:WUZI5_6815
if 
  not is_char_dead 46@
goto_if_false @WUZI5_6839
set_char_decision_maker 46@ {handleOrTemplate} 159@

:WUZI5_6839
if 
  not is_char_dead 51@
goto_if_false @WUZI5_6863
set_char_decision_maker 51@ {handleOrTemplate} 159@

:WUZI5_6863
if 
  not is_char_dead 52@
goto_if_false @WUZI5_6887
set_char_decision_maker 52@ {handleOrTemplate} 159@

:WUZI5_6887
if 
  not is_char_dead 36@
goto_if_false @WUZI5_6911
set_char_decision_maker 36@ {handleOrTemplate} 159@

:WUZI5_6911
if 
  not is_char_dead 37@
goto_if_false @WUZI5_6935
set_char_decision_maker 37@ {handleOrTemplate} 159@

:WUZI5_6935
clear_char_tasks $scplayer
delete_object 71@
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
clear_area -2323.1001 {y} 1531.7 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.1001 {y} 1531.7 {z} 16.3
set_char_heading $scplayer {heading} 85.2
clear_prints 
print_now 'WUZ4_10' {time} 7000 {flag} 1
remove_blip 80@
80@ = add_blip_for_coord -2437.6001 {y} 1541.5 {z} 6.4
mark_car_as_no_longer_needed 34@
shut_all_chars_up False
shut_char_up_for_scripted_speech $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  92@ == 1
goto_if_false @WUZI5_7161
do_fade 500 {direction} Fade.In

:WUZI5_7105
if 
  get_fading_status 
goto_if_false @WUZI5_7129
wait 0
goto @WUZI5_7105

:WUZI5_7129
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7161
goto @WUZI5_20666

:WUZI5_7161
114@ = 0
91@ = 0
90@ = 3

:WUZI5_7182
if 
  90@ == 3
goto_if_false @WUZI5_10888
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_7235
set_char_coordinates $scplayer {x} -2437.5 {y} 1538.4 {z} 10.7

:WUZI5_7235
if 
  91@ == 0
goto_if_false @WUZI5_7441
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2428.6001 {leftBottomY} 1532.6 {leftBottomZ} 12.2 {rightTopX} -2441.3 {rightTopY} 1549.9 {rightTopZ} 8.0 {drawSphere} False
goto_if_false @WUZI5_7386
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7349

:WUZI5_7349
if 
  not is_player_climbing $player1
goto_if_false @WUZI5_7379
set_player_control $player1 {state} False
91@ = 1

:WUZI5_7379
goto @WUZI5_7441

:WUZI5_7386
gosub @WUZI5_24954
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7441

:WUZI5_7441
if 
  91@ == 1
goto_if_false @WUZI5_8954
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7507

:WUZI5_7507
if 
  is_char_stopped $scplayer
goto_if_false @WUZI5_8954
do_fade 500 {direction} Fade.Out

:WUZI5_7530
if 
  get_fading_status 
goto_if_false @WUZI5_7554
wait 0
goto @WUZI5_7530

:WUZI5_7554
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7586
goto @WUZI5_20666

:WUZI5_7586
shut_all_chars_up True
clear_area -2374.3999 {y} 1548.5 {z} 1.1 {radius} 1.0 {clearParticles} True
45@ = create_char PedType.Mission2 {modelId} 122 {x} -2374.3999 {y} 1548.5 {z} 1.1
set_char_heading 45@ {heading} 299.2
set_char_decision_maker 45@ {handleOrTemplate} 158@
give_weapon_to_char 45@ {weaponType} WeaponType.Grenade {ammo} 1
add_armour_to_char 45@ {amount} 100
remove_animation "SWAT"
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 335
delete_object 71@
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
request_animation "PARK"

:WUZI5_7708
if 
  not has_animation_loaded "PARK"
goto_if_false @WUZI5_7738
wait 0
goto @WUZI5_7708

:WUZI5_7738
73@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} -2428.3999 {y} 1536.3 {z} 2.1
72@ = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2425.3 {y} 1536.4 {z} 2.1
94@ = 0

:WUZI5_7796
wait 0
if 
  15 > 94@
goto_if_false @WUZI5_7859
if 
  94@ <> 9
goto_if_false @WUZI5_7845
delete_char 36@(94@,17i)

:WUZI5_7845
94@ += 1
goto @WUZI5_7796

:WUZI5_7859
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
request_model #CJ_CHRIS_CRATE
request_model #CJ_CHRIS_CRATE_LD
request_model #CJ_CHRIS_CRATE_RD
request_model #CJ_PADLOCK
request_model 210
load_all_models_now 
clear_area -2368.8999 {y} 1551.9 {z} 1.1 {radius} 10.0 {clearParticles} True
76@ = create_object #CJ_CHRIS_CRATE {x} -2368.8999 {y} 1551.9 {z} 1.1
set_object_heading 76@ {heading} 270.0
77@ = create_object #CJ_CHRIS_CRATE_LD {x} -2371.55 {y} 1552.66 {z} 1.245
set_object_heading 77@ {heading} 270.0
78@ = create_object #CJ_CHRIS_CRATE_RD {x} -2371.55 {y} 1551.14 {z} 1.245
set_object_heading 78@ {heading} 270.0
79@ = create_object #CJ_PADLOCK {x} -2371.75 {y} 1551.9 {z} 2.1
set_object_heading 79@ {heading} 270.0
clear_area -2408.3999 {y} 1553.1 {z} 1.1 {radius} 1.0 {clearParticles} True
36@ = create_char PedType.Mission2 {modelId} 121 {x} -2408.3999 {y} 1553.1 {z} 1.1
set_char_heading 36@ {heading} 151.3
set_char_decision_maker 36@ {handleOrTemplate} 158@
task_set_ignore_weapon_range_flag 36@ {state} True
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2404.8 {y} 1555.1 {z} 1.1 {radius} 1.0 {clearParticles} True
37@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2404.8 {y} 1555.1 {z} 1.1
set_anim_group_for_char 37@ {animGroup} "GANG2"
set_char_heading 37@ {heading} 102.0
set_char_decision_maker 37@ {handleOrTemplate} 158@
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2401.3 {y} 1555.1 {z} 1.1 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2401.3 {y} 1555.1 {z} 1.1
set_anim_group_for_char 38@ {animGroup} "GANG1"
set_char_heading 38@ {heading} 90.0
set_char_decision_maker 38@ {handleOrTemplate} 158@
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2389.3999 {y} 1553.4 {z} 1.1 {radius} 1.0 {clearParticles} True
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2389.3999 {y} 1553.4 {z} 1.1
set_char_heading 39@ {heading} 180.0
set_char_decision_maker 39@ {handleOrTemplate} 158@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2404.7 {y} 1545.5 {z} 1.1 {radius} 1.0 {clearParticles} True
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2404.7 {y} 1545.5 {z} 1.1
set_char_heading 40@ {heading} 266.2
set_char_decision_maker 40@ {handleOrTemplate} 158@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2406.3999 {y} 1544.7 {z} 1.1 {radius} 1.0 {clearParticles} True
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2406.3999 {y} 1544.7 {z} 1.1
set_char_heading 41@ {heading} 256.3
set_char_decision_maker 41@ {handleOrTemplate} 158@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
if 
  not is_char_dead 45@
goto_if_false @WUZI5_8691
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2372.5 {y} 1551.0 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
remove_blip 80@
80@ = add_blip_for_char 45@

:WUZI5_8691
clear_area -2370.3 {y} 1551.9 {z} 1.2 {radius} 30.0 {clearParticles} True
62@ = create_char PedType.Mission5 {modelId} 210 {x} -2370.3 {y} 1551.9 {z} 1.2
set_char_heading 62@ {heading} 96.2
set_char_decision_maker 62@ {handleOrTemplate} 158@
set_char_only_damaged_by_player 62@ {state} True
set_char_never_targetted 62@ {state} True
set_fixed_camera_position -2375.2 {y} 1555.9 {z} 1.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2368.8999 {y} 1547.7 {z} 3.8 {switchStyle} SwitchType.JumpCut
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_char_tasks_immediately $scplayer
clear_area -2435.6001 {y} 1551.1 {z} 4.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2435.6001 {y} 1551.1 {z} 4.0
set_char_heading $scplayer {heading} 280.8
do_fade 500 {direction} Fade.In

:WUZI5_8902
if 
  get_fading_status 
goto_if_false @WUZI5_8926
wait 0
goto @WUZI5_8902

:WUZI5_8926
92@ = 1
skip_cutscene_start_internal @WUZI5_10101
TIMERA = 0
91@ = 2

:WUZI5_8954
if 
  91@ == 2
goto_if_false @WUZI5_9054
if 
  not is_char_dead 45@
goto_if_false @WUZI5_9054
if 
  locate_char_any_means_2d 45@ {x} -2372.5 {y} 1551.0 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @WUZI5_9054
113@ = 6
115@ = 0
gosub @WUZI5_26535
91@ = 3

:WUZI5_9054
if 
  91@ == 3
goto_if_false @WUZI5_9159
if 
  113@ == 0
goto_if_false @WUZI5_9159
if 
  not is_char_dead 45@
goto_if_false @WUZI5_9159
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2376.8 {y} 1546.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 4

:WUZI5_9159
if 
  91@ == 4
goto_if_false @WUZI5_9654
if 
  TIMERA > 6000
goto_if_false @WUZI5_9654
do_fade 500 {direction} Fade.Out

:WUZI5_9203
if 
  get_fading_status 
goto_if_false @WUZI5_9227
wait 0
goto @WUZI5_9203

:WUZI5_9227
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9259
goto @WUZI5_20666

:WUZI5_9259
if 
  not is_char_dead 36@
goto_if_false @WUZI5_9330
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2410.7 {y} 1548.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9330
if 
  not is_char_dead 37@
goto_if_false @WUZI5_9407
156@ = open_sequence_task 
task_pause -1 {time} 10
task_go_straight_to_coord -1 {x} -2409.8999 {y} 1551.0 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 181.1
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9407
if 
  not is_char_dead 38@
goto_if_false @WUZI5_9498
156@ = open_sequence_task 
task_pause -1 {time} 15
task_go_straight_to_coord -1 {x} -2406.3 {y} 1554.0 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2406.7 {y} 1553.8 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9498
set_fixed_camera_position -2414.8999 {y} 1547.8 {z} 2.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2409.7 {y} 1549.5 {z} 1.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_9556
if 
  get_fading_status 
goto_if_false @WUZI5_9580
wait 0
goto @WUZI5_9556

:WUZI5_9580
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9612
goto @WUZI5_20666

:WUZI5_9612
113@ = 7
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 5

:WUZI5_9654
if 
  91@ == 5
goto_if_false @WUZI5_10007
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10007
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_10007
if 
  not is_char_dead 36@
goto_if_false @WUZI5_9785
156@ = open_sequence_task 
task_aim_gun_at_coord -1 {x} -2417.5 {y} 1548.2 {z} 2.1 {time} 5000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9785
if 
  not is_char_dead 37@
goto_if_false @WUZI5_9878
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2405.0 {y} 1551.0 {z} 1.1 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 261.2
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 90.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9878
if 
  not is_char_dead 38@
goto_if_false @WUZI5_9972
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2394.0 {y} 1554.4 {z} 1.1 {speed} MoveState.Sprint {time} -1
task_go_straight_to_coord -1 {x} -2393.5 {y} 1545.1 {z} 1.1 {speed} MoveState.Sprint {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9972
113@ = 7
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 6

:WUZI5_10007
if 
  91@ == 6
goto_if_false @WUZI5_10057
if 
  113@ == 0
goto_if_false @WUZI5_10057
TIMERA = 0
91@ = 7

:WUZI5_10057
if 
  91@ == 7
goto_if_false @WUZI5_10888
if 
  TIMERA > 800
goto_if_false @WUZI5_10888
92@ = 0

:WUZI5_10101
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10135
goto @WUZI5_20666

:WUZI5_10135
if 
  92@ == 1
goto_if_false @WUZI5_10458
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_10177
if 
  get_fading_status 
goto_if_false @WUZI5_10201
wait 0
goto @WUZI5_10177

:WUZI5_10201
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10233
goto @WUZI5_20666

:WUZI5_10233
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10308
clear_char_tasks_immediately 36@
clear_area -2410.7 {y} 1548.2 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} -2410.7 {y} 1548.2 {z} 1.1
set_char_heading 36@ {heading} 90.0

:WUZI5_10308
if 
  not is_char_dead 37@
goto_if_false @WUZI5_10383
clear_char_tasks_immediately 37@
clear_area -2405.0 {y} 1551.0 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} -2405.0 {y} 1551.0 {z} 1.1
set_char_heading 37@ {heading} 90.0

:WUZI5_10383
if 
  not is_char_dead 38@
goto_if_false @WUZI5_10458
clear_char_tasks_immediately 38@
clear_area -2393.5 {y} 1545.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 38@ {x} -2393.5 {y} 1545.1 {z} 1.1
set_char_heading 38@ {heading} 0.0

:WUZI5_10458
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10486
set_char_decision_maker 36@ {handleOrTemplate} 157@

:WUZI5_10486
if 
  not is_char_dead 37@
goto_if_false @WUZI5_10510
set_char_decision_maker 37@ {handleOrTemplate} 157@

:WUZI5_10510
if 
  not is_char_dead 38@
goto_if_false @WUZI5_10534
set_char_decision_maker 38@ {handleOrTemplate} 157@

:WUZI5_10534
if 
  not is_char_dead 39@
goto_if_false @WUZI5_10558
set_char_decision_maker 39@ {handleOrTemplate} 157@

:WUZI5_10558
if 
  not is_char_dead 40@
goto_if_false @WUZI5_10582
set_char_decision_maker 40@ {handleOrTemplate} 157@

:WUZI5_10582
if 
  not is_char_dead 41@
goto_if_false @WUZI5_10606
set_char_decision_maker 41@ {handleOrTemplate} 157@

:WUZI5_10606
if 
  not is_char_dead 45@
goto_if_false @WUZI5_10681
clear_char_tasks 45@
clear_area -2377.0 {y} 1535.6 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 45@ {x} -2377.0 {y} 1535.6 {z} 1.1
set_char_heading 45@ {heading} 90.0

:WUZI5_10681
clear_char_tasks_immediately $scplayer
clear_area -2435.6001 {y} 1551.1 {z} 4.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2435.6001 {y} 1551.1 {z} 4.0
set_char_heading $scplayer {heading} 280.8
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'WUZ4_05' {time} 4000 {flag} 1
if 
  92@ == 1
goto_if_false @WUZI5_10867
do_fade 500 {direction} Fade.In

:WUZI5_10811
if 
  get_fading_status 
goto_if_false @WUZI5_10835
wait 0
goto @WUZI5_10811

:WUZI5_10835
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10867
goto @WUZI5_20666

:WUZI5_10867
114@ = 0
91@ = 0
90@ = 4

:WUZI5_10888
if 
  90@ == 4
goto_if_false @WUZI5_16191
if 
  5 > 91@
goto_if_false @WUZI5_11114
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2381.7 {leftBottomY} 1546.2 {leftBottomZ} 0.0 {rightTopX} -2365.1001 {rightTopY} 1556.1 {rightTopZ} 6.5 {drawSphere} False
goto_if_false @WUZI5_11114
if 
  113@ == 0
goto_if_false @WUZI5_11043
if 
  114@ == 0
goto_if_false @WUZI5_11043
113@ = 9
115@ = 0
116@ = 1
gosub @WUZI5_26535
114@ = 1

:WUZI5_11043
if 
  113@ == 0
goto_if_false @WUZI5_11114
if 
  114@ == 1
goto_if_false @WUZI5_11114
113@ = 9
115@ = 1
116@ = 2
gosub @WUZI5_26535
114@ = 2

:WUZI5_11114
if 
  is_char_dead 62@
goto_if_false @WUZI5_11155
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_11155
if 
  91@ == 0
goto_if_false @WUZI5_11611
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_11229
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11209
explode_char_head 45@

:WUZI5_11209
set_char_coordinates $scplayer {x} -2374.0 {y} 1551.0 {z} 2.0

:WUZI5_11229
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11604
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 1.1 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11344
task_shoot_at_coord 45@ {x} -2400.1001 {y} 1535.3 {z} 1.1 {time} 500
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11344
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11443
task_shoot_at_coord 45@ {x} -2377.0 {y} 1552.4 {z} 1.1 {time} 500
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11443
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11597
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 1.1 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11597
if 
  has_char_been_damaged_by_char 45@ {handle} $scplayer
goto_if_false @WUZI5_11597
remove_weapon_from_char 45@ {weaponType} WeaponType.Grenade
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_current_char_weapon 45@ {weaponType} WeaponType.Tec9
task_kill_char_on_foot 45@ {target} $scplayer
91@ = 3

:WUZI5_11597
goto @WUZI5_11611

:WUZI5_11604
91@ = 3

:WUZI5_11611
if 
  91@ == 1
goto_if_false @WUZI5_11760
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11753
$task_status = get_script_task_status 45@ {taskId} 1640
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_11746
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.3999 {y} 1539.1 {z} 1.1 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 2

:WUZI5_11746
goto @WUZI5_11760

:WUZI5_11753
91@ = 3

:WUZI5_11760
if 
  91@ == 2
goto_if_false @WUZI5_12021
if 
  not is_char_dead 45@
goto_if_false @WUZI5_12014
$task_status = get_script_task_status 45@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_12007
if or
  is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 0.0 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 4.0 {drawSphere} False
  has_char_been_damaged_by_char $scplayer {handle} 45@
goto_if_false @WUZI5_11922
156@ = open_sequence_task 
task_weapon_roll -1 {direction} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 3

:WUZI5_11922
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_12007
156@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 3

:WUZI5_12007
goto @WUZI5_12021

:WUZI5_12014
91@ = 3

:WUZI5_12021
if 
  91@ == 3
goto_if_false @WUZI5_12141
if 
  is_char_dead 45@
goto_if_false @WUZI5_12141
make_object_targettable 79@ {state} True
remove_blip 80@
80@ = add_blip_for_object 79@
if 
  does_object_exist 79@
goto_if_false @WUZI5_12134
160@ = get_object_health 79@
if 
  999 <= 160@
goto_if_false @WUZI5_12134
print_now 'WUZ4_09' {time} 11000 {flag} 1

:WUZI5_12134
91@ = 4

:WUZI5_12141
if 
  91@ == 4
goto_if_false @WUZI5_12244
if 
  does_object_exist 79@
goto_if_false @WUZI5_12230
160@ = get_object_health 79@
if 
  999 > 160@
goto_if_false @WUZI5_12223
break_object 79@ {intensity} 0
TIMERA = 0
91@ = 5

:WUZI5_12223
goto @WUZI5_12244

:WUZI5_12230
TIMERA = 0
91@ = 5

:WUZI5_12244
if 
  91@ == 5
goto_if_false @WUZI5_12996
if 
  TIMERA > 1000
goto_if_false @WUZI5_12996
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
delete_object 79@
clear_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoObject
mark_model_as_no_longer_needed 342
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1819

:WUZI5_12348
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @WUZI5_12374
wait 0
goto @WUZI5_12348

:WUZI5_12374
request_model 339
request_model 49
request_model 58
request_animation "GANGS"
load_all_models_now 
gosub @WUZI5_24711
clear_char_tasks_immediately $scplayer
clear_area -2373.8999 {y} 1552.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2373.8999 {y} 1552.1 {z} 1.1
set_char_heading $scplayer {heading} 267.0
set_fixed_camera_position -2375.0 {y} 1547.2 {z} 2.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2370.8999 {y} 1555.3 {z} 2.7 {switchStyle} SwitchType.JumpCut
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2473.3 {y} 1536.3 {z} 27.8 {radius} 1.0 {clearParticles} True
68@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2473.3 {y} 1536.3 {z} 27.8
set_char_heading 68@ {heading} 12.6
set_char_decision_maker 68@ {handleOrTemplate} 157@
give_weapon_to_char 68@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 68@ {state} True
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2476.3 {y} 1536.3 {z} 27.8 {radius} 1.0 {clearParticles} True
69@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2476.3 {y} 1536.3 {z} 27.8
set_char_heading 69@ {heading} 321.5
set_char_decision_maker 69@ {handleOrTemplate} 157@
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 69@ {state} True
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2470.3 {y} 1546.9 {z} 22.6 {radius} 1.0 {clearParticles} True
70@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2470.3 {y} 1546.9 {z} 22.6
set_char_heading 70@ {heading} 265.4
set_char_decision_maker 70@ {handleOrTemplate} 157@
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 70@ {state} True
clear_area -2471.5 {y} 1548.2 {z} 32.2 {radius} 1.0 {clearParticles} True
65@ = create_char PedType.Mission2 {modelId} 49 {x} -2471.5 {y} 1548.2 {z} 32.2
set_char_heading 65@ {heading} 130.0
give_weapon_to_char 65@ {weaponType} WeaponType.Katana {ammo} 1
set_char_shoot_rate 65@ {rate} 70
remove_blip 80@
80@ = add_blip_for_char 65@
change_blip_scale 80@ {size} 1
set_char_decision_maker 65@ {handleOrTemplate} 158@
task_play_anim_non_interruptable 65@ {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
92@ = 1
skip_cutscene_start_internal @WUZI5_14511
report_mission_audio_event_at_position -2371.55 {y} 1552.66 {z} 1.245 {soundId} ScriptSound.SoundDaNangContainerOpen
TIMERA = 0
91@ = 6

:WUZI5_12996
if 
  91@ == 6
goto_if_false @WUZI5_13630
if 
  does_object_exist 77@
goto_if_false @WUZI5_13047
  rotate_object 77@ {fromAngle} 180.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_13047
if 
  does_object_exist 78@
goto_if_false @WUZI5_13080
  rotate_object 78@ {fromAngle} 360.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_13080
if 
  not is_char_dead 62@
goto_if_false @WUZI5_13179
156@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} -2372.8 {y} 1551.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2374.3999 {y} 1551.9 {z} 1.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13179
if 
  TIMERA > 2000
goto_if_false @WUZI5_13630
if 
  not is_char_dead 59@
goto_if_false @WUZI5_13327
156@ = open_sequence_task 
task_pause -1 {time} 900
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2373.3999 {y} 1553.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
close_sequence_task 156@
perform_sequence_task 59@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13327
if 
  not is_char_dead 60@
goto_if_false @WUZI5_13426
156@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2374.1001 {y} 1550.6 {z} 1.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 60@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13426
if 
  not is_char_dead 61@
goto_if_false @WUZI5_13504
156@ = open_sequence_task 
task_pause -1 {time} 2500
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 6.7
close_sequence_task 156@
perform_sequence_task 61@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13504
clear_area -2376.1001 {y} 1552.5 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2376.1001 {y} 1552.5 {z} 1.1
set_char_heading $scplayer {heading} 264.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2376.8999 {y} 1554.3 {z} 2.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2370.6001 {y} 1549.7 {z} 2.7 {switchStyle} SwitchType.JumpCut
TIMERA = 0
91@ = 7

:WUZI5_13630
if 
  91@ == 7
goto_if_false @WUZI5_13793
if 
  not is_char_dead 62@
goto_if_false @WUZI5_13793
$task_status = get_script_task_status 62@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_13793
156@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@
113@ = 10
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 8

:WUZI5_13793
if 
  91@ == 8
goto_if_false @WUZI5_14161
if 
  TIMERA > 6000
goto_if_false @WUZI5_14161
if 
  113@ == 0
goto_if_false @WUZI5_14161
do_fade 500 {direction} Fade.Out

:WUZI5_13855
if 
  get_fading_status 
goto_if_false @WUZI5_13879
wait 0
goto @WUZI5_13855

:WUZI5_13879
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_13911
goto @WUZI5_20666

:WUZI5_13911
load_scene -2465.5 {y} 1547.1 {z} 22.7
if 
  not is_char_dead 70@
goto_if_false @WUZI5_14013
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2468.8999 {y} 1547.2 {z} 22.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2465.5 {y} 1547.1 {z} 22.7 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 70@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_14013
set_fixed_camera_position -2460.0 {y} 1552.1 {z} 22.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2468.1001 {y} 1543.8 {z} 25.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_14071
if 
  get_fading_status 
goto_if_false @WUZI5_14095
wait 0
goto @WUZI5_14071

:WUZI5_14095
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14127
goto @WUZI5_20666

:WUZI5_14127
report_mission_audio_event_at_position -2468.0 {y} 1547.3 {z} 22.8 {soundId} ScriptSound.SoundDaNangHeavyDoorOpen
TIMERA = 0
91@ = 9

:WUZI5_14161
if 
  91@ == 9
goto_if_false @WUZI5_14467
if 
  does_object_exist $portakabin_num
goto_if_false @WUZI5_14212
  rotate_object $portakabin_num {fromAngle} 90.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_14212
if 
  TIMERA > 6000
goto_if_false @WUZI5_14467
do_fade 500 {direction} Fade.Out

:WUZI5_14238
if 
  get_fading_status 
goto_if_false @WUZI5_14262
wait 0
goto @WUZI5_14238

:WUZI5_14262
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14294
goto @WUZI5_20666

:WUZI5_14294
load_scene -2471.5 {y} 1548.2 {z} 32.2
set_fixed_camera_position -2476.5 {y} 1546.5 {z} 33.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2462.6001 {y} 1546.8 {z} 32.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_14369
if 
  get_fading_status 
goto_if_false @WUZI5_14393
wait 0
goto @WUZI5_14369

:WUZI5_14393
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14425
goto @WUZI5_20666

:WUZI5_14425
113@ = 10
115@ = 2
116@ = 3
gosub @WUZI5_26535
TIMERA = 0
91@ = 10

:WUZI5_14467
if 
  91@ == 10
goto_if_false @WUZI5_16191
if 
  TIMERA > 7000
goto_if_false @WUZI5_16191
92@ = 0

:WUZI5_14511
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14545
goto @WUZI5_20666

:WUZI5_14545
if 
  92@ == 1
goto_if_false @WUZI5_14643
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_14587
if 
  get_fading_status 
goto_if_false @WUZI5_14611
wait 0
goto @WUZI5_14587

:WUZI5_14611
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14643
goto @WUZI5_20666

:WUZI5_14643
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 59@
goto_if_false @WUZI5_14929
clear_char_tasks_immediately 59@
clear_area -2373.3999 {y} 1553.3 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 59@ {x} -2373.3999 {y} 1553.3 {z} 1.1
set_char_heading 59@ {heading} 120.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2432.3 {y} 1544.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 59@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_14929
if 
  not is_char_dead 60@
goto_if_false @WUZI5_15211
clear_char_tasks_immediately 60@
clear_area -2374.1001 {y} 1550.6 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 60@ {x} -2374.1001 {y} 1550.6 {z} 1.1
set_char_heading 60@ {heading} 63.1
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2430.6001 {y} 1543.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 60@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15211
if 
  not is_char_dead 61@
goto_if_false @WUZI5_15493
clear_char_tasks_immediately 61@
clear_area -2372.8 {y} 1552.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 61@ {x} -2372.8 {y} 1552.1 {z} 1.1
set_char_heading 61@ {heading} 90.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2430.3999 {y} 1545.8 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 61@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15493
if 
  not is_char_dead 62@
goto_if_false @WUZI5_15775
clear_char_tasks_immediately 62@
clear_area -2374.3999 {y} 1551.9 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 62@ {x} -2374.3999 {y} 1551.9 {z} 1.1
set_char_heading 62@ {heading} 90.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2428.3999 {y} 1544.6 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15775
if 
  does_object_exist 77@
goto_if_false @WUZI5_15808
  rotate_object 77@ {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False

:WUZI5_15808
if 
  does_object_exist 78@
goto_if_false @WUZI5_15841
  rotate_object 78@ {fromAngle} 360.0 {toAngle} 360.0 {collisionCheck} False

:WUZI5_15841
if 
  does_object_exist $portakabin_num
goto_if_false @WUZI5_15874
  rotate_object $portakabin_num {fromAngle} 90.0 {toAngle} 100.0 {collisionCheck} False

:WUZI5_15874
if 
  not is_char_dead 70@
goto_if_false @WUZI5_15934
clear_area -2466.8999 {y} 1546.9 {z} 22.7 {radius} 30.0 {clearParticles} True
set_char_coordinates 70@ {x} -2466.8999 {y} 1546.9 {z} 22.7

:WUZI5_15934
if 
  not is_char_dead 65@
goto_if_false @WUZI5_15955
clear_char_tasks 65@

:WUZI5_15955
mark_model_as_no_longer_needed #CJ_PADLOCK
add_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoObject {taskId} TaskId.ComplexWalkRoundObject {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
shut_all_chars_up False
set_char_health $scplayer {health} 100
remove_animation "PARK"
remove_animation "GANGS"
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'BRIDGE' {time} 7000 {flag} 1
if 
  92@ == 1
goto_if_false @WUZI5_16177
do_fade 500 {direction} Fade.In

:WUZI5_16121
if 
  get_fading_status 
goto_if_false @WUZI5_16145
wait 0
goto @WUZI5_16121

:WUZI5_16145
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16177
goto @WUZI5_20666

:WUZI5_16177
91@ = 0
90@ = 5

:WUZI5_16191
if 
  90@ == 5
goto_if_false @WUZI5_18809
if 
  90@ == 5
goto_if_false @WUZI5_16311
if 
  4 > 96@
goto_if_false @WUZI5_16304
if 
  is_char_dead 59@(96@,4i)
goto_if_false @WUZI5_16290
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_16290
96@ += 1
goto @WUZI5_16311

:WUZI5_16304
96@ = 0

:WUZI5_16311
if 
  91@ == 0
goto_if_false @WUZI5_17136
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_16364
set_char_coordinates $scplayer {x} -2477.3999 {y} 1537.0 {z} 27.8

:WUZI5_16364
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2476.3999 {leftBottomY} 1538.0 {leftBottomZ} 29.8 {rightTopX} -2479.2 {rightTopY} 1550.5 {rightTopZ} 35.2 {drawSphere} False
goto_if_false @WUZI5_17136
do_fade 1000 {direction} Fade.Out

:WUZI5_16419
if 
  get_fading_status 
goto_if_false @WUZI5_16443
wait 0
goto @WUZI5_16419

:WUZI5_16443
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16475
goto @WUZI5_20666

:WUZI5_16475
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
clear_area -2466.8999 {y} 1546.9 {z} 22.7 {radius} 30.0 {clearParticles} True
clear_area -2478.3999 {y} 1539.0 {z} 29.5 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2478.3999 {y} 1539.0 {z} 29.5
set_char_heading $scplayer {heading} 0.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
request_model #KATANA_ANIM
request_model #KATANA_LHAND
request_animation "MISC"
load_all_models_now 
74@ = create_object #KATANA_ANIM {x} -2472.6001 {y} 1538.5 {z} 32.3
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16776
clear_char_tasks_immediately 65@
clear_area -2472.3 {y} 1551.5 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 65@ {x} -2472.3 {y} 1551.5 {z} 32.2
set_char_heading 65@ {heading} 135.0
75@ = create_object #KATANA_LHAND {x} -2117.0 {y} 654.0 {z} 59.7
task_pick_up_object 65@ {object} 75@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:WUZI5_16776
if 
  not is_char_dead 68@
goto_if_false @WUZI5_16805
set_char_decision_maker 68@ {handleOrTemplate} 158@
clear_char_tasks_immediately 68@

:WUZI5_16805
if 
  not is_char_dead 69@
goto_if_false @WUZI5_16834
set_char_decision_maker 69@ {handleOrTemplate} 158@
clear_char_tasks_immediately 69@

:WUZI5_16834
if 
  not is_char_dead 70@
goto_if_false @WUZI5_16863
set_char_decision_maker 70@ {handleOrTemplate} 158@
clear_char_tasks_immediately 70@

:WUZI5_16863
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16908
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} -1.0

:WUZI5_16908
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2477.8999 {y} 1543.7 {z} 31.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 140@ {y} 141@ {z} 142@ {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16976
task_turn_char_to_face_char -1 {target} 65@

:WUZI5_16976
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2472.8 {y} 1554.0 {z} 33.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2474.5 {y} 1542.2 {z} 33.2 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:WUZI5_17052
if 
  get_fading_status 
goto_if_false @WUZI5_17076
wait 0
goto @WUZI5_17052

:WUZI5_17076
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17108
goto @WUZI5_20666

:WUZI5_17108
TIMERA = 0
92@ = 1
skip_cutscene_start_internal @WUZI5_17880
91@ = 1

:WUZI5_17136
if 
  91@ == 1
goto_if_false @WUZI5_17511
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_17511
113@ = 13
115@ = 0
gosub @WUZI5_26535
clear_area 140@ {y} 141@ {z} 142@ {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 140@ {y} 141@ {z} 142@
set_char_heading $scplayer {heading} 315.0
if 
  not is_char_dead 65@
goto_if_false @WUZI5_17511
if 
  does_object_exist 75@
goto_if_false @WUZI5_17511
delete_object 75@
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} -1.0
set_object_coordinates 74@ {x} 140@ {y} 141@ {z} 142@
set_object_heading 74@ {heading} 315.0
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
clear_char_tasks_immediately 65@
task_play_anim 65@ {animationName} "KAT_THROW_K" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "KAT_THROW_P" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position -2475.1001 {y} 1547.1 {z} 33.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2472.2 {y} 1553.0 {z} 33.7 {switchStyle} SwitchType.JumpCut
91@ = 3

:WUZI5_17511
if 
  91@ == 3
goto_if_false @WUZI5_17818
if 
  does_object_exist 74@
goto_if_false @WUZI5_17818
if 
  not is_char_dead 65@
goto_if_false @WUZI5_17818
if 
  is_char_playing_anim $scplayer {animationName} "KAT_THROW_P"
goto_if_false @WUZI5_17735
143@ = get_char_anim_current_time $scplayer {animationName} "KAT_THROW_P"
if 
  is_object_playing_anim 74@ {animationName} "KAT_THROW_O"
goto_if_false @WUZI5_17668
set_object_anim_current_time 74@ {animationName} "KAT_THROW_O" {time} 143@
goto @WUZI5_17735

:WUZI5_17668
if 
play_object_anim 74@ {animationName} "KAT_THROW_O" {animationFile} "MISC" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @WUZI5_17735
set_object_anim_speed 74@ {animationName} "KAT_THROW_O" {speed} 0.0

:WUZI5_17735
if 
  is_char_playing_anim $scplayer {animationName} "KAT_THROW_P"
goto_if_false @WUZI5_17818
143@ = get_char_anim_current_time $scplayer {animationName} "KAT_THROW_P"
if 
  143@ == 1.0
goto_if_false @WUZI5_17818
delete_object 74@
91@ = 4

:WUZI5_17818
if 
  91@ == 4
goto_if_false @WUZI5_18697
if 
  113@ == 0
goto_if_false @WUZI5_18697
if 
  TIMERA > 8000
goto_if_false @WUZI5_18697
92@ = 0

:WUZI5_17880
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17914
goto @WUZI5_20666

:WUZI5_17914
if 
  92@ == 1
goto_if_false @WUZI5_18102
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_17956
if 
  get_fading_status 
goto_if_false @WUZI5_17980
wait 0
goto @WUZI5_17956

:WUZI5_17980
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18012
goto @WUZI5_20666

:WUZI5_18012
delete_object 75@
delete_object 74@
if 
  not is_char_dead 65@
goto_if_false @WUZI5_18043
clear_char_tasks_immediately 65@

:WUZI5_18043
clear_char_tasks_immediately $scplayer
clear_area -2475.5 {y} 1546.7 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2475.5 {y} 1546.7 {z} 32.2
set_char_heading $scplayer {heading} 315.0

:WUZI5_18102
if 
  not is_char_dead 59@
goto_if_false @WUZI5_18177
clear_char_tasks_immediately 59@
clear_area -2439.5 {y} 1561.3 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 59@ {x} -2439.5 {y} 1561.3 {z} 16.3
set_char_heading 59@ {heading} 11.0

:WUZI5_18177
if 
  not is_char_dead 60@
goto_if_false @WUZI5_18252
clear_char_tasks_immediately 60@
clear_area -2437.7 {y} 1561.5 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 60@ {x} -2437.7 {y} 1561.5 {z} 16.3
set_char_heading 60@ {heading} 177.5

:WUZI5_18252
if 
  not is_char_dead 61@
goto_if_false @WUZI5_18327
clear_char_tasks_immediately 61@
clear_area -2438.8 {y} 1560.0 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 61@ {x} -2438.8 {y} 1560.0 {z} 16.3
set_char_heading 61@ {heading} 183.9

:WUZI5_18327
if 
  not is_char_dead 62@
goto_if_false @WUZI5_18402
clear_char_tasks_immediately 62@
clear_area -2436.6001 {y} 1561.8 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 62@ {x} -2436.6001 {y} 1561.8 {z} 16.3
set_char_heading 62@ {heading} 9.5

:WUZI5_18402
if 
  not is_char_dead 65@
goto_if_false @WUZI5_18478
clear_area -2472.7 {y} 1551.4 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 65@ {x} -2472.7 {y} 1551.4 {z} 32.2
task_kill_char_on_foot 65@ {target} $scplayer
set_char_decision_maker 65@ {handleOrTemplate} 157@

:WUZI5_18478
if 
  not is_char_dead 68@
goto_if_false @WUZI5_18507
set_char_decision_maker 68@ {handleOrTemplate} 157@
clear_char_tasks_immediately 68@

:WUZI5_18507
if 
  not is_char_dead 69@
goto_if_false @WUZI5_18536
set_char_decision_maker 69@ {handleOrTemplate} 157@
clear_char_tasks_immediately 69@

:WUZI5_18536
if 
  not is_char_dead 70@
goto_if_false @WUZI5_18565
set_char_decision_maker 70@ {handleOrTemplate} 157@
clear_char_tasks_immediately 70@

:WUZI5_18565
shut_all_chars_up False
give_weapon_to_char $scplayer {weaponType} WeaponType.Katana {ammo} 1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_current_char_weapon $scplayer {weaponType} WeaponType.Katana
if 
  92@ == 1
goto_if_false @WUZI5_18690
do_fade 500 {direction} Fade.In

:WUZI5_18634
if 
  get_fading_status 
goto_if_false @WUZI5_18658
wait 0
goto @WUZI5_18634

:WUZI5_18658
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18690
goto @WUZI5_20666

:WUZI5_18690
91@ = 5

:WUZI5_18697
if 
  is_char_dead 65@
goto_if_false @WUZI5_18718
remove_blip 80@

:WUZI5_18718
if 
  is_char_dead 65@
goto_if_false @WUZI5_18809
clear_prints 
remove_blip 80@
if 
  not is_char_dead 62@
goto_if_false @WUZI5_18772
80@ = add_blip_for_char 62@
set_blip_as_friendly 80@ {state} True

:WUZI5_18772
print_now 'WUZ4_11' {time} 4000 {flag} 1
91@ = 0
TIMERA = 0
90@ = 6

:WUZI5_18809
if 
  90@ == 6
goto_if_false @WUZI5_19695
if 
  91@ == 0
goto_if_false @WUZI5_19000
if 
  4 > 96@
goto_if_false @WUZI5_18922
if 
  is_char_dead 59@(96@,4i)
goto_if_false @WUZI5_18908
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_18908
96@ += 1
goto @WUZI5_18929

:WUZI5_18922
96@ = 0

:WUZI5_18929
if 
  not is_char_dead 62@
goto_if_false @WUZI5_19000
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @WUZI5_19000
remove_blip 80@
set_player_control $player1 {state} False
91@ = 1

:WUZI5_19000
if 
  91@ == 1
goto_if_false @WUZI5_19056
do_fade 2000 {direction} Fade.Out

:WUZI5_19025
if 
  get_fading_status 
goto_if_false @WUZI5_19049
wait 0
goto @WUZI5_19025

:WUZI5_19049
91@ = 2

:WUZI5_19056
if 
  91@ == 2
goto_if_false @WUZI5_19525
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
set_fixed_camera_position -2425.8 {y} 1562.4 {z} 1.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2451.2 {y} 1582.3 {z} 3.4 {switchStyle} SwitchType.JumpCut
request_model 473
load_all_models_now 
clear_area -2430.7 {y} 1563.6 {z} 0.0 {radius} 5.0 {clearParticles} True
53@ = create_car 473 {x} -2430.7 {y} 1563.6 {z} 0.0
clear_area -2442.3999 {y} 1564.6 {z} 0.0 {radius} 5.0 {clearParticles} True
54@ = create_car 473 {x} -2442.3999 {y} 1564.6 {z} 0.0
clear_area -2426.8999 {y} 1570.6 {z} 0.0 {radius} 5.0 {clearParticles} True
55@ = create_car 473 {x} -2426.8999 {y} 1570.6 {z} 0.0
if 
  not is_char_dead 59@
goto_if_false @WUZI5_19355
attach_char_to_car 59@ {vehicle} 54@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:WUZI5_19355
if 
  not is_char_dead 60@
goto_if_false @WUZI5_19403
attach_char_to_car 60@ {vehicle} 54@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:WUZI5_19403
if 
  not is_char_dead 61@
goto_if_false @WUZI5_19427
warp_char_into_car 61@ {vehicle} 54@

:WUZI5_19427
if 
  not is_char_dead 62@
goto_if_false @WUZI5_19451
warp_char_into_car 62@ {vehicle} 55@

:WUZI5_19451
warp_char_into_car $scplayer {vehicle} 53@
113@ = 11
115@ = 0
gosub @WUZI5_26535
do_fade 2000 {direction} Fade.In

:WUZI5_19487
if 
  get_fading_status 
goto_if_false @WUZI5_19511
wait 0
goto @WUZI5_19487

:WUZI5_19511
TIMERA = 0
91@ = 3

:WUZI5_19525
if 
  91@ == 3
goto_if_false @WUZI5_19621
if 
  TIMERA > 2000
goto_if_false @WUZI5_19621
if 
  not is_car_dead 54@
goto_if_false @WUZI5_19588
set_car_temp_action 54@ {actionId} TempAction.GoForward {time} 5000

:WUZI5_19588
if 
  not is_car_dead 55@
goto_if_false @WUZI5_19614
set_car_temp_action 55@ {actionId} TempAction.GoForward {time} 5000

:WUZI5_19614
91@ = 4

:WUZI5_19621
if 
  91@ == 4
goto_if_false @WUZI5_19695
if 
  TIMERA > 6000
goto_if_false @WUZI5_19695
delete_car 54@
delete_car 55@
delete_char 59@
delete_char 60@
delete_char 61@
delete_char 62@
goto @WUZI5_20684

:WUZI5_19695
if 
  90@ > 2
goto_if_false @WUZI5_20652
if 
  103@ == 0
goto_if_false @WUZI5_19797
if 
  is_char_in_water $scplayer
goto_if_false @WUZI5_19797
remove_blip 80@
80@ = add_blip_for_coord -2329.1001 {y} 1528.7 {z} 0.0
clear_prints 
print_now 'WUZ4_02' {time} 7000 {flag} 1
103@ = 1

:WUZI5_19797
if 
  103@ == 1
goto_if_false @WUZI5_20180
if 
  locate_char_any_means_3d $scplayer {x} -2329.1001 {y} 1528.7 {z} 0.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI5_20180
clear_prints 
do_fade 500 {direction} Fade.Out

:WUZI5_19872
if 
  get_fading_status 
goto_if_false @WUZI5_19896
wait 0
goto @WUZI5_19872

:WUZI5_19896
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
71@ = create_object #KMB_CONTAINER_RED {x} -2323.8999 {y} 1527.3 {z} 14.0
set_object_collision 71@ {state} True
set_object_dynamic 71@ {state} False
set_object_visible 71@ {state} False
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_20013
goto @WUZI5_20666

:WUZI5_20013
clear_char_tasks_immediately $scplayer
clear_area -2323.2 {y} 1530.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.2 {y} 1530.2 {z} 16.9
set_char_heading $scplayer {heading} 3.3
clear_char_tasks_immediately $scplayer
156@ = open_sequence_task 
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2320.7 {y} 1529.8 {z} 17.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2339.6001 {y} 1537.4 {z} 22.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
103@ = 2

:WUZI5_20180
if 
  103@ == 2
goto_if_false @WUZI5_20652
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_20652
clear_area -2323.6001 {y} 1531.9 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.6001 {y} 1531.9 {z} 16.3
set_char_heading $scplayer {heading} 95.3
delete_object 71@
remove_blip 80@
if 
  90@ == 3
goto_if_false @WUZI5_20363
if 
  91@ == 0
goto_if_false @WUZI5_20363
80@ = add_blip_for_coord -2437.8999 {y} 1551.9 {z} 16.3
print_now 'WUZ4_01' {time} 7000 {flag} 1

:WUZI5_20363
if 
  90@ == 4
goto_if_false @WUZI5_20486
if 
  4 > 91@
goto_if_false @WUZI5_20446
if 
  not is_char_dead 45@
goto_if_false @WUZI5_20439
80@ = add_blip_for_char 45@
print_now 'WUZ4_05' {time} 4000 {flag} 1

:WUZI5_20439
goto @WUZI5_20486

:WUZI5_20446
if 
  does_object_exist 79@
goto_if_false @WUZI5_20486
80@ = add_blip_for_object 79@
print_now 'WUZ4_09' {time} 11000 {flag} 1

:WUZI5_20486
if 
  90@ == 5
goto_if_false @WUZI5_20551
if 
  not is_char_dead 65@
goto_if_false @WUZI5_20535
80@ = add_blip_for_char 65@
change_blip_scale 80@ {size} 1

:WUZI5_20535
print_now 'BRIDGE' {time} 7000 {flag} 1

:WUZI5_20551
if 
  90@ == 6
goto_if_false @WUZI5_20616
if 
  not is_char_dead 62@
goto_if_false @WUZI5_20600
80@ = add_blip_for_char 62@
set_blip_as_friendly 80@ {state} True

:WUZI5_20600
print_now 'WUZ4_11' {time} 4000 {flag} 1

:WUZI5_20616
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
103@ = 0

:WUZI5_20652
gosub @WUZI5_27666
goto @WUZI5_975

:WUZI5_20666
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:WUZI5_20684
$flag_wuzi_mission_counter += 1
remove_blip $wuzi_contact_blip
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 30
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'WUZI_4'
player_made_progress 1
return 

:WUZI5_20753
if 
  is_var_text_label_empty s$shop_name
goto_if_false @WUZI5_20771
restore_camera_jumpcut 

:WUZI5_20771
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
remove_blip 87@
remove_blip 88@
remove_blip 89@
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 339
mark_model_as_no_longer_needed 342
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 473
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 210
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #KATANA_ANIM
mark_model_as_no_longer_needed #KATANA_LHAND
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE_LD
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE_RD
mark_model_as_no_longer_needed #CJ_PADLOCK
release_weather 
if 
  not is_char_dead $scplayer
goto_if_false @WUZI5_20955
shut_char_up_for_scripted_speech $scplayer {state} False

:WUZI5_20955
shut_all_chars_up False
remove_animation "CAR_CHAT"
remove_animation "SWAT"
remove_animation "PARK"
remove_animation "MISC"
remove_animation "GANGS"
detach_char_from_car $scplayer
remove_pickup 63@
remove_pickup 64@
remove_pickup 72@
remove_pickup 73@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:WUZI5_21045
if 
  90@ == 0
goto_if_false @WUZI5_21145
if 
  is_char_dead 35@
goto_if_false @WUZI5_21104
clear_prints 
print_now 'WUZ4_07' {time} 7000 {flag} 1
93@ = 1

:WUZI5_21104
if 
  is_car_dead 34@
goto_if_false @WUZI5_21145
clear_prints 
print_now 'WUZ4_08' {time} 7000 {flag} 1
93@ = 1

:WUZI5_21145
return 

:WUZI5_21147
if 
  95@ == 0
goto_if_false @WUZI5_22031
63@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} -2414.8999 {y} 1538.7 {z} 26.0
64@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} -2412.3999 {y} 1547.9 {z} 26.0
clear_area -2355.2 {y} 1547.0 {z} 25.0 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
36@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2355.2 {y} 1547.0 {z} 25.0
set_char_heading 36@ {heading} 198.7
set_char_decision_maker 36@ {handleOrTemplate} 157@
set_char_stay_in_same_place 36@ {state} True
clear_area -2355.1001 {y} 1545.0 {z} 25.0 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
37@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2355.1001 {y} 1545.0 {z} 25.0
set_char_heading 37@ {heading} 0.6
set_char_decision_maker 37@ {handleOrTemplate} 157@
set_char_stay_in_same_place 37@ {state} True
task_chat_with_char 36@ {other} 37@ {leadSpeaker} True {_p4} 1
task_chat_with_char 37@ {other} 36@ {leadSpeaker} False {_p4} 1
clear_area -2373.0 {y} 1549.3 {z} 30.8 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2373.0 {y} 1549.3 {z} 30.8
set_char_heading 38@ {heading} 355.7
set_char_decision_maker 38@ {handleOrTemplate} 157@
set_char_stay_in_same_place 38@ {state} True
clear_area -2396.3 {y} 1560.26 {z} 30.8 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2396.3 {y} 1560.26 {z} 30.8
set_char_heading 39@ {heading} 356.2
set_char_decision_maker 39@ {handleOrTemplate} 157@
set_char_stay_in_same_place 39@ {state} True
clear_area -2478.2 {y} 1560.9 {z} 16.3 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2478.2 {y} 1560.9 {z} 16.3
set_char_heading 40@ {heading} 11.0
set_char_decision_maker 40@ {handleOrTemplate} 157@
set_char_stay_in_same_place 40@ {state} True
clear_area -2500.5 {y} 1551.0 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2500.5 {y} 1551.0 {z} 23.2
set_char_heading 41@ {heading} 339.2
set_char_decision_maker 41@ {handleOrTemplate} 157@
set_char_stay_in_same_place 41@ {state} True
clear_area -2493.7 {y} 1537.4 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
42@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2493.7 {y} 1537.4 {z} 23.2
set_char_heading 42@ {heading} 82.5
set_char_decision_maker 42@ {handleOrTemplate} 158@
set_char_stay_in_same_place 42@ {state} True
clear_area -2492.2 {y} 1537.3 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
43@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2492.2 {y} 1537.3 {z} 23.2
set_char_heading 43@ {heading} 78.2
set_char_decision_maker 43@ {handleOrTemplate} 157@
set_char_stay_in_same_place 43@ {state} True
clear_area -2453.8 {y} 1529.6 {z} 27.9 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
44@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2453.8 {y} 1529.6 {z} 27.9
set_char_heading 44@ {heading} 174.6
set_char_decision_maker 44@ {handleOrTemplate} 157@
set_char_stay_in_same_place 44@ {state} True
95@ = 1

:WUZI5_22031
if 
  95@ == 1
goto_if_false @WUZI5_22149
if 
  9 > 94@
goto_if_false @WUZI5_22142
if 
  not is_char_dead 36@(94@,17i)
goto_if_false @WUZI5_22128
give_weapon_to_char 36@(94@,17i) {weaponType} WeaponType.Tec9 {ammo} 3000
add_blip_for_char 36@(94@,17i) {var_handle} 81@(94@,9i)
change_blip_scale 81@(94@,9i) {size} 1

:WUZI5_22128
94@ += 1
goto @WUZI5_22149

:WUZI5_22142
95@ = 2

:WUZI5_22149
return 

:WUZI5_22151
if 
  not is_char_dead 36@
goto_if_false @WUZI5_22559
if 
  104@ == 0
goto_if_false @WUZI5_22325
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22325
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2355.1001 {y} 1560.0 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22300
task_destroy_car -1 {vehicle} 34@

:WUZI5_22300
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 1

:WUZI5_22325
if 
  104@ == 1
goto_if_false @WUZI5_22450
if 
  locate_char_any_means_2d $scplayer {x} -2392.0 {y} 1588.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22450
156@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -2357.6001 {y} 1529.6 {z} 25.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 183.9
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 2

:WUZI5_22450
if 
  104@ == 2
goto_if_false @WUZI5_22559
if 
  locate_char_any_means_2d $scplayer {x} -2402.6001 {y} 1499.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22559
156@ = open_sequence_task 
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22534
task_destroy_car -1 {vehicle} 34@

:WUZI5_22534
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 3

:WUZI5_22559
if 
  not is_char_dead 37@
goto_if_false @WUZI5_22994
if 
  105@ == 0
goto_if_false @WUZI5_22767
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22767
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2348.2 {y} 1546.4 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2344.1001 {y} 1555.8 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22742
task_destroy_car -1 {vehicle} 34@

:WUZI5_22742
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 1

:WUZI5_22767
if 
  105@ == 1
goto_if_false @WUZI5_22885
if 
  locate_char_any_means_2d $scplayer {x} -2392.0 {y} 1588.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22885
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2350.5 {y} 1531.5 {z} 25.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 155.6
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 2

:WUZI5_22885
if 
  105@ == 2
goto_if_false @WUZI5_22994
if 
  locate_char_any_means_2d $scplayer {x} -2402.6001 {y} 1499.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22994
156@ = open_sequence_task 
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22969
task_destroy_car -1 {vehicle} 34@

:WUZI5_22969
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 3

:WUZI5_22994
if 
  not is_char_dead 38@
goto_if_false @WUZI5_23461
if 
  106@ == 0
goto_if_false @WUZI5_23168
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23168
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2372.1001 {y} 1557.4 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23143
task_destroy_car -1 {vehicle} 34@

:WUZI5_23143
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 1

:WUZI5_23168
if 
  106@ == 1
goto_if_false @WUZI5_23337
if 
  locate_char_any_means_2d $scplayer {x} -2365.3999 {y} 1586.9 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23337
156@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -2394.3999 {y} 1558.4 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 66.2
task_jump -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2423.0 {y} 1561.0 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 2

:WUZI5_23337
if 
  106@ == 2
goto_if_false @WUZI5_23461
if 
  locate_char_any_means_2d $scplayer {x} -2473.8 {y} 1585.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23461
156@ = open_sequence_task 
task_achieve_heading -1 {heading} 177.3
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} -2422.1001 {y} 1547.9 {z} 22.1 {speed} MoveState.Run {time} -1
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 3

:WUZI5_23461
if 
  not is_char_dead 39@
goto_if_false @WUZI5_23836
if 
  107@ == 0
goto_if_false @WUZI5_23626
if 
  locate_char_any_means_2d $scplayer {x} -2351.3 {y} 1586.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23626
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2426.7 {y} 1560.3 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23601
task_destroy_car -1 {vehicle} 34@

:WUZI5_23601
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@
107@ = 1

:WUZI5_23626
if 
  107@ == 1
goto_if_false @WUZI5_23836
if 
  locate_char_any_means_2d $scplayer {x} -2504.6001 {y} 0.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23836
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2437.7 {y} 1560.7 {z} 16.3 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -2435.8999 {y} 1550.9 {z} 16.3 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 180.0
task_go_straight_to_coord -1 {x} -2435.8999 {y} 1532.3 {z} 16.3 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -2437.5 {y} 1528.7 {z} 16.3 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23811
task_destroy_car -1 {vehicle} 34@

:WUZI5_23811
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@
107@ = 2

:WUZI5_23836
if 
  not is_char_dead 40@
goto_if_false @WUZI5_24069
if 
  108@ == 0
goto_if_false @WUZI5_24069
if 
  locate_char_any_means_2d $scplayer {x} -2448.6001 {y} 1590.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24069
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2494.1001 {y} 1560.7 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2505.2 {y} 1557.4 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2505.5 {y} 1532.1 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24044
task_destroy_car -1 {vehicle} 34@

:WUZI5_24044
close_sequence_task 156@
perform_sequence_task 40@ {sequence} 156@
clear_sequence_task 156@
108@ = 1

:WUZI5_24069
if 
  not is_char_dead 41@
goto_if_false @WUZI5_24200
if 
  109@ == 0
goto_if_false @WUZI5_24200
if 
  locate_char_any_means_2d $scplayer {x} -2448.6001 {y} 1590.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24200
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24175
task_destroy_car -1 {vehicle} 34@

:WUZI5_24175
close_sequence_task 156@
perform_sequence_task 41@ {sequence} 156@
clear_sequence_task 156@
109@ = 1

:WUZI5_24200
if 
  not is_char_dead 42@
goto_if_false @WUZI5_24354
if 
  110@ == 0
goto_if_false @WUZI5_24354
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24354
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_straight_to_coord -1 {x} -2501.3999 {y} 1539.5 {z} 23.2 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24329
task_destroy_car -1 {vehicle} 34@

:WUZI5_24329
close_sequence_task 156@
perform_sequence_task 42@ {sequence} 156@
clear_sequence_task 156@
110@ = 1

:WUZI5_24354
if 
  not is_char_dead 43@
goto_if_false @WUZI5_24508
if 
  111@ == 0
goto_if_false @WUZI5_24508
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24508
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_straight_to_coord -1 {x} -2500.8999 {y} 1535.4 {z} 23.2 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24483
task_destroy_car -1 {vehicle} 34@

:WUZI5_24483
close_sequence_task 156@
perform_sequence_task 43@ {sequence} 156@
clear_sequence_task 156@
111@ = 1

:WUZI5_24508
if 
  not is_char_dead 44@
goto_if_false @WUZI5_24639
if 
  112@ == 0
goto_if_false @WUZI5_24639
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24639
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24614
task_destroy_car -1 {vehicle} 34@

:WUZI5_24614
close_sequence_task 156@
perform_sequence_task 44@ {sequence} 156@
clear_sequence_task 156@
112@ = 1

:WUZI5_24639
return 

:WUZI5_24641
if 
  9 > 94@
goto_if_false @WUZI5_24702
if 
  is_char_dead 36@(94@,17i)
goto_if_false @WUZI5_24688
remove_blip 81@(94@,9i)

:WUZI5_24688
94@ += 1
goto @WUZI5_24709

:WUZI5_24702
94@ = 0

:WUZI5_24709
return 

:WUZI5_24711
clear_area -2369.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
59@ = create_char PedType.Mission5 {modelId} 58 {x} -2369.3 {y} 1551.9 {z} 1.2
set_char_heading 59@ {heading} 96.2
set_char_stay_in_same_place 59@ {state} True
set_char_never_targetted 59@ {state} True
set_char_decision_maker 59@ {handleOrTemplate} 158@
clear_area -2368.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
60@ = create_char PedType.Mission5 {modelId} 58 {x} -2368.3 {y} 1551.9 {z} 1.2
set_char_heading 60@ {heading} 96.2
set_char_stay_in_same_place 60@ {state} True
set_char_never_targetted 60@ {state} True
set_char_decision_maker 60@ {handleOrTemplate} 158@
clear_area -2367.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
61@ = create_char PedType.Mission5 {modelId} 210 {x} -2367.3 {y} 1551.9 {z} 1.2
set_char_heading 61@ {heading} 96.2
set_char_stay_in_same_place 61@ {state} True
set_char_never_targetted 61@ {state} True
set_char_decision_maker 61@ {handleOrTemplate} 158@
return 

:WUZI5_24954
if 
  101@ == 0
goto_if_false @WUZI5_25301
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2282.3999 {leftBottomY} 1510.9 {leftBottomZ} 50.0 {rightTopX} -2534.6001 {rightTopY} 1578.5 {rightTopZ} 15.0 {drawSphere} False
goto_if_false @WUZI5_25061
if 
  is_char_shooting $scplayer
goto_if_false @WUZI5_25061
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
goto_if_false @WUZI5_25061
101@ = 1

:WUZI5_25061
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2385.2 {leftBottomY} 1539.7 {rightTopX} -2393.0 {rightTopY} 1558.9 {drawSphere} False
goto_if_false @WUZI5_25106
101@ = 1

:WUZI5_25106
if 
  not is_char_dead 46@
goto_if_false @WUZI5_25145
if 
  is_char_shooting 46@
goto_if_false @WUZI5_25145
101@ = 1

:WUZI5_25145
if 
  not is_char_dead 51@
goto_if_false @WUZI5_25184
if 
  is_char_shooting 51@
goto_if_false @WUZI5_25184
101@ = 1

:WUZI5_25184
if 
  not is_char_dead 52@
goto_if_false @WUZI5_25223
if 
  is_char_shooting 52@
goto_if_false @WUZI5_25223
101@ = 1

:WUZI5_25223
if 
  not is_char_dead 36@
goto_if_false @WUZI5_25262
if 
  is_char_shooting 36@
goto_if_false @WUZI5_25262
101@ = 1

:WUZI5_25262
if 
  not is_char_dead 37@
goto_if_false @WUZI5_25301
if 
  is_char_shooting 37@
goto_if_false @WUZI5_25301
101@ = 1

:WUZI5_25301
if 
  101@ == 1
goto_if_false @WUZI5_25750
if 
  not is_char_dead 46@
goto_if_false @WUZI5_25343
task_turn_char_to_face_char 46@ {target} $scplayer

:WUZI5_25343
if 
  not is_char_dead 51@
goto_if_false @WUZI5_25367
task_turn_char_to_face_char 51@ {target} $scplayer

:WUZI5_25367
if 
  not is_char_dead 52@
goto_if_false @WUZI5_25391
task_turn_char_to_face_char 52@ {target} $scplayer

:WUZI5_25391
if 
  not is_char_dead 36@
goto_if_false @WUZI5_25512
156@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 158@
task_go_straight_to_coord -1 {x} -2351.0 {y} 1549.4 {z} 22.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 180.0
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} -2351.2 {y} 1547.1 {z} 25.0 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25512
if 
  not is_char_dead 37@
goto_if_false @WUZI5_25536
task_turn_char_to_face_char 37@ {target} $scplayer

:WUZI5_25536
if 
  not is_char_dead 38@
goto_if_false @WUZI5_25605
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2385.5 {y} 1543.1 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25605
if 
  not is_char_dead 39@
goto_if_false @WUZI5_25674
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2385.8 {y} 1540.6 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25674
if 
  not is_char_dead 40@
goto_if_false @WUZI5_25743
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2392.1001 {y} 1556.0 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 40@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25743
101@ = 2

:WUZI5_25750
if 
  101@ == 2
goto_if_false @WUZI5_25869
if 
  not is_char_dead 48@
goto_if_false @WUZI5_25817
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @WUZI5_25810
101@ = 3

:WUZI5_25810
goto @WUZI5_25824

:WUZI5_25817
101@ = 3

:WUZI5_25824
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2400.0 {leftBottomY} 1561.0 {rightTopX} -2409.8 {rightTopY} 1540.0 {drawSphere} False
goto_if_false @WUZI5_25869
101@ = 3

:WUZI5_25869
if 
  101@ == 3
goto_if_false @WUZI5_25976
if 
  not is_char_dead 48@
goto_if_false @WUZI5_25969
156@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -2401.1001 {y} 1539.8 {z} 25.0 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 48@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25969
101@ = 4

:WUZI5_25976
if 
  101@ == 4
goto_if_false @WUZI5_26438
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2416.3999 {leftBottomY} 1535.3 {rightTopX} -2431.6001 {rightTopY} 1542.1 {drawSphere} False
goto_if_false @WUZI5_26438
if 
  not is_char_dead 42@
goto_if_false @WUZI5_26306
156@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
102@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 102@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} -2420.3999 {y} 1553.4 {z} 25.0 {heading} 180.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 156@ {state} True
close_sequence_task 156@
perform_sequence_task 42@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26306
if 
  not is_char_dead 49@
goto_if_false @WUZI5_26365
156@ = open_sequence_task 
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 49@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26365
if 
  not is_char_dead 50@
goto_if_false @WUZI5_26431
156@ = open_sequence_task 
task_pause -1 {time} 1500
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 50@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26431
101@ = 5

:WUZI5_26438
if 
  101@ == 5
goto_if_false @WUZI5_26533
if or
  is_char_in_area_2d $scplayer {leftBottomX} -2418.8999 {leftBottomY} 1546.4 {rightTopX} -2435.6001 {rightTopY} 1559.0 {drawSphere} False
  has_char_been_damaged_by_char 42@ {handle} $scplayer
goto_if_false @WUZI5_26533
if 
  not is_char_dead 42@
goto_if_false @WUZI5_26533
task_kill_char_on_foot 42@ {target} $scplayer
101@ = 6

:WUZI5_26533
return 

:WUZI5_26535
if 
  113@ == 1
goto_if_false @WUZI5_26670
set_lvar_text_label 117@s = 'WUZ4_KA'
set_lvar_text_label 119@s = 'WUZ4_KB'
set_lvar_text_label 121@s = 'WUZ4_KC'
set_lvar_text_label 123@s = 'WUZ4_KD'
set_lvar_text_label 125@s = 'WUZ4_KE'
set_lvar_int_to_constant 129@ = 21209
set_lvar_int_to_constant 130@ = 21201
set_lvar_int_to_constant 131@ = 21202
set_lvar_int_to_constant 132@ = 21210
set_lvar_int_to_constant 133@ = 21211
135@ = 5

:WUZI5_26670
if 
  113@ == 2
goto_if_false @WUZI5_26805
set_lvar_text_label 117@s = 'WUZ4_LA'
set_lvar_text_label 119@s = 'WUZ4_LB'
set_lvar_text_label 121@s = 'WUZ4_LC'
set_lvar_text_label 123@s = 'WUZ4_LD'
set_lvar_text_label 125@s = 'WUZ4_LE'
set_lvar_int_to_constant 129@ = 21203
set_lvar_int_to_constant 130@ = 21212
set_lvar_int_to_constant 131@ = 21204
set_lvar_int_to_constant 132@ = 21213
set_lvar_int_to_constant 133@ = 21205
135@ = 5

:WUZI5_26805
if 
  113@ == 3
goto_if_false @WUZI5_26940
set_lvar_text_label 117@s = 'WUZ4_MA'
set_lvar_text_label 119@s = 'WUZ4_MB'
set_lvar_text_label 121@s = 'WUZ4_MC'
set_lvar_text_label 123@s = 'WUZ4_MD'
set_lvar_text_label 125@s = 'WUZ4_ME'
set_lvar_int_to_constant 129@ = 21214
set_lvar_int_to_constant 130@ = 21206
set_lvar_int_to_constant 131@ = 21215
set_lvar_int_to_constant 132@ = 21207
set_lvar_int_to_constant 133@ = 21216
135@ = 5

:WUZI5_26940
if 
  113@ == 4
goto_if_false @WUZI5_27076
set_lvar_text_label 117@s = 'WUZ4_NA'
set_lvar_text_label 119@s = 'WUZ4_NB'
set_lvar_text_label 121@s = 'WUZ4_NC'
set_lvar_text_label 123@s = 'WUZ4_NE'
set_lvar_text_label 125@s = 'WUZ4_NF'
set_lvar_int_to_constant 129@ = 21220
set_lvar_int_to_constant 130@ = 21208
set_lvar_int_to_constant 131@ = 21221
set_lvar_int_to_constant 132@ = 21222
set_lvar_int_to_constant 133@ = 21223
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27076
if 
  113@ == 5
goto_if_false @WUZI5_27146
set_lvar_text_label 117@s = 'WUZ4_AA'
set_lvar_text_label 119@s = 'WUZ4_AB'
set_lvar_int_to_constant 129@ = 21227
set_lvar_int_to_constant 130@ = 21228
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27146
if 
  113@ == 6
goto_if_false @WUZI5_27193
set_lvar_text_label 117@s = 'WUZ4_FA'
set_lvar_int_to_constant 129@ = 21236
135@ = 1

:WUZI5_27193
if 
  113@ == 7
goto_if_false @WUZI5_27263
set_lvar_text_label 117@s = 'WUZ4_CA'
set_lvar_text_label 119@s = 'WUZ4_CB'
set_lvar_int_to_constant 129@ = 21230
set_lvar_int_to_constant 130@ = 21231
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27263
if 
  113@ == 8
goto_if_false @WUZI5_27310
set_lvar_text_label 117@s = 'WUZ4_HA'
set_lvar_int_to_constant 129@ = 21240
135@ = 1

:WUZI5_27310
if 
  113@ == 9
goto_if_false @WUZI5_27380
set_lvar_text_label 117@s = 'WUZ4_JA'
set_lvar_text_label 119@s = 'WUZ4_JB'
set_lvar_int_to_constant 129@ = 21241
set_lvar_int_to_constant 130@ = 21242
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27380
if 
  113@ == 10
goto_if_false @WUZI5_27472
set_lvar_text_label 117@s = 'WUZ4_JC'
set_lvar_text_label 119@s = 'WUZ4_JD'
set_lvar_text_label 121@s = 'WUZ4_JE'
set_lvar_int_to_constant 129@ = 21243
set_lvar_int_to_constant 130@ = 21244
set_lvar_int_to_constant 131@ = 21245
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27472
if 
  113@ == 11
goto_if_false @WUZI5_27519
set_lvar_text_label 117@s = 'WUZ4_JF'
set_lvar_int_to_constant 129@ = 21246
135@ = 1

:WUZI5_27519
if 
  113@ == 12
goto_if_false @WUZI5_27588
set_lvar_text_label 117@s = 'WUZ4_OA'
set_lvar_text_label 119@s = 'WUZ4_ZA'
set_lvar_int_to_constant 129@ = 21224
set_lvar_int_to_constant 130@ = 21247
135@ = 2

:WUZI5_27588
if 
  113@ == 13
goto_if_false @WUZI5_27635
set_lvar_text_label 117@s = 'WUZ4_PA'
set_lvar_int_to_constant 129@ = 21226
135@ = 1

:WUZI5_27635
set_lvar_int_to_lvar_int 138@ = 115@
136@ = 0
137@ = 0
139@ = 1
return 

:WUZI5_27666
if or
  113@ == 1
  113@ == 2
  113@ == 3
  113@ == 4
  113@ == 5
goto_if_false @WUZI5_27766
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27759
gosub @WUZI5_28246
gosub @WUZI5_28353
gosub @WUZI5_28507
goto @WUZI5_27766

:WUZI5_27759
113@ = 0

:WUZI5_27766
if or
  113@ == 6
  113@ == 7
  113@ == 10
  113@ == 11
  113@ == 12
goto_if_false @WUZI5_27866
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27859
gosub @WUZI5_28246
gosub @WUZI5_28353
gosub @WUZI5_28507
goto @WUZI5_27866

:WUZI5_27859
113@ = 0

:WUZI5_27866
if 
  113@ == 8
goto_if_false @WUZI5_27992
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27985
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not is_char_dead 45@
goto_if_false @WUZI5_27947
gosub @WUZI5_28507
goto @WUZI5_27978

:WUZI5_27947
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_27978
goto @WUZI5_27992

:WUZI5_27985
113@ = 0

:WUZI5_27992
if 
  113@ == 9
goto_if_false @WUZI5_28118
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28111
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not is_char_dead 62@
goto_if_false @WUZI5_28073
gosub @WUZI5_28507
goto @WUZI5_28104

:WUZI5_28073
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_28104
goto @WUZI5_28118

:WUZI5_28111
113@ = 0

:WUZI5_28118
if 
  113@ == 13
goto_if_false @WUZI5_28244
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28237
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not is_char_dead 65@
goto_if_false @WUZI5_28199
gosub @WUZI5_28507
goto @WUZI5_28230

:WUZI5_28199
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_28230
goto @WUZI5_28244

:WUZI5_28237
113@ = 0

:WUZI5_28244
return 

:WUZI5_28246
if 
  is_int_lvar_greater_than_int_lvar 135@ > 138@
goto_if_false @WUZI5_28351
if 
  136@ == 0
goto_if_false @WUZI5_28308
load_mission_audio MissionAudioSlot.Slot1 {audioId} 129@(138@,6i)
138@ += 1
136@ = 1

:WUZI5_28308
if 
  137@ == 0
goto_if_false @WUZI5_28351
load_mission_audio MissionAudioSlot.Slot2 {audioId} 129@(138@,6i)
138@ += 1
137@ = 1

:WUZI5_28351
return 

:WUZI5_28353
if 
  139@ == 1
goto_if_false @WUZI5_28429
if 
  136@ == 1
goto_if_false @WUZI5_28429
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @WUZI5_28429
play_mission_audio MissionAudioSlot.Slot1
print_now 117@(115@,6s) {time} 4500 {flag} 1
136@ = 2

:WUZI5_28429
if 
  139@ == 2
goto_if_false @WUZI5_28505
if 
  137@ == 1
goto_if_false @WUZI5_28505
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @WUZI5_28505
play_mission_audio MissionAudioSlot.Slot2
print_now 117@(115@,6s) {time} 4500 {flag} 1
137@ = 2

:WUZI5_28505
return 

:WUZI5_28507
if 
  136@ == 2
goto_if_false @WUZI5_28570
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @WUZI5_28570
clear_this_print 117@(115@,6s)
115@ += 1
139@ = 2
136@ = 0

:WUZI5_28570
if 
  137@ == 2
goto_if_false @WUZI5_28633
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @WUZI5_28633
clear_this_print 117@(115@,6s)
115@ += 1
139@ = 1
137@ = 0

:WUZI5_28633
return 

//-------------Mission 58---------------
// Originally: Photo Opportunity

:SYN1
script_name 'SYN1'
gosub @SYN1_1424
if 
  has_deatharrest_been_executed 
goto_if_false @SYN1_38
gosub @SYN1_14491

:SYN1_38
gosub @SYN1_14610
terminate_this_script 

:SYN1_47
request_model 567
load_special_character 1 {modelName} 'CESAR'
request_animation "BOMBER"
load_all_models_now 

:SYN1_77
if or
  not has_model_loaded 567
  not has_special_character_loaded 1
  not has_animation_loaded "BOMBER"
goto_if_false @SYN1_118
wait 0
goto @SYN1_77

:SYN1_118
return 
379@ = add_blip_for_coord $player_first_spot_W2 {y} $sy1_cesar_car_x {z} $sy1_cesar_car_y
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@

:SYN1_148
$player_first_spot_W2 = -54.0
$sy1_cesar_car_x = -432.0
$sy1_cesar_car_y = 1.0
$sy1_cesar_car_z = 259.0
clear_area $player_first_spot_W2 {y} $sy1_cesar_car_x {z} $sy1_cesar_car_y {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
377@ = create_car 567 {x} $player_first_spot_W2 {y} $sy1_cesar_car_x {z} $sy1_cesar_car_y
376@ = create_char PedType.CivMale {modelId} 290 {x} -51.6293 {y} -430.562 {z} 0.5721
set_car_heading 377@ {heading} $sy1_cesar_car_z
set_char_heading 376@ {heading} 154.672
set_char_never_targetted 376@ {state} True
suppress_car_model 567
change_car_colour 377@ {color1} 3 {color2} 3
remove_blip 379@
379@ = add_blip_for_char 376@
set_blip_as_friendly 379@ {state} True
return 
148@ = create_char_inside_car 377@ {pedType} PedType.CivMale {modelId} 290
381@ = add_blip_for_car 377@

:SYN1_345
request_model 510
load_all_models_now 

:SYN1_352
if 
  not has_model_loaded 510
goto_if_false @SYN1_379
wait 0
goto @SYN1_352

:SYN1_379
386@ = create_car 510 {x} 387@ {y} 388@ {z} 389@
set_car_heading 386@ {heading} 390@
freeze_car_position 386@ {state} True
set_car_visible 386@ {state} False
set_heading_for_attached_player $player1 {heading} 135.0 {headingRange} 135.0
attach_char_to_bike $scplayer {vehicle} 386@ {xOffset} -0.2 {yOffset} 0.5 {zOffset} 0.0 {heading} Facing.Left {headingRange} 110.0 {pitchRange} 70.0 {weaponType} WeaponType.Camera
set_heading_for_attached_player $player1 {heading} 135.0 {headingRange} 135.0
set_radio_channel RadioChannel.UserTracks
set_car_engine_on 386@ {state} False
return 

:SYN1_498
request_model 600
request_car_recording 190
load_special_character 2 {modelName} 'RYDER2'
request_model 102
load_all_models_now 

:SYN1_527
if or
  not has_model_loaded 600
  not has_model_loaded 102
  not has_special_character_loaded 2
  not has_car_recording_been_loaded 190
goto_if_false @SYN1_567
wait 0
goto @SYN1_527

:SYN1_567
402@ = -2120.3999
403@ = -2448.458
404@ = 29.4688
405@ = 137.4828
custom_plate_for_next_car 600 {text} "_SHERM__"
clear_area 402@ {y} 403@ {z} 404@ {radius} 5.0 {clearParticles} True
392@ = create_car 600 {x} 402@ {y} 403@ {z} 404@
change_car_colour 392@ {color1} 84 {color2} 84
set_car_proofs 392@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 392@ {heading} 405@
391@ = create_char_inside_car 392@ {pedType} PedType.CivMale {modelId} 291
394@ = create_char_as_passenger 392@ {pedType} PedType.CivMale {modelId} 102 {seat} SeatId.BikeRear
343@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 391@ {handleOrTemplate} 343@
return 

:SYN1_733
request_model 477
request_car_recording 191
load_special_character 3 {modelName} 'TBONE'
load_all_models_now 

:SYN1_758
if or
  not has_model_loaded 477
  not has_special_character_loaded 3
  not has_car_recording_been_loaded 191
goto_if_false @SYN1_794
wait 0
goto @SYN1_758

:SYN1_794
416@ = -2141.4009
417@ = -2481.575
418@ = 29.4688
419@ = 317.093
clear_area 416@ {y} 417@ {z} 418@ {radius} 5.0 {clearParticles} True
407@ = create_car 477 {x} 416@ {y} 417@ {z} 418@
change_car_colour 407@ {color1} 84 {color2} 84
set_car_proofs 407@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 407@ {heading} 419@
406@ = create_char_inside_car 407@ {pedType} PedType.CivMale {modelId} 292
start_playback_recorded_car 407@ {path} 191
set_playback_speed 407@ {speed} 0.6
return 

:SYN1_934
request_model 575
request_model 478
request_car_recording 193
request_car_recording 194
load_special_character 5 {modelName} 'JIZZY'
request_model 237
load_all_models_now 

:SYN1_974
if or
  not has_model_loaded 575
  not has_model_loaded 237
  not has_model_loaded 478
  not has_special_character_loaded 5
  not has_car_recording_been_loaded 193
  not has_car_recording_been_loaded 194
goto_if_false @SYN1_1025
wait 0
goto @SYN1_974

:SYN1_1025
432@ = -2141.4009
433@ = -2481.575
434@ = 29.4688
435@ = 317.093
clear_area 432@ {y} 433@ {z} 434@ {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 575 {text} "HO_2_HO_"
421@ = create_car 575 {x} 432@ {y} 433@ {z} 434@
424@ = create_car 478 {x} -2235.7271 {y} -2572.873 {z} 30.9296
set_car_proofs 421@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 424@ {heading} 44.9335
change_car_colour 421@ {color1} 123 {color2} 5
set_car_heading 421@ {heading} 435@
423@ = create_char_inside_car 421@ {pedType} PedType.CivFemale {modelId} 237
420@ = create_char_as_passenger 421@ {pedType} PedType.CivMale {modelId} 294 {seat} SeatId.BikeRear
start_playback_recorded_car 421@ {path} 193
return 

:SYN1_1218
request_model 421
request_car_recording 192
load_special_character 4 {modelName} 'TORINO'
load_all_models_now 

:SYN1_1243
if or
  not has_model_loaded 421
  not has_special_character_loaded 4
  not has_car_recording_been_loaded 192
goto_if_false @SYN1_1279
wait 0
goto @SYN1_1243

:SYN1_1279
446@ = -2214.2749
447@ = -2475.113
448@ = 29.4688
449@ = 232.2762
custom_plate_for_next_car 421 {text} "_OMEGA__"
clear_area 446@ {y} 447@ {z} 448@ {radius} 5.0 {clearParticles} True
437@ = create_car 421 {x} 446@ {y} 447@ {z} 448@
change_car_colour 437@ {color1} 84 {color2} 84
set_car_proofs 437@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 437@ {heading} 449@
436@ = create_char_inside_car 437@ {pedType} PedType.CivMale {modelId} 293
start_playback_recorded_car 437@ {path} 192
return 

:SYN1_1424
load_mission_text 'SYN1'
register_mission_given 
$onmission = 1
wait 0
34@ = 0
35@ = 0
36@ = 0
147@ = 0
367@ = 0
37@ = 0
41@ = 0
38@ = 0
368@ = 0
42@ = 0
40@ = 0
332@ = 1
333@ = 2
334@ = 0
335@ = 1
336@ = 0
341@ = 1
347@ = -2413.0
350@ = -580.0
353@ = 133.0
348@ = -2410.0
351@ = -582.0
354@ = 133.0
349@ = -2406.0
352@ = -584.0
355@ = 133.0
402@ = -2141.1531
403@ = -2448.8711
404@ = 29.625
405@ = 107.1964
338@ = 120.0
339@ = 240.0
372@ = -2407.0
373@ = -586.0
374@ = 131.0
375@ = 4.0
48@ = -2163.489
49@ = -2404.1589
50@ = 29.6172
$player_first_spot_W2 = -54.0
$sy1_cesar_car_x = -432.0
$sy1_cesar_car_y = 1.0
$sy1_cesar_car_z = 259.0
387@ = -2171.1731
388@ = -2422.821
389@ = 33.2969
390@ = 141.2754
53@ = -2408.437
68@ = -585.082
83@ = 133.2022
98@ = -2408.3369
113@ = -584.0877
128@ = 133.1662
54@ = -60.0461
69@ = -433.1644
84@ = 1.4904
99@ = -59.0698
114@ = -432.9484
129@ = 1.5005
55@ = -58.7976
70@ = -433.3285
85@ = 3.0796
100@ = -57.885
115@ = -432.994
130@ = 2.8444
56@ = -46.1629
71@ = -427.8859
86@ = 1.5902
101@ = -45.8006
116@ = -428.818
131@ = 1.3937
57@ = -2407.1699
72@ = -583.5895
87@ = 133.355
102@ = -2407.7661
117@ = -582.7864
132@ = 133.3749
58@ = -2407.1699
73@ = -583.5895
88@ = 133.355
103@ = -2407.967
118@ = -584.1938
133@ = 133.3749
59@ = -2172.552
74@ = -2427.4871
89@ = 30.5334
104@ = -2171.9861
119@ = -2428.304
134@ = 30.64
60@ = -2139.5691
75@ = -2452.239
90@ = 31.2226
105@ = -2140.292
120@ = -2451.5491
135@ = 31.1829
61@ = -2175.6721
76@ = -2437.23
91@ = 30.7446
106@ = -2174.6841
121@ = -2437.1331
136@ = 30.8619
62@ = -2170.4121
77@ = -2429.4299
92@ = 31.758
107@ = -2170.5
122@ = -2430.4231
137@ = 31.8365
63@ = -2246.8511
78@ = -2571.031
93@ = 32.7468
108@ = -2246.1599
123@ = -2570.311
138@ = 32.6781
64@ = -2241.519
79@ = -2568.281
94@ = 32.2372
109@ = -2242.2859
124@ = -2567.6421
139@ = 32.2906
set_lvar_text_label 154@s = 'MCES10A'
set_lvar_text_label 156@s = 'MCES10B'
set_lvar_text_label 158@s = 'MCES10C'
set_lvar_text_label 160@s = 'MCES10D'
set_lvar_text_label 162@s = 'MCES10E'
set_lvar_text_label 164@s = 'MCES10F'
set_lvar_text_label 166@s = 'MCES10G'
set_lvar_text_label 168@s = 'MCES10H'
set_lvar_text_label 170@s = 'MCES10J'
set_lvar_text_label 172@s = 'CESX_AB'
set_lvar_text_label 182@s = 'SYN1_FC'
set_lvar_text_label 184@s = 'SYN1_FD'
set_lvar_text_label 186@s = 'SYN1_IA'
set_lvar_text_label 188@s = 'SYN1_ZA'
set_lvar_text_label 192@s = 'SYN1_ZC'
set_lvar_text_label 194@s = 'SYN1_ZD'
set_lvar_text_label 196@s = 'SYN1_ZE'
set_lvar_text_label 200@s = 'SYN1_ZG'
set_lvar_text_label 206@s = 'SYN1_ZK'
set_lvar_text_label 208@s = 'SYN1_ZL'
set_lvar_text_label 210@s = 'SYN1_ZM'
set_lvar_text_label 212@s = 'SYN1_ZN'
set_lvar_text_label 216@s = 'SYN1_ZP'
set_lvar_text_label 218@s = 'SYN1_ZQ'
set_lvar_text_label 220@s = 'SYN1_ZR'
set_lvar_text_label 224@s = 'SYN1_ZT'
set_lvar_text_label 226@s = 'SYN1_ZU'
set_lvar_text_label 230@s = 'SYN1_ZW'
set_lvar_text_label 232@s = 'SYN1_ZX'
set_lvar_text_label 234@s = 'SYN1_ZY'
set_lvar_text_label 236@s = 'SYN1_ZZ'
set_lvar_text_label 238@s = 'SYN1_YA'
set_lvar_text_label 240@s = 'SYN1_YB'
set_lvar_text_label 246@s = 'SYN1_YE'
set_lvar_text_label 248@s = 'SYN1_YF'
set_lvar_text_label 252@s = 'SYN1_YH'
set_lvar_text_label 254@s = 'SYN1_YJ'
set_lvar_text_label 256@s = 'SYN1_YK'
set_lvar_int_to_constant 273@ = 4659
set_lvar_int_to_constant 274@ = 4667
set_lvar_int_to_constant 275@ = 4660
set_lvar_int_to_constant 276@ = 4661
set_lvar_int_to_constant 277@ = 4668
set_lvar_int_to_constant 278@ = 4662
set_lvar_int_to_constant 279@ = 4663
set_lvar_int_to_constant 280@ = 4669
set_lvar_int_to_constant 281@ = 4664
set_lvar_int_to_constant 282@ = 42401
set_lvar_int_to_constant 287@ = 11609
set_lvar_int_to_constant 288@ = 11649
set_lvar_int_to_constant 289@ = 11600
set_lvar_int_to_constant 292@ = 11636
set_lvar_int_to_constant 293@ = 11637
set_lvar_int_to_constant 294@ = 11651
set_lvar_int_to_constant 296@ = 11638
set_lvar_int_to_constant 299@ = 11639
set_lvar_int_to_constant 300@ = 11640
set_lvar_int_to_constant 301@ = 11641
set_lvar_int_to_constant 302@ = 11642
set_lvar_int_to_constant 304@ = 11643
set_lvar_int_to_constant 305@ = 11652
set_lvar_int_to_constant 306@ = 11644
set_lvar_int_to_constant 308@ = 11645
set_lvar_int_to_constant 309@ = 11646
set_lvar_int_to_constant 311@ = 11647
set_lvar_int_to_constant 312@ = 11653
set_lvar_int_to_constant 313@ = 11648
set_lvar_int_to_constant 314@ = 11654
set_lvar_int_to_constant 315@ = 11630
set_lvar_int_to_constant 316@ = 11631
set_lvar_int_to_constant 319@ = 11632
set_lvar_int_to_constant 320@ = 11633
set_lvar_int_to_constant 322@ = 11634
set_lvar_int_to_constant 323@ = 11650
set_lvar_int_to_constant 324@ = 11635
if 
  $flag_syn1_passed_1stime == 0
goto_if_false @SYN1_3442
$flag_syn1_passed_1stime = 1

:SYN1_3442
request_model 330
request_model 367
load_all_models_now 

:SYN1_3454
if or
  not has_model_loaded 367
  not has_model_loaded 330
goto_if_false @SYN1_3486
wait 0
goto @SYN1_3454

:SYN1_3486
set_char_coordinates $scplayer {x} -2030.312 {y} 148.0136 {z} 27.8359
set_char_heading $scplayer {heading} 293.7756
set_player_control $player1 {state} False
task_use_mobile_phone $scplayer {start} True
switch_widescreen True
set_fixed_camera_position -2024.469 {y} 136.6788 {z} 39.4814 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2025.135 {y} 137.4221 {z} 39.5473 {switchStyle} SwitchType.JumpCut
switch_car_generator $car_gen_low_rider_near_cesars {amount} 0
switch_car_generator $car_gen_pine {amount} 0
switch_car_generator $5278 {amount} 0
gosub @SYN1_47
do_fade 300 {direction} Fade.In

:SYN1_3620
if 
  get_fading_status 
goto_if_false @SYN1_3644
wait 0
goto @SYN1_3620

:SYN1_3644
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2024.469 {fromY} 136.6788 {fromZ} 39.4814 {toX} -2030.399 {toY} 144.5236 {toZ} 29.1601 {time} 3500 {ease} True
camera_set_vector_track -2025.135 {fromY} 137.4221 {fromZ} 39.5473 {toX} -2030.797 {toY} 145.4357 {toZ} 29.0639 {time} 3500 {ease} True

:SYN1_3728
wait 0
if 
  334@ <> 0
goto_if_false @SYN1_4159
if 
  336@ == 0
goto_if_false @SYN1_3796
if 
  has_mission_audio_loaded 333@
goto_if_false @SYN1_3789
clear_mission_audio 333@

:SYN1_3789
336@ = 1

:SYN1_3796
if 
  336@ == 1
goto_if_false @SYN1_3840
load_mission_audio 332@ {audioId} 272@(334@,60i)
gosub @SYN1_15742
336@ = 2

:SYN1_3840
if 
  336@ == 2
goto_if_false @SYN1_3942
if 
  has_mission_audio_loaded 332@
goto_if_false @SYN1_3942
if 
  148@ <> 0
goto_if_false @SYN1_3916
if 
  not is_char_dead 148@
goto_if_false @SYN1_3916
start_char_facial_talk 148@ {duration} 10000

:SYN1_3916
play_mission_audio 332@
print_now 152@(334@,60s) {time} 10000 {flag} 1
336@ = 3

:SYN1_3942
if 
  336@ == 3
goto_if_false @SYN1_4159
if 
  has_mission_audio_finished 332@
goto_if_false @SYN1_4098
clear_this_print 152@(334@,60s)
if 
  148@ <> 0
goto_if_false @SYN1_4024
if 
  not is_char_dead 148@
goto_if_false @SYN1_4024
stop_char_facial_talk 148@

:SYN1_4024
if 
  332@ == 1
goto_if_false @SYN1_4063
332@ = 2
333@ = 1
goto @SYN1_4077

:SYN1_4063
332@ = 1
333@ = 2

:SYN1_4077
334@ = 0
336@ = 0
goto @SYN1_4159

:SYN1_4098
if 
  not has_mission_audio_loaded 333@
goto_if_false @SYN1_4159
if 
  60 > 334@
goto_if_false @SYN1_4159
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
load_mission_audio 333@ {audioId} 272@(335@,60i)

:SYN1_4159
if 
  39@ == 0
goto_if_false @SYN1_4214
if 
  336@ == 0
goto_if_false @SYN1_4214
334@ = 1
39@ = 1
151@ = get_game_timer 

:SYN1_4214
if 
  39@ == 1
goto_if_false @SYN1_4309
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4309
if 
  336@ == 0
goto_if_false @SYN1_4309
334@ = 2
39@ = 2
151@ = get_game_timer 

:SYN1_4309
if 
  39@ == 2
goto_if_false @SYN1_4404
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4404
if 
  336@ == 0
goto_if_false @SYN1_4404
334@ = 3
39@ = 3
151@ = get_game_timer 

:SYN1_4404
if 
  39@ == 3
goto_if_false @SYN1_4499
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4499
if 
  336@ == 0
goto_if_false @SYN1_4499
334@ = 4
39@ = 4
151@ = get_game_timer 

:SYN1_4499
if 
  39@ == 4
goto_if_false @SYN1_4611
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4611
if 
  336@ == 0
goto_if_false @SYN1_4611
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
334@ = 5
39@ = 5
151@ = get_game_timer 

:SYN1_4611
if 
  39@ == 5
goto_if_false @SYN1_4706
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4706
if 
  336@ == 0
goto_if_false @SYN1_4706
334@ = 6
39@ = 6
151@ = get_game_timer 

:SYN1_4706
if 
  39@ == 6
goto_if_false @SYN1_4801
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4801
if 
  336@ == 0
goto_if_false @SYN1_4801
334@ = 7
39@ = 7
151@ = get_game_timer 

:SYN1_4801
if 
  39@ == 7
goto_if_false @SYN1_4896
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4896
if 
  336@ == 0
goto_if_false @SYN1_4896
334@ = 8
39@ = 8
151@ = get_game_timer 

:SYN1_4896
if 
  39@ == 8
goto_if_false @SYN1_4991
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4991
if 
  336@ == 0
goto_if_false @SYN1_4991
334@ = 9
39@ = 9
151@ = get_game_timer 

:SYN1_4991
if or
  39@ == 9
  39@ == 10
goto_if_false @SYN1_5124
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_5124
if 
  336@ == 0
goto_if_false @SYN1_5124
set_player_control $player1 {state} True
365@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 365@ == 7
goto_if_false @SYN1_5117
task_use_mobile_phone $scplayer {start} False

:SYN1_5117
goto @SYN1_5178

:SYN1_5124
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN1_5171
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
39@ = 10

:SYN1_5171
goto @SYN1_3728

:SYN1_5178
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN1_5204
goto @SYN1_14516

:SYN1_5204
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @SYN1_5233
$flag_syn1_skip1 = 1
$flag_syn1_skip2 = 1

:SYN1_5233
if 
  34@ == 0
goto_if_false @SYN1_5400
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @SYN1_5400
do_fade 100 {direction} Fade.Out

:SYN1_5272
if 
  get_fading_status 
goto_if_false @SYN1_5296
wait 0
goto @SYN1_5272

:SYN1_5296
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
load_scene 387@ {y} 388@ {z} 389@
load_scene 402@ {y} 403@ {z} 404@
gosub @SYN1_345
gosub @SYN1_498
do_fade 100 {direction} Fade.In

:SYN1_5362
if 
  get_fading_status 
goto_if_false @SYN1_5386
wait 0
goto @SYN1_5362

:SYN1_5386
34@ = 5
35@ = 1

:SYN1_5400
if 
  334@ <> 0
goto_if_false @SYN1_5973
if 
  336@ == 0
goto_if_false @SYN1_5464
if 
  has_mission_audio_loaded 333@
goto_if_false @SYN1_5457
clear_mission_audio 333@

:SYN1_5457
336@ = 1

:SYN1_5464
if 
  336@ == 1
goto_if_false @SYN1_5508
load_mission_audio 332@ {audioId} 272@(334@,60i)
gosub @SYN1_15742
336@ = 2

:SYN1_5508
if 
  336@ == 2
goto_if_false @SYN1_5610
if 
  has_mission_audio_loaded 332@
goto_if_false @SYN1_5610
if 
  148@ <> 0
goto_if_false @SYN1_5584
if 
  not is_char_dead 148@
goto_if_false @SYN1_5584
start_char_facial_talk 148@ {duration} 10000

:SYN1_5584
play_mission_audio 332@
print_now 152@(334@,60s) {time} 10000 {flag} 1
336@ = 3

:SYN1_5610
if 
  336@ == 3
goto_if_false @SYN1_5973
if 
  has_mission_audio_finished 332@
goto_if_false @SYN1_5912
clear_this_print 152@(334@,60s)
if 
  148@ <> 0
goto_if_false @SYN1_5692
if 
  not is_char_dead 148@
goto_if_false @SYN1_5692
stop_char_facial_talk 148@

:SYN1_5692
if 
  332@ == 1
goto_if_false @SYN1_5731
332@ = 2
333@ = 1
goto @SYN1_5745

:SYN1_5731
332@ = 1
333@ = 2

:SYN1_5745
if and
  334@ == 10
  36@ == 2
goto_if_false @SYN1_5798
334@ = 0
336@ = 0
36@ = 3
goto @SYN1_5812

:SYN1_5798
334@ = 0
336@ = 0

:SYN1_5812
if 
  337@ == 1
goto_if_false @SYN1_5837
337@ = 2

:SYN1_5837
if 
  337@ == 0
goto_if_false @SYN1_5862
337@ = 1

:SYN1_5862
if 
  34@ == 6
goto_if_false @SYN1_5905
if 
  35@ == 13
goto_if_false @SYN1_5905
35@ = 0

:SYN1_5905
goto @SYN1_5973

:SYN1_5912
if 
  not has_mission_audio_loaded 333@
goto_if_false @SYN1_5973
if 
  60 > 334@
goto_if_false @SYN1_5973
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
load_mission_audio 333@ {audioId} 272@(335@,60i)

:SYN1_5973
if 
  34@ == 0
goto_if_false @SYN1_6047
379@ = add_blip_for_coord $player_first_spot_W2 {y} $sy1_cesar_car_x {z} $sy1_cesar_car_y
set_coord_blip_appearance 379@ {color} CoordAppearance.Friend
151@ = get_game_timer 
print 'SYN1_02' {time} 10000 {flag} 1
147@ = 11
34@ = 1

:SYN1_6047
if 
  34@ == 2
goto_if_false @SYN1_6121
if 
  not locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN1_6121
gosub @SYN1_14934
gosub @SYN1_15405

:SYN1_6121
if 
  34@ == 1
goto_if_false @SYN1_7089
if 
  35@ == 0
goto_if_false @SYN1_6344
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN1_6344
366@ = store_car_char_is_in_no_save $scplayer
if 
  336@ == 0
goto_if_false @SYN1_6344
if 
  147@ == 11
goto_if_false @SYN1_6344
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_6344
if 
  $flag_syn1_skip1 == 1
goto_if_false @SYN1_6296
set_up_skip -85.518 {y} -413.1554 {z} 0.4297 {heading} 240.0212

:SYN1_6296
if 
  not is_message_being_displayed 
goto_if_false @SYN1_6325
print 'SYN1_02' {time} 10000 {flag} 1

:SYN1_6325
151@ = get_game_timer 
147@ = 12
35@ = 1

:SYN1_6344
if 
  36@ == 0
goto_if_false @SYN1_6497
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @SYN1_6497
task_use_mobile_phone $scplayer {start} False
if 
  not is_car_dead 366@
goto_if_false @SYN1_6409
lock_car_doors 366@ {lockStatus} CarLock.Unlocked

:SYN1_6409
147@ = 12
35@ = 1
gosub @SYN1_148
if 
  not is_char_dead 376@
goto_if_false @SYN1_6490
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6490
36@ = 1

:SYN1_6497
if 
  36@ == 0
goto_if_false @SYN1_6668
if 
  locate_char_any_means_3d $scplayer {x} $player_first_spot_W2 {y} $sy1_cesar_car_x {z} $sy1_cesar_car_y {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} True
goto_if_false @SYN1_6668
task_use_mobile_phone $scplayer {start} False
if 
  not is_car_dead 366@
goto_if_false @SYN1_6587
lock_car_doors 366@ {lockStatus} CarLock.Unlocked

:SYN1_6587
gosub @SYN1_148
if 
  not is_char_dead 376@
goto_if_false @SYN1_6654
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6654
147@ = 12
36@ = 1

:SYN1_6668
if 
  36@ == 1
goto_if_false @SYN1_7089
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_7089
if and
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  not locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_6890
print_now 'SYN1_15' {time} 100 {flag} 1
if 
  41@ == 0
goto_if_false @SYN1_6890
if 
  not is_char_dead 376@
goto_if_false @SYN1_6890
380@ = get_script_task_status 376@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 380@ == 7
goto_if_false @SYN1_6890
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6890
if 
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_7089
clear_char_tasks 376@
if 
  41@ == 0
goto_if_false @SYN1_6956
41@ = 1

:SYN1_6956
if 
  not is_char_in_any_car $scplayer
goto_if_false @SYN1_7089
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_7089
if 
  $flag_syn1_skip1 == 0
goto_if_false @SYN1_7016
$flag_syn1_skip1 = 1

:SYN1_7016
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 376@
remove_blip 379@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True
151@ = get_game_timer 
151@ -= 3000
34@ = 2
35@ = 4
42@ = 1
367@ = 0

:SYN1_7089
if 
  34@ == 1
goto_if_false @SYN1_7166
if 
  36@ == 1
goto_if_false @SYN1_7166
if 
  is_char_dead 376@
goto_if_false @SYN1_7166
clear_prints 
print 'SYN1_06' {time} 5000 {flag} 1
goto @SYN1_14491

:SYN1_7166
if or
  34@ == 2
  34@ == 3
goto_if_false @SYN1_7273
if 
  is_char_dead 376@
goto_if_false @SYN1_7232
clear_prints 
print 'SYN1_06' {time} 5000 {flag} 1
goto @SYN1_14491

:SYN1_7232
if 
  is_car_dead 377@
goto_if_false @SYN1_7273
clear_prints 
print 'SYN1_08' {time} 5000 {flag} 1
goto @SYN1_14491

:SYN1_7273
if 
  34@ == 2
goto_if_false @SYN1_8310
if and
  367@ == 1
  368@ == 1
  147@ == 12
goto_if_false @SYN1_7337
147@ = 2
goto @SYN1_7568

:SYN1_7337
if 
  147@ > 5
goto_if_false @SYN1_7568
if 
  368@ == 1
goto_if_false @SYN1_7430
if 
  36@ == 1
goto_if_false @SYN1_7430
if and
  336@ == 0
  334@ == 0
goto_if_false @SYN1_7430
334@ = 10
36@ = 2

:SYN1_7430
if 
  36@ == 1
goto_if_false @SYN1_7499
if and
  368@ == 0
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7499
print_now 'SYN1_15' {time} 100 {flag} 1
set_radio_channel RadioChannel.PlaybackFM

:SYN1_7499
if 
  36@ == 3
goto_if_false @SYN1_7568
if and
  368@ == 1
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7568
print_now 'SYN1_07' {time} 100 {flag} 1
set_radio_channel RadioChannel.PlaybackFM

:SYN1_7568
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_7902
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_7902
if 
  147@ == 2
goto_if_false @SYN1_7703
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3500
goto_if_false @SYN1_7703
if 
  336@ == 0
goto_if_false @SYN1_7703
334@ = 15
151@ = get_game_timer 
147@ = 3

:SYN1_7703
if 
  147@ == 3
goto_if_false @SYN1_7798
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7798
if 
  336@ == 0
goto_if_false @SYN1_7798
334@ = 16
151@ = get_game_timer 
147@ = 4

:SYN1_7798
if 
  147@ == 4
goto_if_false @SYN1_7902
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7902
if 
  336@ == 0
goto_if_false @SYN1_7902
print 'SYN1_13' {time} 10000 {flag} 1
151@ = get_game_timer 
147@ = 5

:SYN1_7902
if 
  35@ == 4
goto_if_false @SYN1_8310
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_8310
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_8310
if 
  is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_8310
if 
  locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN1_8310
if 
  $flag_syn1_skip2 == 0
goto_if_false @SYN1_8046
$flag_syn1_skip2 = 1

:SYN1_8046
set_player_control $player1 {state} False
151@ = get_game_timer 
remove_blip 51@
52@ = add_blip_for_coord 387@ {y} 388@ {z} 389@
print_now 'SYN1_14' {time} 5000 {flag} 1
34@ = 3
if 
  is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_8310
remove_char_from_group 376@
385@ = open_sequence_task 
task_leave_car -1 {vehicle} 377@
task_go_straight_to_coord -1 {x} -2160.5149 {y} -2413.449 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.4519 {y} -2414.229 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.884 {y} -2411.885 {z} 31.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2168.957 {y} -2409.1179 {z} 33.618 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2170.8401 {y} -2414.24 {z} 33.2969 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.741 {y} -2416.9529 {z} 33.2969 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2168.3621 {y} -2419.4399 {z} 33.2969 {speed} MoveState.Walk {time} -2
close_sequence_task 385@
perform_sequence_task 376@ {sequence} 385@

:SYN1_8310
if 
  34@ == 3
goto_if_false @SYN1_8709
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 500
goto_if_false @SYN1_8375
set_player_control $player1 {state} True

:SYN1_8375
if 
  locate_char_on_foot_3d $scplayer {x} 387@ {y} 388@ {z} 389@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @SYN1_8709
do_fade 100 {direction} Fade.Out

:SYN1_8423
if 
  get_fading_status 
goto_if_false @SYN1_8447
wait 0
goto @SYN1_8423

:SYN1_8447
if 
  not is_car_dead 377@
goto_if_false @SYN1_8530
set_car_proofs 377@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 377@ {health} 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_car_coordinates 377@ {x} -2160.0601 {y} -2409.6311 {z} 29.6172
set_car_heading 377@ {heading} 191.1948

:SYN1_8530
if 
  not is_char_dead 376@
goto_if_false @SYN1_8561
set_char_proofs 376@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SYN1_8561
alter_wanted_level $player1 {wantedLevel} 0
remove_blip 52@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
load_scene 387@ {y} 388@ {z} 389@
load_scene 402@ {y} 403@ {z} 404@
print_help_forever 'SYN1_44'
gosub @SYN1_345
gosub @SYN1_498
do_fade 100 {direction} Fade.In

:SYN1_8650
if 
  get_fading_status 
goto_if_false @SYN1_8674
wait 0
goto @SYN1_8650

:SYN1_8674
34@ = 5
35@ = 0
151@ = get_game_timer 
print_now 'SYN1_12' {time} 10000 {flag} 1

:SYN1_8709
if 
  34@ == 5
goto_if_false @SYN1_12631
146@ = get_camera_fov 
if 
  35@ == 0
goto_if_false @SYN1_8881
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 8000
goto_if_false @SYN1_8830
if 
  not is_car_dead 392@
goto_if_false @SYN1_8830
if 
  not is_playback_going_on_for_car 392@
goto_if_false @SYN1_8830
start_playback_recorded_car 392@ {path} 190

:SYN1_8830
if 
  149@ > 10000
goto_if_false @SYN1_8881
if 
  336@ == 0
goto_if_false @SYN1_8881
334@ = 17
35@ = 1

:SYN1_8881
if 
  35@ == 1
goto_if_false @SYN1_9106
if and
  not is_car_dead 392@
  not is_char_dead 391@
goto_if_false @SYN1_9106
if 
  not is_playback_going_on_for_car 392@
goto_if_false @SYN1_9106
397@ = open_sequence_task 
task_leave_car -1 {vehicle} 392@
task_go_straight_to_coord -1 {x} -2151.4751 {y} -2442.0649 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2157.3879 {y} -2441.616 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.4709 {y} -2444.574 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.3091 {y} -2451.8779 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2166.5171 {y} -2456.9661 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2160.4199 {y} -2461.468 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 397@
perform_sequence_task 391@ {sequence} 397@
35@ = 2

:SYN1_9106
if 
  35@ == 2
goto_if_false @SYN1_9211
if and
  not is_car_dead 392@
  not is_char_dead 391@
goto_if_false @SYN1_9211
if 
  not is_char_in_car 391@ {vehicle} 392@
goto_if_false @SYN1_9211
393@ = add_blip_for_char 391@
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9188

:SYN1_9188
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 3

:SYN1_9211
if 
  35@ == 3
goto_if_false @SYN1_9378
if 
  not is_char_dead 391@
goto_if_false @SYN1_9378
395@ = get_script_task_status 391@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 395@ == 7
goto_if_false @SYN1_9378
do_fade 500 {direction} Fade.Out

:SYN1_9281
if 
  get_fading_status 
goto_if_false @SYN1_9305
wait 0
goto @SYN1_9281

:SYN1_9305
if 
  not is_car_dead 386@
goto_if_false @SYN1_9378
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14491

:SYN1_9378
if 
  35@ == 3
goto_if_false @SYN1_9626
if 
  40@ == 0
goto_if_false @SYN1_9626
if 
  not is_char_dead 391@
goto_if_false @SYN1_9626
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9626
if 
  20.0 > 146@
goto_if_false @SYN1_9594
401@ = get_char_heading 391@
if or
  is_float_lvar_greater_than_float_lvar 401@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 401@
goto_if_false @SYN1_9555
if 
  336@ == 0
goto_if_false @SYN1_9548
clear_prints 
remove_blip 393@
gosub @SYN1_733
337@ = 0
35@ = 4

:SYN1_9548
goto @SYN1_9587

:SYN1_9555
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9587

:SYN1_9587
goto @SYN1_9626

:SYN1_9594
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9626

:SYN1_9626
if and
  35@ > 3
  7 > 35@
goto_if_false @SYN1_9769
if 
  40@ == 0
goto_if_false @SYN1_9769
if 
  336@ == 0
goto_if_false @SYN1_9769
if 
  337@ == 0
goto_if_false @SYN1_9712
334@ = 20

:SYN1_9712
if 
  337@ == 1
goto_if_false @SYN1_9737
334@ = 22

:SYN1_9737
if 
  337@ == 2
goto_if_false @SYN1_9769
334@ = 27
40@ = 1

:SYN1_9769
if 
  35@ == 4
goto_if_false @SYN1_9994
if and
  not is_car_dead 407@
  not is_char_dead 406@
goto_if_false @SYN1_9994
if 
  not is_playback_going_on_for_car 407@
goto_if_false @SYN1_9994
411@ = open_sequence_task 
task_leave_car -1 {vehicle} 407@
task_go_straight_to_coord -1 {x} -2156.689 {y} -2441.7119 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.1421 {y} -2444.187 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.8301 {y} -2449.4761 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.1379 {y} -2454.51 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2164.094 {y} -2458.863 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.3359 {y} -2460.522 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 411@
perform_sequence_task 406@ {sequence} 411@
35@ = 5

:SYN1_9994
if 
  35@ == 5
goto_if_false @SYN1_10099
if and
  not is_car_dead 407@
  not is_char_dead 406@
goto_if_false @SYN1_10099
if 
  not is_char_in_car 406@ {vehicle} 407@
goto_if_false @SYN1_10099
408@ = add_blip_for_char 406@
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10076

:SYN1_10076
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 6

:SYN1_10099
if 
  35@ == 6
goto_if_false @SYN1_10266
if 
  not is_char_dead 406@
goto_if_false @SYN1_10266
409@ = get_script_task_status 406@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 409@ == 7
goto_if_false @SYN1_10266
do_fade 500 {direction} Fade.Out

:SYN1_10169
if 
  get_fading_status 
goto_if_false @SYN1_10193
wait 0
goto @SYN1_10169

:SYN1_10193
if 
  not is_car_dead 386@
goto_if_false @SYN1_10266
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14491

:SYN1_10266
if 
  35@ == 6
goto_if_false @SYN1_10514
if 
  40@ == 1
goto_if_false @SYN1_10514
if 
  not is_char_dead 406@
goto_if_false @SYN1_10514
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10514
if 
  20.0 > 146@
goto_if_false @SYN1_10482
415@ = get_char_heading 406@
if or
  is_float_lvar_greater_than_float_lvar 415@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 415@
goto_if_false @SYN1_10443
if 
  336@ == 0
goto_if_false @SYN1_10436
clear_prints 
remove_blip 408@
gosub @SYN1_1218
337@ = 0
35@ = 7

:SYN1_10436
goto @SYN1_10475

:SYN1_10443
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10475

:SYN1_10475
goto @SYN1_10514

:SYN1_10482
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10514

:SYN1_10514
if and
  35@ > 6
  10 > 35@
goto_if_false @SYN1_10657
if 
  40@ == 1
goto_if_false @SYN1_10657
if 
  336@ == 0
goto_if_false @SYN1_10657
if 
  337@ == 0
goto_if_false @SYN1_10600
334@ = 32

:SYN1_10600
if 
  337@ == 1
goto_if_false @SYN1_10625
334@ = 33

:SYN1_10625
if 
  337@ == 2
goto_if_false @SYN1_10657
334@ = 30
40@ = 2

:SYN1_10657
if 
  35@ == 7
goto_if_false @SYN1_11035
if and
  not is_car_dead 437@
  not is_char_dead 436@
goto_if_false @SYN1_11035
if 
  is_playback_going_on_for_car 437@
goto_if_false @SYN1_10895
359@, 360@, 361@ = get_offset_from_car_in_world_coords 437@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 356@ = 359@
356@ -= 1.0
set_lvar_float_to_lvar_float 357@ = 360@
357@ -= 1.0
set_lvar_float_to_lvar_float 358@ = 361@
358@ -= 1.0
set_lvar_float_to_lvar_float 362@ = 359@
362@ += 1.0
set_lvar_float_to_lvar_float 363@ = 360@
363@ += 1.0
set_lvar_float_to_lvar_float 364@ = 361@
364@ += 1.0
if 
  is_area_occupied 356@ {leftBottomY} 357@ {leftBottomZ} 358@ {rightTopX} 362@ {rightTopY} 363@ {rightTopZ} 364@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @SYN1_10895
stop_playback_recorded_car 437@

:SYN1_10895
if 
  not is_playback_going_on_for_car 437@
goto_if_false @SYN1_11035
441@ = open_sequence_task 
task_leave_car -1 {vehicle} 437@
task_go_straight_to_coord -1 {x} -2176.855 {y} -2453.54 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2172.5171 {y} -2453.834 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2169.3831 {y} -2456.0801 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.812 {y} -2459.8391 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 441@
perform_sequence_task 436@ {sequence} 441@
35@ = 8

:SYN1_11035
if 
  35@ == 8
goto_if_false @SYN1_11140
if and
  not is_car_dead 437@
  not is_char_dead 436@
goto_if_false @SYN1_11140
if 
  not is_char_in_car 436@ {vehicle} 437@
goto_if_false @SYN1_11140
438@ = add_blip_for_char 436@
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11117

:SYN1_11117
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 9

:SYN1_11140
if 
  35@ == 9
goto_if_false @SYN1_11307
if 
  not is_char_dead 436@
goto_if_false @SYN1_11307
439@ = get_script_task_status 436@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 439@ == 7
goto_if_false @SYN1_11307
do_fade 500 {direction} Fade.Out

:SYN1_11210
if 
  get_fading_status 
goto_if_false @SYN1_11234
wait 0
goto @SYN1_11210

:SYN1_11234
if 
  not is_car_dead 386@
goto_if_false @SYN1_11307
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14491

:SYN1_11307
if 
  35@ == 9
goto_if_false @SYN1_11555
if 
  40@ == 2
goto_if_false @SYN1_11555
if 
  not is_char_dead 436@
goto_if_false @SYN1_11555
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11555
if 
  20.0 > 146@
goto_if_false @SYN1_11523
445@ = get_char_heading 436@
if or
  is_float_lvar_greater_than_float_lvar 445@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 445@
goto_if_false @SYN1_11484
if 
  336@ == 0
goto_if_false @SYN1_11477
clear_prints 
remove_blip 438@
gosub @SYN1_934
337@ = 0
35@ = 10

:SYN1_11477
goto @SYN1_11516

:SYN1_11484
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11516

:SYN1_11516
goto @SYN1_11555

:SYN1_11523
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11555

:SYN1_11555
if and
  35@ > 9
  13 > 35@
goto_if_false @SYN1_11698
if 
  40@ == 2
goto_if_false @SYN1_11698
if 
  336@ == 0
goto_if_false @SYN1_11698
if 
  337@ == 0
goto_if_false @SYN1_11641
334@ = 42

:SYN1_11641
if 
  337@ == 1
goto_if_false @SYN1_11666
334@ = 43

:SYN1_11666
if 
  337@ == 2
goto_if_false @SYN1_11698
334@ = 39
40@ = 3

:SYN1_11698
if 
  35@ == 10
goto_if_false @SYN1_11884
if and
  not is_car_dead 421@
  not is_char_dead 420@
goto_if_false @SYN1_11884
if 
  not is_playback_going_on_for_car 421@
goto_if_false @SYN1_11884
427@ = open_sequence_task 
task_leave_car -1 {vehicle} 421@
task_go_straight_to_coord -1 {x} -2173.3911 {y} -2445.9851 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_stand_still -1 {time} 1500
task_go_straight_to_coord -1 {x} -2170.468 {y} -2449.187 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.9741 {y} -2454.9741 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2163.5391 {y} -2458.7529 {z} 29.625 {speed} MoveState.Walk {time} -2
close_sequence_task 427@
perform_sequence_task 420@ {sequence} 427@
35@ = 11

:SYN1_11884
if 
  35@ == 11
goto_if_false @SYN1_11989
if and
  not is_car_dead 421@
  not is_char_dead 420@
goto_if_false @SYN1_11989
if 
  not is_char_in_car 420@ {vehicle} 421@
goto_if_false @SYN1_11989
422@ = add_blip_for_char 420@
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_11966

:SYN1_11966
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 12

:SYN1_11989
if 
  35@ == 12
goto_if_false @SYN1_12240
if 
  not is_char_dead 420@
goto_if_false @SYN1_12240
425@ = get_script_task_status 420@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12118
426@ = get_sequence_progress 420@
if 
  426@ == 1
goto_if_false @SYN1_12118
if 
  not is_car_dead 421@
goto_if_false @SYN1_12118
if 
  not is_playback_going_on_for_car 421@
goto_if_false @SYN1_12118
start_playback_recorded_car 421@ {path} 194

:SYN1_12118
if 
  is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12240
do_fade 500 {direction} Fade.Out

:SYN1_12143
if 
  get_fading_status 
goto_if_false @SYN1_12167
wait 0
goto @SYN1_12143

:SYN1_12167
if 
  not is_car_dead 386@
goto_if_false @SYN1_12240
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14491

:SYN1_12240
if 
  35@ == 12
goto_if_false @SYN1_12481
if 
  40@ == 3
goto_if_false @SYN1_12481
if 
  not is_char_dead 420@
goto_if_false @SYN1_12481
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12481
if 
  20.0 > 146@
goto_if_false @SYN1_12449
431@ = get_char_heading 420@
if or
  is_float_lvar_greater_than_float_lvar 431@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 431@
goto_if_false @SYN1_12410
if 
  336@ == 0
goto_if_false @SYN1_12403
clear_prints 
remove_blip 422@
337@ = 0
35@ = 13

:SYN1_12403
goto @SYN1_12442

:SYN1_12410
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12442

:SYN1_12442
goto @SYN1_12481

:SYN1_12449
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12481

:SYN1_12481
if 
  35@ == 13
goto_if_false @SYN1_12631
if 
  40@ == 3
goto_if_false @SYN1_12631
if 
  336@ == 0
goto_if_false @SYN1_12631
if 
  337@ == 0
goto_if_false @SYN1_12560
334@ = 40

:SYN1_12560
if 
  337@ == 1
goto_if_false @SYN1_12585
334@ = 41

:SYN1_12585
if 
  337@ == 2
goto_if_false @SYN1_12631
334@ = 29
40@ = 4
34@ = 6
35@ = -3

:SYN1_12631
if 
  34@ == 6
goto_if_false @SYN1_14484
if 
  35@ == -3
goto_if_false @SYN1_12968
if 
  334@ == 0
goto_if_false @SYN1_12968
do_fade 150 {direction} Fade.Out

:SYN1_12692
if 
  get_fading_status 
goto_if_false @SYN1_12716
wait 0
goto @SYN1_12692

:SYN1_12716
clear_help 
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_dead 376@
goto_if_false @SYN1_12968
detach_char_from_car $scplayer
if 
  not is_car_dead 386@
goto_if_false @SYN1_12771
delete_car 386@

:SYN1_12771
set_fixed_camera_position -2161.72 {y} -2411.582 {z} 31.9003 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2162.657 {y} -2411.396 {z} 32.193 {switchStyle} SwitchType.JumpCut
set_char_coordinates 376@ {x} -2169.03 {y} -2409.3269 {z} 33.618
set_char_heading 376@ {heading} 232.4401
set_char_coordinates $scplayer {x} -2170.2451 {y} -2410.9561 {z} 33.2969
set_char_heading $scplayer {heading} 322.3848
340@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2169.03 {y} -2409.3269 {z} 33.618 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.3879 {y} -2411.7461 {z} 31.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.814 {y} -2414.811 {z} 29.625 {speed} MoveState.Run {time} -2
close_sequence_task 340@
35@ = -2

:SYN1_12968
if 
  35@ == -2
goto_if_false @SYN1_13061
if 
  not is_char_dead 376@
goto_if_false @SYN1_13061
perform_sequence_task 376@ {sequence} 340@
perform_sequence_task $scplayer {sequence} 340@
do_fade 150 {direction} Fade.In

:SYN1_13025
if 
  get_fading_status 
goto_if_false @SYN1_13049
wait 0
goto @SYN1_13025

:SYN1_13049
151@ = get_game_timer 
35@ = -1

:SYN1_13061
if 
  35@ == -1
goto_if_false @SYN1_13126
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 4500
goto_if_false @SYN1_13126
35@ = 0

:SYN1_13126
if 
  35@ == 0
goto_if_false @SYN1_13425
do_fade 250 {direction} Fade.Out

:SYN1_13151
if 
  get_fading_status 
goto_if_false @SYN1_13175
wait 0
goto @SYN1_13151

:SYN1_13175
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_13425
clear_prints 
warp_char_into_car $scplayer {vehicle} 377@
warp_char_into_car_as_passenger 376@ {handle} 377@ {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 575
unload_special_character 4
unload_special_character 5
set_fixed_camera_position -2152.2549 {y} -2416.0491 {z} 30.2724 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2153.1741 {y} -2415.7009 {z} 30.4581 {switchStyle} SwitchType.JumpCut
request_car_recording 197

:SYN1_13285
if 
  not has_car_recording_been_loaded 197
goto_if_false @SYN1_13312
wait 0
goto @SYN1_13285

:SYN1_13312
if 
  not is_car_dead 377@
goto_if_false @SYN1_13341
start_playback_recorded_car 377@ {path} 197
151@ = get_game_timer 

:SYN1_13341
do_fade 100 {direction} Fade.In

:SYN1_13347
if 
  get_fading_status 
goto_if_false @SYN1_13371
wait 0
goto @SYN1_13347

:SYN1_13371
if 
  not is_char_dead 376@
goto_if_false @SYN1_13411
if 
  is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_13411
remove_char_from_group 376@

:SYN1_13411
35@ = 1
36@ = 1

:SYN1_13425
if 
  35@ == 1
goto_if_false @SYN1_13755
if 
  not is_car_dead 377@
goto_if_false @SYN1_13755
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  36@ == 1
goto_if_false @SYN1_13543
if 
  149@ > 1000
goto_if_false @SYN1_13543
point_camera_at_point -2152.8689 {y} -2416.8379 {z} 30.285 {switchStyle} SwitchType.Interpolation
36@ = 2

:SYN1_13543
if 
  36@ == 2
goto_if_false @SYN1_13638
if 
  149@ > 6000
goto_if_false @SYN1_13638
set_fixed_camera_position -2267.2939 {y} -2565.4021 {z} 31.7381 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2266.4109 {y} -2564.99 {z} 31.9617 {switchStyle} SwitchType.JumpCut
36@ = 3

:SYN1_13638
if 
  not is_playback_going_on_for_car 377@
goto_if_false @SYN1_13755
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_13755
task_leave_car $scplayer {vehicle} 377@
task_look_at_char 376@ {target} $scplayer {time} -2
clear_area 63@ {y} 78@ {z} 93@ {radius} 50.0 {clearParticles} True
request_car_recording 198

:SYN1_13716
if 
  not has_car_recording_been_loaded 198
goto_if_false @SYN1_13743
wait 0
goto @SYN1_13716

:SYN1_13743
151@ = get_game_timer 
35@ = 2

:SYN1_13755
if 
  35@ == 2
goto_if_false @SYN1_13941
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 2000
goto_if_false @SYN1_13941
if and
  not is_char_dead $scplayer
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_13941
if 
  336@ == 0
goto_if_false @SYN1_13941
task_shuffle_to_next_car_seat 376@ {vehicle} 377@
334@ = 50
task_look_at_char $scplayer {target} 376@ {time} -2
task_turn_char_to_face_char $scplayer {target} 376@
set_fixed_camera_position 64@ {y} 79@ {z} 94@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 109@ {y} 124@ {z} 139@ {switchStyle} SwitchType.JumpCut
151@ = get_game_timer 
35@ = 3

:SYN1_13941
if 
  35@ == 3
goto_if_false @SYN1_14067
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14067
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14067
if 
  336@ == 0
goto_if_false @SYN1_14067
334@ = 51
task_look_at_char 376@ {target} $scplayer {time} -2
35@ = 4
151@ = get_game_timer 

:SYN1_14067
if 
  35@ == 4
goto_if_false @SYN1_14136
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_14136
35@ = 5
151@ = get_game_timer 

:SYN1_14136
if 
  35@ == 5
goto_if_false @SYN1_14345
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14345
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14345
if 
  336@ == 0
goto_if_false @SYN1_14345
334@ = 52
clear_look_at $scplayer
clear_look_at 376@
set_fixed_camera_position -2243.208 {y} -2568.731 {z} 32.6032 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2243.9451 {y} -2568.0559 {z} 32.605 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 377@ {path} 198
task_go_straight_to_coord $scplayer {x} -2249.509 {y} -2562.9561 {z} 30.9255 {speed} MoveState.Walk {time} -2
35@ = 6
151@ = get_game_timer 

:SYN1_14345
if 
  35@ == 6
goto_if_false @SYN1_14484
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3000
goto_if_false @SYN1_14484
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14484
if 
  not is_playback_going_on_for_car 377@
goto_if_false @SYN1_14484
clear_char_tasks $scplayer
delete_car 377@
delete_char 376@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
goto @SYN1_14516
35@ = 7

:SYN1_14484
goto @SYN1_5178

:SYN1_14491
do_fade 500 {direction} Fade.In
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN1_14516
do_fade 500 {direction} Fade.In
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_1'
player_made_progress 1
if 
  is_player_playing $player1
goto_if_false @SYN1_14570
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 24

:SYN1_14570
play_mission_passed_tune 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
clear_wanted_level $player1
set_int_stat StatId.PassedSyndicate1 {value} 1
return 

:SYN1_14610
if 
  not is_char_dead $scplayer
goto_if_false @SYN1_14641
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SYN1_14641
if 
  not is_char_dead 376@
goto_if_false @SYN1_14672
set_char_proofs 376@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SYN1_14672
clear_help 
remove_blip 393@
remove_blip 408@
remove_blip 438@
remove_blip 422@
remove_blip 51@
remove_blip 52@
remove_blip 381@
remove_blip 379@
delete_char 391@
delete_char 406@
delete_char 436@
delete_char 420@
delete_car 392@
delete_car 407@
delete_car 437@
delete_car 421@
if 
  not is_car_dead 377@
goto_if_false @SYN1_14794
if 
  not is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_14794
delete_car 377@

:SYN1_14794
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
unload_special_character 5
remove_char_elegantly 376@
remove_animation "BOMBER"
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 477
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 478
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_car_generator $car_gen_low_rider_near_cesars {amount} 101
switch_car_generator $car_gen_pine {amount} 101
switch_car_generator $5278 {amount} 101
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:SYN1_14934
if 
  not is_char_dead $scplayer
goto_if_false @SYN1_15403
if 
  367@ == 0
goto_if_false @SYN1_15165
if 
  368@ == 1
goto_if_false @SYN1_15044
if 
  42@ == 1
goto_if_false @SYN1_15044
if and
  334@ == 0
  336@ == 0
goto_if_false @SYN1_15044
print_now 'SYN1_07' {time} 100 {flag} 1

:SYN1_15044
if 
  not is_car_dead 377@
goto_if_false @SYN1_15165
if 
  is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_15165
remove_blip 381@
366@ = store_car_char_is_in $scplayer
if 
  368@ == 1
goto_if_false @SYN1_15124
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@

:SYN1_15124
if 
  147@ == 5
goto_if_false @SYN1_15158
print 'SYN1_13' {time} 10000 {flag} 1

:SYN1_15158
367@ = 1

:SYN1_15165
if 
  367@ == 1
goto_if_false @SYN1_15403
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_15403
if 
  368@ == 1
goto_if_false @SYN1_15325
if 
  38@ == 0
goto_if_false @SYN1_15318
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_15316
if 
  $flag_syn1_skip2 == 1
goto_if_false @SYN1_15302
set_up_skip_for_specific_vehicle -2201.9121 {y} -2279.0359 {z} 29.4688 {heading} 230.5228 {handle} 377@

:SYN1_15302
38@ = 1
goto @SYN1_15318

:SYN1_15316
clear_skip 

:SYN1_15318
goto @SYN1_15334

:SYN1_15325
38@ = 0
clear_skip 

:SYN1_15334
if 
  not is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_15403
if 
  368@ == 1
goto_if_false @SYN1_15396
remove_blip 51@
remove_blip 381@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True

:SYN1_15396
367@ = 0

:SYN1_15403
return 

:SYN1_15405
if and
  not is_char_dead $scplayer
  not is_char_dead 376@
goto_if_false @SYN1_15740
if 
  368@ == 0
goto_if_false @SYN1_15608
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_15601
if 
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_15594
if 
  367@ == 1
goto_if_false @SYN1_15543
remove_blip 51@
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@
goto @SYN1_15563

:SYN1_15543
remove_blip 381@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True

:SYN1_15563
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 376@
remove_blip 379@
42@ = 1
368@ = 1

:SYN1_15594
goto @SYN1_15608

:SYN1_15601
368@ = 1

:SYN1_15608
if 
  368@ == 1
goto_if_false @SYN1_15740
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_15740
if 
  367@ == 1
goto_if_false @SYN1_15675
remove_blip 51@
goto @SYN1_15680

:SYN1_15675
remove_blip 381@

:SYN1_15680
clear_skip 
clear_prints 
379@ = add_blip_for_char 376@
set_blip_as_friendly 379@ {state} True
if 
  42@ == 1
goto_if_false @SYN1_15733
print_now 'SYN1_02' {time} 10000 {flag} 1

:SYN1_15733
368@ = 0

:SYN1_15740
return 

:SYN1_15742
if or
  334@ == 1
  334@ == 3
  334@ == 4
  334@ == 6
  334@ == 7
  334@ == 9
goto_if_false @SYN1_15802
148@ = 0

:SYN1_15802
if or
  334@ == 2
  334@ == 5
  334@ == 8
  334@ == 10
goto_if_false @SYN1_15849
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15849
if or
  334@ == 11
  334@ == 14
goto_if_false @SYN1_15882
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15882
if or
  334@ == 12
  334@ == 13
goto_if_false @SYN1_15914
148@ = 0

:SYN1_15914
if 
  334@ == 15
goto_if_false @SYN1_15940
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15940
if 
  334@ == 16
goto_if_false @SYN1_15966
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_15966
if or
  334@ == 17
  334@ == 19
  334@ == 22
  334@ == 23
  334@ == 25
  334@ == 26
goto_if_false @SYN1_16027
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16027
if or
  334@ == 18
  334@ == 20
  334@ == 21
  334@ == 24
  334@ == 27
  334@ == 28
goto_if_false @SYN1_16088
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16088
if or
  334@ == 29
  334@ == 30
  334@ == 32
  334@ == 34
goto_if_false @SYN1_16135
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16135
if or
  334@ == 31
  334@ == 33
  334@ == 35
goto_if_false @SYN1_16175
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16175
if or
  334@ == 36
  334@ == 37
  334@ == 38
  334@ == 39
  334@ == 40
  334@ == 41
goto_if_false @SYN1_16235
148@ = 0

:SYN1_16235
if or
  334@ == 42
  334@ == 43
  334@ == 44
  334@ == 45
  334@ == 46
goto_if_false @SYN1_16288
148@ = 0

:SYN1_16288
if or
  334@ == 47
  334@ == 48
  334@ == 50
  334@ == 52
goto_if_false @SYN1_16335
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16335
if or
  334@ == 49
  334@ == 51
goto_if_false @SYN1_16368
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16368
return 

//-------------Mission 59---------------
// Originally: Jizzy

:SYN2
script_name 'SYN2'
gosub @SYN2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN2_38
gosub @SYN2_30978

:SYN2_38
gosub @SYN2_31149
terminate_this_script 

:SYN2_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0

:SYN2_84
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYN2_106
36@ = 1

:SYN2_106
38@ = get_game_timer 
set_lvar_int_to_lvar_int 40@ = 38@
sub_int_lvar_from_int_lvar 40@ -= 39@
set_lvar_int_to_lvar_int 39@ = 38@
add_int_lvar_to_int_lvar 73@ += 40@
add_int_lvar_to_int_lvar 80@ += 40@
add_int_lvar_to_int_lvar 81@ += 40@
add_int_lvar_to_int_lvar 54@ += 40@
add_int_lvar_to_int_lvar 87@ += 40@
add_int_lvar_to_int_lvar 89@ += 40@
add_int_lvar_to_int_lvar 55@ += 40@
add_int_lvar_to_int_lvar 278@ += 40@
wait 0
gosub @SYN2_546
switch_start 34@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SYN2_464 {caseNum1} 0 {caseLabel1} @SYN2_338 {caseNum2} 1 {caseLabel2} @SYN2_352 {caseNum3} 2 {caseLabel3} @SYN2_366 {caseNum4} 3 {caseLabel4} @SYN2_380 {caseNum5} 4 {caseLabel5} @SYN2_394 {caseNum6} 5 {caseLabel6} @SYN2_408 {caseNum7} 6 {caseLabel7} @SYN2_422
switch_continued 7 {caseLabel1} @SYN2_436 {caseNum2} 8 {caseLabel2} @SYN2_450 {caseNum3} -1 {caseLabel3} @SYN2_464 {caseNum4} -1 {caseLabel4} @SYN2_464 {caseNum5} -1 {caseLabel5} @SYN2_464 {caseNum6} -1 {caseLabel6} @SYN2_464 {caseNum7} -1 {caseLabel7} @SYN2_464 {caseNum8} -1 {caseLabel8} @SYN2_464 {caseNum9} -1 {caseLabel9} @SYN2_464

:SYN2_338
gosub @SYN2_1239
goto @SYN2_464

:SYN2_352
gosub @SYN2_2839
goto @SYN2_464

:SYN2_366
gosub @SYN2_3180
goto @SYN2_464

:SYN2_380
gosub @SYN2_5395
goto @SYN2_464

:SYN2_394
gosub @SYN2_8551
goto @SYN2_464

:SYN2_408
gosub @SYN2_13818
goto @SYN2_464

:SYN2_422
gosub @SYN2_17635
goto @SYN2_464

:SYN2_436
gosub @SYN2_22473
goto @SYN2_464

:SYN2_450
gosub @SYN2_27112
goto @SYN2_464

:SYN2_464
gosub @SYN2_28399
if 
  37@ == 0
goto_if_false @SYN2_537
if 
  36@ == 0
goto_if_false @SYN2_521
goto @SYN2_84
goto @SYN2_530

:SYN2_521
gosub @SYN2_30996
return 

:SYN2_530
goto @SYN2_546

:SYN2_537
gosub @SYN2_30978
return 

:SYN2_546
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @SYN2_637
if 
  56@ == 0
goto_if_false @SYN2_611
56@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SYN2_637

:SYN2_611
56@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SYN2_637
if 
  56@ == 1
goto_if_false @SYN2_1237
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @SYN2_704
clear_all_view_variables 
57@ += 1
if 
  57@ > 3
goto_if_false @SYN2_704
57@ = 0

:SYN2_704
if 
  57@ == 1
goto_if_false @SYN2_940
set_var_int_to_lvar_int $7290 = 34@
set_var_int_to_lvar_int $syn2_view_debug = 35@
set_var_int_to_lvar_int $7292 = 205@
set_var_int_to_lvar_int $7293 = TIMERA
set_var_int_to_lvar_int $7294 = 280@
set_var_int_to_var_int $7295 = $audio_line_is_active
set_var_int_to_lvar_int $7296 = 54@
set_var_int_to_lvar_int $7297 = 247@
view_integer_variable $7290 {_p2} "M_STAGE"
view_integer_variable $syn2_view_debug {_p2} "M_GOALS"
view_integer_variable $7292 {_p2} "CONVOY_PROGRESS"
view_integer_variable $7293 {_p2} "TIMERA"
view_integer_variable $7294 {_p2} "ON_CUTSCENE_DUTY"
view_integer_variable $7295 {_p2} "AUDIO_LINE_IS_ACTIVE"
view_integer_variable $7296 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7297 {_p2} "DIALOGUE_FLAG"

:SYN2_940
if 
  57@ == 2
goto_if_false @SYN2_1153
set_var_int_to_var_int $7290 = $syn2_mission_attempts
set_var_int_to_lvar_int $syn2_view_debug = 254@
set_var_int_to_lvar_int $7292 = 253@
set_var_int_to_lvar_int $7293 = 250@
set_var_int_to_var_int $7294 = $syn2_timer
set_var_int_to_lvar_int $7295 = TIMERB
view_integer_variable $7290 {_p2} "SYN2_MISSION_ATTEMPTS"
view_integer_variable $syn2_view_debug {_p2} "THIS_CAR_HEALTH"
view_integer_variable $7292 {_p2} "LAST_CAR_HEALTH"
view_integer_variable $7293 {_p2} "PLAYER_HAS_ATTACKED_CONVOY"
view_integer_variable $7294 {_p2} "SYN2_TIME_UNTIL_BACKUP"
view_integer_variable $7295 {_p2} "TIMERB"

:SYN2_1153
if 
  57@ == 3
goto_if_false @SYN2_1237
set_var_int_to_lvar_int $7290 = 81@
set_var_float_to_lvar_float $7287 = 266@
view_integer_variable $7290 {_p2} "RICH_BACKUP_TIMER"
view_float_variable $7287 {_p2} "LIMO_PLAYBACK_SPEED"

:SYN2_1237
return 

:SYN2_1239
if 
  35@ == -1
goto_if_false @SYN2_1257

:SYN2_1257
if 
  35@ == 0
goto_if_false @SYN2_2711
205@ = 0
91@ = -1863.88
129@ = 727.851
167@ = 44.0619
92@ = -1816.793
130@ = 727.1199
168@ = 36.4934
93@ = -1717.459
131@ = 729.5344
169@ = 24.6517
94@ = -1709.842
132@ = 829.3579
170@ = 24.6505
95@ = -1663.017
133@ = 917.9272
171@ = 24.5226
96@ = -1563.886
134@ = 916.7482
172@ = 6.9176
97@ = -1573.613
135@ = 1016.918
173@ = 6.9562
98@ = -1585.455
136@ = 1116.871
174@ = 6.9488
99@ = -1608.572
137@ = 1214.641
175@ = 6.9488
100@ = -1678.017
138@ = 1287.1169
176@ = 6.9487
101@ = -1752.399
139@ = 1354.989
177@ = 6.9473
102@ = -1852.1379
140@ = 1364.54
178@ = 6.9488
103@ = -1938.24
141@ = 1312.347
179@ = 6.9538
104@ = -2037.692
142@ = 1298.774
180@ = 7.1712
105@ = -2135.241
143@ = 1279.317
181@ = 22.4081
106@ = -2234.502
144@ = 1276.24
182@ = 39.3992
107@ = -2265.7429
145@ = 1182.441
183@ = 55.4933
108@ = -2266.2891
146@ = 1085.145
184@ = 79.748
109@ = -2267.604
147@ = 984.6959
185@ = 73.0856
110@ = -2268.9951
148@ = 884.5173
186@ = 66.4014
111@ = -2333.293
149@ = 811.5989
187@ = 42.8954
112@ = -2390.365
150@ = 729.2283
188@ = 34.9301
113@ = -2489.3589
151@ = 711.0146
189@ = 34.9302
114@ = -2589.5071
152@ = 712.4084
190@ = 27.7727
115@ = -2689.8579
153@ = 710.8961
191@ = 32.4395
116@ = -2753.054
154@ = 633.015
192@ = 27.6617
117@ = -2744.792
155@ = 534.2344
193@ = 11.9062
118@ = -2707.741
156@ = 441.3501
194@ = 4.0892
119@ = -2751.387
157@ = 351.2291
195@ = 4.0969
120@ = -2707.8999
158@ = 261.1717
196@ = 4.0968
121@ = -2711.886
159@ = 161.0435
197@ = 4.0971
122@ = -2809.189
160@ = 137.7394
198@ = 6.9555
123@ = -2811.9089
161@ = 36.8614
199@ = 6.9488
124@ = -2811.4031
162@ = -63.2554
200@ = 6.9488
125@ = -2811.2791
163@ = -164.2748
201@ = 6.9381
126@ = -2811.6011
164@ = -264.5668
202@ = 6.9488
127@ = -2820.2041
165@ = -364.2359
203@ = 6.9488
128@ = -2818.2671
166@ = -465.0786
204@ = 6.9941
206@ = -2428.2319
214@ = -164.7728
222@ = 34.3085
207@ = -2433.5601
215@ = -164.504
223@ = 34.3446
208@ = -2452.7529
216@ = -165.8061
224@ = 34.3047
209@ = -2469.136
217@ = -165.8884
225@ = 24.9573
210@ = -2469.616
218@ = -162.4438
226@ = 24.6236
211@ = -2463.0061
219@ = -162.4879
227@ = 24.9077
212@ = -2460.374
220@ = -134.7403
228@ = 24.8394
213@ = -2478.115
221@ = -129.3914
229@ = 24.625
78@ = 0
79@ = 0
80@ = 0
84@ = 0
86@ = 0
90@ = 0
35@ += 1

:SYN2_2711
if 
  35@ == 1
goto_if_false @SYN2_2763
load_mission_text 'SYN2'
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SYN2_2763
if 
  35@ == 2
goto_if_false @SYN2_2805
set_wanted_multiplier 0.5
suppress_car_model 575
suppress_car_model 545
35@ = 99

:SYN2_2805
if 
  35@ == 99
goto_if_false @SYN2_2837
34@ += 1
35@ = 0

:SYN2_2837
return 

:SYN2_2839
if 
  35@ == 0
goto_if_false @SYN2_2903
if 
  $syn2_mission_attempts <> 0
goto_if_false @SYN2_2896
34@ += 1
35@ = 0
goto @SYN2_2903

:SYN2_2896
35@ += 1

:SYN2_2903
if 
  35@ == 1
goto_if_false @SYN2_3153
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_2935
if 
  get_fading_status 
goto_if_false @SYN2_2959
wait 0
goto @SYN2_2935

:SYN2_2959
set_area_visible 1
load_cutscene 'SYND_2A'

:SYN2_2974
if 
  not has_cutscene_loaded 
goto_if_false @SYN2_2998
wait 0
goto @SYN2_2974

:SYN2_2998
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN2_3007
if 
  not has_cutscene_finished 
goto_if_false @SYN2_3031
wait 0
goto @SYN2_3007

:SYN2_3031
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYN2_3046
if 
  get_fading_status 
goto_if_false @SYN2_3070
wait 0
goto @SYN2_3046

:SYN2_3070
set_area_visible 0
set_char_coordinates $scplayer {x} -2031.254 {y} 161.408 {z} 28.0391
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:SYN2_3115
if 
  get_fading_status 
goto_if_false @SYN2_3139
wait 0
goto @SYN2_3115

:SYN2_3139
set_player_control $player1 {state} True
35@ = 99

:SYN2_3153
if 
  35@ == 99
goto_if_false @SYN2_3178
36@ = 1

:SYN2_3178
return 

:SYN2_3180
if 
  35@ == 0
goto_if_false @SYN2_3376
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_3212
if 
  get_fading_status 
goto_if_false @SYN2_3236
wait 0
goto @SYN2_3212

:SYN2_3236
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 3
load_cutscene 'SYND_2B'

:SYN2_3262
if 
  not has_cutscene_loaded 
goto_if_false @SYN2_3286
wait 0
goto @SYN2_3262

:SYN2_3286
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN2_3295
if 
  not has_cutscene_finished 
goto_if_false @SYN2_3319
wait 0
goto @SYN2_3295

:SYN2_3319
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYN2_3334
if 
  get_fading_status 
goto_if_false @SYN2_3358
wait 0
goto @SYN2_3334

:SYN2_3358
set_area_visible 0
set_player_control $player1 {state} False
35@ += 1

:SYN2_3376
if 
  35@ == 1
goto_if_false @SYN2_3907
request_model 575
request_model 64
load_special_character 1 {modelName} 'JIZZY'
request_animation "GANGS"
load_all_models_now 

:SYN2_3427
if or
  not has_model_loaded 575
  not has_model_loaded 64
  not has_special_character_loaded 1
  not has_animation_loaded "GANGS"
goto_if_false @SYN2_3471
wait 0
goto @SYN2_3427

:SYN2_3471
request_model 330
request_animation "CAR_CHAT"

:SYN2_3488
if or
  not has_model_loaded 330
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_3527
wait 0
goto @SYN2_3488

:SYN2_3527
231@ = load_char_decision_maker DecisionMakerType.Empty
232@ = load_char_decision_maker DecisionMakerType.Tough
clear_area -2623.3589 {y} 1410.786 {z} 6.1629 {radius} 20.0 {clearParticles} True
58@ = create_char PedType.CivMale {modelId} 290 {x} -2623.3589 {y} 1410.786 {z} 6.1629
set_char_heading 58@ {heading} 192.3576
set_char_coordinates $scplayer {x} -2622.5459 {y} 1410.95 {z} 6.1702
set_char_heading $scplayer {heading} 199.6292
custom_plate_for_next_car 575 {text} "HO_2_HO_"
59@ = create_car 575 {x} -2625.449 {y} 1401.681 {z} 6.0877
set_car_heading 59@ {heading} 188.0679
set_car_health 59@ {health} 3000
change_car_colour 59@ {color1} 123 {color2} 5
set_car_hydraulics 59@ {state} False
67@ = create_char_as_passenger 59@ {pedType} PedType.Prostitute {modelId} 64 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car 67@ {state} False
set_char_cant_be_dragged_out 67@ {state} True
set_char_suffers_critical_hits 67@ {state} False
set_char_never_targetted 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 231@
mark_model_as_no_longer_needed 64
set_can_burst_car_tyres 59@ {state} False
61@ = add_blip_for_car 59@
set_blip_as_friendly 61@ {state} True
set_near_clip 0.1
switch_widescreen True
set_fixed_camera_position -2622.918 {y} 1410.891 {z} 7.0207 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2622.9209 {y} 1409.891 {z} 6.9998 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -2618.0 {y} 1396.0 {z} 7.0 {heading} 211.0
do_fade 1000 {direction} Fade.In

:SYN2_3869
if 
  get_fading_status 
goto_if_false @SYN2_3893
wait 0
goto @SYN2_3869

:SYN2_3893
35@ += 1
TIMERB = 0

:SYN2_3907
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_3956
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_3956
35@ = 7

:SYN2_3956
if 
  35@ == 2
goto_if_false @SYN2_4047
if 
  not is_char_dead 58@
goto_if_false @SYN2_4015
task_go_straight_to_coord 58@ {x} -2623.4221 {y} 1404.91 {z} 6.1537 {speed} MoveState.Walk {time} 15000

:SYN2_4015
task_go_straight_to_coord $scplayer {x} -2622.127 {y} 1405.6331 {z} 6.1587 {speed} MoveState.Walk {time} 15000
35@ += 1

:SYN2_4047
if 
  35@ == 3
goto_if_false @SYN2_4124
if 
  not is_char_dead 58@
goto_if_false @SYN2_4124
41@ = get_script_task_status 58@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_4124
TIMERA = 0
35@ += 1

:SYN2_4124
if 
  35@ == 4
goto_if_false @SYN2_4616
set_fixed_camera_position -2621.697 {y} 1403.493 {z} 7.8087 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2622.574 {y} 1403.047 {z} 7.6296 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 58@
goto_if_false @SYN2_4239
set_char_coordinates 58@ {x} -2624.0491 {y} 1402.8879 {z} 6.1406
set_char_heading 58@ {heading} 248.4552

:SYN2_4239
set_char_coordinates $scplayer {x} -2622.9741 {y} 1402.177 {z} 6.1322
set_char_heading $scplayer {heading} 86.0103
if 
  not is_char_dead 58@
goto_if_false @SYN2_4602
53@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@
perform_sequence_task 58@ {sequence} 53@
clear_sequence_task 53@

:SYN2_4602
TIMERA = 0
35@ += 1

:SYN2_4616
if 
  35@ == 5
goto_if_false @SYN2_4707
if 
  247@ > 6
goto_if_false @SYN2_4707
if 
  not is_char_dead 58@
goto_if_false @SYN2_4707
task_go_straight_to_coord 58@ {x} -2623.3589 {y} 1410.786 {z} 6.1629 {speed} MoveState.Walk {time} 15000
TIMERA = 0
35@ += 1

:SYN2_4707
if 
  35@ == 6
goto_if_false @SYN2_4758
if and
  TIMERA > 1500
  247@ > 6
goto_if_false @SYN2_4758
35@ += 1

:SYN2_4758
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_5234
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_5234
if 
  54@ > 1000
goto_if_false @SYN2_5234
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_5227 {caseNum1} 0 {caseLabel1} @SYN2_4883 {caseNum2} 1 {caseLabel2} @SYN2_4938 {caseNum3} 2 {caseLabel3} @SYN2_4993 {caseNum4} 3 {caseLabel4} @SYN2_5048 {caseNum5} 4 {caseLabel5} @SYN2_5103 {caseNum6} 5 {caseLabel6} @SYN2_5158 {caseNum7} 6 {caseLabel7} @SYN2_5213

:SYN2_4883
set_var_text_label s$audio_string = 'SYN2_BA'
set_var_int_to_constant $audio_sound_file = 8604
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_4938
set_var_text_label s$audio_string = 'SYN2_BB'
set_var_int_to_constant $audio_sound_file = 8605
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_4993
set_var_text_label s$audio_string = 'SYN2_BC'
set_var_int_to_constant $audio_sound_file = 8606
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5048
set_var_text_label s$audio_string = 'SYN2_BD'
set_var_int_to_constant $audio_sound_file = 8607
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5103
set_var_text_label s$audio_string = 'SYN2_BE'
set_var_int_to_constant $audio_sound_file = 8608
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5158
set_var_text_label s$audio_string = 'SYN2_BF'
set_var_int_to_constant $audio_sound_file = 8609
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5213
247@ += 1
goto @SYN2_5227

:SYN2_5227
54@ = 0

:SYN2_5234
if 
  35@ == 7
goto_if_false @SYN2_5361
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  not is_char_dead 58@
goto_if_false @SYN2_5291
delete_char 58@

:SYN2_5291
remove_animation "GANGS"
unload_special_character 1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2622.9741 {y} 1402.177 {z} 6.1322
set_char_heading $scplayer {heading} 86.0103
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
35@ = 99

:SYN2_5361
if 
  35@ == 99
goto_if_false @SYN2_5393
35@ = 0
34@ += 1

:SYN2_5393
return 

:SYN2_5395
if 
  35@ == -1
goto_if_false @SYN2_5433
60@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SYN2_5433
if 
  35@ == 0
goto_if_false @SYN2_5505
65@ = 0
66@ = 0
$7298 = 540000
print_now 'SYN2_37' {time} 7000 {flag} 1
TIMERA = 0
35@ += 1

:SYN2_5505
if 
  35@ == 1
goto_if_false @SYN2_5716
if 
  not is_car_dead 59@
goto_if_false @SYN2_5672
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_5672
remove_blip 61@
60@ = add_blip_for_coord -1929.954 {y} 724.0631 {z} 44.3047
print_now 'SYN2_01' {time} 7000 {flag} 1
request_model 352

:SYN2_5604
if 
  not has_model_loaded 352
goto_if_false @SYN2_5631
wait 0
goto @SYN2_5604

:SYN2_5631
ensure_player_has_drive_by_weapon $player1 {ammo} 250
mark_model_as_no_longer_needed 352
280@ = -1
TIMERA = 0
65@ = 0
35@ += 1

:SYN2_5672
if 
  TIMERA > 60000
goto_if_false @SYN2_5716
print_now 'SYN2_37' {time} 7000 {flag} 1
TIMERA = 0

:SYN2_5716
if 
  35@ > 1
goto_if_false @SYN2_5821
if 
  does_blip_exist 61@
goto_if_false @SYN2_5778
if 
  does_blip_exist 60@
goto_if_false @SYN2_5771
remove_blip 60@

:SYN2_5771
goto @SYN2_5821

:SYN2_5778
if 
  not does_blip_exist 60@
goto_if_false @SYN2_5821
60@ = add_blip_for_coord -1929.954 {y} 724.0631 {z} 44.3047
change_blip_colour 60@ {color} BlipColor.Yellow

:SYN2_5821
if 
  35@ == 2
goto_if_false @SYN2_6979
if 
  does_blip_exist 60@
goto_if_false @SYN2_5996
if 
  not is_car_dead 59@
goto_if_false @SYN2_5996
if 
  locate_car_3d 59@ {x} -1929.954 {y} 724.0631 {z} 44.3047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN2_5996
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_5996
if 
  is_vehicle_on_all_wheels 59@
goto_if_false @SYN2_5996
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
set_player_control $player1 {state} False
remove_blip 60@
35@ += 1

:SYN2_5996
if 
  56@ == 1
goto_if_false @SYN2_6051
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_6051
set_char_coordinates $scplayer {x} -1929.954 {y} 724.0631 {z} 44.3047

:SYN2_6051
if 
  8 > 65@
goto_if_false @SYN2_6796
if 
  not is_message_being_displayed 
goto_if_false @SYN2_6796
if 
  not is_char_dead 67@
goto_if_false @SYN2_6796
if 
  not is_car_dead 59@
goto_if_false @SYN2_6796
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_6796
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_6796
if 
  54@ > 1000
goto_if_false @SYN2_6796
switch_start 65@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_6796 {caseNum1} 0 {caseLabel1} @SYN2_6298 {caseNum2} 1 {caseLabel2} @SYN2_6361 {caseNum3} 2 {caseLabel3} @SYN2_6424 {caseNum4} 3 {caseLabel4} @SYN2_6486 {caseNum5} 4 {caseLabel5} @SYN2_6548 {caseNum6} 5 {caseLabel6} @SYN2_6610 {caseNum7} 6 {caseLabel7} @SYN2_6672
switch_continued 7 {caseLabel1} @SYN2_6734 {caseNum2} -1 {caseLabel2} @SYN2_6796 {caseNum3} -1 {caseLabel3} @SYN2_6796 {caseNum4} -1 {caseLabel4} @SYN2_6796 {caseNum5} -1 {caseLabel5} @SYN2_6796 {caseNum6} -1 {caseLabel6} @SYN2_6796 {caseNum7} -1 {caseLabel7} @SYN2_6796 {caseNum8} -1 {caseLabel8} @SYN2_6796 {caseNum9} -1 {caseLabel9} @SYN2_6796

:SYN2_6298
set_var_text_label s$audio_string = 'SYN2_LM'
set_var_int_to_constant $audio_sound_file = 8651
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -4000
65@ += 1
goto @SYN2_6796

:SYN2_6361
set_var_text_label s$audio_string = 'SYN2_LN'
set_var_int_to_constant $audio_sound_file = 8652
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -2000
65@ += 1
goto @SYN2_6796

:SYN2_6424
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 8653
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6486
set_var_text_label s$audio_string = 'SYN2_LP'
set_var_int_to_constant $audio_sound_file = 8654
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6548
set_var_text_label s$audio_string = 'SYN2_LQ'
set_var_int_to_constant $audio_sound_file = 8655
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6610
set_var_text_label s$audio_string = 'SYN2_LR'
set_var_int_to_constant $audio_sound_file = 8656
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6672
set_var_text_label s$audio_string = 'SYN2_LS'
set_var_int_to_constant $audio_sound_file = 8657
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6734
set_var_text_label s$audio_string = 'SYN2_LT'
set_var_int_to_constant $audio_sound_file = 8658
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6796
if 
  280@ == -1
goto_if_false @SYN2_6848
if 
  TIMERA > 7000
goto_if_false @SYN2_6848
280@ = 0
73@ = 30000

:SYN2_6848
if 
  280@ == 0
goto_if_false @SYN2_6979
if 
  not is_car_dead 59@
goto_if_false @SYN2_6979
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_6950
if 
  73@ > 30000
goto_if_false @SYN2_6943
print_now 'SYN_M_1' {time} 5000 {flag} 1
73@ = 0

:SYN2_6943
goto @SYN2_6979

:SYN2_6950
if 
  30000 > 73@
goto_if_false @SYN2_6979
clear_prints 
73@ = 30000

:SYN2_6979
if 
  35@ == 3
goto_if_false @SYN2_7036
if 
  not is_car_dead 59@
goto_if_false @SYN2_7036
if 
  is_car_stopped 59@
goto_if_false @SYN2_7036
35@ += 1

:SYN2_7036
if 
  35@ == 4
goto_if_false @SYN2_7311
283@ = -1
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position -1941.845 {y} 731.7922 {z} 45.4219 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1940.973 {y} 731.3325 {z} 45.5894 {switchStyle} SwitchType.JumpCut
clear_area -1924.954 {y} 724.0631 {z} 44.3047 {radius} 20.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_char_dead 67@
goto_if_false @SYN2_7249
53@ = open_sequence_task 
if 
  not is_car_dead 59@
goto_if_false @SYN2_7207
task_leave_car -1 {vehicle} 59@

:SYN2_7207
task_go_straight_to_coord -1 {x} -1921.505 {y} 719.3201 {z} 44.4375 {speed} MoveState.Walk {time} 20000
close_sequence_task 53@
perform_sequence_task 67@ {sequence} 53@
clear_sequence_task 53@

:SYN2_7249
TIMERA = 0
TIMERB = 0
set_var_text_label s$audio_string = 'SYN2_LU'
set_var_int_to_constant $audio_sound_file = 8659
start_new_script @AUDIOL 67@ 0 1 1 0 
35@ += 1

:SYN2_7311
if 
  35@ == 5
goto_if_false @SYN2_7390
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_7390
247@ = 0
54@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:SYN2_7390
if and
  35@ > 5
  99 > 35@
goto_if_false @SYN2_8046
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_8046
if 
  54@ > 1000
goto_if_false @SYN2_8046
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_8039 {caseNum1} 0 {caseLabel1} @SYN2_7580 {caseNum2} 1 {caseLabel2} @SYN2_7646 {caseNum3} 2 {caseLabel3} @SYN2_7711 {caseNum4} 3 {caseLabel4} @SYN2_7776 {caseNum5} 4 {caseLabel5} @SYN2_7841 {caseNum6} 5 {caseLabel6} @SYN2_7906 {caseNum7} 6 {caseLabel7} @SYN2_7971
switch_continued 7 {caseLabel1} @SYN2_8025 {caseNum2} -1 {caseLabel2} @SYN2_8039 {caseNum3} -1 {caseLabel3} @SYN2_8039 {caseNum4} -1 {caseLabel4} @SYN2_8039 {caseNum5} -1 {caseLabel5} @SYN2_8039 {caseNum6} -1 {caseLabel6} @SYN2_8039 {caseNum7} -1 {caseLabel7} @SYN2_8039 {caseNum8} -1 {caseLabel8} @SYN2_8039 {caseNum9} -1 {caseLabel9} @SYN2_8039

:SYN2_7580
set_var_text_label s$audio_string = 'SYN2_CA'
set_var_int_to_constant $audio_sound_file = 8632
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8610
247@ += 1
goto @SYN2_8039

:SYN2_7646
set_var_text_label s$audio_string = 'SYN2_CB'
set_var_int_to_constant $audio_sound_file = 8610
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8611
247@ += 1
goto @SYN2_8039

:SYN2_7711
set_var_text_label s$audio_string = 'SYN2_CC'
set_var_int_to_constant $audio_sound_file = 8611
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8612
247@ += 1
goto @SYN2_8039

:SYN2_7776
set_var_text_label s$audio_string = 'SYN2_CD'
set_var_int_to_constant $audio_sound_file = 8612
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8613
247@ += 1
goto @SYN2_8039

:SYN2_7841
set_var_text_label s$audio_string = 'SYN2_CE'
set_var_int_to_constant $audio_sound_file = 8613
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8614
247@ += 1
goto @SYN2_8039

:SYN2_7906
set_var_text_label s$audio_string = 'SYN2_CF'
set_var_int_to_constant $audio_sound_file = 8614
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8615
247@ += 1
goto @SYN2_8039

:SYN2_7971
set_var_text_label s$audio_string = 'SYN2_CG'
set_var_int_to_constant $audio_sound_file = 8615
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_8039

:SYN2_8025
247@ += 1
goto @SYN2_8039

:SYN2_8039
54@ = 0

:SYN2_8046
if 
  35@ == 6
goto_if_false @SYN2_8149
if 
  TIMERA > 4000
goto_if_false @SYN2_8097
35@ += 1
goto @SYN2_8149

:SYN2_8097
if 
  not is_char_dead 67@
goto_if_false @SYN2_8149
41@ = get_script_task_status 67@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_8149
35@ += 1

:SYN2_8149
if 
  35@ == 7
goto_if_false @SYN2_8315
set_fixed_camera_position -1919.135 {y} 714.1419 {z} 46.9459 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1919.694 {y} 714.9576 {z} 46.7967 {switchStyle} SwitchType.JumpCut
set_near_clip 0.01
if 
  not is_char_dead 67@
goto_if_false @SYN2_8301
clear_char_tasks_immediately 67@
set_char_coordinates 67@ {x} -1920.479 {y} 716.6052 {z} 45.6103
set_char_heading 67@ {heading} 190.583
task_go_straight_to_coord 67@ {x} -1919.606 {y} 712.0557 {z} 45.6103 {speed} MoveState.Walk {time} 20000

:SYN2_8301
TIMERA = 0
35@ += 1

:SYN2_8315
if and
  35@ > 4
  TIMERB > 3000
goto_if_false @SYN2_8365
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_8365
35@ = 99

:SYN2_8365
if 
  35@ == 8
goto_if_false @SYN2_8430
if 
  TIMERA > 3000
goto_if_false @SYN2_8430
279@ = 0
gosub @SYN2_28920
TIMERA = 0
35@ += 1

:SYN2_8430
if 
  35@ == 9
goto_if_false @SYN2_8481
if and
  TIMERA > 4000
  247@ > 7
goto_if_false @SYN2_8481
35@ = 99

:SYN2_8481
if 
  35@ == 99
goto_if_false @SYN2_8549
gosub @SYN2_30815
remove_blip 61@
remove_blip 60@
delete_char 67@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
34@ += 1
35@ = 0

:SYN2_8549
return 

:SYN2_8551
if 
  35@ == 0
goto_if_false @SYN2_9138
$syn2_time_until_backup = 120000
60@ = add_blip_for_coord -2427.918 {y} -133.4192 {z} 34.3525
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_06' {time} 10000 {flag} 1
display_onscreen_timer $syn2_time_until_backup {direction} TimerDirection.Down
request_model 237
request_model 249
request_model 545
request_model 346

:SYN2_8649
if or
  not has_model_loaded 237
  not has_model_loaded 249
  not has_model_loaded 545
  not has_model_loaded 346
goto_if_false @SYN2_8691
wait 0
goto @SYN2_8649

:SYN2_8691
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34400

:SYN2_8700
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_8726
wait 0
goto @SYN2_8700

:SYN2_8726
71@ = create_char PedType.CivMale {modelId} 249 {x} -2427.918 {y} -133.4192 {z} 34.3525
set_char_heading 71@ {heading} 143.0822
set_char_decision_maker 71@ {handleOrTemplate} 231@
set_char_only_damaged_by_player 71@ {state} True
set_char_max_health 71@ {maxHealth} 300
set_char_health 71@ {health} 300
68@ = create_char PedType.CivFemale {modelId} 237 {x} -2428.9541 {y} -134.24 {z} 34.3525
set_char_heading 68@ {heading} 359.5201
set_char_only_damaged_by_player 68@ {state} True
set_char_decision_maker 68@ {handleOrTemplate} 231@
set_char_only_damaged_by_player 68@ {state} True
set_char_never_targetted 68@ {state} True
77@ = create_car 545 {x} -2481.0591 {y} -126.9303 {z} 24.625
set_car_heading 77@ {heading} 102.8779
set_car_health 77@ {health} 600
task_look_at_char 71@ {target} 68@ {time} -2
53@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2430.0439 {y} -133.1959 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} 68@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} -2429.9761 {y} -135.4876 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} -2428.1621 {y} -135.4792 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} -2427.918 {y} -133.4192 {z} 34.3525 {speed} MoveState.Walk {time} 10000
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
switch_ped_roads_off -2431.115 {leftBottomY} -169.4874 {leftBottomZ} 33.0 {rightTopX} -2426.5129 {rightTopY} -117.2969 {rightTopZ} 36.0
task_stay_in_same_place 68@ {state} True
task_look_at_char 68@ {target} 71@ {time} -2
233@ = 0
35@ += 1

:SYN2_9138
if 
  35@ == 1
goto_if_false @SYN2_10470
if 
  not is_char_dead 71@
goto_if_false @SYN2_10054
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_10054
if 
  54@ > 1000
goto_if_false @SYN2_10054
if 
  not locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYN2_9653
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_9638 {caseNum1} 0 {caseLabel1} @SYN2_9308 {caseNum2} 1 {caseLabel2} @SYN2_9363 {caseNum3} 2 {caseLabel3} @SYN2_9418 {caseNum4} 3 {caseLabel4} @SYN2_9473 {caseNum5} 4 {caseLabel5} @SYN2_9528 {caseNum6} 5 {caseLabel6} @SYN2_9583 {caseNum7} -1 {caseLabel7} @SYN2_9638

:SYN2_9308
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8644
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9363
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8645
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9418
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8646
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9473
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8647
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9528
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8648
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9583
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8649
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_9638

:SYN2_9638
54@ = -4000
goto @SYN2_10054

:SYN2_9653
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_10046 {caseNum1} 0 {caseLabel1} @SYN2_9716 {caseNum2} 1 {caseLabel2} @SYN2_9771 {caseNum3} 2 {caseLabel3} @SYN2_9826 {caseNum4} 3 {caseLabel4} @SYN2_9881 {caseNum5} 4 {caseLabel5} @SYN2_9936 {caseNum6} 5 {caseLabel6} @SYN2_9991 {caseNum7} -1 {caseLabel7} @SYN2_10046

:SYN2_9716
set_var_text_label s$audio_string = 'SYN2_LF'
set_var_int_to_constant $audio_sound_file = 8644
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9771
set_var_text_label s$audio_string = 'SYN2_LG'
set_var_int_to_constant $audio_sound_file = 8645
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9826
set_var_text_label s$audio_string = 'SYN2_LH'
set_var_int_to_constant $audio_sound_file = 8646
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9881
set_var_text_label s$audio_string = 'SYN2_LI'
set_var_int_to_constant $audio_sound_file = 8647
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9936
set_var_text_label s$audio_string = 'SYN2_LJ'
set_var_int_to_constant $audio_sound_file = 8648
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9991
set_var_text_label s$audio_string = 'SYN2_LK'
set_var_int_to_constant $audio_sound_file = 8649
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_10046

:SYN2_10046
54@ = -4000

:SYN2_10054
if 
  56@ == 1
goto_if_false @SYN2_10109
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_10109
set_char_coordinates $scplayer {x} -2421.1819 {y} -15.8972 {z} 34.1601

:SYN2_10109
if 
  is_char_on_foot $scplayer
goto_if_false @SYN2_10203
if 
  not is_char_dead 71@
goto_if_false @SYN2_10196
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_10196
35@ += 1
clear_onscreen_timer $syn2_time_until_backup
goto @SYN2_10470

:SYN2_10196
goto @SYN2_10274

:SYN2_10203
if 
  not is_char_dead 71@
goto_if_false @SYN2_10274
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_10274
35@ += 1
clear_onscreen_timer $syn2_time_until_backup
goto @SYN2_10470

:SYN2_10274
if 
  not is_char_dead 71@
goto_if_false @SYN2_10328
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @SYN2_10328
35@ += 1
clear_onscreen_timer $syn2_time_until_backup
goto @SYN2_10470

:SYN2_10328
if 
  not is_char_dead 71@
goto_if_false @SYN2_10382
if 
  is_player_targetting_char $player1 {handle} 71@
goto_if_false @SYN2_10382
35@ += 1
clear_onscreen_timer $syn2_time_until_backup
goto @SYN2_10470

:SYN2_10382
if 
  is_char_dead 71@
goto_if_false @SYN2_10417
35@ += 1
clear_onscreen_timer $syn2_time_until_backup
goto @SYN2_10470

:SYN2_10417
if 
  0 >= $syn2_time_until_backup
goto_if_false @SYN2_10470
clear_onscreen_timer $syn2_time_until_backup
gosub @SYN2_30815
print_now 'SYN_F_6' {time} 5000 {flag} 1
37@ = 1

:SYN2_10470
if 
  35@ == 2
goto_if_false @SYN2_10639
if 
  not is_char_dead 68@
goto_if_false @SYN2_10545
set_var_text_label s$audio_string = 'SYN2_LA'
set_var_int_to_constant $audio_sound_file = 8639
start_new_script @AUDIOL 68@ 0 1 1 0 

:SYN2_10545
remove_blip 60@
if 
  not is_char_dead 71@
goto_if_false @SYN2_10595
give_weapon_to_char 71@ {weaponType} WeaponType.Pistol {ammo} 9999
64@ = add_blip_for_char 71@
task_look_at_char 71@ {target} $scplayer {time} 3000

:SYN2_10595
if 
  not is_char_dead 71@
goto_if_false @SYN2_10632
TIMERA = 0
35@ += 1
goto @SYN2_10639

:SYN2_10632
35@ += 1

:SYN2_10639
if 
  35@ == 3
goto_if_false @SYN2_11136
if 
  not is_char_dead 71@
goto_if_false @SYN2_11122
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_11115
if 
  not is_char_dead 68@
goto_if_false @SYN2_11115
clear_char_tasks 71@
clear_char_tasks 68@
clear_look_at 68@
230@ = 0
41@ = generate_random_int_in_range 0 {max} 4
switch_start 41@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SYN2_11001 {caseNum1} 0 {caseLabel1} @SYN2_10809 {caseNum2} 1 {caseLabel2} @SYN2_10857 {caseNum3} 2 {caseLabel3} @SYN2_10905 {caseNum4} 3 {caseLabel4} @SYN2_10953 {caseNum5} -1 {caseLabel5} @SYN2_11001 {caseNum6} -1 {caseLabel6} @SYN2_11001 {caseNum7} -1 {caseLabel7} @SYN2_11001

:SYN2_10809
set_var_text_label s$audio_string = 'SYN2_LB'
set_var_int_to_constant $audio_sound_file = 8640
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10857
set_var_text_label s$audio_string = 'SYN2_LC'
set_var_int_to_constant $audio_sound_file = 8641
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10905
set_var_text_label s$audio_string = 'SYN2_LD'
set_var_int_to_constant $audio_sound_file = 8642
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10953
set_var_text_label s$audio_string = 'SYN2_LE'
set_var_int_to_constant $audio_sound_file = 8643
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_11001
set_char_accuracy 71@ {accuracy} 90
set_char_shoot_rate 71@ {rate} 100
53@ = open_sequence_task 
task_shoot_at_char -1 {target} $scplayer {time} 3000
task_go_straight_to_coord -1 {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {time} 9999999
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
234@ = 0
gosub @SYN2_28816
235@ = 0
TIMERA = 0
35@ += 1

:SYN2_11115
goto @SYN2_11136

:SYN2_11122
gosub @SYN2_28816
35@ += 1

:SYN2_11136
if 
  35@ == 4
goto_if_false @SYN2_11977
if 
  235@ == 0
goto_if_false @SYN2_11232
if 
  TIMERA > 1000
goto_if_false @SYN2_11232
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_11232
print 'SYN2_38' {time} 7000 {flag} 1
235@ += 1

:SYN2_11232
if 
  not is_char_dead 71@
goto_if_false @SYN2_11970
if 
  locate_char_on_foot_3d 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN2_11708
230@ += 1
if 
  8 > 230@
goto_if_false @SYN2_11447
if or
  230@ == 1
  230@ == 5
  230@ == 7
goto_if_false @SYN2_11407
task_go_to_coord_while_shooting 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {turnRadius} 0.0 {stopRadius} 0.0 {target} $scplayer
goto @SYN2_11440

:SYN2_11407
task_go_straight_to_coord 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {time} 99999

:SYN2_11440
goto @SYN2_11701

:SYN2_11447
if 
  not is_car_dead 77@
goto_if_false @SYN2_11663
$x, $y, $z = get_char_coordinates 71@
if 
  locate_car_3d 77@ {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN2_11618
clear_char_tasks 71@
53@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 77@ {time} 20000
task_car_drive_to_coord -1 {vehicle} 77@ {x} -2599.2871 {y} -127.2555 {z} 3.1797 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_wander -1 {vehicle} 77@ {speed} 15.0 {drivingMode} DrivingMode.PloughThrough
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
35@ += 1
goto @SYN2_11656

:SYN2_11618
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
35@ += 1

:SYN2_11656
goto @SYN2_11701

:SYN2_11663
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
35@ += 1

:SYN2_11701
goto @SYN2_11963

:SYN2_11708
if 
  230@ == 0
goto_if_false @SYN2_11963
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2430.8789 {leftBottomY} -167.3782 {leftBottomZ} 32.3125 {rightTopX} -2426.917 {rightTopY} -143.2979 {rightTopZ} 36.3125 {drawSphere} False
goto_if_false @SYN2_11898
$x, $y, $z = get_char_coordinates $scplayer
47@, 48@, 49@ = get_char_coordinates 71@
if 
  is_float_lvar_greater_than_float_var 48@ > $y
goto_if_false @SYN2_11891
53@ = open_sequence_task 
task_shoot_at_char -1 {target} $scplayer {time} 3000
task_flee_char_any_means -1 {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
35@ += 1

:SYN2_11891
goto @SYN2_11963

:SYN2_11898
if 
  234@ == 0
goto_if_false @SYN2_11963
if 
  has_char_been_damaged_by_char $scplayer {handle} 71@
goto_if_false @SYN2_11963
task_go_straight_to_coord 71@ {x} 206@ {y} 214@ {z} 222@ {speed} MoveState.Sprint {time} 99999
234@ += 1

:SYN2_11963
goto @SYN2_11977

:SYN2_11970
35@ += 1

:SYN2_11977
if 
  35@ == 5
goto_if_false @SYN2_12398
if 
  79@ == 0
goto_if_false @SYN2_12104
if 
  not is_char_dead 71@
goto_if_false @SYN2_12104
if 
  not is_car_dead 77@
goto_if_false @SYN2_12104
if 
  is_char_in_car 71@ {vehicle} 77@
goto_if_false @SYN2_12104
41@ = get_char_health 71@
if 
  41@ > 100
goto_if_false @SYN2_12097
set_char_health 71@ {health} 100

:SYN2_12097
79@ = 1

:SYN2_12104
if 
  is_char_dead 71@
goto_if_false @SYN2_12141
TIMERA = 0
35@ += 1
goto @SYN2_12342

:SYN2_12141
if 
  not is_car_dead 77@
goto_if_false @SYN2_12239
if 
  is_char_in_car 71@ {vehicle} 77@
goto_if_false @SYN2_12239
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYN2_12229
set_car_cruise_speed 77@ {maxSpeed} 25.0
goto @SYN2_12239

:SYN2_12229
set_car_cruise_speed 77@ {maxSpeed} 15.0

:SYN2_12239
if 
  not is_char_in_any_car 71@
goto_if_false @SYN2_12342
41@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12342
41@ = get_script_task_status 71@ {taskId} 1873
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12342
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 50.0

:SYN2_12342
if 
  56@ == 1
goto_if_false @SYN2_12398
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_12398
if 
  not is_char_dead 71@
goto_if_false @SYN2_12398
task_die 71@

:SYN2_12398
if 
  35@ == 6
goto_if_false @SYN2_12656
clear_prints 
remove_blip 64@
if 
  TIMERA > 1000
goto_if_false @SYN2_12589
if 
  not is_car_dead 59@
goto_if_false @SYN2_12582
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12550
if 
  280@ == 0
goto_if_false @SYN2_12529
print_now 'SYN_M_1' {time} 7000 {flag} 1
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_12529
TIMERA = 0
35@ += 1
goto @SYN2_12582

:SYN2_12550
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1
TIMERA = 0
35@ += 1

:SYN2_12582
goto @SYN2_12656

:SYN2_12589
if 
  not is_car_dead 59@
goto_if_false @SYN2_12656
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12656
TIMERA = 0
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1
35@ += 1

:SYN2_12656
if 
  35@ == 7
goto_if_false @SYN2_12707
if 
  TIMERA > 3000
goto_if_false @SYN2_12707
TIMERA = 0
35@ += 1

:SYN2_12707
if 
  35@ == 8
goto_if_false @SYN2_12800
if 
  TIMERA > 500
goto_if_false @SYN2_12800
if 
  not is_car_dead 59@
goto_if_false @SYN2_12800
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12800
set_player_control $player1 {state} False
TIMERA = 0
35@ += 1

:SYN2_12800
if 
  35@ == 9
goto_if_false @SYN2_12873
if 
  not is_car_dead 59@
goto_if_false @SYN2_12873
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12873
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
clear_prints 
35@ += 1

:SYN2_12873
if 
  35@ == 10
goto_if_false @SYN2_12983
283@ = -1
279@ = 1
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_12914
if 
  get_fading_status 
goto_if_false @SYN2_12938
wait 0
goto @SYN2_12914

:SYN2_12938
gosub @SYN2_28920
do_fade 150 {direction} Fade.In

:SYN2_12952
if 
  get_fading_status 
goto_if_false @SYN2_12976
wait 0
goto @SYN2_12952

:SYN2_12976
35@ += 1

:SYN2_12983
if 
  35@ == 11
goto_if_false @SYN2_13041
if 
  TIMERA > 1000
goto_if_false @SYN2_13041
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_13041
if and
  35@ > 11
  99 > 35@
goto_if_false @SYN2_13698
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_13698
if 
  54@ > 1000
goto_if_false @SYN2_13698
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_13691 {caseNum1} 0 {caseLabel1} @SYN2_13231 {caseNum2} 1 {caseLabel2} @SYN2_13297 {caseNum3} 2 {caseLabel3} @SYN2_13363 {caseNum4} 3 {caseLabel4} @SYN2_13428 {caseNum5} 4 {caseLabel5} @SYN2_13493 {caseNum6} 5 {caseLabel6} @SYN2_13558 {caseNum7} 6 {caseLabel7} @SYN2_13623
switch_continued 7 {caseLabel1} @SYN2_13677 {caseNum2} -1 {caseLabel2} @SYN2_13691 {caseNum3} -1 {caseLabel3} @SYN2_13691 {caseNum4} -1 {caseLabel4} @SYN2_13691 {caseNum5} -1 {caseLabel5} @SYN2_13691 {caseNum6} -1 {caseLabel6} @SYN2_13691 {caseNum7} -1 {caseLabel7} @SYN2_13691 {caseNum8} -1 {caseLabel8} @SYN2_13691 {caseNum9} -1 {caseLabel9} @SYN2_13691

:SYN2_13231
set_var_text_label s$audio_string = 'SYN2_DA'
set_var_int_to_constant $audio_sound_file = 8633
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8634
247@ += 1
goto @SYN2_13691

:SYN2_13297
set_var_text_label s$audio_string = 'SYN2_DB'
set_var_int_to_constant $audio_sound_file = 8634
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8616
247@ += 1
goto @SYN2_13691

:SYN2_13363
set_var_text_label s$audio_string = 'SYN2_DC'
set_var_int_to_constant $audio_sound_file = 8616
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8617
247@ += 1
goto @SYN2_13691

:SYN2_13428
set_var_text_label s$audio_string = 'SYN2_DD'
set_var_int_to_constant $audio_sound_file = 8617
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8618
247@ += 1
goto @SYN2_13691

:SYN2_13493
set_var_text_label s$audio_string = 'SYN2_DE'
set_var_int_to_constant $audio_sound_file = 8618
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8619
247@ += 1
goto @SYN2_13691

:SYN2_13558
set_var_text_label s$audio_string = 'SYN2_DF'
set_var_int_to_constant $audio_sound_file = 8619
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8620
247@ += 1
goto @SYN2_13691

:SYN2_13623
set_var_text_label s$audio_string = 'SYN2_DG'
set_var_int_to_constant $audio_sound_file = 8620
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_13691

:SYN2_13677
247@ += 1
goto @SYN2_13691

:SYN2_13691
54@ = 0

:SYN2_13698
if 
  35@ == 12
goto_if_false @SYN2_13747
if or
  247@ > 7
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_13747
35@ = 99

:SYN2_13747
if 
  35@ == 99
goto_if_false @SYN2_13816
gosub @SYN2_30815
mark_car_as_no_longer_needed 77@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 68@
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 545
35@ = 0
34@ += 1

:SYN2_13816
return 

:SYN2_13818
if 
  35@ == 0
goto_if_false @SYN2_13893
60@ = add_blip_for_coord -1911.9189 {y} -629.912 {z} 23.6093
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_14' {time} 10000 {flag} 1
88@ = 0
35@ += 1

:SYN2_13893
if 
  35@ == 1
goto_if_false @SYN2_14698
request_model 483
request_model 72
request_model 73
request_model 245
request_model 346

:SYN2_13934
if or
  not has_model_loaded 483
  not has_model_loaded 72
  not has_model_loaded 73
  not has_model_loaded 245
  not has_model_loaded 346
goto_if_false @SYN2_13979
wait 0
goto @SYN2_13934

:SYN2_13979
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34400

:SYN2_13988
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_14014
wait 0
goto @SYN2_13988

:SYN2_14014
75@ = create_char PedType.CivMale {modelId} 72 {x} -1911.9189 {y} -629.212 {z} 23.6093
set_char_heading 75@ {heading} 180.0
76@ = create_char PedType.CivMale {modelId} 72 {x} -1907.644 {y} -623.0884 {z} 23.6093
set_char_heading 76@ {heading} 350.5407
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 99999
69@ = create_char PedType.Prostitute {modelId} 245 {x} -1911.9189 {y} -629.912 {z} 23.6093
set_char_heading 69@ {heading} 331.492
set_char_only_damaged_by_player 69@ {state} True
set_char_never_targetted 69@ {state} True
set_char_max_health 69@ {maxHealth} 120
set_char_health 69@ {health} 120
74@ = create_car 483 {x} -1911.952 {y} -624.4892 {z} 23.6093
set_car_heading 74@ {heading} 304.9144
change_car_colour 74@ {color1} 104 {color2} 61
force_car_lights 74@ {lightMode} CarLights.ForceOn
open_car_door 74@ {door} CarDoor.RightFrontDoor
open_car_door 74@ {door} CarDoor.RightRearDoor
set_char_decision_maker 75@ {handleOrTemplate} 232@
set_char_decision_maker 76@ {handleOrTemplate} 232@
set_char_decision_maker 69@ {handleOrTemplate} 231@
set_char_relationship 76@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_stay_in_same_place 76@ {state} True
set_char_stay_in_same_place 69@ {state} True
$girl2_timer = get_char_health 69@
display_nth_onscreen_counter_with_string $girl2_timer {display} CounterDisplay.Bar {slot} 1 {text} 'SYN2_63'
request_animation "CRACK"
request_animation "MISC"

:SYN2_14310
if or
  not has_animation_loaded "CRACK"
  not has_animation_loaded "MISC"
goto_if_false @SYN2_14349
wait 0
goto @SYN2_14310

:SYN2_14349
if 
  not is_char_dead 69@
goto_if_false @SYN2_14403
task_play_anim_non_interruptable 69@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN2_14403
if 
  not is_char_dead 75@
goto_if_false @SYN2_14691
53@ = open_sequence_task 
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BITCHSLAP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BITCHSLAP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 75@ {sequence} 53@
clear_sequence_task 53@

:SYN2_14691
35@ += 1

:SYN2_14698
if 
  not is_char_dead 75@
goto_if_false @SYN2_14779
41@ = get_script_task_status 75@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_14779
if 
  55@ > 3000
goto_if_false @SYN2_14779
41@ = set_char_say_context 75@ {phrase} SpeechId.Fight
55@ = 0

:SYN2_14779
if 
  35@ == 2
goto_if_false @SYN2_14976
if 
  56@ == 1
goto_if_false @SYN2_14852
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_14852
set_char_coordinates $scplayer {x} -1904.041 {y} -602.5592 {z} 23.6067

:SYN2_14852
if 
  locate_char_any_means_3d $scplayer {x} -1911.9189 {y} -629.912 {z} 23.6093 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYN2_14976
remove_blip 60@
print_now 'SYN2_15' {time} 10000 {flag} 1
if 
  not is_char_dead 75@
goto_if_false @SYN2_14945
62@ = add_blip_for_char 75@

:SYN2_14945
if 
  not is_char_dead 76@
goto_if_false @SYN2_14969
63@ = add_blip_for_char 76@

:SYN2_14969
35@ += 1

:SYN2_14976
if 
  35@ == 3
goto_if_false @SYN2_15103
if 
  is_char_dead 75@
goto_if_false @SYN2_15031
if 
  does_blip_exist 62@
goto_if_false @SYN2_15031
remove_blip 62@

:SYN2_15031
if 
  is_char_dead 76@
goto_if_false @SYN2_15068
if 
  does_blip_exist 63@
goto_if_false @SYN2_15068
remove_blip 63@

:SYN2_15068
if and
  is_char_dead 75@
  is_char_dead 76@
goto_if_false @SYN2_15103
35@ += 1
TIMERA = 0

:SYN2_15103
if 
  35@ == 4
goto_if_false @SYN2_15656
if 
  TIMERA > 1000
goto_if_false @SYN2_15656
if 
  is_char_dead 75@
goto_if_false @SYN2_15362
238@, 239@, 240@ = get_dead_char_coordinates 75@
if 
  not is_char_dead 69@
goto_if_false @SYN2_15200
$x, $y, $z = get_char_coordinates 69@

:SYN2_15200
set_lvar_float_to_lvar_float 50@ = 238@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 239@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 240@
sub_float_var_from_float_lvar 52@ -= $z
44@ = get_distance_between_coords_2d 238@ {fromY} 239@ {toX} $x {toZ} $y
if 
  44@ > 0.01
goto_if_false @SYN2_15302
div_float_lvar_by_float_lvar 50@ /= 44@
div_float_lvar_by_float_lvar 51@ /= 44@

:SYN2_15302
50@ *= -0.5
51@ *= -0.5
set_lvar_float_to_lvar_float 241@ = 238@
add_float_lvar_to_float_lvar 241@ += 50@
set_lvar_float_to_lvar_float 242@ = 239@
add_float_lvar_to_float_lvar 242@ += 51@
set_lvar_float_to_lvar_float 243@ = 240@

:SYN2_15362
53@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "GETUP" {animationFile} "PED" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_go_straight_to_coord -1 {x} 241@ {y} 242@ {z} 243@ {speed} MoveState.Run {time} 99999
task_turn_char_to_face_coord -1 {x} 238@ {y} 239@ {z} 240@
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
if 
  not is_char_dead 69@
goto_if_false @SYN2_15617
set_char_bleeding 69@ {state} False
set_char_stay_in_same_place 69@ {state} False
perform_sequence_task 69@ {sequence} 53@
88@ = 1

:SYN2_15617
clear_sequence_task 53@
clear_onscreen_counter $girl2_timer
35@ += 1
247@ = 0
TIMERA = 0
TIMERB = 2000

:SYN2_15656
if 
  35@ > 4
goto_if_false @SYN2_15963
if 
  not is_char_dead 69@
goto_if_false @SYN2_15963
if 
  88@ == 1
goto_if_false @SYN2_15780
if 
  TIMERB > 3000
goto_if_false @SYN2_15744
41@ = set_char_say_context 69@ {phrase} SpeechId.Fight
TIMERB = 0

:SYN2_15744
41@ = get_script_task_status 69@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_15780
88@ += 1

:SYN2_15780
if 
  88@ == 2
goto_if_false @SYN2_15963
if 
  not is_car_dead 74@
goto_if_false @SYN2_15929
if 
  locate_char_any_means_car_3d 69@ {vehicle} 74@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_15908
53@ = open_sequence_task 
task_goto_car -1 {vehicle} 74@ {time} 20000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 74@ {time} 999999
task_car_drive_wander -1 {vehicle} 74@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 53@
goto @SYN2_15922

:SYN2_15908
53@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 53@

:SYN2_15922
goto @SYN2_15943

:SYN2_15929
53@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 53@

:SYN2_15943
perform_sequence_task 69@ {sequence} 53@
clear_sequence_task 53@
88@ += 1

:SYN2_15963
if 
  35@ == 5
goto_if_false @SYN2_16162
if 
  TIMERA > 1000
goto_if_false @SYN2_16113
if 
  not is_car_dead 59@
goto_if_false @SYN2_16106
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16092
if 
  280@ == 0
goto_if_false @SYN2_16071
print_now 'SYN_M_1' {time} 999999 {flag} 1

:SYN2_16071
TIMERA = 0
35@ += 1
goto @SYN2_16106

:SYN2_16092
TIMERA = 0
35@ += 1

:SYN2_16106
goto @SYN2_16162

:SYN2_16113
if 
  not is_car_dead 59@
goto_if_false @SYN2_16162
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16162
TIMERA = 0
35@ += 1

:SYN2_16162
if 
  35@ == 6
goto_if_false @SYN2_16307
if 
  not is_car_dead 59@
goto_if_false @SYN2_16226
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16226
clear_this_print 'SYN_M_1'

:SYN2_16226
if 
  TIMERA > 6000
goto_if_false @SYN2_16307
if 
  not is_car_dead 59@
goto_if_false @SYN2_16293
$x, $y, $z = get_car_coordinates 59@
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_16293
TIMERA = 0
35@ += 1

:SYN2_16307
if 
  35@ == 7
goto_if_false @SYN2_16453
if 
  not is_car_dead 59@
goto_if_false @SYN2_16371
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16371
clear_this_print 'SYN_M_1'

:SYN2_16371
if 
  TIMERA > 500
goto_if_false @SYN2_16453
if 
  not is_car_dead 59@
goto_if_false @SYN2_16453
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16453
set_player_control $player1 {state} False
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_16453
if 
  35@ == 8
goto_if_false @SYN2_16526
if 
  not is_car_dead 59@
goto_if_false @SYN2_16526
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16526
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
clear_prints 
35@ += 1

:SYN2_16526
if 
  35@ == 9
goto_if_false @SYN2_16636
283@ = -1
279@ = 2
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_16567
if 
  get_fading_status 
goto_if_false @SYN2_16591
wait 0
goto @SYN2_16567

:SYN2_16591
gosub @SYN2_28920
do_fade 150 {direction} Fade.In

:SYN2_16605
if 
  get_fading_status 
goto_if_false @SYN2_16629
wait 0
goto @SYN2_16605

:SYN2_16629
35@ += 1

:SYN2_16636
if 
  35@ == 10
goto_if_false @SYN2_16694
if 
  TIMERA > 1000
goto_if_false @SYN2_16694
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_16694
if and
  35@ > 10
  99 > 35@
goto_if_false @SYN2_17220
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_17220
if 
  54@ > 1000
goto_if_false @SYN2_17220
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_17213 {caseNum1} 0 {caseLabel1} @SYN2_16819 {caseNum2} 1 {caseLabel2} @SYN2_16885 {caseNum3} 2 {caseLabel3} @SYN2_16950 {caseNum4} 3 {caseLabel4} @SYN2_17015 {caseNum5} 4 {caseLabel5} @SYN2_17080 {caseNum6} 5 {caseLabel6} @SYN2_17145 {caseNum7} 6 {caseLabel7} @SYN2_17199

:SYN2_16819
set_var_text_label s$audio_string = 'SYN2_FA'
set_var_int_to_constant $audio_sound_file = 8636
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8623
247@ += 1
goto @SYN2_17213

:SYN2_16885
set_var_text_label s$audio_string = 'SYN2_FB'
set_var_int_to_constant $audio_sound_file = 8623
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8624
247@ += 1
goto @SYN2_17213

:SYN2_16950
set_var_text_label s$audio_string = 'SYN2_FC'
set_var_int_to_constant $audio_sound_file = 8624
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8625
247@ += 1
goto @SYN2_17213

:SYN2_17015
set_var_text_label s$audio_string = 'SYN2_FD'
set_var_int_to_constant $audio_sound_file = 8625
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8626
247@ += 1
goto @SYN2_17213

:SYN2_17080
set_var_text_label s$audio_string = 'SYN2_FE'
set_var_int_to_constant $audio_sound_file = 8626
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8627
247@ += 1
goto @SYN2_17213

:SYN2_17145
set_var_text_label s$audio_string = 'SYN2_FF'
set_var_int_to_constant $audio_sound_file = 8627
start_new_script @AUDIOL -1 0 1 2 1 
247@ += 1
goto @SYN2_17213

:SYN2_17199
247@ += 1
goto @SYN2_17213

:SYN2_17213
54@ = 0

:SYN2_17220
if 
  35@ == 11
goto_if_false @SYN2_17269
if or
  247@ > 6
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_17269
35@ = 99

:SYN2_17269
if 
  35@ == 99
goto_if_false @SYN2_17373
gosub @SYN2_30815
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 69@
mark_car_as_no_longer_needed 74@
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 73
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 346
remove_animation "CRACK"
remove_animation "MISC"
remove_blip 61@
35@ = 0
34@ += 1

:SYN2_17373
if 
  does_char_exist 69@
goto_if_false @SYN2_17549
if 
  not is_char_dead 69@
goto_if_false @SYN2_17549
if 
  not is_char_dead 75@
goto_if_false @SYN2_17504
if or
  is_char_playing_anim 75@ {animationName} "FIGHTA_G"
  is_char_playing_anim 75@ {animationName} "BITCHSLAP"
goto_if_false @SYN2_17504
$girl2_timer = get_char_health 69@
if 
  TIMERB > 1000
goto_if_false @SYN2_17504
$girl2_timer += -1
TIMERB = 0

:SYN2_17504
if 
  1 >= $girl2_timer
goto_if_false @SYN2_17541
$girl2_timer = 1
task_die 69@
goto @SYN2_17549

:SYN2_17541
set_char_health 69@ {health} $girl2_timer

:SYN2_17549
if 
  does_char_exist 68@
goto_if_false @SYN2_17633
if 
  not is_char_dead 68@
goto_if_false @SYN2_17633
if 
  not locate_char_any_means_char_2d $scplayer {target} 69@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN2_17633
if 
  not is_char_on_screen 68@
goto_if_false @SYN2_17633
delete_char 68@

:SYN2_17633
return 

:SYN2_17635
if 
  35@ == -1
goto_if_false @SYN2_17771
255@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
259@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
246@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
244@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
67@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:SYN2_17771
if 
  35@ == 0
goto_if_false @SYN2_18001
if 
  not does_vehicle_exist 59@
goto_if_false @SYN2_17951
if 
  not has_model_loaded 575
goto_if_false @SYN2_17853
request_model 575

:SYN2_17826
if 
  not has_model_loaded 575
goto_if_false @SYN2_17853
wait 0
goto @SYN2_17826

:SYN2_17853
59@ = create_car 575 {x} -1894.308 {y} 712.9404 {z} 44.2969
set_car_heading 59@ {heading} 0.0
if 
  is_player_playing $player1
goto_if_false @SYN2_17910
warp_char_into_car $scplayer {vehicle} 59@

:SYN2_17910
231@ = load_char_decision_maker DecisionMakerType.Empty
load_scene -1900.754 {y} 645.3122 {z} 35.4401
switch_widescreen False
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.In

:SYN2_17951
60@ = add_blip_for_coord -1964.3719 {y} 724.4017 {z} 44.2969
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_19' {time} 10000 {flag} 1
35@ += 1

:SYN2_18001
if 
  35@ == 1
goto_if_false @SYN2_18326
if 
  does_blip_exist 60@
goto_if_false @SYN2_18237
if 
  not is_car_dead 59@
goto_if_false @SYN2_18230
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_18209
if 
  locate_car_3d 59@ {x} -1964.3719 {y} 724.4017 {z} 44.2969 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN2_18202
if 
  is_vehicle_on_all_wheels 59@
goto_if_false @SYN2_18202
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_18150
if 
  get_fading_status 
goto_if_false @SYN2_18174
wait 0
goto @SYN2_18150

:SYN2_18174
remove_blip 60@
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SYN2_18202
goto @SYN2_18230

:SYN2_18209
remove_blip 60@
print 'SYN_M_1' {time} 7000 {flag} 1

:SYN2_18230
goto @SYN2_18326

:SYN2_18237
if 
  not is_car_dead 59@
goto_if_false @SYN2_18326
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_18326
60@ = add_blip_for_coord -1964.3719 {y} 724.4017 {z} 44.2969
change_blip_colour 60@ {color} BlipColor.Yellow
clear_this_print 'SYN_M_1'
print 'SYN2_19' {time} 7000 {flag} 1

:SYN2_18326
if 
  35@ == 2
goto_if_false @SYN2_18922
set_car_density_multiplier 0.0
clear_area -1964.3719 {y} 724.4017 {z} 44.2969 {radius} 100.0 {clearParticles} True
request_model 409
request_model 579
request_model 64
request_model 166
request_model 68
request_model 346
request_model 353
request_car_recording 539
request_car_recording 540
request_car_recording 541

:SYN2_18423
if or
  not has_model_loaded 409
  not has_model_loaded 64
  not has_model_loaded 579
  not has_model_loaded 166
  not has_model_loaded 68
goto_if_false @SYN2_18468
wait 0
goto @SYN2_18423

:SYN2_18468
if or
  not has_car_recording_been_loaded 539
  not has_car_recording_been_loaded 540
  not has_car_recording_been_loaded 541
goto_if_false @SYN2_18505
wait 0
goto @SYN2_18468

:SYN2_18505
if or
  not has_model_loaded 346
  not has_model_loaded 353
goto_if_false @SYN2_18537
wait 0
goto @SYN2_18505

:SYN2_18537
if 
  not is_car_dead 59@
goto_if_false @SYN2_18583
set_car_coordinates 59@ {x} -1964.3719 {y} 724.4017 {z} 44.2969
set_car_heading 59@ {heading} 266.5514

:SYN2_18583
244@ = create_car 409 {x} -1973.811 {y} 728.3975 {z} 44.2969
set_car_heading 244@ {heading} 269.8438
245@ = create_char_inside_car 244@ {pedType} PedType.CivMale {modelId} 166
set_char_decision_maker 245@ {handleOrTemplate} 231@
set_car_cruise_speed 244@ {maxSpeed} 15.0
change_car_colour 244@ {color1} 1 {color2} 0
start_playback_recorded_car 244@ {path} 540
skip_in_playback_recorded_car 244@ {amount} 3.0
set_car_only_damaged_by_player 244@ {state} True
255@ = create_car 579 {x} -1987.811 {y} 728.3975 {z} 44.2969
set_car_heading 255@ {heading} 269.8438
259@ = create_char_inside_car 255@ {pedType} PedType.CivMale {modelId} 166
give_weapon_to_char 259@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_decision_maker 259@ {handleOrTemplate} 231@
set_car_cruise_speed 255@ {maxSpeed} 15.0
change_car_colour 255@ {color1} 0 {color2} 0
start_playback_recorded_car 255@ {path} 541
skip_in_playback_recorded_car 255@ {amount} 3.0
248@ = create_char_as_passenger 255@ {pedType} PedType.CivMale {modelId} 166 {seat} SeatId.BikeRear
give_weapon_to_char 248@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 248@ {handleOrTemplate} 231@
switch_widescreen True
clear_help 
clear_prints 
set_fixed_camera_position -1968.579 {y} 721.6734 {z} 47.3198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -5.0 {yOffset} -2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
TIMERA = 0
35@ += 1

:SYN2_18922
if 
  35@ > 2
goto_if_false @SYN2_18964
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_18964
35@ = 99

:SYN2_18964
if 
  35@ == 3
goto_if_false @SYN2_19117
if 
  not is_car_dead 244@
goto_if_false @SYN2_19040
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -5.0 {yOffset} -2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SYN2_19040
if 
  TIMERA > 4000
goto_if_false @SYN2_19117
set_fixed_camera_position -1929.402 {y} 738.0927 {z} 44.7662 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1929.326 {y} 737.1227 {z} 44.9969 {switchStyle} SwitchType.JumpCut
35@ += 1

:SYN2_19117
if 
  35@ == 4
goto_if_false @SYN2_19214
if 
  not is_car_dead 244@
goto_if_false @SYN2_19214
if 
  not is_car_dead 255@
goto_if_false @SYN2_19214
if and
  not is_playback_going_on_for_car 244@
  not is_playback_going_on_for_car 255@
goto_if_false @SYN2_19214
wait 1500
247@ = 0
TIMERB = 0
35@ += 1

:SYN2_19214
if 
  35@ >= 5
goto_if_false @SYN2_19724
if 
  TIMERB > 1000
goto_if_false @SYN2_19724
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_19724
switch_start 247@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_19717 {caseNum1} 0 {caseLabel1} @SYN2_19332 {caseNum2} 1 {caseLabel2} @SYN2_19398 {caseNum3} 2 {caseLabel3} @SYN2_19464 {caseNum4} 3 {caseLabel4} @SYN2_19530 {caseNum5} 4 {caseLabel5} @SYN2_19596 {caseNum6} 5 {caseLabel6} @SYN2_19662 {caseNum7} -1 {caseLabel7} @SYN2_19717

:SYN2_19332
set_var_text_label s$audio_string = 'SYN2_HA'
set_var_int_to_constant $audio_sound_file = 8661
start_new_script @AUDIOL 246@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8662
247@ += 1
goto @SYN2_19717

:SYN2_19398
set_var_text_label s$audio_string = 'SYN2_HB'
set_var_int_to_constant $audio_sound_file = 8662
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8663
247@ += 1
goto @SYN2_19717

:SYN2_19464
set_var_text_label s$audio_string = 'SYN2_HC'
set_var_int_to_constant $audio_sound_file = 8663
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8664
247@ += 1
goto @SYN2_19717

:SYN2_19530
set_var_text_label s$audio_string = 'SYN2_HD'
set_var_int_to_constant $audio_sound_file = 8664
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8665
247@ += 1
goto @SYN2_19717

:SYN2_19596
set_var_text_label s$audio_string = 'SYN2_HE'
set_var_int_to_constant $audio_sound_file = 8665
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8660
247@ += 1
goto @SYN2_19717

:SYN2_19662
set_var_text_label s$audio_string = 'SYN2_HF'
set_var_int_to_constant $audio_sound_file = 8660
start_new_script @AUDIOL 245@ 0 1 2 1 
247@ += 1
goto @SYN2_19717

:SYN2_19717
TIMERB = 0

:SYN2_19724
if 
  35@ == 5
goto_if_false @SYN2_20343
clear_area -1924.4871 {y} 724.8195 {z} 45.134 {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 244@
goto_if_false @SYN2_19840
set_car_coordinates 244@ {x} -1924.4871 {y} 725.2195 {z} 45.134
set_car_heading 244@ {heading} 270.0
open_car_door 244@ {door} CarDoor.RightRearDoor
freeze_car_position 244@ {state} True

:SYN2_19840
if 
  not is_car_dead 255@
goto_if_false @SYN2_19893
set_car_coordinates 255@ {x} -1932.387 {y} 725.1635 {z} 45.2749
set_car_heading 255@ {heading} 270.0
freeze_car_position 255@ {state} True

:SYN2_19893
if 
  not is_char_dead 245@
goto_if_false @SYN2_19944
clear_char_tasks_immediately 245@
set_char_coordinates 245@ {x} -1924.224 {y} 723.2358 {z} 44.4453
set_char_heading 245@ {heading} 159.4748

:SYN2_19944
67@ = create_char PedType.CivFemale {modelId} 64 {x} -1920.884 {y} 718.9793 {z} 44.4453
set_char_heading 67@ {heading} 0.0
flush_route 
extend_route -1921.819 {y} 720.555 {z} 44.4453
extend_route -1926.29 {y} 722.7397 {z} 44.4453
53@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead 244@
goto_if_false @SYN2_20055
task_enter_car_as_passenger -1 {vehicle} 244@ {time} 20000 {seat} SeatId.RearRight

:SYN2_20055
close_sequence_task 53@
perform_sequence_task 67@ {sequence} 53@
clear_sequence_task 53@
set_char_never_targetted 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 231@
246@ = create_char PedType.CivMale {modelId} 68 {x} -1923.519 {y} 718.0508 {z} 44.9828
set_char_heading 246@ {heading} 0.0
set_char_decision_maker 246@ {handleOrTemplate} 231@
flush_route 
extend_route -1922.707 {y} 719.7217 {z} 45.4453
extend_route -1924.6689 {y} 720.7556 {z} 45.4453
extend_route -1925.027 {y} 720.9464 {z} 45.4453
extend_route -1926.188 {y} 721.5566 {z} 45.4453
extend_route -1927.006 {y} 722.2399 {z} 45.4453
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_char_dead 67@
goto_if_false @SYN2_20260
task_turn_char_to_face_char -1 {target} 67@

:SYN2_20260
close_sequence_task 53@
perform_sequence_task 246@ {sequence} 53@
clear_sequence_task 53@
TIMERA = 0
set_fixed_camera_position -1918.223 {y} 720.1056 {z} 46.0226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1919.156 {y} 720.4551 {z} 45.9459 {switchStyle} SwitchType.JumpCut
35@ += 1

:SYN2_20343
if 
  35@ == 6
goto_if_false @SYN2_20629
if 
  TIMERA > 7050
goto_if_false @SYN2_20629
set_fixed_camera_position -1933.54 {y} 728.0091 {z} 46.4366 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 244@
goto_if_false @SYN2_20629
point_camera_at_car 244@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 255@
goto_if_false @SYN2_20460
freeze_car_position 255@ {state} False

:SYN2_20460
freeze_car_position 244@ {state} False
if 
  not is_char_dead 67@
goto_if_false @SYN2_20498
clear_char_tasks_immediately 67@
warp_char_into_car_as_passenger 67@ {handle} 244@ {seat} SeatId.RearLeft

:SYN2_20498
open_car_door 244@ {door} CarDoor.RightRearDoor
if 
  not is_char_dead 246@
goto_if_false @SYN2_20569
clear_char_tasks_immediately 246@
set_char_coordinates 246@ {x} -1927.08 {y} 723.2823 {z} 44.4453
set_char_heading 246@ {heading} 299.9935
task_enter_car_as_passenger 246@ {vehicle} 244@ {time} 20000 {seat} SeatId.RearRight

:SYN2_20569
if 
  not is_char_dead 245@
goto_if_false @SYN2_20622
clear_char_tasks_immediately 245@
clear_look_at 245@
if 
  not is_car_dead 244@
goto_if_false @SYN2_20622
task_enter_car_as_driver 245@ {vehicle} 244@ {time} 5000

:SYN2_20622
35@ += 1

:SYN2_20629
if 
  35@ == 7
goto_if_false @SYN2_20799
if 
  not is_car_dead 244@
goto_if_false @SYN2_20799
if 
  not is_char_dead 245@
goto_if_false @SYN2_20799
if 
  is_char_in_car 245@ {vehicle} 244@
goto_if_false @SYN2_20799
if 
  not is_char_dead 246@
goto_if_false @SYN2_20799
if 
  is_char_in_car 246@ {vehicle} 244@
goto_if_false @SYN2_20799
if 
  247@ > 5
goto_if_false @SYN2_20799
task_car_drive_to_coord 245@ {vehicle} 244@ {x} -1902.027 {y} 726.5126 {z} 45.2216 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
TIMERA = 0
35@ += 1

:SYN2_20799
if 
  35@ == 8
goto_if_false @SYN2_20916
if 
  TIMERA > 500
goto_if_false @SYN2_20916
if 
  not is_char_dead 259@
goto_if_false @SYN2_20902
if 
  not is_car_dead 255@
goto_if_false @SYN2_20902
task_car_drive_to_coord 259@ {vehicle} 255@ {x} -1902.027 {y} 726.5126 {z} 45.2216 {speed} 18.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:SYN2_20902
TIMERA = 0
35@ += 1

:SYN2_20916
if 
  35@ == 9
goto_if_false @SYN2_20960
if 
  TIMERA > 2000
goto_if_false @SYN2_20960
35@ = 99

:SYN2_20960
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @SYN2_21180
if 
  not is_char_dead 67@
goto_if_false @SYN2_21180
$x, $y, $z = get_offset_from_char_in_world_coords 67@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
$heading = get_char_heading 67@
save_newline_to_debug_file 
save_string_to_debug_file "PREACHER POINT = "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21180
if 
  35@ == 888
goto_if_false @SYN2_21672
if 
  TIMERA > 1000
goto_if_false @SYN2_21672
if 
  not is_car_dead 244@
goto_if_false @SYN2_21445
if 
  is_car_stopped 244@
goto_if_false @SYN2_21445
if 
is_recording_going_on_for_car 244@
goto_if_false @SYN2_21445
stop_recording_car 244@
$x, $y, $z = get_car_coordinates 244@
$heading = get_car_heading 244@
save_newline_to_debug_file 
save_string_to_debug_file "RICH CAR STOPPED AT "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21445
if 
  not is_car_dead 255@
goto_if_false @SYN2_21672
if 
  is_car_stopped 255@
goto_if_false @SYN2_21672
if 
is_recording_going_on_for_car 255@
goto_if_false @SYN2_21672
stop_recording_car 255@
$x, $y, $z = get_car_coordinates 255@
$heading = get_car_heading 255@
save_newline_to_debug_file 
save_string_to_debug_file "MIB_CAR STOPPED AT "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21672
if 
  35@ == 99
goto_if_false @SYN2_22471
if 
  not does_char_exist 246@
goto_if_false @SYN2_21738
246@ = create_char PedType.CivMale {modelId} 68 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 246@ {handleOrTemplate} 231@

:SYN2_21738
if 
  not does_char_exist 67@
goto_if_false @SYN2_21786
67@ = create_char PedType.CivFemale {modelId} 64 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 67@ {handleOrTemplate} 231@

:SYN2_21786
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_car_dead 255@
goto_if_false @SYN2_21923
if 
  is_playback_going_on_for_car 255@
goto_if_false @SYN2_21887
stop_playback_recorded_car 255@

:SYN2_21887
freeze_car_position 255@ {state} False
if 
  not is_char_dead 259@
goto_if_false @SYN2_21923
clear_char_tasks_immediately 259@
warp_char_into_car 259@ {vehicle} 255@

:SYN2_21923
if 
  not is_car_dead 244@
goto_if_false @SYN2_21967
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_21960
stop_playback_recorded_car 244@

:SYN2_21960
freeze_car_position 244@ {state} False

:SYN2_21967
if 
  not is_car_dead 244@
goto_if_false @SYN2_22079
if 
  not is_char_dead 245@
goto_if_false @SYN2_22012
clear_char_tasks_immediately 245@
warp_char_into_car 245@ {vehicle} 244@

:SYN2_22012
if 
  not is_char_dead 67@
goto_if_false @SYN2_22043
clear_char_tasks_immediately 67@
warp_char_into_car_as_passenger 67@ {handle} 244@ {seat} SeatId.RearLeft

:SYN2_22043
if 
  not is_char_dead 246@
goto_if_false @SYN2_22074
clear_char_tasks_immediately 246@
warp_char_into_car_as_passenger 246@ {handle} 244@ {seat} SeatId.RearRight

:SYN2_22074
close_all_car_doors 244@

:SYN2_22079
if 
  not is_car_dead 255@
goto_if_false @SYN2_22191
if 
  not is_car_dead 244@
goto_if_false @SYN2_22191
if 
  not is_char_dead 259@
goto_if_false @SYN2_22191
start_playback_recorded_car_using_ai 255@ {pathId} 539
skip_in_playback_recorded_car 255@ {amount} 0.0
set_car_driving_style 255@ {drivingStyle} DrivingMode.AvoidCarsObeyLights
set_car_proofs 255@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 255@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 255@ {state} True
set_car_traction 255@ {traction} 2.0

:SYN2_22191
if 
  not is_car_dead 244@
goto_if_false @SYN2_22368
clear_area -1908.786 {y} 726.1257 {z} 45.097 {radius} 5.0 {clearParticles} True
set_car_coordinates 244@ {x} -1908.786 {y} 726.1257 {z} 45.097
set_car_heading 244@ {heading} 273.1095
freeze_car_position 244@ {state} False
set_car_forward_speed 244@ {forwardSpeed} 10.0
set_car_proofs 244@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 244@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 244@ {state} True
set_car_traction 244@ {traction} 2.0
set_car_health 244@ {health} 1850
start_playback_recorded_car_using_ai 244@ {pathId} 539
skip_in_playback_recorded_car 244@ {amount} 5.0
set_car_driving_style 244@ {drivingStyle} DrivingMode.AvoidCarsObeyLights
add_upsidedown_car_check 244@
add_stuck_car_check 244@ {distance} 2.0 {time} 3000

:SYN2_22368
switch_ped_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
switch_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
switch_widescreen False
set_player_control $player1 {state} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
34@ += 1
35@ = 0

:SYN2_22471
return 

:SYN2_22473
if 
  35@ == 0
goto_if_false @SYN2_22739
suppress_car_model 409
suppress_car_model 579
252@ = 15.0
if 
  not is_char_dead 246@
goto_if_false @SYN2_22542
249@ = add_blip_for_char 246@
set_char_get_out_upside_down_car 246@ {state} False

:SYN2_22542
if 
  not is_char_dead 67@
goto_if_false @SYN2_22565
set_char_get_out_upside_down_car 67@ {state} False

:SYN2_22565
if 
  not is_char_dead 245@
goto_if_false @SYN2_22588
set_char_get_out_upside_down_car 245@ {state} False

:SYN2_22588
if 
  not is_char_dead 259@
goto_if_false @SYN2_22612
263@ = add_blip_for_char 259@

:SYN2_22612
if 
  not is_char_dead 248@
goto_if_false @SYN2_22636
264@ = add_blip_for_char 248@

:SYN2_22636
250@ = 0
251@ = 0
$syn2_timer = 30000
250@ = 0
87@ = 0
print_now 'SYN2_70' {time} 10000 {flag} 1
if 
  not is_car_dead 244@
goto_if_false @SYN2_22711
lock_car_doors 244@ {lockStatus} CarLock.Locked

:SYN2_22711
set_car_density_multiplier 0.65
set_ped_density_multiplier 1.0
265@ = 0
35@ += 1

:SYN2_22739
if 
  265@ == 0
goto_if_false @SYN2_22803
if 
  does_blip_exist 61@
goto_if_false @SYN2_22796
print 'SYN_M_1' {time} 5000 {flag} 1
265@ = 1

:SYN2_22796
goto @SYN2_22853

:SYN2_22803
if 
  not does_blip_exist 61@
goto_if_false @SYN2_22853
clear_this_print 'SYN_M_1'
print 'SYN2_70' {time} 5000 {flag} 1
265@ = 0

:SYN2_22853
if 
  35@ == 1
goto_if_false @SYN2_27036
if 
  not is_car_dead 244@
goto_if_false @SYN2_23877
if 
  250@ == 0
goto_if_false @SYN2_23001
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_22938
266@ = 0.3
goto @SYN2_22994

:SYN2_22938
if 
  268@ <> 1
goto_if_false @SYN2_22994
if 
  not is_char_dead 245@
goto_if_false @SYN2_22994
task_car_drive_wander 245@ {vehicle} 244@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
268@ = 1

:SYN2_22994
goto @SYN2_23415

:SYN2_23001
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_23359
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
47@, 48@, 49@ = get_char_coordinates $scplayer
44@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -10.0 {zOffset} 0.0
47@, 48@, 49@ = get_char_coordinates $scplayer
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_23173
add_timed_val_to_float_lvar 266@ +=@ 0.1
goto @SYN2_23352

:SYN2_23173
$x, $y, $z = get_car_coordinates 244@
47@, 48@, 49@ = get_char_coordinates $scplayer
44@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 47@ {toY} 48@ {toZ} 49@
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_23272
add_timed_val_to_float_lvar 266@ +=@ 0.05
goto @SYN2_23313

:SYN2_23272
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @SYN2_23313
add_timed_val_to_float_lvar 266@ +=@ -0.01

:SYN2_23313
if 
  0.6 > 266@
goto_if_false @SYN2_23344
266@ = 0.6

:SYN2_23344
set_lvar_float_to_lvar_float 267@ = 44@

:SYN2_23352
goto @SYN2_23415

:SYN2_23359
if 
  268@ <> 1
goto_if_false @SYN2_23415
if 
  not is_char_dead 245@
goto_if_false @SYN2_23415
task_car_drive_wander 245@ {vehicle} 244@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
268@ = 1

:SYN2_23415
if 
  266@ > 1.5
goto_if_false @SYN2_23446
266@ = 1.5

:SYN2_23446
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_23470
set_playback_speed 244@ {speed} 266@

:SYN2_23470
if 
  is_car_stuck_on_roof 244@
goto_if_false @SYN2_23556
if 
  not is_car_on_screen 244@
goto_if_false @SYN2_23556
$x, $y, $z = get_car_coordinates 244@
$heading = get_car_heading 244@
$z += 1.0
set_car_coordinates 244@ {x} $x {y} $y {z} $z
set_car_heading 244@ {heading} $heading

:SYN2_23556
if 
  is_car_stuck 244@
goto_if_false @SYN2_23877
if 
  not is_car_on_screen 244@
goto_if_false @SYN2_23867
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 244@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_23831
$x, $y, $z = get_car_coordinates 244@
41@ = 1

:SYN2_23645
if 
  20 > 41@
goto_if_false @SYN2_23792
47@, 48@, 49@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 41@
if 
  not is_point_on_screen 47@ {y} 48@ {z} 49@ {radius} 5.0
goto_if_false @SYN2_23778
if 
  not is_point_obscured_by_a_mission_entity 47@ {y} 48@ {z} 49@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @SYN2_23764
41@ = 25
goto @SYN2_23771

:SYN2_23764
41@ += 1

:SYN2_23771
goto @SYN2_23785

:SYN2_23778
41@ += 1

:SYN2_23785
goto @SYN2_23645

:SYN2_23792
if 
  41@ == 25
goto_if_false @SYN2_23824
set_car_coordinates 244@ {x} $x {y} $y {z} $z

:SYN2_23824
goto @SYN2_23860

:SYN2_23831
if 
  not is_char_dead 245@
goto_if_false @SYN2_23860
task_car_temp_action 245@ {vehicle} 244@ {actionId} TempAction.Reverse {time} 1000

:SYN2_23860
goto @SYN2_23877

:SYN2_23867
set_car_forward_speed 244@ {forwardSpeed} -10.0

:SYN2_23877
if 
  not is_car_dead 255@
goto_if_false @SYN2_24615
if 
  is_playback_going_on_for_car 255@
goto_if_false @SYN2_24258
if 
  not is_car_dead 244@
goto_if_false @SYN2_24246
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -10.0 {zOffset} 0.0
47@, 48@, 49@ = get_car_coordinates 255@
44@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
47@, 48@, 49@ = get_car_coordinates 255@
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_24167
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -15.0 {zOffset} 0.0
if 
  not locate_car_3d 255@ {x} $x {y} $y {z} $z {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYN2_24152
add_timed_val_to_float_lvar 269@ +=@ -0.2
goto @SYN2_24160

:SYN2_24152
set_lvar_float_to_lvar_float 269@ = 266@

:SYN2_24160
goto @SYN2_24217

:SYN2_24167
if 
  271@ <> 2
goto_if_false @SYN2_24199
set_car_driving_style 255@ {drivingStyle} DrivingMode.PloughThrough
271@ = 2

:SYN2_24199
set_lvar_float_to_lvar_float 269@ = 266@
269@ += 3.0

:SYN2_24217
set_playback_speed 255@ {speed} 269@
273@, 274@, 275@ = get_car_coordinates 244@
goto @SYN2_24251

:SYN2_24246
stop_playback_recorded_car 255@

:SYN2_24251
goto @SYN2_24615

:SYN2_24258
if 
  not is_car_dead 244@
goto_if_false @SYN2_24356
if 
  271@ <> 99
goto_if_false @SYN2_24335
if 
  not is_char_dead 259@
goto_if_false @SYN2_24335
task_car_mission 259@ {vehicle} 255@ {targetVehicle} 244@ {missionId} CarMission.EscortRear {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough
271@ = 99

:SYN2_24335
273@, 274@, 275@ = get_car_coordinates 244@
goto @SYN2_24615

:SYN2_24356
if 
  100 > 271@
goto_if_false @SYN2_24432
if 
  not is_char_dead 259@
goto_if_false @SYN2_24425
task_car_drive_to_coord 259@ {vehicle} 255@ {x} 273@ {y} 274@ {z} 275@ {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
271@ = 100

:SYN2_24425
goto @SYN2_24615

:SYN2_24432
if 
  locate_car_3d 255@ {x} 273@ {y} 274@ {z} 275@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_24615
if 
  271@ <> 101
goto_if_false @SYN2_24615
if 
  not is_char_dead 259@
goto_if_false @SYN2_24550
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 259@ {sequence} 53@
clear_sequence_task 53@

:SYN2_24550
if 
  not is_char_dead 248@
goto_if_false @SYN2_24608
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_24608
271@ = 101

:SYN2_24615
if 
  250@ == 0
goto_if_false @SYN2_24924
if 
  not is_car_dead 244@
goto_if_false @SYN2_24689
if 
  has_car_been_damaged_by_char 244@ {handle} $scplayer
goto_if_false @SYN2_24689
250@ = 1
276@ = 1
TIMERA = 0

:SYN2_24689
if 
  not is_car_dead 255@
goto_if_false @SYN2_24738
if 
  has_car_been_damaged_by_char 255@ {handle} $scplayer
goto_if_false @SYN2_24738
250@ = 1
276@ = 1

:SYN2_24738
if 
  not is_car_dead 244@
goto_if_false @SYN2_24837
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 244@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @SYN2_24830
if 
  89@ > 5000
goto_if_false @SYN2_24823
276@ = 1
250@ = 1

:SYN2_24823
goto @SYN2_24837

:SYN2_24830
89@ = 0

:SYN2_24837
if 
  250@ == 1
goto_if_false @SYN2_24924
if 
  not is_car_dead 244@
goto_if_false @SYN2_24878
set_car_driving_style 244@ {drivingStyle} DrivingMode.AvoidCars

:SYN2_24878
if 
  not is_car_dead 244@
goto_if_false @SYN2_24924
82@ = get_car_health 244@
set_lvar_int_to_lvar_int 83@ = 82@
83@ -= 100
81@ = 0

:SYN2_24924
if and
  276@ > 0
  7 > 276@
goto_if_false @SYN2_25490
if 
  TIMERB > 1000
goto_if_false @SYN2_25490
if 
  not is_char_dead 246@
goto_if_false @SYN2_25490
if 
  locate_char_any_means_char_3d $scplayer {target} 246@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_25490
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_25490
switch_start 276@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_25490 {caseNum1} 1 {caseLabel1} @SYN2_25101 {caseNum2} 2 {caseLabel2} @SYN2_25174 {caseNum3} 3 {caseLabel3} @SYN2_25247 {caseNum4} 4 {caseLabel4} @SYN2_25320 {caseNum5} 5 {caseLabel5} @SYN2_25393 {caseNum6} 6 {caseLabel6} @SYN2_25455 {caseNum7} -1 {caseLabel7} @SYN2_25490

:SYN2_25101
set_var_text_label s$audio_string = 'SYN2_JA'
set_var_int_to_constant $audio_sound_file = 8666
start_new_script @AUDIOL 246@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8667
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25174
set_var_text_label s$audio_string = 'SYN2_JB'
set_var_int_to_constant $audio_sound_file = 8667
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8670
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25247
set_var_text_label s$audio_string = 'SYN2_JE'
set_var_int_to_constant $audio_sound_file = 8670
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8671
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25320
set_var_text_label s$audio_string = 'SYN2_JF'
set_var_int_to_constant $audio_sound_file = 8671
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8672
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25393
set_var_text_label s$audio_string = 'SYN2_JG'
set_var_int_to_constant $audio_sound_file = 8672
start_new_script @AUDIOL 246@ 0 1 1 1 
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25455
276@ += 1
if 
  not is_car_dead 244@
goto_if_false @SYN2_25483
clear_car_last_damage_entity 244@

:SYN2_25483
goto @SYN2_25490

:SYN2_25490
if and
  276@ == 7
  278@ > 10000
goto_if_false @SYN2_25923
if 
  not is_car_dead 244@
goto_if_false @SYN2_25923
if 
  has_car_been_damaged_by_char 244@ {handle} $scplayer
goto_if_false @SYN2_25923
if 
  not is_message_being_displayed 
goto_if_false @SYN2_25918
277@ += 1
if 
  277@ > 4
goto_if_false @SYN2_25596
277@ = 0

:SYN2_25596
switch_start 277@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN2_25899 {caseNum1} 0 {caseLabel1} @SYN2_25659 {caseNum2} 1 {caseLabel2} @SYN2_25707 {caseNum3} 2 {caseLabel3} @SYN2_25755 {caseNum4} 3 {caseLabel4} @SYN2_25803 {caseNum5} 4 {caseLabel5} @SYN2_25851 {caseNum6} -1 {caseLabel6} @SYN2_25899 {caseNum7} -1 {caseLabel7} @SYN2_25899

:SYN2_25659
set_var_text_label s$audio_string = 'SYN2_KA'
set_var_int_to_constant $audio_sound_file = 8674
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25707
set_var_text_label s$audio_string = 'SYN2_KB'
set_var_int_to_constant $audio_sound_file = 8675
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25755
set_var_text_label s$audio_string = 'SYN2_KC'
set_var_int_to_constant $audio_sound_file = 8676
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25803
set_var_text_label s$audio_string = 'SYN2_KD'
set_var_int_to_constant $audio_sound_file = 8677
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25851
set_var_text_label s$audio_string = 'SYN2_KE'
set_var_int_to_constant $audio_sound_file = 8678
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25899
278@ = 0
clear_car_last_damage_entity 244@
goto @SYN2_25923

:SYN2_25918
clear_car_last_damage_entity 244@

:SYN2_25923
if 
  250@ == 1
goto_if_false @SYN2_26164
if 
  not is_char_dead 248@
goto_if_false @SYN2_26164
if 
  not is_car_dead 255@
goto_if_false @SYN2_26164
if 
  not is_char_dead 259@
goto_if_false @SYN2_26093
if 
  is_char_in_car 248@ {vehicle} 255@
goto_if_false @SYN2_26015
goto @SYN2_26086

:SYN2_26015
41@ = get_script_task_status 248@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26086
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_26086
goto @SYN2_26164

:SYN2_26093
41@ = get_script_task_status 248@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26164
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_26164
41@ = 0

:SYN2_26171
if 
  2 > 41@
goto_if_false @SYN2_26703
if 
  does_vehicle_exist 255@(41@,4i)
goto_if_false @SYN2_26689
if 
  not is_car_dead 255@(41@,4i)
goto_if_false @SYN2_26689
if 
  not is_car_dead 244@
goto_if_false @SYN2_26689
$x, $y, $z = get_car_coordinates 244@
if 
  not locate_car_3d 255@(41@,4i) {x} $x {y} $y {z} $z {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @SYN2_26689
$x, $y, $z = get_char_coordinates $scplayer
if 
  not locate_car_3d 255@(41@,4i) {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @SYN2_26689
if 
  not is_car_on_screen 255@(41@,4i)
goto_if_false @SYN2_26689
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -15.0 {zOffset} 0.0
42@ = 1

:SYN2_26421
if 
  20 > 42@
goto_if_false @SYN2_26568
47@, 48@, 49@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if 
  not is_point_on_screen 47@ {y} 48@ {z} 49@ {radius} 5.0
goto_if_false @SYN2_26554
if 
  not is_point_obscured_by_a_mission_entity 47@ {y} 48@ {z} 49@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @SYN2_26540
42@ = 25
goto @SYN2_26547

:SYN2_26540
42@ += 1

:SYN2_26547
goto @SYN2_26561

:SYN2_26554
42@ += 1

:SYN2_26561
goto @SYN2_26421

:SYN2_26568
if 
  42@ == 25
goto_if_false @SYN2_26689
set_car_coordinates 255@(41@,4i) {x} 47@ {y} 48@ {z} 49@
if 
  not is_car_dead 244@
goto_if_false @SYN2_26634
$x, $y, $z = get_car_coordinates 244@

:SYN2_26634
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 47@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 48@
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_car_heading 255@(41@,4i) {heading} $heading

:SYN2_26689
41@ += 1
goto @SYN2_26171

:SYN2_26703
if 
  56@ == 1
goto_if_false @SYN2_26762
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_26762
if 
  not is_car_dead 244@
goto_if_false @SYN2_26762
set_car_health 244@ {health} 499

:SYN2_26762
41@ = 0
if 
  is_char_dead 246@
goto_if_false @SYN2_26813
if 
  does_blip_exist 249@
goto_if_false @SYN2_26806
remove_blip 249@

:SYN2_26806
41@ += 1

:SYN2_26813
if 
  is_char_dead 259@
goto_if_false @SYN2_26857
if 
  does_blip_exist 263@
goto_if_false @SYN2_26850
remove_blip 263@

:SYN2_26850
41@ += 1

:SYN2_26857
if 
  is_char_dead 248@
goto_if_false @SYN2_26901
if 
  does_blip_exist 264@
goto_if_false @SYN2_26894
remove_blip 264@

:SYN2_26894
41@ += 1

:SYN2_26901
if 
  41@ == 3
goto_if_false @SYN2_26926
35@ = 99

:SYN2_26926
if 
  not is_char_dead 246@
goto_if_false @SYN2_27036
if 
  not locate_char_any_means_char_2d $scplayer {target} 246@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SYN2_27029
if 
  87@ > 20000
goto_if_false @SYN2_27022
gosub @SYN2_30815
print_now 'SYN2_71' {time} 5000 {flag} 1
37@ = 1

:SYN2_27022
goto @SYN2_27036

:SYN2_27029
87@ = 0

:SYN2_27036
if 
  35@ == 99
goto_if_false @SYN2_27110
34@ += 1
35@ = 0
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34400

:SYN2_27084
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_27110
wait 0
goto @SYN2_27084

:SYN2_27110
return 

:SYN2_27112
if 
  35@ == 0
goto_if_false @SYN2_27246
if 
  TIMERA > 3000
goto_if_false @SYN2_27246
if 
  not is_car_dead 59@
goto_if_false @SYN2_27232
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27200
print 'SYN_M_1' {time} 7000 {flag} 1

:SYN2_27200
$x, $y, $z = get_car_coordinates 59@
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_27232
TIMERA = 0
35@ += 1

:SYN2_27246
if 
  35@ == 1
goto_if_false @SYN2_27357
if 
  not is_car_dead 59@
goto_if_false @SYN2_27357
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27357
if 
  TIMERA > 2000
goto_if_false @SYN2_27346
set_player_control $player1 {state} False
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_27346
clear_this_print 'SYN_M_1'

:SYN2_27357
if 
  35@ == 2
goto_if_false @SYN2_27430
if 
  not is_car_dead 59@
goto_if_false @SYN2_27430
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27430
clear_prints 
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
35@ += 1

:SYN2_27430
if 
  35@ == 3
goto_if_false @SYN2_27582
279@ = 0
283@ = -1
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_27471
if 
  get_fading_status 
goto_if_false @SYN2_27495
wait 0
goto @SYN2_27471

:SYN2_27495
gosub @SYN2_28920
do_fade 150 {direction} Fade.In

:SYN2_27509
if 
  get_fading_status 
goto_if_false @SYN2_27533
wait 0
goto @SYN2_27509

:SYN2_27533
if 
  not is_car_dead 255@
goto_if_false @SYN2_27554
delete_car 255@

:SYN2_27554
if 
  not is_car_dead 256@
goto_if_false @SYN2_27575
delete_car 256@

:SYN2_27575
35@ += 1

:SYN2_27582
if 
  35@ == 4
goto_if_false @SYN2_27640
if 
  TIMERA > 1000
goto_if_false @SYN2_27640
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_27640
if and
  35@ > 4
  99 > 35@
goto_if_false @SYN2_28167
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_28167
if 
  54@ > 1000
goto_if_false @SYN2_28167
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_28160 {caseNum1} 0 {caseLabel1} @SYN2_27765 {caseNum2} 1 {caseLabel2} @SYN2_27831 {caseNum3} 2 {caseLabel3} @SYN2_27896 {caseNum4} 3 {caseLabel4} @SYN2_27961 {caseNum5} 4 {caseLabel5} @SYN2_28026 {caseNum6} 5 {caseLabel6} @SYN2_28091 {caseNum7} 6 {caseLabel7} @SYN2_28146

:SYN2_27765
set_var_text_label s$audio_string = 'SYN2_GA'
set_var_int_to_constant $audio_sound_file = 8637
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8628
247@ += 1
goto @SYN2_28160

:SYN2_27831
set_var_text_label s$audio_string = 'SYN2_GB'
set_var_int_to_constant $audio_sound_file = 8628
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8629
247@ += 1
goto @SYN2_28160

:SYN2_27896
set_var_text_label s$audio_string = 'SYN2_GC'
set_var_int_to_constant $audio_sound_file = 8629
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8630
247@ += 1
goto @SYN2_28160

:SYN2_27961
set_var_text_label s$audio_string = 'SYN2_GD'
set_var_int_to_constant $audio_sound_file = 8630
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8631
247@ += 1
goto @SYN2_28160

:SYN2_28026
set_var_text_label s$audio_string = 'SYN2_GF'
set_var_int_to_constant $audio_sound_file = 8631
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8638
247@ += 1
goto @SYN2_28160

:SYN2_28091
set_var_text_label s$audio_string = 'SYN2_GE'
set_var_int_to_constant $audio_sound_file = 8638
start_new_script @AUDIOL $scplayer 0 1 2 1 
247@ += 1
goto @SYN2_28160

:SYN2_28146
247@ += 1
goto @SYN2_28160

:SYN2_28160
54@ = 0

:SYN2_28167
if 
  35@ == 5
goto_if_false @SYN2_28216
if or
  247@ > 6
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_28216
35@ = 99

:SYN2_28216
if 
  35@ == 99
goto_if_false @SYN2_28397
do_fade 500 {direction} Fade.Out

:SYN2_28241
if 
  get_fading_status 
goto_if_false @SYN2_28265
wait 0
goto @SYN2_28241

:SYN2_28265
gosub @SYN2_30815
if 
  not is_car_dead 59@
goto_if_false @SYN2_28320
$x, $y, $z = get_car_coordinates 59@
clear_area $x {y} $y {z} $z {radius} 15.0 {clearParticles} True

:SYN2_28320
do_fade 500 {direction} Fade.In

:SYN2_28327
if 
  get_fading_status 
goto_if_false @SYN2_28351
wait 0
goto @SYN2_28327

:SYN2_28351
$audio_line_is_active = 0
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @SYN2_28383
alter_wanted_level $player1 {wantedLevel} 2

:SYN2_28383
36@ = 1
34@ += 1

:SYN2_28397
return 

:SYN2_28399
if 
  90@ == 1
goto_if_false @SYN2_28436
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SYN2_28436
play_mission_audio MissionAudioSlot.Slot3

:SYN2_28436
if 
  7 > 34@
goto_if_false @SYN2_28516
if 
  does_char_exist 67@
goto_if_false @SYN2_28516
if 
  is_char_dead 67@
goto_if_false @SYN2_28516
gosub @SYN2_30815
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28516
if 
  does_char_exist 68@
goto_if_false @SYN2_28578
if 
  is_char_dead 68@
goto_if_false @SYN2_28578
gosub @SYN2_30815
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28578
if 
  does_char_exist 69@
goto_if_false @SYN2_28640
if 
  is_char_dead 69@
goto_if_false @SYN2_28640
gosub @SYN2_30815
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28640
if 
  does_vehicle_exist 59@
goto_if_false @SYN2_28702
if 
  is_car_dead 59@
goto_if_false @SYN2_28702
gosub @SYN2_30815
print_now 'SYN_F_2' {time} 5000 {flag} 1
37@ = 1

:SYN2_28702
if 
  34@ > 2
goto_if_false @SYN2_28814
if 
  not is_car_dead 59@
goto_if_false @SYN2_28814
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_28793
if 
  not does_blip_exist 61@
goto_if_false @SYN2_28786
61@ = add_blip_for_car 59@
set_blip_as_friendly 61@ {state} True

:SYN2_28786
goto @SYN2_28814

:SYN2_28793
if 
  does_blip_exist 61@
goto_if_false @SYN2_28814
remove_blip 61@

:SYN2_28814
return 

:SYN2_28816
if 
  not is_char_dead 68@
goto_if_false @SYN2_28918
clear_char_tasks 68@
53@ = open_sequence_task 
task_duck -1 {time} 2000
if 
  not is_char_dead 71@
goto_if_false @SYN2_28882
task_smart_flee_char -1 {threat} 71@ {radius} 100.0 {time} 60000

:SYN2_28882
task_wander_standard -1
close_sequence_task 53@
perform_sequence_task 68@ {sequence} 53@
clear_sequence_task 53@
78@ = 0
86@ = 99

:SYN2_28918
return 

:SYN2_28920
280@ = 1
285@ = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @SYN2_29006
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
284@ = 1
request_model 331

:SYN2_28972
if 
  not has_model_loaded 331
goto_if_false @SYN2_28999
wait 0
goto @SYN2_28972

:SYN2_28999
goto @SYN2_29013

:SYN2_29006
284@ = 0

:SYN2_29013
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_29089
request_animation "CAR_CHAT"

:SYN2_29055
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_29089
wait 0
goto @SYN2_29055

:SYN2_29089
if 
  not has_model_loaded 330
goto_if_false @SYN2_29137
request_model 330

:SYN2_29110
if 
  not has_model_loaded 330
goto_if_false @SYN2_29137
wait 0
goto @SYN2_29110

:SYN2_29137
if 
  not is_car_dead 59@
goto_if_false @SYN2_29244
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} -0.49 {yOffset} 0.05 {zOffset} 0.183
clear_area $x {y} $y {z} $z {radius} 2.0 {clearParticles} True
$x, $y, $z = get_car_coordinates 59@
$heading = get_car_heading 59@
set_car_coordinates 59@ {x} $x {y} $y {z} $z
set_car_heading 59@ {heading} $heading

:SYN2_29244
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 59@
goto_if_false @SYN2_29283
freeze_car_position 59@ {state} True
close_all_car_doors 59@

:SYN2_29283
$x, $y, $z = get_char_coordinates $scplayer
if 
  279@ == 0
goto_if_false @SYN2_29389
if 
  not is_car_dead 59@
goto_if_false @SYN2_29389
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} 0.01 {yOffset} 0.75 {zOffset} 0.77
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.36 {yOffset} 0.12 {zOffset} 0.66

:SYN2_29389
if 
  279@ == 1
goto_if_false @SYN2_29481
if 
  not is_car_dead 59@
goto_if_false @SYN2_29481
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} -0.04 {yOffset} 0.68 {zOffset} 0.69
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.55 {yOffset} -0.29 {zOffset} 0.64

:SYN2_29481
if 
  279@ == 2
goto_if_false @SYN2_29573
if 
  not is_car_dead 59@
goto_if_false @SYN2_29573
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} 0.51 {yOffset} -0.9 {zOffset} 0.84
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.41 {yOffset} -0.14 {zOffset} 0.64

:SYN2_29573
85@ = create_object 330 {x} $x {y} $y {z} $z
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 59@
goto_if_false @SYN2_29643
attach_char_to_car $scplayer {vehicle} 59@ {xOffset} -0.49 {yOffset} 0.05 {zOffset} 0.183 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SYN2_29643
if 
  279@ == 0
goto_if_false @SYN2_30017
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30017
if 
  279@ == 1
goto_if_false @SYN2_30359
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30359
if 
  279@ == 2
goto_if_false @SYN2_30743
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30743
perform_sequence_task $scplayer {sequence} 53@
clear_sequence_task 53@
wait 0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 50@ {y} 51@ {z} 52@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.01
TIMERA = 0
return 

:SYN2_30815
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  284@ == 1
goto_if_false @SYN2_30870
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
284@ = 0
mark_model_as_no_longer_needed 331

:SYN2_30870
set_current_char_weapon $scplayer {weaponType} 285@
clear_prints 
set_player_control $player1 {state} True
if 
  not is_car_dead 59@
goto_if_false @SYN2_30951
freeze_car_position 59@ {state} False
if 
  280@ == 1
goto_if_false @SYN2_30951
detach_char_from_car $scplayer
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 59@
delete_object 85@

:SYN2_30951
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
remove_blip 263@
remove_blip 264@
280@ = 0
return 

:SYN2_30978
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN2_30996
if 
  $syn2_mission_attempts == 0
goto_if_false @SYN2_31083
remove_blip $synd_contact_blip
remove_blip $garage_contact_blip
remove_blip $scrash_contact_blip
$synd_contact_blip = add_sprite_blip_for_contact_point $syndX {y} $syndY {z} $syndZ {sprite} $synd_blip_icon
$flag_synd_mission_counter += 1
$syn2_mission_attempts = 1
print_now 'SYN2_60' {time} 10000 {flag} 1
goto @SYN2_31147

:SYN2_31083
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_2'
print_with_number_big 'M_PASSS' {num} 3000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 3000
award_player_mission_respect 20
play_mission_passed_tune 1
set_int_stat StatId.PassedSyndicate2 {value} 1
player_made_progress 1

:SYN2_31147
return 

:SYN2_31149
if 
  is_player_playing $player1
goto_if_false @SYN2_31176
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0

:SYN2_31176
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_car_dead 59@
goto_if_false @SYN2_31219
set_can_burst_car_tyres 59@ {state} True

:SYN2_31219
if 
  is_player_playing $player1
goto_if_false @SYN2_31240
clear_char_tasks $scplayer

:SYN2_31240
switch_ped_roads_on -2431.115 {leftBottomY} -169.4874 {leftBottomZ} 33.0 {rightTopX} -2426.5129 {rightTopY} -117.2969 {rightTopZ} 36.0
switch_ped_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
switch_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 64
unload_special_character 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 545
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 73
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 346
remove_animation "CRACK"
remove_animation "FIGHT_D"
remove_animation "MISC"
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 330
remove_animation "CAR_CHAT"
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 249@
remove_decision_maker 232@
remove_decision_maker 231@
clear_onscreen_counter $girl2_timer
clear_onscreen_timer $syn2_timer
clear_onscreen_timer $syn2_time_until_backup
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
dont_suppress_car_model 575
dont_suppress_car_model 545
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 60---------------
// Originally: Outrider

:SYN3
script_name 'SYN3'
gosub @SYN3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN3_38
gosub @SYN3_19112

:SYN3_38
gosub @SYN3_19206
terminate_this_script 

:SYN3_47
register_mission_given 
load_mission_text 'SYN3'
$onmission = 1
wait 0
38@ = -1832.33
39@ = -14.59
40@ = 15.39
41@ = 270.0
42@ = -1815.04
43@ = 2.59
44@ = 14.99
45@ = -2127.4199
46@ = -100.65
47@ = 34.37
56@ = 9.5
103@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
57@ = 1
142@ = 0
143@ = 0
144@ = 0
145@ = 0
97@ = 0

:SYN3_272
if 
  3 > 97@
goto_if_false @SYN3_337
146@(97@,3i) = 0
149@(97@,3i) = 0
180@(97@,3i) = 0
97@ += 1
goto @SYN3_272

:SYN3_337
97@ = 0

:SYN3_344
if 
  6 > 97@
goto_if_false @SYN3_398
155@(97@,6i) = 0
183@(97@,6i) = 0
97@ += 1
goto @SYN3_344

:SYN3_398
97@ = 0

:SYN3_405
if 
  3 > 97@
goto_if_false @SYN3_448
152@(97@,3i) = 0
97@ += 1
goto @SYN3_405

:SYN3_448
97@ = 0

:SYN3_455
if 
  6 > 97@
goto_if_false @SYN3_509
164@(97@,6i) = 0
189@(97@,6i) = 0
97@ += 1
goto @SYN3_455

:SYN3_509
97@ = 0

:SYN3_516
if 
  3 > 97@
goto_if_false @SYN3_559
161@(97@,3i) = 0
97@ += 1
goto @SYN3_516

:SYN3_559
97@ = 0

:SYN3_566
if 
  3 > 97@
goto_if_false @SYN3_631
170@(97@,3i) = 0
173@(97@,3i) = 0
195@(97@,3i) = 0
97@ += 1
goto @SYN3_566

:SYN3_631
176@ = 0
177@ = 0
178@ = 0
179@ = 0
198@ = -1
97@ = 0

:SYN3_673
if 
  4 > 97@
goto_if_false @SYN3_716
199@(97@,4i) = 0
97@ += 1
goto @SYN3_673

:SYN3_716
205@ = 0
97@ = 0

:SYN3_730
if 
  4 > 97@
goto_if_false @SYN3_773
206@(97@,4i) = 0
97@ += 1
goto @SYN3_730

:SYN3_773
210@ = 0
128@ = 0
129@ = 0
131@ = 0
211@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYN3_823
if 
  get_fading_status 
goto_if_false @SYN3_847
wait 0
goto @SYN3_823

:SYN3_847
clear_this_print_big_now TextStyle.Middle
if 
  211@ == 1
goto_if_false @SYN3_944
35@ = create_car 468 {x} 0.0 {y} 0.0 {z} -100.0
214@ = add_blip_for_car 35@
36@ = create_car 440 {x} 0.0 {y} 0.0 {z} -100.0
37@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 173
215@ = add_blip_for_car 36@

:SYN3_944
request_model 421
request_model 359
request_model 358
request_model 468
request_model 330
request_model #BODYARMOUR

:SYN3_973
if or
  not has_model_loaded 421
  not has_model_loaded 359
  not has_model_loaded 358
  not has_model_loaded 468
  not has_model_loaded 330
  not has_model_loaded #BODYARMOUR
goto_if_false @SYN3_1024
wait 0
goto @SYN3_973

:SYN3_1024
248@ = get_max_wanted_level 
set_player_control $player1 {state} False
switch_widescreen True
clear_area -2030.4 {y} 148.83 {z} 27.84 {radius} 100.0 {clearParticles} False
load_scene -2030.4 {y} 148.83 {z} 27.84
set_char_coordinates $scplayer {x} -2030.4 {y} 148.83 {z} 27.84
set_char_heading $scplayer {heading} 270.0
set_fixed_camera_position -2027.45 {y} 150.01 {z} 29.01 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2028.92 {y} 149.37 {z} 29.03 {switchStyle} SwitchType.JumpCut
132@ = 0
gosub @SYN3_17788
task_use_mobile_phone $scplayer {start} True
do_fade 1000 {direction} Fade.In

:SYN3_1190
if 
  get_fading_status 
goto_if_false @SYN3_1214
wait 0
goto @SYN3_1190

:SYN3_1214
wait 1500

:SYN3_1219
if 
  2 > 129@
goto_if_false @SYN3_1346
wait 0
if 
  is_player_playing $player1
goto_if_false @SYN3_1318
gosub @SYN3_18297
if and
  128@ == 2
  129@ == 1
  131@ <> 1
goto_if_false @SYN3_1311
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_1311
goto @SYN3_1339

:SYN3_1318
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
131@ = 0
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1339
goto @SYN3_1219

:SYN3_1346
stop_char_facial_talk $scplayer
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} True

:SYN3_1373
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_1538
wait 0
if and
  is_player_playing $player1
  not is_char_in_water $scplayer
  not is_char_in_air $scplayer
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN3_1489
gosub @SYN3_18297
if and
  128@ == 2
  129@ == 7
  131@ <> 1
goto_if_false @SYN3_1482
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_1482
goto @SYN3_1531

:SYN3_1489
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
131@ = 0
if 
  is_player_playing $player1
goto_if_false @SYN3_1523
stop_char_facial_talk $scplayer

:SYN3_1523
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1531
goto @SYN3_1373

:SYN3_1538
stop_char_facial_talk $scplayer
95@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_1579
task_use_mobile_phone $scplayer {start} False

:SYN3_1579
mark_model_as_no_longer_needed 330
set_everyone_ignore_player $player1 {state} False
wait 2500
custom_plate_for_next_car 421 {text} "_OMEGA__"
34@ = create_car 421 {x} -1665.27 {y} 412.923 {z} 6.192
set_car_heading 34@ {heading} 134.44
change_car_colour 34@ {color1} 84 {color2} 84
212@ = add_blip_for_car 34@
set_blip_as_friendly 212@ {state} True
freeze_car_position 34@ {state} True
print_now 'SYN3_18' {time} 10000 {flag} 0

:SYN3_1691
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN3_1717
goto @SYN3_19130

:SYN3_1717
if and
  134@ <> 1
  not is_car_dead 34@
goto_if_false @SYN3_2669
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 34@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_2669
remove_blip 212@
134@ = 1
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SYN3_1810
if 
  get_fading_status 
goto_if_false @SYN3_1834
wait 0
goto @SYN3_1810

:SYN3_1834
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_1870
warp_char_from_car_to_coord $scplayer {x} -1672.64 {y} 404.17 {z} 6.18

:SYN3_1870
clear_area -1665.27 {y} 412.923 {z} 6.192 {radius} 50.0 {clearParticles} False
if 
  not is_car_dead 34@
goto_if_false @SYN3_1917
set_car_visible 34@ {state} False

:SYN3_1917
make_player_safe_for_cutscene $player1
load_cutscene 'SYND_3A'

:SYN3_1933
if 
  not has_cutscene_loaded 
goto_if_false @SYN3_1957
wait 0
goto @SYN3_1933

:SYN3_1957
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN3_1966
if 
  not has_cutscene_finished 
goto_if_false @SYN3_1990
wait 0
goto @SYN3_1966

:SYN3_1990
do_fade 0 {direction} Fade.Out

:SYN3_1996
if 
  get_fading_status 
goto_if_false @SYN3_2020
wait 0
goto @SYN3_1996

:SYN3_2020
clear_cutscene 
set_player_control $player1 {state} False
load_special_character 1 {modelName} 'TORINO'
load_special_character 2 {modelName} 'TBONE'

:SYN3_2055
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @SYN3_2085
wait 0
goto @SYN3_2055

:SYN3_2085
if 
  not is_car_dead 34@
goto_if_false @SYN3_2356
set_car_visible 34@ {state} True
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_2144
warp_char_from_car_to_coord $scplayer {x} -1665.27 {y} 412.923 {z} -4.192

:SYN3_2144
warp_char_into_car $scplayer {vehicle} 34@
137@ = 1
freeze_car_position 34@ {state} False
100@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_health 100@ {health} 500
set_char_max_health 100@ {maxHealth} 500
set_char_never_targetted 100@ {state} True
set_char_suffers_critical_hits 100@ {state} False
set_char_cant_be_dragged_out 100@ {state} True
set_char_stay_in_car_when_jacked 100@ {state} True
set_char_get_out_upside_down_car 100@ {state} False
101@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.RearLeft
set_char_health 101@ {health} 500
set_char_max_health 101@ {maxHealth} 500
set_char_never_targetted 101@ {state} True
set_char_suffers_critical_hits 101@ {state} False
set_char_cant_be_dragged_out 101@ {state} True
set_char_stay_in_car_when_jacked 101@ {state} True
set_char_get_out_upside_down_car 101@ {state} False
102@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 102@ {event} Event.VehicleOnFire
set_char_decision_maker 100@ {handleOrTemplate} 102@
set_char_decision_maker 101@ {handleOrTemplate} 102@
clear_all_char_relationships 100@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 100@ {relationshipType} RelationshipType.Hate
clear_all_char_relationships 101@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 101@ {relationshipType} RelationshipType.Hate

:SYN3_2356
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncher
if 
  91@ == 0
goto_if_false @SYN3_2394
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncherHs

:SYN3_2394
92@ = 20
sub_int_lvar_from_int_lvar 92@ -= 91@
if 
  92@ > 0
goto_if_false @SYN3_2470
89@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 92@ {x} -1831.0 {y} -21.43 {z} 15.16
247@ = add_blip_for_pickup 89@
goto @SYN3_2477

:SYN3_2470
135@ = 1

:SYN3_2477
93@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
94@ = 40
sub_int_lvar_from_int_lvar 94@ -= 93@
if 
  94@ > 0
goto_if_false @SYN3_2548
90@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 94@ {x} -1837.0 {y} -21.43 {z} 15.16

:SYN3_2548
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 358
gosub @SYN3_6547
35@ = create_car 468 {x} -1830.16 {y} -17.64 {z} 14.79
set_car_heading 35@ {heading} 268.78
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
213@ = add_blip_for_coord 42@ {y} 43@ {z} 44@
print_now 'SYN3_1' {time} 10000 {flag} 0
if 
  135@ <> 1
goto_if_false @SYN3_2669

:SYN3_2669
if and
  134@ == 1
  136@ <> 1
  not is_car_dead 34@
goto_if_false @SYN3_3214
if and
  137@ == 1
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SYN3_3013
remove_blip 213@
212@ = add_blip_for_car 34@
set_blip_as_friendly 212@ {state} True
gosub @SYN3_18528
if 
  is_char_dead 100@
goto_if_false @SYN3_2795
clear_mission_audio MissionAudioSlot.Slot2
print_now 'SYN3_27' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2795
if 
  is_char_dead 101@
goto_if_false @SYN3_2834
print_now 'SYN3_28' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2834
if 
  is_car_dead 34@
goto_if_false @SYN3_2873
print_now 'SYN3_19' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2873
if 
  is_car_dead 36@
goto_if_false @SYN3_2912
print_now 'SYN3_15' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2912
if 
  is_char_dead 37@
goto_if_false @SYN3_2951
print_now 'SYN3_16' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2951
if 
  is_car_dead 35@
goto_if_false @SYN3_2990
print_now 'SYN3_14' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_2990
print_now 'SYN3_26' {time} 7000 {flag} 0
137@ = 0

:SYN3_3013
if and
  137@ == 0
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SYN3_3081
remove_blip 212@
213@ = add_blip_for_coord 42@ {y} 43@ {z} 44@
print_now 'SYN3_1' {time} 7000 {flag} 0
137@ = 1

:SYN3_3081
if 
  137@ == 1
goto_if_false @SYN3_3214
if 
  locate_char_in_car_3d $scplayer {x} 42@ {y} 43@ {z} 44@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SYN3_3214
remove_blip 213@
136@ = 1
set_player_control $player1 {state} False
gosub @SYN3_16390
if 
  not is_car_dead 35@
goto_if_false @SYN3_3198
214@ = add_blip_for_car 35@
set_blip_as_friendly 214@ {state} True

:SYN3_3198
print_now 'SYN3_25' {time} 10000 {flag} 0

:SYN3_3214
if and
  136@ == 1
  138@ <> 1
goto_if_false @SYN3_3579
if 
  not is_car_dead 35@
goto_if_false @SYN3_3579
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @SYN3_3579
remove_blip 214@
gosub @SYN3_6701
138@ = 1
if 
  not is_car_dead 36@
goto_if_false @SYN3_3331
215@ = add_blip_for_car 36@
set_blip_as_friendly 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly

:SYN3_3331
216@ = add_blip_for_coord -2007.75 {y} 533.24 {z} 33.91
set_coord_blip_appearance 216@ {color} CoordAppearance.Enemy
print_now 'SYN3_2' {time} 10000 {flag} 0
141@ = 0
TIMERB = 0
gosub @SYN3_6965
gosub @SYN3_8754
142@ = 1
switch_roads_off -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_off -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_off -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_off -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains False
249@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} -2060.03 {y} 304.18 {z} 35.81
140@ = 0
gosub @SYN3_14963

:SYN3_3579
if 
  139@ <> 1
goto_if_false @SYN3_6540
if 
  134@ == 1
goto_if_false @SYN3_3661
if 
  135@ <> 1
goto_if_false @SYN3_3661
if 
  has_pickup_been_collected 89@
goto_if_false @SYN3_3661
remove_blip 247@
135@ = 1

:SYN3_3661
if and
  138@ == 1
  not is_car_dead 36@
goto_if_false @SYN3_5972
if and
  141@ <> 1
  TIMERB >= 10000
goto_if_false @SYN3_3772
if 
  does_blip_exist 247@
goto_if_false @SYN3_3749
print_now 'SYN3_3' {time} 7000 {flag} 0
goto @SYN3_3765

:SYN3_3749
print_now 'SYN3_4' {time} 7000 {flag} 0

:SYN3_3765
141@ = 1

:SYN3_3772
if or
  57@ >= 1
  57@ == -1
goto_if_false @SYN3_3947
if or
  locate_char_any_means_2d $scplayer {x} -1999.7 {y} 527.27 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -1999.7 {y} 527.27 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_3901
if 
  142@ == 1
goto_if_false @SYN3_3894
gosub @SYN3_9322
142@ = 0

:SYN3_3894
goto @SYN3_3933

:SYN3_3901
if 
  142@ == 0
goto_if_false @SYN3_3933
gosub @SYN3_8754
142@ = 1

:SYN3_3933
198@ = 0
gosub @SYN3_11986

:SYN3_3947
if or
  57@ >= 2
  57@ == -1
goto_if_false @SYN3_4122
if or
  locate_char_any_means_2d $scplayer {x} -2085.74 {y} 320.74 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2085.74 {y} 320.74 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4076
if 
  143@ == 1
goto_if_false @SYN3_4069
gosub @SYN3_9464
143@ = 0

:SYN3_4069
goto @SYN3_4108

:SYN3_4076
if 
  143@ == 0
goto_if_false @SYN3_4108
gosub @SYN3_8896
143@ = 1

:SYN3_4108
198@ = 1
gosub @SYN3_11986

:SYN3_4122
if or
  57@ >= 3
  57@ == -1
goto_if_false @SYN3_4297
if or
  locate_char_any_means_2d $scplayer {x} -2146.6201 {y} 146.06 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2146.6201 {y} 146.06 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4251
if 
  144@ == 1
goto_if_false @SYN3_4244
gosub @SYN3_9606
144@ = 0

:SYN3_4244
goto @SYN3_4283

:SYN3_4251
if 
  144@ == 0
goto_if_false @SYN3_4283
gosub @SYN3_9038
144@ = 1

:SYN3_4283
198@ = 2
gosub @SYN3_11986

:SYN3_4297
if or
  57@ >= 4
  57@ == -1
goto_if_false @SYN3_4472
if or
  locate_char_any_means_2d $scplayer {x} -2166.9199 {y} 48.75 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2166.9199 {y} 48.75 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4426
if 
  145@ == 1
goto_if_false @SYN3_4419
gosub @SYN3_9748
145@ = 0

:SYN3_4419
goto @SYN3_4458

:SYN3_4426
if 
  145@ == 0
goto_if_false @SYN3_4458
gosub @SYN3_9180
145@ = 1

:SYN3_4458
198@ = 3
gosub @SYN3_11986

:SYN3_4472
gosub @SYN3_10412
gosub @SYN3_13834
if 
  205@ <> 1
goto_if_false @SYN3_4782
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_4775 {caseNum1} 1 {caseLabel1} @SYN3_4567 {caseNum2} 2 {caseLabel2} @SYN3_4619 {caseNum3} 3 {caseLabel3} @SYN3_4671 {caseNum4} 4 {caseLabel4} @SYN3_4723 {caseNum5} -1 {caseLabel5} @SYN3_4782 {caseNum6} -1 {caseLabel6} @SYN3_4782 {caseNum7} -1 {caseLabel7} @SYN3_4782

:SYN3_4567
if 
  locate_car_2d 36@ {x} -2007.75 {y} 533.24 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4612
205@ = 1

:SYN3_4612
goto @SYN3_4782

:SYN3_4619
if 
  locate_car_2d 36@ {x} -2079.24 {y} 323.74 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SYN3_4664
205@ = 1

:SYN3_4664
goto @SYN3_4782

:SYN3_4671
if 
  locate_car_2d 36@ {x} -2149.6201 {y} 152.06 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4716
205@ = 1

:SYN3_4716
goto @SYN3_4782

:SYN3_4723
if 
  locate_car_2d 36@ {x} -2169.4199 {y} 54.75 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4768
205@ = 1

:SYN3_4768
goto @SYN3_4782

:SYN3_4775
goto @SYN3_4782

:SYN3_4782
if 
  205@ == 1
goto_if_false @SYN3_4810
set_car_cruise_speed 36@ {maxSpeed} 0.0

:SYN3_4810
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_5173 {caseNum1} 1 {caseLabel1} @SYN3_4873 {caseNum2} 2 {caseLabel2} @SYN3_4948 {caseNum3} 3 {caseLabel3} @SYN3_5023 {caseNum4} 4 {caseLabel4} @SYN3_5098 {caseNum5} -1 {caseLabel5} @SYN3_5180 {caseNum6} -1 {caseLabel6} @SYN3_5180 {caseNum7} -1 {caseLabel7} @SYN3_5180

:SYN3_4873
if and
  206@ <> 1
  locate_car_2d 36@ {x} -2007.75 {y} 533.24 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_4941
print_now 'SYN3_9' {time} 10000 {flag} 0
206@ = 1

:SYN3_4941
goto @SYN3_5180

:SYN3_4948
if and
  207@ <> 1
  locate_car_2d 36@ {x} -2079.24 {y} 323.74 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5016
print_now 'SYN3_9' {time} 10000 {flag} 0
207@ = 1

:SYN3_5016
goto @SYN3_5180

:SYN3_5023
if and
  208@ <> 1
  locate_car_2d 36@ {x} -2149.6201 {y} 152.06 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5091
print_now 'SYN3_9' {time} 10000 {flag} 0
208@ = 1

:SYN3_5091
goto @SYN3_5180

:SYN3_5098
if and
  209@ <> 1
  locate_car_2d 36@ {x} -2169.4199 {y} 54.75 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5166
print_now 'SYN3_9' {time} 10000 {flag} 0
209@ = 1

:SYN3_5166
goto @SYN3_5180

:SYN3_5173
goto @SYN3_5180

:SYN3_5180
if 
  57@ == 1
goto_if_false @SYN3_5348
gosub @SYN3_11056
if or
  176@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2016.3 {leftBottomY} 434.74 {rightTopX} -1960.98 {rightTopY} 454.11 {drawSphere} False
goto_if_false @SYN3_5348
gosub @SYN3_11584
gosub @SYN3_7439
gosub @SYN3_8896
143@ = 1
gosub @SYN3_9890
57@ = 2
if 
  205@ == 1
goto_if_false @SYN3_5325
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5325
print_now 'SYN3_5' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5348
if and
  57@ == 2
  not is_car_dead 36@
goto_if_false @SYN3_5521
gosub @SYN3_11165
if or
  177@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2133.8701 {leftBottomY} 308.44 {rightTopX} -2124.45 {rightTopY} 330.0 {drawSphere} False
goto_if_false @SYN3_5521
gosub @SYN3_11665
gosub @SYN3_7941
gosub @SYN3_9038
144@ = 1
gosub @SYN3_10064
57@ = 3
if 
  205@ == 1
goto_if_false @SYN3_5498
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5498
print_now 'SYN3_5' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5521
if and
  57@ == 3
  not is_car_dead 36@
goto_if_false @SYN3_5694
gosub @SYN3_11320
if or
  178@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2171.21 {leftBottomY} 90.96 {rightTopX} -2151.6299 {rightTopY} 92.36 {drawSphere} False
goto_if_false @SYN3_5694
gosub @SYN3_11785
gosub @SYN3_8411
gosub @SYN3_9180
145@ = 1
gosub @SYN3_10238
57@ = 4
if 
  205@ == 1
goto_if_false @SYN3_5671
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5671
print_now 'SYN3_7' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5694
if and
  57@ == 4
  not is_car_dead 36@
goto_if_false @SYN3_5839
gosub @SYN3_11475
if or
  179@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2177.54 {leftBottomY} 7.1 {rightTopX} -2157.29 {rightTopY} 19.76 {drawSphere} False
goto_if_false @SYN3_5839
gosub @SYN3_11905
57@ = -1
if 
  205@ == 1
goto_if_false @SYN3_5816
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5816
print_now 'SYN3_8' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5839
if 
  140@ == 1
goto_if_false @SYN3_5923
if 
  not is_car_dead 35@
goto_if_false @SYN3_5911
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @SYN3_5904
remove_blip 214@
140@ = 0

:SYN3_5904
goto @SYN3_5923

:SYN3_5911
remove_blip 214@
140@ = 0

:SYN3_5923
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_5972
99@ = store_car_char_is_in $scplayer
if 
  210@ <> 1
goto_if_false @SYN3_5972
210@ = 1

:SYN3_5972
if 
  136@ <> 1
goto_if_false @SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6086
if 
  is_char_dead 100@
goto_if_false @SYN3_6047
print_now 'SYN3_27' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6047
if 
  is_char_dead 101@
goto_if_false @SYN3_6086
print_now 'SYN3_28' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6086
if 
  is_car_dead 34@
goto_if_false @SYN3_6125
print_now 'SYN3_19' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6278
if 
  is_car_dead 36@
goto_if_false @SYN3_6182
print_now 'SYN3_15' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6182
if 
  is_char_dead 37@
goto_if_false @SYN3_6221
print_now 'SYN3_16' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6221
if 
  138@ <> 1
goto_if_false @SYN3_6278
if 
  is_car_dead 35@
goto_if_false @SYN3_6278
print_now 'SYN3_14' {time} 4000 {flag} 0
goto @SYN3_19112

:SYN3_6278
if and
  138@ == 1
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_6540
95@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_6428
if and
  locate_car_3d 36@ {x} 45@ {y} 46@ {z} 47@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 45@ {y} 46@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_6421
139@ = 1
gosub @SYN3_15036
goto @SYN3_19130

:SYN3_6421
goto @SYN3_6540

:SYN3_6428
if and
  locate_car_3d 36@ {x} 45@ {y} 46@ {z} 47@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 45@ {y} 46@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_6540
task_car_drive_to_coord 37@ {vehicle} 36@ {x} 45@ {y} 46@ {z} 47@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
139@ = 1
gosub @SYN3_15036
goto @SYN3_19130

:SYN3_6540
goto @SYN3_1691

:SYN3_6547
request_model 440
request_model 173

:SYN3_6557
if or
  not has_model_loaded 440
  not has_model_loaded 173
goto_if_false @SYN3_6589
wait 0
goto @SYN3_6557

:SYN3_6589
36@ = create_car 440 {x} 38@ {y} 39@ {z} 40@
37@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 173
set_car_heading 36@ {heading} 41@
set_car_heavy 36@ {state} True
203@ = 1
lock_car_doors 36@ {lockStatus} CarLock.Locked
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} False
204@ = 1
set_can_burst_car_tyres 36@ {state} False
vehicle_can_be_targetted_by_hs_missile 36@ {state} False
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 468
return 

:SYN3_6701
if and
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_6963
98@ = open_sequence_task 
flush_route 
extend_route -1814.77 {y} -0.45 {z} 15.38
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route -1746.5699 {y} 306.18 {z} 6.08
extend_route -1858.6899 {y} 418.9 {z} 16.06
extend_route -1899.05 {y} 605.47 {z} 34.06
extend_route -2004.3101 {y} 605.61 {z} 34.06
extend_route -2004.29 {y} 320.22 {z} 34.04
extend_route -2146.6799 {y} 320.06 {z} 34.2
extend_route -2167.1299 {y} -70.2 {z} 34.21
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route 45@ {y} -70.33 {z} 34.22
extend_route 45@ {y} 46@ {z} 47@
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
close_sequence_task 98@
perform_sequence_task 37@ {sequence} 98@
clear_sequence_task 98@

:SYN3_6963
return 

:SYN3_6965
request_model 492
request_model 123
request_model 122
request_model 353

:SYN3_6983
if or
  not has_model_loaded 492
  not has_model_loaded 123
  not has_model_loaded 122
  not has_model_loaded 353
goto_if_false @SYN3_7023
wait 0
goto @SYN3_6983

:SYN3_7023
remove_blip 216@
61@ = create_char PedType.Mission2 {modelId} 123 {x} -2000.75 {y} 537.24 {z} 33.91
62@ = create_char PedType.Mission2 {modelId} 122 {x} -2007.75 {y} 543.24 {z} 33.91
63@ = create_char PedType.Mission2 {modelId} 123 {x} -2012.75 {y} 537.24 {z} 33.91
88@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 88@ {event} Event.GunAimedAt
97@ = 0

:SYN3_7121
if 
  3 > 97@
goto_if_false @SYN3_7230
set_char_decision_maker 61@(97@,3i) {handleOrTemplate} 88@
set_char_stay_in_same_place 61@(97@,3i) {state} True
give_weapon_to_char 61@(97@,3i) {weaponType} WeaponType.Mp5 {ammo} 99999
add_blip_for_char 61@(97@,3i) {var_handle} 220@(97@,3i)
set_char_only_damaged_by_player 61@(97@,3i) {state} True
149@(97@,3i) = 1
97@ += 1
goto @SYN3_7121

:SYN3_7230
58@ = create_car 492 {x} -2000.75 {y} 527.24 {z} 33.91
59@ = create_car 492 {x} -2007.75 {y} 533.24 {z} 33.91
60@ = create_car 492 {x} -2012.75 {y} 527.24 {z} 33.91
set_car_heading 58@ {heading} 70.0
set_car_heading 59@ {heading} 110.0
set_car_heading 60@ {heading} 250.0
97@ = 0

:SYN3_7336
if 
  3 > 97@
goto_if_false @SYN3_7437
car_set_idle 58@(97@,3i)
set_car_heavy 58@(97@,3i) {state} True
lock_car_doors 58@(97@,3i) {lockStatus} CarLock.Locked
add_blip_for_car 58@(97@,3i) {var_handle} 217@(97@,3i)
set_car_only_damaged_by_player 58@(97@,3i) {state} True
146@(97@,3i) = 1
97@ += 1
goto @SYN3_7336

:SYN3_7437
return 

:SYN3_7439
request_model 355

:SYN3_7444
if 
  not has_model_loaded 355
goto_if_false @SYN3_7471
wait 0
goto @SYN3_7444

:SYN3_7471
64@ = create_car 492 {x} -2085.74 {y} 314.74 {z} 33.97
65@ = create_car 492 {x} -2079.24 {y} 323.74 {z} 33.97
66@ = create_car 492 {x} -2085.74 {y} 326.74 {z} 33.97
set_car_heading 64@ {heading} 340.0
set_car_heading 65@ {heading} 20.0
set_car_heading 66@ {heading} 160.0
97@ = 0

:SYN3_7577
if 
  3 > 97@
goto_if_false @SYN3_7651
car_set_idle 64@(97@,3i)
set_car_heavy 64@(97@,3i) {state} True
lock_car_doors 64@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 64@(97@,3i) {state} True
97@ += 1
goto @SYN3_7577

:SYN3_7651
67@ = create_char PedType.Mission2 {modelId} 123 {x} -2075.74 {y} 314.74 {z} 33.97
68@ = create_char PedType.Mission2 {modelId} 122 {x} -2069.24 {y} 323.74 {z} 33.97
69@ = create_char PedType.Mission2 {modelId} 123 {x} -2075.74 {y} 326.74 {z} 33.97
70@ = create_char PedType.Mission2 {modelId} 122 {x} -2076.97 {y} 309.56 {z} 40.99
71@ = create_char PedType.Mission2 {modelId} 123 {x} -2073.97 {y} 309.56 {z} 40.99
72@ = create_char PedType.Mission2 {modelId} 122 {x} -2063.46 {y} 309.56 {z} 40.99
97@ = 0

:SYN3_7802
if 
  6 > 97@
goto_if_false @SYN3_7939
set_char_decision_maker 67@(97@,6i) {handleOrTemplate} 88@
set_char_stay_in_same_place 67@(97@,6i) {state} True
if 
  97@ >= 3
goto_if_false @SYN3_7884
give_weapon_to_char 67@(97@,6i) {weaponType} WeaponType.Ak47 {ammo} 99999
goto @SYN3_7914

:SYN3_7884
give_weapon_to_char 67@(97@,6i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_heading 67@(97@,6i) {heading} 270.0

:SYN3_7914
set_char_only_damaged_by_player 67@(97@,6i) {state} True
97@ += 1
goto @SYN3_7802

:SYN3_7939
return 

:SYN3_7941
73@ = create_car 492 {x} -2141.1201 {y} 146.06 {z} 34.07
74@ = create_car 492 {x} -2149.6201 {y} 152.06 {z} 34.07
75@ = create_car 492 {x} -2153.1201 {y} 146.06 {z} 34.07
set_car_heading 73@ {heading} 290.0
set_car_heading 74@ {heading} 70.0
set_car_heading 75@ {heading} 110.0
97@ = 0

:SYN3_8047
if 
  3 > 97@
goto_if_false @SYN3_8121
car_set_idle 73@(97@,3i)
set_car_heavy 73@(97@,3i) {state} True
lock_car_doors 73@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 73@(97@,3i) {state} True
97@ += 1
goto @SYN3_8047

:SYN3_8121
76@ = create_char PedType.Mission2 {modelId} 123 {x} -2141.1201 {y} 156.06 {z} 34.07
77@ = create_char PedType.Mission2 {modelId} 122 {x} -2149.6201 {y} 162.06 {z} 34.07
78@ = create_char PedType.Mission2 {modelId} 123 {x} -2153.1201 {y} 156.06 {z} 34.07
79@ = create_char PedType.Mission2 {modelId} 123 {x} -2135.6799 {y} 164.2 {z} 41.29
80@ = create_char PedType.Mission2 {modelId} 122 {x} -2135.6899 {y} 160.93 {z} 41.29
81@ = create_char PedType.Mission2 {modelId} 123 {x} -2135.24 {y} 153.77 {z} 40.72
97@ = 0

:SYN3_8272
if 
  6 > 97@
goto_if_false @SYN3_8409
set_char_decision_maker 76@(97@,6i) {handleOrTemplate} 88@
set_char_stay_in_same_place 76@(97@,6i) {state} True
if 
  97@ >= 3
goto_if_false @SYN3_8368
give_weapon_to_char 76@(97@,6i) {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_heading 76@(97@,6i) {heading} 90.0
goto @SYN3_8384

:SYN3_8368
give_weapon_to_char 76@(97@,6i) {weaponType} WeaponType.Mp5 {ammo} 99999

:SYN3_8384
set_char_only_damaged_by_player 76@(97@,6i) {state} True
97@ += 1
goto @SYN3_8272

:SYN3_8409
return 

:SYN3_8411
82@ = create_car 492 {x} -2161.4199 {y} 48.75 {z} 35.04
83@ = create_car 492 {x} -2169.4199 {y} 54.75 {z} 35.04
84@ = create_car 492 {x} -2173.4199 {y} 48.75 {z} 35.04
set_car_heading 82@ {heading} 70.0
set_car_heading 83@ {heading} 110.0
set_car_heading 84@ {heading} 250.0
97@ = 0

:SYN3_8517
if 
  3 > 97@
goto_if_false @SYN3_8591
car_set_idle 82@(97@,3i)
set_car_heavy 82@(97@,3i) {state} True
lock_car_doors 82@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 82@(97@,3i) {state} True
97@ += 1
goto @SYN3_8517

:SYN3_8591
85@ = create_char PedType.Mission2 {modelId} 123 {x} -2161.4199 {y} 58.75 {z} 35.04
86@ = create_char PedType.Mission2 {modelId} 122 {x} -2169.4199 {y} 64.75 {z} 35.04
87@ = create_char PedType.Mission2 {modelId} 123 {x} -2173.4199 {y} 58.75 {z} 35.04
97@ = 0

:SYN3_8670
if 
  3 > 97@
goto_if_false @SYN3_8752
set_char_decision_maker 85@(97@,3i) {handleOrTemplate} 88@
set_char_stay_in_same_place 85@(97@,3i) {state} True
give_weapon_to_char 85@(97@,3i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_only_damaged_by_player 85@(97@,3i) {state} True
97@ += 1
goto @SYN3_8670

:SYN3_8752
return 

:SYN3_8754
97@ = 0

:SYN3_8761
if 
  3 > 97@
goto_if_false @SYN3_8824
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_8810
freeze_car_position_and_dont_load_collision 58@(97@,3i) {state} True

:SYN3_8810
97@ += 1
goto @SYN3_8761

:SYN3_8824
97@ = 0

:SYN3_8831
if 
  3 > 97@
goto_if_false @SYN3_8894
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_8880
freeze_char_position_and_dont_load_collision 61@(97@,3i) {state} True

:SYN3_8880
97@ += 1
goto @SYN3_8831

:SYN3_8894
return 

:SYN3_8896
97@ = 0

:SYN3_8903
if 
  3 > 97@
goto_if_false @SYN3_8966
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_8952
freeze_car_position_and_dont_load_collision 64@(97@,3i) {state} True

:SYN3_8952
97@ += 1
goto @SYN3_8903

:SYN3_8966
97@ = 0

:SYN3_8973
if 
  6 > 97@
goto_if_false @SYN3_9036
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_9022
freeze_char_position_and_dont_load_collision 67@(97@,6i) {state} True

:SYN3_9022
97@ += 1
goto @SYN3_8973

:SYN3_9036
return 

:SYN3_9038
97@ = 0

:SYN3_9045
if 
  3 > 97@
goto_if_false @SYN3_9108
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_9094
freeze_car_position_and_dont_load_collision 73@(97@,3i) {state} True

:SYN3_9094
97@ += 1
goto @SYN3_9045

:SYN3_9108
97@ = 0

:SYN3_9115
if 
  6 > 97@
goto_if_false @SYN3_9178
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_9164
freeze_char_position_and_dont_load_collision 76@(97@,6i) {state} True

:SYN3_9164
97@ += 1
goto @SYN3_9115

:SYN3_9178
return 

:SYN3_9180
97@ = 0

:SYN3_9187
if 
  3 > 97@
goto_if_false @SYN3_9250
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_9236
freeze_car_position_and_dont_load_collision 82@(97@,3i) {state} True

:SYN3_9236
97@ += 1
goto @SYN3_9187

:SYN3_9250
97@ = 0

:SYN3_9257
if 
  3 > 97@
goto_if_false @SYN3_9320
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_9306
freeze_char_position_and_dont_load_collision 85@(97@,3i) {state} True

:SYN3_9306
97@ += 1
goto @SYN3_9257

:SYN3_9320
return 

:SYN3_9322
97@ = 0

:SYN3_9329
if 
  3 > 97@
goto_if_false @SYN3_9392
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_9378
freeze_car_position_and_dont_load_collision 58@(97@,3i) {state} False

:SYN3_9378
97@ += 1
goto @SYN3_9329

:SYN3_9392
97@ = 0

:SYN3_9399
if 
  3 > 97@
goto_if_false @SYN3_9462
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_9448
freeze_char_position_and_dont_load_collision 61@(97@,3i) {state} False

:SYN3_9448
97@ += 1
goto @SYN3_9399

:SYN3_9462
return 

:SYN3_9464
97@ = 0

:SYN3_9471
if 
  3 > 97@
goto_if_false @SYN3_9534
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_9520
freeze_car_position_and_dont_load_collision 64@(97@,3i) {state} False

:SYN3_9520
97@ += 1
goto @SYN3_9471

:SYN3_9534
97@ = 0

:SYN3_9541
if 
  6 > 97@
goto_if_false @SYN3_9604
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_9590
freeze_char_position_and_dont_load_collision 67@(97@,6i) {state} False

:SYN3_9590
97@ += 1
goto @SYN3_9541

:SYN3_9604
return 

:SYN3_9606
97@ = 0

:SYN3_9613
if 
  3 > 97@
goto_if_false @SYN3_9676
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_9662
freeze_car_position_and_dont_load_collision 73@(97@,3i) {state} False

:SYN3_9662
97@ += 1
goto @SYN3_9613

:SYN3_9676
97@ = 0

:SYN3_9683
if 
  6 > 97@
goto_if_false @SYN3_9746
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_9732
freeze_char_position_and_dont_load_collision 76@(97@,6i) {state} False

:SYN3_9732
97@ += 1
goto @SYN3_9683

:SYN3_9746
return 

:SYN3_9748
97@ = 0

:SYN3_9755
if 
  3 > 97@
goto_if_false @SYN3_9818
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_9804
freeze_car_position_and_dont_load_collision 82@(97@,3i) {state} False

:SYN3_9804
97@ += 1
goto @SYN3_9755

:SYN3_9818
97@ = 0

:SYN3_9825
if 
  3 > 97@
goto_if_false @SYN3_9888
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_9874
freeze_char_position_and_dont_load_collision 85@(97@,3i) {state} False

:SYN3_9874
97@ += 1
goto @SYN3_9825

:SYN3_9888
return 

:SYN3_9890
97@ = 0

:SYN3_9897
if 
  3 > 97@
goto_if_false @SYN3_9976
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_9962
add_blip_for_car 64@(97@,3i) {var_handle} 223@(97@,3i)
152@(97@,3i) = 1

:SYN3_9962
97@ += 1
goto @SYN3_9897

:SYN3_9976
97@ = 0

:SYN3_9983
if 
  6 > 97@
goto_if_false @SYN3_10062
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_10048
add_blip_for_char 67@(97@,6i) {var_handle} 226@(97@,6i)
155@(97@,6i) = 1

:SYN3_10048
97@ += 1
goto @SYN3_9983

:SYN3_10062
return 

:SYN3_10064
97@ = 0

:SYN3_10071
if 
  3 > 97@
goto_if_false @SYN3_10150
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_10136
add_blip_for_car 73@(97@,3i) {var_handle} 232@(97@,3i)
161@(97@,3i) = 1

:SYN3_10136
97@ += 1
goto @SYN3_10071

:SYN3_10150
97@ = 0

:SYN3_10157
if 
  6 > 97@
goto_if_false @SYN3_10236
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_10222
add_blip_for_char 76@(97@,6i) {var_handle} 235@(97@,6i)
164@(97@,6i) = 1

:SYN3_10222
97@ += 1
goto @SYN3_10157

:SYN3_10236
return 

:SYN3_10238
97@ = 0

:SYN3_10245
if 
  3 > 97@
goto_if_false @SYN3_10324
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_10310
add_blip_for_car 82@(97@,3i) {var_handle} 241@(97@,3i)
170@(97@,3i) = 1

:SYN3_10310
97@ += 1
goto @SYN3_10245

:SYN3_10324
97@ = 0

:SYN3_10331
if 
  3 > 97@
goto_if_false @SYN3_10410
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_10396
add_blip_for_char 85@(97@,3i) {var_handle} 244@(97@,3i)
173@(97@,3i) = 1

:SYN3_10396
97@ += 1
goto @SYN3_10331

:SYN3_10410
return 

:SYN3_10412
97@ = 0

:SYN3_10419
if 
  3 > 97@
goto_if_false @SYN3_10553
if and
  149@(97@,3i) == 1
  is_char_dead 61@(97@,3i)
goto_if_false @SYN3_10488
remove_blip 220@(97@,3i)
149@(97@,3i) = 0

:SYN3_10488
if and
  146@(97@,3i) == 1
  is_car_dead 58@(97@,3i)
goto_if_false @SYN3_10539
remove_blip 217@(97@,3i)
146@(97@,3i) = 0

:SYN3_10539
97@ += 1
goto @SYN3_10419

:SYN3_10553
97@ = 0

:SYN3_10560
if 
  6 > 97@
goto_if_false @SYN3_10643
if and
  155@(97@,6i) == 1
  is_char_dead 67@(97@,6i)
goto_if_false @SYN3_10629
remove_blip 226@(97@,6i)
155@(97@,6i) = 0

:SYN3_10629
97@ += 1
goto @SYN3_10560

:SYN3_10643
97@ = 0

:SYN3_10650
if 
  3 > 97@
goto_if_false @SYN3_10733
if and
  152@(97@,3i) == 1
  is_car_dead 64@(97@,3i)
goto_if_false @SYN3_10719
remove_blip 223@(97@,3i)
152@(97@,3i) = 0

:SYN3_10719
97@ += 1
goto @SYN3_10650

:SYN3_10733
97@ = 0

:SYN3_10740
if 
  6 > 97@
goto_if_false @SYN3_10823
if and
  164@(97@,6i) == 1
  is_char_dead 76@(97@,6i)
goto_if_false @SYN3_10809
remove_blip 235@(97@,6i)
164@(97@,6i) = 0

:SYN3_10809
97@ += 1
goto @SYN3_10740

:SYN3_10823
97@ = 0

:SYN3_10830
if 
  3 > 97@
goto_if_false @SYN3_10913
if and
  161@(97@,3i) == 1
  is_car_dead 73@(97@,3i)
goto_if_false @SYN3_10899
remove_blip 232@(97@,3i)
161@(97@,3i) = 0

:SYN3_10899
97@ += 1
goto @SYN3_10830

:SYN3_10913
97@ = 0

:SYN3_10920
if 
  3 > 97@
goto_if_false @SYN3_11054
if and
  173@(97@,3i) == 1
  is_char_dead 85@(97@,3i)
goto_if_false @SYN3_10989
remove_blip 244@(97@,3i)
173@(97@,3i) = 0

:SYN3_10989
if and
  170@(97@,3i) == 1
  is_car_dead 82@(97@,3i)
goto_if_false @SYN3_11040
remove_blip 241@(97@,3i)
170@(97@,3i) = 0

:SYN3_11040
97@ += 1
goto @SYN3_10920

:SYN3_11054
return 

:SYN3_11056
176@ = 1
97@ = 0

:SYN3_11070
if and
  3 > 97@
  176@ == 1
goto_if_false @SYN3_11163
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_11122
176@ = 0

:SYN3_11122
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_11149
176@ = 0

:SYN3_11149
97@ += 1
goto @SYN3_11070

:SYN3_11163
return 

:SYN3_11165
177@ = 1
97@ = 0

:SYN3_11179
if and
  6 > 97@
  177@ == 1
goto_if_false @SYN3_11245
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_11231
177@ = 0

:SYN3_11231
97@ += 1
goto @SYN3_11179

:SYN3_11245
97@ = 0

:SYN3_11252
if and
  3 > 97@
  177@ == 1
goto_if_false @SYN3_11318
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_11304
177@ = 0

:SYN3_11304
97@ += 1
goto @SYN3_11252

:SYN3_11318
return 

:SYN3_11320
178@ = 1
97@ = 0

:SYN3_11334
if and
  6 > 97@
  178@ == 1
goto_if_false @SYN3_11400
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_11386
178@ = 0

:SYN3_11386
97@ += 1
goto @SYN3_11334

:SYN3_11400
97@ = 0

:SYN3_11407
if and
  3 > 97@
  178@ == 1
goto_if_false @SYN3_11473
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_11459
178@ = 0

:SYN3_11459
97@ += 1
goto @SYN3_11407

:SYN3_11473
return 

:SYN3_11475
179@ = 1
97@ = 0

:SYN3_11489
if and
  3 > 97@
  179@ == 1
goto_if_false @SYN3_11582
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_11541
179@ = 0

:SYN3_11541
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_11568
179@ = 0

:SYN3_11568
97@ += 1
goto @SYN3_11489

:SYN3_11582
return 

:SYN3_11584
97@ = 0

:SYN3_11591
if 
  3 > 97@
goto_if_false @SYN3_11663
remove_blip 220@(97@,3i)
remove_blip 217@(97@,3i)
149@(97@,3i) = 0
146@(97@,3i) = 0
97@ += 1
goto @SYN3_11591

:SYN3_11663
return 

:SYN3_11665
97@ = 0

:SYN3_11672
if 
  6 > 97@
goto_if_false @SYN3_11724
remove_blip 226@(97@,6i)
155@(97@,6i) = 0
97@ += 1
goto @SYN3_11672

:SYN3_11724
97@ = 0

:SYN3_11731
if 
  3 > 97@
goto_if_false @SYN3_11783
remove_blip 223@(97@,3i)
152@(97@,3i) = 0
97@ += 1
goto @SYN3_11731

:SYN3_11783
return 

:SYN3_11785
97@ = 0

:SYN3_11792
if 
  6 > 97@
goto_if_false @SYN3_11844
remove_blip 235@(97@,6i)
164@(97@,6i) = 0
97@ += 1
goto @SYN3_11792

:SYN3_11844
97@ = 0

:SYN3_11851
if 
  3 > 97@
goto_if_false @SYN3_11903
remove_blip 232@(97@,3i)
161@(97@,3i) = 0
97@ += 1
goto @SYN3_11851

:SYN3_11903
return 

:SYN3_11905
97@ = 0

:SYN3_11912
if 
  3 > 97@
goto_if_false @SYN3_11984
remove_blip 244@(97@,3i)
remove_blip 241@(97@,3i)
173@(97@,3i) = 0
170@(97@,3i) = 0
97@ += 1
goto @SYN3_11912

:SYN3_11984
return 

:SYN3_11986
if 
  not is_car_dead 36@
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12093 {caseNum1} 0 {caseLabel1} @SYN3_12065 {caseNum2} 1 {caseLabel2} @SYN3_12079 {caseNum3} 2 {caseLabel3} @SYN3_12079 {caseNum4} 3 {caseLabel4} @SYN3_12065 {caseNum5} -1 {caseLabel5} @SYN3_12107 {caseNum6} -1 {caseLabel6} @SYN3_12107 {caseNum7} -1 {caseLabel7} @SYN3_12107

:SYN3_12065
250@ = 3
goto @SYN3_12107

:SYN3_12079
250@ = 6
goto @SYN3_12107

:SYN3_12093
198@ = -1
goto @SYN3_12107

:SYN3_12107
if 
  198@ == -1
goto_if_false @SYN3_12127
return 

:SYN3_12127
97@ = 0

:SYN3_12134
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_12529
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12508 {caseNum1} 0 {caseLabel1} @SYN3_12216 {caseNum2} 1 {caseLabel2} @SYN3_12289 {caseNum3} 2 {caseLabel3} @SYN3_12362 {caseNum4} 3 {caseLabel4} @SYN3_12435 {caseNum5} -1 {caseLabel5} @SYN3_12515 {caseNum6} -1 {caseLabel6} @SYN3_12515 {caseNum7} -1 {caseLabel7} @SYN3_12515

:SYN3_12216
set_lvar_int_to_lvar_int 251@(97@,6i) = 61@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 180@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12282
set_lvar_int_to_lvar_int 257@(97@,3i) = 58@(97@,3i)

:SYN3_12282
goto @SYN3_12515

:SYN3_12289
set_lvar_int_to_lvar_int 251@(97@,6i) = 67@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 183@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12355
set_lvar_int_to_lvar_int 257@(97@,3i) = 64@(97@,3i)

:SYN3_12355
goto @SYN3_12515

:SYN3_12362
set_lvar_int_to_lvar_int 251@(97@,6i) = 76@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 189@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12428
set_lvar_int_to_lvar_int 257@(97@,3i) = 73@(97@,3i)

:SYN3_12428
goto @SYN3_12515

:SYN3_12435
set_lvar_int_to_lvar_int 251@(97@,6i) = 85@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 195@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12501
set_lvar_int_to_lvar_int 257@(97@,3i) = 82@(97@,3i)

:SYN3_12501
goto @SYN3_12515

:SYN3_12508
goto @SYN3_12515

:SYN3_12515
97@ += 1
goto @SYN3_12134

:SYN3_12529
if 
  199@(198@,4i) <> 1
goto_if_false @SYN3_12558
gosub @SYN3_13496

:SYN3_12558
38@, 39@, 40@ = get_car_coordinates 36@
48@, 49@, 50@ = get_char_coordinates $scplayer
97@ = 0

:SYN3_12593
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13292
if 
  not is_char_dead 251@(97@,6i)
goto_if_false @SYN3_13278
51@, 52@, 53@ = get_char_coordinates 251@(97@,6i)
54@ = get_distance_between_coords_2d 38@ {fromY} 39@ {toX} 51@ {toZ} 52@
if 
  35.0 > 54@
goto_if_false @SYN3_12784
if 
  260@(97@,6i) <> 3
goto_if_false @SYN3_12777
set_char_accuracy 251@(97@,6i) {accuracy} 85
95@ = get_script_task_status 251@(97@,6i) {taskId} 1650
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12766
task_destroy_car 251@(97@,6i) {vehicle} 36@

:SYN3_12766
260@(97@,6i) = 3

:SYN3_12777
goto @SYN3_13278

:SYN3_12784
55@ = get_distance_between_coords_2d 48@ {fromY} 49@ {toX} 51@ {toZ} 52@
if and
  35.0 > 55@
  199@(198@,4i) == 1
goto_if_false @SYN3_12929
if 
  260@(97@,6i) <> 2
goto_if_false @SYN3_12922
set_char_accuracy 251@(97@,6i) {accuracy} 60
95@ = get_script_task_status 251@(97@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12911
task_kill_char_on_foot 251@(97@,6i) {target} $scplayer

:SYN3_12911
260@(97@,6i) = 2

:SYN3_12922
goto @SYN3_13278

:SYN3_12929
if 
  199@(198@,4i) == 1
goto_if_false @SYN3_13078
if 
  260@(97@,6i) <> 1
goto_if_false @SYN3_12995
set_char_accuracy 251@(97@,6i) {accuracy} 60
260@(97@,6i) = 1

:SYN3_12995
if 
  260@(97@,6i) == 1
goto_if_false @SYN3_13071
95@ = get_script_task_status 251@(97@,6i) {taskId} 1640
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13071
task_shoot_at_coord 251@(97@,6i) {x} 48@ {y} 49@ {z} 50@ {time} 10000

:SYN3_13071
goto @SYN3_13278

:SYN3_13078
if 
  260@(97@,6i) <> 0
goto_if_false @SYN3_13122
set_char_accuracy 251@(97@,6i) {accuracy} 60
260@(97@,6i) = 0

:SYN3_13122
if 
  260@(97@,6i) == 0
goto_if_false @SYN3_13278
if 
  35.0 > 55@
goto_if_false @SYN3_13222
95@ = get_script_task_status 251@(97@,6i) {taskId} 1589
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13215
task_aim_gun_at_char 251@(97@,6i) {target} $scplayer {time} 9999999

:SYN3_13215
goto @SYN3_13278

:SYN3_13222
95@ = get_script_task_status 251@(97@,6i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13278
task_aim_gun_at_coord 251@(97@,6i) {x} 48@ {y} 49@ {z} 50@ {time} 9999999

:SYN3_13278
97@ += 1
goto @SYN3_12593

:SYN3_13292
97@ = 0

:SYN3_13299
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_13473 {caseNum1} 0 {caseLabel1} @SYN3_13381 {caseNum2} 1 {caseLabel2} @SYN3_13404 {caseNum3} 2 {caseLabel3} @SYN3_13427 {caseNum4} 3 {caseLabel4} @SYN3_13450 {caseNum5} -1 {caseLabel5} @SYN3_13480 {caseNum6} -1 {caseLabel6} @SYN3_13480 {caseNum7} -1 {caseLabel7} @SYN3_13480

:SYN3_13381
set_lvar_int_to_lvar_int 180@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13404
set_lvar_int_to_lvar_int 183@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13427
set_lvar_int_to_lvar_int 189@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13450
set_lvar_int_to_lvar_int 195@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13473
goto @SYN3_13480

:SYN3_13480
97@ += 1
goto @SYN3_13299

:SYN3_13494
return 

:SYN3_13496
97@ = 0

:SYN3_13503
if and
  is_int_lvar_greater_than_int_lvar 250@ > 97@
  199@(198@,4i) <> 1
goto_if_false @SYN3_13832
if 
  not is_char_dead 251@(97@,6i)
goto_if_false @SYN3_13747
96@ = get_char_highest_priority_event 251@(97@,6i)
$player_x, $player_y, $player_z = get_char_coordinates 251@(97@,6i)
set_lvar_float_to_var_float 266@ = $player_x
266@ -= 10.0
set_lvar_float_to_var_float 267@ = $player_y
267@ -= 10.0
set_lvar_float_to_var_float 268@ = $player_z
268@ -= 10.0
set_lvar_float_to_var_float 269@ = $player_x
269@ += 10.0
set_lvar_float_to_var_float 270@ = $player_y
270@ += 10.0
set_lvar_float_to_var_float 271@ = $player_z
271@ += 10.0
if or
  is_int_lvar_equal_to_constant 96@ == 49
  is_projectile_in_area 266@ {leftBottomY} 267@ {leftBottomZ} 268@ {rightTopX} 269@ {rightTopY} 270@ {rightTopZ} 271@
goto_if_false @SYN3_13740
199@(198@,4i) = 1

:SYN3_13740
goto @SYN3_13758

:SYN3_13747
199@(198@,4i) = 1

:SYN3_13758
if 
  3 > 97@
goto_if_false @SYN3_13818
if and
  is_car_dead 257@(97@,3i)
  199@(198@,4i) <> 1
goto_if_false @SYN3_13818
199@(198@,4i) = 1

:SYN3_13818
97@ += 1
goto @SYN3_13503

:SYN3_13832
return 

:SYN3_13834
if and
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_14961
if 
  57@ == 1
goto_if_false @SYN3_14092
gosub @SYN3_11056
if 
  176@ == 1
goto_if_false @SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13930
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_13930
goto @SYN3_14092

:SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13969
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_13969
97@ = 0

:SYN3_13976
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14092
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_14078
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 58@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14078
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14078
97@ += 1
goto @SYN3_13976

:SYN3_14092
if 
  57@ == 2
goto_if_false @SYN3_14329
gosub @SYN3_11165
if 
  177@ == 1
goto_if_false @SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14167
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14167
goto @SYN3_14329

:SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14206
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14206
97@ = 0

:SYN3_14213
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14329
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_14315
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 64@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14315
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14315
97@ += 1
goto @SYN3_14213

:SYN3_14329
if 
  57@ == 3
goto_if_false @SYN3_14566
gosub @SYN3_11320
if 
  178@ == 1
goto_if_false @SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14404
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14404
goto @SYN3_14566

:SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14443
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14443
97@ = 0

:SYN3_14450
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14566
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_14552
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 73@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14552
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14552
97@ += 1
goto @SYN3_14450

:SYN3_14566
if 
  57@ == 4
goto_if_false @SYN3_14803
gosub @SYN3_11475
if 
  179@ == 1
goto_if_false @SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14641
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14641
goto @SYN3_14803

:SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14680
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14680
97@ = 0

:SYN3_14687
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14803
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_14789
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 82@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14789
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14789
97@ += 1
goto @SYN3_14687

:SYN3_14803
if and
  57@ == -1
  203@ <> 1
goto_if_false @SYN3_14842
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14842
if 
  203@ == 1
goto_if_false @SYN3_14914
set_car_driving_style 36@ {drivingStyle} DrivingMode.AvoidCars
if 
  204@ <> 1
goto_if_false @SYN3_14907
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} False
204@ = 1

:SYN3_14907
goto @SYN3_14961

:SYN3_14914
set_car_driving_style 36@ {drivingStyle} DrivingMode.SlowDownForCars
if 
  204@ == 1
goto_if_false @SYN3_14961
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
204@ = 0

:SYN3_14961
return 

:SYN3_14963
if 
  not is_car_dead 35@
goto_if_false @SYN3_15034
if and
  not is_char_in_car $scplayer {vehicle} 35@
  140@ <> 1
goto_if_false @SYN3_15034
214@ = add_blip_for_car 35@
set_blip_as_friendly 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.MarkerOnly
140@ = 1

:SYN3_15034
return 

:SYN3_15036
do_fade 1000 {direction} Fade.Out

:SYN3_15043
if 
  get_fading_status 
goto_if_false @SYN3_15067
wait 0
goto @SYN3_15043

:SYN3_15067
set_player_control $player1 {state} False
clear_area -2170.5801 {y} -206.92 {z} 34.57 {radius} 100.0 {clearParticles} False
request_collision -2170.5801 {y} -206.92
load_scene_in_direction -2170.5801 {y} -206.92 {z} 34.57 {heading} 270.0
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 36@
goto_if_false @SYN3_15187
set_car_coordinates 36@ {x} -2170.5801 {y} -206.92 {z} 34.57
set_car_heading 36@ {heading} 91.13

:SYN3_15187
if 
  not is_char_dead 37@
goto_if_false @SYN3_15281
clear_char_tasks_immediately 37@
if 
  is_char_in_any_car 37@
goto_if_false @SYN3_15251
warp_char_from_car_to_coord 37@ {x} -2170.45 {y} -209.19 {z} 34.37
goto @SYN3_15271

:SYN3_15251
set_char_coordinates 37@ {x} -2170.45 {y} -209.19 {z} 34.37

:SYN3_15271
set_char_heading 37@ {heading} 207.63

:SYN3_15281
272@ = 0
if 
  210@ == 1
goto_if_false @SYN3_15391
if 
  not is_car_dead 99@
goto_if_false @SYN3_15368
if or
  is_char_in_car $scplayer {vehicle} 99@
  locate_char_any_means_car_2d $scplayer {vehicle} 99@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_15368
272@ = 1

:SYN3_15368
if 
  272@ == 0
goto_if_false @SYN3_15391
delete_car 99@

:SYN3_15391
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_15439
warp_char_from_car_to_coord $scplayer {x} -2169.4399 {y} -210.34 {z} 34.37
goto @SYN3_15459

:SYN3_15439
set_char_coordinates $scplayer {x} -2169.4399 {y} -210.34 {z} 34.37

:SYN3_15459
set_char_heading $scplayer {heading} 48.2
if and
  272@ == 1
  not is_car_dead 99@
goto_if_false @SYN3_15560
if 
  locate_car_2d 99@ {x} -2170.45 {y} -209.19 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_15560
set_car_coordinates 99@ {x} -2154.28 {y} -275.18 {z} -100.0
set_car_heading 99@ {heading} 270.0

:SYN3_15560
wait 1000
switch_widescreen True
if 
  not is_char_dead 37@
goto_if_false @SYN3_15605
task_look_at_char $scplayer {target} 37@ {time} -2
task_look_at_char 37@ {target} $scplayer {time} -2

:SYN3_15605
set_fixed_camera_position -2172.3501 {y} -210.03 {z} 35.67 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2170.27 {y} -210.1 {z} 35.4 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN3_15663
if 
  get_fading_status 
goto_if_false @SYN3_15687
wait 0
goto @SYN3_15663

:SYN3_15687
133@ = 1
skip_cutscene_start_internal @SYN3_15921
132@ = 2
gosub @SYN3_17788
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN3_15751
if 
  1 > 129@
goto_if_false @SYN3_15827
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15820
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_15820
goto @SYN3_15751

:SYN3_15827
stop_char_facial_talk $scplayer

:SYN3_15832
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_15909
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15902
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_15902
goto @SYN3_15832

:SYN3_15909
stop_char_facial_talk $scplayer
133@ = 0

:SYN3_15921
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:SYN3_15930
if 
  get_fading_status 
goto_if_false @SYN3_15954
wait 0
goto @SYN3_15930

:SYN3_15954
if 
  133@ == 1
goto_if_false @SYN3_15972

:SYN3_15972
stop_char_facial_talk $scplayer
clear_look_at $scplayer
clear_char_tasks_immediately $scplayer
clear_prints 
delete_car 36@
delete_char 37@
clear_area -2127.0801 {y} -87.75 {z} 35.32 {radius} 20.0 {clearParticles} False
request_collision -2127.0801 {y} -87.75
load_scene -2127.0801 {y} -87.75 {z} 35.32
if and
  272@ == 1
  not is_car_dead 99@
goto_if_false @SYN3_16120
set_car_coordinates 99@ {x} -2127.0801 {y} -87.75 {z} -100.0
set_car_heading 99@ {heading} 0.0
warp_char_into_car $scplayer {vehicle} 99@
goto @SYN3_16150

:SYN3_16120
set_char_coordinates $scplayer {x} -2127.0801 {y} -87.75 {z} -100.0
set_char_heading $scplayer {heading} 0.0

:SYN3_16150
remove_blip 214@
remove_blip 247@
remove_blip 215@
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 355
switch_roads_back_to_original -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_back_to_original -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_back_to_original -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_back_to_original -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
wait 1000
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SYN3_16364
if 
  get_fading_status 
goto_if_false @SYN3_16388
wait 0
goto @SYN3_16364

:SYN3_16388
return 

:SYN3_16390
do_fade 1000 {direction} Fade.Out

:SYN3_16397
if 
  get_fading_status 
goto_if_false @SYN3_16421
wait 0
goto @SYN3_16397

:SYN3_16421
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 42@ {y} 43@ {z} 44@ {radius} 100.0 {clearParticles} False
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 36@
goto_if_false @SYN3_16521
set_car_coordinates 36@ {x} 38@ {y} 39@ {z} 40@
set_car_heading 36@ {heading} 41@

:SYN3_16521
if 
  not is_car_dead 35@
goto_if_false @SYN3_16567
set_car_coordinates 35@ {x} -1830.16 {y} -17.64 {z} 14.79
set_car_heading 35@ {heading} 268.78

:SYN3_16567
if 
  not is_car_dead 34@
goto_if_false @SYN3_16636
if 
  not is_char_in_any_car $scplayer
goto_if_false @SYN3_16607
warp_char_into_car $scplayer {vehicle} 34@

:SYN3_16607
set_car_coordinates 34@ {x} 42@ {y} 43@ {z} 44@
set_car_heading 34@ {heading} 90.0
car_set_idle 34@

:SYN3_16636
request_animation "CAR_CHAT"

:SYN3_16648
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN3_16682
wait 0
goto @SYN3_16648

:SYN3_16682
132@ = 1
gosub @SYN3_17788
if 
  not is_char_dead 100@
goto_if_false @SYN3_16780
task_play_anim 100@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 101@
goto_if_false @SYN3_16780
task_look_at_char 101@ {target} 100@ {time} -2

:SYN3_16780
set_fixed_camera_position -1815.98 {y} 3.07 {z} 15.31 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1815.5 {y} 2.94 {z} 15.25 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN3_16838
if 
  get_fading_status 
goto_if_false @SYN3_16862
wait 0
goto @SYN3_16838

:SYN3_16862
133@ = 1
skip_cutscene_start_internal @SYN3_17540

:SYN3_16876
if 
  1 > 129@
goto_if_false @SYN3_16957
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_16950
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_16950
goto @SYN3_16876

:SYN3_16957
if 
  not is_char_dead 100@
goto_if_false @SYN3_16988
stop_char_facial_talk 100@
task_look_at_char $scplayer {target} 100@ {time} -1

:SYN3_16988
if 
  2 > 129@
goto_if_false @SYN3_17069
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17062
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17062
goto @SYN3_16988

:SYN3_17069
if 
  not is_char_dead 100@
goto_if_false @SYN3_17090
stop_char_facial_talk 100@

:SYN3_17090
if 
  3 > 129@
goto_if_false @SYN3_17171
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17164
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17164
goto @SYN3_17090

:SYN3_17171
if 
  not is_char_dead 100@
goto_if_false @SYN3_17192
stop_char_facial_talk 100@

:SYN3_17192
clear_look_at $scplayer
wait 200
task_leave_any_car $scplayer
wait 500
if 
  not is_char_dead 100@
goto_if_false @SYN3_17238
task_look_at_char 100@ {target} $scplayer {time} -1

:SYN3_17238
wait 2000
if 
  not is_char_dead 101@
goto_if_false @SYN3_17264
clear_look_at 101@

:SYN3_17264
129@ = 5

:SYN3_17271
if 
  6 > 129@
goto_if_false @SYN3_17352
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17345
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17345
goto @SYN3_17271

:SYN3_17352
if 
  not is_char_dead 100@
goto_if_false @SYN3_17373
stop_char_facial_talk 100@

:SYN3_17373
if 
  not is_char_dead 101@
goto_if_false @SYN3_17399
task_look_at_char 101@ {target} $scplayer {time} -1

:SYN3_17399
wait 1000

:SYN3_17404
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_17486
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 101@
goto_if_false @SYN3_17479
start_char_facial_talk 101@ {duration} 10000
131@ = 1

:SYN3_17479
goto @SYN3_17404

:SYN3_17486
if 
  not is_char_dead 101@
goto_if_false @SYN3_17507
stop_char_facial_talk 101@

:SYN3_17507
wait 1000
if 
  not is_char_dead 100@
goto_if_false @SYN3_17533
clear_look_at 100@

:SYN3_17533
133@ = 0

:SYN3_17540
skip_cutscene_end 
do_fade 700 {direction} Fade.Out

:SYN3_17549
if 
  get_fading_status 
goto_if_false @SYN3_17573
wait 0
goto @SYN3_17549

:SYN3_17573
if 
  133@ == 1
goto_if_false @SYN3_17591

:SYN3_17591
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_look_at $scplayer
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_17651
warp_char_from_car_to_coord $scplayer {x} -1816.1899 {y} -1.19 {z} 14.15
goto @SYN3_17671

:SYN3_17651
set_char_coordinates $scplayer {x} -1816.1899 {y} -1.19 {z} 14.15

:SYN3_17671
set_char_heading $scplayer {heading} 132.83
delete_car 34@
delete_char 100@
delete_char 101@
unload_special_character 1
unload_special_character 2
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_animation "CAR_CHAT"
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_max_wanted_level 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SYN3_17762
if 
  get_fading_status 
goto_if_false @SYN3_17786
wait 0
goto @SYN3_17762

:SYN3_17786
return 

:SYN3_17788
switch_start 132@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SYN3_18267 {caseNum1} 0 {caseLabel1} @SYN3_17851 {caseNum2} 1 {caseLabel2} @SYN3_18041 {caseNum3} 2 {caseLabel3} @SYN3_18209 {caseNum4} -1 {caseLabel4} @SYN3_18274 {caseNum5} -1 {caseLabel5} @SYN3_18274 {caseNum6} -1 {caseLabel6} @SYN3_18274 {caseNum7} -1 {caseLabel7} @SYN3_18274

:SYN3_17851
set_lvar_text_label 104@s = 'MJIZ01A'
set_lvar_text_label 106@s = 'MJIZ01B'
set_lvar_text_label 108@s = 'MJIZ01C'
set_lvar_text_label 110@s = 'MJIZ01D'
set_lvar_text_label 112@s = 'MJIZ01E'
set_lvar_text_label 114@s = 'MJIZ01F'
set_lvar_text_label 116@s = 'MJIZ01G'
set_lvar_text_label 118@s = 'MJIZ01H'
set_lvar_int_to_constant 120@ = 16000
set_lvar_int_to_constant 121@ = 16010
set_lvar_int_to_constant 122@ = 16001
set_lvar_int_to_constant 123@ = 16002
set_lvar_int_to_constant 124@ = 16003
set_lvar_int_to_constant 125@ = 16004
set_lvar_int_to_constant 126@ = 16005
set_lvar_int_to_constant 127@ = 16011
130@ = 8
goto @SYN3_18274

:SYN3_18041
set_lvar_text_label 104@s = 'SYN3_CA'
set_lvar_text_label 106@s = 'SYN3_CB'
set_lvar_text_label 108@s = 'SYN3_CC'
set_lvar_text_label 110@s = 'SYN3_CD'
set_lvar_text_label 112@s = 'SYN3_CE'
set_lvar_text_label 114@s = 'SYN3_CF'
set_lvar_text_label 116@s = 'SYN3_CG'
set_lvar_int_to_constant 120@ = 7604
set_lvar_int_to_constant 121@ = 7605
set_lvar_int_to_constant 122@ = 7606
set_lvar_int_to_constant 123@ = 7607
set_lvar_int_to_constant 124@ = 7608
set_lvar_int_to_constant 125@ = 7609
set_lvar_int_to_constant 126@ = 7618
130@ = 7
goto @SYN3_18274

:SYN3_18209
set_lvar_text_label 104@s = 'SYN3_EA'
set_lvar_text_label 106@s = 'SYN3_EB'
set_lvar_int_to_constant 120@ = 7622
set_lvar_int_to_constant 121@ = 7623
130@ = 2
goto @SYN3_18274

:SYN3_18267
goto @SYN3_18274

:SYN3_18274
128@ = 0
129@ = 0
131@ = 0
return 

:SYN3_18297
if or
  128@ == 0
  128@ == 1
goto_if_false @SYN3_18367
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_18367
if 
  TIMERB > 1000
goto_if_false @SYN3_18367
gosub @SYN3_18432

:SYN3_18367
if 
  128@ == 2
goto_if_false @SYN3_18430
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN3_18430
128@ = 0
129@ += 1
131@ = 0
clear_prints 
TIMERB = 0

:SYN3_18430
return 

:SYN3_18432
if 
  128@ == 0
goto_if_false @SYN3_18468
load_mission_audio MissionAudioSlot.Slot1 {audioId} 120@(129@,8i)
128@ = 1

:SYN3_18468
if 
  128@ == 1
goto_if_false @SYN3_18526
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN3_18526
print_now 104@(129@,8s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
128@ = 2

:SYN3_18526
return 

:SYN3_18528
clear_mission_audio MissionAudioSlot.Slot2
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18665 {caseNum1} 0 {caseLabel1} @SYN3_18595 {caseNum2} 1 {caseLabel2} @SYN3_18609 {caseNum3} 2 {caseLabel3} @SYN3_18623 {caseNum4} 3 {caseLabel4} @SYN3_18637 {caseNum5} 4 {caseLabel5} @SYN3_18651 {caseNum6} -1 {caseLabel6} @SYN3_18672 {caseNum7} -1 {caseLabel7} @SYN3_18672

:SYN3_18595
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26402
goto @SYN3_18672

:SYN3_18609
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26401
goto @SYN3_18672

:SYN3_18623
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26403
goto @SYN3_18672

:SYN3_18637
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26400
goto @SYN3_18672

:SYN3_18651
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26404
goto @SYN3_18672

:SYN3_18665
goto @SYN3_18672

:SYN3_18672
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SYN3_18681
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SYN3_18785
wait 0
if or
  is_char_dead 100@
  is_char_dead 101@
  is_car_dead 34@
  is_car_dead 36@
  is_char_dead 37@
  is_car_dead 35@
goto_if_false @SYN3_18743
return 

:SYN3_18743
if and
  135@ <> 1
  has_pickup_been_collected 89@
goto_if_false @SYN3_18778
remove_blip 247@
135@ = 1

:SYN3_18778
goto @SYN3_18681

:SYN3_18785
play_mission_audio MissionAudioSlot.Slot2
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18967 {caseNum1} 0 {caseLabel1} @SYN3_18852 {caseNum2} 1 {caseLabel2} @SYN3_18875 {caseNum3} 2 {caseLabel3} @SYN3_18898 {caseNum4} 3 {caseLabel4} @SYN3_18921 {caseNum5} 4 {caseLabel5} @SYN3_18944 {caseNum6} -1 {caseLabel6} @SYN3_18974 {caseNum7} -1 {caseLabel7} @SYN3_18974

:SYN3_18852
print_now 'TORX_AC' {time} 3000 {flag} 1
goto @SYN3_18974

:SYN3_18875
print_now 'TORX_AB' {time} 3000 {flag} 1
goto @SYN3_18974

:SYN3_18898
print_now 'TORX_AD' {time} 3000 {flag} 1
goto @SYN3_18974

:SYN3_18921
print_now 'TORX_AA' {time} 3000 {flag} 1
goto @SYN3_18974

:SYN3_18944
print_now 'TORX_AE' {time} 3000 {flag} 1
goto @SYN3_18974

:SYN3_18967
goto @SYN3_18974

:SYN3_18974
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SYN3_19078
wait 0
if or
  is_char_dead 100@
  is_char_dead 101@
  is_car_dead 34@
  is_car_dead 36@
  is_char_dead 37@
  is_car_dead 35@
goto_if_false @SYN3_19036
return 

:SYN3_19036
if and
  135@ <> 1
  has_pickup_been_collected 89@
goto_if_false @SYN3_19071
remove_blip 247@
135@ = 1

:SYN3_19071
goto @SYN3_18974

:SYN3_19078
103@ += 1
if 
  103@ > 4
goto_if_false @SYN3_19110
103@ = 0

:SYN3_19110
return 

:SYN3_19112
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN3_19130
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_3'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 9000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 9000
award_player_mission_respect 25
set_max_wanted_level 248@
alter_wanted_level_no_drop $player1 {wantedLevel} 3
play_mission_passed_tune 1
remove_blip $synd_contact_blip
return 

:SYN3_19206
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed #BODYARMOUR
remove_pickup 89@
remove_pickup 90@
remove_pickup 249@
remove_blip 212@
remove_blip 213@
remove_blip 214@
remove_blip 247@
remove_blip 215@
remove_blip 216@
gosub @SYN3_11584
gosub @SYN3_11665
gosub @SYN3_11785
gosub @SYN3_11905
clear_sequence_task 98@
if 
  is_player_playing $player1
goto_if_false @SYN3_19376
set_everyone_ignore_player $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:SYN3_19376
unload_special_character 1
unload_special_character 2
remove_char_elegantly 100@
remove_char_elegantly 101@
remove_animation "CAR_CHAT"
switch_roads_back_to_original -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_back_to_original -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_back_to_original -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_back_to_original -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains True
remove_decision_maker 88@
remove_decision_maker 102@
if 
  not is_car_dead 34@
goto_if_false @SYN3_19571
freeze_car_position 34@ {state} False

:SYN3_19571
set_max_wanted_level 248@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 61---------------
// Originally: Ice Cold Killa

:SYND4
script_name 'SYND4'
gosub @SYND4_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYND4_38
gosub @SYND4_11948

:SYND4_38
gosub @SYND4_12325
terminate_this_script 

:SYND4_47
$girl_health = 0.0
$off1_X = 0.0
$off_X = 0.0
$off1_Y = 0.0
$off_Y = 0.0
$syn4_offsetX = 0.0
$syn4_offsetY = 0
$syn4_rnd = 0
$s4_has_phone = 0
$s4_j_health = 0
117@ = 0
97@ = 2
load_mission_text 'SYN4'
switch_entry_exit 'PDOMES' {state} True
switch_entry_exit 'PDOMES2' {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYND4_201
if 
  get_fading_status 
goto_if_false @SYND4_225
wait 0
goto @SYND4_201

:SYND4_225
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'SYND_4A'

:SYND4_264
if 
  not has_cutscene_loaded 
goto_if_false @SYND4_288
wait 0
goto @SYND4_264

:SYND4_288
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SYND4_305
if 
  not has_cutscene_finished 
goto_if_false @SYND4_329
wait 0
goto @SYND4_305

:SYND4_329
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SYND4_343
if 
  get_fading_status 
goto_if_false @SYND4_367
wait 0
goto @SYND4_343

:SYND4_367
clear_cutscene 
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_428
set_char_coordinates_dont_warp_gang $scplayer {x} -2031.197 {y} 161.1839 {z} 27.8516
set_char_heading $scplayer {heading} 268.0468
set_camera_behind_player 

:SYND4_428
set_fading_colour 0 {g} 0 {b} 0
request_model 347
request_model 163
request_model 164
request_model 409
request_model 352
request_model 575
request_model 409
request_model 71
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
55@ = load_char_decision_maker DecisionMakerType.Empty
47@ = load_char_decision_maker DecisionMakerType.Tough
88@ = load_char_decision_maker DecisionMakerType.Tough

:SYND4_520
if or
  not has_model_loaded 347
  not has_model_loaded 163
  not has_model_loaded 164
  not has_model_loaded 409
  not has_model_loaded 352
goto_if_false @SYND4_567
wait 0
goto @SYND4_520

:SYND4_567
if or
  not has_model_loaded 409
  not has_model_loaded 575
  not has_model_loaded 71
goto_if_false @SYND4_603
wait 0
goto @SYND4_567

:SYND4_603
load_scene_in_direction -2031.197 {y} 161.1839 {z} 27.8359 {heading} 268.0468
clear_area -2624.5491 {y} 1412.131 {z} 6.1094 {radius} 10.0 {clearParticles} True
52@ = create_group DefaultTaskAllocator.StandStill
53@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker 52@ {handleOrTemplate} 53@
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_739
58@ = open_sequence_task 
flush_route 
extend_route -2643.9929 {y} 1405.895 {z} 905.2734
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
flush_route 
close_sequence_task 58@

:SYND4_739
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_915
120@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2664.2859 {y} 1420.9041 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 120@
121@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2662.241 {y} 1418.222 {z} 905.277 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 121@
122@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2671.8579 {y} 1420.603 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 122@
123@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2667.2209 {y} 1421.774 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 123@

:SYND4_915
72@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2674.1709 {y} 1394.553 {z} 917.3582 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 94.4524
set_sequence_to_repeat 72@ {state} True
close_sequence_task 72@
81@ = open_sequence_task 
flush_route 
extend_route -2666.1421 {y} 1420.576 {z} 905.277
extend_route -2654.3301 {y} 1420.092 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
close_sequence_task 81@
73@ = open_sequence_task 
flush_route 
extend_route -2663.897 {y} 1420.509 {z} 905.2812
extend_route -2655.542 {y} 1418.905 {z} 905.2812
extend_route -2648.7451 {y} 1416.988 {z} 905.2812
extend_route -2645.2759 {y} 1410.547 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 73@
67@ = open_sequence_task 
flush_route 
extend_route -2627.8311 {y} 1404.959 {z} 905.4609
extend_route -2627.5139 {y} 1406.6071 {z} 905.4609
extend_route -2635.9241 {y} 1408.306 {z} 905.4609
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
task_pause -1 {time} 4000
flush_route 
extend_route -2629.4509 {y} 1406.7729 {z} 905.4609
extend_route -2626.7151 {y} 1403.41 {z} 905.4609
extend_route -2629.2241 {y} 1402.585 {z} 905.4598
extend_route -2639.5129 {y} 1399.569 {z} 911.4133
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
close_sequence_task 67@
57@ = open_sequence_task 
flush_route 
extend_route -2663.0239 {y} 1430.271 {z} 911.3984
extend_route -2677.8411 {y} 1429.663 {z} 911.3921
extend_route -2688.7571 {y} 1426.88 {z} 905.4531
extend_route -2686.4929 {y} 1422.207 {z} 905.4531
extend_route -2677.769 {y} 1421.948 {z} 905.4531
extend_route -2664.3181 {y} 1423.618 {z} 905.2734
extend_route -2651.408 {y} 1423.601 {z} 905.2734
extend_route -2642.1011 {y} 1416.098 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
extend_route -2633.106 {y} 1415.7209 {z} 905.4531
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
close_sequence_task 57@
42@ = open_sequence_task 
task_look_about -1 {time} 4000
task_pause -1 {time} 1000
task_scratch_head -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
68@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
set_sequence_to_repeat 68@ {state} True
close_sequence_task 68@
62@ = create_car 409 {x} -2634.061 {y} 1395.498 {z} 6.1186
set_car_heading 62@ {heading} 3.5285
change_car_colour 62@ {color1} 0 {color2} 0
set_can_burst_car_tyres 62@ {state} False
set_car_health 62@ {health} 2000
63@ = create_car 409 {x} -2613.48 {y} 1416.568 {z} 6.1432
set_car_heading 63@ {heading} 272.3133
change_car_colour 63@ {color1} 0 {color2} 0
set_can_burst_car_tyres 63@ {state} False
set_car_health 63@ {health} 2000
custom_plate_for_next_car 575 {text} "HO_2_HO_"
64@ = create_car 575 {x} -2611.4709 {y} 1409.036 {z} 6.1335
set_car_heading 64@ {heading} 274.4727
change_car_colour 64@ {color1} 4 {color2} 4
set_car_health 64@ {health} 1000
124@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2622.981 {y} 1413.1071 {z} 6.1137 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 196.019
set_sequence_to_repeat 124@ {state} True
close_sequence_task 124@
125@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2626.4089 {y} 1411.96 {z} 6.1094 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 190.6977
set_sequence_to_repeat 125@ {state} True
close_sequence_task 125@
49@ = create_char PedType.Mission2 {modelId} 163 {x} -2622.981 {y} 1413.1071 {z} 6.1137
set_char_heading 49@ {heading} 196.019
50@ = create_char PedType.Mission2 {modelId} 164 {x} -2626.4089 {y} 1411.96 {z} 6.1094
set_char_heading 50@ {heading} 190.6977
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 49@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 49@ {accuracy} 90
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 50@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 50@ {accuracy} 90
set_char_decision_maker 49@ {handleOrTemplate} 47@
set_char_decision_maker 50@ {handleOrTemplate} 47@
perform_sequence_task 49@ {sequence} 124@
perform_sequence_task 50@ {sequence} 125@
59@ = add_blip_for_coord -2623.937 {y} 1410.79 {z} 6.1152
60@ = add_blip_for_coord -2636.385 {y} 1402.485 {z} 905.4609
set_blip_entry_exit 60@ {x} -2661.74 {y} 1423.483 {radius} 100.0
change_blip_display 60@ {display} BlipDisplay.Neither
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2049
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 200
set_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced

:SYND4_2049
TIMERA = 0
set_fading_colour 0 {g} 0 {b} 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
print_now 'SYN4_20' {time} 9000 {flag} 1

:SYND4_2095
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_3480
wait 0
gosub @SYND4_12831
gosub @SYND4_13645
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYND4_2151
goto @SYND4_12163

:SYND4_2151
if 
  117@ == 0
goto_if_false @SYND4_2369
if 
  not is_char_dead 49@
goto_if_false @SYND4_2269
if 
  is_player_targetting_char $player1 {handle} 49@
goto_if_false @SYND4_2269
if 
  not is_char_dead 49@
goto_if_false @SYND4_2233
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_2233
if 
  not is_char_dead 50@
goto_if_false @SYND4_2262
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_2262
117@ = 1

:SYND4_2269
if 
  not is_char_dead 50@
goto_if_false @SYND4_2369
if 
  is_player_targetting_char $player1 {handle} 50@
goto_if_false @SYND4_2369
if 
  not is_char_dead 49@
goto_if_false @SYND4_2333
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_2333
if 
  not is_char_dead 50@
goto_if_false @SYND4_2362
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_2362
117@ = 1

:SYND4_2369
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_3418
if 
  locate_char_on_foot_3d $scplayer {x} -2623.937 {y} 1410.79 {z} 6.1152 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @SYND4_3418
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2456
set_player_control $player1 {state} False

:SYND4_2456
apply_brakes_to_players_car $player1 {state} True
set_char_heading $scplayer {heading} 0.0
remove_blip 59@
gosub @SYND4_12699
if and
  not is_char_dead 49@
  not is_char_dead 50@
goto_if_false @SYND4_3179
if and
  not has_char_been_damaged_by_char 49@ {handle} $scplayer
  not has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @SYND4_3179
task_look_at_char 50@ {target} $scplayer {time} 6000
gosub @SYND4_12699
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2597
set_char_coordinates_dont_warp_gang $scplayer {x} -2624.1121 {y} 1410.473 {z} 6.1149
set_char_heading $scplayer {heading} 13.4662

:SYND4_2597
task_look_at_char 49@ {target} $scplayer {time} 6000
set_fixed_camera_position -2623.7151 {y} 1409.642 {z} 7.7873 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2623.8711 {y} 1410.6281 {z} 7.7269 {switchStyle} SwitchType.JumpCut
wait 1000
$syn4_offsetY = generate_random_int_in_range 0 {max} 3
switch_start $syn4_offsetY {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYND4_3111 {caseNum1} 0 {caseLabel1} @SYND4_2736 {caseNum2} 1 {caseLabel2} @SYND4_2861 {caseNum3} 2 {caseLabel3} @SYND4_2986 {caseNum4} -1 {caseLabel4} @SYND4_3111 {caseNum5} -1 {caseLabel5} @SYND4_3111 {caseNum6} -1 {caseLabel6} @SYND4_3111 {caseNum7} -1 {caseLabel7} @SYND4_3111

:SYND4_2736
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 16611

:SYND4_2747
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_2773
wait 0
goto @SYND4_2747

:SYND4_2773
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BA' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_2800
if 
  4000 > TIMERB
goto_if_false @SYND4_2854
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_2847
goto @SYND4_3343

:SYND4_2847
goto @SYND4_2800

:SYND4_2854
goto @SYND4_3111

:SYND4_2861
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 16612

:SYND4_2872
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_2898
wait 0
goto @SYND4_2872

:SYND4_2898
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BB' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_2925
if 
  4000 > TIMERB
goto_if_false @SYND4_2979
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_2972
goto @SYND4_3343

:SYND4_2972
goto @SYND4_2925

:SYND4_2979
goto @SYND4_3111

:SYND4_2986
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 16613

:SYND4_2997
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_3023
wait 0
goto @SYND4_2997

:SYND4_3023
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BC' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_3050
if 
  4000 > TIMERB
goto_if_false @SYND4_3104
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3097
goto @SYND4_3343

:SYND4_3097
goto @SYND4_3050

:SYND4_3104
goto @SYND4_3111

:SYND4_3111
TIMERB = 0

:SYND4_3118
if 
  1000 > TIMERB
goto_if_false @SYND4_3179
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3172
70@ = 1
goto @SYND4_3343

:SYND4_3172
goto @SYND4_3118

:SYND4_3179
set_fixed_camera_position -2671.127 {y} 1432.594 {z} 25.4663 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2670.4299 {y} 1431.881 {z} 25.3871 {switchStyle} SwitchType.JumpCut
print_now 'SYN4_12' {time} 5000 {flag} 1
create_birds 2682.4199 {yFrom} 1420.2371 {zFrom} 28.0 {xTo} -2630.365 {yTo} 1411.699 {zTo} 28.0 {quantity} 3 {type} 0
TIMERB = 0

:SYND4_3289
if 
  5000 > TIMERB
goto_if_false @SYND4_3343
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3336
goto @SYND4_3343

:SYND4_3336
goto @SYND4_3289

:SYND4_3343
gosub @SYND4_12730
61@ = add_blip_for_coord -2661.9241 {y} 1424.278 {z} 22.8906
if 
  70@ == 1
goto_if_false @SYND4_3404
print_now 'SYN4_12' {time} 5000 {flag} 1

:SYND4_3404
apply_brakes_to_players_car $player1 {state} False
goto @SYND4_3487

:SYND4_3418
if 
  locate_char_any_means_3d $scplayer {x} -2660.145 {y} 1419.2111 {z} 22.8906 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYND4_3473
goto @SYND4_3487

:SYND4_3473
goto @SYND4_2095

:SYND4_3480
goto @SYND4_11948

:SYND4_3487
request_model 28
request_model 30
request_model 40
request_model 63
request_model 19
request_model 352
request_model 214
request_model 346
load_special_character 1 {modelName} 'JIZZY'
request_model 246
request_animation "SWAT"

:SYND4_3548
if or
  not has_model_loaded 28
  not has_model_loaded 30
  not has_model_loaded 40
  not has_model_loaded 63
  not has_model_loaded 19
goto_if_false @SYND4_3590
wait 0
goto @SYND4_3548

:SYND4_3590
if or
  not has_model_loaded 352
  not has_model_loaded 214
  not has_model_loaded 346
  not has_special_character_loaded 1
  not has_animation_loaded "SWAT"
  not has_model_loaded 246
goto_if_false @SYND4_3644
wait 0
goto @SYND4_3590

:SYND4_3644
if 
goto_if_false @SYND4_3666
wait 0
goto @SYND4_3644

:SYND4_3666
39@ = create_char PedType.Special {modelId} 290 {x} -2669.127 {y} 1426.9189 {z} 905.4609
set_char_area_visible 39@ {areaId} 3
set_anim_group_for_char 39@ {animGroup} "GANG1"
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Player1
set_char_heading 39@ {heading} 238.0256
set_sense_range 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 55@
44@ = create_char PedType.CivFemale {modelId} 63 {x} -2667.656 {y} 1425.854 {z} 905.4609
set_char_area_visible 44@ {areaId} 3
set_char_heading 44@ {heading} 76.4221
set_char_never_targetted 44@ {state} True
task_chat_with_char 39@ {other} 44@ {leadSpeaker} True {_p4} 1
task_chat_with_char 44@ {other} 39@ {leadSpeaker} False {_p4} 1
43@ = add_blip_for_char 39@
change_blip_display 43@ {display} BlipDisplay.Neither
79@ = open_sequence_task 
task_sit_down -1 {time} 200000
task_look_about -1 {time} 2000
set_sequence_to_repeat 79@ {state} True
close_sequence_task 79@
80@ = open_sequence_task 
task_pause -1 {time} 1000
perform_sequence_task -1 {sequence} 79@
close_sequence_task 80@
34@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.2361 {y} 1429.884 {z} 905.4609
set_char_heading 34@ {heading} 133.1702
perform_sequence_task 34@ {sequence} 80@
35@ = create_char PedType.Mission1 {modelId} 30 {x} -2667.1021 {y} 1430.024 {z} 905.4609
set_char_heading 35@ {heading} 180.876
perform_sequence_task 35@ {sequence} 79@
36@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.064 {y} 1428.402 {z} 905.4609
set_char_heading 36@ {heading} 106.0457
perform_sequence_task 36@ {sequence} 79@
37@ = create_char PedType.Mission1 {modelId} 63 {x} -2668.1169 {y} 1429.933 {z} 905.4609
set_char_heading 37@ {heading} 180.876
perform_sequence_task 37@ {sequence} 80@
112@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2655.5081 {y} 1410.566 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 263.3926
task_pause -1 {time} 2000
task_go_to_coord_any_means -1 {x} -2655.8921 {y} 1406.675 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 181.7338
task_pause -1 {time} 2000
set_sequence_to_repeat 112@ {state} True
close_sequence_task 112@
113@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2660.2681 {y} 1413.959 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 348.451
task_pause -1 {time} 2000
task_go_to_coord_any_means -1 {x} -2662.8411 {y} 1413.7321 {z} 905.2808 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 96.5734
task_pause -1 {time} 2000
set_sequence_to_repeat 113@ {state} True
close_sequence_task 113@
102@ = create_char PedType.Mission3 {modelId} 214 {x} -2655.5081 {y} 1410.566 {z} 905.2734
set_char_heading 102@ {heading} 263.3926
103@ = create_char PedType.Mission3 {modelId} 214 {x} -2660.2681 {y} 1413.959 {z} 905.2734
set_char_heading 103@ {heading} 348.451
perform_sequence_task 102@ {sequence} 112@
perform_sequence_task 103@ {sequence} 113@
104@ = create_char PedType.Mission3 {modelId} 28 {x} -2657.269 {y} 1403.575 {z} 905.2812
set_char_heading 104@ {heading} 271.0479
105@ = create_char PedType.Mission3 {modelId} 63 {x} -2654.6169 {y} 1404.656 {z} 905.2812
set_char_heading 105@ {heading} 87.3589
task_chat_with_char 104@ {other} 105@ {leadSpeaker} True {_p4} 1
task_chat_with_char 105@ {other} 104@ {leadSpeaker} True {_p4} 1
40@ = 0

:SYND4_4433
if 
  not is_char_dead 34@(40@,5i)
goto_if_false @SYND4_4523
set_char_area_visible 34@(40@,5i) {areaId} 3
set_char_is_target_priority 34@(40@,5i) {state} True
give_weapon_to_char 34@(40@,5i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 34@(40@,5i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 34@(40@,5i) {accuracy} 70
set_char_decision_maker 34@(40@,5i) {handleOrTemplate} 55@

:SYND4_4523
if 
  not is_char_dead 102@(40@,10i)
goto_if_false @SYND4_4554
set_char_area_visible 102@(40@,10i) {areaId} 3

:SYND4_4554
40@ += 1
  40@ >= 4
goto_if_false @SYND4_4433
$onmission = 1
register_mission_given 
54@ = add_blip_for_coord -2655.075 {y} 1431.7889 {z} 912.4016
set_blip_entry_exit 54@ {x} -2661.74 {y} 1423.483 {radius} 100.0
change_blip_display 54@ {display} BlipDisplay.Neither
set_camera_behind_player 
flush_route 
extend_route -2653.217 {y} 1424.8669 {z} 906.7266
TIMERA = 0

:SYND4_4659
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5230
wait 0
if 
  117@ == 0
goto_if_false @SYND4_4897
if 
  not is_char_dead 49@
goto_if_false @SYND4_4797
if 
  is_player_targetting_char $player1 {handle} 49@
goto_if_false @SYND4_4797
if 
  not is_char_dead 49@
goto_if_false @SYND4_4761
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_4761
if 
  not is_char_dead 50@
goto_if_false @SYND4_4790
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_4790
117@ = 1

:SYND4_4797
if 
  not is_char_dead 50@
goto_if_false @SYND4_4897
if 
  is_player_targetting_char $player1 {handle} 50@
goto_if_false @SYND4_4897
if 
  not is_char_dead 49@
goto_if_false @SYND4_4861
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_4861
if 
  not is_char_dead 50@
goto_if_false @SYND4_4890
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_4890
117@ = 1

:SYND4_4897
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYND4_4919
goto @SYND4_12163

:SYND4_4919
gosub @SYND4_12831
gosub @SYND4_13645
if and
  locate_char_any_means_3d $scplayer {x} -2661.01 {y} 1415.384 {z} 921.1953 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  48@ == 0
goto_if_false @SYND4_5223
switch_entry_exit 'PDOMES' {state} False
if 
  does_blip_exist 59@
goto_if_false @SYND4_5022
remove_blip 59@

:SYND4_5022
remove_blip 61@
45@ = add_blip_for_coord -2667.3679 {y} 1427.4351 {z} 905.4609
set_blip_entry_exit 45@ {x} -2661.74 {y} 1423.483 {radius} 100.0
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5118
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.0549 {y} 1416.019 {z} 921.1953
set_char_heading $scplayer {heading} 180.0

:SYND4_5118
48@ = 1
if 
  not is_char_dead 49@
goto_if_false @SYND4_5146
delete_char 49@

:SYND4_5146
if 
  not is_char_dead 50@
goto_if_false @SYND4_5167
delete_char 50@

:SYND4_5167
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5193
set_char_heading $scplayer {heading} 197.6688

:SYND4_5193
print_now 'SYN4_99' {time} 4000 {flag} 1
set_wanted_multiplier 0.0
goto @SYND4_5237

:SYND4_5223
goto @SYND4_4659

:SYND4_5230
goto @SYND4_11948

:SYND4_5237
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11941
wait 0
gosub @SYND4_12831
gosub @SYND4_13645
if 
  46@ == 0
goto_if_false @SYND4_7620
if 
  83@ == 1
goto_if_false @SYND4_5321
115@ = 1
goto @SYND4_11948

:SYND4_5321
40@ = 0

:SYND4_5328
if 
  has_char_been_damaged_by_char 34@(40@,5i) {handle} $scplayer
goto_if_false @SYND4_5381
print_now 'SYN4_08' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5381
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5328
if 
  has_char_been_damaged_by_char 39@ {handle} $scplayer
goto_if_false @SYND4_5451
print_now 'SYN4_06' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5451
if 
  has_char_been_damaged_by_char 44@ {handle} $scplayer
goto_if_false @SYND4_5500
print_now 'SYN4_08' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5500
if 
  locate_char_any_means_3d $scplayer {x} -2668.7161 {y} 1421.8459 {z} 905.277 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYND4_7620
switch_entry_exit 'PDOMES2' {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SYND4_5576
if 
  get_fading_status 
goto_if_false @SYND4_5600
wait 0
goto @SYND4_5576

:SYND4_5600
40@ = 0

:SYND4_5607
delete_char 34@(40@,5i)
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5607
if 
  not is_char_dead 44@
goto_if_false @SYND4_5658
delete_char 44@

:SYND4_5658
if 
  does_blip_exist 43@
goto_if_false @SYND4_5679
remove_blip 43@

:SYND4_5679
if 
  not is_char_dead 39@
goto_if_false @SYND4_5700
delete_char 39@

:SYND4_5700
load_cutscene 'SYND_4B'

:SYND4_5711
if 
  not has_cutscene_loaded 
goto_if_false @SYND4_5735
wait 0
goto @SYND4_5711

:SYND4_5735
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYND4_5744
if 
  not has_cutscene_finished 
goto_if_false @SYND4_5768
wait 0
goto @SYND4_5744

:SYND4_5768
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYND4_5783
if 
  get_fading_status 
goto_if_false @SYND4_5807
wait 0
goto @SYND4_5783

:SYND4_5807
gosub @SYND4_12699
39@ = create_char PedType.Special {modelId} 290 {x} -2669.127 {y} 1426.9189 {z} 905.4609
set_char_area_visible 39@ {areaId} 3
set_anim_group_for_char 39@ {animGroup} "GANG1"
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Player1
set_char_heading 39@ {heading} 238.0256
set_sense_range 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 55@
34@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.2361 {y} 1429.884 {z} 905.4609
set_char_heading 34@ {heading} 133.1702
perform_sequence_task 34@ {sequence} 80@
35@ = create_char PedType.Mission1 {modelId} 30 {x} -2667.1021 {y} 1430.024 {z} 905.4609
set_char_heading 35@ {heading} 180.876
perform_sequence_task 35@ {sequence} 79@
36@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.064 {y} 1428.402 {z} 905.4609
set_char_heading 36@ {heading} 106.0457
perform_sequence_task 36@ {sequence} 79@
37@ = create_char PedType.Mission1 {modelId} 63 {x} -2668.1169 {y} 1429.933 {z} 905.4609
set_char_heading 37@ {heading} 180.876
perform_sequence_task 37@ {sequence} 80@
43@ = add_blip_for_char 39@
change_blip_display 43@ {display} BlipDisplay.Neither
unload_special_character 1
40@ = 0

:SYND4_6088
set_char_area_visible 34@(40@,5i) {areaId} 3
give_weapon_to_char 34@(40@,5i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 34@(40@,5i) {weaponType} WeaponType.MicroUzi
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6088
if 
  not is_char_dead 39@
goto_if_false @SYND4_6202
set_fixed_camera_position -2669.571 {y} 1410.871 {z} 907.8965 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 39@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:SYND4_6202
87@ = create_char PedType.Mission1 {modelId} 163 {x} -2667.1521 {y} 1421.553 {z} 905.2812
set_char_heading 87@ {heading} 275.4244
task_toggle_ped_threat_scanner 87@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_area_visible 87@ {areaId} 3
wait 100
do_fade 0 {direction} Fade.In

:SYND4_6265
if 
  get_fading_status 
goto_if_false @SYND4_6289
wait 0
goto @SYND4_6265

:SYND4_6289
print_now 'SYN4_05' {time} 4000 {flag} 1
if 
  not is_char_dead 87@
goto_if_false @SYND4_6329
perform_sequence_task 87@ {sequence} 73@

:SYND4_6329
40@ = 0

:SYND4_6336
if 
  not is_char_dead 102@(40@,10i)
goto_if_false @SYND4_6376
clear_char_tasks_immediately 102@(40@,10i)
task_duck 102@(40@,10i) {time} -2

:SYND4_6376
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6336
if 
  not is_char_dead 39@
goto_if_false @SYND4_6487
clear_char_tasks 39@
set_char_coordinates_dont_warp_gang 39@ {x} -2664.4619 {y} 1421.766 {z} 905.277
set_char_heading 39@ {heading} 249.6271
perform_sequence_task 39@ {sequence} 73@
add_armour_to_char 39@ {amount} 150
set_char_health 39@ {health} 300
set_char_max_health 39@ {maxHealth} 300
set_char_suffers_critical_hits 39@ {state} False

:SYND4_6487
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_6540
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} -2666.6379 {y} 1410.3051 {z} 905.2812
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:SYND4_6540
wait 1000
TIMERB = 0

:SYND4_6552
if 
  3000 > TIMERB
goto_if_false @SYND4_6606
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_6599
goto @SYND4_6606

:SYND4_6599
goto @SYND4_6552

:SYND4_6606
gosub @SYND4_12730
128@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2639.2771 {y} 1409.022 {z} 905.4646 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 63.4408
close_sequence_task 128@
126@ = open_sequence_task 
perform_sequence_task -1 {sequence} 128@
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 126@ {state} True
close_sequence_task 126@
127@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2639.3521 {y} 1402.766 {z} 905.4646 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 73.286
close_sequence_task 127@
129@ = open_sequence_task 
perform_sequence_task -1 {sequence} 127@
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 129@ {state} True
close_sequence_task 129@
130@ = create_char PedType.Mission1 {modelId} 163 {x} -2639.2771 {y} 1409.022 {z} 905.4646
set_char_area_visible 130@ {areaId} 1
set_char_heading 130@ {heading} 63.4408
set_char_decision_maker 130@ {handleOrTemplate} 55@
perform_sequence_task 130@ {sequence} 126@
131@ = create_char PedType.Mission1 {modelId} 164 {x} -2639.3521 {y} 1402.766 {z} 905.4646
set_char_area_visible 131@ {areaId} 1
set_char_heading 131@ {heading} 73.286
set_char_decision_maker 131@ {handleOrTemplate} 55@
perform_sequence_task 131@ {sequence} 129@
give_weapon_to_char 130@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 130@ {weaponType} WeaponType.MicroUzi
give_weapon_to_char 131@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 131@ {weaponType} WeaponType.MicroUzi
if 
  not is_char_dead 34@
goto_if_false @SYND4_7325
set_char_coordinates_dont_warp_gang 34@ {x} -2671.761 {y} 1420.303 {z} 905.2812
set_char_heading 34@ {heading} 214.6866

:SYND4_7325
if 
  not is_char_dead 35@
goto_if_false @SYND4_7371
set_char_coordinates_dont_warp_gang 35@ {x} -2665.095 {y} 1421.339 {z} 905.2812
set_char_heading 35@ {heading} 167.6077

:SYND4_7371
if 
  not is_char_dead 39@
goto_if_false @SYND4_7443
clear_char_tasks_immediately 39@
change_blip_display 43@ {display} BlipDisplay.Neither
set_char_coordinates_dont_warp_gang 39@ {x} -2621.4651 {y} 1411.338 {z} 6.1094
set_char_heading 39@ {heading} 277.734
set_char_area_visible 39@ {areaId} 0
74@ = 1

:SYND4_7443
if 
  not is_char_dead 87@
goto_if_false @SYND4_7501
clear_char_tasks_immediately 87@
set_char_coordinates_dont_warp_gang 87@ {x} -2625.8359 {y} 1404.75 {z} 6.0938
set_char_heading 87@ {heading} 279.9147
set_char_area_visible 87@ {areaId} 0

:SYND4_7501
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
40@ = 0

:SYND4_7516
if 
  not is_char_dead 34@(40@,5i)
goto_if_false @SYND4_7569
clear_char_tasks_immediately 34@(40@,5i)
task_kill_char_on_foot 34@(40@,5i) {target} $scplayer
set_char_decision_maker 34@(40@,5i) {handleOrTemplate} 47@

:SYND4_7569
40@ += 1
  40@ >= 4
goto_if_false @SYND4_7516
change_blip_display 60@ {display} BlipDisplay.Both
change_blip_display 45@ {display} BlipDisplay.Neither
set_camera_behind_player 
41@ = 1
46@ = 1

:SYND4_7620
if 
  locate_char_any_means_3d $scplayer {x} -2640.998 {y} 1406.275 {z} 905.4609 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYND4_7754
if and
  not is_char_dead 130@
  98@ == 0
goto_if_false @SYND4_7711
clear_char_tasks_immediately 130@
task_kill_char_on_foot 130@ {target} $scplayer
98@ = 1

:SYND4_7711
if and
  not is_char_dead 131@
  99@ == 0
goto_if_false @SYND4_7754
clear_char_tasks_immediately 131@
task_kill_char_on_foot 131@ {target} $scplayer
99@ = 1

:SYND4_7754
if 
  46@ == 1
goto_if_false @SYND4_11322
if 
  41@ == 1
goto_if_false @SYND4_9162
if and
  is_char_dead 39@
  85@ == 0
goto_if_false @SYND4_7841
if 
  does_blip_exist 60@
goto_if_false @SYND4_7834
remove_blip 60@

:SYND4_7834
goto @SYND4_12163

:SYND4_7841
if 
  not is_char_dead 39@
goto_if_false @SYND4_7984
if and
  locate_char_any_means_3d 39@ {x} -2636.385 {y} 1402.485 {z} 905.4609 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  74@ == 0
goto_if_false @SYND4_7984
if 
  not is_char_dead 39@
goto_if_false @SYND4_7984
clear_char_tasks 39@
change_blip_display 43@ {display} BlipDisplay.Neither
set_char_coordinates_dont_warp_gang 39@ {x} -2621.4651 {y} 1411.338 {z} 6.1094
set_char_heading 39@ {heading} 277.734
set_char_area_visible 39@ {areaId} 0
74@ = 1

:SYND4_7984
if or
  locate_char_any_means_3d $scplayer {x} -2624.8 {y} 1411.54 {z} 6.1015 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2661.8501 {y} 1426.39 {z} 22.8985 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYND4_9162
gosub @SYND4_12765
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
mark_road_node_as_dont_wander -2686.415 {y} 1235.572 {z} 54.4297
mark_road_node_as_dont_wander -2671.2981 {y} 1236.4919 {z} 54.4297
if 
  is_car_dead 64@
goto_if_false @SYND4_8297
delete_car 64@
clear_area -2611.4709 {y} 1409.036 {z} 6.1335 {radius} 20.0 {clearParticles} True
request_model 448
request_model 155

:SYND4_8191
if or
  not has_model_loaded 448
  not has_model_loaded 155
goto_if_false @SYND4_8223
wait 0
goto @SYND4_8191

:SYND4_8223
64@ = create_car 448 {x} -2611.4709 {y} 1409.036 {z} 6.1335
set_car_heading 64@ {heading} 274.4727
132@ = create_char_inside_car 64@ {pedType} PedType.CivMale {modelId} 155
delete_char 87@
if 
  not is_char_dead 39@
goto_if_false @SYND4_8297
set_char_can_be_knocked_off_bike 39@ {stayOnBike} 3

:SYND4_8297
75@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 64@ {time} 5000
task_pause -1 {time} 1000
task_car_drive_wander -1 {vehicle} 64@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 75@
76@ = open_sequence_task 
task_leave_car -1 {vehicle} 64@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
change_car_colour 64@ {color1} 4 {color2} 4
clear_area -2621.8101 {y} 1398.744 {z} 6.086 {radius} 20.0 {clearParticles} True
remove_blip 60@
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_9162
set_char_area_visible $scplayer {areaId} 0
force_weather_now WeatherType.FoggySf
set_area_visible 0
set_camera_behind_player 
if 
  not is_char_dead 39@
goto_if_false @SYND4_8479
set_char_coordinates_dont_warp_gang 39@ {x} -2624.4851 {y} 1411.353 {z} 6.1015
set_char_heading 39@ {heading} 267.9166

:SYND4_8479
if 
  not is_char_dead 87@
goto_if_false @SYND4_8569
clear_char_tasks_immediately 87@
set_char_coordinates_dont_warp_gang 87@ {x} -2620.604 {y} 1406.97 {z} 6.1016
set_char_heading 87@ {heading} 277.7697
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 87@ {weaponType} WeaponType.Pistol
set_char_decision_maker 87@ {handleOrTemplate} 88@
set_char_accuracy 87@ {accuracy} 30
set_char_shoot_rate 87@ {rate} 30

:SYND4_8569
delete_char 44@
40@ = 0

:SYND4_8581
delete_char 34@(40@,5i)
40@ += 1
  40@ >= 4
goto_if_false @SYND4_8581
gosub @SYND4_12699
if and
  not is_char_dead 39@
  not is_car_dead 64@
goto_if_false @SYND4_8703
set_fixed_camera_position -2626.019 {y} 1411.502 {z} 9.1763 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2625.0591 {y} 1411.35 {z} 8.9421 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 39@
perform_sequence_task 39@ {sequence} 75@

:SYND4_8703
if 
  not is_char_dead 87@
goto_if_false @SYND4_8737
clear_char_tasks_immediately 87@
task_enter_car_as_passenger 87@ {vehicle} 64@ {time} 5000 {seat} SeatId.BikeRear

:SYND4_8737
gosub @SYND4_12798
TIMERB = 0

:SYND4_8751
if 
  4000 > TIMERB
goto_if_false @SYND4_8803
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_char_dead 132@
goto_if_false @SYND4_8796

:SYND4_8796
goto @SYND4_8751

:SYND4_8803
85@ = 1
gosub @SYND4_12730
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_8863
set_char_coordinates_dont_warp_gang $scplayer {x} -2627.1001 {y} 1410.399 {z} 6.1015
set_char_heading $scplayer {heading} 279.1925

:SYND4_8863
133@ = open_sequence_task 
task_pause -1 {time} 4000
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 30
set_sequence_to_repeat 133@ {state} True
close_sequence_task 133@
if 
  not is_car_dead 64@
goto_if_false @SYND4_9116
if and
  not is_char_dead 87@
  not is_char_dead 39@
goto_if_false @SYND4_9007
if 
  not is_char_in_car 87@ {vehicle} 64@
goto_if_false @SYND4_8988
warp_char_into_car_as_passenger 87@ {handle} 64@ {seat} SeatId.BikeRear

:SYND4_8988
task_toggle_ped_threat_scanner 87@ {onFoot} True {inCar} True {duringScriptTask} True
perform_sequence_task 87@ {sequence} 133@

:SYND4_9007
if and
  not is_char_dead 39@
  not is_car_dead 64@
goto_if_false @SYND4_9116
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 39@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 39@ {accuracy} 90
if 
  not is_char_in_car 39@ {vehicle} 64@
goto_if_false @SYND4_9116
if 
  not is_char_dead 132@
goto_if_false @SYND4_9108
if 
  is_char_in_any_car 132@
goto_if_false @SYND4_9108
delete_char 132@

:SYND4_9108
warp_char_into_car 39@ {vehicle} 64@

:SYND4_9116
clear_prints 
change_blip_display 43@ {display} BlipDisplay.Both
print_now 'SYN4_02' {time} 10000 {flag} 1
TIMERA = 0
set_wanted_multiplier 1.0
41@ = 2

:SYND4_9162
if 
  not is_char_dead 39@
goto_if_false @SYND4_9332
$off1_X, $off1_Y, $girl_health = get_char_coordinates 39@
if 
  is_char_in_any_car 39@
goto_if_false @SYND4_9216
$car = store_car_char_is_in_no_save 39@

:SYND4_9216
$s4_limo_hlth = get_char_highest_priority_event 39@
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 7
goto_if_false @SYND4_9278
clear_char_tasks 39@
task_flee_char_any_means 39@ {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0

:SYND4_9278
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 17
goto_if_false @SYND4_9332
clear_char_tasks 39@
task_flee_char_any_means 39@ {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0

:SYND4_9332
if 
  not is_char_dead 87@
goto_if_false @SYND4_9418
$s4_limo_hlth = get_char_highest_priority_event 87@
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 17
goto_if_false @SYND4_9387
clear_char_tasks 87@
task_kill_char_on_foot 87@ {target} $scplayer

:SYND4_9387
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 7
goto_if_false @SYND4_9418
clear_char_tasks 87@
task_kill_char_on_foot 87@ {target} $scplayer

:SYND4_9418
if 
  not is_car_dead $car
goto_if_false @SYND4_9653
90@ = get_car_health $car
if 
  200 > 90@
goto_if_false @SYND4_9534
89@ = 1
if and
  not is_char_dead 87@
  93@ == 0
goto_if_false @SYND4_9527
134@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} $car
task_die -1
close_sequence_task 134@
perform_sequence_task 87@ {sequence} 134@
93@ = 1

:SYND4_9527
goto @SYND4_9541

:SYND4_9534
89@ = 0

:SYND4_9541
if and
  is_car_on_fire $car
  94@ == 0
  not is_char_dead 39@
goto_if_false @SYND4_9653
135@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} $car
task_flee_char_any_means -1 {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0
set_sequence_to_repeat 135@ {state} True
close_sequence_task 135@
set_char_decision_maker 39@ {handleOrTemplate} 55@
TIMERB = 0
perform_sequence_task 39@ {sequence} 135@
94@ = 1

:SYND4_9653
if 
  41@ == 2
goto_if_false @SYND4_10172
if and
  is_car_dead 64@
  77@ == 0
goto_if_false @SYND4_9717
print_now 'SYN4_32' {time} 5000 {flag} 1
goto @SYND4_11948

:SYND4_9717
if and
  not is_car_dead 64@
  not is_char_dead 39@
goto_if_false @SYND4_9778
if 
  is_char_in_car 39@ {vehicle} 64@
goto_if_false @SYND4_9771
77@ = 0
goto @SYND4_9778

:SYND4_9771
77@ = 1

:SYND4_9778
if 
  not is_char_dead 39@
goto_if_false @SYND4_10061
if 
  locate_char_any_means_3d $scplayer {x} $off1_X {y} $off1_Y {z} $girl_health {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYND4_9952
if and
  not is_car_dead 64@
  86@ == 0
goto_if_false @SYND4_9945
if 
  not is_car_on_fire 64@
goto_if_false @SYND4_9945
if 
  89@ == 0
goto_if_false @SYND4_9919
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 25.0 {drivingStyle} DrivingMode.AvoidCars
goto @SYND4_9938

:SYND4_9919
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars

:SYND4_9938
86@ = 1

:SYND4_9945
goto @SYND4_10061

:SYND4_9952
if and
  not is_car_dead 64@
  86@ == 1
goto_if_false @SYND4_10061
if 
  not is_car_on_fire 64@
goto_if_false @SYND4_10061
if 
  89@ == 0
goto_if_false @SYND4_10035
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 23.0 {drivingStyle} DrivingMode.AvoidCars
goto @SYND4_10054

:SYND4_10035
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 28.0 {drivingStyle} DrivingMode.AvoidCars

:SYND4_10054
86@ = 0

:SYND4_10061
if 
  not is_char_dead 39@
goto_if_false @SYND4_10172
if 
  not locate_char_any_means_3d $scplayer {x} $off1_X {y} $off1_Y {z} $girl_health {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @SYND4_10142
print_now 'SYN4_29' {time} 4000 {flag} 1
goto @SYND4_11948

:SYND4_10142
if and
  not is_char_in_any_car 39@
  91@ == 0
goto_if_false @SYND4_10172
91@ = 1

:SYND4_10172
if and
  not is_char_dead 39@
  not is_car_dead 64@
  not is_char_dead $scplayer
goto_if_false @SYND4_10865
if 
  is_char_in_any_car $scplayer
goto_if_false @SYND4_10865
84@ = store_car_char_is_in $scplayer
92@ += 1
if 
  92@ > 100
goto_if_false @SYND4_10259
clear_car_last_damage_entity 64@
92@ = 0

:SYND4_10259
if and
  not is_car_dead 84@
  TIMERA > 12000
goto_if_false @SYND4_10865
if 
  has_car_been_damaged_by_car 64@ {other} 84@
goto_if_false @SYND4_10865
if 
  not is_message_being_displayed 
goto_if_false @SYND4_10865
100@ += 1
if 
  100@ == 1
goto_if_false @SYND4_10369
set_lvar_text_label 118@s = 'SYN4_AA'
set_lvar_int_to_constant 96@ = 16600
gosub @SYND4_13625

:SYND4_10369
if 
  100@ == 2
goto_if_false @SYND4_10416
set_lvar_text_label 118@s = 'SYN4_AB'
set_lvar_int_to_constant 96@ = 16601
gosub @SYND4_13625

:SYND4_10416
if 
  100@ == 3
goto_if_false @SYND4_10463
set_lvar_text_label 118@s = 'SYN4_AC'
set_lvar_int_to_constant 96@ = 16602
gosub @SYND4_13625

:SYND4_10463
if 
  100@ == 4
goto_if_false @SYND4_10510
set_lvar_text_label 118@s = 'SYN4_AD'
set_lvar_int_to_constant 96@ = 16603
gosub @SYND4_13625

:SYND4_10510
if 
  100@ == 5
goto_if_false @SYND4_10557
set_lvar_text_label 118@s = 'SYN4_AE'
set_lvar_int_to_constant 96@ = 16604
gosub @SYND4_13625

:SYND4_10557
if 
  100@ == 6
goto_if_false @SYND4_10604
set_lvar_text_label 118@s = 'SYN4_AF'
set_lvar_int_to_constant 96@ = 16605
gosub @SYND4_13625

:SYND4_10604
if 
  100@ == 7
goto_if_false @SYND4_10651
set_lvar_text_label 118@s = 'SYN4_AG'
set_lvar_int_to_constant 96@ = 16606
gosub @SYND4_13625

:SYND4_10651
if 
  100@ == 8
goto_if_false @SYND4_10698
set_lvar_text_label 118@s = 'SYN4_AH'
set_lvar_int_to_constant 96@ = 16607
gosub @SYND4_13625

:SYND4_10698
if 
  100@ == 9
goto_if_false @SYND4_10745
set_lvar_text_label 118@s = 'SYN4_AJ'
set_lvar_int_to_constant 96@ = 16608
gosub @SYND4_13625

:SYND4_10745
if 
  100@ == 10
goto_if_false @SYND4_10792
set_lvar_text_label 118@s = 'SYN4_AK'
set_lvar_int_to_constant 96@ = 16609
gosub @SYND4_13625

:SYND4_10792
if 
  100@ == 11
goto_if_false @SYND4_10846
set_lvar_text_label 118@s = 'SYN4_AL'
set_lvar_int_to_constant 96@ = 16610
gosub @SYND4_13625
100@ = 0

:SYND4_10846
TIMERA = 0
92@ = 0
clear_car_last_damage_entity 64@

:SYND4_10865
if and
  is_char_dead 39@
  56@ == 0
goto_if_false @SYND4_11013
if 
  does_blip_exist 43@
goto_if_false @SYND4_10909
remove_blip 43@

:SYND4_10909
request_model #MOBILE1993B

:SYND4_10914
if 
  not has_model_loaded #MOBILE1993B
goto_if_false @SYND4_10941
wait 0
goto @SYND4_10914

:SYND4_10941
136@ = get_ground_z_for_3d_coord $off1_X {y} $off1_Y {z} $girl_health
136@ += 0.5
78@ = create_object_no_offset #MOBILE1993B {x} $off1_X {y} $off1_Y {z} 136@
69@ = add_blip_for_object 78@
print_now 'SYN4_33' {time} 4000 {flag} 1
56@ = 1

:SYND4_11013
if 
  56@ == 1
goto_if_false @SYND4_11060
draw_corona $off1_X {y} $off1_Y {z} 136@ {size} 0.2 {coronaType} CoronaType.Ring {flareType} FlareType.None {r} 200 {g} 200 {b} 200

:SYND4_11060
if and
  locate_char_any_means_3d $scplayer {x} $off1_X {y} $off1_Y {z} $girl_health {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  56@ == 1
  not is_char_in_any_car $scplayer
goto_if_false @SYND4_11193
clear_prints 
delete_object 78@
if 
  does_blip_exist 69@
goto_if_false @SYND4_11142
remove_blip 69@

:SYND4_11142
if 
  does_blip_exist 43@
goto_if_false @SYND4_11163
remove_blip 43@

:SYND4_11163
print_now 'SYN4_11' {time} 2000 {flag} 1
TIMERB = 0
56@ = 2

:SYND4_11193
if and
  56@ == 2
  TIMERB > 2000
  not is_char_stuck_under_car $scplayer
goto_if_false @SYND4_11322
gosub @SYND4_12699

:SYND4_11231
request_model 330

:SYND4_11236
if 
  not has_model_loaded 330
goto_if_false @SYND4_11263
wait 0
goto @SYND4_11236

:SYND4_11263
clear_wanted_level $player1
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11296
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True

:SYND4_11296
wait 2000
gosub @SYND4_12730
46@ = 2
TIMERB = 0

:SYND4_11322
if 
  46@ == 2
goto_if_false @SYND4_11934
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYND4_11371
95@ = 6
95@ = 6

:SYND4_11371
if and
  97@ == 2
  95@ == 0
goto_if_false @SYND4_11456
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11420
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11420
set_lvar_text_label 118@s = 'MCES11A'
set_lvar_int_to_constant 96@ = 4716
gosub @SYND4_13625
95@ = 1

:SYND4_11456
if and
  97@ == 2
  95@ == 1
goto_if_false @SYND4_11538
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11502
stop_char_facial_talk $scplayer

:SYND4_11502
set_lvar_text_label 118@s = 'MCES11B'
set_lvar_int_to_constant 96@ = 4665
gosub @SYND4_13625
95@ = 2

:SYND4_11538
if and
  97@ == 2
  95@ == 2
goto_if_false @SYND4_11623
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11587
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11587
set_lvar_text_label 118@s = 'MCES11C'
set_lvar_int_to_constant 96@ = 4717
gosub @SYND4_13625
95@ = 3

:SYND4_11623
if and
  97@ == 2
  95@ == 3
goto_if_false @SYND4_11705
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11669
stop_char_facial_talk $scplayer

:SYND4_11669
set_lvar_text_label 118@s = 'MCES11D'
set_lvar_int_to_constant 96@ = 4718
gosub @SYND4_13625
95@ = 4

:SYND4_11705
if and
  97@ == 2
  95@ == 4
goto_if_false @SYND4_11766
set_lvar_text_label 118@s = 'MCES11E'
set_lvar_int_to_constant 96@ = 4666
gosub @SYND4_13625
95@ = 5

:SYND4_11766
if and
  97@ == 2
  95@ == 5
goto_if_false @SYND4_11851
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11815
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11815
set_lvar_text_label 118@s = 'MCES11F'
set_lvar_int_to_constant 96@ = 4719
gosub @SYND4_13625
95@ = 6

:SYND4_11851
if and
  97@ == 2
  95@ == 6
goto_if_false @SYND4_11934
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11897
stop_char_facial_talk $scplayer

:SYND4_11897
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11920
task_use_mobile_phone $scplayer {start} False

:SYND4_11920
gosub @SYND4_12730
goto @SYND4_12163

:SYND4_11934
goto @SYND4_5237

:SYND4_11941
goto @SYND4_11948

:SYND4_11948
if 
  does_blip_exist 43@
goto_if_false @SYND4_11969
remove_blip 43@

:SYND4_11969
if 
  does_blip_exist 45@
goto_if_false @SYND4_11990
remove_blip 45@

:SYND4_11990
if 
  does_blip_exist 54@
goto_if_false @SYND4_12011
remove_blip 54@

:SYND4_12011
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if or
  41@ == 1
  115@ == 1
goto_if_false @SYND4_12159
gosub @SYND4_12765
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12152
41@ = 1
set_area_visible 0
request_collision -2623.8049 {y} 1409.816
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates_dont_warp_gang $scplayer {x} -2624.4609 {y} 1410.7061 {z} 6.1015
set_char_heading $scplayer {heading} 176.884
load_scene -2624.4609 {y} 1410.7061 {z} 6.1015

:SYND4_12152
gosub @SYND4_12798

:SYND4_12159
set_camera_behind_player 
return 

:SYND4_12163
clear_prints 
if 
  does_blip_exist 43@
goto_if_false @SYND4_12186
remove_blip 43@

:SYND4_12186
if 
  does_blip_exist 45@
goto_if_false @SYND4_12207
remove_blip 45@

:SYND4_12207
if 
  does_blip_exist 54@
goto_if_false @SYND4_12228
remove_blip 54@

:SYND4_12228
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 12000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 12000
remove_blip $synd_contact_blip
award_player_mission_respect 30
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'SYND_4'
player_made_progress 1
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point -1717.05 {y} 1280.91 {z} 6.23 {sprite} $garage_blip_icon
return 

:SYND4_12325
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12346
stop_char_facial_talk $scplayer

:SYND4_12346
if 
  not is_char_dead 39@
goto_if_false @SYND4_12367
remove_char_elegantly 39@

:SYND4_12367
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
set_wanted_multiplier 1.0
unmark_all_road_nodes_as_dont_wander 
if 
  does_blip_exist 69@
goto_if_false @SYND4_12423
remove_blip 69@

:SYND4_12423
if 
  does_blip_exist 59@
goto_if_false @SYND4_12444
remove_blip 59@

:SYND4_12444
if 
  does_blip_exist 43@
goto_if_false @SYND4_12465
remove_blip 43@

:SYND4_12465
if 
  does_blip_exist 45@
goto_if_false @SYND4_12486
remove_blip 45@

:SYND4_12486
if 
  does_blip_exist 54@
goto_if_false @SYND4_12507
remove_blip 54@

:SYND4_12507
if 
  does_blip_exist 60@
goto_if_false @SYND4_12528
remove_blip 60@

:SYND4_12528
if 
  does_blip_exist 61@
goto_if_false @SYND4_12549
remove_blip 61@

:SYND4_12549
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 30
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed #MOBILE1993B
mark_model_as_no_longer_needed #WAREHOUSE_DOOR2B
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 448
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 246
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12674
clear_wanted_level $player1

:SYND4_12674
remove_animation "SWAT"
unload_special_character 1
$onmission = 0
release_weather 
mission_has_finished 
return 

:SYND4_12699
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12728
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False

:SYND4_12728
return 

:SYND4_12730
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12763
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SYND4_12763
return 

:SYND4_12765
do_fade 500 {direction} Fade.Out

:SYND4_12772
if 
  get_fading_status 
goto_if_false @SYND4_12796
wait 0
goto @SYND4_12772

:SYND4_12796
return 

:SYND4_12798
do_fade 500 {direction} Fade.In

:SYND4_12805
if 
  get_fading_status 
goto_if_false @SYND4_12829
wait 0
goto @SYND4_12805

:SYND4_12829
return 

:SYND4_12831
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @SYND4_12892
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12892
set_char_coordinates_dont_warp_gang $scplayer {x} -2623.9771 {y} 1404.812 {z} 6.111
set_char_heading $scplayer {heading} 352.628

:SYND4_12892
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @SYND4_12930
if 
  not is_car_dead 64@
goto_if_false @SYND4_12930
freeze_car_position 64@ {state} True

:SYND4_12930
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @SYND4_12966
$s4_event = get_area_visible 
view_integer_variable $s4_event {_p2} "AREA_NAME"

:SYND4_12966
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @SYND4_13017
create_birds -2616.1089 {yFrom} 1408.629 {zFrom} 6.5 {xTo} -2618.498 {yTo} 1415.866 {zTo} 6.5 {quantity} 3 {type} 0

:SYND4_13017
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @SYND4_13080
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13080
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.1919 {y} 1426.1281 {z} 22.8906
set_char_heading $scplayer {heading} 188.7666
set_camera_behind_player 

:SYND4_13080
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @SYND4_13143
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13143
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.4929 {y} 1403.067 {z} 905.277
set_char_heading $scplayer {heading} 85.1708
set_camera_behind_player 

:SYND4_13143
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @SYND4_13187
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13187
view_integer_variable $s4_has_phone {_p2} "HEALTH"

:SYND4_13187
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @SYND4_13209
goto @SYND4_11231

:SYND4_13209
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @SYND4_13248
if 
  not is_car_dead 64@
goto_if_false @SYND4_13248
set_car_health 64@ {health} 200

:SYND4_13248
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @SYND4_13623
if 
  not is_char_dead 39@
goto_if_false @SYND4_13286
set_char_health 39@ {health} 1

:SYND4_13286
gosub @SYND4_12699
set_char_coordinates_dont_warp_gang 39@ {x} -2659.3821 {y} 1530.248 {z} 53.9453
set_char_heading 39@ {heading} 0.0
set_fixed_camera_position -2655.093 {y} 1543.8459 {z} 55.7815 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2655.4451 {y} 1542.918 {z} 55.652 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 39@
goto_if_false @SYND4_13402
clear_char_tasks_immediately 39@
task_jump 39@ {state} False

:SYND4_13402
wait 1000
set_time_scale 0.4
if 
  not is_char_dead 39@
goto_if_false @SYND4_13471
set_fixed_camera_position -2630.0559 {y} 1557.202 {z} 18.3729 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 39@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:SYND4_13471
TIMERB = 0

:SYND4_13478
if 
  750 > TIMERB
goto_if_false @SYND4_13532
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_13525
goto @SYND4_13600

:SYND4_13525
goto @SYND4_13478

:SYND4_13532
set_time_scale 1.0
TIMERB = 0

:SYND4_13546
if 
  1500 > TIMERB
goto_if_false @SYND4_13600
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_13593
goto @SYND4_13600

:SYND4_13593
goto @SYND4_13546

:SYND4_13600
gosub @SYND4_12730
print_now 'SYN4_29' {time} 4000 {flag} 1

:SYND4_13623
return 

:SYND4_13625
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 96@
97@ = 0
return 

:SYND4_13645
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  97@ == 0
goto_if_false @SYND4_13688
play_mission_audio MissionAudioSlot.Slot1
print_now 118@s {time} 10000 {flag} 1
97@ = 1

:SYND4_13688
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  97@ == 1
goto_if_false @SYND4_13726
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 118@s
97@ = 2

:SYND4_13726
return 

//-------------Mission 62---------------
// Originally: Toreno's Last Flight

:SYN6
script_name 'SYN6'
gosub @SYN6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN6_38
gosub @SYN6_9151

:SYN6_38
gosub @SYN6_9238
terminate_this_script 

:SYN6_47
$onmission = 1
$tlf_underway = 1
register_mission_given 
set_player_control $player1 {state} False
load_scene -2034.255 {y} 176.5 {z} 27.8359
do_fade 2000 {direction} Fade.Out

:SYN6_94
if 
  get_fading_status 
goto_if_false @SYN6_118
wait 0
goto @SYN6_94

:SYN6_118
set_area_visible 0
load_mission_text 'SYN6'
request_model 487
request_model 521
request_model 355
request_model 346
request_model 24
request_model 25
request_model 359
request_model 413
request_model 330
request_model 348
load_all_models_now 

:SYN6_183
if or
  not has_model_loaded 487
  not has_model_loaded 521
  not has_model_loaded 355
  not has_model_loaded 346
  not has_model_loaded 24
goto_if_false @SYN6_229
wait 0
goto @SYN6_183

:SYN6_229
if or
  not has_model_loaded 359
  not has_model_loaded 25
  not has_model_loaded 413
  not has_model_loaded 330
  not has_model_loaded 348
goto_if_false @SYN6_275
wait 0
goto @SYN6_229

:SYN6_275
if 
  not is_player_playing $player1
goto_if_false @SYN6_302
wait 0
goto @SYN6_275

:SYN6_302
47@ = create_char PedType.CivMale {modelId} 24 {x} -1691.72 {y} 703.6754 {z} 29.6065
48@ = create_char PedType.CivMale {modelId} 25 {x} -1701.061 {y} 712.767 {z} 23.8976
49@ = create_char PedType.CivMale {modelId} 25 {x} -1688.3719 {y} 687.4631 {z} 20.615
50@ = create_char PedType.CivMale {modelId} 25 {x} -1686.15 {y} 701.9777 {z} 29.6065
51@ = create_char PedType.CivMale {modelId} 24 {x} -1681.696 {y} 680.8264 {z} 18.8009
52@ = create_char PedType.CivMale {modelId} 25 {x} -1690.15 {y} 716.6064 {z} 29.6065
set_char_heading 47@ {heading} 82.107
set_char_heading 48@ {heading} 224.7688
set_char_heading 49@ {heading} 118.1096
task_kinda_stay_in_same_place 49@ {state} True
set_char_heading 50@ {heading} 239.6
task_stay_in_same_place 50@ {state} True
task_toggle_duck 50@ {state} True
set_char_heading 51@ {heading} 86.9582
task_kinda_stay_in_same_place 51@ {state} True
set_char_heading 52@ {heading} 222.9582
77@ = 0

:SYN6_541
if 
  5 > 77@
goto_if_false @SYN6_622
give_weapon_to_char 47@(77@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_only_damaged_by_player 47@(77@,6i) {state} True
set_char_relationship 47@(77@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 47@(77@,6i) {state} True
77@ += 1
goto @SYN6_541

:SYN6_622
give_weapon_to_char 52@ {weaponType} WeaponType.RocketLauncher {ammo} 9999
set_char_only_damaged_by_player 52@ {state} True
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 52@ {state} True
set_char_drops_weapons_when_dead 52@ {state} False
task_stay_in_same_place 52@ {state} True
set_char_accuracy 52@ {accuracy} 100
set_char_shoot_rate 52@ {rate} 50
set_char_weapon_skill 52@ {skill} WeaponSkill.Poor
63@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 60 {x} -1688.86 {y} 695.3077 {z} 30.3452
64@ = create_pickup_with_ammo 355 {pickupType} PickupType.Once {ammo} 120 {x} -1683.4969 {y} 716.2739 {z} 30.6452
53@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065
set_heli_blades_full_speed 53@
set_car_heading 53@ {heading} 90.0
open_car_door 53@ {door} CarDoor.RightRearDoor
open_car_door 53@ {door} CarDoor.LeftRearDoor
set_car_proofs 53@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 53@ {color1} 10 {color2} 125
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
mark_model_as_no_longer_needed 521
set_car_heading 57@ {heading} 181.5462
set_can_burst_car_tyres 57@ {state} False
58@ = create_car 413 {x} -1665.8 {y} 682.1571 {z} 13.8891
set_car_heading 58@ {heading} 214.5462
change_car_colour 58@ {color1} 7 {color2} 1
open_car_door 58@ {door} CarDoor.LeftRearDoor
mark_model_as_no_longer_needed 413
60@ = -1
61@ = 0
65@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
89@ = 0
92@ = 0
91@ = 0
93@ = 0
94@ = 0
140@ = 1
141@ = 2
142@ = 0
143@ = 1
144@ = 0
145@ = 0
set_lvar_text_label 106@s = 'MWUZ01A'
set_lvar_text_label 108@s = 'MWUZ01B'
set_lvar_text_label 110@s = 'MWUZ01C'
set_lvar_text_label 112@s = 'MWUZ01D'
set_lvar_text_label 114@s = 'MWUZ01E'
set_lvar_text_label 116@s = 'MWUZ01F'
set_lvar_text_label 118@s = 'MWUZ01G'
set_lvar_text_label 120@s = 'MWUZ01H'
set_lvar_text_label 122@s = 'MWUZ01J'
set_lvar_text_label 124@s = 'MWUZ01K'
set_lvar_int_to_constant 129@ = 12005
set_lvar_int_to_constant 130@ = 12078
set_lvar_int_to_constant 131@ = 12006
set_lvar_int_to_constant 132@ = 12079
set_lvar_int_to_constant 133@ = 12007
set_lvar_int_to_constant 134@ = 12008
set_lvar_int_to_constant 135@ = 12009
set_lvar_int_to_constant 136@ = 12080
set_lvar_int_to_constant 137@ = 12081
set_lvar_int_to_constant 138@ = 12082
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23803
TIMERA = 0
switch_widescreen True
set_char_coordinates $scplayer {x} -2030.25 {y} 148.8279 {z} 27.8359
set_char_heading $scplayer {heading} 350.0
set_fixed_camera_position -2024.214 {y} 147.8178 {z} 28.9808 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2025.1591 {y} 148.1366 {z} 29.046 {switchStyle} SwitchType.JumpCut
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
load_scene_in_direction -2024.137 {y} 149.9411 {z} 27.8359 {heading} 348.3137
wait 0
do_fade 2500 {direction} Fade.In
load_scene_in_direction -2024.137 {y} 149.9411 {z} 27.8359 {heading} 348.3137
wait 0
task_go_straight_to_coord $scplayer {x} -2026.675 {y} 148.8807 {z} 27.8359 {speed} MoveState.Walk {time} -2

:SYN6_1531
if 
  get_fading_status 
goto_if_false @SYN6_1555
wait 0
goto @SYN6_1531

:SYN6_1555
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN6_1574
play_mission_audio MissionAudioSlot.Slot3

:SYN6_1574
wait 0
TIMERA = 0
84@ = 4
85@ = 0
86@ = 1

:SYN6_1606
wait 0
if 
  142@ <> 0
goto_if_false @SYN6_1963
if 
  144@ == 0
goto_if_false @SYN6_1681
if 
  has_mission_audio_loaded 141@
goto_if_false @SYN6_1667
clear_mission_audio 141@

:SYN6_1667
144@ = 1
145@ = 1

:SYN6_1681
if 
  144@ == 1
goto_if_false @SYN6_1718
load_mission_audio 140@ {audioId} 128@(142@,12i)
144@ = 2

:SYN6_1718
if 
  144@ == 2
goto_if_false @SYN6_1778
if 
  has_mission_audio_loaded 140@
goto_if_false @SYN6_1778
play_mission_audio 140@
print_now 104@(142@,12s) {time} 10000 {flag} 1
144@ = 3

:SYN6_1778
if 
  144@ == 3
goto_if_false @SYN6_1963
if 
  has_mission_audio_finished 140@
goto_if_false @SYN6_1902
clear_this_print 104@(142@,12s)
if 
  140@ == 1
goto_if_false @SYN6_1860
140@ = 2
141@ = 1
goto @SYN6_1874

:SYN6_1860
140@ = 1
141@ = 2

:SYN6_1874
142@ = 0
144@ = 0
145@ = 0
goto @SYN6_1963

:SYN6_1902
if 
  not has_mission_audio_loaded 141@
goto_if_false @SYN6_1963
if 
  10 > 142@
goto_if_false @SYN6_1963
set_lvar_int_to_lvar_int 143@ = 142@
143@ += 1
load_mission_audio 141@ {audioId} 128@(143@,12i)

:SYN6_1963
if 
  89@ == 1
goto_if_false @SYN6_1985
shake_cam 20

:SYN6_1985
if 
  84@ <> -13
goto_if_false @SYN6_2796
if 
  84@ > 4
goto_if_false @SYN6_2161
if 
  85@ == 1
goto_if_false @SYN6_2091
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN6_2091

:SYN6_2056
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN6_2084
wait 0
goto @SYN6_2056

:SYN6_2084
84@ = 100

:SYN6_2091
if 
  86@ == 1
goto_if_false @SYN6_2161
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_2161

:SYN6_2126
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_2154
wait 0
goto @SYN6_2126

:SYN6_2154
84@ = 10

:SYN6_2161
if 
  84@ == 4
goto_if_false @SYN6_2217
if 
  TIMERA > 1000
goto_if_false @SYN6_2217
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True
84@ = 5

:SYN6_2217
if 
  84@ == 5
goto_if_false @SYN6_2275
if 
  TIMERA > 5000
goto_if_false @SYN6_2275
142@ = 1
TIMERA = 0
84@ = 7

:SYN6_2275
if 
  84@ == 7
goto_if_false @SYN6_2326
if 
  TIMERA > 2500
goto_if_false @SYN6_2326
84@ = 10
TIMERA = 0

:SYN6_2326
if 
  84@ == 10
goto_if_false @SYN6_2387
86@ = 0
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
84@ = 15
85@ = 1
TIMERA = 0

:SYN6_2387
if 
  84@ > 10
goto_if_false @SYN6_2796
if 
  145@ == 0
goto_if_false @SYN6_2796
switch_start 84@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @SYN6_2796 {caseNum1} 15 {caseLabel1} @SYN6_2551 {caseNum2} 20 {caseLabel2} @SYN6_2572 {caseNum3} 30 {caseLabel3} @SYN6_2593 {caseNum4} 40 {caseLabel4} @SYN6_2614 {caseNum5} 50 {caseLabel5} @SYN6_2635 {caseNum6} 60 {caseLabel6} @SYN6_2656 {caseNum7} 70 {caseLabel7} @SYN6_2677
switch_continued 80 {caseLabel1} @SYN6_2698 {caseNum2} 90 {caseLabel2} @SYN6_2719 {caseNum3} 100 {caseLabel3} @SYN6_2740 {caseNum4} -1 {caseLabel4} @SYN6_2796 {caseNum5} -1 {caseLabel5} @SYN6_2796 {caseNum6} -1 {caseLabel6} @SYN6_2796 {caseNum7} -1 {caseLabel7} @SYN6_2796 {caseNum8} -1 {caseLabel8} @SYN6_2796 {caseNum9} -1 {caseLabel9} @SYN6_2796

:SYN6_2551
142@ = 2
84@ = 20
goto @SYN6_2796

:SYN6_2572
142@ = 3
84@ = 30
goto @SYN6_2796

:SYN6_2593
142@ = 4
84@ = 40
goto @SYN6_2796

:SYN6_2614
142@ = 5
84@ = 50
goto @SYN6_2796

:SYN6_2635
142@ = 6
84@ = 60
goto @SYN6_2796

:SYN6_2656
142@ = 7
84@ = 70
goto @SYN6_2796

:SYN6_2677
142@ = 8
84@ = 90
goto @SYN6_2796

:SYN6_2698
142@ = 9
84@ = 90
goto @SYN6_2796

:SYN6_2719
142@ = 10
84@ = 100
goto @SYN6_2796

:SYN6_2740
142@ = 0
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
print_now 'SYN6_01' {time} 6000 {flag} 1
84@ = 110
goto @SYN6_2796

:SYN6_2796
if 
  84@ == 110
goto_if_false @SYN6_2860
clear_char_tasks $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
34@ = add_blip_for_coord -1680.377 {y} 705.462 {z} 30.2209
84@ = -13
85@ = 0

:SYN6_2860
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN6_2882
goto @SYN6_9169

:SYN6_2882
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @SYN6_2904
alter_wanted_level $player1 {wantedLevel} 2

:SYN6_2904
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @SYN6_2926
alter_wanted_level $player1 {wantedLevel} 0

:SYN6_2926
$game_timer = get_game_timer 
if 
  not is_player_playing $player1
goto_if_false @SYN6_2954
goto @SYN6_9151

:SYN6_2954
if 
  78@ == 1
goto_if_false @SYN6_3003
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_3003
60@ = 6
78@ = 0

:SYN6_3003
if 
  60@ == -99
goto_if_false @SYN6_3044
149@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065

:SYN6_3044
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @SYN6_3150
clear_area -1704.324 {y} 637.5129 {z} 23.8959 {radius} 0.5 {clearParticles} False
load_scene -1704.324 {y} 637.5129 {z} 23.8959
set_char_coordinates $scplayer {x} -1704.324 {y} 637.5129 {z} 23.8959
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:SYN6_3150
if 
  locate_char_any_means_3d $scplayer {x} -1699.991 {y} 686.4141 {z} 20.0 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @SYN6_3244
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3244
if 
  60@ == -1
goto_if_false @SYN6_3343
if 
  does_char_exist 47@
goto_if_false @SYN6_3343
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @SYN6_3343
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3343
if 
  60@ == -1
goto_if_false @SYN6_3442
if 
  does_char_exist 48@
goto_if_false @SYN6_3442
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @SYN6_3442
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3442
if 
  60@ == -1
goto_if_false @SYN6_3541
if 
  does_char_exist 49@
goto_if_false @SYN6_3541
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @SYN6_3541
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3541
if 
  60@ == -1
goto_if_false @SYN6_3640
if 
  does_char_exist 50@
goto_if_false @SYN6_3640
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @SYN6_3640
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3640
if 
  60@ == -1
goto_if_false @SYN6_3739
if 
  does_char_exist 51@
goto_if_false @SYN6_3739
if 
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @SYN6_3739
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3739
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
  does_char_exist 52@
goto_if_false @SYN6_3838
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @SYN6_3838
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3838
if 
  72@ == 1
goto_if_false @SYN6_4097
if 
  73@ == 0
goto_if_false @SYN6_3974
if 
  not is_char_dead 52@
goto_if_false @SYN6_3974
clear_char_tasks 52@
69@, 70@, 71@ = get_char_coordinates $scplayer
69@ += 5.0
70@ += 5.0
71@ += 15.0
clear_char_tasks 52@
task_shoot_at_coord 52@ {x} 69@ {y} 70@ {z} 71@ {time} -1
73@ = 1
TIMERB = 0

:SYN6_3974
if 
  not is_char_dead 47@
goto_if_false @SYN6_4003
clear_char_tasks 47@
task_kill_char_on_foot 47@ {target} $scplayer

:SYN6_4003
if 
  not is_char_dead 48@
goto_if_false @SYN6_4032
clear_char_tasks 48@
task_kill_char_on_foot 48@ {target} $scplayer

:SYN6_4032
if 
  not is_char_dead 49@
goto_if_false @SYN6_4061
clear_char_tasks 49@
task_kill_char_on_foot 49@ {target} $scplayer

:SYN6_4061
if 
  not is_char_dead 51@
goto_if_false @SYN6_4090
clear_char_tasks 51@
task_kill_char_on_foot 51@ {target} $scplayer

:SYN6_4090
72@ = 2

:SYN6_4097
if 
  73@ == 1
goto_if_false @SYN6_4179
if 
  TIMERB > 4000
goto_if_false @SYN6_4179
if 
  not is_char_dead 52@
goto_if_false @SYN6_4179
clear_char_tasks 52@
73@ = 99
TIMERB = 0
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999

:SYN6_4179
if 
  73@ == 2
goto_if_false @SYN6_4223
if 
  TIMERB > 6000
goto_if_false @SYN6_4223
73@ = 0

:SYN6_4223
if 
  65@ == 0
goto_if_false @SYN6_4248
65@ = 1

:SYN6_4248
if 
  2 > 65@
goto_if_false @SYN6_4448
if 
  60@ > 4
goto_if_false @SYN6_4448
if 
  80@ == 0
goto_if_false @SYN6_4366
if 
  not is_car_dead 149@
goto_if_false @SYN6_4366
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 250.0 {yRadius} 250.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_4366
pause_playback_recorded_car 149@
80@ = 1

:SYN6_4366
if 
  80@ == 1
goto_if_false @SYN6_4448
if 
  not is_car_dead 149@
goto_if_false @SYN6_4448
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 250.0 {yRadius} 250.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_4448
unpause_playback_recorded_car 149@
80@ = 0

:SYN6_4448
if 
  65@ == 1
goto_if_false @SYN6_4557
if 
  has_pickup_been_collected 63@
goto_if_false @SYN6_4557
clear_prints 
print_now 'SYN6_20' {time} 6000 {flag} 1
remove_blip 62@
if 
  not is_car_dead 149@
goto_if_false @SYN6_4550
34@ = add_blip_for_car 149@
display_onscreen_counter_with_string $the_area_name {display} CounterDisplay.Bar {text} 'SYN6_05'
unpause_playback_recorded_car 149@

:SYN6_4550
65@ = 2

:SYN6_4557
if 
  65@ == 2
goto_if_false @SYN6_4575

:SYN6_4575
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  60@ == 0
goto_if_false @SYN6_4709
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1695.668 {leftBottomY} 693.7705 {leftBottomZ} 29.5938 {rightTopX} -1665.865 {rightTopY} 693.7705 {rightTopZ} 59.5943 {angle} 28.0 {drawSphere} False
goto_if_false @SYN6_4709
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN6_4695
90@ = store_car_char_is_in $scplayer
91@ = 1

:SYN6_4695
92@ = 1
60@ += 1

:SYN6_4709
if 
  60@ == 0
goto_if_false @SYN6_4782
if 
  locate_char_any_means_3d $scplayer {x} -1683.8199 {y} 686.5125 {z} 23.9687 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN6_4782
60@ += 1

:SYN6_4782
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  locate_char_any_means_3d $scplayer {x} -1683.797 {y} 692.3915 {z} 27.586 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN6_4855
60@ += 1

:SYN6_4855
if 
  60@ > 1
goto_if_false @SYN6_5160
if 
  61@ == 0
goto_if_false @SYN6_5160
if 
  locate_char_any_means_2d $scplayer {x} -1448.006 {y} -1533.036 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN6_5160
41@ = create_char PedType.CivMale {modelId} 24 {x} -1450.256 {y} -1543.012 {z} 100.7579
42@ = create_char PedType.CivMale {modelId} 24 {x} -1422.854 {y} -1542.103 {z} 100.7514
43@ = create_char PedType.CivMale {modelId} 24 {x} -1431.0959 {y} -1506.962 {z} 100.7262
44@ = create_char PedType.CivMale {modelId} 24 {x} -1448.4771 {y} -1511.918 {z} 100.7579
set_char_heading 41@ {heading} 269.8948
set_char_heading 42@ {heading} 26.8258
set_char_heading 43@ {heading} 223.7033
set_char_heading 44@ {heading} 266.9233
77@ = 0

:SYN6_5072
if 
  4 > 77@
goto_if_false @SYN6_5153
give_weapon_to_char 41@(77@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_only_damaged_by_player 41@(77@,6i) {state} True
set_char_relationship 41@(77@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 41@(77@,6i) {state} True
77@ += 1
goto @SYN6_5072

:SYN6_5153
61@ += 1

:SYN6_5160
if 
  60@ == 1
goto_if_false @SYN6_6028
if 
  has_car_recording_been_loaded 110
goto_if_false @SYN6_6024
if 
  not get_fading_status 
goto_if_false @SYN6_6017
clear_this_print 'SYN6_02'
delete_car 53@
149@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065
set_heli_blades_full_speed 149@
change_car_colour 149@ {color1} 10 {color2} 125
56@ = create_object #CARDBOARDBOX2 {x} -1680.931 {y} 705.7776 {z} 30.6065
set_object_collision 56@ {state} False
freeze_object_position 56@ {state} True
set_object_collision 56@ {state} False
set_car_heading 149@ {heading} 90.0
lock_car_doors 149@ {lockStatus} CarLock.LockoutPlayerOnly
set_vehicle_can_be_targetted 149@ {state} True
remove_blip 34@
set_car_only_damaged_by_player 149@ {state} True
set_car_health 149@ {health} 1500
150@ = create_char_inside_car 149@ {pedType} PedType.CivMale {modelId} 24
set_char_is_target_priority 150@ {state} True
151@ = create_char_as_passenger 149@ {pedType} PedType.CivMale {modelId} 24 {seat} SeatId.RearLeft
152@ = create_char_as_passenger 149@ {pedType} PedType.CivMale {modelId} 24 {seat} SeatId.RearRight
open_car_door 149@ {door} CarDoor.RightRearDoor
open_car_door 149@ {door} CarDoor.LeftRearDoor
39@ = 0

:SYN6_5415
if 
  2 > 39@
goto_if_false @SYN6_5535
set_char_stay_in_same_place 151@(39@,2i) {state} True
give_weapon_to_char 152@ {weaponType} WeaponType.Ak47 {ammo} 9999
give_weapon_to_char 151@ {weaponType} WeaponType.DesertEagle {ammo} 9999
set_char_only_damaged_by_player 151@(39@,2i) {state} True
set_char_suffers_critical_hits 151@(39@,2i) {state} False
set_char_health 151@(39@,2i) {health} 300
set_char_is_target_priority 151@(39@,2i) {state} True
set_char_health 151@(39@,2i) {health} 500
39@ += 1
goto @SYN6_5415

:SYN6_5535
if 
  is_char_in_car 151@ {vehicle} 149@
goto_if_false @SYN6_5636
$x, $y, $z = get_car_coordinates 149@
warp_char_from_car_to_coord 151@ {x} $x {y} $y {z} $z
detach_char_from_car 151@
set_char_allowed_to_duck 151@ {state} True
attach_char_to_car 151@ {vehicle} 149@ {xOffset} -1.0 {yOffset} -0.3 {zOffset} 0.0 {heading} Facing.Left {headingRange} 180.0 {weaponType} WeaponType.Ak47
set_char_heading 151@ {heading} 200.0

:SYN6_5636
if 
  is_char_in_car 152@ {vehicle} 149@
goto_if_false @SYN6_5735
$x, $y, $z = get_car_coordinates 149@
warp_char_from_car_to_coord 152@ {x} $x {y} $y {z} $z
detach_char_from_car 152@
set_char_allowed_to_duck 152@ {state} True
attach_char_to_car 152@ {vehicle} 149@ {xOffset} 1.2 {yOffset} -0.3 {zOffset} 0.0 {heading} Facing.Right {headingRange} 180.0 {weaponType} WeaponType.Ak47
task_turn_char_to_face_char 152@ {target} $scplayer

:SYN6_5735
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position -1675.1949 {y} 699.6955 {z} 36.8409 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1675.7729 {y} 700.2547 {z} 36.2466 {switchStyle} SwitchType.JumpCut
89@ = 1
if 
  92@ == 0
goto_if_false @SYN6_5870
set_char_coordinates $scplayer {x} -1683.849 {y} 692.0139 {z} 27.586
set_char_heading $scplayer {heading} 304.0
goto @SYN6_5955

:SYN6_5870
if 
  91@ == 1
goto_if_false @SYN6_5948
if 
  not is_car_dead 90@
goto_if_false @SYN6_5941
set_car_coordinates 90@ {x} -1667.77 {y} 728.9113 {z} 49.8973
set_car_heading 90@ {heading} 135.4521
freeze_car_position 90@ {state} True

:SYN6_5941
goto @SYN6_5955

:SYN6_5948
freeze_char_position $scplayer {state} True

:SYN6_5955
set_fading_colour 1 {g} 0 {b} 0
start_playback_recorded_car 149@ {path} 110
task_toggle_duck 151@ {state} True
task_toggle_duck 152@ {state} True
if 
  not is_char_dead 50@
goto_if_false @SYN6_6000

:SYN6_6000
set_playback_speed 149@ {speed} 3.0
60@ += 1

:SYN6_6017
goto @SYN6_6028

:SYN6_6024
request_car_recording 110

:SYN6_6028
if 
  not is_car_dead 149@
goto_if_false @SYN6_7667
if 
  60@ == 2
goto_if_false @SYN6_6089
if 
  not get_fading_status 
goto_if_false @SYN6_6089
60@ += 1
TIMERB = 0

:SYN6_6089
if 
  60@ == 3
goto_if_false @SYN6_6114
60@ += 1

:SYN6_6114
if 
  60@ == 4
goto_if_false @SYN6_6184
if 
  TIMERB > 1100
goto_if_false @SYN6_6184
if 
  not is_car_dead 149@
goto_if_false @SYN6_6177
set_playback_speed 149@ {speed} 0.85

:SYN6_6177
60@ += 1

:SYN6_6184
if 
  60@ == 5
goto_if_false @SYN6_6310
if 
  TIMERB > 3000
goto_if_false @SYN6_6284
delete_object 56@
89@ = 0
set_fixed_camera_position -1681.265 {y} 685.2078 {z} 30.6465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1681.2629 {y} 686.2019 {z} 30.5389 {switchStyle} SwitchType.JumpCut

:SYN6_6284
if 
  TIMERB > 6500
goto_if_false @SYN6_6310
60@ += 1

:SYN6_6310
if 
  60@ == 6
goto_if_false @SYN6_6885
if 
  not get_fading_status 
goto_if_false @SYN6_6885
if 
  is_car_dead 57@
goto_if_false @SYN6_6402
mark_car_as_no_longer_needed 57@
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
set_car_heading 57@ {heading} 181.5462
goto @SYN6_6478

:SYN6_6402
if 
  not locate_car_2d 57@ {x} -1703.949 {y} 690.2634 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN6_6478
mark_car_as_no_longer_needed 57@
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
set_car_heading 57@ {heading} 181.5462

:SYN6_6478
78@ = 0
clear_this_print 'SYN6_03'
set_fading_colour 1 {g} 0 {b} 0
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
print_now 'SYN6_03' {time} 8000 {flag} 1
set_all_cars_can_be_damaged True
if 
  not is_car_dead 149@
goto_if_false @SYN6_6590
if 
  not is_char_dead 151@
goto_if_false @SYN6_6567

:SYN6_6567
if 
  not is_playback_going_on_for_car 149@
goto_if_false @SYN6_6590
start_playback_recorded_car 149@ {path} 110

:SYN6_6590
delete_object 56@
89@ = 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  92@ == 1
goto_if_false @SYN6_6686
if 
  91@ == 1
goto_if_false @SYN6_6679
if 
  not is_car_dead 90@
goto_if_false @SYN6_6672
freeze_car_position 90@ {state} False

:SYN6_6672
goto @SYN6_6686

:SYN6_6679
freeze_char_position $scplayer {state} False

:SYN6_6686
if 
  not is_char_dead 52@
goto_if_false @SYN6_6722
clear_char_tasks 52@
task_kinda_stay_in_same_place 52@ {state} True
task_kill_char_on_foot 52@ {target} $scplayer

:SYN6_6722
if 
  not is_char_dead 50@
goto_if_false @SYN6_6765
clear_char_tasks 50@
task_toggle_duck 50@ {state} False
task_kinda_stay_in_same_place 50@ {state} True
task_kill_char_on_foot 50@ {target} $scplayer

:SYN6_6765
set_playback_speed 149@ {speed} 1.0
if 
  92@ == 1
goto_if_false @SYN6_6855
if 
  91@ == 1
goto_if_false @SYN6_6855
set_playback_speed 149@ {speed} 1.5
if 
  not is_char_dead 151@
goto_if_false @SYN6_6847
give_weapon_to_char 151@ {weaponType} WeaponType.RocketLauncher {ammo} 9999

:SYN6_6847
set_car_health 149@ {health} 3000

:SYN6_6855
$the_area_name = 100
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 5000
60@ = 8

:SYN6_6885
if 
  60@ == 9
goto_if_false @SYN6_6963
if 
  locate_car_3d 149@ {x} -1437.098 {y} -1527.995 {z} 100.7504 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN6_6963
stop_playback_recorded_car 149@
60@ += 1

:SYN6_6963
if 
  60@ == 10
goto_if_false @SYN6_7178
if 
  not is_car_dead 149@
goto_if_false @SYN6_7178
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @SYN6_7178
print_now 'SYN6_07' {time} 5000 {flag} 1
60@ += 1
if 
  not is_char_dead 151@
goto_if_false @SYN6_7097
task_toggle_duck 151@ {state} False
detach_char_from_car 151@
clear_char_tasks 151@
task_kill_char_on_foot 151@ {target} $scplayer

:SYN6_7097
if 
  not is_char_dead 152@
goto_if_false @SYN6_7138
task_toggle_duck 152@ {state} False
clear_char_tasks 152@
detach_char_from_car 152@
task_kill_char_on_foot 152@ {target} $scplayer

:SYN6_7138
set_car_cruise_speed 149@ {maxSpeed} 70.0
heli_goto_coords 149@ {x} -23.2666 {y} 1210.6689 {z} 100.3528 {minAltitude} 70.0 {maxAltitude} 70.0

:SYN6_7178
if 
  60@ == 10
goto_if_false @SYN6_7376
if 
  not is_car_dead 149@
goto_if_false @SYN6_7376
if 
  has_car_been_damaged_by_char 149@ {handle} $scplayer
goto_if_false @SYN6_7376
print_now 'SYN6_07' {time} 5000 {flag} 1
60@ += 1
if 
  not is_char_dead 151@
goto_if_false @SYN6_7295
task_toggle_duck 151@ {state} False
detach_char_from_car 151@
clear_char_tasks 151@
task_kill_char_on_foot 151@ {target} $scplayer

:SYN6_7295
if 
  not is_char_dead 152@
goto_if_false @SYN6_7336
task_toggle_duck 152@ {state} False
clear_char_tasks 152@
detach_char_from_car 152@
task_kill_char_on_foot 152@ {target} $scplayer

:SYN6_7336
set_car_cruise_speed 149@ {maxSpeed} 70.0
heli_goto_coords 149@ {x} -23.2666 {y} 1210.6689 {z} 100.3528 {minAltitude} 70.0 {maxAltitude} 70.0

:SYN6_7376
if 
  60@ == 11
goto_if_false @SYN6_7545
if 
  not is_char_dead 41@
goto_if_false @SYN6_7430
clear_char_tasks 41@
set_char_keep_task 41@ {state} True
task_kill_char_on_foot 41@ {target} $scplayer

:SYN6_7430
if 
  not is_char_dead 42@
goto_if_false @SYN6_7466
clear_char_tasks 42@
set_char_keep_task 42@ {state} True
task_kill_char_on_foot 42@ {target} $scplayer

:SYN6_7466
if 
  not is_char_dead 43@
goto_if_false @SYN6_7502
clear_char_tasks 43@
set_char_keep_task 43@ {state} True
task_kill_char_on_foot 43@ {target} $scplayer

:SYN6_7502
if 
  not is_char_dead 44@
goto_if_false @SYN6_7538
clear_char_tasks 44@
set_char_keep_task 44@ {state} True
task_kill_char_on_foot 44@ {target} $scplayer

:SYN6_7538
60@ += 1

:SYN6_7545
if 
  60@ == 8
goto_if_false @SYN6_7667
if 
  has_car_recording_been_loaded 111
goto_if_false @SYN6_7663
if 
  not is_playback_going_on_for_car 149@
goto_if_false @SYN6_7656
if 
  60@ == 8
goto_if_false @SYN6_7633
start_playback_recorded_car 149@ {path} 111
60@ += 1
goto @SYN6_7656

:SYN6_7633
print_now 'SYN6_06' {time} 5000 {flag} 1
goto @SYN6_9151

:SYN6_7656
goto @SYN6_7667

:SYN6_7663
request_car_recording 111

:SYN6_7667
if 
  60@ > 4
goto_if_false @SYN6_9026
if 
  not is_car_dead 149@
goto_if_false @SYN6_8426
79@ = 0
$the_area_name = get_car_health 149@
$the_area_name -= 250
$the_area_name /= 10
if 
  $the_area_name > 100
goto_if_false @SYN6_7756
$the_area_name = 100

:SYN6_7756
if 
  1 > $the_area_name
goto_if_false @SYN6_7848
if 
  83@ == 0
goto_if_false @SYN6_7841
if 
  60@ <> 99
goto_if_false @SYN6_7841
stop_playback_recorded_car 149@
make_heli_come_crashing_down 149@
60@ = 99
83@ = 1
TIMERA = 0

:SYN6_7841
$the_area_name = 0

:SYN6_7848
if 
  60@ > 7
goto_if_false @SYN6_8058
if 
  92@ <> 1
goto_if_false @SYN6_8058
if 
  91@ <> 1
goto_if_false @SYN6_8058
if 
  79@ == 0
goto_if_false @SYN6_7968
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_7968
set_playback_speed 149@ {speed} 0.75
79@ = 1

:SYN6_7968
if 
  79@ == 0
goto_if_false @SYN6_8058
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN6_8041
set_playback_speed 149@ {speed} 0.5
79@ = 1
goto @SYN6_8058

:SYN6_8041
set_playback_speed 149@ {speed} 0.3
79@ = 1

:SYN6_8058
if 
  10 > 60@
goto_if_false @SYN6_8322
if 
  81@ == 0
goto_if_false @SYN6_8171
if 
  not is_car_dead 149@
goto_if_false @SYN6_8171
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 560.0 {yRadius} 560.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @SYN6_8171
clear_prints 
print_now 'SYN6_12' {time} 6000 {flag} 1
81@ = 1

:SYN6_8171
if 
  81@ == 1
goto_if_false @SYN6_8266
if 
  not is_car_dead 149@
goto_if_false @SYN6_8266
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @SYN6_8266
clear_prints 
print_now 'SYN6_13' {time} 6000 {flag} 1
81@ = 0

:SYN6_8266
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 700.0 {yRadius} 700.0 {drawSphere} False
goto_if_false @SYN6_8322
clear_prints 
print_now 'SYN6_08' {time} 6000 {flag} 1
goto @SYN6_9151

:SYN6_8322
if 
  60@ > 10
goto_if_false @SYN6_8419
if 
  60@ <> 99
goto_if_false @SYN6_8419
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SYN6_8419
clear_prints 
print_now 'SYN6_10' {time} 6000 {flag} 1
goto @SYN6_9151

:SYN6_8419
goto @SYN6_8477

:SYN6_8426
clear_prints 
if 
  83@ == 0
goto_if_false @SYN6_8477
60@ = 99
stop_playback_recorded_car 149@
make_heli_come_crashing_down 149@
83@ = 1
TIMERA = 0

:SYN6_8477
if 
  10 > 60@
goto_if_false @SYN6_9026
39@ = 0

:SYN6_8502
if 
  2 > 39@
goto_if_false @SYN6_9026
if 
  not is_char_dead 151@(39@,2i)
goto_if_false @SYN6_9003
38@ = get_char_health 151@(39@,2i)
if 
  93@(39@,3i) == 0
goto_if_false @SYN6_8623
if 
  50 > 38@
goto_if_false @SYN6_8623
task_toggle_duck 151@(39@,2i) {state} False
93@(39@,3i) = 1
detach_char_from_car 151@(39@,2i)

:SYN6_8623
if 
  60@ > 6
goto_if_false @SYN6_8996
if 
  not is_char_dead 152@
goto_if_false @SYN6_8735
88@ = get_script_task_status 152@ {taskId} 1957
if 
  is_int_lvar_equal_to_constant 88@ == 7
goto_if_false @SYN6_8735
if 
  locate_char_any_means_char_2d 152@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN6_8735
set_current_char_weapon 152@ {weaponType} WeaponType.Ak47
task_kill_char_on_foot_timed 152@ {target} $scplayer {time} 4000

:SYN6_8735
if 
  not is_char_dead 151@
goto_if_false @SYN6_8996
87@ = get_script_task_status 151@ {taskId} 1957
if 
  is_int_lvar_equal_to_constant 87@ == 7
goto_if_false @SYN6_8996
if 
  92@ == 1
goto_if_false @SYN6_8904
if 
  locate_char_any_means_char_2d 151@ {target} $scplayer {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @SYN6_8897
if 
  92@ <> 1
goto_if_false @SYN6_8854
set_current_char_weapon 151@ {weaponType} WeaponType.DesertEagle

:SYN6_8854
if 
  92@ == 1
goto_if_false @SYN6_8886
set_current_char_weapon 151@ {weaponType} WeaponType.Ak47
set_char_accuracy 151@ {accuracy} 100

:SYN6_8886
task_kill_char_on_foot_timed 151@ {target} $scplayer {time} 4000

:SYN6_8897
goto @SYN6_8996

:SYN6_8904
if 
  locate_char_any_means_char_2d 151@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN6_8996
if 
  92@ <> 1
goto_if_false @SYN6_8960
set_current_char_weapon 151@ {weaponType} WeaponType.DesertEagle

:SYN6_8960
if 
  92@ == 1
goto_if_false @SYN6_8985
set_current_char_weapon 151@ {weaponType} WeaponType.Ak47

:SYN6_8985
task_kill_char_on_foot_timed 151@ {target} $scplayer {time} 4000

:SYN6_8996
goto @SYN6_9012

:SYN6_9003
detach_char_from_car 151@(39@,2i)

:SYN6_9012
39@ += 1
goto @SYN6_8502

:SYN6_9026
if 
  83@ == 1
goto_if_false @SYN6_9144
if 
  TIMERA > 5000
goto_if_false @SYN6_9144
if 
  not is_char_dead 151@
goto_if_false @SYN6_9091
task_toggle_duck 151@ {state} False
detach_char_from_car 151@

:SYN6_9091
if 
  not is_char_dead 152@
goto_if_false @SYN6_9119
task_toggle_duck 152@ {state} False
detach_char_from_car 152@

:SYN6_9119
clear_prints 
print_now 'SYN6_09' {time} 6000 {flag} 1
goto @SYN6_9169

:SYN6_9144
goto @SYN6_1606

:SYN6_9151
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN6_9169
remove_blip $garage_contact_blip
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 18000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 18000
award_player_mission_respect 50
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SYND_6'
player_made_progress 1
return 

:SYN6_9238
$tlf_underway = 2
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 34@
remove_blip 62@
if 
  not is_char_dead $scplayer
goto_if_false @SYN6_9282
remove_weapon_from_char $scplayer {weaponType} WeaponType.RocketLauncher

:SYN6_9282
clear_onscreen_counter $the_area_name
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 348
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 63---------------
// Originally: Yay Ka-Boom-Boom

:SYN7
script_name 'SYN7'
gosub @SYN7_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN7_38
gosub @SYN7_15882

:SYN7_38
gosub @SYN7_15983
terminate_this_script 

:SYN7_47
load_mission_text 'SYN7'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYN7_73
if 
  get_fading_status 
goto_if_false @SYN7_97
wait 0
goto @SYN7_73

:SYN7_97
request_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} False
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} False
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'SYND_7'

:SYN7_249
if 
  not has_cutscene_loaded 
goto_if_false @SYN7_273
wait 0
goto @SYN7_249

:SYN7_273
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SYN7_290
if 
  not has_cutscene_finished 
goto_if_false @SYN7_314
wait 0
goto @SYN7_290

:SYN7_314
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SYN7_328
if 
  get_fading_status 
goto_if_false @SYN7_352
wait 0
goto @SYN7_328

:SYN7_352
clear_cutscene 
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_420
set_char_coordinates $scplayer {x} -2031.197 {y} 161.1839 {z} 27.8516
set_char_heading $scplayer {heading} 268.0468
set_camera_behind_player 
set_player_control $player1 {state} False

:SYN7_420
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
48@ = 0
$s7_velocity = 40000
117@ = 2
register_mission_given 
35@ = load_char_decision_maker DecisionMakerType.Empty
34@ = load_char_decision_maker DecisionMakerType.Weak
36@ = load_char_decision_maker DecisionMakerType.Tough
wait 0
goto @SYN7_1167

:SYN7_493
130@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2160.533 {y} -247.0836 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 130@ {state} True
close_sequence_task 130@
131@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2163.7671 {y} -249.1202 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 1000
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 131@ {state} True
close_sequence_task 131@
132@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2167.6311 {y} -249.1143 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 500
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 132@ {state} True
close_sequence_task 132@
133@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2157.0 {y} -248.9899 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 250
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 133@ {state} True
close_sequence_task 133@
86@ = create_char PedType.Mission1 {modelId} 144 {x} -2146.0449 {y} -242.5144 {z} 35.5234
set_char_heading 86@ {heading} 90.433
set_char_weapon_skill 86@ {skill} WeaponSkill.Pro
give_weapon_to_char 86@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 86@ {accuracy} 30
set_char_shoot_rate 86@ {rate} 30
set_char_decision_maker 86@ {handleOrTemplate} 36@
87@ = create_char PedType.CivFemale {modelId} 145 {x} -2160.533 {y} -247.0836 {z} 35.5234
set_char_heading 87@ {heading} 176.3351
perform_sequence_task 87@ {sequence} 130@
88@ = create_char PedType.CivFemale {modelId} 145 {x} -2163.7671 {y} -249.1202 {z} 35.5234
set_char_heading 88@ {heading} 11.5708
perform_sequence_task 88@ {sequence} 131@
89@ = create_char PedType.CivMale {modelId} 146 {x} -2167.6311 {y} -249.1143 {z} 35.5234
set_char_heading 89@ {heading} 1.311
perform_sequence_task 89@ {sequence} 132@
90@ = create_char PedType.CivMale {modelId} 146 {x} -2157.0 {y} -248.9899 {z} 35.5234
set_char_heading 90@ {heading} 0.8891
perform_sequence_task 90@ {sequence} 133@
47@ = 0

:SYN7_1083
if 
  47@ <> 0
goto_if_false @SYN7_1144
if 
  not is_char_dead 86@(47@,8i)
goto_if_false @SYN7_1144
set_char_is_target_priority 86@(47@,8i) {state} False
set_char_decision_maker 86@(47@,8i) {handleOrTemplate} 34@

:SYN7_1144
47@ += 1
  47@ >= 5
goto_if_false @SYN7_1083
return 

:SYN7_1167
set_group_separation_range $Players_Group {range} 100.0
switch_ped_roads_off -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_roads_off -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_off -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
TIMERA = 0
set_camera_behind_player 
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_1308
set_char_heading $scplayer {heading} 280.0

:SYN7_1308
40@ = add_blip_for_coord -1688.901 {y} 1035.95 {z} 43.7187
request_model 549
request_model 50
request_animation "CAR"
request_model 330
request_model #HEALTH
request_model 346

:SYN7_1359
if or
  not has_model_loaded 549
  not has_model_loaded 50
  not has_animation_loaded "CAR"
  not has_model_loaded 330
  not has_model_loaded #HEALTH
goto_if_false @SYN7_1407
wait 0
goto @SYN7_1359

:SYN7_1407
if 
  not has_model_loaded 346
goto_if_false @SYN7_1434
wait 0
goto @SYN7_1407

:SYN7_1434
121@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} -2182.6521 {y} -247.3813 {z} 36.4
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
45@ = create_object #WONGS_GATE {x} -2127.0 {y} -80.8 {z} 34.3281
set_object_heading 45@ {heading} 180.0
46@ = create_object #DYN_RAMP {x} -2175.2 {y} -209.7745 {z} 34.3281
set_object_heading 46@ {heading} 85.6854
custom_plate_for_next_car 549 {text} "TIMEBOMB"
38@ = create_car 549 {x} -1688.901 {y} 1035.95 {z} 44.6
set_vehicle_dirt_level 38@ {level} 12.0
freeze_car_position 38@ {state} True
set_can_burst_car_tyres 38@ {state} False
set_car_heading 38@ {heading} 90.0
set_car_health 38@ {health} 1000
37@ = create_char PedType.CivMale {modelId} 50 {x} -1689.12 {y} 1038.2 {z} 44.2
set_char_health 37@ {health} 800
set_char_max_health 37@ {maxHealth} 800
set_char_never_targetted 37@ {state} True
set_char_collision 37@ {state} False
set_char_heading 37@ {heading} 0.0
task_play_anim 37@ {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_char_accuracy 37@ {accuracy} 100
set_char_decision_maker 37@ {handleOrTemplate} 35@
set_ped_density_multiplier 0.5
set_car_density_multiplier 1.0
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
TIMERB = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200

:SYN7_1790
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN7_1816
wait 0
goto @SYN7_1790

:SYN7_1816
play_mission_audio MissionAudioSlot.Slot3
gosub @SYN7_16516
set_fixed_camera_position -2029.134 {y} 164.0932 {z} 29.0052 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2029.778 {y} 163.3323 {z} 28.9291 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_1901
task_use_mobile_phone $scplayer {start} True

:SYN7_1901
wait 2000
print_now 'MTG01A' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20000

:SYN7_1933
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_1959
wait 0
goto @SYN7_1933

:SYN7_1959
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:SYN7_1970
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_1996
wait 0
goto @SYN7_1970

:SYN7_1996
wait 500
gosub @SYN7_16549

:SYN7_2008
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_14615
wait 0
gosub @SYN7_16652
gosub @SYN7_16945
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  113@ <> 8
  113@ <> 0
goto_if_false @SYN7_2080
113@ = 7

:SYN7_2080
if and
  117@ == 2
  113@ == 0
goto_if_false @SYN7_2141
set_lvar_text_label 127@s = 'MTG01B'
set_lvar_int_to_constant 118@ = 20004
gosub @SYN7_16925
113@ = 1

:SYN7_2141
if and
  117@ == 2
  113@ == 1
goto_if_false @SYN7_2226
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2190
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2190
set_lvar_text_label 127@s = 'MTG01C'
set_lvar_int_to_constant 118@ = 20001
gosub @SYN7_16925
113@ = 2

:SYN7_2226
if and
  117@ == 2
  113@ == 2
goto_if_false @SYN7_2308
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2272
stop_char_facial_talk $scplayer

:SYN7_2272
set_lvar_text_label 127@s = 'MTG01D'
set_lvar_int_to_constant 118@ = 20005
gosub @SYN7_16925
113@ = 3

:SYN7_2308
if and
  117@ == 2
  113@ == 3
goto_if_false @SYN7_2393
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2357
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2357
set_lvar_text_label 127@s = 'MTG01E'
set_lvar_int_to_constant 118@ = 20002
gosub @SYN7_16925
113@ = 4

:SYN7_2393
if and
  117@ == 2
  113@ == 4
goto_if_false @SYN7_2475
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2439
stop_char_facial_talk $scplayer

:SYN7_2439
set_lvar_text_label 127@s = 'MTG01F'
set_lvar_int_to_constant 118@ = 20006
gosub @SYN7_16925
113@ = 5

:SYN7_2475
if and
  117@ == 2
  113@ == 5
goto_if_false @SYN7_2536
set_lvar_text_label 127@s = 'MTG01G'
set_lvar_int_to_constant 118@ = 20007
gosub @SYN7_16925
113@ = 6

:SYN7_2536
if and
  117@ == 2
  113@ == 6
goto_if_false @SYN7_2621
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2585
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2585
set_lvar_text_label 127@s = 'MTG01H'
set_lvar_int_to_constant 118@ = 20003
gosub @SYN7_16925
113@ = 7

:SYN7_2621
if and
  117@ == 2
  113@ == 7
goto_if_false @SYN7_2718
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2667
stop_char_facial_talk $scplayer

:SYN7_2667
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2690
task_use_mobile_phone $scplayer {start} False

:SYN7_2690
mark_model_as_no_longer_needed 330
print_now 'SYN7_01' {time} 9000 {flag} 1
113@ = 8

:SYN7_2718
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYN7_2740
goto @SYN7_14698

:SYN7_2740
$s7_rnd = get_char_speed $scplayer
if or
  locate_char_any_means_3d $scplayer {x} -2129.3081 {y} -129.0417 {z} 34.3203 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 500.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2149.624 {y} -244.8758 {z} 35.5234 {xRadius} 98.0 {yRadius} 98.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @SYN7_2854
$s7_timer = 1
set_wanted_multiplier 0.0
goto @SYN7_2868

:SYN7_2854
$s7_timer = 0
set_wanted_multiplier 1.0

:SYN7_2868
if and
  48@ == 0
  not is_char_dead $scplayer
goto_if_false @SYN7_5815
if 
  locate_char_any_means_3d $scplayer {x} -1699.484 {y} 1030.651 {z} 44.2187 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN7_5815
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2962
set_player_control $player1 {state} False

:SYN7_2962
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3001
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:SYN7_3001
113@ = 8
gosub @SYN7_16516
set_fixed_camera_position -1721.071 {y} 1024.804 {z} 49.7941 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1720.161 {y} 1025.186 {z} 49.6318 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3099
task_leave_any_car $scplayer
wait 2000
goto @SYN7_3124

:SYN7_3099
task_go_straight_to_coord $scplayer {x} -1696.49 {y} 1034.98 {z} 45.11 {speed} MoveState.Walk {time} 2000

:SYN7_3124
gosub @SYN7_16586
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1825

:SYN7_3138
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN7_3164
wait 0
goto @SYN7_3138

:SYN7_3164
request_model 145
request_model 146
request_model 144
request_model 48
request_model 46
request_model 352
request_model 412
request_animation "INT_HOUSE"

:SYN7_3210
if or
  not has_model_loaded 145
  not has_model_loaded 146
  not has_model_loaded 144
  not has_model_loaded 48
  not has_model_loaded 46
goto_if_false @SYN7_3255
wait 0
goto @SYN7_3210

:SYN7_3255
if or
  not has_model_loaded 352
  not has_model_loaded 412
  not has_animation_loaded "INT_HOUSE"
goto_if_false @SYN7_3300
wait 0
goto @SYN7_3255

:SYN7_3300
request_car_recording 483

:SYN7_3305
if 
  not has_car_recording_been_loaded 483
goto_if_false @SYN7_3332
wait 0
goto @SYN7_3305

:SYN7_3332
if 
  not is_char_dead 37@
goto_if_false @SYN7_3394
137@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1692.068 {y} 1036.196 {z} 44.2109 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} 37@
task_toggle_duck -1 {state} True
close_sequence_task 137@

:SYN7_3394
if 
  not is_car_dead 38@
goto_if_false @SYN7_3510
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_3465
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3465
warp_char_from_car_to_coord $scplayer {x} -1693.321 {y} 1034.3199 {z} 44.2109

:SYN7_3465
set_char_coordinates $scplayer {x} -1693.321 {y} 1034.3199 {z} 44.2109
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 329.4165
perform_sequence_task $scplayer {sequence} 137@

:SYN7_3510
wait 1500
clear_prints 
set_fixed_camera_position -1694.2159 {y} 1036.72 {z} 45.3716 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1693.236 {y} 1036.801 {z} 45.1866 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
TIMERA = 0
if 
  not is_car_dead 38@
goto_if_false @SYN7_3620
39@ = add_blip_for_car 38@
change_blip_display 39@ {display} BlipDisplay.Neither
set_blip_as_friendly 39@ {state} True

:SYN7_3620
if 
  not is_char_dead 37@
goto_if_false @SYN7_3644
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundMechanicAttachCarBomb

:SYN7_3644
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20800

:SYN7_3655
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_3681
wait 0
goto @SYN7_3655

:SYN7_3681
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AA' {time} 3000 {flag} 1
TIMERA = 0

:SYN7_3708
if 
  2000 > TIMERA
goto_if_false @SYN7_3762
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_3755
goto @SYN7_5260

:SYN7_3755
goto @SYN7_3708

:SYN7_3762
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20802

:SYN7_3773
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_3799
wait 0
goto @SYN7_3773

:SYN7_3799
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AB' {time} 2000 {flag} 1
TIMERA = 0

:SYN7_3826
if 
  1000 > TIMERA
goto_if_false @SYN7_3880
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_3873
goto @SYN7_5260

:SYN7_3873
goto @SYN7_3826

:SYN7_3880
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_3944
138@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
close_sequence_task 138@

:SYN7_3944
if and
  not is_char_dead $scplayer
  not is_car_dead 38@
goto_if_false @SYN7_4007
task_toggle_duck $scplayer {state} False
task_go_straight_to_coord $scplayer {x} -1690.423 {y} 1034.0031 {z} 44.2109 {speed} MoveState.Walk {time} 6000
task_enter_car_as_driver $scplayer {vehicle} 38@ {time} -1

:SYN7_4007
TIMERA = 0

:SYN7_4014
if 
  500 > TIMERA
goto_if_false @SYN7_4068
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4061
goto @SYN7_5260

:SYN7_4061
goto @SYN7_4014

:SYN7_4068
if 
  not is_char_dead 37@
goto_if_false @SYN7_4092
perform_sequence_task 37@ {sequence} 138@

:SYN7_4092
if 
  not is_char_dead 37@
goto_if_false @SYN7_4116
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundMechanicSlideOut

:SYN7_4116
TIMERA = 0

:SYN7_4123
if 
  1500 > TIMERA
goto_if_false @SYN7_4177
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4170
goto @SYN7_5260

:SYN7_4170
goto @SYN7_4123

:SYN7_4177
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20803

:SYN7_4188
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4214
wait 0
goto @SYN7_4188

:SYN7_4214
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AC' {time} 3000 {flag} 1
if 
  not is_char_dead 37@
goto_if_false @SYN7_4258
start_char_facial_talk 37@ {duration} 5000

:SYN7_4258
set_fixed_camera_position -1690.172 {y} 1033.266 {z} 45.4626 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1689.64 {y} 1034.11 {z} 45.3904 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 37@
goto_if_false @SYN7_4340
set_char_collision 37@ {state} True
task_turn_char_to_face_char 37@ {target} $scplayer

:SYN7_4340
if 
  not is_car_dead 38@
goto_if_false @SYN7_4476
set_car_coordinates 38@ {x} -1688.901 {y} 1034.95 {z} 43.7187
if 
  not is_char_dead 37@
goto_if_false @SYN7_4469
task_look_at_char $scplayer {target} 37@ {time} 5000
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_coordinates 37@ {x} -1689.12 {y} 1036.9 {z} 44.3187
set_char_heading 37@ {heading} 180.0

:SYN7_4469
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed

:SYN7_4476
TIMERB = 0

:SYN7_4483
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4533
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4526
goto @SYN7_5260

:SYN7_4526
goto @SYN7_4483

:SYN7_4533
if 
  not is_char_dead 37@
goto_if_false @SYN7_4554
stop_char_facial_talk 37@

:SYN7_4554
TIMERA = 0

:SYN7_4561
if 
  2500 > TIMERA
goto_if_false @SYN7_4615
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4608
goto @SYN7_5260

:SYN7_4608
goto @SYN7_4561

:SYN7_4615
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20804

:SYN7_4626
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4652
wait 0
goto @SYN7_4626

:SYN7_4652
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AD' {time} 4000 {flag} 1
if 
  not is_char_dead 37@
goto_if_false @SYN7_4696
start_char_facial_talk 37@ {duration} 5000

:SYN7_4696
TIMERB = 0

:SYN7_4703
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4753
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4746
goto @SYN7_5260

:SYN7_4746
goto @SYN7_4703

:SYN7_4753
if 
  not is_char_dead 37@
goto_if_false @SYN7_4774
stop_char_facial_talk 37@

:SYN7_4774
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20801

:SYN7_4785
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4811
wait 0
goto @SYN7_4785

:SYN7_4811
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_4835
start_char_facial_talk $scplayer {duration} 5000

:SYN7_4835
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AE' {time} 4000 {flag} 1
TIMERB = 0

:SYN7_4862
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4912
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4905
goto @SYN7_5260

:SYN7_4905
goto @SYN7_4862

:SYN7_4912
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_4933
stop_char_facial_talk $scplayer

:SYN7_4933
if 
  not is_car_dead 38@
goto_if_false @SYN7_4994
if 
  not is_char_dead 37@
goto_if_false @SYN7_4994
clear_char_tasks 37@
task_go_to_coord_any_means 37@ {x} -1683.17 {y} 1037.342 {z} 45.2173 {speed} MoveState.Walk {vehicle} -1

:SYN7_4994
TIMERA = 0

:SYN7_5001
if 
  1000 > TIMERA
goto_if_false @SYN7_5055
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_5048
goto @SYN7_5260

:SYN7_5048
goto @SYN7_5001

:SYN7_5055
gosub @SYN7_16586
clear_prints 
clear_area -1704.693 {y} 1027.476 {z} 44.211 {radius} 30.0 {clearParticles} True
load_scene_in_direction -1696.585 {y} 1038.498 {z} 44.2173 {heading} 150.0018
if 
  not is_car_dead 38@
goto_if_false @SYN7_5141
freeze_car_position 38@ {state} False
start_playback_recorded_car 38@ {path} 483

:SYN7_5141
set_fixed_camera_position -1696.99 {y} 1045.54 {z} 48.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.21 {y} 1036.55 {z} 45.7 {switchStyle} SwitchType.JumpCut
gosub @SYN7_16619
TIMERA = 0

:SYN7_5206
if 
  2000 > TIMERA
goto_if_false @SYN7_5260
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_5253
goto @SYN7_5260

:SYN7_5253
goto @SYN7_5206

:SYN7_5260
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_5281
stop_char_facial_talk $scplayer

:SYN7_5281
delete_char 37@
remove_animation "CAR"
if 
  not is_car_dead 38@
goto_if_false @SYN7_5343
freeze_car_position 38@ {state} False
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_5343
warp_char_into_car $scplayer {vehicle} 38@

:SYN7_5343
if 
  not is_car_dead 38@
goto_if_false @SYN7_5441
if 
  is_playback_going_on_for_car 38@
goto_if_false @SYN7_5387
skip_to_end_and_stop_playback_recorded_car 38@
goto @SYN7_5441

:SYN7_5387
clear_area -1704.615 {y} 1026.202 {z} 44.1953 {radius} 20.0 {clearParticles} True
set_car_coordinates 38@ {x} -1704.615 {y} 1026.202 {z} 44.1953
set_car_heading 38@ {heading} 168.8963

:SYN7_5441
TIMERA = 0
remove_blip 40@
change_blip_display 39@ {display} BlipDisplay.Neither
41@ = add_blip_for_coord -2128.1201 {y} -83.3848 {z} 34.314
gosub @SYN7_16549
print_now 'SYN7_03' {time} 7000 {flag} 1
139@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2128.8479 {y} -79.3918 {z} 34.2565 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 0.0
set_sequence_to_repeat 139@ {state} True
close_sequence_task 139@
140@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2128.8479 {y} -79.3918 {z} 34.2565 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 0.0
set_sequence_to_repeat 140@ {state} True
close_sequence_task 140@
42@ = create_char PedType.Mission1 {modelId} 144 {x} -2128.8479 {y} -79.3918 {z} 34.2565
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_heading 42@ {heading} 0.0
43@ = create_char PedType.Mission1 {modelId} 48 {x} -2128.8479 {y} -79.3918 {z} 34.2565
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_heading 43@ {heading} 0.0
perform_sequence_task 42@ {sequence} 139@
perform_sequence_task 43@ {sequence} 140@
47@ = 0

:SYN7_5713
set_char_accuracy 42@(47@,3i) {accuracy} 40
set_char_decision_maker 42@(47@,3i) {handleOrTemplate} 36@
set_char_relationship 42@(47@,3i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@(47@,3i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 42@(47@,3i) {range} 150.0
set_char_is_target_priority 42@(47@,3i) {state} True
47@ += 1
  47@ >= 2
goto_if_false @SYN7_5713
48@ = 1

:SYN7_5815
if 
  48@ == 1
goto_if_false @SYN7_7999
if and
  locate_char_any_means_3d $scplayer {x} -2124.501 {y} -77.7719 {z} 34.1719 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  not is_char_dead 42@
  not is_char_dead 43@
goto_if_false @SYN7_6010
if 
  83@ == 0
goto_if_false @SYN7_6010
gosub @SYN7_493
print_now 'SYN7_52' {time} 4000 {flag} 1
83@ = 1
if 
  does_blip_exist 41@
goto_if_false @SYN7_5962
change_blip_display 41@ {display} BlipDisplay.Neither

:SYN7_5962
if 
  not is_char_dead 42@
goto_if_false @SYN7_5986
84@ = add_blip_for_char 42@

:SYN7_5986
if 
  not is_char_dead 43@
goto_if_false @SYN7_6010
85@ = add_blip_for_char 43@

:SYN7_6010
if 
  not is_char_dead 43@
goto_if_false @SYN7_6159
if 
  locate_char_any_means_3d 43@ {x} -2126.9109 {y} -79.3953 {z} 34.2567 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_6088
115@ = 1
goto @SYN7_6159

:SYN7_6088
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
115@ = 0

:SYN7_6159
if 
  not is_char_dead 42@
goto_if_false @SYN7_6308
if 
  locate_char_any_means_3d 42@ {x} -2126.9109 {y} -79.3953 {z} 34.2567 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_6237
114@ = 1
goto @SYN7_6308

:SYN7_6237
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
114@ = 0

:SYN7_6308
if 
  83@ == 1
goto_if_false @SYN7_6400
if 
  is_char_dead 42@
goto_if_false @SYN7_6363
if 
  does_blip_exist 84@
goto_if_false @SYN7_6363
remove_blip 84@

:SYN7_6363
if 
  is_char_dead 43@
goto_if_false @SYN7_6400
if 
  does_blip_exist 85@
goto_if_false @SYN7_6400
remove_blip 85@

:SYN7_6400
120@ = get_area_visible 
if and
  is_char_dead 42@
  is_char_dead 43@
  120@ == 0
goto_if_false @SYN7_7999
gosub @SYN7_16586
request_animation "ON_LOOKERS"

:SYN7_6454
if 
  not has_animation_loaded "ON_LOOKERS"
goto_if_false @SYN7_6490
wait 0
goto @SYN7_6454

:SYN7_6490
gosub @SYN7_16516
52@ = create_char PedType.Mission1 {modelId} 46 {x} -2125.8711 {y} -97.1422 {z} 34.3281
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
task_play_anim 52@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 3000
if or
  115@ == 1
  114@ == 1
goto_if_false @SYN7_6666
set_fixed_camera_position -2113.1499 {y} -72.3184 {z} 40.9064 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2113.918 {y} -72.8274 {z} 40.5167 {switchStyle} SwitchType.JumpCut
goto @SYN7_6717

:SYN7_6666
set_fixed_camera_position -2125.6421 {y} -95.0874 {z} 35.6371 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2125.762 {y} -96.0758 {z} 35.7291 {switchStyle} SwitchType.JumpCut

:SYN7_6717
gosub @SYN7_16619
$s7_in_compound = generate_random_int_in_range 0 {max} 3
switch_start $s7_in_compound {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_6988 {caseNum1} 0 {caseLabel1} @SYN7_6796 {caseNum2} 1 {caseLabel2} @SYN7_6860 {caseNum3} 2 {caseLabel3} @SYN7_6924 {caseNum4} -1 {caseLabel4} @SYN7_6988 {caseNum5} -1 {caseLabel5} @SYN7_6988 {caseNum6} -1 {caseLabel6} @SYN7_6988 {caseNum7} -1 {caseLabel7} @SYN7_6988

:SYN7_6796
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20805

:SYN7_6807
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6833
wait 0
goto @SYN7_6807

:SYN7_6833
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BA' {time} 4000 {flag} 1
goto @SYN7_6988

:SYN7_6860
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20806

:SYN7_6871
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6897
wait 0
goto @SYN7_6871

:SYN7_6897
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BB' {time} 4000 {flag} 1
goto @SYN7_6988

:SYN7_6924
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20807

:SYN7_6935
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6961
wait 0
goto @SYN7_6935

:SYN7_6961
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BC' {time} 4000 {flag} 1
goto @SYN7_6988

:SYN7_6988
wait 4000
if and
  not is_char_dead $scplayer
  not is_car_dead 38@
goto_if_false @SYN7_7087
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_7087
clear_area -2127.7991 {y} -68.8104 {z} 34.1719 {radius} 10.0 {clearParticles} True
set_car_coordinates 38@ {x} -2127.7991 {y} -68.8104 {z} 34.1719
set_car_heading 38@ {heading} 180.0

:SYN7_7087
clear_area -2129.2561 {y} -74.4958 {z} 34.1719 {radius} 100.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 144 {x} -2119.011 {y} -99.2082 {z} 34.3281
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 1000
51@ = create_char PedType.Mission1 {modelId} 48 {x} -2121.1731 {y} -108.9207 {z} 34.3281
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 1000
53@ = create_char PedType.Mission1 {modelId} 48 {x} -2104.2 {y} -162.4759 {z} 34.3273
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 1000
54@ = create_char PedType.Mission1 {modelId} 46 {x} -2100.0959 {y} -157.8681 {z} 34.3273
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
55@ = create_char PedType.Mission1 {modelId} 144 {x} -2162.635 {y} -224.1719 {z} 35.5156
set_char_heading 55@ {heading} 350.5417
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 1000
47@ = 0

:SYN7_7307
if 
  not is_char_dead 50@(47@,10i)
goto_if_false @SYN7_7398
set_char_shoot_rate 50@(47@,10i) {rate} 30
set_char_accuracy 50@(47@,10i) {accuracy} 30
set_char_is_target_priority 50@(47@,10i) {state} True
set_char_decision_maker 50@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 50@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 50@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1

:SYN7_7398
47@ += 1
  47@ >= 6
goto_if_false @SYN7_7307
141@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2126.144 {y} -82.2896 {z} 34.3203 {speed} MoveState.Run {time} -1
task_goto_char -1 {target} $scplayer {time} -1 {radius} 5.0
close_sequence_task 141@
perform_sequence_task 50@ {sequence} 141@
perform_sequence_task 51@ {sequence} 141@
if 
  not is_char_dead 52@
goto_if_false @SYN7_7548
clear_char_tasks_immediately 52@
task_play_anim 52@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 3000

:SYN7_7548
task_goto_char 53@ {target} $scplayer {time} -1 {radius} 5.0
task_goto_char 54@ {target} $scplayer {time} -1 {radius} 5.0
set_fixed_camera_position -2119.3999 {y} -92.22 {z} 34.61 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2170.1699 {y} -161.04 {z} 46.68 {switchStyle} SwitchType.JumpCut
$s7_in_compound = generate_random_int_in_range 0 {max} 3
switch_start $s7_in_compound {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_7893 {caseNum1} 0 {caseLabel1} @SYN7_7701 {caseNum2} 1 {caseLabel2} @SYN7_7765 {caseNum3} 2 {caseLabel3} @SYN7_7829 {caseNum4} -1 {caseLabel4} @SYN7_7893 {caseNum5} -1 {caseLabel5} @SYN7_7893 {caseNum6} -1 {caseLabel6} @SYN7_7893 {caseNum7} -1 {caseLabel7} @SYN7_7893

:SYN7_7701
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20808

:SYN7_7712
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7738
wait 0
goto @SYN7_7712

:SYN7_7738
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CA' {time} 4000 {flag} 1
goto @SYN7_7893

:SYN7_7765
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20809

:SYN7_7776
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7802
wait 0
goto @SYN7_7776

:SYN7_7802
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CB' {time} 4000 {flag} 1
goto @SYN7_7893

:SYN7_7829
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20810

:SYN7_7840
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7866
wait 0
goto @SYN7_7840

:SYN7_7866
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CC' {time} 4000 {flag} 1
goto @SYN7_7893

:SYN7_7893
wait 4000
gosub @SYN7_16549
remove_blip 41@
70@ = add_blip_for_coord -2175.2429 {y} -209.7745 {z} 34.3281
if and
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_7977
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_7977
change_blip_display 70@ {display} BlipDisplay.Neither

:SYN7_7977
TIMERB = 0
report_mission_audio_event_at_object 45@ {soundId} ScriptSound.SoundMeshGateOpenStart
48@ = 2

:SYN7_7999
if and
  48@ == 2
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_8518
if 
  does_object_exist 45@
goto_if_false @SYN7_8155
$x, $y, $z = get_object_coordinates 45@
if 
  -2117.0 > $x
goto_if_false @SYN7_8122
  slide_object 45@ {posX} -2117.0 {posY} -80.8 {posZ} 34.3281 {speedX} 0.2 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto @SYN7_8155

:SYN7_8122
if 
  122@ == 0
goto_if_false @SYN7_8155
report_mission_audio_event_at_object 45@ {soundId} ScriptSound.SoundMeshGateOpenStop
122@ = 1

:SYN7_8155
if and
  locate_char_any_means_3d $scplayer {x} -2138.2119 {y} -201.8113 {z} 34.3281 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  72@ == 0
goto_if_false @SYN7_8307
print_now 'SYN7_35' {time} 4000 {flag} 1
47@ = 0

:SYN7_8233
delete_char 50@(47@,10i)
47@ += 1
  47@ >= 6
goto_if_false @SYN7_8233
47@ = 0

:SYN7_8270
delete_char 42@(47@,3i)
47@ += 1
  47@ >= 2
goto_if_false @SYN7_8270
72@ = 1

:SYN7_8307
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_8518
if 
  locate_char_any_means_3d $scplayer {x} -2181.76 {y} -209.4146 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN7_8422
print_now 'SYN7_34' {time} 6000 {flag} 1
remove_blip 70@
71@ = add_blip_for_coord -2184.0591 {y} -263.4215 {z} 35.5234
48@ = 3

:SYN7_8422
if 
  locate_char_any_means_3d $scplayer {x} -2184.9829 {y} -218.1104 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN7_8518
print_now 'SYN7_34' {time} 6000 {flag} 1
remove_blip 70@
71@ = add_blip_for_coord -2184.0591 {y} -263.4215 {z} 35.5234
48@ = 3

:SYN7_8518
if and
  48@ == 3
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_10121
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_10119
if and
  locate_char_any_means_3d $scplayer {x} -2150.5271 {y} -241.7461 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  not is_char_dead 86@
  94@ == 0
goto_if_false @SYN7_8884
$s7_in_compound = generate_random_int_in_range 0 {max} 5
switch_start $s7_in_compound {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN7_8877 {caseNum1} 0 {caseLabel1} @SYN7_8697 {caseNum2} 1 {caseLabel2} @SYN7_8733 {caseNum3} 2 {caseLabel3} @SYN7_8769 {caseNum4} 3 {caseLabel4} @SYN7_8805 {caseNum5} 4 {caseLabel5} @SYN7_8841 {caseNum6} -1 {caseLabel6} @SYN7_8877 {caseNum7} -1 {caseLabel7} @SYN7_8877

:SYN7_8697
set_lvar_text_label 127@s = 'SYN7_DA'
set_lvar_int_to_constant 118@ = 20811
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8733
set_lvar_text_label 127@s = 'SYN7_DB'
set_lvar_int_to_constant 118@ = 20812
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8769
set_lvar_text_label 127@s = 'SYN7_DC'
set_lvar_int_to_constant 118@ = 20813
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8805
set_lvar_text_label 127@s = 'SYN7_DD'
set_lvar_int_to_constant 118@ = 20814
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8841
set_lvar_text_label 127@s = 'SYN7_DE'
set_lvar_int_to_constant 118@ = 20815
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8877
94@ = 1

:SYN7_8884
if 
  locate_char_any_means_3d $scplayer {x} -2184.0591 {y} -263.4215 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} 73@
goto_if_false @SYN7_10103
print_help_forever 'SYN7_20'
73@ = 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @SYN7_10096
48@ = 4
clear_help 
if 
  not is_car_dead 38@
goto_if_false @SYN7_9024
freeze_car_position 38@ {state} True
set_car_lights_on 38@ {state} False
74@ = open_sequence_task 
task_leave_car -1 {vehicle} 38@
close_sequence_task 74@

:SYN7_9024
142@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2146.042 {y} -259.7312 {z} 39.7195 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2146.229 {y} -267.7039 {z} 39.7195 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2156.51 {y} -268.1435 {z} 39.7195 {speed} MoveState.Run {time} -2
close_sequence_task 142@
60@ = create_char PedType.Mission1 {modelId} 144 {x} -2140.9309 {y} -253.9011 {z} 39.7195
set_char_heading 60@ {heading} 150.6317
perform_sequence_task 60@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2162.2639 {y} -260.4177 {z} 35.5234 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2167.7649 {y} -261.495 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
61@ = create_char PedType.Mission1 {modelId} 48 {x} -2162.2361 {y} -230.954 {z} 35.522
set_char_heading 61@ {heading} 231.2343
perform_sequence_task 61@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2154.9231 {y} -248.2299 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
62@ = create_char PedType.Mission1 {modelId} 46 {x} -2168.3369 {y} -228.406 {z} 35.522
set_char_heading 62@ {heading} 294.489
perform_sequence_task 62@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2156.835 {y} -234.232 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
63@ = create_char PedType.Mission1 {modelId} 46 {x} -2168.74 {y} -231.348 {z} 35.5234
set_char_heading 63@ {heading} 278.3553
perform_sequence_task 63@ {sequence} 142@
clear_sequence_task 142@
64@ = create_char PedType.Mission1 {modelId} 46 {x} -2162.417 {y} -227.2437 {z} 35.5143
set_char_heading 64@ {heading} 196.0546
task_stay_in_same_place 64@ {state} True
47@ = 0

:SYN7_9651
set_char_shoot_rate 60@(47@,10i) {rate} 30
set_char_accuracy 60@(47@,10i) {accuracy} 30
set_char_is_target_priority 60@(47@,10i) {state} True
if 
  47@ == 4
goto_if_false @SYN7_9734
set_char_weapon_skill 60@(47@,10i) {skill} WeaponSkill.Pro
give_weapon_to_char 60@(47@,10i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @SYN7_9759

:SYN7_9734
give_weapon_to_char 60@(47@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 60@(47@,10i) {weaponType} WeaponType.MicroUzi

:SYN7_9759
set_char_decision_maker 60@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 60@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 60@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
47@ += 1
  47@ >= 5
goto_if_false @SYN7_9651
gosub @SYN7_16516
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
load_scene_in_direction -2150.4399 {y} -239.1755 {z} 35.5234 {heading} 52.2777
set_fixed_camera_position -2152.8601 {y} -236.6111 {z} 37.0321 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2153.623 {y} -235.9684 {z} 36.9637 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 64@
goto_if_false @SYN7_9979
task_play_anim 64@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000

:SYN7_9979
print_now 'SYN7_37' {time} 4000 {flag} 1
set_wanted_multiplier 0.0
wait 4000
gosub @SYN7_16549
if and
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_10043
task_leave_car $scplayer {vehicle} 38@

:SYN7_10043
remove_blip 71@
display_onscreen_timer_with_string $s7_velocity {direction} TimerDirection.Down {text} 'SYN7_18'
75@ = add_blip_for_coord -2162.9641 {y} -225.5678 {z} 35.5156
TIMERA = 0
clear_wanted_level $player1

:SYN7_10096
goto @SYN7_10112

:SYN7_10103
clear_help 
73@ = 1

:SYN7_10112
goto @SYN7_10121

:SYN7_10119
clear_help 

:SYN7_10121
if 
  48@ == 4
goto_if_false @SYN7_12109
if and
  TIMERA > 4000
  78@ == 0
goto_if_false @SYN7_10172
78@ = 1

:SYN7_10172
if 
  $s7_velocity == 0
goto_if_false @SYN7_10204
76@ = 1
goto @SYN7_11853

:SYN7_10204
if or
  locate_char_any_means_3d $scplayer {x} -2162.9641 {y} -225.5678 {z} 35.5156 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2186.166 {y} -216.9555 {z} 35.5143 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @SYN7_12109
gosub @SYN7_16586
gosub @SYN7_16516
load_scene -2187.5049 {y} -263.5027 {z} 36.5551
load_scene_in_direction -2157.0591 {y} -262.1108 {z} 35.5156 {heading} 89.9913
remove_blip 75@
41@ = add_blip_for_coord -2127.2 {y} -84.9324 {z} 34.3273
clear_onscreen_timer $s7_velocity
set_fixed_camera_position -2168.97 {y} -262.731 {z} 36.3878 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2169.968 {y} -262.7543 {z} 36.453 {switchStyle} SwitchType.JumpCut
gosub @SYN7_16619
if 
  not is_car_dead 38@
goto_if_false @SYN7_10457
explode_car_in_cutscene_shake_and_bits 38@ {shake} True {effect} True {sound} True

:SYN7_10457
wait 100
add_explosion -2187.5049 {y} -263.5027 {z} 36.5551 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.1799 {y} -263.8283 {z} 39.8421 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.1799 {y} -263.8283 {z} 42.8421 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.4319 {y} -259.6525 {z} 42.0391 {type} ExplosionType.Grenade
add_explosion -2188.3989 {y} -266.6203 {z} 42.6058 {type} ExplosionType.Grenade
wait 500
add_explosion -2185.595 {y} -265.3064 {z} 47.5696 {type} ExplosionType.Grenade
wait 500
add_explosion -2184.7739 {y} -262.4794 {z} 37.4383 {type} ExplosionType.Grenade
add_explosion -2187.574 {y} -262.5659 {z} 39.7252 {type} ExplosionType.Grenade
wait 500
if 
  locate_char_any_means_3d $scplayer {x} -2163.6001 {y} -225.62 {z} 36.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_10808
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_10771
$car = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984
clear_area -2162.7339 {y} -225.3373 {z} 35.4984 {radius} 10.0 {clearParticles} True
delete_car $car
goto @SYN7_10791

:SYN7_10771
set_char_coordinates $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984

:SYN7_10791
set_char_heading $scplayer {heading} 0.0
77@ = 0

:SYN7_10808
if 
  locate_char_any_means_3d $scplayer {x} -2186.166 {y} -216.9555 {z} 35.5143 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_10993
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_10936
$car = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984
clear_area -2162.7339 {y} -225.3373 {z} 35.4984 {radius} 10.0 {clearParticles} True
delete_car $car
goto @SYN7_10956

:SYN7_10936
set_char_coordinates $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984

:SYN7_10956
set_char_coordinates $scplayer {x} -2181.3311 {y} -217.6694 {z} 35.5078
set_char_heading $scplayer {heading} 286.3482
77@ = 1

:SYN7_10993
gosub @SYN7_16586
remove_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} False
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} True
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} False
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} True
wait 1000
if 
  77@ == 0
goto_if_false @SYN7_11182
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_11182
set_char_coordinates $scplayer {x} -2160.729 {y} -220.985 {z} 34.3203
set_char_heading $scplayer {heading} 336.7796

:SYN7_11182
if 
  77@ == 1
goto_if_false @SYN7_11246
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_11246
set_char_coordinates $scplayer {x} -2175.5129 {y} -214.8866 {z} 34.3203
set_char_heading $scplayer {heading} 298.3929

:SYN7_11246
gosub @SYN7_14622
load_scene_in_direction -2162.283 {y} -220.5315 {z} 34.3203 {heading} 324.4546
gosub @SYN7_16549
95@ = create_char PedType.Mission1 {modelId} 144 {x} -2132.0439 {y} -168.6656 {z} 34.3273
set_char_heading 95@ {heading} 168.3635
task_go_straight_to_coord 95@ {x} -2141.7661 {y} -206.9254 {z} 34.3203 {speed} MoveState.Run {time} -1
96@ = create_char PedType.Mission1 {modelId} 48 {x} -2136.8779 {y} -167.5268 {z} 34.3203
set_char_heading 96@ {heading} 172.0629
task_go_straight_to_coord 96@ {x} -2141.7661 {y} -206.9254 {z} 34.3203 {speed} MoveState.Run {time} -1
105@ = create_car 412 {x} -2124.606 {y} -87.9687 {z} 34.3203
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 231.2455
97@ = create_char_inside_car 105@ {pedType} PedType.Mission1 {modelId} 144
98@ = create_char_as_passenger 105@ {pedType} PedType.Mission1 {modelId} 144 {seat} SeatId.BikeRear
99@ = create_char PedType.Mission1 {modelId} 144 {x} -2103.291 {y} -133.9342 {z} 34.3273
set_char_heading 99@ {heading} 170.6763
100@ = create_char PedType.Mission1 {modelId} 48 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 100@ {heading} 174.6227
101@ = create_char PedType.Mission1 {modelId} 48 {x} -2145.116 {y} -181.3902 {z} 37.6913
set_char_heading 101@ {heading} 176.688
task_stay_in_same_place 101@ {state} True
task_toggle_duck 101@ {state} True
102@ = create_char PedType.Mission1 {modelId} 48 {x} -2111.8081 {y} -159.8649 {z} 34.3273
set_char_heading 102@ {heading} 138.7297
task_stay_in_same_place 102@ {state} True
47@ = 0

:SYN7_11642
give_weapon_to_char 95@(47@,10i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_accuracy 95@(47@,10i) {accuracy} 30
set_char_shoot_rate 95@(47@,10i) {rate} 30
set_char_decision_maker 95@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 95@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 95@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 95@(47@,10i) {range} 70.0
set_char_is_target_priority 95@(47@,10i) {state} True
47@ += 1
  47@ >= 8
goto_if_false @SYN7_11642
request_car_recording 485

:SYN7_11767
if 
  not has_car_recording_been_loaded 485
goto_if_false @SYN7_11794
wait 0
goto @SYN7_11767

:SYN7_11794
if 
  not is_car_dead 105@
goto_if_false @SYN7_11823
start_playback_recorded_car 105@ {path} 485
pause_playback_recorded_car 105@

:SYN7_11823
gosub @SYN7_16619
if and
  76@ == 1
  not is_char_dead $scplayer
goto_if_false @SYN7_12086

:SYN7_11853
$x, $y, $z = get_char_coordinates $scplayer
47@ = 0

:SYN7_11874
task_die $scplayer
$x, $y, $z = get_char_coordinates $scplayer
$health_counter = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
$x, $y, $z = get_char_coordinates $scplayer
$health_counter = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
$x, $y, $z = get_char_coordinates $scplayer
$health_counter = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
wait 500
47@ += 1
  47@ >= 4
goto_if_false @SYN7_11874
goto @SYN7_15882

:SYN7_12086
print_now 'SYN7_23' {time} 4000 {flag} 1
48@ = 5

:SYN7_12109
if 
  48@ == 5
goto_if_false @SYN7_13735
if 
  124@ == 0
goto_if_false @SYN7_12300
if or
  locate_char_any_means_3d $scplayer {x} -2118.54 {y} -169.3188 {z} 34.3273 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2118.54 {y} -169.3188 {z} 34.3273 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_12300
if 
  not is_char_dead 102@
goto_if_false @SYN7_12293
126@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 126@
perform_sequence_task 102@ {sequence} 126@
clear_sequence_task 126@

:SYN7_12293
124@ = 1

:SYN7_12300
if 
  123@ == 1
goto_if_false @SYN7_12405
if 
  not is_car_dead 105@
goto_if_false @SYN7_12405
if 
  not is_playback_going_on_for_car 105@
goto_if_false @SYN7_12405
if 
  not is_char_dead 97@
goto_if_false @SYN7_12374
task_leave_car 97@ {vehicle} 105@

:SYN7_12374
if 
  not is_char_dead 98@
goto_if_false @SYN7_12398
task_leave_car 98@ {vehicle} 105@

:SYN7_12398
123@ = 2

:SYN7_12405
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2097.7229 {leftBottomY} -109.9725 {leftBottomZ} 30.0 {rightTopX} -2155.9919 {rightTopY} -122.742 {rightTopZ} 40.0 {drawSphere} False
  123@ == 0
goto_if_false @SYN7_12509
if and
  not is_car_dead 105@
  is_playback_going_on_for_car 105@
goto_if_false @SYN7_12502
if 
  not is_car_dead 105@
goto_if_false @SYN7_12502
unpause_playback_recorded_car 105@

:SYN7_12502
123@ = 1

:SYN7_12509
if and
  $s7_timer == 0
  123@ == 0
goto_if_false @SYN7_12597
if and
  not is_car_dead 105@
  is_playback_going_on_for_car 105@
goto_if_false @SYN7_12576
if 
  not is_car_dead 105@
goto_if_false @SYN7_12576
unpause_playback_recorded_car 105@

:SYN7_12576
TIMERA = 0
79@ = 1
123@ = 1

:SYN7_12597
if and
  locate_char_any_means_3d $scplayer {x} -2127.3701 {y} -85.497 {z} 35.5234 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  79@ == 0
goto_if_false @SYN7_12682
TIMERA = 0
79@ = 1
print_now 'SYN7_13' {time} 3000 {flag} 1

:SYN7_12682
if and
  TIMERA > 3000
  79@ == 1
goto_if_false @SYN7_13090
if 
  not is_car_dead 105@
goto_if_false @SYN7_12757
if 
  125@ == 0
goto_if_false @SYN7_12757
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True

:SYN7_12757
81@ = add_blip_for_coord -2145.9629 {y} -117.1968 {z} 38.1988
change_blip_display 81@ {display} BlipDisplay.Neither
remove_blip 41@
print_now 'SYN7_38' {time} 5000 {flag} 1
79@ = 2
108@ = create_char PedType.Mission1 {modelId} 48 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 108@ {heading} 174.6227
109@ = create_char PedType.Mission1 {modelId} 144 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 109@ {heading} 174.6227
110@ = create_char PedType.Mission1 {modelId} 48 {x} -2136.1089 {y} -180.0674 {z} 34.3203
set_char_heading 110@ {heading} 297.2213
111@ = create_char PedType.Mission1 {modelId} 144 {x} -2140.6001 {y} -169.5873 {z} 34.3203
set_char_heading 111@ {heading} 258.2443
112@ = create_char PedType.Mission1 {modelId} 144 {x} -2143.4629 {y} -147.7724 {z} 35.3922
set_char_heading 112@ {heading} 209.4012
47@ = 0

:SYN7_12992
give_weapon_to_char 108@(47@,5i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_decision_maker 108@(47@,5i) {handleOrTemplate} 36@
set_char_relationship 108@(47@,5i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 108@(47@,5i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 108@(47@,5i) {range} 70.0
set_char_is_target_priority 108@(47@,5i) {state} True
47@ += 1
  47@ >= 5
goto_if_false @SYN7_12992

:SYN7_13090
if and
  TIMERA > 10000
  79@ == 2
goto_if_false @SYN7_13123
79@ = 3

:SYN7_13123
if 
  is_car_dead 105@
goto_if_false @SYN7_13167
if 
  does_blip_exist 107@
goto_if_false @SYN7_13160
remove_blip 107@

:SYN7_13160
change_blip_display 81@ {display} BlipDisplay.Both

:SYN7_13167
if 
  not is_car_dead 105@
goto_if_false @SYN7_13276
if and
  not is_char_in_car $scplayer {vehicle} 105@
  79@ > 1
goto_if_false @SYN7_13246
change_blip_display 107@ {display} BlipDisplay.Both
if 
  does_blip_exist 81@
goto_if_false @SYN7_13239
change_blip_display 81@ {display} BlipDisplay.Neither

:SYN7_13239
goto @SYN7_13276

:SYN7_13246
change_blip_display 107@ {display} BlipDisplay.Neither
if 
  does_blip_exist 81@
goto_if_false @SYN7_13276
change_blip_display 81@ {display} BlipDisplay.Both

:SYN7_13276
if 
  $s7_timer == 0
goto_if_false @SYN7_13400
if 
  does_blip_exist 41@
goto_if_false @SYN7_13315
remove_blip 41@

:SYN7_13315
if 
  does_blip_exist 81@
goto_if_false @SYN7_13336
remove_blip 81@

:SYN7_13336
if 
  does_blip_exist 81@
goto_if_false @SYN7_13357
remove_blip 107@

:SYN7_13357
48@ = 6
82@ = add_blip_for_coord -2029.603 {y} 156.7249 {z} 27.8429
print_now 'SYN7_39' {time} 6000 {flag} 1

:SYN7_13400
if or
  locate_char_any_means_3d $scplayer {x} -2149.364 {y} -111.5658 {z} 40.9064 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2143.429 {y} -111.1119 {z} 41.0391 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SYN7_13735
if and
  $s7_rnd > 10.0
  is_char_in_any_car $scplayer
goto_if_false @SYN7_13735
$car = store_car_char_is_in $scplayer
set_car_forward_speed $car {forwardSpeed} 25.0
switch_widescreen True
clear_help 
clear_prints 
set_time_scale 0.4
set_char_heading $scplayer {heading} 0.6201
set_fixed_camera_position -2133.0649 {y} -103.294 {z} 37.6357 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
wait 1700
set_time_scale 1.0
switch_widescreen False
restore_camera_jumpcut 
if 
  locate_char_any_means_3d $scplayer {x} -2146.676 {y} -90.7008 {z} 40.5966 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @SYN7_13735
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_13707
set_char_coordinates $scplayer {x} -2152.4231 {y} -75.3105 {z} 34.3203
set_char_heading $scplayer {heading} 357.8863

:SYN7_13707
set_camera_behind_player 
if 
  not is_car_dead $car
goto_if_false @SYN7_13735
set_car_forward_speed $car {forwardSpeed} 0.0

:SYN7_13735
if 
  does_object_exist 45@
goto_if_false @SYN7_13830
$x, $y, $z = get_object_coordinates 45@
if and
  $x > -2127.0
  79@ == 1
goto_if_false @SYN7_13830
  slide_object 45@ {posX} -2127.0 {posY} -80.8 {posZ} 34.3281 {speedX} 0.2 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False

:SYN7_13830
if 
  48@ == 6
goto_if_false @SYN7_13929
if 
  does_blip_exist 107@
goto_if_false @SYN7_13869
remove_blip 107@

:SYN7_13869
if 
  locate_char_any_means_3d $scplayer {x} -2029.603 {y} 156.7249 {z} 27.8429 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN7_13929
remove_blip 82@
goto @SYN7_14698

:SYN7_13929
if and
  not is_car_dead 38@
  48@ <> 0
  48@ <= 3
goto_if_false @SYN7_14214
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_14107
print_now 'SYN7_32' {time} 100 {flag} 1
if 
  49@ == 0
goto_if_false @SYN7_14100
change_blip_display 39@ {display} BlipDisplay.Both
if 
  48@ == 1
goto_if_false @SYN7_14043
change_blip_display 41@ {display} BlipDisplay.Neither

:SYN7_14043
if 
  48@ == 2
goto_if_false @SYN7_14068
change_blip_display 70@ {display} BlipDisplay.Neither

:SYN7_14068
if 
  48@ == 3
goto_if_false @SYN7_14093
change_blip_display 71@ {display} BlipDisplay.Neither

:SYN7_14093
49@ = 1

:SYN7_14100
goto @SYN7_14214

:SYN7_14107
if 
  49@ == 1
goto_if_false @SYN7_14214
change_blip_display 39@ {display} BlipDisplay.Neither
if 
  48@ == 1
goto_if_false @SYN7_14157
change_blip_display 41@ {display} BlipDisplay.Both

:SYN7_14157
if 
  48@ == 2
goto_if_false @SYN7_14182
change_blip_display 70@ {display} BlipDisplay.Both

:SYN7_14182
if 
  48@ == 3
goto_if_false @SYN7_14207
change_blip_display 71@ {display} BlipDisplay.Both

:SYN7_14207
49@ = 0

:SYN7_14214
if and
  is_car_dead 38@
  4 > 48@
goto_if_false @SYN7_14260
print_now 'SYN7_36' {time} 4000 {flag} 1
goto @SYN7_15882

:SYN7_14260
if and
  is_car_dead 105@
  48@ >= 5
  79@ >= 2
goto_if_false @SYN7_14608
if 
  48@ <> 6
goto_if_false @SYN7_14324
print_now 'SYN7_53' {time} 4000 {flag} 1

:SYN7_14324
if 
  does_blip_exist 107@
goto_if_false @SYN7_14345
remove_blip 107@

:SYN7_14345
if 
  $s7_timer == 1
goto_if_false @SYN7_14608
mark_car_as_no_longer_needed 105@
125@ = 1
if 
  not locate_char_any_means_3d $scplayer {x} -2116.2639 {y} -200.0631 {z} 34.3273 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @SYN7_14519
clear_area -2116.2639 {y} -200.0631 {z} 34.3273 {radius} 10.0 {clearParticles} True
105@ = create_car 412 {x} -2116.2639 {y} -200.0631 {z} 34.3273
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 352.5713
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True
goto @SYN7_14608

:SYN7_14519
clear_area -2116.2639 {y} -200.0631 {z} 34.3273 {radius} 10.0 {clearParticles} True
105@ = create_car 412 {x} -2124.606 {y} -87.9687 {z} 34.3203
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 231.2455
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True

:SYN7_14608
goto @SYN7_2008

:SYN7_14615
goto @SYN7_15882

:SYN7_14622
47@ = 0

:SYN7_14629
delete_char 86@(47@,8i)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14629
47@ = 0

:SYN7_14666
delete_char 60@(47@,10i)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14666
return 

:SYN7_14698
remove_blip $garage_contact_blip
remove_ipl "BARRIERS2"
print_with_number_big 'M_PASSS' {num} 25000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 25000
award_player_mission_respect 60
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'SYND_7'
$flag_synd_mission_counter += 1
set_int_stat StatId.CitiesPassed {value} 2
set_int_stat StatId.PassedSyndicateAndWoozie {value} 1
switch_roads_on -2696.4641 {leftBottomY} 1239.866 {leftBottomZ} 40.7599 {rightTopX} -2665.3589 {rightTopY} 2190.96 {rightTopZ} 70.8125
switch_roads_on -2740.6941 {leftBottomY} 2233.6179 {leftBottomZ} 40.8431 {rightTopX} -2720.9099 {rightTopY} 2338.2241 {rightTopZ} 80.4822
switch_roads_on -2695.584 {leftBottomY} 1237.981 {leftBottomZ} 40.7328 {rightTopX} -2664.417 {rightTopY} 1454.767 {rightTopZ} 60.8126
switch_roads_on -995.0013 {leftBottomY} -416.2032 {leftBottomZ} 30.4207 {rightTopX} -940.5399 {rightTopY} -251.8564 {rightTopZ} 40.6762
switch_roads_on -205.8387 {leftBottomY} 250.7443 {leftBottomZ} 7.2472 {rightTopX} -131.0039 {rightTopY} 481.8496 {rightTopZ} 15.9152
switch_roads_on -100.7515 {leftBottomY} -927.8298 {leftBottomZ} 18.0 {rightTopX} -68.3752 {rightTopY} -891.9871 {rightTopZ} 14.0
switch_roads_on 609.7595 {leftBottomY} 327.3437 {leftBottomZ} 15.8783 {rightTopX} 429.8884 {rightTopY} 616.0168 {rightTopZ} 20.289
switch_roads_on 317.1688 {leftBottomY} 707.7672 {leftBottomZ} 7.0 {rightTopX} 437.5726 {rightTopY} 709.0657 {rightTopZ} 20.5578
switch_roads_on 391.1194 {leftBottomY} 640.015 {leftBottomZ} 7.0 {rightTopX} 402.2627 {rightTopY} 664.798 {rightTopZ} 18.5098
switch_roads_on 289.2904 {leftBottomY} 636.3991 {leftBottomZ} 7.8675 {rightTopX} 409.4943 {rightTopY} 702.3849 {rightTopZ} 20.0345
switch_roads_on 300.3153 {leftBottomY} 718.7909 {leftBottomZ} 7.7846 {rightTopX} 316.7906 {rightTopY} 781.0926 {rightTopZ} 14.0795
switch_roads_on 254.9982 {leftBottomY} 837.029 {leftBottomZ} 10.1731 {rightTopX} 270.7453 {rightTopY} 929.2404 {rightTopZ} 30.2553
switch_roads_on 210.7811 {leftBottomY} 939.2068 {leftBottomZ} 10.9062 {rightTopX} 249.4799 {rightTopY} 959.1111 {rightTopZ} 30.2141
switch_roads_on 230.4545 {leftBottomY} 946.0961 {leftBottomZ} 20.6674 {rightTopX} 255.9772 {rightTopY} 969.2755 {rightTopZ} 30.4776
switch_roads_on 249.4279 {leftBottomY} 899.7975 {leftBottomZ} 10.5871 {rightTopX} 268.6826 {rightTopY} 933.5995 {rightTopZ} 30.3975
switch_roads_on 312.1081 {leftBottomY} 694.1089 {leftBottomZ} 6.0 {rightTopX} 324.0811 {rightTopY} 733.0005 {rightTopZ} 10.0
switch_roads_on 324.4526 {leftBottomY} 804.9198 {leftBottomZ} 9.6186 {rightTopX} 332.8747 {rightTopY} 814.356 {rightTopZ} 14.3925
switch_roads_on 1690.819 {leftBottomY} 376.5103 {leftBottomZ} 28.1103 {rightTopX} 1730.223 {rightTopY} 445.2955 {rightTopZ} 30.8414
switch_roads_on 1643.536 {leftBottomY} 227.3723 {leftBottomZ} 27.4457 {rightTopX} 1673.062 {rightTopY} 295.5788 {rightTopZ} 30.0815
switch_roads_on 1673.765 {leftBottomY} 388.1013 {leftBottomZ} 40.2331 {rightTopX} 1815.8621 {rightTopY} 804.9291 {rightTopZ} 10.0
switch_roads_on 1705.156 {leftBottomY} 308.3448 {leftBottomZ} 20.0 {rightTopX} 1710.948 {rightTopY} 316.4094 {rightTopZ} 23.5612
switch_roads_on -12.7067 {leftBottomY} -1522.455 {leftBottomZ} 1.0 {rightTopX} 80.8463 {rightTopY} -1517.111 {rightTopZ} 5.0
switch_roads_on -16.3392 {leftBottomY} -1532.882 {leftBottomZ} 0.0394 {rightTopX} 69.3401 {rightTopY} -1523.771 {rightTopZ} 5.922
switch_roads_on 618.7253 {leftBottomY} -1189.606 {leftBottomZ} 18.0 {rightTopX} 623.5441 {rightTopY} -1161.981 {rightTopZ} 22.0
switch_roads_on -33.4208 {leftBottomY} -1341.84 {leftBottomZ} 9.0 {rightTopX} 35.3764 {rightTopY} -1303.948 {rightTopZ} 13.0
switch_roads_on -41.2393 {leftBottomY} -1385.87 {leftBottomZ} 8.0 {rightTopX} -3.5883 {rightTopY} -1368.856 {rightTopZ} 10.5
switch_roads_on -1690.705 {leftBottomY} 539.6102 {leftBottomZ} 30.3278 {rightTopX} -1100.567 {rightTopY} 1140.569 {rightTopZ} 50.735
switch_roads_on -1799.541 {leftBottomY} 379.7155 {leftBottomZ} 16.0 {rightTopX} -1780.199 {rightTopY} 392.2779 {rightTopZ} 18.0
switch_roads_on -1092.429 {leftBottomY} 1286.505 {leftBottomZ} 30.0 {rightTopX} -1077.038 {rightTopY} 1319.495 {rightTopZ} 35.0
switch_roads_on -1860.1331 {leftBottomY} 314.7891 {leftBottomZ} 38.0 {rightTopX} -1638.563 {rightTopY} 557.4354 {rightTopZ} 40.0
switch_roads_on -1737.333 {leftBottomY} 455.9431 {leftBottomZ} 30.3573 {rightTopX} -1710.363 {rightTopY} 500.6261 {rightTopZ} 40.4891
switch_roads_on -1689.229 {leftBottomY} 513.0995 {leftBottomZ} 30.2597 {rightTopX} -1679.124 {rightTopY} 524.8383 {rightTopZ} 40.25
switch_roads_on -1742.906 {leftBottomY} 500.7302 {leftBottomZ} 30.4679 {rightTopX} -1650.312 {rightTopY} 551.8201 {rightTopZ} 40.7455
switch_roads_off -1761.95 {leftBottomY} 507.8931 {leftBottomZ} 35.0533 {rightTopX} -1751.361 {rightTopY} 531.5917 {rightTopZ} 41.3335
return 

:SYN7_15882
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_15959
if 
  has_char_been_arrested $scplayer
goto_if_false @SYN7_15952
override_next_restart -1605.792 {y} 716.8598 {z} 11.0241 {heading} 355.2978

:SYN7_15952
goto @SYN7_15981

:SYN7_15959
override_next_restart -2670.2849 {y} 616.4364 {z} 13.4531 {heading} 183.1042

:SYN7_15981
return 

:SYN7_15983
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16004
stop_char_facial_talk $scplayer

:SYN7_16004
remove_car_recording 483
remove_car_recording 485
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_onscreen_timer $s7_velocity
switch_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
if 
  does_blip_exist 40@
goto_if_false @SYN7_16150
remove_blip 40@

:SYN7_16150
if 
  does_blip_exist 39@
goto_if_false @SYN7_16171
remove_blip 39@

:SYN7_16171
if 
  does_blip_exist 41@
goto_if_false @SYN7_16192
remove_blip 41@

:SYN7_16192
if 
  does_blip_exist 70@
goto_if_false @SYN7_16213
remove_blip 70@

:SYN7_16213
if 
  does_blip_exist 71@
goto_if_false @SYN7_16234
remove_blip 71@

:SYN7_16234
if 
  does_blip_exist 75@
goto_if_false @SYN7_16255
remove_blip 75@

:SYN7_16255
if 
  does_blip_exist 81@
goto_if_false @SYN7_16276
remove_blip 81@

:SYN7_16276
if 
  does_blip_exist 107@
goto_if_false @SYN7_16297
remove_blip 107@

:SYN7_16297
47@ = 0

:SYN7_16304
if 
  does_blip_exist 84@(47@,2i)
goto_if_false @SYN7_16333
remove_blip 84@(47@,2i)

:SYN7_16333
47@ += 1
  47@ >= 2
goto_if_false @SYN7_16304
if 
  is_any_pickup_at_coords -2182.6521 {y} -247.3813 {z} 36.4
goto_if_false @SYN7_16387
remove_pickup 121@

:SYN7_16387
$onmission = 0
set_group_separation_range $Players_Group {range} 30.0
$timer_mobile_start = get_game_timer 
remove_all_script_fires 
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "ON_LOOKERS"
remove_animation "INT_HOUSE"
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 48
mark_model_as_no_longer_needed 46
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #DYN_RAMP
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 145
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed #HEALTH
mark_model_as_no_longer_needed 346
mission_has_finished 
return 

:SYN7_16516
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16547
clear_prints 
clear_help 
switch_widescreen True
set_player_control $player1 {state} False

:SYN7_16547
return 

:SYN7_16549
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16584
clear_prints 
clear_help 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 

:SYN7_16584
return 

:SYN7_16586
do_fade 500 {direction} Fade.Out

:SYN7_16593
if 
  get_fading_status 
goto_if_false @SYN7_16617
wait 0
goto @SYN7_16593

:SYN7_16617
return 

:SYN7_16619
do_fade 500 {direction} Fade.In

:SYN7_16626
if 
  get_fading_status 
goto_if_false @SYN7_16650
wait 0
goto @SYN7_16626

:SYN7_16650
return 

:SYN7_16652
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @SYN7_16743
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16720
set_char_coordinates $scplayer {x} -1705.882 {y} 1028.967 {z} 44.1953
set_char_heading $scplayer {heading} 299.134
113@ = 8

:SYN7_16720
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16743
task_use_mobile_phone $scplayer {start} False

:SYN7_16743
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @SYN7_16804
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16804
set_char_coordinates $scplayer {x} -2064.0569 {y} -68.6422 {z} 34.1563
set_char_heading $scplayer {heading} 94.0454

:SYN7_16804
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @SYN7_16840
remove_ipl "CRACK"
request_ipl "FUKDCRAK"

:SYN7_16840
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @SYN7_16901
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16901
set_char_coordinates $scplayer {x} -2064.0569 {y} -68.6422 {z} 34.1563
set_char_heading $scplayer {heading} 94.0454

:SYN7_16901
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @SYN7_16923
48@ = 5

:SYN7_16923
return 

:SYN7_16925
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 118@
117@ = 0
return 

:SYN7_16945
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  117@ == 0
goto_if_false @SYN7_16988
play_mission_audio MissionAudioSlot.Slot1
print_now 127@s {time} 10000 {flag} 1
117@ = 1

:SYN7_16988
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  117@ == 1
goto_if_false @SYN7_17026
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 127@s
117@ = 2

:SYN7_17026
return 

//-------------Mission 64---------------
// Originally: Pier 69

:SYN5
script_name 'SYN5'
gosub @SYN5_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN5_38
gosub @SYN5_23151

:SYN5_38
gosub @SYN5_23260
terminate_this_script 

:SYN5_47
$onmission = 1
register_mission_given 
load_mission_text 'SYN5'
if 
  $onmission == 0
goto_if_false @SYN5_693
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
49@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
50@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1674.5 {y} 1337.0 {z} 6.2
36@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
37@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
38@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1716.0 {y} 1349.8 {z} 6.2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1716.8 {y} 1351.6 {z} 6.2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1717.5 {y} 1350.7 {z} 6.2
55@ = create_car 600 {x} -1774.2 {y} 1376.8 {z} 5.7
$ryder = create_char_inside_car 55@ {pedType} PedType.Mission2 {modelId} 291
39@ = create_char_as_passenger 55@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} -1
40@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1774.2 {y} 1376.8 {z} 5.7
56@ = create_car 566 {x} -1784.2 {y} 1379.8 {z} 5.7
41@ = create_char_inside_car 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
42@ = create_char_as_passenger 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
57@ = create_car 566 {x} -1795.0 {y} 1383.6 {z} 5.7
43@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
44@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
58@ = create_car 487 {x} -1583.3 {y} 1420.2 {z} 25.7
34@ = create_char_as_passenger 58@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear

:SYN5_693
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
133@ = 0
91@ = 0
92@ = 0
93@ = 3
94@ = 0
95@ = 0
96@ = 0
98@ = 0
99@ = 6
97@ = 0
106@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
107@ = 0
106@ = 0
set_lvar_int_to_constant 108@ = 173
set_lvar_int_to_constant 109@ = 174
set_lvar_int_to_constant 111@ = 102
set_lvar_int_to_constant 112@ = 103
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0.0
192@ = 0.0
193@ = 0.0
127@ = 0
128@ = 0
129@ = 0
130@ = 80
set_fading_colour 0 {g} 0 {b} 0
wait 0
force_weather WeatherType.SunnySf
do_fade 500 {direction} Fade.Out

:SYN5_1136
if 
  get_fading_status 
goto_if_false @SYN5_1160
wait 0
goto @SYN5_1136

:SYN5_1160
make_player_gang_disappear 
load_special_character 1 {modelName} 'CESAR'
request_model 358
request_model 429
request_model #SNIPER_ANIM
request_animation "MISC"
request_model 173
request_model 174
request_model 330
request_model 372
request_model 120
request_model 117
request_model 567
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
196@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
197@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_area -1748.3 {y} 1263.0 {z} 7.0 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
77@ = create_car 567 {x} -1748.3 {y} 1263.0 {z} 7.0
set_car_heading 77@ {heading} 291.3
change_car_colour 77@ {color1} 3 {color2} 3
clear_area -1720.7 {y} 1277.3 {z} 16.9 {radius} 2.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -1720.7 {y} 1277.3 {z} 16.9
set_char_heading $cesar {heading} 317.9
give_weapon_to_char $cesar {weaponType} WeaponType.Sniper {ammo} 12
set_char_never_targetted $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 197@
set_char_only_damaged_by_player $cesar {state} True
set_char_stay_in_same_place $cesar {state} True
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
79@ = add_blip_for_char $cesar
set_blip_as_friendly 79@ {state} True
clear_area -1717.5 {y} 1281.6 {z} 6.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1717.5 {y} 1281.6 {z} 6.2
set_char_heading $scplayer {heading} 143.8
switch_random_trains False
switch_ped_roads_off -1755.6 {leftBottomY} 1256.6 {leftBottomZ} 0.0 {rightTopX} -1598.2 {rightTopY} 1660.1 {rightTopZ} 50.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -1716.7 {y} 1282.6 {z} 6.5 {radius} 2.0 {clearParticles} True
set_fixed_camera_position -1716.7 {y} 1282.6 {z} 6.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1722.3 {y} 1276.0 {z} 16.9 {switchStyle} SwitchType.JumpCut
enable_ambient_crime False
TIMERA = 0
do_fade 500 {direction} Fade.In

:SYN5_1694
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN5_1720
goto @SYN5_23169

:SYN5_1720
alter_wanted_level $player1 {wantedLevel} 0
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_1759
goto @SYN5_8953

:SYN5_1759
if 
  90@ == 1
goto_if_false @SYN5_1784
goto @SYN5_23151

:SYN5_1784
if 
  87@ == 0
goto_if_false @SYN5_2799
if 
  88@ == 0
goto_if_false @SYN5_1906
if 
  TIMERA > 500
goto_if_false @SYN5_1906
if 
  133@ == 0
goto_if_false @SYN5_1906
132@ = 1
134@ = 0
gosub @SYN5_30472
133@ = 1
89@ = 1
skip_cutscene_start_internal @SYN5_2000
88@ = 1

:SYN5_1906
if 
  88@ == 1
goto_if_false @SYN5_1956
if 
  132@ == 0
goto_if_false @SYN5_1956
TIMERA = 0
88@ = 2

:SYN5_1956
if 
  88@ == 2
goto_if_false @SYN5_2197
if 
  TIMERA > 1000
goto_if_false @SYN5_2197
89@ = 0

:SYN5_2000
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_2034
goto @SYN5_8953

:SYN5_2034
if 
  90@ == 1
goto_if_false @SYN5_2059
goto @SYN5_23151

:SYN5_2059
if 
  89@ == 1
goto_if_false @SYN5_2094
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0

:SYN5_2094
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
print_now 'SYN5_01' {time} 7000 {flag} 1
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
88@ = 3

:SYN5_2197
if 
  88@ == 3
goto_if_false @SYN5_2799
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN5_2733
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
mark_car_as_no_longer_needed 77@
mark_model_as_no_longer_needed 567
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN5_2341
set_char_coordinates $scplayer {x} -1728.0 {y} 1257.4 {z} 16.9
set_char_heading $scplayer {heading} 42.2

:SYN5_2341
clear_area -1673.7 {y} 1369.0 {z} 7.0 {radius} 150.0 {clearParticles} True
clear_area -1690.0 {y} 1318.0 {z} 7.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 128@ = 429
gosub @SYN5_29241
75@ = create_car 429 {x} -1690.0 {y} 1318.0 {z} 7.0
set_car_heading 75@ {heading} 57.0
freeze_car_position 75@ {state} True
lock_car_doors 75@ {lockStatus} CarLock.Locked
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 5.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1722.8 {y} 1272.5 {z} 16.9
set_char_heading $scplayer {heading} 326.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Sniper
goto_if_false @SYN5_2575
remove_all_char_weapons $cesar
127@ = 1

:SYN5_2575
89@ = 1
skip_cutscene_start_internal @SYN5_5917
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1720.79 {y} 1275.4 {z} 16.9 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
remove_blip 79@
132@ = 2
134@ = 0
135@ = 2
gosub @SYN5_30472
set_fixed_camera_position -1725.2 {y} 1270.5 {z} 18.87 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1702.2 {y} 1316.1 {z} 22.4 {switchStyle} SwitchType.JumpCut
88@ = 0
87@ = 1

:SYN5_2733
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_2799
load_scene -1725.7 {y} 1267.0 {z} 17.3
set_char_coordinates $scplayer {x} -1725.7 {y} 1267.0 {z} 17.3
set_char_heading $scplayer {heading} 308.8
set_camera_behind_player 
restore_camera_jumpcut 

:SYN5_2799
if 
  87@ == 1
goto_if_false @SYN5_7288
if 
  88@ == 0
goto_if_false @SYN5_3023
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3023
task_turn_char_to_face_char $scplayer {target} $cesar
if 
  127@ == 0
goto_if_false @SYN5_2986
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
73@ = create_object #SNIPER_ANIM {x} -1714.2 {y} 1266.5 {z} 18.3
goto @SYN5_3016

:SYN5_2986
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@

:SYN5_3016
88@ = 1

:SYN5_3023
if 
  88@ == 1
goto_if_false @SYN5_3243
if 
  132@ == 0
goto_if_false @SYN5_3243
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3243
191@, 192@, 193@ = get_offset_from_char_in_world_coords $cesar {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
set_char_coordinates $scplayer {x} 191@ {y} 192@ {z} 193@
191@ = get_char_heading $cesar
191@ += 180.0
set_char_heading $scplayer {heading} 191@
132@ = 2
134@ = 2
135@ = 4
gosub @SYN5_30472
set_fixed_camera_position -1722.04 {y} 1273.2 {z} 18.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1708.2 {y} 1299.9 {z} 17.76 {switchStyle} SwitchType.JumpCut
88@ = 2

:SYN5_3243
if 
  88@ == 2
goto_if_false @SYN5_3466
if 
  127@ == 0
goto_if_false @SYN5_3441
191@, 192@, 193@ = get_offset_from_char_in_world_coords $cesar {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
remove_all_char_weapons $cesar
set_object_coordinates 73@ {x} 191@ {y} 192@ {z} 193@
191@ = get_char_heading $scplayer
set_object_heading 73@ {heading} 191@
task_play_anim $cesar {animationName} "PASS_RIFLE_PED" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "PASS_RIFLE_PLY" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
88@ = 3
goto @SYN5_3466

:SYN5_3441
if 
  132@ == 0
goto_if_false @SYN5_3466
88@ = 3

:SYN5_3466
if 
  88@ == 3
goto_if_false @SYN5_3800
if 
  127@ == 0
goto_if_false @SYN5_3793
if 
  does_object_exist 73@
goto_if_false @SYN5_3786
if 
  is_char_playing_anim $scplayer {animationName} "PASS_RIFLE_PLY"
goto_if_false @SYN5_3702
131@ = get_char_anim_current_time $scplayer {animationName} "PASS_RIFLE_PLY"
if 
  is_object_playing_anim 73@ {animationName} "PASS_RIFLE_O"
goto_if_false @SYN5_3633
set_object_anim_current_time 73@ {animationName} "PASS_RIFLE_O" {time} 131@
goto @SYN5_3702

:SYN5_3633
if 
play_object_anim 73@ {animationName} "PASS_RIFLE_O" {animationFile} "MISC" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @SYN5_3702
set_object_anim_speed 73@ {animationName} "PASS_RIFLE_O" {speed} 0.0

:SYN5_3702
if 
  is_char_playing_anim $scplayer {animationName} "PASS_RIFLE_PLY"
goto_if_false @SYN5_3786
194@ = get_char_anim_current_time $scplayer {animationName} "PASS_RIFLE_PLY"
if 
  194@ == 1.0
goto_if_false @SYN5_3786
88@ = 4

:SYN5_3786
goto @SYN5_3800

:SYN5_3793
88@ = 4

:SYN5_3800
if 
  88@ == 4
goto_if_false @SYN5_3952
if 
  127@ == 0
goto_if_false @SYN5_3841
delete_object 73@

:SYN5_3841
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_3892
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
goto @SYN5_3899

:SYN5_3892
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper

:SYN5_3899
task_aim_gun_at_coord $scplayer {x} -1715.4 {y} 1287.5 {z} 16.5 {time} -1
task_achieve_heading $cesar {heading} 332.1
gosub @SYN5_23800
TIMERA = 0
88@ = 5

:SYN5_3952
if 
  88@ == 5
goto_if_false @SYN5_4245
if 
  TIMERA > 2000
goto_if_false @SYN5_4245
if 
  132@ == 0
goto_if_false @SYN5_4245
if 
  not is_char_dead 45@
goto_if_false @SYN5_4084
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1711.1 {y} 1354.0 {z} 16.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 200.0
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4084
if 
  not is_char_dead 46@
goto_if_false @SYN5_4152
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1686.6 {y} 1376.2 {z} 13.8 {speed} MoveState.Walk {time} -1
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4152
set_fixed_camera_position -1707.1 {y} 1329.7 {z} 18.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.8 {y} 1360.3 {z} 9.0 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 4
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 6

:SYN5_4245
if 
  88@ == 6
goto_if_false @SYN5_4490
if 
  TIMERA > 5000
goto_if_false @SYN5_4490
if 
  not is_char_dead 48@
goto_if_false @SYN5_4383
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1682.7 {y} 1343.1 {z} 16.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1672.7 {y} 1342.6 {z} 16.2 {speed} MoveState.Walk {time} -1
set_char_heading 48@ {heading} 4.0
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4383
set_near_clip 0.1
set_fixed_camera_position -1712.2 {y} 1354.2 {z} 18.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1675.7 {y} 1338.4 {z} 9.9 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 5
135@ = 6
gosub @SYN5_30472
gosub @SYN5_24432
TIMERA = 0
88@ = 7

:SYN5_4490
if 
  88@ == 7
goto_if_false @SYN5_4675
if 
  TIMERA > 4000
goto_if_false @SYN5_4675
if 
  132@ == 0
goto_if_false @SYN5_4675
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_4568
set_char_visible $wuzi {state} True

:SYN5_4568
set_near_clip 0.9
set_fixed_camera_position -1722.2 {y} 1271.7 {z} 20.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1709.7 {y} 1305.0 {z} 7.4 {switchStyle} SwitchType.JumpCut
task_use_mobile_phone $cesar {start} True
132@ = 2
134@ = 6
135@ = 7
gosub @SYN5_30472
TIMERA = 0
88@ = 8

:SYN5_4675
if 
  88@ == 8
goto_if_false @SYN5_4772
if 
  TIMERA > 2000
goto_if_false @SYN5_4772
if 
  132@ == 0
goto_if_false @SYN5_4772
132@ = 2
134@ = 7
135@ = 9
gosub @SYN5_30472
TIMERA = 0
88@ = 9

:SYN5_4772
if 
  88@ == 9
goto_if_false @SYN5_4879
if 
  132@ == 0
goto_if_false @SYN5_4879
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4844
task_use_mobile_phone $cesar {start} False

:SYN5_4844
132@ = 2
134@ = 9
135@ = 11
gosub @SYN5_30472
88@ = 10

:SYN5_4879
if 
  88@ == 10
goto_if_false @SYN5_5383
if 
  132@ == 0
goto_if_false @SYN5_5383
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4951
task_use_mobile_phone $cesar {start} False

:SYN5_4951
if 
  not is_char_dead 36@
goto_if_false @SYN5_5042
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1683.4 {y} 1326.9 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1673.4 {y} 1335.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_toggle_duck -1 {state} False
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5042
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_5134
195@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -1684.8 {y} 1324.7 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1675.7 {y} 1336.1 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_5134
if 
  not is_char_dead 37@
goto_if_false @SYN5_5226
195@ = open_sequence_task 
task_pause -1 {time} 700
task_go_straight_to_coord -1 {x} -1687.2 {y} 1323.8 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.0 {y} 1334.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5226
if 
  not is_char_dead 38@
goto_if_false @SYN5_5318
195@ = open_sequence_task 
task_pause -1 {time} 800
task_go_straight_to_coord -1 {x} -1689.0 {y} 1325.4 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1678.0 {y} 1333.7 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5318
set_fixed_camera_position -1693.9 {y} 1318.9 {z} 7.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1686.1 {y} 1320.8 {z} 6.6 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 11

:SYN5_5383
if 
  88@ == 11
goto_if_false @SYN5_5874
if 
  TIMERA > 3000
goto_if_false @SYN5_5874
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_5512
set_char_coordinates $wuzi {x} -1681.4 {y} 1326.4 {z} 6.2
set_char_heading $wuzi {heading} 300.1
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_5512
if 
  not is_char_dead 36@
goto_if_false @SYN5_5604
set_char_coordinates 36@ {x} -1684.1 {y} 1324.1 {z} 6.2
set_char_heading 36@ {heading} 311.1
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5604
if 
  not is_char_dead 37@
goto_if_false @SYN5_5696
set_char_coordinates 37@ {x} -1683.0 {y} 1321.7 {z} 6.2
set_char_heading 37@ {heading} 333.4
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5696
if 
  not is_char_dead 38@
goto_if_false @SYN5_5788
set_char_coordinates 38@ {x} -1685.4 {y} 1323.6 {z} 6.2
set_char_heading 38@ {heading} 323.8
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5788
set_fixed_camera_position -1678.4 {y} 1318.3 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1680.6 {y} 1330.0 {z} 8.9 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 11
135@ = 14
gosub @SYN5_30472
88@ = 12

:SYN5_5874
if 
  88@ == 12
goto_if_false @SYN5_7288
if 
  132@ == 0
goto_if_false @SYN5_7288
89@ = 0

:SYN5_5917
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0
do_fade 500 {direction} Fade.Out

:SYN5_5943
if 
  get_fading_status 
goto_if_false @SYN5_5967
wait 0
goto @SYN5_5943

:SYN5_5967
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_5999
goto @SYN5_8953

:SYN5_5999
if 
  90@ == 1
goto_if_false @SYN5_6024
goto @SYN5_23151

:SYN5_6024
set_near_clip 0.9
if 
  89@ == 1
goto_if_false @SYN5_6334
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_6086
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24

:SYN5_6086
delete_object 73@
remove_all_char_weapons $cesar
clear_prints 
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_6134
task_use_mobile_phone $cesar {start} False

:SYN5_6134
clear_char_tasks_immediately $cesar
set_char_heading $cesar {heading} 332.1
set_char_heading $scplayer {heading} 332.1
gosub @SYN5_23800
gosub @SYN5_24432
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_6196
set_char_visible $wuzi {state} True

:SYN5_6196
if 
  not is_char_dead 45@
goto_if_false @SYN5_6242
set_char_coordinates 45@ {x} -1711.1 {y} 1354.0 {z} 16.0
set_char_heading 45@ {heading} 200.0

:SYN5_6242
if 
  not is_char_dead 46@
goto_if_false @SYN5_6288
set_char_coordinates 46@ {x} -1686.6 {y} 1376.2 {z} 13.8
set_char_heading 46@ {heading} 200.0

:SYN5_6288
if 
  not is_char_dead 48@
goto_if_false @SYN5_6334
set_char_coordinates 48@ {x} -1672.7 {y} 1342.6 {z} 16.2
set_char_heading 48@ {heading} 4.0

:SYN5_6334
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_6446
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1681.9 {y} 1335.8 {z} 16.2
set_char_heading $wuzi {heading} 337.1
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1681.7 {y} 1335.5 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 331.0
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_6446
if 
  not is_char_dead 36@
goto_if_false @SYN5_6558
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} -1688.2 {y} 1334.3 {z} 16.2
set_char_heading 36@ {heading} 257.0
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1686.1 {y} 1334.1 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 294.0
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6558
if 
  not is_char_dead 37@
goto_if_false @SYN5_6670
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} -1685.8 {y} 1336.4 {z} 16.2
set_char_heading 37@ {heading} 320.0
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1683.9 {y} 1338.4 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 316.8
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6670
if 
  not is_char_dead 38@
goto_if_false @SYN5_6782
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} -1688.3 {y} 1335.6 {z} 16.2
set_char_heading 38@ {heading} 312.6
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1685.2 {y} 1340.5 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 310.0
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6782
if 
  not is_char_dead 45@
goto_if_false @SYN5_6813
80@ = add_blip_for_char 45@
change_blip_scale 80@ {size} 1

:SYN5_6813
if 
  not is_char_dead 46@
goto_if_false @SYN5_6844
81@ = add_blip_for_char 46@
change_blip_scale 81@ {size} 1

:SYN5_6844
if 
  not is_char_dead 47@
goto_if_false @SYN5_6875
82@ = add_blip_for_char 47@
change_blip_scale 82@ {size} 1

:SYN5_6875
if 
  not is_char_dead 48@
goto_if_false @SYN5_6906
83@ = add_blip_for_char 48@
change_blip_scale 83@ {size} 1

:SYN5_6906
if 
  not is_char_dead 49@
goto_if_false @SYN5_6937
84@ = add_blip_for_char 49@
change_blip_scale 84@ {size} 1

:SYN5_6937
if 
  not is_char_dead 50@
goto_if_false @SYN5_6968
85@ = add_blip_for_char 50@
change_blip_scale 85@ {size} 1

:SYN5_6968
if 
  not is_char_dead 49@
goto_if_false @SYN5_7014
set_char_coordinates 49@ {x} -1669.5 {y} 1346.0 {z} 15.2
set_char_heading 49@ {heading} 142.0

:SYN5_7014
if 
  not is_char_dead 46@
goto_if_false @SYN5_7060
set_char_coordinates 46@ {x} -1694.7 {y} 1369.7 {z} 15.9
set_char_heading 46@ {heading} 129.8

:SYN5_7060
set_char_coordinates $scplayer {x} -1720.4 {y} 1275.5 {z} 16.9
set_char_heading $scplayer {heading} 328.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
clear_char_tasks_immediately $scplayer
delete_object 73@
mark_model_as_no_longer_needed #SNIPER_ANIM
remove_animation "MISC"
mark_model_as_no_longer_needed 330
mark_car_as_no_longer_needed 75@
mark_model_as_no_longer_needed 429
shut_all_chars_up False
shut_char_up_for_scripted_speech $cesar {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'SYN5_02' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_7193
if 
  get_fading_status 
goto_if_false @SYN5_7217
wait 0
goto @SYN5_7193

:SYN5_7217
if 
  87@ == 10
goto_if_false @SYN5_7242
goto @SYN5_8953

:SYN5_7242
if 
  90@ == 1
goto_if_false @SYN5_7267
goto @SYN5_23151

:SYN5_7267
TIMERA = 0
88@ = 0
87@ = 3

:SYN5_7288
if 
  87@ == 3
goto_if_false @SYN5_8953
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_7489
if 
  not is_char_dead 45@
goto_if_false @SYN5_7349
set_char_only_damaged_by_player 45@ {state} False
explode_char_head 45@

:SYN5_7349
if 
  not is_char_dead 46@
goto_if_false @SYN5_7377
set_char_only_damaged_by_player 46@ {state} False
explode_char_head 46@

:SYN5_7377
if 
  not is_char_dead 47@
goto_if_false @SYN5_7405
set_char_only_damaged_by_player 47@ {state} False
explode_char_head 47@

:SYN5_7405
if 
  not is_char_dead 48@
goto_if_false @SYN5_7433
set_char_only_damaged_by_player 48@ {state} False
explode_char_head 48@

:SYN5_7433
if 
  not is_char_dead 49@
goto_if_false @SYN5_7461
set_char_only_damaged_by_player 49@ {state} False
explode_char_head 49@

:SYN5_7461
if 
  not is_char_dead 50@
goto_if_false @SYN5_7489
set_char_only_damaged_by_player 50@ {state} False
explode_char_head 50@

:SYN5_7489
if 
  88@ == 0
goto_if_false @SYN5_8805
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  92@ == 0
goto_if_false @SYN5_7597
if 
  TIMERA > 7000
goto_if_false @SYN5_7597
132@ = 3
134@ = 1
135@ = 2
gosub @SYN5_30472
92@ = 1

:SYN5_7597
if 
  92@ == 1
goto_if_false @SYN5_7668
if 
  3 > 93@
goto_if_false @SYN5_7668
132@ = 3
134@ = 3
135@ = 4
gosub @SYN5_30472
92@ = 2

:SYN5_7668
if 
  92@ == 2
goto_if_false @SYN5_7739
if 
  2 > 93@
goto_if_false @SYN5_7739
132@ = 3
134@ = 4
135@ = 5
gosub @SYN5_30472
92@ = 3

:SYN5_7739
if 
  132@ == 0
goto_if_false @SYN5_7810
if 
  92@ == 3
goto_if_false @SYN5_7810
132@ = 3
134@ = 2
135@ = 3
gosub @SYN5_30472
92@ = 4

:SYN5_7810
if 
  92@ == 4
goto_if_false @SYN5_7881
if 
  1 > 93@
goto_if_false @SYN5_7881
132@ = 3
134@ = 5
135@ = 6
gosub @SYN5_30472
92@ = 5

:SYN5_7881
if 
  98@ == 0
goto_if_false @SYN5_7906
98@ = 3

:SYN5_7906
if 
  98@ == 3
goto_if_false @SYN5_8017
if 
  3 > 99@
goto_if_false @SYN5_8017
if or
  not is_char_dead 48@
  not is_char_dead 49@
  not is_char_dead 50@
goto_if_false @SYN5_8010
132@ = 4
134@ = 3
135@ = 4
gosub @SYN5_30472
98@ = 4
goto @SYN5_8017

:SYN5_8010
98@ = 5

:SYN5_8017
if 
  132@ == 0
goto_if_false @SYN5_8114
if 
  98@ == 4
goto_if_false @SYN5_8114
if and
  is_char_dead 48@
  is_char_dead 49@
  is_char_dead 50@
goto_if_false @SYN5_8114
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8114
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  98@ == 5
goto_if_false @SYN5_8229
if 
  3 > 99@
goto_if_false @SYN5_8229
if or
  not is_char_dead 45@
  not is_char_dead 46@
  not is_char_dead 47@
goto_if_false @SYN5_8229
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8229
if 
  not is_char_dead 36@
goto_if_false @SYN5_8276
if 
  TIMERA > 10000
goto_if_false @SYN5_8276
set_char_only_damaged_by_player 36@ {state} False
explode_char_head 36@

:SYN5_8276
if 
  not is_char_dead 37@
goto_if_false @SYN5_8323
if 
  TIMERA > 20000
goto_if_false @SYN5_8323
set_char_only_damaged_by_player 37@ {state} False
explode_char_head 37@

:SYN5_8323
if 
  not is_char_dead 38@
goto_if_false @SYN5_8370
if 
  TIMERA > 30000
goto_if_false @SYN5_8370
set_char_only_damaged_by_player 38@ {state} False
explode_char_head 38@

:SYN5_8370
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_8421
if 
  TIMERA > 40000
goto_if_false @SYN5_8421
set_char_only_damaged_by_player $wuzi {state} False
87@ = 10

:SYN5_8421
if 
  6 > 106@
goto_if_false @SYN5_8522
if 
  100@(106@,6i) == 0
goto_if_false @SYN5_8508
if 
  is_char_dead 45@(106@,6i)
goto_if_false @SYN5_8508
remove_blip 80@(106@,6i)
99@ -= 1
100@(106@,6i) = 1

:SYN5_8508
106@ += 1
goto @SYN5_8529

:SYN5_8522
106@ = 0

:SYN5_8529
if 
  3 > 97@
goto_if_false @SYN5_8621
if 
  94@(97@,3i) == 0
goto_if_false @SYN5_8607
if 
  is_char_dead 36@(97@,3i)
goto_if_false @SYN5_8607
93@ -= 1
94@(97@,3i) = 1

:SYN5_8607
97@ += 1
goto @SYN5_8628

:SYN5_8621
97@ = 0

:SYN5_8628
gosub @SYN5_26437
if 
  is_char_dead 45@
goto_if_false @SYN5_8805
if 
  is_char_dead 46@
goto_if_false @SYN5_8805
if 
  is_char_dead 47@
goto_if_false @SYN5_8805
if 
  is_char_dead 48@
goto_if_false @SYN5_8805
if 
  is_char_dead 49@
goto_if_false @SYN5_8805
if 
  is_char_dead 50@
goto_if_false @SYN5_8805
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
TIMERA = 0
88@ = 1

:SYN5_8805
if 
  88@ == 1
goto_if_false @SYN5_8953
if 
  TIMERA > 2000
goto_if_false @SYN5_8953
set_player_control $player1 {state} False
clear_prints 
do_fade 500 {direction} Fade.Out

:SYN5_8858
if 
  get_fading_status 
goto_if_false @SYN5_8882
wait 0
goto @SYN5_8858

:SYN5_8882
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_8914
goto @SYN5_8953

:SYN5_8914
if 
  90@ == 1
goto_if_false @SYN5_8939
goto @SYN5_23151

:SYN5_8939
88@ = 0
87@ = 4

:SYN5_8953
if 
  87@ == 10
goto_if_false @SYN5_9658
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_9451
if 
  88@ == 0
goto_if_false @SYN5_9451
do_fade 500 {direction} Fade.Out

:SYN5_9021
if 
  get_fading_status 
goto_if_false @SYN5_9045
wait 0
goto @SYN5_9021

:SYN5_9045
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
delete_char $wuzi
delete_char $cesar
clear_area -1673.7 {y} 1369.0 {z} 7.0 {radius} 150.0 {clearParticles} True
clear_area -1677.2 {y} 1347.8 {z} 16.2 {radius} 1.0 {clearParticles} True
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1677.2 {y} 1347.8 {z} 16.2
set_char_heading $wuzi {heading} 356.6
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker $wuzi {handleOrTemplate} 197@
load_scene -1677.2 {y} 1347.8 {z} 16.2
set_fixed_camera_position -1675.3 {y} 1349.0 {z} 17.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1684.1 {y} 1343.9 {z} 18.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:SYN5_9267
if 
  get_fading_status 
goto_if_false @SYN5_9291
wait 0
goto @SYN5_9267

:SYN5_9291
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_9346
task_play_anim_non_interruptable $wuzi {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SYN5_9346
if 
  93@ > 0
goto_if_false @SYN5_9399
132@ = 5
134@ = 3
135@ = 4
gosub @SYN5_30472
goto @SYN5_9437

:SYN5_9399
132@ = 5
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_9437
TIMERB = 0
88@ = 1

:SYN5_9451
if 
  88@ == 1
goto_if_false @SYN5_9658
if 
  132@ == 0
goto_if_false @SYN5_9658
if 
  TIMERB > 4000
goto_if_false @SYN5_9658
do_fade 500 {direction} Fade.Out

:SYN5_9513
if 
  get_fading_status 
goto_if_false @SYN5_9537
wait 0
goto @SYN5_9513

:SYN5_9537
191@, 192@, 193@ = get_char_coordinates $scplayer
load_scene 191@ {y} 192@ {z} 193@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'SYN5_05' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_9627
if 
  get_fading_status 
goto_if_false @SYN5_9651
wait 0
goto @SYN5_9627

:SYN5_9651
goto @SYN5_23151

:SYN5_9658
if 
  87@ == 4
goto_if_false @SYN5_17454
if 
  88@ == 0
goto_if_false @SYN5_10641
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
request_car_recording 27
request_car_recording 28
request_model 600
request_model 566
request_model 487
request_model 413
request_model 102
request_model 103
load_special_character 2 {modelName} 'RYDER2'
load_special_character 3 {modelName} 'TORINO'
load_special_character 4 {modelName} 'TBONE'
request_model 343
request_model 355
load_all_models_now 
shut_all_chars_up True
shut_char_up_for_scripted_speech $cesar {state} False
76@ = create_car 413 {x} -1634.3 {y} 1253.4 {z} 6.1
set_car_heading 76@ {heading} 44.5
lock_car_doors 76@ {lockStatus} CarLock.LockoutPlayerOnly
start_playback_recorded_car 76@ {path} 27
skip_in_playback_recorded_car 76@ {amount} 35.0
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1678.7 {y} 1347.5 {z} 16.2
set_char_heading $wuzi {heading} 32.6
set_char_decision_maker $wuzi {handleOrTemplate} 197@
task_play_anim $wuzi {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000
if 
  not is_char_dead 36@
goto_if_false @SYN5_10050
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} -1686.1 {y} 1348.7 {z} 16.2
set_char_heading 36@ {heading} 33.6
set_char_decision_maker 36@ {handleOrTemplate} 197@
task_play_anim 36@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10050
if 
  not is_char_dead 37@
goto_if_false @SYN5_10150
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} -1687.7 {y} 1347.7 {z} 16.2
set_char_heading 37@ {heading} 60.6
set_char_decision_maker 37@ {handleOrTemplate} 197@
task_play_anim 37@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10150
if 
  not is_char_dead 38@
goto_if_false @SYN5_10250
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} -1688.7 {y} 1346.1 {z} 16.2
set_char_heading 38@ {heading} 41.8
set_char_decision_maker 38@ {handleOrTemplate} 197@
task_play_anim 38@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10250
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 5.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1720.4 {y} 1275.5 {z} 16.9
set_char_heading $scplayer {heading} 328.4
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_10395
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
goto @SYN5_10402

:SYN5_10395
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper

:SYN5_10402
clear_area -1706.4 {y} 1327.1 {z} 6.4 {radius} 100.0 {clearParticles} True
set_car_density_multiplier 0.0
clear_char_decision_maker_event_response 196@ {event} Event.PotentialWalkIntoPed
set_fixed_camera_position -1722.2 {y} 1271.7 {z} 20.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1709.7 {y} 1305.0 {z} 7.4 {switchStyle} SwitchType.JumpCut
switch_widescreen True
make_player_gang_disappear 
do_fade 1000 {direction} Fade.In

:SYN5_10504
if 
  get_fading_status 
goto_if_false @SYN5_10528
wait 0
goto @SYN5_10504

:SYN5_10528
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10560
goto @SYN5_8953

:SYN5_10560
if 
  90@ == 1
goto_if_false @SYN5_10585
goto @SYN5_23151

:SYN5_10585
132@ = 7
134@ = 0
135@ = 1
gosub @SYN5_30472
89@ = 1
skip_cutscene_start_internal @SYN5_14729
TIMERA = 0
88@ = 1

:SYN5_10641
if 
  88@ == 1
goto_if_false @SYN5_11744
if 
  132@ == 0
goto_if_false @SYN5_11744
if 
  TIMERA > 4000
goto_if_false @SYN5_11744
do_fade 500 {direction} Fade.Out

:SYN5_10703
if 
  get_fading_status 
goto_if_false @SYN5_10727
wait 0
goto @SYN5_10703

:SYN5_10727
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10759
goto @SYN5_8953

:SYN5_10759
if 
  90@ == 1
goto_if_false @SYN5_10784
goto @SYN5_23151

:SYN5_10784
if 
  not is_car_dead 76@
goto_if_false @SYN5_10814
open_car_door 76@ {door} CarDoor.LeftRearDoor
open_car_door 76@ {door} CarDoor.RightRearDoor

:SYN5_10814
gosub @SYN5_25123
if 
  not is_char_dead 35@
goto_if_false @SYN5_10929
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1345.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1349.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1360.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@

:SYN5_10929
if 
  not is_char_dead 45@
goto_if_false @SYN5_11037
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1346.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1350.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1361.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11037
if 
  not is_char_dead 46@
goto_if_false @SYN5_11145
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1343.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1351.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1362.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11145
if 
  not is_char_dead 47@
goto_if_false @SYN5_11253
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1342.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1352.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1363.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11253
if 
  not is_char_dead 48@
goto_if_false @SYN5_11361
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1341.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1353.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1364.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11361
gosub @SYN5_25613
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 55@ {x} -1704.0 {y} 1333.5 {z} 5.9 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1676.9 {y} 1360.6 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 56@ {x} -1706.6 {y} 1340.2 {z} 5.9 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 195@
perform_sequence_task 41@ {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 57@ {x} -1718.4 {y} 1345.7 {z} 6.2 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 195@
perform_sequence_task 43@ {sequence} 195@
clear_sequence_task 195@
set_fixed_camera_position -1711.0 {y} 1343.8 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1726.7 {y} 1357.6 {z} 9.9 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:SYN5_11621
if 
  get_fading_status 
goto_if_false @SYN5_11645
wait 0
goto @SYN5_11621

:SYN5_11645
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_11677
goto @SYN5_8953

:SYN5_11677
if 
  90@ == 1
goto_if_false @SYN5_11702
goto @SYN5_23151

:SYN5_11702
132@ = 7
134@ = 2
135@ = 3
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_11744
if 
  88@ == 2
goto_if_false @SYN5_11881
if 
  TIMERA > 4000
goto_if_false @SYN5_11881
gosub @SYN5_26264
set_fixed_camera_position -1698.3 {y} 1327.6 {z} 7.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.2 {y} 1332.3 {z} 7.6 {switchStyle} SwitchType.JumpCut
132@ = 7
134@ = 3
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 3

:SYN5_11881
if 
  88@ == 3
goto_if_false @SYN5_12029
if 
  132@ == 0
goto_if_false @SYN5_12029
if 
  not is_char_dead $ryder
goto_if_false @SYN5_12029
if 
  not is_char_in_any_car $ryder
goto_if_false @SYN5_12029
if 
  not is_char_dead 39@
goto_if_false @SYN5_12015
195@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1665.0 {y} 1370.9 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_12015
TIMERA = 0
88@ = 4

:SYN5_12029
if 
  88@ == 4
goto_if_false @SYN5_12900
do_fade 1000 {direction} Fade.Out

:SYN5_12054
if 
  get_fading_status 
goto_if_false @SYN5_12078
wait 0
goto @SYN5_12054

:SYN5_12078
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12110
goto @SYN5_8953

:SYN5_12110
if 
  90@ == 1
goto_if_false @SYN5_12135
goto @SYN5_23151

:SYN5_12135
if 
  not is_char_dead 35@
goto_if_false @SYN5_12193
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -1629.2 {y} 1414.2 {z} 6.2
set_char_heading 35@ {heading} 87.6
hide_char_weapon_for_scripted_cutscene 35@ {state} True

:SYN5_12193
if 
  not is_char_dead 45@
goto_if_false @SYN5_12290
clear_char_tasks_immediately 45@
set_char_coordinates 45@ {x} -1629.3 {y} 1412.4 {z} 6.2
set_char_heading 45@ {heading} 76.7
task_play_anim 45@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12290
if 
  not is_char_dead 46@
goto_if_false @SYN5_12351
clear_char_tasks_immediately 46@
set_char_coordinates 46@ {x} -1626.5 {y} 1414.2 {z} 6.2
set_char_heading 46@ {heading} 116.9
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12351
if 
  not is_char_dead 47@
goto_if_false @SYN5_12412
clear_char_tasks_immediately 47@
set_char_coordinates 47@ {x} -1628.5 {y} 1414.9 {z} 6.2
set_char_heading 47@ {heading} 50.5
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12412
if 
  not is_char_dead 48@
goto_if_false @SYN5_12473
clear_char_tasks_immediately 48@
set_char_coordinates 48@ {x} -1629.7 {y} 1416.0 {z} 6.2
set_char_heading 48@ {heading} 222.8
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12473
task_chat_with_char 47@ {other} 48@ {leadSpeaker} True {_p4} 1
task_chat_with_char 48@ {other} 47@ {leadSpeaker} False {_p4} 1
if 
  not is_char_dead $ryder
goto_if_false @SYN5_12555
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} -1636.5 {y} 1412.5 {z} 6.2
set_char_heading $ryder {heading} 280.9
hide_char_weapon_for_scripted_cutscene $ryder {state} True

:SYN5_12555
if 
  not is_char_dead 39@
goto_if_false @SYN5_12687
clear_char_tasks_immediately 39@
set_char_coordinates 39@ {x} -1634.9 {y} 1408.3 {z} 6.2
set_char_heading 39@ {heading} 293.5
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1629.6 {y} 1411.7 {z} 6.2 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_12687
task_greet_partner $ryder {partner} 35@ {approachRatio} 0.5 {greetStyle} 5
load_scene -1629.2 {y} 1414.2 {z} 6.2
set_fixed_camera_position -1637.6 {y} 1410.8 {z} 8.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1626.4 {y} 1414.8 {z} 6.8 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:SYN5_12777
if 
  get_fading_status 
goto_if_false @SYN5_12801
wait 0
goto @SYN5_12777

:SYN5_12801
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12833
goto @SYN5_8953

:SYN5_12833
if 
  90@ == 1
goto_if_false @SYN5_12858
goto @SYN5_23151

:SYN5_12858
132@ = 7
134@ = 7
135@ = 8
gosub @SYN5_30472
TIMERA = 0
88@ = 5

:SYN5_12900
if 
  88@ == 5
goto_if_false @SYN5_12977
if 
  TIMERA > 3500
goto_if_false @SYN5_12977
if 
  not is_car_dead 58@
goto_if_false @SYN5_12977
start_playback_recorded_car 58@ {path} 28
skip_in_playback_recorded_car 58@ {amount} 10.0
88@ = 6

:SYN5_12977
if 
  88@ == 6
goto_if_false @SYN5_13378
if 
  TIMERA > 6000
goto_if_false @SYN5_13378
do_fade 500 {direction} Fade.Out

:SYN5_13021
if 
  get_fading_status 
goto_if_false @SYN5_13045
wait 0
goto @SYN5_13021

:SYN5_13045
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13077
goto @SYN5_8953

:SYN5_13077
if 
  90@ == 1
goto_if_false @SYN5_13102
goto @SYN5_23151

:SYN5_13102
if 
  not is_char_dead $ryder
goto_if_false @SYN5_13128
set_char_heading $ryder {heading} 150.0

:SYN5_13128
if 
  not is_char_dead 39@
goto_if_false @SYN5_13154
set_char_heading 39@ {heading} 150.0

:SYN5_13154
camera_reset_new_scriptables 
camera_persist_pos True
camera_persist_track True
camera_set_vector_move -1657.1 {fromY} 1666.8 {fromZ} 3.4 {toX} -1599.1 {toY} 1432.0 {toZ} 15.1 {time} 11000 {ease} True
camera_set_vector_track -1676.2 {fromY} 1618.2 {fromZ} 11.4 {toX} -1614.1 {toY} 1428.9 {toZ} 15.4 {time} 11000 {ease} True
load_scene -1657.1 {y} 1666.8 {z} 3.4
do_fade 500 {direction} Fade.In

:SYN5_13262
if 
  get_fading_status 
goto_if_false @SYN5_13286
wait 0
goto @SYN5_13262

:SYN5_13286
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13318
goto @SYN5_8953

:SYN5_13318
if 
  90@ == 1
goto_if_false @SYN5_13343
goto @SYN5_23151

:SYN5_13343
132@ = 7
134@ = 8
135@ = 10
gosub @SYN5_30472
88@ = 7

:SYN5_13378
if 
  88@ == 7
goto_if_false @SYN5_13536
if 
  not is_car_dead 58@
goto_if_false @SYN5_13536
if 
  locate_car_2d 58@ {x} -1629.1 {y} 1429.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @SYN5_13536
if 
  is_playback_going_on_for_car 58@
goto_if_false @SYN5_13471
stop_playback_recorded_car 58@

:SYN5_13471
heli_goto_coords 58@ {x} -1629.1 {y} 1429.5 {z} 19.3 {minAltitude} 0.0 {maxAltitude} 19.3
132@ = 7
134@ = 10
135@ = 11
gosub @SYN5_30472
88@ = 8

:SYN5_13536
if 
  88@ == 8
goto_if_false @SYN5_13695
if 
  132@ == 0
goto_if_false @SYN5_13695
camera_reset_new_scriptables 
if 
  not is_car_dead 58@
goto_if_false @SYN5_13695
set_heli_orientation 58@ {angle} 270.0
heli_goto_coords 58@ {x} -615.5 {y} 1513.9 {z} 54.8 {minAltitude} 0.0 {maxAltitude} 25.5
set_fixed_camera_position -1647.6 {y} 1409.7 {z} 8.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1590.8 {y} 1426.7 {z} 13.8 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 9

:SYN5_13695
if 
  88@ == 9
goto_if_false @SYN5_14226
if 
  TIMERA > 1000
goto_if_false @SYN5_14226
if 
  not is_char_dead 35@
goto_if_false @SYN5_13799
clear_char_tasks 35@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1628.8 {y} 1421.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13799
if 
  not is_char_dead 45@
goto_if_false @SYN5_13866
clear_char_tasks 45@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1626.8 {y} 1419.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13866
if 
  not is_char_dead 46@
goto_if_false @SYN5_13933
clear_char_tasks 46@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1630.8 {y} 1423.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13933
if 
  not is_char_dead 47@
goto_if_false @SYN5_14000
clear_char_tasks 47@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1632.8 {y} 1425.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14000
if 
  not is_char_dead 48@
goto_if_false @SYN5_14067
clear_char_tasks 48@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1634.0 {y} 1423.0 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14067
if 
  not is_char_dead $ryder
goto_if_false @SYN5_14122
give_weapon_to_char $ryder {weaponType} WeaponType.Teargas {ammo} 1
set_current_char_weapon $ryder {weaponType} WeaponType.Teargas
task_shoot_at_coord $ryder {x} -1652.5 {y} 1396.0 {z} 6.2 {time} 500

:SYN5_14122
if 
  not is_char_dead 39@
goto_if_false @SYN5_14184
give_weapon_to_char 39@ {weaponType} WeaponType.Teargas {ammo} 1
set_current_char_weapon 39@ {weaponType} WeaponType.Teargas
195@ = open_sequence_task 
task_pause -1 {time} 500
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14184
132@ = 7
134@ = 11
135@ = 12
gosub @SYN5_30472
TIMERA = 0
88@ = 10

:SYN5_14226
if 
  88@ == 10
goto_if_false @SYN5_14319
if 
  not is_char_dead 39@
goto_if_false @SYN5_14319
$task_status = get_script_task_status 39@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14319
task_shoot_at_coord 39@ {x} -1653.1 {y} 1400.0 {z} 7.0 {time} 500
88@ = 11

:SYN5_14319
if 
  88@ == 11
goto_if_false @SYN5_14565
if 
  132@ == 0
goto_if_false @SYN5_14565
if 
  TIMERA > 2000
goto_if_false @SYN5_14565
if 
  not is_char_dead $ryder
goto_if_false @SYN5_14565
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14565
195@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -1649.1 {y} 1395.0 {z} 7.0 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
132@ = 7
134@ = 12
135@ = 14
gosub @SYN5_30472
set_fixed_camera_position -1665.9 {y} 1386.8 {z} 11.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1641.2 {y} 1407.9 {z} 9.9 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 12

:SYN5_14565
if 
  88@ == 12
goto_if_false @SYN5_14685
if 
  TIMERA > 1500
goto_if_false @SYN5_14685
59@ = create_fx_system "TEARGASAD" {x} -1656.5 {y} 1398.0 {z} 6.2 {ignoreBoundingChecks} True
play_fx_system 59@
60@ = create_fx_system "TEARGASAD" {x} -1656.0 {y} 1393.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 60@
88@ = 13

:SYN5_14685
if 
  88@ == 13
goto_if_false @SYN5_17454
if 
  TIMERA > 5000
goto_if_false @SYN5_17454
89@ = 0

:SYN5_14729
skip_cutscene_end 
if 
  89@ == 1
goto_if_false @SYN5_14766
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0

:SYN5_14766
do_fade 500 {direction} Fade.Out

:SYN5_14773
if 
  get_fading_status 
goto_if_false @SYN5_14797
wait 0
goto @SYN5_14773

:SYN5_14797
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_14829
goto @SYN5_8953

:SYN5_14829
if 
  90@ == 1
goto_if_false @SYN5_14854
goto @SYN5_23151

:SYN5_14854
if 
  89@ == 1
goto_if_false @SYN5_15197
camera_reset_new_scriptables 
gosub @SYN5_25123
gosub @SYN5_25613
if 
  not is_car_dead 55@
goto_if_false @SYN5_14934
set_car_coordinates 55@ {x} -1702.9 {y} 1335.5 {z} 5.9
set_car_heading 55@ {heading} 271.8

:SYN5_14934
if 
  not is_car_dead 56@
goto_if_false @SYN5_14980
set_car_coordinates 56@ {x} -1706.6 {y} 1340.2 {z} 5.9
set_car_heading 56@ {heading} 271.8

:SYN5_14980
if 
  not is_car_dead 57@
goto_if_false @SYN5_15026
set_car_coordinates 57@ {x} -1718.4 {y} 1345.7 {z} 6.2
set_car_heading 57@ {heading} 231.8

:SYN5_15026
if 
  not is_car_dead 76@
goto_if_false @SYN5_15107
open_car_door 76@ {door} CarDoor.LeftRearDoor
open_car_door 76@ {door} CarDoor.RightRearDoor
if 
  is_playback_going_on_for_car 76@
goto_if_false @SYN5_15077
stop_playback_recorded_car 76@

:SYN5_15077
set_car_coordinates 76@ {x} -1722.3 {y} 1365.6 {z} 6.2
set_car_heading 76@ {heading} 325.6

:SYN5_15107
remove_car_recording 27
kill_fx_system 59@
kill_fx_system 60@
59@ = create_fx_system "TEARGASAD" {x} -1656.5 {y} 1398.0 {z} 6.2 {ignoreBoundingChecks} True
play_fx_system 59@
60@ = create_fx_system "TEARGASAD" {x} -1656.0 {y} 1393.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 60@

:SYN5_15197
clear_char_tasks_immediately $wuzi
clear_char_tasks_immediately $cesar
clear_char_tasks_immediately $scplayer
give_weapon_to_char $cesar {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker $cesar {handleOrTemplate} 196@
task_shoot_at_coord $wuzi {x} -1685.2 {y} 1363.1 {z} 7.8 {time} -1
if 
  not is_char_dead 36@
goto_if_false @SYN5_15290
task_shoot_at_coord 36@ {x} -1682.2 {y} 1364.1 {z} 7.8 {time} -1

:SYN5_15290
if 
  not is_char_dead 37@
goto_if_false @SYN5_15328
task_shoot_at_coord 37@ {x} -1694.2 {y} 1355.1 {z} 7.8 {time} -1

:SYN5_15328
if 
  not is_char_dead 38@
goto_if_false @SYN5_15366
task_shoot_at_coord 38@ {x} -1704.2 {y} 1343.1 {z} 7.8 {time} -1

:SYN5_15366
if 
  not is_char_dead 35@
goto_if_false @SYN5_15665
clear_char_tasks_immediately 35@
if 
  not is_char_in_any_car 35@
goto_if_false @SYN5_15430
set_char_coordinates 35@ {x} -1618.9 {y} 1401.8 {z} 6.2
goto @SYN5_15450

:SYN5_15430
warp_char_from_car_to_coord 35@ {x} -1618.9 {y} 1401.8 {z} 6.2

:SYN5_15450
set_char_heading 35@ {heading} 110.5
hide_char_weapon_for_scripted_cutscene 35@ {state} False
198@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -1619.3 {y} 1412.1 {z} 6.2 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_turn_char_to_face_char -1 {target} $scplayer
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 4000
close_sequence_task 198@
199@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -1635.0 {y} 1430.4 {z} 6.2 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_turn_char_to_face_char -1 {target} $scplayer
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 4000
close_sequence_task 199@
200@ = open_sequence_task 
perform_sequence_task -1 {sequence} 198@
perform_sequence_task -1 {sequence} 199@
perform_sequence_task -1 {sequence} 199@
perform_sequence_task -1 {sequence} 198@
set_sequence_to_repeat 200@ {state} True
close_sequence_task 200@
perform_sequence_task 35@ {sequence} 200@
clear_sequence_task 198@
clear_sequence_task 199@
clear_sequence_task 200@
79@ = add_blip_for_char 35@

:SYN5_15665
if 
  not is_char_dead 39@
goto_if_false @SYN5_15791
clear_char_tasks_immediately 39@
set_char_coordinates 39@ {x} -1631.2 {y} 1410.3 {z} 6.2
set_char_heading 39@ {heading} 137.6
195@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_15791
40@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1697.9 {y} 1345.7 {z} 6.1
set_char_accuracy 40@ {accuracy} 130@
set_char_only_damaged_by_player 40@ {state} True
clear_char_tasks_immediately 40@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_heading 40@ {heading} 146.8
set_char_decision_maker 40@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 40@ {state} True
195@ = open_sequence_task 
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 40@ {sequence} 195@
clear_sequence_task 195@
if 
  not is_char_dead 41@
goto_if_false @SYN5_16030
clear_char_tasks_immediately 41@
set_char_stay_in_same_place 41@ {state} False
set_char_kinda_stay_in_same_place 41@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1690.4 {y} 1367.5 {z} 8.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 230.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 41@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16030
if 
  not is_char_dead 42@
goto_if_false @SYN5_16141
clear_char_tasks_immediately 42@
set_char_stay_in_same_place 42@ {state} False
set_char_kinda_stay_in_same_place 42@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1690.9 {y} 1363.8 {z} 8.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 230.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 42@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16141
if 
  not is_char_dead 43@
goto_if_false @SYN5_16252
clear_char_tasks_immediately 43@
set_char_stay_in_same_place 43@ {state} False
set_char_kinda_stay_in_same_place 43@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1698.8 {y} 1352.4 {z} 6.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 251.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 43@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16252
if 
  not is_char_dead 44@
goto_if_false @SYN5_16363
clear_char_tasks_immediately 44@
set_char_stay_in_same_place 44@ {state} False
set_char_kinda_stay_in_same_place 44@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1682.5 {y} 1364.4 {z} 6.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 182.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 44@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16363
61@ = create_fx_system "TEARGASAD" {x} -1657.8 {y} 1405.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 61@
62@ = create_fx_system "TEARGASAD" {x} -1643.3 {y} 1390.7 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 62@
if 
  not is_char_dead 45@
goto_if_false @SYN5_16522
clear_char_tasks_immediately 45@
set_char_coordinates 45@ {x} -1647.7 {y} 1421.8 {z} 6.2
set_char_heading 45@ {heading} 186.5
set_char_stay_in_same_place 45@ {state} False
set_char_kinda_stay_in_same_place 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 45@ {target} $scplayer

:SYN5_16522
if 
  not is_char_dead 46@
goto_if_false @SYN5_16591
clear_char_tasks_immediately 46@
set_char_coordinates 46@ {x} -1672.6 {y} 1373.9 {z} 8.8
set_char_heading 46@ {heading} 136.4
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 46@ {target} $scplayer

:SYN5_16591
if 
  not is_char_dead 47@
goto_if_false @SYN5_16660
clear_char_tasks_immediately 47@
set_char_coordinates 47@ {x} -1631.8 {y} 1398.7 {z} 6.2
set_char_heading 47@ {heading} 105.9
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 47@ {target} $scplayer

:SYN5_16660
if 
  not is_char_dead 48@
goto_if_false @SYN5_16743
clear_char_tasks_immediately 48@
set_char_coordinates 48@ {x} -1658.7 {y} 1387.3 {z} 6.2
set_char_heading 48@ {heading} 144.5
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_stay_in_same_place 48@ {state} False
set_char_kinda_stay_in_same_place 48@ {state} True
task_kill_char_on_foot 48@ {target} $scplayer

:SYN5_16743
107@ = generate_random_int_in_range 0 {max} 2
51@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1645.8 {y} 1401.5 {z} 8.8
set_char_accuracy 51@ {accuracy} 130@
set_char_heading 51@ {heading} 129.4
set_char_decision_maker 51@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 51@ {state} True
set_char_only_damaged_by_player 51@ {state} True
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 51@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
52@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1670.5 {y} 1364.8 {z} 6.2
set_char_accuracy 52@ {accuracy} 130@
set_char_heading 52@ {heading} 129.4
set_char_decision_maker 52@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 52@ {state} True
set_char_only_damaged_by_player 52@ {state} True
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 52@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
53@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1687.5 {y} 1367.8 {z} 6.2
set_char_accuracy 53@ {accuracy} 130@
set_char_heading 53@ {heading} 124.5
set_char_decision_maker 53@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 53@ {state} True
set_char_only_damaged_by_player 53@ {state} True
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 53@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
54@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1657.3 {y} 1379.8 {z} 8.8
set_char_accuracy 54@ {accuracy} 130@
set_char_heading 54@ {heading} 140.5
set_char_decision_maker 54@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 54@ {state} True
set_char_only_damaged_by_player 54@ {state} True
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 54@ {target} $scplayer
delete_car 58@
delete_char $ryder
remove_car_recording 28
unload_special_character 2
unload_special_character 3
remove_animation "GRENADE"
mark_car_as_no_longer_needed 58@
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 413
mark_car_as_no_longer_needed 75@
mark_model_as_no_longer_needed 429
set_car_density_multiplier 1.0
add_char_decision_maker_event_response 196@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 196@ {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 100.0 {hate} 0.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
load_scene -1720.4 {y} 1275.5 {z} 16.9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
126@ = 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'SYN5_06' {time} 4000 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_17359
if 
  get_fading_status 
goto_if_false @SYN5_17383
wait 0
goto @SYN5_17359

:SYN5_17383
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17415
goto @SYN5_8953

:SYN5_17415
if 
  90@ == 1
goto_if_false @SYN5_17440
goto @SYN5_23151

:SYN5_17440
88@ = 0
87@ = 5

:SYN5_17454
if 
  87@ == 5
goto_if_false @SYN5_21573
if 
  88@ == 0
goto_if_false @SYN5_17806
if 
  locate_char_any_means_2d $scplayer {x} -1708.6 {y} 1331.1 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN5_17542
set_ped_density_multiplier 0.0
goto @SYN5_17549

:SYN5_17542
set_ped_density_multiplier 1.0

:SYN5_17549
gosub @SYN5_29054
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_17599
if 
  not is_char_dead 35@
goto_if_false @SYN5_17599
set_char_only_damaged_by_player 35@ {state} False
explode_char_head 35@

:SYN5_17599
if 
  is_char_dead 35@
goto_if_false @SYN5_17806
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_17806
clear_prints 
remove_blip 79@
do_fade 1000 {direction} Fade.Out

:SYN5_17654
if 
  get_fading_status 
goto_if_false @SYN5_17678
wait 0
goto @SYN5_17654

:SYN5_17678
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17710
goto @SYN5_8953

:SYN5_17710
if 
  90@ == 1
goto_if_false @SYN5_17735
goto @SYN5_23151

:SYN5_17735
request_animation "DANCING"
request_animation "KISSING"
request_animation "MISC"
request_animation "RYDER"
request_model #DYN_WOODPILE2
request_model 452
load_special_character 2 {modelName} 'RYDER2'
load_all_models_now 
88@ = 1

:SYN5_17806
if 
  88@ == 1
goto_if_false @SYN5_19605
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_drunkenness $player1 {intensity} 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
clear_area -1629.438 {y} 1422.6479 {z} 6.2 {radius} 60.0 {clearParticles} True
load_scene -1629.438 {y} 1422.6479 {z} 6.2
delete_char 35@
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1629.438 {y} 1422.6479 {z} 6.2
set_char_health 35@ {health} 500
add_armour_to_char 35@ {amount} 100
set_char_accuracy 35@ {accuracy} 130@
set_char_heading 35@ {heading} 260.0
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_bleeding 35@ {state} True
set_char_decision_maker 35@ {handleOrTemplate} 197@
195@ = open_sequence_task 
task_play_anim -1 {animationName} "RYD_DIE_PT1" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1639.9 {y} 1410.3 {z} 6.2
set_char_heading $scplayer {heading} 325.8
91@ = 0
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Mp5
if 
  91@ > 0
goto_if_false @SYN5_18145
set_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
goto @SYN5_18232

:SYN5_18145
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
if 
  91@ > 0
goto_if_false @SYN5_18187
set_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
goto @SYN5_18232

:SYN5_18187
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Tec9
if 
  91@ == 0
goto_if_false @SYN5_18225
give_weapon_to_char $scplayer {weaponType} WeaponType.Tec9 {ammo} 300

:SYN5_18225
set_current_char_weapon $scplayer {weaponType} WeaponType.Tec9

:SYN5_18232
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1632.2 {y} 1419.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
set_camera_behind_player 
restore_camera 
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_18306
remove_char_from_group $cesar

:SYN5_18306
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1638.1 {y} 1408.8 {z} 6.2
set_char_heading $cesar {heading} 325.8
set_char_decision_maker $cesar {handleOrTemplate} 197@
give_weapon_to_char $cesar {weaponType} WeaponType.Tec9 {ammo} 30000
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1630.5 {y} 1417.9 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1645.7 {y} 1409.0 {z} 6.2
set_char_heading $wuzi {heading} 328.5
set_char_decision_maker $wuzi {handleOrTemplate} 197@
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1640.2 {y} 1414.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 35@
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@
if 
  not is_char_dead 39@
goto_if_false @SYN5_18579
set_char_decision_maker 39@ {handleOrTemplate} 197@
clear_char_tasks_immediately 39@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18579
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
if 
  not is_char_dead 45@
goto_if_false @SYN5_18672
set_char_decision_maker 45@ {handleOrTemplate} 197@
clear_char_tasks_immediately 45@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18672
delete_char 46@
if 
  not is_char_dead 47@
goto_if_false @SYN5_18745
set_char_decision_maker 47@ {handleOrTemplate} 197@
clear_char_tasks_immediately 47@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18745
if 
  not is_char_dead 48@
goto_if_false @SYN5_18813
set_char_decision_maker 48@ {handleOrTemplate} 197@
clear_char_tasks_immediately 48@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18813
delete_char 36@
delete_char 37@
delete_char 38@
$ryder = create_char PedType.Mission2 {modelId} 291 {x} -1633.1 {y} 1394.1 {z} 6.2
set_char_accuracy $ryder {accuracy} 130@
set_char_heading $ryder {heading} 268.0
set_char_decision_maker $ryder {handleOrTemplate} 197@
set_char_only_damaged_by_player $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
add_armour_to_char $ryder {amount} 100
67@ = create_random_char -1502.8 {y} 1379.5 {z} 3.1
set_char_heading 67@ {heading} 123.3
task_play_anim 67@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = create_random_char -1503.2 {y} 1377.3 {z} 3.1
set_char_heading 68@ {heading} 37.1
task_play_anim 68@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
69@ = create_random_char -1506.0 {y} 1375.2 {z} 3.1
set_char_heading 69@ {heading} 291.9
task_play_anim 69@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
70@ = create_random_char -1509.2 {y} 1379.3 {z} 2.8
71@ = create_random_char -1510.2 {y} 1379.3 {z} 2.8
task_turn_char_to_face_char 70@ {target} 71@
task_play_anim 70@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char 71@ {target} 70@
task_play_anim 71@ {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
72@ = start_script_fire -1505.0 {y} 1379.2 {z} 2.1 {propagation} 0 {size} 1
78@ = create_object_no_offset #DYN_WOODPILE2 {x} -1505.0 {y} 1379.2 {z} 2.1
set_object_scale 78@ {scale} 0.5
set_object_collision_damage_effect 78@ {state} False
65@ = create_car 452 {x} -1504.0 {y} 1388.7 {z} 0.0
set_car_heading 65@ {heading} 282.0
anchor_boat 65@ {state} True
set_car_straight_line_distance 65@ {distance} 255
66@ = create_car 452 {x} -1519.9 {y} 1382.3 {z} 0.0
set_car_heading 66@ {heading} 314.0
anchor_boat 66@ {state} True
set_fixed_camera_position -1643.8 {y} 1408.3 {z} 7.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.1 {y} 1416.7 {z} 7.9 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN5_19468
if 
  get_fading_status 
goto_if_false @SYN5_19492
wait 0
goto @SYN5_19468

:SYN5_19492
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_19524
goto @SYN5_8953

:SYN5_19524
if 
  90@ == 1
goto_if_false @SYN5_19549
goto @SYN5_23151

:SYN5_19549
89@ = 1
skip_cutscene_start_internal @SYN5_20987
132@ = 8
134@ = 0
135@ = 1
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_19605
if 
  88@ == 2
goto_if_false @SYN5_19810
if 
  not is_char_dead 35@
goto_if_false @SYN5_19810
if 
  locate_char_any_means_2d 35@ {x} -1626.6 {y} 1421.8 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @SYN5_19810
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -1624.4 {y} 1423.8 {z} 6.2
set_char_heading 35@ {heading} 135.0
task_play_anim_non_interruptable 35@ {animationName} "RYD_DIE_PT2" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_fixed_camera_position -1633.2 {y} 1416.9 {z} 7.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1624.2 {y} 1424.9 {z} 6.8 {switchStyle} SwitchType.JumpCut
88@ = 3

:SYN5_19810
if 
  88@ == 3
goto_if_false @SYN5_19945
if 
  not is_char_dead 35@
goto_if_false @SYN5_19945
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_19945
194@ = get_char_anim_current_time 35@ {animationName} "RYD_DIE_PT2"
if 
  194@ > 0.783
goto_if_false @SYN5_19945
set_char_anim_speed 35@ {animName} "RYD_DIE_PT2" {animSpeed} 0.0
88@ = 4

:SYN5_19945
if 
  88@ == 4
goto_if_false @SYN5_20136
if 
  132@ == 0
goto_if_false @SYN5_20136
if 
  not is_char_dead 35@
goto_if_false @SYN5_20136
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 35@
task_shoot_at_char -1 {target} 35@ {time} 1000
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 35@
task_shoot_at_char -1 {target} 35@ {time} 1000
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_20129
set_char_anim_speed 35@ {animName} "RYD_DIE_PT2" {animSpeed} 1.0

:SYN5_20129
88@ = 5

:SYN5_20136
if 
  88@ == 5
goto_if_false @SYN5_20275
if 
  not is_char_dead 35@
goto_if_false @SYN5_20275
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_20275
194@ = get_char_anim_current_time 35@ {animationName} "RYD_DIE_PT2"
if 
  194@ > 0.98
goto_if_false @SYN5_20275
set_char_coordinates 35@ {x} -1622.1 {y} 1425.5 {z} 6.2
TIMERA = 0
88@ = 6

:SYN5_20275
if 
  88@ == 6
goto_if_false @SYN5_20425
if 
  TIMERA > 2000
goto_if_false @SYN5_20425
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20411
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1621.0 {y} 1396.0 {z} 7.4 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
point_camera_at_char $ryder {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
132@ = 8
134@ = 1
135@ = 4
gosub @SYN5_30472

:SYN5_20411
TIMERA = 0
88@ = 7

:SYN5_20425
if 
  88@ == 7
goto_if_false @SYN5_20663
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20663
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_20663
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1614.8199 {y} 1397.204 {z} 7.277 {speed} MoveState.Run {time} -1
task_char_slide_to_coord -1 {x} -1614.8199 {y} 1397.204 {z} 7.277 {angle} 287.0 {radius} 0.9
task_play_anim_non_interruptable -1 {animationName} "RUN_DIVE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
set_fixed_camera_position -1617.8 {y} 1398.8 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1614.2 {y} 1396.3 {z} 8.0 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 8

:SYN5_20663
if 
  88@ == 8
goto_if_false @SYN5_20734
if 
  132@ == 0
goto_if_false @SYN5_20734
132@ = 8
134@ = 4
135@ = 6
gosub @SYN5_30472
88@ = 9

:SYN5_20734
if 
  88@ == 9
goto_if_false @SYN5_20847
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20847
if 
  is_char_playing_anim $ryder {animationName} "RUN_DIVE"
goto_if_false @SYN5_20847
194@ = get_char_anim_current_time $ryder {animationName} "RUN_DIVE"
if 
  194@ > 0.98
goto_if_false @SYN5_20847
TIMERA = 0
88@ = 10

:SYN5_20847
if 
  88@ == 10
goto_if_false @SYN5_20918
if 
  TIMERA > 500
goto_if_false @SYN5_20918
report_mission_audio_event_at_position -1609.2 {y} 1401.7 {z} 5.8 {soundId} ScriptSound.SoundPedHitWaterSplash
TIMERA = 0
88@ = 11

:SYN5_20918
if 
  88@ == 11
goto_if_false @SYN5_20962
if 
  TIMERA > 1000
goto_if_false @SYN5_20962
88@ = 12

:SYN5_20962
if 
  88@ == 12
goto_if_false @SYN5_21573
89@ = 0

:SYN5_20987
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21021
goto @SYN5_8953

:SYN5_21021
if 
  90@ == 1
goto_if_false @SYN5_21046
goto @SYN5_23151

:SYN5_21046
if 
  89@ == 1
goto_if_false @SYN5_21184
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0
do_fade 500 {direction} Fade.Out

:SYN5_21088
if 
  get_fading_status 
goto_if_false @SYN5_21112
wait 0
goto @SYN5_21088

:SYN5_21112
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21144
goto @SYN5_8953

:SYN5_21144
if 
  90@ == 1
goto_if_false @SYN5_21169
goto @SYN5_23151

:SYN5_21169
delete_char 35@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $cesar

:SYN5_21184
if 
  not is_char_dead $ryder
goto_if_false @SYN5_21309
if 
  not is_car_dead 65@
goto_if_false @SYN5_21309
set_char_drowns_in_water $ryder {state} False
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} -1543.9 {y} 1401.6 {z} 0.0
191@, 192@, 193@ = get_offset_from_car_in_world_coords 65@ {xOffset} -1.0 {yOffset} 2.0 {zOffset} 0.0
task_swim_to_coord $ryder {x} 191@ {y} 192@ {z} 193@
set_swim_speed $ryder {speed} 2.3
79@ = add_blip_for_char $ryder

:SYN5_21309
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 174
task_go_straight_to_coord $cesar {x} -1616.5 {y} 1402.9 {z} 6.2 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord $wuzi {x} -1615.5 {y} 1398.4 {z} 6.2 {speed} MoveState.Walk {time} -2
unload_special_character 4
remove_animation "MISC"
remove_animation "RYDER"
clear_prints 
print 'SYN5_07' {time} 7000 {flag} 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:SYN5_21471
if 
  get_fading_status 
goto_if_false @SYN5_21495
wait 0
goto @SYN5_21471

:SYN5_21495
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21527
goto @SYN5_8953

:SYN5_21527
if 
  90@ == 1
goto_if_false @SYN5_21552
goto @SYN5_23151

:SYN5_21552
133@ = 0
88@ = 0
87@ = 6

:SYN5_21573
if 
  87@ == 6
goto_if_false @SYN5_22930
if 
  133@ == 0
goto_if_false @SYN5_21659
if 
  is_char_in_water $scplayer
goto_if_false @SYN5_21659
clear_this_print 'SYN5_07'
print_now 'SYN5_08' {time} 7000 {flag} 1
133@ = 1

:SYN5_21659
if 
  133@ == 1
goto_if_false @SYN5_21762
if 
  not is_car_dead 66@
goto_if_false @SYN5_21762
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 66@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN5_21762
86@ = add_blip_for_car 66@
set_blip_as_friendly 86@ {state} True
print_now 'SYN5_11' {time} 7000 {flag} 1
133@ = 2

:SYN5_21762
if 
  133@ == 2
goto_if_false @SYN5_21904
if 
  not is_car_dead 66@
goto_if_false @SYN5_21876
if 
  is_char_in_car $scplayer {vehicle} 66@
goto_if_false @SYN5_21876
if 
  not is_char_dead 67@
goto_if_false @SYN5_21869
132@ = 9
134@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_21869
133@ = 3

:SYN5_21876
if 
  is_char_in_any_boat $scplayer
goto_if_false @SYN5_21904
remove_blip 86@
133@ = 3

:SYN5_21904
if 
  133@ == 3
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
print_now 'SYN5_12' {time} 7000 {flag} 1
133@ = 4

:SYN5_21981
if 
  133@ == 4
goto_if_false @SYN5_22178
if 
  132@ == 0
goto_if_false @SYN5_22178
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22178
if 
  not is_car_dead 65@
goto_if_false @SYN5_22178
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_22178
if 
  not is_car_dead 66@
goto_if_false @SYN5_22178
if 
  is_char_in_car $scplayer {vehicle} 66@
goto_if_false @SYN5_22178
if 
  locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SYN5_22178
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22178
132@ = 11
134@ = 0
gosub @SYN5_30472
133@ = 5

:SYN5_22178
if 
  88@ == 0
goto_if_false @SYN5_22366
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22366
if 
  not is_car_dead 65@
goto_if_false @SYN5_22366
if 
  not locate_char_any_means_2d $ryder {x} 191@ {y} 192@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SYN5_22351
$task_status = get_script_task_status $ryder {taskId} 2017
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22344
191@, 192@, 193@ = get_offset_from_car_in_world_coords 65@ {xOffset} -1.0 {yOffset} 2.0 {zOffset} 0.0
task_swim_to_coord $ryder {x} 191@ {y} 192@ {z} 193@
set_swim_speed $ryder {speed} 2.3

:SYN5_22344
goto @SYN5_22366

:SYN5_22351
warp_char_into_car $ryder {vehicle} 65@
88@ = 1

:SYN5_22366
if 
  88@ == 1
goto_if_false @SYN5_22488
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22488
if or
  locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  has_char_been_damaged_by_char $ryder {handle} $scplayer
goto_if_false @SYN5_22446
88@ = 2

:SYN5_22446
if 
  not is_car_dead 65@
goto_if_false @SYN5_22488
if 
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @SYN5_22488
88@ = 2

:SYN5_22488
if 
  88@ == 2
goto_if_false @SYN5_22612
if 
  125@ == 4
goto_if_false @SYN5_22612
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22612
if 
  not locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @SYN5_22612
if 
  not is_char_on_screen $ryder
goto_if_false @SYN5_22612
clear_prints 
print_now 'SYN5_09' {time} 4000 {flag} 1
goto @SYN5_23151

:SYN5_22612
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22872
if 
  not is_car_dead 65@
goto_if_false @SYN5_22695
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_22688
if 
  88@ > 1
goto_if_false @SYN5_22688
gosub @SYN5_27551

:SYN5_22688
goto @SYN5_22872

:SYN5_22695
if 
  125@ == 0
goto_if_false @SYN5_22750
task_swim_to_coord $ryder {x} -1491.2 {y} 1387.4 {z} 0.0
set_swim_speed $ryder {speed} 2.3
125@ = 1

:SYN5_22750
if 
  125@ == 1
goto_if_false @SYN5_22872
$task_status = get_script_task_status $ryder {taskId} 2017
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22872
195@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_go_straight_to_coord -1 {x} -1497.2 {y} 1383.5 {z} 1.6 {speed} MoveState.Run {time} 1
task_achieve_heading -1 {heading} 64.5
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 2

:SYN5_22872
if 
  is_car_dead 66@
goto_if_false @SYN5_22893
remove_blip 86@

:SYN5_22893
if 
  is_char_dead $ryder
goto_if_false @SYN5_22930
TIMERA = 0
88@ = 0
87@ = 7

:SYN5_22930
if 
  87@ == 7
goto_if_false @SYN5_23137
if 
  TIMERA > 2000
goto_if_false @SYN5_23077
if 
  88@ == 0
goto_if_false @SYN5_23077
if 
  is_char_in_any_boat $scplayer
goto_if_false @SYN5_23070
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
132@ = 10
134@ = 0
gosub @SYN5_30472
88@ = 1
goto @SYN5_23077

:SYN5_23070
goto @SYN5_23169

:SYN5_23077
if 
  88@ == 1
goto_if_false @SYN5_23137
if 
  132@ == 0
goto_if_false @SYN5_23137
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
goto @SYN5_23169

:SYN5_23137
gosub @SYN5_32136
goto @SYN5_1694

:SYN5_23151
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN5_23169
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 40
remove_blip $synd_contact_blip
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'SYND_5'
player_made_progress 1
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
return 

:SYN5_23260
if 
  is_var_text_label_empty s$shop_name
goto_if_false @SYN5_23278
restore_camera_jumpcut 

:SYN5_23278
delete_object 73@
remove_blip 79@
remove_animation "DANCING"
remove_animation "KISSING"
remove_animation "MISC"
remove_animation "RYDER"
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 79@
remove_blip 86@
kill_fx_system 59@
kill_fx_system 60@
kill_fx_system 61@
kill_fx_system 62@
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 452
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 120
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 174
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed #SNIPER_ANIM
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed #DYN_WOODPILE2
mark_model_as_no_longer_needed 355
remove_script_fire 72@
if 
  not is_char_dead $scplayer
goto_if_false @SYN5_23511
shut_char_up_for_scripted_speech $scplayer {state} False

:SYN5_23511
shut_all_chars_up False
release_weather 
remove_char_elegantly $cesar
remove_char_elegantly $ryder
remove_char_elegantly 34@
remove_char_elegantly 35@
switch_ped_roads_back_to_original -1755.6 {leftBottomY} 1256.6 {leftBottomZ} 0.0 {rightTopX} -1598.2 {rightTopY} 1660.1 {rightTopZ} 50.0
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:SYN5_23605
if 
  10 > 87@
goto_if_false @SYN5_23664
if 
  is_char_dead $cesar
goto_if_false @SYN5_23664
clear_prints 
print_now 'SYN5_04' {time} 7000 {flag} 1
90@ = 1

:SYN5_23664
if 
  87@ == 3
goto_if_false @SYN5_23714
if 
  is_char_dead $wuzi
goto_if_false @SYN5_23714
clear_prints 
88@ = 0
87@ = 10

:SYN5_23714
if or
  87@ == 2
  87@ > 3
goto_if_false @SYN5_23798
if 
  87@ <> 10
goto_if_false @SYN5_23798
if 
  is_char_dead $wuzi
goto_if_false @SYN5_23798
clear_prints 
print_now 'SYN5_05' {time} 7000 {flag} 1
90@ = 1

:SYN5_23798
return 

:SYN5_23800
if 
  is_char_dead 45@
goto_if_false @SYN5_23905
107@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1713.16 {y} 1356.5699 {z} 16.2
set_char_heading 45@ {heading} 44.5
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 45@ {state} True
set_char_decision_maker 45@ {handleOrTemplate} 197@
set_char_stay_in_same_place 45@ {state} True
set_char_only_damaged_by_player 45@ {state} True

:SYN5_23905
if 
  is_char_dead 46@
goto_if_false @SYN5_24010
107@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1682.9 {y} 1379.8 {z} 13.8
set_char_heading 46@ {heading} 36.8
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 46@ {state} True
set_char_decision_maker 46@ {handleOrTemplate} 197@
set_char_stay_in_same_place 46@ {state} True
set_char_only_damaged_by_player 46@ {state} True

:SYN5_24010
if 
  is_char_dead 47@
goto_if_false @SYN5_24115
107@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
set_char_heading 47@ {heading} 276.9
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 197@
set_char_stay_in_same_place 47@ {state} True
set_char_only_damaged_by_player 47@ {state} True

:SYN5_24115
if 
  is_char_dead 48@
goto_if_false @SYN5_24220
107@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.4 {y} 1345.6 {z} 16.2
set_char_heading 48@ {heading} 4.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 197@
set_char_stay_in_same_place 48@ {state} True
set_char_only_damaged_by_player 48@ {state} True

:SYN5_24220
if 
  is_char_dead 49@
goto_if_false @SYN5_24325
107@ = generate_random_int_in_range 0 {max} 2
49@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1661.0 {y} 1362.2 {z} 17.4
set_char_heading 49@ {heading} 236.8
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 197@
set_char_stay_in_same_place 49@ {state} True
set_char_only_damaged_by_player 49@ {state} True

:SYN5_24325
if 
  is_char_dead 50@
goto_if_false @SYN5_24430
107@ = generate_random_int_in_range 0 {max} 2
50@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1641.6 {y} 1369.9 {z} 17.4
set_char_heading 50@ {heading} 211.1
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 197@
set_char_stay_in_same_place 50@ {state} True
set_char_only_damaged_by_player 50@ {state} True

:SYN5_24430
return 

:SYN5_24432
if 
  is_char_dead $wuzi
goto_if_false @SYN5_24602
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1687.4 {y} 1321.1 {z} 6.2
set_char_heading $wuzi {heading} 326.8
set_char_visible $wuzi {state} False
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted $wuzi {state} True
set_char_decision_maker $wuzi {handleOrTemplate} 197@
set_char_stay_in_same_place $wuzi {state} True
set_char_only_damaged_by_player $wuzi {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_24602
if 
  is_char_dead 36@
goto_if_false @SYN5_24775
36@ = create_char PedType.Mission1 {modelId} 117 {x} -1689.5 {y} 1320.2 {z} 6.2
set_char_heading 36@ {heading} 312.1
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 36@ {time} 360000000
set_char_never_targetted 36@ {state} True
set_char_decision_maker 36@ {handleOrTemplate} 197@
set_char_stay_in_same_place 36@ {state} True
set_char_only_damaged_by_player 36@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_24775
if 
  is_char_dead 37@
goto_if_false @SYN5_24948
37@ = create_char PedType.Mission1 {modelId} 117 {x} -1688.1 {y} 1319.3 {z} 6.2
set_char_heading 37@ {heading} 327.2
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 37@ {time} 360000000
set_char_never_targetted 37@ {state} True
set_char_decision_maker 37@ {handleOrTemplate} 197@
set_char_stay_in_same_place 37@ {state} True
set_char_only_damaged_by_player 37@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_24948
if 
  is_char_dead 38@
goto_if_false @SYN5_25121
38@ = create_char PedType.Mission1 {modelId} 117 {x} -1686.5 {y} 1318.0 {z} 6.2
set_char_heading 38@ {heading} 346.0
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 38@ {time} 360000000
set_char_never_targetted 38@ {state} True
set_char_decision_maker 38@ {handleOrTemplate} 197@
set_char_stay_in_same_place 38@ {state} True
set_char_only_damaged_by_player 38@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_25121
return 

:SYN5_25123
if 
  is_char_dead 35@
goto_if_false @SYN5_25219
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1716.0 {y} 1349.8 {z} 6.2
set_char_accuracy 35@ {accuracy} 130@
set_anim_group_for_char 35@ {animGroup} "GANG2"
set_char_heading 35@ {heading} 229.4
give_weapon_to_char 35@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_decision_maker 35@ {handleOrTemplate} 197@
set_char_stay_in_same_place 35@ {state} True

:SYN5_25219
if 
  is_char_dead 45@
goto_if_false @SYN5_25306
107@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1716.8 {y} 1351.6 {z} 6.2
set_char_accuracy 45@ {accuracy} 130@
set_char_heading 45@ {heading} 229.4
set_char_decision_maker 45@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 45@ {state} True

:SYN5_25306
if 
  is_char_dead 46@
goto_if_false @SYN5_25405
107@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1720.5 {y} 1353.7 {z} 6.2
set_char_accuracy 46@ {accuracy} 130@
set_anim_group_for_char 46@ {animGroup} "GANG2"
set_char_heading 46@ {heading} 229.4
set_char_decision_maker 46@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 46@ {state} True

:SYN5_25405
if 
  is_char_dead 47@
goto_if_false @SYN5_25502
107@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1718.4 {y} 1351.3 {z} 6.2
set_char_accuracy 47@ {accuracy} 130@
set_char_heading 47@ {heading} 236.0
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 47@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 47@ {state} True

:SYN5_25502
if 
  is_char_dead 48@
goto_if_false @SYN5_25611
107@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1718.2 {y} 1353.3 {z} 6.2
set_char_accuracy 48@ {accuracy} 130@
set_anim_group_for_char 48@ {animGroup} "GANG1"
set_char_heading 48@ {heading} 301.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 48@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 48@ {state} True

:SYN5_25611
return 

:SYN5_25613
if 
  is_car_dead 55@
goto_if_false @SYN5_25693
custom_plate_for_next_car 600 {text} "_SHERM__"
55@ = create_car 600 {x} -1774.2 {y} 1376.8 {z} 5.7
change_car_colour 55@ {color1} 84 {color2} 84
set_car_heading 55@ {heading} 251.8
lock_car_doors 55@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_25693
if 
  is_char_dead $ryder
goto_if_false @SYN5_25769
$ryder = create_char_inside_car 55@ {pedType} PedType.Mission2 {modelId} 291
set_char_accuracy $ryder {accuracy} 130@
give_weapon_to_char $ryder {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_decision_maker $ryder {handleOrTemplate} 197@
set_char_only_damaged_by_player $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
add_armour_to_char $ryder {amount} 100

:SYN5_25769
if 
  is_char_dead 39@
goto_if_false @SYN5_25846
107@ = generate_random_int_in_range 3 {max} 5
39@ = create_char_as_passenger 55@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} -1
set_char_accuracy 39@ {accuracy} 130@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 39@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 39@ {state} True

:SYN5_25846
if 
  is_car_dead 56@
goto_if_false @SYN5_25902
56@ = create_car 566 {x} -1784.2 {y} 1379.8 {z} 5.7
set_car_heading 56@ {heading} 251.8
lock_car_doors 56@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_25902
if 
  is_char_dead 41@
goto_if_false @SYN5_25977
107@ = generate_random_int_in_range 3 {max} 5
41@ = create_char_inside_car 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
set_char_accuracy 41@ {accuracy} 130@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 41@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 41@ {state} True

:SYN5_25977
if 
  is_char_dead 42@
goto_if_false @SYN5_26054
107@ = generate_random_int_in_range 3 {max} 5
42@ = create_char_as_passenger 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
set_char_accuracy 42@ {accuracy} 130@
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 42@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 42@ {state} True

:SYN5_26054
if 
  is_car_dead 57@
goto_if_false @SYN5_26110
57@ = create_car 566 {x} -1795.0 {y} 1383.6 {z} 5.7
set_car_heading 57@ {heading} 251.8
lock_car_doors 57@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_26110
if 
  is_char_dead 43@
goto_if_false @SYN5_26185
107@ = generate_random_int_in_range 3 {max} 5
43@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
set_char_accuracy 43@ {accuracy} 130@
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 43@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 43@ {state} True

:SYN5_26185
if 
  is_char_dead 44@
goto_if_false @SYN5_26262
107@ = generate_random_int_in_range 3 {max} 5
44@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
set_char_accuracy 44@ {accuracy} 130@
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 44@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 44@ {state} True

:SYN5_26262
return 

:SYN5_26264
if 
  is_car_dead 58@
goto_if_false @SYN5_26372
58@ = create_car 487 {x} -1600.9 {y} 1424.6 {z} 300.8
set_car_heading 58@ {heading} 97.2
lock_car_doors 58@ {lockStatus} CarLock.LockoutPlayerOnly
set_heli_reached_target_distance 58@ {distance} 3
set_heli_blades_full_speed 58@
set_car_forward_speed 58@ {forwardSpeed} 10.0
heli_goto_coords 58@ {x} -1600.9 {y} 1424.6 {z} 300.0 {minAltitude} 0.0 {maxAltitude} 300.0

:SYN5_26372
if 
  is_char_dead 34@
goto_if_false @SYN5_26435
34@ = create_char_as_passenger 58@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 34@ {handleOrTemplate} 197@
set_char_suffers_critical_hits 34@ {state} False
set_char_only_damaged_by_player 34@ {state} True

:SYN5_26435
return 

:SYN5_26437
if 
  not is_char_dead 45@
goto_if_false @SYN5_26586
if 
  115@ == 0
goto_if_false @SYN5_26586
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1705.8 {y} 1359.5 {z} 16.2 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1701.3 {y} 1356.7 {z} 16.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 236.7
task_set_char_decision_maker -1 {handleOrTemplate} 196@
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26561
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26561
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@
115@ = 1

:SYN5_26586
if 
  not is_char_dead 46@
goto_if_false @SYN5_26726
if 
  116@ == 0
goto_if_false @SYN5_26726
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26701
task_go_straight_to_coord -1 {x} -1703.3 {y} 1361.5 {z} 16.2 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1699.8 {y} 1357.9 {z} 16.2 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26701
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@
116@ = 1

:SYN5_26726
if 
  not is_char_dead 47@
goto_if_false @SYN5_26866
if 
  117@ == 0
goto_if_false @SYN5_26866
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26841
task_go_straight_to_coord -1 {x} -1689.2 {y} 1371.8 {z} 14.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 202.3
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_shoot_at_coord -1 {x} -1687.6 {y} 1367.1 {z} 15.0 {time} -2

:SYN5_26841
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@
117@ = 1

:SYN5_26866
if 
  not is_char_dead 48@
goto_if_false @SYN5_26969
if 
  118@ == 0
goto_if_false @SYN5_26969
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26944
task_achieve_heading -1 {heading} 107.3
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26944
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@
118@ = 1

:SYN5_26969
if 
  not is_char_dead 49@
goto_if_false @SYN5_27086
if 
  119@ == 0
goto_if_false @SYN5_27086
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27061
task_go_straight_to_coord -1 {x} -1674.2 {y} 1345.9 {z} 16.2 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_27061
close_sequence_task 195@
perform_sequence_task 49@ {sequence} 195@
clear_sequence_task 195@
119@ = 1

:SYN5_27086
if 
  not is_char_dead 50@
goto_if_false @SYN5_27241
if 
  120@ == 0
goto_if_false @SYN5_27241
task_set_ignore_weapon_range_flag 50@ {state} True
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27216
task_go_straight_to_coord -1 {x} -1643.6 {y} 1368.7 {z} 17.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 136.5
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} -1661.5 {y} 1354.3 {z} 15.1 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_27216
close_sequence_task 195@
perform_sequence_task 50@ {sequence} 195@
clear_sequence_task 195@
120@ = 1

:SYN5_27241
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27318
if 
  121@ == 0
goto_if_false @SYN5_27318
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@
121@ = 1

:SYN5_27318
if 
  not is_char_dead 36@
goto_if_false @SYN5_27395
if 
  122@ == 0
goto_if_false @SYN5_27395
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@
122@ = 1

:SYN5_27395
if 
  not is_char_dead 37@
goto_if_false @SYN5_27472
if 
  123@ == 0
goto_if_false @SYN5_27472
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@
123@ = 1

:SYN5_27472
if 
  not is_char_dead 38@
goto_if_false @SYN5_27549
if 
  124@ == 0
goto_if_false @SYN5_27549
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@
124@ = 1

:SYN5_27549
return 

:SYN5_27551
if 
  not is_char_dead $ryder
goto_if_false @SYN5_29052
if 
  not is_car_dead 65@
goto_if_false @SYN5_29052
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_29052
if 
  125@ == 0
goto_if_false @SYN5_27923
set_char_drowns_in_water $ryder {state} True
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1500.087 {y} 1396.939 {z} -0.7305 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1347.703 {y} 1319.215 {z} 0.0282 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1250.0699 {y} 1178.178 {z} -0.1243 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1158.0 {y} 1033.016 {z} -0.1089 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1054.175 {y} 920.3442 {z} 0.0405 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1005.599 {y} 787.5093 {z} 0.2581 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -883.1418 {y} 608.1723 {z} -0.1191 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -735.4338 {y} 521.1882 {z} -0.1478 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 1
return 

:SYN5_27923
if 
  125@ == 1
goto_if_false @SYN5_28266
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28266
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} -572.1049 {y} 467.9407 {z} 0.3352 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -404.1097 {y} 430.3622 {z} 0.3394 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -233.5327 {y} 424.5564 {z} 0.2022 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -63.8903 {y} 409.6541 {z} 0.0351 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 106.3031 {y} 423.1877 {z} -0.0997 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 274.607 {y} 452.5373 {z} 0.0679 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 442.7346 {y} 482.1971 {z} 0.239 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 611.5419 {y} 513.3603 {z} 0.1773 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 2
return 

:SYN5_28266
if 
  125@ == 2
goto_if_false @SYN5_28609
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28609
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} 779.744 {y} 547.2416 {z} 0.1644 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 945.0496 {y} 589.466 {z} 0.0676 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1113.1169 {y} 620.2682 {z} -0.0797 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1282.496 {y} 600.009 {z} -0.1302 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1451.739 {y} 568.6847 {z} -0.1388 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1620.593 {y} 536.4412 {z} -0.0845 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1789.897 {y} 510.063 {z} -0.3449 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1959.2061 {y} 491.1599 {z} -0.0624 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 3
return 

:SYN5_28609
if 
  125@ == 3
goto_if_false @SYN5_28898
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28898
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.127 {y} 479.1175 {z} 0.132 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2301.9819 {y} 467.9901 {z} -0.1513 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2471.6641 {y} 456.259 {z} -0.0586 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2641.9819 {y} 442.9174 {z} 0.4767 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2812.749 {y} 425.1894 {z} 0.0436 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2982.4719 {y} 401.9557 {z} -0.7104 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 65@ {actionId} TempAction.GoForward {time} 860000
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 4

:SYN5_28898
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN5_28946
set_boat_cruise_speed 65@ {maxSpeed} 40.0
goto @SYN5_29052

:SYN5_28946
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN5_28994
set_boat_cruise_speed 65@ {maxSpeed} 30.0
goto @SYN5_29052

:SYN5_28994
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @SYN5_29042
set_boat_cruise_speed 65@ {maxSpeed} 20.0
goto @SYN5_29052

:SYN5_29042
set_boat_cruise_speed 65@ {maxSpeed} 10.0

:SYN5_29052
return 

:SYN5_29054
if 
  126@ == 1
goto_if_false @SYN5_29118
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_29118
remove_blip 79@
79@ = add_blip_for_char $cesar
set_blip_as_friendly 79@ {state} True
126@ = 0

:SYN5_29118
if 
  126@ == 0
goto_if_false @SYN5_29239
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN5_29239
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_29203
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:SYN5_29203
remove_blip 79@
if 
  not is_char_dead 35@
goto_if_false @SYN5_29232
79@ = add_blip_for_char 35@

:SYN5_29232
126@ = 1

:SYN5_29239
return 

:SYN5_29241
129@ = generate_random_int_in_range 1 {max} 37
if 
  129@ == 1
goto_if_false @SYN5_29283
custom_plate_for_next_car 128@ {text} "GOT_M00_"

:SYN5_29283
if 
  129@ == 2
goto_if_false @SYN5_29316
custom_plate_for_next_car 128@ {text} "M00TV_4U"

:SYN5_29316
if 
  129@ == 3
goto_if_false @SYN5_29349
custom_plate_for_next_car 128@ {text} "MATHEW_2"

:SYN5_29349
if 
  129@ == 4
goto_if_false @SYN5_29382
custom_plate_for_next_car 128@ {text} "D4_DEW0R"

:SYN5_29382
if 
  129@ == 5
goto_if_false @SYN5_29415
custom_plate_for_next_car 128@ {text} "D0DE_777"

:SYN5_29415
if 
  129@ == 6
goto_if_false @SYN5_29448
custom_plate_for_next_car 128@ {text} "DAM0_666"

:SYN5_29448
if 
  129@ == 7
goto_if_false @SYN5_29481
custom_plate_for_next_car 128@ {text} "C0NEY_88"

:SYN5_29481
if 
  129@ == 8
goto_if_false @SYN5_29514
custom_plate_for_next_car 128@ {text} "PRE4CHER"

:SYN5_29514
if 
  129@ == 9
goto_if_false @SYN5_29547
custom_plate_for_next_car 128@ {text} "DBP_4NDY"

:SYN5_29547
if 
  129@ == 10
goto_if_false @SYN5_29580
custom_plate_for_next_car 128@ {text} "EV1L_SLY"

:SYN5_29580
if 
  129@ == 11
goto_if_false @SYN5_29613
custom_plate_for_next_car 128@ {text} "N1_R4V3N"

:SYN5_29613
if 
  129@ == 12
goto_if_false @SYN5_29646
custom_plate_for_next_car 128@ {text} "D1VX_Z00"

:SYN5_29646
if 
  129@ == 13
goto_if_false @SYN5_29678
custom_plate_for_next_car 128@ {text} "MR_B3NN"

:SYN5_29678
if 
  129@ == 14
goto_if_false @SYN5_29711
custom_plate_for_next_car 128@ {text} "R3D_R4SP"

:SYN5_29711
if 
  129@ == 15
goto_if_false @SYN5_29744
custom_plate_for_next_car 128@ {text} "LA_B0MBA"

:SYN5_29744
if 
  129@ == 16
goto_if_false @SYN5_29777
custom_plate_for_next_car 128@ {text} "L3337_0G"

:SYN5_29777
if 
  129@ == 17
goto_if_false @SYN5_29810
custom_plate_for_next_car 128@ {text} "BUDD4H_X"

:SYN5_29810
if 
  129@ == 18
goto_if_false @SYN5_29843
custom_plate_for_next_car 128@ {text} "T3H_BUCK"

:SYN5_29843
if 
  129@ == 19
goto_if_false @SYN5_29876
custom_plate_for_next_car 128@ {text} "CHUNKY_1"

:SYN5_29876
if 
  129@ == 20
goto_if_false @SYN5_29909
custom_plate_for_next_car 128@ {text} "EV1L_BNZ"

:SYN5_29909
if 
  129@ == 21
goto_if_false @SYN5_29942
custom_plate_for_next_car 128@ {text} "S4ND_M4N"

:SYN5_29942
if 
  129@ == 22
goto_if_false @SYN5_29975
custom_plate_for_next_car 128@ {text} "RKK_DBP1"

:SYN5_29975
if 
  129@ == 23
goto_if_false @SYN5_30008
custom_plate_for_next_car 128@ {text} "RE1_K0KU"

:SYN5_30008
if 
  129@ == 24
goto_if_false @SYN5_30041
custom_plate_for_next_car 128@ {text} "S3XY_JUD"

:SYN5_30041
if 
  129@ == 25
goto_if_false @SYN5_30074
custom_plate_for_next_car 128@ {text} "SUNRA_93"

:SYN5_30074
if 
  129@ == 26
goto_if_false @SYN5_30107
custom_plate_for_next_car 128@ {text} "UG_FUX69"

:SYN5_30107
if 
  129@ == 27
goto_if_false @SYN5_30140
custom_plate_for_next_car 128@ {text} "LI0N_CUM"

:SYN5_30140
if 
  129@ == 28
goto_if_false @SYN5_30173
custom_plate_for_next_car 128@ {text} "RKK_PWND"

:SYN5_30173
if 
  129@ == 29
goto_if_false @SYN5_30206
custom_plate_for_next_car 128@ {text} "HAZE_B0B"

:SYN5_30206
if 
  129@ == 30
goto_if_false @SYN5_30239
custom_plate_for_next_car 128@ {text} "T3H_FLUF"

:SYN5_30239
if 
  129@ == 31
goto_if_false @SYN5_30272
custom_plate_for_next_car 128@ {text} "BM_4NDY_"

:SYN5_30272
if 
  129@ == 32
goto_if_false @SYN5_30305
custom_plate_for_next_car 128@ {text} "BM_D34N_"

:SYN5_30305
if 
  129@ == 33
goto_if_false @SYN5_30338
custom_plate_for_next_car 128@ {text} "BM_L4C3Y"

:SYN5_30338
if 
  129@ == 34
goto_if_false @SYN5_30371
custom_plate_for_next_car 128@ {text} "BM_D3V__"

:SYN5_30371
if 
  129@ == 35
goto_if_false @SYN5_30404
custom_plate_for_next_car 128@ {text} "NU_SK00L"

:SYN5_30404
if 
  129@ == 36
goto_if_false @SYN5_30437
custom_plate_for_next_car 128@ {text} "G4L_AVET"

:SYN5_30437
if 
  129@ == 37
goto_if_false @SYN5_30470
custom_plate_for_next_car 128@ {text} "M0J0_J0J"

:SYN5_30470
return 

:SYN5_30472
if 
  132@ == 1
goto_if_false @SYN5_30519
set_lvar_text_label 136@s = 'SYN5_AA'
set_lvar_int_to_constant 168@ = 4200
184@ = 1

:SYN5_30519
if 
  132@ == 2
goto_if_false @SYN5_30853
set_lvar_text_label 136@s = 'SYN5_BA'
set_lvar_text_label 138@s = 'SYN5_BB'
set_lvar_text_label 140@s = 'SYN5_BC'
set_lvar_text_label 142@s = 'SYN5_BD'
set_lvar_text_label 144@s = 'SYN5_BE'
set_lvar_text_label 146@s = 'SYN5_BF'
set_lvar_text_label 148@s = 'MOBRING'
set_lvar_text_label 150@s = 'SYN5_BG'
set_lvar_text_label 152@s = 'SYN5_BH'
set_lvar_text_label 154@s = 'SYN5_BJ'
set_lvar_text_label 156@s = 'SYN5_BK'
set_lvar_text_label 158@s = 'SYN5_BL'
set_lvar_text_label 160@s = 'SYN5_BM'
set_lvar_text_label 162@s = 'SYN5_BN'
set_lvar_int_to_constant 168@ = 4240
set_lvar_int_to_constant 169@ = 4201
set_lvar_int_to_constant 170@ = 4202
set_lvar_int_to_constant 171@ = 4241
set_lvar_int_to_constant 172@ = 4203
set_lvar_int_to_constant 173@ = 4204
set_lvar_int_to_constant 174@ = 23803
set_lvar_int_to_constant 175@ = 4205
set_lvar_int_to_constant 176@ = 4206
set_lvar_int_to_constant 177@ = 4207
set_lvar_int_to_constant 178@ = 4208
set_lvar_int_to_constant 179@ = 4209
set_lvar_int_to_constant 180@ = 4210
set_lvar_int_to_constant 181@ = 4236
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_30853
if 
  132@ == 3
goto_if_false @SYN5_30989
set_lvar_text_label 138@s = 'SYN5_CB'
set_lvar_text_label 140@s = 'SYN5_CC'
set_lvar_text_label 142@s = 'SYN5_CD'
set_lvar_text_label 144@s = 'SYN5_CE'
set_lvar_text_label 146@s = 'SYN5_CF'
set_lvar_int_to_constant 169@ = 4212
set_lvar_int_to_constant 170@ = 4213
set_lvar_int_to_constant 171@ = 4214
set_lvar_int_to_constant 172@ = 4215
set_lvar_int_to_constant 173@ = 4216
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_30989
if 
  132@ == 4
goto_if_false @SYN5_31125
set_lvar_text_label 136@s = 'SYN5_DA'
set_lvar_text_label 138@s = 'SYN5_DB'
set_lvar_text_label 140@s = 'SYN5_DC'
set_lvar_text_label 142@s = 'SYN5_DD'
set_lvar_text_label 144@s = 'SYN5_DE'
set_lvar_int_to_constant 168@ = 4217
set_lvar_int_to_constant 169@ = 4218
set_lvar_int_to_constant 170@ = 4219
set_lvar_int_to_constant 171@ = 4220
set_lvar_int_to_constant 172@ = 4221
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31125
if 
  132@ == 5
goto_if_false @SYN5_31239
set_lvar_text_label 136@s = 'SYN5_EA'
set_lvar_text_label 138@s = 'SYN5_EB'
set_lvar_text_label 140@s = 'SYN5_EC'
set_lvar_text_label 142@s = 'SYN5_ED'
set_lvar_int_to_constant 168@ = 4222
set_lvar_int_to_constant 169@ = 4223
set_lvar_int_to_constant 170@ = 4224
set_lvar_int_to_constant 171@ = 4225
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31239
if 
  132@ == 7
goto_if_false @SYN5_31507
set_lvar_text_label 136@s = 'SYN5_GZ'
set_lvar_text_label 140@s = 'SYN5_GC'
set_lvar_text_label 142@s = 'SYN5_GD'
set_lvar_text_label 144@s = 'SYN5_GE'
set_lvar_text_label 150@s = 'SYN5_GH'
set_lvar_text_label 152@s = 'SYN5_GJ'
set_lvar_text_label 154@s = 'SYN5_GK'
set_lvar_text_label 156@s = 'SYN5_GL'
set_lvar_text_label 158@s = 'SYN5_GM'
set_lvar_text_label 160@s = 'SYN5_GX'
set_lvar_text_label 162@s = 'SYN5_GW'
set_lvar_int_to_constant 168@ = 4267
set_lvar_int_to_constant 170@ = 4228
set_lvar_int_to_constant 171@ = 4242
set_lvar_int_to_constant 172@ = 4243
set_lvar_int_to_constant 175@ = 4244
set_lvar_int_to_constant 176@ = 4229
set_lvar_int_to_constant 177@ = 4245
set_lvar_int_to_constant 178@ = 4246
set_lvar_int_to_constant 179@ = 4230
set_lvar_int_to_constant 180@ = 4265
set_lvar_int_to_constant 181@ = 4264
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31507
if 
  132@ == 8
goto_if_false @SYN5_31665
set_lvar_text_label 136@s = 'SYN5_HH'
set_lvar_text_label 138@s = 'SYN5_HA'
set_lvar_text_label 140@s = 'SYN5_HB'
set_lvar_text_label 142@s = 'SYN5_HC'
set_lvar_text_label 144@s = 'SYN5_HK'
set_lvar_text_label 146@s = 'SYN5_HL'
set_lvar_int_to_constant 168@ = 4232
set_lvar_int_to_constant 169@ = 4247
set_lvar_int_to_constant 170@ = 4248
set_lvar_int_to_constant 171@ = 4237
set_lvar_int_to_constant 172@ = 4233
set_lvar_int_to_constant 173@ = 4250
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31665
if 
  132@ == 9
goto_if_false @SYN5_31757
set_lvar_text_label 136@s = 'SYN5_JA'
set_lvar_text_label 138@s = 'SYN5_JB'
set_lvar_text_label 140@s = 'SYN5_JC'
set_lvar_int_to_constant 168@ = 4261
set_lvar_int_to_constant 169@ = 4262
set_lvar_int_to_constant 170@ = 4263
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31757
if 
  132@ == 10
goto_if_false @SYN5_31914
set_lvar_text_label 136@s = 'MOBRING'
set_lvar_text_label 138@s = 'SYN5_KA'
set_lvar_text_label 140@s = 'SYN5_KB'
set_lvar_text_label 142@s = 'SYN5_KC'
set_lvar_text_label 144@s = 'SYN5_KD'
set_lvar_text_label 146@s = 'SYN5_KE'
set_lvar_int_to_constant 168@ = 23803
set_lvar_int_to_constant 169@ = 4251
set_lvar_int_to_constant 170@ = 4234
set_lvar_int_to_constant 171@ = 4252
set_lvar_int_to_constant 172@ = 4253
set_lvar_int_to_constant 173@ = 4235
184@ = 6

:SYN5_31914
if 
  132@ == 11
goto_if_false @SYN5_31983
set_lvar_text_label 136@s = 'SYN5_HE'
set_lvar_text_label 138@s = 'SYN5_HF'
set_lvar_int_to_constant 168@ = 4249
set_lvar_int_to_constant 169@ = 4260
184@ = 2

:SYN5_31983
if 
  132@ == 14
goto_if_false @SYN5_32105
set_lvar_text_label 136@s = 'CESX_BA'
set_lvar_text_label 138@s = 'CESX_BB'
set_lvar_text_label 140@s = 'CESX_BC'
set_lvar_text_label 142@s = 'CESX_BD'
set_lvar_int_to_constant 168@ = 42406
set_lvar_int_to_constant 169@ = 42407
set_lvar_int_to_constant 170@ = 42408
set_lvar_int_to_constant 171@ = 42409
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_32105
set_lvar_int_to_lvar_int 187@ = 134@
185@ = 0
186@ = 0
188@ = 1
return 

:SYN5_32136
if or
  132@ == 1
  132@ == 2
  132@ == 5
  132@ == 7
  132@ == 8
  132@ == 10
goto_if_false @SYN5_32243
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32236
gosub @SYN5_33223
gosub @SYN5_33330
gosub @SYN5_33484
goto @SYN5_32243

:SYN5_32236
132@ = 0

:SYN5_32243
if or
  132@ == 3
  132@ == 4
goto_if_false @SYN5_32376
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32369
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not is_char_dead $cesar
goto_if_false @SYN5_32331
gosub @SYN5_33484
goto @SYN5_32362

:SYN5_32331
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32362
goto @SYN5_32376

:SYN5_32369
132@ = 0

:SYN5_32376
if 
  132@ == 9
goto_if_false @SYN5_32502
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32495
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not is_char_dead 67@
goto_if_false @SYN5_32457
gosub @SYN5_33484
goto @SYN5_32488

:SYN5_32457
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32488
goto @SYN5_32502

:SYN5_32495
132@ = 0

:SYN5_32502
if 
  132@ == 11
goto_if_false @SYN5_32628
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32621
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not is_char_dead $ryder
goto_if_false @SYN5_32583
gosub @SYN5_33484
goto @SYN5_32614

:SYN5_32583
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32614
goto @SYN5_32628

:SYN5_32621
132@ = 0

:SYN5_32628
if 
  87@ == 5
goto_if_false @SYN5_33221
if 
  88@ == 0
goto_if_false @SYN5_33221
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_32690
goto @SYN5_32807

:SYN5_32690
if 
  14 > 132@
goto_if_false @SYN5_32807
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32734
134@ += 1

:SYN5_32734
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
clear_prints 
set_lvar_int_to_lvar_int 189@ = 132@
set_lvar_int_to_lvar_int 190@ = 134@
132@ = 14
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_32807
if 
  132@ == 14
goto_if_false @SYN5_32998
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_32975
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32945
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not is_char_dead $cesar
goto_if_false @SYN5_32907
gosub @SYN5_33484
goto @SYN5_32938

:SYN5_32907
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32938
goto @SYN5_32968

:SYN5_32945
print 'SYN5_10' {time} 7000 {flag} 1
132@ = 15

:SYN5_32968
goto @SYN5_32998

:SYN5_32975
print 'SYN5_10' {time} 7000 {flag} 1
132@ = 15

:SYN5_32998
if 
  132@ == 15
goto_if_false @SYN5_33051
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_33051
132@ = 16
134@ = 0
clear_prints 

:SYN5_33051
if 
  132@ == 16
goto_if_false @SYN5_33221
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_33166
TIMERB = 0
set_lvar_int_to_lvar_int 132@ = 189@
set_lvar_int_to_lvar_int 134@ = 190@
gosub @SYN5_30472
if 
  189@ == 0
goto_if_false @SYN5_33159
print_now 'SYN5_06' {time} 4000 {flag} 1
TIMERB = 0

:SYN5_33159
goto @SYN5_33221

:SYN5_33166
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
132@ = 14
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_33221
return 

:SYN5_33223
if 
  is_int_lvar_greater_than_int_lvar 184@ > 187@
goto_if_false @SYN5_33328
if 
  185@ == 0
goto_if_false @SYN5_33285
load_mission_audio MissionAudioSlot.Slot1 {audioId} 168@(187@,16i)
187@ += 1
185@ = 1

:SYN5_33285
if 
  186@ == 0
goto_if_false @SYN5_33328
load_mission_audio MissionAudioSlot.Slot2 {audioId} 168@(187@,16i)
187@ += 1
186@ = 1

:SYN5_33328
return 

:SYN5_33330
if 
  188@ == 1
goto_if_false @SYN5_33406
if 
  185@ == 1
goto_if_false @SYN5_33406
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN5_33406
play_mission_audio MissionAudioSlot.Slot1
print_now 136@(134@,16s) {time} 4500 {flag} 1
185@ = 2

:SYN5_33406
if 
  188@ == 2
goto_if_false @SYN5_33482
if 
  186@ == 1
goto_if_false @SYN5_33482
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SYN5_33482
play_mission_audio MissionAudioSlot.Slot2
print_now 136@(134@,16s) {time} 4500 {flag} 1
186@ = 2

:SYN5_33482
return 

:SYN5_33484
if 
  185@ == 2
goto_if_false @SYN5_33547
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN5_33547
clear_this_print 136@(134@,16s)
134@ += 1
188@ = 2
185@ = 0

:SYN5_33547
if 
  186@ == 2
goto_if_false @SYN5_33610
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SYN5_33610
clear_this_print 136@(134@,16s)
134@ += 1
188@ = 1
186@ = 0

:SYN5_33610
return 

//-------------Mission 65---------------
// Originally: T-Bone Mendez

:DRIV2
script_name 'DRIV2'
gosub @DRIV2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV2_38
gosub @DRIV2_12867

:DRIV2_38
gosub @DRIV2_12949
terminate_this_script 

:DRIV2_47
register_mission_given 
load_mission_text 'FARLIE2'
$onmission = 1
wait 0
37@ = 4
$d2_num_packages_collected = 0
119@ = 0

:DRIV2_92
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_262
123@(119@,4i) = 0
175@(119@,4i) = 0
130@(119@,4i) = 0
139@(119@,4i) = 0
143@(119@,4i) = 0
147@(119@,4i) = 0
151@(119@,4i) = 0
66@(119@,4i) = 1000
70@(119@,4i) = 1000
159@(119@,4i) = 0
62@(119@,4f) = 20.0
115@(119@,4i) = 0
119@ += 1
goto @DRIV2_92

:DRIV2_262
90@ = -2730.1399
91@ = 84.24
92@ = 3.04
78@ = -2600.53
82@ = 1337.91
86@ = 5.6
79@ = -2855.52
83@ = 719.95
87@ = 26.84
80@ = -1897.9399
84@ = -576.43
88@ = 22.99
81@ = -2811.49
85@ = -326.14
89@ = 5.72
93@ = -2622.49
94@ = 1406.6
95@ = 6.15
122@ = 0
127@ = 0
128@ = 0
129@ = 0
134@ = 0
135@ = 1
136@ = 2
137@ = 3
138@ = 4
163@ = 0
164@ = 1
165@ = 2
155@ = 0
156@ = 0
157@ = 0
158@ = 0
166@ = 0
75@ = -2143.27
76@ = 918.38
77@ = 79.42
167@ = 0
168@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
179@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DRIV2_655
if 
  get_fading_status 
goto_if_false @DRIV2_679
wait 0
goto @DRIV2_655

:DRIV2_679
set_area_visible 3
load_cutscene 'FARL_2A'

:DRIV2_694
if 
  not has_cutscene_loaded 
goto_if_false @DRIV2_718
wait 0
goto @DRIV2_694

:DRIV2_718
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV2_727
if 
  not has_cutscene_finished 
goto_if_false @DRIV2_751
wait 0
goto @DRIV2_727

:DRIV2_751
do_fade 0 {direction} Fade.Out

:DRIV2_757
if 
  get_fading_status 
goto_if_false @DRIV2_781
wait 0
goto @DRIV2_757

:DRIV2_781
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
request_model 521
request_model 498
request_model #KMB_PACKET
request_model 100
request_model 47
request_model 352

:DRIV2_822
if or
  not has_model_loaded 521
  not has_model_loaded 498
  not has_model_loaded #KMB_PACKET
  not has_model_loaded 100
  not has_model_loaded 47
  not has_model_loaded 352
goto_if_false @DRIV2_872
wait 0
goto @DRIV2_822

:DRIV2_872
request_animation "BIKES"
request_animation "MISC"

:DRIV2_889
if or
  not has_animation_loaded "BIKES"
  not has_animation_loaded "MISC"
goto_if_false @DRIV2_928
wait 0
goto @DRIV2_889

:DRIV2_928
load_scene -2625.26 {y} 1407.3199 {z} 5.62
set_char_coordinates $scplayer {x} -2625.26 {y} 1407.3199 {z} 5.62
set_char_heading $scplayer {heading} 224.0
change_garage_type 'TBON' {type} GarageType.ForScriptToOpenAndClose
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
if 
  179@ == 1
goto_if_false @DRIV2_1206
34@ = create_car 498 {x} 0.0 {y} 0.0 {z} -100.0
184@ = add_blip_for_car 34@
119@ = 0

:DRIV2_1075
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_1206
create_object #KMB_PACKET {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 38@(119@,4i)
add_blip_for_object 38@(119@,4i) {var_handle} 180@(119@,4i)
create_char PedType.Mission1 {modelId} 100 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 54@(119@,4i)
create_car 521 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 58@(119@,4i)
119@ += 1
goto @DRIV2_1075

:DRIV2_1206
switch_roads_off -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
184@ = add_blip_for_coord -1814.8199 {y} 381.4 {z} 17.09
set_coord_blip_appearance 184@ {color} CoordAppearance.Friend
print_now 'DRV3_11' {time} 10000 {flag} 0

:DRIV2_1281
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV2_1307
goto @DRIV2_12885

:DRIV2_1307
if 
  127@ <> 1
goto_if_false @DRIV2_2338
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_1374
36@ = store_car_char_is_in $scplayer
if 
  174@ <> 1
goto_if_false @DRIV2_1374
174@ = 1

:DRIV2_1374
if and
  122@ <> 1
  locate_char_any_means_2d $scplayer {x} -1814.8199 {y} 381.4 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRIV2_1438
remove_blip 184@
gosub @DRIV2_3466
122@ = 1

:DRIV2_1438
if 
  122@ == 1
goto_if_false @DRIV2_2338
121@ = get_area_visible 
if 
  121@ == 0
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1486
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  128@ <> 1
goto_if_false @DRIV2_1583
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_1569
110@ = get_char_highest_priority_event 54@(119@,4i)
if 
  is_int_lvar_equal_to_constant 110@ == 49
goto_if_false @DRIV2_1569
128@ = 1

:DRIV2_1569
119@ += 1
goto @DRIV2_1486

:DRIV2_1583
if 
  128@ <> 1
goto_if_false @DRIV2_2249
if and
  129@ <> 1
  is_projectile_in_area -1824.8199 {leftBottomY} 371.4 {leftBottomZ} 12.09 {rightTopX} -1804.8199 {rightTopY} 391.4 {rightTopZ} 22.09
goto_if_false @DRIV2_1665
129@ = 1
TIMERA = 0

:DRIV2_1665
if 
  129@ == 1
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1690
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_2223
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_2209
$player_x, $player_y, $player_z = get_char_coordinates 54@(119@,4i)
set_lvar_float_to_var_float 186@ = $player_x
186@ -= 3.0
set_lvar_float_to_var_float 187@ = $player_x
187@ += 3.0
set_lvar_float_to_var_float 188@ = $player_y
188@ -= 3.0
set_lvar_float_to_var_float 189@ = $player_y
189@ += 3.0
set_lvar_float_to_var_float 190@ = $player_z
190@ -= 3.0
set_lvar_float_to_var_float 191@ = $player_z
191@ += 3.0
if or
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Molotov {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Rocket {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.WeakRocket {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Small {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.RcVehicle {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
goto_if_false @DRIV2_2209
if 
  not is_char_dead 54@
goto_if_false @DRIV2_2019
task_die 54@

:DRIV2_2019
if 
  not is_char_dead 55@
goto_if_false @DRIV2_2040
task_die 55@

:DRIV2_2040
if 
  not is_char_dead 56@
goto_if_false @DRIV2_2061
task_die 56@

:DRIV2_2061
if 
  not is_char_dead 57@
goto_if_false @DRIV2_2082
task_die 57@

:DRIV2_2082
if 
  not is_car_dead 58@
goto_if_false @DRIV2_2103
explode_car 58@

:DRIV2_2103
if 
  not is_car_dead 59@
goto_if_false @DRIV2_2124
explode_car 59@

:DRIV2_2124
if 
  not is_car_dead 60@
goto_if_false @DRIV2_2145
explode_car 60@

:DRIV2_2145
if 
  not is_car_dead 61@
goto_if_false @DRIV2_2166
explode_car 61@

:DRIV2_2166
delete_object 38@
delete_object 39@
delete_object 40@
delete_object 41@
print_now 'DRV3_9' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_2209
119@ += 1
goto @DRIV2_1690

:DRIV2_2223
if 
  TIMERA > 2000
goto_if_false @DRIV2_2249
128@ = 1

:DRIV2_2249
if or
  locate_char_any_means_2d $scplayer {x} -1814.8199 {y} 381.4 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  128@ == 1
goto_if_false @DRIV2_2338
remove_blip 184@
gosub @DRIV2_9220
127@ = 1
TIMERA = 0
print_help_forever 'DRV3_H'
TIMERB = 0

:DRIV2_2338
if 
  127@ == 1
goto_if_false @DRIV2_3459
if 
  171@ <> 1
goto_if_false @DRIV2_2402
if 
  TIMERB > 12000
goto_if_false @DRIV2_2402
clear_help 
171@ = 1

:DRIV2_2402
if 
  173@ <> 1
goto_if_false @DRIV2_2642
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_2635
119@ = 0

:DRIV2_2448
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  173@ <> 1
goto_if_false @DRIV2_2635
if and
  does_object_exist 38@(119@,4i)
  123@(119@,4i) <> 1
goto_if_false @DRIV2_2621
if or
  is_object_attached 38@(119@,4i)
  is_char_holding_object -1 {handle} 38@(119@,4i)
goto_if_false @DRIV2_2621
if 
  locate_char_any_means_object_2d $scplayer {object} 38@(119@,4i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRIV2_2621
print_help_forever 'DRV3_H'
173@ = 1
if 
  171@ <> 1
goto_if_false @DRIV2_2614
171@ = 1

:DRIV2_2614
TIMERB = 0

:DRIV2_2621
119@ += 1
goto @DRIV2_2448

:DRIV2_2635
goto @DRIV2_2688

:DRIV2_2642
if 
  172@ <> 1
goto_if_false @DRIV2_2688
if 
  TIMERB > 12000
goto_if_false @DRIV2_2688
clear_help 
172@ = 1

:DRIV2_2688
gosub @DRIV2_4732
gosub @DRIV2_6146
gosub @DRIV2_6715
gosub @DRIV2_6912
gosub @DRIV2_7110
if and
  155@ <> 1
  166@ <> 1
goto_if_false @DRIV2_2899
if 
  TIMERA > 280000
goto_if_false @DRIV2_2899
gosub @DRIV2_8109
155@ = 1
if or
  is_int_lvar_equal_to_int_lvar 130@ == 138@
  is_int_lvar_equal_to_int_lvar 131@ == 138@
  is_int_lvar_equal_to_int_lvar 132@ == 138@
  is_int_lvar_equal_to_int_lvar 133@ == 138@
goto_if_false @DRIV2_2899
set_lvar_int_to_lvar_int 192@ = 37@
sub_int_var_from_int_lvar 192@ -= $d2_num_packages_collected
if 
  192@ > 1
goto_if_false @DRIV2_2883
print_now 'DRV3_5' {time} 10000 {flag} 0
goto @DRIV2_2899

:DRIV2_2883
print_now 'DRV3_6' {time} 10000 {flag} 0

:DRIV2_2899
gosub @DRIV2_8280
gosub @DRIV2_7295
gosub @DRIV2_8654
gosub @DRIV2_7865
119@ = 0

:DRIV2_2934
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3128
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_3114
get_script_task_status 54@(119@,4i) {taskId} -1 {var_status} 111@(119@,4i)
if and
  115@(119@,4i) == 0
  is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3048
set_char_relationship 54@(119@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
115@(119@,4i) = 1

:DRIV2_3048
if and
  115@(119@,4i) == 1
  not is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3114
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Hate
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Dislike
115@(119@,4i) = 0

:DRIV2_3114
119@ += 1
goto @DRIV2_2934

:DRIV2_3128
if and
  is_int_var_equal_to_int_lvar $d2_num_packages_collected == 37@
  166@ <> 1
goto_if_false @DRIV2_3191
185@ = add_blip_for_coord 93@ {y} 94@ {z} 95@
print_now 'DRV3_10' {time} 7000 {flag} 0
166@ = 1

:DRIV2_3191
if 
  166@ == 1
goto_if_false @DRIV2_3265
if 
  locate_char_any_means_3d $scplayer {x} 93@ {y} 94@ {z} 95@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @DRIV2_3265
gosub @DRIV2_11200
goto @DRIV2_12885

:DRIV2_3265
if 
  155@ == 1
goto_if_false @DRIV2_3363
gosub @DRIV2_8485
if 
  156@ == 1
goto_if_false @DRIV2_3363
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @DRIV2_3340
gosub @DRIV2_11715

:DRIV2_3340
print_now 'DRV3_7' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3363
gosub @DRIV2_9032
if 
  157@ == 1
goto_if_false @DRIV2_3411
print_now 'DRV3_8' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3411
gosub @DRIV2_9121
if 
  158@ == 1
goto_if_false @DRIV2_3459
print_now 'DRV3_9' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3459
goto @DRIV2_1281

:DRIV2_3466
clear_area -1814.8199 {y} 381.4 {z} 17.09 {radius} 100.0 {clearParticles} True
set_car_model_components 498 {component1} 0 {component2} 0
34@ = create_car 498 {x} -1814.8199 {y} 381.4 {z} 9.96
set_car_heading 34@ {heading} 33.27
pop_car_door 34@ {door} CarDoor.LeftRearDoor {visibility} False
open_car_door 34@ {door} CarDoor.RightRearDoor
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
184@ = add_blip_for_car 34@
set_blip_as_friendly 184@ {state} True
58@ = create_car 521 {x} -1814.86 {y} 376.0 {z} 15.68
set_car_heading 58@ {heading} 26.65
59@ = create_car 521 {x} -1817.4399 {y} 380.33 {z} 15.68
set_car_heading 59@ {heading} 23.76
60@ = create_car 521 {x} -1818.09 {y} 377.08 {z} 15.68
set_car_heading 60@ {heading} 32.17
61@ = create_car 521 {x} -1816.66 {y} 374.73 {z} 15.68
set_car_heading 61@ {heading} 30.21
119@ = 0

:DRIV2_3717
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3783
set_car_only_damaged_by_player 58@(119@,4i) {state} True
set_can_burst_car_tyres 58@(119@,4i) {state} False
freeze_car_position 58@(119@,4i) {state} True
119@ += 1
goto @DRIV2_3717

:DRIV2_3783
35@ = create_car 521 {x} -1819.01 {y} 386.28 {z} 16.58
set_car_heading 35@ {heading} 49.56
set_car_only_damaged_by_player 35@ {state} True
set_can_burst_car_tyres 35@ {state} False
54@ = create_char PedType.Mission1 {modelId} 100 {x} -1811.85 {y} 375.88 {z} 15.68
set_char_heading 54@ {heading} 27.32
55@ = create_char_inside_car 59@ {pedType} PedType.Mission1 {modelId} 100
56@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 47
57@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 47
193@ = copy_char_decision_maker -1
add_char_decision_maker_event_response 193@ {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} False
119@ = 0

:DRIV2_3948
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4073
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4059
set_char_decision_maker 54@(119@,4i) {handleOrTemplate} 193@
give_weapon_to_char 54@(119@,4i) {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_can_be_knocked_off_bike 54@(119@,4i) {stayOnBike} 2
set_char_only_damaged_by_player 54@(119@,4i) {state} True
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Hate
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Dislike

:DRIV2_4059
119@ += 1
goto @DRIV2_3948

:DRIV2_4073
119@ = 0

:DRIV2_4080
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4246
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4193
if 
  119@ == 0
goto_if_false @DRIV2_4174
set_char_proofs 54@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_visible 54@(119@,4i) {state} False
goto @DRIV2_4193

:DRIV2_4174
set_char_proofs 54@(119@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRIV2_4193
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_4232
set_car_proofs 58@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRIV2_4232
119@ += 1
goto @DRIV2_4080

:DRIV2_4246
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
38@ = create_object #KMB_PACKET {x} -1812.3 {y} 377.57 {z} 9.34
119@ = 0

:DRIV2_4291
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4558
if 
  119@ <> 0
goto_if_false @DRIV2_4420
create_object #KMB_PACKET {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 38@(119@,4i)
attach_object_to_car 38@(119@,4i) {handle} 58@(119@,4i) {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@
goto @DRIV2_4492

:DRIV2_4420
if 
  not is_char_dead 54@
goto_if_false @DRIV2_4492
task_pick_up_object 54@ {object} 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_lvar_int_to_lvar_int 159@ = 165@
set_object_visible 38@ {state} False

:DRIV2_4492
set_object_collision 38@(119@,4i) {state} True
set_object_dynamic 38@(119@,4i) {state} True
set_object_proofs 38@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_object_collision_damage_effect 38@(119@,4i) {state} False
119@ += 1
goto @DRIV2_4291

:DRIV2_4558
return 

:DRIV2_4560
119@ = 0

:DRIV2_4567
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4730
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4716
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
goto_if_false @DRIV2_4716
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 137@

:DRIV2_4716
119@ += 1
goto @DRIV2_4567

:DRIV2_4730
return 

:DRIV2_4732
119@ = 0

:DRIV2_4739
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6106
if and
  does_object_exist 38@(119@,4i)
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6092
if or
  is_object_attached 38@(119@,4i)
  is_char_holding_object -1 {handle} 38@(119@,4i)
goto_if_false @DRIV2_5857
if 
  locate_char_any_means_object_3d $scplayer {object} 38@(119@,4i) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DRIV2_5666
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_5666
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  167@ <> 1
goto_if_false @DRIV2_5584
104@, 105@, 108@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.0
106@, 107@, 108@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.0
if 
  is_object_in_angled_area_2d 38@(119@,4i) {leftBottomX} 104@ {leftBottomY} 105@ {rightTopX} 106@ {rightTopY} 107@ {angle} 3.0 {drawSphere} False
goto_if_false @DRIV2_5238
if 
  is_char_on_any_bike $scplayer
goto_if_false @DRIV2_5069
task_play_anim $scplayer {animationName} "BIKES_SNATCH_L" {animationFile} "BIKES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 220
goto @DRIV2_5231

:DRIV2_5069
96@, 97@, 98@ = get_char_coordinates $scplayer
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5196
task_play_anim $scplayer {animationName} "PICKUP_BOX" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180
goto @DRIV2_5231

:DRIV2_5196
task_play_anim $scplayer {animationName} "GRAB_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180

:DRIV2_5231
goto @DRIV2_5467

:DRIV2_5238
if 
  is_char_on_any_bike $scplayer
goto_if_false @DRIV2_5305
task_play_anim $scplayer {animationName} "BIKES_SNATCH_R" {animationFile} "BIKES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 220
goto @DRIV2_5467

:DRIV2_5305
96@, 97@, 98@ = get_char_coordinates $scplayer
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5432
task_play_anim $scplayer {animationName} "PICKUP_BOX" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180
goto @DRIV2_5467

:DRIV2_5432
task_play_anim $scplayer {animationName} "GRAB_R" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180

:DRIV2_5467
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1
goto @DRIV2_5666

:DRIV2_5584
if 
  not is_message_being_displayed 
goto_if_false @DRIV2_5626
print_now 'DRV3_3' {time} 1 {flag} 0
168@ = 1
goto @DRIV2_5666

:DRIV2_5626
if 
  168@ == 1
goto_if_false @DRIV2_5666
print_now 'DRV3_3' {time} 1 {flag} 0
168@ = 1

:DRIV2_5666
if 
  123@(119@,4i) <> 1
goto_if_false @DRIV2_5850
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_5850
if and
  is_char_in_car $scplayer {vehicle} 58@(119@,4i)
  is_object_attached 38@(119@,4i)
goto_if_false @DRIV2_5850
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_5850
goto @DRIV2_6011

:DRIV2_5857
if 
  is_char_touching_object $scplayer {object} 38@(119@,4i)
goto_if_false @DRIV2_6011
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_6011
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_6011
if 
  123@(119@,4i) == 1
goto_if_false @DRIV2_6092
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_6092
give_weapon_to_char 54@(119@,4i) {weaponType} WeaponType.MicroUzi {ammo} 99999
task_kill_char_on_foot 54@(119@,4i) {target} $scplayer
147@(119@,4i) = 1

:DRIV2_6092
119@ += 1
goto @DRIV2_4739

:DRIV2_6106
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @DRIV2_6137
167@ = 1
goto @DRIV2_6144

:DRIV2_6137
167@ = 0

:DRIV2_6144
return 

:DRIV2_6146
119@ = 0

:DRIV2_6153
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6713
if and
  not is_car_dead 58@(119@,4i)
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6699
get_car_health 58@(119@,4i) {var_health} 66@(119@,4i)
if 
  is_object_attached 38@(119@,4i)
goto_if_false @DRIV2_6373
if 
  locate_char_in_car_car_2d $scplayer {handle} 58@(119@,4i) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRIV2_6366
set_lvar_int_to_lvar_int 74@ = 70@(119@,4i)
sub_int_lvar_from_int_lvar 74@ -= 66@(119@,4i)
if 
  74@ >= 2
goto_if_false @DRIV2_6366
detach_object 38@(119@,4i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_lvar_int_to_lvar_int 159@(119@,4i) = 163@

:DRIV2_6366
goto @DRIV2_6683

:DRIV2_6373
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_6683
if 
  not is_char_holding_object 54@(119@,4i) {handle} -1
goto_if_false @DRIV2_6683
if 
  143@(119@,4i) <> 1
goto_if_false @DRIV2_6498
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6491
task_go_to_object 54@(119@,4i) {object} 38@(119@,4i) {time} -1 {radius} 1.0
143@(119@,4i) = 1

:DRIV2_6491
goto @DRIV2_6683

:DRIV2_6498
109@ = get_script_task_status 54@(119@,4i) {taskId} 1762
if 
  is_int_lvar_equal_to_constant 109@ == 7
goto_if_false @DRIV2_6641
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6612
task_pick_up_object 54@(119@,4i) {object} 38@(119@,4i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
set_lvar_int_to_lvar_int 159@(119@,4i) = 165@

:DRIV2_6612
143@(119@,4i) = 0
139@(119@,4i) = 0
goto @DRIV2_6683

:DRIV2_6641
if 
  not does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6683
143@(119@,4i) = 0
139@(119@,4i) = 0

:DRIV2_6683
set_lvar_int_to_lvar_int 70@(119@,4i) = 66@(119@,4i)

:DRIV2_6699
119@ += 1
goto @DRIV2_6153

:DRIV2_6713
return 

:DRIV2_6715
119@ = 0

:DRIV2_6722
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6910
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6896
if and
  not is_object_attached 38@(119@,4i)
  not is_char_holding_object -1 {handle} 38@(119@,4i)
  is_object_static 38@(119@,4i)
goto_if_false @DRIV2_6852
if 
  175@(119@,4i) <> 1
goto_if_false @DRIV2_6845
freeze_object_position 38@(119@,4i) {state} True
175@(119@,4i) = 1

:DRIV2_6845
goto @DRIV2_6896

:DRIV2_6852
if 
  175@(119@,4i) == 1
goto_if_false @DRIV2_6896
freeze_object_position 38@(119@,4i) {state} False
175@(119@,4i) = 0

:DRIV2_6896
119@ += 1
goto @DRIV2_6722

:DRIV2_6910
return 

:DRIV2_6912
119@ = 0

:DRIV2_6919
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7108
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7094
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
  not locate_char_in_car_2d 54@(119@,4i) {x} 75@ {y} 76@ {xRadius} 400.0 {yRadius} 400.0 {drawSphere} False
goto_if_false @DRIV2_7094
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 75@ {y} 76@ {z} 77@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 136@

:DRIV2_7094
119@ += 1
goto @DRIV2_6919

:DRIV2_7108
return 

:DRIV2_7110
119@ = 0

:DRIV2_7117
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7293
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7279
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
  locate_char_in_car_2d 54@(119@,4i) {x} 75@ {y} 76@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRIV2_7279
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_7279
119@ += 1
goto @DRIV2_7117

:DRIV2_7293
return 

:DRIV2_7295
119@ = 0

:DRIV2_7302
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7863
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  143@(119@,4i) <> 1
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7849
if 
  not is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_7457
if 
  139@(119@,4i) == 0
goto_if_false @DRIV2_7450
task_enter_car_as_driver 54@(119@,4i) {vehicle} 58@(119@,4i) {time} -1
139@(119@,4i) = 1

:DRIV2_7450
goto @DRIV2_7849

:DRIV2_7457
if 
  139@(119@,4i) == 1
goto_if_false @DRIV2_7849
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
goto_if_false @DRIV2_7527
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars

:DRIV2_7527
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
goto_if_false @DRIV2_7588
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 75@ {y} 76@ {z} 77@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7588
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
goto_if_false @DRIV2_7661
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7661
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
goto_if_false @DRIV2_7722
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 90@ {y} 91@ {z} 92@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7722
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_7838
if 
  is_char_holding_object 54@(119@,4i) {handle} 38@(119@,4i)
goto_if_false @DRIV2_7838
drop_object 54@(119@,4i) {state} False
attach_object_to_car 38@(119@,4i) {handle} 58@(119@,4i) {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@

:DRIV2_7838
139@(119@,4i) = 0

:DRIV2_7849
119@ += 1
goto @DRIV2_7302

:DRIV2_7863
return 

:DRIV2_7865
119@ = 0

:DRIV2_7872
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8107
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) == 1
goto_if_false @DRIV2_8093
if 
  151@(119@,4i) == 1
goto_if_false @DRIV2_8035
if 
  not locate_char_any_means_char_2d 54@(119@,4i) {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRIV2_8028
task_car_mission 54@(119@,4i) {vehicle} 58@(119@,4i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 62@(119@,4f) {drivingStyle} DrivingMode.AvoidCars
151@(119@,4i) = 0

:DRIV2_8028
goto @DRIV2_8093

:DRIV2_8035
if 
  locate_char_any_means_char_2d 54@(119@,4i) {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRIV2_8093
task_kill_char_on_foot 54@(119@,4i) {target} $scplayer
151@(119@,4i) = 1

:DRIV2_8093
119@ += 1
goto @DRIV2_7872

:DRIV2_8107
return 

:DRIV2_8109
119@ = 0

:DRIV2_8116
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8278
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_8264
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  147@(119@,4i) <> 1
goto_if_false @DRIV2_8264
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 90@ {y} 91@ {z} 92@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 138@

:DRIV2_8264
119@ += 1
goto @DRIV2_8116

:DRIV2_8278
return 

:DRIV2_8280
119@ = 0

:DRIV2_8287
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8483
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_8469
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
  147@(119@,4i) <> 1
  locate_char_in_car_3d 54@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV2_8469
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_8469
119@ += 1
goto @DRIV2_8287

:DRIV2_8483
return 

:DRIV2_8485
119@ = 0

:DRIV2_8492
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8652
if and
  does_object_exist 38@(119@,4i)
  not is_char_dead 54@(119@,4i)
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_8638
if and
  is_object_attached 38@(119@,4i)
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_8638
if 
  locate_object_2d 38@(119@,4i) {x} 90@ {y} 91@ {xRadius} 20.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRIV2_8638
156@ = 1
set_lvar_int_to_lvar_int 120@ = 119@

:DRIV2_8638
119@ += 1
goto @DRIV2_8492

:DRIV2_8652
return 

:DRIV2_8654
96@, 97@, 98@ = get_char_coordinates $scplayer
119@ = 0

:DRIV2_8675
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9030
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_9016
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_9016
if and
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  locate_car_2d 58@(119@,4i) {x} 90@ {y} 91@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRIV2_8832
62@(119@,4f) = 15.0
goto @DRIV2_9000

:DRIV2_8832
100@, 101@, 102@ = get_car_coordinates 58@(119@,4i)
99@ = get_distance_between_coords_3d 96@ {fromY} 97@ {fromZ} 98@ {toX} 100@ {toY} 101@ {toZ} 102@
if 
  0.0 > 99@
goto_if_false @DRIV2_8904
99@ = 0.0

:DRIV2_8904
if 
  50.0 >= 99@
goto_if_false @DRIV2_8986
set_lvar_float_to_lvar_float 62@(119@,4f) = 99@
62@(119@,4f) *= 0.4
62@(119@,4f) *= -1.0
62@(119@,4f) += 40.0
goto @DRIV2_9000

:DRIV2_8986
62@(119@,4f) = 20.0

:DRIV2_9000
set_car_cruise_speed 58@(119@,4i) {maxSpeed} 62@(119@,4f)

:DRIV2_9016
119@ += 1
goto @DRIV2_8675

:DRIV2_9030
return 

:DRIV2_9032
119@ = 0

:DRIV2_9039
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9119
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_9105
if 
  is_object_in_water 38@(119@,4i)
goto_if_false @DRIV2_9105
157@ = 1

:DRIV2_9105
119@ += 1
goto @DRIV2_9039

:DRIV2_9119
return 

:DRIV2_9121
119@ = 0

:DRIV2_9128
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9218
if and
  is_car_dead 58@(119@,4i)
  does_object_exist 38@(119@,4i)
  is_int_lvar_equal_to_int_lvar 159@(119@,4i) == 164@
goto_if_false @DRIV2_9204
delete_object 38@(119@,4i)
158@ = 1

:DRIV2_9204
119@ += 1
goto @DRIV2_9128

:DRIV2_9218
return 

:DRIV2_9220
clear_area -1814.8199 {y} 381.4 {z} 17.09 {radius} 100.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRIV2_9301
set_char_coordinates $scplayer {x} -1771.9399 {y} 336.35 {z} 8.94
set_char_heading $scplayer {heading} 49.66

:DRIV2_9301
if 
  174@ == 1
goto_if_false @DRIV2_9365
if 
  not is_car_dead 36@
goto_if_false @DRIV2_9365
set_car_coordinates 36@ {x} -1766.6 {y} 330.71 {z} 8.23
set_car_heading 36@ {heading} 45.1

:DRIV2_9365
if 
  not is_char_dead 54@
goto_if_false @DRIV2_9411
set_char_visible 54@ {state} True
if 
  does_object_exist 38@
goto_if_false @DRIV2_9411
set_object_visible 38@ {state} True

:DRIV2_9411
119@ = 0

:DRIV2_9418
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9482
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_9468
freeze_car_position 58@(119@,4i) {state} False

:DRIV2_9468
119@ += 1
goto @DRIV2_9418

:DRIV2_9482
169@ = 1
170@ = 0
skip_cutscene_start_internal @DRIV2_10330
set_fixed_camera_position -1808.39 {y} 374.18 {z} 17.98 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1813.41 {y} 376.31 {z} 17.32 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_9585
task_enter_car_as_driver 54@ {vehicle} 58@ {time} -1

:DRIV2_9585
194@ = 0

:DRIV2_9592
if and
  194@ <> 1
  not is_char_dead 54@
goto_if_false @DRIV2_9673
wait 0
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_9666
if 
  is_char_in_car 54@ {vehicle} 58@
goto_if_false @DRIV2_9666
194@ = 1

:DRIV2_9666
goto @DRIV2_9592

:DRIV2_9673
wait 1000
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
set_fixed_camera_position -1832.36 {y} 380.48 {z} 18.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 58@
goto_if_false @DRIV2_9860
point_camera_at_car 58@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 54@
  does_object_exist 38@
goto_if_false @DRIV2_9860
if 
  is_char_holding_object 54@ {handle} 38@
goto_if_false @DRIV2_9814
drop_object 54@ {state} False

:DRIV2_9814
attach_object_to_car 38@ {handle} 58@ {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_9860
if and
  not is_car_dead 59@
  not is_char_dead 55@
goto_if_false @DRIV2_9913
task_car_drive_to_coord 55@ {vehicle} 59@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 63@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_9913
wait 150
if and
  not is_car_dead 60@
  not is_char_dead 56@
goto_if_false @DRIV2_9971
task_car_drive_to_coord 56@ {vehicle} 60@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 64@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_9971
wait 150
if and
  not is_car_dead 58@
  not is_char_dead 54@
goto_if_false @DRIV2_10029
task_car_drive_to_coord 54@ {vehicle} 58@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 62@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_10029
wait 100
if and
  not is_car_dead 61@
  not is_char_dead 57@
goto_if_false @DRIV2_10086
task_car_drive_to_coord 57@ {vehicle} 61@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 65@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_10086
wait 7000
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_10134
warp_char_from_car_to_coord $scplayer {x} -1820.72 {y} 382.73 {z} 16.04
goto @DRIV2_10154

:DRIV2_10134
set_char_coordinates $scplayer {x} -1820.72 {y} 382.73 {z} 16.04

:DRIV2_10154
set_char_heading $scplayer {heading} 326.45
if 
  not is_car_dead 35@
goto_if_false @DRIV2_10190
task_enter_car_as_driver $scplayer {vehicle} 35@ {time} -1

:DRIV2_10190
set_fixed_camera_position -1818.1 {y} 380.01 {z} 16.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
TIMERB = 0

:DRIV2_10238
if 
  4000 > TIMERB
goto_if_false @DRIV2_10316
wait 0
if and
  TIMERB > 0
  170@ <> 1
goto_if_false @DRIV2_10309
print_now 'DRV3_2' {time} 10000 {flag} 0
170@ = 1

:DRIV2_10309
goto @DRIV2_10238

:DRIV2_10316
gosub @DRIV2_4560
169@ = 0

:DRIV2_10330
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_10799
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_10534
if 
  not is_char_in_car 54@ {vehicle} 58@
goto_if_false @DRIV2_10430
warp_char_into_car 54@ {vehicle} 58@

:DRIV2_10430
if 
  does_object_exist 38@
goto_if_false @DRIV2_10534
if 
  not is_object_attached 38@
goto_if_false @DRIV2_10534
if 
  is_char_holding_object 54@ {handle} 38@
goto_if_false @DRIV2_10488
drop_object 54@ {state} False

:DRIV2_10488
attach_object_to_car 38@ {handle} 58@ {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_10534
if and
  not is_car_dead 58@
  not is_char_dead 54@
goto_if_false @DRIV2_10575
set_car_coordinates 58@ {x} -1894.59 {y} 582.43 {z} 34.56

:DRIV2_10575
if and
  not is_car_dead 59@
  not is_char_dead 55@
goto_if_false @DRIV2_10616
set_car_coordinates 59@ {x} -1893.5601 {y} 574.34 {z} 34.55

:DRIV2_10616
if and
  not is_car_dead 60@
  not is_char_dead 56@
goto_if_false @DRIV2_10657
set_car_coordinates 60@ {x} -1899.96 {y} 581.25 {z} 34.56

:DRIV2_10657
if and
  not is_car_dead 61@
  not is_char_dead 57@
goto_if_false @DRIV2_10698
set_car_coordinates 61@ {x} -1898.95 {y} 574.08 {z} 34.56

:DRIV2_10698
if 
  not is_car_dead 35@
goto_if_false @DRIV2_10758
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_10750
warp_char_from_car_to_coord $scplayer {x} -1819.01 {y} 386.28 {z} 6.58

:DRIV2_10750
warp_char_into_car $scplayer {vehicle} 35@

:DRIV2_10758
gosub @DRIV2_4560
if 
  170@ <> 1
goto_if_false @DRIV2_10799
print_now 'DRV3_2' {time} 10000 {flag} 0

:DRIV2_10799
119@ = 0

:DRIV2_10806
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_10886
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_10872
add_blip_for_object 38@(119@,4i) {var_handle} 180@(119@,4i)
change_blip_colour 180@(119@,4i) {color} BlipColor.Red

:DRIV2_10872
119@ += 1
goto @DRIV2_10806

:DRIV2_10886
if 
  not is_car_dead 34@
goto_if_false @DRIV2_10917
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_10917
119@ = 0

:DRIV2_10924
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11035
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_10982
set_char_proofs 54@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_10982
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11021
set_car_proofs 58@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_11021
119@ += 1
goto @DRIV2_10924

:DRIV2_11035
if 
  not is_car_dead 35@
goto_if_false @DRIV2_11066
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_11066
119@ = 0

:DRIV2_11073
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11137
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11123
set_load_collision_for_car_flag 58@(119@,4i) {state} False

:DRIV2_11123
119@ += 1
goto @DRIV2_11073

:DRIV2_11137
if 
  not is_car_dead 35@
goto_if_false @DRIV2_11160
set_load_collision_for_car_flag 35@ {state} False

:DRIV2_11160
if 
  not is_car_dead 34@
goto_if_false @DRIV2_11183
set_load_collision_for_car_flag 34@ {state} False

:DRIV2_11183
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV2_11200
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:DRIV2_11214
if 
  get_fading_status 
goto_if_false @DRIV2_11238
wait 0
goto @DRIV2_11214

:DRIV2_11238
clear_area 93@ {y} 94@ {z} 95@ {radius} 50.0 {clearParticles} False
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_11377
35@ = store_car_char_is_in $scplayer
set_car_coordinates 35@ {x} 93@ {y} 94@ {z} 95@
set_car_heading 35@ {heading} 340.37
195@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_go_straight_to_coord -1 {x} -2625.96 {y} 1417.8199 {z} 6.15 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
goto @DRIV2_11430

:DRIV2_11377
delete_car 35@
set_char_coordinates $scplayer {x} 93@ {y} 94@ {z} 95@
set_char_heading $scplayer {heading} 10.0
task_go_straight_to_coord $scplayer {x} -2625.96 {y} 1417.8199 {z} 6.15 {speed} MoveState.Walk {time} -1

:DRIV2_11430
set_fixed_camera_position -2626.02 {y} 1403.8 {z} 6.95 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2624.5601 {y} 1406.1899 {z} 7.03 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV2_11488
if 
  get_fading_status 
goto_if_false @DRIV2_11512
wait 0
goto @DRIV2_11488

:DRIV2_11512
169@ = 1
skip_cutscene_start_internal @DRIV2_11538
wait 2000
169@ = 0

:DRIV2_11538
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_11558

:DRIV2_11558
if 
  169@ <> 1
goto_if_false @DRIV2_11607
do_fade 1000 {direction} Fade.Out

:DRIV2_11583
if 
  get_fading_status 
goto_if_false @DRIV2_11607
wait 0
goto @DRIV2_11583

:DRIV2_11607
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2624.28 {y} 1410.9301 {z} 6.15
set_char_heading $scplayer {heading} 194.52
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
if 
  169@ <> 1
goto_if_false @DRIV2_11706
do_fade 1000 {direction} Fade.In

:DRIV2_11682
if 
  get_fading_status 
goto_if_false @DRIV2_11706
wait 0
goto @DRIV2_11682

:DRIV2_11706
set_player_control $player1 {state} True
return 

:DRIV2_11715
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:DRIV2_11729
if 
  get_fading_status 
goto_if_false @DRIV2_11753
wait 0
goto @DRIV2_11729

:DRIV2_11753
mark_car_as_no_longer_needed 35@
clear_area 90@ {y} 91@ {z} 92@ {radius} 100.0 {clearParticles} False
119@ = 0

:DRIV2_11783
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11921
if 
  not is_int_lvar_equal_to_int_lvar 119@ == 120@
goto_if_false @DRIV2_11907
delete_char 54@(119@,4i)
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11889
if 
  not is_char_in_car $scplayer {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_11882
delete_car 58@(119@,4i)

:DRIV2_11882
goto @DRIV2_11898

:DRIV2_11889
delete_car 58@(119@,4i)

:DRIV2_11898
delete_object 38@(119@,4i)

:DRIV2_11907
119@ += 1
goto @DRIV2_11783

:DRIV2_11921
121@ = get_area_visible 
96@, 97@, 98@ = get_char_coordinates $scplayer
103@ = get_char_heading $scplayer
197@ = get_water_height_at_coords 96@ {y} 97@ {waves} False
196@ = get_ground_z_for_3d_coord 96@ {y} 97@ {z} 98@
if 
  is_float_lvar_greater_than_float_lvar 197@ > 196@
goto_if_false @DRIV2_12002
set_lvar_float_to_lvar_float 196@ = 197@

:DRIV2_12002
set_char_coordinates $scplayer {x} -2762.8201 {y} 98.13 {z} -100.0
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_12056
35@ = store_car_char_is_in $scplayer
set_car_heading 35@ {heading} 354.04

:DRIV2_12056
set_area_visible 0
request_collision 90@ {y} 91@
load_scene 90@ {y} 91@ {z} 92@
clear_help 
switch_widescreen True
set_fixed_camera_position -2736.4299 {y} 87.02 {z} 4.27 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2735.5701 {y} 86.18 {z} 4.27 {switchStyle} SwitchType.JumpCut
open_garage 'TBON'
if and
  not is_char_dead 54@(120@,4i)
  not is_car_dead 58@(120@,4i)
goto_if_false @DRIV2_12368
set_car_coordinates 58@(120@,4i) {x} -2720.9199 {y} 83.65 {z} 3.69
set_car_heading 58@(120@,4i) {heading} 85.84
if 
  not is_char_in_car 54@(120@,4i) {vehicle} 58@(120@,4i)
goto_if_false @DRIV2_12301
if 
  is_char_in_any_car 54@(120@,4i)
goto_if_false @DRIV2_12285
warp_char_from_car_to_coord 54@(120@,4i) {x} -2720.9199 {y} 83.65 {z} -6.31

:DRIV2_12285
warp_char_into_car 54@(120@,4i) {vehicle} 58@(120@,4i)

:DRIV2_12301
set_car_straight_line_distance 58@(120@,4i) {distance} 2
task_car_drive_to_coord 54@(120@,4i) {vehicle} 58@(120@,4i) {x} -2730.1101 {y} 65.22 {z} 3.91 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_car_forward_speed 58@(120@,4i) {forwardSpeed} 7.0

:DRIV2_12368
delete_car 34@
do_fade 500 {direction} Fade.In

:DRIV2_12380
if 
  get_fading_status 
goto_if_false @DRIV2_12404
wait 0
goto @DRIV2_12380

:DRIV2_12404
169@ = 1
skip_cutscene_start_internal @DRIV2_12599
if 
  not is_char_dead 54@(120@,4i)
goto_if_false @DRIV2_12456
100@, 101@, 102@ = get_char_coordinates 54@(120@,4i)

:DRIV2_12456
if 
  101@ > 71.36
goto_if_false @DRIV2_12543
wait 0
if 
  not is_char_dead 54@(120@,4i)
goto_if_false @DRIV2_12526
100@, 101@, 102@ = get_char_coordinates 54@(120@,4i)
goto @DRIV2_12536

:DRIV2_12526
101@ = 71.36

:DRIV2_12536
goto @DRIV2_12456

:DRIV2_12543
close_garage 'TBON'

:DRIV2_12554
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12587
wait 0
goto @DRIV2_12554

:DRIV2_12587
wait 1000
169@ = 0

:DRIV2_12599
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:DRIV2_12608
if 
  get_fading_status 
goto_if_false @DRIV2_12632
wait 0
goto @DRIV2_12608

:DRIV2_12632
delete_char 54@(120@,4i)
delete_car 58@(120@,4i)
if 
  169@ == 1
goto_if_false @DRIV2_12734
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12734
close_garage 'TBON'

:DRIV2_12701
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12734
wait 0
goto @DRIV2_12701

:DRIV2_12734
set_area_visible 121@
request_collision 96@ {y} 97@
load_scene 96@ {y} 97@ {z} 196@
set_char_coordinates $scplayer {x} 96@ {y} 97@ {z} 196@
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_12811
35@ = store_car_char_is_in $scplayer
set_car_heading 35@ {heading} 103@
goto @DRIV2_12819

:DRIV2_12811
set_char_heading $scplayer {heading} 103@

:DRIV2_12819
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:DRIV2_12841
if 
  get_fading_status 
goto_if_false @DRIV2_12865
wait 0
goto @DRIV2_12841

:DRIV2_12865
return 

:DRIV2_12867
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV2_12885
$flag_synd_mission_counter += 1
register_mission_passed 'FAR_2'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:DRIV2_12949
mark_model_as_no_longer_needed 498
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed #KMB_PACKET
mark_model_as_no_longer_needed 100
mark_model_as_no_longer_needed 47
mark_model_as_no_longer_needed 352
remove_animation "BIKES"
remove_animation "MISC"
119@ = 0

:DRIV2_13001
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13092
remove_blip 180@(119@,4i)
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_13078
if 
  not is_object_on_screen 38@(119@,4i)
goto_if_false @DRIV2_13078
delete_object 38@(119@,4i)

:DRIV2_13078
119@ += 1
goto @DRIV2_13001

:DRIV2_13092
remove_blip 184@
remove_blip 185@
if 
  not is_car_dead 34@
goto_if_false @DRIV2_13133
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_13133
119@ = 0

:DRIV2_13140
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13223
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_13209
set_car_proofs 58@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 58@(119@,4i) {state} False

:DRIV2_13209
119@ += 1
goto @DRIV2_13140

:DRIV2_13223
if 
  not is_car_dead 35@
goto_if_false @DRIV2_13254
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_13254
remove_decision_maker 193@
clear_sequence_task 195@
clear_help 
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
if 
  is_player_playing $player1
goto_if_false @DRIV2_13321
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:DRIV2_13321
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 66---------------
// Originally: Mike Toreno

:DRIV3
script_name 'DRIV3'
gosub @DRIV3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV3_38
gosub @DRIV3_15991

:DRIV3_38
gosub @DRIV3_16009
terminate_this_script 

:DRIV3_47
$onmission = 1
register_mission_given 
wait 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out
set_fading_colour 0 {g} 0 {b} 0

:DRIV3_82
if 
  get_fading_status 
goto_if_false @DRIV3_106
wait 0
goto @DRIV3_82

:DRIV3_106
load_mission_text 'FARLIE3'
set_area_visible 3
load_cutscene 'FARL_3A'

:DRIV3_132
if 
  not has_cutscene_loaded 
goto_if_false @DRIV3_156
wait 0
goto @DRIV3_132

:DRIV3_156
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV3_165
if 
  not has_cutscene_finished 
goto_if_false @DRIV3_189
wait 0
goto @DRIV3_165

:DRIV3_189
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DRIV3_204
if 
  get_fading_status 
goto_if_false @DRIV3_228
wait 0
goto @DRIV3_204

:DRIV3_228
clear_cutscene 
set_area_visible 0
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0
remove_blip 127@
80@ = -1906.656
81@ = 283.016
82@ = 41.0
104@ = 0
105@ = 0
106@ = 0
132@ = 0
107@ = 0
112@ = 0
108@ = 0
59@ = -2615.0
60@ = 1397.0
61@ = 6.0
101@ = 0
$int_distance_player_girl = 0
$flag_is_farlie3_running = 1
103@ = 0
71@ = -1550.416
72@ = -436.4436
73@ = 6.9871
$timer_countdown_farlie3 = 0
74@ = 0.0
75@ = -20.0
76@ = 0.0
100@ = 0
102@ = 0
109@ = 0
110@ = 0
89@ = 1
90@ = 0
91@ = 0
92@ = 0
93@ = 0
$s7_rnd_1 = 0
94@ = 0
95@ = 0
98@ = 0
111@ = 0
99@ = 0
96@ = 0
97@ = 0
if 
  does_blip_exist $2652
goto_if_false @DRIV3_603
remove_blip $2652

:DRIV3_603
55@ = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1542.022 {y} -437.7364 {z} 5.9258
set_var_text_label s$flag_phone_dialog_driv3[0] = 'FAR3_CA'
set_var_text_label s$flag_phone_dialog_driv3[1] = 'FAR3_CB'
set_var_text_label s$flag_phone_dialog_driv3[2] = 'FAR3_DA'
set_var_text_label s$flag_phone_dialog_driv3[3] = 'FAR3_CC'
set_var_text_label s$flag_phone_dialog_driv3[4] = 'FAR3_DB'
set_var_text_label s$flag_phone_dialog_driv3[5] = 'FAR3_EA'
set_lvar_int_to_constant 133@ = 6410
set_lvar_int_to_constant 134@ = 6411
set_lvar_int_to_constant 135@ = 6431
set_lvar_int_to_constant 136@ = 6412
set_lvar_int_to_constant 137@ = 6432
set_lvar_int_to_constant 138@ = 6447
set_var_text_label s$flag_phone_dialog_driv3[6] = 'FAR3_CF'
set_var_text_label s$flag_phone_dialog_driv3[7] = 'FAR3_CD'
set_var_text_label s$flag_phone_dialog_driv3[8] = 'FAR3_DC'
set_var_text_label s$flag_phone_dialog_driv3[9] = 'FAR3_EB'
set_lvar_int_to_constant 139@ = 6415
set_lvar_int_to_constant 140@ = 6413
set_lvar_int_to_constant 141@ = 6433
set_lvar_int_to_constant 142@ = 6448
set_var_text_label s$flag_phone_dialog_driv3[10] = 'FAR3_CJ'
set_var_text_label s$flag_phone_dialog_driv3[11] = 'FAR3_CK'
set_var_text_label s$flag_phone_dialog_driv3[12] = 'FAR3_DD'
set_var_text_label s$flag_phone_dialog_driv3[13] = 'FAR3_DE'
set_var_text_label s$flag_phone_dialog_driv3[14] = 'FAR3_EC'
set_lvar_int_to_constant 143@ = 6445
set_lvar_int_to_constant 144@ = 6446
set_lvar_int_to_constant 145@ = 6434
set_lvar_int_to_constant 146@ = 6435
set_lvar_int_to_constant 147@ = 6449
set_var_text_label s$flag_phone_dialog_driv3[15] = 'FAR3_HA'
set_var_text_label s$flag_phone_dialog_driv3[16] = 'FAR3_HB'
set_var_text_label s$flag_phone_dialog_driv3[17] = 'FAR3_HC'
set_lvar_int_to_constant 148@ = 6457
set_lvar_int_to_constant 149@ = 6436
set_lvar_int_to_constant 150@ = 6458
set_var_text_label s$flag_phone_dialog_driv3[18] = 'FAR3_JA'
set_var_text_label s$flag_phone_dialog_driv3[19] = 'FAR3_JB'
set_var_text_label s$flag_phone_dialog_driv3[20] = 'FAR3_JC'
set_var_text_label s$flag_phone_dialog_driv3[21] = 'FAR3_JD'
set_var_text_label s$flag_phone_dialog_driv3[22] = 'FAR3_JE'
set_var_text_label s$flag_phone_dialog_driv3[23] = 'FAR3_JF'
set_var_text_label s$flag_phone_dialog_driv3[24] = 'FAR3_JG'
set_lvar_int_to_constant 151@ = 6417
set_lvar_int_to_constant 152@ = 6437
set_lvar_int_to_constant 153@ = 6418
set_lvar_int_to_constant 154@ = 6419
set_lvar_int_to_constant 155@ = 6420
set_lvar_int_to_constant 156@ = 6438
set_lvar_int_to_constant 157@ = 6421
set_var_text_label s$flag_phone_dialog_driv3[25] = 'FAR3_MA'
set_var_text_label s$flag_phone_dialog_driv3[26] = 'FAR3_MB'
set_var_text_label s$flag_phone_dialog_driv3[27] = 'FAR3_MC'
set_var_text_label s$flag_phone_dialog_driv3[28] = 'FAR3_MD'
set_var_text_label s$flag_phone_dialog_driv3[29] = 'FAR3_ME'
set_var_text_label s$flag_phone_dialog_driv3[30] = 'FAR3_MF'
set_var_text_label s$flag_phone_dialog_driv3[31] = 'FAR3_MG'
set_var_text_label s$flag_phone_dialog_driv3[32] = 'FAR3_MH'
set_var_text_label s$flag_phone_dialog_driv3[33] = 'FAR3_MJ'
set_var_text_label s$flag_phone_dialog_driv3[34] = 'FAR3_MK'
set_var_text_label s$flag_phone_dialog_driv3[35] = 'FAR3_ML'
set_var_text_label s$flag_phone_dialog_driv3[36] = 'FAR3_MM'
set_var_text_label s$flag_phone_dialog_driv3[37] = 'FAR3_MN'
set_var_text_label s$flag_phone_dialog_driv3[38] = 'FAR3_MO'
set_lvar_int_to_constant 158@ = 6403
set_lvar_int_to_constant 159@ = 6439
set_lvar_int_to_constant 160@ = 6404
set_lvar_int_to_constant 161@ = 6440
set_lvar_int_to_constant 162@ = 6426
set_lvar_int_to_constant 163@ = 6441
set_lvar_int_to_constant 164@ = 6405
set_lvar_int_to_constant 165@ = 6442
set_lvar_int_to_constant 166@ = 6427
set_lvar_int_to_constant 167@ = 6428
set_lvar_int_to_constant 168@ = 6406
set_lvar_int_to_constant 169@ = 6407
set_lvar_int_to_constant 170@ = 6443
set_lvar_int_to_constant 171@ = 6429
86@ = load_char_decision_maker DecisionMakerType.Tough
87@ = load_char_decision_maker DecisionMakerType.Tough
request_model 352
request_model 482
load_special_character 2 {modelName} 'TBONE'
load_all_models_now 

:DRIV3_1527
if or
  not has_special_character_loaded 2
  not has_model_loaded 352
  not has_model_loaded 482
goto_if_false @DRIV3_1563
wait 0
goto @DRIV3_1527

:DRIV3_1563
set_char_heading $scplayer {heading} 214.0
set_camera_behind_player 

:DRIV3_1575
wait 0
if 
  89@ == 1
goto_if_false @DRIV3_1604
gosub @DRIV3_1736

:DRIV3_1604
if 
  90@ == 1
goto_if_false @DRIV3_1629
gosub @DRIV3_6822

:DRIV3_1629
if 
  94@ == 1
goto_if_false @DRIV3_1654
gosub @DRIV3_8237

:DRIV3_1654
if 
  91@ == 1
goto_if_false @DRIV3_1679
gosub @DRIV3_11206

:DRIV3_1679
if 
  92@ == 1
goto_if_false @DRIV3_1704
goto @DRIV3_15893

:DRIV3_1704
if 
  93@ == 1
goto_if_false @DRIV3_1729
goto @DRIV3_15991

:DRIV3_1729
goto @DRIV3_1575

:DRIV3_1736
54@ = generate_random_int_in_range 1 {max} 4
if 
  54@ == 1
goto_if_false @DRIV3_1833
56@ = -1303.76
57@ = -615.4308
58@ = 13.1485
62@ = -1271.832
63@ = -180.8179
64@ = 13.1443
84@ = 0.0

:DRIV3_1833
if 
  54@ == 2
goto_if_false @DRIV3_1921
56@ = -1216.233
57@ = 51.366
58@ = 13.0
62@ = -1288.832
63@ = -159.8179
64@ = 13.1443
84@ = 120.0

:DRIV3_1921
if 
  54@ == 3
goto_if_false @DRIV3_2009
56@ = -1125.319
57@ = 368.3488
58@ = 13.1329
62@ = -1319.832
63@ = -96.8179
64@ = 13.8443
84@ = 140.0

:DRIV3_2009
request_model 426

:DRIV3_2014
if 
  not has_model_loaded 426
goto_if_false @DRIV3_2041
wait 0
goto @DRIV3_2014

:DRIV3_2041
38@ = create_car 426 {x} -2620.0 {y} 1398.0 {z} 6.5
set_car_heading 38@ {heading} 204.0
114@ = add_blip_for_car 38@
set_blip_as_friendly 114@ {state} True
set_car_health 38@ {health} 2500
113@ = find_max_number_of_group_members 
set_script_limit_to_gang_size 113@
make_room_in_player_gang_for_mission_peds 2
if 
  is_player_playing $player1
goto_if_false @DRIV3_2134
shut_char_up_for_scripted_speech $scplayer {state} True

:DRIV3_2134
53@ = create_char PedType.Mission2 {modelId} 291 {x} -2623.6399 {y} 1403.9 {z} 6.2
set_char_get_out_upside_down_car 53@ {state} False
add_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_accuracy 53@ {accuracy} 95
set_player_group_to_follow_always $player1 {state} True
shut_char_up_for_scripted_speech 53@ {state} True
task_enter_car_as_passenger 53@ {vehicle} 38@ {time} -1 {seat} SeatId.BikeRear
set_char_drowns_in_water 53@ {state} True
set_char_relationship 53@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker 53@ {handleOrTemplate} 87@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_never_targetted 53@ {state} True
set_char_only_damaged_by_player 53@ {state} True
load_scene_in_direction -2623.6399 {y} 1403.9 {z} 6.2 {heading} 214.0
do_fade 1000 {direction} Fade.In

:DRIV3_2319
if 
  get_fading_status 
goto_if_false @DRIV3_2343
wait 0
goto @DRIV3_2319

:DRIV3_2343
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
$timer_countdown_farlie3 += 330000
display_onscreen_timer_with_string $timer_countdown_farlie3 {direction} TimerDirection.Down {text} 'DRI2_9'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6450

:DRIV3_2391
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_2417
wait 0
goto @DRIV3_2391

:DRIV3_2417
print_now 'FAR3_FA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_2437
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_2463
wait 0
goto @DRIV3_2437

:DRIV3_2463
clear_this_print 'FAR3_FA'
print_now 'DRI2_1' {time} 5000 {flag} 1
request_model 121
request_model 122
request_model 123

:DRIV3_2502
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
goto_if_false @DRIV3_2536
wait 0
goto @DRIV3_2502

:DRIV3_2536
if 
  not is_car_dead 38@
goto_if_false @DRIV3_2857

:DRIV3_2552
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DRIV3_2857
wait 0
if 
  is_char_dead 53@
goto_if_false @DRIV3_2651
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_2651
if 
  is_car_dead 38@
goto_if_false @DRIV3_2674
goto @DRIV3_2857

:DRIV3_2674
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV3_2733
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 1
93@ = 0
return 

:DRIV3_2733
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_2850
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6453

:DRIV3_2776
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_2802
wait 0
goto @DRIV3_2776

:DRIV3_2802
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_2822
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_2848
wait 0
goto @DRIV3_2822

:DRIV3_2848
return 

:DRIV3_2850
goto @DRIV3_2552

:DRIV3_2857
if 
  not is_char_dead 53@
goto_if_false @DRIV3_2911
clear_this_print 'DRI2_1'
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_2911
set_group_member $Players_Group {handle} 53@

:DRIV3_2911
remove_blip 114@
mark_model_as_no_longer_needed 426
TIMERB = 0
116@ = add_short_range_sprite_blip_for_coord 71@ {y} 72@ {z} 73@ {sprite} RadarSprite.MapHere
remove_blip 116@
if 
  not is_char_dead $scplayer
goto_if_false @DRIV3_4398

:DRIV3_2965
if 
  not locate_char_any_means_3d $scplayer {x} 71@ {y} 72@ {z} 73@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 35.0 {drawSphere} False
goto_if_false @DRIV3_4398
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_3038
return 

:DRIV3_3038
if 
  109@ == 0
goto_if_false @DRIV3_4391
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_3080
38@ = store_car_char_is_in $scplayer

:DRIV3_3080
if and
  $s7_rnd_1 >= 0
  6 > $s7_rnd_1
goto_if_false @DRIV3_3112
gosub @DRIV3_15514

:DRIV3_3112
if 
  $s7_rnd_1 == 6
goto_if_false @DRIV3_3264
if 
  TIMERA > 15000
goto_if_false @DRIV3_3264
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6456

:DRIV3_3160
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3186
wait 0
goto @DRIV3_3160

:DRIV3_3186
print_now 'FAR3_GC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3206
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3232
wait 0
goto @DRIV3_3206

:DRIV3_3232
clear_this_print 'FAR3_GC'
TIMERA = 0
$s7_rnd_1 = 7
102@ = 0

:DRIV3_3264
if 
  $s7_rnd_1 == 7
goto_if_false @DRIV3_3351
if 
  not is_char_dead 53@
goto_if_false @DRIV3_3351
if and
  is_char_in_zone $scplayer {zone} 'DOH'
  is_char_in_zone 53@ {zone} 'DOH'
goto_if_false @DRIV3_3351
$s7_rnd_1 = 8
132@ = 6

:DRIV3_3351
if and
  $s7_rnd_1 >= 8
  12 > $s7_rnd_1
goto_if_false @DRIV3_3383
gosub @DRIV3_15514

:DRIV3_3383
if 
  $s7_rnd_1 == 12
goto_if_false @DRIV3_3535
if 
  TIMERA > 10000
goto_if_false @DRIV3_3535
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6455

:DRIV3_3431
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3457
wait 0
goto @DRIV3_3431

:DRIV3_3457
print_now 'FAR3_GB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3477
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3503
wait 0
goto @DRIV3_3477

:DRIV3_3503
clear_this_print 'FAR3_GB'
TIMERA = 0
$s7_rnd_1 = 13
102@ = 0

:DRIV3_3535
if 
  $s7_rnd_1 == 13
goto_if_false @DRIV3_3629
if 
  not is_char_dead 53@
goto_if_false @DRIV3_3629
if and
  is_char_in_zone $scplayer {zone} 'EASB'
  is_char_in_zone 53@ {zone} 'EASB'
goto_if_false @DRIV3_3629
$s7_rnd_1 = 14
132@ = 10
TIMERA = 0

:DRIV3_3629
if and
  $s7_rnd_1 >= 14
  19 > $s7_rnd_1
goto_if_false @DRIV3_3661
gosub @DRIV3_15514

:DRIV3_3661
if 
  $s7_rnd_1 == 19
goto_if_false @DRIV3_3806
if 
  TIMERA > 8000
goto_if_false @DRIV3_3806
TIMERA = 0
$s7_rnd_1 = 20
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6444

:DRIV3_3723
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3749
wait 0
goto @DRIV3_3723

:DRIV3_3749
print_now 'FAR3_CH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3769
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3795
wait 0
goto @DRIV3_3769

:DRIV3_3795
clear_this_print 'FAR3_CH'

:DRIV3_3806
if 
  $s7_rnd_1 == 20
goto_if_false @DRIV3_3958
if 
  TIMERA > 8000
goto_if_false @DRIV3_3958
TIMERA = 0
$s7_rnd_1 = 21
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6454

:DRIV3_3868
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3894
wait 0
goto @DRIV3_3868

:DRIV3_3894
print_now 'FAR3_GA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3914
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3940
wait 0
goto @DRIV3_3914

:DRIV3_3940
clear_this_print 'FAR3_GA'
102@ = 0

:DRIV3_3958
if 
  102@ == 0
goto_if_false @DRIV3_4116
if 
  103@ == 0
goto_if_false @DRIV3_4116
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4116
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6451

:DRIV3_4026
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4052
wait 0
goto @DRIV3_4026

:DRIV3_4052
print_now 'FAR3_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4072
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4098
wait 0
goto @DRIV3_4072

:DRIV3_4098
clear_this_print 'FAR3_FB'
103@ = 1

:DRIV3_4116
if 
  102@ == 0
goto_if_false @DRIV3_4274
if 
  103@ == 1
goto_if_false @DRIV3_4274
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4274
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6452

:DRIV3_4184
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4210
wait 0
goto @DRIV3_4184

:DRIV3_4210
print_now 'FAR3_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4230
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4256
wait 0
goto @DRIV3_4230

:DRIV3_4256
clear_this_print 'FAR3_FC'
103@ = 2

:DRIV3_4274
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4391
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6453

:DRIV3_4317
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4343
wait 0
goto @DRIV3_4317

:DRIV3_4343
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4363
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4389
wait 0
goto @DRIV3_4363

:DRIV3_4389
return 

:DRIV3_4391
goto @DRIV3_2965

:DRIV3_4398
clear_help 
remove_blip 116@
remove_blip 127@
request_model 463

:DRIV3_4415
if 
  not has_model_loaded 463
goto_if_false @DRIV3_4442
wait 0
goto @DRIV3_4415

:DRIV3_4442
display_onscreen_counter_with_string $int_distance_player_girl {display} CounterDisplay.Bar {text} 'DRI2_17'
35@ = create_car 482 {x} 56@ {y} 57@ {z} 58@
change_car_colour 35@ {color1} 6 {color2} 0
115@ = add_blip_for_car 35@
change_blip_display 115@ {display} BlipDisplay.MarkerOnly
set_car_heading 35@ {heading} 84@
41@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 123
set_char_proofs 41@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_suffers_critical_hits 41@ {state} False
set_char_decision_maker 41@ {handleOrTemplate} 86@
set_char_relationship 41@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 41@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
add_char_decision_maker_event_response 86@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_car_health 35@ {health} 1000
lock_car_doors 35@ {lockStatus} CarLock.SkipShutDoors
set_car_only_damaged_by_player 35@ {state} True
131@ = 0

:DRIV3_4630
if 
  3 > 131@
goto_if_false @DRIV3_4812
if or
  131@ == 0
  131@ == 2
goto_if_false @DRIV3_4692
create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 121 {seat} 131@ {var_handle} 42@(131@,9i)

:DRIV3_4692
if 
  131@ == 1
goto_if_false @DRIV3_4729
create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 122 {seat} 131@ {var_handle} 42@(131@,9i)

:DRIV3_4729
give_weapon_to_char 42@(131@,9i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 42@(131@,9i) {weaponType} WeaponType.MicroUzi
if 
  131@ == 0
goto_if_false @DRIV3_4798
set_char_decision_maker 42@ {handleOrTemplate} 86@
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1

:DRIV3_4798
131@ += 1
goto @DRIV3_4630

:DRIV3_4812
if 
  not is_car_dead 35@
goto_if_false @DRIV3_5062
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 2.0 {yOffset} -6.0 {zOffset} -0.3
36@ = create_car 463 {x} 77@ {y} 78@ {z} 79@
set_car_heading 36@ {heading} 84@
51@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 122
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 51@ {weaponType} WeaponType.MicroUzi
set_char_decision_maker 51@ {handleOrTemplate} 86@
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 51@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_car_straight_line_distance 36@ {distance} 255
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -2.0 {yOffset} -6.0 {zOffset} -0.3
37@ = create_car 463 {x} 77@ {y} 78@ {z} 79@
set_car_heading 37@ {heading} 84@
52@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 52@ {weaponType} WeaponType.MicroUzi
set_char_decision_maker 52@ {handleOrTemplate} 86@
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 52@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_car_straight_line_distance 37@ {distance} 255

:DRIV3_5062
if 
  $s7_rnd_1 <> 21
goto_if_false @DRIV3_5094
132@ = 18
$s7_rnd_1 = 24

:DRIV3_5094
if 
  98@ <> 1
goto_if_false @DRIV3_6806
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_5143
return 

:DRIV3_5143
if and
  $s7_rnd_1 >= 21
  24 > $s7_rnd_1
goto_if_false @DRIV3_5182
102@ = 1
gosub @DRIV3_15514

:DRIV3_5182
if and
  $s7_rnd_1 >= 24
  30 >= $s7_rnd_1
goto_if_false @DRIV3_5221
gosub @DRIV3_15514
102@ = 1

:DRIV3_5221
if 
  95@ == 0
goto_if_false @DRIV3_5294
if 
  $s7_rnd_1 == 31
goto_if_false @DRIV3_5287
print_now 'DRI2_18' {time} 5000 {flag} 1
$s7_rnd_1 = 32
TIMERA = 0

:DRIV3_5287
goto @DRIV3_5301

:DRIV3_5294
$s7_rnd_1 = 32

:DRIV3_5301
if 
  $s7_rnd_1 == 32
goto_if_false @DRIV3_5352
if 
  TIMERA > 7000
goto_if_false @DRIV3_5352
102@ = 0
$s7_rnd_1 = 33

:DRIV3_5352
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6767
if and
  locate_char_any_means_3d $scplayer {x} 65@ {y} 66@ {z} 67@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  locate_car_3d 35@ {x} 62@ {y} 63@ {z} 64@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_5448
98@ = 1

:DRIV3_5448
if 
  95@ == 0
goto_if_false @DRIV3_5747
if and
  locate_char_any_means_3d $scplayer {x} 65@ {y} 66@ {z} 67@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
  is_car_on_screen 35@
goto_if_false @DRIV3_5747
if 
  not is_char_dead 41@
goto_if_false @DRIV3_5557
task_car_drive_to_coord 41@ {vehicle} 35@ {x} 62@ {y} 63@ {z} 64@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRIV3_5557
if 
  not is_car_dead 36@
goto_if_false @DRIV3_5581
set_car_escort_car_right 36@ {handle} 35@

:DRIV3_5581
if 
  not is_car_dead 37@
goto_if_false @DRIV3_5605
set_car_escort_car_left 37@ {handle} 35@

:DRIV3_5605
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6425

:DRIV3_5616
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_5642
wait 0
goto @DRIV3_5616

:DRIV3_5642
print_now 'FAR3_KD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_5662
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_5688
wait 0
goto @DRIV3_5662

:DRIV3_5688
clear_this_print 'FAR3_KD'
change_blip_display 115@ {display} BlipDisplay.Both
clear_onscreen_timer $timer_countdown_farlie3
clear_onscreen_counter $int_distance_player_girl
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_5740
38@ = store_car_char_is_in $scplayer

:DRIV3_5740
95@ = 1

:DRIV3_5747
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6085
if or
  95@ == 1
  95@ == 2
goto_if_false @DRIV3_5854
if 
  locate_car_3d 35@ {x} 62@ {y} 63@ {z} 64@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV3_5854
set_car_cruise_speed 35@ {maxSpeed} 0.0
set_car_mission 35@ {carMission} CarMission.StopForever
95@ = 3

:DRIV3_5854
if 
  not is_car_dead 35@
goto_if_false @DRIV3_5884
65@, 66@, 67@ = get_car_coordinates 35@

:DRIV3_5884
68@, 69@, 70@ = get_char_coordinates $scplayer
88@ = get_distance_between_coords_3d 68@ {fromY} 69@ {fromZ} 70@ {toX} 65@ {toY} 66@ {toZ} 67@
if or
  54@ == 3
  54@ == 2
goto_if_false @DRIV3_6019
if 
  88@ > 1000.0
goto_if_false @DRIV3_5984
88@ = 1000.0
goto @DRIV3_6012

:DRIV3_5984
129@ = 1000.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 10.0

:DRIV3_6012
goto @DRIV3_6085

:DRIV3_6019
if 
  88@ > 500.0
goto_if_false @DRIV3_6057
88@ = 500.0
goto @DRIV3_6085

:DRIV3_6057
129@ = 500.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 5.0

:DRIV3_6085
if 
  129@ > 0.0
goto_if_false @DRIV3_6114
cset_var_int_to_lvar_float $int_distance_player_girl =# 129@

:DRIV3_6114
if 
  95@ <> 1
goto_if_false @DRIV3_6651
if 
  109@ == 0
goto_if_false @DRIV3_6583
if 
  102@ == 0
goto_if_false @DRIV3_6308
if 
  103@ == 0
goto_if_false @DRIV3_6308
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6308
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6451

:DRIV3_6218
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6244
wait 0
goto @DRIV3_6218

:DRIV3_6244
print_now 'FAR3_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6264
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6290
wait 0
goto @DRIV3_6264

:DRIV3_6290
clear_this_print 'FAR3_FB'
103@ = 1

:DRIV3_6308
if 
  102@ == 0
goto_if_false @DRIV3_6466
if 
  103@ == 1
goto_if_false @DRIV3_6466
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6466
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6452

:DRIV3_6376
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6402
wait 0
goto @DRIV3_6376

:DRIV3_6402
print_now 'FAR3_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6422
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6448
wait 0
goto @DRIV3_6422

:DRIV3_6448
clear_this_print 'FAR3_FC'
103@ = 2

:DRIV3_6466
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6583
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6453

:DRIV3_6509
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6535
wait 0
goto @DRIV3_6509

:DRIV3_6535
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6555
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6581
wait 0
goto @DRIV3_6555

:DRIV3_6581
return 

:DRIV3_6583
if 
  95@ == 0
goto_if_false @DRIV3_6651
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6651
89@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_6651
if 
  95@ == 1
goto_if_false @DRIV3_6760
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6760
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @DRIV3_6760
90@ = 0
89@ = 0
93@ = 1
print_now 'DRI2_26' {time} 5000 {flag} 1
return 

:DRIV3_6760
goto @DRIV3_6799

:DRIV3_6767
89@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_6799
goto @DRIV3_5094

:DRIV3_6806
89@ = 0
90@ = 1
return 

:DRIV3_6822
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_6870
38@ = store_car_char_is_in $scplayer

:DRIV3_6870
131@ = 0

:DRIV3_6877
if 
  3 > 131@
goto_if_false @DRIV3_7089
if 
  not is_char_dead 42@(131@,9i)
goto_if_false @DRIV3_7043
add_blip_for_char 42@(131@,9i) {var_handle} 124@(131@,3i)
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7004
perform_sequence_task 42@(131@,9i) {sequence} 173@
set_char_decision_maker 42@(131@,9i) {handleOrTemplate} 86@
set_char_relationship 42@(131@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@(131@,9i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
goto @DRIV3_7036

:DRIV3_7004
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_7036
goto @DRIV3_7075

:DRIV3_7043
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_7075
131@ += 1
goto @DRIV3_6877

:DRIV3_7089
if 
  does_blip_exist 115@
goto_if_false @DRIV3_7112
change_blip_display 115@ {display} BlipDisplay.BlipOnly

:DRIV3_7112
if 
  not is_char_dead 41@
goto_if_false @DRIV3_7166
set_char_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_suffers_critical_hits 41@ {state} True
117@ = add_blip_for_char 41@
perform_sequence_task 41@ {sequence} 173@

:DRIV3_7166
clear_sequence_task 173@
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7539
freeze_car_position 35@ {state} True
lock_car_doors 35@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 51@
goto_if_false @DRIV3_7370
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7370
if 
  not locate_char_any_means_car_3d 51@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_7309
set_char_health 51@ {health} 0
mark_char_as_no_longer_needed 51@
if 
  not is_car_dead 36@
goto_if_false @DRIV3_7302
mark_car_as_no_longer_needed 36@

:DRIV3_7302
goto @DRIV3_7370

:DRIV3_7309
if 
  not is_car_dead 36@
goto_if_false @DRIV3_7370
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 36@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
perform_sequence_task 51@ {sequence} 173@
clear_sequence_task 173@
118@ = add_blip_for_char 51@

:DRIV3_7370
if 
  not is_char_dead 52@
goto_if_false @DRIV3_7539
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7539
if 
  not locate_char_any_means_car_3d 52@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_7478
set_char_health 52@ {health} 0
mark_char_as_no_longer_needed 52@
if 
  not is_car_dead 37@
goto_if_false @DRIV3_7471
mark_car_as_no_longer_needed 37@

:DRIV3_7471
goto @DRIV3_7539

:DRIV3_7478
if 
  not is_car_dead 37@
goto_if_false @DRIV3_7539
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 37@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
perform_sequence_task 52@ {sequence} 173@
clear_sequence_task 173@
119@ = add_blip_for_char 52@

:DRIV3_7539
print_now 'DRI2_12' {time} 5000 {flag} 1

:DRIV3_7555
if 
  $timer_countdown_farlie3 > 0
goto_if_false @DRIV3_8200
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_7604
return 

:DRIV3_7604
if 
  109@ == 0
goto_if_false @DRIV3_7816
if 
  not locate_char_any_means_3d $scplayer {x} 62@ {y} 63@ {z} 64@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DRIV3_7816
if 
  105@ == 0
goto_if_false @DRIV3_7705
print_now 'DRI2_47' {time} 5000 {flag} 1
105@ = 1

:DRIV3_7705
if 
  105@ == 1
goto_if_false @DRIV3_7816
if 
  95@ == 1
goto_if_false @DRIV3_7816
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @DRIV3_7816
90@ = 0
89@ = 0
93@ = 1
print_now 'DRI2_26' {time} 5000 {flag} 1
return 

:DRIV3_7816
131@ = 0

:DRIV3_7823
if 
  3 > 131@
goto_if_false @DRIV3_7904
if 
  is_char_dead 42@(131@,9i)
goto_if_false @DRIV3_7890
if 
  does_blip_exist 124@(131@,3i)
goto_if_false @DRIV3_7890
remove_blip 124@(131@,3i)

:DRIV3_7890
131@ += 1
goto @DRIV3_7823

:DRIV3_7904
131@ = 0

:DRIV3_7911
if 
  2 > 131@
goto_if_false @DRIV3_7992
if 
  is_char_dead 51@(131@,2i)
goto_if_false @DRIV3_7978
if 
  does_blip_exist 118@(131@,2i)
goto_if_false @DRIV3_7978
remove_blip 118@(131@,2i)

:DRIV3_7978
131@ += 1
goto @DRIV3_7911

:DRIV3_7992
if 
  is_char_dead 41@
goto_if_false @DRIV3_8029
if 
  does_blip_exist 117@
goto_if_false @DRIV3_8029
remove_blip 117@

:DRIV3_8029
if 
  not is_car_dead 35@
goto_if_false @DRIV3_8161
if and
  is_char_dead 42@
  is_char_dead 43@
  is_char_dead 44@
  is_char_dead 41@
goto_if_false @DRIV3_8154
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 117@
if 
  is_char_dead 51@
goto_if_false @DRIV3_8154
remove_blip 118@
if 
  is_char_dead 52@
goto_if_false @DRIV3_8154
remove_blip 119@
90@ = 0
94@ = 1
return 

:DRIV3_8154
goto @DRIV3_8193

:DRIV3_8161
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_8193
goto @DRIV3_7555

:DRIV3_8200
90@ = 0
93@ = 1
explode_car 35@
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_8237
if 
  99@ == 0
goto_if_false @DRIV3_9948
178@ = 0
wait 2000
set_player_control $player1 {state} False
switch_widescreen True
wait 2000
do_fade 1000 {direction} Fade.Out

:DRIV3_8290
if 
  get_fading_status 
goto_if_false @DRIV3_8314
wait 0
goto @DRIV3_8290

:DRIV3_8314
request_model 409

:DRIV3_8319
if 
  not has_model_loaded 409
goto_if_false @DRIV3_8346
wait 0
goto @DRIV3_8319

:DRIV3_8346
if 
  not is_car_dead 35@
goto_if_false @DRIV3_8438
set_car_coordinates 35@ {x} -1321.8 {y} -189.79 {z} 13.46
set_car_heading 35@ {heading} 60.0
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} 10.5 {zOffset} -0.2
34@ = create_car 409 {x} 77@ {y} 78@ {z} 79@

:DRIV3_8438
mark_model_as_no_longer_needed 409
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9057
if 
  does_blip_exist 115@
goto_if_false @DRIV3_8482
change_blip_display 115@ {display} BlipDisplay.Both

:DRIV3_8482
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -6.5 {zOffset} -0.5
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_8548
warp_char_from_car_to_coord $scplayer {x} 77@ {y} 78@ {z} 79@
goto @DRIV3_8562

:DRIV3_8548
set_char_coordinates $scplayer {x} 77@ {y} 78@ {z} 79@

:DRIV3_8562
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -1.0 {yOffset} -3.5 {zOffset} -0.2
if 
  not is_car_dead 36@
goto_if_false @DRIV3_8650
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -8.0 {yOffset} -8.0 {zOffset} -0.9
set_car_coordinates 36@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8650
if 
  not is_car_dead 37@
goto_if_false @DRIV3_8709
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 8.0 {yOffset} -8.0 {zOffset} -0.9
set_car_coordinates 37@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8709
if 
  not is_car_dead 38@
goto_if_false @DRIV3_8768
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 15.0 {yOffset} -20.0 {zOffset} -0.9
set_car_coordinates 38@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8768
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -2.0 {yOffset} -6.5 {zOffset} -0.5
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
load_special_character 1 {modelName} 'TORINO'

:DRIV3_8852
if 
  not has_special_character_loaded 1
goto_if_false @DRIV3_8878
wait 0
goto @DRIV3_8852

:DRIV3_8878
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9050
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -6.0 {yOffset} -20.0 {zOffset} 0.0
40@ = create_char PedType.Mission2 {modelId} 290 {x} 77@ {y} 78@ {z} 79@
set_char_drowns_in_water 40@ {state} True
shut_char_up_for_scripted_speech 40@ {state} True
set_char_get_out_upside_down_car 40@ {state} False
set_char_stay_in_same_place 40@ {state} True
85@ = get_char_heading 40@
set_char_relationship 40@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 40@ {handleOrTemplate} 87@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_never_targetted 40@ {state} True
set_char_only_damaged_by_player 40@ {state} True
task_leave_car 40@ {vehicle} 35@
set_car_health 35@ {health} 1000

:DRIV3_9050
goto @DRIV3_9089

:DRIV3_9057
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_9089
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 352
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9175
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9175
if 
  not is_char_dead $scplayer
goto_if_false @DRIV3_9175
set_char_visible $scplayer {state} False
set_char_visible 53@ {state} False
set_char_visible 40@ {state} False

:DRIV3_9175
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9382
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9375
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_9231
remove_char_from_group 53@

:DRIV3_9231
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -20.0 {zOffset} 0.0
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_9297
warp_char_from_car_to_coord 53@ {x} 77@ {y} 78@ {z} 79@
goto @DRIV3_9311

:DRIV3_9297
set_char_coordinates 53@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_9311
set_char_stay_in_same_place 53@ {state} True
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 3.0 {yOffset} -20.0 {zOffset} 0.0
set_char_coordinates $scplayer {x} 77@ {y} 78@ {z} 79@
task_turn_char_to_face_coord $scplayer {x} 56@ {y} 57@ {z} 58@

:DRIV3_9375
goto @DRIV3_9414

:DRIV3_9382
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_9414
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 41@
delete_char 51@
delete_char 52@
delete_char 51@
delete_char 52@
delete_car 36@
delete_car 37@
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
load_cutscene 'FARL_3B'

:DRIV3_9493
if 
  not has_cutscene_loaded 
goto_if_false @DRIV3_9517
wait 0
goto @DRIV3_9493

:DRIV3_9517
do_fade 1000 {direction} Fade.In
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
start_cutscene 

:DRIV3_9544
if 
  not has_cutscene_finished 
goto_if_false @DRIV3_9586
wait 0
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
goto @DRIV3_9544

:DRIV3_9586
clear_cutscene 
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9611
set_char_visible 53@ {state} True

:DRIV3_9611
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9634
set_char_visible 40@ {state} True

:DRIV3_9634
if 
  is_player_playing $player1
goto_if_false @DRIV3_9657
set_char_visible $scplayer {state} True

:DRIV3_9657
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9759
freeze_car_position 35@ {state} False
lock_car_doors 35@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9711
task_destroy_car 40@ {vehicle} 35@

:DRIV3_9711
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9759
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_9751
remove_char_from_group 53@

:DRIV3_9751
task_destroy_car 53@ {vehicle} 35@

:DRIV3_9759
do_fade 0 {direction} Fade.Out
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9849
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -6.5 {zOffset} -0.5
56@, 57@, 58@ = get_car_coordinates 35@
83@ = get_heading_from_vector_2d 56@ {y} 57@
task_turn_char_to_face_coord $scplayer {x} 56@ {y} 57@ {z} 58@

:DRIV3_9849
clear_area 56@ {y} 57@ {z} 58@ {radius} 1000.0 {clearParticles} True
wait 2000
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:DRIV3_9883
if 
  get_fading_status 
goto_if_false @DRIV3_9907
wait 0
goto @DRIV3_9883

:DRIV3_9907
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} True
print_now 'DRI2_33' {time} 10000 {flag} 1
99@ = 1

:DRIV3_9948
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9971
goto @DRIV3_10003

:DRIV3_9971
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_10003
if 
  is_char_dead 53@
goto_if_false @DRIV3_10079
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_10079
if 
  96@ == 0
goto_if_false @DRIV3_10562
if 
  is_car_dead 35@
goto_if_false @DRIV3_10562
96@ = 1
remove_blip 115@
alter_wanted_level_no_drop $player1 {wantedLevel} 2
TIMERB = 0
set_group_separation_range $Players_Group {range} 30.0
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10221
set_char_stay_in_same_place 40@ {state} False
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_10199
set_group_member $Players_Group {handle} 40@

:DRIV3_10199
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @DRIV3_10253

:DRIV3_10221
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_10253
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10303
set_char_stay_in_same_place 53@ {state} False
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_10303
set_group_member $Players_Group {handle} 53@

:DRIV3_10303
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10562
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10562
if 
  locate_char_any_means_char_3d $scplayer {target} 40@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_10562
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_10562
print_now 'DRI2_4' {time} 5000 {flag} 1
if 
  is_car_in_water 35@
goto_if_false @DRIV3_10462
print 'DRI2_34' {time} 10000 {flag} 1
goto @DRIV3_10478

:DRIV3_10462
print 'DRI2_24' {time} 10000 {flag} 1

:DRIV3_10478
if 
  100@ == 0
goto_if_false @DRIV3_10523
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56
goto @DRIV3_10562

:DRIV3_10523
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
if 
  108@ == 0
goto_if_false @DRIV3_10562
108@ = 1

:DRIV3_10562
if 
  107@ == 0
goto_if_false @DRIV3_10674
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10674
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10674
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_10674
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_10674
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_10674
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_10674
if 
  96@ == 1
goto_if_false @DRIV3_10746
gosub @DRIV3_14024
if 
  93@ == 1
goto_if_false @DRIV3_10719
return 

:DRIV3_10719
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_10746
return 

:DRIV3_10746
if 
  not locate_char_any_means_3d $scplayer {x} 56@ {y} 57@ {z} 58@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @DRIV3_10820
if 
  97@ == 0
goto_if_false @DRIV3_10813
97@ = 1

:DRIV3_10813
goto @DRIV3_10845

:DRIV3_10820
if 
  97@ == 1
goto_if_false @DRIV3_10845
97@ = 0

:DRIV3_10845
if 
  not is_car_dead 35@
goto_if_false @DRIV3_10875
56@, 57@, 58@ = get_car_coordinates 35@

:DRIV3_10875
if 
  96@ == 1
goto_if_false @DRIV3_11204
remove_blip 115@
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_11168
if 
  100@ == 0
goto_if_false @DRIV3_11011
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_11004
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_11004
goto @DRIV3_11082

:DRIV3_11011
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_11082
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_11082
108@ = 1

:DRIV3_11082
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11125
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_11125
set_group_member $Players_Group {handle} 40@

:DRIV3_11125
if 
  not is_char_dead 53@
goto_if_false @DRIV3_11168
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_11168
set_group_member $Players_Group {handle} 53@

:DRIV3_11168
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed 409
91@ = 1
94@ = 0
return 

:DRIV3_11204
return 

:DRIV3_11206
gosub @DRIV3_14024
if 
  93@ == 1
goto_if_false @DRIV3_11233
return 

:DRIV3_11233
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_11260
return 

:DRIV3_11260
if 
  100@ == 1
goto_if_false @DRIV3_11285
gosub @DRIV3_13410

:DRIV3_11285
if 
  107@ == 0
goto_if_false @DRIV3_11397
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11397
if 
  not is_char_dead 53@
goto_if_false @DRIV3_11397
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_11397
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_11397
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_11397
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_11397
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11880
if 
  110@ == 0
goto_if_false @DRIV3_11880
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_11873
if 
  112@ == 0
goto_if_false @DRIV3_11866
38@ = store_car_char_is_in $scplayer
39@ = get_maximum_number_of_passengers 38@
if 
  2 > 39@
goto_if_false @DRIV3_11859
clear_mission_audio MissionAudioSlot.Slot1
if 
  111@ == 0
goto_if_false @DRIV3_11611
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6402

:DRIV3_11528
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11554
wait 0
goto @DRIV3_11528

:DRIV3_11554
print_now 'FAR3_LC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11574
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11600
wait 0
goto @DRIV3_11574

:DRIV3_11600
clear_this_print 'FAR3_LC'

:DRIV3_11611
if 
  111@ == 1
goto_if_false @DRIV3_11719
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6400

:DRIV3_11636
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11662
wait 0
goto @DRIV3_11636

:DRIV3_11662
print_now 'FAR3_LA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11682
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11708
wait 0
goto @DRIV3_11682

:DRIV3_11708
clear_this_print 'FAR3_LA'

:DRIV3_11719
if 
  111@ == 2
goto_if_false @DRIV3_11827
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6401

:DRIV3_11744
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11770
wait 0
goto @DRIV3_11744

:DRIV3_11770
print_now 'FAR3_LB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11790
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11816
wait 0
goto @DRIV3_11790

:DRIV3_11816
clear_this_print 'FAR3_LB'

:DRIV3_11827
111@ += 1
if 
  111@ >= 3
goto_if_false @DRIV3_11859
111@ = 0

:DRIV3_11859
112@ = 1

:DRIV3_11866
goto @DRIV3_11880

:DRIV3_11873
112@ = 0

:DRIV3_11880
if 
  100@ == 0
goto_if_false @DRIV3_12023
if or
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  not locate_char_any_means_3d $scplayer {x} 62@ {y} 63@ {z} 64@ {xRadius} 600.0 {yRadius} 600.0 {zRadius} 600.0 {drawSphere} False
goto_if_false @DRIV3_12023
100@ = 1
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @DRIV3_12009
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:DRIV3_12009
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_12023
if 
  110@ == 0
goto_if_false @DRIV3_13408
if 
  109@ == 0
goto_if_false @DRIV3_13408
if 
  100@ == 0
goto_if_false @DRIV3_12333
if 
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV3_12285
if 
  does_blip_exist 123@
goto_if_false @DRIV3_12285
remove_blip 123@
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @DRIV3_12171
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:DRIV3_12171
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray
print 'DRI2_46' {time} 5000 {flag} 1
104@ = 1
if 
  not is_char_dead 40@
goto_if_false @DRIV3_12244
clear_char_relationship 40@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:DRIV3_12244
if 
  not is_char_dead 53@
goto_if_false @DRIV3_12278
clear_char_relationship 53@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:DRIV3_12278
100@ = 1

:DRIV3_12285
if 
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DRIV3_12333

:DRIV3_12333
if 
  108@ == 1
goto_if_false @DRIV3_13408
if 
  100@ == 1
goto_if_false @DRIV3_12539
if and
  $s7_rnd_1 >= 33
  47 > $s7_rnd_1
goto_if_false @DRIV3_12539
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_12539
if 
  not is_char_dead 40@
goto_if_false @DRIV3_12539
if 
  not is_char_dead 53@
goto_if_false @DRIV3_12539
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_12539
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_12539
if 
  $s7_rnd_1 == 33
goto_if_false @DRIV3_12532
132@ = 25
if 
  TIMERA > 10000
goto_if_false @DRIV3_12525
gosub @DRIV3_15514

:DRIV3_12525
goto @DRIV3_12539

:DRIV3_12532
gosub @DRIV3_15514

:DRIV3_12539
if 
  locate_char_any_means_3d $scplayer {x} 59@ {y} 60@ {z} 61@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DRIV3_13408
91@ = 0
92@ = 1
178@ = 0
set_player_control $player1 {state} False
switch_widescreen True
TIMERA = 0
TIMERB = 0

:DRIV3_12627
if 
  8000 > TIMERA
goto_if_false @DRIV3_13378
wait 0
if 
  178@ == 0
goto_if_false @DRIV3_12858
77@, 78@, 79@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 3.0 {yOffset} 8.0 {zOffset} 0.4
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_area 59@ {y} 60@ {z} 61@ {radius} 100.0 {clearParticles} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6409

:DRIV3_12761
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_12787
wait 0
goto @DRIV3_12761

:DRIV3_12787
print_now 'FAR3_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_12807
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_12833
wait 0
goto @DRIV3_12807

:DRIV3_12833
clear_this_print 'FAR3_NA'
178@ = 1
TIMERB = 0

:DRIV3_12858
if 
  178@ == 1
goto_if_false @DRIV3_13128
if 
  TIMERB > 500
goto_if_false @DRIV3_13128
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13128
77@, 78@, 79@ = get_offset_from_char_in_world_coords 40@ {xOffset} 3.0 {yOffset} -2.0 {zOffset} 0.5
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_12999
remove_char_from_group 40@

:DRIV3_12999
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_13020
task_leave_any_car 40@

:DRIV3_13020
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6430

:DRIV3_13031
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_13057
wait 0
goto @DRIV3_13031

:DRIV3_13057
print_now 'FAR3_NB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_13077
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_13103
wait 0
goto @DRIV3_13077

:DRIV3_13103
clear_this_print 'FAR3_NB'
TIMERB = 0
178@ = 2

:DRIV3_13128
if 
  178@ == 2
goto_if_false @DRIV3_13280
if 
  TIMERB > 500
goto_if_false @DRIV3_13280
178@ = 3
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13212
task_go_straight_to_coord 40@ {x} -2624.5701 {y} 1410.46 {z} 6.5 {speed} MoveState.Walk {time} -1

:DRIV3_13212
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13280
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13252
remove_char_from_group 53@

:DRIV3_13252
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_13280
task_leave_any_car 53@
TIMERB = 0

:DRIV3_13280
if 
  178@ == 3
goto_if_false @DRIV3_13371
if 
  TIMERB > 200
goto_if_false @DRIV3_13371
178@ = 4
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13364
task_go_straight_to_coord 53@ {x} -2625.5701 {y} 1409.46 {z} 6.5 {speed} MoveState.Walk {time} -1

:DRIV3_13364
TIMERB = 0

:DRIV3_13371
goto @DRIV3_12627

:DRIV3_13378
delete_char 40@
delete_char 53@
mark_car_as_no_longer_needed 38@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False

:DRIV3_13408
return 

:DRIV3_13410
if 
  100@ == 1
goto_if_false @DRIV3_14022
if 
  104@ == 0
goto_if_false @DRIV3_13688
if and
  110@ == 0
  109@ == 0
goto_if_false @DRIV3_13688
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV3_13688
104@ = 1
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_13544
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray
print 'DRI2_46' {time} 5000 {flag} 1

:DRIV3_13544
if 
  does_blip_exist 123@
goto_if_false @DRIV3_13565
remove_blip 123@

:DRIV3_13565
if 
  does_blip_exist 120@
goto_if_false @DRIV3_13586
remove_blip 120@

:DRIV3_13586
add_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13654
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
clear_char_relationship 40@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:DRIV3_13654
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13688
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
clear_char_relationship 53@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:DRIV3_13688
if 
  104@ == 1
goto_if_false @DRIV3_14022
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV3_14022
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13821
clear_char_relationship 40@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_13773
remove_char_from_group 40@

:DRIV3_13773
clear_char_tasks 40@
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_13812
set_group_member $Players_Group {handle} 40@
set_group_follow_status $Players_Group {state} True

:DRIV3_13812
set_char_relationship 40@ {relationshipType} RelationshipType.Like {pedType} PedType.Cop

:DRIV3_13821
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13909
clear_char_relationship 53@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13870
remove_char_from_group 53@

:DRIV3_13870
clear_char_tasks 53@
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13909
set_group_member $Players_Group {handle} 53@
set_group_follow_status $Players_Group {state} True

:DRIV3_13909
clear_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate
104@ = 0
TIMERA = 0
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_14001
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_14001
108@ = 1

:DRIV3_14001
if 
  does_blip_exist 128@
goto_if_false @DRIV3_14022
remove_blip 128@

:DRIV3_14022
return 

:DRIV3_14024
if 
  not is_char_dead 40@
goto_if_false @DRIV3_14538
if 
  110@ == 0
goto_if_false @DRIV3_14178
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_14178
print_now 'DRI2_3' {time} 5000 {flag} 1
if 
  does_blip_exist 120@
goto_if_false @DRIV3_14114
remove_blip 120@

:DRIV3_14114
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14135
remove_blip 123@

:DRIV3_14135
if 
  does_blip_exist 127@
goto_if_false @DRIV3_14156
remove_blip 127@

:DRIV3_14156
121@ = add_blip_for_char 40@
set_blip_as_friendly 121@ {state} True
110@ = 1

:DRIV3_14178
if 
  110@ == 1
goto_if_false @DRIV3_14531
if 
  locate_char_any_means_char_3d $scplayer {target} 40@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DRIV3_14531
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_14259
set_group_member $Players_Group {handle} 40@

:DRIV3_14259
110@ = 0
remove_blip 121@
if 
  109@ == 0
goto_if_false @DRIV3_14531
if 
  100@ == 1
goto_if_false @DRIV3_14479
if 
  104@ == 0
goto_if_false @DRIV3_14403
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_14396
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_14396
108@ = 1

:DRIV3_14396
goto @DRIV3_14472

:DRIV3_14403
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_14435
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray

:DRIV3_14435
print_now 'DRI2_46' {time} 5000 {flag} 1
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14472
remove_blip 123@

:DRIV3_14472
goto @DRIV3_14531

:DRIV3_14479
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_14515
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56

:DRIV3_14515
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_14531
goto @DRIV3_14577

:DRIV3_14538
94@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_14577
return 

:DRIV3_14579
if 
  not is_char_dead 53@
goto_if_false @DRIV3_15464
if 
  109@ == 0
goto_if_false @DRIV3_14754
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_14754
print_now 'DRI2_32' {time} 5000 {flag} 1
if 
  does_blip_exist 120@
goto_if_false @DRIV3_14669
remove_blip 120@

:DRIV3_14669
if 
  does_blip_exist 127@
goto_if_false @DRIV3_14690
remove_blip 127@

:DRIV3_14690
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14711
remove_blip 123@

:DRIV3_14711
if 
  does_blip_exist 116@
goto_if_false @DRIV3_14732
remove_blip 116@

:DRIV3_14732
122@ = add_blip_for_char 53@
set_blip_as_friendly 122@ {state} True
109@ = 1

:DRIV3_14754
if 
  109@ == 1
goto_if_false @DRIV3_15457
if 
  not is_char_dead 53@
goto_if_false @DRIV3_15411
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DRIV3_15404
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_14851
set_group_member $Players_Group {handle} 53@

:DRIV3_14851
109@ = 0
remove_blip 122@
if 
  110@ == 0
goto_if_false @DRIV3_15141
if 
  91@ == 1
goto_if_false @DRIV3_15141
if 
  100@ == 1
goto_if_false @DRIV3_15089
if 
  104@ == 0
goto_if_false @DRIV3_15013
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_15006
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_15006
108@ = 1

:DRIV3_15006
goto @DRIV3_15082

:DRIV3_15013
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_15045
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray

:DRIV3_15045
print_now 'DRI2_46' {time} 5000 {flag} 1
if 
  does_blip_exist 123@
goto_if_false @DRIV3_15082
remove_blip 123@

:DRIV3_15082
goto @DRIV3_15141

:DRIV3_15089
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_15125
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56

:DRIV3_15125
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_15141
if 
  89@ == 1
goto_if_false @DRIV3_15404
if and
  $s7_rnd_1 >= 5
  8 > $s7_rnd_1
goto_if_false @DRIV3_15220
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15220
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0

:DRIV3_15220
if and
  $s7_rnd_1 >= 9
  12 > $s7_rnd_1
goto_if_false @DRIV3_15281
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15281
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0

:DRIV3_15281
if and
  $s7_rnd_1 >= 15
  24 > $s7_rnd_1
goto_if_false @DRIV3_15336
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15336
116@ = add_blip_for_coord 71@ {y} 72@ {z} 73@

:DRIV3_15336
if 
  89@ == 1
goto_if_false @DRIV3_15404
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_15404
89@ = 0
93@ = 1
print_now 'FAR3_FD' {time} 5000 {flag} 1
return 

:DRIV3_15404
goto @DRIV3_15457

:DRIV3_15411
90@ = 0
89@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_15457
goto @DRIV3_15512

:DRIV3_15464
90@ = 0
89@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 
return 

:DRIV3_15512
return 

:DRIV3_15514
if 
  106@ == 0
goto_if_false @DRIV3_15554
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 133@(132@,40i)
106@ = 1

:DRIV3_15554
if 
  106@ == 1
goto_if_false @DRIV3_15821
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_15821
play_mission_audio MissionAudioSlot.Slot1
print_now $flag_phone_dialog_driv3(132@,40s) {time} 10000 {flag} 1
if 
  $s7_rnd_1 == 0
goto_if_false @DRIV3_15630
102@ = 1

:DRIV3_15630
if 
  $s7_rnd_1 == 5
goto_if_false @DRIV3_15684
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15684
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0

:DRIV3_15684
if 
  $s7_rnd_1 == 8
goto_if_false @DRIV3_15714
remove_blip 127@
102@ = 1

:DRIV3_15714
if 
  $s7_rnd_1 == 11
goto_if_false @DRIV3_15752
127@ = add_blip_for_coord -1772.0 {y} 152.0 {z} 152.0

:DRIV3_15752
if 
  $s7_rnd_1 == 14
goto_if_false @DRIV3_15782
102@ = 1
remove_blip 127@

:DRIV3_15782
if 
  $s7_rnd_1 == 18
goto_if_false @DRIV3_15814
116@ = add_blip_for_coord 71@ {y} 72@ {z} 73@

:DRIV3_15814
106@ = 2

:DRIV3_15821
if 
  106@ == 2
goto_if_false @DRIV3_15891
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_15891
TIMERA = 0
106@ = 0
clear_this_print $flag_phone_dialog_driv3(132@,40s)
132@ += 1
$s7_rnd_1 += 1

:DRIV3_15891
return 

:DRIV3_15893
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $synd_contact_blip
print_with_number_big 'M_PASSS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
award_player_mission_respect 25
$flag_synd_mission_counter += 1
register_mission_passed 'FAR_3'
player_made_progress 1
remove_blip $synd_contact_blip
$synd_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $synd_blip_icon
set_int_stat StatId.PassedFarlie3 {value} 1
return 

:DRIV3_15991
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV3_16009
$onmission = 0
$flag_is_farlie3_running = 0
if 
  is_player_playing $player1
goto_if_false @DRIV3_16046
shut_char_up_for_scripted_speech $scplayer {state} False

:DRIV3_16046
set_police_ignore_player $player1 {state} False
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
remove_pickup 55@
mark_model_as_no_longer_needed 409
131@ = 0

:DRIV3_16092
if 
  3 > 131@
goto_if_false @DRIV3_16133
mark_char_as_no_longer_needed 42@(131@,9i)
131@ += 1
goto @DRIV3_16092

:DRIV3_16133
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
remove_char_elegantly 40@
remove_char_elegantly 53@
unload_special_character 1
unload_special_character 2
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 34@
mark_model_as_no_longer_needed 463
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 127@
remove_blip 118@
remove_blip 119@
remove_blip 128@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 426
clear_onscreen_timer $timer_countdown_farlie3
clear_onscreen_counter $int_distance_player_girl
$2652 = add_short_range_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 67---------------
// Originally: Zeroing In

:STEAL1
script_name 'STEAL1'
gosub @STEAL1_581
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL1_38
gosub @STEAL1_7629

:STEAL1_38
gosub @STEAL1_7718
terminate_this_script 

:STEAL1_47
request_model 558
request_model 41
load_all_models_now 

:STEAL1_58
if or
  not has_model_loaded 558
  not has_model_loaded 41
goto_if_false @STEAL1_89
wait 0
goto @STEAL1_58

:STEAL1_89
suppress_car_model 558
438@ = -2027.335
439@ = 326.0038
440@ = 34.2344
441@ = 88.2674
445@ = -2025.443
446@ = 323.5849
447@ = 34.1015
448@ = 77.8368
clear_area 438@ {y} 439@ {z} 440@ {radius} 5.0 {clearParticles} True
435@ = create_car 558 {x} 438@ {y} 439@ {z} 440@
set_car_heading 435@ {heading} 441@
lock_car_doors 435@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_only_damaged_by_player 435@ {state} True
443@ = create_char PedType.CivFemale {modelId} 41 {x} 445@ {y} 446@ {z} 447@
set_char_heading 443@ {heading} 448@
set_load_collision_for_car_flag 435@ {state} False
436@ = add_blip_for_car_old 435@ {color} BlipColor.Yellow {display} BlipDisplay.MarkerOnly
change_car_colour 435@ {color1} 5 {color2} 1
return 

:STEAL1_287
mark_model_as_no_longer_needed 558
return 
$mod_garage_blips = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL1_314
request_model 602

:STEAL1_319
if 
  not has_model_loaded 602
goto_if_false @STEAL1_346
wait 0
goto @STEAL1_319

:STEAL1_346
450@ = -2043.911
451@ = 179.1213
452@ = 27.8507
453@ = 270.0
clear_area 450@ {y} 451@ {z} 452@ {radius} 5.0 {clearParticles} True
449@ = create_car 602 {x} 450@ {y} 451@ {z} 452@
set_car_heading 449@ {heading} 453@
warp_char_into_car $scplayer {vehicle} 449@
return 

:STEAL1_439
load_special_character 1 {modelName} 'ZERO'
request_animation "CAR_CHAT"

:STEAL1_464
if or
  not has_special_character_loaded 1
  not has_animation_loaded "CAR_CHAT"
goto_if_false @STEAL1_502
wait 0
goto @STEAL1_464

:STEAL1_502
455@ = -2034.566
456@ = 175.2188
457@ = 27.8516
458@ = 13.516
clear_area 455@ {y} 456@ {z} 457@ {radius} 5.0 {clearParticles} True
454@ = create_char PedType.CivMale {modelId} 290 {x} 455@ {y} 456@ {z} 457@
return 

:STEAL1_581
register_mission_given 
$onmission = 1
wait 0
34@ = 0
36@ = 0
37@ = 0
35@ = 0
38@ = 1
39@ = 1
40@ = 0
50@ = 0
90@ = 500
$st1_route_nx = 57
$7401 = 2
$st1_route = 3
$st1_final_dest = 35.0
51@ = 0
52@ = 0
400@ = 0
404@ = 1
402@ = 1
403@ = 2
401@ = 0
60@ = -16776961
61@ = -8355496
43@ = -16776961
44@ = -12566358
45@ = -8355496
46@ = 0
47@ = 0
62@ = 255
63@ = 0
64@ = 0
65@ = 255
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 16777216
71@ = 65536
72@ = 256
73@ = 1
119@ = -2711.3
120@ = 118.81
121@ = 3.99
122@ = 2.07
123@ = 178.25
352@ = -2033.175
353@ = 178.6755
354@ = 27.8516
102@ = -2708.79
108@ = -9.59
114@ = 3.98
304@ = -2689.74
310@ = 91.48
316@ = 5.04
305@ = -2692.04
311@ = 91.71
317@ = 4.39
307@ = -2904.51
313@ = 1181.5601
319@ = 13.71
308@ = -2916.9199
314@ = 1182.0601
320@ = 13.59
309@ = -2917.76
315@ = 1176.9301
321@ = 13.67
322@ = -2899.05
324@ = 1170.08
326@ = 13.03
323@ = -2898.6599
325@ = 1166.74
327@ = 13.21
328@ = 0.0
334@ = 0.0
340@ = 0.0
329@ = 0.0
335@ = 0.0
341@ = 0.0
330@ = 0.0
336@ = 0.0
342@ = 0.0
331@ = 0.0
337@ = 0.0
343@ = 0.0
332@ = 0.0
338@ = 0.0
344@ = 0.0
333@ = 0.0
339@ = 0.0
345@ = 0.0
405@ = -2704.72
415@ = 113.56
425@ = 5.52
406@ = -2701.1201
416@ = 100.21
426@ = 5.47
407@ = -2699.8401
417@ = 94.03
427@ = 6.41
408@ = -2710.6001
418@ = 126.88
428@ = 5.13
409@ = 0.0
419@ = 0.0
429@ = 0.0
set_lvar_text_label 372@s = 'STL1_AA'
set_lvar_text_label 374@s = 'STL1_AB'
set_lvar_text_label 376@s = 'STL1_AC'
set_lvar_text_label 378@s = 'STL1_AD'
set_lvar_text_label 380@s = 'STL1_AE'
set_lvar_int_to_constant 384@ = 20601
set_lvar_int_to_constant 385@ = 20602
set_lvar_int_to_constant 386@ = 20603
set_lvar_int_to_constant 387@ = 20604
set_lvar_int_to_constant 388@ = 20600
load_mission_text 'STEAL1'
85@ = 0
86@ = 1
48@ = 2
force_weather_now WeatherType.SunnySf
set_area_visible 1
load_cutscene 'STEAL_1'

:STEAL1_1706
if 
  not has_cutscene_loaded 
goto_if_false @STEAL1_1730
wait 0
goto @STEAL1_1706

:STEAL1_1730
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL1_1739
if 
  not has_cutscene_finished 
goto_if_false @STEAL1_1763
wait 0
goto @STEAL1_1739

:STEAL1_1763
do_fade 0 {direction} Fade.Out

:STEAL1_1769
if 
  get_fading_status 
goto_if_false @STEAL1_1793
wait 0
goto @STEAL1_1769

:STEAL1_1793
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False

:STEAL1_1806
wait 0
if 
  400@ <> 0
goto_if_false @STEAL1_2149
if 
  401@ == 0
goto_if_false @STEAL1_1874
if 
  has_mission_audio_loaded 403@
goto_if_false @STEAL1_1867
clear_mission_audio 403@

:STEAL1_1867
401@ = 1

:STEAL1_1874
if 
  401@ == 1
goto_if_false @STEAL1_1911
load_mission_audio 402@ {audioId} 383@(400@,17i)
401@ = 2

:STEAL1_1911
if 
  401@ == 2
goto_if_false @STEAL1_1971
if 
  has_mission_audio_loaded 402@
goto_if_false @STEAL1_1971
play_mission_audio 402@
print_now 370@(400@,6s) {time} 10000 {flag} 1
401@ = 3

:STEAL1_1971
if 
  401@ == 3
goto_if_false @STEAL1_2149
if 
  has_mission_audio_finished 402@
goto_if_false @STEAL1_2088
clear_this_print 370@(400@,6s)
if 
  402@ == 1
goto_if_false @STEAL1_2053
402@ = 2
403@ = 1
goto @STEAL1_2067

:STEAL1_2053
402@ = 1
403@ = 2

:STEAL1_2067
400@ = 0
401@ = 0
goto @STEAL1_2149

:STEAL1_2088
if 
  not has_mission_audio_loaded 403@
goto_if_false @STEAL1_2149
if 
  60 > 400@
goto_if_false @STEAL1_2149
set_lvar_int_to_lvar_int 404@ = 400@
404@ += 1
load_mission_audio 403@ {audioId} 383@(404@,17i)

:STEAL1_2149
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL1_2171
goto @STEAL1_7647

:STEAL1_2171
if 
  not is_char_dead $scplayer
goto_if_false @STEAL1_2295
if 
  3 > 34@
goto_if_false @STEAL1_2295
if 
  35@ == 0
goto_if_false @STEAL1_2254
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL1_2254
449@ = store_car_char_is_in $scplayer
35@ = 1

:STEAL1_2254
if 
  35@ == 1
goto_if_false @STEAL1_2295
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL1_2295
35@ = 0

:STEAL1_2295
if 
  34@ == 0
goto_if_false @STEAL1_3936
if 
  37@ == 0
goto_if_false @STEAL1_2769
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
open_garage 'HBGDSFS'
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2037.601 {y} 183.5734 {z} 30.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.017 {y} 182.7901 {z} 30.1884 {switchStyle} SwitchType.JumpCut
gosub @STEAL1_314
gosub @STEAL1_439
gosub @STEAL1_47
gosub @STEAL1_7962
load_scene_in_direction -2029.9041 {y} 179.7978 {z} 29.0075 {heading} 130.0
do_fade 500 {direction} Fade.In

:STEAL1_2479
if 
  get_fading_status 
goto_if_false @STEAL1_2503
wait 0
goto @STEAL1_2479

:STEAL1_2503
if and
  not is_car_dead 449@
  not is_char_dead 454@
goto_if_false @STEAL1_2769
if 
  401@ == 0
goto_if_false @STEAL1_2769
400@ = 1
366@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2032.55 {y} 176.89 {z} 28.95 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "CAR_TALKM_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_LOOP" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 366@
perform_sequence_task 454@ {sequence} 366@
task_car_drive_to_coord $scplayer {vehicle} 449@ {x} 352@ {y} 353@ {z} 354@ {speed} 12.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
80@ = get_game_timer 
37@ = 1

:STEAL1_2769
if 
  37@ > 0
goto_if_false @STEAL1_2859
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2859
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL1_2859
80@ -= 10000
37@ = 5

:STEAL1_2859
if 
  37@ == 1
goto_if_false @STEAL1_2954
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2954
if 
  401@ == 0
goto_if_false @STEAL1_2954
400@ = 2
80@ = get_game_timer 
37@ = 2

:STEAL1_2954
if 
  37@ == 2
goto_if_false @STEAL1_3100
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3100
if 
  401@ == 0
goto_if_false @STEAL1_3100
400@ = 3
80@ = get_game_timer 
set_fixed_camera_position -2031.2419 {y} 175.4691 {z} 29.0587 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.501 {y} 176.4334 {z} 29.007 {switchStyle} SwitchType.JumpCut
37@ = 3

:STEAL1_3100
if 
  37@ == 3
goto_if_false @STEAL1_3382
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3382
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3382
if 
  401@ == 0
goto_if_false @STEAL1_3382
clear_prints 
do_fade 100 {direction} Fade.Out

:STEAL1_3205
if 
  get_fading_status 
goto_if_false @STEAL1_3229
wait 0
goto @STEAL1_3205

:STEAL1_3229
set_fixed_camera_position -2022.5179 {y} 322.6858 {z} 34.6179 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2023.382 {y} 323.1579 {z} 34.7936 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -2022.5179 {y} 322.6858 {z} 34.6179 {heading} 50.0
do_fade 100 {direction} Fade.In

:STEAL1_3308
if 
  get_fading_status 
goto_if_false @STEAL1_3332
wait 0
goto @STEAL1_3308

:STEAL1_3332
400@ = 4
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3382
task_enter_car_as_driver 443@ {vehicle} 435@ {time} -1
80@ = get_game_timer 
37@ = 4

:STEAL1_3382
if 
  37@ == 4
goto_if_false @STEAL1_3560
if 
  not is_car_dead 435@
goto_if_false @STEAL1_3560
if 
  not is_char_dead 443@
goto_if_false @STEAL1_3560
if 
  is_char_sitting_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_3560
if 
  401@ == 0
goto_if_false @STEAL1_3560
400@ = 5
80@ = get_game_timer 
369@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 435@ {x} 125@ {y} 185@ {z} 245@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 435@ {x} 126@ {y} 186@ {z} 246@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 369@
perform_sequence_task 443@ {sequence} 369@
37@ = 5

:STEAL1_3560
if 
  37@ == 5
goto_if_false @STEAL1_3936
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3936
if 
  401@ == 0
goto_if_false @STEAL1_3936
clear_prints 
do_fade 500 {direction} Fade.Out

:STEAL1_3645
if 
  get_fading_status 
goto_if_false @STEAL1_3669
wait 0
goto @STEAL1_3645

:STEAL1_3669
close_garage 'HBGDSFS'
clear_char_tasks $scplayer
if 
  not is_car_dead 449@
goto_if_false @STEAL1_3776
load_scene -2028.827 {y} 178.4434 {z} 27.8516
warp_char_from_car_to_coord $scplayer {x} -2030.672 {y} 179.1596 {z} 28.9611
set_car_coordinates 449@ {x} -2028.827 {y} 178.4434 {z} 27.8516
set_car_heading 449@ {heading} 266.8448
warp_char_into_car $scplayer {vehicle} 449@

:STEAL1_3776
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29800

:STEAL1_3783
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL1_3809
wait 0
goto @STEAL1_3783

:STEAL1_3809
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3857
if 
  not is_char_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_3857
warp_char_into_car 443@ {vehicle} 435@

:STEAL1_3857
remove_animation "CAR_CHAT"
restore_camera_jumpcut 
set_camera_behind_player 
delete_char 454@
unload_special_character 1
mark_model_as_no_longer_needed 602
switch_widescreen False
do_fade 500 {direction} Fade.In

:STEAL1_3898
if 
  get_fading_status 
goto_if_false @STEAL1_3922
wait 0
goto @STEAL1_3898

:STEAL1_3922
set_player_control $player1 {state} True
34@ = 1

:STEAL1_3936
if 
  34@ == 1
goto_if_false @STEAL1_4078
if and
  not is_char_dead $scplayer
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_4078
if 
  is_char_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_4078
set_player_control $player1 {state} True
print 'STL1_03' {time} 7000 {flag} 1
add_stuck_car_check_with_warp 435@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
task_car_drive_to_coord 443@ {vehicle} 435@ {x} 126@ {y} 186@ {z} 246@ {speed} 35.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
34@ = 2

:STEAL1_4078
if 
  is_car_dead 435@
goto_if_false @STEAL1_4119
clear_prints 
print_now 'STL1_07' {time} 5000 {flag} 1
goto @STEAL1_7629

:STEAL1_4119
if 
  34@ == 2
goto_if_false @STEAL1_5945
if and
  not is_car_dead 435@
  not is_char_dead 443@
  not is_char_dead $scplayer
goto_if_false @STEAL1_5922
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @STEAL1_4195
40@ = 3
set_car_temp_action 435@ {actionId} TempAction.HandbrakeStraight {time} 2000

:STEAL1_4195
if 
  locate_char_any_means_char_3d $scplayer {target} 443@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @STEAL1_4269
if 
  45.0 > $st1_final_dest
goto_if_false @STEAL1_4262
$st1_final_dest += 0.1

:STEAL1_4262
goto @STEAL1_4300

:STEAL1_4269
if 
  $st1_final_dest > 30.0
goto_if_false @STEAL1_4300
$st1_final_dest -= 0.1

:STEAL1_4300
set_car_cruise_speed 435@ {maxSpeed} $st1_final_dest
442@ = get_car_speed 435@
438@, 439@, 440@ = get_car_coordinates 435@
if 
  is_int_var_greater_than_int_var $st1_route_nx > $7401
goto_if_false @STEAL1_4462
if 
  locate_char_in_car_3d 443@ {x} 124@($7401,60f) {y} 184@($7401,60f) {z} 244@($7401,60f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @STEAL1_4455
$7401 += 1
$st1_route += 1
task_car_drive_to_coord 443@ {vehicle} 435@ {x} 124@($7401,60f) {y} 184@($7401,60f) {z} 244@($7401,60f) {speed} $st1_final_dest {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:STEAL1_4455
goto @STEAL1_4655

:STEAL1_4462
if 
  locate_char_in_car_3d 443@ {x} 124@($7401,60f) {y} 184@($7401,60f) {z} 244@($7401,60f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL1_4545
task_car_drive_wander 443@ {vehicle} 435@ {speed} 35.0 {drivingMode} DrivingMode.AvoidCars
$7401 += 1
$st1_route += 1

:STEAL1_4545
if 
  is_int_var_greater_than_int_var $7401 > $st1_route_nx
goto_if_false @STEAL1_4655
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_4655
349@, 350@, 351@ = get_char_coordinates $scplayer
87@ = get_distance_between_coords_2d 438@ {fromY} 439@ {toX} 349@ {toZ} 350@
if 
  87@ > 200.0
goto_if_false @STEAL1_4655
print_now 'STL1_09' {time} 5000 {flag} 1
goto @STEAL1_7629

:STEAL1_4655
if and
  40@ == 2
  49@ == 0
goto_if_false @STEAL1_4748
95@ = get_game_timer 
if 
  locate_char_any_means_3d $scplayer {x} 438@ {y} 439@ {z} 440@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @STEAL1_4741
49@ = 1
goto @STEAL1_4748

:STEAL1_4741
49@ = 0

:STEAL1_4748
if 
  49@ == 1
goto_if_false @STEAL1_5043
if 
  442@ > 10.0
goto_if_false @STEAL1_5043
357@, 358@, 359@ = get_car_speed_vector 435@
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 357@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 358@
set_lvar_float_to_lvar_float 361@ = 364@
add_float_lvar_to_float_lvar 361@ += 365@
360@ = sqrt 361@
355@ = get_car_forward_x 435@
356@ = get_car_forward_y 435@
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 355@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 356@
set_lvar_float_to_lvar_float 362@ = 364@
add_float_lvar_to_float_lvar 362@ += 365@
set_lvar_float_to_lvar_float 364@ = 362@
mult_float_lvar_by_float_lvar 364@ *= 362@
set_lvar_float_to_lvar_float 365@ = 361@
sub_float_lvar_from_float_lvar 365@ -= 364@
363@ = sqrt 365@
set_lvar_float_to_lvar_float 364@ = 363@
div_float_lvar_by_float_lvar 364@ /= 362@
if 
  364@ > 2.2
goto_if_false @STEAL1_5029
set_car_temp_action 435@ {actionId} TempAction.HandbrakeStraight {time} 2000
40@ = 3
49@ = 0
goto @STEAL1_5043

:STEAL1_5029
40@ = 2
49@ = 0

:STEAL1_5043
if 
  40@ == 3
goto_if_false @STEAL1_5175
if 
  not is_car_dead 435@
goto_if_false @STEAL1_5175
clear_prints 
clear_char_tasks 443@
set_car_cruise_speed 435@ {maxSpeed} 0.0
print_now 'STL1_05' {time} 5000 {flag} 1
remove_stuck_car_check 435@
remove_blip 436@
436@ = add_blip_for_car 435@
set_blip_as_friendly 436@ {state} True
if 
  is_car_stopped 435@
goto_if_false @STEAL1_5175
task_leave_car_and_flee 443@ {vehicle} 435@ {x} 438@ {y} 439@ {z} 440@
34@ = 3

:STEAL1_5175
if 
  40@ == 0
goto_if_false @STEAL1_5326
remove_blip 436@
445@, 446@, 447@ = get_car_coordinates 435@
436@ = add_blip_for_coord 445@ {y} 446@ {z} 447@
if 
  not locate_char_any_means_3d $scplayer {x} 438@ {y} 439@ {z} 440@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @STEAL1_5272
play_mission_audio MissionAudioSlot.Slot3

:STEAL1_5272
62@ = 255
63@ = 0
64@ = 0
65@ = 255
gosub @STEAL1_7781
80@ = get_game_timer 
84@ = get_game_timer 
40@ = 1

:STEAL1_5326
if 
  40@ == 1
goto_if_false @STEAL1_5767
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
set_lvar_int_to_lvar_int 83@ = 81@
sub_int_lvar_from_int_lvar 83@ -= 84@
if 
  83@ > 1000
goto_if_false @STEAL1_5441
if 
  52@ == 0
goto_if_false @STEAL1_5441
print 'STL1_03' {time} 8000 {flag} 1
52@ = 1

:STEAL1_5441
if 
  82@ > 30
goto_if_false @STEAL1_5471
gosub @STEAL1_7781
80@ = get_game_timer 

:STEAL1_5471
if 
  not is_char_dead 443@
goto_if_false @STEAL1_5691
if or
  locate_char_any_means_2d $scplayer {x} 445@ {y} 446@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  locate_char_in_car_char_3d $scplayer {target} 443@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @STEAL1_5614
if 
  51@ == 0
goto_if_false @STEAL1_5582
print_help 'STL1_04'
51@ = 1

:STEAL1_5582
remove_blip 436@
80@ = get_game_timer 
436@ = add_blip_for_car 435@
49@ = 0
40@ = 2

:STEAL1_5614
if 
  locate_char_in_car_char_3d $scplayer {target} 443@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @STEAL1_5691
if 
  51@ == 1
goto_if_false @STEAL1_5691
print_now 'STL1_02' {time} 12000 {flag} 1
51@ = 2

:STEAL1_5691
if 
  128 > 65@
goto_if_false @STEAL1_5725
print_now 'STL1_10' {time} 100 {flag} 1

:STEAL1_5725
if 
  is_int_lvar_equal_to_int_lvar 65@ == 69@
goto_if_false @STEAL1_5767
print_now 'STL1_09' {time} 7000 {flag} 1
goto @STEAL1_7629

:STEAL1_5767
if 
  40@ == 2
goto_if_false @STEAL1_5922
if 
  not is_car_dead 435@
goto_if_false @STEAL1_5922
if 
  87@ > 200.0
goto_if_false @STEAL1_5829
40@ = 0

:STEAL1_5829
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 2000
goto_if_false @STEAL1_5892
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_5892
40@ = 0

:STEAL1_5892
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_5922
40@ = 0
goto @STEAL1_5922

:STEAL1_5922
if 
  is_char_dead 443@
goto_if_false @STEAL1_5945
34@ = 3

:STEAL1_5945
if 
  34@ == 3
goto_if_false @STEAL1_7397
if and
  not is_car_dead 435@
  not is_char_dead $scplayer
goto_if_false @STEAL1_7397
if 
  50@ == 0
goto_if_false @STEAL1_6016
lock_car_doors 435@ {lockStatus} CarLock.Unlocked
50@ = 1

:STEAL1_6016
if 
  50@ == 1
goto_if_false @STEAL1_6140
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6140
remove_blip 436@
print_now 'STL1_06' {time} 5000 {flag} 1
53@ = add_blip_for_coord 352@ {y} 353@ {z} 354@
change_garage_type 'HBGDSFS' {type} GarageType.ForScriptToOpenAndClose
request_car_recording 171

:STEAL1_6106
if 
  not has_car_recording_been_loaded 171
goto_if_false @STEAL1_6133
wait 0
goto @STEAL1_6106

:STEAL1_6133
50@ = 2

:STEAL1_6140
if 
  50@ == 2
goto_if_false @STEAL1_6425
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6425
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6425
if 
  locate_char_in_car_3d $scplayer {x} 352@ {y} 353@ {z} 354@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL1_6425
if 
  is_char_sitting_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6425
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2031.2419 {y} 175.4691 {z} 29.0587 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.501 {y} 176.4334 {z} 29.007 {switchStyle} SwitchType.JumpCut
open_garage 'HBGDSFS'
remove_blip 53@
352@ = -2043.911
353@ = 179.1213
354@ = 27.8507
437@ = get_car_health 435@
437@ /= 10
437@ *= 100
90@ = 2000
add_int_lvar_to_int_lvar 90@ += 437@
50@ = 21

:STEAL1_6425
if 
  50@ == 21
goto_if_false @STEAL1_6565
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6565
if 
  is_garage_open 'HBGDSFS'
goto_if_false @STEAL1_6565
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
start_playback_recorded_car 435@ {path} 171
set_fixed_camera_position -2037.601 {y} 183.5734 {z} 30.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.017 {y} 182.7901 {z} 30.1884 {switchStyle} SwitchType.JumpCut
50@ = 3

:STEAL1_6565
if 
  50@ == 3
goto_if_false @STEAL1_6680
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6680
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6680
if 
  locate_stopped_char_in_car_3d $scplayer {x} 352@ {y} 353@ {z} 354@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @STEAL1_6680
close_garage 'HBGDSFS'
clear_prints 
50@ = 32

:STEAL1_6680
if 
  50@ == 31
goto_if_false @STEAL1_6769
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6769
367@ = open_sequence_task 
task_leave_car -1 {vehicle} 435@
task_go_straight_to_coord -1 {x} -2035.4709 {y} 176.6342 {z} 27.8359 {speed} MoveState.Walk {time} -2
close_sequence_task 367@
perform_sequence_task $scplayer {sequence} 367@
50@ = 32

:STEAL1_6769
if 
  50@ == 32
goto_if_false @STEAL1_6852
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6852
close_garage 'HBGDSFS'
do_fade 1500 {direction} Fade.Out

:STEAL1_6821
if 
  get_fading_status 
goto_if_false @STEAL1_6845
wait 0
goto @STEAL1_6821

:STEAL1_6845
50@ = 41

:STEAL1_6852
if 
  50@ == 41
goto_if_false @STEAL1_7271
set_player_control $player1 {state} False
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 1
459@, 460@, 461@ = get_char_coordinates $scplayer
462@ = get_char_heading $scplayer
do_fade 500 {direction} Fade.Out

:STEAL1_6918
if 
  get_fading_status 
goto_if_false @STEAL1_6960
wait 0
if 
  not is_player_playing $player1
goto_if_false @STEAL1_6953
terminate_this_script 

:STEAL1_6953
goto @STEAL1_6918

:STEAL1_6960
load_scene_in_direction -2690.908 {y} 206.6429 {z} 7.2879 {heading} 88.2793
set_char_coordinates $scplayer {x} -2691.1641 {y} 206.6478 {z} 3.3359
set_fixed_camera_position -2689.916 {y} 206.5855 {z} 7.399 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2690.908 {y} 206.6429 {z} 7.2879 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
print_now 'JAP_MOD' {time} 6000 {flag} 1
wait 6000
print_now 'WANG_C' {time} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:STEAL1_7109
if 
  get_fading_status 
goto_if_false @STEAL1_7151
wait 0
if 
  not is_player_playing $player1
goto_if_false @STEAL1_7144
terminate_this_script 

:STEAL1_7144
goto @STEAL1_7109

:STEAL1_7151
load_scene_in_direction 459@ {y} 460@ {z} 461@ {heading} 462@
461@ -= 1.0
set_char_coordinates $scplayer {x} 459@ {y} 460@ {z} 461@
set_char_heading $scplayer {heading} 462@
do_fade 500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
activate_garage 'MDS1SFS'
remove_blip $mod_garage_blips
$mod_garage_blips = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$japcar_mod_garage_open = 1
50@ = 4

:STEAL1_7271
if 
  50@ == 4
goto_if_false @STEAL1_7397
if 
  is_garage_closed 'HBGDSFS'
goto_if_false @STEAL1_7397
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2032.4709 {y} 176.6342 {z} 27.8359
delete_car 435@
set_char_heading $scplayer {heading} 267.9
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:STEAL1_7366
if 
  get_fading_status 
goto_if_false @STEAL1_7390
wait 0
goto @STEAL1_7366

:STEAL1_7390
goto @STEAL1_7647

:STEAL1_7397
if 
  not is_char_dead $scplayer
goto_if_false @STEAL1_7622
if and
  50@ > 1
  4 > 50@
goto_if_false @STEAL1_7622
if 
  not is_car_dead 435@
goto_if_false @STEAL1_7622
if 
  35@ == 0
goto_if_false @STEAL1_7553
print_now 'STL1_11' {time} 100 {flag} 1
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_7553
remove_blip 436@
remove_blip 53@
print_now 'STL1_06' {time} 5000 {flag} 1
53@ = add_blip_for_coord 352@ {y} 353@ {z} 354@
35@ = 1

:STEAL1_7553
if 
  35@ == 1
goto_if_false @STEAL1_7622
if 
  not is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_7622
remove_blip 53@
remove_blip 436@
436@ = add_blip_for_car 435@
set_blip_as_friendly 436@ {state} True
35@ = 0

:STEAL1_7622
goto @STEAL1_1806

:STEAL1_7629
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL1_7647
$flag_steal_mission_counter += 1
switch_car_generator $sw6_car_gen1 {amount} 101
register_mission_passed 'STEAL_1'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
clear_wanted_level $player1
return 

:STEAL1_7718
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 436@
remove_blip 53@
remove_blip 436@
release_weather 
delete_char 443@
delete_car 435@
gosub @STEAL1_287
mark_model_as_no_longer_needed 602
mark_model_as_no_longer_needed 41
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:STEAL1_7781
if 
  255 > 63@
goto_if_false @STEAL1_7814
63@ += 1
64@ += 1

:STEAL1_7814
if 
  63@ == 255
goto_if_false @STEAL1_7840
65@ -= 1

:STEAL1_7840
set_lvar_int_to_lvar_int 74@ = 62@
mult_int_lvar_by_int_lvar 74@ *= 70@
set_lvar_int_to_lvar_int 75@ = 63@
mult_int_lvar_by_int_lvar 75@ *= 71@
set_lvar_int_to_lvar_int 76@ = 64@
mult_int_lvar_by_int_lvar 76@ *= 72@
set_lvar_int_to_lvar_int 77@ = 65@
mult_int_lvar_by_int_lvar 77@ *= 73@
set_lvar_int_to_lvar_int 78@ = 74@
add_int_lvar_to_int_lvar 78@ += 75@
set_lvar_int_to_lvar_int 79@ = 76@
add_int_lvar_to_int_lvar 79@ += 77@
set_lvar_int_to_lvar_int 60@ = 78@
add_int_lvar_to_int_lvar 60@ += 79@
change_blip_colour 436@ {color} 60@
return 

:STEAL1_7962
124@ = -2017.001
184@ = 322.4644
244@ = 34.7593
125@ = -2036.439
185@ = 322.4642
245@ = 34.0156
126@ = -2148.5049
186@ = 227.5995
246@ = 34.8814
127@ = -2244.575
187@ = 211.4546
247@ = 34.884
128@ = -2252.426
188@ = 110.4054
248@ = 34.8813
129@ = -2254.3979
189@ = 64.4779
249@ = 34.8865
130@ = -2333.1941
190@ = 52.1153
250@ = 34.8895
131@ = -2373.793
191@ = -39.8936
251@ = 34.8887
132@ = -2411.406
192@ = -71.5329
252@ = 34.8695
133@ = -2421.9861
193@ = -171.5927
253@ = 34.8702
134@ = -2514.4871
194@ = -209.5909
254@ = 24.5432
135@ = -2612.3379
195@ = -208.1451
255@ = 3.8877
136@ = -2700.542
196@ = -205.7518
256@ = 3.8928
137@ = -2703.4551
197@ = -105.7246
257@ = 3.8899
138@ = -2704.9331
198@ = -88.0339
258@ = 3.8934
139@ = -2791.198
199@ = -69.7781
259@ = 6.7409
140@ = -2807.2419
200@ = 29.8687
260@ = 6.7487
141@ = -2807.9221
201@ = 131.0431
261@ = 6.7324
142@ = -2807.2471
202@ = 232.0953
262@ = 6.7535
143@ = -2831.376
203@ = 329.6273
263@ = 4.0742
144@ = -2851.8401
204@ = 427.8425
264@ = 4.0745
145@ = -2831.418
205@ = 526.6416
265@ = 4.6276
146@ = -2821.271
206@ = 626.4095
266@ = 7.8679
147@ = -2849.5249
207@ = 720.4027
267@ = 28.129
148@ = -2840.613
208@ = 819.4821
268@ = 40.6696
149@ = -2816.873
209@ = 897.241
269@ = 43.6833
150@ = -2776.396
210@ = 809.4246
270@ = 50.6937
151@ = -2676.2871
211@ = 810.1769
271@ = 49.5432
152@ = -2575.5581
212@ = 807.5107
272@ = 49.5239
153@ = -2528.4619
213@ = 809.4405
273@ = 49.5356
154@ = -2526.564
214@ = 908.4559
274@ = 64.537
155@ = -2525.0891
215@ = 999.8545
275@ = 77.8166
156@ = -2594.6899
216@ = 1006.409
276@ = 77.8242
157@ = -2587.4741
217@ = 1092.979
277@ = 56.2406
158@ = -2591.7119
218@ = 1135.302
278@ = 55.135
159@ = -2658.5491
219@ = 1209.7679
279@ = 55.1386
160@ = -2669.4741
220@ = 1309.309
280@ = 55.1228
161@ = -2677.5391
221@ = 1409.63
281@ = 55.1226
162@ = -2669.2939
222@ = 1509.889
282@ = 58.6901
163@ = -2674.542
223@ = 1610.948
283@ = 64.4835
164@ = -2675.343
224@ = 1711.907
284@ = 67.4134
165@ = -2675.344
225@ = 1812.691
285@ = 67.4802
166@ = -2675.333
226@ = 1913.553
286@ = 64.6734
167@ = -2675.791
227@ = 2013.889
287@ = 59.035
168@ = -2670.814
228@ = 2114.105
288@ = 55.1467
169@ = -2679.106
229@ = 2214.438
289@ = 55.1239
170@ = -2720.0139
230@ = 2305.998
290@ = 63.1498
171@ = -2720.7439
231@ = 2353.887
291@ = 71.5011
172@ = -2677.1499
232@ = 2440.762
292@ = 47.2891
173@ = -2593.738
233@ = 2490.0811
293@ = 22.1514
174@ = -2513.9399
234@ = 2429.6121
294@ = 16.4114
175@ = -2413.627
235@ = 2430.877
295@ = 11.8649
176@ = -2339.4141
236@ = 2395.623
296@ = 5.5583
177@ = -2422.8391
237@ = 2340.198
297@ = 4.5444
178@ = -2462.575
238@ = 2334.2649
298@ = 4.5459
179@ = -2467.3269
239@ = 2276.376
299@ = 4.5468
180@ = -2560.3081
240@ = 2313.5659
300@ = 4.5508
181@ = -2560.2859
241@ = 2316.4419
301@ = 4.5491
return 

//-------------Mission 68---------------
// Originally: Test Drive

:STEAL2
script_name 'STEAL2'
gosub @STEAL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL2_38
gosub @STEAL2_26013

:STEAL2_38
gosub @STEAL2_26109
terminate_this_script 

:STEAL2_47
$onmission = 1
register_mission_given 
load_mission_text 'STEAL2'
clear_prints 
wait 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
112@ = 0
113@ = 0
114@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
160@ = 0
161@ = 0
108@ = 0
109@ = 0
make_player_gang_disappear 
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_2'

:STEAL2_331
if 
  not has_cutscene_loaded 
goto_if_false @STEAL2_355
wait 0
goto @STEAL2_331

:STEAL2_355
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL2_364
if 
  not has_cutscene_finished 
goto_if_false @STEAL2_388
wait 0
goto @STEAL2_364

:STEAL2_388
do_fade 0 {direction} Fade.Out

:STEAL2_394
if 
  get_fading_status 
goto_if_false @STEAL2_418
wait 0
goto @STEAL2_394

:STEAL2_418
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 560
request_model 562
request_model 147
request_vehicle_mod #NTO_B_S
load_special_character 1 {modelName} 'CESAR'
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
169@ = load_char_decision_maker DecisionMakerType.Tough
170@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
load_scene -2032.4 {y} 171.8 {z} 27.8
clear_area -2032.4 {y} 171.8 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2032.4 {y} 171.8 {z} 27.8
set_char_heading $scplayer {heading} 308.7
clear_area -2032.3 {y} 161.9 {z} 28.0 {radius} 1.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -2032.3 {y} 161.9 {z} 28.0
set_char_never_targetted $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 170@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
set_char_decision_maker $cesar {handleOrTemplate} 169@
104@ = 1
clear_area -1656.2 {y} 1210.2 {z} 12.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 562
gosub @STEAL2_27694
34@ = create_car 562 {x} -1656.2 {y} 1210.2 {z} 12.3
set_car_strong 34@ {state} True
set_car_heading 34@ {heading} 316.1
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 34@ {health} 2000
set_can_burst_car_tyres 34@ {state} False
freeze_car_position 34@ {state} True
$car = add_vehicle_mod 34@ {modelId} #NTO_B_S
clear_area -1662.3 {y} 1211.0 {z} 12.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 560
gosub @STEAL2_27694
35@ = create_car 560 {x} -1662.3 {y} 1211.0 {z} 12.3
set_car_heading 35@ {heading} 316.1
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
change_car_colour 35@ {color1} 59 {color2} 12
set_car_health 35@ {health} 2000
freeze_car_position 35@ {state} True
$car = add_vehicle_mod 35@ {modelId} #NTO_B_S
switch_random_trains False
98@ = add_blip_for_coord -1632.9 {y} 1207.4 {z} 6.1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True

:STEAL2_988
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL2_1014
goto @STEAL2_26031

:STEAL2_1014
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_1046
goto @STEAL2_26013

:STEAL2_1046
if 
  99@ == 0
goto_if_false @STEAL2_6415
if 
  100@ == 0
goto_if_false @STEAL2_1619
gosub @STEAL2_26414
if 
  114@ == 0
goto_if_false @STEAL2_1135
112@ = 1
113@ = 0
gosub @STEAL2_30237
114@ = 1

:STEAL2_1135
if 
  114@ == 1
goto_if_false @STEAL2_1215
if 
  112@ == 0
goto_if_false @STEAL2_1215
print 'STE2_01' {time} 7000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
TIMERB = 0
114@ = 2

:STEAL2_1215
if 
  114@ == 2
goto_if_false @STEAL2_1319
if 
  TIMERB > 7000
goto_if_false @STEAL2_1319
if 
  112@ == 0
goto_if_false @STEAL2_1319
112@ = 2
113@ = 0
gosub @STEAL2_30237
TIMERB = 0
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 3

:STEAL2_1319
if 
  114@ == 3
goto_if_false @STEAL2_1402
if 
  TIMERB > 7000
goto_if_false @STEAL2_1402
if 
  112@ == 0
goto_if_false @STEAL2_1402
112@ = 3
113@ = 0
gosub @STEAL2_30237
114@ = 4

:STEAL2_1402
if 
  114@ == 4
goto_if_false @STEAL2_1459
if 
  112@ == 0
goto_if_false @STEAL2_1459
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 5

:STEAL2_1459
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_1619
if 
  locate_char_any_means_3d $scplayer {x} -1632.9 {y} 1207.4 {z} 6.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_1619
if 
  locate_char_any_means_3d $cesar {x} -1632.9 {y} 1207.4 {z} 6.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_1619
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
100@ = 1

:STEAL2_1619
if 
  100@ == 1
goto_if_false @STEAL2_2108
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
set_ped_density_multiplier 0.0
clear_area -1662.3 {y} 1211.0 {z} 13.4 {radius} 15.0 {clearParticles} True
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
remove_blip 98@
clear_area -1656.7 {y} 1213.8 {z} 12.7 {radius} 1.0 {clearParticles} True
96@ = create_char PedType.Mission1 {modelId} 147 {x} -1656.7 {y} 1213.8 {z} 12.7
set_char_heading 96@ {heading} 132.3
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_1792
remove_char_from_group $cesar
clear_char_tasks $cesar

:STEAL2_1792
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1642.3 {y} 1204.1 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1651.2 {y} 1204.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1663.5 {y} 1204.2 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1640.3 {y} 1204.4 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1651.7 {y} 1205.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1662.3 {y} 1204.8 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
112@ = 4
113@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
set_fixed_camera_position -1624.5 {y} 1201.5 {z} 7.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1664.6 {y} 1207.1 {z} 10.9 {switchStyle} SwitchType.JumpCut
101@ = 1
skip_cutscene_start_internal @STEAL2_2979
TIMERA = 0
114@ = 0
100@ = 2

:STEAL2_2108
if 
  100@ == 2
goto_if_false @STEAL2_2684
if 
  114@ == 0
goto_if_false @STEAL2_2207
if 
  112@ == 0
goto_if_false @STEAL2_2207
112@ = 4
113@ = generate_random_int_in_range 3 {max} 6
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 1

:STEAL2_2207
if 
  114@ == 1
goto_if_false @STEAL2_2288
if 
  112@ == 0
goto_if_false @STEAL2_2288
112@ = 4
113@ = generate_random_int_in_range 6 {max} 9
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 2

:STEAL2_2288
if 
  TIMERA > 8000
goto_if_false @STEAL2_2684
clear_char_tasks_immediately $scplayer
clear_area -1659.6 {y} 1203.3 {z} 11.4 {radius} 400.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1659.6 {y} 1203.3 {z} 11.4
set_char_heading $scplayer {heading} 96.8
clear_char_tasks_immediately $cesar
clear_area -1659.8 {y} 1205.0 {z} 11.4 {radius} 1.0 {clearParticles} True
set_char_coordinates $cesar {x} -1659.8 {y} 1205.0 {z} 11.4
set_char_heading $cesar {heading} 91.3
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1662.6 {y} 1202.6 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1666.0 {y} 1208.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1662.7 {y} 1204.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1662.9 {y} 1206.5 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1660.3 {y} 1208.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_enter_car_as_driver -1 {vehicle} 34@ {time} -1
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
set_fixed_camera_position -1661.1 {y} 1219.7 {z} 15.15 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1658.9 {y} 1204.6 {z} 13.85 {switchStyle} SwitchType.JumpCut
TIMERA = 0
100@ = 3

:STEAL2_2684
if 
  100@ == 3
goto_if_false @STEAL2_2785
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_2785
107@ = get_sequence_progress $cesar
if 
  107@ == 2
goto_if_false @STEAL2_2785
112@ = 5
113@ = 0
gosub @STEAL2_30237
100@ = 4

:STEAL2_2785
if 
  100@ == 4
goto_if_false @STEAL2_2936
if 
  113@ == 2
goto_if_false @STEAL2_2936
if 
  not is_char_dead 96@
goto_if_false @STEAL2_2929
171@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1660.6 {y} 1210.1 {z} 12.7 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1664.0 {y} 1205.3 {z} 12.7 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1651.3 {y} 1203.2 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 171@
perform_sequence_task 96@ {sequence} 171@
clear_sequence_task 171@

:STEAL2_2929
100@ = 5

:STEAL2_2936
if 
  100@ == 5
goto_if_false @STEAL2_5670
if 
  112@ == 0
goto_if_false @STEAL2_5670
101@ = 0

:STEAL2_2979
skip_cutscene_end 
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3013
goto @STEAL2_26013

:STEAL2_3013
if 
  101@ == 1
goto_if_false @STEAL2_3197
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
do_fade 500 {direction} Fade.Out

:STEAL2_3055
if 
  get_fading_status 
goto_if_false @STEAL2_3079
wait 0
goto @STEAL2_3055

:STEAL2_3079
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3111
goto @STEAL2_26013

:STEAL2_3111
if 
  not is_char_dead 96@
goto_if_false @STEAL2_3171
clear_area -1651.3 {y} 1203.2 {z} 6.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 96@ {x} -1651.3 {y} 1203.2 {z} 6.2

:STEAL2_3171
clear_char_tasks_immediately $cesar
warp_char_into_car $cesar {vehicle} 34@
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 35@

:STEAL2_3197
if 
  is_char_in_car $cesar {vehicle} 34@
goto_if_false @STEAL2_5670
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_5670
freeze_car_position 34@ {state} False
freeze_car_position 35@ {state} False
mark_char_as_no_longer_needed 96@
mark_model_as_no_longer_needed 147
request_model 414
request_model #CARDBOARDBOX
request_model 449
load_all_models_now 
set_car_model_components 414 {component1} 1 {component2} 1
clear_area -1580.1 {y} 938.2 {z} 6.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 414
gosub @STEAL2_27694
36@ = create_car 414 {x} -1580.1 {y} 938.2 {z} 6.8
set_car_heading 36@ {heading} 90.0
set_load_collision_for_car_flag 36@ {state} True
clear_area -1576.0 {y} 938.9 {z} 6.5 {radius} 5.0 {clearParticles} True
58@ = create_random_char -1576.0 {y} 938.9 {z} 6.5
set_char_heading 58@ {heading} 84.9
set_char_decision_maker 58@ {handleOrTemplate} 170@
clear_area -1575.1 {y} 940.7 {z} 6.4 {radius} 10.0 {clearParticles} True
80@ = create_object #CARDBOARDBOX {x} -1575.1 {y} 940.7 {z} 6.4
set_object_collision 80@ {state} True
set_object_dynamic 80@ {state} True
81@ = create_object #CARDBOARDBOX {x} -1574.9 {y} 941.7 {z} 6.4
set_object_collision 81@ {state} True
set_object_dynamic 81@ {state} True
82@ = create_object #CARDBOARDBOX {x} -1573.1 {y} 942.7 {z} 6.4
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True
83@ = create_object #CARDBOARDBOX {x} -1575.1 {y} 940.7 {z} 7.0
set_object_collision 83@ {state} True
set_object_dynamic 83@ {state} True
84@ = create_object #CARDBOARDBOX {x} -1573.1 {y} 942.7 {z} 7.0
set_object_collision 84@ {state} True
set_object_dynamic 84@ {state} True
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_3764
clear_area -1626.9 {y} 1202.5 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -1626.9 {y} 1202.5 {z} 5.7
set_car_heading 38@ {heading} 222.7
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_3764
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_3893
clear_area -1609.2 {y} 1160.4 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -1609.2 {y} 1160.4 {z} 5.7
set_car_heading 39@ {heading} 184.3
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_3893
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4022
clear_area -1600.9 {y} 1111.7 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -1600.9 {y} 1111.7 {z} 5.7
set_car_heading 40@ {heading} 183.3
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_4022
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4151
clear_area -1608.2 {y} 1094.0 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -1608.2 {y} 1094.0 {z} 5.7
set_car_heading 41@ {heading} 180.0
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_4151
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4280
clear_area -1608.2 {y} 1046.5 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -1608.2 {y} 1046.5 {z} 5.7
set_car_heading 42@ {heading} 183.5
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_4280
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4409
clear_area -1595.7 {y} 1012.0 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -1595.7 {y} 1012.0 {z} 5.7
set_car_heading 43@ {heading} 207.3
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_4409
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4538
clear_area -1540.5 {y} 959.8 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -1540.5 {y} 959.8 {z} 5.7
set_car_heading 44@ {heading} 24.3
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_4538
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4667
clear_area -1556.0 {y} 995.6 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -1556.0 {y} 995.6 {z} 5.7
set_car_heading 45@ {heading} 41.0
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_4667
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4796
clear_area -1587.6 {y} 1036.7 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -1587.6 {y} 1036.7 {z} 5.7
set_car_heading 46@ {heading} 3.3
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_4796
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4925
clear_area -1579.6 {y} 1140.1 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -1579.6 {y} 1140.1 {z} 5.7
set_car_heading 48@ {heading} 2.0
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_4925
clear_area -1542.9 {y} 974.0 {z} 5.3 {radius} 5.0 {clearParticles} True
95@ = create_mission_train 9 {x} -1542.9 {y} 974.0 {z} 5.3 {direction} False
set_train_speed 95@ {speed} 0.0
set_train_cruise_speed 95@ {speed} 0.0
lock_car_doors 95@ {lockStatus} CarLock.Locked
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5129
clear_area -1592.8 {y} 934.7 {z} 6.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -1592.8 {y} 934.7 {z} 6.2
set_car_heading 49@ {heading} 91.3
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_5129
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5258
clear_area -1608.8 {y} 934.3 {z} 6.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = create_car 108@ {x} -1608.8 {y} 934.3 {z} 6.2
set_car_heading 50@ {heading} 91.3
lock_car_doors 50@ {lockStatus} CarLock.Locked
72@ = create_random_char_as_driver 50@
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False

:STEAL2_5258
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5387
clear_area -1704.4 {y} 916.0 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = create_car 108@ {x} -1704.4 {y} 916.0 {z} 23.4
set_car_heading 51@ {heading} 269.1
lock_car_doors 51@ {lockStatus} CarLock.Locked
73@ = create_random_char_as_driver 51@
set_load_collision_for_car_flag 51@ {state} True
set_char_can_be_shot_in_vehicle 73@ {state} False

:STEAL2_5387
clear_area -1642.2 {y} 1210.5 {z} 6.2 {radius} 15.0 {clearParticles} True
97@ = create_random_char -1642.2 {y} 1210.5 {z} 6.2
set_char_decision_maker 97@ {handleOrTemplate} 170@
171@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1645.5 {y} 1214.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000
close_sequence_task 171@
perform_sequence_task 97@ {sequence} 171@
clear_sequence_task 171@
set_car_density_multiplier 0.0
set_fixed_camera_position -1640.4 {y} 1212.9 {z} 6.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1651.3 {y} 1215.3 {z} 10.6 {switchStyle} SwitchType.JumpCut
if 
  101@ == 1
goto_if_false @STEAL2_5656
do_fade 500 {direction} Fade.In

:STEAL2_5600
if 
  get_fading_status 
goto_if_false @STEAL2_5624
wait 0
goto @STEAL2_5600

:STEAL2_5624
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_5656
goto @STEAL2_26013

:STEAL2_5656
TIMERA = 0
100@ = 6

:STEAL2_5670
if 
  100@ == 6
goto_if_false @STEAL2_5924
if 
  not is_char_dead 97@
goto_if_false @STEAL2_5924
if 
  locate_char_any_means_2d 97@ {x} -1646.0 {y} 1214.4 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @STEAL2_5924
start_playback_recorded_car 34@ {path} 70
if 
  not is_car_dead 38@
goto_if_false @STEAL2_5772
start_playback_recorded_car 38@ {path} 71

:STEAL2_5772
if 
  not is_car_dead 39@
goto_if_false @STEAL2_5795
start_playback_recorded_car 39@ {path} 72

:STEAL2_5795
if 
  not is_car_dead 40@
goto_if_false @STEAL2_5818
start_playback_recorded_car 40@ {path} 73

:STEAL2_5818
if 
  not is_car_dead 41@
goto_if_false @STEAL2_5841
start_playback_recorded_car 41@ {path} 74

:STEAL2_5841
if 
  not is_car_dead 42@
goto_if_false @STEAL2_5864
start_playback_recorded_car 42@ {path} 75

:STEAL2_5864
if 
  not is_car_dead 43@
goto_if_false @STEAL2_5887
start_playback_recorded_car 43@ {path} 76

:STEAL2_5887
if 
  not is_car_dead 95@
goto_if_false @STEAL2_5910
start_playback_recorded_car 95@ {path} 77

:STEAL2_5910
TIMERA = 0
100@ = 7

:STEAL2_5924
if 
  100@ == 7
goto_if_false @STEAL2_5989
if 
  TIMERA > 500
goto_if_false @STEAL2_5989
112@ = 6
113@ = 0
gosub @STEAL2_30237
100@ = 8

:STEAL2_5989
if 
  100@ == 8
goto_if_false @STEAL2_6325
if 
  TIMERA > 2500
goto_if_false @STEAL2_6325
if 
  not is_char_dead 97@
goto_if_false @STEAL2_6060
task_smart_flee_char 97@ {threat} $scplayer {radius} 200.0 {time} 600000

:STEAL2_6060
pause_playback_recorded_car 34@
if 
  not is_car_dead 38@
goto_if_false @STEAL2_6086
pause_playback_recorded_car 38@

:STEAL2_6086
if 
  not is_car_dead 39@
goto_if_false @STEAL2_6107
pause_playback_recorded_car 39@

:STEAL2_6107
if 
  not is_car_dead 40@
goto_if_false @STEAL2_6128
pause_playback_recorded_car 40@

:STEAL2_6128
if 
  not is_car_dead 41@
goto_if_false @STEAL2_6149
pause_playback_recorded_car 41@

:STEAL2_6149
if 
  not is_car_dead 42@
goto_if_false @STEAL2_6170
pause_playback_recorded_car 42@

:STEAL2_6170
if 
  not is_car_dead 43@
goto_if_false @STEAL2_6191
pause_playback_recorded_car 43@

:STEAL2_6191
if 
  not is_car_dead 95@
goto_if_false @STEAL2_6212
pause_playback_recorded_car 95@

:STEAL2_6212
set_ped_density_multiplier 0.5
shut_all_chars_up False
98@ = add_blip_for_car 34@
set_blip_as_friendly 98@ {state} True
mark_char_as_no_longer_needed 97@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STE2_02' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
114@ = 0
105@ = 1
100@ = 0
99@ = 1

:STEAL2_6325
if 
  100@ == 0
goto_if_false @STEAL2_6415
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL2_6415
load_scene -1638.7 {y} 1199.4 {z} 6.2
set_char_coordinates $scplayer {x} -1638.7 {y} 1199.4 {z} 6.2
set_char_coordinates $cesar {x} -1639.7 {y} 1199.4 {z} 6.2

:STEAL2_6415
if 
  99@ == 1
goto_if_false @STEAL2_7393
if 
  114@ == 0
goto_if_false @STEAL2_6530
if 
  112@ == 0
goto_if_false @STEAL2_6530
if 
  TIMERB > 7000
goto_if_false @STEAL2_6530
112@ = 7
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_6530
if 
  114@ == 1
goto_if_false @STEAL2_6587
if 
  112@ == 0
goto_if_false @STEAL2_6587
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_6587
if 
  103@ == 0
goto_if_false @STEAL2_6605

:STEAL2_6605
if 
  100@ == 0
goto_if_false @STEAL2_6678
if 
  not locate_char_any_means_3d $scplayer {x} -1656.2 {y} 1210.2 {z} 12.3 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @STEAL2_6678
100@ = 1

:STEAL2_6678
if 
  100@ == 1
goto_if_false @STEAL2_6989
unpause_playback_recorded_car 34@
if 
  not is_car_dead 38@
goto_if_false @STEAL2_6722
unpause_playback_recorded_car 38@

:STEAL2_6722
if 
  not is_car_dead 39@
goto_if_false @STEAL2_6743
unpause_playback_recorded_car 39@

:STEAL2_6743
if 
  not is_car_dead 40@
goto_if_false @STEAL2_6764
unpause_playback_recorded_car 40@

:STEAL2_6764
if 
  not is_car_dead 41@
goto_if_false @STEAL2_6785
unpause_playback_recorded_car 41@

:STEAL2_6785
if 
  not is_car_dead 42@
goto_if_false @STEAL2_6806
unpause_playback_recorded_car 42@

:STEAL2_6806
if 
  not is_car_dead 43@
goto_if_false @STEAL2_6827
unpause_playback_recorded_car 43@

:STEAL2_6827
if 
  not is_car_dead 95@
goto_if_false @STEAL2_6848
unpause_playback_recorded_car 95@

:STEAL2_6848
if 
  not is_car_dead 44@
goto_if_false @STEAL2_6879
set_car_cruise_speed 44@ {maxSpeed} 15.0
car_wander_randomly 44@

:STEAL2_6879
if 
  not is_car_dead 45@
goto_if_false @STEAL2_6910
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_wander_randomly 45@

:STEAL2_6910
if 
  not is_car_dead 46@
goto_if_false @STEAL2_6941
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_wander_randomly 46@

:STEAL2_6941
if 
  not is_car_dead 48@
goto_if_false @STEAL2_6972
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_wander_randomly 48@

:STEAL2_6972
request_model 597
request_model 281
100@ = 2

:STEAL2_6989
if 
  100@ == 2
goto_if_false @STEAL2_7393
gosub @STEAL2_26853
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_7393
start_playback_recorded_car 34@ {path} 79
if 
  not is_car_dead 95@
goto_if_false @STEAL2_7060
start_playback_recorded_car 95@ {path} 78

:STEAL2_7060
if 
  not is_car_dead 49@
goto_if_false @STEAL2_7116
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -1881.4 {y} 1038.7 {z} 44.8

:STEAL2_7116
if 
  not is_car_dead 50@
goto_if_false @STEAL2_7172
set_car_forward_speed 50@ {forwardSpeed} 15.0
set_car_cruise_speed 50@ {maxSpeed} 15.0
car_goto_coordinates 50@ {x} -1880.1 {y} 1029.8 {z} 44.8

:STEAL2_7172
if 
  not is_car_dead 51@
goto_if_false @STEAL2_7213
set_car_forward_speed 51@ {forwardSpeed} 15.0
set_car_cruise_speed 51@ {maxSpeed} 15.0
car_wander_randomly 51@

:STEAL2_7213
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 70@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 48@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #CARDBOARDBOX
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 2

:STEAL2_7393
if 
  99@ == 2
goto_if_false @STEAL2_9654
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_7503
if 
  112@ == 0
goto_if_false @STEAL2_7503
112@ = 8
113@ = 0
159@ = 1
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_7503
if 
  114@ == 1
goto_if_false @STEAL2_7612
if 
  locate_car_2d 34@ {x} -1702.4 {y} 921.4 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_7612
if 
  112@ == 0
goto_if_false @STEAL2_7612
112@ = 8
113@ = 1
159@ = 2
gosub @STEAL2_30237
114@ = 2

:STEAL2_7612
if 
  114@ == 2
goto_if_false @STEAL2_7669
if 
  112@ == 0
goto_if_false @STEAL2_7669
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_7669
if 
  103@ == 0
goto_if_false @STEAL2_7687

:STEAL2_7687
if 
  100@ == 0
goto_if_false @STEAL2_7722
request_model 597
request_model 281
100@ = 1

:STEAL2_7722
if 
  100@ == 1
goto_if_false @STEAL2_9397
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_7869
clear_area -1802.9 {y} 853.6 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -1802.9 {y} 853.6 {z} 23.4
set_car_heading 37@ {heading} 89.3
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_7869
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_7998
clear_area -1852.2 {y} 836.7 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -1852.2 {y} 836.7 {z} 33.8
set_car_heading 39@ {heading} 270.9
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_7998
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8127
clear_area -1876.7 {y} 836.3 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -1876.7 {y} 836.3 {z} 33.8
set_car_heading 40@ {heading} 270.9
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_8127
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8256
clear_area -1903.1 {y} 826.2 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -1903.1 {y} 826.2 {z} 33.7
set_car_heading 42@ {heading} 178.0
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_8256
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8385
clear_area -1915.7 {y} 836.6 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -1915.7 {y} 836.6 {z} 34.2
set_car_heading 43@ {heading} 272.0
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_8385
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8514
clear_area -1902.8 {y} 866.4 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -1902.8 {y} 866.4 {z} 34.2
set_car_heading 44@ {heading} 179.4
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_8514
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8643
clear_area -1902.7 {y} 882.1 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -1902.7 {y} 882.1 {z} 34.2
set_car_heading 45@ {heading} 179.4
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_8643
clear_area -1805.5 {y} 900.3 {z} 23.9 {radius} 5.0 {clearParticles} True
68@ = create_random_char -1805.5 {y} 900.3 {z} 23.9
set_char_heading 68@ {heading} 352.4
clear_area -1804.5 {y} 901.3 {z} 23.9 {radius} 5.0 {clearParticles} True
69@ = create_random_char -1804.5 {y} 901.3 {z} 23.9
set_char_heading 69@ {heading} 169.0
task_chat_with_char 68@ {other} 69@ {leadSpeaker} True {_p4} 1
task_chat_with_char 69@ {other} 68@ {leadSpeaker} False {_p4} 1
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8904
clear_area -1988.1 {y} 933.5 {z} 43.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
57@ = create_car 108@ {x} -1988.1 {y} 933.5 {z} 43.9
set_car_heading 57@ {heading} 85.7
lock_car_doors 57@ {lockStatus} CarLock.Locked
79@ = create_random_char_as_driver 57@
set_load_collision_for_car_flag 57@ {state} True
set_char_can_be_shot_in_vehicle 79@ {state} False

:STEAL2_8904
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_9033
clear_area -2007.7 {y} 1039.2 {z} 55.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
52@ = create_car 108@ {x} -2007.7 {y} 1039.2 {z} 55.2
set_car_heading 52@ {heading} 178.1
lock_car_doors 52@ {lockStatus} CarLock.Locked
74@ = create_random_char_as_driver 52@
set_load_collision_for_car_flag 52@ {state} True
set_char_can_be_shot_in_vehicle 74@ {state} False

:STEAL2_9033
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_9162
clear_area -2009.2 {y} 962.6 {z} 44.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = create_car 108@ {x} -2009.2 {y} 962.6 {z} 44.1
set_car_heading 53@ {heading} 179.8
lock_car_doors 53@ {lockStatus} CarLock.Locked
75@ = create_random_char_as_driver 53@
set_load_collision_for_car_flag 53@ {state} True
set_char_can_be_shot_in_vehicle 75@ {state} False

:STEAL2_9162
if 
  has_model_loaded 597
goto_if_false @STEAL2_9276
clear_area -1998.2 {y} 825.3 {z} 44.1 {radius} 5.0 {clearParticles} True
54@ = create_car 597 {x} -1998.2 {y} 825.3 {z} 44.1
set_car_heading 54@ {heading} 6.4
76@ = create_char_inside_car 54@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 54@ {drivingStyle} DrivingMode.AvoidCars
lock_car_doors 54@ {lockStatus} CarLock.Locked
set_load_collision_for_car_flag 54@ {state} True
set_char_can_be_shot_in_vehicle 76@ {state} False

:STEAL2_9276
if 
  has_model_loaded 597
goto_if_false @STEAL2_9390
clear_area -1997.5 {y} 815.6 {z} 44.1 {radius} 5.0 {clearParticles} True
55@ = create_car 597 {x} -1997.5 {y} 815.6 {z} 44.1
set_car_heading 55@ {heading} 1.0
77@ = create_char_inside_car 55@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 55@ {drivingStyle} DrivingMode.AvoidCars
lock_car_doors 55@ {lockStatus} CarLock.Locked
set_load_collision_for_car_flag 55@ {state} True
set_char_can_be_shot_in_vehicle 77@ {state} False

:STEAL2_9390
100@ = 2

:STEAL2_9397
if 
  100@ == 2
goto_if_false @STEAL2_9654
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_9654
mark_car_as_no_longer_needed 51@
mark_char_as_no_longer_needed 73@
start_playback_recorded_car 34@ {path} 81
if 
  not is_car_dead 95@
goto_if_false @STEAL2_9471
start_playback_recorded_car 95@ {path} 80

:STEAL2_9471
if 
  not is_car_dead 37@
goto_if_false @STEAL2_9527
set_car_forward_speed 37@ {forwardSpeed} 15.0
set_car_cruise_speed 37@ {maxSpeed} 15.0
car_goto_coordinates 37@ {x} -1881.4 {y} 853.7 {z} 35.7

:STEAL2_9527
if 
  not is_car_dead 39@
goto_if_false @STEAL2_9583
set_car_forward_speed 39@ {forwardSpeed} 15.0
set_car_cruise_speed 39@ {maxSpeed} 15.0
car_goto_coordinates 39@ {x} -1717.8 {y} 755.3 {z} 24.8

:STEAL2_9583
if 
  not is_car_dead 40@
goto_if_false @STEAL2_9619
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0

:STEAL2_9619
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 3

:STEAL2_9654
if 
  99@ == 3
goto_if_false @STEAL2_10099
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_9802
if 
  locate_car_2d 34@ {x} -1855.2 {y} 916.9 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_9802
if 
  112@ == 0
goto_if_false @STEAL2_9802
112@ = 8
113@ = 2
159@ = 3
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_9802
if 
  114@ == 1
goto_if_false @STEAL2_9859
if 
  112@ == 0
goto_if_false @STEAL2_9859
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_9859
if 
  103@ == 0
goto_if_false @STEAL2_9877

:STEAL2_9877
if 
  100@ == 0
goto_if_false @STEAL2_9902
100@ = 1

:STEAL2_9902
if 
  100@ == 1
goto_if_false @STEAL2_10099
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_10099
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
delete_object 80@
delete_object 81@
delete_object 82@
delete_object 83@
delete_object 84@
if 
  not is_car_dead 95@
goto_if_false @STEAL2_10064
start_playback_recorded_car 95@ {path} 83

:STEAL2_10064
start_playback_recorded_car 34@ {path} 84
114@ = 0
103@ = 0
100@ = 0
99@ = 4

:STEAL2_10099
if 
  99@ == 4
goto_if_false @STEAL2_12834
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_10209
if 
  112@ == 0
goto_if_false @STEAL2_10209
112@ = 8
113@ = 3
159@ = 4
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_10209
if 
  114@ == 1
goto_if_false @STEAL2_10259
if 
  112@ == 0
goto_if_false @STEAL2_10259
alter_wanted_level_no_drop $player1 {wantedLevel} 2
114@ = 2

:STEAL2_10259
if 
  114@ == 2
goto_if_false @STEAL2_10316
if 
  112@ == 0
goto_if_false @STEAL2_10316
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_10316
if 
  103@ == 0
goto_if_false @STEAL2_10334

:STEAL2_10334
if 
  100@ == 0
goto_if_false @STEAL2_11841
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10481
clear_area -2350.7 {y} 1091.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2350.7 {y} 1091.2 {z} 54.2
set_car_heading 36@ {heading} 72.3
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_10481
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10610
clear_area -2347.8 {y} 1081.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2347.8 {y} 1081.2 {z} 54.2
set_car_heading 37@ {heading} 73.7
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_10610
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10746
clear_area -2124.1001 {y} 1080.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2124.1001 {y} 1080.8 {z} 54.2
set_car_heading 38@ {heading} 90.7
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_car_stay_in_slow_lane 38@ {state} True
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_10746
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10882
clear_area -2132.0 {y} 1059.0 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -2132.0 {y} 1059.0 {z} 54.2
set_car_heading 39@ {heading} 269.2
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_car_stay_in_fast_lane 39@ {state} True
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_10882
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11018
clear_area -2166.7 {y} 1050.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -2166.7 {y} 1050.8 {z} 54.2
set_car_heading 40@ {heading} 270.2
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_car_stay_in_slow_lane 40@ {state} True
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_11018
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11154
clear_area -2231.0 {y} 1059.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -2231.0 {y} 1059.8 {z} 54.2
set_car_heading 41@ {heading} 268.2
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_car_stay_in_fast_lane 41@ {state} True
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_11154
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11290
clear_area -2299.5 {y} 1052.1 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -2299.5 {y} 1052.1 {z} 54.2
set_car_heading 42@ {heading} 272.2
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_car_stay_in_slow_lane 42@ {state} True
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_11290
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11426
clear_area -2338.1001 {y} 1066.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2338.1001 {y} 1066.2 {z} 54.2
set_car_heading 43@ {heading} 255.2
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_car_stay_in_fast_lane 43@ {state} True
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_11426
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11562
clear_area -2344.3 {y} 1058.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2344.3 {y} 1058.8 {z} 54.2
set_car_heading 44@ {heading} 257.1
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_car_stay_in_slow_lane 44@ {state} True
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_11562
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11698
clear_area -2446.5 {y} 1097.0 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -2446.5 {y} 1097.0 {z} 54.2
set_car_heading 45@ {heading} 266.7
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_car_stay_in_fast_lane 45@ {state} True
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_11698
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11834
clear_area -2427.5 {y} 1087.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2427.5 {y} 1087.2 {z} 54.2
set_car_heading 46@ {heading} 261.0
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_car_stay_in_slow_lane 46@ {state} True
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_11834
100@ = 1

:STEAL2_11841
if 
  100@ == 1
goto_if_false @STEAL2_12183
if 
  locate_car_2d 34@ {x} -1990.0 {y} 838.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_12183
if 
  not is_car_dead 51@
goto_if_false @STEAL2_11920
start_playback_recorded_car 51@ {path} 85

:STEAL2_11920
if 
  not is_car_dead 52@
goto_if_false @STEAL2_11976
set_car_forward_speed 52@ {forwardSpeed} 15.0
set_car_cruise_speed 52@ {maxSpeed} 15.0
car_goto_coordinates 52@ {x} -2008.2 {y} 581.2 {z} 35.3

:STEAL2_11976
if 
  not is_car_dead 53@
goto_if_false @STEAL2_12032
set_car_forward_speed 53@ {forwardSpeed} 15.0
set_car_cruise_speed 53@ {maxSpeed} 15.0
car_goto_coordinates 53@ {x} -2008.2 {y} 571.2 {z} 35.3

:STEAL2_12032
if 
  not is_car_dead 54@
goto_if_false @STEAL2_12104
set_car_forward_speed 54@ {forwardSpeed} 15.0
set_car_cruise_speed 54@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_12104
set_car_follow_car 54@ {handle} 34@ {radius} 10.0
switch_car_siren 54@ {state} True

:STEAL2_12104
if 
  not is_car_dead 55@
goto_if_false @STEAL2_12176
set_car_forward_speed 55@ {forwardSpeed} 15.0
set_car_cruise_speed 55@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_12176
set_car_follow_car 55@ {handle} 34@ {radius} 20.0
switch_car_siren 55@ {state} True

:STEAL2_12176
100@ = 2

:STEAL2_12183
if 
  100@ == 2
goto_if_false @STEAL2_12834
request_model 437
request_model 461
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_12834
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 95@
mark_model_as_no_longer_needed 449
start_playback_recorded_car 34@ {path} 86
if 
  not is_car_dead 38@
goto_if_false @STEAL2_12317
start_playback_recorded_car 38@ {path} 87

:STEAL2_12317
if 
  not is_car_dead 51@
goto_if_false @STEAL2_12354
if 
  not is_playback_going_on_for_car 51@
goto_if_false @STEAL2_12354
stop_playback_recorded_car 51@

:STEAL2_12354
remove_car_recording 85
if 
  not is_car_dead 39@
goto_if_false @STEAL2_12414
set_car_forward_speed 39@ {forwardSpeed} 15.0
set_car_cruise_speed 39@ {maxSpeed} 15.0
car_goto_coordinates 39@ {x} -1896.9 {y} 1060.1 {z} 44.2

:STEAL2_12414
if 
  not is_car_dead 40@
goto_if_false @STEAL2_12470
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0
car_goto_coordinates 40@ {x} -1896.9 {y} 1050.1 {z} 44.2

:STEAL2_12470
if 
  not is_car_dead 41@
goto_if_false @STEAL2_12526
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 15.0
car_goto_coordinates 41@ {x} -1906.9 {y} 1060.1 {z} 48.2

:STEAL2_12526
if 
  not is_car_dead 42@
goto_if_false @STEAL2_12582
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 15.0
car_goto_coordinates 42@ {x} -1906.9 {y} 1050.1 {z} 48.2

:STEAL2_12582
if 
  not is_car_dead 43@
goto_if_false @STEAL2_12638
set_car_forward_speed 43@ {forwardSpeed} 15.0
set_car_cruise_speed 43@ {maxSpeed} 15.0
car_goto_coordinates 43@ {x} -1916.9 {y} 1060.1 {z} 52.2

:STEAL2_12638
if 
  not is_car_dead 44@
goto_if_false @STEAL2_12694
set_car_forward_speed 44@ {forwardSpeed} 15.0
set_car_cruise_speed 44@ {maxSpeed} 15.0
car_goto_coordinates 44@ {x} -1916.9 {y} 1050.1 {z} 52.2

:STEAL2_12694
if 
  not is_car_dead 45@
goto_if_false @STEAL2_12750
set_car_forward_speed 45@ {forwardSpeed} 15.0
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_goto_coordinates 45@ {x} -1926.9 {y} 1060.1 {z} 56.2

:STEAL2_12750
if 
  not is_car_dead 46@
goto_if_false @STEAL2_12806
set_car_forward_speed 46@ {forwardSpeed} 15.0
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_goto_coordinates 46@ {x} -1926.9 {y} 1050.1 {z} 56.2

:STEAL2_12806
114@ = 0
103@ = 0
100@ = 0
99@ = 5

:STEAL2_12834
if 
  99@ == 5
goto_if_false @STEAL2_14364
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_12944
if 
  112@ == 0
goto_if_false @STEAL2_12944
112@ = 8
113@ = 4
159@ = 5
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_12944
if 
  114@ == 1
goto_if_false @STEAL2_12985
print_help 'STE2_03'
give_non_player_car_nitro 34@
114@ = 2

:STEAL2_12985
if 
  114@ == 2
goto_if_false @STEAL2_13094
if 
  locate_car_2d 34@ {x} -2319.8 {y} 1080.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_13094
if 
  112@ == 0
goto_if_false @STEAL2_13094
112@ = 8
113@ = 5
159@ = 6
gosub @STEAL2_30237
114@ = 3

:STEAL2_13094
if 
  114@ == 3
goto_if_false @STEAL2_13151
if 
  112@ == 0
goto_if_false @STEAL2_13151
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_13151
if 
  103@ == 0
goto_if_false @STEAL2_13169

:STEAL2_13169
if 
  100@ == 0
goto_if_false @STEAL2_14004
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13316
clear_area -2503.3 {y} 1237.0 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = create_car 108@ {x} -2503.3 {y} 1237.0 {z} 33.7
set_car_heading 47@ {heading} 249.3
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_random_char_as_driver 47@
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_13316
clear_area -2741.5 {y} 1058.2 {z} 48.1 {radius} 5.0 {clearParticles} True
50@ = create_car 461 {x} -2741.5 {y} 1058.2 {z} 48.1
set_car_heading 50@ {heading} 337.2
72@ = create_random_char_as_driver 50@
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False
clear_area -2513.7 {y} 1246.2 {z} 34.1 {radius} 5.0 {clearParticles} True
52@ = create_car 437 {x} -2513.7 {y} 1246.2 {z} 34.1
set_car_heading 52@ {heading} 82.5
74@ = create_random_char_as_driver 52@
set_load_collision_for_car_flag 52@ {state} True
lock_car_doors 52@ {lockStatus} CarLock.Locked
set_char_can_be_shot_in_vehicle 74@ {state} False
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13610
clear_area -2471.6001 {y} 1219.7 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = create_car 108@ {x} -2471.6001 {y} 1219.7 {z} 33.7
set_car_heading 53@ {heading} 50.8
lock_car_doors 53@ {lockStatus} CarLock.Locked
75@ = create_random_char_as_driver 53@
set_load_collision_for_car_flag 53@ {state} True
set_char_can_be_shot_in_vehicle 75@ {state} False

:STEAL2_13610
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13739
clear_area -2459.1001 {y} 1224.3 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
54@ = create_car 108@ {x} -2459.1001 {y} 1224.3 {z} 33.7
set_car_heading 54@ {heading} 163.8
lock_car_doors 54@ {lockStatus} CarLock.Locked
76@ = create_random_char_as_driver 54@
set_load_collision_for_car_flag 54@ {state} True
set_char_can_be_shot_in_vehicle 76@ {state} False

:STEAL2_13739
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13868
clear_area -2458.1001 {y} 1234.3 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
55@ = create_car 108@ {x} -2458.1001 {y} 1234.3 {z} 33.7
set_car_heading 55@ {heading} 178.2
lock_car_doors 55@ {lockStatus} CarLock.Locked
77@ = create_random_char_as_driver 55@
set_load_collision_for_car_flag 55@ {state} True
set_char_can_be_shot_in_vehicle 77@ {state} False

:STEAL2_13868
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13997
clear_area -2474.5 {y} 1196.9 {z} 34.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
56@ = create_car 108@ {x} -2474.5 {y} 1196.9 {z} 34.4
set_car_heading 56@ {heading} 310.3
lock_car_doors 56@ {lockStatus} CarLock.Locked
78@ = create_random_char_as_driver 56@
set_load_collision_for_car_flag 56@ {state} True
set_char_can_be_shot_in_vehicle 78@ {state} False

:STEAL2_13997
100@ = 1

:STEAL2_14004
if 
  100@ == 1
goto_if_false @STEAL2_14364
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_14364
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
if 
  not is_car_dead 47@
goto_if_false @STEAL2_14204
set_car_forward_speed 47@ {forwardSpeed} 15.0
set_car_cruise_speed 47@ {maxSpeed} 15.0
car_goto_coordinates 47@ {x} -2293.5 {y} 1172.3 {z} 54.8

:STEAL2_14204
if 
  not is_car_dead 50@
goto_if_false @STEAL2_14227
start_playback_recorded_car 50@ {path} 91

:STEAL2_14227
if 
  not is_car_dead 52@
goto_if_false @STEAL2_14250
start_playback_recorded_car 52@ {path} 90

:STEAL2_14250
if 
  not is_car_dead 53@
goto_if_false @STEAL2_14273
start_playback_recorded_car 53@ {path} 89

:STEAL2_14273
if 
  not is_car_dead 56@
goto_if_false @STEAL2_14329
set_car_forward_speed 56@ {forwardSpeed} 15.0
set_car_cruise_speed 56@ {maxSpeed} 15.0
car_goto_coordinates 56@ {x} -2283.5 {y} 1172.3 {z} 54.8

:STEAL2_14329
start_playback_recorded_car 34@ {path} 88
114@ = 0
103@ = 0
100@ = 0
99@ = 6

:STEAL2_14364
if 
  99@ == 6
goto_if_false @STEAL2_15242
gosub @STEAL2_26853
if 
  103@ == 0
goto_if_false @STEAL2_14407

:STEAL2_14407
if 
  100@ == 0
goto_if_false @STEAL2_14931
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14554
clear_area -2533.8 {y} 1242.8 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -2533.8 {y} 1242.8 {z} 33.7
set_car_heading 48@ {heading} 288.3
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_14554
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14683
clear_area -2594.0 {y} 1213.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -2594.0 {y} 1213.9 {z} 33.7
set_car_heading 49@ {heading} 317.3
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_14683
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14812
clear_area -2732.8999 {y} 1098.0 {z} 45.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = create_car 108@ {x} -2732.8999 {y} 1098.0 {z} 45.0
set_car_heading 51@ {heading} 218.5
lock_car_doors 51@ {lockStatus} CarLock.Locked
73@ = create_random_char_as_driver 51@
set_load_collision_for_car_flag 51@ {state} True
set_char_can_be_shot_in_vehicle 73@ {state} False

:STEAL2_14812
if 
  not is_car_dead 48@
goto_if_false @STEAL2_14868
set_car_forward_speed 48@ {forwardSpeed} 15.0
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_goto_coordinates 48@ {x} -2303.5 {y} 1172.3 {z} 54.8

:STEAL2_14868
if 
  not is_car_dead 49@
goto_if_false @STEAL2_14924
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -2313.5 {y} 1060.1 {z} 44.2

:STEAL2_14924
100@ = 1

:STEAL2_14931
if 
  100@ == 1
goto_if_false @STEAL2_15064
if 
  not is_car_dead 50@
goto_if_false @STEAL2_15057
if 
  locate_car_2d 34@ {x} -2599.3 {y} 1206.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15050
if 
  is_playback_going_on_for_car 50@
goto_if_false @STEAL2_15043
stop_playback_recorded_car 50@
mark_car_as_no_longer_needed 50@
100@ = 2
goto @STEAL2_15050

:STEAL2_15043
100@ = 2

:STEAL2_15050
goto @STEAL2_15064

:STEAL2_15057
100@ = 2

:STEAL2_15064
if 
  100@ == 2
goto_if_false @STEAL2_15242
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_15242
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
remove_car_recording 91
start_playback_recorded_car 34@ {path} 92
mark_model_as_no_longer_needed 461
114@ = 0
103@ = 0
100@ = 0
99@ = 7

:STEAL2_15242
if 
  99@ == 7
goto_if_false @STEAL2_18173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_15345
if 
  112@ == 0
goto_if_false @STEAL2_15345
112@ = 9
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_15345
if 
  114@ == 1
goto_if_false @STEAL2_15454
if 
  locate_car_2d 34@ {x} -2622.2 {y} 999.7 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15454
if 
  112@ == 0
goto_if_false @STEAL2_15454
112@ = 8
113@ = 7
159@ = 8
gosub @STEAL2_30237
114@ = 2

:STEAL2_15454
if 
  114@ == 2
goto_if_false @STEAL2_15563
if 
  locate_car_2d 34@ {x} -2608.8999 {y} 913.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15563
if 
  112@ == 0
goto_if_false @STEAL2_15563
112@ = 8
113@ = 8
159@ = 9
gosub @STEAL2_30237
114@ = 3

:STEAL2_15563
if 
  114@ == 3
goto_if_false @STEAL2_15620
if 
  112@ == 0
goto_if_false @STEAL2_15620
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_15620
if 
  103@ == 0
goto_if_false @STEAL2_15638

:STEAL2_15638
if 
  100@ == 0
goto_if_false @STEAL2_17603
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_15785
clear_area -2595.6001 {y} 1006.4 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2595.6001 {y} 1006.4 {z} 76.7
set_car_heading 36@ {heading} 89.4
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_15785
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_15914
clear_area -2595.6001 {y} 1000.9 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2595.6001 {y} 1000.9 {z} 76.7
set_car_heading 37@ {heading} 274.4
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_15914
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16043
clear_area -2604.0 {y} 963.9 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2604.0 {y} 963.9 {z} 76.7
set_car_heading 38@ {heading} 360.0
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_16043
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16172
clear_area -2616.3999 {y} 905.6 {z} 64.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -2616.3999 {y} 905.6 {z} 64.5
set_car_heading 39@ {heading} 269.5
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_16172
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16301
clear_area -2536.8999 {y} 911.1 {z} 63.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -2536.8999 {y} 911.1 {z} 63.5
set_car_heading 40@ {heading} 89.8
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_16301
if 
  has_model_loaded 597
goto_if_false @STEAL2_16415
clear_area -2609.3 {y} 1012.8 {z} 76.8 {radius} 5.0 {clearParticles} True
41@ = create_car 597 {x} -2609.3 {y} 1012.8 {z} 76.8
set_car_heading 41@ {heading} 178.8
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_char_inside_car 41@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 41@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_16415
if 
  has_model_loaded 597
goto_if_false @STEAL2_16529
clear_area -2603.7 {y} 1011.2 {z} 76.8 {radius} 5.0 {clearParticles} True
42@ = create_car 597 {x} -2603.7 {y} 1011.2 {z} 76.8
set_car_heading 42@ {heading} 179.1
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_char_inside_car 42@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 42@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_16529
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16665
clear_area -2590.0 {y} 705.9 {z} 26.6 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2590.0 {y} 705.9 {z} 26.6
set_car_heading 43@ {heading} 268.3
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_car_driving_style 43@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_16665
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16801
clear_area -2463.0 {y} 710.6 {z} 33.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2463.0 {y} 710.6 {z} 33.9
set_car_heading 44@ {heading} 90.3
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_car_driving_style 44@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_16801
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16930
clear_area -2501.6001 {y} 562.7 {z} 13.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -2501.6001 {y} 562.7 {z} 13.1
set_car_heading 45@ {heading} 271.8
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_16930
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17066
clear_area -2390.8999 {y} 581.7 {z} 23.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2390.8999 {y} 581.7 {z} 23.9
set_car_heading 46@ {heading} 184.1
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_car_driving_style 46@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_17066
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17195
clear_area -2361.7 {y} 510.9 {z} 27.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = create_car 108@ {x} -2361.7 {y} 510.9 {z} 27.9
set_car_heading 47@ {heading} 100.0
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_random_char_as_driver 47@
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_17195
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17324
clear_area -2281.3 {y} 569.6 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -2281.3 {y} 569.6 {z} 33.7
set_car_heading 48@ {heading} 87.6
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_17324
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17460
clear_area -2358.8999 {y} 569.9 {z} 23.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -2358.8999 {y} 569.9 {z} 23.7
set_car_heading 49@ {heading} 90.7
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_car_driving_style 49@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_17460
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17596
clear_area -2373.1001 {y} 569.6 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = create_car 108@ {x} -2373.1001 {y} 569.6 {z} 23.4
set_car_heading 50@ {heading} 91.3
lock_car_doors 50@ {lockStatus} CarLock.Locked
72@ = create_random_char_as_driver 50@
set_car_driving_style 50@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False

:STEAL2_17596
100@ = 1

:STEAL2_17603
if 
  100@ == 1
goto_if_false @STEAL2_17866
if 
  locate_car_2d 34@ {x} -2610.7 {y} 992.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_17866
if 
  not is_car_dead 38@
goto_if_false @STEAL2_17715
set_car_forward_speed 38@ {forwardSpeed} 15.0
set_car_cruise_speed 38@ {maxSpeed} 15.0
car_goto_coordinates 38@ {x} -2736.3999 {y} 1006.9 {z} 53.0

:STEAL2_17715
if 
  not is_car_dead 41@
goto_if_false @STEAL2_17787
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_17787
set_car_follow_car 41@ {handle} 34@ {radius} 10.0
switch_car_siren 41@ {state} True

:STEAL2_17787
if 
  not is_car_dead 42@
goto_if_false @STEAL2_17859
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_17859
set_car_follow_car 42@ {handle} 34@ {radius} 20.0
switch_car_siren 42@ {state} True

:STEAL2_17859
100@ = 2

:STEAL2_17866
if 
  100@ == 2
goto_if_false @STEAL2_18008
if 
  locate_car_2d 34@ {x} -2610.3999 {y} 922.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18008
if 
  not is_car_dead 39@
goto_if_false @STEAL2_17945
start_playback_recorded_car 39@ {path} 93

:STEAL2_17945
if 
  not is_car_dead 40@
goto_if_false @STEAL2_18001
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0
car_goto_coordinates 40@ {x} -2604.0 {y} 963.9 {z} 76.7

:STEAL2_18001
100@ = 3

:STEAL2_18008
if 
  100@ == 3
goto_if_false @STEAL2_18173
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_18173
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 43@
goto_if_false @STEAL2_18115
start_playback_recorded_car 43@ {path} 95

:STEAL2_18115
if 
  not is_car_dead 44@
goto_if_false @STEAL2_18138
start_playback_recorded_car 44@ {path} 96

:STEAL2_18138
start_playback_recorded_car 34@ {path} 94
114@ = 0
103@ = 0
100@ = 0
99@ = 8

:STEAL2_18173
if 
  99@ == 8
goto_if_false @STEAL2_18866
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18321
if 
  locate_car_2d 34@ {x} -2528.8999 {y} 737.7 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18321
if 
  112@ == 0
goto_if_false @STEAL2_18321
112@ = 8
113@ = 9
159@ = 10
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_18321
if 
  114@ == 1
goto_if_false @STEAL2_18378
if 
  112@ == 0
goto_if_false @STEAL2_18378
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_18378
if 
  103@ == 0
goto_if_false @STEAL2_18396

:STEAL2_18396
if 
  100@ == 0
goto_if_false @STEAL2_18421
100@ = 1

:STEAL2_18421
if 
  100@ == 1
goto_if_false @STEAL2_18866
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_18866
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
if 
  not is_car_dead 45@
goto_if_false @STEAL2_18551
set_car_forward_speed 45@ {forwardSpeed} 15.0
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_goto_coordinates 45@ {x} -2400.7 {y} 562.2 {z} 23.4

:STEAL2_18551
if 
  not is_car_dead 46@
goto_if_false @STEAL2_18607
set_car_forward_speed 46@ {forwardSpeed} 15.0
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_goto_coordinates 46@ {x} -2319.5 {y} 424.7 {z} 33.6

:STEAL2_18607
if 
  not is_car_dead 47@
goto_if_false @STEAL2_18663
set_car_forward_speed 47@ {forwardSpeed} 15.0
set_car_cruise_speed 47@ {maxSpeed} 15.0
car_goto_coordinates 47@ {x} -2383.1001 {y} 551.4 {z} 23.6

:STEAL2_18663
if 
  not is_car_dead 48@
goto_if_false @STEAL2_18719
set_car_forward_speed 48@ {forwardSpeed} 15.0
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_goto_coordinates 48@ {x} -2372.8999 {y} 569.6 {z} 23.4

:STEAL2_18719
if 
  not is_car_dead 49@
goto_if_false @STEAL2_18775
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -2516.5 {y} 569.9 {z} 13.1

:STEAL2_18775
if 
  not is_car_dead 50@
goto_if_false @STEAL2_18831
set_car_forward_speed 50@ {forwardSpeed} 15.0
set_car_cruise_speed 50@ {maxSpeed} 15.0
car_goto_coordinates 50@ {x} -2383.8999 {y} 655.8 {z} 33.6

:STEAL2_18831
start_playback_recorded_car 34@ {path} 97
114@ = 0
103@ = 0
100@ = 0
99@ = 9

:STEAL2_18866
if 
  99@ == 9
goto_if_false @STEAL2_20783
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18989
if 
  locate_car_2d 34@ {x} -2528.6001 {y} 656.4 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18989
112@ = 10
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_18989
if 
  114@ == 1
goto_if_false @STEAL2_19098
if 
  locate_car_2d 34@ {x} -2375.0 {y} 566.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_19098
if 
  112@ == 0
goto_if_false @STEAL2_19098
112@ = 8
113@ = 10
159@ = 11
gosub @STEAL2_30237
114@ = 2

:STEAL2_19098
if 
  114@ == 2
goto_if_false @STEAL2_19146
if 
  112@ == 0
goto_if_false @STEAL2_19146
clear_wanted_level $player1
114@ = 3

:STEAL2_19146
if 
  114@ == 3
goto_if_false @STEAL2_19203
if 
  112@ == 0
goto_if_false @STEAL2_19203
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_19203
if 
  103@ == 0
goto_if_false @STEAL2_19221

:STEAL2_19221
if 
  100@ == 0
goto_if_false @STEAL2_20329
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19368
clear_area -2269.1001 {y} 5748.0 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2269.1001 {y} 5748.0 {z} 33.7
set_car_heading 36@ {heading} 182.3
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_19368
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19497
clear_area -2251.1001 {y} 561.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2251.1001 {y} 561.9 {z} 33.7
set_car_heading 37@ {heading} 271.1
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_19497
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19626
clear_area -2212.5 {y} 569.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2212.5 {y} 569.9 {z} 33.7
set_car_heading 38@ {heading} 91.3
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_19626
clear_area -2229.3999 {y} 532.7 {z} 34.0 {radius} 5.0 {clearParticles} True
39@ = create_car 437 {x} -2229.3999 {y} 532.7 {z} 34.0
set_car_heading 39@ {heading} 180.3
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19827
clear_area -2342.8 {y} 505.3 {z} 28.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -2342.8 {y} 505.3 {z} 28.3
set_car_heading 41@ {heading} 269.2
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_19827
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19956
clear_area -2293.5 {y} 505.4 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -2293.5 {y} 505.4 {z} 33.7
set_car_heading 42@ {heading} 270.0
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_19956
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_20085
clear_area -2238.8999 {y} 511.2 {z} 34.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2238.8999 {y} 511.2 {z} 34.7
set_car_heading 43@ {heading} 90.6
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_20085
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_20214
clear_area -2224.0 {y} 496.6 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2224.0 {y} 496.6 {z} 33.7
set_car_heading 44@ {heading} 0.0
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_20214
clear_area -2232.2 {y} 529.5 {z} 34.2 {radius} 5.0 {clearParticles} True
77@ = create_random_char -2232.2 {y} 529.5 {z} 34.2
set_char_heading 77@ {heading} 174.2
clear_area -2232.5 {y} 531.0 {z} 34.2 {radius} 5.0 {clearParticles} True
78@ = create_random_char -2232.5 {y} 531.0 {z} 34.2
set_char_heading 78@ {heading} 174.2
100@ = 1

:STEAL2_20329
if 
  100@ == 1
goto_if_false @STEAL2_20783
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_20783
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
if 
  not is_car_dead 36@
goto_if_false @STEAL2_20479
set_car_forward_speed 36@ {forwardSpeed} 15.0
set_car_cruise_speed 36@ {maxSpeed} 15.0
car_goto_coordinates 36@ {x} -2174.8999 {y} 561.8 {z} 33.6

:STEAL2_20479
if 
  not is_car_dead 37@
goto_if_false @STEAL2_20535
set_car_forward_speed 37@ {forwardSpeed} 15.0
set_car_cruise_speed 37@ {maxSpeed} 15.0
car_goto_coordinates 37@ {x} -2160.2 {y} 561.9 {z} 33.6

:STEAL2_20535
if 
  not is_car_dead 41@
goto_if_false @STEAL2_20591
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 15.0
car_goto_coordinates 41@ {x} -2252.6001 {y} 505.7 {z} 33.7

:STEAL2_20591
if 
  not is_car_dead 42@
goto_if_false @STEAL2_20647
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 15.0
car_goto_coordinates 42@ {x} -2239.3999 {y} 505.7 {z} 33.7

:STEAL2_20647
if 
  not is_car_dead 43@
goto_if_false @STEAL2_20703
set_car_forward_speed 43@ {forwardSpeed} 15.0
set_car_cruise_speed 43@ {maxSpeed} 15.0
car_goto_coordinates 43@ {x} -2361.2 {y} 511.5 {z} 27.9

:STEAL2_20703
start_playback_recorded_car 34@ {path} 98
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 449
request_model #DYN_ROADBARRIER_3
request_model #DYN_ROADBARRIER_4
request_model #KMB_SKIP
request_model #DYN_DUMPSTER
request_model 486
request_model 524
request_model #DYN_RAMP
114@ = 0
103@ = 0
100@ = 0
99@ = 10

:STEAL2_20783
if 
  99@ == 10
goto_if_false @STEAL2_21758
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_20931
if 
  locate_car_2d 34@ {x} -2264.5 {y} 546.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_20931
if 
  112@ == 0
goto_if_false @STEAL2_20931
112@ = 8
113@ = 11
159@ = 12
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_20931
if 
  114@ == 1
goto_if_false @STEAL2_21010
if 
  locate_car_2d 34@ {x} -2224.1001 {y} 454.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_21010
print_now 'STE2_04' {time} 4000 {flag} 1
114@ = 2

:STEAL2_21010
if 
  114@ == 2
goto_if_false @STEAL2_21067
if 
  112@ == 0
goto_if_false @STEAL2_21067
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_21067
if 
  103@ == 0
goto_if_false @STEAL2_21085

:STEAL2_21085
if 
  100@ == 0
goto_if_false @STEAL2_21126
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_21126
100@ = 1

:STEAL2_21126
if 
  100@ == 1
goto_if_false @STEAL2_21758
if 
  locate_char_in_car_2d $scplayer {x} -2213.8999 {y} 453.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @STEAL2_21758
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_21401
clear_area -2228.8 {y} 521.1 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2228.8 {y} 521.1 {z} 33.8
set_car_heading 46@ {heading} 179.4
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_21401
if 
  has_model_loaded 597
goto_if_false @STEAL2_21515
clear_area -2149.3999 {y} 462.0 {z} 33.8 {radius} 5.0 {clearParticles} True
47@ = create_car 597 {x} -2149.3999 {y} 462.0 {z} 33.8
set_car_heading 47@ {heading} 174.8
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_char_inside_car 47@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 47@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_21515
if 
  has_model_loaded 597
goto_if_false @STEAL2_21629
clear_area -2148.8 {y} 444.0 {z} 33.8 {radius} 5.0 {clearParticles} True
48@ = create_car 597 {x} -2148.8 {y} 444.0 {z} 33.8
set_car_heading 48@ {heading} 360.0
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_char_inside_car 48@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 48@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_21629
if 
  not is_car_dead 34@
goto_if_false @STEAL2_21652
start_playback_recorded_car 34@ {path} 65

:STEAL2_21652
if 
  not is_car_dead 47@
goto_if_false @STEAL2_21682
start_playback_recorded_car 47@ {path} 66
switch_car_siren 47@ {state} True

:STEAL2_21682
if 
  not is_car_dead 48@
goto_if_false @STEAL2_21712
start_playback_recorded_car 48@ {path} 67
switch_car_siren 48@ {state} True

:STEAL2_21712
clear_this_print 'STE2_04'
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 11

:STEAL2_21758
if 
  99@ == 11
goto_if_false @STEAL2_22885
if 
  114@ == 0
goto_if_false @STEAL2_21855
if 
  TIMERB > 1000
goto_if_false @STEAL2_21855
112@ = 11
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_21855
if 
  114@ == 1
goto_if_false @STEAL2_21905
if 
  112@ == 0
goto_if_false @STEAL2_21905
alter_wanted_level_no_drop $player1 {wantedLevel} 2
114@ = 2

:STEAL2_21905
if 
  114@ == 2
goto_if_false @STEAL2_21962
if 
  112@ == 0
goto_if_false @STEAL2_21962
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_21962
if 
  103@ == 0
goto_if_false @STEAL2_21980

:STEAL2_21980
if 
  100@ == 0
goto_if_false @STEAL2_22816
clear_area -2128.1001 {y} 496.6 {z} 34.0 {radius} 100.0 {clearParticles} True
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
80@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 496.6 {z} 34.0
set_object_heading 80@ {heading} 270.0
81@ = create_object #DYN_ROADBARRIER_4 {x} -2128.1001 {y} 501.6 {z} 34.0
set_object_heading 81@ {heading} 270.0
82@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 503.6 {z} 34.0
set_object_heading 82@ {heading} 270.0
83@ = create_object #DYN_ROADBARRIER_4 {x} -2128.1001 {y} 506.8 {z} 34.0
set_object_heading 83@ {heading} 270.0
84@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 511.6 {z} 34.0
set_object_heading 84@ {heading} 270.0
85@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 496.6 {z} 34.0
set_object_heading 85@ {heading} 90.0
86@ = create_object #DYN_ROADBARRIER_4 {x} -2016.1 {y} 501.6 {z} 34.0
set_object_heading 86@ {heading} 90.0
87@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 503.6 {z} 34.0
set_object_heading 87@ {heading} 90.0
88@ = create_object #DYN_ROADBARRIER_4 {x} -2016.1 {y} 506.8 {z} 34.0
set_object_heading 88@ {heading} 90.0
89@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 511.6 {z} 34.0
set_object_heading 89@ {heading} 90.0
90@ = create_object #KMB_SKIP {x} -2096.1001 {y} 501.8 {z} 34.0
set_object_heading 90@ {heading} 90.0
91@ = create_object #DYN_DUMPSTER {x} -2096.1001 {y} 504.8 {z} 34.0
set_object_heading 91@ {heading} 270.0
92@ = create_object #DYN_RAMP {x} -2056.8999 {y} 503.8 {z} 34.0
set_object_heading 92@ {heading} 270.0
if 
  has_model_loaded 486
goto_if_false @STEAL2_22697
36@ = create_car 486 {x} -2084.6001 {y} 501.2 {z} 34.4
set_car_heading 36@ {heading} 269.7
set_load_collision_for_car_flag 36@ {state} True

:STEAL2_22697
if 
  has_model_loaded 486
goto_if_false @STEAL2_22753
37@ = create_car 486 {x} -2045.1 {y} 500.9 {z} 34.3
set_car_heading 37@ {heading} 156.1
set_load_collision_for_car_flag 37@ {state} True

:STEAL2_22753
if 
  has_model_loaded 524
goto_if_false @STEAL2_22809
38@ = create_car 524 {x} -2048.3 {y} 508.4 {z} 35.0
set_car_heading 38@ {heading} 88.4
set_load_collision_for_car_flag 38@ {state} True

:STEAL2_22809
100@ = 1

:STEAL2_22816
if 
  100@ == 1
goto_if_false @STEAL2_22885
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_22885
start_playback_recorded_car 34@ {path} 99
114@ = 0
103@ = 0
100@ = 0
99@ = 12

:STEAL2_22885
if 
  99@ == 12
goto_if_false @STEAL2_23173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_22928

:STEAL2_22928
if 
  103@ == 0
goto_if_false @STEAL2_22946

:STEAL2_22946
if 
  100@ == 0
goto_if_false @STEAL2_22971
100@ = 1

:STEAL2_22971
if 
  100@ == 1
goto_if_false @STEAL2_23173
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_23173
set_car_density_multiplier 1.0
171@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2009.7 {y} 192.2 {z} 26.0 {speed} 45.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2031.7 {y} 180.1 {z} 27.4 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_23145
remove_blip 98@
98@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4

:STEAL2_23145
114@ = 0
103@ = 0
100@ = 0
99@ = 13

:STEAL2_23173
if 
  99@ == 13
goto_if_false @STEAL2_23938
if 
  114@ == 0
goto_if_false @STEAL2_23368
if 
  112@ == 0
goto_if_false @STEAL2_23368
112@ = 12
113@ = 0
gosub @STEAL2_30237
if 
  not is_car_dead 47@
goto_if_false @STEAL2_23347
if 
  not is_car_dead 48@
goto_if_false @STEAL2_23347
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 47@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @STEAL2_23347
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 48@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @STEAL2_23347
clear_wanted_level $player1

:STEAL2_23347
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_23368
if 
  114@ == 1
goto_if_false @STEAL2_23427
if 
  112@ == 0
goto_if_false @STEAL2_23427
print 'STE2_05' {time} 4000 {flag} 1
114@ = 2

:STEAL2_23427
if 
  114@ == 2
goto_if_false @STEAL2_23484
if 
  112@ == 0
goto_if_false @STEAL2_23484
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_23484
if 
  100@ == 0
goto_if_false @STEAL2_23845
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_23845
set_ped_density_multiplier 1.0
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 95@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_object_as_no_longer_needed 85@
mark_object_as_no_longer_needed 86@
mark_object_as_no_longer_needed 87@
mark_object_as_no_longer_needed 88@
mark_object_as_no_longer_needed 89@
mark_object_as_no_longer_needed 90@
mark_object_as_no_longer_needed 91@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 94@
100@ = 1

:STEAL2_23845
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_23938
if 
  locate_char_in_car_3d $scplayer {x} -2024.7 {y} 179.4 {z} 27.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_23938
clear_wanted_level $player1
set_player_control $player1 {state} False
100@ = 0
99@ = 14

:STEAL2_23938
if 
  99@ == 14
goto_if_false @STEAL2_24933
if 
  100@ == 0
goto_if_false @STEAL2_24525
do_fade 500 {direction} Fade.Out

:STEAL2_23981
if 
  get_fading_status 
goto_if_false @STEAL2_24005
wait 0
goto @STEAL2_23981

:STEAL2_24005
open_garage 'HBGDSFS'

:STEAL2_24016
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL2_24049
wait 0
goto @STEAL2_24016

:STEAL2_24049
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24081
goto @STEAL2_26013

:STEAL2_24081
set_area_visible 1
shut_all_chars_up True
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
request_animation "PLAYIDLES"
load_all_models_now 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_area_visible $scplayer {areaId} 1
clear_area -2043.7 {y} 171.4 {z} 27.6 {radius} 100.0 {clearParticles} True
set_vehicle_area_visible 34@ {interiorId} 1
set_car_coordinates 34@ {x} -2043.7 {y} 171.4 {z} 27.6
set_car_heading 34@ {heading} 91.6
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
set_char_area_visible $cesar {areaId} 1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -2045.4 {y} 173.1 {z} 27.8
set_char_heading $cesar {heading} 325.5
set_vehicle_area_visible 35@ {interiorId} 1
set_car_coordinates 35@ {x} -2033.8 {y} 178.6 {z} 27.6
set_car_heading 35@ {heading} 90.0
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_24337
warp_char_into_car $scplayer {vehicle} 35@

:STEAL2_24337
171@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2044.4 {y} 177.6 {z} 27.6 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
set_fixed_camera_position -2049.3 {y} 172.8 {z} 28.78 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2034.7 {y} 177.4 {z} 29.8 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:STEAL2_24462
if 
  get_fading_status 
goto_if_false @STEAL2_24486
wait 0
goto @STEAL2_24462

:STEAL2_24486
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24518
goto @STEAL2_26013

:STEAL2_24518
100@ = 1

:STEAL2_24525
if 
  100@ == 1
goto_if_false @STEAL2_24628
if 
  is_car_in_area_2d 35@ {leftBottomX} -2039.3 {leftBottomY} 175.1 {rightTopX} -2041.9 {rightTopY} 181.6 {drawSphere} False
goto_if_false @STEAL2_24628
task_play_anim $cesar {animationName} "STRETCH" {animationFile} "PLAYIDLES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
100@ = 2

:STEAL2_24628
if 
  100@ == 2
goto_if_false @STEAL2_24933
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_24933
do_fade 500 {direction} Fade.Out

:STEAL2_24682
if 
  get_fading_status 
goto_if_false @STEAL2_24706
wait 0
goto @STEAL2_24682

:STEAL2_24706
close_garage 'HBGDSFS'

:STEAL2_24717
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL2_24750
wait 0
goto @STEAL2_24717

:STEAL2_24750
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24782
goto @STEAL2_26013

:STEAL2_24782
shut_all_chars_up False
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.8
set_char_heading $scplayer {heading} 277.5
do_fade 500 {direction} Fade.In
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:STEAL2_24902
if 
  get_fading_status 
goto_if_false @STEAL2_24926
wait 0
goto @STEAL2_24902

:STEAL2_24926
goto @STEAL2_26031

:STEAL2_24933
if 
  99@ == 0
goto_if_false @STEAL2_25141
if 
  not has_car_recording_been_loaded 70
goto_if_false @STEAL2_24970
request_car_recording 70

:STEAL2_24970
if 
  not has_car_recording_been_loaded 71
goto_if_false @STEAL2_24989
request_car_recording 71

:STEAL2_24989
if 
  not has_car_recording_been_loaded 72
goto_if_false @STEAL2_25008
request_car_recording 72

:STEAL2_25008
if 
  not has_car_recording_been_loaded 73
goto_if_false @STEAL2_25027
request_car_recording 73

:STEAL2_25027
if 
  not has_car_recording_been_loaded 74
goto_if_false @STEAL2_25046
request_car_recording 74

:STEAL2_25046
if 
  not has_car_recording_been_loaded 75
goto_if_false @STEAL2_25065
request_car_recording 75

:STEAL2_25065
if 
  not has_car_recording_been_loaded 76
goto_if_false @STEAL2_25084
request_car_recording 76

:STEAL2_25084
if 
  not has_car_recording_been_loaded 77
goto_if_false @STEAL2_25103
request_car_recording 77

:STEAL2_25103
if 
  not has_car_recording_been_loaded 78
goto_if_false @STEAL2_25122
request_car_recording 78

:STEAL2_25122
if 
  not has_car_recording_been_loaded 79
goto_if_false @STEAL2_25141
request_car_recording 79

:STEAL2_25141
if 
  99@ == 2
goto_if_false @STEAL2_25254
if 
  not has_car_recording_been_loaded 80
goto_if_false @STEAL2_25178
request_car_recording 80

:STEAL2_25178
if 
  not has_car_recording_been_loaded 81
goto_if_false @STEAL2_25197
request_car_recording 81

:STEAL2_25197
if 
  not has_car_recording_been_loaded 83
goto_if_false @STEAL2_25216
request_car_recording 83

:STEAL2_25216
if 
  not has_car_recording_been_loaded 84
goto_if_false @STEAL2_25235
request_car_recording 84

:STEAL2_25235
if 
  not has_car_recording_been_loaded 85
goto_if_false @STEAL2_25254
request_car_recording 85

:STEAL2_25254
if 
  99@ == 4
goto_if_false @STEAL2_25310
if 
  not has_car_recording_been_loaded 86
goto_if_false @STEAL2_25291
request_car_recording 86

:STEAL2_25291
if 
  not has_car_recording_been_loaded 87
goto_if_false @STEAL2_25310
request_car_recording 87

:STEAL2_25310
if 
  99@ == 5
goto_if_false @STEAL2_25404
if 
  not has_car_recording_been_loaded 88
goto_if_false @STEAL2_25347
request_car_recording 88

:STEAL2_25347
if 
  not has_car_recording_been_loaded 89
goto_if_false @STEAL2_25366
request_car_recording 89

:STEAL2_25366
if 
  not has_car_recording_been_loaded 90
goto_if_false @STEAL2_25385
request_car_recording 90

:STEAL2_25385
if 
  not has_car_recording_been_loaded 91
goto_if_false @STEAL2_25404
request_car_recording 91

:STEAL2_25404
if 
  99@ == 6
goto_if_false @STEAL2_25460
if 
  not has_car_recording_been_loaded 92
goto_if_false @STEAL2_25441
request_car_recording 92

:STEAL2_25441
if 
  not has_car_recording_been_loaded 93
goto_if_false @STEAL2_25460
request_car_recording 93

:STEAL2_25460
if 
  99@ == 7
goto_if_false @STEAL2_25554
if 
  not has_car_recording_been_loaded 94
goto_if_false @STEAL2_25497
request_car_recording 94

:STEAL2_25497
if 
  not has_car_recording_been_loaded 95
goto_if_false @STEAL2_25516
request_car_recording 95

:STEAL2_25516
if 
  not has_car_recording_been_loaded 96
goto_if_false @STEAL2_25535
request_car_recording 96

:STEAL2_25535
if 
  not has_car_recording_been_loaded 97
goto_if_false @STEAL2_25554
request_car_recording 97

:STEAL2_25554
if 
  99@ == 8
goto_if_false @STEAL2_25648
if 
  not has_car_recording_been_loaded 98
goto_if_false @STEAL2_25591
request_car_recording 98

:STEAL2_25591
if 
  not has_car_recording_been_loaded 65
goto_if_false @STEAL2_25610
request_car_recording 65

:STEAL2_25610
if 
  not has_car_recording_been_loaded 66
goto_if_false @STEAL2_25629
request_car_recording 66

:STEAL2_25629
if 
  not has_car_recording_been_loaded 67
goto_if_false @STEAL2_25648
request_car_recording 67

:STEAL2_25648
if 
  99@ == 11
goto_if_false @STEAL2_25685
if 
  not has_car_recording_been_loaded 99
goto_if_false @STEAL2_25685
request_car_recording 99

:STEAL2_25685
if 
  99@ > 0
goto_if_false @STEAL2_25956
if 
  13 > 99@
goto_if_false @STEAL2_25956
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @STEAL2_25793
if 
  not is_car_on_screen 34@
goto_if_false @STEAL2_25793
clear_prints 
print_now 'STE2_06' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25793
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@ {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @STEAL2_25865
if 
  not is_car_on_screen 35@
goto_if_false @STEAL2_25865
clear_prints 
print_now 'STE2_09' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25865
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_25956
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @STEAL2_25956
if 
  not is_car_on_screen 35@
goto_if_false @STEAL2_25956
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25956
if 
  99@ > 0
goto_if_false @STEAL2_25999
if 
  14 > 99@
goto_if_false @STEAL2_25999
gosub @STEAL2_26597

:STEAL2_25999
gosub @STEAL2_28925
goto @STEAL2_988

:STEAL2_26013
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL2_26031
$flag_steal_mission_counter += 1
switch_car_generator $steal_car_cargen1 {amount} 101
switch_car_generator $steal_car_cargen2 {amount} 101
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'STEAL_2'
player_made_progress 1
return 

:STEAL2_26109
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL2_26127
restore_camera_jumpcut 

:STEAL2_26127
remove_char_elegantly $cesar
if 
  not is_char_dead $scplayer
goto_if_false @STEAL2_26155
shut_char_up_for_scripted_speech $scplayer {state} False

:STEAL2_26155
shut_all_chars_up False
mark_model_as_no_longer_needed 560
mark_model_as_no_longer_needed 562
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #CARDBOARDBOX
mark_model_as_no_longer_needed 449
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 461
mark_vehicle_mod_as_no_longer_needed #NTO_B_S
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 524
mark_model_as_no_longer_needed #DYN_ROADBARRIER_3
mark_model_as_no_longer_needed #DYN_ROADBARRIER_4
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed #DYN_DUMPSTER
mark_model_as_no_longer_needed #DYN_RAMP
dont_suppress_any_car_models 
remove_animation "PLAYIDLES"
remove_blip 98@
unload_special_character 1
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL2_26289
if 
  is_char_dead $cesar
goto_if_false @STEAL2_26330
clear_prints 
print_now 'STE2_07' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26330
if 
  is_car_dead 35@
goto_if_false @STEAL2_26371
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26371
if 
  is_car_dead 34@
goto_if_false @STEAL2_26412
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26412
return 

:STEAL2_26414
if 
  104@ == 1
goto_if_false @STEAL2_26478
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_26478
remove_blip 98@
98@ = add_blip_for_char $cesar
set_blip_as_friendly 98@ {state} True
104@ = 0

:STEAL2_26478
if 
  104@ == 0
goto_if_false @STEAL2_26595
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL2_26595
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_26563
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:STEAL2_26563
remove_blip 98@
98@ = add_blip_for_coord -1632.9 {y} 1207.4 {z} 6.1
104@ = 1

:STEAL2_26595
return 

:STEAL2_26597
if 
  105@ == 0
goto_if_false @STEAL2_26749
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_26749
clear_this_print 'IN_VEH'
remove_blip 98@
if 
  99@ == 13
goto_if_false @STEAL2_26711
98@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print 'STE2_05' {time} 4000 {flag} 1
goto @STEAL2_26742

:STEAL2_26711
98@ = add_blip_for_car 34@
set_blip_as_friendly 98@ {state} True
print 'STE2_02' {time} 7000 {flag} 1

:STEAL2_26742
105@ = 1

:STEAL2_26749
if 
  105@ == 1
goto_if_false @STEAL2_26851
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_26851
clear_this_print 'STE2_05'
clear_this_print 'STE2_02'
print 'STE2_11' {time} 7000 {flag} 1
remove_blip 98@
98@ = add_blip_for_car 35@
set_blip_as_friendly 98@ {state} True
105@ = 0

:STEAL2_26851
return 

:STEAL2_26853
162@, 163@, $z = get_char_coordinates $scplayer
164@, 165@, $z = get_car_coordinates 34@
166@ = get_distance_between_coords_2d 162@ {fromY} 163@ {toX} 164@ {toZ} 165@
if 
  21.0 > 166@
goto_if_false @STEAL2_26962
166@ /= 20.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 2.0
sub_float_lvar_from_float_lvar 166@ -= 167@
goto @STEAL2_27008

:STEAL2_26962
166@ -= 20.0
166@ /= 90.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 1.0
sub_float_lvar_from_float_lvar 166@ -= 167@

:STEAL2_27008
166@ += 0.3
set_lvar_float_to_lvar_float 168@ = 166@
if 
  168@ > 2.0
goto_if_false @STEAL2_27057
168@ = 2.0

:STEAL2_27057
if 
  0.5 > 168@
goto_if_false @STEAL2_27088
168@ = 0.5

:STEAL2_27088
if 
  is_playback_going_on_for_car 34@
goto_if_false @STEAL2_27112
set_playback_speed 34@ {speed} 168@

:STEAL2_27112
if 
  not is_car_dead 95@
goto_if_false @STEAL2_27152
if 
  is_playback_going_on_for_car 95@
goto_if_false @STEAL2_27152
set_playback_speed 95@ {speed} 168@

:STEAL2_27152
if 
  99@ == 1
goto_if_false @STEAL2_27410
if 
  not is_car_dead 38@
goto_if_false @STEAL2_27210
if 
  is_playback_going_on_for_car 38@
goto_if_false @STEAL2_27210
set_playback_speed 38@ {speed} 168@

:STEAL2_27210
if 
  not is_car_dead 39@
goto_if_false @STEAL2_27250
if 
  is_playback_going_on_for_car 39@
goto_if_false @STEAL2_27250
set_playback_speed 39@ {speed} 168@

:STEAL2_27250
if 
  not is_car_dead 40@
goto_if_false @STEAL2_27290
if 
  is_playback_going_on_for_car 40@
goto_if_false @STEAL2_27290
set_playback_speed 40@ {speed} 168@

:STEAL2_27290
if 
  not is_car_dead 41@
goto_if_false @STEAL2_27330
if 
  is_playback_going_on_for_car 41@
goto_if_false @STEAL2_27330
set_playback_speed 41@ {speed} 168@

:STEAL2_27330
if 
  not is_car_dead 42@
goto_if_false @STEAL2_27370
if 
  is_playback_going_on_for_car 42@
goto_if_false @STEAL2_27370
set_playback_speed 42@ {speed} 168@

:STEAL2_27370
if 
  not is_car_dead 43@
goto_if_false @STEAL2_27410
if 
  is_playback_going_on_for_car 43@
goto_if_false @STEAL2_27410
set_playback_speed 43@ {speed} 168@

:STEAL2_27410
if 
  99@ == 4
goto_if_false @STEAL2_27452
if 
  not is_car_dead 51@
goto_if_false @STEAL2_27452
set_playback_speed 51@ {speed} 168@

:STEAL2_27452
if 
  99@ == 5
goto_if_false @STEAL2_27494
if 
  not is_car_dead 38@
goto_if_false @STEAL2_27494
set_playback_speed 38@ {speed} 168@

:STEAL2_27494
if 
  99@ == 6
goto_if_false @STEAL2_27584
if 
  not is_car_dead 50@
goto_if_false @STEAL2_27536
set_playback_speed 50@ {speed} 168@

:STEAL2_27536
if 
  not is_car_dead 52@
goto_if_false @STEAL2_27560
set_playback_speed 52@ {speed} 168@

:STEAL2_27560
if 
  not is_car_dead 53@
goto_if_false @STEAL2_27584
set_playback_speed 53@ {speed} 168@

:STEAL2_27584
if 
  99@ == 7
goto_if_false @STEAL2_27626
if 
  not is_car_dead 39@
goto_if_false @STEAL2_27626
set_playback_speed 39@ {speed} 168@

:STEAL2_27626
if 
  99@ == 8
goto_if_false @STEAL2_27692
if 
  not is_car_dead 43@
goto_if_false @STEAL2_27668
set_playback_speed 43@ {speed} 168@

:STEAL2_27668
if 
  not is_car_dead 44@
goto_if_false @STEAL2_27692
set_playback_speed 44@ {speed} 168@

:STEAL2_27692
return 

:STEAL2_27694
111@ = generate_random_int_in_range 1 {max} 37
if 
  111@ == 1
goto_if_false @STEAL2_27736
custom_plate_for_next_car 110@ {text} "GOT_M00_"

:STEAL2_27736
if 
  111@ == 2
goto_if_false @STEAL2_27769
custom_plate_for_next_car 110@ {text} "M00TV_4U"

:STEAL2_27769
if 
  111@ == 3
goto_if_false @STEAL2_27802
custom_plate_for_next_car 110@ {text} "MATHEW_2"

:STEAL2_27802
if 
  111@ == 4
goto_if_false @STEAL2_27835
custom_plate_for_next_car 110@ {text} "D4_DEW0R"

:STEAL2_27835
if 
  111@ == 5
goto_if_false @STEAL2_27868
custom_plate_for_next_car 110@ {text} "D0DE_777"

:STEAL2_27868
if 
  111@ == 6
goto_if_false @STEAL2_27901
custom_plate_for_next_car 110@ {text} "DAM0_666"

:STEAL2_27901
if 
  111@ == 7
goto_if_false @STEAL2_27934
custom_plate_for_next_car 110@ {text} "C0NEY_88"

:STEAL2_27934
if 
  111@ == 8
goto_if_false @STEAL2_27967
custom_plate_for_next_car 110@ {text} "PRE4CHER"

:STEAL2_27967
if 
  111@ == 9
goto_if_false @STEAL2_28000
custom_plate_for_next_car 110@ {text} "DBP_4NDY"

:STEAL2_28000
if 
  111@ == 10
goto_if_false @STEAL2_28033
custom_plate_for_next_car 110@ {text} "EV1L_SLY"

:STEAL2_28033
if 
  111@ == 11
goto_if_false @STEAL2_28066
custom_plate_for_next_car 110@ {text} "N1_R4V3N"

:STEAL2_28066
if 
  111@ == 12
goto_if_false @STEAL2_28099
custom_plate_for_next_car 110@ {text} "D1VX_Z00"

:STEAL2_28099
if 
  111@ == 13
goto_if_false @STEAL2_28131
custom_plate_for_next_car 110@ {text} "MR_B3NN"

:STEAL2_28131
if 
  111@ == 14
goto_if_false @STEAL2_28164
custom_plate_for_next_car 110@ {text} "R3D_R4SP"

:STEAL2_28164
if 
  111@ == 15
goto_if_false @STEAL2_28197
custom_plate_for_next_car 110@ {text} "LA_B0MBA"

:STEAL2_28197
if 
  111@ == 16
goto_if_false @STEAL2_28230
custom_plate_for_next_car 110@ {text} "L3337_0G"

:STEAL2_28230
if 
  111@ == 17
goto_if_false @STEAL2_28263
custom_plate_for_next_car 110@ {text} "BUDD4H_X"

:STEAL2_28263
if 
  111@ == 18
goto_if_false @STEAL2_28296
custom_plate_for_next_car 110@ {text} "T3H_BUCK"

:STEAL2_28296
if 
  111@ == 19
goto_if_false @STEAL2_28329
custom_plate_for_next_car 110@ {text} "CHUNKY_1"

:STEAL2_28329
if 
  111@ == 20
goto_if_false @STEAL2_28362
custom_plate_for_next_car 110@ {text} "EV1L_BNZ"

:STEAL2_28362
if 
  111@ == 21
goto_if_false @STEAL2_28395
custom_plate_for_next_car 110@ {text} "S4ND_M4N"

:STEAL2_28395
if 
  111@ == 22
goto_if_false @STEAL2_28428
custom_plate_for_next_car 110@ {text} "RKK_DBP1"

:STEAL2_28428
if 
  111@ == 23
goto_if_false @STEAL2_28461
custom_plate_for_next_car 110@ {text} "RE1_K0KU"

:STEAL2_28461
if 
  111@ == 24
goto_if_false @STEAL2_28494
custom_plate_for_next_car 110@ {text} "S3XY_JUD"

:STEAL2_28494
if 
  111@ == 25
goto_if_false @STEAL2_28527
custom_plate_for_next_car 110@ {text} "SUNRA_93"

:STEAL2_28527
if 
  111@ == 26
goto_if_false @STEAL2_28560
custom_plate_for_next_car 110@ {text} "UG_FUX69"

:STEAL2_28560
if 
  111@ == 27
goto_if_false @STEAL2_28593
custom_plate_for_next_car 110@ {text} "LI0N_CUM"

:STEAL2_28593
if 
  111@ == 28
goto_if_false @STEAL2_28626
custom_plate_for_next_car 110@ {text} "RKK_PWND"

:STEAL2_28626
if 
  111@ == 29
goto_if_false @STEAL2_28659
custom_plate_for_next_car 110@ {text} "HAZE_B0B"

:STEAL2_28659
if 
  111@ == 30
goto_if_false @STEAL2_28692
custom_plate_for_next_car 110@ {text} "T3H_FLUF"

:STEAL2_28692
if 
  111@ == 31
goto_if_false @STEAL2_28725
custom_plate_for_next_car 110@ {text} "BM_4NDY_"

:STEAL2_28725
if 
  111@ == 32
goto_if_false @STEAL2_28758
custom_plate_for_next_car 110@ {text} "BM_D34N_"

:STEAL2_28758
if 
  111@ == 33
goto_if_false @STEAL2_28791
custom_plate_for_next_car 110@ {text} "BM_L4C3Y"

:STEAL2_28791
if 
  111@ == 34
goto_if_false @STEAL2_28824
custom_plate_for_next_car 110@ {text} "BM_D3V__"

:STEAL2_28824
if 
  111@ == 35
goto_if_false @STEAL2_28857
custom_plate_for_next_car 110@ {text} "NU_SK00L"

:STEAL2_28857
if 
  111@ == 36
goto_if_false @STEAL2_28890
custom_plate_for_next_car 110@ {text} "G4L_AVET"

:STEAL2_28890
if 
  111@ == 37
goto_if_false @STEAL2_28923
custom_plate_for_next_car 110@ {text} "M0J0_J0J"

:STEAL2_28923
return 

:STEAL2_28925
if 
  112@ == 1
goto_if_false @STEAL2_29051
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29044
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29006
gosub @STEAL2_32273
goto @STEAL2_29037

:STEAL2_29006
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29037
goto @STEAL2_29051

:STEAL2_29044
112@ = 0

:STEAL2_29051
if or
  112@ == 4
  112@ == 5
  112@ == 6
goto_if_false @STEAL2_29137
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29130
gosub @STEAL2_32012
gosub @STEAL2_32119
gosub @STEAL2_32273
goto @STEAL2_29137

:STEAL2_29130
112@ = 0

:STEAL2_29137
if or
  112@ == 7
  112@ == 8
  112@ == 9
  112@ == 10
  112@ == 11
  112@ == 12
goto_if_false @STEAL2_29298
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29291
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29253
gosub @STEAL2_32273
goto @STEAL2_29284

:STEAL2_29253
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29284
goto @STEAL2_29298

:STEAL2_29291
112@ = 0

:STEAL2_29298
if 
  99@ == 0
goto_if_false @STEAL2_30235
if 
  100@ == 0
goto_if_false @STEAL2_30235
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_29704
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL2_29697
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @STEAL2_29543
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29543
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29536
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29498
gosub @STEAL2_32273
goto @STEAL2_29529

:STEAL2_29498
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29529
goto @STEAL2_29543

:STEAL2_29536
112@ = 0

:STEAL2_29543
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @STEAL2_29697
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29697
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29690
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29652
gosub @STEAL2_32273
goto @STEAL2_29683

:STEAL2_29652
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29683
goto @STEAL2_29697

:STEAL2_29690
112@ = 0

:STEAL2_29697
goto @STEAL2_29821

:STEAL2_29704
if 
  14 > 112@
goto_if_false @STEAL2_29821
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29748
113@ += 1

:STEAL2_29748
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
clear_prints 
set_lvar_int_to_lvar_int 160@ = 112@
set_lvar_int_to_lvar_int 161@ = 113@
112@ = 14
113@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_29821
if 
  112@ == 14
goto_if_false @STEAL2_30012
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_29989
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29959
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29921
gosub @STEAL2_32273
goto @STEAL2_29952

:STEAL2_29921
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29952
goto @STEAL2_29982

:STEAL2_29959
print 'STE2_10' {time} 7000 {flag} 1
112@ = 15

:STEAL2_29982
goto @STEAL2_30012

:STEAL2_29989
print 'STE2_10' {time} 7000 {flag} 1
112@ = 15

:STEAL2_30012
if 
  112@ == 15
goto_if_false @STEAL2_30065
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_30065
112@ = 16
113@ = 0
clear_prints 

:STEAL2_30065
if 
  112@ == 16
goto_if_false @STEAL2_30235
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_30180
TIMERB = 0
set_lvar_int_to_lvar_int 112@ = 160@
set_lvar_int_to_lvar_int 113@ = 161@
gosub @STEAL2_30237
if 
  160@ == 0
goto_if_false @STEAL2_30173
print 'STE2_01' {time} 7000 {flag} 1
TIMERB = 0

:STEAL2_30173
goto @STEAL2_30235

:STEAL2_30180
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
112@ = 14
113@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_30235
return 

:STEAL2_30237
if 
  112@ == 1
goto_if_false @STEAL2_30284
set_lvar_text_label 115@s = 'STL2_AA'
set_lvar_int_to_constant 141@ = 5000
154@ = 1

:STEAL2_30284
if 
  112@ == 2
goto_if_false @STEAL2_30573
set_lvar_text_label 115@s = 'STL2_BA'
set_lvar_text_label 117@s = 'STL2_BB'
set_lvar_text_label 119@s = 'STL2_BC'
set_lvar_text_label 121@s = 'STL2_BD'
set_lvar_text_label 123@s = 'STL2_BE'
set_lvar_text_label 125@s = 'STL2_BF'
set_lvar_text_label 127@s = 'STL2_BG'
set_lvar_text_label 129@s = 'STL2_BH'
set_lvar_text_label 131@s = 'STL2_BJ'
set_lvar_text_label 133@s = 'STL2_BK'
set_lvar_text_label 135@s = 'STL2_BL'
set_lvar_text_label 137@s = 'STL2_BM'
set_lvar_int_to_constant 141@ = 5001
set_lvar_int_to_constant 142@ = 5039
set_lvar_int_to_constant 143@ = 5002
set_lvar_int_to_constant 144@ = 5003
set_lvar_int_to_constant 145@ = 5004
set_lvar_int_to_constant 146@ = 5040
set_lvar_int_to_constant 147@ = 5005
set_lvar_int_to_constant 148@ = 5038
set_lvar_int_to_constant 149@ = 5041
set_lvar_int_to_constant 150@ = 5042
set_lvar_int_to_constant 151@ = 5006
set_lvar_int_to_constant 152@ = 5043
154@ = 12

:STEAL2_30573
if 
  112@ == 3
goto_if_false @STEAL2_30752
set_lvar_text_label 115@s = 'STL2_CA'
set_lvar_text_label 117@s = 'STL2_CB'
set_lvar_text_label 119@s = 'STL2_CC'
set_lvar_text_label 121@s = 'STL2_CD'
set_lvar_text_label 123@s = 'STL2_CE'
set_lvar_text_label 125@s = 'STL2_CF'
set_lvar_text_label 127@s = 'STL2_CG'
set_lvar_int_to_constant 141@ = 5007
set_lvar_int_to_constant 142@ = 5044
set_lvar_int_to_constant 143@ = 5045
set_lvar_int_to_constant 144@ = 5046
set_lvar_int_to_constant 145@ = 5047
set_lvar_int_to_constant 146@ = 5008
set_lvar_int_to_constant 147@ = 5048
154@ = 7

:STEAL2_30752
if 
  112@ == 4
goto_if_false @STEAL2_30976
set_lvar_text_label 115@s = 'STL2_DA'
set_lvar_text_label 117@s = 'STL2_DB'
set_lvar_text_label 119@s = 'STL2_DC'
set_lvar_text_label 121@s = 'STL2_DD'
set_lvar_text_label 123@s = 'STL2_DE'
set_lvar_text_label 125@s = 'STL2_DF'
set_lvar_text_label 127@s = 'STL2_DH'
set_lvar_text_label 129@s = 'STL2_DJ'
set_lvar_text_label 131@s = 'STL2_DK'
set_lvar_int_to_constant 141@ = 5009
set_lvar_int_to_constant 142@ = 5010
set_lvar_int_to_constant 143@ = 5011
set_lvar_int_to_constant 144@ = 5012
set_lvar_int_to_constant 145@ = 5013
set_lvar_int_to_constant 146@ = 5014
set_lvar_int_to_constant 147@ = 5049
set_lvar_int_to_constant 148@ = 5050
set_lvar_int_to_constant 149@ = 5051
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_30976
if 
  112@ == 5
goto_if_false @STEAL2_31111
set_lvar_text_label 115@s = 'STL2_EA'
set_lvar_text_label 117@s = 'STL2_EB'
set_lvar_text_label 119@s = 'STL2_EC'
set_lvar_text_label 121@s = 'STL2_ED'
set_lvar_text_label 123@s = 'STL2_EE'
set_lvar_int_to_constant 141@ = 5059
set_lvar_int_to_constant 142@ = 5052
set_lvar_int_to_constant 143@ = 5060
set_lvar_int_to_constant 144@ = 5015
set_lvar_int_to_constant 145@ = 5016
154@ = 5

:STEAL2_31111
if 
  112@ == 6
goto_if_false @STEAL2_31158
set_lvar_text_label 115@s = 'STL2_EF'
set_lvar_int_to_constant 141@ = 5053
154@ = 1

:STEAL2_31158
if 
  112@ == 7
goto_if_false @STEAL2_31249
set_lvar_text_label 115@s = 'STL2_FA'
set_lvar_text_label 117@s = 'STL2_FB'
set_lvar_text_label 119@s = 'STL2_FC'
set_lvar_int_to_constant 141@ = 5017
set_lvar_int_to_constant 142@ = 5054
set_lvar_int_to_constant 143@ = 5018
154@ = 3

:STEAL2_31249
if 
  112@ == 8
goto_if_false @STEAL2_31517
set_lvar_text_label 115@s = 'STL2_FD'
set_lvar_text_label 117@s = 'STL2_FE'
set_lvar_text_label 119@s = 'STL2_FF'
set_lvar_text_label 121@s = 'STL2_FG'
set_lvar_text_label 123@s = 'STL2_FH'
set_lvar_text_label 125@s = 'STL2_FJ'
set_lvar_text_label 129@s = 'STL2_FO'
set_lvar_text_label 131@s = 'STL2_FP'
set_lvar_text_label 133@s = 'STL2_FQ'
set_lvar_text_label 135@s = 'STL2_HB'
set_lvar_text_label 137@s = 'STL2_HC'
set_lvar_int_to_constant 141@ = 5019
set_lvar_int_to_constant 142@ = 5020
set_lvar_int_to_constant 143@ = 5021
set_lvar_int_to_constant 144@ = 5022
set_lvar_int_to_constant 145@ = 5023
set_lvar_int_to_constant 146@ = 5024
set_lvar_int_to_constant 148@ = 5027
set_lvar_int_to_constant 149@ = 5028
set_lvar_int_to_constant 150@ = 5029
set_lvar_int_to_constant 151@ = 5032
set_lvar_int_to_constant 152@ = 5033
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31517
if 
  112@ == 9
goto_if_false @STEAL2_31608
set_lvar_text_label 115@s = 'STL2_FL'
set_lvar_text_label 117@s = 'STL2_FM'
set_lvar_text_label 119@s = 'STL2_FN'
set_lvar_int_to_constant 141@ = 5055
set_lvar_int_to_constant 142@ = 5056
set_lvar_int_to_constant 143@ = 5026
154@ = 3

:STEAL2_31608
if 
  112@ == 10
goto_if_false @STEAL2_31721
set_lvar_text_label 115@s = 'STL2_FR'
set_lvar_text_label 117@s = 'STL2_GA'
set_lvar_text_label 119@s = 'STL2_GB'
set_lvar_text_label 121@s = 'STL2_HA'
set_lvar_int_to_constant 141@ = 5030
set_lvar_int_to_constant 142@ = 5057
set_lvar_int_to_constant 143@ = 5058
set_lvar_int_to_constant 144@ = 5031
154@ = 4

:STEAL2_31721
if 
  112@ == 11
goto_if_false @STEAL2_31790
set_lvar_text_label 115@s = 'STL2_HD'
set_lvar_text_label 117@s = 'STL2_HE'
set_lvar_int_to_constant 141@ = 5034
set_lvar_int_to_constant 142@ = 5035
154@ = 2

:STEAL2_31790
if 
  112@ == 12
goto_if_false @STEAL2_31859
set_lvar_text_label 115@s = 'STL2_HF'
set_lvar_text_label 117@s = 'STL2_HG'
set_lvar_int_to_constant 141@ = 5036
set_lvar_int_to_constant 142@ = 5037
154@ = 2

:STEAL2_31859
if 
  112@ == 14
goto_if_false @STEAL2_31981
set_lvar_text_label 115@s = 'CESX_BA'
set_lvar_text_label 117@s = 'CESX_BB'
set_lvar_text_label 119@s = 'CESX_BC'
set_lvar_text_label 121@s = 'CESX_BD'
set_lvar_int_to_constant 141@ = 42406
set_lvar_int_to_constant 142@ = 42407
set_lvar_int_to_constant 143@ = 42408
set_lvar_int_to_constant 144@ = 42409
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31981
set_lvar_int_to_lvar_int 157@ = 113@
155@ = 0
156@ = 0
158@ = 1
return 

:STEAL2_32012
if 
  is_int_lvar_greater_than_int_lvar 154@ > 157@
goto_if_false @STEAL2_32117
if 
  155@ == 0
goto_if_false @STEAL2_32074
load_mission_audio MissionAudioSlot.Slot1 {audioId} 141@(157@,13i)
157@ += 1
155@ = 1

:STEAL2_32074
if 
  156@ == 0
goto_if_false @STEAL2_32117
load_mission_audio MissionAudioSlot.Slot2 {audioId} 141@(157@,13i)
157@ += 1
156@ = 1

:STEAL2_32117
return 

:STEAL2_32119
if 
  158@ == 1
goto_if_false @STEAL2_32195
if 
  155@ == 1
goto_if_false @STEAL2_32195
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL2_32195
play_mission_audio MissionAudioSlot.Slot1
print_now 115@(113@,13s) {time} 4500 {flag} 1
155@ = 2

:STEAL2_32195
if 
  158@ == 2
goto_if_false @STEAL2_32271
if 
  156@ == 1
goto_if_false @STEAL2_32271
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @STEAL2_32271
play_mission_audio MissionAudioSlot.Slot2
print_now 115@(113@,13s) {time} 4500 {flag} 1
156@ = 2

:STEAL2_32271
return 

:STEAL2_32273
if 
  155@ == 2
goto_if_false @STEAL2_32336
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL2_32336
clear_this_print 115@(113@,13s)
113@ += 1
158@ = 2
155@ = 0

:STEAL2_32336
if 
  156@ == 2
goto_if_false @STEAL2_32399
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @STEAL2_32399
clear_this_print 115@(113@,13s)
113@ += 1
158@ = 1
156@ = 0

:STEAL2_32399
return 

//-------------Mission 69---------------
// Originally: Customs Fast Track

:STEAL4
script_name 'STEAL4'
gosub @STEAL4_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL4_38
gosub @STEAL4_29956

:STEAL4_38
gosub @STEAL4_30803
terminate_this_script 

:STEAL4_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0

:STEAL4_89
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @STEAL4_115
36@ = 1

:STEAL4_115
39@ += 1
if 
  39@ > 9
goto_if_false @STEAL4_147
39@ = 0

:STEAL4_147
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 60@ += 42@
add_int_lvar_to_int_lvar 61@ += 42@
add_int_lvar_to_int_lvar 62@ += 42@
add_int_lvar_to_int_lvar 63@ += 42@
add_int_lvar_to_int_lvar 64@ += 42@
gosub @STEAL4_699
if 
  67@ == 1
goto_if_false @STEAL4_248
goto @STEAL4_597

:STEAL4_248
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @STEAL4_301
34@ = 10
35@ = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_301
86@ = store_car_char_is_in $scplayer

:STEAL4_301
switch_start 34@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_583 {caseNum1} 0 {caseLabel1} @STEAL4_429 {caseNum2} 1 {caseLabel2} @STEAL4_443 {caseNum3} 2 {caseLabel3} @STEAL4_457 {caseNum4} 3 {caseLabel4} @STEAL4_471 {caseNum5} 4 {caseLabel5} @STEAL4_485 {caseNum6} 5 {caseLabel6} @STEAL4_499 {caseNum7} 6 {caseLabel7} @STEAL4_513
switch_continued 7 {caseLabel1} @STEAL4_527 {caseNum2} 8 {caseLabel2} @STEAL4_541 {caseNum3} 9 {caseLabel3} @STEAL4_555 {caseNum4} 10 {caseLabel4} @STEAL4_569 {caseNum5} -1 {caseLabel5} @STEAL4_583 {caseNum6} -1 {caseLabel6} @STEAL4_583 {caseNum7} -1 {caseLabel7} @STEAL4_583 {caseNum8} -1 {caseLabel8} @STEAL4_583 {caseNum9} -1 {caseLabel9} @STEAL4_583

:STEAL4_429
gosub @STEAL4_1357
goto @STEAL4_583

:STEAL4_443
gosub @STEAL4_2502
goto @STEAL4_583

:STEAL4_457
gosub @STEAL4_3835
goto @STEAL4_583

:STEAL4_471
gosub @STEAL4_5023
goto @STEAL4_583

:STEAL4_485
gosub @STEAL4_7744
goto @STEAL4_583

:STEAL4_499
gosub @STEAL4_10593
goto @STEAL4_583

:STEAL4_513
gosub @STEAL4_12654
goto @STEAL4_583

:STEAL4_527
gosub @STEAL4_14730
goto @STEAL4_583

:STEAL4_541
gosub @STEAL4_19611
goto @STEAL4_583

:STEAL4_555
gosub @STEAL4_19613
goto @STEAL4_583

:STEAL4_569
gosub @STEAL4_22071
goto @STEAL4_583

:STEAL4_583
gosub @STEAL4_31318
gosub @STEAL4_25732

:STEAL4_597
if 
  38@ == 0
goto_if_false @STEAL4_697
if 
  37@ == 0
goto_if_false @STEAL4_681
if 
  36@ == 0
goto_if_false @STEAL4_665
goto @STEAL4_89
goto @STEAL4_674

:STEAL4_665
gosub @STEAL4_30719
return 

:STEAL4_674
goto @STEAL4_690

:STEAL4_681
gosub @STEAL4_29956
return 

:STEAL4_690
goto @STEAL4_699

:STEAL4_697
return 

:STEAL4_699
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @STEAL4_790
if 
  65@ == 0
goto_if_false @STEAL4_764
65@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @STEAL4_790

:STEAL4_764
65@ = 0
write_debug "LEVEL_DEBUG_OFF"

:STEAL4_790
if 
  65@ == 1
goto_if_false @STEAL4_1355
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @STEAL4_857
clear_all_view_variables 
66@ += 1
if 
  66@ > 2
goto_if_false @STEAL4_857
66@ = 0

:STEAL4_857
if 
  66@ == 1
goto_if_false @STEAL4_1109
set_var_int_to_lvar_int $st1_cruise_speed = 34@
set_var_int_to_lvar_int $STEAL4_view_debug = 35@
set_var_int_to_lvar_int $7407 = 124@
set_var_int_to_lvar_int $7408 = 155@
set_var_int_to_lvar_int $7409 = 153@
set_var_int_to_lvar_int $7410 = 154@
set_var_int_to_lvar_int $7411 = 132@
set_var_int_to_lvar_int $7412 = 61@
view_integer_variable $st1_cruise_speed {_p2} "M_STAGE"
view_integer_variable $STEAL4_view_debug {_p2} "M_GOALS"
view_integer_variable $7407 {_p2} "PLAYER_ON_FOOT"
view_integer_variable $7408 {_p2} "CONVERSATION_FLAG"
view_integer_variable $7409 {_p2} "ACTIVE_CONVERSATION"
view_integer_variable $7410 {_p2} "CONVERSATION_STATUS"
view_integer_variable $7411 {_p2} "CRANE_HELP_FLAG"
view_integer_variable $7412 {_p2} "CRANE_HELP_TIMER"

:STEAL4_1109
if 
  66@ == 2
goto_if_false @STEAL4_1252
view_float_variable $magno_arm_h {_p2} "MAGNO_ARM_ROTATE_Y"
view_float_variable $magno_base_z {_p2} "MAGNO_CABIN_H"
view_float_variable $magno_cabin_h {_p2} "MAGNO_ARM_H"
view_float_variable $magno_arm_LOD {_p2} "MAGNO_BASE_X"
view_float_variable $magno_base_x {_p2} "MAGNO_BASE_Y"
view_float_variable $car_model_carmod1 {_p2} "CRANE_ROPE_LENGTH"

:STEAL4_1252
if 
  67@ == 0
goto_if_false @STEAL4_1315
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @STEAL4_1308
write_debug "LEVEL_PAUSED"
67@ = 1

:STEAL4_1308
goto @STEAL4_1355

:STEAL4_1315
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @STEAL4_1355
write_debug "LEVEL_UNPAUSED"
67@ = 0

:STEAL4_1355
return 

:STEAL4_1357
if 
  35@ == -1
goto_if_false @STEAL4_1607
83@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
107@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
104@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
118@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
109@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
105@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
118@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
106@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
108@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL4_1607
if 
  35@ == 0
goto_if_false @STEAL4_2438
$st4_mission_attempts = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
139@ = 0
140@ = 0
135@ = 0
136@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:STEAL4_1786
if 
  get_fading_status 
goto_if_false @STEAL4_1810
wait 0
goto @STEAL4_1786

:STEAL4_1810
load_mission_text 'STEAL4'
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_4'

:STEAL4_1860
if 
  not has_cutscene_loaded 
goto_if_false @STEAL4_1884
wait 0
goto @STEAL4_1860

:STEAL4_1884
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL4_1893
if 
  not has_cutscene_finished 
goto_if_false @STEAL4_1917
wait 0
goto @STEAL4_1893

:STEAL4_1917
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:STEAL4_1932
if 
  get_fading_status 
goto_if_false @STEAL4_1956
wait 0
goto @STEAL4_1932

:STEAL4_1956
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
clear_area -2036.17 {y} 179.2839 {z} 27.8359 {radius} 10.0 {clearParticles} True
load_special_character 1 {modelName} 'CESAR'
request_model 567

:STEAL4_2009
if or
  not has_special_character_loaded 1
  not has_model_loaded 567
goto_if_false @STEAL4_2040
wait 0
goto @STEAL4_2009

:STEAL4_2040
custom_plate_for_next_car 567 {text} "LVA4L"
82@ = create_car 567 {x} -2034.7061 {y} 177.7413 {z} 27.8359
change_car_colour 82@ {color1} 3 {color2} 3
set_car_heading 82@ {heading} 244.5958
mark_model_as_no_longer_needed 567
68@ = create_char_as_passenger 82@ {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_never_targetted 68@ {state} True
set_char_drowns_in_water 68@ {state} False
set_char_health 68@ {health} 400
set_char_max_health 68@ {maxHealth} 400
set_char_cant_be_dragged_out 68@ {state} True
set_char_suffers_critical_hits 68@ {state} False
set_char_coordinates $scplayer {x} -2035.53 {y} 180.7482 {z} 27.8359
set_char_heading $scplayer {heading} 209.6339
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_random_trains False
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_player_group_to_follow_always $player1 {state} True
171@ = load_char_decision_maker DecisionMakerType.Tough
168@ = load_char_decision_maker DecisionMakerType.Empty
172@ = load_char_decision_maker DecisionMakerType.Empty
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @STEAL4_2272
$magno_arm_LOD, $magno_base_x, $magno_base_y = get_object_coordinates $sf_crane1_arm_LOD

:STEAL4_2272
$magno_arm_h = 15.0
$magno_base_z = 207.615
$magno_cabin_h = 207.615
$magno_arm_LOD = -1586.7
$magno_base_x = 84.7958
$car_model_carmod1 = 0.639
gosub @STEAL4_28736
43@ = 0

:STEAL4_2346
if 
  10 > 43@
goto_if_false @STEAL4_2389
141@(43@,10i) = 0
43@ += 1
goto @STEAL4_2346

:STEAL4_2389
switch_widescreen False
set_wanted_multiplier 0.001
do_fade 1000 {direction} Fade.In

:STEAL4_2407
if 
  get_fading_status 
goto_if_false @STEAL4_2431
wait 0
goto @STEAL4_2407

:STEAL4_2431
35@ += 1

:STEAL4_2438
if 
  35@ == 1
goto_if_false @STEAL4_2500
print_now 'ST4_05' {time} 5000 {flag} 1
TIMERA = 0
34@ += 1
35@ = 0
56@ = 0

:STEAL4_2500
return 

:STEAL4_2502
if 
  35@ == 0
goto_if_false @STEAL4_2773
$disable_crane = 1
92@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1570.986 {y} 55.2009 {z} 17.746
set_object_heading 92@ {heading} 40.4082
93@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1564.401 {y} 62.1434 {z} 17.7537
set_object_heading 93@ {heading} 235.0724
94@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1582.202 {y} 54.1735 {z} 17.7537
set_object_heading 94@ {heading} 0.0
96@ = create_object_no_offset #KMB_CONTAINER_RED {x} -1658.85 {y} 44.8514 {z} 4.06
set_object_heading 96@ {heading} 315.2922
95@ = create_object_no_offset #KMB_CONTAINER_YEL {x} -1649.476 {y} 9.1182 {z} 4.06
set_object_heading 95@ {heading} 315.1249
43@ = 0

:STEAL4_2699
if 
  4 > 43@
goto_if_false @STEAL4_2762
if 
  does_object_exist 92@(43@,9i)
goto_if_false @STEAL4_2748
freeze_object_position 92@(43@,9i) {state} True

:STEAL4_2748
43@ += 1
goto @STEAL4_2699

:STEAL4_2762
set_radio_channel RadioChannel.PlaybackFM
35@ += 1

:STEAL4_2773
if 
  35@ == 1
goto_if_false @STEAL4_2922
if 
  56@ == 0
goto_if_false @STEAL4_2842
if 
  TIMERA > 6000
goto_if_false @STEAL4_2842
153@ = 1
56@ = 1

:STEAL4_2842
if 
  not is_car_dead 82@
goto_if_false @STEAL4_2922
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_2922
if 
  not is_char_dead 68@
goto_if_false @STEAL4_2915
set_group_member $Players_Group {handle} 68@
set_char_drowns_in_water 68@ {state} False
126@ = 1

:STEAL4_2915
35@ += 1

:STEAL4_2922
if 
  35@ == 2
goto_if_false @STEAL4_3071
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3071
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3071
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3071
if 
  153@ == 0
goto_if_false @STEAL4_3071
35@ += 1
remove_blip 108@
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_43' {time} 7000 {flag} 1
56@ = 0
TIMERA = 0

:STEAL4_3071
if 
  35@ > 2
goto_if_false @STEAL4_3140
if 
  56@ == 0
goto_if_false @STEAL4_3140
if 
  TIMERA > 8000
goto_if_false @STEAL4_3140
153@ = 2
56@ = 1

:STEAL4_3140
if 
  35@ == 3
goto_if_false @STEAL4_3497
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3273
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3273
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3273
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3273
if 
  locate_car_2d 82@ {x} -1585.63 {y} 90.3697 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @STEAL4_3273
35@ = 99

:STEAL4_3273
if 
  65@ == 1
goto_if_false @STEAL4_3398
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @STEAL4_3398
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3398
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3398
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3398
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3398
set_car_coordinates 82@ {x} -1585.63 {y} 90.3 {z} 5.0

:STEAL4_3398
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3497
if 
  locate_char_on_foot_2d 68@ {x} -1585.63 {y} 90.3697 {xRadius} 70.0 {yRadius} 70.0 {drawSphere} False
goto_if_false @STEAL4_3497
if 
  locate_char_on_foot_2d $scplayer {x} -1585.63 {y} 90.3697 {xRadius} 70.0 {yRadius} 70.0 {drawSphere} False
goto_if_false @STEAL4_3497
35@ = 99

:STEAL4_3497
if 
  35@ == 99
goto_if_false @STEAL4_3529
35@ = 0
34@ += 1

:STEAL4_3529
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3728
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3728
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3677
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3638
if 
  133@ <> 1
goto_if_false @STEAL4_3631
133@ = 1
gosub @STEAL4_29788

:STEAL4_3631
goto @STEAL4_3670

:STEAL4_3638
if 
  133@ <> 0
goto_if_false @STEAL4_3670
133@ = 0
gosub @STEAL4_29788

:STEAL4_3670
goto @STEAL4_3728

:STEAL4_3677
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3728
if 
  133@ <> 1
goto_if_false @STEAL4_3728
133@ = 1
gosub @STEAL4_29788

:STEAL4_3728
gosub @STEAL4_28034
if 
  126@ <> 1
goto_if_false @STEAL4_3781
if 
  does_blip_exist 108@
goto_if_false @STEAL4_3774
remove_blip 108@

:STEAL4_3774
goto @STEAL4_3833

:STEAL4_3781
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_3833
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_43' {time} 7000 {flag} 1

:STEAL4_3833
return 

:STEAL4_3835
if 
  35@ == 0
goto_if_false @STEAL4_3899
clear_prints 
print_now 'ST4_13' {time} 5000 {flag} 1
$disable_crane = 0
56@ = 0
TIMERA = 0
35@ += 1

:STEAL4_3899
if 
  35@ == 1
goto_if_false @STEAL4_4433
138@ = 0
if 
  56@ == 0
goto_if_false @STEAL4_3975
if 
  TIMERA > 5500
goto_if_false @STEAL4_3975
153@ = 3
56@ += 1

:STEAL4_3975
if 
  126@ <> 1
goto_if_false @STEAL4_4028
if 
  does_blip_exist 108@
goto_if_false @STEAL4_4021
remove_blip 108@
$disable_crane = 1

:STEAL4_4021
goto @STEAL4_4087

:STEAL4_4028
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_4087
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_13' {time} 7000 {flag} 1
$disable_crane = 0

:STEAL4_4087
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_4426
$disable_crane_exit = 1
$disable_crane_slide = 1
remove_blip 108@
60@ = 30000
61@ = 8000
if 
  not is_char_dead 68@
goto_if_false @STEAL4_4211
remove_char_from_group 68@
clear_char_tasks_immediately 68@
set_char_decision_maker 68@ {handleOrTemplate} 168@
set_char_coordinates 68@ {x} -1627.8311 {y} 63.8863 {z} 2.9167
set_char_heading 68@ {heading} 299.601
set_char_drowns_in_water 68@ {state} False

:STEAL4_4211
156@ = -1620.938
157@ = 75.4195
158@ = 4.1
159@ = 20.7795
160@ = -1632.786
161@ = 61.2888
162@ = 4.1
163@ = 6.6851
164@ = -1644.017
165@ = 50.9619
166@ = 4.1
167@ = 39.4583
clear_help 
clear_prints 
43@ = 0

:STEAL4_4342
if 
  4 > 43@
goto_if_false @STEAL4_4405
if 
  does_object_exist 92@(43@,9i)
goto_if_false @STEAL4_4391
freeze_object_position 92@(43@,9i) {state} False

:STEAL4_4391
43@ += 1
goto @STEAL4_4342

:STEAL4_4405
gosub @STEAL4_28034
35@ += 1
goto @STEAL4_4433

:STEAL4_4426
gosub @STEAL4_28034

:STEAL4_4433
if 
  35@ == 2
goto_if_false @STEAL4_4551
gosub @STEAL4_35113
enable_crane_controls False {down} False {release} False
$disable_crane = 1
switch_widescreen True
set_fixed_camera_position -1517.693 {y} 60.1951 {z} 57.7488 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1518.545 {y} 60.208 {z} 57.2246 {switchStyle} SwitchType.JumpCut
clear_prints 
TIMERA = 0
56@ = 0
35@ += 1

:STEAL4_4551
if and
  35@ > 2
  6 > 35@
goto_if_false @STEAL4_4663
if 
  138@ == 0
goto_if_false @STEAL4_4639
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_4632
gosub @STEAL4_35113
35@ = 6
138@ = 1

:STEAL4_4632
goto @STEAL4_4663

:STEAL4_4639
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_4663
138@ = 0

:STEAL4_4663
if 
  35@ == 3
goto_if_false @STEAL4_4714
if 
  TIMERA > 1000
goto_if_false @STEAL4_4714
153@ = 4
35@ += 1

:STEAL4_4714
if 
  35@ == 4
goto_if_false @STEAL4_4758
if 
  TIMERA > 2500
goto_if_false @STEAL4_4758
35@ += 1

:STEAL4_4758
if 
  35@ == 5
goto_if_false @STEAL4_4848
set_fixed_camera_position -1631.9969 {y} 64.4568 {z} 3.1424 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.031 {y} 64.5624 {z} 3.3783 {switchStyle} SwitchType.JumpCut
56@ = 0
35@ += 1
TIMERA = 0

:STEAL4_4848
if 
  35@ == 6
goto_if_false @STEAL4_4891
if 
  153@ == 0
goto_if_false @STEAL4_4891
35@ += 1

:STEAL4_4891
if 
  35@ == 7
goto_if_false @STEAL4_4957
$magno_camera_type = 1
$reset_crane_camera = 1
display_hud False
display_radar False
switch_widescreen False
$disable_crane = 0
enable_crane_controls True {down} True {release} True
35@ = 99

:STEAL4_4957
if 
  35@ == 99
goto_if_false @STEAL4_5021
request_model 589

:STEAL4_4980
if 
  not has_model_loaded 589
goto_if_false @STEAL4_5007
wait 0
goto @STEAL4_4980

:STEAL4_5007
35@ = 0
34@ += 1

:STEAL4_5021
return 

:STEAL4_5023
if and
  35@ > 0
  3 > 35@
goto_if_false @STEAL4_5142
if 
  138@ == 0
goto_if_false @STEAL4_5118
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_5111
$magno_camera_type = 1
$reset_crane_camera = 1
138@ = 1
35@ = 3

:STEAL4_5111
goto @STEAL4_5142

:STEAL4_5118
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_5142
138@ = 0

:STEAL4_5142
switch_start 35@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STEAL4_7587 {caseNum1} 0 {caseLabel1} @STEAL4_5270 {caseNum2} 1 {caseLabel2} @STEAL4_5527 {caseNum3} 2 {caseLabel3} @STEAL4_5581 {caseNum4} 3 {caseLabel4} @STEAL4_5637 {caseNum5} 4 {caseLabel5} @STEAL4_5780 {caseNum6} 5 {caseLabel6} @STEAL4_6010 {caseNum7} 6 {caseLabel7} @STEAL4_6461
switch_continued 7 {caseLabel1} @STEAL4_7308 {caseNum2} 99 {caseLabel2} @STEAL4_7566 {caseNum3} -1 {caseLabel3} @STEAL4_7587 {caseNum4} -1 {caseLabel4} @STEAL4_7587 {caseNum5} -1 {caseLabel5} @STEAL4_7587 {caseNum6} -1 {caseLabel6} @STEAL4_7587 {caseNum7} -1 {caseLabel7} @STEAL4_7587 {caseNum8} -1 {caseLabel8} @STEAL4_7587 {caseNum9} -1 {caseLabel9} @STEAL4_7587

:STEAL4_5270
if 
  138@ == 0
goto_if_false @STEAL4_5427
if 
  133@ <> 3
goto_if_false @STEAL4_5320
133@ = 3
gosub @STEAL4_29788

:STEAL4_5320
$disable_crane = 1
$magno_camera_type = 0
$reset_crane_camera = 1
TIMERA = 0
print_help_forever 'ST4_H08'
if 
  not is_char_dead 68@
goto_if_false @STEAL4_5413
set_char_decision_maker 68@ {handleOrTemplate} 172@
set_char_coordinates 68@ {x} -1626.981 {y} 65.4201 {z} 2.5495
set_char_heading 68@ {heading} 306.9205

:STEAL4_5413
35@ += 1
goto @STEAL4_5520

:STEAL4_5427
if 
  133@ <> 3
goto_if_false @STEAL4_5459
133@ = 3
gosub @STEAL4_29788

:STEAL4_5459
if 
  not is_char_dead 68@
goto_if_false @STEAL4_5513
set_char_decision_maker 68@ {handleOrTemplate} 172@
set_char_coordinates 68@ {x} -1626.981 {y} 65.4201 {z} 2.5495
set_char_heading 68@ {heading} 306.9205

:STEAL4_5513
35@ = 3

:STEAL4_5520
goto @STEAL4_7587

:STEAL4_5527
if 
  TIMERA > 3000
goto_if_false @STEAL4_5574
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5574
goto @STEAL4_7587

:STEAL4_5581
if 
  TIMERA > 3000
goto_if_false @STEAL4_5630
clear_help 
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5630
goto @STEAL4_7587

:STEAL4_5637
display_hud True
display_radar True
clear_help 
enable_crane_controls True {down} True {release} True
$magno_camera_type = 1
$reset_crane_camera = 1
$disable_crane = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$disable_crane_slide = 0
128@ = 0
print_now 'ST4_T01' {time} 5000 {flag} 1
109@ = add_blip_for_object 92@
110@ = add_blip_for_object 93@
111@ = add_blip_for_object 94@
61@ = 10000
132@ = 0
TIMERA = 0
35@ += 1
goto @STEAL4_7587

:STEAL4_5780
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_6003
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
128@ = 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_5873
remove_blip 109@

:STEAL4_5873
if 
  does_blip_exist 110@
goto_if_false @STEAL4_5894
remove_blip 110@

:STEAL4_5894
if 
  does_blip_exist 111@
goto_if_false @STEAL4_5915
remove_blip 111@

:STEAL4_5915
remove_blip 108@
108@ = add_blip_for_coord 156@ {y} 157@ {z} 158@
$disable_crane_rotate = 0
$disable_manual_control = 0
clear_help 
print_now 'ST4_T02' {time} 5000 {flag} 1
132@ = 0
61@ = 500
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_6003
goto @STEAL4_7587

:STEAL4_6010
if 
  does_object_exist 106@
goto_if_false @STEAL4_6278
  locate_object_3d 106@ {x} 156@ {y} 157@ {z} 158@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 156@ {y} 157@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_6131
if 
  128@ <> 0
goto_if_false @STEAL4_6124
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_6124
goto @STEAL4_6164

:STEAL4_6131
if 
  128@ <> 1
goto_if_false @STEAL4_6164
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_6164
if 
  locate_object_3d 106@ {x} 156@ {y} 157@ {z} 158@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_6251
if 
  132@ <> 4
goto_if_false @STEAL4_6244
clear_help 
print_help_forever 'ST4_H03'
132@ = 4

:STEAL4_6244
goto @STEAL4_6278

:STEAL4_6251
if 
  132@ == 4
goto_if_false @STEAL4_6278
clear_help 
132@ = 0

:STEAL4_6278
if 
  does_object_exist 106@
goto_if_false @STEAL4_6454
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_6454
TIMERA = 0
set_lvar_int_to_lvar_int 104@ = 106@
clear_prints 
clear_help 
if 
  does_blip_exist 109@
goto_if_false @STEAL4_6367
remove_blip 109@

:STEAL4_6367
if 
  does_blip_exist 110@
goto_if_false @STEAL4_6388
remove_blip 110@

:STEAL4_6388
if 
  does_blip_exist 111@
goto_if_false @STEAL4_6409
remove_blip 111@

:STEAL4_6409
if 
  does_blip_exist 108@
goto_if_false @STEAL4_6430
remove_blip 108@

:STEAL4_6430
35@ += 1
139@ = 0
173@ = 0.0

:STEAL4_6454
goto @STEAL4_7587

:STEAL4_6461
if 
  139@ == 1
goto_if_false @STEAL4_6680
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_6680
if 
  173@ > 14.0
goto_if_false @STEAL4_6673
$x, $y, $z = get_object_coordinates 106@
custom_plate_for_next_car 589 {text} "N13_LLF"
84@ = create_car 589 {x} $x {y} $y {z} $z
change_car_colour 84@ {color1} 11 {color2} 0
attach_car_to_object 84@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 84@
break_object 106@ {intensity} 1
if 
  not is_car_dead 84@
goto_if_false @STEAL4_6666
detach_car 84@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 84@

:STEAL4_6666
140@ = 1

:STEAL4_6673
139@ = 2

:STEAL4_6680
if 
  does_object_exist 106@
goto_if_false @STEAL4_6757
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_6757
if 
  139@ == 0
goto_if_false @STEAL4_6757
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_6757
if 
  TIMERA > 1000
goto_if_false @STEAL4_7301
if 
  140@ <> 1
goto_if_false @STEAL4_7289
if 
  does_object_exist 106@
goto_if_false @STEAL4_7282
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_7282
clear_help 
$disable_crane = 1
do_fade 150 {direction} Fade.Out

:STEAL4_6850
if 
  get_fading_status 
goto_if_false @STEAL4_6874
wait 0
goto @STEAL4_6850

:STEAL4_6874
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_6900
set_rope_height_for_object $magno_cabin {height} 0.5

:STEAL4_6900
release_entity_from_rope_for_object $magno_cabin
delete_object 104@
101@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 156@ {y} 157@ {z} 158@
set_object_heading 101@ {heading} 159@
custom_plate_for_next_car 589 {text} "N13_LLF"
84@ = create_car 589 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 84@ {color1} 11 {color2} 0
mark_model_as_no_longer_needed 589
attach_car_to_object 84@ {handle} 101@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 101@ {handle} 84@
135@ = 1
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7085
set_char_coordinates 68@ {x} -1619.436 {y} 68.7884 {z} 2.5495
set_char_heading 68@ {heading} 0.0

:STEAL4_7085
switch_widescreen True
set_fixed_camera_position -1618.103 {y} 66.5178 {z} 4.5138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1618.392 {y} 67.4668 {z} 4.3861 {switchStyle} SwitchType.JumpCut
enable_crane_controls False {down} False {release} False
load_scene 156@ {y} 157@ {z} 158@
do_fade 150 {direction} Fade.In

:STEAL4_7166
if 
  get_fading_status 
goto_if_false @STEAL4_7190
wait 0
goto @STEAL4_7166

:STEAL4_7190
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7211
task_scratch_head 68@

:STEAL4_7211
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5207

:STEAL4_7222
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_7248
wait 0
goto @STEAL4_7222

:STEAL4_7248
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_FA' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:STEAL4_7282
goto @STEAL4_7301

:STEAL4_7289
wait 2000
37@ = 1

:STEAL4_7301
goto @STEAL4_7587

:STEAL4_7308
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_7559
$reset_crane_camera = 1
$disable_crane = 0
clear_mission_audio MissionAudioSlot.Slot1
do_fade 0 {direction} Fade.In
switch_widescreen False
enable_crane_controls True {down} True {release} True
if 
  does_object_exist 92@
goto_if_false @STEAL4_7393
109@ = add_blip_for_object 92@

:STEAL4_7393
if 
  does_object_exist 93@
goto_if_false @STEAL4_7417
110@ = add_blip_for_object 93@

:STEAL4_7417
if 
  does_object_exist 94@
goto_if_false @STEAL4_7441
111@ = add_blip_for_object 94@

:STEAL4_7441
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7513
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1642.827 {y} 54.0446 {z} 2.5495 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 306.0
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_7513
clear_prints 
print 'ST4_T04' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
132@ = 0
35@ = 99

:STEAL4_7559
goto @STEAL4_7587

:STEAL4_7566
34@ += 1
35@ = 0
goto @STEAL4_7587

:STEAL4_7587
if 
  35@ > 0
goto_if_false @STEAL4_7742
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @STEAL4_7742
if 
  141@ == 0
goto_if_false @STEAL4_7663
print_help 'ST4_H10'
141@ = 1
goto @STEAL4_7742

:STEAL4_7663
if 
  142@ == 0
goto_if_false @STEAL4_7706
print_help 'ST4_H05'
142@ = 1
goto @STEAL4_7742

:STEAL4_7706
if 
  143@ == 0
goto_if_false @STEAL4_7742
print_help 'ST4_H07'
143@ = 1

:STEAL4_7742
return 

:STEAL4_7744
if 
  35@ == 0
goto_if_false @STEAL4_7900
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  does_object_exist 92@
goto_if_false @STEAL4_7806
freeze_object_position 92@ {state} True

:STEAL4_7806
if 
  does_object_exist 93@
goto_if_false @STEAL4_7829
freeze_object_position 93@ {state} True

:STEAL4_7829
if 
  does_object_exist 94@
goto_if_false @STEAL4_7852
freeze_object_position 94@ {state} True

:STEAL4_7852
if 
  $7413 == 0
goto_if_false @STEAL4_7884
151@ = 0
goto @STEAL4_7893

:STEAL4_7884
151@ = generate_random_int_in_range 0 {max} 2

:STEAL4_7893
35@ += 1

:STEAL4_7900
if 
  35@ == 1
goto_if_false @STEAL4_8142
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_8142
freeze_object_position 91@ {state} False
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
clear_prints 
print_now 'ST4_T06' {time} 7000 {flag} 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_8050
remove_blip 109@

:STEAL4_8050
if 
  does_blip_exist 110@
goto_if_false @STEAL4_8071
remove_blip 110@

:STEAL4_8071
if 
  does_blip_exist 111@
goto_if_false @STEAL4_8092
remove_blip 111@

:STEAL4_8092
remove_blip 108@
108@ = add_blip_for_coord 160@ {y} 161@ {z} 162@
clear_help 
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_8142
if 
  35@ == 2
goto_if_false @STEAL4_8289
if 
  151@ == 0
goto_if_false @STEAL4_8237
request_model 404
if 
  has_model_loaded 404
goto_if_false @STEAL4_8230
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_8230
goto @STEAL4_8289

:STEAL4_8237
request_model 559
if 
  has_model_loaded 559
goto_if_false @STEAL4_8289
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_8289
if 
  35@ == 3
goto_if_false @STEAL4_8780
if 
  does_object_exist 106@
goto_if_false @STEAL4_8596
  locate_object_3d 106@ {x} 160@ {y} 161@ {z} 162@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 160@ {y} 161@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_8428
if 
  128@ <> 0
goto_if_false @STEAL4_8421
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_8421
goto @STEAL4_8461

:STEAL4_8428
if 
  128@ <> 1
goto_if_false @STEAL4_8461
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_8461
if 
  locate_object_3d 106@ {x} 160@ {y} 161@ {z} 162@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_8548
if 
  132@ <> 2
goto_if_false @STEAL4_8541
clear_help 
print_help_forever 'ST4_H03'
132@ = 2

:STEAL4_8541
goto @STEAL4_8596

:STEAL4_8548
if 
  132@ == 2
goto_if_false @STEAL4_8596
if 
  61@ > 10000
goto_if_false @STEAL4_8587
clear_prints 

:STEAL4_8587
clear_help 
132@ = 0

:STEAL4_8596
if 
  does_object_exist 106@
goto_if_false @STEAL4_8780
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_8780
enable_crane_controls True {down} True {release} True
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  does_blip_exist 109@
goto_if_false @STEAL4_8689
remove_blip 109@

:STEAL4_8689
if 
  does_blip_exist 110@
goto_if_false @STEAL4_8710
remove_blip 110@

:STEAL4_8710
if 
  does_blip_exist 111@
goto_if_false @STEAL4_8731
remove_blip 111@

:STEAL4_8731
if 
  does_blip_exist 108@
goto_if_false @STEAL4_8752
remove_blip 108@

:STEAL4_8752
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_8780
if 
  35@ == 4
goto_if_false @STEAL4_9251
if 
  139@ == 1
goto_if_false @STEAL4_9071
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_9071
if 
  173@ > 14.0
goto_if_false @STEAL4_9064
$x, $y, $z = get_object_coordinates 106@
if 
  151@ == 0
goto_if_false @STEAL4_8909
86@ = create_car 404 {x} $x {y} $y {z} $z
goto @STEAL4_8926

:STEAL4_8909
86@ = create_car 559 {x} $x {y} $y {z} $z

:STEAL4_8926
attach_car_to_object 86@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 86@
break_object 106@ {intensity} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_9022
detach_car 86@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 86@

:STEAL4_9022
if 
  151@ == 0
goto_if_false @STEAL4_9052
mark_model_as_no_longer_needed 404
goto @STEAL4_9057

:STEAL4_9052
mark_model_as_no_longer_needed 559

:STEAL4_9057
140@ = 1

:STEAL4_9064
139@ = 2

:STEAL4_9071
if 
  does_object_exist 106@
goto_if_false @STEAL4_9148
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_9148
if 
  139@ == 0
goto_if_false @STEAL4_9148
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_9148
if 
  TIMERA > 1000
goto_if_false @STEAL4_9251
if 
  140@ <> 1
goto_if_false @STEAL4_9239
if 
  does_object_exist 106@
goto_if_false @STEAL4_9232
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_9232
35@ += 1

:STEAL4_9232
goto @STEAL4_9251

:STEAL4_9239
wait 2000
37@ = 1

:STEAL4_9251
if 
  35@ == 5
goto_if_false @STEAL4_10322
if 
  151@ == 0
goto_if_false @STEAL4_9950
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_9298
if 
  get_fading_status 
goto_if_false @STEAL4_9322
wait 0
goto @STEAL4_9298

:STEAL4_9322
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
release_entity_from_rope_for_object $magno_cabin
delete_object 104@
102@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 160@ {y} 161@ {z} 162@
set_object_heading 102@ {heading} 163@
85@ = create_car 404 {x} -1632.786 {y} 61.2888 {z} 2.2888
46@ = get_object_heading 102@
46@ += 180.0
set_car_heading 85@ {heading} 46@
sort_out_object_collision_with_car 102@ {handle} 85@
if 
  not is_char_dead 68@
goto_if_false @STEAL4_9479
set_char_coordinates 68@ {x} -1631.028 {y} 54.3581 {z} 2.5495
set_char_heading 68@ {heading} 5.3011

:STEAL4_9479
set_fixed_camera_position -1632.001 {y} 52.1951 {z} 4.5485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.943 {y} 53.181 {z} 4.3914 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_9556
set_rope_height_for_object $magno_cabin {height} 0.5

:STEAL4_9556
do_fade 150 {direction} Fade.In

:STEAL4_9563
if 
  get_fading_status 
goto_if_false @STEAL4_9587
wait 0
goto @STEAL4_9563

:STEAL4_9587
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5208

:STEAL4_9598
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_9624
wait 0
goto @STEAL4_9598

:STEAL4_9624
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_FB' {time} 5000 {flag} 1
if 
  not is_car_dead 85@
goto_if_false @STEAL4_9834
$x, $y, $z = get_car_coordinates 85@
$heading = get_car_heading 85@
save_newline_to_debug_file 
save_string_to_debug_file "OPEN_CONTAINER2_CAR = "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:STEAL4_9834
43@ = 0
TIMERA = 0

:STEAL4_9848
if 
  43@ == 0
goto_if_false @STEAL4_9929
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  TIMERA > 5000
goto_if_false @STEAL4_9918
do_fade 0 {direction} Fade.In
35@ += 1
43@ = 1
goto @STEAL4_9922

:STEAL4_9918
wait 0

:STEAL4_9922
goto @STEAL4_9848

:STEAL4_9929
35@ = 0
34@ += 1
goto @STEAL4_10322

:STEAL4_9950
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_9961
if 
  get_fading_status 
goto_if_false @STEAL4_9985
wait 0
goto @STEAL4_9961

:STEAL4_9985
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
release_entity_from_rope_for_object $magno_cabin
delete_object 104@
102@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 160@ {y} 161@ {z} 162@
set_object_heading 102@ {heading} 163@
86@ = create_car 559 {x} -1632.786 {y} 61.2888 {z} 2.2888
46@ = get_object_heading 102@
46@ += 180.0
set_car_heading 86@ {heading} 46@
sort_out_object_collision_with_car 102@ {handle} 86@
set_fixed_camera_position -1632.001 {y} 52.1951 {z} 4.5485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.943 {y} 53.181 {z} 4.3914 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_10173
set_rope_height_for_object $magno_cabin {height} 0.5

:STEAL4_10173
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @STEAL4_10203
$magno_arm_LOD, $magno_base_x, $magno_base_y = get_object_coordinates $sf_crane1_arm_LOD

:STEAL4_10203
$magno_arm_h = 15.0
$magno_base_z = 133.5261
$magno_cabin_h = 133.5261
$magno_arm_LOD = -1610.626
$magno_base_x = 60.8742
$car_model_carmod1 = 0.639
gosub @STEAL4_28736
gosub @STEAL4_14499
do_fade 150 {direction} Fade.In

:STEAL4_10284
if 
  get_fading_status 
goto_if_false @STEAL4_10308
wait 0
goto @STEAL4_10284

:STEAL4_10308
TIMERA = 0
35@ += 1

:STEAL4_10322
if 
  35@ == 6
goto_if_false @STEAL4_10436
if 
  TIMERA > 1000
goto_if_false @STEAL4_10436
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_10436
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 86@
goto_if_false @STEAL4_10422
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_10422
35@ = 0
34@ += 2

:STEAL4_10436
if 
  35@ > 0
goto_if_false @STEAL4_10591
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @STEAL4_10591
if 
  141@ == 0
goto_if_false @STEAL4_10512
print_help 'ST4_H10'
141@ = 1
goto @STEAL4_10591

:STEAL4_10512
if 
  142@ == 0
goto_if_false @STEAL4_10555
print_help 'ST4_H05'
142@ = 1
goto @STEAL4_10591

:STEAL4_10555
if 
  143@ == 0
goto_if_false @STEAL4_10591
print_help 'ST4_H07'
143@ = 1

:STEAL4_10591
return 

:STEAL4_10593
if 
  35@ == 0
goto_if_false @STEAL4_10972
$reset_crane_camera = 1
$disable_crane = 0
enable_crane_controls True {down} True {release} True
clear_mission_audio MissionAudioSlot.Slot1
switch_widescreen False
if 
  does_object_exist 92@
goto_if_false @STEAL4_10665
109@ = add_blip_for_object 92@

:STEAL4_10665
if 
  does_object_exist 93@
goto_if_false @STEAL4_10689
110@ = add_blip_for_object 93@

:STEAL4_10689
if 
  does_object_exist 94@
goto_if_false @STEAL4_10713
111@ = add_blip_for_object 94@

:STEAL4_10713
if 
  not is_char_dead 68@
goto_if_false @STEAL4_10785
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1658.476 {y} 33.234 {z} 2.8213 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 299.6011
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_10785
clear_prints 
print 'ST4_T04' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_10896
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1650.464 {y} 44.1144 {z} 2.5495 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 317.7216
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_10896
if 
  does_object_exist 92@
goto_if_false @STEAL4_10919
freeze_object_position 92@ {state} True

:STEAL4_10919
if 
  does_object_exist 93@
goto_if_false @STEAL4_10942
freeze_object_position 93@ {state} True

:STEAL4_10942
if 
  does_object_exist 94@
goto_if_false @STEAL4_10965
freeze_object_position 94@ {state} True

:STEAL4_10965
35@ += 1

:STEAL4_10972
if 
  35@ == 1
goto_if_false @STEAL4_11214
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_11214
freeze_object_position 91@ {state} False
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
clear_prints 
print_now 'ST4_T06' {time} 7000 {flag} 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_11122
remove_blip 109@

:STEAL4_11122
if 
  does_blip_exist 110@
goto_if_false @STEAL4_11143
remove_blip 110@

:STEAL4_11143
if 
  does_blip_exist 111@
goto_if_false @STEAL4_11164
remove_blip 111@

:STEAL4_11164
remove_blip 108@
108@ = add_blip_for_coord 164@ {y} 165@ {z} 166@
clear_help 
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_11214
if 
  35@ == 2
goto_if_false @STEAL4_11284
request_model 559
if 
  has_model_loaded 559
goto_if_false @STEAL4_11284
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_11284
if 
  35@ == 3
goto_if_false @STEAL4_11775
if 
  does_object_exist 106@
goto_if_false @STEAL4_11591
  locate_object_3d 106@ {x} 164@ {y} 165@ {z} 166@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 164@ {y} 165@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_11423
if 
  128@ <> 0
goto_if_false @STEAL4_11416
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_11416
goto @STEAL4_11456

:STEAL4_11423
if 
  128@ <> 1
goto_if_false @STEAL4_11456
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_11456
if 
  locate_object_3d 106@ {x} 164@ {y} 165@ {z} 166@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_11543
if 
  132@ <> 2
goto_if_false @STEAL4_11536
clear_help 
print_help_forever 'ST4_H03'
132@ = 2

:STEAL4_11536
goto @STEAL4_11591

:STEAL4_11543
if 
  132@ == 2
goto_if_false @STEAL4_11591
if 
  61@ > 10000
goto_if_false @STEAL4_11582
clear_prints 

:STEAL4_11582
clear_help 
132@ = 0

:STEAL4_11591
if 
  does_object_exist 106@
goto_if_false @STEAL4_11775
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_11775
enable_crane_controls True {down} True {release} True
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  does_blip_exist 109@
goto_if_false @STEAL4_11684
remove_blip 109@

:STEAL4_11684
if 
  does_blip_exist 110@
goto_if_false @STEAL4_11705
remove_blip 110@

:STEAL4_11705
if 
  does_blip_exist 111@
goto_if_false @STEAL4_11726
remove_blip 111@

:STEAL4_11726
if 
  does_blip_exist 108@
goto_if_false @STEAL4_11747
remove_blip 108@

:STEAL4_11747
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_11775
if 
  35@ == 4
goto_if_false @STEAL4_12174
if 
  139@ == 1
goto_if_false @STEAL4_11994
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_11994
if 
  173@ > 14.0
goto_if_false @STEAL4_11987
$x, $y, $z = get_object_coordinates 106@
86@ = create_car 559 {x} $x {y} $y {z} $z
attach_car_to_object 86@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 86@
break_object 106@ {intensity} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_11975
detach_car 86@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 86@

:STEAL4_11975
mark_model_as_no_longer_needed 559
140@ = 1

:STEAL4_11987
139@ = 2

:STEAL4_11994
if 
  does_object_exist 106@
goto_if_false @STEAL4_12071
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_12071
if 
  139@ == 0
goto_if_false @STEAL4_12071
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_12071
if 
  TIMERA > 1000
goto_if_false @STEAL4_12174
if 
  140@ <> 1
goto_if_false @STEAL4_12162
if 
  does_object_exist 106@
goto_if_false @STEAL4_12155
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_12155
35@ += 1

:STEAL4_12155
goto @STEAL4_12174

:STEAL4_12162
wait 2000
37@ = 1

:STEAL4_12174
if 
  35@ == 5
goto_if_false @STEAL4_12538
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_12203
if 
  get_fading_status 
goto_if_false @STEAL4_12227
wait 0
goto @STEAL4_12203

:STEAL4_12227
switch_widescreen True
enable_crane_controls False {down} False {release} False
$disable_crane = 1
release_entity_from_rope_for_object $magno_cabin
delete_object 104@
103@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 164@ {y} 165@ {z} 166@
set_object_heading 103@ {heading} 167@
86@ = create_car 559 {x} -1644.017 {y} 50.9619 {z} 3.0354
46@ = get_object_heading 103@
46@ += 180.0
set_car_heading 86@ {heading} 46@
sort_out_object_collision_with_car 103@ {handle} 86@
set_fixed_camera_position -1637.048 {y} 45.8035 {z} 3.6546 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1637.986 {y} 46.1327 {z} 3.5431 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @STEAL4_12419
$magno_arm_LOD, $magno_base_x, $magno_base_y = get_object_coordinates $sf_crane1_arm_LOD

:STEAL4_12419
$magno_arm_h = 15.0
$magno_base_z = 133.5261
$magno_cabin_h = 133.5261
$magno_arm_LOD = -1610.626
$magno_base_x = 60.8742
$car_model_carmod1 = 0.4
gosub @STEAL4_28736
gosub @STEAL4_14499
do_fade 150 {direction} Fade.In

:STEAL4_12500
if 
  get_fading_status 
goto_if_false @STEAL4_12524
wait 0
goto @STEAL4_12500

:STEAL4_12524
TIMERA = 0
35@ += 1

:STEAL4_12538
if 
  35@ == 6
goto_if_false @STEAL4_12652
if 
  TIMERA > 1000
goto_if_false @STEAL4_12652
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_12652
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 86@
goto_if_false @STEAL4_12638
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_12638
35@ = 0
34@ += 1

:STEAL4_12652
return 

:STEAL4_12654
if 
  35@ == -1
goto_if_false @STEAL4_12719
70@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:STEAL4_12719
if 
  35@ == 0
goto_if_false @STEAL4_12872
if 
  not is_car_dead 87@
goto_if_false @STEAL4_12858
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1643.394 {y} 19.6494 {z} 3.6706 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 70@
goto_if_false @STEAL4_12853
perform_sequence_task 70@ {sequence} 49@

:STEAL4_12853
clear_sequence_task 49@

:STEAL4_12858
35@ += 1
TIMERA = 0

:STEAL4_12872
if 
  35@ > 0
goto_if_false @STEAL4_12914
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_12914
35@ = 99

:STEAL4_12914
if 
  35@ == 1
goto_if_false @STEAL4_13037
if 
  TIMERA > 500
goto_if_false @STEAL4_13037
if 
  not is_car_dead 87@
goto_if_false @STEAL4_12981
$x, $y, $z = get_car_coordinates 87@

:STEAL4_12981
load_scene $x {y} $y {z} $z
if 
  not is_car_dead 86@
goto_if_false @STEAL4_13030
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_13030
35@ += 1

:STEAL4_13037
if 
  35@ == 2
goto_if_false @STEAL4_13210
if 
  6000 > TIMERA
goto_if_false @STEAL4_13171
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13119
$x, $y, $z = get_offset_from_car_in_world_coords 87@ {xOffset} 2.0 {yOffset} -3.0 {zOffset} 0.0

:STEAL4_13119
set_fixed_camera_position -1680.0861 {y} 28.3067 {z} 3.8465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @STEAL4_13210

:STEAL4_13171
set_fixed_camera_position -1643.223 {y} 13.6026 {z} 4.1338 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
35@ += 1

:STEAL4_13210
if 
  35@ == 3
goto_if_false @STEAL4_13420
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13273
$x, $y, $z = get_offset_from_car_in_world_coords 87@ {xOffset} -6.0 {yOffset} 1.0 {zOffset} 1.0

:STEAL4_13273
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  20000 > TIMERA
goto_if_false @STEAL4_13378
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13371
43@ = get_script_task_status 70@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_13371
56@ = 0
194@ = 0
35@ += 1

:STEAL4_13371
goto @STEAL4_13420

:STEAL4_13378
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13399
clear_char_tasks 70@

:STEAL4_13399
35@ += 1
56@ = 0
194@ = 0

:STEAL4_13420
if 
  35@ == 4
goto_if_false @STEAL4_13837
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13562
49@ = open_sequence_task 
task_pause -1 {time} 1800
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13489
task_leave_car -1 {vehicle} 87@

:STEAL4_13489
task_go_straight_to_coord -1 {x} -1638.837 {y} 27.1035 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13544
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13544
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13562
if 
  not is_char_dead 71@
goto_if_false @STEAL4_13685
49@ = open_sequence_task 
task_pause -1 {time} 0
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13612
task_leave_car -1 {vehicle} 87@

:STEAL4_13612
task_go_straight_to_coord -1 {x} -1639.676 {y} 29.1963 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13667
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13667
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13685
if 
  not is_char_dead 72@
goto_if_false @STEAL4_13809
49@ = open_sequence_task 
task_pause -1 {time} 1000
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13736
task_leave_car -1 {vehicle} 87@

:STEAL4_13736
task_go_straight_to_coord -1 {x} -1641.28 {y} 27.2014 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13791
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13791
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13809
56@ = 0
194@ = 0
35@ += 1
TIMERA = 0

:STEAL4_13837
if 
  35@ == 5
goto_if_false @STEAL4_13988
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13988
if 
  not is_char_in_any_car 70@
goto_if_false @STEAL4_13988
if 
  56@ == 0
goto_if_false @STEAL4_13988
set_lvar_text_label 189@s = 'STL4_GA'
set_lvar_int_to_constant 191@ = 5232
set_lvar_int_to_lvar_int 192@ = 70@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_13988
194@ = 0
56@ += 1
35@ = 99

:STEAL4_13988
if 
  35@ == 99
goto_if_false @STEAL4_14497
$magno_cabin_h = 130.0
if 
  not is_car_dead 87@
goto_if_false @STEAL4_14062
set_car_coordinates 87@ {x} -1642.876 {y} 19.5037 {z} 2.5547
set_car_heading 87@ {heading} 259.5122

:STEAL4_14062
if 
  not is_char_dead 70@
goto_if_false @STEAL4_14190
clear_char_tasks_immediately 70@
set_char_coordinates 70@ {x} -1638.837 {y} 27.1035 {z} 2.8213
set_char_heading 70@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14149
task_goto_char -1 {target} 68@ {time} 10000 {radius} 25.0

:STEAL4_14149
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14172
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14172
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14190
if 
  not is_char_dead 71@
goto_if_false @STEAL4_14318
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} -1639.676 {y} 29.1963 {z} 2.8213
set_char_heading 71@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14277
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_14277
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14300
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14300
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14318
if 
  not is_char_dead 72@
goto_if_false @STEAL4_14446
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} -1641.28 {y} 27.2014 {z} 2.8213
set_char_heading 72@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14405
task_goto_char -1 {target} 68@ {time} 10000 {radius} 18.0

:STEAL4_14405
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14428
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14428
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14446
clear_prints 
clear_help 
$reset_crane_camera = 1
$disable_crane_exit = 0
switch_widescreen False
enable_crane_controls True {down} True {release} True
$disable_crane = 0
35@ = 0
34@ += 1

:STEAL4_14497
return 

:STEAL4_14499
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14539
if 
  not is_car_dead 86@
goto_if_false @STEAL4_14539
warp_char_into_car 68@ {vehicle} 86@

:STEAL4_14539
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14565
give_weapon_to_char 68@ {weaponType} WeaponType.Pistol {ammo} 9999

:STEAL4_14565
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5206

:STEAL4_14576
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_14602
wait 0
goto @STEAL4_14576

:STEAL4_14602
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_EA' {time} 5000 {flag} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_14721
set_car_cruise_speed 86@ {maxSpeed} 3.5
set_car_health 86@ {health} 2000
set_can_burst_car_tyres 86@ {state} False
vehicle_does_provide_cover 86@ {state} False
174@, 175@, 176@ = get_offset_from_car_in_world_coords 86@ {xOffset} 0.0 {yOffset} 15.0 {zOffset} 0.0
177@ = get_car_heading 86@
car_goto_coordinates_accurate 86@ {x} 174@ {y} 175@ {z} 176@

:STEAL4_14721
gosub @STEAL4_28286
return 

:STEAL4_14730
switch_start 35@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @STEAL4_18803 {caseNum1} 0 {caseLabel1} @STEAL4_14858 {caseNum2} 1 {caseLabel2} @STEAL4_14966 {caseNum3} 2 {caseLabel3} @STEAL4_15139 {caseNum4} 3 {caseLabel4} @STEAL4_16241 {caseNum5} 4 {caseLabel5} @STEAL4_16660 {caseNum6} 5 {caseLabel6} @STEAL4_16787 {caseNum7} 6 {caseLabel7} @STEAL4_17184
switch_continued 99 {caseLabel1} @STEAL4_18782 {caseNum2} -1 {caseLabel2} @STEAL4_18803 {caseNum3} -1 {caseLabel3} @STEAL4_18803 {caseNum4} -1 {caseLabel4} @STEAL4_18803 {caseNum5} -1 {caseLabel5} @STEAL4_18803 {caseNum6} -1 {caseLabel6} @STEAL4_18803 {caseNum7} -1 {caseLabel7} @STEAL4_18803 {caseNum8} -1 {caseLabel8} @STEAL4_18803 {caseNum9} -1 {caseLabel9} @STEAL4_18803

:STEAL4_14858
clear_prints 
if 
  133@ <> 2
goto_if_false @STEAL4_14892
133@ = 2
gosub @STEAL4_29788

:STEAL4_14892
194@ = 0
display_nth_onscreen_counter_with_string $st4_mission_attempts {display} CounterDisplay.Bar {slot} 1 {text} 'ST4_30'
print_help 'ST4_H09'
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14952
set_char_decision_maker 68@ {handleOrTemplate} 168@

:STEAL4_14952
35@ += 1
goto @STEAL4_18803

:STEAL4_14966
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15118
49@ = open_sequence_task 
if 
  not is_car_dead 86@
goto_if_false @STEAL4_15010
task_leave_car -1 {vehicle} 86@

:STEAL4_15010
if 
  not is_char_dead 70@
goto_if_false @STEAL4_15033
task_kill_char_on_foot -1 {target} 70@

:STEAL4_15033
if 
  not is_char_dead 71@
goto_if_false @STEAL4_15056
task_kill_char_on_foot -1 {target} 71@

:STEAL4_15056
if 
  not is_char_dead 72@
goto_if_false @STEAL4_15079
task_kill_char_on_foot -1 {target} 72@

:STEAL4_15079
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
56@ = 0
194@ = 0
35@ += 1

:STEAL4_15118
TIMERA = 0
TIMERB = 0
goto @STEAL4_18803

:STEAL4_15139
if 
  56@ == 0
goto_if_false @STEAL4_15240
set_lvar_text_label 189@s = 'STL4_HA'
set_lvar_int_to_constant 191@ = 5210
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_15240
194@ = 0
56@ += 1
TIMERA = 0

:STEAL4_15240
if 
  TIMERA > 45000
goto_if_false @STEAL4_15275
35@ += 1
goto @STEAL4_15308

:STEAL4_15275
if and
  is_char_dead 70@
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @STEAL4_15308
35@ += 1

:STEAL4_15308
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_15781
if 
  124@ == 0
goto_if_false @STEAL4_15774
clear_help 
43@ = 0

:STEAL4_15353
if 
  3 > 43@
goto_if_false @STEAL4_15502
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_15488
set_char_accuracy 70@(43@,6i) {accuracy} 30
44@ = get_char_health 70@(43@,6i)
if 
  200 > 44@
goto_if_false @STEAL4_15479
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_15467
44@ = 200

:STEAL4_15467
set_char_health 70@(43@,6i) {health} 44@

:STEAL4_15479
clear_char_tasks 70@(43@,6i)

:STEAL4_15488
43@ += 1
goto @STEAL4_15353

:STEAL4_15502
if 
  not is_char_dead 70@
goto_if_false @STEAL4_15585
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15554
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_15554
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15585
if 
  not is_char_dead 71@
goto_if_false @STEAL4_15668
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15637
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_15637
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15668
if 
  not is_char_dead 72@
goto_if_false @STEAL4_15767
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15720
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_15720
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15749
task_kill_char_on_foot -1 {target} 68@

:STEAL4_15749
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15767
124@ = 1

:STEAL4_15774
goto @STEAL4_16234

:STEAL4_15781
if 
  124@ == 1
goto_if_false @STEAL4_16234
print_help_forever 'ST4_H09'
43@ = 0

:STEAL4_15817
if 
  3 > 43@
goto_if_false @STEAL4_15930
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_15916
set_char_accuracy 70@(43@,6i) {accuracy} 40
44@ = get_char_health 70@(43@,6i)
if 
  44@ > 50
goto_if_false @STEAL4_15907
set_char_health 70@(43@,6i) {health} 50

:STEAL4_15907
clear_char_tasks 70@(43@,6i)

:STEAL4_15916
43@ += 1
goto @STEAL4_15817

:STEAL4_15930
if 
  not is_char_dead 70@
goto_if_false @STEAL4_16029
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15982
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_15982
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16011
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16011
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16029
if 
  not is_char_dead 71@
goto_if_false @STEAL4_16128
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16081
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_16081
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16110
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16110
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16128
if 
  not is_char_dead 72@
goto_if_false @STEAL4_16227
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16180
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_16180
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16209
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16209
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16227
124@ = 0

:STEAL4_16234
goto @STEAL4_18803

:STEAL4_16241
clear_area -1711.59 {y} 44.8495 {z} 2.7813 {radius} 20.0 {clearParticles} True
88@ = create_car 405 {x} -1711.59 {y} 44.8495 {z} 2.7813
set_car_heading 88@ {heading} 232.9281
set_car_straight_line_distance 88@ {distance} 50
73@ = create_char_inside_car 88@ {pedType} PedType.Mission1 {modelId} 24
74@ = create_char_as_passenger 88@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.BikeRear
75@ = create_char_as_passenger 88@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.RearLeft
115@ = add_blip_for_char 73@
116@ = add_blip_for_char 74@
117@ = add_blip_for_char 75@
clear_area -1697.04 {y} 14.7378 {z} 2.7813 {radius} 5.0 {clearParticles} True
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16514
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 88@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 88@ {x} -1647.938 {y} 27.2328 {z} 2.5408 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16509
perform_sequence_task 73@ {sequence} 49@

:STEAL4_16509
clear_sequence_task 49@

:STEAL4_16514
43@ = 3

:STEAL4_16521
if 
  6 > 43@
goto_if_false @STEAL4_16632
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_16618
give_weapon_to_char 70@(43@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@
set_char_accuracy 70@(43@,6i) {accuracy} 40
set_char_health 70@(43@,6i) {health} 50
set_char_suffers_critical_hits 70@(43@,6i) {state} False

:STEAL4_16618
43@ += 1
goto @STEAL4_16521

:STEAL4_16632
TIMERA = 0
194@ = 0
35@ += 1
goto @STEAL4_18803

:STEAL4_16660
if 
  15000 > TIMERA
goto_if_false @STEAL4_16752
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16738
43@ = get_script_task_status 73@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_16731
35@ += 1

:STEAL4_16731
goto @STEAL4_16745

:STEAL4_16738
35@ += 1

:STEAL4_16745
goto @STEAL4_16780

:STEAL4_16752
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16773
clear_char_tasks 73@

:STEAL4_16773
35@ += 1

:STEAL4_16780
goto @STEAL4_18803

:STEAL4_16787
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16903
49@ = open_sequence_task 
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16831
task_leave_car -1 {vehicle} 88@

:STEAL4_16831
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16862
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_16862
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16885
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16885
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16903
if 
  not is_char_dead 74@
goto_if_false @STEAL4_17026
49@ = open_sequence_task 
task_pause -1 {time} 1000
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16954
task_leave_car -1 {vehicle} 88@

:STEAL4_16954
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16985
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_16985
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17008
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17008
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17026
if 
  not is_char_dead 75@
goto_if_false @STEAL4_17149
49@ = open_sequence_task 
task_pause -1 {time} 1500
if 
  not is_car_dead 88@
goto_if_false @STEAL4_17077
task_leave_car -1 {vehicle} 88@

:STEAL4_17077
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17108
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_17108
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17131
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17131
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17149
TIMERA = 0
56@ = 0
194@ = 0
35@ += 1
goto @STEAL4_18803

:STEAL4_17184
if 
  56@ == 0
goto_if_false @STEAL4_17278
set_lvar_text_label 189@s = 'STL4_GB'
set_lvar_int_to_constant 191@ = 5233
set_lvar_int_to_lvar_int 192@ = 73@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_17278
194@ = 0
56@ += 1

:STEAL4_17278
if 
  56@ == 1
goto_if_false @STEAL4_17372
set_lvar_text_label 189@s = 'STL4_HC'
set_lvar_int_to_constant 191@ = 5212
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_17372
194@ = 0
56@ += 1

:STEAL4_17372
if and
  is_char_dead 70@
  is_char_dead 71@
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @STEAL4_17431
if 
  is_char_dead 75@
goto_if_false @STEAL4_17431
35@ = 99

:STEAL4_17431
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_18043
if 
  124@ == 0
goto_if_false @STEAL4_18036
clear_help 
43@ = 0

:STEAL4_17476
if 
  6 > 43@
goto_if_false @STEAL4_17625
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_17611
set_char_accuracy 70@(43@,6i) {accuracy} 30
44@ = get_char_health 70@(43@,6i)
if 
  200 > 44@
goto_if_false @STEAL4_17602
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_17590
44@ = 200

:STEAL4_17590
set_char_health 70@(43@,6i) {health} 44@

:STEAL4_17602
clear_char_tasks 70@(43@,6i)

:STEAL4_17611
43@ += 1
goto @STEAL4_17476

:STEAL4_17625
if 
  not is_char_dead 70@
goto_if_false @STEAL4_17692
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 30.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17692
if 
  not is_char_dead 71@
goto_if_false @STEAL4_17759
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 32.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17759
if 
  not is_char_dead 72@
goto_if_false @STEAL4_17827
49@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17809
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17809
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17827
if 
  not is_char_dead 73@
goto_if_false @STEAL4_17894
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 34.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17894
if 
  not is_char_dead 74@
goto_if_false @STEAL4_17961
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 28.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17961
if 
  not is_char_dead 75@
goto_if_false @STEAL4_18029
49@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18011
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18011
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18029
124@ = 1

:STEAL4_18036
goto @STEAL4_18775

:STEAL4_18043
if 
  124@ == 1
goto_if_false @STEAL4_18775
print_help_forever 'ST4_H09'
43@ = 0

:STEAL4_18079
if 
  6 > 43@
goto_if_false @STEAL4_18192
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_18178
set_char_accuracy 70@(43@,6i) {accuracy} 40
44@ = get_char_health 70@(43@,6i)
if 
  44@ > 50
goto_if_false @STEAL4_18169
set_char_health 70@(43@,6i) {health} 50

:STEAL4_18169
clear_char_tasks 70@(43@,6i)

:STEAL4_18178
43@ += 1
goto @STEAL4_18079

:STEAL4_18192
if 
  not is_char_dead 70@
goto_if_false @STEAL4_18291
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18244
task_goto_char -1 {target} 68@ {time} 10000 {radius} 28.0

:STEAL4_18244
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18273
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18273
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18291
if 
  not is_char_dead 71@
goto_if_false @STEAL4_18384
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18343
task_goto_char -1 {target} 68@ {time} 10000 {radius} 32.0

:STEAL4_18343
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18366
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18366
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18384
if 
  not is_char_dead 72@
goto_if_false @STEAL4_18483
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18436
task_goto_char -1 {target} 68@ {time} 10000 {radius} 26.0

:STEAL4_18436
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18465
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18465
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18483
if 
  not is_char_dead 73@
goto_if_false @STEAL4_18576
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18535
task_goto_char -1 {target} 68@ {time} 10000 {radius} 29.0

:STEAL4_18535
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18558
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18558
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18576
if 
  not is_char_dead 74@
goto_if_false @STEAL4_18669
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18628
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_18628
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18651
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18651
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18669
if 
  not is_char_dead 75@
goto_if_false @STEAL4_18768
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18721
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_18721
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18750
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18750
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18768
124@ = 0

:STEAL4_18775
goto @STEAL4_18803

:STEAL4_18782
35@ = 0
34@ += 2
goto @STEAL4_18803

:STEAL4_18803
if 
  not is_char_dead 68@
goto_if_false @STEAL4_19087
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_19087
49@ = open_sequence_task 
if 
  not is_char_dead 70@
goto_if_false @STEAL4_18889
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 70@
goto @STEAL4_19062

:STEAL4_18889
if 
  not is_char_dead 71@
goto_if_false @STEAL4_18925
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 71@
goto @STEAL4_19062

:STEAL4_18925
if 
  not is_char_dead 72@
goto_if_false @STEAL4_18961
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 72@
goto @STEAL4_19062

:STEAL4_18961
if 
  not is_char_dead 73@
goto_if_false @STEAL4_18997
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 73@
goto @STEAL4_19062

:STEAL4_18997
if 
  not is_char_dead 74@
goto_if_false @STEAL4_19033
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 74@
goto @STEAL4_19062

:STEAL4_19033
if 
  not is_char_dead 75@
goto_if_false @STEAL4_19062
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 75@

:STEAL4_19062
task_pause -1 {time} 1000
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_19087
if 
  6 > 39@
goto_if_false @STEAL4_19341
set_lvar_int_to_lvar_int 43@ = 39@
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_19341
if 
  does_object_exist 105@
goto_if_false @STEAL4_19341
if 
  not is_object_static 105@
goto_if_false @STEAL4_19341
46@ = get_object_speed 105@
if 
  46@ > 4.0
goto_if_false @STEAL4_19259
if 
  is_char_touching_object_on_foot 70@(43@,6i) {object} 105@
goto_if_false @STEAL4_19259
45@ = get_script_task_status 70@(43@,6i) {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19259
task_die 70@(43@,6i)

:STEAL4_19259
if 
  locate_char_on_foot_object_3d 70@(43@,6i) {object} 105@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @STEAL4_19341
45@ = get_script_task_status 70@(43@,6i) {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19341
task_die 70@(43@,6i)

:STEAL4_19341
if 
  39@ == 1
goto_if_false @STEAL4_19503
if 
  does_vehicle_exist 87@
goto_if_false @STEAL4_19431
if 
  not is_car_dead 87@
goto_if_false @STEAL4_19431
$x, $y, $z = get_car_coordinates 87@
if 
  0.0 > $z
goto_if_false @STEAL4_19431
explode_car 87@

:STEAL4_19431
if 
  does_vehicle_exist 88@
goto_if_false @STEAL4_19503
if 
  not is_car_dead 88@
goto_if_false @STEAL4_19503
$x, $y, $z = get_car_coordinates 88@
if 
  0.0 > $z
goto_if_false @STEAL4_19503
explode_car 88@

:STEAL4_19503
if 
  39@ == 2
goto_if_false @STEAL4_19609
43@ = 0

:STEAL4_19528
if 
  6 > 43@
goto_if_false @STEAL4_19609
if 
  is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_19595
if 
  does_blip_exist 112@(43@,6i)
goto_if_false @STEAL4_19595
remove_blip 112@(43@,6i)

:STEAL4_19595
43@ += 1
goto @STEAL4_19528

:STEAL4_19609
return 

:STEAL4_19611
return 

:STEAL4_19613
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19665
if 
  124@ == 0
goto_if_false @STEAL4_19658
clear_help 
124@ = 1

:STEAL4_19658
goto @STEAL4_19701

:STEAL4_19665
if 
  124@ == 1
goto_if_false @STEAL4_19701
print_help_forever 'ST4_H09'
124@ = 0

:STEAL4_19701
switch_start 35@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_21938 {caseNum1} 0 {caseLabel1} @STEAL4_19829 {caseNum2} 1 {caseLabel2} @STEAL4_19850 {caseNum3} 2 {caseLabel3} @STEAL4_19883 {caseNum4} 3 {caseLabel4} @STEAL4_19943 {caseNum5} 4 {caseLabel5} @STEAL4_20327 {caseNum6} 5 {caseLabel6} @STEAL4_20356 {caseNum7} 6 {caseLabel7} @STEAL4_20837
switch_continued 7 {caseLabel1} @STEAL4_21056 {caseNum2} 8 {caseLabel2} @STEAL4_21223 {caseNum3} 9 {caseLabel3} @STEAL4_21840 {caseNum4} 99 {caseLabel4} @STEAL4_21917 {caseNum5} -1 {caseLabel5} @STEAL4_21938 {caseNum6} -1 {caseLabel6} @STEAL4_21938 {caseNum7} -1 {caseLabel7} @STEAL4_21938 {caseNum8} -1 {caseLabel8} @STEAL4_21938 {caseNum9} -1 {caseLabel9} @STEAL4_21938

:STEAL4_19829
TIMERA = 0
35@ += 1
goto @STEAL4_21938

:STEAL4_19850
if 
  TIMERA > 2000
goto_if_false @STEAL4_19876
35@ += 1

:STEAL4_19876
goto @STEAL4_21938

:STEAL4_19883
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19915
set_player_control $player1 {state} False
goto @STEAL4_19922

:STEAL4_19915
$disable_crane = 1

:STEAL4_19922
TIMERA = 0
35@ += 1
goto @STEAL4_21938

:STEAL4_19943
if 
  TIMERA > 0
goto_if_false @STEAL4_20320
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
set_fixed_camera_position -1675.598 {y} 25.4341 {z} 2.8434 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1674.722 {y} 25.8894 {z} 3.0036 {switchStyle} SwitchType.JumpCut
80@ = create_char PedType.Mission1 {modelId} 24 {x} -1676.095 {y} 26.8479 {z} 2.5869
set_char_heading 80@ {heading} 314.8203
120@ = add_blip_for_char 80@
81@ = create_char PedType.Mission1 {modelId} 24 {x} -1674.4041 {y} 23.8107 {z} 2.6233
set_char_heading 81@ {heading} 314.8204
121@ = add_blip_for_char 81@
43@ = 0

:STEAL4_20122
if 
  2 > 43@
goto_if_false @STEAL4_20202
set_char_decision_maker 80@(43@,2i) {handleOrTemplate} 172@
set_char_accuracy 80@(43@,2i) {accuracy} 20
set_char_health 80@(43@,2i) {health} 100
give_weapon_to_char 80@(43@,2i) {weaponType} WeaponType.Pistol {ammo} 9999
43@ += 1
goto @STEAL4_20122

:STEAL4_20202
task_go_straight_to_coord 80@ {x} -1664.113 {y} 34.4836 {z} 2.5869 {speed} MoveState.Run {time} 999999
task_go_straight_to_coord 81@ {x} -1662.307 {y} 31.2954 {z} 2.5869 {speed} MoveState.Run {time} 999999
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5234

:STEAL4_20267
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_20293
wait 0
goto @STEAL4_20267

:STEAL4_20293
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_GC' {time} 5000 {flag} 1
35@ += 1

:STEAL4_20320
goto @STEAL4_21938

:STEAL4_20327
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_20349
35@ += 1

:STEAL4_20349
goto @STEAL4_21938

:STEAL4_20356
switch_widescreen False
enable_crane_controls True {down} True {release} True
$disable_crane = 0
if 
  not is_char_dead 80@
goto_if_false @STEAL4_20421
set_char_coordinates 80@ {x} -1657.3979 {y} 32.9707 {z} 2.8213
set_char_heading 80@ {heading} 320.0

:STEAL4_20421
if 
  not is_char_dead 81@
goto_if_false @STEAL4_20467
set_char_coordinates 81@ {x} -1655.264 {y} 31.706 {z} 2.8213
set_char_heading 81@ {heading} 320.0

:STEAL4_20467
43@ = 0

:STEAL4_20474
if 
  2 > 43@
goto_if_false @STEAL4_20636
if 
  not is_char_dead 80@(43@,2i)
goto_if_false @STEAL4_20622
set_char_decision_maker 80@(43@,2i) {handleOrTemplate} 171@
set_char_accuracy 80@(43@,2i) {accuracy} 20
set_char_health 80@(43@,2i) {health} 100
give_weapon_to_char 80@(43@,2i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship 80@(43@,2i) {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 80@(43@,2i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20622
task_goto_char 80@(43@,2i) {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_20622
43@ += 1
goto @STEAL4_20474

:STEAL4_20636
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20676
if 
  not is_char_dead 80@
goto_if_false @STEAL4_20676
task_kill_char_on_foot 68@ {target} 80@

:STEAL4_20676
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_20715
$disable_crane = 0
$reset_crane_camera = 1
goto @STEAL4_20724

:STEAL4_20715
restore_camera_jumpcut 
set_player_control $player1 {state} True

:STEAL4_20724
clear_prints 
if 
  not is_car_dead 86@
goto_if_false @STEAL4_20773
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_20773
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_20773
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20823
add_char_decision_maker_event_response 168@ {event} Event.PotentialGetRunOver {taskId} TaskId.ComplexGetOutOfWayOfCar {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} False {onFoot} True

:STEAL4_20823
35@ += 1
goto @STEAL4_21938

:STEAL4_20837
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21049
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21049
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21007
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_21007
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 30000
56@ = 0
194@ = 0
35@ += 1

:STEAL4_21007
if and
  is_char_dead 80@
  is_char_dead 81@
goto_if_false @STEAL4_21049
35@ += 1
56@ = 0
194@ = 0

:STEAL4_21049
goto @STEAL4_21938

:STEAL4_21056
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21216
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21216
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21192
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 30000
35@ += 1
56@ = generate_random_int_in_range 0 {max} 2
goto @STEAL4_21216

:STEAL4_21192
TIMERA = 30000
35@ += 1
56@ = generate_random_int_in_range 0 {max} 2

:STEAL4_21216
goto @STEAL4_21938

:STEAL4_21223
if 
  56@ == 0
goto_if_false @STEAL4_21317
set_lvar_text_label 189@s = 'STL4_JA'
set_lvar_int_to_constant 191@ = 5213
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_21317
194@ = 0
56@ = 2

:STEAL4_21317
if 
  56@ == 1
goto_if_false @STEAL4_21411
set_lvar_text_label 189@s = 'STL4_JB'
set_lvar_int_to_constant 191@ = 5214
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_21411
194@ = 0
56@ = 2

:STEAL4_21411
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21608
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21608
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21608
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21608
if 
  TIMERA > 35000
goto_if_false @STEAL4_21525
print_now 'ST4_29' {time} 5000 {flag} 1
TIMERA = 0

:STEAL4_21525
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_21608
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_21608
if 
  194@ == 0
goto_if_false @STEAL4_21738
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21738
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21738
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21738
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21738
if 
  TIMERA > 30000
goto_if_false @STEAL4_21738
print_now 'ST4_28' {time} 5000 {flag} 1
TIMERA = 0

:STEAL4_21738
if 
  194@ == 0
goto_if_false @STEAL4_21833
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21833
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21833
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21833
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21833
35@ += 1

:STEAL4_21833
goto @STEAL4_21938

:STEAL4_21840
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21898
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21898
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21898
set_char_get_out_upside_down_car 68@ {state} False

:STEAL4_21898
clear_onscreen_counter $st4_mission_attempts
35@ = 99
goto @STEAL4_21938

:STEAL4_21917
35@ = 0
34@ += 1
goto @STEAL4_21938

:STEAL4_21938
if 
  35@ > 3
goto_if_false @STEAL4_22069
if 
  does_blip_exist 119@
goto_if_false @STEAL4_22019
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22012
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22012
remove_blip 119@

:STEAL4_22012
goto @STEAL4_22069

:STEAL4_22019
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22069
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22069
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_22069
return 

:STEAL4_22071
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_22123
if 
  124@ == 0
goto_if_false @STEAL4_22116
clear_help 
124@ = 1

:STEAL4_22116
goto @STEAL4_22159

:STEAL4_22123
if 
  124@ == 1
goto_if_false @STEAL4_22159
print_help_forever 'ST4_H09'
124@ = 0

:STEAL4_22159
if 
  35@ == -1
goto_if_false @STEAL4_22197
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL4_22197
if 
  35@ == 0
goto_if_false @STEAL4_22341
print_now 'ST4_26' {time} 5000 {flag} 1
remove_blip 108@
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
if 
  does_blip_exist 120@
goto_if_false @STEAL4_22277
remove_blip 120@

:STEAL4_22277
if 
  does_blip_exist 121@
goto_if_false @STEAL4_22298
remove_blip 121@

:STEAL4_22298
TIMERA = 20000
TIMERB = 0
56@ = 0
62@ = 0
set_wanted_multiplier 1.0
35@ += 1

:STEAL4_22341
if 
  35@ == 1
goto_if_false @STEAL4_23889
if 
  56@ == 0
goto_if_false @STEAL4_22417
if 
  62@ > 5500
goto_if_false @STEAL4_22410
153@ = 5
56@ += 1

:STEAL4_22410
goto @STEAL4_22648

:STEAL4_22417
if 
  56@ == 1
goto_if_false @STEAL4_22491
if 
  153@ == 0
goto_if_false @STEAL4_22484
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22477
137@ = get_car_health 86@

:STEAL4_22477
56@ += 1

:STEAL4_22484
goto @STEAL4_22648

:STEAL4_22491
if 
  56@ == 2
goto_if_false @STEAL4_22566
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22559
43@ = get_car_health 86@
if 
  is_int_lvar_greater_than_int_lvar 137@ > 43@
goto_if_false @STEAL4_22559
56@ += 1

:STEAL4_22559
goto @STEAL4_22648

:STEAL4_22566
if 
  56@ == 3
goto_if_false @STEAL4_22605
153@ = 7
56@ += 1
goto @STEAL4_22648

:STEAL4_22605
if 
  56@ == 4
goto_if_false @STEAL4_22648
if 
  153@ == 0
goto_if_false @STEAL4_22648
56@ += 1

:STEAL4_22648
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22838
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22838
if 
  locate_car_3d 86@ {x} -2024.7 {y} 179.4 {z} 27.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL4_22838
if 
  not is_char_dead 68@
goto_if_false @STEAL4_22838
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_22822
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22815
if 
  is_vehicle_on_all_wheels 86@
goto_if_false @STEAL4_22815
set_player_control $player1 {state} False
35@ += 1

:STEAL4_22815
goto @STEAL4_22838

:STEAL4_22822
print_now 'ST4_27' {time} 6000 {flag} 1

:STEAL4_22838
if 
  not is_char_dead 68@
goto_if_false @STEAL4_22910
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22910
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_22910
if 
  does_blip_exist 107@
goto_if_false @STEAL4_22910
remove_blip 107@

:STEAL4_22910
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23603
if 
  not is_char_dead 68@
goto_if_false @STEAL4_23603
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_23603
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23530
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_23034
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True
print_now 'ST4_05' {time} 5000 {flag} 1
goto @STEAL4_23034

:STEAL4_23034
if 
  does_blip_exist 108@
goto_if_false @STEAL4_23055
remove_blip 108@

:STEAL4_23055
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  TIMERA > 30000
goto_if_false @STEAL4_23523
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_23523
178@ += 1
if 
  178@ > 5
goto_if_false @STEAL4_23153
178@ = 0

:STEAL4_23153
switch_start 178@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_23516 {caseNum1} 0 {caseLabel1} @STEAL4_23216 {caseNum2} 1 {caseLabel2} @STEAL4_23266 {caseNum3} 2 {caseLabel3} @STEAL4_23316 {caseNum4} 3 {caseLabel4} @STEAL4_23366 {caseNum5} 4 {caseLabel5} @STEAL4_23416 {caseNum6} 5 {caseLabel6} @STEAL4_23466 {caseNum7} -1 {caseLabel7} @STEAL4_23516

:STEAL4_23216
set_var_text_label s$audio_string = 'CESX_AA'
set_var_int_to_constant $audio_sound_file = 42400
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23266
set_var_text_label s$audio_string = 'CESX_AB'
set_var_int_to_constant $audio_sound_file = 42401
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23316
set_var_text_label s$audio_string = 'CESX_AC'
set_var_int_to_constant $audio_sound_file = 42402
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23366
set_var_text_label s$audio_string = 'CESX_AD'
set_var_int_to_constant $audio_sound_file = 42403
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23416
set_var_text_label s$audio_string = 'CESX_AE'
set_var_int_to_constant $audio_sound_file = 42404
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23466
set_var_text_label s$audio_string = 'CESX_AF'
set_var_int_to_constant $audio_sound_file = 42405
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23516
TIMERA = 0

:STEAL4_23523
goto @STEAL4_23603

:STEAL4_23530
if 
  does_blip_exist 119@
goto_if_false @STEAL4_23551
remove_blip 119@

:STEAL4_23551
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_23603
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print_now 'ST4_26' {time} 7000 {flag} 1

:STEAL4_23603
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23697
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23666
if 
  does_blip_exist 119@
goto_if_false @STEAL4_23659
remove_blip 119@

:STEAL4_23659
goto @STEAL4_23697

:STEAL4_23666
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_23697
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_23697
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23889
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23889
if 
  not is_char_dead 68@
goto_if_false @STEAL4_23889
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_23837
if 
  TIMERB > 20000
goto_if_false @STEAL4_23809
print_now 'ST4_27' {time} 7000 {flag} 1
TIMERB = 0

:STEAL4_23809
if 
  does_blip_exist 108@
goto_if_false @STEAL4_23830
remove_blip 108@

:STEAL4_23830
goto @STEAL4_23889

:STEAL4_23837
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_23889
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print_now 'ST4_26' {time} 7000 {flag} 1

:STEAL4_23889
if 
  35@ == 2
goto_if_false @STEAL4_24958
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:STEAL4_23921
if 
  get_fading_status 
goto_if_false @STEAL4_23945
wait 0
goto @STEAL4_23921

:STEAL4_23945
open_garage 'HBGDSFS'

:STEAL4_23956
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL4_23989
wait 0
goto @STEAL4_23956

:STEAL4_23989
set_area_visible 1
if 
  is_player_playing $player1
goto_if_false @STEAL4_24016
set_char_area_visible $scplayer {areaId} 1

:STEAL4_24016
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2045.2 {y} 170.8 {z} 29.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2040.1 {y} 181.6 {z} 29.1 {switchStyle} SwitchType.JumpCut
50@ = -2040.1
50@ += 2045.2
51@ = 181.6
51@ -= 170.8
52@ = 29.1
52@ -= 29.4
50@ *= 4.0
51@ *= 4.0
52@ *= 4.0
$x = -2045.2
add_float_lvar_to_float_var $x += 50@
$y = 170.8
add_float_lvar_to_float_var $y += 51@
$z = 29.4
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
if 
  not is_char_dead 68@
goto_if_false @STEAL4_24301
set_char_area_visible 68@ {areaId} 1

:STEAL4_24301
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24324
set_vehicle_area_visible 86@ {interiorId} 1

:STEAL4_24324
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24367
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_24367
warp_char_into_car $scplayer {vehicle} 86@

:STEAL4_24367
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24413
set_car_coordinates 86@ {x} -2033.8 {y} 178.6 {z} 27.6
set_car_heading 86@ {heading} 90.0

:STEAL4_24413
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 86@ {x} -2044.4 {y} 177.6 {z} 27.6 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2034.731 {y} 177.1182 {z} 27.8359 {speed} MoveState.Walk {time} 50000
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
do_fade 500 {direction} Fade.In

:STEAL4_24506
if 
  get_fading_status 
goto_if_false @STEAL4_24530
wait 0
goto @STEAL4_24506

:STEAL4_24530
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @STEAL4_24621
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5222

:STEAL4_24568
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_24594
wait 0
goto @STEAL4_24568

:STEAL4_24594
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_NA' {time} 5000 {flag} 1
goto @STEAL4_24678

:STEAL4_24621
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5223

:STEAL4_24632
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_24658
wait 0
goto @STEAL4_24632

:STEAL4_24658
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_NB' {time} 5000 {flag} 1

:STEAL4_24678
TIMERA = 0

:STEAL4_24685
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_24863
if 
  not is_char_dead 68@
goto_if_false @STEAL4_24852
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24852
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_24852
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_24852
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_24852
49@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2034.731 {y} 177.1182 {z} 27.8359 {speed} MoveState.Walk {time} 50000
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_24852
wait 0
goto @STEAL4_24685

:STEAL4_24863
if 
  TIMERA <= 5000
goto_if_false @STEAL4_24893
wait 0
goto @STEAL4_24863

:STEAL4_24893
do_fade 1000 {direction} Fade.Out

:STEAL4_24900
if 
  get_fading_status 
goto_if_false @STEAL4_24924
wait 0
goto @STEAL4_24900

:STEAL4_24924
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @STEAL4_24951
set_char_area_visible $scplayer {areaId} 0

:STEAL4_24951
35@ += 1

:STEAL4_24958
if 
  35@ == 3
goto_if_false @STEAL4_25730
if 
  not is_car_dead 86@
goto_if_false @STEAL4_25036
43@ = get_car_health 86@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 1000.0
46@ *= 5000.0
cset_lvar_int_to_lvar_float 152@ =# 46@

:STEAL4_25036
clear_char_tasks_immediately $scplayer
delete_char 68@
delete_car 86@
clear_prints 
close_garage 'HBGDSFS'

:STEAL4_25064
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL4_25097
wait 0
goto @STEAL4_25064

:STEAL4_25097
set_char_coordinates $scplayer {x} -1569.625 {y} 122.3311 {z} 2.5469
set_fixed_camera_position -1571.141 {y} 131.4032 {z} 3.3235 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1571.6851 {y} 132.226 {z} 3.4872 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -1571.6851 {y} 132.226 {z} 3.4872 {heading} 0.0
clear_area -1570.718 {y} 131.0493 {z} 3.3547 {radius} 50.0 {clearParticles} True
switch_widescreen True
$steal4_flag = 1
start_new_script @IMPEXPM 
$import_export_is_active = 1

:STEAL4_25240
if 
  not has_model_loaded #NF_BLACKBOARD
goto_if_false @STEAL4_25266
wait 0
goto @STEAL4_25240

:STEAL4_25266
clear_help 
do_fade 1500 {direction} Fade.In

:STEAL4_25275
if 
  get_fading_status 
goto_if_false @STEAL4_25299
wait 0
goto @STEAL4_25275

:STEAL4_25299
clear_help 
print_now 'ST4_45' {time} 5000 {flag} 1
wait 5000
print_now 'ST4_46' {time} 5000 {flag} 1
wait 5000
do_fade 500 {direction} Fade.Out

:STEAL4_25350
if 
  get_fading_status 
goto_if_false @STEAL4_25374
wait 0
goto @STEAL4_25350

:STEAL4_25374
set_fixed_camera_position -1554.593 {y} -60.4267 {z} 75.7247 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1554.782 {y} -59.6013 {z} 75.193 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -1554.782 {y} -59.6013 {z} 75.193 {heading} 0.0
do_fade 500 {direction} Fade.In

:STEAL4_25454
if 
  get_fading_status 
goto_if_false @STEAL4_25478
wait 0
goto @STEAL4_25454

:STEAL4_25478
print_now 'ST4_47' {time} 5000 {flag} 1
wait 5000
print_now 'ST4_48' {time} 5000 {flag} 1
wait 5000
do_fade 500 {direction} Fade.Out

:STEAL4_25527
if 
  get_fading_status 
goto_if_false @STEAL4_25551
wait 0
goto @STEAL4_25527

:STEAL4_25551
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.3
set_char_heading $scplayer {heading} 277.5
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5

:STEAL4_25620
if 
  is_char_waiting_for_world_collision $scplayer
goto_if_false @STEAL4_25647
wait 0
goto @STEAL4_25620

:STEAL4_25647
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.3
set_char_heading $scplayer {heading} 277.5
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 1000 {direction} Fade.In

:STEAL4_25692
if 
  get_fading_status 
goto_if_false @STEAL4_25716
wait 0
goto @STEAL4_25692

:STEAL4_25716
set_player_control $player1 {state} True
36@ = 1

:STEAL4_25730
return 

:STEAL4_25732
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_25807
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  91@ <> -1
goto_if_false @STEAL4_25807
if 
  not is_int_lvar_equal_to_int_lvar 105@ == 91@
goto_if_false @STEAL4_25807
set_lvar_int_to_lvar_int 105@ = 91@

:STEAL4_25807
if 
  not is_char_dead 68@
goto_if_false @STEAL4_25937
if 
  does_object_exist 105@
goto_if_false @STEAL4_25937
if 
  not is_object_static 105@
goto_if_false @STEAL4_25937
46@ = get_object_speed 105@
if 
  46@ > 4.0
goto_if_false @STEAL4_25937
if 
  is_char_touching_object_on_foot 68@ {object} 105@
goto_if_false @STEAL4_25937
45@ = get_script_task_status 68@ {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_25937
task_die 68@

:STEAL4_25937
if 
  39@ == 8
goto_if_false @STEAL4_26323
if 
  135@ == 1
goto_if_false @STEAL4_26323
if 
  does_object_exist 101@
goto_if_false @STEAL4_26323
if 
  does_vehicle_exist 84@
goto_if_false @STEAL4_26323
if 
  not is_car_dead 84@
goto_if_false @STEAL4_26323
$x, $y, $z = get_offset_from_object_in_world_coords 101@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
57@, 58@, 59@ = get_object_coordinates 101@
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26323
$x, $y, $z = get_car_coordinates 84@
57@, 58@, 59@ = get_offset_from_car_in_world_coords 84@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
detach_car 84@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
64@ = 0
135@ += 1

:STEAL4_26323
if 
  135@ == 2
goto_if_false @STEAL4_26419
if 
  300 > 64@
goto_if_false @STEAL4_26412
if 
  not is_car_dead 84@
goto_if_false @STEAL4_26405
apply_force_to_car 84@ {xOffset} 179@ {yOffset} 180@ {zOffset} 181@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:STEAL4_26405
goto @STEAL4_26419

:STEAL4_26412
135@ += 1

:STEAL4_26419
if 
  39@ == 9
goto_if_false @STEAL4_26805
if 
  136@ == 1
goto_if_false @STEAL4_26805
if 
  does_object_exist 102@
goto_if_false @STEAL4_26805
if 
  does_vehicle_exist 85@
goto_if_false @STEAL4_26805
if 
  not is_car_dead 85@
goto_if_false @STEAL4_26805
$x, $y, $z = get_offset_from_object_in_world_coords 102@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
57@, 58@, 59@ = get_object_coordinates 102@
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26805
$x, $y, $z = get_car_coordinates 85@
57@, 58@, 59@ = get_offset_from_car_in_world_coords 85@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
detach_car 85@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
64@ = 0
136@ += 1

:STEAL4_26805
if 
  135@ == 2
goto_if_false @STEAL4_26901
if 
  300 > 64@
goto_if_false @STEAL4_26894
if 
  not is_car_dead 85@
goto_if_false @STEAL4_26887
apply_force_to_car 85@ {xOffset} 179@ {yOffset} 180@ {zOffset} 181@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:STEAL4_26887
goto @STEAL4_26901

:STEAL4_26894
136@ += 1

:STEAL4_26901
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_27250
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  91@ == -1
goto_if_false @STEAL4_27250
if 
  does_object_exist 105@
goto_if_false @STEAL4_27250
if 
  182@ > 15.0
goto_if_false @STEAL4_27242
if 
  not is_car_dead 82@
goto_if_false @STEAL4_27026
if 
  is_vehicle_touching_object 82@ {handle} 105@
goto_if_false @STEAL4_27026
explode_car 82@

:STEAL4_27026
if 
  not is_car_dead 84@
goto_if_false @STEAL4_27082
if 
  not is_vehicle_attached 84@
goto_if_false @STEAL4_27082
if 
  is_vehicle_touching_object 84@ {handle} 105@
goto_if_false @STEAL4_27082
explode_car 84@

:STEAL4_27082
if 
  not is_car_dead 86@
goto_if_false @STEAL4_27122
if 
  is_vehicle_touching_object 86@ {handle} 105@
goto_if_false @STEAL4_27122
explode_car 86@

:STEAL4_27122
if 
  not is_car_dead 87@
goto_if_false @STEAL4_27162
if 
  is_vehicle_touching_object 87@ {handle} 105@
goto_if_false @STEAL4_27162
explode_car 87@

:STEAL4_27162
if 
  not is_car_dead 88@
goto_if_false @STEAL4_27202
if 
  is_vehicle_touching_object 88@ {handle} 105@
goto_if_false @STEAL4_27202
explode_car 88@

:STEAL4_27202
if 
  not is_car_dead 89@
goto_if_false @STEAL4_27242
if 
  is_vehicle_touching_object 89@ {handle} 105@
goto_if_false @STEAL4_27242
explode_car 89@

:STEAL4_27242
182@ = get_object_speed 105@

:STEAL4_27250
if 
  39@ == 4
goto_if_false @STEAL4_27379
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_27379
if 
  not is_car_dead 82@
goto_if_false @STEAL4_27366
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_27359
43@ = store_car_char_is_in_no_save $scplayer
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 86@
goto_if_false @STEAL4_27359
mark_car_as_no_longer_needed 82@
82@ = store_car_char_is_in $scplayer

:STEAL4_27359
goto @STEAL4_27379

:STEAL4_27366
mark_car_as_no_longer_needed 82@
82@ = store_car_char_is_in $scplayer

:STEAL4_27379
if 
  39@ == 5
goto_if_false @STEAL4_27504
if 
  does_char_exist 68@
goto_if_false @STEAL4_27504
if 
  not is_char_dead 68@
goto_if_false @STEAL4_27504
43@ = get_char_health 68@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 500.0
46@ *= 100.0
if 
  46@ > 100.0
goto_if_false @STEAL4_27496
46@ = 100.0

:STEAL4_27496
cset_var_int_to_lvar_float $st4_mission_attempts =# 46@

:STEAL4_27504
if 
  39@ == 6
goto_if_false @STEAL4_27575
if 
  does_vehicle_exist 89@
goto_if_false @STEAL4_27575
if 
  is_car_dead 89@
goto_if_false @STEAL4_27575
if 
  does_blip_exist 118@
goto_if_false @STEAL4_27575
remove_blip 118@

:STEAL4_27575
if 
  39@ == 8
goto_if_false @STEAL4_27755
43@ = 0

:STEAL4_27600
if 
  6 > 43@
goto_if_false @STEAL4_27681
if 
  does_blip_exist 112@(43@,6i)
goto_if_false @STEAL4_27667
if 
  is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_27667
remove_blip 112@(43@,6i)

:STEAL4_27667
43@ += 1
goto @STEAL4_27600

:STEAL4_27681
if 
  does_blip_exist 120@
goto_if_false @STEAL4_27718
if 
  is_char_dead 80@
goto_if_false @STEAL4_27718
remove_blip 120@

:STEAL4_27718
if 
  does_blip_exist 121@
goto_if_false @STEAL4_27755
if 
  is_char_dead 81@
goto_if_false @STEAL4_27755
remove_blip 121@

:STEAL4_27755
if 
  128@ == 1
goto_if_false @STEAL4_27836
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_27836
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  83@ <> -1
goto_if_false @STEAL4_27836
enable_crane_controls True {down} True {release} True
128@ = 2

:STEAL4_27836
if 
  128@ == 2
goto_if_false @STEAL4_27917
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_27917
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_cabin
if 
  83@ == -1
goto_if_false @STEAL4_27917
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_27917
if 
  39@ == 7
goto_if_false @STEAL4_28032
if 
  does_vehicle_exist 86@
goto_if_false @STEAL4_27986
if 
  is_car_dead 86@
goto_if_false @STEAL4_27986
wait 2000
37@ = 1
140@ = 2

:STEAL4_27986
if 
  does_char_exist 68@
goto_if_false @STEAL4_28032
if 
  is_char_dead 68@
goto_if_false @STEAL4_28032
37@ = 1
140@ = 3

:STEAL4_28032
return 

:STEAL4_28034
if 
  126@ == 1
goto_if_false @STEAL4_28160
if 
  not is_char_dead 68@
goto_if_false @STEAL4_28160
if 
  not is_group_member 68@ {handle} $Players_Group
goto_if_false @STEAL4_28160
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_28121
print_now 'ST4_42' {time} 5000 {flag} 1

:STEAL4_28121
126@ += 1
if 
  133@ <> 1
goto_if_false @STEAL4_28160
133@ = 1
gosub @STEAL4_29788

:STEAL4_28160
if 
  126@ == 2
goto_if_false @STEAL4_28284
if 
  not is_char_dead 68@
goto_if_false @STEAL4_28284
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_28284
set_group_member $Players_Group {handle} 68@
set_char_drowns_in_water 68@ {state} False
126@ = 1
if 
  133@ <> 3
goto_if_false @STEAL4_28284
133@ = 3
gosub @STEAL4_29788

:STEAL4_28284
return 

:STEAL4_28286
request_model 405
request_model 346
request_model 24

:STEAL4_28300
if or
  not has_model_loaded 559
  not has_model_loaded 405
  not has_model_loaded 346
  not has_model_loaded 24
goto_if_false @STEAL4_28341
wait 0
goto @STEAL4_28300

:STEAL4_28341
clear_area -1711.59 {y} 44.8495 {z} 2.7813 {radius} 20.0 {clearParticles} True
87@ = create_car 405 {x} -1711.59 {y} 44.8495 {z} 2.7813
set_car_heading 87@ {heading} 232.9281
set_car_straight_line_distance 87@ {distance} 100
70@ = create_char_inside_car 87@ {pedType} PedType.Mission1 {modelId} 24
71@ = create_char_as_passenger 87@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.BikeRear
72@ = create_char_as_passenger 87@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.RearLeft
112@ = add_blip_for_char 70@
113@ = add_blip_for_char 71@
114@ = add_blip_for_char 72@
43@ = 0

:STEAL4_28476
if 
  3 > 43@
goto_if_false @STEAL4_28587
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_28573
give_weapon_to_char 70@(43@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@
set_char_accuracy 70@(43@,6i) {accuracy} 40
set_char_health 70@(43@,6i) {health} 70
set_char_suffers_critical_hits 70@(43@,6i) {state} False

:STEAL4_28573
43@ += 1
goto @STEAL4_28476

:STEAL4_28587
clear_area -1697.04 {y} 14.7378 {z} 2.7813 {radius} 5.0 {clearParticles} True
return 
if 
  not is_car_dead 87@
goto_if_false @STEAL4_28734
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1643.394 {y} 19.6494 {z} 3.6706 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 70@
goto_if_false @STEAL4_28729
perform_sequence_task 70@ {sequence} 49@

:STEAL4_28729
clear_sequence_task 49@

:STEAL4_28734
return 

:STEAL4_28736
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @STEAL4_28766
set_object_coordinates_and_velocity $sf_crane1_arm_LOD {x} $magno_arm_LOD {y} $magno_base_x {z} $magno_base_y

:STEAL4_28766
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_28796
set_object_coordinates_and_velocity $magno_arm {x} $magno_arm_LOD {y} $magno_base_x {z} $magno_base_y

:STEAL4_28796
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @STEAL4_28917
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_28917
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
set_object_heading $magno_base {heading} $magno_base_z
set_object_coordinates_and_velocity $magno_base {x} $x {y} $y {z} $z
if 
  does_object_exist $magno_base_LOD
goto_if_false @STEAL4_28917
set_object_heading $magno_base_LOD {heading} $magno_base_z
set_object_coordinates_and_velocity $magno_base_LOD {x} $x {y} $y {z} $z

:STEAL4_28917
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_29062
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_29062
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$magno_cabin_h = get_object_heading $magno_base
set_object_coordinates_and_velocity $magno_cabin {x} $x {y} $y {z} $z
set_object_rotation $magno_cabin {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h
if 
  does_object_exist $magno_cabin_LOD
goto_if_false @STEAL4_29062
set_object_coordinates_and_velocity $magno_cabin_LOD {x} $x {y} $y {z} $z
set_object_rotation $magno_cabin_LOD {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h

:STEAL4_29062
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_29094
set_rope_height_for_object $magno_cabin {height} $car_model_carmod1
$car_model_carmod1 = get_rope_height_for_object $magno_cabin

:STEAL4_29094
release_entity_from_rope_for_object $magno_cabin
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_29123
set_rope_height_for_object $magno_cabin {height} $car_model_carmod1

:STEAL4_29123
return 
if 
  not is_char_dead 70@
goto_if_false @STEAL4_29254
clear_char_tasks_immediately 70@
set_char_coordinates 70@ {x} -1638.942 {y} 26.9517 {z} 3.0869
set_char_heading 70@ {heading} 339.6872
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1638.837 {y} 27.1035 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29236
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29236
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29254
if 
  not is_char_dead 71@
goto_if_false @STEAL4_29383
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} -1639.896 {y} 21.6694 {z} 3.0869
set_char_heading 71@ {heading} 359.1165
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1639.896 {y} 21.6694 {z} 3.5869 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29365
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29365
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29383
if 
  not is_char_dead 72@
goto_if_false @STEAL4_29512
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} -1641.3459 {y} 27.048 {z} 3.0869
set_char_heading 72@ {heading} 331.6584
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1641.3459 {y} 27.048 {z} 3.5869 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29494
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29494
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29512
if 
  not is_car_dead 87@
goto_if_false @STEAL4_29558
set_car_coordinates 87@ {x} -1642.7061 {y} 19.5606 {z} 3.4189
set_car_heading 87@ {heading} 263.1502

:STEAL4_29558
43@ = 0

:STEAL4_29565
if 
  3 > 43@
goto_if_false @STEAL4_29629
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_29615
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@

:STEAL4_29615
43@ += 1
goto @STEAL4_29565

:STEAL4_29629
return 
switch_start 131@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_29754 {caseNum1} 0 {caseLabel1} @STEAL4_29694 {caseNum2} 1 {caseLabel2} @STEAL4_29724 {caseNum3} -1 {caseLabel3} @STEAL4_29754 {caseNum4} -1 {caseLabel4} @STEAL4_29754 {caseNum5} -1 {caseLabel5} @STEAL4_29754 {caseNum6} -1 {caseLabel6} @STEAL4_29754 {caseNum7} -1 {caseLabel7} @STEAL4_29754

:STEAL4_29694
print_now 'ST4_11' {time} 6000 {flag} 1
131@ += 1
goto @STEAL4_29754

:STEAL4_29724
print_now 'ST4_12' {time} 6000 {flag} 1
131@ += 1
goto @STEAL4_29754

:STEAL4_29754
if 
  131@ > 1
goto_if_false @STEAL4_29779
131@ = 0

:STEAL4_29779
60@ = 0
return 

:STEAL4_29788
if 
  does_char_exist 68@
goto_if_false @STEAL4_29954
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29954
if 
  does_blip_exist 107@
goto_if_false @STEAL4_29841
remove_blip 107@

:STEAL4_29841
if 
  133@ == 1
goto_if_false @STEAL4_29874
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True

:STEAL4_29874
if 
  133@ == 2
goto_if_false @STEAL4_29914
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True
change_blip_display 107@ {display} BlipDisplay.BlipOnly

:STEAL4_29914
if 
  133@ == 3
goto_if_false @STEAL4_29954
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True
change_blip_display 107@ {display} BlipDisplay.Neither

:STEAL4_29954
return 

:STEAL4_29956
clear_prints 
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_30562
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:STEAL4_29990
if 
  get_fading_status 
goto_if_false @STEAL4_30014
wait 0
goto @STEAL4_29990

:STEAL4_30014
clear_onscreen_counter $st4_mission_attempts
$remove_player_from_crane = 1
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30475 {caseNum1} 1 {caseLabel1} @STEAL4_30089 {caseNum2} 2 {caseLabel2} @STEAL4_30219 {caseNum3} 3 {caseLabel3} @STEAL4_30349 {caseNum4} -1 {caseLabel4} @STEAL4_30475 {caseNum5} -1 {caseLabel5} @STEAL4_30475 {caseNum6} -1 {caseLabel6} @STEAL4_30475 {caseNum7} -1 {caseLabel7} @STEAL4_30475

:STEAL4_30089
if 
  not is_car_dead 82@
goto_if_false @STEAL4_30212
set_car_traction 82@ {traction} 2.0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_30139
warp_char_into_car 68@ {vehicle} 82@

:STEAL4_30139
$x, $y, $z = get_car_coordinates 82@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
set_car_coordinates 82@ {x} $x {y} $y {z} $z
set_car_heading 82@ {heading} 130.0
task_car_drive_wander 68@ {vehicle} 82@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars

:STEAL4_30212
goto @STEAL4_30475

:STEAL4_30219
if 
  not is_car_dead 82@
goto_if_false @STEAL4_30342
set_car_traction 82@ {traction} 2.0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_30269
warp_char_into_car 68@ {vehicle} 82@

:STEAL4_30269
$x, $y, $z = get_car_coordinates 82@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
set_car_coordinates 82@ {x} $x {y} $y {z} $z
set_car_heading 82@ {heading} 130.0
task_car_drive_wander 68@ {vehicle} 82@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars

:STEAL4_30342
goto @STEAL4_30475

:STEAL4_30349
43@ = 0

:STEAL4_30356
if 
  6 > 43@
goto_if_false @STEAL4_30420
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_30406
task_kill_char_on_foot 70@(43@,6i) {target} $scplayer

:STEAL4_30406
43@ += 1
goto @STEAL4_30356

:STEAL4_30420
if 
  not is_char_dead 80@
goto_if_false @STEAL4_30444
task_kill_char_on_foot 80@ {target} $scplayer

:STEAL4_30444
if 
  not is_char_dead 81@
goto_if_false @STEAL4_30468
task_kill_char_on_foot 81@ {target} $scplayer

:STEAL4_30468
goto @STEAL4_30475

:STEAL4_30475
if 
  does_vehicle_exist 86@
goto_if_false @STEAL4_30496
delete_car 86@

:STEAL4_30496
if 
  not is_car_dead 84@
goto_if_false @STEAL4_30517
delete_car 84@

:STEAL4_30517
do_fade 1000 {direction} Fade.In

:STEAL4_30524
if 
  get_fading_status 
goto_if_false @STEAL4_30548
wait 0
goto @STEAL4_30524

:STEAL4_30548
$7413 += 1
set_player_control $player1 {state} True

:STEAL4_30562
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30694 {caseNum1} 1 {caseLabel1} @STEAL4_30625 {caseNum2} 2 {caseLabel2} @STEAL4_30648 {caseNum3} 3 {caseLabel3} @STEAL4_30671 {caseNum4} -1 {caseLabel4} @STEAL4_30694 {caseNum5} -1 {caseLabel5} @STEAL4_30694 {caseNum6} -1 {caseLabel6} @STEAL4_30694 {caseNum7} -1 {caseLabel7} @STEAL4_30694

:STEAL4_30625
print_now 'ST4_44' {time} 5000 {flag} 1
goto @STEAL4_30694

:STEAL4_30648
print_now 'ST4_03' {time} 5000 {flag} 1
goto @STEAL4_30694

:STEAL4_30671
print_now 'ST4_02' {time} 5000 {flag} 1
goto @STEAL4_30694

:STEAL4_30694
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$disable_crane = 1
return 

:STEAL4_30719
clear_prints 
set_area_visible 0
print_with_number_big 'M_PASSS' {num} 152@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 152@
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_steal_mission_counter += 1
player_made_progress 1
$disable_crane = 0
switch_car_generator $steal_car_cargen3 {amount} 101
register_mission_passed 'STEAL_4'
return 

:STEAL4_30803
if 
  is_player_playing $player1
goto_if_false @STEAL4_30826
set_char_area_visible $scplayer {areaId} 0

:STEAL4_30826
set_area_visible 0
start_new_script @CLEANAU 
clear_help 
display_hud True
display_radar True
$steal4_flag = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$disable_crane_slide = 0
clear_onscreen_counter $st4_mission_attempts
if 
  is_player_playing $player1
goto_if_false @STEAL4_30966
set_player_group_to_follow_always $player1 {state} False
if 
  not is_char_dead 80@
goto_if_false @STEAL4_30942
task_kill_char_on_foot 80@ {target} $scplayer

:STEAL4_30942
if 
  not is_char_dead 81@
goto_if_false @STEAL4_30966
task_kill_char_on_foot 81@ {target} $scplayer

:STEAL4_30966
set_script_limit_to_gang_size 99
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
43@ = 0

:STEAL4_30987
if 
  6 > 43@
goto_if_false @STEAL4_31076
if 
  is_player_playing $player1
goto_if_false @STEAL4_31053
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_31053
task_kill_char_on_foot 70@(43@,6i) {target} $scplayer

:STEAL4_31053
mark_char_as_no_longer_needed 70@(43@,6i)
43@ += 1
goto @STEAL4_30987

:STEAL4_31076
mark_char_as_no_longer_needed 80@
mark_char_as_no_longer_needed 81@
mark_car_as_no_longer_needed 82@
mark_car_as_no_longer_needed 83@
mark_car_as_no_longer_needed 84@
mark_car_as_no_longer_needed 86@
mark_car_as_no_longer_needed 87@
mark_car_as_no_longer_needed 88@
mark_car_as_no_longer_needed 89@
switch_random_trains True
unload_special_character 1
mark_model_as_no_longer_needed 589
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 559
mark_model_as_no_longer_needed 458
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 404
remove_blip 107@
remove_blip 118@
remove_blip 108@
43@ = 0

:STEAL4_31200
if 
  6 > 43@
goto_if_false @STEAL4_31241
remove_blip 112@(43@,6i)
43@ += 1
goto @STEAL4_31200

:STEAL4_31241
remove_blip 119@
remove_blip 109@
remove_blip 110@
remove_blip 120@
remove_blip 121@
remove_decision_maker 168@
remove_decision_maker 171@
remove_decision_maker 172@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL4_31318
switch_start 153@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31479 {caseNum1} 1 {caseLabel1} @STEAL4_31381 {caseNum2} 2 {caseLabel2} @STEAL4_31395 {caseNum3} 3 {caseLabel3} @STEAL4_31409 {caseNum4} 4 {caseLabel4} @STEAL4_31423 {caseNum5} 5 {caseLabel5} @STEAL4_31437 {caseNum6} 6 {caseLabel6} @STEAL4_31451 {caseNum7} 7 {caseLabel7} @STEAL4_31465

:STEAL4_31381
gosub @STEAL4_31513
goto @STEAL4_31511

:STEAL4_31395
gosub @STEAL4_32003
goto @STEAL4_31511

:STEAL4_31409
gosub @STEAL4_32605
goto @STEAL4_31511

:STEAL4_31423
gosub @STEAL4_33015
goto @STEAL4_31511

:STEAL4_31437
gosub @STEAL4_33374
goto @STEAL4_31511

:STEAL4_31451
gosub @STEAL4_34004
goto @STEAL4_31511

:STEAL4_31465
gosub @STEAL4_34545
goto @STEAL4_31511

:STEAL4_31479
if 
  154@ <> 0
goto_if_false @STEAL4_31504
154@ = 0

:STEAL4_31504
goto @STEAL4_31511

:STEAL4_31511
return 

:STEAL4_31513
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_31815 {caseNum1} 0 {caseLabel1} @STEAL4_31576 {caseNum2} 1 {caseLabel2} @STEAL4_31597 {caseNum3} 2 {caseLabel3} @STEAL4_31681 {caseNum4} 3 {caseLabel4} @STEAL4_31765 {caseNum5} 4 {caseLabel5} @STEAL4_31779 {caseNum6} -1 {caseLabel6} @STEAL4_31815 {caseNum7} -1 {caseLabel7} @STEAL4_31815

:STEAL4_31576
188@ = 0
154@ = 1
goto @STEAL4_31815

:STEAL4_31597
if 
  not is_char_dead 68@
goto_if_false @STEAL4_31651
if 
  not locate_char_any_means_char_2d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @STEAL4_31651
154@ = 2

:STEAL4_31651
if 
  is_char_dead 68@
goto_if_false @STEAL4_31674
154@ = 3

:STEAL4_31674
goto @STEAL4_31815

:STEAL4_31681
if 
  not is_char_dead 68@
goto_if_false @STEAL4_31735
if 
  locate_char_any_means_char_2d $scplayer {target} 68@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @STEAL4_31735
154@ = 1

:STEAL4_31735
if 
  is_char_dead 68@
goto_if_false @STEAL4_31758
154@ = 3

:STEAL4_31758
goto @STEAL4_31815

:STEAL4_31765
153@ = 0
goto @STEAL4_31815

:STEAL4_31779
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_31808
154@ = 3
153@ = 0

:STEAL4_31808
goto @STEAL4_31815

:STEAL4_31815
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31980 {caseNum1} 0 {caseLabel1} @STEAL4_31878 {caseNum2} 1 {caseLabel2} @STEAL4_31929 {caseNum3} -1 {caseLabel3} @STEAL4_32001 {caseNum4} -1 {caseLabel4} @STEAL4_32001 {caseNum5} -1 {caseLabel5} @STEAL4_32001 {caseNum6} -1 {caseLabel6} @STEAL4_32001 {caseNum7} -1 {caseLabel7} @STEAL4_32001

:STEAL4_31878
set_lvar_text_label 183@s = 'STL4_AA'
set_lvar_int_to_constant 185@ = 5200
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_31929
set_lvar_text_label 183@s = 'STL4_AB'
set_lvar_int_to_constant 185@ = 5224
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_31980
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_32001
return 

:STEAL4_32003
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32315 {caseNum1} 0 {caseLabel1} @STEAL4_32066 {caseNum2} 1 {caseLabel2} @STEAL4_32087 {caseNum3} 2 {caseLabel3} @STEAL4_32176 {caseNum4} 3 {caseLabel4} @STEAL4_32265 {caseNum5} 4 {caseLabel5} @STEAL4_32279 {caseNum6} -1 {caseLabel6} @STEAL4_32315 {caseNum7} -1 {caseLabel7} @STEAL4_32315

:STEAL4_32066
188@ = 0
154@ = 1
goto @STEAL4_32315

:STEAL4_32087
if 
  not is_char_dead 68@
goto_if_false @STEAL4_32146
if 
  not locate_char_any_means_char_3d 68@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_32146
154@ = 2

:STEAL4_32146
if 
  is_char_dead 68@
goto_if_false @STEAL4_32169
154@ = 3

:STEAL4_32169
goto @STEAL4_32315

:STEAL4_32176
if 
  not is_char_dead 68@
goto_if_false @STEAL4_32235
if 
  locate_char_any_means_char_3d 68@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_32235
154@ = 1

:STEAL4_32235
if 
  is_char_dead 68@
goto_if_false @STEAL4_32258
154@ = 3

:STEAL4_32258
goto @STEAL4_32315

:STEAL4_32265
153@ = 0
goto @STEAL4_32315

:STEAL4_32279
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_32308
154@ = 3
153@ = 0

:STEAL4_32308
goto @STEAL4_32315

:STEAL4_32315
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_32582 {caseNum1} 0 {caseLabel1} @STEAL4_32378 {caseNum2} 1 {caseLabel2} @STEAL4_32429 {caseNum3} 2 {caseLabel3} @STEAL4_32480 {caseNum4} 3 {caseLabel4} @STEAL4_32531 {caseNum5} -1 {caseLabel5} @STEAL4_32603 {caseNum6} -1 {caseLabel6} @STEAL4_32603 {caseNum7} -1 {caseLabel7} @STEAL4_32603

:STEAL4_32378
set_lvar_text_label 183@s = 'STL4_BA'
set_lvar_int_to_constant 185@ = 5201
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32429
set_lvar_text_label 183@s = 'STL4_BB'
set_lvar_int_to_constant 185@ = 5225
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32480
set_lvar_text_label 183@s = 'STL4_BC'
set_lvar_int_to_constant 185@ = 5202
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32531
set_lvar_text_label 183@s = 'STL4_BD'
set_lvar_int_to_constant 185@ = 5226
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32582
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32603
return 

:STEAL4_32605
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32776 {caseNum1} 0 {caseLabel1} @STEAL4_32668 {caseNum2} 1 {caseLabel2} @STEAL4_32689 {caseNum3} 2 {caseLabel3} @STEAL4_32719 {caseNum4} 3 {caseLabel4} @STEAL4_32726 {caseNum5} 4 {caseLabel5} @STEAL4_32740 {caseNum6} -1 {caseLabel6} @STEAL4_32776 {caseNum7} -1 {caseLabel7} @STEAL4_32776

:STEAL4_32668
188@ = 0
154@ = 1
goto @STEAL4_32776

:STEAL4_32689
if 
  is_char_dead 68@
goto_if_false @STEAL4_32712
154@ = 3

:STEAL4_32712
goto @STEAL4_32776

:STEAL4_32719
goto @STEAL4_32776

:STEAL4_32726
153@ = 0
goto @STEAL4_32776

:STEAL4_32740
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_32769
154@ = 3
153@ = 0

:STEAL4_32769
goto @STEAL4_32776

:STEAL4_32776
switch_start 155@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @STEAL4_32992 {caseNum1} 0 {caseLabel1} @STEAL4_32839 {caseNum2} 1 {caseLabel2} @STEAL4_32890 {caseNum3} 2 {caseLabel3} @STEAL4_32941 {caseNum4} -1 {caseLabel4} @STEAL4_33013 {caseNum5} -1 {caseLabel5} @STEAL4_33013 {caseNum6} -1 {caseLabel6} @STEAL4_33013 {caseNum7} -1 {caseLabel7} @STEAL4_33013

:STEAL4_32839
set_lvar_text_label 183@s = 'STL4_CA'
set_lvar_int_to_constant 185@ = 5203
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32890
set_lvar_text_label 183@s = 'STL4_CB'
set_lvar_int_to_constant 185@ = 5227
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32941
set_lvar_text_label 183@s = 'STL4_CC'
set_lvar_int_to_constant 185@ = 5204
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32992
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_33013
return 

:STEAL4_33015
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33186 {caseNum1} 0 {caseLabel1} @STEAL4_33078 {caseNum2} 1 {caseLabel2} @STEAL4_33099 {caseNum3} 2 {caseLabel3} @STEAL4_33129 {caseNum4} 3 {caseLabel4} @STEAL4_33136 {caseNum5} 4 {caseLabel5} @STEAL4_33150 {caseNum6} -1 {caseLabel6} @STEAL4_33186 {caseNum7} -1 {caseLabel7} @STEAL4_33186

:STEAL4_33078
188@ = 0
154@ = 1
goto @STEAL4_33186

:STEAL4_33099
if 
  is_char_dead 68@
goto_if_false @STEAL4_33122
154@ = 3

:STEAL4_33122
goto @STEAL4_33186

:STEAL4_33129
goto @STEAL4_33186

:STEAL4_33136
153@ = 0
goto @STEAL4_33186

:STEAL4_33150
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_33179
154@ = 3
153@ = 0

:STEAL4_33179
goto @STEAL4_33186

:STEAL4_33186
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33351 {caseNum1} 0 {caseLabel1} @STEAL4_33249 {caseNum2} 1 {caseLabel2} @STEAL4_33300 {caseNum3} -1 {caseLabel3} @STEAL4_33372 {caseNum4} -1 {caseLabel4} @STEAL4_33372 {caseNum5} -1 {caseLabel5} @STEAL4_33372 {caseNum6} -1 {caseLabel6} @STEAL4_33372 {caseNum7} -1 {caseLabel7} @STEAL4_33372

:STEAL4_33249
set_lvar_text_label 183@s = 'STL4_DA'
set_lvar_int_to_constant 185@ = 5228
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33300
set_lvar_text_label 183@s = 'STL4_DB'
set_lvar_int_to_constant 185@ = 5205
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33351
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33372
return 

:STEAL4_33374
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33714 {caseNum1} 0 {caseLabel1} @STEAL4_33437 {caseNum2} 1 {caseLabel2} @STEAL4_33458 {caseNum3} 2 {caseLabel3} @STEAL4_33568 {caseNum4} 3 {caseLabel4} @STEAL4_33664 {caseNum5} 4 {caseLabel5} @STEAL4_33678 {caseNum6} -1 {caseLabel6} @STEAL4_33714 {caseNum7} -1 {caseLabel7} @STEAL4_33714

:STEAL4_33437
188@ = 0
154@ = 1
goto @STEAL4_33714

:STEAL4_33458
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_33488
154@ = 2
goto @STEAL4_33538

:STEAL4_33488
if 
  not is_char_dead 68@
goto_if_false @STEAL4_33538
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_33538
154@ = 2

:STEAL4_33538
if 
  is_char_dead 68@
goto_if_false @STEAL4_33561
154@ = 3

:STEAL4_33561
goto @STEAL4_33714

:STEAL4_33568
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_33634
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_dead 68@
goto_if_false @STEAL4_33634
if 
  is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_33634
154@ = 1

:STEAL4_33634
if 
  is_char_dead 68@
goto_if_false @STEAL4_33657
154@ = 3

:STEAL4_33657
goto @STEAL4_33714

:STEAL4_33664
153@ = 0
goto @STEAL4_33714

:STEAL4_33678
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_33707
154@ = 3
153@ = 0

:STEAL4_33707
goto @STEAL4_33714

:STEAL4_33714
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33981 {caseNum1} 0 {caseLabel1} @STEAL4_33777 {caseNum2} 1 {caseLabel2} @STEAL4_33828 {caseNum3} 2 {caseLabel3} @STEAL4_33879 {caseNum4} 3 {caseLabel4} @STEAL4_33930 {caseNum5} -1 {caseLabel5} @STEAL4_34002 {caseNum6} -1 {caseLabel6} @STEAL4_34002 {caseNum7} -1 {caseLabel7} @STEAL4_34002

:STEAL4_33777
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 5235
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33828
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 5217
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33879
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 5218
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33930
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 5229
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33981
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_34002
return 

:STEAL4_34004
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34255 {caseNum1} 0 {caseLabel1} @STEAL4_34067 {caseNum2} 1 {caseLabel2} @STEAL4_34088 {caseNum3} 2 {caseLabel3} @STEAL4_34198 {caseNum4} 3 {caseLabel4} @STEAL4_34205 {caseNum5} 4 {caseLabel5} @STEAL4_34219 {caseNum6} -1 {caseLabel6} @STEAL4_34255 {caseNum7} -1 {caseLabel7} @STEAL4_34255

:STEAL4_34067
188@ = 0
154@ = 1
goto @STEAL4_34255

:STEAL4_34088
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_34118
154@ = 3
goto @STEAL4_34168

:STEAL4_34118
if 
  not is_char_dead 68@
goto_if_false @STEAL4_34168
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_34168
154@ = 3

:STEAL4_34168
if 
  is_char_dead 68@
goto_if_false @STEAL4_34191
154@ = 3

:STEAL4_34191
goto @STEAL4_34255

:STEAL4_34198
goto @STEAL4_34255

:STEAL4_34205
153@ = 0
goto @STEAL4_34255

:STEAL4_34219
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_34248
154@ = 3
153@ = 0

:STEAL4_34248
goto @STEAL4_34255

:STEAL4_34255
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_34522 {caseNum1} 0 {caseLabel1} @STEAL4_34318 {caseNum2} 1 {caseLabel2} @STEAL4_34369 {caseNum3} 2 {caseLabel3} @STEAL4_34420 {caseNum4} 3 {caseLabel4} @STEAL4_34471 {caseNum5} -1 {caseLabel5} @STEAL4_34543 {caseNum6} -1 {caseLabel6} @STEAL4_34543 {caseNum7} -1 {caseLabel7} @STEAL4_34543

:STEAL4_34318
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 5235
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34369
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 5217
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34420
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 5218
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34471
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 5229
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34522
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34543
return 

:STEAL4_34545
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34796 {caseNum1} 0 {caseLabel1} @STEAL4_34608 {caseNum2} 1 {caseLabel2} @STEAL4_34629 {caseNum3} 2 {caseLabel3} @STEAL4_34739 {caseNum4} 3 {caseLabel4} @STEAL4_34746 {caseNum5} 4 {caseLabel5} @STEAL4_34760 {caseNum6} -1 {caseLabel6} @STEAL4_34796 {caseNum7} -1 {caseLabel7} @STEAL4_34796

:STEAL4_34608
188@ = 0
154@ = 1
goto @STEAL4_34796

:STEAL4_34629
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_34659
154@ = 3
goto @STEAL4_34709

:STEAL4_34659
if 
  not is_char_dead 68@
goto_if_false @STEAL4_34709
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_34709
154@ = 3

:STEAL4_34709
if 
  is_char_dead 68@
goto_if_false @STEAL4_34732
154@ = 3

:STEAL4_34732
goto @STEAL4_34796

:STEAL4_34739
goto @STEAL4_34796

:STEAL4_34746
153@ = 0
goto @STEAL4_34796

:STEAL4_34760
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_34789
154@ = 3
153@ = 0

:STEAL4_34789
goto @STEAL4_34796

:STEAL4_34796
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_35063 {caseNum1} 0 {caseLabel1} @STEAL4_34859 {caseNum2} 1 {caseLabel2} @STEAL4_34910 {caseNum3} 2 {caseLabel3} @STEAL4_34961 {caseNum4} 3 {caseLabel4} @STEAL4_35012 {caseNum5} -1 {caseLabel5} @STEAL4_35084 {caseNum6} -1 {caseLabel6} @STEAL4_35084 {caseNum7} -1 {caseLabel7} @STEAL4_35084

:STEAL4_34859
set_lvar_text_label 183@s = 'STL4_MA'
set_lvar_int_to_constant 185@ = 5219
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_34910
set_lvar_text_label 183@s = 'STL4_MB'
set_lvar_int_to_constant 185@ = 5220
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_34961
set_lvar_text_label 183@s = 'STL4_MC'
set_lvar_int_to_constant 185@ = 5221
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35012
set_lvar_text_label 183@s = 'STL4_MD'
set_lvar_int_to_constant 185@ = 5231
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35063
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35084
return 
if 
  153@ <> 0
goto_if_false @STEAL4_35111
154@ = 4

:STEAL4_35111
return 

:STEAL4_35113
if 
  153@ <> 0
goto_if_false @STEAL4_35138
154@ = 3

:STEAL4_35138
return 

:STEAL4_35140
if 
  154@ <> 3
goto_if_false @STEAL4_35493
switch_start 188@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35486 {caseNum1} -1 {caseLabel1} @STEAL4_35221 {caseNum2} 0 {caseLabel2} @STEAL4_35252 {caseNum3} 1 {caseLabel3} @STEAL4_35293 {caseNum4} 2 {caseLabel4} @STEAL4_35336 {caseNum5} 3 {caseLabel5} @STEAL4_35411 {caseNum6} 4 {caseLabel6} @STEAL4_35447 {caseNum7} -1 {caseLabel7} @STEAL4_35486

:STEAL4_35221
186@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
goto @STEAL4_35486

:STEAL4_35252
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 185@
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35279

:STEAL4_35279
188@ += 1
goto @STEAL4_35486

:STEAL4_35293
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_35329
play_mission_audio MissionAudioSlot.Slot1
print_now 183@s {time} 3000 {flag} 1
188@ += 1

:STEAL4_35329
goto @STEAL4_35486

:STEAL4_35336
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_35365
188@ += 1
goto @STEAL4_35404

:STEAL4_35365
if 
  does_char_exist 186@
goto_if_false @STEAL4_35404
if 
  is_char_dead 186@
goto_if_false @STEAL4_35404
188@ += 1

:STEAL4_35404
goto @STEAL4_35486

:STEAL4_35411
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35433

:STEAL4_35433
188@ += 1
goto @STEAL4_35486

:STEAL4_35447
if 
  154@ <> 2
goto_if_false @STEAL4_35479
155@ += 1
188@ = 0

:STEAL4_35479
goto @STEAL4_35486

:STEAL4_35486
goto @STEAL4_35550

:STEAL4_35493
if 
  188@ <> 0
goto_if_false @STEAL4_35515
clear_mission_audio MissionAudioSlot.Slot1

:STEAL4_35515
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35531

:STEAL4_35531
clear_this_print 183@s
188@ = 0
155@ = 0

:STEAL4_35550
return 

:STEAL4_35552
switch_start 194@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35910 {caseNum1} -1 {caseLabel1} @STEAL4_35615 {caseNum2} 0 {caseLabel2} @STEAL4_35646 {caseNum3} 1 {caseLabel3} @STEAL4_35694 {caseNum4} 2 {caseLabel4} @STEAL4_35794 {caseNum5} 3 {caseLabel5} @STEAL4_35869 {caseNum6} -1 {caseLabel6} @STEAL4_35910 {caseNum7} -1 {caseLabel7} @STEAL4_35910

:STEAL4_35615
192@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
goto @STEAL4_35910

:STEAL4_35646
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 191@
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35680
disable_char_speech 192@ {stopNow} False

:STEAL4_35680
194@ += 1
goto @STEAL4_35910

:STEAL4_35694
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_35787
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35766
if 
  not is_char_talking 192@
goto_if_false @STEAL4_35766
if 
  193@ == 1
goto_if_false @STEAL4_35766
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 192@

:STEAL4_35766
play_mission_audio MissionAudioSlot.Slot1
print_now 189@s {time} 10000 {flag} 1
194@ += 1

:STEAL4_35787
goto @STEAL4_35910

:STEAL4_35794
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_35823
194@ += 1
goto @STEAL4_35862

:STEAL4_35823
if 
  does_char_exist 192@
goto_if_false @STEAL4_35862
if 
  is_char_dead 192@
goto_if_false @STEAL4_35862
194@ += 1

:STEAL4_35862
goto @STEAL4_35910

:STEAL4_35869
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35896
enable_char_speech 192@

:STEAL4_35896
194@ += 1
goto @STEAL4_35910

:STEAL4_35910
return 

//-------------Mission 70---------------
// Originally: Puncture Wounds

:STEAL5
script_name 'STEAL5'
gosub @STEAL5_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL5_38
gosub @STEAL5_5101

:STEAL5_38
gosub @STEAL5_5197
terminate_this_script 

:STEAL5_47
$onmission = 1
register_mission_given 
load_mission_text 'STEAL5'
if 
  $onmission == 0
goto_if_false @STEAL5_128
36@ = create_object #TEMP_STINGER2 {x} -2025.8 {y} 169.2 {z} 27.7
40@ = add_blip_for_coord -2025.8 {y} 169.2 {z} 27.7

:STEAL5_128
clear_prints 
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
$buddy_health = 3
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
79@ = 0.0
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
85@ = 0.0
86@ = 0.0
87@ = 0.0
88@ = 0.0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
make_player_gang_disappear 
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_5'

:STEAL5_422
if 
  not has_cutscene_loaded 
goto_if_false @STEAL5_446
wait 0
goto @STEAL5_422

:STEAL5_446
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL5_455
if 
  not has_cutscene_finished 
goto_if_false @STEAL5_479
wait 0
goto @STEAL5_455

:STEAL5_479
do_fade 0 {direction} Fade.Out

:STEAL5_485
if 
  get_fading_status 
goto_if_false @STEAL5_509
wait 0
goto @STEAL5_485

:STEAL5_509
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 561
request_model 549
request_model 40
request_model #TEMP_STINGER2
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1822

:STEAL5_574
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL5_600
wait 0
goto @STEAL5_574

:STEAL5_600
load_all_models_now 
clear_area -2025.8 {y} 169.2 {z} 27.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 49@ = 549
gosub @STEAL5_7260
39@ = create_car 549 {x} -2025.8 {y} 169.2 {z} 27.7
clear_area -1913.5 {y} -593.8 {z} 36.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 49@ = 561
gosub @STEAL5_7260
34@ = create_car 561 {x} -1913.5 {y} -593.8 {z} 36.9
set_car_heading 34@ {heading} 180.0
set_can_respray_car 34@ {changeColors} False
set_car_can_go_against_traffic 34@ {state} True
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 34@ {state} False
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} False
45@ = 1
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_only_damaged_by_player 34@ {state} True
add_stuck_car_check_with_warp 34@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
35@ = create_char_inside_car 34@ {pedType} PedType.CivFemale {modelId} 40
set_load_collision_for_char_flag 35@ {state} True
set_char_can_be_shot_in_vehicle 35@ {state} False
display_onscreen_counter_with_string $buddy_health {display} CounterDisplay.Number {text} 'STE5_04'
print_now 'STE5_12' {time} 7000 {flag} 1
clear_area -2028.6 {y} 162.9 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2028.6 {y} 162.9 {z} 27.8
set_char_heading $scplayer {heading} 336.6
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
change_garage_type 'AMUMIS' {type} GarageType.ForScriptToOpenAndClose
do_fade 500 {direction} Fade.In
TIMERB = 0

:STEAL5_971
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL5_997
goto @STEAL5_5119

:STEAL5_997
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_1029
goto @STEAL5_5101

:STEAL5_1029
if 
  41@ == 0
goto_if_false @STEAL5_1072
if 
  47@ == 1
goto_if_false @STEAL5_1072
gosub @STEAL5_5407

:STEAL5_1072
if 
  41@ == 0
goto_if_false @STEAL5_1735
if 
  45@ == 1
goto_if_false @STEAL5_1191
if 
  not is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1191
remove_blip 40@
40@ = add_blip_for_car 39@
set_blip_as_friendly 40@ {state} True
if 
  TIMERB > 14000
goto_if_false @STEAL5_1182
print_now 'STE5_06' {time} 4000 {flag} 1

:STEAL5_1182
clear_help 
45@ = 0

:STEAL5_1191
if 
  45@ == 0
goto_if_false @STEAL5_1290
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1290
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} False
if 
  TIMERB > 14000
goto_if_false @STEAL5_1283
print_now 'STE5_07' {time} 4000 {flag} 1

:STEAL5_1283
45@ = 1

:STEAL5_1290
if 
  TIMERB > 14000
goto_if_false @STEAL5_1395
if 
  $buddy_health == 3
goto_if_false @STEAL5_1393
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1377
if 
  not is_minigame_in_progress 
goto_if_false @STEAL5_1370
print_help_forever 'STE5_03'

:STEAL5_1370
goto @STEAL5_1379

:STEAL5_1377
clear_help 

:STEAL5_1379
47@ = 1
goto @STEAL5_1395

:STEAL5_1393
clear_help 

:STEAL5_1395
if 
  $buddy_health == 0
goto_if_false @STEAL5_1457
if 
  TIMERA > 5000
goto_if_false @STEAL5_1457
clear_prints 
print_now 'STE5_05' {time} 4000 {flag} 1
goto @STEAL5_5101

:STEAL5_1457
gosub @STEAL5_6323
gosub @STEAL5_6447
gosub @STEAL5_6502
if 
  42@ == 0
goto_if_false @STEAL5_1563
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1563
print_now 'STE5_01' {time} 7000 {flag} 1
print_with_number 'STE5_02' {num} 3 {duration} 7000 {flag} 1
TIMERB = 0
42@ = 1

:STEAL5_1563
if 
  42@ == 1
goto_if_false @STEAL5_1735
if 
  is_car_tyre_burst 34@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_1735
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
remove_stuck_car_check 34@
if 
  not is_char_dead 35@
goto_if_false @STEAL5_1735
89@ = open_sequence_task 
task_leave_any_car -1
task_smart_flee_char -1 {threat} $scplayer {radius} 100.0 {time} 100000
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
set_car_watertight 34@ {state} False
print_now 'STE5_13' {time} 7000 {flag} 1
TIMERA = 0
42@ = 0
41@ = 1

:STEAL5_1735
if 
  41@ == 1
goto_if_false @STEAL5_2834
if 
  42@ == 0
goto_if_false @STEAL5_1832
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL5_1825
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @STEAL5_1825
42@ = 1

:STEAL5_1825
gosub @STEAL5_5407

:STEAL5_1832
if 
  42@ == 1
goto_if_false @STEAL5_1956
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
43@ = 1
skip_cutscene_start_internal @STEAL5_2405
task_use_mobile_phone $scplayer {start} True
clear_help 
clear_onscreen_counter $buddy_health
51@ = 3
53@ = 0
gosub @STEAL5_8491
TIMERA = 0
42@ = 2

:STEAL5_1956
if 
  42@ == 2
goto_if_false @STEAL5_2039
if 
  TIMERA > 2000
goto_if_false @STEAL5_2039
if 
  51@ == 0
goto_if_false @STEAL5_2039
51@ = 1
53@ = 0
gosub @STEAL5_8491
42@ = 3

:STEAL5_2039
if 
  42@ == 3
goto_if_false @STEAL5_2089
if 
  51@ == 0
goto_if_false @STEAL5_2089
task_use_mobile_phone $scplayer {start} False
42@ = 4

:STEAL5_2089
if 
  42@ == 4
goto_if_false @STEAL5_2293
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_2293
89@ = open_sequence_task 
task_goto_car -1 {vehicle} 34@ {time} -2 {radius} 1.0
close_sequence_task 89@
perform_sequence_task $scplayer {sequence} 89@
clear_sequence_task 89@
set_music_does_fade False
draw_subtitles_before_fade False
do_fade 700 {direction} Fade.Out

:STEAL5_2188
if 
  get_fading_status 
goto_if_false @STEAL5_2212
wait 0
goto @STEAL5_2188

:STEAL5_2212
load_mission_audio MissionAudioSlot.Slot3 {audioId} 36400

:STEAL5_2221
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL5_2247
wait 0
goto @STEAL5_2221

:STEAL5_2247
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2279
goto @STEAL5_5101

:STEAL5_2279
TIMERA = 0
42@ = 5

:STEAL5_2293
if 
  42@ == 5
goto_if_false @STEAL5_2362
if 
  TIMERA > 1000
goto_if_false @STEAL5_2362
play_mission_audio MissionAudioSlot.Slot3
51@ = 2
53@ = 0
gosub @STEAL5_8491
42@ = 6

:STEAL5_2362
if 
  42@ == 6
goto_if_false @STEAL5_2834
if 
  51@ == 0
goto_if_false @STEAL5_2834
43@ = 0

:STEAL5_2405
skip_cutscene_end 
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2439
goto @STEAL5_5101

:STEAL5_2439
set_music_does_fade True
draw_subtitles_before_fade True
if 
  43@ == 1
goto_if_false @STEAL5_2547
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
51@ = 0
do_fade 500 {direction} Fade.Out

:STEAL5_2489
if 
  get_fading_status 
goto_if_false @STEAL5_2513
wait 0
goto @STEAL5_2489

:STEAL5_2513
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2545
goto @STEAL5_5101

:STEAL5_2545
clear_prints 

:STEAL5_2547
clear_mission_audio MissionAudioSlot.Slot3
clear_char_tasks_immediately $scplayer
delete_char 35@
if 
  not is_car_dead 34@
goto_if_false @STEAL5_2620
warp_char_into_car $scplayer {vehicle} 34@
set_car_only_damaged_by_player 34@ {state} False
fix_car_tyre 34@ {tireId} WheelId.FrontRight
fix_car_tyre 34@ {tireId} WheelId.BikeFront
fix_car_tyre 34@ {tireId} WheelId.BikeRear
fix_car_tyre 34@ {tireId} WheelId.RearRight

:STEAL5_2620
delete_object 36@
83@, 84@, 85@ = get_char_coordinates $scplayer
load_scene 83@ {y} 84@ {z} 85@
mark_car_as_no_longer_needed 39@
mark_char_as_no_longer_needed 35@
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed #TEMP_STINGER2
set_car_only_damaged_by_player 34@ {state} False
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
remove_blip 40@
40@ = add_blip_for_coord -2026.9 {y} 179.1 {z} 27.5
45@ = 1
clear_prints 
print_now 'STE5_11' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_2764
if 
  get_fading_status 
goto_if_false @STEAL5_2788
wait 0
goto @STEAL5_2764

:STEAL5_2788
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2820
goto @STEAL5_5101

:STEAL5_2820
42@ = 0
41@ = 2

:STEAL5_2834
if 
  41@ == 2
goto_if_false @STEAL5_4230
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL5_2913
if 
  not is_car_dead 34@
goto_if_false @STEAL5_2913
set_car_coordinates 34@ {x} -2011.8 {y} 176.5 {z} 26.6
set_car_heading 34@ {heading} 97.7

:STEAL5_2913
if 
  42@ == 0
goto_if_false @STEAL5_3385
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3385
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_3385
if 
  locate_char_in_car_3d $scplayer {x} -2033.1 {y} 178.6 {z} 27.8 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL5_3385
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:STEAL5_3028
if 
  get_fading_status 
goto_if_false @STEAL5_3052
wait 0
goto @STEAL5_3028

:STEAL5_3052
set_area_visible 1
remove_blip 40@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_area_visible $scplayer {areaId} 1
clear_area -2033.3 {y} 179.1 {z} 27.4 {radius} 25.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3180
set_vehicle_area_visible 34@ {interiorId} 1
set_car_coordinates 34@ {x} -2033.3 {y} 179.1 {z} 27.4
set_car_heading 34@ {heading} 90.8

:STEAL5_3180
load_scene_in_direction -2048.1001 {y} 178.0 {z} 28.8 {heading} 270.0
set_fixed_camera_position -2048.1001 {y} 178.0 {z} 28.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.9 {y} 178.8 {z} 27.4 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:STEAL5_3260
if 
  get_fading_status 
goto_if_false @STEAL5_3284
wait 0
goto @STEAL5_3260

:STEAL5_3284
open_garage 'HBGDSFS'

:STEAL5_3295
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL5_3328
wait 0
goto @STEAL5_3295

:STEAL5_3328
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3378
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} -2045.4 {y} 178.3 {z} 27.6 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:STEAL5_3378
42@ = 1

:STEAL5_3385
if 
  42@ == 1
goto_if_false @STEAL5_3512
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3512
$task_status = get_script_task_status $scplayer {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_3512
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2035.4709 {y} 176.6342 {z} 27.8359 {speed} MoveState.Walk {time} -1
close_sequence_task 89@
perform_sequence_task $scplayer {sequence} 89@
clear_sequence_task 89@
TIMERA = 0
42@ = 2

:STEAL5_3512
if 
  42@ == 2
goto_if_false @STEAL5_4043
if 
  TIMERA > 2000
goto_if_false @STEAL5_4043
do_fade 500 {direction} Fade.Out

:STEAL5_3556
if 
  get_fading_status 
goto_if_false @STEAL5_3580
wait 0
goto @STEAL5_3556

:STEAL5_3580
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
clear_prints 
clear_char_tasks_immediately $scplayer
delete_car 34@
clear_area -2027.2 {y} 179.5 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.8
set_char_heading $scplayer {heading} 275.9
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
close_garage 'HBGDSFS'

:STEAL5_3729
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL5_3762
wait 0
goto @STEAL5_3729

:STEAL5_3762
$showroom_cash_pickup = create_protection_pickup -1969.463 {y} 289.5335 {z} 34.6719 {revenueLimit} $showroom_revenue {revenueRate} $showroom_revenue
set_player_control $player1 {state} False
switch_widescreen True
load_scene -1980.301 {y} 288.1622 {z} 38.2246
set_fixed_camera_position -1980.301 {y} 288.1622 {z} 38.2246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1979.313 {y} 288.0155 {z} 38.1743 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:STEAL5_3874
if 
  get_fading_status 
goto_if_false @STEAL5_3898
wait 0
goto @STEAL5_3874

:STEAL5_3898
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -1972.1851 {y} 291.1454 {z} 35.7724 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1971.343 {y} 290.6249 {z} 35.6284 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $showroom_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:STEAL5_4005
if 
  get_fading_status 
goto_if_false @STEAL5_4029
wait 0
goto @STEAL5_4005

:STEAL5_4029
do_fade 500 {direction} Fade.In
goto @STEAL5_5119

:STEAL5_4043
if 
  45@ == 1
goto_if_false @STEAL5_4125
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_4125
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
clear_prints 
print_now 'STE5_08' {time} 4000 {flag} 1
45@ = 0

:STEAL5_4125
if 
  45@ == 0
goto_if_false @STEAL5_4230
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_4230
remove_blip 40@
if 
  42@ == 0
goto_if_false @STEAL5_4205
40@ = add_blip_for_coord -2033.1 {y} 178.6 {z} 27.8

:STEAL5_4205
clear_prints 
print_now 'STE5_11' {time} 7000 {flag} 1
45@ = 1

:STEAL5_4230
if 
  41@ == 10
goto_if_false @STEAL5_5087
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @STEAL5_4790
if 
  50@ == 0
goto_if_false @STEAL5_4790
clear_prints 
do_fade 500 {direction} Fade.Out

:STEAL5_4300
if 
  get_fading_status 
goto_if_false @STEAL5_4324
wait 0
goto @STEAL5_4300

:STEAL5_4324
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -2125.5 {y} -2467.5 {z} 29.6 {radius} 1.0 {clearParticles} True
86@, 87@, 88@ = get_char_coordinates $scplayer
request_collision -2125.5 {y} -2467.5
load_scene -2125.5 {y} -2467.5 {z} 29.6
set_char_coordinates $scplayer {x} -2125.5 {y} -2467.5 {z} 29.6
if 
  not is_char_dead 35@
goto_if_false @STEAL5_4469
clear_char_tasks 35@

:STEAL5_4469
request_collision -2117.8 {y} -2456.8
load_scene -2115.6001 {y} -2456.5 {z} 30.6
load_all_models_now 
if 
  not is_car_dead 34@
goto_if_false @STEAL5_4575
remove_stuck_car_check 34@
clear_area -2117.8 {y} -2456.8 {z} 29.3 {radius} 30.0 {clearParticles} True
set_car_coordinates 34@ {x} -2117.8 {y} -2456.8 {z} 29.3
set_car_heading 34@ {heading} 233.8

:STEAL5_4575
set_fixed_camera_position -2106.0 {y} -2465.7 {z} 30.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2112.2 {y} -2461.1001 {z} 29.6 {switchStyle} SwitchType.JumpCut
print_now 'STE5_14' {time} 5000 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_4649
if 
  get_fading_status 
goto_if_false @STEAL5_4673
wait 0
goto @STEAL5_4649

:STEAL5_4673
open_garage 'AMUMIS'

:STEAL5_4684
if 
  not is_garage_open 'AMUMIS'
goto_if_false @STEAL5_4717
wait 0
goto @STEAL5_4684

:STEAL5_4717
if 
  not is_char_dead 35@
goto_if_false @STEAL5_4783
if 
  not is_car_dead 34@
goto_if_false @STEAL5_4783
task_car_drive_to_coord 35@ {vehicle} 34@ {x} -2108.0 {y} -2464.2 {z} 29.6 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:STEAL5_4783
50@ = 1

:STEAL5_4790
if 
  50@ == 1
goto_if_false @STEAL5_5087
if 
  not is_char_dead 35@
goto_if_false @STEAL5_5087
$task_status = get_script_task_status 35@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_5087
close_garage 'AMUMIS'

:STEAL5_4864
if 
  not is_garage_closed 'AMUMIS'
goto_if_false @STEAL5_4897
wait 0
goto @STEAL5_4864

:STEAL5_4897
do_fade 500 {direction} Fade.Out

:STEAL5_4904
if 
  get_fading_status 
goto_if_false @STEAL5_4928
wait 0
goto @STEAL5_4904

:STEAL5_4928
request_collision 86@ {y} 87@
88@ -= 1.0
load_scene 86@ {y} 87@ {z} 88@
load_all_models_now 
clear_area 86@ {y} 87@ {z} 88@ {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 86@ {y} 87@ {z} 88@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'STE5_14' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_5056
if 
  get_fading_status 
goto_if_false @STEAL5_5080
wait 0
goto @STEAL5_5056

:STEAL5_5080
goto @STEAL5_5101

:STEAL5_5087
gosub @STEAL5_8773
goto @STEAL5_971

:STEAL5_5101
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL5_5119
$flag_steal_mission_counter += 1
remove_blip $steal_contact_blip
switch_car_generator $steal_car_cargen4 {amount} 101
clear_prints 
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'STEAL_5'
player_made_progress 1
return 

:STEAL5_5197
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL5_5215
restore_camera_jumpcut 

:STEAL5_5215
set_music_does_fade True
remove_blip 40@
clear_mission_audio MissionAudioSlot.Slot3
clear_onscreen_counter $buddy_health
if 
  not is_char_dead $scplayer
goto_if_false @STEAL5_5256
shut_char_up_for_scripted_speech $scplayer {state} False

:STEAL5_5256
shut_all_chars_up False
delete_object 36@
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 561
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed #TEMP_STINGER2
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL5_5305
if 
  is_car_dead 34@
goto_if_false @STEAL5_5346
clear_prints 
print_now 'STE5_09' {time} 4000 {flag} 1
44@ = 1

:STEAL5_5346
if 
  41@ == 0
goto_if_false @STEAL5_5405
if 
  is_car_dead 39@
goto_if_false @STEAL5_5405
clear_prints 
print_now 'STE5_10' {time} 7000 {flag} 1
44@ = 1

:STEAL5_5405
return 

:STEAL5_5407
if 
  not is_car_dead 39@
goto_if_false @STEAL5_5654
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_5654
if 
  TIMERA > 5000
goto_if_false @STEAL5_5634
if 
  $buddy_health > 0
goto_if_false @STEAL5_5629
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @STEAL5_5622
delete_object 36@
83@, 84@, 85@ = get_offset_from_car_in_world_coords 39@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} -0.5
$heading = get_car_heading 39@
$heading += 90.0
85@ = get_ground_z_for_3d_coord 83@ {y} 84@ {z} 85@
36@ = create_object #TEMP_STINGER2 {x} 83@ {y} 84@ {z} 85@
set_object_heading 36@ {heading} $heading
report_mission_audio_event_at_position 83@ {y} 84@ {z} 85@ {soundId} ScriptSound.SoundStingerFire
78@ = 1
$buddy_health -= 1
TIMERA = 0

:STEAL5_5622
goto @STEAL5_5634

:STEAL5_5629
clear_onscreen_counter $buddy_health

:STEAL5_5634
if 
  $buddy_health <> 3
goto_if_false @STEAL5_5654
clear_help 

:STEAL5_5654
if 
  78@ == 1
goto_if_false @STEAL5_5737
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @STEAL5_5737
83@, 84@, 85@ = get_offset_from_car_in_world_coords 39@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} -0.5
report_mission_audio_event_at_position 83@ {y} 84@ {z} 85@ {soundId} ScriptSound.SoundStingerReload
78@ = 2

:STEAL5_5737
if 
  does_object_exist 36@
goto_if_false @STEAL5_6299
79@, 81@, 85@ = get_offset_from_object_in_world_coords 36@ {xOffset} -0.5 {yOffset} 2.5 {zOffset} 0.0
80@, 82@, 85@ = get_offset_from_object_in_world_coords 36@ {xOffset} -0.5 {yOffset} -2.5 {zOffset} 0.0
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL5_5970
38@ = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {drawSphere} False
goto_if_false @STEAL5_5970
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_5895
burst_car_tyre 38@ {tireId} WheelId.FrontRight

:STEAL5_5895
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.BikeFront
goto_if_false @STEAL5_5920
burst_car_tyre 38@ {tireId} WheelId.BikeFront

:STEAL5_5920
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.BikeRear
goto_if_false @STEAL5_5945
burst_car_tyre 38@ {tireId} WheelId.BikeRear

:STEAL5_5945
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_5970
burst_car_tyre 38@ {tireId} WheelId.RearRight

:STEAL5_5970
if 
  not is_char_dead 35@
goto_if_false @STEAL5_6121
if 
  is_char_in_angled_area_in_car_2d 35@ {leftBottomX} 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {drawSphere} False
goto_if_false @STEAL5_6121
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_6046
burst_car_tyre 34@ {tireId} WheelId.FrontRight

:STEAL5_6046
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.BikeFront
goto_if_false @STEAL5_6071
burst_car_tyre 34@ {tireId} WheelId.BikeFront

:STEAL5_6071
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.BikeRear
goto_if_false @STEAL5_6096
burst_car_tyre 34@ {tireId} WheelId.BikeRear

:STEAL5_6096
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_6121
burst_car_tyre 34@ {tireId} WheelId.RearRight

:STEAL5_6121
37@ = get_random_car_of_type_in_angled_area_no_save 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {modelId} -1
if 
  not is_car_dead 37@
goto_if_false @STEAL5_6299
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 34@
goto_if_false @STEAL5_6299
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 39@
goto_if_false @STEAL5_6299
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_6224
burst_car_tyre 37@ {tireId} WheelId.FrontRight

:STEAL5_6224
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.BikeFront
goto_if_false @STEAL5_6249
burst_car_tyre 37@ {tireId} WheelId.BikeFront

:STEAL5_6249
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.BikeRear
goto_if_false @STEAL5_6274
burst_car_tyre 37@ {tireId} WheelId.BikeRear

:STEAL5_6274
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_6299
burst_car_tyre 37@ {tireId} WheelId.RearRight

:STEAL5_6299
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL5_6321
burst_car_tyre 34@ {tireId} WheelId.FrontRight

:STEAL5_6321
return 

:STEAL5_6323
if 
  not is_car_dead 34@
goto_if_false @STEAL5_6445
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @STEAL5_6387
set_car_cruise_speed 34@ {maxSpeed} 50.0
goto @STEAL5_6445

:STEAL5_6387
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @STEAL5_6435
set_car_cruise_speed 34@ {maxSpeed} 20.0
goto @STEAL5_6445

:STEAL5_6435
set_car_cruise_speed 34@ {maxSpeed} 15.0

:STEAL5_6445
return 

:STEAL5_6447
if 
  not is_car_dead 34@
goto_if_false @STEAL5_6500
if 
  is_car_on_screen 34@
goto_if_false @STEAL5_6493
set_car_watertight 34@ {state} False
goto @STEAL5_6500

:STEAL5_6493
set_car_watertight 34@ {state} True

:STEAL5_6500
return 

:STEAL5_6502
if 
  not is_char_dead 35@
goto_if_false @STEAL5_7258
if 
  is_char_in_car 35@ {vehicle} 34@
goto_if_false @STEAL5_7258
if 
  46@ == 0
goto_if_false @STEAL5_6849
89@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1913.1 {y} -593.8 {z} 38.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1912.6 {y} -744.7 {z} 44.7 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.2 {y} -894.9 {z} 45.0 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.3 {y} -1045.0 {z} 38.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1907.9 {y} -1195.2 {z} 39.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1910.7 {y} -1345.3 {z} 40.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1795.1 {y} -1442.4 {z} 35.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1658.5 {y} -1506.1 {z} 35.7 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
46@ = 1

:STEAL5_6849
if 
  46@ == 1
goto_if_false @STEAL5_7190
$task_status = get_script_task_status 35@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7190
89@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1704.1 {y} -1649.1 {z} 36.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1832.4 {y} -1727.6 {z} 29.2 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1954.5 {y} -1815.3 {z} 34.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2046.9 {y} -1932.7 {z} 52.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2106.8 {y} -2070.0 {z} 63.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2213.2 {y} -2175.1001 {z} 42.2 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2160.3999 {y} -2315.1001 {z} 30.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2120.2 {y} -2456.7 {z} 29.6 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
46@ = 2

:STEAL5_7190
if 
  46@ == 2
goto_if_false @STEAL5_7258
$task_status = get_script_task_status 35@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7258
50@ = 0
41@ = 10
46@ = 3

:STEAL5_7258
return 

:STEAL5_7260
48@ = generate_random_int_in_range 1 {max} 37
if 
  48@ == 1
goto_if_false @STEAL5_7302
custom_plate_for_next_car 49@ {text} "GOT_M00_"

:STEAL5_7302
if 
  48@ == 2
goto_if_false @STEAL5_7335
custom_plate_for_next_car 49@ {text} "M00TV_4U"

:STEAL5_7335
if 
  48@ == 3
goto_if_false @STEAL5_7368
custom_plate_for_next_car 49@ {text} "MATHEW_2"

:STEAL5_7368
if 
  48@ == 4
goto_if_false @STEAL5_7401
custom_plate_for_next_car 49@ {text} "D4_DEW0R"

:STEAL5_7401
if 
  48@ == 5
goto_if_false @STEAL5_7434
custom_plate_for_next_car 49@ {text} "D0DE_777"

:STEAL5_7434
if 
  48@ == 6
goto_if_false @STEAL5_7467
custom_plate_for_next_car 49@ {text} "DAM0_666"

:STEAL5_7467
if 
  48@ == 7
goto_if_false @STEAL5_7500
custom_plate_for_next_car 49@ {text} "C0NEY_88"

:STEAL5_7500
if 
  48@ == 8
goto_if_false @STEAL5_7533
custom_plate_for_next_car 49@ {text} "PRE4CHER"

:STEAL5_7533
if 
  48@ == 9
goto_if_false @STEAL5_7566
custom_plate_for_next_car 49@ {text} "DBP_4NDY"

:STEAL5_7566
if 
  48@ == 10
goto_if_false @STEAL5_7599
custom_plate_for_next_car 49@ {text} "EV1L_SLY"

:STEAL5_7599
if 
  48@ == 11
goto_if_false @STEAL5_7632
custom_plate_for_next_car 49@ {text} "N1_R4V3N"

:STEAL5_7632
if 
  48@ == 12
goto_if_false @STEAL5_7665
custom_plate_for_next_car 49@ {text} "D1VX_Z00"

:STEAL5_7665
if 
  48@ == 13
goto_if_false @STEAL5_7697
custom_plate_for_next_car 49@ {text} "MR_B3NN"

:STEAL5_7697
if 
  48@ == 14
goto_if_false @STEAL5_7730
custom_plate_for_next_car 49@ {text} "R3D_R4SP"

:STEAL5_7730
if 
  48@ == 15
goto_if_false @STEAL5_7763
custom_plate_for_next_car 49@ {text} "LA_B0MBA"

:STEAL5_7763
if 
  48@ == 16
goto_if_false @STEAL5_7796
custom_plate_for_next_car 49@ {text} "L3337_0G"

:STEAL5_7796
if 
  48@ == 17
goto_if_false @STEAL5_7829
custom_plate_for_next_car 49@ {text} "BUDD4H_X"

:STEAL5_7829
if 
  48@ == 18
goto_if_false @STEAL5_7862
custom_plate_for_next_car 49@ {text} "T3H_BUCK"

:STEAL5_7862
if 
  48@ == 19
goto_if_false @STEAL5_7895
custom_plate_for_next_car 49@ {text} "CHUNKY_1"

:STEAL5_7895
if 
  48@ == 20
goto_if_false @STEAL5_7928
custom_plate_for_next_car 49@ {text} "EV1L_BNZ"

:STEAL5_7928
if 
  48@ == 21
goto_if_false @STEAL5_7961
custom_plate_for_next_car 49@ {text} "S4ND_M4N"

:STEAL5_7961
if 
  48@ == 22
goto_if_false @STEAL5_7994
custom_plate_for_next_car 49@ {text} "RKK_DBP1"

:STEAL5_7994
if 
  48@ == 23
goto_if_false @STEAL5_8027
custom_plate_for_next_car 49@ {text} "RE1_K0KU"

:STEAL5_8027
if 
  48@ == 24
goto_if_false @STEAL5_8060
custom_plate_for_next_car 49@ {text} "S3XY_JUD"

:STEAL5_8060
if 
  48@ == 25
goto_if_false @STEAL5_8093
custom_plate_for_next_car 49@ {text} "SUNRA_93"

:STEAL5_8093
if 
  48@ == 26
goto_if_false @STEAL5_8126
custom_plate_for_next_car 49@ {text} "UG_FUX69"

:STEAL5_8126
if 
  48@ == 27
goto_if_false @STEAL5_8159
custom_plate_for_next_car 49@ {text} "LI0N_CUM"

:STEAL5_8159
if 
  48@ == 28
goto_if_false @STEAL5_8192
custom_plate_for_next_car 49@ {text} "RKK_PWND"

:STEAL5_8192
if 
  48@ == 29
goto_if_false @STEAL5_8225
custom_plate_for_next_car 49@ {text} "HAZE_B0B"

:STEAL5_8225
if 
  48@ == 30
goto_if_false @STEAL5_8258
custom_plate_for_next_car 49@ {text} "T3H_FLUF"

:STEAL5_8258
if 
  48@ == 31
goto_if_false @STEAL5_8291
custom_plate_for_next_car 49@ {text} "BM_4NDY_"

:STEAL5_8291
if 
  48@ == 32
goto_if_false @STEAL5_8324
custom_plate_for_next_car 49@ {text} "BM_D34N_"

:STEAL5_8324
if 
  48@ == 33
goto_if_false @STEAL5_8357
custom_plate_for_next_car 49@ {text} "BM_L4C3Y"

:STEAL5_8357
if 
  48@ == 34
goto_if_false @STEAL5_8390
custom_plate_for_next_car 49@ {text} "BM_D3V__"

:STEAL5_8390
if 
  48@ == 35
goto_if_false @STEAL5_8423
custom_plate_for_next_car 49@ {text} "NU_SK00L"

:STEAL5_8423
if 
  48@ == 36
goto_if_false @STEAL5_8456
custom_plate_for_next_car 49@ {text} "G4L_AVET"

:STEAL5_8456
if 
  48@ == 37
goto_if_false @STEAL5_8489
custom_plate_for_next_car 49@ {text} "M0J0_J0J"

:STEAL5_8489
return 

:STEAL5_8491
if 
  51@ == 1
goto_if_false @STEAL5_8626
set_lvar_text_label 55@s = 'STL5_AA'
set_lvar_text_label 57@s = 'STL5_AB'
set_lvar_text_label 59@s = 'STL5_AC'
set_lvar_text_label 61@s = 'STL5_AD'
set_lvar_text_label 63@s = 'STL5_AE'
set_lvar_int_to_constant 67@ = 4000
set_lvar_int_to_constant 68@ = 4041
set_lvar_int_to_constant 69@ = 4042
set_lvar_int_to_constant 70@ = 4040
set_lvar_int_to_constant 71@ = 4043
73@ = 5

:STEAL5_8626
if 
  51@ == 2
goto_if_false @STEAL5_8695
set_lvar_text_label 55@s = 'STL5_AF'
set_lvar_text_label 57@s = 'STL5_AG'
set_lvar_int_to_constant 67@ = 4044
set_lvar_int_to_constant 68@ = 4045
73@ = 2

:STEAL5_8695
if 
  51@ == 3
goto_if_false @STEAL5_8742
set_lvar_text_label 55@s = 'MOBRING'
set_lvar_int_to_constant 67@ = 28200
73@ = 1

:STEAL5_8742
set_lvar_int_to_lvar_int 76@ = 53@
74@ = 0
75@ = 0
77@ = 1
return 

:STEAL5_8773
if or
  51@ == 1
  51@ == 2
  51@ == 3
goto_if_false @STEAL5_8859
if 
  is_int_lvar_greater_than_int_lvar 73@ > 53@
goto_if_false @STEAL5_8852
gosub @STEAL5_8861
gosub @STEAL5_8968
gosub @STEAL5_9122
goto @STEAL5_8859

:STEAL5_8852
51@ = 0

:STEAL5_8859
return 

:STEAL5_8861
if 
  is_int_lvar_greater_than_int_lvar 73@ > 76@
goto_if_false @STEAL5_8966
if 
  74@ == 0
goto_if_false @STEAL5_8923
load_mission_audio MissionAudioSlot.Slot1 {audioId} 67@(76@,6i)
76@ += 1
74@ = 1

:STEAL5_8923
if 
  75@ == 0
goto_if_false @STEAL5_8966
load_mission_audio MissionAudioSlot.Slot2 {audioId} 67@(76@,6i)
76@ += 1
75@ = 1

:STEAL5_8966
return 

:STEAL5_8968
if 
  77@ == 1
goto_if_false @STEAL5_9044
if 
  74@ == 1
goto_if_false @STEAL5_9044
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL5_9044
play_mission_audio MissionAudioSlot.Slot1
print_now 55@(53@,6s) {time} 4500 {flag} 1
74@ = 2

:STEAL5_9044
if 
  77@ == 2
goto_if_false @STEAL5_9120
if 
  75@ == 1
goto_if_false @STEAL5_9120
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @STEAL5_9120
play_mission_audio MissionAudioSlot.Slot2
print_now 55@(53@,6s) {time} 4500 {flag} 1
75@ = 2

:STEAL5_9120
return 

:STEAL5_9122
if 
  74@ == 2
goto_if_false @STEAL5_9185
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL5_9185
clear_this_print 55@(53@,6s)
53@ += 1
77@ = 2
74@ = 0

:STEAL5_9185
if 
  75@ == 2
goto_if_false @STEAL5_9248
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @STEAL5_9248
clear_this_print 55@(53@,6s)
53@ += 1
77@ = 1
75@ = 0

:STEAL5_9248
return 

//-------------Mission 71---------------
// Originally: Back to School

:DSKOOL
script_name 'DSKOOL'
gosub @DSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @DSKOOL_38
gosub @DSKOOL_24457

:DSKOOL_38
gosub @DSKOOL_24618
terminate_this_script 

:DSKOOL_47
$onmission = 1
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_74
register_mission_given 

:DSKOOL_74
load_mission_text 'DS'
if 
  $onmission == 0
goto_if_false @DSKOOL_291
$instructor_car = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$dummy_car1 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$dummy_car2 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$trafficcones[20] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
$trafficcones[30] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
57@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
58@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
59@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
55@ = create_random_char 0.0 {y} 0.0 {z} 100.0
56@ = create_random_char 0.0 {y} 0.0 {z} 100.0

:DSKOOL_291
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
do_fade 500 {direction} Fade.Out

:DSKOOL_316
if 
  get_fading_status 
goto_if_false @DSKOOL_340
wait 0
goto @DSKOOL_316

:DSKOOL_340
34@ = 0
39@ = 0
43@ = 0
44@ = 0
54@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
$mission_selection = 1
50@ = 1
$start_coordsx = -2050.6001
$start_coordsy = -130.0
$noticeboard_x = -2031.2
$noticeboard_y = -118.0
$noticeboard_z = 1034.2
61@ = 0
62@ = 0
63@ = 0
64@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
60@ = 0
49@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
request_model 411
request_model 496
request_model 429
request_model 597
request_model 281
request_model #TRAFFICCONE
request_model #TEMP_STINGER2
request_model #GARYS_LUV_RAMP
request_model #AD_JUMP
request_model #AD_ROADMARK1
request_model #AD_ROADMARK2
request_model #AD_FINISH
request_model 420
request_model 506
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
load_sprite 10 {spriteName} "NAWTXT"
load_all_models_now 
load_scene -2031.1 {y} -118.2 {z} 1034.2
clear_this_big_print 'FAR_1'
enable_ambient_crime False
switch_roads_off -2015.37 {leftBottomY} -76.08 {leftBottomZ} 10.0 {rightTopX} -2078.3 {rightTopY} -66.75 {rightTopZ} 50.0
clear_wanted_level $player1
deactivate_garage 'BODLAWN'
deactivate_garage 'MODLAST'
deactivate_garage 'MDSSFSE'
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_887
deactivate_garage 'MDS1SFS'
deactivate_garage 'VECMOD'

:DSKOOL_887
set_no_resprays True
if 
  $f1_dbp == 0
goto_if_false @DSKOOL_1425

:DSKOOL_909
if 
  $f1_dbp == 0
goto_if_false @DSKOOL_1425
wait 0
if 
  39@ == 0
goto_if_false @DSKOOL_1228
$f1_which_missions_are_open_flag = 1
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_coordinates $scplayer {x} -2031.7 {y} -116.4 {z} 1034.2
set_char_heading $scplayer {heading} 86.9
request_model 50
load_all_models_now 
clear_area -2033.2 {y} -116.5 {z} 1034.2 {radius} 30.0 {clearParticles} True
91@ = create_char PedType.Mission1 {modelId} 50 {x} -2033.2 {y} -116.5 {z} 1034.2
shut_char_up_for_scripted_speech 91@ {state} True
set_char_decision_maker 91@ {handleOrTemplate} 49@
set_char_heading 91@ {heading} 270.0
set_char_never_targetted 91@ {state} True
set_char_keep_task 91@ {state} True
task_stand_still 91@ {time} -2
set_fixed_camera_position -2030.7 {y} -115.8 {z} 1035.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2033.9 {y} -116.1 {z} 1035.7 {switchStyle} SwitchType.JumpCut
61@ = 1
62@ = 0
gosub @DSKOOL_45813
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_1200
start_char_facial_talk 91@ {duration} 20000

:DSKOOL_1200
do_fade 1000 {direction} Fade.In
skip_cutscene_start_internal @DSKOOL_1264
TIMERA = 0
39@ = 1

:DSKOOL_1228
if 
  39@ == 1
goto_if_false @DSKOOL_1411
if 
  61@ == 0
goto_if_false @DSKOOL_1411

:DSKOOL_1264
skip_cutscene_end 
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_1287
stop_char_facial_talk 91@

:DSKOOL_1287
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
61@ = 0
do_fade 500 {direction} Fade.Out

:DSKOOL_1311
if 
  get_fading_status 
goto_if_false @DSKOOL_1335
wait 0
goto @DSKOOL_1311

:DSKOOL_1335
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
39@ = 0
$f1_dbp = 1
do_fade 500 {direction} Fade.In

:DSKOOL_1380
if 
  get_fading_status 
goto_if_false @DSKOOL_1404
wait 0
goto @DSKOOL_1380

:DSKOOL_1404
goto @DSKOOL_24457

:DSKOOL_1411
gosub @DSKOOL_45718
goto @DSKOOL_909

:DSKOOL_1425
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
gosub @DSKOOL_30049
34@ = 0
39@ = 0
use_text_commands True
44@ = 255
43@ = 2
if 
  17 > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_1516
set_var_int_to_lvar_int $mission_selection = 50@

:DSKOOL_1516
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1541
$mission_selection = 4

:DSKOOL_1541
if 
  $mission_selection == 6
goto_if_false @DSKOOL_1566
$mission_selection = 7

:DSKOOL_1566
if 
  $mission_selection == 8
goto_if_false @DSKOOL_1591
$mission_selection = 9

:DSKOOL_1591
if 
  $mission_selection == 12
goto_if_false @DSKOOL_1616
$mission_selection = 13

:DSKOOL_1616
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $scplayer {x} -2035.4 {y} -119.1 {z} 33.2
load_scene -2035.4 {y} -119.1 {z} 33.2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 31400

:DSKOOL_1671
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DSKOOL_1697
wait 0
goto @DSKOOL_1671

:DSKOOL_1697
play_mission_audio MissionAudioSlot.Slot3
clear_extra_colours False
display_hud False
display_radar False
do_fade 500 {direction} Fade.In
gosub @DSKOOL_25654

:DSKOOL_1727
if 
  get_fading_status 
goto_if_false @DSKOOL_1758
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_1727

:DSKOOL_1758
gosub @DSKOOL_25654

:DSKOOL_1765
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DSKOOL_1791
goto @DSKOOL_24495

:DSKOOL_1791
gosub @DSKOOL_25654
if 
  39@ == 0
goto_if_false @DSKOOL_2755
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_2113
50@ -= 1
$mission_selection -= 1
if 
  50@ == 3
goto_if_false @DSKOOL_1895
50@ = 2

:DSKOOL_1895
if 
  50@ == 6
goto_if_false @DSKOOL_1920
50@ = 5

:DSKOOL_1920
if 
  50@ == 8
goto_if_false @DSKOOL_1945
50@ = 7

:DSKOOL_1945
if 
  50@ == 12
goto_if_false @DSKOOL_1970
50@ = 11

:DSKOOL_1970
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1995
$mission_selection = 2

:DSKOOL_1995
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2020
$mission_selection = 5

:DSKOOL_2020
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2045
$mission_selection = 7

:DSKOOL_2045
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2070
$mission_selection = 11

:DSKOOL_2070
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2113
if 
  4 > 34@
goto_if_false @DSKOOL_2113
34@ = 3

:DSKOOL_2113
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_2394
50@ += 1
$mission_selection += 1
if 
  50@ == 3
goto_if_false @DSKOOL_2176
50@ = 4

:DSKOOL_2176
if 
  50@ == 6
goto_if_false @DSKOOL_2201
50@ = 7

:DSKOOL_2201
if 
  50@ == 8
goto_if_false @DSKOOL_2226
50@ = 9

:DSKOOL_2226
if 
  50@ == 12
goto_if_false @DSKOOL_2251
50@ = 13

:DSKOOL_2251
if 
  $mission_selection == 3
goto_if_false @DSKOOL_2276
$mission_selection = 4

:DSKOOL_2276
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2301
$mission_selection = 7

:DSKOOL_2301
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2326
$mission_selection = 9

:DSKOOL_2326
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2351
$mission_selection = 13

:DSKOOL_2351
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2394
if 
  4 > 34@
goto_if_false @DSKOOL_2394
34@ = 3

:DSKOOL_2394
if 
  1 > $mission_selection
goto_if_false @DSKOOL_2428
set_var_int_to_var_int $mission_selection = $f1_which_missions_are_open_flag
set_lvar_int_to_var_int 50@ = $f1_which_missions_are_open_flag

:DSKOOL_2428
if 
  is_int_var_greater_than_int_var $mission_selection > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_2461
$mission_selection = 1
50@ = 1

:DSKOOL_2461
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2583

:DSKOOL_2479
if 
  -100 > $LStickX
goto_if_false @DSKOOL_2531
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DSKOOL_2479

:DSKOOL_2531
if 
  $LStickX > 100
goto_if_false @DSKOOL_2583
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DSKOOL_2531

:DSKOOL_2583
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_2618
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2583

:DSKOOL_2618
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_2653
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2618

:DSKOOL_2653
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DSKOOL_2755
if or
  $mission_selection == 4
  $mission_selection == 7
  $mission_selection == 9
  $mission_selection == 13
goto_if_false @DSKOOL_2723
39@ = 1
goto @DSKOOL_2755

:DSKOOL_2723
if 
  4 > 34@
goto_if_false @DSKOOL_2748
34@ = 3

:DSKOOL_2748
goto @DSKOOL_3661

:DSKOOL_2755
if 
  39@ == 1
goto_if_false @DSKOOL_3135
if 
  4 > 34@
goto_if_false @DSKOOL_2798
34@ = 3

:DSKOOL_2798
if 
  34@ == 0
goto_if_false @DSKOOL_2823
34@ = 5

:DSKOOL_2823
gosub @DSKOOL_29820
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 160.0 {key} 'DS1_59'
gosub @DSKOOL_29820
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 100.0 {offsetTop} 205.0 {key} 'DS1_60'
gosub @DSKOOL_29820
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 101.0 {offsetTop} 231.0 {key} 'DS1_61'
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_3004
goto @DSKOOL_3661

:DSKOOL_3004
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_3135
if 
  $mission_selection == 4
goto_if_false @DSKOOL_3053
$mission_selection = 3

:DSKOOL_3053
if 
  $mission_selection == 7
goto_if_false @DSKOOL_3078
$mission_selection = 6

:DSKOOL_3078
if 
  $mission_selection == 9
goto_if_false @DSKOOL_3103
$mission_selection = 8

:DSKOOL_3103
if 
  $mission_selection == 13
goto_if_false @DSKOOL_3128
$mission_selection = 12

:DSKOOL_3128
goto @DSKOOL_3661

:DSKOOL_3135
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @DSKOOL_3280
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_3273
$f1_the360_best_score = 100
$f1_the180_best_score = 100
$f1_whiprightterminate_best_score = 100
$f1_popcontrol_best_score = 100
$f1_burnlapright_best_score = 100
$f1_conecoilright_best_score = 100
$f1_the90_best_score = 100
$f1_wheelieweave_best_score = 100
$f1_spinrightgo_best_score = 100
$f1_pittechnique_best_score = 100
$f1_alleyoop_best_score = 100
$f1_cityslicking_best_score = 100
switch_car_generator $f1_gold_car_gen {amount} 101
switch_car_generator $f1_chunky {amount} 101
$driving_test_passed = 1

:DSKOOL_3273
$f1_which_missions_are_open_flag = 16

:DSKOOL_3280
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_3647
gosub @DSKOOL_25654
do_fade 500 {direction} Fade.Out

:DSKOOL_3311
if 
  get_fading_status 
goto_if_false @DSKOOL_3349
gosub @DSKOOL_25654
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3311

:DSKOOL_3349
gosub @DSKOOL_25654
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
clear_extra_colours True
set_char_area_visible $scplayer {areaId} 3
set_area_visible 3
request_collision -2031.1 {y} -118.2
load_scene -2031.1 {y} -118.2 {z} 1034.2
set_char_coordinates $scplayer {x} -2029.7 {y} -115.5 {z} 1034.2
set_char_heading $scplayer {heading} 0.0
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3473
if 
  is_playback_going_on_for_car $instructor_car
goto_if_false @DSKOOL_3473
stop_playback_recorded_car $instructor_car

:DSKOOL_3473
delete_car $instructor_car
clear_area -2051.0 {y} -174.0 {z} 34.0 {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_object 57@
delete_object 58@
delete_object 59@
remove_car_recording 1
remove_car_recording 2
remove_car_recording 3
remove_car_recording 4
remove_car_recording 5
remove_car_recording 7
remove_car_recording 9
remove_car_recording 10
remove_car_recording 11
remove_car_recording 13
remove_car_recording 14
remove_car_recording 15
remove_car_recording 16
gosub @DSKOOL_35156
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DSKOOL_3616
if 
  get_fading_status 
goto_if_false @DSKOOL_3640
wait 0
goto @DSKOOL_3616

:DSKOOL_3640
goto @DSKOOL_24457

:DSKOOL_3647
gosub @DSKOOL_28801
goto @DSKOOL_1765

:DSKOOL_3661
do_fade 500 {direction} Fade.Out

:DSKOOL_3668
if 
  get_fading_status 
goto_if_false @DSKOOL_3699
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3668

:DSKOOL_3699
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3720
stop_playback_recorded_car $instructor_car

:DSKOOL_3720
clear_mission_audio MissionAudioSlot.Slot3
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_car $instructor_car
delete_object 57@
delete_object 58@
delete_object 59@
gosub @DSKOOL_35156
34@ = 5
display_hud True
display_radar True
if 
  $mission_selection == 1
goto_if_false @DSKOOL_5391

:DSKOOL_3836
gosub @DSKOOL_29940

:DSKOOL_3843
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = create_car 411 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_3997
set_fixed_camera_position -2028.3 {y} -143.0 {z} 38.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.3 {y} -129.9 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3995
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_3995
return 

:DSKOOL_3997
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DS1_88' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_44' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_4067
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_4102
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_4102
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_4134
goto @DSKOOL_24457

:DSKOOL_4134
if 
  $car_started == 0
goto_if_false @DSKOOL_4216
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_4202
print_big 'DS1_88' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_44' {time} 5000 {flag} 4

:DSKOOL_4202
gosub @DSKOOL_30935
goto @DSKOOL_5384

:DSKOOL_4216
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31255
$perfect_heading = get_car_heading $instructor_car
if 
  $variablec == 0
goto_if_false @DSKOOL_4321
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4321
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4321
$variablec = 1
40@ = 1

:DSKOOL_4321
if 
  40@ == 1
goto_if_false @DSKOOL_4540
if 
  $variablec == 1
goto_if_false @DSKOOL_4406
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4406
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4406
$variablec = 2

:DSKOOL_4406
if 
  $variablec == 2
goto_if_false @DSKOOL_4473
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4473
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4473
$variablec = 3

:DSKOOL_4473
if 
  $variablec == 3
goto_if_false @DSKOOL_4540
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4540
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4540
$variablec = 4

:DSKOOL_4540
if 
  $variablec == 0
goto_if_false @DSKOOL_4614
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4614
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4614
40@ = 2
$variablec = 1

:DSKOOL_4614
if 
  40@ == 2
goto_if_false @DSKOOL_4833
if 
  $variablec == 1
goto_if_false @DSKOOL_4699
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4699
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4699
$variablec = 2

:DSKOOL_4699
if 
  $variablec == 2
goto_if_false @DSKOOL_4766
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4766
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4766
$variablec = 3

:DSKOOL_4766
if 
  $variablec == 3
goto_if_false @DSKOOL_4833
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4833
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4833
$variablec = 4

:DSKOOL_4833
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
  $car_timer == 0
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31289
gosub @DSKOOL_31329
if 
  $variablec == 4
goto_if_false @DSKOOL_4902
$heading_score = 100

:DSKOOL_4902
if 
  $variablec == 3
goto_if_false @DSKOOL_4927
$heading_score = 75

:DSKOOL_4927
if 
  $variablec == 2
goto_if_false @DSKOOL_4952
$heading_score = 50

:DSKOOL_4952
if 
  $variablec == 1
goto_if_false @DSKOOL_4977
$heading_score = 25

:DSKOOL_4977
if 
  $variablec == 0
goto_if_false @DSKOOL_5002
$heading_score = 0

:DSKOOL_5002
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_5050
$overall_score = 0

:DSKOOL_5050
if 
  $variablec == 0
goto_if_false @DSKOOL_5075
$overall_score = 0

:DSKOOL_5075
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the360_best_score
goto_if_false @DSKOOL_5145
set_lvar_int_to_var_int 47@ = $f1_the360_best_score
set_var_int_to_var_int $f1_the360_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_5152

:DSKOOL_5145
45@ = 0

:DSKOOL_5152
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_5216
if 
  $overall_score > 69
goto_if_false @DSKOOL_5216
41@ = 2
$f1_which_missions_are_open_flag = 2
$instructor_car_dead_flag = 2
50@ = 2

:DSKOOL_5216
TIMERA = 0

:DSKOOL_5223
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_5283
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_5283
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_5283
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_5322
goto @DSKOOL_5329

:DSKOOL_5322
goto @DSKOOL_5223

:DSKOOL_5329
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_5377
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_5384

:DSKOOL_5377
goto @DSKOOL_3836

:DSKOOL_5384
goto @DSKOOL_4067

:DSKOOL_5391
if 
  $mission_selection == 2
goto_if_false @DSKOOL_6710

:DSKOOL_5409
gosub @DSKOOL_29940

:DSKOOL_5416
$perfect_heading = 0.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = create_car 496 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_5570
set_fixed_camera_position -2060.2 {y} -227.3 {z} 36.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.5 {y} -210.6 {z} 34.0 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_5568
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_5568
return 

:DSKOOL_5570
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -2.0 {yOffset} 82.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 2.0 {yOffset} 88.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_45' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_5698
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_5733
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_5733
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_5765
goto @DSKOOL_24457

:DSKOOL_5765
if 
  $car_started == 0
goto_if_false @DSKOOL_5847
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_5833
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_45' {time} 5000 {flag} 4

:DSKOOL_5833
gosub @DSKOOL_30935
goto @DSKOOL_6703

:DSKOOL_5847
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31255
if 
  $variablec == 0
goto_if_false @DSKOOL_5925
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_5925
$variablec = 1

:DSKOOL_5925
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31289
gosub @DSKOOL_31329
if 
  $variablec == 0
goto_if_false @DSKOOL_5980
$position_score = 0

:DSKOOL_5980
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_6028
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6028
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_6061
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6061
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_6104
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_6104
$heading_score = 100

:DSKOOL_6104
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_6191
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_6191
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_6321

:DSKOOL_6191
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_6236
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_6236
$heading_score = 100

:DSKOOL_6236
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_6321
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_6321
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_6321

:DSKOOL_6321
if 
  1 > $heading_score
goto_if_false @DSKOOL_6346
$heading_score = 0

:DSKOOL_6346
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_6394
$overall_score = 0

:DSKOOL_6394
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the180_best_score
goto_if_false @DSKOOL_6464
set_lvar_int_to_var_int 47@ = $f1_the180_best_score
set_var_int_to_var_int $f1_the180_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_6471

:DSKOOL_6464
45@ = 0

:DSKOOL_6471
if 
  $f1_which_missions_are_open_flag == 2
goto_if_false @DSKOOL_6535
if 
  $overall_score > 69
goto_if_false @DSKOOL_6535
41@ = 2
$f1_which_missions_are_open_flag = 4
$instructor_car_dead_flag = 2
50@ = 4

:DSKOOL_6535
TIMERA = 0

:DSKOOL_6542
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_6602
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_6602
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_6602
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_6641
goto @DSKOOL_6648

:DSKOOL_6641
goto @DSKOOL_6542

:DSKOOL_6648
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_6696
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_6703

:DSKOOL_6696
goto @DSKOOL_5409

:DSKOOL_6703
goto @DSKOOL_5698

:DSKOOL_6710
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_8322

:DSKOOL_6735
gosub @DSKOOL_29940

:DSKOOL_6742
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
if 
  $mission_selection == 3
goto_if_false @DSKOOL_6795
$perfect_positionx += 20.0

:DSKOOL_6795
if 
  $mission_selection == 4
goto_if_false @DSKOOL_6823
$perfect_positionx -= 20.0

:DSKOOL_6823
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_6950
set_fixed_camera_position -2022.6 {y} -173.4 {z} 36.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2034.2 {y} -165.4 {z} 34.5 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_6948
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_6948
return 

:DSKOOL_6950
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7004
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 40.0 {yOffset} 37.0 {zOffset} 0.0
goto @DSKOOL_7033

:DSKOOL_7004
$finish_leftx, $finish_lefty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -40.0 {yOffset} 37.0 {zOffset} 0.0

:DSKOOL_7033
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_32' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_7074
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_7109
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_7109
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_7141
goto @DSKOOL_24457

:DSKOOL_7141
if 
  $car_started == 0
goto_if_false @DSKOOL_7223
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_7209
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_32' {time} 5000 {flag} 4

:DSKOOL_7209
gosub @DSKOOL_30935
goto @DSKOOL_8315

:DSKOOL_7223
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31255
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31289
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_7326

:DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_7326
gosub @DSKOOL_31329
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_7381
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7381
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_7414
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7414
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7683
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_7464
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7464
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7533
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_7533
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7533
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_7576
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_7576
$heading_score = 100

:DSKOOL_7576
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_7676
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7676
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7676
goto @DSKOOL_7933

:DSKOOL_7683
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_7716
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7716
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7786
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_7786
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.37
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7786
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_7831
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_7831
$heading_score = 100

:DSKOOL_7831
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_7933
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7933
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7933
if 
  1 > $heading_score
goto_if_false @DSKOOL_7958
$heading_score = 0

:DSKOOL_7958
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_8006
$overall_score = 0

:DSKOOL_8006
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_whiprightterminate_best_score
goto_if_false @DSKOOL_8076
set_lvar_int_to_var_int 47@ = $f1_whiprightterminate_best_score
set_var_int_to_var_int $f1_whiprightterminate_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_8083

:DSKOOL_8076
45@ = 0

:DSKOOL_8083
if 
  $f1_which_missions_are_open_flag == 4
goto_if_false @DSKOOL_8147
if 
  $overall_score > 69
goto_if_false @DSKOOL_8147
41@ = 2
$f1_which_missions_are_open_flag = 5
$instructor_car_dead_flag = 2
50@ = 5

:DSKOOL_8147
TIMERA = 0

:DSKOOL_8154
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_8214
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_8214
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_8214
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_8253
goto @DSKOOL_8260

:DSKOOL_8253
goto @DSKOOL_8154

:DSKOOL_8260
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_8308
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_8315

:DSKOOL_8308
goto @DSKOOL_6735

:DSKOOL_8315
goto @DSKOOL_7074

:DSKOOL_8322
if 
  $mission_selection == 5
goto_if_false @DSKOOL_9825

:DSKOOL_8340
gosub @DSKOOL_29940

:DSKOOL_8347
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
$instructor_car = create_car 597 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
$perfect_positionx, $perfect_positiony, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 2.0 {yOffset} 38.0 {zOffset} -0.5
$car_posx, $car_posy, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
59@ = create_object #TEMP_STINGER2 {x} -2050.8 {y} -167.0 {z} 34.6
set_object_heading 59@ {heading} 90.0
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_8595
set_fixed_camera_position -2047.7 {y} -243.3 {z} 37.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.7 {y} -227.4 {z} 34.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_8593
55@ = create_char_inside_car $instructor_car {pedType} PedType.Mission1 {modelId} 281

:DSKOOL_8593
return 

:DSKOOL_8595
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 104.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_30' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_8665
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_8700
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_8700
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_8732
goto @DSKOOL_24457

:DSKOOL_8732
if 
  $car_started == 0
goto_if_false @DSKOOL_8814
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_8800
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_30' {time} 5000 {flag} 4

:DSKOOL_8800
gosub @DSKOOL_30935
goto @DSKOOL_9818

:DSKOOL_8814
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31255
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $perfect_positionx {leftBottomY} $perfect_positiony {rightTopX} $car_posx {rightTopY} $car_posy {drawSphere} False
goto_if_false @DSKOOL_8892
if 
  not is_car_tyre_burst $instructor_car {tireId} WheelId.RearRight
goto_if_false @DSKOOL_8892
burst_car_tyre $instructor_car {tireId} WheelId.RearRight

:DSKOOL_8892
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31289
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_9068
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_9054
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_9061

:DSKOOL_9054
$position_score = 0

:DSKOOL_9061
goto @DSKOOL_9075

:DSKOOL_9068
$position_score = 100

:DSKOOL_9075
if 
  not is_car_tyre_burst $instructor_car {tireId} WheelId.RearRight
goto_if_false @DSKOOL_9100
$position_score = 0

:DSKOOL_9100
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_9148
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9148
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_9181
$heading_score = 100
goto @DSKOOL_9431

:DSKOOL_9181
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_9214
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9214
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_9284
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_9284
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_9431

:DSKOOL_9284
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_9329
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_9329
$heading_score = 100

:DSKOOL_9329
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_9431
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_9431
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_9431

:DSKOOL_9431
if 
  1 > $heading_score
goto_if_false @DSKOOL_9456
$heading_score = 0

:DSKOOL_9456
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_9504
$overall_score = 0

:DSKOOL_9504
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_popcontrol_best_score
goto_if_false @DSKOOL_9574
set_lvar_int_to_var_int 47@ = $f1_popcontrol_best_score
set_var_int_to_var_int $f1_popcontrol_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_9581

:DSKOOL_9574
45@ = 0

:DSKOOL_9581
if 
  $f1_which_missions_are_open_flag == 5
goto_if_false @DSKOOL_9645
if 
  $overall_score > 69
goto_if_false @DSKOOL_9645
41@ = 2
$f1_which_missions_are_open_flag = 7
$instructor_car_dead_flag = 2
50@ = 7

:DSKOOL_9645
TIMERA = 0

:DSKOOL_9652
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_9712
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_9712
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_9712
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_9751
goto @DSKOOL_9758

:DSKOOL_9751
goto @DSKOOL_9652

:DSKOOL_9758
gosub @DSKOOL_34872
delete_object 59@
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_9811
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_9818

:DSKOOL_9811
goto @DSKOOL_8340

:DSKOOL_9818
goto @DSKOOL_8665

:DSKOOL_9825
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_11927

:DSKOOL_9850
gosub @DSKOOL_29940

:DSKOOL_9857
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
gosub @DSKOOL_35210
if 
  $mission_selection == 6
goto_if_false @DSKOOL_10186
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 50.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check2ax, $area_check2ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 38.0 {zOffset} 0.0
$area_check2bx, $area_check2by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check3ax, $area_check3ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check3bx, $area_check3by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} -4.0 {zOffset} 0.0
$area_check4ax, $area_check4ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check4bx, $area_check4by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} 0.0
59@ = create_object #AD_FINISH {x} -2050.5 {y} -135.5 {z} 34.35

:DSKOOL_10186
if 
  $mission_selection == 7
goto_if_false @DSKOOL_10510
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 50.0 {zOffset} 0.0
$area_check2ax, $area_check2ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check2bx, $area_check2by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 38.0 {zOffset} 0.0
$area_check3ax, $area_check3ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check3bx, $area_check3by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} 0.0
$area_check4ax, $area_check4ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check4bx, $area_check4by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 8.0 {zOffset} 0.0
$car_posx, $car_posy, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 8.0 {yOffset} 0.0 {zOffset} 0.0
59@ = create_object #AD_FINISH {x} -2058.5 {y} -135.5 {z} 34.35
set_car_coordinates $instructor_car {x} $car_posx {y} $car_posy {z} $player_z
set_car_heading $instructor_car {heading} $perfect_heading

:DSKOOL_10510
if 
  34@ == 0
goto_if_false @DSKOOL_10605
set_fixed_camera_position -2054.6001 {y} -109.1 {z} 36.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2054.6001 {y} -122.0 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_10603
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_10603
return 

:DSKOOL_10605
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_29' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_10646
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_10681
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_10681
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_10713
goto @DSKOOL_24457

:DSKOOL_10713
if 
  $car_started == 0
goto_if_false @DSKOOL_10795
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_10781
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_29' {time} 5000 {flag} 4

:DSKOOL_10781
gosub @DSKOOL_30935
goto @DSKOOL_11920

:DSKOOL_10795
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_11920
if 
  $car_timer > 90000
goto_if_false @DSKOOL_10839
set_player_control $player1 {state} False

:DSKOOL_10839
if 
  $variablea == 0
goto_if_false @DSKOOL_10894
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_10894
$variablea = 1

:DSKOOL_10894
if 
  $variablea == 1
goto_if_false @DSKOOL_10949
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check2ax {leftBottomY} $area_check2ay {rightTopX} $area_check2bx {rightTopY} $area_check2by {drawSphere} False
goto_if_false @DSKOOL_10949
$variablea = 2

:DSKOOL_10949
if 
  $variablea == 2
goto_if_false @DSKOOL_11004
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check3ax {leftBottomY} $area_check3ay {rightTopX} $area_check3bx {rightTopY} $area_check3by {drawSphere} False
goto_if_false @DSKOOL_11004
$variablea = 3

:DSKOOL_11004
if 
  $variablea == 3
goto_if_false @DSKOOL_11066
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check4ax {leftBottomY} $area_check4ay {rightTopX} $area_check4bx {rightTopY} $area_check4by {drawSphere} False
goto_if_false @DSKOOL_11066
$lap_counter += 1
$variablea = 0

:DSKOOL_11066
clear_prints 
if 
  4 > $lap_counter
goto_if_false @DSKOOL_11127
set_var_int_to_var_int $variabled = $lap_counter
$variabled += 1
print_with_number_now 'DS1_73' {num} $variabled {duration} 5000 {flag} 4
goto @DSKOOL_11143

:DSKOOL_11127
print_now 'DS1_74' {time} 5000 {flag} 4

:DSKOOL_11143
if or
  is_car_stopped $instructor_car
  $lap_counter == 5
goto_if_false @DSKOOL_11920
gosub @DSKOOL_31289
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  5 > $lap_counter
goto_if_false @DSKOOL_11283
$time_score = 0
goto @DSKOOL_11541

:DSKOOL_11283
if 
  36000 > $variablea
goto_if_false @DSKOOL_11311
$time_score = 100

:DSKOOL_11311
if 
  $variablea >= 36000
goto_if_false @DSKOOL_11412
if 
  40000 > $variablea
goto_if_false @DSKOOL_11412
set_var_int_to_var_int $variablec = $variablea
$variablec -= 35999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0075
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11412
if 
  $variablea >= 40000
goto_if_false @DSKOOL_11513
if 
  45000 > $variablea
goto_if_false @DSKOOL_11513
set_var_int_to_var_int $variablec = $variablea
$variablec -= 39999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0138
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11513
if 
  $variablea >= 45000
goto_if_false @DSKOOL_11541
$time_score = 0

:DSKOOL_11541
if 
  1 > $time_score
goto_if_false @DSKOOL_11566
$time_score = 0

:DSKOOL_11566
if 
  $time_score > 99
goto_if_false @DSKOOL_11591
$time_score = 100

:DSKOOL_11591
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_burnlapright_best_score
goto_if_false @DSKOOL_11669
set_lvar_int_to_var_int 47@ = $f1_burnlapright_best_score
set_var_int_to_var_int $f1_burnlapright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_11676

:DSKOOL_11669
45@ = 0

:DSKOOL_11676
if 
  $f1_which_missions_are_open_flag == 7
goto_if_false @DSKOOL_11740
if 
  $overall_score > 69
goto_if_false @DSKOOL_11740
41@ = 2
$f1_which_missions_are_open_flag = 9
$instructor_car_dead_flag = 2
50@ = 9

:DSKOOL_11740
$lap_counter = 6
TIMERA = 0

:DSKOOL_11754
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_11814
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_11814
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_11814
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_11853
goto @DSKOOL_11860

:DSKOOL_11853
goto @DSKOOL_11754

:DSKOOL_11860
gosub @DSKOOL_34872
delete_object 59@
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_11913
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_11920

:DSKOOL_11913
goto @DSKOOL_9850

:DSKOOL_11920
goto @DSKOOL_10646

:DSKOOL_11927
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_13423

:DSKOOL_11952
gosub @DSKOOL_29940

:DSKOOL_11959
request_model 429

:DSKOOL_11964
if 
  not has_model_loaded 429
goto_if_false @DSKOOL_11991
wait 0
goto @DSKOOL_11964

:DSKOOL_11991
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
59@ = create_object #AD_ROADMARK1 {x} -2050.0 {y} -172.5 {z} 34.35
set_object_heading 59@ {heading} 180.0
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_12176
set_fixed_camera_position -2042.1 {y} -223.4 {z} 36.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.1001 {y} -210.0 {z} 34.8 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_12174
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_12174
return 

:DSKOOL_12176
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_offset_from_object_in_world_coords $trafficcones[15] {xOffset} 0.0 {yOffset} 5.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_36' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_12275
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_12310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_12310
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_12342
goto @DSKOOL_24457

:DSKOOL_12342
if 
  $car_started == 0
goto_if_false @DSKOOL_12424
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_12410
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_36' {time} 5000 {flag} 4

:DSKOOL_12410
gosub @DSKOOL_30935
goto @DSKOOL_13416

:DSKOOL_12424
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_13416
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -126.0 {rightTopX} -2058.0 {rightTopY} -220.0 {drawSphere} False
goto_if_false @DSKOOL_12485
set_player_control $player1 {state} False

:DSKOOL_12485
if 
  $lap_counter == 0
goto_if_false @DSKOOL_12552
if 
  locate_car_3d $instructor_car {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_12552
$lap_counter = 1

:DSKOOL_12552
if 
  $lap_counter == 1
goto_if_false @DSKOOL_12619
if 
  locate_stopped_car_3d $instructor_car {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_12619
$lap_counter = 2

:DSKOOL_12619
gosub @DSKOOL_31255
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_13416
gosub @DSKOOL_31289
if 
  $lap_counter > 0
goto_if_false @DSKOOL_12681
gosub @DSKOOL_31329
goto @DSKOOL_12688

:DSKOOL_12681
$position_score = 0

:DSKOOL_12688
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_12736
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12736
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_12769
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12769
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_12812
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_12812
$heading_score = 100

:DSKOOL_12812
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_12899
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_12899
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_13029

:DSKOOL_12899
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_12944
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_12944
$heading_score = 100

:DSKOOL_12944
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_13029
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_13029
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_13029

:DSKOOL_13029
if 
  1 > $heading_score
goto_if_false @DSKOOL_13054
$heading_score = 0

:DSKOOL_13054
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_13102
$overall_score = 0

:DSKOOL_13102
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_conecoilright_best_score
goto_if_false @DSKOOL_13172
set_lvar_int_to_var_int 47@ = $f1_conecoilright_best_score
set_var_int_to_var_int $f1_conecoilright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_13179

:DSKOOL_13172
45@ = 0

:DSKOOL_13179
if 
  $f1_which_missions_are_open_flag == 9
goto_if_false @DSKOOL_13243
if 
  $overall_score > 69
goto_if_false @DSKOOL_13243
41@ = 2
$f1_which_missions_are_open_flag = 10
$instructor_car_dead_flag = 2
50@ = 10

:DSKOOL_13243
TIMERA = 0

:DSKOOL_13250
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_13310
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_13310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_13310
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_13349
goto @DSKOOL_13356

:DSKOOL_13349
goto @DSKOOL_13250

:DSKOOL_13356
gosub @DSKOOL_34872
delete_object 59@
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_13409
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_13416

:DSKOOL_13409
goto @DSKOOL_11952

:DSKOOL_13416
goto @DSKOOL_12275

:DSKOOL_13423
if 
  $mission_selection == 10
goto_if_false @DSKOOL_15321

:DSKOOL_13441
gosub @DSKOOL_29940

:DSKOOL_13448
$perfect_heading = 270.0
$car_timer = 6000
gosub @DSKOOL_30049
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
freeze_car_position $dummy_car1 {state} True
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx -= 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car2 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car2 {heading} $perfect_heading
freeze_car_position $dummy_car2 {state} True
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$instructor_car = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
if 
  34@ == 0
goto_if_false @DSKOOL_13747
set_fixed_camera_position -2045.8 {y} -210.5 {z} 35.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2053.5 {y} -198.1 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_13745
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_13745
return 

:DSKOOL_13747
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_1' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_13788
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_13823
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_13823
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_13855
goto @DSKOOL_24457

:DSKOOL_13855
if 
  $car_started == 0
goto_if_false @DSKOOL_13937
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_13923
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_1' {time} 5000 {flag} 4

:DSKOOL_13923
gosub @DSKOOL_30935
goto @DSKOOL_15314

:DSKOOL_13937
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31255
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31289
$perfect_positiony -= 75.0
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_14130
if 
  5.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_14116
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 22.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_14123

:DSKOOL_14116
$position_score = 0

:DSKOOL_14123
goto @DSKOOL_14137

:DSKOOL_14130
$position_score = 100

:DSKOOL_14137
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_14193
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14193
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_14225
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14225
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_14258
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14258
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_14291
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14291
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_14360
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_14360
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14360
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_14403
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_14403
$heading_score = 100

:DSKOOL_14403
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_14503
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_14503
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14503
if 
  $instructor_car_heading_int > 180
goto_if_false @DSKOOL_14590
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_14590
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14590
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_14635
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_14635
$heading_score = 100

:DSKOOL_14635
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_14737
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_14737
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14737
if 
  1 > $heading_score
goto_if_false @DSKOOL_14762
$heading_score = 0

:DSKOOL_14762
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_14810
$overall_score = 0

:DSKOOL_14810
gosub @DSKOOL_31483
$other_car_damage = 200
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_14897
$dummy_car1_health = get_car_health $dummy_car1
$total_dummy_car1_health = 1000
sub_int_var_from_int_var $total_dummy_car1_health -= $dummy_car1_health
$total_dummy_car1_health /= 10
if 
  $total_dummy_car1_health > 100
goto_if_false @DSKOOL_14897
$total_dummy_car1_health = 100

:DSKOOL_14897
if 
  not is_car_dead $dummy_car2
goto_if_false @DSKOOL_14969
$dummy_car2_health = get_car_health $dummy_car2
$total_dummy_car2_health = 1000
sub_int_var_from_int_var $total_dummy_car2_health -= $dummy_car2_health
$total_dummy_car2_health /= 10
if 
  $total_dummy_car2_health > 100
goto_if_false @DSKOOL_14969
$total_dummy_car2_health = 100

:DSKOOL_14969
set_var_int_to_var_int $other_car_damage = $total_dummy_car1_health
add_int_var_to_int_var $other_car_damage += $total_dummy_car2_health
set_var_int_to_var_int $total_car_damage = $player_car_damage
add_int_var_to_int_var $total_car_damage += $other_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the90_best_score
goto_if_false @DSKOOL_15072
set_lvar_int_to_var_int 47@ = $f1_the90_best_score
set_var_int_to_var_int $f1_the90_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_15079

:DSKOOL_15072
45@ = 0

:DSKOOL_15079
if 
  $f1_which_missions_are_open_flag == 10
goto_if_false @DSKOOL_15143
if 
  $overall_score > 69
goto_if_false @DSKOOL_15143
41@ = 2
$f1_which_missions_are_open_flag = 11
$instructor_car_dead_flag = 2
50@ = 11

:DSKOOL_15143
TIMERA = 0

:DSKOOL_15150
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_15210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_15210
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_15210
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_15249
goto @DSKOOL_15256

:DSKOOL_15249
goto @DSKOOL_15150

:DSKOOL_15256
gosub @DSKOOL_34872
delete_car $dummy_car1
delete_car $dummy_car2
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_15307
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_15314

:DSKOOL_15307
goto @DSKOOL_13441

:DSKOOL_15314
goto @DSKOOL_13788

:DSKOOL_15321
if 
  $mission_selection == 11
goto_if_false @DSKOOL_16925

:DSKOOL_15339
gosub @DSKOOL_29940

:DSKOOL_15346
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 1.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 25.0
$perfect_heading = 90.0
58@ = create_object #GARYS_LUV_RAMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_object_heading 58@ {heading} 270.0
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -50.0 {yOffset} 30.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 50.0 {yOffset} 200.0 {zOffset} 0.0
if 
  34@ == 0
goto_if_false @DSKOOL_15621
set_fixed_camera_position -2052.6001 {y} -138.4 {z} 34.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2044.2 {y} -208.2 {z} 37.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_15619
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_15619
return 

:DSKOOL_15621
clear_prints 
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 100.0 {zOffset} 0.0
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_34' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_15691
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_15726
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_15726
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_15758
goto @DSKOOL_24457

:DSKOOL_15758
if 
  $car_started == 0
goto_if_false @DSKOOL_15840
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_15826
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_34' {time} 5000 {flag} 4

:DSKOOL_15826
gosub @DSKOOL_30935
goto @DSKOOL_16918

:DSKOOL_15840
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_16918
if 
  locate_char_any_means_3d $scplayer {x} $finish_rightx {y} $finish_righty {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_15898

:DSKOOL_15898
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_15985
$variableb = get_car_roll $instructor_car
if 
  4.0 > $variableb
goto_if_false @DSKOOL_15985
if 
  $variableb > -4.0
goto_if_false @DSKOOL_15985
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_15985
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31289
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31289
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_16184
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_16170
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_16177

:DSKOOL_16170
$position_score = 0

:DSKOOL_16177
goto @DSKOOL_16191

:DSKOOL_16184
$position_score = 100

:DSKOOL_16191
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_16239
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16239
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_16272
$heading_score = 100
goto @DSKOOL_16522

:DSKOOL_16272
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_16305
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16305
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_16375
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_16375
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_16522

:DSKOOL_16375
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_16420
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_16420
$heading_score = 100

:DSKOOL_16420
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_16522
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_16522
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_16522

:DSKOOL_16522
if 
  1 > $heading_score
goto_if_false @DSKOOL_16547
$heading_score = 0

:DSKOOL_16547
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_16595
$overall_score = 0

:DSKOOL_16595
gosub @DSKOOL_31483
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_wheelieweave_best_score
goto_if_false @DSKOOL_16681
set_lvar_int_to_var_int 47@ = $f1_wheelieweave_best_score
set_var_int_to_var_int $f1_wheelieweave_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_16688

:DSKOOL_16681
45@ = 0

:DSKOOL_16688
if 
  $f1_which_missions_are_open_flag == 11
goto_if_false @DSKOOL_16752
if 
  $overall_score > 69
goto_if_false @DSKOOL_16752
41@ = 2
$f1_which_missions_are_open_flag = 13
$instructor_car_dead_flag = 2
50@ = 13

:DSKOOL_16752
TIMERA = 0

:DSKOOL_16759
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_16819
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_16819
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_16819
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_16858
goto @DSKOOL_16865

:DSKOOL_16858
goto @DSKOOL_16759

:DSKOOL_16865
gosub @DSKOOL_34872
delete_object 58@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_16911
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_16918

:DSKOOL_16911
goto @DSKOOL_15339

:DSKOOL_16918
goto @DSKOOL_15691

:DSKOOL_16925
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_18334

:DSKOOL_16950
gosub @DSKOOL_29940

:DSKOOL_16957
$perfect_heading = 0.0
$car_timer = 6000
gosub @DSKOOL_30049
$instructor_car = create_car 420 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_freebies_in_vehicle $instructor_car {state} False
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_17116
set_fixed_camera_position -2051.8999 {y} -185.5 {z} 37.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.2 {y} -152.9 {z} 34.3 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_17114
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_17114
return 

:DSKOOL_17116
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17170
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 6.5 {yOffset} -40.0 {zOffset} 0.0
goto @DSKOOL_17199

:DSKOOL_17170
$finish_leftx, $finish_lefty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -6.5 {yOffset} -40.0 {zOffset} 0.0

:DSKOOL_17199
clear_prints 
print_big 'DSREVE' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_28' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_17240
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_17275
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_17275
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_17307
goto @DSKOOL_24457

:DSKOOL_17307
if 
  $car_started == 0
goto_if_false @DSKOOL_17389
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_17375
print_big 'DSREVE' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_28' {time} 5000 {flag} 4

:DSKOOL_17375
gosub @DSKOOL_30935
goto @DSKOOL_18327

:DSKOOL_17389
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31255
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31289
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_17492

:DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_17492
gosub @DSKOOL_31329
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17569
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2046.9 {leftBottomY} -161.4 {rightTopX} -2041.2 {rightTopY} -174.5 {drawSphere} False
goto_if_false @DSKOOL_17562
$position_score = 0

:DSKOOL_17562
goto @DSKOOL_17614

:DSKOOL_17569
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2054.2 {leftBottomY} -161.4 {rightTopX} -2060.0 {rightTopY} -174.5 {drawSphere} False
goto_if_false @DSKOOL_17614
$position_score = 0

:DSKOOL_17614
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_17662
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17662
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_17695
$heading_score = 100
goto @DSKOOL_17945

:DSKOOL_17695
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_17728
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17728
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_17798
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_17798
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_17945

:DSKOOL_17798
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_17843
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_17843
$heading_score = 100

:DSKOOL_17843
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_17945
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_17945
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_17945

:DSKOOL_17945
if 
  1 > $heading_score
goto_if_false @DSKOOL_17970
$heading_score = 0

:DSKOOL_17970
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_18018
$overall_score = 0

:DSKOOL_18018
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_spinrightgo_best_score
goto_if_false @DSKOOL_18088
set_lvar_int_to_var_int 47@ = $f1_spinrightgo_best_score
set_var_int_to_var_int $f1_spinrightgo_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_18095

:DSKOOL_18088
45@ = 0

:DSKOOL_18095
if 
  $f1_which_missions_are_open_flag == 13
goto_if_false @DSKOOL_18159
if 
  $overall_score > 69
goto_if_false @DSKOOL_18159
41@ = 2
$f1_which_missions_are_open_flag = 14
$instructor_car_dead_flag = 2
50@ = 14

:DSKOOL_18159
TIMERA = 0

:DSKOOL_18166
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_18226
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_18226
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_18226
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_18265
goto @DSKOOL_18272

:DSKOOL_18265
goto @DSKOOL_18166

:DSKOOL_18272
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_18320
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_18327

:DSKOOL_18320
goto @DSKOOL_16950

:DSKOOL_18327
goto @DSKOOL_17240

:DSKOOL_18334
if 
  $mission_selection == 14
goto_if_false @DSKOOL_20041

:DSKOOL_18352
gosub @DSKOOL_29940

:DSKOOL_18359
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = create_car 597 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_freebies_in_vehicle $instructor_car {state} False
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 10.0
$dummy_car1 = create_car 597 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
56@ = create_random_char_as_driver $dummy_car1
set_car_cruise_speed $dummy_car1 {maxSpeed} 0.0
59@ = create_object #AD_ROADMARK2 {x} -2045.0 {y} -177.5 {z} 34.35
set_object_heading 59@ {heading} 180.0
57@ = create_object #AD_ROADMARK2 {x} -2057.0 {y} -177.5 {z} 34.35
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -12.0 {yOffset} -4.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 100.0 {zOffset} 0.0
if 
  34@ == 0
goto_if_false @DSKOOL_18698
set_fixed_camera_position -2047.0 {y} -220.2 {z} 36.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2050.2 {y} -193.9 {z} 32.5 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_18696
55@ = create_char_inside_car $instructor_car {pedType} PedType.Mission1 {modelId} 281

:DSKOOL_18696
return 

:DSKOOL_18698
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_35' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_18739
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_18774
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_18774
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_18806
goto @DSKOOL_24457

:DSKOOL_18806
if 
  $car_started == 0
goto_if_false @DSKOOL_18888
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_18874
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_35' {time} 5000 {flag} 4

:DSKOOL_18874
gosub @DSKOOL_30935
goto @DSKOOL_20034

:DSKOOL_18888
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_20034
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_20034
if 
  not is_car_in_area_2d $dummy_car1 {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_18964
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_18964
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_19008
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_19008
$instructor_car_heading = get_car_heading $dummy_car1
if or
  $instructor_car_heading > 340.0
  20.0 > $instructor_car_heading
goto_if_false @DSKOOL_19061
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_19061
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_20034
freeze_car_position $dummy_car1 {state} True
gosub @DSKOOL_31289
$perfect_positionx, $perfect_positiony, $perfect_positionz = get_car_coordinates $dummy_car1
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 4.0
goto_if_false @DSKOOL_19242
if 
  11.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_19228
$players_distance_from_perfectpos -= 4.0
$players_distance_from_perfectpos *= 14.14
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_19235

:DSKOOL_19228
$position_score = 0

:DSKOOL_19235
goto @DSKOOL_19249

:DSKOOL_19242
$position_score = 100

:DSKOOL_19249
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = get_car_heading $dummy_car1
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_19305
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19305
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_19338
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19338
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_19381
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_19381
$heading_score = 100

:DSKOOL_19381
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_19468
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_19468
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_19598

:DSKOOL_19468
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_19513
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_19513
$heading_score = 100

:DSKOOL_19513
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_19598
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_19598
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_19598

:DSKOOL_19598
if 
  1 > $heading_score
goto_if_false @DSKOOL_19623
$heading_score = 0

:DSKOOL_19623
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_19671
$overall_score = 0

:DSKOOL_19671
gosub @DSKOOL_31483
if 
  3 > $player_car_damage
goto_if_false @DSKOOL_19703
$player_car_damage = 0

:DSKOOL_19703
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_pittechnique_best_score
goto_if_false @DSKOOL_19782
set_lvar_int_to_var_int 47@ = $f1_pittechnique_best_score
set_var_int_to_var_int $f1_pittechnique_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_19789

:DSKOOL_19782
45@ = 0

:DSKOOL_19789
if 
  $f1_which_missions_are_open_flag == 14
goto_if_false @DSKOOL_19853
if 
  $overall_score > 69
goto_if_false @DSKOOL_19853
41@ = 2
$f1_which_missions_are_open_flag = 15
$instructor_car_dead_flag = 2
50@ = 15

:DSKOOL_19853
TIMERA = 0

:DSKOOL_19860
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_19920
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_19920
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_19920
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_19959
goto @DSKOOL_19966

:DSKOOL_19959
goto @DSKOOL_19860

:DSKOOL_19966
gosub @DSKOOL_34872
delete_car $dummy_car1
delete_object 59@
delete_object 57@
delete_char 56@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_20027
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_20034

:DSKOOL_20027
goto @DSKOOL_18352

:DSKOOL_20034
goto @DSKOOL_18739

:DSKOOL_20041
if 
  $mission_selection == 15
goto_if_false @DSKOOL_22693

:DSKOOL_20059
gosub @DSKOOL_29940

:DSKOOL_20066
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy += 20.0
$instructor_car = create_car 429 {x} $perfect_positionx {y} $car_posy {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_car_can_be_visibly_damaged $instructor_car {state} False
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 55.0
$perfect_heading = 90.0
57@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_object_heading 57@ {heading} 180.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = create_car 411 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
freeze_car_position $dummy_car1 {state} True
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 80.0
$dummy_car2 = create_car 411 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car2 {heading} $perfect_heading
freeze_car_position $dummy_car2 {state} True
if 
  34@ == 0
goto_if_false @DSKOOL_20399
set_fixed_camera_position -2061.2 {y} -158.9 {z} 37.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2040.3 {y} -197.0 {z} 35.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_20397
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_20397
return 

:DSKOOL_20399
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_33' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_20440
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_20475
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_20475
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_20507
goto @DSKOOL_24457

:DSKOOL_20507
if 
  $car_started == 0
goto_if_false @DSKOOL_20589
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_20575
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_33' {time} 5000 {flag} 4

:DSKOOL_20575
gosub @DSKOOL_30935
goto @DSKOOL_22686

:DSKOOL_20589
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31255
if 
  $lap_counter == 0
goto_if_false @DSKOOL_20685
if 
  is_car_in_area_3d $instructor_car {leftBottomX} -2047.0 {leftBottomY} -186.0 {leftBottomZ} 37.2 {rightTopX} -2054.0 {rightTopY} -190.0 {rightTopZ} 39.0 {drawSphere} False
goto_if_false @DSKOOL_20685
$lap_counter = 1

:DSKOOL_20685
if 
  $lap_counter == 1
goto_if_false @DSKOOL_20765
set_car_health $instructor_car {health} 1000
if 
  not is_car_in_air_proper $instructor_car
goto_if_false @DSKOOL_20765
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_20765
set_car_health $instructor_car {health} 700
set_car_can_be_visibly_damaged $instructor_car {state} True
$lap_counter = 2

:DSKOOL_20765
if 
  not is_car_in_air_proper $instructor_car
goto_if_false @DSKOOL_20804
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_20804
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_20804
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -100.0 {rightTopX} -2058.0 {rightTopY} -280.0 {drawSphere} False
goto_if_false @DSKOOL_20849
set_player_control $player1 {state} False

:DSKOOL_20849
$instructor_car_heading = get_car_heading $instructor_car
if or
  $instructor_car_heading > 200.0
  160.0 > $instructor_car_heading
goto_if_false @DSKOOL_20898
$variableb = 1.0

:DSKOOL_20898
36@ = get_car_roll $instructor_car
if 
  37@ == 0
goto_if_false @DSKOOL_20980
if 
  36@ > 5.0
goto_if_false @DSKOOL_20952
38@ = 1

:DSKOOL_20952
if 
  -5.0 > 36@
goto_if_false @DSKOOL_20980
38@ = 2

:DSKOOL_20980
if 
  38@ == 1
goto_if_false @DSKOOL_21319
if 
  37@ == 0
goto_if_false @DSKOOL_21044
if 
  36@ > 90.0
goto_if_false @DSKOOL_21044
37@ = 1

:DSKOOL_21044
if 
  37@ == 1
goto_if_false @DSKOOL_21090
if 
  36@ > 170.0
goto_if_false @DSKOOL_21090
37@ = 2

:DSKOOL_21090
if 
  37@ == 2
goto_if_false @DSKOOL_21157
if 
  0.0 > 36@
goto_if_false @DSKOOL_21157
if 
  36@ > -170.0
goto_if_false @DSKOOL_21157
37@ = 3

:DSKOOL_21157
if 
  37@ == 3
goto_if_false @DSKOOL_21252
if 
  0.0 > 36@
goto_if_false @DSKOOL_21224
if 
  36@ > -90.0
goto_if_false @DSKOOL_21224
37@ = 4

:DSKOOL_21224
if 
  36@ > 10.0
goto_if_false @DSKOOL_21252
37@ = 0

:DSKOOL_21252
if 
  37@ == 4
goto_if_false @DSKOOL_21319
if 
  0.0 > 36@
goto_if_false @DSKOOL_21319
if 
  36@ > -5.0
goto_if_false @DSKOOL_21319
37@ = 5

:DSKOOL_21319
if 
  38@ == 2
goto_if_false @DSKOOL_21658
if 
  37@ == 0
goto_if_false @DSKOOL_21383
if 
  -90.0 > 36@
goto_if_false @DSKOOL_21383
37@ = 1

:DSKOOL_21383
if 
  37@ == 1
goto_if_false @DSKOOL_21429
if 
  -170.0 > 36@
goto_if_false @DSKOOL_21429
37@ = 2

:DSKOOL_21429
if 
  37@ == 2
goto_if_false @DSKOOL_21496
if 
  36@ > 0.0
goto_if_false @DSKOOL_21496
if 
  170.0 > 36@
goto_if_false @DSKOOL_21496
37@ = 3

:DSKOOL_21496
if 
  37@ == 3
goto_if_false @DSKOOL_21591
if 
  36@ > 0.0
goto_if_false @DSKOOL_21563
if 
  90.0 > 36@
goto_if_false @DSKOOL_21563
37@ = 4

:DSKOOL_21563
if 
  -10.0 > 36@
goto_if_false @DSKOOL_21591
37@ = 0

:DSKOOL_21591
if 
  37@ == 4
goto_if_false @DSKOOL_21658
if 
  36@ > 0.0
goto_if_false @DSKOOL_21658
if 
  5.0 > 36@
goto_if_false @DSKOOL_21658
37@ = 5

:DSKOOL_21658
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31289
if 
  37@ == 5
goto_if_false @DSKOOL_21706
$position_score = 100

:DSKOOL_21706
if 
  37@ == 4
goto_if_false @DSKOOL_21731
$position_score = 80

:DSKOOL_21731
if 
  37@ == 3
goto_if_false @DSKOOL_21756
$position_score = 60

:DSKOOL_21756
if 
  37@ == 2
goto_if_false @DSKOOL_21781
$position_score = 40

:DSKOOL_21781
if 
  37@ == 1
goto_if_false @DSKOOL_21806
$position_score = 20

:DSKOOL_21806
if 
  37@ == 0
goto_if_false @DSKOOL_21831
$position_score = 0

:DSKOOL_21831
if 
  $lap_counter == 0
goto_if_false @DSKOOL_21856
$position_score = 0

:DSKOOL_21856
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_21879
$position_score = 0

:DSKOOL_21879
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -215.0 {rightTopX} -2058.0 {rightTopY} -280.0 {drawSphere} False
goto_if_false @DSKOOL_21924
$position_score = 0

:DSKOOL_21924
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_21972
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_21972
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_22005
$heading_score = 100
goto @DSKOOL_22255

:DSKOOL_22005
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_22038
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_22038
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_22108
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_22108
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_22255

:DSKOOL_22108
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_22153
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_22153
$heading_score = 100

:DSKOOL_22153
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_22255
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_22255
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_22255

:DSKOOL_22255
if 
  1 > $heading_score
goto_if_false @DSKOOL_22280
$heading_score = 0

:DSKOOL_22280
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_22328
$overall_score = 0

:DSKOOL_22328
gosub @DSKOOL_31483
if 
  2 > $player_car_damage
goto_if_false @DSKOOL_22360
$player_car_damage = 0

:DSKOOL_22360
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_alleyoop_best_score
goto_if_false @DSKOOL_22439
set_lvar_int_to_var_int 47@ = $f1_alleyoop_best_score
set_var_int_to_var_int $f1_alleyoop_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_22446

:DSKOOL_22439
45@ = 0

:DSKOOL_22446
if 
  $f1_which_missions_are_open_flag == 15
goto_if_false @DSKOOL_22510
if 
  $overall_score > 69
goto_if_false @DSKOOL_22510
41@ = 2
$f1_which_missions_are_open_flag = 16
$instructor_car_dead_flag = 2
50@ = 16

:DSKOOL_22510
TIMERA = 0

:DSKOOL_22517
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_22577
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_22577
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_22577
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_22616
goto @DSKOOL_22623

:DSKOOL_22616
goto @DSKOOL_22517

:DSKOOL_22623
gosub @DSKOOL_34872
delete_car $dummy_car1
delete_car $dummy_car2
delete_object 57@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_22679
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_22686

:DSKOOL_22679
goto @DSKOOL_20059

:DSKOOL_22686
goto @DSKOOL_20440

:DSKOOL_22693
if 
  $mission_selection == 16
goto_if_false @DSKOOL_24457

:DSKOOL_22711
gosub @DSKOOL_29940

:DSKOOL_22718
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$perfect_positionx = -2046.7
$perfect_positiony = -90.2
$perfect_positionz = 33.9
$cone_coords_x = -1724.3
$cone_coords_y = 1294.0
$cone_coords_z = 6.0
$instructor_car = create_car 506 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 0.0
set_car_watertight $instructor_car {state} True
if 
  34@ == 0
goto_if_false @DSKOOL_22931
set_fixed_camera_position -2017.3 {y} -45.0 {z} 34.41 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2039.0 {y} -100.3 {z} 37.4 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_22929
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_22929
return 

:DSKOOL_22931
clear_prints 
set_car_density_multiplier 0.5
load_scene $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
35@ = add_blip_for_coord $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z
42@ = create_checkpoint CheckpointType.TubeArrow {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {pointX} $perfect_positionx {pointY} $perfect_positiony {pointZ} $perfect_positionz {radius} 5.0
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_31' {time} 5000 {flag} 4
gosub @DSKOOL_30761

:DSKOOL_23034
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_23069
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_23069
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_23101
goto @DSKOOL_24457

:DSKOOL_23101
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_23126
goto @DSKOOL_24136

:DSKOOL_23126
if 
  $car_started == 0
goto_if_false @DSKOOL_23208
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_23194
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_31' {time} 5000 {flag} 4

:DSKOOL_23194
gosub @DSKOOL_30935
goto @DSKOOL_24450

:DSKOOL_23208
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_24450
if 
  $car_timer > 260000
goto_if_false @DSKOOL_23252
set_player_control $player1 {state} False

:DSKOOL_23252
if 
  $lap_counter == 0
goto_if_false @DSKOOL_23373
if 
  locate_car_3d $instructor_car {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DSKOOL_23373
remove_blip 35@
35@ = add_blip_for_coord $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
delete_checkpoint 42@
42@ = create_checkpoint CheckpointType.TubeEnd {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {pointX} $perfect_positionx {pointY} $perfect_positiony {pointZ} $perfect_positionz {radius} 5.0
$lap_counter = 1

:DSKOOL_23373
if 
  $lap_counter == 1
goto_if_false @DSKOOL_23445
if 
  locate_car_3d $instructor_car {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DSKOOL_23445
remove_blip 35@
$lap_counter = 2

:DSKOOL_23445
clear_prints 
if or
  is_car_stopped $instructor_car
  $lap_counter == 2
  is_car_in_water $instructor_car
  $car_timer >= 140000
goto_if_false @DSKOOL_24450
gosub @DSKOOL_31289
delete_checkpoint 42@
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  2 > $lap_counter
goto_if_false @DSKOOL_23607
$time_score = 0
goto @DSKOOL_23865

:DSKOOL_23607
if 
  100000 > $variablea
goto_if_false @DSKOOL_23635
$time_score = 100

:DSKOOL_23635
if 
  $variablea >= 100000
goto_if_false @DSKOOL_23736
if 
  120000 > $variablea
goto_if_false @DSKOOL_23736
set_var_int_to_var_int $variablec = $variablea
$variablec -= 99999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0015
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23736
if 
  $variablea >= 120000
goto_if_false @DSKOOL_23837
if 
  140000 > $variablea
goto_if_false @DSKOOL_23837
set_var_int_to_var_int $variablec = $variablea
$variablec -= 119999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0035
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23837
if 
  $variablea >= 140000
goto_if_false @DSKOOL_23865
$time_score = 0

:DSKOOL_23865
if 
  1 > $time_score
goto_if_false @DSKOOL_23890
$time_score = 0

:DSKOOL_23890
if 
  $time_score > 99
goto_if_false @DSKOOL_23915
$time_score = 100

:DSKOOL_23915
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31483
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_cityslicking_best_score
goto_if_false @DSKOOL_24009
set_lvar_int_to_var_int 47@ = $f1_cityslicking_best_score
set_var_int_to_var_int $f1_cityslicking_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_24016

:DSKOOL_24009
45@ = 0

:DSKOOL_24016
$lap_counter = 5
TIMERA = 0

:DSKOOL_24030
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_24090
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_24090
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_24090
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_24129
goto @DSKOOL_24136

:DSKOOL_24129
goto @DSKOOL_24030

:DSKOOL_24136
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24385
if 
  $f1_which_missions_are_open_flag == 16
goto_if_false @DSKOOL_24385
if 
  $overall_score > 69
goto_if_false @DSKOOL_24385
do_fade 500 {direction} Fade.Out

:DSKOOL_24197
if 
  get_fading_status 
goto_if_false @DSKOOL_24221
wait 0
goto @DSKOOL_24197

:DSKOOL_24221
set_area_visible 3
set_char_area_visible $scplayer {areaId} 3
clear_extra_colours True
request_collision -2031.1 {y} -118.2
load_scene -2031.1 {y} -118.2 {z} 1034.2
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2029.7 {y} -115.5 {z} 1034.2
set_char_heading $scplayer {heading} 0.0
clear_char_tasks_immediately $scplayer
delete_car $instructor_car
clear_area -2051.0 {y} -174.0 {z} 34.0 {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DSKOOL_24354
if 
  get_fading_status 
goto_if_false @DSKOOL_24378
wait 0
goto @DSKOOL_24354

:DSKOOL_24378
goto @DSKOOL_24495

:DSKOOL_24385
gosub @DSKOOL_34872
remove_blip 35@
delete_checkpoint 42@
set_car_density_multiplier 1.0
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_24443
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_24450

:DSKOOL_24443
goto @DSKOOL_22711

:DSKOOL_24450
goto @DSKOOL_23034

:DSKOOL_24457
clear_prints 
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_24493
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:DSKOOL_24493
return 

:DSKOOL_24495
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24616
remove_blip $dschool_contact_blip
$dschool_contact_blip = add_short_range_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} RadarSprite.School
change_blip_display $dschool_contact_blip {display} BlipDisplay.BlipOnly
switch_car_generator $f1_gold_car_gen {amount} 101
switch_car_generator $f1_chunky {amount} 101
clear_prints 
print_with_number_big 'DS_PASS' {num} 15 {duration} 5000 {style} TextStyle.Middle
increment_float_stat StatId.DrivingSkill {value} 40.0
play_mission_passed_tune 2
clear_wanted_level $player1
register_mission_passed 'FAR_1'
player_made_progress 1
$driving_test_passed = 1

:DSKOOL_24616
return 

:DSKOOL_24618
if 
  $s5_stingers_left == 0
goto_if_false @DSKOOL_24866
if 
  $f1_the360_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the180_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_whiprightterminate_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_popcontrol_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_burnlapright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_conecoilright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the90_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_wheelieweave_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_spinrightgo_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_pittechnique_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_alleyoop_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_cityslicking_best_score >= 70
goto_if_false @DSKOOL_24866
switch_car_generator $a51ventcover {amount} 101
$s5_stingers_left = 1

:DSKOOL_24866
if 
  $f1_bronze_award == 0
goto_if_false @DSKOOL_25114
if 
  $f1_the360_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the180_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_whiprightterminate_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_popcontrol_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_burnlapright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_conecoilright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the90_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_wheelieweave_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_spinrightgo_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_pittechnique_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_alleyoop_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_cityslicking_best_score >= 85
goto_if_false @DSKOOL_25114
switch_car_generator $5182 {amount} 101
$f1_bronze_award = 1

:DSKOOL_25114
if 
  $f1_silver_award == 0
goto_if_false @DSKOOL_25362
if 
  $f1_the360_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the180_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_whiprightterminate_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_popcontrol_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_burnlapright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_conecoilright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the90_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_wheelieweave_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_spinrightgo_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_pittechnique_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_alleyoop_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_cityslicking_best_score == 100
goto_if_false @DSKOOL_25362
switch_car_generator $f1_silver_car_gen {amount} 101
$f1_silver_award = 1

:DSKOOL_25362
clear_onscreen_timer $car_timer
use_text_commands False
release_weather 
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed #TRAFFICCONE
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 496
mark_model_as_no_longer_needed 411
mark_model_as_no_longer_needed 506
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed #TEMP_STINGER2
mark_model_as_no_longer_needed #GARYS_LUV_RAMP
mark_model_as_no_longer_needed #AD_JUMP
mark_model_as_no_longer_needed #AD_ROADMARK1
mark_model_as_no_longer_needed #AD_ROADMARK2
mark_model_as_no_longer_needed #AD_FINISH
switch_roads_back_to_original -2015.37 {leftBottomY} -76.08 {leftBottomZ} 10.0 {rightTopX} -2078.3 {rightTopY} -66.75 {rightTopZ} 50.0
allow_fixed_camera_collision False
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStop
activate_garage 'BODLAWN'
activate_garage 'MODLAST'
activate_garage 'MDSSFSE'
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_25576
activate_garage 'MDS1SFS'
activate_garage 'VECMOD'

:DSKOOL_25576
set_no_resprays False
if 
  not is_char_dead $scplayer
goto_if_false @DSKOOL_25603
shut_char_up_for_scripted_speech $scplayer {state} False

:DSKOOL_25603
shut_all_chars_up False
remove_texture_dictionary 
set_car_density_multiplier 1.0
display_hud True
display_radar True
remove_blip 35@
delete_checkpoint 42@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:DSKOOL_25654
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 44@
if 
  43@ == 1
goto_if_false @DSKOOL_25776
if 
  255 > 44@
goto_if_false @DSKOOL_25769
44@ += 5
if 
  44@ > 255
goto_if_false @DSKOOL_25762
44@ = 255

:DSKOOL_25762
goto @DSKOOL_25776

:DSKOOL_25769
43@ = 2

:DSKOOL_25776
if 
  43@ == 3
goto_if_false @DSKOOL_25858
if 
  44@ > 0
goto_if_false @DSKOOL_25851
44@ -= 5
if 
  0 > 44@
goto_if_false @DSKOOL_25844
44@ = 0

:DSKOOL_25844
goto @DSKOOL_25858

:DSKOOL_25851
43@ = 0

:DSKOOL_25858
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @DSKOOL_29878
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $mission_selection == 1
goto_if_false @DSKOOL_25970
display_text 322.0 {offsetTop} 31.0 {key} 'DS_P'
set_lvar_int_to_var_int 46@ = $f1_the360_best_score
gosub @DSKOOL_27643

:DSKOOL_25970
if 
  $mission_selection == 2
goto_if_false @DSKOOL_26024
display_text 322.0 {offsetTop} 31.0 {key} 'DS_O'
set_lvar_int_to_var_int 46@ = $f1_the180_best_score
gosub @DSKOOL_27643

:DSKOOL_26024
if 
  $mission_selection == 3
goto_if_false @DSKOOL_26078
display_text 322.0 {offsetTop} 31.0 {key} 'DS_I'
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27643

:DSKOOL_26078
if 
  $mission_selection == 4
goto_if_false @DSKOOL_26132
display_text 322.0 {offsetTop} 31.0 {key} 'DS_I'
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27643

:DSKOOL_26132
if 
  $mission_selection == 5
goto_if_false @DSKOOL_26186
display_text 322.0 {offsetTop} 31.0 {key} 'DS_F'
set_lvar_int_to_var_int 46@ = $f1_popcontrol_best_score
gosub @DSKOOL_27643

:DSKOOL_26186
if 
  $mission_selection == 6
goto_if_false @DSKOOL_26240
display_text 322.0 {offsetTop} 31.0 {key} 'DS_E'
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27643

:DSKOOL_26240
if 
  $mission_selection == 7
goto_if_false @DSKOOL_26294
display_text 322.0 {offsetTop} 31.0 {key} 'DS_E'
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27643

:DSKOOL_26294
if 
  $mission_selection == 8
goto_if_false @DSKOOL_26348
display_text 322.0 {offsetTop} 31.0 {key} 'DS_N'
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27643

:DSKOOL_26348
if 
  $mission_selection == 9
goto_if_false @DSKOOL_26402
display_text 322.0 {offsetTop} 31.0 {key} 'DS_N'
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27643

:DSKOOL_26402
if 
  $mission_selection == 10
goto_if_false @DSKOOL_26456
display_text 322.0 {offsetTop} 31.0 {key} 'DS_A'
set_lvar_int_to_var_int 46@ = $f1_the90_best_score
gosub @DSKOOL_27643

:DSKOOL_26456
if 
  $mission_selection == 11
goto_if_false @DSKOOL_26510
display_text 322.0 {offsetTop} 31.0 {key} 'DS_K'
set_lvar_int_to_var_int 46@ = $f1_wheelieweave_best_score
gosub @DSKOOL_27643

:DSKOOL_26510
if 
  $mission_selection == 12
goto_if_false @DSKOOL_26564
display_text 322.0 {offsetTop} 31.0 {key} 'DS_C'
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27643

:DSKOOL_26564
if 
  $mission_selection == 13
goto_if_false @DSKOOL_26618
display_text 322.0 {offsetTop} 31.0 {key} 'DS_C'
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27643

:DSKOOL_26618
if 
  $mission_selection == 14
goto_if_false @DSKOOL_26672
display_text 322.0 {offsetTop} 31.0 {key} 'DS_L'
set_lvar_int_to_var_int 46@ = $f1_pittechnique_best_score
gosub @DSKOOL_27643

:DSKOOL_26672
if 
  $mission_selection == 15
goto_if_false @DSKOOL_26726
display_text 322.0 {offsetTop} 31.0 {key} 'DS_J'
set_lvar_int_to_var_int 46@ = $f1_alleyoop_best_score
gosub @DSKOOL_27643

:DSKOOL_26726
if 
  $mission_selection == 16
goto_if_false @DSKOOL_26780
display_text 322.0 {offsetTop} 31.0 {key} 'DS_G'
set_lvar_int_to_var_int 46@ = $f1_cityslicking_best_score
gosub @DSKOOL_27643

:DSKOOL_26780
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 105.0 {offsetTop} 375.0 {key} 'DS1_53'
if 
  39@ <> 1
goto_if_false @DSKOOL_27055
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 105.0 {offsetTop} 325.0 {key} 'DS1_54'
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_26997
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 105.0 {offsetTop} 350.0 {key} 'DS1_52'
goto @DSKOOL_27055

:DSKOOL_26997
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Radar
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 105.0 {offsetTop} 350.0 {key} 'DS1_52'

:DSKOOL_27055
gosub @DSKOOL_29700
set_text_scale 1.45 {heightScale} 2.0
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 70.0 {offsetTop} 372.0 {key} 'DS1_63'
if 
  39@ <> 1
goto_if_false @DSKOOL_27389
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 1.45 {heightScale} 2.0
display_text 70.0 {offsetTop} 322.0 {key} 'DS1_64'
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_27301
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'DS1_62'

:DSKOOL_27301
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_27389
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'DS1_62'

:DSKOOL_27389
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:DSKOOL_27643
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
if 
  70 > 46@
goto_if_false @DSKOOL_27705
45@ = 1

:DSKOOL_27705
if 
  46@ > 69
goto_if_false @DSKOOL_27748
if 
  85 > 46@
goto_if_false @DSKOOL_27748
45@ = 2

:DSKOOL_27748
if 
  46@ > 84
goto_if_false @DSKOOL_27791
if 
  100 > 46@
goto_if_false @DSKOOL_27791
45@ = 3

:DSKOOL_27791
if 
  46@ == 100
goto_if_false @DSKOOL_27816
45@ = 4

:DSKOOL_27816
gosub @DSKOOL_29700
set_text_right_justify False
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  45@ > 1
goto_if_false @DSKOOL_27906
display_text_with_number 217.0 {offsetTop} 75.0 {key} 'DS1_58' {num} 46@
goto @DSKOOL_28101

:DSKOOL_27906
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_27945
display_text 175.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_27945
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_27984
display_text 83.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_27984
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @DSKOOL_28023
display_text 89.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28023
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @DSKOOL_28062
display_text 147.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28062
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DSKOOL_28101
display_text 65.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28101
if 
  45@ > 1
goto_if_false @DSKOOL_28206
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @DSKOOL_28286

:DSKOOL_28206
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:DSKOOL_28286
set_sprites_draw_before_fade True
if 
  45@ == 1
goto_if_false @DSKOOL_28463
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_28369
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
goto @DSKOOL_28405

:DSKOOL_28369
draw_sprite 10 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_28405
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 266.0 {offsetTop} 375.0 {key} 'DS1_68'

:DSKOOL_28463
if 
  45@ == 2
goto_if_false @DSKOOL_28575
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 280.0 {offsetTop} 375.0 {key} 'DS1_57'

:DSKOOL_28575
if 
  45@ == 3
goto_if_false @DSKOOL_28687
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 283.0 {offsetTop} 375.0 {key} 'DS1_56'

:DSKOOL_28687
if 
  45@ == 4
goto_if_false @DSKOOL_28799
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 294.0 {offsetTop} 375.0 {key} 'DS1_55'

:DSKOOL_28799
return 

:DSKOOL_28801
if 
  34@ == 0
goto_if_false @DSKOOL_29126
if 
  $mission_selection == 1
goto_if_false @DSKOOL_28844
gosub @DSKOOL_3843

:DSKOOL_28844
if 
  $mission_selection == 2
goto_if_false @DSKOOL_28869
gosub @DSKOOL_5416

:DSKOOL_28869
if 
  $mission_selection == 4
goto_if_false @DSKOOL_28894
gosub @DSKOOL_6742

:DSKOOL_28894
if 
  $mission_selection == 5
goto_if_false @DSKOOL_28919
gosub @DSKOOL_8347

:DSKOOL_28919
if 
  $mission_selection == 7
goto_if_false @DSKOOL_28944
gosub @DSKOOL_9857

:DSKOOL_28944
if 
  $mission_selection == 9
goto_if_false @DSKOOL_28969
gosub @DSKOOL_11959

:DSKOOL_28969
if 
  $mission_selection == 10
goto_if_false @DSKOOL_28994
gosub @DSKOOL_13448

:DSKOOL_28994
if 
  $mission_selection == 11
goto_if_false @DSKOOL_29019
gosub @DSKOOL_15346

:DSKOOL_29019
if 
  $mission_selection == 13
goto_if_false @DSKOOL_29044
gosub @DSKOOL_16957

:DSKOOL_29044
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29069
gosub @DSKOOL_18359

:DSKOOL_29069
if 
  $mission_selection == 15
goto_if_false @DSKOOL_29094
gosub @DSKOOL_20066

:DSKOOL_29094
if 
  $mission_selection == 16
goto_if_false @DSKOOL_29119
gosub @DSKOOL_22718

:DSKOOL_29119
34@ = 1

:DSKOOL_29126
if 
  34@ == 1
goto_if_false @DSKOOL_29363
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29297
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29290
if 
  not has_car_recording_been_loaded 14
goto_if_false @DSKOOL_29197
request_car_recording 14

:DSKOOL_29197
if 
  not has_car_recording_been_loaded 3
goto_if_false @DSKOOL_29216
request_car_recording 3

:DSKOOL_29216
if 
  has_car_recording_been_loaded 14
goto_if_false @DSKOOL_29290
if 
  has_car_recording_been_loaded 3
goto_if_false @DSKOOL_29290
start_playback_recorded_car $instructor_car {path} 14
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_29276
start_playback_recorded_car $dummy_car1 {path} 3

:DSKOOL_29276
43@ = 3
34@ = 2

:DSKOOL_29290
goto @DSKOOL_29363

:DSKOOL_29297
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29363
if 
  not has_car_recording_been_loaded $mission_selection
goto_if_false @DSKOOL_29341
request_car_recording $mission_selection
goto @DSKOOL_29363

:DSKOOL_29341
start_playback_recorded_car $instructor_car {path} $mission_selection
43@ = 3
34@ = 2

:DSKOOL_29363
if 
  34@ == 2
goto_if_false @DSKOOL_29448
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29434
if 
  not is_playback_going_on_for_car $instructor_car
goto_if_false @DSKOOL_29427
43@ = 1
34@ = 4

:DSKOOL_29427
goto @DSKOOL_29448

:DSKOOL_29434
43@ = 1
34@ = 4

:DSKOOL_29448
if 
  34@ == 3
goto_if_false @DSKOOL_29480
43@ = 1
34@ = 4

:DSKOOL_29480
if 
  34@ == 4
goto_if_false @DSKOOL_29698
if 
  43@ == 2
goto_if_false @DSKOOL_29698
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29555
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_29555
stop_playback_recorded_car $dummy_car1

:DSKOOL_29555
stop_playback_recorded_car $instructor_car
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_car $instructor_car
delete_object 57@
delete_object 58@
delete_object 59@
remove_car_recording 1
remove_car_recording 2
remove_car_recording 3
remove_car_recording 4
remove_car_recording 5
remove_car_recording 7
remove_car_recording 9
remove_car_recording 10
remove_car_recording 11
remove_car_recording 13
remove_car_recording 14
remove_car_recording 15
remove_car_recording 16
gosub @DSKOOL_35156
34@ = 0

:DSKOOL_29698
return 

:DSKOOL_29700
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DSKOOL_29762
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DSKOOL_29820
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:DSKOOL_29878
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DSKOOL_29940
do_fade 500 {direction} Fade.Out

:DSKOOL_29947
if 
  get_fading_status 
goto_if_false @DSKOOL_29971
wait 0
goto @DSKOOL_29947

:DSKOOL_29971
if 
  $mission_selection == 16
goto_if_false @DSKOOL_30010
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
goto @DSKOOL_30024

:DSKOOL_30010
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:DSKOOL_30024
restore_camera_jumpcut 
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnySf
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_extra_colours False
return 

:DSKOOL_30049
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
$instructor_car_speed = 0.0
$instructor_car_heading = 0.0
$instructor_car_heading_int = 0
$instructor_car_health = 0
$instructor_car_dead_flag = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = get_ground_z_for_3d_coord $perfect_positionx {y} $perfect_positiony {z} 50.0
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
$total_instructor_car_health = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
36@ = 0.0
37@ = 0
38@ = 0
41@ = 0
40@ = 0
return 

:DSKOOL_30761
warp_char_into_car $scplayer {vehicle} $instructor_car
lock_car_doors $instructor_car {lockStatus} CarLock.LockedPlayerInside
wait 0
restore_camera_jumpcut 
set_camera_behind_player 
clear_wanted_level $player1
do_fade 500 {direction} Fade.In

:DSKOOL_30796
if 
  get_fading_status 
goto_if_false @DSKOOL_30820
wait 0
goto @DSKOOL_30796

:DSKOOL_30820
set_player_control $player1 {state} True
return 

:DSKOOL_30829
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_30896
if 
  $car_started == 1
goto_if_false @DSKOOL_30889
if 
  not is_char_in_car $scplayer {vehicle} $instructor_car
goto_if_false @DSKOOL_30889
$instructor_car_dead_flag = 1

:DSKOOL_30889
goto @DSKOOL_30933

:DSKOOL_30896
if 
  is_car_in_water $instructor_car
goto_if_false @DSKOOL_30926
$instructor_car_dead_flag = 2
goto @DSKOOL_30933

:DSKOOL_30926
$instructor_car_dead_flag = 1

:DSKOOL_30933
return 

:DSKOOL_30935
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_30978
if 
  is_char_in_car $scplayer {vehicle} $instructor_car
goto_if_false @DSKOOL_30978
$instructor_car_speed = get_car_speed $instructor_car

:DSKOOL_30978
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DSKOOL_31253
if 
  $instructor_car_speed > 0.1
goto_if_false @DSKOOL_31253
clear_prints 
if or
  $mission_selection == 10
  $mission_selection == 12
  $mission_selection == 13
  $mission_selection == 5
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_31091
display_onscreen_timer $car_timer {direction} TimerDirection.Down
set_timer_beep_countdown_time $car_timer {timeInSec} 3

:DSKOOL_31091
if or
  $mission_selection == 15
  $mission_selection == 8
  $mission_selection == 9
  $mission_selection == 2
  $mission_selection == 1
goto_if_false @DSKOOL_31151
display_onscreen_timer $car_timer {direction} TimerDirection.Down
set_timer_beep_countdown_time $car_timer {timeInSec} 3

:DSKOOL_31151
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_31190
display_onscreen_timer $car_timer {direction} TimerDirection.Up

:DSKOOL_31190
if 
  $mission_selection == 14
goto_if_false @DSKOOL_31246
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_31246
set_car_forward_speed $dummy_car1 {forwardSpeed} 6.0
set_car_temp_action $dummy_car1 {actionId} TempAction.GoForward {time} 864000000

:DSKOOL_31246
$car_started = 1

:DSKOOL_31253
return 

:DSKOOL_31255
if 
  $car_timer == 0
goto_if_false @DSKOOL_31287
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_31287
return 

:DSKOOL_31289
set_player_control $player1 {state} False
freeze_car_position $instructor_car {state} True
freeze_onscreen_timer True
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStart
return 

:DSKOOL_31329
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_31466
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_31452
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_31459

:DSKOOL_31452
$position_score = 0

:DSKOOL_31459
goto @DSKOOL_31473

:DSKOOL_31466
$position_score = 100

:DSKOOL_31473
add_int_var_to_int_var $overall_score += $position_score
return 

:DSKOOL_31483
$instructor_car_health = get_car_health $instructor_car
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
if 
  $mission_selection == 16
goto_if_false @DSKOOL_31539
$player_car_damage /= 10
goto @DSKOOL_31546

:DSKOOL_31539
$player_car_damage /= 2

:DSKOOL_31546
if 
  $player_car_damage > 100
goto_if_false @DSKOOL_31571
$player_car_damage = 100

:DSKOOL_31571
return 

:DSKOOL_31573
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_31664

:DSKOOL_31605
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_31664
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31650
$total_car_damage += 10

:DSKOOL_31650
$trafficcone_counter += 1
goto @DSKOOL_31605

:DSKOOL_31664
if 
  $mission_selection == 2
goto_if_false @DSKOOL_31741

:DSKOOL_31682
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_31741
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31727
$total_car_damage += 10

:DSKOOL_31727
$trafficcone_counter += 1
goto @DSKOOL_31682

:DSKOOL_31741
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_31825

:DSKOOL_31766
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_31825
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31811
$total_car_damage += 10

:DSKOOL_31811
$trafficcone_counter += 1
goto @DSKOOL_31766

:DSKOOL_31825
if 
  $mission_selection == 5
goto_if_false @DSKOOL_31902

:DSKOOL_31843
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_31902
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31888
$total_car_damage += 10

:DSKOOL_31888
$trafficcone_counter += 1
goto @DSKOOL_31843

:DSKOOL_31902
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_31986

:DSKOOL_31927
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_31986
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31972
$total_car_damage += 10

:DSKOOL_31972
$trafficcone_counter += 1
goto @DSKOOL_31927

:DSKOOL_31986
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_32070

:DSKOOL_32011
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_32070
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32056
$total_car_damage += 10

:DSKOOL_32056
$trafficcone_counter += 1
goto @DSKOOL_32011

:DSKOOL_32070
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_32154

:DSKOOL_32095
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_32154
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32140
$total_car_damage += 10

:DSKOOL_32140
$trafficcone_counter += 1
goto @DSKOOL_32095

:DSKOOL_32154
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @DSKOOL_32186
$total_car_damage = 100

:DSKOOL_32186
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:DSKOOL_32196
if 
  1 > $overall_score
goto_if_false @DSKOOL_32221
$overall_score = 0

:DSKOOL_32221
clear_prints 
return 

:DSKOOL_32225
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_32676
if 
  $camera_position_int == 0
goto_if_false @DSKOOL_32421
$camera_positionx, $camera_positiony, $camera_positionz = get_car_coordinates $instructor_car
$camera_positionz += 5.0
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 15.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
60@ = get_player_in_car_camera_mode 
if or
  60@ == 1
  60@ == 2
  60@ == 3
goto_if_false @DSKOOL_32391
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
goto @DSKOOL_32400

:DSKOOL_32391
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:DSKOOL_32400
set_interpolation_parameters 50.0 {time} 2000
allow_fixed_camera_collision True
$camera_position_int = 1

:DSKOOL_32421
if 
  TIMERA > 3000
goto_if_false @DSKOOL_32558
if 
  6000 > TIMERA
goto_if_false @DSKOOL_32558
if 
  $camera_position_int == 1
goto_if_false @DSKOOL_32558
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 15.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 2

:DSKOOL_32558
if 
  TIMERA > 6000
goto_if_false @DSKOOL_32676
if 
  $camera_position_int == 2
goto_if_false @DSKOOL_32676
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -15.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 3

:DSKOOL_32676
return 

:DSKOOL_32678
45@ = 0
if 
  $overall_score > 69
goto_if_false @DSKOOL_32787
if 
  85 > $overall_score
goto_if_false @DSKOOL_32787
if and
  47@ > 69
  85 > 47@
goto_if_false @DSKOOL_32760
45@ = 0
goto @DSKOOL_32787

:DSKOOL_32760
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 2

:DSKOOL_32787
if 
  $overall_score > 84
goto_if_false @DSKOOL_32889
if 
  100 > $overall_score
goto_if_false @DSKOOL_32889
if and
  47@ > 84
  100 > 47@
goto_if_false @DSKOOL_32862
45@ = 0
goto @DSKOOL_32889

:DSKOOL_32862
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 3

:DSKOOL_32889
if 
  $overall_score == 100
goto_if_false @DSKOOL_32976
if 
  47@ == 100
goto_if_false @DSKOOL_32939
45@ = 0
goto @DSKOOL_32976

:DSKOOL_32939
increment_float_stat StatId.DrivingSkill {value} 30.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 4

:DSKOOL_32976
return 

:DSKOOL_32978
display_hud False
display_radar False
clear_prints 
clear_onscreen_timer $car_timer
if 
  2 > 45@
goto_if_false @DSKOOL_33051
draw_window 160.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DS1_65' {zIndex} 3
goto @DSKOOL_33084

:DSKOOL_33051
draw_window 160.0 {leftTopY} 200.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:DSKOOL_33084
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_33392
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 255.0 {key} 'DS1_72'
gosub @DSKOOL_29762
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $overall_millisecs > 9
goto_if_false @DSKOOL_33251
display_text_with_2_numbers 450.0 {offsetTop} 255.0 {key} 'DS1_21' {num1} $overall_secs {num2} $overall_millisecs
goto @DSKOOL_33278

:DSKOOL_33251
display_text_with_2_numbers 450.0 {offsetTop} 255.0 {key} 'DS1_22' {num1} $overall_secs {num2} $overall_millisecs

:DSKOOL_33278
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 275.0 {key} 'DS1_23'
gosub @DSKOOL_29762
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 275.0 {key} 'DS1_69' {num} $time_score
goto @DSKOOL_33606

:DSKOOL_33392
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 255.0 {key} 'DS1_5'
gosub @DSKOOL_29762
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 255.0 {key} 'DS1_69' {num} $heading_score
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 275.0 {key} 'DS1_6'
gosub @DSKOOL_29762
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 275.0 {key} 'DS1_69' {num} $position_score

:DSKOOL_33606
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 295.0 {key} 'DS1_7'
gosub @DSKOOL_29762
set_text_right_justify True
51@, 52@, 53@, 54@ = get_hud_colour 0
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text_with_number 450.0 {offsetTop} 295.0 {key} 'DS1_70' {num} $total_car_damage
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 315.0 {key} 'DS1_10'
gosub @DSKOOL_29762
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 315.0 {key} 'DS1_69' {num} $overall_score
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34196
if 
  45@ > 0
goto_if_false @DSKOOL_34196
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 199.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 199.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  45@ == 2
goto_if_false @DSKOOL_34005
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34005
if 
  45@ == 3
goto_if_false @DSKOOL_34059
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34059
if 
  45@ == 4
goto_if_false @DSKOOL_34113
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34113
gosub @DSKOOL_29878
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 323.0 {offsetTop} 65.0 {key} 'DS1_47'

:DSKOOL_34196
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34288
gosub @DSKOOL_29878
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'DS1_46'

:DSKOOL_34288
if 
  41@ <> 2
goto_if_false @DSKOOL_34593
gosub @DSKOOL_29762
set_text_scale 1.45 {heightScale} 2.0
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 342.0 {key} 'DS1_64'
gosub @DSKOOL_29762
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 215.0 {offsetTop} 345.0 {key} 'DS1_66'
gosub @DSKOOL_29762
set_text_scale 1.45 {heightScale} 2.0
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 362.0 {key} 'DS1_63'
gosub @DSKOOL_29762
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 215.0 {offsetTop} 365.0 {key} 'DS1_53'
goto @DSKOOL_34787

:DSKOOL_34593
gosub @DSKOOL_29762
set_text_scale 0.52 {heightScale} 1.45
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 180.0 {offsetTop} 345.0 {key} 'DS1_71'
gosub @DSKOOL_29762
set_text_scale 1.45 {heightScale} 2.0
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 362.0 {key} 'DS1_64'
gosub @DSKOOL_29762
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 215.0 {offsetTop} 365.0 {key} 'DS1_66'

:DSKOOL_34787
return 

:DSKOOL_34789
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DSKOOL_34845
if 
  $button_pressed == 1
goto_if_false @DSKOOL_34838
$button_pressed = 0
$finished_watching_scores = 1

:DSKOOL_34838
goto @DSKOOL_34870

:DSKOOL_34845
if 
  $button_pressed == 0
goto_if_false @DSKOOL_34870
$button_pressed = 1

:DSKOOL_34870
return 

:DSKOOL_34872
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStop
clear_prints 
do_fade 500 {direction} Fade.Out

:DSKOOL_34901
if 
  get_fading_status 
goto_if_false @DSKOOL_34925
wait 0
goto @DSKOOL_34901

:DSKOOL_34925
clear_prints 
clear_this_big_print 'DS1_46'
clear_this_big_print 'DS1_47'
allow_fixed_camera_collision False
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_35043
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @DSKOOL_35022
warp_char_from_car_to_coord $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z
goto @DSKOOL_35036

:DSKOOL_35022
set_char_coordinates $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z

:DSKOOL_35036
goto @DSKOOL_35094

:DSKOOL_35043
if 
  is_char_in_any_car $scplayer
goto_if_false @DSKOOL_35080
warp_char_from_car_to_coord $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z
goto @DSKOOL_35094

:DSKOOL_35080
set_char_coordinates $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z

:DSKOOL_35094
clear_prints 
wait 0
clear_prints 
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
wait 0
clear_prints 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
display_hud True
display_radar True
return 

:DSKOOL_35156
clear_prints 
$trafficcone_counter = 0

:DSKOOL_35165
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35208
clear_prints 
delete_object $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35165

:DSKOOL_35208
return 

:DSKOOL_35210
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_35294

:DSKOOL_35235
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_35294
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35235

:DSKOOL_35294
if 
  $mission_selection == 2
goto_if_false @DSKOOL_35371

:DSKOOL_35312
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_35371
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35312

:DSKOOL_35371
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_35455

:DSKOOL_35396
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35455
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35396

:DSKOOL_35455
if 
  $mission_selection == 5
goto_if_false @DSKOOL_35532

:DSKOOL_35473
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_35532
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35473

:DSKOOL_35532
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_35616

:DSKOOL_35557
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_35616
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35557

:DSKOOL_35616
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_35700

:DSKOOL_35641
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_35700
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35641

:DSKOOL_35700
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_35784

:DSKOOL_35725
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_35784
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35725

:DSKOOL_35784
if 
  $mission_selection == 1
goto_if_false @DSKOOL_36488
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_35877
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @DSKOOL_35960
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_35960
if 
  $where_to_place_cones == 24.0
goto_if_false @DSKOOL_35995
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_35995
if 
  $where_to_place_cones == 48.0
goto_if_false @DSKOOL_36030
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36030
if 
  $where_to_place_cones == 72.0
goto_if_false @DSKOOL_36065
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36065
if 
  $where_to_place_cones == 96.0
goto_if_false @DSKOOL_36100
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36100
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36135
set_object_coordinates $trafficcones[5] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36135
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_36170
set_object_coordinates $trafficcones[6] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36170
if 
  $where_to_place_cones == 168.0
goto_if_false @DSKOOL_36205
set_object_coordinates $trafficcones[7] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36205
if 
  $where_to_place_cones == 192.0
goto_if_false @DSKOOL_36240
set_object_coordinates $trafficcones[8] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36240
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_36275
set_object_coordinates $trafficcones[9] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36275
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_36310
set_object_coordinates $trafficcones[10] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36310
if 
  $where_to_place_cones == 264.0
goto_if_false @DSKOOL_36345
set_object_coordinates $trafficcones[11] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36345
if 
  $where_to_place_cones == 288.0
goto_if_false @DSKOOL_36380
set_object_coordinates $trafficcones[12] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36380
if 
  $where_to_place_cones == 312.0
goto_if_false @DSKOOL_36415
set_object_coordinates $trafficcones[13] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36415
if 
  $where_to_place_cones == 336.0
goto_if_false @DSKOOL_36450
set_object_coordinates $trafficcones[14] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36450
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @DSKOOL_36488
goto @DSKOOL_35877

:DSKOOL_36488
if 
  $mission_selection == 2
goto_if_false @DSKOOL_37377
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 86.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_36581
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36664
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36664
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_36699
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36699
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_36734
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36734
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_36769
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36769
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_36804
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36804
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_36842
goto @DSKOOL_36581

:DSKOOL_36842
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 78.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 78.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 86.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 86.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 78.0 {zOffset} -0.5
$trafficcone_counter = 7

:DSKOOL_37263
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_37377
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_37363
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37363
$trafficcone_counter += 1
goto @DSKOOL_37263

:DSKOOL_37377
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_37868
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -20.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_37754
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_37868
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_37854
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37854
$trafficcone_counter += 1
goto @DSKOOL_37754

:DSKOOL_37868
if 
  $mission_selection == 12
goto_if_false @DSKOOL_38375
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} -22.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 10.0 {yOffset} -26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 10.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 6.5 {yOffset} -44.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_38261
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_38375
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_38361
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_38361
$trafficcone_counter += 1
goto @DSKOOL_38261

:DSKOOL_38375
if 
  $mission_selection == 13
goto_if_false @DSKOOL_38882
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} -22.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -10.0 {yOffset} -26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} -10.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} -6.5 {yOffset} -44.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_38768
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_38882
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_38868
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_38868
$trafficcone_counter += 1
goto @DSKOOL_38768

:DSKOOL_38882
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_40585
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 50.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_39328
if 
  18 > $trafficcone_counter
goto_if_false @DSKOOL_39442
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_39428
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39428
$trafficcone_counter += 1
goto @DSKOOL_39328

:DSKOOL_39442
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 50.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_39507
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_39590
set_object_coordinates $trafficcones[18] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39590
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_39625
set_object_coordinates $trafficcones[19] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39625
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_39660
set_object_coordinates $trafficcones[20] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39660
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_39695
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39695
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_39730
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39730
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_39765
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39765
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_39800
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39800
$where_to_place_cones += 18.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_39838
goto @DSKOOL_39507

:DSKOOL_39838
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 50.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_40075
if 
  35 > $trafficcone_counter
goto_if_false @DSKOOL_40189
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_40175
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40175
$trafficcone_counter += 1
goto @DSKOOL_40075

:DSKOOL_40189
$where_to_place_cones = 270.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} -4.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_40254
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 306.0
goto_if_false @DSKOOL_40337
set_object_coordinates $trafficcones[35] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40337
if 
  $where_to_place_cones == 324.0
goto_if_false @DSKOOL_40372
set_object_coordinates $trafficcones[36] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40372
if 
  $where_to_place_cones == 342.0
goto_if_false @DSKOOL_40407
set_object_coordinates $trafficcones[37] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40407
if 
  $where_to_place_cones == 360.0
goto_if_false @DSKOOL_40442
set_object_coordinates $trafficcones[38] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40442
if 
  $where_to_place_cones == 378.0
goto_if_false @DSKOOL_40477
set_object_coordinates $trafficcones[39] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40477
if 
  $where_to_place_cones == 396.0
goto_if_false @DSKOOL_40512
set_object_coordinates $trafficcones[40] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40512
if 
  $where_to_place_cones == 414.0
goto_if_false @DSKOOL_40547
set_object_coordinates $trafficcones[41] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40547
$where_to_place_cones += 18.0
if 
  451.0 > $where_to_place_cones
goto_if_false @DSKOOL_40585
goto @DSKOOL_40254

:DSKOOL_40585
if 
  $mission_selection == 5
goto_if_false @DSKOOL_41575
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 48.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 48.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 52.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 52.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 56.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 56.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 64.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 64.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 68.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 68.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 72.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 72.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 76.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 76.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 84.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 84.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 88.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 88.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 92.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 92.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 96.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 96.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 100.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 100.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 104.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 104.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 108.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 108.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 108.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_41461
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_41575
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_41561
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_41561
$trafficcone_counter += 1
goto @DSKOOL_41461

:DSKOOL_41575
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_42371
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 32.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_42090
if 
  21 > $trafficcone_counter
goto_if_false @DSKOOL_42204
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_42190
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42190
$trafficcone_counter += 1
goto @DSKOOL_42090

:DSKOOL_42204
$where_to_place_cones = 90.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42268
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 30.0 {zOffset} -0.5
goto @DSKOOL_42297

:DSKOOL_42268
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 30.0 {zOffset} -0.5

:DSKOOL_42297
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_42323
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y

:DSKOOL_42371
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42494
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_42424
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42424
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_42459
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42459
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_42494
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42494
if 
  $mission_selection == 4
goto_if_false @DSKOOL_42617
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_42547
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42547
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_42582
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42582
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_42617
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42617
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_42768
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_42677
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42677
$where_to_place_cones += 18.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42740
if 
  181.0 > $where_to_place_cones
goto_if_false @DSKOOL_42733
goto @DSKOOL_42323

:DSKOOL_42733
goto @DSKOOL_42768

:DSKOOL_42740
if 
  235.0 > $where_to_place_cones
goto_if_false @DSKOOL_42768
goto @DSKOOL_42323

:DSKOOL_42768
if 
  $mission_selection == 3
goto_if_false @DSKOOL_43390
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 16.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 16.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} 20.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 20.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} 24.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 24.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} 28.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} 28.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[37] {vehicle} $instructor_car {xOffset} 32.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[38] {vehicle} $instructor_car {xOffset} 32.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[39] {vehicle} $instructor_car {xOffset} 36.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[40] {vehicle} $instructor_car {xOffset} 36.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[41] {vehicle} $instructor_car {xOffset} 40.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[42] {vehicle} $instructor_car {xOffset} 40.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[43] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[44] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[45] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 37.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_43276
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_43390
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_43376
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_43376
$trafficcone_counter += 1
goto @DSKOOL_43276

:DSKOOL_43390
if 
  $mission_selection == 4
goto_if_false @DSKOOL_44012
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -12.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} -12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -16.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} -16.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} -20.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} -20.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} -24.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} -24.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} -28.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} -28.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[37] {vehicle} $instructor_car {xOffset} -32.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[38] {vehicle} $instructor_car {xOffset} -32.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[39] {vehicle} $instructor_car {xOffset} -36.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[40] {vehicle} $instructor_car {xOffset} -36.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[41] {vehicle} $instructor_car {xOffset} -40.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[42] {vehicle} $instructor_car {xOffset} -40.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[43] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[44] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[45] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 37.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_43898
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_44012
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_43998
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_43998
$trafficcone_counter += 1
goto @DSKOOL_43898

:DSKOOL_44012
if 
  $mission_selection == 8
goto_if_false @DSKOOL_44496
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 60.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_44382
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_44496
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_44482
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_44482
$trafficcone_counter += 1
goto @DSKOOL_44382

:DSKOOL_44496
if 
  $mission_selection == 9
goto_if_false @DSKOOL_44980
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 60.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_44866
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_44980
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_44966
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_44966
$trafficcone_counter += 1
goto @DSKOOL_44866

:DSKOOL_44980
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_45716
$cone_circle_radius = 8.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -0.5 {yOffset} 81.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_45080
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 90.0
goto_if_false @DSKOOL_45163
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45163
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_45198
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45198
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_45233
set_object_coordinates $trafficcones[25] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45233
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_45268
set_object_coordinates $trafficcones[26] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45268
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_45303
set_object_coordinates $trafficcones[27] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45303
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_45338
set_object_coordinates $trafficcones[28] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45338
if 
  $where_to_place_cones == 270.0
goto_if_false @DSKOOL_45373
set_object_coordinates $trafficcones[29] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45373
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_45411
goto @DSKOOL_45080

:DSKOOL_45411
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_45602
if 
  23 > $trafficcone_counter
goto_if_false @DSKOOL_45716
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_45702
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45702
$trafficcone_counter += 1
goto @DSKOOL_45602

:DSKOOL_45716
return 

:DSKOOL_45718
if 
  61@ == 1
goto_if_false @DSKOOL_45811
if 
  is_int_lvar_greater_than_int_lvar 86@ > 62@
goto_if_false @DSKOOL_45783
gosub @DSKOOL_45989
gosub @DSKOOL_46096
gosub @DSKOOL_46250
goto @DSKOOL_45811

:DSKOOL_45783
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_45804
stop_char_facial_talk 91@

:DSKOOL_45804
61@ = 0

:DSKOOL_45811
return 

:DSKOOL_45813
if 
  61@ == 1
goto_if_false @DSKOOL_45958
set_lvar_text_label 65@s = 'MEC_D1'
set_lvar_text_label 67@s = 'MEC_D2'
set_lvar_text_label 69@s = 'MEC_D3'
set_lvar_text_label 71@s = 'MEC_D4'
set_lvar_text_label 73@s = 'MEC_D5'
set_lvar_int_to_constant 79@ = 35602
set_lvar_int_to_constant 80@ = 35603
set_lvar_int_to_constant 81@ = 35604
set_lvar_int_to_constant 82@ = 35605
set_lvar_int_to_constant 83@ = 35606
86@ = 5

:DSKOOL_45958
set_lvar_int_to_lvar_int 89@ = 62@
87@ = 0
88@ = 0
90@ = 1
return 

:DSKOOL_45989
if 
  is_int_lvar_greater_than_int_lvar 86@ > 89@
goto_if_false @DSKOOL_46094
if 
  87@ == 0
goto_if_false @DSKOOL_46051
load_mission_audio MissionAudioSlot.Slot1 {audioId} 79@(89@,7i)
89@ += 1
87@ = 1

:DSKOOL_46051
if 
  88@ == 0
goto_if_false @DSKOOL_46094
load_mission_audio MissionAudioSlot.Slot2 {audioId} 79@(89@,7i)
89@ += 1
88@ = 1

:DSKOOL_46094
return 

:DSKOOL_46096
if 
  90@ == 1
goto_if_false @DSKOOL_46172
if 
  87@ == 1
goto_if_false @DSKOOL_46172
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DSKOOL_46172
play_mission_audio MissionAudioSlot.Slot1
print_now 65@(62@,7s) {time} 4500 {flag} 1
87@ = 2

:DSKOOL_46172
if 
  90@ == 2
goto_if_false @DSKOOL_46248
if 
  88@ == 1
goto_if_false @DSKOOL_46248
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DSKOOL_46248
play_mission_audio MissionAudioSlot.Slot2
print_now 65@(62@,7s) {time} 4500 {flag} 1
88@ = 2

:DSKOOL_46248
return 

:DSKOOL_46250
if 
  87@ == 2
goto_if_false @DSKOOL_46313
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DSKOOL_46313
clear_this_print 65@(62@,7s)
62@ += 1
90@ = 2
87@ = 0

:DSKOOL_46313
if 
  88@ == 2
goto_if_false @DSKOOL_46376
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DSKOOL_46376
clear_this_print 65@(62@,7s)
62@ += 1
90@ = 1
88@ = 0

:DSKOOL_46376
return 

//-------------Mission 72---------------
// Originally: Air Raid

:ZERO1
gosub @ZERO1_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO1_27
gosub @ZERO1_17155

:ZERO1_27
gosub @ZERO1_17394
terminate_this_script 

:ZERO1_36
$onmission = 1
disable_all_entry_exits True
set_script_limit_to_gang_size 0
register_mission_given 
script_name 'ZERO1'
set_player_control $player1 {state} False
load_mission_text 'ZERO1'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO1_97
if 
  get_fading_status 
goto_if_false @ZERO1_121
wait 0
goto @ZERO1_97

:ZERO1_121
set_area_visible 6
set_char_coordinates $scplayer {x} -2214.436 {y} 123.9208 {z} 56.4219
load_cutscene 'ZERO_1'
request_model 366

:ZERO1_161
if 
  not has_cutscene_loaded 
goto_if_false @ZERO1_185
wait 0
goto @ZERO1_161

:ZERO1_185
start_cutscene 
wait 200
do_fade 1000 {direction} Fade.In

:ZERO1_199
if 
  not has_cutscene_finished 
goto_if_false @ZERO1_223
wait 0
goto @ZERO1_199

:ZERO1_223
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:ZERO1_244
if 
  get_fading_status 
goto_if_false @ZERO1_268
wait 0
goto @ZERO1_244

:ZERO1_268
clear_cutscene 
set_area_visible 0
force_weather_now WeatherType.SunnySf
359@ = 0
361@ = 0
360@ = 0
362@ = 0
166@ = 0
147@ = 1
148@ = 0
149@ = 0
150@ = 0
165@ = 0
177@ = 0
$f1_gold_award = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
$transmitter_overallhealth = 210000
57@ = -2239.4529
58@ = 120.4904
59@ = 56.6585
143@ = 97.5
144@ = 160.0
145@ = 14.0
146@ = 280.0
60@ = -2321.4961
68@ = 211.349
61@ = -2252.5811
69@ = 235.0999
62@ = -2122.6931
70@ = 65.552
63@ = -2233.54
71@ = 16.5174
64@ = -2508.457
72@ = 181.6713
65@ = -2502.908
73@ = 184.0278
66@ = -2508.3679
74@ = 183.8913
67@ = -2504.021
75@ = 187.1988
330@ = 0
331@ = 25
332@ = 25
333@ = 25
334@ = 25
77@ = -2237.24
81@ = 143.33
85@ = 57.0
78@ = -2219.5
82@ = 128.68
86@ = 56.72
79@ = -2224.5
83@ = 149.05
87@ = 59.01
80@ = -2226.7
84@ = 94.8
88@ = 50.87
set_var_int_to_lvar_int $fleet_destroyed_counter = 331@
add_int_lvar_to_int_var $fleet_destroyed_counter += 332@
add_int_lvar_to_int_var $fleet_destroyed_counter += 333@
add_int_lvar_to_int_var $fleet_destroyed_counter += 334@
340@ = get_game_timer 
$fleet_destroyed_counter = 100
151@ = 0
152@ = 1
153@ = 1
154@ = 1
155@ = 1
156@ = 1
157@ = 1
158@ = 1
159@ = 1
329@ = 0
TIMERA = 0
328@ = 0
set_car_density_multiplier 0.0
34@ = create_object #MINIGUN_BASE {x} 57@ {y} 58@ {z} 59@
set_object_collision 34@ {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} -2214.436 {y} 123.9208 {z} 56.4219
set_object_heading 34@ {heading} 90.0
display_onscreen_timer_with_string $transmitter_overallhealth {direction} TimerDirection.Down {text} 'ZER1_26'
display_onscreen_counter_with_string $fleet_destroyed_counter {display} CounterDisplay.Bar {text} 'ZER1_20'
357@ = get_game_timer 
328@ = 0

:ZERO1_1039
if 
  4 > 328@
goto_if_false @ZERO1_1104
create_object #WONGS_ERECTION {x} 77@(328@,4f) {y} 81@(328@,4f) {z} 85@(328@,4f) {var_handle} 45@(328@,10i)
328@ += 1
goto @ZERO1_1039

:ZERO1_1104
if 
  not has_model_loaded 366
goto_if_false @ZERO1_1131
wait 0
goto @ZERO1_1104

:ZERO1_1131
load_special_character 1 {modelName} 'ZERO'

:ZERO1_1144
if 
  not has_special_character_loaded 1
goto_if_false @ZERO1_1170
wait 0
goto @ZERO1_1144

:ZERO1_1170
switch_widescreen True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2261.8379 {fromY} 118.3496 {fromZ} 55.8344 {toX} -2248.469 {toY} 121.3517 {toZ} 60.4838 {time} 6800 {ease} True
camera_set_vector_track -2261.123 {fromY} 118.8753 {fromZ} 55.3739 {toX} -2247.6101 {toY} 121.8521 {toZ} 60.3731 {time} 6800 {ease} True
request_animation "ON_LOOKERS"
load_scene_in_direction -2259.8379 {y} 122.3496 {z} 40.8344 {heading} 290.0

:ZERO1_1294
if 
  not has_animation_loaded "ON_LOOKERS"
goto_if_false @ZERO1_1330
wait 0
goto @ZERO1_1294

:ZERO1_1330
wait 1000
do_fade 500 {direction} Fade.In
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_1350
if 
  get_fading_status 
goto_if_false @ZERO1_1374
wait 0
goto @ZERO1_1350

:ZERO1_1374
55@ = create_char PedType.CivMale {modelId} 290 {x} -2214.29 {y} 125.49 {z} 56.5985
set_char_health 55@ {health} 1000
set_char_proofs 55@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
335@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 335@ {event} Event.PotentialWalkIntoFire
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
add_char_decision_maker_event_response 335@ {event} Event.FireNearby {taskId} TaskId.ComplexExtinguishFires {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
set_char_decision_maker 55@ {handleOrTemplate} 335@
if 
  not is_char_dead 55@
goto_if_false @ZERO1_1598
367@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2231.323 {y} 129.7854 {z} 56.5985 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 0.0
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
close_sequence_task 367@
perform_sequence_task 55@ {sequence} 367@
clear_sequence_task 367@

:ZERO1_1598
367@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2239.7029 {y} 119.9904 {z} 56.5985 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 367@
perform_sequence_task $scplayer {sequence} 367@
clear_sequence_task 367@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21800

:ZERO1_1660
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_1686
wait 0
goto @ZERO1_1660

:ZERO1_1686
print_now 'ZER1_AA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_1706
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_1732
wait 0
goto @ZERO1_1706

:ZERO1_1732
clear_this_print 'ZER1_AA'
request_model #WONGS_ERECTION2
request_model 464
request_model 362
request_model #RCBOMB

:ZERO1_1763
if or
  not has_model_loaded #WONGS_ERECTION2
  not has_model_loaded 464
  not has_model_loaded #RCBOMB
  not has_model_loaded 362
goto_if_false @ZERO1_1805
wait 0
goto @ZERO1_1763

:ZERO1_1805
328@ = 0

:ZERO1_1812
if 
  8 > 328@
goto_if_false @ZERO1_1877
add_blip_for_coord 0.0 {y} 0.0 {z} 0.0 {var_handle} 178@(328@,10i)
remove_blip 178@(328@,10i)
328@ += 1
goto @ZERO1_1812

:ZERO1_1877
wait 0
if 
  147@ == 1
goto_if_false @ZERO1_1906
gosub @ZERO1_3179

:ZERO1_1906
if 
  148@ == 1
goto_if_false @ZERO1_1931
gosub @ZERO1_5255

:ZERO1_1931
if 
  149@ == 1
goto_if_false @ZERO1_1956
goto @ZERO1_17087

:ZERO1_1956
if 
  150@ == 1
goto_if_false @ZERO1_1981
goto @ZERO1_17155

:ZERO1_1981
goto @ZERO1_1877

:ZERO1_1988
clear_area -2208.1001 {y} 175.86 {z} 40.46 {radius} 25.0 {clearParticles} True
if 
  4 > 328@
goto_if_false @ZERO1_2544
create_car 464 {x} 60@(330@,8f) {y} 68@(330@,8f) {z} 70.0 {var_handle} 35@(328@,10i)
turn_car_to_face_coord 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_health 35@(328@,10i) {health} 260
add_stuck_car_check 35@(328@,10i) {distance} 3.0 {time} 3000
set_car_proofs 35@(328@,10i) {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
plane_starts_in_air 35@(328@,10i)
set_car_forward_speed 35@(328@,10i) {forwardSpeed} 14.0
if 
  not does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_2209
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
goto @ZERO1_2245

:ZERO1_2209
remove_blip 178@(328@,10i)
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly

:ZERO1_2245
set_car_status 35@(328@,10i) {status} EntityStatus.Physics
create_object #RCBOMB {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 130.0 {var_handle} 188@(328@,10i)
attach_object_to_car 188@(328@,10i) {handle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
place_object_relative_to_car 188@(328@,10i) {vehicle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 258@(328@,10f)
set_object_collision 188@(328@,10i) {state} False
set_object_dynamic 188@(328@,10i) {state} False
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 13.5
set_plane_throttle 35@(328@,10i) {throttle} -0.8
152@(328@,8i) = 0
167@(328@,10i) = 0
151@ = 1
get_game_timer 336@(328@,10i)
330@ += 1
if 
  330@ > 3
goto_if_false @ZERO1_2530
330@ = 0

:ZERO1_2530
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.001

:ZERO1_2544
return 

:ZERO1_2546
if or
  328@ > 4
  328@ == 4
goto_if_false @ZERO1_3177
create_car 464 {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 85.0 {var_handle} 35@(328@,10i)
turn_car_to_face_coord 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_proofs 35@(328@,10i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 35@(328@,10i) {health} 260
add_stuck_car_check 35@(328@,10i) {distance} 3.0 {time} 10000
if 
  not does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_2727
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
goto @ZERO1_2763

:ZERO1_2727
remove_blip 178@(328@,10i)
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly

:ZERO1_2763
set_car_status 35@(328@,10i) {status} EntityStatus.Physics
set_car_heading 35@(328@,10i) {heading} 258.0
plane_starts_in_air 35@(328@,10i)
set_car_forward_speed 35@(328@,10i) {forwardSpeed} 14.0
167@(328@,10i) = 0
152@(328@,8i) = 0
create_object #RCBOMB {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 120.0 {var_handle} 188@(328@,10i)
attach_object_to_car 188@(328@,10i) {handle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
place_object_relative_to_car 188@(328@,10i) {vehicle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 258@(328@,10f)
set_object_collision 188@(328@,10i) {state} False
set_object_dynamic 188@(328@,10i) {state} False
get_game_timer 336@(328@,10i)
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 69.5
set_plane_throttle 35@(328@,10i) {throttle} -0.8
if 
  not is_char_dead 55@
goto_if_false @ZERO1_3177
if 
  359@ == 0
goto_if_false @ZERO1_3177
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21806

:ZERO1_3087
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3113
wait 0
goto @ZERO1_3087

:ZERO1_3113
print_now 'ZER1_BD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3133
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3159
wait 0
goto @ZERO1_3133

:ZERO1_3159
clear_this_print 'ZER1_BD'
359@ = 1

:ZERO1_3177
return 

:ZERO1_3179
TIMERA = 0
if 
  $f1_gold_award == 0
goto_if_false @ZERO1_5009
177@ = 0
TIMERB = 0

:ZERO1_3218
if 
  177@ <> 10
goto_if_false @ZERO1_4576
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_3445
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21830

:ZERO1_3265
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3291
wait 0
goto @ZERO1_3265

:ZERO1_3291
print_now 'ZER1_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3311
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3337
wait 0
goto @ZERO1_3311

:ZERO1_3337
clear_this_print 'ZER1_AC'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21801

:ZERO1_3355
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3381
wait 0
goto @ZERO1_3355

:ZERO1_3381
print_now 'ZER1_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3401
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3427
wait 0
goto @ZERO1_3401

:ZERO1_3427
clear_this_print 'ZER1_AC'
177@ = 1

:ZERO1_3445
if 
  TIMERB > 4500
goto_if_false @ZERO1_3650
if 
  177@ == 1
goto_if_false @ZERO1_3650
177@ = 2
camera_reset_new_scriptables 
set_fixed_camera_position -2240.4851 {y} 119.5912 {z} 58.4997 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2239.875 {y} 120.376 {z} 58.6143 {switchStyle} SwitchType.JumpCut
clear_area 57@ {y} 58@ {z} 59@ {radius} 1000.0 {clearParticles} True
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21803

:ZERO1_3567
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3593
wait 0
goto @ZERO1_3567

:ZERO1_3593
print_now 'ZER1_BA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3613
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3639
wait 0
goto @ZERO1_3613

:ZERO1_3639
clear_this_print 'ZER1_BA'

:ZERO1_3650
if 
  TIMERB > 7500
goto_if_false @ZERO1_3963
if 
  177@ == 2
goto_if_false @ZERO1_3963
177@ = 3
set_fixed_camera_position -2231.676 {y} 127.7127 {z} 57.9036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2231.9651 {y} 128.6361 {z} 58.1563 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 55@
goto_if_false @ZERO1_3805
task_play_anim 55@ {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:ZERO1_3805
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21804
if 
  151@ == 0
goto_if_false @ZERO1_3880
328@ = 0

:ZERO1_3837
if 
  2 > 328@
goto_if_false @ZERO1_3880
wait 0
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_3837

:ZERO1_3880
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3906
wait 0
goto @ZERO1_3880

:ZERO1_3906
print_now 'ZER1_BB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3926
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3952
wait 0
goto @ZERO1_3926

:ZERO1_3952
clear_this_print 'ZER1_BB'

:ZERO1_3963
if 
  TIMERB > 12000
goto_if_false @ZERO1_4283
if 
  177@ == 3
goto_if_false @ZERO1_4283
if 
  not is_car_dead 36@
goto_if_false @ZERO1_4283
92@, 93@, 94@ = get_offset_from_car_in_world_coords 36@ {xOffset} 2.0 {yOffset} 1.5 {zOffset} -1.0
set_fixed_camera_position 92@ {y} 93@ {z} 94@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_4096
point_camera_at_char 55@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:ZERO1_4096
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21831

:ZERO1_4103
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4129
wait 0
goto @ZERO1_4103

:ZERO1_4129
print_now 'ZER1_AD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_4149
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4175
wait 0
goto @ZERO1_4149

:ZERO1_4175
clear_this_print 'ZER1_AD'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21802

:ZERO1_4193
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4219
wait 0
goto @ZERO1_4193

:ZERO1_4219
print_now 'ZER1_AE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_4239
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4265
wait 0
goto @ZERO1_4239

:ZERO1_4265
clear_this_print 'ZER1_AE'
177@ = 4

:ZERO1_4283
if 
  TIMERB > 17000
goto_if_false @ZERO1_4451
if 
  177@ == 4
goto_if_false @ZERO1_4451
177@ = 5
set_char_coordinates $scplayer {x} -2239.7029 {y} 119.9904 {z} 56.5985
set_char_heading $scplayer {heading} 0.0
if 
  does_object_exist 34@
goto_if_false @ZERO1_4384
task_look_at_object $scplayer {object} 34@ {time} 3000

:ZERO1_4384
set_fixed_camera_position -2239.688 {y} 122.1658 {z} 57.6384 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2239.2371 {y} 121.2862 {z} 57.7886 {switchStyle} SwitchType.JumpCut
print_now 'ZER1_22' {time} 5000 {flag} 1

:ZERO1_4451
if 
  is_skip_cutscene_button_pressed 
goto_if_false @ZERO1_4543
177@ = 10
clear_mission_audio MissionAudioSlot.Slot1
if 
  151@ == 0
goto_if_false @ZERO1_4543
328@ = 0

:ZERO1_4500
if 
  2 > 328@
goto_if_false @ZERO1_4543
wait 0
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_4500

:ZERO1_4543
if 
  TIMERB > 20000
goto_if_false @ZERO1_4569
177@ = 10

:ZERO1_4569
goto @ZERO1_3218

:ZERO1_4576
if 
  not is_car_dead 35@
goto_if_false @ZERO1_4637
set_car_coordinates 35@ {x} 60@ {y} 68@ {z} 95.0
turn_car_to_face_coord 35@ {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_forward_speed 35@ {forwardSpeed} 10.0

:ZERO1_4637
if 
  not is_car_dead 36@
goto_if_false @ZERO1_4698
set_car_coordinates 36@ {x} 61@ {y} 69@ {z} 95.0
turn_car_to_face_coord 36@ {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_forward_speed 36@ {forwardSpeed} 10.0

:ZERO1_4698
attach_char_to_object $scplayer {handle} 34@ {xOffset} -0.25 {yOffset} -0.5 {zOffset} 1.25 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Minigun
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $scplayer {weaponType} WeaponType.Minigun
add_ammo_to_char $scplayer {weaponType} WeaponType.Minigun {ammo} 200000
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 300.0
clear_char_tasks $scplayer
switch_widescreen False
set_player_control $player1 {state} True
alter_wanted_level $player1 {wantedLevel} 0
camera_reset_new_scriptables 
restore_camera 
if 
  does_object_exist 34@
goto_if_false @ZERO1_4821
set_object_visible 34@ {state} False

:ZERO1_4821
if 
  not is_char_dead 55@
goto_if_false @ZERO1_4847
give_weapon_to_char 55@ {weaponType} WeaponType.Extinguisher {ammo} 1000

:ZERO1_4847
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_help 'ZER1_24'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_4979
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21807

:ZERO1_4896
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4922
wait 0
goto @ZERO1_4896

:ZERO1_4922
print_now 'ZER1_BE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_4942
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4968
wait 0
goto @ZERO1_4942

:ZERO1_4968
clear_this_print 'ZER1_BE'

:ZERO1_4979
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.001
147@ = 0
148@ = 1
return 

:ZERO1_5009
if 
  $f1_gold_award == 1
goto_if_false @ZERO1_5232
if 
  151@ == 0
goto_if_false @ZERO1_5209
328@ = 0

:ZERO1_5052
if 
  4 > 328@
goto_if_false @ZERO1_5202
wait 0
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_5134
set_car_health 35@(328@,10i) {health} 20
if 
  not is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_5134
delete_car 35@(328@,10i)

:ZERO1_5134
mark_car_as_no_longer_needed 35@(328@,10i)
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_5172
remove_blip 178@(328@,10i)

:ZERO1_5172
remove_stuck_car_check 35@(328@,10i)
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_5052

:ZERO1_5202
151@ = 1

:ZERO1_5209
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5232
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5255
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO1_5304
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_5304
gosub @ZERO1_13566
if 
  150@ == 1
goto_if_false @ZERO1_5359
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_5359
if 
  is_char_dead 55@
goto_if_false @ZERO1_5411
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_5411
328@ = 0

:ZERO1_5418
if 
  8 > 328@
goto_if_false @ZERO1_8800
wait 0
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8775
if 
  not is_char_dead 55@
goto_if_false @ZERO1_5978
if 
  165@ == 0
goto_if_false @ZERO1_5655
if 
  not is_char_responding_to_event 55@ {event} Event.FireNearby
goto_if_false @ZERO1_5655
367@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_turn_char_to_face_coord -1 {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f)
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_scratch_head -1
close_sequence_task 367@
perform_sequence_task 55@ {sequence} 367@
clear_sequence_task 367@
165@ = 1

:ZERO1_5655
if 
  165@ == 1
goto_if_false @ZERO1_5709
56@ = get_script_task_status 55@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 56@ == 7
goto_if_false @ZERO1_5709
165@ = 0

:ZERO1_5709
if 
  362@ == 1
goto_if_false @ZERO1_5814
if 
  has_char_been_damaged_by_weapon 55@ {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_5814
clear_char_last_weapon_damage 55@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21818

:ZERO1_5761
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_5787
wait 0
goto @ZERO1_5761

:ZERO1_5787
print_now 'ZER1_DB' {time} 5000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
362@ = 0

:ZERO1_5814
if 
  362@ == 0
goto_if_false @ZERO1_5971
if 
  has_char_been_damaged_by_weapon 55@ {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_5971
clear_char_last_weapon_damage 55@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21817

:ZERO1_5866
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_5944
wait 0
if 
  is_char_dead 55@
goto_if_false @ZERO1_5937
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_5937
goto @ZERO1_5866

:ZERO1_5944
print_now 'ZER1_DA' {time} 5000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
362@ = 1

:ZERO1_5971
goto @ZERO1_6014

:ZERO1_5978
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_6014
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8757
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6174
356@ = get_game_timer 
set_lvar_int_to_lvar_int 346@(328@,10i) = 356@
sub_int_lvar_from_int_lvar 346@(328@,10i) -= 336@(328@,10i)
if 
  346@(328@,10i) > 45000
goto_if_false @ZERO1_6174
explode_car 35@(328@,10i)
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6174
delete_object 188@(328@,10i)

:ZERO1_6174
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6296
if 
  does_car_have_stuck_car_check 35@(328@,10i)
goto_if_false @ZERO1_6296
if 
  is_car_stuck 35@(328@,10i)
goto_if_false @ZERO1_6296
explode_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6274
delete_object 188@(328@,10i)

:ZERO1_6274
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6296
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6398
if 
  not is_car_in_air_proper 35@(328@,10i)
goto_if_false @ZERO1_6398
explode_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6376
delete_object 188@(328@,10i)

:ZERO1_6376
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6398
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6504
if 
  has_car_been_damaged_by_weapon 35@(328@,10i) {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_6504
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6471
delete_object 188@(328@,10i)

:ZERO1_6471
set_car_health 35@(328@,10i) {health} 20
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6504
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6644
if 
  167@(328@,10i) == 0
goto_if_false @ZERO1_6644
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_6637
if 
  locate_car_3d 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {xRadius} 18.0 {yRadius} 18.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @ZERO1_6637
167@(328@,10i) = 1

:ZERO1_6637
goto @ZERO1_6644

:ZERO1_6644
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_6721
gosub @ZERO1_10819
if 
  150@ == 1
goto_if_false @ZERO1_6721
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6721
if 
  150@ == 1
goto_if_false @ZERO1_6769
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6769
if 
  167@(328@,10i) > 2
goto_if_false @ZERO1_6919
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_6919
if 
  locate_car_2d 35@(328@,10i) {x} 60@(328@,8f) {y} 68@(328@,8f) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @ZERO1_6919
delete_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6895
delete_object 188@(328@,10i)

:ZERO1_6895
152@(328@,8i) = 1
167@(328@,10i) = 0
return 

:ZERO1_6919
if 
  167@(328@,10i) == 2
goto_if_false @ZERO1_7072
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_7072
if 
  locate_car_2d 35@(328@,10i) {x} 95@(328@,8f) {y} 103@(328@,8f) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @ZERO1_7072
plane_goto_coords 35@(328@,10i) {x} 119@(328@,8f) {y} 127@(328@,8f) {z} 135@(328@,8f) {minAltitude} 5.0 {maxAltitude} 0.5
set_plane_throttle 35@(328@,10i) {throttle} -1.1
167@(328@,10i) = 3

:ZERO1_7072
if 
  167@(328@,10i) == 3
goto_if_false @ZERO1_7221
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_7221
if 
  locate_car_2d 35@(328@,10i) {x} 119@(328@,8f) {y} 127@(328@,8f) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @ZERO1_7221
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} 3.0 {maxAltitude} 0.0
set_plane_throttle 35@(328@,10i) {throttle} -0.9
167@(328@,10i) = 4

:ZERO1_7221
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8739
if 
  locate_car_3d 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 11.0 {drawSphere} False
goto_if_false @ZERO1_8732
89@, 90@, 91@ = get_car_coordinates 35@(328@,10i)
explode_car 35@(328@,10i)
delete_car 35@(328@,10i)
add_explosion 89@ {y} 90@ {z} 91@ {type} ExplosionType.Grenade
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_7377
delete_object 188@(328@,10i)

:ZERO1_7377
if 
  not is_char_dead 55@
goto_if_false @ZERO1_7508
if 
  360@ == 0
goto_if_false @ZERO1_7508
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21815

:ZERO1_7418
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_7444
wait 0
goto @ZERO1_7418

:ZERO1_7444
print_now 'ZER1_BN' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_7464
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_7490
wait 0
goto @ZERO1_7464

:ZERO1_7490
clear_this_print 'ZER1_BN'
360@ = 1

:ZERO1_7508
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  329@ == 3
goto_if_false @ZERO1_7882
if 
  334@ > 5
goto_if_false @ZERO1_7580
334@ -= 5
goto @ZERO1_7882

:ZERO1_7580
163@ = 1
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 363@(329@,4i)
147@ = 0
148@ = 0
150@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_7854
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21819

:ZERO1_7771
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_7797
wait 0
goto @ZERO1_7771

:ZERO1_7797
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_7817
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_7843
wait 0
goto @ZERO1_7817

:ZERO1_7843
clear_this_print 'ZER1_EA'

:ZERO1_7854
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
print_now 'ZER1_19' {time} 5000 {flag} 1
return 

:ZERO1_7882
if 
  329@ == 2
goto_if_false @ZERO1_8296
if 
  333@ > 5
goto_if_false @ZERO1_7932
333@ -= 5
goto @ZERO1_8296

:ZERO1_7932
162@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8296
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8010
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8010
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8296
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21812

:ZERO1_8033
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8059
wait 0
goto @ZERO1_8033

:ZERO1_8059
print_now 'ZER1_BK' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8079
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8105
wait 0
goto @ZERO1_8079

:ZERO1_8105
clear_this_print 'ZER1_BK'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21813

:ZERO1_8123
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8149
wait 0
goto @ZERO1_8123

:ZERO1_8149
print_now 'ZER1_BL' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8169
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8195
wait 0
goto @ZERO1_8169

:ZERO1_8195
clear_this_print 'ZER1_BL'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21814

:ZERO1_8213
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8239
wait 0
goto @ZERO1_8213

:ZERO1_8239
print_now 'ZER1_BM' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8259
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8285
wait 0
goto @ZERO1_8259

:ZERO1_8285
clear_this_print 'ZER1_BM'

:ZERO1_8296
if 
  329@ == 1
goto_if_false @ZERO1_8514
if 
  332@ > 5
goto_if_false @ZERO1_8346
332@ -= 5
goto @ZERO1_8514

:ZERO1_8346
161@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8514
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8424
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8424
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21811

:ZERO1_8431
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8457
wait 0
goto @ZERO1_8431

:ZERO1_8457
print_now 'ZER1_BJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8477
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8503
wait 0
goto @ZERO1_8477

:ZERO1_8503
clear_this_print 'ZER1_BJ'

:ZERO1_8514
if 
  329@ == 0
goto_if_false @ZERO1_8732
if 
  331@ > 5
goto_if_false @ZERO1_8564
331@ -= 5
goto @ZERO1_8732

:ZERO1_8564
160@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8732
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8642
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8642
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21809

:ZERO1_8649
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8675
wait 0
goto @ZERO1_8649

:ZERO1_8675
print_now 'ZER1_BG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8721
wait 0
goto @ZERO1_8695

:ZERO1_8721
clear_this_print 'ZER1_BG'

:ZERO1_8732
goto @ZERO1_8750

:ZERO1_8739
152@(328@,8i) = 1

:ZERO1_8750
goto @ZERO1_8768

:ZERO1_8757
152@(328@,8i) = 1

:ZERO1_8768
goto @ZERO1_8786

:ZERO1_8775
152@(328@,8i) = 1

:ZERO1_8786
328@ += 1
goto @ZERO1_5418

:ZERO1_8800
if 
  1 > $f1_gold_award
goto_if_false @ZERO1_9314
328@ = 0

:ZERO1_8825
if 
  4 > 328@
goto_if_false @ZERO1_9027
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_9013
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_8894
remove_blip 178@(328@,10i)

:ZERO1_8894
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_8923
delete_object 188@(328@,10i)

:ZERO1_8923
remove_stuck_car_check 35@(328@,10i)
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8997
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_8988
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_8997

:ZERO1_8988
delete_car 35@(328@,10i)

:ZERO1_8997
mark_car_as_no_longer_needed 35@(328@,10i)
$f1_gold_award += 1

:ZERO1_9013
328@ += 1
goto @ZERO1_8825

:ZERO1_9027
if 
  152@ == 1
goto_if_false @ZERO1_9307
if 
  153@ == 1
goto_if_false @ZERO1_9307
if 
  154@ == 1
goto_if_false @ZERO1_9307
if 
  155@ == 1
goto_if_false @ZERO1_9307
$f1_gold_award += 1
148@ = 0
147@ = 1
151@ = 0
$f1_gold_award += 1
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
328@ = 0

:ZERO1_9161
if 
  4 > 328@
goto_if_false @ZERO1_9307
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9210
set_car_health 35@(328@,10i) {health} 20

:ZERO1_9210
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9275
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_9266
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_9275

:ZERO1_9266
delete_car 35@(328@,10i)

:ZERO1_9275
mark_car_as_no_longer_needed 35@(328@,10i)
remove_stuck_car_check 35@(328@,10i)
328@ += 1
goto @ZERO1_9161

:ZERO1_9307
goto @ZERO1_10001

:ZERO1_9314
328@ = 0

:ZERO1_9321
if 
  4 > 328@
goto_if_false @ZERO1_10015
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_10001
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_9390
remove_blip 178@(328@,10i)

:ZERO1_9390
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_9419
delete_object 188@(328@,10i)

:ZERO1_9419
remove_stuck_car_check 35@(328@,10i)
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9493
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_9484
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_9493

:ZERO1_9484
delete_car 35@(328@,10i)

:ZERO1_9493
mark_car_as_no_longer_needed 35@(328@,10i)
356@ = get_game_timer 
set_lvar_int_to_lvar_int 358@ = 356@
sub_int_lvar_from_int_lvar 358@ -= 357@
if and
  210000 > $transmitter_overallhealth
  $transmitter_overallhealth > 190000
goto_if_false @ZERO1_9587
if 
  TIMERB > 12000
goto_if_false @ZERO1_9587
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9587
if and
  190000 > $transmitter_overallhealth
  $transmitter_overallhealth > 120000
goto_if_false @ZERO1_9651
if 
  TIMERB > 6000
goto_if_false @ZERO1_9651
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9651
if and
  120000 > $transmitter_overallhealth
  $transmitter_overallhealth > 0
goto_if_false @ZERO1_9712
if 
  TIMERB > 3500
goto_if_false @ZERO1_9712
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9712
if 
  152@ == 1
goto_if_false @ZERO1_10001
if 
  153@ == 1
goto_if_false @ZERO1_10001
if 
  154@ == 1
goto_if_false @ZERO1_10001
if 
  155@ == 1
goto_if_false @ZERO1_10001
if 
  156@ == 1
goto_if_false @ZERO1_10001
if 
  157@ == 1
goto_if_false @ZERO1_10001
if 
  158@ == 1
goto_if_false @ZERO1_10001
if 
  159@ == 1
goto_if_false @ZERO1_10001
gosub @ZERO1_1988
if 
  361@ == 0
goto_if_false @ZERO1_9994
if 
  not is_char_dead 55@
goto_if_false @ZERO1_9994
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21816

:ZERO1_9904
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_9930
wait 0
goto @ZERO1_9904

:ZERO1_9930
print_now 'ZER1_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_9950
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_9976
wait 0
goto @ZERO1_9950

:ZERO1_9976
clear_this_print 'ZER1_CA'
361@ = 1

:ZERO1_9994
TIMERB = 0

:ZERO1_10001
328@ += 1
goto @ZERO1_9321

:ZERO1_10015
if 
  210000 > $transmitter_overallhealth
goto_if_false @ZERO1_10692
if 
  156@ == 1
goto_if_false @ZERO1_10692
if 
  157@ == 1
goto_if_false @ZERO1_10692
if 
  158@ == 1
goto_if_false @ZERO1_10692
if 
  159@ == 1
goto_if_false @ZERO1_10692
if 
  does_blip_exist 182@
goto_if_false @ZERO1_10129
remove_blip 182@

:ZERO1_10129
if 
  does_blip_exist 183@
goto_if_false @ZERO1_10150
remove_blip 183@

:ZERO1_10150
if 
  does_blip_exist 184@
goto_if_false @ZERO1_10171
remove_blip 184@

:ZERO1_10171
if 
  does_blip_exist 185@
goto_if_false @ZERO1_10192
remove_blip 185@

:ZERO1_10192
if 
  not is_car_dead 39@
goto_if_false @ZERO1_10215
set_car_health 39@ {health} 10

:ZERO1_10215
if 
  not is_car_dead 40@
goto_if_false @ZERO1_10238
set_car_health 40@ {health} 10

:ZERO1_10238
if 
  not is_car_dead 41@
goto_if_false @ZERO1_10261
set_car_health 41@ {health} 10

:ZERO1_10261
if 
  not is_car_dead 42@
goto_if_false @ZERO1_10284
set_car_health 42@ {health} 10

:ZERO1_10284
if 
  does_object_exist 192@
goto_if_false @ZERO1_10305
delete_object 192@

:ZERO1_10305
if 
  does_object_exist 193@
goto_if_false @ZERO1_10326
delete_object 193@

:ZERO1_10326
if 
  does_object_exist 194@
goto_if_false @ZERO1_10347
delete_object 194@

:ZERO1_10347
if 
  does_object_exist 195@
goto_if_false @ZERO1_10368
delete_object 195@

:ZERO1_10368
if 
  not is_car_dead 39@
goto_if_false @ZERO1_10417
if 
  is_car_on_screen 39@
goto_if_false @ZERO1_10412
mark_car_as_no_longer_needed 39@
goto @ZERO1_10417

:ZERO1_10412
delete_car 39@

:ZERO1_10417
mark_car_as_no_longer_needed 39@
if 
  not is_car_dead 40@
goto_if_false @ZERO1_10471
if 
  is_car_on_screen 40@
goto_if_false @ZERO1_10466
mark_car_as_no_longer_needed 40@
goto @ZERO1_10471

:ZERO1_10466
delete_car 40@

:ZERO1_10471
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 41@
goto_if_false @ZERO1_10525
if 
  is_car_on_screen 41@
goto_if_false @ZERO1_10520
mark_car_as_no_longer_needed 41@
goto @ZERO1_10525

:ZERO1_10520
delete_car 41@

:ZERO1_10525
mark_car_as_no_longer_needed 41@
if 
  not is_car_dead 42@
goto_if_false @ZERO1_10579
if 
  is_car_on_screen 42@
goto_if_false @ZERO1_10574
mark_car_as_no_longer_needed 42@
goto @ZERO1_10579

:ZERO1_10574
delete_car 42@

:ZERO1_10579
mark_car_as_no_longer_needed 42@
remove_stuck_car_check 39@
remove_stuck_car_check 40@
remove_stuck_car_check 41@
remove_stuck_car_check 42@
356@ = get_game_timer 
set_lvar_int_to_lvar_int 350@ = 356@
sub_int_lvar_from_int_lvar 350@ -= 340@
if 
  350@ > 45000
goto_if_false @ZERO1_10692
328@ = 4

:ZERO1_10653
if 
  8 > 328@
goto_if_false @ZERO1_10692
gosub @ZERO1_2546
328@ += 1
goto @ZERO1_10653

:ZERO1_10692
if 
  1 >= $transmitter_overallhealth
goto_if_false @ZERO1_10817
328@ = 0

:ZERO1_10717
if 
  8 > 328@
goto_if_false @ZERO1_10787
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_10773
explode_car 35@(328@,10i)
mark_car_as_no_longer_needed 35@(328@,10i)

:ZERO1_10773
328@ += 1
goto @ZERO1_10717

:ZERO1_10787
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_10817
return 

:ZERO1_10819
248@(328@,10i) = 0
get_car_coordinates 35@(328@,10i) {var_x} 268@(328@,10f) {var_y} 278@(328@,10f) {var_z} 288@(328@,10f)
get_ground_z_for_3d_coord 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {var_groundZ} 318@(328@,10f)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_11187
set_lvar_float_to_lvar_float 238@(328@,10f) = 288@(328@,10f)
sub_float_lvar_from_float_lvar 238@(328@,10f) -= 318@(328@,10f)
if 
  238@(328@,10f) > 0.5
goto_if_false @ZERO1_11071
set_visibility_of_closest_object_of_type 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {radius} 10.0 {modelId} #RCBOMB {state} True
sub_timed_val_from_float_lvar 258@(328@,10f) -=@ 0.05
if 
  -0.5 > 258@(328@,10f)
goto_if_false @ZERO1_11064
258@(328@,10f) = -0.5
248@(328@,10i) = 1

:ZERO1_11064
goto @ZERO1_11187

:ZERO1_11071
set_lvar_float_to_lvar_float 258@(328@,10f) = 238@(328@,10f)
258@(328@,10f) -= 1.0
258@(328@,10f) *= -1.0
if 
  258@(328@,10f) > 0.0
goto_if_false @ZERO1_11187
258@(328@,10f) = 0.0
set_visibility_of_closest_object_of_type 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {radius} 10.0 {modelId} #RCBOMB {state} False

:ZERO1_11187
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_11575
get_game_timer 218@(328@,10i)
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 228@(328@,10i)
goto_if_false @ZERO1_11575
if 
  208@(328@,10i) == 0
goto_if_false @ZERO1_11515
if 
  248@(328@,10i) == 1
goto_if_false @ZERO1_11508
258@(328@,10f) -= 0.5
detach_object 188@(328@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_dynamic 188@(328@,10i) {state} True
set_object_collision 188@(328@,10i) {state} True
add_to_object_velocity 188@(328@,10i) {x} 0.0 {y} 0.0 {z} 0.0
set_lvar_int_to_lvar_int 228@(328@,10i) = 218@(328@,10i)
228@(328@,10i) += 2500
set_lvar_int_to_lvar_int 198@(328@,10i) = 188@(328@,10i)
188@(328@,10i) = -1
set_object_records_collisions 198@(328@,10i) {state} True
set_lvar_int_to_lvar_int 298@(328@,10i) = 218@(328@,10i)
298@(328@,10i) += 250
set_lvar_int_to_lvar_int 308@(328@,10i) = 218@(328@,10i)
308@(328@,10i) += 3000
208@(328@,10i) = 1

:ZERO1_11508
goto @ZERO1_11575

:ZERO1_11515
if 
  208@(328@,10i) == 2
goto_if_false @ZERO1_11575
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 298@(328@,10i)
goto_if_false @ZERO1_11575
208@(328@,10i) = 0

:ZERO1_11575
if 
  208@(328@,10i) == 1
goto_if_false @ZERO1_13564
if 
  does_object_exist 198@(328@,10i)
goto_if_false @ZERO1_13564
get_object_coordinates 198@(328@,10i) {var_x} 268@(328@,10f) {var_y} 278@(328@,10f) {var_z} 288@(328@,10f)
get_ground_z_for_3d_coord 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {var_groundZ} 318@(328@,10f)
318@(328@,10f) += 0.5
if 
  6.0 > 318@(328@,10f)
goto_if_false @ZERO1_11730
318@(328@,10f) = 6.0

:ZERO1_11730
if or
  has_object_collided_with_anything 198@(328@,10i)
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 308@(328@,10i)
  is_object_in_water 198@(328@,10i)
goto_if_false @ZERO1_13564
set_object_records_collisions 198@(328@,10i) {state} False
add_explosion 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {type} ExplosionType.Grenade
mark_object_as_no_longer_needed 198@(328@,10i)
delete_object 198@(328@,10i)
198@(328@,10i) = -1
208@(328@,10i) = 2
167@(328@,10i) = 2
if 
  not is_char_dead 55@
goto_if_false @ZERO1_11993
if 
  166@ == 0
goto_if_false @ZERO1_11993
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21805

:ZERO1_11903
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_11929
wait 0
goto @ZERO1_11903

:ZERO1_11929
print_now 'ZER1_BC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_11949
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_11975
wait 0
goto @ZERO1_11949

:ZERO1_11975
clear_this_print 'ZER1_BC'
166@ = 1

:ZERO1_11993
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_12273
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 4.0
if 
  locate_car_2d 35@(328@,10i) {x} -2235.6599 {y} 182.43 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @ZERO1_12129
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} -25.0 {yOffset} 0.0 {zOffset} 5.0 {var_x} 119@(328@,8f) {var_y} 127@(328@,8f) {var_z} 135@(328@,8f)
goto @ZERO1_12174

:ZERO1_12129
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} 25.0 {yOffset} 0.0 {zOffset} 5.0 {var_x} 119@(328@,8f) {var_y} 127@(328@,8f) {var_z} 135@(328@,8f)

:ZERO1_12174
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} 0.0 {yOffset} 20.0 {zOffset} 4.0 {var_x} 95@(328@,8f) {var_y} 103@(328@,8f) {var_z} 111@(328@,8f)
plane_goto_coords 35@(328@,10i) {x} 95@(328@,8f) {y} 103@(328@,8f) {z} 111@(328@,8f) {minAltitude} -1.0 {maxAltitude} 0.5
set_plane_throttle 35@(328@,10i) {throttle} -0.9

:ZERO1_12273
if 
  160@ == 0
goto_if_false @ZERO1_12568
if 
  does_object_exist 45@
goto_if_false @ZERO1_12568
if 
  locate_object_3d 45@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_12568
if 
  331@ > 5
goto_if_false @ZERO1_12393
331@ -= 5
goto @ZERO1_12568

:ZERO1_12393
160@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_12455
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12455
if 
  not is_char_dead 55@
goto_if_false @ZERO1_12568
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21809

:ZERO1_12478
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_12504
wait 0
goto @ZERO1_12478

:ZERO1_12504
print_now 'ZER1_BG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_12524
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_12550
wait 0
goto @ZERO1_12524

:ZERO1_12550
clear_this_print 'ZER1_BG'
331@ = 0

:ZERO1_12568
if 
  161@ == 0
goto_if_false @ZERO1_12863
if 
  does_object_exist 46@
goto_if_false @ZERO1_12863
if 
  locate_object_3d 46@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_12863
if 
  332@ > 5
goto_if_false @ZERO1_12688
332@ -= 5
goto @ZERO1_12863

:ZERO1_12688
161@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_12750
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12750
if 
  not is_char_dead 55@
goto_if_false @ZERO1_12863
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21811

:ZERO1_12773
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_12799
wait 0
goto @ZERO1_12773

:ZERO1_12799
print_now 'ZER1_BJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_12819
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_12845
wait 0
goto @ZERO1_12819

:ZERO1_12845
clear_this_print 'ZER1_BJ'
332@ = 0

:ZERO1_12863
if 
  162@ == 0
goto_if_false @ZERO1_13158
if 
  does_object_exist 47@
goto_if_false @ZERO1_13158
if 
  locate_object_3d 47@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_13158
if 
  333@ > 5
goto_if_false @ZERO1_12983
333@ -= 5
goto @ZERO1_13158

:ZERO1_12983
162@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_13045
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_13045
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13158
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21812

:ZERO1_13068
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13094
wait 0
goto @ZERO1_13068

:ZERO1_13094
print_now 'ZER1_BK' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13114
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13140
wait 0
goto @ZERO1_13114

:ZERO1_13140
clear_this_print 'ZER1_BK'
333@ = 0

:ZERO1_13158
if 
  163@ == 0
goto_if_false @ZERO1_13564
if 
  does_object_exist 48@
goto_if_false @ZERO1_13564
if 
  locate_object_3d 48@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_13564
if 
  334@ > 5
goto_if_false @ZERO1_13278
334@ -= 5
goto @ZERO1_13564

:ZERO1_13278
163@ = 1
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 363@(329@,4i)
334@ = 0
147@ = 0
148@ = 0
150@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13536
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21819

:ZERO1_13453
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13479
wait 0
goto @ZERO1_13453

:ZERO1_13479
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13499
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13525
wait 0
goto @ZERO1_13499

:ZERO1_13525
clear_this_print 'ZER1_EA'

:ZERO1_13536
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
print_now 'ZER1_19' {time} 5000 {flag} 1
return 

:ZERO1_13564
return 

:ZERO1_13566
if or
  329@ > 3
  5 >= $fleet_destroyed_counter
goto_if_false @ZERO1_13913
147@ = 0
148@ = 0
150@ = 1
if 
  does_object_exist 45@(329@,10i)
goto_if_false @ZERO1_13772
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 363@(329@,4i)

:ZERO1_13772
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13878
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21819

:ZERO1_13795
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13821
wait 0
goto @ZERO1_13795

:ZERO1_13821
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13841
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13867
wait 0
goto @ZERO1_13841

:ZERO1_13867
clear_this_print 'ZER1_EA'

:ZERO1_13878
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
print_now 'ZER1_19' {time} 5000 {flag} 1
return 
goto @ZERO1_13945

:ZERO1_13913
set_var_int_to_lvar_int $fleet_destroyed_counter = 331@
add_int_lvar_to_int_var $fleet_destroyed_counter += 332@
add_int_lvar_to_int_var $fleet_destroyed_counter += 333@
add_int_lvar_to_int_var $fleet_destroyed_counter += 334@

:ZERO1_13945
return 

:ZERO1_13947
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 363@(329@,4i)
if and
  4 > 329@
  329@ >= 0
goto_if_false @ZERO1_15106
329@ += 1
if 
  329@ == 1
goto_if_false @ZERO1_14297
60@ = -2308.4961
68@ = 131.349
61@ = -2080.5811
69@ = 122.0999
62@ = -2308.6931
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.3679
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14297
if 
  329@ == 2
goto_if_false @ZERO1_14475
60@ = -2308.4961
68@ = 131.349
61@ = -2080.5811
69@ = 122.0999
62@ = -2308.6931
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.3679
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14475
if 
  329@ == 3
goto_if_false @ZERO1_14660
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
60@ = -2119.4961
68@ = 91.349
61@ = -2258.5811
69@ = 169.0999
62@ = -2278.6931
70@ = 66.552
63@ = -2248.54
71@ = 181.5174
64@ = -2180.457
72@ = 22.6713
65@ = -2181.908
73@ = 25.0278
66@ = -2181.3679
74@ = 18.8913
67@ = -2180.021
75@ = 18.1988

:ZERO1_14660
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.0
if 
  not is_car_dead 35@
goto_if_false @ZERO1_14735
plane_goto_coords 35@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
336@ = get_game_timer 

:ZERO1_14735
if 
  not is_car_dead 36@
goto_if_false @ZERO1_14788
plane_goto_coords 36@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
337@ = get_game_timer 

:ZERO1_14788
if 
  not is_car_dead 37@
goto_if_false @ZERO1_14841
plane_goto_coords 37@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
338@ = get_game_timer 

:ZERO1_14841
if 
  not is_car_dead 38@
goto_if_false @ZERO1_14894
plane_goto_coords 38@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
339@ = get_game_timer 

:ZERO1_14894
if 
  not is_car_dead 39@
goto_if_false @ZERO1_14947
plane_goto_coords 39@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
340@ = get_game_timer 

:ZERO1_14947
if 
  not is_car_dead 40@
goto_if_false @ZERO1_15000
plane_goto_coords 40@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
341@ = get_game_timer 

:ZERO1_15000
if 
  not is_car_dead 41@
goto_if_false @ZERO1_15053
plane_goto_coords 41@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
342@ = get_game_timer 

:ZERO1_15053
if 
  not is_car_dead 42@
goto_if_false @ZERO1_15106
plane_goto_coords 42@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
343@ = get_game_timer 

:ZERO1_15106
return 
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
return 

:ZERO1_15137
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
clear_wanted_level $player1

:ZERO1_15157
if 
  get_fading_status 
goto_if_false @ZERO1_15181
wait 0
goto @ZERO1_15157

:ZERO1_15181
switch_widescreen True
set_player_control $player1 {state} False
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 270.0
request_animation "CASINO"

:ZERO1_15217
if 
  not has_animation_loaded "CASINO"
goto_if_false @ZERO1_15249
wait 0
goto @ZERO1_15217

:ZERO1_15249
remove_animation "ON_LOOKERS"
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
task_shoot_at_coord $scplayer {x} -2237.22 {y} 170.55 {z} 58.45 {time} 3000
if 
  is_char_dead 55@
goto_if_false @ZERO1_15352
55@ = create_char PedType.CivMale {modelId} 290 {x} -2235.0 {y} 123.0 {z} 57.1
set_char_health 55@ {health} 1000
set_char_heading 55@ {heading} 160.0

:ZERO1_15352
if 
  not is_char_dead 55@
goto_if_false @ZERO1_15561
clear_char_tasks 55@
set_char_coordinates 55@ {x} -2235.0 {y} 123.0 {z} 57.1
set_char_heading 55@ {heading} 160.0
367@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2237.9299 {y} 121.4 {z} 57.0 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "MANWIND" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_achieve_heading -1 {heading} 100.0
task_scratch_head -1
task_chat_with_char -1 {other} $scplayer {leadSpeaker} True {_p4} 1
close_sequence_task 367@
perform_sequence_task 55@ {sequence} 367@
clear_sequence_task 367@
set_fixed_camera_position -2242.8369 {y} 130.3954 {z} 60.7181 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2242.324 {y} 129.5807 {z} 60.4482 {switchStyle} SwitchType.JumpCut

:ZERO1_15561
do_fade 1000 {direction} Fade.In
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_15576
if 
  get_fading_status 
goto_if_false @ZERO1_15600
wait 0
goto @ZERO1_15576

:ZERO1_15600
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21822

:ZERO1_15607
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_15633
wait 0
goto @ZERO1_15607

:ZERO1_15633
print_now 'ZER1_FA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_15653
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_15679
wait 0
goto @ZERO1_15653

:ZERO1_15679
clear_this_print 'ZER1_FA'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21823

:ZERO1_15697
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_15723
wait 0
goto @ZERO1_15697

:ZERO1_15723
print_now 'ZER1_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_15743
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_15769
wait 0
goto @ZERO1_15743

:ZERO1_15769
clear_this_print 'ZER1_FB'
177@ = 0
TIMERB = 0
TIMERA = 0

:ZERO1_15801
if 
  177@ <> 10
goto_if_false @ZERO1_16904
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_16222
if 
  TIMERA > 2000
goto_if_false @ZERO1_16222
177@ = 1
set_fixed_camera_position -2238.853 {y} 124.0934 {z} 57.5797 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2238.4761 {y} 123.2044 {z} 57.8399 {switchStyle} SwitchType.JumpCut
TIMERA = 0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_15952
task_look_at_char $scplayer {target} 55@ {time} 3500

:ZERO1_15952
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21824

:ZERO1_15959
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_15985
wait 0
goto @ZERO1_15959

:ZERO1_15985
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16009
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16009
print_now 'ZER1_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16029
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16055
wait 0
goto @ZERO1_16029

:ZERO1_16055
clear_this_print 'ZER1_FC'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16087
stop_char_facial_talk 55@

:ZERO1_16087
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21825

:ZERO1_16094
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16120
wait 0
goto @ZERO1_16094

:ZERO1_16120
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16144
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16144
print_now 'ZER1_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16164
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16190
wait 0
goto @ZERO1_16164

:ZERO1_16190
clear_this_print 'ZER1_FD'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16222
stop_char_facial_talk 55@

:ZERO1_16222
if 
  177@ == 1
goto_if_false @ZERO1_16328
if 
  TIMERA > 100
goto_if_false @ZERO1_16328
177@ = 2
TIMERA = 0
detach_char_from_car $scplayer
set_fixed_camera_position -2237.9751 {y} 122.7383 {z} 58.3408 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2238.1931 {y} 121.7735 {z} 58.4879 {switchStyle} SwitchType.JumpCut

:ZERO1_16328
if 
  177@ == 2
goto_if_false @ZERO1_16871
if 
  TIMERA > 200
goto_if_false @ZERO1_16871
177@ = 3
TIMERA = 0
367@ = open_sequence_task 
task_achieve_heading -1 {heading} 270.0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16420
task_chat_with_char -1 {other} 55@ {leadSpeaker} False {_p4} 1

:ZERO1_16420
close_sequence_task 367@
perform_sequence_task $scplayer {sequence} 367@
clear_sequence_task 367@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21826

:ZERO1_16445
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16471
wait 0
goto @ZERO1_16445

:ZERO1_16471
print_now 'ZER1_FE' {time} 10000 {flag} 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16511
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16511
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16515
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16541
wait 0
goto @ZERO1_16515

:ZERO1_16541
clear_this_print 'ZER1_FE'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16573
stop_char_facial_talk 55@

:ZERO1_16573
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21828

:ZERO1_16580
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16606
wait 0
goto @ZERO1_16580

:ZERO1_16606
print_now 'ZER1_FG' {time} 10000 {flag} 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16646
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16646
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16650
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16676
wait 0
goto @ZERO1_16650

:ZERO1_16676
clear_this_print 'ZER1_FG'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16708
stop_char_facial_talk 55@

:ZERO1_16708
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16729
task_scratch_head 55@

:ZERO1_16729
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21827

:ZERO1_16736
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16762
wait 0
goto @ZERO1_16736

:ZERO1_16762
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16786
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16786
print_now 'ZER1_FF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16806
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16832
wait 0
goto @ZERO1_16806

:ZERO1_16832
clear_this_print 'ZER1_FF'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16864
stop_char_facial_talk 55@

:ZERO1_16864
177@ = 10

:ZERO1_16871
if 
  TIMERB > 14000
goto_if_false @ZERO1_16897
177@ = 10

:ZERO1_16897
goto @ZERO1_15801

:ZERO1_16904
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:ZERO1_16919
if 
  get_fading_status 
goto_if_false @ZERO1_16943
wait 0
goto @ZERO1_16919

:ZERO1_16943
switch_widescreen False
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
detach_char_from_car $scplayer
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17023
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
task_achieve_heading $scplayer {heading} 90.0

:ZERO1_17023
wait 500
restore_camera_jumpcut 
clear_area -2246.0259 {y} 134.895 {z} 34.3047 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:ZERO1_17061
if 
  get_fading_status 
goto_if_false @ZERO1_17085
wait 0
goto @ZERO1_17061

:ZERO1_17085
return 

:ZERO1_17087
gosub @ZERO1_15137
set_player_control $player1 {state} True
print_with_number_big 'M_PASS' {num} 3000 {duration} 100 {style} TextStyle.Middle
add_score $player1 {money} 3000
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'ZERO_1'
$flag_zero_mission_counter += 1
return 

:ZERO1_17155
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 5000
do_fade 500 {direction} Fade.Out
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_17191
if 
  get_fading_status 
goto_if_false @ZERO1_17215
wait 0
goto @ZERO1_17191

:ZERO1_17215
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
detach_char_from_car $scplayer
switch_widescreen False
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17295
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
task_achieve_heading $scplayer {heading} 90.0

:ZERO1_17295
load_scene -2246.0259 {y} 134.895 {z} 34.3047
restore_camera_jumpcut 
clear_area -2246.0259 {y} 134.895 {z} 34.3047 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:ZERO1_17345
if 
  get_fading_status 
goto_if_false @ZERO1_17369
wait 0
goto @ZERO1_17345

:ZERO1_17369
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17392
set_player_control $player1 {state} True

:ZERO1_17392
return 

:ZERO1_17394
detach_char_from_car $scplayer
release_weather 
set_fading_colour 0 {g} 0 {b} 0
remove_all_script_fires 
$onmission = 0
set_police_ignore_player $player1 {state} False
set_wanted_multiplier 1.0
remove_rc_buggy 
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 464
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed #WONGS_ERECTION
mark_model_as_no_longer_needed #RCBOMB
mark_model_as_no_longer_needed #WONGS_ERECTION2
mark_model_as_no_longer_needed #MINIGUN_BASE
mark_model_as_no_longer_needed 366
unload_special_character 1
clear_onscreen_counter $fleet_destroyed_counter
clear_onscreen_timer $transmitter_overallhealth
delete_car 35@
delete_car 36@
delete_car 37@
delete_car 38@
delete_car 39@
delete_car 40@
delete_car 41@
delete_car 42@
delete_car 43@
delete_car 44@
clear_small_prints 
camera_reset_new_scriptables 
disable_all_entry_exits False
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_object 49@
delete_object 50@
delete_object 51@
delete_object 52@
delete_object 53@
delete_object 54@
delete_object 188@
delete_object 189@
delete_object 190@
delete_object 191@
delete_object 192@
delete_object 193@
delete_object 194@
delete_object 195@
delete_object 196@
delete_object 197@
delete_object 198@
delete_object 199@
delete_object 200@
delete_object 201@
delete_object 202@
delete_object 203@
delete_object 204@
delete_object 205@
delete_object 206@
delete_object 207@
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
remove_blip 182@
remove_blip 183@
remove_blip 184@
remove_blip 185@
remove_blip 186@
remove_blip 187@
remove_stuck_car_check 35@
remove_stuck_car_check 36@
remove_stuck_car_check 37@
remove_stuck_car_check 38@
remove_stuck_car_check 39@
remove_stuck_car_check 40@
remove_stuck_car_check 41@
remove_stuck_car_check 42@
remove_stuck_car_check 43@
remove_stuck_car_check 44@
$timer_mobile_start = get_game_timer 
remove_char_elegantly 55@
mark_object_as_no_longer_needed 34@
remove_animation "CASINO"
remove_animation "ON_LOOKERS"
mission_has_finished 
return 

//-------------Mission 73---------------
// Originally: Supply Lines...

:ZERO2
gosub @ZERO2_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO2_27
gosub @ZERO2_9363

:ZERO2_27
gosub @ZERO2_9365
terminate_this_script 

:ZERO2_36
119@ = 0
$onmission = 1
register_mission_given 
script_name 'ZERO2'
set_player_control $player1 {state} False
load_mission_text 'ZERO2'
display_car_names False
set_fading_colour 0 {g} 0 {b} 0
set_area_visible 6
set_player_control $player1 {state} False
force_weather_now WeatherType.SunnySf
load_cutscene 'ZERO_2'

:ZERO2_119
if 
  not has_cutscene_loaded 
goto_if_false @ZERO2_143
wait 0
goto @ZERO2_119

:ZERO2_143
start_cutscene 
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} False

:ZERO2_159
if 
  not has_cutscene_finished 
goto_if_false @ZERO2_183
wait 0
goto @ZERO2_159

:ZERO2_183
clear_cutscene 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:ZERO2_206
if 
  get_fading_status 
goto_if_false @ZERO2_230
wait 0
goto @ZERO2_206

:ZERO2_230
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False
96@ = 1
97@ = 0
98@ = 0
99@ = 0
110@ = 0
108@ = 0
109@ = 0
116@ = 0
117@ = 0
100@ = 0
101@ = 0
111@ = 0
112@ = 0
113@ = 0
121@ = 0
59@ = 360000.0
set_lvar_float_to_lvar_float 60@ = 59@
63@ = -2006.77
68@ = 365.69
73@ = 34.35
78@ = 0.0
64@ = -2250.573
69@ = 22.8303
74@ = 34.4634
79@ = 180.0
65@ = -2266.27
70@ = 53.1194
75@ = 34.38
80@ = 90.0
66@ = -2441.4241
71@ = 41.963
76@ = 33.004
81@ = 90.0
67@ = -1728.08
72@ = 850.89
77@ = 23.73
82@ = 270.0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
122@ = 0
83@ = -2205.4399
84@ = 128.99
85@ = 57.33
86@ = 90.0
87@ = -2227.0
88@ = 113.0
89@ = 35.5
61@ = 100.0
$mission_countdown_zero1 = 100
TIMERA = 0
129@ = 0
disable_all_entry_exits True
request_model 464
request_model 459
request_model 352
request_model 510
request_model 468
load_special_character 1 {modelName} 'ZERO'
load_all_models_now 

:ZERO2_753
if or
  not has_model_loaded 464
  not has_model_loaded 459
  not has_model_loaded 352
  not has_model_loaded 510
  not has_model_loaded 468
goto_if_false @ZERO2_800
wait 0
goto @ZERO2_753

:ZERO2_800
if 
  not has_special_character_loaded 1
goto_if_false @ZERO2_826
wait 0
goto @ZERO2_800

:ZERO2_826
56@ = load_char_decision_maker DecisionMakerType.Empty

:ZERO2_833
wait 0
if 
  96@ == 1
goto_if_false @ZERO2_862
gosub @ZERO2_944

:ZERO2_862
if 
  116@ == 1
goto_if_false @ZERO2_887
gosub @ZERO2_7137

:ZERO2_887
if 
  100@ == 1
goto_if_false @ZERO2_912
goto @ZERO2_9334

:ZERO2_912
if 
  101@ == 1
goto_if_false @ZERO2_937
goto @ZERO2_9363

:ZERO2_937
goto @ZERO2_833

:ZERO2_944
clear_area 87@ {y} 88@ {z} 89@ {radius} 1000.0 {clearParticles} True
35@ = create_car 459 {x} -2250.8999 {y} 124.6 {z} 28.48
set_load_collision_for_car_flag 35@ {state} False
freeze_car_position 35@ {state} True
open_car_door 35@ {door} CarDoor.LeftRearDoor
open_car_door 35@ {door} CarDoor.RightRearDoor
warp_char_into_car $scplayer {vehicle} 35@
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_car_dead 35@
goto_if_false @ZERO2_1079
57@ = create_char_as_passenger 35@ {pedType} PedType.CivMale {modelId} 290 {seat} SeatId.BikeRear
set_car_health 35@ {health} 1000
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:ZERO2_1079
set_police_ignore_player $player1 {state} True
give_remote_controlled_model_to_player $player1 {x} 83@ {y} 84@ {z} 85@ {angle} 40.09 {modelId} 464
34@ = get_remote_controlled_car $player1
set_car_heading 34@ {heading} 90.0
set_enable_rc_detonate_on_contact False
set_enable_rc_detonate False
set_car_health 34@ {health} 900
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
129@ = 0

:ZERO2_1164
if 
  5 > 129@
goto_if_false @ZERO2_1769
wait 0
clear_area 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {radius} 1000.0 {clearParticles} True
if 
  129@ == 0
goto_if_false @ZERO2_1279
create_car 468 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1000

:ZERO2_1279
if 
  129@ == 1
goto_if_false @ZERO2_1342
create_car 510 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1342
if 
  129@ == 2
goto_if_false @ZERO2_1405
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1405
if 
  129@ == 3
goto_if_false @ZERO2_1468
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1468
if 
  129@ == 4
goto_if_false @ZERO2_1542
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500
lock_car_doors 46@(129@,5i) {lockStatus} CarLock.SkipShutDoors

:ZERO2_1542
set_car_heading 46@(129@,5i) {heading} 78@(129@,5f)
set_car_proofs 46@(129@,5i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
create_random_char_as_driver 46@(129@,5i) {var_handle} 36@(129@,5i)
give_weapon_to_char 36@(129@,5i) {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 36@(129@,5i) {accuracy} 100
set_load_collision_for_car_flag 46@(129@,5i) {state} False
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_1721
create_random_char_as_passenger 46@(129@,5i) {seat} SeatId.BikeRear {var_handle} 51@(129@,5i)
give_weapon_to_char 51@(129@,5i) {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 51@(129@,5i) {accuracy} 100
set_char_decision_maker 51@(129@,5i) {handleOrTemplate} 56@
set_char_decision_maker 36@(129@,5i) {handleOrTemplate} 56@

:ZERO2_1721
task_car_drive_wander 36@(129@,5i) {vehicle} 46@(129@,5i) {speed} 3.0 {drivingMode} DrivingMode.StopForCars
103@(129@,5i) = 0
129@ += 1
goto @ZERO2_1164

:ZERO2_1769
TIMERB = 0
set_fixed_camera_position -2273.8411 {y} 45.5794 {z} 37.0987 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2273.2971 {y} 46.4174 {z} 37.1385 {switchStyle} SwitchType.JumpCut
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2285.54 {y} 41.31 {z} 35.01 {radius} 1000.0 {clearParticles} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2273.8411 {fromY} 45.5794 {fromZ} 37.0987 {toX} -2280.6531 {toY} 50.3058 {toZ} 35.7357 {time} 5000 {ease} True
camera_set_vector_track -2273.2971 {fromY} 46.4174 {fromZ} 37.1385 {toX} -2280.054 {toY} 51.104 {toZ} 35.6677 {time} 5000 {ease} True
switch_widescreen True
TIMERA = 0
TIMERB = 0
load_scene_in_direction -2273.8411 {y} 45.5794 {z} 37.0987 {heading} 310.0
set_fading_colour 0 {g} 0 {b} 0
wait 1000
do_fade 1000 {direction} Fade.In
120@ = 0

:ZERO2_2016
if 
  120@ <> 10
goto_if_false @ZERO2_2447
wait 0
if 
  120@ == 0
goto_if_false @ZERO2_2160
120@ = 1
skip_cutscene_start_internal @ZERO2_2447
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22016

:ZERO2_2077
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2103
wait 0
goto @ZERO2_2077

:ZERO2_2103
print_now 'ZER2_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2123
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2149
wait 0
goto @ZERO2_2123

:ZERO2_2149
clear_this_print 'ZER2_AB'

:ZERO2_2160
if 
  120@ == 1
goto_if_false @ZERO2_2275
120@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22017

:ZERO2_2192
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2218
wait 0
goto @ZERO2_2192

:ZERO2_2218
print_now 'ZER2_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2238
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2264
wait 0
goto @ZERO2_2238

:ZERO2_2264
clear_this_print 'ZER2_AC'

:ZERO2_2275
if 
  120@ == 2
goto_if_false @ZERO2_2390
120@ = 3
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22018

:ZERO2_2307
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2333
wait 0
goto @ZERO2_2307

:ZERO2_2333
print_now 'ZER2_AD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2353
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2379
wait 0
goto @ZERO2_2353

:ZERO2_2379
clear_this_print 'ZER2_AD'

:ZERO2_2390
if 
  is_skip_cutscene_button_pressed 
goto_if_false @ZERO2_2414
clear_mission_audio MissionAudioSlot.Slot1
120@ = 10

:ZERO2_2414
if 
  TIMERA > 5000
goto_if_false @ZERO2_2440
120@ = 10

:ZERO2_2440
goto @ZERO2_2016

:ZERO2_2447
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_2464
if 
  get_fading_status 
goto_if_false @ZERO2_2488
wait 0
goto @ZERO2_2464

:ZERO2_2488
camera_reset_new_scriptables 
if 
  not is_car_dead 35@
goto_if_false @ZERO2_2543
set_car_coordinates 35@ {x} -2233.8999 {y} 122.6 {z} 700.48
set_car_heading 35@ {heading} 90.0
freeze_car_position 35@ {state} True

:ZERO2_2543
set_radio_channel RadioChannel.RadioX
if 
  not is_car_dead 35@
goto_if_false @ZERO2_2568
close_all_car_doors 35@

:ZERO2_2568
switch_widescreen False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
restore_camera_jumpcut 
if 
  not is_car_dead 34@
goto_if_false @ZERO2_2628
point_camera_at_car 34@ {mode} CameraMode.CamOnAString {switchStyle} SwitchType.JumpCut
freeze_car_position 34@ {state} False
wait 0
set_camera_zoom 1

:ZERO2_2628
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:ZERO2_2643
if 
  get_fading_status 
goto_if_false @ZERO2_2667
wait 0
goto @ZERO2_2643

:ZERO2_2667
set_player_control $player1 {state} True
129@ = 0

:ZERO2_2681
if 
  5 > 129@
goto_if_false @ZERO2_2749
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_2735
add_blip_for_char 36@(129@,5i) {var_handle} 123@(129@,5i)

:ZERO2_2735
129@ += 1
goto @ZERO2_2681

:ZERO2_2749
display_onscreen_counter_with_string $mission_countdown_zero1 {display} CounterDisplay.Bar {text} 'ZER2_28'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22000

:ZERO2_2776
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2802
wait 0
goto @ZERO2_2776

:ZERO2_2802
print_now 'ZER2_AA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2822
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2848
wait 0
goto @ZERO2_2822

:ZERO2_2848
clear_this_print 'ZER2_AA'
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6981

:ZERO2_2875
if 
  110@ <> 1
goto_if_false @ZERO2_6981
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3014
62@ = get_car_speed 34@
if 
  62@ > 1.0
goto_if_false @ZERO2_2986
59@ -= 45.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $mission_countdown_zero1 =# 61@

:ZERO2_2986
83@, 84@, 85@ = get_car_coordinates 34@
58@ = get_city_from_coords 83@ {y} 84@ {z} 85@

:ZERO2_3014
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_3049
explode_car 34@
explode_car 34@

:ZERO2_3049
if 
  119@ == 0
goto_if_false @ZERO2_3092
print_help 'ZER2_1'
119@ = 1
TIMERA = 0

:ZERO2_3092
if 
  119@ == 1
goto_if_false @ZERO2_3156
if 
  TIMERA > 8000
goto_if_false @ZERO2_3156
clear_help 
print_help 'ZER2_2'
119@ = 2
TIMERA = 0

:ZERO2_3156
if 
  119@ == 2
goto_if_false @ZERO2_3220
if 
  TIMERA > 8000
goto_if_false @ZERO2_3220
clear_help 
print_help 'ZER2_30'
119@ = 3
TIMERA = 0

:ZERO2_3220
if 
  119@ == 3
goto_if_false @ZERO2_3282
if 
  TIMERA > 8000
goto_if_false @ZERO2_3282
clear_help 
print_now 'ZER2_14' {time} 10000 {flag} 1
119@ = 4

:ZERO2_3282
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO2_3341
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 1
101@ = 0
return 

:ZERO2_3341
if 
  122@ == 0
goto_if_false @ZERO2_3474
if 
  50 >= $mission_countdown_zero1
goto_if_false @ZERO2_3474
122@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22008

:ZERO2_3391
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3417
wait 0
goto @ZERO2_3391

:ZERO2_3417
print_now 'ZER2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3437
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3463
wait 0
goto @ZERO2_3437

:ZERO2_3463
clear_this_print 'ZER2_DA'

:ZERO2_3474
if 
  122@ == 1
goto_if_false @ZERO2_3607
if 
  10 >= $mission_countdown_zero1
goto_if_false @ZERO2_3607
122@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22009

:ZERO2_3524
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3550
wait 0
goto @ZERO2_3524

:ZERO2_3550
print_now 'ZER2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3570
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3596
wait 0
goto @ZERO2_3570

:ZERO2_3596
clear_this_print 'ZER2_DB'

:ZERO2_3607
if 
  0 >= $mission_countdown_zero1
goto_if_false @ZERO2_4022
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3655
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO2_3655
clear_onscreen_counter $mission_countdown_zero1
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_42' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21821

:ZERO2_3755
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3781
wait 0
goto @ZERO2_3755

:ZERO2_3781
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3785
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3837
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3830
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_3830
goto @ZERO2_3785

:ZERO2_3837
remove_rc_buggy 
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_3928
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_3898
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_3918

:ZERO2_3898
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_3918
set_char_heading $scplayer {heading} 90.0

:ZERO2_3928
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_3943
if 
  get_fading_status 
goto_if_false @ZERO2_3967
wait 0
goto @ZERO2_3943

:ZERO2_3967
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_3996
if 
  get_fading_status 
goto_if_false @ZERO2_4020
wait 0
goto @ZERO2_3996

:ZERO2_4020
return 

:ZERO2_4022
if 
  is_car_dead 34@
goto_if_false @ZERO2_4370
clear_onscreen_counter $mission_countdown_zero1
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21820

:ZERO2_4103
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4129
wait 0
goto @ZERO2_4103

:ZERO2_4129
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4133
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4185
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_4178
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_4178
goto @ZERO2_4133

:ZERO2_4185
remove_rc_buggy 
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_4276
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_4246
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_4266

:ZERO2_4246
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_4266
set_char_heading $scplayer {heading} 90.0

:ZERO2_4276
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_4291
if 
  get_fading_status 
goto_if_false @ZERO2_4315
wait 0
goto @ZERO2_4291

:ZERO2_4315
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_4344
if 
  get_fading_status 
goto_if_false @ZERO2_4368
wait 0
goto @ZERO2_4344

:ZERO2_4368
return 

:ZERO2_4370
129@ = 0

:ZERO2_4377
if 
  5 > 129@
goto_if_false @ZERO2_6877
if 
  not is_car_dead 34@
goto_if_false @ZERO2_5009
83@, 84@, 85@ = get_car_coordinates 34@
if 
  111@(129@,5i) == 0
goto_if_false @ZERO2_5009
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_4496
if 
  103@(129@,5i) == 1
goto_if_false @ZERO2_4489

:ZERO2_4489
goto @ZERO2_5009

:ZERO2_4496
111@(129@,5i) = 1
remove_blip 123@(129@,5i)
mark_car_as_no_longer_needed 46@(129@,5i)
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_4559
mark_char_as_no_longer_needed 51@(129@,5i)

:ZERO2_4559
121@ += 1
111@(129@,5i) = 1
if 
  121@ == 1
goto_if_false @ZERO2_4685
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22003

:ZERO2_4602
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4628
wait 0
goto @ZERO2_4602

:ZERO2_4628
print_now 'ZER2_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4648
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4674
wait 0
goto @ZERO2_4648

:ZERO2_4674
clear_this_print 'ZER2_CA'

:ZERO2_4685
if 
  121@ == 2
goto_if_false @ZERO2_4793
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22005

:ZERO2_4710
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4736
wait 0
goto @ZERO2_4710

:ZERO2_4736
print_now 'ZER2_CC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4756
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4782
wait 0
goto @ZERO2_4756

:ZERO2_4782
clear_this_print 'ZER2_CC'

:ZERO2_4793
if 
  121@ == 3
goto_if_false @ZERO2_4901
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22006

:ZERO2_4818
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4844
wait 0
goto @ZERO2_4818

:ZERO2_4844
print_now 'ZER2_CD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4864
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4890
wait 0
goto @ZERO2_4864

:ZERO2_4890
clear_this_print 'ZER2_CD'

:ZERO2_4901
if 
  121@ == 4
goto_if_false @ZERO2_5009
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22007

:ZERO2_4926
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4952
wait 0
goto @ZERO2_4926

:ZERO2_4952
print_now 'ZER2_CE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4972
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4998
wait 0
goto @ZERO2_4972

:ZERO2_4998
clear_this_print 'ZER2_CE'

:ZERO2_5009
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6531
95@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_5109
91@, 92@, 93@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_5109
if 
  locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_5595
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_5595
if 
  119@ > 3
goto_if_false @ZERO2_5595
if 
  117@ == 0
goto_if_false @ZERO2_5224
print_help 'ZER2_4'
117@ = 1

:ZERO2_5224
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO2_5595
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
clear_onscreen_counter $mission_countdown_zero1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_5423
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_5393
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_5413

:ZERO2_5393
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_5413
set_char_heading $scplayer {heading} 90.0

:ZERO2_5423
add_explosion 91@ {y} 92@ {z} 93@ {type} ExplosionType.Grenade
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21821

:ZERO2_5443
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5469
wait 0
goto @ZERO2_5443

:ZERO2_5469
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5473
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5499
wait 0
goto @ZERO2_5473

:ZERO2_5499
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_5516
if 
  get_fading_status 
goto_if_false @ZERO2_5540
wait 0
goto @ZERO2_5516

:ZERO2_5540
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_5569
if 
  get_fading_status 
goto_if_false @ZERO2_5593
wait 0
goto @ZERO2_5569

:ZERO2_5593
return 

:ZERO2_5595
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6524
if 
  103@(129@,5i) == 0
goto_if_false @ZERO2_6277
if or
  has_car_been_damaged_by_car 46@(129@,5i) {other} 34@
  has_car_been_damaged_by_weapon 46@(129@,5i) {weaponType} WeaponType.M4
goto_if_false @ZERO2_6277
103@(129@,5i) = 1
if or
  129@ == 2
  129@ == 1
goto_if_false @ZERO2_5987
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_5980
task_leave_car_and_flee 36@(129@,5i) {vehicle} 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@
task_destroy_car 36@(129@,5i) {vehicle} 34@
if 
  129@ == 1
goto_if_false @ZERO2_5872
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22002

:ZERO2_5789
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5815
wait 0
goto @ZERO2_5789

:ZERO2_5815
print_now 'ZER2_BB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5835
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5861
wait 0
goto @ZERO2_5835

:ZERO2_5861
clear_this_print 'ZER2_BB'

:ZERO2_5872
if 
  129@ == 2
goto_if_false @ZERO2_5980
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22001

:ZERO2_5897
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5923
wait 0
goto @ZERO2_5897

:ZERO2_5923
print_now 'ZER2_BA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5943
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5969
wait 0
goto @ZERO2_5943

:ZERO2_5969
clear_this_print 'ZER2_BA'

:ZERO2_5980
goto @ZERO2_6068

:ZERO2_5987
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6068
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_6068
if 
  129@ <> 4
goto_if_false @ZERO2_6068
task_car_drive_wander 36@(129@,5i) {vehicle} 46@(129@,5i) {speed} 12.0 {drivingMode} DrivingMode.PloughThrough

:ZERO2_6068
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_6169
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6169
if 
  not is_char_dead 51@(129@,5i)
goto_if_false @ZERO2_6169
task_drive_by 51@(129@,5i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:ZERO2_6169
if 
  129@ == 0
goto_if_false @ZERO2_6277
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21829

:ZERO2_6194
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_6220
wait 0
goto @ZERO2_6194

:ZERO2_6220
print_now 'ZER1_FH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_6240
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_6266
wait 0
goto @ZERO2_6240

:ZERO2_6266
clear_this_print 'ZER1_FH'

:ZERO2_6277
if 
  119@ == 4
goto_if_false @ZERO2_6524
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6524
if 
  locate_car_3d 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @ZERO2_6422
if 
  is_car_on_screen 46@(129@,5i)
goto_if_false @ZERO2_6422
if 
  98@ == 0
goto_if_false @ZERO2_6422
print 'ZER2_7' {time} 5000 {flag} 1
98@ = 1

:ZERO2_6422
if 
  locate_car_3d 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @ZERO2_6524
if 
  is_car_on_screen 46@(129@,5i)
goto_if_false @ZERO2_6524
if 
  98@ == 1
goto_if_false @ZERO2_6524
print_help 'ZER2_30'
98@ = 2

:ZERO2_6524
goto @ZERO2_6863

:ZERO2_6531
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
clear_onscreen_counter $mission_countdown_zero1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_6662
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_6632
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_6652

:ZERO2_6632
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_6652
set_char_heading $scplayer {heading} 90.0

:ZERO2_6662
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21820

:ZERO2_6685
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_6711
wait 0
goto @ZERO2_6685

:ZERO2_6711
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_6715
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_6767
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6760
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_6760
goto @ZERO2_6715

:ZERO2_6767
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_6784
if 
  get_fading_status 
goto_if_false @ZERO2_6808
wait 0
goto @ZERO2_6784

:ZERO2_6808
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_6837
if 
  get_fading_status 
goto_if_false @ZERO2_6861
wait 0
goto @ZERO2_6837

:ZERO2_6861
return 

:ZERO2_6863
129@ += 1
goto @ZERO2_4377

:ZERO2_6877
if 
  111@ == 1
goto_if_false @ZERO2_6974
if 
  112@ == 1
goto_if_false @ZERO2_6974
if 
  113@ == 1
goto_if_false @ZERO2_6974
if 
  114@ == 1
goto_if_false @ZERO2_6974
if 
  115@ == 1
goto_if_false @ZERO2_6974
110@ = 1

:ZERO2_6974
goto @ZERO2_2875

:ZERO2_6981
96@ = 0
100@ = 0
116@ = 1
108@ = 0
128@ = add_blip_for_coord -2237.3101 {y} 140.08 {z} 57.23
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22020

:ZERO2_7036
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_7062
wait 0
goto @ZERO2_7036

:ZERO2_7062
print_now 'ZER2_EB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_7082
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_7108
wait 0
goto @ZERO2_7082

:ZERO2_7108
clear_this_print 'ZER2_EB'
print_now 'ZER2_41' {time} 5000 {flag} 1
return 

:ZERO2_7137
if 
  not is_car_dead 34@
goto_if_false @ZERO2_8310
62@ = get_car_speed 34@
if 
  62@ > 1.0
goto_if_false @ZERO2_7226
59@ -= 45.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $mission_countdown_zero1 =# 61@

:ZERO2_7226
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_7261
explode_car 34@
explode_car 34@

:ZERO2_7261
95@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_7345
91@, 92@, 93@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_7345
if 
  locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_7851
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_7851
if 
  119@ > 3
goto_if_false @ZERO2_7851
if 
  117@ == 0
goto_if_false @ZERO2_7460
print_help 'ZER2_4'
117@ = 1

:ZERO2_7460
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO2_7851
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
clear_onscreen_counter $mission_countdown_zero1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_7659
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_7629
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_7649

:ZERO2_7629
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_7649
set_char_heading $scplayer {heading} 90.0

:ZERO2_7659
add_explosion 91@ {y} 92@ {z} 93@ {type} ExplosionType.Grenade
explode_car 34@
explode_car 34@
explode_car 34@
explode_car 34@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21821

:ZERO2_7699
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_7725
wait 0
goto @ZERO2_7699

:ZERO2_7725
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_7729
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_7755
wait 0
goto @ZERO2_7729

:ZERO2_7755
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_7772
if 
  get_fading_status 
goto_if_false @ZERO2_7796
wait 0
goto @ZERO2_7772

:ZERO2_7796
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_7825
if 
  get_fading_status 
goto_if_false @ZERO2_7849
wait 0
goto @ZERO2_7825

:ZERO2_7849
return 

:ZERO2_7851
if 
  locate_car_3d 34@ {x} -2237.3101 {y} 140.08 {z} 57.23 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @ZERO2_8303
set_player_control $player1 {state} False
96@ = 0
100@ = 1
116@ = 0
108@ = 0
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True
print_with_number_big 'M_PASS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
play_mission_passed_tune 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22013

:ZERO2_7986
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8012
wait 0
goto @ZERO2_7986

:ZERO2_8012
print_now 'ZER2_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8032
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8058
wait 0
goto @ZERO2_8032

:ZERO2_8058
clear_this_print 'ZER2_FB'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22014

:ZERO2_8076
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8102
wait 0
goto @ZERO2_8076

:ZERO2_8102
print_now 'ZER2_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8122
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8148
wait 0
goto @ZERO2_8122

:ZERO2_8148
clear_this_print 'ZER2_FC'
remove_rc_buggy 
clear_onscreen_counter $mission_countdown_zero1
load_scene -2245.0259 {y} 126.895 {z} 34.3047
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_8272
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_8242
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_8262

:ZERO2_8242
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_8262
set_char_heading $scplayer {heading} 90.0

:ZERO2_8272
wait 1200

:ZERO2_8277
if 
  get_fading_status 
goto_if_false @ZERO2_8301
wait 0
goto @ZERO2_8277

:ZERO2_8301
return 

:ZERO2_8303
goto @ZERO2_8644

:ZERO2_8310
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
TIMERA = 0
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_8443
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_8413
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_8433

:ZERO2_8413
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_8433
set_char_heading $scplayer {heading} 90.0

:ZERO2_8443
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21820

:ZERO2_8450
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8476
wait 0
goto @ZERO2_8450

:ZERO2_8476
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8480
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8532
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_8525
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_8525
goto @ZERO2_8480

:ZERO2_8532
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_8549
if 
  get_fading_status 
goto_if_false @ZERO2_8573
wait 0
goto @ZERO2_8549

:ZERO2_8573
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_8602
if 
  get_fading_status 
goto_if_false @ZERO2_8626
wait 0
goto @ZERO2_8602

:ZERO2_8626
print_now 'ZER2_8' {time} 10000 {flag} 1
return 

:ZERO2_8644
if 
  122@ == 0
goto_if_false @ZERO2_8777
if 
  50 >= $mission_countdown_zero1
goto_if_false @ZERO2_8777
122@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22008

:ZERO2_8694
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8720
wait 0
goto @ZERO2_8694

:ZERO2_8720
print_now 'ZER2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8740
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8766
wait 0
goto @ZERO2_8740

:ZERO2_8766
clear_this_print 'ZER2_DA'

:ZERO2_8777
if 
  122@ == 1
goto_if_false @ZERO2_8910
if 
  20 >= $mission_countdown_zero1
goto_if_false @ZERO2_8910
122@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22009

:ZERO2_8827
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8853
wait 0
goto @ZERO2_8827

:ZERO2_8853
print_now 'ZER2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8873
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8899
wait 0
goto @ZERO2_8873

:ZERO2_8899
clear_this_print 'ZER2_DB'

:ZERO2_8910
if 
  0 >= $mission_countdown_zero1
goto_if_false @ZERO2_9332
if 
  not is_car_dead 34@
goto_if_false @ZERO2_8958
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO2_8958
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_42' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
TIMERA = 0
clear_onscreen_counter $mission_countdown_zero1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_9147
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_9117
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_9137

:ZERO2_9117
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_9137
set_char_heading $scplayer {heading} 90.0

:ZERO2_9147
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21821

:ZERO2_9154
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_9180
wait 0
goto @ZERO2_9154

:ZERO2_9180
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_9184
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_9236
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_9229
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_9229
goto @ZERO2_9184

:ZERO2_9236
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_9253
if 
  get_fading_status 
goto_if_false @ZERO2_9277
wait 0
goto @ZERO2_9253

:ZERO2_9277
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_9306
if 
  get_fading_status 
goto_if_false @ZERO2_9330
wait 0
goto @ZERO2_9306

:ZERO2_9330
return 

:ZERO2_9332
return 

:ZERO2_9334
clear_wanted_level $player1
register_mission_passed 'ZERO_2'
player_made_progress 1
$flag_zero_mission_counter += 1
return 

:ZERO2_9363
return 

:ZERO2_9365
disable_all_entry_exits False
camera_reset_new_scriptables 
display_car_names True
if 
  is_player_playing $player1
goto_if_false @ZERO2_9444
set_player_control $player1 {state} True
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_9444
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
set_char_heading $scplayer {heading} 90.0

:ZERO2_9444
$onmission = 0
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 35@
goto_if_false @ZERO2_9504
set_car_health 35@ {health} 300
set_load_collision_for_car_flag 35@ {state} True
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:ZERO2_9504
mark_car_as_no_longer_needed 35@
release_weather 
remove_blip 128@
delete_car 46@
delete_car 47@
delete_car 48@
delete_car 49@
delete_car 50@
delete_char 51@
delete_char 54@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 127@
remove_rc_buggy 
mark_model_as_no_longer_needed 459
mark_model_as_no_longer_needed 464
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 468
unload_special_character 1
remove_char_elegantly 57@
clear_onscreen_counter $mission_countdown_zero1
$timer_mobile_start = get_game_timer 
clear_prints 
mission_has_finished 
return 

//-------------Mission 74---------------
// Originally: New Model Army

:ZERO4
script_name 'ZERO4'
gosub @ZERO4_47
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO4_38
gosub @ZERO4_26325

:ZERO4_38
gosub @ZERO4_26350
terminate_this_script 

:ZERO4_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0

:ZERO4_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @ZERO4_186
66@ += 1
if 
  66@ > 8
goto_if_false @ZERO4_184
66@ = 0

:ZERO4_184
clear_all_view_variables 

:ZERO4_186
if 
  66@ == 1
goto_if_false @ZERO4_396
set_var_int_to_lvar_int $timer_time_limit_converted_int = 34@
set_var_int_to_lvar_int $ZERO4_view_debug = 35@
set_var_int_to_lvar_int $7425 = 62@
set_var_int_to_lvar_int $7426 = 64@
set_var_int_to_lvar_int $7427 = 63@
set_var_int_to_lvar_int $7428 = 65@
set_var_int_to_lvar_int $7429 = TIMERA
set_var_int_to_lvar_int $7430 = TIMERB
view_integer_variable $timer_time_limit_converted_int {_p2} "M_STAGE"
view_integer_variable $ZERO4_view_debug {_p2} "M_GOALS"
view_integer_variable $7425 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7426 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7427 {_p2} "HELP_FLAG"
view_integer_variable $7428 {_p2} "HELP_TIMER"
view_integer_variable $7429 {_p2} "TIMERA"
view_integer_variable $7430 {_p2} "TIMERB"

:ZERO4_396
if 
  66@ == 2
goto_if_false @ZERO4_659
set_var_int_to_lvar_int $timer_time_limit_converted_int = 110@
set_var_int_to_lvar_int $ZERO4_view_debug = 111@
set_var_int_to_lvar_int $7425 = 112@
set_var_int_to_lvar_int $7426 = 113@
set_var_int_to_lvar_int $7427 = 115@
set_var_int_to_lvar_int $7428 = 116@
set_var_int_to_lvar_int $7429 = 117@
set_var_int_to_lvar_int $7430 = 118@
view_integer_variable $timer_time_limit_converted_int {_p2} "PCAR_PROGRESS"
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_LIVES_LEFT"
view_integer_variable $7425 {_p2} "FIRST_BRIDGE"
view_integer_variable $7426 {_p2} "SECOND_BRIDGE"
view_integer_variable $7427 {_p2} "FIRST_BRIDGE_LAID"
view_integer_variable $7428 {_p2} "SECOND_BRIDGE_LAID"
view_integer_variable $7429 {_p2} "FIRST_BRIDGE_PLANK"
view_integer_variable $7430 {_p2} "SECOND_BRIDGE_PLANK"

:ZERO4_659
if 
  66@ == 3
goto_if_false @ZERO4_916
set_var_int_to_lvar_int $timer_time_limit_converted_int = 119@
set_var_int_to_lvar_int $ZERO4_view_debug = 120@
set_var_int_to_lvar_int $7425 = 121@
set_var_int_to_lvar_int $7426 = 122@
set_var_int_to_lvar_int $7427 = 123@
set_var_int_to_lvar_int $7428 = 102@
set_var_int_to_lvar_int $7429 = 103@
set_var_int_to_lvar_int $7430 = 124@
view_integer_variable $timer_time_limit_converted_int {_p2} "PCAR_IS_PAUSED"
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_IS_OBSTRUCTED"
view_integer_variable $7425 {_p2} "BOMB_IS_ARMED"
view_integer_variable $7426 {_p2} "HELI_IS_CARRYING"
view_integer_variable $7427 {_p2} "CIRCLE_IS_PRESSED"
view_integer_variable $7428 {_p2} "RC_BOMB_TIMER"
view_integer_variable $7429 {_p2} "PHELI_PICKUP_TIMER"
view_integer_variable $7430 {_p2} "OHELI_FLAG"

:ZERO4_916
if 
  66@ == 4
goto_if_false @ZERO4_1153
set_var_int_to_lvar_int $timer_time_limit_converted_int = 125@
set_var_int_to_lvar_int $ZERO4_view_debug = 126@
set_var_int_to_lvar_int $7425 = 127@
set_var_int_to_lvar_int $7426 = 128@
set_var_int_to_lvar_int $7427 = 129@
set_var_int_to_lvar_int $7428 = 130@
set_var_int_to_lvar_int $7429 = 134@
set_var_int_to_var_int $7430 = $zero4_timer
view_integer_variable $timer_time_limit_converted_int {_p2} "OHELI_ROCK"
view_integer_variable $ZERO4_view_debug {_p2} "OHELI_GOTO"
view_integer_variable $7425 {_p2} "PHELI_LIVES"
view_integer_variable $7426 {_p2} "OTANK_FLAG[0]"
view_integer_variable $7427 {_p2} "OTANK_FLAG[1]"
view_integer_variable $7428 {_p2} "OTANK_FLAG[2]"
view_integer_variable $7429 {_p2} "RESPAWNED_TANKS"
view_integer_variable $7430 {_p2} "Z4_PCAR_HEALTH"

:ZERO4_1153
if 
  66@ == 5
goto_if_false @ZERO4_1397
set_var_int_to_lvar_int $timer_time_limit_converted_int = 131@
set_var_int_to_lvar_int $ZERO4_view_debug = 132@
set_var_int_to_lvar_int $7425 = 133@
set_var_int_to_lvar_int $7426 = 135@
set_var_int_to_lvar_int $7427 = 136@
set_var_int_to_lvar_int $7428 = 107@
set_var_int_to_lvar_int $7429 = 137@
set_var_int_to_lvar_int $7430 = 138@
view_integer_variable $timer_time_limit_converted_int {_p2} "OTANK_GOTO[0]"
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_GOTO[1]"
view_integer_variable $7425 {_p2} "OTANK_GOTO[2]"
view_integer_variable $7426 {_p2} "LAST_HEALTH"
view_integer_variable $7427 {_p2} "BANDIT_TAKING_DAMAGE"
view_integer_variable $7428 {_p2} "PCAR_TIMER"
view_integer_variable $7429 {_p2} "PCAR_HALTED"
view_integer_variable $7430 {_p2} "PCAR_R3_PRESSED"

:ZERO4_1397
if 
  66@ == 6
goto_if_false @ZERO4_1610
set_var_int_to_lvar_int $timer_time_limit_converted_int = 139@
set_var_int_to_lvar_int $ZERO4_view_debug = 140@
set_var_int_to_lvar_int $7425 = 141@
set_var_int_to_lvar_int $7426 = 142@
set_var_int_to_var_int $7427 = $7431
set_var_int_to_lvar_int $7428 = 155@
set_var_int_to_lvar_int $7429 = 156@
view_integer_variable $timer_time_limit_converted_int {_p2} "OTANK_TARGET[0]"
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_TARGET[1]"
view_integer_variable $7425 {_p2} "OTANK_TARGET[2]"
view_integer_variable $7426 {_p2} "CARRIED_OBJECT"
view_integer_variable $7427 {_p2} "ZERO4_TIMER"
view_integer_variable $7428 {_p2} "GET_PLANK1"
view_integer_variable $7429 {_p2} "GET_PLANK2"

:ZERO4_1610
if 
  66@ == 7
goto_if_false @ZERO4_1891
set_var_int_to_lvar_int $timer_time_limit_converted_int = 159@
set_var_int_to_lvar_int $ZERO4_view_debug = 160@
set_var_int_to_lvar_int $7425 = 161@
set_var_int_to_lvar_int $7426 = 162@
set_var_int_to_lvar_int $7427 = 163@
set_var_int_to_lvar_int $7428 = 164@
set_var_int_to_lvar_int $7429 = 165@
set_var_int_to_lvar_int $7430 = 166@
view_integer_variable $timer_time_limit_converted_int {_p2} "FIRST_PICKUP_HELP"
view_integer_variable $ZERO4_view_debug {_p2} "FIRST_TIME_STUCK_AT_RIVER"
view_integer_variable $7425 {_p2} "PLANK_BLIP"
view_integer_variable $7426 {_p2} "STUCK_AT_RIVER_DIALOGUE"
view_integer_variable $7427 {_p2} "OBSTRUCT_AUDIO1"
view_integer_variable $7428 {_p2} "OBSTRUCT_AUDIO2"
view_integer_variable $7429 {_p2} "PLAY_FIRST_TIME_BLOCKED_AUDIO"
view_integer_variable $7430 {_p2} "BOMB_BLIP"

:ZERO4_1891
if 
  66@ == 8
goto_if_false @ZERO4_2083
set_var_int_to_lvar_int $timer_time_limit_converted_int = 167@
set_var_int_to_lvar_int $ZERO4_view_debug = 168@
set_var_int_to_lvar_int $7425 = 169@
set_var_int_to_lvar_int $7426 = 170@
set_var_int_to_lvar_int $7427 = 171@
view_integer_variable $timer_time_limit_converted_int {_p2} "FIRST_TIME_TAKING_DAMAGE_FROM_TANK"
view_integer_variable $ZERO4_view_debug {_p2} "BOMB_TANK_DIALOGUE"
view_integer_variable $7425 {_p2} "DEAD_DIALOGUE"
view_integer_variable $7426 {_p2} "NEARLY_DEAD_DIALOGUE"
view_integer_variable $7427 {_p2} "STUCK_AT_RIVER"

:ZERO4_2083
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @ZERO4_2105
38@ = 1

:ZERO4_2105
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @ZERO4_2134
gosub @ZERO4_24100
36@ = 1

:ZERO4_2134
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @ZERO4_2222
if 
  67@ == 0
goto_if_false @ZERO4_2197
67@ = 1
write_debug "LEVEL_PAUSED"
goto @ZERO4_2222

:ZERO4_2197
67@ = 0
write_debug "LEVEL_UNPAUSED"

:ZERO4_2222
if 
  67@ == 1
goto_if_false @ZERO4_2247
goto @ZERO4_23736

:ZERO4_2247
39@ += 1
if 
  39@ > 9
goto_if_false @ZERO4_2279
39@ = 0

:ZERO4_2279
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 102@ += 42@
add_int_lvar_to_int_lvar 103@ += 42@
add_int_lvar_to_int_lvar 104@ += 42@
add_int_lvar_to_int_lvar 105@ += 42@
add_int_lvar_to_int_lvar 106@ += 42@
add_int_lvar_to_int_lvar 107@ += 42@
add_int_lvar_to_int_lvar 108@ += 42@
add_int_lvar_to_int_lvar 109@ += 42@
if 
  34@ == 0
goto_if_false @ZERO4_6793
if 
  35@ == -1
goto_if_false @ZERO4_2701
68@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
69@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
142@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
543@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:ZERO4_2701
110@ = 0
111@ = 0
112@ = 0
113@ = 0
115@ = 0
116@ = 0
117@ = -1
118@ = -1
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 99
129@ = 99
130@ = 99
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$zero4_timer = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
155@ = 0
156@ = 0
43@ = 0

:ZERO4_2953
if 
  12 > 43@
goto_if_false @ZERO4_2996
143@(43@,12i) = 0
43@ += 1
goto @ZERO4_2953

:ZERO4_2996
157@ = 0
158@ = 0
76@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
542@ = 0
172@ = 0
173@ = -1115.1219
175@ = 1029.26
177@ = 1342.483
174@ = -1106.916
176@ = 1056.403
178@ = 1342.053
179@ = -1115.1219
181@ = 1029.26
183@ = 1342.483
180@ = -1098.931
182@ = 1070.193
184@ = 1341.467
185@ = -1115.1219
187@ = 1029.26
189@ = 342.4828
186@ = -1098.257
188@ = 1063.368
190@ = 1341.791
191@ = -975.6996
308@ = 1061.162
425@ = 1344.8
192@ = -978.6938
309@ = 1061.163
426@ = 1344.554
193@ = -981.6267
310@ = 1061.594
427@ = 1343.677
194@ = -984.4323
311@ = 1062.194
428@ = 1342.66
195@ = -987.3215
312@ = 1063.042
429@ = 1341.941
196@ = -990.1523
313@ = 1064.209
430@ = 1341.847
197@ = -992.064
314@ = 1066.6281
431@ = 1341.692
198@ = -994.1041
315@ = 1068.89
432@ = 1341.474
199@ = -996.1589
316@ = 1071.105
433@ = 1341.261
200@ = -998.0826
317@ = 1073.413
434@ = 1341.215
201@ = -1000.138
318@ = 1075.662
435@ = 1341.332
202@ = -1002.858
319@ = 1076.918
436@ = 1341.709
203@ = -1005.518
320@ = 1078.249
437@ = 1342.229
204@ = -1008.56
321@ = 1078.889
438@ = 1342.339
205@ = -1011.59
322@ = 1079.111
439@ = 1342.3459
206@ = -1014.66
323@ = 1079.339
440@ = 1342.318
207@ = -1017.696
324@ = 1079.674
441@ = 1342.458
208@ = -1020.666
325@ = 1080.433
442@ = 1342.718
209@ = -1023.609
326@ = 1081.364
443@ = 1342.59
210@ = -1026.4969
327@ = 1082.288
444@ = 1342.452
211@ = -1029.5341
328@ = 1082.446
445@ = 1342.314
212@ = -1031.7271
329@ = 1080.38
446@ = 1342.1689
213@ = -1031.45
330@ = 1077.3831
447@ = 1342.259
214@ = -1030.556
331@ = 1074.519
448@ = 1342.3669
215@ = -1028.476
332@ = 1072.276
449@ = 1342.547
216@ = -1026.12
333@ = 1070.452
450@ = 1342.934
217@ = -1023.345
334@ = 1069.297
451@ = 1342.8621
218@ = -1020.924
335@ = 1067.455
452@ = 1342.679
219@ = -1019.808
336@ = 1064.636
453@ = 1342.3669
220@ = -1019.498
337@ = 1061.604
454@ = 1342.15
221@ = -1020.352
338@ = 1058.707
455@ = 1342.0031
222@ = -1022.205
339@ = 1056.248
456@ = 1341.946
223@ = -1024.6541
340@ = 1054.396
457@ = 1342.0291
224@ = -1026.949
341@ = 1052.463
458@ = 1341.672
225@ = -1029.535
342@ = 1050.962
459@ = 1341.421
226@ = -1032.204
343@ = 1049.5389
460@ = 1341.3979
227@ = -1035.146
344@ = 1048.822
461@ = 1341.167
228@ = -1038.131
345@ = 1048.269
462@ = 1340.837
229@ = -1040.29
346@ = 1046.1639
463@ = 1340.975
230@ = -1042.149
347@ = 1043.761
464@ = 1341.278
231@ = -1043.827
348@ = 1041.252
465@ = 1341.3979
232@ = -1045.285
349@ = 1038.573
466@ = 1341.563
233@ = -1047.2419
350@ = 1036.283
467@ = 1341.951
234@ = -1049.558
351@ = 1034.348
468@ = 1342.022
235@ = -1052.5811
352@ = 1034.296
469@ = 1342.218
236@ = -1054.624
353@ = 1036.551
470@ = 1342.324
237@ = -1055.726
354@ = 1039.338
471@ = 1342.655
238@ = -1056.5909
355@ = 1042.222
472@ = 1343.016
239@ = -1057.64
356@ = 1045.126
473@ = 1343.071
240@ = -1058.8669
357@ = 1047.8831
474@ = 1343.278
241@ = -1059.9659
358@ = 1050.707
475@ = 1343.335
242@ = -1062.282
359@ = 1052.656
476@ = 1342.973
243@ = -1065.312
360@ = 1052.257
477@ = 1342.9871
244@ = -1067.413
361@ = 1050.103
478@ = 1343.338
245@ = -1069.6801
362@ = 1048.061
479@ = 1343.303
246@ = -1072.397
363@ = 1046.49
480@ = 1343.299
247@ = -1074.844
364@ = 1044.621
481@ = 1343.278
248@ = -1077.2791
365@ = 1042.863
482@ = 1343.309
249@ = -1080.09
366@ = 1041.396
483@ = 1343.312
250@ = -1082.901
367@ = 1039.968
484@ = 1343.1591
251@ = -1085.723
368@ = 1038.973
485@ = 1342.7469
252@ = -1088.693
369@ = 1038.244
486@ = 1342.491
253@ = -1091.744
370@ = 1038.05
487@ = 1342.389
254@ = -1094.634
371@ = 1038.856
488@ = 1342.213
255@ = -1096.468
372@ = 1041.286
489@ = 1342.353
256@ = -1095.897
373@ = 1044.239
490@ = 1342.386
257@ = -1094.407
374@ = 1046.863
491@ = 1342.303
258@ = -1092.616
375@ = 1049.353
492@ = 1342.144
259@ = -1090.795
376@ = 1051.8521
493@ = 1342.036
260@ = -1089.037
377@ = 1054.2889
494@ = 1341.924
261@ = -1087.131
378@ = 1056.6801
495@ = 1341.963
262@ = -1084.63
379@ = 1058.476
496@ = 1342.046
263@ = -1082.026
380@ = 1060.059
497@ = 1342.0699
264@ = -1079.6801
381@ = 1061.984
498@ = 1342.161
265@ = -1077.382
382@ = 1064.059
499@ = 1342.054
266@ = -1075.0229
383@ = 1066.061
500@ = 1341.9561
267@ = -1072.5439
384@ = 1067.771
501@ = 1341.676
268@ = -1069.934
385@ = 1069.4
502@ = 1341.464
269@ = -1067.392
386@ = 1071.067
503@ = 1340.9399
270@ = -1065.172
387@ = 1073.217
504@ = 1340.98
271@ = -1063.084
388@ = 1075.436
505@ = 1341.265
272@ = -1061.741
389@ = 1078.158
506@ = 1341.507
273@ = -1060.928
390@ = 1081.111
507@ = 1341.705
274@ = -1059.851
391@ = 1083.965
508@ = 1341.717
275@ = -1059.0959
392@ = 1086.929
509@ = 1341.7729
276@ = -1059.464
393@ = 1089.908
510@ = 1341.8879
277@ = -1061.656
394@ = 1092.006
511@ = 1342.118
278@ = -1064.4139
395@ = 1093.172
512@ = 1342.3781
279@ = -1067.396
396@ = 1093.724
513@ = 1342.255
280@ = -1070.3719
397@ = 1094.422
514@ = 1342.176
281@ = -1073.385
398@ = 1094.066
515@ = 1342.0389
282@ = -1075.899
399@ = 1092.264
516@ = 1342.026
283@ = -1078.33
400@ = 1090.476
517@ = 1341.8831
284@ = -1080.692
401@ = 1088.514
518@ = 1341.762
285@ = -1082.786
402@ = 1086.317
519@ = 1341.725
286@ = -1084.715
403@ = 1083.926
520@ = 1341.718
287@ = -1086.7111
404@ = 1081.678
521@ = 1341.657
288@ = -1088.739
405@ = 1079.458
522@ = 1341.739
289@ = -1090.599
406@ = 1077.074
523@ = 1341.7371
290@ = -1091.925
407@ = 1074.311
524@ = 1341.754
291@ = -1093.073
408@ = 1071.465
525@ = 1341.751
292@ = -1094.317
409@ = 1068.679
526@ = 1341.752
293@ = -1095.859
410@ = 1066.073
527@ = 1341.752
294@ = -1097.911
411@ = 1063.855
528@ = 1341.739
295@ = -1100.731
412@ = 1062.77
529@ = 1341.786
296@ = -1103.847
413@ = 1062.781
530@ = 1341.79
297@ = -1106.772
414@ = 1061.895
531@ = 1341.79
298@ = -1109.576
415@ = 1060.658
532@ = 1341.825
299@ = -1112.578
416@ = 1060.848
533@ = 1341.9
300@ = -1116.12
417@ = 1059.64
534@ = 1342.25
set_lvar_float_to_lvar_float 301@ = 300@
set_lvar_float_to_lvar_float 418@ = 417@
set_lvar_float_to_lvar_float 535@ = 534@
set_lvar_float_to_lvar_float 302@ = 300@
set_lvar_float_to_lvar_float 419@ = 417@
set_lvar_float_to_lvar_float 536@ = 534@
set_lvar_float_to_lvar_float 303@ = 300@
set_lvar_float_to_lvar_float 420@ = 417@
set_lvar_float_to_lvar_float 537@ = 534@
set_lvar_float_to_lvar_float 304@ = 300@
set_lvar_float_to_lvar_float 421@ = 417@
set_lvar_float_to_lvar_float 538@ = 534@
set_lvar_float_to_lvar_float 305@ = 300@
set_lvar_float_to_lvar_float 422@ = 417@
set_lvar_float_to_lvar_float 539@ = 534@
set_lvar_float_to_lvar_float 306@ = 300@
set_lvar_float_to_lvar_float 423@ = 417@
set_lvar_float_to_lvar_float 540@ = 534@
set_lvar_float_to_lvar_float 307@ = 300@
set_lvar_float_to_lvar_float 424@ = 417@
set_lvar_float_to_lvar_float 541@ = 534@
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
gosub @ZERO4_26267

:ZERO4_6793
if 
  34@ == 1
goto_if_false @ZERO4_9223
if 
  35@ == 0
goto_if_false @ZERO4_8237
load_mission_text 'ZERO4'
set_area_visible 6
load_cutscene 'ZERO_4'

:ZERO4_6855
if 
  not has_cutscene_loaded 
goto_if_false @ZERO4_6879
wait 0
goto @ZERO4_6855

:ZERO4_6879
start_cutscene 
do_fade 1000 {direction} Fade.In

:ZERO4_6888
if 
  not has_cutscene_finished 
goto_if_false @ZERO4_6912
wait 0
goto @ZERO4_6888

:ZERO4_6912
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:ZERO4_6927
if 
  get_fading_status 
goto_if_false @ZERO4_6951
wait 0
goto @ZERO4_6927

:ZERO4_6951
set_area_visible 0
set_player_control $player1 {state} False
hide_all_frontend_blips True
set_player_in_car_camera_mode 2
store_clock 
force_weather_now WeatherType.ExtraSunnySf
clear_wanted_level $player1
set_wanted_multiplier 0.1
request_model 441
request_model 501
request_model 481
request_model 564
load_all_models_now 

:ZERO4_7010
if or
  not has_model_loaded 441
  not has_model_loaded 501
  not has_model_loaded 481
  not has_model_loaded 564
goto_if_false @ZERO4_7052
wait 0
goto @ZERO4_7010

:ZERO4_7052
set_char_area_visible $scplayer {areaId} 10
clear_area -1004.097 {y} 1000.789 {z} 1349.749 {radius} 300.0 {clearParticles} True
69@ = create_car 481 {x} -1004.097 {y} 1000.789 {z} 1349.749
freeze_car_position 69@ {state} True
warp_char_into_car $scplayer {vehicle} 69@
lock_car_doors 69@ {lockStatus} CarLock.LockedPlayerInside
set_vehicle_area_visible 69@ {interiorId} 10
68@ = create_car 441 {x} -975.6997 {y} 1061.162 {z} 1344.8
set_car_heading 68@ {heading} 90.0
set_vehicle_area_visible 68@ {interiorId} 10
set_car_proofs 68@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 68@ {health} 2000
70@ = create_car 501 {x} -973.759 {y} 1077.152 {z} 1350.399
set_car_heading 70@ {heading} 90.0
set_vehicle_area_visible 70@ {interiorId} 10
94@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399
attach_object_to_car 94@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 94@ {state} True
freeze_car_position 70@ {state} True
set_car_coordinates 70@ {x} -973.759 {y} 1077.152 {z} 1346.399
set_heli_blades_full_speed 70@
heli_goto_coords 70@ {x} -973.759 {y} 1077.152 {z} 1344.399 {minAltitude} 344.0 {maxAltitude} 3.0
71@ = create_car 501 {x} -1131.694 {y} 1041.791 {z} 1350.141
set_car_heading 71@ {heading} 270.0
set_vehicle_area_visible 71@ {interiorId} 10
98@ = add_blip_for_car 71@
set_blip_as_friendly 98@ {state} False
change_blip_display 98@ {display} BlipDisplay.BlipOnly
change_blip_scale 98@ {size} 2
95@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399
attach_object_to_car 95@ {handle} 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 95@ {state} True
set_heli_blades_full_speed 71@
heli_goto_coords 71@ {x} -1131.694 {y} 1041.791 {z} 1344.141 {minAltitude} 344.0 {maxAltitude} 3.0
77@ = create_object_no_offset #BARREL2 {x} -1007.213 {y} 1078.535 {z} 1342.682
78@ = create_object_no_offset #BARREL2 {x} -1093.137 {y} 1037.856 {z} 1342.7321
79@ = create_object_no_offset #BARREL2 {x} -1073.4659 {y} 1094.407 {z} 1342.322
set_object_rotation 77@ {x} 0.0 {y} 90.0 {z} 0.0
set_object_rotation 78@ {x} 0.0 {y} 90.0 {z} 0.0
set_object_rotation 79@ {x} 0.0 {y} 90.0 {z} 0.0
87@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1064.0 {z} 1344.147
88@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1065.0 {z} 1344.146
89@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1066.0 {z} 1344.144
90@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1067.0 {z} 1344.1429
91@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1068.0 {z} 1344.142
set_object_heading 87@ {heading} 270.0
set_object_heading 88@ {heading} 270.0
set_object_heading 89@ {heading} 270.0
set_object_heading 90@ {heading} 270.0
set_object_heading 91@ {heading} 270.0
92@ = create_object_no_offset #RCBOMB {x} -974.5125 {y} 1072.045 {z} 1344.298
set_object_heading 92@ {heading} 90.0
72@ = create_car 564 {x} -1076.873 {y} 1046.542 {z} 1343.365
73@ = create_car 564 {x} -1073.193 {y} 1070.426 {z} 1341.375
74@ = create_car 564 {x} -1106.479 {y} 1060.975 {z} 1341.864
set_car_heading 72@ {heading} 286.4071
set_car_heading 73@ {heading} 145.4881
set_car_heading 74@ {heading} 278.5302
99@ = add_blip_for_car 72@
100@ = add_blip_for_car 73@
101@ = add_blip_for_car 74@
change_blip_display 99@ {display} BlipDisplay.BlipOnly
change_blip_display 100@ {display} BlipDisplay.BlipOnly
change_blip_display 101@ {display} BlipDisplay.BlipOnly
set_vehicle_area_visible 72@ {interiorId} 10
set_vehicle_area_visible 73@ {interiorId} 10
set_vehicle_area_visible 74@ {interiorId} 10
change_blip_scale 99@ {size} 2
change_blip_scale 100@ {size} 2
change_blip_scale 101@ {size} 2
set_area_visible 10
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
enable_crane_controls False {down} False {release} False
display_hud False
display_radar True
set_radar_zoom 100
load_scene -975.6997 {y} 1061.162 {z} 344.7998
switch_widescreen True
set_fixed_camera_position -987.9526 {y} 1099.303 {z} 1352.45 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -987.5282 {y} 1098.519 {z} 1351.9969 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:ZERO4_8170
if 
  get_fading_status 
goto_if_false @ZERO4_8194
wait 0
goto @ZERO4_8170

:ZERO4_8194
TIMERA = 0
TIMERB = 0
62@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
$audio_line_is_active = 0
35@ += 1

:ZERO4_8237
if 
  35@ > 0
goto_if_false @ZERO4_8706
if 
  TIMERB > 1000
goto_if_false @ZERO4_8706
if 
  $audio_line_is_active == 0
goto_if_false @ZERO4_8706
switch_start 62@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_8692 {caseNum1} 0 {caseLabel1} @ZERO4_8355 {caseNum2} 1 {caseLabel2} @ZERO4_8413 {caseNum3} 2 {caseLabel3} @ZERO4_8471 {caseNum4} 3 {caseLabel4} @ZERO4_8529 {caseNum5} 4 {caseLabel5} @ZERO4_8587 {caseNum6} 5 {caseLabel6} @ZERO4_8645 {caseNum7} -1 {caseLabel7} @ZERO4_8692

:ZERO4_8355
set_var_text_label s$audio_string = 'ZER4_AA'
set_var_int_to_constant $audio_sound_file = 22200
start_new_script @AUDIOL -1 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 22255
goto @ZERO4_8692

:ZERO4_8413
set_var_text_label s$audio_string = 'ZER4_AB'
set_var_int_to_constant $audio_sound_file = 22255
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22201
goto @ZERO4_8692

:ZERO4_8471
set_var_text_label s$audio_string = 'ZER4_AC'
set_var_int_to_constant $audio_sound_file = 22201
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 22202
goto @ZERO4_8692

:ZERO4_8529
set_var_text_label s$audio_string = 'ZER4_AD'
set_var_int_to_constant $audio_sound_file = 22202
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22203
goto @ZERO4_8692

:ZERO4_8587
set_var_text_label s$audio_string = 'ZER4_AE'
set_var_int_to_constant $audio_sound_file = 22203
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 22204
goto @ZERO4_8692

:ZERO4_8645
set_var_text_label s$audio_string = 'ZER4_AF'
set_var_int_to_constant $audio_sound_file = 22204
start_new_script @AUDIOL -1 0 1 2 1 
goto @ZERO4_8692

:ZERO4_8692
62@ += 1
TIMERB = 0

:ZERO4_8706
if 
  35@ == 1
goto_if_false @ZERO4_8818
if 
  TIMERA > 4000
goto_if_false @ZERO4_8818
set_interpolation_parameters 0.0 {time} 7000
set_fixed_camera_position -982.6354 {y} 1055.88 {z} 1348.926 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -981.919 {y} 1056.504 {z} 1348.614 {switchStyle} SwitchType.JumpCut
TIMERA = 0
35@ += 1

:ZERO4_8818
if 
  35@ == 2
goto_if_false @ZERO4_8930
if 
  TIMERA > 2000
goto_if_false @ZERO4_8930
set_interpolation_parameters 0.0 {time} 10000
set_fixed_camera_position -1137.938 {y} 1058.032 {z} 1355.257 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1136.989 {y} 1058.099 {z} 1354.947 {switchStyle} SwitchType.Interpolation
TIMERA = 0
35@ += 1

:ZERO4_8930
if 
  35@ == 3
goto_if_false @ZERO4_8980
if and
  62@ > 6
  $audio_line_is_active == 0
goto_if_false @ZERO4_8980
35@ = 99

:ZERO4_8980
if 
  35@ > 0
goto_if_false @ZERO4_9022
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ZERO4_9022
35@ = 99

:ZERO4_9022
if 
  35@ == 99
goto_if_false @ZERO4_9223
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_interpolation_parameters 50.0 {time} 500
clear_prints 
set_fixed_camera_position -968.2972 {y} 1077.413 {z} 1346.686 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -969.2341 {y} 1077.368 {z} 1346.339 {switchStyle} SwitchType.JumpCut
switch_widescreen False
clear_prints 
set_player_control $player1 {state} True
if 
  not is_car_dead 70@
goto_if_false @ZERO4_9185
freeze_car_position 70@ {state} False
set_car_coordinates 70@ {x} -973.759 {y} 1077.152 {z} 1349.399
set_car_heading 70@ {heading} 90.0

:ZERO4_9185
if 
  not is_car_dead 71@
goto_if_false @ZERO4_9208
freeze_car_position 71@ {state} False

:ZERO4_9208
wait 0
set_camera_behind_player 
restore_camera_jumpcut 
gosub @ZERO4_26267

:ZERO4_9223
if 
  34@ == 2
goto_if_false @ZERO4_23736
if 
  35@ == 0
goto_if_false @ZERO4_9483
if 
  not is_car_dead 68@
goto_if_false @ZERO4_9297
97@ = add_blip_for_car 68@
set_blip_as_friendly 97@ {state} True
change_blip_scale 97@ {size} 2

:ZERO4_9297
if 
  not is_car_dead 70@
goto_if_false @ZERO4_9321
take_remote_control_of_car $player1 {vehicle} 70@

:ZERO4_9321
set_enable_rc_detonate False
set_enable_rc_detonate_on_contact False
request_car_recording 521

:ZERO4_9334
if 
  not has_car_recording_been_loaded 521
goto_if_false @ZERO4_9361
wait 0
goto @ZERO4_9334

:ZERO4_9361
if 
  not is_car_dead 68@
goto_if_false @ZERO4_9395
start_playback_recorded_car 68@ {path} 521
set_playback_speed 68@ {speed} 0.5

:ZERO4_9395
110@ = 0
111@ = 3
127@ = 3
$7431 = 480000
display_onscreen_timer_with_string $7431 {direction} TimerDirection.Down {text} 'Z4_M11'
display_nth_onscreen_counter_with_string $zero4_timer {display} CounterDisplay.Bar {slot} 1 {text} 'Z4_M06'
65@ = -1000
64@ = 10000
35@ += 1

:ZERO4_9483
if 
  35@ == 1
goto_if_false @ZERO4_23711
remove_oil_puddles_in_area -963.0789 {leftBottomY} 1006.747 {rightTopX} -1152.824 {rightTopY} 1105.155
if 
  not has_car_recording_been_loaded 521
goto_if_false @ZERO4_9551
request_car_recording 521
goto @ZERO4_23711

:ZERO4_9551
set_time_of_day 0 {minutes} 30
43@ = 0

:ZERO4_9564
if 
  10 > 43@
goto_if_false @ZERO4_9664
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_9650
$x, $y, $z = get_object_coordinates 77@(43@,10i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9650
delete_object 77@(43@,10i)

:ZERO4_9650
43@ += 1
goto @ZERO4_9564

:ZERO4_9664
43@ = 0

:ZERO4_9671
if 
  5 > 43@
goto_if_false @ZERO4_9800
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_9786
$x, $y, $z = get_object_coordinates 87@(43@,5i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9786
set_object_coordinates 87@(43@,5i) {x} -973.0 {y} 1064.0 {z} 1345.147
set_object_heading 87@(43@,5i) {heading} 270.0

:ZERO4_9786
43@ += 1
goto @ZERO4_9671

:ZERO4_9800
43@ = 0

:ZERO4_9807
if 
  3 > 43@
goto_if_false @ZERO4_9927
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_9913
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_9913
$x, $y, $z = get_car_coordinates 72@(43@,3i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9913
explode_car 72@(43@,3i)

:ZERO4_9913
43@ += 1
goto @ZERO4_9807

:ZERO4_9927
if 
  does_object_exist 92@
goto_if_false @ZERO4_9983
$x, $y, $z = get_object_coordinates 92@
if 
  1335.0 > $z
goto_if_false @ZERO4_9983
delete_object 92@

:ZERO4_9983
if and
  159@ == 0
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10428
if 
  not is_car_dead 70@
goto_if_false @ZERO4_10428
$x, $y, $z = get_offset_from_car_in_world_coords 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0
43@ = 0

:ZERO4_10057
if 
  10 > 43@
goto_if_false @ZERO4_10182
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_10168
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10168
clear_help 
print_help 'Z4_H13'
159@ += 1
43@ = 10

:ZERO4_10168
43@ += 1
goto @ZERO4_10057

:ZERO4_10182
if 
  159@ == 0
goto_if_false @ZERO4_10332
43@ = 0

:ZERO4_10207
if 
  5 > 43@
goto_if_false @ZERO4_10332
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_10318
if 
  locate_object_3d 87@(43@,5i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10318
clear_help 
print_help 'Z4_H13'
159@ += 1
43@ = 5

:ZERO4_10318
43@ += 1
goto @ZERO4_10207

:ZERO4_10332
if 
  159@ == 0
goto_if_false @ZERO4_10428
if 
  does_object_exist 92@
goto_if_false @ZERO4_10428
if 
  locate_object_3d 92@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10428
clear_help 
print_help 'Z4_H13'
159@ += 1

:ZERO4_10428
if and
  159@ == 1
  not is_message_being_displayed 
goto_if_false @ZERO4_10484
if 
  142@ <> 0
goto_if_false @ZERO4_10484
159@ += 1
print_help 'Z4_H14'

:ZERO4_10484
if and
  143@ == 0
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10539
print_help 'Z4_H1'
65@ = 0
143@ += 1

:ZERO4_10539
if and
  143@ == 1
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  110@ > 18
goto_if_false @ZERO4_10601
print_help 'Z4_H4'
65@ = 0
143@ += 1

:ZERO4_10601
if and
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10879
switch_start 542@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_10879 {caseNum1} 0 {caseLabel1} @ZERO4_10687 {caseNum2} 1 {caseLabel2} @ZERO4_10719 {caseNum3} 2 {caseLabel3} @ZERO4_10751 {caseNum4} 3 {caseLabel4} @ZERO4_10783 {caseNum5} 4 {caseLabel5} @ZERO4_10815 {caseNum6} 5 {caseLabel6} @ZERO4_10847 {caseNum7} -1 {caseLabel7} @ZERO4_10879

:ZERO4_10687
print_help 'Z4_H17'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10719
print_help 'Z4_H18'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10751
print_help 'Z4_H19'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10783
print_help 'Z4_H20'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10815
print_help 'Z4_H21'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10847
print_help 'Z4_H22'
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10879
if 
  120@ <> 0
goto_if_false @ZERO4_10940
if 
  157@ == 1
goto_if_false @ZERO4_10940
if 
  165@ == 0
goto_if_false @ZERO4_10940
165@ += 1

:ZERO4_10940
if and
  165@ == 1
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_11372
if 
  165@ == 0
goto_if_false @ZERO4_11176
if 
  64@ > 1000
goto_if_false @ZERO4_11176
163@ = generate_random_int_in_range 0 {max} 3
164@ = generate_random_int_in_range 0 {max} 3
if 
  163@ == 0
goto_if_false @ZERO4_11064
set_var_text_label s$audio_string = 'ZER4_BA'
set_var_int_to_constant $audio_sound_file = 22205

:ZERO4_11064
if 
  163@ == 1
goto_if_false @ZERO4_11104
set_var_text_label s$audio_string = 'ZER4_BB'
set_var_int_to_constant $audio_sound_file = 22206

:ZERO4_11104
if 
  163@ == 2
goto_if_false @ZERO4_11144
set_var_text_label s$audio_string = 'ZER4_BC'
set_var_int_to_constant $audio_sound_file = 22207

:ZERO4_11144
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1

:ZERO4_11176
if 
  165@ == 1
goto_if_false @ZERO4_11372
if 
  64@ > 1000
goto_if_false @ZERO4_11372
if 
  163@ == 0
goto_if_false @ZERO4_11253
set_var_text_label s$audio_string = 'ZER4_CA'
set_var_int_to_constant $audio_sound_file = 22208

:ZERO4_11253
if 
  163@ == 1
goto_if_false @ZERO4_11293
set_var_text_label s$audio_string = 'ZER4_CB'
set_var_int_to_constant $audio_sound_file = 22209

:ZERO4_11293
if 
  163@ == 2
goto_if_false @ZERO4_11333
set_var_text_label s$audio_string = 'ZER4_CC'
set_var_int_to_constant $audio_sound_file = 22210

:ZERO4_11333
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1
163@ = 0

:ZERO4_11372
if and
  165@ == 2
  120@ <> 0
goto_if_false @ZERO4_11456
if 
  64@ > 1000
goto_if_false @ZERO4_11456
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_11456
print_help 'Z4_H5'
165@ += 1
64@ = 0

:ZERO4_11456
if 
  165@ == 3
goto_if_false @ZERO4_11794
if and
  120@ == 1
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_11794
if 
  157@ == 1
goto_if_false @ZERO4_11794
163@ += 1
if 
  163@ > 4
goto_if_false @ZERO4_11561
163@ = 0

:ZERO4_11561
switch_start 163@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @ZERO4_11769 {caseNum1} 0 {caseLabel1} @ZERO4_11624 {caseNum2} 1 {caseLabel2} @ZERO4_11653 {caseNum3} 2 {caseLabel3} @ZERO4_11682 {caseNum4} 3 {caseLabel4} @ZERO4_11711 {caseNum5} 4 {caseLabel5} @ZERO4_11740 {caseNum6} -1 {caseLabel6} @ZERO4_11769 {caseNum7} -1 {caseLabel7} @ZERO4_11769

:ZERO4_11624
set_var_text_label s$audio_string = 'ZER4_DA'
set_var_int_to_constant $audio_sound_file = 22211
goto @ZERO4_11769

:ZERO4_11653
set_var_text_label s$audio_string = 'ZER4_DB'
set_var_int_to_constant $audio_sound_file = 22212
goto @ZERO4_11769

:ZERO4_11682
set_var_text_label s$audio_string = 'ZER4_DC'
set_var_int_to_constant $audio_sound_file = 22213
goto @ZERO4_11769

:ZERO4_11711
set_var_text_label s$audio_string = 'ZER4_DD'
set_var_int_to_constant $audio_sound_file = 22214
goto @ZERO4_11769

:ZERO4_11740
set_var_text_label s$audio_string = 'ZER4_DE'
set_var_int_to_constant $audio_sound_file = 22215
goto @ZERO4_11769

:ZERO4_11769
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_11794
if 
  172@ == 0
goto_if_false @ZERO4_11845
if and
  is_car_dead 72@
  is_car_dead 73@
  is_car_dead 74@
goto_if_false @ZERO4_11845
172@ = 1

:ZERO4_11845
if 
  172@ == 0
goto_if_false @ZERO4_12870
if 
  110@ > 42
goto_if_false @ZERO4_11994
if 
  167@ == 0
goto_if_false @ZERO4_11994
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_11994
if 
  64@ > 1000
goto_if_false @ZERO4_11994
set_var_text_label s$audio_string = 'ZER4_EA'
set_var_int_to_constant $audio_sound_file = 22216
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_11994
if 
  167@ == 1
goto_if_false @ZERO4_12107
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_12107
if 
  64@ > 1000
goto_if_false @ZERO4_12107
set_var_text_label s$audio_string = 'ZER4_EB'
set_var_int_to_constant $audio_sound_file = 22217
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_12107
if 
  167@ == 2
goto_if_false @ZERO4_12248
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12248
if 
  549@ == 0
goto_if_false @ZERO4_12241
print_now 'Z4_M26' {time} 7000 {flag} 1
if 
  does_object_exist 92@
goto_if_false @ZERO4_12234
166@ = add_blip_for_object 92@
set_blip_as_friendly 166@ {state} True
167@ += 1
64@ = 0

:ZERO4_12234
goto @ZERO4_12248

:ZERO4_12241
167@ += 1

:ZERO4_12248
if 
  167@ == 3
goto_if_false @ZERO4_12358
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12358
if 
  549@ <> 0
goto_if_false @ZERO4_12358
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12335
remove_blip 166@

:ZERO4_12335
print_now 'Z4_M27' {time} 7000 {flag} 1
167@ += 1

:ZERO4_12358
if 
  167@ == 4
goto_if_false @ZERO4_12423
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  549@ == 0
goto_if_false @ZERO4_12423
print_help 'Z4_H11'
167@ += 1
64@ = 0

:ZERO4_12423
if 
  167@ == 5
goto_if_false @ZERO4_12863
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
  545@ == 1
goto_if_false @ZERO4_12863
168@ += 1
if 
  168@ > 5
goto_if_false @ZERO4_12510
168@ = 0

:ZERO4_12510
43@ = 0

:ZERO4_12517
if 
  3 > 43@
goto_if_false @ZERO4_12576
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_12562
43@ = 99

:ZERO4_12562
43@ += 1
goto @ZERO4_12517

:ZERO4_12576
if 
  43@ == 99
goto_if_false @ZERO4_12856
switch_start 168@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_12831 {caseNum1} 0 {caseLabel1} @ZERO4_12657 {caseNum2} 1 {caseLabel2} @ZERO4_12686 {caseNum3} 2 {caseLabel3} @ZERO4_12715 {caseNum4} 3 {caseLabel4} @ZERO4_12744 {caseNum5} 4 {caseLabel5} @ZERO4_12773 {caseNum6} 5 {caseLabel6} @ZERO4_12802 {caseNum7} -1 {caseLabel7} @ZERO4_12831

:ZERO4_12657
set_var_text_label s$audio_string = 'ZER4_FA'
set_var_int_to_constant $audio_sound_file = 22218
goto @ZERO4_12831

:ZERO4_12686
set_var_text_label s$audio_string = 'ZER4_FB'
set_var_int_to_constant $audio_sound_file = 22219
goto @ZERO4_12831

:ZERO4_12715
set_var_text_label s$audio_string = 'ZER4_FC'
set_var_int_to_constant $audio_sound_file = 22220
goto @ZERO4_12831

:ZERO4_12744
set_var_text_label s$audio_string = 'ZER4_FD'
set_var_int_to_constant $audio_sound_file = 22221
goto @ZERO4_12831

:ZERO4_12773
set_var_text_label s$audio_string = 'ZER4_FE'
set_var_int_to_constant $audio_sound_file = 22222
goto @ZERO4_12831

:ZERO4_12802
set_var_text_label s$audio_string = 'ZER4_FF'
set_var_int_to_constant $audio_sound_file = 22223
goto @ZERO4_12831

:ZERO4_12831
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_12856
545@ = 0

:ZERO4_12863
goto @ZERO4_12891

:ZERO4_12870
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12891
remove_blip 166@

:ZERO4_12891
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12928
if 
  is_object_attached 92@
goto_if_false @ZERO4_12928
remove_blip 166@

:ZERO4_12928
if 
  171@ == 1
goto_if_false @ZERO4_13048
if 
  160@ == 0
goto_if_false @ZERO4_13048
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13048
set_var_text_label s$audio_string = 'ZER4_GA'
set_var_int_to_constant $audio_sound_file = 22224
start_new_script @AUDIOL -1 0 1 1 0 
160@ += 1
64@ = 0

:ZERO4_13048
if 
  160@ == 1
goto_if_false @ZERO4_13186
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13186
if 
  171@ == 1
goto_if_false @ZERO4_13172
if 
  548@ <> 1
goto_if_false @ZERO4_13172
print_now 'Z4_M28' {time} 7000 {flag} 1
if 
  does_object_exist 89@
goto_if_false @ZERO4_13172
161@ = add_blip_for_object 89@

:ZERO4_13172
160@ += 1
64@ = 0

:ZERO4_13186
if 
  160@ == 2
goto_if_false @ZERO4_13310
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
  548@ == 1
goto_if_false @ZERO4_13310
if 
  171@ == 1
goto_if_false @ZERO4_13275
print_now 'Z4_M29' {time} 7000 {flag} 1

:ZERO4_13275
if 
  does_blip_exist 161@
goto_if_false @ZERO4_13296
remove_blip 161@

:ZERO4_13296
160@ += 1
64@ = 0

:ZERO4_13310
if and
  160@ == 3
  171@ == 1
  $audio_line_is_active == 0
  64@ > 10000
goto_if_false @ZERO4_13572
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_13572
162@ += 1
if 
  162@ > 2
goto_if_false @ZERO4_13397
162@ = 0

:ZERO4_13397
switch_start 162@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_13547 {caseNum1} 0 {caseLabel1} @ZERO4_13460 {caseNum2} 1 {caseLabel2} @ZERO4_13489 {caseNum3} 2 {caseLabel3} @ZERO4_13518 {caseNum4} -1 {caseLabel4} @ZERO4_13547 {caseNum5} -1 {caseLabel5} @ZERO4_13547 {caseNum6} -1 {caseLabel6} @ZERO4_13547 {caseNum7} -1 {caseLabel7} @ZERO4_13547

:ZERO4_13460
set_var_text_label s$audio_string = 'ZER4_HA'
set_var_int_to_constant $audio_sound_file = 22225
goto @ZERO4_13547

:ZERO4_13489
set_var_text_label s$audio_string = 'ZER4_HB'
set_var_int_to_constant $audio_sound_file = 22226
goto @ZERO4_13547

:ZERO4_13518
set_var_text_label s$audio_string = 'ZER4_HC'
set_var_int_to_constant $audio_sound_file = 22227
goto @ZERO4_13547

:ZERO4_13547
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_13572
if 
  not is_car_dead 68@
goto_if_false @ZERO4_14061
43@ = get_car_health 68@
if 
  1400 > 43@
goto_if_false @ZERO4_14061
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_14061
$x, $y, $z = get_car_coordinates 68@
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
if 
  not is_explosion_in_area ExplosionType.Small {leftBottomX} 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@
goto_if_false @ZERO4_14014
170@ += 1
if 
  170@ > 2
goto_if_false @ZERO4_13832
170@ = 0

:ZERO4_13832
switch_start 170@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_13982 {caseNum1} 0 {caseLabel1} @ZERO4_13895 {caseNum2} 1 {caseLabel2} @ZERO4_13924 {caseNum3} 2 {caseLabel3} @ZERO4_13953 {caseNum4} -1 {caseLabel4} @ZERO4_13982 {caseNum5} -1 {caseLabel5} @ZERO4_13982 {caseNum6} -1 {caseLabel6} @ZERO4_13982 {caseNum7} -1 {caseLabel7} @ZERO4_13982

:ZERO4_13895
set_var_text_label s$audio_string = 'ZER4_KA'
set_var_int_to_constant $audio_sound_file = 22234
goto @ZERO4_13982

:ZERO4_13924
set_var_text_label s$audio_string = 'ZER4_KB'
set_var_int_to_constant $audio_sound_file = 22235
goto @ZERO4_13982

:ZERO4_13953
set_var_text_label s$audio_string = 'ZER4_KC'
set_var_int_to_constant $audio_sound_file = 22236
goto @ZERO4_13982

:ZERO4_13982
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
goto @ZERO4_14061

:ZERO4_14014
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 22239
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_14061
if and
  149@ == 99
  150@ == 0
goto_if_false @ZERO4_14131
if 
  111@ == 3
goto_if_false @ZERO4_14131
clear_help 
print_help 'Z4_H12'
150@ += 1
65@ = 0

:ZERO4_14131
if 
  150@ == 1
goto_if_false @ZERO4_14156
150@ = 99

:ZERO4_14156
if 
  is_car_dead 70@
goto_if_false @ZERO4_14470
if 
  122@ == 1
goto_if_false @ZERO4_14369
if 
  does_object_exist 142@
goto_if_false @ZERO4_14303
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_14289
121@ = 1
set_object_records_collisions 92@ {state} True
102@ = 0

:ZERO4_14289
142@ = 0
goto @ZERO4_14369

:ZERO4_14303
if 
  does_vehicle_exist 76@
goto_if_false @ZERO4_14369
detach_car 76@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
76@ = 0

:ZERO4_14369
wait 1000
set_lvar_int_to_lvar_int 543@ = 70@
mark_car_as_no_longer_needed 70@
127@ -= 1
if 
  127@ > 0
goto_if_false @ZERO4_14463
set_fixed_camera_position -968.2972 {y} 1077.413 {z} 1346.686 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -969.2341 {y} 1077.368 {z} 1346.339 {switchStyle} SwitchType.JumpCut

:ZERO4_14463
70@ = 0

:ZERO4_14470
if 
  not is_car_dead 70@
goto_if_false @ZERO4_14545
if 
  544@ == 1
goto_if_false @ZERO4_14545
if 
  109@ > 10000
goto_if_false @ZERO4_14545
set_car_proofs 70@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
544@ = 0

:ZERO4_14545
if 
  70@ == 0
goto_if_false @ZERO4_14892
if 
  127@ <> 0
goto_if_false @ZERO4_14892
restore_camera 
extinguish_fire_at_point -973.759 {y} 1077.152 {z} 1350.399 {radius} 200.0
70@ = create_car 501 {x} -973.759 {y} 1077.152 {z} 1350.399
set_car_proofs 70@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
544@ = 1
109@ = 0
set_car_heading 70@ {heading} 90.0
set_heli_blades_full_speed 70@
set_vehicle_area_visible 70@ {interiorId} 10
take_remote_control_of_car $player1 {vehicle} 70@
if 
  127@ == 2
goto_if_false @ZERO4_14721
print_now 'Z4_M14' {time} 5000 {flag} 1

:ZERO4_14721
if 
  127@ == 1
goto_if_false @ZERO4_14755
print_now 'Z4_M23' {time} 5000 {flag} 1

:ZERO4_14755
if 
  not does_object_exist 94@
goto_if_false @ZERO4_14794
94@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399

:ZERO4_14794
attach_object_to_car 94@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 94@ {state} True
if 
  127@ == 0
goto_if_false @ZERO4_14871
set_car_visible 70@ {state} False
set_object_visible 94@ {state} False

:ZERO4_14871
if 
  does_vehicle_exist 543@
goto_if_false @ZERO4_14892
delete_car 543@

:ZERO4_14892
if 
  68@ == 0
goto_if_false @ZERO4_15277
68@ = create_car 441 {x} -975.6997 {y} 1061.162 {z} 1344.8
set_car_heading 68@ {heading} 90.0
set_vehicle_area_visible 68@ {interiorId} 10
set_car_proofs 68@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
start_playback_recorded_car 68@ {path} 521
set_playback_speed 68@ {speed} 0.5
97@ = add_blip_for_car 68@
set_blip_as_friendly 97@ {state} True
set_car_health 68@ {health} 2000
change_blip_scale 97@ {size} 2
if 
  111@ == 2
goto_if_false @ZERO4_15145
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @ZERO4_15105
set_var_text_label s$audio_string = 'ZER4_MA'
set_var_int_to_constant $audio_sound_file = 22241
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15145

:ZERO4_15105
set_var_text_label s$audio_string = 'ZER4_MB'
set_var_int_to_constant $audio_sound_file = 22242
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15145
if 
  111@ == 1
goto_if_false @ZERO4_15277
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @ZERO4_15237
set_var_text_label s$audio_string = 'ZER4_MC'
set_var_int_to_constant $audio_sound_file = 22243
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15277

:ZERO4_15237
set_var_text_label s$audio_string = 'ZER4_MD'
set_var_int_to_constant $audio_sound_file = 22244
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15277
if 
  not is_car_dead 68@
goto_if_false @ZERO4_15836
43@ = get_car_health 68@
if 
  1000 > 43@
goto_if_false @ZERO4_15836
$x, $y, $z = get_car_coordinates 68@
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
explode_car 68@
if 
  not is_explosion_in_area ExplosionType.Small {leftBottomX} 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@
goto_if_false @ZERO4_15720
169@ += 1
if 
  169@ > 2
goto_if_false @ZERO4_15512
169@ = 0

:ZERO4_15512
switch_start 169@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_15662 {caseNum1} 0 {caseLabel1} @ZERO4_15575 {caseNum2} 1 {caseLabel2} @ZERO4_15604 {caseNum3} 2 {caseLabel3} @ZERO4_15633 {caseNum4} -1 {caseLabel4} @ZERO4_15662 {caseNum5} -1 {caseLabel5} @ZERO4_15662 {caseNum6} -1 {caseLabel6} @ZERO4_15662 {caseNum7} -1 {caseLabel7} @ZERO4_15662

:ZERO4_15575
set_var_text_label s$audio_string = 'ZER4_LA'
set_var_int_to_constant $audio_sound_file = 22237
goto @ZERO4_15662

:ZERO4_15604
set_var_text_label s$audio_string = 'ZER4_LB'
set_var_int_to_constant $audio_sound_file = 22238
goto @ZERO4_15662

:ZERO4_15633
set_var_text_label s$audio_string = 'ZER4_LD'
set_var_int_to_constant $audio_sound_file = 22240
goto @ZERO4_15662

:ZERO4_15662
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15684
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15713
wait 0
goto @ZERO4_15684

:ZERO4_15713
goto @ZERO4_15793

:ZERO4_15720
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 22239
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15764
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15793
wait 0
goto @ZERO4_15764

:ZERO4_15793
mark_car_as_no_longer_needed 68@
stop_playback_recorded_car 68@
remove_blip 97@
68@ = 0
111@ -= 1
110@ = 0
137@ = 0

:ZERO4_15836
if 
  does_vehicle_exist 71@
goto_if_false @ZERO4_16063
if 
  is_car_dead 71@
goto_if_false @ZERO4_16063
if 
  does_object_exist 95@
goto_if_false @ZERO4_15889
delete_object 95@

:ZERO4_15889
if 
  does_object_exist 77@(125@,10i)
goto_if_false @ZERO4_16056
if 
  is_object_attached 77@(125@,10i)
goto_if_false @ZERO4_16056
detach_object 77@(125@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 77@(125@,10i) {state} True
if 
  is_object_intersecting_world 77@(125@,10i)
goto_if_false @ZERO4_16056
$x, $y, $z = get_object_coordinates 77@(125@,10i)
$heading = get_object_heading 77@(125@,10i)
$z += 1.0
set_object_coordinates 77@(125@,10i) {x} $x {y} $y {z} $z
set_object_heading 77@(125@,10i) {heading} $heading

:ZERO4_16056
71@ = 0

:ZERO4_16063
if 
  115@ == 0
goto_if_false @ZERO4_16305
43@ = 0

:ZERO4_16088
if 
  5 > 43@
goto_if_false @ZERO4_16305
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_16291
if 
  not is_object_attached 87@(43@,5i)
goto_if_false @ZERO4_16291
if 
  locate_object_3d 87@(43@,5i) {x} -1043.5081 {y} 1041.38 {z} 1341.2939 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_16291
set_object_coordinates 87@(43@,5i) {x} -1043.5081 {y} 1041.38 {z} 1341.2939
set_object_rotation 87@(43@,5i) {x} -2.77 {y} -2.13 {z} -38.12
freeze_object_position 87@(43@,5i) {state} True
report_mission_audio_event_at_object 87@(43@,5i) {soundId} ScriptSound.SoundBonnetDent
115@ = 1
set_lvar_int_to_lvar_int 117@ = 43@
43@ = 5

:ZERO4_16291
43@ += 1
goto @ZERO4_16088

:ZERO4_16305
if 
  115@ == 1
goto_if_false @ZERO4_16388
if 
  does_object_exist 87@(117@,5i)
goto_if_false @ZERO4_16388
if 
  is_object_attached 87@(117@,5i)
goto_if_false @ZERO4_16388
freeze_object_position 87@(117@,5i) {state} False
115@ = 0
117@ = -1

:ZERO4_16388
if 
  not is_car_dead 68@
goto_if_false @ZERO4_16606
if 
  119@ == 0
goto_if_false @ZERO4_16521
if 
  115@ == 0
goto_if_false @ZERO4_16514
if 
  locate_car_3d 68@ {x} -1041.83 {y} 1044.25 {z} 1341.42 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_16514
pause_playback_recorded_car 68@
119@ = 1
155@ = 1
171@ = 1

:ZERO4_16514
goto @ZERO4_16606

:ZERO4_16521
if 
  115@ == 1
goto_if_false @ZERO4_16606
if 
  locate_car_3d 68@ {x} -1041.83 {y} 1044.25 {z} 1341.42 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_16606
unpause_playback_recorded_car 68@
119@ = 0
171@ = 0

:ZERO4_16606
if 
  155@ == 1
goto_if_false @ZERO4_16665
if 
  147@ == 99
goto_if_false @ZERO4_16665
print_now 'Z4_M20' {time} 7000 {flag} 1
155@ += 1

:ZERO4_16665
if 
  155@ == 2
goto_if_false @ZERO4_16843
if 
  does_object_exist 142@
goto_if_false @ZERO4_16843
43@ = 0
44@ = 0

:ZERO4_16713
if 
  5 > 43@
goto_if_false @ZERO4_16802
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_16788
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_16788
44@ = 1
43@ = 5

:ZERO4_16788
43@ += 1
goto @ZERO4_16713

:ZERO4_16802
if 
  44@ == 1
goto_if_false @ZERO4_16843
print_now 'Z4_M21' {time} 7000 {flag} 1
155@ += 1

:ZERO4_16843
if 
  155@ == 3
goto_if_false @ZERO4_16888
if 
  115@ == 1
goto_if_false @ZERO4_16888
clear_prints 
155@ = 99

:ZERO4_16888
if 
  116@ == 0
goto_if_false @ZERO4_17130
43@ = 0

:ZERO4_16913
if 
  5 > 43@
goto_if_false @ZERO4_17130
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_17116
if 
  not is_object_attached 87@(43@,5i)
goto_if_false @ZERO4_17116
if 
  locate_object_3d 87@(43@,5i) {x} -1062.833 {y} 1076.6281 {z} 1341.23 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_17116
set_object_coordinates 87@(43@,5i) {x} -1062.833 {y} 1076.6281 {z} 1341.23
set_object_rotation 87@(43@,5i) {x} 4.7 {y} -4.77 {z} -31.58
freeze_object_position 87@(43@,5i) {state} True
report_mission_audio_event_at_object 87@(43@,5i) {soundId} ScriptSound.SoundBonnetDent
116@ = 1
set_lvar_int_to_lvar_int 118@ = 43@
43@ = 5

:ZERO4_17116
43@ += 1
goto @ZERO4_16913

:ZERO4_17130
if 
  116@ == 1
goto_if_false @ZERO4_17213
if 
  does_object_exist 87@(118@,5i)
goto_if_false @ZERO4_17213
if 
  is_object_attached 87@(118@,5i)
goto_if_false @ZERO4_17213
freeze_object_position 87@(118@,5i) {state} False
116@ = 0
118@ = -1

:ZERO4_17213
if 
  not is_car_dead 68@
goto_if_false @ZERO4_17431
if 
  119@ == 0
goto_if_false @ZERO4_17346
if 
  116@ == 0
goto_if_false @ZERO4_17339
if 
  locate_car_3d 68@ {x} -1064.09 {y} 1074.37 {z} 1341.3199 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_17339
pause_playback_recorded_car 68@
171@ = 1
119@ = 1
156@ = 1

:ZERO4_17339
goto @ZERO4_17431

:ZERO4_17346
if 
  116@ == 1
goto_if_false @ZERO4_17431
if 
  locate_car_3d 68@ {x} -1064.09 {y} 1074.37 {z} 1341.3199 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_17431
unpause_playback_recorded_car 68@
171@ = 0
119@ = 0

:ZERO4_17431
if 
  156@ == 1
goto_if_false @ZERO4_17472
print_now 'Z4_M20' {time} 7000 {flag} 1
156@ += 1

:ZERO4_17472
if 
  156@ == 2
goto_if_false @ZERO4_17650
if 
  does_object_exist 142@
goto_if_false @ZERO4_17650
43@ = 0
44@ = 0

:ZERO4_17520
if 
  5 > 43@
goto_if_false @ZERO4_17609
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_17595
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_17595
44@ = 1
43@ = 5

:ZERO4_17595
43@ += 1
goto @ZERO4_17520

:ZERO4_17609
if 
  44@ == 1
goto_if_false @ZERO4_17650
print_now 'Z4_M21' {time} 7000 {flag} 1
156@ += 1

:ZERO4_17650
if 
  156@ == 3
goto_if_false @ZERO4_17695
if 
  116@ == 1
goto_if_false @ZERO4_17695
clear_prints 
156@ = 99

:ZERO4_17695
if 
  137@ == 0
goto_if_false @ZERO4_19056
if 
  119@ == 0
goto_if_false @ZERO4_18349
if 
  120@ == 0
goto_if_false @ZERO4_18342
if 
  not is_car_dead 68@
goto_if_false @ZERO4_18342
108@ = 0
157@ = 0
$x, $y, $z = get_offset_from_car_in_world_coords 68@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
43@ = 0

:ZERO4_17815
if 
  10 > 43@
goto_if_false @ZERO4_18002
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_17988
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_17988
56@, 57@, 58@ = get_object_coordinates 77@(43@,10i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.8 > 46@
goto_if_false @ZERO4_17988
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
157@ = 1
goto @ZERO4_18342

:ZERO4_17988
43@ += 1
goto @ZERO4_17815

:ZERO4_18002
43@ = 0

:ZERO4_18009
if 
  3 > 43@
goto_if_false @ZERO4_18232
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_18218
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_18218
if 
  locate_car_3d 72@(43@,3i) {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_18218
56@, 57@, 58@ = get_car_coordinates 72@(43@,3i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.9 > 46@
goto_if_false @ZERO4_18218
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
157@ = 2
print_now 'Z4_M18' {time} 5000 {flag} 1
goto @ZERO4_18342

:ZERO4_18218
43@ += 1
goto @ZERO4_18009

:ZERO4_18232
if 
  not is_car_dead 70@
goto_if_false @ZERO4_18316
if 
  locate_car_3d 70@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18316
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
goto @ZERO4_18342

:ZERO4_18316
if 
  120@ == 1
goto_if_false @ZERO4_18342
108@ = 30000

:ZERO4_18342
goto @ZERO4_19056

:ZERO4_18349
if 
  120@ == 1
goto_if_false @ZERO4_19056
if 
  not is_car_dead 68@
goto_if_false @ZERO4_19056
$x, $y, $z = get_offset_from_car_in_world_coords 68@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
120@ = 0
43@ = 0

:ZERO4_18426
if 
  10 > 43@
goto_if_false @ZERO4_18601
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_18587
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_18587
56@, 57@, 58@ = get_object_coordinates 77@(43@,10i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.9 > 46@
goto_if_false @ZERO4_18587
120@ = 1
157@ = 1
goto @ZERO4_19056

:ZERO4_18587
43@ += 1
goto @ZERO4_18426

:ZERO4_18601
43@ = 0

:ZERO4_18608
if 
  3 > 43@
goto_if_false @ZERO4_18803
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_18789
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_18789
if 
  locate_car_3d 72@(43@,3i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18789
56@, 57@, 58@ = get_car_coordinates 72@(43@,3i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.8 > 46@
goto_if_false @ZERO4_18789
120@ = 1
157@ = 2
goto @ZERO4_19056

:ZERO4_18789
43@ += 1
goto @ZERO4_18608

:ZERO4_18803
if 
  not is_car_dead 70@
goto_if_false @ZERO4_18875
if 
  locate_car_3d 70@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18875
120@ = 1
goto @ZERO4_19056

:ZERO4_18875
if and
  120@ == 1
  108@ > 30000
  3 > 158@
goto_if_false @ZERO4_18983
if 
  157@ == 1
goto_if_false @ZERO4_18942
print 'Z4_M18' {time} 5000 {flag} 1

:ZERO4_18942
if 
  157@ == 2
goto_if_false @ZERO4_18976
print 'Z4_M25' {time} 5000 {flag} 1

:ZERO4_18976
108@ = 0

:ZERO4_18983
if 
  120@ == 0
goto_if_false @ZERO4_19056
unpause_playback_recorded_car 68@
119@ = 0
157@ = 0
clear_prints 
if and
  108@ > 1000
  30000 > 108@
goto_if_false @ZERO4_19056
158@ += 1

:ZERO4_19056
if 
  137@ == 0
goto_if_false @ZERO4_19476
if 
  not is_car_dead 68@
goto_if_false @ZERO4_19476
if 
  has_car_been_damaged_by_weapon 68@ {weaponType} WeaponType.MicroUzi
goto_if_false @ZERO4_19120
545@ = 1
clear_car_last_weapon_damage 68@

:ZERO4_19120
$zero4_timer = get_car_health 68@
$zero4_timer += -1000
cset_lvar_float_to_var_int 46@ =# $zero4_timer
46@ /= 1000.0
46@ *= 100.0
cset_var_int_to_lvar_float $zero4_timer =# 46@
if 
  is_int_lvar_greater_than_int_var 135@ > $zero4_timer
goto_if_false @ZERO4_19205
136@ = 1
107@ = 0

:ZERO4_19205
set_lvar_int_to_var_int 135@ = $zero4_timer
if 
  136@ == 1
goto_if_false @ZERO4_19301
if 
  119@ == 1
goto_if_false @ZERO4_19261
unpause_playback_recorded_car 68@
119@ = 0

:ZERO4_19261
if 
  is_playback_going_on_for_car 68@
goto_if_false @ZERO4_19301
set_playback_speed 68@ {speed} -0.2
136@ += 1
107@ = 0

:ZERO4_19301
if 
  136@ == 2
goto_if_false @ZERO4_19352
if 
  107@ > 4000
goto_if_false @ZERO4_19352
136@ += 1
107@ = 0

:ZERO4_19352
if 
  136@ == 3
goto_if_false @ZERO4_19406
set_playback_speed 68@ {speed} 0.5
pause_playback_recorded_car 68@
119@ = 1
107@ = 0
136@ += 1

:ZERO4_19406
if 
  136@ == 4
goto_if_false @ZERO4_19476
if 
  107@ > 4000
goto_if_false @ZERO4_19476
unpause_playback_recorded_car 68@
119@ = 0
136@ = 0
107@ = 0
120@ = 0

:ZERO4_19476
if 
  not is_car_dead 70@
goto_if_false @ZERO4_20426
if 
  546@ == 1
goto_if_false @ZERO4_20426
if 
  122@ <> 0
goto_if_false @ZERO4_20419
if 
  548@ == 1
goto_if_false @ZERO4_19970
56@, 57@, 58@ = get_car_coordinates 70@
58@ = get_ground_z_for_3d_coord 56@ {y} 57@ {z} 58@
43@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} 1.7 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19654
43@ = 1

:ZERO4_19654
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19727
43@ = 1

:ZERO4_19727
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19800
43@ = 1

:ZERO4_19800
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} -0.2 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19873
43@ = 1

:ZERO4_19873
if 
  43@ == 1
goto_if_false @ZERO4_19956
set_object_collision 142@ {state} False
if 
  not is_car_dead 70@
goto_if_false @ZERO4_19949
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.005 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_19949
goto @ZERO4_19970

:ZERO4_19956
set_object_collision 142@ {state} True
546@ = 0

:ZERO4_19970
if 
  547@ == 1
goto_if_false @ZERO4_20412
56@, 57@, 58@ = get_car_coordinates 70@
58@ = get_ground_z_for_3d_coord 56@ {y} 57@ {z} 58@
43@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20096
43@ = 1

:ZERO4_20096
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20169
43@ = 1

:ZERO4_20169
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20242
43@ = 1

:ZERO4_20242
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20315
43@ = 1

:ZERO4_20315
if 
  43@ == 1
goto_if_false @ZERO4_20398
set_object_collision 142@ {state} False
if 
  not is_car_dead 70@
goto_if_false @ZERO4_20391
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.005 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_20391
goto @ZERO4_20412

:ZERO4_20398
set_object_collision 142@ {state} True
546@ = 0

:ZERO4_20412
goto @ZERO4_20426

:ZERO4_20419
546@ = 0

:ZERO4_20426
if 
  not is_car_dead 70@
goto_if_false @ZERO4_21624
if 
  122@ == 0
goto_if_false @ZERO4_21328
if 
  123@ == 0
goto_if_false @ZERO4_21297
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  103@ > 1000
goto_if_false @ZERO4_21283
123@ = 1
$x, $y, $z = get_offset_from_car_in_world_coords 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0
43@ = 0

:ZERO4_20546
if 
  10 > 43@
goto_if_false @ZERO4_20832
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_20818
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_20818
44@ = 0
if 
  is_object_attached 77@(43@,10i)
goto_if_false @ZERO4_20664
44@ = 1

:ZERO4_20664
if 
  44@ == 0
goto_if_false @ZERO4_20818
set_lvar_int_to_lvar_int 142@ = 77@(43@,10i)
46@ = get_object_heading 77@(43@,10i)
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_20768
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_20768
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
43@ = 10
122@ = 1
547@ = 1
546@ = 1
goto @ZERO4_21276

:ZERO4_20818
43@ += 1
goto @ZERO4_20546

:ZERO4_20832
43@ = 0

:ZERO4_20839
if 
  5 > 43@
goto_if_false @ZERO4_21061
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_21047
if 
  locate_object_3d 87@(43@,5i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_21047
set_lvar_int_to_lvar_int 142@ = 87@(43@,5i)
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_20997
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_20997
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
43@ = 6
122@ = 1
548@ = 1
546@ = 1
goto @ZERO4_21276

:ZERO4_21047
43@ += 1
goto @ZERO4_20839

:ZERO4_21061
if 
  does_object_exist 92@
goto_if_false @ZERO4_21276
if 
  locate_object_3d 92@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_21276
set_lvar_int_to_lvar_int 142@ = 92@
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_21240
if 
  is_object_intersecting_world 142@
goto_if_false @ZERO4_21232
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_21232
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_21240
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
122@ = 1
549@ = 1
goto @ZERO4_21276

:ZERO4_21276
goto @ZERO4_21290

:ZERO4_21283
123@ = 0

:ZERO4_21290
goto @ZERO4_21321

:ZERO4_21297
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21321
123@ = 0

:ZERO4_21321
goto @ZERO4_21624

:ZERO4_21328
if 
  123@ == 1
goto_if_false @ZERO4_21377
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21370
123@ = 0

:ZERO4_21370
goto @ZERO4_21624

:ZERO4_21377
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21624
if 
  does_object_exist 142@
goto_if_false @ZERO4_21551
if 
  not is_object_intersecting_world 142@
goto_if_false @ZERO4_21544
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_21509
121@ = 1
set_object_records_collisions 92@ {state} True
102@ = 0

:ZERO4_21509
142@ = 0
123@ = 1
549@ = 0
548@ = 0
547@ = 0

:ZERO4_21544
goto @ZERO4_21624

:ZERO4_21551
if 
  does_vehicle_exist 76@
goto_if_false @ZERO4_21624
detach_car 76@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
76@ = 0
123@ = 1

:ZERO4_21624
if 
  does_object_exist 92@
goto_if_false @ZERO4_21747
if 
  121@ == 1
goto_if_false @ZERO4_21740
if or
  has_object_collided_with_anything 92@
  102@ > 10000
goto_if_false @ZERO4_21740
if 
  102@ > 500
goto_if_false @ZERO4_21740
$x, $y, $z = get_object_coordinates 92@
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small
delete_object 92@
121@ = 0

:ZERO4_21740
goto @ZERO4_21787

:ZERO4_21747
92@ = create_object_no_offset #RCBOMB {x} -974.5125 {y} 1072.045 {z} 1344.298
set_object_heading 92@ {heading} 90.0
121@ = 0

:ZERO4_21787
if 
  not is_car_dead 68@
goto_if_false @ZERO4_21969
set_lvar_int_to_lvar_int 43@ = 110@

:ZERO4_21811
if 
  117 > 43@
goto_if_false @ZERO4_21944
if 
  not is_car_dead 68@
goto_if_false @ZERO4_21923
if 
  locate_car_2d 68@ {x} 191@(43@,117f) {y} 308@(43@,117f) {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_21909
set_lvar_int_to_lvar_int 110@ = 43@
110@ += 1
goto @ZERO4_21916

:ZERO4_21909
43@ = 117

:ZERO4_21916
goto @ZERO4_21930

:ZERO4_21923
110@ = 0

:ZERO4_21930
43@ += 1
goto @ZERO4_21811

:ZERO4_21944
if 
  110@ > 116
goto_if_false @ZERO4_21969
110@ = 116

:ZERO4_21969
if 
  not is_car_dead 71@
goto_if_false @ZERO4_23052
if 
  124@ == 0
goto_if_false @ZERO4_22331
125@ = -1
43@ = 3

:ZERO4_22017
if 
  10 > 43@
goto_if_false @ZERO4_22084
if 
  not does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_22070
set_lvar_int_to_lvar_int 125@ = 43@
43@ = 10

:ZERO4_22070
43@ += 1
goto @ZERO4_22017

:ZERO4_22084
if 
  125@ > -1
goto_if_false @ZERO4_22236
create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 77@(125@,10i)
attach_object_to_car 77@(125@,10i) {handle} 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 0.0
if 
  does_object_exist 77@(125@,10i)
goto_if_false @ZERO4_22203
report_mission_audio_event_at_object 77@(125@,10i) {soundId} ScriptSound.SoundBonnetDent

:ZERO4_22203
set_object_collision 95@ {state} False
sort_out_object_collision_with_car 77@(125@,10i) {handle} 71@
124@ += 1
goto @ZERO4_22331

:ZERO4_22236
43@ = 3

:ZERO4_22243
if 
  10 > 43@
goto_if_false @ZERO4_22331
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_22317
if 
  not is_object_on_screen 77@(43@,10i)
goto_if_false @ZERO4_22317
delete_object 77@(43@,10i)
43@ = 10

:ZERO4_22317
43@ += 1
goto @ZERO4_22243

:ZERO4_22331
if 
  124@ == 1
goto_if_false @ZERO4_22446
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 30
if 
  126@ > 114
goto_if_false @ZERO4_22389
126@ = 114

:ZERO4_22389
set_heli_stabiliser 71@ {state} False
set_heli_reached_target_distance 71@ {distance} 0
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0
124@ += 1

:ZERO4_22446
if 
  124@ == 2
goto_if_false @ZERO4_22729
if 
  locate_car_3d 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @ZERO4_22634
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22620
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22577
126@ = 114

:ZERO4_22577
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0
goto @ZERO4_22627

:ZERO4_22620
124@ += 1

:ZERO4_22627
goto @ZERO4_22729

:ZERO4_22634
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22729
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22693
126@ = 114

:ZERO4_22693
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0

:ZERO4_22729
if 
  124@ == 3
goto_if_false @ZERO4_22790
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 1.0 {maxAltitude} 343.0
124@ += 1

:ZERO4_22790
if 
  124@ == 4
goto_if_false @ZERO4_22869
if 
  locate_car_3d 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @ZERO4_22869
124@ += 1

:ZERO4_22869
if 
  124@ == 5
goto_if_false @ZERO4_22927
detach_object 77@(125@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 95@ {state} True
124@ += 1

:ZERO4_22927
if 
  124@ == 6
goto_if_false @ZERO4_22982
heli_goto_coords 71@ {x} -1131.694 {y} 1041.791 {z} 1345.141 {minAltitude} 5.0 {maxAltitude} 350.0
124@ += 1

:ZERO4_22982
if 
  124@ == 7
goto_if_false @ZERO4_23045
if 
  locate_car_2d 71@ {x} -1131.694 {y} 1041.791 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @ZERO4_23045
124@ = 0

:ZERO4_23045
goto @ZERO4_23087

:ZERO4_23052
if 
  124@ <> 99
goto_if_false @ZERO4_23087
mark_car_as_no_longer_needed 71@
remove_blip 98@
124@ = 99

:ZERO4_23087
43@ = 0

:ZERO4_23094
if 
  3 > 43@
goto_if_false @ZERO4_23406
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_23392
44@ = 0

:ZERO4_23139
if 
  10 > 44@
goto_if_false @ZERO4_23392
if 
  does_object_exist 77@(44@,10i)
goto_if_false @ZERO4_23378
if 
  is_vehicle_touching_object 72@(43@,3i) {handle} 77@(44@,10i)
goto_if_false @ZERO4_23378
46@ = get_object_speed 77@(44@,10i)
if 
  46@ > 5.0
goto_if_false @ZERO4_23294
45@ = get_car_health 72@(43@,3i)
45@ += -200
if 
  0 >= 45@
goto_if_false @ZERO4_23282
45@ = 1

:ZERO4_23282
set_car_health 72@(43@,3i) {health} 45@

:ZERO4_23294
if 
  122@ == 1
goto_if_false @ZERO4_23378
if 
  is_int_lvar_equal_to_int_lvar 142@ == 77@(44@,10i)
goto_if_false @ZERO4_23378
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0

:ZERO4_23378
44@ += 1
goto @ZERO4_23139

:ZERO4_23392
43@ += 1
goto @ZERO4_23094

:ZERO4_23406
44@ = 0

:ZERO4_23413
if 
  3 > 44@
goto_if_false @ZERO4_23460
set_lvar_int_to_lvar_int 551@ = 44@
gosub @ZERO4_24569
44@ += 1
goto @ZERO4_23413

:ZERO4_23460
if 
  not is_car_dead 68@
goto_if_false @ZERO4_23538
if 
  locate_car_3d 68@ {x} -1131.6 {y} 1057.7 {z} 1345.7 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_23538
gosub @ZERO4_24100
36@ = 1

:ZERO4_23538
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @ZERO4_23567
gosub @ZERO4_23838
37@ = 1

:ZERO4_23567
if 
  111@ == 0
goto_if_false @ZERO4_23615
gosub @ZERO4_23838
print_now 'Z4_M15' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23615
if 
  127@ == 0
goto_if_false @ZERO4_23663
gosub @ZERO4_23838
print_now 'Z4_M13' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23663
if 
  0 >= $7431
goto_if_false @ZERO4_23711
gosub @ZERO4_23838
print_now 'Z4_M12' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23711
if 
  35@ == 99
goto_if_false @ZERO4_23736
gosub @ZERO4_26267

:ZERO4_23736
if 
  38@ == 0
goto_if_false @ZERO4_23836
if 
  37@ == 0
goto_if_false @ZERO4_23820
if 
  36@ == 0
goto_if_false @ZERO4_23804
goto @ZERO4_133
goto @ZERO4_23813

:ZERO4_23804
gosub @ZERO4_26348
return 

:ZERO4_23813
goto @ZERO4_23829

:ZERO4_23820
gosub @ZERO4_26325
return 

:ZERO4_23829
goto @ZERO4_23838

:ZERO4_23836
return 

:ZERO4_23838
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_help 
clear_onscreen_timer $7431
clear_onscreen_counter $zero4_timer
wait 100
62@ = generate_random_int_in_range 0 {max} 3
switch_start 62@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24031 {caseNum1} 0 {caseLabel1} @ZERO4_23944 {caseNum2} 1 {caseLabel2} @ZERO4_23973 {caseNum3} 2 {caseLabel3} @ZERO4_24002 {caseNum4} -1 {caseLabel4} @ZERO4_24031 {caseNum5} -1 {caseLabel5} @ZERO4_24031 {caseNum6} -1 {caseLabel6} @ZERO4_24031 {caseNum7} -1 {caseLabel7} @ZERO4_24031

:ZERO4_23944
set_var_text_label s$audio_string = 'ZER4_NA'
set_var_int_to_constant $audio_sound_file = 22245
goto @ZERO4_24031

:ZERO4_23973
set_var_text_label s$audio_string = 'ZER4_NB'
set_var_int_to_constant $audio_sound_file = 22246
goto @ZERO4_24031

:ZERO4_24002
set_var_text_label s$audio_string = 'ZER4_NC'
set_var_int_to_constant $audio_sound_file = 22247
goto @ZERO4_24031

:ZERO4_24031
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_24053
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_24082
wait 0
goto @ZERO4_24053

:ZERO4_24082
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
return 

:ZERO4_24100
clear_onscreen_timer $7431
clear_onscreen_counter $zero4_timer
62@ = 0

:ZERO4_24117
if 
  550@ == 0
goto_if_false @ZERO4_24567
wait 0
if and
  TIMERB > 1000
  $audio_line_is_active == 0
goto_if_false @ZERO4_24560
switch_start 62@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24510 {caseNum1} 0 {caseLabel1} @ZERO4_24293 {caseNum2} 1 {caseLabel2} @ZERO4_24322 {caseNum3} 2 {caseLabel3} @ZERO4_24351 {caseNum4} 3 {caseLabel4} @ZERO4_24380 {caseNum5} 4 {caseLabel5} @ZERO4_24409 {caseNum6} 5 {caseLabel6} @ZERO4_24438 {caseNum7} 6 {caseLabel7} @ZERO4_24467
switch_continued 7 {caseLabel1} @ZERO4_24496 {caseNum2} -1 {caseLabel2} @ZERO4_24510 {caseNum3} -1 {caseLabel3} @ZERO4_24510 {caseNum4} -1 {caseLabel4} @ZERO4_24510 {caseNum5} -1 {caseLabel5} @ZERO4_24510 {caseNum6} -1 {caseLabel6} @ZERO4_24510 {caseNum7} -1 {caseLabel7} @ZERO4_24510 {caseNum8} -1 {caseLabel8} @ZERO4_24510 {caseNum9} -1 {caseLabel9} @ZERO4_24510

:ZERO4_24293
set_var_text_label s$audio_string = 'ZER4_OA'
set_var_int_to_constant $audio_sound_file = 22248
goto @ZERO4_24510

:ZERO4_24322
set_var_text_label s$audio_string = 'ZER4_OB'
set_var_int_to_constant $audio_sound_file = 22249
goto @ZERO4_24510

:ZERO4_24351
set_var_text_label s$audio_string = 'ZER4_OC'
set_var_int_to_constant $audio_sound_file = 22250
goto @ZERO4_24510

:ZERO4_24380
set_var_text_label s$audio_string = 'ZER4_OD'
set_var_int_to_constant $audio_sound_file = 22251
goto @ZERO4_24510

:ZERO4_24409
set_var_text_label s$audio_string = 'ZER4_OE'
set_var_int_to_constant $audio_sound_file = 22252
goto @ZERO4_24510

:ZERO4_24438
set_var_text_label s$audio_string = 'ZER4_OF'
set_var_int_to_constant $audio_sound_file = 22253
goto @ZERO4_24510

:ZERO4_24467
set_var_text_label s$audio_string = 'ZER4_OG'
set_var_int_to_constant $audio_sound_file = 22254
goto @ZERO4_24510

:ZERO4_24496
550@ = 1
goto @ZERO4_24510

:ZERO4_24510
if 
  550@ == 0
goto_if_false @ZERO4_24560
start_new_script @AUDIOL -1 0 1 1 0 
TIMERB = 0
62@ += 1

:ZERO4_24560
goto @ZERO4_24117

:ZERO4_24567
return 

:ZERO4_24569
if 
  not is_car_dead 72@(551@,3i)
goto_if_false @ZERO4_26216
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25330
if 
  is_int_lvar_equal_to_int_lvar 39@ == 551@
goto_if_false @ZERO4_25323
if 
  not is_car_dead 68@
goto_if_false @ZERO4_24718
$x, $y, $z = get_car_coordinates 68@
if 
  locate_car_3d 72@(551@,3i) {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ZERO4_24718
set_lvar_int_to_lvar_int 139@(551@,3i) = 68@

:ZERO4_24718
if 
  128@(551@,3i) <> 99
goto_if_false @ZERO4_25323
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25323
if 
  128@(551@,3i) == 0
goto_if_false @ZERO4_24951
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_24844
car_goto_coordinates_accurate 72@(551@,3i) {x} 173@(43@,2f) {y} 175@(43@,2f) {z} 177@(43@,2f)

:ZERO4_24844
if 
  551@ == 1
goto_if_false @ZERO4_24892
car_goto_coordinates_accurate 72@(551@,3i) {x} 179@(43@,2f) {y} 181@(43@,2f) {z} 183@(43@,2f)

:ZERO4_24892
if 
  551@ == 2
goto_if_false @ZERO4_24940
car_goto_coordinates_accurate 72@(551@,3i) {x} 185@(43@,2f) {y} 187@(43@,2f) {z} 189@(43@,2f)

:ZERO4_24940
128@(551@,3i) += 1

:ZERO4_24951
if 
  128@(551@,3i) == 1
goto_if_false @ZERO4_25323
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_25083
if 
  locate_car_3d 72@(551@,3i) {x} 173@(43@,2f) {y} 175@(43@,2f) {z} 177@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25083
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25083
if 
  551@ == 1
goto_if_false @ZERO4_25181
if 
  locate_car_3d 72@(551@,3i) {x} 179@(43@,2f) {y} 181@(43@,2f) {z} 183@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25181
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25181
if 
  551@ == 2
goto_if_false @ZERO4_25279
if 
  locate_car_3d 72@(551@,3i) {x} 185@(43@,2f) {y} 187@(43@,2f) {z} 189@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25279
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25279
if 
  131@(551@,3i) > 1
goto_if_false @ZERO4_25323
128@(551@,3i) = 99
131@(551@,3i) = 0

:ZERO4_25323
goto @ZERO4_26209

:ZERO4_25330
if 
  not is_car_dead 139@(551@,3i)
goto_if_false @ZERO4_26198
$x, $y, $z = get_car_coordinates 139@(551@,3i)
if 
  locate_car_3d 72@(551@,3i) {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ZERO4_26180
46@ = get_car_heading 72@(551@,3i)
56@, 57@, 58@ = get_car_coordinates 72@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
47@ = get_heading_from_vector_2d 50@ {y} 51@
set_lvar_float_to_lvar_float 48@ = 47@
sub_float_lvar_from_float_lvar 48@ -= 46@
if 
  48@ > 180.0
goto_if_false @ZERO4_25534
48@ += -360.0

:ZERO4_25534
if 
  -180.0 > 48@
goto_if_false @ZERO4_25565
48@ += 360.0

:ZERO4_25565
48@ *= 0.1
add_float_lvar_to_float_lvar 46@ += 48@
set_car_heading 72@(551@,3i) {heading} 46@
if 
  104@(551@,3i) > 500
goto_if_false @ZERO4_26173
$x, $y, $z = get_car_coordinates 139@(551@,3i)
56@, 57@, 58@ = get_car_coordinates 72@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$x, $y, $z = get_offset_from_car_in_world_coords 72@(551@,3i) {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_var_float 53@ = $x
sub_float_lvar_from_float_lvar 53@ -= 56@
set_lvar_float_to_var_float 54@ = $y
sub_float_lvar_from_float_lvar 54@ -= 57@
set_lvar_float_to_var_float 55@ = $z
sub_float_lvar_from_float_lvar 55@ -= 58@
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if 
  5.0 > 46@
goto_if_false @ZERO4_26173
46@ = get_angle_between_2d_vectors 1.0 {y1} 52@ {x2} 1.0 {y2} 0.0
if 
  45.0 > 46@
goto_if_false @ZERO4_26173
552@, 553@, 554@ = get_offset_from_car_in_world_coords 72@(551@,3i) {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.35
$x, $y, $z = get_car_coordinates 139@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 552@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 553@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 554@
46@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 552@ {toY} 553@ {toZ} 554@
div_float_lvar_by_float_lvar 50@ /= 46@
div_float_lvar_by_float_lvar 51@ /= 46@
div_float_lvar_by_float_lvar 52@ /= 46@
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
set_lvar_float_to_lvar_float 555@ = 552@
add_float_lvar_to_float_lvar 555@ += 50@
set_lvar_float_to_lvar_float 556@ = 553@
add_float_lvar_to_float_lvar 556@ += 51@
set_lvar_float_to_lvar_float 557@ = 554@
add_float_lvar_to_float_lvar 557@ += 52@
if 
  is_int_lvar_equal_to_int_lvar 139@(551@,3i) == 68@
goto_if_false @ZERO4_26128
print_now 'Z4_M19' {time} 5000 {flag} 1

:ZERO4_26128
report_mission_audio_event_at_car 72@(551@,3i) {soundId} ScriptSound.SoundMinitankFire
fire_single_bullet 552@ {fromY} 553@ {fromZ} 554@ {toX} 555@ {toY} 556@ {toZ} 557@ {energy} 50
104@(551@,3i) = 0

:ZERO4_26173
goto @ZERO4_26191

:ZERO4_26180
139@(551@,3i) = 0

:ZERO4_26191
goto @ZERO4_26209

:ZERO4_26198
139@(551@,3i) = 0

:ZERO4_26209
goto @ZERO4_26265

:ZERO4_26216
if 
  does_blip_exist 99@(551@,3i)
goto_if_false @ZERO4_26256
remove_blip 99@(551@,3i)
104@(551@,3i) = 0

:ZERO4_26256
mark_car_as_no_longer_needed 72@(551@,3i)

:ZERO4_26265
return 

:ZERO4_26267
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:ZERO4_26325
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 5000
return 

:ZERO4_26348
return 

:ZERO4_26350
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:ZERO4_26364
if 
  get_fading_status 
goto_if_false @ZERO4_26388
wait 0
goto @ZERO4_26364

:ZERO4_26388
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_scene -2246.9829 {y} 136.9301 {z} 34.3125
request_collision -2246.9829 {y} 136.9301
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
set_player_control $player1 {state} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2244.6689 {y} 132.1672 {z} 34.3203
set_char_heading $scplayer {heading} 92.111

:ZERO4_26486
if 
  is_char_waiting_for_world_collision $scplayer
goto_if_false @ZERO4_26513
wait 0
goto @ZERO4_26486

:ZERO4_26513
set_char_coordinates $scplayer {x} -2244.6689 {y} 132.1672 {z} 34.3203
set_char_heading $scplayer {heading} 92.111
set_camera_behind_player 
restore_camera_jumpcut 
load_scene -2244.6689 {y} 132.1672 {z} 34.3203
set_player_is_in_stadium False
hide_all_frontend_blips False
delete_car 68@
delete_car 69@
delete_car 70@
delete_car 71@
delete_car 72@
delete_car 73@
delete_car 74@
43@ = 0

:ZERO4_26614
if 
  10 > 43@
goto_if_false @ZERO4_26655
delete_object 77@(43@,10i)
43@ += 1
goto @ZERO4_26614

:ZERO4_26655
43@ = 0

:ZERO4_26662
if 
  5 > 43@
goto_if_false @ZERO4_26703
delete_object 87@(43@,5i)
43@ += 1
goto @ZERO4_26662

:ZERO4_26703
delete_object 92@
display_hud True
clear_onscreen_timer $7431
clear_onscreen_counter $zero4_timer
mark_model_as_no_longer_needed 441
mark_model_as_no_longer_needed 564
mark_model_as_no_longer_needed 501
mark_model_as_no_longer_needed 481
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
set_radar_zoom 0
restore_clock 
release_weather 
if 
  36@ == 1
goto_if_false @ZERO4_27112
$zero_cash_pickup = create_protection_pickup -2243.0071 {y} 136.9601 {z} 34.8203 {revenueLimit} $zero_revenue {revenueRate} $zero_revenue
set_player_control $player1 {state} False
switch_widescreen True
do_fade 500 {direction} Fade.Out

:ZERO4_26858
if 
  get_fading_status 
goto_if_false @ZERO4_26882
wait 0
goto @ZERO4_26858

:ZERO4_26882
load_scene -2254.8721 {y} 133.2548 {z} 38.7597
set_fixed_camera_position -2254.8721 {y} 133.2548 {z} 38.7597 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2253.8989 {y} 133.2602 {z} 38.527 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:ZERO4_26957
if 
  get_fading_status 
goto_if_false @ZERO4_26981
wait 0
goto @ZERO4_26957

:ZERO4_26981
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -2246.7871 {y} 136.6037 {z} 36.2636 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2245.825 {y} 136.601 {z} 35.9893 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $zero_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:ZERO4_27088
if 
  get_fading_status 
goto_if_false @ZERO4_27112
wait 0
goto @ZERO4_27088

:ZERO4_27112
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
remove_rc_buggy 
if 
  36@ == 1
goto_if_false @ZERO4_27205
print_with_number_big 'M_PASS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
register_mission_passed 'ZERO_4'
player_made_progress 1
add_score $player1 {money} 7000
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $zero_contact_blip
$flag_zero_mission_counter += 1

:ZERO4_27205
$timer_mobile_start = get_game_timer 
set_player_control $player1 {state} True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 75---------------
// Originally: Monster

:TORENO1
script_name 'TORENO1'
gosub @TORENO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO1_38
gosub @TORENO1_14438

:TORENO1_38
gosub @TORENO1_14528
terminate_this_script 

:TORENO1_47
$onmission = 1
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
force_weather WeatherType.SunnyCountryside
load_mission_text 'TORENO1'
load_cutscene 'DESERT1'

:TORENO1_90
if 
  not has_cutscene_loaded 
goto_if_false @TORENO1_114
wait 0
goto @TORENO1_90

:TORENO1_114
clear_area -694.4335 {y} 964.9288 {z} 11.2431 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:TORENO1_147
if 
  not has_cutscene_finished 
goto_if_false @TORENO1_171
wait 0
goto @TORENO1_147

:TORENO1_171
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:TORENO1_184
if 
  get_fading_status 
goto_if_false @TORENO1_208
wait 0
goto @TORENO1_184

:TORENO1_208
clear_cutscene 
release_weather 
wait 0
34@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
46@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
34@ = 0
40@ = 0
88@ = 0
195@ = 33
36@ = 35
37@ = 0
52@ = 582.7242
59@ = 356.2812
66@ = 60.2072
73@ = 52.2072
53@ = 581.7789
60@ = 329.3647
67@ = 0.5427
74@ = 2.0841
54@ = 569.0
61@ = 323.5937
68@ = 0.7585
75@ = 3.8106
55@ = 577.7526
62@ = 335.6341
69@ = 0.4929
76@ = 1.8511
56@ = 583.3384
63@ = 355.0323
70@ = 0.4993
77@ = 2.637
57@ = 582.7242
64@ = 356.2812
71@ = 64.2072
78@ = 56.2072
58@ = 582.7242
65@ = 356.2812
72@ = 66.2072
79@ = 58.2072
90@ = -824.7935
125@ = 1078.275
160@ = 34.9479
91@ = -955.9566
126@ = 1359.621
161@ = 33.8826
92@ = -1030.999
127@ = 1446.298
162@ = 38.34
93@ = -1132.675
128@ = 1759.152
163@ = 35.3673
94@ = -1088.92
129@ = 1981.801
164@ = 125.1471
95@ = -990.0067
130@ = 2014.025
165@ = 113.5758
96@ = -1028.137
131@ = 2116.468
166@ = 88.2456
97@ = -1102.431
132@ = 2369.9451
167@ = 84.0834
98@ = -1130.04
133@ = 2323.3091
168@ = 87.9125
99@ = -1150.184
134@ = 2261.9431
169@ = 96.1878
100@ = -1293.377
135@ = 2221.605
170@ = 98.322
101@ = -1349.91
136@ = 2342.396
171@ = 94.5565
102@ = -1285.214
137@ = 2441.4221
172@ = 88.557
103@ = -1248.606
138@ = 2596.99
173@ = 89.817
104@ = -1174.87
139@ = 2304.5891
174@ = 113.1954
105@ = -1094.353
140@ = 2304.949
175@ = 85.4543
106@ = -1108.603
141@ = 2491.6931
176@ = 79.8438
107@ = -1224.7629
142@ = 2680.323
177@ = 46.8193
108@ = -1333.673
143@ = 2660.2051
178@ = 49.0624
109@ = -1622.432
144@ = 2670.262
179@ = 53.5027
110@ = -1646.642
145@ = 2478.291
180@ = 85.833
111@ = -1742.658
146@ = 2458.6631
181@ = 71.4663
112@ = -1687.3
147@ = 2394.6931
182@ = 58.0739
113@ = -1752.384
148@ = 2299.2939
183@ = 37.9221
114@ = -1687.584
149@ = 2336.405
184@ = 32.4859
115@ = -1575.405
150@ = 2275.4121
185@ = 55.2948
116@ = -1508.816
151@ = 1929.009
186@ = 46.1035
117@ = -1330.147
152@ = 1888.01
187@ = 46.2572
118@ = -1147.85
153@ = 1721.926
188@ = 43.41
119@ = -1036.475
154@ = 1564.297
189@ = 32.8195
120@ = -995.6179
155@ = 1395.26
190@ = 40.9086
121@ = -810.2653
156@ = 1149.114
191@ = 33.024
122@ = -702.602
157@ = 1118.1899
192@ = 35.5621
123@ = -700.9643
158@ = 955.246
193@ = 12.7168
34@ = 0

:TORENO1_1670
if 
  34 > 34@
goto_if_false @TORENO1_1716
160@(34@,35f) -= 1.0
34@ += 1
goto @TORENO1_1670

:TORENO1_1716
34@ = 0
224@ = 0
225@ = 1
226@ = 2
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
set_var_text_label s$7443[1] = 'DES1_BA'
set_var_text_label s$7443[2] = 'DES1_BB'
set_var_text_label s$7443[3] = 'DES1_BC'
set_var_text_label s$7443[4] = 'DES1_BD'
set_var_text_label s$7443[5] = 'DES1_BE'
set_var_text_label s$7443[6] = 'DES1_BF'
set_var_text_label s$7443[7] = 'DES1_BG'
set_var_text_label s$7443[8] = 'DES1_BH'
set_var_text_label s$7443[9] = 'DES1_CA'
set_var_text_label s$7443[10] = 'DES1_CB'
set_var_text_label s$7443[11] = 'DES1_CC'
set_var_text_label s$7443[12] = 'DES1_CD'
set_var_text_label s$7443[13] = 'DES1_CE'
set_var_text_label s$7443[14] = 'DES1_CF'
set_var_text_label s$7443[15] = 'DES1_CG'
set_var_text_label s$7443[16] = 'DES1_BJ'
set_lvar_int_to_constant 208@ = 5819
set_lvar_int_to_constant 209@ = 5820
set_lvar_int_to_constant 210@ = 5821
set_lvar_int_to_constant 211@ = 5822
set_lvar_int_to_constant 212@ = 5817
set_lvar_int_to_constant 213@ = 5823
set_lvar_int_to_constant 214@ = 5824
set_lvar_int_to_constant 215@ = 5825
set_lvar_int_to_constant 216@ = 5826
set_lvar_int_to_constant 217@ = 5827
set_lvar_int_to_constant 218@ = 5828
set_lvar_int_to_constant 219@ = 5829
set_lvar_int_to_constant 220@ = 5830
set_lvar_int_to_constant 221@ = 5831
set_lvar_int_to_constant 222@ = 5832
set_lvar_int_to_constant 223@ = 5818
set_var_text_label s$z4_pcar_health = 'DES1_45'
set_var_text_label s$7435 = 'DES1_46'
set_var_text_label s$7437 = 'DES1_47'
set_var_text_label s$7439 = 'DES1_48'
set_var_text_label s$7441 = 'DES1_49'
200@ = 260
201@ = 300
202@ = 330
203@ = 360
204@ = 390
205@ = 0
set_fading_colour 0 {g} 0 {b} 0
wait 0
do_fade 1500 {direction} Fade.Out

:TORENO1_2281
if 
  get_fading_status 
goto_if_false @TORENO1_2305
wait 0
goto @TORENO1_2281

:TORENO1_2305
set_player_control $player1 {state} False
switch_widescreen True
request_model 444
request_model 25
request_animation "GANGS"

:TORENO1_2334
if or
  not has_model_loaded 444
  not has_model_loaded 25
  not has_animation_loaded "GANGS"
goto_if_false @TORENO1_2374
wait 0
goto @TORENO1_2334

:TORENO1_2374
clear_area -694.4335 {y} 964.9288 {z} 11.2431 {radius} 50.0 {clearParticles} True
80@ = create_car 444 {x} -694.4335 {y} 964.9288 {z} 11.2431
set_car_heading 80@ {heading} 85.85
freeze_car_position 80@ {state} True
81@ = create_char PedType.Mission1 {modelId} 25 {x} -698.2989 {y} 963.026 {z} 11.3035
set_char_heading 81@ {heading} 211.0638
39@ = get_car_health 80@
set_char_coordinates $scplayer {x} -697.7833 {y} 961.7714 {z} 11.2955
set_char_heading $scplayer {heading} 15.8778
set_fixed_camera_position -699.15 {y} 961.41 {z} 12.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -685.7 {y} 971.97 {z} 13.1 {switchStyle} SwitchType.JumpCut
display_car_names False
display_zone_names False
do_fade 1500 {direction} Fade.In

:TORENO1_2576
if 
  get_fading_status 
goto_if_false @TORENO1_2600
wait 0
goto @TORENO1_2576

:TORENO1_2600
if 
  not is_char_dead 81@
goto_if_false @TORENO1_2632
task_look_at_char $scplayer {target} 81@ {time} 20000
clear_char_tasks 81@

:TORENO1_2632
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
skip_cutscene_start_internal @TORENO1_4801

:TORENO1_2681
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_4801
if 
  224@ <> 0
goto_if_false @TORENO1_3068
if 
  227@ == 0
goto_if_false @TORENO1_2767
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_2760
clear_mission_audio 226@

:TORENO1_2760
227@ = 1

:TORENO1_2767
if 
  227@ == 1
goto_if_false @TORENO1_2804
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_2804
if 
  227@ == 2
goto_if_false @TORENO1_2864
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_2864
play_mission_audio 225@
print_now $7443(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_2864
if 
  227@ == 3
goto_if_false @TORENO1_3068
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_3007
clear_this_print $7443(224@,17s)
if 
  not is_char_dead 81@
goto_if_false @TORENO1_2928
stop_char_facial_talk 81@

:TORENO1_2928
stop_char_facial_talk $scplayer
if 
  225@ == 1
goto_if_false @TORENO1_2972
225@ = 2
226@ = 1
goto @TORENO1_2986

:TORENO1_2972
225@ = 1
226@ = 2

:TORENO1_2986
224@ = 0
227@ = 0
goto @TORENO1_3068

:TORENO1_3007
if 
  not has_mission_audio_loaded 226@
goto_if_false @TORENO1_3068
if 
  8 > 224@
goto_if_false @TORENO1_3068
set_lvar_int_to_lvar_int 233@ = 224@
233@ += 1
load_mission_audio 226@ {audioId} 207@(233@,17i)

:TORENO1_3068
switch_start 229@ {numCases} 9 {hasDefaultCase} 1 {defaultLabel} @TORENO1_4701 {caseNum1} 0 {caseLabel1} @TORENO1_3196 {caseNum2} 1 {caseLabel2} @TORENO1_3312 {caseNum3} 2 {caseLabel3} @TORENO1_3468 {caseNum4} 3 {caseLabel4} @TORENO1_3624 {caseNum5} 4 {caseLabel5} @TORENO1_3780 {caseNum6} 5 {caseLabel6} @TORENO1_4010 {caseNum7} 6 {caseLabel7} @TORENO1_4150
switch_continued 7 {caseLabel1} @TORENO1_4311 {caseNum2} 8 {caseLabel2} @TORENO1_4531 {caseNum3} -1 {caseLabel3} @TORENO1_4794 {caseNum4} -1 {caseLabel4} @TORENO1_4794 {caseNum5} -1 {caseLabel5} @TORENO1_4794 {caseNum6} -1 {caseLabel6} @TORENO1_4794 {caseNum7} -1 {caseLabel7} @TORENO1_4794 {caseNum8} -1 {caseLabel8} @TORENO1_4794 {caseNum9} -1 {caseLabel9} @TORENO1_4794

:TORENO1_3196
if 
  227@ == 0
goto_if_false @TORENO1_3305
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3286
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3286
224@ = 1
229@ = 1
232@ = get_game_timer 

:TORENO1_3305
goto @TORENO1_4794

:TORENO1_3312
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3461
if 
  227@ == 0
goto_if_false @TORENO1_3461
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3442
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3442
224@ = 2
229@ = 2
232@ = get_game_timer 

:TORENO1_3461
goto @TORENO1_4794

:TORENO1_3468
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3617
if 
  227@ == 0
goto_if_false @TORENO1_3617
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3598
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3598
224@ = 3
229@ = 3
232@ = get_game_timer 

:TORENO1_3617
goto @TORENO1_4794

:TORENO1_3624
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3773
if 
  227@ == 0
goto_if_false @TORENO1_3773
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3754
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3754
224@ = 4
229@ = 4
232@ = get_game_timer 

:TORENO1_3773
goto @TORENO1_4794

:TORENO1_3780
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4003
if 
  227@ == 0
goto_if_false @TORENO1_4003
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3877
stop_char_facial_talk 81@
start_char_facial_talk $scplayer {duration} 4000
clear_char_tasks 81@
clear_char_tasks 81@

:TORENO1_3877
87@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 87@
perform_sequence_task $scplayer {sequence} 87@
clear_sequence_task 87@
224@ = 5
229@ = 5
232@ = get_game_timer 

:TORENO1_4003
goto @TORENO1_4794

:TORENO1_4010
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4143
if 
  227@ == 0
goto_if_false @TORENO1_4143
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
224@ = 16
229@ = 6
232@ = get_game_timer 

:TORENO1_4143
goto @TORENO1_4794

:TORENO1_4150
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4304
if 
  227@ == 0
goto_if_false @TORENO1_4304
clear_char_tasks $scplayer
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4285
stop_char_facial_talk $scplayer
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_4285
224@ = 6
229@ = 7
232@ = get_game_timer 

:TORENO1_4304
goto @TORENO1_4794

:TORENO1_4311
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4524
if 
  227@ == 0
goto_if_false @TORENO1_4524
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4505
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
87@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 87@
perform_sequence_task 81@ {sequence} 87@
clear_sequence_task 87@

:TORENO1_4505
224@ = 7
229@ = 8
232@ = get_game_timer 

:TORENO1_4524
goto @TORENO1_4794

:TORENO1_4531
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4694
if 
  227@ == 0
goto_if_false @TORENO1_4694
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4646
clear_char_tasks 81@
task_play_anim 81@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_4646
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4675
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000

:TORENO1_4675
224@ = 8
229@ = 9
232@ = get_game_timer 

:TORENO1_4694
goto @TORENO1_4794

:TORENO1_4701
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4787
if 
  227@ == 0
goto_if_false @TORENO1_4787
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4780
stop_char_facial_talk 81@

:TORENO1_4780
228@ = 1

:TORENO1_4787
goto @TORENO1_4794

:TORENO1_4794
goto @TORENO1_2681

:TORENO1_4801
skip_cutscene_end 
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4824
stop_char_facial_talk 81@

:TORENO1_4824
stop_char_facial_talk $scplayer
clear_mission_audio 225@
clear_mission_audio 226@
clear_char_tasks $scplayer
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4865
clear_char_tasks 81@

:TORENO1_4865
clear_prints 
set_lvar_int_to_lvar_int 48@ = 204@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 204@
sub_int_lvar_from_int_lvar 49@ -= 35@
skip_cutscene_start_internal @TORENO1_5013
if 
  49@ > 9
goto_if_false @TORENO1_4967
print_with_2_numbers_now 'DES1_69' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle
goto @TORENO1_4989

:TORENO1_4967
print_with_2_numbers_now 'DES1_70' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle

:TORENO1_4989
if 
  is_message_being_displayed 
goto_if_false @TORENO1_5013
wait 0
goto @TORENO1_4989

:TORENO1_5013
skip_cutscene_end 
clear_prints 
do_fade 1000 {direction} Fade.Out

:TORENO1_5024
if 
  get_fading_status 
goto_if_false @TORENO1_5048
wait 0
goto @TORENO1_5024

:TORENO1_5048
delete_char 81@
set_char_coordinates $scplayer {x} -691.7533 {y} 960.2396 {z} 11.209
skip_cutscene_start_internal @TORENO1_5084
use_text_commands True

:TORENO1_5084
skip_cutscene_end 
clear_prints 
delete_menu 206@
remove_animation "GANGS"
clear_look_at $scplayer
restore_camera_jumpcut 
clear_char_tasks $scplayer
print 'DES1_10' {time} 10000 {flag} 1
if 
  not is_car_dead 80@
goto_if_false @TORENO1_5173
freeze_car_position 80@ {state} False
delete_char 81@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True

:TORENO1_5173
set_char_coordinates $scplayer {x} -697.7833 {y} 961.7714 {z} 11.2955
set_char_heading $scplayer {heading} 15.8778
restore_camera_jumpcut 
switch_widescreen False
do_fade 1000 {direction} Fade.In

:TORENO1_5216
if 
  get_fading_status 
goto_if_false @TORENO1_5240
wait 0
goto @TORENO1_5216

:TORENO1_5240
set_player_control $player1 {state} True

:TORENO1_5247
wait 0
if 
  83@ == 0
goto_if_false @TORENO1_5563
if 
  not is_car_dead 80@
goto_if_false @TORENO1_5538
if 
  is_char_sitting_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_5511
clear_prints 
remove_blip 82@
82@ = add_blip_for_coord -719.5559 {y} 980.5707 {z} 11.1371
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
199@ = create_checkpoint CheckpointType.TubeArrow {x} -719.5559 {y} 980.5707 {z} 11.1371 {pointX} 90@(88@,35f) {pointY} 125@(88@,35f) {pointZ} 160@(88@,35f) {radius} 6.0
print 'DES1_58' {time} 5000 {flag} 1
38@ = get_controller_mode 
if 
  2 > 38@
goto_if_false @TORENO1_5443
print_help_forever 'DES1_59'
goto @TORENO1_5490

:TORENO1_5443
if 
  38@ == 2
goto_if_false @TORENO1_5479
print_help_forever 'DES1_60'
goto @TORENO1_5490

:TORENO1_5479
print_help_forever 'DES1_61'

:TORENO1_5490
85@ = 1
83@ = 1
goto @TORENO1_5531

:TORENO1_5511
clear_prints 
clear_help 
print 'DES1_10' {time} 1000 {flag} 1

:TORENO1_5531
goto @TORENO1_5563

:TORENO1_5538
clear_prints 
print 'DES1_11' {time} 2000 {flag} 1
goto @TORENO1_14438

:TORENO1_5563
if 
  83@ == 1
goto_if_false @TORENO1_6129
if 
  not is_car_dead 80@
goto_if_false @TORENO1_6104
if 
  is_char_sitting_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_6027
if 
  85@ == 0
goto_if_false @TORENO1_5827
clear_prints 
print 'DES1_58' {time} 5000 {flag} 1
remove_blip 82@
82@ = add_blip_for_coord -719.5559 {y} 980.5707 {z} 11.1371
199@ = create_checkpoint CheckpointType.TubeArrow {x} -719.5559 {y} 980.5707 {z} 11.1371 {pointX} 90@(88@,35f) {pointY} 125@(88@,35f) {pointZ} 160@(88@,35f) {radius} 6.0
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
38@ = get_controller_mode 
if 
  2 > 38@
goto_if_false @TORENO1_5773
print_help_forever 'DES1_59'
goto @TORENO1_5820

:TORENO1_5773
if 
  38@ == 2
goto_if_false @TORENO1_5809
print_help_forever 'DES1_60'
goto @TORENO1_5820

:TORENO1_5809
print_help_forever 'DES1_61'

:TORENO1_5820
85@ = 1

:TORENO1_5827
if 
  locate_char_in_car_3d $scplayer {x} -719.5559 {y} 980.5707 {z} 11.1371 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.5 {drawSphere} False
goto_if_false @TORENO1_6020
clear_prints 
add_one_off_sound -719.5559 {y} 980.5707 {z} 11.1371 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 82@
delete_checkpoint 199@
43@ = get_game_timer 
89@ = 1
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
86@ = 1
83@ = 2

:TORENO1_6020
goto @TORENO1_6097

:TORENO1_6027
if 
  85@ == 1
goto_if_false @TORENO1_6081
remove_blip 82@
delete_checkpoint 199@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True
85@ = 0
clear_help 
clear_prints 

:TORENO1_6081
print 'DES1_10' {time} 4000 {flag} 1

:TORENO1_6097
goto @TORENO1_6129

:TORENO1_6104
clear_prints 
print 'DES1_11' {time} 2000 {flag} 1
goto @TORENO1_14438

:TORENO1_6129
if 
  83@ == 2
goto_if_false @TORENO1_7669
draw_rect 58@ {y} 65@ {width} 72@ {height} 79@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 57@ {y} 64@ {width} 71@ {height} 78@ {r} 180 {g} 180 {b} 180 {a} 255
draw_rect 52@ {y} 59@ {width} 66@ {height} 73@ {r} 0 {g} 0 {b} 0 {a} 255
set_lvar_int_to_lvar_int 37@ = 89@
gosub @TORENO1_14302
set_text_scale 69@ {heightScale} 76@
set_text_centre True
if 
  37@ == 11
goto_if_false @TORENO1_6268
set_text_proportional False

:TORENO1_6268
display_text_with_2_numbers 583.7526 {offsetTop} 62@ {key} 'DES1_67' {num1} 37@ {num2} 36@
gosub @TORENO1_14302
set_text_scale 69@ {heightScale} 76@
44@ = get_game_timer 
set_lvar_int_to_lvar_int 47@ = 44@
sub_int_lvar_from_int_lvar 47@ -= 43@
47@ /= 1000
gosub @TORENO1_14302
if 
  is_int_lvar_greater_than_int_lvar 47@ > 204@
goto_if_false @TORENO1_6375
set_text_colour 180 {green} 0 {blue} 0 {alpha} 255

:TORENO1_6375
set_lvar_int_to_lvar_int 48@ = 47@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 47@
sub_int_lvar_from_int_lvar 49@ -= 35@
set_text_centre True
set_text_scale 70@ {heightScale} 77@
if or
  49@ == 11
  48@ == 11
goto_if_false @TORENO1_6462
set_text_proportional False

:TORENO1_6462
if 
  48@ > 99
goto_if_false @TORENO1_6505
clear_prints 
print 'DES1_28' {time} 4000 {flag} 1
goto @TORENO1_14438

:TORENO1_6505
if 
  49@ > 9
goto_if_false @TORENO1_6553
display_text_with_2_numbers 56@ {offsetTop} 63@ {key} 'DES1_65' {num1} 48@ {num2} 49@
goto @TORENO1_6576

:TORENO1_6553
display_text_with_2_numbers 56@ {offsetTop} 63@ {key} 'DES1_66' {num1} 48@ {num2} 49@

:TORENO1_6576
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7066
if 
  not is_char_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_6844
if 
  86@ == 1
goto_if_false @TORENO1_6673
delete_checkpoint 199@
remove_blip 82@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True
50@ = get_game_timer 
86@ = 0
goto @TORENO1_6837

:TORENO1_6673
51@ = get_game_timer 
set_lvar_int_to_lvar_int 47@ = 51@
sub_int_lvar_from_int_lvar 47@ -= 50@
49@ = 10000
sub_int_lvar_from_int_lvar 49@ -= 47@
49@ /= 1000
if 
  49@ > 0
goto_if_false @TORENO1_6812
clear_prints 
add_next_message_to_previous_briefs False
if 
  2 > 49@
goto_if_false @TORENO1_6786
print_with_number 'DES1_26' {num} 49@ {duration} 4000 {flag} 1
goto @TORENO1_6805

:TORENO1_6786
print_with_number 'DES1_25' {num} 49@ {duration} 4000 {flag} 1

:TORENO1_6805
goto @TORENO1_6837

:TORENO1_6812
clear_prints 
print 'DES1_27' {time} 4000 {flag} 1
goto @TORENO1_14438

:TORENO1_6837
goto @TORENO1_7059

:TORENO1_6844
if 
  86@ == 0
goto_if_false @TORENO1_7059
remove_blip 82@
clear_prints 
print 'DES1_44' {time} 4000 {flag} 1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_6965
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
goto @TORENO1_7019

:TORENO1_6965
199@ = create_checkpoint CheckpointType.TubeEnd {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(195@,35f) {pointY} 125@(195@,35f) {pointZ} 160@(195@,35f) {radius} 6.0

:TORENO1_7019
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
86@ = 1

:TORENO1_7059
goto @TORENO1_7091

:TORENO1_7066
clear_prints 
print 'DES1_43' {time} 4000 {flag} 1
goto @TORENO1_14438

:TORENO1_7091
if 
  86@ == 1
goto_if_false @TORENO1_7669
if 
  is_int_lvar_greater_than_int_lvar 195@ > 88@
goto_if_false @TORENO1_7543
if 
  locate_char_in_car_3d $scplayer {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO1_7536
clear_help 
add_one_off_sound 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 199@
remove_blip 82@
88@ += 1
set_lvar_int_to_lvar_int 89@ = 88@
89@ += 1
if 
  is_int_lvar_greater_than_int_lvar 88@ > 195@
goto_if_false @TORENO1_7269
set_lvar_int_to_lvar_int 88@ = 195@

:TORENO1_7269
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_7382
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
goto @TORENO1_7469

:TORENO1_7382
199@ = create_checkpoint CheckpointType.TubeEnd {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(195@,35f) {pointY} 125@(195@,35f) {pointZ} 160@(195@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy

:TORENO1_7469
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7536
39@ = get_car_health 80@
39@ += 200
if 
  39@ > 1000
goto_if_false @TORENO1_7528
39@ = 1000

:TORENO1_7528
set_car_health 80@ {health} 39@

:TORENO1_7536
goto @TORENO1_7669

:TORENO1_7543
if 
  locate_char_in_car_3d $scplayer {x} 90@(195@,35f) {y} 125@(195@,35f) {z} 160@(195@,35f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO1_7669
delete_checkpoint 199@
remove_blip 82@
gosub @TORENO1_7810
if 
  5 > 205@
goto_if_false @TORENO1_7646
goto @TORENO1_14456
goto @TORENO1_7669

:TORENO1_7646
print_now 'DES1_68' {time} 5000 {flag} 1
goto @TORENO1_14438

:TORENO1_7669
if 
is_ps2_keyboard_key_pressed 86
goto_if_false @TORENO1_7692
43@ -= 1000

:TORENO1_7692
if 
is_ps2_keyboard_key_pressed 40
goto_if_false @TORENO1_7735
196@, 197@, 198@ = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 196@ {y} 197@ {z} 198@

:TORENO1_7735
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @TORENO1_7781
45@ = 360000
43@ = 0
gosub @TORENO1_7810
goto @TORENO1_14456

:TORENO1_7781
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TORENO1_7803
goto @TORENO1_14456

:TORENO1_7803
goto @TORENO1_5247

:TORENO1_7810
45@ = get_game_timer 
do_fade 1000 {direction} Fade.Out
request_model 25
request_animation "GANGS"
set_player_control $player1 {state} False
switch_widescreen True

:TORENO1_7846
if 
  get_fading_status 
goto_if_false @TORENO1_7870
wait 0
goto @TORENO1_7846

:TORENO1_7870
if or
  not has_model_loaded 25
  not has_animation_loaded "GANGS"
goto_if_false @TORENO1_7905
wait 0
goto @TORENO1_7870

:TORENO1_7905
clear_area -684.8021 {y} 948.1096 {z} 11.125 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7975
set_car_coordinates 80@ {x} -680.7953 {y} 953.2972 {z} 11.125
set_car_heading 80@ {heading} 238.0439

:TORENO1_7975
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO1_8018
warp_char_from_car_to_coord $scplayer {x} -684.8021 {y} 948.1096 {z} 11.125
goto @TORENO1_8038

:TORENO1_8018
set_char_coordinates $scplayer {x} -684.8021 {y} 948.1096 {z} 11.125

:TORENO1_8038
set_char_heading $scplayer {heading} 124.6699
81@ = create_char PedType.Mission3 {modelId} 25 {x} -687.6009 {y} 946.4823 {z} 12.0389
set_char_heading 81@ {heading} 293.1942
set_fixed_camera_position -688.32 {y} 945.02 {z} 14.13 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -680.57 {y} 951.17 {z} 10.63 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 46@ = 45@
sub_int_lvar_from_int_lvar 46@ -= 43@
46@ /= 1000
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
clear_prints 
do_fade 1500 {direction} Fade.In

:TORENO1_8212
if 
  get_fading_status 
goto_if_false @TORENO1_8236
wait 0
goto @TORENO1_8212

:TORENO1_8236
if 
  10 > 49@
goto_if_false @TORENO1_8283
print_with_2_numbers_now 'DES1_32' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle
goto @TORENO1_8305

:TORENO1_8283
print_with_2_numbers_now 'DES1_33' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle

:TORENO1_8305
205@ = 5
34@ = 0

:TORENO1_8319
if 
  5 > 34@
goto_if_false @TORENO1_8381
if 
  is_int_lvar_greater_than_int_lvar 200@(34@,5i) > 46@
goto_if_false @TORENO1_8367
205@ -= 1

:TORENO1_8367
34@ += 1
goto @TORENO1_8319

:TORENO1_8381
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_12099 {caseNum1} 0 {caseLabel1} @TORENO1_8444 {caseNum2} 1 {caseLabel2} @TORENO1_9175 {caseNum3} 2 {caseLabel3} @TORENO1_9906 {caseNum4} 3 {caseLabel4} @TORENO1_10637 {caseNum5} 4 {caseLabel5} @TORENO1_11368 {caseNum6} -1 {caseLabel6} @TORENO1_12743 {caseNum7} -1 {caseLabel7} @TORENO1_12743

:TORENO1_8444
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} 'DES1_50' {row1} s$z4_pcar_health {row2} s$7435 {row3} s$7437 {row4} s$7439 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_8836
if 
  5 > 34@
goto_if_false @TORENO1_8905
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_8836

:TORENO1_8905
40@ = 0
34@ = 0

:TORENO1_8919
if 
  5 > 34@
goto_if_false @TORENO1_9168
if 
  34@ == 0
goto_if_false @TORENO1_9008
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9079

:TORENO1_9008
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_9079
if 
  10 > 49@
goto_if_false @TORENO1_9129
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_9154

:TORENO1_9129
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_9154
34@ += 1
goto @TORENO1_8919

:TORENO1_9168
goto @TORENO1_12743

:TORENO1_9175
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$z4_pcar_health {row1} 'DES1_50' {row2} s$7435 {row3} s$7437 {row4} s$7439 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_9567
if 
  5 > 34@
goto_if_false @TORENO1_9636
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_9567

:TORENO1_9636
34@ = 0
40@ = 0

:TORENO1_9650
if 
  5 > 34@
goto_if_false @TORENO1_9899
if 
  34@ == 1
goto_if_false @TORENO1_9739
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9810

:TORENO1_9739
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_9810
if 
  10 > 49@
goto_if_false @TORENO1_9860
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_9885

:TORENO1_9860
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_9885
34@ += 1
goto @TORENO1_9650

:TORENO1_9899
goto @TORENO1_12743

:TORENO1_9906
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$z4_pcar_health {row1} s$7435 {row2} 'DES1_50' {row3} s$7437 {row4} s$7439 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_10298
if 
  5 > 34@
goto_if_false @TORENO1_10367
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_10298

:TORENO1_10367
40@ = 0
34@ = 0

:TORENO1_10381
if 
  5 > 34@
goto_if_false @TORENO1_10630
if 
  34@ == 2
goto_if_false @TORENO1_10470
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_10541

:TORENO1_10470
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_10541
if 
  10 > 49@
goto_if_false @TORENO1_10591
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_10616

:TORENO1_10591
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_10616
34@ += 1
goto @TORENO1_10381

:TORENO1_10630
goto @TORENO1_12743

:TORENO1_10637
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$z4_pcar_health {row1} s$7435 {row2} s$7437 {row3} 'DES1_50' {row4} s$7439 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_11029
if 
  5 > 34@
goto_if_false @TORENO1_11098
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_11029

:TORENO1_11098
34@ = 0
40@ = 0

:TORENO1_11112
if 
  5 > 34@
goto_if_false @TORENO1_11361
if 
  34@ == 3
goto_if_false @TORENO1_11201
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_11272

:TORENO1_11201
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_11272
if 
  10 > 49@
goto_if_false @TORENO1_11322
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_11347

:TORENO1_11322
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_11347
34@ += 1
goto @TORENO1_11112

:TORENO1_11361
goto @TORENO1_12743

:TORENO1_11368
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$z4_pcar_health {row1} s$7435 {row2} s$7437 {row3} s$7439 {row4} 'DES1_50' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_11760
if 
  5 > 34@
goto_if_false @TORENO1_11829
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_11760

:TORENO1_11829
34@ = 0
40@ = 0

:TORENO1_11843
if 
  5 > 34@
goto_if_false @TORENO1_12092
if 
  34@ == 4
goto_if_false @TORENO1_11932
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_12003

:TORENO1_11932
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_12003
if 
  10 > 49@
goto_if_false @TORENO1_12053
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_12078

:TORENO1_12053
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_12078
34@ += 1
goto @TORENO1_11843

:TORENO1_12092
goto @TORENO1_12743

:TORENO1_12099
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$z4_pcar_health {row1} s$7435 {row2} s$7437 {row3} s$7439 {row4} s$7441 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_12485
if 
  5 > 34@
goto_if_false @TORENO1_12554
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_12485

:TORENO1_12554
34@ = 0
40@ = 0

:TORENO1_12568
if 
  5 > 34@
goto_if_false @TORENO1_12736
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
40@ += 1
if 
  10 > 49@
goto_if_false @TORENO1_12697
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_12722

:TORENO1_12697
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_12722
34@ += 1
goto @TORENO1_12568

:TORENO1_12736
goto @TORENO1_12743

:TORENO1_12743
if 
  is_message_being_displayed 
goto_if_false @TORENO1_12767
wait 0
goto @TORENO1_12743

:TORENO1_12767
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
229@ = 0

:TORENO1_12816
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_13641
if 
  224@ <> 0
goto_if_false @TORENO1_13116
if 
  227@ == 0
goto_if_false @TORENO1_12902
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_12895
clear_mission_audio 226@

:TORENO1_12895
227@ = 1

:TORENO1_12902
if 
  227@ == 1
goto_if_false @TORENO1_12939
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_12939
if 
  227@ == 2
goto_if_false @TORENO1_12999
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_12999
play_mission_audio 225@
print_now $7443(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_12999
if 
  227@ == 3
goto_if_false @TORENO1_13116
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_13116
clear_this_print $7443(224@,17s)
if 
  225@ == 1
goto_if_false @TORENO1_13081
225@ = 2
226@ = 1
goto @TORENO1_13095

:TORENO1_13081
225@ = 1
226@ = 2

:TORENO1_13095
224@ = 0
227@ = 0
228@ = 1

:TORENO1_13116
if 
  229@ == 0
goto_if_false @TORENO1_13634
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13206
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_13206
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_13574 {caseNum1} 0 {caseLabel1} @TORENO1_13269 {caseNum2} 1 {caseLabel2} @TORENO1_13330 {caseNum3} 2 {caseLabel3} @TORENO1_13391 {caseNum4} 3 {caseLabel4} @TORENO1_13452 {caseNum5} 4 {caseLabel5} @TORENO1_13513 {caseNum6} -1 {caseLabel6} @TORENO1_13634 {caseNum7} -1 {caseLabel7} @TORENO1_13634

:TORENO1_13269
if 
  227@ == 0
goto_if_false @TORENO1_13301
224@ = 9
229@ = 1

:TORENO1_13301
print_now $7443(224@,17s) {time} 10000 {flag} 1
42@ = 5000
goto @TORENO1_13634

:TORENO1_13330
if 
  227@ == 0
goto_if_false @TORENO1_13362
224@ = 15
229@ = 1

:TORENO1_13362
42@ = 4000
print_now $7443(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13634

:TORENO1_13391
if 
  227@ == 0
goto_if_false @TORENO1_13423
224@ = 10
229@ = 1

:TORENO1_13423
42@ = 3000
print_now $7443(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13634

:TORENO1_13452
if 
  227@ == 0
goto_if_false @TORENO1_13484
224@ = 14
229@ = 1

:TORENO1_13484
42@ = 2000
print_now $7443(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13634

:TORENO1_13513
if 
  227@ == 0
goto_if_false @TORENO1_13545
224@ = 11
229@ = 1

:TORENO1_13545
42@ = 1000
print_now $7443(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13634

:TORENO1_13574
if 
  227@ == 0
goto_if_false @TORENO1_13606
224@ = 13
229@ = 1

:TORENO1_13606
42@ = 0
print_now $7443(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13634

:TORENO1_13634
goto @TORENO1_12816

:TORENO1_13641
delete_menu 206@
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13749
task_look_at_char $scplayer {target} 81@ {time} 4000
clear_char_tasks 81@
87@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -688.0 {y} 944.0 {z} 14.0 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} -688.0 {y} 938.0 {z} 14.0 {speed} MoveState.Walk {time} 3000
close_sequence_task 87@
perform_sequence_task 81@ {sequence} 87@
clear_sequence_task 87@

:TORENO1_13749
set_fixed_camera_position -685.08 {y} 949.38 {z} 12.36 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -688.21 {y} 938.04 {z} 14.72 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  5 > 205@
goto_if_false @TORENO1_14170
84@ = 0
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13856
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000

:TORENO1_13856
224@ = 12

:TORENO1_13863
if 
  84@ == 0
goto_if_false @TORENO1_14170
if 
  224@ <> 0
goto_if_false @TORENO1_14159
if 
  227@ == 0
goto_if_false @TORENO1_13945
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_13938
clear_mission_audio 226@

:TORENO1_13938
227@ = 1

:TORENO1_13945
if 
  227@ == 1
goto_if_false @TORENO1_13982
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_13982
if 
  227@ == 2
goto_if_false @TORENO1_14042
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_14042
play_mission_audio 225@
print_now $7443(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_14042
if 
  227@ == 3
goto_if_false @TORENO1_14159
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_14159
clear_this_print $7443(224@,17s)
if 
  225@ == 1
goto_if_false @TORENO1_14124
225@ = 2
226@ = 1
goto @TORENO1_14138

:TORENO1_14124
225@ = 1
226@ = 2

:TORENO1_14138
224@ = 0
227@ = 0
84@ = 1

:TORENO1_14159
wait 0
goto @TORENO1_13863

:TORENO1_14170
84@ = 0

:TORENO1_14177
if 
  84@ == 0
goto_if_false @TORENO1_14272
if 
  not is_char_dead 81@
goto_if_false @TORENO1_14254
41@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @TORENO1_14247
84@ = 1

:TORENO1_14247
goto @TORENO1_14261

:TORENO1_14254
84@ = 1

:TORENO1_14261
wait 0
goto @TORENO1_14177

:TORENO1_14272
clear_char_tasks $scplayer
clear_look_at $scplayer
delete_char 81@
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:TORENO1_14302
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:TORENO1_14438
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TORENO1_14456
print_with_number_big 'M_PASS' {num} 42@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 42@
clear_wanted_level $player1
play_mission_passed_tune 1
set_int_stat StatId.PassedDesert1 {value} 1
register_mission_passed 'DESERT1'
player_made_progress 1
remove_blip $desert_contact_blip
$flag_desert_mission_counter += 1
return 

:TORENO1_14528
$timer_mobile_start = get_game_timer 
use_text_commands False
mark_car_as_no_longer_needed 80@
delete_menu 206@
remove_char_elegantly 81@
mark_char_as_no_longer_needed 81@
remove_blip 82@
delete_checkpoint 199@
mark_model_as_no_longer_needed 444
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 348
remove_animation "ON_LOOKERS"
remove_animation "GANGS"
set_car_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 76---------------
// Originally: Highjack

:TORENO2
script_name 'TORENO2'
gosub @TORENO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO2_38
gosub @TORENO2_10699

:TORENO2_38
gosub @TORENO2_10789
terminate_this_script 

:TORENO2_47
$onmission = 1
register_mission_given 
load_mission_text 'TORENO2'
clear_prints 
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
75@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
111@ = 0.0
112@ = 0.0
113@ = 0.0
114@ = 0.0
115@ = 0.0
116@ = 0.0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0.0
53@ = 0.0
54@ = 0
117@ = 0.0
118@ = 0.0
119@ = 0.0
120@ = 0.0
121@ = 0.0
122@ = 0.0
123@ = 0.0
55@ = 0
56@ = 0
124@ = 0.0
73@ = 0
74@ = 0
75@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
57@ = 0
62@ = 0.0
63@ = 0.0
64@ = 0.0
65@ = 0.0
66@ = 0.0
67@ = 0.0
68@ = 0.0
69@ = 0.0
70@ = 0.0
71@ = 0.0
72@ = 0.0
clear_area -685.1 {y} 922.0 {z} 10.9 {radius} 180.0 {clearParticles} True
clear_area -692.2 {y} 948.0 {z} 11.2 {radius} 100.0 {clearParticles} True
force_weather_now WeatherType.ExtraSunnyVegas
make_player_gang_disappear 
load_cutscene 'DESERT2'

:TORENO2_646
if 
  not has_cutscene_loaded 
goto_if_false @TORENO2_670
wait 0
goto @TORENO2_646

:TORENO2_670
start_cutscene 
do_fade 1000 {direction} Fade.In

:TORENO2_679
if 
  not has_cutscene_finished 
goto_if_false @TORENO2_703
wait 0
goto @TORENO2_679

:TORENO2_703
do_fade 0 {direction} Fade.Out

:TORENO2_709
if 
  get_fading_status 
goto_if_false @TORENO2_733
wait 0
goto @TORENO2_709

:TORENO2_733
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
release_weather 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 514
request_model 461
request_model 584
request_model 567
request_animation "BIKELEAP"
load_special_character 1 {modelName} 'CESAR'
load_path_nodes_in_area -1695.1 {leftBottomY} 587.6 {rightTopX} -1771.3 {rightTopY} -1310.0
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
load_all_models_now 
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -701.09 {y} 917.26 {z} 12.08 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -694.0 {y} 938.7 {z} 16.69 {switchStyle} SwitchType.JumpCut
suppress_car_model 403
suppress_car_model 409
suppress_car_model 413
suppress_car_model 414
suppress_car_model 418
suppress_car_model 423
suppress_car_model 428
suppress_car_model 431
suppress_car_model 437
suppress_car_model 440
suppress_car_model 455
suppress_car_model 456
suppress_car_model 458
suppress_car_model 482
suppress_car_model 483
suppress_car_model 489
suppress_car_model 498
suppress_car_model 499
suppress_car_model 508
suppress_car_model 524
suppress_car_model 525
suppress_car_model 527
suppress_car_model 552
suppress_car_model 582
suppress_car_model 588
suppress_car_model 461
suppress_car_model 462
suppress_car_model 463
suppress_car_model 468
suppress_car_model 509
suppress_car_model 510
suppress_car_model 521
suppress_car_model 522
suppress_car_model 581
suppress_car_model 586
clear_area -693.6 {y} 924.5 {z} 11.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -693.6 {y} 924.5 {z} 11.3
set_char_heading $scplayer {heading} 71.2
clear_area -685.1 {y} 922.0 {z} 10.9 {radius} 180.0 {clearParticles} True
clear_area -692.2 {y} 948.0 {z} 11.2 {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 461 {text} "PREACHER"
36@ = create_car 461 {x} -712.5 {y} 943.5 {z} 10.8
set_car_heading 36@ {heading} 32.7
clear_area -709.0 {y} 952.0 {z} 11.2 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
39@ = create_car 567 {x} -709.0 {y} 952.0 {z} 11.2
set_car_heading 39@ {heading} 240.7
change_car_colour 39@ {color1} 3 {color2} 3
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -703.7 {y} 932.4 {z} 11.4
set_char_get_out_upside_down_car $cesar {state} False
set_char_heading $cesar {heading} 214.6
set_char_never_targetted $cesar {state} True
set_char_only_damaged_by_player $cesar {state} True
set_char_cant_be_dragged_out $cesar {state} True
126@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
set_char_decision_maker $cesar {handleOrTemplate} 126@
set_next_desired_move_state MoveState.Walk
125@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} 10000 {radius} 3.0 {heading} 0.0
task_pause -1 {time} 5300
task_go_straight_to_coord -1 {x} -710.0 {y} 938.4 {z} 11.4 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task $cesar {sequence} 125@
clear_sequence_task 125@
set_next_desired_move_state MoveState.Walk
125@ = open_sequence_task 
task_goto_char_offset -1 {target} $cesar {time} 10000 {radius} 5.0 {heading} 0.0
task_pause -1 {time} 5000
task_go_straight_to_coord -1 {x} -708.0 {y} 937.9 {z} 11.4 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
shut_all_chars_up True
43@ = 1
skip_cutscene_start_internal @TORENO2_1802
load_mission_audio MissionAudioSlot.Slot3 {audioId} 34000

:TORENO2_1578
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TORENO2_1604
wait 0
goto @TORENO2_1578

:TORENO2_1604
TIMERB = 0
do_fade 500 {direction} Fade.In

:TORENO2_1618
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TORENO2_1644
goto @TORENO2_10717

:TORENO2_1644
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1676
goto @TORENO2_10699

:TORENO2_1676
if 
  41@ == 0
goto_if_false @TORENO2_2184
if 
  42@ == 0
goto_if_false @TORENO2_1759
if 
  TIMERB > 1000
goto_if_false @TORENO2_1759
73@ = 1
74@ = 0
gosub @TORENO2_15179
42@ = 1

:TORENO2_1759
if 
  42@ == 1
goto_if_false @TORENO2_2184
if 
  73@ == 0
goto_if_false @TORENO2_2184
43@ = 0

:TORENO2_1802
skip_cutscene_end 
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1836
goto @TORENO2_10699

:TORENO2_1836
if 
  43@ == 1
goto_if_false @TORENO2_1934
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
do_fade 500 {direction} Fade.Out

:TORENO2_1878
if 
  get_fading_status 
goto_if_false @TORENO2_1902
wait 0
goto @TORENO2_1878

:TORENO2_1902
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1934
goto @TORENO2_10699

:TORENO2_1934
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -710.0 {y} 938.4 {z} 11.4
set_char_heading $scplayer {heading} 47.9
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -708.0 {y} 937.9 {z} 11.4
set_char_heading $cesar {heading} 47.9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
46@ = 1
set_player_group_recruitment $player1 {state} False
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
print_now 'TOR1_01' {time} 7000 {flag} 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  43@ == 1
goto_if_false @TORENO2_2170
do_fade 500 {direction} Fade.In

:TORENO2_2114
if 
  get_fading_status 
goto_if_false @TORENO2_2138
wait 0
goto @TORENO2_2114

:TORENO2_2138
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_2170
goto @TORENO2_10699

:TORENO2_2170
42@ = 0
41@ = 1

:TORENO2_2184
if 
  41@ == 1
goto_if_false @TORENO2_2488
if 
  42@ == 0
goto_if_false @TORENO2_2474
if 
  46@ == 1
goto_if_false @TORENO2_2474
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_2474
34@ = create_car 514 {x} -1687.8 {y} 537.7 {z} 36.8
set_car_heading 34@ {heading} 137.0
37@ = create_car 584 {x} -1679.5 {y} 545.9 {z} 36.9
set_car_heading 37@ {heading} 137.0
attach_trailer_to_cab 37@ {cab} 34@
set_can_burst_car_tyres 34@ {state} False
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
35@ = create_random_char_as_driver 34@
set_car_only_damaged_by_player 34@ {state} True
set_char_can_be_shot_in_vehicle 35@ {state} False
set_car_cruise_speed 34@ {maxSpeed} 0.0
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_stay_in_slow_lane 34@ {state} True
mark_car_as_no_longer_needed 39@
mark_model_as_no_longer_needed 567
clear_prints 
shut_char_up_for_scripted_speech $cesar {state} True
73@ = 2
74@ = 0
gosub @TORENO2_15179
remove_blip 40@
if 
  not is_car_dead 34@
goto_if_false @TORENO2_2460
40@ = add_blip_for_car 34@

:TORENO2_2460
75@ = 0
41@ = 2

:TORENO2_2474
gosub @TORENO2_11834
gosub @TORENO2_11514

:TORENO2_2488
if 
  41@ == 2
goto_if_false @TORENO2_5719
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO2_2600
if 
  is_char_in_any_car $cesar
goto_if_false @TORENO2_2600
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TORENO2_2600
load_scene -1641.0 {y} 586.5 {z} 38.5
set_char_coordinates $scplayer {x} -1641.0 {y} 586.5 {z} 38.5
set_car_heading 36@ {heading} 136.9

:TORENO2_2600
if 
  75@ == 0
goto_if_false @TORENO2_2659
if 
  73@ == 0
goto_if_false @TORENO2_2659
print_now 'TOR1_04' {time} 7000 {flag} 1
75@ = 1

:TORENO2_2659
if 
  75@ == 1
goto_if_false @TORENO2_3142
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_3142
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3142
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1042.5 {leftBottomY} 1016.4 {leftBottomZ} 15.3 {rightTopX} -810.5 {rightTopY} 1300.7 {rightTopZ} 50.0 {angle} 250.0 {drawSphere} False
goto_if_false @TORENO2_2839
if 
  105@ == 0
goto_if_false @TORENO2_2832
if 
  73@ == 0
goto_if_false @TORENO2_2832
73@ = 3
74@ = 0
gosub @TORENO2_15179
105@ = 1

:TORENO2_2832
goto @TORENO2_2846

:TORENO2_2839
105@ = 0

:TORENO2_2846
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -881.0 {leftBottomY} 1029.0 {leftBottomZ} 50.9 {rightTopX} -970.2 {rightTopY} 955.7 {rightTopZ} 33.0 {angle} -20.0 {drawSphere} False
goto_if_false @TORENO2_2987
if 
  106@ == 0
goto_if_false @TORENO2_2980
if 
  73@ == 0
goto_if_false @TORENO2_2980
73@ = 4
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179
106@ = 1

:TORENO2_2980
goto @TORENO2_2994

:TORENO2_2987
106@ = 0

:TORENO2_2994
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -774.9 {leftBottomY} 1445.6 {leftBottomZ} 10.0 {rightTopX} -1187.0 {rightTopY} 1275.6 {rightTopZ} 50.0 {angle} -250.0 {drawSphere} False
goto_if_false @TORENO2_3135
if 
  107@ == 0
goto_if_false @TORENO2_3128
if 
  73@ == 0
goto_if_false @TORENO2_3128
73@ = 5
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179
107@ = 1

:TORENO2_3128
goto @TORENO2_3142

:TORENO2_3135
107@ = 0

:TORENO2_3142
if 
  2 > 75@
goto_if_false @TORENO2_3266
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1143.8 {leftBottomY} 1041.0 {leftBottomZ} 50.9 {rightTopX} -1393.7 {rightTopY} 797.3 {rightTopZ} 33.0 {angle} -60.0 {drawSphere} False
goto_if_false @TORENO2_3266
if 
  73@ == 0
goto_if_false @TORENO2_3266
73@ = 6
74@ = 1
108@ = 6
gosub @TORENO2_15179
75@ = 3

:TORENO2_3266
if 
  75@ == 3
goto_if_false @TORENO2_3413
if 
  73@ == 0
goto_if_false @TORENO2_3413
if 
  locate_char_in_car_car_2d $scplayer {handle} 34@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @TORENO2_3413
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_3413
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3413
shut_char_up_for_scripted_speech $scplayer {state} True
73@ = 6
74@ = 0
108@ = 1
gosub @TORENO2_15179
75@ = 4

:TORENO2_3413
if 
  75@ == 4
goto_if_false @TORENO2_3463
if 
  73@ == 0
goto_if_false @TORENO2_3463
shut_char_up_for_scripted_speech $scplayer {state} False
75@ = 5

:TORENO2_3463
if 
  42@ == 0
goto_if_false @TORENO2_3618
if 
  locate_char_in_car_car_2d $scplayer {handle} 34@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @TORENO2_3608
set_car_forward_speed 34@ {forwardSpeed} 35.0
if 
  not is_char_dead 35@
goto_if_false @TORENO2_3594
125@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.6 {y} -1187.7 {z} 30.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@

:TORENO2_3594
42@ = 1
goto @TORENO2_3618

:TORENO2_3608
set_car_heading 34@ {heading} 137.0

:TORENO2_3618
if 
  42@ == 1
goto_if_false @TORENO2_3724
if 
  locate_char_in_car_car_3d $scplayer {vehicle} 34@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TORENO2_3724
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3724
print_now 'TOR1_10' {time} 11000 {flag} 1
set_car_cruise_speed 34@ {maxSpeed} 37.0
42@ = 2

:TORENO2_3724
if 
  42@ == 2
goto_if_false @TORENO2_5684
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_5684
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_5684
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_4180
if 
  47@ == 0
goto_if_false @TORENO2_3968
task_play_anim $cesar {animationName} "BK_RDY_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 2
print_now 'HOLD_1' {time} 7000 {flag} 1
47@ = 1

:TORENO2_3968
if 
  47@ == 1
goto_if_false @TORENO2_4173
if 
  61@ == 0
goto_if_false @TORENO2_4023
60@ = get_game_timer 
61@ = 1
goto @TORENO2_4173

:TORENO2_4023
59@ = get_game_timer 
set_lvar_int_to_lvar_int 58@ = 59@
sub_int_lvar_from_int_lvar 58@ -= 60@
if 
  58@ > 3500
goto_if_false @TORENO2_4129
set_player_control $player1 {state} False
attach_car_to_car 36@ {handle} 34@ {xOffset} -2.692 {yOffset} 2.484 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
42@ = 0
54@ = 0
41@ = 3

:TORENO2_4129
if 
  54@ == 0
goto_if_false @TORENO2_4173
if 
  58@ > 1000
goto_if_false @TORENO2_4173
54@ = 1

:TORENO2_4173
goto @TORENO2_4205

:TORENO2_4180
clear_this_print 'HOLD_1'
61@ = 0
47@ = 0

:TORENO2_4205
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 12.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_4655
if 
  48@ == 0
goto_if_false @TORENO2_4648
if 
  51@ == 0
goto_if_false @TORENO2_4518
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_4468
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_4461
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4461
goto @TORENO2_4518

:TORENO2_4468
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4518
if 
  51@ == 2
goto_if_false @TORENO2_4585
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_4585
if 
  73@ == 0
goto_if_false @TORENO2_4641
73@ = 10
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_4641
48@ = 1

:TORENO2_4648
goto @TORENO2_4662

:TORENO2_4655
48@ = 0

:TORENO2_4662
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -6.0 {yOffset} 8.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -6.0 {yOffset} -8.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_5112
if 
  49@ == 0
goto_if_false @TORENO2_5105
if 
  51@ == 0
goto_if_false @TORENO2_4975
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_4925
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_4918
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4918
goto @TORENO2_4975

:TORENO2_4925
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4975
if 
  51@ == 2
goto_if_false @TORENO2_5042
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_5042
if 
  73@ == 0
goto_if_false @TORENO2_5098
73@ = 7
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_5098
49@ = 1

:TORENO2_5105
goto @TORENO2_5119

:TORENO2_5112
49@ = 0

:TORENO2_5119
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} -8.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_5569
if 
  50@ == 0
goto_if_false @TORENO2_5562
if 
  51@ == 0
goto_if_false @TORENO2_5432
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_5382
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_5375
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_5375
goto @TORENO2_5432

:TORENO2_5382
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_5432
if 
  51@ == 2
goto_if_false @TORENO2_5499
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_5499
if 
  73@ == 0
goto_if_false @TORENO2_5555
73@ = 9
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_5555
50@ = 1

:TORENO2_5562
goto @TORENO2_5576

:TORENO2_5569
50@ = 0

:TORENO2_5576
if and
  47@ == 0
  48@ == 0
  49@ == 0
  50@ == 0
goto_if_false @TORENO2_5684
if 
  51@ > 0
goto_if_false @TORENO2_5684
task_play_anim $cesar {animationName} "BK_BLNCE_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 0

:TORENO2_5684
gosub @TORENO2_12037
gosub @TORENO2_11514
gosub @TORENO2_11834
gosub @TORENO2_12106
gosub @TORENO2_12230

:TORENO2_5719
if 
  41@ == 3
goto_if_false @TORENO2_8121
if 
  42@ == 0
goto_if_false @TORENO2_5805
remove_char_from_group $cesar
task_play_anim $cesar {animationName} "BK_JMP" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@ = 1

:TORENO2_5805
if 
  42@ == 1
goto_if_false @TORENO2_5891
if 
  is_char_playing_anim $cesar {animationName} "BK_JMP"
goto_if_false @TORENO2_5891
52@ = get_char_anim_current_time $cesar {animationName} "BK_JMP"
if 
  52@ == 1.0
goto_if_false @TORENO2_5891
42@ = 2

:TORENO2_5891
if 
  42@ == 2
goto_if_false @TORENO2_6060
if 
  not is_car_dead 36@
goto_if_false @TORENO2_5933
remove_char_from_car_maintain_position $cesar {vehicle} 36@

:TORENO2_5933
attach_char_to_car $cesar {vehicle} 34@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim $cesar {animationName} "TRUCK_GETIN" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_car_dead 36@
goto_if_false @TORENO2_6046
detach_car 36@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:TORENO2_6046
set_player_control $player1 {state} True
42@ = 3

:TORENO2_6060
if 
  42@ > 3
goto_if_false @TORENO2_6094
53@ = get_car_heading 34@
set_char_heading $cesar {heading} 53@

:TORENO2_6094
if 
  42@ == 3
goto_if_false @TORENO2_6197
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6197
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ > 0.41
goto_if_false @TORENO2_6197
56@ = 1
42@ = 4

:TORENO2_6197
if 
  42@ == 4
goto_if_false @TORENO2_6360
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6360
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ > 0.66
goto_if_false @TORENO2_6360
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6360
task_play_anim 35@ {animationName} "TRUCK_DRIVER" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
54@ = 1
42@ = 5

:TORENO2_6360
if 
  42@ == 5
goto_if_false @TORENO2_6595
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6595
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ == 1.0
goto_if_false @TORENO2_6595
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6542
warp_char_from_car_to_coord 35@ {x} 0.0 {y} 0.0 {z} 0.0
warp_char_into_car_as_passenger 35@ {handle} 34@ {seat} -1
task_play_anim 35@ {animationName} "STRUGGLE_DRIVER" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:TORENO2_6542
task_play_anim $cesar {animationName} "STRUGGLE_CESAR" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@ = 6

:TORENO2_6595
if 
  42@ == 6
goto_if_false @TORENO2_6694
if 
  54@ == 16
goto_if_false @TORENO2_6694
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6694
clear_char_tasks $cesar
clear_char_tasks 35@
125@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 34@
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@
42@ = 8

:TORENO2_6694
if 
  42@ == 8
goto_if_false @TORENO2_6886
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6886
if 
  not is_char_in_any_car 35@
goto_if_false @TORENO2_6886
set_car_temp_action 34@ {actionId} TempAction.None {time} -1
set_car_only_damaged_by_player 34@ {state} False
task_dead 35@
detach_char_from_car $cesar
warp_char_into_car_as_passenger $cesar {handle} 34@ {seat} -1
45@ = 1
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
mark_model_as_no_longer_needed 461
remove_animation "BIKELEAP"
release_path_nodes 
clear_prints 
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
shut_char_up_for_scripted_speech $cesar {state} False
print_now 'TOR1_11' {time} 4000 {flag} 1
42@ = 0
73@ = 0
75@ = 0
41@ = 4

:TORENO2_6886
if 
  54@ == 1
goto_if_false @TORENO2_6945
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 200
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 2

:TORENO2_6945
if 
  54@ == 2
goto_if_false @TORENO2_7023
if 
  TIMERA > 200
goto_if_false @TORENO2_7023
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 300
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 3

:TORENO2_7023
if 
  54@ == 3
goto_if_false @TORENO2_7101
if 
  TIMERA > 300
goto_if_false @TORENO2_7101
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 200
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 4

:TORENO2_7101
if 
  54@ == 4
goto_if_false @TORENO2_7179
if 
  TIMERA > 200
goto_if_false @TORENO2_7179
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 5

:TORENO2_7179
if 
  54@ == 5
goto_if_false @TORENO2_7257
if 
  TIMERA > 500
goto_if_false @TORENO2_7257
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 6

:TORENO2_7257
if 
  54@ == 6
goto_if_false @TORENO2_7335
if 
  TIMERA > 500
goto_if_false @TORENO2_7335
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 7

:TORENO2_7335
if 
  54@ == 7
goto_if_false @TORENO2_7413
if 
  TIMERA > 1000
goto_if_false @TORENO2_7413
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 8

:TORENO2_7413
if 
  54@ == 8
goto_if_false @TORENO2_7491
if 
  TIMERA > 500
goto_if_false @TORENO2_7491
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 9

:TORENO2_7491
if 
  54@ == 9
goto_if_false @TORENO2_7569
if 
  TIMERA > 1000
goto_if_false @TORENO2_7569
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 10

:TORENO2_7569
if 
  54@ == 10
goto_if_false @TORENO2_7647
if 
  TIMERA > 500
goto_if_false @TORENO2_7647
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 11

:TORENO2_7647
if 
  54@ == 11
goto_if_false @TORENO2_7725
if 
  TIMERA > 1000
goto_if_false @TORENO2_7725
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 12

:TORENO2_7725
if 
  54@ == 12
goto_if_false @TORENO2_7803
if 
  TIMERA > 500
goto_if_false @TORENO2_7803
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 13

:TORENO2_7803
if 
  54@ == 13
goto_if_false @TORENO2_7881
if 
  TIMERA > 1000
goto_if_false @TORENO2_7881
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 14

:TORENO2_7881
if 
  54@ == 14
goto_if_false @TORENO2_7959
if 
  TIMERA > 500
goto_if_false @TORENO2_7959
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 15

:TORENO2_7959
if 
  54@ == 15
goto_if_false @TORENO2_8037
if 
  TIMERA > 1000
goto_if_false @TORENO2_8037
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.HandbrakeStraight {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 16

:TORENO2_8037
if 
  56@ == 1
goto_if_false @TORENO2_8107
if 
  not is_car_door_fully_open 34@ {door} CarDoor.LeftFrontDoor
goto_if_false @TORENO2_8100
124@ += 0.1
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 124@
goto @TORENO2_8107

:TORENO2_8100
56@ = 2

:TORENO2_8107
gosub @TORENO2_12230
gosub @TORENO2_12037

:TORENO2_8121
if 
  41@ == 4
goto_if_false @TORENO2_8619
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO2_8200
if 
  is_char_in_any_car $cesar
goto_if_false @TORENO2_8200
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TORENO2_8200
42@ = 0
41@ = 5

:TORENO2_8200
if 
  42@ == 0
goto_if_false @TORENO2_8379
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_8379
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8311
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7
print 'TOR1_06' {time} 7000 {flag} 1
55@ = 1
goto @TORENO2_8354

:TORENO2_8311
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
print 'TOR1_21' {time} 7000 {flag} 1
55@ = 0

:TORENO2_8354
set_radio_channel RadioChannel.PlaybackFM
45@ = 1
42@ = 1
TIMERB = 0

:TORENO2_8379
if 
  42@ == 1
goto_if_false @TORENO2_8619
if 
  75@ == 0
goto_if_false @TORENO2_8498
if 
  TIMERB > 7000
goto_if_false @TORENO2_8498
if 
  55@ == 1
goto_if_false @TORENO2_8498
if 
  45@ == 1
goto_if_false @TORENO2_8498
73@ = 11
74@ = 0
gosub @TORENO2_15179
75@ = 1

:TORENO2_8498
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8605
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_8605
if 
  locate_car_3d 34@ {x} -2016.5 {y} 157.7 {z} 26.7 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TORENO2_8605
set_player_control $player1 {state} False
42@ = 0
41@ = 5

:TORENO2_8605
gosub @TORENO2_11124
gosub @TORENO2_11305

:TORENO2_8619
if 
  41@ == 5
goto_if_false @TORENO2_9739
if 
  42@ == 0
goto_if_false @TORENO2_8709
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True
clear_prints 
do_fade 500 {direction} Fade.Out

:TORENO2_8678
if 
  get_fading_status 
goto_if_false @TORENO2_8702
wait 0
goto @TORENO2_8678

:TORENO2_8702
42@ = 1

:TORENO2_8709
if 
  42@ == 1
goto_if_false @TORENO2_9381
request_animation "POLICE"

:TORENO2_8737
if 
  not has_animation_loaded "POLICE"
goto_if_false @TORENO2_8769
wait 0
goto @TORENO2_8737

:TORENO2_8769
open_garage 'HBGDSFS'

:TORENO2_8780
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @TORENO2_8813
wait 0
goto @TORENO2_8780

:TORENO2_8813
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_8845
goto @TORENO2_10699

:TORENO2_8845
request_collision -1998.7 {y} 178.4
load_scene_in_direction -1998.7 {y} 178.4 {z} 26.3 {heading} 270.0
clear_area -1998.7 {y} 178.4 {z} 26.3 {radius} 200.0 {clearParticles} False
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 37@
goto_if_false @TORENO2_8990
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8990
detach_trailer_from_cab 37@ {cab} 34@
set_car_coordinates 37@ {x} -1998.7 {y} 178.4 {z} 26.3
set_car_heading 37@ {heading} 88.7

:TORENO2_8990
set_car_coordinates 34@ {x} -2006.7 {y} 178.4 {z} 26.3
set_car_heading 34@ {heading} 88.7
wait 0
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9056
goto @TORENO2_10699

:TORENO2_9056
if 
  not is_car_dead 37@
goto_if_false @TORENO2_9080
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_9080
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2035.3 {y} 180.5 {z} 27.8
set_char_heading $scplayer {heading} 277.5
125@ = open_sequence_task 
task_play_anim -1 {animationName} "COPTRAF_COME" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
clear_char_tasks_immediately $cesar
warp_char_into_car $cesar {vehicle} 34@
task_car_drive_to_coord $cesar {vehicle} 34@ {x} -2053.3 {y} 178.8 {z} 27.8 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
shut_all_chars_up True
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2038.0 {y} 182.8 {z} 29.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2001.0 {y} 166.2 {z} 31.2 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:TORENO2_9318
if 
  get_fading_status 
goto_if_false @TORENO2_9342
wait 0
goto @TORENO2_9318

:TORENO2_9342
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9374
goto @TORENO2_10699

:TORENO2_9374
42@ = 2

:TORENO2_9381
if 
  42@ == 2
goto_if_false @TORENO2_9547
$task_status = get_script_task_status $scplayer {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TORENO2_9547
125@ = open_sequence_task 
task_play_anim -1 {animationName} "COPTRAF_COME" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COPTRAF_LEFT" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
TIMERA = 0
42@ = 3

:TORENO2_9547
if 
  42@ == 3
goto_if_false @TORENO2_9739
if 
  TIMERA > 5000
goto_if_false @TORENO2_9739
do_fade 500 {direction} Fade.Out

:TORENO2_9591
if 
  get_fading_status 
goto_if_false @TORENO2_9615
wait 0
goto @TORENO2_9591

:TORENO2_9615
unload_special_character 1
delete_car 34@
delete_car 37@
close_garage 'HBGDSFS'

:TORENO2_9640
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @TORENO2_9673
wait 0
goto @TORENO2_9640

:TORENO2_9673
shut_all_chars_up False
do_fade 500 {direction} Fade.In
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:TORENO2_9708
if 
  get_fading_status 
goto_if_false @TORENO2_9732
wait 0
goto @TORENO2_9708

:TORENO2_9732
goto @TORENO2_10717

:TORENO2_9739
if 
  3 > 41@
goto_if_false @TORENO2_9825
if 
  not is_char_dead 35@
goto_if_false @TORENO2_9825
if 
  locate_car_2d 34@ {x} -1914.6 {y} -1187.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TORENO2_9825
42@ = 0
41@ = 6

:TORENO2_9825
if 
  41@ == 6
goto_if_false @TORENO2_10685
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TORENO2_10563
if 
  42@ == 0
goto_if_false @TORENO2_10563
clear_prints 
do_fade 500 {direction} Fade.Out

:TORENO2_9895
if 
  get_fading_status 
goto_if_false @TORENO2_9919
wait 0
goto @TORENO2_9895

:TORENO2_9919
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9951
goto @TORENO2_10699

:TORENO2_9951
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -1932.8 {y} -991.8 {z} 31.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1959.7 {y} -1019.9 {z} 43.1 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1915.0 {leftBottomY} -977.8 {rightTopX} -2013.4 {rightTopY} -1074.8 {drawSphere} False
goto_if_false @TORENO2_10097
set_char_coordinates $scplayer {x} -1984.5 {y} -1072.9 {z} 31.5

:TORENO2_10097
if 
  is_char_in_area_2d $cesar {leftBottomX} -1915.0 {leftBottomY} -977.8 {rightTopX} -2013.4 {rightTopY} -1074.8 {drawSphere} False
goto_if_false @TORENO2_10155
set_char_coordinates $cesar {x} -1984.5 {y} -1074.9 {z} 31.5

:TORENO2_10155
request_collision -1984.3 {y} -1045.7
load_scene -1984.3 {y} -1045.7 {z} 31.6
clear_area -1984.3 {y} -1045.7 {z} 31.6 {radius} 25.0 {clearParticles} True
set_car_coordinates 34@ {x} -1984.3 {y} -1045.7 {z} 31.6
set_car_heading 34@ {heading} 0.0
if 
  not is_car_dead 37@
goto_if_false @TORENO2_10292
set_car_coordinates 37@ {x} -1984.3 {y} -1055.7 {z} 31.6
set_car_heading 37@ {heading} 0.0
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_10292
if 
  not is_char_dead 35@
goto_if_false @TORENO2_10463
125@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1984.8 {y} -1022.1 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1954.4 {y} -1007.4 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1943.6 {y} -1040.1 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1946.6 {y} -1018.0 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@

:TORENO2_10463
print_now 'TOR1_12' {time} 11000 {flag} 1
do_fade 1000 {direction} Fade.In

:TORENO2_10486
if 
  get_fading_status 
goto_if_false @TORENO2_10517
wait 0
gosub @TORENO2_12037
goto @TORENO2_10486

:TORENO2_10517
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_10549
goto @TORENO2_10699

:TORENO2_10549
skip_cutscene_start_internal @TORENO2_10626
42@ = 1

:TORENO2_10563
if 
  42@ == 1
goto_if_false @TORENO2_10685
gosub @TORENO2_12037
if 
  locate_car_2d 34@ {x} -1943.6 {y} -1040.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TORENO2_10685

:TORENO2_10626
skip_cutscene_end 
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_10660
goto @TORENO2_10699

:TORENO2_10660
clear_prints 
print_now 'TOR1_12' {time} 4000 {flag} 1
goto @TORENO2_10699

:TORENO2_10685
gosub @TORENO2_12935
goto @TORENO2_1618

:TORENO2_10699
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TORENO2_10717
$flag_desert_mission_counter += 1
print_with_number_big 'M_PASS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
set_int_stat StatId.PassedDesert12 {value} 1
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'DESERT2'
remove_blip $desert_contact_blip
player_made_progress 1
return 

:TORENO2_10789
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TORENO2_10807
restore_camera_jumpcut 

:TORENO2_10807
if 
  not is_char_dead $scplayer
goto_if_false @TORENO2_10830
shut_char_up_for_scripted_speech $scplayer {state} False

:TORENO2_10830
shut_all_chars_up False
release_path_nodes 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 567
remove_char_elegantly $cesar
unload_special_character 1
remove_animation "BIKELEAP"
remove_animation "POLICE"
remove_blip 40@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TORENO2_10922
if 
  3 > 41@
goto_if_false @TORENO2_10981
if 
  is_car_dead 36@
goto_if_false @TORENO2_10981
clear_prints 
print_now 'TOR1_02' {time} 4000 {flag} 1
44@ = 1

:TORENO2_10981
if 
  41@ > 1
goto_if_false @TORENO2_11081
if 
  is_car_dead 34@
goto_if_false @TORENO2_11040
clear_prints 
print_now 'TOR1_14' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11040
if 
  is_car_dead 37@
goto_if_false @TORENO2_11081
clear_prints 
print_now 'TOR1_14' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11081
if 
  is_char_dead $cesar
goto_if_false @TORENO2_11122
clear_prints 
print_now 'TOR1_03' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11122
return 

:TORENO2_11124
if 
  45@ == 0
goto_if_false @TORENO2_11239
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_11239
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11207
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
goto @TORENO2_11232

:TORENO2_11207
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7

:TORENO2_11232
45@ = 1

:TORENO2_11239
if 
  45@ == 1
goto_if_false @TORENO2_11303
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_11303
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
45@ = 0

:TORENO2_11303
return 

:TORENO2_11305
if 
  45@ == 1
goto_if_false @TORENO2_11512
if 
  not is_car_dead 37@
goto_if_false @TORENO2_11512
set_car_health 37@ {health} 1000
if 
  55@ == 1
goto_if_false @TORENO2_11427
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11427
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
print_now 'TOR1_21' {time} 4000 {flag} 1
55@ = 0

:TORENO2_11427
if 
  55@ == 0
goto_if_false @TORENO2_11512
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11512
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7
print 'TOR1_06' {time} 4000 {flag} 1
55@ = 1

:TORENO2_11512
return 

:TORENO2_11514
if 
  46@ == 1
goto_if_false @TORENO2_11832
if 
  45@ == 0
goto_if_false @TORENO2_11702
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_11702
clear_this_print 76@(74@,8s)
clear_this_print 'TOR1_20'
remove_blip 40@
if 
  not is_car_dead 34@
goto_if_false @TORENO2_11618
40@ = add_blip_for_car 34@

:TORENO2_11618
if 
  TIMERB > 8000
goto_if_false @TORENO2_11695
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_11679
print_now 'TOR1_05' {time} 4000 {flag} 1
goto @TORENO2_11695

:TORENO2_11679
print_now 'TOR1_16' {time} 4000 {flag} 1

:TORENO2_11695
45@ = 1

:TORENO2_11702
if 
  45@ == 1
goto_if_false @TORENO2_11832
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_11832
clear_this_print 76@(74@,8s)
clear_this_print 'TOR1_10'
clear_this_print 'TOR1_16'
remove_blip 40@
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
if 
  TIMERB > 8000
goto_if_false @TORENO2_11825
print_now 'TOR1_20' {time} 4000 {flag} 1

:TORENO2_11825
45@ = 0

:TORENO2_11832
return 

:TORENO2_11834
if 
  46@ == 1
goto_if_false @TORENO2_11898
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_11898
remove_blip 40@
40@ = add_blip_for_char $cesar
set_blip_as_friendly 40@ {state} True
46@ = 0

:TORENO2_11898
if 
  46@ == 0
goto_if_false @TORENO2_12035
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO2_12035
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_11983
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:TORENO2_11983
remove_blip 40@
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_12021
45@ = 1
goto @TORENO2_12028

:TORENO2_12021
45@ = 0

:TORENO2_12028
46@ = 1

:TORENO2_12035
return 

:TORENO2_12037
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12104
if 
  not is_car_dead 37@
goto_if_false @TORENO2_12104
set_car_health 37@ {health} 1000
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_12104
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_12104
return 

:TORENO2_12106
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12228
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TORENO2_12170
set_car_cruise_speed 34@ {maxSpeed} 37.0
goto @TORENO2_12228

:TORENO2_12170
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @TORENO2_12218
set_car_cruise_speed 34@ {maxSpeed} 20.0
goto @TORENO2_12228

:TORENO2_12218
set_car_cruise_speed 34@ {maxSpeed} 15.0

:TORENO2_12228
return 

:TORENO2_12230
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12933
120@, 121@, $z = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 2.0 {zOffset} 0.0
122@, 123@, $z = get_offset_from_car_in_world_coords 34@ {xOffset} 3.0 {yOffset} 11.0 {zOffset} 0.0
38@ = get_random_car_of_type_in_area_no_save 120@ {leftBottomY} 121@ {rightTopX} 122@ {rightTopY} 123@ {modelId} -1
if 
  not is_car_dead 38@
goto_if_false @TORENO2_12933
if 
  not is_int_lvar_equal_to_int_lvar 38@ == 36@
goto_if_false @TORENO2_12933
57@ = get_car_health 38@
if 
  57@ > 500
goto_if_false @TORENO2_12933
69@ = get_car_speed 34@
69@ *= 0.02
120@ = get_car_forward_x 34@
121@ = get_car_forward_y 34@
set_lvar_float_to_lvar_float 122@ = 121@
123@ = -1.0
mult_float_lvar_by_float_lvar 123@ *= 120@
65@, 66@, 67@ = get_car_coordinates 38@
62@, 63@, 64@ = get_car_coordinates 34@
sub_float_lvar_from_float_lvar 65@ -= 62@
sub_float_lvar_from_float_lvar 66@ -= 63@
set_lvar_float_to_lvar_float 70@ = 122@
mult_float_lvar_by_float_lvar 70@ *= 65@
set_lvar_float_to_lvar_float 71@ = 123@
mult_float_lvar_by_float_lvar 71@ *= 66@
set_lvar_float_to_lvar_float 68@ = 70@
add_float_lvar_to_float_lvar 68@ += 71@
if 
  2.5 > 68@
goto_if_false @TORENO2_12923
if 
  68@ > -2.5
goto_if_false @TORENO2_12923
if 
  68@ > 0.0
goto_if_false @TORENO2_12617
68@ = 1.0
goto @TORENO2_12627

:TORENO2_12617
68@ = -1.0

:TORENO2_12627
set_lvar_float_to_lvar_float 70@ = 120@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 122@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 62@ = 70@
add_float_lvar_to_float_lvar 62@ += 72@
set_lvar_float_to_lvar_float 70@ = 121@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 123@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 63@ = 70@
add_float_lvar_to_float_lvar 63@ += 72@
set_lvar_float_to_lvar_float 64@ = 69@
64@ += 0.008
64@ *= 0.5
65@ = -1.0
mult_float_lvar_by_float_lvar 65@ *= 68@
mult_float_lvar_by_float_lvar 65@ *= 122@
mult_float_lvar_by_float_lvar 65@ *= 69@
66@ = -1.0
mult_float_lvar_by_float_lvar 66@ *= 68@
mult_float_lvar_by_float_lvar 66@ *= 123@
mult_float_lvar_by_float_lvar 66@ *= 69@
67@ = 0.0
play_mission_audio MissionAudioSlot.Slot3
set_car_status 38@ {status} EntityStatus.Physics
apply_force_to_car 38@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@
set_car_health 38@ {health} 499

:TORENO2_12923
clear_car_last_damage_entity 38@
mark_car_as_no_longer_needed 38@

:TORENO2_12933
return 

:TORENO2_12935
if 
  73@ == 1
goto_if_false @TORENO2_13007
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13000
gosub @TORENO2_16487
gosub @TORENO2_16594
gosub @TORENO2_16748
goto @TORENO2_13007

:TORENO2_13000
73@ = 0

:TORENO2_13007
if or
  41@ == 1
  41@ == 2
goto_if_false @TORENO2_14378
if or
  14 > 41@
  41@ == 16
goto_if_false @TORENO2_14378
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_13791
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO2_13784
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @TORENO2_13287
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13287
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13280
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13242
gosub @TORENO2_16748
goto @TORENO2_13273

:TORENO2_13242
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13273
goto @TORENO2_13287

:TORENO2_13280
73@ = 0

:TORENO2_13287
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @TORENO2_13462
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13462
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13455
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13417
gosub @TORENO2_16748
goto @TORENO2_13448

:TORENO2_13417
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13448
goto @TORENO2_13462

:TORENO2_13455
73@ = 0

:TORENO2_13462
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @TORENO2_13623
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13623
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13616
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13578
gosub @TORENO2_16748
goto @TORENO2_13609

:TORENO2_13578
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13609
goto @TORENO2_13623

:TORENO2_13616
73@ = 0

:TORENO2_13623
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @TORENO2_13784
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13784
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13777
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13739
gosub @TORENO2_16748
goto @TORENO2_13770

:TORENO2_13739
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13770
goto @TORENO2_13784

:TORENO2_13777
73@ = 0

:TORENO2_13784
goto @TORENO2_13908

:TORENO2_13791
if 
  14 > 73@
goto_if_false @TORENO2_13908
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13835
74@ += 1

:TORENO2_13835
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
clear_prints 
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 14
74@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_13908
if 
  73@ == 14
goto_if_false @TORENO2_14099
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14076
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14046
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14008
gosub @TORENO2_16748
goto @TORENO2_14039

:TORENO2_14008
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14039
goto @TORENO2_14069

:TORENO2_14046
print 'TOR1_13' {time} 4000 {flag} 1
73@ = 15

:TORENO2_14069
goto @TORENO2_14099

:TORENO2_14076
print 'TOR1_13' {time} 4000 {flag} 1
73@ = 15

:TORENO2_14099
if 
  73@ == 15
goto_if_false @TORENO2_14152
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14152
73@ = 16
74@ = 0
clear_prints 

:TORENO2_14152
if 
  73@ == 16
goto_if_false @TORENO2_14378
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14323
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15179
if 
  109@ == 0
goto_if_false @TORENO2_14316
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_14279
print 'TOR1_05' {time} 7000 {flag} 1
goto @TORENO2_14295

:TORENO2_14279
print 'TOR1_20' {time} 4000 {flag} 1

:TORENO2_14295
TIMERB = 0
74@ = 0
73@ = 0

:TORENO2_14316
goto @TORENO2_14378

:TORENO2_14323
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 14
74@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_14378
if 
  41@ == 4
goto_if_false @TORENO2_15177
if 
  42@ == 1
goto_if_false @TORENO2_15177
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14559
if 
  73@ == 11
goto_if_false @TORENO2_14559
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14552
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14514
gosub @TORENO2_16748
goto @TORENO2_14545

:TORENO2_14514
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14545
goto @TORENO2_14559

:TORENO2_14552
73@ = 0

:TORENO2_14559
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14695
if 
  17 > 73@
goto_if_false @TORENO2_14695
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14622
74@ += 1

:TORENO2_14622
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 76@(74@,8s)
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 17
74@ = generate_random_int_in_range 0 {max} 6
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_14695
if 
  73@ == 17
goto_if_false @TORENO2_14908
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14856
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14833
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14795
gosub @TORENO2_16748
goto @TORENO2_14826

:TORENO2_14795
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14826
goto @TORENO2_14856

:TORENO2_14833
print 'TOR1_11' {time} 4000 {flag} 1
73@ = 18

:TORENO2_14856
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14908
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 19
74@ = 0
clear_prints 

:TORENO2_14908
if 
  73@ == 18
goto_if_false @TORENO2_14961
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14961
73@ = 19
74@ = 0
clear_prints 

:TORENO2_14961
if 
  73@ == 19
goto_if_false @TORENO2_15177
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_15103
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15179
if 
  109@ == 0
goto_if_false @TORENO2_15103
if 
  55@ == 1
goto_if_false @TORENO2_15087
print 'TOR1_06' {time} 4000 {flag} 1
goto @TORENO2_15103

:TORENO2_15087
print 'TOR1_21' {time} 4000 {flag} 1

:TORENO2_15103
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_15177
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 17
74@ = generate_random_int_in_range 0 {max} 6
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_15177
return 

:TORENO2_15179
if 
  73@ == 1
goto_if_false @TORENO2_15336
set_lvar_text_label 76@s = 'DES2_AA'
set_lvar_text_label 78@s = 'DES2_AB'
set_lvar_text_label 80@s = 'DES2_AC'
set_lvar_text_label 82@s = 'DES2_AD'
set_lvar_text_label 84@s = 'DES2_AE'
set_lvar_text_label 86@s = 'DES2_AF'
set_lvar_int_to_constant 92@ = 3400
set_lvar_int_to_constant 93@ = 3429
set_lvar_int_to_constant 94@ = 3401
set_lvar_int_to_constant 95@ = 3402
set_lvar_int_to_constant 96@ = 3430
set_lvar_int_to_constant 97@ = 3431
100@ = 6

:TORENO2_15336
if 
  73@ == 2
goto_if_false @TORENO2_15405
set_lvar_text_label 76@s = 'DES2_BA'
set_lvar_text_label 78@s = 'DES2_BB'
set_lvar_int_to_constant 92@ = 3432
set_lvar_int_to_constant 93@ = 3433
100@ = 2

:TORENO2_15405
if 
  73@ == 3
goto_if_false @TORENO2_15452
set_lvar_text_label 76@s = 'DES2_BC'
set_lvar_int_to_constant 92@ = 3403
100@ = 1

:TORENO2_15452
if 
  73@ == 4
goto_if_false @TORENO2_15544
set_lvar_text_label 76@s = 'DES2_CA'
set_lvar_text_label 78@s = 'DES2_CB'
set_lvar_text_label 80@s = 'DES2_CC'
set_lvar_int_to_constant 92@ = 3404
set_lvar_int_to_constant 93@ = 3405
set_lvar_int_to_constant 94@ = 3406
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15544
if 
  73@ == 5
goto_if_false @TORENO2_15636
set_lvar_text_label 76@s = 'DES2_DA'
set_lvar_text_label 78@s = 'DES2_DB'
set_lvar_text_label 80@s = 'DES2_DC'
set_lvar_int_to_constant 92@ = 3407
set_lvar_int_to_constant 93@ = 3408
set_lvar_int_to_constant 94@ = 3409
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15636
if 
  73@ == 6
goto_if_false @TORENO2_15794
set_lvar_text_label 76@s = 'DES2_EA'
set_lvar_text_label 78@s = 'DES2_EB'
set_lvar_text_label 80@s = 'DES2_EC'
set_lvar_text_label 82@s = 'DES2_ED'
set_lvar_text_label 84@s = 'DES2_EE'
set_lvar_text_label 86@s = 'DES2_EF'
set_lvar_int_to_constant 92@ = 3434
set_lvar_int_to_constant 93@ = 3410
set_lvar_int_to_constant 94@ = 3435
set_lvar_int_to_constant 95@ = 3411
set_lvar_int_to_constant 96@ = 3436
set_lvar_int_to_constant 97@ = 3412
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15794
if 
  73@ == 7
goto_if_false @TORENO2_15886
set_lvar_text_label 76@s = 'DES2_FA'
set_lvar_text_label 78@s = 'DES2_FB'
set_lvar_text_label 80@s = 'DES2_FC'
set_lvar_int_to_constant 92@ = 3413
set_lvar_int_to_constant 93@ = 3414
set_lvar_int_to_constant 94@ = 3415
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15886
if 
  73@ == 9
goto_if_false @TORENO2_15978
set_lvar_text_label 76@s = 'DES2_HA'
set_lvar_text_label 78@s = 'DES2_HB'
set_lvar_text_label 80@s = 'DES2_HC'
set_lvar_int_to_constant 92@ = 3419
set_lvar_int_to_constant 93@ = 3420
set_lvar_int_to_constant 94@ = 3421
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15978
if 
  73@ == 10
goto_if_false @TORENO2_16070
set_lvar_text_label 76@s = 'DES2_JA'
set_lvar_text_label 78@s = 'DES2_JB'
set_lvar_text_label 80@s = 'DES2_JC'
set_lvar_int_to_constant 92@ = 3422
set_lvar_int_to_constant 93@ = 3423
set_lvar_int_to_constant 94@ = 3424
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16070
if 
  73@ == 11
goto_if_false @TORENO2_16117
set_lvar_text_label 76@s = 'DES2_KA'
set_lvar_int_to_constant 92@ = 3425
100@ = 1

:TORENO2_16117
if 
  73@ == 12
goto_if_false @TORENO2_16164
set_lvar_text_label 76@s = 'DES2_LA'
set_lvar_int_to_constant 92@ = 3428
100@ = 1

:TORENO2_16164
if 
  73@ == 14
goto_if_false @TORENO2_16286
set_lvar_text_label 76@s = 'CESX_BA'
set_lvar_text_label 78@s = 'CESX_BB'
set_lvar_text_label 80@s = 'CESX_BC'
set_lvar_text_label 82@s = 'CESX_BD'
set_lvar_int_to_constant 92@ = 42406
set_lvar_int_to_constant 93@ = 42407
set_lvar_int_to_constant 94@ = 42408
set_lvar_int_to_constant 95@ = 42409
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16286
if 
  73@ == 17
goto_if_false @TORENO2_16456
set_lvar_text_label 76@s = 'CESX_AA'
set_lvar_text_label 78@s = 'CESX_AB'
set_lvar_text_label 80@s = 'CESX_AC'
set_lvar_text_label 82@s = 'CESX_AD'
set_lvar_text_label 84@s = 'CESX_AE'
set_lvar_text_label 86@s = 'CESX_AF'
set_lvar_int_to_constant 92@ = 42400
set_lvar_int_to_constant 93@ = 42401
set_lvar_int_to_constant 94@ = 42402
set_lvar_int_to_constant 95@ = 42403
set_lvar_int_to_constant 96@ = 42404
set_lvar_int_to_constant 97@ = 42405
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16456
set_lvar_int_to_lvar_int 103@ = 74@
101@ = 0
102@ = 0
104@ = 1
return 

:TORENO2_16487
if 
  is_int_lvar_greater_than_int_lvar 100@ > 103@
goto_if_false @TORENO2_16592
if 
  101@ == 0
goto_if_false @TORENO2_16549
load_mission_audio MissionAudioSlot.Slot1 {audioId} 92@(103@,8i)
103@ += 1
101@ = 1

:TORENO2_16549
if 
  102@ == 0
goto_if_false @TORENO2_16592
load_mission_audio MissionAudioSlot.Slot2 {audioId} 92@(103@,8i)
103@ += 1
102@ = 1

:TORENO2_16592
return 

:TORENO2_16594
if 
  104@ == 1
goto_if_false @TORENO2_16670
if 
  101@ == 1
goto_if_false @TORENO2_16670
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TORENO2_16670
play_mission_audio MissionAudioSlot.Slot1
print_now 76@(74@,8s) {time} 4500 {flag} 1
101@ = 2

:TORENO2_16670
if 
  104@ == 2
goto_if_false @TORENO2_16746
if 
  102@ == 1
goto_if_false @TORENO2_16746
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TORENO2_16746
play_mission_audio MissionAudioSlot.Slot2
print_now 76@(74@,8s) {time} 4500 {flag} 1
102@ = 2

:TORENO2_16746
return 

:TORENO2_16748
if 
  101@ == 2
goto_if_false @TORENO2_16811
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TORENO2_16811
clear_this_print 76@(74@,8s)
74@ += 1
104@ = 2
101@ = 0

:TORENO2_16811
if 
  102@ == 2
goto_if_false @TORENO2_16874
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TORENO2_16874
clear_this_print 76@(74@,8s)
74@ += 1
104@ = 1
102@ = 0

:TORENO2_16874
return 

//-------------Mission 77---------------
// Originally: Interdiction

:DES3
script_name 'DES3'
gosub @DES3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DES3_38
gosub @DES3_26916

:DES3_38
gosub @DES3_27032
terminate_this_script 

:DES3_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:DES3_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DES3_173
36@ = 1

:DES3_173
39@ += 1
if 
  39@ > 10
goto_if_false @DES3_205
39@ = 0

:DES3_205
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
sub_int_lvar_from_int_lvar 224@ -= 42@
add_int_lvar_to_int_lvar 139@ += 42@
gosub @DES3_575
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_466 {caseNum1} 0 {caseLabel1} @DES3_368 {caseNum2} 1 {caseLabel2} @DES3_382 {caseNum3} 2 {caseLabel3} @DES3_396 {caseNum4} 3 {caseLabel4} @DES3_410 {caseNum5} 4 {caseLabel5} @DES3_424 {caseNum6} 5 {caseLabel6} @DES3_438 {caseNum7} 6 {caseLabel7} @DES3_452

:DES3_368
gosub @DES3_2306
goto @DES3_466

:DES3_382
gosub @DES3_2848
goto @DES3_466

:DES3_396
gosub @DES3_5177
goto @DES3_466

:DES3_410
gosub @DES3_5992
goto @DES3_466

:DES3_424
gosub @DES3_10729
goto @DES3_466

:DES3_438
gosub @DES3_12361
goto @DES3_466

:DES3_452
gosub @DES3_14045
goto @DES3_466

:DES3_466
gosub @DES3_16382

:DES3_473
if 
  38@ == 0
goto_if_false @DES3_573
if 
  37@ == 0
goto_if_false @DES3_557
if 
  36@ == 0
goto_if_false @DES3_541
goto @DES3_147
goto @DES3_550

:DES3_541
gosub @DES3_26934
return 

:DES3_550
goto @DES3_566

:DES3_557
gosub @DES3_26916
return 

:DES3_566
goto @DES3_575

:DES3_573
return 

:DES3_575
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @DES3_666
if 
  68@ == 0
goto_if_false @DES3_640
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DES3_666

:DES3_640
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DES3_666
if 
  68@ == 1
goto_if_false @DES3_2304
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DES3_733
69@ += 1
if 
  69@ > 6
goto_if_false @DES3_731
69@ = 0

:DES3_731
clear_all_view_variables 

:DES3_733
if 
  69@ == 1
goto_if_false @DES3_943
set_var_int_to_lvar_int $desert3_mission_attempts = 34@
set_var_int_to_lvar_int $DES3_view_debug = 35@
set_var_int_to_lvar_int $7480 = 62@
set_var_int_to_lvar_int $7481 = 64@
set_var_int_to_lvar_int $7482 = 63@
set_var_int_to_lvar_int $7483 = 65@
set_var_int_to_lvar_int $7484 = TIMERA
set_var_int_to_lvar_int $7485 = TIMERB
view_integer_variable $desert3_mission_attempts {_p2} "M_STAGE"
view_integer_variable $DES3_view_debug {_p2} "M_GOALS"
view_integer_variable $7480 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7481 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7482 {_p2} "HELP_FLAG"
view_integer_variable $7483 {_p2} "HELP_TIMER"
view_integer_variable $7484 {_p2} "TIMERA"
view_integer_variable $7485 {_p2} "TIMERB"

:DES3_943
if 
  69@ == 2
goto_if_false @DES3_1217
set_var_int_to_lvar_int $desert3_mission_attempts = 108@
set_var_int_to_lvar_int $DES3_view_debug = 119@
set_var_int_to_lvar_int $7480 = 120@
set_var_int_to_lvar_int $7481 = 121@
set_var_int_to_lvar_int $7482 = 122@
set_var_int_to_lvar_int $7483 = 127@
set_var_int_to_lvar_int $7484 = 128@
set_var_int_to_lvar_int $7485 = 131@
view_integer_variable $desert3_mission_attempts {_p2} "PHELI_PROGRESS"
view_integer_variable $DES3_view_debug {_p2} "BRAVO_PED_FLAG[0]"
view_integer_variable $7480 {_p2} "BRAVO_PED_FLAG[1]"
view_integer_variable $7481 {_p2} "BRAVO_PED_FLAG[2]"
view_integer_variable $7482 {_p2} "BRAVO_PED_FLAG[3]"
view_integer_variable $7483 {_p2} "ALPHA_HELIS_FUCKED"
view_integer_variable $7484 {_p2} "BRAVO_HELIS_FUCKED"
view_integer_variable $7485 {_p2} "TOTAL_FUCKED_HELIS"

:DES3_1217
if 
  69@ == 3
goto_if_false @DES3_1455
set_var_int_to_lvar_int $desert3_mission_attempts = 109@
set_var_int_to_lvar_int $DES3_view_debug = 112@
set_var_int_to_lvar_int $7480 = 115@
set_var_int_to_lvar_int $7481 = 116@
set_var_int_to_lvar_int $7482 = 117@
set_var_int_to_lvar_int $7483 = 118@
set_var_int_to_lvar_int $7484 = 129@
view_integer_variable $desert3_mission_attempts {_p2} "ALPHA_HELI_AI"
view_integer_variable $DES3_view_debug {_p2} "ALPHA_HELI_GOALS"
view_integer_variable $7480 {_p2} "ALPHA_PED_FLAG[0]"
view_integer_variable $7481 {_p2} "ALPHA_PED_FLAG[1]"
view_integer_variable $7482 {_p2} "ALPHA_PED_FLAG[2]"
view_integer_variable $7483 {_p2} "ALPHA_PED_FLAG[3]"
view_integer_variable $7484 {_p2} "ALPHA_HELI_CONTROL"

:DES3_1455
if 
  69@ == 4
goto_if_false @DES3_1668
set_var_int_to_lvar_int $desert3_mission_attempts = 123@
set_var_int_to_lvar_int $DES3_view_debug = 124@
set_var_int_to_lvar_int $7480 = 125@
set_var_int_to_lvar_int $7481 = 126@
set_var_float_to_lvar_float $7490 = 140@
set_var_int_to_lvar_int $7483 = 137@
view_integer_variable $desert3_mission_attempts {_p2} "ALPHA_PED_ATTACHED[0]"
view_integer_variable $DES3_view_debug {_p2} "ALPHA_PED_ATTACHED[1]"
view_integer_variable $7480 {_p2} "ALPHA_PED_ATTACHED[2]"
view_integer_variable $7481 {_p2} "ALPHA_PED_ATTACHED[3]"
view_float_variable $7490 {_p2} "FED_DISTANCE"
view_integer_variable $7483 {_p2} "FED_TIMER"

:DES3_1668
if 
  69@ == 5
goto_if_false @DES3_1915
set_var_float_to_lvar_float $7486 = 199@
set_var_float_to_lvar_float $DES3_view_debug_f = 202@
set_var_float_to_lvar_float $7488 = 205@
set_var_float_to_lvar_float $7489 = 208@
set_var_float_to_lvar_float $7490 = 211@
set_var_float_to_lvar_float $7491 = 221@
set_var_float_to_lvar_float $7492 = 222@
set_var_float_to_lvar_float $7493 = 223@
view_float_variable $7486 {_p2} "SWING_SPEED_X"
view_float_variable $DES3_view_debug_f {_p2} "SWING_ACCEL_X"
view_float_variable $7488 {_p2} "SWING_ROT_X"
view_float_variable $7489 {_p2} "SWING_DEST_X"
view_float_variable $7490 {_p2} "SWING_DIST_X"
view_float_variable $7491 {_p2} "SWING_ANGLE_FOR_XY"
view_float_variable $7492 {_p2} "SWING_DIRECT_DIST"
view_float_variable $7493 {_p2} "SWING_2D_DIST"

:DES3_1915
if 
  69@ == 6
goto_if_false @DES3_2169
set_var_float_to_lvar_float $7486 = 220@
set_var_float_to_lvar_float $DES3_view_debug_f = 213@
set_var_int_to_lvar_int $7480 = 110@
set_var_int_to_lvar_int $7481 = 113@
set_var_int_to_lvar_int $7482 = 83@
set_var_int_to_lvar_int $7483 = 76@
set_var_int_to_lvar_int $7484 = 133@
set_var_int_to_lvar_int $7485 = 130@
view_float_variable $7486 {_p2} "SWING_ANGLE_FOR_Z"
view_float_variable $DES3_view_debug_f {_p2} "SWING_DIST_Z"
view_integer_variable $7480 {_p2} "BRAVO_HELI_AI"
view_integer_variable $7481 {_p2} "BRAVO_HELI_GOALS"
view_integer_variable $7482 {_p2} "BRAVO_PILOT"
view_integer_variable $7483 {_p2} "BRAVO_HELI"
view_integer_variable $7484 {_p2} "TOTAL_CREATED_HELIS"
view_integer_variable $7485 {_p2} "BRAVO_HELI_CONTROL"

:DES3_2169
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DES3_2191
38@ = 1

:DES3_2191
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DES3_2279
if 
  70@ == 0
goto_if_false @DES3_2254
70@ = 1
write_debug "LEVEL_PAUSED"
goto @DES3_2279

:DES3_2254
70@ = 0
write_debug "LEVEL_UNPAUSED"

:DES3_2279
if 
  70@ == 1
goto_if_false @DES3_2304
goto @DES3_473

:DES3_2304
return 

:DES3_2306
if 
  35@ == -1
goto_if_false @DES3_2642
74@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
285@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
286@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
102@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
103@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
107@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:DES3_2642
108@ = 0
set_lvar_int_to_constant 109@ = 0
set_lvar_int_to_constant 110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
43@ = 0

:DES3_2698
if 
  4 > 43@
goto_if_false @DES3_2763
115@(43@,4i) = 0
119@(43@,4i) = 0
123@(43@,4i) = 0
43@ += 1
goto @DES3_2698

:DES3_2763
127@ = 0
128@ = 0
129@ = 0
130@ = 0
$7494 = 0
131@ = 0
132@ = 0
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_text 'DSERT3'
gosub @DES3_26858
return 

:DES3_2848
if 
  35@ == 0
goto_if_false @DES3_3481
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:DES3_2880
if 
  get_fading_status 
goto_if_false @DES3_2904
wait 0
goto @DES3_2880

:DES3_2904
clear_area -691.0 {y} 941.0 {z} 13.0 {radius} 10.0 {clearParticles} True
load_cutscene 'DESERT3'

:DES3_2939
if 
  not has_cutscene_loaded 
goto_if_false @DES3_2963
wait 0
goto @DES3_2939

:DES3_2963
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES3_2972
if 
  not has_cutscene_finished 
goto_if_false @DES3_2996
wait 0
goto @DES3_2972

:DES3_2996
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES3_3009
if 
  get_fading_status 
goto_if_false @DES3_3033
wait 0
goto @DES3_3009

:DES3_3033
clear_cutscene 
clear_area -701.5853 {y} 965.8546 {z} 11.3768 {radius} 5.0 {clearParticles} True
request_model 424

:DES3_3064
if 
  not has_model_loaded 424
goto_if_false @DES3_3091
wait 0
goto @DES3_3064

:DES3_3091
$car = create_car 424 {x} -701.5853 {y} 965.8546 {z} 11.3768
set_car_heading $car {heading} 90.4785
mark_model_as_no_longer_needed 424
set_radio_channel RadioChannel.WCTR
if 
  $7477 > 0
goto_if_false @DES3_3173
set_up_skip -426.8536 {y} 2213.783 {z} 41.4297 {heading} 9.9101

:DES3_3173
set_char_coordinates $scplayer {x} -688.7614 {y} 946.5271 {z} 12.0312
set_char_heading $scplayer {heading} 94.6779
set_camera_behind_player 
restore_camera_jumpcut 
force_weather WeatherType.ExtraSunnyDesert
101@ = add_blip_for_coord -429.025 {y} 2226.2229 {z} 41.4297
print 'AIR1_13' {time} 5000 {flag} 1
request_model 568
request_model 471
request_model 468
request_model 360
load_all_models_now 

:DES3_3269
if or
  not has_model_loaded 568
  not has_model_loaded 471
  not has_model_loaded 468
  not has_model_loaded 360
goto_if_false @DES3_3311
wait 0
goto @DES3_3269

:DES3_3311
do_fade 500 {direction} Fade.In

:DES3_3318
if 
  get_fading_status 
goto_if_false @DES3_3342
wait 0
goto @DES3_3318

:DES3_3342
set_player_control $player1 {state} True
71@ = create_car 471 {x} -434.5365 {y} 2237.5669 {z} 41.869
72@ = create_car 468 {x} -426.2288 {y} 2240.4099 {z} 41.4297
73@ = create_car 568 {x} -428.1476 {y} 2235.207 {z} 42.3505
set_car_heading 71@ {heading} 291.5598
set_car_heading 72@ {heading} 179.3694
set_car_heading 73@ {heading} 102.7597
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 568
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6000
35@ += 1

:DES3_3481
if 
  35@ == 1
goto_if_false @DES3_3767
if 
  68@ == 1
goto_if_false @DES3_3554
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_3554
set_char_coordinates $scplayer {x} -424.6452 {y} 2207.541 {z} 41.4297

:DES3_3554
if 
  locate_char_any_means_3d $scplayer {x} -429.025 {y} 2226.2229 {z} 41.4297 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_3767
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_3705
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_3684
if 
  is_vehicle_on_all_wheels $car
goto_if_false @DES3_3677
set_player_control $player1 {state} False
35@ += 1

:DES3_3677
goto @DES3_3698

:DES3_3684
set_player_control $player1 {state} False
35@ += 1

:DES3_3698
goto @DES3_3767

:DES3_3705
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -429.025 {y} 2226.2229 {z} 41.4297 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DES3_3767
set_player_control $player1 {state} False
35@ += 1

:DES3_3767
if 
  35@ == 2
goto_if_false @DES3_3956
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_3949
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_3860
if 
  is_car_stopped $car
goto_if_false @DES3_3853
35@ += 1

:DES3_3853
goto @DES3_3942

:DES3_3860
do_fade 500 {direction} Fade.Out

:DES3_3867
if 
  get_fading_status 
goto_if_false @DES3_3891
wait 0
goto @DES3_3867

:DES3_3891
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @DES3_3935
set_car_coordinates $car {x} -429.025 {y} 2226.2229 {z} 41.4297

:DES3_3935
35@ += 1

:DES3_3942
goto @DES3_3956

:DES3_3949
35@ += 1

:DES3_3956
if 
  35@ == 3
goto_if_false @DES3_4210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_4005
134@ = 1
goto @DES3_4012

:DES3_4005
134@ = 0

:DES3_4012
remove_blip 101@
clear_skip 
clear_area -432.3058 {y} 2234.375 {z} 41.4697 {radius} 5.0 {clearParticles} True
set_fixed_camera_position -433.342 {y} 2232.176 {z} 43.6323 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -432.7942 {y} 2232.9971 {z} 43.4724 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -433.0047 {y} 2230.2461 {z} 40.4297
set_char_heading $scplayer {heading} 341.959
task_go_straight_to_coord $scplayer {x} -432.3058 {y} 2234.375 {z} 41.4697 {speed} MoveState.Walk {time} 5000
do_fade 500 {direction} Fade.In

:DES3_4172
if 
  get_fading_status 
goto_if_false @DES3_4196
wait 0
goto @DES3_4172

:DES3_4196
TIMERA = 0
35@ += 1

:DES3_4210
if 
  35@ > 3
goto_if_false @DES3_4309
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_4284
if 
  134@ == 0
goto_if_false @DES3_4277
35@ = 99
134@ = 1

:DES3_4277
goto @DES3_4309

:DES3_4284
if 
  134@ == 1
goto_if_false @DES3_4309
134@ = 0

:DES3_4309
if 
  35@ == 4
goto_if_false @DES3_4411
if 
  TIMERA > 1000
goto_if_false @DES3_4411
set_var_text_label s$audio_string = 'DES3_AA'
set_var_int_to_constant $audio_sound_file = 6000
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6016
TIMERB = 0
35@ += 1

:DES3_4411
if 
  35@ == 5
goto_if_false @DES3_4591
if 
  TIMERB > 1000
goto_if_false @DES3_4591
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4591
set_fixed_camera_position -433.6039 {y} 2235.21 {z} 43.11 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -432.6751 {y} 2234.8511 {z} 43.0197 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'DES3_AB'
set_var_int_to_constant $audio_sound_file = 6016
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6001
task_look_about $scplayer {time} 2000
TIMERB = 0
35@ += 1

:DES3_4591
if 
  35@ == 6
goto_if_false @DES3_4785
if 
  TIMERB > 1000
goto_if_false @DES3_4785
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4785
set_fixed_camera_position -430.2061 {y} 2236.6951 {z} 42.8085 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -429.379 {y} 2237.2339 {z} 42.9687 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'DES3_AC'
set_var_int_to_constant $audio_sound_file = 6001
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6002
camera_reset_new_scriptables 
camera_persist_fov True
camera_set_lerp_fov 70.0 {to} 100.0 {time} 10000 {ease} True
TIMERB = 0
35@ += 1

:DES3_4785
if 
  35@ == 7
goto_if_false @DES3_4905
if 
  TIMERB > 1000
goto_if_false @DES3_4905
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4905
set_var_text_label s$audio_string = 'DES3_AD'
set_var_int_to_constant $audio_sound_file = 6002
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6003
TIMERB = 0
35@ += 1

:DES3_4905
if 
  35@ == 8
goto_if_false @DES3_5014
if 
  TIMERB > 1000
goto_if_false @DES3_5014
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5014
set_var_text_label s$audio_string = 'DES3_AE'
set_var_int_to_constant $audio_sound_file = 6003
start_new_script @AUDIOL -1 0 1 1 1 
TIMERB = 0
35@ += 1

:DES3_5014
if 
  35@ == 9
goto_if_false @DES3_5076
if 
  TIMERB > 1000
goto_if_false @DES3_5076
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5076
35@ = 99

:DES3_5076
if 
  35@ == 99
goto_if_false @DES3_5175
$7477 += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -432.3058 {y} 2234.375 {z} 41.4697
set_char_heading $scplayer {heading} 341.959
mark_car_as_no_longer_needed $car
camera_reset_new_scriptables 
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
gosub @DES3_26858

:DES3_5175
return 

:DES3_5177
if 
  35@ == 0
goto_if_false @DES3_5260
97@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 40 {x} -431.3719 {y} 2240.1321 {z} 42.6177
106@ = add_blip_for_pickup 97@
print_now 'AIR1_15' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DES3_5260
if 
  35@ == 1
goto_if_false @DES3_5429
if or
  has_pickup_been_collected 97@
  TIMERA > 7000
goto_if_false @DES3_5429
remove_blip 106@
remove_blip 101@
101@ = add_blip_for_coord -804.5877 {y} 2377.843 {z} 151.7558
print_now 'AIR1_16' {time} 7000 {flag} 1
request_animation "BOMBER"

:DES3_5358
if 
  not has_animation_loaded "BOMBER"
goto_if_false @DES3_5390
wait 0
goto @DES3_5358

:DES3_5390
request_model 343

:DES3_5395
if 
  not has_model_loaded 343
goto_if_false @DES3_5422
wait 0
goto @DES3_5395

:DES3_5422
35@ += 1

:DES3_5429
if 
  35@ == 2
goto_if_false @DES3_5715
if 
  68@ == 1
goto_if_false @DES3_5502
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_5502
set_char_coordinates $scplayer {x} -798.1865 {y} 2419.4099 {z} 155.9362

:DES3_5502
if 
  locate_char_any_means_3d $scplayer {x} -804.5877 {y} 2377.843 {z} 151.7558 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_5715
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_5653
80@ = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_5632
if 
  is_vehicle_on_all_wheels 80@
goto_if_false @DES3_5625
set_player_control $player1 {state} False
35@ += 1

:DES3_5625
goto @DES3_5646

:DES3_5632
set_player_control $player1 {state} False
35@ += 1

:DES3_5646
goto @DES3_5715

:DES3_5653
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -804.5877 {y} 2377.843 {z} 151.7558 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DES3_5715
set_player_control $player1 {state} False
35@ += 1

:DES3_5715
if 
  35@ == 3
goto_if_false @DES3_5904
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_5897
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_5808
if 
  is_car_stopped $car
goto_if_false @DES3_5801
35@ += 1

:DES3_5801
goto @DES3_5890

:DES3_5808
do_fade 500 {direction} Fade.Out

:DES3_5815
if 
  get_fading_status 
goto_if_false @DES3_5839
wait 0
goto @DES3_5815

:DES3_5839
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @DES3_5883
set_car_coordinates $car {x} -804.5877 {y} 2377.843 {z} 151.7558

:DES3_5883
35@ += 1

:DES3_5890
goto @DES3_5904

:DES3_5897
35@ += 1

:DES3_5904
if 
  35@ == 4
goto_if_false @DES3_5965
do_fade 500 {direction} Fade.Out

:DES3_5929
if 
  get_fading_status 
goto_if_false @DES3_5953
wait 0
goto @DES3_5929

:DES3_5953
remove_blip 101@
35@ = 99

:DES3_5965
if 
  35@ == 99
goto_if_false @DES3_5990
gosub @DES3_26858

:DES3_5990
return 

:DES3_5992
if 
  35@ == 0
goto_if_false @DES3_6261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_6034
134@ = 1

:DES3_6034
100@ = 0
set_player_control $player1 {state} False
request_model 487
request_model 165
request_model 166
request_model 61
request_model 355
request_model 417
request_animation "BOMBER"
load_all_models_now 

:DES3_6089
if or
  not has_model_loaded 487
  not has_model_loaded 165
  not has_model_loaded 166
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded 417
goto_if_false @DES3_6140
wait 0
goto @DES3_6089

:DES3_6140
if 
  not has_animation_loaded "BOMBER"
goto_if_false @DES3_6172
wait 0
goto @DES3_6140

:DES3_6172
request_car_recording 530
request_car_recording 531
request_car_recording 532
request_car_recording 533
request_car_recording 534
request_car_recording 535

:DES3_6202
if or
  not has_car_recording_been_loaded 530
  not has_car_recording_been_loaded 531
  not has_car_recording_been_loaded 532
  not has_car_recording_been_loaded 533
  not has_car_recording_been_loaded 534
  not has_car_recording_been_loaded 535
goto_if_false @DES3_6254
wait 0
goto @DES3_6202

:DES3_6254
35@ += 1

:DES3_6261
if 
  35@ > 0
goto_if_false @DES3_6360
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_6335
if 
  134@ == 0
goto_if_false @DES3_6328
35@ = 99
134@ = 1

:DES3_6328
goto @DES3_6360

:DES3_6335
if 
  134@ == 1
goto_if_false @DES3_6360
134@ = 0

:DES3_6360
if 
  35@ == 1
goto_if_false @DES3_6593
clear_char_tasks_immediately $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -800.611 {y} 2404.7881 {z} 155.168 {radius} 5.0 {clearParticles} True
clear_area -800.8441 {y} 2408.354 {z} 155.4525 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} -800.611 {y} 2404.7881 {z} 155.168
set_char_heading $scplayer {heading} 342.2393
task_go_straight_to_coord $scplayer {x} -800.8441 {y} 2408.354 {z} 155.4525 {speed} MoveState.Walk {time} 10000
set_fixed_camera_position -797.7917 {y} 2403.7351 {z} 157.1193 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -798.3541 {y} 2404.542 {z} 156.9353 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 500 {direction} Fade.In

:DES3_6555
if 
  get_fading_status 
goto_if_false @DES3_6579
wait 0
goto @DES3_6555

:DES3_6579
35@ += 1
TIMERA = 0

:DES3_6593
if 
  35@ == 2
goto_if_false @DES3_6674
if or
  locate_char_on_foot_3d $scplayer {x} -800.8441 {y} 2408.354 {z} 155.4525 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
  TIMERA > 5000
goto_if_false @DES3_6674
35@ += 1

:DES3_6674
if 
  35@ == 3
goto_if_false @DES3_6869
94@ = create_object 343 {x} 0.0 {y} 0.0 {z} 0.0
49@ = open_sequence_task 
task_pick_up_object -1 {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
35@ += 1

:DES3_6869
if 
  35@ == 4
goto_if_false @DES3_6977
if 
  is_char_playing_anim $scplayer {animationName} "BOM_PLANT_LOOP"
goto_if_false @DES3_6977
set_fixed_camera_position -789.7653 {y} 2416.895 {z} 163.5839 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -790.3218 {y} 2416.124 {z} 163.2729 {switchStyle} SwitchType.JumpCut
35@ += 1

:DES3_6977
if 
  35@ == 5
goto_if_false @DES3_7178
43@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DES3_7178
drop_object $scplayer {state} False
freeze_object_position 94@ {state} True
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 0.05
set_object_coordinates 94@ {x} $x {y} $y {z} $z
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@
clear_char_tasks $scplayer
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6004
35@ += 1

:DES3_7178
if 
  35@ == 6
goto_if_false @DES3_7222
if 
  TIMERA > 4000
goto_if_false @DES3_7222
35@ += 1

:DES3_7222
if 
  35@ == 7
goto_if_false @DES3_7388
set_fixed_camera_position -779.9253 {y} 2418.3379 {z} 157.8122 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -778.9708 {y} 2418.6289 {z} 157.7476 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -786.2731 {y} 2416.113 {z} 156.0893
set_char_heading $scplayer {heading} 284.998
task_go_straight_to_coord $scplayer {x} -782.2095 {y} 2417.0271 {z} 156.1289 {speed} MoveState.Walk {time} 5000
camera_reset_new_scriptables 
camera_persist_fov True
camera_set_lerp_fov 70.0 {to} 100.0 {time} 10000 {ease} True
TIMERA = 0
35@ += 1

:DES3_7388
if 
  35@ == 8
goto_if_false @DES3_7515
if 
  TIMERA > 1000
goto_if_false @DES3_7515
set_var_text_label s$audio_string = 'DES3_BA'
set_var_int_to_constant $audio_sound_file = 6004
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6012
task_look_at_coord $scplayer {x} -809.4514 {y} 2426.5149 {z} 158.8622 {time} 99999
TIMERA = 0
35@ += 1

:DES3_7515
if 
  35@ == 9
goto_if_false @DES3_7636
if 
  TIMERA > 1000
goto_if_false @DES3_7636
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7636
set_var_text_label s$audio_string = 'DES3_BB'
set_var_int_to_constant $audio_sound_file = 6012
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6005
TIMERA = 0
35@ += 1

:DES3_7636
if 
  35@ == 10
goto_if_false @DES3_7698
if 
  TIMERA > 1000
goto_if_false @DES3_7698
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7698
35@ += 1

:DES3_7698
if 
  35@ == 11
goto_if_false @DES3_8436
do_fade 500 {direction} Fade.Out

:DES3_7723
if 
  get_fading_status 
goto_if_false @DES3_7747
wait 0
goto @DES3_7723

:DES3_7747
196@ = get_radio_channel 
set_radio_channel RadioChannel.UserTracks
if 
  does_vehicle_exist 71@
goto_if_false @DES3_7824
if 
  not is_car_dead 71@
goto_if_false @DES3_7824
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 71@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7824
mark_car_as_no_longer_needed 71@

:DES3_7824
if 
  does_vehicle_exist 73@
goto_if_false @DES3_7892
if 
  not is_car_dead 73@
goto_if_false @DES3_7892
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 73@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7892
mark_car_as_no_longer_needed 73@

:DES3_7892
if 
  does_vehicle_exist 72@
goto_if_false @DES3_7960
if 
  not is_car_dead 72@
goto_if_false @DES3_7960
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7960
mark_car_as_no_longer_needed 72@

:DES3_7960
$x = -778.9708
$x += 779.9253
$y = 2418.6289
$y -= 2418.3379
$heading = get_heading_from_vector_2d $x {y} $y
load_scene_in_direction -1373.0 {y} 2004.0 {z} 108.0 {heading} $heading
gosub @DES3_17557
if 
  not is_car_dead 74@
goto_if_false @DES3_8142
start_playback_recorded_car 74@ {path} 530
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
77@ = create_car 417 {x} $x {y} $y {z} $z
set_heli_blades_full_speed 77@
start_playback_recorded_car 77@ {path} 531
set_car_visible 77@ {state} False
switch_widescreen True
warp_char_into_car_as_passenger $scplayer {handle} 74@ {seat} SeatId.BikeRear

:DES3_8142
108@ = 0
62@ = 0
if 
  not is_car_dead 77@
goto_if_false @DES3_8219
disable_heli_audio 77@ {state} True
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8219
if 
  not is_car_dead 74@
goto_if_false @DES3_8277
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8277
do_fade 500 {direction} Fade.In

:DES3_8284
if 
  get_fading_status 
goto_if_false @DES3_8422
if 
  not is_car_dead 77@
goto_if_false @DES3_8353
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8353
if 
  not is_car_dead 74@
goto_if_false @DES3_8411
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8411
wait 0
goto @DES3_8284

:DES3_8422
TIMERA = 0
35@ += 1

:DES3_8436
if 
  35@ == 12
goto_if_false @DES3_8608
if 
  not is_car_dead 77@
goto_if_false @DES3_8510
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8510
if 
  not is_car_dead 74@
goto_if_false @DES3_8568
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8568
if 
  TIMERA > 11700
goto_if_false @DES3_8608
do_fade 300 {direction} Fade.Out
TIMERA = 0
35@ += 1

:DES3_8608
if 
  35@ == 13
goto_if_false @DES3_8806
if 
  get_fading_status 
goto_if_false @DES3_8760
if 
  not is_car_dead 77@
goto_if_false @DES3_8695
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8695
if 
  not is_car_dead 74@
goto_if_false @DES3_8753
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8753
goto @DES3_8806

:DES3_8760
set_fixed_camera_position -1047.62 {y} 2164.925 {z} 88.4215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
TIMERA = 0
35@ += 1

:DES3_8806
if 
  35@ == 14
goto_if_false @DES3_9254
if 
  not is_car_dead 74@
goto_if_false @DES3_8861
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_8861
stop_playback_recorded_car 74@

:DES3_8861
gosub @DES3_18288
gosub @DES3_23443
if 
  not is_car_dead 75@
goto_if_false @DES3_8904
start_playback_recorded_car 75@ {path} 532
pause_playback_recorded_car 75@

:DES3_8904
if 
  not is_car_dead 76@
goto_if_false @DES3_8933
start_playback_recorded_car 76@ {path} 533
pause_playback_recorded_car 76@

:DES3_8933
if 
  not is_car_dead 74@
goto_if_false @DES3_8962
start_playback_recorded_car 74@ {path} 535
pause_playback_recorded_car 74@

:DES3_8962
set_fixed_camera_position -798.5942 {y} 2436.1841 {z} 172.1772 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 74@
goto_if_false @DES3_9039
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9039
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
load_scene_in_direction -778.0 {y} 2465.0 {z} 168.0 {heading} 45.0
if 
  not is_car_dead 75@
goto_if_false @DES3_9095
unpause_playback_recorded_car 75@

:DES3_9095
if 
  not is_car_dead 76@
goto_if_false @DES3_9116
unpause_playback_recorded_car 76@

:DES3_9116
if 
  not is_car_dead 74@
goto_if_false @DES3_9137
unpause_playback_recorded_car 74@

:DES3_9137
do_fade 300 {direction} Fade.In

:DES3_9144
if 
  get_fading_status 
goto_if_false @DES3_9226
if 
  not is_car_dead 74@
goto_if_false @DES3_9202
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9202
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
wait 0
goto @DES3_9144

:DES3_9226
62@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:DES3_9254
if 
  35@ == 15
goto_if_false @DES3_10273
if 
  62@ <> 7
goto_if_false @DES3_10006
if 
  not is_car_dead 74@
goto_if_false @DES3_9335
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9335
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  TIMERB > 1000
goto_if_false @DES3_9999
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_9999 {caseNum1} 0 {caseLabel1} @DES3_9430 {caseNum2} 1 {caseLabel2} @DES3_9520 {caseNum3} 2 {caseLabel3} @DES3_9610 {caseNum4} 3 {caseLabel4} @DES3_9700 {caseNum5} 4 {caseLabel5} @DES3_9790 {caseNum6} 5 {caseLabel6} @DES3_9881 {caseNum7} 6 {caseLabel7} @DES3_9960

:DES3_9430
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9513
set_var_text_label s$audio_string = 'DES3_BC'
set_var_int_to_constant $audio_sound_file = 6005
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6006
TIMERB = 0
62@ += 1

:DES3_9513
goto @DES3_9999

:DES3_9520
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9603
set_var_text_label s$audio_string = 'DES3_BD'
set_var_int_to_constant $audio_sound_file = 6006
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6007
TIMERB = 0
62@ += 1

:DES3_9603
goto @DES3_9999

:DES3_9610
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9693
set_var_text_label s$audio_string = 'DES3_BE'
set_var_int_to_constant $audio_sound_file = 6007
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6008
TIMERB = 0
62@ += 1

:DES3_9693
goto @DES3_9999

:DES3_9700
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9783
set_var_text_label s$audio_string = 'DES3_BF'
set_var_int_to_constant $audio_sound_file = 6008
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6013
TIMERB = 0
62@ += 1

:DES3_9783
goto @DES3_9999

:DES3_9790
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9874
set_var_text_label s$audio_string = 'DES3_BG'
set_var_int_to_constant $audio_sound_file = 6013
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6009
TIMERB = 0
62@ += 1

:DES3_9874
goto @DES3_9999

:DES3_9881
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9953
set_var_text_label s$audio_string = 'DES3_BH'
set_var_int_to_constant $audio_sound_file = 6009
start_new_script @AUDIOL -1 0 1 2 1 
TIMERB = 0
62@ += 1

:DES3_9953
goto @DES3_9999

:DES3_9960
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9992
TIMERB = 0
62@ += 1

:DES3_9992
goto @DES3_9999

:DES3_9999
goto @DES3_10273

:DES3_10006
if 
  TIMERB > 2000
goto_if_false @DES3_10215
if 
  not is_car_dead 74@
goto_if_false @DES3_10070
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10070
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 75@
goto_if_false @DES3_10120
if 
  is_playback_going_on_for_car 75@
goto_if_false @DES3_10120
stop_playback_recorded_car 75@

:DES3_10120
if 
  not is_car_dead 76@
goto_if_false @DES3_10157
if 
  is_playback_going_on_for_car 76@
goto_if_false @DES3_10157
stop_playback_recorded_car 76@

:DES3_10157
if 
  not is_car_dead 74@
goto_if_false @DES3_10194
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_10194
stop_playback_recorded_car 74@

:DES3_10194
do_fade 150 {direction} Fade.Out
35@ += 1
goto @DES3_10273

:DES3_10215
if 
  not is_car_dead 74@
goto_if_false @DES3_10260
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10260
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_10273
if 
  35@ == 16
goto_if_false @DES3_10376
if 
  get_fading_status 
goto_if_false @DES3_10369
if 
  not is_car_dead 74@
goto_if_false @DES3_10349
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10349
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @DES3_10376

:DES3_10369
35@ = 99

:DES3_10376
if 
  35@ == 99
goto_if_false @DES3_10727
do_fade 0 {direction} Fade.Out
if 
  does_object_exist 94@
goto_if_false @DES3_10510
if 
  is_char_holding_object $scplayer {handle} 94@
goto_if_false @DES3_10442
drop_object $scplayer {state} True

:DES3_10442
if 
  100@ == 0
goto_if_false @DES3_10503
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@

:DES3_10503
goto @DES3_10624

:DES3_10510
$x = -800.8441
$y = 2408.354
$z = 155.4525
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
94@ = create_object 343 {x} $x {y} $y {z} $z
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@

:DES3_10624
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
load_scene -806.467 {y} 2420.75 {z} 155.9102
set_char_coordinates $scplayer {x} -806.467 {y} 2420.75 {z} 155.9102
set_char_heading $scplayer {heading} 190.8497
if 
  does_vehicle_exist 77@
goto_if_false @DES3_10699
delete_car 77@

:DES3_10699
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_10727
return 

:DES3_10729
if 
  35@ == 0
goto_if_false @DES3_11344
request_model 487
request_model 165
request_model 166
request_model 61
request_model 355
request_model 417

:DES3_10776
if or
  not has_model_loaded 487
  not has_model_loaded 165
  not has_model_loaded 166
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded 417
goto_if_false @DES3_10827
wait 0
goto @DES3_10776

:DES3_10827
133@ = 0
231@ = -780.6791
232@ = 2482.3391
233@ = 170.8723
234@ = 151.9289
gosub @DES3_18288
259@ = -750.933
260@ = 2465.2849
261@ = 180.7247
262@ = 144.1498
gosub @DES3_23443
227@ = -772.2108
228@ = 2419.843
229@ = 174.0836
230@ = 176.9396
gosub @DES3_17557
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -789.7678 {y} 2416.916 {z} 156.022
set_char_heading $scplayer {heading} 190.8497
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
TIMERA = 0
111@ = 0
114@ = 0
set_lvar_int_to_constant 109@ = 5
112@ = 0
set_lvar_int_to_constant 110@ = 0
113@ = 0
force_weather_now WeatherType.ExtraSunnyDesert
$7494 = 100
print_now 'AIR1_06' {time} 7000 {flag} 1
display_onscreen_counter_with_string $7494 {display} CounterDisplay.Bar {text} 'AIR1_17'
if 
  not is_car_dead 71@
goto_if_false @DES3_11140
vehicle_can_be_targetted_by_hs_missile 71@ {state} False

:DES3_11140
if 
  not is_car_dead 72@
goto_if_false @DES3_11163
vehicle_can_be_targetted_by_hs_missile 72@ {state} False

:DES3_11163
if 
  not is_car_dead 73@
goto_if_false @DES3_11186
vehicle_can_be_targetted_by_hs_missile 73@ {state} False

:DES3_11186
if 
  not is_car_dead 74@
goto_if_false @DES3_11209
vehicle_can_be_targetted_by_hs_missile 74@ {state} False

:DES3_11209
98@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} -770.752 {y} 2423.6299 {z} 157.0753
99@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 20 {x} -808.1523 {y} 2430.7881 {z} 156.9872
set_max_fire_generations 3
set_wanted_multiplier 0.5
set_max_wanted_level 2
switch_police_helis False
197@ = 0
129@ = 1
130@ = 1
set_radio_channel 196@
do_fade 150 {direction} Fade.In

:DES3_11313
if 
  get_fading_status 
goto_if_false @DES3_11337
wait 0
goto @DES3_11313

:DES3_11337
35@ += 1

:DES3_11344
if 
  not is_car_dead 74@
goto_if_false @DES3_11704
if 
  139@ > 50
goto_if_false @DES3_11660
43@ = get_car_health 74@
if 
  43@ > 100
goto_if_false @DES3_11653
43@ = 0
if 
  not is_car_dead 75@
goto_if_false @DES3_11490
$x, $y, $z = get_car_coordinates 75@
if 
  locate_car_3d 74@ {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DES3_11490
43@ = 1

:DES3_11490
if 
  43@ == 0
goto_if_false @DES3_11587
if 
  not is_car_dead 76@
goto_if_false @DES3_11587
$x, $y, $z = get_car_coordinates 76@
if 
  locate_car_3d 74@ {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DES3_11587
43@ = 1

:DES3_11587
if 
  43@ == 1
goto_if_false @DES3_11653
43@ = get_car_health 74@
43@ += -5
if 
  0 > 43@
goto_if_false @DES3_11645
43@ = 1

:DES3_11645
set_car_health 74@ {health} 43@

:DES3_11653
139@ = 0

:DES3_11660
43@ = get_car_health 74@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 5000.0
46@ *= 100.0
cset_var_int_to_lvar_float $7494 =# 46@

:DES3_11704
if 
  35@ == 1
goto_if_false @DES3_12253
if 
  133@ == 5
goto_if_false @DES3_11772
if 
  197@ == 0
goto_if_false @DES3_11772
set_lvar_int_to_constant 109@ = 5
197@ += 1

:DES3_11772
if 
  5 > 133@
goto_if_false @DES3_11901
if 
  75@ == 0
goto_if_false @DES3_11901
if 
  129@ == 0
goto_if_false @DES3_11901
231@ = -344.9471
232@ = 2724.4209
233@ = 186.0
234@ = 110.0
gosub @DES3_18288
set_lvar_int_to_constant 109@ = 0
112@ = 0
129@ += 1
TIMERA = 0

:DES3_11901
if 
  5 > 133@
goto_if_false @DES3_12030
if 
  76@ == 0
goto_if_false @DES3_12030
if 
  130@ == 0
goto_if_false @DES3_12030
259@ = -324.9471
260@ = 2704.4209
261@ = 186.0
262@ = 110.0
gosub @DES3_23443
set_lvar_int_to_constant 110@ = 0
113@ = 0
130@ += 1
TIMERB = 0

:DES3_12030
if 
  129@ > 0
goto_if_false @DES3_12094
if 
  75@ == 0
goto_if_false @DES3_12094
127@ += 1
131@ += 1
129@ = 0
TIMERA = 0

:DES3_12094
if 
  130@ > 0
goto_if_false @DES3_12158
if 
  76@ == 0
goto_if_false @DES3_12158
128@ += 1
131@ += 1
130@ = 0
TIMERB = 0

:DES3_12158
if 
  68@ == 1
goto_if_false @DES3_12200
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_12200
131@ = 5

:DES3_12200
if 
  131@ == 5
goto_if_false @DES3_12232
TIMERA = 0
35@ += 1

:DES3_12232
gosub @DES3_17718
gosub @DES3_19279
gosub @DES3_24554

:DES3_12253
if 
  35@ == 2
goto_if_false @DES3_12297
if 
  TIMERA > 2000
goto_if_false @DES3_12297
35@ = 99

:DES3_12297
if 
  35@ == 99
goto_if_false @DES3_12359
set_wanted_multiplier 1.0
set_max_wanted_level 6
clear_onscreen_counter $7494
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_12359
return 

:DES3_12361
if 
  35@ == 0
goto_if_false @DES3_12673
request_model 417
request_model 61
request_model 355
request_model #KMB_HOLDALL
request_model #KMB_PARACHUTE
request_model 508
request_model 68
request_model 75
request_model 568

:DES3_12421
if or
  not has_model_loaded 417
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded #KMB_HOLDALL
  not has_model_loaded #KMB_PARACHUTE
goto_if_false @DES3_12467
wait 0
goto @DES3_12421

:DES3_12467
if or
  not has_model_loaded 508
  not has_model_loaded 568
goto_if_false @DES3_12499
wait 0
goto @DES3_12467

:DES3_12499
request_car_recording 536
request_car_recording 537
request_car_recording 538

:DES3_12514
if or
  not has_car_recording_been_loaded 536
  not has_car_recording_been_loaded 537
  not has_car_recording_been_loaded 538
goto_if_false @DES3_12551
wait 0
goto @DES3_12514

:DES3_12551
gosub @DES3_17557
if 
  not is_car_dead 74@
goto_if_false @DES3_12582
start_playback_recorded_car 74@ {path} 536

:DES3_12582
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
freeze_char_position $scplayer {state} True
switch_widescreen True
set_fixed_camera_position -720.812 {y} 2476.1819 {z} 171.2749 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -721.6284 {y} 2475.6069 {z} 171.2184 {switchStyle} SwitchType.JumpCut
TIMERA = 0
35@ += 1

:DES3_12673
if and
  35@ > 0
  TIMERA > 3000
goto_if_false @DES3_12723
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_12723
35@ = 99

:DES3_12723
if 
  35@ == 1
goto_if_false @DES3_12900
if 
  5000 > TIMERA
goto_if_false @DES3_12825
if 
  not is_car_dead 74@
goto_if_false @DES3_12818
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 3.0 {yOffset} -5.0 {zOffset} -2.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_12818
goto @DES3_12900

:DES3_12825
do_fade 300 {direction} Fade.Out

:DES3_12832
if 
  get_fading_status 
goto_if_false @DES3_12856
wait 0
goto @DES3_12832

:DES3_12856
if 
  not is_car_dead 74@
goto_if_false @DES3_12893
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_12893
stop_playback_recorded_car 74@

:DES3_12893
35@ += 1

:DES3_12900
if 
  35@ == 2
goto_if_false @DES3_13189
if 
  not is_car_dead 74@
goto_if_false @DES3_13189
do_fade 300 {direction} Fade.In
start_playback_recorded_car_looped 74@ {pathId} 538
set_fixed_camera_position 247.7597 {y} 2515.937 {z} 82.7789 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 246.7721 {y} 2515.894 {z} 82.6276 {switchStyle} SwitchType.JumpCut
skip_in_playback_recorded_car 74@ {amount} 100.0
96@ = create_object #KMB_HOLDALL {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 96@ {handle} 74@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} -0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 96@ {state} False
95@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 95@ {handle} 74@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -2.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 95@ {state} False
TIMERA = 0
142@ = 2.0
143@ = -7.0
144@ = 1.0
35@ += 1

:DES3_13189
if 
  35@ == 3
goto_if_false @DES3_13426
if 
  does_object_exist 95@
goto_if_false @DES3_13246
$x, $y, $z = get_offset_from_object_in_world_coords 95@ {xOffset} 142@ {yOffset} 143@ {zOffset} 144@

:DES3_13246
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  TIMERA > 7000
goto_if_false @DES3_13426
set_fixed_camera_position 296.2388 {y} 2480.553 {z} 97.5696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 295.5632 {y} 2481.1531 {z} 97.141 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist 96@
goto_if_false @DES3_13367
detach_object 96@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:DES3_13367
set_object_visible 96@ {state} True
if 
  does_object_exist 95@
goto_if_false @DES3_13412
detach_object 95@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:DES3_13412
TIMERA = 0
35@ += 1

:DES3_13426
if 
  35@ == 4
goto_if_false @DES3_13616
if 
  TIMERA > 1200
goto_if_false @DES3_13558
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
gosub @DES3_16532
if 
  does_object_exist 96@
goto_if_false @DES3_13544
$x, $y, $z = get_object_coordinates 96@
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundParachuteOpen

:DES3_13544
TIMERA = 0
35@ += 1

:DES3_13558
if 
  does_object_exist 95@
goto_if_false @DES3_13616
$x, $y, $z = get_object_velocity 95@
$z *= -0.1
add_to_object_velocity 95@ {x} 0.0 {y} 0.0 {z} $z

:DES3_13616
if 
  35@ == 5
goto_if_false @DES3_13725
gosub @DES3_16957
if 
  TIMERA > 5000
goto_if_false @DES3_13667
35@ = 99

:DES3_13667
if 
  does_object_exist 95@
goto_if_false @DES3_13725
$x, $y, $z = get_object_velocity 95@
$z *= -0.5
add_to_object_velocity 95@ {x} 0.0 {y} 0.0 {z} $z

:DES3_13725
if 
  35@ == 99
goto_if_false @DES3_14043
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 80@
goto_if_false @DES3_13780
107@ = add_blip_for_car 80@
goto @DES3_13840

:DES3_13780
mark_car_as_no_longer_needed 80@
clear_area -804.5877 {y} 2377.843 {z} 151.7558 {radius} 5.0 {clearParticles} True
80@ = create_car 568 {x} -804.5877 {y} 2377.843 {z} 151.7558
107@ = add_blip_for_car 80@

:DES3_13840
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 20.0 {clearParticles} True
set_blip_as_friendly 107@ {state} True
mark_model_as_no_longer_needed 568
79@ = create_car 508 {x} -680.7584 {y} 2466.0811 {z} 114.9057
set_car_heading 79@ {heading} 75.939
92@ = create_char_inside_car 79@ {pedType} PedType.CivMale {modelId} 68
93@ = create_char_as_passenger 79@ {pedType} PedType.CivFemale {modelId} 75 {seat} SeatId.BikeRear
task_car_drive_to_coord 92@ {vehicle} 79@ {x} -726.9384 {y} 2357.3879 {z} 125.5138 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 75
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_char_position $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
wait 0
delete_object 96@
delete_object 95@
gosub @DES3_17660
gosub @DES3_26858

:DES3_14043
return 

:DES3_14045
if 
  35@ == 0
goto_if_false @DES3_14308
print_now 'AIR1_09' {time} 7000 {flag} 1
request_model 487
request_model 61
request_model 355
request_model #KMB_HOLDALL
request_model #KMB_PARACHUTE
request_model 165
request_model 166

:DES3_14113
if or
  not has_model_loaded 487
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded #KMB_HOLDALL
  not has_model_loaded 165
  not has_model_loaded 166
goto_if_false @DES3_14164
wait 0
goto @DES3_14113

:DES3_14164
if 
  not has_model_loaded #KMB_PARACHUTE
goto_if_false @DES3_14191
wait 0
goto @DES3_14164

:DES3_14191
214@ = 216.9669
215@ = 2689.1489
216@ = 90.0
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
if 
  does_object_exist 96@
goto_if_false @DES3_14272
delete_object 96@

:DES3_14272
gosub @DES3_16532
105@ = add_blip_for_object 96@
set_object_scale 96@ {scale} 0.3
switch_police_helis True
35@ += 1

:DES3_14308
if 
  35@ == 1
goto_if_false @DES3_14516
if 
  68@ == 1
goto_if_false @DES3_14381
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_14381
set_char_coordinates $scplayer {x} 417.0 {y} 2493.0 {z} 27.83

:DES3_14381
if 
  226@ == 0
goto_if_false @DES3_14516
if 
  does_object_exist 96@
goto_if_false @DES3_14516
$x, $y, $z = get_object_coordinates 96@
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @DES3_14516
if 
  does_blip_exist 107@
goto_if_false @DES3_14492
remove_blip 107@

:DES3_14492
delete_object 96@
remove_blip 105@
TIMERA = 0
35@ += 1

:DES3_14516
if 
  35@ == 2
goto_if_false @DES3_14691
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 269.6016 {y} 2868.4641 {z} 15.2584 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 269.2238 {y} 2869.373 {z} 15.0806 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 265.7708 {y} 2873.0779 {z} 13.4336
set_char_heading $scplayer {heading} 266.1126
set_var_text_label s$audio_string = 'DES3_CA'
set_var_int_to_constant $audio_sound_file = 6010
start_new_script @AUDIOL -1 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6014
TIMERB = 0
35@ += 1

:DES3_14691
if 
  35@ == 3
goto_if_false @DES3_14812
if 
  TIMERB > 1000
goto_if_false @DES3_14812
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14812
set_var_text_label s$audio_string = 'DES3_CB'
set_var_int_to_constant $audio_sound_file = 6014
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 6015
35@ += 1
TIMERB = 0

:DES3_14812
if 
  35@ == 4
goto_if_false @DES3_14933
if 
  TIMERB > 1000
goto_if_false @DES3_14933
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14933
set_var_text_label s$audio_string = 'DES3_CC'
set_var_int_to_constant $audio_sound_file = 6015
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 6011
35@ += 1
TIMERB = 0

:DES3_14933
if 
  35@ == 5
goto_if_false @DES3_15042
if 
  TIMERB > 1000
goto_if_false @DES3_15042
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15042
set_var_text_label s$audio_string = 'DES3_CD'
set_var_int_to_constant $audio_sound_file = 6011
start_new_script @AUDIOL -1 0 1 2 1 
35@ += 1
TIMERB = 0

:DES3_15042
if 
  35@ == 6
goto_if_false @DES3_15127
if 
  TIMERB > 1000
goto_if_false @DES3_15127
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15127
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:DES3_15127
if 
  35@ == 7
goto_if_false @DES3_15195
print_now 'AIR1_10' {time} 7000 {flag} 1
101@ = add_blip_for_coord -394.8462 {y} 2226.6221 {z} 41.4259
198@ = 0
35@ += 1

:DES3_15195
if 
  35@ == 8
goto_if_false @DES3_15594
if 
  198@ == 0
goto_if_false @DES3_15304
if 
  locate_char_any_means_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DES3_15297
open_garage 'GHOSTDR'
198@ = 1

:DES3_15297
goto @DES3_15370

:DES3_15304
if 
  not locate_char_any_means_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DES3_15370
close_garage 'GHOSTDR'
198@ = 0

:DES3_15370
if 
  does_blip_exist 101@
goto_if_false @DES3_15550
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_15488
if 
  locate_char_in_car_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_15481
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @DES3_15481
35@ += 1

:DES3_15481
goto @DES3_15543

:DES3_15488
if 
  locate_char_on_foot_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @DES3_15543
35@ += 1

:DES3_15543
goto @DES3_15594

:DES3_15550
if 
  TIMERA > 60000
goto_if_false @DES3_15594
print_now 'AIR1_11' {time} 7000 {flag} 1
TIMERA = 0

:DES3_15594
if 
  35@ == 9
goto_if_false @DES3_15740
set_player_control $player1 {state} False
close_garage 'GHOSTDR'
do_fade 1000 {direction} Fade.Out

:DES3_15637
if 
  get_fading_status 
goto_if_false @DES3_15661
wait 0
goto @DES3_15637

:DES3_15661
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -389.8034 {y} 2230.7419 {z} 41.4297
set_char_heading $scplayer {heading} 270.0
set_camera_in_front_of_player 
restore_camera_jumpcut 

:DES3_15700
if 
  not is_garage_closed 'GHOSTDR'
goto_if_false @DES3_15733
wait 0
goto @DES3_15700

:DES3_15733
36@ = 1

:DES3_15740
if 
  132@ == 0
goto_if_false @DES3_15906
if 
  does_vehicle_exist 75@
goto_if_false @DES3_15906
if 
  not is_car_dead 75@
goto_if_false @DES3_15906
$x, $y, $z = get_char_coordinates $scplayer
if 
  not locate_car_3d 75@ {x} $x {y} $y {z} $z {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DES3_15860
activate_heli_speed_cheat 75@ {power} 10
goto @DES3_15906

:DES3_15860
$pheli_health = 100
display_onscreen_counter_with_string $pheli_health {display} CounterDisplay.Bar {text} 'AIR1_12'
132@ = 1
print_now 'AIR1_11' {time} 7000 {flag} 1

:DES3_15906
if 
  132@ == 1
goto_if_false @DES3_16230
if 
  does_vehicle_exist 75@
goto_if_false @DES3_16230
if 
  not is_car_dead 75@
goto_if_false @DES3_16202
$x, $y, $z = get_char_coordinates $scplayer
56@, 57@, 58@ = get_car_coordinates 75@
140@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  175.0 > 140@
goto_if_false @DES3_16085
if 
  100 > $pheli_health
goto_if_false @DES3_16078
if 
  137@ > 100
goto_if_false @DES3_16078
$pheli_health += 1
137@ = 0

:DES3_16078
goto @DES3_16135

:DES3_16085
if 
  $pheli_health > 0
goto_if_false @DES3_16135
if 
  137@ > 100
goto_if_false @DES3_16135
$pheli_health += -1
137@ = 0

:DES3_16135
if 
  $pheli_health == 0
goto_if_false @DES3_16195
set_lvar_int_to_constant 109@ = 99
112@ = 0
print_now 'AIR1_10' {time} 7000 {flag} 1
132@ = 2
clear_onscreen_counter $pheli_health

:DES3_16195
goto @DES3_16230

:DES3_16202
print_now 'AIR1_10' {time} 7000 {flag} 1
132@ = 2
clear_onscreen_counter $pheli_health

:DES3_16230
if 
  35@ > 1
goto_if_false @DES3_16332
if 
  does_blip_exist 101@
goto_if_false @DES3_16294
if 
  132@ == 1
goto_if_false @DES3_16287
remove_blip 101@

:DES3_16287
goto @DES3_16332

:DES3_16294
if 
  132@ == 2
goto_if_false @DES3_16332
101@ = add_blip_for_coord -450.9301 {y} 2238.45 {z} 43.4409

:DES3_16332
if 
  39@ == 3
goto_if_false @DES3_16373
if 
  does_vehicle_exist 75@
goto_if_false @DES3_16373
gosub @DES3_19279

:DES3_16373
gosub @DES3_16957
return 

:DES3_16382
if 
  does_blip_exist 107@
goto_if_false @DES3_16450
if 
  not is_car_dead 80@
goto_if_false @DES3_16445
if 
  is_char_in_car $scplayer {vehicle} 80@
goto_if_false @DES3_16438
remove_blip 107@

:DES3_16438
goto @DES3_16450

:DES3_16445
remove_blip 107@

:DES3_16450
if 
  does_vehicle_exist 74@
goto_if_false @DES3_16505
if 
  is_car_dead 74@
goto_if_false @DES3_16505
37@ = 1
print_now 'AIR1_08' {time} 5000 {flag} 1

:DES3_16505
if 
  39@ == 7
goto_if_false @DES3_16530
gosub @DES3_26440

:DES3_16530
return 

:DES3_16532
if 
  does_object_exist 96@
goto_if_false @DES3_16577
214@, 215@, 216@ = get_object_coordinates 96@
216@ += 6.679
delete_object 96@

:DES3_16577
96@ = create_object_no_offset #KMB_PARACHUTE {x} 214@ {y} 215@ {z} 216@
set_object_collision 96@ {state} False
set_object_dynamic 96@ {state} False
199@ = 1.0
200@ = 0.5
201@ = 0.0
205@ = 0.0
206@ = 0.0
207@ = 0.0
224@ = 80000
cset_lvar_float_to_lvar_int 225@ =# 224@
222@ = get_distance_between_coords_3d 214@ {fromY} 215@ {fromZ} 216@ {toX} 208@ {toY} 209@ {toZ} 210@
223@ = get_distance_between_coords_2d 214@ {fromY} 215@ {toX} 208@ {toZ} 209@
set_lvar_float_to_lvar_float 211@ = 214@
sub_float_lvar_from_float_lvar 211@ -= 208@
set_lvar_float_to_lvar_float 212@ = 215@
sub_float_lvar_from_float_lvar 212@ -= 209@
set_lvar_float_to_lvar_float 213@ = 216@
sub_float_lvar_from_float_lvar 213@ -= 210@
set_lvar_float_to_lvar_float 217@ = 208@
sub_float_lvar_from_float_lvar 217@ -= 214@
set_lvar_float_to_lvar_float 218@ = 209@
sub_float_lvar_from_float_lvar 218@ -= 215@
set_lvar_float_to_lvar_float 219@ = 210@
sub_float_lvar_from_float_lvar 219@ -= 216@
div_float_lvar_by_float_lvar 217@ /= 222@
div_float_lvar_by_float_lvar 218@ /= 222@
div_float_lvar_by_float_lvar 219@ /= 222@
set_lvar_float_to_lvar_float 50@ = 223@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 223@
set_lvar_float_to_lvar_float 54@ = 213@
220@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
set_lvar_float_to_lvar_float 50@ = 211@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 211@
set_lvar_float_to_lvar_float 54@ = 212@
221@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
226@ = 1
return 

:DES3_16957
if 
  226@ == 1
goto_if_false @DES3_17555
if 
  224@ > 1000
goto_if_false @DES3_17424
if 
  does_object_exist 96@
goto_if_false @DES3_17417
if 
  205@ > 180.0
goto_if_false @DES3_17041
205@ = -180.0

:DES3_17041
if 
  -180.0 > 205@
goto_if_false @DES3_17072
205@ = 180.0

:DES3_17072
if 
  205@ >= 0.0
goto_if_false @DES3_17110
202@ = -0.01
goto @DES3_17120

:DES3_17110
202@ = 0.01

:DES3_17120
add_timed_float_lvar_to_float_lvar 199@ +=@ 202@
if 
  199@ > 1.0
goto_if_false @DES3_17159
199@ = 1.0

:DES3_17159
if 
  -1.0 > 199@
goto_if_false @DES3_17190
199@ = -1.0

:DES3_17190
add_timed_float_lvar_to_float_lvar 205@ +=@ 199@
cset_lvar_float_to_lvar_int 46@ =# 224@
set_lvar_float_to_lvar_float 47@ = 225@
sub_float_lvar_from_float_lvar 47@ -= 46@
div_float_lvar_by_float_lvar 47@ /= 225@
mult_float_lvar_by_float_lvar 47@ *= 222@
set_lvar_float_to_lvar_float 50@ = 217@
mult_float_lvar_by_float_lvar 50@ *= 47@
set_lvar_float_to_lvar_float 51@ = 218@
mult_float_lvar_by_float_lvar 51@ *= 47@
set_lvar_float_to_lvar_float 52@ = 219@
mult_float_lvar_by_float_lvar 52@ *= 47@
set_var_float_to_lvar_float $x = 214@
add_float_lvar_to_float_var $x += 50@
set_var_float_to_lvar_float $y = 215@
add_float_lvar_to_float_var $y += 51@
set_var_float_to_lvar_float $z = 216@
add_float_lvar_to_float_var $z += 52@
set_lvar_float_to_var_float 145@ = $x
set_lvar_float_to_var_float 146@ = $y
set_lvar_float_to_var_float 147@ = $z
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17385
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17385
set_object_coordinates 96@ {x} 145@ {y} 146@ {z} 147@
set_object_rotation 96@ {x} 205@ {y} 0.0 {z} 90.0

:DES3_17417
goto @DES3_17555

:DES3_17424
145@, 146@, 147@ = get_object_coordinates 96@
147@ = get_ground_z_for_3d_coord 145@ {y} 146@ {z} 147@
147@ += 0.5
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17489
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17489
delete_object 96@
remove_blip 105@
96@ = create_object_no_offset #KMB_HOLDALL {x} 145@ {y} 146@ {z} 147@
set_object_scale 96@ {scale} 0.3
105@ = add_blip_for_object 96@
freeze_object_position 96@ {state} True
set_object_collision 96@ {state} False
226@ = 0

:DES3_17555
return 

:DES3_17557
74@ = create_car 417 {x} 227@ {y} 228@ {z} 229@
set_car_heading 74@ {heading} 230@
set_heli_blades_full_speed 74@
set_heli_stabiliser 74@ {state} True
81@ = create_char_inside_car 74@ {pedType} PedType.Mission1 {modelId} 61
set_car_health 74@ {health} 5000
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
104@ = add_blip_for_car 74@
set_blip_as_friendly 104@ {state} True
set_load_collision_for_car_flag 74@ {state} False
set_car_only_damaged_by_player 74@ {state} True
return 

:DES3_17660
if 
  does_char_exist 81@
goto_if_false @DES3_17681
delete_char 81@

:DES3_17681
if 
  does_vehicle_exist 74@
goto_if_false @DES3_17702
delete_car 74@

:DES3_17702
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 61
remove_blip 104@
return 

:DES3_17718
if 
  not is_car_dead 74@
goto_if_false @DES3_18286
if 
  111@ == 0
goto_if_false @DES3_18286
if 
  114@ == 0
goto_if_false @DES3_18069
151@ = -784.6607
166@ = 2442.231
181@ = 180.0
152@ = -804.959
167@ = 2425.5759
182@ = 180.0
153@ = -787.8075
168@ = 2405.689
183@ = 180.0
154@ = -772.5547
169@ = 2413.2229
184@ = 180.0
155@ = -772.9753
170@ = 2432.2839
185@ = 180.0
156@ = -789.0908
171@ = 2424.8521
186@ = 180.0
157@ = -802.8
172@ = 2431.0901
187@ = 180.0
158@ = -772.5547
173@ = 2413.2229
188@ = 180.0
108@ = 0
heli_goto_coords 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {minAltitude} 15.0 {maxAltitude} 181@(108@,15f)
activate_heli_speed_cheat 74@ {power} 1
114@ += 1

:DES3_18069
if 
  locate_car_3d 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @DES3_18229
43@ = generate_random_int_in_range 0 {max} 8
if 
  is_int_lvar_equal_to_int_lvar 43@ == 108@
goto_if_false @DES3_18183
43@ += 1
if 
  43@ > 7
goto_if_false @DES3_18183
43@ = 0

:DES3_18183
set_lvar_int_to_lvar_int 108@ = 43@
heli_goto_coords 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {minAltitude} 15.0 {maxAltitude} 181@(108@,15f)

:DES3_18229
43@ = get_car_health 74@
if 
  300 >= 43@
goto_if_false @DES3_18286
if 
  111@ <> 99
goto_if_false @DES3_18286
make_heli_come_crashing_down 74@
111@ = 99

:DES3_18286
return 

:DES3_18288
if 
  not does_vehicle_exist 75@
goto_if_false @DES3_18341
75@ = create_car 487 {x} 0.0 {y} 0.0 {z} 0.0
vehicle_can_be_targetted_by_hs_missile 75@ {state} True
set_load_collision_for_car_flag 75@ {state} False

:DES3_18341
if 
  not does_char_exist 82@
goto_if_false @DES3_18370
82@ = create_char_inside_car 75@ {pedType} PedType.Mission2 {modelId} 166

:DES3_18370
if 
  not does_char_exist 84@
goto_if_false @DES3_18411
84@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18411
if 
  not does_char_exist 85@
goto_if_false @DES3_18452
85@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18452
if 
  not does_char_exist 86@
goto_if_false @DES3_18493
86@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18493
if 
  not does_char_exist 87@
goto_if_false @DES3_18534
87@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18534
if 
  not is_car_dead 75@
goto_if_false @DES3_18607
set_car_coordinates 75@ {x} 231@ {y} 232@ {z} 233@
set_car_heading 75@ {heading} 234@
set_heli_blades_full_speed 75@
change_car_colour 75@ {color1} 0 {color2} 0
set_heli_stabiliser 75@ {state} True
set_car_only_damaged_by_player 75@ {state} True
lock_car_doors 75@ {lockStatus} CarLock.Locked

:DES3_18607
if 
  not is_char_dead 82@
goto_if_false @DES3_18652
set_char_can_be_shot_in_vehicle 82@ {state} False
set_char_cant_be_dragged_out 82@ {state} True
set_char_can_be_shot_in_vehicle 82@ {state} False
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_18652
if 
  not is_car_dead 75@
goto_if_false @DES3_19079
if 
  not is_char_dead 84@
goto_if_false @DES3_18723
attach_char_to_car 84@ {vehicle} 75@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} -0.1 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47
123@ = 1

:DES3_18723
if 
  not is_char_dead 85@
goto_if_false @DES3_18778
attach_char_to_car 85@ {vehicle} 75@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47
124@ = 1

:DES3_18778
if 
  not is_char_dead 86@
goto_if_false @DES3_18833
attach_char_to_car 86@ {vehicle} 75@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} -0.1 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47
125@ = 1

:DES3_18833
if 
  not is_char_dead 87@
goto_if_false @DES3_18888
attach_char_to_car 87@ {vehicle} 75@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47
126@ = 1

:DES3_18888
43@ = 0

:DES3_18895
if 
  4 > 43@
goto_if_false @DES3_19079
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_19065
set_char_shoot_rate 84@(43@,4i) {rate} 20
set_char_accuracy 84@(43@,4i) {accuracy} 27
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_19009
set_char_max_health 84@(43@,4i) {maxHealth} 125
set_char_health 84@(43@,4i) {health} 125
goto @DES3_19031

:DES3_19009
set_char_max_health 84@(43@,4i) {maxHealth} 100
set_char_health 84@(43@,4i) {health} 100

:DES3_19031
set_char_only_damaged_by_player 84@(43@,4i) {state} True
set_char_decision_maker 84@(43@,4i) {handleOrTemplate} 66@
115@(43@,4i) = 0

:DES3_19065
43@ += 1
goto @DES3_18895

:DES3_19079
if 
  not is_car_dead 75@
goto_if_false @DES3_19124
if 
  does_blip_exist 102@
goto_if_false @DES3_19116
remove_blip 102@

:DES3_19116
102@ = add_blip_for_car 75@

:DES3_19124
set_lvar_int_to_constant 109@ = 0
112@ = 0
133@ += 1
return 

:DES3_19147
if 
  does_char_exist 82@
goto_if_false @DES3_19168
delete_char 82@

:DES3_19168
43@ = 0

:DES3_19175
if 
  4 > 43@
goto_if_false @DES3_19236
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_19222
delete_char 84@(43@,4i)

:DES3_19222
43@ += 1
goto @DES3_19175

:DES3_19236
if 
  does_vehicle_exist 75@
goto_if_false @DES3_19257
delete_car 75@

:DES3_19257
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 355
return 

:DES3_19279
if 
  TIMERA > 240000
goto_if_false @DES3_19333
if 
  not is_car_dead 75@
goto_if_false @DES3_19333
explode_car 75@
explode_car 75@
TIMERA = 0

:DES3_19333
switch_start 109@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DES3_22132 {caseNum1} 0 {caseLabel1} @DES3_19396 {caseNum2} 4 {caseLabel2} @DES3_21962 {caseNum3} 5 {caseLabel3} @DES3_19903 {caseNum4} -1 {caseLabel4} @DES3_22132 {caseNum5} -1 {caseLabel5} @DES3_22132 {caseNum6} -1 {caseLabel6} @DES3_22132 {caseNum7} -1 {caseLabel7} @DES3_22132

:DES3_19396
if 
  not is_car_dead 75@
goto_if_false @DES3_19896
if 
  112@ == 0
goto_if_false @DES3_19475
if 
  not is_car_dead 74@
goto_if_false @DES3_19475
heli_follow_entity 75@ {char} -1 {vehicle} 74@ {radius} 20.0
112@ += 1
135@ = 0

:DES3_19475
if 
  112@ == 1
goto_if_false @DES3_19845
if 
  10000 > 135@
goto_if_false @DES3_19816
if 
  not is_car_dead 74@
goto_if_false @DES3_19809
$x, $y, $z = get_car_coordinates 74@
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 10.0 {yOffset} -10.0 {zOffset} 5.0
if 
  not locate_car_3d 75@ {x} $x {y} $y {z} $z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DES3_19809
56@, 57@, 58@ = get_car_coordinates 75@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  $distance > 0.01
goto_if_false @DES3_19802
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_19802
goto @DES3_19809

:DES3_19809
goto @DES3_19845

:DES3_19816
heli_follow_entity 75@ {char} $scplayer {vehicle} -1 {radius} 20.0
112@ += 1
135@ = 0

:DES3_19845
if 
  112@ == 2
goto_if_false @DES3_19896
if 
  135@ > 25000
goto_if_false @DES3_19896
112@ = 0
135@ = 0

:DES3_19896
goto @DES3_22132

:DES3_19903
if 
  not is_car_dead 75@
goto_if_false @DES3_21550
if 
  112@ == 0
goto_if_false @DES3_19992
heli_keep_entity_in_view 75@ {char} $scplayer {vehicle} -1 {minAltitude} 15.0 {maxAltitude} 170.0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
112@ += 1

:DES3_19992
if 
  112@ == 1
goto_if_false @DES3_20206
if 
  39@ == 10
goto_if_false @DES3_20206
56@, 57@, 58@ = get_char_coordinates $scplayer
if 
  locate_car_2d 75@ {x} 56@ {y} 57@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DES3_20206
$x, $y, $z = get_car_coordinates 75@
46@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_lvar_float 47@ = 58@
sub_float_lvar_from_float_lvar 47@ -= 46@
if 
  5.0 > 47@
goto_if_false @DES3_20206
set_lvar_float_to_var_float 148@ = $x
set_lvar_float_to_var_float 149@ = $y
set_lvar_float_to_lvar_float 150@ = 46@
150@ += 10.0
heli_goto_coords 75@ {x} 148@ {y} 149@ {z} 150@ {minAltitude} 10.0 {maxAltitude} 0.0
112@ += 1

:DES3_20206
if 
  112@ == 2
goto_if_false @DES3_20621
if 
  locate_car_3d 75@ {x} 148@ {y} 149@ {z} 150@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DES3_20403
46@ = get_car_speed 75@
if 
  46@ > 1.0
goto_if_false @DES3_20375
50@, 51@, 52@ = get_car_speed_vector 75@
50@ *= -0.001
51@ *= -0.001
52@ *= -0.001
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @DES3_20396

:DES3_20375
freeze_car_position 75@ {state} True
135@ = 0
112@ += 1

:DES3_20396
goto @DES3_20621

:DES3_20403
46@ = get_car_speed 75@
if 
  10.0 > 46@
goto_if_false @DES3_20621
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 148@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 150@
sub_float_var_from_float_lvar 52@ -= $z
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 148@ {toY} 149@ {toZ} 150@
if 
  $distance > 0.01
goto_if_false @DES3_20621
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_20621
if 
  112@ == 3
goto_if_false @DES3_20825
if 
  135@ > 1500
goto_if_false @DES3_20825
freeze_car_position 75@ {state} True
if 
  not is_char_dead 84@
goto_if_false @DES3_20811
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} -0.1
delete_char 84@
84@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 84@ {rate} 30
set_char_accuracy 84@ {accuracy} 27
set_char_max_health 84@ {maxHealth} 125
set_char_health 84@ {health} 125
set_char_only_damaged_by_player 84@ {state} True
set_char_decision_maker 84@ {handleOrTemplate} 66@
give_weapon_to_char 84@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 84@ {range} 2000.0
123@ = 0
115@ = 1

:DES3_20811
135@ = 0
112@ += 1

:DES3_20825
if 
  112@ == 4
goto_if_false @DES3_21014
if 
  135@ > 0
goto_if_false @DES3_21014
if 
  not is_char_dead 85@
goto_if_false @DES3_21000
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} -0.1
delete_char 85@
85@ = create_swat_rope PedType.Mission2 {modelId} 166 {x} $x {y} $y {z} $z
set_char_shoot_rate 85@ {rate} 30
set_char_accuracy 85@ {accuracy} 27
set_char_health 85@ {health} 100
set_char_only_damaged_by_player 85@ {state} True
set_char_decision_maker 85@ {handleOrTemplate} 66@
give_weapon_to_char 85@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 85@ {range} 2000.0
124@ = 0
116@ = 1

:DES3_21000
135@ = 0
112@ += 1

:DES3_21014
if 
  112@ == 5
goto_if_false @DES3_21211
if 
  135@ > 2000
goto_if_false @DES3_21211
if 
  not is_char_dead 86@
goto_if_false @DES3_21197
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} -0.1
delete_char 86@
86@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 86@ {rate} 30
set_char_accuracy 86@ {accuracy} 27
set_char_max_health 86@ {maxHealth} 125
set_char_health 86@ {health} 125
set_char_only_damaged_by_player 86@ {state} True
set_char_decision_maker 86@ {handleOrTemplate} 66@
give_weapon_to_char 86@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 86@ {range} 2000.0
125@ = 0
117@ = 1

:DES3_21197
135@ = 0
112@ += 1

:DES3_21211
if 
  112@ == 6
goto_if_false @DES3_21401
if 
  135@ > 500
goto_if_false @DES3_21401
if 
  not is_char_dead 87@
goto_if_false @DES3_21387
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} -0.1
delete_char 87@
87@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 87@ {rate} 30
set_char_accuracy 87@ {accuracy} 27
set_char_health 87@ {health} 100
set_char_only_damaged_by_player 87@ {state} True
set_char_decision_maker 87@ {handleOrTemplate} 66@
give_weapon_to_char 87@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 87@ {range} 2000.0
126@ = 0
118@ = 1

:DES3_21387
135@ = 0
112@ += 1

:DES3_21401
if 
  112@ == 7
goto_if_false @DES3_21525
if or
  115@ == 2
  is_char_dead 84@
goto_if_false @DES3_21525
if or
  116@ == 2
  is_char_dead 85@
goto_if_false @DES3_21525
if or
  117@ == 2
  is_char_dead 86@
goto_if_false @DES3_21525
if or
  118@ == 2
  is_char_dead 87@
goto_if_false @DES3_21525
135@ = 0
112@ += 1

:DES3_21525
if 
  112@ == 8
goto_if_false @DES3_21550
109@ = 99

:DES3_21550
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_21955
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_21955
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_21955
if 
  123@(43@,4i) == 0
goto_if_false @DES3_21955
if 
  115@(43@,4i) == 0
goto_if_false @DES3_21719
44@ = get_script_task_status 84@(43@,4i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21719
task_kill_char_on_foot 84@(43@,4i) {target} $scplayer

:DES3_21719
if 
  115@(43@,4i) == 1
goto_if_false @DES3_21810
44@ = get_script_task_status 84@(43@,4i) {taskId} 1283
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21810
set_char_decision_maker 84@(43@,4i) {handleOrTemplate} 67@
set_char_relationship 84@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
115@(43@,4i) += 1

:DES3_21810
if 
  115@(43@,4i) == 2
goto_if_false @DES3_21892
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
115@(43@,4i) += 1

:DES3_21892
if 
  115@(43@,4i) == 3
goto_if_false @DES3_21955
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0
115@(43@,4i) = 0

:DES3_21955
goto @DES3_22132

:DES3_21962
if 
  not is_car_dead 75@
goto_if_false @DES3_22125
if 
  112@ == 0
goto_if_false @DES3_22023
heli_keep_entity_in_view 75@ {char} $scplayer {vehicle} -1 {minAltitude} 25.0 {maxAltitude} 15.0
112@ += 1

:DES3_22023
46@ = get_car_speed 75@
if 
  5.0 > 46@
goto_if_false @DES3_22125
50@, 51@, 52@ = get_car_speed_vector 75@
50@ *= 0.0001
51@ *= 0.0001
52@ *= 0.0001
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_22125
goto @DES3_22132

:DES3_22132
if 
  109@ == 99
goto_if_false @DES3_22366
if 
  not is_car_dead 75@
goto_if_false @DES3_22366
vehicle_can_be_targetted_by_hs_missile 75@ {state} False
freeze_car_position 75@ {state} False
43@ = get_car_health 75@
if 
  300 >= 43@
goto_if_false @DES3_22267
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_22236
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_22236
make_heli_come_crashing_down 75@
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0
goto @DES3_22345

:DES3_22267
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_22296
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_22296
heli_goto_coords 75@ {x} 204.0 {y} 2816.0 {z} 186.0 {minAltitude} 50.0 {maxAltitude} 186.0
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0

:DES3_22345
if 
  does_blip_exist 102@
goto_if_false @DES3_22366
remove_blip 102@

:DES3_22366
if 
  not is_car_dead 75@
goto_if_false @DES3_22481
if and
  123@ == 1
  is_char_dead 84@
goto_if_false @DES3_22481
if and
  124@ == 1
  is_char_dead 85@
goto_if_false @DES3_22481
if and
  125@ == 1
  is_char_dead 86@
goto_if_false @DES3_22481
if and
  126@ == 1
  is_char_dead 87@
goto_if_false @DES3_22481
109@ = 99

:DES3_22481
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_23063
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23063
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_23063
if 
  123@(43@,4i) == 1
goto_if_false @DES3_23063
if 
  115@(43@,4i) == 0
goto_if_false @DES3_22705
if 
  not is_char_dead 81@
goto_if_false @DES3_22694
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
115@(43@,4i) += 1
goto @DES3_22705

:DES3_22694
115@(43@,4i) += 1

:DES3_22705
if 
  115@(43@,4i) == 1
goto_if_false @DES3_22876
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_22876
if 
  locate_char_any_means_char_3d 84@(43@,4i) {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @DES3_22876
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 84@(43@,4i) {rate} 100
115@(43@,4i) += 1

:DES3_22876
if 
  115@(43@,4i) == 2
goto_if_false @DES3_23063
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_23063
if 
  not locate_char_any_means_char_3d 84@(43@,4i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @DES3_23063
if 
  not is_char_dead 81@
goto_if_false @DES3_23063
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 84@(43@,4i) {rate} 20
115@(43@,4i) = 1

:DES3_23063
if 
  not is_car_dead 75@
goto_if_false @DES3_23131
43@ = get_car_health 75@
if 
  300 >= 43@
goto_if_false @DES3_23131
if 
  109@ <> 99
goto_if_false @DES3_23131
109@ = 99

:DES3_23131
43@ = 0

:DES3_23138
if 
  4 > 43@
goto_if_false @DES3_23260
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23246
if 
  is_char_dead 84@(43@,4i)
goto_if_false @DES3_23246
detach_char_from_car 84@(43@,4i)
115@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23246
43@ += 1
goto @DES3_23138

:DES3_23260
if and
  is_car_dead 75@
  75@ <> 0
goto_if_false @DES3_23441
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_23312
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_23312
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0
43@ = 0

:DES3_23338
if 
  4 > 43@
goto_if_false @DES3_23420
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23406
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23406
43@ += 1
goto @DES3_23338

:DES3_23420
if 
  does_blip_exist 102@
goto_if_false @DES3_23441
remove_blip 102@

:DES3_23441
return 

:DES3_23443
if 
  does_vehicle_exist 76@
goto_if_false @DES3_23471
mark_car_as_no_longer_needed 76@
76@ = 0

:DES3_23471
if 
  not does_vehicle_exist 76@
goto_if_false @DES3_23524
76@ = create_car 487 {x} 0.0 {y} 0.0 {z} 0.0
vehicle_can_be_targetted_by_hs_missile 76@ {state} True
set_load_collision_for_car_flag 76@ {state} False

:DES3_23524
if 
  does_char_exist 83@
goto_if_false @DES3_23576
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_23569
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_23569
83@ = 0

:DES3_23576
if 
  not does_char_exist 83@
goto_if_false @DES3_23605
83@ = create_char_inside_car 76@ {pedType} PedType.Mission2 {modelId} 166

:DES3_23605
43@ = 0

:DES3_23612
if 
  4 > 43@
goto_if_false @DES3_23684
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_23670
mark_char_as_no_longer_needed 88@(43@,4i)
88@(43@,4i) = 0

:DES3_23670
43@ += 1
goto @DES3_23612

:DES3_23684
if 
  not does_char_exist 88@
goto_if_false @DES3_23725
88@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23725
if 
  not does_char_exist 89@
goto_if_false @DES3_23766
89@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23766
if 
  not does_char_exist 90@
goto_if_false @DES3_23807
90@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23807
if 
  not does_char_exist 91@
goto_if_false @DES3_23848
91@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23848
if 
  not is_car_dead 76@
goto_if_false @DES3_23921
set_car_coordinates 76@ {x} 259@ {y} 260@ {z} 261@
set_car_heading 76@ {heading} 262@
set_heli_blades_full_speed 76@
change_car_colour 76@ {color1} 0 {color2} 0
set_heli_stabiliser 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
lock_car_doors 76@ {lockStatus} CarLock.Locked

:DES3_23921
if 
  not is_char_dead 83@
goto_if_false @DES3_23966
set_char_can_be_shot_in_vehicle 83@ {state} False
set_char_cant_be_dragged_out 83@ {state} True
set_char_can_be_shot_in_vehicle 83@ {state} False
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_23966
if 
  not is_car_dead 76@
goto_if_false @DES3_24354
if 
  not is_char_dead 88@
goto_if_false @DES3_24030
attach_char_to_car 88@ {vehicle} 76@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} 0.2 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47

:DES3_24030
if 
  not is_char_dead 89@
goto_if_false @DES3_24078
attach_char_to_car 89@ {vehicle} 76@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} 0.2 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47

:DES3_24078
if 
  not is_char_dead 90@
goto_if_false @DES3_24126
attach_char_to_car 90@ {vehicle} 76@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} 0.2 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47

:DES3_24126
if 
  not is_char_dead 91@
goto_if_false @DES3_24174
attach_char_to_car 91@ {vehicle} 76@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} 0.2 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47

:DES3_24174
43@ = 0

:DES3_24181
if 
  4 > 43@
goto_if_false @DES3_24354
if 
  not is_char_dead 88@(43@,4i)
goto_if_false @DES3_24340
set_char_shoot_rate 88@(43@,4i) {rate} 30
set_char_accuracy 88@(43@,4i) {accuracy} 27
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_24295
set_char_max_health 88@(43@,4i) {maxHealth} 125
set_char_health 88@(43@,4i) {health} 125
goto @DES3_24306

:DES3_24295
set_char_health 88@(43@,4i) {health} 100

:DES3_24306
set_char_only_damaged_by_player 88@(43@,4i) {state} True
set_char_decision_maker 88@(43@,4i) {handleOrTemplate} 66@
119@(43@,4i) = 0

:DES3_24340
43@ += 1
goto @DES3_24181

:DES3_24354
if 
  not is_car_dead 76@
goto_if_false @DES3_24399
if 
  does_blip_exist 103@
goto_if_false @DES3_24391
remove_blip 103@

:DES3_24391
103@ = add_blip_for_car 76@

:DES3_24399
110@ = 0
113@ = 0
133@ += 1
return 

:DES3_24422
if 
  does_char_exist 83@
goto_if_false @DES3_24443
delete_char 83@

:DES3_24443
43@ = 0

:DES3_24450
if 
  4 > 43@
goto_if_false @DES3_24511
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_24497
delete_char 88@(43@,4i)

:DES3_24497
43@ += 1
goto @DES3_24450

:DES3_24511
if 
  does_vehicle_exist 76@
goto_if_false @DES3_24532
delete_car 76@

:DES3_24532
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 355
return 

:DES3_24554
if 
  TIMERB > 240000
goto_if_false @DES3_24608
if 
  not is_car_dead 76@
goto_if_false @DES3_24608
explode_car 76@
explode_car 76@
TIMERB = 0

:DES3_24608
if 
  not is_car_dead 76@
goto_if_false @DES3_25318
if 
  110@ == 0
goto_if_false @DES3_25107
if 
  113@ == 0
goto_if_false @DES3_24705
if 
  not is_car_dead 74@
goto_if_false @DES3_24705
heli_follow_entity 76@ {char} -1 {vehicle} 74@ {radius} 20.0
113@ += 1
136@ = 0

:DES3_24705
if 
  113@ == 1
goto_if_false @DES3_25054
if 
  15000 > 136@
goto_if_false @DES3_25025
if 
  not is_car_dead 74@
goto_if_false @DES3_25018
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -10.0 {yOffset} -10.0 {zOffset} 0.0
if 
  not locate_car_3d 76@ {x} $x {y} $y {z} $z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DES3_25018
56@, 57@, 58@ = get_car_coordinates 76@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  $distance > 0.01
goto_if_false @DES3_25018
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 76@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_25018
goto @DES3_25054

:DES3_25025
heli_follow_entity 76@ {char} $scplayer {vehicle} -1 {radius} 20.0
113@ += 1
136@ = 0

:DES3_25054
if 
  113@ == 2
goto_if_false @DES3_25107
if 
  136@ > 35000
goto_if_false @DES3_25107
113@ = 0
136@ = 0

:DES3_25107
if 
  110@ == 99
goto_if_false @DES3_25318
freeze_car_position 76@ {state} False
43@ = get_car_health 76@
if 
  300 >= 43@
goto_if_false @DES3_25219
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_25188
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_25188
make_heli_come_crashing_down 76@
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0
goto @DES3_25297

:DES3_25219
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_25248
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_25248
heli_goto_coords 76@ {x} 204.0 {y} 2816.0 {z} 186.0 {minAltitude} 50.0 {maxAltitude} 186.0
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0

:DES3_25297
if 
  does_blip_exist 103@
goto_if_false @DES3_25318
remove_blip 103@

:DES3_25318
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_25832
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_25832
if 
  not is_char_dead 88@(43@,4i)
goto_if_false @DES3_25832
if 
  119@(43@,4i) == 0
goto_if_false @DES3_25488
if 
  not is_char_dead 81@
goto_if_false @DES3_25488
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
119@(43@,4i) += 1

:DES3_25488
if 
  119@(43@,4i) == 1
goto_if_false @DES3_25652
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25652
if 
  locate_char_any_means_char_3d 88@(43@,4i) {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @DES3_25652
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 88@(43@,4i) {rate} 100
119@(43@,4i) += 1

:DES3_25652
if 
  119@(43@,4i) == 2
goto_if_false @DES3_25832
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25832
if 
  not locate_char_any_means_char_3d 88@(43@,4i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @DES3_25832
if 
  not is_char_dead 81@
goto_if_false @DES3_25832
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 88@(43@,4i) {rate} 30
119@(43@,4i) = 1

:DES3_25832
if 
  39@ == 4
goto_if_false @DES3_25937
if 
  not is_car_dead 76@
goto_if_false @DES3_25937
if 
  is_char_dead 88@
goto_if_false @DES3_25937
if 
  is_char_dead 89@
goto_if_false @DES3_25937
if 
  is_char_dead 90@
goto_if_false @DES3_25937
if 
  is_char_dead 91@
goto_if_false @DES3_25937
110@ = 99

:DES3_25937
if 
  not is_car_dead 76@
goto_if_false @DES3_26012
43@ = get_car_health 76@
if 
  300 >= 43@
goto_if_false @DES3_26012
if 
  110@ <> 99
goto_if_false @DES3_26012
110@ = 99
vehicle_can_be_targetted_by_hs_missile 76@ {state} False

:DES3_26012
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_26128
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_26128
if 
  is_char_dead 88@(43@,4i)
goto_if_false @DES3_26128
detach_char_from_car 88@(43@,4i)
119@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26128
if and
  is_car_dead 76@
  76@ <> 0
goto_if_false @DES3_26309
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_26180
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_26180
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0
43@ = 0

:DES3_26206
if 
  4 > 43@
goto_if_false @DES3_26288
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_26274
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26274
43@ += 1
goto @DES3_26206

:DES3_26288
if 
  does_blip_exist 103@
goto_if_false @DES3_26309
remove_blip 103@

:DES3_26309
return 

:DES3_26311
264@ = 0
if 
  264@ == -1
goto_if_false @DES3_26360
265@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_26360
if 
  20 > 264@
goto_if_false @DES3_26438
if 
  not does_char_exist 265@(264@,20i)
goto_if_false @DES3_26424
set_lvar_int_to_lvar_int 265@(264@,20i) = 263@
264@ = 20
goto @DES3_26431

:DES3_26424
264@ += 1

:DES3_26431
goto @DES3_26360

:DES3_26438
return 

:DES3_26440
264@ = 0

:DES3_26447
if 
  20 > 264@
goto_if_false @DES3_26528
if 
  does_char_exist 265@(264@,20i)
goto_if_false @DES3_26514
if 
  is_char_dead 265@(264@,20i)
goto_if_false @DES3_26514
remove_char_elegantly 265@(264@,20i)

:DES3_26514
264@ += 1
goto @DES3_26447

:DES3_26528
264@ = 0

:DES3_26535
if 
  4 > 264@
goto_if_false @DES3_26687
if 
  does_char_exist 84@(264@,4i)
goto_if_false @DES3_26613
if 
  is_char_dead 84@(264@,4i)
goto_if_false @DES3_26613
remove_char_elegantly 84@(264@,4i)
84@(264@,4i) = 0

:DES3_26613
if 
  does_char_exist 88@(264@,4i)
goto_if_false @DES3_26673
if 
  is_char_dead 88@(264@,4i)
goto_if_false @DES3_26673
remove_char_elegantly 88@(264@,4i)
88@(264@,4i) = 0

:DES3_26673
264@ += 1
goto @DES3_26535

:DES3_26687
return 
if 
  not is_car_dead 286@
goto_if_false @DES3_26719
$x, $y, $z = get_car_coordinates 286@

:DES3_26719
if 
  not is_car_dead 285@
goto_if_false @DES3_26856
56@, 57@, 58@ = get_car_coordinates 285@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
50@ *= -0.0001
51@ *= -0.0001
52@ *= -0.0001
apply_force_to_car 285@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_26856
return 

:DES3_26858
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:DES3_26916
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DES3_26934
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESERT3'
player_made_progress 1
$flag_desert_mission_counter += 1
set_int_stat StatId.PassedDesert3 {value} 1
do_fade 1000 {direction} Fade.In

:DES3_27006
if 
  get_fading_status 
goto_if_false @DES3_27030
wait 0
goto @DES3_27006

:DES3_27030
return 

:DES3_27032
if 
  not is_garage_closed 'GHOSTDR'
goto_if_false @DES3_27065
close_garage 'GHOSTDR'

:DES3_27065
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
mark_model_as_no_longer_needed 568
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 360
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed #KMB_HOLDALL
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 508
mark_model_as_no_longer_needed #KMB_PARACHUTE
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 75
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_animation "BOMBER"
release_weather 
clear_onscreen_counter $7494
clear_onscreen_counter $pheli_health
remove_pickup 97@
remove_pickup 98@
remove_pickup 99@
if 
  is_player_playing $player1
goto_if_false @DES3_27253
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:DES3_27253
remove_decision_maker 66@
remove_decision_maker 67@
kill_fx_system 100@
set_player_control $player1 {state} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
switch_police_helis True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 78---------------
// Originally: Verdant Meadows

:DESERT4
script_name 'DESERT4'
gosub @DESERT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT4_38
gosub @DESERT4_292

:DESERT4_38
gosub @DESERT4_429
terminate_this_script 

:DESERT4_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'DSERT4'
force_weather WeatherType.ExtraSunnyDesert
clear_area -688.1717 {y} 937.9888 {z} 12.6328 {radius} 10.0 {clearParticles} True
load_cutscene 'DESERT4'

:DESERT4_110
if 
  not has_cutscene_loaded 
goto_if_false @DESERT4_134
wait 0
goto @DESERT4_110

:DESERT4_134
start_cutscene 
do_fade 1000 {direction} Fade.In

:DESERT4_143
if 
  not has_cutscene_finished 
goto_if_false @DESERT4_167
wait 0
goto @DESERT4_143

:DESERT4_167
do_fade 0 {direction} Fade.Out

:DESERT4_173
if 
  get_fading_status 
goto_if_false @DESERT4_197
wait 0
goto @DESERT4_173

:DESERT4_197
release_weather 
clear_cutscene 
set_char_coordinates $scplayer {x} -696.0359 {y} 948.1198 {z} 11.276
set_char_heading $scplayer {heading} 33.1992
restore_camera_jumpcut 
set_player_control $player1 {state} True
load_scene -696.0359 {y} 948.1198 {z} 11.276
do_fade 1000 {direction} Fade.In
wait 1000
print_now 'BUY_AIR' {time} 10000 {flag} 1
goto @DESERT4_310

:DESERT4_292
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DESERT4_310
$flag_desert_mission_counter += 1
register_mission_passed 'DESERT4'
remove_blip $desert_contact_blip
switch_car_generator $f1_bronze_car_gen {amount} 101
switch_car_generator $area51_gen {amount} 101
start_new_script @BUY3 
remove_blip $airstrip_contact_blip
$airstrip_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyG
change_blip_display $airstrip_contact_blip {display} BlipDisplay.BlipOnly
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $desert2_blip_icon
change_blip_display $desert2_contact_blip {display} BlipDisplay.BlipOnly
set_int_stat StatId.PassedDesert4 {value} 1
set_max_wanted_level 6
player_made_progress 1
return 

:DESERT4_429
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 79---------------
// Originally: N.O.E.

:DESERT6
script_name 'DESERT6'
gosub @DESERT6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT6_38
gosub @DESERT6_10307

:DESERT6_38
gosub @DESERT6_10519
terminate_this_script 

:DESERT6_47
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
48@ = 0

:DESERT6_231
87@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @DESERT6_231
48@ = 0

:DESERT6_270
184@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_270
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
if 
  34@ == -99
goto_if_false @DESERT6_694
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
125@ = create_car 476 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:DESERT6_463
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 126@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_463
48@ = 0

:DESERT6_518
create_char PedType.CivMale {modelId} 43 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 123@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_518
48@ = 0

:DESERT6_574
create_object #AMMO_CAPSULE {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 128@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_574
133@ = add_blip_for_car 125@
132@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
48@ = 0

:DESERT6_657
add_blip_for_car 126@(48@,2i) {var_handle} 134@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_657

:DESERT6_694
load_mission_text 'DSERT6'
gosub @DESERT6_9725
136@ = load_char_decision_maker DecisionMakerType.Empty
gosub @DESERT6_9939

:DESERT6_726
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT6_759
36@ = 1
goto @DESERT6_1014

:DESERT6_759
gosub @DESERT6_9057
gosub @DESERT6_9410
if or
  38@ == 1
  39@ == 1
goto_if_false @DESERT6_805
goto @DESERT6_1014

:DESERT6_805
gosub @DESERT6_9622
gosub @DESERT6_9656
if 
  is_char_dead $scplayer
goto_if_false @DESERT6_849
37@ = 1
goto @DESERT6_1014

:DESERT6_849
if 
  34@ == 0
goto_if_false @DESERT6_907
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:DESERT6_907
if 
  34@ == 1
goto_if_false @DESERT6_932
gosub @DESERT6_1162

:DESERT6_932
if 
  34@ == 2
goto_if_false @DESERT6_957
gosub @DESERT6_1336

:DESERT6_957
if 
  34@ == 3
goto_if_false @DESERT6_982
gosub @DESERT6_2968

:DESERT6_982
if 
  34@ == 4
goto_if_false @DESERT6_1007
36@ = 1

:DESERT6_1007
gosub @DESERT6_6815

:DESERT6_1014
if 
  38@ == 0
goto_if_false @DESERT6_1114
if 
  37@ == 0
goto_if_false @DESERT6_1098
if 
  36@ == 0
goto_if_false @DESERT6_1082
goto @DESERT6_726
goto @DESERT6_1091

:DESERT6_1082
gosub @DESERT6_10459
return 

:DESERT6_1091
goto @DESERT6_1107

:DESERT6_1098
gosub @DESERT6_10307
return 

:DESERT6_1107
goto @DESERT6_1116

:DESERT6_1114
return 

:DESERT6_1116
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:DESERT6_1162
if 
  35@ == 0
goto_if_false @DESERT6_1228
print_now 'DES6_00' {time} 7000 {flag} 1
gosub @DESERT6_6258
81@ = 1
gosub @DESERT6_7633
set_radio_channel RadioChannel.UserTracks
35@ += 1

:DESERT6_1228
if 
  is_car_dead 125@
goto_if_false @DESERT6_1260
37@ = 1
45@ = 1
return 

:DESERT6_1260
if 
  35@ == 1
goto_if_false @DESERT6_1309
if 
  is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_1309
remove_blip 133@
35@ = 99

:DESERT6_1309
if 
  35@ == 99
goto_if_false @DESERT6_1334
gosub @DESERT6_9695

:DESERT6_1334
return 

:DESERT6_1336
if 
  35@ == 0
goto_if_false @DESERT6_1620
181@ = 0
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 2000
159@ = -2135.5901
160@ = -2488.4541
161@ = 55.895
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
set_lvar_float_to_lvar_float 70@ = 160@
70@ += 1.0
152@ = create_checkpoint CheckpointType.Torus {x} 159@ {y} 160@ {z} 161@ {pointX} 159@ {pointY} 70@ {pointZ} 161@ {radius} 25.0
$des3_heat = 0
138@ = 0
163@ = 0
165@ = 0
166@ = 0
172@ = 0
$g_Desert6_failureKM = 10
$g_Desert6_failureKM *= 60000
display_onscreen_timer_with_string $g_Desert6_failureKM {direction} TimerDirection.Down {text} 'DES6_51'
162@ = get_char_height_above_ground $scplayer
48@ = 0

:DESERT6_1559
177@(48@,2i) = 0
150@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_1559
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28600
set_disable_military_zones True
35@ += 1

:DESERT6_1620
if 
  is_car_dead 125@
goto_if_false @DESERT6_1709
48@ = 0

:DESERT6_1643
if 
  does_object_exist 128@(48@,4i)
goto_if_false @DESERT6_1672
delete_object 128@(48@,4i)

:DESERT6_1672
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_1643
37@ = 1
45@ = 1
return 

:DESERT6_1709
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_1736
return 

:DESERT6_1736
if 
  $g_Desert6_failureKM == 0
goto_if_false @DESERT6_1770
37@ = 1
45@ = 3
return 

:DESERT6_1770
if 
  35@ == 1
goto_if_false @DESERT6_1867
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_1867
70@ = get_char_height_above_ground $scplayer
sub_float_lvar_from_float_lvar 70@ -= 162@
if 
  70@ > 2.0
goto_if_false @DESERT6_1867
display_onscreen_counter_with_string $des3_heat {display} CounterDisplay.Bar {text} 'DES6_50'
35@ += 1

:DESERT6_1867
if 
  35@ == 2
goto_if_false @DESERT6_2061
set_lvar_float_to_lvar_float 57@ = 159@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 160@
58@ -= 2.0
set_lvar_float_to_lvar_float 59@ = 161@
59@ -= 25.0
set_lvar_float_to_lvar_float 60@ = 159@
60@ += 25.0
set_lvar_float_to_lvar_float 61@ = 160@
61@ += 2.0
set_lvar_float_to_lvar_float 62@ = 161@
62@ += 25.0
if and
  is_char_in_area_3d $scplayer {leftBottomX} 57@ {leftBottomY} 58@ {leftBottomZ} 59@ {rightTopX} 60@ {rightTopY} 61@ {rightTopZ} 62@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_2061
remove_blip 132@
delete_checkpoint 152@
gosub @DESERT6_6561
35@ = 99

:DESERT6_2061
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_2119
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_2119
166@ = 1

:DESERT6_2119
if 
  166@ == 1
goto_if_false @DESERT6_2175
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_2175
gosub @DESERT6_6031
if 
  168@ == 0
goto_if_false @DESERT6_2331
57@, 58@, 59@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 159@ {toY} 160@ {toZ} 161@
if 
  500.0 > 72@
goto_if_false @DESERT6_2331
if 
  is_point_on_screen 159@ {y} 160@ {z} 161@ {radius} 5.0
goto_if_false @DESERT6_2331
print_now 'DES6_09' {time} 7000 {flag} 1
168@ = 1
169@ = 1
set_lvar_int_to_lvar_int 144@ = 46@
144@ += 7000

:DESERT6_2331
if 
  169@ == 1
goto_if_false @DESERT6_2375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 144@
goto_if_false @DESERT6_2375
169@ = 0

:DESERT6_2375
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @DESERT6_2471
if and
  is_local_var_bit_set_const 85@ {bitIndex} 1
  80@ == 0
goto_if_false @DESERT6_2439
81@ = 2
gosub @DESERT6_7633
goto @DESERT6_2471

:DESERT6_2439
if and
  80@ == 1
  $des3_heat >= 40
goto_if_false @DESERT6_2471
gosub @DESERT6_7857

:DESERT6_2471
if and
  163@ == 1
  165@ == 0
  169@ == 0
goto_if_false @DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {bitIndex} 2
  80@ == 2
  79@ == 1
  $des3_heat >= 40
goto_if_false @DESERT6_2549
gosub @DESERT6_7788

:DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {bitIndex} 3
  is_local_var_bit_set_const 85@ {bitIndex} 2
  80@ == 0
goto_if_false @DESERT6_2595
81@ = 3
gosub @DESERT6_7633

:DESERT6_2595
if and
  165@ == 1
  not is_local_var_bit_set_const 85@ {bitIndex} 3
  80@ == 3
  79@ == 1
goto_if_false @DESERT6_2641
gosub @DESERT6_7788

:DESERT6_2641
if 
  167@ == 0
goto_if_false @DESERT6_2707
if and
  is_local_var_bit_set_const 85@ {bitIndex} 3
  79@ <> 2
goto_if_false @DESERT6_2707
print_now 'DES6_06' {time} 7000 {flag} 1
167@ = 1

:DESERT6_2707
if 
  180@ == 0
goto_if_false @DESERT6_2820
if 
  is_char_in_area_2d $scplayer {leftBottomX} -67.0004 {leftBottomY} 1646.886 {rightTopX} 423.298 {rightTopY} 2132.188 {drawSphere} False
goto_if_false @DESERT6_2820
if or
  is_char_in_any_plane $scplayer
  is_char_in_any_heli $scplayer
goto_if_false @DESERT6_2820
if 
  not is_message_being_displayed 
goto_if_false @DESERT6_2820
print_now 'AREA51' {time} 7000 {flag} 1
180@ = 1

:DESERT6_2820
if 
  181@ == 0
goto_if_false @DESERT6_2887
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_2887
gosub @DESERT6_7788
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
181@ = 1

:DESERT6_2887
if 
  183@ == 0
goto_if_false @DESERT6_2941
if 
  is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @DESERT6_2941
print_help 'DES6_12'
183@ = 1

:DESERT6_2941
if 
  35@ == 99
goto_if_false @DESERT6_2966
gosub @DESERT6_9695

:DESERT6_2966
return 

:DESERT6_2968
if 
  35@ == 0
goto_if_false @DESERT6_3201
print_now 'DES6_10' {time} 5000 {flag} 1
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
153@ = -76.4228
154@ = 2478.6399
155@ = 14.2844
156@ = 433.6483
157@ = 2525.658
158@ = 18.6279
set_lvar_float_to_lvar_float 159@ = 156@
sub_float_lvar_from_float_lvar 159@ -= 153@
159@ /= 2.0
add_float_lvar_to_float_lvar 159@ += 153@
set_lvar_float_to_lvar_float 160@ = 157@
sub_float_lvar_from_float_lvar 160@ -= 154@
160@ /= 2.0
add_float_lvar_to_float_lvar 160@ += 154@
set_lvar_float_to_lvar_float 161@ = 158@
sub_float_lvar_from_float_lvar 161@ -= 155@
161@ /= 2.0
add_float_lvar_to_float_lvar 161@ += 155@
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
35@ += 1

:DESERT6_3201
if 
  is_car_dead 125@
goto_if_false @DESERT6_3233
37@ = 1
45@ = 1
return 

:DESERT6_3233
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_3260
return 

:DESERT6_3260
if 
  $g_Desert6_failureKM == 0
goto_if_false @DESERT6_3294
37@ = 1
45@ = 3
return 

:DESERT6_3294
if 
  35@ == 1
goto_if_false @DESERT6_3437
  locate_char_any_means_3d $scplayer {x} 159@ {y} 160@ {z} 161@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
if and
  is_char_in_area_3d $scplayer {leftBottomX} 153@ {leftBottomY} 154@ {leftBottomZ} 155@ {rightTopX} 156@ {rightTopY} 157@ {rightTopZ} 158@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 125@
  is_car_stopped 125@
  not is_car_in_air_proper 125@
goto_if_false @DESERT6_3437
remove_blip 132@
gosub @DESERT6_7788
set_player_control $player1 {state} False
165@ = 0
141@ = 0
35@ += 1

:DESERT6_3437
if 
  35@ == 2
goto_if_false @DESERT6_3487
if 
  is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @DESERT6_3487
set_player_control $player1 {state} True
35@ = 99

:DESERT6_3487
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_3545
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_3545
166@ = 1

:DESERT6_3545
if 
  166@ == 1
goto_if_false @DESERT6_3601
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_3601
gosub @DESERT6_6031
if 
  170@ == 0
goto_if_false @DESERT6_3730
57@, 58@, 59@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 159@ {toY} 160@ {toZ} 161@
if 
  500.0 > 72@
goto_if_false @DESERT6_3730
print_now 'DES6_11' {time} 7000 {flag} 1
170@ = 1
171@ = 1
set_lvar_int_to_lvar_int 145@ = 46@
145@ += 7000

:DESERT6_3730
if 
  171@ == 1
goto_if_false @DESERT6_3808
if 
  is_int_lvar_greater_than_int_lvar 46@ > 145@
goto_if_false @DESERT6_3792
171@ = 0
clear_this_print 'DES6_11'
goto @DESERT6_3808

:DESERT6_3792
print_now 'DES6_11' {time} 7000 {flag} 1

:DESERT6_3808
if 
  172@ == 0
goto_if_false @DESERT6_3833
gosub @DESERT6_6621

:DESERT6_3833
if and
  170@ == 1
  80@ <> 4
  not is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @DESERT6_3963
switch_start 79@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DESERT6_3963 {caseNum1} 0 {caseLabel1} @DESERT6_3928 {caseNum2} 1 {caseLabel2} @DESERT6_3949 {caseNum3} -1 {caseLabel3} @DESERT6_3963 {caseNum4} -1 {caseLabel4} @DESERT6_3963 {caseNum5} -1 {caseLabel5} @DESERT6_3963 {caseNum6} -1 {caseLabel6} @DESERT6_3963 {caseNum7} -1 {caseLabel7} @DESERT6_3963

:DESERT6_3928
81@ = 4
gosub @DESERT6_7633
goto @DESERT6_3963

:DESERT6_3949
gosub @DESERT6_7857
goto @DESERT6_3963

:DESERT6_3963
if 
  180@ == 0
goto_if_false @DESERT6_4076
if 
  is_char_in_area_2d $scplayer {leftBottomX} -67.0004 {leftBottomY} 1646.886 {rightTopX} 423.298 {rightTopY} 2132.188 {drawSphere} False
goto_if_false @DESERT6_4076
if or
  is_char_in_any_plane $scplayer
  is_char_in_any_heli $scplayer
goto_if_false @DESERT6_4076
if 
  not is_message_being_displayed 
goto_if_false @DESERT6_4076
print_now 'AREA51' {time} 7000 {flag} 1
180@ = 1

:DESERT6_4076
if 
  35@ == 99
goto_if_false @DESERT6_4101
gosub @DESERT6_9695

:DESERT6_4101
return 

:DESERT6_4103
57@ = 323.5454
58@ = 2540.2539
59@ = 15.8085
63@ = 180.0
clear_area 57@ {y} 58@ {z} 59@ {radius} 15.0 {clearParticles} True
125@ = create_car 476 {x} 57@ {y} 58@ {z} 59@
set_car_heading 125@ {heading} 63@
return 

:DESERT6_4188
57@, 58@, 59@ = get_car_coordinates 125@
70@ = get_ground_z_for_3d_coord 57@ {y} 58@ {z} 59@
71@ = get_water_height_at_coords 57@ {y} 58@ {waves} False
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_4256
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_4256
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 70@
if 
  71@ > 40.0
goto_if_false @DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4527
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4454
$des3_heat += 1
if 
  $des3_heat > 100
goto_if_false @DESERT6_4362
$des3_heat = 100

:DESERT6_4362
if and
  $des3_heat == 100
  165@ == 0
goto_if_false @DESERT6_4439
165@ = 1
166@ = 0
182@ = 0
50@ = 3
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_4439
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80

:DESERT6_4454
if and
  165@ == 0
  169@ == 0
  179@ == 0
goto_if_false @DESERT6_4520
if 
  79@ <> 2
goto_if_false @DESERT6_4520
print_now 'DES6_07' {time} 1000 {flag} 1

:DESERT6_4520
goto @DESERT6_4574

:DESERT6_4527
if 
  71@ > 41.0
goto_if_false @DESERT6_4574
163@ = 1
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80
play_mission_audio MissionAudioSlot.Slot3

:DESERT6_4574
goto @DESERT6_4829

:DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4738
163@ = 0
if 
  $des3_heat > 0
goto_if_false @DESERT6_4646
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40
goto @DESERT6_4653

:DESERT6_4646
138@ = 0

:DESERT6_4653
if 
  165@ == 1
goto_if_false @DESERT6_4702
50@ = 10
50@ *= 1000
set_lvar_int_to_lvar_int 141@ = 46@
add_int_lvar_to_int_lvar 141@ += 50@

:DESERT6_4702
165@ = 0
140@ = 0
clear_this_print 'DES6_07'
clear_mission_audio MissionAudioSlot.Slot3
goto @DESERT6_4829

:DESERT6_4738
if 
  $des3_heat > 0
goto_if_false @DESERT6_4829
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4829
$des3_heat -= 1
if 
  $des3_heat == 0
goto_if_false @DESERT6_4814
138@ = 0
goto @DESERT6_4829

:DESERT6_4814
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40

:DESERT6_4829
return 

:DESERT6_4831
if 
  not is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5027
if 
  is_int_lvar_greater_than_int_lvar 46@ > 139@
goto_if_false @DESERT6_5020
if 
  $g_Desert6_visibilityKM == 0
goto_if_false @DESERT6_4928
37@ = 1
45@ = 2
return 
goto @DESERT6_5020

:DESERT6_4928
$g_Desert6_visibilityKM -= 1
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
clear_small_prints 
add_next_message_to_previous_briefs False
if 
  $g_Desert6_visibilityKM == 1
goto_if_false @DESERT6_5001
print_with_number_now 'DES6_04' {num} $g_Desert6_visibilityKM {duration} 1500 {flag} 1
goto @DESERT6_5020

:DESERT6_5001
print_with_number_now 'DES6_03' {num} $g_Desert6_visibilityKM {duration} 1500 {flag} 1

:DESERT6_5020
goto @DESERT6_5104

:DESERT6_5027
$g_Desert6_visibilityKM = 30
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
add_next_message_to_previous_briefs False
print_with_number_now 'DES6_03' {num} $g_Desert6_visibilityKM {duration} 1500 {flag} 1
remove_blip 132@
133@ = add_blip_for_car 125@
set_blip_as_friendly 133@ {state} True
clear_mission_audio MissionAudioSlot.Slot3
164@ = 1

:DESERT6_5104
goto @DESERT6_5171

:DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5171
164@ = 0
remove_blip 133@
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
139@ = 0
$g_Desert6_visibilityKM = 0
clear_small_prints 

:DESERT6_5171
return 

:DESERT6_5173
179@ = 0
48@ = 0

:DESERT6_5187
73@ = 0
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_5577
179@ = 1
if or
  is_car_dead 126@(48@,2i)
  is_char_dead 123@(48@,2i)
goto_if_false @DESERT6_5259
73@ = 1

:DESERT6_5259
if 
  73@ == 0
goto_if_false @DESERT6_5304
if 
  is_car_in_water 126@(48@,2i)
goto_if_false @DESERT6_5304
73@ = 1

:DESERT6_5304
if 
  73@ == 0
goto_if_false @DESERT6_5485
if 
  177@(48@,2i) == 1
goto_if_false @DESERT6_5430
if 
  is_car_in_air_proper 126@(48@,2i)
goto_if_false @DESERT6_5393
177@(48@,2i) = 0
150@(48@,2i) = 0
goto @DESERT6_5423

:DESERT6_5393
if 
  is_int_lvar_greater_than_int_lvar 46@ > 150@(48@,2i)
goto_if_false @DESERT6_5423
73@ = 1

:DESERT6_5423
goto @DESERT6_5485

:DESERT6_5430
if 
  not is_car_in_air_proper 126@(48@,2i)
goto_if_false @DESERT6_5485
177@(48@,2i) = 1
set_lvar_int_to_lvar_int 150@(48@,2i) = 46@
150@(48@,2i) += 5000

:DESERT6_5485
if 
  73@ == 1
goto_if_false @DESERT6_5577
mark_car_as_no_longer_needed 126@(48@,2i)
mark_char_as_no_longer_needed 123@(48@,2i)
remove_blip 134@(48@,2i)
184@(48@,2i) = 0
if 
  165@ == 1
goto_if_false @DESERT6_5575
set_lvar_int_to_lvar_int 140@ = 46@
140@ += 2000

:DESERT6_5575
return 

:DESERT6_5577
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5187
return 

:DESERT6_5600
57@, 58@, 59@ = get_char_coordinates $scplayer
48@ = 0

:DESERT6_5621
if 
  184@(48@,2i) == 0
goto_if_false @DESERT6_6008
50@ = generate_random_int_in_range 150 {max} 200
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = generate_random_int_in_range 0 {max} 2
if 
  51@ == 0
goto_if_false @DESERT6_5704
add_float_lvar_to_float_lvar 57@ += 70@
goto @DESERT6_5712

:DESERT6_5704
sub_float_lvar_from_float_lvar 57@ -= 70@

:DESERT6_5712
50@ = generate_random_int_in_range 150 {max} 200
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = generate_random_int_in_range 0 {max} 2
if 
  51@ == 0
goto_if_false @DESERT6_5773
add_float_lvar_to_float_lvar 58@ += 70@
goto @DESERT6_5781

:DESERT6_5773
sub_float_lvar_from_float_lvar 58@ -= 70@

:DESERT6_5781
70@ = get_ground_z_for_3d_coord 57@ {y} 58@ {z} 59@
71@ = get_water_height_at_coords 57@ {y} 58@ {waves} False
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_5835
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_5835
set_lvar_float_to_lvar_float 59@ = 70@
59@ += 200.0
create_car 520 {x} 57@ {y} 58@ {z} 59@ {var_handle} 126@(48@,2i)
plane_starts_in_air 126@(48@,2i)
plane_attack_player 126@(48@,2i) {handle} $player1 {radius} 10.0
add_blip_for_car 126@(48@,2i) {var_handle} 134@(48@,2i)
change_blip_display 134@(48@,2i) {display} BlipDisplay.BlipOnly
create_char_inside_car 126@(48@,2i) {pedType} PedType.CivMale {modelId} 43 {var_handle} 123@(48@,2i)
set_char_decision_maker 123@(48@,2i) {handleOrTemplate} 136@
177@(48@,2i) = 0
150@(48@,2i) = 0
184@(48@,2i) = 1
166@ = 0
182@ = 1
return 

:DESERT6_6008
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5621
return 

:DESERT6_6031
if 
  165@ == 1
goto_if_false @DESERT6_6051
return 

:DESERT6_6051
if 
  is_int_lvar_greater_than_int_lvar 141@ > 46@
goto_if_false @DESERT6_6072
return 

:DESERT6_6072
if 
  182@ == 0
goto_if_false @DESERT6_6092
return 

:DESERT6_6092
60@, 61@, 62@ = get_char_coordinates $scplayer
48@ = 0

:DESERT6_6113
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_6235
57@, 58@, 59@ = get_car_coordinates 126@(48@,2i)
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 250.0
goto_if_false @DESERT6_6235
remove_char_elegantly 123@(48@,2i)
delete_car 126@(48@,2i)
remove_blip 134@(48@,2i)
184@(48@,2i) = 0

:DESERT6_6235
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_6113
return 

:DESERT6_6258
if 
  is_car_dead 125@
goto_if_false @DESERT6_6276
return 

:DESERT6_6276
128@ = create_object #AMMO_CAPSULE {x} 370.5 {y} 2498.75 {z} 25.5
129@ = create_object #AMMO_CAPSULE {x} 371.25 {y} 2498.3501 {z} 25.3
130@ = create_object #AMMO_CAPSULE {x} 371.25 {y} 2499.1499 {z} 25.7
131@ = create_object #AMMO_CAPSULE {x} 372.0 {y} 2498.3501 {z} 25.4
attach_object_to_car 128@ {handle} 125@ {xOffset} -0.75 {yOffset} 0.3 {zOffset} -1.05 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 129@ {handle} 125@ {xOffset} -0.25 {yOffset} 0.3 {zOffset} -1.1 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 130@ {handle} 125@ {xOffset} 0.25 {yOffset} 0.3 {zOffset} -1.1 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 131@ {handle} 125@ {xOffset} 0.75 {yOffset} 0.3 {zOffset} -1.05 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
48@ = 0

:DESERT6_6527
set_object_collision 128@(48@,4i) {state} False
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6527
return 

:DESERT6_6561
172@ = 0
48@ = 0

:DESERT6_6575
set_lvar_int_to_lvar_int 146@(48@,4i) = 46@
173@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6575
return 

:DESERT6_6621
48@ = 0

:DESERT6_6628
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 146@(48@,4i)
goto_if_false @DESERT6_6733
detach_object 128@(48@,4i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} True
set_object_dynamic 128@(48@,4i) {state} True
report_mission_audio_event_at_object 128@(48@,4i) {soundId} ScriptSound.SoundBonnetDent
173@(48@,4i) = 1

:DESERT6_6733
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6628
48@ = 0

:DESERT6_6761
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6785
return 

:DESERT6_6785
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6761
172@ = 1
return 

:DESERT6_6815
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @DESERT6_6899 {caseNum1} 0 {caseLabel1} @DESERT6_6878 {caseNum2} 1 {caseLabel2} @DESERT6_6878 {caseNum3} 2 {caseLabel3} @DESERT6_6885 {caseNum4} 3 {caseLabel4} @DESERT6_6878 {caseNum5} 4 {caseLabel5} @DESERT6_6878 {caseNum6} -1 {caseLabel6} @DESERT6_6935 {caseNum7} -1 {caseLabel7} @DESERT6_6935

:DESERT6_6878
goto @DESERT6_6935

:DESERT6_6885
gosub @DESERT6_7075
goto @DESERT6_6935

:DESERT6_6899
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:DESERT6_6935
return 

:DESERT6_6937
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_6958
return 

:DESERT6_6958
50@ = 1
87@(50@,3i) = 1
load_mission_audio 50@ {audioId} 90@(84@,11i)
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_7016
return 

:DESERT6_7016
50@ += 1
if 
  50@ > 2
goto_if_false @DESERT6_7043
return 

:DESERT6_7043
87@(50@,3i) = 1
load_mission_audio 50@ {audioId} 90@(84@,11i)
84@ += 1
return 

:DESERT6_7075
gosub @DESERT6_8047
if 
  79@ == 3
goto_if_false @DESERT6_7109
gosub @DESERT6_7325
return 

:DESERT6_7109
switch_start 87@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_7292 {caseNum1} 0 {caseLabel1} @DESERT6_7176 {caseNum2} 1 {caseLabel2} @DESERT6_7185 {caseNum3} 2 {caseLabel3} @DESERT6_7221 {caseNum4} 3 {caseLabel4} @DESERT6_7260 {caseNum5} -1 {caseLabel5} @DESERT6_7323 {caseNum6} -1 {caseLabel6} @DESERT6_7323 {caseNum7} -1 {caseLabel7} @DESERT6_7323

:DESERT6_7176
return 
goto @DESERT6_7323

:DESERT6_7185
if 
  not has_mission_audio_loaded 78@
goto_if_false @DESERT6_7203
return 

:DESERT6_7203
87@(78@,3i) = 2
goto @DESERT6_7323

:DESERT6_7221
play_mission_audio 78@
print_now 101@(82@,11s) {time} 10000 {flag} 1
87@(78@,3i) = 3
return 
goto @DESERT6_7323

:DESERT6_7260
if 
  not has_mission_audio_finished 78@
goto_if_false @DESERT6_7278
return 

:DESERT6_7278
gosub @DESERT6_7378
goto @DESERT6_7323

:DESERT6_7292
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:DESERT6_7323
return 

:DESERT6_7325
50@ = 1

:DESERT6_7332
if 
  2 >= 50@
goto_if_false @DESERT6_7369
clear_mission_audio 50@
50@ += 1
goto @DESERT6_7332

:DESERT6_7369
gosub @DESERT6_7507
return 

:DESERT6_7378
87@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @DESERT6_7424
gosub @DESERT6_7507
return 

:DESERT6_7424
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @DESERT6_7473
87@(78@,3i) = 1
load_mission_audio 78@ {audioId} 90@(84@,11i)
84@ += 1

:DESERT6_7473
78@ += 1
if 
  78@ > 2
goto_if_false @DESERT6_7505
78@ = 1

:DESERT6_7505
return 

:DESERT6_7507
set_local_var_bit_lvar 85@ {var_bitIndex} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7571
if 
  2 > 50@
goto_if_false @DESERT6_7614
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7571

:DESERT6_7614
clear_small_prints 
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:DESERT6_7633
if 
  79@ <> 0
goto_if_false @DESERT6_7658
gosub @DESERT6_7857

:DESERT6_7658
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @DESERT6_7679
return 

:DESERT6_7679
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7736
if 
  2 > 50@
goto_if_false @DESERT6_7779
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7736

:DESERT6_7779
gosub @DESERT6_7886
return 

:DESERT6_7788
if 
  79@ <> 1
goto_if_false @DESERT6_7848
write_debug "A_CONVERSATION_HAS_NOT_BEEN_PREPARED"
return 

:DESERT6_7848
79@ = 2
return 

:DESERT6_7857
if 
  79@ == 0
goto_if_false @DESERT6_7877
return 

:DESERT6_7877
gosub @DESERT6_7325
return 

:DESERT6_7886
switch_start 80@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_8005 {caseNum1} 1 {caseLabel1} @DESERT6_7949 {caseNum2} 2 {caseLabel2} @DESERT6_7963 {caseNum3} 3 {caseLabel3} @DESERT6_7977 {caseNum4} 4 {caseLabel4} @DESERT6_7991 {caseNum5} -1 {caseLabel5} @DESERT6_8031 {caseNum6} -1 {caseLabel6} @DESERT6_8031 {caseNum7} -1 {caseLabel7} @DESERT6_8031

:DESERT6_7949
gosub @DESERT6_8127
goto @DESERT6_8031

:DESERT6_7963
gosub @DESERT6_8600
goto @DESERT6_8031

:DESERT6_7977
gosub @DESERT6_8797
goto @DESERT6_8031

:DESERT6_7991
gosub @DESERT6_9011
goto @DESERT6_8031

:DESERT6_8005
write_debug "UNKNOWN_CONVERSATION"
return 

:DESERT6_8031
gosub @DESERT6_6937
79@ = 1
return 

:DESERT6_8047
if 
  is_char_dead $scplayer
goto_if_false @DESERT6_8072
79@ = 3
return 

:DESERT6_8072
if 
  is_car_dead 125@
goto_if_false @DESERT6_8097
79@ = 3
return 

:DESERT6_8097
if 
  not is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_8125
79@ = 3
return 

:DESERT6_8125
return 

:DESERT6_8127
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6200
set_lvar_text_label 101@(50@,11s) = 'DES6_AA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6201
set_lvar_text_label 101@(50@,11s) = 'DES6_AB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6202
set_lvar_text_label 101@(50@,11s) = 'DES6_AD'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6216
set_lvar_text_label 101@(50@,11s) = 'DES6_AE'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6203
set_lvar_text_label 101@(50@,11s) = 'DES6_AF'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6204
set_lvar_text_label 101@(50@,11s) = 'DES6_AG'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6217
set_lvar_text_label 101@(50@,11s) = 'DES6_AH'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6205
set_lvar_text_label 101@(50@,11s) = 'DES6_AJ'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6206
set_lvar_text_label 101@(50@,11s) = 'DES6_AK'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6218
set_lvar_text_label 101@(50@,11s) = 'DES6_AM'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6207
set_lvar_text_label 101@(50@,11s) = 'DES6_AN'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_8590
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_8590
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_8600
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DESERT6_8788 {caseNum1} 0 {caseLabel1} @DESERT6_8672 {caseNum2} 1 {caseLabel2} @DESERT6_8701 {caseNum3} 2 {caseLabel3} @DESERT6_8730 {caseNum4} 3 {caseLabel4} @DESERT6_8759 {caseNum5} -1 {caseLabel5} @DESERT6_8788 {caseNum6} -1 {caseLabel6} @DESERT6_8788 {caseNum7} -1 {caseLabel7} @DESERT6_8788

:DESERT6_8672
set_lvar_int_to_constant 90@ = 6208
set_lvar_text_label 101@s = 'DES6_BA'
goto @DESERT6_8788

:DESERT6_8701
set_lvar_int_to_constant 90@ = 6209
set_lvar_text_label 101@s = 'DES6_BB'
goto @DESERT6_8788

:DESERT6_8730
set_lvar_int_to_constant 90@ = 6210
set_lvar_text_label 101@s = 'DES6_BC'
goto @DESERT6_8788

:DESERT6_8759
set_lvar_int_to_constant 90@ = 6211
set_lvar_text_label 101@s = 'DES6_BD'
goto @DESERT6_8788

:DESERT6_8788
83@ = 1
return 

:DESERT6_8797
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6212
set_lvar_text_label 101@(50@,11s) = 'DES6_CA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6219
set_lvar_text_label 101@(50@,11s) = 'DES6_CB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6213
set_lvar_text_label 101@(50@,11s) = 'DES6_CC'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6214
set_lvar_text_label 101@(50@,11s) = 'DES6_CD'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_9001
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_9001
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_9011
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6215
set_lvar_text_label 101@(50@,11s) = 'DES6_DA'
83@ = 1
return 

:DESERT6_9057
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DESERT6_9106
47@ += 1
if 
  47@ > 2
goto_if_false @DESERT6_9104
47@ = 0

:DESERT6_9104
clear_all_view_variables 

:DESERT6_9106
if 
  47@ == 1
goto_if_false @DESERT6_9280
set_var_int_to_lvar_int $g_Desert6_timerKM = 34@
set_var_int_to_lvar_int $Desert6_view_debug = 35@
set_var_int_to_lvar_int $7501 = 46@
set_var_int_to_lvar_int $7502 = 80@
set_var_int_to_lvar_int $7503 = 85@
$7504 = 0
$7505 = 0
$7506 = 0
view_integer_variable $g_Desert6_timerKM {_p2} "M_STAGE"
view_integer_variable $Desert6_view_debug {_p2} "M_GOALS"
view_integer_variable $7501 {_p2} "M_MISSION_TIMER"
view_integer_variable $7502 {_p2} "CONVERSATION"
view_integer_variable $7503 {_p2} "CONVERSATIONSPLAYED"

:DESERT6_9280
if 
  47@ == 2
goto_if_false @DESERT6_9298

:DESERT6_9298
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DESERT6_9320
38@ = 1

:DESERT6_9320
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DESERT6_9408
if 
  39@ == 0
goto_if_false @DESERT6_9383
39@ = 1
write_debug "LEVEL_PAUSED"
goto @DESERT6_9408

:DESERT6_9383
39@ = 0
write_debug "LEVEL_UNPAUSED"

:DESERT6_9408
return 

:DESERT6_9410
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @DESERT6_9427
return 

:DESERT6_9427
if 
  34@ == 2
goto_if_false @DESERT6_9548
if 
  2 > 35@
goto_if_false @DESERT6_9531
clear_area -2246.7061 {y} -2539.1001 {z} 30.7512 {radius} 25.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2246.7061 {y} -2539.1001 {z} 30.7512
set_char_heading $scplayer {heading} 144.5365
35@ = 2
goto @DESERT6_9548

:DESERT6_9531
remove_blip 132@
delete_checkpoint 152@
35@ = 99

:DESERT6_9548
if 
  34@ == 3
goto_if_false @DESERT6_9620
clear_area 384.4035 {y} 2449.3501 {z} 15.4921 {radius} 25.0 {clearParticles} True
set_char_coordinates $scplayer {x} 384.4035 {y} 2449.3501 {z} 15.4921
set_char_heading $scplayer {heading} 7.1386

:DESERT6_9620
return 

:DESERT6_9622
41@ += 1
if 
  41@ > 9
goto_if_false @DESERT6_9654
41@ = 0

:DESERT6_9654
return 

:DESERT6_9656
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:DESERT6_9695
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:DESERT6_9725
if 
  not is_char_dead $scplayer
goto_if_false @DESERT6_9748
set_player_control $player1 {state} False

:DESERT6_9748
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DESERT6_9763
if 
  get_fading_status 
goto_if_false @DESERT6_9787
wait 0
goto @DESERT6_9763

:DESERT6_9787
clear_area 335.0 {y} 2529.0 {z} 16.0 {radius} 20.0 {clearParticles} True
load_cutscene 'DESERT6'

:DESERT6_9822
if 
  not has_cutscene_loaded 
goto_if_false @DESERT6_9846
wait 0
goto @DESERT6_9822

:DESERT6_9846
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
force_weather WeatherType.ExtraSunnyDesert

:DESERT6_9867
if 
  not has_cutscene_finished 
goto_if_false @DESERT6_9891
wait 0
goto @DESERT6_9867

:DESERT6_9891
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:DESERT6_9905
if 
  get_fading_status 
goto_if_false @DESERT6_9929
wait 0
goto @DESERT6_9905

:DESERT6_9929
clear_cutscene 
restore_camera_jumpcut 
switch_widescreen False
return 

:DESERT6_9939
if 
  not is_player_playing $player1
goto_if_false @DESERT6_9966
wait 0
goto @DESERT6_9939

:DESERT6_9966
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
clear_area 368.1973 {y} 2519.4209 {z} 15.5961 {radius} 300.0 {clearParticles} False
gosub @DESERT6_10197
gosub @DESERT6_10305
gosub @DESERT6_4103
133@ = add_blip_for_car 125@
set_blip_as_friendly 133@ {state} True
clear_area 331.9908 {y} 2533.7671 {z} 15.8044 {radius} 0.5 {clearParticles} False
load_scene 331.9908 {y} 2533.7671 {z} 15.8044
set_char_coordinates $scplayer {x} 331.9908 {y} 2533.7671 {z} 15.8044
set_char_heading $scplayer {heading} 48.4743
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnyDesert
switch_ambient_planes False
wait 500
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $scplayer
goto_if_false @DESERT6_10171
set_player_control $player1 {state} True

:DESERT6_10171
set_respawn_point_for_duration_of_mission 322.8019 {y} 2530.124 {z} 15.8089
gosub @DESERT6_9695
return 

:DESERT6_10197
request_model 476
request_model 520
request_model 43
request_model #AMMO_CAPSULE
load_all_models_now 

:DESERT6_10218
if or
  not has_model_loaded 476
  not has_model_loaded 520
goto_if_false @DESERT6_10250
wait 0
goto @DESERT6_10218

:DESERT6_10250
if 
  not has_model_loaded 43
goto_if_false @DESERT6_10276
wait 0
goto @DESERT6_10250

:DESERT6_10276
if 
  not has_model_loaded #AMMO_CAPSULE
goto_if_false @DESERT6_10303
wait 0
goto @DESERT6_10276

:DESERT6_10303
return 

:DESERT6_10305
return 

:DESERT6_10307
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DESERT6_10457 {caseNum1} 1 {caseLabel1} @DESERT6_10388 {caseNum2} 2 {caseLabel2} @DESERT6_10411 {caseNum3} 3 {caseLabel3} @DESERT6_10434 {caseNum4} -1 {caseLabel4} @DESERT6_10457 {caseNum5} -1 {caseLabel5} @DESERT6_10457 {caseNum6} -1 {caseLabel6} @DESERT6_10457 {caseNum7} -1 {caseLabel7} @DESERT6_10457

:DESERT6_10388
print_now 'DES6_99' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10411
print_now 'DES6_98' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10434
print_now 'DES6_97' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10457
return 

:DESERT6_10459
print_with_number_big 'M_PASS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESERT6'
player_made_progress 1
$flag_desert_mission_counter += 1
return 

:DESERT6_10519
mark_car_as_no_longer_needed 125@
48@ = 0

:DESERT6_10531
mark_car_as_no_longer_needed 126@(48@,2i)
mark_char_as_no_longer_needed 123@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10531
48@ = 0

:DESERT6_10577
delete_object 128@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_10577
remove_blip 133@
remove_blip 132@
48@ = 0

:DESERT6_10624
remove_blip 134@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10624
clear_onscreen_counter $des3_heat
clear_onscreen_timer $g_Desert6_failureKM
delete_checkpoint 152@
clear_mission_audio MissionAudioSlot.Slot3
mark_model_as_no_longer_needed 476
mark_model_as_no_longer_needed 520
mark_model_as_no_longer_needed 43
mark_model_as_no_longer_needed #AMMO_CAPSULE
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_ambient_planes True
release_weather 
set_disable_military_zones False
$timer_mobile_start = get_game_timer 
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @DESERT6_10753
switch_car_generator $d5_bronze_generator {amount} 101

:DESERT6_10753
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @DESERT6_10778
switch_car_generator $d5_silver_generator {amount} 101

:DESERT6_10778
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @DESERT6_10803
switch_car_generator $d5_gold_generator {amount} 101

:DESERT6_10803
$onmission = 0
mission_has_finished 
return 

//-------------Mission 80---------------
// Originally: Stowaway

:DESERT9
script_name 'DESERT9'
gosub @DESERT9_49

:DESERT9_18
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT9_38
gosub @DESERT9_21846

:DESERT9_38
gosub @DESERT9_21954

:DESERT9_45
mission_has_finished 
terminate_this_script 

:DESERT9_49
register_mission_given 
load_mission_text 'DSERT9'
set_wanted_multiplier 0.0
set_script_limit_to_gang_size 0
set_char_area_visible $scplayer {areaId} 0
$onmission = 1
switch_entry_exit 'DESHOUS' {state} False
150@ = 100.0
if 
  150@ == 0.0
goto_if_false @DESERT9_372
91@ = create_object #BARREL1 {x} 0.0 {y} 0.0 {z} 0.0
225@ = create_object #BARREL1 {x} 0.0 {y} 0.0 {z} 0.0
56@ = create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0
35@ = create_car 461 {x} 426.6481 {y} 2535.7129 {z} 15.5538
set_car_heading 35@ {heading} 107.0
152@ = add_blip_for_coord 74@ {y} 75@ {z} 76@
$para_max_Vz = create_pickup 371 {pickupType} PickupType.Once {x} 1797.6021 {y} -1308.881 {z} 133.8128
153@ = add_blip_for_car 35@
49@ = create_object #CR_GUNCRATE {x} 365.0146 {y} 2500.676 {z} 15.492
50@ = create_object #CR_CRATESTACK {x} 365.9573 {y} 2502.7629 {z} 15.4921
51@ = create_object #CR_CRATESTACK {x} 365.5524 {y} 2503.46 {z} 15.492
52@ = create_object #CR_CRATESTACK {x} 364.5623 {y} 2503.406 {z} 15.4921

:DESERT9_372
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT9_398
goto @DESERT9_21869

:DESERT9_398
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @DESERT9_468

:DESERT9_413
if 
  not has_model_loaded 371
goto_if_false @DESERT9_445
request_model 371
wait 0
goto @DESERT9_413

:DESERT9_445
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
68@ = 0
71@ = 0

:DESERT9_468
switch_start 68@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @DESERT9_764 {caseNum1} 0 {caseLabel1} @DESERT9_596 {caseNum2} 2 {caseLabel2} @DESERT9_652 {caseNum3} 3 {caseLabel3} @DESERT9_666 {caseNum4} 4 {caseLabel4} @DESERT9_680 {caseNum5} 5 {caseLabel5} @DESERT9_694 {caseNum6} 6 {caseLabel6} @DESERT9_708 {caseNum7} 7 {caseLabel7} @DESERT9_722
switch_continued 8 {caseLabel1} @DESERT9_736 {caseNum2} 9 {caseLabel2} @DESERT9_750 {caseNum3} 20 {caseLabel3} @DESERT9_610 {caseNum4} 21 {caseLabel4} @DESERT9_624 {caseNum5} 22 {caseLabel5} @DESERT9_638 {caseNum6} -1 {caseLabel6} @DESERT9_764 {caseNum7} -1 {caseLabel7} @DESERT9_764 {caseNum8} -1 {caseLabel8} @DESERT9_764 {caseNum9} -1 {caseLabel9} @DESERT9_764

:DESERT9_596
gosub @DESERT9_864
goto @DESERT9_764

:DESERT9_610
gosub @DESERT9_889
goto @DESERT9_764

:DESERT9_624
gosub @DESERT9_4350
goto @DESERT9_764

:DESERT9_638
gosub @DESERT9_4519
goto @DESERT9_764

:DESERT9_652
gosub @DESERT9_6284
goto @DESERT9_764

:DESERT9_666
gosub @DESERT9_7444
goto @DESERT9_764

:DESERT9_680
gosub @DESERT9_11098
goto @DESERT9_764

:DESERT9_694
gosub @DESERT9_12941
goto @DESERT9_764

:DESERT9_708
gosub @DESERT9_13168
goto @DESERT9_764

:DESERT9_722
gosub @DESERT9_13222
goto @DESERT9_764

:DESERT9_736
gosub @DESERT9_13784
goto @DESERT9_764

:DESERT9_750
gosub @DESERT9_14291
goto @DESERT9_764

:DESERT9_764
gosub @DESERT9_21693
gosub @DESERT9_792
gosub @DESERT9_20462
goto @DESERT9_372

:DESERT9_792
switch_start 68@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DESERT9_862 {caseNum1} 2 {caseLabel1} @DESERT9_855 {caseNum2} -1 {caseLabel2} @DESERT9_862 {caseNum3} -1 {caseLabel3} @DESERT9_862 {caseNum4} -1 {caseLabel4} @DESERT9_862 {caseNum5} -1 {caseLabel5} @DESERT9_862 {caseNum6} -1 {caseLabel6} @DESERT9_862 {caseNum7} -1 {caseLabel7} @DESERT9_862

:DESERT9_855
goto @DESERT9_862

:DESERT9_862
return 

:DESERT9_864
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
68@ = 20
return 

:DESERT9_889
set_fading_colour 0 {g} 0 {b} 0
if 
  71@ == 0
goto_if_false @DESERT9_936
set_char_area_visible $scplayer {areaId} 0
do_fade 1000 {direction} Fade.Out
71@ = 1

:DESERT9_936
if 
  71@ == 1
goto_if_false @DESERT9_1110
if 
  not get_fading_status 
goto_if_false @DESERT9_1110
clear_char_tasks_immediately $scplayer
clear_area_of_cars -120.5297 {leftBottomY} 2593.665 {leftBottomZ} 69.1939 {rightTopX} 502.5016 {rightTopY} 2365.418 {rightTopZ} -1.2447
clear_area_of_chars -120.5297 {leftBottomY} 2593.665 {leftBottomZ} 69.1939 {rightTopX} 502.5016 {rightTopY} 2365.418 {rightTopZ} -1.2447
set_char_coordinates_no_offset $scplayer {x} 222.7755 {y} 2508.9719 {z} 15.5214
request_model 592
request_model 422
request_model 165
request_model 352
request_model 166
request_car_recording 450
request_car_recording 168
request_car_recording 452
request_car_recording 453
load_all_models_now 
71@ = 1

:DESERT9_1110
if 
  71@ == 1
goto_if_false @DESERT9_1607
if and
  has_model_loaded 592
  has_model_loaded 422
  has_model_loaded 165
  has_model_loaded 352
  has_model_loaded 166
goto_if_false @DESERT9_1607
if and
  has_car_recording_been_loaded 450
  has_car_recording_been_loaded 168
  has_car_recording_been_loaded 452
  has_car_recording_been_loaded 453
goto_if_false @DESERT9_1607
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
36@ = create_car 422 {x} -22.1321 {y} 2504.9419 {z} 15.2566
37@ = create_car 422 {x} -15.9009 {y} 2507.28 {z} 15.2543
38@ = create_car 422 {x} -17.3227 {y} 2501.011 {z} 15.252
change_car_colour 36@ {color1} 0 {color2} 0
change_car_colour 37@ {color1} 0 {color2} 0
change_car_colour 38@ {color1} 0 {color2} 0
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
40@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 166
41@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 165
42@ = create_char_inside_car 38@ {pedType} PedType.Mission1 {modelId} 165
43@ = create_char_as_passenger 36@ {pedType} PedType.Mission1 {modelId} 165 {seat} SeatId.BikeRear
44@ = create_char_as_passenger 37@ {pedType} PedType.Mission1 {modelId} 166 {seat} SeatId.BikeRear
45@ = create_char PedType.Mission1 {modelId} 165 {x} -28.1475 {y} 2492.8069 {z} 15.2513
46@ = create_char PedType.Mission1 {modelId} 166 {x} -28.1475 {y} 2493.8069 {z} 15.2513
47@ = create_char PedType.Mission1 {modelId} 166 {x} -28.1475 {y} 2494.8069 {z} 15.2513
attach_char_to_car 45@ {vehicle} 36@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
attach_char_to_car 46@ {vehicle} 37@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
attach_char_to_car 47@ {vehicle} 37@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500
71@ = 2

:DESERT9_1607
if 
  71@ == 2
goto_if_false @DESERT9_1914
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_1914
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @DESERT9_1914
if and
  has_car_recording_been_loaded 450
  has_car_recording_been_loaded 168
  has_car_recording_been_loaded 452
  has_car_recording_been_loaded 453
goto_if_false @DESERT9_1894
start_playback_recorded_car 36@ {path} 450
start_playback_recorded_car 37@ {path} 453
start_playback_recorded_car 38@ {path} 452
start_playback_recorded_car 34@ {path} 168
set_car_engine_on 34@ {state} True
set_playback_speed 36@ {speed} 0.8
set_playback_speed 37@ {speed} 0.9
set_playback_speed 38@ {speed} 0.8
set_fixed_camera_position -123.0824 {y} 2533.0569 {z} 21.679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
load_scene_in_direction -123.0824 {y} 2533.0569 {z} 21.679 {heading} 100.0
request_collision -123.0824 {y} 2533.0569
do_fade 600 {direction} Fade.In
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000
set_lvar_int_to_lvar_int 155@ = TIMERA
155@ += 1000
71@ = 3
goto @DESERT9_1914

:DESERT9_1894
request_car_recording 450
request_car_recording 168
request_car_recording 452
request_car_recording 453

:DESERT9_1914
if 
  71@ == 3
goto_if_false @DESERT9_2227
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @DESERT9_2227
148@ = 0.0
149@ = 0.0
150@ = 0.0
$x, $y, $z = get_car_coordinates 36@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = get_car_coordinates 37@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = get_car_coordinates 38@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
148@ /= 3.0
149@ /= 3.0
150@ /= 3.0
point_camera_at_point 148@ {y} 149@ {z} 150@ {switchStyle} SwitchType.JumpCut
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_2176
71@ = 4

:DESERT9_2176
if 
  155@ <> 0
goto_if_false @DESERT9_2227
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 155@
goto_if_false @DESERT9_2227
626@ = 1
155@ = 0

:DESERT9_2227
if 
  71@ == 4
goto_if_false @DESERT9_2700
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_2534
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_2534
stop_playback_recorded_car 36@
stop_playback_recorded_car 37@
stop_playback_recorded_car 38@
set_car_coordinates 36@ {x} 90.1321 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 83.9009 {y} 2510.28 {z} 15.4766
set_car_coordinates 38@ {x} 85.3227 {y} 2497.011 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 400.2219 {y} 2504.9419 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 400.2219 {y} 2510.28 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 400.2219 {y} 2497.011 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
set_car_forward_speed 36@ {forwardSpeed} 12.0
set_car_forward_speed 37@ {forwardSpeed} 12.0
set_car_forward_speed 38@ {forwardSpeed} 12.0

:DESERT9_2534
set_playback_speed 34@ {speed} 0.7
set_char_heading $scplayer {heading} 270.0
66@ = open_sequence_task 
task_play_anim -1 {animationName} "FLEE_LKAROUND_01" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 66@
perform_sequence_task $scplayer {sequence} 66@
clear_sequence_task 66@
626@ = 2
set_fixed_camera_position 224.1743 {y} 2508.426 {z} 16.7184 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 223.194 {y} 2508.5349 {z} 16.8827 {switchStyle} SwitchType.JumpCut
71@ = 5
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1700

:DESERT9_2700
if 
  71@ == 5
goto_if_false @DESERT9_3194
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3194
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_3011
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_3011
set_car_coordinates 36@ {x} 90.1321 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 83.9009 {y} 2510.28 {z} 15.4766
set_car_coordinates 38@ {x} 85.3227 {y} 2497.011 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 400.2219 {y} 2504.9419 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 400.2219 {y} 2510.28 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 400.2219 {y} 2497.011 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
set_car_forward_speed 36@ {forwardSpeed} 30.0
set_car_forward_speed 37@ {forwardSpeed} 30.0
set_car_forward_speed 38@ {forwardSpeed} 30.0

:DESERT9_3011
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3032
stop_playback_recorded_car 34@

:DESERT9_3032
set_fixed_camera_position 125.3001 {y} 2504.3291 {z} 15.5565 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 124.312 {y} 2504.3611 {z} 15.7067 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2700
71@ = 6
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3134
set_car_engine_on 34@ {state} True
set_heli_blades_full_speed 34@

:DESERT9_3134
set_char_coordinates $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617
set_char_heading $scplayer {heading} 136.0
74@ = 25.6646
75@ = 2504.646
76@ = 29.1834

:DESERT9_3194
if 
  71@ == 6
goto_if_false @DESERT9_3485
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3326
set_lvar_int_to_lvar_int 115@ = TIMERA
sub_int_lvar_from_int_lvar 115@ -= 86@
115@ += 2700
cset_lvar_float_to_lvar_int 156@ =# 115@
156@ /= 20.0
set_var_float_to_lvar_float $x = 74@
add_float_lvar_to_float_var $x += 156@
156@ /= 14.0
set_var_float_to_lvar_float $z = 76@
sub_float_lvar_from_float_var $z -= 156@
set_car_coordinates_no_offset 34@ {x} $x {y} 75@ {z} $z

:DESERT9_3326
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3485
set_char_coordinates $scplayer {x} 403.0466 {y} 2522.1899 {z} 15.4843
task_go_straight_to_coord $scplayer {x} 415.1068 {y} 2528.624 {z} 15.5375 {speed} MoveState.Run {time} -2
load_scene_in_direction 404.7372 {y} 2524.8569 {z} 15.5671 {heading} 300.0
set_fixed_camera_position 404.7372 {y} 2524.8569 {z} 15.5671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 405.6275 {y} 2525.301 {z} 15.6661 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2500
71@ = 8

:DESERT9_3485
if 
  71@ == 7
goto_if_false @DESERT9_3881
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3881
71@ = 8
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3881
set_car_coordinates 34@ {x} 380.6384 {y} 2503.927 {z} 15.4884
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_3779
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_3779
set_car_coordinates 36@ {x} 331.2219 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 338.2219 {y} 2507.9419 {z} 15.4766
set_car_coordinates 38@ {x} 325.2219 {y} 2501.9419 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 430.2219 {y} 2504.9419 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 430.2219 {y} 2507.28 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 430.2219 {y} 2501.011 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DESERT9_3779
set_car_heading 34@ {heading} 270.0
set_car_forward_speed 34@ {forwardSpeed} 7.0
set_heli_blades_full_speed 34@
set_fixed_camera_position 413.1315 {y} 2533.2971 {z} 15.8551 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 412.508 {y} 2532.519 {z} 15.9255 {switchStyle} SwitchType.JumpCut
81@ = 0.0
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_3881
if 
  71@ == 8
goto_if_false @DESERT9_3953
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3953
do_fade 800 {direction} Fade.Out
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3953
stop_playback_recorded_car 34@
71@ = 9

:DESERT9_3953
if 
  71@ == 9
goto_if_false @DESERT9_4238
if 
  not get_fading_status 
goto_if_false @DESERT9_4238
if 
  not is_car_dead 34@
goto_if_false @DESERT9_4005
stop_playback_recorded_car 34@

:DESERT9_4005
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_4046
stop_playback_recorded_car 36@
stop_playback_recorded_car 37@
stop_playback_recorded_car 38@

:DESERT9_4046
mark_model_as_no_longer_needed 592
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 166
remove_car_recording 450
remove_car_recording 168
remove_car_recording 452
remove_car_recording 453
delete_car 36@
delete_car 37@
delete_car 38@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
if 
  not is_car_dead 34@
goto_if_false @DESERT9_4192
set_car_coordinates 34@ {x} 394.6384 {y} 2497.927 {z} 15.4884
set_car_heading 34@ {heading} 90.0

:DESERT9_4192
71@ = 0
if 
  157@ > 0
goto_if_false @DESERT9_4231
68@ = 22
goto @DESERT9_4238

:DESERT9_4231
68@ = 21

:DESERT9_4238
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_4296
if 
  not get_fading_status 
goto_if_false @DESERT9_4296
if 
  157@ == 0
goto_if_false @DESERT9_4296
do_fade 600 {direction} Fade.Out
157@ = 1

:DESERT9_4296
if 
  157@ == 1
goto_if_false @DESERT9_4348
if 
  not get_fading_status 
goto_if_false @DESERT9_4348
629@ = 5
157@ = 2
71@ = 9

:DESERT9_4348
return 

:DESERT9_4350
load_cutscene 'DESERT9'

:DESERT9_4361
if 
  not has_cutscene_loaded 
goto_if_false @DESERT9_4385
wait 0
goto @DESERT9_4361

:DESERT9_4385
start_cutscene 
do_fade 1000 {direction} Fade.In

:DESERT9_4394
if 
  not has_cutscene_finished 
goto_if_false @DESERT9_4418
wait 0
goto @DESERT9_4394

:DESERT9_4418
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_4456
if 
  157@ == 0
goto_if_false @DESERT9_4456
157@ = 2

:DESERT9_4456
set_player_control $player1 {state} False
switch_widescreen True
do_fade 0 {direction} Fade.Out

:DESERT9_4473
if 
  get_fading_status 
goto_if_false @DESERT9_4497
wait 0
goto @DESERT9_4473

:DESERT9_4497
clear_cutscene 
switch_widescreen True
set_player_control $player1 {state} False
68@ = 22
return 

:DESERT9_4519
if 
  71@ == 0
goto_if_false @DESERT9_4626
set_char_area_visible $scplayer {areaId} 0
request_model 592
request_model 422
request_model 165
request_model 352
request_model 166
request_model 461
request_model 363
request_model 364
request_animation "AIRPORT"
request_animation "CARRY"
request_car_recording 149
request_car_recording 135
request_car_recording 134
71@ = 1

:DESERT9_4626
if 
  71@ == 1
goto_if_false @DESERT9_4743
if and
  has_model_loaded 422
  has_model_loaded 165
  has_model_loaded 352
  has_model_loaded 166
  has_model_loaded 461
  has_car_recording_been_loaded 134
goto_if_false @DESERT9_4743
if and
  has_model_loaded 363
  has_model_loaded 364
  has_animation_loaded "AIRPORT"
  has_animation_loaded "CARRY"
  has_car_recording_been_loaded 149
  has_car_recording_been_loaded 135
goto_if_false @DESERT9_4743
71@ = 2

:DESERT9_4743
if 
  71@ == 2
goto_if_false @DESERT9_5554
36@ = create_car 422 {x} 366.764 {y} 2512.655 {z} 15.5677
37@ = create_car 422 {x} 367.134 {y} 2490.1741 {z} 15.4884
38@ = create_car 422 {x} 357.6567 {y} 2509.594 {z} 15.5221
change_car_colour 36@ {color1} 0 {color2} 0
change_car_colour 37@ {color1} 0 {color2} 0
change_car_colour 38@ {color1} 0 {color2} 0
40@ = create_char PedType.Mission1 {modelId} 166 {x} 359.7588 {y} 2511.4741 {z} 15.5501
41@ = create_char PedType.Mission1 {modelId} 165 {x} 369.7111 {y} 2505.8379 {z} 15.4921
42@ = create_char PedType.Mission1 {modelId} 165 {x} 363.5374 {y} 2497.6741 {z} 15.4921
43@ = create_char_as_passenger 36@ {pedType} PedType.Mission1 {modelId} 165 {seat} SeatId.BikeRear
44@ = create_char_as_passenger 37@ {pedType} PedType.Mission1 {modelId} 166 {seat} SeatId.BikeRear
45@ = create_char PedType.Mission1 {modelId} 165 {x} 363.6662 {y} 2500.094 {z} 15.4921
if 
  not is_car_dead 34@
goto_if_false @DESERT9_5013
set_car_heading 34@ {heading} 90.0

:DESERT9_5013
control_movable_vehicle_part 34@ {range} 1.0
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 9999
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 9999
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 9999
open_car_door 36@ {door} CarDoor.LeftFrontDoor
open_car_door 36@ {door} CarDoor.RightFrontDoor
49@ = create_object #CR_GUNCRATE {x} 365.0146 {y} 2500.676 {z} 15.492
50@ = create_object #CR_CRATESTACK {x} 365.9573 {y} 2502.7629 {z} 15.4921
51@ = create_object #CR_CRATESTACK {x} 365.5524 {y} 2503.46 {z} 15.492
52@ = create_object #CR_CRATESTACK {x} 364.5623 {y} 2503.406 {z} 15.4921
set_object_heading 50@ {heading} 245.0
clear_area 435.2751 {y} 2527.5229 {z} 15.871 {radius} 10.0 {clearParticles} False
35@ = create_car 461 {x} 435.2751 {y} 2527.5229 {z} 15.871
set_car_heading 35@ {heading} 90.0
set_can_burst_car_tyres 35@ {state} False
set_char_heading 40@ {heading} 340.9066
set_char_heading 41@ {heading} 309.4871
set_char_heading 42@ {heading} 175.4073
task_play_anim 40@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 41@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 42@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_char_coordinates $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617
set_char_heading $scplayer {heading} 136.0
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
if 
  not is_car_dead 34@
goto_if_false @DESERT9_5463
start_playback_recorded_car 34@ {path} 149
set_playback_speed 34@ {speed} 0.0

:DESERT9_5463
set_fixed_camera_position 350.8692 {y} 2488.9319 {z} 17.5906 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 351.4443 {y} 2489.7471 {z} 17.52 {switchStyle} SwitchType.JumpCut
load_scene 367.134 {y} 2490.1741 {z} 15.4884
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_5554
if 
  71@ == 3
goto_if_false @DESERT9_5745
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_5745
if and
  not is_char_dead 45@
  does_object_exist 52@
goto_if_false @DESERT9_5665
66@ = open_sequence_task 
task_complex_pickup_object -1 {object} 52@
task_go_straight_to_coord -1 {x} 360.2195 {y} 2500.0229 {z} 15.4921 {speed} MoveState.Walk {time} -2
close_sequence_task 66@
perform_sequence_task 45@ {sequence} 66@
clear_sequence_task 66@

:DESERT9_5665
do_fade 1000 {direction} Fade.In
if 
  157@ == 0
goto_if_false @DESERT9_5713
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
goto @DESERT9_5720

:DESERT9_5713
86@ = 0

:DESERT9_5720
71@ = 4
clear_prints 
print 'DES9_3' {time} 4000 {flag} 1

:DESERT9_5745
if 
  71@ == 4
goto_if_false @DESERT9_5954
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_5954
switch_widescreen True
set_fixed_camera_position 438.18 {y} 2526.1931 {z} 17.1554 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 437.2076 {y} 2526.3391 {z} 16.9735 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 426.895 {y} 2529.479 {z} 15.6483
if 
  not is_car_dead 35@
goto_if_false @DESERT9_5883
task_enter_car_as_driver $scplayer {vehicle} 35@ {time} -2

:DESERT9_5883
print 'DES9_4' {time} 3000 {flag} 1
if 
  157@ == 0
goto_if_false @DESERT9_5940
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
goto @DESERT9_5947

:DESERT9_5940
86@ = 0

:DESERT9_5947
71@ = 5

:DESERT9_5954
if 
  71@ == 5
goto_if_false @DESERT9_6209
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6209
clear_prints 
print 'DES9_44' {time} 4000 {flag} 1
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6054
if 
  not is_char_in_any_car $scplayer
goto_if_false @DESERT9_6054
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_6054
56@ = create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 56@ {state} False
set_object_visible 56@ {state} False
if 
  not is_car_dead 34@
goto_if_false @DESERT9_6145
attach_object_to_car 56@ {handle} 34@ {xOffset} 0.0 {yOffset} -15.223 {zOffset} -1.489 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DESERT9_6145
158@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
if 
  158@ == 0
goto_if_false @DESERT9_6182
give_weapon_to_char $scplayer {weaponType} WeaponType.Satchel {ammo} 1

:DESERT9_6182
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
71@ = 6

:DESERT9_6209
if 
  71@ == 6
goto_if_false @DESERT9_6282
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6282
switch_widescreen False
set_player_control $player1 {state} True
clear_prints 
print 'DES9_A4' {time} 4000 {flag} 1
68@ = 2

:DESERT9_6282
return 

:DESERT9_6284
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  73@ > 0
goto_if_false @DESERT9_6407
if 
  not is_car_dead 34@
goto_if_false @DESERT9_6407
74@, 75@, 76@ = get_car_coordinates 34@
remove_blip 152@
152@ = add_blip_for_coord 74@ {y} 75@ {z} 76@
change_blip_display 152@ {display} BlipDisplay.BlipOnly
if 
  -83.0 > 74@
goto_if_false @DESERT9_6407
68@ = 8
71@ = 0

:DESERT9_6407
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6687
148@, 149@, 150@ = get_car_coordinates 35@
154@ = 2499.7
sub_float_lvar_from_float_lvar 154@ -= 149@
154@ = abs_lvar_float 
154@ /= 10.0
if 
  154@ > 2.0
goto_if_false @DESERT9_6501
154@ = 2.0

:DESERT9_6501
if 
  0.2 > 154@
goto_if_false @DESERT9_6532
154@ = 0.2

:DESERT9_6532
set_vehicle_air_resistance_multiplier 35@ {multiplier} 154@
154@ -= 2.0
154@ = abs_lvar_float 
154@ *= 50.0
set_lvar_float_to_lvar_float 159@ = 74@
sub_float_lvar_from_float_lvar 159@ -= 148@
159@ = abs_lvar_float 
set_lvar_float_to_lvar_float 160@ = 159@
160@ /= 100.0
if 
  160@ > 1.0
goto_if_false @DESERT9_6635
160@ = 1.0

:DESERT9_6635
159@ = 1.0
sub_float_lvar_from_float_lvar 159@ -= 160@
mult_float_lvar_by_float_lvar 159@ *= 154@
cset_lvar_int_to_lvar_float 88@ =# 159@
shake_cam 88@
88@ -= 256
abs_lvar_int 88@

:DESERT9_6687
if 
  73@ == 0
goto_if_false @DESERT9_6792
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6792
if 
  not locate_char_any_means_3d $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DESERT9_6792
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 8000
73@ = 2

:DESERT9_6792
if 
  73@ == 2
goto_if_false @DESERT9_7010
if or
  is_char_in_any_car $scplayer
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
  locate_char_any_means_3d $scplayer {x} 354.8564 {y} 2500.1521 {z} 18.3701 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DESERT9_7010
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7010
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 1350
73@ = 3
if 
  not is_char_dead 40@
goto_if_false @DESERT9_6934
task_kill_char_on_foot 40@ {target} $scplayer

:DESERT9_6934
if 
  not is_char_dead 41@
goto_if_false @DESERT9_6965
task_toggle_duck 41@ {state} True
task_kill_char_on_foot 41@ {target} $scplayer

:DESERT9_6965
if 
  not is_char_dead 42@
goto_if_false @DESERT9_6989
task_kill_char_on_foot 42@ {target} $scplayer

:DESERT9_6989
if 
  not is_char_dead 45@
goto_if_false @DESERT9_7010
clear_char_tasks_immediately 45@

:DESERT9_7010
if 
  73@ == 3
goto_if_false @DESERT9_7064
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
goto_if_false @DESERT9_7064
set_playback_speed 34@ {speed} 1.0
73@ = 4

:DESERT9_7064
if 
  73@ == 4
goto_if_false @DESERT9_7442
$x, $y, $z = get_object_coordinates 56@
148@, 149@, 150@ = get_char_coordinates $scplayer
146@ = get_distance_between_coords_2d $x {fromY} $y {toX} 148@ {toZ} 149@
162@ = 200.0
div_float_lvar_by_float_lvar 162@ /= 146@
if 
  162@ > 1.0
goto_if_false @DESERT9_7176
162@ = 1.0

:DESERT9_7176
if 
  0.3 > 162@
goto_if_false @DESERT9_7207
162@ = 0.3

:DESERT9_7207
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7231
set_playback_speed 34@ {speed} 162@

:DESERT9_7231
if 
  not locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DESERT9_7312
if 
  2 > 163@
goto_if_false @DESERT9_7305
gosub @DESERT9_16137
163@ = 1

:DESERT9_7305
goto @DESERT9_7337

:DESERT9_7312
if 
  163@ == 1
goto_if_false @DESERT9_7337
163@ = 2

:DESERT9_7337
if 
  locate_char_any_means_object_3d $scplayer {object} 56@ {xRadius} 4.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @DESERT9_7442
if 
  not is_car_dead 35@
goto_if_false @DESERT9_7442
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DESERT9_7442
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} True
remove_blip 152@
set_player_control $player1 {state} False
71@ = 20
68@ = 3
set_radio_channel RadioChannel.UserTracks

:DESERT9_7442
return 

:DESERT9_7444
439@ = 1
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_7542
if 
  11 > 71@
goto_if_false @DESERT9_7496
86@ = 0
71@ = 11

:DESERT9_7496
if and
  71@ > 19
  23 > 71@
goto_if_false @DESERT9_7542
86@ = 0
71@ = 24
65@ = 1

:DESERT9_7542
if 
  71@ == 20
goto_if_false @DESERT9_7691
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7691
switch_widescreen True
set_player_control $player1 {state} False
if 
  is_playback_going_on_for_car 34@
goto_if_false @DESERT9_7608
stop_playback_recorded_car 34@

:DESERT9_7608
start_playback_recorded_car 34@ {path} 135
if 
  not is_car_dead 35@
goto_if_false @DESERT9_7646
freeze_car_position 35@ {state} True
set_car_visible 35@ {state} False

:DESERT9_7646
set_char_visible $scplayer {state} False
delete_car 36@
delete_car 37@
delete_car 38@
mark_model_as_no_longer_needed 422
request_animation "AIRPORT"
71@ = 21

:DESERT9_7691
if 
  71@ == 21
goto_if_false @DESERT9_7816
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 66.4737 {fromY} 2494.1179 {fromZ} 17.9816 {toX} -43.8545 {toY} 2492.9021 {toZ} 19.8651 {time} 5500 {ease} True
camera_set_vector_track 67.4593 {fromY} 2494.2871 {fromZ} 17.9942 {toX} -44.3218 {toY} 2493.1841 {toZ} 20.7031 {time} 5500 {ease} True
71@ = 22
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4500

:DESERT9_7816
if 
  71@ == 22
goto_if_false @DESERT9_7867
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_7867
do_fade 1000 {direction} Fade.Out
71@ = 23

:DESERT9_7867
if 
  71@ == 23
goto_if_false @DESERT9_7905
if 
  not get_fading_status 
goto_if_false @DESERT9_7905
71@ = 0

:DESERT9_7905
if 
  71@ == 24
goto_if_false @DESERT9_7937
do_fade 1000 {direction} Fade.Out
71@ = 25

:DESERT9_7937
if 
  71@ == 25
goto_if_false @DESERT9_7982
if 
  not get_fading_status 
goto_if_false @DESERT9_7982
71@ = 0
65@ = 1

:DESERT9_7982
if 
  71@ == 0
goto_if_false @DESERT9_8581
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8030
freeze_car_position 35@ {state} False
set_car_visible 35@ {state} True

:DESERT9_8030
set_area_visible 9
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_8057
set_char_area_visible $scplayer {areaId} 9

:DESERT9_8057
delete_char 44@
44@ = create_char PedType.Mission3 {modelId} 165 {x} 316.0887 {y} 983.9927 {z} 1958.1379
set_char_heading 44@ {heading} 90.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_8120
set_char_area_visible 44@ {areaId} 9

:DESERT9_8120
if 
  not is_char_dead 44@
goto_if_false @DESERT9_8166
set_char_coordinates 44@ {x} 317.081 {y} 979.907 {z} 1960.108
set_char_heading 44@ {heading} 90.0

:DESERT9_8166
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8189
set_vehicle_area_visible 35@ {interiorId} 9

:DESERT9_8189
display_radar False
85@ = create_object #D9_RUNWAY {x} 305.191 {y} 1030.752 {z} 1938.134
request_car_recording 150
request_car_recording 152

:DESERT9_8226
if or
  not has_car_recording_been_loaded 150
  not has_car_recording_been_loaded 152
goto_if_false @DESERT9_8258
wait 0
goto @DESERT9_8226

:DESERT9_8258
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8374
set_car_coordinates 35@ {x} 331.8417 {y} 1038.314 {z} 1956.177
if 
  not is_char_in_any_car $scplayer
goto_if_false @DESERT9_8318
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_8318
clear_prints 
set_char_area_visible $scplayer {areaId} 9
set_char_visible $scplayer {state} True
start_playback_recorded_car 35@ {path} 150
skip_to_end_and_stop_playback_recorded_car 35@
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT9_8374
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_8374
load_scene 331.8417 {y} 1038.314 {z} 1956.177
request_collision 331.8417 {y} 1038.314
wait 800
camera_reset_new_scriptables 
set_fixed_camera_position 320.1115 {y} 1035.373 {z} 1948.1541 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 168@ = TIMERA
wait 500
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2200
request_model 371

:DESERT9_8485
if 
  not has_model_loaded 371
goto_if_false @DESERT9_8512
wait 0
goto @DESERT9_8485

:DESERT9_8512
do_fade 600 {direction} Fade.In
print 'DES9_A5' {time} 4000 {flag} 1
if 
  65@ == 1
goto_if_false @DESERT9_8574
71@ = 11
86@ = 0
goto @DESERT9_8581

:DESERT9_8574
71@ = 1

:DESERT9_8581
if and
  71@ > 0
  20 > 71@
goto_if_false @DESERT9_8613
gosub @DESERT9_17051

:DESERT9_8613
if 
  435@ == 0
goto_if_false @DESERT9_8657
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 168@
goto_if_false @DESERT9_8657
435@ = 1

:DESERT9_8657
if 
  does_object_exist 85@
goto_if_false @DESERT9_8697
164@, 165@, 166@ = get_object_coordinates 85@
165@ += 0.05

:DESERT9_8697
if 
  71@ == 1
goto_if_false @DESERT9_8762
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8762
task_leave_any_car $scplayer
71@ = 2
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 300

:DESERT9_8762
if 
  71@ == 2
goto_if_false @DESERT9_8894
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8894
if 
  not is_car_dead 34@
goto_if_false @DESERT9_8820
delete_car 34@

:DESERT9_8820
set_fixed_camera_position 317.7203 {y} 1027.301 {z} 1949.071 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.9413 {y} 1026.675 {z} 1949.027 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 3

:DESERT9_8894
if 
  71@ == 3
goto_if_false @DESERT9_9043
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9043
delete_object 85@
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 317.7203 {fromY} 1027.301 {fromZ} 1949.071 {toX} 317.7203 {toY} 1027.301 {toZ} 1949.071 {time} 1000 {ease} True
camera_set_vector_track 316.9413 {fromY} 1026.675 {fromZ} 1949.027 {toX} 317.3408 {toY} 1026.377 {toZ} 1949.13 {time} 1000 {ease} True
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500

:DESERT9_9043
if 
  71@ == 4
goto_if_false @DESERT9_9402
set_lvar_int_to_lvar_int 169@ = 86@
sub_int_lvar_from_int_lvar 169@ -= TIMERA
cset_lvar_float_to_lvar_int 170@ =# 169@
170@ /= 2000.0
170@ -= 1.0
170@ = abs_lvar_float 
292@, 312@, 332@ = get_object_coordinates 96@
if 
  312@ > 1020.214
goto_if_false @DESERT9_9294
if 
  not is_car_dead 35@
goto_if_false @DESERT9_9169
start_playback_recorded_car 35@ {path} 152

:DESERT9_9169
task_dive_and_get_up $scplayer {directionX} 1.0 {directionY} 0.0 {timeOnGround} 1000
71@ = 6
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 317.7203 {fromY} 1027.301 {fromZ} 1949.071 {toX} 317.7203 {toY} 1027.301 {toZ} 1949.071 {time} 2000 {ease} True
camera_set_vector_track 317.3408 {fromY} 1026.377 {fromZ} 1949.13 {toX} 317.1811 {toY} 1027.991 {toZ} 1948.589 {time} 2000 {ease} True

:DESERT9_9294
set_lvar_float_to_lvar_float 148@ = 292@
148@ -= 317.5107
set_lvar_float_to_lvar_float 149@ = 312@
149@ -= 1024.8149
set_lvar_float_to_lvar_float 150@ = 332@
150@ -= 1949.35
mult_float_lvar_by_float_lvar 148@ *= 170@
mult_float_lvar_by_float_lvar 149@ *= 170@
mult_float_lvar_by_float_lvar 150@ *= 170@
148@ += 317.5107
149@ += 1024.8149
150@ += 1949.35

:DESERT9_9402
if 
  71@ == 5
goto_if_false @DESERT9_9434
292@, 312@, 332@ = get_object_coordinates 96@

:DESERT9_9434
if 
  71@ == 6
goto_if_false @DESERT9_9494
292@, 312@, 332@ = get_object_coordinates 96@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9494
71@ = 11
clear_prints 

:DESERT9_9494
if 
  71@ == 7
goto_if_false @DESERT9_9667
camera_reset_new_scriptables 
set_fixed_camera_position 316.0625 {y} 988.6853 {z} 1957.741 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.0338 {y} 987.7417 {z} 1958.0699 {switchStyle} SwitchType.JumpCut
71@ = 8
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
if 
  not is_char_dead 44@
goto_if_false @DESERT9_9667
set_char_coordinates 44@ {x} 315.7535 {y} 983.4348 {z} 1958.265
set_char_heading 44@ {heading} 0.0
task_play_anim 44@ {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000

:DESERT9_9667
if 
  71@ == 8
goto_if_false @DESERT9_9891
if 
  has_model_loaded 371
goto_if_false @DESERT9_9886
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9879
clear_prints 
print 'DES9_45' {time} 4000 {flag} 1
set_fixed_camera_position 317.5727 {y} 1024.791 {z} 1949.854 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 317.4102 {y} 1023.809 {z} 1949.95 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 317.9964 {y} 1023.477 {z} 1949.033
set_char_heading $scplayer {heading} 121.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_9856
give_weapon_to_char 44@ {weaponType} WeaponType.Parachute {ammo} 1
set_death_weapons_persist 44@ {state} True

:DESERT9_9856
71@ = 9
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_9879
goto @DESERT9_9891

:DESERT9_9886
request_model 371

:DESERT9_9891
if 
  71@ == 9
goto_if_false @DESERT9_10153
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10153
set_fixed_camera_position 318.8293 {y} 975.9706 {z} 1960.759 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.3584 {y} 976.8294 {z} 1960.557 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 44@
goto_if_false @DESERT9_10114
set_char_coordinates 44@ {x} 317.4929 {y} 981.1245 {z} 1958.806
set_char_heading 44@ {heading} 90.0

:DESERT9_10025
if 
  not has_animation_loaded "AIRPORT"
goto_if_false @DESERT9_10069
request_animation "AIRPORT"
wait 0
goto @DESERT9_10025

:DESERT9_10069
task_play_anim 44@ {animationName} "THRW_BARL_THRW" {animationFile} "AIRPORT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DESERT9_10114
print 'DES9_46' {time} 4000 {flag} 1
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1100

:DESERT9_10153
if 
  71@ == 10
goto_if_false @DESERT9_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10220
435@ = 2
71@ = 11
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2900

:DESERT9_10220
if 
  71@ == 11
goto_if_false @DESERT9_11096
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_11096
request_model 371

:DESERT9_10262
if 
  not has_model_loaded 371
goto_if_false @DESERT9_10289
wait 0
goto @DESERT9_10262

:DESERT9_10289
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT9_10339
warp_char_from_car_to_coord $scplayer {x} 318.1163 {y} 1024.791 {z} 1948.729
goto @DESERT9_10359

:DESERT9_10339
set_char_coordinates $scplayer {x} 318.1163 {y} 1024.791 {z} 1948.729

:DESERT9_10359
set_char_heading $scplayer {heading} 121.0
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10416
if 
  is_playback_going_on_for_car 35@
goto_if_false @DESERT9_10406
stop_playback_recorded_car 35@

:DESERT9_10406
delete_car 35@
mark_model_as_no_longer_needed 461

:DESERT9_10416
set_char_heading $scplayer {heading} 225.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_10462
set_char_coordinates 44@ {x} 317.4565 {y} 980.5405 {z} 1958.9351

:DESERT9_10462
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10499
if 
  is_playback_going_on_for_car 35@
goto_if_false @DESERT9_10499
stop_playback_recorded_car 35@

:DESERT9_10499
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
delete_object 85@
if 
  not is_car_dead 34@
goto_if_false @DESERT9_10540
delete_car 34@

:DESERT9_10540
if 
  is_player_playing $player1
goto_if_false @DESERT9_10563
disable_player_sprint $player1 {state} True

:DESERT9_10563
174@ = create_fx_system "CLOUDFAST" {x} 315.2994 {y} 1028.151 {z} 1936.464 {ignoreBoundingChecks} True
play_fx_system 174@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
40@ = create_char PedType.Mission3 {modelId} 165 {x} 313.4011 {y} 1012.37 {z} 1951.588
41@ = create_char PedType.Mission3 {modelId} 166 {x} 312.5008 {y} 1004.962 {z} 1953.297
42@ = create_char PedType.Mission3 {modelId} 165 {x} 318.7976 {y} 988.7245 {z} 1957.0439
43@ = create_char PedType.Mission3 {modelId} 166 {x} 313.1324 {y} 991.6313 {z} 1956.374
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10751
freeze_car_position 35@ {state} False
set_car_visible 35@ {state} True

:DESERT9_10751
set_char_visible $scplayer {state} True
set_char_shoot_rate 40@ {rate} 100
set_char_shoot_rate 41@ {rate} 100
set_char_shoot_rate 42@ {rate} 100
set_char_shoot_rate 43@ {rate} 100
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_weapon_skill 41@ {skill} WeaponSkill.Pro
set_char_weapon_skill 42@ {skill} WeaponSkill.Pro
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
set_char_heading 40@ {heading} 288.4161
set_char_heading 41@ {heading} 298.9878
set_char_heading 42@ {heading} 85.3329
set_char_heading 43@ {heading} 308.2083
if 
  not is_char_dead 40@
goto_if_false @DESERT9_10884
set_char_area_visible 40@ {areaId} 9

:DESERT9_10884
if 
  not is_char_dead 41@
goto_if_false @DESERT9_10907
set_char_area_visible 41@ {areaId} 9

:DESERT9_10907
if 
  not is_char_dead 42@
goto_if_false @DESERT9_10930
set_char_area_visible 42@ {areaId} 9

:DESERT9_10930
if 
  not is_char_dead 43@
goto_if_false @DESERT9_10953
set_char_area_visible 43@ {areaId} 9

:DESERT9_10953
if 
  not is_char_dead 44@
goto_if_false @DESERT9_11030
set_char_coordinates 44@ {x} 317.881 {y} 979.907 {z} 1960.108
if 
  not has_char_got_weapon 44@ {weaponType} WeaponType.Parachute
goto_if_false @DESERT9_11030
give_weapon_to_char 44@ {weaponType} WeaponType.Parachute {ammo} 1
set_death_weapons_persist 44@ {state} True
set_char_shoot_rate 44@ {rate} 100

:DESERT9_11030
68@ = 4
178@ = 0
439@ = 0
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11082
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False

:DESERT9_11082
171@ = 1
$para_control_off = 1

:DESERT9_11096
return 

:DESERT9_11098
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @DESERT9_11151
if 
  not is_car_dead 35@
goto_if_false @DESERT9_11151
start_recording_car 35@ {_p2} 152

:DESERT9_11151
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @DESERT9_11203
if 
  not is_car_dead 35@
goto_if_false @DESERT9_11203
if 
is_recording_going_on_for_car 35@
goto_if_false @DESERT9_11203
stop_recording_car 35@

:DESERT9_11203
if 
  178@ == 0
goto_if_false @DESERT9_11495
if or
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_TEST
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_STUFF
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_STORE
goto_if_false @DESERT9_11280
clear_last_building_model_shot_by_player $player1
add_explosion 316.0 {y} 1000.0 {z} 1954.6 {type} ExplosionType.Aircraft

:DESERT9_11280
if 
  is_explosion_in_area -1 {leftBottomX} 325.0714 {leftBottomY} 967.935 {leftBottomZ} 1971.838 {rightTopX} 310.7184 {rightTopY} 1047.574 {rightTopZ} 1939.683
goto_if_false @DESERT9_11495
178@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11363
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_11363
159@ = 972.5745
88@ = 0

:DESERT9_11380
if 
  1050.574 >= 159@
goto_if_false @DESERT9_11495
set_lvar_float_to_lvar_float 160@ = 159@
160@ -= 5.0
if 
  is_explosion_in_area -1 {leftBottomX} 325.0714 {leftBottomY} 159@ {leftBottomZ} 1971.838 {rightTopX} 310.7184 {rightTopY} 160@ {rightTopZ} 1939.683
goto_if_false @DESERT9_11471
462@(88@,15i) = 1

:DESERT9_11471
88@ += 1
159@ += 5.0
goto @DESERT9_11380

:DESERT9_11495
if 
  178@ == 1
goto_if_false @DESERT9_11520
gosub @DESERT9_19937

:DESERT9_11520
if 
  173@ == 0
goto_if_false @DESERT9_11577
if 
  is_char_dead 44@
goto_if_false @DESERT9_11577
print 'DES9_27' {time} 4000 {flag} 1
173@ = 1

:DESERT9_11577
if 
  173@ == 1
goto_if_false @DESERT9_11702
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @DESERT9_11702
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
clear_prints 
if 
  178@ == 0
goto_if_false @DESERT9_11679
print 'DES9_A1' {time} 4000 {flag} 1
print 'DES9_A2' {time} 4000 {flag} 1
goto @DESERT9_11695

:DESERT9_11679
print 'DES9_26' {time} 4000 {flag} 1

:DESERT9_11695
173@ = 2

:DESERT9_11702
if 
  180@ == 0
goto_if_false @DESERT9_11781
if 
  1942.27 > $player_z
goto_if_false @DESERT9_11781
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11772
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_11772
180@ = 1
use_detonator 

:DESERT9_11781
if 
  173@ == 2
goto_if_false @DESERT9_11946
if 
  1940.27 > $player_z
goto_if_false @DESERT9_11946
if 
  178@ == 1
goto_if_false @DESERT9_11894
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11887
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
kill_fx_system 174@
68@ = 9
71@ = 0
$player_fall_safe = 1

:DESERT9_11887
goto @DESERT9_11946

:DESERT9_11894
clear_prints 
print 'DES9_39' {time} 4000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
gosub @DESERT9_21954
set_area_visible 0
goto @DESERT9_45

:DESERT9_11946
if 
  not is_char_dead 44@
goto_if_false @DESERT9_12166
148@, 149@, 150@ = get_char_coordinates 44@
if and
  1940.0 > 150@
  not is_char_in_air $scplayer
goto_if_false @DESERT9_12166
clear_prints 
print 'DES9_29' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_pickup $para_max_Vz
wait 1000
do_fade 1000 {direction} Fade.Out

:DESERT9_12053
if 
  get_fading_status 
goto_if_false @DESERT9_12077
wait 0
goto @DESERT9_12053

:DESERT9_12077
set_area_visible 0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 408.6996 {y} 2538.272 {z} 15.6057
set_char_heading $scplayer {heading} 139.0
gosub @DESERT9_21954
wait 1500
do_fade 1000 {direction} Fade.In

:DESERT9_12135
if 
  get_fading_status 
goto_if_false @DESERT9_12159
wait 0
goto @DESERT9_12135

:DESERT9_12159
goto @DESERT9_45

:DESERT9_12166
if and
  1938.0 > $player_z
  not is_char_dead $scplayer
goto_if_false @DESERT9_12896
clear_prints 
if 
  2 > 173@
goto_if_false @DESERT9_12896
do_fade 1000 {direction} Fade.Out

:DESERT9_12219
if 
  get_fading_status 
goto_if_false @DESERT9_12243
wait 0
goto @DESERT9_12219

:DESERT9_12243
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene 125.1739 {y} 1074.067 {z} 12.0
request_model 445
request_model 91
request_animation "PARACHUTE"

:DESERT9_12293
if or
  not has_model_loaded 445
  not has_model_loaded 91
  not has_animation_loaded "PARACHUTE"
goto_if_false @DESERT9_12337
wait 0
goto @DESERT9_12293

:DESERT9_12337
set_fixed_camera_position 125.1739 {y} 1074.067 {z} 12.8138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 124.591 {y} 1073.27 {z} 12.9688 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 122.3556 {y} 1069.892 {z} 99.6832
181@ = create_car 445 {x} 119.3556 {y} 1069.892 {z} 13.665
182@ = create_char_as_passenger 181@ {pedType} PedType.CivMale {modelId} 91 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 364
set_car_heading 181@ {heading} 180.0
set_char_coordinates $scplayer {x} 119.3 {y} 1070.47 {z} 189.3266
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0
do_fade 1000 {direction} Fade.In

:DESERT9_12537
if 
  get_fading_status 
goto_if_false @DESERT9_12561
wait 0
goto @DESERT9_12537

:DESERT9_12561
set_char_coordinates $scplayer {x} 119.3 {y} 1070.47 {z} 80.3266
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:DESERT9_12601
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_12883
184@ = get_char_height_above_ground $scplayer
if and
  4.8 > 184@
  183@ == 0
goto_if_false @DESERT9_12872
183@ = 1
task_die_named_anim $scplayer {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
if 
  not is_car_dead 181@
goto_if_false @DESERT9_12872
pop_car_door 181@ {door} CarDoor.LeftFrontDoor {visibility} True
pop_car_door 181@ {door} CarDoor.LeftRearDoor {visibility} True
pop_car_door 181@ {door} CarDoor.RightFrontDoor {visibility} True
burst_car_tyre 181@ {tireId} WheelId.BikeFront
burst_car_tyre 181@ {tireId} WheelId.FrontRight
burst_car_tyre 181@ {tireId} WheelId.BikeRear
damage_car_panel 181@ {panelId} 4
damage_car_panel 181@ {panelId} 0
damage_car_panel 181@ {panelId} 6
damage_car_panel 181@ {panelId} 6
apply_force_to_car 181@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.15 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  not is_char_dead 182@
goto_if_false @DESERT9_12872
clear_char_tasks 182@
task_leave_car_and_flee 182@ {vehicle} 181@ {x} 119.3556 {y} 1069.892 {z} 13.665

:DESERT9_12872
wait 0
goto @DESERT9_12601

:DESERT9_12883
remove_animation "PARACHUTE"

:DESERT9_12896
if 
  $player_y > 1033.0
goto_if_false @DESERT9_12928
shake_cam 40
goto @DESERT9_12932

:DESERT9_12928
shake_cam 10

:DESERT9_12932
gosub @DESERT9_17051
return 

:DESERT9_12941
switch_widescreen True
$para_control_off = 1

:DESERT9_12952
if 
  185@ == 0
goto_if_false @DESERT9_13101
set_area_visible 0
if 
  not is_car_dead 34@
goto_if_false @DESERT9_12995
delete_car 34@

:DESERT9_12995
34@ = create_car 592 {x} 316.212 {y} 1003.495 {z} 1957.5291
start_playback_recorded_car 34@ {path} 134
set_car_heading 34@ {heading} 180.0
attach_camera_to_char $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} -2.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
185@ = 1

:DESERT9_13101
if 
  185@ == 1
goto_if_false @DESERT9_13155
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13155
$para_control_off = 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
return 

:DESERT9_13155
wait 0
goto @DESERT9_12952
return 

:DESERT9_13168
set_area_visible 0

:DESERT9_13172
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT9_13198
goto @DESERT9_21869

:DESERT9_13198
if 
is_ps2_keyboard_key_pressed 23
goto_if_false @DESERT9_13213

:DESERT9_13213
goto @DESERT9_13172
return 

:DESERT9_13222
if 
  71@ == 0
goto_if_false @DESERT9_13304
186@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
start_playback_recorded_car 186@ {path} 134
set_playback_speed 186@ {speed} 1.0
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 1

:DESERT9_13304
if 
  71@ == 1
goto_if_false @DESERT9_13528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13528
clear_prints 
print 'DES9_42' {time} 5000 {flag} 1
set_char_visible $scplayer {state} False
set_area_visible 0
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 34@ {path} 134
set_car_health 34@ {health} 350
if 
  not is_car_dead 186@
goto_if_false @DESERT9_13487
set_playback_speed 186@ {speed} 0.5
attach_camera_to_vehicle_look_at_vehicle 186@ {xOffset} 15.0 {yOffset} 15.0 {zOffset} 10.0 {vehicle} 34@ {tilt} 15.0 {switchStyle} SwitchType.JumpCut
set_car_visible 186@ {state} False

:DESERT9_13487
switch_widescreen True
set_player_control $player1 {state} False
203@ = 1
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000

:DESERT9_13528
if 
  203@ == 1
goto_if_false @DESERT9_13671
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_13671
if 
  not is_car_dead 34@
goto_if_false @DESERT9_13671
$x, $y, $z = get_car_coordinates 34@
if 
  6 > 206@
goto_if_false @DESERT9_13633
add_explosion $x {y} $y {z} $z {type} ExplosionType.Aircraft
goto @DESERT9_13646

:DESERT9_13633
add_explosion_no_sound $x {y} $y {z} $z {type} ExplosionType.Aircraft

:DESERT9_13646
206@ += 1
204@ = generate_random_int_in_range 100 {max} 250
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_13671
if 
  71@ == 3
goto_if_false @DESERT9_13738
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13738
71@ = 4
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_13738
if 
  71@ == 4
goto_if_false @DESERT9_13782
if 
  not get_fading_status 
goto_if_false @DESERT9_13782
force_death_restart 
set_camera_behind_player 
restore_camera_jumpcut 
goto @DESERT9_18

:DESERT9_13782
return 

:DESERT9_13784
if 
  71@ == 0
goto_if_false @DESERT9_14198
if 
  not is_car_dead 34@
goto_if_false @DESERT9_14198
set_fixed_camera_position -158.5012 {y} 2492.1609 {z} 31.0353 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -157.5606 {y} 2492.4451 {z} 31.2209 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
set_playback_speed 34@ {speed} 1.0
if 
  not is_car_dead 36@
goto_if_false @DESERT9_13930
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @DESERT9_13930
delete_car 36@

:DESERT9_13930
if 
  not is_car_dead 186@
goto_if_false @DESERT9_13951
delete_car 186@

:DESERT9_13951
if 
  not is_car_dead 37@
goto_if_false @DESERT9_13991
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @DESERT9_13991
delete_car 37@

:DESERT9_13991
if 
  not is_car_dead 38@
goto_if_false @DESERT9_14031
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DESERT9_14031
delete_car 38@

:DESERT9_14031
414@ = 0

:DESERT9_14038
if 
  8 > 414@
goto_if_false @DESERT9_14079
delete_char 40@(414@,8i)
414@ += 1
goto @DESERT9_14038

:DESERT9_14079
414@ = 0

:DESERT9_14086
if 
  15 > 414@
goto_if_false @DESERT9_14127
delete_object 225@(414@,15i)
414@ += 1
goto @DESERT9_14086

:DESERT9_14127
414@ = 0

:DESERT9_14134
if 
  5 > 414@
goto_if_false @DESERT9_14175
delete_object 49@(414@,6i)
414@ += 1
goto @DESERT9_14134

:DESERT9_14175
71@ = 1
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000

:DESERT9_14198
if 
  71@ == 1
goto_if_false @DESERT9_14289
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_14289
print 'DES9_32' {time} 4000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
goto @DESERT9_18

:DESERT9_14289
return 

:DESERT9_14291
set_var_int_to_lvar_int $7507 = TIMERA
sub_int_var_from_int_var $7507 -= $cut_timerr
if 
  71@ == 0
goto_if_false @DESERT9_14671
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_14356
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_14356
set_var_int_to_lvar_int $cut_timerr = TIMERA
set_var_int_to_lvar_int $7507 = TIMERA
sub_int_var_from_int_var $7507 -= $cut_timerr
$x, $y, $z = get_char_velocity $scplayer
186@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
start_playback_recorded_car 186@ {path} 134
set_playback_speed 186@ {speed} 0.5
set_char_coordinates $scplayer {x} 177.9967 {y} 1099.621 {z} 1977.491
set_char_heading $scplayer {heading} 180.0
set_char_velocity $scplayer {x} $x {y} -30.0 {z} $z
set_car_visible 186@ {state} True
control_movable_vehicle_part 186@ {range} 1.0
set_area_visible 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
switch_widescreen True
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5300
197@ = 175.5399
198@ = 1097.84
199@ = 1978.912
200@ = 185.4931
201@ = 1028.03
202@ = 1763.16
190@ = 175.0676
191@ = 1097.025
192@ = 1979.246
193@ = 185.4931
194@ = 1028.03
195@ = 1763.16
71@ = 999
203@ = 1

:DESERT9_14671
if 
  203@ == 1
goto_if_false @DESERT9_14814
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_14814
if 
  not is_car_dead 186@
goto_if_false @DESERT9_14814
$x, $y, $z = get_car_coordinates 186@
if 
  6 > 206@
goto_if_false @DESERT9_14776
add_explosion $x {y} $y {z} $z {type} ExplosionType.Aircraft
goto @DESERT9_14789

:DESERT9_14776
add_explosion_no_sound $x {y} $y {z} $z {type} ExplosionType.Aircraft

:DESERT9_14789
206@ += 1
204@ = generate_random_int_in_range 100 {max} 250
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_14814
if 
  69@ <> 1
goto_if_false @DESERT9_14883
if 
  205@ == 0
goto_if_false @DESERT9_14883
if 
  $7507 > 4070
goto_if_false @DESERT9_14883
gosub @DESERT9_21869
205@ = 1

:DESERT9_14883
if 
  $7507 > 8070
goto_if_false @DESERT9_14924
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
goto @DESERT9_18

:DESERT9_14924
if 
  71@ == 999
goto_if_false @DESERT9_15196
set_char_heading $scplayer {heading} 180.0
cset_lvar_float_to_var_int 196@ =# $7507
196@ /= 8070.0
$x, $y, $z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 187@ = $x
set_lvar_float_to_lvar_float 189@ = 196@
189@ *= 7.5
add_float_var_to_float_lvar 189@ += $z
189@ -= 2.5
set_lvar_float_to_var_float 188@ = $y
188@ -= 5.0
set_fixed_camera_position 187@ {y} 188@ {z} 189@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 187@ = 200@
sub_float_lvar_from_float_lvar 187@ -= 197@
set_lvar_float_to_lvar_float 188@ = 201@
sub_float_lvar_from_float_lvar 188@ -= 198@
set_lvar_float_to_lvar_float 189@ = 202@
sub_float_lvar_from_float_lvar 189@ -= 199@
cset_lvar_float_to_var_int 196@ =# $7507
196@ /= 8070.0
mult_float_lvar_by_float_lvar 187@ *= 196@
mult_float_lvar_by_float_lvar 188@ *= 196@
mult_float_lvar_by_float_lvar 189@ *= 196@
add_float_lvar_to_float_lvar 187@ += 197@
add_float_lvar_to_float_lvar 188@ += 198@
add_float_lvar_to_float_lvar 189@ += 199@
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:DESERT9_15196
if 
  71@ == 40
goto_if_false @DESERT9_15229
set_lvar_int_to_lvar_int 88@ = TIMERA
71@ = 41

:DESERT9_15229
if 
  69@ <> 1
goto_if_false @DESERT9_15336
if 
  71@ == 41
goto_if_false @DESERT9_15336
set_var_int_to_lvar_int $start_timerr = TIMERA
sub_int_lvar_from_int_var $start_timerr -= 88@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15336
71@ = 42
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
gosub @DESERT9_21869
goto @DESERT9_18

:DESERT9_15336
if 
  71@ == 1
goto_if_false @DESERT9_15571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15571
clear_prints 
print 'DES9_42' {time} 5000 {flag} 1
set_char_visible $scplayer {state} False
set_area_visible 0
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 34@ {path} 134
set_car_health 34@ {health} 350
if 
  not is_car_dead 186@
goto_if_false @DESERT9_15519
set_playback_speed 186@ {speed} 0.5
attach_camera_to_vehicle_look_at_vehicle 186@ {xOffset} 15.0 {yOffset} 15.0 {zOffset} 10.0 {vehicle} 34@ {tilt} 15.0 {switchStyle} SwitchType.JumpCut
set_car_visible 186@ {state} False

:DESERT9_15519
switch_widescreen True
set_player_control $player1 {state} False
add_explosion 179.0872 {y} 1127.109 {z} 1959.8051 {type} ExplosionType.Aircraft
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80

:DESERT9_15571
if 
  71@ == 10
goto_if_false @DESERT9_15630
add_explosion 178.0018 {y} 1120.319 {z} 1963.485 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 11

:DESERT9_15630
if 
  71@ == 11
goto_if_false @DESERT9_15689
add_explosion 177.9817 {y} 1114.131 {z} 1967.356 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 12

:DESERT9_15689
if 
  71@ == 12
goto_if_false @DESERT9_15749
add_explosion 179.386 {y} 1109.9189 {z} 1972.504 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3760
71@ = 3

:DESERT9_15749
if 
  71@ == 2
goto_if_false @DESERT9_15767

:DESERT9_15767
if 
  71@ == 3
goto_if_false @DESERT9_15827
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15827
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 6000

:DESERT9_15827
if 
  71@ == 4
goto_if_false @DESERT9_15873
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15873
force_death_restart 
goto @DESERT9_18

:DESERT9_15873
return 
set_fixed_camera_position -189.0987 {y} 2493.957 {z} 66.7341 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -188.1982 {y} 2494.105 {z} 66.3252 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 34@
goto_if_false @DESERT9_15953

:DESERT9_15953
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 4000

:DESERT9_15969
wait 0
if 
  58@ == 0
goto_if_false @DESERT9_16040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16040
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 1000
58@ = 1

:DESERT9_16040
if 
  58@ == 1
goto_if_false @DESERT9_16128
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16128
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In
print 'DES9_32' {time} 5000 {flag} 1
gosub @DESERT9_21846
goto @DESERT9_18

:DESERT9_16128
goto @DESERT9_15969
return 

:DESERT9_16137
if 
  207@ == 0
goto_if_false @DESERT9_16523
208@ = 2000
209@ = 2300
210@ = 2600
211@ = 4000
212@ = 4300
213@ = 4600
214@ = 6000
215@ = 6300
216@ = 6600
217@ = 8000
218@ = 8300
219@ = 8600
220@ = 10000
221@ = 10300
222@ = 10600
240@ = 1
241@ = 1
242@ = 1
243@ = 1
244@ = 1
245@ = 1
246@ = 1
247@ = 1
248@ = 0
249@ = 1
250@ = 1
251@ = 1
252@ = 1
253@ = 1
254@ = 1
255@ = 0

:DESERT9_16387
if 
  15 > 255@
goto_if_false @DESERT9_16516
223@ = generate_random_int_in_range -500 {max} 500
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
goto @DESERT9_16387

:DESERT9_16516
207@ = 1

:DESERT9_16523
if 
  207@ == 1
goto_if_false @DESERT9_17049
if 
  15 > 224@
goto_if_false @DESERT9_17049
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 208@(224@,15i)
goto_if_false @DESERT9_17049
277@ = 0

:DESERT9_16589
if 
  15 > 277@
goto_if_false @DESERT9_16707
if 
  does_object_exist 225@(277@,15i)
goto_if_false @DESERT9_16693
if 
  not is_object_on_screen 225@(277@,15i)
goto_if_false @DESERT9_16693
$x, $y, $z = get_object_coordinates 225@(277@,15i)
if 
  is_float_var_greater_than_float_var $x > $player_x
goto_if_false @DESERT9_16693
delete_object 225@(277@,15i)

:DESERT9_16693
277@ += 1
goto @DESERT9_16589

:DESERT9_16707
if 
  not is_car_dead 34@
goto_if_false @DESERT9_16731
259@ = get_car_speed 34@

:DESERT9_16731
set_lvar_float_to_lvar_float 257@ = 74@
257@ += 18.538
258@ = 15.61
set_lvar_float_to_lvar_float 260@ = 259@
260@ -= 18.0
260@ *= -1.0
if 
  240@(224@,15i) == 1
goto_if_false @DESERT9_16965
261@ = generate_random_float_in_range -10.0 {max} 10.0
create_object #KB_BARREL {x} 257@ {y} 75@ {z} 258@ {var_handle} 225@(224@,15i)
set_object_heading 225@(224@,15i) {heading} 90.0
set_object_dynamic 225@(224@,15i) {state} False
set_object_dynamic 225@(224@,15i) {state} True
set_object_velocity 225@(224@,15i) {xSpeed} 260@ {ySpeed} 261@ {zSpeed} 0.0
set_object_rotation 225@(224@,15i) {x} 0.0 {y} 0.0 {z} 0.0
set_lvar_float_to_lvar_float 151@ = 260@
151@ *= 2.0
add_to_object_rotation_velocity 225@(224@,15i) {x} 0.0 {y} 151@ {z} 0.0

:DESERT9_16965
if 
  240@(224@,15i) == 2
goto_if_false @DESERT9_17042
256@ = create_car 422 {x} 257@ {y} 75@ {z} 258@
set_car_heading 256@ {heading} 270.0
set_car_forward_speed 256@ {forwardSpeed} 260@
set_car_rotation_velocity 256@ {x} 0.0 {y} 23.0 {z} 0.0

:DESERT9_17042
224@ += 1

:DESERT9_17049
return 

:DESERT9_17051
if 
  111@ == 0
goto_if_false @DESERT9_17517
111@ = 1
set_lvar_int_to_lvar_int 112@ = TIMERA
112@ += 1000
278@ = 316.465
282@ = 981.694
286@ = 1958.96
279@ = 315.248
283@ = 981.694
287@ = 1958.96
280@ = 316.465
284@ = 981.909
288@ = 1959.92
281@ = 315.248
285@ = 981.909
289@ = 1959.92
290@ = -0.996
291@ = 0.232
352@ = 3
353@ = 4
354@ = 4
355@ = 5
356@ = 6
357@ = 1
358@ = 3
359@ = 3
360@ = 4
361@ = 5
362@ = 2
363@ = 2
364@ = 6
365@ = 6
366@ = 7
367@ = 6
368@ = 6
369@ = 7
370@ = 7
371@ = 8
372@ = 0
373@ = 0
374@ = 300
375@ = 0
376@ = 0
377@ = 0
378@ = 0
379@ = 0
380@ = 0
381@ = 0
382@ = 0
383@ = 0
384@ = 300
385@ = 0
386@ = 300
387@ = 0
388@ = 300
389@ = 0
390@ = 300
391@ = 0

:DESERT9_17517
if 
  111@ == 1
goto_if_false @DESERT9_17837
393@ = 0
392@ = 0

:DESERT9_17549
if 
  4 > 392@
goto_if_false @DESERT9_17830
440@ = 0.0

:DESERT9_17577
if 
  5.0 > 440@
goto_if_false @DESERT9_17816
set_lvar_float_to_lvar_float 292@(393@,20f) = 278@(392@,4f)
set_lvar_float_to_lvar_float 312@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 312@(393@,20f) *= 290@
add_float_lvar_to_float_lvar 312@(393@,20f) += 282@(392@,4f)
set_lvar_float_to_lvar_float 332@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 332@(393@,20f) *= 291@
add_float_lvar_to_float_lvar 332@(393@,20f) += 286@(392@,4f)
create_object #KB_BARREL {x} 292@(393@,20f) {y} 312@(393@,20f) {z} 332@(393@,20f) {var_handle} 91@(393@,20i)
set_lvar_int_to_lvar_int 114@ = TIMERA
set_object_rotation 91@(393@,20i) {x} 0.0 {y} 13.0 {z} 90.0
set_object_dynamic 91@(393@,20i) {state} False
set_object_dynamic 91@(393@,20i) {state} True
freeze_object_position 91@(393@,20i) {state} True
393@ += 1
440@ += 1.0
goto @DESERT9_17577

:DESERT9_17816
392@ += 1
goto @DESERT9_17549

:DESERT9_17830
111@ = 2

:DESERT9_17837
if 
  111@ == 2
goto_if_false @DESERT9_19935
414@ = 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  439@ == 0
goto_if_false @DESERT9_17947
if 
  990.0 >= $player_y
goto_if_false @DESERT9_17947
439@ = 1
if 
  not is_char_dead 44@
goto_if_false @DESERT9_17947
set_char_relationship 44@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:DESERT9_17947
if 
  60@ == 0
goto_if_false @DESERT9_18018
if 
  1021.0 > $player_y
goto_if_false @DESERT9_18018
if 
  not is_char_dead 40@
goto_if_false @DESERT9_18018
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
60@ = 1

:DESERT9_18018
if 
  61@ == 0
goto_if_false @DESERT9_18089
if 
  1011.0 > $player_y
goto_if_false @DESERT9_18089
if 
  not is_char_dead 41@
goto_if_false @DESERT9_18089
set_char_relationship 41@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
61@ = 1

:DESERT9_18089
if 
  62@ == 0
goto_if_false @DESERT9_18160
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18160
if 
  not is_char_dead 42@
goto_if_false @DESERT9_18160
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
62@ = 1

:DESERT9_18160
if 
  63@ == 0
goto_if_false @DESERT9_18231
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18231
if 
  not is_char_dead 43@
goto_if_false @DESERT9_18231
set_char_relationship 43@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
63@ = 1

:DESERT9_18231
if 
  439@ == 0
goto_if_false @DESERT9_18429
if or
  1021.0 > $player_y
  435@ == 1
goto_if_false @DESERT9_18429
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 436@
goto_if_false @DESERT9_18429
set_lvar_int_to_lvar_int 436@ = TIMERA
436@ += 6500
set_lvar_int_to_lvar_int 437@ = TIMERA
435@ += 1
if 
  not is_char_dead 44@
goto_if_false @DESERT9_18429
if 
  has_animation_loaded "AIRPORT"
goto_if_false @DESERT9_18418
task_play_anim 44@ {animationName} "THRW_BARL_THRW" {animationFile} "AIRPORT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000
goto @DESERT9_18429

:DESERT9_18418
request_animation "AIRPORT"

:DESERT9_18429
if 
  20 > 414@
goto_if_false @DESERT9_19935
if 
  is_int_lvar_greater_or_equal_to_int_lvar 435@ >= 352@(414@,20i)
goto_if_false @DESERT9_19921
if 
  415@(414@,20i) == 0
goto_if_false @DESERT9_18591
set_lvar_int_to_lvar_int 438@ = 437@
add_int_lvar_to_int_lvar 438@ += 372@(414@,20i)
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 438@
goto_if_false @DESERT9_18591
415@(414@,20i) = 1
if 
  414@ == 5
goto_if_false @DESERT9_18591
set_object_coordinates 96@ {x} 315.1264 {y} 986.6496 {z} 1957.926
415@(414@,20i) = 6

:DESERT9_18591
if 
  415@(414@,20i) == 1
goto_if_false @DESERT9_18671
if 
  10 > 414@
goto_if_false @DESERT9_18649
415@(414@,20i) = 2
goto @DESERT9_18660

:DESERT9_18649
415@(414@,20i) = 3

:DESERT9_18660
set_object_collision 91@(414@,20i) {state} False

:DESERT9_18671
if 
  415@(414@,20i) == 2
goto_if_false @DESERT9_18758
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 981.691 {posZ} 1959.418 {speedX} 0.0 {speedY} 0.183 {speedZ} 0.0412 {collisionCheck} False
goto_if_false @DESERT9_18758
415@(414@,20i) = 4

:DESERT9_18758
if 
  415@(414@,20i) == 3
goto_if_false @DESERT9_18845
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 981.909 {posZ} 1960.339 {speedX} 0.0 {speedY} 0.183 {speedZ} 0.0412 {collisionCheck} False
goto_if_false @DESERT9_18845
415@(414@,20i) = 5

:DESERT9_18845
if 
  415@(414@,20i) == 4
goto_if_false @DESERT9_18932
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 984.242 {posZ} 1958.532 {speedX} 0.0 {speedY} 0.287 {speedZ} 0.1 {collisionCheck} False
goto_if_false @DESERT9_18932
415@(414@,20i) = 5

:DESERT9_18932
if 
  415@(414@,20i) == 5
goto_if_false @DESERT9_19019
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 984.242 {posZ} 1958.532 {speedX} 0.0 {speedY} 0.21 {speedZ} 0.162 {collisionCheck} False
goto_if_false @DESERT9_19019
415@(414@,20i) = 6

:DESERT9_19019
if 
  415@(414@,20i) == 6
goto_if_false @DESERT9_19106
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1027.9611 {posZ} 1948.424 {speedX} 0.0 {speedY} 0.244 {speedZ} 0.0564 {collisionCheck} False
goto_if_false @DESERT9_19106
415@(414@,20i) = 7

:DESERT9_19106
if 
  415@(414@,20i) == 7
goto_if_false @DESERT9_19193
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1039.494 {posZ} 1942.693 {speedX} 0.0 {speedY} 0.432 {speedZ} 0.2145 {collisionCheck} False
goto_if_false @DESERT9_19193
415@(414@,20i) = 8

:DESERT9_19193
if 
  415@(414@,20i) == 8
goto_if_false @DESERT9_19280
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1086.9091 {posZ} 1908.631 {speedX} 0.0 {speedY} 0.882 {speedZ} 0.6645 {collisionCheck} False
goto_if_false @DESERT9_19280
415@(414@,20i) = 9

:DESERT9_19280
if 
  415@(414@,20i) == 9
goto_if_false @DESERT9_19324
set_object_visible 91@(414@,20i) {state} False
415@(414@,20i) = 10

:DESERT9_19324
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 113@
goto_if_false @DESERT9_19558
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19558
get_object_coordinates 91@(414@,20i) {var_x} 292@(414@,20f) {var_y} 144@ {var_z} 145@
set_lvar_float_to_var_float 148@ = $player_x
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_var_float 149@ = $player_y
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_var_float 150@ = $player_z
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = abs_lvar_float 
if 
  0.6 > 148@
goto_if_false @DESERT9_19558
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19558
if 
  0.6 > 150@
goto_if_false @DESERT9_19558
clear_char_tasks_immediately $scplayer
task_fall_and_get_up $scplayer {fallDown} False {timeOnGround} 0
set_lvar_int_to_lvar_int 113@ = TIMERA
113@ += 1500

:DESERT9_19558
444@ = 0

:DESERT9_19565
if 
  4 > 444@
goto_if_false @DESERT9_19842
if 
  not is_char_dead 40@(444@,8i)
goto_if_false @DESERT9_19828
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19828
441@, 442@, 443@ = get_char_coordinates 40@(444@,8i)
get_object_coordinates 91@(414@,20i) {var_x} 292@(414@,20f) {var_y} 144@ {var_z} 145@
set_lvar_float_to_lvar_float 148@ = 441@
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_lvar_float 149@ = 442@
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_lvar_float 150@ = 443@
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = abs_lvar_float 
if 
  0.6 > 148@
goto_if_false @DESERT9_19828
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19828
if 
  0.6 > 150@
goto_if_false @DESERT9_19828
clear_char_tasks_immediately 40@(444@,8i)
task_fall_and_get_up 40@(444@,8i) {fallDown} False {timeOnGround} 0

:DESERT9_19828
444@ += 1
goto @DESERT9_19565

:DESERT9_19842
116@(414@,20f) += 20.0
set_object_rotation 91@(414@,20i) {x} 0.0 {y} 116@(414@,20f) {z} 90.0
if 
  116@(414@,20f) == 360.0
goto_if_false @DESERT9_19921
116@(414@,20f) = 0.0

:DESERT9_19921
414@ += 1
goto @DESERT9_18429

:DESERT9_19935
return 

:DESERT9_19937
88@ = 0

:DESERT9_19944
if 
  15 > 88@
goto_if_false @DESERT9_20401
if 
  462@(88@,15i) == 1
goto_if_false @DESERT9_20018
set_lvar_int_to_lvar_int 447@(88@,15i) = TIMERA
447@(88@,15i) += 120
462@(88@,15i) = 2

:DESERT9_20018
if 
  462@(88@,15i) == 2
goto_if_false @DESERT9_20387
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 447@(88@,15i)
goto_if_false @DESERT9_20387
462@(88@,15i) = 3
set_lvar_int_to_lvar_int 89@ = 88@
89@ -= 1
set_lvar_int_to_lvar_int 90@ = 88@
90@ += 1
if 
  0 > 89@
goto_if_false @DESERT9_20129
89@ = 0

:DESERT9_20129
if 
  90@ > 14
goto_if_false @DESERT9_20154
90@ = 14

:DESERT9_20154
if 
  462@(89@,15i) == 0
goto_if_false @DESERT9_20187
462@(89@,15i) = 1

:DESERT9_20187
if 
  462@(90@,15i) == 0
goto_if_false @DESERT9_20220
462@(90@,15i) = 1

:DESERT9_20220
cset_lvar_float_to_lvar_int 161@ =# 88@
160@ = 5.0
mult_float_lvar_by_float_lvar 160@ *= 161@
159@ = 967.5745
add_float_lvar_to_float_lvar 159@ += 160@
set_lvar_float_to_lvar_float 160@ = 159@
160@ += 5.0
if and
  is_float_lvar_greater_than_float_var 160@ > $player_y
  is_float_var_greater_than_float_lvar $player_y > 159@
goto_if_false @DESERT9_20334
if 
  $player_fall_state == 0
goto_if_false @DESERT9_20334
69@ = 1

:DESERT9_20334
159@ += 2.25
set_lvar_float_to_lvar_float 160@ = 161@
160@ *= -1.19
160@ += 1962.38
add_explosion 315.8258 {y} 159@ {z} 160@ {type} ExplosionType.Aircraft

:DESERT9_20387
88@ += 1
goto @DESERT9_19944

:DESERT9_20401
if 
  69@ == 1
goto_if_false @DESERT9_20460
task_fall_and_get_up $scplayer {fallDown} False {timeOnGround} 0
68@ = 7
71@ = 0
clear_prints 
print 'DES9_42' {time} 4000 {flag} 1

:DESERT9_20460
return 

:DESERT9_20462
if 
  477@ <> 0
goto_if_false @DESERT9_20662
if 
  478@ == 0
goto_if_false @DESERT9_20540
478@ = 1
set_lvar_int_to_lvar_int 479@ = TIMERA
480@ = 0
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20540
if 
  478@ == 1
goto_if_false @DESERT9_20662
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 682@
goto_if_false @DESERT9_20662
set_lvar_int_to_lvar_int 626@ = 491@(480@,10i)
480@ += 1
501@ -= 1
if 
  501@ == 0
goto_if_false @DESERT9_20642
477@ = 0
478@ = 0
goto @DESERT9_20662

:DESERT9_20642
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20662
switch_start 629@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DESERT9_21691 {caseNum1} 0 {caseLabel1} @DESERT9_20725 {caseNum2} 1 {caseLabel2} @DESERT9_20833 {caseNum3} 2 {caseLabel3} @DESERT9_21362 {caseNum4} 3 {caseLabel4} @DESERT9_21438 {caseNum5} 4 {caseLabel5} @DESERT9_21496 {caseNum6} 5 {caseLabel6} @DESERT9_21610 {caseNum7} -1 {caseLabel7} @DESERT9_21691

:DESERT9_20725
set_lvar_text_label 504@s = 'DES9_BA'
set_lvar_text_label 506@s = 'DES9_BB'
set_lvar_int_to_constant 583@ = 18202
set_lvar_int_to_constant 584@ = 18203
632@ = 0
633@ = 0
set_lvar_int_to_var_int 672@ = $scplayer
629@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 583@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 584@
623@ = 1
624@ = 2
goto @DESERT9_21691

:DESERT9_20833
if 
  626@ <> 0
goto_if_false @DESERT9_21355
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 630@
goto_if_false @DESERT9_21355
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DESERT9_21355
if 
  is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_20922
625@ = 1
goto @DESERT9_20985

:DESERT9_20922
if 
  is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_20955
625@ = 2
goto @DESERT9_20985

:DESERT9_20955
625@ = 1
set_lvar_int_to_lvar_int 623@ = 626@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 582@(626@,40i)

:DESERT9_20985
if 
  has_mission_audio_loaded 625@
goto_if_false @DESERT9_21343
if 
  631@(626@,40i) <> 0
goto_if_false @DESERT9_21116
set_lvar_int_to_lvar_int 679@ = 631@(626@,40i)
set_lvar_int_to_lvar_int 680@ = 671@(679@,7i)
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21116
attach_mission_audio_to_char 625@ {handle} 680@
if 
  not is_char_talking 680@
goto_if_false @DESERT9_21109
678@ = 1
start_char_facial_talk 680@ {duration} 15000
goto @DESERT9_21116

:DESERT9_21109
disable_char_speech 680@ {stopNow} False

:DESERT9_21116
if 
  631@(626@,40i) == 0
goto_if_false @DESERT9_21145
678@ = 1

:DESERT9_21145
if 
  678@ == 1
goto_if_false @DESERT9_21336
play_mission_audio 625@
clear_prints 
print 502@(626@,40s) {time} 10000 {flag} 1
629@ += 1
678@ = 0
626@ += 1
set_lvar_int_to_lvar_int 627@ = 626@
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21336
if 
  625@ == 1
goto_if_false @DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_21291
load_mission_audio MissionAudioSlot.Slot2 {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 624@ = 626@

:DESERT9_21291
goto @DESERT9_21336

:DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_21336
load_mission_audio MissionAudioSlot.Slot1 {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 623@ = 626@

:DESERT9_21336
goto @DESERT9_21355

:DESERT9_21343
load_mission_audio 625@ {audioId} 582@(626@,40i)

:DESERT9_21355
goto @DESERT9_21691

:DESERT9_21362
if 
  has_mission_audio_finished 625@
goto_if_false @DESERT9_21392
629@ += 1
goto @DESERT9_21431

:DESERT9_21392
if 
  does_char_exist 680@
goto_if_false @DESERT9_21431
if 
  is_char_dead 680@
goto_if_false @DESERT9_21431
629@ += 1

:DESERT9_21431
goto @DESERT9_21691

:DESERT9_21438
clear_mission_audio 625@
622@(625@,3i) = 0
clear_prints 
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21482
stop_char_facial_talk 680@
enable_char_speech 680@

:DESERT9_21482
629@ += 1
goto @DESERT9_21691

:DESERT9_21496
626@ += 1
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21549
load_mission_audio 625@ {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 622@(625@,3i) = 626@

:DESERT9_21549
628@ -= 1
if 
  628@ <= 0
goto_if_false @DESERT9_21588
626@ = 0
goto @DESERT9_21596

:DESERT9_21588
set_lvar_int_to_lvar_int 626@ = 627@

:DESERT9_21596
629@ = 1
goto @DESERT9_21691

:DESERT9_21610
629@ = 1
626@ = 0
628@ = 0
477@ = 0
501@ = 0
clear_mission_audio 625@
622@(625@,3i) = 0
clear_prints 
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21684
enable_char_speech 680@

:DESERT9_21684
goto @DESERT9_21691

:DESERT9_21691
return 

:DESERT9_21693
if 
  171@ == 1
goto_if_false @DESERT9_21844
if 
  684@ == 0
goto_if_false @DESERT9_21768
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 5000
print 'DES9_A9' {time} 4000 {flag} 1
684@ = 1

:DESERT9_21768
if 
  684@ == 1
goto_if_false @DESERT9_21844
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 683@
goto_if_false @DESERT9_21844
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 4500
print 'DES9_A6' {time} 4500 {flag} 1
684@ = 2

:DESERT9_21844
return 

:DESERT9_21846
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_pickup $para_max_Vz
return 

:DESERT9_21869
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Detonator
goto_if_false @DESERT9_21894
remove_weapon_from_char $scplayer {weaponType} WeaponType.Detonator

:DESERT9_21894
$flag_desert_mission_counter += 1
register_mission_passed 'DESERT9'
print_with_number_big 'M_PASS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:DESERT9_21954
$player_fall_safe = 0
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_21992
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DESERT9_21992
set_player_fire_button $player1 {enabled} True
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_22033
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
set_char_visible $scplayer {state} True

:DESERT9_22033
camera_reset_new_scriptables 
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_22080
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_char_position $scplayer {state} False
disable_player_sprint $player1 {state} False

:DESERT9_22080
switch_entry_exit 'DESHOUS' {state} True
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 592
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 371
remove_animation "AIRPORT"
remove_animation "CARRY"
mark_model_as_no_longer_needed 335
remove_car_recording 150
remove_car_recording 152
remove_car_recording 149
remove_car_recording 167
remove_car_recording 168
unload_special_character 1
remove_car_recording 149
414@ = 0

:DESERT9_22218
if 
  8 > 414@
goto_if_false @DESERT9_22279
if 
  not is_char_dead 40@(414@,8i)
goto_if_false @DESERT9_22265
delete_char 40@(414@,8i)

:DESERT9_22265
414@ += 1
goto @DESERT9_22218

:DESERT9_22279
414@ = 0

:DESERT9_22286
if 
  15 > 414@
goto_if_false @DESERT9_22327
delete_object 225@(414@,15i)
414@ += 1
goto @DESERT9_22286

:DESERT9_22327
remove_all_script_fires 
if 
  not is_car_dead 36@
goto_if_false @DESERT9_22369
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @DESERT9_22369
delete_car 36@

:DESERT9_22369
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22390
delete_car 186@

:DESERT9_22390
if 
  not is_car_dead 37@
goto_if_false @DESERT9_22430
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @DESERT9_22430
delete_car 37@

:DESERT9_22430
if 
  not is_car_dead 38@
goto_if_false @DESERT9_22470
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DESERT9_22470
delete_car 38@

:DESERT9_22470
if 
  not is_car_dead 34@
goto_if_false @DESERT9_22491
delete_car 34@

:DESERT9_22491
if 
  not is_car_dead 35@
goto_if_false @DESERT9_22545
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT9_22545
set_vehicle_area_visible 35@ {interiorId} 0
set_car_visible 35@ {state} True
mark_car_as_no_longer_needed 35@

:DESERT9_22545
if 
  68@ <> 9
goto_if_false @DESERT9_22591
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22584
delete_car 186@

:DESERT9_22584
goto @DESERT9_22612

:DESERT9_22591
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22612
mark_car_as_no_longer_needed 186@

:DESERT9_22612
kill_fx_system 174@
remove_blip 152@
if 
  is_player_playing $player1
goto_if_false @DESERT9_22645
disable_player_sprint $player1 {state} False

:DESERT9_22645
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
remove_blip 152@
remove_blip 153@
display_radar True
$onmission = 0
$timer_mobile_start = get_game_timer 
$para_control_off = 0
return 
return 

//-------------Mission 81---------------
// Originally: Black Project

:MAF4
script_name 'MAF4'
gosub @MAF4_47
if 
  has_deatharrest_been_executed 
goto_if_false @MAF4_38
gosub @MAF4_29929

:MAF4_38
gosub @MAF4_30253
terminate_this_script 

:MAF4_47
register_mission_given 
wait 0
load_mission_text 'DSERT8'
force_weather_now WeatherType.SunnyDesert
34@ = get_int_stat StatId.Fat
if 
  34@ > 600
goto_if_false @MAF4_326
load_cutscene 'D8_ALT'

:MAF4_105
if 
  not has_cutscene_loaded 
goto_if_false @MAF4_129
wait 0
goto @MAF4_105

:MAF4_129
clear_area 405.2136 {y} 2525.8999 {z} 16.4918 {radius} 7.5 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:MAF4_162
if 
  not has_cutscene_finished 
goto_if_false @MAF4_186
wait 0
goto @MAF4_162

:MAF4_186
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MAF4_199
if 
  get_fading_status 
goto_if_false @MAF4_223
wait 0
goto @MAF4_199

:MAF4_223
clear_cutscene 
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
goto @MAF4_30253
goto @MAF4_451

:MAF4_326
clear_area $desert2X {y} $desert2Y {z} $desert2Z {radius} 100.0 {clearParticles} False
load_cutscene 'DESERT8'

:MAF4_355
if 
  not has_cutscene_loaded 
goto_if_false @MAF4_379
wait 0
goto @MAF4_355

:MAF4_379
start_cutscene 
do_fade 1000 {direction} Fade.In

:MAF4_388
if 
  not has_cutscene_finished 
goto_if_false @MAF4_412
wait 0
goto @MAF4_388

:MAF4_412
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MAF4_427
if 
  get_fading_status 
goto_if_false @MAF4_451
wait 0
goto @MAF4_427

:MAF4_451
49@ = 108.51
56@ = 1917.2679
63@ = 17.63
70@ = 135.323
77@ = 1917.776
84@ = 18.71
50@ = 180.018
57@ = 1904.214
64@ = 17.255
71@ = 243.707
78@ = 1903.543
85@ = 18.639
51@ = 239.0798
58@ = 1904.087
65@ = 16.899
72@ = 188.371
79@ = 1905.376
86@ = 16.825
52@ = 166.119
59@ = 1857.384
66@ = 16.764
73@ = 276.669
80@ = 1856.339
87@ = 16.671
53@ = 191.28
60@ = 1822.46
67@ = 16.83
74@ = 252.37
81@ = 1821.89
88@ = 17.04
54@ = 138.07
61@ = 1823.01
68@ = 16.88
75@ = 105.1
82@ = 1867.21
89@ = 16.97
55@ = 192.9
62@ = 1809.5601
69@ = 16.8
76@ = 144.2
83@ = 1812.52
90@ = 16.78
163@ = 0
164@ = 0
165@ = 0
166@ = 0

:MAF4_899
if 
  7 > 165@
goto_if_false @MAF4_942
167@(165@,7i) = 0
165@ += 1
goto @MAF4_899

:MAF4_942
174@ = 0
175@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
198@ = 0
203@ = 0
204@ = 0
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
request_model 287
request_model 356
request_model #A51_SPOTBULB
request_model #A51_SPOTHOUSING
request_model #A51_SPOTBASE
request_model 483
load_special_character 1 {modelName} 'TRUTH'
request_car_recording 340
request_car_recording 341
request_model 335
request_model 347
request_model 358
request_model 369
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1809
load_mission_audio MissionAudioSlot.Slot2 {audioId} 26618
load_mission_audio MissionAudioSlot.Slot1 {audioId} 38442
load_all_models_now 

:MAF4_1319
if or
  not has_model_loaded 287
  not has_model_loaded 356
  not has_model_loaded #A51_SPOTBULB
  not has_model_loaded #A51_SPOTHOUSING
  not has_model_loaded #A51_SPOTBASE
  not has_model_loaded 483
goto_if_false @MAF4_1371
wait 0
goto @MAF4_1319

:MAF4_1371
if or
  not has_special_character_loaded 1
  not has_car_recording_been_loaded 340
  not has_car_recording_been_loaded 341
  not has_model_loaded 335
  not has_model_loaded 347
  not has_model_loaded 358
goto_if_false @MAF4_1422
wait 0
goto @MAF4_1371

:MAF4_1422
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_model_loaded 369
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_1461
wait 0
goto @MAF4_1422

:MAF4_1461
set_disable_military_zones True
load_scene_in_direction 49.8744 {y} 1900.2889 {z} 17.7833 {heading} 99.0
160@ = load_char_decision_maker DecisionMakerType.Steal
159@ = load_char_decision_maker DecisionMakerType.Empty
161@ = load_char_decision_maker DecisionMakerType.Weak
162@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission3
107@ = create_car 483 {x} 22.4045 {y} 1881.61 {z} 16.6484
set_car_heading 107@ {heading} 306.3276
change_car_colour 107@ {color1} 1 {color2} 1
give_vehicle_paintjob 107@ {paintjobId} 0
106@ = create_char_as_passenger 107@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_decision_maker 106@ {handleOrTemplate} 159@
warp_char_into_car $scplayer {vehicle} 107@
set_fixed_camera_position 49.8744 {y} 1900.2889 {z} 17.7833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 48.9571 {y} 1899.896 {z} 17.8444 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 36.09 {y} 1921.04 {z} 18.93
set_char_heading $scplayer {heading} 268.5112
load_scene 106.9 {y} -1923.21 {z} 18.35
clear_area 82.775 {y} 1917.325 {z} 17.733 {radius} 150.0 {clearParticles} True
set_car_density_multiplier 0.1
set_ped_density_multiplier 0.1
set_radar_zoom 75
force_interior_lighting_for_player $player1 {state} True
set_time_of_day 23 {minutes} 30
TIMERA = 0
switch_widescreen True
set_player_control $player1 {state} False
shut_char_up $scplayer {state} True
do_fade 1000 {direction} Fade.In
146@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 108.48 {y} 1919.29 {z} 18.56
147@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 228.91 {y} 1858.65 {z} 14.8
148@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 247.016 {y} 1859.22 {z} 14.08
149@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 273.61 {y} 1816.3199 {z} 1.02
150@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 255.36 {y} 1802.007 {z} 7.47
151@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 292.46 {y} 1817.89 {z} 1.015
show_blips_on_all_levels True
delete_object $5176
clear_area 22.4045 {y} 1881.61 {z} 400.0 {radius} 400.0 {clearParticles} False
clear_wanted_level $player1

:MAF4_1996
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MAF4_2022
goto @MAF4_29999

:MAF4_2022
if 
  5 > 164@
goto_if_false @MAF4_13445
if 
  164@ == 0
goto_if_false @MAF4_2116
if 
  not is_car_dead 107@
goto_if_false @MAF4_2116
if 
  not is_char_dead 106@
goto_if_false @MAF4_2116
start_playback_recorded_car 107@ {path} 340
task_look_at_char $scplayer {target} 106@ {time} 10000
164@ = 1

:MAF4_2116
if 
  164@ == 1
goto_if_false @MAF4_2217
if 
  not is_car_dead 107@
goto_if_false @MAF4_2217
if 
  not is_char_dead 106@
goto_if_false @MAF4_2217
if 
  not is_playback_going_on_for_car 107@
goto_if_false @MAF4_2217
176@ = 0
177@ = 0
skip_cutscene_start_internal @MAF4_8238
TIMERA = 0
164@ = 2

:MAF4_2217
if 
  164@ == 2
goto_if_false @MAF4_2444
if 
  TIMERA > 1000
goto_if_false @MAF4_2444
if 
  not is_car_dead 107@
goto_if_false @MAF4_2444
if 
  not is_char_dead 106@
goto_if_false @MAF4_2444
if 
  is_char_sitting_in_car $scplayer {vehicle} 107@
goto_if_false @MAF4_2444
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_LA' {time} 3000 {flag} 1

:MAF4_2325
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_2351
wait 0
goto @MAF4_2325

:MAF4_2351
load_mission_audio MissionAudioSlot.Slot1 {audioId} 38443
play_mission_audio MissionAudioSlot.Slot2
print_now 'TRUX_AS' {time} 2500 {flag} 1

:MAF4_2380
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_2406
wait 0
goto @MAF4_2380

:MAF4_2406
if 
  not is_car_dead 107@
goto_if_false @MAF4_2430
task_leave_car $scplayer {vehicle} 107@

:MAF4_2430
TIMERA = 0
164@ = 3

:MAF4_2444
if 
  164@ == 3
goto_if_false @MAF4_2686
if 
  not is_car_dead 107@
goto_if_false @MAF4_2686
if 
  not is_char_dead 106@
goto_if_false @MAF4_2686
if 
  not is_char_in_car $scplayer {vehicle} 107@
goto_if_false @MAF4_2686
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_2686
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_2686
if 
  is_char_in_car 106@ {vehicle} 107@
goto_if_false @MAF4_2570
task_shuffle_to_next_car_seat 106@ {vehicle} 107@

:MAF4_2570
if 
  not is_car_dead 107@
goto_if_false @MAF4_2597
task_look_at_vehicle $scplayer {vehicle} 107@ {time} 5000

:MAF4_2597
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_LC' {time} 2000 {flag} 1

:MAF4_2617
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_2643
wait 0
goto @MAF4_2617

:MAF4_2643
wait 350
if 
  not is_car_dead 107@
goto_if_false @MAF4_2672
start_playback_recorded_car 107@ {path} 341

:MAF4_2672
TIMERA = 0
164@ = 4

:MAF4_2686
if 
  164@ == 4
goto_if_false @MAF4_13445
if 
  TIMERA > 4000
goto_if_false @MAF4_13445
35@ = create_searchlight 161.513 {y} 1932.9821 {z} 35.391 {xPoint} 49@ {yPoint} 56@ {zPoint} 63@ {radius} 12.5 {radiusPoint} 0.5
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
attach_searchlight_to_searchlight_object 35@ {spotTower} 93@ {spotHousing} 92@ {spotBulb} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
136@ = create_fx_system_on_object "SHOOTLIGHT" {object} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
36@ = create_searchlight 233.067 {y} 1934.892 {z} 33.139 {xPoint} 50@ {yPoint} 57@ {zPoint} 64@ {radius} 10.5 {radiusPoint} 0.5
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
attach_searchlight_to_searchlight_object 36@ {spotTower} 95@ {spotHousing} 94@ {spotBulb} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
137@ = create_fx_system_on_object "SHOOTLIGHT" {object} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
37@ = create_searchlight 266.713 {y} 1894.979 {z} 34.139 {xPoint} 51@ {yPoint} 58@ {zPoint} 65@ {radius} 10.5 {radiusPoint} 0.5
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
attach_searchlight_to_searchlight_object 37@ {spotTower} 97@ {spotHousing} 96@ {spotBulb} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
138@ = create_fx_system_on_object "SHOOTLIGHT" {object} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
38@ = create_searchlight 261.97 {y} 1808.0699 {z} 34.05 {xPoint} 52@ {yPoint} 59@ {zPoint} 66@ {radius} 10.5 {radiusPoint} 0.5
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
attach_searchlight_to_searchlight_object 38@ {spotTower} 99@ {spotHousing} 98@ {spotBulb} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
139@ = create_fx_system_on_object "SHOOTLIGHT" {object} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
39@ = create_searchlight 164.228 {y} 1837.892 {z} 34.05 {xPoint} 53@ {yPoint} 60@ {zPoint} 67@ {radius} 10.5 {radiusPoint} 0.5
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
attach_searchlight_to_searchlight_object 39@ {spotTower} 101@ {spotHousing} 100@ {spotBulb} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
140@ = create_fx_system_on_object "SHOOTLIGHT" {object} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
40@ = create_searchlight 103.887 {y} 1901.057 {z} 35.723 {xPoint} 54@ {yPoint} 61@ {zPoint} 68@ {radius} 10.5 {radiusPoint} 0.5
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
attach_searchlight_to_searchlight_object 40@ {spotTower} 103@ {spotHousing} 102@ {spotBulb} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
141@ = create_fx_system_on_object "SHOOTLIGHT" {object} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
41@ = create_searchlight 261.97 {y} 1808.0699 {z} 36.05 {xPoint} 55@ {yPoint} 62@ {zPoint} 69@ {radius} 10.5 {radiusPoint} 0.5
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
attach_searchlight_to_searchlight_object 41@ {spotTower} 105@ {spotHousing} 104@ {spotBulb} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
142@ = create_fx_system_on_object "SHOOTLIGHT" {object} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
gosub @MAF4_29696
178@ = 1
109@ = create_char PedType.Mission1 {modelId} 287 {x} 112.39 {y} 1931.193 {z} 17.77
set_char_decision_maker 109@ {handleOrTemplate} 160@
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 109@ {range} 200.0
flush_patrol_route 
extend_patrol_route 114.51 {y} 1914.793 {z} 18.8 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 112.39 {y} 1931.193 {z} 18.77 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 109@ {speed} MoveState.Walk {mode} RouteMode.Loop
205@ = add_blip_for_char 109@
set_blip_always_display_on_zoomed_radar 205@ {state} True
change_blip_display 205@ {display} BlipDisplay.BlipOnly
set_inform_respected_friends 109@ {radius} 20.0 {_p3} 1
110@ = create_char PedType.Mission1 {modelId} 287 {x} 125.135 {y} 1916.59 {z} 17.9
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 200.0
flush_patrol_route 
extend_patrol_route 124.716 {y} 1890.25 {z} 18.33 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 159.0 {y} 1887.9 {z} 19.5 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 161.32 {y} 1914.42 {z} 18.6 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 125.135 {y} 1916.59 {z} 18.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 110@ {speed} MoveState.Walk {mode} RouteMode.Loop
206@ = add_blip_for_char 110@
set_blip_always_display_on_zoomed_radar 206@ {state} True
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_char_accuracy 110@ {accuracy} 85
set_inform_respected_friends 110@ {radius} 30.0 {_p3} 1
111@ = create_char PedType.Mission1 {modelId} 287 {x} 131.37 {y} 1821.139 {z} 16.6
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 200.0
flush_patrol_route 
extend_patrol_route 130.62 {y} 1855.297 {z} 17.73 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 102.09 {y} 1858.6 {z} 17.7 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 102.94 {y} 1839.78 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 131.37 {y} 1821.139 {z} 17.6 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 111@ {speed} MoveState.Walk {mode} RouteMode.Loop
207@ = add_blip_for_char 111@
set_blip_always_display_on_zoomed_radar 207@ {state} True
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_char_accuracy 111@ {accuracy} 80
set_inform_respected_friends 111@ {radius} 30.0 {_p3} 1
112@ = create_char PedType.Mission1 {modelId} 287 {x} 163.458 {y} 1824.58 {z} 17.64
set_char_heading 112@ {heading} 180.123
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 200.0
208@ = add_blip_for_char 112@
set_blip_always_display_on_zoomed_radar 208@ {state} True
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_char_accuracy 112@ {accuracy} 85
set_inform_respected_friends 112@ {radius} 30.0 {_p3} 1
113@ = create_char PedType.Mission1 {modelId} 287 {x} 189.91 {y} 1916.399 {z} 16.64
set_char_decision_maker 113@ {handleOrTemplate} 160@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 200.0
flush_patrol_route 
extend_patrol_route 168.0187 {y} 1916.2791 {z} 18.37 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 189.91 {y} 1916.399 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
set_blip_always_display_on_zoomed_radar 209@ {state} True
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_char_accuracy 113@ {accuracy} 85
set_inform_respected_friends 113@ {radius} 30.0 {_p3} 1
114@ = create_char PedType.Mission1 {modelId} 287 {x} 191.535 {y} 1809.588 {z} 16.641
set_char_decision_maker 114@ {handleOrTemplate} 160@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 200.0
flush_patrol_route 
extend_patrol_route 131.24 {y} 1811.194 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 191.535 {y} 1809.588 {z} 17.641 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
set_blip_always_display_on_zoomed_radar 210@ {state} True
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_char_accuracy 114@ {accuracy} 85
set_inform_respected_friends 114@ {radius} 30.0 {_p3} 1
115@ = create_char PedType.Mission1 {modelId} 287 {x} 195.36 {y} 1872.92 {z} 16.64
set_char_decision_maker 115@ {handleOrTemplate} 160@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 200.0
flush_patrol_route 
extend_patrol_route 231.095 {y} 1872.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 195.36 {y} 1872.92 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
set_blip_always_display_on_zoomed_radar 211@ {state} True
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 85
set_inform_respected_friends 115@ {radius} 20.0 {_p3} 1
116@ = create_char PedType.Mission1 {modelId} 287 {x} 108.673 {y} 1886.1801 {z} 17.04
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 200.0
flush_patrol_route 
extend_patrol_route 107.065 {y} 1865.8 {z} 17.78 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 126.78 {y} 1864.25 {z} 17.8 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 127.842 {y} 1885.04 {z} 18.027 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 108.673 {y} 1886.1801 {z} 18.04 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 116@ {speed} MoveState.Walk {mode} RouteMode.Loop
212@ = add_blip_for_char 116@
set_blip_always_display_on_zoomed_radar 212@ {state} True
change_blip_display 212@ {display} BlipDisplay.BlipOnly
set_char_accuracy 116@ {accuracy} 85
set_inform_respected_friends 116@ {radius} 30.0 {_p3} 1
117@ = create_char PedType.Mission1 {modelId} 287 {x} 173.671 {y} 1886.8409 {z} 19.9
set_char_decision_maker 117@ {handleOrTemplate} 160@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 200.0
flush_patrol_route 
extend_patrol_route 174.25 {y} 1866.51 {z} 20.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 173.671 {y} 1886.8409 {z} 20.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
set_blip_always_display_on_zoomed_radar 213@ {state} True
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_char_accuracy 117@ {accuracy} 85
set_inform_respected_friends 117@ {radius} 30.0 {_p3} 1
118@ = create_char PedType.Mission1 {modelId} 287 {x} 249.99 {y} 1874.78 {z} 19.6
set_char_decision_maker 118@ {handleOrTemplate} 160@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.99 {y} 1906.5601 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.99 {y} 1874.78 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
set_blip_always_display_on_zoomed_radar 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_char_accuracy 118@ {accuracy} 85
set_inform_respected_friends 118@ {radius} 30.0 {_p3} 1
119@ = create_char PedType.Mission1 {modelId} 287 {x} 224.26 {y} 1916.79 {z} 16.64
set_char_decision_maker 119@ {handleOrTemplate} 160@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 119@ {range} 200.0
flush_patrol_route 
extend_patrol_route 204.475 {y} 1915.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 204.628 {y} 1904.521 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 221.645 {y} 1905.13 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 224.26 {y} 1916.79 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 119@ {speed} MoveState.Walk {mode} RouteMode.Loop
215@ = add_blip_for_char 119@
set_blip_always_display_on_zoomed_radar 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly
set_char_accuracy 119@ {accuracy} 85
set_inform_respected_friends 119@ {radius} 30.0 {_p3} 1
120@ = create_char PedType.Mission1 {modelId} 287 {x} 209.07 {y} 1833.63 {z} 16.64
set_char_heading 120@ {heading} 346.579
set_char_decision_maker 120@ {handleOrTemplate} 160@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 120@ {range} 200.0
216@ = add_blip_for_char 120@
set_blip_always_display_on_zoomed_radar 216@ {state} True
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_char_accuracy 120@ {accuracy} 85
set_inform_respected_friends 120@ {radius} 30.0 {_p3} 1
121@ = create_char PedType.Mission1 {modelId} 287 {x} 268.027 {y} 1862.269 {z} 17.64
set_char_decision_maker 121@ {handleOrTemplate} 160@
give_weapon_to_char 121@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 121@ {range} 200.0
flush_patrol_route 
extend_patrol_route 266.9 {y} 1822.3 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 268.027 {y} 1862.269 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 121@ {speed} MoveState.Walk {mode} RouteMode.Loop
217@ = add_blip_for_char 121@
set_blip_always_display_on_zoomed_radar 217@ {state} True
change_blip_display 217@ {display} BlipDisplay.BlipOnly
set_char_accuracy 121@ {accuracy} 85
set_inform_respected_friends 121@ {radius} 30.0 {_p3} 1
122@ = create_char PedType.Mission1 {modelId} 287 {x} 221.16 {y} 1858.28 {z} 20.63
set_char_decision_maker 122@ {handleOrTemplate} 160@
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 122@ {accuracy} 90
set_follow_node_threshold_distance 122@ {range} 200.0
flush_patrol_route 
extend_patrol_route 198.711 {y} 1857.64 {z} 19.633 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 221.16 {y} 1858.28 {z} 20.63 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 122@ {speed} MoveState.Walk {mode} RouteMode.Loop
218@ = add_blip_for_char 122@
set_blip_always_display_on_zoomed_radar 218@ {state} True
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_char_accuracy 122@ {accuracy} 90
set_inform_respected_friends 122@ {radius} 30.0 {_p3} 1
123@ = create_char PedType.Mission1 {modelId} 287 {x} 218.45 {y} 1820.78 {z} 16.64
set_char_decision_maker 123@ {handleOrTemplate} 160@
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 123@ {accuracy} 90
set_follow_node_threshold_distance 123@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.31 {y} 1821.924 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 218.45 {y} 1820.78 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 123@ {speed} MoveState.Walk {mode} RouteMode.Loop
219@ = add_blip_for_char 123@
set_blip_always_display_on_zoomed_radar 219@ {state} True
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_char_accuracy 123@ {accuracy} 80
set_inform_respected_friends 123@ {radius} 30.0 {_p3} 1
do_fade 100 {direction} Fade.Out

:MAF4_6744
if 
  get_fading_status 
goto_if_false @MAF4_6768
wait 0
goto @MAF4_6744

:MAF4_6768
set_fixed_camera_position 312.659 {y} 1806.521 {z} 26.272 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 311.7959 {y} 1807.022 {z} 26.2183 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 312.659 {y} 1806.521 {z} 26.272 {heading} 60.2
do_fade 100 {direction} Fade.In
print_now 'DST8_1' {time} 7000 {flag} 1
set_char_coordinates $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363
TIMERA = 0

:MAF4_6900
if 
  7000 > TIMERA
goto_if_false @MAF4_6930
wait 0
goto @MAF4_6900

:MAF4_6930
print_now 'DST8_18' {time} 8000 {flag} 1
set_fixed_camera_position 232.5476 {y} 1911.022 {z} 34.7955 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 231.9904 {y} 1910.261 {z} 34.4617 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_7004
if 
  4000 > TIMERA
goto_if_false @MAF4_7034
wait 0
goto @MAF4_7004

:MAF4_7034
set_fixed_camera_position 183.9385 {y} 1801.77 {z} 29.0751 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 184.8011 {y} 1802.215 {z} 28.8356 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_7092
if 
  4000 > TIMERA
goto_if_false @MAF4_7122
wait 0
goto @MAF4_7092

:MAF4_7122
set_fixed_camera_position 120.4534 {y} 1943.522 {z} 29.8174 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 120.5729 {y} 1942.533 {z} 29.7278 {switchStyle} SwitchType.JumpCut
print_now 'DST8_19' {time} 4000 {flag} 1
print 'DST8_47' {time} 4000 {flag} 1
print 'DST8_48' {time} 4000 {flag} 1
TIMERA = 0

:MAF4_7228
if 
  12000 > TIMERA
goto_if_false @MAF4_7258
wait 0
goto @MAF4_7228

:MAF4_7258
124@ = create_char PedType.Mission3 {modelId} 287 {x} 103.9055 {y} 1900.535 {z} 24.4985
set_char_decision_maker 124@ {handleOrTemplate} 159@
set_char_heading 124@ {heading} 6.0802
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 124@ {state} True
set_char_health 124@ {health} 10
220@ = add_blip_for_char 124@
set_blip_always_display_on_zoomed_radar 220@ {state} True
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 124@ {handleOrTemplate} 162@
125@ = create_char PedType.Mission3 {modelId} 287 {x} 113.3839 {y} 1814.261 {z} 24.4985
set_char_decision_maker 125@ {handleOrTemplate} 159@
set_char_heading 125@ {heading} 5.0273
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 125@ {state} True
set_char_health 125@ {health} 10
221@ = add_blip_for_char 125@
set_blip_always_display_on_zoomed_radar 221@ {state} True
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 125@ {handleOrTemplate} 162@
126@ = create_char PedType.Mission3 {modelId} 287 {x} 165.6023 {y} 1850.0699 {z} 24.4985
set_char_decision_maker 126@ {handleOrTemplate} 159@
set_char_heading 126@ {heading} 5.0273
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 126@ {state} True
set_char_health 126@ {health} 10
222@ = add_blip_for_char 126@
set_blip_always_display_on_zoomed_radar 222@ {state} True
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 126@ {handleOrTemplate} 162@
127@ = create_char PedType.Mission3 {modelId} 287 {x} 261.8728 {y} 1807.938 {z} 24.4985
set_char_decision_maker 127@ {handleOrTemplate} 159@
set_char_heading 127@ {heading} 5.0273
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 127@ {state} True
set_char_health 127@ {health} 10
223@ = add_blip_for_char 127@
set_blip_always_display_on_zoomed_radar 223@ {state} True
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 127@ {handleOrTemplate} 162@
128@ = create_char PedType.Mission3 {modelId} 287 {x} 267.1389 {y} 1895.485 {z} 24.4985
set_char_decision_maker 128@ {handleOrTemplate} 159@
set_char_heading 128@ {heading} 119.7683
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 128@ {state} True
set_char_health 128@ {health} 10
224@ = add_blip_for_char 128@
set_blip_always_display_on_zoomed_radar 224@ {state} True
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 128@ {handleOrTemplate} 162@
129@ = create_char PedType.Mission3 {modelId} 287 {x} 161.9575 {y} 1933.342 {z} 24.4985
set_char_decision_maker 129@ {handleOrTemplate} 159@
set_char_heading 129@ {heading} 119.7683
give_weapon_to_char 129@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 129@ {state} True
set_char_health 129@ {health} 10
225@ = add_blip_for_char 129@
set_blip_always_display_on_zoomed_radar 225@ {state} True
change_blip_display 225@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 129@ {handleOrTemplate} 162@
130@ = create_char PedType.Mission3 {modelId} 287 {x} 233.6724 {y} 1934.623 {z} 24.4985
set_char_decision_maker 130@ {handleOrTemplate} 159@
set_char_heading 130@ {heading} 119.7683
give_weapon_to_char 130@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 130@ {state} True
set_char_health 130@ {health} 10
226@ = add_blip_for_char 130@
set_blip_always_display_on_zoomed_radar 226@ {state} True
change_blip_display 226@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 130@ {handleOrTemplate} 162@
set_fixed_camera_position 113.0058 {y} 1934.089 {z} 18.245 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 113.0995 {y} 1933.1121 {z} 18.4334 {switchStyle} SwitchType.JumpCut
print_now 'DST8_21' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_8011
if 
  5000 > TIMERA
goto_if_false @MAF4_8041
wait 0
goto @MAF4_8011

:MAF4_8041
set_fixed_camera_position 112.0028 {y} 1893.8459 {z} 19.5192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 111.2033 {y} 1894.447 {z} 19.5192 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_pos True
camera_set_vector_move 112.0028 {fromY} 1893.8459 {fromZ} 19.5192 {toX} 112.0028 {toY} 1893.8459 {toZ} 35.5192 {time} 6000 {ease} True
print_now 'DST8_22' {time} 6500 {flag} 1
TIMERA = 0

:MAF4_8158
if 
  6500 > TIMERA
goto_if_false @MAF4_8188
wait 0
goto @MAF4_8158

:MAF4_8188
177@ = 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 70
give_weapon_to_char $scplayer {weaponType} WeaponType.Infrared {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 35
176@ = 1

:MAF4_8238
skip_cutscene_end 
if 
  176@ == 0
goto_if_false @MAF4_13285
do_fade 250 {direction} Fade.Out
clear_prints 

:MAF4_8267
if 
  get_fading_status 
goto_if_false @MAF4_8291
wait 0
goto @MAF4_8267

:MAF4_8291
if 
  not is_car_dead 107@
goto_if_false @MAF4_8328
if 
  is_playback_going_on_for_car 107@
goto_if_false @MAF4_8328
stop_playback_recorded_car 107@

:MAF4_8328
if 
  is_char_in_any_car $scplayer
goto_if_false @MAF4_8374
warp_char_from_car_to_coord $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363

:MAF4_8374
set_char_coordinates $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363
delete_char 106@
delete_car 107@
unload_special_character 1
mark_model_as_no_longer_needed 483
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
if 
  177@ == 0
goto_if_false @MAF4_8494
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 70
give_weapon_to_char $scplayer {weaponType} WeaponType.Infrared {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 35

:MAF4_8494
if 
  178@ == 0
goto_if_false @MAF4_9842
35@ = create_searchlight 161.513 {y} 1932.9821 {z} 35.391 {xPoint} 49@ {yPoint} 56@ {zPoint} 63@ {radius} 12.5 {radiusPoint} 0.5
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
attach_searchlight_to_searchlight_object 35@ {spotTower} 93@ {spotHousing} 92@ {spotBulb} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
136@ = create_fx_system_on_object "SHOOTLIGHT" {object} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
36@ = create_searchlight 233.067 {y} 1934.892 {z} 33.139 {xPoint} 50@ {yPoint} 57@ {zPoint} 64@ {radius} 10.5 {radiusPoint} 0.5
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
attach_searchlight_to_searchlight_object 36@ {spotTower} 95@ {spotHousing} 94@ {spotBulb} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
137@ = create_fx_system_on_object "SHOOTLIGHT" {object} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
37@ = create_searchlight 266.713 {y} 1894.979 {z} 34.139 {xPoint} 51@ {yPoint} 58@ {zPoint} 65@ {radius} 10.5 {radiusPoint} 0.5
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
attach_searchlight_to_searchlight_object 37@ {spotTower} 97@ {spotHousing} 96@ {spotBulb} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
138@ = create_fx_system_on_object "SHOOTLIGHT" {object} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
38@ = create_searchlight 261.97 {y} 1808.0699 {z} 34.05 {xPoint} 52@ {yPoint} 59@ {zPoint} 66@ {radius} 10.5 {radiusPoint} 0.5
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
attach_searchlight_to_searchlight_object 38@ {spotTower} 99@ {spotHousing} 98@ {spotBulb} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
139@ = create_fx_system_on_object "SHOOTLIGHT" {object} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
39@ = create_searchlight 164.228 {y} 1837.892 {z} 34.05 {xPoint} 53@ {yPoint} 60@ {zPoint} 67@ {radius} 10.5 {radiusPoint} 0.5
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
attach_searchlight_to_searchlight_object 39@ {spotTower} 101@ {spotHousing} 100@ {spotBulb} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
140@ = create_fx_system_on_object "SHOOTLIGHT" {object} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
40@ = create_searchlight 103.887 {y} 1901.057 {z} 35.723 {xPoint} 54@ {yPoint} 61@ {zPoint} 68@ {radius} 10.5 {radiusPoint} 0.5
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
attach_searchlight_to_searchlight_object 40@ {spotTower} 103@ {spotHousing} 102@ {spotBulb} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
141@ = create_fx_system_on_object "SHOOTLIGHT" {object} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
41@ = create_searchlight 261.97 {y} 1808.0699 {z} 36.05 {xPoint} 55@ {yPoint} 62@ {zPoint} 69@ {radius} 10.5 {radiusPoint} 0.5
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
attach_searchlight_to_searchlight_object 41@ {spotTower} 105@ {spotHousing} 104@ {spotBulb} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
142@ = create_fx_system_on_object "SHOOTLIGHT" {object} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
gosub @MAF4_29696

:MAF4_9842
165@ = 0

:MAF4_9849
if 
  22 > 165@
goto_if_false @MAF4_9899
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_9849

:MAF4_9899
109@ = create_char PedType.Mission1 {modelId} 287 {x} 112.39 {y} 1931.193 {z} 17.77
set_char_decision_maker 109@ {handleOrTemplate} 160@
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 109@ {range} 200.0
flush_patrol_route 
extend_patrol_route 114.51 {y} 1914.793 {z} 18.8 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 112.39 {y} 1931.193 {z} 18.77 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 109@ {speed} MoveState.Walk {mode} RouteMode.Loop
205@ = add_blip_for_char 109@
set_blip_always_display_on_zoomed_radar 205@ {state} True
change_blip_display 205@ {display} BlipDisplay.BlipOnly
set_inform_respected_friends 109@ {radius} 20.0 {_p3} 1
110@ = create_char PedType.Mission1 {modelId} 287 {x} 125.135 {y} 1916.59 {z} 17.9
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 200.0
flush_patrol_route 
extend_patrol_route 124.716 {y} 1890.25 {z} 18.33 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 159.0 {y} 1887.9 {z} 19.5 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 161.32 {y} 1914.42 {z} 18.6 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 125.135 {y} 1916.59 {z} 18.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 110@ {speed} MoveState.Walk {mode} RouteMode.Loop
206@ = add_blip_for_char 110@
set_blip_always_display_on_zoomed_radar 206@ {state} True
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_char_accuracy 110@ {accuracy} 80
set_inform_respected_friends 110@ {radius} 30.0 {_p3} 1
111@ = create_char PedType.Mission1 {modelId} 287 {x} 131.37 {y} 1821.139 {z} 16.6
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 200.0
flush_patrol_route 
extend_patrol_route 130.62 {y} 1855.297 {z} 17.73 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 102.09 {y} 1858.6 {z} 17.7 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 102.94 {y} 1839.78 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 131.37 {y} 1821.139 {z} 17.6 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 111@ {speed} MoveState.Walk {mode} RouteMode.Loop
207@ = add_blip_for_char 111@
set_blip_always_display_on_zoomed_radar 207@ {state} True
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_char_accuracy 111@ {accuracy} 80
set_inform_respected_friends 111@ {radius} 30.0 {_p3} 1
112@ = create_char PedType.Mission1 {modelId} 287 {x} 163.458 {y} 1824.58 {z} 17.64
set_char_heading 112@ {heading} 180.123
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 200.0
208@ = add_blip_for_char 112@
set_blip_always_display_on_zoomed_radar 208@ {state} True
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_char_accuracy 112@ {accuracy} 85
set_inform_respected_friends 112@ {radius} 30.0 {_p3} 1
113@ = create_char PedType.Mission1 {modelId} 287 {x} 189.91 {y} 1916.399 {z} 16.64
set_char_decision_maker 113@ {handleOrTemplate} 160@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 200.0
flush_patrol_route 
extend_patrol_route 168.0187 {y} 1916.2791 {z} 18.37 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 189.91 {y} 1916.399 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
set_blip_always_display_on_zoomed_radar 209@ {state} True
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_char_accuracy 113@ {accuracy} 85
set_inform_respected_friends 113@ {radius} 30.0 {_p3} 1
114@ = create_char PedType.Mission1 {modelId} 287 {x} 191.535 {y} 1809.588 {z} 16.641
set_char_decision_maker 114@ {handleOrTemplate} 160@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 200.0
flush_patrol_route 
extend_patrol_route 131.24 {y} 1811.194 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 191.535 {y} 1809.588 {z} 17.641 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
set_blip_always_display_on_zoomed_radar 210@ {state} True
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_char_accuracy 114@ {accuracy} 85
set_inform_respected_friends 114@ {radius} 30.0 {_p3} 1
115@ = create_char PedType.Mission1 {modelId} 287 {x} 195.36 {y} 1872.92 {z} 16.64
set_char_decision_maker 115@ {handleOrTemplate} 160@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 200.0
flush_patrol_route 
extend_patrol_route 231.095 {y} 1872.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 195.36 {y} 1872.92 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
set_blip_always_display_on_zoomed_radar 211@ {state} True
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 85
set_inform_respected_friends 115@ {radius} 20.0 {_p3} 1
116@ = create_char PedType.Mission1 {modelId} 287 {x} 108.673 {y} 1886.1801 {z} 17.04
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 200.0
flush_patrol_route 
extend_patrol_route 107.065 {y} 1865.8 {z} 17.78 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 126.78 {y} 1864.25 {z} 17.8 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 127.842 {y} 1885.04 {z} 18.027 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 108.673 {y} 1886.1801 {z} 18.04 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 116@ {speed} MoveState.Walk {mode} RouteMode.Loop
212@ = add_blip_for_char 116@
set_blip_always_display_on_zoomed_radar 212@ {state} True
change_blip_display 212@ {display} BlipDisplay.BlipOnly
set_char_accuracy 116@ {accuracy} 85
set_inform_respected_friends 116@ {radius} 30.0 {_p3} 1
117@ = create_char PedType.Mission1 {modelId} 287 {x} 173.671 {y} 1886.8409 {z} 19.9
set_char_decision_maker 117@ {handleOrTemplate} 160@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 200.0
flush_patrol_route 
extend_patrol_route 174.25 {y} 1866.51 {z} 20.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 173.671 {y} 1886.8409 {z} 20.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
set_blip_always_display_on_zoomed_radar 213@ {state} True
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_char_accuracy 117@ {accuracy} 85
set_inform_respected_friends 117@ {radius} 30.0 {_p3} 1
118@ = create_char PedType.Mission1 {modelId} 287 {x} 249.99 {y} 1874.78 {z} 19.6
set_char_decision_maker 118@ {handleOrTemplate} 160@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.99 {y} 1906.5601 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.99 {y} 1874.78 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
set_blip_always_display_on_zoomed_radar 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_char_accuracy 118@ {accuracy} 85
set_inform_respected_friends 118@ {radius} 30.0 {_p3} 1
119@ = create_char PedType.Mission1 {modelId} 287 {x} 224.26 {y} 1916.79 {z} 16.64
set_char_decision_maker 119@ {handleOrTemplate} 160@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 119@ {range} 200.0
flush_patrol_route 
extend_patrol_route 204.475 {y} 1915.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 204.628 {y} 1904.521 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 221.645 {y} 1905.13 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 224.26 {y} 1916.79 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 119@ {speed} MoveState.Walk {mode} RouteMode.Loop
215@ = add_blip_for_char 119@
set_blip_always_display_on_zoomed_radar 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly
set_char_accuracy 119@ {accuracy} 85
set_inform_respected_friends 119@ {radius} 30.0 {_p3} 1
120@ = create_char PedType.Mission1 {modelId} 287 {x} 209.07 {y} 1833.63 {z} 16.64
set_char_heading 120@ {heading} 346.579
set_char_decision_maker 120@ {handleOrTemplate} 160@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 120@ {range} 200.0
216@ = add_blip_for_char 120@
set_blip_always_display_on_zoomed_radar 216@ {state} True
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_char_accuracy 120@ {accuracy} 85
set_inform_respected_friends 120@ {radius} 30.0 {_p3} 1
121@ = create_char PedType.Mission1 {modelId} 287 {x} 268.027 {y} 1862.269 {z} 17.64
set_char_decision_maker 121@ {handleOrTemplate} 160@
give_weapon_to_char 121@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 121@ {range} 200.0
flush_patrol_route 
extend_patrol_route 266.9 {y} 1822.3 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 268.027 {y} 1862.269 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 121@ {speed} MoveState.Walk {mode} RouteMode.Loop
217@ = add_blip_for_char 121@
set_blip_always_display_on_zoomed_radar 217@ {state} True
change_blip_display 217@ {display} BlipDisplay.BlipOnly
set_char_accuracy 121@ {accuracy} 85
set_inform_respected_friends 121@ {radius} 30.0 {_p3} 1
122@ = create_char PedType.Mission1 {modelId} 287 {x} 221.16 {y} 1858.28 {z} 20.63
set_char_decision_maker 122@ {handleOrTemplate} 160@
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 122@ {accuracy} 90
set_follow_node_threshold_distance 122@ {range} 200.0
flush_patrol_route 
extend_patrol_route 198.711 {y} 1857.64 {z} 19.633 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 221.16 {y} 1858.28 {z} 20.63 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 122@ {speed} MoveState.Walk {mode} RouteMode.Loop
218@ = add_blip_for_char 122@
set_blip_always_display_on_zoomed_radar 218@ {state} True
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_char_accuracy 122@ {accuracy} 90
set_inform_respected_friends 122@ {radius} 30.0 {_p3} 1
123@ = create_char PedType.Mission1 {modelId} 287 {x} 218.45 {y} 1820.78 {z} 16.64
set_char_decision_maker 123@ {handleOrTemplate} 160@
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 123@ {accuracy} 90
set_follow_node_threshold_distance 123@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.31 {y} 1821.924 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 218.45 {y} 1820.78 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 123@ {speed} MoveState.Walk {mode} RouteMode.Loop
219@ = add_blip_for_char 123@
set_blip_always_display_on_zoomed_radar 219@ {state} True
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_char_accuracy 123@ {accuracy} 80
set_inform_respected_friends 123@ {radius} 30.0 {_p3} 1
124@ = create_char PedType.Mission3 {modelId} 287 {x} 103.9055 {y} 1900.535 {z} 24.4985
set_char_decision_maker 124@ {handleOrTemplate} 159@
set_char_heading 124@ {heading} 6.0802
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 124@ {state} True
set_char_health 124@ {health} 10
220@ = add_blip_for_char 124@
set_blip_always_display_on_zoomed_radar 220@ {state} True
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 124@ {handleOrTemplate} 162@
125@ = create_char PedType.Mission3 {modelId} 287 {x} 113.3839 {y} 1814.261 {z} 24.4985
set_char_decision_maker 125@ {handleOrTemplate} 159@
set_char_heading 125@ {heading} 5.0273
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 125@ {state} True
set_char_health 125@ {health} 10
221@ = add_blip_for_char 125@
set_blip_always_display_on_zoomed_radar 221@ {state} True
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 125@ {handleOrTemplate} 162@
126@ = create_char PedType.Mission3 {modelId} 287 {x} 165.6023 {y} 1850.0699 {z} 24.4985
set_char_decision_maker 126@ {handleOrTemplate} 159@
set_char_heading 126@ {heading} 5.0273
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 126@ {state} True
set_char_health 126@ {health} 10
222@ = add_blip_for_char 126@
set_blip_always_display_on_zoomed_radar 222@ {state} True
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 126@ {handleOrTemplate} 162@
127@ = create_char PedType.Mission3 {modelId} 287 {x} 261.8728 {y} 1807.938 {z} 24.4985
set_char_decision_maker 127@ {handleOrTemplate} 159@
set_char_heading 127@ {heading} 5.0273
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 127@ {state} True
set_char_health 127@ {health} 10
223@ = add_blip_for_char 127@
set_blip_always_display_on_zoomed_radar 223@ {state} True
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 127@ {handleOrTemplate} 162@
128@ = create_char PedType.Mission3 {modelId} 287 {x} 267.1389 {y} 1895.485 {z} 24.4985
set_char_decision_maker 128@ {handleOrTemplate} 159@
set_char_heading 128@ {heading} 119.7683
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 128@ {state} True
set_char_health 128@ {health} 10
224@ = add_blip_for_char 128@
set_blip_always_display_on_zoomed_radar 224@ {state} True
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 128@ {handleOrTemplate} 162@
129@ = create_char PedType.Mission3 {modelId} 287 {x} 161.9575 {y} 1933.342 {z} 24.4985
set_char_decision_maker 129@ {handleOrTemplate} 159@
set_char_heading 129@ {heading} 119.7683
give_weapon_to_char 129@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 129@ {state} True
set_char_health 129@ {health} 10
225@ = add_blip_for_char 129@
set_blip_always_display_on_zoomed_radar 225@ {state} True
change_blip_display 225@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 129@ {handleOrTemplate} 162@
130@ = create_char PedType.Mission3 {modelId} 287 {x} 233.6724 {y} 1934.623 {z} 24.4985
set_char_decision_maker 130@ {handleOrTemplate} 159@
set_char_heading 130@ {heading} 119.7683
give_weapon_to_char 130@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 130@ {state} True
set_char_health 130@ {health} 10
226@ = add_blip_for_char 130@
set_blip_always_display_on_zoomed_radar 226@ {state} True
change_blip_display 226@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 130@ {handleOrTemplate} 162@
load_scene_in_direction 69.91 {y} 1916.007 {z} 16.648 {heading} 273.4
do_fade 250 {direction} Fade.In

:MAF4_13285
clear_char_tasks_immediately $scplayer
set_time_of_day 21 {minutes} 30
clear_prints 
camera_reset_new_scriptables 
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
if 
  not is_car_dead 107@
goto_if_false @MAF4_13354
if 
  is_playback_going_on_for_car 107@
goto_if_false @MAF4_13354
stop_playback_recorded_car 107@

:MAF4_13354
delete_char 106@
delete_car 107@
unload_special_character 1
mark_model_as_no_longer_needed 483
227@ = add_blip_for_coord 211.604 {y} 1811.0909 {z} 20.8
print_now 'DST8_38' {time} 5000 {flag} 1
print 'DST8_7' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38441
164@ = 5

:MAF4_13445
if 
  164@ == 5
goto_if_false @MAF4_19146
if 
  192@ == 0
goto_if_false @MAF4_13517
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Infrared
goto_if_false @MAF4_13517
print_help 'DST8_37'
192@ = 1

:MAF4_13517
if 
  195@ == 0
goto_if_false @MAF4_13710
134@, 135@ = get_time_of_day 
if 
  134@ == 5
goto_if_false @MAF4_13710
if 
  135@ > 29
goto_if_false @MAF4_13710
do_fade 500 {direction} Fade.Out
193@ = 1

:MAF4_13593
if 
  get_fading_status 
goto_if_false @MAF4_13617
wait 0
goto @MAF4_13593

:MAF4_13617
set_char_coordinates $scplayer {x} 296.348 {y} 2474.2771 {z} 15.477
set_char_heading $scplayer {heading} 359.722
set_camera_behind_player 
do_fade 500 {direction} Fade.In
print_now 'DST8_41' {time} 5000 {flag} 1

:MAF4_13672
if 
  get_fading_status 
goto_if_false @MAF4_13696
wait 0
goto @MAF4_13672

:MAF4_13696
goto @MAF4_29929
195@ = 1

:MAF4_13710
if 
  193@ == 0
goto_if_false @MAF4_14039
if 
  194@ == 0
goto_if_false @MAF4_13807
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 52.5 {leftBottomY} 1952.11 {rightTopX} 295.92 {rightTopY} 1775.9301 {drawSphere} False
goto_if_false @MAF4_13807
print_now 'DST8_39' {time} 5000 {flag} 1
194@ = 1

:MAF4_13807
if 
  194@ == 1
goto_if_false @MAF4_14039
if 
  is_char_in_area_2d $scplayer {leftBottomX} 52.5 {leftBottomY} 1952.11 {rightTopX} 295.92 {rightTopY} 1775.9301 {drawSphere} False
goto_if_false @MAF4_13877
194@ = 0
goto @MAF4_14039

:MAF4_13877
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 36.9 {leftBottomY} 1961.8199 {rightTopX} 319.56 {rightTopY} 1760.29 {drawSphere} False
goto_if_false @MAF4_14039
do_fade 500 {direction} Fade.Out

:MAF4_13922
if 
  get_fading_status 
goto_if_false @MAF4_13946
wait 0
goto @MAF4_13922

:MAF4_13946
set_char_coordinates $scplayer {x} 296.348 {y} 2474.2771 {z} 15.477
set_char_heading $scplayer {heading} 359.722
set_camera_behind_player 
do_fade 500 {direction} Fade.In
print_now 'DST8_40' {time} 5000 {flag} 1

:MAF4_14001
if 
  get_fading_status 
goto_if_false @MAF4_14025
wait 0
goto @MAF4_14001

:MAF4_14025
goto @MAF4_29929
194@ = 2

:MAF4_14039
if 
  3 > 175@
goto_if_false @MAF4_14882
if 
  2 > 175@
goto_if_false @MAF4_14875
if 
  182@ == 0
goto_if_false @MAF4_14148
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 211.604 {y} 1811.0909 {z} 20.8 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_14148
182@ = 1

:MAF4_14148
if 
  182@ == 1
goto_if_false @MAF4_14875
if 
  179@ == 0
goto_if_false @MAF4_14259
remove_blip 227@
227@ = add_blip_for_coord 214.0 {y} 1872.0 {z} 12.14
print_now 'DST8_8' {time} 5000 {flag} 1
TIMERB = 0
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStart
179@ = 1

:MAF4_14259
if 
  179@ == 1
goto_if_false @MAF4_14423
if 
  180@ == 0
goto_if_false @MAF4_14350
if 
  slide_object $china_town_gate {posX} 219.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14350
180@ = 1

:MAF4_14350
if 
  181@ == 0
goto_if_false @MAF4_14423
if 
  slide_object $frontdoorr_a51 {posX} 207.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14423
181@ = 1

:MAF4_14423
if 
  179@ == 1
goto_if_false @MAF4_14504
if 
  180@ == 1
goto_if_false @MAF4_14504
if 
  181@ == 1
goto_if_false @MAF4_14504
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStop
179@ = 2

:MAF4_14504
if 
  179@ == 2
goto_if_false @MAF4_14568
if 
  TIMERB > 30000
goto_if_false @MAF4_14568
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStart
179@ = 3

:MAF4_14568
if 
  179@ == 3
goto_if_false @MAF4_14732
if 
  180@ == 1
goto_if_false @MAF4_14659
if 
  slide_object $china_town_gate {posX} 215.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14659
180@ = 0

:MAF4_14659
if 
  181@ == 1
goto_if_false @MAF4_14732
if 
  slide_object $frontdoorr_a51 {posX} 211.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14732
181@ = 0

:MAF4_14732
if 
  179@ == 3
goto_if_false @MAF4_14875
if 
  180@ == 0
goto_if_false @MAF4_14875
if 
  181@ == 0
goto_if_false @MAF4_14875
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStop
remove_blip 227@
227@ = add_blip_for_coord 211.604 {y} 1811.0909 {z} 20.8
print_now 'DST8_9' {time} 5000 {flag} 1
179@ = 0
180@ = 0
180@ = 0
182@ = 0

:MAF4_14875
goto @MAF4_15028

:MAF4_14882
if 
  180@ == 5
goto_if_false @MAF4_14955
if 
  slide_object $china_town_gate {posX} 215.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14955
180@ = 6

:MAF4_14955
if 
  181@ == 5
goto_if_false @MAF4_15028
if 
  slide_object $frontdoorr_a51 {posX} 211.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_15028
181@ = 6

:MAF4_15028
if 
  191@ == 0
goto_if_false @MAF4_15171
if 
  is_char_in_area_3d $scplayer {leftBottomX} 254.37 {leftBottomY} 1850.1 {leftBottomZ} 21.7 {rightTopX} 207.08 {rightTopY} 1873.36 {rightTopZ} 10.0 {drawSphere} False
goto_if_false @MAF4_15171
165@ = 0

:MAF4_15101
if 
  7 > 165@
goto_if_false @MAF4_15164
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15150
switch_on_ground_searchlight 35@(165@,7i) {state} False

:MAF4_15150
165@ += 1
goto @MAF4_15101

:MAF4_15164
191@ = 1

:MAF4_15171
if 
  191@ == 1
goto_if_false @MAF4_15314
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 254.37 {leftBottomY} 1850.1 {leftBottomZ} 21.7 {rightTopX} 207.08 {rightTopY} 1873.36 {rightTopZ} 10.0 {drawSphere} False
goto_if_false @MAF4_15314
165@ = 0

:MAF4_15244
if 
  7 > 165@
goto_if_false @MAF4_15307
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15293
switch_on_ground_searchlight 35@(165@,7i) {state} True

:MAF4_15293
165@ += 1
goto @MAF4_15244

:MAF4_15307
191@ = 0

:MAF4_15314
165@ = 0

:MAF4_15321
if 
  7 > 165@
goto_if_false @MAF4_15482
if 
  167@(165@,7i) == 0
goto_if_false @MAF4_15468
if 
  does_object_exist 42@(165@,7i)
goto_if_false @MAF4_15468
91@ = get_object_health 42@(165@,7i)
if 
  5000 > 91@
goto_if_false @MAF4_15468
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15468
delete_searchlight 35@(165@,7i)
play_and_kill_fx_system 136@(165@,7i)
174@ += 1
167@(165@,7i) = 1

:MAF4_15468
165@ += 1
goto @MAF4_15321

:MAF4_15482
if 
  175@ == 0
goto_if_false @MAF4_15624
165@ = 0

:MAF4_15507
if and
  7 > 165@
  175@ == 0
goto_if_false @MAF4_15624
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15610
if 
  is_char_in_searchlight 35@(165@,7i) {handle} $scplayer
goto_if_false @MAF4_15610
198@ = 1
199@ = 0
gosub @MAF4_29813
TIMERA = 0
175@ = 1

:MAF4_15610
165@ += 1
goto @MAF4_15507

:MAF4_15624
if 
  175@ == 1
goto_if_false @MAF4_15796
if 
  TIMERA > 10000
goto_if_false @MAF4_15796
165@ = 0
175@ = 0

:MAF4_15675
if 
  7 > 165@
goto_if_false @MAF4_15757
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15743
if 
  is_char_in_searchlight 35@(165@,7i) {handle} $scplayer
goto_if_false @MAF4_15743
175@ = 2

:MAF4_15743
165@ += 1
goto @MAF4_15675

:MAF4_15757
if 
  175@ == 0
goto_if_false @MAF4_15796
198@ = 2
201@ = 0
gosub @MAF4_29696

:MAF4_15796
if and
  174@ > 2
  2 > 175@
goto_if_false @MAF4_15828
175@ = 2

:MAF4_15828
if 
  175@ == 2
goto_if_false @MAF4_15991
remove_blip 227@
198@ = 3
196@ = 0
227@ = add_blip_for_coord 246.0 {y} 1862.64 {z} 19.89
165@ = 15

:MAF4_15892
if 
  22 > 165@
goto_if_false @MAF4_15963
if 
  not is_char_dead 109@(165@,22i)
goto_if_false @MAF4_15949
set_lvar_int_to_lvar_int 153@ = 109@(165@,22i)
gosub @MAF4_29891

:MAF4_15949
165@ += 1
goto @MAF4_15892

:MAF4_15963
gosub @MAF4_29813
180@ = 5
181@ = 5
175@ = 3

:MAF4_15991
165@ = 0

:MAF4_15998
if 
  22 > 165@
goto_if_false @MAF4_16088
if 
  is_char_dead 109@(165@,22i)
goto_if_false @MAF4_16074
if 
  does_blip_exist 205@(165@,22i)
goto_if_false @MAF4_16074
remove_blip 205@(165@,22i)
mark_char_as_no_longer_needed 109@(165@,22i)

:MAF4_16074
165@ += 1
goto @MAF4_15998

:MAF4_16088
if 
  175@ == 3
goto_if_false @MAF4_16187
if 
  locate_char_any_means_2d $scplayer {x} 246.0 {y} 1862.64 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MAF4_16187
print_help 'DST8_10'
remove_blip 227@
227@ = add_blip_for_coord 224.99 {y} 1859.1801 {z} 12.31
175@ = 4

:MAF4_16187
gosub @MAF4_29548
if 
  198@ == 1
goto_if_false @MAF4_16409
if 
  199@ == 0
goto_if_false @MAF4_16409
if 
  197@ == 0
goto_if_false @MAF4_16409
if 
  200@ > 1
goto_if_false @MAF4_16297
set_lvar_int_to_constant 156@ = 38403
set_lvar_text_label 157@s = 'DES8_BD'
gosub @MAF4_29506

:MAF4_16297
if 
  200@ == 1
goto_if_false @MAF4_16353
set_lvar_int_to_constant 156@ = 38401
set_lvar_text_label 157@s = 'DES8_BB'
gosub @MAF4_29506
200@ += 1

:MAF4_16353
if 
  200@ == 0
goto_if_false @MAF4_16409
set_lvar_int_to_constant 156@ = 38400
set_lvar_text_label 157@s = 'DES8_BA'
gosub @MAF4_29506
200@ += 1

:MAF4_16409
if 
  198@ == 2
goto_if_false @MAF4_16624
if 
  201@ == 0
goto_if_false @MAF4_16624
if 
  197@ == 0
goto_if_false @MAF4_16624
if 
  202@ > 1
goto_if_false @MAF4_16512
set_lvar_int_to_constant 156@ = 38406
set_lvar_text_label 157@s = 'DES8_CC'
gosub @MAF4_29506

:MAF4_16512
if 
  202@ == 1
goto_if_false @MAF4_16568
set_lvar_int_to_constant 156@ = 38405
set_lvar_text_label 157@s = 'DES8_CB'
gosub @MAF4_29506
202@ += 1

:MAF4_16568
if 
  202@ == 0
goto_if_false @MAF4_16624
set_lvar_int_to_constant 156@ = 38404
set_lvar_text_label 157@s = 'DES8_CA'
gosub @MAF4_29506
202@ += 1

:MAF4_16624
if 
  198@ == 3
goto_if_false @MAF4_16884
if 
  196@ == 0
goto_if_false @MAF4_16709
if 
  197@ == 0
goto_if_false @MAF4_16709
set_lvar_int_to_constant 156@ = 38410
set_lvar_text_label 157@s = 'DES8_DC'
gosub @MAF4_29506

:MAF4_16709
if 
  196@ == 1
goto_if_false @MAF4_16776
if 
  197@ == 0
goto_if_false @MAF4_16776
set_lvar_int_to_constant 156@ = 38416
set_lvar_text_label 157@s = 'DES8_EE'
gosub @MAF4_29506

:MAF4_16776
if 
  196@ == 2
goto_if_false @MAF4_16843
if 
  197@ == 0
goto_if_false @MAF4_16843
set_lvar_int_to_constant 156@ = 38415
set_lvar_text_label 157@s = 'DES8_ED'
gosub @MAF4_29506

:MAF4_16843
if 
  196@ == 3
goto_if_false @MAF4_16884
print_now 'DST8_14' {time} 7000 {flag} 1
196@ = 4

:MAF4_16884
if 
  183@ == 0
goto_if_false @MAF4_19146
if or
  is_char_in_area_3d $scplayer {leftBottomX} 207.917 {leftBottomY} 1874.33 {leftBottomZ} 10.0 {rightTopX} 2224.917 {rightTopY} 1868.78 {rightTopZ} 14.6 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} 224.99 {y} 1859.1801 {z} 12.31 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 201.99 {leftBottomY} 1874.7 {leftBottomZ} 12.3 {rightTopX} 225.47 {rightTopY} 1851.4301 {rightTopZ} 14.31 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} 226.38 {y} 1872.33 {z} 12.93 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @MAF4_19146
do_fade 250 {direction} Fade.Out
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 

:MAF4_17074
if 
  get_fading_status 
goto_if_false @MAF4_17098
wait 0
goto @MAF4_17074

:MAF4_17098
delete_object $5176
$5176 = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $5176 {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $5176
switch_widescreen True
set_player_control $player1 {state} False
mark_model_as_no_longer_needed #A51_SPOTBULB
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed 483
unload_special_character 1
remove_car_recording 340
remove_car_recording 341
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
request_model 583
request_model 70
request_model 468
load_all_models_now 

:MAF4_17221
if or
  not has_model_loaded 583
  not has_model_loaded 70
  not has_model_loaded 468
goto_if_false @MAF4_17257
wait 0
goto @MAF4_17221

:MAF4_17257
clear_prints 
165@ = 0

:MAF4_17266
if 
  7 > 165@
goto_if_false @MAF4_17316
delete_searchlight 35@(165@,7i)
delete_object 42@(165@,7i)
165@ += 1
goto @MAF4_17266

:MAF4_17316
delete_object 92@
delete_object 93@
delete_object 94@
delete_object 95@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
delete_object 102@
delete_object 103@
delete_object 104@
delete_object 105@
165@ = 0

:MAF4_17393
if 
  22 > 165@
goto_if_false @MAF4_17443
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_17393

:MAF4_17443
if 
  locate_char_any_means_2d $scplayer {x} 225.0 {y} 1859.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MAF4_17518
set_char_coordinates $scplayer {x} 224.44 {y} 1859.34 {z} 12.14
set_char_heading $scplayer {heading} 6.82
goto @MAF4_17548

:MAF4_17518
set_char_coordinates $scplayer {x} 214.14 {y} 1872.3879 {z} 12.14
set_char_heading $scplayer {heading} 267.68

:MAF4_17548
delete_object $china_town_gate
delete_object $frontdoorr_a51
$china_town_gate = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $china_town_gate {heading} 0.0
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
dont_remove_object $china_town_gate
dont_remove_object $frontdoorr_a51
remove_blip 227@
110@ = create_char PedType.Mission1 {modelId} 287 {x} 248.128 {y} 1860.7321 {z} 8.76
set_char_heading 110@ {heading} 266.82
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 5.0
206@ = add_blip_for_char 110@
change_blip_display 206@ {display} BlipDisplay.BlipOnly
task_play_anim 110@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_blip_always_display_on_zoomed_radar 206@ {state} True
111@ = create_char PedType.Mission1 {modelId} 287 {x} 245.1791 {y} 1879.571 {z} 10.4609
set_char_heading 111@ {heading} 266.1505
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 5.0
set_char_accuracy 111@ {accuracy} 80
207@ = add_blip_for_char 111@
change_blip_display 207@ {display} BlipDisplay.BlipOnly
task_play_anim 111@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_blip_always_display_on_zoomed_radar 207@ {state} True
112@ = create_char PedType.Mission1 {modelId} 287 {x} 245.1999 {y} 1863.952 {z} 7.5618
set_char_heading 112@ {heading} 175.5655
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 5.0
208@ = add_blip_for_char 112@
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 208@ {state} True
113@ = create_char PedType.Mission1 {modelId} 287 {x} 261.9116 {y} 1870.728 {z} 7.7578
set_char_decision_maker 113@ {handleOrTemplate} 160@
set_char_heading 113@ {heading} 186.0656
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 5.0
flush_patrol_route 
extend_patrol_route 261.6897 {y} 1860.464 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 256.1913 {y} 1859.627 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 256.0048 {y} 1870.207 {z} 7.79 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 261.9116 {y} 1870.728 {z} 7.7578 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 209@ {state} True
132@ = create_car 583 {x} 241.0877 {y} 1843.951 {z} 7.7578
set_car_heading 132@ {heading} 268.7216
114@ = create_char PedType.Mission1 {modelId} 287 {x} 243.0288 {y} 1846.451 {z} 7.765
set_char_decision_maker 114@ {handleOrTemplate} 160@
set_char_health 114@ {health} 10
set_char_heading 114@ {heading} 270.7867
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 5.0
flush_patrol_route 
extend_patrol_route 255.3062 {y} 1846.276 {z} 7.7734 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 243.0288 {y} 1846.451 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 210@ {state} True
228@ = add_blip_for_coord 267.015 {y} 1862.51 {z} 7.76
set_blip_always_display_on_zoomed_radar 228@ {state} True
player_take_off_goggles $player1 {animate} False
load_scene 248.83 {y} 1827.63 {z} 7.46
load_scene_in_direction 282.28 {y} 1814.04 {z} 7.54 {heading} 326.0
do_fade 500 {direction} Fade.In
set_radar_zoom 100
131@ = create_char PedType.Mission1 {modelId} 287 {x} 248.925 {y} 1832.3149 {z} 6.55
set_char_heading 131@ {heading} 1.5
give_weapon_to_char 131@ {weaponType} WeaponType.M4 {ammo} 9999
task_play_anim 131@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
skip_cutscene_start_internal @MAF4_19046
set_fixed_camera_position 278.6251 {y} 1812.837 {z} 4.8301 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 279.2745 {y} 1813.558 {z} 5.0711 {switchStyle} SwitchType.JumpCut
print_now 'DST8_42' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_18654
if 
  5000 > TIMERA
goto_if_false @MAF4_18684
wait 0
goto @MAF4_18654

:MAF4_18684
load_scene_in_direction 255.93 {y} 1838.05 {z} 7.73 {heading} 142.0
set_fixed_camera_position 252.5037 {y} 1836.2419 {z} 8.5554 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 252.0391 {y} 1835.363 {z} 8.4453 {switchStyle} SwitchType.JumpCut
print_now 'DST8_43' {time} 8000 {flag} 1
TIMERA = 0

:MAF4_18780
if 
  4000 > TIMERA
goto_if_false @MAF4_18810
wait 0
goto @MAF4_18780

:MAF4_18810
load_scene 249.6 {y} 1869.03 {z} 11.0
set_fixed_camera_position 262.0718 {y} 1869.7271 {z} 13.162 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 261.4835 {y} 1868.9969 {z} 12.8154 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_18885
if 
  4000 > TIMERA
goto_if_false @MAF4_18915
wait 0
goto @MAF4_18885

:MAF4_18915
load_scene_in_direction 223.75 {y} 1822.5699 {z} 7.51 {heading} 68.0
set_fixed_camera_position 217.0121 {y} 1822.658 {z} 6.4205 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 216.015 {y} 1822.672 {z} 6.4959 {switchStyle} SwitchType.JumpCut
delete_char 131@
print_now 'DST8_44' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_19016
if 
  5000 > TIMERA
goto_if_false @MAF4_19046
wait 0
goto @MAF4_19016

:MAF4_19046
skip_cutscene_end 
delete_char 131@
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'DST8_45' {time} 5000 {flag} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundClaxonStart
TIMERB = 0
203@ = 1
196@ = 0
197@ = 0
164@ = 6
183@ = 1

:MAF4_19146
if 
  183@ == 1
goto_if_false @MAF4_26705
if 
  203@ == 1
goto_if_false @MAF4_19208
if 
  TIMERB > 5000
goto_if_false @MAF4_19208
203@ = 2

:MAF4_19208
if 
  203@ == 2
goto_if_false @MAF4_20772
gosub @MAF4_29548
if 
  3 > 184@
goto_if_false @MAF4_20601
if 
  196@ == 0
goto_if_false @MAF4_19318
if 
  197@ == 0
goto_if_false @MAF4_19318
set_lvar_int_to_constant 156@ = 38419
set_lvar_text_label 157@s = 'DES8_FB'
gosub @MAF4_29506

:MAF4_19318
if 
  196@ == 1
goto_if_false @MAF4_19392
if 
  197@ == 0
goto_if_false @MAF4_19392
set_lvar_int_to_constant 156@ = 38420
set_lvar_text_label 157@s = 'DES8_FC'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19392
if 
  TIMERB > 10000
goto_if_false @MAF4_19485
if 
  196@ == 2
goto_if_false @MAF4_19485
if 
  197@ == 0
goto_if_false @MAF4_19485
set_lvar_int_to_constant 156@ = 38424
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19485
if 
  TIMERB > 7500
goto_if_false @MAF4_19578
if 
  196@ == 3
goto_if_false @MAF4_19578
if 
  197@ == 0
goto_if_false @MAF4_19578
set_lvar_int_to_constant 156@ = 38425
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19578
if 
  TIMERB > 5500
goto_if_false @MAF4_19671
if 
  196@ == 4
goto_if_false @MAF4_19671
if 
  197@ == 0
goto_if_false @MAF4_19671
set_lvar_int_to_constant 156@ = 38430
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19671
if 
  TIMERB > 8000
goto_if_false @MAF4_19764
if 
  196@ == 5
goto_if_false @MAF4_19764
if 
  197@ == 0
goto_if_false @MAF4_19764
set_lvar_int_to_constant 156@ = 38421
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19764
if 
  TIMERB > 12000
goto_if_false @MAF4_19857
if 
  196@ == 6
goto_if_false @MAF4_19857
if 
  197@ == 0
goto_if_false @MAF4_19857
set_lvar_int_to_constant 156@ = 38431
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19857
if 
  TIMERB > 12500
goto_if_false @MAF4_19950
if 
  196@ == 7
goto_if_false @MAF4_19950
if 
  197@ == 0
goto_if_false @MAF4_19950
set_lvar_int_to_constant 156@ = 38427
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19950
if 
  TIMERB > 12000
goto_if_false @MAF4_20043
if 
  196@ == 8
goto_if_false @MAF4_20043
if 
  197@ == 0
goto_if_false @MAF4_20043
set_lvar_int_to_constant 156@ = 38423
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20043
if 
  TIMERB > 25000
goto_if_false @MAF4_20136
if 
  196@ == 9
goto_if_false @MAF4_20136
if 
  197@ == 0
goto_if_false @MAF4_20136
set_lvar_int_to_constant 156@ = 38432
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20136
if 
  TIMERB > 15000
goto_if_false @MAF4_20229
if 
  196@ == 10
goto_if_false @MAF4_20229
if 
  197@ == 0
goto_if_false @MAF4_20229
set_lvar_int_to_constant 156@ = 38433
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20229
if 
  TIMERB > 20000
goto_if_false @MAF4_20322
if 
  196@ == 11
goto_if_false @MAF4_20322
if 
  197@ == 0
goto_if_false @MAF4_20322
set_lvar_int_to_constant 156@ = 38426
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20322
if 
  TIMERB > 15000
goto_if_false @MAF4_20415
if 
  196@ == 12
goto_if_false @MAF4_20415
if 
  197@ == 0
goto_if_false @MAF4_20415
set_lvar_int_to_constant 156@ = 38434
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20415
if 
  TIMERB > 10000
goto_if_false @MAF4_20508
if 
  196@ == 13
goto_if_false @MAF4_20508
if 
  197@ == 0
goto_if_false @MAF4_20508
set_lvar_int_to_constant 156@ = 38422
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20508
if 
  TIMERB > 12000
goto_if_false @MAF4_20601
if 
  196@ == 14
goto_if_false @MAF4_20601
if 
  197@ == 0
goto_if_false @MAF4_20601
set_lvar_int_to_constant 156@ = 38428
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20601
if 
  187@ == 2
goto_if_false @MAF4_20772
if 
  196@ == 0
goto_if_false @MAF4_20705
if 
  TIMERB > 2000
goto_if_false @MAF4_20705
if 
  197@ == 0
goto_if_false @MAF4_20705
set_lvar_int_to_constant 156@ = 38435
set_lvar_text_label 157@s = 'DST8_34'
gosub @MAF4_29506

:MAF4_20705
if 
  196@ == 1
goto_if_false @MAF4_20772
if 
  197@ == 0
goto_if_false @MAF4_20772
set_lvar_int_to_constant 156@ = 38436
set_lvar_text_label 157@s = 'DES8_HB'
gosub @MAF4_29506

:MAF4_20772
if 
  184@ == 0
goto_if_false @MAF4_21934
if 
  is_char_in_area_3d $scplayer {leftBottomX} 266.53 {leftBottomY} 1849.53 {leftBottomZ} 8.0 {rightTopX} 237.01 {rightTopY} 1837.55 {rightTopZ} 10.52 {drawSphere} False
goto_if_false @MAF4_21934
115@ = create_char PedType.Mission1 {modelId} 287 {x} 248.5208 {y} 1806.681 {z} 6.5619
set_char_decision_maker 115@ {handleOrTemplate} 160@
set_char_heading 115@ {heading} 359.2584
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 5.0
flush_patrol_route 
extend_patrol_route 248.8298 {y} 1835.772 {z} 6.5471 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 248.5208 {y} 1809.681 {z} 6.5619 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 211@ {state} True
116@ = create_char PedType.Mission1 {modelId} 287 {x} 254.1943 {y} 1835.365 {z} 3.7175
set_char_heading 116@ {heading} 271.2598
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 5.0
212@ = add_blip_for_char 116@
change_blip_display 212@ {display} BlipDisplay.BlipOnly
task_play_anim 116@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000
set_blip_always_display_on_zoomed_radar 212@ {state} True
set_char_accuracy 116@ {accuracy} 80
117@ = create_char PedType.Mission1 {modelId} 287 {x} 249.41 {y} 1825.84 {z} 4.7
set_char_decision_maker 117@ {handleOrTemplate} 160@
set_char_heading 117@ {heading} 180.5658
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 5.0
flush_patrol_route 
extend_patrol_route 249.63 {y} 1816.64 {z} 4.71 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.41 {y} 1825.84 {z} 4.7 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 213@ {state} True
118@ = create_char PedType.Mission1 {modelId} 287 {x} 236.5669 {y} 1813.103 {z} 6.4213
set_char_decision_maker 118@ {handleOrTemplate} 160@
set_char_heading 118@ {heading} 167.7513
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 5.0
flush_patrol_route 
extend_patrol_route 236.0416 {y} 1803.519 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 243.165 {y} 1803.049 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 236.0416 {y} 1803.519 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 236.5669 {y} 1813.103 {z} 6.4213 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 214@ {state} True
120@ = create_char PedType.Mission1 {modelId} 287 {x} 284.416 {y} 1816.59 {z} 3.8
set_char_decision_maker 120@ {handleOrTemplate} 160@
set_char_heading 120@ {heading} 83.92
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 120@ {range} 5.0
flush_patrol_route 
extend_patrol_route 265.829 {y} 1816.3101 {z} 4.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 284.416 {y} 1816.59 {z} 4.72 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 120@ {speed} MoveState.Walk {mode} RouteMode.Loop
216@ = add_blip_for_char 120@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 216@ {state} True
121@ = create_char PedType.Mission1 {modelId} 70 {x} 245.3671 {y} 1830.29 {z} 6.5547
set_char_heading 121@ {heading} 178.5107
set_char_decision_maker 121@ {handleOrTemplate} 161@
set_char_health 121@ {health} 10
task_play_anim 121@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
122@ = create_char PedType.Mission1 {modelId} 70 {x} 213.3669 {y} 1825.511 {z} 5.4141
set_char_heading 122@ {heading} 67.6565
set_char_decision_maker 122@ {handleOrTemplate} 161@
set_char_health 122@ {health} 10
task_play_anim 122@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
123@ = create_char PedType.Mission1 {modelId} 70 {x} 214.1768 {y} 1818.739 {z} 5.4216
set_char_heading 123@ {heading} 113.5239
set_char_decision_maker 123@ {handleOrTemplate} 161@
set_char_health 123@ {health} 10
task_play_anim 123@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
184@ = 1

:MAF4_21934
if 
  184@ == 1
goto_if_false @MAF4_22819
if 
  is_char_in_area_3d $scplayer {leftBottomX} 301.6813 {leftBottomY} 1821.801 {leftBottomZ} 7.1396 {rightTopX} 272.5243 {rightTopY} 1826.948 {rightTopZ} 10.3607 {drawSphere} False
goto_if_false @MAF4_22819
124@ = create_char PedType.Mission1 {modelId} 287 {x} 280.7216 {y} 1840.162 {z} 6.7266
set_char_decision_maker 124@ {handleOrTemplate} 160@
set_char_heading 124@ {heading} 262.0249
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 124@ {range} 5.0
flush_patrol_route 
extend_patrol_route 292.8436 {y} 1839.781 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 280.7216 {y} 1840.162 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 124@ {speed} MoveState.Walk {mode} RouteMode.Loop
220@ = add_blip_for_char 124@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_accuracy 124@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 220@ {state} True
125@ = create_char PedType.Mission1 {modelId} 287 {x} 301.3004 {y} 1839.902 {z} 6.7266
set_char_decision_maker 125@ {handleOrTemplate} 160@
set_char_heading 125@ {heading} 91.0904
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 125@ {range} 5.0
flush_patrol_route 
extend_patrol_route 328.527 {y} 1839.673 {z} 6.8281 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 301.3004 {y} 1839.902 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 125@ {speed} MoveState.Walk {mode} RouteMode.Loop
221@ = add_blip_for_char 125@
set_char_accuracy 125@ {accuracy} 80
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 221@ {state} True
126@ = create_char PedType.Mission1 {modelId} 287 {x} 329.3857 {y} 1855.295 {z} 6.8357
set_char_decision_maker 126@ {handleOrTemplate} 160@
set_char_heading 126@ {heading} 272.6715
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 126@ {range} 5.0
flush_patrol_route 
extend_patrol_route 317.411 {y} 1855.274 {z} 6.7341 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 329.3857 {y} 1855.295 {z} 6.8357 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 126@ {speed} MoveState.Walk {mode} RouteMode.Loop
222@ = add_blip_for_char 126@
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_accuracy 126@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 222@ {state} True
127@ = create_char PedType.Mission1 {modelId} 287 {x} 298.3582 {y} 1856.054 {z} 6.8281
set_char_decision_maker 127@ {handleOrTemplate} 160@
set_char_heading 127@ {heading} 167.8933
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 127@ {range} 5.0
flush_patrol_route 
extend_patrol_route 297.3482 {y} 1868.002 {z} 7.7578 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 298.3582 {y} 1856.054 {z} 6.8281 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 127@ {speed} MoveState.Walk {mode} RouteMode.Loop
223@ = add_blip_for_char 127@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_accuracy 127@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 223@ {state} True
128@ = create_char PedType.Mission1 {modelId} 287 {x} 313.7065 {y} 1845.551 {z} 6.7341
set_char_heading 128@ {heading} 2.8719
set_char_decision_maker 128@ {handleOrTemplate} 160@
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 128@ {range} 5.0
224@ = add_blip_for_char 128@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_accuracy 128@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 224@ {state} True
143@ = create_object_no_offset #A51_LABDOOR {x} 268.66 {y} 1864.059 {z} 7.5
dont_remove_object 143@
set_object_proofs 143@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
184@ = 2

:MAF4_22819
if 
  185@ == 0
goto_if_false @MAF4_22947
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 212.93 {y} 1822.8199 {z} 5.41 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_22947
TIMERA = 0
set_player_control $player1 {state} False
set_char_heading $scplayer {heading} 92.24
task_play_anim $scplayer {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500
185@ = 1

:MAF4_22947
if 
  185@ == 1
goto_if_false @MAF4_23023
if 
  TIMERA > 500
goto_if_false @MAF4_23023
clear_char_tasks $scplayer
print_now 'DES8_21' {time} 4000 {flag} 1
set_area51_sam_site False
set_player_control $player1 {state} True
185@ = 2

:MAF4_23023
165@ = 0

:MAF4_23030
if 
  22 > 165@
goto_if_false @MAF4_23120
if 
  is_char_dead 109@(165@,22i)
goto_if_false @MAF4_23106
if 
  does_blip_exist 205@(165@,22i)
goto_if_false @MAF4_23106
remove_blip 205@(165@,22i)
mark_char_as_no_longer_needed 109@(165@,22i)

:MAF4_23106
165@ += 1
goto @MAF4_23030

:MAF4_23120
if 
  184@ == 2
goto_if_false @MAF4_23303
if 
  locate_char_any_means_3d $scplayer {x} 287.0 {y} 1870.0 {z} 9.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MAF4_23303
print_now 'DST8_46' {time} 5000 {flag} 1
133@ = create_char PedType.Mission1 {modelId} 70 {x} 276.57 {y} 1854.53 {z} 7.75
set_char_heading 133@ {heading} 175.15
set_char_decision_maker 133@ {handleOrTemplate} 159@
set_char_health 133@ {health} 10
task_stay_in_same_place 133@ {state} True
task_play_anim 133@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000
186@ = 1
184@ = 3

:MAF4_23303
if 
  186@ == 1
goto_if_false @MAF4_23593
if 
  not is_char_dead 133@
goto_if_false @MAF4_23538
if or
  has_char_been_damaged_by_char 133@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 133@
  is_char_shooting_in_area $scplayer {leftBottomX} 282.25 {leftBottomY} 1852.36 {topRightX} 264.28 {topRightY} 1863.6899 {drawSphere} False
  is_char_in_area_2d $scplayer {leftBottomX} 282.25 {leftBottomY} 1852.36 {rightTopX} 264.28 {rightTopY} 1863.6899 {drawSphere} False
goto_if_false @MAF4_23531
task_hands_up 133@ {time} 20000
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_23468
attach_mission_audio_to_char MissionAudioSlot.Slot2 {handle} 133@
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_AA' {time} 2000 {flag} 1

:MAF4_23468
145@ = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 276.57 {y} 1854.53 {z} 8.75
set_char_decision_maker 133@ {handleOrTemplate} 161@
229@ = add_blip_for_pickup 145@
print 'DST8_25' {time} 5000 {flag} 1
186@ = 2

:MAF4_23531
goto @MAF4_23593

:MAF4_23538
145@ = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 276.57 {y} 1854.53 {z} 8.75
229@ = add_blip_for_pickup 145@
print_now 'DST8_25' {time} 5000 {flag} 1
186@ = 2

:MAF4_23593
if 
  186@ == 2
goto_if_false @MAF4_23695
if 
  is_char_dead 133@
goto_if_false @MAF4_23667
if 
  204@ == 0
goto_if_false @MAF4_23667
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'DST8_25'
204@ = 1

:MAF4_23667
if 
  has_pickup_been_collected 145@
goto_if_false @MAF4_23695
remove_blip 229@
186@ = 3

:MAF4_23695
if 
  184@ == 3
goto_if_false @MAF4_23864
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 267.015 {y} 1862.51 {z} 7.76 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @MAF4_23864
if 
  186@ == 3
goto_if_false @MAF4_23848
set_char_heading $scplayer {heading} 6.3
TIMERA = 0
set_player_control $player1 {state} False
task_play_anim $scplayer {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500
184@ = 4
goto @MAF4_23864

:MAF4_23848
print_now 'DST8_24' {time} 5000 {flag} 1

:MAF4_23864
if 
  184@ == 4
goto_if_false @MAF4_25098
if 
  does_object_exist 143@
goto_if_false @MAF4_25098
if 
  TIMERA > 500
goto_if_false @MAF4_25098
187@ = 1
if 
  does_object_exist 143@
goto_if_false @MAF4_23948
report_mission_audio_event_at_object 143@ {soundId} ScriptSound.SoundShutterDoorStart

:MAF4_23948
delete_char 115@
delete_char 118@
delete_char 121@
delete_char 122@
delete_char 123@
delete_char 110@
delete_char 111@
delete_char 112@
delete_char 113@
delete_char 114@
clear_char_tasks $scplayer
set_player_control $player1 {state} True
115@ = create_char PedType.Mission1 {modelId} 287 {x} 261.5664 {y} 1891.85 {z} 7.4446
set_char_decision_maker 115@ {handleOrTemplate} 159@
set_char_heading 115@ {heading} 212.7731
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 115@ {state} True
set_char_health 115@ {health} 150
set_char_accuracy 115@ {accuracy} 80
211@ = add_blip_for_char 115@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 211@ {state} True
set_lvar_int_to_lvar_int 153@ = 115@
gosub @MAF4_29891
118@ = create_char PedType.Mission1 {modelId} 287 {x} 268.4905 {y} 1890.074 {z} 4.875
set_char_decision_maker 118@ {handleOrTemplate} 159@
set_char_heading 118@ {heading} 176.3921
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 118@ {state} True
set_char_health 118@ {health} 150
set_char_accuracy 118@ {accuracy} 30
214@ = add_blip_for_char 118@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 214@ {state} True
set_lvar_int_to_lvar_int 153@ = 118@
gosub @MAF4_29891
122@ = create_char PedType.Mission1 {modelId} 287 {x} 274.3991 {y} 1880.725 {z} -1.3518
set_char_decision_maker 122@ {handleOrTemplate} 159@
set_char_heading 122@ {heading} 65.8577
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 122@ {state} True
set_char_health 122@ {health} 150
set_char_accuracy 122@ {accuracy} 80
218@ = add_blip_for_char 122@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 218@ {state} True
set_lvar_int_to_lvar_int 153@ = 122@
gosub @MAF4_29891
123@ = create_char PedType.Mission1 {modelId} 287 {x} 268.9641 {y} 1878.019 {z} -4.5078
set_char_decision_maker 123@ {handleOrTemplate} 159@
set_char_heading 123@ {heading} 352.3847
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 123@ {state} True
set_char_health 123@ {health} 150
set_char_accuracy 123@ {accuracy} 40
219@ = add_blip_for_char 123@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 219@ {state} True
set_lvar_int_to_lvar_int 153@ = 123@
gosub @MAF4_29891
110@ = create_char PedType.Mission1 {modelId} 287 {x} 262.9983 {y} 1883.624 {z} -9.2031
set_char_decision_maker 110@ {handleOrTemplate} 159@
set_char_heading 110@ {heading} 259.5976
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 110@ {state} True
set_char_health 110@ {health} 100
set_char_accuracy 110@ {accuracy} 80
206@ = add_blip_for_char 110@
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 206@ {state} True
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29891
111@ = create_char PedType.Mission1 {modelId} 287 {x} 268.0892 {y} 1889.709 {z} -13.8984
set_char_decision_maker 111@ {handleOrTemplate} 159@
set_char_heading 111@ {heading} 197.1955
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 111@ {state} True
set_char_health 111@ {health} 150
set_char_accuracy 111@ {accuracy} 25
207@ = add_blip_for_char 111@
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 207@ {state} True
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29891
112@ = create_char PedType.Mission1 {modelId} 287 {x} 274.8945 {y} 1884.525 {z} -18.5859
set_char_decision_maker 112@ {handleOrTemplate} 159@
set_char_heading 112@ {heading} 117.7696
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 112@ {state} True
set_char_health 112@ {health} 120
set_char_accuracy 112@ {accuracy} 80
208@ = add_blip_for_char 112@
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 208@ {state} True
set_lvar_int_to_lvar_int 153@ = 112@
gosub @MAF4_29891
113@ = create_char PedType.Mission1 {modelId} 287 {x} 270.4637 {y} 1878.031 {z} -22.7266
set_char_decision_maker 113@ {handleOrTemplate} 159@
set_char_heading 113@ {heading} 117.7696
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 113@ {state} True
set_char_health 113@ {health} 150
set_char_accuracy 113@ {accuracy} 85
209@ = add_blip_for_char 113@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 209@ {state} True
set_lvar_int_to_lvar_int 153@ = 113@
gosub @MAF4_29891
114@ = create_char PedType.Mission1 {modelId} 287 {x} 262.6877 {y} 1883.484 {z} -27.9766
set_char_decision_maker 114@ {handleOrTemplate} 159@
set_char_heading 114@ {heading} 117.7696
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 114@ {state} True
set_char_health 114@ {health} 150
set_char_accuracy 114@ {accuracy} 80
210@ = add_blip_for_char 114@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 210@ {state} True
set_lvar_int_to_lvar_int 153@ = 114@
gosub @MAF4_29891
mark_car_as_no_longer_needed 132@
mark_model_as_no_longer_needed 583
144@ = create_pickup_with_ammo 370 {pickupType} PickupType.Once {ammo} 0 {x} 268.7 {y} 1884.1 {z} -30.085
remove_blip 228@
228@ = add_blip_for_pickup 144@
set_blip_always_display_on_zoomed_radar 228@ {state} True
clear_prints 
print_now 'DST8_34' {time} 5000 {flag} 1
184@ = 5

:MAF4_25098
if 
  187@ == 1
goto_if_false @MAF4_25216
if 
  does_object_exist 143@
goto_if_false @MAF4_25216
if 
  slide_object 143@ {posX} 268.66 {posY} 1864.059 {posZ} 12.2 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @MAF4_25216
report_mission_audio_event_at_object 143@ {soundId} ScriptSound.SoundShutterDoorStop
196@ = 0
197@ = 0
TIMERB = 0
187@ = 2

:MAF4_25216
if 
  184@ == 5
goto_if_false @MAF4_26127
if 
  has_pickup_been_collected 144@
goto_if_false @MAF4_26127
remove_blip 228@
set_player_control $player1 {state} False
switch_widescreen True
set_time_of_day 9 {minutes} 0
set_char_coordinates $scplayer {x} 268.591 {y} 1884.469 {z} -31.0869
set_char_heading $scplayer {heading} 180.99
task_jetpack $scplayer
set_fixed_camera_position 268.5177 {y} 1886.297 {z} -29.5611 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 268.5393 {y} 1885.316 {z} -29.7523 {switchStyle} SwitchType.JumpCut
set_interpolation_parameters 0.0 {time} 3000
request_model 352
request_model 483
load_special_character 1 {modelName} 'TRUTH'
print_now 'DST8_26' {time} 7000 {flag} 1

:MAF4_25407
if or
  not has_model_loaded 352
  not has_model_loaded 483
  not has_special_character_loaded 1
goto_if_false @MAF4_25443
wait 0
goto @MAF4_25407

:MAF4_25443
delete_car 132@
mark_model_as_no_longer_needed 583
165@ = 0

:MAF4_25460
if 
  22 > 165@
goto_if_false @MAF4_25510
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_25460

:MAF4_25510
112@ = create_char PedType.Mission1 {modelId} 287 {x} 139.9523 {y} 1929.079 {z} 18.2062
set_char_decision_maker 112@ {handleOrTemplate} 159@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 112@ {state} True
set_char_health 112@ {health} 50
set_char_accuracy 112@ {accuracy} 30
113@ = create_char PedType.Mission1 {modelId} 287 {x} 127.6658 {y} 1885.153 {z} 17.0346
set_char_decision_maker 113@ {handleOrTemplate} 159@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 113@ {state} True
set_char_health 113@ {health} 50
set_char_accuracy 113@ {accuracy} 30
114@ = create_char PedType.Mission1 {modelId} 287 {x} 114.7912 {y} 1830.386 {z} 16.6406
set_char_decision_maker 114@ {handleOrTemplate} 159@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 114@ {state} True
set_char_health 114@ {health} 50
set_char_accuracy 114@ {accuracy} 40
115@ = create_char PedType.Mission1 {modelId} 287 {x} 205.6079 {y} 1860.557 {z} 19.6406
set_char_decision_maker 115@ {handleOrTemplate} 159@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 115@ {state} True
set_char_health 115@ {health} 50
set_char_accuracy 115@ {accuracy} 30
116@ = create_char PedType.Mission1 {modelId} 287 {x} 245.2025 {y} 1881.998 {z} 19.1052
set_char_decision_maker 116@ {handleOrTemplate} 159@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 116@ {state} True
set_char_health 116@ {health} 50
set_char_accuracy 116@ {accuracy} 40
117@ = create_char PedType.Mission1 {modelId} 287 {x} 262.8257 {y} 1807.6689 {z} 24.4985
set_char_decision_maker 117@ {handleOrTemplate} 159@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 117@ {state} True
set_char_health 117@ {health} 50
set_char_accuracy 117@ {accuracy} 30
118@ = create_char PedType.Mission1 {modelId} 287 {x} 279.2588 {y} 1863.757 {z} 16.6406
set_char_decision_maker 118@ {handleOrTemplate} 159@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 118@ {state} True
set_char_health 118@ {health} 50
set_char_accuracy 118@ {accuracy} 30
119@ = create_char PedType.Mission1 {modelId} 287 {x} 279.2344 {y} 1901.905 {z} 16.6406
set_char_decision_maker 119@ {handleOrTemplate} 159@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 119@ {state} True
set_char_health 119@ {health} 50
set_char_accuracy 119@ {accuracy} 40
120@ = create_char PedType.Mission1 {modelId} 287 {x} 254.6844 {y} 1907.714 {z} 19.4742
set_char_decision_maker 120@ {handleOrTemplate} 159@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 120@ {state} True
set_char_health 120@ {health} 50
set_char_accuracy 120@ {accuracy} 30
delete_object 143@
143@ = create_object_no_offset #A51_LABDOOR {x} 268.66 {y} 1864.059 {z} 7.5
TIMERA = 0
184@ = 6

:MAF4_26127
if 
  189@ == 1
goto_if_false @MAF4_26216
if 
  does_object_exist $trapdoor_a51
goto_if_false @MAF4_26216
if 
  slide_object $trapdoor_a51 {posX} 276.14 {posY} 1884.0601 {posZ} 15.924 {speedX} 0.05 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_26216
189@ = 2

:MAF4_26216
if 
  184@ == 6
goto_if_false @MAF4_26293
if 
  TIMERA > 1000
goto_if_false @MAF4_26293
point_camera_at_point 268.5247 {y} 1886.084 {z} -28.5841 {switchStyle} SwitchType.Interpolation
189@ = 1
TIMERA = 0
184@ = 7

:MAF4_26293
if 
  184@ == 7
goto_if_false @MAF4_26705
if 
  TIMERA > 4000
goto_if_false @MAF4_26705
force_weather_now WeatherType.SunnyDesert
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 200
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_object_coordinates $trapdoor_a51 {x} 276.14 {y} 1884.0601 {z} 15.924
set_player_enter_car_button $player1 {enabled} False
clear_prints 
remove_blip 228@
set_radar_zoom 0
228@ = add_blip_for_coord 268.9 {y} 1884.33 {z} 19.91
109@ = create_char PedType.Mission1 {modelId} 287 {x} 271.62 {y} 1878.08 {z} -2.32
set_char_decision_maker 109@ {handleOrTemplate} 159@
set_char_heading 109@ {heading} 212.7731
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 109@ {state} True
set_char_health 109@ {health} 50
set_char_accuracy 109@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 109@
gosub @MAF4_29891
110@ = create_char PedType.Mission1 {modelId} 287 {x} 266.112 {y} 1876.84 {z} 7.44
set_char_decision_maker 110@ {handleOrTemplate} 159@
set_char_heading 110@ {heading} 328.04
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 110@ {state} True
set_char_health 110@ {health} 50
set_char_accuracy 110@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29891
111@ = create_char PedType.Mission1 {modelId} 287 {x} 274.432 {y} 1888.28 {z} 3.21
set_char_decision_maker 111@ {handleOrTemplate} 159@
set_char_heading 111@ {heading} 328.0
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 111@ {state} True
set_char_health 111@ {health} 50
set_char_accuracy 111@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29891
183@ = 2
188@ = 1
184@ = 8

:MAF4_26705
if 
  183@ == 2
goto_if_false @MAF4_29499
if 
  187@ == 3
goto_if_false @MAF4_26949
gosub @MAF4_29548
if 
  196@ == 0
goto_if_false @MAF4_26815
if 
  197@ == 0
goto_if_false @MAF4_26815
set_lvar_int_to_constant 156@ = 38437
set_lvar_text_label 157@s = 'DST8_35'
gosub @MAF4_29506

:MAF4_26815
if 
  196@ == 1
goto_if_false @MAF4_26882
if 
  197@ == 0
goto_if_false @MAF4_26882
set_lvar_int_to_constant 156@ = 38438
set_lvar_text_label 157@s = 'DES8_JB'
gosub @MAF4_29506

:MAF4_26882
if 
  196@ == 2
goto_if_false @MAF4_26949
if 
  197@ == 0
goto_if_false @MAF4_26949
set_lvar_int_to_constant 156@ = 38439
set_lvar_text_label 157@s = 'DES8_JC'
gosub @MAF4_29506

:MAF4_26949
if 
  8 > 188@
goto_if_false @MAF4_27382
if 
  188@ == 1
goto_if_false @MAF4_27010
print_help 'DST8_27'
TIMERB = 0
188@ = 2

:MAF4_27010
if 
  188@ == 2
goto_if_false @MAF4_27072
if 
  TIMERB > 6000
goto_if_false @MAF4_27072
print_help 'DST8_28'
TIMERB = 0
188@ = 3

:MAF4_27072
if 
  188@ == 3
goto_if_false @MAF4_27134
if 
  TIMERB > 6000
goto_if_false @MAF4_27134
print_help 'DST8_29'
TIMERB = 0
188@ = 4

:MAF4_27134
if 
  188@ == 4
goto_if_false @MAF4_27196
if 
  TIMERB > 6000
goto_if_false @MAF4_27196
print_help 'DST8_30'
TIMERB = 0
188@ = 5

:MAF4_27196
if 
  188@ == 5
goto_if_false @MAF4_27258
if 
  TIMERB > 6000
goto_if_false @MAF4_27258
print_help 'DST8_31'
TIMERB = 0
188@ = 6

:MAF4_27258
if 
  188@ == 6
goto_if_false @MAF4_27320
if 
  TIMERB > 6000
goto_if_false @MAF4_27320
print_help 'DST8_32'
TIMERB = 0
188@ = 7

:MAF4_27320
if 
  188@ == 7
goto_if_false @MAF4_27382
if 
  TIMERB > 6000
goto_if_false @MAF4_27382
print_help 'DST8_33'
TIMERB = 0
188@ = 8

:MAF4_27382
if 
  184@ == 8
goto_if_false @MAF4_28337
if 
  locate_char_any_means_3d $scplayer {x} 268.73 {y} 1883.96 {z} 17.85 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @MAF4_28337
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundClaxonStop
187@ = 3
196@ = 0
197@ = 0
report_mission_audio_event_at_position 268.73 {y} 1883.96 {z} 17.85 {soundId} ScriptSound.SoundClaxonStart
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
165@ = 0

:MAF4_28104
if 
  22 > 165@
goto_if_false @MAF4_28168
if 
  not is_char_dead 109@(165@,22i)
goto_if_false @MAF4_28154
task_kill_char_on_foot 109@(165@,22i) {target} $scplayer

:MAF4_28154
165@ += 1
goto @MAF4_28104

:MAF4_28168
remove_blip 228@
228@ = add_blip_for_coord -794.8 {y} 2425.1841 {z} 156.124
print_now 'DST8_35' {time} 7000 {flag} 1
107@ = create_car 483 {x} -783.169 {y} 2430.03 {z} 156.23
freeze_car_position_and_dont_load_collision 107@ {state} True
set_car_heading 107@ {heading} 171.04
change_car_colour 107@ {color1} 1 {color2} 1
give_vehicle_paintjob 107@ {paintjobId} 0
106@ = create_char_inside_car 107@ {pedType} PedType.Special {modelId} 290
set_char_decision_maker 106@ {handleOrTemplate} 159@
set_car_proofs 107@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 106@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_vehicle_is_considered_by_player 107@ {state} False
190@ = 1
184@ = 9

:MAF4_28337
if 
  184@ == 9
goto_if_false @MAF4_28458
if 
  not locate_char_any_means_2d $scplayer {x} 276.14 {y} 1884.0601 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MAF4_28458
165@ = 0

:MAF4_28400
if 
  22 > 165@
goto_if_false @MAF4_28451
mark_char_as_no_longer_needed 109@(165@,22i)
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
165@ += 1
goto @MAF4_28400

:MAF4_28451
184@ = 10

:MAF4_28458
if 
  190@ == 1
goto_if_false @MAF4_28606
if 
  not is_char_dead 106@
goto_if_false @MAF4_28606
if 
  locate_char_any_means_char_2d 106@ {target} $scplayer {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @MAF4_28606
report_mission_audio_event_at_position 268.73 {y} 1883.96 {z} 17.85 {soundId} ScriptSound.SoundClaxonStop
if 
  not is_car_dead 107@
goto_if_false @MAF4_28566
freeze_car_position_and_dont_load_collision 107@ {state} False

:MAF4_28566
108@ = create_car 468 {x} -776.66 {y} 2426.4099 {z} 156.11
set_car_heading 108@ {heading} 175.776
190@ = 2

:MAF4_28606
if 
  190@ == 2
goto_if_false @MAF4_28834
if 
  locate_char_any_means_3d $scplayer {x} -791.14 {y} 2425.3301 {z} 156.2 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_28834
clear_area -810.94 {y} 2360.4199 {z} 150.81 {radius} 200.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
do_fade 500 {direction} Fade.Out
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 26631
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38444

:MAF4_28738
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_28768
wait 0
goto @MAF4_28738

:MAF4_28768
if 
  get_fading_status 
goto_if_false @MAF4_28792
wait 0
goto @MAF4_28768

:MAF4_28792
set_char_coordinates $scplayer {x} -791.178 {y} 2425.3401 {z} 156.16
set_char_heading $scplayer {heading} 256.615
clear_char_tasks_immediately $scplayer
190@ = 3

:MAF4_28834
if 
  190@ == 3
goto_if_false @MAF4_29382
set_fixed_camera_position -785.0004 {y} 2435.679 {z} 157.5931 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -784.9536 {y} 2434.6819 {z} 157.5342 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 250 {direction} Fade.In
play_mission_audio MissionAudioSlot.Slot1
print_now 'TRUX_BH' {time} 2000 {flag} 1

:MAF4_28937
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_28963
wait 0
goto @MAF4_28937

:MAF4_28963
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 26632
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_MB' {time} 3000 {flag} 1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MAF4_29032
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_29058
wait 0
goto @MAF4_29032

:MAF4_29058
clear_char_tasks_immediately $scplayer
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38445

:MAF4_29076
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29102
wait 0
goto @MAF4_29076

:MAF4_29102
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_MC' {time} 3000 {flag} 1

:MAF4_29122
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29148
wait 0
goto @MAF4_29122

:MAF4_29148
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 38446
if 
  not is_car_dead 107@
goto_if_false @MAF4_29211
car_goto_coordinates 107@ {x} -810.94 {y} 2360.4199 {z} 150.81
TIMERA = 0
190@ = 4

:MAF4_29211
if 
  not is_car_dead 107@
goto_if_false @MAF4_29238
task_look_at_vehicle $scplayer {vehicle} 107@ {time} 5000

:MAF4_29238
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_29264
wait 0
goto @MAF4_29238

:MAF4_29264
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_MD' {time} 2000 {flag} 1

:MAF4_29284
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_29310
wait 0
goto @MAF4_29284

:MAF4_29310
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29336
wait 0
goto @MAF4_29310

:MAF4_29336
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_ME' {time} 2000 {flag} 1

:MAF4_29356
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29382
wait 0
goto @MAF4_29356

:MAF4_29382
if 
  190@ == 4
goto_if_false @MAF4_29499
if 
  TIMERA > 2000
goto_if_false @MAF4_29499
do_fade 500 {direction} Fade.Out

:MAF4_29426
if 
  get_fading_status 
goto_if_false @MAF4_29450
wait 0
goto @MAF4_29426

:MAF4_29450
clear_char_tasks_immediately $scplayer
delete_car 107@
delete_char 106@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
do_fade 500 {direction} Fade.In
goto @MAF4_29999
190@ = 5

:MAF4_29499
goto @MAF4_1996

:MAF4_29506
if 
  197@ == 0
goto_if_false @MAF4_29546
load_mission_audio MissionAudioSlot.Slot1 {audioId} 156@
set_lvar_text_label 154@s = 157@s
197@ = 1

:MAF4_29546
return 

:MAF4_29548
if 
  197@ == 1
goto_if_false @MAF4_29627
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29627
if 
  not is_lvar_text_label_equal_to_text_label 154@s == 'DUMMY'
goto_if_false @MAF4_29616
print_now 154@s {time} 4000 {flag} 1

:MAF4_29616
play_mission_audio MissionAudioSlot.Slot1
197@ = 2

:MAF4_29627
if 
  197@ == 2
goto_if_false @MAF4_29694
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29694
196@ += 1
199@ += 1
201@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
197@ = 0

:MAF4_29694
return 

:MAF4_29696
165@ = 0

:MAF4_29703
if 
  7 > 165@
goto_if_false @MAF4_29811
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_29797
move_searchlight_between_coords 35@(165@,7i) {fromX} 49@(165@,7f) {fromY} 56@(165@,7f) {fromZ} 63@(165@,7f) {toX} 70@(165@,7f) {toY} 77@(165@,7f) {toZ} 84@(165@,7f) {speed} 0.3

:MAF4_29797
165@ += 1
goto @MAF4_29703

:MAF4_29811
return 

:MAF4_29813
166@ = 0

:MAF4_29820
if 
  7 > 166@
goto_if_false @MAF4_29889
if 
  does_searchlight_exist 35@(166@,7i)
goto_if_false @MAF4_29875
point_searchlight_at_char 35@(166@,7i) {handle} $scplayer {speed} 0.125

:MAF4_29875
166@ += 1
goto @MAF4_29820

:MAF4_29889
return 

:MAF4_29891
152@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 152@
perform_sequence_task 153@ {sequence} 152@
clear_sequence_task 152@
return 

:MAF4_29929
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_object $5176
$5176 = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $5176 {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $5176
return 

:MAF4_29999
$flag_desert_mission_counter += 1
set_int_stat StatId.PassedDesert8 {value} 1
$3241 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 297.8289 {y} 1846.623 {z} 6.7266
$3242 = create_pickup_with_ammo 370 {pickupType} PickupType.OnStreetSlow {ammo} 0 {x} 268.7 {y} 1884.1 {z} -30.085
$3342 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 266.2813 {y} 1816.3979 {z} 1.594
$3248 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 212.8813 {y} 1811.005 {z} 21.4187
$goggle_pickups = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 1270.52 {y} -795.5929 {z} 1084.254
$3250 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} -350.499 {y} 1608.437 {z} 75.642
$3251 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} -2224.6799 {y} 129.1278 {z} 1035.62
remove_blip $desert2_contact_blip
register_mission_passed 'DESERT8'
play_mission_passed_tune 1
player_made_progress 1
print_with_number_big 'M_PASSD' {num} 1 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
remove_blip $desert2_contact_blip
return 

:MAF4_30253
$onmission = 0
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed #A51_SPOTBULB
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 583
mark_model_as_no_longer_needed 70
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 369
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_radar_zoom 0
release_weather 
force_interior_lighting_for_player $player1 {state} False
set_disable_military_zones False
if 
  is_player_playing $player1
goto_if_false @MAF4_30390
shut_char_up $scplayer {state} False
set_player_enter_car_button $player1 {enabled} False

:MAF4_30390
mark_char_as_no_longer_needed 106@
unload_special_character 1
delete_object 143@
remove_pickup 144@
remove_pickup 145@
remove_pickup 146@
remove_pickup 147@
remove_pickup 148@
remove_pickup 149@
remove_pickup 150@
remove_pickup 151@
show_blips_on_all_levels False
if 
  does_object_exist $trapdoor_a51
goto_if_false @MAF4_30484
set_object_coordinates $trapdoor_a51 {x} 268.664 {y} 1884.0601 {z} 15.925

:MAF4_30484
delete_object $china_town_gate
delete_object $frontdoorr_a51
$china_town_gate = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $china_town_gate {heading} 0.0
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
dont_remove_object $china_town_gate
dont_remove_object $frontdoorr_a51
165@ = 0

:MAF4_30575
if 
  22 > 165@
goto_if_false @MAF4_30616
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_30575

:MAF4_30616
remove_blip 227@
remove_blip 228@
remove_blip 229@
165@ = 0

:MAF4_30638
if 
  7 > 165@
goto_if_false @MAF4_30688
delete_searchlight 35@(165@,7i)
delete_object 42@(165@,7i)
165@ += 1
goto @MAF4_30638

:MAF4_30688
delete_object 92@
delete_object 93@
delete_object 94@
delete_object 95@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
delete_object 102@
delete_object 103@
delete_object 104@
delete_object 105@
release_weather 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_area51_sam_site True
set_wanted_multiplier 1.0
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 82---------------
// Originally: Green Goo

:DES10
gosub @DES10_36
if 
  has_deatharrest_been_executed 
goto_if_false @DES10_27
gosub @DES10_4098

:DES10_27
gosub @DES10_4501
terminate_this_script 

:DES10_36
$onmission = 1
register_mission_given 
script_name 'DES10'
wait 0
load_mission_text 'DSERT10'
force_weather_now WeatherType.ExtraSunnyDesert
make_player_gang_disappear 
57@ = get_int_stat StatId.Fat
if 
  57@ > 600
goto_if_false @DES10_330
load_cutscene 'D10_ALT'

:DES10_114
if 
  not has_cutscene_loaded 
goto_if_false @DES10_138
wait 0
goto @DES10_114

:DES10_138
clear_area 405.2136 {y} 2525.8999 {z} 16.4918 {radius} 7.5 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_171
if 
  not has_cutscene_finished 
goto_if_false @DES10_195
wait 0
goto @DES10_171

:DES10_195
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_208
if 
  get_fading_status 
goto_if_false @DES10_232
wait 0
goto @DES10_208

:DES10_232
clear_cutscene 
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
return 
goto @DES10_461

:DES10_330
load_cutscene 'DES_10A'

:DES10_341
if 
  not has_cutscene_loaded 
goto_if_false @DES10_365
wait 0
goto @DES10_341

:DES10_365
clear_area 419.6919 {y} 2529.9141 {z} 16.6612 {radius} 6.86 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_398
if 
  not has_cutscene_finished 
goto_if_false @DES10_422
wait 0
goto @DES10_398

:DES10_422
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_435
if 
  get_fading_status 
goto_if_false @DES10_459
wait 0
goto @DES10_435

:DES10_459
clear_cutscene 

:DES10_461
release_weather 
request_model 352
request_model 537
request_model 569
request_model 353
request_model 432
request_model 287
request_model 370
load_all_models_now 

:DES10_500
if or
  not has_model_loaded 352
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 353
  not has_model_loaded 432
  not has_model_loaded 287
goto_if_false @DES10_552
wait 0
goto @DES10_500

:DES10_552
if 
  not is_player_playing $player1
goto_if_false @DES10_579
wait 0
goto @DES10_552

:DES10_579
switch_random_trains False
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
set_relationship RelationshipType.Like {ofPedType} PedType.Gang8 {toPedType} PedType.Player1

:DES10_664
if 
  not has_model_loaded 370
goto_if_false @DES10_691
wait 0
goto @DES10_664

:DES10_691
make_player_gang_reappear 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
58@ = create_mission_train 13 {x} 2120.2571 {y} 2694.0581 {z} 9.8359 {direction} False
lock_car_doors 58@ {lockStatus} CarLock.Locked
set_train_speed 58@ {speed} 5.0
set_train_cruise_speed 58@ {speed} 5.0
print_now 'DE10_01' {time} 5000 {flag} 1
$x, $y, $z = get_car_coordinates 58@
$z += 10.0
44@ = 0

:DES10_805
if 
  12 > 44@
goto_if_false @DES10_946
create_char PedType.CivMale {modelId} 287 {x} $x {y} $y {z} $z {var_handle} 66@(44@,12i)
task_stay_in_same_place 66@(44@,12i) {state} True
set_char_only_damaged_by_player 66@(44@,12i) {state} True
give_weapon_to_char 66@(44@,12i) {weaponType} WeaponType.Mp5 {ammo} 9999
task_kill_char_on_foot 66@(44@,12i) {target} $scplayer
set_char_relationship 66@(44@,12i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 66@(44@,12i) {range} 150.0
set_load_collision_for_char_flag 66@(44@,12i) {state} False
44@ += 1
goto @DES10_805

:DES10_946
attach_char_to_car 66@ {vehicle} 58@ {xOffset} -0.0032 {yOffset} -8.3584 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 67@ {vehicle} 58@ {xOffset} 0.1129 {yOffset} 6.521 {zOffset} 1.9285 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
59@ = get_train_carriage 58@ {number} 1
attach_char_to_car 68@ {vehicle} 59@ {xOffset} -0.014 {yOffset} -7.179 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 69@ {vehicle} 59@ {xOffset} -1.0891 {yOffset} 0.6968 {zOffset} -0.055 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
78@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 78@ {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 78@ {state} True
set_object_health 78@ {health} 180
81@ = add_blip_for_object 78@
84@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 84@ {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
85@ = create_object_no_offset #BLOCKPALLET {x} $x {y} $y {z} $z
attach_object_to_car 85@ {handle} 59@ {xOffset} 0.2634 {yOffset} 1.2508 {zOffset} -0.3321 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
86@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 86@ {handle} 59@ {xOffset} 1.1025 {yOffset} -7.3122 {zOffset} -1.0766 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
87@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 87@ {handle} 59@ {xOffset} 0.8835 {yOffset} -6.5365 {zOffset} -1.1047 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 93.7464
88@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 88@ {handle} 59@ {xOffset} 1.1395 {yOffset} -5.6969 {zOffset} -1.0827 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 83.6459
89@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 89@ {handle} 59@ {xOffset} 0.4817 {yOffset} -1.5356 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 93.1856
60@ = get_train_carriage 58@ {number} 2
attach_char_to_car 70@ {vehicle} 60@ {xOffset} -0.014 {yOffset} -7.179 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 71@ {vehicle} 60@ {xOffset} -1.0891 {yOffset} 0.6968 {zOffset} -0.055 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
61@ = get_train_carriage 58@ {number} 3
attach_char_to_car 72@ {vehicle} 61@ {xOffset} 0.3372 {yOffset} -1.3877 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 73@ {vehicle} 61@ {xOffset} -0.0956 {yOffset} 2.1291 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
79@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 79@ {handle} 61@ {xOffset} -0.0403 {yOffset} 4.0293 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 79@ {state} True
set_object_health 79@ {health} 180
82@ = add_blip_for_object 79@
90@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 90@ {handle} 61@ {xOffset} -0.0403 {yOffset} 4.0293 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 2.7605
91@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 91@ {handle} 61@ {xOffset} -0.0177 {yOffset} 0.6971 {zOffset} -1.0662 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 91.0
92@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 92@ {handle} 61@ {xOffset} -0.0228 {yOffset} -2.9213 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 87.9095
93@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 93@ {handle} 61@ {xOffset} 0.1054 {yOffset} 6.4364 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 89.7187
96@ = create_object_no_offset #K_CARGO4 {x} $x {y} $y {z} $z
attach_object_to_car 96@ {handle} 61@ {xOffset} 0.4192 {yOffset} -6.0624 {zOffset} -1.0628 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 2.7605
62@ = get_train_carriage 58@ {number} 4
attach_char_to_car 74@ {vehicle} 62@ {xOffset} -0.516 {yOffset} 7.4724 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
103@ = create_car 432 {x} $x {y} $y {z} $z
lock_car_doors 103@ {lockStatus} CarLock.Locked
attach_car_to_car 103@ {handle} 62@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
63@ = get_train_carriage 58@ {number} 5
attach_char_to_car 75@ {vehicle} 63@ {xOffset} 0.2861 {yOffset} -5.3712 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 76@ {vehicle} 63@ {xOffset} -0.2277 {yOffset} 7.3808 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 77@ {vehicle} 63@ {xOffset} 0.6604 {yOffset} 3.8015 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
80@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 80@ {handle} 63@ {xOffset} 0.0853 {yOffset} 5.9501 {zOffset} -1.0583 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 80@ {state} True
set_object_health 80@ {health} 180
83@ = add_blip_for_object 80@
97@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 97@ {handle} 63@ {xOffset} 0.0853 {yOffset} 5.9501 {zOffset} -1.0583 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 92.239
98@ = create_object_no_offset #K_CARGO4 {x} $x {y} $y {z} $z
attach_object_to_car 98@ {handle} 63@ {xOffset} -0.8464 {yOffset} -6.5879 {zOffset} -1.0628 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.12
100@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 100@ {handle} 63@ {xOffset} 0.8877 {yOffset} 0.1707 {zOffset} -1.0564 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 177.5167
101@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 101@ {handle} 63@ {xOffset} -0.6907 {yOffset} 0.205 {zOffset} -1.0662 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 179.6863
102@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 102@ {handle} 63@ {xOffset} 0.0036 {yOffset} 2.2326 {zOffset} -1.0644 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 267.6086
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 36@ = $game_timer
36@ += 600000
35@ = 0
109@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 37800

:DES10_2637
wait 0
$game_timer = get_game_timer 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DES10_2668
goto @DES10_4116

:DES10_2668
if 
  not is_car_dead 58@
goto_if_false @DES10_2694
set_train_cruise_speed 58@ {speed} 10.0

:DES10_2694
if 
  109@ == 0
goto_if_false @DES10_2766
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 58@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @DES10_2766
print_now 'DE10_06' {time} 5000 {flag} 1
109@ += 1

:DES10_2766
44@ = 0

:DES10_2773
if 
  3 > 44@
goto_if_false @DES10_3984
if 
  104@(44@,3i) == 0
goto_if_false @DES10_2851
if 
  does_object_exist 78@(44@,3i)
goto_if_false @DES10_2851
107@ += 1
104@(44@,3i) += 1

:DES10_2851
if 
  104@(44@,3i) == 1
goto_if_false @DES10_2920
if 
  has_object_been_damaged 78@(44@,3i)
goto_if_false @DES10_2920
remove_blip 81@(44@,3i)
108@ += 1
104@(44@,3i) += 1

:DES10_2920
if 
  104@(44@,3i) == 2
goto_if_false @DES10_3379
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_3343
$x, $y, $z = get_object_coordinates 78@(44@,3i)
$z += 1.0
delete_object 78@(44@,3i)
create_object_no_offset #GREEN_GLOOP {x} $x {y} $y {z} $z {var_handle} 78@(44@,3i)
if 
  44@ == 0
goto_if_false @DES10_3102
if 
  not is_car_dead 59@
goto_if_false @DES10_3095
attach_object_to_car 78@(44@,3i) {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3095
goto @DES10_3243

:DES10_3102
if 
  44@ == 1
goto_if_false @DES10_3185
if 
  not is_car_dead 61@
goto_if_false @DES10_3178
attach_object_to_car 78@(44@,3i) {handle} 61@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3178
goto @DES10_3243

:DES10_3185
if 
  not is_car_dead 63@
goto_if_false @DES10_3243
attach_object_to_car 78@(44@,3i) {handle} 63@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3243
set_object_collision 78@(44@,3i) {state} False
add_blip_for_object 78@(44@,3i) {var_handle} 81@(44@,3i)
print_now 'DE10_02' {time} 5000 {flag} 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 37800
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DES10_3325
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 78@(44@,3i)
play_mission_audio MissionAudioSlot.Slot3

:DES10_3325
104@(44@,3i) = 4
goto @DES10_3379

:DES10_3343
mark_object_as_no_longer_needed 78@(44@,3i)
print_now 'DE10_03' {time} 5000 {flag} 1
104@(44@,3i) += 1

:DES10_3379
if 
  104@(44@,3i) == 4
goto_if_false @DES10_3646
$x, $y, $z = get_object_coordinates 78@(44@,3i)
add_float_lvar_to_float_lvar 110@ += 111@
if 
  110@ > 0.2
goto_if_false @DES10_3458
111@ = -0.01

:DES10_3458
if 
  0.0 > 110@
goto_if_false @DES10_3499
110@ = 0.0
111@ = 0.01

:DES10_3499
draw_weaponshop_corona $x {y} $y {z} $z {size} 110@ {coronaType} CoronaType.Moon {flareType} FlareType.Headlights {r} 0 {g} 255 {b} 0
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @DES10_3646
delete_object 78@(44@,3i)
clear_mission_audio MissionAudioSlot.Slot3
print_now 'DE10_04' {time} 5000 {flag} 1
remove_blip 81@(44@,3i)
add_blip_for_coord 408.7383 {y} 2515.8379 {z} 15.4918 {var_handle} 81@(44@,3i)
104@(44@,3i) += 1
35@ += 1

:DES10_3646
if 
  104@(44@,3i) == 5
goto_if_false @DES10_3970
if 
  locate_char_any_means_3d $scplayer {x} 408.7383 {y} 2515.8379 {z} 15.4918 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @DES10_3970
do_fade 1000 {direction} Fade.Out

:DES10_3723
if 
  get_fading_status 
goto_if_false @DES10_3747
wait 0
goto @DES10_3723

:DES10_3747
clear_char_tasks_immediately $scplayer
load_cutscene 'DES_10B'

:DES10_3763
if 
  not has_cutscene_loaded 
goto_if_false @DES10_3787
wait 0
goto @DES10_3763

:DES10_3787
clear_area 398.7038 {y} 2529.7351 {z} 16.563 {radius} 7.35 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_3820
if 
  not has_cutscene_finished 
goto_if_false @DES10_3844
wait 0
goto @DES10_3820

:DES10_3844
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_3857
if 
  get_fading_status 
goto_if_false @DES10_3881
wait 0
goto @DES10_3857

:DES10_3881
clear_cutscene 
clear_area 402.8737 {y} 2531.582 {z} 15.5558 {radius} 0.5 {clearParticles} False
load_scene 402.8737 {y} 2531.582 {z} 15.5558
set_char_coordinates $scplayer {x} 402.8737 {y} 2531.582 {z} 15.5558
set_char_heading $scplayer {heading} 224.0
set_camera_behind_player 
set_player_control $player1 {state} True
goto @DES10_4116

:DES10_3970
44@ += 1
goto @DES10_2773

:DES10_3984
if 
  35@ == 0
goto_if_false @DES10_4091
if 
  not is_car_dead 58@
goto_if_false @DES10_4091
if 
  is_int_var_greater_than_int_lvar $game_timer > 36@
goto_if_false @DES10_4091
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 58@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DES10_4091
print_now 'DE10_05' {time} 5000 {flag} 1
goto @DES10_4098

:DES10_4091
goto @DES10_2637

:DES10_4098
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DES10_4116
$d9_counting = 10000
112@ = create_pickup 370 {pickupType} PickupType.OnStreetSlow {x} 431.045 {y} 2537.78 {z} 16.2463
$pilot_revenue = create_protection_pickup 420.5204 {y} 2532.687 {z} 16.0869 {revenueLimit} $d9_counting {revenueRate} $d9_counting
set_player_control $player1 {state} False
wait 0
switch_widescreen True
load_scene 407.8369 {y} 2515.6499 {z} 18.9138
set_fixed_camera_position 407.8369 {y} 2515.6499 {z} 18.9138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 408.3296 {y} 2516.52 {z} 18.9449 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:DES10_4265
if 
  get_fading_status 
goto_if_false @DES10_4289
wait 0
goto @DES10_4265

:DES10_4289
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 419.7284 {y} 2526.5459 {z} 16.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 419.897 {y} 2527.531 {z} 16.8356 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $d9_counting {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:DES10_4396
if 
  get_fading_status 
goto_if_false @DES10_4420
wait 0
goto @DES10_4396

:DES10_4420
do_fade 500 {direction} Fade.In
set_int_stat StatId.PassedDesert10 {value} 1
restore_camera_jumpcut 
$flag_desert_mission_counter += 1
print_with_number_big 'M_PASS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESER10'
player_made_progress 1
remove_blip $desert2_contact_blip
return 

:DES10_4501
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_4524
clear_mission_audio MissionAudioSlot.Slot3

:DES10_4524
remove_blip 81@
remove_blip 82@
remove_blip 83@
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 432
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 370
switch_random_trains True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 83---------------
// Originally: Learning to Fly

:DESERT5
script_name 'DESERT5'
gosub @DESERT5_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT5_38
gosub @DESERT5_29911

:DESERT5_38
gosub @DESERT5_30098
terminate_this_script 

:DESERT5_47
clear_this_print 'M_FAIL'
$onmission = 1
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_85
register_mission_given 

:DESERT5_85
load_mission_text 'DSERT5'
set_fading_colour 0 {g} 0 {b} 0
wait 0
do_fade 500 {direction} Fade.Out

:DESERT5_115
if 
  get_fading_status 
goto_if_false @DESERT5_139
wait 0
goto @DESERT5_115

:DESERT5_139
$noticeboard_x = 415.55
$noticeboard_y = 2533.5701
$noticeboard_z = 19.18
230@ = 0
226@ = 0
227@ = 0
229@ = 0
228@ = 0
231@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
44@ = -81.36
45@ = 2476.0
46@ = 435.92
47@ = 2528.6201
set_lvar_float_to_lvar_float 48@ = 44@
add_float_lvar_to_float_lvar 48@ += 46@
48@ /= 2.0
set_lvar_float_to_lvar_float 49@ = 45@
add_float_lvar_to_float_lvar 49@ += 47@
49@ /= 2.0
50@ = 321.52
set_lvar_float_to_lvar_float 51@ = 49@
52@ = 17.16
73@ = -383.79
set_lvar_float_to_lvar_float 76@ = 49@
79@ = 147.09
set_lvar_float_to_lvar_float 74@ = 73@
74@ -= 300.0
set_lvar_float_to_lvar_float 77@ = 76@
set_lvar_float_to_lvar_float 80@ = 79@
80@ -= 20.0
set_lvar_float_to_lvar_float 75@ = 73@
75@ -= 650.0
set_lvar_float_to_lvar_float 78@ = 76@
set_lvar_float_to_lvar_float 81@ = 79@
81@ += 10.0
53@ = -383.79
set_lvar_float_to_lvar_float 54@ = 49@
55@ = 85.09
set_lvar_float_to_lvar_float 82@ = 44@
set_lvar_float_to_lvar_float 83@ = 49@
84@ = 33.3
set_lvar_float_to_lvar_float 109@ = 50@
109@ -= 500.0
set_lvar_float_to_lvar_float 110@ = 51@
set_lvar_float_to_lvar_float 111@ = 52@
111@ += 120.0
56@ = 308.0
set_lvar_float_to_lvar_float 57@ = 49@
58@ = 17.07
63@ = 3
66@ = 2
set_lvar_float_to_lvar_float 112@ = 48@
set_lvar_float_to_lvar_float 113@ = 49@
114@ = 80.0
set_lvar_float_to_lvar_float 115@ = 112@
115@ += 200.0
129@ = 15.0
set_lvar_float_to_lvar_float 136@ = 48@
set_lvar_float_to_lvar_float 137@ = 49@
138@ = 15.53
set_lvar_float_to_lvar_float 139@ = 136@
139@ += 350.0
set_lvar_float_to_lvar_float 140@ = 137@
141@ = 900.0
$d5_plane_up_component = 0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
159@ = 0
160@ = 0
177@ = 0
178@ = 0
215@ = 0
216@ = 0
218@ = 0
219@ = 0
if 
  219@ == 1
goto_if_false @DESERT5_954
35@ = create_car 476 {x} 0.0 {y} 0.0 {z} -100.0
70@ = create_char PedType.Mission1 {modelId} 0 {x} 0.0 {y} 0.0 {z} -100.0
156@ = 0

:DESERT5_894
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_954
create_car 514 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 60@(156@,3i)
156@ += 1
goto @DESERT5_894

:DESERT5_954
clear_this_print_big_now TextStyle.Middle
clear_area_of_cars 44@ {leftBottomY} 45@ {leftBottomZ} 0.0 {rightTopX} 46@ {rightTopY} 47@ {rightTopZ} 50.0
show_update_stats False
set_area51_sam_site False
switch_police_helis False
239@ = get_max_wanted_level 
set_max_wanted_level 0
request_model 476
request_model 425
request_model 514
request_model 400
request_model 513
stream_script 1
load_all_models_now 

:DESERT5_1034
if or
  not has_model_loaded 476
  not has_model_loaded 425
  not has_model_loaded 514
  not has_model_loaded 400
  not has_model_loaded 513
goto_if_false @DESERT5_1081
wait 0
goto @DESERT5_1034

:DESERT5_1081
if 
  not has_streamed_script_loaded 1
goto_if_false @DESERT5_1107
wait 0
goto @DESERT5_1081

:DESERT5_1107
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRFLY"
load_sprite 2 {spriteName} "SILFLY"
load_sprite 3 {spriteName} "GOLFLY"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
load_sprite 10 {spriteName} "NAWTXT"
set_always_draw_3d_markers True
if 
  $d5_watched_first_cutscene == 0
goto_if_false @DESERT5_2570
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 50.0 {clearParticles} False
set_char_coordinates $scplayer {x} 414.8 {y} 2534.2 {z} 18.18
set_char_heading $scplayer {heading} 200.0
set_lvar_text_label 179@s = 'MTOR04A'
set_lvar_text_label 181@s = 'MTOR04B'
set_lvar_text_label 183@s = 'MTOR04C'
set_lvar_text_label 185@s = 'MTOR04D'
set_lvar_text_label 187@s = 'MTOR04E'
set_lvar_text_label 189@s = 'MTOR04F'
set_lvar_text_label 191@s = 'MTOR04G'
set_lvar_text_label 193@s = 'MTOR04H'
set_lvar_text_label 195@s = 'MTOR04J'
set_lvar_text_label 197@s = 'MTOR04K'
set_lvar_text_label 199@s = 'MTOR04L'
set_lvar_text_label 201@s = 'MTOR04M'
set_lvar_int_to_constant 203@ = 4811
set_lvar_int_to_constant 204@ = 4840
set_lvar_int_to_constant 205@ = 4841
set_lvar_int_to_constant 206@ = 4812
set_lvar_int_to_constant 207@ = 4813
set_lvar_int_to_constant 208@ = 4842
set_lvar_int_to_constant 209@ = 4814
set_lvar_int_to_constant 210@ = 4815
set_lvar_int_to_constant 211@ = 4816
set_lvar_int_to_constant 212@ = 4817
set_lvar_int_to_constant 213@ = 4843
set_lvar_int_to_constant 214@ = 4818
217@ = 12
215@ = 0
218@ = 0
set_player_control $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen True
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28200

:DESERT5_1616
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DESERT5_1647
wait 0
goto @DESERT5_1616

:DESERT5_1647
task_use_mobile_phone $scplayer {start} True
play_mission_audio MissionAudioSlot.Slot3
set_fixed_camera_position 415.83 {y} 2532.9399 {z} 19.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 415.28 {y} 2533.6499 {z} 19.5 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DESERT5_1716
if 
  get_fading_status 
goto_if_false @DESERT5_1740
wait 0
goto @DESERT5_1716

:DESERT5_1740
240@ = 1
skip_cutscene_start_internal @DESERT5_2377
wait 600
clear_mission_audio MissionAudioSlot.Slot3
wait 1000
216@ = 0

:DESERT5_1775
if 
  1 > 216@
goto_if_false @DESERT5_1811
wait 0
gosub @DESERT5_29680
goto @DESERT5_1775

:DESERT5_1811
if 
  2 > 216@
goto_if_false @DESERT5_1887
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1880
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_1880
goto @DESERT5_1811

:DESERT5_1887
stop_char_facial_talk $scplayer

:DESERT5_1892
if 
  3 > 216@
goto_if_false @DESERT5_1968
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1961
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_1961
goto @DESERT5_1892

:DESERT5_1968
stop_char_facial_talk $scplayer

:DESERT5_1973
if 
  5 > 216@
goto_if_false @DESERT5_2009
wait 0
gosub @DESERT5_29680
goto @DESERT5_1973

:DESERT5_2009
if 
  6 > 216@
goto_if_false @DESERT5_2085
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2078
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_2078
goto @DESERT5_2009

:DESERT5_2085
stop_char_facial_talk $scplayer

:DESERT5_2090
if 
  8 > 216@
goto_if_false @DESERT5_2216
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  216@ == 7
  218@ <> 1
goto_if_false @DESERT5_2209
set_fixed_camera_position 414.83 {y} 2532.1299 {z} 19.43 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 415.01 {y} 2533.1101 {z} 19.42 {switchStyle} SwitchType.JumpCut
218@ = 1

:DESERT5_2209
goto @DESERT5_2090

:DESERT5_2216
if 
  10 > 216@
goto_if_false @DESERT5_2252
wait 0
gosub @DESERT5_29680
goto @DESERT5_2216

:DESERT5_2252
if 
  11 > 216@
goto_if_false @DESERT5_2328
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2321
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_2321
goto @DESERT5_2252

:DESERT5_2328
stop_char_facial_talk $scplayer

:DESERT5_2333
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_2370
wait 0
gosub @DESERT5_29680
goto @DESERT5_2333

:DESERT5_2370
240@ = 0

:DESERT5_2377
skip_cutscene_end 
if 
  240@ <> 1
goto_if_false @DESERT5_2404
task_use_mobile_phone $scplayer {start} False

:DESERT5_2404
do_fade 1000 {direction} Fade.Out

:DESERT5_2411
if 
  get_fading_status 
goto_if_false @DESERT5_2435
wait 0
goto @DESERT5_2411

:DESERT5_2435
if 
  240@ == 1
goto_if_false @DESERT5_2460
task_use_mobile_phone $scplayer {start} False

:DESERT5_2460
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot3
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
set_char_coordinates $scplayer {x} 413.94 {y} $noticeboard_y {z} 18.18
set_char_heading $scplayer {heading} 270.0
178@ = 1
$d5_watched_first_cutscene = 1
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:DESERT5_2539
if 
  get_fading_status 
goto_if_false @DESERT5_2563
wait 0
goto @DESERT5_2539

:DESERT5_2563
goto @DESERT5_29911

:DESERT5_2570
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
set_char_heading $scplayer {heading} 90.0

:DESERT5_2600
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
238@ = 0
231@ = 0
230@ = 0
use_text_commands True
227@ = 255
226@ = 2
set_lvar_int_to_var_int 34@ = $d5_last_played
if 
  34@ == 3
goto_if_false @DESERT5_2726
34@ = 4

:DESERT5_2726
if 
  34@ == 5
goto_if_false @DESERT5_2751
34@ = 6

:DESERT5_2751
display_hud False
display_radar False
load_mission_audio MissionAudioSlot.Slot3 {audioId} 31400

:DESERT5_2766
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DESERT5_2792
wait 0
goto @DESERT5_2766

:DESERT5_2792
do_fade 1000 {direction} Fade.In
gosub @DESERT5_20476

:DESERT5_2806
if 
  get_fading_status 
goto_if_false @DESERT5_2837
wait 0
gosub @DESERT5_20476
goto @DESERT5_2806

:DESERT5_2837
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT5_2863
goto @DESERT5_29949

:DESERT5_2863
gosub @DESERT5_20476
if 
  230@ == 0
goto_if_false @DESERT5_3392
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DESERT5_3035
34@ -= 1
$d5_last_played -= 1
if 
  34@ == 3
goto_if_false @DESERT5_2967
34@ = 2

:DESERT5_2967
if 
  34@ == 5
goto_if_false @DESERT5_2992
34@ = 4

:DESERT5_2992
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3035
if 
  4 > 231@
goto_if_false @DESERT5_3035
231@ = 3

:DESERT5_3035
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3166
34@ += 1
$d5_last_played += 1
if 
  34@ == 3
goto_if_false @DESERT5_3098
34@ = 4

:DESERT5_3098
if 
  34@ == 5
goto_if_false @DESERT5_3123
34@ = 6

:DESERT5_3123
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3166
if 
  4 > 231@
goto_if_false @DESERT5_3166
231@ = 3

:DESERT5_3166
if 
  1 > 34@
goto_if_false @DESERT5_3200
set_lvar_int_to_var_int 34@ = $d5_total_missions_open
set_var_int_to_var_int $d5_last_played = $d5_total_missions_open

:DESERT5_3200
if 
  is_int_lvar_greater_than_int_var 34@ > $d5_total_missions_open
goto_if_false @DESERT5_3233
34@ = 1
$d5_last_played = 1

:DESERT5_3233
if or
  -100 > $LStickX
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3304
wait 0
gosub @DESERT5_20476
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DESERT5_3233

:DESERT5_3304
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_3392
if or
  34@ == 4
  34@ == 6
goto_if_false @DESERT5_3360
230@ = 1
goto @DESERT5_3392

:DESERT5_3360
if 
  4 > 231@
goto_if_false @DESERT5_3385
231@ = 3

:DESERT5_3385
goto @DESERT5_3793

:DESERT5_3392
if 
  230@ == 1
goto_if_false @DESERT5_3722
if 
  4 > 231@
goto_if_false @DESERT5_3435
231@ = 3

:DESERT5_3435
if 
  231@ == 0
goto_if_false @DESERT5_3460
231@ = 5

:DESERT5_3460
gosub @DESERT5_24693
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 140.0 {key} 'DES5_FH'
gosub @DESERT5_24693
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 182.0 {offsetTop} 185.0 {key} 'DES5_FI'
gosub @DESERT5_24693
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 182.0 {offsetTop} 211.0 {key} 'DES5_FJ'
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DESERT5_3641
goto @DESERT5_3793

:DESERT5_3641
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3722
if 
  34@ == 4
goto_if_false @DESERT5_3690
34@ = 3

:DESERT5_3690
if 
  34@ == 6
goto_if_false @DESERT5_3715
34@ = 5

:DESERT5_3715
goto @DESERT5_3793

:DESERT5_3722
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @DESERT5_3751
$d5_total_missions_open = 12
$pilot_test_passed = 1

:DESERT5_3751
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_3775
goto @DESERT5_29911

:DESERT5_3775
force_weather_now WeatherType.ExtraSunnyDesert
gosub @DESERT5_23098
goto @DESERT5_2837

:DESERT5_3793
do_fade 500 {direction} Fade.Out

:DESERT5_3800
if 
  get_fading_status 
goto_if_false @DESERT5_3831
wait 0
gosub @DESERT5_20476
goto @DESERT5_3800

:DESERT5_3831
if 
  not is_car_dead 35@
goto_if_false @DESERT5_3852
stop_playback_recorded_car 35@

:DESERT5_3852
delete_car 35@
restore_camera_jumpcut 
delete_char 70@
156@ = 0

:DESERT5_3871
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_3913
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_3871

:DESERT5_3913
clear_mission_audio MissionAudioSlot.Slot3
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 500.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
231@ = 5
display_hud True
display_radar True
if 
  34@ == 1
goto_if_false @DESERT5_5468

:DESERT5_3977
gosub @DESERT5_24871

:DESERT5_3984
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_up_component = 0
$d5_plane_reached_takeoff_point = 0
157@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_4135
set_fixed_camera_position 172.6 {y} 2466.1399 {z} 17.05 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_4135
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_4165
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_4204
232@ = 2
goto @DESERT5_5415

:DESERT5_4204
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_4273
if 
  is_car_in_water 35@
goto_if_false @DESERT5_4266
232@ = 2
goto @DESERT5_5415
goto @DESERT5_4273

:DESERT5_4266
goto @DESERT5_29911

:DESERT5_4273
if 
  233@ == 0
goto_if_false @DESERT5_4355
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_4348
print_now 'DES5_1B' {time} 10000 {flag} 4

:DESERT5_4348
goto @DESERT5_5461

:DESERT5_4355
if 
  not is_car_dead 35@
goto_if_false @DESERT5_5461
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_4561
if 
  $d5_plane_up_component <> 1
goto_if_false @DESERT5_4459
$pilot_cash_pickup = get_car_pitch 35@
if 
  5.0 >= $pilot_cash_pickup
goto_if_false @DESERT5_4459
$d5_plane_up_component = 1
print_now 'DES5_1C' {time} 10000 {flag} 4

:DESERT5_4459
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_4524
$d5_plane_reached_takeoff_point = 1
print_now 'DES5_1I' {time} 10000 {flag} 4
goto @DESERT5_4561

:DESERT5_4524
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_4561
236@ = 1

:DESERT5_4561
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_4986
if 
  157@ <> 1
goto_if_false @DESERT5_4725
151@ = get_plane_undercarriage_position 35@
if 
  151@ > 0.0
goto_if_false @DESERT5_4718
157@ = 1
220@ = add_blip_for_coord 73@ {y} 76@ {z} 79@
118@ = create_checkpoint CheckpointType.Torus {x} 73@ {y} 76@ {z} 79@ {pointX} 0.0 {pointY} 76@ {pointZ} 79@ {radius} 129@
116@ = 0
clear_prints 
print_now 'DES5_1F' {time} 7000 {flag} 4
print 'DES5_1J' {time} 10000 {flag} 4

:DESERT5_4718
goto @DESERT5_4986

:DESERT5_4725
if 
  locate_char_in_car_3d $scplayer {x} 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_4986
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  3 > 116@
goto_if_false @DESERT5_4979
220@ = add_blip_for_coord 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f)
118@ = create_checkpoint CheckpointType.Torus {x} 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f) {pointX} 0.0 {pointY} 76@(116@,3f) {pointZ} 79@(116@,3f) {radius} 129@
if 
  116@ == 1
goto_if_false @DESERT5_4938
print_now 'DES5_1G' {time} 10000 {flag} 4

:DESERT5_4938
if 
  116@ == 2
goto_if_false @DESERT5_4972
print_now 'DES5_1H' {time} 10000 {flag} 4

:DESERT5_4972
goto @DESERT5_4986

:DESERT5_4979
235@ = 1

:DESERT5_4986
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_5027
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_5027
236@ = 1

:DESERT5_5027
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_5070
236@ = 1

:DESERT5_5070
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_5461
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_5169
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 30
148@ = 45
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_5197

:DESERT5_5169
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_5197
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[0]
goto_if_false @DESERT5_5246
set_lvar_int_to_var_int 237@ = $d5_best_scores[0]
set_var_int_to_var_int $d5_best_scores[0] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_5246
if 
  $d5_total_missions_open == 1
goto_if_false @DESERT5_5317
if 
  $overall_score > 69
goto_if_false @DESERT5_5317
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 2
$d5_last_played = 2
232@ = 2

:DESERT5_5317
gosub @DESERT5_27584

:DESERT5_5324
if 
  219@ == 0
goto_if_false @DESERT5_5415
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_5384
232@ = 2
goto @DESERT5_5415

:DESERT5_5384
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_5408
goto @DESERT5_5415

:DESERT5_5408
goto @DESERT5_5324

:DESERT5_5415
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_5454
goto @DESERT5_2600
goto @DESERT5_5461

:DESERT5_5454
goto @DESERT5_3977

:DESERT5_5461
goto @DESERT5_4165

:DESERT5_5468
if 
  34@ == 2
goto_if_false @DESERT5_6924

:DESERT5_5486
gosub @DESERT5_24871

:DESERT5_5493
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
159@ = 0
160@ = 0
158@ = 0
35@ = create_car 476 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_5644
set_fixed_camera_position 27.29 {y} 2466.3101 {z} 16.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_5644
set_plane_undercarriage_up 35@ {state} True
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_2J' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_5688
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_5727
232@ = 2
goto @DESERT5_6871

:DESERT5_5727
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_5796
if 
  is_car_in_water 35@
goto_if_false @DESERT5_5789
232@ = 2
goto @DESERT5_6871
goto @DESERT5_5796

:DESERT5_5789
goto @DESERT5_29911

:DESERT5_5796
if 
  233@ == 0
goto_if_false @DESERT5_5937
if 
  not is_car_dead 35@
goto_if_false @DESERT5_5930
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 30.0
220@ = add_blip_for_coord 82@ {y} 83@ {z} 84@
118@ = create_checkpoint CheckpointType.Torus {x} 82@ {y} 83@ {z} 84@ {pointX} -200.0 {pointY} 83@ {pointZ} 84@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_2J' {time} 5000 {flag} 4
233@ = 1

:DESERT5_5930
goto @DESERT5_6917

:DESERT5_5937
if 
  not is_car_dead 35@
goto_if_false @DESERT5_6917
if 
  159@ == 0
goto_if_false @DESERT5_6171
if 
  158@ <> 1
goto_if_false @DESERT5_6041
151@ = get_plane_undercarriage_position 35@
if 
  1.0 > 151@
goto_if_false @DESERT5_6041
158@ = 1
print_now 'DES5_2C' {time} 5000 {flag} 4

:DESERT5_6041
if 
  locate_char_in_car_3d $scplayer {x} 82@ {y} 83@ {z} 84@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_6164
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
159@ = 1
220@ = add_blip_for_coord 308.0 {y} 49@ {z} 52@
clear_prints 
print_now 'DES5_2I' {time} 5000 {flag} 4
print 'DES5_2D' {time} 7000 {flag} 4

:DESERT5_6164
goto @DESERT5_6368

:DESERT5_6171
  is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
if 
  160@ <> 1
goto_if_false @DESERT5_6321
37@, 38@, 39@ = get_car_coordinates 35@
if 
  17.66 >= 39@
goto_if_false @DESERT5_6314
160@ = 1
clear_prints 
print_now 'DES5_2E' {time} 7000 {flag} 4
print 'DES5_2F' {time} 7000 {flag} 4
print 'DES5_2G' {time} 7000 {flag} 4

:DESERT5_6314
goto @DESERT5_6368

:DESERT5_6321
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_6368
235@ = 1

:DESERT5_6368
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_6483
if 
  159@ <> 1
goto_if_false @DESERT5_6416
236@ = 1
goto @DESERT5_6483

:DESERT5_6416
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_6460
236@ = 1
goto @DESERT5_6483

:DESERT5_6460
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_6483
236@ = 1

:DESERT5_6483
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_6526
236@ = 1

:DESERT5_6526
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_6917
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_6625
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 25
148@ = 40
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_6653

:DESERT5_6625
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_6653
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[1]
goto_if_false @DESERT5_6702
set_lvar_int_to_var_int 237@ = $d5_best_scores[1]
set_var_int_to_var_int $d5_best_scores[1] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_6702
if 
  $d5_total_missions_open == 2
goto_if_false @DESERT5_6773
if 
  $overall_score > 69
goto_if_false @DESERT5_6773
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 4
$d5_last_played = 4
232@ = 2

:DESERT5_6773
gosub @DESERT5_27584

:DESERT5_6780
if 
  219@ == 0
goto_if_false @DESERT5_6871
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_6840
232@ = 2
goto @DESERT5_6871

:DESERT5_6840
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_6864
goto @DESERT5_6871

:DESERT5_6864
goto @DESERT5_6780

:DESERT5_6871
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_6910
goto @DESERT5_2600
goto @DESERT5_6917

:DESERT5_6910
goto @DESERT5_5486

:DESERT5_6917
goto @DESERT5_5688

:DESERT5_6924
if or
  34@ == 3
  34@ == 4
goto_if_false @DESERT5_8503

:DESERT5_6949
gosub @DESERT5_24871

:DESERT5_6956
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
116@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_7114
set_plane_undercarriage_up 35@ {state} True
set_fixed_camera_position -1251.02 {y} 2301.3201 {z} 140.44 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_7114
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_7144
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_7183
232@ = 2
goto @DESERT5_8402

:DESERT5_7183
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_7252
if 
  is_car_in_water 35@
goto_if_false @DESERT5_7245
232@ = 2
goto @DESERT5_8402
goto @DESERT5_7252

:DESERT5_7245
goto @DESERT5_29911

:DESERT5_7252
if 
  233@ == 0
goto_if_false @DESERT5_7445
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_7438
116@ = 0
220@ = add_blip_for_coord 85@ {y} 93@ {z} 101@
119@ = create_checkpoint CheckpointType.Torus {x} 85@ {y} 93@ {z} 101@ {pointX} 0.0 {pointY} 93@ {pointZ} 101@ {radius} 129@
120@ = create_checkpoint CheckpointType.Torus {x} 86@ {y} 94@ {z} 102@ {pointX} 85@ {pointY} 93@ {pointZ} 101@ {radius} 129@
print_now 'DES5_3B' {time} 10000 {flag} 4
print 'DES5_3C' {time} 7000 {flag} 4
print 'DES5_3D' {time} 10000 {flag} 4

:DESERT5_7438
goto @DESERT5_8496

:DESERT5_7445
if 
  not is_car_dead 35@
goto_if_false @DESERT5_8496
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_7521
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_7521
$d5_plane_reached_takeoff_point = 1

:DESERT5_7521
if 
  locate_char_in_car_3d $scplayer {x} 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_7973
remove_blip 220@
delete_checkpoint 119@(116@,8i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_7966
220@ = add_blip_for_coord 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f)
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_7743
create_checkpoint CheckpointType.Torus {x} 85@(117@,8f) {y} 93@(117@,8f) {z} 101@(117@,8f) {pointX} 85@(116@,8f) {pointY} 93@(116@,8f) {pointZ} 101@(116@,8f) {radius} 129@ {var_handle} 119@(117@,8i)

:DESERT5_7743
if 
  116@ == 1
goto_if_false @DESERT5_7818
if 
  34@ == 4
goto_if_false @DESERT5_7802
print_now 'DES5_3F' {time} 10000 {flag} 4
goto @DESERT5_7818

:DESERT5_7802
print_now 'DES5_3E' {time} 10000 {flag} 4

:DESERT5_7818
if 
  116@ == 2
goto_if_false @DESERT5_7893
if 
  34@ == 4
goto_if_false @DESERT5_7877
print_now 'DES5_3G' {time} 10000 {flag} 4
goto @DESERT5_7893

:DESERT5_7877
print_now 'DES5_3H' {time} 10000 {flag} 4

:DESERT5_7893
if 
  116@ == 3
goto_if_false @DESERT5_7959
print_now 'DES5_3K' {time} 10000 {flag} 4
print 'DES5_3L' {time} 7000 {flag} 4
print 'DES5_3M' {time} 10000 {flag} 4

:DESERT5_7959
goto @DESERT5_7973

:DESERT5_7966
235@ = 1

:DESERT5_7973
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_8014
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_8014
236@ = 1

:DESERT5_8014
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_8057
236@ = 1

:DESERT5_8057
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_8496
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_8156
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 60
148@ = 75
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_8184

:DESERT5_8156
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_8184
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[2]
goto_if_false @DESERT5_8233
set_lvar_int_to_var_int 237@ = $d5_best_scores[2]
set_var_int_to_var_int $d5_best_scores[2] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_8233
if 
  $d5_total_missions_open == 4
goto_if_false @DESERT5_8304
if 
  $overall_score > 69
goto_if_false @DESERT5_8304
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 6
$d5_last_played = 6
232@ = 2

:DESERT5_8304
gosub @DESERT5_27584

:DESERT5_8311
if 
  219@ == 0
goto_if_false @DESERT5_8402
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_8371
232@ = 2
goto @DESERT5_8402

:DESERT5_8371
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_8395
goto @DESERT5_8402

:DESERT5_8395
goto @DESERT5_8311

:DESERT5_8402
gosub @DESERT5_27164
156@ = 0

:DESERT5_8416
if 
  8 > 156@
goto_if_false @DESERT5_8457
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_8416

:DESERT5_8457
if 
  232@ == 2
goto_if_false @DESERT5_8489
goto @DESERT5_2600
goto @DESERT5_8496

:DESERT5_8489
goto @DESERT5_6949

:DESERT5_8496
goto @DESERT5_7144

:DESERT5_8503
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_10300

:DESERT5_8528
gosub @DESERT5_24871

:DESERT5_8535
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
116@ = 0
161@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_8700
set_plane_undercarriage_up 35@ {state} True
set_fixed_camera_position -394.09 {y} 2601.47 {z} 134.89 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_8700
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_8730
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_8769
232@ = 2
goto @DESERT5_10199

:DESERT5_8769
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_8838
if 
  is_car_in_water 35@
goto_if_false @DESERT5_8831
232@ = 2
goto @DESERT5_10199
goto @DESERT5_8838

:DESERT5_8831
goto @DESERT5_29911

:DESERT5_8838
if 
  233@ == 0
goto_if_false @DESERT5_8999
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_8992
116@ = 0
220@ = add_blip_for_coord 85@ {y} 93@ {z} 101@
119@ = create_checkpoint CheckpointType.Torus {x} 85@ {y} 93@ {z} 101@ {pointX} 0.0 {pointY} 93@ {pointZ} 101@ {radius} 129@
120@ = create_checkpoint CheckpointType.Torus {x} 86@ {y} 94@ {z} 102@ {pointX} 85@ {pointY} 93@ {pointZ} 101@ {radius} 129@
print_now 'DES5_3B' {time} 10000 {flag} 4

:DESERT5_8992
goto @DESERT5_10293

:DESERT5_8999
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10293
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_9075
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_9075
$d5_plane_reached_takeoff_point = 1

:DESERT5_9075
if 
  161@ <> 1
goto_if_false @DESERT5_9609
if 
  locate_char_in_car_3d $scplayer {x} 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_9602
remove_blip 220@
delete_checkpoint 119@(116@,8i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_9506
220@ = add_blip_for_coord 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f)
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_9315
create_checkpoint CheckpointType.Torus {x} 85@(117@,8f) {y} 93@(117@,8f) {z} 101@(117@,8f) {pointX} 85@(116@,8f) {pointY} 93@(116@,8f) {pointZ} 101@(116@,8f) {radius} 129@ {var_handle} 119@(117@,8i)

:DESERT5_9315
if 
  116@ == 1
goto_if_false @DESERT5_9390
if 
  34@ == 6
goto_if_false @DESERT5_9374
print_now 'DES5_3H' {time} 10000 {flag} 4
goto @DESERT5_9390

:DESERT5_9374
print_now 'DES5_3G' {time} 10000 {flag} 4

:DESERT5_9390
if 
  116@ == 2
goto_if_false @DESERT5_9465
if 
  34@ == 6
goto_if_false @DESERT5_9449
print_now 'DES5_3G' {time} 10000 {flag} 4
goto @DESERT5_9465

:DESERT5_9449
print_now 'DES5_3H' {time} 10000 {flag} 4

:DESERT5_9465
if 
  116@ == 3
goto_if_false @DESERT5_9499
print_now 'DES5_3K' {time} 10000 {flag} 4

:DESERT5_9499
goto @DESERT5_9602

:DESERT5_9506
161@ = 1
220@ = add_blip_for_coord 308.0 {y} 45@ {z} 52@
if 
  34@ == 6
goto_if_false @DESERT5_9570
print_now 'DES5_5I' {time} 10000 {flag} 4
goto @DESERT5_9586

:DESERT5_9570
print_now 'DES5_5H' {time} 10000 {flag} 4

:DESERT5_9586
print 'DES5_5J' {time} 10000 {flag} 4

:DESERT5_9602
goto @DESERT5_9689

:DESERT5_9609
  is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_9689
235@ = 1

:DESERT5_9689
if and
  $d5_plane_reached_takeoff_point == 1
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_9811
if 
  161@ <> 1
goto_if_false @DESERT5_9744
236@ = 1
goto @DESERT5_9811

:DESERT5_9744
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_9788
236@ = 1
goto @DESERT5_9811

:DESERT5_9788
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_9811
236@ = 1

:DESERT5_9811
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_9854
236@ = 1

:DESERT5_9854
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_10293
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_9953
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 80
148@ = 95
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_9981

:DESERT5_9953
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_9981
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[3]
goto_if_false @DESERT5_10030
set_lvar_int_to_var_int 237@ = $d5_best_scores[3]
set_var_int_to_var_int $d5_best_scores[3] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_10030
if 
  $d5_total_missions_open == 6
goto_if_false @DESERT5_10101
if 
  $overall_score > 69
goto_if_false @DESERT5_10101
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 7
$d5_last_played = 7
232@ = 2

:DESERT5_10101
gosub @DESERT5_27584

:DESERT5_10108
if 
  219@ == 0
goto_if_false @DESERT5_10199
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_10168
232@ = 2
goto @DESERT5_10199

:DESERT5_10168
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_10192
goto @DESERT5_10199

:DESERT5_10192
goto @DESERT5_10108

:DESERT5_10199
gosub @DESERT5_27164
156@ = 0

:DESERT5_10213
if 
  8 > 156@
goto_if_false @DESERT5_10254
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_10213

:DESERT5_10254
if 
  232@ == 2
goto_if_false @DESERT5_10286
goto @DESERT5_2600
goto @DESERT5_10293

:DESERT5_10286
goto @DESERT5_8528

:DESERT5_10293
goto @DESERT5_8730

:DESERT5_10300
if 
  34@ == 7
goto_if_false @DESERT5_11736

:DESERT5_10318
gosub @DESERT5_24871

:DESERT5_10325
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
set_lvar_float_to_lvar_float 132@ = 111@
234@ = 0
35@ = create_car 425 {x} 50@ {y} 51@ {z} 15.07
set_car_heading 35@ {heading} 270.0
car_set_idle 35@
if 
  231@ == 0
goto_if_false @DESERT5_10491
set_fixed_camera_position 323.02 {y} 2446.8101 {z} 117.65 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_10491
241@ = 1

:DESERT5_10498
if 
  241@ == 1
goto_if_false @DESERT5_10566
wait 0
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10559
if 
  is_car_stopped 35@
goto_if_false @DESERT5_10559
241@ = 0

:DESERT5_10559
goto @DESERT5_10498

:DESERT5_10566
wait 500
clear_prints 
print_now 'DES5_7A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_10596
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_10635
232@ = 2
goto @DESERT5_11683

:DESERT5_10635
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_10704
if 
  is_car_in_water 35@
goto_if_false @DESERT5_10697
232@ = 2
goto @DESERT5_11683
goto @DESERT5_10704

:DESERT5_10697
goto @DESERT5_29911

:DESERT5_10704
if 
  233@ == 0
goto_if_false @DESERT5_10816
print_now 'DES5_7A' {time} 10000 {flag} 4
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10809
if 
  is_car_in_air_proper 35@
goto_if_false @DESERT5_10809
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_7B' {time} 10000 {flag} 4
233@ = 1

:DESERT5_10809
goto @DESERT5_11729

:DESERT5_10816
if 
  not is_car_dead 35@
goto_if_false @DESERT5_11729
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_10922
37@, 38@, 39@ = get_car_coordinates 35@
if 
  is_float_lvar_greater_or_equal_to_float_lvar 39@ >= 132@
goto_if_false @DESERT5_10922
$d5_plane_taken_off = 1
print_now 'DES5_7C' {time} 5000 {flag} 4
print 'DES5_7D' {time} 10000 {flag} 4

:DESERT5_10922
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_11194
if 
  234@ <> 1
goto_if_false @DESERT5_11121
40@ = get_car_heading 35@
if and
  40@ >= 80.0
  100.0 >= 40@
goto_if_false @DESERT5_11114
234@ = 1
220@ = add_blip_for_coord 109@ {y} 110@ {z} 111@
118@ = create_checkpoint CheckpointType.Torus {x} 109@ {y} 110@ {z} 111@ {pointX} 0.0 {pointY} 110@ {pointZ} 111@ {radius} 129@
clear_prints 
print_now 'DES5_7F' {time} 10000 {flag} 4
print 'DES5_7G' {time} 10000 {flag} 4
print 'DES5_7H' {time} 10000 {flag} 4
print 'DES5_7I' {time} 10000 {flag} 4

:DESERT5_11114
goto @DESERT5_11194

:DESERT5_11121
if 
  locate_char_in_car_3d $scplayer {x} 109@ {y} 110@ {z} 111@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_11194
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_11194
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_11254
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_11254
$d5_plane_reached_takeoff_point = 1

:DESERT5_11254
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_11295
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_11295
236@ = 1

:DESERT5_11295
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_11338
236@ = 1

:DESERT5_11338
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_11729
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_11437
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 45
148@ = 60
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_11465

:DESERT5_11437
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_11465
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[4]
goto_if_false @DESERT5_11514
set_lvar_int_to_var_int 237@ = $d5_best_scores[4]
set_var_int_to_var_int $d5_best_scores[4] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_11514
if 
  $d5_total_missions_open == 7
goto_if_false @DESERT5_11585
if 
  $overall_score > 69
goto_if_false @DESERT5_11585
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 8
$d5_last_played = 8
232@ = 2

:DESERT5_11585
gosub @DESERT5_27584

:DESERT5_11592
if 
  219@ == 0
goto_if_false @DESERT5_11683
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_11652
232@ = 2
goto @DESERT5_11683

:DESERT5_11652
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_11676
goto @DESERT5_11683

:DESERT5_11676
goto @DESERT5_11592

:DESERT5_11683
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_11722
goto @DESERT5_2600
goto @DESERT5_11729

:DESERT5_11722
goto @DESERT5_10318

:DESERT5_11729
goto @DESERT5_10596

:DESERT5_11736
if 
  34@ == 8
goto_if_false @DESERT5_12955

:DESERT5_11754
gosub @DESERT5_24871

:DESERT5_11761
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
162@ = 0
35@ = create_car 425 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
set_heli_blades_full_speed 35@
if 
  231@ == 0
goto_if_false @DESERT5_11903
set_fixed_camera_position 301.56 {y} 2455.21 {z} 55.82 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_11903
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_8A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_11940
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_11979
232@ = 2
goto @DESERT5_12902

:DESERT5_11979
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_12048
if 
  is_car_in_water 35@
goto_if_false @DESERT5_12041
232@ = 2
goto @DESERT5_12902
goto @DESERT5_12048

:DESERT5_12041
goto @DESERT5_29911

:DESERT5_12048
if 
  233@ == 0
goto_if_false @DESERT5_12175
if 
  not is_car_dead 35@
goto_if_false @DESERT5_12168
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 15.0
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_8A' {time} 10000 {flag} 4
print 'DES5_8B' {time} 10000 {flag} 4
220@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
233@ = 1

:DESERT5_12168
goto @DESERT5_12948

:DESERT5_12175
if 
  not is_car_dead 35@
goto_if_false @DESERT5_12948
if 
  162@ <> 1
goto_if_false @DESERT5_12321
if 
  locate_char_in_car_2d $scplayer {x} 56@ {y} 57@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DESERT5_12314
162@ = 1
print_now 'DES5_8G' {time} 4000 {flag} 4
print 'DES5_8C' {time} 10000 {flag} 4
print 'DES5_8D' {time} 10000 {flag} 4
print 'DES5_8E' {time} 10000 {flag} 4

:DESERT5_12314
goto @DESERT5_12399

:DESERT5_12321
  locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_12399
235@ = 1

:DESERT5_12399
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_12514
if 
  162@ <> 1
goto_if_false @DESERT5_12447
236@ = 1
goto @DESERT5_12514

:DESERT5_12447
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_12491
236@ = 1
goto @DESERT5_12514

:DESERT5_12491
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_12514
236@ = 1

:DESERT5_12514
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_12557
236@ = 1

:DESERT5_12557
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_12948
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_12656
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 30
148@ = 45
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_12684

:DESERT5_12656
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_12684
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[5]
goto_if_false @DESERT5_12733
set_lvar_int_to_var_int 237@ = $d5_best_scores[5]
set_var_int_to_var_int $d5_best_scores[5] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_12733
if 
  $d5_total_missions_open == 8
goto_if_false @DESERT5_12804
if 
  $overall_score > 69
goto_if_false @DESERT5_12804
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 9
$d5_last_played = 9
232@ = 2

:DESERT5_12804
gosub @DESERT5_27584

:DESERT5_12811
if 
  219@ == 0
goto_if_false @DESERT5_12902
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_12871
232@ = 2
goto @DESERT5_12902

:DESERT5_12871
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_12895
goto @DESERT5_12902

:DESERT5_12895
goto @DESERT5_12811

:DESERT5_12902
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_12941
goto @DESERT5_2600
goto @DESERT5_12948

:DESERT5_12941
goto @DESERT5_11754

:DESERT5_12948
goto @DESERT5_11940

:DESERT5_12955
if 
  34@ == 9
goto_if_false @DESERT5_15284

:DESERT5_12973
gosub @DESERT5_24871

:DESERT5_12980
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
169@ = 0
35@ = create_car 425 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
set_heli_blades_full_speed 35@
if 
  231@ == 0
goto_if_false @DESERT5_13233
set_fixed_camera_position 365.5 {y} 2339.25 {z} 63.23 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 363.09 {y} 2473.76 {z} 33.46 {switchStyle} SwitchType.JumpCut
69@ = 418.5
156@ = 0

:DESERT5_13147
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13224
create_car 514 {x} 69@ {y} 49@ {z} 17.1 {var_handle} 60@(156@,3i)
69@ -= 40.0
170@(156@,3i) = 0
156@ += 1
goto @DESERT5_13147

:DESERT5_13224
TIMERB = 0
return 

:DESERT5_13233
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_9A' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_13270
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_13305
232@ = 2
goto @DESERT5_15096

:DESERT5_13305
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_13374
if 
  is_car_in_water 35@
goto_if_false @DESERT5_13367
232@ = 2
goto @DESERT5_15096
goto @DESERT5_13374

:DESERT5_13367
goto @DESERT5_29911

:DESERT5_13374
if 
  233@ == 0
goto_if_false @DESERT5_13604
if 
  not is_car_dead 35@
goto_if_false @DESERT5_13597
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 15.0
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_9A' {time} 10000 {flag} 4
print 'DES5_9B' {time} 10000 {flag} 4
69@ = 418.5
156@ = 0

:DESERT5_13490
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13583
create_car 514 {x} 69@ {y} 49@ {z} 17.1 {var_handle} 60@(156@,3i)
add_blip_for_car 60@(156@,3i) {var_handle} 221@(156@,3i)
163@(156@,3i) = 1
69@ -= 40.0
156@ += 1
goto @DESERT5_13490

:DESERT5_13583
59@ = 0
233@ = 1

:DESERT5_13597
goto @DESERT5_15277

:DESERT5_13604
if 
  not is_car_dead 35@
goto_if_false @DESERT5_15277
if 
  169@ <> 1
goto_if_false @DESERT5_14515
168@ = 1
switch_start 59@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DESERT5_14494 {caseNum1} 0 {caseLabel1} @DESERT5_13708 {caseNum2} 1 {caseLabel2} @DESERT5_14293 {caseNum3} -1 {caseLabel3} @DESERT5_14508 {caseNum4} -1 {caseLabel4} @DESERT5_14508 {caseNum5} -1 {caseLabel5} @DESERT5_14508 {caseNum6} -1 {caseLabel6} @DESERT5_14508 {caseNum7} -1 {caseLabel7} @DESERT5_14508

:DESERT5_13708
156@ = 0

:DESERT5_13715
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13824
if 
  is_car_dead 60@(156@,3i)
goto_if_false @DESERT5_13803
if 
  163@(156@,3i) == 1
goto_if_false @DESERT5_13796
remove_blip 221@(156@,3i)
163@(156@,3i) = 0

:DESERT5_13796
goto @DESERT5_13810

:DESERT5_13803
168@ = 0

:DESERT5_13810
156@ += 1
goto @DESERT5_13715

:DESERT5_13824
if 
  168@ == 1
goto_if_false @DESERT5_14286
59@ = 1
64@ = create_car 400 {x} 22.61 {y} 2322.0601 {z} 22.35
65@ = create_car 400 {x} 74.58 {y} 2375.99 {z} 16.52
67@ = create_char_inside_car 64@ {pedType} PedType.Mission1 {modelId} 7
68@ = create_char_inside_car 65@ {pedType} PedType.Mission1 {modelId} 7
flush_route 
extend_route 76.44 {y} 2327.46 {z} 20.63
extend_route 74.58 {y} 2375.99 {z} 16.52
extend_route 19.12 {y} 2370.77 {z} 18.97
extend_route 22.61 {y} 2322.0601 {z} 22.35
71@ = open_sequence_task 
task_drive_point_route -1 {vehicle} 64@ {speed} 10.0
set_sequence_to_repeat 71@ {state} True
close_sequence_task 71@
perform_sequence_task 67@ {sequence} 71@
clear_sequence_task 71@
flush_route 
extend_route 19.12 {y} 2370.77 {z} 18.97
extend_route 22.61 {y} 2322.0601 {z} 22.35
extend_route 76.44 {y} 2327.46 {z} 20.63
extend_route 74.58 {y} 2375.99 {z} 16.52
72@ = open_sequence_task 
task_drive_point_route -1 {vehicle} 65@ {speed} 10.0
set_sequence_to_repeat 72@ {state} True
close_sequence_task 72@
perform_sequence_task 68@ {sequence} 72@
clear_sequence_task 72@
156@ = 0

:DESERT5_14150
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14221
lock_car_doors 64@(156@,2i) {lockStatus} CarLock.Locked
add_blip_for_car 64@(156@,2i) {var_handle} 224@(156@,2i)
166@(156@,2i) = 1
156@ += 1
goto @DESERT5_14150

:DESERT5_14221
print_now 'DES5_9D' {time} 10000 {flag} 4
156@ = 0

:DESERT5_14244
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_14286
mark_car_as_no_longer_needed 60@(156@,3i)
156@ += 1
goto @DESERT5_14244

:DESERT5_14286
goto @DESERT5_14508

:DESERT5_14293
156@ = 0

:DESERT5_14300
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14409
if 
  is_car_dead 64@(156@,2i)
goto_if_false @DESERT5_14388
if 
  166@(156@,2i) == 1
goto_if_false @DESERT5_14381
remove_blip 224@(156@,2i)
166@(156@,2i) = 0

:DESERT5_14381
goto @DESERT5_14395

:DESERT5_14388
168@ = 0

:DESERT5_14395
156@ += 1
goto @DESERT5_14300

:DESERT5_14409
if 
  168@ == 1
goto_if_false @DESERT5_14487
59@ = -1
220@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'DES5_9E' {time} 10000 {flag} 4
print 'DES5_5J' {time} 10000 {flag} 4
169@ = 1

:DESERT5_14487
goto @DESERT5_14508

:DESERT5_14494
169@ = 1
goto @DESERT5_14508

:DESERT5_14508
goto @DESERT5_14593

:DESERT5_14515
  locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_14593
235@ = 1

:DESERT5_14593
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_14708
if 
  169@ <> 1
goto_if_false @DESERT5_14641
236@ = 1
goto @DESERT5_14708

:DESERT5_14641
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_14685
236@ = 1
goto @DESERT5_14708

:DESERT5_14685
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_14708
236@ = 1

:DESERT5_14708
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_14751
236@ = 1

:DESERT5_14751
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_15277
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_14850
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 80
148@ = 105
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_14878

:DESERT5_14850
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_14878
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[6]
goto_if_false @DESERT5_14927
set_lvar_int_to_var_int 237@ = $d5_best_scores[6]
set_var_int_to_var_int $d5_best_scores[6] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_14927
if 
  $d5_total_missions_open == 9
goto_if_false @DESERT5_14998
if 
  $overall_score > 69
goto_if_false @DESERT5_14998
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 10
$d5_last_played = 10
232@ = 2

:DESERT5_14998
gosub @DESERT5_27584

:DESERT5_15005
if 
  219@ == 0
goto_if_false @DESERT5_15096
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_15065
232@ = 2
goto @DESERT5_15096

:DESERT5_15065
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_15089
goto @DESERT5_15096

:DESERT5_15089
goto @DESERT5_15005

:DESERT5_15096
gosub @DESERT5_27164
clear_sequence_task 71@
clear_sequence_task 72@
156@ = 0

:DESERT5_15120
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_15171
delete_car 60@(156@,3i)
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_15120

:DESERT5_15171
156@ = 0

:DESERT5_15178
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_15238
delete_char 67@(156@,2i)
delete_car 64@(156@,2i)
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_15178

:DESERT5_15238
if 
  232@ == 2
goto_if_false @DESERT5_15270
goto @DESERT5_2600
goto @DESERT5_15277

:DESERT5_15270
goto @DESERT5_12973

:DESERT5_15277
goto @DESERT5_13270

:DESERT5_15284
if 
  34@ == 10
goto_if_false @DESERT5_16962

:DESERT5_15302
gosub @DESERT5_24871

:DESERT5_15309
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = create_car 513 {x} 53@ {y} 113@ {z} 114@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_15453
set_fixed_camera_position 269.53 {y} 2445.3 {z} 88.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_15453
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_AA' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_15490
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_15529
232@ = 2
goto @DESERT5_16899

:DESERT5_15529
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_15598
if 
  is_car_in_water 35@
goto_if_false @DESERT5_15591
232@ = 2
goto @DESERT5_16899
goto @DESERT5_15598

:DESERT5_15591
goto @DESERT5_29911

:DESERT5_15598
if 
  233@ == 0
goto_if_false @DESERT5_15785
if 
  not is_car_dead 35@
goto_if_false @DESERT5_15778
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 20.0
233@ = 1
220@ = add_blip_for_coord 112@ {y} 113@ {z} 114@
127@ = create_checkpoint CheckpointType.Torus {x} 112@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
128@ = create_checkpoint CheckpointType.Torus {x} 115@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_AA' {time} 7000 {flag} 4
print 'DES5_AB' {time} 10000 {flag} 4

:DESERT5_15778
goto @DESERT5_16955

:DESERT5_15785
if 
  not is_car_dead 35@
goto_if_false @DESERT5_16955
if 
  173@ <> 1
goto_if_false @DESERT5_15943
if 
  locate_char_in_car_3d $scplayer {x} 112@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_15936
remove_blip 220@
delete_checkpoint 127@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
173@ = 1
print_now 'DES5_AC' {time} 5000 {flag} 4
$d5_cur_pitch = get_car_pitch 35@
$d5_pitch_diff = 0.0
$d5_roll_progress = 0.0

:DESERT5_15936
goto @DESERT5_16488

:DESERT5_15943
if 
  174@ <> 1
goto_if_false @DESERT5_16415
$d5_pitch_progress = get_car_roll 35@
if 
  0.0 > $d5_pitch_progress
goto_if_false @DESERT5_16000
$d5_pitch_progress += 360.0

:DESERT5_16000
$d5_negative_progress = get_car_upright_value 35@
if 
  $d5_negative_progress >= 0.0
goto_if_false @DESERT5_16074
if and
  $d5_pitch_progress >= 20.0
  340.0 >= $d5_pitch_progress
goto_if_false @DESERT5_16067
236@ = 1

:DESERT5_16067
goto @DESERT5_16112

:DESERT5_16074
if or
  160.0 >= $d5_pitch_progress
  $d5_pitch_progress >= 200.0
goto_if_false @DESERT5_16112
236@ = 1

:DESERT5_16112
$pilot_cash_pickup = get_car_pitch 35@
set_var_float_to_var_float $d5_last_pitch = $pilot_cash_pickup
sub_float_var_from_float_var $d5_last_pitch -= $d5_cur_pitch
set_var_float_to_var_float $d5_cur_pitch = $pilot_cash_pickup
if 
  $d5_last_pitch > 180.0
goto_if_false @DESERT5_16175
$d5_last_pitch -= 360.0

:DESERT5_16175
if 
  -180.0 > $d5_last_pitch
goto_if_false @DESERT5_16206
$d5_last_pitch += 360.0

:DESERT5_16206
if 
  0.0 > $d5_last_pitch
goto_if_false @DESERT5_16242
add_float_var_to_float_var $d5_roll_progress += $d5_last_pitch
goto @DESERT5_16304

:DESERT5_16242
if 
  0.0 > $d5_roll_progress
goto_if_false @DESERT5_16278
add_float_var_to_float_var $d5_roll_progress += $d5_last_pitch
goto @DESERT5_16304

:DESERT5_16278
add_float_var_to_float_var $d5_pitch_diff += $d5_roll_progress
$d5_roll_progress = 0.0
add_float_var_to_float_var $d5_pitch_diff += $d5_last_pitch

:DESERT5_16304
if 
  -20.0 > $d5_roll_progress
goto_if_false @DESERT5_16332
236@ = 1

:DESERT5_16332
if 
  236@ <> 1
goto_if_false @DESERT5_16408
if 
  $d5_pitch_diff >= 360.0
goto_if_false @DESERT5_16408
174@ = 1
220@ = add_blip_for_coord 115@ {y} 113@ {z} 114@
print_now 'DES5_AD' {time} 10000 {flag} 4

:DESERT5_16408
goto @DESERT5_16488

:DESERT5_16415
if 
  locate_char_in_car_3d $scplayer {x} 115@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_16488
remove_blip 220@
delete_checkpoint 128@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_16488
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_16511
236@ = 1

:DESERT5_16511
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_16554
236@ = 1

:DESERT5_16554
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_16955
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_16653
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 21
148@ = 27
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_16681

:DESERT5_16653
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_16681
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[7]
goto_if_false @DESERT5_16730
set_lvar_int_to_var_int 237@ = $d5_best_scores[7]
set_var_int_to_var_int $d5_best_scores[7] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_16730
if 
  $d5_total_missions_open == 10
goto_if_false @DESERT5_16801
if 
  $overall_score > 69
goto_if_false @DESERT5_16801
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 11
$d5_last_played = 11
232@ = 2

:DESERT5_16801
gosub @DESERT5_27584

:DESERT5_16808
if 
  219@ == 0
goto_if_false @DESERT5_16899
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_16868
232@ = 2
goto @DESERT5_16899

:DESERT5_16868
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_16892
goto @DESERT5_16899

:DESERT5_16892
goto @DESERT5_16808

:DESERT5_16899
gosub @DESERT5_27164
delete_checkpoint 127@
delete_checkpoint 128@
if 
  232@ == 2
goto_if_false @DESERT5_16948
goto @DESERT5_2600
goto @DESERT5_16955

:DESERT5_16948
goto @DESERT5_15302

:DESERT5_16955
goto @DESERT5_15490

:DESERT5_16962
if 
  34@ == 11
goto_if_false @DESERT5_18542

:DESERT5_16980
gosub @DESERT5_24871

:DESERT5_16987
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = create_car 513 {x} 53@ {y} 113@ {z} 114@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_17131
set_fixed_camera_position 292.95 {y} 2445.3 {z} 93.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_17131
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_AA' {time} 5000 {flag} 4
gosub @DESERT5_24908

:DESERT5_17168
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_17207
232@ = 2
goto @DESERT5_18479

:DESERT5_17207
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_17276
if 
  is_car_in_water 35@
goto_if_false @DESERT5_17269
232@ = 2
goto @DESERT5_18479
goto @DESERT5_17276

:DESERT5_17269
goto @DESERT5_29911

:DESERT5_17276
if 
  233@ == 0
goto_if_false @DESERT5_17463
if 
  not is_car_dead 35@
goto_if_false @DESERT5_17456
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 20.0
233@ = 1
220@ = add_blip_for_coord 112@ {y} 113@ {z} 114@
127@ = create_checkpoint CheckpointType.Torus {x} 112@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
128@ = create_checkpoint CheckpointType.Torus {x} 115@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_AA' {time} 7000 {flag} 4
print 'DES5_BB' {time} 10000 {flag} 4

:DESERT5_17456
goto @DESERT5_18535

:DESERT5_17463
if 
  not is_car_dead 35@
goto_if_false @DESERT5_18535
if 
  173@ <> 1
goto_if_false @DESERT5_17654
if 
  locate_char_in_car_3d $scplayer {x} 112@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_17647
remove_blip 220@
delete_checkpoint 127@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
173@ = 1
clear_prints 
print_now 'DES5_BC' {time} 5000 {flag} 4
$d5_cur_roll = get_car_roll 35@
if 
  0.0 > $d5_cur_roll
goto_if_false @DESERT5_17627
$d5_cur_roll += 360.0

:DESERT5_17627
$d5_roll_diff = 0.0
$d5_roll_progress = 0.0

:DESERT5_17647
goto @DESERT5_18068

:DESERT5_17654
if 
  174@ <> 1
goto_if_false @DESERT5_17995
$d5_pitch_progress = get_car_roll 35@
if 
  0.0 > $d5_pitch_progress
goto_if_false @DESERT5_17711
$d5_pitch_progress += 360.0

:DESERT5_17711
set_var_float_to_var_float $d5_last_roll = $d5_pitch_progress
sub_float_var_from_float_var $d5_last_roll -= $d5_cur_roll
set_var_float_to_var_float $d5_cur_roll = $d5_pitch_progress
if 
  $d5_last_roll > 180.0
goto_if_false @DESERT5_17766
$d5_last_roll -= 360.0

:DESERT5_17766
if 
  -180.0 > $d5_last_roll
goto_if_false @DESERT5_17797
$d5_last_roll += 360.0

:DESERT5_17797
if 
  0.0 > $d5_last_roll
goto_if_false @DESERT5_17833
add_float_var_to_float_var $d5_roll_progress += $d5_last_roll
goto @DESERT5_17895

:DESERT5_17833
if 
  0.0 > $d5_roll_progress
goto_if_false @DESERT5_17869
add_float_var_to_float_var $d5_roll_progress += $d5_last_roll
goto @DESERT5_17895

:DESERT5_17869
add_float_var_to_float_var $d5_roll_diff += $d5_roll_progress
$d5_roll_progress = 0.0
add_float_var_to_float_var $d5_roll_diff += $d5_last_roll

:DESERT5_17895
if 
  -20.0 > $d5_roll_progress
goto_if_false @DESERT5_17930
236@ = 1
goto @DESERT5_17988

:DESERT5_17930
if 
  $d5_roll_diff >= 360.0
goto_if_false @DESERT5_17988
174@ = 1
220@ = add_blip_for_coord 115@ {y} 113@ {z} 114@
print_now 'DES5_AD' {time} 10000 {flag} 4

:DESERT5_17988
goto @DESERT5_18068

:DESERT5_17995
if 
  locate_char_in_car_3d $scplayer {x} 115@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_18068
remove_blip 220@
delete_checkpoint 128@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_18068
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_18091
236@ = 1

:DESERT5_18091
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_18134
236@ = 1

:DESERT5_18134
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_18535
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_18233
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 18
148@ = 23
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_18261

:DESERT5_18233
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_18261
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[8]
goto_if_false @DESERT5_18310
set_lvar_int_to_var_int 237@ = $d5_best_scores[8]
set_var_int_to_var_int $d5_best_scores[8] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_18310
if 
  $d5_total_missions_open == 11
goto_if_false @DESERT5_18381
if 
  $overall_score > 69
goto_if_false @DESERT5_18381
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2

:DESERT5_18381
gosub @DESERT5_27584

:DESERT5_18388
if 
  219@ == 0
goto_if_false @DESERT5_18479
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_18448
232@ = 2
goto @DESERT5_18479

:DESERT5_18448
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_18472
goto @DESERT5_18479

:DESERT5_18472
goto @DESERT5_18388

:DESERT5_18479
gosub @DESERT5_27164
delete_checkpoint 127@
delete_checkpoint 128@
if 
  232@ == 2
goto_if_false @DESERT5_18528
goto @DESERT5_2600
goto @DESERT5_18535

:DESERT5_18528
goto @DESERT5_16980

:DESERT5_18535
goto @DESERT5_17168

:DESERT5_18542
if 
  34@ == 12
goto_if_false @DESERT5_19958

:DESERT5_18560
gosub @DESERT5_24871

:DESERT5_18567
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
175@ = 0
176@ = 0
if 
  231@ == 0
goto_if_false @DESERT5_18780
70@ = create_char PedType.Mission1 {modelId} 0 {x} 46@ {y} 49@ {z} 250.0
set_char_heading 70@ {heading} 90.0
freeze_char_position 70@ {state} True
set_var_float_to_lvar_float $play_open_timer = 136@
set_var_float_to_lvar_float $ai_target_x = 137@
set_var_float_to_lvar_float $ai_target_y = 138@
start_new_streamed_script 1 {args} -1 -10.0 10.0 -5.0 -2.0 10.0 12.0 1 70@ 
stream_script 1
attach_camera_to_char_look_at_char 70@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 4.0 {char} 70@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:DESERT5_18780
set_char_coordinates $scplayer {x} 139@ {y} 140@ {z} 141@
set_char_heading $scplayer {heading} 90.0
request_model 371

:DESERT5_18809
if 
  not has_model_loaded 371
goto_if_false @DESERT5_18836
wait 0
goto @DESERT5_18809

:DESERT5_18836
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 15.0
$para_pickup_flag = 0

:DESERT5_18912
if 
  2 > $player_has_parachute
goto_if_false @DESERT5_18941
wait 0
goto @DESERT5_18912

:DESERT5_18941
135@ = create_object #BASEJUMP_TARGET {x} 136@ {y} 137@ {z} 138@
set_object_heading 135@ {heading} 90.0
143@ = create_checkpoint CheckpointType.Torus {x} 136@ {y} 137@ {z} 138@ {pointX} 136@ {pointY} 137@ {pointZ} 900.0 {radius} 6.5
wait 500
clear_prints 
print_now 'DES5_CA' {time} 7000 {flag} 4
print 'DES5_CI' {time} 10000 {flag} 4
gosub @DESERT5_24908

:DESERT5_19046
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_19085
232@ = 2
goto @DESERT5_19842

:DESERT5_19085
if 
  233@ == 0
goto_if_false @DESERT5_19147
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
220@ = add_blip_for_coord 136@ {y} 137@ {z} 138@
233@ = 1
goto @DESERT5_19951

:DESERT5_19147
if 
  176@ <> 1
goto_if_false @DESERT5_19331
if 
  175@ <> 1
goto_if_false @DESERT5_19241
41@, 42@, 43@ = get_char_coordinates $scplayer
if 
  300.0 >= 43@
goto_if_false @DESERT5_19241
175@ = 1
print_now 'DES5_CC' {time} 10000 {flag} 4

:DESERT5_19241
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DESERT5_19331
176@ = 1
clear_prints 
print_now 'DES5_CD' {time} 7000 {flag} 4
print 'DES5_CF' {time} 7000 {flag} 4
print 'DES5_CH' {time} 7000 {flag} 4
print 'DES5_CE' {time} 7000 {flag} 4

:DESERT5_19331
if 
  176@ == 1
goto_if_false @DESERT5_19440
if 
  $player_landed == 1
goto_if_false @DESERT5_19440
41@, 42@, 43@ = get_char_coordinates $scplayer
142@ = get_distance_between_coords_2d 41@ {fromY} 42@ {toX} 136@ {toZ} 137@
if 
  10.0 >= 142@
goto_if_false @DESERT5_19433
235@ = 1
goto @DESERT5_19440

:DESERT5_19433
236@ = 1

:DESERT5_19440
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_19483
236@ = 1

:DESERT5_19483
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_19951
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_19582
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 55
148@ = 70
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_19610

:DESERT5_19582
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_19610
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[9]
goto_if_false @DESERT5_19659
set_lvar_int_to_var_int 237@ = $d5_best_scores[9]
set_var_int_to_var_int $d5_best_scores[9] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_19659
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_19744
if 
  $overall_score > 69
goto_if_false @DESERT5_19744
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2
increment_int_stat StatId.FlyingSkill {value} 60
$pilot_test_passed = 1
177@ = 1

:DESERT5_19744
gosub @DESERT5_27584

:DESERT5_19751
if 
  219@ == 0
goto_if_false @DESERT5_19842
wait 0
gosub @DESERT5_29289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_19811
232@ = 2
goto @DESERT5_19842

:DESERT5_19811
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_19835
goto @DESERT5_19842

:DESERT5_19835
goto @DESERT5_19751

:DESERT5_19842
gosub @DESERT5_27164
freeze_char_position $scplayer {state} False
if 
  177@ == 1
goto_if_false @DESERT5_19912
do_fade 500 {direction} Fade.In

:DESERT5_19881
if 
  get_fading_status 
goto_if_false @DESERT5_19905
wait 0
goto @DESERT5_19881

:DESERT5_19905
goto @DESERT5_29949

:DESERT5_19912
if 
  232@ == 2
goto_if_false @DESERT5_19944
goto @DESERT5_2600
goto @DESERT5_19951

:DESERT5_19944
goto @DESERT5_18560

:DESERT5_19951
goto @DESERT5_19046

:DESERT5_19958
85@ = -383.79
set_lvar_float_to_lvar_float 93@ = 49@
101@ = 147.09
set_lvar_float_to_lvar_float 86@ = 85@
86@ -= 300.0
set_lvar_float_to_lvar_float 91@ = 85@
91@ -= 300.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ -= 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ += 300.0
goto @DESERT5_20126

:DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ += 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ -= 300.0

:DESERT5_20126
set_lvar_float_to_lvar_float 102@ = 101@
set_lvar_float_to_lvar_float 107@ = 101@
130@ = 350.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20194
131@ = 270.0
goto @DESERT5_20204

:DESERT5_20194
131@ = 90.0

:DESERT5_20204
set_lvar_float_to_lvar_float 133@ = 85@
133@ -= 600.0
set_lvar_float_to_lvar_float 134@ = 93@
156@ = 2

:DESERT5_20237
if 
  5 >= 156@
goto_if_false @DESERT5_20405
cos 131@ {var_result} 85@(156@,8f)
sin 131@ {var_result} 93@(156@,8f)
mult_float_lvar_by_float_lvar 85@(156@,8f) *= 130@
mult_float_lvar_by_float_lvar 93@(156@,8f) *= 130@
add_float_lvar_to_float_lvar 85@(156@,8f) += 133@
add_float_lvar_to_float_lvar 93@(156@,8f) += 134@
set_lvar_float_to_lvar_float 101@(156@,8f) = 101@
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20381
131@ -= 60.0
goto @DESERT5_20391

:DESERT5_20381
131@ += 60.0

:DESERT5_20391
156@ += 1
goto @DESERT5_20237

:DESERT5_20405
set_lvar_float_to_lvar_float 92@ = 85@
set_lvar_float_to_lvar_float 100@ = 93@
set_lvar_float_to_lvar_float 108@ = 101@
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_20474
92@ += 20.0
108@ -= 30.0

:DESERT5_20474
return 

:DESERT5_20476
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 227@
if 
  226@ == 1
goto_if_false @DESERT5_20598
if 
  255 > 227@
goto_if_false @DESERT5_20591
227@ += 5
if 
  227@ > 255
goto_if_false @DESERT5_20584
227@ = 255

:DESERT5_20584
goto @DESERT5_20598

:DESERT5_20591
226@ = 2

:DESERT5_20598
if 
  226@ == 3
goto_if_false @DESERT5_20680
if 
  227@ > 0
goto_if_false @DESERT5_20673
227@ -= 5
if 
  0 > 227@
goto_if_false @DESERT5_20666
227@ = 0

:DESERT5_20666
goto @DESERT5_20680

:DESERT5_20673
226@ = 0

:DESERT5_20680
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @DESERT5_24751
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  34@ == 1
goto_if_false @DESERT5_20792
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MA'
set_lvar_int_to_var_int 228@ = $d5_best_scores[0]
gosub @DESERT5_22089

:DESERT5_20792
if 
  34@ == 2
goto_if_false @DESERT5_20846
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MB'
set_lvar_int_to_var_int 228@ = $d5_best_scores[1]
gosub @DESERT5_22089

:DESERT5_20846
if 
  34@ == 3
goto_if_false @DESERT5_20900
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MC'
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22089

:DESERT5_20900
if 
  34@ == 4
goto_if_false @DESERT5_20954
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MC'
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22089

:DESERT5_20954
if 
  34@ == 5
goto_if_false @DESERT5_21008
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MD'
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22089

:DESERT5_21008
if 
  34@ == 6
goto_if_false @DESERT5_21062
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MD'
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22089

:DESERT5_21062
if 
  34@ == 7
goto_if_false @DESERT5_21116
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_ME'
set_lvar_int_to_var_int 228@ = $d5_best_scores[4]
gosub @DESERT5_22089

:DESERT5_21116
if 
  34@ == 8
goto_if_false @DESERT5_21170
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MF'
set_lvar_int_to_var_int 228@ = $d5_best_scores[5]
gosub @DESERT5_22089

:DESERT5_21170
if 
  34@ == 9
goto_if_false @DESERT5_21224
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MG'
set_lvar_int_to_var_int 228@ = $d5_best_scores[6]
gosub @DESERT5_22089

:DESERT5_21224
if 
  34@ == 10
goto_if_false @DESERT5_21278
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MH'
set_lvar_int_to_var_int 228@ = $d5_best_scores[7]
gosub @DESERT5_22089

:DESERT5_21278
if 
  34@ == 11
goto_if_false @DESERT5_21332
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MI'
set_lvar_int_to_var_int 228@ = $d5_best_scores[8]
gosub @DESERT5_22089

:DESERT5_21332
if 
  34@ == 12
goto_if_false @DESERT5_21386
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MJ'
set_lvar_int_to_var_int 228@ = $d5_best_scores[9]
gosub @DESERT5_22089

:DESERT5_21386
gosub @DESERT5_24631
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 105.0 {offsetTop} 375.0 {key} 'DES5_FO'
if 
  230@ <> 1
goto_if_false @DESERT5_21619
gosub @DESERT5_24631
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 105.0 {offsetTop} 325.0 {key} 'DES5_FP'
gosub @DESERT5_24631
if 
  $d5_total_missions_open <> 1
goto_if_false @DESERT5_21568
152@, 153@, 154@, 155@ = get_hud_colour 6
goto @DESERT5_21584

:DESERT5_21568
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Radar

:DESERT5_21584
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 105.0 {offsetTop} 350.0 {key} 'DES5_FN'

:DESERT5_21619
gosub @DESERT5_24631
set_text_scale 1.45 {heightScale} 2.0
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 70.0 {offsetTop} 372.0 {key} 'DES5_FL'
if 
  230@ <> 1
goto_if_false @DESERT5_21847
gosub @DESERT5_24631
set_text_scale 1.45 {heightScale} 2.0
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 70.0 {offsetTop} 322.0 {key} 'DES5_FM'
gosub @DESERT5_24631
set_text_scale 1.45 {heightScale} 2.0
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 61.4 {offsetTop} 347.0 {key} 'DES5_FK'

:DESERT5_21847
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:DESERT5_22089
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
if 
  70 > 228@
goto_if_false @DESERT5_22151
229@ = 1

:DESERT5_22151
if 
  228@ > 69
goto_if_false @DESERT5_22194
if 
  85 > 228@
goto_if_false @DESERT5_22194
229@ = 2

:DESERT5_22194
if 
  228@ > 84
goto_if_false @DESERT5_22237
if 
  100 > 228@
goto_if_false @DESERT5_22237
229@ = 3

:DESERT5_22237
if 
  228@ == 100
goto_if_false @DESERT5_22262
229@ = 4

:DESERT5_22262
gosub @DESERT5_24631
set_text_right_justify False
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
if 
  229@ > 1
goto_if_false @DESERT5_22356
display_text_with_number 320.0 {offsetTop} 75.0 {key} 'DES5_FQ' {num} 228@
goto @DESERT5_22377

:DESERT5_22356
display_text 320.0 {offsetTop} 75.0 {key} 'DES5_FR'

:DESERT5_22377
if 
  229@ > 1
goto_if_false @DESERT5_22482
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @DESERT5_22562

:DESERT5_22482
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:DESERT5_22562
set_sprites_draw_before_fade True
if 
  229@ == 1
goto_if_false @DESERT5_22748
242@ = get_current_language 
if 
  is_int_lvar_equal_to_constant 242@ == 0
goto_if_false @DESERT5_22650
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
goto @DESERT5_22686

:DESERT5_22650
draw_sprite 10 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_22686
gosub @DESERT5_24631
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FS'

:DESERT5_22748
if 
  229@ == 2
goto_if_false @DESERT5_22864
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24631
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FF'

:DESERT5_22864
if 
  229@ == 3
goto_if_false @DESERT5_22980
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24631
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FE'

:DESERT5_22980
if 
  229@ == 4
goto_if_false @DESERT5_23096
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24631
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FD'

:DESERT5_23096
return 

:DESERT5_23098
if 
  231@ == 0
goto_if_false @DESERT5_23377
if 
  34@ == 1
goto_if_false @DESERT5_23141
gosub @DESERT5_3984

:DESERT5_23141
if 
  34@ == 2
goto_if_false @DESERT5_23166
gosub @DESERT5_5493

:DESERT5_23166
if 
  34@ == 4
goto_if_false @DESERT5_23191
gosub @DESERT5_6956

:DESERT5_23191
if 
  34@ == 6
goto_if_false @DESERT5_23216
gosub @DESERT5_8535

:DESERT5_23216
if 
  34@ == 7
goto_if_false @DESERT5_23241
gosub @DESERT5_10325

:DESERT5_23241
if 
  34@ == 8
goto_if_false @DESERT5_23266
gosub @DESERT5_11761

:DESERT5_23266
if 
  34@ == 9
goto_if_false @DESERT5_23291
gosub @DESERT5_12980

:DESERT5_23291
if 
  34@ == 10
goto_if_false @DESERT5_23316
gosub @DESERT5_15309

:DESERT5_23316
if 
  34@ == 11
goto_if_false @DESERT5_23341
gosub @DESERT5_16987

:DESERT5_23341
if 
  34@ == 12
goto_if_false @DESERT5_23366
gosub @DESERT5_18567

:DESERT5_23366
play_mission_audio MissionAudioSlot.Slot3
231@ = 1

:DESERT5_23377
if 
  231@ == 1
goto_if_false @DESERT5_23675
if 
  34@ <> 12
goto_if_false @DESERT5_23580
if 
  not is_car_dead 35@
goto_if_false @DESERT5_23559
150@ = 589
add_int_lvar_to_int_lvar 150@ += 34@
if 
  34@ == 4
goto_if_false @DESERT5_23470
150@ -= 1

:DESERT5_23470
if 
  34@ >= 6
goto_if_false @DESERT5_23495
150@ -= 2

:DESERT5_23495
if 
  not has_car_recording_been_loaded 150@
goto_if_false @DESERT5_23523
request_car_recording 150@
goto @DESERT5_23552

:DESERT5_23523
start_playback_recorded_car 35@ {path} 150@
gosub @DESERT5_24275
226@ = 3
231@ = 2

:DESERT5_23552
goto @DESERT5_23573

:DESERT5_23559
226@ = 3
231@ = 2

:DESERT5_23573
goto @DESERT5_23675

:DESERT5_23580
if 
  not is_char_dead 70@
goto_if_false @DESERT5_23661
if 
  is_char_playing_anim 70@ {animationName} "FALL_SKYDIVE"
goto_if_false @DESERT5_23654
freeze_char_position 70@ {state} False
TIMERB = 0
226@ = 3
231@ = 2

:DESERT5_23654
goto @DESERT5_23675

:DESERT5_23661
226@ = 3
231@ = 2

:DESERT5_23675
if 
  231@ == 2
goto_if_false @DESERT5_24033
if 
  34@ <> 12
goto_if_false @DESERT5_23956
if 
  not is_car_dead 35@
goto_if_false @DESERT5_23935
if 
  not is_playback_going_on_for_car 35@
goto_if_false @DESERT5_23771
freeze_car_position 35@ {state} True
226@ = 1
231@ = 4
goto @DESERT5_23928

:DESERT5_23771
set_heli_blades_full_speed 35@
if 
  34@ == 9
goto_if_false @DESERT5_23928
fire_hunter_gun 35@
if and
  172@ <> 1
  not is_car_dead 62@
  TIMERB > 3000
goto_if_false @DESERT5_23842
explode_car_in_cutscene 62@
172@ = 1

:DESERT5_23842
if and
  171@ <> 1
  not is_car_dead 61@
  TIMERB > 4500
goto_if_false @DESERT5_23885
explode_car_in_cutscene 61@
171@ = 1

:DESERT5_23885
if and
  170@ <> 1
  not is_car_dead 60@
  TIMERB > 6000
goto_if_false @DESERT5_23928
explode_car_in_cutscene 60@
170@ = 1

:DESERT5_23928
goto @DESERT5_23949

:DESERT5_23935
226@ = 1
231@ = 4

:DESERT5_23949
goto @DESERT5_24033

:DESERT5_23956
if 
  not is_char_dead 70@
goto_if_false @DESERT5_24019
if 
  TIMERB > 15000
goto_if_false @DESERT5_24012
freeze_char_position 70@ {state} True
226@ = 1
231@ = 4

:DESERT5_24012
goto @DESERT5_24033

:DESERT5_24019
226@ = 1
231@ = 4

:DESERT5_24033
if 
  231@ == 3
goto_if_false @DESERT5_24088
if 
  not is_car_dead 35@
goto_if_false @DESERT5_24074
freeze_car_position 35@ {state} True

:DESERT5_24074
226@ = 1
231@ = 4

:DESERT5_24088
if 
  231@ == 4
goto_if_false @DESERT5_24273
if 
  226@ == 2
goto_if_false @DESERT5_24273
stop_playback_recorded_car 35@
restore_camera_jumpcut 
delete_char 70@
delete_car 35@
156@ = 0

:DESERT5_24148
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_24190
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_24148

:DESERT5_24190
remove_car_recording 590
remove_car_recording 591
remove_car_recording 592
remove_car_recording 593
remove_car_recording 594
remove_car_recording 595
remove_car_recording 596
remove_car_recording 597
remove_car_recording 598
clear_mission_audio MissionAudioSlot.Slot3
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
231@ = 0

:DESERT5_24273
return 

:DESERT5_24275
switch_start 34@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @DESERT5_24600 {caseNum1} 1 {caseLabel1} @DESERT5_24403 {caseNum2} 2 {caseLabel2} @DESERT5_24427 {caseNum3} 3 {caseLabel3} @DESERT5_24451 {caseNum4} 4 {caseLabel4} @DESERT5_24451 {caseNum5} 5 {caseLabel5} @DESERT5_24480 {caseNum6} 6 {caseLabel6} @DESERT5_24480 {caseNum7} 7 {caseLabel7} @DESERT5_24504
switch_continued 9 {caseLabel1} @DESERT5_24528 {caseNum2} 10 {caseLabel2} @DESERT5_24552 {caseNum3} 11 {caseLabel3} @DESERT5_24576 {caseNum4} -1 {caseLabel4} @DESERT5_24607 {caseNum5} -1 {caseLabel5} @DESERT5_24607 {caseNum6} -1 {caseLabel6} @DESERT5_24607 {caseNum7} -1 {caseLabel7} @DESERT5_24607 {caseNum8} -1 {caseLabel8} @DESERT5_24607 {caseNum9} -1 {caseLabel9} @DESERT5_24607

:DESERT5_24403
load_scene 172.6 {y} 2466.1399 {z} 17.05
goto @DESERT5_24607

:DESERT5_24427
load_scene 27.29 {y} 2466.3101 {z} 16.76
goto @DESERT5_24607

:DESERT5_24451
load_scene_in_direction -1251.02 {y} 2301.3201 {z} 120.44 {heading} 60.0
goto @DESERT5_24607

:DESERT5_24480
load_scene -394.09 {y} 2601.47 {z} 134.89
goto @DESERT5_24607

:DESERT5_24504
load_scene 323.02 {y} 2446.8101 {z} 117.65
goto @DESERT5_24607

:DESERT5_24528
load_scene 365.5 {y} 2339.25 {z} 63.23
goto @DESERT5_24607

:DESERT5_24552
load_scene 269.53 {y} 2445.3 {z} 88.46
goto @DESERT5_24607

:DESERT5_24576
load_scene 292.95 {y} 2445.3 {z} 93.46
goto @DESERT5_24607

:DESERT5_24600
goto @DESERT5_24607

:DESERT5_24607
load_scene_in_direction 412.38 {y} 2533.6499 {z} 18.18 {heading} 90.0
return 

:DESERT5_24631
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DESERT5_24693
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:DESERT5_24751
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DESERT5_24813
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.4
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DESERT5_24871
do_fade 500 {direction} Fade.Out

:DESERT5_24878
if 
  get_fading_status 
goto_if_false @DESERT5_24902
wait 0
goto @DESERT5_24878

:DESERT5_24902
restore_camera_jumpcut 
set_camera_behind_player 
return 

:DESERT5_24908
if 
  34@ <> 12
goto_if_false @DESERT5_24950
if 
  not is_car_dead 35@
goto_if_false @DESERT5_24950
warp_char_into_car $scplayer {vehicle} 35@

:DESERT5_24950
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
request_collision $player_x {y} $player_y
load_scene $player_x {y} $player_y {z} $player_z
wait 0
if 
  34@ <> 9
goto_if_false @DESERT5_25009
force_weather_now WeatherType.ExtraSunnyDesert

:DESERT5_25009
display_hud True
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DESERT5_25028
if 
  get_fading_status 
goto_if_false @DESERT5_25052
wait 0
goto @DESERT5_25028

:DESERT5_25052
set_player_control $player1 {state} True
return 

:DESERT5_25061
if 
  not is_car_dead 35@
goto_if_false @DESERT5_25128
if 
  233@ == 1
goto_if_false @DESERT5_25121
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_25121
232@ = 1

:DESERT5_25121
goto @DESERT5_25135

:DESERT5_25128
232@ = 1

:DESERT5_25135
return 

:DESERT5_25137
if 
  not is_car_dead 35@
goto_if_false @DESERT5_25180
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_25180
$d5_plane_reached_required_altitude = get_car_speed 35@

:DESERT5_25180
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DESERT5_25295
if 
  $d5_plane_reached_required_altitude > 0.1
goto_if_false @DESERT5_25295
clear_prints 
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_25288
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'

:DESERT5_25288
233@ = 1

:DESERT5_25295
return 
if 
  $car_timer == 0
goto_if_false @DESERT5_25329
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:DESERT5_25329
return 

:DESERT5_25331
set_player_control $player1 {state} False
if 
  34@ <> 12
goto_if_false @DESERT5_25363
goto @DESERT5_25370

:DESERT5_25363
freeze_char_position $scplayer {state} True

:DESERT5_25370
freeze_onscreen_timer True
return 

:DESERT5_25376
229@ = 0
if 
  $overall_score > 69
goto_if_false @DESERT5_25465
if 
  85 > $overall_score
goto_if_false @DESERT5_25465
if and
  237@ > 69
  85 > 237@
goto_if_false @DESERT5_25458
229@ = 0
goto @DESERT5_25465

:DESERT5_25458
229@ = 2

:DESERT5_25465
if 
  $overall_score > 84
goto_if_false @DESERT5_25547
if 
  100 > $overall_score
goto_if_false @DESERT5_25547
if and
  237@ > 84
  100 > 237@
goto_if_false @DESERT5_25540
229@ = 0
goto @DESERT5_25547

:DESERT5_25540
229@ = 3

:DESERT5_25547
if 
  $overall_score == 100
goto_if_false @DESERT5_25604
if 
  237@ == 100
goto_if_false @DESERT5_25597
229@ = 0
goto @DESERT5_25604

:DESERT5_25597
229@ = 4

:DESERT5_25604
243@ = 1
244@ = 1
245@ = 1
156@ = 0

:DESERT5_25632
if 
  10 > 156@
goto_if_false @DESERT5_25826
if 
  $d5_bronze_generator_unlocked <> 1
goto_if_false @DESERT5_25704
if and
  70 > $d5_best_scores(156@,10i)
  243@ == 1
goto_if_false @DESERT5_25704
243@ = 0

:DESERT5_25704
if 
  $d5_silver_generator_unlocked <> 1
goto_if_false @DESERT5_25758
if and
  85 > $d5_best_scores(156@,10i)
  244@ == 1
goto_if_false @DESERT5_25758
244@ = 0

:DESERT5_25758
if 
  $d5_gold_generator_unlocked <> 1
goto_if_false @DESERT5_25812
if and
  100 > $d5_best_scores(156@,10i)
  245@ == 1
goto_if_false @DESERT5_25812
245@ = 0

:DESERT5_25812
156@ += 1
goto @DESERT5_25632

:DESERT5_25826
if and
  $d5_bronze_generator_unlocked <> 1
  243@ == 1
goto_if_false @DESERT5_25865
switch_car_generator $d5_bronze_generator {amount} 101
$d5_bronze_generator_unlocked = 1

:DESERT5_25865
if and
  $d5_silver_generator_unlocked <> 1
  244@ == 1
goto_if_false @DESERT5_25904
switch_car_generator $d5_silver_generator {amount} 101
$d5_silver_generator_unlocked = 1

:DESERT5_25904
if and
  $d5_gold_generator_unlocked <> 1
  245@ == 1
goto_if_false @DESERT5_25950
switch_car_generator $d5_gold_generator {amount} 101
switch_car_generator $f1_blood_car_gen[25] {amount} 101
$d5_gold_generator_unlocked = 1

:DESERT5_25950
return 

:DESERT5_25952
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 7
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_26019
$position_score = 100
goto @DESERT5_26633

:DESERT5_26019
if 
  34@ <> 12
goto_if_false @DESERT5_26451
if 
  not is_car_dead 35@
goto_if_false @DESERT5_26437
$position_score = 100
if 
  34@ == 2
goto_if_false @DESERT5_26129
if 
  not is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} False
goto_if_false @DESERT5_26129
$position_score -= 50

:DESERT5_26129
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_26205
if 
  not is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
goto_if_false @DESERT5_26205
$position_score -= 50

:DESERT5_26205
if 
  34@ == 8
goto_if_false @DESERT5_26272
if 
  not locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
goto_if_false @DESERT5_26272
$position_score -= 50

:DESERT5_26272
if 
  34@ == 9
goto_if_false @DESERT5_26339
if 
  not locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
goto_if_false @DESERT5_26339
$position_score -= 50

:DESERT5_26339
40@ = get_car_heading 35@
if or
  40@ < 260.0
  280.0 < 40@
goto_if_false @DESERT5_26430
if and
  40@ >= 181.0
  359.0 >= 40@
goto_if_false @DESERT5_26423
$position_score -= 10
goto @DESERT5_26430

:DESERT5_26423
$position_score -= 25

:DESERT5_26430
goto @DESERT5_26444

:DESERT5_26437
$position_score = 0

:DESERT5_26444
goto @DESERT5_26633

:DESERT5_26451
if 
  0.8 >= 142@
goto_if_false @DESERT5_26486
$position_score = 100
goto @DESERT5_26633

:DESERT5_26486
if 
  2.1 >= 142@
goto_if_false @DESERT5_26521
$position_score = 85
goto @DESERT5_26633

:DESERT5_26521
if 
  4.0 >= 142@
goto_if_false @DESERT5_26556
$position_score = 75
goto @DESERT5_26633

:DESERT5_26556
if 
  6.0 >= 142@
goto_if_false @DESERT5_26591
$position_score = 70
goto @DESERT5_26633

:DESERT5_26591
if 
  10.0 >= 142@
goto_if_false @DESERT5_26626
$position_score = 35
goto @DESERT5_26633

:DESERT5_26626
$position_score = 0

:DESERT5_26633
if 
  0 > $position_score
goto_if_false @DESERT5_26658
$position_score = 0

:DESERT5_26658
if 
  $position_score > 100
goto_if_false @DESERT5_26683
$position_score = 100

:DESERT5_26683
return 

:DESERT5_26685
if 
  34@ <> 12
goto_if_false @DESERT5_26837
if 
  not is_car_dead 35@
goto_if_false @DESERT5_26823
36@ = get_car_health 35@
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
145@ = 1000
sub_int_lvar_from_int_lvar 145@ -= 36@
145@ /= 10
if 
  0 > 145@
goto_if_false @DESERT5_26791
145@ = 0

:DESERT5_26791
if 
  145@ > 100
goto_if_false @DESERT5_26816
145@ = 100

:DESERT5_26816
goto @DESERT5_26830

:DESERT5_26823
145@ = 100

:DESERT5_26830
goto @DESERT5_26844

:DESERT5_26837
145@ = 0

:DESERT5_26844
return 

:DESERT5_26846
set_var_int_to_var_int $overall_secs = $car_timer
$overall_secs /= 1000
if 
  is_int_lvar_greater_or_equal_to_int_var 147@ >= $overall_secs
goto_if_false @DESERT5_26895
146@ = 100
goto @DESERT5_27006

:DESERT5_26895
set_lvar_int_to_var_int 146@ = $overall_secs
sub_int_lvar_from_int_lvar 146@ -= 147@
146@ *= 30
set_lvar_int_to_lvar_int 149@ = 148@
sub_int_lvar_from_int_lvar 149@ -= 147@
div_int_lvar_by_int_lvar 146@ /= 149@
146@ *= -1
146@ += 100
if 
  0 > 146@
goto_if_false @DESERT5_26981
146@ = 0

:DESERT5_26981
if 
  146@ > 100
goto_if_false @DESERT5_27006
146@ = 100

:DESERT5_27006
return 

:DESERT5_27008
set_var_int_to_lvar_int $overall_score = 146@
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_27084
add_int_var_to_int_var $overall_score += $position_score
$overall_score /= 2

:DESERT5_27084
if 
  34@ <> 12
goto_if_false @DESERT5_27110
sub_int_lvar_from_int_var $overall_score -= 145@

:DESERT5_27110
if 
  0 > $overall_score
goto_if_false @DESERT5_27135
$overall_score = 0

:DESERT5_27135
if 
  $overall_score > 100
goto_if_false @DESERT5_27160
$overall_score = 100

:DESERT5_27160
clear_prints 
return 

:DESERT5_27164
set_player_control $player1 {state} False
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStop
do_fade 500 {direction} Fade.Out

:DESERT5_27198
if 
  get_fading_status 
goto_if_false @DESERT5_27229
wait 0
gosub @DESERT5_29289
goto @DESERT5_27198

:DESERT5_27229
delete_menu 144@
clear_help 
clear_prints 
clear_this_big_print 'DES5_SA'
clear_this_big_print 'DES5_SB'
set_text_scale 1.0 {heightScale} 1.0
apply_brakes_to_players_car $player1 {state} False
if 
  34@ == 12
goto_if_false @DESERT5_27314
delete_object 135@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
mark_model_as_no_longer_needed 371

:DESERT5_27314
restore_camera_jumpcut 
delete_char 70@
clear_char_tasks_immediately $scplayer
remove_blip 220@
delete_checkpoint 118@
delete_checkpoint 143@
if 
  232@ == 2
goto_if_false @DESERT5_27361
clear_prints 

:DESERT5_27361
if 
  not is_car_dead 35@
goto_if_false @DESERT5_27403
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_27403
freeze_car_position 35@ {state} True

:DESERT5_27403
freeze_char_position $scplayer {state} True
wait 0
request_collision 412.38 {y} 2533.6499
load_scene 412.38 {y} 2533.6499 {z} 18.18
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
if 
  not is_car_dead 35@
goto_if_false @DESERT5_27484
freeze_car_position 35@ {state} False

:DESERT5_27484
freeze_char_position $scplayer {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT5_27534
warp_char_from_car_to_coord $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
goto @DESERT5_27554

:DESERT5_27534
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18

:DESERT5_27554
set_char_heading $scplayer {heading} 90.0
delete_car 35@
restore_camera_jumpcut 
set_camera_behind_player 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
return 

:DESERT5_27584
set_player_control $player1 {state} False
do_fade 200 {direction} Fade.Out

:DESERT5_27598
if 
  get_fading_status 
goto_if_false @DESERT5_27622
wait 0
goto @DESERT5_27598

:DESERT5_27622
clear_help 
clear_prints 
clear_onscreen_timer $car_timer
remove_blip 220@
delete_checkpoint 118@
if or
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_27728
156@ = 0

:DESERT5_27687
if 
  8 > 156@
goto_if_false @DESERT5_27728
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_27687

:DESERT5_27728
if 
  34@ == 9
goto_if_false @DESERT5_27844
156@ = 0

:DESERT5_27753
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_27795
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_27753

:DESERT5_27795
156@ = 0

:DESERT5_27802
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_27844
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_27802

:DESERT5_27844
if or
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_27879
delete_checkpoint 127@
delete_checkpoint 128@

:DESERT5_27879
if 
  34@ == 12
goto_if_false @DESERT5_27924
delete_object 135@
delete_checkpoint 143@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
mark_model_as_no_longer_needed 371
clear_char_tasks_immediately $scplayer

:DESERT5_27924
restore_camera_jumpcut 
delete_char 70@
if 
  232@ == 2
goto_if_false @DESERT5_27951
clear_prints 

:DESERT5_27951
if 
  not is_car_dead 35@
goto_if_false @DESERT5_27993
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_27993
freeze_car_position 35@ {state} True

:DESERT5_27993
freeze_char_position $scplayer {state} True
wait 0
request_collision 412.38 {y} 2533.6499
load_scene 300.0 {y} 2501.9399 {z} 19.65
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
if 
  not is_car_dead 35@
goto_if_false @DESERT5_28074
freeze_car_position 35@ {state} False

:DESERT5_28074
freeze_char_position $scplayer {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT5_28124
warp_char_from_car_to_coord $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
goto @DESERT5_28144

:DESERT5_28124
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18

:DESERT5_28144
set_char_heading $scplayer {heading} 90.0
delete_car 35@
display_hud False
display_radar False
set_fixed_camera_position 370.0 {y} 2501.9399 {z} 19.65 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 320.0 {y} 2501.9399 {z} 19.65 {switchStyle} SwitchType.JumpCut
144@ = create_menu 'DUMMY' {topLeftX} 184.0 {topLeftY} 200.0 {width} 128.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Center
set_menu_column 144@ {column} 1 {title} 'DUMMY' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 144@ {column} 0 {alignment} Align.Left
set_menu_column_orientation 144@ {column} 1 {alignment} Align.Center
set_menu_column_width 144@ {column} 0 {width} 192
set_menu_column_width 144@ {column} 1 {width} 64
270@ = 0
if and
  238@ > 0
  229@ > 0
goto_if_false @DESERT5_28473
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1

:DESERT5_28473
set_lvar_text_label 246@(270@,12s) = 'DES5_S3'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SC' {number} $overall_secs
270@ += 1
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_28620
set_lvar_text_label 246@(270@,12s) = 'DES5_S5'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} $position_score
270@ += 1

:DESERT5_28620
if 
  34@ <> 12
goto_if_false @DESERT5_28685
set_lvar_text_label 246@(270@,12s) = 'DES5_S6'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} 145@
270@ += 1

:DESERT5_28685
set_lvar_text_label 246@(270@,12s) = 'DES5_S7'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} $overall_score
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29009
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_SF'
270@ += 1
if 
  $d5_pilot_licence_obtained <> 1
goto_if_false @DESERT5_29009
271@ = get_int_stat StatId.FlyingSkill
if 
  271@ >= 180
goto_if_false @DESERT5_29009
$d5_pilot_licence_obtained = 1
156@ = 0

:DESERT5_28859
if 
  24 >= 156@
goto_if_false @DESERT5_28927
if and
  156@ <> 8
  156@ <> 9
goto_if_false @DESERT5_28913
switch_car_generator $f1_blood_car_gen(156@,28i) {amount} 101

:DESERT5_28913
156@ += 1
goto @DESERT5_28859

:DESERT5_28927
switch_car_generator $f1_blood_car_gen[27] {amount} 101
156@ = 0

:DESERT5_28941
if 
  11 >= 156@
goto_if_false @DESERT5_28984
switch_car_generator $5216(156@,12i) {amount} 0
156@ += 1
goto @DESERT5_28941

:DESERT5_28984
set_lvar_text_label 246@(270@,12s) = 'DES5_SG'
270@ += 1

:DESERT5_29009
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29077
set_lvar_text_label 246@(270@,12s) = 'DES5_S8'
goto @DESERT5_29095

:DESERT5_29077
set_lvar_text_label 246@(270@,12s) = 'DES5_SE'

:DESERT5_29095
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_S9'
270@ += 1

:DESERT5_29127
if 
  12 > 270@
goto_if_false @DESERT5_29177
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
goto @DESERT5_29127

:DESERT5_29177
set_menu_column 144@ {column} 0 {title} 'DUMMY' {row0} 246@s {row1} 248@s {row2} 250@s {row3} 252@s {row4} 254@s {row5} 256@s {row6} 258@s {row7} 260@s {row8} 262@s {row9} 264@s {row10} 266@s {row11} 268@s
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStart
do_fade 500 {direction} Fade.In

:DESERT5_29256
if 
  get_fading_status 
goto_if_false @DESERT5_29287
wait 0
gosub @DESERT5_29289
goto @DESERT5_29256

:DESERT5_29287
return 

:DESERT5_29289
if or
  238@ == 1
  238@ == 2
goto_if_false @DESERT5_29678
gosub @DESERT5_24813
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 120.0 {key} 'DES5_SB'
if 
  229@ > 0
goto_if_false @DESERT5_29678
gosub @DESERT5_24813
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 85.0 {key} 'DES5_SA'
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 261.7 {offsetTop} 200.0 {width} -50.0 {height} 50.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 378.3 {offsetTop} 200.0 {width} 50.0 {height} 50.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
if 
  229@ == 2
goto_if_false @DESERT5_29570
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29570
if 
  229@ == 3
goto_if_false @DESERT5_29624
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29624
if 
  229@ == 4
goto_if_false @DESERT5_29678
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29678
return 

:DESERT5_29680
if or
  215@ == 0
  215@ == 1
goto_if_false @DESERT5_29750
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_29750
if 
  TIMERB > 200
goto_if_false @DESERT5_29750
gosub @DESERT5_29815

:DESERT5_29750
if 
  215@ == 2
goto_if_false @DESERT5_29813
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DESERT5_29813
215@ = 0
216@ += 1
218@ = 0
clear_prints 
TIMERB = 0

:DESERT5_29813
return 

:DESERT5_29815
if 
  215@ == 0
goto_if_false @DESERT5_29851
load_mission_audio MissionAudioSlot.Slot1 {audioId} 203@(216@,12i)
215@ = 1

:DESERT5_29851
if 
  215@ == 1
goto_if_false @DESERT5_29909
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DESERT5_29909
print_now 179@(216@,12s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
215@ = 2

:DESERT5_29909
return 

:DESERT5_29911
clear_prints 
if 
  232@ == 1
goto_if_false @DESERT5_29947
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:DESERT5_29947
return 

:DESERT5_29949
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_29974
$pilot_test_passed = 1

:DESERT5_29974
if 
  $pilot_test_passed == 1
goto_if_false @DESERT5_30096
register_mission_passed 'DESERT5'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
set_int_stat StatId.PassedDesert5 {value} 1
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $pilot_contact_blip
$pilot_contact_blip = add_short_range_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon
$flag_desert_mission_counter += 1

:DESERT5_30096
return 

:DESERT5_30098
mark_model_as_no_longer_needed 476
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 400
mark_model_as_no_longer_needed 513
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 330
mark_streamed_script_as_no_longer_needed 1
remove_texture_dictionary 
remove_blip 220@
delete_checkpoint 118@
156@ = 0

:DESERT5_30156
if 
  8 > 156@
goto_if_false @DESERT5_30197
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_30156

:DESERT5_30197
delete_checkpoint 127@
delete_checkpoint 128@
delete_checkpoint 143@
156@ = 0

:DESERT5_30219
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30261
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_30219

:DESERT5_30261
156@ = 0

:DESERT5_30268
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_30310
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_30268

:DESERT5_30310
clear_help 
clear_this_big_print 'DES5_SA'
clear_this_big_print 'DES5_SB'
clear_sequence_task 71@
clear_sequence_task 72@
set_always_draw_3d_markers False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
use_text_commands False
delete_menu 144@
delete_object 135@
$para_pickup_flag = 1
if 
  not is_car_dead 35@
goto_if_false @DESERT5_30404
stop_playback_recorded_car 35@

:DESERT5_30404
delete_car 35@
156@ = 0

:DESERT5_30416
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30458
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_30416

:DESERT5_30458
remove_car_recording 590
remove_car_recording 591
remove_car_recording 592
remove_car_recording 593
remove_car_recording 594
remove_car_recording 595
remove_car_recording 596
remove_car_recording 597
remove_car_recording 598
clear_mission_audio MissionAudioSlot.Slot3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStop
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
release_weather 
display_radar True
show_update_stats True
set_area51_sam_site True
switch_police_helis True
set_max_wanted_level 239@
if 
  is_var_text_label_empty s$shop_name
goto_if_false @DESERT5_30577
restore_camera_jumpcut 

:DESERT5_30577
delete_char 70@
set_camera_behind_player 
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 84---------------
// Originally: Fender Ketchup

:CASINO1
script_name 'CASINO1'
gosub @CASINO1_484
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO1_38
gosub @CASINO1_19524

:CASINO1_38
gosub @CASINO1_19606
terminate_this_script 

:CASINO1_47
load_scene 326@ {y} 327@ {z} 328@
load_special_character 1 {modelName} 'SINDACO'
request_model 533
request_animation "CAR"
load_all_models_now 

:CASINO1_85
if or
  not has_model_loaded 533
  not has_special_character_loaded 1
  not has_animation_loaded "CAR"
goto_if_false @CASINO1_123
wait 0
goto @CASINO1_85

:CASINO1_123
return 

:CASINO1_125
326@ = 1903.8571
327@ = 974.1888
328@ = 9.8127
329@ = 177.4801
set_radio_channel RadioChannel.KRose
322@ = create_car 533 {x} 326@ {y} 327@ {z} 328@
set_car_heading 322@ {heading} 329@
set_can_burst_car_tyres 322@ {state} False
324@ = create_char PedType.Special {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
attach_char_to_car 324@ {vehicle} 322@ {xOffset} 0.0 {yOffset} 1.266 {zOffset} 0.391 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
set_char_health 324@ {health} 300
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
320@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 324@ {handleOrTemplate} 320@
clear_char_decision_maker_event_response 320@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 320@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 320@ {event} Event.PotentialWalkIntoVehicle
set_car_health 322@ {health} 1000
return 
323@ = add_blip_for_car 322@
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@

:CASINO1_372
mark_model_as_no_longer_needed 533
return 

:CASINO1_379
request_model 118

:CASINO1_383
if 
  not has_model_loaded 118
goto_if_false @CASINO1_409
wait 0
goto @CASINO1_383

:CASINO1_409
337@ = 1911.024
338@ = 956.8084
339@ = 9.8203
340@ = 95.5462
334@ = create_char PedType.CivMale {modelId} 118 {x} 337@ {y} 338@ {z} 339@
set_char_heading 334@ {heading} 340@
return 

:CASINO1_477
delete_char 334@
return 

:CASINO1_484
register_mission_given 
$onmission = 1
wait 0
34@ = -1
35@ = 0
36@ = 0
98@ = 0
$ca1_spooked = 0
47@ = 0
48@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
95@ = 0
38@ = 0
49@ = 0
$ca1_test = 0
58@ = 0
59@ = 0
57@ = 0
335@ = 1
70@ = 0.1
79@ = 1904.75
80@ = 960.74
81@ = 9.36
308@ = 1427.4
312@ = 2666.3999
316@ = 13.01
303@ = 1
304@ = 2
305@ = 0
306@ = 1
307@ = 0
set_lvar_text_label 104@s = 'CAS1_AA'
set_lvar_text_label 106@s = 'CAS1_AB'
set_lvar_text_label 108@s = 'CAS1_AC'
set_lvar_text_label 110@s = 'CAS1_AD'
set_lvar_text_label 112@s = 'CAS1_AE'
set_lvar_text_label 114@s = 'CAS1_BA'
set_lvar_text_label 116@s = 'CAS1_BB'
set_lvar_text_label 118@s = 'CAS1_BC'
set_lvar_text_label 120@s = 'CAS1_BD'
set_lvar_text_label 122@s = 'CAS1_BE'
set_lvar_text_label 124@s = 'CAS1_CA'
set_lvar_text_label 126@s = 'CAS1_CB'
set_lvar_text_label 128@s = 'CAS1_CC'
set_lvar_text_label 130@s = 'CAS1_CD'
set_lvar_text_label 132@s = 'CAS1_CE'
set_lvar_text_label 134@s = 'CAS1_DA'
set_lvar_text_label 136@s = 'CAS1_DB'
set_lvar_text_label 138@s = 'CAS1_DC'
set_lvar_text_label 140@s = 'CAS1_DD'
set_lvar_text_label 142@s = 'CAS1_DE'
set_lvar_text_label 144@s = 'CAS1_EA'
set_lvar_text_label 146@s = 'CAS1_EB'
set_lvar_text_label 148@s = 'CAS1_EC'
set_lvar_text_label 150@s = 'CAS1_ED'
set_lvar_text_label 152@s = 'CAS1_EE'
set_lvar_text_label 154@s = 'CAS1_EF'
set_lvar_text_label 156@s = 'CAS1_EG'
set_lvar_text_label 158@s = 'CAS1_EH'
set_lvar_text_label 160@s = 'CAS1_EI'
set_lvar_text_label 162@s = 'CAS1_EJ'
set_lvar_text_label 164@s = 'CAS1_EK'
set_lvar_text_label 166@s = 'CAS1_EL'
set_lvar_text_label 168@s = 'CAS1_EM'
set_lvar_text_label 170@s = 'CAS1_EN'
set_lvar_text_label 172@s = 'CAS1_EO'
set_lvar_text_label 174@s = 'CAS1_EP'
set_lvar_text_label 176@s = 'CAS1_EQ'
set_lvar_text_label 180@s = 'CAS1_ES'
set_lvar_text_label 182@s = 'CAS1_ET'
set_lvar_text_label 184@s = 'CAS1_EU'
set_lvar_text_label 186@s = 'CAS1_EV'
set_lvar_text_label 190@s = 'CAS1_EX'
set_lvar_text_label 192@s = 'CAS1_EY'
set_lvar_text_label 194@s = 'CAS1_EZ'
set_lvar_text_label 196@s = 'CAS1_FA'
set_lvar_text_label 198@s = 'CAS1_FB'
set_lvar_text_label 200@s = 'CAS1_GA'
set_lvar_text_label 202@s = 'CAS1_GB'
set_lvar_text_label 204@s = 'CAS1_GC'
set_lvar_text_label 206@s = 'CAS1_GD'
set_lvar_text_label 208@s = 'CAS1_GE'
set_lvar_text_label 210@s = 'CAS1_HA'
set_lvar_text_label 212@s = 'CAS1_HB'
set_lvar_text_label 214@s = 'CAS1_HC'
set_lvar_text_label 216@s = 'CAS1_HD'
set_lvar_text_label 218@s = 'CAS1_HE'
set_lvar_text_label 220@s = 'CAS1_JA'
set_lvar_text_label 222@s = 'CAS1_JB'
set_lvar_text_label 224@s = 'CAS1B00'
set_lvar_text_label 226@s = 'CAS1B02'
set_lvar_text_label 228@s = 'CAS1B03'
set_lvar_text_label 230@s = 'CAS1B04'
set_lvar_text_label 232@s = 'CAS1B05'
set_lvar_text_label 234@s = 'CAS1B06'
set_lvar_int_to_constant 237@ = 21600
set_lvar_int_to_constant 238@ = 21657
set_lvar_int_to_constant 239@ = 21658
set_lvar_int_to_constant 240@ = 21601
set_lvar_int_to_constant 241@ = 21659
set_lvar_int_to_constant 242@ = 21602
set_lvar_int_to_constant 243@ = 21603
set_lvar_int_to_constant 244@ = 21604
set_lvar_int_to_constant 245@ = 21605
set_lvar_int_to_constant 246@ = 21606
set_lvar_int_to_constant 247@ = 21607
set_lvar_int_to_constant 248@ = 21608
set_lvar_int_to_constant 249@ = 21609
set_lvar_int_to_constant 250@ = 21610
set_lvar_int_to_constant 251@ = 21611
set_lvar_int_to_constant 252@ = 21612
set_lvar_int_to_constant 253@ = 21613
set_lvar_int_to_constant 254@ = 21614
set_lvar_int_to_constant 255@ = 21615
set_lvar_int_to_constant 256@ = 21616
set_lvar_int_to_constant 257@ = 21617
set_lvar_int_to_constant 258@ = 21618
set_lvar_int_to_constant 259@ = 21619
set_lvar_int_to_constant 260@ = 21620
set_lvar_int_to_constant 261@ = 21621
set_lvar_int_to_constant 262@ = 21622
set_lvar_int_to_constant 263@ = 21623
set_lvar_int_to_constant 264@ = 21624
set_lvar_int_to_constant 265@ = 21625
set_lvar_int_to_constant 266@ = 21626
set_lvar_int_to_constant 267@ = 21627
set_lvar_int_to_constant 268@ = 21628
set_lvar_int_to_constant 269@ = 21629
set_lvar_int_to_constant 270@ = 21630
set_lvar_int_to_constant 271@ = 21631
set_lvar_int_to_constant 272@ = 21632
set_lvar_int_to_constant 273@ = 21633
set_lvar_int_to_constant 275@ = 21634
set_lvar_int_to_constant 276@ = 21635
set_lvar_int_to_constant 277@ = 21636
set_lvar_int_to_constant 278@ = 21637
set_lvar_int_to_constant 280@ = 21639
set_lvar_int_to_constant 281@ = 21640
set_lvar_int_to_constant 282@ = 21641
set_lvar_int_to_constant 283@ = 21642
set_lvar_int_to_constant 284@ = 21643
set_lvar_int_to_constant 285@ = 21645
set_lvar_int_to_constant 286@ = 21660
set_lvar_int_to_constant 287@ = 21646
set_lvar_int_to_constant 288@ = 21661
set_lvar_int_to_constant 289@ = 21647
set_lvar_int_to_constant 290@ = 21648
set_lvar_int_to_constant 291@ = 21649
set_lvar_int_to_constant 292@ = 21650
set_lvar_int_to_constant 293@ = 21651
set_lvar_int_to_constant 294@ = 21652
set_lvar_int_to_constant 295@ = 21653
set_lvar_int_to_constant 296@ = 21662
set_lvar_int_to_constant 297@ = 21663
set_lvar_int_to_constant 298@ = 21654
set_lvar_int_to_constant 299@ = 21665
set_lvar_int_to_constant 300@ = 21655
set_lvar_int_to_constant 301@ = 21666
set_lvar_int_to_constant 302@ = 21656
load_mission_text 'CASINO1'
set_player_group_recruitment $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO1_2189
if 
  get_fading_status 
goto_if_false @CASINO1_2213
wait 0
goto @CASINO1_2189

:CASINO1_2213
set_area_visible 11
load_cutscene 'CAS_1A'

:CASINO1_2228
if 
  not has_cutscene_loaded 
goto_if_false @CASINO1_2252
wait 0
goto @CASINO1_2228

:CASINO1_2252
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO1_2261
if 
  not has_cutscene_finished 
goto_if_false @CASINO1_2285
wait 0
goto @CASINO1_2261

:CASINO1_2285
do_fade 0 {direction} Fade.Out

:CASINO1_2291
if 
  get_fading_status 
goto_if_false @CASINO1_2315
wait 0
goto @CASINO1_2291

:CASINO1_2315
clear_cutscene 
set_player_control $player1 {state} False
alter_wanted_level $player1 {wantedLevel} 0
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_first_person_in_car_camera_mode False
set_fixed_camera_position 1908.156 {y} 977.3071 {z} 10.2294 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1907.488 {y} 976.5921 {z} 10.4377 {switchStyle} SwitchType.JumpCut
clear_area 1903.27 {y} 955.95 {z} 9.8203 {radius} 30.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1909.826 {y} 977.4828 {z} 9.8127
set_char_heading $scplayer {heading} 136.9741
request_model #TRDCSGRGDOOR_LVS
load_all_models_now 

:CASINO1_2470
if 
  not has_model_loaded #TRDCSGRGDOOR_LVS
goto_if_false @CASINO1_2496
wait 0
goto @CASINO1_2470

:CASINO1_2496
gosub @CASINO1_47
gosub @CASINO1_125
load_scene_in_direction 1908.156 {y} 977.3071 {z} 10.2294 {heading} 136.9741
switch_widescreen True
wait 150
do_fade 1500 {direction} Fade.In

:CASINO1_2548
if 
  get_fading_status 
goto_if_false @CASINO1_2572
wait 0
goto @CASINO1_2548

:CASINO1_2572
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2601
task_look_at_char $scplayer {target} 324@ {time} 100000

:CASINO1_2601
wait 0
if 
  305@ <> 0
goto_if_false @CASINO1_3234
if 
  307@ == 0
goto_if_false @CASINO1_2669
if 
  has_mission_audio_loaded 304@
goto_if_false @CASINO1_2662
clear_mission_audio 304@

:CASINO1_2662
307@ = 1

:CASINO1_2669
if 
  307@ == 1
goto_if_false @CASINO1_2706
load_mission_audio 303@ {audioId} 236@(305@,67i)
307@ = 2

:CASINO1_2706
if 
  307@ == 2
goto_if_false @CASINO1_2864
if 
  has_mission_audio_loaded 303@
goto_if_false @CASINO1_2864
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2789
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2789
start_char_facial_talk 324@ {duration} 10000

:CASINO1_2789
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2838
if 
  not is_char_dead $scplayer
goto_if_false @CASINO1_2838
start_char_facial_talk $scplayer {duration} 10000

:CASINO1_2838
play_mission_audio 303@
print_now 102@(305@,67s) {time} 10000 {flag} 1
307@ = 3

:CASINO1_2864
if 
  307@ == 3
goto_if_false @CASINO1_3234
if 
  has_mission_audio_finished 303@
goto_if_false @CASINO1_3173
clear_this_print 102@(305@,67s)
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2953
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2953
stop_char_facial_talk 324@

:CASINO1_2953
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2999
if 
  not is_char_dead $scplayer
goto_if_false @CASINO1_2999
stop_char_facial_talk $scplayer

:CASINO1_2999
if 
  303@ == 1
goto_if_false @CASINO1_3038
303@ = 2
304@ = 1
goto @CASINO1_3052

:CASINO1_3038
303@ = 1
304@ = 2

:CASINO1_3052
305@ = 0
307@ = 0
if 
  35@ == 0
goto_if_false @CASINO1_3091
35@ = 1

:CASINO1_3091
if 
  35@ == 4
goto_if_false @CASINO1_3116
35@ = 5

:CASINO1_3116
if 
  35@ == 3
goto_if_false @CASINO1_3141
35@ = 4

:CASINO1_3141
if 
  35@ == 7
goto_if_false @CASINO1_3166
35@ = 8

:CASINO1_3166
goto @CASINO1_3234

:CASINO1_3173
if 
  not has_mission_audio_loaded 304@
goto_if_false @CASINO1_3234
if 
  66 > 305@
goto_if_false @CASINO1_3234
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
load_mission_audio 304@ {audioId} 236@(306@,67i)

:CASINO1_3234
if 
  not is_char_dead 324@
goto_if_false @CASINO1_3359
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_3359
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_3359
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_3359
if 
  35@ > 0
goto_if_false @CASINO1_3401
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_3401
35@ = 10

:CASINO1_3401
if 
  35@ == 0
goto_if_false @CASINO1_3451
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3451
305@ = 61

:CASINO1_3451
if 
  35@ == 1
goto_if_false @CASINO1_3500
task_go_straight_to_coord $scplayer {x} 1905.45 {y} 973.9371 {z} 9.8127 {speed} MoveState.Walk {time} -2
35@ = 2

:CASINO1_3500
if 
  35@ == 2
goto_if_false @CASINO1_3629
97@ = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_3629
if 
  not is_char_dead 324@
goto_if_false @CASINO1_3629
task_turn_char_to_face_char $scplayer {target} 324@
set_fixed_camera_position 1903.005 {y} 974.7813 {z} 11.1887 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1903.7321 {y} 974.0975 {z} 11.2553 {switchStyle} SwitchType.JumpCut
35@ = 3

:CASINO1_3629
if 
  35@ == 3
goto_if_false @CASINO1_3679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3679
305@ = 62

:CASINO1_3679
if or
  35@ == 4
  35@ == 5
goto_if_false @CASINO1_3741
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False

:CASINO1_3741
if 
  35@ == 9
goto_if_false @CASINO1_3796
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False

:CASINO1_3796
if 
  35@ == 4
goto_if_false @CASINO1_3846
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3846
305@ = 63

:CASINO1_3846
if 
  35@ == 5
goto_if_false @CASINO1_3897
if 
  not is_car_dead 322@
goto_if_false @CASINO1_3897
task_enter_car_as_driver $scplayer {vehicle} 322@ {time} -2
35@ = 6

:CASINO1_3897
if 
  35@ == 6
goto_if_false @CASINO1_4039
97@ = get_script_task_status $scplayer {taskId} 1483
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4039
set_fixed_camera_position 1906.528 {y} 970.1409 {z} 10.433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1905.823 {y} 970.8365 {z} 10.5694 {switchStyle} SwitchType.JumpCut
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
35@ = 7

:CASINO1_4039
if 
  35@ == 7
goto_if_false @CASINO1_4089
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_4089
305@ = 64

:CASINO1_4089
if 
  35@ == 8
goto_if_false @CASINO1_4164
if 
  not is_car_dead 322@
goto_if_false @CASINO1_4164
task_car_drive_to_coord $scplayer {vehicle} 322@ {x} 1903.27 {y} 955.95 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
35@ = 9

:CASINO1_4164
if 
  35@ == 9
goto_if_false @CASINO1_4218
97@ = get_script_task_status $scplayer {taskId} 1489
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4218
35@ = 10

:CASINO1_4218
if 
  35@ <> 10
goto_if_false @CASINO1_4243
goto @CASINO1_2601

:CASINO1_4243
if 
  not is_car_dead 322@
goto_if_false @CASINO1_4356
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.82 {z} 11.438
set_car_coordinates 322@ {x} 1903.27 {y} 955.95 {z} 9.8203
set_car_heading 322@ {heading} 180.7793
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_4348
warp_char_from_car_to_coord $scplayer {x} 1903.27 {y} 955.95 {z} 9.8203

:CASINO1_4348
warp_char_into_car $scplayer {vehicle} 322@

:CASINO1_4356
mark_model_as_no_longer_needed #TRDCSGRGDOOR_LVS
set_camera_behind_player 
restore_camera_jumpcut 
clear_look_at $scplayer
switch_widescreen False
set_player_control $player1 {state} True
35@ = 0

:CASINO1_4387
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO1_4413
goto @CASINO1_19542

:CASINO1_4413
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CASINO1_4435
$ca1_test = 100

:CASINO1_4435
if 
  305@ <> 0
goto_if_false @CASINO1_4774
if 
  307@ == 0
goto_if_false @CASINO1_4499
if 
  has_mission_audio_loaded 304@
goto_if_false @CASINO1_4492
clear_mission_audio 304@

:CASINO1_4492
307@ = 1

:CASINO1_4499
if 
  307@ == 1
goto_if_false @CASINO1_4536
load_mission_audio 303@ {audioId} 236@(305@,67i)
307@ = 2

:CASINO1_4536
if 
  307@ == 2
goto_if_false @CASINO1_4596
if 
  has_mission_audio_loaded 303@
goto_if_false @CASINO1_4596
play_mission_audio 303@
print_now 102@(305@,67s) {time} 10000 {flag} 1
307@ = 3

:CASINO1_4596
if 
  307@ == 3
goto_if_false @CASINO1_4774
if 
  has_mission_audio_finished 303@
goto_if_false @CASINO1_4713
clear_this_print 102@(305@,67s)
if 
  303@ == 1
goto_if_false @CASINO1_4678
303@ = 2
304@ = 1
goto @CASINO1_4692

:CASINO1_4678
303@ = 1
304@ = 2

:CASINO1_4692
305@ = 0
307@ = 0
goto @CASINO1_4774

:CASINO1_4713
if 
  not has_mission_audio_loaded 304@
goto_if_false @CASINO1_4774
if 
  66 > 305@
goto_if_false @CASINO1_4774
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
load_mission_audio 304@ {audioId} 236@(306@,67i)

:CASINO1_4774
if or
  is_char_in_zone $scplayer {zone} 'PINT'
  is_char_in_zone $scplayer {zone} 'BINT'
  is_char_in_zone $scplayer {zone} 'JTN'
  is_char_in_zone $scplayer {zone} 'JTS'
  is_char_in_zone $scplayer {zone} 'JTW'
  is_char_in_zone $scplayer {zone} 'JTE'
goto_if_false @CASINO1_4967
if and
  98@ == 0
  38@ == 0
goto_if_false @CASINO1_4924
print 'CAS1_10' {time} 5000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 3
38@ = 1

:CASINO1_4924
if 
  38@ == 1
goto_if_false @CASINO1_4967
if 
  not is_wanted_level_greater $player1 {wantedLevel} 2
goto_if_false @CASINO1_4967
38@ = 0

:CASINO1_4967
if 
  34@ == -1
goto_if_false @CASINO1_5335
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_5308
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5301
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5301
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_5187
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5142
305@ = 65
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_5142
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5187
101@ = get_game_timer 

:CASINO1_5187
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_5301
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5256
305@ = 66
$ca1_spooked += 1
34@ = 0
101@ = get_game_timer 

:CASINO1_5256
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5301
101@ = get_game_timer 

:CASINO1_5301
goto @CASINO1_5335

:CASINO1_5308
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.82 {z} 11.438
34@ = 0

:CASINO1_5335
if 
  34@ == 0
goto_if_false @CASINO1_5473
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5473
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5473
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5473
clear_prints 
print 'CAS1_11' {time} 5000 {flag} 1
print 'CAS1_12' {time} 5000 {flag} 1
98@ = 2
34@ = 2
36@ = 1

:CASINO1_5473
if 
  5 > 34@
goto_if_false @CASINO1_5794
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5794
if 
  36@ == 0
goto_if_false @CASINO1_5655
if 
  is_char_sitting_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5655
clear_prints 
set_first_person_in_car_camera_mode False
101@ = get_game_timer 
remove_blip 323@
remove_blip 50@
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5616
clear_onscreen_counter $ca1_test
display_onscreen_counter_with_string $ca1_test {display} CounterDisplay.Bar {text} 'CAS1_05'

:CASINO1_5616
if 
  34@ == 4
goto_if_false @CASINO1_5648
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@

:CASINO1_5648
36@ = 1

:CASINO1_5655
if 
  36@ == 1
goto_if_false @CASINO1_5794
if 
  not is_char_sitting_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5794
clear_prints 
set_first_person_in_car_camera_mode True
remove_blip 323@
323@ = add_blip_for_car 322@
set_blip_as_friendly 323@ {state} True
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5748
clear_onscreen_counter $ca1_test

:CASINO1_5748
if 
  34@ == 4
goto_if_false @CASINO1_5771
remove_blip 50@

:CASINO1_5771
print_now 'CAS1_01' {time} 7500 {flag} 2
36@ = 0

:CASINO1_5794
if 
  34@ == 2
goto_if_false @CASINO1_6007
if and
  not is_char_dead $scplayer
  not is_char_dead 324@
goto_if_false @CASINO1_6007
display_onscreen_counter_with_string $ca1_test {display} CounterDisplay.Bar {text} 'CAS1_05'
37@ = generate_random_int_in_range 0 {max} 4
if 
  37@ == 0
goto_if_false @CASINO1_5894
print_help 'CAS1_06'
34@ = 3

:CASINO1_5894
if 
  37@ == 1
goto_if_false @CASINO1_5930
print_help 'CAS1_07'
34@ = 3

:CASINO1_5930
if 
  37@ == 2
goto_if_false @CASINO1_5966
print_help 'CAS1_08'
34@ = 3

:CASINO1_5966
if 
  37@ == 3
goto_if_false @CASINO1_6002
print_help 'CAS1_09'
34@ = 3

:CASINO1_6002
74@ = get_game_timer 

:CASINO1_6007
if 
  34@ == 3
goto_if_false @CASINO1_15346
if and
  not is_car_dead 322@
  not is_char_dead $scplayer
  not is_char_dead 324@
goto_if_false @CASINO1_15346
if 
  335@ == 0
goto_if_false @CASINO1_6163
if 
  not is_char_dead 334@
goto_if_false @CASINO1_6163
if 
  not locate_char_any_means_3d $scplayer {x} 1910.75 {y} 960.74 {z} 10.86 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CASINO1_6163
if 
  not is_char_on_screen 334@
goto_if_false @CASINO1_6163
gosub @CASINO1_477
335@ = 1

:CASINO1_6163
if 
  is_car_door_damaged 322@ {door} CarDoor.Hood
goto_if_false @CASINO1_6214
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_6214
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_15346
if 
  8 > 49@
goto_if_false @CASINO1_6443
73@ = get_game_timer 
set_lvar_int_to_lvar_int 72@ = 73@
sub_int_lvar_from_int_lvar 72@ -= 74@
if 
  72@ > 30000
goto_if_false @CASINO1_6443
37@ = generate_random_int_in_range 0 {max} 4
if 
  37@ == 0
goto_if_false @CASINO1_6334
print_help 'CAS1_06'
74@ = get_game_timer 

:CASINO1_6334
if 
  37@ == 1
goto_if_false @CASINO1_6368
print_help 'CAS1_07'
74@ = get_game_timer 

:CASINO1_6368
if 
  37@ == 2
goto_if_false @CASINO1_6402
print_help 'CAS1_08'
74@ = get_game_timer 

:CASINO1_6402
if 
  37@ == 3
goto_if_false @CASINO1_6436
print_help 'CAS1_09'
74@ = get_game_timer 

:CASINO1_6436
49@ += 1

:CASINO1_6443
if 
  $ca1_test > 100
goto_if_false @CASINO1_6506
$ca1_test = 100
$ca1_spooked = 0
clear_onscreen_counter $ca1_test
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@
62@ = get_game_timer 
34@ = 4

:CASINO1_6506
if and
  39@ == 0
  41@ == 0
  40@ == 0
goto_if_false @CASINO1_6601
if 
  71@ > 15.0
goto_if_false @CASINO1_6601
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6601
331@ = get_car_heading 322@
333@ = 0.0
39@ = 1

:CASINO1_6601
if 
  39@ == 1
goto_if_false @CASINO1_6835
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6676
332@ = get_car_heading 322@
set_lvar_float_to_lvar_float 330@ = 332@
sub_float_lvar_from_float_lvar 330@ -= 331@
add_float_lvar_to_float_lvar 333@ += 330@
331@ = get_car_heading 322@

:CASINO1_6676
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6835
if 
  0.0 > 333@
goto_if_false @CASINO1_6724
333@ += 360.0

:CASINO1_6724
if 
  333@ > 0.0
goto_if_false @CASINO1_6828
if and
  333@ > 14.0
  210.0 > 333@
goto_if_false @CASINO1_6790
$ca1_test += 7
goto @CASINO1_6828

:CASINO1_6790
if and
  333@ > 90.0
  270.0 > 333@
goto_if_false @CASINO1_6828
$ca1_test += 3

:CASINO1_6828
39@ = 0

:CASINO1_6835
if and
  40@ == 0
  39@ == 0
  41@ == 0
goto_if_false @CASINO1_6895
if 
  is_car_in_air_proper 322@
goto_if_false @CASINO1_6895
53@ = get_game_timer 
40@ = 1

:CASINO1_6895
if 
  40@ == 1
goto_if_false @CASINO1_6973
if 
  not is_car_in_air_proper 322@
goto_if_false @CASINO1_6973
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
51@ /= 250
add_int_lvar_to_int_var $ca1_test += 51@
40@ = 0

:CASINO1_6973
if and
  41@ == 0
  39@ == 0
  40@ == 0
  20 > 59@
goto_if_false @CASINO1_7123
if 
  1.0 > 71@
goto_if_false @CASINO1_7123
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7123
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 3000
goto_if_false @CASINO1_7123
69@ = 0.0
70@ = 0.15
41@ = 1

:CASINO1_7123
if 
  41@ == 1
goto_if_false @CASINO1_7333
91@, 92@, 93@, 94@ = get_position_of_analogue_sticks PadId.Pad1
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7181
41@ = 0

:CASINO1_7181
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_7205
41@ = 0

:CASINO1_7205
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7333
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 95@
goto_if_false @CASINO1_7333
if and
  69@ >= 0.0
  70@ >= 0.0
goto_if_false @CASINO1_7333
53@ = get_game_timer 
add_float_lvar_to_float_lvar 69@ += 70@
70@ -= 0.025
cset_lvar_int_to_lvar_float 54@ =# 69@
add_int_lvar_to_int_var $ca1_test += 54@
add_int_lvar_to_int_lvar 59@ += 54@
set_lvar_int_to_lvar_int 95@ = 91@

:CASINO1_7333
71@ = get_car_speed 322@
if 
  42@ == 0
goto_if_false @CASINO1_7410
if 
  71@ > 30.0
goto_if_false @CASINO1_7410
if 
  40 > 58@
goto_if_false @CASINO1_7410
65@ = get_game_timer 
42@ = 1

:CASINO1_7410
if 
  42@ == 1
goto_if_false @CASINO1_7515
64@ = get_game_timer 
set_lvar_int_to_lvar_int 63@ = 64@
sub_int_lvar_from_int_lvar 63@ -= 65@
if 
  63@ > 600
goto_if_false @CASINO1_7487
65@ = get_game_timer 
58@ += 1
$ca1_test += 1

:CASINO1_7487
if 
  30.0 > 71@
goto_if_false @CASINO1_7515
42@ = 0

:CASINO1_7515
if 
  43@ == 0
goto_if_false @CASINO1_7581
if 
  $stunt_flags_hj > 0
goto_if_false @CASINO1_7581
set_lvar_int_to_var_int 55@ = $cash_reward
55@ /= 5
add_int_lvar_to_int_var $ca1_test += 55@
43@ = 1

:CASINO1_7581
if 
  43@ == 1
goto_if_false @CASINO1_7624
if 
  $stunt_flags_hj == 0
goto_if_false @CASINO1_7624
43@ = 0

:CASINO1_7624
if and
  44@ == 0
  46@ == 0
goto_if_false @CASINO1_8338
if 
  71@ > 15.0
goto_if_false @CASINO1_8324
91@, 92@, 93@, 94@ = get_position_of_analogue_sticks PadId.Pad1
if 
  91@ <> 0
goto_if_false @CASINO1_8303
56@ += 1
if 
  56@ > 20
goto_if_false @CASINO1_8296
if or
  91@ > 96
  -96 > 91@
goto_if_false @CASINO1_8296
if 
  45@ == 0
goto_if_false @CASINO1_8296
if 
  20 > 57@
goto_if_false @CASINO1_7804
$ca1_test += 1
57@ += 1

:CASINO1_7804
if 
  91@ > 0
goto_if_false @CASINO1_8050
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_7965
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_7958
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNR" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 1
56@ = 0
45@ = 1

:CASINO1_7958
goto @CASINO1_8050

:CASINO1_7965
if 
  not is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_8050
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNR" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
56@ = 0
45@ = 1

:CASINO1_8050
if 
  0 > 91@
goto_if_false @CASINO1_8296
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_8211
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_8204
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNL" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 1
56@ = 0
45@ = 1

:CASINO1_8204
goto @CASINO1_8296

:CASINO1_8211
if 
  not is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_8296
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNL" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
56@ = 0
45@ = 1

:CASINO1_8296
goto @CASINO1_8317

:CASINO1_8303
45@ = 0
56@ = 0

:CASINO1_8317
goto @CASINO1_8338

:CASINO1_8324
45@ = 0
56@ = 0

:CASINO1_8338
if 
  46@ == 0
goto_if_false @CASINO1_8424
if 
  71@ > 15.0
goto_if_false @CASINO1_8424
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_8424
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_8424
46@ = 1

:CASINO1_8424
if 
  46@ == 1
goto_if_false @CASINO1_8558
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_8558
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_8558
78@ += 1
if 
  78@ > 12
goto_if_false @CASINO1_8558
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_BUMP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
77@ = get_game_timer 
46@ = 2

:CASINO1_8558
if 
  46@ == 2
goto_if_false @CASINO1_8710
76@ = get_game_timer 
set_lvar_int_to_lvar_int 75@ = 76@
sub_int_lvar_from_int_lvar 75@ -= 77@
if 
  75@ > 1000
goto_if_false @CASINO1_8710
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_8710
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_8710
$ca1_test += 1
78@ = 0
46@ = 0

:CASINO1_8710
if 
  71@ > 30.0
goto_if_false @CASINO1_9065
88@, 89@, 90@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 82@ = 88@
82@ -= 0.1
set_lvar_float_to_lvar_float 83@ = 89@
83@ -= 0.1
set_lvar_float_to_lvar_float 84@ = 90@
84@ -= 0.1
set_lvar_float_to_lvar_float 85@ = 88@
85@ += 0.1
set_lvar_float_to_lvar_float 86@ = 89@
86@ += 0.1
set_lvar_float_to_lvar_float 87@ = 90@
87@ += 0.1
if 
  48@ == 0
goto_if_false @CASINO1_8939
if 
  is_area_occupied 82@ {leftBottomY} 83@ {leftBottomZ} 84@ {rightTopX} 85@ {rightTopY} 86@ {rightTopZ} 87@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CASINO1_8939
68@ = get_game_timer 
48@ = 1

:CASINO1_8939
if 
  48@ == 1
goto_if_false @CASINO1_9065
67@ = get_game_timer 
set_lvar_int_to_lvar_int 66@ = 67@
sub_int_lvar_from_int_lvar 66@ -= 68@
if 
  66@ > 50
goto_if_false @CASINO1_9065
if 
  is_area_occupied 82@ {leftBottomY} 83@ {leftBottomZ} 84@ {rightTopX} 85@ {rightTopY} 86@ {rightTopZ} 87@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CASINO1_9058
$ca1_test += 1
48@ = 0
goto @CASINO1_9065

:CASINO1_9058
48@ = 0

:CASINO1_9065
if or
  40@ == 1
  39@ == 1
  41@ == 1
  45@ == 1
goto_if_false @CASINO1_9241
if 
  98@ == 0
goto_if_false @CASINO1_9241
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_9241
$ca1_spooked = generate_random_int_in_range 0 {max} 6
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_9241
if 
  6 > $ca1_spooked
goto_if_false @CASINO1_9234
$ca1_spooked += 1
goto @CASINO1_9241

:CASINO1_9234
$ca1_spooked -= 1

:CASINO1_9241
if 
  98@ == 1
goto_if_false @CASINO1_13989
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_9369
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9309
305@ = 27

:CASINO1_9309
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9369
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9369
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_9479
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9419
305@ = 28

:CASINO1_9419
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9479
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9479
if 
  $ca1_spooked == 2
goto_if_false @CASINO1_9589
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9529
305@ = 29

:CASINO1_9529
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9589
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9589
if 
  $ca1_spooked == 3
goto_if_false @CASINO1_9699
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9639
305@ = 30

:CASINO1_9639
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9699
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9699
if 
  $ca1_spooked == 4
goto_if_false @CASINO1_9809
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9749
305@ = 31

:CASINO1_9749
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9809
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9809
if 
  $ca1_spooked == 5
goto_if_false @CASINO1_9919
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9859
305@ = 32

:CASINO1_9859
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9919
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_9919
if 
  $ca1_spooked == 6
goto_if_false @CASINO1_10029
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9969
305@ = 33

:CASINO1_9969
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10029
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10029
if 
  $ca1_spooked == 7
goto_if_false @CASINO1_10139
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10079
305@ = 21

:CASINO1_10079
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10139
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10139
if 
  $ca1_spooked == 8
goto_if_false @CASINO1_10249
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10189
305@ = 22

:CASINO1_10189
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10249
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10249
if 
  $ca1_spooked == 9
goto_if_false @CASINO1_10359
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10299
305@ = 23

:CASINO1_10299
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10359
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10359
if 
  $ca1_spooked == 10
goto_if_false @CASINO1_10469
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10409
305@ = 45

:CASINO1_10409
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10469
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10469
if 
  $ca1_spooked == 11
goto_if_false @CASINO1_10579
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10519
305@ = 46

:CASINO1_10519
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10579
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10579
if 
  $ca1_spooked == 12
goto_if_false @CASINO1_10689
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10629
305@ = 47

:CASINO1_10629
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10689
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10689
if 
  $ca1_spooked == 13
goto_if_false @CASINO1_10799
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10739
305@ = 48

:CASINO1_10739
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10799
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10799
if 
  $ca1_spooked == 14
goto_if_false @CASINO1_10909
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10849
305@ = 24

:CASINO1_10849
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10909
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_10909
if 
  $ca1_spooked == 15
goto_if_false @CASINO1_11019
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10959
305@ = 25

:CASINO1_10959
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11019
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11019
if 
  $ca1_spooked == 16
goto_if_false @CASINO1_11129
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11069
305@ = 26

:CASINO1_11069
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11129
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11129
if 
  $ca1_spooked == 17
goto_if_false @CASINO1_11239
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11179
305@ = 34

:CASINO1_11179
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11239
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11239
if 
  $ca1_spooked == 18
goto_if_false @CASINO1_11349
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11289
305@ = 35

:CASINO1_11289
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11349
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11349
if 
  $ca1_spooked == 19
goto_if_false @CASINO1_11459
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11399
305@ = 36

:CASINO1_11399
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11459
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11459
if 
  $ca1_spooked == 20
goto_if_false @CASINO1_11569
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11509
305@ = 37

:CASINO1_11509
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11569
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11569
if 
  $ca1_spooked == 21
goto_if_false @CASINO1_11679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11619
305@ = 40

:CASINO1_11619
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11679
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11679
if 
  $ca1_spooked == 22
goto_if_false @CASINO1_11789
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11729
305@ = 39

:CASINO1_11729
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11789
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11789
if 
  $ca1_spooked == 23
goto_if_false @CASINO1_11899
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11839
305@ = 40

:CASINO1_11839
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11899
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_11899
if 
  $ca1_spooked == 24
goto_if_false @CASINO1_12009
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11949
305@ = 41

:CASINO1_11949
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12009
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12009
if 
  $ca1_spooked == 25
goto_if_false @CASINO1_12119
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12059
305@ = 42

:CASINO1_12059
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12119
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12119
if 
  $ca1_spooked == 26
goto_if_false @CASINO1_12229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12169
305@ = 44

:CASINO1_12169
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12229
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12229
if 
  $ca1_spooked == 27
goto_if_false @CASINO1_12339
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12279
305@ = 44

:CASINO1_12279
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12339
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12339
if 
  $ca1_spooked == 28
goto_if_false @CASINO1_12449
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12389
305@ = 6

:CASINO1_12389
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12449
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12449
if 
  $ca1_spooked == 29
goto_if_false @CASINO1_12559
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12499
305@ = 7

:CASINO1_12499
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12559
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12559
if 
  $ca1_spooked == 30
goto_if_false @CASINO1_12669
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12609
305@ = 8

:CASINO1_12609
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12669
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12669
if 
  $ca1_spooked == 31
goto_if_false @CASINO1_12779
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12719
305@ = 9

:CASINO1_12719
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12779
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12779
if 
  $ca1_spooked == 32
goto_if_false @CASINO1_12889
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12829
305@ = 10

:CASINO1_12829
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12889
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12889
if 
  $ca1_spooked == 33
goto_if_false @CASINO1_12999
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12939
305@ = 11

:CASINO1_12939
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12999
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_12999
if 
  $ca1_spooked == 34
goto_if_false @CASINO1_13109
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13049
305@ = 12

:CASINO1_13049
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13109
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13109
if 
  $ca1_spooked == 35
goto_if_false @CASINO1_13219
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13159
305@ = 13

:CASINO1_13159
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13219
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13219
if 
  $ca1_spooked == 36
goto_if_false @CASINO1_13329
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13269
305@ = 14

:CASINO1_13269
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13329
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13329
if 
  $ca1_spooked == 37
goto_if_false @CASINO1_13439
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13379
305@ = 15

:CASINO1_13379
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13439
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13439
if 
  $ca1_spooked == 38
goto_if_false @CASINO1_13549
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13489
305@ = 16

:CASINO1_13489
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13549
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13549
if 
  $ca1_spooked == 39
goto_if_false @CASINO1_13659
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13599
305@ = 17

:CASINO1_13599
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13659
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13659
if 
  $ca1_spooked == 40
goto_if_false @CASINO1_13769
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13709
305@ = 18

:CASINO1_13709
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13769
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13769
if 
  $ca1_spooked == 41
goto_if_false @CASINO1_13879
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13819
305@ = 19

:CASINO1_13819
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13879
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13879
if 
  $ca1_spooked == 42
goto_if_false @CASINO1_13989
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13929
305@ = 20

:CASINO1_13929
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13989
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = get_game_timer 
98@ = 2

:CASINO1_13989
if 
  98@ == 2
goto_if_false @CASINO1_14054
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_14054
98@ = 0

:CASINO1_14054
if 
  98@ == 0
goto_if_false @CASINO1_14478
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 10000
goto_if_false @CASINO1_14478
if and
  $ca1_test >= 0
  34 > $ca1_test
goto_if_false @CASINO1_14234
$ca1_spooked = generate_random_int_in_range 28 {max} 32
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14234
if 
  32 > $ca1_spooked
goto_if_false @CASINO1_14209
$ca1_spooked += 1
goto @CASINO1_14234

:CASINO1_14209
if 
  $ca1_spooked > 28
goto_if_false @CASINO1_14234
$ca1_spooked -= 1

:CASINO1_14234
if and
  $ca1_test > 33
  67 > $ca1_test
goto_if_false @CASINO1_14356
$ca1_spooked = generate_random_int_in_range 33 {max} 37
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14356
if 
  37 > $ca1_spooked
goto_if_false @CASINO1_14331
$ca1_spooked += 1
goto @CASINO1_14356

:CASINO1_14331
if 
  $ca1_spooked > 33
goto_if_false @CASINO1_14356
$ca1_spooked -= 1

:CASINO1_14356
if and
  $ca1_test > 66
  100 > $ca1_test
goto_if_false @CASINO1_14478
$ca1_spooked = generate_random_int_in_range 38 {max} 42
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14478
if 
  42 > $ca1_spooked
goto_if_false @CASINO1_14453
$ca1_spooked += 1
goto @CASINO1_14478

:CASINO1_14453
if 
  $ca1_spooked > 38
goto_if_false @CASINO1_14478
$ca1_spooked -= 1

:CASINO1_14478
if 
  42@ == 1
goto_if_false @CASINO1_14651
if 
  98@ == 0
goto_if_false @CASINO1_14651
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14651
$ca1_spooked = generate_random_int_in_range 7 {max} 9
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14651
if 
  9 > $ca1_spooked
goto_if_false @CASINO1_14626
$ca1_spooked += 1
goto @CASINO1_14651

:CASINO1_14626
if 
  $ca1_spooked > 7
goto_if_false @CASINO1_14651
$ca1_spooked -= 1

:CASINO1_14651
if 
  43@ == 1
goto_if_false @CASINO1_14824
if 
  98@ == 0
goto_if_false @CASINO1_14824
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14824
$ca1_spooked = generate_random_int_in_range 14 {max} 16
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14824
if 
  16 > $ca1_spooked
goto_if_false @CASINO1_14799
$ca1_spooked += 1
goto @CASINO1_14824

:CASINO1_14799
if 
  $ca1_spooked > 14
goto_if_false @CASINO1_14824
$ca1_spooked -= 1

:CASINO1_14824
if or
  46@ == 2
  48@ == 1
goto_if_false @CASINO1_15004
if 
  98@ == 0
goto_if_false @CASINO1_15004
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15004
$ca1_spooked = generate_random_int_in_range 17 {max} 24
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15004
if 
  24 > $ca1_spooked
goto_if_false @CASINO1_14979
$ca1_spooked += 1
goto @CASINO1_15004

:CASINO1_14979
if 
  $ca1_spooked > 17
goto_if_false @CASINO1_15004
$ca1_spooked -= 1

:CASINO1_15004
if 
  is_car_on_fire 322@
goto_if_false @CASINO1_15175
if 
  98@ == 0
goto_if_false @CASINO1_15175
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15175
$ca1_spooked = generate_random_int_in_range 10 {max} 13
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15175
if 
  13 > $ca1_spooked
goto_if_false @CASINO1_15150
$ca1_spooked += 1
goto @CASINO1_15175

:CASINO1_15150
if 
  $ca1_spooked > 10
goto_if_false @CASINO1_15175
$ca1_spooked -= 1

:CASINO1_15175
if 
  is_car_upsidedown 322@
goto_if_false @CASINO1_15346
if 
  98@ == 0
goto_if_false @CASINO1_15346
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15346
$ca1_spooked = generate_random_int_in_range 25 {max} 27
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15346
if 
  27 > $ca1_spooked
goto_if_false @CASINO1_15321
$ca1_spooked += 1
goto @CASINO1_15346

:CASINO1_15321
if 
  $ca1_spooked > 25
goto_if_false @CASINO1_15346
$ca1_spooked -= 1

:CASINO1_15346
if 
  not is_char_dead 324@
goto_if_false @CASINO1_17351
if and
  $ca1_test >= 0
  34 > $ca1_test
goto_if_false @CASINO1_15988
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_15988
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_15535
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_15528
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 1

:CASINO1_15528
goto @CASINO1_15988

:CASINO1_15535
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_15648
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_15648
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15648
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_15761
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_15761
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15761
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_15872
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_15872
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15872
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_15988
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_15988
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 2

:CASINO1_15988
if and
  $ca1_test > 33
  67 > $ca1_test
goto_if_false @CASINO1_16718
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_16718
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_16161
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_16154
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 2

:CASINO1_16154
goto @CASINO1_16718

:CASINO1_16161
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_16274
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_16274
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16274
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_16387
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_16387
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16387
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_16498
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_16498
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16498
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_16609
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ > 1.0
goto_if_false @CASINO1_16609
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16609
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_16718
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_16718
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16718
if and
  $ca1_test > 66
  100 > $ca1_test
goto_if_false @CASINO1_17351
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_17351
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_16894
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ == 1.0
goto_if_false @CASINO1_16887
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 3

:CASINO1_16887
goto @CASINO1_17351

:CASINO1_16894
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_17008
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_17008
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17008
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_17122
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_17122
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17122
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_17234
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_17234
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17234
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_17351
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_17351
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 2

:CASINO1_17351
if 
  34@ > 3
goto_if_false @CASINO1_17570
if 
  47@ == 0
goto_if_false @CASINO1_17433
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
47@ = 1

:CASINO1_17433
if 
  47@ == 1
goto_if_false @CASINO1_17570
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_17570
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ == 1.0
goto_if_false @CASINO1_17570
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$d5_mission_plane_speed = 2

:CASINO1_17570
if 
  34@ == 4
goto_if_false @CASINO1_18500
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_18500
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_18229
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_17735
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17690
305@ = 49
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_17690
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17735
101@ = get_game_timer 

:CASINO1_17735
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_17842
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17797
305@ = 50
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_17797
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17842
101@ = get_game_timer 

:CASINO1_17842
if 
  $ca1_spooked == 2
goto_if_false @CASINO1_17949
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17904
305@ = 51
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_17904
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17949
101@ = get_game_timer 

:CASINO1_17949
if 
  $ca1_spooked == 3
goto_if_false @CASINO1_18056
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18011
305@ = 52
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_18011
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18056
101@ = get_game_timer 

:CASINO1_18056
if 
  $ca1_spooked == 4
goto_if_false @CASINO1_18163
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18118
305@ = 53
$ca1_spooked += 1
101@ = get_game_timer 

:CASINO1_18118
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18163
101@ = get_game_timer 

:CASINO1_18163
if 
  $ca1_spooked == 5
goto_if_false @CASINO1_18229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18229
print 'CAS1_03' {time} 7000 {flag} 1
$ca1_spooked += 1

:CASINO1_18229
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_18500
if 
  335@ == 1
goto_if_false @CASINO1_18321
if 
  locate_char_any_means_3d $scplayer {x} 1910.75 {y} 960.74 {z} 10.86 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CASINO1_18321
335@ = 2

:CASINO1_18321
if 
  locate_char_any_means_3d $scplayer {x} 79@ {y} 80@ {z} 81@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO1_18500
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO1_18500
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
if and
  not is_char_dead 324@
  not is_char_dead $scplayer
goto_if_false @CASINO1_18500
do_fade 300 {direction} Fade.Out

:CASINO1_18437
if 
  get_fading_status 
goto_if_false @CASINO1_18461
wait 0
goto @CASINO1_18437

:CASINO1_18461
clear_area 79@ {y} 80@ {z} 81@ {radius} 35.0 {clearParticles} True
gosub @CASINO1_379
34@ = 5
35@ = 0

:CASINO1_18500
if 
  34@ == 5
goto_if_false @CASINO1_19367
if and
  35@ > 0
  3 > 35@
goto_if_false @CASINO1_18580
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False

:CASINO1_18580
if 
  35@ == 0
goto_if_false @CASINO1_18824
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1907.11 {y} 953.0226 {z} 10.9148 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1906.713 {y} 953.9378 {z} 10.9839 {switchStyle} SwitchType.JumpCut
request_car_recording 179

:CASINO1_18686
if 
  not has_car_recording_been_loaded 179
goto_if_false @CASINO1_18713
wait 0
goto @CASINO1_18686

:CASINO1_18713
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
start_playback_recorded_car 322@ {path} 179
pause_playback_recorded_car 322@
do_fade 300 {direction} Fade.In

:CASINO1_18754
if 
  get_fading_status 
goto_if_false @CASINO1_18778
wait 0
goto @CASINO1_18754

:CASINO1_18778
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
task_leave_car $scplayer {vehicle} 322@
task_enter_car_as_driver 334@ {vehicle} 322@ {time} -1
35@ = 1

:CASINO1_18824
if 
  35@ == 1
goto_if_false @CASINO1_19131
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False
goto_if_false @CASINO1_18890

:CASINO1_18890
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_19131
if 
  is_char_on_foot $scplayer
goto_if_false @CASINO1_18974
97@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_18974
task_turn_char_to_face_char $scplayer {target} 334@
task_look_at_char $scplayer {target} 334@ {time} -2

:CASINO1_18974
if 
  is_char_in_car 334@ {vehicle} 322@
goto_if_false @CASINO1_19092
clear_look_at $scplayer
task_go_straight_to_coord $scplayer {x} 1900.7271 {y} 951.1921 {z} 9.8203 {speed} MoveState.Walk {time} -2
set_fixed_camera_position 1901.262 {y} 961.8007 {z} 11.2363 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1901.62 {y} 960.8673 {z} 11.2165 {switchStyle} SwitchType.JumpCut
unpause_playback_recorded_car 322@
35@ = 2
goto @CASINO1_19131

:CASINO1_19092
336@ = get_script_task_status 334@ {taskId} 1483
if 
  is_int_lvar_equal_to_constant 336@ == 7
goto_if_false @CASINO1_19131
task_enter_car_as_driver 334@ {vehicle} 322@ {time} -1

:CASINO1_19131
if 
  35@ == 2
goto_if_false @CASINO1_19193
if 
  not is_car_dead 322@
goto_if_false @CASINO1_19193
if 
  not is_playback_going_on_for_car 322@
goto_if_false @CASINO1_19193
53@ = get_game_timer 
35@ = 3

:CASINO1_19193
if 
  35@ == 3
goto_if_false @CASINO1_19295
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 1250
goto_if_false @CASINO1_19295
35@ = 4

:CASINO1_19295
if 
  35@ == 4
goto_if_false @CASINO1_19367
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.82 {z} 11.438
clear_char_tasks_immediately $scplayer
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
35@ = 5
goto @CASINO1_19542

:CASINO1_19367
if 
  34@ > -2
goto_if_false @CASINO1_19517
if 
  not is_char_dead 324@
goto_if_false @CASINO1_19460
325@ = get_char_health 324@
if 
  325@ == 0
goto_if_false @CASINO1_19460
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_19460
if 
  is_car_in_water 322@
goto_if_false @CASINO1_19517
$d5_mission_plane_speed = 999
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_19517
goto @CASINO1_4387

:CASINO1_19524
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO1_19542
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO1'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 10
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:CASINO1_19606
gosub @CASINO1_372
if 
  not is_char_dead 324@
goto_if_false @CASINO1_19637
task_dive_from_attachment_and_get_up 324@ {time} 10000

:CASINO1_19637
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.62 {z} 11.438
remove_blip 323@
remove_blip 50@
if 
  34@ == 5
goto_if_false @CASINO1_19700
delete_char 334@
delete_char 324@
delete_car 322@

:CASINO1_19700
mark_model_as_no_longer_needed 533
mark_model_as_no_longer_needed 118
unload_special_character 1
remove_animation "CAR"
remove_decision_maker 320@
set_first_person_in_car_camera_mode True
clear_onscreen_counter $ca1_test
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_19759
$flag_cas1_passed_1stime = 1

:CASINO1_19759
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 85---------------
// Originally: Explosive Situation

:CASINO2
script_name 'CASINO2'
gosub @CASINO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO2_38
gosub @CASINO2_16416

:CASINO2_38
gosub @CASINO2_16583
terminate_this_script 

:CASINO2_47
load_mission_text 'CASINO2'
$flag_car_normal_carmod = 1
$ca1_random_dialogue_last = 0
$c2_time_left = 0
set_fading_colour 0 {g} 0 {b} 0
138@ = 542.6064
144@ = 880.7817
150@ = -36.4105
139@ = 585.3983
145@ = 870.3217
151@ = -38.6206
140@ = 518.1696
146@ = 814.9295
152@ = -9.7489
141@ = 484.6667
147@ = 937.2839
153@ = -16.6201
142@ = 438.5849
148@ = 870.4443
154@ = -4.264
143@ = 455.1732
149@ = 803.1501
155@ = 5.3843
156@ = 561.1495
162@ = 875.8472
168@ = -37.2976
157@ = 585.9339
163@ = 851.1839
169@ = -36.1799
158@ = 464.2791
164@ = 860.6772
170@ = -17.3952
159@ = 443.1031
165@ = 902.137
171@ = -7.5636
160@ = 429.2553
166@ = 923.7551
172@ = 0.5245
161@ = 476.2539
167@ = 779.3841
173@ = 8.0929
register_mission_given 
$onmission = 1
53@ = load_char_decision_maker DecisionMakerType.Weak
127@ = load_char_decision_maker DecisionMakerType.Empty
252@ = load_char_decision_maker DecisionMakerType.Normal
78@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASINO2_547
if 
  get_fading_status 
goto_if_false @CASINO2_571
wait 0
goto @CASINO2_547

:CASINO2_571
load_cutscene 'CAS_2'

:CASINO2_582
if 
  not has_cutscene_loaded 
goto_if_false @CASINO2_606
wait 0
goto @CASINO2_582

:CASINO2_606
set_area_visible 11
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASINO2_627
if 
  not has_cutscene_finished 
goto_if_false @CASINO2_651
wait 0
goto @CASINO2_627

:CASINO2_651
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:CASINO2_665
if 
  get_fading_status 
goto_if_false @CASINO2_689
wait 0
goto @CASINO2_665

:CASINO2_689
clear_cutscene 
set_area_visible 0
suppress_car_model 406
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_814
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2028.932 {y} 1023.292 {z} 9.8127
clear_area 2028.932 {y} 1023.292 {z} 9.8127 {radius} 20.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2028.932 {y} 1023.292 {z} 9.8127
set_char_heading $scplayer {heading} 278.4092
set_camera_behind_player 
wait 500

:CASINO2_814
request_model 260

:CASINO2_819
if 
  not has_model_loaded 260
goto_if_false @CASINO2_846
wait 0
goto @CASINO2_819

:CASINO2_846
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
182@ = create_char PedType.CivMale {modelId} 260 {x} 819.707 {y} 857.8054 {z} 11.0547
set_char_heading 182@ {heading} 204.1414
set_char_decision_maker 182@ {handleOrTemplate} 53@
60@ = create_object #DES_QUARRYGATE2 {x} 806.5 {y} 846.9 {z} 8.6822
set_object_heading 60@ {heading} 0.0
61@ = create_object #DES_QUARRYGATE {x} 810.3 {y} 838.6 {z} 8.6822
set_object_heading 61@ {heading} 45.0
186@ = add_blip_for_coord 811.1817 {y} 843.9733 {z} 8.9859
print_now 'PD_16' {time} 8000 {flag} 1
191@ = create_object #GUNBOX {x} 600.8789 {y} 826.5641 {z} -44.2392
set_object_heading 191@ {heading} 131.8763
191@ = create_object #GUNBOX {x} 599.4742 {y} 827.0499 {z} -44.2844
set_object_heading 191@ {heading} 129.5516
191@ = create_object #GUNBOX {x} 600.8787 {y} 828.1313 {z} -44.271
set_object_heading 191@ {heading} 72.6773
191@ = create_object #GUNBOX {x} 671.1311 {y} 816.2497 {z} -43.9456
set_object_heading 191@ {heading} 280.6081
191@ = create_object #GUNBOX {x} 672.9714 {y} 817.7601 {z} -43.9456
set_object_heading 191@ {heading} 295.8181
191@ = create_object #GUNBOX {x} 673.1854 {y} 817.8634 {z} -43.9456
set_object_heading 191@ {heading} 295.8181
set_wanted_multiplier 0.0

:CASINO2_1218
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_1413
wait 0
gosub @CASINO2_18143
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO2_1267
goto @CASINO2_16434

:CASINO2_1267
if 
  locate_char_any_means_3d $scplayer {x} 811.1817 {y} 843.9733 {z} 8.9859 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO2_1406
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO2_1329
if 
  get_fading_status 
goto_if_false @CASINO2_1353
wait 0
goto @CASINO2_1329

:CASINO2_1353
remove_blip 186@
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_1399
83@ = store_car_char_is_in $scplayer
set_car_status 83@ {status} EntityStatus.Physics
set_car_temp_action 83@ {actionId} TempAction.HandbrakeTurnRight {time} 1500

:CASINO2_1399
goto @CASINO2_1425

:CASINO2_1406
goto @CASINO2_1218

:CASINO2_1413
wait 1000
goto @CASINO2_16416

:CASINO2_1425
84@ = 662.1465
88@ = 917.9582
92@ = -41.8491
96@ = 318.2808
85@ = 583.0025
89@ = 934.0627
93@ = -43.9531
97@ = 114.8609
86@ = 552.9266
90@ = 846.8138
94@ = -42.8758
98@ = 197.0568
87@ = 640.8603
91@ = 810.404
95@ = -43.9531
99@ = 250.0977
246@ = 2
262@ = 2
request_model 330
request_model 153
request_model 71
request_model 260
request_model 346
request_model 337
request_model 530
request_model 406

:CASINO2_1638
if 
  not has_model_loaded 330
goto_if_false @CASINO2_1665
wait 0
goto @CASINO2_1638

:CASINO2_1665
if or
  not has_model_loaded 153
  not has_model_loaded 71
  not has_model_loaded 260
  not has_model_loaded 346
goto_if_false @CASINO2_1706
wait 0
goto @CASINO2_1665

:CASINO2_1706
if or
  not has_model_loaded 337
  not has_model_loaded 530
  not has_model_loaded 406
goto_if_false @CASINO2_1743
wait 0
goto @CASINO2_1706

:CASINO2_1743
254@ = create_car 406 {x} 684.158 {y} 899.4011 {z} -41.382
set_car_heading 254@ {heading} 50.0
250@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 661.397 {y} 917.1706 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 250@ {state} True
close_sequence_task 250@
251@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 662.605 {y} 916.313 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 251@ {state} True
close_sequence_task 251@
215@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 661.397 {y} 917.1706 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 215@ {state} True
close_sequence_task 215@
212@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 590.1505 {y} 875.5482 {z} -43.4973 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 40000
set_sequence_to_repeat 212@ {state} True
close_sequence_task 212@
72@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 72@
59@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 416.7344 {y} 894.5847 {z} 1.64 {speed} MoveState.Run {vehicle} -1
close_sequence_task 59@
185@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 811.1705 {y} 840.3314 {z} 8.8556 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 835.0692 {y} 854.228 {z} 11.5339 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 831.1895 {y} 869.6328 {z} 11.7659 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 812.9305 {y} 865.5474 {z} 11.2512 {speed} MoveState.Walk {vehicle} -1
close_sequence_task 185@
217@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
set_sequence_to_repeat 217@ {state} True
close_sequence_task 217@
206@ = open_sequence_task 
flush_route 
extend_route 652.6294 {y} 920.1244 {z} -41.6245
extend_route 643.2743 {y} 944.6199 {z} -36.1984
extend_route 650.2857 {y} 948.2803 {z} -35.9383
extend_route 676.3673 {y} 939.0834 {z} -31.2018
extend_route 695.1881 {y} 918.9306 {z} -31.3478
extend_route 709.0739 {y} 891.5104 {z} -28.7325
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
extend_route 728.9528 {y} 889.2318 {z} -27.4689
extend_route 718.7523 {y} 918.5203 {z} -19.886
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 206@
55@ = open_sequence_task 
task_stand_still -1 {time} 4000
task_scratch_head -1
task_look_about -1 {time} 4000
set_sequence_to_repeat 55@ {state} True
close_sequence_task 55@
56@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 625.9337 {y} 831.7066 {z} -43.9531 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 629.7086 {y} 863.9051 {z} -43.9456 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 633.362 {y} 899.4764 {z} -43.8397 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
set_sequence_to_repeat 56@ {state} True
close_sequence_task 56@
57@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 531.6239 {y} 860.3109 {z} -43.6083 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 536.4184 {y} 852.4755 {z} -43.4897 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 548.7656 {y} 858.6099 {z} -43.83 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 544.7462 {y} 868.412 {z} -43.0847 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 57@ {state} True
close_sequence_task 57@
58@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 580.5311 {y} 830.0402 {z} -30.9456 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 570.5531 {y} 828.2956 {z} -26.8808 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 561.6993 {y} 826.1243 {z} -23.1406 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
set_sequence_to_repeat 58@ {state} True
close_sequence_task 58@
205@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 576.2826 {y} 880.9235 {z} -44.6488 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 575.4687 {y} 871.9396 {z} -44.6139 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 577.0265 {y} 862.7321 {z} -44.0826 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 584.0759 {y} 844.0593 {z} -43.4072 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 205@ {state} True
close_sequence_task 205@
211@ = open_sequence_task 
flush_route 
extend_route 473.5352 {y} 916.5417 {z} -19.6808
extend_route 467.0137 {y} 925.6787 {z} -19.4363
extend_route 476.3217 {y} 939.0852 {z} -17.1781
extend_route 493.3413 {y} 945.0632 {z} -16.4974
extend_route 508.5752 {y} 956.9808 {z} -15.2792
extend_route 493.3413 {y} 945.0632 {z} -16.4974
extend_route 476.3217 {y} 939.0852 {z} -17.1781
extend_route 467.0137 {y} 925.6787 {z} -19.4363
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
set_sequence_to_repeat 211@ {state} True
close_sequence_task 211@
221@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 420.7673 {y} 866.2073 {z} 5.7531 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 221@
222@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 413.9022 {y} 863.8785 {z} 7.0415 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 222@
198@ = create_char PedType.Mission1 {modelId} 153 {x} 590.366 {y} 876.7747 {z} -43.4973
set_char_heading 198@ {heading} 177.7406
set_char_decision_maker 198@ {handleOrTemplate} 252@
give_weapon_to_char 198@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 198@ {weaponType} WeaponType.Pistol
set_char_health 198@ {health} 200
set_char_max_health 198@ {maxHealth} 200
task_stay_in_same_place 198@ {state} True
task_use_mobile_phone 198@ {start} True
197@ = create_object #CJ_DYN_PLUNGE_1 {x} 591.2704 {y} 876.7986 {z} -43.4973
set_object_heading 197@ {heading} 270.0
187@ = create_car 530 {x} 640.8603 {y} 810.404 {z} -43.9531
set_car_heading 187@ {heading} 250.0977
control_movable_vehicle_part 187@ {range} 0.5
190@ = open_sequence_task 
if 
  not is_car_dead 187@
goto_if_false @CASINO2_3477
flush_route 
extend_route 667.7962 {y} 819.8148 {z} -43.9456
extend_route 655.5785 {y} 831.1092 {z} -43.9456
extend_route 643.8084 {y} 819.2715 {z} -43.9456
extend_route 605.1934 {y} 820.2333 {z} -44.0023
task_drive_point_route_advanced -1 {vehicle} 187@ {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route 608.6918 {y} 819.8881 {z} -43.9456
extend_route 643.8084 {y} 819.2715 {z} -43.9456
extend_route 655.5785 {y} 831.1092 {z} -43.9456
extend_route 667.7962 {y} 819.8148 {z} -43.9456
task_drive_point_route_advanced -1 {vehicle} 187@ {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
set_sequence_to_repeat 190@ {state} True

:CASINO2_3477
close_sequence_task 190@
43@ = create_char PedType.Mission1 {modelId} 260 {x} 625.9337 {y} 831.7066 {z} -43.9531
set_char_heading 43@ {heading} 156.9796
set_char_decision_maker 43@ {handleOrTemplate} 53@
perform_sequence_task 43@ {sequence} 56@
44@ = create_char PedType.Mission2 {modelId} 260 {x} 531.6239 {y} 860.3109 {z} -43.6083
set_char_heading 44@ {heading} 156.9796
set_char_decision_maker 44@ {handleOrTemplate} 78@
give_weapon_to_char 44@ {weaponType} WeaponType.Shovel {ammo} 30000
set_current_char_weapon 44@ {weaponType} WeaponType.Shovel
perform_sequence_task 44@ {sequence} 57@
45@ = create_char PedType.Mission1 {modelId} 260 {x} 637.8237 {y} 825.2736 {z} -41.2744
set_char_heading 45@ {heading} 309.4228
set_char_decision_maker 45@ {handleOrTemplate} 53@
46@ = create_char PedType.Mission1 {modelId} 260 {x} 638.5316 {y} 826.1287 {z} -41.2291
set_char_heading 46@ {heading} 144.6359
set_char_decision_maker 46@ {handleOrTemplate} 53@
47@ = create_char PedType.Mission1 {modelId} 260 {x} 583.0614 {y} 849.4081 {z} -43.5974
set_char_heading 47@ {heading} 26.0656
set_char_decision_maker 47@ {handleOrTemplate} 53@
perform_sequence_task 47@ {sequence} 205@
49@ = create_char PedType.Mission2 {modelId} 71 {x} 491.5784 {y} 940.8132 {z} -17.1478
give_weapon_to_char 49@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 49@ {weaponType} WeaponType.Pistol
set_char_heading 49@ {heading} 279.9455
set_char_decision_maker 49@ {handleOrTemplate} 78@
perform_sequence_task 49@ {sequence} 211@
50@ = create_char PedType.Mission2 {modelId} 71 {x} 590.1505 {y} 875.5482 {z} -43.4973
set_char_heading 50@ {heading} 278.2997
set_char_decision_maker 50@ {handleOrTemplate} 78@
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 50@ {weaponType} WeaponType.Pistol
perform_sequence_task 50@ {sequence} 212@
51@ = create_char PedType.Mission1 {modelId} 260 {x} 655.8689 {y} 904.3282 {z} -42.0397
set_char_heading 51@ {heading} 330.4476
set_char_decision_maker 51@ {handleOrTemplate} 53@
52@ = create_char PedType.Mission1 {modelId} 260 {x} 654.8843 {y} 906.4748 {z} -42.0822
set_char_heading 52@ {heading} 324.192
give_weapon_to_char 52@ {weaponType} WeaponType.Shovel {ammo} 30000
set_current_char_weapon 52@ {weaponType} WeaponType.Shovel
set_char_decision_maker 52@ {handleOrTemplate} 53@
35@ = 0

:CASINO2_3982
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_4016
set_sense_range 43@(35@,10i) {range} 15.0

:CASINO2_4016
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_3982
if 
  not is_car_dead 187@
goto_if_false @CASINO2_4082
183@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 260
set_char_decision_maker 183@ {handleOrTemplate} 53@
perform_sequence_task 183@ {sequence} 190@

:CASINO2_4082
set_camera_behind_player 
35@ = 0

:CASINO2_4091
create_object_no_offset #DYNAMITE {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 109@(35@,4i)
set_object_proofs 109@(35@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
create_object_no_offset #DYNO_BOX_A {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 121@(35@,4i)
set_object_collision 109@(35@,4i) {state} False
set_object_heading 121@(35@,4i) {heading} 96@(35@,4f)
create_object_no_offset #DYNO_BOX_B {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 113@(35@,4i)
set_object_heading 113@(35@,4i) {heading} 96@(35@,4f)
add_blip_for_object 109@(35@,4i) {var_handle} 101@(35@,4i)
change_blip_display 101@(35@,4i) {display} BlipDisplay.Both
make_object_targettable 113@(35@,4i) {state} False
make_object_targettable 109@(35@,4i) {state} False
make_object_targettable 121@(35@,4i) {state} False
set_object_health 113@(35@,4i) {health} 1000
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_4091
attach_object_to_object 112@ {handle} 116@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.4 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_object 124@ {handle} 116@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 116@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.8 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
77@ = create_object #PRIVATESIGN3 {x} 470.3749 {y} 965.7881 {z} 4.5134
set_object_heading 77@ {heading} 311.2527
76@ = create_object #PRIVATESIGN1 {x} 546.1226 {y} 879.7054 {z} -42.1212
set_object_heading 76@ {heading} 76.924
132@ = add_blip_for_coord 542.6064 {y} 880.7817 {z} -36.3928
change_blip_display 132@ {display} BlipDisplay.Neither
133@ = add_blip_for_coord 585.3983 {y} 870.3217 {z} -39.4206
change_blip_display 133@ {display} BlipDisplay.Neither
134@ = add_blip_for_coord 518.1917 {y} 814.9812 {z} -9.7609
change_blip_display 134@ {display} BlipDisplay.Neither
135@ = add_blip_for_coord 479.1757 {y} 930.0793 {z} -16.6475
change_blip_display 135@ {display} BlipDisplay.Neither
136@ = add_blip_for_coord 437.9441 {y} 869.2394 {z} -4.0196
change_blip_display 136@ {display} BlipDisplay.Neither
137@ = add_blip_for_coord 455.1732 {y} 803.1501 {z} 5.3872
change_blip_display 137@ {display} BlipDisplay.Neither
204@ = add_blip_for_coord 1030.157 {y} 744.3469 {z} 9.7922
change_blip_display 204@ {display} BlipDisplay.Neither
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_4771
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_4771
83@ = store_car_char_is_in $scplayer
set_car_status 83@ {status} EntityStatus.Physics
set_car_temp_action 83@ {actionId} TempAction.HandbrakeTurnRight {time} 1500

:CASINO2_4771
gosub @CASINO2_18027
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_4921
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_4867
set_car_coordinates 83@ {x} 777.9584 {y} 838.6478 {z} 4.861
set_car_heading 83@ {heading} 0.0
warp_char_from_car_to_coord $scplayer {x} 774.3173 {y} 835.658 {z} 4.8819
goto @CASINO2_4887

:CASINO2_4867
set_char_coordinates $scplayer {x} 775.5965 {y} 834.8624 {z} 4.8713

:CASINO2_4887
task_go_to_coord_any_means $scplayer {x} 771.6103 {y} 836.6703 {z} 4.8969 {speed} MoveState.Walk {vehicle} -1
set_char_heading $scplayer {heading} 87.4579

:CASINO2_4921
load_scene_in_direction 773.9383 {y} 834.7843 {z} 4.8835 {heading} 74.4105
set_fixed_camera_position 776.3613 {y} 837.3477 {z} 7.3533 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 775.4211 {y} 837.4819 {z} 7.0403 {switchStyle} SwitchType.JumpCut
wait 500
gosub @CASINO2_18110
print_now 'PD_01' {time} 4500 {flag} 1
TIMERA = 0

:CASINO2_5029
if 
  4500 > TIMERA
goto_if_false @CASINO2_5083
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5076
goto @CASINO2_5639

:CASINO2_5076
goto @CASINO2_5029

:CASINO2_5083
load_scene_in_direction 610.9529 {y} 869.6495 {z} -40.7211 {heading} 77.0
set_fixed_camera_position 610.9529 {y} 869.6495 {z} -40.7211 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 610.0316 {y} 870.0207 {z} -40.8371 {switchStyle} SwitchType.JumpCut
print_now 'PD_20' {time} 5000 {flag} 1
TIMERA = 0

:CASINO2_5179
if 
  2000 > TIMERA
goto_if_false @CASINO2_5233
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5226
goto @CASINO2_5639

:CASINO2_5226
goto @CASINO2_5179

:CASINO2_5233
if and
  not is_char_dead 51@
  not is_char_dead 52@
goto_if_false @CASINO2_5270
perform_sequence_task 51@ {sequence} 251@
perform_sequence_task 52@ {sequence} 250@

:CASINO2_5270
TIMERA = 0

:CASINO2_5277
if 
  3000 > TIMERA
goto_if_false @CASINO2_5331
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5324
goto @CASINO2_5639

:CASINO2_5324
goto @CASINO2_5277

:CASINO2_5331
set_fixed_camera_position 664.9276 {y} 918.5754 {z} -40.8955 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 663.9788 {y} 918.2599 {z} -40.9078 {switchStyle} SwitchType.JumpCut
print_now 'PD_21' {time} 4000 {flag} 1
if 
  not is_char_dead 46@
goto_if_false @CASINO2_5450
task_play_anim 46@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_5450
TIMERA = 0

:CASINO2_5457
if 
  4000 > TIMERA
goto_if_false @CASINO2_5511
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5504
goto @CASINO2_5639

:CASINO2_5504
goto @CASINO2_5457

:CASINO2_5511
set_fixed_camera_position 661.5589 {y} 921.2776 {z} -40.5538 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 661.9819 {y} 920.3747 {z} -40.6291 {switchStyle} SwitchType.JumpCut
print_now 'PD_27' {time} 6000 {flag} 1
TIMERA = 0

:CASINO2_5585
if 
  6000 > TIMERA
goto_if_false @CASINO2_5639
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5632
goto @CASINO2_5639

:CASINO2_5632
goto @CASINO2_5585

:CASINO2_5639
if and
  not is_char_dead 51@
  not is_char_dead 52@
goto_if_false @CASINO2_5676
perform_sequence_task 51@ {sequence} 251@
perform_sequence_task 52@ {sequence} 250@

:CASINO2_5676
if 
  not is_char_dead 46@
goto_if_false @CASINO2_5728
task_play_anim 46@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_5728
gosub @CASINO2_18075
gosub @CASINO2_18049
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_5793
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 775.4108 {y} 834.5572 {z} 4.8721
set_char_heading $scplayer {heading} 93.2533

:CASINO2_5793
gosub @CASINO2_18110
clear_prints 
$ca1_random_dialogue_last = 150000
display_onscreen_timer_with_string $ca1_random_dialogue_last {direction} TimerDirection.Down {text} 'PD_25'
goto @CASINO2_8497

:CASINO2_5835
request_model 117
request_model 410
request_animation "CARRY"

:CASINO2_5853
if or
  not has_model_loaded 117
  not has_model_loaded 410
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_5893
wait 0
goto @CASINO2_5853

:CASINO2_5893
48@ = create_char PedType.Mission2 {modelId} 71 {x} 580.5311 {y} 830.0402 {z} -30.9456
set_char_heading 48@ {heading} 57.3299
set_char_decision_maker 48@ {handleOrTemplate} 78@
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 48@ {weaponType} WeaponType.Pistol
perform_sequence_task 48@ {sequence} 58@
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
freeze_car_position 223@ {state} True
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
set_char_suffers_critical_hits 224@ {state} False
set_char_never_targetted 224@ {state} True
set_char_only_damaged_by_player 224@ {state} True
set_char_decision_maker 224@ {handleOrTemplate} 127@
request_model 428
request_model 349

:CASINO2_6109
if or
  not has_model_loaded 428
  not has_model_loaded 349
goto_if_false @CASINO2_6141
wait 0
goto @CASINO2_6109

:CASINO2_6141
clear_area 812.6123 {y} 845.2352 {z} 9.1419 {radius} 20.0 {clearParticles} True
73@ = create_car 428 {x} 812.6123 {y} 845.2352 {z} 9.1419
set_car_heading 73@ {heading} 101.1888
74@ = create_car 428 {x} 812.4752 {y} 840.8808 {z} 8.9765
set_car_heading 74@ {heading} 101.8471
75@ = create_car 428 {x} 422.5194 {y} 856.283 {z} 6.1078
set_car_heading 75@ {heading} 33.0215
62@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 71
63@ = create_char_as_passenger 73@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
64@ = create_char_inside_car 74@ {pedType} PedType.Mission2 {modelId} 71
65@ = create_char_as_passenger 74@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
35@ = 0

:CASINO2_6323
give_weapon_to_char 62@(35@,10i) {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 62@(35@,10i) {weaponType} WeaponType.Shotgun
set_char_decision_maker 62@(35@,10i) {handleOrTemplate} 78@
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_6323
clear_area 783.6387 {y} 841.395 {z} 4.8177 {radius} 20.0 {clearParticles} True
task_car_drive_to_coord 62@ {vehicle} 73@ {x} 783.6387 {y} 841.395 {z} 4.8177 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord 64@ {vehicle} 74@ {x} 781.6849 {y} 833.6969 {z} 4.8296 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
131@ = 1
clear_prints 
gosub @CASINO2_18075
35@ = 0

:CASINO2_6496
if and
  35@ <> 5
  35@ <> 6
  35@ <> 7
goto_if_false @CASINO2_6557
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_6557
delete_char 43@(35@,10i)

:CASINO2_6557
if 
  35@ == 7
goto_if_false @CASINO2_6616
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_6616
clear_char_tasks_immediately 43@(35@,10i)
task_kill_char_on_foot 43@(35@,10i) {target} $scplayer

:CASINO2_6616
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_6496
if 
  not is_char_dead 182@
goto_if_false @CASINO2_6658
delete_char 182@

:CASINO2_6658
if 
  not is_char_dead 183@
goto_if_false @CASINO2_6679
delete_char 183@

:CASINO2_6679
if 
  not is_char_dead 198@
goto_if_false @CASINO2_6700
delete_char 198@

:CASINO2_6700
request_model 468

:CASINO2_6705
if 
  not has_model_loaded 468
goto_if_false @CASINO2_6732
wait 0
goto @CASINO2_6705

:CASINO2_6732
82@ = create_car 468 {x} 583.0051 {y} 881.9482 {z} -45.0648
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 93.6785
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 10.0 {clearParticles} True
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 10.0 {clearParticles} True
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
gosub @CASINO2_18027
force_weather_now WeatherType.SandstormDesert
set_fixed_camera_position 772.3265 {y} 828.7196 {z} 5.8497 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 773.1074 {y} 829.3431 {z} 5.8867 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_6911
if 
  2000 > TIMERA
goto_if_false @CASINO2_6965
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_6958
goto @CASINO2_7851

:CASINO2_6958
goto @CASINO2_6911

:CASINO2_6965
set_fixed_camera_position 772.3265 {y} 828.7196 {z} 5.8497 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 773.1074 {y} 829.3431 {z} 5.8867 {switchStyle} SwitchType.JumpCut
print_now 'PD_10' {time} 3500 {flag} 1
TIMERA = 0

:CASINO2_7039
if 
  1000 > TIMERA
goto_if_false @CASINO2_7093
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7086
goto @CASINO2_7851

:CASINO2_7086
goto @CASINO2_7039

:CASINO2_7093
if 
  not is_car_dead 74@
goto_if_false @CASINO2_7114
task_everyone_leave_car 74@

:CASINO2_7114
TIMERA = 0

:CASINO2_7121
if 
  500 > TIMERA
goto_if_false @CASINO2_7175
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7168
goto @CASINO2_7851

:CASINO2_7168
goto @CASINO2_7121

:CASINO2_7175
if 
  not is_car_dead 73@
goto_if_false @CASINO2_7196
task_everyone_leave_car 73@

:CASINO2_7196
TIMERA = 0

:CASINO2_7203
if 
  2000 > TIMERA
goto_if_false @CASINO2_7257
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7250
goto @CASINO2_7851

:CASINO2_7250
goto @CASINO2_7203

:CASINO2_7257
set_fixed_camera_position 587.0494 {y} 883.9788 {z} -44.1279 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 586.0945 {y} 883.6844 {z} -44.1663 {switchStyle} SwitchType.JumpCut
print_now 'PD_11' {time} 4000 {flag} 1
TIMERA = 0

:CASINO2_7331
if 
  4000 > TIMERA
goto_if_false @CASINO2_7385
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7378
goto @CASINO2_7851

:CASINO2_7378
goto @CASINO2_7331

:CASINO2_7385
set_fixed_camera_position 560.5041 {y} 888.881 {z} -42.2954 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 559.5857 {y} 888.5298 {z} -42.1132 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO2_7443
if 
  100 > TIMERA
goto_if_false @CASINO2_7496
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7489
goto @CASINO2_7851

:CASINO2_7489
goto @CASINO2_7443

:CASINO2_7496
set_interpolation_parameters 0.0 {time} 5000
set_fixed_camera_position 560.5041 {y} 888.881 {z} -42.2954 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 561.1447 {y} 888.1351 {z} -42.1132 {switchStyle} SwitchType.Interpolation
TIMERA = 0

:CASINO2_7564
if 
  5000 > TIMERA
goto_if_false @CASINO2_7618
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7611
goto @CASINO2_7851

:CASINO2_7611
goto @CASINO2_7564

:CASINO2_7618
set_fixed_camera_position 584.2947 {y} 833.9013 {z} -23.7385 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 583.8419 {y} 833.3374 {z} -24.4291 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO2_7676
if 
  100 > TIMERA
goto_if_false @CASINO2_7729
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7722
goto @CASINO2_7851

:CASINO2_7722
goto @CASINO2_7676

:CASINO2_7729
set_interpolation_parameters 0.0 {time} 4000
set_fixed_camera_position 584.2947 {y} 833.9013 {z} -23.7385 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 583.3537 {y} 833.6394 {z} -23.5241 {switchStyle} SwitchType.Interpolation
TIMERA = 0

:CASINO2_7797
if 
  4000 > TIMERA
goto_if_false @CASINO2_7851
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7844
goto @CASINO2_7851

:CASINO2_7844
goto @CASINO2_7797

:CASINO2_7851
gosub @CASINO2_18075
clear_prints 
gosub @CASINO2_18049
gosub @CASINO2_18110
set_object_heading 60@ {heading} 115.0
set_object_heading 61@ {heading} -65.0
if 
  not is_car_dead 73@
goto_if_false @CASINO2_7930
set_car_coordinates 73@ {x} 783.6387 {y} 841.395 {z} 4.8177

:CASINO2_7930
if 
  not is_car_dead 74@
goto_if_false @CASINO2_7966
set_car_coordinates 74@ {x} 781.6849 {y} 833.6969 {z} 4.8296

:CASINO2_7966
131@ = 1
125@ = create_object_no_offset #BARRIER_4ANDY {x} 783.3699 {y} 847.4722 {z} 4.8193
set_object_heading 125@ {heading} 10.654
125@ = create_object_no_offset #BARRIER_4ANDY {x} 778.0906 {y} 847.8346 {z} 4.8515
set_object_heading 125@ {heading} 10.5331
if 
  not is_char_dead 62@
goto_if_false @CASINO2_8138
if 
  not is_char_in_any_car 62@
goto_if_false @CASINO2_8108
set_char_coordinates 62@ {x} 781.9483 {y} 848.7029 {z} 4.828
set_char_heading 62@ {heading} 20.7251
goto @CASINO2_8138

:CASINO2_8108
warp_char_from_car_to_coord 62@ {x} 781.9483 {y} 848.7029 {z} 4.828
set_char_heading 62@ {heading} 20.7251

:CASINO2_8138
if 
  not is_char_dead 63@
goto_if_false @CASINO2_8237
if 
  not is_char_in_any_car 63@
goto_if_false @CASINO2_8207
set_char_coordinates 63@ {x} 777.5142 {y} 849.4856 {z} 4.8551
set_char_heading 63@ {heading} 22.0536
goto @CASINO2_8237

:CASINO2_8207
warp_char_from_car_to_coord 63@ {x} 777.5142 {y} 849.4856 {z} 4.8551
set_char_heading 63@ {heading} 22.0536

:CASINO2_8237
if 
  not is_char_dead 64@
goto_if_false @CASINO2_8336
if 
  not is_char_in_any_car 64@
goto_if_false @CASINO2_8306
set_char_coordinates 64@ {x} 773.2135 {y} 821.8822 {z} 4.3934
set_char_heading 64@ {heading} 168.8133
goto @CASINO2_8336

:CASINO2_8306
warp_char_from_car_to_coord 64@ {x} 773.2135 {y} 821.8822 {z} 4.3934
set_char_heading 64@ {heading} 168.8133

:CASINO2_8336
if 
  not is_char_dead 65@
goto_if_false @CASINO2_8435
if 
  not is_char_in_any_car 65@
goto_if_false @CASINO2_8405
set_char_coordinates 65@ {x} 778.8481 {y} 819.9525 {z} 4.3237
set_char_heading 65@ {heading} 156.0701
goto @CASINO2_8435

:CASINO2_8405
warp_char_from_car_to_coord 65@ {x} 778.8481 {y} 819.9525 {z} 4.3237
set_char_heading 65@ {heading} 156.0701

:CASINO2_8435
35@ = 0

:CASINO2_8442
if 
  not is_char_dead 62@(35@,10i)
goto_if_false @CASINO2_8474
perform_sequence_task 62@(35@,10i) {sequence} 72@

:CASINO2_8474
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_8442
return 

:CASINO2_8497
TIMERB = 0
clear_prints 
print_now 'PD_26' {time} 7000 {flag} 1

:CASINO2_8522
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15987
wait 0
256@ += 1
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CASINO2_8571
goto @CASINO2_16434

:CASINO2_8571
gosub @CASINO2_18143
gosub @CASINO2_20337
gosub @CASINO2_20465
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_8622
218@, 219@, 220@ = get_char_coordinates $scplayer

:CASINO2_8622
gosub @CASINO2_17887
if and
  22000 >= $ca1_random_dialogue_last
  234@ == 0
goto_if_false @CASINO2_8695
if 
  257@ == 1
goto_if_false @CASINO2_8688
set_lvar_int_to_constant 261@ = 32600
gosub @CASINO2_20445

:CASINO2_8688
234@ = 1

:CASINO2_8695
if and
  20000 >= $ca1_random_dialogue_last
  234@ == 1
goto_if_false @CASINO2_8777
if 
  257@ == 1
goto_if_false @CASINO2_8770
set_lvar_text_label 264@s = 'CAS2_BA'
set_lvar_int_to_constant 247@ = 42000
gosub @CASINO2_20317

:CASINO2_8770
234@ = 2

:CASINO2_8777
if and
  6000 >= $ca1_random_dialogue_last
  234@ == 2
goto_if_false @CASINO2_8859
if 
  257@ == 1
goto_if_false @CASINO2_8852
set_lvar_text_label 264@s = 'CAS2_BB'
set_lvar_int_to_constant 247@ = 42001
gosub @CASINO2_20317

:CASINO2_8852
234@ = 3

:CASINO2_8859
if and
  3800 >= $ca1_random_dialogue_last
  234@ == 3
goto_if_false @CASINO2_8941
if 
  257@ == 1
goto_if_false @CASINO2_8934
set_lvar_text_label 264@s = 'CAS2_BC'
set_lvar_int_to_constant 247@ = 42002
gosub @CASINO2_20317

:CASINO2_8934
234@ = 4

:CASINO2_8941
if and
  2800 >= $ca1_random_dialogue_last
  234@ == 4
goto_if_false @CASINO2_9023
if 
  257@ == 1
goto_if_false @CASINO2_9016
set_lvar_text_label 264@s = 'CAS2_BD'
set_lvar_int_to_constant 247@ = 42003
gosub @CASINO2_20317

:CASINO2_9016
234@ = 5

:CASINO2_9023
if and
  is_car_dead 254@
  81@ == 0
goto_if_false @CASINO2_9069
print_now 'PD_33' {time} 4000 {flag} 1
goto @CASINO2_16416

:CASINO2_9069
if and
  not is_char_dead 198@
  not is_char_dead $scplayer
goto_if_false @CASINO2_9132
if and
  is_char_shooting 198@
  259@ == 0
goto_if_false @CASINO2_9132
clear_char_tasks_immediately 198@
task_use_mobile_phone 198@ {start} False
259@ = 1

:CASINO2_9132
if and
  1800 >= $ca1_random_dialogue_last
  not is_char_dead 198@
goto_if_false @CASINO2_9560
if 
  257@ == 1
goto_if_false @CASINO2_9537
gosub @CASINO2_18027
clear_help 
clear_prints 
set_fixed_camera_position 586.0814 {y} 876.6778 {z} -41.6123 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 587.0665 {y} 876.6669 {z} -41.7839 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42004
request_animation "MISC"

:CASINO2_9257
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_animation_loaded "MISC"
goto_if_false @CASINO2_9291
wait 0
goto @CASINO2_9257

:CASINO2_9291
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS2_BE' {time} 2000 {flag} 1
wait 1000
TIMERA = 0

:CASINO2_9323
if 
  1000 > TIMERA
goto_if_false @CASINO2_9377
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_9370
goto @CASINO2_9515

:CASINO2_9370
goto @CASINO2_9323

:CASINO2_9377
if 
  not is_char_dead 198@
goto_if_false @CASINO2_9454
clear_char_tasks_immediately 198@
set_char_decision_maker 198@ {handleOrTemplate} 53@
set_char_heading 198@ {heading} 270.0
task_play_anim 198@ {animationName} "PLUNGER_01" {animationFile} "MISC" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_9454
TIMERA = 0

:CASINO2_9461
if 
  2000 > TIMERA
goto_if_false @CASINO2_9515
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_9508
goto @CASINO2_9515

:CASINO2_9508
goto @CASINO2_9461

:CASINO2_9515
remove_animation "MISC"
gosub @CASINO2_17062
gosub @CASINO2_18049

:CASINO2_9537
print_now 'PD_19' {time} 4000 {flag} 1
goto @CASINO2_16416

:CASINO2_9560
if and
  is_char_dead 198@
  189@ == 0
goto_if_false @CASINO2_9595
clear_onscreen_timer $ca1_random_dialogue_last
189@ = 1

:CASINO2_9595
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_9635
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_9635
193@ = store_car_char_is_in $scplayer

:CASINO2_9635
if and
  not is_car_dead 193@
  not is_car_dead 187@
  196@ == 1
goto_if_false @CASINO2_9991
if and
  has_car_been_damaged_by_car 187@ {other} 193@
  194@ == 0
goto_if_false @CASINO2_9991
194@ = 1
if 
  not is_car_dead 187@
goto_if_false @CASINO2_9826
if 
  does_object_exist 124@
goto_if_false @CASINO2_9735
set_object_collision 124@ {state} False

:CASINO2_9735
if 
  does_object_exist 112@
goto_if_false @CASINO2_9803
set_object_collision 112@ {state} False
detach_object 112@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 112@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.4

:CASINO2_9803
if 
  does_object_exist 116@
goto_if_false @CASINO2_9826
set_object_collision 116@ {state} False

:CASINO2_9826
break_object 116@ {intensity} 1
delete_object 124@
set_lvar_float_to_lvar_float 100@ = 95@
100@ += 0.3
change_blip_colour 104@ {color} BlipColor.Red
213@ = create_fx_system "EXPLOSION_CRATE" {x} 87@ {y} 91@ {z} 95@ {ignoreBoundingChecks} True
report_mission_audio_event_at_object 116@ {soundId} ScriptSound.SoundExplosion
play_and_kill_fx_system 213@
120@ = 1
36@ = 2
126@ += 1
if and
  not is_char_dead 183@
  not is_car_dead 187@
goto_if_false @CASINO2_9991
if and
  is_char_in_car 183@ {vehicle} 187@
  not is_car_dead 187@
goto_if_false @CASINO2_9991
task_leave_car 183@ {vehicle} 187@
task_kill_char_on_foot 183@ {target} $scplayer

:CASINO2_9991
if and
  not locate_char_any_means_3d $scplayer {x} 429.469 {y} 916.0814 {z} 0.9027 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  227@ == 0
goto_if_false @CASINO2_10171
66@ = create_char PedType.Mission2 {modelId} 71 {x} 416.5302 {y} 862.1686 {z} 6.7328
set_char_heading 66@ {heading} 357.0781
give_weapon_to_char 66@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 66@ {weaponType} WeaponType.Pistol
perform_sequence_task 66@ {sequence} 217@
67@ = create_char PedType.Mission2 {modelId} 71 {x} 423.9201 {y} 861.7891 {z} 5.5413
set_char_heading 67@ {heading} 352.4637
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 67@ {weaponType} WeaponType.Pistol
perform_sequence_task 67@ {sequence} 217@
227@ = 1

:CASINO2_10171
if 
  does_object_exist 112@
goto_if_false @CASINO2_10201
87@, 91@, 95@ = get_object_coordinates 112@

:CASINO2_10201
if and
  is_char_in_model $scplayer {modelId} 530
  188@ <> 2
  120@ <> 1
goto_if_false @CASINO2_10308
print_help_forever 'PD_17'
$car = store_car_char_is_in $scplayer
if 
  does_object_exist 124@
goto_if_false @CASINO2_10269

:CASINO2_10269
if 
  does_object_exist 112@
goto_if_false @CASINO2_10285

:CASINO2_10285
if 
  does_object_exist 116@
goto_if_false @CASINO2_10301

:CASINO2_10301
goto @CASINO2_10376

:CASINO2_10308
if 
  does_object_exist 124@
goto_if_false @CASINO2_10324

:CASINO2_10324
if 
  does_object_exist 112@
goto_if_false @CASINO2_10340

:CASINO2_10340
if 
  does_object_exist 116@
goto_if_false @CASINO2_10356

:CASINO2_10356
if 
  79@ <> 4
goto_if_false @CASINO2_10376
clear_help 

:CASINO2_10376
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_10507
35@ = 0

:CASINO2_10410
if 
  does_object_exist 113@(35@,4i)
goto_if_false @CASINO2_10441
set_object_collision 113@(35@,4i) {state} False

:CASINO2_10441
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_10472
set_object_collision 121@(35@,4i) {state} False

:CASINO2_10472
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10410
196@ = 1
goto @CASINO2_10604

:CASINO2_10507
35@ = 0

:CASINO2_10514
if 
  does_object_exist 113@(35@,4i)
goto_if_false @CASINO2_10545
set_object_collision 113@(35@,4i) {state} True

:CASINO2_10545
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_10576
set_object_collision 121@(35@,4i) {state} True

:CASINO2_10576
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10514
196@ = 0

:CASINO2_10604
35@ = 0

:CASINO2_10611
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_11135
231@, 232@, 233@ = get_char_coordinates 43@(35@,10i)
if 
  locate_char_any_means_3d $scplayer {x} 231@ {y} 232@ {z} 233@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_11135
if and
  129@ == 0
  256@ > 300
  131@ == 0
goto_if_false @CASINO2_11110
if 
  not is_message_being_displayed 
goto_if_false @CASINO2_11110
249@ = 0

:CASINO2_10744
130@ = generate_random_int_in_range 0 {max} 6
if 
  is_int_lvar_equal_to_int_lvar 130@ == 248@
goto_if_false @CASINO2_10804
249@ += 1
if 
  5 > 249@
goto_if_false @CASINO2_10804
goto @CASINO2_10744

:CASINO2_10804
switch_start 130@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO2_11095 {caseNum1} 0 {caseLabel1} @CASINO2_10867 {caseNum2} 1 {caseLabel2} @CASINO2_10905 {caseNum3} 2 {caseLabel3} @CASINO2_10943 {caseNum4} 3 {caseLabel4} @CASINO2_10981 {caseNum5} 4 {caseLabel5} @CASINO2_11019 {caseNum6} 5 {caseLabel6} @CASINO2_11057 {caseNum7} -1 {caseLabel7} @CASINO2_11095

:CASINO2_10867
set_lvar_text_label 264@s = 'CAS2_AA'
set_lvar_int_to_constant 247@ = 42005
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10905
set_lvar_text_label 264@s = 'CAS2_AB'
set_lvar_int_to_constant 247@ = 42006
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10943
set_lvar_text_label 264@s = 'CAS2_AC'
set_lvar_int_to_constant 247@ = 42007
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10981
set_lvar_text_label 264@s = 'CAS2_AJ'
set_lvar_int_to_constant 247@ = 42014
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11019
set_lvar_text_label 264@s = 'CAS2_AK'
set_lvar_int_to_constant 247@ = 42015
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11057
set_lvar_text_label 264@s = 'CAS2_AL'
set_lvar_int_to_constant 247@ = 42016
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11095
set_lvar_int_to_lvar_int 248@ = 130@
256@ = 0

:CASINO2_11110
if 
  128@ == 0
goto_if_false @CASINO2_11135
128@ = 1

:CASINO2_11135
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_10611
35@ = 0

:CASINO2_11163
if and
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  128@ == 1
  36@ == 2
goto_if_false @CASINO2_11414
if 
  not is_message_being_displayed 
goto_if_false @CASINO2_11414
130@ = generate_random_int_in_range 0 {max} 3
if 
  130@ == 0
goto_if_false @CASINO2_11302
set_lvar_text_label 264@s = 'CAS2_AD'
set_lvar_int_to_constant 247@ = 42008
gosub @CASINO2_20317

:CASINO2_11302
if 
  130@ == 1
goto_if_false @CASINO2_11351
set_lvar_text_label 264@s = 'CAS2_AE'
set_lvar_int_to_constant 247@ = 42009
gosub @CASINO2_20317

:CASINO2_11351
if 
  130@ == 2
goto_if_false @CASINO2_11400
set_lvar_text_label 264@s = 'CAS2_AF'
set_lvar_int_to_constant 247@ = 42010
gosub @CASINO2_20317

:CASINO2_11400
128@ = 2
TIMERB = 0

:CASINO2_11414
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_12044
if 
  does_object_exist 112@
goto_if_false @CASINO2_11466
87@, 91@, 95@ = get_object_coordinates 112@

:CASINO2_11466
if and
  locate_char_in_car_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  117@(35@,4i) == 0
goto_if_false @CASINO2_11933
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_11933
if and
  35@ == 3
  not is_car_dead 187@
  not is_char_dead 183@
goto_if_false @CASINO2_11613
if 
  is_char_in_car 183@ {vehicle} 187@
goto_if_false @CASINO2_11613
task_leave_car 183@ {vehicle} 187@

:CASINO2_11613
if 
  35@ == 0
goto_if_false @CASINO2_11699
if and
  not is_char_dead 51@
  not is_char_dead $scplayer
goto_if_false @CASINO2_11665
clear_char_tasks_immediately 51@
perform_sequence_task 51@ {sequence} 206@

:CASINO2_11665
if and
  not is_char_dead 52@
  not is_char_dead $scplayer
goto_if_false @CASINO2_11699
clear_char_tasks_immediately 52@
perform_sequence_task 52@ {sequence} 206@

:CASINO2_11699
if 
  225@ == 0
goto_if_false @CASINO2_11740
print_now 'PD_29' {time} 4000 {flag} 1
225@ = 1

:CASINO2_11740
shake_pad PadId.Pad1 {time} 300 {intensity} 200
break_object 113@(35@,4i) {intensity} 1
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
make_object_targettable 113@(35@,4i) {state} False
set_object_coordinates 109@(35@,4i) {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 100@
change_blip_colour 101@(35@,4i) {color} BlipColor.Red
create_fx_system "EXPLOSION_CRATE" {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {ignoreBoundingChecks} True {var_handle} 37@(35@,4i)
play_and_kill_fx_system 37@(35@,4i)
report_mission_audio_event_at_object 113@(35@,4i) {soundId} ScriptSound.SoundCarSmashCar
117@(35@,4i) = 1
36@ = 2
126@ += 1
gosub @CASINO2_16322

:CASINO2_11933
if and
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  36@ == 0
goto_if_false @CASINO2_12044
if and
  not is_char_in_model $scplayer {modelId} 406
  not is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_12044
print_now 'PD_02' {time} 4000 {flag} 1
36@ = 1

:CASINO2_12044
if and
  105@(35@,4i) == 0
  117@(35@,4i) == 1
goto_if_false @CASINO2_12275
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
if 
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @CASINO2_12275
80@ = 0
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_12194
80@ = 1

:CASINO2_12194
if 
  80@ == 0
goto_if_false @CASINO2_12275
remove_blip 101@(35@,4i)
105@(35@,4i) = 1
set_object_collision 109@(35@,4i) {state} False
delete_object 109@(35@,4i)
shake_pad PadId.Pad1 {time} 200 {intensity} 100
gosub @CASINO2_16055
126@ = 5

:CASINO2_12275
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_11163
if 
  126@ == 4
goto_if_false @CASINO2_12373
if 
  not is_char_dead 50@
goto_if_false @CASINO2_12343
clear_char_tasks_immediately 50@
task_kill_char_on_foot 50@ {target} $scplayer

:CASINO2_12343
print_now 'PD_12' {time} 4000 {flag} 1
81@ = 1
126@ = 5

:CASINO2_12373
if and
  79@ == 3
  235@ == 0
goto_if_false @CASINO2_13940
if 
  not is_car_dead 82@
goto_if_false @CASINO2_12500
if and
  is_char_in_car $scplayer {vehicle} 82@
  203@ == 0
goto_if_false @CASINO2_12500
change_blip_display 132@ {display} BlipDisplay.BlipOnly
174@ = create_checkpoint CheckpointType.TubeArrow {x} 138@ {y} 144@ {z} 150@ {pointX} 156@ {pointY} 162@ {pointZ} 168@ {radius} 4.0
print_now 'PD_23' {time} 4000 {flag} 1
203@ = 1

:CASINO2_12500
if 
  not is_car_dead 82@
goto_if_false @CASINO2_12832
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CASINO2_12567
if 
  255@ == 0
goto_if_false @CASINO2_12560
255@ = 1

:CASINO2_12560
goto @CASINO2_12608

:CASINO2_12567
if 
  255@ == 1
goto_if_false @CASINO2_12608
print_now 'PD_X' {time} 4000 {flag} 1
255@ = 0

:CASINO2_12608
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CASINO2_12762
if 
  216@ == 0
goto_if_false @CASINO2_12755
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12741
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.BlipOnly
delete_checkpoint 174@($c2_time_left,6i)
create_checkpoint CheckpointType.TubeArrow {x} 138@($c2_time_left,6f) {y} 144@($c2_time_left,6f) {z} 150@($c2_time_left,6f) {pointX} 156@($c2_time_left,6f) {pointY} 162@($c2_time_left,6f) {pointZ} 168@($c2_time_left,6f) {radius} 4.0 {var_handle} 174@($c2_time_left,6i)

:CASINO2_12741
change_blip_display 192@ {display} BlipDisplay.Neither
216@ = 1

:CASINO2_12755
goto @CASINO2_12832

:CASINO2_12762
if 
  216@ == 1
goto_if_false @CASINO2_12832
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12818
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)

:CASINO2_12818
change_blip_display 192@ {display} BlipDisplay.Both
216@ = 0

:CASINO2_12832
if 
  216@ == 1
goto_if_false @CASINO2_13577
if and
  -4.0 > 220@
  $c2_time_left > 4
goto_if_false @CASINO2_12967
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12916
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)

:CASINO2_12916
change_blip_display 136@ {display} BlipDisplay.BlipOnly
178@ = create_checkpoint CheckpointType.TubeArrow {x} 142@ {y} 148@ {z} 154@ {pointX} 160@ {pointY} 166@ {pointZ} 172@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_time_left = 4

:CASINO2_12967
if and
  -16.0 > 220@
  $c2_time_left > 3
goto_if_false @CASINO2_13084
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13033
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)

:CASINO2_13033
change_blip_display 135@ {display} BlipDisplay.BlipOnly
177@ = create_checkpoint CheckpointType.TubeArrow {x} 141@ {y} 147@ {z} 153@ {pointX} 159@ {pointY} 165@ {pointZ} 171@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_time_left = 3

:CASINO2_13084
if and
  -30.0 > 220@
  $c2_time_left > 2
goto_if_false @CASINO2_13201
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13150
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)

:CASINO2_13150
change_blip_display 134@ {display} BlipDisplay.BlipOnly
176@ = create_checkpoint CheckpointType.TubeArrow {x} 140@ {y} 146@ {z} 152@ {pointX} 158@ {pointY} 164@ {pointZ} 170@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_time_left = 2

:CASINO2_13201
if and
  -40.0 > 220@
  $c2_time_left <> 0
goto_if_false @CASINO2_13318
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13267
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)

:CASINO2_13267
change_blip_display 132@ {display} BlipDisplay.BlipOnly
174@ = create_checkpoint CheckpointType.TubeArrow {x} 138@ {y} 144@ {z} 150@ {pointX} 156@ {pointY} 162@ {pointZ} 168@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_time_left = 0

:CASINO2_13318
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13577
if and
  locate_char_any_means_3d $scplayer {x} 138@($c2_time_left,6f) {y} 144@($c2_time_left,6f) {z} 150@($c2_time_left,6f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  216@ == 1
goto_if_false @CASINO2_13577
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)
$c2_time_left += 1
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13511
create_checkpoint CheckpointType.TubeArrow {x} 138@($c2_time_left,6f) {y} 144@($c2_time_left,6f) {z} 150@($c2_time_left,6f) {pointX} 156@($c2_time_left,6f) {pointY} 162@($c2_time_left,6f) {pointZ} 168@($c2_time_left,6f) {radius} 4.0 {var_handle} 174@($c2_time_left,6i)
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.BlipOnly

:CASINO2_13511
if 
  $c2_time_left == 6
goto_if_false @CASINO2_13577
change_blip_display 204@ {display} BlipDisplay.Both
if 
  226@ == 0
goto_if_false @CASINO2_13577
print_now 'PD_28' {time} 7000 {flag} 1
226@ = 1

:CASINO2_13577
if and
  is_car_dead 82@
  235@ == 0
goto_if_false @CASINO2_13857
mark_car_as_no_longer_needed 82@
if 
  does_blip_exist 192@
goto_if_false @CASINO2_13626
remove_blip 192@

:CASINO2_13626
if 
  260@ == 0
goto_if_false @CASINO2_13737
clear_area 639.3412 {y} 850.4575 {z} -43.9534 {radius} 15.0 {clearParticles} True
82@ = create_car 468 {x} 639.3412 {y} 850.4575 {z} -43.9534
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 90.0
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
260@ = 1
goto @CASINO2_13823

:CASINO2_13737
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 15.0 {clearParticles} True
82@ = create_car 468 {x} 583.0051 {y} 881.9482 {z} -45.0648
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 93.6785
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
260@ = 0

:CASINO2_13823
if 
  258@ == 0
goto_if_false @CASINO2_13857
print_now 'PD_34' {time} 4000 {flag} 1

:CASINO2_13857
if and
  not is_car_dead 82@
  not is_char_dead $scplayer
goto_if_false @CASINO2_13940
$x, $y, $z = get_char_coordinates $scplayer
$x, $y, 266@ = get_car_coordinates 82@
266@ -= 6.0
if 
  is_float_lvar_greater_than_float_var 266@ > $z
goto_if_false @CASINO2_13940
explode_car 82@

:CASINO2_13940
if 
  79@ > 0
goto_if_false @CASINO2_15595
if and
  TIMERA > 3000
  79@ == 1
goto_if_false @CASINO2_14007
print_now 'PD_22' {time} 4000 {flag} 1
79@ = 2

:CASINO2_14007
if and
  TIMERA > 7000
  79@ == 2
goto_if_false @CASINO2_14047
gosub @CASINO2_5835
79@ = 3

:CASINO2_14047
if 
  79@ == 3
goto_if_false @CASINO2_14143
if 
  is_car_dead 223@
goto_if_false @CASINO2_14104
print_now 'PD_30' {time} 4000 {flag} 1
goto @CASINO2_16416

:CASINO2_14104
if 
  is_char_dead 224@
goto_if_false @CASINO2_14143
print_now 'PD_31' {time} 4000 {flag} 1
goto @CASINO2_16416

:CASINO2_14143
if 
  79@ <> 4
goto_if_false @CASINO2_15595
if 
  locate_char_any_means_3d $scplayer {x} 1030.157 {y} 744.3469 {z} 9.7922 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO2_15595
set_player_control $player1 {state} False
if 
  does_blip_exist 204@
goto_if_false @CASINO2_14237
remove_blip 204@

:CASINO2_14237
35@ = 0

:CASINO2_14244
if 
  does_blip_exist 132@(35@,6i)
goto_if_false @CASINO2_14273
remove_blip 132@(35@,6i)

:CASINO2_14273
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_14244
clear_prints 
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15570
gosub @CASINO2_18075
clear_area 1023.937 {y} 738.5938 {z} 9.808 {radius} 30.0 {clearParticles} True
if 
  not is_car_dead 223@
goto_if_false @CASINO2_14366
freeze_car_position 223@ {state} False

:CASINO2_14366
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_14483
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_14463
269@ = store_car_char_is_in $scplayer
set_car_coordinates 269@ {x} 1025.296 {y} 746.0016 {z} 9.8302
set_car_heading 269@ {heading} 300.0064
warp_char_from_car_to_coord $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989
goto @CASINO2_14483

:CASINO2_14463
set_char_coordinates $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989

:CASINO2_14483
if 
  not is_char_dead 224@
goto_if_false @CASINO2_14534
clear_char_tasks_immediately 224@
set_char_coordinates 224@ {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493

:CASINO2_14534
set_char_heading $scplayer {heading} 232.6414
228@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.1799 {z} 9.8005
set_object_heading 228@ {heading} 90.0
set_object_collision 228@ {state} False
229@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 229@ {state} False
230@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 230@ {state} False
attach_object_to_object 229@ {handle} 228@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 40.0
attach_object_to_object 230@ {handle} 228@ {xOffset} 0.3 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 45.0 {zRotation} 60.0
if 
  not is_char_dead 224@
goto_if_false @CASINO2_14744
task_complex_pickup_object 224@ {object} 228@

:CASINO2_14744
gosub @CASINO2_18027
load_scene 1028.9351 {y} 741.1799 {z} 9.8005
set_fixed_camera_position 1026.36 {y} 737.9733 {z} 11.3745 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1026.991 {y} 738.7281 {z} 11.1933 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18110
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_14878
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_14878
print_now 'CAS2_CA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42020

:CASINO2_14907
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASINO2_14933
wait 0
goto @CASINO2_14907

:CASINO2_14933
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:CASINO2_14944
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASINO2_14970
wait 0
goto @CASINO2_14944

:CASINO2_14970
print_now 'CAS2_CB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42021

:CASINO2_14999
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASINO2_15025
wait 0
goto @CASINO2_14999

:CASINO2_15025
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:CASINO2_15036
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASINO2_15062
wait 0
goto @CASINO2_15036

:CASINO2_15062
TIMERA = 0

:CASINO2_15069
if 
  2000 > TIMERA
goto_if_false @CASINO2_15123
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15116
goto @CASINO2_15437

:CASINO2_15116
goto @CASINO2_15069

:CASINO2_15123
gosub @CASINO2_18075
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15151
delete_car 223@

:CASINO2_15151
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
set_fixed_camera_position 1020.499 {y} 740.7717 {z} 14.7072 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15231
point_camera_at_car 223@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:CASINO2_15231
if or
  not is_char_dead 224@
  not is_car_dead 223@
goto_if_false @CASINO2_15309
delete_object 229@
delete_object 230@
delete_object 228@
warp_char_into_car 224@ {vehicle} 223@
task_car_drive_to_coord 224@ {vehicle} 223@ {x} 1052.568 {y} 754.0004 {z} 9.8094 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CASINO2_15309
TIMERA = 0

:CASINO2_15316
if 
  10 > TIMERA
goto_if_false @CASINO2_15369
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15362
goto @CASINO2_15437

:CASINO2_15362
goto @CASINO2_15316

:CASINO2_15369
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_15383
if 
  3000 > TIMERA
goto_if_false @CASINO2_15437
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15430
goto @CASINO2_15437

:CASINO2_15430
goto @CASINO2_15383

:CASINO2_15437
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15458
clear_char_tasks_immediately $scplayer

:CASINO2_15458
if 
  does_object_exist 228@
goto_if_false @CASINO2_15479
delete_object 228@

:CASINO2_15479
if 
  does_object_exist 229@
goto_if_false @CASINO2_15500
delete_object 229@

:CASINO2_15500
if 
  does_object_exist 230@
goto_if_false @CASINO2_15521
delete_object 230@

:CASINO2_15521
if 
  not is_char_dead 224@
goto_if_false @CASINO2_15542
delete_char 224@

:CASINO2_15542
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15563
delete_car 223@

:CASINO2_15563
gosub @CASINO2_18049

:CASINO2_15570
print_help 'PD_32'
79@ = 4
TIMERA = 0

:CASINO2_15595
if and
  79@ == 4
  TIMERA > 4000
goto_if_false @CASINO2_15628
goto @CASINO2_16434

:CASINO2_15628
if 
  locate_char_any_means_3d $scplayer {x} 454.5292 {y} 804.0931 {z} 5.3702 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO2_15683
258@ = 1

:CASINO2_15683
if 
  locate_char_any_means_3d $scplayer {x} 447.3409 {y} 811.1259 {z} 5.4896 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO2_15738
258@ = 0

:CASINO2_15738
if 
  not locate_char_any_means_3d $scplayer {x} 562.4489 {y} 871.3499 {z} -17.0245 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 250.0 {drawSphere} False
goto_if_false @CASINO2_15800
257@ = 0
goto @CASINO2_15807

:CASINO2_15800
257@ = 1

:CASINO2_15807
if and
  not locate_char_any_means_3d $scplayer {x} 562.4489 {y} 871.3499 {z} -17.0245 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 250.0 {drawSphere} False
  79@ == 3
  6 > $c2_time_left
goto_if_false @CASINO2_15980
if 
  235@ == 0
goto_if_false @CASINO2_15980
change_blip_display 132@($c2_time_left,6i) {display} BlipDisplay.Neither
change_blip_display 192@($c2_time_left,1i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_time_left,6i)
$c2_time_left = 6
change_blip_display 204@ {display} BlipDisplay.Both
if 
  226@ == 0
goto_if_false @CASINO2_15973
print_now 'PD_28' {time} 4000 {flag} 1
226@ = 1

:CASINO2_15973
235@ = 1

:CASINO2_15980
goto @CASINO2_8522

:CASINO2_15987
goto @CASINO2_16416

:CASINO2_15994
if 
  42@ == 0
goto_if_false @CASINO2_16046
if 
  41@ == 1
goto_if_false @CASINO2_16046
print 'CAS4_AD' {time} 4000 {flag} 1

:CASINO2_16046
42@ = 1
return 

:CASINO2_16055
if 
  34@ == 0
goto_if_false @CASINO2_16120
gosub @CASINO2_15994
print 'PD_05' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16120
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16120
if 
  34@ == 1
goto_if_false @CASINO2_16178
print_now 'PD_06' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16178
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16178
if 
  34@ == 2
goto_if_false @CASINO2_16236
print_now 'PD_07' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16236
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16236
if 
  34@ == 3
goto_if_false @CASINO2_16313
print_now 'PD_08' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16294
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16294
TIMERA = 0
79@ = 1
clear_onscreen_timer $ca1_random_dialogue_last

:CASINO2_16313
34@ += 1
return 

:CASINO2_16322
if 
  54@ == 0
goto_if_false @CASINO2_16348
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1

:CASINO2_16348
return 
if 
  41@ == 0
goto_if_false @CASINO2_16375
41@ = 1

:CASINO2_16375
return 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'PD_09' {time} 4000 {flag} 1
wait 4000
return 

:CASINO2_16416
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO2_16434
start_new_script @HEIST 
start_new_script @QUARRYS 
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0
$flag_casino_mission_counter += 1
register_mission_passed 'CASEEN2'
print_with_number_big 'M_PASSS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
award_player_mission_respect 15
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
release_weather 
force_weather WeatherType.SunnyLa
remove_blip $quarry_contact_blip
$quarry_contact_blip = add_short_range_sprite_blip_for_contact_point $quarryX {y} $quarryY {z} $quarryZ {sprite} RadarSprite.Bulldozer
return 

:CASINO2_16583
if 
  $player_fall_state > 0
goto_if_false @CASINO2_16608
$player_fall_state = 6

:CASINO2_16608
$flag_car_normal_carmod = 0
clear_onscreen_timer $ca1_random_dialogue_last
35@ = 0

:CASINO2_16627
if 
  does_blip_exist 101@(35@,4i)
goto_if_false @CASINO2_16656
remove_blip 101@(35@,4i)

:CASINO2_16656
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_16627
35@ = 0

:CASINO2_16684
if 
  does_blip_exist 132@(35@,6i)
goto_if_false @CASINO2_16713
remove_blip 132@(35@,6i)

:CASINO2_16713
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_16684
if 
  does_blip_exist 204@
goto_if_false @CASINO2_16755
remove_blip 204@

:CASINO2_16755
if 
  does_blip_exist 192@
goto_if_false @CASINO2_16776
remove_blip 192@

:CASINO2_16776
if 
  does_blip_exist 186@
goto_if_false @CASINO2_16797
remove_blip 186@

:CASINO2_16797
if 
  not is_car_dead 73@
goto_if_false @CASINO2_16818
delete_car 73@

:CASINO2_16818
if 
  not is_car_dead 74@
goto_if_false @CASINO2_16839
delete_car 74@

:CASINO2_16839
if 
  not is_car_dead 75@
goto_if_false @CASINO2_16860
delete_car 75@

:CASINO2_16860
if 
  does_object_exist 60@
goto_if_false @CASINO2_16886
set_object_heading 60@ {heading} 0.0

:CASINO2_16886
if 
  does_object_exist 61@
goto_if_false @CASINO2_16912
set_object_heading 61@ {heading} 15.0

:CASINO2_16912
if 
  does_object_exist 77@
goto_if_false @CASINO2_16933
delete_object 77@

:CASINO2_16933
if 
  does_object_exist 76@
goto_if_false @CASINO2_16954
delete_object 76@

:CASINO2_16954
mark_model_as_no_longer_needed 260
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 153
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 337
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 406
remove_animation "CARRY"
remove_animation "MISC"
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
dont_suppress_car_model 406
release_weather 
mission_has_finished 
$onmission = 0
return 

:CASINO2_17062
35@ = 0

:CASINO2_17069
if 
  does_object_exist 109@(35@,4i)
goto_if_false @CASINO2_17864
switch_start 35@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO2_17695 {caseNum1} 0 {caseLabel1} @CASINO2_17152 {caseNum2} 1 {caseLabel2} @CASINO2_17252 {caseNum3} 2 {caseLabel3} @CASINO2_17310 {caseNum4} 3 {caseLabel4} @CASINO2_17368 {caseNum5} -1 {caseLabel5} @CASINO2_17695 {caseNum6} -1 {caseLabel6} @CASINO2_17695 {caseNum7} -1 {caseLabel7} @CASINO2_17695

:CASINO2_17152
if 
  not is_char_dead 51@
goto_if_false @CASINO2_17173
delete_char 51@

:CASINO2_17173
if 
  not is_char_dead 52@
goto_if_false @CASINO2_17194
delete_char 52@

:CASINO2_17194
set_fixed_camera_position 656.9689 {y} 914.2382 {z} -38.7741 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 657.7072 {y} 914.8211 {z} -39.1131 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17695

:CASINO2_17252
set_fixed_camera_position 578.0302 {y} 926.3607 {z} -39.6861 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 578.5041 {y} 927.1686 {z} -40.0363 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17695

:CASINO2_17310
set_fixed_camera_position 543.1476 {y} 853.9489 {z} -38.0164 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 543.9039 {y} 853.3993 {z} -38.3712 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17695

:CASINO2_17368
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_17629
if and
  not is_car_dead 187@
  188@ == 0
  not is_char_in_model $scplayer {modelId} 530
goto_if_false @CASINO2_17629
if 
  does_object_exist 124@
goto_if_false @CASINO2_17476
detach_object 124@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 124@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17476
if 
  does_object_exist 112@
goto_if_false @CASINO2_17537
detach_object 112@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 112@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17537
if 
  does_object_exist 116@
goto_if_false @CASINO2_17598
detach_object 116@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 116@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17598
if 
  not is_char_dead 183@
goto_if_false @CASINO2_17624
clear_char_tasks_immediately 183@
delete_char 183@

:CASINO2_17624
delete_car 187@

:CASINO2_17629
$x, $y, $z = get_object_coordinates 112@
set_fixed_camera_position 635.8651 {y} 827.8486 {z} -34.5451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @CASINO2_17695

:CASINO2_17695
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_17726
freeze_object_position 121@(35@,4i) {state} True

:CASINO2_17726
$x, $y, $z = get_object_coordinates 109@(35@,4i)
add_explosion_variable_shake $x {y} $y {z} $z {type} 11 {shake} 5.0
create_fx_system "EXPLOSION_SMALL" {x} $x {y} $y {z} $z {ignoreBoundingChecks} True {var_handle} 199@(35@,4i)
play_and_kill_fx_system 199@(35@,4i)
delete_object 109@(35@,4i)
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_17850
break_object 113@(35@,4i) {intensity} 1

:CASINO2_17850
wait 2000
kill_fx_system 199@(35@,4i)

:CASINO2_17864
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_17069
return 

:CASINO2_17887
if 
  not is_char_dead 51@
goto_if_false @CASINO2_17956
if 
  locate_char_any_means_3d 51@ {x} 718.7523 {y} 918.5203 {z} -19.886 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_17956
remove_char_elegantly 51@

:CASINO2_17956
if 
  not is_char_dead 52@
goto_if_false @CASINO2_18025
if 
  locate_char_any_means_3d 52@ {x} 718.7523 {y} 918.5203 {z} -19.886 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_18025
remove_char_elegantly 52@

:CASINO2_18025
return 

:CASINO2_18027
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:CASINO2_18049
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:CASINO2_18075
do_fade 500 {direction} Fade.Out

:CASINO2_18082
if 
  get_fading_status 
goto_if_false @CASINO2_18106
wait 0
goto @CASINO2_18082

:CASINO2_18106
clear_prints 
return 

:CASINO2_18110
do_fade 500 {direction} Fade.In

:CASINO2_18117
if 
  get_fading_status 
goto_if_false @CASINO2_18141
wait 0
goto @CASINO2_18117

:CASINO2_18141
return 

:CASINO2_18143
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @CASINO2_18288
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18288
attach_object_to_car 124@ {handle} 187@ {xOffset} -0.4 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -0.4 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18288
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @CASINO2_18567
request_model 117
request_model 410
request_animation "CARRY"

:CASINO2_18321
if or
  not has_model_loaded 117
  not has_model_loaded 410
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_18361
wait 0
goto @CASINO2_18321

:CASINO2_18361
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
freeze_car_position 223@ {state} True
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
set_char_suffers_critical_hits 224@ {state} False
set_char_never_targetted 224@ {state} True
set_char_only_damaged_by_player 224@ {state} True
set_char_decision_maker 224@ {handleOrTemplate} 127@
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_18567
set_char_coordinates $scplayer {x} 1010.221 {y} 736.1201 {z} 9.8047
set_char_heading $scplayer {heading} 275.6392
79@ = 3
$c2_time_left = 6
235@ = 1

:CASINO2_18567
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @CASINO2_18712
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18712
attach_object_to_car 124@ {handle} 187@ {xOffset} -0.6 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -0.6 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18712
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @CASINO2_18857
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18857
attach_object_to_car 124@ {handle} 187@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18857
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CASINO2_18880
$ca1_random_dialogue_last = 25000

:CASINO2_18880
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @CASINO2_18945
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_18945
clear_prints 
set_char_coordinates $scplayer {x} 820.8088 {y} 847.8527 {z} 10.0376
set_char_heading $scplayer {heading} 114.6715
set_camera_behind_player 

:CASINO2_18945
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @CASINO2_19032
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_19032
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_19032
270@ = store_car_char_is_in $scplayer
set_car_coordinates 270@ {x} 495.8263 {y} 820.5667 {z} -9.8729
set_car_heading 270@ {heading} 30.4329
set_camera_behind_player 

:CASINO2_19032
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CASINO2_19115
75@ = create_car 428 {x} 428.4801 {y} 840.5771 {z} 5.5835
set_car_heading 75@ {heading} 28.5847
mark_model_as_no_longer_needed 428
66@ = create_char_inside_car 75@ {pedType} PedType.Mission2 {modelId} 71
67@ = create_char_as_passenger 75@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 71

:CASINO2_19115
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @CASINO2_19200
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_19180
clear_prints 
set_char_coordinates $scplayer {x} 658.134 {y} 947.6506 {z} -35.8939
set_char_heading $scplayer {heading} 194.3468
set_camera_behind_player 

:CASINO2_19180
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete

:CASINO2_19200
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @CASINO2_20315
request_model 117
request_model 410

:CASINO2_19224
if or
  not has_model_loaded 117
  not has_model_loaded 410
goto_if_false @CASINO2_19255
wait 0
goto @CASINO2_19224

:CASINO2_19255
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
gosub @CASINO2_18075
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_19432
warp_char_from_car_to_coord $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989
goto @CASINO2_19452

:CASINO2_19432
set_char_coordinates $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989

:CASINO2_19452
if 
  not is_char_dead 224@
goto_if_false @CASINO2_19498
set_char_coordinates 224@ {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493

:CASINO2_19498
set_char_heading $scplayer {heading} 232.6414
request_animation "CARRY"

:CASINO2_19517
if 
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_19548
wait 0
goto @CASINO2_19517

:CASINO2_19548
228@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.1799 {z} 9.8005
set_object_heading 228@ {heading} 90.0
set_object_collision 228@ {state} False
229@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 229@ {state} False
230@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 230@ {state} False
attach_object_to_object 229@ {handle} 228@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 40.0
attach_object_to_object 230@ {handle} 228@ {xOffset} 0.3 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 45.0 {zRotation} 60.0
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 224@
goto_if_false @CASINO2_19753
task_complex_pickup_object 224@ {object} 228@

:CASINO2_19753
gosub @CASINO2_18027
set_fixed_camera_position 1026.36 {y} 737.9733 {z} 11.3745 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1026.991 {y} 738.7281 {z} 11.1933 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18110
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_19870
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_19870
print_now 'PD_32' {time} 4000 {flag} 1
wait 1000
TIMERA = 0

:CASINO2_19898
if 
  3000 > TIMERA
goto_if_false @CASINO2_19952
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_19945
goto @CASINO2_20266

:CASINO2_19945
goto @CASINO2_19898

:CASINO2_19952
gosub @CASINO2_18075
if 
  not is_car_dead 223@
goto_if_false @CASINO2_19980
delete_car 223@

:CASINO2_19980
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
set_fixed_camera_position 1020.499 {y} 740.7717 {z} 14.7072 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 223@
goto_if_false @CASINO2_20060
point_camera_at_car 223@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:CASINO2_20060
if or
  not is_char_dead 224@
  not is_car_dead 223@
goto_if_false @CASINO2_20138
delete_object 228@
delete_object 229@
delete_object 230@
warp_char_into_car 224@ {vehicle} 223@
task_car_drive_to_coord 224@ {vehicle} 223@ {x} 1065.901 {y} 775.0016 {z} 9.8227 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CASINO2_20138
TIMERA = 0

:CASINO2_20145
if 
  10 > TIMERA
goto_if_false @CASINO2_20198
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_20191
goto @CASINO2_15437

:CASINO2_20191
goto @CASINO2_20145

:CASINO2_20198
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_20212
if 
  2000 > TIMERA
goto_if_false @CASINO2_20266
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_20259
goto @CASINO2_15437

:CASINO2_20259
goto @CASINO2_20212

:CASINO2_20266
if 
  not is_char_dead 224@
goto_if_false @CASINO2_20287
delete_char 224@

:CASINO2_20287
if 
  not is_car_dead 223@
goto_if_false @CASINO2_20308
delete_car 223@

:CASINO2_20308
gosub @CASINO2_18049

:CASINO2_20315
return 

:CASINO2_20317
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 247@
246@ = 0
return 

:CASINO2_20337
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  246@ == 0
goto_if_false @CASINO2_20405
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_lvar_text_label_equal_to_text_label 264@s == 'DUMMY'
goto_if_false @CASINO2_20398
print_now 264@s {time} 10000 {flag} 1

:CASINO2_20398
246@ = 1

:CASINO2_20405
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  246@ == 1
goto_if_false @CASINO2_20443
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 264@s
246@ = 2

:CASINO2_20443
return 

:CASINO2_20445
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 261@
262@ = 0
return 

:CASINO2_20465
if and
  has_mission_audio_loaded MissionAudioSlot.Slot3
  262@ == 0
goto_if_false @CASINO2_20517
set_mission_audio_position MissionAudioSlot.Slot3 {x} 591.091 {y} 877.4084 {z} -43.4973
play_mission_audio MissionAudioSlot.Slot3
262@ = 1

:CASINO2_20517
if and
  has_mission_audio_finished MissionAudioSlot.Slot3
  262@ == 1
goto_if_false @CASINO2_20550
clear_mission_audio MissionAudioSlot.Slot3
262@ = 2

:CASINO2_20550
return 

//-------------Mission 86---------------
// Originally: You've Had Your Chips

:CASINO3
script_name 'CASINO3'
gosub @CASINO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO3_38
gosub @CASINO3_14135

:CASINO3_38
gosub @CASINO3_14245
terminate_this_script 

:CASINO3_47
register_mission_given 
load_mission_text 'CASINO3'
$onmission = 1
wait 0
set_area_visible 11
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2027.391 {y} 1008.087 {z} 9.8203
set_char_heading $scplayer {heading} 297.1696
load_cutscene 'CAS_3'

:CASINO3_136
if 
  not has_cutscene_loaded 
goto_if_false @CASINO3_160
wait 0
goto @CASINO3_136

:CASINO3_160
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO3_169
if 
  not has_cutscene_finished 
goto_if_false @CASINO3_193
wait 0
goto @CASINO3_169

:CASINO3_193
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO3_206
if 
  get_fading_status 
goto_if_false @CASINO3_230
wait 0
goto @CASINO3_206

:CASINO3_230
clear_cutscene 
set_area_visible 0
73@ = load_char_decision_maker DecisionMakerType.Empty
wait 0
set_fading_colour 0 {g} 0 {b} 0
request_model 401
request_model 445
request_model 50
request_model 50
request_model 336
request_model 346
request_model 351
request_model 352
request_model 124
request_model 125
request_model 126
request_model 127
request_model 530
load_all_models_now 

:CASINO3_316
if or
  not has_model_loaded 346
  not has_model_loaded 401
goto_if_false @CASINO3_348
wait 0
goto @CASINO3_316

:CASINO3_348
if or
  not has_model_loaded 50
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 351
  not has_model_loaded 352
goto_if_false @CASINO3_392
wait 0
goto @CASINO3_348

:CASINO3_392
if or
  not has_model_loaded 530
  not has_model_loaded 127
  not has_model_loaded 127
goto_if_false @CASINO3_427
wait 0
goto @CASINO3_392

:CASINO3_427
if or
  not has_model_loaded 50
  not has_model_loaded 336
  not has_model_loaded 445
goto_if_false @CASINO3_463
wait 0
goto @CASINO3_427

:CASINO3_463
load_scene 2031.168 {y} 1030.918 {z} 9.813
51@ = 99
186@ = 0
187@ = 0
36@ = 0
53@ = 5
54@ = 0
55@ = 0
117@ = 0
142@ = 0
143@ = 0
56@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 1
141@ = 0
91@ = 0
93@ = 0
94@ = 0
118@ = 0
149@ = 0
151@ = 0
152@ = 0
153@ = 0
155@ = 0
154@ = 0
156@ = 0
36@ = 0
157@ = 0
122@ = 0
124@ = 0
169@ = 0
170@ = 0
247@ = 0
171@ = 1
238@ = 1
239@ = 2
240@ = 0
241@ = 1
242@ = 0
243@ = 0
set_lvar_text_label 195@s = 'CAS3_AA'
set_lvar_text_label 197@s = 'CAS3_AB'
set_lvar_text_label 199@s = 'CAS3_AC'
set_lvar_text_label 201@s = 'CAS3_AD'
set_lvar_text_label 203@s = 'CAS3_BA'
set_lvar_text_label 205@s = 'CAS3_BB'
set_lvar_text_label 207@s = 'CAS3_BC'
set_lvar_text_label 209@s = 'CAS3_BD'
set_lvar_text_label 211@s = 'CAS3_BE'
set_lvar_text_label 213@s = 'CAS3_CA'
set_lvar_text_label 215@s = 'CAS3_CB'
set_lvar_text_label 217@s = 'CAS3_CC'
set_lvar_int_to_constant 224@ = 40200
set_lvar_int_to_constant 225@ = 40201
set_lvar_int_to_constant 226@ = 40202
set_lvar_int_to_constant 227@ = 40206
set_lvar_int_to_constant 228@ = 40203
set_lvar_int_to_constant 229@ = 40204
set_lvar_int_to_constant 230@ = 40207
set_lvar_int_to_constant 231@ = 40208
set_lvar_int_to_constant 232@ = 40209
set_lvar_int_to_constant 233@ = 40210
set_lvar_int_to_constant 234@ = 40211
set_lvar_int_to_constant 235@ = 40212
34@ = get_max_wanted_level 
if 
  55@ == -13
goto_if_false @CASINO3_1101
179@ = create_car 445 {x} 1029.856 {y} 2142.8579 {z} 9.813

:CASINO3_1101
set_object_collision $init_ped_density {state} True
57@ = create_car 401 {x} 2014.72 {y} 1035.238 {z} 9.8127
set_car_heading 57@ {heading} 1.0755
change_car_colour 57@ {color1} 10 {color2} 2
58@ = create_car 445 {x} 1044.271 {y} 2096.7141 {z} 9.813
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_heading 58@ {heading} 27.1148
change_car_colour 58@ {color1} 2 {color2} 1
60@ = create_car 530 {x} 1063.887 {y} 2134.7241 {z} 9.8203
set_car_heading 60@ {heading} 252.0755
61@ = create_car 530 {x} 1060.146 {y} 2083.9861 {z} 9.8203
set_car_heading 61@ {heading} 233.609
76@ = create_char_inside_car 61@ {pedType} PedType.CivMale {modelId} 50
give_weapon_to_char 76@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_can_be_shot_in_vehicle 76@ {state} True
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 530
71@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 124
give_weapon_to_char 71@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 71@ {heading} 56.724
set_char_decision_maker 71@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 71@ {state} False
72@ = create_char_as_passenger 58@ {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.BikeRear
give_weapon_to_char 72@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 72@ {heading} 148.026
set_char_decision_maker 72@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 72@ {state} False
81@ = create_char PedType.Mission1 {modelId} 127 {x} 1064.213 {y} 2140.6941 {z} 9.8203
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_heading 81@ {heading} 156.0958
set_char_decision_maker 81@ {handleOrTemplate} 73@
82@ = create_char PedType.Mission1 {modelId} 125 {x} 1093.068 {y} 2107.3411 {z} 9.8203
give_weapon_to_char 82@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 82@ {heading} 115.2591
set_char_decision_maker 82@ {handleOrTemplate} 73@
83@ = create_char PedType.Mission1 {modelId} 124 {x} 1092.082 {y} 2116.792 {z} 14.3504
give_weapon_to_char 83@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 83@ {heading} 115.409
set_char_decision_maker 83@ {handleOrTemplate} 73@
80@ = create_char PedType.Mission1 {modelId} 126 {x} 1083.688 {y} 2121.5991 {z} 14.3504
give_weapon_to_char 80@ {weaponType} WeaponType.Spas12 {ammo} 2000
set_char_decision_maker 80@ {handleOrTemplate} 73@
add_armour_to_char 80@ {amount} 50
set_char_heading 80@ {heading} 115.6952
74@ = create_char PedType.Mission1 {modelId} 50 {x} 1056.655 {y} 2108.551 {z} 9.8203
set_char_heading 74@ {heading} 186.9465
set_char_decision_maker 74@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 74@ {state} True
75@ = create_char PedType.Mission1 {modelId} 50 {x} 1092.6071 {y} 2116.9121 {z} 9.8203
set_char_heading 75@ {heading} 116.0465
set_char_decision_maker 75@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 75@ {state} True
257@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1074.903 {y} 2139.6111 {z} 10.7203
set_object_proofs 257@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
266@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1074.903 {y} 2139.6111 {z} 10.7203
set_object_collision 257@ {state} True
set_object_rotation 257@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 266@ {x} 0.0 {y} 0.0 {z} 180.0
258@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1069.485 {y} 2139.6111 {z} 10.7203
set_object_proofs 258@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
267@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1069.485 {y} 2139.6111 {z} 10.7203
set_object_collision 258@ {state} True
set_object_rotation 258@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 267@ {x} 0.0 {y} 0.0 {z} 180.0
259@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1062.4561 {y} 2139.6111 {z} 10.7203
set_object_proofs 259@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
268@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1062.4561 {y} 2139.6111 {z} 10.7203
set_object_collision 259@ {state} True
set_object_rotation 259@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 268@ {x} 0.0 {y} 0.0 {z} 180.0
260@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1081.2679 {y} 2123.686 {z} 10.7203
set_object_proofs 260@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
269@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1081.2679 {y} 2123.686 {z} 10.7203
set_object_rotation 260@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 269@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 260@ {state} True
261@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1081.236 {y} 2130.6809 {z} 10.7203
set_object_proofs 261@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
270@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1081.236 {y} 2130.6809 {z} 10.7203
set_object_rotation 261@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 270@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 261@ {state} True
262@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1086.855 {y} 2077.532 {z} 10.7203
set_object_proofs 262@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
271@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1086.855 {y} 2077.532 {z} 10.7203
set_object_collision 262@ {state} True
263@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1091.818 {y} 2121.2571 {z} 10.7203
set_object_proofs 263@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
272@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1091.818 {y} 2121.2571 {z} 10.7203
set_object_rotation 263@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 272@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_collision 263@ {state} True
264@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1094.163 {y} 2102.3521 {z} 10.7203
set_object_proofs 264@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
273@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1094.163 {y} 2102.3521 {z} 10.7203
set_object_rotation 264@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 273@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 264@ {state} True
265@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1094.163 {y} 2092.3521 {z} 10.7203
set_object_proofs 265@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
274@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1094.163 {y} 2092.3521 {z} 10.7203
set_object_rotation 265@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 274@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 265@ {state} True
284@ = 0

:CASINO3_2660
if 
  9 > 284@
goto_if_false @CASINO3_2715
275@(284@,9i) = 0
set_object_health 257@(284@,9i) {health} 1000
284@ += 1
goto @CASINO3_2660

:CASINO3_2715
106@ = create_object_no_offset #KMB_CONTAINER_RED {x} 1023.181 {y} 2106.604 {z} 14.7301
set_object_rotation 106@ {x} 0.0 {y} 0.0 {z} 0.0
107@ = create_object_no_offset #KMB_CONTAINER_RED {x} 1077.014 {y} 2070.7429 {z} 14.7635
set_object_rotation 107@ {x} 0.0 {y} 0.0 {z} 0.0
139@ = 0.0
140@ = 0.0
37@ = add_blip_for_coord 1057.636 {y} 2089.6941 {z} 9.8203
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
display_zone_names False
set_camera_behind_player 
restore_camera_jumpcut 
wait 1000
do_fade 1000 {direction} Fade.In

:CASINO3_2890
if 
  get_fading_status 
goto_if_false @CASINO3_2914
wait 0
goto @CASINO3_2890

:CASINO3_2914
print_now 'CA3_1' {time} 10000 {flag} 1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
display_zone_names True

:CASINO3_2945
wait 0
if 
  does_object_exist $2663
goto_if_false @CASINO3_2985
set_object_coordinates $2663 {x} 1055.629 {y} 2087.6699 {z} 0.299

:CASINO3_2985
if 
  240@ <> 0
goto_if_false @CASINO3_3338
if 
  242@ == 0
goto_if_false @CASINO3_3056
if 
  has_mission_audio_loaded 239@
goto_if_false @CASINO3_3042
clear_mission_audio 239@

:CASINO3_3042
242@ = 1
243@ = 1

:CASINO3_3056
if 
  242@ == 1
goto_if_false @CASINO3_3093
load_mission_audio 238@ {audioId} 223@(240@,15i)
242@ = 2

:CASINO3_3093
if 
  242@ == 2
goto_if_false @CASINO3_3153
if 
  has_mission_audio_loaded 238@
goto_if_false @CASINO3_3153
play_mission_audio 238@
print_now 193@(240@,15s) {time} 10000 {flag} 1
242@ = 3

:CASINO3_3153
if 
  242@ == 3
goto_if_false @CASINO3_3338
if 
  has_mission_audio_finished 238@
goto_if_false @CASINO3_3277
clear_this_print 193@(240@,15s)
if 
  238@ == 1
goto_if_false @CASINO3_3235
238@ = 2
239@ = 1
goto @CASINO3_3249

:CASINO3_3235
238@ = 1
239@ = 2

:CASINO3_3249
240@ = 0
242@ = 0
243@ = 0
goto @CASINO3_3338

:CASINO3_3277
if 
  not has_mission_audio_loaded 239@
goto_if_false @CASINO3_3338
if 
  10 > 240@
goto_if_false @CASINO3_3338
set_lvar_int_to_lvar_int 241@ = 240@
241@ += 1
load_mission_audio 239@ {audioId} 223@(241@,15i)

:CASINO3_3338
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO3_3360
goto @CASINO3_14153

:CASINO3_3360
set_object_rotation 106@ {x} 0.0 {y} 0.0 {z} 139@
if 
  36@ <> 1
goto_if_false @CASINO3_3406
139@ += 0.2

:CASINO3_3406
if 
  36@ == 1
goto_if_false @CASINO3_3434
139@ += 0.4

:CASINO3_3434
if 
  139@ > 359.0
goto_if_false @CASINO3_3465
139@ = 0.0

:CASINO3_3465
set_object_rotation 107@ {x} 0.0 {y} 0.0 {z} 140@
140@ += 0.25
if 
  140@ > 359.0
goto_if_false @CASINO3_3524
140@ = 0.0

:CASINO3_3524
if 
  36@ == 1
goto_if_false @CASINO3_3619
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3619

:CASINO3_3559
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3587
wait 0
goto @CASINO3_3559

:CASINO3_3587
if 
  150@ > 1
goto_if_false @CASINO3_3619
150@ = 10
36@ = 0

:CASINO3_3619
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @CASINO3_3666
set_char_coordinates $scplayer {x} 1002.171 {y} 2079.4431 {z} 9.8203
set_camera_behind_player 
give_weapon_to_char $scplayer {weaponType} WeaponType.Spas12 {ammo} 2000

:CASINO3_3666
if 
  155@ == 1
goto_if_false @CASINO3_3743
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3743

:CASINO3_3701
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3729
wait 0
goto @CASINO3_3701

:CASINO3_3729
153@ = 5
155@ = 0

:CASINO3_3743
if 
  156@ == 1
goto_if_false @CASINO3_3820
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3820

:CASINO3_3778
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3806
wait 0
goto @CASINO3_3778

:CASINO3_3806
154@ = 5
156@ = 0

:CASINO3_3820
if 
  157@ == 1
goto_if_false @CASINO3_3897
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3897

:CASINO3_3855
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3883
wait 0
goto @CASINO3_3855

:CASINO3_3883
55@ = 40
157@ = 0

:CASINO3_3897
if 
  171@ == 1
goto_if_false @CASINO3_3962
if 
  $ca3_driven_to_factory == 1
goto_if_false @CASINO3_3962
set_up_skip 1009.683 {y} 1987.64 {z} 9.6796 {heading} 1.816
171@ = 0

:CASINO3_3962
if 
  53@ == 5
goto_if_false @CASINO3_4134
if 
  not is_char_dead 71@
goto_if_false @CASINO3_4077
if 
  locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CASINO3_4077
clear_skip 
171@ = 0
clear_prints 
print_now 'CA3_2' {time} 6000 {flag} 1
53@ = 10
34@ = get_max_wanted_level 
set_max_wanted_level 0
$ca3_driven_to_factory = 1

:CASINO3_4077
if 
  locate_char_any_means_3d $scplayer {x} 1009.683 {y} 1987.64 {z} 9.6796 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO3_4134
clear_skip 
171@ = 0

:CASINO3_4134
if 
  53@ == 10
goto_if_false @CASINO3_4382
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1048.428 {leftBottomY} 2093.521 {rightTopX} 1048.822 {rightTopY} 2081.844 {angle} 15.0 {drawSphere} False
goto_if_false @CASINO3_4209
55@ = 1
53@ = 99

:CASINO3_4209
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1055.174 {leftBottomY} 2064.71 {rightTopX} 1054.835 {rightTopY} 21099.8105 {angle} 15.0 {drawSphere} False
goto_if_false @CASINO3_4282
if 
  is_char_shooting $scplayer
goto_if_false @CASINO3_4282
170@ = 1
TIMERB = 0

:CASINO3_4282
if 
  does_char_exist 76@
goto_if_false @CASINO3_4331
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @CASINO3_4331
55@ = 1
53@ = 99

:CASINO3_4331
if 
  170@ == 1
goto_if_false @CASINO3_4382
if 
  TIMERB > 500
goto_if_false @CASINO3_4382
55@ = 1
53@ = 99

:CASINO3_4382
if 
  55@ == 0
goto_if_false @CASINO3_4753
if 
  0 > 53@
goto_if_false @CASINO3_4753
if 
  151@ == 0
goto_if_false @CASINO3_4509
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4509
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4509
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1030.442 {y} 2106.3191 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
151@ = 1

:CASINO3_4509
if 
  151@ == 1
goto_if_false @CASINO3_4648
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4648
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4648
if 
  locate_car_3d 61@ {x} 1030.442 {y} 2106.3191 {z} 9.8203 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_4648
151@ = 2
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1060.146 {y} 2084.9861 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_4648
if 
  151@ == 2
goto_if_false @CASINO3_4753
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4753
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4753
if 
  locate_car_3d 61@ {x} 1060.146 {y} 2084.9861 {z} 9.8203 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_4753
151@ = 0

:CASINO3_4753
if 
  55@ == 1
goto_if_false @CASINO3_6995
if 
  149@ == 0
goto_if_false @CASINO3_5899
if 
  153@ == 0
goto_if_false @CASINO3_5234
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:CASINO3_4828
if 
  get_fading_status 
goto_if_false @CASINO3_4852
wait 0
goto @CASINO3_4828

:CASINO3_4852
89@ = create_char PedType.Mission1 {modelId} 127 {x} 1083.01 {y} 2099.1311 {z} 14.3504
set_char_heading 89@ {heading} 186.4201
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 89@ {handleOrTemplate} 73@
87@ = create_char PedType.Mission1 {modelId} 124 {x} 1084.281 {y} 2097.948 {z} 14.3504
set_char_heading 87@ {heading} 153.4201
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 87@ {handleOrTemplate} 73@
set_char_coordinates $scplayer {x} 1050.532 {y} 2087.9331 {z} 9.8203
set_char_heading $scplayer {heading} 282.0
switch_widescreen True
set_fixed_camera_position 1088.848 {y} 2094.239 {z} 17.2308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1087.869 {y} 2094.2219 {z} 17.0277 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO3_5048
if 
  get_fading_status 
goto_if_false @CASINO3_5072
wait 0
goto @CASINO3_5048

:CASINO3_5072
TIMERA = 0
153@ = 1
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5130
flush_route 
extend_route 1083.361 {y} 2093.45 {z} 14.3504
task_follow_point_route 89@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5130
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5174
flush_route 
extend_route 1084.752 {y} 2093.208 {z} 14.3504
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5174
if 
  not is_char_dead $scplayer
goto_if_false @CASINO3_5234
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO3_5234
flush_route 
extend_route 1057.532 {y} 2087.9331 {z} 9.8203
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5234
if 
  153@ == 1
goto_if_false @CASINO3_5384
if 
  TIMERA > 1000
goto_if_false @CASINO3_5278
155@ = 1

:CASINO3_5278
if 
  TIMERA > 3000
goto_if_false @CASINO3_5384
240@ = 8
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5333
clear_char_tasks 89@
task_turn_char_to_face_char 89@ {target} $scplayer

:CASINO3_5333
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5377
flush_route 
extend_route 1082.375 {y} 2090.25 {z} 14.3504
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5377
153@ = 2

:CASINO3_5384
if 
  153@ == 2
goto_if_false @CASINO3_5589
if 
  TIMERA > 6000
goto_if_false @CASINO3_5589
240@ = 9
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5477
clear_char_tasks 89@
flush_route 
extend_route 1088.526 {y} 2112.616 {z} 14.3504
task_follow_point_route 89@ {speed} MoveState.Run {mode} RouteMode.Once

:CASINO3_5477
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5543
if 
  not is_car_dead 61@
goto_if_false @CASINO3_5543
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_5543
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5575
clear_char_tasks 87@
task_aim_gun_at_char 87@ {target} $scplayer {time} 4000

:CASINO3_5575
153@ = 3
TIMERA = 0

:CASINO3_5589
if 
  153@ == 3
goto_if_false @CASINO3_5711
if 
  TIMERA > 2000
goto_if_false @CASINO3_5711
153@ = 5
155@ = 0
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5711
clear_char_tasks 76@
167@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1088.783 {y} 2077.573 {z} 9.8203 {speed} MoveState.Run {time} -1
close_sequence_task 167@
perform_sequence_task 76@ {sequence} 167@
clear_sequence_task 167@

:CASINO3_5711
if 
  153@ == 5
goto_if_false @CASINO3_5899
switch_widescreen False
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5785
if 
  is_char_sitting_in_any_car 76@
goto_if_false @CASINO3_5785
warp_char_from_car_to_coord 76@ {x} 1088.783 {y} 2077.573 {z} 9.8203

:CASINO3_5785
if 
  not is_car_dead 61@
goto_if_false @CASINO3_5831
set_car_coordinates 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203
set_car_heading 61@ {heading} 273.0

:CASINO3_5831
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
if 
  not is_car_dead 58@
goto_if_false @CASINO3_5871
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_5871
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
55@ = 2
141@ = 1

:CASINO3_5899
if 
  149@ > 0
goto_if_false @CASINO3_6995
if 
  154@ == 0
goto_if_false @CASINO3_6288
set_everyone_ignore_player $player1 {state} True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO3_5956
if 
  get_fading_status 
goto_if_false @CASINO3_5980
wait 0
goto @CASINO3_5956

:CASINO3_5980
set_char_coordinates $scplayer {x} 1050.532 {y} 2087.9331 {z} 9.8203
set_char_heading $scplayer {heading} 282.0
89@ = create_char PedType.Mission1 {modelId} 127 {x} 1086.869 {y} 2078.6101 {z} 14.3504
set_char_heading 89@ {heading} 86.4201
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 89@ {handleOrTemplate} 73@
87@ = create_char PedType.Mission1 {modelId} 124 {x} 1086.42 {y} 2077.292 {z} 14.3504
set_char_heading 87@ {heading} 74.4201
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 87@ {handleOrTemplate} 73@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1075.725 {y} 2094.5449 {z} 18.0271 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1074.8521 {y} 2094.5291 {z} 17.5392 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO3_6183
if 
  get_fading_status 
goto_if_false @CASINO3_6207
wait 0
goto @CASINO3_6183

:CASINO3_6207
TIMERA = 0
154@ = 1
240@ = 7
if 
  not is_char_dead $scplayer
goto_if_false @CASINO3_6288
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO3_6288
flush_route 
extend_route 1057.532 {y} 2087.9331 {z} 9.8203
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_6288
if 
  154@ == 1
goto_if_false @CASINO3_6644
if 
  TIMERA > 300
goto_if_false @CASINO3_6604
if 
  169@ == 0
goto_if_false @CASINO3_6604
if 
  not is_char_dead 87@
goto_if_false @CASINO3_6414
clear_char_tasks 87@
task_go_to_coord_while_aiming 87@ {x} 1079.871 {y} 2079.303 {z} 14.3516 {speed} MoveState.Walk {turnRadius} 0.5 {stopRadius} 0.5 {target} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0

:CASINO3_6414
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6480
if 
  not is_car_dead 61@
goto_if_false @CASINO3_6480
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_6480
if 
  not is_char_dead 71@
goto_if_false @CASINO3_6560
clear_char_tasks 71@
168@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1064.677 {y} 2094.79 {z} 13.6896 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 168@
perform_sequence_task 71@ {sequence} 168@
clear_sequence_task 168@
task_stay_in_same_place 71@ {state} True

:CASINO3_6560
if 
  not is_char_dead 72@
goto_if_false @CASINO3_6590
task_toggle_duck 72@ {state} True
task_stay_in_same_place 72@ {state} True

:CASINO3_6590
156@ = 1
169@ = 1

:CASINO3_6604
if 
  TIMERA > 4000
goto_if_false @CASINO3_6644
240@ = 6
154@ = 3
TIMERA = 0

:CASINO3_6644
if 
  154@ == 3
goto_if_false @CASINO3_6766
if 
  TIMERA > 3000
goto_if_false @CASINO3_6766
154@ = 5
156@ = 0
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6766
clear_char_tasks 76@
167@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1088.783 {y} 2077.573 {z} 9.8203 {speed} MoveState.Run {time} -1
close_sequence_task 167@
perform_sequence_task 76@ {sequence} 167@
clear_sequence_task 167@

:CASINO3_6766
if 
  154@ == 5
goto_if_false @CASINO3_6995
switch_widescreen False
if 
  not is_char_dead 87@
goto_if_false @CASINO3_6829
clear_char_tasks 87@
set_char_coordinates 87@ {x} 1079.871 {y} 2079.303 {z} 14.3516

:CASINO3_6829
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6881
if 
  is_char_sitting_in_any_car 76@
goto_if_false @CASINO3_6881
warp_char_from_car_to_coord 76@ {x} 1088.783 {y} 2077.573 {z} 9.8203

:CASINO3_6881
if 
  not is_car_dead 61@
goto_if_false @CASINO3_6927
set_car_coordinates 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203
set_car_heading 61@ {heading} 273.0

:CASINO3_6927
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
if 
  not is_car_dead 58@
goto_if_false @CASINO3_6967
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_6967
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
55@ = 2
141@ = 1

:CASINO3_6995
if 
  55@ == 2
goto_if_false @CASINO3_7255
remove_blip 37@
284@ = 0

:CASINO3_7025
if 
  9 > 284@
goto_if_false @CASINO3_7137
275@(284@,9i) = 0
add_blip_for_object 257@(284@,9i) {var_handle} 40@(284@,11i)
set_object_proofs 257@(284@,9i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
change_blip_scale 40@(284@,11i) {size} 2
set_object_health 257@(284@,9i) {health} 1000
make_object_targettable 257@(284@,9i) {state} True
284@ += 1
goto @CASINO3_7025

:CASINO3_7137
clear_prints 
print_now 'CA3_7' {time} 6000 {flag} 1
if 
  not is_char_dead 76@
goto_if_false @CASINO3_7184
clear_char_tasks 76@
task_kill_char_on_foot 76@ {target} $scplayer

:CASINO3_7184
if 
  149@ > 0
goto_if_false @CASINO3_7216
gosub @CASINO3_13437
55@ = 4

:CASINO3_7216
if 
  149@ == 0
goto_if_false @CASINO3_7248
gosub @CASINO3_12873
55@ = 4

:CASINO3_7248
gosub @CASINO3_14080

:CASINO3_7255
if 
  55@ == 8
goto_if_false @CASINO3_7384
print_now 'CA3_23' {time} 6000 {flag} 1
set_max_wanted_level 34@
39@ = add_blip_for_coord 1918.59 {y} 958.3391 {z} 9.8203
change_blip_colour 39@ {color} BlipColor.Yellow
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 50
request_model 117
request_model 118
request_model 421
55@ = 9

:CASINO3_7349
if or
  not has_model_loaded 117
  not has_model_loaded 421
  not has_model_loaded 118
goto_if_false @CASINO3_7384
wait 0
goto @CASINO3_7349

:CASINO3_7384
if 
  55@ == 9
goto_if_false @CASINO3_7728
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @CASINO3_7445
if 
  not is_minigame_in_progress 
goto_if_false @CASINO3_7445
set_player_control $player1 {state} True

:CASINO3_7445
if 
  locate_char_any_means_3d $scplayer {x} 1918.59 {y} 958.3391 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO3_7728
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO3_7630
set_player_control $player1 {state} False
if 
  is_char_stopped $scplayer
goto_if_false @CASINO3_7623
69@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 69@ {heading} 197.2609
change_car_colour 69@ {color1} 4 {color2} 2
if 
  not is_car_dead 69@
goto_if_false @CASINO3_7616
68@ = create_char_inside_car 69@ {pedType} PedType.Mission2 {modelId} 117
67@ = create_char_as_passenger 69@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:CASINO3_7616
55@ = 15

:CASINO3_7623
goto @CASINO3_7728

:CASINO3_7630
set_player_control $player1 {state} False
69@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 69@ {heading} 197.2609
change_car_colour 69@ {color1} 4 {color2} 2
if 
  not is_car_dead 69@
goto_if_false @CASINO3_7721
68@ = create_char_inside_car 69@ {pedType} PedType.Mission2 {modelId} 117
67@ = create_char_as_passenger 69@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:CASINO3_7721
55@ = 15

:CASINO3_7728
if 
  55@ == 15
goto_if_false @CASINO3_8013
mark_car_as_no_longer_needed 179@
mark_car_as_no_longer_needed 58@
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
clear_prints 
clear_area 1913.682 {y} 962.0125 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_area 1903.468 {y} 967.1692 {z} 9.8127 {radius} 20.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 1922.234 {y} 951.8628 {z} 12.2282 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1921.715 {y} 952.7101 {z} 12.1171 {switchStyle} SwitchType.JumpCut
55@ = 17
TIMERA = 0
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO3_7967
166@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 166@
perform_sequence_task $scplayer {sequence} 166@
clear_sequence_task 166@
goto @CASINO3_8013

:CASINO3_7967
166@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 166@
perform_sequence_task $scplayer {sequence} 166@
clear_sequence_task 166@

:CASINO3_8013
if 
  55@ == 17
goto_if_false @CASINO3_8077
if 
  TIMERA > 1000
goto_if_false @CASINO3_8077
55@ = 20
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart

:CASINO3_8077
if 
  55@ == 20
goto_if_false @CASINO3_8380
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8180
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8180
if 
  TIMERA > 4000
goto_if_false @CASINO3_8380
55@ = 30
if 
  not is_char_dead 68@
goto_if_false @CASINO3_8380
if 
  not is_car_dead 69@
goto_if_false @CASINO3_8380
task_car_drive_to_coord 68@ {vehicle} 69@ {x} 1909.04 {y} 959.7415 {z} 9.8203 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_fixed_camera_position 1914.8311 {y} 962.6716 {z} 11.3214 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1913.837 {y} 962.5726 {z} 11.2813 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1913.682 {y} 962.0125 {z} 9.8203
set_char_heading $scplayer {heading} 100.3
TIMERA = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop

:CASINO3_8380
if 
  55@ == 30
goto_if_false @CASINO3_8572
if 
  not is_car_dead 69@
goto_if_false @CASINO3_8572
if 
  locate_car_2d 69@ {x} 1909.04 {y} 959.7415 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_8519
55@ = 35
if 
  not is_char_dead 67@
goto_if_false @CASINO3_8485
task_look_at_char 67@ {target} $scplayer {time} -1

:CASINO3_8485
240@ = 10
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
TIMERA = 0

:CASINO3_8519
if 
  TIMERA > 10000
goto_if_false @CASINO3_8572
55@ = 35
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
TIMERA = 0

:CASINO3_8572
if 
  55@ == 35
goto_if_false @CASINO3_8735
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8675
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8675
if 
  TIMERA > 3000
goto_if_false @CASINO3_8735
55@ = 36
TIMERA = 0
247@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop

:CASINO3_8735
if 
  247@ > 0
goto_if_false @CASINO3_8876
if 
  243@ == 0
goto_if_false @CASINO3_8876
switch_start 247@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO3_8876 {caseNum1} 1 {caseLabel1} @CASINO3_8834 {caseNum2} 2 {caseLabel2} @CASINO3_8855 {caseNum3} -1 {caseLabel3} @CASINO3_8876 {caseNum4} -1 {caseLabel4} @CASINO3_8876 {caseNum5} -1 {caseLabel5} @CASINO3_8876 {caseNum6} -1 {caseLabel6} @CASINO3_8876 {caseNum7} -1 {caseLabel7} @CASINO3_8876

:CASINO3_8834
240@ = 11
247@ = 2
goto @CASINO3_8876

:CASINO3_8855
240@ = 12
247@ = 0
goto @CASINO3_8876

:CASINO3_8876
if 
  55@ == 36
goto_if_false @CASINO3_9128
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8979
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8979
if 
  TIMERA > 2000
goto_if_false @CASINO3_9128
if 
  TIMERA > 4000
goto_if_false @CASINO3_9128
if 
  not is_car_dead 69@
goto_if_false @CASINO3_9128
if 
  not is_char_dead 68@
goto_if_false @CASINO3_9128
clear_char_tasks 68@
55@ = 37
task_car_drive_to_coord 68@ {vehicle} 69@ {x} 1915.04 {y} 940.7415 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
TIMERA = 0
if 
  not is_char_dead 67@
goto_if_false @CASINO3_9128
task_look_at_char $scplayer {target} 67@ {time} -1

:CASINO3_9128
if 
  55@ == 37
goto_if_false @CASINO3_9257
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_9231
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_9231
if 
  TIMERA > 4000
goto_if_false @CASINO3_9257
55@ = 40

:CASINO3_9257
if 
  55@ == 40
goto_if_false @CASINO3_9497
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_9360
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_9360
157@ = 0
if 
  not is_char_dead 67@
goto_if_false @CASINO3_9393
clear_char_tasks_immediately 67@
delete_char 67@

:CASINO3_9393
if 
  not is_char_dead 68@
goto_if_false @CASINO3_9419
clear_char_tasks_immediately 68@
delete_char 68@

:CASINO3_9419
delete_car 69@
switch_widescreen False
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.82 {z} 11.438
set_object_heading $init_ped_density {heading} 0.0
55@ = 45
clear_prints 
goto @CASINO3_14153

:CASINO3_9497
if 
  1 > 55@
goto_if_false @CASINO3_10055
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1030.105 {leftBottomY} 2095.7151 {rightTopX} 1054.818 {rightTopY} 2098.7781 {angle} 30.0 {drawSphere} False
goto_if_false @CASINO3_9692
if 
  149@ == 0
goto_if_false @CASINO3_9625
if 
  not is_char_dead 71@
goto_if_false @CASINO3_9625
if 
  has_char_spotted_char_in_front 71@ {handle} $scplayer
goto_if_false @CASINO3_9625
149@ = 1
150@ = 1

:CASINO3_9625
if 
  149@ == 0
goto_if_false @CASINO3_9692
if 
  not is_char_dead 72@
goto_if_false @CASINO3_9692
if 
  has_char_spotted_char_in_front 72@ {handle} $scplayer
goto_if_false @CASINO3_9692
149@ = 1
150@ = 1

:CASINO3_9692
if 
  149@ == 0
goto_if_false @CASINO3_9759
if 
  does_char_exist 71@
goto_if_false @CASINO3_9759
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @CASINO3_9759
149@ = 1
150@ = 1

:CASINO3_9759
if 
  149@ == 0
goto_if_false @CASINO3_9826
if 
  does_char_exist 72@
goto_if_false @CASINO3_9826
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @CASINO3_9826
149@ = 1
150@ = 1

:CASINO3_9826
if 
  149@ == 0
goto_if_false @CASINO3_9893
if 
  not is_car_dead 58@
goto_if_false @CASINO3_9893
if 
  has_car_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @CASINO3_9893
149@ = 1
150@ = 1

:CASINO3_9893
if 
  149@ == 3
goto_if_false @CASINO3_9974
if 
  does_char_exist 71@
goto_if_false @CASINO3_9974
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @CASINO3_9974
149@ = 4
gosub @CASINO3_12715
55@ = 1
53@ = 99

:CASINO3_9974
if 
  149@ == 3
goto_if_false @CASINO3_10055
if 
  does_char_exist 72@
goto_if_false @CASINO3_10055
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @CASINO3_10055
149@ = 4
gosub @CASINO3_12715
55@ = 1
53@ = 99

:CASINO3_10055
if 
  150@ == 1
goto_if_false @CASINO3_10271
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1039.3 {y} 2100.4351 {z} 12.2503 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1040.13 {y} 2099.906 {z} 12.0705 {switchStyle} SwitchType.JumpCut
240@ = 1
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10184
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10184
task_look_at_char 71@ {target} 72@ {time} -1

:CASINO3_10184
240@ = 1
TIMERB = 0
150@ = 3
if 
  not is_char_dead 76@
goto_if_false @CASINO3_10271
if 
  not is_car_dead 61@
goto_if_false @CASINO3_10271
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.804 {y} 2080.491 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_10271
if 
  150@ == 3
goto_if_false @CASINO3_10355
if 
  TIMERB > 1000
goto_if_false @CASINO3_10315
36@ = 1

:CASINO3_10315
if 
  TIMERB > 3000
goto_if_false @CASINO3_10355
150@ = 5
240@ = 2
TIMERB = 0

:CASINO3_10355
if 
  150@ == 5
goto_if_false @CASINO3_10475
if 
  not is_car_dead 58@
goto_if_false @CASINO3_10475
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10461
clear_char_tasks 71@
137@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1062.345 {y} 2087.3181 {z} 9.8203 {speed} MoveState.Run {time} 10000
close_sequence_task 137@
perform_sequence_task 71@ {sequence} 137@
clear_sequence_task 137@

:CASINO3_10461
150@ = 6
TIMERB = 0

:CASINO3_10475
if 
  150@ == 6
goto_if_false @CASINO3_10614
if 
  TIMERB > 1000
goto_if_false @CASINO3_10614
if 
  not is_car_dead 58@
goto_if_false @CASINO3_10614
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10600
clear_char_tasks 72@
138@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1056.874 {y} 2084.136 {z} 9.8203 {speed} MoveState.Run {time} 10000
close_sequence_task 138@
perform_sequence_task 72@ {sequence} 138@
clear_sequence_task 138@

:CASINO3_10600
TIMERB = 0
150@ = 8

:CASINO3_10614
if 
  150@ == 8
goto_if_false @CASINO3_10658
if 
  TIMERB > 3700
goto_if_false @CASINO3_10658
150@ = 10

:CASINO3_10658
if 
  150@ == 10
goto_if_false @CASINO3_10878
switch_widescreen False
36@ = 0
set_char_heading $scplayer {heading} 228.0
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10748
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} 1073.558 {y} 2094.4131 {z} 13.6896
set_char_heading 71@ {heading} 83.0

:CASINO3_10748
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10799
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} 1066.0959 {y} 2098.8501 {z} 13.7429
set_char_heading 72@ {heading} 132.0

:CASINO3_10799
if 
  not is_car_dead 61@
goto_if_false @CASINO3_10835
set_car_coordinates 61@ {x} 1076.804 {y} 2080.491 {z} 9.8203

:CASINO3_10835
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
print_now 'CA3_8' {time} 6000 {flag} 1
set_player_control $player1 {state} True
150@ = 99
149@ = 99

:CASINO3_10878
if 
  141@ == 1
goto_if_false @CASINO3_11425
284@ = 0

:CASINO3_10903
if 
  9 > 284@
goto_if_false @CASINO3_11256
if 
  275@(284@,9i) == 0
goto_if_false @CASINO3_11242
52@ = get_object_health 257@(284@,9i)
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Spas12
goto_if_false @CASINO3_10984
52@ = 0

:CASINO3_10984
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Shotgun
goto_if_false @CASINO3_11013
52@ = 0

:CASINO3_11013
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Sawnoff
goto_if_false @CASINO3_11042
52@ = 0

:CASINO3_11042
if 
  52@ == 0
goto_if_false @CASINO3_11242
125@, 126@, 127@ = get_object_coordinates 257@(284@,9i)
create_fx_system "OVERHEAT_CAR_ELECTRIC" {x} 125@ {y} 126@ {z} 127@ {ignoreBoundingChecks} True {var_handle} 248@(284@,9i)
127@ += 1.0
add_explosion_variable_shake 125@ {y} 126@ {z} 127@ {type} 11 {shake} 1.0
break_object 257@(284@,9i) {intensity} 1
remove_blip 40@(284@,11i)
make_object_targettable 257@(284@,9i) {state} False
if 
  51@ <> 99
goto_if_false @CASINO3_11207
kill_fx_system 248@(51@,9i)

:CASINO3_11207
play_fx_system 248@(284@,9i)
set_lvar_int_to_lvar_int 51@ = 284@
275@(284@,9i) += 1
117@ += 1

:CASINO3_11242
284@ += 1
goto @CASINO3_10903

:CASINO3_11256
if 
  148@ == 0
goto_if_false @CASINO3_11393
if 
  not is_char_dead 81@
goto_if_false @CASINO3_11393
if 
  locate_char_any_means_3d 81@ {x} 1067.5811 {y} 2122.251 {z} 9.8203 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_11393
clear_char_tasks 81@
129@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 60
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@
148@ = 1

:CASINO3_11393
if 
  117@ == 9
goto_if_false @CASINO3_11425
55@ = 8
141@ = 99

:CASINO3_11425
if 
  186@ == 0
goto_if_false @CASINO3_11870
if 
  117@ == 3
goto_if_false @CASINO3_11870
172@ = create_char PedType.Mission1 {modelId} 50 {x} 1020.017 {y} 2082.8999 {z} 17.9296
give_weapon_to_char 172@ {weaponType} WeaponType.Spas12 {ammo} 2000
set_char_heading 172@ {heading} 269.9465
set_char_decision_maker 172@ {handleOrTemplate} 73@
if 
  not is_char_dead 172@
goto_if_false @CASINO3_11599
clear_char_tasks 172@
175@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1038.717 {y} 2082.7981 {z} 13.9297 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 175@
perform_sequence_task 172@ {sequence} 175@
clear_sequence_task 175@

:CASINO3_11599
173@ = create_char PedType.Mission1 {modelId} 50 {x} 1020.263 {y} 2097.1851 {z} 13.9297
give_weapon_to_char 173@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 173@ {heading} 274.9465
set_char_decision_maker 173@ {handleOrTemplate} 73@
if 
  not is_char_dead 173@
goto_if_false @CASINO3_11725
clear_char_tasks 173@
176@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1038.426 {y} 2098.644 {z} 9.8203 {speed} MoveState.Run {time} -2
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 176@
perform_sequence_task 173@ {sequence} 176@
clear_sequence_task 176@

:CASINO3_11725
174@ = create_char PedType.Mission1 {modelId} 50 {x} 1019.671 {y} 2078.126 {z} 13.9297
give_weapon_to_char 174@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_heading 174@ {heading} 267.9465
set_char_decision_maker 174@ {handleOrTemplate} 73@
if 
  not is_char_dead 174@
goto_if_false @CASINO3_11863
clear_char_tasks 174@
177@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1068.708 {y} 2085.24 {z} 9.8203 {speed} MoveState.Run {time} -2
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 177@
perform_sequence_task 174@ {sequence} 177@
clear_sequence_task 177@

:CASINO3_11863
186@ = 1

:CASINO3_11870
if 
  187@ == 0
goto_if_false @CASINO3_12006
if 
  117@ > 5
goto_if_false @CASINO3_12006
custom_plate_for_next_car 445 {text} "G1RUYHUN"
179@ = create_car 445 {x} 1029.856 {y} 2142.8579 {z} 9.813
set_car_heading 179@ {heading} 205.1437
change_car_colour 179@ {color1} 123 {color2} 10
set_car_proofs 179@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 179@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 179@ {state} True
set_can_burst_car_tyres 179@ {state} False
187@ = 1

:CASINO3_12006
if 
  187@ == 1
goto_if_false @CASINO3_12293
if 
  117@ > 5
goto_if_false @CASINO3_12293
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12293
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 179@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @CASINO3_12293
178@ = create_char_inside_car 179@ {pedType} PedType.Mission1 {modelId} 124
set_char_decision_maker 178@ {handleOrTemplate} 73@
give_weapon_to_char 178@ {weaponType} WeaponType.MicroUzi {ammo} 2000
180@ = create_char_as_passenger 179@ {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.RearLeft
set_char_decision_maker 180@ {handleOrTemplate} 73@
give_weapon_to_char 180@ {weaponType} WeaponType.MicroUzi {ammo} 2000
task_drive_by 180@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
181@ = create_char_as_passenger 179@ {pedType} PedType.Mission1 {modelId} 127 {seat} SeatId.RearRight
set_char_decision_maker 181@ {handleOrTemplate} 73@
give_weapon_to_char 181@ {weaponType} WeaponType.MicroUzi {ammo} 2000
task_drive_by 181@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
freeze_car_position 179@ {state} False
set_car_temp_action 179@ {actionId} TempAction.GoForward {time} 5500
lock_car_doors 179@ {lockStatus} CarLock.Unlocked
187@ = 2
TIMERB = 0

:CASINO3_12293
if 
  187@ == 2
goto_if_false @CASINO3_12446
if 
  TIMERB > 6500
goto_if_false @CASINO3_12446
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12446
if 
  not is_char_dead 178@
goto_if_false @CASINO3_12446
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12446
set_car_proofs 179@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_tasks 178@
182@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 182@
perform_sequence_task 178@ {sequence} 182@
clear_sequence_task 182@
187@ = 3
TIMERB = 0

:CASINO3_12446
if 
  187@ == 3
goto_if_false @CASINO3_12577
if 
  TIMERB > 15000
goto_if_false @CASINO3_12577
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12577
if 
  not is_char_dead 181@
goto_if_false @CASINO3_12577
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12577
clear_char_tasks 181@
184@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 184@
perform_sequence_task 181@ {sequence} 184@
clear_sequence_task 184@
187@ = 4

:CASINO3_12577
if 
  187@ == 4
goto_if_false @CASINO3_12708
if 
  TIMERB > 25000
goto_if_false @CASINO3_12708
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12708
if 
  not is_char_dead 180@
goto_if_false @CASINO3_12708
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12708
clear_char_tasks 180@
183@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 183@
perform_sequence_task 180@ {sequence} 183@
clear_sequence_task 183@
187@ = 5

:CASINO3_12708
goto @CASINO3_2945

:CASINO3_12715
if 
  not is_char_dead 71@
goto_if_false @CASINO3_12739
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_12739
if 
  not is_char_dead 72@
goto_if_false @CASINO3_12763
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_12763
if 
  not is_char_dead 74@
goto_if_false @CASINO3_12819
set_char_coordinates 74@ {x} 1084.126 {y} 2107.637 {z} 14.3504
set_char_heading 74@ {heading} 111.4468
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000

:CASINO3_12819
88@ = create_char PedType.Mission1 {modelId} 124 {x} 1084.71 {y} 2116.7361 {z} 14.3504
set_char_heading 88@ {heading} 94.4201
give_weapon_to_char 88@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 88@ {handleOrTemplate} 73@
return 

:CASINO3_12873
if 
  144@ == 0
goto_if_false @CASINO3_13435
if 
  not is_char_dead 87@
goto_if_false @CASINO3_12948
clear_char_tasks 87@
135@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 135@
perform_sequence_task 87@ {sequence} 135@
clear_sequence_task 135@

:CASINO3_12948
if 
  not is_char_dead 81@
goto_if_false @CASINO3_13023
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1067.5811 {y} 2122.251 {z} 9.8203 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@

:CASINO3_13023
if 
  not is_char_dead 82@
goto_if_false @CASINO3_13109
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1085.5959 {y} 2106.8301 {z} 9.8203 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 2.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 82@ {sequence} 128@
clear_sequence_task 128@

:CASINO3_13109
if 
  not is_char_dead 83@
goto_if_false @CASINO3_13202
130@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1082.391 {y} 2091.1299 {z} 14.3504 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 130@
perform_sequence_task 83@ {sequence} 130@
clear_sequence_task 130@

:CASINO3_13202
if 
  not is_char_dead 89@
goto_if_false @CASINO3_13238
clear_char_tasks 89@
task_kill_char_on_foot 89@ {target} $scplayer
task_stay_in_same_place 89@ {state} True

:CASINO3_13238
if 
  not is_char_dead 74@
goto_if_false @CASINO3_13277
clear_char_tasks 74@
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000
task_kill_char_on_foot 74@ {target} $scplayer

:CASINO3_13277
if 
  not is_char_dead 75@
goto_if_false @CASINO3_13380
clear_char_tasks 75@
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_coordinates 75@ {x} 1057.0551 {y} 2122.3191 {z} 13.6896
set_char_heading 75@ {heading} 279.0
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 75@ {sequence} 79@
clear_sequence_task 79@

:CASINO3_13380
if 
  not is_char_dead 71@
goto_if_false @CASINO3_13404
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_13404
if 
  not is_char_dead 72@
goto_if_false @CASINO3_13428
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_13428
144@ = 1

:CASINO3_13435
return 

:CASINO3_13437
if 
  144@ == 0
goto_if_false @CASINO3_14078
if 
  not is_char_dead 87@
goto_if_false @CASINO3_13512
clear_char_tasks 87@
135@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 135@
perform_sequence_task 87@ {sequence} 135@
clear_sequence_task 135@

:CASINO3_13512
if 
  not is_char_dead 88@
goto_if_false @CASINO3_13569
clear_char_tasks 88@
136@ = open_sequence_task 
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 136@
perform_sequence_task 88@ {sequence} 136@
clear_sequence_task 136@

:CASINO3_13569
if 
  not is_char_dead 74@
goto_if_false @CASINO3_13636
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000
clear_char_tasks 74@
78@ = open_sequence_task 
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 78@
perform_sequence_task 74@ {sequence} 78@
clear_sequence_task 78@

:CASINO3_13636
if 
  not is_char_dead 75@
goto_if_false @CASINO3_13739
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 2000
clear_char_tasks 75@
set_char_coordinates 75@ {x} 1057.0551 {y} 2122.3191 {z} 13.6896
set_char_heading 75@ {heading} 279.0
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 75@ {sequence} 79@
clear_sequence_task 79@

:CASINO3_13739
if 
  not is_char_dead 81@
goto_if_false @CASINO3_13814
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1067.5811 {y} 2122.251 {z} 9.8203 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@

:CASINO3_13814
if 
  not is_char_dead 82@
goto_if_false @CASINO3_13894
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1085.5959 {y} 2106.8301 {z} 9.8203 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 2.0 {target} $scplayer
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 82@ {sequence} 128@
clear_sequence_task 128@

:CASINO3_13894
if 
  not is_char_dead 83@
goto_if_false @CASINO3_13987
130@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1082.391 {y} 2091.1299 {z} 14.3504 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 130@
perform_sequence_task 83@ {sequence} 130@
clear_sequence_task 130@

:CASINO3_13987
if 
  not is_char_dead 89@
goto_if_false @CASINO3_14023
clear_char_tasks 89@
task_stay_in_same_place 89@ {state} True
task_kill_char_on_foot 89@ {target} $scplayer

:CASINO3_14023
if 
  not is_char_dead 71@
goto_if_false @CASINO3_14047
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_14047
if 
  not is_char_dead 72@
goto_if_false @CASINO3_14071
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_14071
144@ = 1

:CASINO3_14078
return 

:CASINO3_14080
if 
  not is_char_dead 80@
goto_if_false @CASINO3_14133
131@ = open_sequence_task 
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 131@
perform_sequence_task 80@ {sequence} 131@
clear_sequence_task 131@

:CASINO3_14133
return 

:CASINO3_14135
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO3_14153
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO3'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 20
add_score $player1 {money} 10000
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point 2026.603 {y} 1007.735 {z} 9.8127 {sprite} $casino_blip_icon
return 

:CASINO3_14245
if 
  not is_car_dead 58@
goto_if_false @CASINO3_14276
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_14276
if 
  not is_car_dead 179@
goto_if_false @CASINO3_14307
set_car_proofs 179@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_14307
if 
  does_object_exist $init_ped_density
goto_if_false @CASINO3_14353
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $init_ped_density {heading} 0.0

:CASINO3_14353
set_max_wanted_level 34@
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
if 
  does_object_exist $2663
goto_if_false @CASINO3_14404
set_object_coordinates $2663 {x} 1055.629 {y} 2087.6699 {z} 12.469

:CASINO3_14404
remove_blip 37@
remove_blip 39@
284@ = 0

:CASINO3_14421
if 
  9 > 284@
goto_if_false @CASINO3_14462
remove_blip 40@(284@,11i)
284@ += 1
goto @CASINO3_14421

:CASINO3_14462
if 
  51@ <> 99
goto_if_false @CASINO3_14489
kill_fx_system 248@(51@,9i)

:CASINO3_14489
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 351
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 530
remove_all_script_fires 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 87---------------
// Originally: Fish in a Barrel

:CASINO7
script_name 'CASINO7'
gosub @CASINO7_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO7_38
gosub @CASINO7_301

:CASINO7_38
gosub @CASINO7_360
terminate_this_script 

:CASINO7_47
load_mission_text 'CASINO7'
register_mission_given 
$onmission = 1
wait 0
set_area_visible 11
load_cutscene 'CAS_7B'

:CASINO7_86
if 
  not has_cutscene_loaded 
goto_if_false @CASINO7_110
wait 0
goto @CASINO7_86

:CASINO7_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO7_119
if 
  not has_cutscene_finished 
goto_if_false @CASINO7_143
wait 0
goto @CASINO7_119

:CASINO7_143
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO7_156
if 
  get_fading_status 
goto_if_false @CASINO7_180
wait 0
goto @CASINO7_156

:CASINO7_180
clear_cutscene 
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
request_collision 2025.8 {y} 1007.87
load_scene_in_direction 2025.8 {y} 1007.87 {z} 9.81 {heading} 279.83
set_char_coordinates $scplayer {x} 2025.8 {y} 1007.87 {z} 9.81
set_char_heading $scplayer {heading} 279.83
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 2000 {direction} Fade.In
goto @CASINO7_319

:CASINO7_301
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO7_319
remove_blip $casino_contact_blip
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO7'
set_int_stat StatId.PassedCasino7 {value} 1
clear_wanted_level $player1
player_made_progress 1
return 

:CASINO7_360
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 88---------------
// Originally: Don Peyote

:CASINO4
script_name 'CASINO4'
gosub @CASINO4_86
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO4_38
gosub @CASINO4_45852

:CASINO4_38
gosub @CASINO4_45937
terminate_this_script 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:CASINO4_62
if 
  get_fading_status 
goto_if_false @CASINO4_86
wait 0
goto @CASINO4_62

:CASINO4_86
register_mission_given 
$onmission = 1
force_weather WeatherType.SunnyVegas
load_mission_text 'CASINO4'
load_cutscene 'CAS_4A'

:CASINO4_121
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_145
wait 0
goto @CASINO4_121

:CASINO4_145
clear_area 2027.359 {y} 1007.738 {z} 9.8127 {radius} 10.0 {clearParticles} True
set_char_heading $scplayer {heading} 265.5486
294@ = get_game_timer 
295@ = 0
if 
  295@ == 99
goto_if_false @CASINO4_316
289@ = create_car 291@ {x} 2044.621 {y} 1110.198 {z} 9.6719
290@ = create_random_char_as_driver 289@
73@ = create_random_char_as_driver 289@
75@ = create_random_char_as_driver 289@
74@ = create_random_char_as_driver 289@
76@ = create_random_char_as_driver 289@
136@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True
137@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True

:CASINO4_316
make_player_gang_disappear 
start_cutscene 
do_fade 1000 {direction} Fade.In
TIMERA = 0

:CASINO4_334
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_857
293@ = get_game_timer 
set_lvar_int_to_lvar_int 296@ = 293@
sub_int_lvar_from_int_lvar 296@ -= 294@
if 
  296@ > 15000
goto_if_false @CASINO4_846
if 
  TIMERA > 2000
goto_if_false @CASINO4_846
switch_start 295@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_832 {caseNum1} 0 {caseLabel1} @CASINO4_469 {caseNum2} 1 {caseLabel2} @CASINO4_574 {caseNum3} 2 {caseLabel3} @CASINO4_647 {caseNum4} 3 {caseLabel4} @CASINO4_752 {caseNum5} -1 {caseLabel5} @CASINO4_839 {caseNum6} -1 {caseLabel6} @CASINO4_839 {caseNum7} -1 {caseLabel7} @CASINO4_839

:CASINO4_469
291@, 292@ = get_random_car_model_in_memory True
if 
  291@ <> -1
goto_if_false @CASINO4_560
289@ = create_car 291@ {x} 2051.5439 {y} 1100.511 {z} 9.6719
set_vehicle_to_fade_in 289@ {alpha} 0
set_car_heading 289@ {heading} 183.2183
290@ = create_random_char_as_driver 289@
car_wander_randomly 289@
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@

:CASINO4_560
295@ += 1
goto @CASINO4_839

:CASINO4_574
290@ = create_random_char 2034.814 {y} 993.6725 {z} 9.813
set_char_heading 290@ {heading} 357.2051
task_follow_path_nodes_to_coord 290@ {x} 2033.856 {y} 1051.804 {z} 9.8203 {speed} MoveState.Walk {time} -2
mark_char_as_no_longer_needed 290@
295@ += 1
goto @CASINO4_839

:CASINO4_647
291@, 292@ = get_random_car_model_in_memory True
if 
  291@ <> -1
goto_if_false @CASINO4_738
289@ = create_car 291@ {x} 2051.5439 {y} 1100.511 {z} 9.6719
set_vehicle_to_fade_in 289@ {alpha} 0
set_car_heading 289@ {heading} 183.2183
290@ = create_random_char_as_driver 289@
car_wander_randomly 289@
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@

:CASINO4_738
295@ += 1
goto @CASINO4_839

:CASINO4_752
290@ = create_random_char 2033.856 {y} 1041.804 {z} 9.8203
set_char_heading 290@ {heading} 181.0345
task_follow_path_nodes_to_coord 290@ {x} 2032.257 {y} 986.0109 {z} 9.813 {speed} MoveState.Walk {time} -2
mark_char_as_no_longer_needed 290@
295@ = 0
goto @CASINO4_839
295@ = 0

:CASINO4_832
goto @CASINO4_839

:CASINO4_839
TIMERA = 0

:CASINO4_846
wait 0
goto @CASINO4_334

:CASINO4_857
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_870
if 
  get_fading_status 
goto_if_false @CASINO4_894
wait 0
goto @CASINO4_870

:CASINO4_894
clear_cutscene 
make_player_gang_reappear 
release_weather 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
39@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 39@
37@ = load_char_decision_maker DecisionMakerType.Tough
38@ = load_char_decision_maker DecisionMakerType.Empty
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:CASINO4_957
if 
  get_fading_status 
goto_if_false @CASINO4_981
wait 0
goto @CASINO4_957

:CASINO4_981
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@
wait 0
load_special_character 1 {modelName} 'MACCER'
load_special_character 2 {modelName} 'PAUL'
load_all_models_now 

:CASINO4_1023
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @CASINO4_1053
wait 0
goto @CASINO4_1023

:CASINO4_1053
switch_widescreen False
44@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
98@ = 0
63@ = 0
64@ = 0
65@ = 0
91@ = 0.0
92@ = 0.0
93@ = 0.0
95@ = 0.0
96@ = 0.0
97@ = 0.0
99@ = 0
100@ = 0

:CASINO4_1292
if 
  4 > 99@
goto_if_false @CASINO4_1335
101@(99@,4i) = 0
99@ += 1
goto @CASINO4_1292

:CASINO4_1335
119@ = 0
120@ = 0
135@ = 0
121@ = 0
122@ = 0
123@ = 0
133@ = 0
134@ = 0
124@ = 0
125@ = 0
126@ = 0
130@ = 0
131@ = 0
132@ = 99999
94@ = 0.0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
282@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
127@ = 0
128@ = 0
set_var_text_label s$c2_cp[7] = 'CAS4_BA'
set_var_text_label s$c2_cp[8] = 'CAS4_BB'
set_var_text_label s$c2_cp[9] = 'CAS4_CA'
set_var_text_label s$c2_cp[10] = 'CAS4_CB'
set_var_text_label s$c2_cp[11] = 'CAS4_CC'
set_var_text_label s$c2_cp[12] = 'CAS4_CD'
set_var_text_label s$c2_cp[13] = 'CAS4_CE'
set_var_text_label s$c2_cp[14] = 'CAS4_CF'
set_var_text_label s$c2_cp[15] = 'CAS4_CG'
set_var_text_label s$c2_cp[16] = 'CAS4_CH'
set_var_text_label s$c2_cp[17] = 'CAS4_CJ'
set_var_text_label s$c2_cp[18] = 'CAS4_CK'
set_var_text_label s$c2_cp[19] = 'CAS4_CL'
set_var_text_label s$c2_cp[20] = 'CAS4_DA'
set_var_text_label s$c2_cp[21] = 'CAS4_DB'
set_var_text_label s$c2_cp[22] = 'CAS4_DC'
set_var_text_label s$c2_cp[23] = 'CAS4_DD'
set_var_text_label s$c2_cp[24] = 'CAS4_DE'
set_var_text_label s$c2_cp[25] = 'CAS4_EA'
set_var_text_label s$c2_cp[26] = 'CAS4_EB'
set_var_text_label s$c2_cp[27] = 'CAS4_EC'
set_var_text_label s$c2_cp[28] = 'CAS4_ED'
set_var_text_label s$c2_cp[29] = 'CAS4_EE'
set_var_text_label s$c2_cp[30] = 'CAS4_EF'
set_var_text_label s$c2_cp[31] = 'CAS4_EG'
set_var_text_label s$c2_cp[32] = 'CAS4_EH'
set_var_text_label s$c2_cp[33] = 'CAS4_FA'
set_var_text_label s$c2_cp[34] = 'CAS4_FB'
set_var_text_label s$c2_cp[35] = 'CAS4_FC'
set_var_text_label s$c2_cp[36] = 'CAS4_GA'
set_var_text_label s$c2_cp[37] = 'CAS4_GB'
set_var_text_label s$c2_cp[38] = 'CAS4_HA'
set_var_text_label s$c2_cp[39] = 'CAS4_HB'
set_var_text_label s$c2_cp[40] = 'CAS4_HC'
set_var_text_label s$c2_cp[41] = 'CAS4_HD'
set_var_text_label s$c2_cp[42] = 'CAS4_JA'
set_var_text_label s$c2_cp[43] = 'CAS4_JB'
set_var_text_label s$c2_cp[44] = 'CAS4_JC'
set_var_text_label s$c2_cp[45] = 'CAS4_JD'
set_var_text_label s$c2_cp[46] = 'CAS4_KA'
set_var_text_label s$c2_cp[47] = 'CAS4_KB'
set_var_text_label s$c2_cp[48] = 'CAS4_KC'
set_var_text_label s$c2_cp[49] = 'CAS4_KD'
set_var_text_label s$c2_cp[50] = 'CAS4_KE'
set_var_text_label s$c2_cp[51] = 'CAS4_KF'
set_var_text_label s$c2_cp[52] = 'CAS4_KG'
set_var_text_label s$c2_cp[53] = 'CAS4_KH'
set_var_text_label s$c2_cp[54] = 'CAS4_KJ'
set_var_text_label s$c2_cp[55] = 'CAS4_LA'
set_var_text_label s$c2_cp[56] = 'CAS4_LB'
set_var_text_label s$c2_cp[57] = 'CAS4_LC'
set_var_text_label s$c2_cp[58] = 'CAS4_LD'
set_var_text_label s$c2_cp[59] = 'CAS4_LE'
set_var_text_label s$c2_cp[60] = 'CAS4_MA'
set_var_text_label s$c2_cp[61] = 'CAS4_NA'
set_var_text_label s$c2_cp[62] = 'CAS4_NB'
set_var_text_label s$c2_cp[63] = 'CAS4_NC'
set_var_text_label s$c2_cp[64] = 'CAS4_ND'
set_var_text_label s$c2_cp[65] = 'CAS4_NE'
set_var_text_label s$c2_cp[66] = 'CAS4_NF'
set_var_text_label s$c2_cp[67] = 'CAS4_NG'
set_var_text_label s$c2_cp[68] = 'CAS4_NH'
set_var_text_label s$c2_cp[69] = 'CAS4_NJ'
set_var_text_label s$c2_cp[70] = 'CAS4_OA'
set_var_text_label s$c2_cp[71] = 'CAS4_OB'
set_var_text_label s$c2_cp[72] = 'CAS4_OC'
set_var_text_label s$c2_cp[73] = 'CAS4_OD'
set_var_text_label s$c2_cp[74] = 'CAS4_OE'
set_var_text_label s$c2_cp[75] = 'CAS4_OF'
set_var_text_label s$c2_cp[76] = 'CAS4_OG'
set_var_text_label s$c2_cp[77] = 'CAS4_OH'
set_var_text_label s$c2_cp[78] = 'CAS4_OJ'
set_var_text_label s$c2_cp[79] = 'CAS4_OK'
set_var_text_label s$c2_cp[80] = 'CAS4_OL'
set_var_text_label s$c2_cp[81] = 'CAS4_OM'
set_var_text_label s$c2_cp[82] = 'CAS4_PA'
set_var_text_label s$c2_cp[83] = 'CAS4_PB'
set_var_text_label s$c2_cp[85] = 'CAS4_PD'
set_var_text_label s$c2_cp[86] = 'CAS4_PE'
set_var_text_label s$c2_cp[87] = 'CAS4_PF'
set_var_text_label s$c2_cp[88] = 'CAS4_PG'
set_var_text_label s$c2_cp[89] = 'CAS4_PH'
set_var_text_label s$c2_cp[90] = 'CAS4_PJ'
set_var_text_label s$c2_cp[91] = 'CAS4_PK'
set_var_text_label s$c2_cp[92] = 'CAS4_QA'
set_var_text_label s$c2_cp[93] = 'CAS4_QB'
set_var_text_label s$c2_cp[94] = 'CAS4_RA'
set_var_text_label s$c2_cp[95] = 'CAS4_RB'
set_var_text_label s$c2_cp[97] = 'CAS4_RD'
set_var_text_label s$c2_cp[98] = 'CAS4_RE'
set_var_text_label s$c2_cp[99] = 'CAS4_SA'
set_var_text_label s$c2_cp[100] = 'CAS4_TA'
set_var_text_label s$c2_cp[101] = 'CAS4_TB'
set_var_text_label s$c2_cp[102] = 'CAS4_TC'
set_var_text_label s$c2_cp[103] = 'CAS4_FD'
set_var_text_label s$c2_cp[104] = 'CAS4_FE'
set_var_text_label s$c2_cp[105] = 'CAS4_FF'
set_var_text_label s$c2_cp[106] = 'CAS4_FG'
set_var_text_label s$c2_cp[107] = 'CAS4_FH'
set_var_text_label s$c2_cp[108] = 'CAS4_FJ'
set_var_text_label s$c2_cp[109] = 'CAS4_FK'
set_var_text_label s$c2_cp[110] = 'CAS4_FL'
set_var_text_label s$c2_cp[111] = 'MACX_AF'
set_var_text_label s$c2_cp[112] = 'MACX_AG'
set_var_text_label s$c2_cp[113] = 'MACX_AI'
set_lvar_int_to_constant 145@ = 15400
set_lvar_int_to_constant 146@ = 15401
set_lvar_int_to_constant 147@ = 15402
set_lvar_int_to_constant 148@ = 15403
set_lvar_int_to_constant 149@ = 15404
set_lvar_int_to_constant 150@ = 15405
set_lvar_int_to_constant 151@ = 15406
set_lvar_int_to_constant 152@ = 15407
set_lvar_int_to_constant 153@ = 15408
set_lvar_int_to_constant 154@ = 15409
set_lvar_int_to_constant 155@ = 15410
set_lvar_int_to_constant 156@ = 15411
set_lvar_int_to_constant 157@ = 15412
set_lvar_int_to_constant 158@ = 15479
set_lvar_int_to_constant 159@ = 15413
set_lvar_int_to_constant 160@ = 15414
set_lvar_int_to_constant 161@ = 15415
set_lvar_int_to_constant 162@ = 15480
set_lvar_int_to_constant 163@ = 15416
set_lvar_int_to_constant 164@ = 15417
set_lvar_int_to_constant 165@ = 15418
set_lvar_int_to_constant 166@ = 15419
set_lvar_int_to_constant 167@ = 15420
set_lvar_int_to_constant 168@ = 15421
set_lvar_int_to_constant 169@ = 15422
set_lvar_int_to_constant 170@ = 15423
set_lvar_int_to_constant 171@ = 15481
set_lvar_int_to_constant 172@ = 15424
set_lvar_int_to_constant 173@ = 15425
set_lvar_int_to_constant 174@ = 15429
set_lvar_int_to_constant 175@ = 15482
set_lvar_int_to_constant 176@ = 15430
set_lvar_int_to_constant 177@ = 15431
set_lvar_int_to_constant 178@ = 15432
set_lvar_int_to_constant 179@ = 15433
set_lvar_int_to_constant 180@ = 15483
set_lvar_int_to_constant 181@ = 15484
set_lvar_int_to_constant 182@ = 15485
set_lvar_int_to_constant 183@ = 15486
set_lvar_int_to_constant 184@ = 15487
set_lvar_int_to_constant 185@ = 15434
set_lvar_int_to_constant 186@ = 15435
set_lvar_int_to_constant 187@ = 15436
set_lvar_int_to_constant 188@ = 15437
set_lvar_int_to_constant 189@ = 15438
set_lvar_int_to_constant 190@ = 15488
set_lvar_int_to_constant 191@ = 15439
set_lvar_int_to_constant 192@ = 15440
set_lvar_int_to_constant 193@ = 15441
set_lvar_int_to_constant 194@ = 15442
set_lvar_int_to_constant 195@ = 15489
set_lvar_int_to_constant 196@ = 15443
set_lvar_int_to_constant 197@ = 15444
set_lvar_int_to_constant 198@ = 15445
set_lvar_int_to_constant 199@ = 15446
set_lvar_int_to_constant 200@ = 15447
set_lvar_int_to_constant 201@ = 15448
set_lvar_int_to_constant 202@ = 15449
set_lvar_int_to_constant 203@ = 15450
set_lvar_int_to_constant 204@ = 15451
set_lvar_int_to_constant 205@ = 15452
set_lvar_int_to_constant 206@ = 15453
set_lvar_int_to_constant 207@ = 15454
set_lvar_int_to_constant 208@ = 15455
set_lvar_int_to_constant 209@ = 15456
set_lvar_int_to_constant 210@ = 15457
set_lvar_int_to_constant 211@ = 15458
set_lvar_int_to_constant 212@ = 15459
set_lvar_int_to_constant 213@ = 15460
set_lvar_int_to_constant 214@ = 15461
set_lvar_int_to_constant 215@ = 15462
set_lvar_int_to_constant 216@ = 15463
set_lvar_int_to_constant 217@ = 15490
set_lvar_int_to_constant 218@ = 15464
set_lvar_int_to_constant 219@ = 15465
set_lvar_int_to_constant 220@ = 15466
set_lvar_int_to_constant 221@ = 15467
set_lvar_int_to_constant 223@ = 15468
set_lvar_int_to_constant 224@ = 15469
set_lvar_int_to_constant 225@ = 15470
set_lvar_int_to_constant 226@ = 15471
set_lvar_int_to_constant 227@ = 15472
set_lvar_int_to_constant 228@ = 15491
set_lvar_int_to_constant 229@ = 15473
set_lvar_int_to_constant 230@ = 15492
set_lvar_int_to_constant 231@ = 15474
set_lvar_int_to_constant 232@ = 15493
set_lvar_int_to_constant 233@ = 15494
set_lvar_int_to_constant 235@ = 15475
set_lvar_int_to_constant 236@ = 15476
set_lvar_int_to_constant 237@ = 15477
set_lvar_int_to_constant 238@ = 15495
set_lvar_int_to_constant 239@ = 15496
set_lvar_int_to_constant 240@ = 15497
set_lvar_int_to_constant 241@ = 15426
set_lvar_int_to_constant 242@ = 15499
set_lvar_int_to_constant 243@ = 15500
set_lvar_int_to_constant 244@ = 15501
set_lvar_int_to_constant 245@ = 15502
set_lvar_int_to_constant 246@ = 15498
set_lvar_int_to_constant 247@ = 15427
set_lvar_int_to_constant 248@ = 15428
set_lvar_int_to_constant 249@ = 25205
set_lvar_int_to_constant 250@ = 25206
set_lvar_int_to_constant 251@ = 25208
set_lvar_int_to_constant 286@ = 23400
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
287@ = 0
288@ = 0
283@ = 0
284@ = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 1
make_room_in_player_gang_for_mission_peds 2
wait 1000

:CASINO4_4043
wait 0
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @CASINO4_4082
set_char_coordinates $scplayer {x} -725.0 {y} 2392.6899 {z} 128.0

:CASINO4_4082
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @CASINO4_4117
set_char_coordinates $scplayer {x} -45.0 {y} 2322.0 {z} 23.0

:CASINO4_4117
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @CASINO4_4152
set_char_coordinates $scplayer {x} 2062.0 {y} 1362.0 {z} 10.7

:CASINO4_4152
if 
is_ps2_keyboard_key_pressed 10
goto_if_false @CASINO4_4175
TIMERA = 27000

:CASINO4_4175
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @CASINO4_4249
122@ = 0
123@ = 0
134@ = 0
133@ = 0
124@ = 0
125@ = 0
126@ = 0
94@ = 0.0

:CASINO4_4249
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CASINO4_4821
252@ = 103
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
if 
  255@ == 0
goto_if_false @CASINO4_4343
252@ = 103
257@ = 103
260@ = get_game_timer 

:CASINO4_4343
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_4821
if 
  252@ <> 0
goto_if_false @CASINO4_4704
if 
  255@ == 0
goto_if_false @CASINO4_4429
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_4422
clear_mission_audio 254@

:CASINO4_4422
255@ = 1

:CASINO4_4429
if 
  255@ == 1
goto_if_false @CASINO4_4466
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_4466
if 
  255@ == 2
goto_if_false @CASINO4_4526
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_4526
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_4526
if 
  255@ == 3
goto_if_false @CASINO4_4704
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_4643
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_4608
253@ = 2
254@ = 1
goto @CASINO4_4622

:CASINO4_4608
253@ = 1
254@ = 2

:CASINO4_4622
252@ = 0
255@ = 0
goto @CASINO4_4704

:CASINO4_4643
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_4704
if 
  102 > 252@
goto_if_false @CASINO4_4704
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_4704
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_4814
if 
  255@ == 0
goto_if_false @CASINO4_4814
if 
  110 > 257@
goto_if_false @CASINO4_4807
257@ += 1
set_lvar_int_to_lvar_int 252@ = 257@
260@ = get_game_timer 
goto @CASINO4_4814

:CASINO4_4807
256@ = 1

:CASINO4_4814
goto @CASINO4_4343

:CASINO4_4821
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @CASINO4_4852
TIMERA = 27000
TIMERB = 27000

:CASINO4_4852
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO4_4874
goto @CASINO4_45870

:CASINO4_4874
if and
  47@ == 0
  48@ == 0
goto_if_false @CASINO4_5063

:CASINO4_4899
if 
  get_fading_status 
goto_if_false @CASINO4_4923
wait 0
goto @CASINO4_4899

:CASINO4_4923
66@ = add_blip_for_coord -735.0 {y} 2398.6899 {z} 126.0
set_coord_blip_appearance 66@ {color} CoordAppearance.Friend
set_char_heading $scplayer {heading} 265.5486
set_camera_behind_player 
print 'CAS4_01' {time} 10000 {flag} 1
48@ = 1
do_fade 1500 {direction} Fade.In

:CASINO4_4992
if 
  get_fading_status 
goto_if_false @CASINO4_5016
wait 0
goto @CASINO4_4992

:CASINO4_5016
set_player_control $player1 {state} True
if 
  $hunter_created == 1
goto_if_false @CASINO4_5063
set_up_skip -698.0 {y} 2398.0 {z} 131.0 {heading} 60.0

:CASINO4_5063
if and
  47@ == 0
  48@ == 1
goto_if_false @CASINO4_5645
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_5112
77@ = store_car_char_is_in $scplayer

:CASINO4_5112
if 
  locate_char_any_means_3d $scplayer {x} -735.0 {y} 2398.6899 {z} 126.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO4_5179
remove_blip 66@
47@ = 1
goto @CASINO4_5645

:CASINO4_5179
if 
  44@ == 0
goto_if_false @CASINO4_5645
if 
  locate_char_any_means_3d $scplayer {x} -735.0 {y} 2398.6899 {z} 126.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CASINO4_5645
if 
  $hunter_created == 0
goto_if_false @CASINO4_5270
$hunter_created = 1

:CASINO4_5270
request_animation "SUNBATHE"

:CASINO4_5282
if 
  not has_animation_loaded "SUNBATHE"
goto_if_false @CASINO4_5316
wait 0
goto @CASINO4_5282

:CASINO4_5316
71@ = create_char PedType.Special {modelId} 290 {x} -751.1198 {y} 2395.199 {z} 128.2378
set_char_heading 71@ {heading} 246.0
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_never_targetted 71@ {state} True
set_char_suffers_critical_hits 71@ {state} False
72@ = create_char PedType.Special {modelId} 291 {x} -752.2823 {y} 2391.054 {z} 127.8083
set_char_heading 72@ {heading} 220.2451
set_char_decision_maker 72@ {handleOrTemplate} 38@
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_never_targetted 72@ {state} True
set_char_suffers_critical_hits 72@ {state} False
81@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -1
task_play_anim -1 {animationName} "SBATHE_F_LIEB2SIT" {animationFile} "SUNBATHE" {blendSpeed} 60000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 81@
perform_sequence_task 72@ {sequence} 81@
clear_sequence_task 81@
80@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -1
task_play_anim -1 {animationName} "SBATHE_F_LIEB2SIT" {animationFile} "SUNBATHE" {blendSpeed} 60000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@
set_char_relationship 71@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship 72@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
44@ = 1

:CASINO4_5645
if and
  47@ == 1
  49@ == 0
goto_if_false @CASINO4_6615
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:CASINO4_5684
if 
  get_fading_status 
goto_if_false @CASINO4_5708
wait 0
goto @CASINO4_5684

:CASINO4_5708
switch_widescreen True
make_player_gang_disappear 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
force_weather WeatherType.SunnyDesert
delete_char 71@
delete_char 72@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
remove_animation "SUNBATHE"

:CASINO4_5765
if 
  get_fading_status 
goto_if_false @CASINO4_5789
wait 0
goto @CASINO4_5765

:CASINO4_5789
clear_area -738.0978 {y} 2391.592 {z} 127.9015 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 77@
goto_if_false @CASINO4_5897
if 
  locate_car_3d 77@ {x} -738.0 {y} 2391.0 {z} 127.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_5897
set_car_coordinates 77@ {x} -735.0 {y} 2398.6899 {z} 126.0

:CASINO4_5897
make_player_safe_for_cutscene $player1
load_cutscene 'CAS_4B'

:CASINO4_5913
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_5937
wait 0
goto @CASINO4_5913

:CASINO4_5937
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO4_5946
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_5970
wait 0
goto @CASINO4_5946

:CASINO4_5970
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_5985
if 
  get_fading_status 
goto_if_false @CASINO4_6009
wait 0
goto @CASINO4_5985

:CASINO4_6009
release_weather 
add_char_decision_maker_event_response 38@ {event} Event.VehicleOnFire {taskId} TaskId.ComplexLeaveCarAndFlee {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} False
71@ = create_char PedType.Special {modelId} 290 {x} -751.1198 {y} 2395.199 {z} 128.2378
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_never_targetted 71@ {state} True
set_char_suffers_critical_hits 71@ {state} False
72@ = create_char PedType.Special {modelId} 291 {x} -752.2823 {y} 2391.054 {z} 127.8083
set_char_decision_maker 72@ {handleOrTemplate} 38@
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_never_targetted 72@ {state} True
set_char_suffers_critical_hits 72@ {state} False
set_char_relationship 71@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship 72@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_max_health 72@ {maxHealth} 200
set_char_health 72@ {health} 200
set_char_max_health 71@ {maxHealth} 200
set_char_health 71@ {health} 200
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_6300
set_char_coordinates 72@ {x} -738.0978 {y} 2385.592 {z} 124.9015
set_char_heading 72@ {heading} 0.0
set_char_coordinates 71@ {x} -736.8244 {y} 2385.1021 {z} 125.0871
set_char_heading 71@ {heading} 0.0

:CASINO4_6300
request_model 478
request_model 32
request_model 34
request_animation "SMOKING"
request_model 346
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_6395
clear_char_tasks $scplayer
clear_char_tasks 72@
clear_char_tasks 71@
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True

:CASINO4_6395
if or
  not has_model_loaded 478
  not has_model_loaded 32
  not has_model_loaded 34
  not has_animation_loaded "SMOKING"
goto_if_false @CASINO4_6441
wait 0
goto @CASINO4_6395

:CASINO4_6441
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO4_6484
set_char_coordinates $scplayer {x} -738.0603 {y} 2388.3459 {z} 125.1527
goto @CASINO4_6504

:CASINO4_6484
warp_char_from_car_to_coord $scplayer {x} -738.0603 {y} 2388.3459 {z} 125.1527

:CASINO4_6504
set_char_heading $scplayer {heading} 176.0
request_animation "PAULNMAC"

:CASINO4_6526
if 
  not has_animation_loaded "PAULNMAC"
goto_if_false @CASINO4_6560
wait 0
goto @CASINO4_6526

:CASINO4_6560
restore_camera_jumpcut 
switch_widescreen False
make_player_gang_reappear 
do_fade 1500 {direction} Fade.In

:CASINO4_6575
if 
  get_fading_status 
goto_if_false @CASINO4_6599
wait 0
goto @CASINO4_6575

:CASINO4_6599
set_player_control $player1 {state} True
clear_prints 
49@ = 1

:CASINO4_6615
if 
  44@ == 1
goto_if_false @CASINO4_6762
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_6762
clear_prints 
if and
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @CASINO4_6700
print 'CAS4_47' {time} 3000 {flag} 1
goto @CASINO4_6755

:CASINO4_6700
if 
  is_char_dead 71@
goto_if_false @CASINO4_6739
print 'CAS4_05' {time} 3000 {flag} 1
goto @CASINO4_6755

:CASINO4_6739
print 'CAS4_04' {time} 3000 {flag} 1

:CASINO4_6755
goto @CASINO4_45852

:CASINO4_6762
if 
  51@ == 0
goto_if_false @CASINO4_22496
if 
  49@ == 1
goto_if_false @CASINO4_22496
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_6887
77@ = store_car_char_is_in $scplayer
135@ = get_maximum_number_of_passengers 77@
if 
  119@ == 1
goto_if_false @CASINO4_6855
135@ -= 1

:CASINO4_6855
if 
  120@ == 1
goto_if_false @CASINO4_6880
135@ -= 1

:CASINO4_6880
goto @CASINO4_7224

:CASINO4_6887
if 
  not is_char_dead 72@
goto_if_false @CASINO4_7053
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7053
if 
  119@ == 1
goto_if_false @CASINO4_6996
if 
  not is_char_dead 72@
goto_if_false @CASINO4_6996
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_6974
task_leave_any_car 72@

:CASINO4_6974
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_6996
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7053
90@ = get_script_task_status 72@ {taskId} 1587
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7053
task_leave_any_car 72@

:CASINO4_7053
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7203
if 
  120@ == 1
goto_if_false @CASINO4_7146
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7146
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7124
task_leave_any_car 71@

:CASINO4_7124
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_7146
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7203
90@ = get_script_task_status 71@ {taskId} 1587
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7203
task_leave_any_car 71@

:CASINO4_7203
130@ = 0
131@ = 0
135@ = 0

:CASINO4_7224
if 
  121@ > 0
goto_if_false @CASINO4_7326
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_7326
if 
  135@ > 1
goto_if_false @CASINO4_7326
clear_char_tasks 72@
clear_char_tasks 71@
274@ = 0
275@ = 0
276@ = 0
277@ = 0
121@ = 0

:CASINO4_7326
if 
  121@ == 0
goto_if_false @CASINO4_8633
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_8626
if 
  not is_char_dead 72@
goto_if_false @CASINO4_7984
if 
  119@ == 0
goto_if_false @CASINO4_7898
if 
  locate_char_in_car_char_3d $scplayer {target} 72@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_7850
if 
  135@ > 0
goto_if_false @CASINO4_7606
if 
  not is_car_dead 77@
goto_if_false @CASINO4_7599
if 
  is_char_sitting_in_car 72@ {vehicle} 77@
goto_if_false @CASINO4_7509
remove_blip 67@
135@ -= 1
119@ = 1
goto @CASINO4_7599

:CASINO4_7509
if 
  130@ == 0
goto_if_false @CASINO4_7553
task_enter_car_as_passenger 72@ {vehicle} 77@ {time} -2 {seat} -1
130@ = 1
goto @CASINO4_7599

:CASINO4_7553
90@ = get_script_task_status 72@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_7599
clear_char_tasks 72@
task_enter_car_as_passenger 72@ {vehicle} 77@ {time} -2 {seat} -1

:CASINO4_7599
goto @CASINO4_7843

:CASINO4_7606
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_7843
if 
  120@ == 1
goto_if_false @CASINO4_7843
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7678
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_7678
if 
  121@ == 0
goto_if_false @CASINO4_7843
89@ = open_sequence_task 
task_goto_char -1 {target} 71@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 71@
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7765
task_leave_any_car -1

:CASINO4_7765
task_goto_char -1 {target} 72@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 72@
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
clear_prints 
print 'CAS4_44' {time} 10000 {flag} 1
282@ = 1
132@ = 6
121@ = 1

:CASINO4_7843
goto @CASINO4_7891

:CASINO4_7850
90@ = get_script_task_status 72@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_7884
clear_char_tasks 72@

:CASINO4_7884
130@ = 0

:CASINO4_7891
goto @CASINO4_7984

:CASINO4_7898
if 
  not locate_char_in_car_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_7984
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7955
task_leave_any_car 72@

:CASINO4_7955
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
130@ = 0
119@ = 0

:CASINO4_7984
if 
  121@ == 0
goto_if_false @CASINO4_8626
if 
  not is_char_dead 71@
goto_if_false @CASINO4_8626
if 
  120@ == 0
goto_if_false @CASINO4_8540
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_8492
if 
  135@ > 0
goto_if_false @CASINO4_8248
if 
  not is_car_dead 77@
goto_if_false @CASINO4_8241
if 
  is_char_sitting_in_car 71@ {vehicle} 77@
goto_if_false @CASINO4_8151
remove_blip 68@
135@ -= 1
120@ = 1
goto @CASINO4_8241

:CASINO4_8151
if 
  131@ == 0
goto_if_false @CASINO4_8195
task_enter_car_as_passenger 71@ {vehicle} 77@ {time} -2 {seat} -1
131@ = 1
goto @CASINO4_8241

:CASINO4_8195
90@ = get_script_task_status 71@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8241
clear_char_tasks 71@
task_enter_car_as_passenger 71@ {vehicle} 77@ {time} -2 {seat} -1

:CASINO4_8241
goto @CASINO4_8485

:CASINO4_8248
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_8485
if 
  119@ == 1
goto_if_false @CASINO4_8485
if 
  not is_char_dead 72@
goto_if_false @CASINO4_8320
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_8320
if 
  121@ == 0
goto_if_false @CASINO4_8485
89@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_8363
task_leave_any_car -1

:CASINO4_8363
task_goto_char -1 {target} 71@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 71@
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
task_goto_char -1 {target} 72@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 72@
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
clear_prints 
print 'CAS4_44' {time} 10000 {flag} 1
282@ = 2
132@ = 6
121@ = 1

:CASINO4_8485
goto @CASINO4_8533

:CASINO4_8492
90@ = get_script_task_status 71@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_8533
clear_char_tasks 71@
131@ = 0

:CASINO4_8533
goto @CASINO4_8626

:CASINO4_8540
if 
  not locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_8626
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_8597
task_leave_any_car 71@

:CASINO4_8597
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
131@ = 0
120@ = 0

:CASINO4_8626
goto @CASINO4_10210

:CASINO4_8633
if 
  121@ == 1
goto_if_false @CASINO4_8802
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_8795
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8795
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8795
40@, 41@, 42@ = get_offset_from_char_in_world_coords 71@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
task_char_slide_to_coord 72@ {x} 40@ {y} 41@ {z} 42@ {angle} 43@ {radius} 0.5
gosub @CASINO4_38628
121@ = 2

:CASINO4_8795
goto @CASINO4_10210

:CASINO4_8802
if 
  121@ == 2
goto_if_false @CASINO4_10210
if 
  252@ <> 0
goto_if_false @CASINO4_9159
if 
  255@ == 0
goto_if_false @CASINO4_8884
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_8877
clear_mission_audio 254@

:CASINO4_8877
255@ = 1

:CASINO4_8884
if 
  255@ == 1
goto_if_false @CASINO4_8921
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_8921
if 
  255@ == 2
goto_if_false @CASINO4_8981
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_8981
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_8981
if 
  255@ == 3
goto_if_false @CASINO4_9159
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_9098
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_9063
253@ = 2
254@ = 1
goto @CASINO4_9077

:CASINO4_9063
253@ = 1
254@ = 2

:CASINO4_9077
252@ = 0
255@ = 0
goto @CASINO4_9159

:CASINO4_9098
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_9159
if 
  110 > 252@
goto_if_false @CASINO4_9159
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_9159
if 
  282@ == 1
goto_if_false @CASINO4_9730
if 
  275@ == 0
goto_if_false @CASINO4_9723
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_9723
switch_start 274@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_9651 {caseNum1} 0 {caseLabel1} @CASINO4_9271 {caseNum2} 1 {caseLabel2} @CASINO4_9315 {caseNum3} 2 {caseLabel3} @CASINO4_9399 {caseNum4} 3 {caseLabel4} @CASINO4_9483 {caseNum5} 4 {caseLabel5} @CASINO4_9567 {caseNum6} -1 {caseLabel6} @CASINO4_9723 {caseNum7} -1 {caseLabel7} @CASINO4_9723

:CASINO4_9271
if 
  255@ == 0
goto_if_false @CASINO4_9308
252@ = 9
274@ = 1
260@ = get_game_timer 

:CASINO4_9308
goto @CASINO4_9723

:CASINO4_9315
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9392
if 
  255@ == 0
goto_if_false @CASINO4_9392
252@ = 10
274@ = 2
260@ = get_game_timer 

:CASINO4_9392
goto @CASINO4_9723

:CASINO4_9399
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9476
if 
  255@ == 0
goto_if_false @CASINO4_9476
252@ = 11
274@ = 3
260@ = get_game_timer 

:CASINO4_9476
goto @CASINO4_9723

:CASINO4_9483
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9560
if 
  255@ == 0
goto_if_false @CASINO4_9560
252@ = 12
274@ = 4
260@ = get_game_timer 

:CASINO4_9560
goto @CASINO4_9723

:CASINO4_9567
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9644
if 
  255@ == 0
goto_if_false @CASINO4_9644
252@ = 19
274@ = 5
260@ = get_game_timer 

:CASINO4_9644
goto @CASINO4_9723

:CASINO4_9651
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9716
if 
  255@ == 0
goto_if_false @CASINO4_9716
275@ = 1

:CASINO4_9716
goto @CASINO4_9723

:CASINO4_9723
goto @CASINO4_10210

:CASINO4_9730
if 
  282@ == 2
goto_if_false @CASINO4_10210
if 
  277@ == 0
goto_if_false @CASINO4_10210
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10210
switch_start 276@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_10138 {caseNum1} 0 {caseLabel1} @CASINO4_9842 {caseNum2} 1 {caseLabel2} @CASINO4_9886 {caseNum3} 2 {caseLabel3} @CASINO4_9970 {caseNum4} 3 {caseLabel4} @CASINO4_10054 {caseNum5} -1 {caseLabel5} @CASINO4_10210 {caseNum6} -1 {caseLabel6} @CASINO4_10210 {caseNum7} -1 {caseLabel7} @CASINO4_10210

:CASINO4_9842
if 
  255@ == 0
goto_if_false @CASINO4_9879
252@ = 13
276@ = 1
260@ = get_game_timer 

:CASINO4_9879
goto @CASINO4_10210

:CASINO4_9886
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9963
if 
  255@ == 0
goto_if_false @CASINO4_9963
252@ = 14
276@ = 2
260@ = get_game_timer 

:CASINO4_9963
goto @CASINO4_10210

:CASINO4_9970
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10047
if 
  255@ == 0
goto_if_false @CASINO4_10047
252@ = 15
276@ = 3
260@ = get_game_timer 

:CASINO4_10047
goto @CASINO4_10210

:CASINO4_10054
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10131
if 
  255@ == 0
goto_if_false @CASINO4_10131
252@ = 16
276@ = 4
260@ = get_game_timer 

:CASINO4_10131
goto @CASINO4_10210

:CASINO4_10138
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10203
if 
  255@ == 0
goto_if_false @CASINO4_10203
277@ = 1

:CASINO4_10203
goto @CASINO4_10210

:CASINO4_10210
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_10339
clear_prints 
if and
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @CASINO4_10277
print 'CAS4_47' {time} 3000 {flag} 1
goto @CASINO4_10332

:CASINO4_10277
if 
  is_char_dead 71@
goto_if_false @CASINO4_10316
print 'CAS4_05' {time} 3000 {flag} 1
goto @CASINO4_10332

:CASINO4_10316
print 'CAS4_04' {time} 3000 {flag} 1

:CASINO4_10332
goto @CASINO4_45852

:CASINO4_10339
if 
  121@ == 0
goto_if_false @CASINO4_11029
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_10581
if 
  135@ > 1
goto_if_false @CASINO4_10494
if 
  132@ <> 0
goto_if_false @CASINO4_10487
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10487
print 'CAS4_37' {time} 7000 {flag} 1
132@ = 0

:CASINO4_10487
goto @CASINO4_10581

:CASINO4_10494
if 
  132@ <> 1
goto_if_false @CASINO4_10581
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10581
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 1

:CASINO4_10581
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_10805
if 
  135@ > 0
goto_if_false @CASINO4_10718
if 
  132@ <> 2
goto_if_false @CASINO4_10711
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10711
print 'CAS4_03' {time} 7000 {flag} 1
132@ = 2

:CASINO4_10711
goto @CASINO4_10805

:CASINO4_10718
if 
  132@ <> 3
goto_if_false @CASINO4_10805
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10805
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 3

:CASINO4_10805
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_11029
if 
  135@ > 0
goto_if_false @CASINO4_10942
if 
  132@ <> 4
goto_if_false @CASINO4_10935
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_37'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10935
print 'CAS4_02' {time} 7000 {flag} 1
132@ = 4

:CASINO4_10935
goto @CASINO4_11029

:CASINO4_10942
if 
  132@ <> 5
goto_if_false @CASINO4_11029
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_11029
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 5

:CASINO4_11029
if 
  126@ == 0
goto_if_false @CASINO4_18452
if 
  129@ == 1
goto_if_false @CASINO4_18261
if 
  TIMERA > 30000
goto_if_false @CASINO4_18254
if 
  252@ <> 0
goto_if_false @CASINO4_11477
if 
  255@ == 0
goto_if_false @CASINO4_11148
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_11141
clear_mission_audio 254@

:CASINO4_11141
255@ = 1

:CASINO4_11148
if 
  255@ == 1
goto_if_false @CASINO4_11185
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_11185
if 
  255@ == 2
goto_if_false @CASINO4_11299
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_11299
play_mission_audio 253@
if 
  252@ <> 65
goto_if_false @CASINO4_11292
if 
  252@ <> 67
goto_if_false @CASINO4_11292
if 
  252@ <> 78
goto_if_false @CASINO4_11292
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1

:CASINO4_11292
255@ = 3

:CASINO4_11299
if 
  255@ == 3
goto_if_false @CASINO4_11477
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_11416
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_11381
253@ = 2
254@ = 1
goto @CASINO4_11395

:CASINO4_11381
253@ = 1
254@ = 2

:CASINO4_11395
252@ = 0
255@ = 0
goto @CASINO4_11477

:CASINO4_11416
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_11477
if 
  110 > 252@
goto_if_false @CASINO4_11477
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_11477
if 
  287@ <> 0
goto_if_false @CASINO4_11711
if 
  288@ == 0
goto_if_false @CASINO4_11539
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO4_11532
clear_mission_audio MissionAudioSlot.Slot3

:CASINO4_11532
288@ = 1

:CASINO4_11539
if 
  288@ == 1
goto_if_false @CASINO4_11575
load_mission_audio MissionAudioSlot.Slot3 {audioId} 285@(287@,2i)
288@ = 2

:CASINO4_11575
if 
  288@ == 2
goto_if_false @CASINO4_11660
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO4_11660
if 
  287@ == 1
goto_if_false @CASINO4_11649
if 
  not is_char_dead 71@
goto_if_false @CASINO4_11649
attach_mission_audio_to_char MissionAudioSlot.Slot3 {handle} 71@

:CASINO4_11649
play_mission_audio MissionAudioSlot.Slot3
288@ = 3

:CASINO4_11660
if 
  288@ == 3
goto_if_false @CASINO4_11711
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CASINO4_11711
clear_mission_audio MissionAudioSlot.Slot3
287@ = 0
288@ = 0

:CASINO4_11711
if 
  5 > 122@
goto_if_false @CASINO4_15652
if and
  not is_char_dead 72@
  not is_car_dead 77@
goto_if_false @CASINO4_15645
if 
  122@ == 0
goto_if_false @CASINO4_12681
if 
  263@ == 1
goto_if_false @CASINO4_12674
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_12674
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_12573 {caseNum1} 0 {caseLabel1} @CASINO4_11927 {caseNum2} 1 {caseLabel2} @CASINO4_11985 {caseNum3} 2 {caseLabel3} @CASINO4_12069 {caseNum4} 3 {caseLabel4} @CASINO4_12153 {caseNum5} 4 {caseLabel5} @CASINO4_12237 {caseNum6} 5 {caseLabel6} @CASINO4_12321 {caseNum7} 6 {caseLabel7} @CASINO4_12405
switch_continued 7 {caseLabel1} @CASINO4_12489 {caseNum2} -1 {caseLabel2} @CASINO4_12674 {caseNum3} -1 {caseLabel3} @CASINO4_12674 {caseNum4} -1 {caseLabel4} @CASINO4_12674 {caseNum5} -1 {caseLabel5} @CASINO4_12674 {caseNum6} -1 {caseLabel6} @CASINO4_12674 {caseNum7} -1 {caseLabel7} @CASINO4_12674 {caseNum8} -1 {caseLabel8} @CASINO4_12674 {caseNum9} -1 {caseLabel9} @CASINO4_12674

:CASINO4_11927
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
if 
  255@ == 0
goto_if_false @CASINO4_11978
252@ = 62
280@ = 1
260@ = get_game_timer 

:CASINO4_11978
goto @CASINO4_12674

:CASINO4_11985
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12062
if 
  255@ == 0
goto_if_false @CASINO4_12062
252@ = 63
280@ = 2
260@ = get_game_timer 

:CASINO4_12062
goto @CASINO4_12674

:CASINO4_12069
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12146
if 
  255@ == 0
goto_if_false @CASINO4_12146
252@ = 64
280@ = 3
260@ = get_game_timer 

:CASINO4_12146
goto @CASINO4_12674

:CASINO4_12153
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12230
if 
  255@ == 0
goto_if_false @CASINO4_12230
252@ = 65
280@ = 4
260@ = get_game_timer 

:CASINO4_12230
goto @CASINO4_12674

:CASINO4_12237
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12314
if 
  255@ == 0
goto_if_false @CASINO4_12314
252@ = 66
280@ = 5
260@ = get_game_timer 

:CASINO4_12314
goto @CASINO4_12674

:CASINO4_12321
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12398
if 
  255@ == 0
goto_if_false @CASINO4_12398
252@ = 67
280@ = 6
260@ = get_game_timer 

:CASINO4_12398
goto @CASINO4_12674

:CASINO4_12405
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12482
if 
  255@ == 0
goto_if_false @CASINO4_12482
252@ = 68
280@ = 7
260@ = get_game_timer 

:CASINO4_12482
goto @CASINO4_12674

:CASINO4_12489
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12566
if 
  255@ == 0
goto_if_false @CASINO4_12566
252@ = 69
280@ = 8
260@ = get_game_timer 

:CASINO4_12566
goto @CASINO4_12674

:CASINO4_12573
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12667
if 
  255@ == 0
goto_if_false @CASINO4_12667
132@ = 99
request_animation "FOOD"
TIMERB = 0
280@ = 0
122@ = 1

:CASINO4_12667
goto @CASINO4_12674

:CASINO4_12674
goto @CASINO4_15645

:CASINO4_12681
if 
  122@ == 1
goto_if_false @CASINO4_14083
if 
  TIMERB > 5000
goto_if_false @CASINO4_13915
switch_start 280@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @CASINO4_13814 {caseNum1} 0 {caseLabel1} @CASINO4_12846 {caseNum2} 1 {caseLabel2} @CASINO4_12890 {caseNum3} 2 {caseLabel3} @CASINO4_12974 {caseNum4} 3 {caseLabel4} @CASINO4_13058 {caseNum5} 4 {caseLabel5} @CASINO4_13142 {caseNum6} 5 {caseLabel6} @CASINO4_13226 {caseNum7} 6 {caseLabel7} @CASINO4_13310
switch_continued 7 {caseLabel1} @CASINO4_13394 {caseNum2} 8 {caseLabel2} @CASINO4_13478 {caseNum3} 9 {caseLabel3} @CASINO4_13562 {caseNum4} 10 {caseLabel4} @CASINO4_13646 {caseNum5} 11 {caseLabel5} @CASINO4_13730 {caseNum6} -1 {caseLabel6} @CASINO4_13908 {caseNum7} -1 {caseLabel7} @CASINO4_13908 {caseNum8} -1 {caseLabel8} @CASINO4_13908 {caseNum9} -1 {caseLabel9} @CASINO4_13908

:CASINO4_12846
if 
  255@ == 0
goto_if_false @CASINO4_12883
252@ = 70
280@ = 1
260@ = get_game_timer 

:CASINO4_12883
goto @CASINO4_13908

:CASINO4_12890
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12967
if 
  255@ == 0
goto_if_false @CASINO4_12967
252@ = 71
280@ = 2
260@ = get_game_timer 

:CASINO4_12967
goto @CASINO4_13908

:CASINO4_12974
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13051
if 
  255@ == 0
goto_if_false @CASINO4_13051
252@ = 72
280@ = 3
260@ = get_game_timer 

:CASINO4_13051
goto @CASINO4_13908

:CASINO4_13058
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13135
if 
  255@ == 0
goto_if_false @CASINO4_13135
252@ = 73
280@ = 4
260@ = get_game_timer 

:CASINO4_13135
goto @CASINO4_13908

:CASINO4_13142
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13219
if 
  255@ == 0
goto_if_false @CASINO4_13219
252@ = 74
280@ = 5
260@ = get_game_timer 

:CASINO4_13219
goto @CASINO4_13908

:CASINO4_13226
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13303
if 
  255@ == 0
goto_if_false @CASINO4_13303
252@ = 75
280@ = 6
260@ = get_game_timer 

:CASINO4_13303
goto @CASINO4_13908

:CASINO4_13310
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13387
if 
  255@ == 0
goto_if_false @CASINO4_13387
252@ = 76
280@ = 7
260@ = get_game_timer 

:CASINO4_13387
goto @CASINO4_13908

:CASINO4_13394
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13471
if 
  255@ == 0
goto_if_false @CASINO4_13471
252@ = 77
280@ = 8
260@ = get_game_timer 

:CASINO4_13471
goto @CASINO4_13908

:CASINO4_13478
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13555
if 
  255@ == 0
goto_if_false @CASINO4_13555
252@ = 78
280@ = 9
260@ = get_game_timer 

:CASINO4_13555
goto @CASINO4_13908

:CASINO4_13562
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13639
if 
  255@ == 0
goto_if_false @CASINO4_13639
252@ = 79
280@ = 10
260@ = get_game_timer 

:CASINO4_13639
goto @CASINO4_13908

:CASINO4_13646
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13723
if 
  255@ == 0
goto_if_false @CASINO4_13723
252@ = 80
280@ = 11
260@ = get_game_timer 

:CASINO4_13723
goto @CASINO4_13908

:CASINO4_13730
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13807
if 
  255@ == 0
goto_if_false @CASINO4_13807
252@ = 81
280@ = 12
260@ = get_game_timer 

:CASINO4_13807
goto @CASINO4_13908

:CASINO4_13814
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13901
if 
  255@ == 0
goto_if_false @CASINO4_13901
TIMERA = 0
124@ = 0
128@ = 1
122@ = 9999

:CASINO4_13901
goto @CASINO4_13908

:CASINO4_13908
goto @CASINO4_14076

:CASINO4_13915
if and
  has_animation_loaded "FOOD"
  is_car_stopped 77@
goto_if_false @CASINO4_14076
95@, 96@, 97@ = get_offset_from_car_in_world_coords 77@ {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 95@ {y} 96@ {z} 97@ {speed} MoveState.Sprint {time} 5000
task_play_anim -1 {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger -1 {vehicle} 77@ {time} -2 {seat} -1
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
122@ = 2
124@ = 1

:CASINO4_14076
goto @CASINO4_15645

:CASINO4_14083
if 
  122@ <> 3
goto_if_false @CASINO4_14951
if 
  3 > 122@
goto_if_false @CASINO4_14951
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_14879 {caseNum1} 0 {caseLabel1} @CASINO4_14247 {caseNum2} 1 {caseLabel2} @CASINO4_14291 {caseNum3} 2 {caseLabel3} @CASINO4_14375 {caseNum4} 3 {caseLabel4} @CASINO4_14459 {caseNum5} 4 {caseLabel5} @CASINO4_14543 {caseNum6} 5 {caseLabel6} @CASINO4_14627 {caseNum7} 6 {caseLabel7} @CASINO4_14711
switch_continued 7 {caseLabel1} @CASINO4_14795 {caseNum2} -1 {caseLabel2} @CASINO4_14951 {caseNum3} -1 {caseLabel3} @CASINO4_14951 {caseNum4} -1 {caseLabel4} @CASINO4_14951 {caseNum5} -1 {caseLabel5} @CASINO4_14951 {caseNum6} -1 {caseLabel6} @CASINO4_14951 {caseNum7} -1 {caseLabel7} @CASINO4_14951 {caseNum8} -1 {caseLabel8} @CASINO4_14951 {caseNum9} -1 {caseLabel9} @CASINO4_14951

:CASINO4_14247
if 
  255@ == 0
goto_if_false @CASINO4_14284
252@ = 70
280@ = 1
260@ = get_game_timer 

:CASINO4_14284
goto @CASINO4_14951

:CASINO4_14291
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14368
if 
  255@ == 0
goto_if_false @CASINO4_14368
252@ = 71
280@ = 2
260@ = get_game_timer 

:CASINO4_14368
goto @CASINO4_14951

:CASINO4_14375
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14452
if 
  255@ == 0
goto_if_false @CASINO4_14452
252@ = 72
280@ = 3
260@ = get_game_timer 

:CASINO4_14452
goto @CASINO4_14951

:CASINO4_14459
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14536
if 
  255@ == 0
goto_if_false @CASINO4_14536
252@ = 73
280@ = 4
260@ = get_game_timer 

:CASINO4_14536
goto @CASINO4_14951

:CASINO4_14543
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14620
if 
  255@ == 0
goto_if_false @CASINO4_14620
252@ = 74
280@ = 5
260@ = get_game_timer 

:CASINO4_14620
goto @CASINO4_14951

:CASINO4_14627
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14704
if 
  255@ == 0
goto_if_false @CASINO4_14704
252@ = 75
280@ = 6
260@ = get_game_timer 

:CASINO4_14704
goto @CASINO4_14951

:CASINO4_14711
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14788
if 
  255@ == 0
goto_if_false @CASINO4_14788
252@ = 76
280@ = 7
260@ = get_game_timer 

:CASINO4_14788
goto @CASINO4_14951

:CASINO4_14795
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14872
if 
  255@ == 0
goto_if_false @CASINO4_14872
252@ = 77
280@ = 8
260@ = get_game_timer 

:CASINO4_14872
goto @CASINO4_14951

:CASINO4_14879
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14944
if 
  255@ == 0
goto_if_false @CASINO4_14944
281@ = 1

:CASINO4_14944
goto @CASINO4_14951

:CASINO4_14951
if 
  122@ == 2
goto_if_false @CASINO4_15173
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15041
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
goto @CASINO4_15166

:CASINO4_15041
if 
  is_char_playing_anim 72@ {animationName} "EAT_VOMIT_P"
goto_if_false @CASINO4_15166
95@, 96@, 97@ = get_offset_from_char_in_world_coords 72@ {xOffset} 0.355 {yOffset} -0.116 {zOffset} 0.048
94@ = get_char_anim_current_time 72@ {animationName} "EAT_VOMIT_P"
136@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True
134@ = 0
94@ = 0.0
122@ = 3

:CASINO4_15166
goto @CASINO4_15645

:CASINO4_15173
if 
  122@ == 3
goto_if_false @CASINO4_15545
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15291
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
if 
  134@ == 1
goto_if_false @CASINO4_15284
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_15284
TIMERA = 0

:CASINO4_15291
if 
  94@ <> 1.0
goto_if_false @CASINO4_15500
if 
  134@ == 0
goto_if_false @CASINO4_15393
if 
  94@ >= 0.42
goto_if_false @CASINO4_15393
play_fx_system 136@
if 
  255@ == 0
goto_if_false @CASINO4_15386
252@ = 78
260@ = get_game_timer 

:CASINO4_15386
134@ = 1

:CASINO4_15393
if 
  not is_char_dead 72@
goto_if_false @CASINO4_15483
if 
  is_char_playing_anim 72@ {animationName} "EAT_VOMIT_P"
goto_if_false @CASINO4_15466
94@ = get_char_anim_current_time 72@ {animationName} "EAT_VOMIT_P"
goto @CASINO4_15476

:CASINO4_15466
94@ = 1.0

:CASINO4_15476
goto @CASINO4_15493

:CASINO4_15483
94@ = 1.0

:CASINO4_15493
goto @CASINO4_15538

:CASINO4_15500
stop_fx_system 136@
kill_fx_system 136@
TIMERA = 0
134@ = 0
124@ = 0
122@ = 4

:CASINO4_15538
goto @CASINO4_15645

:CASINO4_15545
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15645
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
if 
  134@ == 1
goto_if_false @CASINO4_15645
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_15645
goto @CASINO4_18254

:CASINO4_15652
if 
  5 > 123@
goto_if_false @CASINO4_18198
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18191
if 
  123@ == 0
goto_if_false @CASINO4_16298
if 
  265@ == 1
goto_if_false @CASINO4_16284
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_16284
switch_start 278@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16183 {caseNum1} 0 {caseLabel1} @CASINO4_15803 {caseNum2} 1 {caseLabel2} @CASINO4_15847 {caseNum3} 2 {caseLabel3} @CASINO4_15931 {caseNum4} 3 {caseLabel4} @CASINO4_16015 {caseNum5} 4 {caseLabel5} @CASINO4_16099 {caseNum6} -1 {caseLabel6} @CASINO4_16284 {caseNum7} -1 {caseLabel7} @CASINO4_16284

:CASINO4_15803
if 
  255@ == 0
goto_if_false @CASINO4_15840
252@ = 50
278@ = 1
260@ = get_game_timer 

:CASINO4_15840
goto @CASINO4_16284

:CASINO4_15847
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_15924
if 
  255@ == 0
goto_if_false @CASINO4_15924
252@ = 51
278@ = 2
260@ = get_game_timer 

:CASINO4_15924
goto @CASINO4_16284

:CASINO4_15931
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16008
if 
  255@ == 0
goto_if_false @CASINO4_16008
252@ = 52
278@ = 3
260@ = get_game_timer 

:CASINO4_16008
goto @CASINO4_16284

:CASINO4_16015
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16092
if 
  255@ == 0
goto_if_false @CASINO4_16092
252@ = 53
278@ = 5
260@ = get_game_timer 

:CASINO4_16092
goto @CASINO4_16284

:CASINO4_16099
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16176
if 
  255@ == 0
goto_if_false @CASINO4_16176
252@ = 54
278@ = 5
260@ = get_game_timer 

:CASINO4_16176
goto @CASINO4_16284

:CASINO4_16183
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16277
if 
  255@ == 0
goto_if_false @CASINO4_16277
132@ = 99
request_animation "FOOD"
TIMERB = 0
278@ = 0
123@ = 1

:CASINO4_16277
goto @CASINO4_16284

:CASINO4_16284
279@ = 0
goto @CASINO4_18191

:CASINO4_16298
if 
  123@ == 1
goto_if_false @CASINO4_17252
if 
  TIMERB > 5000
goto_if_false @CASINO4_17001
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_16994
switch_start 278@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16882 {caseNum1} 0 {caseLabel1} @CASINO4_16411 {caseNum2} 1 {caseLabel2} @CASINO4_16455 {caseNum3} 2 {caseLabel3} @CASINO4_16539 {caseNum4} 3 {caseLabel4} @CASINO4_16630 {caseNum5} 4 {caseLabel5} @CASINO4_16714 {caseNum6} 5 {caseLabel6} @CASINO4_16798 {caseNum7} -1 {caseLabel7} @CASINO4_16994

:CASINO4_16411
if 
  255@ == 0
goto_if_false @CASINO4_16448
252@ = 55
278@ = 2
260@ = get_game_timer 

:CASINO4_16448
goto @CASINO4_16994

:CASINO4_16455
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16532
if 
  255@ == 0
goto_if_false @CASINO4_16532
252@ = 56
278@ = 3
260@ = get_game_timer 

:CASINO4_16532
goto @CASINO4_16994

:CASINO4_16539
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16623
if 
  255@ == 0
goto_if_false @CASINO4_16623
252@ = 57
278@ = 5
287@ = 1
260@ = get_game_timer 

:CASINO4_16623
goto @CASINO4_16994

:CASINO4_16630
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16707
if 
  255@ == 0
goto_if_false @CASINO4_16707
252@ = 58
278@ = 5
260@ = get_game_timer 

:CASINO4_16707
goto @CASINO4_16994

:CASINO4_16714
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16791
if 
  255@ == 0
goto_if_false @CASINO4_16791
252@ = 58
278@ = 5
260@ = get_game_timer 

:CASINO4_16791
goto @CASINO4_16994

:CASINO4_16798
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16875
if 
  255@ == 0
goto_if_false @CASINO4_16875
252@ = 59
278@ = 6
260@ = get_game_timer 

:CASINO4_16875
goto @CASINO4_16994

:CASINO4_16882
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16987
if 
  255@ == 0
goto_if_false @CASINO4_16987
132@ = 99
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
287@ = 0
288@ = 0
125@ = 0
123@ = 9999

:CASINO4_16987
goto @CASINO4_16994

:CASINO4_16994
goto @CASINO4_17245

:CASINO4_17001
if and
  has_animation_loaded "PAULNMAC"
  is_car_stopped 77@
goto_if_false @CASINO4_17245
95@, 96@, 97@ = get_offset_from_car_in_world_coords 77@ {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 95@ {y} 96@ {z} 97@ {speed} MoveState.Sprint {time} 5000
task_play_anim -1 {animationName} "PISS_IN" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_LOOP" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_OUT" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger -1 {vehicle} 77@ {time} -2 {seat} -1
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
123@ = 2
125@ = 1

:CASINO4_17245
goto @CASINO4_18191

:CASINO4_17252
if 
  123@ == 2
goto_if_false @CASINO4_17560
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17320
123@ = 5
125@ = 0
goto @CASINO4_17553

:CASINO4_17320
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17403
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_17403
if 
  133@ == 1
goto_if_false @CASINO4_17403
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17403
if 
  is_char_playing_anim 71@ {animationName} "PISS_IN"
goto_if_false @CASINO4_17553
95@, 96@, 97@ = get_offset_from_char_in_world_coords 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2
94@ = get_char_anim_current_time 71@ {animationName} "PISS_IN"
137@ = create_fx_system_on_char_with_direction "PETROLCAN" {char} 71@ {xOffset} 0.0 {yOffset} 0.116 {zOffset} 0.048 {xDirection} 95@ {yDirection} 96@ {zDirection} 97@ {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 137@ {handle} 71@ {pedBone} PedBone.Pelvis1
94@ = 0.0
123@ = 3
133@ = 0

:CASINO4_17553
goto @CASINO4_18191

:CASINO4_17560
if 
  123@ == 3
goto_if_false @CASINO4_17915
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17667
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_17660
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17660
goto @CASINO4_17750

:CASINO4_17667
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17750
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_17750
if 
  133@ == 1
goto_if_false @CASINO4_17750
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17750
if 
  is_char_playing_anim 71@ {animationName} "PISS_IN"
goto_if_false @CASINO4_17908
94@ = get_char_anim_current_time 71@ {animationName} "PISS_IN"
if 
  94@ <> 1.0
goto_if_false @CASINO4_17908
if 
  133@ == 0
goto_if_false @CASINO4_17908
if 
  94@ >= 0.6
goto_if_false @CASINO4_17908
if 
  255@ == 0
goto_if_false @CASINO4_17882
252@ = 60
260@ = get_game_timer 

:CASINO4_17882
play_fx_system 137@
287@ = 1
133@ = 1
123@ = 4

:CASINO4_17908
goto @CASINO4_18191

:CASINO4_17915
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_18004
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_17997
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17997
goto @CASINO4_18087

:CASINO4_18004
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_18087
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_18087
if 
  133@ == 1
goto_if_false @CASINO4_18087
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_18087
if 
  is_char_playing_anim 71@ {animationName} "PISS_OUT"
goto_if_false @CASINO4_18191
94@ = get_char_anim_current_time 71@ {animationName} "PISS_OUT"
if 
  133@ == 1
goto_if_false @CASINO4_18191
if 
  94@ >= 0.42
goto_if_false @CASINO4_18191
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_18191
goto @CASINO4_18254

:CASINO4_18198
125@ = 0
126@ = 1
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18254
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_18254
goto @CASINO4_18445

:CASINO4_18261
if 
  125@ == 1
goto_if_false @CASINO4_18349
if 
  not is_char_dead 71@
goto_if_false @CASINO4_18307
clear_char_tasks 71@
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_18307
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
123@ = 5
125@ = 0
133@ = 0
126@ = 1

:CASINO4_18349
if 
  124@ == 1
goto_if_false @CASINO4_18445
if 
  not is_char_dead 72@
goto_if_false @CASINO4_18395
clear_char_tasks 72@
shut_char_up_for_scripted_speech 72@ {state} False

:CASINO4_18395
stop_fx_system 136@
kill_fx_system 136@
clear_mission_audio MissionAudioSlot.Slot3
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
134@ = 0

:CASINO4_18445
goto @CASINO4_18522

:CASINO4_18452
if 
  133@ == 1
goto_if_false @CASINO4_18487
stop_fx_system 137@
kill_fx_system 137@
133@ = 0

:CASINO4_18487
if 
  134@ == 1
goto_if_false @CASINO4_18522
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_18522
if and
  120@ == 1
  119@ == 1
goto_if_false @CASINO4_18723
129@ = 1
if 
  52@ == 0
goto_if_false @CASINO4_18716
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_18716
if and
  not is_char_dead 72@
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18716
if and
  is_char_sitting_in_car 72@ {vehicle} 77@
  is_char_sitting_in_car 71@ {vehicle} 77@
goto_if_false @CASINO4_18716
TIMERA = 0
clear_prints 
print 'CAS4_16' {time} 8000 {flag} 1
70@ = add_blip_for_coord -24.0 {y} 2331.0 {z} 24.0
52@ = 1
272@ = 0
273@ = 0

:CASINO4_18716
goto @CASINO4_20428

:CASINO4_18723
129@ = 0
if 
  52@ == 1
goto_if_false @CASINO4_18760
remove_blip 70@
52@ = 0

:CASINO4_18760
if 
  272@ == 0
goto_if_false @CASINO4_19142
if 
  252@ <> 0
goto_if_false @CASINO4_19142
if 
  255@ == 0
goto_if_false @CASINO4_18842
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_18835
clear_mission_audio 254@

:CASINO4_18835
255@ = 1

:CASINO4_18842
if 
  255@ == 1
goto_if_false @CASINO4_18879
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_18879
if 
  255@ == 2
goto_if_false @CASINO4_18964
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_18964
play_mission_audio 253@
if or
  252@ == 7
  252@ == 8
goto_if_false @CASINO4_18957
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1

:CASINO4_18957
255@ = 3

:CASINO4_18964
if 
  255@ == 3
goto_if_false @CASINO4_19142
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_19081
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_19046
253@ = 2
254@ = 1
goto @CASINO4_19060

:CASINO4_19046
253@ = 1
254@ = 2

:CASINO4_19060
252@ = 0
255@ = 0
goto @CASINO4_19142

:CASINO4_19081
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_19142
if 
  110 > 252@
goto_if_false @CASINO4_19142
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_19142
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_20428
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20428
if or
  locate_char_any_means_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_20400
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_19997
284@ = 0
283@ = 1
if 
  272@ == 0
goto_if_false @CASINO4_19990
if and
  120@ == 1
  119@ == 0
goto_if_false @CASINO4_19532
if 
  locate_char_any_means_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_19532
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19453 {caseNum1} 0 {caseLabel1} @CASINO4_19409 {caseNum2} -1 {caseLabel2} @CASINO4_19532 {caseNum3} -1 {caseLabel3} @CASINO4_19532 {caseNum4} -1 {caseLabel4} @CASINO4_19532 {caseNum5} -1 {caseLabel5} @CASINO4_19532 {caseNum6} -1 {caseLabel6} @CASINO4_19532 {caseNum7} -1 {caseLabel7} @CASINO4_19532

:CASINO4_19409
if 
  255@ == 0
goto_if_false @CASINO4_19446
252@ = 40
273@ = 1
260@ = get_game_timer 

:CASINO4_19446
goto @CASINO4_19532

:CASINO4_19453
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19525
if 
  255@ == 0
goto_if_false @CASINO4_19525
273@ = 0
272@ = 1

:CASINO4_19525
goto @CASINO4_19532

:CASINO4_19532
if and
  120@ == 0
  119@ == 1
goto_if_false @CASINO4_19779
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_19779
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19700 {caseNum1} 0 {caseLabel1} @CASINO4_19656 {caseNum2} -1 {caseLabel2} @CASINO4_19779 {caseNum3} -1 {caseLabel3} @CASINO4_19779 {caseNum4} -1 {caseLabel4} @CASINO4_19779 {caseNum5} -1 {caseLabel5} @CASINO4_19779 {caseNum6} -1 {caseLabel6} @CASINO4_19779 {caseNum7} -1 {caseLabel7} @CASINO4_19779

:CASINO4_19656
if 
  255@ == 0
goto_if_false @CASINO4_19693
252@ = 39
273@ = 1
260@ = get_game_timer 

:CASINO4_19693
goto @CASINO4_19779

:CASINO4_19700
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19772
if 
  255@ == 0
goto_if_false @CASINO4_19772
273@ = 0
272@ = 1

:CASINO4_19772
goto @CASINO4_19779

:CASINO4_19779
if and
  120@ == 0
  119@ == 0
goto_if_false @CASINO4_19990
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19911 {caseNum1} 0 {caseLabel1} @CASINO4_19867 {caseNum2} -1 {caseLabel2} @CASINO4_19990 {caseNum3} -1 {caseLabel3} @CASINO4_19990 {caseNum4} -1 {caseLabel4} @CASINO4_19990 {caseNum5} -1 {caseLabel5} @CASINO4_19990 {caseNum6} -1 {caseLabel6} @CASINO4_19990 {caseNum7} -1 {caseLabel7} @CASINO4_19990

:CASINO4_19867
if 
  255@ == 0
goto_if_false @CASINO4_19904
252@ = 38
273@ = 1
260@ = get_game_timer 

:CASINO4_19904
goto @CASINO4_19990

:CASINO4_19911
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19983
if 
  255@ == 0
goto_if_false @CASINO4_19983
273@ = 0
272@ = 1

:CASINO4_19983
goto @CASINO4_19990

:CASINO4_19990
goto @CASINO4_20393

:CASINO4_19997
272@ = 0
273@ = 0
if 
  284@ == 0
goto_if_false @CASINO4_20393
switch_start 283@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_20283 {caseNum1} 0 {caseLabel1} @CASINO4_20092 {caseNum2} 1 {caseLabel2} @CASINO4_20165 {caseNum3} -1 {caseLabel3} @CASINO4_20393 {caseNum4} -1 {caseLabel4} @CASINO4_20393 {caseNum5} -1 {caseLabel5} @CASINO4_20393 {caseNum6} -1 {caseLabel6} @CASINO4_20393 {caseNum7} -1 {caseLabel7} @CASINO4_20393

:CASINO4_20092
if 
  255@ == 0
goto_if_false @CASINO4_20158
if 
  not is_char_dead 71@
goto_if_false @CASINO4_20139
stop_char_facial_talk 71@
start_char_facial_talk 71@ {duration} 3000

:CASINO4_20139
252@ = 7
283@ = 1
260@ = get_game_timer 

:CASINO4_20158
goto @CASINO4_20393

:CASINO4_20165
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20276
if 
  255@ == 0
goto_if_false @CASINO4_20276
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20257
stop_char_facial_talk 71@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_20257
252@ = 8
283@ = 2
260@ = get_game_timer 

:CASINO4_20276
goto @CASINO4_20393

:CASINO4_20283
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20386
if 
  255@ == 0
goto_if_false @CASINO4_20386
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20372
stop_char_facial_talk 71@
stop_char_facial_talk 72@

:CASINO4_20372
283@ = 0
284@ = 1

:CASINO4_20386
goto @CASINO4_20393

:CASINO4_20393
goto @CASINO4_20428

:CASINO4_20400
272@ = 0
273@ = 0
284@ = 0
283@ = 1

:CASINO4_20428
if 
  52@ == 1
goto_if_false @CASINO4_22496
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_22466
if 
  265@ == 0
goto_if_false @CASINO4_22459
if 
  252@ <> 0
goto_if_false @CASINO4_20828
if 
  255@ == 0
goto_if_false @CASINO4_20553
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_20546
clear_mission_audio 254@

:CASINO4_20546
255@ = 1

:CASINO4_20553
if 
  255@ == 1
goto_if_false @CASINO4_20590
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_20590
if 
  255@ == 2
goto_if_false @CASINO4_20650
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_20650
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_20650
if 
  255@ == 3
goto_if_false @CASINO4_20828
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_20767
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_20732
253@ = 2
254@ = 1
goto @CASINO4_20746

:CASINO4_20732
253@ = 1
254@ = 2

:CASINO4_20746
252@ = 0
255@ = 0
goto @CASINO4_20828

:CASINO4_20767
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_20828
if 
  110 > 252@
goto_if_false @CASINO4_20828
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_20828
if 
  263@ == 0
goto_if_false @CASINO4_21492
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_21485
switch_start 262@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_21344 {caseNum1} 0 {caseLabel1} @CASINO4_20922 {caseNum2} 1 {caseLabel2} @CASINO4_21008 {caseNum3} 2 {caseLabel3} @CASINO4_21092 {caseNum4} 3 {caseLabel4} @CASINO4_21176 {caseNum5} 4 {caseLabel5} @CASINO4_21260 {caseNum6} -1 {caseLabel6} @CASINO4_21485 {caseNum7} -1 {caseLabel7} @CASINO4_21485

:CASINO4_20922
if 
  255@ == 0
goto_if_false @CASINO4_21001
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_20982
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_20982
252@ = 20
262@ = 1
260@ = get_game_timer 

:CASINO4_21001
goto @CASINO4_21485

:CASINO4_21008
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21085
if 
  255@ == 0
goto_if_false @CASINO4_21085
252@ = 21
262@ = 2
260@ = get_game_timer 

:CASINO4_21085
goto @CASINO4_21485

:CASINO4_21092
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21169
if 
  255@ == 0
goto_if_false @CASINO4_21169
252@ = 22
262@ = 3
260@ = get_game_timer 

:CASINO4_21169
goto @CASINO4_21485

:CASINO4_21176
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21253
if 
  255@ == 0
goto_if_false @CASINO4_21253
252@ = 23
262@ = 4
260@ = get_game_timer 

:CASINO4_21253
goto @CASINO4_21485

:CASINO4_21260
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21337
if 
  255@ == 0
goto_if_false @CASINO4_21337
252@ = 24
262@ = 5
260@ = get_game_timer 

:CASINO4_21337
goto @CASINO4_21485

:CASINO4_21344
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21478
if 
  255@ == 0
goto_if_false @CASINO4_21478
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_21444
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_21444
263@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_21478
TIMERA = 25000

:CASINO4_21478
goto @CASINO4_21485

:CASINO4_21485
goto @CASINO4_22459

:CASINO4_21492
if and
  265@ == 0
  128@ == 1
goto_if_false @CASINO4_22459
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_22459
switch_start 264@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_22325 {caseNum1} 0 {caseLabel1} @CASINO4_21658 {caseNum2} 1 {caseLabel2} @CASINO4_21737 {caseNum3} 2 {caseLabel3} @CASINO4_21821 {caseNum4} 3 {caseLabel4} @CASINO4_21905 {caseNum5} 4 {caseLabel5} @CASINO4_21989 {caseNum6} 5 {caseLabel6} @CASINO4_22073 {caseNum7} 6 {caseLabel7} @CASINO4_22157
switch_continued 7 {caseLabel1} @CASINO4_22241 {caseNum2} -1 {caseLabel2} @CASINO4_22459 {caseNum3} -1 {caseLabel3} @CASINO4_22459 {caseNum4} -1 {caseLabel4} @CASINO4_22459 {caseNum5} -1 {caseLabel5} @CASINO4_22459 {caseNum6} -1 {caseLabel6} @CASINO4_22459 {caseNum7} -1 {caseLabel7} @CASINO4_22459 {caseNum8} -1 {caseLabel8} @CASINO4_22459 {caseNum9} -1 {caseLabel9} @CASINO4_22459

:CASINO4_21658
if 
  255@ == 0
goto_if_false @CASINO4_21730
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_21711
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True

:CASINO4_21711
252@ = 25
264@ = 1
260@ = get_game_timer 

:CASINO4_21730
goto @CASINO4_22459

:CASINO4_21737
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21814
if 
  255@ == 0
goto_if_false @CASINO4_21814
252@ = 26
264@ = 2
260@ = get_game_timer 

:CASINO4_21814
goto @CASINO4_22459

:CASINO4_21821
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21898
if 
  255@ == 0
goto_if_false @CASINO4_21898
252@ = 27
264@ = 3
260@ = get_game_timer 

:CASINO4_21898
goto @CASINO4_22459

:CASINO4_21905
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21982
if 
  255@ == 0
goto_if_false @CASINO4_21982
252@ = 28
264@ = 4
260@ = get_game_timer 

:CASINO4_21982
goto @CASINO4_22459

:CASINO4_21989
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22066
if 
  255@ == 0
goto_if_false @CASINO4_22066
252@ = 29
264@ = 5
260@ = get_game_timer 

:CASINO4_22066
goto @CASINO4_22459

:CASINO4_22073
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22150
if 
  255@ == 0
goto_if_false @CASINO4_22150
252@ = 30
264@ = 6
260@ = get_game_timer 

:CASINO4_22150
goto @CASINO4_22459

:CASINO4_22157
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22234
if 
  255@ == 0
goto_if_false @CASINO4_22234
252@ = 31
264@ = 7
260@ = get_game_timer 

:CASINO4_22234
goto @CASINO4_22459

:CASINO4_22241
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22318
if 
  255@ == 0
goto_if_false @CASINO4_22318
252@ = 32
264@ = 8
260@ = get_game_timer 

:CASINO4_22318
goto @CASINO4_22459

:CASINO4_22325
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22452
if 
  255@ == 0
goto_if_false @CASINO4_22452
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_22418
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_22418
265@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_22452
TIMERA = 25000

:CASINO4_22452
goto @CASINO4_22459

:CASINO4_22459
goto @CASINO4_22496

:CASINO4_22466
if 
  52@ == 1
goto_if_false @CASINO4_22496
remove_blip 70@
52@ = 0

:CASINO4_22496
if and
  49@ == 1
  60@ == 0
goto_if_false @CASINO4_22714
if 
  locate_char_any_means_3d $scplayer {x} -32.0 {y} 2337.0 {z} 24.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_22714
custom_plate_for_next_car 478 {text} "__TIM___"
78@ = create_car 478 {x} -50.0 {y} 2358.0 {z} 24.0
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_damaged 78@ {state} False
set_car_heading 78@ {heading} 188.0
freeze_car_position 78@ {state} True
custom_plate_for_next_car 478 {text} "_TAMMY__"
79@ = create_car 478 {x} -46.0 {y} 2355.0 {z} 24.0
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 79@ {heading} 188.0
freeze_car_position 79@ {state} True
set_car_can_be_damaged 79@ {state} False
60@ = 1

:CASINO4_22714
if and
  52@ == 1
  51@ == 0
  49@ == 1
goto_if_false @CASINO4_29650
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_29650
if and
  locate_char_any_means_3d $scplayer {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_char_any_means_3d 72@ {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
  locate_char_any_means_3d 71@ {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_29650
remove_blip 70@
clear_prints 
set_fixed_camera_position -21.46 {y} 2335.3301 {z} 23.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -49.14 {y} 2356.75 {z} 26.09 {switchStyle} SwitchType.JumpCut
make_player_gang_disappear 
switch_widescreen True
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
clear_area -24.0 {y} 2331.0 {z} 24.0 {radius} 50.0 {clearParticles} True
remove_animation "PAULNMAC"
remove_animation "FOOD"
request_animation "SMOKING"
request_model 346

:CASINO4_23027
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded 346
goto_if_false @CASINO4_23065
wait 0
goto @CASINO4_23027

:CASINO4_23065
73@ = create_char PedType.Mission2 {modelId} 32 {x} -32.3702 {y} 2348.239 {z} 23.1328
set_char_heading 73@ {heading} 180.1098
set_char_is_target_priority 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Pistol {ammo} 3000
109@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 73@ {sequence} 109@
clear_sequence_task 109@
74@ = create_char PedType.Mission2 {modelId} 34 {x} -34.288 {y} 2350.2041 {z} 23.1328
set_char_heading 74@ {heading} 177.5823
set_char_is_target_priority 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 3000
109@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 74@ {sequence} 109@
clear_sequence_task 109@
set_fixed_camera_position -21.46 {y} 2335.3301 {z} 23.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -49.14 {y} 2356.75 {z} 26.09 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_23651
clear_area -25.7433 {y} 2334.6289 {z} 23.1328 {radius} 100.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_23475
77@ = store_car_char_is_in $scplayer
set_car_mission 77@ {carMission} CarMission.EmergencyVehicleStop
warp_char_from_car_to_coord $scplayer {x} -25.7433 {y} 2334.6289 {z} 23.1328
set_car_coordinates 77@ {x} -24.0 {y} 2331.0 {z} 24.0
goto @CASINO4_23495

:CASINO4_23475
set_char_coordinates $scplayer {x} -25.7433 {y} 2334.6289 {z} 23.1328

:CASINO4_23495
set_char_heading $scplayer {heading} 35.8419
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_23548
warp_char_from_car_to_coord 72@ {x} -23.6752 {y} 2335.531 {z} 23.1328
goto @CASINO4_23568

:CASINO4_23548
set_char_coordinates 72@ {x} -23.6752 {y} 2334.531 {z} 23.1328

:CASINO4_23568
set_char_heading 72@ {heading} 35.8419
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_23621
warp_char_from_car_to_coord 71@ {x} -27.9403 {y} 2335.105 {z} 23.1328
goto @CASINO4_23641

:CASINO4_23621
set_char_coordinates 71@ {x} -27.9403 {y} 2334.105 {z} 23.1328

:CASINO4_23641
set_char_heading 71@ {heading} 35.8419

:CASINO4_23651
82@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_23676
task_leave_any_car -1

:CASINO4_23676
task_go_straight_to_coord -1 {x} -31.7411 {y} 2342.6799 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 35.5196
close_sequence_task 82@
perform_sequence_task $scplayer {sequence} 82@
clear_sequence_task 82@
clear_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed
if 
  not is_char_dead 71@
goto_if_false @CASINO4_23852
set_char_proofs 71@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
remove_char_from_group 71@
80@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_23794
task_leave_any_car -1

:CASINO4_23794
task_go_straight_to_coord -1 {x} -33.0398 {y} 2342.354 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 37.553
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@
set_char_decision_maker 71@ {handleOrTemplate} 38@

:CASINO4_23852
if 
  not is_char_dead 72@
goto_if_false @CASINO4_23971
set_char_proofs 72@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
remove_char_from_group 72@
81@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_23913
task_leave_any_car -1

:CASINO4_23913
task_go_straight_to_coord -1 {x} -30.0669 {y} 2344.002 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 19.556
close_sequence_task 81@
perform_sequence_task 72@ {sequence} 81@
clear_sequence_task 81@
set_char_decision_maker 72@ {handleOrTemplate} 38@

:CASINO4_23971
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0

:CASINO4_24048
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_24867
if 
  252@ <> 0
goto_if_false @CASINO4_24409
if 
  255@ == 0
goto_if_false @CASINO4_24134
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_24127
clear_mission_audio 254@

:CASINO4_24127
255@ = 1

:CASINO4_24134
if 
  255@ == 1
goto_if_false @CASINO4_24171
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_24171
if 
  255@ == 2
goto_if_false @CASINO4_24231
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_24231
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_24231
if 
  255@ == 3
goto_if_false @CASINO4_24409
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_24348
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_24313
253@ = 2
254@ = 1
goto @CASINO4_24327

:CASINO4_24313
253@ = 1
254@ = 2

:CASINO4_24327
252@ = 0
255@ = 0
goto @CASINO4_24409

:CASINO4_24348
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_24409
if 
  110 > 252@
goto_if_false @CASINO4_24409
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_24409
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_24767 {caseNum1} 0 {caseLabel1} @CASINO4_24472 {caseNum2} 1 {caseLabel2} @CASINO4_24529 {caseNum3} 2 {caseLabel3} @CASINO4_24649 {caseNum4} -1 {caseLabel4} @CASINO4_24860 {caseNum5} -1 {caseLabel5} @CASINO4_24860 {caseNum6} -1 {caseLabel6} @CASINO4_24860 {caseNum7} -1 {caseLabel7} @CASINO4_24860

:CASINO4_24472
if 
  255@ == 0
goto_if_false @CASINO4_24522
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
252@ = 33
257@ = 1
260@ = get_game_timer 

:CASINO4_24522
goto @CASINO4_24860

:CASINO4_24529
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24642
if 
  255@ == 0
goto_if_false @CASINO4_24642
if 
  not is_char_dead 71@
goto_if_false @CASINO4_24616
stop_char_facial_talk 71@
start_char_facial_talk 71@ {duration} 3000

:CASINO4_24616
252@ = 34
257@ = 2
skip_cutscene_start_internal @CASINO4_27873
260@ = get_game_timer 

:CASINO4_24642
goto @CASINO4_24860

:CASINO4_24649
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24760
if 
  255@ == 0
goto_if_false @CASINO4_24760
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_24741
stop_char_facial_talk 71@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_24741
252@ = 35
257@ = 3
260@ = get_game_timer 

:CASINO4_24760
goto @CASINO4_24860

:CASINO4_24767
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24853
if 
  255@ == 0
goto_if_false @CASINO4_24853
if 
  not is_char_dead 72@
goto_if_false @CASINO4_24846
stop_char_facial_talk 72@

:CASINO4_24846
256@ = 1

:CASINO4_24853
goto @CASINO4_24860

:CASINO4_24860
goto @CASINO4_24048

:CASINO4_24867
53@ = 0

:CASINO4_24874
if 
  53@ == 0
goto_if_false @CASINO4_24966
if or
  locate_char_any_means_3d $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  TIMERB > 10000
goto_if_false @CASINO4_24955
53@ = 1

:CASINO4_24955
wait 0
goto @CASINO4_24874

:CASINO4_24966
set_char_coordinates $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125
set_char_heading $scplayer {heading} 37.553
if 
  not is_char_dead 72@
goto_if_false @CASINO4_25047
clear_char_tasks 72@
set_char_coordinates 72@ {x} -30.0669 {y} 2344.002 {z} 23.125
set_char_heading 72@ {heading} 19.556

:CASINO4_25047
if 
  not is_char_dead 71@
goto_if_false @CASINO4_25098
clear_char_tasks 71@
set_char_coordinates 71@ {x} -33.0398 {y} 2342.354 {z} 23.125
set_char_heading 71@ {heading} 37.553

:CASINO4_25098
set_fixed_camera_position -29.85 {y} 2341.05 {z} 23.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -48.53 {y} 2366.47 {z} 31.65 {switchStyle} SwitchType.JumpCut
request_model 31
request_model 33
request_animation "MISC"
if and
  not is_char_dead 73@
  not is_char_dead 74@
goto_if_false @CASINO4_25229
82@ = open_sequence_task 
task_look_at_char -1 {target} 73@ {time} 3000
task_look_at_char -1 {target} 74@ {time} 3000
close_sequence_task 82@
perform_sequence_task $scplayer {sequence} 82@
clear_sequence_task 82@

:CASINO4_25229
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_25299
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_27873
if 
  252@ <> 0
goto_if_false @CASINO4_25744
if 
  255@ == 0
goto_if_false @CASINO4_25385
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_25378
clear_mission_audio 254@

:CASINO4_25378
255@ = 1

:CASINO4_25385
if 
  255@ == 1
goto_if_false @CASINO4_25422
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_25422
if 
  255@ == 2
goto_if_false @CASINO4_25482
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_25482
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_25482
if 
  255@ == 3
goto_if_false @CASINO4_25744
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_25683
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_25564
253@ = 2
254@ = 1
goto @CASINO4_25578

:CASINO4_25564
253@ = 1
254@ = 2

:CASINO4_25578
if 
  not is_char_dead 75@
goto_if_false @CASINO4_25599
stop_char_facial_talk 75@

:CASINO4_25599
if 
  not is_char_dead 73@
goto_if_false @CASINO4_25620
stop_char_facial_talk 73@

:CASINO4_25620
if 
  not is_char_dead 76@
goto_if_false @CASINO4_25641
stop_char_facial_talk 76@

:CASINO4_25641
if 
  not is_char_dead 74@
goto_if_false @CASINO4_25662
stop_char_facial_talk 74@

:CASINO4_25662
252@ = 0
255@ = 0
goto @CASINO4_25744

:CASINO4_25683
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_25744
if 
  110 > 252@
goto_if_false @CASINO4_25744
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_25744
switch_start 257@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_27794 {caseNum1} 0 {caseLabel1} @CASINO4_25872 {caseNum2} 1 {caseLabel2} @CASINO4_25940 {caseNum3} 2 {caseLabel3} @CASINO4_26173 {caseNum4} 3 {caseLabel4} @CASINO4_26281 {caseNum5} 4 {caseLabel5} @CASINO4_26956 {caseNum6} 5 {caseLabel6} @CASINO4_27064 {caseNum7} 6 {caseLabel7} @CASINO4_27286
switch_continued 7 {caseLabel1} @CASINO4_27560 {caseNum2} -1 {caseLabel2} @CASINO4_27866 {caseNum3} -1 {caseLabel3} @CASINO4_27866 {caseNum4} -1 {caseLabel4} @CASINO4_27866 {caseNum5} -1 {caseLabel5} @CASINO4_27866 {caseNum6} -1 {caseLabel6} @CASINO4_27866 {caseNum7} -1 {caseLabel7} @CASINO4_27866 {caseNum8} -1 {caseLabel8} @CASINO4_27866 {caseNum9} -1 {caseLabel9} @CASINO4_27866

:CASINO4_25872
if 
  255@ == 0
goto_if_false @CASINO4_25933
if 
  not is_char_dead 73@
goto_if_false @CASINO4_25914
start_char_facial_talk 73@ {duration} 10000

:CASINO4_25914
252@ = 103
257@ = 1
260@ = get_game_timer 

:CASINO4_25933
goto @CASINO4_27866

:CASINO4_25940
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26166
if 
  255@ == 0
goto_if_false @CASINO4_26166
if 
  has_animation_loaded "MISC"
goto_if_false @CASINO4_26158
clear_look_at $scplayer
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26108
task_look_at_char $scplayer {target} 71@ {time} 6000
task_look_at_char 72@ {target} 71@ {time} 6000
82@ = open_sequence_task 
task_look_at_char -1 {target} 72@ {time} 3000
task_look_at_char -1 {target} $scplayer {time} 3000
close_sequence_task 82@
perform_sequence_task 71@ {sequence} 82@
clear_sequence_task 82@

:CASINO4_26108
if 
  not is_char_dead 74@
goto_if_false @CASINO4_26132
start_char_facial_talk 74@ {duration} 10000

:CASINO4_26132
252@ = 104
257@ = 2
260@ = get_game_timer 
goto @CASINO4_26166

:CASINO4_26158
request_animation "MISC"

:CASINO4_26166
goto @CASINO4_27866

:CASINO4_26173
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26274
if 
  255@ == 0
goto_if_false @CASINO4_26274
if 
  not is_char_dead 74@
goto_if_false @CASINO4_26255
start_char_facial_talk 74@ {duration} 10000

:CASINO4_26255
252@ = 105
257@ = 3
260@ = get_game_timer 

:CASINO4_26274
goto @CASINO4_27866

:CASINO4_26281
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26949
if or
  not has_model_loaded 31
  not has_model_loaded 33
goto_if_false @CASINO4_26355
request_model 31
request_model 33
goto @CASINO4_26949

:CASINO4_26355
if 
  255@ == 0
goto_if_false @CASINO4_26949
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26409
clear_look_at $scplayer
clear_look_at 72@
clear_look_at 71@

:CASINO4_26409
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26544
82@ = open_sequence_task 
task_stand_still -1 {time} 2000
task_play_anim -1 {animationName} "PLYR_SHKHEAD" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 82@
perform_sequence_task 71@ {sequence} 82@
clear_sequence_task 82@
task_look_at_char $scplayer {target} 71@ {time} 6000
82@ = open_sequence_task 
task_stand_still -1 {time} 3000
task_scratch_head -1
close_sequence_task 82@
perform_sequence_task 72@ {sequence} 82@
clear_sequence_task 82@

:CASINO4_26544
clear_look_at $scplayer
76@ = create_char PedType.Mission2 {modelId} 31 {x} -45.2021 {y} 2350.3201 {z} 23.125
set_char_heading 76@ {heading} 176.976
set_anim_group_for_char 76@ {animGroup} "SEXYWOMAN"
set_char_is_target_priority 76@ {state} True
set_char_decision_maker 76@ {handleOrTemplate} 38@
flush_route 
extend_route -44.052 {y} 2348.615 {z} 23.125
extend_route -39.8254 {y} 2346.7329 {z} 23.125
extend_route -36.6941 {y} 2346.5 {z} 23.125
109@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 109@
perform_sequence_task 76@ {sequence} 109@
clear_sequence_task 109@
75@ = create_char PedType.Mission2 {modelId} 33 {x} -46.1256 {y} 2351.387 {z} 23.125
set_char_heading 75@ {heading} 176.976
set_char_decision_maker 75@ {handleOrTemplate} 38@
flush_route 
extend_route -44.052 {y} 2348.615 {z} 23.125
extend_route -39.8254 {y} 2346.7329 {z} 23.125
extend_route -38.286 {y} 2346.675 {z} 23.125
extend_route -36.1799 {y} 2348.4121 {z} 23.125
109@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 109@
perform_sequence_task 75@ {sequence} 109@
clear_sequence_task 109@
set_fixed_camera_position -36.34 {y} 2345.1899 {z} 24.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -50.23 {y} 2366.3201 {z} 23.72 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @CASINO4_26930
start_char_facial_talk 75@ {duration} 10000

:CASINO4_26930
252@ = 106
257@ = 4
260@ = get_game_timer 

:CASINO4_26949
goto @CASINO4_27866

:CASINO4_26956
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27057
if 
  255@ == 0
goto_if_false @CASINO4_27057
if 
  not is_char_dead 75@
goto_if_false @CASINO4_27038
start_char_facial_talk 75@ {duration} 10000

:CASINO4_27038
252@ = 107
257@ = 5
260@ = get_game_timer 

:CASINO4_27057
goto @CASINO4_27866

:CASINO4_27064
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27279
if 
  255@ == 0
goto_if_false @CASINO4_27279
if 
  not is_char_dead 76@
goto_if_false @CASINO4_27260
90@ = get_script_task_status 76@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_27253
task_play_anim 76@ {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
252@ = 108
if 
  not is_char_dead 76@
goto_if_false @CASINO4_27241
start_char_facial_talk 76@ {duration} 10000

:CASINO4_27241
257@ = 6
260@ = get_game_timer 

:CASINO4_27253
goto @CASINO4_27279

:CASINO4_27260
252@ = 108
257@ = 6
260@ = get_game_timer 

:CASINO4_27279
goto @CASINO4_27866

:CASINO4_27286
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27553
if 
  255@ == 0
goto_if_false @CASINO4_27553
set_fixed_camera_position -30.33 {y} 2342.29 {z} 24.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -41.67 {y} 2352.5 {z} 23.55 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @CASINO4_27454
task_play_anim 75@ {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO4_27454
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27510
task_play_anim 73@ {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO4_27510
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27534
start_char_facial_talk 73@ {duration} 10000

:CASINO4_27534
252@ = 109
257@ = 7
260@ = get_game_timer 

:CASINO4_27553
goto @CASINO4_27866

:CASINO4_27560
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27787
if 
  255@ == 0
goto_if_false @CASINO4_27787
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27744
109@ = open_sequence_task 
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COLT45_RELOAD" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_aim_gun_at_char -1 {target} $scplayer {time} 6000
close_sequence_task 109@
perform_sequence_task 73@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_27744
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27768
start_char_facial_talk 73@ {duration} 10000

:CASINO4_27768
252@ = 110
257@ = 8
260@ = get_game_timer 

:CASINO4_27787
goto @CASINO4_27866

:CASINO4_27794
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27859
if 
  255@ == 0
goto_if_false @CASINO4_27859
256@ = 1

:CASINO4_27859
goto @CASINO4_27866

:CASINO4_27866
goto @CASINO4_25299

:CASINO4_27873
skip_cutscene_end 
make_player_gang_reappear 
clear_mission_audio 253@
clear_mission_audio 254@
add_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 100.0 {hate} 0.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} False

:CASINO4_27921
if or
  not has_model_loaded 32
  not has_model_loaded 34
  not has_model_loaded 31
  not has_model_loaded 33
  not has_model_loaded 346
goto_if_false @CASINO4_27981
wait 0
request_model 34
request_model 31
request_model 33
request_model 346
goto @CASINO4_27921

:CASINO4_27981
delete_char 73@
mark_char_as_no_longer_needed 73@
73@ = create_char PedType.Mission2 {modelId} 32 {x} -32.3702 {y} 2348.239 {z} 23.125
set_char_heading 73@ {heading} 180.1098
set_char_is_target_priority 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Pistol {ammo} 3000
delete_char 74@
mark_char_as_no_longer_needed 74@
74@ = create_char PedType.Mission2 {modelId} 34 {x} -34.288 {y} 2350.2041 {z} 23.125
set_char_heading 74@ {heading} 177.5823
set_char_is_target_priority 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 3000
delete_char 76@
mark_char_as_no_longer_needed 76@
76@ = create_char PedType.Mission2 {modelId} 31 {x} -36.6941 {y} 2346.5 {z} 23.125
set_char_heading 76@ {heading} 259.6481
set_anim_group_for_char 76@ {animGroup} "SEXYWOMAN"
set_char_is_target_priority 76@ {state} True
delete_char 75@
mark_char_as_no_longer_needed 75@
75@ = create_char PedType.Mission2 {modelId} 33 {x} -36.1799 {y} 2348.4121 {z} 23.125
set_char_heading 75@ {heading} 265.8938
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_28257
warp_char_from_car_to_coord $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125
goto @CASINO4_28277

:CASINO4_28257
set_char_coordinates $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125

:CASINO4_28277
set_char_heading $scplayer {heading} 37.553
if 
  not is_char_dead 72@
goto_if_false @CASINO4_28381
clear_char_tasks 72@
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_28351
warp_char_from_car_to_coord 72@ {x} -30.0669 {y} 2344.002 {z} 23.125
goto @CASINO4_28371

:CASINO4_28351
set_char_coordinates 72@ {x} -30.0669 {y} 2344.002 {z} 23.125

:CASINO4_28371
set_char_heading 72@ {heading} 19.556

:CASINO4_28381
if 
  not is_char_dead 71@
goto_if_false @CASINO4_28475
clear_char_tasks 71@
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_28445
warp_char_from_car_to_coord 71@ {x} -33.0398 {y} 2342.354 {z} 23.125
goto @CASINO4_28465

:CASINO4_28445
set_char_coordinates 71@ {x} -33.0398 {y} 2342.354 {z} 23.125

:CASINO4_28465
set_char_heading 71@ {heading} 37.553

:CASINO4_28475
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_28510
task_toggle_duck 71@ {state} True
task_toggle_duck 72@ {state} True

:CASINO4_28510
34@, 35@, 36@ = get_char_coordinates $scplayer
if and
  not is_char_dead 73@
  not is_car_dead 79@
goto_if_false @CASINO4_28669
freeze_car_position 79@ {state} False
83@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -46.3592 {y} 2346.9771 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 3000 {seat} SeatId.BikeRear
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
close_sequence_task 83@
perform_sequence_task 73@ {sequence} 83@
clear_sequence_task 83@
goto @CASINO4_28714

:CASINO4_28669
if or
  is_car_dead 79@
  is_char_dead 76@
goto_if_false @CASINO4_28714
if 
  not is_char_dead 73@
goto_if_false @CASINO4_28714
task_kill_char_on_foot 73@ {target} $scplayer

:CASINO4_28714
if and
  not is_char_dead 74@
  not is_car_dead 78@
goto_if_false @CASINO4_28859
freeze_car_position 78@ {state} False
84@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -44.9959 {y} 2346.3811 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 78@ {time} 3000 {seat} SeatId.BikeRear
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
close_sequence_task 84@
perform_sequence_task 74@ {sequence} 84@
clear_sequence_task 84@
goto @CASINO4_28904

:CASINO4_28859
if or
  is_car_dead 78@
  is_char_dead 75@
goto_if_false @CASINO4_28904
if 
  not is_char_dead 74@
goto_if_false @CASINO4_28904
task_kill_char_on_foot 74@ {target} $scplayer

:CASINO4_28904
if and
  not is_char_dead 75@
  not is_car_dead 78@
goto_if_false @CASINO4_29012
freeze_car_position 78@ {state} False
86@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -44.9959 {y} 2346.3811 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_driver -1 {vehicle} 78@ {time} 3000
close_sequence_task 86@
perform_sequence_task 75@ {sequence} 86@
clear_sequence_task 86@
goto @CASINO4_29041

:CASINO4_29012
if and
  is_car_dead 78@
  not is_char_dead 75@
goto_if_false @CASINO4_29041
task_kill_char_on_foot 75@ {target} $scplayer

:CASINO4_29041
if and
  not is_char_dead 76@
  not is_car_dead 79@
goto_if_false @CASINO4_29149
freeze_car_position 79@ {state} False
85@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -46.3592 {y} 2346.9771 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_driver -1 {vehicle} 79@ {time} 3000
close_sequence_task 85@
perform_sequence_task 76@ {sequence} 85@
clear_sequence_task 85@
goto @CASINO4_29178

:CASINO4_29149
if and
  is_car_dead 79@
  not is_char_dead 76@
goto_if_false @CASINO4_29178
task_kill_char_on_foot 76@ {target} $scplayer

:CASINO4_29178
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 78@
goto_if_false @CASINO4_29215
set_car_can_be_damaged 78@ {state} True
set_car_only_damaged_by_player 78@ {state} True

:CASINO4_29215
if 
  not is_car_dead 79@
goto_if_false @CASINO4_29245
set_car_can_be_damaged 79@ {state} True
set_car_only_damaged_by_player 79@ {state} True

:CASINO4_29245
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_29296
clear_char_tasks $scplayer
clear_char_tasks 72@
clear_char_tasks 71@
clear_look_at $scplayer
clear_look_at 72@
clear_look_at 71@

:CASINO4_29296
remove_animation "SMOKING"
remove_animation "MISC"
clear_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 38@ {event} Event.ShotFired
add_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
clear_group_decision_maker_event_response 39@ {event} Event.Damage
add_group_decision_maker_event_response 39@ {event} Event.ShotFired {taskId} TaskId.GroupUseMemberDecision {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_29513
if 
  not is_group_member 72@ {handle} $Players_Group
goto_if_false @CASINO4_29486
set_group_member $Players_Group {handle} 72@

:CASINO4_29486
if 
  not is_group_member 71@ {handle} $Players_Group
goto_if_false @CASINO4_29513
set_group_member $Players_Group {handle} 71@

:CASINO4_29513
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
272@ = 0
273@ = 0
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  46@ == 0
goto_if_false @CASINO4_29633
69@ = add_blip_for_coord 2175.21 {y} 1679.37 {z} 9.85
print_now 'CAS4_06' {time} 8000 {flag} 1
46@ = 1

:CASINO4_29633
51@ = 1
132@ = 9999999

:CASINO4_29650
if 
  51@ > 0
goto_if_false @CASINO4_33641
if 
  not is_char_dead 71@
goto_if_false @CASINO4_29906
if 
  120@ == 1
goto_if_false @CASINO4_29836
if 
  not locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_29829
remove_char_from_group 71@
if 
  not is_char_in_any_car 71@
goto_if_false @CASINO4_29771
task_tired 71@ {time} 60000
goto @CASINO4_29807

:CASINO4_29771
80@ = open_sequence_task 
task_leave_any_car -1
task_tired -1 {time} 60000
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@

:CASINO4_29807
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_29829
goto @CASINO4_29906

:CASINO4_29836
if 
  locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_29906
if 
  not is_group_member 71@ {handle} $Players_Group
goto_if_false @CASINO4_29894
set_group_member $Players_Group {handle} 71@

:CASINO4_29894
remove_blip 68@
120@ = 1

:CASINO4_29906
if 
  not is_char_dead 72@
goto_if_false @CASINO4_30144
if 
  119@ == 1
goto_if_false @CASINO4_30074
if 
  not locate_char_any_means_char_2d $scplayer {target} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_30067
remove_char_from_group 72@
if 
  not is_char_in_any_car 72@
goto_if_false @CASINO4_30009
task_tired 72@ {time} 60000
goto @CASINO4_30045

:CASINO4_30009
80@ = open_sequence_task 
task_leave_any_car -1
task_tired -1 {time} 60000
close_sequence_task 80@
perform_sequence_task 72@ {sequence} 80@
clear_sequence_task 80@

:CASINO4_30045
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_30067
goto @CASINO4_30144

:CASINO4_30074
if 
  locate_char_any_means_char_2d $scplayer {target} 72@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_30144
if 
  not is_group_member 72@ {handle} $Players_Group
goto_if_false @CASINO4_30132
set_group_member $Players_Group {handle} 72@

:CASINO4_30132
remove_blip 67@
119@ = 1

:CASINO4_30144
if and
  119@ == 1
  120@ == 1
goto_if_false @CASINO4_32754
if 
  269@ == 0
goto_if_false @CASINO4_32677
if 
  252@ <> 0
goto_if_false @CASINO4_30526
if 
  255@ == 0
goto_if_false @CASINO4_30251
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_30244
clear_mission_audio 254@

:CASINO4_30244
255@ = 1

:CASINO4_30251
if 
  255@ == 1
goto_if_false @CASINO4_30288
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_30288
if 
  255@ == 2
goto_if_false @CASINO4_30348
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_30348
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_30348
if 
  255@ == 3
goto_if_false @CASINO4_30526
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_30465
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_30430
253@ = 2
254@ = 1
goto @CASINO4_30444

:CASINO4_30430
253@ = 1
254@ = 2

:CASINO4_30444
252@ = 0
255@ = 0
goto @CASINO4_30526

:CASINO4_30465
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_30526
if 
  110 > 252@
goto_if_false @CASINO4_30526
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_30526
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_32677
if 
  267@ == 0
goto_if_false @CASINO4_31597
if 
  271@ == 0
goto_if_false @CASINO4_30852
switch_start 270@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_30766 {caseNum1} 0 {caseLabel1} @CASINO4_30638 {caseNum2} 1 {caseLabel2} @CASINO4_30682 {caseNum3} -1 {caseLabel3} @CASINO4_30845 {caseNum4} -1 {caseLabel4} @CASINO4_30845 {caseNum5} -1 {caseLabel5} @CASINO4_30845 {caseNum6} -1 {caseLabel6} @CASINO4_30845 {caseNum7} -1 {caseLabel7} @CASINO4_30845

:CASINO4_30638
if 
  255@ == 0
goto_if_false @CASINO4_30675
252@ = 36
270@ = 1
260@ = get_game_timer 

:CASINO4_30675
goto @CASINO4_30845

:CASINO4_30682
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30759
if 
  255@ == 0
goto_if_false @CASINO4_30759
252@ = 37
270@ = 2
260@ = get_game_timer 

:CASINO4_30759
goto @CASINO4_30845

:CASINO4_30766
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30838
if 
  255@ == 0
goto_if_false @CASINO4_30838
271@ = 1
TIMERB = 0

:CASINO4_30838
goto @CASINO4_30845

:CASINO4_30845
goto @CASINO4_31590

:CASINO4_30852
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_31590
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_31590
if 
  TIMERB > 10000
goto_if_false @CASINO4_31590
switch_start 266@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_31469 {caseNum1} 0 {caseLabel1} @CASINO4_30963 {caseNum2} 1 {caseLabel2} @CASINO4_31049 {caseNum3} 2 {caseLabel3} @CASINO4_31133 {caseNum4} 3 {caseLabel4} @CASINO4_31217 {caseNum5} 4 {caseLabel5} @CASINO4_31301 {caseNum6} 5 {caseLabel6} @CASINO4_31385 {caseNum7} -1 {caseLabel7} @CASINO4_31590

:CASINO4_30963
if 
  255@ == 0
goto_if_false @CASINO4_31042
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31023
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_31023
252@ = 46
266@ = 1
260@ = get_game_timer 

:CASINO4_31042
goto @CASINO4_31590

:CASINO4_31049
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31126
if 
  255@ == 0
goto_if_false @CASINO4_31126
252@ = 47
266@ = 2
260@ = get_game_timer 

:CASINO4_31126
goto @CASINO4_31590

:CASINO4_31133
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31210
if 
  255@ == 0
goto_if_false @CASINO4_31210
252@ = 48
266@ = 3
260@ = get_game_timer 

:CASINO4_31210
goto @CASINO4_31590

:CASINO4_31217
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31294
if 
  255@ == 0
goto_if_false @CASINO4_31294
252@ = 49
266@ = 4
260@ = get_game_timer 

:CASINO4_31294
goto @CASINO4_31590

:CASINO4_31301
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31378
if 
  255@ == 0
goto_if_false @CASINO4_31378
252@ = 92
266@ = 5
260@ = get_game_timer 

:CASINO4_31378
goto @CASINO4_31590

:CASINO4_31385
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31462
if 
  255@ == 0
goto_if_false @CASINO4_31462
252@ = 93
266@ = 6
260@ = get_game_timer 

:CASINO4_31462
goto @CASINO4_31590

:CASINO4_31469
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31583
if 
  255@ == 0
goto_if_false @CASINO4_31583
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31569
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_31569
267@ = 1
TIMERB = 0

:CASINO4_31583
goto @CASINO4_31590

:CASINO4_31590
goto @CASINO4_32677

:CASINO4_31597
if 
  269@ == 0
goto_if_false @CASINO4_32677
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_32677
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_32677
if 
  TIMERB > 10000
goto_if_false @CASINO4_32677
switch_start 268@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @CASINO4_32563 {caseNum1} 0 {caseLabel1} @CASINO4_31791 {caseNum2} 1 {caseLabel2} @CASINO4_31877 {caseNum3} 2 {caseLabel3} @CASINO4_31961 {caseNum4} 3 {caseLabel4} @CASINO4_31975 {caseNum5} 4 {caseLabel5} @CASINO4_32059 {caseNum6} 5 {caseLabel6} @CASINO4_32143 {caseNum7} 6 {caseLabel7} @CASINO4_32227
switch_continued 7 {caseLabel1} @CASINO4_32311 {caseNum2} 8 {caseLabel2} @CASINO4_32395 {caseNum3} 9 {caseLabel3} @CASINO4_32479 {caseNum4} -1 {caseLabel4} @CASINO4_32677 {caseNum5} -1 {caseLabel5} @CASINO4_32677 {caseNum6} -1 {caseLabel6} @CASINO4_32677 {caseNum7} -1 {caseLabel7} @CASINO4_32677 {caseNum8} -1 {caseLabel8} @CASINO4_32677 {caseNum9} -1 {caseLabel9} @CASINO4_32677

:CASINO4_31791
if 
  255@ == 0
goto_if_false @CASINO4_31870
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31851
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_31851
252@ = 82
268@ = 1
260@ = get_game_timer 

:CASINO4_31870
goto @CASINO4_32677

:CASINO4_31877
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31954
if 
  255@ == 0
goto_if_false @CASINO4_31954
252@ = 83
268@ = 2
260@ = get_game_timer 

:CASINO4_31954
goto @CASINO4_32677

:CASINO4_31961
268@ = 3
goto @CASINO4_32677

:CASINO4_31975
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32052
if 
  255@ == 0
goto_if_false @CASINO4_32052
252@ = 85
268@ = 4
260@ = get_game_timer 

:CASINO4_32052
goto @CASINO4_32677

:CASINO4_32059
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32136
if 
  255@ == 0
goto_if_false @CASINO4_32136
252@ = 86
268@ = 5
260@ = get_game_timer 

:CASINO4_32136
goto @CASINO4_32677

:CASINO4_32143
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32220
if 
  255@ == 0
goto_if_false @CASINO4_32220
252@ = 87
268@ = 6
260@ = get_game_timer 

:CASINO4_32220
goto @CASINO4_32677

:CASINO4_32227
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32304
if 
  255@ == 0
goto_if_false @CASINO4_32304
252@ = 88
268@ = 7
260@ = get_game_timer 

:CASINO4_32304
goto @CASINO4_32677

:CASINO4_32311
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32388
if 
  255@ == 0
goto_if_false @CASINO4_32388
252@ = 89
268@ = 8
260@ = get_game_timer 

:CASINO4_32388
goto @CASINO4_32677

:CASINO4_32395
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32472
if 
  255@ == 0
goto_if_false @CASINO4_32472
252@ = 90
268@ = 9
260@ = get_game_timer 

:CASINO4_32472
goto @CASINO4_32677

:CASINO4_32479
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32556
if 
  255@ == 0
goto_if_false @CASINO4_32556
252@ = 91
268@ = 10
260@ = get_game_timer 

:CASINO4_32556
goto @CASINO4_32677

:CASINO4_32563
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32670
if 
  255@ == 0
goto_if_false @CASINO4_32670
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_32663
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_32663
269@ = 1

:CASINO4_32670
goto @CASINO4_32677

:CASINO4_32677
if 
  46@ == 0
goto_if_false @CASINO4_32747
272@ = 0
69@ = add_blip_for_coord 2175.21 {y} 1679.37 {z} 9.85
clear_prints 
print 'CAS4_06' {time} 8000 {flag} 1
46@ = 1

:CASINO4_32747
goto @CASINO4_33641

:CASINO4_32754
if 
  46@ == 1
goto_if_false @CASINO4_32784
remove_blip 69@
46@ = 0

:CASINO4_32784
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_32852
if 
  132@ <> 0
goto_if_false @CASINO4_32852
clear_prints 
print 'CAS4_37' {time} 7000 {flag} 1
132@ = 0

:CASINO4_32852
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_32920
if 
  132@ <> 1
goto_if_false @CASINO4_32920
clear_prints 
print 'CAS4_03' {time} 7000 {flag} 1
132@ = 1

:CASINO4_32920
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_32988
if 
  132@ <> 2
goto_if_false @CASINO4_32988
clear_prints 
print 'CAS4_02' {time} 7000 {flag} 1
132@ = 2

:CASINO4_32988
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_33641
if 
  272@ == 0
goto_if_false @CASINO4_33641
if 
  252@ <> 0
goto_if_false @CASINO4_33358
if 
  255@ == 0
goto_if_false @CASINO4_33083
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_33076
clear_mission_audio 254@

:CASINO4_33076
255@ = 1

:CASINO4_33083
if 
  255@ == 1
goto_if_false @CASINO4_33120
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_33120
if 
  255@ == 2
goto_if_false @CASINO4_33180
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_33180
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_33180
if 
  255@ == 3
goto_if_false @CASINO4_33358
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_33297
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_33262
253@ = 2
254@ = 1
goto @CASINO4_33276

:CASINO4_33262
253@ = 1
254@ = 2

:CASINO4_33276
252@ = 0
255@ = 0
goto @CASINO4_33358

:CASINO4_33297
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_33358
if 
  110 > 252@
goto_if_false @CASINO4_33358
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_33358
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_33641
switch_start 273@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_33562 {caseNum1} 0 {caseLabel1} @CASINO4_33434 {caseNum2} 1 {caseLabel2} @CASINO4_33478 {caseNum3} -1 {caseLabel3} @CASINO4_33641 {caseNum4} -1 {caseLabel4} @CASINO4_33641 {caseNum5} -1 {caseLabel5} @CASINO4_33641 {caseNum6} -1 {caseLabel6} @CASINO4_33641 {caseNum7} -1 {caseLabel7} @CASINO4_33641

:CASINO4_33434
if 
  255@ == 0
goto_if_false @CASINO4_33471
252@ = 40
273@ = 1
260@ = get_game_timer 

:CASINO4_33471
goto @CASINO4_33641

:CASINO4_33478
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33555
if 
  255@ == 0
goto_if_false @CASINO4_33555
252@ = 41
273@ = 2
260@ = get_game_timer 

:CASINO4_33555
goto @CASINO4_33641

:CASINO4_33562
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33634
if 
  255@ == 0
goto_if_false @CASINO4_33634
273@ = 0
272@ = 1

:CASINO4_33634
goto @CASINO4_33641

:CASINO4_33641
if 
  51@ == 1
goto_if_false @CASINO4_34168
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_33683
77@ = store_car_char_is_in $scplayer

:CASINO4_33683
if and
  not is_char_dead 73@
  not is_car_dead 79@
goto_if_false @CASINO4_33737
if 
  is_char_in_car 73@ {vehicle} 79@
goto_if_false @CASINO4_33730
55@ = 1

:CASINO4_33730
goto @CASINO4_33744

:CASINO4_33737
55@ = 1

:CASINO4_33744
if and
  55@ == 1
  64@ == 0
goto_if_false @CASINO4_33877
if and
  not is_char_dead 76@
  not is_car_dead 79@
  not is_car_dead 77@
goto_if_false @CASINO4_33877
87@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 79@ {x} -44.86 {y} 2345.23 {z} 23.16 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_mission -1 {vehicle} 79@ {targetVehicle} 77@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 87@
perform_sequence_task 76@ {sequence} 87@
clear_sequence_task 87@
64@ = 1

:CASINO4_33877
if and
  not is_char_dead 74@
  not is_car_dead 78@
goto_if_false @CASINO4_33931
if 
  is_char_in_car 74@ {vehicle} 78@
goto_if_false @CASINO4_33924
54@ = 1

:CASINO4_33924
goto @CASINO4_33938

:CASINO4_33931
54@ = 1

:CASINO4_33938
if and
  54@ == 1
  65@ == 0
goto_if_false @CASINO4_34071
if and
  not is_char_dead 75@
  not is_car_dead 78@
  not is_car_dead 77@
goto_if_false @CASINO4_34071
88@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 78@ {x} -50.86 {y} 2349.23 {z} 23.16 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_mission -1 {vehicle} 78@ {targetVehicle} 77@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 88@
perform_sequence_task 75@ {sequence} 88@
clear_sequence_task 88@
65@ = 1

:CASINO4_34071
if and
  54@ == 1
  55@ == 1
goto_if_false @CASINO4_34168
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_34147
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True

:CASINO4_34147
clear_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 38@ {event} Event.ShotFired
51@ = 2

:CASINO4_34168
if and
  51@ == 2
  98@ == 0
goto_if_false @CASINO4_35547
if 
  is_char_dead 76@
goto_if_false @CASINO4_34223
61@ = 0
goto @CASINO4_34279

:CASINO4_34223
if 
  not is_car_dead 79@
goto_if_false @CASINO4_34279
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_34272
61@ = 1
goto @CASINO4_34279

:CASINO4_34272
61@ = 0

:CASINO4_34279
if 
  is_char_dead 75@
goto_if_false @CASINO4_34309
62@ = 0
goto @CASINO4_34379

:CASINO4_34309
if 
  not is_car_dead 78@
goto_if_false @CASINO4_34372
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_34358
62@ = 1
goto @CASINO4_34365

:CASINO4_34358
62@ = 0

:CASINO4_34365
goto @CASINO4_34379

:CASINO4_34372
62@ = 0

:CASINO4_34379
if 
  not is_char_dead 73@
goto_if_false @CASINO4_34553
if or
  is_car_dead 79@
  not is_char_in_any_car 73@
  61@ == 0
goto_if_false @CASINO4_34553
90@ = get_script_task_status 73@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34553
90@ = get_script_task_status 73@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34528
if 
  56@ == 0
goto_if_false @CASINO4_34521
task_kill_char_on_foot 73@ {target} $scplayer
56@ = 1

:CASINO4_34521
goto @CASINO4_34553

:CASINO4_34528
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34553
56@ = 0

:CASINO4_34553
if 
  not is_char_dead 76@
goto_if_false @CASINO4_34722
if or
  is_car_dead 79@
  61@ == 0
goto_if_false @CASINO4_34722
90@ = get_script_task_status 76@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34722
90@ = get_script_task_status 76@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34697
if 
  58@ == 0
goto_if_false @CASINO4_34690
task_kill_char_on_foot 76@ {target} $scplayer
58@ = 1

:CASINO4_34690
goto @CASINO4_34722

:CASINO4_34697
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34722
58@ = 0

:CASINO4_34722
if 
  not is_char_dead 74@
goto_if_false @CASINO4_34896
if or
  is_car_dead 78@
  not is_char_in_any_car 74@
  62@ == 0
goto_if_false @CASINO4_34896
90@ = get_script_task_status 74@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34896
90@ = get_script_task_status 74@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34871
if 
  59@ == 0
goto_if_false @CASINO4_34864
task_kill_char_on_foot 74@ {target} $scplayer
59@ = 1

:CASINO4_34864
goto @CASINO4_34896

:CASINO4_34871
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34896
59@ = 0

:CASINO4_34896
if 
  not is_char_dead 75@
goto_if_false @CASINO4_35065
if or
  is_car_dead 78@
  62@ == 0
goto_if_false @CASINO4_35065
90@ = get_script_task_status 75@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35065
90@ = get_script_task_status 75@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_35040
if 
  57@ == 0
goto_if_false @CASINO4_35033
task_kill_char_on_foot 75@ {target} $scplayer
57@ = 1

:CASINO4_35033
goto @CASINO4_35065

:CASINO4_35040
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35065
57@ = 0

:CASINO4_35065
if and
  not is_char_dead 76@
  not is_car_dead 79@
goto_if_false @CASINO4_35306
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_35306
set_car_cruise_speed 79@ {maxSpeed} 35.0
if and
  not locate_char_any_means_char_2d $scplayer {target} 76@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  not is_car_on_screen 79@
goto_if_false @CASINO4_35306
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASINO4_35306
91@, 92@, 93@ = get_char_coordinates $scplayer
95@, 96@, 97@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -10.0 {yOffset} -10.0 {zOffset} 0.0
if 
  not is_point_obscured_by_a_mission_entity 95@ {y} 96@ {z} 97@ {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CASINO4_35306
if 
  not is_point_on_screen 95@ {y} 96@ {z} 97@ {radius} 4.0
goto_if_false @CASINO4_35306
set_car_coordinates 79@ {x} 95@ {y} 96@ {z} 97@
turn_car_to_face_coord 79@ {x} 91@ {y} 92@
set_car_mission 79@ {carMission} CarMission.RamPlayerClose

:CASINO4_35306
if and
  not is_char_dead 75@
  not is_car_dead 78@
goto_if_false @CASINO4_35547
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_35547
set_car_cruise_speed 78@ {maxSpeed} 35.0
if and
  not locate_char_any_means_char_2d $scplayer {target} 75@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  not is_car_on_screen 78@
goto_if_false @CASINO4_35547
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASINO4_35547
91@, 92@, 93@ = get_char_coordinates $scplayer
95@, 96@, 97@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -13.0 {yOffset} -13.0 {zOffset} 0.0
if 
  not is_point_obscured_by_a_mission_entity 95@ {y} 96@ {z} 97@ {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CASINO4_35547
if 
  not is_point_on_screen 95@ {y} 96@ {z} 97@ {radius} 4.0
goto_if_false @CASINO4_35547
set_car_coordinates 78@ {x} 95@ {y} 96@ {z} 97@
turn_car_to_face_coord 78@ {x} 91@ {y} 92@
set_car_mission 78@ {carMission} CarMission.RamPlayerClose

:CASINO4_35547
99@ = 0
100@ = 0

:CASINO4_35561
if 
  4 > 99@
goto_if_false @CASINO4_35649
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_35617
101@(99@,4i) = 1
goto @CASINO4_35635

:CASINO4_35617
101@(99@,4i) = 0
100@ += 1

:CASINO4_35635
99@ += 1
goto @CASINO4_35561

:CASINO4_35649
if or
  46@ == 1
  45@ == 1
goto_if_false @CASINO4_38621
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_38621
if 
  45@ == 0
goto_if_false @CASINO4_35957
if and
  100@ > 0
  98@ == 0
goto_if_false @CASINO4_35814
if 
  locate_char_any_means_3d $scplayer {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO4_35807
gosub @CASINO4_39171
98@ = 1
45@ = 1

:CASINO4_35807
goto @CASINO4_35950

:CASINO4_35814
if and
  locate_char_any_means_3d $scplayer {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_char_any_means_3d 72@ {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
  locate_char_any_means_3d 71@ {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_35950
remove_blip 69@
45@ = 1
clear_prints 

:CASINO4_35950
goto @CASINO4_38621

:CASINO4_35957
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_38621
clear_prints 
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:CASINO4_35994
if 
  get_fading_status 
goto_if_false @CASINO4_36018
wait 0
goto @CASINO4_35994

:CASINO4_36018
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 78@
switch_widescreen True
set_fixed_camera_position 2188.26 {y} 1678.0 {z} 11.19 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2153.54 {y} 1692.9399 {z} 12.04 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_36460
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_36167
warp_char_from_car_to_coord 71@ {x} 2179.708 {y} 1680.568 {z} 10.0469
goto @CASINO4_36187

:CASINO4_36167
set_char_coordinates 71@ {x} 2179.708 {y} 1680.568 {z} 10.0469

:CASINO4_36187
set_char_heading 71@ {heading} 266.3517
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_36240
warp_char_from_car_to_coord 72@ {x} 2179.708 {y} 1677.568 {z} 10.0469
goto @CASINO4_36260

:CASINO4_36240
set_char_coordinates 72@ {x} 2179.708 {y} 1677.568 {z} 10.0469

:CASINO4_36260
set_char_heading 72@ {heading} 266.3517
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_36313
warp_char_from_car_to_coord $scplayer {x} 2179.759 {y} 1678.957 {z} 10.0469
goto @CASINO4_36333

:CASINO4_36313
set_char_coordinates $scplayer {x} 2179.759 {y} 1678.957 {z} 10.0469

:CASINO4_36333
set_char_heading $scplayer {heading} 269.249
remove_decision_maker 38@
38@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_decision_maker 72@ {handleOrTemplate} 38@
task_go_straight_to_coord $scplayer {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1
remove_char_from_group 71@
task_go_straight_to_coord 71@ {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1
remove_char_from_group 72@
task_go_straight_to_coord 72@ {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1

:CASINO4_36460
do_fade 1000 {direction} Fade.In

:CASINO4_36467
if 
  get_fading_status 
goto_if_false @CASINO4_36491
wait 0
goto @CASINO4_36467

:CASINO4_36491
TIMERA = 0
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_36568
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_37165
if 
  252@ <> 0
goto_if_false @CASINO4_36929
if 
  255@ == 0
goto_if_false @CASINO4_36654
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_36647
clear_mission_audio 254@

:CASINO4_36647
255@ = 1

:CASINO4_36654
if 
  255@ == 1
goto_if_false @CASINO4_36691
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_36691
if 
  255@ == 2
goto_if_false @CASINO4_36751
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_36751
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_36751
if 
  255@ == 3
goto_if_false @CASINO4_36929
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_36868
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_36833
253@ = 2
254@ = 1
goto @CASINO4_36847

:CASINO4_36833
253@ = 1
254@ = 2

:CASINO4_36847
252@ = 0
255@ = 0
goto @CASINO4_36929

:CASINO4_36868
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_36929
if 
  110 > 252@
goto_if_false @CASINO4_36929
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_36929
switch_start 257@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_37065 {caseNum1} 0 {caseLabel1} @CASINO4_36992 {caseNum2} -1 {caseLabel2} @CASINO4_37158 {caseNum3} -1 {caseLabel3} @CASINO4_37158 {caseNum4} -1 {caseLabel4} @CASINO4_37158 {caseNum5} -1 {caseLabel5} @CASINO4_37158 {caseNum6} -1 {caseLabel6} @CASINO4_37158 {caseNum7} -1 {caseLabel7} @CASINO4_37158

:CASINO4_36992
if 
  255@ == 0
goto_if_false @CASINO4_37058
if 
  not is_char_dead 72@
goto_if_false @CASINO4_37039
stop_char_facial_talk 72@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_37039
252@ = 99
257@ = 1
260@ = get_game_timer 

:CASINO4_37058
goto @CASINO4_37158

:CASINO4_37065
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_37151
if 
  255@ == 0
goto_if_false @CASINO4_37151
if 
  not is_char_dead 72@
goto_if_false @CASINO4_37144
stop_char_facial_talk 72@

:CASINO4_37144
256@ = 1

:CASINO4_37151
goto @CASINO4_37158

:CASINO4_37158
goto @CASINO4_36568

:CASINO4_37165
if 
  50@ == 0
goto_if_false @CASINO4_37328
wait 0
if 
  locate_char_any_means_2d $scplayer {x} 2187.0 {y} 1680.0 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_37232
50@ = 1

:CASINO4_37232
if 
  TIMERA > 15000
goto_if_false @CASINO4_37321
if 
  not is_point_obscured_by_a_mission_entity 2195.3501 {y} 1680.058 {z} 11.4 {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 3.0
goto_if_false @CASINO4_37314
set_char_coordinates $scplayer {x} 2187.0 {y} 1680.0 {z} 11.4

:CASINO4_37314
50@ = 1

:CASINO4_37321
goto @CASINO4_37165

:CASINO4_37328
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASINO4_37343
if 
  get_fading_status 
goto_if_false @CASINO4_37367
wait 0
goto @CASINO4_37343

:CASINO4_37367
force_weather WeatherType.SunnyVegas
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 289@
remove_char_elegantly 72@
remove_char_elegantly 71@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 31
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 346
unload_special_character 1
unload_special_character 2
make_player_safe_for_cutscene $player1
set_area_visible 2
load_cutscene 'CAS_4C'

:CASINO4_37479
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_37503
wait 0
goto @CASINO4_37479

:CASINO4_37503
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO4_37512
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_37536
wait 0
goto @CASINO4_37512

:CASINO4_37536
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_37551
if 
  get_fading_status 
goto_if_false @CASINO4_37575
wait 0
goto @CASINO4_37551

:CASINO4_37575
set_area_visible 0
release_weather 
restore_camera_jumpcut 
delete_char 72@
mark_char_as_no_longer_needed 72@
delete_char 71@
mark_char_as_no_longer_needed 71@
set_char_coordinates $scplayer {x} 2187.0 {y} 1680.0 {z} 10.106
set_char_heading $scplayer {heading} 90.0
load_scene 2187.0 {y} 1680.0 {z} 10.106
request_model 330

:CASINO4_37655
if 
  not has_model_loaded 330
goto_if_false @CASINO4_37682
wait 0
goto @CASINO4_37655

:CASINO4_37682
set_fixed_camera_position 2186.5239 {y} 1679.363 {z} 11.6094 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2186.9829 {y} 1680.246 {z} 11.7063 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
do_fade 1500 {direction} Fade.In

:CASINO4_37753
if 
  get_fading_status 
goto_if_false @CASINO4_37777
wait 0
goto @CASINO4_37753

:CASINO4_37777
task_use_mobile_phone $scplayer {start} True
wait 2000
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_38532

:CASINO4_37866
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_38532
if 
  252@ <> 0
goto_if_false @CASINO4_38227
if 
  255@ == 0
goto_if_false @CASINO4_37952
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_37945
clear_mission_audio 254@

:CASINO4_37945
255@ = 1

:CASINO4_37952
if 
  255@ == 1
goto_if_false @CASINO4_37989
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_37989
if 
  255@ == 2
goto_if_false @CASINO4_38049
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_38049
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_38049
if 
  255@ == 3
goto_if_false @CASINO4_38227
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_38166
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_38131
253@ = 2
254@ = 1
goto @CASINO4_38145

:CASINO4_38131
253@ = 1
254@ = 2

:CASINO4_38145
252@ = 0
255@ = 0
goto @CASINO4_38227

:CASINO4_38166
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_38227
if 
  110 > 252@
goto_if_false @CASINO4_38227
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_38227
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_38448 {caseNum1} 0 {caseLabel1} @CASINO4_38290 {caseNum2} 1 {caseLabel2} @CASINO4_38347 {caseNum3} 2 {caseLabel3} @CASINO4_38404 {caseNum4} -1 {caseLabel4} @CASINO4_38525 {caseNum5} -1 {caseLabel5} @CASINO4_38525 {caseNum6} -1 {caseLabel6} @CASINO4_38525 {caseNum7} -1 {caseLabel7} @CASINO4_38525

:CASINO4_38290
if 
  255@ == 0
goto_if_false @CASINO4_38340
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
252@ = 100
257@ = 1
260@ = get_game_timer 

:CASINO4_38340
goto @CASINO4_38525

:CASINO4_38347
if 
  255@ == 0
goto_if_false @CASINO4_38397
252@ = 101
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
257@ = 2
260@ = get_game_timer 

:CASINO4_38397
goto @CASINO4_38525

:CASINO4_38404
if 
  255@ == 0
goto_if_false @CASINO4_38441
252@ = 102
257@ = 3
260@ = get_game_timer 

:CASINO4_38441
goto @CASINO4_38525

:CASINO4_38448
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_38518
if 
  255@ == 0
goto_if_false @CASINO4_38518
stop_char_facial_talk $scplayer
256@ = 1

:CASINO4_38518
goto @CASINO4_38525

:CASINO4_38525
goto @CASINO4_37866

:CASINO4_38532
skip_cutscene_end 
make_player_gang_reappear 
stop_char_facial_talk $scplayer
clear_mission_audio 253@
clear_mission_audio 254@
90@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_38587
task_use_mobile_phone $scplayer {start} False

:CASINO4_38587
mark_model_as_no_longer_needed 330
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
goto @CASINO4_45870
49@ = 1

:CASINO4_38621
goto @CASINO4_4043

:CASINO4_38628
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_39169
89@ = open_sequence_task 
task_goto_char -1 {target} 71@ {time} -1 {radius} 1.2
task_turn_char_to_face_char -1 {target} 71@
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE2_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE1_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
task_goto_char -1 {target} 72@ {time} -1 {radius} 1.2
task_turn_char_to_face_char -1 {target} 72@
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE2_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE1_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@

:CASINO4_39169
return 

:CASINO4_39171
set_group_decision_maker $Players_Group {handleOrTemplate} -1
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.0
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
99@ = 0
100@ = 0

:CASINO4_39238
if 
  4 > 99@
goto_if_false @CASINO4_39346
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_39294
101@(99@,4i) = 1
goto @CASINO4_39332

:CASINO4_39294
clear_char_tasks 113@(99@,4i)
set_current_char_weapon 113@(99@,4i) {weaponType} WeaponType.Unarmed
101@(99@,4i) = 0
100@ += 1

:CASINO4_39332
99@ += 1
goto @CASINO4_39238

:CASINO4_39346
if 
  100@ > 0
goto_if_false @CASINO4_45850
remove_blip 69@
46@ = 0
set_player_control $player1 {state} False
switch_widescreen True
clear_area 2165.6121 {y} 1680.619 {z} 9.8047 {radius} 50.0 {clearParticles} True
clear_prints 
set_fixed_camera_position 2171.9099 {y} 1669.08 {z} 10.32 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2164.9299 {y} 1708.54 {z} 16.85 {switchStyle} SwitchType.JumpCut
request_animation "MISC"
request_animation "GANGS"
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 78@
goto_if_false @CASINO4_39610
if 
  not is_char_dead 75@
goto_if_false @CASINO4_39610
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_39610
set_car_coordinates 78@ {x} 2096.136 {y} 1643.952 {z} 9.7768
set_car_heading 78@ {heading} 270.9418
task_car_drive_to_coord 75@ {vehicle} 78@ {x} 2158.5181 {y} 1681.402 {z} 9.8047 {speed} 30.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:CASINO4_39610
if 
  not is_car_dead 79@
goto_if_false @CASINO4_39725
if 
  not is_char_dead 76@
goto_if_false @CASINO4_39725
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_39725
set_car_coordinates 79@ {x} 2080.9341 {y} 1643.649 {z} 9.6757
set_car_heading 79@ {heading} 271.0448
task_car_drive_to_coord 76@ {vehicle} 79@ {x} 2154.2749 {y} 1664.964 {z} 9.8125 {speed} 30.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:CASINO4_39725
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_40152
77@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 77@
goto_if_false @CASINO4_40145
set_car_mission 77@ {carMission} CarMission.StopForever
53@ = 0
TIMERB = 0

:CASINO4_39786
if 
  53@ == 0
goto_if_false @CASINO4_40145
if 
  63@ == 0
goto_if_false @CASINO4_40108
if 
  not is_car_dead 77@
goto_if_false @CASINO4_40108
if 
  is_car_stopped 77@
goto_if_false @CASINO4_40108
109@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_39879
task_leave_any_car -1

:CASINO4_39879
task_go_straight_to_coord -1 {x} 2171.0 {y} 1671.0 {z} 11.0 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task $scplayer {sequence} 109@
clear_sequence_task 109@
if 
  not is_char_dead 71@
goto_if_false @CASINO4_40007
remove_char_from_group 71@
109@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_39966
task_leave_any_car -1

:CASINO4_39966
task_go_straight_to_coord -1 {x} 2172.0 {y} 1669.0 {z} 10.8125 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 71@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40007
if 
  not is_char_dead 72@
goto_if_false @CASINO4_40094
remove_char_from_group 72@
109@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_40053
task_leave_any_car -1

:CASINO4_40053
task_go_straight_to_coord -1 {x} 2170.0 {y} 1673.0 {z} 10.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 72@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40094
53@ = 1
63@ = 1

:CASINO4_40108
if 
  TIMERB > 20000
goto_if_false @CASINO4_40134
53@ = 1

:CASINO4_40134
wait 0
goto @CASINO4_39786

:CASINO4_40145
goto @CASINO4_40382

:CASINO4_40152
109@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_40177
task_leave_any_car -1

:CASINO4_40177
task_go_straight_to_coord -1 {x} 2165.6121 {y} 1680.619 {z} 9.8047 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task $scplayer {sequence} 109@
clear_sequence_task 109@
if 
  not is_char_dead 71@
goto_if_false @CASINO4_40300
109@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_40259
task_leave_any_car -1

:CASINO4_40259
task_go_straight_to_coord -1 {x} 2166.4431 {y} 1678.606 {z} 9.8125 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 71@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40300
if 
  not is_char_dead 72@
goto_if_false @CASINO4_40382
109@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_40341
task_leave_any_car -1

:CASINO4_40341
task_go_straight_to_coord -1 {x} 2166.7061 {y} 1683.291 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 72@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40382
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
53@ = 0
300@ = 0
301@ = 0
302@ = 0
TIMERB = 0

:CASINO4_40487
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_41565
if 
  252@ <> 0
goto_if_false @CASINO4_40853
if 
  255@ == 0
goto_if_false @CASINO4_40573
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_40566
clear_mission_audio 254@

:CASINO4_40566
255@ = 1

:CASINO4_40573
if 
  255@ == 1
goto_if_false @CASINO4_40610
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_40610
if 
  255@ == 2
goto_if_false @CASINO4_40670
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_40670
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_40670
if 
  255@ == 3
goto_if_false @CASINO4_40853
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_40792
stop_char_facial_talk $scplayer
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_40757
253@ = 2
254@ = 1
goto @CASINO4_40771

:CASINO4_40757
253@ = 1
254@ = 2

:CASINO4_40771
252@ = 0
255@ = 0
goto @CASINO4_40853

:CASINO4_40792
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_40853
if 
  110 > 252@
goto_if_false @CASINO4_40853
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_40853
switch_start 257@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_41060 {caseNum1} 0 {caseLabel1} @CASINO4_40916 {caseNum2} 1 {caseLabel2} @CASINO4_40968 {caseNum3} -1 {caseLabel3} @CASINO4_41186 {caseNum4} -1 {caseLabel4} @CASINO4_41186 {caseNum5} -1 {caseLabel5} @CASINO4_41186 {caseNum6} -1 {caseLabel6} @CASINO4_41186 {caseNum7} -1 {caseLabel7} @CASINO4_41186

:CASINO4_40916
if 
  255@ == 0
goto_if_false @CASINO4_40961
start_char_facial_talk $scplayer {duration} 3000
252@ = 94
257@ = 1
260@ = get_game_timer 

:CASINO4_40961
goto @CASINO4_41186

:CASINO4_40968
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41053
if 
  255@ == 0
goto_if_false @CASINO4_41053
start_char_facial_talk $scplayer {duration} 3000
252@ = 95
257@ = 2
260@ = get_game_timer 

:CASINO4_41053
goto @CASINO4_41186

:CASINO4_41060
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41179
if 
  255@ == 0
goto_if_false @CASINO4_41179
if 
  300@ == 1
goto_if_false @CASINO4_41179
if 
  301@ == 1
goto_if_false @CASINO4_41179
if 
  302@ == 1
goto_if_false @CASINO4_41179
256@ = 1

:CASINO4_41179
goto @CASINO4_41186

:CASINO4_41186
90@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_41222
300@ = 1

:CASINO4_41222
if 
  301@ == 0
goto_if_false @CASINO4_41377
if 
  not is_car_dead 79@
goto_if_false @CASINO4_41370
303@ = get_driver_of_car 79@
if 
  303@ <> -1
goto_if_false @CASINO4_41356
if 
  locate_car_3d 79@ {x} 2154.2749 {y} 1664.964 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO4_41349
set_car_mission 79@ {carMission} CarMission.StopForever
task_everyone_leave_car 79@
301@ = 1

:CASINO4_41349
goto @CASINO4_41363

:CASINO4_41356
301@ = 1

:CASINO4_41363
goto @CASINO4_41377

:CASINO4_41370
301@ = 1

:CASINO4_41377
if 
  302@ == 0
goto_if_false @CASINO4_41532
if 
  not is_car_dead 78@
goto_if_false @CASINO4_41525
303@ = get_driver_of_car 78@
if 
  303@ <> -1
goto_if_false @CASINO4_41511
if 
  locate_car_3d 78@ {x} 2158.5181 {y} 1681.402 {z} 9.8047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO4_41504
set_car_mission 78@ {carMission} CarMission.StopForever
task_everyone_leave_car 78@
302@ = 1

:CASINO4_41504
goto @CASINO4_41518

:CASINO4_41511
300@ = 1

:CASINO4_41518
goto @CASINO4_41532

:CASINO4_41525
302@ = 1

:CASINO4_41532
if 
  TIMERB > 20000
goto_if_false @CASINO4_41558
256@ = 1

:CASINO4_41558
goto @CASINO4_40487

:CASINO4_41565
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_model_as_no_longer_needed 478

:CASINO4_41580
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "MISC"
goto_if_false @CASINO4_41636
request_animation "GANGS"
request_animation "MISC"
wait 0
goto @CASINO4_41580

:CASINO4_41636
clear_area 2175.21 {y} 1679.37 {z} 9.85 {radius} 50.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_41708
warp_char_from_car_to_coord $scplayer {x} 2171.0 {y} 1671.0 {z} 9.8125
goto @CASINO4_41728

:CASINO4_41708
set_char_coordinates $scplayer {x} 2171.0 {y} 1671.0 {z} 9.8125

:CASINO4_41728
set_char_heading $scplayer {heading} 109.2628
if 
  not is_char_dead 72@
goto_if_false @CASINO4_41847
set_char_decision_maker 72@ {handleOrTemplate} 37@
119@ = 0
clear_char_tasks_immediately 72@
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_41817
warp_char_from_car_to_coord 72@ {x} 2170.0 {y} 1673.0 {z} 9.8125
goto @CASINO4_41837

:CASINO4_41817
set_char_coordinates 72@ {x} 2170.0 {y} 1673.0 {z} 9.8125

:CASINO4_41837
set_char_heading 72@ {heading} 153.2628

:CASINO4_41847
if 
  not is_char_dead 71@
goto_if_false @CASINO4_41956
set_char_decision_maker 71@ {handleOrTemplate} 38@
120@ = 0
clear_char_tasks_immediately 71@
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_41926
warp_char_from_car_to_coord 71@ {x} 2172.0 {y} 1669.0 {z} 9.8125
goto @CASINO4_41946

:CASINO4_41926
set_char_coordinates 71@ {x} 2172.0 {y} 1669.0 {z} 9.8125

:CASINO4_41946
set_char_heading 71@ {heading} 133.2628

:CASINO4_41956
91@, 92@, 93@ = get_char_coordinates $scplayer
if 
  not is_char_dead 113@
goto_if_false @CASINO4_42131
if 
  is_char_in_any_car 113@
goto_if_false @CASINO4_42029
warp_char_from_car_to_coord 113@ {x} 2163.4299 {y} 1660.7209 {z} 9.8203
goto @CASINO4_42049

:CASINO4_42029
set_char_coordinates 113@ {x} 2163.4299 {y} 1660.7209 {z} 9.8203

:CASINO4_42049
set_char_heading 113@ {heading} 327.8448
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 113@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42131
if 
  not is_char_dead 114@
goto_if_false @CASINO4_42292
if 
  is_char_in_any_car 114@
goto_if_false @CASINO4_42190
warp_char_from_car_to_coord 114@ {x} 2162.6909 {y} 1664.223 {z} 9.8203
goto @CASINO4_42210

:CASINO4_42190
set_char_coordinates 114@ {x} 2162.6909 {y} 1664.223 {z} 9.8203

:CASINO4_42210
set_char_heading 114@ {heading} 355.144
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 114@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42292
if 
  not is_char_dead 115@
goto_if_false @CASINO4_42453
if 
  is_char_in_any_car 115@
goto_if_false @CASINO4_42351
warp_char_from_car_to_coord 115@ {x} 2166.5659 {y} 1661.498 {z} 9.8203
goto @CASINO4_42371

:CASINO4_42351
set_char_coordinates 115@ {x} 2166.5659 {y} 1661.498 {z} 9.8203

:CASINO4_42371
set_char_heading 115@ {heading} 343.0
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 115@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42453
if 
  not is_char_dead 116@
goto_if_false @CASINO4_42614
if 
  is_char_in_any_car 116@
goto_if_false @CASINO4_42512
warp_char_from_car_to_coord 116@ {x} 2160.908 {y} 1664.875 {z} 9.8047
goto @CASINO4_42532

:CASINO4_42512
set_char_coordinates 116@ {x} 2160.908 {y} 1664.875 {z} 9.8047

:CASINO4_42532
set_char_heading 116@ {heading} 315.7
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 116@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42614
set_fixed_camera_position 2171.6499 {y} 1673.89 {z} 11.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2158.3999 {y} 1649.6801 {z} 11.08 {switchStyle} SwitchType.JumpCut
make_player_gang_disappear 
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_43726

:CASINO4_42744
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_43726
if 
  252@ <> 0
goto_if_false @CASINO4_43105
if 
  255@ == 0
goto_if_false @CASINO4_42830
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_42823
clear_mission_audio 254@

:CASINO4_42823
255@ = 1

:CASINO4_42830
if 
  255@ == 1
goto_if_false @CASINO4_42867
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_42867
if 
  255@ == 2
goto_if_false @CASINO4_42927
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_42927
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_42927
if 
  255@ == 3
goto_if_false @CASINO4_43105
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_43044
clear_this_print $c2_cp(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_43009
253@ = 2
254@ = 1
goto @CASINO4_43023

:CASINO4_43009
253@ = 1
254@ = 2

:CASINO4_43023
252@ = 0
255@ = 0
goto @CASINO4_43105

:CASINO4_43044
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_43105
if 
  110 > 252@
goto_if_false @CASINO4_43105
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_43105
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_43626 {caseNum1} 0 {caseLabel1} @CASINO4_43168 {caseNum2} 1 {caseLabel2} @CASINO4_43270 {caseNum3} 2 {caseLabel3} @CASINO4_43497 {caseNum4} -1 {caseLabel4} @CASINO4_43719 {caseNum5} -1 {caseLabel5} @CASINO4_43719 {caseNum6} -1 {caseLabel6} @CASINO4_43719 {caseNum7} -1 {caseLabel7} @CASINO4_43719

:CASINO4_43168
if 
  255@ == 0
goto_if_false @CASINO4_43263
257@ = 1
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43247
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43236
task_look_at_char 71@ {target} 72@ {time} 10000

:CASINO4_43236
task_look_at_char $scplayer {target} 72@ {time} 10000

:CASINO4_43247
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43263

:CASINO4_43263
goto @CASINO4_43719

:CASINO4_43270
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43490
if 
  255@ == 0
goto_if_false @CASINO4_43490
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43352
start_char_facial_talk 71@ {duration} 3000

:CASINO4_43352
252@ = 97
257@ = 2
299@ = 0

:CASINO4_43373
if 
  4 > 299@
goto_if_false @CASINO4_43453
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_43439
task_go_straight_to_coord 113@(299@,4i) {x} 2167.999 {y} 1666.121 {z} 9.8203 {speed} MoveState.Walk {time} -1

:CASINO4_43439
299@ += 1
goto @CASINO4_43373

:CASINO4_43453
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43469

:CASINO4_43469
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43485

:CASINO4_43485
260@ = get_game_timer 

:CASINO4_43490
goto @CASINO4_43719

:CASINO4_43497
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43619
if 
  255@ == 0
goto_if_false @CASINO4_43619
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43576
stop_char_facial_talk 71@

:CASINO4_43576
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43600
start_char_facial_talk 72@ {duration} 3000

:CASINO4_43600
252@ = 98
257@ = 3
260@ = get_game_timer 

:CASINO4_43619
goto @CASINO4_43719

:CASINO4_43626
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43712
if 
  255@ == 0
goto_if_false @CASINO4_43712
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43705
stop_char_facial_talk 72@

:CASINO4_43705
256@ = 1

:CASINO4_43712
goto @CASINO4_43719

:CASINO4_43719
goto @CASINO4_42744

:CASINO4_43726
skip_cutscene_end 
make_player_gang_reappear 
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43751
stop_char_facial_talk 71@

:CASINO4_43751
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43772
stop_char_facial_talk 72@

:CASINO4_43772
clear_mission_audio 253@
clear_mission_audio 254@
99@ = 3

:CASINO4_43789
if 
  99@ > -1
goto_if_false @CASINO4_43924
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43910
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_43910
clear_look_at 71@
task_kill_char_on_foot 71@ {target} 113@(99@,4i)
set_lvar_int_to_lvar_int 298@ = 113@(99@,4i)
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
117@ = add_blip_for_char 71@
set_blip_as_friendly 117@ {state} True
change_blip_scale 117@ {size} 2
99@ = -1

:CASINO4_43910
99@ -= 1
goto @CASINO4_43789

:CASINO4_43924
99@ = 0

:CASINO4_43931
if 
  4 > 99@
goto_if_false @CASINO4_44066
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44052
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_44052
clear_look_at 72@
task_kill_char_on_foot 72@ {target} 113@(99@,4i)
set_lvar_int_to_lvar_int 297@ = 113@(99@,4i)
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
118@ = add_blip_for_char 72@
set_blip_as_friendly 118@ {state} True
change_blip_scale 118@ {size} 2
99@ = 4

:CASINO4_44052
99@ += 1
goto @CASINO4_43931

:CASINO4_44066
99@ = 0

:CASINO4_44073
if 
  4 > 99@
goto_if_false @CASINO4_44270
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_44256
add_blip_for_char 113@(99@,4i) {var_handle} 105@(99@,4i)
change_blip_display 105@(99@,4i) {display} BlipDisplay.BlipOnly
change_blip_scale 105@(99@,4i) {size} 2
set_char_relationship 113@(99@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 113@(99@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  2 > 99@
goto_if_false @CASINO4_44228
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44221
task_kill_char_on_foot 113@(99@,4i) {target} 72@

:CASINO4_44221
goto @CASINO4_44256

:CASINO4_44228
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44256
task_kill_char_on_foot 113@(99@,4i) {target} 71@

:CASINO4_44256
99@ += 1
goto @CASINO4_44073

:CASINO4_44270
restore_camera_jumpcut 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_char_tasks $scplayer
clear_look_at $scplayer
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "MISC"
remove_animation "GANGS"
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0
53@ = 0

:CASINO4_44408
if 
  53@ == 0
goto_if_false @CASINO4_45775
if 
  252@ <> 0
goto_if_false @CASINO4_44821
if 
  255@ == 0
goto_if_false @CASINO4_44490
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_44483
clear_mission_audio 254@

:CASINO4_44483
255@ = 1

:CASINO4_44490
if 
  255@ == 1
goto_if_false @CASINO4_44527
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_44527
if 
  255@ == 2
goto_if_false @CASINO4_44587
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_44587
play_mission_audio 253@
print_now $c2_cp(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_44587
if 
  255@ == 3
goto_if_false @CASINO4_44821
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_44760
clear_this_print $c2_cp(252@,114s)
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44658
stop_char_facial_talk 71@
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_44658
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44686
stop_char_facial_talk 72@
shut_char_up_for_scripted_speech 72@ {state} False

:CASINO4_44686
if 
  253@ == 1
goto_if_false @CASINO4_44725
253@ = 2
254@ = 1
goto @CASINO4_44739

:CASINO4_44725
253@ = 1
254@ = 2

:CASINO4_44739
252@ = 0
255@ = 0
goto @CASINO4_44821

:CASINO4_44760
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_44821
if 
  110 > 252@
goto_if_false @CASINO4_44821
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_44821
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_45208 {caseNum1} 0 {caseLabel1} @CASINO4_44884 {caseNum2} 1 {caseLabel2} @CASINO4_44978 {caseNum3} 2 {caseLabel3} @CASINO4_45093 {caseNum4} -1 {caseLabel4} @CASINO4_45280 {caseNum5} -1 {caseLabel5} @CASINO4_45280 {caseNum6} -1 {caseLabel6} @CASINO4_45280 {caseNum7} -1 {caseLabel7} @CASINO4_45280

:CASINO4_44884
if 
  TIMERB > 5000
goto_if_false @CASINO4_44971
if 
  255@ == 0
goto_if_false @CASINO4_44971
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44952
shut_char_up_for_scripted_speech 71@ {state} True
start_char_facial_talk 71@ {duration} 3000

:CASINO4_44952
252@ = 112
257@ = 1
260@ = get_game_timer 

:CASINO4_44971
goto @CASINO4_45280

:CASINO4_44978
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45086
if 
  255@ == 0
goto_if_false @CASINO4_45086
252@ = 17
if 
  not is_char_dead 72@
goto_if_false @CASINO4_45074
shut_char_up_for_scripted_speech 72@ {state} True
start_char_facial_talk 72@ {duration} 3000

:CASINO4_45074
257@ = 2
260@ = get_game_timer 

:CASINO4_45086
goto @CASINO4_45280

:CASINO4_45093
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45201
if 
  255@ == 0
goto_if_false @CASINO4_45201
if 
  not is_char_dead 71@
goto_if_false @CASINO4_45182
shut_char_up_for_scripted_speech 71@ {state} True
start_char_facial_talk 71@ {duration} 3000

:CASINO4_45182
252@ = 111
257@ = 3
260@ = get_game_timer 

:CASINO4_45201
goto @CASINO4_45280

:CASINO4_45208
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_45273
if 
  255@ == 0
goto_if_false @CASINO4_45273
256@ = 1

:CASINO4_45273
goto @CASINO4_45280

:CASINO4_45280
99@ = 0

:CASINO4_45287
if 
  4 > 99@
goto_if_false @CASINO4_45655
if 
  101@(99@,4i) == 0
goto_if_false @CASINO4_45641
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_45641
if 
  is_int_lvar_equal_to_int_lvar 298@ == 113@(99@,4i)
goto_if_false @CASINO4_45476
299@ = 3

:CASINO4_45377
if 
  299@ > -1
goto_if_false @CASINO4_45476
if 
  not is_char_dead 71@
goto_if_false @CASINO4_45462
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_45462
task_kill_char_on_foot 71@ {target} 113@(299@,4i)
set_lvar_int_to_lvar_int 298@ = 113@(299@,4i)
299@ = -1

:CASINO4_45462
299@ -= 1
goto @CASINO4_45377

:CASINO4_45476
if 
  is_int_lvar_equal_to_int_lvar 297@ == 113@(99@,4i)
goto_if_false @CASINO4_45605
299@ = 0

:CASINO4_45506
if 
  4 > 299@
goto_if_false @CASINO4_45605
if 
  not is_char_dead 72@
goto_if_false @CASINO4_45591
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_45591
task_kill_char_on_foot 72@ {target} 113@(299@,4i)
set_lvar_int_to_lvar_int 297@ = 113@(299@,4i)
299@ = 4

:CASINO4_45591
299@ += 1
goto @CASINO4_45506

:CASINO4_45605
remove_blip 105@(99@,4i)
mark_char_as_no_longer_needed 113@(99@,4i)
101@(99@,4i) = 1
100@ -= 1

:CASINO4_45641
99@ += 1
goto @CASINO4_45287

:CASINO4_45655
if 
  1 > 100@
goto_if_false @CASINO4_45734
53@ = 1
if 
  46@ == 0
goto_if_false @CASINO4_45734
mark_car_as_no_longer_needed 77@
clear_area 2175.21 {y} 1679.37 {z} 9.85 {radius} 10.0 {clearParticles} True
46@ = 1

:CASINO4_45734
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_45764
clear_prints 
53@ = 1

:CASINO4_45764
wait 0
goto @CASINO4_44408

:CASINO4_45775
clear_mission_audio 254@
clear_mission_audio 253@
set_wanted_multiplier 1.0
remove_blip 118@
remove_blip 117@
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_45850
stop_char_facial_talk 71@
stop_char_facial_talk 72@
clear_char_tasks_immediately 72@
clear_char_tasks_immediately 71@
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:CASINO4_45850
return 

:CASINO4_45852
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO4_45870
$flag_casino_mission_counter += 1
set_int_stat StatId.PassedCasino4 {value} 1
register_mission_passed 'CASINO4'
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
player_made_progress 1
remove_blip $casino_contact_blip
return 

:CASINO4_45937
$timer_mobile_start = get_game_timer 
set_police_ignore_player $player1 {state} False
if 
  is_player_playing $player1
goto_if_false @CASINO4_45972
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_45972
kill_fx_system 136@
kill_fx_system 137@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_blip 69@
remove_blip 68@
remove_blip 67@
remove_blip 70@
remove_blip 66@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_blip 108@
remove_blip 117@
remove_blip 118@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 289@
remove_char_elegantly 72@
remove_char_elegantly 71@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 303@
mark_char_as_no_longer_needed 113@
mark_char_as_no_longer_needed 114@
mark_char_as_no_longer_needed 115@
mark_char_as_no_longer_needed 116@
mark_char_as_no_longer_needed 290@
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 31
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 346
remove_animation "SUNBATHE"
remove_animation "PAULNMAC"
remove_animation "FOOD"
remove_animation "SMOKING"
remove_animation "MISC"
remove_animation "GANGS"
remove_decision_maker 37@
remove_decision_maker 38@
remove_decision_maker 39@
unload_special_character 1
unload_special_character 2
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 89---------------
// Originally: Intensive Care

:CASINO5
script_name 'CASINO5'
gosub @CASINO5_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO5_38
gosub @CASINO5_12932

:CASINO5_38
gosub @CASINO5_12978
terminate_this_script 

:CASINO5_47
register_mission_given 
$onmission = 1
load_mission_text 'CASINO5'
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 9.8203
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_5A'

:CASINO5_150
if 
  not has_cutscene_loaded 
goto_if_false @CASINO5_174
wait 0
goto @CASINO5_150

:CASINO5_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO5_183
if 
  not has_cutscene_finished 
goto_if_false @CASINO5_207
wait 0
goto @CASINO5_183

:CASINO5_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO5_222
if 
  get_fading_status 
goto_if_false @CASINO5_246
wait 0
goto @CASINO5_222

:CASINO5_246
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene 2175.4121 {y} 1681.548 {z} 9.8203
request_model 416
request_model 470
request_model 275
request_model 124
request_model 125
load_special_character 1 {modelName} 'SINDACO'
request_model 353
request_animation "GANGS"

:CASINO5_329
if or
  not has_model_loaded 416
  not has_model_loaded 470
  not has_model_loaded 275
  not has_model_loaded 124
  not has_model_loaded 125
goto_if_false @CASINO5_374
wait 0
goto @CASINO5_329

:CASINO5_374
if or
  not has_special_character_loaded 1
  not has_model_loaded 353
  not has_animation_loaded "GANGS"
goto_if_false @CASINO5_414
wait 0
goto @CASINO5_374

:CASINO5_414
47@ = load_char_decision_maker DecisionMakerType.Tough
49@ = load_char_decision_maker DecisionMakerType.Normal
48@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
54@ = 0
if 
  54@ == 1
goto_if_false @CASINO5_547
72@ = create_char PedType.Mission1 {modelId} 124 {x} 0.0 {y} 0.0 {z} 0.0
create_char PedType.Mission1 {modelId} 124 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 99@(40@,2i)
create_car 416 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 97@(40@,2i)

:CASINO5_547
set_fading_colour 0 {g} 0 {b} 0
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 0 {direction} Fade.In
print_now 'CAS5_00' {time} 8000 {flag} 1
44@ = add_blip_for_coord 1604.158 {y} 1838.765 {z} 9.828
set_lvar_text_label 140@s = 'CAS5_AA'
set_lvar_int_to_constant 124@ = 17600
set_lvar_text_label 142@s = 'CAS5_AB'
set_lvar_int_to_constant 125@ = 17601
set_lvar_text_label 144@s = 'CAS5_BA'
set_lvar_int_to_constant 126@ = 17615
set_lvar_text_label 146@s = 'CAS5_BB'
set_lvar_int_to_constant 127@ = 17602
set_lvar_text_label 148@s = 'CAS5_BC'
set_lvar_int_to_constant 128@ = 17616
set_lvar_text_label 150@s = 'CAS5_BD'
set_lvar_int_to_constant 129@ = 17617
set_lvar_text_label 152@s = 'CAS5_BE'
set_lvar_int_to_constant 130@ = 17603
set_lvar_text_label 154@s = 'CAS5_CA'
set_lvar_int_to_constant 131@ = 17604
set_lvar_text_label 156@s = 'CAS5_CB'
set_lvar_int_to_constant 132@ = 17605
set_lvar_text_label 158@s = 'CAS5_CC'
set_lvar_int_to_constant 133@ = 17606
set_lvar_text_label 160@s = 'CAS5_CD'
set_lvar_int_to_constant 134@ = 17607
set_lvar_text_label 162@s = 'CAS5_CE'
set_lvar_int_to_constant 135@ = 17608
set_lvar_text_label 164@s = 'CAS5_CF'
set_lvar_int_to_constant 136@ = 17609
set_lvar_text_label 166@s = 'CAS5_CG'
set_lvar_int_to_constant 137@ = 17610
set_lvar_text_label 168@s = 'CAS5_DA'
set_lvar_int_to_constant 138@ = 17614
set_lvar_text_label 170@s = 'CAS5_DB'
set_lvar_int_to_constant 139@ = 17611
122@ = 0
123@ = 0
TIMERB = 0
56@ = 0

:CASINO5_992
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO5_1018
goto @CASINO5_12838

:CASINO5_1018
if 
  56@ == 0
goto_if_false @CASINO5_1199
if 
  locate_char_any_means_3d $scplayer {x} 1604.158 {y} 1838.765 {z} 9.828 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CASINO5_1199
clear_area 1604.158 {y} 1838.765 {z} 9.828 {radius} 30.0 {clearParticles} True
suppress_car_model 470
custom_plate_for_next_car 470 {text} "H_CARMAN"
clear_area 1624.598 {y} 1850.6071 {z} 9.828 {radius} 8.0 {clearParticles} True
55@ = create_car 470 {x} 1624.598 {y} 1850.6071 {z} 9.828
set_car_heading 55@ {heading} 180.0
set_car_strong 55@ {state} True
56@ += 1

:CASINO5_1199
if 
  locate_char_any_means_3d $scplayer {x} 1604.158 {y} 1838.765 {z} 9.828 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO5_1338
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO5_1322
clear_prints 
set_player_control $player1 {state} False
do_fade 400 {direction} Fade.Out

:CASINO5_1279
if 
  get_fading_status 
goto_if_false @CASINO5_1303
wait 0
goto @CASINO5_1279

:CASINO5_1303
remove_blip 44@
goto @CASINO5_1352
goto @CASINO5_1338

:CASINO5_1322
print_now 'CAS5_01' {time} 4000 {flag} 1

:CASINO5_1338
gosub @CASINO5_10202
goto @CASINO5_992

:CASINO5_1352
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1595.199 {y} 1838.316 {z} 12.4095 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1596.1801 {y} 1838.252 {z} 12.2269 {switchStyle} SwitchType.JumpCut
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1439
$SLOT_status[0] = -2

:CASINO5_1439
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1464
$SLOT_status[1] = -2

:CASINO5_1464
50@ = store_car_char_is_in $scplayer
set_car_health 50@ {health} 2000
clear_area 1604.158 {y} 1838.765 {z} 9.828 {radius} 15.0 {clearParticles} True
do_fade 0 {direction} Fade.In
42@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1606.106 {y} 1825.0649 {z} 9.828 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 100
close_sequence_task 42@
perform_sequence_task $scplayer {sequence} 42@
clear_sequence_task 42@
43@ = 0
46@ = 0

:CASINO5_1580
if 
  2 > 43@
goto_if_false @CASINO5_1617
wait 0
43@ = get_sequence_progress $scplayer
goto @CASINO5_1580

:CASINO5_1617
skip_cutscene_start_internal @CASINO5_1844
123@ = 4

:CASINO5_1631
if 
  7 > 122@
goto_if_false @CASINO5_1667
wait 0
gosub @CASINO5_10202
goto @CASINO5_1631

:CASINO5_1667
42@ = open_sequence_task 
task_stand_still -1 {time} 3800
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1704
task_enter_car_as_driver -1 {vehicle} 50@ {time} -1

:CASINO5_1704
close_sequence_task 42@
perform_sequence_task $scplayer {sequence} 42@
clear_sequence_task 42@
40@ = 0

:CASINO5_1729
if 
  40@ == 0
goto_if_false @CASINO5_1800
wait 0
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1793
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @CASINO5_1793
40@ = 1

:CASINO5_1793
goto @CASINO5_1729

:CASINO5_1800
46@ = 1
TIMERA = 0

:CASINO5_1814
if 
  500 > TIMERA
goto_if_false @CASINO5_1844
wait 0
goto @CASINO5_1814

:CASINO5_1844
skip_cutscene_end 
clear_prints 
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1873
$SLOT_status[0] = -2

:CASINO5_1873
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1898
$SLOT_status[1] = -2

:CASINO5_1898
if or
  not is_char_getting_in_to_a_car $scplayer
  not is_char_in_any_car $scplayer
goto_if_false @CASINO5_1948
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1948
warp_char_into_car $scplayer {vehicle} 50@

:CASINO5_1948
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'CAS5_03' {time} 8000 {flag} 1
mark_road_node_as_dont_wander 2066.25 {y} 956.0 {z} 9.125
mark_road_node_as_dont_wander 2048.625 {y} 953.8749 {z} 9.125
mark_road_node_as_dont_wander 2032.5 {y} 973.25 {z} 9.5
mark_road_node_as_dont_wander 2027.25 {y} 1093.125 {z} 9.625
mark_road_node_as_dont_wander 2030.125 {y} 1273.0 {z} 9.625
mark_road_node_as_dont_wander 2029.0 {y} 1453.25 {z} 9.625
mark_road_node_as_dont_wander 2033.75 {y} 1713.125 {z} 9.625
mark_road_node_as_dont_wander 2112.125 {y} 1863.125 {z} 9.75
mark_road_node_as_dont_wander 2104.0 {y} 1969.125 {z} 9.75
mark_road_node_as_dont_wander 2108.25 {y} 2022.0 {z} 9.625
mark_road_node_as_dont_wander 2107.625 {y} 2113.125 {z} 9.625
mark_road_node_as_dont_wander 2091.25 {y} 2283.125 {z} 9.625
mark_road_node_as_dont_wander 2005.625 {y} 2393.25 {z} 9.625
mark_road_node_as_dont_wander 1605.375 {y} 2589.75 {z} 9.625
mark_road_node_as_dont_wander 1477.375 {y} 2563.125 {z} 9.625
mark_road_node_as_dont_wander 1385.625 {y} 2575.0 {z} 9.625
mark_road_node_as_dont_wander 1293.875 {y} 2574.625 {z} 9.625
mark_road_node_as_dont_wander 1528.125 {y} 2773.125 {z} 9.625
mark_road_node_as_dont_wander 2127.375 {y} 2792.875 {z} 9.625
mark_road_node_as_dont_wander 2397.375 {y} 2713.125 {z} 9.625
mark_road_node_as_dont_wander 2404.625 {y} 2513.125 {z} 9.625
mark_road_node_as_dont_wander 2628.625 {y} 2301.75 {z} 9.625
mark_road_node_as_dont_wander 2787.25 {y} 2303.5 {z} 9.625
mark_road_node_as_dont_wander 2860.125 {y} 2293.0 {z} 9.625
mark_road_node_as_dont_wander 2796.125 {y} 2135.375 {z} 9.75
mark_road_node_as_dont_wander 2796.125 {y} 2090.875 {z} 9.625
mark_road_node_as_dont_wander 2638.375 {y} 2135.375 {z} 9.625
mark_road_node_as_dont_wander 2638.375 {y} 2090.875 {z} 9.75
mark_road_node_as_dont_wander 2621.625 {y} 1473.125 {z} 9.625
mark_road_node_as_dont_wander 2645.375 {y} 1313.125 {z} 9.75
mark_road_node_as_dont_wander 2547.25 {y} 923.125 {z} 9.625
mark_road_node_as_dont_wander 2287.25 {y} 957.8749 {z} 9.625
mark_road_node_as_dont_wander 2147.25 {y} 963.2499 {z} 9.625
clear_area 2152.0291 {y} 1912.4561 {z} 9.6797 {radius} 10.0 {clearParticles} True
57@ = create_car 416 {x} 2152.0291 {y} 1912.4561 {z} 9.6797
set_car_heading 57@ {heading} 0.0
60@ = add_blip_for_car 57@
lock_car_doors 57@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 57@ {state} False
66@ = create_char_inside_car 57@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 66@ {state} True
set_char_decision_maker 66@ {handleOrTemplate} 48@
69@ = create_char_as_passenger 57@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 69@ {state} True
set_char_decision_maker 69@ {handleOrTemplate} 48@
task_car_drive_wander 66@ {vehicle} 57@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
63@ = 0
93@ = 0
clear_area 2050.291 {y} 1358.516 {z} 9.6719 {radius} 10.0 {clearParticles} True
58@ = create_car 416 {x} 2050.291 {y} 1358.516 {z} 9.6719
set_car_heading 58@ {heading} 180.0
61@ = add_blip_for_car 58@
lock_car_doors 58@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 58@ {state} False
67@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 48@
70@ = create_char_as_passenger 58@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 70@ {state} True
set_char_decision_maker 70@ {handleOrTemplate} 48@
task_car_drive_wander 67@ {vehicle} 58@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
64@ = 0
94@ = 0
clear_area 2544.98 {y} 1395.797 {z} 9.78 {radius} 10.0 {clearParticles} True
59@ = create_car 416 {x} 2544.98 {y} 1395.797 {z} 9.78
set_car_heading 59@ {heading} 180.0
62@ = add_blip_for_car 59@
lock_car_doors 59@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 59@ {state} False
68@ = create_char_inside_car 59@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 68@ {state} True
set_char_decision_maker 68@ {handleOrTemplate} 48@
71@ = create_char_as_passenger 59@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 71@ {state} True
set_char_decision_maker 71@ {handleOrTemplate} 48@
task_car_drive_wander 68@ {vehicle} 59@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
65@ = 0
95@ = 0
73@ = 0
74@ = -1
76@ = 0
80@ = 0

:CASINO5_3066
wait 0
40@ = 0

:CASINO5_3077
if 
  3 > 40@
goto_if_false @CASINO5_7031
if and
  not is_car_dead 57@(40@,3i)
  6 > 63@(40@,3i)
goto_if_false @CASINO5_7017
switch_start 63@(40@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7017 {caseNum1} 0 {caseLabel1} @CASINO5_3193 {caseNum2} 1 {caseLabel2} @CASINO5_4008 {caseNum3} 2 {caseLabel3} @CASINO5_4577 {caseNum4} 3 {caseLabel4} @CASINO5_5069 {caseNum5} 4 {caseLabel5} @CASINO5_5166 {caseNum6} 5 {caseLabel6} @CASINO5_5720 {caseNum7} -1 {caseLabel7} @CASINO5_7017

:CASINO5_3193
if or
  is_char_dead 66@(40@,3i)
  is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_3261
77@ = 0
if 
  76@ == 0
goto_if_false @CASINO5_3254
gosub @CASINO5_7421

:CASINO5_3254
goto @CASINO5_3415

:CASINO5_3261
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_3323
77@ = 1
if 
  76@ == 0
goto_if_false @CASINO5_3316
gosub @CASINO5_7421

:CASINO5_3316
goto @CASINO5_3415

:CASINO5_3323
if 
  78@ == 0
goto_if_false @CASINO5_3408
if and
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_3408
print_now 'CAS5_04' {time} 8000 {flag} 1
78@ = 1

:CASINO5_3408
goto @CASINO5_7017

:CASINO5_3415
if 
  77@ == 0
goto_if_false @CASINO5_3497
if 
  76@ == 0
goto_if_false @CASINO5_3474
print_now 'CAS5_07' {time} 8000 {flag} 1
goto @CASINO5_3490

:CASINO5_3474
print_now 'CAS5_08' {time} 8000 {flag} 1

:CASINO5_3490
goto @CASINO5_3554

:CASINO5_3497
if 
  76@ == 0
goto_if_false @CASINO5_3538
print_now 'CAS5_05' {time} 8000 {flag} 1
goto @CASINO5_3554

:CASINO5_3538
print_now 'CAS5_06' {time} 8000 {flag} 1

:CASINO5_3554
remove_blip 60@(40@,3i)
76@ += 1
81@(40@,3i) = 0
set_car_temp_action 57@(40@,3i) {actionId} TempAction.HandbrakeStraight {time} 5000
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_3776
clear_char_tasks 66@(40@,3i)
42@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 1500
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_stand_still -1 {time} 5000
close_sequence_task 42@
perform_sequence_task 66@(40@,3i) {sequence} 42@
clear_sequence_task 42@
81@(40@,3i) += 1

:CASINO5_3776
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_3957
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 1500
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_stand_still -1 {time} 5000
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
81@(40@,3i) += 2

:CASINO5_3957
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_3997
63@(40@,3i) = 3
goto @CASINO5_7017

:CASINO5_3997
63@(40@,3i) += 1

:CASINO5_4008
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4191
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4147
if 
  not is_char_in_any_car 66@(40@,3i)
goto_if_false @CASINO5_4140
43@ = get_sequence_progress 66@(40@,3i)
if 
  43@ == 5
goto_if_false @CASINO5_4140
task_enter_car_as_driver 66@(40@,3i) {vehicle} 57@(40@,3i) {time} -2
81@(40@,3i) -= 1

:CASINO5_4140
goto @CASINO5_4191

:CASINO5_4147
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4191
81@(40@,3i) -= 1

:CASINO5_4191
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4421
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4377
if 
  not is_char_in_any_car 69@(40@,3i)
goto_if_false @CASINO5_4370
43@ = get_sequence_progress 69@(40@,3i)
if 
  43@ == 5
goto_if_false @CASINO5_4370
if 
  is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4339
task_enter_car_as_driver 69@(40@,3i) {vehicle} 57@(40@,3i) {time} -2
goto @CASINO5_4359

:CASINO5_4339
task_enter_car_as_passenger 69@(40@,3i) {vehicle} 57@(40@,3i) {time} -2 {seat} SeatId.BikeRear

:CASINO5_4359
81@(40@,3i) -= 2

:CASINO5_4370
goto @CASINO5_4421

:CASINO5_4377
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4421
81@(40@,3i) -= 2

:CASINO5_4421
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4570
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4474
81@(40@,3i) += 1

:CASINO5_4474
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4505
81@(40@,3i) += 2

:CASINO5_4505
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4552
63@(40@,3i) = 3
goto @CASINO5_7017
goto @CASINO5_4563

:CASINO5_4552
63@(40@,3i) += 1

:CASINO5_4563
goto @CASINO5_4577

:CASINO5_4570
goto @CASINO5_7017

:CASINO5_4577
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4719
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4675
if 
  is_char_in_car 66@(40@,3i) {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_4668
81@(40@,3i) -= 1

:CASINO5_4668
goto @CASINO5_4719

:CASINO5_4675
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4719
81@(40@,3i) -= 1

:CASINO5_4719
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4861
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4817
if 
  is_char_in_car 69@(40@,3i) {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_4810
81@(40@,3i) -= 2

:CASINO5_4810
goto @CASINO5_4861

:CASINO5_4817
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4861
81@(40@,3i) -= 2

:CASINO5_4861
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_5062
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4933
task_car_drive_wander 66@(40@,3i) {vehicle} 57@(40@,3i) {speed} 15.0 {drivingMode} DrivingMode.StopForCars
goto @CASINO5_5044

:CASINO5_4933
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_5044
87@ = get_driver_of_car 57@(40@,3i)
42@ = open_sequence_task 
if 
  not is_int_lvar_equal_to_int_lvar 87@ == 69@(40@,3i)
goto_if_false @CASINO5_5004
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)

:CASINO5_5004
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@

:CASINO5_5044
63@(40@,3i) += 1
goto @CASINO5_5069

:CASINO5_5062
goto @CASINO5_7017

:CASINO5_5069
if or
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_5120
goto @CASINO5_7017

:CASINO5_5120
mark_car_as_no_longer_needed 57@(40@,3i)
mark_char_as_no_longer_needed 66@(40@,3i)
mark_char_as_no_longer_needed 69@(40@,3i)
63@(40@,3i) = 10000
goto @CASINO5_7017

:CASINO5_5166
if 
  not is_char_dead 72@
goto_if_false @CASINO5_5692
if or
  is_char_dead 66@(40@,3i)
  is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_5245
print_now 'CAS5_10' {time} 8000 {flag} 1
63@(40@,3i) = 5
goto @CASINO5_5685

:CASINO5_5245
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_5302
print_now 'CAS5_09' {time} 8000 {flag} 1
63@(40@,3i) = 5
goto @CASINO5_5685

:CASINO5_5302
if 
  TIMERA > 120000
goto_if_false @CASINO5_5563
if or
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_5411
if 
  is_char_in_car $scplayer {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_5397
89@ = 1

:CASINO5_5397
goto @CASINO5_7017
goto @CASINO5_5556

:CASINO5_5411
remove_blip 60@(40@,3i)
if 
  does_char_exist 72@
goto_if_false @CASINO5_5441
delete_char 72@

:CASINO5_5441
if 
  does_char_exist 66@(40@,3i)
goto_if_false @CASINO5_5470
delete_char 66@(40@,3i)

:CASINO5_5470
if 
  does_char_exist 69@(40@,3i)
goto_if_false @CASINO5_5499
delete_char 69@(40@,3i)

:CASINO5_5499
if 
  does_vehicle_exist 57@(40@,3i)
goto_if_false @CASINO5_5528
delete_car 57@(40@,3i)

:CASINO5_5528
51@ = 1
set_lvar_text_label 52@s = 'CAS5_32'
goto @CASINO5_12932

:CASINO5_5556
goto @CASINO5_5685

:CASINO5_5563
if 
  2 > 79@
goto_if_false @CASINO5_5678
if 
  79@ == 0
goto_if_false @CASINO5_5642
if 
  not is_message_being_displayed 
goto_if_false @CASINO5_5635
print_now 'CAS5_30' {time} 8000 {flag} 1
79@ += 1

:CASINO5_5635
goto @CASINO5_5678

:CASINO5_5642
if 
  not is_message_being_displayed 
goto_if_false @CASINO5_5678
print_now 'CAS5_31' {time} 8000 {flag} 1
79@ += 1

:CASINO5_5678
goto @CASINO5_7017

:CASINO5_5685
goto @CASINO5_5720

:CASINO5_5692
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_5720
if 
  not is_char_dead 72@
goto_if_false @CASINO5_6982
if 
  80@ == 0
goto_if_false @CASINO5_6160
41@ = 0

:CASINO5_5761
if 
  3 > 41@
goto_if_false @CASINO5_5854
if 
  not is_int_lvar_equal_to_int_lvar 40@ == 41@
goto_if_false @CASINO5_5840
remove_blip 60@(41@,3i)
if 
  3 > 63@(41@,3i)
goto_if_false @CASINO5_5840
63@(41@,3i) = 3

:CASINO5_5840
41@ += 1
goto @CASINO5_5761

:CASINO5_5854
mark_model_as_no_longer_needed 275
remove_animation "GANGS"
request_model 405
if 
  89@ == 0
goto_if_false @CASINO5_6109
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6017
clear_char_tasks 66@(40@,3i)
task_car_drive_wander 66@(40@,3i) {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6003
task_drive_by 69@(40@,3i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 35

:CASINO5_6003
88@ = 0
goto @CASINO5_6109

:CASINO5_6017
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6109
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
88@ = 1

:CASINO5_6109
switch_car_siren 57@(40@,3i) {state} True
set_car_health 57@(40@,3i) {health} 96@
80@ = 1
92@ = 0
112@ = 0
goto @CASINO5_6975

:CASINO5_6160
90@ = get_car_health 57@(40@,3i)
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_6287
set_lvar_int_to_lvar_int 91@ = 96@
sub_int_lvar_from_int_lvar 91@ -= 90@
if 
  has_car_been_damaged_by_weapon 57@(40@,3i) {weaponType} WeaponType.AnyWeapon
goto_if_false @CASINO5_6272
91@ /= 20
if 
  91@ == 0
goto_if_false @CASINO5_6265
91@ = 1

:CASINO5_6265
goto @CASINO5_6279

:CASINO5_6272
91@ *= 2

:CASINO5_6279
add_int_lvar_to_int_lvar 92@ += 91@

:CASINO5_6287
set_car_health 57@(40@,3i) {health} 96@
clear_car_last_damage_entity 57@(40@,3i)
if 
  200 > 92@
goto_if_false @CASINO5_6515
if 
  not is_char_in_car $scplayer {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_6508
if 
  is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6494
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6487
if 
  88@ == 0
goto_if_false @CASINO5_6480
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
88@ = 1

:CASINO5_6480
goto @CASINO5_7017

:CASINO5_6487
goto @CASINO5_6501

:CASINO5_6494
goto @CASINO5_7017

:CASINO5_6501
goto @CASINO5_6515

:CASINO5_6508
89@ = 1

:CASINO5_6515
set_car_health 57@(40@,3i) {health} 3000
if 
  89@ == 0
goto_if_false @CASINO5_6559
set_car_temp_action 57@(40@,3i) {actionId} TempAction.HandbrakeStraight {time} 5000

:CASINO5_6559
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6646
clear_char_tasks 66@(40@,3i)
42@ = open_sequence_task 
task_leave_car -1 {vehicle} 57@(40@,3i)
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 42@
perform_sequence_task 66@(40@,3i) {sequence} 42@
clear_sequence_task 42@
goto @CASINO5_6646

:CASINO5_6646
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6733
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_leave_car -1 {vehicle} 57@(40@,3i)
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
goto @CASINO5_6733

:CASINO5_6733
if 
  89@ == 0
goto_if_false @CASINO5_6873
remove_blip 60@(40@,3i)
add_blip_for_car 57@(40@,3i) {var_handle} 60@(40@,3i)
set_blip_as_friendly 60@(40@,3i) {state} True
lock_car_doors 57@(40@,3i) {lockStatus} CarLock.Unlocked
if or
  not is_char_dead 66@(40@,3i)
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6850
print_now 'CAS5_11' {time} 8000 {flag} 1
goto @CASINO5_6866

:CASINO5_6850
print_now 'CAS5_12' {time} 8000 {flag} 1

:CASINO5_6866
goto @CASINO5_6882

:CASINO5_6873
remove_blip 60@(40@,3i)

:CASINO5_6882
set_car_density_multiplier 0.6
set_ped_density_multiplier 0.6
unmark_all_road_nodes_as_dont_wander 
109@ = 100.0
106@ = 0
101@ = -1
102@ = -1
107@ = -10.0
108@ = -10.0
77@ = 0
set_car_health 57@(40@,3i) {health} 1250
goto @CASINO5_8780

:CASINO5_6975
goto @CASINO5_7010

:CASINO5_6982
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_7010
goto @CASINO5_7017

:CASINO5_7017
40@ += 1
goto @CASINO5_3077

:CASINO5_7031
gosub @CASINO5_7045
goto @CASINO5_3066

:CASINO5_7045
if 
  TIMERB > 500
goto_if_false @CASINO5_7419
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
40@ = 0

:CASINO5_7085
if 
  3 > 40@
goto_if_false @CASINO5_7412
if 
  not is_car_dead 57@(40@,3i)
goto_if_false @CASINO5_7398
if 
  63@(40@,3i) == 0
goto_if_false @CASINO5_7354
$x, $y, $z = get_car_coordinates 57@(40@,3i)
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
switch_start 93@(40@,3i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7347 {caseNum1} 0 {caseLabel1} @CASINO5_7247 {caseNum2} 1 {caseLabel2} @CASINO5_7297 {caseNum3} -1 {caseLabel3} @CASINO5_7347 {caseNum4} -1 {caseLabel4} @CASINO5_7347 {caseNum5} -1 {caseLabel5} @CASINO5_7347 {caseNum6} -1 {caseLabel6} @CASINO5_7347 {caseNum7} -1 {caseLabel7} @CASINO5_7347

:CASINO5_7247
if 
  120.0 > $distance
goto_if_false @CASINO5_7290
set_load_collision_for_car_flag 57@(40@,3i) {state} True
93@(40@,3i) += 1

:CASINO5_7290
goto @CASINO5_7347

:CASINO5_7297
if 
  $distance > 140.0
goto_if_false @CASINO5_7340
set_load_collision_for_car_flag 57@(40@,3i) {state} False
93@(40@,3i) -= 1

:CASINO5_7340
goto @CASINO5_7347

:CASINO5_7347
goto @CASINO5_7398

:CASINO5_7354
if 
  93@(40@,3i) == 0
goto_if_false @CASINO5_7398
set_load_collision_for_car_flag 57@(40@,3i) {state} True
93@(40@,3i) = 1

:CASINO5_7398
40@ += 1
goto @CASINO5_7085

:CASINO5_7412
TIMERB = 0

:CASINO5_7419
return 

:CASINO5_7421
45@ = generate_random_int_in_range 0 {max} 2
switch_start 40@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7631 {caseNum1} 0 {caseLabel1} @CASINO5_7493 {caseNum2} 1 {caseLabel2} @CASINO5_7539 {caseNum3} 2 {caseLabel3} @CASINO5_7585 {caseNum4} -1 {caseLabel4} @CASINO5_7631 {caseNum5} -1 {caseLabel5} @CASINO5_7631 {caseNum6} -1 {caseLabel6} @CASINO5_7631 {caseNum7} -1 {caseLabel7} @CASINO5_7631

:CASINO5_7493
if 
  45@ == 0
goto_if_false @CASINO5_7525
74@ = 1
goto @CASINO5_7532

:CASINO5_7525
74@ = 2

:CASINO5_7532
goto @CASINO5_7631

:CASINO5_7539
if 
  45@ == 0
goto_if_false @CASINO5_7571
74@ = 0
goto @CASINO5_7578

:CASINO5_7571
74@ = 2

:CASINO5_7578
goto @CASINO5_7631

:CASINO5_7585
if 
  45@ == 0
goto_if_false @CASINO5_7617
74@ = 0
goto @CASINO5_7624

:CASINO5_7617
74@ = 1

:CASINO5_7624
goto @CASINO5_7631

:CASINO5_7631
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_7969
96@ = 5000
set_car_health 57@(74@,3i) {health} 96@
set_can_burst_car_tyres 57@(74@,3i) {state} False
if 
  not is_char_dead 66@(74@,3i)
goto_if_false @CASINO5_7720
clear_char_tasks 66@(74@,3i)
delete_char 66@(74@,3i)

:CASINO5_7720
create_char_inside_car 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 124 {var_handle} 66@(74@,3i)
set_char_cant_be_dragged_out 66@(74@,3i) {state} True
give_weapon_to_char 66@(74@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 66@(74@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 66@(74@,3i) {handleOrTemplate} 47@
if 
  not is_char_dead 69@(74@,3i)
goto_if_false @CASINO5_7826
clear_char_tasks 69@(74@,3i)
delete_char 69@(74@,3i)

:CASINO5_7826
create_char_as_passenger 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.BikeRear {var_handle} 69@(74@,3i)
set_char_cant_be_dragged_out 69@(74@,3i) {state} True
give_weapon_to_char 69@(74@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 69@(74@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 69@(74@,3i) {handleOrTemplate} 47@
72@ = create_char_as_passenger 57@(74@,3i) {pedType} PedType.Special {modelId} 290 {seat} SeatId.RearLeft
set_char_stay_in_car_when_jacked 72@ {state} True
set_char_force_die_in_car 72@ {state} True
set_char_decision_maker 72@ {handleOrTemplate} 48@
set_char_get_out_upside_down_car 72@ {state} False
TIMERA = 0
79@ = 0
63@(74@,3i) = 4

:CASINO5_7969
return 

:CASINO5_7971
105@ = 0

:CASINO5_7978
if 
  2 > 105@
goto_if_false @CASINO5_8778
if and
  not is_char_dead 99@(105@,2i)
  not is_car_dead 97@(105@,2i)
goto_if_false @CASINO5_8405
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_8398 {caseNum1} 1 {caseLabel1} @CASINO5_8092 {caseNum2} 2 {caseLabel2} @CASINO5_8321 {caseNum3} -1 {caseLabel3} @CASINO5_8398 {caseNum4} -1 {caseLabel4} @CASINO5_8398 {caseNum5} -1 {caseLabel5} @CASINO5_8398 {caseNum6} -1 {caseLabel6} @CASINO5_8398 {caseNum7} -1 {caseLabel7} @CASINO5_8398

:CASINO5_8092
if 
  106@ == 0
goto_if_false @CASINO5_8124
gosub @CASINO5_9852
goto @CASINO5_8314

:CASINO5_8124
$x, $y, $z = get_car_coordinates 97@(105@,2i)
$z = get_distance_between_coords_2d 1074.4611 {fromY} 2392.2271 {toX} $x {toZ} $y
$distance = get_distance_between_coords_2d 1010.673 {fromY} 1487.184 {toX} $x {toZ} $y
clear_char_tasks 99@(105@,2i)
if 
  is_float_var_greater_than_float_var $distance > $z
goto_if_false @CASINO5_8261
task_car_drive_to_coord 99@(105@,2i) {vehicle} 97@(105@,2i) {x} 1074.4611 {y} 2392.2271 {z} 9.6796 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @CASINO5_8303

:CASINO5_8261
task_car_drive_to_coord 99@(105@,2i) {vehicle} 97@(105@,2i) {x} 1010.673 {y} 1487.184 {z} 9.6797 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO5_8303
101@(105@,2i) = 2

:CASINO5_8314
goto @CASINO5_8398

:CASINO5_8321
if 
  106@ == 0
goto_if_false @CASINO5_8391
101@(105@,2i) = 1
clear_char_tasks 99@(105@,2i)
task_car_mission 99@(105@,2i) {vehicle} 97@(105@,2i) {targetVehicle} 57@(74@,3i) {missionId} CarMission.RamPlayerClose {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars

:CASINO5_8391
goto @CASINO5_8398

:CASINO5_8398
goto @CASINO5_8764

:CASINO5_8405
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO5_8472 {caseNum1} -1 {caseLabel1} @CASINO5_8508 {caseNum2} 0 {caseLabel2} @CASINO5_8515 {caseNum3} -1 {caseLabel3} @CASINO5_8764 {caseNum4} -1 {caseLabel4} @CASINO5_8764 {caseNum5} -1 {caseLabel5} @CASINO5_8764 {caseNum6} -1 {caseLabel6} @CASINO5_8764 {caseNum7} -1 {caseLabel7} @CASINO5_8764

:CASINO5_8472
mark_char_as_no_longer_needed 99@(105@,2i)
mark_car_as_no_longer_needed 97@(105@,2i)
101@(105@,2i) = -1
goto @CASINO5_8764

:CASINO5_8508
goto @CASINO5_8764

:CASINO5_8515
if 
  103@(105@,2i) > 9000
goto_if_false @CASINO5_8757
if 
  has_model_loaded 405
goto_if_false @CASINO5_8757
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_8757
create_car 405 {x} 118@ {y} 119@ {z} 120@ {var_handle} 97@(105@,2i)
set_car_heading 97@(105@,2i) {heading} 121@
lock_car_doors 97@(105@,2i) {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_visibly_damaged 97@(105@,2i) {state} False
set_car_health 97@(105@,2i) {health} 5000
create_char_inside_car 97@(105@,2i) {pedType} PedType.Mission1 {modelId} 125 {var_handle} 99@(105@,2i)
give_weapon_to_char 99@(105@,2i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 99@(105@,2i) {weaponType} WeaponType.Mp5
set_char_decision_maker 99@(105@,2i) {handleOrTemplate} 48@
set_char_cant_be_dragged_out 99@(105@,2i) {state} True
task_car_mission 99@(105@,2i) {vehicle} 97@(105@,2i) {targetVehicle} 57@(74@,3i) {missionId} CarMission.RamPlayerClose {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars
101@(105@,2i) = 1

:CASINO5_8757
goto @CASINO5_8764

:CASINO5_8764
105@ += 1
goto @CASINO5_7978

:CASINO5_8778
return 

:CASINO5_8780
wait 0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_9817
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_9810
if 
  is_char_in_car $scplayer {vehicle} 57@(74@,3i)
goto_if_false @CASINO5_9197
if 
  110@ == 0
goto_if_false @CASINO5_8999
remove_blip 60@(74@,3i)
44@ = add_blip_for_coord 981.4241 {y} 2132.469 {z} 9.8203
if 
  77@ == 0
goto_if_false @CASINO5_8976
print_now 'CAS5_13' {time} 8000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
77@ = 1
mark_car_as_no_longer_needed 55@
mark_model_as_no_longer_needed 470
goto @CASINO5_8992

:CASINO5_8976
print_now 'CAS5_14' {time} 8000 {flag} 1

:CASINO5_8992
110@ = 1

:CASINO5_8999
if 
  locate_char_in_car_2d $scplayer {x} 981.4241 {y} 2132.469 {xRadius} 109@ {yRadius} 109@ {drawSphere} False
goto_if_false @CASINO5_9130
if 
  locate_char_in_car_3d $scplayer {x} 981.4241 {y} 2132.469 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO5_9088
goto @CASINO5_10933

:CASINO5_9088
if 
  106@ == 0
goto_if_false @CASINO5_9123
109@ = 120.0
106@ = 1

:CASINO5_9123
goto @CASINO5_9165

:CASINO5_9130
if 
  106@ == 1
goto_if_false @CASINO5_9165
109@ = 100.0
106@ = 0

:CASINO5_9165
if 
  112@ == 1
goto_if_false @CASINO5_9190
gosub @CASINO5_10202

:CASINO5_9190
goto @CASINO5_9550

:CASINO5_9197
if 
  110@ == 1
goto_if_false @CASINO5_9270
remove_blip 44@
add_blip_for_car 57@(74@,3i) {var_handle} 60@(74@,3i)
set_blip_as_friendly 60@(74@,3i) {state} True
print_now 'CAS5_15' {time} 8000 {flag} 1
110@ = 0

:CASINO5_9270
if 
  2 > 111@
goto_if_false @CASINO5_9550
if 
  111@ == 0
goto_if_false @CASINO5_9415
if 
  not is_char_dead 66@(74@,3i)
goto_if_false @CASINO5_9401
if 
  not is_char_in_any_car 66@(74@,3i)
goto_if_false @CASINO5_9394
set_var_int_to_constant $load_sample = 17612
set_var_text_label s$load_text = 'CAS5_EA'
start_new_script @A_ALAP 2 100 66@(74@,3i) 
111@ += 1

:CASINO5_9394
goto @CASINO5_9408

:CASINO5_9401
111@ += 1

:CASINO5_9408
goto @CASINO5_9550

:CASINO5_9415
if 
  not is_char_dead 69@(74@,3i)
goto_if_false @CASINO5_9543
if 
  not is_char_in_any_car 69@(74@,3i)
goto_if_false @CASINO5_9536
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_9536
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 17613
set_var_text_label s$load_text = 'CAS5_EB'
start_new_script @A_ALAP 2 100 69@(74@,3i) 
111@ += 1

:CASINO5_9536
goto @CASINO5_9550

:CASINO5_9543
111@ += 1

:CASINO5_9550
if 
  112@ == 0
goto_if_false @CASINO5_9758
if 
  not is_car_dead 97@
goto_if_false @CASINO5_9638
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CASINO5_9638
print_now 'CAS5_16' {time} 8000 {flag} 1
112@ = 1

:CASINO5_9638
if 
  112@ == 0
goto_if_false @CASINO5_9726
if 
  not is_car_dead 98@
goto_if_false @CASINO5_9726
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 98@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CASINO5_9726
print_now 'CAS5_16' {time} 8000 {flag} 1
112@ = 1

:CASINO5_9726
if 
  112@ == 1
goto_if_false @CASINO5_9758
TIMERB = 0
123@ = 7

:CASINO5_9758
37@ = get_game_timer 
set_lvar_int_to_lvar_int 39@ = 37@
sub_int_lvar_from_int_lvar 39@ -= 38@
set_lvar_int_to_lvar_int 38@ = 37@
add_int_lvar_to_int_lvar 103@ += 39@
add_int_lvar_to_int_lvar 104@ += 39@
gosub @CASINO5_7971

:CASINO5_9810
goto @CASINO5_9845

:CASINO5_9817
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_9845
goto @CASINO5_8780

:CASINO5_9852
if 
  103@(105@,2i) > 500
goto_if_false @CASINO5_9999
if and
  not locate_char_any_means_car_2d $scplayer {vehicle} 97@(105@,2i) {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
  not is_car_on_screen 97@(105@,2i)
goto_if_false @CASINO5_9988
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_9988
set_car_coordinates 97@(105@,2i) {x} 118@ {y} 119@ {z} 120@
set_car_heading 97@(105@,2i) {heading} 121@
set_car_forward_speed 97@(105@,2i) {forwardSpeed} 32.0

:CASINO5_9988
103@(105@,2i) = 0

:CASINO5_9999
return 

:CASINO5_10001
113@ = 1
114@ = 0

:CASINO5_10015
if and
  10 > 113@
  114@ == 0
goto_if_false @CASINO5_10200
115@, 116@, 117@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 107@(105@,2f) {zOffset} 0.0
118@, 119@, 120@, 121@ = get_nth_closest_car_node_with_heading 115@ {yCoord} 116@ {zCoord} 117@ {nth} 113@
if 
  not is_point_obscured_by_a_mission_entity 118@ {y} 119@ {z} 120@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @CASINO5_10186
if 
  not is_point_on_screen 118@ {y} 119@ {z} 120@ {radius} 5.0
goto_if_false @CASINO5_10186
clear_area 118@ {y} 119@ {z} 120@ {radius} 5.0 {clearParticles} True
114@ = 1

:CASINO5_10186
113@ += 1
goto @CASINO5_10015

:CASINO5_10200
return 

:CASINO5_10202
switch_start 123@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO5_10931 {caseNum1} 0 {caseLabel1} @CASINO5_10330 {caseNum2} 1 {caseLabel2} @CASINO5_10363 {caseNum3} 2 {caseLabel3} @CASINO5_10452 {caseNum4} 4 {caseLabel4} @CASINO5_10499 {caseNum5} 5 {caseLabel5} @CASINO5_10588 {caseNum6} 7 {caseLabel6} @CASINO5_10635 {caseNum7} 8 {caseLabel7} @CASINO5_10677
switch_continued 9 {caseLabel1} @CASINO5_10813 {caseNum2} 10 {caseLabel2} @CASINO5_10898 {caseNum3} -1 {caseLabel3} @CASINO5_10931 {caseNum4} -1 {caseLabel4} @CASINO5_10931 {caseNum5} -1 {caseLabel5} @CASINO5_10931 {caseNum6} -1 {caseLabel6} @CASINO5_10931 {caseNum7} -1 {caseLabel7} @CASINO5_10931 {caseNum8} -1 {caseLabel8} @CASINO5_10931 {caseNum9} -1 {caseLabel9} @CASINO5_10931

:CASINO5_10330
if 
  TIMERB > 8500
goto_if_false @CASINO5_10356
123@ += 1

:CASINO5_10356
goto @CASINO5_10931

:CASINO5_10363
if 
  2 > 122@
goto_if_false @CASINO5_10438
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10452

:CASINO5_10438
123@ = 3
goto @CASINO5_10931

:CASINO5_10452
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10492
123@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10492
goto @CASINO5_10931

:CASINO5_10499
if 
  7 > 122@
goto_if_false @CASINO5_10574
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10588

:CASINO5_10574
123@ = 6
goto @CASINO5_10931

:CASINO5_10588
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10628
123@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10628
goto @CASINO5_10931

:CASINO5_10635
if 
  TIMERB > 8500
goto_if_false @CASINO5_10670
122@ = generate_random_int_in_range 7 {max} 14
123@ += 1

:CASINO5_10670
goto @CASINO5_10931

:CASINO5_10677
if 
  not is_car_dead 97@
goto_if_false @CASINO5_10728
if 
  has_car_been_damaged_by_car 57@(74@,3i) {other} 97@
goto_if_false @CASINO5_10723
123@ = 9

:CASINO5_10723
clear_car_last_damage_entity 97@

:CASINO5_10728
if 
  not is_car_dead 98@
goto_if_false @CASINO5_10797
if 
  123@ <> 9
goto_if_false @CASINO5_10792
if 
  has_car_been_damaged_by_car 57@(74@,3i) {other} 98@
goto_if_false @CASINO5_10792
123@ = 9

:CASINO5_10792
clear_car_last_damage_entity 98@

:CASINO5_10797
clear_car_last_damage_entity 57@(74@,3i)
goto @CASINO5_10931

:CASINO5_10813
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 2 100 72@ 
123@ = 10
122@ += 1
if 
  122@ == 14
goto_if_false @CASINO5_10891
122@ = 7

:CASINO5_10891
TIMERB = 0

:CASINO5_10898
if 
  TIMERB > 10000
goto_if_false @CASINO5_10924
123@ = 8

:CASINO5_10924
goto @CASINO5_10931

:CASINO5_10931
return 

:CASINO5_10933
do_fade 0 {direction} Fade.Out

:CASINO5_10939
if 
  get_fading_status 
goto_if_false @CASINO5_10963
wait 0
goto @CASINO5_10939

:CASINO5_10963
clear_prints 
clear_area 979.7058 {y} 2137.2471 {z} 9.8203 {radius} 200.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11032
set_car_health 57@(74@,3i) {health} 3000

:CASINO5_11032
request_model 126
request_model 127
request_model #CJ_WHEELCHAIR1

:CASINO5_11045
if or
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded #CJ_WHEELCHAIR1
goto_if_false @CASINO5_11080
wait 0
goto @CASINO5_11045

:CASINO5_11080
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11182
set_car_coordinates 57@(74@,3i) {x} 979.7058 {y} 2137.2471 {z} 9.8203
set_car_heading 57@(74@,3i) {heading} 237.8897
warp_char_from_car_to_coord $scplayer {x} 998.5278 {y} 2118.5891 {z} 9.8203
172@ = create_char_inside_car 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 126
set_char_decision_maker 172@ {handleOrTemplate} 48@

:CASINO5_11182
set_fixed_camera_position 972.8329 {y} 2141.334 {z} 11.0496 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 973.6994 {y} 2140.8391 {z} 11.1103 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO5_11240
if 
  get_fading_status 
goto_if_false @CASINO5_11264
wait 0
goto @CASINO5_11240

:CASINO5_11264
if and
  not is_car_dead 57@(74@,3i)
  not is_char_dead 172@
goto_if_false @CASINO5_11351
42@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 57@(74@,3i) {actionId} TempAction.ReverseStraight {time} 500
task_car_temp_action -1 {vehicle} 57@(74@,3i) {actionId} TempAction.HandbrakeStraight {time} 300
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 172@ {sequence} 42@
clear_sequence_task 42@

:CASINO5_11351
46@ = 0

:CASINO5_11358
if 
  46@ == 0
goto_if_false @CASINO5_11436
wait 0
if 
  not is_char_dead 172@
goto_if_false @CASINO5_11429
43@ = get_sequence_progress 172@
if 
  43@ > 0
goto_if_false @CASINO5_11429
46@ = 1

:CASINO5_11429
goto @CASINO5_11358

:CASINO5_11436
if and
  not is_char_dead 172@
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11696
warp_char_from_car_to_coord 172@ {x} 971.7789 {y} 2137.2881 {z} 9.8203
set_char_heading 172@ {heading} 316.6316
clear_char_tasks_immediately 172@
42@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 974.2065 {y} 2140.1079 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_look_at_vehicle -1 {vehicle} 57@(74@,3i) {time} 8000
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 172@ {sequence} 42@
clear_sequence_task 42@
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO5_11591
warp_char_into_car $scplayer {vehicle} 57@(74@,3i)

:CASINO5_11591
173@ = create_char PedType.Mission1 {modelId} 127 {x} 975.8311 {y} 2144.959 {z} 9.8203
set_char_heading 173@ {heading} 162.2693
set_char_decision_maker 173@ {handleOrTemplate} 48@
42@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 975.0208 {y} 2141.366 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_look_at_char -1 {target} 173@ {time} 8000
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 173@ {sequence} 42@
clear_sequence_task 42@

:CASINO5_11696
46@ = 0

:CASINO5_11703
if 
  46@ == 0
goto_if_false @CASINO5_11781
wait 0
if 
  not is_char_dead 172@
goto_if_false @CASINO5_11774
43@ = get_sequence_progress 172@
if 
  43@ > 0
goto_if_false @CASINO5_11774
46@ = 1

:CASINO5_11774
goto @CASINO5_11703

:CASINO5_11781
set_var_int_to_constant $load_sample = 17614
set_var_text_label s$load_text = 'CAS5_DA'
start_new_script @A_ALAP 2 200 172@ 
46@ = 0

:CASINO5_11826
if 
  46@ == 0
goto_if_false @CASINO5_11904
wait 0
if 
  not is_char_dead 173@
goto_if_false @CASINO5_11897
43@ = get_sequence_progress 173@
if 
  43@ > 0
goto_if_false @CASINO5_11897
46@ = 1

:CASINO5_11897
goto @CASINO5_11826

:CASINO5_11904
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO5_11937
wait 0
goto @CASINO5_11904

:CASINO5_11937
set_var_int_to_constant $load_sample = 17611
set_var_text_label s$load_text = 'CAS5_DB'
start_new_script @A_ALAP 2 200 173@ 
TIMERA = 0

:CASINO5_11982
if 
  4500 > TIMERA
goto_if_false @CASINO5_12012
wait 0
goto @CASINO5_11982

:CASINO5_12012
do_fade 0 {direction} Fade.Out

:CASINO5_12018
if 
  get_fading_status 
goto_if_false @CASINO5_12042
wait 0
goto @CASINO5_12018

:CASINO5_12042
174@ = create_object #CJ_WHEELCHAIR1 {x} 971.5 {y} 2140.5 {z} 9.8203
set_object_heading 174@ {heading} 180.0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_12179
warp_char_from_car_to_coord 72@ {x} 0.0 {y} 0.0 {z} 0.0
attach_char_to_object 72@ {handle} 174@ {xOffset} 0.0 {yOffset} -0.575 {zOffset} 0.525 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim 72@ {animationName} "SEAT_DOWN" {animationFile} "PED" {blendSpeed} 9.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:CASINO5_12179
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12225
set_char_coordinates 172@ {x} 972.5 {y} 2140.5 {z} 9.8203
set_char_heading 172@ {heading} 0.0

:CASINO5_12225
if 
  not is_char_dead 173@
goto_if_false @CASINO5_12271
set_char_coordinates 173@ {x} 971.5 {y} 2139.5 {z} 9.8203
set_char_heading 173@ {heading} 0.0

:CASINO5_12271
46@ = 0

:CASINO5_12278
if 
  46@ == 0
goto_if_false @CASINO5_12378
wait 0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_12371
if 
  is_char_playing_anim 72@ {animationName} "SEAT_DOWN"
goto_if_false @CASINO5_12371
set_char_anim_current_time 72@ {animationName} "SEAT_DOWN" {time} 1.0
46@ = 1

:CASINO5_12371
goto @CASINO5_12278

:CASINO5_12378
set_fixed_camera_position 971.4178 {y} 2146.135 {z} 14.0976 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 971.5663 {y} 2145.2749 {z} 13.6106 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO5_12436
if 
  200 > TIMERA
goto_if_false @CASINO5_12466
wait 0
goto @CASINO5_12436

:CASINO5_12466
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12487
clear_char_tasks 172@

:CASINO5_12487
do_fade 500 {direction} Fade.In

:CASINO5_12494
if 
  get_fading_status 
goto_if_false @CASINO5_12518
wait 0
goto @CASINO5_12494

:CASINO5_12518
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12558
task_go_straight_to_coord 172@ {x} 972.8889 {y} 2148.0391 {z} 9.8203 {speed} MoveState.Walk {time} -2

:CASINO5_12558
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_12616
task_car_drive_to_coord $scplayer {vehicle} 57@(74@,3i) {x} 991.3741 {y} 2136.312 {z} 9.8203 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:CASINO5_12616
TIMERA = 0

:CASINO5_12623
if 
  1700 > TIMERA
goto_if_false @CASINO5_12653
wait 0
goto @CASINO5_12623

:CASINO5_12653
do_fade 1000 {direction} Fade.Out

:CASINO5_12660
if 
  get_fading_status 
goto_if_false @CASINO5_12684
wait 0
goto @CASINO5_12660

:CASINO5_12684
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_12750
set_car_forward_speed 57@(74@,3i) {forwardSpeed} 0.0
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0
warp_char_into_car $scplayer {vehicle} 57@(74@,3i)

:CASINO5_12750
detach_char_from_car 72@
delete_char 72@
delete_char 172@
delete_char 173@
delete_object 174@
clear_char_tasks $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen True
TIMERA = 0

:CASINO5_12802
if 
  200 > TIMERA
goto_if_false @CASINO5_12832
wait 0
goto @CASINO5_12802

:CASINO5_12832
do_fade 0 {direction} Fade.In

:CASINO5_12838
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO5'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $vcrash_contact_blip
$vcrash_contact_blip = add_sprite_blip_for_contact_point $vcrashX {y} $vcrashY {z} $vcrashZ {sprite} $crash_blip_icon
start_new_script @VCRASH 
return 

:CASINO5_12932
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  51@ == 1
goto_if_false @CASINO5_12976
print_now 52@s {time} 5000 {flag} 1

:CASINO5_12976
return 

:CASINO5_12978
start_new_script @A_TERM 
unmark_all_road_nodes_as_dont_wander 
if 
  is_player_playing $player1
goto_if_false @CASINO5_13015
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO5_13015
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_blip 44@
remove_blip 60@
remove_blip 61@
remove_blip 62@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 99@
mark_char_as_no_longer_needed 100@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
mark_car_as_no_longer_needed 97@
mark_car_as_no_longer_needed 98@
dont_suppress_car_model 470
unload_special_character 1
mark_model_as_no_longer_needed 275
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #CJ_WHEELCHAIR1
remove_animation "GANGS"
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 90---------------
// Originally: The Meat Business

:CASINO6
script_name 'CASINO6'
gosub @CASINO6_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO6_38
gosub @CASINO6_31097

:CASINO6_38
gosub @CASINO6_31845
terminate_this_script 

:CASINO6_47
register_mission_given 
$onmission = 1
switch_entry_exit 'ABATOIR' {state} True
load_mission_text 'CASINO6'
set_char_coordinates $scplayer {x} 2179.9341 {y} 1684.1479 {z} 10.0533
set_char_heading $scplayer {heading} 108.0825
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_6A'

:CASINO6_157
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_181
wait 0
goto @CASINO6_157

:CASINO6_181
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_190
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_214
wait 0
goto @CASINO6_190

:CASINO6_214
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_227
if 
  get_fading_status 
goto_if_false @CASINO6_251
wait 0
goto @CASINO6_227

:CASINO6_251
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 99
if 
  230@ == 1
goto_if_false @CASINO6_322
314@ = create_car 405 {x} 0.0 {y} 0.0 {z} 0.0
218@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:CASINO6_322
set_player_group_recruitment $player1 {state} False
start_new_script @A_CONT 
set_char_area_visible $scplayer {areaId} 0
load_scene_in_direction 2179.9341 {y} 1684.1479 {z} 10.0533 {heading} 108.0825
34@ = load_char_decision_maker DecisionMakerType.Empty
35@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Special {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Special
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
308@ = get_player_group $player1
set_group_default_task_allocator 308@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
load_special_character 1 {modelName} 'ROSE'

:CASINO6_440
if 
  not has_special_character_loaded 1
goto_if_false @CASINO6_466
wait 0
goto @CASINO6_440

:CASINO6_466
39@ = create_char PedType.Special {modelId} 290 {x} 2181.3721 {y} 1680.926 {z} 10.0636
set_char_heading 39@ {heading} 71.6745
set_char_area_visible 39@ {areaId} 0
40@ = add_blip_for_char 39@
change_blip_display 40@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 40@ {state} True
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_never_targetted 39@ {state} True
set_char_suffers_critical_hits 39@ {state} False
set_char_health 39@ {health} 300
set_char_never_leaves_group 39@ {state} True
set_group_member 308@ {handle} 39@
set_char_shoot_rate 39@ {rate} 100
218@ = add_blip_for_coord 967.3132 {y} 2161.1541 {z} 9.8203
print_now 'CAS6_10' {time} 8000 {flag} 1
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
231@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 958.9762 {y} 2096.8359 {z} 1011.1
do_fade 500 {direction} Fade.In

:CASINO6_664
if 
  get_fading_status 
goto_if_false @CASINO6_688
wait 0
goto @CASINO6_664

:CASINO6_688
set_lvar_text_label 364@s = 'CAS6_AA'
set_lvar_int_to_constant 318@ = 5615
set_lvar_int_to_var_int 341@ = $scplayer
set_lvar_text_label 366@s = 'CAS6_AB'
set_lvar_int_to_constant 319@ = 5600
set_lvar_int_to_lvar_int 342@ = 39@
set_lvar_text_label 368@s = 'CAS6_AC'
set_lvar_int_to_constant 320@ = 5601
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_AD'
set_lvar_int_to_constant 321@ = 5602
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 372@s = 'CAS6_AE'
set_lvar_int_to_constant 322@ = 5616
set_lvar_int_to_var_int 345@ = $scplayer
set_lvar_text_label 374@s = 'CAS6_AF'
set_lvar_int_to_constant 323@ = 5603
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_BA'
set_lvar_int_to_constant 324@ = 5604
set_lvar_int_to_lvar_int 347@ = 39@
set_lvar_text_label 378@s = 'CAS6_BB'
set_lvar_int_to_constant 325@ = 5605
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 380@s = 'CAS6_BC'
set_lvar_int_to_constant 326@ = 5606
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_BD'
set_lvar_int_to_constant 327@ = 5617
set_lvar_int_to_var_int 350@ = $scplayer
set_lvar_text_label 384@s = 'CAS6_BE'
set_lvar_int_to_constant 328@ = 5607
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_BF'
set_lvar_int_to_constant 329@ = 5608
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 388@s = 'CAS6_BH'
set_lvar_int_to_constant 330@ = 5609
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 390@s = 'CAS6_BK'
set_lvar_int_to_constant 331@ = 5618
set_lvar_int_to_var_int 354@ = $scplayer
set_lvar_text_label 392@s = 'CAS6_BL'
set_lvar_int_to_constant 332@ = 5610
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 394@s = 'CAS6_BM'
set_lvar_int_to_constant 333@ = 5611
set_lvar_int_to_lvar_int 356@ = 39@
set_lvar_text_label 396@s = 'CAS6_BN'
set_lvar_int_to_constant 334@ = 5612
set_lvar_int_to_lvar_int 357@ = 39@
set_lvar_text_label 398@s = 'CAS6_CA'
set_lvar_int_to_constant 335@ = 5613
set_lvar_int_to_lvar_int 358@ = 39@
set_lvar_text_label 400@s = 'CAS6_CB'
set_lvar_int_to_constant 336@ = 5614
set_lvar_int_to_lvar_int 359@ = 39@
316@ = 0
317@ = 0
TIMERB = 0

:CASINO6_1279
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_1721
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO6_1370
switch_entry_exit 'ABATOIR' {state} True
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_30949

:CASINO6_1370
284@ = get_area_visible 
if 
  284@ <> 0
goto_if_false @CASINO6_1484
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  locate_char_any_means_2d $scplayer {x} 967.3132 {y} 2161.1541 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO6_1455
goto @CASINO6_2735
goto @CASINO6_1484

:CASINO6_1455
freeze_char_position 39@ {state} True
remove_blip 218@
remove_blip 40@
remove_char_from_group 39@
goto @CASINO6_1756

:CASINO6_1484
if 
  locate_char_any_means_2d $scplayer {x} 967.3132 {y} 2161.1541 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CASINO6_1693
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CASINO6_1623
if 
  2 > 315@
goto_if_false @CASINO6_1578
315@ = 2

:CASINO6_1578
if 
  232@ == 0
goto_if_false @CASINO6_1616
switch_entry_exit 'ABATOIR' {state} False
232@ = 1

:CASINO6_1616
goto @CASINO6_1693

:CASINO6_1623
if 
  5 > 317@
goto_if_false @CASINO6_1655
316@ = 17
317@ = 5

:CASINO6_1655
if 
  232@ == 1
goto_if_false @CASINO6_1693
switch_entry_exit 'ABATOIR' {state} True
232@ = 0

:CASINO6_1693
gosub @CASINO6_29409
gosub @CASINO6_2499
gosub @CASINO6_1926
goto @CASINO6_1749

:CASINO6_1721
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_1749
goto @CASINO6_1279

:CASINO6_1756
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_1891
284@ = get_area_visible 
if 
  284@ == 0
goto_if_false @CASINO6_1884
freeze_char_position 39@ {state} False
set_char_never_leaves_group 39@ {state} True
set_group_member 308@ {handle} 39@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
218@ = add_blip_for_coord 967.3132 {y} 2161.1541 {z} 9.8203
TIMERA = 0
315@ = 3
goto @CASINO6_1279

:CASINO6_1884
goto @CASINO6_1919

:CASINO6_1891
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_1919
goto @CASINO6_1756

:CASINO6_1926
switch_start 317@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2497 {caseNum1} 0 {caseLabel1} @CASINO6_1989 {caseNum2} 1 {caseLabel2} @CASINO6_2022 {caseNum3} 2 {caseLabel3} @CASINO6_2149 {caseNum4} 3 {caseLabel4} @CASINO6_2235 {caseNum5} 4 {caseLabel5} @CASINO6_2328 {caseNum6} 5 {caseLabel6} @CASINO6_2375 {caseNum7} 6 {caseLabel7} @CASINO6_2450

:CASINO6_1989
if 
  TIMERB > 8000
goto_if_false @CASINO6_2015
317@ += 1

:CASINO6_2015
goto @CASINO6_2497

:CASINO6_2022
if 
  6 > 316@
goto_if_false @CASINO6_2135
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO6_2128
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2128
goto @CASINO6_2149

:CASINO6_2135
317@ = 3
goto @CASINO6_2497

:CASINO6_2149
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2228
if 
  313@ == 1
goto_if_false @CASINO6_2210
316@ = 6
317@ = 3
goto @CASINO6_2217

:CASINO6_2210
317@ = 1

:CASINO6_2217
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2228
goto @CASINO6_2497

:CASINO6_2235
if 
  313@ == 1
goto_if_false @CASINO6_2328
if 
  17 > 316@
goto_if_false @CASINO6_2328
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 1 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2328
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2368
317@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2368
goto @CASINO6_2497

:CASINO6_2375
if 
  19 > 316@
goto_if_false @CASINO6_2450
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2450
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2490
317@ = 5
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2490
goto @CASINO6_2497

:CASINO6_2497
return 

:CASINO6_2499
switch_start 315@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2733 {caseNum1} 0 {caseLabel1} @CASINO6_2562 {caseNum2} 1 {caseLabel2} @CASINO6_2630 {caseNum3} 2 {caseLabel3} @CASINO6_2663 {caseNum4} 3 {caseLabel4} @CASINO6_2700 {caseNum5} -1 {caseLabel5} @CASINO6_2733 {caseNum6} -1 {caseLabel6} @CASINO6_2733 {caseNum7} -1 {caseLabel7} @CASINO6_2733

:CASINO6_2562
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @CASINO6_2623
print_now 'CAS6_11' {time} 8000 {flag} 1
TIMERA = 0
315@ += 1

:CASINO6_2623
goto @CASINO6_2733

:CASINO6_2630
if 
  TIMERA > 20000
goto_if_false @CASINO6_2656
315@ -= 1

:CASINO6_2656
goto @CASINO6_2733

:CASINO6_2663
print_now 'CAS6_12' {time} 8000 {flag} 1
TIMERA = 0
315@ += 1
goto @CASINO6_2733

:CASINO6_2700
if 
  TIMERA > 20000
goto_if_false @CASINO6_2726
315@ = 0

:CASINO6_2726
goto @CASINO6_2733

:CASINO6_2733
return 

:CASINO6_2735
clear_wanted_level $player1
if 
  not is_car_dead 314@
goto_if_false @CASINO6_3041
if 
  is_car_in_area_2d 314@ {leftBottomX} 960.4431 {leftBottomY} 2087.9751 {rightTopX} 996.5055 {rightTopY} 2182.1531 {drawSphere} False
goto_if_false @CASINO6_3031
if 
  not is_car_upsidedown 314@
goto_if_false @CASINO6_3031
233@ = 1
241@, 242@, 243@ = get_car_coordinates 314@
244@ = get_car_heading 314@
234@ = get_car_model 314@
235@, 236@ = get_car_colours 314@
237@, 238@ = get_extra_car_colours 314@
216@ = 0

:CASINO6_2876
if 
  4 > 216@
goto_if_false @CASINO6_2935
if 
  is_car_tyre_burst 314@ {tireId} 216@
goto_if_false @CASINO6_2921
set_local_var_bit_lvar 239@ {var_bitIndex} 216@

:CASINO6_2921
216@ += 1
goto @CASINO6_2876

:CASINO6_2935
if 
  is_this_model_a_car 234@
goto_if_false @CASINO6_3024
216@ = 0

:CASINO6_2958
if 
  6 > 216@
goto_if_false @CASINO6_3017
if 
  is_car_door_damaged 314@ {door} 216@
goto_if_false @CASINO6_3003
set_local_var_bit_lvar 240@ {var_bitIndex} 216@

:CASINO6_3003
216@ += 1
goto @CASINO6_2958

:CASINO6_3017
goto @CASINO6_3031

:CASINO6_3024
240@ = -1

:CASINO6_3031
fix_car 314@
mark_model_as_no_longer_needed 234@

:CASINO6_3041
284@ = 0

:CASINO6_3048
if 
  284@ == 0
goto_if_false @CASINO6_3085
wait 0
284@ = get_char_area_visible $scplayer
goto @CASINO6_3048

:CASINO6_3085
do_fade 0 {direction} Fade.Out

:CASINO6_3091
if 
  get_fading_status 
goto_if_false @CASINO6_3115
wait 0
goto @CASINO6_3091

:CASINO6_3115
set_char_coordinates_dont_warp_gang $scplayer {x} 963.7808 {y} 2165.3501 {z} 1010.031
set_player_control $player1 {state} False
disable_player_sprint $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @CASINO6_3245
if 
  not is_char_in_any_car 39@
goto_if_false @CASINO6_3208
set_char_coordinates 39@ {x} 963.8596 {y} 2162.615 {z} 1010.031
goto @CASINO6_3228

:CASINO6_3208
warp_char_from_car_to_coord 39@ {x} 963.8596 {y} 2162.615 {z} 1010.031

:CASINO6_3228
freeze_char_position 39@ {state} True
remove_blip 40@
remove_char_from_group 39@

:CASINO6_3245
remove_blip 218@
if 
  not is_car_dead 314@
goto_if_false @CASINO6_3271
delete_car 314@

:CASINO6_3271
317@ = 0
316@ = 0
clear_area_of_chars 930.0 {leftBottomY} 2178.0 {leftBottomZ} 1008.0 {rightTopX} 964.0 {rightTopY} 2095.0 {rightTopZ} 1014.0
make_player_safe_for_cutscene $player1
set_area_visible 1
load_cutscene 'CAS6B_1'

:CASINO6_3337
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_3361
wait 0
goto @CASINO6_3337

:CASINO6_3361
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_3370
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_3394
wait 0
goto @CASINO6_3370

:CASINO6_3394
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_3409
if 
  get_fading_status 
goto_if_false @CASINO6_3433
wait 0
goto @CASINO6_3409

:CASINO6_3433
if 
  not was_cutscene_skipped 
goto_if_false @CASINO6_3553
load_cutscene 'CAS6B_2'

:CASINO6_3457
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_3481
wait 0
goto @CASINO6_3457

:CASINO6_3481
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_3490
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_3514
wait 0
goto @CASINO6_3490

:CASINO6_3514
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_3529
if 
  get_fading_status 
goto_if_false @CASINO6_3553
wait 0
goto @CASINO6_3529

:CASINO6_3553
switch_widescreen True
load_scene 942.8142 {y} 2111.4839 {z} 1010.031
request_collision 942.8142 {y} 2111.4839
set_char_coordinates $scplayer {x} 961.4175 {y} 2111.3899 {z} 1010.03
set_char_heading $scplayer {heading} 100.0
freeze_char_position $scplayer {state} False
36@ = 0
request_model 124
request_model 125
request_model 126
request_model 127
request_model 344
request_model 353
request_model 341
request_model 336
request_model 366
request_model #BODYARMOUR
request_model #AB_CARCASS
request_model #AB_HOOK
request_model #FREEZER_DOOR
request_model #SEC_KEYPAD
request_model #CARDBOARDBOX2
request_model #CJ_MEAT_BAG_1
request_model #CJ_MEAT_1
request_model #CJ_MEAT_2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1812

:CASINO6_3722
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded 344
goto_if_false @CASINO6_3765
wait 0
goto @CASINO6_3722

:CASINO6_3765
if or
  not has_model_loaded 353
  not has_model_loaded 341
  not has_model_loaded 336
  not has_model_loaded 366
  not has_model_loaded #BODYARMOUR
goto_if_false @CASINO6_3811
wait 0
goto @CASINO6_3765

:CASINO6_3811
if or
  not has_model_loaded #AB_CARCASS
  not has_model_loaded #AB_HOOK
  not has_model_loaded #FREEZER_DOOR
  not has_model_loaded #SEC_KEYPAD
  not has_model_loaded #CARDBOARDBOX2
  not has_model_loaded #CJ_MEAT_BAG_1
goto_if_false @CASINO6_3863
wait 0
goto @CASINO6_3811

:CASINO6_3863
if or
  not has_model_loaded #CJ_MEAT_1
  not has_model_loaded #CJ_MEAT_2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO6_3899
wait 0
goto @CASINO6_3863

:CASINO6_3899
220@, 230@, 230@ = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Melee
if 
  is_int_lvar_equal_to_constant 220@ == 9
goto_if_false @CASINO6_3952
set_lvar_int_to_constant 220@ = 5
mark_model_as_no_longer_needed 341
goto @CASINO6_3959

:CASINO6_3952
set_lvar_int_to_constant 220@ = 9

:CASINO6_3959
set_max_fire_generations 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_4081
set_char_coordinates 39@ {x} 959.7906 {y} 2108.6699 {z} 1010.03
set_char_heading 39@ {heading} 51.5
set_char_area_visible 39@ {areaId} 1
freeze_char_position 39@ {state} False
40@ = add_blip_for_char 39@
change_blip_display 40@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 40@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
set_blip_as_friendly 40@ {state} True
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_health 39@ {health} 300

:CASINO6_4081
display_onscreen_counter_with_string $7760 {display} CounterDisplay.Bar {text} 'CAS6_C0'
41@ = 0
42@ = 0
44@ = 0
51@ = 0
37@ = create_pickup 366 {pickupType} PickupType.Once {x} 962.9547 {y} 2101.918 {z} 1011.0
43@ = create_object_no_offset 366 {x} 959.9 {y} 2098.1001 {z} 1010.6
set_object_rotation 43@ {x} 0.0 {y} 45.0 {z} 90.0
38@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 958.4733 {y} 2144.251 {z} 1011.0
set_radar_zoom 95
285@ = 0
227@ = 0
307@ = 0
303@ = 0
304@ = 0
180@ = 1.062
set_lvar_float_to_lvar_float 178@ = 180@
178@ *= 2.0
178@ *= 3.1416
178@ /= 360.0
176@ = 0.0
177@ = -0.0001
162@ = 1
161@ = 0
163@ = 0
181@ = 945.725
189@ = 2175.24
182@ = 946.787
190@ = 2174.1851
183@ = 946.787
191@ = 2118.155
184@ = 945.725
192@ = 2117.0691
185@ = 938.357
193@ = 2117.0691
186@ = 937.262
194@ = 2118.155
187@ = 937.262
195@ = 2174.1851
188@ = 938.357
196@ = 2175.24
197@ = 1016.288
160@ = create_object_no_offset #SEC_KEYPAD {x} 946.35 {y} 2113.55 {z} 1011.522
set_object_collision 160@ {state} False
freeze_object_position 160@ {state} True
154@ = create_object_no_offset #CARDBOARDBOX2 {x} 937.262 {y} 2126.155 {z} 197@
set_object_dynamic 154@ {state} False
set_object_collision 154@ {state} False
set_object_visible 154@ {state} False
148@ = 6
164@ = 0.0
170@ = 0.0
142@ = create_object_no_offset #AB_CARCASS {x} 937.228 {y} 2121.157 {z} 197@
attach_object_to_object 142@ {handle} 154@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
155@ = create_object_no_offset #CARDBOARDBOX2 {x} 940.356 {y} 2175.24 {z} 197@
set_object_dynamic 155@ {state} False
set_object_collision 155@ {state} False
set_object_visible 155@ {state} False
149@ = 0
165@ = 90.0
171@ = 0.0
143@ = create_object_no_offset #AB_CARCASS {x} 940.356 {y} 2175.2639 {z} 197@
attach_object_to_object 143@ {handle} 155@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
156@ = create_object_no_offset #CARDBOARDBOX2 {x} 946.846 {y} 2135.2639 {z} 197@
set_object_dynamic 156@ {state} False
set_object_collision 156@ {state} False
set_object_visible 156@ {state} False
150@ = 2
166@ = 0.0
172@ = 0.0
144@ = create_object_no_offset #AB_CARCASS {x} 946.846 {y} 2135.2639 {z} 197@
attach_object_to_object 144@ {handle} 156@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
157@ = create_object_no_offset #AB_HOOK {x} 941.727 {y} 2117.0759 {z} 197@
151@ = 4
167@ = 90.0
173@ = 45.0
set_object_rotation 157@ {x} 0.0 {y} 0.0 {z} 173@
158@ = create_object_no_offset #AB_HOOK {x} 937.228 {y} 2162.24 {z} 197@
152@ = 6
168@ = 0.0
174@ = -45.0
set_object_rotation 158@ {x} 0.0 {y} 0.0 {z} 174@
159@ = create_object_no_offset #AB_HOOK {x} 946.846 {y} 2172.24 {z} 197@
153@ = 2
169@ = 0.0
175@ = 135.0
set_object_rotation 159@ {x} 0.0 {y} 0.0 {z} 175@
245@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 933.6226 {y} 2118.948 {z} 1012.313
set_object_heading 245@ {heading} 65.0793
246@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 933.1715 {y} 2133.366 {z} 1012.767
set_object_heading 246@ {heading} 65.0783
247@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 942.9017 {y} 2155.644 {z} 1013.479
set_object_heading 247@ {heading} 64.6149
248@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 950.8132 {y} 2166.6699 {z} 1012.296
set_object_heading 248@ {heading} 88.701
249@ = create_object_no_offset #CJ_MEAT_2 {x} 942.7145 {y} 2154.6331 {z} 1011.213
set_object_heading 249@ {heading} 73.973
250@ = create_object_no_offset #CJ_MEAT_2 {x} 950.4804 {y} 2155.572 {z} 1011.902
set_object_heading 250@ {heading} 131.2515
251@ = create_object_no_offset #CJ_MEAT_2 {x} 942.3651 {y} 2118.8679 {z} 1011.241
set_object_heading 251@ {heading} 64.6148
252@ = create_object_no_offset #CJ_MEAT_2 {x} 950.6234 {y} 2132.0959 {z} 1011.947
set_object_heading 252@ {heading} 24.2141
253@ = create_object_no_offset #CJ_MEAT_2 {x} 934.5715 {y} 2171.1731 {z} 1011.266
set_object_heading 253@ {heading} 354.6342
202@ = create_object_no_offset #FREEZER_DOOR {x} 951.859 {y} 2121.6479 {z} 1012.094
203@ = create_object_no_offset #SEC_KEYPAD {x} 950.9305 {y} 2114.3479 {z} 1011.522
set_object_heading 203@ {heading} 180.0
freeze_object_position 203@ {state} True
set_object_collision 203@ {state} False
204@ = 0
214@ = 0.0
215@ = 0.001
287@ = -1
206@ = open_sequence_task 
task_achieve_heading -1 {heading} 180.0
task_stand_still -1 {time} 800
close_sequence_task 206@
208@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2119.8169 {z} 197@
209@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2121.6411 {z} 197@
210@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2124.842 {z} 197@
211@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2128.8169 {z} 197@
212@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2131.6411 {z} 197@
213@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2134.842 {z} 197@
140@ = 29
141@ = 0
216@ = 0

:CASINO6_5708
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_5752
111@(216@,29i) = -1
216@ += 1
goto @CASINO6_5708

:CASINO6_5752
53@ = create_char PedType.Mission2 {modelId} 126 {x} 937.3484 {y} 2112.0779 {z} 1010.031
set_char_heading 53@ {heading} 264.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
82@ = add_blip_for_char 53@
change_blip_display 82@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 82@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 53@ {state} True
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 53@ {weaponType} WeaponType.Mp5
set_char_accuracy 53@ {accuracy} 30
set_char_decision_maker 53@ {handleOrTemplate} 34@
111@ = 0
54@ = create_char PedType.Mission2 {modelId} 127 {x} 937.135 {y} 2108.9399 {z} 1010.031
set_char_heading 54@ {heading} 271.5
set_char_health 54@ {health} 200
set_char_max_health 54@ {maxHealth} 200
83@ = add_blip_for_char 54@
change_blip_display 83@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 83@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 54@ {state} True
give_weapon_to_char 54@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 54@ {weaponType} WeaponType.Mp5
set_char_accuracy 54@ {accuracy} 30
set_char_decision_maker 54@ {handleOrTemplate} 34@
112@ = 0
55@ = create_char PedType.Mission2 {modelId} 124 {x} 939.319 {y} 2124.8879 {z} 1010.031
set_char_heading 55@ {heading} 195.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
84@ = add_blip_for_char 55@
change_blip_display 84@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 84@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 55@ {weaponType} 220@ {ammo} 0
set_current_char_weapon 55@ {weaponType} 220@
113@ = 0
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 55@ {sequence} 288@
clear_sequence_task 288@
56@ = create_char PedType.Mission2 {modelId} 125 {x} 937.819 {y} 2137.4871 {z} 1010.03
set_char_heading 56@ {heading} 188.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
85@ = add_blip_for_char 56@
change_blip_display 85@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 85@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 56@ {weaponType} WeaponType.BaseballBat {ammo} 0
set_current_char_weapon 56@ {weaponType} WeaponType.BaseballBat
set_char_accuracy 56@ {accuracy} 35
114@ = 0
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 56@ {sequence} 288@
clear_sequence_task 288@
57@ = create_char PedType.Mission2 {modelId} 127 {x} 948.0 {y} 2124.0 {z} 1010.031
set_char_heading 57@ {heading} 135.0
set_char_health 57@ {health} 200
set_char_max_health 57@ {maxHealth} 200
86@ = add_blip_for_char 57@
change_blip_display 86@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 86@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 57@ {state} True
set_char_accuracy 57@ {accuracy} 30
115@ = 0
254@ = create_object_no_offset 344 {x} 948.0 {y} 2124.0 {z} 1010.031
set_object_dynamic 254@ {state} False
set_object_collision 254@ {state} False
task_pick_up_object 57@ {object} 254@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
256@ = create_fx_system_on_object "FIRE" {object} 254@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.6 {ignoreBoundingChecks} True
288@ = open_sequence_task 
task_stand_still -1 {time} 200
task_play_anim -1 {animationName} "UZI_RELOAD" {animationFile} "UZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 300
task_play_anim -1 {animationName} "WEAPON_START_THROW" {animationFile} "GRENADE" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WEAPON_THROW" {animationFile} "GRENADE" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 500
task_go_to_coord_any_means -1 {x} 944.032 {y} 2119.907 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 288@
perform_sequence_task 57@ {sequence} 288@
clear_sequence_task 288@
58@ = create_char PedType.Mission2 {modelId} 125 {x} 940.7016 {y} 2138.9331 {z} 1010.031
set_char_heading 58@ {heading} 180.0
set_char_health 58@ {health} 200
set_char_max_health 58@ {maxHealth} 200
87@ = add_blip_for_char 58@
change_blip_display 87@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 87@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 58@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 58@ {weaponType} WeaponType.Mp5
set_char_accuracy 58@ {accuracy} 30
116@ = 0
set_lvar_int_to_lvar_int 289@ = 58@
290@ = 0
291@ = 1
293@ = 940.8504
294@ = 2120.21
295@ = 1010.031
296@ = 184.0
gosub @CASINO6_20700
59@ = create_char PedType.Mission2 {modelId} 124 {x} 938.9517 {y} 2132.4031 {z} 1010.031
set_char_heading 59@ {heading} 170.0
set_char_health 59@ {health} 200
set_char_max_health 59@ {maxHealth} 200
88@ = add_blip_for_char 59@
change_blip_display 88@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 88@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 59@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 59@ {weaponType} WeaponType.Mp5
set_char_accuracy 59@ {accuracy} 30
117@ = 0
set_lvar_int_to_lvar_int 289@ = 59@
290@ = 0
291@ = 1
293@ = 933.7762
294@ = 2120.5891
295@ = 1010.031
296@ = 230.0
gosub @CASINO6_20700
60@ = create_char PedType.Mission2 {modelId} 126 {x} 942.4279 {y} 2129.262 {z} 1011.228
set_char_heading 60@ {heading} 180.0
set_char_health 60@ {health} 200
set_char_max_health 60@ {maxHealth} 200
89@ = add_blip_for_char 60@
change_blip_display 89@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 89@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_toggle_duck 60@ {state} True
task_stay_in_same_place 60@ {state} True
give_weapon_to_char 60@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 60@ {weaponType} WeaponType.Mp5
set_char_accuracy 60@ {accuracy} 30
118@ = 0
61@ = create_char PedType.Mission2 {modelId} 125 {x} 941.8554 {y} 2141.05 {z} 1010.03
set_char_heading 61@ {heading} 198.3264
set_char_health 61@ {health} 200
set_char_max_health 61@ {maxHealth} 200
90@ = add_blip_for_char 61@
change_blip_display 90@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 90@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 61@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 61@ {weaponType} WeaponType.Mp5
set_char_accuracy 61@ {accuracy} 30
119@ = 0
set_lvar_int_to_lvar_int 289@ = 61@
290@ = 0
291@ = 1
293@ = 950.5577
294@ = 2126.7339
295@ = 1010.031
296@ = 150.0
gosub @CASINO6_20700
set_fixed_camera_position 946.2746 {y} 2122.199 {z} 1011.263 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 947.4866 {y} 2124.386 {z} 1011.263 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_wanted_level $player1
set_max_wanted_level 0
219@ = 0
wait 0
280@ = 0.2
set_time_scale 280@
TIMERA = 0

:CASINO6_7626
if 
  100 > TIMERA
goto_if_false @CASINO6_7655
wait 0
goto @CASINO6_7626

:CASINO6_7655
do_fade 0 {direction} Fade.In
skip_cutscene_start_internal @CASINO6_9185
274@ = 0.5
mult_float_lvar_by_float_lvar 274@ *= 280@
276@ = -0.0002
mult_float_lvar_by_float_lvar 276@ *= 280@
278@ = 0.8
mult_float_lvar_by_float_lvar 278@ *= 280@
275@ = 0.3
mult_float_lvar_by_float_lvar 275@ *= 280@
277@ = -0.03
mult_float_lvar_by_float_lvar 277@ *= 280@
mult_float_lvar_by_float_lvar 277@ *= 280@
279@ = 0.0
TIMERA = 0

:CASINO6_7783
if 
  500 > TIMERA
goto_if_false @CASINO6_7813
wait 0
goto @CASINO6_7783

:CASINO6_7813
play_fx_system 256@

:CASINO6_7818
if 
  1390 > TIMERA
goto_if_false @CASINO6_7848
wait 0
goto @CASINO6_7818

:CASINO6_7848
if 
  not is_char_dead 57@
goto_if_false @CASINO6_7985
268@, 269@, 270@ = get_object_coordinates 254@
drop_object 57@ {state} False
kill_fx_system 256@
delete_object 254@
219@ = 1
255@ = create_object_no_offset 344 {x} 268@ {y} 269@ {z} 270@
257@ = create_fx_system_on_object "FIRE" {object} 255@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.6 {ignoreBoundingChecks} True
play_fx_system 257@
271@ = 0.0
272@ = 0.0
273@ = 0.0

:CASINO6_7985
198@ = cos 241.0
199@ = sin 241.0
$z = 5000.0

:CASINO6_8015
if 
  1010.031 < $z
goto_if_false @CASINO6_8448
wait 0
add_float_lvar_to_float_lvar 274@ += 276@
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 200@ = 278@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 278@
mult_float_lvar_by_float_lvar 201@ *= 199@
add_float_lvar_to_float_lvar 275@ += 277@
add_float_lvar_to_float_lvar 279@ += 275@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_var_float_to_lvar_float $z = 270@
add_float_lvar_to_float_var $z += 279@
set_object_coordinates 255@ {x} $x {y} $y {z} $z
271@ += 1.0
272@ += 1.0
273@ += 1.0
set_object_rotation 255@ {x} 271@ {y} 272@ {z} 273@
set_lvar_float_to_lvar_float 281@ = 278@
281@ += 1.5
set_lvar_float_to_lvar_float 282@ = 278@
282@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 281@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 281@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_fixed_camera_position $x {y} $y {z} 270@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
if 
  1010.5 >= $z
goto_if_false @CASINO6_8441
freeze_object_position 255@ {state} True

:CASINO6_8441
goto @CASINO6_8015

:CASINO6_8448
kill_fx_system 257@
delete_object 255@
mark_model_as_no_longer_needed 344
219@ = 2
258@ = create_fx_system "EXPLOSION_MOLOTOV" {x} $x {y} $y {z} 1010.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 258@
set_heathaze_effect True
259@ = start_script_fire 940.35 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
219@ = 3
260@ = start_script_fire 941.1 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 4
261@ = start_script_fire 941.5 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 5
262@ = start_script_fire 942.3 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 6
263@ = start_script_fire 942.9 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 7
264@ = start_script_fire 943.65 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
219@ = 8
TIMERA = 0

:CASINO6_8709
if 
  220 > TIMERA
goto_if_false @CASINO6_8950
wait 0
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 281@ = 278@
281@ += 1.5
set_lvar_float_to_lvar_float 282@ = 278@
282@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 281@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 281@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_fixed_camera_position $x {y} $y {z} 270@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
goto @CASINO6_8709

:CASINO6_8950
283@ = 61.0
224@, 225@, 226@ = get_active_camera_coordinates 
TIMERA = 0

:CASINO6_8978
if 
  1000 > TIMERA
goto_if_false @CASINO6_9008
wait 0
goto @CASINO6_8978

:CASINO6_9008
TIMERA = 0

:CASINO6_9015
if 
  1300 > TIMERA
goto_if_false @CASINO6_9148
wait 0
198@ = cos 283@
199@ = sin 283@
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 224@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 225@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
283@ -= 0.25
goto @CASINO6_9015

:CASINO6_9148
TIMERA = 0

:CASINO6_9155
if 
  500 > TIMERA
goto_if_false @CASINO6_9185
wait 0
goto @CASINO6_9155

:CASINO6_9185
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_start 219@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_9524 {caseNum1} 0 {caseLabel1} @CASINO6_9325 {caseNum2} 1 {caseLabel2} @CASINO6_9358 {caseNum3} 2 {caseLabel3} @CASINO6_9373 {caseNum4} 3 {caseLabel4} @CASINO6_9397 {caseNum5} 4 {caseLabel5} @CASINO6_9421 {caseNum6} 5 {caseLabel6} @CASINO6_9445 {caseNum7} 6 {caseLabel7} @CASINO6_9469
switch_continued 7 {caseLabel1} @CASINO6_9493 {caseNum2} -1 {caseLabel2} @CASINO6_9524 {caseNum3} -1 {caseLabel3} @CASINO6_9524 {caseNum4} -1 {caseLabel4} @CASINO6_9524 {caseNum5} -1 {caseLabel5} @CASINO6_9524 {caseNum6} -1 {caseLabel6} @CASINO6_9524 {caseNum7} -1 {caseLabel7} @CASINO6_9524 {caseNum8} -1 {caseLabel8} @CASINO6_9524 {caseNum9} -1 {caseLabel9} @CASINO6_9524

:CASINO6_9325
if 
  not is_char_dead 57@
goto_if_false @CASINO6_9348
drop_object 57@ {state} False

:CASINO6_9348
kill_fx_system 256@
delete_object 254@

:CASINO6_9358
kill_fx_system 257@
delete_object 255@
mark_model_as_no_longer_needed 344

:CASINO6_9373
259@ = start_script_fire 940.35 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2

:CASINO6_9397
260@ = start_script_fire 941.1 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9421
261@ = start_script_fire 941.5 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9445
262@ = start_script_fire 942.3 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9469
263@ = start_script_fire 942.9 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9493
264@ = start_script_fire 943.65 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
goto @CASINO6_9524

:CASINO6_9524
kill_fx_system 258@
clear_help 
print_help 'CAS6_G0'
TIMERA = 0
set_heathaze_effect False
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
switch_entry_exit 'ABATOIR' {state} False
265@ = 0
266@ = 0
267@ = 0
set_time_scale 1.0
if 
  not is_char_dead 53@
goto_if_false @CASINO6_9692
111@ = 0
set_lvar_int_to_lvar_int 289@ = 53@
290@ = 0
293@ = 945.2795
294@ = 2108.657
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930

:CASINO6_9692
if 
  not is_char_dead 54@
goto_if_false @CASINO6_9775
112@ = 0
set_lvar_int_to_lvar_int 289@ = 54@
290@ = 0
293@ = 937.135
294@ = 2108.9399
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930

:CASINO6_9775
if 
  not is_char_dead 55@
goto_if_false @CASINO6_9850
clear_char_tasks 55@
set_char_coordinates 55@ {x} 941.481 {y} 2111.887 {z} 1010.031
set_char_heading 55@ {heading} 260.0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_9850
task_kill_char_on_foot 55@ {target} 39@

:CASINO6_9850
if 
  not is_char_dead 56@
goto_if_false @CASINO6_10009
clear_char_tasks 56@
set_char_coordinates 56@ {x} 939.6515 {y} 2123.3059 {z} 1010.031
set_char_heading 56@ {heading} 187.5
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
if 
  not is_char_dead 39@
goto_if_false @CASINO6_9984
task_kill_char_on_foot -1 {target} 39@

:CASINO6_9984
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 56@ {sequence} 288@
clear_sequence_task 288@

:CASINO6_10009
if 
  not is_char_dead 57@
goto_if_false @CASINO6_10099
clear_char_tasks 57@
set_char_coordinates 57@ {x} 944.032 {y} 2119.907 {z} 1010.031
set_char_heading 57@ {heading} 160.0
task_toggle_duck 57@ {state} True
task_stay_in_same_place 57@ {state} True
give_weapon_to_char 57@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 57@ {weaponType} WeaponType.Mp5
task_kill_char_on_foot 57@ {target} $scplayer

:CASINO6_10099
if 
  not is_char_dead 60@
goto_if_false @CASINO6_10123
task_kill_char_on_foot 60@ {target} $scplayer

:CASINO6_10123
set_lvar_text_label 364@s = 'CAS6_EP'
set_lvar_int_to_constant 318@ = 5620
set_lvar_int_to_var_int 341@ = $scplayer
set_lvar_text_label 366@s = 'CAS6_EQ'
set_lvar_int_to_constant 319@ = 5621
set_lvar_int_to_var_int 342@ = $scplayer
set_lvar_text_label 368@s = 'CAS6_ED'
set_lvar_int_to_constant 320@ = 5640
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_DA'
set_lvar_int_to_constant 321@ = 5636
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 372@s = 'CAS6_DB'
set_lvar_int_to_constant 322@ = 5619
set_lvar_int_to_var_int 345@ = $scplayer
set_lvar_text_label 374@s = 'CAS6_ET'
set_lvar_int_to_constant 323@ = 5651
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_EU'
set_lvar_int_to_constant 324@ = 5624
set_lvar_int_to_var_int 347@ = $scplayer
set_lvar_text_label 378@s = 'CAS6_EA'
set_lvar_int_to_constant 325@ = 5637
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 380@s = 'CAS6_EB'
set_lvar_int_to_constant 326@ = 5638
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_EC'
set_lvar_int_to_constant 327@ = 5639
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 384@s = 'CAS6_GH'
set_lvar_int_to_constant 328@ = 5658
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_GJ'
set_lvar_int_to_constant 329@ = 5659
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 388@s = 'CAS6_GK'
set_lvar_int_to_constant 330@ = 5660
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 390@s = 'CAS6_FM'
set_lvar_int_to_constant 331@ = 5656
set_lvar_int_to_lvar_int 354@ = 39@
222@ = get_game_timer 

:CASINO6_10548
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_11052
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO6_10639
switch_entry_exit 'ABATOIR' {state} True
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_30949

:CASINO6_10639
if 
  227@ == 2
goto_if_false @CASINO6_10664
goto @CASINO6_31097

:CASINO6_10664
221@ = get_game_timer 
set_lvar_int_to_lvar_int 223@ = 221@
sub_int_lvar_from_int_lvar 223@ -= 222@
set_lvar_int_to_lvar_int 222@ = 221@
add_int_lvar_to_int_lvar 42@ += 223@
add_int_lvar_to_int_lvar 51@ += 223@
add_int_lvar_to_int_lvar 163@ += 223@
add_int_lvar_to_int_lvar 207@ += 223@
add_int_lvar_to_int_lvar 304@ += 223@
gosub @CASINO6_11105
gosub @CASINO6_15132
gosub @CASINO6_20083
gosub @CASINO6_21140
gosub @CASINO6_23323
if 
  300@ <> 2
goto_if_false @CASINO6_10793
gosub @CASINO6_25065

:CASINO6_10793
216@ = get_char_health 39@
set_var_int_to_lvar_int $7760 = 216@
$7760 /= 3
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_10987
216@ = 0

:CASINO6_10842
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_10980
if 
  111@(216@,29i) <> -1
goto_if_false @CASINO6_10966
if 
  is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_10966
mark_char_as_no_longer_needed 53@(216@,29i)
remove_blip 82@(216@,29i)
111@(216@,29i) = -1
141@ += 1
if 
  is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_10966
set_char_decision_maker 39@ {handleOrTemplate} 34@

:CASINO6_10966
216@ += 1
goto @CASINO6_10842

:CASINO6_10980
goto @CASINO6_11024

:CASINO6_10987
gosub @CASINO6_26913
284@ = get_area_visible 
if 
  284@ == 0
goto_if_false @CASINO6_11024
goto @CASINO6_27691

:CASINO6_11024
gosub @CASINO6_25242
gosub @CASINO6_24814
gosub @CASINO6_26203
goto @CASINO6_11098

:CASINO6_11052
if 
  227@ == 0
goto_if_false @CASINO6_11091
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'

:CASINO6_11091
goto @CASINO6_31097

:CASINO6_11098
goto @CASINO6_10548

:CASINO6_11105
switch_start 285@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_15130 {caseNum1} 0 {caseLabel1} @CASINO6_11168 {caseNum2} 1 {caseLabel2} @CASINO6_12507 {caseNum3} 2 {caseLabel3} @CASINO6_13579 {caseNum4} 3 {caseLabel4} @CASINO6_14856 {caseNum5} 4 {caseLabel5} @CASINO6_14993 {caseNum6} -1 {caseLabel6} @CASINO6_15130 {caseNum7} -1 {caseLabel7} @CASINO6_15130

:CASINO6_11168
if 
  is_char_in_area_2d $scplayer {leftBottomX} 935.0 {leftBottomY} 2114.0 {rightTopX} 947.0 {rightTopY} 2116.0 {drawSphere} False
goto_if_false @CASINO6_12500
285@ += 1
62@ = create_char PedType.Mission2 {modelId} 124 {x} 944.947 {y} 2146.821 {z} 1010.03
set_char_heading 62@ {heading} 180.0
set_char_health 62@ {health} 200
set_char_max_health 62@ {maxHealth} 200
91@ = add_blip_for_char 62@
change_blip_display 91@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 91@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 62@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 62@ {weaponType} WeaponType.Mp5
set_char_accuracy 62@ {accuracy} 35
120@ = 0
set_lvar_int_to_lvar_int 289@ = 62@
290@ = 0
291@ = 0
293@ = 950.4513
294@ = 2133.938
295@ = 1010.03
296@ = 156.0
gosub @CASINO6_20700
63@ = create_char PedType.Mission2 {modelId} 125 {x} 938.7369 {y} 2146.927 {z} 1010.031
set_char_heading 63@ {heading} 180.0
set_char_health 63@ {health} 200
set_char_max_health 63@ {maxHealth} 200
92@ = add_blip_for_char 63@
change_blip_display 92@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 92@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 63@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 63@ {weaponType} WeaponType.Mp5
set_char_accuracy 63@ {accuracy} 40
121@ = 0
set_lvar_int_to_lvar_int 289@ = 63@
290@ = 0
291@ = 0
293@ = 935.2033
294@ = 2135.9231
295@ = 1010.031
296@ = 195.0
gosub @CASINO6_20700
64@ = create_char PedType.Mission2 {modelId} 126 {x} 938.8906 {y} 2150.719 {z} 1010.031
set_char_heading 64@ {heading} 222.0
set_char_health 64@ {health} 200
set_char_max_health 64@ {maxHealth} 200
93@ = add_blip_for_char 64@
change_blip_display 93@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 93@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 64@ {weaponType} WeaponType.Mp5
set_char_accuracy 64@ {accuracy} 35
122@ = 0
set_lvar_int_to_lvar_int 289@ = 64@
290@ = 0
293@ = 941.6102
294@ = 2144.1331
295@ = 1010.03
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
65@ = create_char PedType.Mission2 {modelId} 125 {x} 951.4207 {y} 2146.3669 {z} 1010.03
set_char_heading 65@ {heading} 148.0
94@ = add_blip_for_char 65@
change_blip_display 94@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 94@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 65@ {weaponType} WeaponType.Mp5
set_char_accuracy 65@ {accuracy} 40
set_char_shoot_rate 65@ {rate} 60
123@ = 0
set_lvar_int_to_lvar_int 289@ = 65@
290@ = 0
291@ = 0
293@ = 946.5566
294@ = 2141.394
295@ = 1010.031
296@ = 180.0
gosub @CASINO6_20700
66@ = create_char PedType.Mission2 {modelId} 126 {x} 932.7236 {y} 2146.7839 {z} 1010.031
set_char_heading 66@ {heading} 220.0
set_char_health 66@ {health} 150
set_char_max_health 66@ {maxHealth} 150
95@ = add_blip_for_char 66@
change_blip_display 95@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 95@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 66@ {weaponType} WeaponType.Mp5
set_char_accuracy 66@ {accuracy} 35
124@ = 0
set_lvar_int_to_lvar_int 289@ = 66@
290@ = 0
291@ = 0
293@ = 937.0684
294@ = 2141.9961
295@ = 1010.031
296@ = 180.0
gosub @CASINO6_20700
if 
  not is_char_dead 53@
goto_if_false @CASINO6_12275
if 
  2 > 41@
goto_if_false @CASINO6_12201
293@ = 940.4404
294@ = 2111.781
295@ = 1010.031
296@ = 350.3034
goto @CASINO6_12241

:CASINO6_12201
293@ = 959.418
294@ = 2104.8669
295@ = 1010.03
296@ = 167.1333

:CASINO6_12241
set_lvar_int_to_lvar_int 289@ = 53@
290@ = 0
291@ = 1
clear_char_tasks 53@
gosub @CASINO6_20815

:CASINO6_12275
if 
  not is_char_dead 54@
goto_if_false @CASINO6_12500
if 
  2 > 41@
goto_if_false @CASINO6_12356
293@ = 943.3311
294@ = 2111.7129
295@ = 1010.031
296@ = 0.2979
goto @CASINO6_12500

:CASINO6_12356
set_lvar_int_to_lvar_int 289@ = 54@
290@ = 0
291@ = 1
clear_char_tasks 54@
if 
  not is_char_dead 53@
goto_if_false @CASINO6_12453
293@ = 943.3311
294@ = 2111.7129
295@ = 1010.031
296@ = 0.2979
gosub @CASINO6_20700
goto @CASINO6_12500

:CASINO6_12453
293@ = 959.418
294@ = 2104.8669
295@ = 1010.03
296@ = 167.1333
gosub @CASINO6_20815

:CASINO6_12500
goto @CASINO6_15130

:CASINO6_12507
if or
  is_char_in_area_2d $scplayer {leftBottomX} 930.0 {leftBottomY} 2120.0 {rightTopX} 952.25 {rightTopY} 2125.0 {drawSphere} False
  is_char_in_area_2d $scplayer {leftBottomX} 952.25 {leftBottomY} 2140.0 {rightTopX} 967.0 {rightTopY} 2147.0 {drawSphere} False
goto_if_false @CASINO6_13572
285@ += 1
67@ = create_char PedType.Mission2 {modelId} 124 {x} 951.3571 {y} 2143.1599 {z} 1010.031
set_char_heading 67@ {heading} 90.0
set_char_health 67@ {health} 200
set_char_max_health 67@ {maxHealth} 200
96@ = add_blip_for_char 67@
change_blip_display 96@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 96@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 67@ {weaponType} WeaponType.BaseballBat {ammo} 3000
125@ = 0
set_lvar_int_to_lvar_int 289@ = 67@
290@ = 0
293@ = 943.5978
294@ = 2138.572
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
68@ = create_char PedType.Mission2 {modelId} 127 {x} 932.6479 {y} 2144.1179 {z} 1010.031
set_char_heading 68@ {heading} 270.0
set_char_health 68@ {health} 200
set_char_max_health 68@ {maxHealth} 200
97@ = add_blip_for_char 68@
change_blip_display 97@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 97@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 68@ {weaponType} WeaponType.BaseballBat {ammo} 3000
126@ = 0
set_lvar_int_to_lvar_int 289@ = 68@
290@ = 0
293@ = 940.223
294@ = 2139.4189
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
69@ = create_char PedType.Mission2 {modelId} 126 {x} 950.7346 {y} 2156.7161 {z} 1010.03
set_char_heading 69@ {heading} 135.0
set_char_health 69@ {health} 150
set_char_max_health 69@ {maxHealth} 150
98@ = add_blip_for_char 69@
change_blip_display 98@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 98@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 69@ {state} True
give_weapon_to_char 69@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 69@ {weaponType} WeaponType.Mp5
set_char_accuracy 69@ {accuracy} 35
set_char_decision_maker 69@ {handleOrTemplate} 35@
task_kill_char_on_foot 69@ {target} $scplayer
127@ = 0
70@ = create_char PedType.Mission2 {modelId} 125 {x} 933.3263 {y} 2160.188 {z} 1010.031
set_char_heading 70@ {heading} 214.0
99@ = add_blip_for_char 70@
change_blip_display 99@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 99@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 70@ {state} True
give_weapon_to_char 70@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 70@ {weaponType} WeaponType.Mp5
set_char_accuracy 70@ {accuracy} 40
set_char_decision_maker 70@ {handleOrTemplate} 35@
task_kill_char_on_foot 70@ {target} $scplayer
128@ = 0
71@ = create_char PedType.Mission2 {modelId} 124 {x} 942.5138 {y} 2165.1001 {z} 1011.228
set_char_heading 71@ {heading} 180.0
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
100@ = add_blip_for_char 71@
change_blip_display 100@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 100@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 71@ {weaponType} WeaponType.Mp5
set_char_accuracy 71@ {accuracy} 35
set_char_shoot_rate 71@ {rate} 60
task_toggle_duck 71@ {state} True
task_kill_char_on_foot 71@ {target} $scplayer
129@ = 0
72@ = create_char PedType.Mission2 {modelId} 125 {x} 950.2886 {y} 2172.3799 {z} 1010.03
set_char_heading 72@ {heading} 163.5
101@ = add_blip_for_char 72@
change_blip_display 101@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 101@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 72@ {state} True
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 72@ {weaponType} WeaponType.Mp5
set_char_accuracy 72@ {accuracy} 40
set_char_decision_maker 72@ {handleOrTemplate} 35@
task_kill_char_on_foot 72@ {target} $scplayer
130@ = 0
73@ = create_char PedType.Mission2 {modelId} 126 {x} 934.5824 {y} 2172.3181 {z} 1010.03
set_char_heading 73@ {heading} 197.0
set_char_health 73@ {health} 150
set_char_max_health 73@ {maxHealth} 150
102@ = add_blip_for_char 73@
change_blip_display 102@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 102@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 73@ {weaponType} WeaponType.Mp5
set_char_accuracy 73@ {accuracy} 35
set_char_decision_maker 73@ {handleOrTemplate} 35@
task_kill_char_on_foot 73@ {target} $scplayer
131@ = 0

:CASINO6_13572
goto @CASINO6_15130

:CASINO6_13579
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.5627 {leftBottomY} 2146.9441 {rightTopX} 932.642 {rightTopY} 2141.283 {drawSphere} False
goto_if_false @CASINO6_14849
285@ += 1
74@ = create_char PedType.Mission2 {modelId} 127 {x} 954.0464 {y} 2157.825 {z} 1010.031
set_char_heading 74@ {heading} 30.0
set_char_health 74@ {health} 150
set_char_max_health 74@ {maxHealth} 150
103@ = add_blip_for_char 74@
change_blip_display 103@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 103@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 74@ {weaponType} WeaponType.Mp5
set_char_accuracy 74@ {accuracy} 40
132@ = 0
set_lvar_int_to_lvar_int 289@ = 74@
290@ = 0
293@ = 944.0997
294@ = 2173.731
295@ = 1010.03
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
75@ = create_char PedType.Mission2 {modelId} 124 {x} 952.8911 {y} 2165.843 {z} 1010.031
set_char_heading 75@ {heading} 180.0
set_char_health 75@ {health} 150
set_char_max_health 75@ {maxHealth} 150
104@ = add_blip_for_char 75@
change_blip_display 104@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 104@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 75@ {weaponType} WeaponType.Mp5
set_char_accuracy 75@ {accuracy} 35
set_char_shoot_rate 75@ {rate} 70
133@ = 0
set_lvar_int_to_lvar_int 289@ = 75@
290@ = 0
293@ = 949.5583
294@ = 2159.8479
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
76@ = create_char PedType.Mission2 {modelId} 126 {x} 953.709 {y} 2167.353 {z} 1010.031
set_char_heading 76@ {heading} 180.0
set_char_health 76@ {health} 150
set_char_max_health 76@ {maxHealth} 150
105@ = add_blip_for_char 76@
change_blip_display 105@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 105@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 76@ {weaponType} WeaponType.Mp5
set_char_accuracy 76@ {accuracy} 40
134@ = 0
set_lvar_int_to_lvar_int 289@ = 76@
290@ = 0
293@ = 947.7441
294@ = 2162.7581
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
77@ = create_char PedType.Mission2 {modelId} 127 {x} 955.1686 {y} 2155.968 {z} 1013.643
set_char_heading 77@ {heading} 25.0
set_char_health 77@ {health} 150
set_char_max_health 77@ {maxHealth} 150
106@ = add_blip_for_char 77@
change_blip_display 106@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 106@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 77@ {state} True
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 77@ {weaponType} WeaponType.Mp5
set_char_accuracy 77@ {accuracy} 35
task_toggle_duck 77@ {state} True
task_kill_char_on_foot 77@ {target} $scplayer
135@ = 0
78@ = create_char PedType.Mission2 {modelId} 124 {x} 957.3302 {y} 2172.3589 {z} 1011.832
set_char_heading 78@ {heading} 88.0
set_char_health 78@ {health} 150
set_char_max_health 78@ {maxHealth} 150
107@ = add_blip_for_char 78@
change_blip_display 107@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 107@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 78@ {state} True
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 78@ {weaponType} WeaponType.Mp5
set_char_accuracy 78@ {accuracy} 40
task_toggle_duck 78@ {state} True
task_kill_char_on_foot 78@ {target} $scplayer
136@ = 0
79@ = create_char PedType.Mission2 {modelId} 126 {x} 955.526 {y} 2175.9839 {z} 1010.031
set_char_heading 79@ {heading} 169.0
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
108@ = add_blip_for_char 79@
change_blip_display 108@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 108@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 79@ {state} True
give_weapon_to_char 79@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 79@ {weaponType} WeaponType.Mp5
set_char_accuracy 79@ {accuracy} 35
task_toggle_duck 79@ {state} True
task_kill_char_on_foot 79@ {target} $scplayer
137@ = 0
80@ = create_char PedType.Mission2 {modelId} 125 {x} 959.0216 {y} 2172.0 {z} 1010.031
set_char_heading 80@ {heading} 283.0
set_char_health 80@ {health} 150
set_char_max_health 80@ {maxHealth} 150
109@ = add_blip_for_char 80@
change_blip_display 109@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 109@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 80@ {state} True
give_weapon_to_char 80@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 80@ {weaponType} WeaponType.Mp5
set_char_accuracy 80@ {accuracy} 40
task_toggle_duck 80@ {state} True
task_kill_char_on_foot 80@ {target} $scplayer
138@ = 0
81@ = create_char PedType.Mission2 {modelId} 126 {x} 958.8845 {y} 2152.1169 {z} 1011.832
set_char_heading 81@ {heading} 0.0
set_char_health 81@ {health} 150
set_char_max_health 81@ {maxHealth} 150
110@ = add_blip_for_char 81@
change_blip_display 110@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 110@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 81@ {state} True
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 81@ {weaponType} WeaponType.Mp5
set_char_accuracy 81@ {accuracy} 35
task_toggle_duck 81@ {state} True
task_kill_char_on_foot 81@ {target} $scplayer
139@ = 0

:CASINO6_14849
goto @CASINO6_15130

:CASINO6_14856
if 
  is_char_in_area_2d $scplayer {leftBottomX} 952.7594 {leftBottomY} 2156.425 {rightTopX} 955.3043 {rightTopY} 2166.761 {drawSphere} False
goto_if_false @CASINO6_14986
285@ += 1
if 
  not is_char_dead 79@
goto_if_false @CASINO6_14986
set_lvar_int_to_lvar_int 289@ = 79@
290@ = 0
291@ = 0
293@ = 960.9915
294@ = 2177.387
295@ = 1010.031
296@ = 107.0
gosub @CASINO6_20700

:CASINO6_14986
goto @CASINO6_15130

:CASINO6_14993
if 
  is_char_in_area_2d $scplayer {leftBottomX} 961.765 {leftBottomY} 2174.8989 {rightTopX} 965.3094 {rightTopY} 2171.5879 {drawSphere} False
goto_if_false @CASINO6_15123
285@ += 1
if 
  not is_char_dead 80@
goto_if_false @CASINO6_15123
set_lvar_int_to_lvar_int 289@ = 80@
290@ = 0
291@ = 0
293@ = 958.909
294@ = 2158.502
295@ = 1010.031
296@ = 0.0
gosub @CASINO6_20700

:CASINO6_15123
goto @CASINO6_15130

:CASINO6_15130
return 

:CASINO6_15132
switch_start 41@ {numCases} 23 {hasDefaultCase} 0 {defaultLabel} @CASINO6_20081 {caseNum1} 0 {caseLabel1} @CASINO6_15325 {caseNum2} 1 {caseLabel2} @CASINO6_15353 {caseNum3} 2 {caseLabel3} @CASINO6_15731 {caseNum4} 3 {caseLabel4} @CASINO6_16162 {caseNum5} 4 {caseLabel5} @CASINO6_16495 {caseNum6} 5 {caseLabel6} @CASINO6_16762 {caseNum7} 6 {caseLabel7} @CASINO6_16905
switch_continued 7 {caseLabel1} @CASINO6_17190 {caseNum2} 8 {caseLabel2} @CASINO6_17240 {caseNum3} 9 {caseLabel3} @CASINO6_17359 {caseNum4} 10 {caseLabel4} @CASINO6_17409 {caseNum5} 11 {caseLabel5} @CASINO6_17499 {caseNum6} 12 {caseLabel6} @CASINO6_17560 {caseNum7} 13 {caseLabel7} @CASINO6_18016 {caseNum8} 14 {caseLabel8} @CASINO6_18135 {caseNum9} 15 {caseLabel9} @CASINO6_18322
switch_continued 16 {caseLabel1} @CASINO6_18444 {caseNum2} 17 {caseLabel2} @CASINO6_18612 {caseNum3} 18 {caseLabel3} @CASINO6_19132 {caseNum4} 19 {caseLabel4} @CASINO6_19236 {caseNum5} 20 {caseLabel5} @CASINO6_19587 {caseNum6} 21 {caseLabel6} @CASINO6_19720 {caseNum7} 22 {caseLabel7} @CASINO6_19806 {caseNum8} -1 {caseLabel8} @CASINO6_20081 {caseNum9} -1 {caseLabel9} @CASINO6_20081

:CASINO6_15325
task_stay_in_same_place 39@ {state} True
task_toggle_duck 39@ {state} True
41@ += 1
goto @CASINO6_20081

:CASINO6_15353
if and
  is_char_dead 55@
  is_char_dead 56@
goto_if_false @CASINO6_15481
288@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 959.2689 {y} 2098.5901 {z} 1010.03 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 255.0
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 300
task_stand_still -1 {time} 300
task_toggle_duck -1 {state} False
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_15724

:CASINO6_15481
if 
  36@ == 1
goto_if_false @CASINO6_15606
288@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 959.2689 {y} 2098.5901 {z} 1010.03 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 255.0
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 300
task_stand_still -1 {time} 300
task_toggle_duck -1 {state} False
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_15724

:CASINO6_15606
if 
  45@ == 0
goto_if_false @CASINO6_15724
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_15680
set_var_int_to_constant $load_sample = 5643
set_var_text_label s$load_text = 'CAS6_EG'
goto @CASINO6_15702

:CASINO6_15680
set_var_int_to_constant $load_sample = 5641
set_var_text_label s$load_text = 'CAS6_EE'

:CASINO6_15702
start_new_script @A_ALAP 2 50 39@ 
45@ = 1

:CASINO6_15724
goto @CASINO6_20081

:CASINO6_15731
286@ = get_sequence_progress 39@
if 
  286@ == 6
goto_if_false @CASINO6_16155
give_weapon_to_char 39@ {weaponType} WeaponType.Extinguisher {ammo} 3000
set_current_char_weapon 39@ {weaponType} WeaponType.Extinguisher
delete_object 43@
set_var_int_to_constant $load_sample = 5644
set_var_text_label s$load_text = 'CAS6_EH'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0
if and
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @CASINO6_15956
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 946.1957 {y} 2112.3721 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
51@ = 0
41@ = 4
goto @CASINO6_16155

:CASINO6_15956
if 
  36@ == 1
goto_if_false @CASINO6_16079
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 946.1957 {y} 2112.3721 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ = 4
goto @CASINO6_16155

:CASINO6_16079
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 0
293@ = 957.9808
294@ = 2100.7141
295@ = 1010.031
296@ = 346.0
gosub @CASINO6_21032
41@ += 1

:CASINO6_16155
goto @CASINO6_20081

:CASINO6_16162
if and
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @CASINO6_16288
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_16488

:CASINO6_16288
if 
  36@ == 1
goto_if_false @CASINO6_16418
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
51@ = 0
goto @CASINO6_16488

:CASINO6_16418
if and
  46@ == 0
  51@ > 500
goto_if_false @CASINO6_16488
set_var_int_to_constant $load_sample = 5642
set_var_text_label s$load_text = 'CAS6_EF'
start_new_script @A_ALAP 2 100 39@ 
46@ = 1

:CASINO6_16488
goto @CASINO6_20081

:CASINO6_16495
if 
  locate_char_on_foot_2d 39@ {x} 945.1309 {y} 2112.7109 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @CASINO6_16646
if 
  161@ == 0
goto_if_false @CASINO6_16565
41@ = 21
goto @CASINO6_16639

:CASINO6_16565
if 
  285@ > 0
goto_if_false @CASINO6_16597
41@ = 6
goto @CASINO6_16639

:CASINO6_16597
if and
  is_char_dead 57@
  is_char_dead 58@
goto_if_false @CASINO6_16632
41@ = 6
goto @CASINO6_16639

:CASINO6_16632
41@ += 1

:CASINO6_16639
goto @CASINO6_16755

:CASINO6_16646
if and
  47@ == 0
  51@ > 2500
goto_if_false @CASINO6_16755
if 
  36@ == 0
goto_if_false @CASINO6_16755
if or
  not is_char_dead 57@
  not is_char_dead 58@
goto_if_false @CASINO6_16755
set_var_int_to_constant $load_sample = 5645
set_var_text_label s$load_text = 'CAS6_EJ'
start_new_script @A_ALAP 2 101 39@ 
47@ = 1

:CASINO6_16755
goto @CASINO6_20081

:CASINO6_16762
if 
  285@ > 0
goto_if_false @CASINO6_16794
41@ += 1
goto @CASINO6_16898

:CASINO6_16794
if and
  is_char_dead 57@
  is_char_dead 58@
goto_if_false @CASINO6_16898
if 
  not locate_char_on_foot_2d 39@ {x} 945.1309 {y} 2112.7109 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @CASINO6_16891
task_go_to_coord_any_means 39@ {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ -= 1
goto @CASINO6_16898

:CASINO6_16891
41@ += 1

:CASINO6_16898
goto @CASINO6_20081

:CASINO6_16905
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_17071
if 
  36@ == 0
goto_if_false @CASINO6_17071
if 
  is_char_in_area_3d $scplayer {leftBottomX} 930.0 {leftBottomY} 2114.0 {leftBottomZ} 1010.0 {rightTopX} 966.0 {rightTopY} 2095.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_17034
set_var_int_to_constant $load_sample = 5646
set_var_text_label s$load_text = 'CAS6_EK'
start_new_script @A_ALAP 2 101 39@ 
goto @CASINO6_17071

:CASINO6_17034
set_var_int_to_constant $load_sample = 5647
set_var_text_label s$load_text = 'CAS6_EL'
start_new_script @A_ALAP 2 101 39@ 

:CASINO6_17071
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 264@
  not is_script_fire_extinguished 263@
goto_if_false @CASINO6_17168
clear_char_tasks 39@
288@ = open_sequence_task 
task_shoot_at_coord -1 {x} 943.2 {y} 2114.0 {z} 1011.0 {time} 3000
task_stand_still -1 {time} 500
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
goto @CASINO6_17176

:CASINO6_17168
42@ = 10000

:CASINO6_17176
41@ += 1
goto @CASINO6_20081

:CASINO6_17190
if 
  42@ > 2850
goto_if_false @CASINO6_17233
remove_script_fire 264@
remove_script_fire 263@
265@ = 1
41@ += 1

:CASINO6_17233
goto @CASINO6_20081

:CASINO6_17240
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 262@
  not is_script_fire_extinguished 261@
goto_if_false @CASINO6_17337
clear_char_tasks 39@
288@ = open_sequence_task 
task_shoot_at_coord -1 {x} 941.9 {y} 2114.0 {z} 1011.0 {time} 2000
task_stand_still -1 {time} 500
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
goto @CASINO6_17345

:CASINO6_17337
42@ = 10000

:CASINO6_17345
41@ += 1
goto @CASINO6_20081

:CASINO6_17359
if 
  42@ > 1250
goto_if_false @CASINO6_17402
remove_script_fire 262@
remove_script_fire 261@
266@ = 1
41@ += 1

:CASINO6_17402
goto @CASINO6_20081

:CASINO6_17409
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 260@
  not is_script_fire_extinguished 259@
goto_if_false @CASINO6_17477
clear_char_tasks 39@
task_shoot_at_coord 39@ {x} 940.7 {y} 2114.0 {z} 1011.0 {time} 3000
goto @CASINO6_17485

:CASINO6_17477
42@ = 10000

:CASINO6_17485
41@ += 1
goto @CASINO6_20081

:CASINO6_17499
if 
  42@ > 2850
goto_if_false @CASINO6_17553
remove_script_fire 260@
remove_script_fire 259@
267@ = 1
300@ = 2
set_heathaze_effect False
41@ += 1

:CASINO6_17553
goto @CASINO6_20081

:CASINO6_17560
if 
  285@ > 0
goto_if_false @CASINO6_17884
if 
  285@ == 1
goto_if_false @CASINO6_17678
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_17664
clear_char_tasks 39@
task_go_to_coord_any_means 39@ {x} 960.0 {y} 2110.0 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ = 15
goto @CASINO6_17671

:CASINO6_17664
41@ = 13

:CASINO6_17671
goto @CASINO6_17815

:CASINO6_17678
if 
  285@ == 2
goto_if_false @CASINO6_17778
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_17764
clear_char_tasks 39@
task_go_to_coord_any_means 39@ {x} 960.0 {y} 2110.0 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ = 15
goto @CASINO6_17771

:CASINO6_17764
41@ = 13

:CASINO6_17771
goto @CASINO6_17815

:CASINO6_17778
if 
  285@ > 2
goto_if_false @CASINO6_17815
clear_char_tasks 39@
41@ = 19
goto @CASINO6_20081

:CASINO6_17815
if 
  36@ == 0
goto_if_false @CASINO6_17877
set_var_int_to_constant $load_sample = 5652
set_var_text_label s$load_text = 'CAS6_FA'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0

:CASINO6_17877
goto @CASINO6_18009

:CASINO6_17884
if 
  48@ == 0
goto_if_false @CASINO6_18009
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_17958
set_var_int_to_constant $load_sample = 5648
set_var_text_label s$load_text = 'CAS6_EM'
goto @CASINO6_17980

:CASINO6_17958
set_var_int_to_constant $load_sample = 5649
set_var_text_label s$load_text = 'CAS6_EN'

:CASINO6_17980
start_new_script @A_ALAP 2 100 39@ 
48@ = 1
51@ = 0

:CASINO6_18009
goto @CASINO6_20081

:CASINO6_18016
205@ = add_attractor 950.9462 {y} 2114.9719 {z} 1011.5 {angle} 180.0 {_p5} 15.0 {sequence} 206@
add_pedtype_as_attractor_user 205@ {pedType} PedType.Mission1
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_go_to_coord_any_means -1 {x} 950.2319 {y} 2115.927 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_use_attractor -1 {attractor} 205@
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_20081

:CASINO6_18135
if 
  is_char_at_scripted_attractor 39@ {handle} 205@
goto_if_false @CASINO6_18315
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_18206
214@ = 0.0
215@ = 0.0005
204@ = 3

:CASINO6_18206
if 
  36@ == 1
goto_if_false @CASINO6_18231
51@ = 0

:CASINO6_18231
set_char_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
clear_attractor 205@
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_18308
41@ += 1
goto @CASINO6_18315

:CASINO6_18308
41@ = 19

:CASINO6_18315
goto @CASINO6_20081

:CASINO6_18322
if 
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_18384
41@ += 1
goto @CASINO6_18437

:CASINO6_18384
286@ = get_script_task_status 39@ {taskId} 1539
if 
  is_int_lvar_equal_to_constant 286@ == 7
goto_if_false @CASINO6_18437
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1

:CASINO6_18437
goto @CASINO6_20081

:CASINO6_18444
286@ = get_script_task_status 39@ {taskId} 1539
if 
  is_int_lvar_equal_to_constant 286@ == 7
goto_if_false @CASINO6_18605
if 
  locate_char_on_foot_2d 39@ {x} 963.4875 {y} 2119.283 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @CASINO6_18581
clear_char_tasks 39@
288@ = open_sequence_task 
task_achieve_heading -1 {heading} 104.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_18605

:CASINO6_18581
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1

:CASINO6_18605
goto @CASINO6_20081

:CASINO6_18612
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_19118
if 
  285@ >= 2
goto_if_false @CASINO6_19111
if or
  not is_char_dead 67@
  not is_char_dead 68@
goto_if_false @CASINO6_18690
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18690
if or
  not is_char_dead 57@
  not is_char_dead 58@
  not is_char_dead 59@
  not is_char_dead 60@
  not is_char_dead 61@
  not is_char_dead 62@
goto_if_false @CASINO6_18745
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18745
if or
  not is_char_dead 63@
  not is_char_dead 64@
  not is_char_dead 54@
goto_if_false @CASINO6_18785
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18785
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 1
if or
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @CASINO6_18882
293@ = 942.1362
294@ = 2116.9771
295@ = 1010.031
296@ = 310.9558
41@ = 18
goto @CASINO6_18929

:CASINO6_18882
293@ = 944.9211
294@ = 2138.5659
295@ = 1010.031
296@ = 49.7997
41@ = 19

:CASINO6_18929
gosub @CASINO6_21032
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19010
if 
  298@ == 1
goto_if_false @CASINO6_19010
set_var_int_to_constant $load_sample = 5623
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19010
if 
  49@ == 0
goto_if_false @CASINO6_19104
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_19076
317@ = 2
316@ = 3
goto @CASINO6_19090

:CASINO6_19076
317@ = 4
316@ = 5

:CASINO6_19090
TIMERA = 0
49@ = 1

:CASINO6_19104
51@ = 0

:CASINO6_19111
goto @CASINO6_19125

:CASINO6_19118
gosub @CASINO6_26055

:CASINO6_19125
goto @CASINO6_20081

:CASINO6_19132
if and
  is_char_dead 65@
  is_char_dead 66@
goto_if_false @CASINO6_19229
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 1
293@ = 944.9211
294@ = 2138.5659
295@ = 1010.031
296@ = 49.7997
gosub @CASINO6_21032
41@ += 1

:CASINO6_19229
goto @CASINO6_20081

:CASINO6_19236
if 
  285@ > 2
goto_if_false @CASINO6_19580
if or
  not is_char_dead 69@
  not is_char_dead 70@
  not is_char_dead 71@
  not is_char_dead 72@
  not is_char_dead 73@
  not is_char_dead 74@
goto_if_false @CASINO6_19309
goto @CASINO6_20081
goto @CASINO6_19580

:CASINO6_19309
if or
  not is_char_dead 75@
  not is_char_dead 76@
goto_if_false @CASINO6_19344
goto @CASINO6_20081
goto @CASINO6_19580

:CASINO6_19344
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
if or
  not is_char_dead 77@
  not is_char_dead 78@
  not is_char_dead 79@
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @CASINO6_19456
291@ = 1
293@ = 949.2078
294@ = 2153.6479
295@ = 1010.03
296@ = 0.0
41@ = 20
goto @CASINO6_19510

:CASINO6_19456
291@ = 0
293@ = 965.2232
294@ = 2156.2939
295@ = 1010.031
296@ = 22.0
41@ = 30

:CASINO6_19510
gosub @CASINO6_21032
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19573
set_var_int_to_constant $load_sample = 5623
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19573
51@ = 0

:CASINO6_19580
goto @CASINO6_20081

:CASINO6_19587
if or
  not is_char_dead 77@
  not is_char_dead 78@
  not is_char_dead 79@
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @CASINO6_19637
goto @CASINO6_20081
goto @CASINO6_19713

:CASINO6_19637
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 0
293@ = 965.2232
294@ = 2156.2939
295@ = 1010.031
296@ = 22.0
gosub @CASINO6_21032
41@ = 30

:CASINO6_19713
goto @CASINO6_20081

:CASINO6_19720
clear_char_tasks 39@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_achieve_heading -1 {heading} 0.0
task_stand_still -1 {time} 500
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} True
close_sequence_task 288@
perform_sequence_task 39@ {sequence} 288@
clear_sequence_task 288@
41@ += 1
goto @CASINO6_20081

:CASINO6_19806
286@ = get_sequence_progress 39@
if 
  286@ == 3
goto_if_false @CASINO6_20074
if 
  161@ == 0
goto_if_false @CASINO6_20067
177@ = 0.0001
161@ = 1
163@ = 0
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStart
if 
  36@ == 0
goto_if_false @CASINO6_20067
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_20060
if 
  is_char_in_area_3d $scplayer {leftBottomX} 930.0 {leftBottomY} 2114.25 {leftBottomZ} 1010.0 {rightTopX} 966.0 {rightTopY} 2095.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_20023
set_var_int_to_constant $load_sample = 5650
set_var_text_label s$load_text = 'CAS6_EO'
start_new_script @A_ALAP 2 100 39@ 
goto @CASINO6_20060

:CASINO6_20023
set_var_int_to_constant $load_sample = 5622
set_var_text_label s$load_text = 'CAS6_ER'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_20060
51@ = 0

:CASINO6_20067
41@ = 4

:CASINO6_20074
goto @CASINO6_20081

:CASINO6_20081
return 

:CASINO6_20083
if 
  287@ <> -2
goto_if_false @CASINO6_20229
if 
  285@ >= 2
goto_if_false @CASINO6_20229
if 
  204@ == 0
goto_if_false @CASINO6_20229
if or
  is_char_in_area_3d $scplayer {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_20229
gosub @CASINO6_20231

:CASINO6_20229
return 

:CASINO6_20231
if 
  287@ == -1
goto_if_false @CASINO6_20486
if 
  not is_char_dead 67@
goto_if_false @CASINO6_20279
287@ = 14
goto @CASINO6_20316

:CASINO6_20279
if 
  not is_char_dead 68@
goto_if_false @CASINO6_20309
287@ = 15
goto @CASINO6_20316

:CASINO6_20309
287@ = -2

:CASINO6_20316
if 
  287@ <> -2
goto_if_false @CASINO6_20479
if 
  204@ == 0
goto_if_false @CASINO6_20472
205@ = add_attractor 950.9462 {y} 2114.9719 {z} 1011.5 {angle} 180.0 {_p5} 15.0 {sequence} 206@
add_pedtype_as_attractor_user 205@ {pedType} PedType.Mission2
clear_char_tasks 53@(287@,29i)
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_go_to_coord_any_means -1 {x} 950.2319 {y} 2115.927 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_use_attractor -1 {attractor} 205@
close_sequence_task 288@
perform_sequence_task 53@(287@,29i) {sequence} 288@
clear_sequence_task 288@
goto @CASINO6_20479

:CASINO6_20472
287@ = -1

:CASINO6_20479
goto @CASINO6_20698

:CASINO6_20486
if 
  is_char_dead 53@(287@,29i)
goto_if_false @CASINO6_20525
clear_attractor 205@
287@ = -1
goto @CASINO6_20698

:CASINO6_20525
if 
  is_char_at_scripted_attractor 53@(287@,29i) {handle} 205@
goto_if_false @CASINO6_20640
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_20600
214@ = 0.0
215@ = -0.0005
204@ = 1

:CASINO6_20600
clear_char_tasks 53@(287@,29i)
set_char_decision_maker 53@(287@,29i) {handleOrTemplate} 35@
clear_attractor 205@
287@ = -1
goto @CASINO6_20698

:CASINO6_20640
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_20698
clear_char_tasks 53@(287@,29i)
set_char_decision_maker 53@(287@,29i) {handleOrTemplate} 35@
clear_attractor 205@
287@ = -1

:CASINO6_20698
return 

:CASINO6_20700
clear_char_tasks 289@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 293@ {y} 294@ {z} 295@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 291@
task_stay_in_same_place -1 {state} True
if 
  296@ <> -1.0
goto_if_false @CASINO6_20781
task_achieve_heading -1 {heading} 296@

:CASINO6_20781
task_kill_char_on_foot -1 {target} $scplayer
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 289@ {sequence} 288@
clear_sequence_task 288@
return 

:CASINO6_20815
clear_char_tasks 289@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 293@ {y} 294@ {z} 295@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 291@
task_stay_in_same_place -1 {state} True
if 
  296@ <> -1.0
goto_if_false @CASINO6_20896
task_achieve_heading -1 {heading} 296@

:CASINO6_20896
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 289@ {sequence} 288@
clear_sequence_task 288@
return 

:CASINO6_20930
clear_char_tasks 289@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} 290@
task_stay_in_same_place -1 {state} False
if 
  293@ <> -1.0
goto_if_false @CASINO6_20998
task_go_to_coord_any_means -1 {x} 293@ {y} 294@ {z} 295@ {speed} MoveState.Run {vehicle} -1

:CASINO6_20998
task_kill_char_on_foot -1 {target} 292@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 289@ {sequence} 288@
clear_sequence_task 288@
return 

:CASINO6_21032
clear_char_tasks 289@
288@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 293@ {y} 294@ {z} 295@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 291@
task_stay_in_same_place -1 {state} True
if 
  296@ <> -1.0
goto_if_false @CASINO6_21113
task_achieve_heading -1 {heading} 296@

:CASINO6_21113
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 288@
perform_sequence_task 289@ {sequence} 288@
clear_sequence_task 288@
return 

:CASINO6_21140
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @CASINO6_21172
177@ = 0.0001
goto @CASINO6_21197

:CASINO6_21172
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @CASINO6_21197
177@ = -0.0001

:CASINO6_21197
add_timed_float_lvar_to_float_lvar 176@ +=@ 177@
if 
  176@ > 0.06
goto_if_false @CASINO6_21243
176@ = 0.06
goto @CASINO6_21274

:CASINO6_21243
if 
  0.0 > 176@
goto_if_false @CASINO6_21274
176@ = 0.0

:CASINO6_21274
if or
  161@ == 1
  176@ > 0.0
goto_if_false @CASINO6_23141
216@ = 0

:CASINO6_21309
if 
  6 > 216@
goto_if_false @CASINO6_23141
$x, $y, $z = get_object_coordinates 154@(216@,6i)
set_lvar_int_to_lvar_int 217@ = 148@(216@,6i)
switch_start 217@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_23109 {caseNum1} 0 {caseLabel1} @CASINO6_21485 {caseNum2} 1 {caseLabel2} @CASINO6_21541 {caseNum3} 2 {caseLabel3} @CASINO6_21891 {caseNum4} 3 {caseLabel4} @CASINO6_21947 {caseNum5} 4 {caseLabel5} @CASINO6_22297 {caseNum6} 5 {caseLabel6} @CASINO6_22353 {caseNum7} 6 {caseLabel7} @CASINO6_22703
switch_continued 7 {caseLabel1} @CASINO6_22759 {caseNum2} -1 {caseLabel2} @CASINO6_23109 {caseNum3} -1 {caseLabel3} @CASINO6_23109 {caseNum4} -1 {caseLabel4} @CASINO6_23109 {caseNum5} -1 {caseLabel5} @CASINO6_23109 {caseNum6} -1 {caseLabel6} @CASINO6_23109 {caseNum7} -1 {caseLabel7} @CASINO6_23109 {caseNum8} -1 {caseLabel8} @CASINO6_23109 {caseNum9} -1 {caseLabel9} @CASINO6_23109

:CASINO6_21485
if 
  is_float_var_greater_or_equal_to_float_lvar $x >= 181@(217@,8f)
goto_if_false @CASINO6_21526
148@(216@,6i) += 1
goto @CASINO6_21541

:CASINO6_21526
add_float_lvar_to_float_var $x += 176@
goto @CASINO6_23109

:CASINO6_21541
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21606
164@(216@,6f) = 0.0
sub_float_lvar_from_float_var $y -= 176@
148@(216@,6i) += 1
goto @CASINO6_21884

:CASINO6_21606
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21673
164@(216@,6f) = 180.0

:CASINO6_21673
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_21731
170@(216@,6f) += 360.0
goto @CASINO6_21770

:CASINO6_21731
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_21770
170@(216@,6f) += -360.0

:CASINO6_21770
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 181@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 190@
add_float_lvar_to_float_var $y += 201@

:CASINO6_21884
goto @CASINO6_23109

:CASINO6_21891
if 
  is_float_lvar_greater_or_equal_to_float_var 189@(217@,8f) >= $y
goto_if_false @CASINO6_21932
148@(216@,6i) += 1
goto @CASINO6_21947

:CASINO6_21932
sub_float_lvar_from_float_var $y -= 176@
goto @CASINO6_23109

:CASINO6_21947
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22012
164@(216@,6f) = 90.0
sub_float_lvar_from_float_var $x -= 176@
148@(216@,6i) += 1
goto @CASINO6_22290

:CASINO6_22012
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22079
164@(216@,6f) = -90.0

:CASINO6_22079
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22137
170@(216@,6f) += 360.0
goto @CASINO6_22176

:CASINO6_22137
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22176
170@(216@,6f) += -360.0

:CASINO6_22176
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 184@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 191@
add_float_lvar_to_float_var $y += 201@

:CASINO6_22290
goto @CASINO6_23109

:CASINO6_22297
if 
  is_float_lvar_greater_or_equal_to_float_var 181@(217@,8f) >= $x
goto_if_false @CASINO6_22338
148@(216@,6i) += 1
goto @CASINO6_22353

:CASINO6_22338
sub_float_lvar_from_float_var $x -= 176@
goto @CASINO6_23109

:CASINO6_22353
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22418
164@(216@,6f) = 0.0
add_float_lvar_to_float_var $y += 176@
148@(216@,6i) += 1
goto @CASINO6_22696

:CASINO6_22418
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22485
164@(216@,6f) = 180.0

:CASINO6_22485
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22543
170@(216@,6f) += 360.0
goto @CASINO6_22582

:CASINO6_22543
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22582
170@(216@,6f) += -360.0

:CASINO6_22582
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 185@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 194@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_22696
goto @CASINO6_23109

:CASINO6_22703
if 
  is_float_var_greater_or_equal_to_float_lvar $y >= 189@(217@,8f)
goto_if_false @CASINO6_22744
148@(216@,6i) += 1
goto @CASINO6_22759

:CASINO6_22744
add_float_lvar_to_float_var $y += 176@
goto @CASINO6_23109

:CASINO6_22759
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22824
164@(216@,6f) = 90.0
add_float_lvar_to_float_var $x += 176@
148@(216@,6i) = 0
goto @CASINO6_23102

:CASINO6_22824
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22891
164@(216@,6f) = -90.0

:CASINO6_22891
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22949
170@(216@,6f) += 360.0
goto @CASINO6_22988

:CASINO6_22949
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22988
170@(216@,6f) += -360.0

:CASINO6_22988
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 188@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 195@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_23102
goto @CASINO6_23109

:CASINO6_23109
set_object_coordinates_and_velocity 154@(216@,6i) {x} $x {y} $y {z} $z
216@ += 1
goto @CASINO6_21309

:CASINO6_23141
if 
  163@ > 500
goto_if_false @CASINO6_23321
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_23321
if 
  is_char_in_area_2d $scplayer {leftBottomX} 945.7303 {leftBottomY} 2113.197 {rightTopX} 947.412 {rightTopY} 2112.3191 {drawSphere} False
goto_if_false @CASINO6_23321
if 
  161@ == 0
goto_if_false @CASINO6_23277
177@ = 0.0001
161@ = 1
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStart
goto @CASINO6_23314

:CASINO6_23277
177@ = -0.0001
161@ = 0
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStop

:CASINO6_23314
163@ = 0

:CASINO6_23321
return 

:CASINO6_23323
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_24812 {caseNum1} 0 {caseLabel1} @CASINO6_23386 {caseNum2} 1 {caseLabel2} @CASINO6_23475 {caseNum3} 2 {caseLabel3} @CASINO6_24099 {caseNum4} 3 {caseLabel4} @CASINO6_24630 {caseNum5} -1 {caseLabel5} @CASINO6_24812 {caseNum6} -1 {caseLabel6} @CASINO6_24812 {caseNum7} -1 {caseLabel7} @CASINO6_24812

:CASINO6_23386
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_23468
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.954 {leftBottomY} 2115.7439 {rightTopX} 949.9608 {rightTopY} 2114.699 {drawSphere} False
goto_if_false @CASINO6_23468
214@ = 0.0
215@ = -0.0005
204@ += 1

:CASINO6_23468
goto @CASINO6_24812

:CASINO6_23475
if 
  297@ == 0
goto_if_false @CASINO6_23508
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerOpen
297@ = 1

:CASINO6_23508
$x, $y, $z = get_object_coordinates 202@
set_lvar_float_to_var_float 299@ = $y
299@ -= 2.5
if 
  locate_char_on_foot_2d $scplayer {x} $x {y} 299@ {xRadius} 0.8 {yRadius} 0.8 {drawSphere} True
goto_if_false @CASINO6_23581
goto @CASINO6_24812

:CASINO6_23581
add_float_lvar_to_float_lvar 214@ += 215@
if 
  -0.4 > 214@
goto_if_false @CASINO6_23620
214@ = -0.4

:CASINO6_23620
add_float_lvar_to_float_var $y += 214@
if 
  2117.448 >= $y
goto_if_false @CASINO6_24078
$y = 2117.448
204@ += 1
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerClose
297@ = 0
if 
  is_char_in_area_3d $scplayer {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_23750
36@ = 1
207@ = 0
goto @CASINO6_23757

:CASINO6_23750
36@ = 0

:CASINO6_23757
if 
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_23930
44@ = 1
207@ = 0
if 
  36@ == 1
goto_if_false @CASINO6_23865
227@ = 2
set_lvar_text_label 228@s = 'CAS6_F2'
goto @CASINO6_23923

:CASINO6_23865
set_var_int_to_constant $load_sample = 5653
set_var_text_label s$load_text = 'CAS6_FC'
start_new_script @A_ALAP 2 102 39@ 
51@ = 0
301@ = 1
TIMERB = 0

:CASINO6_23923
goto @CASINO6_24071

:CASINO6_23930
if 
  36@ == 1
goto_if_false @CASINO6_24039
set_var_int_to_constant $load_sample = 5627
set_var_text_label s$load_text = 'CAS6_FP'
start_new_script @A_ALAP 1 102 $scplayer 
51@ = 0
set_char_proofs 39@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  41@ >= 15
goto_if_false @CASINO6_24032
41@ = 13

:CASINO6_24032
goto @CASINO6_24064

:CASINO6_24039
if 
  41@ == 15
goto_if_false @CASINO6_24064
41@ = 13

:CASINO6_24064
44@ = 0

:CASINO6_24071
goto @CASINO6_24078

:CASINO6_24078
set_object_coordinates_and_velocity 202@ {x} $x {y} $y {z} $z
goto @CASINO6_24812

:CASINO6_24099
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_24623
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.954 {leftBottomY} 2115.7439 {rightTopX} 949.9608 {rightTopY} 2114.699 {drawSphere} False
goto_if_false @CASINO6_24623
214@ = 0.0
215@ = 0.0005
204@ += 1
if 
  44@ == 1
goto_if_false @CASINO6_24609
if or
  not is_char_dead 67@
  not is_char_dead 68@
goto_if_false @CASINO6_24278
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24278
if or
  not is_char_dead 57@
  not is_char_dead 58@
  not is_char_dead 59@
  not is_char_dead 60@
  not is_char_dead 61@
  not is_char_dead 62@
goto_if_false @CASINO6_24377
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24377
if or
  not is_char_dead 63@
  not is_char_dead 64@
  not is_char_dead 54@
goto_if_false @CASINO6_24461
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24461
52@ = generate_random_int_in_range 0 {max} 151
if 
  50 > 52@
goto_if_false @CASINO6_24518
set_var_int_to_constant $load_sample = 5677
set_var_text_label s$load_text = 'CAS6_LC'
goto @CASINO6_24587

:CASINO6_24518
if 
  52@ > 100
goto_if_false @CASINO6_24565
set_var_int_to_constant $load_sample = 5655
set_var_text_label s$load_text = 'CAS6_FK'
goto @CASINO6_24587

:CASINO6_24565
set_var_int_to_constant $load_sample = 5676
set_var_text_label s$load_text = 'CAS6_LB'

:CASINO6_24587
start_new_script @A_ALAP 2 102 39@ 
51@ = 0

:CASINO6_24609
36@ = 0
44@ = 0

:CASINO6_24623
goto @CASINO6_24812

:CASINO6_24630
if 
  297@ == 0
goto_if_false @CASINO6_24663
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerOpen
297@ = 1

:CASINO6_24663
$x, $y, $z = get_object_coordinates 202@
add_float_lvar_to_float_lvar 214@ += 215@
if 
  214@ > 0.4
goto_if_false @CASINO6_24716
214@ = 0.4

:CASINO6_24716
add_float_lvar_to_float_var $y += 214@
if 
  $y >= 2121.6479
goto_if_false @CASINO6_24777
$y = 2121.6479
204@ = 0
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerClose
297@ = 0

:CASINO6_24777
set_object_coordinates_and_velocity 202@ {x} $x {y} $y {z} $z
36@ = 0
44@ = 0
goto @CASINO6_24812

:CASINO6_24812
return 

:CASINO6_24814
if 
  36@ == 1
goto_if_false @CASINO6_24942
if 
  207@ > 1500
goto_if_false @CASINO6_24935
216@ = get_char_health $scplayer
216@ -= 3
if 
  0 >= 216@
goto_if_false @CASINO6_24919
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F3'
set_char_health $scplayer {health} 0
goto @CASINO6_24928

:CASINO6_24919
damage_char $scplayer {amount} 3 {damageArmour} False

:CASINO6_24928
207@ = 0

:CASINO6_24935
goto @CASINO6_25063

:CASINO6_24942
if 
  44@ == 1
goto_if_false @CASINO6_25063
if 
  207@ > 1500
goto_if_false @CASINO6_25063
216@ = get_char_health 39@
216@ -= 6
if 
  0 >= 216@
goto_if_false @CASINO6_25047
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F1'
set_char_health 39@ {health} 0
goto @CASINO6_25056

:CASINO6_25047
damage_char 39@ {amount} 6 {damageArmour} False

:CASINO6_25056
207@ = 0

:CASINO6_25063
return 

:CASINO6_25065
switch_start 300@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_25240 {caseNum1} 0 {caseLabel1} @CASINO6_25128 {caseNum2} 1 {caseLabel2} @CASINO6_25184 {caseNum3} -1 {caseLabel3} @CASINO6_25240 {caseNum4} -1 {caseLabel4} @CASINO6_25240 {caseNum5} -1 {caseLabel5} @CASINO6_25240 {caseNum6} -1 {caseLabel6} @CASINO6_25240 {caseNum7} -1 {caseLabel7} @CASINO6_25240

:CASINO6_25128
if 
  locate_char_on_foot_2d $scplayer {x} 941.5 {y} 2114.0 {xRadius} 9.0 {yRadius} 9.0 {drawSphere} False
goto_if_false @CASINO6_25177
set_heathaze_effect True
300@ += 1

:CASINO6_25177
goto @CASINO6_25240

:CASINO6_25184
if 
  not locate_char_on_foot_2d $scplayer {x} 941.5 {y} 2114.0 {xRadius} 11.0 {yRadius} 11.0 {drawSphere} False
goto_if_false @CASINO6_25233
set_heathaze_effect False
300@ -= 1

:CASINO6_25233
goto @CASINO6_25240

:CASINO6_25240
return 

:CASINO6_25242
switch_start 317@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO6_26053 {caseNum1} 0 {caseLabel1} @CASINO6_25370 {caseNum2} 1 {caseLabel2} @CASINO6_25445 {caseNum3} 2 {caseLabel3} @CASINO6_25492 {caseNum4} 3 {caseLabel4} @CASINO6_25614 {caseNum5} 4 {caseLabel5} @CASINO6_25661 {caseNum6} 5 {caseLabel6} @CASINO6_25783 {caseNum7} 6 {caseLabel7} @CASINO6_25830
switch_continued 7 {caseLabel1} @CASINO6_25931 {caseNum2} 8 {caseLabel2} @CASINO6_25978 {caseNum3} -1 {caseLabel3} @CASINO6_26053 {caseNum4} -1 {caseLabel4} @CASINO6_26053 {caseNum5} -1 {caseLabel5} @CASINO6_26053 {caseNum6} -1 {caseLabel6} @CASINO6_26053 {caseNum7} -1 {caseLabel7} @CASINO6_26053 {caseNum8} -1 {caseLabel8} @CASINO6_26053 {caseNum9} -1 {caseLabel9} @CASINO6_26053

:CASINO6_25370
if 
  3 > 316@
goto_if_false @CASINO6_25445
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25445
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25485
317@ = 0
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25485
goto @CASINO6_26053

:CASINO6_25492
if 
  5 > 316@
goto_if_false @CASINO6_25593
if 
  TIMERA > 2500
goto_if_false @CASINO6_25586
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25586
goto @CASINO6_25614

:CASINO6_25593
TIMERA = 0
317@ = 6
316@ = 7

:CASINO6_25614
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25654
317@ = 2
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25654
goto @CASINO6_26053

:CASINO6_25661
if 
  7 > 316@
goto_if_false @CASINO6_25762
if 
  TIMERA > 2500
goto_if_false @CASINO6_25755
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25755
goto @CASINO6_25783

:CASINO6_25762
TIMERA = 0
317@ = 6
316@ = 7

:CASINO6_25783
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25823
317@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25823
goto @CASINO6_26053

:CASINO6_25830
if 
  13 > 316@
goto_if_false @CASINO6_25931
if 
  TIMERA > 7000
goto_if_false @CASINO6_25931
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1
TIMERA = 0

:CASINO6_25931
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25971
317@ = 6
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25971
goto @CASINO6_26053

:CASINO6_25978
if 
  TIMERA > 9000
goto_if_false @CASINO6_26053
set_var_int_to_lvar_int $load_sample = 331@
set_var_text_label s$load_text = 390@s
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1
TIMERA = 0

:CASINO6_26053
return 

:CASINO6_26055
if and
  301@ == 1
  TIMERB > 20000
goto_if_false @CASINO6_26201
if 
  302@ == 0
goto_if_false @CASINO6_26150
set_var_int_to_constant $load_sample = 5654
set_var_text_label s$load_text = 'CAS6_FF'
start_new_script @A_ALAP 2 75 39@ 
302@ = 1
goto @CASINO6_26194

:CASINO6_26150
set_var_int_to_constant $load_sample = 5675
set_var_text_label s$load_text = 'CAS6_LA'
start_new_script @A_ALAP 2 75 $scplayer 
302@ = 0

:CASINO6_26194
TIMERB = 0

:CASINO6_26201
return 

:CASINO6_26203
switch_start 303@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_26911 {caseNum1} 0 {caseLabel1} @CASINO6_26266 {caseNum2} 1 {caseLabel2} @CASINO6_26350 {caseNum3} 2 {caseLabel3} @CASINO6_26426 {caseNum4} 3 {caseLabel4} @CASINO6_26601 {caseNum5} 4 {caseLabel5} @CASINO6_26682 {caseNum6} -1 {caseLabel6} @CASINO6_26911 {caseNum7} -1 {caseLabel7} @CASINO6_26911

:CASINO6_26266
if 
  is_char_in_area_2d $scplayer {leftBottomX} 950.4901 {leftBottomY} 2113.2041 {rightTopX} 940.3504 {rightTopY} 2103.8401 {drawSphere} False
goto_if_false @CASINO6_26343
print_help_forever 'CAS6_H0'
304@ = 0
305@ = 0
306@ = 0
303@ += 1

:CASINO6_26343
goto @CASINO6_26911

:CASINO6_26350
if 
  304@ > 8000
goto_if_false @CASINO6_26385
clear_help 
303@ += 1
goto @CASINO6_26419

:CASINO6_26385
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_26419
clear_help 
303@ += 1

:CASINO6_26419
goto @CASINO6_26911

:CASINO6_26426
if and
  36@ == 1
  305@ == 0
goto_if_false @CASINO6_26501
if 
  44@ <> 1
goto_if_false @CASINO6_26494
print_help_forever 'CAS6_H3'
304@ = 0
303@ = 3

:CASINO6_26494
goto @CASINO6_26594

:CASINO6_26501
if 
  44@ == 1
goto_if_false @CASINO6_26594
if 
  306@ == 0
goto_if_false @CASINO6_26569
print_help_forever 'CAS6_H1'
304@ = 0
303@ = 4
goto @CASINO6_26594

:CASINO6_26569
if 
  306@ == 1
goto_if_false @CASINO6_26594
303@ = 4

:CASINO6_26594
goto @CASINO6_26911

:CASINO6_26601
if or
  304@ > 8000
  36@ == 0
goto_if_false @CASINO6_26675
clear_help 
305@ = 1
if 
  306@ == 3
goto_if_false @CASINO6_26668
303@ = -1
goto @CASINO6_26675

:CASINO6_26668
303@ = 2

:CASINO6_26675
goto @CASINO6_26911

:CASINO6_26682
if 
  306@ == 0
goto_if_false @CASINO6_26794
if 
  304@ > 8000
goto_if_false @CASINO6_26753
clear_help 
print_help_forever 'CAS6_H2'
304@ = 0
306@ = 2
goto @CASINO6_26787

:CASINO6_26753
if 
  44@ == 0
goto_if_false @CASINO6_26787
clear_help 
306@ = 1
303@ = 2

:CASINO6_26787
goto @CASINO6_26904

:CASINO6_26794
if 
  306@ == 1
goto_if_false @CASINO6_26844
print_help_forever 'CAS6_H2'
304@ = 0
306@ = 2
goto @CASINO6_26904

:CASINO6_26844
if 
  306@ == 2
goto_if_false @CASINO6_26904
if or
  304@ > 8000
  44@ == 0
goto_if_false @CASINO6_26904
clear_help 
306@ = 3
303@ = 2

:CASINO6_26904
goto @CASINO6_26911

:CASINO6_26911
return 

:CASINO6_26913
switch_start 307@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_27501 {caseNum1} 0 {caseLabel1} @CASINO6_26976 {caseNum2} 1 {caseLabel2} @CASINO6_27210 {caseNum3} 2 {caseLabel3} @CASINO6_27327 {caseNum4} 3 {caseLabel4} @CASINO6_27444 {caseNum5} -1 {caseLabel5} @CASINO6_27501 {caseNum6} -1 {caseLabel6} @CASINO6_27501 {caseNum7} -1 {caseLabel7} @CASINO6_27501

:CASINO6_26976
if 
  44@ == 1
goto_if_false @CASINO6_27024
print_now 'CAS6_G2' {time} 8000 {flag} 1
307@ = 1
goto @CASINO6_27203

:CASINO6_27024
if 
  36@ == 0
goto_if_false @CASINO6_27180
print_now 'CAS6_G1' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27114
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27114
switch_entry_exit 'ABATOIR' {state} True
307@ = 3
if 
  50@ == 0
goto_if_false @CASINO6_27173
317@ = 8
TIMERA = 0
50@ = 1

:CASINO6_27173
goto @CASINO6_27203

:CASINO6_27180
print_now 'CAS6_G3' {time} 8000 {flag} 1
307@ = 2

:CASINO6_27203
goto @CASINO6_27501

:CASINO6_27210
if 
  44@ == 0
goto_if_false @CASINO6_27320
print_now 'CAS6_G4' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27300
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27300
switch_entry_exit 'ABATOIR' {state} True
307@ = 3

:CASINO6_27320
goto @CASINO6_27501

:CASINO6_27327
if 
  36@ == 0
goto_if_false @CASINO6_27437
print_now 'CAS6_G4' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27417
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27417
switch_entry_exit 'ABATOIR' {state} True
307@ = 3

:CASINO6_27437
goto @CASINO6_27501

:CASINO6_27444
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_27494
remove_blip 218@
switch_entry_exit 'ABATOIR' {state} False
307@ = 0

:CASINO6_27494
goto @CASINO6_27501

:CASINO6_27501
return 

:CASINO6_27503
216@ = 0

:CASINO6_27510
if 
  6 > 216@
goto_if_false @CASINO6_27569
mark_object_as_no_longer_needed 154@(216@,6i)
mark_object_as_no_longer_needed 142@(216@,6i)
mark_object_as_no_longer_needed 208@(216@,6i)
216@ += 1
goto @CASINO6_27510

:CASINO6_27569
remove_pickup 37@
remove_pickup 38@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 160@
mark_object_as_no_longer_needed 202@
mark_object_as_no_longer_needed 203@
mark_object_as_no_longer_needed 254@
mark_object_as_no_longer_needed 255@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed #AB_CARCASS
mark_model_as_no_longer_needed #AB_HOOK
mark_model_as_no_longer_needed #FREEZER_DOOR
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 341
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed #CJ_MEAT_BAG_1
mark_model_as_no_longer_needed #CJ_MEAT_1
mark_model_as_no_longer_needed #CJ_MEAT_2
return 

:CASINO6_27691
284@ = 1

:CASINO6_27698
if 
  284@ == 1
goto_if_false @CASINO6_27735
wait 0
284@ = get_char_area_visible $scplayer
goto @CASINO6_27698

:CASINO6_27735
do_fade 0 {direction} Fade.Out

:CASINO6_27741
if 
  get_fading_status 
goto_if_false @CASINO6_27765
wait 0
goto @CASINO6_27741

:CASINO6_27765
disable_player_sprint $player1 {state} False
clear_onscreen_counter $7760
remove_blip 40@
clear_help 
set_radar_zoom 0
gosub @CASINO6_27503
switch_entry_exit 'ABATOIR' {state} False
remove_blip 218@
218@ = add_blip_for_coord 2165.1851 {y} 1692.317 {z} 9.8203
clear_wanted_level $player1
if 
  not is_char_dead 39@
goto_if_false @CASINO6_27931
set_char_coordinates 39@ {x} 970.7965 {y} 2155.644 {z} 9.8203
set_char_heading 39@ {heading} 295.3334
clear_char_tasks_immediately 39@
set_char_area_visible 39@ {areaId} 0
set_char_never_leaves_group 39@ {state} True
set_group_member 308@ {handle} 39@
remove_all_char_weapons 39@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True

:CASINO6_27931
if 
  233@ == 1
goto_if_false @CASINO6_28186
request_model 234@

:CASINO6_27954
if 
  not has_model_loaded 234@
goto_if_false @CASINO6_27981
wait 0
goto @CASINO6_27954

:CASINO6_27981
314@ = create_car 234@ {x} 977.1431 {y} 2164.063 {z} 9.8203
set_car_heading 314@ {heading} 194.2554
change_car_colour 314@ {color1} 235@ {color2} 236@
set_extra_car_colours 314@ {color3} 237@ {color4} 238@
216@ = 0

:CASINO6_28043
if 
  4 > 216@
goto_if_false @CASINO6_28102
if 
  is_local_var_bit_set_lvar 239@ {var_bitIndex} 216@
goto_if_false @CASINO6_28088
burst_car_tyre 314@ {tireId} 216@

:CASINO6_28088
216@ += 1
goto @CASINO6_28043

:CASINO6_28102
if 
  240@ <> -1
goto_if_false @CASINO6_28186
216@ = 0

:CASINO6_28127
if 
  6 > 216@
goto_if_false @CASINO6_28186
if 
  is_local_var_bit_set_lvar 240@ {var_bitIndex} 216@
goto_if_false @CASINO6_28172
damage_car_door 314@ {door} 216@

:CASINO6_28172
216@ += 1
goto @CASINO6_28127

:CASINO6_28186
do_fade 500 {direction} Fade.In
print_now 'CAS6_G5' {time} 8000 {flag} 1
315@ = 0
clear_wanted_level $player1
set_max_wanted_level 6
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28250
$SLOT_status[0] = -2

:CASINO6_28250
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28275
$SLOT_status[1] = -2

:CASINO6_28275
set_lvar_text_label 364@s = 'CAS6_HA'
set_lvar_int_to_constant 318@ = 5661
set_lvar_int_to_lvar_int 341@ = 39@
set_lvar_text_label 366@s = 'CAS6_HB'
set_lvar_int_to_constant 319@ = 5662
set_lvar_int_to_lvar_int 342@ = 39@
set_lvar_text_label 368@s = 'CAS6_HC'
set_lvar_int_to_constant 320@ = 5663
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_HD'
set_lvar_int_to_constant 321@ = 5628
set_lvar_int_to_var_int 344@ = $scplayer
set_lvar_text_label 372@s = 'CAS6_JA'
set_lvar_int_to_constant 322@ = 5664
set_lvar_int_to_lvar_int 345@ = 39@
set_lvar_text_label 374@s = 'CAS6_JB'
set_lvar_int_to_constant 323@ = 5665
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_JC'
set_lvar_int_to_constant 324@ = 5666
set_lvar_int_to_lvar_int 347@ = 39@
set_lvar_text_label 378@s = 'CAS6_JD'
set_lvar_int_to_constant 325@ = 5629
set_lvar_int_to_var_int 348@ = $scplayer
set_lvar_text_label 380@s = 'CAS6_JE'
set_lvar_int_to_constant 326@ = 5667
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_JF'
set_lvar_int_to_constant 327@ = 5668
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 384@s = 'CAS6_JG'
set_lvar_int_to_constant 328@ = 5669
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_JJ'
set_lvar_int_to_constant 329@ = 5630
set_lvar_int_to_var_int 352@ = $scplayer
set_lvar_text_label 388@s = 'CAS6_JK'
set_lvar_int_to_constant 330@ = 5631
set_lvar_int_to_var_int 353@ = $scplayer
set_lvar_text_label 390@s = 'CAS6_JL'
set_lvar_int_to_constant 331@ = 5632
set_lvar_int_to_var_int 354@ = $scplayer
set_lvar_text_label 392@s = 'CAS6_JM'
set_lvar_int_to_constant 332@ = 5670
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 394@s = 'CAS6_JN'
set_lvar_int_to_constant 333@ = 5633
set_lvar_int_to_var_int 356@ = $scplayer
set_lvar_text_label 396@s = 'CAS6_JO'
set_lvar_int_to_constant 334@ = 5634
set_lvar_int_to_var_int 357@ = $scplayer
set_lvar_text_label 398@s = 'CAS6_KA'
set_lvar_int_to_constant 335@ = 5635
set_lvar_int_to_var_int 358@ = $scplayer
set_lvar_text_label 400@s = 'CAS6_KB'
set_lvar_int_to_constant 336@ = 5671
set_lvar_int_to_lvar_int 359@ = 39@
set_lvar_text_label 402@s = 'CAS6_KC'
set_lvar_int_to_constant 337@ = 5672
set_lvar_int_to_lvar_int 360@ = 39@
set_lvar_text_label 404@s = 'CAS6_KD'
set_lvar_int_to_constant 338@ = 5673
set_lvar_int_to_lvar_int 361@ = 39@
set_lvar_text_label 406@s = 'CAS6_KE'
set_lvar_int_to_constant 339@ = 5674
set_lvar_int_to_lvar_int 362@ = 39@
316@ = 0
317@ = 0
TIMERB = 0
set_player_group_recruitment $player1 {state} True

:CASINO6_28963
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_29204
if 
  locate_char_any_means_3d $scplayer {x} 2165.1851 {y} 1692.317 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO6_29122
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @CASINO6_29076
goto @CASINO6_30318
goto @CASINO6_29115

:CASINO6_29076
if 
  2 > 315@
goto_if_false @CASINO6_29101
315@ = 2

:CASINO6_29101
gosub @CASINO6_29588
gosub @CASINO6_29824

:CASINO6_29115
goto @CASINO6_29143

:CASINO6_29122
gosub @CASINO6_29409
gosub @CASINO6_29588
gosub @CASINO6_29824

:CASINO6_29143
284@ = get_area_visible 
if 
  284@ <> 0
goto_if_false @CASINO6_29197
clear_prints 
freeze_char_position 39@ {state} True
remove_blip 218@
remove_blip 40@
remove_char_from_group 39@
goto @CASINO6_29239

:CASINO6_29197
goto @CASINO6_29232

:CASINO6_29204
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_29232
goto @CASINO6_28963

:CASINO6_29239
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_29374
284@ = get_area_visible 
if 
  284@ == 0
goto_if_false @CASINO6_29367
freeze_char_position 39@ {state} False
set_char_never_leaves_group 39@ {state} True
set_group_member 308@ {handle} 39@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
218@ = add_blip_for_coord 2165.1851 {y} 1692.317 {z} 9.8203
TIMERA = 0
315@ = 3
goto @CASINO6_28963

:CASINO6_29367
goto @CASINO6_29402

:CASINO6_29374
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_29402
goto @CASINO6_29239

:CASINO6_29409
switch_start 313@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_29586 {caseNum1} 0 {caseLabel1} @CASINO6_29472 {caseNum2} 1 {caseLabel2} @CASINO6_29534 {caseNum3} -1 {caseLabel3} @CASINO6_29586 {caseNum4} -1 {caseLabel4} @CASINO6_29586 {caseNum5} -1 {caseLabel5} @CASINO6_29586 {caseNum6} -1 {caseLabel6} @CASINO6_29586 {caseNum7} -1 {caseLabel7} @CASINO6_29586

:CASINO6_29472
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO6_29527
314@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 39@ {vehicle} 314@
goto_if_false @CASINO6_29527
remove_blip 40@
313@ += 1

:CASINO6_29527
goto @CASINO6_29586

:CASINO6_29534
if 
  not is_char_in_any_car 39@
goto_if_false @CASINO6_29579
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
313@ -= 1

:CASINO6_29579
goto @CASINO6_29586

:CASINO6_29586
return 

:CASINO6_29588
switch_start 315@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_29822 {caseNum1} 0 {caseLabel1} @CASINO6_29651 {caseNum2} 1 {caseLabel2} @CASINO6_29719 {caseNum3} 2 {caseLabel3} @CASINO6_29752 {caseNum4} 3 {caseLabel4} @CASINO6_29789 {caseNum5} -1 {caseLabel5} @CASINO6_29822 {caseNum6} -1 {caseLabel6} @CASINO6_29822 {caseNum7} -1 {caseLabel7} @CASINO6_29822

:CASINO6_29651
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @CASINO6_29712
print_now 'CAS6_G6' {time} 8000 {flag} 1
TIMERA = 0
315@ += 1

:CASINO6_29712
goto @CASINO6_29822

:CASINO6_29719
if 
  TIMERA > 20000
goto_if_false @CASINO6_29745
315@ -= 1

:CASINO6_29745
goto @CASINO6_29822

:CASINO6_29752
print_now 'CAS6_G7' {time} 8000 {flag} 1
TIMERA = 0
315@ += 1
goto @CASINO6_29822

:CASINO6_29789
if 
  TIMERA > 20000
goto_if_false @CASINO6_29815
315@ = 0

:CASINO6_29815
goto @CASINO6_29822

:CASINO6_29822
return 

:CASINO6_29824
switch_start 317@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_30316 {caseNum1} 0 {caseLabel1} @CASINO6_29887 {caseNum2} 1 {caseLabel2} @CASINO6_29920 {caseNum3} 2 {caseLabel3} @CASINO6_30047 {caseNum4} 3 {caseLabel4} @CASINO6_30094 {caseNum5} 4 {caseLabel5} @CASINO6_30269 {caseNum6} -1 {caseLabel6} @CASINO6_30316 {caseNum7} -1 {caseLabel7} @CASINO6_30316

:CASINO6_29887
if 
  TIMERB > 8000
goto_if_false @CASINO6_29913
317@ += 1

:CASINO6_29913
goto @CASINO6_30316

:CASINO6_29920
if 
  4 > 316@
goto_if_false @CASINO6_30033
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @CASINO6_30026
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_30026
goto @CASINO6_30047

:CASINO6_30033
317@ = 3
goto @CASINO6_30316

:CASINO6_30047
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30087
317@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30087
goto @CASINO6_30316

:CASINO6_30094
if 
  313@ == 1
goto_if_false @CASINO6_30194
if 
  17 > 316@
goto_if_false @CASINO6_30187
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 1 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_30187
goto @CASINO6_30269

:CASINO6_30194
if 
  316@ <> 4
goto_if_false @CASINO6_30262
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30237
$SLOT_status[0] = -2

:CASINO6_30237
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30262
$SLOT_status[1] = -2

:CASINO6_30262
goto @CASINO6_30316

:CASINO6_30269
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30309
317@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30309
goto @CASINO6_30316

:CASINO6_30316
return 

:CASINO6_30318
set_player_control $player1 {state} False
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30350
$SLOT_status[0] = -2

:CASINO6_30350
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30375
$SLOT_status[1] = -2

:CASINO6_30375
do_fade 500 {direction} Fade.Out

:CASINO6_30382
if 
  get_fading_status 
goto_if_false @CASINO6_30406
wait 0
goto @CASINO6_30382

:CASINO6_30406
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO6_30449
warp_char_from_car_to_coord $scplayer {x} 2171.511 {y} 1687.368 {z} 9.8203
goto @CASINO6_30469

:CASINO6_30449
set_char_coordinates $scplayer {x} 2171.511 {y} 1687.368 {z} 9.8203

:CASINO6_30469
set_char_heading $scplayer {heading} 352.2379
if 
  not is_char_dead 39@
goto_if_false @CASINO6_30568
if 
  is_char_in_any_car 39@
goto_if_false @CASINO6_30538
warp_char_from_car_to_coord 39@ {x} 2171.519 {y} 1688.526 {z} 9.8203
goto @CASINO6_30558

:CASINO6_30538
set_char_coordinates 39@ {x} 2171.519 {y} 1688.526 {z} 9.8203

:CASINO6_30558
set_char_heading 39@ {heading} 194.051

:CASINO6_30568
set_fixed_camera_position 2172.856 {y} 1688.255 {z} 11.0927 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.8911 {y} 1688.0129 {z} 11.1875 {switchStyle} SwitchType.JumpCut
clear_area 2171.511 {y} 1687.368 {z} 9.8203 {radius} 60.0 {clearParticles} True
delete_car 314@
316@ = 17
switch_widescreen True
do_fade 500 {direction} Fade.In
skip_cutscene_start_internal @CASINO6_30863

:CASINO6_30673
if 
  22 > 316@
goto_if_false @CASINO6_30792
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 

:CASINO6_30734
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO6_30767
wait 0
goto @CASINO6_30734

:CASINO6_30767
$SLOT_status($preload_slot,2i) = -4
316@ += 1
goto @CASINO6_30673

:CASINO6_30792
if 
  not is_char_dead 39@
goto_if_false @CASINO6_30839
task_go_straight_to_coord 39@ {x} 2178.0149 {y} 1689.698 {z} 9.8203 {speed} MoveState.Walk {time} -2
do_fade 2500 {direction} Fade.Out

:CASINO6_30839
if 
  get_fading_status 
goto_if_false @CASINO6_30863
wait 0
goto @CASINO6_30839

:CASINO6_30863
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO6_30871
if 
  get_fading_status 
goto_if_false @CASINO6_30895
wait 0
goto @CASINO6_30871

:CASINO6_30895
clear_prints 
set_char_heading $scplayer {heading} 95.0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_30928
delete_char 39@

:CASINO6_30928
do_fade 0 {direction} Fade.In
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 

:CASINO6_30949
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO6'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 8000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 8000
award_player_mission_respect 25
clear_wanted_level $player1
play_mission_passed_tune 1
set_int_stat StatId.PassedCasino6 {value} 1
start_new_script @DOC 
remove_blip $doc_contact_blip
$doc_contact_blip = add_sprite_blip_for_contact_point $docX {y} $docY {z} $docZ {sprite} $doc_blip_icon
remove_blip $heist_contact_blip
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
return 

:CASINO6_31097
switch_start 227@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO6_31807 {caseNum1} 0 {caseLabel1} @CASINO6_31208 {caseNum2} 1 {caseLabel2} @CASINO6_31160 {caseNum3} 2 {caseLabel3} @CASINO6_31231 {caseNum4} -1 {caseLabel4} @CASINO6_31807 {caseNum5} -1 {caseLabel5} @CASINO6_31807 {caseNum6} -1 {caseLabel6} @CASINO6_31807 {caseNum7} -1 {caseLabel7} @CASINO6_31807

:CASINO6_31160
print_now 228@s {time} 5000 {flag} 1
if 
  36@ == 1
goto_if_false @CASINO6_31208
set_object_coordinates 202@ {x} 951.859 {y} 2121.6479 {z} 1012.094

:CASINO6_31208
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
goto @CASINO6_31807

:CASINO6_31231
do_fade 0 {direction} Fade.Out

:CASINO6_31237
if 
  get_fading_status 
goto_if_false @CASINO6_31261
wait 0
goto @CASINO6_31237

:CASINO6_31261
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 963.9219 {y} 2124.6299 {z} 1013.85 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 963.0831 {y} 2124.1851 {z} 1013.536 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 955.6613 {y} 2116.2029 {z} 1010.03
set_char_heading $scplayer {heading} 72.8077
if 
  not is_char_dead 39@
goto_if_false @CASINO6_31419
clear_char_tasks_immediately 39@
task_toggle_duck 39@ {state} False
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_coordinates 39@ {x} 955.32 {y} 2119.4719 {z} 1010.031
set_char_heading 39@ {heading} 113.9337

:CASINO6_31419
216@ = 0

:CASINO6_31426
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_31540
if 
  not is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_31526
if 
  is_char_in_area_3d 53@(216@,29i) {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_31526
delete_char 53@(216@,29i)

:CASINO6_31526
216@ += 1
goto @CASINO6_31426

:CASINO6_31540
TIMERA = 0

:CASINO6_31547
if 
  400 > TIMERA
goto_if_false @CASINO6_31577
wait 0
goto @CASINO6_31547

:CASINO6_31577
do_fade 1000 {direction} Fade.In

:CASINO6_31584
if 
  get_fading_status 
goto_if_false @CASINO6_31608
wait 0
goto @CASINO6_31584

:CASINO6_31608
print_big 'M_FAIL' {time} 4000 {style} TextStyle.Middle
print_now 228@s {time} 4000 {flag} 1
TIMERA = 0

:CASINO6_31641
if 
  4000 > TIMERA
goto_if_false @CASINO6_31671
wait 0
goto @CASINO6_31641

:CASINO6_31671
do_fade 500 {direction} Fade.Out

:CASINO6_31678
if 
  get_fading_status 
goto_if_false @CASINO6_31702
wait 0
goto @CASINO6_31678

:CASINO6_31702
load_scene 1578.446 {y} 1770.682 {z} 9.828
request_collision 1578.446 {y} 1770.682
set_char_coordinates_no_offset $scplayer {x} 1578.446 {y} 1770.682 {z} 9.828
set_char_heading $scplayer {heading} 99.7567
reset_stuff_upon_resurrection 
TIMERA = 0

:CASINO6_31770
if 
  400 > TIMERA
goto_if_false @CASINO6_31800
wait 0
goto @CASINO6_31770

:CASINO6_31800
goto @CASINO6_31807

:CASINO6_31807
284@ = get_area_visible 
if 
  284@ <> 0
goto_if_false @CASINO6_31843
switch_entry_exit 'ABATOIR' {state} True

:CASINO6_31843
return 

:CASINO6_31845
if 
  is_player_playing $player1
goto_if_false @CASINO6_31872
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO6_31872
start_new_script @A_TERM 
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
set_max_wanted_level 6
clear_onscreen_counter $7760
remove_blip 218@
clear_help 
set_heathaze_effect False
set_radar_zoom 0
if 
  265@ == 0
goto_if_false @CASINO6_31968
remove_script_fire 264@
remove_script_fire 263@

:CASINO6_31968
if 
  266@ == 0
goto_if_false @CASINO6_31996
remove_script_fire 262@
remove_script_fire 261@

:CASINO6_31996
if 
  267@ == 0
goto_if_false @CASINO6_32024
remove_script_fire 260@
remove_script_fire 259@

:CASINO6_32024
if 
  is_player_playing $player1
goto_if_false @CASINO6_32151
disable_player_sprint $player1 {state} False
216@ = 0

:CASINO6_32054
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_32151
if 
  not is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_32128
set_char_decision_maker 53@(216@,29i) {handleOrTemplate} 34@
task_kill_char_on_foot 53@(216@,29i) {target} $scplayer
set_char_keep_task 53@(216@,29i) {state} True

:CASINO6_32128
remove_blip 82@(216@,29i)
216@ += 1
goto @CASINO6_32054

:CASINO6_32151
mark_char_as_no_longer_needed 39@
remove_blip 40@
216@ = 0

:CASINO6_32168
if 
  6 > 216@
goto_if_false @CASINO6_32227
mark_object_as_no_longer_needed 154@(216@,6i)
mark_object_as_no_longer_needed 142@(216@,6i)
mark_object_as_no_longer_needed 208@(216@,6i)
216@ += 1
goto @CASINO6_32168

:CASINO6_32227
216@ = 0

:CASINO6_32234
if 
  6 > 216@
goto_if_false @CASINO6_32275
mark_object_as_no_longer_needed 245@(216@,9i)
216@ += 1
goto @CASINO6_32234

:CASINO6_32275
remove_pickup 37@
remove_pickup 38@
mark_car_as_no_longer_needed 314@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 160@
mark_object_as_no_longer_needed 202@
mark_object_as_no_longer_needed 203@
mark_object_as_no_longer_needed 254@
mark_object_as_no_longer_needed 255@
kill_fx_system 256@
kill_fx_system 257@
unload_special_character 1
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 341
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed #AB_CARCASS
mark_model_as_no_longer_needed #AB_HOOK
mark_model_as_no_longer_needed #FREEZER_DOOR
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed #CJ_MEAT_BAG_1
mark_model_as_no_longer_needed #CJ_MEAT_1
mark_model_as_no_longer_needed #CJ_MEAT_2
mark_model_as_no_longer_needed 234@
$timer_mobile_start = get_game_timer 
if 
  227@ == 2
goto_if_false @CASINO6_32458
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1000 {direction} Fade.In

:CASINO6_32458
$onmission = 0
mission_has_finished 
return 

//-------------Mission 91---------------
// Originally: Freefall

:CASINO9
script_name 'CASINO9'
gosub @CASINO9_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO9_38
gosub @CASINO9_11794

:CASINO9_38
gosub @CASINO9_12098
terminate_this_script 

:CASINO9_47
register_mission_given 
$onmission = 1
load_mission_text 'CASINO9'
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_9A1'

:CASINO9_150
if 
  not has_cutscene_loaded 
goto_if_false @CASINO9_174
wait 0
goto @CASINO9_150

:CASINO9_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO9_183
if 
  not has_cutscene_finished 
goto_if_false @CASINO9_207
wait 0
goto @CASINO9_183

:CASINO9_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO9_222
if 
  get_fading_status 
goto_if_false @CASINO9_246
wait 0
goto @CASINO9_222

:CASINO9_246
if 
  not was_cutscene_skipped 
goto_if_false @CASINO9_366
load_cutscene 'CAS_9A2'

:CASINO9_270
if 
  not has_cutscene_loaded 
goto_if_false @CASINO9_294
wait 0
goto @CASINO9_270

:CASINO9_294
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO9_303
if 
  not has_cutscene_finished 
goto_if_false @CASINO9_327
wait 0
goto @CASINO9_303

:CASINO9_327
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO9_342
if 
  get_fading_status 
goto_if_false @CASINO9_366
wait 0
goto @CASINO9_342

:CASINO9_366
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene 2175.4121 {y} 1681.548 {z} 9.8203
request_model 593
request_model 521

:CASINO9_409
if or
  not has_model_loaded 593
  not has_model_loaded 521
goto_if_false @CASINO9_441
wait 0
goto @CASINO9_409

:CASINO9_441
force_weather_now WeatherType.SunnyVegas
68@ = 0
if 
  68@ == 1
goto_if_false @CASINO9_501
34@ = create_car 593 {x} 0.0 {y} 0.0 {z} 0.0
35@ = add_blip_for_car 34@

:CASINO9_501
36@ = 0
set_camera_behind_player 
switch_ambient_planes False
37@ = create_car 521 {x} 2163.249 {y} 1679.976 {z} 9.8125
set_car_heading 37@ {heading} 350.0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_respawn_point_for_duration_of_mission 1581.374 {y} 1768.996 {z} 9.8203
do_fade 500 {direction} Fade.In
print_now 'CAS9_08' {time} 8500 {flag} 1
43@ = add_blip_for_coord 1707.828 {y} 1606.639 {z} 9.055
50@ = 0
36@ = 0
39@ = 0
47@ = 0
53@ = 1465.0
54@ = 5200.0
55@ = 200.0
59@ = 1465.0
60@ = 5220.0
61@ = 215.0

:CASINO9_710
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO9_736
goto @CASINO9_12029

:CASINO9_736
if 
  47@ == 0
goto_if_false @CASINO9_875
if 
  locate_char_any_means_2d $scplayer {x} 1707.828 {y} 1606.639 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @CASINO9_868
remove_blip 43@
34@ = create_car 593 {x} 1279.625 {y} 1361.605 {z} 9.8203
set_car_heading 34@ {heading} 270.0
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'CAS9_09' {time} 6000 {flag} 1
47@ += 1

:CASINO9_868
goto @CASINO9_1739

:CASINO9_875
if 
  not is_car_dead 34@
goto_if_false @CASINO9_1711
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @CASINO9_1652
if 
  does_blip_exist 35@
goto_if_false @CASINO9_988
remove_blip 35@
43@ = add_blip_for_coord 53@ {y} 54@ {z} 55@
clear_prints 
if 
  36@ == 0
goto_if_false @CASINO9_988
print_now 'CAS9_50' {time} 8000 {flag} 1
36@ += 1

:CASINO9_988
$x, $y, $z = get_car_coordinates 34@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 53@ {toZ} 54@
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO9_1645 {caseNum1} 0 {caseLabel1} @CASINO9_1082 {caseNum2} 1 {caseLabel2} @CASINO9_1136 {caseNum3} 2 {caseLabel3} @CASINO9_1260 {caseNum4} 3 {caseLabel4} @CASINO9_1377 {caseNum5} -1 {caseLabel5} @CASINO9_1645 {caseNum6} -1 {caseLabel6} @CASINO9_1645 {caseNum7} -1 {caseLabel7} @CASINO9_1645

:CASINO9_1082
if 
  $distance > 4400.0
goto_if_false @CASINO9_1110
goto @CASINO9_1645

:CASINO9_1110
request_model 519
request_model 61
mark_model_as_no_longer_needed 521
mark_car_as_no_longer_needed 37@
39@ += 1

:CASINO9_1136
if or
  $distance > 600.0
  not has_model_loaded 519
  not has_model_loaded 61
goto_if_false @CASINO9_1173
goto @CASINO9_1645

:CASINO9_1173
remove_blip 43@
38@ = create_car 519 {x} 53@ {y} 54@ {z} 55@
set_car_heading 38@ {heading} 180.0
set_plane_undercarriage_up 38@ {state} True
freeze_car_position 38@ {state} True
40@ = create_char_inside_car 38@ {pedType} PedType.Mission1 {modelId} 61
43@ = add_blip_for_car 38@
change_blip_display 43@ {display} BlipDisplay.BlipOnly
change_blip_colour 43@ {color} BlipColor.Yellow
39@ += 1

:CASINO9_1260
if 
  $distance > 300.0
goto_if_false @CASINO9_1288
goto @CASINO9_1645

:CASINO9_1288
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
set_var_float_to_lvar_float $y = 60@
$y -= 1.0
48@ = create_checkpoint CheckpointType.Torus {x} 59@ {y} 60@ {z} 61@ {pointX} 59@ {pointY} $y {pointZ} 61@ {radius} 3.0
print_now 'CAS9_51' {time} 8000 {flag} 1
39@ += 1

:CASINO9_1377
if 
  not is_car_dead 38@
goto_if_false @CASINO9_1638
54@ -= 1.0
set_car_coordinates_no_offset 38@ {x} 53@ {y} 54@ {z} 55@
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
set_checkpoint_coords 48@ {x} 59@ {y} 60@ {z} 61@
set_var_float_to_lvar_float $z = 61@
$z -= 3.0
if 
  locate_char_in_car_3d $scplayer {x} 59@ {y} 60@ {z} $z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CASINO9_1562
$heading = get_car_heading 34@
if and
  240.0 > $heading
  $heading > 120.0
goto_if_false @CASINO9_1555
goto @CASINO9_1746

:CASINO9_1555
goto @CASINO9_1569

:CASINO9_1562
TIMERA = 0

:CASINO9_1569
if 
  3000.0 >= 54@
goto_if_false @CASINO9_1638
plane_fly_in_direction 38@ {heading} 180.0 {minAltitude} 200.0 {maxAltitude} 200.0
50@ = 1
set_lvar_text_label 51@s = 'CAS9_52'
goto @CASINO9_11794

:CASINO9_1638
goto @CASINO9_1645

:CASINO9_1645
goto @CASINO9_1704

:CASINO9_1652
if 
  not does_blip_exist 35@
goto_if_false @CASINO9_1704
print_now 'CAS9_04' {time} 8000 {flag} 1
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
remove_blip 43@

:CASINO9_1704
goto @CASINO9_1739

:CASINO9_1711
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_11794

:CASINO9_1739
goto @CASINO9_710

:CASINO9_1746
do_fade 0 {direction} Fade.Out

:CASINO9_1752
if 
  get_fading_status 
goto_if_false @CASINO9_1776
wait 0
goto @CASINO9_1752

:CASINO9_1776
display_zone_names False
72@ = 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32800
set_player_control $player1 {state} False
if 
  not is_car_dead 38@
goto_if_false @CASINO9_1836
set_car_heading 38@ {heading} 0.0
set_plane_undercarriage_up 38@ {state} True

:CASINO9_1836
if 
  not is_car_dead 34@
goto_if_false @CASINO9_1962
set_lvar_float_to_lvar_float 56@ = 53@
set_lvar_float_to_lvar_float 57@ = 54@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 55@
58@ += 20.0
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
set_car_heading 34@ {heading} 0.0
freeze_car_position 34@ {state} True
set_car_health 34@ {health} 4000
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @CASINO9_1962
warp_char_into_car $scplayer {vehicle} 34@

:CASINO9_1962
delete_checkpoint 48@
request_animation "MISC"

:CASINO9_1975
if 
  not has_animation_loaded "MISC"
goto_if_false @CASINO9_2005
wait 0
goto @CASINO9_1975

:CASINO9_2005
62@ = -3.0
63@ = -4.0
64@ = 0.0
65@ = -1.0
66@ = 0.0
67@ = 0.0
if 
  not is_car_dead 34@
goto_if_false @CASINO9_2111
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2111
71@ = 0
do_fade 400 {direction} Fade.In
switch_widescreen True
TIMERA = 0
TIMERB = 0
clear_wanted_level $player1
set_max_wanted_level 0
skip_cutscene_start_internal @CASINO9_2972

:CASINO9_2159
wait 0
if and
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @CASINO9_3843
shake_cam 20
57@ += 1.0
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
54@ += 1.0
set_car_coordinates 38@ {x} 53@ {y} 54@ {z} 55@
switch_start 71@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_3843 {caseNum1} 0 {caseLabel1} @CASINO9_2299 {caseNum2} 1 {caseLabel2} @CASINO9_2625 {caseNum3} 2 {caseLabel3} @CASINO9_2705 {caseNum4} 3 {caseLabel4} @CASINO9_2759 {caseNum5} 4 {caseLabel5} @CASINO9_2860 {caseNum6} 5 {caseLabel6} @CASINO9_3537 {caseNum7} -1 {caseLabel7} @CASINO9_3843

:CASINO9_2299
if 
  1000 > TIMERB
goto_if_false @CASINO9_2325
goto @CASINO9_3843

:CASINO9_2325
attach_char_to_car $scplayer {vehicle} 34@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim $scplayer {animationName} "PLANE_EXIT" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
75@ = 741
90@ = 0.0
76@ = 794
91@ = 0.33
77@ = 847
92@ = 0.71
78@ = 953
93@ = 1.0
79@ = 1006
94@ = 0.87
80@ = 1059
95@ = 0.83
81@ = 1165
96@ = 0.81
82@ = 2118
97@ = 0.81
83@ = 2277
98@ = 0.78
84@ = 3336
99@ = 0.78
85@ = 4000
100@ = 0.78
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 34@
71@ += 1

:CASINO9_2625
if 
  1000 > TIMERB
goto_if_false @CASINO9_2651
goto @CASINO9_3843

:CASINO9_2651
if 
  1500 > TIMERB
goto_if_false @CASINO9_2691
gosub @CASINO9_3850
goto @CASINO9_3843
goto @CASINO9_2705

:CASINO9_2691
TIMERA = 0
71@ += 1

:CASINO9_2705
gosub @CASINO9_3850
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO9_2752
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 34@
play_mission_audio MissionAudioSlot.Slot3
71@ += 1
goto @CASINO9_2759

:CASINO9_2752
goto @CASINO9_3843

:CASINO9_2759
if 
  5000 > TIMERB
goto_if_false @CASINO9_2853
if 
  -1.4 > 63@
goto_if_false @CASINO9_2839
63@ += 0.1
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2839
gosub @CASINO9_3850
goto @CASINO9_3843

:CASINO9_2853
71@ += 1

:CASINO9_2860
if 
  62@ > -7.0
goto_if_false @CASINO9_2931
62@ -= 0.1
64@ -= 0.045
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2931
74@ = get_char_anim_current_time $scplayer {animationName} "PLANE_EXIT"
if 
  74@ > 0.95
goto_if_false @CASINO9_3523

:CASINO9_2972
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO9_2980
if 
  get_fading_status 
goto_if_false @CASINO9_3004
wait 0
goto @CASINO9_2980

:CASINO9_3004
clear_char_tasks_immediately $scplayer
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} True

:CASINO9_3021
if 
  is_char_playing_anim $scplayer {animationName} "PLANE_EXIT"
goto_if_false @CASINO9_3060
wait 0
goto @CASINO9_3021

:CASINO9_3060
if 
  not is_car_dead 38@
goto_if_false @CASINO9_3108
attach_char_to_car $scplayer {vehicle} 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CASINO9_3108
wait 0
do_fade 50 {direction} Fade.In
task_play_anim_non_interruptable $scplayer {animationName} "PLANE_HIJACK" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
75@ = 3229
90@ = 0.0
76@ = 3282
91@ = 0.04
77@ = 3335
92@ = 0.09
78@ = 3388
93@ = 0.14
79@ = 3440
94@ = 0.19
80@ = 3493
95@ = 0.22
81@ = 5028
96@ = 0.22
82@ = 5081
97@ = 0.15
83@ = 5134
98@ = 0.08
84@ = 5187
99@ = 0.01
85@ = 5240
100@ = 0.0
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 38@
62@ = -3.0
63@ = 6.0
64@ = -0.5
65@ = -2.0
66@ = -8.0
67@ = 1.0
camera_set_shake_simulation_simple 1 {timeInMs} 20000.0 {intensity} 3.0
TIMERA = 0
TIMERB = 0
if 
  not is_car_dead 34@
goto_if_false @CASINO9_3492
freeze_car_position 34@ {state} False

:CASINO9_3492
73@ = 0.0
skip_cutscene_start_internal @CASINO9_3655
71@ = 5
goto @CASINO9_3537

:CASINO9_3523
gosub @CASINO9_3850
goto @CASINO9_3843

:CASINO9_3537
if 
  7000 > TIMERB
goto_if_false @CASINO9_3655
if 
  not is_car_dead 34@
goto_if_false @CASINO9_3634
73@ -= 3.0
56@ -= 0.3
57@ += 0.3
58@ -= 0.3
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
set_car_roll 34@ {yAngle} 73@

:CASINO9_3634
gosub @CASINO9_3850
gosub @CASINO9_4155
goto @CASINO9_3843

:CASINO9_3655
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO9_3663
if 
  get_fading_status 
goto_if_false @CASINO9_3687
wait 0
goto @CASINO9_3663

:CASINO9_3687
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} True

:CASINO9_3706
if 
  is_char_playing_anim $scplayer {animationName} "PLANE_HIJACK"
goto_if_false @CASINO9_3747
wait 0
goto @CASINO9_3706

:CASINO9_3747
mark_char_as_no_longer_needed 40@
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 593
mark_model_as_no_longer_needed 519
remove_animation "MISC"
set_area_visible 1
set_char_coordinates $scplayer {x} 1.6127 {y} 34.7411 {z} 1199.0
set_char_heading $scplayer {heading} 180.0
freeze_char_position $scplayer {state} False
set_char_area_visible $scplayer {areaId} 1
restore_camera_jumpcut 
set_camera_behind_player 
goto @CASINO9_4308

:CASINO9_3843
goto @CASINO9_2159

:CASINO9_3850
if 
  11 > 88@
goto_if_false @CASINO9_4127
if 
  is_int_lvar_greater_than_int_lvar 75@(88@,11i) > TIMERA
goto_if_false @CASINO9_4004
add_float_lvar_to_float_lvar 102@ += 101@
if 
  101@ >= 0.0
goto_if_false @CASINO9_3962
if 
  is_float_lvar_greater_than_float_lvar 102@ > 90@(88@,11f)
goto_if_false @CASINO9_3955
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_3955
goto @CASINO9_3997

:CASINO9_3962
if 
  is_float_lvar_greater_than_float_lvar 90@(88@,11f) > 102@
goto_if_false @CASINO9_3997
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_3997
goto @CASINO9_4127

:CASINO9_4004
cset_lvar_float_to_lvar_int 103@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 105@ = 90@(88@,11f)
88@ += 1
if 
  88@ > 10
goto_if_false @CASINO9_4055
return 

:CASINO9_4055
cset_lvar_float_to_lvar_int 104@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 106@ = 90@(88@,11f)
sub_float_lvar_from_float_lvar 104@ -= 103@
sub_float_lvar_from_float_lvar 106@ -= 105@
div_float_lvar_by_float_lvar 106@ /= 104@
set_lvar_float_to_lvar_float 101@ = 106@
mult_float_lvar_by_float_lvar 101@ *= 104@
add_float_lvar_to_float_lvar 102@ += 101@

:CASINO9_4127
if 
  not is_car_dead 89@
goto_if_false @CASINO9_4153
open_car_door_a_bit 89@ {door} CarDoor.LeftFrontDoor {value} 102@

:CASINO9_4153
return 

:CASINO9_4155
if 
  not is_car_dead 38@
goto_if_false @CASINO9_4306
if 
  107@ == 0
goto_if_false @CASINO9_4306
if 
  -4.0 >= 62@
goto_if_false @CASINO9_4226
107@ = 1
return 
goto @CASINO9_4276

:CASINO9_4226
62@ += -0.02
63@ += 0.02
64@ += -0.01
66@ += 0.23
67@ += -0.02

:CASINO9_4276
attach_camera_to_vehicle 38@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:CASINO9_4306
return 

:CASINO9_4308
72@ = 0
request_model 124
request_model 125
request_model 126
request_model 127
request_model 346
request_model #JET_BAGGAGE_DOOR
request_model #CARDBOARDBOX2
request_model #JET_INTERIOR

:CASINO9_4351
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded 346
  not has_model_loaded #JET_BAGGAGE_DOOR
goto_if_false @CASINO9_4399
wait 0
goto @CASINO9_4351

:CASINO9_4399
if or
  not has_model_loaded #CARDBOARDBOX2
  not has_model_loaded #JET_INTERIOR
goto_if_false @CASINO9_4431
wait 0
goto @CASINO9_4399

:CASINO9_4431
49@ = load_char_decision_maker DecisionMakerType.Empty
load_scene_in_direction 2.3947 {y} 32.9835 {z} 1198.594 {heading} 155.9863
165@ = 2.9
166@ = 32.4
167@ = 1198.75
163@ = 0
164@ = create_object #CARDBOARDBOX2 {x} 165@ {y} 166@ {z} 167@
set_object_area_visible 164@ {areaId} 1
set_object_dynamic 164@ {state} False
set_object_collision 164@ {state} False
set_object_visible 164@ {state} False
attach_char_to_object $scplayer {handle} 164@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {heading} Facing.Back {headingRange} 85.0 {weaponType} WeaponType.Pistol
set_heading_for_attached_player $player1 {heading} 30.0 {headingRange} 30.0
freeze_char_position $scplayer {state} True
display_radar False
108@ = create_char PedType.Mission1 {modelId} 124 {x} 2.9739 {y} 28.7207 {z} 1198.594
set_char_area_visible 108@ {areaId} 1
set_char_heading 108@ {heading} 0.0
set_char_health 108@ {health} 150
give_weapon_to_char 108@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 108@ {weaponType} WeaponType.Pistol
set_char_decision_maker 108@ {handleOrTemplate} 49@
set_char_never_targetted 108@ {state} True
task_stay_in_same_place 108@ {state} True
task_sit_down 108@ {time} 80000
set_char_drops_weapons_when_dead 108@ {state} False
set_char_shoot_rate 108@ {rate} 90
set_char_accuracy 108@ {accuracy} 0
132@ = 2
146@ = 197.6
150@ = 214.0
154@ = 1199.851
158@ = 1200.366
109@ = create_char PedType.Mission1 {modelId} 125 {x} 0.5102 {y} 27.6804 {z} 1198.594
set_char_area_visible 109@ {areaId} 1
set_char_heading 109@ {heading} 0.0
set_char_health 109@ {health} 150
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 109@ {weaponType} WeaponType.Pistol
set_char_decision_maker 109@ {handleOrTemplate} 49@
set_char_never_targetted 109@ {state} True
task_stay_in_same_place 109@ {state} True
task_sit_down 109@ {time} 80000
set_char_drops_weapons_when_dead 109@ {state} False
set_char_shoot_rate 109@ {rate} 90
set_char_accuracy 109@ {accuracy} 0
133@ = 3
147@ = 158.7
151@ = 170.2
155@ = 1199.972
159@ = 1200.34
110@ = create_char PedType.Mission1 {modelId} 126 {x} 2.8831 {y} 26.4404 {z} 1198.601
set_char_area_visible 110@ {areaId} 1
set_char_heading 110@ {heading} 0.0
set_char_health 110@ {health} 150
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 110@ {weaponType} WeaponType.Pistol
set_char_decision_maker 110@ {handleOrTemplate} 49@
set_char_never_targetted 110@ {state} True
task_stay_in_same_place 110@ {state} True
task_sit_down 110@ {time} 80000
set_char_drops_weapons_when_dead 110@ {state} False
set_char_shoot_rate 110@ {rate} 90
set_char_accuracy 110@ {accuracy} 0
134@ = 0
148@ = 189.4
152@ = 196.9
156@ = 200.1145
160@ = 200.3232
111@ = create_char PedType.Mission1 {modelId} 127 {x} 0.5068 {y} 25.3824 {z} 1198.601
set_char_area_visible 111@ {areaId} 1
set_char_heading 111@ {heading} 0.0
set_char_health 111@ {health} 150
give_weapon_to_char 111@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 111@ {weaponType} WeaponType.Pistol
set_char_decision_maker 111@ {handleOrTemplate} 49@
set_char_never_targetted 111@ {state} True
task_stay_in_same_place 111@ {state} True
task_sit_down 111@ {time} 80000
set_char_drops_weapons_when_dead 111@ {state} False
set_char_shoot_rate 111@ {rate} 90
set_char_accuracy 111@ {accuracy} 0
135@ = 1
149@ = 167.51
153@ = 174.11
157@ = 1200.1479
161@ = 1200.328
set_lvar_text_label 208@s = 'CAS9_AA'
set_lvar_int_to_constant 184@ = 27601
set_lvar_int_to_lvar_int 188@ = 108@
set_lvar_text_label 210@s = 'CAS9_AB'
set_lvar_int_to_constant 185@ = 27602
set_lvar_int_to_lvar_int 189@ = 109@
set_lvar_text_label 212@s = 'CAS9_AC'
set_lvar_int_to_constant 186@ = 27607
set_lvar_int_to_lvar_int 190@ = 110@
set_lvar_text_label 214@s = 'CAS9_AD'
set_lvar_int_to_constant 187@ = 27608
set_lvar_int_to_lvar_int 191@ = 110@
set_lvar_text_label 216@s = 'CAS9_BA'
set_lvar_int_to_constant 192@ = 27603
set_lvar_text_label 218@s = 'CAS9_BB'
set_lvar_int_to_constant 193@ = 27604
set_lvar_text_label 220@s = 'CAS9_BC'
set_lvar_int_to_constant 194@ = 27609
set_lvar_text_label 222@s = 'CAS9_BD'
set_lvar_int_to_constant 195@ = 27610
set_lvar_text_label 224@s = 'CAS9_CA'
set_lvar_int_to_constant 196@ = 27605
set_lvar_text_label 226@s = 'CAS9_CB'
set_lvar_int_to_constant 197@ = 27606
set_lvar_text_label 228@s = 'CAS9_CC'
set_lvar_int_to_constant 198@ = 27611
set_lvar_text_label 230@s = 'CAS9_CD'
set_lvar_int_to_constant 199@ = 27612
set_player_fire_button $player1 {enabled} False
set_player_duck_button $player1 {enabled} False
162@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
138@ = 4
139@ = -1
137@ = -1
168@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 25.518 {z} 1201.15
169@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 28.024 {z} 1201.15
170@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 30.403 {z} 1201.15
set_player_control $player1 {state} True
switch_widescreen True
TIMERA = 0

:CASINO9_5717
if 
  500 > TIMERA
goto_if_false @CASINO9_5747
wait 0
goto @CASINO9_5717

:CASINO9_5747
do_fade 500 {direction} Fade.In
print_help_forever 'CAS9_H2'

:CASINO9_5765
if 
  get_fading_status 
goto_if_false @CASINO9_5789
wait 0
goto @CASINO9_5765

:CASINO9_5789
TIMERA = 0

:CASINO9_5796
if 
  2000 > TIMERA
goto_if_false @CASINO9_5826
wait 0
goto @CASINO9_5796

:CASINO9_5826
set_player_fire_button $player1 {enabled} True
switch_widescreen False
178@ = 0
172@ = get_game_timer 

:CASINO9_5849
wait 0
171@ = get_game_timer 
set_lvar_int_to_lvar_int 173@ = 171@
sub_int_lvar_from_int_lvar 173@ -= 172@
set_lvar_int_to_lvar_int 172@ = 171@
add_int_lvar_to_int_lvar 120@ += 173@
add_int_lvar_to_int_lvar 121@ += 173@
add_int_lvar_to_int_lvar 122@ += 173@
add_int_lvar_to_int_lvar 123@ += 173@
add_int_lvar_to_int_lvar 178@ += 173@
gosub @CASINO9_9015
gosub @CASINO9_9684
if 
  175@ == 0
goto_if_false @CASINO9_6217
if or
  162@ == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CASINO9_6210
if and
  not is_char_dead 108@
  not is_char_dead 109@
  not is_char_dead 110@
  not is_char_dead 111@
goto_if_false @CASINO9_6210
clear_char_tasks 108@
task_go_to_coord_while_shooting 108@ {x} 3.0228 {y} 29.7474 {z} 1198.594 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
112@ = -1
clear_char_tasks 109@
task_go_to_coord_while_shooting 109@ {x} 0.739 {y} 28.6978 {z} 1198.594 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
113@ = -1
clear_char_tasks 110@
task_go_to_coord_while_shooting 110@ {x} 2.9224 {y} 27.2966 {z} 1198.601 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
114@ = -1
clear_char_tasks 111@
task_go_to_coord_while_shooting 111@ {x} 0.5596 {y} 26.2475 {z} 1198.601 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
115@ = -1
175@ = 1

:CASINO9_6210
goto @CASINO9_7323

:CASINO9_6217
if 
  181@ <> 2
goto_if_false @CASINO9_6242
gosub @CASINO9_9916

:CASINO9_6242
if 
  138@ <> 0
goto_if_false @CASINO9_7316
174@ = generate_random_int_in_range 0 {max} 24
switch_start 174@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @CASINO9_7302 {caseNum1} 0 {caseLabel1} @CASINO9_6462 {caseNum2} 1 {caseLabel2} @CASINO9_6497 {caseNum3} 2 {caseLabel3} @CASINO9_6532 {caseNum4} 3 {caseLabel4} @CASINO9_6567 {caseNum5} 4 {caseLabel5} @CASINO9_6602 {caseNum6} 5 {caseLabel6} @CASINO9_6637 {caseNum7} 6 {caseLabel7} @CASINO9_6672
switch_continued 7 {caseLabel1} @CASINO9_6707 {caseNum2} 8 {caseLabel2} @CASINO9_6742 {caseNum3} 9 {caseLabel3} @CASINO9_6777 {caseNum4} 10 {caseLabel4} @CASINO9_6812 {caseNum5} 11 {caseLabel5} @CASINO9_6847 {caseNum6} 12 {caseLabel6} @CASINO9_6882 {caseNum7} 13 {caseLabel7} @CASINO9_6917 {caseNum8} 14 {caseLabel8} @CASINO9_6952 {caseNum9} 15 {caseLabel9} @CASINO9_6987
switch_continued 16 {caseLabel1} @CASINO9_7022 {caseNum2} 17 {caseLabel2} @CASINO9_7057 {caseNum3} 18 {caseLabel3} @CASINO9_7092 {caseNum4} 19 {caseLabel4} @CASINO9_7127 {caseNum5} 20 {caseLabel5} @CASINO9_7162 {caseNum6} 21 {caseLabel6} @CASINO9_7197 {caseNum7} 22 {caseLabel7} @CASINO9_7232 {caseNum8} 23 {caseLabel8} @CASINO9_7267 {caseNum9} -1 {caseLabel9} @CASINO9_7302

:CASINO9_6462
141@ = 0
142@ = 1
143@ = 2
144@ = 3
goto @CASINO9_7302

:CASINO9_6497
141@ = 0
142@ = 1
143@ = 3
144@ = 2
goto @CASINO9_7302

:CASINO9_6532
141@ = 0
142@ = 2
143@ = 1
144@ = 3
goto @CASINO9_7302

:CASINO9_6567
141@ = 0
142@ = 2
143@ = 3
144@ = 1
goto @CASINO9_7302

:CASINO9_6602
141@ = 0
142@ = 3
143@ = 1
144@ = 2
goto @CASINO9_7302

:CASINO9_6637
141@ = 0
142@ = 3
143@ = 2
144@ = 1
goto @CASINO9_7302

:CASINO9_6672
141@ = 1
142@ = 0
143@ = 2
144@ = 3
goto @CASINO9_7302

:CASINO9_6707
141@ = 1
142@ = 0
143@ = 3
144@ = 2
goto @CASINO9_7302

:CASINO9_6742
141@ = 1
142@ = 2
143@ = 0
144@ = 3
goto @CASINO9_7302

:CASINO9_6777
141@ = 1
142@ = 2
143@ = 3
144@ = 0
goto @CASINO9_7302

:CASINO9_6812
141@ = 1
142@ = 3
143@ = 0
144@ = 2
goto @CASINO9_7302

:CASINO9_6847
141@ = 1
142@ = 3
143@ = 2
144@ = 0
goto @CASINO9_7302

:CASINO9_6882
141@ = 2
142@ = 0
143@ = 1
144@ = 3
goto @CASINO9_7302

:CASINO9_6917
141@ = 2
142@ = 0
143@ = 3
144@ = 1
goto @CASINO9_7302

:CASINO9_6952
141@ = 2
142@ = 1
143@ = 0
144@ = 3
goto @CASINO9_7302

:CASINO9_6987
141@ = 2
142@ = 1
143@ = 3
144@ = 0
goto @CASINO9_7302

:CASINO9_7022
141@ = 2
142@ = 3
143@ = 0
144@ = 1
goto @CASINO9_7302

:CASINO9_7057
141@ = 2
142@ = 3
143@ = 1
144@ = 0
goto @CASINO9_7302

:CASINO9_7092
141@ = 3
142@ = 0
143@ = 1
144@ = 2
goto @CASINO9_7302

:CASINO9_7127
141@ = 3
142@ = 0
143@ = 2
144@ = 1
goto @CASINO9_7302

:CASINO9_7162
141@ = 3
142@ = 1
143@ = 0
144@ = 2
goto @CASINO9_7302

:CASINO9_7197
141@ = 3
142@ = 1
143@ = 2
144@ = 0
goto @CASINO9_7302

:CASINO9_7232
141@ = 3
142@ = 2
143@ = 0
144@ = 1
goto @CASINO9_7302

:CASINO9_7267
141@ = 3
142@ = 2
143@ = 1
144@ = 0
goto @CASINO9_7302

:CASINO9_7302
gosub @CASINO9_7330
goto @CASINO9_7323

:CASINO9_7316
goto @CASINO9_10131

:CASINO9_7323
goto @CASINO9_5849

:CASINO9_7330
41@ = 0

:CASINO9_7337
if 
  4 > 41@
goto_if_false @CASINO9_9013
set_lvar_int_to_lvar_int 145@ = 141@(41@,4i)
if 
  not is_char_dead 108@(145@,4i)
goto_if_false @CASINO9_8925
switch_start 112@(145@,4i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_8918 {caseNum1} -1 {caseLabel1} @CASINO9_7454 {caseNum2} 0 {caseLabel2} @CASINO9_7531 {caseNum3} 1 {caseLabel3} @CASINO9_7909 {caseNum4} 2 {caseLabel4} @CASINO9_8499 {caseNum5} 3 {caseLabel5} @CASINO9_8795 {caseNum6} 4 {caseLabel6} @CASINO9_8866 {caseNum7} -1 {caseLabel7} @CASINO9_8918

:CASINO9_7454
46@ = get_script_task_status 108@(145@,4i) {taskId} 1591
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7531
freeze_char_position 108@(145@,4i) {state} True
task_toggle_duck 108@(145@,4i) {state} True
set_char_accuracy 108@(145@,4i) {accuracy} 65
112@(145@,4i) = 0

:CASINO9_7531
if 
  137@ == -1
goto_if_false @CASINO9_7902
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7707
set_lvar_int_to_lvar_int 42@ = 132@(145@,4i)
if 
  not is_int_lvar_equal_to_int_lvar 139@ == 42@
goto_if_false @CASINO9_7628
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7707

:CASINO9_7628
if 
  138@ == 1
goto_if_false @CASINO9_7661
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7707

:CASINO9_7661
if 
  138@ == 2
goto_if_false @CASINO9_7707
if 
  not is_char_dead 108@(42@,4i)
goto_if_false @CASINO9_7707
set_lvar_int_to_lvar_int 137@ = 145@

:CASINO9_7707
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_7902
112@(145@,4i) = 4
116@(145@,4i) = 0
120@(145@,4i) = 0
140@ = get_char_health 108@(145@,4i)
set_lvar_int_to_lvar_int 124@(145@,4i) = 140@
124@(145@,4i) *= 15
if 
  2000 > 124@(145@,4i)
goto_if_false @CASINO9_7836
124@(145@,4i) = 2000
goto @CASINO9_7871

:CASINO9_7836
if 
  124@(145@,4i) > 5000
goto_if_false @CASINO9_7871
124@(145@,4i) = 5000

:CASINO9_7871
clear_char_tasks 108@(145@,4i)
task_toggle_duck 108@(145@,4i) {state} False
set_char_allowed_to_duck 108@(145@,4i) {state} False

:CASINO9_7902
goto @CASINO9_8918

:CASINO9_7909
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8492
if 
  138@ <> 1
goto_if_false @CASINO9_8151
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8021
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 500
goto @CASINO9_8918
goto @CASINO9_8151

:CASINO9_8021
$heading = get_char_heading $scplayer
if and
  is_float_var_greater_or_equal_to_float_lvar $heading >= 146@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 150@(145@,4f) >= $heading
goto_if_false @CASINO9_8151
$x, $y, $z = get_active_camera_point_at 
if and
  is_float_var_greater_or_equal_to_float_lvar $z >= 154@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 158@(145@,4f) >= $z
goto_if_false @CASINO9_8151
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 700
goto @CASINO9_8918

:CASINO9_8151
if 
  162@ == 0
goto_if_false @CASINO9_8327
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8223
116@(145@,4i) = 1
clear_char_tasks 108@(145@,4i)
task_kill_char_on_foot 108@(145@,4i) {target} $scplayer

:CASINO9_8223
if and
  183@ == 1
  200@(145@,4i) == 0
goto_if_false @CASINO9_8320
set_var_int_to_lvar_int $load_sample = 192@(145@,4i)
set_var_text_label s$load_text = 216@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
200@(145@,4i) += 1

:CASINO9_8320
goto @CASINO9_8492

:CASINO9_8327
if and
  183@ == 2
  204@(145@,4i) == 0
goto_if_false @CASINO9_8424
set_var_int_to_lvar_int $load_sample = 196@(145@,4i)
set_var_text_label s$load_text = 224@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
204@(145@,4i) += 1

:CASINO9_8424
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8492
116@(145@,4i) = 2
clear_char_tasks 108@(145@,4i)
task_shoot_at_coord 108@(145@,4i) {x} 1.8121 {y} 37.2617 {z} 1200.396 {time} -1

:CASINO9_8492
goto @CASINO9_8918

:CASINO9_8499
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8641
112@(145@,4i) = 0
clear_char_tasks 108@(145@,4i)
set_char_allowed_to_duck 108@(145@,4i) {state} True
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8608
task_toggle_duck 108@(145@,4i) {state} True
goto @CASINO9_8619

:CASINO9_8608
112@(145@,4i) = 3

:CASINO9_8619
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1
goto @CASINO9_8788

:CASINO9_8641
if 
  162@ == 0
goto_if_false @CASINO9_8720
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8713
116@(145@,4i) = 1
clear_char_tasks 108@(145@,4i)
task_kill_char_on_foot 108@(145@,4i) {target} $scplayer

:CASINO9_8713
goto @CASINO9_8788

:CASINO9_8720
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8788
116@(145@,4i) = 2
clear_char_tasks 108@(145@,4i)
task_shoot_at_coord 108@(145@,4i) {x} 1.8121 {y} 37.2617 {z} 1200.396 {time} -1

:CASINO9_8788
goto @CASINO9_8918

:CASINO9_8795
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8859
clear_char_tasks 108@(145@,4i)
task_toggle_duck 108@(145@,4i) {state} True
112@(145@,4i) = 0

:CASINO9_8859
goto @CASINO9_8918

:CASINO9_8866
if 
  120@(145@,4i) >= 200
goto_if_false @CASINO9_8911
120@(145@,4i) = 0
112@(145@,4i) = 1

:CASINO9_8911
goto @CASINO9_8918

:CASINO9_8918
goto @CASINO9_8999

:CASINO9_8925
if 
  112@(145@,4i) <> -2
goto_if_false @CASINO9_8999
112@(145@,4i) = -2
138@ -= 1
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8999
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1

:CASINO9_8999
41@ += 1
goto @CASINO9_7337

:CASINO9_9013
return 

:CASINO9_9015
165@, 166@, 167@ = get_object_coordinates 164@
if or
  165@ > 2.6
  0.2 > 165@
goto_if_false @CASINO9_9150
if 
  162@ == 0
goto_if_false @CASINO9_9099
162@ = 1
TIMERB = 0
goto @CASINO9_9143

:CASINO9_9099
if 
  TIMERB > 9000
goto_if_false @CASINO9_9143
if 
  181@ == 2
goto_if_false @CASINO9_9143
183@ = 2

:CASINO9_9143
goto @CASINO9_9233

:CASINO9_9150
if 
  162@ == 1
goto_if_false @CASINO9_9189
162@ = 0
TIMERB = 0
goto @CASINO9_9233

:CASINO9_9189
if 
  TIMERB > 9000
goto_if_false @CASINO9_9233
if 
  181@ == 2
goto_if_false @CASINO9_9233
183@ = 1

:CASINO9_9233
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickY
goto_if_false @CASINO9_9270
180@ = 1
goto @CASINO9_9277

:CASINO9_9270
180@ = 0

:CASINO9_9277
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
  not is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9383
  slide_object 164@ {posX} 1.7 {posY} 166@ {posZ} 167@ {speedX} 0.18 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9376
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 9.0

:CASINO9_9376
goto @CASINO9_9682

:CASINO9_9383
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9489
  slide_object 164@ {posX} 1.7 {posY} 166@ {posZ} 167@ {speedX} 0.18 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9482
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 9.0

:CASINO9_9482
goto @CASINO9_9682

:CASINO9_9489
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
goto_if_false @CASINO9_9589
  slide_object 164@ {posX} 2.9 {posY} 166@ {posZ} 167@ {speedX} 0.18 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  2.9 > 165@
  180@ == 0
goto_if_false @CASINO9_9582
set_heading_for_attached_player $player1 {heading} 30.0 {headingRange} 9.0

:CASINO9_9582
goto @CASINO9_9682

:CASINO9_9589
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9682
  slide_object 164@ {posX} 0.5 {posY} 166@ {posZ} 167@ {speedX} 0.18 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ > 0.5
  180@ == 0
goto_if_false @CASINO9_9682
set_heading_for_attached_player $player1 {heading} 150.0 {headingRange} 9.0

:CASINO9_9682
return 

:CASINO9_9684
switch_start 179@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO9_9914 {caseNum1} 0 {caseLabel1} @CASINO9_9747 {caseNum2} 1 {caseLabel2} @CASINO9_9789 {caseNum3} 2 {caseLabel3} @CASINO9_9872 {caseNum4} -1 {caseLabel4} @CASINO9_9914 {caseNum5} -1 {caseLabel5} @CASINO9_9914 {caseNum6} -1 {caseLabel6} @CASINO9_9914 {caseNum7} -1 {caseLabel7} @CASINO9_9914

:CASINO9_9747
if 
  178@ >= 6000
goto_if_false @CASINO9_9782
clear_help 
179@ += 1
178@ = 0

:CASINO9_9782
goto @CASINO9_9914

:CASINO9_9789
if 
  162@ == 0
goto_if_false @CASINO9_9858
if 
  178@ > 20000
goto_if_false @CASINO9_9851
print_help_forever 'CAS9_H2'
179@ += 1
178@ = 0

:CASINO9_9851
goto @CASINO9_9865

:CASINO9_9858
178@ = 0

:CASINO9_9865
goto @CASINO9_9914

:CASINO9_9872
if 
  178@ > 6000
goto_if_false @CASINO9_9907
clear_help 
179@ -= 1
178@ = 0

:CASINO9_9907
goto @CASINO9_9914

:CASINO9_9914
return 

:CASINO9_9916
switch_start 181@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO9_10129 {caseNum1} 0 {caseLabel1} @CASINO9_9979 {caseNum2} 1 {caseLabel2} @CASINO9_10082 {caseNum3} -1 {caseLabel3} @CASINO9_10129 {caseNum4} -1 {caseLabel4} @CASINO9_10129 {caseNum5} -1 {caseLabel5} @CASINO9_10129 {caseNum6} -1 {caseLabel6} @CASINO9_10129 {caseNum7} -1 {caseLabel7} @CASINO9_10129

:CASINO9_9979
if 
  4 > 182@
goto_if_false @CASINO9_10061
set_var_int_to_lvar_int $load_sample = 184@(182@,4i)
set_var_text_label s$load_text = 208@(182@,4s)
start_new_script @A_ALAP 2 100 188@(182@,4i) 
182@ += 1
181@ += 1
goto @CASINO9_10082

:CASINO9_10061
TIMERB = 0
181@ = 2
goto @CASINO9_10129

:CASINO9_10082
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO9_10122
181@ -= 1
$SLOT_status($preload_slot,2i) = -4

:CASINO9_10122
goto @CASINO9_10129

:CASINO9_10129
return 

:CASINO9_10131
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10156
$SLOT_status[0] = -2

:CASINO9_10156
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10181
$SLOT_status[1] = -2

:CASINO9_10181
clear_prints 
clear_help 
request_model 61

:CASINO9_10189
if 
  not has_model_loaded 61
goto_if_false @CASINO9_10215
wait 0
goto @CASINO9_10189

:CASINO9_10215
TIMERA = 0

:CASINO9_10222
if 
  1000 > TIMERA
goto_if_false @CASINO9_10252
wait 0
goto @CASINO9_10222

:CASINO9_10252
do_fade 500 {direction} Fade.Out

:CASINO9_10259
if 
  get_fading_status 
goto_if_false @CASINO9_10283
wait 0
goto @CASINO9_10259

:CASINO9_10283
detach_char_from_car $scplayer
set_player_control $player1 {state} False
switch_widescreen True
freeze_char_position $scplayer {state} False
set_fixed_camera_position 2.7271 {y} 24.965 {z} 1201.535 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2.422 {y} 25.7162 {z} 1200.95 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1.8227 {y} 31.0635 {z} 1198.609
set_char_heading $scplayer {heading} 180.0
set_object_coordinates 164@ {x} 1.7 {y} 26.8 {z} 1198.75
44@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 1000
task_go_straight_to_coord -1 {x} 1.7221 {y} 26.7679 {z} 1198.6021 {speed} MoveState.Walk {time} -1
close_sequence_task 44@
perform_sequence_task $scplayer {sequence} 44@
clear_sequence_task 44@
do_fade 500 {direction} Fade.In
TIMERA = 0

:CASINO9_10480
if 
  3000 > TIMERA
goto_if_false @CASINO9_10510
wait 0
goto @CASINO9_10480

:CASINO9_10510
40@ = create_char PedType.Mission1 {modelId} 61 {x} 1.881 {y} 34.9202 {z} 1198.6021
set_char_heading 40@ {heading} 180.0
give_weapon_to_char 40@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 40@ {weaponType} WeaponType.Pistol
set_char_drops_weapons_when_dead 40@ {state} False
set_char_shoot_rate 40@ {rate} 70
set_char_accuracy 40@ {accuracy} 65
set_char_decision_maker 40@ {handleOrTemplate} 49@
set_char_never_targetted 40@ {state} True
task_stay_in_same_place 40@ {state} True
task_go_to_coord_any_means 40@ {x} 1.7462 {y} 32.3896 {z} 1198.6021 {speed} MoveState.Walk {vehicle} -1
TIMERA = 0

:CASINO9_10635
if 
  3000 > TIMERA
goto_if_false @CASINO9_10665
wait 0
goto @CASINO9_10635

:CASINO9_10665
do_fade 500 {direction} Fade.Out

:CASINO9_10672
if 
  get_fading_status 
goto_if_false @CASINO9_10696
wait 0
goto @CASINO9_10672

:CASINO9_10696
restore_camera 
task_toggle_duck $scplayer {state} False
clear_char_tasks_immediately $scplayer
attach_char_to_object $scplayer {handle} 164@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {heading} Facing.Forward {headingRange} 85.0 {weaponType} WeaponType.Pistol
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 270.0
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} True
switch_widescreen False
do_fade 0 {direction} Fade.In
232@ = 0
set_var_int_to_constant $load_sample = 27600
set_var_text_label s$load_text = 'CAS9_DA'
start_new_script @A_ALAP 2 100 40@ 
if 
  not is_char_dead 40@
goto_if_false @CASINO9_10849
task_kill_char_on_foot 40@ {target} $scplayer

:CASINO9_10849
wait 0
if 
  is_char_dead 40@
goto_if_false @CASINO9_10876
goto @CASINO9_10883

:CASINO9_10876
goto @CASINO9_10849

:CASINO9_10883
request_model 519

:CASINO9_10888
if 
  not has_model_loaded 519
goto_if_false @CASINO9_10915
wait 0
goto @CASINO9_10888

:CASINO9_10915
TIMERA = 0

:CASINO9_10922
if 
  1000 > TIMERA
goto_if_false @CASINO9_10952
wait 0
goto @CASINO9_10922

:CASINO9_10952
do_fade 500 {direction} Fade.Out

:CASINO9_10959
if 
  get_fading_status 
goto_if_false @CASINO9_10983
wait 0
goto @CASINO9_10959

:CASINO9_10983
freeze_char_position $scplayer {state} False
detach_char_from_car $scplayer
set_player_control $player1 {state} False
switch_widescreen True
display_radar True
set_fixed_camera_position 3.0968 {y} 36.596 {z} 1200.369 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2.4708 {y} 35.9141 {z} 1199.991 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1.7462 {y} 32.3896 {z} 1198.6021
set_char_heading $scplayer {heading} 0.0
44@ = open_sequence_task 
task_stand_still -1 {time} 550
task_go_to_coord_any_means -1 {x} 1.7037 {y} 34.9246 {z} 1198.6021 {speed} MoveState.Walk {vehicle} -1
close_sequence_task 44@
perform_sequence_task $scplayer {sequence} 44@
clear_sequence_task 44@
do_fade 500 {direction} Fade.In
TIMERA = 0

:CASINO9_11158
if 
  2500 > TIMERA
goto_if_false @CASINO9_11188
wait 0
goto @CASINO9_11158

:CASINO9_11188
do_fade 500 {direction} Fade.Out

:CASINO9_11195
if 
  get_fading_status 
goto_if_false @CASINO9_11219
wait 0
goto @CASINO9_11195

:CASINO9_11219
mark_char_as_no_longer_needed 108@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 110@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 40@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed #JET_INTERIOR
delete_object 164@
delete_object 168@
delete_object 169@
delete_object 170@
mark_model_as_no_longer_needed #JET_BAGGAGE_DOOR
mark_model_as_no_longer_needed #CARDBOARDBOX2
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene 1405.0 {y} 6000.0 {z} 210.0
request_collision 1405.0 {y} 6000.0
38@ = create_car 519 {x} 1405.0 {y} 6000.0 {z} 210.0
set_car_heading 38@ {heading} 210.0
set_vehicle_area_visible 38@ {interiorId} 0
warp_char_into_car $scplayer {vehicle} 38@
set_car_forward_speed 38@ {forwardSpeed} 45.0
set_plane_undercarriage_up 38@ {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
display_zone_names True
do_fade 100 {direction} Fade.In
43@ = add_blip_for_coord 1476.219 {y} 1463.623 {z} 9.8203
233@ = 1
234@ = 1
set_max_wanted_level 6
print_now 'CAS9_41' {time} 8000 {flag} 1

:CASINO9_11483
wait 0
if 
  not is_car_dead 38@
goto_if_false @CASINO9_11759
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @CASINO9_11597
if 
  233@ == 0
goto_if_false @CASINO9_11590
clear_prints 
print_now 'CAS9_41' {time} 8000 {flag} 1
remove_blip 43@
43@ = add_blip_for_coord 1476.219 {y} 1463.623 {z} 9.8203
233@ = 1

:CASINO9_11590
goto @CASINO9_11660

:CASINO9_11597
if 
  233@ == 1
goto_if_false @CASINO9_11660
clear_prints 
print_now 'IN_VEH' {time} 8000 {flag} 1
remove_blip 43@
43@ = add_blip_for_car 38@
set_blip_as_friendly 43@ {state} True
233@ = 0

:CASINO9_11660
if and
  is_car_stopped_in_area_3d 38@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASINO9_11752
goto @CASINO9_12029

:CASINO9_11752
goto @CASINO9_11787

:CASINO9_11759
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_11794

:CASINO9_11787
goto @CASINO9_11483

:CASINO9_11794
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  50@ == 1
goto_if_false @CASINO9_11850
print_now 51@s {time} 6000 {flag} 1

:CASINO9_11850
236@ = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO9_11911
235@ = store_car_char_is_in_no_save $scplayer
if 
  is_car_in_water 235@
goto_if_false @CASINO9_11904
236@ = 1

:CASINO9_11904
goto @CASINO9_11987

:CASINO9_11911
if 
  not is_player_using_jetpack $player1
goto_if_false @CASINO9_11987
if 
  is_char_in_water $scplayer
goto_if_false @CASINO9_11957
236@ = 1
goto @CASINO9_11987

:CASINO9_11957
if and
  is_char_in_air $scplayer
  0 >= $player_fall_state
goto_if_false @CASINO9_11987
236@ = 1

:CASINO9_11987
if 
  236@ == 1
goto_if_false @CASINO9_12027
set_up_skip_after_mission 2097.009 {y} 1728.285 {z} 9.8203 {heading} 169.1748

:CASINO9_12027
return 

:CASINO9_12029
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO9'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 30
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $casino_contact_blip
return 

:CASINO9_12098
if 
  72@ == 1
goto_if_false @CASINO9_12123
detach_char_from_car $scplayer
restore_camera_jumpcut 

:CASINO9_12123
display_zone_names True
if 
  is_player_playing $player1
goto_if_false @CASINO9_12154
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO9_12154
start_new_script @A_TERM 
remove_animation "MISC"
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 593
mark_model_as_no_longer_needed 519
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #SMLPLANE_DOOR
mark_model_as_no_longer_needed #JET_DOOR
mark_model_as_no_longer_needed #JET_BAGGAGE_DOOR
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed #JET_INTERIOR
mark_char_as_no_longer_needed 108@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 110@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 40@
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_object_as_no_longer_needed 168@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 164@
set_max_wanted_level 6
switch_ambient_planes True
remove_blip 35@
remove_blip 43@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 92---------------
// Originally: Saint Mark's Bistro

:CASIN10
script_name 'CASIN10'
gosub @CASIN10_294
if 
  has_deatharrest_been_executed 
goto_if_false @CASIN10_38
gosub @CASIN10_15190

:CASIN10_38
gosub @CASIN10_15491
terminate_this_script 

:CASIN10_47
switch_start 134@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASIN10_292 {caseNum1} 0 {caseLabel1} @CASIN10_110 {caseNum2} 1 {caseLabel2} @CASIN10_212 {caseNum3} -1 {caseLabel3} @CASIN10_292 {caseNum4} -1 {caseLabel4} @CASIN10_292 {caseNum5} -1 {caseLabel5} @CASIN10_292 {caseNum6} -1 {caseLabel6} @CASIN10_292 {caseNum7} -1 {caseLabel7} @CASIN10_292

:CASIN10_110
set_var_text_label s$rosenbergs_health_C6[0] = 'CAS11BA'
set_var_text_label s$rosenbergs_health_C6[1] = 'CAS11BB'
set_var_text_label s$rosenbergs_health_C6[2] = 'CAS11BC'
set_var_text_label s$rosenbergs_health_C6[3] = 'CAS11CA'
set_lvar_int_to_constant 135@ = 5416
set_lvar_int_to_constant 136@ = 5429
set_lvar_int_to_constant 137@ = 5430
set_lvar_int_to_constant 138@ = 5431
$cell_index_end = 3
goto @CASIN10_292

:CASIN10_212
set_var_text_label s$rosenbergs_health_C6[0] = 'CAS11GA'
set_var_text_label s$rosenbergs_health_C6[1] = 'CAS11GB'
set_var_text_label s$rosenbergs_health_C6[2] = 'CAS11GC'
set_lvar_int_to_constant 135@ = 5425
set_lvar_int_to_constant 136@ = 5426
set_lvar_int_to_constant 137@ = 5433
$cell_index_end = 2
goto @CASIN10_292

:CASIN10_292
return 

:CASIN10_294
register_mission_given 
$onmission = 1
36@ = 0
43@ = 0
42@ = 0
44@ = 0
45@ = 0
46@ = 1000
48@ = 0
49@ = 0
51@ = 0
52@ = 0
54@ = 0
55@ = 0
57@ = 0
58@ = 0
60@ = 0
61@ = 0
63@ = 0
64@ = 0
66@ = 0
68@ = 0
70@ = 0
72@ = 0
99@ = 0.0
83@ = 0
83@ = 0
88@ = 0
89@ = 0
91@ = 0
92@ = 0
94@ = 0
95@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
127@ = 0
128@ = 0
129@ = 0
76@ = 0
74@ = 0
80@ = 0
78@ = 0
82@ = 0
85@ = 0
152@ = 0
153@ = 0
155@ = 0
157@ = 0
154@ = 0
156@ = 0
158@ = 0
159@ = 0
load_mission_text 'CASIN10'
wait 0
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_11A'

:CASIN10_783
if 
  not has_cutscene_loaded 
goto_if_false @CASIN10_807
wait 0
goto @CASIN10_783

:CASIN10_807
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASIN10_816
if 
  not has_cutscene_finished 
goto_if_false @CASIN10_840
wait 0
goto @CASIN10_816

:CASIN10_840
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASIN10_853
if 
  get_fading_status 
goto_if_false @CASIN10_877
wait 0
goto @CASIN10_853

:CASIN10_877
clear_cutscene 
set_area_visible 0
$iTerminateAllAmbience = 0
set_wanted_multiplier 0.5
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
wait 1000
request_model 519
request_model 405
load_special_character 1 {modelName} 'MACCER'
load_special_character 2 {modelName} 'PAUL'
load_special_character 3 {modelName} 'ROSE'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5414
load_mission_audio MissionAudioSlot.Slot2 {audioId} 5415
goto @CASIN10_1146
96@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 96@
97@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 97@
98@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 98@
38@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 38@
39@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 39@
123@ = create_car 405 {x} 0.0 {y} 0.0 {z} 0.0
delete_car 123@
113@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
remove_blip 113@

:CASIN10_1146
105@ = load_char_decision_maker DecisionMakerType.Tough
106@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 106@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
110@ = load_char_decision_maker DecisionMakerType.Empty
load_all_models_now 

:CASIN10_1203
if or
  not has_model_loaded 519
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_model_loaded 405
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_1251
wait 0
goto @CASIN10_1203

:CASIN10_1251
if 
  not has_special_character_loaded 3
goto_if_false @CASIN10_1277
wait 0
goto @CASIN10_1251

:CASIN10_1277
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
shut_char_up_for_scripted_speech $scplayer {state} True
load_scene 2163.5891 {y} 1682.2469 {z} 9.86
switch_roads_off 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_off 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
107@ = create_char PedType.Mission1 {modelId} 290 {x} 2162.2129 {y} 1682.752 {z} 9.86
set_char_decision_maker 107@ {handleOrTemplate} 110@
set_char_heading 107@ {heading} 280.0
set_char_only_damaged_by_player 107@ {state} True
task_turn_char_to_face_char 107@ {target} $scplayer
set_char_proofs 107@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 107@ {state} True
clear_area 2160.582 {y} 1682.103 {z} 9.735 {radius} 4.0 {clearParticles} True
111@ = create_car 405 {x} 2160.582 {y} 1682.103 {z} 9.735
set_car_heading 111@ {heading} 0.0
set_car_only_damaged_by_player 111@ {state} True
set_car_proofs 111@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
109@ = create_char_as_passenger 111@ {pedType} PedType.Mission1 {modelId} 292 {seat} SeatId.RearLeft
set_char_decision_maker 109@ {handleOrTemplate} 110@
set_char_only_damaged_by_player 109@ {state} True
set_char_proofs 109@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 109@ {state} True
108@ = create_char_inside_car 111@ {pedType} PedType.Mission1 {modelId} 291
set_char_decision_maker 108@ {handleOrTemplate} 110@
set_char_only_damaged_by_player 108@ {state} True
set_char_proofs 108@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 108@ {state} True
car_set_idle 111@
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2165.228 {fromY} 1680.256 {fromZ} 9.9643 {toX} 2164.9751 {toY} 1684.109 {toZ} 11.4927 {time} 14500 {ease} True
camera_set_vector_track 2162.2739 {fromY} 1682.2469 {fromZ} 11.86 {toX} 2160.582 {toY} 1682.103 {toZ} 11.0 {time} 14500 {ease} True
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen True
make_player_gang_disappear 
do_fade 2000 {direction} Fade.In
clear_area 2162.2739 {y} 1682.2469 {z} 9.86 {radius} 120.0 {clearParticles} True

:CASIN10_1814
if 
  get_fading_status 
goto_if_false @CASIN10_1838
wait 0
goto @CASIN10_1814

:CASIN10_1838
skip_cutscene_start_internal @CASIN10_3929
if 
  is_player_playing $player1
goto_if_false @CASIN10_1934
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11AA' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CASIN10_1953

:CASIN10_1934
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AA'

:CASIN10_1953
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_2182
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2018
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_2023

:CASIN10_2018
clear_char_tasks 107@

:CASIN10_2023
if 
  is_char_dead 108@
goto_if_false @CASIN10_2062
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2062
if 
  is_char_dead 109@
goto_if_false @CASIN10_2101
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2101
if 
  is_car_dead 111@
goto_if_false @CASIN10_2140
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2140
if 
  not is_player_playing $player1
goto_if_false @CASIN10_2175
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AA'

:CASIN10_2175
goto @CASIN10_1953

:CASIN10_2182
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'CAS11AA'
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5427
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11AB' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999

:CASIN10_2239
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASIN10_2472
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2308
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_2313

:CASIN10_2308
clear_char_tasks 107@

:CASIN10_2313
if 
  is_char_dead 108@
goto_if_false @CASIN10_2352
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2352
if 
  is_char_dead 109@
goto_if_false @CASIN10_2391
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2391
if 
  is_car_dead 111@
goto_if_false @CASIN10_2430
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2430
if 
  not is_player_playing $player1
goto_if_false @CASIN10_2465
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AB'

:CASIN10_2465
goto @CASIN10_2239

:CASIN10_2472
clear_char_tasks $scplayer
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AB'
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 5400
if 
  not is_char_dead 107@
goto_if_false @CASIN10_2593
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11AC' {time} 10000 {flag} 1
start_char_facial_talk 107@ {duration} 999999
task_play_anim_non_interruptable 107@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CASIN10_2616

:CASIN10_2593
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2616
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_2821
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2697
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AC'
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2697
if 
  is_char_dead 108@
goto_if_false @CASIN10_2736
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2736
if 
  is_char_dead 109@
goto_if_false @CASIN10_2775
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2775
if 
  is_car_dead 111@
goto_if_false @CASIN10_2814
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2814
goto @CASIN10_2616

:CASIN10_2821
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'CAS11AC'
if 
  not is_char_dead 107@
goto_if_false @CASIN10_2869
stop_char_facial_talk 107@
clear_char_tasks 107@
goto @CASIN10_2892

:CASIN10_2869
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2892
if 
  not is_char_dead 109@
goto_if_false @CASIN10_2955
task_look_at_char 109@ {target} $scplayer {time} -2
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11AD' {time} 10000 {flag} 1
start_char_facial_talk 109@ {duration} 999999
goto @CASIN10_2997

:CASIN10_2955
print_now 'CM10_13' {time} 8000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AD'
goto @CASIN10_15190

:CASIN10_2997
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CASIN10_3198
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_3055
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3055
if 
  is_char_dead 108@
goto_if_false @CASIN10_3094
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3094
if 
  is_char_dead 109@
goto_if_false @CASIN10_3152
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AC'
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3152
if 
  is_car_dead 111@
goto_if_false @CASIN10_3191
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3191
goto @CASIN10_2997

:CASIN10_3198
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AD'
if 
  not is_char_dead 109@
goto_if_false @CASIN10_3246
stop_char_facial_talk 109@
clear_look_at 109@
goto @CASIN10_3269

:CASIN10_3246
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3269
if 
  not is_car_dead 111@
goto_if_false @CASIN10_3468
if 
  not is_char_dead 107@
goto_if_false @CASIN10_3321
task_enter_car_as_passenger 107@ {vehicle} 111@ {time} 10000 {seat} SeatId.BikeRear
goto @CASIN10_3344

:CASIN10_3321
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3344
if 
  is_char_dead 107@
goto_if_false @CASIN10_3383
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3383
if 
  is_char_dead 109@
goto_if_false @CASIN10_3422
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3422
if 
  is_char_dead 108@
goto_if_false @CASIN10_3461
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3461
goto @CASIN10_3491

:CASIN10_3468
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3491
if or
  not is_char_in_car 107@ {vehicle} 111@
  not is_char_in_car 108@ {vehicle} 111@
  not is_char_in_car 109@ {vehicle} 111@
goto_if_false @CASIN10_3693
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_3569
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3569
if 
  is_char_dead 108@
goto_if_false @CASIN10_3608
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3608
if 
  is_char_dead 109@
goto_if_false @CASIN10_3647
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3647
if 
  is_car_dead 111@
goto_if_false @CASIN10_3686
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3686
goto @CASIN10_3491

:CASIN10_3693
if 
  not is_car_dead 111@
goto_if_false @CASIN10_3753
car_goto_coordinates 111@ {x} 2148.0481 {y} 1703.4659 {z} 9.727
set_car_driving_style 111@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 111@ {maxSpeed} 30.0
goto @CASIN10_3776

:CASIN10_3753
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3776
wait 2000
delete_char 107@
delete_char 108@
delete_char 109@
delete_car 111@
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 405
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
set_camera_behind_player 
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
unload_special_character 1
unload_special_character 2
unload_special_character 3
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
114@ = 1

:CASIN10_3929
skip_cutscene_end 
if 
  114@ == 0
goto_if_false @CASIN10_4237
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_3974
if 
  get_fading_status 
goto_if_false @CASIN10_3998
wait 0
goto @CASIN10_3974

:CASIN10_3998
make_player_gang_reappear 
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
delete_char 107@
delete_char 108@
delete_char 109@
delete_car 111@
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 405
unload_special_character 1
unload_special_character 2
unload_special_character 3
switch_widescreen False
camera_reset_new_scriptables 
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
clear_char_tasks_immediately $scplayer
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
do_fade 1000 {direction} Fade.In

:CASIN10_4192
if 
  get_fading_status 
goto_if_false @CASIN10_4216
wait 0
goto @CASIN10_4192

:CASIN10_4216
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False

:CASIN10_4237
print_now 'CM10_1' {time} 10000 {flag} 1
35@ = add_blip_for_coord 1707.828 {y} 1606.639 {z} 9.055
clear_area 1707.828 {y} 1606.639 {z} 9.055 {radius} 2.0 {clearParticles} False

:CASIN10_4297
if 
  not locate_char_any_means_3d $scplayer {x} 1707.828 {y} 1606.639 {z} 9.055 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASIN10_4378
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASIN10_4371
goto @CASIN10_15339

:CASIN10_4371
goto @CASIN10_4297

:CASIN10_4378
remove_blip 35@
print_now 'CM10_10' {time} 10000 {flag} 1
clear_area 1479.714 {y} 1758.306 {z} 12.098 {radius} 2.0 {clearParticles} True
112@ = create_car 519 {x} 1479.714 {y} 1758.306 {z} 12.098
set_car_only_damaged_by_player 112@ {state} True
set_car_heading 112@ {heading} 180.0
34@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True

:CASIN10_4478
if 
  not is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4552
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_4545
print_now 'CM10_17' {time} 8000 {flag} 1
remove_blip 34@
goto @CASIN10_15190

:CASIN10_4545
goto @CASIN10_4478

:CASIN10_4552
if 
  not is_car_dead 112@
goto_if_false @CASIN10_4582
set_car_only_damaged_by_player 112@ {state} False
goto @CASIN10_4610

:CASIN10_4582
print_now 'CM10_17' {time} 8000 {flag} 1
remove_blip 34@
goto @CASIN10_15190

:CASIN10_4610
remove_blip 34@
print_now 'CM10_18' {time} 8000 {flag} 1
126@ = add_blip_for_coord 7500.0 {y} 2478.3401 {z} 200.0
TIMERA = 0

:CASIN10_4658
if or
  not locate_char_in_car_3d $scplayer {x} 7500.0 {y} 2478.3401 {z} 200.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 200.0 {drawSphere} False
  not is_char_sitting_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4995
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_4764
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_4988

:CASIN10_4764
if 
  is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4920
if 
  159@ == 0
goto_if_false @CASIN10_4840
if 
  TIMERA > 40000
goto_if_false @CASIN10_4840
print_help 'CM10_99'
159@ = 1

:CASIN10_4840
if 
  129@ == 1
goto_if_false @CASIN10_4913
print_now 'CM10_18' {time} 8000 {flag} 1
126@ = add_blip_for_coord 7500.0 {y} 2478.3401 {z} 200.0
remove_blip 34@
$blob_flag = 1
129@ = 0

:CASIN10_4913
goto @CASIN10_4988

:CASIN10_4920
if 
  129@ == 0
goto_if_false @CASIN10_4988
remove_blip 126@
34@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
129@ = 1

:CASIN10_4988
goto @CASIN10_4658

:CASIN10_4995
remove_blip 126@
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:CASIN10_5015
if 
  get_fading_status 
goto_if_false @CASIN10_5039
wait 0
goto @CASIN10_5015

:CASIN10_5039
set_area_name 'MARKS'
make_player_gang_disappear 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
clear_wanted_level $player1
set_max_wanted_level 0
set_respawn_point_for_duration_of_mission 1578.446 {y} 1770.682 {z} 9.8358
force_weather_now WeatherType.SunnySf
request_model 124
request_model 346
request_model 420
request_model 405
request_car_recording 602
request_car_recording 603
request_model 17
request_model 150
load_all_models_now 

:CASIN10_5143
if or
  not has_model_loaded 124
  not has_model_loaded 346
  not has_model_loaded 420
  not has_model_loaded 405
  not has_car_recording_been_loaded 602
  not has_car_recording_been_loaded 603
goto_if_false @CASIN10_5194
wait 0
goto @CASIN10_5143

:CASIN10_5194
if or
  not has_model_loaded 17
  not has_model_loaded 150
goto_if_false @CASIN10_5225
wait 0
goto @CASIN10_5194

:CASIN10_5225
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
request_collision -811.999 {y} 457.027
load_scene_in_direction -811.999 {y} 457.027 {z} 1356.6219 {heading} 82.0
load_all_models_now 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASIN10_5335
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
warp_char_from_car_to_coord $scplayer {x} -813.833 {y} 459.11 {z} 998.989
clear_char_tasks_immediately $scplayer
goto @CASIN10_5375

:CASIN10_5335
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -813.833 {y} 459.11 {z} 998.989

:CASIN10_5375
set_camera_behind_player 
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
delete_car 112@
mark_model_as_no_longer_needed 519
161@ = create_car 420 {x} -811.999 {y} 457.027 {z} 1356.6219
set_car_heading 161@ {heading} 270.0
set_vehicle_area_visible 161@ {interiorId} 1
set_car_only_damaged_by_player 161@ {state} True
160@ = create_char_inside_car 161@ {pedType} PedType.CivMale {modelId} 124
set_char_area_visible 160@ {areaId} 1
car_set_idle 161@
warp_char_into_car_as_passenger $scplayer {handle} 161@ {seat} SeatId.RearLeft
163@ = create_car 405 {x} -729.2895 {y} 514.4813 {z} 1370.969
set_car_heading 163@ {heading} 161.5196
set_vehicle_area_visible 163@ {interiorId} 1
set_car_only_damaged_by_player 163@ {state} True
164@ = create_char_inside_car 163@ {pedType} PedType.CivMale {modelId} 124
set_char_area_visible 164@ {areaId} 1
car_set_idle 163@

:CASIN10_5553
if 
  not is_car_waiting_for_world_collision 161@
goto_if_false @CASIN10_5612
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_5589

:CASIN10_5589
if 
  is_car_dead 163@
goto_if_false @CASIN10_5605

:CASIN10_5605
goto @CASIN10_5553

:CASIN10_5612
165@ = create_char PedType.CivMale {modelId} 17 {x} -864.653 {y} 451.569 {z} 1348.584
task_wander_standard 165@
166@ = create_char PedType.CivFemale {modelId} 150 {x} -884.251 {y} 466.693 {z} 1346.577
task_wander_standard 166@
167@ = create_char PedType.CivMale {modelId} 17 {x} -857.588 {y} 467.419 {z} 1349.29
task_wander_standard 167@
168@ = create_char PedType.CivFemale {modelId} 150 {x} -814.46 {y} 466.873 {z} 1356.137
task_wander_standard 168@
169@ = create_char PedType.CivMale {modelId} 17 {x} -781.615 {y} 468.628 {z} 1363.266
task_wander_standard 169@
170@ = create_char PedType.CivFemale {modelId} 150 {x} -737.431 {y} 503.6 {z} 1370.968
task_wander_standard 170@
171@ = create_char PedType.CivMale {modelId} 17 {x} -738.769 {y} 476.826 {z} 1370.306
task_wander_standard 171@
172@ = create_char PedType.CivFemale {modelId} 150 {x} -771.993 {y} 456.237 {z} 1364.4449
task_wander_standard 172@
173@ = create_char PedType.CivMale {modelId} 17 {x} -799.539 {y} 453.03 {z} 1359.074
task_wander_standard 173@
174@ = create_char PedType.CivFemale {modelId} 150 {x} -753.076 {y} 484.357 {z} 1369.885
task_wander_standard 174@
set_fixed_camera_position -751.2452 {y} 449.8578 {z} 1370.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -752.1519 {y} 450.2614 {z} 1370.3781 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 161@
goto_if_false @CASIN10_5992
start_playback_recorded_car 161@ {path} 602
set_playback_speed 161@ {speed} 1.1

:CASIN10_5992
if 
  not is_car_dead 163@
goto_if_false @CASIN10_6026
start_playback_recorded_car 163@ {path} 603
set_playback_speed 163@ {speed} 1.1

:CASIN10_6026
wait 800
if 
  is_car_dead 161@
goto_if_false @CASIN10_6052
stop_playback_recorded_car 161@

:CASIN10_6052
if 
  is_car_dead 163@
goto_if_false @CASIN10_6073
stop_playback_recorded_car 163@

:CASIN10_6073
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen True
do_fade 2000 {direction} Fade.In
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -751.2452 {fromY} 449.8578 {fromZ} 1370.5 {toX} -730.0718 {toY} 483.3791 {toZ} 1373.472 {time} 8600 {ease} True
camera_set_vector_track -752.1519 {fromY} 450.2614 {fromZ} 1370.3781 {toX} -730.9146 {toY} 483.9166 {toZ} 1373.496 {time} 8600 {ease} True

:CASIN10_6176
if 
  get_fading_status 
goto_if_false @CASIN10_6200
wait 0
goto @CASIN10_6176

:CASIN10_6200
set_player_is_in_stadium True
hide_all_frontend_blips True
if 
  is_car_dead 161@
goto_if_false @CASIN10_6229
stop_playback_recorded_car 161@

:CASIN10_6229
if 
  is_car_dead 163@
goto_if_false @CASIN10_6250
stop_playback_recorded_car 163@

:CASIN10_6250
skip_cutscene_start_internal @CASIN10_6465

:CASIN10_6257
if 
  is_playback_going_on_for_car 161@
goto_if_false @CASIN10_6326
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6298
stop_playback_recorded_car 161@

:CASIN10_6298
if 
  is_car_dead 163@
goto_if_false @CASIN10_6319
stop_playback_recorded_car 163@

:CASIN10_6319
goto @CASIN10_6257

:CASIN10_6326
162@ = open_sequence_task 
if 
  not is_car_dead 161@
goto_if_false @CASIN10_6354
task_leave_car -1 {vehicle} 161@

:CASIN10_6354
task_go_straight_to_coord -1 {x} -760.2046 {y} 492.1819 {z} 1370.677 {speed} MoveState.Walk {time} 10000
close_sequence_task 162@
perform_sequence_task $scplayer {sequence} 162@
clear_sequence_task 162@
TIMERA = 0

:CASIN10_6403
if 
  3000 > TIMERA
goto_if_false @CASIN10_6465
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6442

:CASIN10_6442
if 
  is_car_dead 163@
goto_if_false @CASIN10_6458

:CASIN10_6458
goto @CASIN10_6403

:CASIN10_6465
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_6482
if 
  get_fading_status 
goto_if_false @CASIN10_6506
wait 0
goto @CASIN10_6482

:CASIN10_6506
set_weather_to_appropriate_type_now 
clear_char_tasks_immediately $scplayer
clear_sequence_task 162@
if 
  not is_car_dead 161@
goto_if_false @CASIN10_6669
stop_playback_recorded_car 161@
if 
  is_char_in_car $scplayer {vehicle} 161@
goto_if_false @CASIN10_6669
warp_char_from_car_to_coord $scplayer {x} -760.2046 {y} 492.1819 {z} 1370.677

:CASIN10_6578
if 
  is_char_in_any_car $scplayer
goto_if_false @CASIN10_6669
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6614

:CASIN10_6614
if 
  is_car_dead 163@
goto_if_false @CASIN10_6630

:CASIN10_6630
if 
  is_char_dead 160@
goto_if_false @CASIN10_6646

:CASIN10_6646
if 
  is_char_dead 164@
goto_if_false @CASIN10_6662

:CASIN10_6662
goto @CASIN10_6578

:CASIN10_6669
if 
  not is_car_dead 163@
goto_if_false @CASIN10_6690
stop_playback_recorded_car 163@

:CASIN10_6690
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @CASIN10_6731
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 60
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol
goto @CASIN10_6738

:CASIN10_6731
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol

:CASIN10_6738
remove_car_recording 602
remove_car_recording 603
camera_reset_new_scriptables 
delete_car 161@
delete_char 160@
delete_car 163@
delete_char 164@
delete_char 165@
delete_char 166@
delete_char 167@
delete_char 168@
delete_char 169@
delete_char 170@
delete_char 171@
delete_char 172@
delete_char 173@
delete_char 174@
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
mark_model_as_no_longer_needed 420
request_model 124
request_model 125
request_model 126
request_model 349
request_model 352
request_model 346
request_animation "SWAT"
request_model 405
load_special_character 1 {modelName} 'FORELLI'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 5428
load_mission_audio MissionAudioSlot.Slot2 {audioId} 5417
load_all_models_now 

:CASIN10_6903
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_animation_loaded "SWAT"
  not has_model_loaded 349
  not has_model_loaded 352
  not has_special_character_loaded 1
goto_if_false @CASIN10_6955
wait 0
goto @CASIN10_6903

:CASIN10_6955
if or
  not has_model_loaded 346
  not has_model_loaded 126
  not has_model_loaded 405
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_6999
wait 0
goto @CASIN10_6955

:CASIN10_6999
40@ = create_char PedType.Mission1 {modelId} 290 {x} -783.62 {y} 505.055 {z} 1370.788
set_char_allowed_to_duck 40@ {state} False
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_uses_upperbody_damage_anims_only 40@ {state} True
set_char_heading 40@ {heading} 348.44
41@ = add_blip_for_char 40@
set_char_decision_maker 40@ {handleOrTemplate} 110@
set_char_suffers_critical_hits 40@ {state} False
set_char_max_health 40@ {maxHealth} 1000
set_char_health 40@ {health} 1000
set_char_accuracy 40@ {accuracy} 80
set_char_shoot_rate 40@ {rate} 50
47@ = create_char PedType.Mission1 {modelId} 124 {x} -783.223 {y} 497.549 {z} 1370.78
set_char_allowed_to_duck 47@ {state} False
give_weapon_to_char 47@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 47@ {heading} 348.44
set_char_decision_maker 47@ {handleOrTemplate} 106@
set_char_accuracy 47@ {accuracy} 65
set_char_shoot_rate 47@ {rate} 40
50@ = create_char PedType.Mission1 {modelId} 125 {x} -788.965 {y} 497.522 {z} 1370.78
set_char_allowed_to_duck 50@ {state} False
give_weapon_to_char 50@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 50@ {heading} 348.44
set_char_decision_maker 50@ {handleOrTemplate} 106@
set_char_accuracy 50@ {accuracy} 65
set_char_shoot_rate 50@ {rate} 45
53@ = create_char PedType.Mission1 {modelId} 126 {x} -791.034 {y} 500.973 {z} 1370.78
set_char_allowed_to_duck 53@ {state} False
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 53@ {heading} 5.1
set_char_decision_maker 53@ {handleOrTemplate} 105@
set_char_accuracy 53@ {accuracy} 70
set_char_shoot_rate 53@ {rate} 50
56@ = create_char PedType.Mission1 {modelId} 124 {x} -780.395 {y} 500.947 {z} 1370.78
set_char_allowed_to_duck 56@ {state} False
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 56@ {heading} 5.1
set_char_decision_maker 56@ {handleOrTemplate} 105@
set_char_accuracy 56@ {accuracy} 40
set_char_shoot_rate 56@ {rate} 60
59@ = create_char PedType.Mission1 {modelId} 125 {x} -794.945 {y} 507.819 {z} 1370.788
set_char_allowed_to_duck 59@ {state} False
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 59@ {heading} 174.837
set_char_decision_maker 59@ {handleOrTemplate} 105@
set_char_accuracy 59@ {accuracy} 70
set_char_shoot_rate 59@ {rate} 45
62@ = create_char PedType.Mission1 {modelId} 126 {x} -793.0 {y} 506.434 {z} 1370.788
set_char_allowed_to_duck 62@ {state} False
give_weapon_to_char 62@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 62@ {heading} 113.867
set_char_decision_maker 62@ {handleOrTemplate} 105@
set_char_accuracy 62@ {accuracy} 65
set_char_shoot_rate 62@ {rate} 40
65@ = create_char PedType.Mission1 {modelId} 125 {x} -785.853 {y} 508.372 {z} 1370.774
set_char_allowed_to_duck 65@ {state} False
give_weapon_to_char 65@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 65@ {heading} 212.0
set_char_decision_maker 65@ {handleOrTemplate} 105@
set_char_accuracy 65@ {accuracy} 65
set_char_shoot_rate 65@ {rate} 40
69@ = create_char PedType.Mission1 {modelId} 124 {x} -792.191 {y} 508.908 {z} 1370.788
set_char_allowed_to_duck 69@ {state} False
give_weapon_to_char 69@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 69@ {heading} 188.0
set_char_decision_maker 69@ {handleOrTemplate} 105@
set_char_accuracy 69@ {accuracy} 70
set_char_shoot_rate 69@ {rate} 40
73@ = create_char PedType.Mission1 {modelId} 126 {x} -783.975 {y} 498.564 {z} 1375.1949
set_char_allowed_to_duck 73@ {state} False
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 73@ {heading} 172.352
set_char_decision_maker 73@ {handleOrTemplate} 105@
set_char_accuracy 73@ {accuracy} 65
set_char_shoot_rate 73@ {rate} 40
77@ = create_char PedType.Mission1 {modelId} 124 {x} -792.542 {y} 494.229 {z} 1375.235
set_char_allowed_to_duck 77@ {state} False
give_weapon_to_char 77@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 77@ {heading} 279.542
set_char_decision_maker 77@ {handleOrTemplate} 105@
set_char_accuracy 77@ {accuracy} 70
set_char_shoot_rate 77@ {rate} 50
81@ = create_char PedType.Mission1 {modelId} 125 {x} -786.142 {y} 491.815 {z} 1375.235
set_char_allowed_to_duck 81@ {state} False
give_weapon_to_char 81@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 81@ {heading} 270.0
set_char_decision_maker 81@ {handleOrTemplate} 110@
set_char_accuracy 81@ {accuracy} 75
set_char_shoot_rate 81@ {rate} 40
84@ = create_char PedType.Mission1 {modelId} 124 {x} -793.7 {y} 494.999 {z} 1375.243
set_char_allowed_to_duck 84@ {state} False
give_weapon_to_char 84@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 84@ {heading} 270.0
set_char_decision_maker 84@ {handleOrTemplate} 110@
set_char_accuracy 84@ {accuracy} 65
set_char_shoot_rate 84@ {rate} 40
87@ = create_char PedType.Mission1 {modelId} 124 {x} -781.141 {y} 494.625 {z} 1367.571
set_char_allowed_to_duck 87@ {state} False
give_weapon_to_char 87@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 87@ {heading} 90.0
set_char_decision_maker 87@ {handleOrTemplate} 105@
set_char_accuracy 87@ {accuracy} 65
set_char_shoot_rate 87@ {rate} 40
90@ = create_char PedType.Mission1 {modelId} 126 {x} -786.705 {y} 501.671 {z} 1366.4139
set_char_allowed_to_duck 90@ {state} False
give_weapon_to_char 90@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 90@ {heading} 270.0
set_char_decision_maker 90@ {handleOrTemplate} 105@
set_char_accuracy 90@ {accuracy} 65
set_char_shoot_rate 90@ {rate} 40
93@ = create_char PedType.Mission1 {modelId} 125 {x} -790.646 {y} 505.521 {z} 1366.4139
set_char_allowed_to_duck 93@ {state} False
give_weapon_to_char 93@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 93@ {heading} 231.0
set_char_decision_maker 93@ {handleOrTemplate} 106@
set_char_accuracy 93@ {accuracy} 65
set_char_shoot_rate 93@ {rate} 50
goto @CASIN10_8307
120@ = create_char PedType.Mission1 {modelId} 126 {x} -816.005 {y} 493.329 {z} 1358.293
delete_char 120@
121@ = create_char PedType.Mission1 {modelId} 124 {x} -821.268 {y} 508.167 {z} 1358.2729
delete_char 121@
122@ = create_char PedType.Mission1 {modelId} 125 {x} -828.77 {y} 510.594 {z} 1357.307
delete_char 122@

:CASIN10_8307
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -783.104 {y} 490.814 {z} 1375.235
set_char_heading $scplayer {heading} 8.832
load_scene_in_direction -783.104 {y} 490.814 {z} 1375.235 {heading} 8.832
set_fixed_camera_position -787.9748 {y} 493.9206 {z} 1375.796 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -787.056 {y} 494.3102 {z} 1375.859 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASIN10_8430
if 
  get_fading_status 
goto_if_false @CASIN10_8454
wait 0
goto @CASIN10_8430

:CASIN10_8454
116@ = 1
skip_cutscene_start_internal @CASIN10_9952
task_go_straight_to_coord $scplayer {x} -783.153 {y} 495.215 {z} 1375.2271 {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8525
task_look_at_char $scplayer {target} 73@ {time} -1
goto @CASIN10_8557

:CASIN10_8525
if 
  74@ == 0
goto_if_false @CASIN10_8557
152@ += 1
74@ = 1

:CASIN10_8557
if 
  not is_char_dead 77@
goto_if_false @CASIN10_8590
task_look_at_char 77@ {target} $scplayer {time} -1
goto @CASIN10_8622

:CASIN10_8590
if 
  78@ == 0
goto_if_false @CASIN10_8622
152@ += 1
78@ = 1

:CASIN10_8622
75@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -783.336 {y} 496.837 {z} 1375.235 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -1
task_aim_gun_at_char -1 {target} $scplayer {time} 15000
close_sequence_task 75@
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8717
perform_sequence_task 73@ {sequence} 75@
clear_sequence_task 75@
goto @CASIN10_8749

:CASIN10_8717
if 
  74@ == 0
goto_if_false @CASIN10_8749
152@ += 1
74@ = 1

:CASIN10_8749
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8809
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11DA' {time} 10000 {flag} 1
start_char_facial_talk 73@ {duration} 999999
shut_char_up_for_scripted_speech 73@ {state} True
goto @CASIN10_8845

:CASIN10_8809
clear_mission_audio MissionAudioSlot.Slot1
if 
  74@ == 0
goto_if_false @CASIN10_8845
152@ += 1
74@ = 1

:CASIN10_8845
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_8930
wait 0
gosub @CASIN10_15776
if 
  74@ == 0
goto_if_false @CASIN10_8923
if 
  is_char_dead 73@
goto_if_false @CASIN10_8923
clear_mission_audio MissionAudioSlot.Slot1
152@ += 1
74@ = 1

:CASIN10_8923
goto @CASIN10_8845

:CASIN10_8930
clear_this_print 'CAS11DA'
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8983
stop_char_facial_talk 73@
shut_char_up_for_scripted_speech 73@ {state} False
task_stay_in_same_place $scplayer {state} True
goto @CASIN10_9015

:CASIN10_8983
if 
  74@ == 0
goto_if_false @CASIN10_9015
152@ += 1
74@ = 1

:CASIN10_9015
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11DB' {time} 4000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999
shut_char_up_for_scripted_speech $scplayer {state} True
set_fixed_camera_position -785.9136 {y} 497.3071 {z} 1375.579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -785.0042 {y} 496.9065 {z} 1375.6899 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 73@
goto_if_false @CASIN10_9170
task_toggle_duck 73@ {state} True
set_char_accuracy 73@ {accuracy} 5
task_shoot_at_coord 73@ {x} -781.079 {y} 495.708 {z} 1376.1949 {time} 10000
set_char_shoot_rate 73@ {rate} 80
goto @CASIN10_9202

:CASIN10_9170
if 
  74@ == 0
goto_if_false @CASIN10_9202
152@ += 1
74@ = 1

:CASIN10_9202
37@ = open_sequence_task 
task_achieve_heading -1 {heading} 270.0
task_play_anim_non_interruptable -1 {animationName} "JMP_WALL1M_180" {animationFile} "SWAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
99@ = 0.0
close_sequence_task 37@
perform_sequence_task $scplayer {sequence} 37@
if 
  is_char_playing_anim $scplayer {animationName} "JMP_WALL1M_180"
goto_if_false @CASIN10_9336
99@ = get_char_anim_current_time $scplayer {animationName} "JMP_WALL1M_180"

:CASIN10_9336
if 
  99@ <> 1.0
goto_if_false @CASIN10_9431
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "JMP_WALL1M_180"
goto_if_false @CASIN10_9417
99@ = get_char_anim_current_time $scplayer {animationName} "JMP_WALL1M_180"

:CASIN10_9417
gosub @CASIN10_15776
goto @CASIN10_9336

:CASIN10_9431
67@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -781.563 {y} 505.346 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
if 
  not is_char_dead 65@
goto_if_false @CASIN10_9519
perform_sequence_task 65@ {sequence} 67@
clear_sequence_task 67@
goto @CASIN10_9551

:CASIN10_9519
if 
  66@ == 0
goto_if_false @CASIN10_9551
152@ += 1
66@ = 1

:CASIN10_9551
71@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -786.511 {y} 505.073 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
if 
  not is_char_dead 69@
goto_if_false @CASIN10_9639
perform_sequence_task 69@ {sequence} 71@
clear_sequence_task 71@
goto @CASIN10_9671

:CASIN10_9639
if 
  70@ == 0
goto_if_false @CASIN10_9671
152@ += 1
70@ = 1

:CASIN10_9671
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CASIN10_9724
wait 0
gosub @CASIN10_15776
if 
  is_char_dead $scplayer
goto_if_false @CASIN10_9717
clear_mission_audio MissionAudioSlot.Slot2

:CASIN10_9717
goto @CASIN10_9671

:CASIN10_9724
clear_this_print 'CAS11DB'
stop_char_facial_talk $scplayer
shut_char_up_for_scripted_speech $scplayer {state} False
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
if 
  not is_char_dead 77@
goto_if_false @CASIN10_9812
perform_sequence_task 77@ {sequence} 79@
clear_sequence_task 79@
goto @CASIN10_9844

:CASIN10_9812
if 
  78@ == 0
goto_if_false @CASIN10_9844
152@ += 1
78@ = 1

:CASIN10_9844
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -780.806 {y} 495.717 {z} 1375.0
set_char_heading $scplayer {heading} 100.0
task_toggle_duck $scplayer {state} True
task_play_anim_non_interruptable $scplayer {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
restore_camera_jumpcut 
clear_sequence_task 37@
36@ = 1

:CASIN10_9952
skip_cutscene_end 
if 
  36@ == 0
goto_if_false @CASIN10_10266
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
shut_char_up_for_scripted_speech $scplayer {state} False
67@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -781.563 {y} 505.346 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
if 
  not is_char_dead 65@
goto_if_false @CASIN10_10077
perform_sequence_task 65@ {sequence} 67@
clear_sequence_task 67@
goto @CASIN10_10109

:CASIN10_10077
if 
  66@ == 0
goto_if_false @CASIN10_10109
152@ += 1
66@ = 1

:CASIN10_10109
71@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -786.511 {y} 505.073 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
if 
  not is_char_dead 69@
goto_if_false @CASIN10_10197
perform_sequence_task 69@ {sequence} 71@
clear_sequence_task 71@
goto @CASIN10_10229

:CASIN10_10197
if 
  70@ == 0
goto_if_false @CASIN10_10229
152@ += 1
70@ = 1

:CASIN10_10229
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -780.806 {y} 495.717 {z} 1375.0
set_char_heading $scplayer {heading} 100.0
restore_camera_jumpcut 

:CASIN10_10266
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead 73@
goto_if_false @CASIN10_10387
set_char_accuracy 73@ {accuracy} 40
if 
  76@ == 0
goto_if_false @CASIN10_10380
set_char_shoot_rate 73@ {rate} 40
task_stay_in_same_place 73@ {state} False
task_kill_char_on_foot 73@ {target} $scplayer
76@ = 1

:CASIN10_10380
goto @CASIN10_10419

:CASIN10_10387
if 
  74@ == 0
goto_if_false @CASIN10_10419
152@ += 1
74@ = 1

:CASIN10_10419
make_player_gang_reappear 
if 
  116@ == 1
goto_if_false @CASIN10_10884
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_10684
if 
  not is_char_dead 59@
goto_if_false @CASIN10_10550
if 
  61@ == 0
goto_if_false @CASIN10_10543
set_lvar_int_to_lvar_int 101@ = 59@
gosub @CASIN10_18943
61@ = 1

:CASIN10_10543
goto @CASIN10_10582

:CASIN10_10550
if 
  60@ == 0
goto_if_false @CASIN10_10582
152@ += 1
60@ = 1

:CASIN10_10582
if 
  not is_char_dead 62@
goto_if_false @CASIN10_10645
if 
  64@ == 0
goto_if_false @CASIN10_10638
set_lvar_int_to_lvar_int 102@ = 62@
gosub @CASIN10_19026
64@ = 1

:CASIN10_10638
goto @CASIN10_10677

:CASIN10_10645
if 
  63@ == 0
goto_if_false @CASIN10_10677
152@ += 1
63@ = 1

:CASIN10_10677
goto @CASIN10_10884

:CASIN10_10684
if 
  not is_char_dead 59@
goto_if_false @CASIN10_10752
if 
  61@ == 0
goto_if_false @CASIN10_10745
clear_char_tasks 59@
task_stay_in_same_place 59@ {state} False
task_kill_char_on_foot 59@ {target} $scplayer
61@ = 1

:CASIN10_10745
goto @CASIN10_10784

:CASIN10_10752
if 
  60@ == 0
goto_if_false @CASIN10_10784
152@ += 1
60@ = 1

:CASIN10_10784
if 
  not is_char_dead 62@
goto_if_false @CASIN10_10852
if 
  64@ == 0
goto_if_false @CASIN10_10845
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} False
task_kill_char_on_foot 62@ {target} $scplayer
64@ = 1

:CASIN10_10845
goto @CASIN10_10884

:CASIN10_10852
if 
  63@ == 0
goto_if_false @CASIN10_10884
152@ += 1
63@ = 1

:CASIN10_10884
print_now 'CM10_2' {time} 10000 {flag} 1

:CASIN10_10900
if 
  152@ <> 19
goto_if_false @CASIN10_13775
wait 0
if 
  118@ == 0
goto_if_false @CASIN10_11020
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11020
gosub @CASIN10_19307
if 
  119@ == 0
goto_if_false @CASIN10_11020
gosub @CASIN10_19952

:CASIN10_11020
if 
  119@ == 1
goto_if_false @CASIN10_11045
gosub @CASIN10_20515

:CASIN10_11045
gosub @CASIN10_15776
if 
  55@ == 0
goto_if_false @CASIN10_11302
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_11220
if 
  60@ == 1
goto_if_false @CASIN10_11213
if 
  not is_char_dead 53@
goto_if_false @CASIN10_11181
set_lvar_int_to_lvar_int 101@ = 53@
gosub @CASIN10_18943
55@ = 1
goto @CASIN10_11213

:CASIN10_11181
if 
  54@ == 0
goto_if_false @CASIN10_11213
152@ += 1
54@ = 1

:CASIN10_11213
goto @CASIN10_11302

:CASIN10_11220
if 
  not is_char_dead 53@
goto_if_false @CASIN10_11270
clear_char_tasks 53@
task_stay_in_same_place 53@ {state} False
task_kill_char_on_foot 53@ {target} $scplayer
55@ = 2
goto @CASIN10_11302

:CASIN10_11270
if 
  54@ == 0
goto_if_false @CASIN10_11302
152@ += 1
54@ = 1

:CASIN10_11302
if 
  58@ == 0
goto_if_false @CASIN10_11552
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_11470
if 
  63@ == 1
goto_if_false @CASIN10_11463
if 
  not is_char_dead 56@
goto_if_false @CASIN10_11431
set_lvar_int_to_lvar_int 102@ = 56@
gosub @CASIN10_19026
58@ = 1
goto @CASIN10_11463

:CASIN10_11431
if 
  57@ == 0
goto_if_false @CASIN10_11463
152@ += 1
57@ = 1

:CASIN10_11463
goto @CASIN10_11552

:CASIN10_11470
if 
  not is_char_dead 56@
goto_if_false @CASIN10_11520
clear_char_tasks 56@
task_stay_in_same_place 56@ {state} False
task_kill_char_on_foot 56@ {target} $scplayer
58@ = 2
goto @CASIN10_11552

:CASIN10_11520
if 
  57@ == 0
goto_if_false @CASIN10_11552
152@ += 1
57@ = 1

:CASIN10_11552
if 
  89@ == 0
goto_if_false @CASIN10_11695
if 
  not is_char_dead 87@
goto_if_false @CASIN10_11663
if 
  is_char_in_area_3d $scplayer {leftBottomX} -792.344 {leftBottomY} 489.644 {leftBottomZ} 1370.782 {rightTopX} -783.436 {rightTopY} 493.662 {rightTopZ} 1366.0 {drawSphere} False
goto_if_false @CASIN10_11656
set_lvar_int_to_lvar_int 103@ = 87@
gosub @CASIN10_19109
89@ = 1

:CASIN10_11656
goto @CASIN10_11695

:CASIN10_11663
if 
  88@ == 0
goto_if_false @CASIN10_11695
152@ += 1
88@ = 1

:CASIN10_11695
if 
  92@ == 0
goto_if_false @CASIN10_11838
if 
  not is_char_dead 90@
goto_if_false @CASIN10_11806
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11799
set_lvar_int_to_lvar_int 104@ = 90@
gosub @CASIN10_19208
92@ = 1

:CASIN10_11799
goto @CASIN10_11838

:CASIN10_11806
if 
  91@ == 0
goto_if_false @CASIN10_11838
152@ += 1
91@ = 1

:CASIN10_11838
if 
  95@ == 0
goto_if_false @CASIN10_11986
if 
  not is_char_dead 93@
goto_if_false @CASIN10_11954
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11947
clear_char_tasks 93@
task_stay_in_same_place 93@ {state} True
task_kill_char_on_foot 93@ {target} $scplayer
95@ = 1

:CASIN10_11947
goto @CASIN10_11986

:CASIN10_11954
if 
  94@ == 0
goto_if_false @CASIN10_11986
152@ += 1
94@ = 1

:CASIN10_11986
if 
  is_player_playing $player1
goto_if_false @CASIN10_12016
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:CASIN10_12016
if 
  42@ == 0
goto_if_false @CASIN10_13768
if 
  is_char_dead 40@
goto_if_false @CASIN10_12076
remove_blip 41@
152@ += 1
42@ = 1
goto @CASIN10_13768

:CASIN10_12076
46@ = get_char_health 40@
if 
  43@ == 0
goto_if_false @CASIN10_12148
clear_char_relationship 40@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Player1
clear_char_tasks_immediately 40@
task_follow_path_nodes_to_coord 40@ {x} -781.09 {y} 497.79 {z} 1370.782 {speed} MoveState.Run {time} 10000
43@ = 1

:CASIN10_12148
if 
  43@ == 1
goto_if_false @CASIN10_12246
if 
  locate_char_on_foot_3d 40@ {x} -781.09 {y} 497.79 {z} 1370.782 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12246
task_follow_path_nodes_to_coord 40@ {x} -791.749 {y} 491.447 {z} 1370.782 {speed} MoveState.Run {time} 10000
43@ = 2

:CASIN10_12246
if 
  43@ == 2
goto_if_false @CASIN10_12531
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} -777.827 {leftBottomY} 510.0 {leftBottomZ} 1369.0 {rightTopX} -797.0 {rightTopY} 494.0 {rightTopZ} 1373.0 {drawSphere} False
goto_if_false @CASIN10_12319
117@ = 1

:CASIN10_12319
if 
  locate_char_on_foot_3d 40@ {x} -791.749 {y} 491.447 {z} 1370.782 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12531
if 
  44@ == 0
goto_if_false @CASIN10_12424
set_char_heading 40@ {heading} 0.0
task_stay_in_same_place 40@ {state} True
task_kill_char_on_foot 40@ {target} $scplayer
TIMERB = 0
44@ = 1

:CASIN10_12424
if 
  117@ == 1
goto_if_false @CASIN10_12531
if 
  44@ == 1
goto_if_false @CASIN10_12531
if or
  TIMERB >= 6000
  800 >= 46@
goto_if_false @CASIN10_12531
clear_char_tasks 40@
task_stay_in_same_place 40@ {state} False
task_follow_path_nodes_to_coord 40@ {x} -779.844 {y} 492.67 {z} 1367.616 {speed} MoveState.Run {time} 10000
43@ = 3

:CASIN10_12531
if 
  43@ == 3
goto_if_false @CASIN10_12629
if 
  locate_char_on_foot_3d 40@ {x} -779.844 {y} 492.67 {z} 1367.616 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12629
task_follow_path_nodes_to_coord 40@ {x} -779.844 {y} 499.811 {z} 1367.571 {speed} MoveState.Run {time} 10000
43@ = 4

:CASIN10_12629
if 
  43@ == 4
goto_if_false @CASIN10_12752
if 
  locate_char_on_foot_3d 40@ {x} -779.844 {y} 499.811 {z} 1367.571 {xRadius} 0.75 {yRadius} 0.75 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12752
if 
  46@ > 99
goto_if_false @CASIN10_12720
set_char_health 40@ {health} 100

:CASIN10_12720
task_follow_path_nodes_to_coord 40@ {x} -787.237 {y} 499.939 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 5

:CASIN10_12752
if 
  43@ == 5
goto_if_false @CASIN10_12850
if 
  locate_char_on_foot_3d 40@ {x} -787.237 {y} 499.939 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12850
task_follow_path_nodes_to_coord 40@ {x} -787.543 {y} 508.034 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 6

:CASIN10_12850
if 
  43@ == 6
goto_if_false @CASIN10_12948
if 
  locate_char_on_foot_3d 40@ {x} -787.543 {y} 508.034 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12948
task_follow_path_nodes_to_coord 40@ {x} -791.552 {y} 507.859 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 7

:CASIN10_12948
if 
  43@ == 7
goto_if_false @CASIN10_13046
if 
  locate_char_on_foot_3d 40@ {x} -791.552 {y} 507.859 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13046
task_follow_path_nodes_to_coord 40@ {x} -791.045 {y} 498.883 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 8

:CASIN10_13046
if 
  43@ == 8
goto_if_false @CASIN10_13144
if 
  locate_char_on_foot_3d 40@ {x} -791.045 {y} 498.883 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13144
task_follow_path_nodes_to_coord 40@ {x} -791.81 {y} 492.473 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 9

:CASIN10_13144
if 
  43@ == 9
goto_if_false @CASIN10_13242
if 
  locate_char_on_foot_3d 40@ {x} -791.81 {y} 492.473 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13242
task_follow_path_nodes_to_coord 40@ {x} -798.194 {y} 492.462 {z} 1366.274 {speed} MoveState.Run {time} 10000
43@ = 10

:CASIN10_13242
if 
  43@ == 10
goto_if_false @CASIN10_13340
if 
  locate_char_on_foot_3d 40@ {x} -798.194 {y} 492.462 {z} 1366.274 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13340
task_follow_path_nodes_to_coord 40@ {x} -799.081 {y} 503.71 {z} 1361.913 {speed} MoveState.Run {time} 10000
43@ = 11

:CASIN10_13340
if 
  43@ == 11
goto_if_false @CASIN10_13438
if 
  locate_char_on_foot_3d 40@ {x} -799.081 {y} 503.71 {z} 1361.913 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13438
task_follow_path_nodes_to_coord 40@ {x} -821.412 {y} 504.901 {z} 1357.35 {speed} MoveState.Run {time} 10000
43@ = 12

:CASIN10_13438
if 
  43@ == 12
goto_if_false @CASIN10_13631
if 
  locate_char_on_foot_3d 40@ {x} -821.412 {y} 504.901 {z} 1357.358 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13631
124@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -830.889 {y} 501.107 {z} 1357.374 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} -830.711 {y} 498.369 {z} 1357.385 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 260.984
close_sequence_task 124@
if 
  not is_char_dead 40@
goto_if_false @CASIN10_13612
perform_sequence_task 40@ {sequence} 124@
clear_sequence_task 124@
43@ = 13
goto @CASIN10_13631

:CASIN10_13612
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_13631
if 
  43@ == 13
goto_if_false @CASIN10_13768
if 
  locate_char_on_foot_3d 40@ {x} -830.711 {y} 498.369 {z} 1357.385 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13768
if 
  not is_char_dead 40@
goto_if_false @CASIN10_13749
task_stay_in_same_place 40@ {state} True
task_toggle_duck 40@ {state} True
task_kill_char_on_foot 40@ {target} $scplayer
43@ = 14
goto @CASIN10_13768

:CASIN10_13749
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_13768
goto @CASIN10_10900

:CASIN10_13775
wait 3000
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_13816
if 
  get_fading_status 
goto_if_false @CASIN10_13840
wait 0
goto @CASIN10_13816

:CASIN10_13840
make_player_gang_disappear 
if 
  118@ == 0
goto_if_false @CASIN10_13867
gosub @CASIN10_19307

:CASIN10_13867
delete_char 87@
delete_char 90@
delete_char 93@
delete_char 120@
delete_char 121@
delete_char 122@
delete_car 123@
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
remove_animation "SWAT"
remove_char_elegantly 40@
unload_special_character 1
request_model 519
request_car_recording 601
load_all_models_now 

:CASIN10_13977
if or
  not has_model_loaded 519
  not has_car_recording_been_loaded 601
goto_if_false @CASIN10_14009
wait 0
goto @CASIN10_13977

:CASIN10_14009
set_area_visible 0
set_player_is_in_stadium False
set_char_area_visible $scplayer {areaId} 0
clear_help 
clear_prints 
112@ = create_car 519 {x} 7500.0 {y} 2478.3401 {z} 200.0
plane_starts_in_air 112@
set_car_only_damaged_by_player 112@ {state} True
set_car_proofs 112@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 112@ {heading} 110.0
set_plane_undercarriage_up 112@ {state} True
warp_char_into_car $scplayer {vehicle} 112@
start_playback_recorded_car 112@ {path} 601
set_fixed_camera_position 8867.6367 {y} 1581.89 {z} 193.188 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 8867.6055 {y} 1582.8831 {z} 193.0727 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASIN10_14181
if 
  get_fading_status 
goto_if_false @CASIN10_14205
wait 0
goto @CASIN10_14181

:CASIN10_14205
skip_cutscene_start_internal @CASIN10_14288
TIMERA = 0

:CASIN10_14219
if 
  2800 > TIMERA
goto_if_false @CASIN10_14288
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_14281
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_14281
goto @CASIN10_14219

:CASIN10_14288
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:CASIN10_14305
if 
  get_fading_status 
goto_if_false @CASIN10_14329
wait 0
goto @CASIN10_14305

:CASIN10_14329
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14366
if 
  is_playback_going_on_for_car 112@
goto_if_false @CASIN10_14366
stop_playback_recorded_car 112@

:CASIN10_14366
remove_car_recording 601
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14458
set_car_coordinates 112@ {x} 7500.0 {y} 2478.3401 {z} 200.0
freeze_car_position 112@ {state} True
plane_starts_in_air 112@
set_car_only_damaged_by_player 112@ {state} False
set_car_proofs 112@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 112@ {heading} 110.0
set_plane_undercarriage_up 112@ {state} True

:CASIN10_14458
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
hide_all_frontend_blips False
set_max_wanted_level 6
do_fade 500 {direction} Fade.In
switch_widescreen False

:CASIN10_14491
if 
  get_fading_status 
goto_if_false @CASIN10_14515
wait 0
goto @CASIN10_14491

:CASIN10_14515
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14576
freeze_car_position 112@ {state} False
set_car_forward_speed 112@ {forwardSpeed} 30.0
goto @CASIN10_14599

:CASIN10_14576
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_14599
print_now 'CM10_19' {time} 8000 {flag} 1
130@ = add_blip_for_coord 1477.225 {y} 1640.364 {z} 9.86
set_always_draw_3d_markers True
131@ = 0
132@ = 0
133@ = 0
134@ = 1
gosub @CASIN10_47
129@ = 0

:CASIN10_14681
if or
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
  not is_char_in_area_3d $scplayer {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15159
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_14826
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_15152

:CASIN10_14826
if 
  is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_15028
if 
  locate_char_in_car_3d $scplayer {x} 1477.225 {y} 1640.364 {z} 9.86 {xRadius} 350.0 {yRadius} 350.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @CASIN10_14900
gosub @CASIN10_20310

:CASIN10_14900
if 
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15021
if 
  129@ == 1
goto_if_false @CASIN10_15021
print_now 'CM10_19' {time} 8000 {flag} 1
130@ = add_blip_for_coord 1477.225 {y} 1640.364 {z} 9.86
remove_blip 113@
$blob_flag = 1
129@ = 0

:CASIN10_15021
goto @CASIN10_15152

:CASIN10_15028
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15152
if 
  129@ == 0
goto_if_false @CASIN10_15152
remove_blip 130@
113@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
129@ = 1

:CASIN10_15152
goto @CASIN10_14681

:CASIN10_15159
remove_blip 130@
remove_blip 113@
set_always_draw_3d_markers False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
goto @CASIN10_15339

:CASIN10_15190
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if or
  is_char_in_water $scplayer
  is_car_in_water 112@
goto_if_false @CASIN10_15249
set_up_skip_after_mission 2149.6089 {y} 1681.1169 {z} 9.82 {heading} 90.0

:CASIN10_15249
if 
  is_char_in_air $scplayer
goto_if_false @CASIN10_15337
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASIN10_15337
if 
  not is_player_using_jetpack $player1
goto_if_false @CASIN10_15337
if 
  $player_fall_state <= 0
goto_if_false @CASIN10_15337
set_up_skip_after_mission 2149.6089 {y} 1681.1169 {z} 9.82 {heading} 90.0

:CASIN10_15337
return 

:CASIN10_15339
$flag_casino_mission_counter += 1
register_mission_passed 'CASIN10'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
award_player_mission_respect 35
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $heist_contact_blip
set_int_stat StatId.CitiesPassed {value} 3
start_new_script @MANSION 
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
terminate_all_scripts_with_this_name 'MOBLA2'
start_new_script @MOB_LA2 
set_int_stat StatId.PassedCasino10 {value} 1
return 

:CASIN10_15491
set_max_wanted_level 6
set_wanted_multiplier 1.0
remove_char_elegantly 40@
$onmission = 0
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
clear_sequence_task 75@
clear_sequence_task 79@
clear_sequence_task 97@
clear_sequence_task 98@
clear_sequence_task 96@
clear_sequence_task 162@
clear_sequence_task 67@
clear_sequence_task 71@
clear_sequence_task 38@
clear_sequence_task 39@
clear_sequence_task 124@
remove_blip 41@
remove_blip 34@
remove_blip 35@
remove_blip 126@
remove_blip 113@
remove_blip 130@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 519
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_decision_maker 105@
remove_decision_maker 110@
remove_car_recording 601
remove_car_recording 602
remove_car_recording 603
remove_animation "SWAT"
set_always_draw_3d_markers False
set_player_is_in_stadium False
mission_has_finished 
return 

:CASIN10_15776
if 
  42@ == 0
goto_if_false @CASIN10_15829
if 
  is_char_dead 40@
goto_if_false @CASIN10_15829
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_15829
if 
  48@ == 0
goto_if_false @CASIN10_16104
if 
  is_char_dead 47@
goto_if_false @CASIN10_15884
152@ += 1
48@ = 1
goto @CASIN10_16104

:CASIN10_15884
if 
  116@ == 1
goto_if_false @CASIN10_16104
if 
  42@ == 0
goto_if_false @CASIN10_16020
if 
  49@ == 0
goto_if_false @CASIN10_16013
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -796.172 {leftBottomY} 488.58 {leftBottomZ} 1370.0 {rightTopX} -777.902 {rightTopY} 498.668 {rightTopZ} 1378.235 {drawSphere} False
goto_if_false @CASIN10_16013
clear_char_tasks 47@
task_stay_in_same_place 47@ {state} True
task_kill_char_on_foot 47@ {target} $scplayer
49@ = 1

:CASIN10_16013
goto @CASIN10_16104

:CASIN10_16020
if 
  49@ == 1
goto_if_false @CASIN10_16059
task_stay_in_same_place 47@ {state} False
49@ = 2
goto @CASIN10_16104

:CASIN10_16059
if 
  49@ <> 2
goto_if_false @CASIN10_16104
clear_char_tasks 47@
task_stay_in_same_place 47@ {state} False
task_kill_char_on_foot 47@ {target} $scplayer
49@ = 2

:CASIN10_16104
if 
  51@ == 0
goto_if_false @CASIN10_16379
if 
  is_char_dead 50@
goto_if_false @CASIN10_16159
152@ += 1
51@ = 1
goto @CASIN10_16379

:CASIN10_16159
if 
  116@ == 1
goto_if_false @CASIN10_16379
if 
  42@ == 0
goto_if_false @CASIN10_16295
if 
  52@ == 0
goto_if_false @CASIN10_16288
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -796.172 {leftBottomY} 488.58 {leftBottomZ} 1370.0 {rightTopX} -777.902 {rightTopY} 498.668 {rightTopZ} 1378.235 {drawSphere} False
goto_if_false @CASIN10_16288
clear_char_tasks 50@
task_stay_in_same_place 50@ {state} True
task_kill_char_on_foot 50@ {target} $scplayer
52@ = 1

:CASIN10_16288
goto @CASIN10_16379

:CASIN10_16295
if 
  52@ == 1
goto_if_false @CASIN10_16334
task_stay_in_same_place 50@ {state} False
52@ = 2
goto @CASIN10_16379

:CASIN10_16334
if 
  52@ <> 2
goto_if_false @CASIN10_16379
clear_char_tasks 50@
task_stay_in_same_place 50@ {state} False
task_kill_char_on_foot 50@ {target} $scplayer
52@ = 2

:CASIN10_16379
if 
  54@ == 0
goto_if_false @CASIN10_16484
if 
  is_char_dead 53@
goto_if_false @CASIN10_16434
152@ += 1
54@ = 1
goto @CASIN10_16484

:CASIN10_16434
if 
  42@ == 1
goto_if_false @CASIN10_16484
if 
  2 > 55@
goto_if_false @CASIN10_16484
task_stay_in_same_place 53@ {state} False
55@ = 2

:CASIN10_16484
if 
  57@ == 0
goto_if_false @CASIN10_16589
if 
  is_char_dead 56@
goto_if_false @CASIN10_16539
152@ += 1
57@ = 1
goto @CASIN10_16589

:CASIN10_16539
if 
  42@ == 1
goto_if_false @CASIN10_16589
if 
  2 > 58@
goto_if_false @CASIN10_16589
task_stay_in_same_place 56@ {state} False
58@ = 2

:CASIN10_16589
if 
  60@ == 0
goto_if_false @CASIN10_16746
if 
  is_char_dead 59@
goto_if_false @CASIN10_16644
152@ += 1
60@ = 1
goto @CASIN10_16746

:CASIN10_16644
if 
  42@ == 1
goto_if_false @CASIN10_16746
if 
  61@ == 0
goto_if_false @CASIN10_16714
clear_char_tasks 59@
task_stay_in_same_place 59@ {state} False
task_kill_char_on_foot 59@ {target} $scplayer
61@ = 1
goto @CASIN10_16746

:CASIN10_16714
if 
  2 > 61@
goto_if_false @CASIN10_16746
task_stay_in_same_place 59@ {state} False
61@ = 2

:CASIN10_16746
if 
  63@ == 0
goto_if_false @CASIN10_16903
if 
  is_char_dead 62@
goto_if_false @CASIN10_16801
152@ += 1
63@ = 1
goto @CASIN10_16903

:CASIN10_16801
if 
  42@ == 1
goto_if_false @CASIN10_16903
if 
  64@ == 0
goto_if_false @CASIN10_16871
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} False
task_kill_char_on_foot 62@ {target} $scplayer
64@ = 1
goto @CASIN10_16903

:CASIN10_16871
if 
  2 > 64@
goto_if_false @CASIN10_16903
task_stay_in_same_place 62@ {state} False
64@ = 2

:CASIN10_16903
if 
  66@ == 0
goto_if_false @CASIN10_17008
if 
  is_char_dead 65@
goto_if_false @CASIN10_16958
152@ += 1
66@ = 1
goto @CASIN10_17008

:CASIN10_16958
if 
  42@ == 1
goto_if_false @CASIN10_17008
if 
  68@ == 0
goto_if_false @CASIN10_17008
task_stay_in_same_place 65@ {state} False
68@ = 1

:CASIN10_17008
if 
  70@ == 0
goto_if_false @CASIN10_17113
if 
  is_char_dead 69@
goto_if_false @CASIN10_17063
152@ += 1
70@ = 1
goto @CASIN10_17113

:CASIN10_17063
if 
  42@ == 1
goto_if_false @CASIN10_17113
if 
  72@ == 0
goto_if_false @CASIN10_17113
task_stay_in_same_place 69@ {state} False
72@ = 1

:CASIN10_17113
if 
  74@ == 0
goto_if_false @CASIN10_17231
if 
  is_char_dead 73@
goto_if_false @CASIN10_17168
152@ += 1
74@ = 1
goto @CASIN10_17231

:CASIN10_17168
if 
  42@ == 1
goto_if_false @CASIN10_17231
if 
  76@ == 0
goto_if_false @CASIN10_17231
clear_char_tasks 73@
task_stay_in_same_place 73@ {state} False
task_kill_char_on_foot 73@ {target} $scplayer
76@ = 1

:CASIN10_17231
if 
  78@ == 0
goto_if_false @CASIN10_17467
if 
  is_char_dead 77@
goto_if_false @CASIN10_17286
152@ += 1
78@ = 1
goto @CASIN10_17467

:CASIN10_17286
if 
  116@ == 1
goto_if_false @CASIN10_17467
if 
  42@ == 0
goto_if_false @CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17415
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_17415
clear_char_tasks 77@
task_stay_in_same_place 77@ {state} False
task_kill_char_on_foot 77@ {target} $scplayer
80@ = 1

:CASIN10_17415
goto @CASIN10_17467

:CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17467
clear_char_tasks 77@
task_stay_in_same_place 77@ {state} False
task_kill_char_on_foot 77@ {target} $scplayer
80@ = 1

:CASIN10_17467
if 
  82@ == 0
goto_if_false @CASIN10_17831
if 
  is_char_dead 81@
goto_if_false @CASIN10_17522
152@ += 1
82@ = 1
goto @CASIN10_17831

:CASIN10_17522
if 
  116@ == 1
goto_if_false @CASIN10_17831
if 
  42@ == 0
goto_if_false @CASIN10_17786
if 
  is_char_in_area_3d $scplayer {leftBottomX} -781.646 {leftBottomY} 498.659 {leftBottomZ} 1374.0 {rightTopX} -780.146 {rightTopY} 487.315 {rightTopZ} 1378.0 {drawSphere} False
goto_if_false @CASIN10_17734
if 
  83@ == 0
goto_if_false @CASIN10_17646
set_lvar_int_to_lvar_int 100@ = 81@
gosub @CASIN10_18719
83@ = 1

:CASIN10_17646
if 
  83@ == 1
goto_if_false @CASIN10_17727
if 
  has_char_been_damaged_by_weapon 81@ {weaponType} WeaponType.AnyWeapon
goto_if_false @CASIN10_17727
if 
  83@ == 1
goto_if_false @CASIN10_17727
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17727
goto @CASIN10_17779

:CASIN10_17734
if 
  83@ == 1
goto_if_false @CASIN10_17779
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17779
goto @CASIN10_17831

:CASIN10_17786
if 
  83@ <> 2
goto_if_false @CASIN10_17831
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17831
if 
  85@ == 0
goto_if_false @CASIN10_18246
if 
  is_char_dead 84@
goto_if_false @CASIN10_17886
152@ += 1
85@ = 1
goto @CASIN10_18246

:CASIN10_17886
if 
  116@ == 1
goto_if_false @CASIN10_18246
if 
  42@ == 0
goto_if_false @CASIN10_18201
if 
  is_char_in_area_3d $scplayer {leftBottomX} -781.646 {leftBottomY} 498.659 {leftBottomZ} 1374.0 {rightTopX} -780.146 {rightTopY} 487.315 {rightTopZ} 1378.0 {drawSphere} False
goto_if_false @CASIN10_18149
if 
  86@ == 0
goto_if_false @CASIN10_18002
TIMERA = 0
86@ = 1

:CASIN10_18002
if 
  86@ == 1
goto_if_false @CASIN10_18061
if 
  TIMERA >= 800
goto_if_false @CASIN10_18061
set_lvar_int_to_lvar_int 100@ = 84@
gosub @CASIN10_18719
86@ = 2

:CASIN10_18061
if 
  86@ == 1
goto_if_false @CASIN10_18142
if 
  has_char_been_damaged_by_weapon 84@ {weaponType} WeaponType.AnyWeapon
goto_if_false @CASIN10_18142
if 
  3 > 86@
goto_if_false @CASIN10_18142
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18142
goto @CASIN10_18194

:CASIN10_18149
if 
  86@ == 2
goto_if_false @CASIN10_18194
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18194
goto @CASIN10_18246

:CASIN10_18201
if 
  3 > 86@
goto_if_false @CASIN10_18246
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18246
if 
  88@ == 0
goto_if_false @CASIN10_18403
if 
  is_char_dead 87@
goto_if_false @CASIN10_18301
152@ += 1
88@ = 1
goto @CASIN10_18403

:CASIN10_18301
if 
  42@ == 1
goto_if_false @CASIN10_18403
if 
  89@ == 0
goto_if_false @CASIN10_18371
clear_char_tasks 87@
task_stay_in_same_place 87@ {state} False
task_kill_char_on_foot 87@ {target} $scplayer
89@ = 1
goto @CASIN10_18403

:CASIN10_18371
if 
  2 > 89@
goto_if_false @CASIN10_18403
task_stay_in_same_place 87@ {state} False
89@ = 2

:CASIN10_18403
if 
  91@ == 0
goto_if_false @CASIN10_18560
if 
  is_char_dead 90@
goto_if_false @CASIN10_18458
152@ += 1
91@ = 1
goto @CASIN10_18560

:CASIN10_18458
if 
  42@ == 1
goto_if_false @CASIN10_18560
if 
  92@ == 0
goto_if_false @CASIN10_18528
clear_char_tasks 90@
task_stay_in_same_place 90@ {state} False
task_kill_char_on_foot 90@ {target} $scplayer
92@ = 1
goto @CASIN10_18560

:CASIN10_18528
if 
  2 > 92@
goto_if_false @CASIN10_18560
task_stay_in_same_place 90@ {state} False
92@ = 2

:CASIN10_18560
if 
  94@ == 0
goto_if_false @CASIN10_18717
if 
  is_char_dead 93@
goto_if_false @CASIN10_18615
152@ += 1
94@ = 1
goto @CASIN10_18717

:CASIN10_18615
if 
  42@ == 1
goto_if_false @CASIN10_18717
if 
  95@ == 0
goto_if_false @CASIN10_18685
clear_char_tasks 93@
task_stay_in_same_place 93@ {state} False
task_kill_char_on_foot 93@ {target} $scplayer
95@ = 1
goto @CASIN10_18717

:CASIN10_18685
if 
  2 > 95@
goto_if_false @CASIN10_18717
task_stay_in_same_place 93@ {state} False
95@ = 2

:CASIN10_18717
return 

:CASIN10_18719
96@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 96@ {state} True
close_sequence_task 96@
perform_sequence_task 100@ {sequence} 96@
clear_sequence_task 96@
return 

:CASIN10_18943
97@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -788.611 {y} 497.731 {z} 1375.2271 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 97@
if 
  not is_char_dead 101@
goto_if_false @CASIN10_19019
perform_sequence_task 101@ {sequence} 97@

:CASIN10_19019
clear_sequence_task 97@
return 

:CASIN10_19026
98@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -789.542 {y} 495.862 {z} 1376.235 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 98@
if 
  not is_char_dead 102@
goto_if_false @CASIN10_19102
perform_sequence_task 102@ {sequence} 98@

:CASIN10_19102
clear_sequence_task 98@
return 

:CASIN10_19109
38@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 38@
if 
  not is_char_dead 103@
goto_if_false @CASIN10_19201
perform_sequence_task 103@ {sequence} 38@

:CASIN10_19201
clear_sequence_task 38@
return 

:CASIN10_19208
39@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 39@
if 
  not is_char_dead 104@
goto_if_false @CASIN10_19300
perform_sequence_task 104@ {sequence} 39@

:CASIN10_19300
clear_sequence_task 39@
return 

:CASIN10_19307
if 
  48@ == 0
goto_if_false @CASIN10_19360
if 
  not is_char_dead 47@
goto_if_false @CASIN10_19360
delete_char 47@
152@ += 1
48@ = 1

:CASIN10_19360
if 
  51@ == 0
goto_if_false @CASIN10_19413
if 
  not is_char_dead 50@
goto_if_false @CASIN10_19413
delete_char 50@
152@ += 1
51@ = 1

:CASIN10_19413
if 
  54@ == 0
goto_if_false @CASIN10_19466
if 
  not is_char_dead 53@
goto_if_false @CASIN10_19466
delete_char 53@
152@ += 1
54@ = 1

:CASIN10_19466
if 
  57@ == 0
goto_if_false @CASIN10_19519
if 
  not is_char_dead 56@
goto_if_false @CASIN10_19519
delete_char 56@
152@ += 1
57@ = 1

:CASIN10_19519
if 
  60@ == 0
goto_if_false @CASIN10_19572
if 
  not is_char_dead 59@
goto_if_false @CASIN10_19572
delete_char 59@
152@ += 1
60@ = 1

:CASIN10_19572
if 
  63@ == 0
goto_if_false @CASIN10_19625
if 
  not is_char_dead 62@
goto_if_false @CASIN10_19625
delete_char 62@
152@ += 1
63@ = 1

:CASIN10_19625
if 
  66@ == 0
goto_if_false @CASIN10_19678
if 
  not is_char_dead 65@
goto_if_false @CASIN10_19678
delete_char 65@
152@ += 1
66@ = 1

:CASIN10_19678
if 
  70@ == 0
goto_if_false @CASIN10_19731
if 
  not is_char_dead 69@
goto_if_false @CASIN10_19731
delete_char 69@
152@ += 1
70@ = 1

:CASIN10_19731
if 
  74@ == 0
goto_if_false @CASIN10_19784
if 
  not is_char_dead 73@
goto_if_false @CASIN10_19784
delete_char 73@
152@ += 1
74@ = 1

:CASIN10_19784
if 
  78@ == 0
goto_if_false @CASIN10_19837
if 
  not is_char_dead 77@
goto_if_false @CASIN10_19837
delete_char 77@
152@ += 1
78@ = 1

:CASIN10_19837
if 
  82@ == 0
goto_if_false @CASIN10_19890
if 
  not is_char_dead 81@
goto_if_false @CASIN10_19890
delete_char 81@
152@ += 1
82@ = 0

:CASIN10_19890
if 
  85@ == 0
goto_if_false @CASIN10_19943
if 
  not is_char_dead 84@
goto_if_false @CASIN10_19943
delete_char 84@
152@ += 1
85@ = 1

:CASIN10_19943
118@ = 1
return 

:CASIN10_19952
custom_plate_for_next_car 405 {text} "_4GEDIT_"
123@ = create_car 405 {x} -831.107 {y} 503.678 {z} 1357.348
change_car_colour 123@ {color1} 24 {color2} 24
set_car_heading 123@ {heading} 292.606
lock_car_doors 123@ {lockStatus} CarLock.Locked
set_vehicle_area_visible 123@ {interiorId} 1
120@ = create_char PedType.Mission1 {modelId} 126 {x} -816.005 {y} 493.329 {z} 1358.293
set_char_allowed_to_duck 120@ {state} False
give_weapon_to_char 120@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 120@ {heading} 302.139
set_char_decision_maker 120@ {handleOrTemplate} 106@
task_stay_in_same_place 120@ {state} True
task_kill_char_on_foot 120@ {target} $scplayer
set_char_accuracy 120@ {accuracy} 80
set_char_shoot_rate 120@ {rate} 50
121@ = create_char PedType.Mission1 {modelId} 124 {x} -821.268 {y} 508.167 {z} 1358.2729
set_char_allowed_to_duck 121@ {state} False
give_weapon_to_char 121@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 121@ {heading} 234.012
set_char_decision_maker 121@ {handleOrTemplate} 106@
task_toggle_duck 121@ {state} True
task_stay_in_same_place 121@ {state} True
task_kill_char_on_foot 121@ {target} $scplayer
set_char_accuracy 121@ {accuracy} 50
set_char_shoot_rate 121@ {rate} 80
122@ = create_char PedType.Mission1 {modelId} 125 {x} -828.77 {y} 510.594 {z} 1357.307
set_char_allowed_to_duck 122@ {state} False
give_weapon_to_char 122@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 122@ {heading} 241.767
set_char_decision_maker 122@ {handleOrTemplate} 106@
task_toggle_duck 122@ {state} True
task_stay_in_same_place 122@ {state} True
task_kill_char_on_foot 122@ {target} $scplayer
set_char_accuracy 122@ {accuracy} 75
set_char_shoot_rate 122@ {rate} 50
119@ = 1
return 

:CASIN10_20310
if or
  132@ == 0
  132@ == 1
goto_if_false @CASIN10_20361
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 131@
goto_if_false @CASIN10_20361
gosub @CASIN10_20419

:CASIN10_20361
if 
  132@ == 2
goto_if_false @CASIN10_20417
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_20417
132@ = 0
131@ += 1
133@ = 0
clear_prints 

:CASIN10_20417
return 

:CASIN10_20419
if 
  132@ == 0
goto_if_false @CASIN10_20455
load_mission_audio MissionAudioSlot.Slot1 {audioId} 135@(131@,17i)
132@ = 1

:CASIN10_20455
if 
  132@ == 1
goto_if_false @CASIN10_20513
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASIN10_20513
print_now $rosenbergs_health_C6(131@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
132@ = 2

:CASIN10_20513
return 

:CASIN10_20515
if 
  153@ == 0
goto_if_false @CASIN10_20620
if 
  is_char_dead 120@
goto_if_false @CASIN10_20570
152@ += 1
153@ = 1
goto @CASIN10_20620

:CASIN10_20570
if 
  42@ == 1
goto_if_false @CASIN10_20620
if 
  154@ == 0
goto_if_false @CASIN10_20620
set_char_stay_in_same_place 120@ {state} False
154@ = 1

:CASIN10_20620
if 
  155@ == 0
goto_if_false @CASIN10_20725
if 
  is_char_dead 121@
goto_if_false @CASIN10_20675
152@ += 1
155@ = 1
goto @CASIN10_20725

:CASIN10_20675
if 
  42@ == 1
goto_if_false @CASIN10_20725
if 
  156@ == 0
goto_if_false @CASIN10_20725
set_char_stay_in_same_place 121@ {state} False
156@ = 1

:CASIN10_20725
if 
  157@ == 0
goto_if_false @CASIN10_20830
if 
  is_char_dead 122@
goto_if_false @CASIN10_20780
152@ += 1
157@ = 1
goto @CASIN10_20830

:CASIN10_20780
if 
  42@ == 1
goto_if_false @CASIN10_20830
if 
  158@ == 0
goto_if_false @CASIN10_20830
set_char_stay_in_same_place 122@ {state} False
158@ = 1

:CASIN10_20830
return 

//-------------Mission 93---------------
// Originally: Misappropriation

:VCRASH1
gosub @VCRASH1_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCRASH1_27
gosub @VCRASH1_7873

:VCRASH1_27
gosub @VCRASH1_8041
terminate_this_script 

:VCRASH1_36
$onmission = 1
register_mission_given 
script_name 'VCRASH1'
wait 0
load_mission_text 'VCR1'
make_player_gang_disappear 
load_cutscene 'CRASHV1'

:VCRASH1_84
if 
  not has_cutscene_loaded 
goto_if_false @VCRASH1_108
wait 0
goto @VCRASH1_84

:VCRASH1_108
force_weather_now WeatherType.ExtraSunnyVegas
start_cutscene 
clear_area 1653.347 {y} 2668.373 {z} 10.8203 {radius} 10.0 {clearParticles} False
do_fade 1000 {direction} Fade.In

:VCRASH1_145
if 
  not has_cutscene_finished 
goto_if_false @VCRASH1_169
wait 0
goto @VCRASH1_145

:VCRASH1_169
do_fade 0 {direction} Fade.Out

:VCRASH1_175
if 
  get_fading_status 
goto_if_false @VCRASH1_199
wait 0
goto @VCRASH1_175

:VCRASH1_199
clear_cutscene 

:VCRASH1_201
if 
  not is_player_playing $player1
goto_if_false @VCRASH1_228
wait 0
goto @VCRASH1_201

:VCRASH1_228
clear_area 1599.09 {y} 2667.7251 {z} 9.8203 {radius} 0.5 {clearParticles} False
load_scene 1599.09 {y} 2667.7251 {z} 9.8203
set_char_coordinates $scplayer {x} 1599.09 {y} 2667.7251 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
release_weather 
make_player_gang_reappear 
do_fade 1000 {direction} Fade.In

:VCRASH1_312
if 
  get_fading_status 
goto_if_false @VCRASH1_336
wait 0
goto @VCRASH1_312

:VCRASH1_336
set_respawn_point_for_duration_of_mission 1599.09 {y} 2667.7251 {z} 9.8203
print_now 'VCR1__1' {time} 15000 {flag} 1
34@ = add_blip_for_coord -1306.191 {y} 2532.48 {z} 86.7332
change_blip_colour 34@ {color} BlipColor.Red
59@ = 0
60@ = 0
61@ = 0
49@ = 0

:VCRASH1_424
if 
  10 > 49@
goto_if_false @VCRASH1_467
62@(49@,10i) = 0
49@ += 1
goto @VCRASH1_424

:VCRASH1_467
36@ = 0
72@ = 0
73@ = 0
if 
  36@ == 1
goto_if_false @VCRASH1_525
106@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 103@ {y} 104@ {z} 105@

:VCRASH1_525
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
if 
  $played_casino4_before == 1
goto_if_false @VCRASH1_574
set_up_skip -1346.614 {y} 2304.4819 {z} 93.539 {heading} 4.8156

:VCRASH1_574
wait 0
if 
  not is_player_playing $player1
goto_if_false @VCRASH1_601
goto @VCRASH1_574

:VCRASH1_601
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @VCRASH1_623
goto @VCRASH1_7980

:VCRASH1_623
$game_timer = get_game_timer 
if or
  locate_char_any_means_3d $scplayer {x} 2511.364 {y} 2388.9141 {z} 6.2421 {xRadius} 38.6 {yRadius} 26.4 {zRadius} 3.4 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} -1306.191 {y} 2532.48 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @VCRASH1_710
alter_wanted_level $player1 {wantedLevel} 0

:VCRASH1_710
if 
  36@ == 0
goto_if_false @VCRASH1_3167
if 
  locate_char_any_means_2d $scplayer {x} -1306.191 {y} 2532.48 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @VCRASH1_3167
44@ = 0
if 
  not has_model_loaded 487
goto_if_false @VCRASH1_801
request_model 487
goto @VCRASH1_808

:VCRASH1_801
44@ += 1

:VCRASH1_808
if 
  not has_model_loaded 500
goto_if_false @VCRASH1_836
request_model 500
goto @VCRASH1_843

:VCRASH1_836
44@ += 1

:VCRASH1_843
if 
  not has_model_loaded 490
goto_if_false @VCRASH1_871
request_model 490
goto @VCRASH1_878

:VCRASH1_871
44@ += 1

:VCRASH1_878
if 
  not has_model_loaded 468
goto_if_false @VCRASH1_906
request_model 468
goto @VCRASH1_913

:VCRASH1_906
44@ += 1

:VCRASH1_913
if 
  not has_model_loaded 402
goto_if_false @VCRASH1_941
request_model 402
goto @VCRASH1_948

:VCRASH1_941
44@ += 1

:VCRASH1_948
if 
  not has_model_loaded 355
goto_if_false @VCRASH1_976
request_model 355
goto @VCRASH1_983

:VCRASH1_976
44@ += 1

:VCRASH1_983
if 
  not has_model_loaded 286
goto_if_false @VCRASH1_1011
request_model 286
goto @VCRASH1_1018

:VCRASH1_1011
44@ += 1

:VCRASH1_1018
if 
  not has_model_loaded 147
goto_if_false @VCRASH1_1046
request_model 147
goto @VCRASH1_1053

:VCRASH1_1046
44@ += 1

:VCRASH1_1053
if 
  not has_model_loaded 352
goto_if_false @VCRASH1_1081
request_model 352
goto @VCRASH1_1088

:VCRASH1_1081
44@ += 1

:VCRASH1_1088
if 
  not has_car_recording_been_loaded 114
goto_if_false @VCRASH1_1114
request_car_recording 114
goto @VCRASH1_1121

:VCRASH1_1114
44@ += 1

:VCRASH1_1121
if 
  not has_car_recording_been_loaded 109
goto_if_false @VCRASH1_1147
request_car_recording 109
goto @VCRASH1_1154

:VCRASH1_1147
44@ += 1

:VCRASH1_1154
if 
  44@ == 11
goto_if_false @VCRASH1_3167
$played_casino4_before = 1
74@ = create_car 487 {x} -1325.514 {y} 2559.8701 {z} 87.6329
set_car_heading 74@ {heading} 90.0
lock_car_doors 74@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_health 74@ {health} 50000
set_car_proofs 74@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 74@ {path} 114
set_playback_speed 74@ {speed} 0.0
set_heli_blades_full_speed 74@
75@ = create_car 487 {x} -1343.22 {y} 2538.3369 {z} 87.0107
set_car_heading 75@ {heading} 10.304
set_car_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
mark_model_as_no_longer_needed 487
76@ = create_car 500 {x} -1304.416 {y} 2498.821 {z} 87.0571
mark_model_as_no_longer_needed 500
set_car_heading 76@ {heading} 240.0877
77@ = create_car 490 {x} -1291.948 {y} 2497.782 {z} 87.1105
mark_model_as_no_longer_needed 490
set_car_heading 77@ {heading} 107.4866
78@ = create_car 468 {x} -1311.13 {y} 2512.1689 {z} 86.7085
set_car_heading 78@ {heading} 177.3181
79@ = create_car 468 {x} -1308.1071 {y} 2542.5769 {z} 87.4072
mark_model_as_no_longer_needed 468
set_car_heading 79@ {heading} 179.8761
80@ = create_char PedType.Mission1 {modelId} 147 {x} -1312.009 {y} 2549.6001 {z} 86.7332
set_char_heading 80@ {heading} 259.3965
give_weapon_to_char 80@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_inform_respected_friends 80@ {radius} 30.0 {_p3} 5
remove_blip 34@
34@ = add_blip_for_char 80@
set_char_only_damaged_by_player 80@ {state} True
set_char_health 80@ {health} 200
90@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 90@ {event} Event.GunAimedAt
set_char_decision_maker 80@ {handleOrTemplate} 90@
91@ = 0
81@ = create_char PedType.Mission1 {modelId} 286 {x} -1302.715 {y} 2534.374 {z} 86.7332
set_char_heading 81@ {heading} 183.0002
give_weapon_to_char 81@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 81@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 81@ {radius} 30.0 {_p3} 8
set_char_relationship 81@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 81@ {range} 70.0
set_char_keep_task 81@ {state} True
82@ = create_char PedType.Mission1 {modelId} 286 {x} -1325.868 {y} 2525.353 {z} 89.2044
set_char_heading 82@ {heading} 226.106
give_weapon_to_char 82@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 82@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 82@ {radius} 30.0 {_p3} 8
set_char_relationship 82@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 82@ {range} 70.0
set_char_keep_task 82@ {state} True
83@ = create_char PedType.Mission1 {modelId} 286 {x} -1303.204 {y} 2530.197 {z} 86.6889
set_char_heading 83@ {heading} 4.8042
give_weapon_to_char 83@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 83@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 83@ {radius} 30.0 {_p3} 8
set_char_relationship 83@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 83@ {range} 70.0
set_char_keep_task 83@ {state} True
84@ = create_char PedType.Mission1 {modelId} 286 {x} -1315.783 {y} 2502.167 {z} 88.8673
set_char_heading 84@ {heading} 242.7848
give_weapon_to_char 84@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 84@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 84@ {radius} 30.0 {_p3} 8
set_char_relationship 84@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 84@ {range} 70.0
set_char_keep_task 84@ {state} True
85@ = create_char PedType.Mission1 {modelId} 286 {x} -1299.54 {y} 2555.9189 {z} 86.5877
give_weapon_to_char 85@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 85@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 85@ {radius} 30.0 {_p3} 8
set_char_relationship 85@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 85@ {range} 70.0
set_char_keep_task 85@ {state} True
flush_route 
extend_route -1299.54 {y} 2555.9189 {z} 86.5877
extend_route -1310.96 {y} 2556.2319 {z} 86.7332
extend_route -1311.968 {y} 2538.9629 {z} 86.7332
extend_route -1321.3571 {y} 2531.0759 {z} 86.6104
extend_route -1321.043 {y} 2522.5 {z} 86.285
extend_route -1314.5389 {y} 2513.364 {z} 86.0349
extend_route -1309.208 {y} 2508.24 {z} 86.0349
extend_route -1296.686 {y} 2524.012 {z} 86.4456
task_follow_point_route 85@ {speed} MoveState.Walk {mode} RouteMode.Loop
86@ = create_char PedType.Mission1 {modelId} 286 {x} -1328.974 {y} 2533.5291 {z} 86.409
give_weapon_to_char 86@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 86@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 86@ {radius} 30.0 {_p3} 8
set_char_relationship 86@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 86@ {range} 70.0
set_char_keep_task 86@ {state} True
flush_route 
extend_route -1328.974 {y} 2533.5291 {z} 86.409
extend_route -1329.293 {y} 2521.8799 {z} 86.0349
extend_route -1309.1949 {y} 2521.418 {z} 86.3435
extend_route -1308.755 {y} 2535.446 {z} 86.7332
task_follow_point_route 86@ {speed} MoveState.Walk {mode} RouteMode.Loop
87@ = create_char PedType.Mission1 {modelId} 286 {x} -1288.024 {y} 2516.4309 {z} 86.1473
give_weapon_to_char 87@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 87@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 87@ {radius} 30.0 {_p3} 8
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 87@ {range} 70.0
set_char_keep_task 87@ {state} True
flush_route 
extend_route -1288.024 {y} 2516.4309 {z} 86.1473
extend_route -1287.4301 {y} 2508.769 {z} 86.0176
extend_route -1295.208 {y} 2506.5481 {z} 85.9726
extend_route -1310.584 {y} 2517.543 {z} 86.191
extend_route -1311.3361 {y} 2524.4319 {z} 86.4621
extend_route -1305.55 {y} 2521.813 {z} 86.359
extend_route -1300.198 {y} 2521.1831 {z} 86.3342
extend_route -1296.416 {y} 2525.1851 {z} 86.4917
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.BackForward
88@ = create_char PedType.Mission1 {modelId} 286 {x} -1294.97 {y} 2499.6189 {z} 85.9347
set_char_heading 88@ {heading} 102.9169
give_weapon_to_char 88@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 88@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 88@ {radius} 30.0 {_p3} 8
set_char_relationship 88@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 88@ {range} 70.0
set_char_keep_task 88@ {state} True
89@ = create_char PedType.Mission1 {modelId} 286 {x} -1296.548 {y} 2499.436 {z} 85.9413
set_char_heading 89@ {heading} 281.057
give_weapon_to_char 89@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 89@ {onFoot} False {inCar} False {duringScriptTask} True
task_chat_with_char 88@ {other} 89@ {leadSpeaker} True {_p4} 1
task_chat_with_char 89@ {other} 88@ {leadSpeaker} False {_p4} 1
set_inform_respected_friends 89@ {radius} 30.0 {_p3} 12
set_char_relationship 89@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 89@ {range} 70.0
set_char_keep_task 89@ {state} True
92@ = create_car 402 {x} 2077.761 {y} 2420.9009 {z} 48.5234
set_car_heading 92@ {heading} 90.0
start_playback_recorded_car 92@ {path} 109
set_playback_speed 92@ {speed} 0.0
set_car_proofs 92@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 92@ {health} 50000
lock_car_doors 92@ {lockStatus} CarLock.LockoutPlayerOnly
93@ = create_car 402 {x} 2077.761 {y} 2416.9009 {z} 48.5234
set_car_heading 93@ {heading} 90.0
set_car_health 93@ {health} 1750
lock_car_doors 93@ {lockStatus} CarLock.LockoutPlayerOnly
94@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1324.902 {y} 2554.6541 {z} 87.8548 {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 74@ {time} 20000
close_sequence_task 94@
95@ = open_sequence_task 
task_leave_any_car -1
task_go_to_coord_while_shooting -1 {x} 2112.6069 {y} 2422.873 {z} 59.8223 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2097.2881 {y} 2436.6179 {z} 59.8223 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2096.7571 {y} 2440.394 {z} 59.8151 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2074.0359 {y} 2440.0979 {z} 48.5176 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2078.0 {y} 2427.0039 {z} 48.5244 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_enter_car_as_driver -1 {vehicle} 92@ {time} 20000
close_sequence_task 95@
36@ += 1

:VCRASH1_3167
if 
  72@ == 0
goto_if_false @VCRASH1_3253
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_3253
print_now 'VCR1__7' {time} 8000 {flag} 1
switch_car_generator $f1_blood_car_gen[7] {amount} 0
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 8000
72@ += 1

:VCRASH1_3253
if 
  72@ == 1
goto_if_false @VCRASH1_3401
if 
  1 > 61@
goto_if_false @VCRASH1_3401
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3401
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_3378
if 
  not is_char_in_any_heli $scplayer
goto_if_false @VCRASH1_3378
print_now 'VCR1__9' {time} 6000 {flag} 1
35@ = add_blip_for_car 75@
set_blip_as_friendly 35@ {state} True
change_blip_display 34@ {display} BlipDisplay.MarkerOnly

:VCRASH1_3378
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 6000
72@ += 1

:VCRASH1_3401
if 
  72@ == 2
goto_if_false @VCRASH1_3583
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3583
if 
  is_char_in_any_heli $scplayer
goto_if_false @VCRASH1_3551
print_now 'VCR1_10' {time} 5000 {flag} 1
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_3501
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_3501
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_3532
set_car_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_3532
change_blip_display 34@ {display} BlipDisplay.Both
remove_blip 35@
72@ += 1

:VCRASH1_3551
if 
  is_char_dead 80@(91@,10i)
goto_if_false @VCRASH1_3583
remove_blip 35@
72@ += 1

:VCRASH1_3583
if 
  36@ > 0
goto_if_false @VCRASH1_6883
49@ = 0

:VCRASH1_3608
if 
  10 > 49@
goto_if_false @VCRASH1_6883
if 
  is_int_lvar_equal_to_int_lvar 49@ == 91@
goto_if_false @VCRASH1_6189
if 
  not is_char_dead 80@(49@,10i)
goto_if_false @VCRASH1_5884
if 
  62@(91@,10i) == 0
goto_if_false @VCRASH1_3732
if 
  59@ > 0
goto_if_false @VCRASH1_3732
perform_sequence_task 80@(91@,10i) {sequence} 94@
set_area51_sam_site False
62@(91@,10i) += 1

:VCRASH1_3732
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_4114
if 
  62@(91@,10i) == 1
goto_if_false @VCRASH1_3827
if 
  is_char_in_car 80@(91@,10i) {vehicle} 74@
goto_if_false @VCRASH1_3827
set_car_health 74@ {health} 1750
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
62@(91@,10i) += 1

:VCRASH1_3827
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_4114
$x, $y, $z = get_car_coordinates 74@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 51@ {toZ} 52@
96@ = 7000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 2.0
goto_if_false @VCRASH1_3953
96@ = 2.0

:VCRASH1_3953
if 
  0.3 > 96@
goto_if_false @VCRASH1_3984
96@ = 0.3

:VCRASH1_3984
set_playback_speed 74@ {speed} 96@
if 
  not is_playback_going_on_for_car 74@
goto_if_false @VCRASH1_4114
if 
  not is_car_dead 93@
goto_if_false @VCRASH1_4031
lock_car_doors 93@ {lockStatus} CarLock.Unlocked

:VCRASH1_4031
perform_sequence_task 80@(91@,10i) {sequence} 95@
print_now 'VCR1__8' {time} 5000 {flag} 1
remove_blip 35@
change_blip_display 34@ {display} BlipDisplay.Both
switch_roads_off 2475.428 {leftBottomY} 2345.0071 {leftBottomZ} 2.7255 {rightTopX} 2517.416 {rightTopY} 2398.874 {rightTopZ} 12.369
62@(91@,10i) += 1

:VCRASH1_4114
if 
  not is_car_dead 92@
goto_if_false @VCRASH1_4555
if 
  62@(91@,10i) == 3
goto_if_false @VCRASH1_4306
if 
  is_char_in_car 80@(91@,10i) {vehicle} 92@
goto_if_false @VCRASH1_4306
set_car_health 92@ {health} 1750
set_car_proofs 92@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
42@ = 0

:VCRASH1_4235
if 
  10 > 42@
goto_if_false @VCRASH1_4295
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 91@
goto_if_false @VCRASH1_4281
mark_char_as_no_longer_needed 80@(42@,10i)

:VCRASH1_4281
42@ += 1
goto @VCRASH1_4235

:VCRASH1_4295
62@(91@,10i) += 1

:VCRASH1_4306
if 
  62@(91@,10i) == 4
goto_if_false @VCRASH1_4555
if 
  is_playback_going_on_for_car 92@
goto_if_false @VCRASH1_4500
$x, $y, $z = get_car_coordinates 92@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 51@ {toY} 52@ {toZ} 53@
96@ = 5000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 1.1
goto_if_false @VCRASH1_4454
96@ = 1.1

:VCRASH1_4454
if 
  0.6 > 96@
goto_if_false @VCRASH1_4485
96@ = 0.6

:VCRASH1_4485
set_playback_speed 92@ {speed} 96@
goto @VCRASH1_4555

:VCRASH1_4500
task_car_drive_to_coord 80@(91@,10i) {vehicle} -1 {x} 2538.0669 {y} 2389.8191 {z} 3.22 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_car_straight_line_distance 92@ {distance} 1
62@(91@,10i) += 1

:VCRASH1_4555
if 
  62@(91@,10i) == 5
goto_if_false @VCRASH1_5588
if 
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5577
97@ = store_car_char_is_in_no_save 80@(91@,10i)
set_car_driving_style 97@ {drivingStyle} DrivingMode.AvoidCars
set_car_straight_line_distance 97@ {distance} 1
$x, $y, $z = get_car_coordinates 97@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 51@ {toZ} 52@
57@ = 3000.0
div_float_lvar_by_float_var 57@ /= $distance
if 
  locate_char_in_car_3d 80@(91@,10i) {x} 2506.6499 {y} 2355.8569 {z} 10.8203 {xRadius} 29.9399 {yRadius} 15.57 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_4748
57@ = 20.0

:VCRASH1_4748
if 
  57@ > 100.0
goto_if_false @VCRASH1_4779
57@ = 100.0

:VCRASH1_4779
if 
  15.0 > 57@
goto_if_false @VCRASH1_4810
57@ = 15.0

:VCRASH1_4810
set_car_cruise_speed 97@ {maxSpeed} 57@
40@ = get_car_health 97@
if 
  251 > 40@
goto_if_false @VCRASH1_4910
set_car_temp_action 97@ {actionId} TempAction.HandbrakeTurnLeft {time} 5000
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500
62@(91@,10i) += 1

:VCRASH1_4910
if and
  is_car_upsidedown 97@
  is_car_stopped 97@
goto_if_false @VCRASH1_5170
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @VCRASH1_5031
set_upsidedown_car_not_damaged 97@ {state} False
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500
62@(91@,10i) += 1
goto @VCRASH1_5170

:VCRASH1_5031
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @VCRASH1_5170
if 
  not is_car_on_screen 97@
goto_if_false @VCRASH1_5170
$x, $y, $z = get_car_coordinates 97@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @VCRASH1_5170
set_car_coordinates 97@ {x} $x {y} $y {z} $z
set_car_heading 97@ {heading} $heading

:VCRASH1_5170
if 
  locate_car_3d 97@ {x} 98@ {y} 99@ {z} 100@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @VCRASH1_5477
if 
  is_int_var_greater_than_int_lvar $game_timer > 101@
goto_if_false @VCRASH1_5470
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @VCRASH1_5331
set_upsidedown_car_not_damaged 97@ {state} False
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 500
62@(91@,10i) += 1
goto @VCRASH1_5470

:VCRASH1_5331
if 
  not is_car_on_screen 97@
goto_if_false @VCRASH1_5470
$x, $y, $z = get_car_coordinates 97@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @VCRASH1_5470
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @VCRASH1_5470
set_car_coordinates 97@ {x} $x {y} $y {z} $z
set_car_heading 97@ {heading} $heading

:VCRASH1_5470
goto @VCRASH1_5507

:VCRASH1_5477
98@, 99@, 100@ = get_car_coordinates 97@
set_lvar_int_to_var_int 101@ = $game_timer
101@ += 5000

:VCRASH1_5507
if 
  locate_char_in_car_3d 80@(91@,10i) {x} 2538.0669 {y} 2389.8191 {z} 3.22 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_5570
62@(91@,10i) = 7

:VCRASH1_5570
goto @VCRASH1_5588

:VCRASH1_5577
62@(91@,10i) += 1

:VCRASH1_5588
if 
  62@(91@,10i) == 6
goto_if_false @VCRASH1_5733
$task_status = get_script_task_status 80@(91@,10i) {taskId} 1498
102@ = get_script_task_status 80@(91@,10i) {taskId} 1489
if or
  is_int_var_equal_to_constant $task_status == 7
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5733
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @VCRASH1_5733
task_car_drive_to_coord 80@(91@,10i) {vehicle} -1 {x} 2538.0669 {y} 2389.8191 {z} 3.22 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
62@(91@,10i) -= 1

:VCRASH1_5733
if 
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5785
if 
  60@ == 0
goto_if_false @VCRASH1_5778
60@ = 1

:VCRASH1_5778
goto @VCRASH1_5810

:VCRASH1_5785
if 
  60@ == 1
goto_if_false @VCRASH1_5810
60@ = 0

:VCRASH1_5810
if 
  62@(91@,10i) == 7
goto_if_false @VCRASH1_5877
$task_status = get_script_task_status 80@(91@,10i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_5877
task_kill_char_on_foot 80@(91@,10i) {target} $scplayer

:VCRASH1_5877
goto @VCRASH1_6182

:VCRASH1_5884
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_5959
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_5959
if 
  is_playback_going_on_for_car 74@
goto_if_false @VCRASH1_5943
stop_playback_recorded_car 74@

:VCRASH1_5943
make_heli_come_crashing_down 74@
62@(91@,10i) = 90

:VCRASH1_5959
if 
  does_char_exist 80@(91@,10i)
goto_if_false @VCRASH1_6134
if 
  not is_char_in_water 80@(91@,10i)
goto_if_false @VCRASH1_6104
if 
  61@ == 0
goto_if_false @VCRASH1_6097
remove_blip 34@
103@, 104@, 105@ = get_dead_char_pickup_coords 80@(91@,10i)
106@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 103@ {y} 104@ {z} 105@
34@ = add_blip_for_pickup 106@
print_now 'VCR1__3' {time} 5000 {flag} 1
60@ = 2
61@ = 1

:VCRASH1_6097
goto @VCRASH1_6127

:VCRASH1_6104
print_now 'VCR1__4' {time} 5000 {flag} 1
goto @VCRASH1_7873

:VCRASH1_6127
goto @VCRASH1_6157

:VCRASH1_6134
print_now 'VCR1__5' {time} 5000 {flag} 1
goto @VCRASH1_7873

:VCRASH1_6157
if 
  59@ == 0
goto_if_false @VCRASH1_6182
59@ = 1

:VCRASH1_6182
goto @VCRASH1_6765

:VCRASH1_6189
if 
  not is_char_dead 80@(49@,10i)
goto_if_false @VCRASH1_6729
if 
  3 > 62@(91@,10i)
goto_if_false @VCRASH1_6722
if 
  62@(49@,10i) == 0
goto_if_false @VCRASH1_6463
if 
  73@ == 1
goto_if_false @VCRASH1_6316
$task_status = get_script_task_status 80@(49@,10i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6316
task_kill_char_on_foot 80@(49@,10i) {target} $scplayer

:VCRASH1_6316
if 
  2 > 62@(49@,10i)
goto_if_false @VCRASH1_6463
if 
  61@ == 1
goto_if_false @VCRASH1_6463
if 
  locate_char_on_foot_2d 80@(49@,10i) {x} 103@ {y} 104@ {xRadius} 65.0 {yRadius} 65.0 {drawSphere} False
goto_if_false @VCRASH1_6463
give_weapon_to_char 80@(49@,10i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 80@(49@,10i) {weaponType} WeaponType.MicroUzi
task_go_to_coord_while_shooting 80@(49@,10i) {x} 103@ {y} 104@ {z} 105@ {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
62@(49@,10i) += 1

:VCRASH1_6463
if 
  62@(49@,10i) == 1
goto_if_false @VCRASH1_6722
if 
  61@ == 1
goto_if_false @VCRASH1_6711
$task_status = get_script_task_status 80@(49@,10i) {taskId} 1591
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6704
if 
  locate_char_on_foot_2d 80@(49@,10i) {x} 103@ {y} 104@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_6704
mark_char_as_no_longer_needed 80@(91@,10i)
80@(91@,10i) = -1
set_lvar_int_to_lvar_int 91@ = 49@
remove_blip 34@
remove_pickup 106@
34@ = add_blip_for_char 80@(91@,10i)
set_char_only_damaged_by_player 80@(91@,10i) {state} True
if 
  not is_player_targetting_char $player1 {handle} 80@(91@,10i)
goto_if_false @VCRASH1_6670
set_char_health 80@(91@,10i) {health} 200

:VCRASH1_6670
62@(91@,10i) = 0
print_now 'VCR1__2' {time} 5000 {flag} 1
61@ = 0

:VCRASH1_6704
goto @VCRASH1_6722

:VCRASH1_6711
62@(49@,10i) -= 1

:VCRASH1_6722
goto @VCRASH1_6765

:VCRASH1_6729
mark_char_as_no_longer_needed 80@(49@,10i)
if 
  59@ == 0
goto_if_false @VCRASH1_6765
clear_skip 
59@ = 1

:VCRASH1_6765
if 
  59@ == 0
goto_if_false @VCRASH1_6869
if or
  is_char_responding_to_event 80@(49@,10i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 80@(49@,10i) {event} Event.PotentialGetRunOver
  is_char_responding_to_event 80@(49@,10i) {event} Event.ShotFired
  is_char_responding_to_event 80@(49@,10i) {event} Event.DeadPed
  is_char_responding_to_event 80@(49@,10i) {event} Event.ShotFiredWhizzedBy
  is_char_responding_to_event 80@(49@,10i) {event} Event.VehicleThreat
goto_if_false @VCRASH1_6869
clear_skip 
59@ = 1

:VCRASH1_6869
49@ += 1
goto @VCRASH1_3608

:VCRASH1_6883
if 
  73@ == 0
goto_if_false @VCRASH1_6958
if 
  locate_char_any_means_3d $scplayer {x} -1308.928 {y} 2527.4661 {z} 92.816 {xRadius} 26.85 {yRadius} 38.6399 {zRadius} 8.9 {drawSphere} False
goto_if_false @VCRASH1_6958
clear_skip 
73@ += 1

:VCRASH1_6958
if 
  59@ == 1
goto_if_false @VCRASH1_7001
print_now 'VCR1_11' {time} 5000 {flag} 1
clear_skip 
59@ += 1

:VCRASH1_7001
if 
  36@ == 1
goto_if_false @VCRASH1_7541
if 
  62@(91@,10i) > 2
goto_if_false @VCRASH1_7541
if 
  locate_char_any_means_3d $scplayer {x} 2511.364 {y} 2388.9141 {z} 6.2421 {xRadius} 38.6 {yRadius} 26.4 {zRadius} 3.4 {drawSphere} False
goto_if_false @VCRASH1_7541
107@ = create_car 402 {x} 2522.2109 {y} 2383.6289 {z} 4.0162
set_car_heading 107@ {heading} 339.2576
108@ = create_car 402 {x} 2518.511 {y} 2393.821 {z} 4.0104
set_car_heading 108@ {heading} 168.2849
109@ = create_car 402 {x} 2510.3359 {y} 2380.583 {z} 4.0139
set_car_heading 109@ {heading} 110.7153
110@ = 2524.2209
120@ = 2385.0071
111@ = 2520.053
121@ = 2392.282
112@ = 2513.938
122@ = 2381.334
113@ = 2513.9099
123@ = 2385.4709
114@ = 2511.99
124@ = 2392.3469
115@ = 2519.3081
125@ = 2399.5349
116@ = 2530.1689
126@ = 2388.519
117@ = 2504.144
127@ = 2382.468
118@ = 2504.832
128@ = 2397.616
119@ = 2506.832
129@ = 2397.616
43@ = 0

:VCRASH1_7395
if 
  10 > 43@
goto_if_false @VCRASH1_7518
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 91@
goto_if_false @VCRASH1_7504
create_char PedType.Mission1 {modelId} 286 {x} 110@(43@,10f) {y} 120@(43@,10f) {z} 3.2262 {var_handle} 80@(43@,10i)
set_char_heading 80@(43@,10i) {heading} 91.4967
give_weapon_to_char 80@(43@,10i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_keep_task 80@(43@,10i) {state} True

:VCRASH1_7504
43@ += 1
goto @VCRASH1_7395

:VCRASH1_7518
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7541
if 
  36@ == 2
goto_if_false @VCRASH1_7689
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7689
43@ = 0

:VCRASH1_7585
if 
  10 > 43@
goto_if_false @VCRASH1_7666
if 
  not is_char_dead 80@(43@,10i)
goto_if_false @VCRASH1_7652
set_inform_respected_friends 80@(43@,10i) {radius} 50.0 {_p3} 8
set_char_relationship 80@(43@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:VCRASH1_7652
43@ += 1
goto @VCRASH1_7585

:VCRASH1_7666
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7689
if 
  36@ == 3
goto_if_false @VCRASH1_7804
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7804
43@ = 0

:VCRASH1_7733
if 
  10 > 43@
goto_if_false @VCRASH1_7797
if 
  not is_char_dead 80@(43@,10i)
goto_if_false @VCRASH1_7783
task_kill_char_on_foot 80@(43@,10i) {target} $scplayer

:VCRASH1_7783
43@ += 1
goto @VCRASH1_7733

:VCRASH1_7797
36@ += 1

:VCRASH1_7804
if 
  61@ == 1
goto_if_false @VCRASH1_7866
if 
  has_pickup_been_collected 106@
goto_if_false @VCRASH1_7866
remove_blip 34@
print_now 'VCR1__6' {time} 5000 {flag} 1
goto @VCRASH1_7980

:VCRASH1_7866
goto @VCRASH1_574

:VCRASH1_7873
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  not is_char_dead 80@(91@,10i)
goto_if_false @VCRASH1_7978
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_7978
if 
  is_char_in_car 80@(91@,10i) {vehicle} 74@
goto_if_false @VCRASH1_7978
heli_goto_coords 74@ {x} 0.0 {y} 0.0 {z} 0.0 {minAltitude} 20.0 {maxAltitude} 40.0

:VCRASH1_7978
return 

:VCRASH1_7980
$flag_vcrash_mission_counter += 1
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
add_score $player1 {money} 0
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'VCRASH1'
player_made_progress 1
remove_blip $vcrash_contact_blip
return 

:VCRASH1_8041
remove_blip 34@
remove_blip 35@
set_area51_sam_site True
remove_pickup 106@
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_8091
set_car_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_8091
switch_roads_on 2475.428 {leftBottomY} 2345.0071 {leftBottomZ} 2.7255 {rightTopX} 2517.416 {rightTopY} 2398.874 {rightTopZ} 12.369
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @VCRASH1_8148
switch_car_generator $f1_blood_car_gen[7] {amount} 101

:VCRASH1_8148
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 500
mark_model_as_no_longer_needed 490
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 402
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 286
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 352
if 
  is_player_playing $player1
goto_if_false @VCRASH1_8218
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1

:VCRASH1_8218
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 94---------------
// Originally: High Noon

:VCR2
gosub @VCR2_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCR2_27
gosub @VCR2_4984

:VCR2_27
gosub @VCR2_5070
terminate_this_script 

:VCR2_36
$onmission = 1
register_mission_given 
script_name 'VCR2'
wait 0
load_mission_text 'VCR2'
make_player_gang_disappear 
load_cutscene 'CRASV2A'

:VCR2_84
if 
  not has_cutscene_loaded 
goto_if_false @VCR2_108
wait 0
goto @VCR2_84

:VCR2_108
force_weather_now WeatherType.ExtraSunnyDesert
clear_area -359.5421 {y} 2225.5249 {z} 42.4562 {radius} 30.9 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:VCR2_145
if 
  not has_cutscene_finished 
goto_if_false @VCR2_169
wait 0
goto @VCR2_145

:VCR2_169
do_fade 0 {direction} Fade.Out

:VCR2_175
if 
  get_fading_status 
goto_if_false @VCR2_199
wait 0
goto @VCR2_175

:VCR2_199
clear_cutscene 
if 
  not was_cutscene_skipped 
goto_if_false @VCR2_342
load_cutscene 'CRASV2B'

:VCR2_225
if 
  not has_cutscene_loaded 
goto_if_false @VCR2_249
wait 0
goto @VCR2_225

:VCR2_249
force_weather_now WeatherType.ExtraSunnyDesert
clear_area -359.5421 {y} 2225.5249 {z} 42.4562 {radius} 30.9 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:VCR2_286
if 
  not has_cutscene_finished 
goto_if_false @VCR2_310
wait 0
goto @VCR2_286

:VCR2_310
do_fade 0 {direction} Fade.Out

:VCR2_316
if 
  get_fading_status 
goto_if_false @VCR2_340
wait 0
goto @VCR2_316

:VCR2_340
clear_cutscene 

:VCR2_342
load_special_character 1 {modelName} 'PULASKI'
request_model 568
request_model 402
request_model 348
load_all_models_now 

:VCR2_372
if or
  not has_model_loaded 568
  not has_model_loaded 402
  not has_model_loaded 348
  not has_special_character_loaded 1
goto_if_false @VCR2_413
wait 0
goto @VCR2_372

:VCR2_413
set_lvar_text_label 48@s = 'VCR2_AA'
set_lvar_text_label 50@s = 'VCR2_AB'
set_lvar_text_label 52@s = 'VCR2_AC'
set_lvar_text_label 54@s = 'VCR2_AD'
set_lvar_text_label 56@s = 'VCR2_AE'
set_lvar_text_label 58@s = 'VCR2_BA'
set_lvar_text_label 60@s = 'VCR2_BB'
set_lvar_text_label 62@s = 'VCR2_BC'
set_lvar_text_label 64@s = 'VCR2_BE'
set_lvar_text_label 66@s = 'VCR2_BF'
set_lvar_text_label 68@s = 'VCR2_BG'
set_lvar_text_label 70@s = 'VCR2_BH'
set_lvar_text_label 72@s = 'VCR2_BJ'
set_lvar_text_label 74@s = 'VCR2_CA'
set_lvar_text_label 76@s = 'VCR2_CB'
set_lvar_text_label 78@s = 'VCR2_CC'
set_lvar_text_label 80@s = 'VCR2_CD'
set_lvar_text_label 82@s = 'VCR2_CE'
set_lvar_text_label 84@s = 'VCR2_CF'
set_lvar_text_label 86@s = 'VCR2_CG'
set_lvar_int_to_constant 88@ = 21000
set_lvar_int_to_constant 89@ = 21008
set_lvar_int_to_constant 90@ = 21009
set_lvar_int_to_constant 91@ = 21010
set_lvar_int_to_constant 92@ = 21011
set_lvar_int_to_constant 93@ = 21012
set_lvar_int_to_constant 94@ = 21013
set_lvar_int_to_constant 95@ = 21014
set_lvar_int_to_constant 96@ = 21015
set_lvar_int_to_constant 97@ = 21001
set_lvar_int_to_constant 98@ = 21002
set_lvar_int_to_constant 99@ = 21016
set_lvar_int_to_constant 100@ = 21017
set_lvar_int_to_constant 101@ = 21018
set_lvar_int_to_constant 102@ = 21019
set_lvar_int_to_constant 103@ = 21003
set_lvar_int_to_constant 104@ = 21020
set_lvar_int_to_constant 105@ = 21021
set_lvar_int_to_constant 106@ = 21004
set_lvar_int_to_constant 107@ = 21022
109@ = 0
110@ = 1
$game_timer = get_game_timer 
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 6000
custom_plate_for_next_car 402 {text} "PULASKI"
112@ = create_car 402 {x} -371.0292 {y} 2209.8201 {z} 41.4921
set_car_heading 112@ {heading} 159.2268
change_car_colour 112@ {color1} 8 {color2} 0
set_petrol_tank_weakpoint 112@ {state} False
set_car_only_damaged_by_player 112@ {state} True
set_car_can_go_against_traffic 112@ {state} True
set_car_proofs 112@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 112@ {health} 2250
113@ = create_char PedType.Mission1 {modelId} 290 {x} -335.4141 {y} 2218.9419 {z} 41.4921
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_heading 113@ {heading} 104.108
set_char_only_damaged_by_player 113@ {state} True
set_char_max_health 113@ {maxHealth} 500
set_char_health 113@ {health} 500
set_char_suffers_critical_hits 113@ {state} False
set_char_uses_upperbody_damage_anims_only 113@ {state} True
set_char_accuracy 113@ {accuracy} 80
set_char_proofs 113@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
37@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -346.4254 {y} 2216.427 {z} 41.4921 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 112@ {time} -2
task_car_drive_to_coord -1 {vehicle} 112@ {x} -472.778 {y} 1958.194 {z} 83.5515 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 37@
perform_sequence_task 113@ {sequence} 37@
clear_sequence_task 37@
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
wait 0
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position -341.3325 {y} 2213.1101 {z} 42.837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -340.718 {y} 2213.8979 {z} 42.8258 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -341.3325 {y} 2213.1101 {z} 42.837 {heading} 327.4725
clear_char_tasks_immediately $scplayer
clear_area -334.1724 {y} 2214.6201 {z} 40.4911 {radius} 30.0 {clearParticles} False
load_scene -334.1724 {y} 2214.6201 {z} 40.4911
set_char_coordinates $scplayer {x} -334.1724 {y} 2214.6201 {z} 40.4911
set_char_heading $scplayer {heading} 232.082
set_camera_behind_player 
114@ = create_car 568 {x} -342.2552 {y} 2221.3899 {z} 41.4911
set_car_heading 114@ {heading} 168.7771
do_fade 500 {direction} Fade.In
$game_timer = get_game_timer 
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ = 0
115@ = 0
release_weather 

:VCR2_1440
wait 0
$game_timer = get_game_timer 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @VCR2_1471
goto @VCR2_5002

:VCR2_1471
if 
  is_char_dead 113@
goto_if_false @VCR2_1528
if 
  9 > 47@
goto_if_false @VCR2_1528
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 2000
47@ = 9

:VCR2_1528
if 
  47@ == 0
goto_if_false @VCR2_1613
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1613
task_go_straight_to_coord $scplayer {x} -337.9653 {y} 2218.594 {z} 41.4911 {speed} MoveState.Run {time} 2000
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ += 1

:VCR2_1613
if 
  47@ == 1
goto_if_false @VCR2_1792
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1792
set_char_coordinates $scplayer {x} -337.9653 {y} 2218.594 {z} 41.4911
set_char_heading $scplayer {heading} 90.0
set_char_coordinates 113@ {x} -359.3949 {y} 2213.4041 {z} 41.4911
set_char_heading 113@ {heading} 90.0
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
make_player_gang_reappear 
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
34@ = add_blip_for_char 113@
print_now 'VCR2__1' {time} 15000 {flag} 1
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 26000
47@ += 1

:VCR2_1792
if 
  47@ == 2
goto_if_false @VCR2_1979
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1979
task_car_drive_wander 113@ {vehicle} -1 {speed} 40.0 {drivingMode} DrivingMode.AvoidCars
give_weapon_to_char 113@ {weaponType} WeaponType.DesertEagle {ammo} 9999
set_char_relationship 113@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_proofs 113@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
if 
  115@ == 0
goto_if_false @VCR2_1954
if 
  not is_car_dead 112@
goto_if_false @VCR2_1947
set_car_proofs 112@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
add_stuck_car_check_with_warp 112@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} False {numNodesToCheck} -1

:VCR2_1947
115@ = 1

:VCR2_1954
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 240000
47@ += 1

:VCR2_1979
if 
  47@ == 3
goto_if_false @VCR2_2742
if 
  locate_char_any_means_2d 113@ {x} 184.0797 {y} 1715.949 {xRadius} 40.6 {yRadius} 1108.668 {drawSphere} False
goto_if_false @VCR2_2120
$task_status = get_script_task_status 113@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2120
task_car_drive_to_coord 113@ {vehicle} -1 {x} -2466.3091 {y} 2244.3279 {z} 3.8078 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2120
if 
  locate_char_any_means_2d 113@ {x} -2747.4819 {y} 2334.301 {xRadius} 36.34 {yRadius} 5.86 {drawSphere} False
goto_if_false @VCR2_2243
$task_status = get_script_task_status 113@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2243
task_car_drive_to_coord 113@ {vehicle} -1 {x} -1446.225 {y} 2670.991 {z} 54.9682 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2243
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @VCR2_2335
set_lvar_int_to_var_int 116@ = $game_timer
116@ += 8000
if 
  not does_blip_exist 34@
goto_if_false @VCR2_2328
task_car_drive_wander 113@ {vehicle} -1 {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
34@ = add_blip_for_char 113@

:VCR2_2328
goto @VCR2_2428

:VCR2_2335
if 
  does_blip_exist 34@
goto_if_false @VCR2_2386
task_car_drive_wander 113@ {vehicle} -1 {speed} 28.0 {drivingMode} DrivingMode.AvoidCars
print_now 'VCR2__2' {time} 5000 {flag} 1
remove_blip 34@

:VCR2_2386
if 
  is_int_var_greater_than_int_lvar $game_timer > 116@
goto_if_false @VCR2_2428
print_now 'VCR2__3' {time} 5000 {flag} 1
goto @VCR2_4984

:VCR2_2428
if 
  20 > 109@
goto_if_false @VCR2_2655
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @VCR2_2655
if 
  is_int_var_greater_than_int_lvar $game_timer > 111@
goto_if_false @VCR2_2655
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_2655
set_var_text_label s$audio_string = 48@(109@,20s)
set_var_int_to_lvar_int $audio_sound_file = 88@(109@,21i)
start_new_script @AUDIOL -1 0 1 110@ 109@ 
if 
  110@ == 1
goto_if_false @VCR2_2590
110@ = 2
goto @VCR2_2597

:VCR2_2590
110@ = 1

:VCR2_2597
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 500
109@ += 1
if 
  20 > 109@
goto_if_false @VCR2_2655
clear_mission_audio 110@
load_mission_audio 110@ {audioId} 88@(109@,21i)

:VCR2_2655
if 
  not is_char_in_any_car 113@
goto_if_false @VCR2_2742
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @VCR2_2742
$task_status = get_script_task_status 113@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2742
task_kill_char_on_foot_timed 113@ {target} $scplayer {time} 4000

:VCR2_2742
if 
  47@ == 9
goto_if_false @VCR2_2823
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_2823
if 
  is_char_in_water 113@
goto_if_false @VCR2_2809
goto @VCR2_5002
goto @VCR2_2823

:VCR2_2809
do_fade 500 {direction} Fade.Out
47@ += 1

:VCR2_2823
if 
  47@ == 10
goto_if_false @VCR2_3005
request_animation "SWAT"
if 
  not get_fading_status 
goto_if_false @VCR2_3005
clear_char_tasks_immediately $scplayer
delete_car 112@
$x, $y, $z = get_dead_char_coordinates 113@
delete_char 113@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
clear_area $x {y} $y {z} $z {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 402 {text} "PULASKI"
112@ = create_car 402 {x} $x {y} $y {z} $z
change_car_colour 112@ {color1} 8 {color2} 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 100
47@ += 1

:VCR2_3005
if 
  47@ == 11
goto_if_false @VCR2_3607
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_3607
if 
  has_animation_loaded "SWAT"
goto_if_false @VCR2_3607
if 
  is_car_dead 112@
goto_if_false @VCR2_3091
do_fade 500 {direction} Fade.In
goto @VCR2_5002

:VCR2_3091
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.6 {yOffset} -1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
117@ = create_char PedType.Mission1 {modelId} 290 {x} $x {y} $y {z} $z
$heading = get_car_heading 112@
$heading += -90.0
set_char_heading 117@ {heading} $heading
set_char_bleeding 117@ {state} True
task_play_anim_non_interruptable 117@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 9999.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 3.0 {yOffset} -1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
$heading = get_car_heading 112@
$heading += 90.0
set_char_heading $scplayer {heading} $heading
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 3.3455 {yOffset} -1.6234 {zOffset} 1.1443
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 2.5461 {yOffset} -1.3539 {zOffset} 0.6073
point_camera_at_char 117@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21005
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 114@
goto_if_false @VCR2_3579
$x, $y, $z = get_car_coordinates 112@
if 
  locate_car_2d 114@ {x} $x {y} $y {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @VCR2_3572
delete_car 114@

:VCR2_3572
goto @VCR2_3584

:VCR2_3579
delete_car 114@

:VCR2_3584
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 400
47@ += 1

:VCR2_3607
if 
  47@ == 12
goto_if_false @VCR2_3793
if 
  not get_fading_status 
goto_if_false @VCR2_3793
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_3793
set_var_text_label s$audio_string = 'VCR2_DA'
set_var_int_to_constant $audio_sound_file = 21005
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 21023
if 
  not is_car_dead 112@
goto_if_false @VCR2_3770
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_3770
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_3793
if 
  47@ == 13
goto_if_false @VCR2_3985
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_3985
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_3985
set_var_text_label s$audio_string = 'VCR2_DB'
set_var_int_to_constant $audio_sound_file = 21023
start_new_script @AUDIOL 117@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21006
if 
  not is_car_dead 112@
goto_if_false @VCR2_3962
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_3962
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_3985
if 
  47@ == 14
goto_if_false @VCR2_4177
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4177
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4177
set_var_text_label s$audio_string = 'VCR2_DC'
set_var_int_to_constant $audio_sound_file = 21006
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 21024
if 
  not is_car_dead 112@
goto_if_false @VCR2_4154
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_4154
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4177
if 
  47@ == 15
goto_if_false @VCR2_4369
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4369
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4369
set_var_text_label s$audio_string = 'VCR2_DD'
set_var_int_to_constant $audio_sound_file = 21024
start_new_script @AUDIOL 117@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21007
if 
  not is_car_dead 112@
goto_if_false @VCR2_4346
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_4346
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4369
if 
  47@ == 16
goto_if_false @VCR2_4625
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4625
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4625
set_var_text_label s$audio_string = 'VCR2_DE'
set_var_int_to_constant $audio_sound_file = 21007
start_new_script @AUDIOL $scplayer 0 1 1 1 
set_near_clip 0.1
if 
  not is_car_dead 112@
goto_if_false @VCR2_4602
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 2.1414 {yOffset} -0.908 {zOffset} 0.2244
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:VCR2_4602
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4625
if 
  47@ == 17
goto_if_false @VCR2_4722
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4722
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4722
task_play_anim $scplayer {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
47@ += 1

:VCR2_4722
if 
  47@ == 18
goto_if_false @VCR2_4879
if 
  is_char_playing_anim $scplayer {animationName} "FIGHTA_G"
goto_if_false @VCR2_4879
118@ = get_char_anim_current_time $scplayer {animationName} "FIGHTA_G"
if 
  118@ > 0.351
goto_if_false @VCR2_4879
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundStampPed
set_music_does_fade False
do_fade 0 {direction} Fade.Out
if 
  not is_char_dead 117@
goto_if_false @VCR2_4856
task_die 117@

:VCR2_4856
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1000
47@ += 1

:VCR2_4879
if 
  47@ == 19
goto_if_false @VCR2_4977
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4977
do_fade 500 {direction} Fade.In
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
goto @VCR2_5002

:VCR2_4977
goto @VCR2_1440

:VCR2_4984
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:VCR2_5002
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
add_score $player1 {money} 0
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'VCRASH2'
player_made_progress 1
remove_blip $vcrash_contact_blip
set_int_stat StatId.PassedVcrash2 {value} 1
$flag_vcrash_mission_counter += 1
return 

:VCR2_5070
remove_blip 34@
$timer_mobile_start = get_game_timer 
unload_special_character 1
mark_model_as_no_longer_needed 568
mark_model_as_no_longer_needed 402
mark_model_as_no_longer_needed 348
if 
  is_player_playing $player1
goto_if_false @VCR2_5124
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1

:VCR2_5124
remove_animation "SWAT"
$onmission = 0
mission_has_finished 
return 

//-------------Mission 95---------------
// Originally: Madd Dogg

:DOC2
script_name 'DOC2'
gosub @DOC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DOC2_38
gosub @DOC2_13066

:DOC2_38
gosub @DOC2_13777
terminate_this_script 

:DOC2_47
131@ = 0
$d2_rnd = 40
$d2_instance_health = 0
$7795 = 0
$doc2_heal = 0
$doc2_rnd = 0
99@ = load_char_decision_maker DecisionMakerType.Weak
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
load_mission_text 'DOC2'
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DOC2_137
if 
  get_fading_status 
goto_if_false @DOC2_161
wait 0
goto @DOC2_137

:DOC2_161
load_cutscene 'DOC_2'

:DOC2_172
if 
  not has_cutscene_loaded 
goto_if_false @DOC2_196
wait 0
goto @DOC2_172

:DOC2_196
clear_area 2159.8989 {y} 1443.042 {z} 9.8203 {radius} 40.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:DOC2_229
if 
  not has_cutscene_finished 
goto_if_false @DOC2_253
wait 0
goto @DOC2_229

:DOC2_253
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:DOC2_274
if 
  get_fading_status 
goto_if_false @DOC2_298
wait 0
goto @DOC2_274

:DOC2_298
clear_cutscene 
request_model 83
request_model 85
request_model 78
request_model 68
request_model 330
request_model 258
request_model 259
request_animation "ON_LOOKERS"
load_special_character 1 {modelName} 'MADDOGG'

:DOC2_358
if or
  not has_model_loaded 83
  not has_model_loaded 85
  not has_model_loaded 78
goto_if_false @DOC2_392
wait 0
goto @DOC2_358

:DOC2_392
if or
  not has_model_loaded 68
  not has_model_loaded 330
  not has_model_loaded 258
goto_if_false @DOC2_428
wait 0
goto @DOC2_392

:DOC2_428
if or
  not has_model_loaded 259
  not has_animation_loaded "ON_LOOKERS"
  not has_special_character_loaded 1
goto_if_false @DOC2_473
wait 0
goto @DOC2_428

:DOC2_473
switch_roads_off 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
switch_ped_roads_off 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
105@ = 2163.6379
106@ = 1443.663
107@ = 9.8203
set_car_density_multiplier 0.0
clear_area 2161.3401 {y} 1442.504 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_area 2107.1899 {y} 1409.153 {z} 9.8203 {radius} 10.0 {clearParticles} True
95@ = create_char PedType.CivMale {modelId} 290 {x} 2162.6201 {y} 1451.475 {z} 23.1719
set_anim_group_for_char 95@ {animGroup} "DRUNKMAN"
set_char_heading 95@ {heading} 180.0
set_char_health 95@ {health} 1
73@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2154.1919 {y} 1437.948 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "LKAROUND_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 73@ {state} True
close_sequence_task 73@
74@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2164.5959 {y} 1435.1689 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_SHOUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 74@ {state} True
close_sequence_task 74@
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2160.696 {y} 1435.38 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 100
task_play_anim -1 {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_SHOUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 75@ {state} True
close_sequence_task 75@
76@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2169.2629 {y} 1435.927 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_02" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 76@ {state} True
close_sequence_task 76@
77@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2155.4199 {y} 1436.42 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 500
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 77@ {state} True
close_sequence_task 77@
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2168.29 {y} 1436.191 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_02" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 78@ {state} True
close_sequence_task 78@
79@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2159.2529 {y} 1435.312 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 500
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 79@ {state} True
close_sequence_task 79@
96@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2165.6509 {y} 1452.0 {z} 23.1721 {speed} MoveState.Walk {time} 8000
task_go_straight_to_coord -1 {x} 2160.5601 {y} 1452.0 {z} 23.1719 {speed} MoveState.Walk {time} 8000
set_sequence_to_repeat 96@ {state} True
close_sequence_task 96@
97@ = open_sequence_task 
task_jump -1 {state} False
close_sequence_task 97@
98@ = open_sequence_task 
task_duck -1 {time} -1
set_sequence_to_repeat 98@ {state} True
close_sequence_task 98@
116@ = open_sequence_task 
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 116@ {state} True
close_sequence_task 116@
110@ = open_sequence_task 
task_play_anim -1 {animationName} "WAVE_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 110@
111@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 111@
100@ = create_object_no_offset #SMASH_BOX_STAY {x} 2156.719 {y} 1482.3521 {z} 19.1794
101@ = create_object_no_offset #SMASH_BOX_BRK {x} 2156.719 {y} 1482.3521 {z} 19.1794
$7795 = 100
set_char_never_targetted 95@ {state} True
92@ = add_blip_for_coord 105@ {y} 106@ {z} 107@
93@ = add_blip_for_coord 1878.546 {y} 2240.8201 {z} 9.813
change_blip_display 92@ {display} BlipDisplay.Neither
change_blip_display 93@ {display} BlipDisplay.Neither
$doc2_heal = generate_random_int_in_range 0 {max} 5
switch_start $doc2_heal {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DOC2_3089 {caseNum1} 0 {caseLabel1} @DOC2_3014 {caseNum2} 1 {caseLabel2} @DOC2_3029 {caseNum3} 2 {caseLabel3} @DOC2_3044 {caseNum4} 3 {caseLabel4} @DOC2_3059 {caseNum5} 4 {caseLabel5} @DOC2_3074 {caseNum6} -1 {caseLabel6} @DOC2_3089 {caseNum7} -1 {caseLabel7} @DOC2_3089

:DOC2_3014
$doc2_heal = 16000
goto @DOC2_3089

:DOC2_3029
$doc2_heal = 18000
goto @DOC2_3089

:DOC2_3044
$doc2_heal = 20000
goto @DOC2_3089

:DOC2_3059
$doc2_heal = 22000
goto @DOC2_3089

:DOC2_3074
$doc2_heal = 24000
goto @DOC2_3089

:DOC2_3089
88@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 95@
task_scratch_head -1
task_look_about -1 {time} 4000
task_pause -1 {time} 1000
set_sequence_to_repeat 88@ {state} True
close_sequence_task 88@
39@ = 0
$doc2_rnd = 0
43@ = create_char PedType.CivMale {modelId} 78 {x} 2154.1919 {y} 1437.948 {z} 9.8203
set_char_heading 43@ {heading} 341.9008
set_char_decision_maker 43@ {handleOrTemplate} 99@
perform_sequence_task 43@ {sequence} 73@
44@ = create_char PedType.CivMale {modelId} 83 {x} 2164.5959 {y} 1435.1689 {z} 9.8203
set_char_heading 44@ {heading} 8.2163
set_char_decision_maker 44@ {handleOrTemplate} 99@
perform_sequence_task 44@ {sequence} 74@
45@ = create_char PedType.CivMale {modelId} 259 {x} 2160.696 {y} 1435.38 {z} 9.8203
set_char_heading 45@ {heading} 8.2163
set_char_decision_maker 45@ {handleOrTemplate} 99@
perform_sequence_task 45@ {sequence} 75@
46@ = create_char PedType.CivMale {modelId} 78 {x} 2169.2629 {y} 1435.927 {z} 9.8203
set_char_heading 46@ {heading} 8.2163
set_char_decision_maker 46@ {handleOrTemplate} 99@
perform_sequence_task 46@ {sequence} 76@
47@ = create_char PedType.CivMale {modelId} 85 {x} 2155.4199 {y} 1436.42 {z} 9.8203
set_char_heading 47@ {heading} 8.2163
set_char_decision_maker 47@ {handleOrTemplate} 99@
perform_sequence_task 47@ {sequence} 77@
48@ = create_char PedType.CivMale {modelId} 68 {x} 2168.29 {y} 1436.191 {z} 9.8203
set_char_heading 48@ {heading} 8.2163
set_char_decision_maker 48@ {handleOrTemplate} 99@
perform_sequence_task 48@ {sequence} 78@
49@ = create_char PedType.CivMale {modelId} 258 {x} 2159.2529 {y} 1435.312 {z} 9.8203
set_char_heading 49@ {heading} 2.018
set_char_decision_maker 49@ {handleOrTemplate} 99@
perform_sequence_task 49@ {sequence} 79@
request_model 478
request_model 50
request_model #SMASHBOXPILE

:DOC2_3511
if or
  not has_model_loaded 478
  not has_model_loaded 50
  not has_model_loaded #SMASHBOXPILE
goto_if_false @DOC2_3547
wait 0
goto @DOC2_3511

:DOC2_3547
102@ = create_object #SMASHBOXPILE {x} 2112.7529 {y} 1403.973 {z} 10.1484
set_object_heading 102@ {heading} 86.7997
mark_model_as_no_longer_needed #SMASHBOXPILE
set_car_model_components 478 {component1} 4 {component2} 4
34@ = create_car 478 {x} 2107.1899 {y} 1409.153 {z} 9.8203
mark_model_as_no_longer_needed 478
set_car_heading 34@ {heading} 180.0
change_car_colour 34@ {color1} 1 {color2} 1
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
change_blip_display 35@ {display} BlipDisplay.Both
109@ = 0.0
if 
  not is_car_dead 34@
goto_if_false @DOC2_3761
attach_object_to_car 100@ {handle} 34@ {xOffset} -0.3 {yOffset} -1.0 {zOffset} 109@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 101@ {handle} 34@ {xOffset} -0.3 {yOffset} -1.0 {zOffset} 109@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DOC2_3761
114@ = create_char PedType.CivMale {modelId} 50 {x} 2109.793 {y} 1407.8571 {z} 9.8203
mark_model_as_no_longer_needed 50
set_char_heading 114@ {heading} 180.0
task_use_mobile_phone 114@ {start} True
gosub @DOC2_14025
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_3864
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2162.498 {y} 1434.396 {z} 9.8203
set_char_heading $scplayer {heading} 358.0

:DOC2_3864
if 
  not is_char_dead 95@
goto_if_false @DOC2_3893
clear_char_tasks_immediately 95@
perform_sequence_task 95@ {sequence} 116@

:DOC2_3893
clear_area 2162.7051 {y} 1430.309 {z} 9.8203 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2162.541 {y} 1423.84 {z} 9.9728 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.5581 {y} 1424.803 {z} 10.2424 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.In
130@ = 2
135@ = 2
wait 1000
print_now 'DOC2_X' {time} 5000 {flag} 1
TIMERB = 0

:DOC2_4024
if 
  2000 > TIMERB
goto_if_false @DOC2_4078
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_4071
goto @DOC2_4170

:DOC2_4071
goto @DOC2_4024

:DOC2_4078
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_4109
clear_char_tasks_immediately $scplayer
task_achieve_heading $scplayer {heading} 172.0

:DOC2_4109
TIMERB = 0

:DOC2_4116
if 
  2000 > TIMERB
goto_if_false @DOC2_4170
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_4163
goto @DOC2_4170

:DOC2_4163
goto @DOC2_4116

:DOC2_4170
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_4201
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 172.0

:DOC2_4201
clear_prints 
gosub @DOC2_14040
set_camera_behind_player 
print_now 'DOC2_01' {time} 7000 {flag} 1

:DOC2_4228
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
  not is_char_dead 95@
goto_if_false @DOC2_13052
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DOC2_4280
goto @DOC2_13253

:DOC2_4280
131@ += 1
gosub @DOC2_14125
gosub @DOC2_14927
if 
  4 > 91@
goto_if_false @DOC2_5062
if and
  131@ > 200
  locate_char_any_means_3d $scplayer {x} 2154.1919 {y} 1437.948 {z} 9.8203 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  not is_message_being_displayed 
goto_if_false @DOC2_5062

:DOC2_4377
$doc2_rnd = generate_random_int_in_range 0 {max} 9
if and
  is_int_var_equal_to_int_lvar $doc2_rnd == 132@
  3 > 133@
goto_if_false @DOC2_4426
goto @DOC2_4377
133@ += 1

:DOC2_4426
set_lvar_int_to_var_int 132@ = $doc2_rnd
133@ = 0
if 
  not is_char_dead 43@
goto_if_false @DOC2_4691
if and
  locate_char_any_means_3d 43@ {x} 2154.1919 {y} 1437.948 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  not is_message_being_displayed 
  126@ == 0
goto_if_false @DOC2_4691
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_4691 {caseNum1} 0 {caseLabel1} @DOC2_4577 {caseNum2} 1 {caseLabel2} @DOC2_4615 {caseNum3} 2 {caseLabel3} @DOC2_4653 {caseNum4} -1 {caseLabel4} @DOC2_4691 {caseNum5} -1 {caseLabel5} @DOC2_4691 {caseNum6} -1 {caseLabel6} @DOC2_4691 {caseNum7} -1 {caseLabel7} @DOC2_4691

:DOC2_4577
set_lvar_text_label 127@s = 'DC2_AA'
set_lvar_int_to_constant 129@ = 38209
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4615
set_lvar_text_label 127@s = 'DC2_AB'
set_lvar_int_to_constant 129@ = 38210
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4653
set_lvar_text_label 127@s = 'DC2_AC'
set_lvar_int_to_constant 129@ = 38211
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4691
if 
  not is_char_dead 44@
goto_if_false @DOC2_5055
if and
  locate_char_any_means_3d 44@ {x} 2164.5959 {y} 1435.1689 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  not is_message_being_displayed 
  126@ == 0
goto_if_false @DOC2_5055
switch_start $doc2_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DOC2_5055 {caseNum1} 3 {caseLabel1} @DOC2_4827 {caseNum2} 4 {caseLabel2} @DOC2_4865 {caseNum3} 5 {caseLabel3} @DOC2_4903 {caseNum4} 6 {caseLabel4} @DOC2_4941 {caseNum5} 7 {caseLabel5} @DOC2_4979 {caseNum6} 8 {caseLabel6} @DOC2_5017 {caseNum7} -1 {caseLabel7} @DOC2_5055

:DOC2_4827
set_lvar_text_label 127@s = 'DC2_AD'
set_lvar_int_to_constant 129@ = 38200
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4865
set_lvar_text_label 127@s = 'DC2_AE'
set_lvar_int_to_constant 129@ = 38201
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4903
set_lvar_text_label 127@s = 'DC2_AF'
set_lvar_int_to_constant 129@ = 38202
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4941
set_lvar_text_label 127@s = 'DC2_AJ'
set_lvar_int_to_constant 129@ = 38206
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4979
set_lvar_text_label 127@s = 'DC2_AK'
set_lvar_int_to_constant 129@ = 38207
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_5017
set_lvar_text_label 127@s = 'DC2_AL'
set_lvar_int_to_constant 129@ = 38208
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_5055
131@ = 0

:DOC2_5062
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
  not is_char_dead 95@
goto_if_false @DOC2_6993
39@ = 0

:DOC2_5095
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_5290
if and
  has_char_been_damaged_by_char 43@(39@,15i) {handle} $scplayer
  58@(39@,15i) == 0
goto_if_false @DOC2_5198
clear_char_tasks 43@(39@,15i)
task_go_straight_to_coord 43@(39@,15i) {x} 2082.0049 {y} 1415.9091 {z} 9.8047 {speed} MoveState.Sprint {time} 20000
58@(39@,15i) = 1

:DOC2_5198
if and
  locate_char_any_means_3d 43@(39@,15i) {x} 2082.3811 {y} 1416.636 {z} 9.8047 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  58@(39@,15i) <> 3
goto_if_false @DOC2_5290
clear_char_tasks 43@(39@,15i)
task_wander_standard 43@(39@,15i)
58@(39@,15i) = 3

:DOC2_5290
39@ += 1
  39@ >= 7
goto_if_false @DOC2_5095
if or
  91@ == 1
  91@ == 0
goto_if_false @DOC2_5766
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_5606
if and
  not is_char_dead 114@
  113@ == 0
goto_if_false @DOC2_5578
clear_char_tasks_immediately 114@
task_kill_char_on_foot 114@ {target} $scplayer
$doc2_rnd = generate_random_int_in_range 0 {max} 2
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_5571 {caseNum1} 0 {caseLabel1} @DOC2_5463 {caseNum2} 1 {caseLabel2} @DOC2_5499 {caseNum3} 2 {caseLabel3} @DOC2_5535 {caseNum4} -1 {caseLabel4} @DOC2_5571 {caseNum5} -1 {caseLabel5} @DOC2_5571 {caseNum6} -1 {caseLabel6} @DOC2_5571 {caseNum7} -1 {caseLabel7} @DOC2_5571

:DOC2_5463
set_lvar_text_label 127@s = 'DOGG_GA'
set_lvar_int_to_constant 129@ = 12839
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5499
set_lvar_text_label 127@s = 'DOGG_GB'
set_lvar_int_to_constant 129@ = 12840
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5535
set_lvar_text_label 127@s = 'DOGG_GC'
set_lvar_int_to_constant 129@ = 12841
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5571
113@ = 1

:DOC2_5578
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 92@ {display} BlipDisplay.Both
91@ = 1
goto @DOC2_5627

:DOC2_5606
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
91@ = 0

:DOC2_5627
if 
  91@ == 1
goto_if_false @DOC2_5766
if and
  locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  not is_char_dead $scplayer
goto_if_false @DOC2_5766
set_player_control $player1 {state} False
91@ = 2
108@ = get_char_heading $scplayer
if and
  108@ > 45.0
  145.0 > 108@
goto_if_false @DOC2_5759
125@ = 0
goto @DOC2_5766

:DOC2_5759
125@ = 1

:DOC2_5766
if 
  91@ == 2
goto_if_false @DOC2_6993
gosub @DOC2_14025
if 
  not is_char_dead 95@
goto_if_false @DOC2_5848
clear_char_tasks_immediately 95@
task_play_anim 95@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DOC2_5848
set_fixed_camera_position 2162.6201 {y} 1450.208 {z} 25.1198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1451.192 {z} 24.9414 {switchStyle} SwitchType.JumpCut
$doc2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_6235 {caseNum1} 0 {caseLabel1} @DOC2_5971 {caseNum2} 1 {caseLabel2} @DOC2_6059 {caseNum3} 2 {caseLabel3} @DOC2_6147 {caseNum4} -1 {caseLabel4} @DOC2_6235 {caseNum5} -1 {caseLabel5} @DOC2_6235 {caseNum6} -1 {caseLabel6} @DOC2_6235 {caseNum7} -1 {caseLabel7} @DOC2_6235

:DOC2_5971
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12800

:DOC2_5982
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_6008
wait 0
goto @DOC2_5982

:DOC2_6008
if 
  not is_char_dead 95@
goto_if_false @DOC2_6032
start_char_facial_talk 95@ {duration} 2000

:DOC2_6032
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AA' {time} 3000 {flag} 1
goto @DOC2_6235

:DOC2_6059
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12802

:DOC2_6070
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_6096
wait 0
goto @DOC2_6070

:DOC2_6096
if 
  not is_char_dead 95@
goto_if_false @DOC2_6120
start_char_facial_talk 95@ {duration} 2000

:DOC2_6120
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AC' {time} 3000 {flag} 1
goto @DOC2_6235

:DOC2_6147
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12806

:DOC2_6158
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_6184
wait 0
goto @DOC2_6158

:DOC2_6184
if 
  not is_char_dead 95@
goto_if_false @DOC2_6208
start_char_facial_talk 95@ {duration} 2000

:DOC2_6208
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AG' {time} 3000 {flag} 1
goto @DOC2_6235

:DOC2_6235
if 
  not is_char_dead 114@
goto_if_false @DOC2_6256
remove_char_elegantly 114@

:DOC2_6256
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 50
wait 1000
TIMERB = 0

:DOC2_6277
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_6334
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6327
134@ = 1
goto @DOC2_6765

:DOC2_6327
goto @DOC2_6277

:DOC2_6334
if 
  not is_char_dead 95@
goto_if_false @DOC2_6355
stop_char_facial_talk 95@

:DOC2_6355
TIMERB = 0

:DOC2_6362
if 
  2000 > TIMERB
goto_if_false @DOC2_6423
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6416
134@ = 1
goto @DOC2_6765

:DOC2_6416
goto @DOC2_6362

:DOC2_6423
set_interpolation_parameters 0.0 {time} 2000
set_fixed_camera_position 2162.6201 {y} 1450.208 {z} 25.1198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1450.499 {z} 24.1631 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_6491
if 
  2000 > TIMERB
goto_if_false @DOC2_6552
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6545
134@ = 1
goto @DOC2_6765

:DOC2_6545
goto @DOC2_6491

:DOC2_6552
set_interpolation_parameters 0.0 {time} 2000
set_fixed_camera_position 2162.6201 {y} 1445.077 {z} 13.6736 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1445.8149 {z} 14.7476 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_6620
if 
  1000 > TIMERB
goto_if_false @DOC2_6681
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6674
134@ = 1
goto @DOC2_6765

:DOC2_6674
goto @DOC2_6620

:DOC2_6681
print_now 'DOC2_05' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_6704
if 
  3000 > TIMERB
goto_if_false @DOC2_6765
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6758
134@ = 1
goto @DOC2_6765

:DOC2_6758
goto @DOC2_6704

:DOC2_6765
if 
  134@ == 1
goto_if_false @DOC2_6799
print_now 'DOC2_05' {time} 3000 {flag} 1

:DOC2_6799
clear_prints 
if 
  not is_char_dead 95@
goto_if_false @DOC2_6825
perform_sequence_task 95@ {sequence} 96@

:DOC2_6825
if 
  125@ == 0
goto_if_false @DOC2_6896
if 
  not is_car_dead 34@
goto_if_false @DOC2_6889
set_car_coordinates 34@ {x} 2163.8879 {y} 1444.0 {z} 9.8203
set_car_heading 34@ {heading} 90.0

:DOC2_6889
goto @DOC2_6942

:DOC2_6896
if 
  not is_car_dead 34@
goto_if_false @DOC2_6942
set_car_coordinates 34@ {x} 2163.8879 {y} 1444.0 {z} 9.8203
set_car_heading 34@ {heading} 270.0

:DOC2_6942
apply_brakes_to_players_car $player1 {state} False
if 
  does_blip_exist 92@
goto_if_false @DOC2_6972
set_coord_blip_appearance 92@ {color} CoordAppearance.Friend

:DOC2_6972
gosub @DOC2_14040
91@ = 3
TIMERA = 0

:DOC2_6993
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
  not is_char_dead 95@
goto_if_false @DOC2_13000
if 
  91@ == 3
goto_if_false @DOC2_9078
if 
  not locate_char_any_means_3d $scplayer {x} 2149.407 {y} 1431.4969 {z} 9.8203 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DOC2_7108
print_now 'DOC2_10' {time} 4000 {flag} 1
goto @DOC2_13066

:DOC2_7108
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_7173
if 
  89@ == 0
goto_if_false @DOC2_7166
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 92@ {display} BlipDisplay.Both
89@ = 1

:DOC2_7166
goto @DOC2_7228

:DOC2_7173
if 
  89@ == 1
goto_if_false @DOC2_7228
print_now 'DOC2_19' {time} 4000 {flag} 1
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
89@ = 0

:DOC2_7228
if and
  not locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
  112@ == 1
goto_if_false @DOC2_7293
TIMERB = 0
restore_camera_jumpcut 
112@ = 2

:DOC2_7293
if and
  TIMERB > 1000
  112@ == 2
goto_if_false @DOC2_7342
print_now 'DOC2_11' {time} 4000 {flag} 1
112@ = 0

:DOC2_7342
if 
  locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
goto_if_false @DOC2_9078
112@ = 1
if 
  40000 > TIMERA
goto_if_false @DOC2_7463
set_fixed_camera_position 2163.7019 {y} 1435.87 {z} 37.0031 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.699 {y} 1436.447 {z} 36.1861 {switchStyle} SwitchType.JumpCut

:DOC2_7463
if and
  TIMERA > 10000
  11000 > TIMERA
goto_if_false @DOC2_7779
if 
  126@ == 0
goto_if_false @DOC2_7779
$doc2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_7772 {caseNum1} 0 {caseLabel1} @DOC2_7580 {caseNum2} 1 {caseLabel2} @DOC2_7644 {caseNum3} 2 {caseLabel3} @DOC2_7708 {caseNum4} -1 {caseLabel4} @DOC2_7772 {caseNum5} -1 {caseLabel5} @DOC2_7772 {caseNum6} -1 {caseLabel6} @DOC2_7772 {caseNum7} -1 {caseLabel7} @DOC2_7772

:DOC2_7580
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12810

:DOC2_7591
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7617
wait 0
goto @DOC2_7591

:DOC2_7617
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BA' {time} 4000 {flag} 1
goto @DOC2_7772

:DOC2_7644
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12811

:DOC2_7655
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7681
wait 0
goto @DOC2_7655

:DOC2_7681
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BB' {time} 4000 {flag} 1
goto @DOC2_7772

:DOC2_7708
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12812

:DOC2_7719
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7745
wait 0
goto @DOC2_7719

:DOC2_7745
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BC' {time} 4000 {flag} 1
goto @DOC2_7772

:DOC2_7772
126@ = 1

:DOC2_7779
if 
  is_int_lvar_greater_than_int_var TIMERA > $doc2_heal
goto_if_false @DOC2_9078
set_player_control $player1 {state} True
if 
  not is_char_dead 95@
goto_if_false @DOC2_7836
clear_char_tasks_immediately 95@
set_char_heading 95@ {heading} 177.7059

:DOC2_7836
set_time_scale 0.4
set_fixed_camera_position 2163.22 {y} 1454.533 {z} 35.0248 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.2271 {y} 1454.063 {z} 34.1425 {switchStyle} SwitchType.JumpCut
wait 500
set_object_collision 100@ {state} False
set_object_collision 101@ {state} False
if 
  not is_char_dead 95@
goto_if_false @DOC2_7937
perform_sequence_task 95@ {sequence} 97@

:DOC2_7937
TIMERB = 0
91@ = 4
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 35000

:DOC2_7964
if 
  TIMERB <= 2000
goto_if_false @DOC2_8578
wait 0
if and
  TIMERB > 500
  103@ == 0
goto_if_false @DOC2_8041
if 
  not is_char_dead 95@
goto_if_false @DOC2_8034
clear_char_tasks 95@

:DOC2_8034
103@ = 1

:DOC2_8041
if 
  not is_char_dead 95@
goto_if_false @DOC2_8137
$x, $y, $z = get_char_coordinates 95@
if and
  12.0 > $z
  TIMERA > 10
goto_if_false @DOC2_8137
TIMERA = 0
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 2.0 {density} 40 {handle} 95@

:DOC2_8137
if 
  TIMERB > 1000
goto_if_false @DOC2_8221
gosub @DOC2_14025
set_fixed_camera_position 2172.002 {y} 1441.702 {z} 10.2111 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.0759 {y} 1442.0031 {z} 10.4368 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False

:DOC2_8221
if 
  not is_car_dead 34@
goto_if_false @DOC2_8571
if 
  not is_char_dead 95@
goto_if_false @DOC2_8571
if 
  91@ <> 5
goto_if_false @DOC2_8571
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
if 
  locate_char_any_means_3d 95@ {x} 40@ {y} 41@ {z} 42@ {xRadius} 1.3 {yRadius} 1.3 {zRadius} 1.0 {drawSphere} False
goto_if_false @DOC2_8571
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DOC2_8361
play_mission_audio MissionAudioSlot.Slot3

:DOC2_8361
109@ = -0.1
break_object 101@ {intensity} 1
set_char_collision 95@ {state} False
set_char_health 95@ {health} 100
clear_char_tasks_immediately 95@
task_play_anim_non_interruptable 95@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
91@ = 5
if and
  not is_char_dead 95@
  not is_car_dead 34@
goto_if_false @DOC2_8571
90@ = create_fx_system "EXPLOSION_BARREL" {x} 40@ {y} 41@ {z} 42@ {ignoreBoundingChecks} True
play_and_kill_fx_system 90@
shake_pad PadId.Pad1 {time} 500 {intensity} 200
set_car_density_multiplier 2.0
set_char_health 95@ {health} 100
display_hud True
gosub @DOC2_13336

:DOC2_8571
goto @DOC2_7964

:DOC2_8578
TIMERA = 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @DOC2_8604
clear_mission_audio MissionAudioSlot.Slot3

:DOC2_8604
set_time_scale 1.0
gosub @DOC2_14040
if and
  not is_char_dead 95@
  not is_car_dead 34@
goto_if_false @DOC2_8676
detach_char_from_car 95@
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.5 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:DOC2_8676
if 
  91@ == 4
goto_if_false @DOC2_8767
if 
  not is_char_dead 95@
goto_if_false @DOC2_8760
$x, $y, $z = get_char_coordinates 95@
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 10.0 {density} 100 {handle} 95@
task_die 95@

:DOC2_8760
goto @DOC2_9078

:DOC2_8767
if 
  not is_car_dead 34@
goto_if_false @DOC2_8813
set_car_density_multiplier 2.0
36@ = get_car_health 34@
set_car_proofs 34@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True

:DOC2_8813
set_lvar_int_to_lvar_int 37@ = 36@
display_onscreen_counter_with_string $d2_rnd {display} CounterDisplay.Bar {text} 'DOC2_07'
change_blip_display 93@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
39@ = 0

:DOC2_8858
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_9015
clear_char_tasks_immediately 43@(39@,15i)
$doc2_rnd = generate_random_int_in_range 0 {max} 2
if 
  $doc2_rnd == 0
goto_if_false @DOC2_8968
$doc2_rnd = generate_random_int_in_range 10 {max} 200
wait $doc2_rnd
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_8961
perform_sequence_task 43@(39@,15i) {sequence} 110@

:DOC2_8961
goto @DOC2_9015

:DOC2_8968
$doc2_rnd = generate_random_int_in_range 10 {max} 200
wait $doc2_rnd
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_9015
perform_sequence_task 43@(39@,15i) {sequence} 111@

:DOC2_9015
39@ += 1
  39@ >= 7
goto_if_false @DOC2_8858
remove_animation "ON_LOOKERS"
wait 1000
print_now 'DOC2_06' {time} 5000 {flag} 1
TIMERA = 0

:DOC2_9078
if and
  not is_car_dead 34@
  not is_char_dead 95@
goto_if_false @DOC2_13000
if 
  91@ == 5
goto_if_false @DOC2_13000
if 
  TIMERA > 5000
goto_if_false @DOC2_9502
if and
  130@ == 2
  124@ == 0
goto_if_false @DOC2_9197
set_lvar_text_label 127@s = 'DOGG_CA'
set_lvar_int_to_constant 129@ = 12831
gosub @DOC2_14907
124@ = 1

:DOC2_9197
if and
  130@ == 2
  124@ == 1
goto_if_false @DOC2_9258
set_lvar_text_label 127@s = 'DOGG_CB'
set_lvar_int_to_constant 129@ = 12813
gosub @DOC2_14907
124@ = 2

:DOC2_9258
if and
  130@ == 2
  124@ == 2
goto_if_false @DOC2_9319
set_lvar_text_label 127@s = 'DOGG_CC'
set_lvar_int_to_constant 129@ = 12832
gosub @DOC2_14907
124@ = 3

:DOC2_9319
if and
  130@ == 2
  124@ == 3
goto_if_false @DOC2_9380
set_lvar_text_label 127@s = 'DOGG_CD'
set_lvar_int_to_constant 129@ = 12833
gosub @DOC2_14907
124@ = 4

:DOC2_9380
if and
  130@ == 2
  124@ == 4
goto_if_false @DOC2_9441
set_lvar_text_label 127@s = 'DOGG_CE'
set_lvar_int_to_constant 129@ = 12834
gosub @DOC2_14907
124@ = 5

:DOC2_9441
if and
  130@ == 2
  124@ == 5
goto_if_false @DOC2_9502
set_lvar_text_label 127@s = 'DOGG_CF'
set_lvar_int_to_constant 129@ = 12814
gosub @DOC2_14907
124@ = 6

:DOC2_9502
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @DOC2_9638
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_9597
if 
  117@ == 0
goto_if_false @DOC2_9590
124@ = 6
print_now 'DOC2_19' {time} 4000 {flag} 1
117@ = 1

:DOC2_9590
goto @DOC2_9638

:DOC2_9597
if 
  117@ == 1
goto_if_false @DOC2_9638
print_now 'DOC2_20' {time} 4000 {flag} 1
117@ = 0

:DOC2_9638
set_lvar_int_to_lvar_int 37@ = 36@
36@ = get_car_health 34@
if and
  not is_char_dead 95@
  not is_char_dead $scplayer
goto_if_false @DOC2_9720
if 
  has_char_been_damaged_by_char 95@ {handle} $scplayer
goto_if_false @DOC2_9720
if 
  is_int_lvar_equal_to_int_lvar 36@ == 37@
goto_if_false @DOC2_9720
36@ -= 50

:DOC2_9720
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @DOC2_10855
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 36@
sub_int_lvar_from_int_var $d2_rnd -= 38@
if 
  0 > $d2_rnd
goto_if_false @DOC2_10042
$d2_rnd = 0
clear_prints 
$doc2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_9970 {caseNum1} 0 {caseLabel1} @DOC2_9862 {caseNum2} 1 {caseLabel2} @DOC2_9898 {caseNum3} 2 {caseLabel3} @DOC2_9934 {caseNum4} -1 {caseLabel4} @DOC2_9970 {caseNum5} -1 {caseLabel5} @DOC2_9970 {caseNum6} -1 {caseLabel6} @DOC2_9970 {caseNum7} -1 {caseLabel7} @DOC2_9970

:DOC2_9862
set_lvar_text_label 127@s = 'DOGG_EA'
set_lvar_int_to_constant 129@ = 12825
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9898
set_lvar_text_label 127@s = 'DOGG_EB'
set_lvar_int_to_constant 129@ = 12826
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9934
set_lvar_text_label 127@s = 'DOGG_EC'
set_lvar_int_to_constant 129@ = 12827
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9970
if 
  not is_car_dead 34@
goto_if_false @DOC2_10000
91@ = 6
goto @DOC2_10012

:DOC2_10000
remove_char_elegantly 95@
goto @DOC2_13066

:DOC2_10012
if 
  not is_char_dead 95@
goto_if_false @DOC2_10035
set_char_bleeding 95@ {state} False

:DOC2_10035
TIMERB = 0

:DOC2_10042
if and
  94@ == 0
  91@ <> 6
goto_if_false @DOC2_10855
clear_prints 
124@ = 4
94@ = 1
TIMERB = 0
set_char_bleeding 95@ {state} True
if or
  137@ == 0
  137@ == 1
goto_if_false @DOC2_10138
$doc2_rnd = generate_random_int_in_range 0 {max} 3
goto @DOC2_10147

:DOC2_10138
$doc2_rnd = generate_random_int_in_range 0 {max} 2

:DOC2_10147
switch_start 137@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DOC2_10816 {caseNum1} 0 {caseLabel1} @DOC2_10210 {caseNum2} 1 {caseLabel2} @DOC2_10358 {caseNum3} 2 {caseLabel3} @DOC2_10506 {caseNum4} 3 {caseLabel4} @DOC2_10661 {caseNum5} -1 {caseLabel5} @DOC2_10816 {caseNum6} -1 {caseLabel6} @DOC2_10816 {caseNum7} -1 {caseLabel7} @DOC2_10816

:DOC2_10210
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10257
set_lvar_text_label 127@s = 'DOGG_DC'
set_lvar_int_to_constant 129@ = 12817
gosub @DOC2_14907

:DOC2_10257
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10304
set_lvar_text_label 127@s = 'DOGG_DD'
set_lvar_int_to_constant 129@ = 12818
gosub @DOC2_14907

:DOC2_10304
if 
  $doc2_rnd == 2
goto_if_false @DOC2_10351
set_lvar_text_label 127@s = 'DOGG_DI'
set_lvar_int_to_constant 129@ = 12823
gosub @DOC2_14907

:DOC2_10351
goto @DOC2_10816

:DOC2_10358
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10405
set_lvar_text_label 127@s = 'DOGG_DJ'
set_lvar_int_to_constant 129@ = 12824
gosub @DOC2_14907

:DOC2_10405
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10452
set_lvar_text_label 127@s = 'DOGG_DE'
set_lvar_int_to_constant 129@ = 12819
gosub @DOC2_14907

:DOC2_10452
if 
  $doc2_rnd == 2
goto_if_false @DOC2_10499
set_lvar_text_label 127@s = 'DOGG_DF'
set_lvar_int_to_constant 129@ = 12820
gosub @DOC2_14907

:DOC2_10499
goto @DOC2_10816

:DOC2_10506
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10553
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 12821
gosub @DOC2_14907

:DOC2_10553
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10654
if 
  124@ == 6
goto_if_false @DOC2_10625
set_lvar_text_label 127@s = 'DOGG_DH'
set_lvar_int_to_constant 129@ = 12822
gosub @DOC2_14907
goto @DOC2_10654

:DOC2_10625
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 12821
gosub @DOC2_14907

:DOC2_10654
goto @DOC2_10816

:DOC2_10661
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10708
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 12815
gosub @DOC2_14907

:DOC2_10708
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10809
if 
  124@ == 6
goto_if_false @DOC2_10780
set_lvar_text_label 127@s = 'DOGG_DB'
set_lvar_int_to_constant 129@ = 12816
gosub @DOC2_14907
goto @DOC2_10809

:DOC2_10780
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 12815
gosub @DOC2_14907

:DOC2_10809
goto @DOC2_10816

:DOC2_10816
137@ += 1
if 
  137@ == 4
goto_if_false @DOC2_10848
137@ = 0

:DOC2_10848
124@ = 6

:DOC2_10855
if and
  94@ == 1
  TIMERB > 4000
goto_if_false @DOC2_10895
set_char_bleeding 95@ {state} False
94@ = 0

:DOC2_10895
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_10935
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 93@ {display} BlipDisplay.Both
goto @DOC2_10949

:DOC2_10935
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 93@ {display} BlipDisplay.Neither

:DOC2_10949
if 
  not is_car_dead 34@
goto_if_false @DOC2_13000
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_13000
if and
  locate_char_any_means_3d $scplayer {x} 1878.546 {y} 2240.8201 {z} 9.813 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  not is_car_dead 34@
goto_if_false @DOC2_13000
set_player_control $player1 {state} False
if 
  not is_char_dead 95@
goto_if_false @DOC2_12967
apply_brakes_to_players_car $player1 {state} True
gosub @DOC2_14025
108@ = get_char_heading $scplayer
if and
  108@ > 0.0
  180.0 > 108@
goto_if_false @DOC2_11127
115@ = 0
goto @DOC2_11134

:DOC2_11127
115@ = 1

:DOC2_11134
clear_area 1878.546 {y} 2240.8201 {z} 9.813 {radius} 10.0 {clearParticles} True
detach_char_from_car 95@
if 
  not is_char_dead 95@
goto_if_false @DOC2_11209
set_char_coordinates 95@ {x} 1876.335 {y} 2236.8999 {z} 10.125
set_char_heading 95@ {heading} 242.5344

:DOC2_11209
if 
  not is_car_dead 34@
goto_if_false @DOC2_11290
set_car_coordinates 34@ {x} 1878.546 {y} 2240.8201 {z} 9.813
if 
  115@ == 0
goto_if_false @DOC2_11280
set_car_heading 34@ {heading} 90.0
goto @DOC2_11290

:DOC2_11280
set_car_heading 34@ {heading} 270.0

:DOC2_11290
set_fixed_camera_position 1854.521 {y} 2272.75 {z} 11.9889 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1854.83 {y} 2271.8 {z} 11.9363 {switchStyle} SwitchType.JumpCut
wait 1000
TIMERB = 0

:DOC2_11353
if 
  2000 > TIMERB
goto_if_false @DOC2_11407
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11400
goto @DOC2_12833

:DOC2_11400
goto @DOC2_11353

:DOC2_11407
if 
  not is_char_dead 95@
goto_if_false @DOC2_11476
139@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1878.493 {y} 2235.1079 {z} 10.125 {speed} MoveState.Run {vehicle} -1
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 2000
task_toggle_duck -1 {state} True
close_sequence_task 139@

:DOC2_11476
120@ = create_char PedType.CivMale {modelId} 274 {x} 1875.337 {y} 2235.2271 {z} 10.125
set_char_heading 120@ {heading} 329.5542
task_toggle_duck 120@ {state} True
121@ = create_char PedType.CivMale {modelId} 274 {x} 1886.007 {y} 2235.0669 {z} 10.125
set_char_heading 121@ {heading} 84.1029
perform_sequence_task 121@ {sequence} 139@
set_fixed_camera_position 1872.495 {y} 2243.844 {z} 14.0672 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1873.321 {y} 2243.282 {z} 14.1094 {switchStyle} SwitchType.JumpCut
wait 100
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12835

:DOC2_11627
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_11653
wait 0
goto @DOC2_11627

:DOC2_11653
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FA' {time} 3000 {flag} 1
set_interpolation_parameters 0.0 {time} 6000
set_fixed_camera_position 1872.495 {y} 2243.844 {z} 14.0672 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1872.9709 {y} 2243.1431 {z} 13.5352 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_11741
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_11791
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11784
goto @DOC2_12833

:DOC2_11784
goto @DOC2_11741

:DOC2_11791
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12836

:DOC2_11802
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_11828
wait 0
goto @DOC2_11802

:DOC2_11828
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FB' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_11855
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_11905
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11898
goto @DOC2_12833

:DOC2_11898
goto @DOC2_11855

:DOC2_11905
TIMERB = 0

:DOC2_11912
if 
  1000 > TIMERB
goto_if_false @DOC2_11966
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11959
goto @DOC2_12833

:DOC2_11959
goto @DOC2_11912

:DOC2_11966
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12828

:DOC2_11977
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12003
wait 0
goto @DOC2_11977

:DOC2_12003
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FC' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12030
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12080
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12073
goto @DOC2_12833

:DOC2_12073
goto @DOC2_12030

:DOC2_12080
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12837

:DOC2_12091
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12117
wait 0
goto @DOC2_12091

:DOC2_12117
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FD' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12144
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12194
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12187
goto @DOC2_12833

:DOC2_12187
goto @DOC2_12144

:DOC2_12194
TIMERB = 0

:DOC2_12201
if 
  1000 > TIMERB
goto_if_false @DOC2_12255
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12248
goto @DOC2_12833

:DOC2_12248
goto @DOC2_12201

:DOC2_12255
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12829

:DOC2_12266
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12292
wait 0
goto @DOC2_12266

:DOC2_12292
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FE' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12319
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12369
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12362
goto @DOC2_12833

:DOC2_12362
goto @DOC2_12319

:DOC2_12369
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12830

:DOC2_12380
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12406
wait 0
goto @DOC2_12380

:DOC2_12406
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FF' {time} 2000 {flag} 1
TIMERB = 0

:DOC2_12433
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12483
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12476
goto @DOC2_12833

:DOC2_12476
goto @DOC2_12433

:DOC2_12483
TIMERB = 0

:DOC2_12490
if 
  1000 > TIMERB
goto_if_false @DOC2_12544
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12537
goto @DOC2_12833

:DOC2_12537
goto @DOC2_12490

:DOC2_12544
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
goto_if_false @DOC2_12658
if 
  115@ == 0
goto_if_false @DOC2_12624
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} 1853.302 {y} 2239.55 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @DOC2_12658

:DOC2_12624
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} 1902.168 {y} 2238.136 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DOC2_12658
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12838

:DOC2_12669
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12695
wait 0
goto @DOC2_12669

:DOC2_12695
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FG' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12722
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12772
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12765
goto @DOC2_12833

:DOC2_12765
goto @DOC2_12722

:DOC2_12772
TIMERB = 0

:DOC2_12779
if 
  1000 > TIMERB
goto_if_false @DOC2_12833
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12826
goto @DOC2_12833

:DOC2_12826
goto @DOC2_12779

:DOC2_12833
gosub @DOC2_13691
if 
  not is_car_dead 34@
goto_if_false @DOC2_12948
set_car_status 34@ {status} EntityStatus.Player
if 
  115@ == 1
goto_if_false @DOC2_12918
set_car_coordinates 34@ {x} 1913.238 {y} 2240.4009 {z} 9.8203
set_car_heading 34@ {heading} 270.0
goto @DOC2_12948

:DOC2_12918
set_car_coordinates 34@ {x} 1867.3 {y} 2260.574 {z} 9.8203
set_car_heading 34@ {heading} 0.0

:DOC2_12948
clear_onscreen_counter $7795
gosub @DOC2_14040
apply_brakes_to_players_car $player1 {state} False

:DOC2_12967
delete_char 95@
if 
  does_blip_exist 93@
goto_if_false @DOC2_12993
remove_blip 93@

:DOC2_12993
goto @DOC2_13253

:DOC2_13000
if and
  91@ == 6
  TIMERB > 3000
goto_if_false @DOC2_13045
set_char_bleeding 95@ {state} False
remove_char_elegantly 95@
goto @DOC2_13066

:DOC2_13045
goto @DOC2_4228

:DOC2_13052
gosub @DOC2_14040
goto @DOC2_13066

:DOC2_13066
if 
  104@ == 0
goto_if_false @DOC2_13251
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  91@ == 5
goto_if_false @DOC2_13123
clear_onscreen_counter $d2_rnd

:DOC2_13123
if 
  is_car_dead 34@
goto_if_false @DOC2_13212
if 
  5 > 91@
goto_if_false @DOC2_13180
print_now 'DOC2_09' {time} 4000 {flag} 1
goto @DOC2_13196

:DOC2_13180
print_now 'DOC2_10' {time} 4000 {flag} 1

:DOC2_13196
if 
  not is_char_dead 95@
goto_if_false @DOC2_13212

:DOC2_13212
if or
  is_char_dead 95@
  $d2_rnd == 0
goto_if_false @DOC2_13251
print_now 'DOC2_10' {time} 4000 {flag} 1

:DOC2_13251
return 

:DOC2_13253
104@ = 1
if 
  does_blip_exist $doc_contact_blip
goto_if_false @DOC2_13281
remove_blip $doc_contact_blip

:DOC2_13281
$flag_doc_mission_counter += 1
register_mission_passed 'DOC_2'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
clear_wanted_level $player1
return 

:DOC2_13336
request_model 274
request_model 416

:DOC2_13346
if or
  not has_model_loaded 274
  not has_model_loaded 416
goto_if_false @DOC2_13378
wait 0
goto @DOC2_13346

:DOC2_13378
118@ = create_char PedType.CivMale {modelId} 274 {x} 1853.996 {y} 2264.554 {z} 9.9245
set_char_heading 118@ {heading} 261.1915
119@ = create_char PedType.CivMale {modelId} 274 {x} 1855.156 {y} 2264.2859 {z} 9.8885
set_char_heading 119@ {heading} 62.9217
122@ = create_car 416 {x} 1889.046 {y} 2256.1279 {z} 9.8203
set_car_heading 122@ {heading} 359.5048
123@ = create_car 416 {x} 1896.493 {y} 2256.0691 {z} 9.8203
set_car_heading 123@ {heading} 2.7445
142@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1853.996 {y} 2264.554 {z} 9.9245 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 242.922
if 
  not is_char_dead 119@
goto_if_false @DOC2_13602
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DOC2_13602
set_sequence_to_repeat 142@ {state} True
close_sequence_task 142@
perform_sequence_task 118@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1855.156 {y} 2264.2859 {z} 9.8885 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 62.9217
set_sequence_to_repeat 142@ {state} True
close_sequence_task 142@
perform_sequence_task 119@ {sequence} 142@
mark_model_as_no_longer_needed 416
return 

:DOC2_13691
if 
  not is_char_dead 118@
goto_if_false @DOC2_13712
remove_char_elegantly 118@

:DOC2_13712
if 
  not is_char_dead 119@
goto_if_false @DOC2_13733
remove_char_elegantly 119@

:DOC2_13733
if 
  not is_char_dead 120@
goto_if_false @DOC2_13754
remove_char_elegantly 120@

:DOC2_13754
if 
  not is_char_dead 121@
goto_if_false @DOC2_13775
remove_char_elegantly 121@

:DOC2_13775
return 

:DOC2_13777
$onmission = 0
if 
  not is_char_dead 95@
goto_if_false @DOC2_13805
remove_char_elegantly 95@

:DOC2_13805
if 
  does_blip_exist 92@
goto_if_false @DOC2_13826
remove_blip 92@

:DOC2_13826
if 
  does_blip_exist 93@
goto_if_false @DOC2_13847
remove_blip 93@

:DOC2_13847
if 
  does_blip_exist 35@
goto_if_false @DOC2_13868
remove_blip 35@

:DOC2_13868
clear_onscreen_counter $d2_rnd
kill_fx_system 90@
switch_roads_back_to_original 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
switch_ped_roads_back_to_original 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 27
mark_model_as_no_longer_needed 83
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 78
mark_model_as_no_longer_needed 274
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 258
mark_model_as_no_longer_needed 259
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 330
unload_special_character 1
remove_animation "ON_LOOKERS"
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:DOC2_14025
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:DOC2_14040
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 
do_fade 500 {direction} Fade.Out

:DOC2_14066
if 
  get_fading_status 
goto_if_false @DOC2_14090
wait 0
goto @DOC2_14066

:DOC2_14090
return 
do_fade 500 {direction} Fade.In

:DOC2_14099
if 
  get_fading_status 
goto_if_false @DOC2_14123
wait 0
goto @DOC2_14099

:DOC2_14123
return 

:DOC2_14125
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @DOC2_14195
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14195
task_play_anim $scplayer {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14195
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @DOC2_14266
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14266
task_play_anim $scplayer {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14266
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @DOC2_14336
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14336
task_play_anim $scplayer {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14336
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @DOC2_14421
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14421
if 
  is_char_in_any_car $scplayer
goto_if_false @DOC2_14421
143@ = store_car_char_is_in $scplayer
set_car_coordinates 143@ {x} 1893.958 {y} 2240.1079 {z} 9.8203
set_car_heading 143@ {heading} 77.6686

:DOC2_14421
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @DOC2_14451
view_integer_variable $doc2_heal {_p2} "DOC2_RND"

:DOC2_14451
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @DOC2_14550
if 
  not is_car_dead 34@
goto_if_false @DOC2_14511
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5

:DOC2_14511
90@ = create_fx_system "EXPLOSION_BARREL" {x} 40@ {y} 41@ {z} 42@ {ignoreBoundingChecks} True
play_fx_system 90@

:DOC2_14550
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @DOC2_14586
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14586
task_die $scplayer

:DOC2_14586
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @DOC2_14662
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14662
$x, $y, $z = get_char_coordinates $scplayer
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 2.0 {density} 40 {handle} $scplayer

:DOC2_14662
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @DOC2_14707
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14707
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:DOC2_14707
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DOC2_14871
if and
  not is_char_dead 95@
  not is_car_dead 34@
  91@ <> 5
goto_if_false @DOC2_14871
break_object 101@ {intensity} 1
clear_char_tasks_immediately 95@
task_play_anim_non_interruptable 95@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.5 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
91@ = 5
display_onscreen_counter_with_string $7795 {display} CounterDisplay.Bar {text} 'DOC2_07'
change_blip_display 93@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither

:DOC2_14871
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @DOC2_14890
force_weather_now WeatherType.RainyCountryside

:DOC2_14890
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @DOC2_14905

:DOC2_14905
return 

:DOC2_14907
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 129@
130@ = 0
return 

:DOC2_14927
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  130@ == 0
goto_if_false @DOC2_14970
play_mission_audio MissionAudioSlot.Slot1
print_now 127@s {time} 10000 {flag} 1
130@ = 1

:DOC2_14970
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  130@ == 1
goto_if_false @DOC2_15008
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 127@s
130@ = 2

:DOC2_15008
return 

//-------------Mission 96---------------
// Originally: Architectural Espionage

:HEIST1
script_name 'HEIST1'
gosub @HEIST1_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST1_38
gosub @HEIST1_23584

:HEIST1_38
gosub @HEIST1_23682
terminate_this_script 

:HEIST1_47
register_mission_given 
load_mission_text 'HEIST1'
$onmission = 1
$disable_mod_garage = 1
318@ = 0
wait 0
set_area_visible 10
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2026.225 {y} 1007.423 {z} 9.8203
set_char_heading $scplayer {heading} 307.0
322@, 323@ = get_time_of_day 
set_time_of_day 0 {minutes} 0
set_darkness_effect True {pitchBlack} -1
318@ = 0
load_cutscene 'HEIST1A'

:HEIST1_177
if 
  not has_cutscene_loaded 
goto_if_false @HEIST1_201
wait 0
goto @HEIST1_177

:HEIST1_201
$cs_time = 0
force_weather_now WeatherType.RainyCountryside
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST1_221
if 
  not has_cutscene_finished 
goto_if_false @HEIST1_372
wait 0
$cs_time = get_cutscene_time 
if 
  318@ == 0
goto_if_false @HEIST1_303
if 
  $cs_time > 12666
goto_if_false @HEIST1_303
318@ = 1
force_weather_now WeatherType.ExtraSunnyVegas
set_time_of_day 12 {minutes} 0
set_darkness_effect False {pitchBlack} -1

:HEIST1_303
if 
  318@ == 1
goto_if_false @HEIST1_365
if 
  $cs_time > 46000
goto_if_false @HEIST1_365
318@ = 99
force_weather_now WeatherType.RainyCountryside
set_time_of_day 0 {minutes} 0
set_darkness_effect True {pitchBlack} -1

:HEIST1_365
goto @HEIST1_221

:HEIST1_372
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST1_385
if 
  get_fading_status 
goto_if_false @HEIST1_409
wait 0
goto @HEIST1_385

:HEIST1_409
clear_cutscene 
force_weather_now WeatherType.CloudyVegas
release_weather 
set_darkness_effect False {pitchBlack} -1
set_area_visible 0
load_scene 2031.168 {y} 1030.918 {z} 9.813
wait 0
set_fading_colour 0 {g} 0 {b} 0
set_time_of_day 322@ {minutes} 323@
set_darkness_effect False {pitchBlack} -1
release_weather 
request_model 367
request_model 346
request_model 349
request_model 59
request_model 12
request_model 54
request_model 70
request_model 147
request_model 17
request_model 71
request_model 57
request_model 58
request_animation "CAMERA"
load_all_models_now 

:HEIST1_536
if or
  not has_model_loaded 59
  not has_model_loaded 12
  not has_model_loaded 54
goto_if_false @HEIST1_570
wait 0
goto @HEIST1_536

:HEIST1_570
if or
  not has_model_loaded 346
  not has_model_loaded 349
  not has_model_loaded 367
goto_if_false @HEIST1_607
wait 0
goto @HEIST1_570

:HEIST1_607
if or
  not has_model_loaded 70
  not has_model_loaded 147
  not has_model_loaded 17
  not has_model_loaded 71
goto_if_false @HEIST1_646
wait 0
goto @HEIST1_607

:HEIST1_646
if or
  not has_model_loaded 58
  not has_model_loaded 57
  not has_animation_loaded "CAMERA"
goto_if_false @HEIST1_686
wait 0
goto @HEIST1_646

:HEIST1_686
102@ = load_char_decision_maker DecisionMakerType.Weak
103@ = load_char_decision_maker DecisionMakerType.Empty
104@ = load_char_decision_maker DecisionMakerType.Tough
105@ = load_char_decision_maker DecisionMakerType.Weak
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
do_fade 1000 {direction} Fade.In

:HEIST1_759
if 
  get_fading_status 
goto_if_false @HEIST1_783
wait 0
goto @HEIST1_759

:HEIST1_783
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
41@ = 0
226@ = 0
227@ = 0
228@ = 0
113@ = 0
177@ = 0
175@ = 0
174@ = 0
180@ = 0
179@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
176@ = 0
173@ = 0
199@ = 0
211@ = 0
216@ = 0
215@ = 0
218@ = 0
219@ = 0
151@ = 0
220@ = 0
222@ = 0
223@ = 0
224@ = 0
225@ = 0
221@ = 0
324@ = 0
306@ = 1
307@ = 2
308@ = 0
309@ = 1
310@ = 0
311@ = 0
315@ = 0
316@ = 0
set_lvar_text_label 236@s = 'HE1_AG'
set_lvar_text_label 238@s = 'HE1_AH'
set_lvar_text_label 240@s = 'HE1_AI'
set_lvar_text_label 242@s = 'HE1_AJ'
set_lvar_text_label 244@s = 'HE1_AK'
set_lvar_text_label 246@s = 'HE1_AL'
set_lvar_text_label 248@s = 'HE1_ZA'
set_lvar_text_label 250@s = 'HE1_ZB'
set_lvar_text_label 252@s = 'HE1_ZC'
set_lvar_text_label 254@s = 'HE1_ZD'
set_lvar_text_label 256@s = 'HE1_ZE'
set_lvar_text_label 258@s = 'HEX2B'
set_lvar_text_label 260@s = 'HE1_ZG'
set_lvar_text_label 262@s = 'HE1_ZH'
set_lvar_text_label 264@s = 'HE1_ZJ'
set_lvar_text_label 266@s = 'HE1_ZK'
set_lvar_text_label 268@s = 'HE1_ZL'
set_lvar_text_label 270@s = 'HE1_ZM'
set_lvar_text_label 272@s = 'HE1_XA'
set_lvar_text_label 274@s = 'HE1_XB'
set_lvar_text_label 276@s = 'HEX3'
set_lvar_int_to_constant 283@ = 24618
set_lvar_int_to_constant 284@ = 24619
set_lvar_int_to_constant 285@ = 24620
set_lvar_int_to_constant 286@ = 24621
set_lvar_int_to_constant 287@ = 24622
set_lvar_int_to_constant 288@ = 24623
set_lvar_int_to_constant 289@ = 24600
set_lvar_int_to_constant 290@ = 24601
set_lvar_int_to_constant 291@ = 24602
set_lvar_int_to_constant 292@ = 24603
set_lvar_int_to_constant 293@ = 24604
set_lvar_int_to_constant 294@ = 30816
set_lvar_int_to_constant 295@ = 24606
set_lvar_int_to_constant 296@ = 24607
set_lvar_int_to_constant 297@ = 24608
set_lvar_int_to_constant 298@ = 24609
set_lvar_int_to_constant 299@ = 24610
set_lvar_int_to_constant 300@ = 24611
set_lvar_int_to_constant 301@ = 24624
set_lvar_int_to_constant 302@ = 24625
set_lvar_int_to_constant 303@ = 30819
107@ = create_object #ST_ARCH_PLAN {x} 346.7 {y} 164.98 {z} 1026.8
set_object_rotation 107@ {x} 90.0 {y} 0.0 {z} 0.0
set_object_collision $init_ped_density {state} True
35@ = create_char PedType.Mission1 {modelId} 58 {x} 2024.26 {y} 1525.787 {z} 9.8203
set_char_decision_maker 35@ {handleOrTemplate} 102@
clear_char_decision_maker_event_response 102@ {event} Event.Damage
set_char_heading 35@ {heading} 287.789
if 
  not is_char_dead 35@
goto_if_false @HEIST1_1728

:HEIST1_1728
36@ = create_char PedType.Mission1 {modelId} 57 {x} 2022.34 {y} 1529.559 {z} 9.8196
set_char_decision_maker 36@ {handleOrTemplate} 102@
set_char_heading 36@ {heading} 223.9212
37@ = create_char PedType.Mission1 {modelId} 59 {x} 2026.092 {y} 1530.428 {z} 9.8203
set_char_decision_maker 37@ {handleOrTemplate} 102@
set_char_allowed_to_duck 37@ {state} False
set_char_heading 37@ {heading} 129.789
if 
  not is_char_dead 37@
goto_if_false @HEIST1_1867
give_weapon_to_char 37@ {weaponType} WeaponType.Camera {ammo} 30000
task_kill_char_on_foot 37@ {target} 35@
set_char_drops_weapons_when_dead 37@ {state} False
set_char_drowns_in_water 37@ {state} False

:HEIST1_1867
38@ = create_char PedType.Mission1 {modelId} 57 {x} 2017.924 {y} 1536.108 {z} 9.8228
set_char_decision_maker 38@ {handleOrTemplate} 102@
set_char_allowed_to_duck 37@ {state} False
set_char_heading 38@ {heading} 170.9212
39@ = create_char PedType.Mission1 {modelId} 59 {x} 2017.708 {y} 1535.127 {z} 9.825
set_char_decision_maker 39@ {handleOrTemplate} 102@
set_char_heading 39@ {heading} 11.9212
if 
  not is_char_dead 38@
goto_if_false @HEIST1_2028
if 
  not is_char_dead 39@
goto_if_false @HEIST1_2028
disable_char_speech 38@ {stopNow} False
disable_char_speech 39@ {stopNow} False
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:HEIST1_2028
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 59
mark_model_as_no_longer_needed 57
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_2126
168@ = add_blip_for_char 35@
change_blip_scale 168@ {size} 1
169@ = add_blip_for_char 36@
change_blip_scale 169@ {size} 1
170@ = add_blip_for_char 37@
171@ = add_blip_for_char 38@
change_blip_scale 171@ {size} 1
172@ = add_blip_for_char 39@
change_blip_scale 172@ {size} 1

:HEIST1_2126
151@ = 1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_2167
print_now 'HEI1_41' {time} 10000 {flag} 1

:HEIST1_2167
109@ = create_object_no_offset #GEN_DOORINT01 {x} 371.2516 {y} 166.6324 {z} 1007.359
set_object_rotation 109@ {x} 0.0 {y} 0.0 {z} 0.0
freeze_object_position 109@ {state} True
110@ = create_object #KMB_LOCKEDDOOR {x} 370.8048 {y} 179.0889 {z} 1018.958
set_object_heading 110@ {heading} 88.5679
111@ = create_object #GEN_DOORINT01 {x} 368.8954 {y} 161.5299 {z} 1013.274
set_object_rotation 111@ {x} 0.0 {y} 0.0 {z} 90.0
lock_door 111@ {state} True
set_max_fire_generations 1
177@ = 1

:HEIST1_2311
wait 0
if 
  316@ == 1
goto_if_false @HEIST1_2351
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 22601
316@ = 2

:HEIST1_2351
if 
  316@ == 2
goto_if_false @HEIST1_2395
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST1_2395
play_mission_audio MissionAudioSlot.Slot3
316@ = 3

:HEIST1_2395
if 
  308@ <> 0
goto_if_false @HEIST1_2748
if 
  310@ == 0
goto_if_false @HEIST1_2466
if 
  has_mission_audio_loaded 307@
goto_if_false @HEIST1_2452
clear_mission_audio 307@

:HEIST1_2452
310@ = 1
311@ = 1

:HEIST1_2466
if 
  310@ == 1
goto_if_false @HEIST1_2503
load_mission_audio 306@ {audioId} 282@(308@,24i)
310@ = 2

:HEIST1_2503
if 
  310@ == 2
goto_if_false @HEIST1_2563
if 
  has_mission_audio_loaded 306@
goto_if_false @HEIST1_2563
play_mission_audio 306@
print_now 234@(308@,24s) {time} 10000 {flag} 1
310@ = 3

:HEIST1_2563
if 
  310@ == 3
goto_if_false @HEIST1_2748
if 
  has_mission_audio_finished 306@
goto_if_false @HEIST1_2687
clear_this_print 234@(308@,24s)
if 
  306@ == 1
goto_if_false @HEIST1_2645
306@ = 2
307@ = 1
goto @HEIST1_2659

:HEIST1_2645
306@ = 1
307@ = 2

:HEIST1_2659
308@ = 0
310@ = 0
311@ = 0
goto @HEIST1_2748

:HEIST1_2687
if 
  not has_mission_audio_loaded 307@
goto_if_false @HEIST1_2748
if 
  18 > 308@
goto_if_false @HEIST1_2748
set_lvar_int_to_lvar_int 309@ = 308@
309@ += 1
load_mission_audio 307@ {audioId} 282@(309@,24i)

:HEIST1_2748
if 
  35 > 177@
goto_if_false @HEIST1_2790
clear_area 362.2167 {y} 174.5354 {z} 1007.398 {radius} 1000.0 {clearParticles} False

:HEIST1_2790
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST1_2812
goto @HEIST1_23620

:HEIST1_2812
if 
is_ps2_keyboard_key_pressed 6
goto_if_false @HEIST1_2862
216@ = 9
184@ = 11
177@ = -13
180@ = -13
179@ = -13

:HEIST1_2862
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @HEIST1_2950
clear_area 2419.8269 {y} 1120.785 {z} 9.8203 {radius} 0.5 {clearParticles} False
load_scene 2419.8269 {y} 1120.785 {z} 9.8203
set_char_coordinates $scplayer {x} 2419.8269 {y} 1120.785 {z} 9.8203
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:HEIST1_2950
if 
  185@ == 1
goto_if_false @HEIST1_2992
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_2992
177@ = 55

:HEIST1_2992
if 
  186@ == 1
goto_if_false @HEIST1_3034
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3034
184@ = 5

:HEIST1_3034
if 
  187@ == 1
goto_if_false @HEIST1_3076
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3076
188@ = 4

:HEIST1_3076
if 
  215@ == 1
goto_if_false @HEIST1_3153
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3153

:HEIST1_3111
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3139
wait 0
goto @HEIST1_3111

:HEIST1_3139
216@ = 40
215@ = 0

:HEIST1_3153
if 
  177@ == 1
goto_if_false @HEIST1_5229
if 
  175@ == 0
goto_if_false @HEIST1_3965
if 
  is_char_dead 35@
goto_if_false @HEIST1_3210
remove_blip 168@

:HEIST1_3210
if 
  is_char_dead 36@
goto_if_false @HEIST1_3231
remove_blip 172@

:HEIST1_3231
if 
  is_char_dead 39@
goto_if_false @HEIST1_3252
remove_blip 172@

:HEIST1_3252
if 
  40@ == 0
goto_if_false @HEIST1_3361
if 
  TIMERA > 2000
goto_if_false @HEIST1_3361
if 
  not is_char_dead 35@
goto_if_false @HEIST1_3361
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3361
clear_char_tasks 37@
clear_char_tasks 35@
task_turn_char_to_face_char 37@ {target} 35@
task_turn_char_to_face_char 35@ {target} 37@
TIMERA = 0
40@ = 1

:HEIST1_3361
if 
  40@ == 1
goto_if_false @HEIST1_3503
if 
  TIMERA > 2000
goto_if_false @HEIST1_3503
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3503
clear_char_tasks 37@
task_play_anim 37@ {animationName} "PICSTND_TAKE" {animationFile} "CAMERA" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@, 43@, 44@ = get_char_coordinates 37@
report_mission_audio_event_at_position 42@ {y} 43@ {z} 44@ {soundId} ScriptSound.SoundCameraShot
TIMERA = 0
40@ = 2

:HEIST1_3503
if 
  40@ == 2
goto_if_false @HEIST1_3612
if 
  TIMERA > 1000
goto_if_false @HEIST1_3612
if 
  not is_char_dead 36@
goto_if_false @HEIST1_3612
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3612
clear_char_tasks 37@
clear_char_tasks 36@
task_turn_char_to_face_char 36@ {target} 37@
task_turn_char_to_face_char 37@ {target} 36@
TIMERA = 0
40@ = 3

:HEIST1_3612
if 
  40@ == 3
goto_if_false @HEIST1_3754
if 
  TIMERA > 1000
goto_if_false @HEIST1_3754
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3754
clear_char_tasks 37@
task_play_anim 37@ {animationName} "PICCRCH_TAKE" {animationFile} "CAMERA" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@, 43@, 44@ = get_char_coordinates 37@
report_mission_audio_event_at_position 42@ {y} 43@ {z} 44@ {soundId} ScriptSound.SoundCameraShot
TIMERA = 0
40@ = 0

:HEIST1_3754
if 
  not is_char_dead 38@
goto_if_false @HEIST1_3878
if 
  not is_char_dead 39@
goto_if_false @HEIST1_3878
206@ = get_script_task_status 38@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3878
206@ = get_script_task_status 39@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3878
clear_char_tasks 38@
clear_char_tasks 39@
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:HEIST1_3878
if 
  TIMERB > 4000
goto_if_false @HEIST1_3965
if 
  not is_char_dead 36@
goto_if_false @HEIST1_3965
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3965
if 
  not is_char_dead 38@
goto_if_false @HEIST1_3965
clear_char_tasks 36@
task_turn_char_to_face_char 36@ {target} 37@
TIMERB = 0

:HEIST1_3965
if 
  174@ == 0
goto_if_false @HEIST1_4068
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4068
if 
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_4068
if 
  not is_char_dead 36@
goto_if_false @HEIST1_4068
clear_char_tasks 36@
task_look_at_char 36@ {target} $scplayer {time} 5
174@ = 99

:HEIST1_4068
if 
  220@ == 0
goto_if_false @HEIST1_4142
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4142
if 
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @HEIST1_4142
clear_prints 
220@ = 99

:HEIST1_4142
if 
  175@ == 0
goto_if_false @HEIST1_4211
if 
  does_char_exist 37@
goto_if_false @HEIST1_4211
if 
  has_char_been_damaged_by_char 37@ {handle} $scplayer
goto_if_false @HEIST1_4211
clear_prints 
308@ = 1
175@ = 1

:HEIST1_4211
if 
  175@ == 0
goto_if_false @HEIST1_4278
if 
  does_char_exist 36@
goto_if_false @HEIST1_4278
if 
  has_char_been_damaged_by_char 36@ {handle} $scplayer
goto_if_false @HEIST1_4278
308@ = 2
175@ = 1

:HEIST1_4278
if 
  175@ == 0
goto_if_false @HEIST1_4347
if 
  does_char_exist 35@
goto_if_false @HEIST1_4347
if 
  has_char_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @HEIST1_4347
clear_prints 
308@ = 3
175@ = 1

:HEIST1_4347
if 
  175@ == 0
goto_if_false @HEIST1_4416
if 
  does_char_exist 38@
goto_if_false @HEIST1_4416
if 
  has_char_been_damaged_by_char 38@ {handle} $scplayer
goto_if_false @HEIST1_4416
clear_prints 
308@ = 4
175@ = 1

:HEIST1_4416
if 
  175@ == 0
goto_if_false @HEIST1_4485
if 
  does_char_exist 39@
goto_if_false @HEIST1_4485
if 
  has_char_been_damaged_by_char 39@ {handle} $scplayer
goto_if_false @HEIST1_4485
clear_prints 
308@ = 6
175@ = 1

:HEIST1_4485
if 
  175@ == 1
goto_if_false @HEIST1_4812
174@ = 99
if 
  is_char_dead 35@
goto_if_false @HEIST1_4531
remove_blip 168@

:HEIST1_4531
if 
  is_char_dead 36@
goto_if_false @HEIST1_4552
remove_blip 169@

:HEIST1_4552
if 
  is_char_dead 38@
goto_if_false @HEIST1_4573
remove_blip 171@

:HEIST1_4573
if 
  is_char_dead 39@
goto_if_false @HEIST1_4594
remove_blip 172@

:HEIST1_4594
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4637
clear_char_tasks 37@
task_stay_in_same_place 37@ {state} False
task_smart_flee_char 37@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4637
if 
  not is_char_dead 36@
goto_if_false @HEIST1_4673
clear_char_tasks 36@
task_smart_flee_char 36@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4673
if 
  not is_char_dead 35@
goto_if_false @HEIST1_4709
clear_char_tasks 35@
task_smart_flee_char 35@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4709
if 
  not is_char_dead 38@
goto_if_false @HEIST1_4752
clear_char_tasks 38@
disable_char_speech 38@ {stopNow} True
task_smart_flee_char 38@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4752
if 
  not is_char_dead 39@
goto_if_false @HEIST1_4795
clear_char_tasks 39@
disable_char_speech 39@ {stopNow} True
task_smart_flee_char 39@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4795
remove_animation "CAMERA"
175@ = 2

:HEIST1_4812
if 
  175@ == 2
goto_if_false @HEIST1_5104
if 
  is_char_dead 35@
goto_if_false @HEIST1_4851
remove_blip 168@

:HEIST1_4851
if 
  is_char_dead 36@
goto_if_false @HEIST1_4872
remove_blip 169@

:HEIST1_4872
if 
  is_char_dead 39@
goto_if_false @HEIST1_4893
remove_blip 172@

:HEIST1_4893
if 
  is_char_dead 38@
goto_if_false @HEIST1_4914
remove_blip 171@

:HEIST1_4914
if 
  is_char_dead 37@
goto_if_false @HEIST1_5104
if 
  311@ == 0
goto_if_false @HEIST1_5104
151@ = 1

:HEIST1_4955
if 
  6 > 151@
goto_if_false @HEIST1_4996
remove_blip 167@(151@,6i)
151@ += 1
goto @HEIST1_4955

:HEIST1_4996
clear_prints 
202@, 203@, 204@ = get_dead_char_pickup_coords 37@
154@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 20 {x} 202@ {y} 203@ {z} 204@
155@ = add_blip_for_pickup 154@
change_blip_colour 155@ {color} BlipColor.Green
308@ = 0
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
print_now 'HEI1_39' {time} 6000 {flag} 1
175@ = 3

:HEIST1_5104
if 
  has_pickup_been_collected 154@
goto_if_false @HEIST1_5229
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5229
remove_blip 155@
199@ = 1
clear_prints 
print_now 'HEI1_40' {time} 6000 {flag} 1
177@ = 5
205@ = 1
TIMERB = 0
156@ = add_blip_for_coord 2414.812 {y} 1124.4351 {z} 9.813
change_blip_colour 156@ {color} BlipColor.Yellow
switch_entry_exit 'PAPER' {state} True

:HEIST1_5229
if 
  205@ == 1
goto_if_false @HEIST1_5291
if 
  TIMERB > 12000
goto_if_false @HEIST1_5291
clear_prints 
print 'HEI1_1' {time} 6000 {flag} 1
205@ = 2

:HEIST1_5291
if 
  199@ == 1
goto_if_false @HEIST1_5461
if 
  184@ == 0
goto_if_false @HEIST1_5461
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5461
print_now 'HEI1_11' {time} 6000 {flag} 1
create_char PedType.CivMale {modelId} 59 {x} 2030.703 {y} 1489.3879 {z} 9.8203 {var_handle} 82@(201@,20i)
task_wander_standard 82@(201@,20i)
164@ = add_blip_for_char 82@(201@,20i)
change_blip_colour 164@ {color} BlipColor.Red
give_weapon_to_char 82@(201@,20i) {weaponType} WeaponType.Camera {ammo} 30000
set_char_drops_weapons_when_dead 82@(201@,20i) {state} False
set_char_decision_maker 82@(201@,20i) {handleOrTemplate} 102@
199@ = 2

:HEIST1_5461
if 
  199@ == 2
goto_if_false @HEIST1_5733
if 
  184@ == 0
goto_if_false @HEIST1_5733
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5642
if 
  is_char_dead 82@(201@,20i)
goto_if_false @HEIST1_5642
remove_blip 164@
202@, 203@, 204@ = get_dead_char_pickup_coords 82@(201@,20i)
154@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 60 {x} 202@ {y} 203@ {z} 204@
164@ = add_blip_for_pickup 154@
change_blip_colour 164@ {color} BlipColor.Green
mark_char_as_no_longer_needed 82@(201@,20i)
if 
  19 > 201@
goto_if_false @HEIST1_5635
201@ += 1
227@ = 0

:HEIST1_5635
199@ = 3

:HEIST1_5642
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5733
if 
  does_char_exist 82@(201@,20i)
goto_if_false @HEIST1_5721
mark_char_as_no_longer_needed 82@(201@,20i)
if 
  19 > 201@
goto_if_false @HEIST1_5721
201@ += 1
227@ = 0

:HEIST1_5721
remove_blip 164@
199@ = 1

:HEIST1_5733
if 
  199@ == 3
goto_if_false @HEIST1_5797
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5797
if 
  has_pickup_been_collected 154@
goto_if_false @HEIST1_5797
remove_blip 164@
199@ = 1

:HEIST1_5797
if 
  227@ == 0
goto_if_false @HEIST1_5893
if 
  does_char_exist 82@(201@,20i)
goto_if_false @HEIST1_5893
if 
  has_char_been_damaged_by_char 82@(201@,20i) {handle} $scplayer
goto_if_false @HEIST1_5893
clear_char_tasks 82@(201@,20i)
task_smart_flee_char 82@(201@,20i) {threat} $scplayer {radius} 100.0 {time} -1
227@ = 1

:HEIST1_5893
if 
  199@ > 0
goto_if_false @HEIST1_5989
if 
  184@ == 0
goto_if_false @HEIST1_5989
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5989
200@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
if 
  200@ == 0
goto_if_false @HEIST1_5989
remove_weapon_from_char $scplayer {weaponType} WeaponType.Camera
199@ = 1

:HEIST1_5989
if 
  177@ == 5
goto_if_false @HEIST1_7788
if 
  218@ == 0
goto_if_false @HEIST1_7599
if 
  locate_char_any_means_3d $scplayer {x} 2414.812 {y} 1124.4351 {z} 9.813 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST1_7599
65@ = create_char PedType.CivMale {modelId} 147 {x} 366.2195 {y} 178.2328 {z} 1007.398
disable_char_speech 65@ {stopNow} False
set_char_decision_maker 65@ {handleOrTemplate} 102@
set_char_heading 65@ {heading} 256.0
set_char_has_used_entry_exit 65@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
66@ = create_char PedType.CivMale {modelId} 17 {x} 367.4051 {y} 178.2571 {z} 1007.397
set_char_decision_maker 66@ {handleOrTemplate} 102@
disable_char_speech 66@ {stopNow} False
set_char_heading 66@ {heading} 75.0
set_char_has_used_entry_exit 66@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
67@ = create_char PedType.CivMale {modelId} 17 {x} 336.205 {y} 173.5649 {z} 1018.984
set_char_decision_maker 67@ {handleOrTemplate} 102@
disable_char_speech 67@ {stopNow} False
set_char_heading 67@ {heading} 21.0
set_char_has_used_entry_exit 67@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
68@ = create_char PedType.CivMale {modelId} 147 {x} 335.1483 {y} 175.8309 {z} 1018.984
set_char_decision_maker 68@ {handleOrTemplate} 102@
disable_char_speech 68@ {stopNow} False
set_char_heading 68@ {heading} 200.0
set_char_has_used_entry_exit 68@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
69@ = create_char PedType.CivMale {modelId} 17 {x} 347.6199 {y} 171.2935 {z} 1018.991
set_char_decision_maker 69@ {handleOrTemplate} 102@
disable_char_speech 69@ {stopNow} False
set_char_heading 69@ {heading} 89.0
set_char_has_used_entry_exit 69@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
70@ = create_char PedType.CivMale {modelId} 147 {x} 347.7367 {y} 172.3383 {z} 1018.991
set_char_decision_maker 70@ {handleOrTemplate} 102@
disable_char_speech 70@ {stopNow} False
set_char_heading 70@ {heading} 270.0
set_char_has_used_entry_exit 70@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
71@ = create_char PedType.CivMale {modelId} 147 {x} 360.7583 {y} 175.1333 {z} 1018.984
set_char_decision_maker 71@ {handleOrTemplate} 102@
disable_char_speech 71@ {stopNow} False
set_char_heading 71@ {heading} 162.0
set_char_has_used_entry_exit 71@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
72@ = create_char PedType.CivFemale {modelId} 12 {x} 361.4531 {y} 176.2417 {z} 1018.984
set_char_decision_maker 72@ {handleOrTemplate} 102@
set_char_heading 72@ {heading} 0.0
disable_char_speech 72@ {stopNow} False
set_char_has_used_entry_exit 72@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
73@ = create_char PedType.CivMale {modelId} 17 {x} 359.5063 {y} 177.6107 {z} 1018.984
set_char_decision_maker 73@ {handleOrTemplate} 102@
set_char_heading 73@ {heading} 184.0
disable_char_speech 73@ {stopNow} False
set_char_has_used_entry_exit 73@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_sit_down 73@ {time} 500000
45@ = create_char PedType.CivFemale {modelId} 12 {x} 359.7724 {y} 173.5793 {z} 1007.389
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
set_char_heading 45@ {heading} 261.0
set_char_decision_maker 45@ {handleOrTemplate} 103@
set_char_never_targetted 45@ {state} True
52@ = create_char PedType.Mission1 {modelId} 71 {x} 365.3421 {y} 188.8672 {z} 1007.391
set_char_heading 52@ {heading} 172.9746
set_char_decision_maker 52@ {handleOrTemplate} 103@
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 52@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
53@ = create_char PedType.Mission1 {modelId} 71 {x} 376.3221 {y} 170.1705 {z} 1007.398
set_char_heading 53@ {heading} 314.7879
set_char_decision_maker 53@ {handleOrTemplate} 103@
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 53@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
54@ = create_char PedType.Mission1 {modelId} 71 {x} 351.8366 {y} 163.8015 {z} 1024.786
set_char_heading 54@ {heading} 239.6
set_char_decision_maker 54@ {handleOrTemplate} 103@
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 54@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
47@ = create_char PedType.Mission1 {modelId} 147 {x} 355.1732 {y} 172.5407 {z} 1024.781
set_char_heading 47@ {heading} 259.56
set_char_decision_maker 47@ {handleOrTemplate} 102@
set_char_has_used_entry_exit 47@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
48@ = create_char PedType.Mission1 {modelId} 17 {x} 355.8736 {y} 172.4779 {z} 1024.781
set_char_heading 48@ {heading} 80.67
set_char_decision_maker 48@ {handleOrTemplate} 102@
set_char_has_used_entry_exit 48@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
49@ = create_char PedType.Mission1 {modelId} 147 {x} 362.339 {y} 155.2859 {z} 1024.781
set_char_heading 49@ {heading} 178.989
set_char_decision_maker 49@ {handleOrTemplate} 102@
task_scratch_head 49@
set_char_has_used_entry_exit 49@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
50@ = create_char PedType.Mission1 {modelId} 17 {x} 362.7949 {y} 156.2016 {z} 1024.781
set_char_heading 50@ {heading} 20.989
set_char_decision_maker 50@ {handleOrTemplate} 102@
task_scratch_head 50@
set_char_has_used_entry_exit 50@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
if 
  not is_char_dead 65@
goto_if_false @HEIST1_7319
if 
  not is_char_dead 66@
goto_if_false @HEIST1_7319
clear_char_tasks 65@
clear_char_tasks 66@
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:HEIST1_7319
if 
  not is_char_dead 67@
goto_if_false @HEIST1_7385
if 
  not is_char_dead 68@
goto_if_false @HEIST1_7385
clear_char_tasks 67@
clear_char_tasks 68@
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1

:HEIST1_7385
if 
  not is_char_dead 69@
goto_if_false @HEIST1_7451
if 
  not is_char_dead 70@
goto_if_false @HEIST1_7451
clear_char_tasks 69@
clear_char_tasks 70@
task_chat_with_char 69@ {other} 70@ {leadSpeaker} True {_p4} 1
task_chat_with_char 70@ {other} 69@ {leadSpeaker} False {_p4} 1

:HEIST1_7451
if 
  not is_char_dead 47@
goto_if_false @HEIST1_7517
if 
  not is_char_dead 48@
goto_if_false @HEIST1_7517
clear_char_tasks 47@
clear_char_tasks 48@
task_chat_with_char 47@ {other} 48@ {leadSpeaker} True {_p4} 1
task_chat_with_char 48@ {other} 47@ {leadSpeaker} False {_p4} 1

:HEIST1_7517
if 
  not is_char_dead 49@
goto_if_false @HEIST1_7583
if 
  not is_char_dead 50@
goto_if_false @HEIST1_7583
clear_char_tasks 49@
clear_char_tasks 50@
task_chat_with_char 49@ {other} 50@ {leadSpeaker} True {_p4} 1
task_chat_with_char 50@ {other} 49@ {leadSpeaker} False {_p4} 1

:HEIST1_7583
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
218@ = 1

:HEIST1_7599
if 
  locate_char_any_means_3d $scplayer {x} 387.278 {y} 173.576 {z} 1007.391 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_7788
177@ = 10
TIMERA = 0
TIMERB = 0
print_now 'HEI1_9' {time} 4000 {flag} 1
180@ = 1
179@ = 1
set_char_has_used_entry_exit $scplayer {x} 2415.3479 {y} 1123.942 {radius} 10.0
set_radar_zoom 95
if 
  not is_char_dead 45@
goto_if_false @HEIST1_7788
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_sit_down 45@ {time} 500000
remove_blip 156@
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_7788
if 
  177@ > 5
goto_if_false @HEIST1_8173
if 
  179@ == 0
goto_if_false @HEIST1_8006
if 
  locate_char_any_means_3d $scplayer {x} 387.278 {y} 173.576 {z} 1007.391 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_8006
clear_area 362.2167 {y} 174.5354 {z} 1007.398 {radius} 1000.0 {clearParticles} False
179@ = 1
set_radar_zoom 95
if 
  316@ > 1
goto_if_false @HEIST1_7932
316@ = 1

:HEIST1_7932
if 
  25 > 177@
goto_if_false @HEIST1_8006
remove_blip 156@
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8006
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8006
if 
  179@ == 1
goto_if_false @HEIST1_8173
if 
  locate_char_any_means_3d $scplayer {x} 2415.6001 {y} 1123.24 {z} 9.813 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_8173
181@ = 0
clear_prints 
179@ = 0
set_radar_zoom 0
if 
  25 > 177@
goto_if_false @HEIST1_8151
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8151
remove_blip 157@
156@ = add_blip_for_coord 2414.812 {y} 1124.4351 {z} 9.813

:HEIST1_8151
if 
  316@ > 1
goto_if_false @HEIST1_8173
clear_mission_audio MissionAudioSlot.Slot3

:HEIST1_8173
if 
  177@ == 10
goto_if_false @HEIST1_8435
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8435
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @HEIST1_8435
clear_char_tasks 45@
task_turn_char_to_face_char 45@ {target} $scplayer
start_setting_up_conversation 45@
set_up_conversation_node_with_scripted_speech 'HEQ1' {positiveAnswer} 'HEQ2' {negativeAnswer} 'HEX1B' {questionSoundId} 30800 {positiveAnswerSoundId} 30802 {negativeAnswerSoundId} 30801
set_up_conversation_end_node_with_scripted_speech 'HEX1B' {speechSoundId} 30814
set_up_conversation_node_with_scripted_speech 'HEQ2' {positiveAnswer} 'HEQ4' {negativeAnswer} 'HEX2' {questionSoundId} 30803 {positiveAnswerSoundId} 30805 {negativeAnswerSoundId} 30804
set_up_conversation_end_node_with_scripted_speech 'HEQ4' {speechSoundId} 30807
set_up_conversation_node_with_scripted_speech 'HEX2' {positiveAnswer} 'HEQ4C' {negativeAnswer} 'HEQ5' {questionSoundId} 30815 {positiveAnswerSoundId} 30818 {negativeAnswerSoundId} 30817
set_up_conversation_end_node_with_scripted_speech 'HEQ4C' {speechSoundId} 30809
set_up_conversation_end_node_with_scripted_speech 'HEQ5' {speechSoundId} 30810
finish_setting_up_conversation 
177@ = 15

:HEIST1_8435
if 
  177@ == 15
goto_if_false @HEIST1_8519
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8519
if 
  is_conversation_at_node 45@ {speech} 'HEQ1'
goto_if_false @HEIST1_8519
clear_help 
remove_blip 157@
print_help_forever 'TALK_1'
177@ = 20

:HEIST1_8519
if 
  177@ == 20
goto_if_false @HEIST1_9208
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @HEIST1_8562
clear_help 

:HEIST1_8562
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9208
if 
  is_conversation_at_node 45@ {speech} 'HEQ4'
goto_if_false @HEIST1_8629
clear_help 
remove_blip 157@
remove_blip 156@
177@ = 24
228@ = 0

:HEIST1_8629
if 
  is_conversation_at_node 45@ {speech} 'HEQ4C'
goto_if_false @HEIST1_8680
clear_help 
remove_blip 157@
remove_blip 156@
228@ = 0
177@ = 24

:HEIST1_8680
if 
  is_conversation_at_node 45@ {speech} 'HEX1B'
goto_if_false @HEIST1_8781
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8781
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8781
if 
  is_conversation_at_node 45@ {speech} 'HEQ5'
goto_if_false @HEIST1_8882
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8882
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8882
if 
  is_conversation_at_node 45@ {speech} 'HEX1'
goto_if_false @HEIST1_8983
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8983
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8983
if 
  228@ == 0
goto_if_false @HEIST1_9040
if 
  is_conversation_at_node 45@ {speech} 'HEX2'
goto_if_false @HEIST1_9040
TIMERA = 0
228@ = 1

:HEIST1_9040
if 
  228@ == 1
goto_if_false @HEIST1_9093
if 
  TIMERA > 4000
goto_if_false @HEIST1_9093
clear_prints 
308@ = 12
228@ = 2

:HEIST1_9093
if 
  not locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_9208
183@ = 1
177@ = 22
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9208
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
clear_prints 
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
308@ = 21
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue
228@ = 0

:HEIST1_9208
if 
  177@ == 22
goto_if_false @HEIST1_9261
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9247
clear_conversation_for_char 45@

:HEIST1_9247
228@ = 0
177@ = 23

:HEIST1_9261
if 
  177@ == 23
goto_if_false @HEIST1_9419
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9419
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @HEIST1_9386
print_help_forever 'HEIH9'
if 
  183@ == 1
goto_if_false @HEIST1_9386
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @HEIST1_9386
177@ = 10
183@ = 0

:HEIST1_9386
if 
  not locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @HEIST1_9419
clear_help 

:HEIST1_9419
if 
  177@ == 24
goto_if_false @HEIST1_9519
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9465
228@ = 0
clear_conversation_for_char 45@

:HEIST1_9465
166@ = add_blip_for_coord 372.253 {y} 164.4298 {z} 1007.398
set_blip_entry_exit 166@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
177@ = 25
183@ = 0

:HEIST1_9519
if 
  177@ == 25
goto_if_false @HEIST1_9717
clear_help 
189@ = 1
freeze_object_position 109@ {state} False
114@ = create_object #DYN_AIRCON {x} 349.3042 {y} 189.4448 {z} 1018.984
set_object_rotation 114@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_health 114@ {health} 450
116@ = create_object #DYN_AIRCON {x} 349.3042 {y} 189.4448 {z} 1019.784
make_object_targettable 116@ {state} True
set_object_rotation 116@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_health 116@ {health} 450
117@ = get_object_health 116@
118@ = get_object_mass 116@
177@ = 27
173@ = 1
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 22600
315@ = 1

:HEIST1_9717
if 
  315@ == 1
goto_if_false @HEIST1_9784
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST1_9784
if 
  does_object_exist 116@
goto_if_false @HEIST1_9784
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 116@
play_mission_audio MissionAudioSlot.Slot3
315@ = 2

:HEIST1_9784
if 
  177@ == 27
goto_if_false @HEIST1_9996
if 
  TIMERA > 3000
goto_if_false @HEIST1_9864
if 
  173@ == 1
goto_if_false @HEIST1_9864
clear_prints 
print_now 'HEI1_33' {time} 4000 {flag} 1
173@ = 0

:HEIST1_9864
if 
  locate_char_any_means_3d $scplayer {x} 372.253 {y} 164.4298 {z} 1007.398 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @HEIST1_9996
remove_blip 166@
173@ = 0
clear_prints 
print_now 'HEI1_34' {time} 6000 {flag} 1
158@ = add_blip_for_coord 346.9205 {y} 165.9382 {z} 1024.781
set_blip_entry_exit 158@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 158@ {color} BlipColor.Yellow
177@ = 30

:HEIST1_9996
if 
  180@ == 1
goto_if_false @HEIST1_14603
if 
  179@ == 1
goto_if_false @HEIST1_14603
if 
  178@ == 0
goto_if_false @HEIST1_14603
if 
  not is_char_dead 52@
goto_if_false @HEIST1_10616
if 
  40 > 177@
goto_if_false @HEIST1_10242
if 
  173@ == 0
goto_if_false @HEIST1_10242
if 
  228@ == 0
goto_if_false @HEIST1_10242
if 
  TIMERA > 2000
goto_if_false @HEIST1_10242
if 
  207@ == 0
goto_if_false @HEIST1_10242
clear_char_tasks_immediately 52@
task_turn_char_to_face_char 52@ {target} $scplayer
if 
  not is_char_dead 53@
goto_if_false @HEIST1_10242
if 
  not is_char_dead 54@
goto_if_false @HEIST1_10242
clear_char_tasks_immediately 53@
clear_char_tasks_immediately 54@
task_turn_char_to_face_char 53@ {target} $scplayer
task_turn_char_to_face_char 54@ {target} $scplayer
TIMERA = 0
113@ = 1

:HEIST1_10242
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @HEIST1_10304
clear_char_tasks 52@
task_kill_char_on_foot 52@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_10304
if 
  181@ == 0
goto_if_false @HEIST1_10550
if 
  has_char_spotted_char 52@ {target} $scplayer
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_10550
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_10550
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_10550
if 
  207@ == 1
goto_if_false @HEIST1_10616
if 
  208@ == 0
goto_if_false @HEIST1_10616
clear_char_tasks_immediately 52@
task_stay_in_same_place 52@ {state} True
task_aim_gun_at_char 52@ {target} $scplayer {time} 5000
208@ = 1

:HEIST1_10616
if 
  not is_char_dead 53@
goto_if_false @HEIST1_11006
if 
  has_char_been_damaged_by_char 53@ {handle} $scplayer
goto_if_false @HEIST1_10694
clear_char_tasks 53@
task_kill_char_on_foot 53@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_10694
if 
  181@ == 0
goto_if_false @HEIST1_10940
if 
  has_char_spotted_char 53@ {target} $scplayer
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_10940
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_10940
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_10940
if 
  207@ == 1
goto_if_false @HEIST1_11006
if 
  209@ == 0
goto_if_false @HEIST1_11006
clear_char_tasks_immediately 53@
task_stay_in_same_place 53@ {state} True
task_aim_gun_at_char 53@ {target} $scplayer {time} 5000
209@ = 1

:HEIST1_11006
if 
  not is_char_dead 54@
goto_if_false @HEIST1_12078
if 
  has_char_been_damaged_by_char 54@ {handle} $scplayer
goto_if_false @HEIST1_11084
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_11084
if 
  189@ == 1
goto_if_false @HEIST1_11193
if 
  188@ == 0
goto_if_false @HEIST1_11193
if 
  locate_char_any_means_3d $scplayer {x} 367.6113 {y} 162.3746 {z} 1024.781 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @HEIST1_11193
if 
  181@ == 0
goto_if_false @HEIST1_11193
188@ = 1

:HEIST1_11193
if 
  has_object_been_photographed 107@
goto_if_false @HEIST1_11241
clear_prints 
print_now 'HEI1_52' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_11241
if 
  181@ == 0
goto_if_false @HEIST1_11525
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_11525
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_11525
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_11497
308@ = 10
goto @HEIST1_11504

:HEIST1_11497
308@ = 7

:HEIST1_11504
TIMERB = 0
181@ = 1
211@ = 1

:HEIST1_11525
if 
  207@ == 1
goto_if_false @HEIST1_11591
if 
  210@ == 0
goto_if_false @HEIST1_11591
clear_char_tasks_immediately 54@
task_stay_in_same_place 54@ {state} True
task_aim_gun_at_char 54@ {target} $scplayer {time} 5000
210@ = 1

:HEIST1_11591
if 
  189@ == 1
goto_if_false @HEIST1_12078
if 
  188@ == 1
goto_if_false @HEIST1_11814
set_player_control $player1 {state} False
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 0
do_fade 500 {direction} Fade.Out

:HEIST1_11672
if 
  get_fading_status 
goto_if_false @HEIST1_11696
wait 0
goto @HEIST1_11672

:HEIST1_11696
clear_prints 
switch_widescreen True
set_fixed_camera_position 345.0205 {y} 163.0617 {z} 1026.826 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 345.8946 {y} 163.5473 {z} 1026.817 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:HEIST1_11760
if 
  get_fading_status 
goto_if_false @HEIST1_11784
wait 0
goto @HEIST1_11760

:HEIST1_11784
188@ = 2
print_now 'HEI1_6' {time} 4000 {flag} 1
TIMERB = 0

:HEIST1_11814
if 
  188@ == 2
goto_if_false @HEIST1_11893
if 
  TIMERB > 1000
goto_if_false @HEIST1_11858
187@ = 1

:HEIST1_11858
if 
  TIMERB > 4000
goto_if_false @HEIST1_11893
clear_prints 
188@ = 4
TIMERB = 0

:HEIST1_11893
if 
  188@ == 4
goto_if_false @HEIST1_12078
187@ = 0
do_fade 500 {direction} Fade.Out
clear_prints 

:HEIST1_11927
if 
  get_fading_status 
goto_if_false @HEIST1_11951
wait 0
goto @HEIST1_11927

:HEIST1_11951
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In

:HEIST1_11966
if 
  get_fading_status 
goto_if_false @HEIST1_11990
wait 0
goto @HEIST1_11966

:HEIST1_11990
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
remove_blip 158@
160@ = add_blip_for_coord 357.3549 {y} 193.415 {z} 1018.984
set_blip_entry_exit 160@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 160@ {color} BlipColor.Yellow
188@ = 99
print_now 'HEI1_7' {time} 6000 {flag} 1

:HEIST1_12078
if 
  181@ == 1
goto_if_false @HEIST1_13161
if 
  TIMERB > 6000
goto_if_false @HEIST1_12209
if 
  207@ == 0
goto_if_false @HEIST1_12209
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_12209
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_12202
308@ = 9

:HEIST1_12202
207@ = 1

:HEIST1_12209
if 
  TIMERB > 12000
goto_if_false @HEIST1_12260
clear_prints 
print_now 'HEI1_50' {time} 6000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_12260
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_12353
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12353
if 
  211@ <> 1
goto_if_false @HEIST1_12464
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_12464
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12464
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_12557
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12557
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_12650
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12650
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_12743
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12743
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_12836
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12836
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_12929
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12929
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_13022
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13022
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_13115
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13115
if 
  is_char_shooting $scplayer
goto_if_false @HEIST1_13161
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13161
if 
  does_char_exist 65@
goto_if_false @HEIST1_13262
if 
  has_char_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST1_13262
if 
  not is_char_dead 65@
goto_if_false @HEIST1_13262
clear_char_tasks 65@
task_smart_flee_char 65@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13262
if 
  does_char_exist 66@
goto_if_false @HEIST1_13363
if 
  has_char_been_damaged_by_char 66@ {handle} $scplayer
goto_if_false @HEIST1_13363
if 
  not is_char_dead 66@
goto_if_false @HEIST1_13363
clear_char_tasks 66@
task_smart_flee_char 66@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13363
if 
  does_char_exist 67@
goto_if_false @HEIST1_13464
if 
  has_char_been_damaged_by_char 67@ {handle} $scplayer
goto_if_false @HEIST1_13464
if 
  not is_char_dead 67@
goto_if_false @HEIST1_13464
clear_char_tasks 67@
task_smart_flee_char 67@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13464
if 
  does_char_exist 68@
goto_if_false @HEIST1_13565
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @HEIST1_13565
if 
  not is_char_dead 68@
goto_if_false @HEIST1_13565
clear_char_tasks 68@
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13565
if 
  does_char_exist 69@
goto_if_false @HEIST1_13666
if 
  has_char_been_damaged_by_char 69@ {handle} $scplayer
goto_if_false @HEIST1_13666
if 
  not is_char_dead 69@
goto_if_false @HEIST1_13666
clear_char_tasks 69@
task_smart_flee_char 69@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13666
if 
  does_char_exist 70@
goto_if_false @HEIST1_13767
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST1_13767
if 
  not is_char_dead 70@
goto_if_false @HEIST1_13767
clear_char_tasks 70@
task_smart_flee_char 70@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13767
if 
  does_char_exist 71@
goto_if_false @HEIST1_13868
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @HEIST1_13868
if 
  not is_char_dead 71@
goto_if_false @HEIST1_13868
clear_char_tasks 71@
task_smart_flee_char 71@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13868
if 
  does_char_exist 72@
goto_if_false @HEIST1_13969
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @HEIST1_13969
if 
  not is_char_dead 72@
goto_if_false @HEIST1_13969
clear_char_tasks 72@
task_smart_flee_char 72@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13969
if 
  does_char_exist 73@
goto_if_false @HEIST1_14070
if 
  has_char_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @HEIST1_14070
if 
  not is_char_dead 73@
goto_if_false @HEIST1_14070
clear_char_tasks 73@
task_smart_flee_char 73@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14070
if 
  does_char_exist 45@
goto_if_false @HEIST1_14171
if 
  has_char_been_damaged_by_char 45@ {handle} $scplayer
goto_if_false @HEIST1_14171
if 
  not is_char_dead 45@
goto_if_false @HEIST1_14171
clear_char_tasks 45@
task_smart_flee_char 45@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14171
if 
  does_char_exist 47@
goto_if_false @HEIST1_14279
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @HEIST1_14279
if 
  not is_char_dead 47@
goto_if_false @HEIST1_14279
clear_char_tasks 47@
task_smart_flee_char 47@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23521
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14279
if 
  does_char_exist 48@
goto_if_false @HEIST1_14387
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @HEIST1_14387
if 
  not is_char_dead 48@
goto_if_false @HEIST1_14387
clear_char_tasks 48@
task_smart_flee_char 48@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23521
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14387
if 
  does_char_exist 49@
goto_if_false @HEIST1_14495
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @HEIST1_14495
if 
  not is_char_dead 49@
goto_if_false @HEIST1_14495
clear_char_tasks 49@
task_smart_flee_char 49@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23521
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14495
if 
  does_char_exist 50@
goto_if_false @HEIST1_14603
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @HEIST1_14603
if 
  not is_char_dead 50@
goto_if_false @HEIST1_14603
clear_char_tasks 50@
task_smart_flee_char 50@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23521
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14603
if 
  177@ == 30
goto_if_false @HEIST1_15197
if 
  locate_char_any_means_3d $scplayer {x} 364.4255 {y} 188.2647 {z} 1018.984 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_14763
if 
  188@ > 1
goto_if_false @HEIST1_14763
if 
  221@ == 0
goto_if_false @HEIST1_14763
remove_blip 160@
163@ = add_blip_for_object 114@
set_blip_entry_exit 163@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
clear_prints 
print_now 'HEI1_10' {time} 6000 {flag} 1
221@ = 1

:HEIST1_14763
if 
  191@ == 0
goto_if_false @HEIST1_14846
if 
  has_object_been_damaged 114@
goto_if_false @HEIST1_14846
151@ = generate_random_int_in_range 1 {max} 4
break_object 114@ {intensity} 1
remove_blip 163@
190@ += 1
191@ = 1
190@ = 2
make_object_targettable 114@ {state} False

:HEIST1_14846
if 
  192@ == 0
goto_if_false @HEIST1_14954
if 
  2 > 190@
goto_if_false @HEIST1_14954
if 
  has_object_been_damaged 116@
goto_if_false @HEIST1_14954
151@ = generate_random_int_in_range 1 {max} 4
break_object 116@ {intensity} 1
remove_blip 163@
190@ += 1
192@ = 1
190@ = 2
make_object_targettable 116@ {state} False
TIMERA = 0

:HEIST1_14954
if 
  190@ == 2
goto_if_false @HEIST1_15034
clear_mission_audio MissionAudioSlot.Slot3
315@ = 99
if 
  TIMERA > 1000
goto_if_false @HEIST1_15034
148@ = start_script_fire 350.8387 {y} 190.3284 {z} 1019.0 {propagation} 1 {size} 151@
190@ = 3

:HEIST1_15034
if 
  190@ == 3
goto_if_false @HEIST1_15197
177@ = 40
141@ = create_fx_system "TEARGAS" {x} 350.6574 {y} 189.2716 {z} 1019.0 {ignoreBoundingChecks} True
142@ = create_fx_system "TEARGAS" {x} 350.6574 {y} 189.2716 {z} 1020.0 {ignoreBoundingChecks} True
143@ = create_fx_system "TEARGAS" {x} 350.8387 {y} 190.3284 {z} 1019.0 {ignoreBoundingChecks} True
play_fx_system 141@
play_fx_system 142@
play_fx_system 143@
TIMERA = 0
print_now 'HEI1_20' {time} 4000 {flag} 1
316@ = 1

:HEIST1_15197
if 
  177@ == 40
goto_if_false @HEIST1_15255
if 
  TIMERA > 3000
goto_if_false @HEIST1_15255
180@ = 0
178@ = 1
177@ = 45

:HEIST1_15255
if 
  177@ > 9
goto_if_false @HEIST1_15812
if 
  113@ == 1
goto_if_false @HEIST1_15812
if 
  45 > 177@
goto_if_false @HEIST1_15812
if 
  not is_char_dead 65@
goto_if_false @HEIST1_15433
if 
  not is_char_dead 66@
goto_if_false @HEIST1_15433
206@ = get_script_task_status 65@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15433
206@ = get_script_task_status 66@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15433
clear_char_tasks 65@
clear_char_tasks 66@
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:HEIST1_15433
if 
  not is_char_dead 67@
goto_if_false @HEIST1_15557
if 
  not is_char_dead 68@
goto_if_false @HEIST1_15557
206@ = get_script_task_status 67@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15557
206@ = get_script_task_status 68@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15557
clear_char_tasks 67@
clear_char_tasks 68@
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1

:HEIST1_15557
if 
  not is_char_dead 69@
goto_if_false @HEIST1_15681
if 
  not is_char_dead 70@
goto_if_false @HEIST1_15681
206@ = get_script_task_status 69@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15681
206@ = get_script_task_status 70@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15681
clear_char_tasks 69@
clear_char_tasks 70@
task_chat_with_char 69@ {other} 70@ {leadSpeaker} True {_p4} 1
task_chat_with_char 70@ {other} 69@ {leadSpeaker} False {_p4} 1

:HEIST1_15681
if 
  not is_char_dead 71@
goto_if_false @HEIST1_15805
if 
  not is_char_dead 72@
goto_if_false @HEIST1_15805
206@ = get_script_task_status 71@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15805
206@ = get_script_task_status 72@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15805
clear_char_tasks 71@
clear_char_tasks 72@
task_chat_with_char 71@ {other} 72@ {leadSpeaker} True {_p4} 1
task_chat_with_char 72@ {other} 71@ {leadSpeaker} False {_p4} 1

:HEIST1_15805
113@ = 0

:HEIST1_15812
if 
  177@ == 45
goto_if_false @HEIST1_16853
if 
  not is_char_dead 67@
goto_if_false @HEIST1_15875
clear_char_tasks 67@
task_follow_path_nodes_to_coord 67@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_15875
if 
  not is_char_dead 69@
goto_if_false @HEIST1_15920
clear_char_tasks 69@
task_follow_path_nodes_to_coord 69@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_15920
if 
  not is_char_dead 68@
goto_if_false @HEIST1_15965
clear_char_tasks 68@
task_follow_path_nodes_to_coord 68@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_15965
if 
  not is_char_dead 70@
goto_if_false @HEIST1_16010
clear_char_tasks 70@
task_follow_path_nodes_to_coord 70@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16010
if 
  not is_char_dead 71@
goto_if_false @HEIST1_16055
clear_char_tasks 71@
task_follow_path_nodes_to_coord 71@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16055
if 
  not is_char_dead 72@
goto_if_false @HEIST1_16100
clear_char_tasks 72@
task_follow_path_nodes_to_coord 72@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16100
if 
  not is_char_dead 73@
goto_if_false @HEIST1_16145
clear_char_tasks 73@
task_follow_path_nodes_to_coord 73@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16145
if 
  not is_char_dead 50@
goto_if_false @HEIST1_16194
clear_char_tasks 50@
set_char_decision_maker 50@ {handleOrTemplate} 103@
set_char_coordinates 50@ {x} 377.7027 {y} 153.2545 {z} 1022.774

:HEIST1_16194
do_fade 500 {direction} Fade.Out

:HEIST1_16201
if 
  get_fading_status 
goto_if_false @HEIST1_16225
wait 0
goto @HEIST1_16201

:HEIST1_16225
set_player_control $player1 {state} False
switch_widescreen True
remove_script_fire 148@
set_fixed_camera_position 350.4867 {y} 162.1073 {z} 1026.989 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 351.4692 {y} 162.1195 {z} 1026.804 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 54@
goto_if_false @HEIST1_16360
task_stay_in_same_place 54@ {state} False
flush_route 
extend_route 353.4759 {y} 161.9657 {z} 1024.781
extend_route 365.8191 {y} 162.2179 {z} 1024.781
task_follow_point_route 54@ {speed} MoveState.Walk {mode} RouteMode.Once

:HEIST1_16360
if 
  not is_char_dead 47@
goto_if_false @HEIST1_16501
set_char_decision_maker 47@ {handleOrTemplate} 103@
clear_char_tasks 47@
set_char_coordinates 47@ {x} 353.9879 {y} 164.0512 {z} 1024.781
set_char_heading 47@ {heading} 224.0
clear_char_tasks 47@
set_char_decision_maker 47@ {handleOrTemplate} 103@
flush_route 
extend_route 355.5494 {y} 162.7226 {z} 1024.774
extend_route 368.749 {y} 162.4855 {z} 1024.774
extend_route 378.824 {y} 162.5327 {z} 1024.774
task_follow_point_route 47@ {speed} MoveState.Walk {mode} RouteMode.Once
194@ = 1

:HEIST1_16501
if 
  not is_char_dead 48@
goto_if_false @HEIST1_16642
set_char_decision_maker 48@ {handleOrTemplate} 103@
clear_char_tasks 48@
set_char_coordinates 48@ {x} 354.1077 {y} 160.163 {z} 1024.781
set_char_heading 48@ {heading} 302.0
clear_char_tasks 48@
set_char_decision_maker 48@ {handleOrTemplate} 103@
flush_route 
extend_route 355.5494 {y} 162.7226 {z} 1024.774
extend_route 368.749 {y} 162.4855 {z} 1024.774
extend_route 378.824 {y} 162.5327 {z} 1024.774
task_follow_point_route 48@ {speed} MoveState.Walk {mode} RouteMode.Once
195@ = 2

:HEIST1_16642
if 
  not is_char_dead 49@
goto_if_false @HEIST1_16766
set_char_decision_maker 49@ {handleOrTemplate} 103@
clear_char_tasks 49@
set_char_coordinates 49@ {x} 364.2849 {y} 160.2124 {z} 1024.7889
set_char_heading 49@ {heading} 294.5
clear_char_tasks 49@
set_char_decision_maker 49@ {handleOrTemplate} 103@
flush_route 
extend_route 369.2587 {y} 162.4347 {z} 1024.774
extend_route 377.2099 {y} 163.5096 {z} 1024.781
task_follow_point_route 49@ {speed} MoveState.Walk {mode} RouteMode.Once
196@ = 1

:HEIST1_16766
clear_prints 
do_fade 500 {direction} Fade.In

:HEIST1_16775
if 
  get_fading_status 
goto_if_false @HEIST1_16799
wait 0
goto @HEIST1_16775

:HEIST1_16799
177@ = 50
TIMERB = 0
185@ = 1
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 13

:HEIST1_16853
if 
  177@ == 50
goto_if_false @HEIST1_16897
if 
  TIMERB > 4000
goto_if_false @HEIST1_16897
177@ = 55

:HEIST1_16897
if 
  177@ == 55
goto_if_false @HEIST1_17532
185@ = 0
do_fade 500 {direction} Fade.Out

:HEIST1_16929
if 
  get_fading_status 
goto_if_false @HEIST1_16953
wait 0
goto @HEIST1_16929

:HEIST1_16953
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In
set_player_control $player1 {state} True
151@ = 3
147@ = start_script_fire 350.6574 {y} 189.5716 {z} 1019.0 {propagation} 1 {size} 151@
148@ = start_script_fire 350.8387 {y} 190.3284 {z} 1019.0 {propagation} 1 {size} 2
177@ = 60
if 
  not is_char_dead 54@
goto_if_false @HEIST1_17082
set_char_decision_maker 54@ {handleOrTemplate} 104@
set_char_coordinates 54@ {x} 2419.9939 {y} 1153.71 {z} 9.8047

:HEIST1_17082
if 
  not is_char_dead 53@
goto_if_false @HEIST1_17126
set_char_decision_maker 53@ {handleOrTemplate} 104@
set_char_coordinates 53@ {x} 2419.9939 {y} 1145.71 {z} 9.8047

:HEIST1_17126
if 
  not is_char_dead 52@
goto_if_false @HEIST1_17170
set_char_decision_maker 52@ {handleOrTemplate} 104@
set_char_coordinates 52@ {x} 2417.655 {y} 1154.085 {z} 9.8047

:HEIST1_17170
if 
  not is_char_dead 45@
goto_if_false @HEIST1_17216
set_char_coordinates 45@ {x} 2419.363 {y} 1132.672 {z} 9.8047
set_char_heading 45@ {heading} 135.0

:HEIST1_17216
if 
  not is_char_dead 65@
goto_if_false @HEIST1_17237
delete_char 65@

:HEIST1_17237
if 
  not is_char_dead 66@
goto_if_false @HEIST1_17258
delete_char 66@

:HEIST1_17258
if 
  not is_char_dead 47@
goto_if_false @HEIST1_17309
clear_char_tasks 47@
set_char_coordinates 47@ {x} 372.0212 {y} 163.0494 {z} 1024.7729
set_char_heading 47@ {heading} 276.1

:HEIST1_17309
if 
  not is_char_dead 48@
goto_if_false @HEIST1_17360
clear_char_tasks 48@
set_char_coordinates 48@ {x} 375.6833 {y} 163.8624 {z} 1024.7729
set_char_heading 48@ {heading} 266.1

:HEIST1_17360
if 
  not is_char_dead 49@
goto_if_false @HEIST1_17411
clear_char_tasks 49@
set_char_coordinates 49@ {x} 378.0436 {y} 162.5748 {z} 1024.775
set_char_heading 49@ {heading} 168.1

:HEIST1_17411
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17462
clear_char_tasks 50@
set_char_coordinates 50@ {x} 377.7027 {y} 153.2545 {z} 1022.774
set_char_heading 50@ {heading} 101.1

:HEIST1_17462
clear_prints 
print_now 'HEI1_22' {time} 6000 {flag} 1
remove_blip 158@
158@ = add_blip_for_coord 346.9205 {y} 165.9382 {z} 1024.781
set_blip_entry_exit 158@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 158@ {color} BlipColor.Yellow

:HEIST1_17532
if 
  177@ == 60
goto_if_false @HEIST1_18608
if 
  219@ == 0
goto_if_false @HEIST1_17803
if 
  locate_char_any_means_3d $scplayer {x} 371.0459 {y} 161.5409 {z} 1018.984 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_17803
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17661
clear_char_tasks 50@
task_follow_path_nodes_to_coord 50@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17661
if 
  not is_char_dead 49@
goto_if_false @HEIST1_17706
clear_char_tasks 49@
task_follow_path_nodes_to_coord 49@ {x} 379.2716 {y} 173.4771 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17706
if 
  not is_char_dead 48@
goto_if_false @HEIST1_17751
clear_char_tasks 48@
task_follow_path_nodes_to_coord 48@ {x} 370.9119 {y} 175.3713 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17751
if 
  not is_char_dead 47@
goto_if_false @HEIST1_17796
clear_char_tasks 47@
task_follow_path_nodes_to_coord 47@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17796
219@ = 1

:HEIST1_17803
if 
  219@ == 1
goto_if_false @HEIST1_18141
if 
  225@ == 0
goto_if_false @HEIST1_17901
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17901
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @HEIST1_17901
clear_char_tasks 50@
task_smart_flee_char 50@ {threat} $scplayer {radius} 100.0 {time} -1
225@ = 1

:HEIST1_17901
if 
  224@ == 0
goto_if_false @HEIST1_17981
if 
  not is_char_dead 49@
goto_if_false @HEIST1_17981
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @HEIST1_17981
clear_char_tasks 49@
task_smart_flee_char 49@ {threat} $scplayer {radius} 100.0 {time} -1
224@ = 1

:HEIST1_17981
if 
  223@ == 0
goto_if_false @HEIST1_18061
if 
  not is_char_dead 48@
goto_if_false @HEIST1_18061
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @HEIST1_18061
clear_char_tasks 48@
task_smart_flee_char 48@ {threat} $scplayer {radius} 100.0 {time} -1
223@ = 1

:HEIST1_18061
if 
  222@ == 0
goto_if_false @HEIST1_18141
if 
  not is_char_dead 47@
goto_if_false @HEIST1_18141
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @HEIST1_18141
clear_char_tasks 47@
task_smart_flee_char 47@ {threat} $scplayer {radius} 100.0 {time} -1
222@ = 1

:HEIST1_18141
if 
  has_object_been_photographed 107@
goto_if_false @HEIST1_18608
184@ = 1
remove_blip 158@
clear_prints 
clear_help 
print_now 'HEI1_25' {time} 6000 {flag} 1
161@ = add_blip_for_coord 2418.6819 {y} 1123.3521 {z} 9.8047
change_blip_colour 161@ {color} BlipColor.Yellow
kill_fx_system 141@
kill_fx_system 142@
kill_fx_system 143@
138@ = create_fx_system "TEARGAS" {x} 369.2483 {y} 162.346 {z} 1026.774 {ignoreBoundingChecks} True
139@ = create_fx_system "TEARGAS" {x} 373.3976 {y} 162.6828 {z} 1026.774 {ignoreBoundingChecks} True
140@ = create_fx_system "TEARGAS" {x} 378.9187 {y} 163.1306 {z} 1026.774 {ignoreBoundingChecks} True
play_fx_system 138@
play_fx_system 139@
play_fx_system 140@
if 
  not is_char_dead 47@
goto_if_false @HEIST1_18360
delete_char 47@

:HEIST1_18360
if 
  not is_char_dead 48@
goto_if_false @HEIST1_18381
delete_char 48@

:HEIST1_18381
if 
  not is_char_dead 49@
goto_if_false @HEIST1_18402
delete_char 49@

:HEIST1_18402
if 
  not is_char_dead 50@
goto_if_false @HEIST1_18423
delete_char 50@

:HEIST1_18423
if 
  not is_char_dead 67@
goto_if_false @HEIST1_18444
delete_char 67@

:HEIST1_18444
if 
  not is_char_dead 68@
goto_if_false @HEIST1_18465
delete_char 68@

:HEIST1_18465
if 
  not is_char_dead 69@
goto_if_false @HEIST1_18486
delete_char 69@

:HEIST1_18486
if 
  not is_char_dead 70@
goto_if_false @HEIST1_18507
delete_char 70@

:HEIST1_18507
if 
  not is_char_dead 71@
goto_if_false @HEIST1_18528
delete_char 71@

:HEIST1_18528
if 
  not is_char_dead 72@
goto_if_false @HEIST1_18549
delete_char 72@

:HEIST1_18549
if 
  not is_char_dead 73@
goto_if_false @HEIST1_18570
delete_char 73@

:HEIST1_18570
198@ = 1
TIMERA = 0
177@ = 99
load_scene 376.9717 {y} 192.0647 {z} 1013.18

:HEIST1_18608
if 
  184@ == 1
goto_if_false @HEIST1_18916
if 
  TIMERA > 2500
goto_if_false @HEIST1_18916
request_model 275
request_model 282
request_model 147

:HEIST1_18660
if or
  not has_model_loaded 275
  not has_model_loaded 282
  not has_model_loaded 147
goto_if_false @HEIST1_18697
wait 0
goto @HEIST1_18660

:HEIST1_18697
78@ = create_char PedType.Mission1 {modelId} 147 {x} 376.9717 {y} 192.0647 {z} 1013.18
set_char_heading 78@ {heading} 266.7879
set_char_decision_maker 78@ {handleOrTemplate} 105@
set_char_has_used_entry_exit 78@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
79@ = create_char PedType.Mission1 {modelId} 282 {x} 377.2169 {y} 190.7318 {z} 1013.18
set_char_heading 79@ {heading} 5.7879
set_char_decision_maker 79@ {handleOrTemplate} 105@
give_weapon_to_char 79@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 79@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_turn_char_to_face_char 78@ {target} 79@
80@ = create_char PedType.Mission1 {modelId} 282 {x} 377.9352 {y} 192.4556 {z} 1013.18
set_char_heading 80@ {heading} 124.31
set_char_decision_maker 80@ {handleOrTemplate} 105@
set_char_has_used_entry_exit 80@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
mark_model_as_no_longer_needed 275
184@ = 2

:HEIST1_18916
if 
  184@ == 2
goto_if_false @HEIST1_19100
clear_prints 
do_fade 1000 {direction} Fade.Out
set_player_control $player1 {state} False

:HEIST1_18950
if 
  get_fading_status 
goto_if_false @HEIST1_18974
wait 0
goto @HEIST1_18950

:HEIST1_18974
clear_prints 
switch_widescreen True
load_scene 376.9717 {y} 192.0647 {z} 1013.18
set_fixed_camera_position 374.0174 {y} 190.0682 {z} 1014.494 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.8688 {y} 190.5916 {z} 1014.458 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:HEIST1_19055
if 
  get_fading_status 
goto_if_false @HEIST1_19079
wait 0
goto @HEIST1_19055

:HEIST1_19079
184@ = 3
186@ = 1
TIMERA = 0

:HEIST1_19100
if 
  184@ == 3
goto_if_false @HEIST1_19194
clear_prints 
308@ = 15
if 
  not is_char_dead 78@
goto_if_false @HEIST1_19180
task_play_anim 78@ {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST1_19180
184@ = 4
TIMERA = 0

:HEIST1_19194
if 
  184@ == 4
goto_if_false @HEIST1_19245
if 
  TIMERA > 2000
goto_if_false @HEIST1_19245
184@ = 5
TIMERA = 0

:HEIST1_19245
if 
  184@ == 5
goto_if_false @HEIST1_20830
186@ = 0
if 
  not is_char_dead 78@
goto_if_false @HEIST1_19312
if 
  not is_char_dead 79@
goto_if_false @HEIST1_19312
clear_char_tasks 78@
clear_char_tasks 79@

:HEIST1_19312
do_fade 500 {direction} Fade.Out

:HEIST1_19319
if 
  get_fading_status 
goto_if_false @HEIST1_19343
wait 0
goto @HEIST1_19319

:HEIST1_19343
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In

:HEIST1_19365
if 
  get_fading_status 
goto_if_false @HEIST1_19389
wait 0
goto @HEIST1_19365

:HEIST1_19389
184@ = 10
delete_char 78@
if 
  not is_char_dead 54@
goto_if_false @HEIST1_19488
set_char_coordinates 54@ {x} 378.2106 {y} 154.386 {z} 1022.782
set_char_heading 54@ {heading} 312.89
clear_char_tasks 54@
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 54@ {sequence} 76@
clear_sequence_task 76@

:HEIST1_19488
56@ = create_char PedType.Mission1 {modelId} 282 {x} 371.6575 {y} 153.1287 {z} 1020.796
set_char_heading 56@ {heading} 264.7879
set_char_shoot_rate 56@ {rate} 60
set_char_decision_maker 56@ {handleOrTemplate} 103@
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 56@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 56@ {sequence} 76@
clear_sequence_task 76@
57@ = create_char PedType.Mission1 {modelId} 282 {x} 378.6946 {y} 163.6932 {z} 1018.984
set_char_heading 57@ {heading} 91.89
set_char_decision_maker 57@ {handleOrTemplate} 103@
give_weapon_to_char 57@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 57@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 57@ {sequence} 76@
clear_sequence_task 76@
58@ = create_char PedType.Mission1 {modelId} 282 {x} 371.9029 {y} 164.5795 {z} 1013.18
set_char_heading 58@ {heading} 195.89
set_char_decision_maker 58@ {handleOrTemplate} 103@
give_weapon_to_char 58@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 58@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 58@ {sequence} 76@
clear_sequence_task 76@
59@ = create_char PedType.Mission1 {modelId} 282 {x} 371.2767 {y} 154.0267 {z} 1014.984
set_char_heading 59@ {heading} 195.89
set_char_shoot_rate 59@ {rate} 60
set_char_decision_maker 59@ {handleOrTemplate} 103@
give_weapon_to_char 59@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 59@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 59@ {sequence} 76@
clear_sequence_task 76@
60@ = create_char PedType.Mission1 {modelId} 282 {x} 378.0627 {y} 152.9613 {z} 1011.195
set_char_heading 60@ {heading} 285.89
set_char_decision_maker 60@ {handleOrTemplate} 103@
give_weapon_to_char 60@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 60@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} False
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 60@ {sequence} 76@
clear_sequence_task 76@
61@ = create_char PedType.Mission1 {modelId} 282 {x} 372.2917 {y} 162.8527 {z} 1007.389
set_char_heading 61@ {heading} 195.89
set_char_decision_maker 61@ {handleOrTemplate} 103@
give_weapon_to_char 61@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 61@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 61@ {sequence} 76@
clear_sequence_task 76@
64@ = create_char PedType.Mission1 {modelId} 282 {x} 379.1144 {y} 153.0811 {z} 1011.195
set_char_heading 64@ {heading} 4.89
set_char_decision_maker 64@ {handleOrTemplate} 103@
task_toggle_duck 64@ {state} True
set_char_shoot_rate 64@ {rate} 50
set_char_health 64@ {health} 120
give_weapon_to_char 64@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 64@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 64@ {sequence} 76@
clear_sequence_task 76@
63@ = create_char PedType.Mission1 {modelId} 282 {x} 369.8178 {y} 162.4074 {z} 1018.977
set_char_heading 63@ {heading} 217.89
set_char_shoot_rate 63@ {rate} 50
set_char_health 63@ {health} 120
set_char_decision_maker 63@ {handleOrTemplate} 103@
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 63@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 70
close_sequence_task 76@
perform_sequence_task 63@ {sequence} 76@
clear_sequence_task 76@
62@ = create_char PedType.Mission1 {modelId} 282 {x} 370.1607 {y} 179.6097 {z} 1007.391
set_char_heading 62@ {heading} 170.89
set_char_shoot_rate 62@ {rate} 50
set_char_health 62@ {health} 120
set_char_decision_maker 62@ {handleOrTemplate} 103@
task_toggle_duck 62@ {state} True
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 62@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 62@ {sequence} 76@
clear_sequence_task 76@
if 
  not is_char_dead 53@
goto_if_false @HEIST1_20640
clear_char_tasks 53@
set_char_coordinates 53@ {x} 375.0372 {y} 177.4968 {z} 1007.391
set_char_heading 53@ {heading} 193.0
task_stay_in_same_place 53@ {state} True
task_kill_char_on_foot 53@ {target} $scplayer

:HEIST1_20640
if 
  not is_char_dead 52@
goto_if_false @HEIST1_20706
clear_char_tasks 52@
set_char_coordinates 52@ {x} 385.5123 {y} 174.311 {z} 1007.389
set_char_heading 52@ {heading} 82.0
task_kinda_stay_in_same_place 52@ {state} True
task_kill_char_on_foot 52@ {target} $scplayer

:HEIST1_20706
if 
  not is_char_dead 79@
goto_if_false @HEIST1_20735
clear_char_tasks 79@
task_kill_char_on_foot 79@ {target} $scplayer

:HEIST1_20735
clear_prints 
print_now 'HEI1_46' {time} 6000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 2
request_model 401

:HEIST1_20765
if 
  not has_model_loaded 401
goto_if_false @HEIST1_20792
wait 0
goto @HEIST1_20765

:HEIST1_20792
106@ = create_car 401 {x} 2423.7329 {y} 1120.2729 {z} 9.6719
set_car_heading 106@ {heading} 179.4729
mark_model_as_no_longer_needed 401

:HEIST1_20830
if 
  198@ == 1
goto_if_false @HEIST1_21273
if 
  locate_char_any_means_3d $scplayer {x} 369.2483 {y} 162.346 {z} 1024.774 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_21273
129@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {ignoreBoundingChecks} True
130@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 1.8 {ignoreBoundingChecks} True
131@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
132@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.5 {ignoreBoundingChecks} True
133@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 1.8 {ignoreBoundingChecks} True
134@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
135@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
136@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
137@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
set_heathaze_effect True
play_fx_system 129@
play_fx_system 130@
play_fx_system 131@
play_fx_system 132@
play_fx_system 133@
play_fx_system 134@
play_fx_system 135@
play_fx_system 136@
play_fx_system 137@
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
198@ = 2

:HEIST1_21273
if 
  184@ == 10
goto_if_false @HEIST1_21482
if 
  locate_char_any_means_3d $scplayer {x} 2418.6819 {y} 1123.3521 {z} 9.8047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_21482
set_heathaze_effect False
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
kill_fx_system 129@
kill_fx_system 130@
kill_fx_system 131@
kill_fx_system 132@
kill_fx_system 133@
kill_fx_system 134@
kill_fx_system 135@
kill_fx_system 136@
kill_fx_system 137@
184@ = 11
remove_blip 161@
165@ = add_blip_for_coord 1918.59 {y} 958.3391 {z} 9.8203
clear_prints 
print_now 'HEI1_29' {time} 6000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 2
324@ = 1
TIMERB = 0
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 54

:HEIST1_21482
if 
  324@ == 1
goto_if_false @HEIST1_21533
if 
  TIMERB > 4000
goto_if_false @HEIST1_21533
alter_wanted_level_no_drop $player1 {wantedLevel} 4
324@ = 2

:HEIST1_21533
if 
  184@ == 11
goto_if_false @HEIST1_21613
request_model 117
request_model 421
request_model 118

:HEIST1_21564
if or
  not has_model_loaded 118
  not has_model_loaded 117
  not has_model_loaded 421
goto_if_false @HEIST1_21599
wait 0
goto @HEIST1_21564

:HEIST1_21599
184@ = 13
216@ = 9

:HEIST1_21613
if 
  216@ == 9
goto_if_false @HEIST1_21957
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @HEIST1_21674
if 
  not is_minigame_in_progress 
goto_if_false @HEIST1_21674
set_player_control $player1 {state} True

:HEIST1_21674
if 
  locate_char_any_means_3d $scplayer {x} 1918.59 {y} 958.3391 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @HEIST1_21957
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST1_21859
set_player_control $player1 {state} False
if 
  is_char_stopped $scplayer
goto_if_false @HEIST1_21852
213@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 213@ {heading} 197.2609
change_car_colour 213@ {color1} 4 {color2} 2
if 
  not is_car_dead 213@
goto_if_false @HEIST1_21845
214@ = create_char_inside_car 213@ {pedType} PedType.Mission2 {modelId} 117
212@ = create_char_as_passenger 213@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:HEIST1_21845
216@ = 15

:HEIST1_21852
goto @HEIST1_21957

:HEIST1_21859
set_player_control $player1 {state} False
213@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 213@ {heading} 197.2609
change_car_colour 213@ {color1} 4 {color2} 2
if 
  not is_car_dead 213@
goto_if_false @HEIST1_21950
214@ = create_char_inside_car 213@ {pedType} PedType.Mission2 {modelId} 117
212@ = create_char_as_passenger 213@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:HEIST1_21950
216@ = 15

:HEIST1_21957
if 
  216@ == 15
goto_if_false @HEIST1_22299
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 1000 {direction} Fade.Out

:HEIST1_21996
if 
  get_fading_status 
goto_if_false @HEIST1_22020
wait 0
goto @HEIST1_21996

:HEIST1_22020
clear_prints 
mark_car_as_no_longer_needed 106@
clear_area 1913.682 {y} 962.0125 {z} 9.8203 {radius} 60.0 {clearParticles} True
clear_area 1903.468 {y} 967.1692 {z} 9.8127 {radius} 60.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 1922.234 {y} 951.8628 {z} 12.2282 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1921.715 {y} 952.7101 {z} 12.1171 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:HEIST1_22137
if 
  get_fading_status 
goto_if_false @HEIST1_22161
wait 0
goto @HEIST1_22137

:HEIST1_22161
216@ = 17
TIMERA = 0
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST1_22253
217@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 217@
perform_sequence_task $scplayer {sequence} 217@
clear_sequence_task 217@
goto @HEIST1_22299

:HEIST1_22253
217@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 217@
perform_sequence_task $scplayer {sequence} 217@
clear_sequence_task 217@

:HEIST1_22299
if 
  216@ == 17
goto_if_false @HEIST1_22363
if 
  TIMERA > 1000
goto_if_false @HEIST1_22363
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
216@ = 20

:HEIST1_22363
if 
  216@ == 20
goto_if_false @HEIST1_22695
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @HEIST1_22466
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:HEIST1_22466
if 
  TIMERA > 4000
goto_if_false @HEIST1_22695
216@ = 30
if 
  not is_char_dead 214@
goto_if_false @HEIST1_22695
if 
  not is_car_dead 213@
goto_if_false @HEIST1_22695
task_car_drive_to_coord 214@ {vehicle} 213@ {x} 1909.04 {y} 959.7415 {z} 9.8203 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_fixed_camera_position 1901.587 {y} 965.5023 {z} 11.8636 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1902.538 {y} 965.246 {z} 11.6931 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1913.682 {y} 962.0125 {z} 9.8203
set_char_heading $scplayer {heading} 100.3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 1909.887 {y} 962.3391 {z} 9.8203 {speed} MoveState.Walk {time} -1
TIMERA = 0

:HEIST1_22695
if 
  216@ == 30
goto_if_false @HEIST1_22855
if 
  not is_car_dead 213@
goto_if_false @HEIST1_22855
if 
  locate_car_2d 213@ {x} 1909.04 {y} 959.7415 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @HEIST1_22814
216@ = 35
if 
  not is_char_dead 212@
goto_if_false @HEIST1_22800
task_look_at_char 212@ {target} $scplayer {time} -1

:HEIST1_22800
308@ = 19
TIMERA = 0

:HEIST1_22814
if 
  TIMERA > 10000
goto_if_false @HEIST1_22855
216@ = 35
write_debug "TEST"
TIMERA = 0

:HEIST1_22855
if 
  216@ == 35
goto_if_false @HEIST1_22913
if 
  TIMERA > 3000
goto_if_false @HEIST1_22913
308@ = 20
216@ = 36
TIMERA = 0

:HEIST1_22913
if 
  216@ == 36
goto_if_false @HEIST1_23061
if 
  TIMERA > 1000
goto_if_false @HEIST1_23061
if 
  not is_car_dead 213@
goto_if_false @HEIST1_23061
if 
  not is_char_dead 214@
goto_if_false @HEIST1_23061
clear_char_tasks 214@
216@ = 37
task_car_drive_to_coord 214@ {vehicle} 213@ {x} 1905.2791 {y} 934.162 {z} 9.8352 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
TIMERA = 0
if 
  not is_char_dead 212@
goto_if_false @HEIST1_23061
task_look_at_char $scplayer {target} 212@ {time} -1

:HEIST1_23061
if 
  216@ == 37
goto_if_false @HEIST1_23254
if 
  TIMERA > 1000
goto_if_false @HEIST1_23228
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False
goto_if_false @HEIST1_23183
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False

:HEIST1_23183
if 
  41@ == 0
goto_if_false @HEIST1_23228
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
41@ = 1

:HEIST1_23228
if 
  TIMERA > 3000
goto_if_false @HEIST1_23254
216@ = 40

:HEIST1_23254
if 
  216@ == 40
goto_if_false @HEIST1_23514
if 
  not slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False
goto_if_false @HEIST1_23357
  slide_object $init_ped_density {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False

:HEIST1_23357
215@ = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop
if 
  not is_char_dead 212@
goto_if_false @HEIST1_23410
clear_char_tasks_immediately 212@
delete_char 212@

:HEIST1_23410
if 
  not is_char_dead 214@
goto_if_false @HEIST1_23436
clear_char_tasks_immediately 214@
delete_char 214@

:HEIST1_23436
delete_car 213@
switch_widescreen False
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.82 {z} 11.438
set_object_heading $init_ped_density {heading} 0.0
216@ = 45
clear_prints 
goto @HEIST1_23620

:HEIST1_23514
goto @HEIST1_2311

:HEIST1_23521
if 
  not is_char_dead 54@
goto_if_false @HEIST1_23550
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer

:HEIST1_23550
return 

:HEIST1_23552
226@ = 1
print_big 'M_FAIL' {time} 8000 {style} TextStyle.Middle
TIMERB = 0
return 

:HEIST1_23584
if 
  226@ <> 1
goto_if_false @HEIST1_23618
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:HEIST1_23618
return 

:HEIST1_23620
$flag_heist_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
register_mission_passed 'HEIST_1'
player_made_progress 1
set_int_stat StatId.PassedHeist1 {value} 1
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:HEIST1_23682
switch_entry_exit 'PAPER' {state} False
$disable_mod_garage = 0
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead $scplayer
goto_if_false @HEIST1_23727
clear_char_tasks $scplayer

:HEIST1_23727
clear_wanted_level $player1
if 
  does_object_exist $init_ped_density
goto_if_false @HEIST1_23778
set_object_coordinates $init_ped_density {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $init_ped_density {heading} 0.0

:HEIST1_23778
set_radar_zoom 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST1_23798

:HEIST1_23798
remove_blip 155@
remove_blip 156@
remove_blip 157@
remove_blip 158@
remove_blip 160@
remove_blip 163@
remove_blip 161@
remove_blip 164@
remove_blip 165@
remove_blip 166@
151@ = 1

:HEIST1_23855
if 
  6 > 151@
goto_if_false @HEIST1_23896
remove_blip 167@(151@,6i)
151@ += 1
goto @HEIST1_23855

:HEIST1_23896
remove_pickup 154@
remove_all_script_fires 
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
kill_fx_system 141@
kill_fx_system 142@
kill_fx_system 143@
kill_fx_system 129@
kill_fx_system 130@
kill_fx_system 131@
kill_fx_system 132@
kill_fx_system 133@
kill_fx_system 134@
kill_fx_system 135@
kill_fx_system 136@
kill_fx_system 137@
set_heathaze_effect False
mark_model_as_no_longer_needed 57
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 59
mark_model_as_no_longer_needed 54
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 70
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 282
mark_model_as_no_longer_needed 275
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 421
remove_animation "CAMERA"
if 
  226@ == 1
goto_if_false @HEIST1_24114
override_next_restart 2337.083 {y} 2453.802 {z} 13.9765 {heading} 90.7643
force_death_restart 

:HEIST1_24114
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 97---------------
// Originally: Key To Her Heart

:HEIST3
script_name 'HEIST3'
gosub @HEIST3_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST3_38
gosub @HEIST3_22966

:HEIST3_38
gosub @HEIST3_23046
terminate_this_script 

:HEIST3_47
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
do_fade 2000 {direction} Fade.Out

:HEIST3_71
if 
  get_fading_status 
goto_if_false @HEIST3_95
wait 0
goto @HEIST3_71

:HEIST3_95
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_138
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:HEIST3_138
store_clothes_state 
force_weather WeatherType.SunnyVegas
set_area_visible 10
load_mission_text 'HEIST3'
load_cutscene 'HEIST2A'

:HEIST3_170
if 
  not has_cutscene_loaded 
goto_if_false @HEIST3_194
wait 0
goto @HEIST3_170

:HEIST3_194
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST3_203
if 
  not has_cutscene_finished 
goto_if_false @HEIST3_227
wait 0
goto @HEIST3_203

:HEIST3_227
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST3_240
if 
  get_fading_status 
goto_if_false @HEIST3_264
wait 0
goto @HEIST3_240

:HEIST3_264
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_284
if 
  get_fading_status 
goto_if_false @HEIST3_308
wait 0
goto @HEIST3_284

:HEIST3_308
release_weather 
load_scene 2030.103 {y} 1020.79 {z} 9.8203
wait 0
request_collision 2030.103 {y} 1020.79
load_scene 2030.103 {y} 1020.79 {z} 9.8203
set_char_coordinates $scplayer {x} 2030.103 {y} 1020.79 {z} 9.813
set_char_heading $scplayer {heading} 277.5123
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
42@ = load_char_decision_maker DecisionMakerType.Empty
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
44@ = 0.0
46@ = 0.0
36@ = 0
$d2_anim_rnd = 0
37@ = 0
38@ = 0
39@ = 0
77@ = 2090.0
78@ = 2074.0
79@ = 11.0
86@ = 2036.929
87@ = 2721.449
88@ = 10.5469
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
set_var_text_label s$hei3_spook[1] = 'HE3_AA'
set_var_text_label s$hei3_spook[2] = 'HE3_BA'
set_var_text_label s$hei3_spook[3] = 'HE3_BB'
set_var_text_label s$hei3_spook[4] = 'HE3_CA'
set_var_text_label s$hei3_spook[5] = 'HE3_CB'
set_var_text_label s$hei3_spook[6] = 'HE3_CC'
set_var_text_label s$hei3_spook[7] = 'HE3_CD'
set_var_text_label s$hei3_spook[8] = 'HE3_CE'
set_var_text_label s$hei3_spook[9] = 'HE3_CF'
set_var_text_label s$hei3_spook[10] = 'HE3_CG'
set_var_text_label s$hei3_spook[11] = 'HE3_CH'
set_var_text_label s$hei3_spook[12] = 'HE3_DA'
set_var_text_label s$hei3_spook[13] = 'HE3_DB'
set_var_text_label s$hei3_spook[14] = 'HE3_DC'
set_var_text_label s$hei3_spook[15] = 'HE3_DD'
set_var_text_label s$hei3_spook[16] = 'HE3_DE'
set_var_text_label s$hei3_spook[17] = 'HE3_DF'
set_var_text_label s$hei3_spook[18] = 'HE3_DG'
set_var_text_label s$hei3_spook[19] = 'HE3_EA'
set_var_text_label s$hei3_spook[20] = 'HE3_EB'
set_var_text_label s$hei3_spook[21] = 'HE3_EC'
set_var_text_label s$hei3_spook[22] = 'HE3_FA'
set_var_text_label s$hei3_spook[23] = 'HE3_FB'
set_var_text_label s$hei3_spook[24] = 'HE3_FC'
set_var_text_label s$hei3_spook[25] = 'HE3_FD'
set_var_text_label s$hei3_spook[26] = 'HE3_FE'
set_var_text_label s$hei3_spook[27] = 'HE3_FF'
set_var_text_label s$hei3_spook[28] = 'HE3_FG'
set_var_text_label s$hei3_spook[29] = 'HE3_GA'
set_var_text_label s$hei3_spook[30] = 'HE3_GB'
set_var_text_label s$hei3_spook[31] = 'HE3_GC'
set_var_text_label s$hei3_spook[32] = 'HE3_GD'
set_var_text_label s$hei3_spook[33] = 'HE3_GE'
set_var_text_label s$hei3_spook[34] = 'HE3_HA'
set_var_text_label s$hei3_spook[35] = 'HE3_HB'
set_var_text_label s$hei3_spook[36] = 'HE3_HC'
set_var_text_label s$hei3_spook[37] = 'HE3_HD'
set_var_text_label s$hei3_spook[38] = 'HE3_HE'
set_var_text_label s$hei3_spook[39] = 'HE3_HF'
set_var_text_label s$hei3_spook[40] = 'HE3_HG'
set_var_text_label s$hei3_spook[41] = 'HE3_HH'
set_var_text_label s$hei3_spook[42] = 'HE3_HJ'
set_var_text_label s$hei3_spook[43] = 'HE3_AB'
set_lvar_int_to_constant 90@ = 18600
set_lvar_int_to_constant 91@ = 18613
set_lvar_int_to_constant 92@ = 18614
set_lvar_int_to_constant 93@ = 18615
set_lvar_int_to_constant 94@ = 18611
set_lvar_int_to_constant 95@ = 18612
set_lvar_int_to_constant 96@ = 18616
set_lvar_int_to_constant 97@ = 18617
set_lvar_int_to_constant 98@ = 18618
set_lvar_int_to_constant 99@ = 18619
set_lvar_int_to_constant 100@ = 18620
set_lvar_int_to_constant 101@ = 18621
set_lvar_int_to_constant 102@ = 18622
set_lvar_int_to_constant 103@ = 18602
set_lvar_int_to_constant 104@ = 18623
set_lvar_int_to_constant 105@ = 18603
set_lvar_int_to_constant 106@ = 18624
set_lvar_int_to_constant 107@ = 18625
set_lvar_int_to_constant 108@ = 18604
set_lvar_int_to_constant 109@ = 18605
set_lvar_int_to_constant 110@ = 18626
set_lvar_int_to_constant 111@ = 18627
set_lvar_int_to_constant 112@ = 18628
set_lvar_int_to_constant 113@ = 18606
set_lvar_int_to_constant 114@ = 18607
set_lvar_int_to_constant 115@ = 18608
set_lvar_int_to_constant 116@ = 18629
set_lvar_int_to_constant 117@ = 18630
set_lvar_int_to_constant 118@ = 18631
set_lvar_int_to_constant 119@ = 18609
set_lvar_int_to_constant 120@ = 18632
set_lvar_int_to_constant 121@ = 18633
set_lvar_int_to_constant 122@ = 18634
set_lvar_int_to_constant 123@ = 18610
set_lvar_int_to_constant 124@ = 65535
set_lvar_int_to_constant 125@ = 65535
set_lvar_int_to_constant 126@ = 65535
set_lvar_int_to_constant 127@ = 65535
set_lvar_int_to_constant 128@ = 65535
set_lvar_int_to_constant 129@ = 65535
set_lvar_int_to_constant 130@ = 65535
set_lvar_int_to_constant 131@ = 65535
set_lvar_int_to_constant 132@ = 18601
set_lvar_int_to_constant 144@ = 23802
set_lvar_int_to_constant 145@ = 23800
set_lvar_int_to_constant 146@ = 23801
set_lvar_int_to_constant 147@ = 23803
148@ = 0
149@ = 0
150@ = 0
72@ = add_blip_for_coord 2169.0 {y} 1662.0 {z} 11.0
set_camera_behind_player 
switch_widescreen True
load_scene 2030.103 {y} 1020.79 {z} 9.8203
do_fade 1000 {direction} Fade.In

:HEIST3_1734
if 
  get_fading_status 
goto_if_false @HEIST3_1758
wait 0
goto @HEIST3_1734

:HEIST3_1758
skip_cutscene_start_internal @HEIST3_2328

:HEIST3_1765
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_2328
if 
  133@ <> 0
goto_if_false @HEIST3_2058
if 
  136@ == 0
goto_if_false @HEIST3_1851
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_1844
clear_mission_audio 135@

:HEIST3_1844
136@ = 1

:HEIST3_1851
if 
  136@ == 1
goto_if_false @HEIST3_1888
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_1888
if 
  136@ == 2
goto_if_false @HEIST3_1948
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_1948
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_1948
if 
  136@ == 3
goto_if_false @HEIST3_2058
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_2058
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_2030
134@ = 2
135@ = 1
goto @HEIST3_2044

:HEIST3_2030
134@ = 1
135@ = 2

:HEIST3_2044
133@ = 0
136@ = 0

:HEIST3_2058
switch_start 138@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST3_2249 {caseNum1} 0 {caseLabel1} @HEIST3_2121 {caseNum2} 1 {caseLabel2} @HEIST3_2165 {caseNum3} -1 {caseLabel3} @HEIST3_2321 {caseNum4} -1 {caseLabel4} @HEIST3_2321 {caseNum5} -1 {caseLabel5} @HEIST3_2321 {caseNum6} -1 {caseLabel6} @HEIST3_2321 {caseNum7} -1 {caseLabel7} @HEIST3_2321

:HEIST3_2121
if 
  136@ == 0
goto_if_false @HEIST3_2158
133@ = 1
138@ = 1
141@ = get_game_timer 

:HEIST3_2158
goto @HEIST3_2321

:HEIST3_2165
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2242
if 
  136@ == 0
goto_if_false @HEIST3_2242
133@ = 43
138@ = 2
141@ = get_game_timer 

:HEIST3_2242
goto @HEIST3_2321

:HEIST3_2249
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2314
if 
  136@ == 0
goto_if_false @HEIST3_2314
137@ = 1

:HEIST3_2314
goto @HEIST3_2321

:HEIST3_2321
goto @HEIST3_1765

:HEIST3_2328
skip_cutscene_end 
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_2351
clear_mission_audio 134@

:HEIST3_2351
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_33' {time} 5000 {flag} 1

:HEIST3_2380
wait 0
if 
  48@ == 99999
goto_if_false @HEIST3_2606
68@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
71@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
69@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
70@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
65@ = create_car 589 {x} 2175.1809 {y} 1695.522 {z} 9.8203
57@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
66@ = create_car 533 {x} 2175.1809 {y} 1695.522 {z} 9.8203
58@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0

:HEIST3_2606
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST3_2635
set_global_var_bit_const $iActiveGF {bitIndex} 5
goto @HEIST3_22984

:HEIST3_2635
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @HEIST3_2739

:HEIST3_2650
if or
  not has_model_loaded 555
  not has_model_loaded 194
  not has_model_loaded 589
goto_if_false @HEIST3_2732
request_model 589
request_model 194
request_model 555
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
wait 0
goto @HEIST3_2650

:HEIST3_2732
47@ = 5

:HEIST3_2739
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @HEIST3_2774
set_char_coordinates $scplayer {x} 2152.7739 {y} 1653.351 {z} 10.0469

:HEIST3_2774
if 
is_ps2_keyboard_key_pressed 38
goto_if_false @HEIST3_2896
request_model 321

:HEIST3_2794
if 
  not has_model_loaded 321
goto_if_false @HEIST3_2821
wait 0
goto @HEIST3_2794

:HEIST3_2821
remove_blip 72@
remove_blip 69@
remove_blip 68@
delete_char 57@
delete_car 66@
delete_char 56@
delete_car 65@
set_char_coordinates $scplayer {x} 86@ {y} 87@ {z} 88@
remove_blip 71@
71@ = add_blip_for_coord 86@ {y} 87@ {z} 88@
47@ = 9

:HEIST3_2896
if 
  47@ == 0
goto_if_false @HEIST3_3476
if 
  locate_stopped_char_any_means_3d $scplayer {x} 2169.0 {y} 1662.0 {z} 11.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST3_3476
remove_blip 72@
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:HEIST3_2981
if 
  get_fading_status 
goto_if_false @HEIST3_3005
wait 0
goto @HEIST3_2981

:HEIST3_3005
switch_ped_roads_off 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
switch_roads_off 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
request_model 194
request_model 589
request_model 111

:HEIST3_3083
if or
  not has_model_loaded 194
  not has_model_loaded 111
  not has_model_loaded 589
goto_if_false @HEIST3_3119
wait 0
goto @HEIST3_3083

:HEIST3_3119
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True
custom_plate_for_next_car 589 {text} "_SPANK__"
65@ = create_car 589 {x} 2175.1809 {y} 1695.522 {z} 9.8203
change_car_colour 65@ {color1} 126 {color2} 126
set_can_burst_car_tyres 65@ {state} False
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 65@ {heading} 66.1016
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
68@ = add_blip_for_char 56@
set_char_heading 56@ {heading} 76.0
58@ = create_char PedType.Mission2 {modelId} 111 {x} 2188.1001 {y} 1686.4 {z} 10.0
set_char_heading 58@ {heading} 78.0
set_char_decision_maker 58@ {handleOrTemplate} 42@
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST3_3388
67@ = store_car_char_is_in $scplayer
set_car_coordinates 67@ {x} 2174.0 {y} 1662.0 {z} 9.8203
set_car_heading 67@ {heading} 27.0
goto @HEIST3_3418

:HEIST3_3388
set_char_coordinates $scplayer {x} 2174.0 {y} 1662.0 {z} 9.8203
set_char_heading $scplayer {heading} 27.0

:HEIST3_3418
set_fixed_camera_position 2191.3999 {y} 1677.08 {z} 12.48 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2182.1699 {y} 1688.45 {z} 8.05 {switchStyle} SwitchType.JumpCut
47@ = 1

:HEIST3_3476
if 
  47@ == 1
goto_if_false @HEIST3_5104
if 
  not is_char_dead 56@
goto_if_false @HEIST3_5104
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5104
flush_route 
extend_route 2336.219 {y} 1891.09 {z} 9.7792
extend_route 2355.281 {y} 2114.8169 {z} 9.6719
extend_route 2171.7461 {y} 2149.146 {z} 9.6794
extend_route 2123.564 {y} 2134.417 {z} 9.6797
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2175.093 {y} 1692.705 {z} 9.8203 {speed} MoveState.Walk {time} 30000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 65@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.5359 {y} 2061.717 {z} 9.6875 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2116.2639 {y} 2044.594 {z} 9.8125 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2101.0 {y} 2040.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2096.0 {y} 2073.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
do_fade 1500 {direction} Fade.In

:HEIST3_3814
if 
  get_fading_status 
goto_if_false @HEIST3_3838
wait 0
goto @HEIST3_3814

:HEIST3_3838
clear_prints 
print 'HEI3_01' {time} 7000 {flag} 1
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_3947
if 
  48@ == 0
goto_if_false @HEIST3_5033
if 
  137@ == 0
goto_if_false @HEIST3_4357
if 
  133@ <> 0
goto_if_false @HEIST3_4290
if 
  136@ == 0
goto_if_false @HEIST3_4047
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_4040
clear_mission_audio 135@

:HEIST3_4040
136@ = 1

:HEIST3_4047
if 
  136@ == 1
goto_if_false @HEIST3_4084
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_4084
if 
  136@ == 2
goto_if_false @HEIST3_4144
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_4144
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_4144
if 
  136@ == 3
goto_if_false @HEIST3_4290
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_4290
if 
  not is_char_dead 56@
goto_if_false @HEIST3_4207
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_4207
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_4255
134@ = 2
135@ = 1
goto @HEIST3_4269

:HEIST3_4255
134@ = 1
135@ = 2

:HEIST3_4269
133@ = 0
136@ = 0
137@ = 1

:HEIST3_4290
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_4357
if 
  136@ == 0
goto_if_false @HEIST3_4357
if 
  not is_char_dead 56@
goto_if_false @HEIST3_4350
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_4350
133@ = 2

:HEIST3_4357
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_4701
48@ = 1
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_4701
if 
  not is_char_in_car 56@ {vehicle} 65@
goto_if_false @HEIST3_4429
warp_char_into_car 56@ {vehicle} 65@

:HEIST3_4429
close_all_car_doors 65@
flush_route 
extend_route 2336.219 {y} 1891.09 {z} 9.7792
extend_route 2355.281 {y} 2114.8169 {z} 9.6719
extend_route 2171.7461 {y} 2149.146 {z} 9.6794
extend_route 2128.564 {y} 2134.417 {z} 9.6797
75@ = open_sequence_task 
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.5359 {y} 2061.717 {z} 9.6875 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2116.2639 {y} 2044.594 {z} 9.8125 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2101.0 {y} 2040.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2096.0 {y} 2073.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True

:HEIST3_4701
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_5015
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_5008
34@ = get_sequence_progress 56@
if 
  locate_char_any_means_car_3d 56@ {vehicle} 65@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST3_4933
if 
  35@ == 0
goto_if_false @HEIST3_4933
print 'HEI3_02' {time} 5000 {flag} 1
set_fixed_camera_position 2182.1699 {y} 1694.54 {z} 11.72 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2108.6899 {y} 1674.08 {z} -4.6 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 58@
goto_if_false @HEIST3_4926
clear_char_tasks 58@
task_go_straight_to_coord 58@ {x} 2196.6201 {y} 1684.1801 {z} 12.41 {speed} MoveState.Walk {time} 30000

:HEIST3_4926
35@ = 1

:HEIST3_4933
if 
  34@ == 2
goto_if_false @HEIST3_5008
wait 1000
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5001
close_all_car_doors 65@

:HEIST3_5001
48@ = 1

:HEIST3_5008
goto @HEIST3_5022

:HEIST3_5015
48@ = 1

:HEIST3_5022
wait 0
goto @HEIST3_3947

:HEIST3_5033
clear_prints 
mark_char_as_no_longer_needed 58@
remove_char_elegantly 58@
mark_model_as_no_longer_needed 111
mark_car_as_no_longer_needed 67@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
display_onscreen_counter_with_string $d2_anim_rnd {display} CounterDisplay.Bar {text} 'HEI3_94'
TIMERB = 0
TIMERA = 0
47@ = 2

:HEIST3_5104
if 
  47@ == 2
goto_if_false @HEIST3_6977
if 
  not is_char_dead 56@
goto_if_false @HEIST3_6847
if 
  not is_car_dead 65@
goto_if_false @HEIST3_6710
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5739
clear_area 2096.0 {y} 2073.0 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_onscreen_counter $d2_anim_rnd
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @HEIST3_5609
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.4441
set_fixed_camera_position 2098.45 {y} 2081.99 {z} 9.88 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2056.3701 {y} 2043.26 {z} 26.3 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @HEIST3_5607
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST3_5432
if 
  locate_char_any_means_3d $scplayer {x} 2088.0 {y} 2076.0 {z} 11.0 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_5432
set_char_coordinates $scplayer {x} 2092.0 {y} 2063.0 {z} 11.0
set_char_heading $scplayer {heading} 0.0

:HEIST3_5432
75@ = open_sequence_task 
if 
  is_char_in_any_car 56@
goto_if_false @HEIST3_5457
task_leave_any_car -1

:HEIST3_5457
task_go_straight_to_coord -1 {x} 2085.7209 {y} 2074.76 {z} 10.0579 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
48@ = 0
TIMERA = 0

:HEIST3_5512
if 
  48@ == 0
goto_if_false @HEIST3_5607
if 
  not is_char_dead 56@
goto_if_false @HEIST3_5589
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5582
48@ = 1

:HEIST3_5582
goto @HEIST3_5596

:HEIST3_5589
48@ = 1

:HEIST3_5596
wait 0
goto @HEIST3_5512

:HEIST3_5607
skip_cutscene_end 

:HEIST3_5609
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5660
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.4441
close_all_car_doors 65@

:HEIST3_5660
restore_camera_jumpcut 
remove_blip 68@
70@ = add_blip_for_coord 77@ {y} 78@ {z} 79@
delete_char 56@
mark_char_as_no_longer_needed 56@
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_03' {time} 5000 {flag} 1
35@ = 0
47@ = 3
goto @HEIST3_6703

:HEIST3_5739
80@, 81@, 82@ = get_char_coordinates $scplayer
83@, 84@, 85@ = get_char_coordinates 56@
46@ = get_distance_between_coords_3d 80@ {fromY} 81@ {fromZ} 82@ {toX} 83@ {toY} 84@ {toZ} 85@
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_6703
34@ = get_sequence_progress 56@
if 
  5 > 34@
goto_if_false @HEIST3_6703
if 
  51@ == 1
goto_if_false @HEIST3_6223
if 
  36@ > 140
goto_if_false @HEIST3_6090
clear_prints 
if 
  36@ > 168
goto_if_false @HEIST3_6074
if 
  not is_char_on_screen 56@
goto_if_false @HEIST3_6051
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6021
do_fade 1000 {direction} Fade.Out

:HEIST3_5950
if 
  get_fading_status 
goto_if_false @HEIST3_5974
wait 0
goto @HEIST3_5950

:HEIST3_5974
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_5997
if 
  get_fading_status 
goto_if_false @HEIST3_6021
wait 0
goto @HEIST3_5997

:HEIST3_6021
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22966
goto @HEIST3_6067

:HEIST3_6051
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_6067
goto @HEIST3_6090

:HEIST3_6074
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_6090
if 
  locate_char_any_means_char_3d $scplayer {target} 56@ {xRadius} 22.5 {yRadius} 22.5 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST3_6165
if 
  TIMERA > 64
goto_if_false @HEIST3_6158
$d2_anim_rnd += 1
TIMERA = 0

:HEIST3_6158
goto @HEIST3_6216

:HEIST3_6165
if 
  TIMERA > 150
goto_if_false @HEIST3_6216
if 
  $d2_anim_rnd > 0
goto_if_false @HEIST3_6209
$d2_anim_rnd -= 1

:HEIST3_6209
TIMERA = 0

:HEIST3_6216
goto @HEIST3_6267

:HEIST3_6223
if 
  51@ == 0
goto_if_false @HEIST3_6267
if 
  TIMERB > 4000
goto_if_false @HEIST3_6267
51@ = 1

:HEIST3_6267
if 
  0 > $d2_anim_rnd
goto_if_false @HEIST3_6299
$d2_anim_rnd = 0
goto @HEIST3_6324

:HEIST3_6299
if 
  $d2_anim_rnd > 100
goto_if_false @HEIST3_6324
$d2_anim_rnd = 100

:HEIST3_6324
if 
  $d2_anim_rnd > 10
goto_if_false @HEIST3_6383
if 
  52@ == 0
goto_if_false @HEIST3_6383
print_now 'HEI3_11' {time} 5000 {flag} 1
52@ = 1

:HEIST3_6383
if 
  $d2_anim_rnd == 100
goto_if_false @HEIST3_6531
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6508
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_6437
if 
  get_fading_status 
goto_if_false @HEIST3_6461
wait 0
goto @HEIST3_6437

:HEIST3_6461
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6484
if 
  get_fading_status 
goto_if_false @HEIST3_6508
wait 0
goto @HEIST3_6484

:HEIST3_6508
print_now 'HEI3_17' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_6531
if or
  not is_char_in_car 56@ {vehicle} 65@
  is_char_touching_vehicle $scplayer {handle} 65@
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST3_6703
$d2_anim_rnd = 100
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6680
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_6609
if 
  get_fading_status 
goto_if_false @HEIST3_6633
wait 0
goto @HEIST3_6609

:HEIST3_6633
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6656
if 
  get_fading_status 
goto_if_false @HEIST3_6680
wait 0
goto @HEIST3_6656

:HEIST3_6680
print_now 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_6703
goto @HEIST3_6840

:HEIST3_6710
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6817
do_fade 1000 {direction} Fade.Out

:HEIST3_6746
if 
  get_fading_status 
goto_if_false @HEIST3_6770
wait 0
goto @HEIST3_6746

:HEIST3_6770
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6793
if 
  get_fading_status 
goto_if_false @HEIST3_6817
wait 0
goto @HEIST3_6793

:HEIST3_6817
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_6840
goto @HEIST3_6977

:HEIST3_6847
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6954
do_fade 1000 {direction} Fade.Out

:HEIST3_6883
if 
  get_fading_status 
goto_if_false @HEIST3_6907
wait 0
goto @HEIST3_6883

:HEIST3_6907
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6930
if 
  get_fading_status 
goto_if_false @HEIST3_6954
wait 0
goto @HEIST3_6930

:HEIST3_6954
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_6977
if 
  47@ == 3
goto_if_false @HEIST3_13413
if 
  is_car_dead 65@
goto_if_false @HEIST3_7141
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_7118
do_fade 1000 {direction} Fade.Out

:HEIST3_7047
if 
  get_fading_status 
goto_if_false @HEIST3_7071
wait 0
goto @HEIST3_7047

:HEIST3_7071
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_7094
if 
  get_fading_status 
goto_if_false @HEIST3_7118
wait 0
goto @HEIST3_7094

:HEIST3_7118
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_7141
if 
  35@ == 0
goto_if_false @HEIST3_7926
if 
  locate_char_on_foot_3d $scplayer {x} 2086.7261 {y} 2074.3521 {z} 10.0579 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST3_7926
35@ = 1
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_7228
if 
  get_fading_status 
goto_if_false @HEIST3_7252
wait 0
goto @HEIST3_7228

:HEIST3_7252
clear_prints 
set_char_has_used_entry_exit $scplayer {x} 2086.7261 {y} 2074.3521 {radius} 5.0579
set_area_visible 3
request_collision -100.432 {y} -23.1933
load_scene -100.432 {y} -23.1933 {z} 999.7261
set_char_coordinates $scplayer {x} -100.432 {y} -23.1933 {z} 999.7261
set_char_heading $scplayer {heading} 0.0
load_special_character 1 {modelName} 'CROGRL2'
request_model 330
request_model 249
request_model 178
request_model 168
request_model 101

:HEIST3_7374
if or
  not has_model_loaded 330
  not has_special_character_loaded 1
goto_if_false @HEIST3_7405
wait 0
goto @HEIST3_7374

:HEIST3_7405
if or
  not has_model_loaded 249
  not has_model_loaded 178
  not has_model_loaded 168
  not has_model_loaded 101
goto_if_false @HEIST3_7446
wait 0
goto @HEIST3_7405

:HEIST3_7446
59@ = create_char PedType.Mission1 {modelId} 168 {x} -100.6538 {y} -17.633 {z} 999.7188
set_char_heading 59@ {heading} 93.7683
60@ = create_char PedType.Mission1 {modelId} 101 {x} -108.0798 {y} -18.0669 {z} 999.7261
set_char_heading 60@ {heading} 89.3157
61@ = create_char PedType.Mission1 {modelId} 249 {x} -105.6009 {y} -13.6508 {z} 999.7261
set_char_heading 61@ {heading} 176.841
62@ = create_char PedType.Mission1 {modelId} 178 {x} -103.7278 {y} -24.3711 {z} 999.7261
set_char_heading 62@ {heading} 349.7995
63@ = create_char PedType.Mission1 {modelId} 178 {x} -104.715 {y} -8.9155 {z} 999.7188
set_char_heading 63@ {heading} 179.3188
56@ = create_char PedType.Special {modelId} 290 {x} -113.9837 {y} -8.3695 {z} 999.7812
set_char_never_targetted 56@ {state} True
set_char_health 56@ {health} 200
set_char_suffers_critical_hits 56@ {state} False
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 183.0375
if 
  has_animation_loaded "CLOTHES"
goto_if_false @HEIST3_7768
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_TORSO" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST3_7768
remove_blip 70@
remove_blip 68@
58@ = create_char PedType.Mission1 {modelId} 178 {x} -115.8863 {y} -12.0374 {z} 999.7886
set_anim_group_for_char 58@ {animGroup} "SEXYWOMAN"
set_char_decision_maker 58@ {handleOrTemplate} 42@
set_char_heading 58@ {heading} 297.3894
set_char_coordinates $scplayer {x} -100.432 {y} -23.1933 {z} 999.7261
set_char_heading $scplayer {heading} 0.0
wait 1000
do_fade 1000 {direction} Fade.In

:HEIST3_7879
if 
  get_fading_status 
goto_if_false @HEIST3_7903
wait 0
goto @HEIST3_7879

:HEIST3_7903
set_player_control $player1 {state} True
print 'HEI3_29' {time} 5000 {flag} 1

:HEIST3_7926
if 
  35@ == 1
goto_if_false @HEIST3_13413
if 
  locate_char_any_means_3d $scplayer {x} -107.1254 {y} -12.2446 {z} 1000.821 {xRadius} 15.2999 {yRadius} 15.0999 {zRadius} 35.2997 {drawSphere} False
goto_if_false @HEIST3_13283
if 
  not is_char_dead 62@
goto_if_false @HEIST3_8060
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_8060
43@ = set_char_say_context_important 62@ {phrase} SpeechId.EyeingPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False

:HEIST3_8060
if 
  not is_char_dead 63@
goto_if_false @HEIST3_8128
if 
  locate_char_any_means_char_3d $scplayer {target} 63@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_8128
43@ = set_char_say_context_important 63@ {phrase} SpeechId.GenericHiFemale {overrideSilence} True {ignoreMute} False {frontEnd} False

:HEIST3_8128
if 
  not is_char_dead 56@
goto_if_false @HEIST3_13146
if 
  not is_char_dead 58@
goto_if_false @HEIST3_13009
if or
  has_char_been_damaged_by_char 56@ {handle} $scplayer
  has_char_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @HEIST3_8410
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_8294
do_fade 1000 {direction} Fade.Out

:HEIST3_8223
if 
  get_fading_status 
goto_if_false @HEIST3_8247
wait 0
goto @HEIST3_8223

:HEIST3_8247
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_8270
if 
  get_fading_status 
goto_if_false @HEIST3_8294
wait 0
goto @HEIST3_8270

:HEIST3_8294
if and
  not is_char_dead 56@
  not is_char_head_missing 56@
goto_if_false @HEIST3_8387
35@ = get_char_health 56@
if 
  35@ > 0
goto_if_false @HEIST3_8364
print 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_8380

:HEIST3_8364
print 'HEI3_14' {time} 5000 {flag} 1

:HEIST3_8380
goto @HEIST3_8403

:HEIST3_8387
print 'HEI3_14' {time} 5000 {flag} 1

:HEIST3_8403
goto @HEIST3_22966

:HEIST3_8410
if 
  locate_stopped_char_any_means_3d $scplayer {x} -109.7757 {y} -12.6704 {z} 999.7188 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.1 {drawSphere} True
goto_if_false @HEIST3_13002
clear_area -107.7856 {y} -12.4046 {z} 999.7812 {radius} 50.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position -113.08 {y} -12.39 {z} 1000.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -119.54 {y} -8.15 {z} 1001.83 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -109.7757 {y} -12.6704 {z} 999.7188
set_char_heading $scplayer {heading} 59.7399
skip_cutscene_start_internal @HEIST3_12821
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_8653
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_9463
if 
  133@ <> 0
goto_if_false @HEIST3_9014
if 
  136@ == 0
goto_if_false @HEIST3_8739
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_8732
clear_mission_audio 135@

:HEIST3_8732
136@ = 1

:HEIST3_8739
if 
  136@ == 1
goto_if_false @HEIST3_8776
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_8776
if 
  136@ == 2
goto_if_false @HEIST3_8836
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_8836
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_8836
if 
  136@ == 3
goto_if_false @HEIST3_9014
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_8953
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_8918
134@ = 2
135@ = 1
goto @HEIST3_8932

:HEIST3_8918
134@ = 1
135@ = 2

:HEIST3_8932
133@ = 0
136@ = 0
goto @HEIST3_9014

:HEIST3_8953
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_9014
if 
  8 > 133@
goto_if_false @HEIST3_9014
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_9014
switch_start 138@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @HEIST3_9363 {caseNum1} 0 {caseLabel1} @HEIST3_9077 {caseNum2} 1 {caseLabel2} @HEIST3_9150 {caseNum3} 2 {caseLabel3} @HEIST3_9279 {caseNum4} -1 {caseLabel4} @HEIST3_9456 {caseNum5} -1 {caseLabel5} @HEIST3_9456 {caseNum6} -1 {caseLabel6} @HEIST3_9456 {caseNum7} -1 {caseLabel7} @HEIST3_9456

:HEIST3_9077
if 
  136@ == 0
goto_if_false @HEIST3_9143
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9124
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_9124
133@ = 4
138@ = 1
141@ = get_game_timer 

:HEIST3_9143
goto @HEIST3_9456

:HEIST3_9150
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9272
if 
  136@ == 0
goto_if_false @HEIST3_9272
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9229
stop_char_facial_talk 56@

:HEIST3_9229
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9253
start_char_facial_talk 58@ {duration} 3000

:HEIST3_9253
133@ = 5
138@ = 2
141@ = get_game_timer 

:HEIST3_9272
goto @HEIST3_9456

:HEIST3_9279
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9356
if 
  136@ == 0
goto_if_false @HEIST3_9356
133@ = 6
138@ = 3
141@ = get_game_timer 

:HEIST3_9356
goto @HEIST3_9456

:HEIST3_9363
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9449
if 
  136@ == 0
goto_if_false @HEIST3_9449
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9442
stop_char_facial_talk 58@

:HEIST3_9442
137@ = 1

:HEIST3_9449
goto @HEIST3_9456

:HEIST3_9456
goto @HEIST3_8653

:HEIST3_9463
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9571
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9571
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 58@
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_9571
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_9662
if 
  48@ == 0
goto_if_false @HEIST3_10222
if 
  137@ == 0
goto_if_false @HEIST3_9997
if 
  133@ <> 0
goto_if_false @HEIST3_9997
if 
  136@ == 0
goto_if_false @HEIST3_9762
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_9755
clear_mission_audio 135@

:HEIST3_9755
136@ = 1

:HEIST3_9762
if 
  136@ == 1
goto_if_false @HEIST3_9799
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_9799
if 
  136@ == 2
goto_if_false @HEIST3_9859
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_9859
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_9859
if 
  136@ == 3
goto_if_false @HEIST3_9997
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_9997
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9914
stop_char_facial_talk 56@

:HEIST3_9914
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_9962
134@ = 2
135@ = 1
goto @HEIST3_9976

:HEIST3_9962
134@ = 1
135@ = 2

:HEIST3_9976
133@ = 0
136@ = 0
137@ = 1

:HEIST3_9997
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10204
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10074
if 
  136@ == 0
goto_if_false @HEIST3_10067
48@ = 1

:HEIST3_10067
goto @HEIST3_10197

:HEIST3_10074
if 
  35@ == 0
goto_if_false @HEIST3_10197
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_10197
34@ = get_sequence_progress 56@
if 
  34@ == 2
goto_if_false @HEIST3_10197
if 
  136@ == 0
goto_if_false @HEIST3_10197
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10183
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 2000

:HEIST3_10183
133@ = 7
35@ = 1

:HEIST3_10197
goto @HEIST3_10211

:HEIST3_10204
48@ = 1

:HEIST3_10211
wait 0
goto @HEIST3_9662

:HEIST3_10222
if 
  is_message_being_displayed 
goto_if_false @HEIST3_10246
wait 0
goto @HEIST3_10222

:HEIST3_10246
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10317
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -112.6415 {y} -12.4015 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 247.0
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_10317
set_fixed_camera_position -112.15 {y} -11.94 {z} 1001.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -123.84 {y} -14.32 {z} 1002.43 {switchStyle} SwitchType.JumpCut
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_10389
if 
  48@ == 0
goto_if_false @HEIST3_10724
if 
  148@ <> 0
goto_if_false @HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10469
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_10462
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_10462
149@ = 1

:HEIST3_10469
if 
  149@ == 1
goto_if_false @HEIST3_10505
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_10505
if 
  149@ == 2
goto_if_false @HEIST3_10549
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_10549
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_10549
if 
  149@ == 3
goto_if_false @HEIST3_10603
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_10603
148@ = 0
149@ = 0
TIMERA = 0

:HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10647
if 
  2000 > TIMERA
goto_if_false @HEIST3_10647
148@ = 4

:HEIST3_10647
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10706
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10699
48@ = 1

:HEIST3_10699
goto @HEIST3_10713

:HEIST3_10706
48@ = 1

:HEIST3_10713
wait 0
goto @HEIST3_10389

:HEIST3_10724
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10756
clear_mission_audio MissionAudioSlot.Slot3
task_use_mobile_phone 56@ {start} True
wait 2000

:HEIST3_10756
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_10826
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_11747
if 
  133@ <> 0
goto_if_false @HEIST3_11208
if 
  136@ == 0
goto_if_false @HEIST3_10912
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_10905
clear_mission_audio 135@

:HEIST3_10905
136@ = 1

:HEIST3_10912
if 
  136@ == 1
goto_if_false @HEIST3_10949
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_10949
if 
  136@ == 2
goto_if_false @HEIST3_11009
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_11009
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_11009
if 
  136@ == 3
goto_if_false @HEIST3_11208
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_11147
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11064
stop_char_facial_talk 56@

:HEIST3_11064
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_11112
134@ = 2
135@ = 1
goto @HEIST3_11126

:HEIST3_11112
134@ = 1
135@ = 2

:HEIST3_11126
133@ = 0
136@ = 0
goto @HEIST3_11208

:HEIST3_11147
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_11208
if 
  8 > 133@
goto_if_false @HEIST3_11208
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_11208
switch_start 138@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @HEIST3_11668 {caseNum1} 0 {caseLabel1} @HEIST3_11271 {caseNum2} 1 {caseLabel2} @HEIST3_11344 {caseNum3} 2 {caseLabel3} @HEIST3_11452 {caseNum4} 3 {caseLabel4} @HEIST3_11560 {caseNum5} -1 {caseLabel5} @HEIST3_11740 {caseNum6} -1 {caseLabel6} @HEIST3_11740 {caseNum7} -1 {caseLabel7} @HEIST3_11740

:HEIST3_11271
if 
  136@ == 0
goto_if_false @HEIST3_11337
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11318
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11318
133@ = 8
138@ = 1
141@ = get_game_timer 

:HEIST3_11337
goto @HEIST3_11740

:HEIST3_11344
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11445
if 
  136@ == 0
goto_if_false @HEIST3_11445
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11426
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11426
133@ = 9
138@ = 2
141@ = get_game_timer 

:HEIST3_11445
goto @HEIST3_11740

:HEIST3_11452
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11553
if 
  136@ == 0
goto_if_false @HEIST3_11553
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11534
start_char_facial_talk 56@ {duration} 2000

:HEIST3_11534
133@ = 10
138@ = 3
141@ = get_game_timer 

:HEIST3_11553
goto @HEIST3_11740

:HEIST3_11560
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11661
if 
  136@ == 0
goto_if_false @HEIST3_11661
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11642
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11642
133@ = 11
138@ = 4
141@ = get_game_timer 

:HEIST3_11661
goto @HEIST3_11740

:HEIST3_11668
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11733
if 
  136@ == 0
goto_if_false @HEIST3_11733
137@ = 1

:HEIST3_11733
goto @HEIST3_11740

:HEIST3_11740
goto @HEIST3_10826

:HEIST3_11747
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11804
34@ = get_script_task_status 56@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_11799
task_use_mobile_phone 56@ {start} False

:HEIST3_11799
mark_model_as_no_longer_needed 330

:HEIST3_11804
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11921
75@ = open_sequence_task 
task_achieve_heading -1 {heading} 87.0
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -113.9837 {y} -8.3695 {z} 999.7812 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_11921
if 
  not is_char_dead 58@
goto_if_false @HEIST3_11990
75@ = open_sequence_task 
task_stand_still -1 {time} 3000
task_go_straight_to_coord -1 {x} -102.0 {y} -12.0 {z} 1001.0 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 58@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_11990
set_fixed_camera_position -106.63 {y} -11.88 {z} 1001.28 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -120.22 {y} -11.77 {z} 1000.71 {switchStyle} SwitchType.JumpCut
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12062
if 
  48@ == 0
goto_if_false @HEIST3_12215
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12197
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12139
48@ = 1
goto @HEIST3_12190

:HEIST3_12139
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_12190
34@ = get_sequence_progress 56@
if 
  34@ == 3
goto_if_false @HEIST3_12190
48@ = 1

:HEIST3_12190
goto @HEIST3_12204

:HEIST3_12197
48@ = 1

:HEIST3_12204
wait 0
goto @HEIST3_12062

:HEIST3_12215
48@ = 0
148@ = 3
149@ = 0

:HEIST3_12236
if 
  48@ == 0
goto_if_false @HEIST3_12461
if 
  148@ <> 0
goto_if_false @HEIST3_12450
if 
  149@ == 0
goto_if_false @HEIST3_12316
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_12309
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_12309
149@ = 1

:HEIST3_12316
if 
  149@ == 1
goto_if_false @HEIST3_12352
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_12352
if 
  149@ == 2
goto_if_false @HEIST3_12396
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_12396
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_12396
if 
  149@ == 3
goto_if_false @HEIST3_12450
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_12450
148@ = 0
149@ = 0
48@ = 1

:HEIST3_12450
wait 0
goto @HEIST3_12236

:HEIST3_12461
do_fade 1500 {direction} Fade.Out

:HEIST3_12468
if 
  get_fading_status 
goto_if_false @HEIST3_12492
wait 0
goto @HEIST3_12468

:HEIST3_12492
delete_char 56@
mark_char_as_no_longer_needed 56@
56@ = create_char PedType.Mission1 {modelId} 194 {x} -100.3376 {y} -20.1905 {z} 999.7812
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 183.4416
set_fixed_camera_position -101.69 {y} -20.2 {z} 1000.67 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -84.83 {y} -44.52 {z} 1005.63 {switchStyle} SwitchType.JumpCut
do_fade 1500 {direction} Fade.In

:HEIST3_12619
if 
  get_fading_status 
goto_if_false @HEIST3_12643
wait 0
goto @HEIST3_12619

:HEIST3_12643
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12705
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -100.2427 {y} -24.2149 {z} 999.7886 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_12705
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12726
if 
  48@ == 0
goto_if_false @HEIST3_12821
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12803
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12796
48@ = 1

:HEIST3_12796
goto @HEIST3_12810

:HEIST3_12803
48@ = 1

:HEIST3_12810
wait 0
goto @HEIST3_12726

:HEIST3_12821
skip_cutscene_end 
clear_mission_audio 134@
clear_mission_audio 135@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot3
do_fade 500 {direction} Fade.In

:HEIST3_12846
if 
  get_fading_status 
goto_if_false @HEIST3_12870
wait 0
goto @HEIST3_12846

:HEIST3_12870
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
64@ = create_pickup #CLOTHESP {pickupType} PickupType.Once {x} -114.6156 {y} -8.6308 {z} 1000.713
73@ = add_blip_for_pickup 64@
set_blip_entry_exit 73@ {x} 2090.0 {y} 2074.0 {radius} 10.0
print 'HEI3_04' {time} 5000 {flag} 1
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 58@
mark_model_as_no_longer_needed 330
unload_special_character 1
delete_char 58@
delete_char 56@
request_model 555
35@ = 0
47@ = 4

:HEIST3_13002
goto @HEIST3_13139

:HEIST3_13009
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13116
do_fade 1000 {direction} Fade.Out

:HEIST3_13045
if 
  get_fading_status 
goto_if_false @HEIST3_13069
wait 0
goto @HEIST3_13045

:HEIST3_13069
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13092
if 
  get_fading_status 
goto_if_false @HEIST3_13116
wait 0
goto @HEIST3_13092

:HEIST3_13116
print 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_13139
goto @HEIST3_13276

:HEIST3_13146
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13253
do_fade 1000 {direction} Fade.Out

:HEIST3_13182
if 
  get_fading_status 
goto_if_false @HEIST3_13206
wait 0
goto @HEIST3_13182

:HEIST3_13206
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13229
if 
  get_fading_status 
goto_if_false @HEIST3_13253
wait 0
goto @HEIST3_13229

:HEIST3_13253
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_13276
goto @HEIST3_13413

:HEIST3_13283
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13390
do_fade 1000 {direction} Fade.Out

:HEIST3_13319
if 
  get_fading_status 
goto_if_false @HEIST3_13343
wait 0
goto @HEIST3_13319

:HEIST3_13343
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13366
if 
  get_fading_status 
goto_if_false @HEIST3_13390
wait 0
goto @HEIST3_13366

:HEIST3_13390
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_13413
if 
  47@ == 4
goto_if_false @HEIST3_14378
if 
  50@ == 0
goto_if_false @HEIST3_14293
if 
  35@ == 0
goto_if_false @HEIST3_13478
disable_all_entry_exits True
35@ = 1

:HEIST3_13478
if 
  has_pickup_been_collected 64@
goto_if_false @HEIST3_14286
remove_pickup 64@
clear_prints 
$2753 = store_score $player1
if 
  $2753 >= 200
goto_if_false @HEIST3_13543
add_score $player1 {money} -200
goto @HEIST3_13558

:HEIST3_13543
$2753 *= -1
add_score $player1 {money} $2753

:HEIST3_13558
set_player_control $player1 {state} False
set_music_does_fade False
do_fade 1500 {direction} Fade.Out

:HEIST3_13576
if 
  get_fading_status 
goto_if_false @HEIST3_13600
wait 0
goto @HEIST3_13576

:HEIST3_13600
switch_widescreen True
remove_blip 73@
store_clothes_state 
53@ = 1
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
48@ = 0
148@ = 1
149@ = 0

:HEIST3_13669
if 
  48@ == 0
goto_if_false @HEIST3_13894
if 
  148@ <> 0
goto_if_false @HEIST3_13883
if 
  149@ == 0
goto_if_false @HEIST3_13749
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_13742
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_13742
149@ = 1

:HEIST3_13749
if 
  149@ == 1
goto_if_false @HEIST3_13785
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_13785
if 
  149@ == 2
goto_if_false @HEIST3_13829
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_13829
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_13829
if 
  149@ == 3
goto_if_false @HEIST3_13883
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_13883
148@ = 0
149@ = 0
48@ = 1

:HEIST3_13883
wait 0
goto @HEIST3_13669

:HEIST3_13894
set_fixed_camera_position -111.19 {y} -12.67 {z} 1002.69 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -124.89 {y} -3.78 {z} 997.61 {switchStyle} SwitchType.JumpCut
clear_area -113.9837 {y} -8.3695 {z} 999.7812 {radius} 20.0 {clearParticles} True
set_char_coordinates $scplayer {x} -113.9837 {y} -8.3695 {z} 999.7812
set_char_heading $scplayer {heading} 183.0
do_fade 1000 {direction} Fade.In

:HEIST3_14006
if 
  get_fading_status 
goto_if_false @HEIST3_14030
wait 0
goto @HEIST3_14006

:HEIST3_14030
set_music_does_fade True
74@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 252.0
task_scratch_head -1
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
48@ = 0

:HEIST3_14130
if 
  48@ == 0
goto_if_false @HEIST3_14225
if 
  not is_char_dead $scplayer
goto_if_false @HEIST3_14207
34@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_14200
48@ = 1

:HEIST3_14200
goto @HEIST3_14214

:HEIST3_14207
48@ = 1

:HEIST3_14214
wait 0
goto @HEIST3_14130

:HEIST3_14225
disable_all_entry_exits False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_30' {time} 5000 {flag} 1
remove_blip 70@
70@ = add_blip_for_coord 77@ {y} 78@ {z} 79@
50@ = 1

:HEIST3_14286
goto @HEIST3_14378

:HEIST3_14293
if 
  locate_char_any_means_3d $scplayer {x} -100.5496 {y} -24.1101 {z} 999.7886 {xRadius} 1.3 {yRadius} 1.3 {zRadius} 50.0 {drawSphere} False
goto_if_false @HEIST3_14348
47@ = 5

:HEIST3_14348
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @HEIST3_14378
47@ = 5

:HEIST3_14378
if 
  47@ == 5
goto_if_false @HEIST3_16045
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_14410
if 
  get_fading_status 
goto_if_false @HEIST3_14434
wait 0
goto @HEIST3_14410

:HEIST3_14434
remove_blip 70@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 178
mark_model_as_no_longer_needed 168
mark_model_as_no_longer_needed 101
set_area_visible 0
request_model 162
request_model 321
request_model 555

:HEIST3_14507
if or
  not has_model_loaded 162
  not has_model_loaded 321
  not has_model_loaded 555
goto_if_false @HEIST3_14544
wait 0
goto @HEIST3_14507

:HEIST3_14544
load_scene 2085.1201 {y} 2077.0859 {z} 15.8434
clear_area 2105.957 {y} 2039.186 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2047.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2055.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2060.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2065.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2070.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2088.8269 {y} 2076.001 {z} 9.8203 {radius} 12.0 {clearParticles} True
67@ = create_car 555 {x} 2103.957 {y} 2073.186 {z} 9.8203
set_car_heading 67@ {heading} 270.8618
mark_car_as_no_longer_needed 67@
mark_model_as_no_longer_needed 555
set_char_has_used_entry_exit $scplayer {x} -100.3132 {y} -25.1503 {radius} 20.0
set_char_coordinates $scplayer {x} 2085.1201 {y} 2077.0859 {z} 15.8434
set_char_heading $scplayer {heading} 268.8011
set_area_visible 0
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2085.7209 {y} 2074.76 {z} 10.0579
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
68@ = add_blip_for_char 56@
set_char_heading 56@ {heading} 271.0
flush_route 
extend_route 2037.671 {y} 2743.196 {z} 9.6875
delete_car 65@
mark_car_as_no_longer_needed 65@
custom_plate_for_next_car 589 {text} "_SPANK__"
65@ = create_car 589 {x} 2095.9131 {y} 2074.0811 {z} 9.8203
change_car_colour 65@ {color1} 126 {color2} 126
set_can_burst_car_tyres 65@ {state} False
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15097
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.444
set_car_health 65@ {health} 1000
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2093.418 {y} 2073.646 {z} 9.8203 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 65@ {time} 20000
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_15097
clear_prints 
print 'HEI3_09' {time} 5000 {flag} 1
set_fixed_camera_position 2098.5 {y} 2076.1201 {z} 11.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.2 {y} 2067.3899 {z} 7.26 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 1500 {direction} Fade.In

:HEIST3_15177
if 
  get_fading_status 
goto_if_false @HEIST3_15201
wait 0
goto @HEIST3_15177

:HEIST3_15201
49@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_15229
if 
  48@ == 0
goto_if_false @HEIST3_15360
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_15278
48@ = 1
49@ = 1

:HEIST3_15278
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_15342
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_15335
48@ = 1

:HEIST3_15335
goto @HEIST3_15349

:HEIST3_15342
48@ = 1

:HEIST3_15349
wait 0
goto @HEIST3_15229

:HEIST3_15360
if 
  49@ == 0
goto_if_false @HEIST3_15613
request_car_recording 803

:HEIST3_15383
if 
  not has_car_recording_been_loaded 803
goto_if_false @HEIST3_15410
wait 0
goto @HEIST3_15383

:HEIST3_15410
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15434
start_playback_recorded_car 65@ {path} 803

:HEIST3_15434
load_scene_in_direction 2084.0801 {y} 2068.6201 {z} 11.22 {heading} 206.8418
set_fixed_camera_position 2088.5061 {y} 2079.9851 {z} 10.6126 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2088.675 {y} 2079.0 {z} 10.5742 {switchStyle} SwitchType.JumpCut
48@ = 0

:HEIST3_15514
if 
  48@ == 0
goto_if_false @HEIST3_15613
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_15563
49@ = 1
48@ = 1

:HEIST3_15563
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15602
if 
  not is_playback_going_on_for_car 65@
goto_if_false @HEIST3_15602
48@ = 1

:HEIST3_15602
wait 0
goto @HEIST3_15514

:HEIST3_15613
remove_car_recording 803
clear_prints 
if 
  49@ == 1
goto_if_false @HEIST3_15716
if and
  not is_car_dead 65@
  not is_char_dead 56@
goto_if_false @HEIST3_15716
if 
  not is_char_in_car 56@ {vehicle} 65@
goto_if_false @HEIST3_15686
warp_char_into_car 56@ {vehicle} 65@

:HEIST3_15686
set_car_coordinates 65@ {x} 2109.0039 {y} 2039.756 {z} 9.8125
set_car_heading 65@ {heading} 269.4456

:HEIST3_15716
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15751
close_all_car_doors 65@
lock_car_doors 65@ {lockStatus} CarLock.ForceShutDoors
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly

:HEIST3_15751
set_char_coordinates $scplayer {x} 2089.6531 {y} 2083.562 {z} 9.8203
set_char_heading $scplayer {heading} 223.4858
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
$d2_anim_rnd = 0
display_onscreen_counter_with_string $d2_anim_rnd {display} CounterDisplay.Bar {text} 'HEI3_94'
flush_route 
extend_route 2123.365 {y} 2030.2729 {z} 9.6719
extend_route 2038.803 {y} 2023.952 {z} 9.6875
extend_route 1929.384 {y} 2175.1289 {z} 9.7972
extend_route 1931.512 {y} 2385.7971 {z} 9.6719
extend_route 2029.426 {y} 2417.2251 {z} 9.7143
extend_route 2045.03 {y} 2745.491 {z} 9.6719
extend_route 2035.317 {y} 2737.322 {z} 9.6719
extend_route 2035.338 {y} 2726.573 {z} 9.8281
if and
  not is_car_dead 65@
  not is_char_dead 56@
goto_if_false @HEIST3_16017
75@ = open_sequence_task 
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_16017
TIMERA = 0
TIMERB = 0
51@ = 0
47@ = 6

:HEIST3_16045
if 
  47@ == 6
goto_if_false @HEIST3_18132
if 
  not is_char_dead 56@
goto_if_false @HEIST3_18002
if 
  not is_car_dead 65@
goto_if_false @HEIST3_17865
34@ = get_script_task_status 56@ {taskId} 1560
if 
  55@ == 0
goto_if_false @HEIST3_17211
if 
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HEIST3_16209
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True

:HEIST3_16209
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_16284
remove_blip 68@
68@ = add_blip_for_coord 2038.8361 {y} 2749.803 {z} 9.8203
clear_prints 
print 'HEI3_96' {time} 5000 {flag} 1
55@ = 1
goto @HEIST3_17204

:HEIST3_16284
80@, 81@, 82@ = get_char_coordinates $scplayer
83@, 84@, 85@ = get_char_coordinates 56@
46@ = get_distance_between_coords_3d 80@ {fromY} 81@ {fromZ} 82@ {toX} 83@ {toY} 84@ {toZ} 85@
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  36@ > 140
goto_if_false @HEIST3_16573
clear_prints 
if 
  36@ > 168
goto_if_false @HEIST3_16557
if 
  not is_char_on_screen 56@
goto_if_false @HEIST3_16534
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_16504
do_fade 1000 {direction} Fade.Out

:HEIST3_16433
if 
  get_fading_status 
goto_if_false @HEIST3_16457
wait 0
goto @HEIST3_16433

:HEIST3_16457
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_16480
if 
  get_fading_status 
goto_if_false @HEIST3_16504
wait 0
goto @HEIST3_16480

:HEIST3_16504
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22966
goto @HEIST3_16550

:HEIST3_16534
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_16550
goto @HEIST3_16573

:HEIST3_16557
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_16573
if 
  51@ == 1
goto_if_false @HEIST3_16724
if 
  locate_char_any_means_char_3d $scplayer {target} 56@ {xRadius} 22.5 {yRadius} 22.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST3_16666
if 
  TIMERA > 64
goto_if_false @HEIST3_16659
$d2_anim_rnd += 1
TIMERA = 0

:HEIST3_16659
goto @HEIST3_16717

:HEIST3_16666
if 
  TIMERA > 150
goto_if_false @HEIST3_16717
if 
  $d2_anim_rnd > 0
goto_if_false @HEIST3_16710
$d2_anim_rnd -= 1

:HEIST3_16710
TIMERA = 0

:HEIST3_16717
goto @HEIST3_16768

:HEIST3_16724
if 
  51@ == 0
goto_if_false @HEIST3_16768
if 
  TIMERB > 4000
goto_if_false @HEIST3_16768
51@ = 1

:HEIST3_16768
if 
  0 > $d2_anim_rnd
goto_if_false @HEIST3_16800
$d2_anim_rnd = 0
goto @HEIST3_16825

:HEIST3_16800
if 
  $d2_anim_rnd > 100
goto_if_false @HEIST3_16825
$d2_anim_rnd = 100

:HEIST3_16825
if 
  $d2_anim_rnd > 10
goto_if_false @HEIST3_16884
if 
  52@ == 0
goto_if_false @HEIST3_16884
print_now 'HEI3_11' {time} 5000 {flag} 1
52@ = 1

:HEIST3_16884
if 
  $d2_anim_rnd == 100
goto_if_false @HEIST3_17032
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17009
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_16938
if 
  get_fading_status 
goto_if_false @HEIST3_16962
wait 0
goto @HEIST3_16938

:HEIST3_16962
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_16985
if 
  get_fading_status 
goto_if_false @HEIST3_17009
wait 0
goto @HEIST3_16985

:HEIST3_17009
print_now 'HEI3_17' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_17032
if or
  not is_char_in_car 56@ {vehicle} 65@
  is_char_touching_vehicle $scplayer {handle} 65@
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST3_17204
$d2_anim_rnd = 100
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17181
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_17110
if 
  get_fading_status 
goto_if_false @HEIST3_17134
wait 0
goto @HEIST3_17110

:HEIST3_17134
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_17157
if 
  get_fading_status 
goto_if_false @HEIST3_17181
wait 0
goto @HEIST3_17157

:HEIST3_17181
print_now 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_17204
goto @HEIST3_17858

:HEIST3_17211
if 
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST3_17858
remove_blip 68@
clear_area 2034.7939 {y} 2724.4651 {z} 9.8281 {radius} 20.0 {clearParticles} True
clear_onscreen_counter $d2_anim_rnd
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_car_coordinates 65@ {x} 2035.01 {y} 2725.3601 {z} 9.8281
set_car_heading 65@ {heading} 184.0343
set_fixed_camera_position 2041.2061 {y} 2753.3391 {z} 11.9601 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2040.6479 {y} 2752.5149 {z} 11.8569 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @HEIST3_17608
if 
  not is_char_dead 56@
goto_if_false @HEIST3_17499
75@ = open_sequence_task 
if 
  is_char_in_any_car 56@
goto_if_false @HEIST3_17435
task_leave_any_car -1

:HEIST3_17435
task_go_straight_to_coord -1 {x} 2037.468 {y} 2724.1421 {z} 9.8281 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 2037.3781 {y} 2721.449 {z} 10.5469 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_17499
48@ = 0
TIMERA = 0

:HEIST3_17513
if 
  48@ == 0
goto_if_false @HEIST3_17608
if 
  not is_char_dead 56@
goto_if_false @HEIST3_17590
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_17583
48@ = 1

:HEIST3_17583
goto @HEIST3_17597

:HEIST3_17590
48@ = 1

:HEIST3_17597
wait 0
goto @HEIST3_17513

:HEIST3_17608
skip_cutscene_end 
clear_area 1936.196 {y} 2734.011 {z} 9.8203 {radius} 2.0 {clearParticles} True
57@ = create_char PedType.Mission2 {modelId} 162 {x} 1999.788 {y} 2733.6919 {z} 9.8203
set_char_heading 57@ {heading} 354.8084
give_weapon_to_char 57@ {weaponType} WeaponType.Dildo1 {ammo} 0
set_current_char_weapon 57@ {weaponType} WeaponType.Dildo1
76@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2021.594 {y} 2734.5759 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2029.786 {y} 2730.5391 {z} 9.8281 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2038.505 {y} 2729.8459 {z} 9.8281 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2037.28 {y} 2722.5669 {z} 9.8281 {speed} MoveState.Walk {time} -2
close_sequence_task 76@
perform_sequence_task 57@ {sequence} 76@
clear_sequence_task 76@
restore_camera_jumpcut 
delete_char 56@
mark_char_as_no_longer_needed 56@
mark_model_as_no_longer_needed 194
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
print 'HEI3_08' {time} 8000 {flag} 1
37@ = get_game_timer 
47@ = 8

:HEIST3_17858
goto @HEIST3_17995

:HEIST3_17865
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17972
do_fade 1000 {direction} Fade.Out

:HEIST3_17901
if 
  get_fading_status 
goto_if_false @HEIST3_17925
wait 0
goto @HEIST3_17901

:HEIST3_17925
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_17948
if 
  get_fading_status 
goto_if_false @HEIST3_17972
wait 0
goto @HEIST3_17948

:HEIST3_17972
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_17995
goto @HEIST3_18132

:HEIST3_18002
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18109
do_fade 1000 {direction} Fade.Out

:HEIST3_18038
if 
  get_fading_status 
goto_if_false @HEIST3_18062
wait 0
goto @HEIST3_18038

:HEIST3_18062
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18085
if 
  get_fading_status 
goto_if_false @HEIST3_18109
wait 0
goto @HEIST3_18085

:HEIST3_18109
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_18132
if 
  47@ == 8
goto_if_false @HEIST3_18657
if 
  not is_char_dead 57@
goto_if_false @HEIST3_18613
if 
  locate_char_any_means_3d 57@ {x} 2037.312 {y} 2722.2881 {z} 10.8281 {xRadius} 1.2 {yRadius} 1.6 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_18349
clear_prints 
remove_char_elegantly 57@
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18326
do_fade 1000 {direction} Fade.Out

:HEIST3_18255
if 
  get_fading_status 
goto_if_false @HEIST3_18279
wait 0
goto @HEIST3_18255

:HEIST3_18279
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18302
if 
  get_fading_status 
goto_if_false @HEIST3_18326
wait 0
goto @HEIST3_18302

:HEIST3_18326
print 'HEI3_92' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_18349
34@ = get_script_task_status 57@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_18429
34@ = get_sequence_progress 57@
if 
  34@ == 2
goto_if_false @HEIST3_18422
clear_prints 
print 'HEI3_93' {time} 5000 {flag} 1

:HEIST3_18422
goto @HEIST3_18606

:HEIST3_18429
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_18606
if 
  not locate_char_any_means_char_3d $scplayer {target} 57@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST3_18606
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18606
do_fade 1000 {direction} Fade.Out

:HEIST3_18517
if 
  get_fading_status 
goto_if_false @HEIST3_18541
wait 0
goto @HEIST3_18517

:HEIST3_18541
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18564
if 
  get_fading_status 
goto_if_false @HEIST3_18588
wait 0
goto @HEIST3_18564

:HEIST3_18588
clear_prints 
print 'HEI3_15' {time} 5000 {flag} 1

:HEIST3_18606
goto @HEIST3_18657

:HEIST3_18613
remove_blip 69@
clear_prints 
print 'HEI3_22' {time} 5000 {flag} 1
71@ = add_blip_for_coord 86@ {y} 87@ {z} 88@
47@ = 9

:HEIST3_18657
if 
  47@ == 9
goto_if_false @HEIST3_19949
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 2037.307 {y} 2722.106 {z} 10.2989 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST3_19949
clear_prints 
remove_blip 71@
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2037.165 {y} 2721.895 {z} 10.2989
set_char_heading $scplayer {heading} 174.4355
set_fixed_camera_position 2035.66 {y} 2722.75 {z} 11.84 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2039.39 {y} 2717.3101 {z} 12.2 {switchStyle} SwitchType.JumpCut
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
148@ = 2
149@ = 0
150@ = 0

:HEIST3_18913
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_19516
if 
  148@ <> 0
goto_if_false @HEIST3_19138
if 
  149@ == 0
goto_if_false @HEIST3_18997
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_18990
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_18990
149@ = 1

:HEIST3_18997
if 
  149@ == 1
goto_if_false @HEIST3_19033
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_19033
if 
  149@ == 2
goto_if_false @HEIST3_19077
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_19077
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_19077
if 
  149@ == 3
goto_if_false @HEIST3_19138
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_19138
148@ = 0
149@ = 0
48@ = 1
TIMERA = 0

:HEIST3_19138
if 
  133@ <> 0
goto_if_false @HEIST3_19437
if 
  136@ == 0
goto_if_false @HEIST3_19202
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_19195
clear_mission_audio 135@

:HEIST3_19195
136@ = 1

:HEIST3_19202
if 
  136@ == 1
goto_if_false @HEIST3_19239
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_19239
if 
  136@ == 2
goto_if_false @HEIST3_19299
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_19299
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_19299
if 
  136@ == 3
goto_if_false @HEIST3_19437
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_19437
if 
  not is_char_dead 56@
goto_if_false @HEIST3_19354
stop_char_facial_talk 56@

:HEIST3_19354
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_19402
134@ = 2
135@ = 1
goto @HEIST3_19416

:HEIST3_19402
134@ = 1
135@ = 2

:HEIST3_19416
133@ = 0
136@ = 0
137@ = 1

:HEIST3_19437
if 
  136@ == 0
goto_if_false @HEIST3_19509
if 
  149@ == 0
goto_if_false @HEIST3_19509
if 
  not is_char_dead 56@
goto_if_false @HEIST3_19502
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_19502
133@ = 12

:HEIST3_19509
goto @HEIST3_18913

:HEIST3_19516
if 
  is_message_being_displayed 
goto_if_false @HEIST3_19540
wait 0
goto @HEIST3_19516

:HEIST3_19540
do_fade 1000 {direction} Fade.Out

:HEIST3_19547
if 
  get_fading_status 
goto_if_false @HEIST3_19571
wait 0
goto @HEIST3_19547

:HEIST3_19571
set_area_visible 6
load_special_character 1 {modelName} 'CROGRL2'

:HEIST3_19588
if 
  not has_special_character_loaded 1
goto_if_false @HEIST3_19614
wait 0
goto @HEIST3_19588

:HEIST3_19614
request_collision 344.8872 {y} 305.4298
load_scene 344.8872 {y} 305.4298 {z} 998.2638
display_radar False
set_char_coordinates $scplayer {x} 344.412 {y} 305.033 {z} 998.1484
set_char_heading $scplayer {heading} 296.283
mark_char_as_no_longer_needed 57@
mark_car_as_no_longer_needed 66@
mark_car_as_no_longer_needed 65@
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 507
mark_model_as_no_longer_needed 589
clear_char_tasks $scplayer
clear_prints 
56@ = create_char PedType.Special {modelId} 290 {x} 349.1921 {y} 308.5705 {z} 998.1484
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_char_area_visible 56@ {areaId} 6
set_char_area_visible $scplayer {areaId} 6
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 147.245
set_fixed_camera_position 348.8104 {y} 310.0784 {z} 999.4993 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 348.6377 {y} 309.0935 {z} 999.5004 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 344.412 {y} 305.033 {z} 998.1484
set_char_heading $scplayer {heading} 296.283
set_char_coordinates 56@ {x} 349.1921 {y} 308.5705 {z} 998.1484
set_char_heading 56@ {heading} 147.245
task_turn_char_to_face_char $scplayer {target} 56@
wait 1000
do_fade 1000 {direction} Fade.In

:HEIST3_19918
if 
  get_fading_status 
goto_if_false @HEIST3_19942
wait 0
goto @HEIST3_19918

:HEIST3_19942
47@ = 10

:HEIST3_19949
if and
  47@ >= 5
  9 > 47@
goto_if_false @HEIST3_20047
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @HEIST3_20047
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_20047
print 'HEI3_34' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_20047
if 
  47@ == 10
goto_if_false @HEIST3_22123
skip_cutscene_start_internal @HEIST3_22060
clear_prints 
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_20144
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_22060
if 
  133@ <> 0
goto_if_false @HEIST3_20505
if 
  136@ == 0
goto_if_false @HEIST3_20230
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_20223
clear_mission_audio 135@

:HEIST3_20223
136@ = 1

:HEIST3_20230
if 
  136@ == 1
goto_if_false @HEIST3_20267
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_20267
if 
  136@ == 2
goto_if_false @HEIST3_20327
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_20327
play_mission_audio 134@
print_now $hei3_spook(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_20327
if 
  136@ == 3
goto_if_false @HEIST3_20505
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_20444
clear_this_print $hei3_spook(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_20409
134@ = 2
135@ = 1
goto @HEIST3_20423

:HEIST3_20409
134@ = 1
135@ = 2

:HEIST3_20423
133@ = 0
136@ = 0
goto @HEIST3_20505

:HEIST3_20444
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_20505
if 
  8 > 133@
goto_if_false @HEIST3_20505
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_20505
switch_start 138@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @HEIST3_21960 {caseNum1} 0 {caseLabel1} @HEIST3_20568 {caseNum2} 1 {caseLabel2} @HEIST3_20641 {caseNum3} 2 {caseLabel3} @HEIST3_20856 {caseNum4} 3 {caseLabel4} @HEIST3_20969 {caseNum5} 4 {caseLabel5} @HEIST3_21211 {caseNum6} 5 {caseLabel6} @HEIST3_21395 {caseNum7} 6 {caseLabel7} @HEIST3_21771

:HEIST3_20568
if 
  136@ == 0
goto_if_false @HEIST3_20634
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20615
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_20615
133@ = 13
138@ = 1
141@ = get_game_timer 

:HEIST3_20634
goto @HEIST3_22053

:HEIST3_20641
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20849
if 
  136@ == 0
goto_if_false @HEIST3_20849
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20801
74@ = open_sequence_task 
task_look_at_char -1 {target} 56@ {time} 20000
task_go_straight_to_coord -1 {x} 347.0207 {y} 306.2751 {z} 998.2088 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 348.2744 {y} 307.7908 {z} 998.204 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 56@
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@

:HEIST3_20801
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20830
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_20830
133@ = 14
138@ = 2
141@ = get_game_timer 

:HEIST3_20849
goto @HEIST3_22053

:HEIST3_20856
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20962
if 
  136@ == 0
goto_if_false @HEIST3_20962
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20943
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_20943
133@ = 15
138@ = 3
141@ = get_game_timer 

:HEIST3_20962
goto @HEIST3_22053

:HEIST3_20969
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21204
if 
  136@ == 0
goto_if_false @HEIST3_21204
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_21048
if 
  48@ == 0
goto_if_false @HEIST3_21156
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21138
34@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21131
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_21131
48@ = 1

:HEIST3_21131
goto @HEIST3_21145

:HEIST3_21138
48@ = 1

:HEIST3_21145
wait 0
goto @HEIST3_21048

:HEIST3_21156
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21185
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_21185
133@ = 25
138@ = 4
141@ = get_game_timer 

:HEIST3_21204
goto @HEIST3_22053

:HEIST3_21211
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21388
if 
  136@ == 0
goto_if_false @HEIST3_21388
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21298
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_21298
133@ = 21
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21376
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 344.6502 {y} 307.6453 {z} 998.1963 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 245.3258
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_21376
138@ = 5
141@ = get_game_timer 

:HEIST3_21388
goto @HEIST3_22053

:HEIST3_21395
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21764
if 
  136@ == 0
goto_if_false @HEIST3_21764
48@ = 0
35@ = 0

:HEIST3_21467
if 
  48@ == 0
goto_if_false @HEIST3_21716
wait 0
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21702
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21559
task_look_at_char 56@ {target} $scplayer {time} 10000
48@ = 1
goto @HEIST3_21695

:HEIST3_21559
if 
  35@ == 0
goto_if_false @HEIST3_21695
set_fixed_camera_position 347.32 {y} 308.43 {z} 999.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 339.91 {y} 301.08 {z} 998.31 {switchStyle} SwitchType.JumpCut
74@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 56@
task_go_straight_to_coord -1 {x} 345.7446 {y} 304.2489 {z} 998.1641 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 56@
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
35@ = 1

:HEIST3_21695
goto @HEIST3_21709

:HEIST3_21702
48@ = 1

:HEIST3_21709
goto @HEIST3_21467

:HEIST3_21716
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21745
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_21745
133@ = 26
138@ = 6
141@ = get_game_timer 

:HEIST3_21764
goto @HEIST3_22053

:HEIST3_21771
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21953
if 
  136@ == 0
goto_if_false @HEIST3_21953
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21905
75@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_go_straight_to_coord -1 {x} 345.3145 {y} 305.0605 {z} 998.1641 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_21905
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21934
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_21934
133@ = 17
138@ = 7
141@ = get_game_timer 

:HEIST3_21953
goto @HEIST3_22053

:HEIST3_21960
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_22046
if 
  136@ == 0
goto_if_false @HEIST3_22046
if 
  not is_char_dead 56@
goto_if_false @HEIST3_22039
stop_char_facial_talk 56@

:HEIST3_22039
137@ = 1

:HEIST3_22046
goto @HEIST3_22053

:HEIST3_22053
goto @HEIST3_20144

:HEIST3_22060
skip_cutscene_end 
if 
  not is_char_dead 56@
goto_if_false @HEIST3_22088
stop_char_facial_talk 56@
stop_char_facial_talk $scplayer

:HEIST3_22088
clear_prints 
clear_look_at $scplayer
49@ = 0
40@ = 5
41@ = 1
47@ = 11

:HEIST3_22123
if 
  47@ == 11
goto_if_false @HEIST3_22344
if 
  49@ == 0
goto_if_false @HEIST3_22276
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 26
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @HEIST3_22276
stream_script 26
if 
  has_streamed_script_loaded 26
goto_if_false @HEIST3_22276
$iDateReport = 0
set_global_var_bit_const $iDateReport {bitIndex} 5
disable_all_entry_exits True
start_new_streamed_script 26 {args} 40@ 41@ 0 2037.651 2723.8711 9.8352 0.0702 
wait 1500
delete_char 56@
mark_char_as_no_longer_needed 56@
49@ = 1

:HEIST3_22276
if 
  49@ == 1
goto_if_false @HEIST3_22344
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 4
goto_if_false @HEIST3_22319
54@ = 1

:HEIST3_22319
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @HEIST3_22344
47@ = 12

:HEIST3_22344
if 
  47@ == 12
goto_if_false @HEIST3_22959
set_fixed_camera_position 2033.274 {y} 2719.8879 {z} 10.2275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2033.7271 {y} 2720.7739 {z} 10.3282 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
disable_all_entry_exits False
skip_cutscene_start_internal @HEIST3_22738
74@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2036.875 {y} 2734.282 {z} 9.8203 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 2029.545 {y} 2735.6279 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
if 
  54@ == 1
goto_if_false @HEIST3_22605
clear_help 
print_help_forever 'HEI3_95'
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_22605
48@ = 0
TIMERA = 0

:HEIST3_22619
if 
  48@ == 0
goto_if_false @HEIST3_22738
if 
  54@ == 1
goto_if_false @HEIST3_22701
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_22694
if 
  TIMERA > 5000
goto_if_false @HEIST3_22694
48@ = 1

:HEIST3_22694
goto @HEIST3_22727

:HEIST3_22701
if 
  TIMERA > 7000
goto_if_false @HEIST3_22727
48@ = 1

:HEIST3_22727
wait 0
goto @HEIST3_22619

:HEIST3_22738
skip_cutscene_end 
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2029.545 {y} 2735.6279 {z} 9.8203
set_char_heading $scplayer {heading} 68.4474
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
clear_help 
if 
  54@ == 1
goto_if_false @HEIST3_22829
set_global_var_bit_const $iActiveGF {bitIndex} 5
goto @HEIST3_22984
goto @HEIST3_22959

:HEIST3_22829
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_22936
do_fade 1000 {direction} Fade.Out

:HEIST3_22865
if 
  get_fading_status 
goto_if_false @HEIST3_22889
wait 0
goto @HEIST3_22865

:HEIST3_22889
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_22912
if 
  get_fading_status 
goto_if_false @HEIST3_22936
wait 0
goto @HEIST3_22912

:HEIST3_22936
print 'HEI3_24' {time} 5000 {flag} 1
goto @HEIST3_22966

:HEIST3_22959
goto @HEIST3_2380

:HEIST3_22966
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST3_22984
$flag_heist_mission_counter += 1
$flag_player_got_gimp_suit = 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'HEIST_3'
player_made_progress 1
return 

:HEIST3_23046
switch_ped_roads_back_to_original 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
switch_roads_back_to_original 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
mark_streamed_script_as_no_longer_needed 26
$timer_mobile_start = get_game_timer 
clear_onscreen_counter $d2_anim_rnd
display_radar True
disable_all_entry_exits False
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 178
mark_model_as_no_longer_needed 168
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 194
mark_model_as_no_longer_needed 589
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 555
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 321
if 
  not is_car_dead 65@
goto_if_false @HEIST3_23208
lock_car_doors 65@ {lockStatus} CarLock.Unlocked

:HEIST3_23208
mark_car_as_no_longer_needed 65@
mark_car_as_no_longer_needed 67@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
remove_char_elegantly 56@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 58@
remove_pickup 64@
remove_blip 68@
remove_blip 70@
remove_blip 72@
remove_blip 73@
remove_car_recording 803
unload_special_character 1
remove_decision_maker 42@
$onmission = 0
mission_has_finished 
return 

//-------------Mission 98---------------
// Originally: Dam And Blast

:HEIST2
script_name 'HEIST2'
gosub @HEIST2_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST2_38
gosub @HEIST2_18779

:HEIST2_38
gosub @HEIST2_18847
terminate_this_script 

:HEIST2_47
load_mission_text 'HEIST2'
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
do_fade 2000 {direction} Fade.Out

:HEIST2_82
if 
  get_fading_status 
goto_if_false @HEIST2_106
wait 0
goto @HEIST2_82

:HEIST2_106
set_area_visible 10
force_weather WeatherType.SunnyVegas
load_cutscene 'HEIST4A'

:HEIST2_125
if 
  not has_cutscene_loaded 
goto_if_false @HEIST2_149
wait 0
goto @HEIST2_125

:HEIST2_149
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST2_158
if 
  not has_cutscene_finished 
goto_if_false @HEIST2_182
wait 0
goto @HEIST2_158

:HEIST2_182
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out
load_scene 2030.103 {y} 1020.79 {z} 9.8203

:HEIST2_212
if 
  get_fading_status 
goto_if_false @HEIST2_236
wait 0
goto @HEIST2_212

:HEIST2_236
clear_cutscene 
release_weather 
set_area_visible 0
wait 0
request_collision 2030.103 {y} 1020.79
load_scene 2030.103 {y} 1020.79 {z} 9.8203
set_char_coordinates $scplayer {x} 2030.103 {y} 1020.79 {z} 9.813
set_char_heading $scplayer {heading} 277.5123
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_camera_behind_player 
restore_camera_jumpcut 
152@ = add_blip_for_coord 1717.017 {y} 1602.4969 {z} 9.3368
set_blip_as_friendly 152@ {state} True
request_animation "BOMBER"

:HEIST2_368
if 
  not has_animation_loaded "BOMBER"
goto_if_false @HEIST2_400
wait 0
goto @HEIST2_368

:HEIST2_400
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen False
38@ = load_char_decision_maker DecisionMakerType.Steal
load_scene 2030.103 {y} 1020.79 {z} 9.8203
do_fade 1500 {direction} Fade.In

:HEIST2_443
if 
  get_fading_status 
goto_if_false @HEIST2_467
wait 0
goto @HEIST2_443

:HEIST2_467
set_player_control $player1 {state} True
print 'HEI2_90' {time} 10000 {flag} 1
105@ = 0
107@ = 0
106@ = 0
119@ = 0
121@ = 0
122@ = 0
124@ = 0
132@ = 0
125@ = 0
133@ = 0
137@ = 0
138@ = 0
136@ = 0
139@ = 0
123@ = 0
36@ = 0

:HEIST2_602
if 
  6 > 36@
goto_if_false @HEIST2_674
113@(36@,6i) = 0
if 
  5 > 36@
goto_if_false @HEIST2_660
108@(36@,5i) = 0

:HEIST2_660
36@ += 1
goto @HEIST2_602

:HEIST2_674
34@ = 0
120@ = 0
35@ = 1
36@ = 0
37@ = 0
47@ = -955.7253
53@ = 1920.637
59@ = 8.0078
65@ = 294.0869
48@ = -959.8978
54@ = 1861.884
60@ = 8.0078
66@ = 87.9045
49@ = -945.822
55@ = 1868.03
61@ = 4.0051
67@ = 177.415
50@ = -945.5732
56@ = 1911.255
62@ = 4.0
68@ = 183.0188
51@ = -959.6175
57@ = 1858.156
63@ = 8.0078
69@ = 180.4759
52@ = -959.7453
58@ = 1914.674
64@ = 8.0078
70@ = 185.4313
71@ = -955.7253
77@ = 1920.637
83@ = 8.0078
72@ = -959.8978
78@ = 1861.884
84@ = 8.0078
73@ = -943.7589
79@ = 1888.943
85@ = 4.0051
74@ = -943.0214
80@ = 1932.3521
86@ = 4.0
75@ = -959.4366
81@ = 1900.022
87@ = 8.0078
76@ = -959.496
82@ = 1936.925
88@ = 8.0061
89@ = -952.56
94@ = 1943.52
99@ = 8.0
90@ = -952.56
95@ = 1922.0699
100@ = 8.0
91@ = -952.56
96@ = 1900.4399
101@ = 8.0
92@ = -952.56
97@ = 1878.16
102@ = 8.0
93@ = -952.56
98@ = 1857.7
103@ = 8.0
185@ = 0
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
42@ = 0
set_lvar_int_to_constant 221@ = 23200
222@ = 0
223@ = 0
224@ = 0
set_var_text_label s$hei2_height[1] = 'HE2_AA'
set_var_text_label s$hei2_height[2] = 'HE2_AB'
set_var_text_label s$hei2_height[3] = 'HE2_AC'
set_var_text_label s$hei2_height[4] = 'HE2_AD'
set_var_text_label s$hei2_height[5] = 'HE2_AE'
set_var_text_label s$hei2_height[6] = 'HE2_AF'
set_var_text_label s$hei2_height[7] = 'HE2_AG'
set_var_text_label s$hei2_height[8] = 'HE2_AH'
set_var_text_label s$hei2_height[9] = 'HE2_AJ'
set_var_text_label s$hei2_height[10] = 'HE2_AK'
set_var_text_label s$hei2_height[11] = 'HE2_AL'
set_var_text_label s$hei2_height[12] = 'HE2_BA'
set_var_text_label s$hei2_height[13] = 'HE2_BB'
set_var_text_label s$hei2_height[14] = 'HE2_CA'
set_var_text_label s$hei2_height[15] = 'HE2_CB'
set_var_text_label s$hei2_height[16] = 'HE2_DA'
set_var_text_label s$hei2_height[17] = 'HE2_DB'
set_lvar_int_to_constant 192@ = 18402
set_lvar_int_to_constant 193@ = 18403
set_lvar_int_to_constant 194@ = 18404
set_lvar_int_to_constant 195@ = 18405
set_lvar_int_to_constant 196@ = 18406
set_lvar_int_to_constant 197@ = 18407
set_lvar_int_to_constant 198@ = 18408
set_lvar_int_to_constant 199@ = 18409
set_lvar_int_to_constant 200@ = 18410
set_lvar_int_to_constant 201@ = 18411
set_lvar_int_to_constant 202@ = 18412
set_lvar_int_to_constant 203@ = 18413
set_lvar_int_to_constant 204@ = 18414
set_lvar_int_to_constant 205@ = 18400
set_lvar_int_to_constant 206@ = 18401
set_lvar_int_to_constant 207@ = 18416
set_lvar_int_to_constant 208@ = 18415
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
switch_entry_exit 'DAMIN' {state} False
switch_entry_exit 'DAMOUT' {state} False
wait 1000

:HEIST2_1813
wait 0
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @HEIST2_1852
set_char_coordinates $scplayer {x} -585.0 {y} 2026.0 {z} 60.0

:HEIST2_1852
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @HEIST2_1887
set_char_coordinates $scplayer {x} 1423.657 {y} 1643.182 {z} 9.8359

:HEIST2_1887
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @HEIST2_1922
set_char_coordinates $scplayer {x} -828.64 {y} 1971.644 {z} 6.0

:HEIST2_1922
if 
is_ps2_keyboard_key_pressed 33
goto_if_false @HEIST2_1957
set_char_coordinates $scplayer {x} -693.98 {y} 1806.8101 {z} 800.0

:HEIST2_1957
if 
is_ps2_keyboard_key_pressed 40
goto_if_false @HEIST2_1993
119@ = 0
125@ = 0
gosub @HEIST2_14797

:HEIST2_1993
if 
is_ps2_keyboard_key_pressed 35
goto_if_false @HEIST2_2015
107@ = 6

:HEIST2_2015
if 
is_ps2_keyboard_key_pressed 36
goto_if_false @HEIST2_2037
123@ = 6

:HEIST2_2037
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST2_2059
goto @HEIST2_18797

:HEIST2_2059
if 
  107@ == 99999
goto_if_false @HEIST2_2120
154@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
155@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:HEIST2_2120
if 
  107@ == 0
goto_if_false @HEIST2_2168
print 'HEI2_90' {time} 7000 {flag} 1
107@ = 1
123@ = 1

:HEIST2_2168
if 
  12 > 123@
goto_if_false @HEIST2_9179
if 
  4 > 123@
goto_if_false @HEIST2_2907
if 
  123@ == 1
goto_if_false @HEIST2_2400
if or
  locate_char_any_means_2d $scplayer {x} 1477.401 {y} 1677.399 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 1717.017 {y} 1602.4969 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 1477.178 {y} 1639.083 {z} 10.9203 {xRadius} 79.499 {yRadius} 143.0963 {zRadius} 4.9 {drawSphere} False
goto_if_false @HEIST2_2400
request_model 553

:HEIST2_2329
if 
  not has_model_loaded 553
goto_if_false @HEIST2_2356
wait 0
goto @HEIST2_2329

:HEIST2_2356
set_area51_sam_site False
168@ = create_car 553 {x} 1477.401 {y} 1677.399 {z} 9.8425
set_car_heading 168@ {heading} 180.049
123@ = 2

:HEIST2_2400
if 
  136@ == 0
goto_if_false @HEIST2_2554
if or
  locate_char_any_means_3d $scplayer {x} 1477.178 {y} 1639.083 {z} 10.9203 {xRadius} 79.499 {yRadius} 143.0963 {zRadius} 4.9 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 1717.017 {y} 1602.4969 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @HEIST2_2554
if 
  not is_car_dead 168@
goto_if_false @HEIST2_2554
remove_blip 152@
152@ = add_blip_for_car 168@
set_blip_as_friendly 152@ {state} True
clear_prints 
print 'HEI2_57' {time} 7000 {flag} 1
136@ = 1

:HEIST2_2554
if 
  locate_char_any_means_3d $scplayer {x} 1717.017 {y} 1602.4969 {z} 9.3368 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST2_2602

:HEIST2_2602
if 
  123@ > 1
goto_if_false @HEIST2_2679
if 
  4 > 123@
goto_if_false @HEIST2_2679
if 
  is_car_dead 168@
goto_if_false @HEIST2_2679
clear_prints 
print 'HEI2_25' {time} 5000 {flag} 1
goto @HEIST2_18779

:HEIST2_2679
if 
  123@ == 2
goto_if_false @HEIST2_2900
if 
  not is_car_dead 168@
goto_if_false @HEIST2_2900
if 
  is_char_sitting_in_car $scplayer {vehicle} 168@
goto_if_false @HEIST2_2900
lock_car_doors 168@ {lockStatus} CarLock.LockedPlayerInside
137@ = 1
set_camera_behind_player 
clear_prints 
print 'HEI2_26' {time} 10000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -592.42 {y} 1555.88 {z} 750.0
153@ = create_checkpoint CheckpointType.Torus {x} -592.42 {y} 1555.88 {z} 750.0 {pointX} -592.42 {pointY} 1555.88 {pointZ} 750.0 {radius} 25.0
request_model 371

:HEIST2_2838
if 
  not has_model_loaded 371
goto_if_false @HEIST2_2870
request_model 371
wait 0
goto @HEIST2_2838

:HEIST2_2870
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
$para_pickup_flag = 0
123@ = 3

:HEIST2_2900
goto @HEIST2_2907

:HEIST2_2907
if 
  123@ == 3
goto_if_false @HEIST2_4803
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4803
if or
  is_char_sitting_in_car $scplayer {vehicle} 168@
  138@ == 1
goto_if_false @HEIST2_4623
if 
  132@ == 1
goto_if_false @HEIST2_3075
remove_blip 152@
152@ = add_blip_for_coord -592.42 {y} 1555.88 {z} 750.0
153@ = create_checkpoint CheckpointType.Torus {x} -592.42 {y} 1555.88 {z} 750.0 {pointX} -592.42 {pointY} 1555.88 {pointZ} 750.0 {radius} 25.0
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
132@ = 0

:HEIST2_3075
if 
  locate_char_in_car_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @HEIST2_4442
if 
  137@ == 1
goto_if_false @HEIST2_3186
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
clear_help 
print_help_forever 'HEI2_50'
clear_prints 
print 'HEI2_15' {time} 10000 {flag} 1
137@ = 0

:HEIST2_3186
if 
  138@ == 1
goto_if_false @HEIST2_4435
clear_help 
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
delete_checkpoint 153@
freeze_car_position 168@ {state} True
set_car_coordinates 168@ {x} -592.42 {y} 1555.88 {z} 750.0
set_car_heading 168@ {heading} 180.0
set_heli_blades_full_speed 168@
TIMERA = 0
$para_control_off = 1
request_car_recording 805
TIMERA = 0
106@ = 0

:HEIST2_3301
if 
  106@ == 0
goto_if_false @HEIST2_3366
if and
  has_car_recording_been_loaded 805
  TIMERA > 3000
goto_if_false @HEIST2_3355
106@ = 1
request_car_recording 805

:HEIST2_3355
wait 0
goto @HEIST2_3301

:HEIST2_3366
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3453
start_playback_recorded_car 168@ {path} 805
set_fixed_camera_position -590.9276 {y} 1546.75 {z} 735.8972 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -591.0876 {y} 1546.2271 {z} 735.0595 {switchStyle} SwitchType.JumpCut
set_char_visible $scplayer {state} False
186@ = get_game_timer 

:HEIST2_3453
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3476
freeze_car_position 168@ {state} False

:HEIST2_3476
skip_cutscene_start_internal @HEIST2_4297
$para_freefall_Vz = 0.0
106@ = 0
41@ = 0

:HEIST2_3507
if 
  106@ == 0
goto_if_false @HEIST2_3884
$para_freefall_Vz = 0.0
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3873
if 
  not is_playback_going_on_for_car 168@
goto_if_false @HEIST2_3581
106@ = 1
goto @HEIST2_3873

:HEIST2_3581
187@ = get_game_timer 
set_lvar_int_to_lvar_int 188@ = 187@
sub_int_lvar_from_int_lvar 188@ -= 186@
if 
  41@ == 0
goto_if_false @HEIST2_3873
if 
  188@ > 6000
goto_if_false @HEIST2_3873
do_fade 1000 {direction} Fade.Out

:HEIST2_3646
if 
  get_fading_status 
goto_if_false @HEIST2_3670
wait 0
goto @HEIST2_3646

:HEIST2_3670
request_model #SW_BIT_09

:HEIST2_3675
if 
  not has_model_loaded #SW_BIT_09
goto_if_false @HEIST2_3702
wait 0
goto @HEIST2_3675

:HEIST2_3702
set_fixed_camera_position -781.9676 {y} 1163.64 {z} 28.421 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -781.364 {y} 1164.077 {z} 29.0876 {switchStyle} SwitchType.JumpCut
load_scene -781.364 {y} 1164.077 {z} 29.0876
request_collision -781.364 {y} 1164.077
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3813
skip_in_playback_recorded_car 168@ {amount} 80.0
set_heli_blades_full_speed 168@

:HEIST2_3813
load_scene_in_direction -781.364 {y} 1164.077 {z} 29.0876 {heading} 270.0
do_fade 1000 {direction} Fade.In

:HEIST2_3842
if 
  get_fading_status 
goto_if_false @HEIST2_3866
wait 0
goto @HEIST2_3842

:HEIST2_3866
41@ = 1

:HEIST2_3873
wait 0
goto @HEIST2_3507

:HEIST2_3884
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3905
set_heli_blades_full_speed 168@

:HEIST2_3905
189@ = create_fx_system "SMOKE50LIT" {x} -761.2061 {y} 1174.616 {z} 39.0387 {ignoreBoundingChecks} True
190@ = create_fx_system "EXPLOSION_SMALL" {x} -761.2061 {y} 1174.616 {z} 38.5387 {ignoreBoundingChecks} True
if 
  189@ == -1
goto_if_false @HEIST2_4003
goto @HEIST2_4018

:HEIST2_4003
wait 300
play_fx_system 190@
play_fx_system 189@

:HEIST2_4018
add_explosion -761.2062 {y} 1175.616 {z} 39.5387 {type} ExplosionType.Molotov
add_explosion -761.206 {y} 1173.616 {z} 39.5387 {type} ExplosionType.Molotov
add_explosion -761.2061 {y} 1174.616 {z} 39.5387 {type} ExplosionType.Molotov
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4096
explode_car 168@

:HEIST2_4096
TIMERA = 0

:HEIST2_4103
if 
  2000 > TIMERA
goto_if_false @HEIST2_4297
if 
  500 > TIMERA
goto_if_false @HEIST2_4167
add_explosion -761.2062 {y} 1175.616 {z} 39.5387 {type} ExplosionType.Rocket
goto @HEIST2_4257

:HEIST2_4167
if 
  1000 > TIMERA
goto_if_false @HEIST2_4193
goto @HEIST2_4257

:HEIST2_4193
if 
  1500 > TIMERA
goto_if_false @HEIST2_4238
add_explosion -761.206 {y} 1173.616 {z} 39.5387 {type} ExplosionType.Grenade
goto @HEIST2_4257

:HEIST2_4238
add_explosion -761.2061 {y} 1174.616 {z} 39.5387 {type} ExplosionType.Aircraft

:HEIST2_4257
if or
  is_char_dead $scplayer
  is_car_dead 168@
goto_if_false @HEIST2_4286
TIMERA = 2000

:HEIST2_4286
wait 0
goto @HEIST2_4103

:HEIST2_4297
skip_cutscene_end 
mark_model_as_no_longer_needed #SW_BIT_09
do_fade 500 {direction} Fade.In

:HEIST2_4311
if 
  get_fading_status 
goto_if_false @HEIST2_4335
wait 0
goto @HEIST2_4311

:HEIST2_4335
remove_car_recording 805
kill_fx_system 189@
kill_fx_system 190@
set_char_visible $scplayer {state} True
switch_widescreen False
set_player_control $player1 {state} True
$para_control_off = 0
$para_freefall_Vz = -30.0
restore_camera_jumpcut 
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4423
set_car_coordinates 168@ {x} -761.2061 {y} 1174.616 {z} 39.5387

:HEIST2_4423
mark_car_as_no_longer_needed 168@
123@ = 4

:HEIST2_4435
goto @HEIST2_4616

:HEIST2_4442
clear_help 
clear_this_print 'HEI2_15'
$7889 = get_char_height_above_ground $scplayer
if 
  5.0 > $7889
goto_if_false @HEIST2_4523
if 
  137@ == 1
goto_if_false @HEIST2_4516
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
137@ = 0

:HEIST2_4516
goto @HEIST2_4555

:HEIST2_4523
if 
  137@ == 0
goto_if_false @HEIST2_4555
lock_car_doors 168@ {lockStatus} CarLock.LockedPlayerInside
137@ = 1

:HEIST2_4555
if 
  locate_char_in_car_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 400.0 {yRadius} 400.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @HEIST2_4616
print_help_forever 'HEI2_88'
clear_prints 

:HEIST2_4616
goto @HEIST2_4803

:HEIST2_4623
if 
  138@ == 0
goto_if_false @HEIST2_4803
if 
  locate_char_any_means_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @HEIST2_4703
138@ = 1
goto @HEIST2_4803

:HEIST2_4703
clear_prints 
print 'HEI2_28' {time} 1000 {flag} 1
if 
  132@ == 0
goto_if_false @HEIST2_4771
remove_blip 152@
delete_checkpoint 153@
152@ = add_blip_for_car 168@
set_blip_as_friendly 152@ {state} True
132@ = 1

:HEIST2_4771
if 
  137@ == 1
goto_if_false @HEIST2_4803
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
137@ = 0

:HEIST2_4803
if 
  123@ == 4
goto_if_false @HEIST2_5568
153@ = create_checkpoint CheckpointType.Tube {x} -811.07 {y} 1816.08 {z} 7.0 {pointX} -811.07 {pointY} 1816.08 {pointZ} 200.0 {radius} 6.0
remove_blip 152@
152@ = add_blip_for_coord -811.07 {y} 1816.08 {z} 7.0
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
request_model #SMASHBOXPILE
request_model #K_CARGO1
request_model #KMB_CONTAINER_RED
request_model #K_CARGO4
request_model 71
request_model 334
load_all_models_now 

:HEIST2_4929
if or
  not has_model_loaded #K_CARGO4
  not has_model_loaded #SMASHBOXPILE
  not has_model_loaded #K_CARGO1
  not has_model_loaded #KMB_CONTAINER_RED
  not has_model_loaded 71
  not has_model_loaded 334
goto_if_false @HEIST2_4980
wait 0
goto @HEIST2_4929

:HEIST2_4980
174@ = create_object_no_offset #SMASHBOXPILE {x} -829.8794 {y} 1957.827 {z} 6.4364
set_object_heading 174@ {heading} 7.1004
175@ = create_object_no_offset #SMASHBOXPILE {x} -824.9033 {y} 1958.443 {z} 6.5048
set_object_heading 175@ {heading} 9.1604
176@ = create_object_no_offset #K_CARGO1 {x} -828.3333 {y} 1952.527 {z} 5.9651
set_object_heading 176@ {heading} 102.0394
177@ = create_object_no_offset #K_CARGO1 {x} -825.9227 {y} 1953.171 {z} 5.9651
set_object_heading 177@ {heading} 100.9489
178@ = create_object_no_offset #K_CARGO4 {x} -827.6044 {y} 1958.276 {z} 5.9873
set_object_heading 178@ {heading} 101.9089
179@ = create_object_no_offset #KMB_CONTAINER_RED {x} -820.3694 {y} 1933.666 {z} 7.3952
set_object_heading 179@ {heading} 11.8154
180@ = create_object_no_offset #KMB_CONTAINER_RED {x} -822.3879 {y} 1945.519 {z} 7.4836
set_object_heading 180@ {heading} 11.8154
163@ = create_char PedType.Mission1 {modelId} 71 {x} -826.3729 {y} 1946.988 {z} 6.0692
give_weapon_to_char 163@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 163@ {state} False
set_char_heading 163@ {heading} 0.0
set_sense_range 163@ {range} 10.0
164@ = create_char PedType.Mission1 {modelId} 71 {x} -823.3655 {y} 1956.276 {z} 6.04
give_weapon_to_char 164@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 164@ {state} False
set_char_heading 164@ {heading} 301.2606
set_sense_range 164@ {range} 10.0
set_char_decision_maker 163@ {handleOrTemplate} 38@
set_char_decision_maker 164@ {handleOrTemplate} 38@
flush_patrol_route 
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -823.3667 {y} 1933.54 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -826.9571 {y} 1947.569 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 163@ {speed} MoveState.Walk {mode} RouteMode.BackForward
flush_patrol_route 
extend_patrol_route -828.9601 {y} 1955.366 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -823.2458 {y} 1957.016 {z} 6.007 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 164@ {speed} MoveState.Walk {mode} RouteMode.BackForward
123@ = 5

:HEIST2_5568
if and
  123@ > 4
  12 > 123@
goto_if_false @HEIST2_7009
if 
  not is_car_dead 168@
goto_if_false @HEIST2_5640
if 
  not is_car_on_screen 168@
goto_if_false @HEIST2_5640
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
delete_car 168@

:HEIST2_5640
if 
  209@ <> 0
goto_if_false @HEIST2_5911
if 
  212@ == 0
goto_if_false @HEIST2_5704
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_5697
clear_mission_audio 211@

:HEIST2_5697
212@ = 1

:HEIST2_5704
if 
  212@ == 1
goto_if_false @HEIST2_5741
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_5741
if 
  212@ == 2
goto_if_false @HEIST2_5801
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_5801
play_mission_audio 210@
print_now $hei2_height(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_5801
if 
  212@ == 3
goto_if_false @HEIST2_5911
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_5911
clear_this_print $hei2_height(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_5883
210@ = 2
211@ = 1
goto @HEIST2_5897

:HEIST2_5883
210@ = 1
211@ = 2

:HEIST2_5897
209@ = 0
212@ = 0

:HEIST2_5911
36@ = 0

:HEIST2_5918
if 
  2 > 36@
goto_if_false @HEIST2_6950
if 
  not is_char_dead 163@(36@,2i)
goto_if_false @HEIST2_6894
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_6157
if or
  is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @HEIST2_6157
if 
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
goto_if_false @HEIST2_6157
if 
  212@ == 0
goto_if_false @HEIST2_6131
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_6092
209@ = 1
goto @HEIST2_6131

:HEIST2_6092
if 
  41@ == 1
goto_if_false @HEIST2_6124
209@ = 8
goto @HEIST2_6131

:HEIST2_6124
209@ = 12

:HEIST2_6131
126@(36@,6i) = 1
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthAlertSight

:HEIST2_6157
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_6379
if and
  not is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  not is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  not is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6379
if 
  212@ == 0
goto_if_false @HEIST2_6354
41@ = generate_random_int_in_range 0 {max} 3
if 
  41@ == 0
goto_if_false @HEIST2_6315
209@ = 6
goto @HEIST2_6354

:HEIST2_6315
if 
  41@ == 1
goto_if_false @HEIST2_6347
209@ = 3
goto @HEIST2_6354

:HEIST2_6347
209@ = 2

:HEIST2_6354
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.Arrest
126@(36@,6i) = 0

:HEIST2_6379
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_6696
if or
  is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6696
if 
  212@ == 0
goto_if_false @HEIST2_6597
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_6526
209@ = 1
goto @HEIST2_6597

:HEIST2_6526
if 
  41@ == 5
goto_if_false @HEIST2_6558
209@ = 8
goto @HEIST2_6597

:HEIST2_6558
if 
  41@ == 2
goto_if_false @HEIST2_6590
209@ = 7
goto @HEIST2_6597

:HEIST2_6590
209@ = 10

:HEIST2_6597
if 
  105@ == 0
goto_if_false @HEIST2_6670
if 
  not is_char_dead 163@
goto_if_false @HEIST2_6639
task_kill_char_on_foot 163@ {target} $scplayer

:HEIST2_6639
if 
  not is_char_dead 164@
goto_if_false @HEIST2_6663
task_kill_char_on_foot 164@ {target} $scplayer

:HEIST2_6663
105@ = 1

:HEIST2_6670
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthAlertGeneric
126@(36@,6i) = 2

:HEIST2_6696
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_6887
if and
  not is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  not is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  not is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6887
if 
  212@ == 0
goto_if_false @HEIST2_6861
41@ = generate_random_int_in_range 0 {max} 2
if 
  41@ == 0
goto_if_false @HEIST2_6854
209@ = 11
goto @HEIST2_6861

:HEIST2_6854
209@ = 9

:HEIST2_6861
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthDefSighting
126@(36@,6i) = 0

:HEIST2_6887
goto @HEIST2_6936

:HEIST2_6894
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_6936
remove_blip 154@(36@,2i)
113@(36@,6i) = 0

:HEIST2_6936
36@ += 1
goto @HEIST2_5918

:HEIST2_6950
if 
  212@ == 0
goto_if_false @HEIST2_7009
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_7002
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_7009

:HEIST2_7002
209@ = 0

:HEIST2_7009
if 
  123@ == 5
goto_if_false @HEIST2_8449
if or
  is_char_playing_anim $scplayer {animationName} "PARA_OPEN"
  is_char_playing_anim $scplayer {animationName} "PARA_FLOAT"
goto_if_false @HEIST2_7073
clear_help 

:HEIST2_7073
if or
  $player_landed == 2
  locate_char_any_means_3d $scplayer {x} -811.07 {y} 1816.08 {z} 7.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST2_8383
set_player_cycle_weapon_button $player1 {enabled} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Unarmed {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
delete_checkpoint 153@
remove_blip 152@
clear_prints 
clear_help 
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:HEIST2_7179
if 
  get_fading_status 
goto_if_false @HEIST2_7203
wait 0
goto @HEIST2_7179

:HEIST2_7203
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST2_7224
task_leave_any_car $scplayer

:HEIST2_7224
mark_model_as_no_longer_needed 371
if 
  locate_char_any_means_3d $scplayer {x} -828.4104 {y} 1945.76 {z} 7.04 {xRadius} 13.1 {yRadius} 19.2998 {zRadius} 4.5 {drawSphere} False
goto_if_false @HEIST2_7307
set_char_coordinates $scplayer {x} -820.3474 {y} 1939.728 {z} 6.0
set_char_heading $scplayer {heading} 295.9757

:HEIST2_7307
switch_widescreen True
task_turn_char_to_face_coord $scplayer {x} -830.94 {y} 1983.23 {z} 9.0
terminate_all_scripts_with_this_name 'PARACH'
$player_landed = 2
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_radar_zoom 90
request_model 335

:HEIST2_7365
if 
  not has_model_loaded 335
goto_if_false @HEIST2_7392
wait 0
goto @HEIST2_7365

:HEIST2_7392
104@ = create_pickup 335 {pickupType} PickupType.Once {x} -819.0 {y} 1929.0 {z} 7.0
156@ = add_blip_for_pickup 104@
change_blip_display 156@ {display} BlipDisplay.BlipOnly
delete_char 163@
mark_char_as_no_longer_needed 163@
delete_char 164@
mark_char_as_no_longer_needed 164@
163@ = create_char PedType.Mission1 {modelId} 71 {x} -826.3729 {y} 1946.988 {z} 6.0692
give_weapon_to_char 163@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 163@ {state} False
set_char_heading 163@ {heading} 0.0
set_sense_range 163@ {range} 10.0
164@ = create_char PedType.Mission1 {modelId} 71 {x} -823.3655 {y} 1956.276 {z} 6.04
give_weapon_to_char 164@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 164@ {state} False
set_char_heading 164@ {heading} 301.2606
set_sense_range 164@ {range} 10.0
set_char_decision_maker 163@ {handleOrTemplate} 38@
set_char_decision_maker 164@ {handleOrTemplate} 38@
flush_patrol_route 
extend_patrol_route -823.3667 {y} 1933.54 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -826.9571 {y} 1947.569 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 163@ {speed} MoveState.Walk {mode} RouteMode.BackForward
flush_patrol_route 
extend_patrol_route -828.9601 {y} 1955.366 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -823.2458 {y} 1957.016 {z} 6.007 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 164@ {speed} MoveState.Walk {mode} RouteMode.BackForward
set_fixed_camera_position -794.19 {y} 1856.16 {z} 8.89 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -833.48 {y} 1914.1801 {z} 3.2 {switchStyle} SwitchType.JumpCut
do_fade 1500 {direction} Fade.In

:HEIST2_7831
if 
  get_fading_status 
goto_if_false @HEIST2_7855
wait 0
goto @HEIST2_7831

:HEIST2_7855
print 'HEI2_52' {time} 6000 {flag} 1
skip_cutscene_start_internal @HEIST2_8175

:HEIST2_7878
if 
  is_message_being_displayed 
goto_if_false @HEIST2_7902
wait 0
goto @HEIST2_7878

:HEIST2_7902
set_fixed_camera_position -821.12 {y} 1953.34 {z} 7.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -842.66 {y} 1973.89 {z} 3.84 {switchStyle} SwitchType.JumpCut
print 'HEI2_52' {time} 6000 {flag} 1

:HEIST2_7969
if 
  is_message_being_displayed 
goto_if_false @HEIST2_7993
wait 0
goto @HEIST2_7969

:HEIST2_7993
set_fixed_camera_position -828.18 {y} 1949.8199 {z} 6.79 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -807.1 {y} 1918.51 {z} 8.91 {switchStyle} SwitchType.JumpCut
print 'HEI2_53' {time} 6000 {flag} 1

:HEIST2_8060
if 
  is_message_being_displayed 
goto_if_false @HEIST2_8084
wait 0
goto @HEIST2_8060

:HEIST2_8084
print 'HEI2_46' {time} 6000 {flag} 1
set_fixed_camera_position -823.48 {y} 1924.8199 {z} 6.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -808.71 {y} 1959.51 {z} 9.43 {switchStyle} SwitchType.JumpCut

:HEIST2_8151
if 
  is_message_being_displayed 
goto_if_false @HEIST2_8175
wait 0
goto @HEIST2_8151

:HEIST2_8175
skip_cutscene_end 
clear_prints 
if 
  not is_char_dead 163@
goto_if_false @HEIST2_8217
154@ = add_blip_for_char 163@
change_blip_display 154@ {display} BlipDisplay.BlipOnly
113@ = 1

:HEIST2_8217
if 
  not is_char_dead 164@
goto_if_false @HEIST2_8255
155@ = add_blip_for_char 164@
change_blip_display 155@ {display} BlipDisplay.BlipOnly
114@ = 1

:HEIST2_8255
switch_widescreen False
print 'HEI2_60' {time} 5000 {flag} 1
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  not is_char_dead 163@
goto_if_false @HEIST2_8321
set_char_relationship 163@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_inform_respected_friends 163@ {radius} 30.0 {_p3} 10

:HEIST2_8321
if 
  not is_char_dead 164@
goto_if_false @HEIST2_8358
set_char_relationship 164@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_inform_respected_friends 164@ {radius} 30.0 {_p3} 10

:HEIST2_8358
print_help 'HEI2_89'
123@ = 7
goto @HEIST2_8449

:HEIST2_8383
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST2_8449
if 
  139@ == 0
goto_if_false @HEIST2_8449
set_player_cycle_weapon_button $player1 {enabled} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Unarmed {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
139@ = 1

:HEIST2_8449
if 
  123@ == 7
goto_if_false @HEIST2_8680
if 
  is_char_in_water $scplayer
goto_if_false @HEIST2_8562
if 
  124@ == 0
goto_if_false @HEIST2_8555
clear_prints 
print 'HEI2_40' {time} 7000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -799.5823 {y} 1813.156 {z} 2.0061
set_radar_zoom 0
124@ = 1

:HEIST2_8555
goto @HEIST2_8614

:HEIST2_8562
if 
  124@ == 1
goto_if_false @HEIST2_8614
remove_blip 152@
124@ = 0
clear_prints 
set_radar_zoom 90
print 'HEI2_60' {time} 5000 {flag} 1

:HEIST2_8614
if 
  has_pickup_been_collected 104@
goto_if_false @HEIST2_8680
clear_prints 
print 'HEI2_34' {time} 7000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -830.94 {y} 1983.23 {z} 9.0
123@ = 8

:HEIST2_8680
if 
  123@ == 8
goto_if_false @HEIST2_9179
if 
  is_char_dead 163@
goto_if_false @HEIST2_8719
remove_blip 154@

:HEIST2_8719
if 
  is_char_dead 164@
goto_if_false @HEIST2_8740
remove_blip 155@

:HEIST2_8740
if 
  is_char_in_water $scplayer
goto_if_false @HEIST2_8835
if 
  124@ == 0
goto_if_false @HEIST2_8828
clear_prints 
remove_blip 152@
print 'HEI2_40' {time} 7000 {flag} 1
152@ = add_blip_for_coord -799.5823 {y} 1813.156 {z} 2.0061
set_radar_zoom 0
124@ = 1

:HEIST2_8828
goto @HEIST2_9179

:HEIST2_8835
if 
  124@ == 1
goto_if_false @HEIST2_8907
124@ = 0
clear_prints 
remove_blip 152@
152@ = add_blip_for_coord -830.94 {y} 1983.23 {z} 9.0
set_radar_zoom 90
print 'HEI2_34' {time} 7000 {flag} 1

:HEIST2_8907
if 
  locate_char_on_foot_3d $scplayer {x} -830.2665 {y} 1982.124 {z} 8.25 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST2_9179
clear_prints 
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST2_8971
if 
  get_fading_status 
goto_if_false @HEIST2_8995
wait 0
goto @HEIST2_8971

:HEIST2_8995
set_char_coordinates $scplayer {x} -942.0 {y} 1847.0 {z} 4.0
set_area_visible 17
load_scene -942.0 {y} 1847.0 {z} 4.0
request_collision -942.0 {y} 1847.0
set_extra_colours 1 {fade} False
clear_prints 
remove_blip 152@
mark_char_as_no_longer_needed 163@
mark_char_as_no_longer_needed 164@
mark_object_as_no_longer_needed 174@
mark_object_as_no_longer_needed 175@
mark_object_as_no_longer_needed 176@
mark_object_as_no_longer_needed 177@
mark_object_as_no_longer_needed 178@
mark_object_as_no_longer_needed 179@
mark_object_as_no_longer_needed 180@
remove_blip 154@
remove_blip 155@
mark_model_as_no_longer_needed #SMASHBOXPILE
mark_model_as_no_longer_needed #K_CARGO1
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #K_CARGO4
mark_model_as_no_longer_needed 335
remove_pickup 104@
remove_blip 156@
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
107@ = 2
123@ = 12

:HEIST2_9179
if 
  123@ > 11
goto_if_false @HEIST2_14790
if 
  107@ == 2
goto_if_false @HEIST2_10102
request_model 363
request_model 50
request_model 346
request_model 330

:HEIST2_9234
if or
  not has_model_loaded 363
  not has_model_loaded 50
  not has_model_loaded 346
  not has_model_loaded 330
goto_if_false @HEIST2_9275
wait 0
goto @HEIST2_9234

:HEIST2_9275
104@ = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -938.3901 {y} 1901.649 {z} 4.3
166@ = create_char PedType.Mission2 {modelId} 71 {x} -960.0 {y} 1927.0 {z} 8.04
set_char_heading 166@ {heading} 81.0
task_use_mobile_phone 166@ {start} True
113@ = 0
114@ = 0
105@ = 0
36@ = 0

:HEIST2_9369
if 
  6 > 36@
goto_if_false @HEIST2_10095
if 
  36@ > 1
goto_if_false @HEIST2_9774
create_char PedType.Mission2 {modelId} 71 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {var_handle} 157@(36@,6i)
set_follow_node_threshold_distance 157@(36@,6i) {range} 1.0
set_sense_range 157@(36@,6i) {range} 10.0
set_char_accuracy 157@(36@,6i) {accuracy} 85
set_inform_respected_friends 157@(36@,6i) {radius} 20.0 {_p3} 1
if or
  36@ == 2
  36@ == 4
goto_if_false @HEIST2_9562
give_weapon_to_char 157@(36@,6i) {weaponType} WeaponType.NightStick {ammo} 3000
set_char_shoot_rate 157@(36@,6i) {rate} 70
set_char_weapon_skill 157@(36@,6i) {skill} WeaponSkill.Pro
goto @HEIST2_9598

:HEIST2_9562
give_weapon_to_char 157@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 3000
set_char_shoot_rate 157@(36@,6i) {rate} 60
set_char_weapon_skill 157@(36@,6i) {skill} WeaponSkill.Std

:HEIST2_9598
set_char_drops_weapons_when_dead 157@(36@,6i) {state} False
set_char_heading 157@(36@,6i) {heading} 65@(36@,6f)
add_blip_for_char 157@(36@,6i) {var_handle} 146@(36@,6i)
change_blip_display 146@(36@,6i) {display} BlipDisplay.BlipOnly
113@(36@,6i) = 1
126@(36@,6i) = 0
flush_patrol_route 
extend_patrol_route 71@(36@,6f) {y} 77@(36@,6f) {z} 83@(36@,6f) {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 157@(36@,6i) {speed} MoveState.Walk {mode} RouteMode.BackForward
goto @HEIST2_10081

:HEIST2_9774
create_char PedType.Mission2 {modelId} 50 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {var_handle} 157@(36@,6i)
set_follow_node_threshold_distance 157@(36@,6i) {range} 1.0
set_sense_range 157@(36@,6i) {range} 10.0
set_char_accuracy 157@(36@,6i) {accuracy} 85
set_inform_respected_friends 157@(36@,6i) {radius} 20.0 {_p3} 1
set_char_heading 157@(36@,6i) {heading} 65@(36@,6f)
if 
  36@ == 0
goto_if_false @HEIST2_9908
task_duck 157@(36@,6i) {time} -2

:HEIST2_9908
add_blip_for_char 157@(36@,6i) {var_handle} 146@(36@,6i)
change_blip_display 146@(36@,6i) {display} BlipDisplay.BlipOnly
113@(36@,6i) = 1
126@(36@,6i) = 0
184@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 65@(36@,6f)
task_duck -1 {time} 5000
task_scratch_head -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_use_atm -1
task_scratch_head -1
set_sequence_to_repeat 184@ {state} True
close_sequence_task 184@
perform_sequence_task 157@(36@,6i) {sequence} 184@
clear_sequence_task 184@

:HEIST2_10081
36@ += 1
goto @HEIST2_9369

:HEIST2_10095
107@ = 3

:HEIST2_10102
if 
  107@ == 3
goto_if_false @HEIST2_11549
120@ = 1
if or
  locate_char_on_foot_3d $scplayer {x} -942.0 {y} 1847.0 {z} 5.0 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} -960.0 {y} 1952.0 {z} 9.0 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST2_11549
set_fixed_camera_position -940.3428 {y} 1845.949 {z} 5.4312 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -940.8073 {y} 1846.819 {z} 5.5962 {switchStyle} SwitchType.JumpCut
switch_widescreen True
clear_prints 
clear_help 
do_fade 1500 {direction} Fade.In

:HEIST2_10278
if 
  get_fading_status 
goto_if_false @HEIST2_10302
wait 0
goto @HEIST2_10278

:HEIST2_10302
print 'HEI2_20' {time} 6000 {flag} 1
skip_cutscene_start_internal @HEIST2_11265

:HEIST2_10325
if 
  is_message_being_displayed 
goto_if_false @HEIST2_10349
wait 0
goto @HEIST2_10325

:HEIST2_10349
set_fixed_camera_position -959.851 {y} 1925.822 {z} 8.6787 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -959.1008 {y} 1925.218 {z} 8.9476 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 162@
goto_if_false @HEIST2_10423
freeze_char_position 162@ {state} True

:HEIST2_10423
print 'HEI2_2' {time} 6000 {flag} 1

:HEIST2_10439
if 
  is_message_being_displayed 
goto_if_false @HEIST2_10463
wait 0
goto @HEIST2_10439

:HEIST2_10463
set_fixed_camera_position -960.33 {y} 1925.24 {z} 9.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -938.79 {y} 1959.11 {z} 15.19 {switchStyle} SwitchType.JumpCut
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0

:HEIST2_10584
wait 0
if 
  213@ == 0
goto_if_false @HEIST2_11265
if 
  209@ <> 0
goto_if_false @HEIST2_10945
if 
  212@ == 0
goto_if_false @HEIST2_10670
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_10663
clear_mission_audio 211@

:HEIST2_10663
212@ = 1

:HEIST2_10670
if 
  212@ == 1
goto_if_false @HEIST2_10707
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_10707
if 
  212@ == 2
goto_if_false @HEIST2_10767
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_10767
play_mission_audio 210@
print_now $hei2_height(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_10767
if 
  212@ == 3
goto_if_false @HEIST2_10945
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_10884
clear_this_print $hei2_height(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_10849
210@ = 2
211@ = 1
goto @HEIST2_10863

:HEIST2_10849
210@ = 1
211@ = 2

:HEIST2_10863
209@ = 0
212@ = 0
goto @HEIST2_10945

:HEIST2_10884
if 
  not has_mission_audio_loaded 211@
goto_if_false @HEIST2_10945
if 
  8 > 209@
goto_if_false @HEIST2_10945
set_lvar_int_to_lvar_int 218@ = 209@
218@ += 1
load_mission_audio 211@ {audioId} 191@(218@,18i)

:HEIST2_10945
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_11186 {caseNum1} 0 {caseLabel1} @HEIST2_11008 {caseNum2} 1 {caseLabel2} @HEIST2_11081 {caseNum3} -1 {caseLabel3} @HEIST2_11258 {caseNum4} -1 {caseLabel4} @HEIST2_11258 {caseNum5} -1 {caseLabel5} @HEIST2_11258 {caseNum6} -1 {caseLabel6} @HEIST2_11258 {caseNum7} -1 {caseLabel7} @HEIST2_11258

:HEIST2_11008
if 
  212@ == 0
goto_if_false @HEIST2_11074
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11055
stop_char_facial_talk 166@
start_char_facial_talk 166@ {duration} 4000

:HEIST2_11055
209@ = 12
214@ = 1
217@ = get_game_timer 

:HEIST2_11074
goto @HEIST2_11258

:HEIST2_11081
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11179
if 
  212@ == 0
goto_if_false @HEIST2_11179
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11160
stop_char_facial_talk 166@

:HEIST2_11160
209@ = 13
214@ = 2
217@ = get_game_timer 

:HEIST2_11179
goto @HEIST2_11258

:HEIST2_11186
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11251
if 
  212@ == 0
goto_if_false @HEIST2_11251
213@ = 1

:HEIST2_11251
goto @HEIST2_11258

:HEIST2_11258
goto @HEIST2_10584

:HEIST2_11265
skip_cutscene_end 
if 
  not is_char_dead 162@
goto_if_false @HEIST2_11290
freeze_char_position 162@ {state} False

:HEIST2_11290
clear_prints 
print 'HEI2_2' {time} 4000 {flag} 1
restore_camera_jumpcut 
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11367
39@ = get_script_task_status 166@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_11362
task_use_mobile_phone 166@ {start} False

:HEIST2_11362
mark_model_as_no_longer_needed 330

:HEIST2_11367
delete_char 166@
mark_char_as_no_longer_needed 166@
set_radar_zoom 90
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
37@ = 0

:HEIST2_11401
if 
  6 > 37@
goto_if_false @HEIST2_11542
if 
  5 > 37@
goto_if_false @HEIST2_11467
add_blip_for_coord 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 140@(37@,5i)

:HEIST2_11467
if 
  not is_char_dead 157@(37@,6i)
goto_if_false @HEIST2_11528
set_char_relationship 157@(37@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 157@(37@,6i) {handleOrTemplate} 38@
set_inform_respected_friends 157@(37@,6i) {radius} 40.0 {_p3} 10

:HEIST2_11528
37@ += 1
goto @HEIST2_11401

:HEIST2_11542
107@ = 4

:HEIST2_11549
if 
  6 > 107@
goto_if_false @HEIST2_11693
if 
  120@ == 1
goto_if_false @HEIST2_11686
36@ = 0

:HEIST2_11592
if 
  6 > 36@
goto_if_false @HEIST2_11686
if 
  is_char_dead 157@(36@,6i)
goto_if_false @HEIST2_11672
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11672
remove_blip 146@(36@,6i)
113@(36@,6i) = 0

:HEIST2_11672
36@ += 1
goto @HEIST2_11592

:HEIST2_11686
goto @HEIST2_11792

:HEIST2_11693
if 
  107@ == 6
goto_if_false @HEIST2_11792
36@ = 0

:HEIST2_11718
if 
  6 > 36@
goto_if_false @HEIST2_11792
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11778
remove_blip 146@(36@,6i)
113@(36@,6i) = 0

:HEIST2_11778
36@ += 1
goto @HEIST2_11718

:HEIST2_11792
if and
  107@ > 2
  185@ == 0
goto_if_false @HEIST2_13314
if 
  not is_car_dead 168@
goto_if_false @HEIST2_11864
if 
  not is_car_on_screen 168@
goto_if_false @HEIST2_11864
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
delete_car 168@

:HEIST2_11864
if 
  209@ <> 0
goto_if_false @HEIST2_12135
if 
  212@ == 0
goto_if_false @HEIST2_11928
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_11921
clear_mission_audio 211@

:HEIST2_11921
212@ = 1

:HEIST2_11928
if 
  212@ == 1
goto_if_false @HEIST2_11965
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_11965
if 
  212@ == 2
goto_if_false @HEIST2_12025
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_12025
play_mission_audio 210@
print_now $hei2_height(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_12025
if 
  212@ == 3
goto_if_false @HEIST2_12135
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_12135
clear_this_print $hei2_height(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_12107
210@ = 2
211@ = 1
goto @HEIST2_12121

:HEIST2_12107
210@ = 1
211@ = 2

:HEIST2_12121
209@ = 0
212@ = 0

:HEIST2_12135
36@ = 0

:HEIST2_12142
if 
  6 > 36@
goto_if_false @HEIST2_13187
if 
  not is_char_dead 157@(36@,6i)
goto_if_false @HEIST2_13173
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_12405
if or
  is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @HEIST2_12405
if 
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
goto_if_false @HEIST2_12405
if 
  212@ == 0
goto_if_false @HEIST2_12373
if 
  36@ > 1
goto_if_false @HEIST2_12373
41@ = generate_random_int_in_range 0 {max} 3
if 
  41@ == 0
goto_if_false @HEIST2_12334
209@ = 6
goto @HEIST2_12373

:HEIST2_12334
if 
  41@ == 1
goto_if_false @HEIST2_12366
209@ = 3
goto @HEIST2_12373

:HEIST2_12366
209@ = 2

:HEIST2_12373
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthAlertSight {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 1

:HEIST2_12405
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_12619
if and
  not is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  not is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  not is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_12619
if 
  212@ == 0
goto_if_false @HEIST2_12588
if 
  36@ > 1
goto_if_false @HEIST2_12588
41@ = generate_random_int_in_range 0 {max} 2
if 
  41@ == 0
goto_if_false @HEIST2_12581
209@ = 11
goto @HEIST2_12588

:HEIST2_12581
209@ = 9

:HEIST2_12588
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.Arrest {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 0

:HEIST2_12619
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_12894
if or
  is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_12894
if 
  212@ == 0
goto_if_false @HEIST2_12855
if 
  36@ > 1
goto_if_false @HEIST2_12855
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_12784
209@ = 1
goto @HEIST2_12855

:HEIST2_12784
if 
  41@ == 1
goto_if_false @HEIST2_12816
209@ = 8
goto @HEIST2_12855

:HEIST2_12816
if 
  41@ == 2
goto_if_false @HEIST2_12848
209@ = 4
goto @HEIST2_12855

:HEIST2_12848
209@ = 12

:HEIST2_12855
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthAlertGeneric {overrideSilence} True {ignoreMute} False {frontEnd} False
105@ = 1
126@(36@,6i) = 2

:HEIST2_12894
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_13173
if and
  not is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  not is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  not is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_13173
if 
  212@ == 0
goto_if_false @HEIST2_13141
if 
  36@ > 1
goto_if_false @HEIST2_13141
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_13070
209@ = 1
goto @HEIST2_13141

:HEIST2_13070
if 
  41@ == 5
goto_if_false @HEIST2_13102
209@ = 8
goto @HEIST2_13141

:HEIST2_13102
if 
  41@ == 2
goto_if_false @HEIST2_13134
209@ = 7
goto @HEIST2_13141

:HEIST2_13134
209@ = 10

:HEIST2_13141
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthDefSighting {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 0

:HEIST2_13173
36@ += 1
goto @HEIST2_12142

:HEIST2_13187
if 
  133@ == 0
goto_if_false @HEIST2_13255
if 
  105@ == 1
goto_if_false @HEIST2_13255
if 
  212@ == 0
goto_if_false @HEIST2_13255
133@ = 1
209@ = 4

:HEIST2_13255
if 
  212@ == 0
goto_if_false @HEIST2_13314
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_13307
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_13314

:HEIST2_13307
209@ = 0

:HEIST2_13314
if 
  107@ == 4
goto_if_false @HEIST2_14433
if 
  5 > 34@
goto_if_false @HEIST2_14370
122@ = 0
37@ = 0

:HEIST2_13364
if 
  5 > 37@
goto_if_false @HEIST2_14343
if 
  108@(37@,5i) == 0
goto_if_false @HEIST2_14329
if 
  locate_char_on_foot_3d $scplayer {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST2_14329
122@ = 1
if 
  121@ == 0
goto_if_false @HEIST2_13501
121@ = 1
print_help 'HEI2_6'

:HEIST2_13501
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST2_14329
clear_help 
121@ = 0
34@ += 1
remove_blip 140@(37@,5i)
if 
  is_char_ducking $scplayer
goto_if_false @HEIST2_13573
134@ = 1
goto @HEIST2_13580

:HEIST2_13573
134@ = 0

:HEIST2_13580
set_player_control $player1 {state} False
182@ = open_sequence_task 
if 
  134@ == 0
goto_if_false @HEIST2_13683
task_turn_char_to_face_coord -1 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f)
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @HEIST2_13731

:HEIST2_13683
task_play_anim -1 {animationName} "BOM_PLANT_CROUCH_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST2_13731
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  134@ == 1
goto_if_false @HEIST2_13897
task_play_anim -1 {animationName} "BOM_PLANT_CROUCH_OUT" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_toggle_duck -1 {state} True
goto @HEIST2_13941

:HEIST2_13897
task_play_anim -1 {animationName} "BOM_PLANT_2IDLE" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST2_13941
close_sequence_task 182@
perform_sequence_task $scplayer {sequence} 182@
clear_sequence_task 182@
TIMERA = 0
106@ = 0

:HEIST2_13973
if 
  106@ == 0
goto_if_false @HEIST2_14295
if 
  134@ == 0
goto_if_false @HEIST2_14152
if or
  is_char_playing_anim $scplayer {animationName} "BOM_PLANT_2IDLE"
  TIMERA > 6000
goto_if_false @HEIST2_14145
get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {var_x} 89@(37@,5f) {var_y} 94@(37@,5f) {var_z} 99@(37@,5f)
create_object 363 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 169@(37@,5i)
set_object_heading 169@(37@,5i) {heading} 100.0
106@ = 1

:HEIST2_14145
goto @HEIST2_14284

:HEIST2_14152
39@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 6000
goto_if_false @HEIST2_14284
get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {var_x} 89@(37@,5f) {var_y} 94@(37@,5f) {var_z} 99@(37@,5f)
create_object 363 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 169@(37@,5i)
set_object_heading 169@(37@,5i) {heading} 100.0
106@ = 1

:HEIST2_14284
wait 0
goto @HEIST2_13973

:HEIST2_14295
print_now 'HEI2_58' {time} 4000 {flag} 1
set_player_control $player1 {state} True
108@(37@,5i) = 1

:HEIST2_14329
37@ += 1
goto @HEIST2_13364

:HEIST2_14343
if 
  122@ == 0
goto_if_false @HEIST2_14370
clear_help 
121@ = 0

:HEIST2_14370
if 
  34@ == 5
goto_if_false @HEIST2_14433
clear_prints 
145@ = add_blip_for_coord -959.5947 {y} 1953.1219 {z} 8.0078
print 'HEI2_5' {time} 10000 {flag} 1
107@ = 5

:HEIST2_14433
if 
  107@ == 5
goto_if_false @HEIST2_14790
if 
  locate_char_on_foot_3d $scplayer {x} -959.5947 {y} 1953.1219 {z} 8.0078 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} 35@
goto_if_false @HEIST2_14783
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1500 {direction} Fade.Out

:HEIST2_14518
if 
  get_fading_status 
goto_if_false @HEIST2_14542
wait 0
goto @HEIST2_14518

:HEIST2_14542
185@ = 1
35@ = 0
remove_blip 145@
remove_pickup 104@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
delete_object 169@
delete_object 170@
delete_object 171@
delete_object 172@
delete_object 173@
delete_char 157@
delete_char 158@
delete_char 159@
delete_char 160@
delete_char 161@
delete_char 162@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 171@
mark_object_as_no_longer_needed 172@
mark_object_as_no_longer_needed 173@
mark_char_as_no_longer_needed 157@
mark_char_as_no_longer_needed 158@
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 160@
mark_char_as_no_longer_needed 161@
mark_char_as_no_longer_needed 162@
mark_model_as_no_longer_needed 363
request_model 453

:HEIST2_14700
if 
  not has_model_loaded 453
goto_if_false @HEIST2_14727
wait 0
goto @HEIST2_14700

:HEIST2_14727
167@ = create_car 453 {x} -638.0 {y} 1955.0 {z} 1.0
set_car_heading 167@ {heading} 180.0
gosub @HEIST2_14797
clear_prints 
goto @HEIST2_18797
goto @HEIST2_14790

:HEIST2_14783
35@ = 1

:HEIST2_14790
goto @HEIST2_1813

:HEIST2_14797
if 
  119@ == 0
goto_if_false @HEIST2_18777
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST2_14853
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute

:HEIST2_14853
request_animation "DAM_JUMP"
request_animation "BD_FIRE"
request_animation "BOMBER"
request_model 427
request_model 599
set_area_visible 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True

:HEIST2_14914
if or
  not has_animation_loaded "DAM_JUMP"
  not has_animation_loaded "BD_FIRE"
  not has_animation_loaded "BOMBER"
  not has_model_loaded 599
  not has_model_loaded 427
goto_if_false @HEIST2_14979
wait 0
goto @HEIST2_14914

:HEIST2_14979
clear_extra_colours False
set_char_coordinates $scplayer {x} -596.3235 {y} 2015.608 {z} 75.9845
set_char_heading $scplayer {heading} 330.0
load_scene -594.9886 {y} 2018.639 {z} 76.8829
request_collision -594.9886 {y} 2018.639
set_fixed_camera_position -595.73 {y} 2001.92 {z} 78.66 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -601.02 {y} 2033.63 {z} 73.91 {switchStyle} SwitchType.JumpCut
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area -683.0 {y} 2053.0 {z} 59.1719 {radius} 50.0 {clearParticles} True
clear_area -488.0 {y} 2001.0 {z} 59.4028 {radius} 50.0 {clearParticles} True
225@ = create_car 599 {x} -683.0 {y} 2053.0 {z} 59.1719
set_car_heading 225@ {heading} 268.7848
set_car_can_go_against_traffic 225@ {state} True
switch_car_siren 225@ {state} True
226@ = create_car 599 {x} -486.0 {y} 2006.0 {z} 59.4028
set_car_heading 226@ {heading} 130.7071
set_car_can_go_against_traffic 226@ {state} True
switch_car_siren 226@ {state} True
227@ = create_car 427 {x} -694.0 {y} 2055.0 {z} 59.1719
set_car_heading 227@ {heading} 268.7848
set_car_can_go_against_traffic 227@ {state} True
switch_car_siren 227@ {state} True
228@ = create_car 427 {x} -491.0 {y} 1997.0 {z} 59.4028
set_car_heading 228@ {heading} 126.7071
set_car_can_go_against_traffic 228@ {state} True
switch_car_siren 228@ {state} True
alter_wanted_level_no_drop $player1 {wantedLevel} 2
do_fade 1500 {direction} Fade.In

:HEIST2_15357
if 
  get_fading_status 
goto_if_false @HEIST2_15381
wait 0
goto @HEIST2_15357

:HEIST2_15381
TIMERB = 0
clear_char_tasks $scplayer
skip_cutscene_start_internal @HEIST2_18567
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
222@ = 0
224@ = 0
223@ = 0

:HEIST2_15491
wait 0
if 
  209@ <> 0
goto_if_false @HEIST2_15766
if 
  212@ == 0
goto_if_false @HEIST2_15559
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_15552
clear_mission_audio 211@

:HEIST2_15552
212@ = 1

:HEIST2_15559
if 
  212@ == 1
goto_if_false @HEIST2_15596
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_15596
if 
  212@ == 2
goto_if_false @HEIST2_15656
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_15656
play_mission_audio 210@
print_now $hei2_height(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_15656
if 
  212@ == 3
goto_if_false @HEIST2_15766
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_15766
clear_this_print $hei2_height(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_15738
210@ = 2
211@ = 1
goto @HEIST2_15752

:HEIST2_15738
210@ = 1
211@ = 2

:HEIST2_15752
209@ = 0
212@ = 0

:HEIST2_15766
if 
  222@ <> 0
goto_if_false @HEIST2_15955
if 
  223@ == 0
goto_if_false @HEIST2_15828
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST2_15821
clear_mission_audio MissionAudioSlot.Slot3

:HEIST2_15821
223@ = 1

:HEIST2_15828
if 
  223@ == 1
goto_if_false @HEIST2_15864
load_mission_audio MissionAudioSlot.Slot3 {audioId} 220@(222@,2i)
223@ = 2

:HEIST2_15864
if 
  223@ == 2
goto_if_false @HEIST2_15908
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST2_15908
play_mission_audio MissionAudioSlot.Slot3
223@ = 3

:HEIST2_15908
if 
  223@ == 3
goto_if_false @HEIST2_15955
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST2_15955
222@ = 0
223@ = 0

:HEIST2_15955
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_16459 {caseNum1} 0 {caseLabel1} @HEIST2_16018 {caseNum2} 1 {caseLabel2} @HEIST2_16080 {caseNum3} -1 {caseLabel3} @HEIST2_16544 {caseNum4} -1 {caseLabel4} @HEIST2_16544 {caseNum5} -1 {caseLabel5} @HEIST2_16544 {caseNum6} -1 {caseLabel6} @HEIST2_16544 {caseNum7} -1 {caseLabel7} @HEIST2_16544

:HEIST2_16018
if 
  212@ == 0
goto_if_false @HEIST2_16073
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
209@ = 16
task_scratch_head $scplayer
214@ = 1
217@ = get_game_timer 

:HEIST2_16073
goto @HEIST2_16544

:HEIST2_16080
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 2000
goto_if_false @HEIST2_16452
if 
  212@ == 0
goto_if_false @HEIST2_16452
if 
  224@ == 1
goto_if_false @HEIST2_16420
if 
  223@ == 0
goto_if_false @HEIST2_16413
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
209@ = 14
214@ = 2
217@ = get_game_timer 
set_fixed_camera_position -596.53 {y} 2013.11 {z} 76.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -598.08 {y} 2045.39 {z} 79.93 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
183@ = open_sequence_task 
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_2IDLE" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@

:HEIST2_16413
goto @HEIST2_16452

:HEIST2_16420
if 
  224@ == 0
goto_if_false @HEIST2_16452
222@ = 1
224@ = 1

:HEIST2_16452
goto @HEIST2_16544

:HEIST2_16459
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_16537
if 
  212@ == 0
goto_if_false @HEIST2_16537
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
213@ = 1

:HEIST2_16537
goto @HEIST2_16544

:HEIST2_16544
if 
  213@ == 0
goto_if_false @HEIST2_16569
goto @HEIST2_15491

:HEIST2_16569
106@ = 0
TIMERA = 0

:HEIST2_16583
if 
  106@ == 0
goto_if_false @HEIST2_16648
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_16637
106@ = 1

:HEIST2_16637
wait 0
goto @HEIST2_16583

:HEIST2_16648
clear_char_tasks $scplayer
clear_look_at $scplayer
183@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -598.5344 {y} 2017.53 {z} 75.9845 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 70.0
task_play_anim_non_interruptable -1 {animationName} "BD_PANIC_02" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@
209@ = 17
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
106@ = 0
TIMERA = 0

:HEIST2_16838
if 
  106@ == 0
goto_if_false @HEIST2_17388
if 
  209@ <> 0
goto_if_false @HEIST2_17127
if 
  212@ == 0
goto_if_false @HEIST2_16920
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_16913
clear_mission_audio 211@

:HEIST2_16913
212@ = 1

:HEIST2_16920
if 
  212@ == 1
goto_if_false @HEIST2_16957
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_16957
if 
  212@ == 2
goto_if_false @HEIST2_17017
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_17017
play_mission_audio 210@
print_now $hei2_height(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_17017
if 
  212@ == 3
goto_if_false @HEIST2_17127
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_17127
clear_this_print $hei2_height(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_17099
210@ = 2
211@ = 1
goto @HEIST2_17113

:HEIST2_17099
210@ = 1
211@ = 2

:HEIST2_17113
209@ = 0
212@ = 0

:HEIST2_17127
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17170
106@ = 1
goto @HEIST2_17377

:HEIST2_17170
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17377
39@ = get_sequence_progress $scplayer
if 
  39@ == 1
goto_if_false @HEIST2_17377
if 
  not is_car_dead 225@
goto_if_false @HEIST2_17270
set_car_forward_speed 225@ {forwardSpeed} 20.0
set_car_cruise_speed 225@ {maxSpeed} 40.0
car_goto_coordinates 225@ {x} -591.4136 {y} 2024.863 {z} 59.1719

:HEIST2_17270
if 
  not is_car_dead 227@
goto_if_false @HEIST2_17326
set_car_forward_speed 227@ {forwardSpeed} 20.0
set_car_cruise_speed 227@ {maxSpeed} 40.0
car_goto_coordinates 227@ {x} -591.4136 {y} 2024.863 {z} 59.1719

:HEIST2_17326
set_fixed_camera_position -597.14 {y} 2017.04 {z} 78.03 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -637.05 {y} 2036.76 {z} 64.61 {switchStyle} SwitchType.JumpCut

:HEIST2_17377
wait 0
goto @HEIST2_16838

:HEIST2_17388
set_char_coordinates $scplayer {x} -598.5344 {y} 2017.53 {z} 75.9845
set_char_heading $scplayer {heading} 70.0
set_fixed_camera_position -601.69 {y} 2017.41 {z} 78.85 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -576.19 {y} 2014.02 {z} 68.86 {switchStyle} SwitchType.JumpCut
183@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BD_PANIC_04" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_to_coord_any_means -1 {x} -596.3235 {y} 2015.608 {z} 75.9845 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 148.5634
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@
106@ = 0
TIMERA = 0

:HEIST2_17579
if 
  106@ == 0
goto_if_false @HEIST2_17807
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17640
106@ = 1
goto @HEIST2_17796

:HEIST2_17640
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17796
39@ = get_sequence_progress $scplayer
if 
  39@ == 0
goto_if_false @HEIST2_17796
if 
  not is_car_dead 226@
goto_if_false @HEIST2_17740
set_car_forward_speed 226@ {forwardSpeed} 20.0
set_car_cruise_speed 226@ {maxSpeed} 40.0
car_goto_coordinates 226@ {x} -587.4136 {y} 2036.863 {z} 59.1719

:HEIST2_17740
if 
  not is_car_dead 228@
goto_if_false @HEIST2_17796
set_car_forward_speed 228@ {forwardSpeed} 20.0
set_car_cruise_speed 228@ {maxSpeed} 40.0
car_goto_coordinates 228@ {x} -587.4136 {y} 2036.863 {z} 59.1719

:HEIST2_17796
wait 0
goto @HEIST2_17579

:HEIST2_17807
set_fixed_camera_position -596.51 {y} 2000.5 {z} 79.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -600.79 {y} 2009.02 {z} 75.31 {switchStyle} SwitchType.JumpCut
clear_look_at $scplayer
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} -596.3235 {y} 2015.608 {z} 75.9845
set_char_heading $scplayer {heading} 148.5634
task_play_anim_non_interruptable $scplayer {animationName} "DAM_LAUNCH" {animationFile} "DAM_JUMP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
106@ = 0

:HEIST2_17947
if 
  106@ == 0
goto_if_false @HEIST2_18037
39@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18026
set_char_coordinates $scplayer {x} -613.74 {y} 1980.77 {z} 52.13
wait 200
106@ = 1

:HEIST2_18026
wait 0
goto @HEIST2_17947

:HEIST2_18037
set_fixed_camera_position -607.52 {y} 1963.5 {z} 41.26 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
delete_car 225@
delete_car 226@
delete_car 227@
delete_car 228@
task_play_anim_non_interruptable $scplayer {animationName} "DAM_DIVE_LOOP" {animationFile} "DAM_JUMP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
106@ = 0

:HEIST2_18150
if 
  106@ == 0
goto_if_false @HEIST2_18234
if 
  locate_char_any_means_3d $scplayer {x} -613.74 {y} 1980.77 {z} 10.824 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @HEIST2_18223
106@ = 1

:HEIST2_18223
wait 0
goto @HEIST2_18150

:HEIST2_18234
set_fixed_camera_position -620.95 {y} 1970.46 {z} 4.58 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -610.92 {y} 1984.83 {z} -2.79 {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $scplayer {animationName} "DAM_LAND" {animationFile} "DAM_JUMP" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
106@ = 0
125@ = 0

:HEIST2_18339
if 
  106@ == 0
goto_if_false @HEIST2_18567
39@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18400
106@ = 1
goto @HEIST2_18556

:HEIST2_18400
if 
  125@ == 0
goto_if_false @HEIST2_18556
if 
  is_char_playing_anim $scplayer {animationName} "DAM_LAND"
goto_if_false @HEIST2_18556
46@ = get_char_anim_current_time $scplayer {animationName} "DAM_LAND"
if 
  46@ > 0.115
goto_if_false @HEIST2_18556
40@ = create_fx_system "WATER_SPLASH" {x} -613.74 {y} 1980.77 {z} -0.8 {ignoreBoundingChecks} True
if 
  40@ == -1
goto_if_false @HEIST2_18544
goto @HEIST2_18556

:HEIST2_18544
play_and_kill_fx_system 40@
125@ = 1

:HEIST2_18556
wait 0
goto @HEIST2_18339

:HEIST2_18567
skip_cutscene_end 
clear_mission_audio 210@
clear_mission_audio 211@
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST2_18588
if 
  get_fading_status 
goto_if_false @HEIST2_18612
wait 0
goto @HEIST2_18588

:HEIST2_18612
set_char_coordinates_no_offset $scplayer {x} -613.74 {y} 1980.77 {z} -0.5
set_char_heading $scplayer {heading} 148.5634
remove_animation "DAM_JUMP"
remove_animation "BOMBER"
remove_animation "BD_FIRE"
mark_car_as_no_longer_needed 225@
mark_car_as_no_longer_needed 226@
mark_car_as_no_longer_needed 227@
mark_car_as_no_longer_needed 228@
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 427
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
restore_camera_jumpcut 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
do_fade 1500 {direction} Fade.In

:HEIST2_18739
if 
  get_fading_status 
goto_if_false @HEIST2_18763
wait 0
goto @HEIST2_18739

:HEIST2_18763
set_player_control $player1 {state} True
119@ = 1

:HEIST2_18777
return 

:HEIST2_18779
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST2_18797
$flag_heist_mission_counter += 1
register_mission_passed 'HEIST_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
return 

:HEIST2_18847
$para_pickup_flag = 1
$timer_mobile_start = get_game_timer 
display_radar True
release_weather 
set_radar_zoom 0
switch_entry_exit 'DAMIN' {state} True
switch_entry_exit 'DAMOUT' {state} True
remove_car_recording 805
if 
  135@ == 1
goto_if_false @HEIST2_18941
if 
  is_player_playing $player1
goto_if_false @HEIST2_18941
set_player_cycle_weapon_button $player1 {enabled} True

:HEIST2_18941
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_area51_sam_site True
remove_blip 140@
remove_blip 141@
remove_blip 142@
remove_blip 143@
remove_blip 144@
remove_blip 154@
remove_blip 155@
remove_blip 145@
remove_blip 152@
remove_blip 156@
36@ = 0

:HEIST2_19016
if 
  6 > 36@
goto_if_false @HEIST2_19057
remove_blip 146@(36@,6i)
36@ += 1
goto @HEIST2_19016

:HEIST2_19057
delete_checkpoint 153@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 171@
mark_object_as_no_longer_needed 172@
mark_object_as_no_longer_needed 173@
mark_object_as_no_longer_needed 174@
mark_object_as_no_longer_needed 175@
mark_object_as_no_longer_needed 176@
mark_object_as_no_longer_needed 177@
mark_object_as_no_longer_needed 178@
mark_object_as_no_longer_needed 179@
mark_object_as_no_longer_needed 180@
mark_char_as_no_longer_needed 163@
mark_char_as_no_longer_needed 164@
mark_char_as_no_longer_needed 157@
mark_char_as_no_longer_needed 158@
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 160@
mark_char_as_no_longer_needed 161@
mark_char_as_no_longer_needed 162@
mark_char_as_no_longer_needed 165@
mark_char_as_no_longer_needed 165@
mark_car_as_no_longer_needed 167@
mark_car_as_no_longer_needed 225@
mark_car_as_no_longer_needed 226@
mark_car_as_no_longer_needed 227@
mark_car_as_no_longer_needed 228@
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed #SMASHBOXPILE
mark_model_as_no_longer_needed #K_CARGO1
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #K_CARGO4
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 334
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed 335
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
mark_model_as_no_longer_needed #SW_BIT_09
remove_pickup 104@
remove_animation "BOMBER"
remove_animation "DAM_JUMP"
remove_animation "BD_FIRE"
remove_decision_maker 38@
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 99---------------
// Originally: Cop Wheels

:HEIST4
script_name 'HEIST4'
gosub @HEIST4_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST4_38
gosub @HEIST4_13141

:HEIST4_38
gosub @HEIST4_13214
terminate_this_script 

:HEIST4_47
$onmission = 1
register_mission_given 
load_mission_text 'HEIST4'
wait 0
set_area_visible 10
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2033.974 {y} 1017.29 {z} 9.8203
set_char_heading $scplayer {heading} 288.0
34@ = get_player_group $player1
set_player_group_recruitment $player1 {state} False
set_group_follow_status 34@ {state} False
set_player_group_to_follow_never $player1 {state} True
load_cutscene 'HEIST5A'

:HEIST4_165
if 
  not has_cutscene_loaded 
goto_if_false @HEIST4_189
wait 0
goto @HEIST4_165

:HEIST4_189
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST4_198
if 
  not has_cutscene_finished 
goto_if_false @HEIST4_222
wait 0
goto @HEIST4_198

:HEIST4_222
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST4_235
if 
  get_fading_status 
goto_if_false @HEIST4_259
wait 0
goto @HEIST4_235

:HEIST4_259
clear_cutscene 
switch_cops_on_bikes False
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
set_area_visible 0
wait 0
set_player_control $player1 {state} False
104@ = 0
194@ = 1
195@ = 2
196@ = 0
197@ = 1
198@ = 0
199@ = 0
set_lvar_text_label 139@s = 'HE4_AA'
set_lvar_text_label 141@s = 'HE4_AB'
set_lvar_text_label 143@s = 'HE4_AC'
set_lvar_text_label 145@s = 'HE4_BA'
set_lvar_text_label 147@s = 'HE4_BB'
set_lvar_text_label 149@s = 'HE4_BC'
set_lvar_text_label 151@s = 'HE4_BD'
set_lvar_text_label 153@s = 'HE4_BE'
set_lvar_text_label 155@s = 'HE4_BF'
set_lvar_text_label 157@s = 'HE4_BG'
set_lvar_text_label 159@s = 'HE4_BH'
set_lvar_text_label 161@s = 'HE4_BJ'
set_lvar_text_label 163@s = 'HE4_BK'
set_lvar_text_label 165@s = 'HE4_BL'
set_lvar_text_label 167@s = 'HE4_BM'
set_lvar_text_label 169@s = 'HE4_CA'
set_lvar_text_label 171@s = 'HE4_CB'
set_lvar_int_to_constant 176@ = 18800
set_lvar_int_to_constant 177@ = 18801
set_lvar_int_to_constant 178@ = 18802
set_lvar_int_to_constant 179@ = 18809
set_lvar_int_to_constant 180@ = 18810
set_lvar_int_to_constant 181@ = 18811
set_lvar_int_to_constant 182@ = 18812
set_lvar_int_to_constant 183@ = 18813
set_lvar_int_to_constant 184@ = 18814
set_lvar_int_to_constant 185@ = 18803
set_lvar_int_to_constant 186@ = 18804
set_lvar_int_to_constant 187@ = 18805
set_lvar_int_to_constant 188@ = 18806
set_lvar_int_to_constant 189@ = 18807
set_lvar_int_to_constant 190@ = 18808
set_lvar_int_to_constant 191@ = 18815
set_lvar_int_to_constant 192@ = 18816
request_model 443
request_model 523
request_model 284
request_model 346
request_model 598
request_model 32
request_model 463
request_model 34
request_model 33
request_model 50
request_model 117
request_animation "SMOKING"
request_animation "MISC"
set_char_heading $scplayer {heading} 342.8127
load_all_models_now 

:HEIST4_813
if or
  not has_model_loaded 443
  not has_model_loaded 523
  not has_model_loaded 284
  not has_model_loaded 346
  not has_model_loaded 32
goto_if_false @HEIST4_859
wait 0
goto @HEIST4_813

:HEIST4_859
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded 598
  not has_animation_loaded "MISC"
  not has_model_loaded 463
goto_if_false @HEIST4_910
wait 0
goto @HEIST4_859

:HEIST4_910
if or
  not has_model_loaded 50
  not has_model_loaded 33
  not has_model_loaded 34
  not has_model_loaded 117
goto_if_false @HEIST4_948
wait 0
goto @HEIST4_910

:HEIST4_948
load_scene 2031.168 {y} 1030.918 {z} 9.813
61@ = load_char_decision_maker DecisionMakerType.Empty
62@ = load_char_decision_maker DecisionMakerType.Tough
111@, 112@, 113@ = get_char_coordinates $scplayer
clear_area 111@ {y} 112@ {z} 113@ {radius} 1000.0 {clearParticles} False

:HEIST4_1011
if 
  not is_player_playing $player1
goto_if_false @HEIST4_1038
wait 0
goto @HEIST4_1011

:HEIST4_1038
204@ = 2710.623
224@ = 1397.8831
205@ = 2711.071
225@ = 1175.0031
206@ = 2590.812
226@ = 898.2437
207@ = 2203.896
227@ = 849.0437
208@ = 1833.473
228@ = 850.4182
209@ = 1541.6021
229@ = 848.788
210@ = 1288.89
230@ = 901.789
211@ = 1224.975
231@ = 1240.59
212@ = 1224.064
232@ = 1744.703
213@ = 1224.173
233@ = 2071.7029
214@ = 1279.245
234@ = 2398.6831
215@ = 1566.816
235@ = 2457.2329
216@ = 1931.45
236@ = 2521.8579
217@ = 2442.573
237@ = 2609.429
218@ = 2704.658
238@ = 2343.6541
219@ = 2710.8911
239@ = 2065.3169
220@ = 2711.8921
240@ = 1830.5
clear_area 2710.5249 {y} 1567.009 {z} 100.0 {radius} 100.0 {clearParticles} False
custom_plate_for_next_car 443 {text} "CFC_1888"
244@ = create_car 443 {x} 2711.3259 {y} 1567.045 {z} 6.2
set_car_heading 244@ {heading} 175.1379
change_car_colour 244@ {color1} 16 {color2} 16
set_upsidedown_car_not_damaged 244@ {state} True
set_car_health 244@ {health} 2500
add_upsidedown_car_check 244@
add_stuck_car_check 244@ {distance} 4.0 {time} 3000
open_car_door 244@ {door} CarDoor.RightFrontDoor
set_car_stay_in_fast_lane 244@ {state} True
set_car_only_damaged_by_player 244@ {state} True
lock_car_doors 244@ {lockStatus} CarLock.Locked
set_car_can_go_against_traffic 244@ {state} False
245@ = create_char_inside_car 244@ {pedType} PedType.Mission1 {modelId} 117
115@ = create_char PedType.Mission1 {modelId} 50 {x} 2715.3259 {y} 1569.045 {z} 7.2
set_char_proofs 115@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_never_targetted 115@ {state} True
attach_char_to_car 115@ {vehicle} 244@ {xOffset} 1.0 {yOffset} 3.1 {zOffset} 0.4 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
set_load_collision_for_char_flag 115@ {state} False
set_char_decision_maker 245@ {handleOrTemplate} 61@
set_char_decision_maker 115@ {handleOrTemplate} 61@
set_load_collision_for_char_flag 245@ {state} False
set_char_can_be_shot_in_vehicle 245@ {state} False
set_char_cant_be_dragged_out 245@ {state} True
set_char_stay_in_car_when_jacked 245@ {state} True
set_char_suffers_critical_hits 245@ {state} False
set_char_get_out_upside_down_car 245@ {state} False
set_load_collision_for_car_flag 244@ {state} False
mark_model_as_no_longer_needed 443
246@ = 2770.2129
250@ = 1433.86
254@ = 9.3804
258@ = 257.0
247@ = 2620.6831
251@ = 2333.686
255@ = 9.8203
259@ = 174.5638
248@ = 2316.9351
252@ = 2457.0061
256@ = 9.8203
260@ = 140.3
249@ = 1610.588
253@ = 1845.6021
257@ = 9.828
261@ = 235.7296
60@ = 99
$7926 = 720000
66@ = 0
72@ = 0
80@ = 0
85@ = 0
88@ = 0
67@ = 0
73@ = 0
89@ = 0
90@ = 0
101@ = 0
102@ = 0
103@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
114@ = 0
131@ = 0
48@ = 0
if 
  48@ == -1
goto_if_false @HEIST4_2102
create_car 523 {x} $x {y} $y {z} $z {var_handle} 279@(48@,4i)
35@ = add_blip_for_coord $x {y} $y {z} $z
63@ = create_char PedType.Mission1 {modelId} 284 {x} $x {y} $y {z} $z
70@ = create_char PedType.Mission1 {modelId} 284 {x} $x {y} $y {z} $z

:HEIST4_2102
if 
  4 > 48@
goto_if_false @HEIST4_2197
add_blip_for_coord 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {var_handle} 283@(48@,4i)
change_blip_colour 283@(48@,4i) {color} BlipColor.Green
262@(48@,4i) = 0
266@(48@,4i) = 0
48@ += 1
goto @HEIST4_2102

:HEIST4_2197
270@ = 0.6
271@ = 0.0
272@ = 1.9
273@ = 0
274@ = 15.0
47@ = 0
275@ = 0
76@ = create_char PedType.Mission1 {modelId} 284 {x} 2311.019 {y} 2438.3679 {z} 9.8203
set_char_decision_maker 76@ {handleOrTemplate} 61@
set_char_heading 76@ {heading} 297.0
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 2000
77@ = create_char PedType.Mission1 {modelId} 284 {x} 2311.8501 {y} 2439.375 {z} 9.8203
set_char_decision_maker 77@ {handleOrTemplate} 61@
set_char_heading 77@ {heading} 115.0
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 2000
82@ = create_char PedType.Mission1 {modelId} 284 {x} 1612.244 {y} 1845.855 {z} 9.828
set_char_decision_maker 82@ {handleOrTemplate} 61@
set_char_heading 82@ {heading} 110.0
give_weapon_to_char 82@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_can_be_knocked_off_bike 82@ {stayOnBike} 3
63@ = create_char PedType.Mission1 {modelId} 284 {x} 2768.7971 {y} 1431.239 {z} 9.487
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 63@ {handleOrTemplate} 61@
set_char_heading 63@ {heading} 111.0
mark_model_as_no_longer_needed 284
68@ = create_char PedType.Mission1 {modelId} 34 {x} 2767.5371 {y} 1424.877 {z} 9.2195
set_anim_group_for_char 68@ {animGroup} "DRUNKMAN"
set_char_decision_maker 68@ {handleOrTemplate} 61@
set_char_heading 68@ {heading} 347.0
70@ = create_char PedType.Mission1 {modelId} 284 {x} 2619.8579 {y} 2339.2561 {z} 10.0081
set_char_can_be_knocked_off_bike 70@ {stayOnBike} 3
give_weapon_to_char 70@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 70@ {handleOrTemplate} 61@
set_char_heading 70@ {heading} 300.0
92@ = create_car 463 {x} 2634.011 {y} 2343.2119 {z} 9.6797
set_car_heading 92@ {heading} 120.0386
set_load_collision_for_car_flag 92@ {state} False
93@ = create_car 463 {x} 2625.6899 {y} 2336.8501 {z} 9.6875
set_car_heading 93@ {heading} 183.0386
set_load_collision_for_car_flag 93@ {state} False
94@ = create_car 463 {x} 2637.8469 {y} 2347.5759 {z} 9.6797
set_car_heading 94@ {heading} 126.0963
set_load_collision_for_car_flag 94@ {state} False
95@ = create_char_inside_car 92@ {pedType} PedType.Mission1 {modelId} 34
set_char_decision_maker 95@ {handleOrTemplate} 61@
96@ = create_char_inside_car 93@ {pedType} PedType.Mission1 {modelId} 32
set_char_decision_maker 96@ {handleOrTemplate} 61@
97@ = create_char_inside_car 94@ {pedType} PedType.Mission1 {modelId} 33
set_char_decision_maker 97@ {handleOrTemplate} 61@
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 463
task_chat_with_char 77@ {other} 76@ {leadSpeaker} True {_p4} 1
task_chat_with_char 76@ {other} 77@ {leadSpeaker} False {_p4} 1
task_play_anim 82@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
switch_cops_on_bikes False
TIMERA = 0
TIMERB = 0
set_car_density_multiplier 1.5
if 
  not is_char_dead 245@
goto_if_false @HEIST4_2996
if 
  not is_car_dead 244@
goto_if_false @HEIST4_2996
clear_char_tasks 245@
clear_area 2710.5249 {y} 1731.009 {z} 100.0 {radius} 100.0 {clearParticles} False
47@ = 0
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 6.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_2996
116@ = 0
203@ = 0
276@ = create_char PedType.Mission1 {modelId} 117 {x} 2029.561 {y} 1006.041 {z} 9.8203
set_char_heading 276@ {heading} 280.0
set_char_decision_maker 276@ {handleOrTemplate} 61@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 50
set_char_coordinates $scplayer {x} 2028.875 {y} 1006.87 {z} 9.8203
set_char_heading $scplayer {heading} 265.0
clear_area 2033.974 {y} 1017.29 {z} 9.8203 {radius} 1000.0 {clearParticles} False
wait 1000
switch_widescreen True
set_fixed_camera_position 2025.905 {y} 1003.544 {z} 12.1278 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2026.726 {y} 1004.074 {z} 11.9155 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3206
task_turn_char_to_face_char 276@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 276@

:HEIST4_3206
do_fade 1000 {direction} Fade.In

:HEIST4_3213
if 
  get_fading_status 
goto_if_false @HEIST4_3237
wait 0
goto @HEIST4_3213

:HEIST4_3237
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
275@ = 1
TIMERA = 0

:HEIST4_3287
if 
  104@ == 1
goto_if_false @HEIST4_3392
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_3392

:HEIST4_3322
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_3350
wait 0
goto @HEIST4_3322

:HEIST4_3350
if 
  275@ > 1
goto_if_false @HEIST4_3392
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
275@ = 5
104@ = 0

:HEIST4_3392
if 
  275@ == 1
goto_if_false @HEIST4_3431
196@ = 16
275@ = 2
TIMERA = 0

:HEIST4_3431
if 
  275@ == 2
goto_if_false @HEIST4_3591
if 
  TIMERA > 3000
goto_if_false @HEIST4_3591
104@ = 1
196@ = 17
275@ = 3
TIMERA = 0
clear_char_tasks $scplayer
task_play_anim $scplayer {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3591
task_play_anim 276@ {animationName} "ENDCHAT_03" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST4_3591
if 
  275@ == 3
goto_if_false @HEIST4_3692
if 
  TIMERA > 2000
goto_if_false @HEIST4_3692
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3692
clear_char_tasks $scplayer
clear_char_tasks 276@
task_go_straight_to_coord 276@ {x} 2030.431 {y} 984.6912 {z} 9.8131 {speed} MoveState.Run {time} -2
275@ = 4
TIMERA = 0

:HEIST4_3692
if 
  275@ == 4
goto_if_false @HEIST4_3736
if 
  TIMERA > 2000
goto_if_false @HEIST4_3736
275@ = 5

:HEIST4_3736
if 
  275@ == 5
goto_if_false @HEIST4_3857
104@ = 0
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_char_tasks $scplayer
set_char_heading $scplayer {heading} 305.0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
enable_char_speech $scplayer
delete_char 276@
clear_prints 
print_now 'HEI4_01' {time} 8000 {flag} 1
TIMERA = 0
TIMERB = 0
60@ = 2
275@ = -99

:HEIST4_3857
if 
  203@ == 0
goto_if_false @HEIST4_3889
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1096
203@ = 1

:HEIST4_3889
if 
  203@ == 1
goto_if_false @HEIST4_3929
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST4_3929
203@ = 2

:HEIST4_3929
if 
  196@ <> 0
goto_if_false @HEIST4_4282
if 
  198@ == 0
goto_if_false @HEIST4_4000
if 
  has_mission_audio_loaded 195@
goto_if_false @HEIST4_3986
clear_mission_audio 195@

:HEIST4_3986
198@ = 1
199@ = 1

:HEIST4_4000
if 
  198@ == 1
goto_if_false @HEIST4_4037
load_mission_audio 194@ {audioId} 175@(196@,19i)
198@ = 2

:HEIST4_4037
if 
  198@ == 2
goto_if_false @HEIST4_4097
if 
  has_mission_audio_loaded 194@
goto_if_false @HEIST4_4097
play_mission_audio 194@
print 137@(196@,19s) {time} 10000 {flag} 1
198@ = 3

:HEIST4_4097
if 
  198@ == 3
goto_if_false @HEIST4_4282
if 
  has_mission_audio_finished 194@
goto_if_false @HEIST4_4221
clear_this_print 137@(196@,19s)
if 
  194@ == 1
goto_if_false @HEIST4_4179
194@ = 2
195@ = 1
goto @HEIST4_4193

:HEIST4_4179
194@ = 1
195@ = 2

:HEIST4_4193
196@ = 0
198@ = 0
199@ = 0
goto @HEIST4_4282

:HEIST4_4221
if 
  not has_mission_audio_loaded 195@
goto_if_false @HEIST4_4282
if 
  15 > 196@
goto_if_false @HEIST4_4282
set_lvar_int_to_lvar_int 197@ = 196@
197@ += 1
load_mission_audio 195@ {audioId} 175@(197@,19i)

:HEIST4_4282
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4383
121@, 122@, 123@ = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -40.0 {zOffset} -2.0
124@, 125@, 126@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} 0.0 {zOffset} 2.0
129@ = get_random_car_of_type_in_area_no_save 121@ {leftBottomY} 122@ {rightTopX} 124@ {rightTopY} 125@ {modelId} -1
127@ = get_car_speed 244@

:HEIST4_4383
if 
  not is_car_dead 129@
goto_if_false @HEIST4_4425
set_lvar_float_to_lvar_float 128@ = 127@
128@ -= 4.0
set_car_cruise_speed 129@ {maxSpeed} 128@

:HEIST4_4425
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4504
if 
  not is_char_dead 245@
goto_if_false @HEIST4_4504
if 
  not is_char_in_car 245@ {vehicle} 244@
goto_if_false @HEIST4_4504
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4497
detach_char_from_car 115@

:HEIST4_4497
goto @HEIST4_13141

:HEIST4_4504
if 
  114@ == 1
goto_if_false @HEIST4_4598
if 
  TIMERB > 1000
goto_if_false @HEIST4_4598
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4598
118@, 119@, 120@ = get_car_coordinates 244@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikePackerClunk
114@ = 2

:HEIST4_4598
if 
  114@ == 2
goto_if_false @HEIST4_4728
if 
  TIMERB > 1500
goto_if_false @HEIST4_4728
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4721
if 
  not is_char_playing_anim 115@ {animationName} "HIKER_POSE_L"
goto_if_false @HEIST4_4721
task_play_anim 115@ {animationName} "HIKER_POSE_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST4_4721
114@ = 3

:HEIST4_4728
if 
  114@ == 3
goto_if_false @HEIST4_4772
if 
  TIMERB > 2000
goto_if_false @HEIST4_4772
114@ = 4

:HEIST4_4772
if 
  114@ == 4
goto_if_false @HEIST4_4988
if 
  TIMERB > 4000
goto_if_false @HEIST4_4988
clear_char_tasks $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  273@ == 4
goto_if_false @HEIST4_4845
clear_prints 

:HEIST4_4845
if 
  273@ == 1
goto_if_false @HEIST4_4881
clear_prints 
print_now 'HEI4_06' {time} 5000 {flag} 1

:HEIST4_4881
if 
  273@ == 2
goto_if_false @HEIST4_4917
clear_prints 
print_now 'HEI4_08' {time} 5000 {flag} 1

:HEIST4_4917
if 
  273@ == 3
goto_if_false @HEIST4_4960
clear_prints 
print_now 'HEI4_09' {time} 5000 {flag} 1
TIMERA = 0

:HEIST4_4960
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4981
clear_char_tasks 115@

:HEIST4_4981
114@ = 0

:HEIST4_4988
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST4_5010
goto @HEIST4_13159

:HEIST4_5010
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @HEIST4_5035
$7926 += 60000

:HEIST4_5035
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @HEIST4_5057
alter_wanted_level $player1 {wantedLevel} 2

:HEIST4_5057
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @HEIST4_5079
alter_wanted_level $player1 {wantedLevel} 0

:HEIST4_5079
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @HEIST4_5124
set_char_coordinates $scplayer {x} 2608.1931 {y} 2315.54 {z} 9.6719
set_char_heading $scplayer {heading} 354.7109

:HEIST4_5124
if 
  103@ == 1
goto_if_false @HEIST4_5201
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_5201

:HEIST4_5159
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_5187
wait 0
goto @HEIST4_5159

:HEIST4_5187
102@ = 50
103@ = 0

:HEIST4_5201
wait 0
if 
  101@ == 0
goto_if_false @HEIST4_5272
if 
  not is_car_dead 280@
goto_if_false @HEIST4_5272
if 
  is_char_sitting_in_car $scplayer {vehicle} 280@
goto_if_false @HEIST4_5272
switch_car_siren 280@ {state} False
101@ = 1

:HEIST4_5272
if 
  89@ == 0
goto_if_false @HEIST4_5423
if 
  TIMERB > 5000
goto_if_false @HEIST4_5423
mark_model_as_no_longer_needed 598
request_model 497

:HEIST4_5319
if 
  not has_model_loaded 497
goto_if_false @HEIST4_5346
wait 0
goto @HEIST4_5319

:HEIST4_5346
86@ = create_car 497 {x} 1589.198 {y} 1850.619 {z} 9.8358
set_car_heading 86@ {heading} 51.0
open_car_door 86@ {door} CarDoor.LeftFrontDoor
87@ = create_char_inside_car 86@ {pedType} PedType.Mission1 {modelId} 284
set_load_collision_for_char_flag 87@ {state} False
set_heli_blades_full_speed 86@
mark_model_as_no_longer_needed 497
89@ = 1

:HEIST4_5423
if 
  60@ == 2
goto_if_false @HEIST4_5544
if 
  TIMERA > 12000
goto_if_false @HEIST4_5544
if 
  131@ == 0
goto_if_false @HEIST4_5544
clear_prints 
clear_this_print 'HEI4_01'
print_now 'HEI4_11' {time} 8000 {flag} 1
display_onscreen_timer_with_string $7926 {direction} TimerDirection.Down {text} 'HEI4_12'
131@ = 1
60@ = 3
TIMERA = 0

:HEIST4_5544
if 
  60@ == 3
goto_if_false @HEIST4_5588
if 
  TIMERA > 10000
goto_if_false @HEIST4_5588
60@ = 4

:HEIST4_5588
if 
  1 > $7926
goto_if_false @HEIST4_5631
clear_prints 
print_now 'HEI4_10' {time} 8000 {flag} 1
goto @HEIST4_13141

:HEIST4_5631
if 
  102@ == 0
goto_if_false @HEIST4_7611
if 
  not is_car_dead 244@
goto_if_false @HEIST4_7588
if 
  locate_car_2d 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @HEIST4_5798
47@ += 1
if 
  47@ == 17
goto_if_false @HEIST4_5739
47@ = 0

:HEIST4_5739
if 
  not is_char_dead 245@
goto_if_false @HEIST4_5798
clear_char_tasks 245@
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 8.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_5798
48@ = 0

:HEIST4_5805
if 
  4 > 48@
goto_if_false @HEIST4_7391
if 
  2 > 266@(48@,4i)
goto_if_false @HEIST4_7377
if 
  not is_car_dead 279@(48@,4i)
goto_if_false @HEIST4_7119
if 
  is_char_in_car $scplayer {vehicle} 279@(48@,4i)
goto_if_false @HEIST4_6819
if 
  266@(48@,4i) == 0
goto_if_false @HEIST4_6030
43@ = 0

:HEIST4_5917
if 
  4 > 43@
goto_if_false @HEIST4_5958
remove_blip 283@(43@,4i)
43@ += 1
goto @HEIST4_5917

:HEIST4_5958
remove_blip 35@
35@ = add_blip_for_car 244@
set_blip_as_friendly 35@ {state} True
if 
  273@ <> 4
goto_if_false @HEIST4_6012
print_now 'HEI4_02' {time} 8000 {flag} 1

:HEIST4_6012
266@(48@,4i) = 1
gosub @HEIST4_11579

:HEIST4_6030
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_6812
if 
  2 > 273@
goto_if_false @HEIST4_6128
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -3.2 {zOffset} -0.8
52@, 53@, 54@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} -3.2 {zOffset} 2.6

:HEIST4_6128
if 
  273@ > 1
goto_if_false @HEIST4_6204
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -8.2 {zOffset} -0.8
52@, 53@, 54@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} -8.2 {zOffset} 2.6

:HEIST4_6204
if 
  locate_char_in_car_car_2d $scplayer {handle} 244@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @HEIST4_6251
print_now 'HEI4_13' {time} 8000 {flag} 1

:HEIST4_6251
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} 52@ {rightTopY} 53@ {rightTopZ} 54@ {angle} 4.8 {drawSphere} False
goto_if_false @HEIST4_6812
277@ = get_car_speed 244@
278@ = get_car_speed 279@(48@,4i)
277@ += 10.0
if 
  is_float_lvar_greater_than_float_lvar 277@ > 278@
goto_if_false @HEIST4_6812
277@ -= 10.0
if 
  is_float_lvar_greater_than_float_lvar 278@ > 277@
goto_if_false @HEIST4_6812
attach_car_to_car 279@(48@,4i) {handle} 244@ {xOffset} 270@ {yOffset} 271@ {zOffset} 272@ {xRotation} 16.0 {yRotation} 0.0 {zRotation} 0.0
freeze_car_position 279@(48@,4i) {state} True
if or
  273@ == 1
  273@ == 3
goto_if_false @HEIST4_6462
271@ -= 2.5
272@ -= 0.7

:HEIST4_6462
if 
  270@ == 0.6
goto_if_false @HEIST4_6500
270@ = -0.6
goto @HEIST4_6510

:HEIST4_6500
270@ = 0.6

:HEIST4_6510
273@ += 1
if 
  4 > 273@
goto_if_false @HEIST4_6588
attach_camera_to_vehicle_look_at_vehicle 244@ {xOffset} 3.0 {yOffset} 5.0 {zOffset} 2.2 {vehicle} 244@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
114@ = 1
set_player_control $player1 {state} False
clear_prints 
TIMERB = 0

:HEIST4_6588
274@ += 10.0
266@(48@,4i) = 2
remove_blip 35@
clear_this_print 'HEI4_02'
43@ = 0

:HEIST4_6632
if 
  4 > 43@
goto_if_false @HEIST4_6812
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_6798
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_6757
remove_blip 283@(43@,4i)
if 
  not is_car_dead 279@(43@,4i)
goto_if_false @HEIST4_6750
add_blip_for_car 279@(43@,4i) {var_handle} 283@(43@,4i)
change_blip_colour 283@(43@,4i) {color} BlipColor.Green

:HEIST4_6750
goto @HEIST4_6787

:HEIST4_6757
add_blip_for_coord 246@(43@,4f) {y} 250@(43@,4f) {z} 254@(43@,4f) {var_handle} 283@(43@,4i)

:HEIST4_6787
change_blip_colour 283@(43@,4i) {color} BlipColor.Green

:HEIST4_6798
43@ += 1
goto @HEIST4_6632

:HEIST4_6812
goto @HEIST4_7112

:HEIST4_6819
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_7112
43@ = 0

:HEIST4_6848
if 
  4 > 43@
goto_if_false @HEIST4_7112
if 
  266@(43@,4i) == 1
goto_if_false @HEIST4_6899
266@(43@,4i) = 0

:HEIST4_6899
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_7098
remove_blip 283@(43@,4i)
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_7036
if 
  not is_car_dead 279@(43@,4i)
goto_if_false @HEIST4_7006
add_blip_for_car 279@(43@,4i) {var_handle} 283@(43@,4i)
change_blip_colour 283@(43@,4i) {color} BlipColor.Green
goto @HEIST4_7029

:HEIST4_7006
print_now 'HEI4_04' {time} 8000 {flag} 1
goto @HEIST4_13141

:HEIST4_7029
goto @HEIST4_7066

:HEIST4_7036
add_blip_for_coord 246@(43@,4f) {y} 250@(43@,4f) {z} 254@(43@,4f) {var_handle} 283@(43@,4i)

:HEIST4_7066
remove_blip 35@
change_blip_colour 283@(43@,4i) {color} BlipColor.Green
print_now 'HEI4_03' {time} 5000 {flag} 1

:HEIST4_7098
43@ += 1
goto @HEIST4_6848

:HEIST4_7112
goto @HEIST4_7377

:HEIST4_7119
if 
  262@(48@,4i) == 0
goto_if_false @HEIST4_7354
if 
  locate_char_any_means_2d $scplayer {x} 246@(48@,4f) {y} 250@(48@,4f) {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @HEIST4_7347
clear_area 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {radius} 40.0 {clearParticles} False
create_car 523 {x} 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {var_handle} 279@(48@,4i)
set_car_heading 279@(48@,4i) {heading} 258@(48@,4f)
set_can_burst_car_tyres 279@(48@,4i) {state} False
set_load_collision_for_car_flag 279@(48@,4i) {state} False
if 
  not does_blip_exist 35@
goto_if_false @HEIST4_7336
remove_blip 283@(48@,4i)
add_blip_for_car 279@(48@,4i) {var_handle} 283@(48@,4i)
change_blip_colour 283@(48@,4i) {color} BlipColor.Green

:HEIST4_7336
262@(48@,4i) = 1

:HEIST4_7347
goto @HEIST4_7377

:HEIST4_7354
print_now 'HEI4_04' {time} 5000 {flag} 1
goto @HEIST4_13141

:HEIST4_7377
48@ += 1
goto @HEIST4_5805

:HEIST4_7391
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_7437
set_car_cruise_speed 244@ {maxSpeed} 274@
goto @HEIST4_7447

:HEIST4_7437
set_car_cruise_speed 244@ {maxSpeed} 15.0

:HEIST4_7447
if or
  is_car_stuck_on_roof 244@
  is_car_stuck 244@
goto_if_false @HEIST4_7581
if 
  not is_car_on_screen 244@
goto_if_false @HEIST4_7581
if 
  not is_point_on_screen 204@(47@,20f) {y} 224@(47@,20f) {z} 6.0 {radius} 4.0
goto_if_false @HEIST4_7581
clear_area 204@(47@,20f) {y} 224@(47@,20f) {z} 7.0 {radius} 10.0 {clearParticles} False
set_car_coordinates 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 10.0
set_car_heading 244@ {heading} $heading

:HEIST4_7581
goto @HEIST4_7611

:HEIST4_7588
print_now 'HEI4_05' {time} 5000 {flag} 1
goto @HEIST4_13141

:HEIST4_7611
if 
  102@ == 0
goto_if_false @HEIST4_7659
if 
  273@ == 4
goto_if_false @HEIST4_7659
clear_onscreen_timer $7926
102@ = 1

:HEIST4_7659
if 
  102@ == 1
goto_if_false @HEIST4_8097
do_fade 1000 {direction} Fade.Out
clear_prints 
clear_onscreen_timer $7926
set_player_control $player1 {state} False
clear_wanted_level $player1

:HEIST4_7703
if 
  get_fading_status 
goto_if_false @HEIST4_7727
wait 0
goto @HEIST4_7703

:HEIST4_7727
task_jump $scplayer {state} False
clear_char_tasks_immediately $scplayer
load_scene_in_direction 1009.781 {y} 1929.377 {z} 9.6719 {heading} 122.0
wait 0
switch_widescreen True
102@ = 10
set_fixed_camera_position 1022.831 {y} 1899.5129 {z} 18.6192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1021.961 {y} 1899.5179 {z} 18.126 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 245@
goto_if_false @HEIST4_7994
if 
  not is_car_dead 244@
goto_if_false @HEIST4_7994
clear_char_tasks 245@
clear_area 1009.994 {y} 1880.02 {z} 150.0 {radius} 150.0 {clearParticles} False
set_car_coordinates 244@ {x} 1009.994 {y} 1870.02 {z} 9.6797
set_car_heading 244@ {heading} 2.3
attach_char_to_car $scplayer {vehicle} 244@ {xOffset} 0.5 {yOffset} -10.0 {zOffset} -0.3 {heading} Facing.Back {headingRange} 10.0 {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 300.0
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 1009.781 {y} 1900.377 {z} 9.6719 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_7994
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
do_fade 500 {direction} Fade.In

:HEIST4_8025
if 
  get_fading_status 
goto_if_false @HEIST4_8073
wait 0
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
goto @HEIST4_8025

:HEIST4_8073
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False

:HEIST4_8097
if 
  102@ == 10
goto_if_false @HEIST4_8273
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  not is_car_dead 244@
goto_if_false @HEIST4_8273
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8273
if 
  is_car_stopped 244@
goto_if_false @HEIST4_8273
102@ = 20
103@ = 1
detach_char_from_car $scplayer
105@ = open_sequence_task 
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} 1014.013 {y} 1902.325 {z} 9.8125 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} 245@
close_sequence_task 105@
perform_sequence_task $scplayer {sequence} 105@
clear_sequence_task 105@
TIMERA = 0

:HEIST4_8273
if 
  201@ > 0
goto_if_false @HEIST4_8456
if 
  199@ == 0
goto_if_false @HEIST4_8456
switch_start 201@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @HEIST4_8456 {caseNum1} 1 {caseLabel1} @HEIST4_8372 {caseNum2} 2 {caseLabel2} @HEIST4_8393 {caseNum3} 3 {caseLabel3} @HEIST4_8414 {caseNum4} 4 {caseLabel4} @HEIST4_8435 {caseNum5} -1 {caseLabel5} @HEIST4_8456 {caseNum6} -1 {caseLabel6} @HEIST4_8456 {caseNum7} -1 {caseLabel7} @HEIST4_8456

:HEIST4_8372
196@ = 1
201@ = 2
goto @HEIST4_8456

:HEIST4_8393
196@ = 2
201@ = 3
goto @HEIST4_8456

:HEIST4_8414
196@ = 3
201@ = 4
goto @HEIST4_8456

:HEIST4_8435
196@ = 0
201@ = 0
goto @HEIST4_8456

:HEIST4_8456
if 
  102@ == 20
goto_if_false @HEIST4_8538
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8538
201@ = 1
102@ = 30
TIMERA = 0

:HEIST4_8538
if 
  102@ == 30
goto_if_false @HEIST4_8679
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8679
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8679
if 
  not is_car_dead 244@
goto_if_false @HEIST4_8679
102@ = 40
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 1009.781 {y} 2000.377 {z} 9.6719 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
TIMERA = 0

:HEIST4_8679
if 
  102@ == 40
goto_if_false @HEIST4_8780
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 500
goto_if_false @HEIST4_8780
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8780
task_look_at_char $scplayer {target} 245@ {time} -2
102@ = 45
TIMERA = 0

:HEIST4_8780
if 
  102@ == 45
goto_if_false @HEIST4_8848
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8848
102@ = 50

:HEIST4_8848
if 
  102@ == 50
goto_if_false @HEIST4_8967
103@ = 0
delete_car 279@
delete_car 280@
delete_car 281@
delete_car 282@
delete_car 244@
delete_char 245@
delete_char 115@
switch_widescreen False
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 1014.013 {y} 1902.325 {z} 9.8125
set_char_heading $scplayer {heading} 59.0
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
clear_prints 
goto @HEIST4_13159

:HEIST4_8967
if 
  102@ == 0
goto_if_false @HEIST4_9089
90@ = 0

:HEIST4_8992
if 
  4 > 90@
goto_if_false @HEIST4_9089
if 
  266@(90@,4i) == 2
goto_if_false @HEIST4_9075
if 
  is_car_dead 279@(90@,4i)
goto_if_false @HEIST4_9075
print_now 'HEI4_04' {time} 5000 {flag} 1
goto @HEIST4_13141

:HEIST4_9075
90@ += 1
goto @HEIST4_8992

:HEIST4_9089
if 
  66@ == 0
goto_if_false @HEIST4_9376
if 
  does_char_exist 63@
goto_if_false @HEIST4_9267
if 
  has_char_been_damaged_by_char 63@ {handle} $scplayer
goto_if_false @HEIST4_9213
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12490
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9192
66@ = 1
clear_char_tasks 63@
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST4_9192
if 
  not is_char_dead 68@
goto_if_false @HEIST4_9213
mark_char_as_no_longer_needed 68@

:HEIST4_9213
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9267
if 
  locate_char_any_means_char_2d $scplayer {target} 63@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @HEIST4_9267
gosub @HEIST4_12490

:HEIST4_9267
if 
  does_char_exist 68@
goto_if_false @HEIST4_9376
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @HEIST4_9376
alter_wanted_level_no_drop $player1 {wantedLevel} 1
if 
  not is_char_dead 68@
goto_if_false @HEIST4_9340
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST4_9340
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9376
66@ = 1
clear_char_tasks 63@
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST4_9376
if 
  72@ == 0
goto_if_false @HEIST4_9998
if 
  does_char_exist 70@
goto_if_false @HEIST4_9596
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST4_9542
alter_wanted_level_no_drop $player1 {wantedLevel} 1
gosub @HEIST4_12636
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9479
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9479
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9500
mark_char_as_no_longer_needed 95@

:HEIST4_9500
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9521
mark_char_as_no_longer_needed 96@

:HEIST4_9521
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9542
mark_char_as_no_longer_needed 97@

:HEIST4_9542
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9596
if 
  locate_char_any_means_char_2d $scplayer {target} 70@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @HEIST4_9596
gosub @HEIST4_12636

:HEIST4_9596
if 
  does_char_exist 95@
goto_if_false @HEIST4_9730
if 
  has_char_been_damaged_by_char 95@ {handle} $scplayer
goto_if_false @HEIST4_9730
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9667
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9667
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9688
mark_char_as_no_longer_needed 95@

:HEIST4_9688
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9709
mark_char_as_no_longer_needed 96@

:HEIST4_9709
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9730
mark_char_as_no_longer_needed 97@

:HEIST4_9730
if 
  does_char_exist 96@
goto_if_false @HEIST4_9864
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @HEIST4_9864
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9801
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9801
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9822
mark_char_as_no_longer_needed 95@

:HEIST4_9822
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9843
mark_char_as_no_longer_needed 96@

:HEIST4_9843
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9864
mark_char_as_no_longer_needed 97@

:HEIST4_9864
if 
  does_char_exist 97@
goto_if_false @HEIST4_9998
if 
  has_char_been_damaged_by_char 97@ {handle} $scplayer
goto_if_false @HEIST4_9998
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9935
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9935
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9956
mark_char_as_no_longer_needed 95@

:HEIST4_9956
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9977
mark_char_as_no_longer_needed 96@

:HEIST4_9977
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9998
mark_char_as_no_longer_needed 97@

:HEIST4_9998
if 
  80@ == 0
goto_if_false @HEIST4_10114
if 
  does_char_exist 77@
goto_if_false @HEIST4_10065
if 
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @HEIST4_10065
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12188

:HEIST4_10065
if 
  does_char_exist 76@
goto_if_false @HEIST4_10114
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @HEIST4_10114
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12188

:HEIST4_10114
if 
  85@ == 0
goto_if_false @HEIST4_10271
if 
  does_char_exist 82@
goto_if_false @HEIST4_10271
if 
  has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @HEIST4_10217
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12262
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10217
85@ = 1
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} $scplayer

:HEIST4_10217
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10271
if 
  locate_char_any_means_char_2d $scplayer {target} 82@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @HEIST4_10271
gosub @HEIST4_12262

:HEIST4_10271
if 
  106@ == 0
goto_if_false @HEIST4_10338
if 
  does_char_exist 82@
goto_if_false @HEIST4_10338
if 
  has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @HEIST4_10338
alter_wanted_level_no_drop $player1 {wantedLevel} 2
106@ = 1

:HEIST4_10338
if 
  107@ == 0
goto_if_false @HEIST4_10405
if 
  does_char_exist 70@
goto_if_false @HEIST4_10405
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST4_10405
alter_wanted_level_no_drop $player1 {wantedLevel} 2
107@ = 1

:HEIST4_10405
if 
  108@ == 0
goto_if_false @HEIST4_10472
if 
  does_char_exist 63@
goto_if_false @HEIST4_10472
if 
  has_char_been_damaged_by_char 63@ {handle} $scplayer
goto_if_false @HEIST4_10472
alter_wanted_level_no_drop $player1 {wantedLevel} 2
108@ = 1

:HEIST4_10472
if 
  109@ == 0
goto_if_false @HEIST4_10539
if 
  does_char_exist 76@
goto_if_false @HEIST4_10539
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @HEIST4_10539
alter_wanted_level_no_drop $player1 {wantedLevel} 2
109@ = 1

:HEIST4_10539
if 
  110@ == 0
goto_if_false @HEIST4_10606
if 
  does_char_exist 77@
goto_if_false @HEIST4_10606
if 
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @HEIST4_10606
alter_wanted_level_no_drop $player1 {wantedLevel} 2
110@ = 1

:HEIST4_10606
if 
  88@ == 1
goto_if_false @HEIST4_10693
if 
  not is_car_dead 86@
goto_if_false @HEIST4_10693
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 86@ {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @HEIST4_10693
88@ = 2
mark_char_as_no_longer_needed 87@
mark_car_as_no_longer_needed 86@

:HEIST4_10693
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10766
if 
  locate_char_any_means_char_3d $scplayer {target} 82@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_10759
freeze_char_position_and_dont_load_collision 82@ {state} False
goto @HEIST4_10766

:HEIST4_10759
freeze_char_position_and_dont_load_collision 82@ {state} True

:HEIST4_10766
if 
  not is_char_dead 70@
goto_if_false @HEIST4_10839
if 
  locate_char_any_means_char_3d $scplayer {target} 70@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_10832
freeze_char_position_and_dont_load_collision 70@ {state} False
goto @HEIST4_10839

:HEIST4_10832
freeze_char_position_and_dont_load_collision 70@ {state} True

:HEIST4_10839
if 
  73@ == 0
goto_if_false @HEIST4_11076
if 
  not is_char_dead 95@
goto_if_false @HEIST4_10930
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_10923
freeze_char_position_and_dont_load_collision 95@ {state} False
goto @HEIST4_10930

:HEIST4_10923
freeze_char_position_and_dont_load_collision 95@ {state} True

:HEIST4_10930
if 
  not is_char_dead 96@
goto_if_false @HEIST4_11003
if 
  locate_char_any_means_char_3d $scplayer {target} 96@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_10996
freeze_char_position_and_dont_load_collision 96@ {state} False
goto @HEIST4_11003

:HEIST4_10996
freeze_char_position_and_dont_load_collision 96@ {state} True

:HEIST4_11003
if 
  not is_char_dead 97@
goto_if_false @HEIST4_11076
if 
  locate_char_any_means_char_3d $scplayer {target} 97@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11069
freeze_char_position_and_dont_load_collision 97@ {state} False
goto @HEIST4_11076

:HEIST4_11069
freeze_char_position_and_dont_load_collision 97@ {state} True

:HEIST4_11076
if 
  73@ == 1
goto_if_false @HEIST4_11280
if 
  not is_char_dead 95@
goto_if_false @HEIST4_11156
if 
  not locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11156
mark_char_as_no_longer_needed 95@
mark_car_as_no_longer_needed 92@

:HEIST4_11156
if 
  not is_char_dead 96@
goto_if_false @HEIST4_11218
if 
  not locate_char_any_means_char_3d $scplayer {target} 96@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11218
mark_char_as_no_longer_needed 96@
mark_car_as_no_longer_needed 93@

:HEIST4_11218
if 
  not is_char_dead 97@
goto_if_false @HEIST4_11280
if 
  not locate_char_any_means_char_3d $scplayer {target} 97@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11280
mark_char_as_no_longer_needed 97@
mark_car_as_no_longer_needed 94@

:HEIST4_11280
if 
  not is_char_dead 77@
goto_if_false @HEIST4_11353
if 
  locate_char_any_means_char_3d $scplayer {target} 77@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11346
freeze_char_position_and_dont_load_collision 77@ {state} False
goto @HEIST4_11353

:HEIST4_11346
freeze_char_position_and_dont_load_collision 77@ {state} True

:HEIST4_11353
if 
  not is_char_dead 76@
goto_if_false @HEIST4_11426
if 
  locate_char_any_means_char_3d $scplayer {target} 76@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11419
freeze_char_position_and_dont_load_collision 76@ {state} False
goto @HEIST4_11426

:HEIST4_11419
freeze_char_position_and_dont_load_collision 76@ {state} True

:HEIST4_11426
if 
  not is_char_dead 63@
goto_if_false @HEIST4_11499
if 
  locate_char_any_means_char_3d $scplayer {target} 63@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11492
freeze_char_position_and_dont_load_collision 63@ {state} False
goto @HEIST4_11499

:HEIST4_11492
freeze_char_position_and_dont_load_collision 63@ {state} True

:HEIST4_11499
if 
  not is_char_dead 68@
goto_if_false @HEIST4_11572
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11565
freeze_char_position_and_dont_load_collision 68@ {state} False
goto @HEIST4_11572

:HEIST4_11565
freeze_char_position_and_dont_load_collision 68@ {state} True

:HEIST4_11572
goto @HEIST4_3287

:HEIST4_11579
if 
  48@ == 0
goto_if_false @HEIST4_11745
if 
  66@ == 0
goto_if_false @HEIST4_11745
if 
  not is_char_dead 63@
goto_if_false @HEIST4_11690
clear_char_tasks 63@
65@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2785.7891 {y} 1439.454 {z} 9.5579 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 65@
perform_sequence_task 63@ {sequence} 65@
clear_sequence_task 65@

:HEIST4_11690
if 
  not is_char_dead 68@
goto_if_false @HEIST4_11731
clear_char_tasks 68@
mark_char_as_no_longer_needed 68@
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST4_11731
66@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_11745
if 
  48@ == 1
goto_if_false @HEIST4_11885
if 
  72@ == 0
goto_if_false @HEIST4_11885
if 
  not is_char_dead 70@
goto_if_false @HEIST4_11856
clear_char_tasks 70@
71@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2646.582 {y} 2348.1699 {z} 9.6797 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
perform_sequence_task 70@ {sequence} 71@
clear_sequence_task 71@

:HEIST4_11856
72@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1
mark_car_as_no_longer_needed 92@
mark_car_as_no_longer_needed 93@
mark_car_as_no_longer_needed 94@

:HEIST4_11885
if 
  48@ == 2
goto_if_false @HEIST4_12061
if 
  80@ == 0
goto_if_false @HEIST4_12061
if 
  not is_char_dead 77@
goto_if_false @HEIST4_11972
clear_char_tasks 77@
79@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 77@ {sequence} 79@
clear_sequence_task 79@

:HEIST4_11972
if 
  not is_char_dead 76@
goto_if_false @HEIST4_12047
clear_char_tasks 76@
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2311.0039 {y} 2436.7639 {z} 9.8203 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 78@
perform_sequence_task 76@ {sequence} 78@
clear_sequence_task 78@

:HEIST4_12047
80@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_12061
if 
  48@ == 3
goto_if_false @HEIST4_12186
if 
  85@ == 0
goto_if_false @HEIST4_12186
if 
  not is_char_dead 82@
goto_if_false @HEIST4_12172
clear_char_tasks 82@
83@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1593.2889 {y} 1836.808 {z} 9.8281 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 83@
perform_sequence_task 82@ {sequence} 83@
clear_sequence_task 83@

:HEIST4_12172
85@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_12186
return 

:HEIST4_12188
if 
  not is_char_dead 77@
goto_if_false @HEIST4_12217
clear_char_tasks 77@
task_kill_char_on_foot 77@ {target} $scplayer

:HEIST4_12217
if 
  not is_char_dead 76@
goto_if_false @HEIST4_12246
clear_char_tasks 76@
task_kill_char_on_foot 76@ {target} $scplayer

:HEIST4_12246
alter_wanted_level_no_drop $player1 {wantedLevel} 1
80@ = 1
return 

:HEIST4_12262
if 
  88@ == 0
goto_if_false @HEIST4_12488
if 
  not is_char_dead 87@
goto_if_false @HEIST4_12357
if 
  not is_car_dead 86@
goto_if_false @HEIST4_12357
set_car_cruise_speed 86@ {maxSpeed} 100.0
close_all_car_doors 86@
heli_goto_coords 86@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0

:HEIST4_12357
if 
  not is_car_dead 282@
goto_if_false @HEIST4_12481
if 
  not is_char_dead 82@
goto_if_false @HEIST4_12481
clear_char_tasks 82@
84@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 282@ {time} 6000
task_car_drive_to_coord -1 {vehicle} 282@ {x} 1570.712 {y} 1834.135 {z} 9.6969 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 282@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 84@
perform_sequence_task 82@ {sequence} 84@
clear_sequence_task 84@
set_char_can_be_knocked_off_bike 82@ {stayOnBike} 3

:HEIST4_12481
88@ = 1

:HEIST4_12488
return 

:HEIST4_12490
if 
  67@ == 0
goto_if_false @HEIST4_12634
if 
  not is_char_dead 63@
goto_if_false @HEIST4_12627
if 
  not is_char_dead 68@
goto_if_false @HEIST4_12627
clear_char_tasks 68@
69@ = open_sequence_task 
set_sequence_to_repeat 69@ {state} True
task_go_straight_to_coord -1 {x} 2762.1169 {y} 1432.399 {z} 9.5325 {speed} MoveState.Walk {time} 30000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 3000
task_go_straight_to_coord -1 {x} 2767.5371 {y} 1424.877 {z} 9.2195 {speed} MoveState.Walk {time} 30000
close_sequence_task 69@
perform_sequence_task 68@ {sequence} 69@

:HEIST4_12627
67@ = 1

:HEIST4_12634
return 

:HEIST4_12636
if 
  73@ == 0
goto_if_false @HEIST4_13139
if 
  203@ == 2
goto_if_false @HEIST4_12676
play_mission_audio MissionAudioSlot.Slot3

:HEIST4_12676
if 
  not is_car_dead 92@
goto_if_false @HEIST4_12783
if 
  not is_char_dead 95@
goto_if_false @HEIST4_12783
clear_char_tasks 95@
98@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} 2648.7439 {y} 2293.4199 {z} 9.6875 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 92@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 98@
perform_sequence_task 95@ {sequence} 98@
clear_sequence_task 98@

:HEIST4_12783
if 
  not is_car_dead 93@
goto_if_false @HEIST4_12890
if 
  not is_char_dead 96@
goto_if_false @HEIST4_12890
clear_char_tasks 96@
99@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 93@ {x} 2650.5659 {y} 2290.3149 {z} 9.6875 {speed} 26.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 93@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 99@
perform_sequence_task 96@ {sequence} 99@
clear_sequence_task 99@

:HEIST4_12890
if 
  not is_car_dead 94@
goto_if_false @HEIST4_12997
if 
  not is_char_dead 97@
goto_if_false @HEIST4_12997
clear_char_tasks 97@
100@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 94@ {x} 2651.6809 {y} 2294.8701 {z} 9.6875 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 94@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 100@
perform_sequence_task 97@ {sequence} 100@
clear_sequence_task 100@

:HEIST4_12997
if 
  not is_car_dead 280@
goto_if_false @HEIST4_13132
if 
  not is_char_dead 70@
goto_if_false @HEIST4_13121
clear_char_tasks 70@
71@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 280@ {time} 10000
task_car_drive_to_coord -1 {vehicle} 280@ {x} 2647.9409 {y} 2293.2219 {z} 9.6875 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 280@ {speed} 17.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 71@
perform_sequence_task 70@ {sequence} 71@
clear_sequence_task 71@
set_char_can_be_knocked_off_bike 70@ {stayOnBike} 3

:HEIST4_13121
switch_car_siren 280@ {state} True
clear_mission_audio MissionAudioSlot.Slot3

:HEIST4_13132
73@ = 1

:HEIST4_13139
return 

:HEIST4_13141
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST4_13159
$flag_heist_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 20 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'HEIST_4'
player_made_progress 1
return 

:HEIST4_13214
set_player_control $player1 {state} True
set_player_group_recruitment $player1 {state} True
set_group_follow_status 34@ {state} True
set_player_group_to_follow_never $player1 {state} False
set_car_density_multiplier 1.0
clear_mission_audio MissionAudioSlot.Slot3
release_weather 
switch_cops_on_bikes True
remove_blip 35@
remove_blip 283@
remove_blip 284@
remove_blip 285@
remove_blip 286@
mark_model_as_no_longer_needed 443
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 598
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 463
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 32
remove_animation "SMOKING"
remove_animation "MISC"
clear_onscreen_timer $7926
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 100---------------
// Originally: Up, Up and Away!

:HEIST5
script_name 'HEIST5'
gosub @HEIST5_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST5_38
gosub @HEIST5_13715

:HEIST5_38
gosub @HEIST5_13818
terminate_this_script 

:HEIST5_47
register_mission_given 
$onmission = 1
39@ = 406.989
40@ = 2516.9009
41@ = 15.4918
36@ = 0
104@ = 0
100@ = 0
99@ = 0
89@ = 0
101@ = 0
102@ = 0
103@ = 0
62@ = 0
64@ = 0
66@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
68@ = 0
70@ = 0
72@ = 0
74@ = 0
76@ = 0
78@ = 0
80@ = 0
98@ = 0
82@ = 0
84@ = 0
86@ = 0
88@ = 0
112@ = 0
113@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
111@ = 0
125@ = 0
$hst4_deliverytimer = 1000
124@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
139@ = 0
$bankvan1_health_heist5 = 0.0
108@ = 0.0
140@ = 0
141@ = 0
142@ = 0
90@ = 0
143@ = 0
145@ = 365.356
146@ = 2538.113
147@ = 15.712
$gate_drive_car_heist5 = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0
164@ = 0
load_mission_text 'HEIST5'
wait 0
clear_area 2030.108 {y} 1007.929 {z} 9.852 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2030.108 {y} 1007.929 {z} 9.852
set_char_heading $scplayer {heading} 270.0
$iTerminateAllAmbience = 1
set_area_visible 10
load_cutscene 'HEIST6A'

:HEIST5_710
if 
  not has_cutscene_loaded 
goto_if_false @HEIST5_734
wait 0
goto @HEIST5_710

:HEIST5_734
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST5_743
if 
  not has_cutscene_finished 
goto_if_false @HEIST5_767
wait 0
goto @HEIST5_743

:HEIST5_767
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST5_780
if 
  get_fading_status 
goto_if_false @HEIST5_804
wait 0
goto @HEIST5_780

:HEIST5_804
clear_cutscene 
set_area_visible 0
$iTerminateAllAmbience = 0
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
switch_ambient_planes False
switch_police_helis False
155@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Grenade
if 
  5 > 155@
goto_if_false @HEIST5_899
156@ = create_pickup 342 {pickupType} PickupType.Once {x} 2550.967 {y} 2824.343 {z} 10.6

:HEIST5_899
157@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2557.3369 {y} 2817.8091 {z} 10.82
158@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2573.7339 {y} 2814.9099 {z} 10.82
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2030.108 {y} 1007.929 {z} 9.852
set_camera_behind_player 
restore_camera_jumpcut 
59@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 59@
60@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 60@
91@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2604.0 {y} 2837.0 {z} 9.86 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 91@
92@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2608.0 {y} 2827.0 {z} 9.86 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 92@
93@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2585.0 {y} 2815.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 93@
94@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2593.0 {y} 2835.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 94@
95@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2585.0 {y} 2809.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 95@
96@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2575.0 {y} 2833.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 96@
57@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 57@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
58@ = load_char_decision_maker DecisionMakerType.Tough
56@ = load_char_decision_maker DecisionMakerType.Empty
request_model 417
request_model 287
request_model 356
request_model 359
request_model 425
request_model #MINIGUN_BASE
request_model 362
request_model 428
request_model 470
load_mission_audio MissionAudioSlot.Slot3 {audioId} 29400
load_all_models_now 

:HEIST5_1420
if or
  not has_model_loaded 417
  not has_model_loaded 287
  not has_model_loaded 356
  not has_model_loaded 359
  not has_model_loaded 470
goto_if_false @HEIST5_1467
wait 0
goto @HEIST5_1420

:HEIST5_1467
if or
  not has_model_loaded 425
  not has_model_loaded #MINIGUN_BASE
  not has_model_loaded 362
  not has_model_loaded 428
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST5_1513
wait 0
goto @HEIST5_1467

:HEIST5_1513
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:HEIST5_1528
if 
  get_fading_status 
goto_if_false @HEIST5_1552
wait 0
goto @HEIST5_1528

:HEIST5_1552
set_player_control $player1 {state} True
print_now 'HM5_1' {time} 5000 {flag} 1
38@ = add_blip_for_coord 2616.408 {y} 2721.3669 {z} 35.563
set_blip_as_friendly 38@ {state} True
109@ = create_object #MINIGUN_BASE {x} 2595.5491 {y} 2758.04 {z} 22.832
set_object_heading 109@ {heading} 180.0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17200
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17203

:HEIST5_1649
if or
  not locate_char_any_means_3d $scplayer {x} 2502.7019 {y} 2778.55 {z} 9.868 {xRadius} 200.0 {yRadius} 200.0 {zRadius} 400.0 {drawSphere} False
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_1738
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST5_1731
goto @HEIST5_13733

:HEIST5_1731
goto @HEIST5_1649

:HEIST5_1738
34@ = create_car 417 {x} 2614.603 {y} 2720.7451 {z} 35.563
set_car_heading 34@ {heading} 90.0
attach_winch_to_heli 34@ {state} True
lock_car_doors 34@ {lockStatus} CarLock.Locked
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
freeze_car_position 34@ {state} True
104@ = 1
97@ = create_char PedType.Mission1 {modelId} 287 {x} 2502.7019 {y} 2778.55 {z} 9.868
give_weapon_to_char 97@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 97@ {heading} 90.0
set_char_accuracy 97@ {accuracy} 70
set_char_shoot_rate 97@ {rate} 40
set_char_decision_maker 97@ {handleOrTemplate} 56@
67@ = create_char PedType.Mission1 {modelId} 287 {x} 2615.0 {y} 2835.0 {z} 9.86
give_weapon_to_char 67@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 67@ {heading} 105.0
set_char_decision_maker 67@ {handleOrTemplate} 57@
clear_all_char_relationships 67@ {relationshipType} RelationshipType.Hate
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 67@ {accuracy} 70
set_char_shoot_rate 67@ {rate} 40
69@ = create_char PedType.Mission1 {modelId} 287 {x} 2615.0 {y} 2817.0 {z} 9.86
give_weapon_to_char 69@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 69@ {heading} 105.0
set_char_decision_maker 69@ {handleOrTemplate} 57@
clear_all_char_relationships 69@ {relationshipType} RelationshipType.Hate
set_char_relationship 69@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 69@ {accuracy} 70
set_char_shoot_rate 69@ {rate} 40
71@ = create_char PedType.Mission1 {modelId} 287 {x} 2585.927 {y} 2837.0601 {z} 9.82
give_weapon_to_char 71@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 71@ {heading} 127.0
set_char_decision_maker 71@ {handleOrTemplate} 57@
clear_all_char_relationships 71@ {relationshipType} RelationshipType.Hate
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 71@ {accuracy} 70
set_char_shoot_rate 71@ {rate} 50
task_play_anim 71@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
73@ = create_char PedType.Mission1 {modelId} 287 {x} 2568.0 {y} 2821.0 {z} 9.86
give_weapon_to_char 73@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 73@ {heading} 80.0
set_char_decision_maker 73@ {handleOrTemplate} 57@
clear_all_char_relationships 73@ {relationshipType} RelationshipType.Hate
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 73@ {accuracy} 70
set_char_shoot_rate 73@ {rate} 40
75@ = create_char PedType.Mission1 {modelId} 287 {x} 2562.0 {y} 2818.0 {z} 9.86
give_weapon_to_char 75@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 75@ {heading} 96.0
set_char_decision_maker 75@ {handleOrTemplate} 57@
clear_all_char_relationships 75@ {relationshipType} RelationshipType.Hate
set_char_relationship 75@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 75@ {accuracy} 70
set_char_shoot_rate 75@ {rate} 45
task_play_anim 75@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
77@ = create_char PedType.Mission1 {modelId} 287 {x} 2571.9331 {y} 2831.9121 {z} 9.82
give_weapon_to_char 77@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 77@ {heading} 70.0
set_char_decision_maker 77@ {handleOrTemplate} 57@
clear_all_char_relationships 77@ {relationshipType} RelationshipType.Hate
set_char_relationship 77@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 77@ {accuracy} 70
set_char_shoot_rate 77@ {rate} 40
task_play_anim 77@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
79@ = create_char PedType.Mission1 {modelId} 287 {x} 2595.0 {y} 2840.0 {z} 9.86
give_weapon_to_char 79@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 79@ {heading} 96.0
set_char_decision_maker 79@ {handleOrTemplate} 57@
clear_all_char_relationships 79@ {relationshipType} RelationshipType.Hate
set_char_relationship 79@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 79@ {accuracy} 70
set_char_shoot_rate 79@ {rate} 50
81@ = create_char PedType.Mission1 {modelId} 287 {x} 2613.0 {y} 2806.0 {z} 18.999
give_weapon_to_char 81@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 81@ {heading} 96.0
set_char_health 81@ {health} 100
set_char_decision_maker 81@ {handleOrTemplate} 58@
clear_all_char_relationships 81@ {relationshipType} RelationshipType.Hate
set_char_relationship 81@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 81@ {accuracy} 70
set_char_shoot_rate 81@ {rate} 45
83@ = create_char PedType.Mission1 {modelId} 287 {x} 2614.0 {y} 2848.0 {z} 18.999
give_weapon_to_char 83@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 83@ {heading} 96.0
set_char_health 83@ {health} 100
set_char_decision_maker 83@ {handleOrTemplate} 58@
clear_all_char_relationships 83@ {relationshipType} RelationshipType.Hate
set_char_relationship 83@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 83@ {accuracy} 70
set_char_shoot_rate 83@ {rate} 40
85@ = create_char PedType.Mission1 {modelId} 287 {x} 2545.0 {y} 2806.0 {z} 18.999
give_weapon_to_char 85@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 85@ {heading} 274.0
set_char_health 85@ {health} 100
set_char_decision_maker 85@ {handleOrTemplate} 58@
clear_all_char_relationships 85@ {relationshipType} RelationshipType.Hate
set_char_relationship 85@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 85@ {accuracy} 70
set_char_shoot_rate 85@ {rate} 45
87@ = create_char PedType.Mission1 {modelId} 287 {x} 2563.0 {y} 2848.0 {z} 18.999
give_weapon_to_char 87@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 87@ {heading} 274.0
set_char_health 87@ {health} 100
set_char_decision_maker 87@ {handleOrTemplate} 58@
clear_all_char_relationships 87@ {relationshipType} RelationshipType.Hate
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 87@ {accuracy} 70
set_char_shoot_rate 87@ {rate} 40
42@ = create_char PedType.Mission1 {modelId} 287 {x} 2621.0 {y} 2804.0 {z} 9.86
set_char_decision_maker 42@ {handleOrTemplate} 58@
give_weapon_to_char 42@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 42@ {accuracy} 70
set_char_shoot_rate 42@ {rate} 50
flush_route 
extend_route 2629.0 {y} 2795.0 {z} 9.86
extend_route 2642.0 {y} 2788.0 {z} 9.86
extend_route 2659.0 {y} 2786.0 {z} 9.86
extend_route 2621.0 {y} 2804.0 {z} 9.86
task_follow_point_route 42@ {speed} MoveState.Walk {mode} RouteMode.Loop
43@ = create_char PedType.Mission1 {modelId} 287 {x} 2649.0 {y} 2768.0 {z} 18.375
set_char_decision_maker 43@ {handleOrTemplate} 58@
give_weapon_to_char 43@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 43@ {state} True
set_char_heading 43@ {heading} 330.0
set_char_accuracy 43@ {accuracy} 70
set_char_shoot_rate 43@ {rate} 40
task_play_anim 43@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
44@ = create_char PedType.Mission1 {modelId} 287 {x} 2626.3701 {y} 2800.0071 {z} 9.82
set_char_decision_maker 44@ {handleOrTemplate} 58@
set_char_heading 44@ {heading} 14.7
give_weapon_to_char 44@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 44@ {accuracy} 70
set_char_shoot_rate 44@ {rate} 45
task_toggle_duck 44@ {state} True
set_char_stay_in_same_place 44@ {state} True
61@ = create_char PedType.Mission1 {modelId} 287 {x} 2504.0 {y} 2763.0 {z} 9.86
give_weapon_to_char 61@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 61@ {heading} 364.0
set_char_decision_maker 61@ {handleOrTemplate} 58@
set_char_accuracy 61@ {accuracy} 70
set_char_shoot_rate 61@ {rate} 45
flush_route 
extend_route 2504.0 {y} 2753.0 {z} 9.86
extend_route 2504.0 {y} 2737.0 {z} 9.86
extend_route 2505.0 {y} 2711.0 {z} 9.86
extend_route 2504.0 {y} 2737.0 {z} 9.86
extend_route 2504.0 {y} 2753.0 {z} 9.86
extend_route 2504.0 {y} 2763.0 {z} 9.86
task_follow_point_route 61@ {speed} MoveState.Walk {mode} RouteMode.Loop
63@ = create_char PedType.Mission1 {modelId} 287 {x} 2509.0 {y} 2791.0 {z} 9.86
give_weapon_to_char 63@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 63@ {heading} 90.0
set_char_decision_maker 63@ {handleOrTemplate} 58@
set_char_accuracy 63@ {accuracy} 70
set_char_shoot_rate 63@ {rate} 40
flush_route 
extend_route 2511.0 {y} 2809.0 {z} 9.86
extend_route 2511.0 {y} 2833.0 {z} 9.86
extend_route 2511.0 {y} 2844.0 {z} 9.86
extend_route 2527.0 {y} 2844.0 {z} 9.86
extend_route 2511.0 {y} 2844.0 {z} 9.86
extend_route 2511.0 {y} 2833.0 {z} 9.86
extend_route 2511.0 {y} 2809.0 {z} 9.86
extend_route 2509.0 {y} 2791.0 {z} 9.86
task_follow_point_route 63@ {speed} MoveState.Walk {mode} RouteMode.Loop
65@ = create_char PedType.Mission1 {modelId} 287 {x} 2583.0 {y} 2801.0 {z} 9.86
give_weapon_to_char 65@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 65@ {heading} 184.0
set_char_decision_maker 65@ {handleOrTemplate} 58@
set_char_accuracy 65@ {accuracy} 70
set_char_shoot_rate 65@ {rate} 50
flush_route 
extend_route 2568.0 {y} 2801.0 {z} 9.86
extend_route 2551.0 {y} 2801.0 {z} 9.86
extend_route 2538.0 {y} 2801.0 {z} 9.845
extend_route 2551.0 {y} 2801.0 {z} 9.845
extend_route 2568.0 {y} 2801.0 {z} 9.855
extend_route 2583.0 {y} 2801.0 {z} 9.845
task_follow_point_route 65@ {speed} MoveState.Walk {mode} RouteMode.Loop
45@ = create_char PedType.Mission1 {modelId} 287 {x} 2606.1189 {y} 2733.6831 {z} 35.563
set_char_decision_maker 45@ {handleOrTemplate} 58@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 45@ {state} True
set_char_accuracy 45@ {accuracy} 70
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 287 {x} 2628.5081 {y} 2733.4099 {z} 35.564
set_char_decision_maker 46@ {handleOrTemplate} 58@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 46@ {state} True
set_char_accuracy 46@ {accuracy} 70
set_char_shoot_rate 46@ {rate} 40
47@ = create_char PedType.Mission1 {modelId} 287 {x} 2595.2791 {y} 2755.3931 {z} 22.822
set_char_heading 47@ {heading} 80.0
set_char_decision_maker 47@ {handleOrTemplate} 58@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 47@ {state} True
set_char_accuracy 47@ {accuracy} 70
set_char_shoot_rate 47@ {rate} 45
48@ = create_char PedType.Mission1 {modelId} 287 {x} 2658.5061 {y} 2784.1331 {z} 14.93
set_char_heading 48@ {heading} 54.818
set_char_decision_maker 48@ {handleOrTemplate} 58@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 48@ {state} True
set_char_accuracy 48@ {accuracy} 70
set_char_shoot_rate 48@ {rate} 50
$driver_gate_car_heist5 = create_car 470 {x} 2520.7371 {y} 2769.9629 {z} 9.816
set_car_heading $driver_gate_car_heist5 {heading} 0.563
$bankvan1_upright_value_heist5 = create_char_inside_car $driver_gate_car_heist5 {pedType} PedType.Mission1 {modelId} 287
set_char_decision_maker $bankvan1_upright_value_heist5 {handleOrTemplate} 56@
give_weapon_to_char $bankvan1_upright_value_heist5 {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy $bankvan1_upright_value_heist5 {accuracy} 70
set_char_shoot_rate $bankvan1_upright_value_heist5 {rate} 40
car_set_idle $driver_gate_car_heist5

:HEIST5_4206
if 
  112@ <> 2
goto_if_false @HEIST5_7623
wait 0
if 
  100@ >= 1
goto_if_false @HEIST5_4345
if 
  159@ == 0
goto_if_false @HEIST5_4294
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2502.9431 {y} 2778.928 {z} 10.82
play_mission_audio MissionAudioSlot.Slot3
159@ = 1

:HEIST5_4294
if 
  103@ == 1
goto_if_false @HEIST5_4345
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_4345
clear_this_print 'HE5_BD'
103@ = 2

:HEIST5_4345
if 
  154@ == 0
goto_if_false @HEIST5_5814
if 
  $gate_drive_car_heist5 == 0
goto_if_false @HEIST5_4682
if or
  locate_char_any_means_3d $scplayer {x} 2502.7019 {y} 2778.55 {z} 9.868 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
  99@ == 1
  100@ == 1
goto_if_false @HEIST5_4682
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_4682
if 
  not is_char_dead $bankvan1_upright_value_heist5
goto_if_false @HEIST5_4682
if 
  is_char_in_car $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5
goto_if_false @HEIST5_4642
if 
  100@ >= 1
goto_if_false @HEIST5_4552
if 
  154@ == 0
goto_if_false @HEIST5_4552
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4552
if 
  154@ == 0
goto_if_false @HEIST5_4635
task_car_drive_to_coord $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5 {x} 2506.3401 {y} 2772.6899 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
clear_area 2501.4939 {y} 2775.199 {z} 9.8203 {radius} 3.0 {clearParticles} False
$gate_drive_car_heist5 = 1

:HEIST5_4635
goto @HEIST5_4682

:HEIST5_4642
if 
  154@ == 0
goto_if_false @HEIST5_4682
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4682
if 
  $gate_drive_car_heist5 == 1
goto_if_false @HEIST5_4943
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_4943
if 
  not is_char_dead $bankvan1_upright_value_heist5
goto_if_false @HEIST5_4943
if 
  is_char_in_car $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5
goto_if_false @HEIST5_4903
if 
  100@ >= 1
goto_if_false @HEIST5_4809
if 
  154@ == 0
goto_if_false @HEIST5_4809
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4809
if 
  154@ == 0
goto_if_false @HEIST5_4896
if 
  locate_car_3d $driver_gate_car_heist5 {x} 2506.3401 {y} 2772.6899 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_4896
$open_gate_now_flag = 1
$gate_stay_open = 1
$gate_drive_car_heist5 = 2

:HEIST5_4896
goto @HEIST5_4943

:HEIST5_4903
if 
  154@ == 0
goto_if_false @HEIST5_4943
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4943
if 
  $gate_drive_car_heist5 == 2
goto_if_false @HEIST5_5342
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_5311
if 
  not is_car_in_area_3d $driver_gate_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5056
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5056
if 
  not is_char_dead $bankvan1_upright_value_heist5
goto_if_false @HEIST5_5304
if 
  is_char_in_car $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5
goto_if_false @HEIST5_5264
if 
  $open_gate_now_flag == 3
goto_if_false @HEIST5_5199
if 
  154@ == 0
goto_if_false @HEIST5_5192
task_car_drive_to_coord $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5 {x} 2472.188 {y} 2775.916 {z} 9.7097 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
clear_area 2472.188 {y} 2775.916 {z} 9.7097 {radius} 3.0 {clearParticles} False
$gate_drive_car_heist5 = 3

:HEIST5_5192
goto @HEIST5_5257

:HEIST5_5199
if 
  100@ >= 1
goto_if_false @HEIST5_5257
if 
  154@ == 0
goto_if_false @HEIST5_5257
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5257
goto @HEIST5_5304

:HEIST5_5264
if 
  154@ == 0
goto_if_false @HEIST5_5304
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5304
goto @HEIST5_5342

:HEIST5_5311
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5342
if 
  $gate_drive_car_heist5 == 3
goto_if_false @HEIST5_5645
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_5614
if 
  not is_car_in_area_3d $driver_gate_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5455
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5455
if 
  not is_char_dead $bankvan1_upright_value_heist5
goto_if_false @HEIST5_5607
if 
  is_char_in_car $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5
goto_if_false @HEIST5_5567
if 
  locate_car_3d $driver_gate_car_heist5 {x} 2472.188 {y} 2775.916 {z} 9.7097 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_5560
task_car_drive_wander $bankvan1_upright_value_heist5 {vehicle} $driver_gate_car_heist5 {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
$gate_drive_car_heist5 = 4

:HEIST5_5560
goto @HEIST5_5607

:HEIST5_5567
if 
  154@ == 0
goto_if_false @HEIST5_5607
task_kill_char_on_foot $bankvan1_upright_value_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5607
goto @HEIST5_5645

:HEIST5_5614
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5645
if 
  $gate_stay_open == 1
goto_if_false @HEIST5_5814
if 
  4 >= $gate_drive_car_heist5
goto_if_false @HEIST5_5814
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_5783
if 
  not is_car_in_area_3d $driver_gate_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5776
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5776
goto @HEIST5_5814

:HEIST5_5783
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5814
if 
  99@ == 0
goto_if_false @HEIST5_5975
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 100.0 {drawSphere} False
goto_if_false @HEIST5_5975
remove_blip 38@
if 
  not is_car_dead 34@
goto_if_false @HEIST5_5923
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
goto @HEIST5_5956

:HEIST5_5923
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_5956
clear_wanted_level $player1
set_wanted_multiplier 0.0
99@ = 1

:HEIST5_5975
gosub @HEIST5_19769
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_6078
gosub @HEIST5_15414
gosub @HEIST5_14160
if 
  100@ == 1
goto_if_false @HEIST5_6078
if 
  89@ == 0
goto_if_false @HEIST5_6071
gosub @HEIST5_14489
goto @HEIST5_6078

:HEIST5_6071
gosub @HEIST5_14887

:HEIST5_6078
if 
  is_car_dead 34@
goto_if_false @HEIST5_6117
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_6117
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} 2656.5229 {leftBottomY} 2782.1069 {leftBottomZ} 17.0 {rightTopX} 2594.178 {rightTopY} 2695.7729 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_6197
if 
  113@ == 0
goto_if_false @HEIST5_6197
gosub @HEIST5_20269
113@ = 1

:HEIST5_6197
if 
  113@ == 1
goto_if_false @HEIST5_6270
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} 2646.0549 {leftBottomY} 2782.106 {leftBottomZ} 21.0 {rightTopX} 2594.2681 {rightTopY} 2724.261 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_6270
113@ = 2

:HEIST5_6270
if 
  113@ == 2
goto_if_false @HEIST5_7135
if 
  111@ == 0
goto_if_false @HEIST5_6578
114@ = create_car 425 {x} 2253.509 {y} 2806.9409 {z} 15.0
115@ = add_blip_for_car 114@
set_car_health 114@ {health} 4000
117@ = create_char_inside_car 114@ {pedType} PedType.Mission1 {modelId} 287
set_car_forward_speed 114@ {forwardSpeed} 20.0
select_weapons_for_vehicle 114@ {_p2} 1
heli_attack_player 114@ {handle} $player1 {radius} 50.0
add_stuck_car_check 114@ {distance} 2.0 {time} 5000
118@ = create_car 425 {x} 2306.7561 {y} 2806.9409 {z} 15.0
119@ = add_blip_for_car 118@
set_car_health 118@ {health} 4000
121@ = create_char_inside_car 118@ {pedType} PedType.Mission1 {modelId} 287
set_car_forward_speed 118@ {forwardSpeed} 20.0
select_weapons_for_vehicle 118@ {_p2} 1
heli_attack_player 118@ {handle} $player1 {radius} 50.0
add_stuck_car_check 118@ {distance} 2.0 {time} 5000
print_now 'HM5_6' {time} 12000 {flag} 1
110@ = add_blip_for_coord 2595.5491 {y} 2758.04 {z} 22.832
149@ = add_sphere 2596.5891 {y} 2758.158 {z} 22.862 {radius} 1.0
TIMERB = 0
153@ = 1
111@ = 1

:HEIST5_6578
if 
  111@ == 1
goto_if_false @HEIST5_6807
if 
  locate_char_on_foot_3d $scplayer {x} 2596.5891 {y} 2758.158 {z} 22.862 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST5_6798
if 
  151@ == 0
goto_if_false @HEIST5_6680
print_help 'HM5_20'
151@ = 1

:HEIST5_6680
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6791
if 
  152@ == 0
goto_if_false @HEIST5_6791
clear_this_print 'HM5_20'
clear_help 
remove_blip 110@
remove_sphere 149@
attach_char_to_object $scplayer {handle} 109@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Minigun
set_object_visible 109@ {state} False
111@ = 2
152@ = 1

:HEIST5_6791
goto @HEIST5_6807

:HEIST5_6798
clear_help 
151@ = 0

:HEIST5_6807
if 
  111@ == 2
goto_if_false @HEIST5_6849
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6849
111@ = 3

:HEIST5_6849
if 
  111@ == 3
goto_if_false @HEIST5_6927
if 
  150@ == 0
goto_if_false @HEIST5_6903
print_help 'HM5_21'
150@ = 1

:HEIST5_6903
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6927
111@ = 4

:HEIST5_6927
if 
  111@ == 4
goto_if_false @HEIST5_7135
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_7135
if 
  152@ == 1
goto_if_false @HEIST5_7135
detach_char_from_car $scplayer
clear_area 2596.1289 {y} 2757.1121 {z} 22.862 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2596.1289 {y} 2757.1121 {z} 22.862
set_char_heading $scplayer {heading} 217.0
set_object_visible 109@ {state} True
clear_this_print 'HM5_21'
clear_help 
remove_blip 110@
remove_sphere 149@
110@ = add_blip_for_coord 2595.5491 {y} 2758.04 {z} 22.832
149@ = add_sphere 2596.5891 {y} 2758.158 {z} 22.862 {radius} 1.0
150@ = 0
111@ = 1
152@ = 0

:HEIST5_7135
if 
  153@ == 1
goto_if_false @HEIST5_7469
if 
  116@ == 0
goto_if_false @HEIST5_7311
if 
  is_car_dead 114@
goto_if_false @HEIST5_7213
remove_blip 115@
112@ += 1
116@ = 1
goto @HEIST5_7311

:HEIST5_7213
if 
  is_car_stuck 114@
goto_if_false @HEIST5_7311
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 133@ = $player_x
133@ += 80.0
set_lvar_float_to_var_float 134@ = $player_y
134@ += 80.0
set_lvar_float_to_var_float 135@ = $player_z
135@ += 50.0
set_car_coordinates 114@ {x} 133@ {y} 134@ {z} 135@

:HEIST5_7311
if 
  120@ == 0
goto_if_false @HEIST5_7469
if 
  is_car_dead 118@
goto_if_false @HEIST5_7371
remove_blip 119@
112@ += 1
120@ = 1
goto @HEIST5_7469

:HEIST5_7371
if 
  is_car_stuck 118@
goto_if_false @HEIST5_7469
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 136@ = $player_x
136@ += 90.0
set_lvar_float_to_var_float 137@ = $player_y
137@ += 90.0
set_lvar_float_to_var_float 138@ = $player_z
138@ += 60.0
set_car_coordinates 118@ {x} 136@ {y} 137@ {z} 138@

:HEIST5_7469
if 
  TIMERB > 240000
goto_if_false @HEIST5_7616
if 
  116@ == 0
goto_if_false @HEIST5_7553
if 
  not is_car_dead 114@
goto_if_false @HEIST5_7553
explode_car 114@
explode_car 114@
remove_blip 115@
112@ += 1
116@ = 1

:HEIST5_7553
if 
  120@ == 0
goto_if_false @HEIST5_7616
if 
  not is_car_dead 118@
goto_if_false @HEIST5_7616
explode_car 118@
explode_car 118@
remove_blip 119@
112@ += 1
120@ = 1

:HEIST5_7616
goto @HEIST5_4206

:HEIST5_7623
$gate_stay_open = 0
clear_this_print 'HM5_20'
clear_this_print 'HM5_21'
clear_help 
remove_sphere 149@
remove_blip 38@
remove_blip 110@
remove_blip 115@
remove_blip 119@
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed 362
if 
  152@ == 1
goto_if_false @HEIST5_7766
detach_char_from_car $scplayer
clear_area 2596.1289 {y} 2757.1121 {z} 22.862 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2596.1289 {y} 2757.1121 {z} 22.862
set_char_heading $scplayer {heading} 217.0

:HEIST5_7766
if 
  does_object_exist 109@
goto_if_false @HEIST5_7789
set_object_visible 109@ {state} True

:HEIST5_7789
if 
  not is_car_dead 34@
goto_if_false @HEIST5_7841
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 34@ {state} False
goto @HEIST5_7864

:HEIST5_7841
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_7864
print_now 'HM5_7' {time} 8000 {flag} 1

:HEIST5_7880
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_8122
wait 0
gosub @HEIST5_19769
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_7992
if 
  100@ == 1
goto_if_false @HEIST5_7992
if 
  89@ == 0
goto_if_false @HEIST5_7985
gosub @HEIST5_14489
goto @HEIST5_7992

:HEIST5_7985
gosub @HEIST5_14887

:HEIST5_7992
if 
  is_car_dead 34@
goto_if_false @HEIST5_8038
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715
goto @HEIST5_8115

:HEIST5_8038
if 
  locate_char_on_foot_3d $scplayer {x} 2614.603 {y} 2720.7451 {z} 35.563 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HEIST5_8115
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 34@ {state} False

:HEIST5_8115
goto @HEIST5_7880

:HEIST5_8122
if 
  159@ == 1
goto_if_false @HEIST5_8151
clear_mission_audio MissionAudioSlot.Slot3
159@ = 0

:HEIST5_8151
clear_wanted_level $player1
remove_blip 35@
mark_model_as_no_longer_needed 359
122@ = create_car 428 {x} 2847.3911 {y} 904.2733 {z} 9.75
set_upsidedown_car_not_damaged 122@ {state} True
lock_car_doors 122@ {lockStatus} CarLock.Locked
set_car_heading 122@ {heading} 353.511
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
$bankvan1_health_heist5 = get_car_upright_value 122@
129@ = 1
print_now 'HM5_8' {time} 8000 {flag} 1
TIMERA = 0

:HEIST5_8266
if 
  125@ == 0
goto_if_false @HEIST5_8919
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_8412
if 
  is_car_dead 122@
goto_if_false @HEIST5_8389
if 
  129@ == 1
goto_if_false @HEIST5_8352
remove_blip 123@
129@ = 0

:HEIST5_8352
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13715
124@ = 1
goto @HEIST5_8412

:HEIST5_8389
$hst4_deliverytimer = get_car_health 122@
$hst4_deliverytimer /= 10
$bankvan1_health_heist5 = get_car_upright_value 122@

:HEIST5_8412
if 
  is_car_dead 34@
goto_if_false @HEIST5_8458
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715
goto @HEIST5_8912

:HEIST5_8458
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_8803
if 
  163@ == 0
goto_if_false @HEIST5_8543
if 
  TIMERA >= 5000
goto_if_false @HEIST5_8543
clear_this_print 'HM5_8'
print_help 'WINCH_V'
163@ = 1

:HEIST5_8543
if 
  90@ == 0
goto_if_false @HEIST5_8616
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 80.0 {drawSphere} False
goto_if_false @HEIST5_8616
gosub @HEIST5_20962

:HEIST5_8616
126@, 127@, 128@ = grab_entity_on_winch 34@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8687
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_8687
$hst4_deliverytimer = get_car_health 122@
$hst4_deliverytimer /= 10
125@ = 1

:HEIST5_8687
if 
  36@ == 1
goto_if_false @HEIST5_8796
$blob_flag = 1
remove_blip 35@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8789
if 
  129@ == 0
goto_if_false @HEIST5_8789
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
129@ = 1

:HEIST5_8789
36@ = 0

:HEIST5_8796
goto @HEIST5_8912

:HEIST5_8803
if 
  36@ == 0
goto_if_false @HEIST5_8912
$blob_flag = 0
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8874
if 
  129@ == 1
goto_if_false @HEIST5_8874
remove_blip 123@
129@ = 0

:HEIST5_8874
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
36@ = 1

:HEIST5_8912
goto @HEIST5_8266

:HEIST5_8919
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8987
if 
  129@ == 1
goto_if_false @HEIST5_8980
remove_blip 123@
set_car_proofs 122@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
129@ = 0

:HEIST5_8980
goto @HEIST5_9047

:HEIST5_8987
if 
  129@ == 1
goto_if_false @HEIST5_9017
remove_blip 123@
129@ = 0

:HEIST5_9017
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13715
124@ = 1

:HEIST5_9047
mark_model_as_no_longer_needed 287
request_model 117
print_now 'HM5_2' {time} 5000 {flag} 1
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
139@ = 1
36@ = 0
129@ = 0
$blob_flag = 1

:HEIST5_9114
if or
  142@ <> 1
  not locate_stopped_car_3d 122@ {x} 39@ {y} 40@ {z} 41@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} $blob_flag
  not has_model_loaded 117
goto_if_false @HEIST5_10598
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_9536
if 
  is_car_dead 122@
goto_if_false @HEIST5_9273
if 
  129@ == 1
goto_if_false @HEIST5_9236
remove_blip 123@
129@ = 0

:HEIST5_9236
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13715
124@ = 1
goto @HEIST5_9536

:HEIST5_9273
$hst4_deliverytimer = get_car_health 122@
$hst4_deliverytimer /= 10
$bankvan1_health_heist5 = get_car_upright_value 122@
if 
  locate_stopped_car_3d 122@ {x} 39@ {y} 40@ {z} 41@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST5_9529
if 
  140@ == 0
goto_if_false @HEIST5_9493
if and
  1.0 >= $bankvan1_health_heist5
  $bankvan1_health_heist5 > 0.8
goto_if_false @HEIST5_9438
if 
  not is_car_in_air_proper 122@
goto_if_false @HEIST5_9424
winch_can_pick_vehicle_up 122@ {state} False
142@ = 1
goto @HEIST5_9431

:HEIST5_9424
142@ = 0

:HEIST5_9431
goto @HEIST5_9445

:HEIST5_9438
142@ = 0

:HEIST5_9445
if 
  142@ == 0
goto_if_false @HEIST5_9486
print_now 'HM5_12' {time} 8000 {flag} 1
140@ = 1

:HEIST5_9486
goto @HEIST5_9522

:HEIST5_9493
if 
  142@ == 1
goto_if_false @HEIST5_9522
clear_this_print 'HM5_12'

:HEIST5_9522
goto @HEIST5_9536

:HEIST5_9529
140@ = 0

:HEIST5_9536
if 
  is_car_dead 34@
goto_if_false @HEIST5_9582
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715
goto @HEIST5_10591

:HEIST5_9582
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_10463
126@, 127@, 128@ = grab_entity_on_winch 34@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10076
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_9783
if 
  129@ == 1
goto_if_false @HEIST5_9695
remove_blip 123@
$hst4_deliverytimer = get_car_health 122@
$hst4_deliverytimer /= 10
129@ = 0

:HEIST5_9695
if 
  139@ == 0
goto_if_false @HEIST5_9762
remove_blip 37@
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
print_now 'HM5_2' {time} 5000 {flag} 1
$blob_flag = 1
139@ = 1

:HEIST5_9762
141@ = 0
125@ = 1
goto @HEIST5_10076

:HEIST5_9783
130@, 131@, 132@ = get_car_coordinates 122@
105@, 106@, 107@ = get_car_coordinates 34@
108@ = get_distance_between_coords_2d 105@ {fromY} 106@ {toX} 130@ {toZ} 131@
if 
  10.0 > 108@
goto_if_false @HEIST5_9971
if 
  not is_line_of_sight_clear 105@ {fromY} 106@ {fromZ} 107@ {toX} 130@ {toY} 131@ {toZ} 132@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @HEIST5_9971
if 
  141@ == 0
goto_if_false @HEIST5_9929
TIMERA = 0
141@ = 1
goto @HEIST5_9971

:HEIST5_9929
if 
  TIMERA >= 10000
goto_if_false @HEIST5_9971
print_now 'HM5_14' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_9971
125@ = 0
if 
  139@ == 1
goto_if_false @HEIST5_10008
remove_blip 37@
139@ = 0

:HEIST5_10008
if 
  129@ == 0
goto_if_false @HEIST5_10076
remove_blip 123@
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
$blob_flag = 0
129@ = 1

:HEIST5_10076
if 
  36@ == 1
goto_if_false @HEIST5_10456
remove_blip 35@
if 
  125@ == 1
goto_if_false @HEIST5_10198
if 
  139@ == 0
goto_if_false @HEIST5_10161
remove_blip 37@
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
139@ = 1

:HEIST5_10161
print_now 'HM5_2' {time} 5000 {flag} 1
$blob_flag = 1
36@ = 0
goto @HEIST5_10456

:HEIST5_10198
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10449
if 
  129@ == 0
goto_if_false @HEIST5_10449
remove_blip 123@
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
$blob_flag = 0
130@, 131@, 132@ = get_car_coordinates 122@
105@, 106@, 107@ = get_car_coordinates 34@
108@ = get_distance_between_coords_2d 105@ {fromY} 106@ {toX} 130@ {toZ} 131@
if 
  not is_line_of_sight_clear 105@ {fromY} 106@ {fromZ} 107@ {toX} 130@ {toY} 131@ {toZ} 132@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @HEIST5_10442
if 
  141@ == 0
goto_if_false @HEIST5_10400
TIMERA = 0
141@ = 1
goto @HEIST5_10442

:HEIST5_10400
if 
  TIMERA >= 10000
goto_if_false @HEIST5_10442
print_now 'HM5_14' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_10442
129@ = 1

:HEIST5_10449
36@ = 0

:HEIST5_10456
goto @HEIST5_10591

:HEIST5_10463
if 
  36@ == 0
goto_if_false @HEIST5_10591
$blob_flag = 0
if 
  139@ == 1
goto_if_false @HEIST5_10518
remove_blip 37@
139@ = 0

:HEIST5_10518
if 
  129@ == 1
goto_if_false @HEIST5_10548
remove_blip 123@
129@ = 0

:HEIST5_10548
remove_blip 35@
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
36@ = 1

:HEIST5_10591
goto @HEIST5_9114

:HEIST5_10598
clear_this_print 'HM5_12'
remove_blip 37@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10693
remove_blip 123@
if 
  not is_car_dead 34@
goto_if_false @HEIST5_10663
release_entity_from_winch 34@
goto @HEIST5_10686

:HEIST5_10663
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_10686
goto @HEIST5_10721

:HEIST5_10693
remove_blip 123@
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_10721
print_now 'HM5_13' {time} 8000 {flag} 1
144@ = add_blip_for_coord 145@ {y} 146@ {z} 147@
36@ = 0
$blob_flag = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17205
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17207

:HEIST5_10779
if or
  not locate_stopped_car_3d 34@ {x} 145@ {y} 146@ {z} 147@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} 34@
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_11100
wait 0
if 
  is_car_dead 122@
goto_if_false @HEIST5_10886
remove_blip 123@
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_10886
if 
  is_car_dead 34@
goto_if_false @HEIST5_10932
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715
goto @HEIST5_11093

:HEIST5_10932
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_11025
if 
  36@ == 1
goto_if_false @HEIST5_11018
remove_blip 35@
print_now 'HM5_13' {time} 8000 {flag} 1
144@ = add_blip_for_coord 145@ {y} 146@ {z} 147@
$blob_flag = 1
36@ = 0

:HEIST5_11018
goto @HEIST5_11093

:HEIST5_11025
if 
  36@ == 0
goto_if_false @HEIST5_11093
remove_blip 144@
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
36@ = 1

:HEIST5_11093
goto @HEIST5_10779

:HEIST5_11100
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 144@
remove_blip 35@
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
delete_car 122@
mark_model_as_no_longer_needed 428
make_player_gang_disappear 
145@ = 365.87
146@ = 2537.8679
if 
  not is_car_dead 34@
goto_if_false @HEIST5_11229
set_car_coordinates 34@ {x} 145@ {y} 146@ {z} 147@
set_car_heading 34@ {heading} 214.0
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @HEIST5_11252

:HEIST5_11229
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_11252
set_fixed_camera_position 371.7336 {y} 2544.856 {z} 16.6086 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 371.3514 {y} 2543.9441 {z} 16.7564 {switchStyle} SwitchType.JumpCut
wait 2000
skip_cutscene_start_internal @HEIST5_13375
if 
  not is_car_dead 34@
goto_if_false @HEIST5_11360
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up_for_scripted_speech $scplayer {state} True
task_leave_car $scplayer {vehicle} 34@
goto @HEIST5_11383

:HEIST5_11360
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_11383
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST5_11449
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11442
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_11442
goto @HEIST5_11383

:HEIST5_11449
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
148@ = create_char PedType.CivMale {modelId} 117 {x} 375.081 {y} 2535.866 {z} 15.64
set_char_decision_maker 148@ {handleOrTemplate} 56@
set_char_only_damaged_by_player 148@ {state} True
set_char_proofs 148@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 148@ {state} True
task_go_straight_to_coord $scplayer {x} 370.364 {y} 2538.7529 {z} 15.643 {speed} MoveState.Walk {time} -1

:HEIST5_11541
if 
  not locate_stopped_char_on_foot_3d $scplayer {x} 370.364 {y} 2538.7529 {z} 15.643 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_11678
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11632
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_11632
if 
  is_char_dead 148@
goto_if_false @HEIST5_11671
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_11671
goto @HEIST5_11541

:HEIST5_11678
if 
  not is_char_dead 148@
goto_if_false @HEIST5_11790
task_goto_char 148@ {target} $scplayer {time} -1 {radius} 1.3
play_mission_audio MissionAudioSlot.Slot1
print_now 'HE5_AA' {time} 10000 {flag} 1
start_char_facial_talk 148@ {duration} 999999
task_play_anim_non_interruptable 148@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char $scplayer {target} 148@
goto @HEIST5_11813

:HEIST5_11790
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_11813
TIMERA = 0

:HEIST5_11820
if or
  not locate_char_on_foot_char_3d 148@ {target} $scplayer {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST5_12014
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11922
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AA'
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_11922
if 
  is_char_dead 148@
goto_if_false @HEIST5_11968
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715
goto @HEIST5_12007

:HEIST5_11968
if 
  TIMERA >= 15000
goto_if_false @HEIST5_12007
set_char_coordinates 148@ {x} 371.364 {y} 2538.7529 {z} 15.643

:HEIST5_12007
goto @HEIST5_11820

:HEIST5_12014
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12042
clear_char_tasks 148@
goto @HEIST5_12065

:HEIST5_12042
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12065
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'HE5_AA'
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12108
stop_char_facial_talk 148@
goto @HEIST5_12131

:HEIST5_12108
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12131
if 
  is_player_playing $player1
goto_if_false @HEIST5_12274
play_mission_audio MissionAudioSlot.Slot2
print_now 'HE5_AB' {time} 10000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 999999
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12244
task_turn_char_to_face_char $scplayer {target} 148@
goto @HEIST5_12267

:HEIST5_12244
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12267
goto @HEIST5_12293

:HEIST5_12274
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'

:HEIST5_12293
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17206

:HEIST5_12300
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST5_12443
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_12362
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_12362
if 
  is_char_dead 148@
goto_if_false @HEIST5_12401
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12401
if 
  not is_player_playing $player1
goto_if_false @HEIST5_12436
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'

:HEIST5_12436
goto @HEIST5_12300

:HEIST5_12443
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12557
play_mission_audio MissionAudioSlot.Slot1
print_now 'HE5_AC' {time} 10000 {flag} 1
start_char_facial_talk 148@ {duration} 999999
task_play_anim_non_interruptable 148@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @HEIST5_12599

:HEIST5_12557
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AC'
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12599
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17204

:HEIST5_12606
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_12733
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_12668
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_12668
if 
  is_char_dead 148@
goto_if_false @HEIST5_12726
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AC'
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12726
goto @HEIST5_12606

:HEIST5_12733
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'HE5_AC'
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12776
stop_char_facial_talk 148@
goto @HEIST5_12799

:HEIST5_12776
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12799
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12827
clear_char_tasks 148@
goto @HEIST5_12850

:HEIST5_12827
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_12850
if 
  is_player_playing $player1
goto_if_false @HEIST5_12939
play_mission_audio MissionAudioSlot.Slot2
print_now 'HE5_AD' {time} 10000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 999999
goto @HEIST5_12958

:HEIST5_12939
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'

:HEIST5_12958
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_13097
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13016
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_13016
if 
  is_char_dead 148@
goto_if_false @HEIST5_13055
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_13055
if 
  not is_player_playing $player1
goto_if_false @HEIST5_13090
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'

:HEIST5_13090
goto @HEIST5_12958

:HEIST5_13097
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
if 
  not is_char_dead 148@
goto_if_false @HEIST5_13169
task_go_straight_to_coord 148@ {x} 378.998 {y} 2534.0979 {z} 15.624 {speed} MoveState.Walk {time} -1
goto @HEIST5_13192

:HEIST5_13169
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_13192
wait 1200
task_go_straight_to_coord $scplayer {x} 379.998 {y} 2534.0979 {z} 15.624 {speed} MoveState.Walk {time} -1
TIMERA = 0

:HEIST5_13228
if 
  3000 >= TIMERA
goto_if_false @HEIST5_13336
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13290
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13715

:HEIST5_13290
if 
  is_char_dead 148@
goto_if_false @HEIST5_13329
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13715

:HEIST5_13329
goto @HEIST5_13228

:HEIST5_13336
delete_car 34@
delete_char 148@
set_char_coordinates $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594
set_camera_behind_player 
164@ = 1

:HEIST5_13375
skip_cutscene_end 
if 
  164@ == 0
goto_if_false @HEIST5_13677
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:HEIST5_13410
if 
  get_fading_status 
goto_if_false @HEIST5_13434
wait 0
goto @HEIST5_13410

:HEIST5_13434
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_help 
clear_prints 
switch_widescreen False
clear_area 388.007 {y} 2532.5459 {z} 15.594 {radius} 5.0 {clearParticles} True
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_13594
165@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594

:HEIST5_13518
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_13577
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13554

:HEIST5_13554
if 
  is_char_dead 148@
goto_if_false @HEIST5_13570

:HEIST5_13570
goto @HEIST5_13518

:HEIST5_13577
set_char_heading $scplayer {heading} 270.0
goto @HEIST5_13624

:HEIST5_13594
set_char_coordinates $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594
set_char_heading $scplayer {heading} 270.0

:HEIST5_13624
set_camera_behind_player 
restore_camera_jumpcut 
delete_car 34@
delete_char 148@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:HEIST5_13653
if 
  get_fading_status 
goto_if_false @HEIST5_13677
wait 0
goto @HEIST5_13653

:HEIST5_13677
make_player_gang_reappear 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
goto @HEIST5_13733

:HEIST5_13715
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST5_13733
$flag_heist_mission_counter += 1
register_mission_passed 'HEIST_5'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 0 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 25
clear_wanted_level $player1
if 
  $1384 == 0
goto_if_false @HEIST5_13805
remove_blip $Theheist_contact_blip

:HEIST5_13805
switch_car_generator $hm5_car_gen {amount} 101
play_mission_passed_tune 1
return 

:HEIST5_13818
detach_char_from_car $scplayer
set_wanted_multiplier 1.0
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST5_13855
switch_car_generator $d5_bronze_generator {amount} 101

:HEIST5_13855
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST5_13880
switch_car_generator $d5_silver_generator {amount} 101

:HEIST5_13880
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST5_13905
switch_car_generator $d5_gold_generator {amount} 101

:HEIST5_13905
if 
  not has_pickup_been_collected 156@
goto_if_false @HEIST5_13926
remove_pickup 156@

:HEIST5_13926
if 
  not has_pickup_been_collected 157@
goto_if_false @HEIST5_13947
remove_pickup 157@

:HEIST5_13947
if 
  not has_pickup_been_collected 158@
goto_if_false @HEIST5_13968
remove_pickup 158@

:HEIST5_13968
$gate_stay_open = 0
switch_ambient_planes True
switch_police_helis True
$onmission = 0
$timer_mobile_start = get_game_timer 
remove_sphere 149@
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed #MINIGUN_BASE
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 117
remove_decision_maker 57@
remove_decision_maker 58@
remove_decision_maker 56@
remove_blip 35@
remove_blip 37@
remove_blip 38@
remove_blip 144@
remove_blip 110@
remove_blip 115@
remove_blip 119@
remove_blip 123@
clear_sequence_task 59@
clear_sequence_task 60@
clear_sequence_task 91@
clear_sequence_task 92@
clear_sequence_task 93@
clear_sequence_task 94@
clear_sequence_task 95@
clear_sequence_task 96@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
mission_has_finished 
return 

:HEIST5_14160
if 
  not is_char_dead 45@
goto_if_false @HEIST5_14269
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14240
remove_all_char_weapons 45@
give_weapon_to_char 45@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 45@ {accuracy} 85
set_char_shoot_rate 45@ {rate} 40
goto @HEIST5_14269

:HEIST5_14240
remove_all_char_weapons 45@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 45@ {accuracy} 70
set_char_shoot_rate 45@ {rate} 40

:HEIST5_14269
if 
  not is_char_dead 46@
goto_if_false @HEIST5_14378
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14349
remove_all_char_weapons 46@
give_weapon_to_char 46@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 46@ {accuracy} 85
set_char_shoot_rate 46@ {rate} 40
goto @HEIST5_14378

:HEIST5_14349
remove_all_char_weapons 46@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 46@ {accuracy} 70
set_char_shoot_rate 46@ {rate} 45

:HEIST5_14378
if 
  not is_char_dead 47@
goto_if_false @HEIST5_14487
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14458
remove_all_char_weapons 47@
give_weapon_to_char 47@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 47@ {accuracy} 85
set_char_shoot_rate 47@ {rate} 40
goto @HEIST5_14487

:HEIST5_14458
remove_all_char_weapons 47@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 47@ {accuracy} 70
set_char_shoot_rate 47@ {rate} 50

:HEIST5_14487
return 

:HEIST5_14489
if 
  89@ == 0
goto_if_false @HEIST5_14885
if 
  not is_char_dead 61@
goto_if_false @HEIST5_14531
task_kill_char_on_foot 61@ {target} $scplayer

:HEIST5_14531
if 
  not is_char_dead 63@
goto_if_false @HEIST5_14555
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST5_14555
if 
  not is_char_dead 65@
goto_if_false @HEIST5_14579
task_kill_char_on_foot 65@ {target} $scplayer

:HEIST5_14579
if 
  not is_char_dead 67@
goto_if_false @HEIST5_14603
perform_sequence_task 67@ {sequence} 91@

:HEIST5_14603
if 
  not is_char_dead 69@
goto_if_false @HEIST5_14627
perform_sequence_task 69@ {sequence} 92@

:HEIST5_14627
if 
  not is_char_dead 71@
goto_if_false @HEIST5_14658
task_kill_char_on_foot 71@ {target} $scplayer
set_char_stay_in_same_place 71@ {state} True

:HEIST5_14658
if 
  not is_char_dead 73@
goto_if_false @HEIST5_14689
task_kill_char_on_foot 73@ {target} $scplayer
set_char_stay_in_same_place 73@ {state} True

:HEIST5_14689
if 
  not is_char_dead 75@
goto_if_false @HEIST5_14720
task_kill_char_on_foot 75@ {target} $scplayer
set_char_stay_in_same_place 75@ {state} True

:HEIST5_14720
if 
  not is_char_dead 77@
goto_if_false @HEIST5_14751
task_kill_char_on_foot 77@ {target} $scplayer
set_char_stay_in_same_place 77@ {state} True

:HEIST5_14751
if 
  not is_char_dead 79@
goto_if_false @HEIST5_14782
task_kill_char_on_foot 79@ {target} $scplayer
set_char_stay_in_same_place 79@ {state} True

:HEIST5_14782
if 
  not is_char_dead 81@
goto_if_false @HEIST5_14806
perform_sequence_task 81@ {sequence} 93@

:HEIST5_14806
if 
  not is_char_dead 83@
goto_if_false @HEIST5_14830
perform_sequence_task 83@ {sequence} 94@

:HEIST5_14830
if 
  not is_char_dead 85@
goto_if_false @HEIST5_14854
perform_sequence_task 85@ {sequence} 95@

:HEIST5_14854
if 
  not is_char_dead 87@
goto_if_false @HEIST5_14878
perform_sequence_task 87@ {sequence} 96@

:HEIST5_14878
89@ = 1

:HEIST5_14885
return 

:HEIST5_14887
if 
  not is_char_dead 67@
goto_if_false @HEIST5_14962
if 
  locate_char_on_foot_char_3d $scplayer {target} 67@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_14954
set_char_decision_maker 67@ {handleOrTemplate} 58@
goto @HEIST5_14962

:HEIST5_14954
set_char_decision_maker 67@ {handleOrTemplate} 57@

:HEIST5_14962
if 
  not is_char_dead 69@
goto_if_false @HEIST5_15037
if 
  locate_char_on_foot_char_3d $scplayer {target} 69@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15029
set_char_decision_maker 69@ {handleOrTemplate} 58@
goto @HEIST5_15037

:HEIST5_15029
set_char_decision_maker 69@ {handleOrTemplate} 57@

:HEIST5_15037
if 
  not is_char_dead 71@
goto_if_false @HEIST5_15112
if 
  locate_char_on_foot_char_3d $scplayer {target} 71@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15104
set_char_decision_maker 71@ {handleOrTemplate} 58@
goto @HEIST5_15112

:HEIST5_15104
set_char_decision_maker 71@ {handleOrTemplate} 57@

:HEIST5_15112
if 
  not is_char_dead 73@
goto_if_false @HEIST5_15187
if 
  locate_char_on_foot_char_3d $scplayer {target} 73@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15179
set_char_decision_maker 73@ {handleOrTemplate} 58@
goto @HEIST5_15187

:HEIST5_15179
set_char_decision_maker 73@ {handleOrTemplate} 57@

:HEIST5_15187
if 
  not is_char_dead 75@
goto_if_false @HEIST5_15262
if 
  locate_char_on_foot_char_3d $scplayer {target} 75@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15254
set_char_decision_maker 75@ {handleOrTemplate} 58@
goto @HEIST5_15262

:HEIST5_15254
set_char_decision_maker 75@ {handleOrTemplate} 57@

:HEIST5_15262
if 
  not is_char_dead 77@
goto_if_false @HEIST5_15337
if 
  locate_char_on_foot_char_3d $scplayer {target} 77@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15329
set_char_decision_maker 77@ {handleOrTemplate} 58@
goto @HEIST5_15337

:HEIST5_15329
set_char_decision_maker 77@ {handleOrTemplate} 57@

:HEIST5_15337
if 
  not is_char_dead 79@
goto_if_false @HEIST5_15412
if 
  locate_char_on_foot_char_3d $scplayer {target} 79@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15404
set_char_decision_maker 79@ {handleOrTemplate} 58@
goto @HEIST5_15412

:HEIST5_15404
set_char_decision_maker 79@ {handleOrTemplate} 57@

:HEIST5_15412
return 

:HEIST5_15414
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16701
if 
  100@ == 0
goto_if_false @HEIST5_16544
if or
  is_player_targetting_char $player1 {handle} 97@
  has_char_been_damaged_by_weapon 97@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_15481
100@ = 1

:HEIST5_15481
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_16530
if 
  not is_player_using_jetpack $player1
goto_if_false @HEIST5_16516
if 
  $player_fall_state == 0
goto_if_false @HEIST5_16502
if or
  has_char_spotted_char 97@ {target} $scplayer
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_16495
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  101@ == 0
goto_if_false @HEIST5_15748
if 
  locate_char_on_foot_char_3d $scplayer {target} 97@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @HEIST5_15671
print_now 'HE5_BA' {time} 8000 {flag} 1

:HEIST5_15671
160@, 161@, 162@ = get_char_coordinates 97@
set_mission_audio_position MissionAudioSlot.Slot1 {x} 160@ {y} 161@ {z} 162@
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 97@ {duration} 999999
shut_char_up_for_scripted_speech 97@ {state} True
TIMERB = 0
task_goto_char 97@ {target} $scplayer {time} -1 {radius} 2.0
101@ = 1

:HEIST5_15748
if 
  101@ == 1
goto_if_false @HEIST5_15802
102@ = get_script_task_status 97@ {taskId} 1497
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @HEIST5_15802
101@ = 2

:HEIST5_15802
if 
  101@ >= 1
goto_if_false @HEIST5_16495

:HEIST5_15820
if 
  3000 > TIMERB
goto_if_false @HEIST5_16188
wait 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST5_15911
clear_this_print 'HE5_BA'
if 
  not is_char_dead 97@
goto_if_false @HEIST5_15904
stop_char_facial_talk 97@
shut_char_up_for_scripted_speech 97@ {state} False
goto @HEIST5_15911

:HEIST5_15904
98@ = 1

:HEIST5_15911
if 
  100@ == 1
goto_if_false @HEIST5_16063
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16001
if 
  103@ == 0
goto_if_false @HEIST5_15994
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_15994
goto @HEIST5_16056

:HEIST5_16001
if 
  98@ == 0
goto_if_false @HEIST5_16056
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16056
goto @HEIST5_16181

:HEIST5_16063
if 
  98@ == 0
goto_if_false @HEIST5_16181
if 
  is_char_dead 97@
goto_if_false @HEIST5_16148
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
100@ = 1
98@ = 1
goto @HEIST5_16181

:HEIST5_16148
if or
  is_player_targetting_char $player1 {handle} 97@
  has_char_been_damaged_by_weapon 97@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_16181
100@ = 1

:HEIST5_16181
goto @HEIST5_15820

:HEIST5_16188
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_16495
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16433
if 
  100@ >= 0
goto_if_false @HEIST5_16370
if 
  locate_char_on_foot_char_3d $scplayer {target} 97@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @HEIST5_16322
print_now 'HE5_BD' {time} 8000 {flag} 1

:HEIST5_16322
start_char_facial_talk 97@ {duration} 999999
shut_char_up_for_scripted_speech 97@ {state} True
160@, 161@, 162@ = get_char_coordinates 97@
set_mission_audio_position MissionAudioSlot.Slot2 {x} 160@ {y} 161@ {z} 162@
play_mission_audio MissionAudioSlot.Slot2

:HEIST5_16370
if 
  103@ == 0
goto_if_false @HEIST5_16419
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_16419
100@ = 1
goto @HEIST5_16495

:HEIST5_16433
if 
  98@ == 0
goto_if_false @HEIST5_16488
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16488
100@ = 1

:HEIST5_16495
goto @HEIST5_16509

:HEIST5_16502
100@ = 1

:HEIST5_16509
goto @HEIST5_16523

:HEIST5_16516
100@ = 1

:HEIST5_16523
goto @HEIST5_16537

:HEIST5_16530
100@ = 1

:HEIST5_16537
goto @HEIST5_16694

:HEIST5_16544
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16632
if 
  103@ == 0
goto_if_false @HEIST5_16625
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Like
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 97@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_16625
goto @HEIST5_16694

:HEIST5_16632
if 
  98@ == 0
goto_if_false @HEIST5_16687
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16687
100@ = 1

:HEIST5_16694
goto @HEIST5_16763

:HEIST5_16701
if 
  98@ == 0
goto_if_false @HEIST5_16756
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16756
100@ = 1

:HEIST5_16763
return 

:HEIST5_16765
if 
  62@ == 0
goto_if_false @HEIST5_16952
if 
  is_char_dead 61@
goto_if_false @HEIST5_16820
100@ = 1
62@ = 1
goto @HEIST5_16952

:HEIST5_16820
if 
  99@ == 1
goto_if_false @HEIST5_16952
if 
  100@ == 0
goto_if_false @HEIST5_16952
if or
  is_player_targetting_char $player1 {handle} 61@
  has_char_been_damaged_by_weapon 61@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_16889
100@ = 1

:HEIST5_16889
if 
  101@ > 1
goto_if_false @HEIST5_16952
if 
  TIMERB > 3000
goto_if_false @HEIST5_16952
if 
  has_char_spotted_char 61@ {target} $scplayer
goto_if_false @HEIST5_16952
100@ = 1

:HEIST5_16952
if 
  64@ == 0
goto_if_false @HEIST5_17139
if 
  is_char_dead 63@
goto_if_false @HEIST5_17007
100@ = 1
64@ = 1
goto @HEIST5_17139

:HEIST5_17007
if 
  99@ == 1
goto_if_false @HEIST5_17139
if 
  100@ == 0
goto_if_false @HEIST5_17139
if or
  is_player_targetting_char $player1 {handle} 63@
  has_char_been_damaged_by_weapon 63@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17076
100@ = 1

:HEIST5_17076
if 
  101@ > 1
goto_if_false @HEIST5_17139
if 
  TIMERB > 3000
goto_if_false @HEIST5_17139
if 
  has_char_spotted_char 63@ {target} $scplayer
goto_if_false @HEIST5_17139
100@ = 1

:HEIST5_17139
if 
  66@ == 0
goto_if_false @HEIST5_17326
if 
  is_char_dead 65@
goto_if_false @HEIST5_17194
100@ = 1
66@ = 1
goto @HEIST5_17326

:HEIST5_17194
if 
  99@ == 1
goto_if_false @HEIST5_17326
if 
  100@ == 0
goto_if_false @HEIST5_17326
if or
  is_player_targetting_char $player1 {handle} 65@
  has_char_been_damaged_by_weapon 65@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17263
100@ = 1

:HEIST5_17263
if 
  101@ > 1
goto_if_false @HEIST5_17326
if 
  TIMERB > 3000
goto_if_false @HEIST5_17326
if 
  has_char_spotted_char 65@ {target} $scplayer
goto_if_false @HEIST5_17326
100@ = 1

:HEIST5_17326
if 
  68@ == 0
goto_if_false @HEIST5_17513
if 
  is_char_dead 67@
goto_if_false @HEIST5_17381
100@ = 1
68@ = 1
goto @HEIST5_17513

:HEIST5_17381
if 
  99@ == 1
goto_if_false @HEIST5_17513
if 
  100@ == 0
goto_if_false @HEIST5_17513
if or
  is_player_targetting_char $player1 {handle} 67@
  has_char_been_damaged_by_weapon 67@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17450
100@ = 1

:HEIST5_17450
if 
  101@ > 1
goto_if_false @HEIST5_17513
if 
  TIMERB > 3000
goto_if_false @HEIST5_17513
if 
  has_char_spotted_char 67@ {target} $scplayer
goto_if_false @HEIST5_17513
100@ = 1

:HEIST5_17513
if 
  70@ == 0
goto_if_false @HEIST5_17700
if 
  is_char_dead 69@
goto_if_false @HEIST5_17568
100@ = 1
70@ = 1
goto @HEIST5_17700

:HEIST5_17568
if 
  99@ == 1
goto_if_false @HEIST5_17700
if 
  100@ == 0
goto_if_false @HEIST5_17700
if or
  is_player_targetting_char $player1 {handle} 69@
  has_char_been_damaged_by_weapon 69@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17637
100@ = 1

:HEIST5_17637
if 
  101@ > 1
goto_if_false @HEIST5_17700
if 
  TIMERB > 3000
goto_if_false @HEIST5_17700
if 
  has_char_spotted_char 69@ {target} $scplayer
goto_if_false @HEIST5_17700
100@ = 1

:HEIST5_17700
if 
  72@ == 0
goto_if_false @HEIST5_17887
if 
  is_char_dead 71@
goto_if_false @HEIST5_17755
100@ = 1
72@ = 1
goto @HEIST5_17887

:HEIST5_17755
if 
  99@ == 1
goto_if_false @HEIST5_17887
if 
  100@ == 0
goto_if_false @HEIST5_17887
if or
  is_player_targetting_char $player1 {handle} 71@
  has_char_been_damaged_by_weapon 71@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17824
100@ = 1

:HEIST5_17824
if 
  101@ > 1
goto_if_false @HEIST5_17887
if 
  TIMERB > 3000
goto_if_false @HEIST5_17887
if 
  has_char_spotted_char 71@ {target} $scplayer
goto_if_false @HEIST5_17887
100@ = 1

:HEIST5_17887
if 
  74@ == 0
goto_if_false @HEIST5_18074
if 
  is_char_dead 73@
goto_if_false @HEIST5_17942
100@ = 1
74@ = 1
goto @HEIST5_18074

:HEIST5_17942
if 
  99@ == 1
goto_if_false @HEIST5_18074
if 
  100@ == 0
goto_if_false @HEIST5_18074
if or
  is_player_targetting_char $player1 {handle} 73@
  has_char_been_damaged_by_weapon 73@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18011
100@ = 1

:HEIST5_18011
if 
  101@ > 1
goto_if_false @HEIST5_18074
if 
  TIMERB > 3000
goto_if_false @HEIST5_18074
if 
  has_char_spotted_char 73@ {target} $scplayer
goto_if_false @HEIST5_18074
100@ = 1

:HEIST5_18074
if 
  76@ == 0
goto_if_false @HEIST5_18261
if 
  is_char_dead 75@
goto_if_false @HEIST5_18129
100@ = 1
76@ = 1
goto @HEIST5_18261

:HEIST5_18129
if 
  99@ == 1
goto_if_false @HEIST5_18261
if 
  100@ == 0
goto_if_false @HEIST5_18261
if or
  is_player_targetting_char $player1 {handle} 75@
  has_char_been_damaged_by_weapon 75@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18198
100@ = 1

:HEIST5_18198
if 
  101@ > 1
goto_if_false @HEIST5_18261
if 
  TIMERB > 3000
goto_if_false @HEIST5_18261
if 
  has_char_spotted_char 75@ {target} $scplayer
goto_if_false @HEIST5_18261
100@ = 1

:HEIST5_18261
if 
  78@ == 0
goto_if_false @HEIST5_18448
if 
  is_char_dead 77@
goto_if_false @HEIST5_18316
100@ = 1
78@ = 1
goto @HEIST5_18448

:HEIST5_18316
if 
  99@ == 1
goto_if_false @HEIST5_18448
if 
  100@ == 0
goto_if_false @HEIST5_18448
if or
  is_player_targetting_char $player1 {handle} 77@
  has_char_been_damaged_by_weapon 77@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18385
100@ = 1

:HEIST5_18385
if 
  101@ > 1
goto_if_false @HEIST5_18448
if 
  TIMERB > 3000
goto_if_false @HEIST5_18448
if 
  has_char_spotted_char 77@ {target} $scplayer
goto_if_false @HEIST5_18448
100@ = 1

:HEIST5_18448
if 
  80@ == 0
goto_if_false @HEIST5_18635
if 
  is_char_dead 79@
goto_if_false @HEIST5_18503
100@ = 1
80@ = 1
goto @HEIST5_18635

:HEIST5_18503
if 
  99@ == 1
goto_if_false @HEIST5_18635
if 
  100@ == 0
goto_if_false @HEIST5_18635
if or
  is_player_targetting_char $player1 {handle} 79@
  has_char_been_damaged_by_weapon 79@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18572
100@ = 1

:HEIST5_18572
if 
  101@ > 1
goto_if_false @HEIST5_18635
if 
  TIMERB > 3000
goto_if_false @HEIST5_18635
if 
  has_char_spotted_char 79@ {target} $scplayer
goto_if_false @HEIST5_18635
100@ = 1

:HEIST5_18635
if 
  82@ == 0
goto_if_false @HEIST5_18822
if 
  is_char_dead 81@
goto_if_false @HEIST5_18690
100@ = 1
82@ = 1
goto @HEIST5_18822

:HEIST5_18690
if 
  99@ == 1
goto_if_false @HEIST5_18822
if 
  100@ == 0
goto_if_false @HEIST5_18822
if or
  is_player_targetting_char $player1 {handle} 81@
  has_char_been_damaged_by_weapon 81@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18759
100@ = 1

:HEIST5_18759
if 
  101@ > 1
goto_if_false @HEIST5_18822
if 
  TIMERB > 3000
goto_if_false @HEIST5_18822
if 
  has_char_spotted_char 81@ {target} $scplayer
goto_if_false @HEIST5_18822
100@ = 1

:HEIST5_18822
if 
  84@ == 0
goto_if_false @HEIST5_19009
if 
  is_char_dead 83@
goto_if_false @HEIST5_18877
100@ = 1
84@ = 1
goto @HEIST5_19009

:HEIST5_18877
if 
  99@ == 1
goto_if_false @HEIST5_19009
if 
  100@ == 0
goto_if_false @HEIST5_19009
if or
  is_player_targetting_char $player1 {handle} 83@
  has_char_been_damaged_by_weapon 83@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18946
100@ = 1

:HEIST5_18946
if 
  101@ > 1
goto_if_false @HEIST5_19009
if 
  TIMERB > 3000
goto_if_false @HEIST5_19009
if 
  has_char_spotted_char 83@ {target} $scplayer
goto_if_false @HEIST5_19009
100@ = 1

:HEIST5_19009
if 
  86@ == 0
goto_if_false @HEIST5_19196
if 
  is_char_dead 85@
goto_if_false @HEIST5_19064
100@ = 1
86@ = 1
goto @HEIST5_19196

:HEIST5_19064
if 
  99@ == 1
goto_if_false @HEIST5_19196
if 
  100@ == 0
goto_if_false @HEIST5_19196
if or
  is_player_targetting_char $player1 {handle} 85@
  has_char_been_damaged_by_weapon 85@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_19133
100@ = 1

:HEIST5_19133
if 
  101@ > 1
goto_if_false @HEIST5_19196
if 
  TIMERB > 3000
goto_if_false @HEIST5_19196
if 
  has_char_spotted_char 85@ {target} $scplayer
goto_if_false @HEIST5_19196
100@ = 1

:HEIST5_19196
if 
  88@ == 0
goto_if_false @HEIST5_19383
if 
  is_char_dead 87@
goto_if_false @HEIST5_19251
100@ = 1
88@ = 1
goto @HEIST5_19383

:HEIST5_19251
if 
  99@ == 1
goto_if_false @HEIST5_19383
if 
  100@ == 0
goto_if_false @HEIST5_19383
if or
  is_player_targetting_char $player1 {handle} 87@
  has_char_been_damaged_by_weapon 87@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_19320
100@ = 1

:HEIST5_19320
if 
  101@ > 1
goto_if_false @HEIST5_19383
if 
  TIMERB > 3000
goto_if_false @HEIST5_19383
if 
  has_char_spotted_char 87@ {target} $scplayer
goto_if_false @HEIST5_19383
100@ = 1

:HEIST5_19383
if 
  98@ == 0
goto_if_false @HEIST5_19431
if 
  is_char_dead 97@
goto_if_false @HEIST5_19431
100@ = 1
98@ = 1

:HEIST5_19431
if 
  49@ == 0
goto_if_false @HEIST5_19479
if 
  is_char_dead 42@
goto_if_false @HEIST5_19479
100@ = 1
49@ = 1

:HEIST5_19479
if 
  50@ == 0
goto_if_false @HEIST5_19527
if 
  is_char_dead 43@
goto_if_false @HEIST5_19527
100@ = 1
50@ = 1

:HEIST5_19527
if 
  51@ == 0
goto_if_false @HEIST5_19575
if 
  is_char_dead 44@
goto_if_false @HEIST5_19575
100@ = 1
51@ = 1

:HEIST5_19575
if 
  52@ == 0
goto_if_false @HEIST5_19623
if 
  is_char_dead 45@
goto_if_false @HEIST5_19623
100@ = 1
52@ = 1

:HEIST5_19623
if 
  53@ == 0
goto_if_false @HEIST5_19671
if 
  is_char_dead 46@
goto_if_false @HEIST5_19671
100@ = 1
53@ = 1

:HEIST5_19671
if 
  54@ == 0
goto_if_false @HEIST5_19719
if 
  is_char_dead 47@
goto_if_false @HEIST5_19719
100@ = 1
54@ = 1

:HEIST5_19719
if 
  55@ == 0
goto_if_false @HEIST5_19767
if 
  is_char_dead 48@
goto_if_false @HEIST5_19767
100@ = 1
55@ = 1

:HEIST5_19767
return 

:HEIST5_19769
166@ = 0

:HEIST5_19776
if 
  7 > 166@
goto_if_false @HEIST5_20267
wait 0
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_20023
gosub @HEIST5_15414
gosub @HEIST5_14160
if 
  100@ == 1
goto_if_false @HEIST5_19894
if 
  89@ == 0
goto_if_false @HEIST5_19887
gosub @HEIST5_14489
goto @HEIST5_19894

:HEIST5_19887
gosub @HEIST5_14887

:HEIST5_19894
if 
  100@ >= 1
goto_if_false @HEIST5_20023
if 
  103@ == 1
goto_if_false @HEIST5_20023
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_20023
clear_this_print 'HE5_BD'
if 
  98@ == 0
goto_if_false @HEIST5_20016
if 
  not is_char_dead 97@
goto_if_false @HEIST5_20009
stop_char_facial_talk 97@
shut_char_up_for_scripted_speech 97@ {state} False
goto @HEIST5_20016

:HEIST5_20009
98@ = 1

:HEIST5_20016
103@ = 2

:HEIST5_20023
if 
  not is_char_dead 42@(166@,7i)
goto_if_false @HEIST5_20246
$task_status = get_script_task_status 42@(166@,7i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @HEIST5_20239
if 
  99@ == 1
goto_if_false @HEIST5_20239
if 
  100@ == 0
goto_if_false @HEIST5_20227
if or
  is_player_targetting_char $player1 {handle} 42@(166@,7i)
  has_char_been_damaged_by_weapon 42@(166@,7i) {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_20153
100@ = 1

:HEIST5_20153
if 
  101@ > 1
goto_if_false @HEIST5_20220
if 
  TIMERB > 3000
goto_if_false @HEIST5_20220
if 
  has_char_spotted_char 42@(166@,7i) {target} $scplayer
goto_if_false @HEIST5_20220
100@ = 1

:HEIST5_20220
goto @HEIST5_20239

:HEIST5_20227
task_kill_char_on_foot 42@(166@,7i) {target} $scplayer

:HEIST5_20239
goto @HEIST5_20253

:HEIST5_20246
100@ = 1

:HEIST5_20253
166@ += 1
goto @HEIST5_19776

:HEIST5_20267
return 

:HEIST5_20269
if 
  62@ == 0
goto_if_false @HEIST5_20315
if 
  not is_char_dead 61@
goto_if_false @HEIST5_20315
delete_char 61@
62@ = 1

:HEIST5_20315
if 
  64@ == 0
goto_if_false @HEIST5_20361
if 
  not is_char_dead 63@
goto_if_false @HEIST5_20361
delete_char 63@
64@ = 1

:HEIST5_20361
if 
  66@ == 0
goto_if_false @HEIST5_20407
if 
  not is_char_dead 65@
goto_if_false @HEIST5_20407
delete_char 65@
66@ = 1

:HEIST5_20407
if 
  68@ == 0
goto_if_false @HEIST5_20453
if 
  not is_char_dead 67@
goto_if_false @HEIST5_20453
delete_char 67@
68@ = 1

:HEIST5_20453
if 
  70@ == 0
goto_if_false @HEIST5_20499
if 
  not is_char_dead 69@
goto_if_false @HEIST5_20499
delete_char 69@
70@ = 1

:HEIST5_20499
if 
  72@ == 0
goto_if_false @HEIST5_20545
if 
  not is_char_dead 71@
goto_if_false @HEIST5_20545
delete_char 71@
72@ = 1

:HEIST5_20545
if 
  74@ == 0
goto_if_false @HEIST5_20591
if 
  not is_char_dead 73@
goto_if_false @HEIST5_20591
delete_char 73@
74@ = 1

:HEIST5_20591
if 
  76@ == 0
goto_if_false @HEIST5_20637
if 
  not is_char_dead 75@
goto_if_false @HEIST5_20637
delete_char 75@
76@ = 1

:HEIST5_20637
if 
  78@ == 0
goto_if_false @HEIST5_20683
if 
  not is_char_dead 77@
goto_if_false @HEIST5_20683
delete_char 77@
78@ = 1

:HEIST5_20683
if 
  80@ == 0
goto_if_false @HEIST5_20729
if 
  not is_char_dead 79@
goto_if_false @HEIST5_20729
delete_char 79@
80@ = 1

:HEIST5_20729
if 
  82@ == 0
goto_if_false @HEIST5_20775
if 
  not is_char_dead 81@
goto_if_false @HEIST5_20775
delete_char 81@
82@ = 1

:HEIST5_20775
if 
  84@ == 0
goto_if_false @HEIST5_20821
if 
  not is_char_dead 83@
goto_if_false @HEIST5_20821
delete_char 83@
84@ = 1

:HEIST5_20821
if 
  86@ == 0
goto_if_false @HEIST5_20867
if 
  not is_char_dead 85@
goto_if_false @HEIST5_20867
delete_char 85@
86@ = 1

:HEIST5_20867
if 
  88@ == 0
goto_if_false @HEIST5_20913
if 
  not is_char_dead 87@
goto_if_false @HEIST5_20913
delete_char 87@
88@ = 1

:HEIST5_20913
if 
  not is_char_dead $bankvan1_upright_value_heist5
goto_if_false @HEIST5_20934
delete_char $bankvan1_upright_value_heist5

:HEIST5_20934
if 
  not is_car_dead $driver_gate_car_heist5
goto_if_false @HEIST5_20955
delete_car $driver_gate_car_heist5

:HEIST5_20955
mark_model_as_no_longer_needed 470
return 

:HEIST5_20962
if 
  98@ == 0
goto_if_false @HEIST5_21008
if 
  not is_char_dead 97@
goto_if_false @HEIST5_21008
delete_char 97@
98@ = 1

:HEIST5_21008
if 
  49@ == 0
goto_if_false @HEIST5_21054
if 
  not is_char_dead 42@
goto_if_false @HEIST5_21054
delete_char 42@
49@ = 1

:HEIST5_21054
if 
  50@ == 0
goto_if_false @HEIST5_21100
if 
  not is_char_dead 43@
goto_if_false @HEIST5_21100
delete_char 43@
50@ = 1

:HEIST5_21100
if 
  51@ == 0
goto_if_false @HEIST5_21146
if 
  not is_char_dead 44@
goto_if_false @HEIST5_21146
delete_char 44@
51@ = 1

:HEIST5_21146
if 
  52@ == 0
goto_if_false @HEIST5_21192
if 
  not is_char_dead 45@
goto_if_false @HEIST5_21192
delete_char 45@
52@ = 1

:HEIST5_21192
if 
  53@ == 0
goto_if_false @HEIST5_21238
if 
  not is_char_dead 46@
goto_if_false @HEIST5_21238
delete_char 46@
53@ = 1

:HEIST5_21238
if 
  54@ == 0
goto_if_false @HEIST5_21284
if 
  not is_char_dead 47@
goto_if_false @HEIST5_21284
delete_char 47@
54@ = 1

:HEIST5_21284
if 
  55@ == 0
goto_if_false @HEIST5_21330
if 
  not is_char_dead 48@
goto_if_false @HEIST5_21330
delete_char 48@
55@ = 1

:HEIST5_21330
90@ = 1
return 

//-------------Mission 101---------------
// Originally: Breaking the Bank at Caligula's

:HEIST9
script_name 'HEIST9'
gosub @HEIST9_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST9_38
gosub @HEIST9_44470

:HEIST9_38
gosub @HEIST9_44950
terminate_this_script 

:HEIST9_47
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_72
switch_car_generator $d5_bronze_generator {amount} 0

:HEIST9_72
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_97
switch_car_generator $d5_silver_generator {amount} 0

:HEIST9_97
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_122
switch_car_generator $d5_gold_generator {amount} 0

:HEIST9_122
set_zone_no_cops 'MEAD' {state} True
load_mission_text 'HEIST9'
$gate_drive_car_ai_heist5 = 0
$h9_offset = 0.0
$h9_player_in_casino = 0.0
$h9_z1 = 0.0
$h9_calculus = 0.0
$h9_under_door = 0
$h9_TIMERC = 0
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
$fFunTemp = 0
231@ = 2
$disable_mod_garage = 1
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_340
store_clothes_state 
give_player_clothes_outside_shop $player1 {textureName} "CROUPIER" {modelName} "VALET" {bodyPart} BodyPart.SpecialCostume
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Head
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Necklace
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Glasses
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Hat
build_player_model $player1

:HEIST9_340
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:HEIST9_355
if 
  get_fading_status 
goto_if_false @HEIST9_379
wait 0
goto @HEIST9_355

:HEIST9_379
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_490
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2028.932 {y} 1023.292 {z} 9.813
clear_area 2028.932 {y} 1023.292 {z} 9.813 {radius} 20.0 {clearParticles} True
set_char_coordinates_dont_warp_gang $scplayer {x} 2028.932 {y} 1023.292 {z} 9.813
set_char_heading $scplayer {heading} 278.4092

:HEIST9_490
set_area_visible 0
load_cutscene 'HEIST8A'

:HEIST9_505
if 
  not has_cutscene_loaded 
goto_if_false @HEIST9_529
wait 0
goto @HEIST9_505

:HEIST9_529
clear_area 1908.433 {y} 957.3687 {z} 9.8203 {radius} 40.0 {clearParticles} True
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:HEIST9_570
if 
  not has_cutscene_finished 
goto_if_false @HEIST9_594
wait 0
goto @HEIST9_570

:HEIST9_594
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:HEIST9_608
if 
  get_fading_status 
goto_if_false @HEIST9_632
wait 0
goto @HEIST9_608

:HEIST9_632
clear_cutscene 
39@ = add_blip_for_coord 2196.7151 {y} 1677.198 {z} 11.375
217@ = load_char_decision_maker DecisionMakerType.Weak
89@ = load_char_decision_maker DecisionMakerType.Normal
120@ = load_char_decision_maker DecisionMakerType.Empty
245@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Mission3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
add_char_decision_maker_event_response 89@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 245@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
request_model 347
request_model 343
request_model 368
request_model #BODYARMOUR
request_model 353
request_model 335
request_model 346
request_animation "HEIST9"

:HEIST9_834
if or
  not has_model_loaded 347
  not has_model_loaded 343
  not has_model_loaded 368
  not has_model_loaded #BODYARMOUR
goto_if_false @HEIST9_875
wait 0
goto @HEIST9_834

:HEIST9_875
if or
  not has_model_loaded 353
  not has_model_loaded 335
  not has_animation_loaded "HEIST9"
  not has_model_loaded 346
goto_if_false @HEIST9_922
wait 0
goto @HEIST9_875

:HEIST9_922
$h9_health = 240000
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_player_control $player1 {state} True
171@ = create_object #GENERATOR_BIG {x} 2145.05 {y} 1613.49 {z} 999.9764
set_object_area_visible 171@ {areaId} 1
set_object_heading 171@ {heading} 1.2043
172@ = create_object #GENERATOR_BIG {x} 2148.8 {y} 1613.49 {z} 999.9764
set_object_area_visible 172@ {areaId} 1
set_object_heading 172@ {heading} 354.0372
212@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 212@ {state} True
close_sequence_task 212@
213@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 213@ {state} True
close_sequence_task 213@
set_group_separation_range $Players_Group {range} 300.0
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.Teargas {ammo} 10
give_weapon_to_char $scplayer {weaponType} WeaponType.Mp5 {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.NightVision {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 300
set_current_char_weapon $scplayer {weaponType} WeaponType.Teargas
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed 343
41@ = create_object_no_offset #AB_CASDORLOK {x} 2148.5601 {y} 1604.609 {z} 1006.5
set_object_area_visible 41@ {areaId} 1
set_object_heading 41@ {heading} 180.0
48@ = create_object_no_offset #AB_CASDORLOK {x} 2177.1599 {y} 1594.322 {z} 1000.4
set_object_area_visible 48@ {areaId} 1
set_object_heading 48@ {heading} 180.0
49@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2220.188 {y} 1571.7629 {z} 1001.6
set_object_area_visible 49@ {areaId} 1
set_object_heading 49@ {heading} 270.0
set_object_collision_damage_effect 49@ {state} False
196@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2220.188 {y} 1571.7 {z} 1005.8
set_object_area_visible 196@ {areaId} 1
set_object_heading 196@ {heading} 270.0
set_object_collision 196@ {state} False
set_object_collision_damage_effect 49@ {state} False
42@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2203.2 {y} 1551.743 {z} 1009.0
set_object_area_visible 42@ {areaId} 1
set_object_heading 42@ {heading} 0.0
set_object_collision_damage_effect 42@ {state} False
34@ = 1001.4
60@ = create_object_no_offset #AB_VAULTDOOR {x} 2144.1799 {y} 1626.947 {z} 994.28
set_object_heading 60@ {heading} 180.0
set_object_area_visible 60@ {areaId} 1
96@ = create_object_no_offset #SEC_KEYPAD {x} 2168.5 {y} 1617.335 {z} 1000.4
set_object_area_visible 96@ {areaId} 1
set_object_heading 96@ {heading} 270.0
set_object_collision 96@ {state} False
$gate_drive_car_ai_heist5 = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2176.4709 {y} 1597.394 {z} 1000.0
285@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2144.3391 {y} 1640.666 {z} 993.5
goto @HEIST9_2362

:HEIST9_1936
request_model 117
request_model 428
load_special_character 2 {modelName} 'WUZIMU'
load_special_character 3 {modelName} 'JANITOR'

:HEIST9_1971
if or
  not has_model_loaded 117
  not has_model_loaded 428
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @HEIST9_2010
wait 0
goto @HEIST9_1971

:HEIST9_2010
51@ = create_car 428 {x} 2220.344 {y} 1551.767 {z} 1003.719
set_vehicle_area_visible 51@ {interiorId} 1
set_car_heading 51@ {heading} 176.7739
set_car_always_create_skids 51@ {state} False
lock_car_doors 51@ {lockStatus} CarLock.LockoutPlayerOnly
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
54@ = create_char_inside_car 51@ {pedType} PedType.Mission2 {modelId} 291
set_char_area_visible 54@ {areaId} 1
55@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 117 {seat} SeatId.RearRight
set_char_area_visible 55@ {areaId} 1
56@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 117 {seat} SeatId.RearLeft
set_char_area_visible 56@ {areaId} 1
57@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear
set_char_area_visible 57@ {areaId} 1
set_anim_group_for_char 54@ {animGroup} "BLINDMAN"
58@ = 0

:HEIST9_2194
set_follow_node_threshold_distance 54@(58@,4i) {range} 2.0
give_weapon_to_char 54@(58@,4i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 54@(58@,4i) {weaponType} WeaponType.Mp5
set_char_decision_maker 54@(58@,4i) {handleOrTemplate} 120@
set_char_never_targetted 54@(58@,4i) {state} True
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_suffers_critical_hits 54@(58@,4i) {state} False
set_char_max_health 54@(58@,4i) {maxHealth} 500
set_char_health 54@(58@,4i) {health} 500
set_char_accuracy 54@(58@,4i) {accuracy} 60
set_char_signal_after_kill 54@(58@,4i) {state} False
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_2194
250@ = 1
return 

:HEIST9_2362
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2390
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 

:HEIST9_2390
gosub @HEIST9_46360
215@ = 1
231@ = 2
38@ = 1
107@ = 0
TIMERB = 0
switch_entry_exit 'JUMP1' {state} False
switch_entry_exit 'JUMP2' {state} False
switch_entry_exit 'MAFCAS2' {state} False
290@ = 1
308@ = create_object_no_offset #TMP_BIN {x} 2188.845 {y} 1619.136 {z} 999.3
set_object_area_visible 308@ {areaId} 1
set_object_heading 308@ {heading} 270.0
310@ = create_object_no_offset #K_SMASHBOXES {x} 2139.343 {y} 1617.604 {z} 992.5
set_object_area_visible 310@ {areaId} 1
set_object_heading 310@ {heading} 0.1132
311@ = create_object_no_offset #K_SMASHBOXES {x} 2148.0 {y} 1622.1071 {z} 992.5
set_object_area_visible 311@ {areaId} 1
set_object_heading 311@ {heading} 179.6736

:HEIST9_2598
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43651
wait 0
gosub @HEIST9_46393
gosub @HEIST9_50670
$h9_can_see = get_area_visible 
if 
  0 >= $h9_health
goto_if_false @HEIST9_2690
gosub @HEIST9_50385
print_now 'HM9_1B' {time} 4000 {flag} 1
goto @HEIST9_44470
clear_onscreen_timer $h9_health

:HEIST9_2690
if 
  290@ <> 0
goto_if_false @HEIST9_3136
if and
  231@ == 2
  290@ == 1
goto_if_false @HEIST9_2792
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2756
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_2756
set_lvar_text_label 288@s = 'HE8_AA'
set_lvar_int_to_constant 232@ = 12223
gosub @HEIST9_50650
290@ = 2

:HEIST9_2792
if and
  231@ == 2
  290@ == 2
goto_if_false @HEIST9_2877
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2841
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_2841
set_lvar_text_label 288@s = 'HE8_AB'
set_lvar_int_to_constant 232@ = 12285
gosub @HEIST9_50650
290@ = 3

:HEIST9_2877
if and
  231@ == 2
  290@ == 3
goto_if_false @HEIST9_2959
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2923
stop_char_facial_talk $scplayer

:HEIST9_2923
set_lvar_text_label 288@s = 'HE8_AC'
set_lvar_int_to_constant 232@ = 12224
gosub @HEIST9_50650
290@ = 4

:HEIST9_2959
if and
  231@ == 2
  290@ == 4
goto_if_false @HEIST9_3044
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3008
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_3008
set_lvar_text_label 288@s = 'HE8_AD'
set_lvar_int_to_constant 232@ = 12286
gosub @HEIST9_50650
290@ = 5

:HEIST9_3044
if and
  231@ == 2
  290@ == 5
goto_if_false @HEIST9_3136
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3090
stop_char_facial_talk $scplayer

:HEIST9_3090
print_now 'HM9_28' {time} 9000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3129
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_3129
290@ = 6

:HEIST9_3136
$h9_TIMERC = get_area_visible 
if 
  $h9_TIMERC == 0
goto_if_false @HEIST9_3207
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3200
disable_player_sprint $player1 {state} False
$fFunTemp = 0
$h9_safe_timer = 0
set_radar_zoom 0

:HEIST9_3200
goto @HEIST9_3234

:HEIST9_3207
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3234
disable_player_sprint $player1 {state} True
set_radar_zoom 100

:HEIST9_3234
if or
  locate_char_any_means_3d $scplayer {x} 2233.9099 {y} 1712.599 {z} 1010.877 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2265.79 {y} 1619.58 {z} 1089.4449 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2267.0559 {y} 1675.385 {z} 1089.4449 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @HEIST9_3367
set_radar_zoom 100
$h9_safe_timer = 1

:HEIST9_3367
if and
  303@ == 0
  $h9_safe_timer == 1
goto_if_false @HEIST9_3506
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3506
if and
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
  not is_current_char_weapon $scplayer {weaponType} WeaponType.NightVision
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Teargas
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Knife
goto_if_false @HEIST9_3491
set_relationship RelationshipType.Hate {ofPedType} PedType.CivMale {toPedType} PedType.Player1
print_now 'HM9_99' {time} 100 {flag} 1
300@ = 1
goto @HEIST9_3506

:HEIST9_3491
set_relationship RelationshipType.Like {ofPedType} PedType.CivMale {toPedType} PedType.Player1
300@ = 0

:HEIST9_3506
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "CROUPIER"
goto_if_false @HEIST9_3557
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_3557
if and
  $fFunTemp == 1
  106@ == 0
  $h9_safe_timer == 1
goto_if_false @HEIST9_3619
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_3619
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3713
if and
  locate_char_any_means_3d $scplayer {x} 2180.981 {y} 1677.813 {z} 10.0609 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  243@ == 0
goto_if_false @HEIST9_3713
print_now 'HM9_54' {time} 7000 {flag} 1
243@ = 1

:HEIST9_3713
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @HEIST9_3735
goto @HEIST9_44518

:HEIST9_3735
if and
  2 >= 38@
  not is_char_dead $scplayer
  284@ == 0
goto_if_false @HEIST9_3814
175@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Teargas
if and
  0 >= 175@
  2 >= 38@
goto_if_false @HEIST9_3814
284@ = 1
TIMERA = 0

:HEIST9_3814
if and
  TIMERA > 2000
  284@ == 1
  173@ == 0
goto_if_false @HEIST9_3934
if or
  $h9_safe_timer == 1
  $h9_TIMERC == 0
goto_if_false @HEIST9_3934
if 
  $h9_safe_timer == 1
goto_if_false @HEIST9_3904
gosub @HEIST9_50385
goto @HEIST9_3911

:HEIST9_3904
gosub @HEIST9_50604

:HEIST9_3911
print_now 'HM9_48' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_3934
if and
  is_car_dead 51@
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_3994
gosub @HEIST9_50385
print_now 'HM9_15' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_3994
$h9_under_door += 1
if 
  38@ == 1
goto_if_false @HEIST9_4398
if 
  $h9_safe_timer == 1
goto_if_false @HEIST9_4398
if 
  does_blip_exist 39@
goto_if_false @HEIST9_4058
remove_blip 39@

:HEIST9_4058
clear_prints 
38@ = 2
215@ = 1
TIMERB = 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
44@ = add_blip_for_coord 2148.9951 {y} 1605.08 {z} 1005.172
set_blip_entry_exit 44@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
request_model 163
request_model 164

:HEIST9_4138
if or
  not has_model_loaded 163
  not has_model_loaded 164
goto_if_false @HEIST9_4170
wait 0
goto @HEIST9_4138

:HEIST9_4170
109@ = create_char PedType.Mission1 {modelId} 163 {x} 2146.5801 {y} 1622.228 {z} 992.6882
set_char_area_visible 109@ {areaId} 1
set_char_heading 109@ {heading} 83.607
110@ = create_char PedType.Mission1 {modelId} 163 {x} 2141.4099 {y} 1626.068 {z} 992.6882
set_char_area_visible 110@ {areaId} 1
set_char_heading 110@ {heading} 188.011
111@ = create_char PedType.CivMale {modelId} 164 {x} 2151.187 {y} 1605.832 {z} 1005.188
set_char_area_visible 111@ {areaId} 1
set_char_heading 111@ {heading} 359.346
set_char_decision_maker 111@ {handleOrTemplate} 120@
task_stay_in_same_place 111@ {state} True
58@ = 0

:HEIST9_4318
give_weapon_to_char 109@(58@,5i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 109@(58@,5i) {weaponType} WeaponType.Mp5
add_armour_to_char 109@(58@,5i) {amount} 200
task_stay_in_same_place 109@(58@,5i) {state} True
set_char_never_targetted 109@(58@,5i) {state} True
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_4318

:HEIST9_4398
if 
  38@ == 2
goto_if_false @HEIST9_10446
if 
  not is_char_dead 111@
goto_if_false @HEIST9_4481
if 
  has_char_been_damaged_by_char 111@ {handle} $scplayer
goto_if_false @HEIST9_4481
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_4481
if and
  is_char_dead 111@
  106@ == 0
goto_if_false @HEIST9_4534
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_4534
if 
  215@ <> 0
goto_if_false @HEIST9_5179
if 
  215@ == 1
goto_if_false @HEIST9_4628
$h9_health = 240000
display_onscreen_timer_with_string $h9_health {direction} TimerDirection.Down {text} 'HM9_1A'
print_with_number_now 'HM9_1D' {num} 4 {duration} 5000 {flag} 1
TIMERB = 0
215@ = 2

:HEIST9_4628
if and
  TIMERB > 4000
  215@ == 2
goto_if_false @HEIST9_4713
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4677
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_4677
set_lvar_text_label 288@s = 'HE8_BA'
set_lvar_int_to_constant 232@ = 12225
gosub @HEIST9_50650
215@ = 3

:HEIST9_4713
if and
  231@ == 2
  215@ == 3
goto_if_false @HEIST9_4798
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4762
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_4762
set_lvar_text_label 288@s = 'HE8_BB'
set_lvar_int_to_constant 232@ = 12287
gosub @HEIST9_50650
215@ = 4

:HEIST9_4798
if and
  231@ == 2
  215@ == 4
goto_if_false @HEIST9_4880
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4844
stop_char_facial_talk $scplayer

:HEIST9_4844
set_lvar_text_label 288@s = 'HE8_BC'
set_lvar_int_to_constant 232@ = 12226
gosub @HEIST9_50650
215@ = 5

:HEIST9_4880
if and
  231@ == 2
  215@ == 5
goto_if_false @HEIST9_4965
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4929
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_4929
set_lvar_text_label 288@s = 'HE8_BD'
set_lvar_int_to_constant 232@ = 12288
gosub @HEIST9_50650
215@ = 6

:HEIST9_4965
if and
  231@ == 2
  215@ == 6
goto_if_false @HEIST9_5047
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5011
stop_char_facial_talk $scplayer

:HEIST9_5011
set_lvar_text_label 288@s = 'HE8_BE'
set_lvar_int_to_constant 232@ = 12227
gosub @HEIST9_50650
215@ = 7

:HEIST9_5047
if and
  231@ == 2
  215@ == 7
goto_if_false @HEIST9_5108
set_lvar_text_label 288@s = 'HE8_BF'
set_lvar_int_to_constant 232@ = 12228
gosub @HEIST9_50650
215@ = 8

:HEIST9_5108
if and
  231@ == 2
  215@ == 8
goto_if_false @HEIST9_5179
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5156
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_5156
print_now 'HM9_2' {time} 7000 {flag} 1
215@ = 0

:HEIST9_5179
if and
  locate_char_any_means_3d $scplayer {x} 2147.7561 {y} 1605.401 {z} 1005.17 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  216@ == 0
goto_if_false @HEIST9_6325
if 
  300@ == 1
goto_if_false @HEIST9_5282
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_5282
gosub @HEIST9_46291
if and
  not is_char_dead $scplayer
  not is_char_dead 111@
goto_if_false @HEIST9_5363
set_char_coordinates_dont_warp_gang $scplayer {x} 2147.675 {y} 1607.399 {z} 1005.188
set_char_heading $scplayer {heading} 188.6317
set_player_control $player1 {state} False
task_turn_char_to_face_char $scplayer {target} 111@
task_turn_char_to_face_char 111@ {target} $scplayer

:HEIST9_5363
if 
  not is_char_dead 111@
goto_if_false @HEIST9_5409
set_char_coordinates_dont_warp_gang 111@ {x} 2151.187 {y} 1605.832 {z} 1005.188
set_char_heading 111@ {heading} 359.346

:HEIST9_5409
set_fixed_camera_position 2152.125 {y} 1606.502 {z} 1006.716 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2151.135 {y} 1606.365 {z} 1006.719 {switchStyle} SwitchType.JumpCut
print_now 'HE8_CA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12319

:HEIST9_5487
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5513
wait 0
goto @HEIST9_5487

:HEIST9_5513
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERB = 0

:HEIST9_5529
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5579
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5572
goto @HEIST9_6254

:HEIST9_5572
goto @HEIST9_5529

:HEIST9_5579
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5631
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_5631
print_now 'HE8_CB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12289

:HEIST9_5658
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5684
wait 0
goto @HEIST9_5658

:HEIST9_5684
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5745
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5738
goto @HEIST9_6254

:HEIST9_5738
goto @HEIST9_5695

:HEIST9_5745
print_now 'HE8_CC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12229

:HEIST9_5772
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5798
wait 0
goto @HEIST9_5772

:HEIST9_5798
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5809
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5859
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5852
goto @HEIST9_6254

:HEIST9_5852
goto @HEIST9_5809

:HEIST9_5859
print_now 'HE8_CD' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12290

:HEIST9_5886
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5912
wait 0
goto @HEIST9_5886

:HEIST9_5912
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5923
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5973
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5966
goto @HEIST9_6254

:HEIST9_5966
goto @HEIST9_5923

:HEIST9_5973
print_now 'HE8_CE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12320

:HEIST9_6000
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_6026
wait 0
goto @HEIST9_6000

:HEIST9_6026
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_6037
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_6087
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_6080
goto @HEIST9_6254

:HEIST9_6080
goto @HEIST9_6037

:HEIST9_6087
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_6140
task_play_anim $scplayer {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_6140
print_now 'HE8_CF' {time} 3000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12291

:HEIST9_6167
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_6193
wait 0
goto @HEIST9_6167

:HEIST9_6193
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_6204
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_6254
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_6247
goto @HEIST9_6254

:HEIST9_6247
goto @HEIST9_6204

:HEIST9_6254
clear_mission_audio MissionAudioSlot.Slot1
if and
  not is_char_dead $scplayer
  not is_char_dead 111@
goto_if_false @HEIST9_6304
clear_char_tasks_immediately $scplayer
set_char_heading 111@ {heading} 3.8184
set_char_heading $scplayer {heading} 207.6449

:HEIST9_6304
gosub @HEIST9_46308
215@ = 0
216@ = 1

:HEIST9_6325
if and
  locate_char_any_means_3d $scplayer {x} 2149.0081 {y} 1605.299 {z} 1005.172 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  36@ == 0
goto_if_false @HEIST9_6644
if 
  not is_help_message_being_displayed 
goto_if_false @HEIST9_6404
print_help_forever 'HM9_29'

:HEIST9_6404
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST9_6637
if and
  not is_char_dead $scplayer
  not is_player_dead $player1
goto_if_false @HEIST9_6527
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2149.0081 {y} 1605.299 {z} 1005.172
set_char_heading $scplayer {heading} 188.7539
task_play_anim $scplayer {animationName} "USE_SWIPECARD" {animationFile} "HEIST9" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_6527
wait 500
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 33400

:HEIST9_6545
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_6571
wait 0
goto @HEIST9_6545

:HEIST9_6571
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_6590
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_6590
wait 1000
if and
  not is_char_dead $scplayer
  not is_player_dead $player1
goto_if_false @HEIST9_6623
set_player_control $player1 {state} True

:HEIST9_6623
303@ = 1
36@ = 1

:HEIST9_6637
goto @HEIST9_6646

:HEIST9_6644
clear_help 

:HEIST9_6646
if and
  36@ == 1
  107@ == 0
goto_if_false @HEIST9_7357
clear_help 
request_model 11
request_model 172

:HEIST9_6682
if or
  not has_model_loaded 172
  not has_model_loaded 11
goto_if_false @HEIST9_6713
wait 0
goto @HEIST9_6682

:HEIST9_6713
53@ = open_sequence_task 
flush_route 
extend_route 2144.01 {y} 1603.0861 {z} 1000.968
extend_route 2163.4089 {y} 1602.7791 {z} 998.9785
extend_route 2158.457 {y} 1602.36 {z} 998.9719
extend_route 2158.1919 {y} 1597.875 {z} 998.9711
extend_route 2157.9609 {y} 1612.835 {z} 998.9677
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
extend_route 2158.395 {y} 1618.554 {z} 998.9647
extend_route 2157.9609 {y} 1612.835 {z} 998.9677
extend_route 2158.1919 {y} 1597.875 {z} 998.9711
extend_route 2158.457 {y} 1602.36 {z} 998.9719
extend_route 2163.4089 {y} 1602.7791 {z} 998.9785
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
218@ = create_char PedType.Mission3 {modelId} 172 {x} 2144.01 {y} 1603.0861 {z} 1000.968
set_char_area_visible 218@ {areaId} 1
set_char_decision_maker 218@ {handleOrTemplate} 89@
perform_sequence_task 218@ {sequence} 53@
219@ = create_char PedType.Mission3 {modelId} 11 {x} 2148.394 {y} 1596.7371 {z} 998.768
set_char_area_visible 219@ {areaId} 1
set_char_decision_maker 219@ {handleOrTemplate} 89@
220@ = create_char PedType.Mission3 {modelId} 172 {x} 2149.355 {y} 1597.1331 {z} 998.768
set_char_area_visible 220@ {areaId} 1
set_char_decision_maker 220@ {handleOrTemplate} 89@
222@ = create_char PedType.Mission3 {modelId} 163 {x} 2146.8311 {y} 1603.942 {z} 1000.968
set_char_heading 222@ {heading} 187.4626
set_char_area_visible 222@ {areaId} 1
give_weapon_to_char 222@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 222@ {weaponType} WeaponType.Pistol
set_char_decision_maker 222@ {handleOrTemplate} 245@
task_stay_in_same_place 222@ {state} True
223@ = create_char PedType.Mission3 {modelId} 172 {x} 2170.6741 {y} 1603.371 {z} 998.9696
set_char_area_visible 223@ {areaId} 1
set_char_decision_maker 223@ {handleOrTemplate} 89@
224@ = create_char PedType.Mission3 {modelId} 172 {x} 2169.843 {y} 1605.299 {z} 998.9706
set_char_area_visible 224@ {areaId} 1
set_char_decision_maker 224@ {handleOrTemplate} 89@
task_chat_with_char 219@ {other} 220@ {leadSpeaker} True {_p4} 1
task_chat_with_char 220@ {other} 219@ {leadSpeaker} False {_p4} 1
task_chat_with_char 223@ {other} 224@ {leadSpeaker} True {_p4} 1
task_chat_with_char 224@ {other} 223@ {leadSpeaker} False {_p4} 1
117@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7279
clear_char_tasks_immediately $scplayer

:HEIST9_7279
clear_sequence_task 53@
remove_blip 44@
35@ = 1
108@ = add_blip_for_coord 2143.0459 {y} 1620.661 {z} 999.968
set_blip_entry_exit 108@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
107@ = 1
302@ = 2
TIMERA = 0

:HEIST9_7357
if and
  locate_char_any_means_3d $scplayer {x} 2147.863 {y} 1599.649 {z} 1003.534 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  106@ == 0
goto_if_false @HEIST9_7462
106@ = 1
clear_area 2192.605 {y} 1601.92 {z} 1004.063 {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
delete_char 111@
TIMERB = 0

:HEIST9_7462
if and
  231@ == 2
  302@ == 2
  TIMERA > 1000
goto_if_false @HEIST9_7554
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7518
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_7518
set_lvar_text_label 288@s = 'HE8_DB'
set_lvar_int_to_constant 232@ = 12230
gosub @HEIST9_50650
302@ = 3

:HEIST9_7554
if and
  231@ == 2
  302@ == 3
goto_if_false @HEIST9_7615
set_lvar_text_label 288@s = 'HE8_DD'
set_lvar_int_to_constant 232@ = 12232
gosub @HEIST9_50650
302@ = 0

:HEIST9_7615
if and
  locate_char_any_means_3d $scplayer {x} 2148.252 {y} 1605.901 {z} 1000.114 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  244@ == 0
goto_if_false @HEIST9_7684
244@ = 1
302@ = 0

:HEIST9_7684
if and
  231@ == 2
  244@ == 1
goto_if_false @HEIST9_7776
303@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7740
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_7740
set_lvar_text_label 288@s = 'HE8_EA'
set_lvar_int_to_constant 232@ = 12293
gosub @HEIST9_50650
244@ = 2

:HEIST9_7776
if and
  231@ == 2
  244@ == 2
goto_if_false @HEIST9_7858
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7822
stop_char_facial_talk $scplayer

:HEIST9_7822
set_lvar_text_label 288@s = 'HE8_EB'
set_lvar_int_to_constant 232@ = 12233
gosub @HEIST9_50650
244@ = 3

:HEIST9_7858
if and
  231@ == 2
  244@ == 3
goto_if_false @HEIST9_7919
set_lvar_text_label 288@s = 'HE8_EC'
set_lvar_int_to_constant 232@ = 12234
gosub @HEIST9_50650
244@ = 4

:HEIST9_7919
if and
  231@ == 2
  244@ == 4
goto_if_false @HEIST9_8003
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7967
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_7967
set_lvar_text_label 288@s = 'HE8_ED'
set_lvar_int_to_constant 232@ = 12294
gosub @HEIST9_50650
244@ = 5

:HEIST9_8003
if 
  locate_char_any_means_3d $scplayer {x} 2254.543 {y} 1706.5 {z} 1.1746 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @HEIST9_8067
print_now 'HM9_36' {time} 1000 {flag} 1

:HEIST9_8067
if and
  45 > 106@
  106@ <> 0
goto_if_false @HEIST9_8116
  rotate_object 41@ {fromAngle} 180.0 {toAngle} 2.0 {collisionCheck} False
106@ += 1

:HEIST9_8116
if and
  45 > 117@
  117@ <> 0
goto_if_false @HEIST9_8165
  rotate_object 41@ {fromAngle} 270.0 {toAngle} 2.0 {collisionCheck} False
117@ += 1

:HEIST9_8165
58@ = 0

:HEIST9_8172
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_8351
if 
  has_char_been_damaged_by_char 109@(58@,5i) {handle} $scplayer
goto_if_false @HEIST9_8245
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_8245
if 
  has_char_been_damaged_by_char $scplayer {handle} 109@(58@,5i)
goto_if_false @HEIST9_8298
gosub @HEIST9_50385
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_8298
if 
  has_char_spotted_char 109@(58@,5i) {target} $scplayer
goto_if_false @HEIST9_8351
gosub @HEIST9_50385
print_now 'HM9_37' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_8351
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8172
if and
  is_projectile_in_area 2144.4641 {leftBottomY} 1621.26 {leftBottomZ} 1002.136 {rightTopX} 2136.209 {rightTopY} 1626.877 {rightTopZ} 997.7474
  173@ == 0
goto_if_false @HEIST9_8477
173@ = 1
302@ = 0
244@ = 0
switch_object_brains ScriptBrainAttachType.Object {state} False
$iTerminateAllAmbience = 1
TIMERA = 0
gosub @HEIST9_46327
gosub @HEIST9_1936

:HEIST9_8477
if and
  locate_char_any_means_3d $scplayer {x} 2145.79 {y} 1613.851 {z} 999.968 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  114@ == 0
  173@ == 0
goto_if_false @HEIST9_8627
114@ = 1
clear_area 2144.323 {y} 1622.684 {z} 992.5681 {radius} 30.0 {clearParticles} True
58@ = 0

:HEIST9_8577
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_8606
clear_char_tasks_immediately 109@(58@,5i)

:HEIST9_8606
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8577

:HEIST9_8627
if 
  173@ == 1
goto_if_false @HEIST9_10414
303@ = 1
clear_prints 
switch_entry_exit 'MAFCAS' {state} False
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_8690
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_8690
gosub @HEIST9_46291
set_fixed_camera_position 2139.8501 {y} 1609.236 {z} 995.7649 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2140.229 {y} 1610.145 {z} 995.5919 {switchStyle} SwitchType.JumpCut
request_model 343

:HEIST9_8753
if 
  not has_model_loaded 343
goto_if_false @HEIST9_8780
wait 0
goto @HEIST9_8753

:HEIST9_8780
clear_area 2144.323 {y} 1622.684 {z} 997.0 {radius} 10.0 {clearParticles} True
clear_area 2143.2661 {y} 1618.145 {z} 999.9764 {radius} 10.0 {clearParticles} True
314@ = create_object 343 {x} 2144.323 {y} 1622.684 {z} 997.0
gosub @HEIST9_46360
$x, $y, 313@ = get_object_coordinates 314@

:HEIST9_8872
if 
  313@ > 992.6
goto_if_false @HEIST9_8942
wait 20
$x, $y, 313@ = get_object_coordinates 314@
313@ -= 0.3
set_object_coordinates 314@ {x} $x {y} $y {z} 313@
goto @HEIST9_8872

:HEIST9_8942
139@ = create_fx_system "TEARGASAD" {x} 2144.323 {y} 1622.684 {z} 992.5681 {ignoreBoundingChecks} True
play_fx_system 139@
wait 1500
58@ = 0

:HEIST9_8992
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9016
goto @HEIST9_10102

:HEIST9_9016
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_9191
if 
  58@ == 0
goto_if_false @HEIST9_9114
clear_char_tasks_immediately 109@(58@,5i)
task_play_anim 109@(58@,5i) {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 200

:HEIST9_9114
if 
  58@ == 1
goto_if_false @HEIST9_9191
clear_char_tasks_immediately 109@(58@,5i)
task_play_anim 109@(58@,5i) {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 100

:HEIST9_9191
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_9222
set_char_collision 109@(58@,5i) {state} False

:HEIST9_9222
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8992
TIMERB = 0

:HEIST9_9250
if 
  1000 > TIMERB
goto_if_false @HEIST9_9304
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9297
goto @HEIST9_10102

:HEIST9_9297
goto @HEIST9_9250

:HEIST9_9304
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12321

:HEIST9_9315
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9341
wait 0
goto @HEIST9_9315

:HEIST9_9341
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9352
if 
  1500 > TIMERB
goto_if_false @HEIST9_9406
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9399
goto @HEIST9_10102

:HEIST9_9399
goto @HEIST9_9352

:HEIST9_9406
if 
  not is_char_dead 110@
goto_if_false @HEIST9_9430
report_mission_audio_event_at_char 110@ {soundId} ScriptSound.SoundPedCollapse

:HEIST9_9430
TIMERB = 0

:HEIST9_9437
if 
  500 > TIMERB
goto_if_false @HEIST9_9491
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9484
goto @HEIST9_10102

:HEIST9_9484
goto @HEIST9_9437

:HEIST9_9491
print_now 'HE8_FB' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12295

:HEIST9_9518
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9544
wait 0
goto @HEIST9_9518

:HEIST9_9544
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9555
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9605
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9598
goto @HEIST9_10102

:HEIST9_9598
goto @HEIST9_9555

:HEIST9_9605
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_9651
set_char_coordinates_dont_warp_gang $scplayer {x} 2143.376 {y} 1619.655 {z} 999.9764
set_char_heading $scplayer {heading} 182.7419

:HEIST9_9651
stop_fx_system 139@
kill_fx_system_now 139@
clear_area 2144.323 {y} 1622.684 {z} 997.0 {radius} 10.0 {clearParticles} True
clear_area 2143.2661 {y} 1618.145 {z} 999.9764 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2142.75 {y} 1617.8361 {z} 1001.143 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2142.9971 {y} 1618.803 {z} 1001.197 {switchStyle} SwitchType.JumpCut
print_now 'HE8_FC' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12235

:HEIST9_9787
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9813
wait 0
goto @HEIST9_9787

:HEIST9_9813
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9824
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9874
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9867
goto @HEIST9_10102

:HEIST9_9867
goto @HEIST9_9824

:HEIST9_9874
print_now 'HE8_FD' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12236

:HEIST9_9901
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9927
wait 0
goto @HEIST9_9901

:HEIST9_9927
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9938
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9988
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9981
goto @HEIST9_10102

:HEIST9_9981
goto @HEIST9_9938

:HEIST9_9988
print_now 'HE8_FE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12237

:HEIST9_10015
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_10041
wait 0
goto @HEIST9_10015

:HEIST9_10041
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_10052
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_10102
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_10095
goto @HEIST9_10102

:HEIST9_10095
goto @HEIST9_10052

:HEIST9_10102
delete_object 314@
mark_model_as_no_longer_needed 343
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_10158
set_char_coordinates_dont_warp_gang $scplayer {x} 2143.22 {y} 1618.3719 {z} 999.9688
set_char_heading $scplayer {heading} 175.5027

:HEIST9_10158
if 
  not is_char_dead 109@
goto_if_false @HEIST9_10240
clear_char_tasks_immediately 109@
task_play_anim_non_interruptable 109@ {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_ped_threat_scanner 109@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 109@ {handleOrTemplate} 120@

:HEIST9_10240
if 
  not is_char_dead 110@
goto_if_false @HEIST9_10322
clear_char_tasks_immediately 110@
task_play_anim_non_interruptable 110@ {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_ped_threat_scanner 110@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 110@ {handleOrTemplate} 120@

:HEIST9_10322
gosub @HEIST9_46308
stop_fx_system 139@
kill_fx_system_now 139@

:HEIST9_10339
print_now 'HM9_12' {time} 5000 {flag} 1
remove_blip 108@
45@ = add_blip_for_coord 2168.1731 {y} 1616.986 {z} 998.97
set_blip_entry_exit 45@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
38@ = 3
246@ = 1

:HEIST9_10414
if 
  116@ == 4
goto_if_false @HEIST9_10446
116@ = 5
goto @HEIST9_10339

:HEIST9_10446
if and
  not is_message_being_displayed 
  246@ <> 12
  246@ <> 0
goto_if_false @HEIST9_11316
if and
  231@ == 2
  246@ == 1
goto_if_false @HEIST9_10557
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_10521
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_10521
set_lvar_text_label 288@s = 'HE8_GB'
set_lvar_int_to_constant 232@ = 12238
gosub @HEIST9_50650
246@ = 2

:HEIST9_10557
if and
  231@ == 2
  246@ == 2
goto_if_false @HEIST9_10618
set_lvar_text_label 288@s = 'HE8_GC'
set_lvar_int_to_constant 232@ = 12239
gosub @HEIST9_50650
246@ = 3

:HEIST9_10618
if and
  231@ == 2
  246@ == 3
goto_if_false @HEIST9_10679
set_lvar_text_label 288@s = 'HE8_GD'
set_lvar_int_to_constant 232@ = 12240
gosub @HEIST9_50650
246@ = 4

:HEIST9_10679
if and
  231@ == 2
  246@ == 4
goto_if_false @HEIST9_10986
set_darkness_effect True {pitchBlack} 220
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 33402

:HEIST9_10724
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_10750
wait 0
goto @HEIST9_10724

:HEIST9_10750
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_10769
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_10769
wait 100
set_lvar_text_label 288@s = 'HE8_GE'
set_lvar_int_to_constant 232@ = 12241
gosub @HEIST9_50650
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2157.5969 {y} 1597.863 {z} 998.9694 {speed} MoveState.Run {time} -1
task_look_at_coord -1 {x} 2155.781 {y} 1598.063 {z} 998.9686 {time} -2
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
58@ = 0

:HEIST9_10912
if 
  not is_char_dead 218@(58@,10i)
goto_if_false @HEIST9_10953
clear_char_tasks_immediately 218@(58@,10i)
perform_sequence_task 218@(58@,10i) {sequence} 53@

:HEIST9_10953
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_10912
clear_sequence_task 53@
246@ = 5

:HEIST9_10986
if and
  231@ == 2
  246@ == 5
goto_if_false @HEIST9_11084
if 
  not is_night_vision_active 
goto_if_false @HEIST9_11077
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11048
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_11048
set_lvar_text_label 288@s = 'HE8_GF'
set_lvar_int_to_constant 232@ = 12297
gosub @HEIST9_50650

:HEIST9_11077
246@ = 9

:HEIST9_11084
if and
  231@ == 2
  246@ == 9
goto_if_false @HEIST9_11160
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11130
stop_char_facial_talk $scplayer

:HEIST9_11130
print_now 'HM9_49' {time} 5000 {flag} 1
246@ = 10
TIMERB = 0

:HEIST9_11160
if and
  TIMERB > 5000
  249@ == 0
goto_if_false @HEIST9_11316
if and
  38@ == 5
  231@ == 2
  246@ == 10
goto_if_false @HEIST9_11225
246@ = 11

:HEIST9_11225
if and
  38@ == 5
  231@ == 2
  246@ == 11
goto_if_false @HEIST9_11316
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11280
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_11280
set_lvar_text_label 288@s = 'HE8_HB'
set_lvar_int_to_constant 232@ = 12243
gosub @HEIST9_50650
246@ = 12

:HEIST9_11316
if 
  38@ == 3
goto_if_false @HEIST9_11718
if 
  locate_char_any_means_3d $scplayer {x} 2167.5991 {y} 1617.412 {z} 998.9715 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_11716
if 
  not is_help_message_being_displayed 
goto_if_false @HEIST9_11406
print_help_forever 'HM9_29'

:HEIST9_11406
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST9_11709
58@ = 0

:HEIST9_11430
delete_char 218@(58@,10i)
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_11430
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 33400

:HEIST9_11473
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_11499
wait 0
goto @HEIST9_11473

:HEIST9_11499
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 214
remove_blip 45@
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2167.5991 {y} 1617.287 {z} 998.9715
set_char_heading $scplayer {heading} 270.0
task_play_anim $scplayer {animationName} "USE_SWIPECARD" {animationFile} "HEIST9" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_11621
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_11621
wait 500
58@ = 0

:HEIST9_11633
if 
  58@ <> 33
goto_if_false @HEIST9_11686
wait 0
  rotate_object $w5_storm_freighter_door {fromAngle} 180.0 {toAngle} 3.0 {collisionCheck} False
58@ += 1
goto @HEIST9_11633

:HEIST9_11686
38@ = 5
clear_help 
215@ = 0
TIMERA = 0

:HEIST9_11709
goto @HEIST9_11718

:HEIST9_11716
clear_help 

:HEIST9_11718
if 
  38@ == 5
goto_if_false @HEIST9_12432
if and
  231@ == 2
  215@ == 0
goto_if_false @HEIST9_11919
request_model 530

:HEIST9_11766
if 
  not has_model_loaded 530
goto_if_false @HEIST9_11793
wait 0
goto @HEIST9_11766

:HEIST9_11793
46@ = create_car 530 {x} 2173.6211 {y} 1585.964 {z} 998.9722
set_vehicle_area_visible 46@ {interiorId} 1
set_car_heading 46@ {heading} 270.0
change_car_colour 46@ {color1} 6 {color2} 6
209@ = 1
if 
  not is_car_dead 46@
goto_if_false @HEIST9_11872
set_vehicle_area_visible 46@ {interiorId} 1

:HEIST9_11872
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
215@ = 1

:HEIST9_11919
if and
  locate_char_any_means_3d $scplayer {x} 2224.4519 {y} 1595.4351 {z} 998.9753 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  249@ == 0
goto_if_false @HEIST9_11981
249@ = 1

:HEIST9_11981
if and
  231@ == 2
  249@ == 1
goto_if_false @HEIST9_12042
set_lvar_text_label 288@s = 'HE8_JA'
set_lvar_int_to_constant 232@ = 12244
gosub @HEIST9_50650
249@ = 2

:HEIST9_12042
if and
  231@ == 2
  249@ == 2
goto_if_false @HEIST9_12103
set_lvar_text_label 288@s = 'HE8_JB'
set_lvar_int_to_constant 232@ = 12245
gosub @HEIST9_50650
249@ = 3

:HEIST9_12103
if and
  231@ == 2
  249@ == 3
goto_if_false @HEIST9_12207
if 
  does_blip_exist 90@
goto_if_false @HEIST9_12149
remove_blip 90@

:HEIST9_12149
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12200
47@ = add_blip_for_car 46@
set_blip_entry_exit 47@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
set_blip_as_friendly 47@ {state} True

:HEIST9_12200
249@ = 4

:HEIST9_12207
if and
  231@ == 2
  249@ == 4
goto_if_false @HEIST9_12255
print_now 'HM9_51' {time} 7000 {flag} 1
249@ = 5

:HEIST9_12255
if 
  209@ == 1
goto_if_false @HEIST9_12432
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12432
if 
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_12432
if and
  50@ == 0
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_12432
print_now 'HM9_5' {time} 5000 {flag} 1
50@ = 1
38@ = 6
211@ = 1
if 
  does_blip_exist 90@
goto_if_false @HEIST9_12392
remove_blip 90@

:HEIST9_12392
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_12432
if and
  is_car_dead 46@
  7 > 38@
  209@ == 1
goto_if_false @HEIST9_12492
gosub @HEIST9_50385
print_now 'HM9_13' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_12492
if 
  38@ == 6
goto_if_false @HEIST9_17990
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12636
if and
  is_char_in_car $scplayer {vehicle} 46@
  95@ == 0
goto_if_false @HEIST9_12573
change_blip_display 47@ {display} BlipDisplay.Neither
change_blip_display 90@ {display} BlipDisplay.Both
95@ = 1

:HEIST9_12573
if and
  not is_char_in_car $scplayer {vehicle} 46@
  95@ == 1
goto_if_false @HEIST9_12636
print_now 'HM9_23' {time} 3000 {flag} 1
change_blip_display 47@ {display} BlipDisplay.Both
change_blip_display 90@ {display} BlipDisplay.Neither
95@ = 0

:HEIST9_12636
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13020
$h9_player_in_casino = get_car_moving_component_offset 46@
if 
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_13020
if 
  locate_stopped_char_any_means_3d $scplayer {x} 2220.543 {y} 1573.141 {z} 998.9672 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @HEIST9_12745
print_help_forever 'HM9_53'
goto @HEIST9_12747

:HEIST9_12745
clear_help 

:HEIST9_12747
$x, $y, $z = get_char_coordinates $scplayer
287@ = get_char_heading $scplayer
set_var_float_to_var_float $h9_z1 = $h9_player_in_casino
$h9_z1 += 1001.6
add_float_var_to_float_var $h9_player_in_casino += $z
if and
  287@ > 140.0
  220.0 > 287@
goto_if_false @HEIST9_13020
if and
  $y > 1572.8
  1573.8 > $y
goto_if_false @HEIST9_13020
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickY
goto_if_false @HEIST9_12987
177@, 178@, $h9_offset = get_object_coordinates 49@
$RStickY = 0
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
set_var_float_to_var_float $h9_offset = $h9_z1
$h9_offset -= 0.1
set_object_coordinates 49@ {x} 2220.188 {y} 1571.7629 {z} $h9_offset
if 
  305@ == 0
goto_if_false @HEIST9_12980
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorSlowStart
305@ = 1

:HEIST9_12980
goto @HEIST9_13020

:HEIST9_12987
if 
  305@ == 1
goto_if_false @HEIST9_13020
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorSlowStop
305@ = 0

:HEIST9_13020
if and
  $h9_offset >= 1002.8
  not is_char_dead $scplayer
goto_if_false @HEIST9_17990
if 
  is_char_in_model $scplayer {modelId} 530
goto_if_false @HEIST9_17974
214@ = create_pickup_with_ammo 363 {pickupType} PickupType.Once {ammo} 10 {x} 2146.4871 {y} 1622.8051 {z} 993.5
if 
  not is_char_dead 225@
goto_if_false @HEIST9_13113
delete_char 225@

:HEIST9_13113
if 
  not is_char_dead 226@
goto_if_false @HEIST9_13134
delete_char 226@

:HEIST9_13134
if 
  not is_char_dead 227@
goto_if_false @HEIST9_13155
delete_char 227@

:HEIST9_13155
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_13178
set_player_control $player1 {state} False

:HEIST9_13178
remove_blip 90@
clear_help 
request_car_recording 499
request_car_recording 487

:HEIST9_13195
if or
  not has_car_recording_been_loaded 499
  not has_car_recording_been_loaded 487
goto_if_false @HEIST9_13227
wait 0
goto @HEIST9_13195

:HEIST9_13227
if 
  not is_car_dead 51@
goto_if_false @HEIST9_13257
set_vehicle_area_visible 51@ {interiorId} 1
switch_car_siren 51@ {state} True

:HEIST9_13257
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13303
set_car_coordinates 46@ {x} 2220.543 {y} 1573.141 {z} 998.9672
set_car_heading 46@ {heading} 180.0

:HEIST9_13303
gosub @HEIST9_46291
set_fixed_camera_position 2224.6941 {y} 1577.632 {z} 1002.633 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.199 {y} 1576.8571 {z} 1002.241 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 487
  not is_car_dead 46@
goto_if_false @HEIST9_13390
start_playback_recorded_car 46@ {path} 487

:HEIST9_13390
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorStart
if 
  does_object_exist 49@
goto_if_false @HEIST9_13428
177@, 178@, $h9_offset = get_object_coordinates 49@

:HEIST9_13428
if 
  $h9_offset <= 1005.4
goto_if_false @HEIST9_13488
wait 50
$h9_offset += 0.1
set_object_coordinates 49@ {x} 2220.188 {y} 1571.7629 {z} $h9_offset
goto @HEIST9_13428

:HEIST9_13488
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorStop
if and
  has_car_recording_been_loaded 499
  not is_car_dead 51@
goto_if_false @HEIST9_13525
start_playback_recorded_car 51@ {path} 499

:HEIST9_13525
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13592
if 
  is_playback_going_on_for_car 46@
goto_if_false @HEIST9_13562
stop_playback_recorded_car 46@

:HEIST9_13562
set_car_coordinates 46@ {x} 2218.0391 {y} 1592.2321 {z} 998.9783
set_car_heading 46@ {heading} 26.1233

:HEIST9_13592
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_13681
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_13651
warp_char_from_car_to_coord $scplayer {x} 2217.115 {y} 1589.683 {z} 998.9709
goto @HEIST9_13671

:HEIST9_13651
set_char_coordinates_dont_warp_gang $scplayer {x} 2217.115 {y} 1589.683 {z} 998.9709

:HEIST9_13671
set_char_heading $scplayer {heading} 209.5064

:HEIST9_13681
58@ = 0

:HEIST9_13688
if 
  not is_char_dead 218@(58@,10i)
goto_if_false @HEIST9_13717
delete_char 218@(58@,10i)

:HEIST9_13717
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_13688
request_model 363
request_model 364
request_model 353
request_model 164

:HEIST9_13758
if or
  not has_model_loaded 363
  not has_model_loaded 364
  not has_model_loaded 353
  not has_model_loaded 164
goto_if_false @HEIST9_13800
wait 0
goto @HEIST9_13758

:HEIST9_13800
set_fixed_camera_position 2217.3701 {y} 1580.595 {z} 1000.582 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.6631 {y} 1579.639 {z} 1000.559 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:HEIST9_13858
if 
  3000 > TIMERB
goto_if_false @HEIST9_13912
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_13905
goto @HEIST9_15917

:HEIST9_13905
goto @HEIST9_13858

:HEIST9_13912
set_fixed_camera_position 2215.1321 {y} 1594.248 {z} 1002.778 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2215.4089 {y} 1593.319 {z} 1002.531 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 51@
goto_if_false @HEIST9_13986
freeze_car_position 51@ {state} True

:HEIST9_13986
print_now 'HE8_KA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12200

:HEIST9_14013
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14039
wait 0
goto @HEIST9_14013

:HEIST9_14039
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14050
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14100
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14093
goto @HEIST9_15917

:HEIST9_14093
goto @HEIST9_14050

:HEIST9_14100
if 
  not is_car_dead 51@
goto_if_false @HEIST9_14563
53@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2224.155 {y} 1579.691 {z} 998.9739
extend_route 2223.636 {y} 1585.549 {z} 998.9675
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
if 
  not is_char_dead 54@
goto_if_false @HEIST9_14245
perform_sequence_task 54@ {sequence} 53@

:HEIST9_14245
clear_sequence_task 53@
53@ = open_sequence_task 
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2220.033 {y} 1584.614 {z} 998.9719
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 55@
goto_if_false @HEIST9_14339
perform_sequence_task 55@ {sequence} 53@

:HEIST9_14339
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2221.4951 {y} 1584.948 {z} 998.9701
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 56@
goto_if_false @HEIST9_14440
perform_sequence_task 56@ {sequence} 53@

:HEIST9_14440
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2216.699 {y} 1578.363 {z} 998.9761
extend_route 2217.5381 {y} 1583.64 {z} 998.9749
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 57@
goto_if_false @HEIST9_14558
perform_sequence_task 57@ {sequence} 53@

:HEIST9_14558
clear_sequence_task 53@

:HEIST9_14563
print_now 'HE8_KB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12201

:HEIST9_14590
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14616
wait 0
goto @HEIST9_14590

:HEIST9_14616
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14627
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14677
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14670
goto @HEIST9_15917

:HEIST9_14670
goto @HEIST9_14627

:HEIST9_14677
print_now 'HE8_KC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12202

:HEIST9_14704
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14730
wait 0
goto @HEIST9_14704

:HEIST9_14730
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14741
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14791
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14784
goto @HEIST9_15917

:HEIST9_14784
goto @HEIST9_14741

:HEIST9_14791
print_now 'HE8_KD' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12203

:HEIST9_14818
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14844
wait 0
goto @HEIST9_14818

:HEIST9_14844
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14855
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14905
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14898
goto @HEIST9_15917

:HEIST9_14898
goto @HEIST9_14855

:HEIST9_14905
set_fixed_camera_position 2219.6531 {y} 1584.915 {z} 1001.211 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2220.1799 {y} 1585.746 {z} 1001.034 {switchStyle} SwitchType.JumpCut
print_now 'HE8_KE' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12204

:HEIST9_14983
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15009
wait 0
goto @HEIST9_14983

:HEIST9_15009
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 54@
goto_if_false @HEIST9_15157
53@ = open_sequence_task 
flush_route 
extend_route 2224.1919 {y} 1589.193 {z} 998.9668
extend_route 2225.4651 {y} 1592.9969 {z} 998.9677
extend_route 2226.739 {y} 1597.796 {z} 998.9755
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_play_anim -1 {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
clear_char_tasks_immediately 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_15157
TIMERB = 0

:HEIST9_15164
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15214
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15207
goto @HEIST9_15917

:HEIST9_15207
goto @HEIST9_15164

:HEIST9_15214
TIMERB = 0

:HEIST9_15221
if 
  2500 > TIMERB
goto_if_false @HEIST9_15275
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15268
goto @HEIST9_15917

:HEIST9_15268
goto @HEIST9_15221

:HEIST9_15275
shake_cam 30
TIMERB = 0

:HEIST9_15286
if 
  1500 > TIMERB
goto_if_false @HEIST9_15340
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15333
goto @HEIST9_15917

:HEIST9_15333
goto @HEIST9_15286

:HEIST9_15340
if 
  not is_char_dead 54@
goto_if_false @HEIST9_15490
if 
  not is_char_dead 55@
goto_if_false @HEIST9_15385
clear_char_tasks 55@
task_turn_char_to_face_char 55@ {target} 54@

:HEIST9_15385
if 
  not is_char_dead 56@
goto_if_false @HEIST9_15414
clear_char_tasks 56@
task_turn_char_to_face_char 56@ {target} 54@

:HEIST9_15414
wait 100
if and
  not is_char_dead 57@
  not is_char_dead 54@
goto_if_false @HEIST9_15452
clear_char_tasks 57@
task_turn_char_to_face_char 57@ {target} 54@

:HEIST9_15452
wait 100
if and
  not is_char_dead $scplayer
  not is_char_dead 54@
goto_if_false @HEIST9_15490
clear_char_tasks $scplayer
task_turn_char_to_face_char $scplayer {target} 54@

:HEIST9_15490
print_now 'HE8_KF' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12205

:HEIST9_15517
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15543
wait 0
goto @HEIST9_15517

:HEIST9_15543
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15554
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15604
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15597
goto @HEIST9_15917

:HEIST9_15597
goto @HEIST9_15554

:HEIST9_15604
if and
  not is_char_dead $scplayer
  not is_char_dead 54@
goto_if_false @HEIST9_15638
clear_char_tasks 54@
task_turn_char_to_face_char 54@ {target} $scplayer

:HEIST9_15638
set_fixed_camera_position 2216.9629 {y} 1581.526 {z} 1000.579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.4031 {y} 1582.416 {z} 1000.465 {switchStyle} SwitchType.JumpCut
print_now 'HE8_KG' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12246

:HEIST9_15716
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15742
wait 0
goto @HEIST9_15716

:HEIST9_15742
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15753
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15803
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15796
goto @HEIST9_15917

:HEIST9_15796
goto @HEIST9_15753

:HEIST9_15803
print_now 'HE8_KH' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12206

:HEIST9_15830
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15856
wait 0
goto @HEIST9_15830

:HEIST9_15856
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15867
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15917
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15910
goto @HEIST9_15917

:HEIST9_15910
goto @HEIST9_15867

:HEIST9_15917
315@ = create_char PedType.Mission1 {modelId} 163 {x} 2201.126 {y} 1617.877 {z} 998.9827
set_char_area_visible 315@ {areaId} 1
set_char_heading 315@ {heading} 267.4834
task_toggle_duck 315@ {state} True
316@ = create_char PedType.Mission1 {modelId} 164 {x} 2196.083 {y} 1618.684 {z} 998.9766
set_char_area_visible 316@ {areaId} 1
set_char_heading 316@ {heading} 263.4616
317@ = create_char PedType.Mission1 {modelId} 163 {x} 2207.917 {y} 1620.3719 {z} 998.9827
set_char_area_visible 317@ {areaId} 1
set_char_heading 317@ {heading} 267.4754
task_toggle_duck 317@ {state} True
set_char_only_damaged_by_player 317@ {state} True
58@ = 0

:HEIST9_16071
set_char_money 315@(58@,5i) {amount} 0
if 
  58@ <> 2
goto_if_false @HEIST9_16124
set_char_health 315@(58@,5i) {health} 200
set_char_max_health 315@(58@,5i) {maxHealth} 200

:HEIST9_16124
add_blip_for_char 315@(58@,5i) {var_handle} 320@(58@,15i)
set_blip_entry_exit 320@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 320@(58@,15i) {display} BlipDisplay.BlipOnly
give_weapon_to_char 315@(58@,5i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 315@(58@,5i) {weaponType} WeaponType.Mp5
set_char_accuracy 315@(58@,5i) {accuracy} 20
set_char_shoot_rate 315@(58@,5i) {rate} 20
set_char_decision_maker 315@(58@,5i) {handleOrTemplate} 245@
task_stay_in_same_place 315@(58@,5i) {state} True
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_16071
335@ = create_char PedType.Mission1 {modelId} 163 {x} 2180.075 {y} 1611.573 {z} 998.9766
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 273.7555
set_char_only_damaged_by_player 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 164 {x} 2186.1421 {y} 1612.3979 {z} 998.9777
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 306.4445
task_toggle_duck 336@ {state} True
337@ = create_char PedType.Mission1 {modelId} 163 {x} 2183.521 {y} 1615.246 {z} 998.9766
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 294.2185
338@ = create_char PedType.Mission1 {modelId} 164 {x} 2182.6121 {y} 1623.697 {z} 998.9742
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 248.6147
task_toggle_duck 338@ {state} True
339@ = create_char PedType.Mission1 {modelId} 164 {x} 2179.6809 {y} 1622.4041 {z} 998.9764
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 268.7008
set_char_only_damaged_by_player 339@ {state} True
340@ = create_char PedType.Mission1 {modelId} 163 {x} 2178.853 {y} 1625.603 {z} 998.9709
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 250.7106
341@ = create_char PedType.Mission1 {modelId} 163 {x} 2176.363 {y} 1606.599 {z} 998.9827
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 0.8709
set_sense_range 341@ {range} 5.0
task_toggle_duck 341@ {state} True
342@ = create_char PedType.Mission1 {modelId} 164 {x} 2176.491 {y} 1600.897 {z} 998.9827
set_char_area_visible 342@ {areaId} 1
set_sense_range 342@ {range} 5.0
set_char_heading 342@ {heading} 352.937
343@ = create_char PedType.Mission1 {modelId} 163 {x} 2169.1169 {y} 1618.626 {z} 998.9766
set_char_area_visible 343@ {areaId} 1
set_char_heading 343@ {heading} 272.9878
344@ = create_char PedType.Mission1 {modelId} 163 {x} 2161.208 {y} 1602.776 {z} 998.9812
set_char_area_visible 344@ {areaId} 1
set_char_heading 344@ {heading} 4.2093
345@ = create_char PedType.Mission1 {modelId} 164 {x} 2156.54 {y} 1605.252 {z} 998.9725
set_char_area_visible 345@ {areaId} 1
set_char_heading 345@ {heading} 353.705
58@ = 0

:HEIST9_16790
set_char_money 335@(58@,15i) {amount} 0
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_16850
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200

:HEIST9_16850
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 20
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
task_stay_in_same_place 335@(58@,15i) {state} True
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_16790
$h9_health = 420000
clear_onscreen_timer $h9_health
display_onscreen_timer_with_string $h9_health {direction} TimerDirection.Down {text} 'HM9_1A'
gosub @HEIST9_46308
delete_object 49@
if 
  not is_car_dead 51@
goto_if_false @HEIST9_17107
if 
  is_playback_going_on_for_car 51@
goto_if_false @HEIST9_17072
stop_playback_recorded_car 51@

:HEIST9_17072
set_car_coordinates 51@ {x} 2220.3899 {y} 1577.623 {z} 998.967
set_car_heading 51@ {heading} 179.9804
skip_to_end_and_stop_playback_recorded_car 51@

:HEIST9_17107
if 
  not is_car_dead 51@
goto_if_false @HEIST9_17856
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_17856
286@ = open_sequence_task 
task_pause -1 {time} 10
if 
  not is_char_dead 315@
goto_if_false @HEIST9_17188
task_kill_char_on_foot -1 {target} 315@

:HEIST9_17188
if 
  not is_char_dead 316@
goto_if_false @HEIST9_17211
task_kill_char_on_foot -1 {target} 316@

:HEIST9_17211
if 
  not is_char_dead 317@
goto_if_false @HEIST9_17234
task_kill_char_on_foot -1 {target} 317@

:HEIST9_17234
close_sequence_task 286@
365@ = open_sequence_task 
flush_route 
extend_route 2221.9519 {y} 1586.563 {z} 998.9695
extend_route 2223.3899 {y} 1591.61 {z} 998.9678
extend_route 2224.2529 {y} 1597.906 {z} 998.9766
extend_route 2224.3589 {y} 1599.682 {z} 998.983
task_toggle_duck -1 {state} False
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 365@
366@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2224.593 {y} 1602.6689 {z} 998.9816
extend_route 2224.79 {y} 1609.521 {z} 998.975
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 366@
53@ = open_sequence_task 
if 
  is_char_in_car 55@ {vehicle} 51@
goto_if_false @HEIST9_17428
task_leave_car -1 {vehicle} 51@

:HEIST9_17428
perform_sequence_task -1 {sequence} 365@
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2222.4519 {y} 1617.022 {z} 998.9678 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
if 
  is_char_in_car 56@ {vehicle} 51@
goto_if_false @HEIST9_17539
task_leave_car -1 {vehicle} 51@

:HEIST9_17539
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 1000
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2222.9431 {y} 1620.636 {z} 998.9709 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 1500
if 
  is_char_in_car 57@ {vehicle} 51@
goto_if_false @HEIST9_17657
task_leave_car -1 {vehicle} 51@

:HEIST9_17657
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 3000
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2223.1331 {y} 1610.9659 {z} 998.9728 {speed} MoveState.Walk {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 2000
if 
  is_char_in_car 54@ {vehicle} 51@
goto_if_false @HEIST9_17768
task_leave_car -1 {vehicle} 51@

:HEIST9_17768
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 2500
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2223.1331 {y} 1610.9659 {z} 998.9728 {speed} MoveState.Walk {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 286@
clear_sequence_task 53@
clear_sequence_task 365@
clear_sequence_task 366@

:HEIST9_17856
58@ = 0

:HEIST9_17863
if and
  not is_char_dead 54@(58@,4i)
  not is_car_dead 51@
goto_if_false @HEIST9_17939
add_blip_for_char 54@(58@,4i) {var_handle} 91@(58@,4i)
set_blip_entry_exit 91@(58@,4i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
set_blip_as_friendly 91@(58@,4i) {state} True

:HEIST9_17939
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_17863
38@ = 7
goto @HEIST9_17990

:HEIST9_17974
print_now 'HM9_14' {time} 5000 {flag} 1

:HEIST9_17990
if 
  38@ == 7
goto_if_false @HEIST9_18064
request_animation "BOMBER"

:HEIST9_18018
if 
  not has_animation_loaded "BOMBER"
goto_if_false @HEIST9_18050
wait 0
goto @HEIST9_18018

:HEIST9_18050
38@ = 8
TIMERA = 0

:HEIST9_18064
if 
  38@ == 8
goto_if_false @HEIST9_24152
58@ = 0

:HEIST9_18089
if and
  is_char_dead 315@(58@,5i)
  320@(58@,15i) <> 0
goto_if_false @HEIST9_18169
if 
  does_blip_exist 320@(58@,15i)
goto_if_false @HEIST9_18169
remove_blip 320@(58@,15i)
320@(58@,15i) = 0
mark_char_as_no_longer_needed 315@(58@,5i)

:HEIST9_18169
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_18089
58@ = 0

:HEIST9_18197
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_18277
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_18277
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_18277
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_18197
if and
  is_char_dead 315@
  is_char_dead 316@
  is_char_dead 317@
  257@ == 0
goto_if_false @HEIST9_19163
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_19156
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 335@
goto_if_false @HEIST9_18396
task_kill_char_on_foot -1 {target} 335@

:HEIST9_18396
if 
  not is_char_dead 337@
goto_if_false @HEIST9_18419
task_kill_char_on_foot -1 {target} 337@

:HEIST9_18419
if 
  not is_char_dead 336@
goto_if_false @HEIST9_18442
task_kill_char_on_foot -1 {target} 336@

:HEIST9_18442
if 
  not is_char_dead 341@
goto_if_false @HEIST9_18465
task_kill_char_on_foot -1 {target} 341@

:HEIST9_18465
if 
  not is_char_dead 342@
goto_if_false @HEIST9_18488
task_kill_char_on_foot -1 {target} 342@

:HEIST9_18488
close_sequence_task 286@
365@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2217.468 {y} 1619.031 {z} 998.9766
extend_route 2209.887 {y} 1618.989 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
extend_route 2203.74 {y} 1619.167 {z} 998.9827
extend_route 2199.1189 {y} 1618.858 {z} 998.9827
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 365@
53@ = open_sequence_task 
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2196.144 {y} 1618.719 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2192.7261 {y} 1618.6281 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2190.531 {y} 1617.373 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 286@
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 338@
goto_if_false @HEIST9_18756
task_kill_char_on_foot -1 {target} 338@

:HEIST9_18756
if 
  not is_char_dead 339@
goto_if_false @HEIST9_18779
task_kill_char_on_foot -1 {target} 339@

:HEIST9_18779
if 
  not is_char_dead 340@
goto_if_false @HEIST9_18802
task_kill_char_on_foot -1 {target} 340@

:HEIST9_18802
if 
  not is_char_dead 341@
goto_if_false @HEIST9_18825
task_kill_char_on_foot -1 {target} 341@

:HEIST9_18825
if 
  not is_char_dead 342@
goto_if_false @HEIST9_18848
task_kill_char_on_foot -1 {target} 342@

:HEIST9_18848
close_sequence_task 286@
clear_sequence_task 53@
53@ = open_sequence_task 
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2196.144 {y} 1618.719 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2191.2141 {y} 1620.229 {z} 998.9802 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_path_nodes_to_coord -1 {x} 2223.3911 {y} 1619.15 {z} 998.9672 {speed} MoveState.Run {time} -1
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2198.9419 {y} 1617.974 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_path_nodes_to_coord -1 {x} 2223.3911 {y} 1619.15 {z} 998.9672 {speed} MoveState.Run {time} -1
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2197.8159 {y} 1617.827 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 286@
clear_sequence_task 53@
clear_sequence_task 365@

:HEIST9_19156
257@ = 1

:HEIST9_19163
if and
  locate_char_any_means_3d $scplayer {x} 2158.438 {y} 1618.74 {z} 998.965 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  37@ == 0
goto_if_false @HEIST9_19254
if 
  not is_char_dead 344@
goto_if_false @HEIST9_19247
clear_char_tasks 344@
perform_sequence_task 344@ {sequence} 212@

:HEIST9_19247
37@ = 1

:HEIST9_19254
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  258@ == 0
goto_if_false @HEIST9_19845
if and
  is_char_dead 339@
  is_char_dead 340@
  257@ == 1
goto_if_false @HEIST9_19845
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_19845
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 343@
goto_if_false @HEIST9_19385
task_kill_char_on_foot -1 {target} 343@

:HEIST9_19385
if 
  not is_char_dead 341@
goto_if_false @HEIST9_19408
task_kill_char_on_foot -1 {target} 341@

:HEIST9_19408
if 
  not is_char_dead 342@
goto_if_false @HEIST9_19431
task_kill_char_on_foot -1 {target} 342@

:HEIST9_19431
close_sequence_task 286@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2188.958 {y} 1615.043 {z} 998.9766
extend_route 2184.968 {y} 1614.8361 {z} 998.9766
extend_route 2181.061 {y} 1612.783 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2187.532 {y} 1623.486 {z} 998.9746
extend_route 2182.6431 {y} 1624.14 {z} 998.9734
extend_route 2180.7781 {y} 1624.2371 {z} 998.9733
extend_route 2178.4939 {y} 1623.014 {z} 998.9754
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2195.998 {y} 1618.965 {z} 998.9766
extend_route 2190.157 {y} 1620.457 {z} 998.9797
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2195.998 {y} 1618.965 {z} 998.9766
extend_route 2190.4351 {y} 1616.811 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
clear_sequence_task 286@
258@ = 1

:HEIST9_19845
if and
  is_char_dead 341@
  is_char_dead 342@
  is_char_dead 343@
  258@ == 1
goto_if_false @HEIST9_20551
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_20551
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 345@
goto_if_false @HEIST9_19943
task_kill_char_on_foot -1 {target} 345@

:HEIST9_19943
if 
  not is_char_dead 344@
goto_if_false @HEIST9_19966
task_kill_char_on_foot -1 {target} 344@

:HEIST9_19966
close_sequence_task 286@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2177.6841 {y} 1614.631 {z} 998.9766
extend_route 2173.2959 {y} 1618.374 {z} 998.9766
extend_route 2169.075 {y} 1618.589 {z} 998.9766
extend_route 2165.563 {y} 1618.568 {z} 998.9752
extend_route 2159.532 {y} 1617.056 {z} 998.9662
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2174.709 {y} 1621.068 {z} 998.978
extend_route 2169.1541 {y} 1618.646 {z} 998.9766
extend_route 2161.4009 {y} 1619.6281 {z} 998.9706
extend_route 2155.9819 {y} 1619.0601 {z} 998.9666
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 180.0
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2190.0029 {y} 1622.425 {z} 998.9764
extend_route 2186.135 {y} 1623.306 {z} 998.9749
extend_route 2182.4399 {y} 1624.333 {z} 998.9731
extend_route 2178.6389 {y} 1623.895 {z} 998.9739
extend_route 2174.7561 {y} 1622.692 {z} 998.976
extend_route 2169.405 {y} 1620.61 {z} 998.9795
task_achieve_heading -1 {heading} 172.0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2188.5371 {y} 1615.527 {z} 998.9766
extend_route 2184.4109 {y} 1614.467 {z} 998.9766
extend_route 2180.2241 {y} 1614.09 {z} 998.9766
extend_route 2175.855 {y} 1615.655 {z} 998.9766
extend_route 2169.48 {y} 1617.1851 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
clear_sequence_task 286@
258@ = 2

:HEIST9_20551
if and
  is_char_dead 344@
  is_char_dead 345@
  258@ == 2
goto_if_false @HEIST9_20736
53@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 2157.8721 {y} 1603.249 {z} 998.973 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2144.301 {y} 1610.444 {z} 992.6882 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_20648
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_20689
clear_char_tasks 54@(58@,4i)
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_20689
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_20648
clear_sequence_task 53@
367@ = 1
TIMERB = 0
258@ = 3

:HEIST9_20736
if 
  locate_char_any_means_3d $scplayer {x} 2195.041 {y} 1618.905 {z} 998.9766 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_21078
if and
  not is_car_dead 46@
  not is_char_dead $scplayer
goto_if_false @HEIST9_20834
if 
  not is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_20834
delete_car 46@
mark_model_as_no_longer_needed 530

:HEIST9_20834
if 
  304@ == 0
goto_if_false @HEIST9_21078
if 
  not is_char_dead 341@
goto_if_false @HEIST9_20959
53@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_pause -1 {time} 3000
flush_route 
extend_route 2176.6279 {y} 1610.473 {z} 998.9766
extend_route 2173.5601 {y} 1623.915 {z} 998.9739
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 270.0
close_sequence_task 53@
perform_sequence_task 341@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_20959
if 
  not is_char_dead 342@
goto_if_false @HEIST9_21071
clear_sequence_task 53@
53@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_pause -1 {time} 3000
flush_route 
extend_route 2176.6279 {y} 1610.473 {z} 998.9766
extend_route 2175.9719 {y} 1613.853 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 270.0
close_sequence_task 53@
perform_sequence_task 342@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_21071
304@ = 1

:HEIST9_21078
if 
  251@ == 0
goto_if_false @HEIST9_21258
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21153
print_with_number_now 'HM9_1C' {num} 7 {duration} 5000 {flag} 1
105@ = 1
TIMERB = 0

:HEIST9_21153
if and
  TIMERB > 5000
  105@ == 1
goto_if_false @HEIST9_21209
print_now 'HM9_21' {time} 6000 {flag} 1
105@ = 2
TIMERB = 0

:HEIST9_21209
if and
  TIMERB > 6000
  105@ == 2
goto_if_false @HEIST9_21258
print_now 'HM9_1G' {time} 7000 {flag} 1
105@ = 3

:HEIST9_21258
if 
  367@ <> 0
goto_if_false @HEIST9_21728
if 
  367@ == 1
goto_if_false @HEIST9_21361
58@ = 0

:HEIST9_21301
delete_char 315@(58@,5i)
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_21301
print_now 'HM9_1E' {time} 5000 {flag} 1
367@ = 2
TIMERA = 0

:HEIST9_21361
if and
  TIMERA > 4000
  367@ == 2
goto_if_false @HEIST9_21423
set_lvar_text_label 288@s = 'HE8_LA'
set_lvar_int_to_constant 232@ = 12247
gosub @HEIST9_50650
367@ = 3

:HEIST9_21423
if and
  231@ == 2
  367@ == 3
goto_if_false @HEIST9_21484
set_lvar_text_label 288@s = 'HE8_LB'
set_lvar_int_to_constant 232@ = 12207
gosub @HEIST9_50650
367@ = 4

:HEIST9_21484
if and
  231@ == 2
  367@ == 4
goto_if_false @HEIST9_21545
set_lvar_text_label 288@s = 'HE8_LC'
set_lvar_int_to_constant 232@ = 12248
gosub @HEIST9_50650
367@ = 5

:HEIST9_21545
if and
  231@ == 2
  367@ == 5
goto_if_false @HEIST9_21606
set_lvar_text_label 288@s = 'HE8_LD'
set_lvar_int_to_constant 232@ = 12208
gosub @HEIST9_50650
367@ = 6

:HEIST9_21606
if and
  231@ == 2
  367@ == 6
goto_if_false @HEIST9_21667
set_lvar_text_label 288@s = 'HE8_LE'
set_lvar_int_to_constant 232@ = 12221
gosub @HEIST9_50650
367@ = 7

:HEIST9_21667
if and
  231@ == 2
  367@ == 7
goto_if_false @HEIST9_21728
set_lvar_text_label 288@s = 'HE8_LF'
set_lvar_int_to_constant 232@ = 12209
gosub @HEIST9_50650
367@ = 0

:HEIST9_21728
234@ = 0
if and
  251@ > 1
  252@ == 1
goto_if_false @HEIST9_22822
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21905
58@ = 0

:HEIST9_21792
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_21792
233@ = add_blip_for_coord 2144.1011 {y} 1623.453 {z} 993.5677
set_blip_entry_exit 233@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 233@ {display} BlipDisplay.Neither
set_lvar_text_label 288@s = 'HE8_MA'
set_lvar_int_to_constant 232@ = 12210
gosub @HEIST9_50650
105@ = 1

:HEIST9_21905
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_21966
set_lvar_text_label 288@s = 'HE8_MB'
set_lvar_int_to_constant 232@ = 12249
gosub @HEIST9_50650
105@ = 2

:HEIST9_21966
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_22034
set_lvar_text_label 288@s = 'HE8_MC'
set_lvar_int_to_constant 232@ = 12300
gosub @HEIST9_50650
105@ = 3
TIMERA = 0

:HEIST9_22034
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_22095
set_lvar_text_label 288@s = 'HE8_NA'
set_lvar_int_to_constant 232@ = 12250
gosub @HEIST9_50650
105@ = 4

:HEIST9_22095
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_22156
set_lvar_text_label 288@s = 'HE8_NB'
set_lvar_int_to_constant 232@ = 12251
gosub @HEIST9_50650
105@ = 5

:HEIST9_22156
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_22224
set_lvar_text_label 288@s = 'HE8_NC'
set_lvar_int_to_constant 232@ = 12301
gosub @HEIST9_50650
105@ = 6
TIMERA = 0

:HEIST9_22224
if and
  231@ == 2
  105@ == 6
goto_if_false @HEIST9_22285
set_lvar_text_label 288@s = 'HE8_ND'
set_lvar_int_to_constant 232@ = 12252
gosub @HEIST9_50650
105@ = 7

:HEIST9_22285
if and
  231@ == 2
  105@ == 7
goto_if_false @HEIST9_22353
set_lvar_text_label 288@s = 'HE8_NE'
set_lvar_int_to_constant 232@ = 12302
gosub @HEIST9_50650
105@ = 8
TIMERA = 0

:HEIST9_22353
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_22822
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @HEIST9_22764
request_model 163

:HEIST9_22401
if 
  not has_model_loaded 163
goto_if_false @HEIST9_22428
wait 0
goto @HEIST9_22401

:HEIST9_22428
295@ = create_char PedType.Mission1 {modelId} 164 {x} 2146.665 {y} 1611.452 {z} 999.9764
set_char_area_visible 295@ {areaId} 1
set_char_heading 295@ {heading} 189.8734
set_char_decision_maker 295@ {handleOrTemplate} 89@
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 295@ {state} True
set_char_money 295@ {amount} 0
296@ = create_char PedType.Mission1 {modelId} 163 {x} 2147.9819 {y} 1605.254 {z} 1000.752
set_char_area_visible 296@ {areaId} 1
set_char_heading 296@ {heading} 191.7168
give_weapon_to_char 296@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_decision_maker 296@ {handleOrTemplate} 89@
set_current_char_weapon 296@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 296@ {state} True
set_char_money 296@ {amount} 0
if 
  does_blip_exist 233@
goto_if_false @HEIST9_22611
remove_blip 233@

:HEIST9_22611
58@ = 0

:HEIST9_22618
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_22657
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_22657
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_22618
print_now 'HM9_22' {time} 4000 {flag} 1
38@ = 13
228@ = add_blip_for_object 171@
set_blip_entry_exit 228@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
229@ = add_blip_for_object 172@
set_blip_entry_exit 229@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
goto @HEIST9_22808

:HEIST9_22764
print_now 'HM9_PK' {time} 4000 {flag} 1
299@ = add_blip_for_pickup 214@
set_blip_entry_exit 299@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_22808
105@ = 101
TIMERA = 0

:HEIST9_22822
if and
  has_char_got_weapon $scplayer {weaponType} WeaponType.Satchel
  105@ == 101
  38@ <> 13
goto_if_false @HEIST9_23222
request_model 163

:HEIST9_22859
if 
  not has_model_loaded 163
goto_if_false @HEIST9_22886
wait 0
goto @HEIST9_22859

:HEIST9_22886
295@ = create_char PedType.Mission1 {modelId} 164 {x} 2146.665 {y} 1611.452 {z} 999.9764
set_char_area_visible 295@ {areaId} 1
set_char_heading 295@ {heading} 189.8734
set_char_decision_maker 295@ {handleOrTemplate} 89@
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 295@ {state} True
296@ = create_char PedType.Mission1 {modelId} 163 {x} 2147.9819 {y} 1605.254 {z} 1000.752
set_char_area_visible 296@ {areaId} 1
set_char_heading 296@ {heading} 191.7168
give_weapon_to_char 296@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_decision_maker 296@ {handleOrTemplate} 89@
set_current_char_weapon 296@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 296@ {state} True
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23055
remove_blip 233@

:HEIST9_23055
58@ = 0

:HEIST9_23062
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_23101
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_23101
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23062
if 
  does_blip_exist 299@
goto_if_false @HEIST9_23143
remove_blip 299@

:HEIST9_23143
print_now 'HM9_22' {time} 4000 {flag} 1
38@ = 13
228@ = add_blip_for_object 171@
set_blip_entry_exit 228@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
229@ = add_blip_for_object 172@
set_blip_entry_exit 229@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_23222
if 
  locate_char_any_means_3d $scplayer {x} 2144.3931 {y} 1616.653 {z} 992.5681 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_23339
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23325
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23325
change_blip_display 233@ {display} BlipDisplay.Neither

:HEIST9_23325
252@ = 1
goto @HEIST9_23417

:HEIST9_23339
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23410
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23394
change_blip_display 233@ {display} BlipDisplay.Both

:HEIST9_23394
print_now 'HM9_56' {time} 1000 {flag} 1

:HEIST9_23410
252@ = 0

:HEIST9_23417
58@ = 0

:HEIST9_23424
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_24131
if and
  locate_char_any_means_3d 54@(58@,4i) {x} 2143.6931 {y} 1610.6281 {z} 992.6882 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
  239@(58@,4i) == 0
goto_if_false @HEIST9_24131
if and
  58@ == 0
  not is_char_dead 54@
goto_if_false @HEIST9_23675
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2143.0359 {y} 1626.4969 {z} 992.5681
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 54@ {sequence} 53@

:HEIST9_23675
if and
  58@ == 1
  not is_char_dead 55@
goto_if_false @HEIST9_23837
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2145.696 {y} 1626.496 {z} 992.5681
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 55@ {sequence} 53@

:HEIST9_23837
if and
  58@ == 2
  not is_char_dead 56@
goto_if_false @HEIST9_23949
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2147.7439 {y} 1620.447 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
close_sequence_task 53@
perform_sequence_task 56@ {sequence} 53@

:HEIST9_23949
if and
  58@ == 3
  not is_char_dead 57@
goto_if_false @HEIST9_24061
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2136.2539 {y} 1621.6281 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
close_sequence_task 53@
perform_sequence_task 57@ {sequence} 53@

:HEIST9_24061
clear_sequence_task 53@
set_char_only_damaged_by_player 54@(58@,4i) {state} False
change_blip_display 91@(58@,4i) {display} BlipDisplay.Neither
239@(58@,4i) = 1
if 
  251@ == 0
goto_if_false @HEIST9_24124
105@ = 0

:HEIST9_24124
251@ += 1

:HEIST9_24131
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23424

:HEIST9_24152
if and
  38@ == 13
  TIMERA > 5000
goto_if_false @HEIST9_31407
if 
  119@ == 0
goto_if_false @HEIST9_24623
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_24257
set_lvar_text_label 288@s = 'HE8_OA'
set_lvar_int_to_constant 232@ = 12253
gosub @HEIST9_50650
105@ = 1

:HEIST9_24257
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_24318
set_lvar_text_label 288@s = 'HE8_OB'
set_lvar_int_to_constant 232@ = 12303
gosub @HEIST9_50650
105@ = 2

:HEIST9_24318
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_24379
set_lvar_text_label 288@s = 'HE8_OC'
set_lvar_int_to_constant 232@ = 12254
gosub @HEIST9_50650
105@ = 3

:HEIST9_24379
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_24440
set_lvar_text_label 288@s = 'HE8_OD'
set_lvar_int_to_constant 232@ = 12255
gosub @HEIST9_50650
105@ = 4

:HEIST9_24440
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_24501
set_lvar_text_label 288@s = 'HE8_OE'
set_lvar_int_to_constant 232@ = 12304
gosub @HEIST9_50650
105@ = 5

:HEIST9_24501
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_24562
set_lvar_text_label 288@s = 'HE8_OF'
set_lvar_int_to_constant 232@ = 12256
gosub @HEIST9_50650
105@ = 8

:HEIST9_24562
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_24623
set_lvar_text_label 288@s = 'HE8_OJ'
set_lvar_int_to_constant 232@ = 12305
gosub @HEIST9_50650
105@ = 9

:HEIST9_24623
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_24649
175@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel

:HEIST9_24649
if 
  not is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_24745
if and
  0 >= 175@
  119@ == 0
goto_if_false @HEIST9_24745
if 
  not does_pickup_exist 214@
goto_if_false @HEIST9_24745
214@ = create_pickup_with_ammo 363 {pickupType} PickupType.Once {ammo} 5 {x} 2146.4871 {y} 1622.8051 {z} 993.0

:HEIST9_24745
if or
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.Molotov {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.WeakRocket {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.Rocket {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
goto_if_false @HEIST9_25627
if 
  119@ == 0
goto_if_false @HEIST9_25627
312@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2195.769 {y} 1585.199 {z} 1002.0
set_object_area_visible 312@ {areaId} 1
set_object_heading 312@ {heading} 180.0
set_object_collision_damage_effect 312@ {state} False
gosub @HEIST9_46291
set_object_collision_damage_effect 60@ {state} True
if and
  locate_char_any_means_3d $scplayer {x} 2146.146 {y} 1613.818 {z} 999.968 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
  not is_char_dead $scplayer
goto_if_false @HEIST9_25029
task_die $scplayer

:HEIST9_25029
if 
  does_blip_exist 228@
goto_if_false @HEIST9_25050
remove_blip 228@

:HEIST9_25050
if 
  does_blip_exist 229@
goto_if_false @HEIST9_25071
remove_blip 229@

:HEIST9_25071
set_fixed_camera_position 2141.3611 {y} 1619.829 {z} 1000.669 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2141.925 {y} 1619.005 {z} 1000.723 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_43888
delete_object 171@
delete_object 172@
mark_model_as_no_longer_needed #GENERATOR_BIG
171@ = create_object #GENERATOR_BIG_D {x} 2145.05 {y} 1613.49 {z} 999.9764
set_object_heading 171@ {heading} 1.2043
172@ = create_object #GENERATOR_BIG_D {x} 2148.8 {y} 1613.49 {z} 999.9764
set_object_heading 172@ {heading} 354.0372
368@ = 0

:HEIST9_25217
add_explosion 2143.1069 {y} 1611.332 {z} 1000.5 {type} ExplosionType.Small
201@ = create_fx_system "EXPLOSION_SMALL" {x} 2143.1069 {y} 1611.332 {z} 1000.5 {ignoreBoundingChecks} True
play_fx_system 201@
wait 150
add_explosion 2149.51 {y} 1614.5861 {z} 1000.5 {type} ExplosionType.Small
202@ = create_fx_system "EXPLOSION_SMALL" {x} 2149.51 {y} 1614.5861 {z} 1000.5 {ignoreBoundingChecks} True
play_fx_system 202@
wait 10
58@ = 0

:HEIST9_25359
stop_fx_system 201@(58@,6i)
kill_fx_system 201@(58@,6i)
58@ += 1
  58@ >= 6
goto_if_false @HEIST9_25359
368@ += 1
  368@ >= 3
goto_if_false @HEIST9_25217
wait 2000
58@ = 0

:HEIST9_25431
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_25492
task_stay_in_same_place 54@(58@,4i) {state} False
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:HEIST9_25492
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25431
105@ = 6
gosub @HEIST9_46308
gosub @HEIST9_43957
TIMERA = 0
119@ = 1
clear_help 
58@ = 0

:HEIST9_25557
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25557
if 
  is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_25611
remove_pickup 214@

:HEIST9_25611
print_now 'HM9_40' {time} 5000 {flag} 1

:HEIST9_25627
if 
  119@ == 1
goto_if_false @HEIST9_25706
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_25706
set_lvar_text_label 288@s = 'HE8_OK'
set_lvar_int_to_constant 232@ = 12306
gosub @HEIST9_50650
105@ = 10

:HEIST9_25706
if and
  121@ == 0
  119@ == 1
goto_if_false @HEIST9_27728
if 
  locate_char_any_means_3d $scplayer {x} 2143.9751 {y} 1624.443 {z} 992.5681 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_27728
105@ = 10
121@ = 1
58@ = 0

:HEIST9_25800
change_blip_display 91@(58@,4i) {display} BlipDisplay.Neither
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25800
gosub @HEIST9_46291
if 
  not is_char_dead 56@
goto_if_false @HEIST9_25885
set_char_coordinates_dont_warp_gang 56@ {x} 2147.7439 {y} 1620.447 {z} 992.6882
set_char_heading 56@ {heading} 346.8824

:HEIST9_25885
if 
  not is_char_dead 57@
goto_if_false @HEIST9_25931
set_char_coordinates_dont_warp_gang 57@ {x} 2136.2539 {y} 1621.6281 {z} 992.6882
set_char_heading 57@ {heading} 358.8987

:HEIST9_25931
set_fixed_camera_position 2140.489 {y} 1617.689 {z} 993.7817 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2140.8311 {y} 1618.629 {z} 993.7844 {switchStyle} SwitchType.JumpCut
wait 1000
print_now 'HE8_QA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12211

:HEIST9_26014
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26040
wait 0
goto @HEIST9_26014

:HEIST9_26040
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26051
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26094
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26087

:HEIST9_26087
goto @HEIST9_26051

:HEIST9_26094
print_now 'HE8_QC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12212

:HEIST9_26121
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26147
wait 0
goto @HEIST9_26121

:HEIST9_26147
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 54@
goto_if_false @HEIST9_26217
task_pause 54@ {time} 1000
clear_char_tasks_immediately 54@
flush_route 
extend_route 2135.4971 {y} 1625.5179 {z} 992.5681
task_toggle_duck 54@ {state} True
task_follow_point_route 54@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_26217
if 
  not is_char_dead 55@
goto_if_false @HEIST9_26275
clear_char_tasks_immediately 55@
flush_route 
extend_route 2152.9541 {y} 1625.076 {z} 992.5681
task_toggle_duck 55@ {state} True
task_follow_point_route 55@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_26275
TIMERB = 0

:HEIST9_26282
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26325
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26318

:HEIST9_26318
goto @HEIST9_26282

:HEIST9_26325
print_now 'HE8_QB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12222

:HEIST9_26352
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26378
wait 0
goto @HEIST9_26352

:HEIST9_26378
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26389
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26432
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26425

:HEIST9_26425
goto @HEIST9_26389

:HEIST9_26432
58@ = 0

:HEIST9_26439
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_26479
clear_char_tasks_immediately 54@(58@,4i)
task_toggle_duck 54@(58@,4i) {state} True

:HEIST9_26479
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_26439
add_explosion 2144.533 {y} 1626.7469 {z} 992.707 {type} ExplosionType.Small
369@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 992.707 {ignoreBoundingChecks} True
play_and_kill_fx_system 369@
add_explosion 2144.533 {y} 1626.7469 {z} 994.0 {type} ExplosionType.Small
wait 500
370@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 994.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 370@
add_explosion 2144.533 {y} 1626.7469 {z} 996.0 {type} ExplosionType.Small
delete_object 60@
wait 500
371@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 996.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 371@
print_now 'HE8_RA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12213

:HEIST9_26742
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26768
wait 0
goto @HEIST9_26742

:HEIST9_26768
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26779
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26822
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26815

:HEIST9_26815
goto @HEIST9_26779

:HEIST9_26822
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_26868
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.2661 {y} 1610.649 {z} 992.5681
set_char_heading $scplayer {heading} 359.3881

:HEIST9_26868
gosub @HEIST9_46308
print_now 'HM9_58' {time} 7000 {flag} 1
61@ = create_object #CJ_MONEY_BAG {x} 2146.27 {y} 1636.314 {z} 992.5683
set_object_area_visible 61@ {areaId} 1
set_object_heading 61@ {heading} 268.4277
set_object_collision 61@ {state} False
62@ = create_object #CJ_MONEY_BAG {x} 2146.137 {y} 1632.4041 {z} 992.5683
set_object_area_visible 62@ {areaId} 1
set_object_heading 62@ {heading} 89.5044
set_object_collision 62@ {state} False
63@ = create_object #CJ_MONEY_BAG {x} 2142.1479 {y} 1632.426 {z} 992.5683
set_object_area_visible 63@ {areaId} 1
set_object_heading 63@ {heading} 97.3067
set_object_collision 63@ {state} False
64@ = create_object #CJ_MONEY_BAG {x} 2142.0701 {y} 1636.137 {z} 992.5683
set_object_area_visible 64@ {areaId} 1
set_object_heading 64@ {heading} 51.5319
set_object_collision 64@ {state} False
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_27728
373@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 500
set_sequence_to_repeat 373@ {state} True
close_sequence_task 373@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_pause -1 {time} 3000
task_follow_path_nodes_to_coord -1 {x} 2146.27 {y} 1636.314 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 61@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 54@
task_toggle_duck 54@ {state} False
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 100
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} 2146.137 {y} 1632.4041 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 62@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 55@
task_toggle_duck 55@ {state} False
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 200
task_toggle_duck -1 {state} True
task_pause -1 {time} 2000
task_follow_path_nodes_to_coord -1 {x} 2142.1479 {y} 1632.426 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 63@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 56@
task_toggle_duck 56@ {state} False
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 100
task_toggle_duck -1 {state} True
task_pause -1 {time} 3000
task_follow_path_nodes_to_coord -1 {x} 2142.0701 {y} 1636.137 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 64@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 57@
task_toggle_duck 57@ {state} False
perform_sequence_task 57@ {sequence} 53@
remove_animation "BOMBER"
372@ = add_blip_for_coord 2144.1521 {y} 1636.462 {z} 992.5703
set_blip_entry_exit 372@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
clear_sequence_task 373@
clear_sequence_task 53@

:HEIST9_27728
if 
  121@ == 1
goto_if_false @HEIST9_27921
if and
  locate_char_any_means_3d $scplayer {x} 2144.1521 {y} 1636.462 {z} 992.5703 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
  does_blip_exist 372@
goto_if_false @HEIST9_27921
if 
  does_blip_exist 372@
goto_if_false @HEIST9_27820
remove_blip 372@

:HEIST9_27820
140@ = 1
121@ = 2
TIMERB = 0
58@ = 0

:HEIST9_27848
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_27900
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)

:HEIST9_27900
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_27848

:HEIST9_27921
if and
  231@ == 2
  140@ == 1
goto_if_false @HEIST9_27982
set_lvar_text_label 288@s = 'HE8_RB'
set_lvar_int_to_constant 232@ = 12265
gosub @HEIST9_50650
140@ = 2

:HEIST9_27982
if and
  231@ == 2
  140@ == 2
goto_if_false @HEIST9_28050
set_lvar_text_label 288@s = 'HE8_RC'
set_lvar_int_to_constant 232@ = 12266
gosub @HEIST9_50650
TIMERA = 0
140@ = 3

:HEIST9_28050
if and
  231@ == 2
  140@ == 3
  TIMERA > 3000
goto_if_false @HEIST9_29544
gosub @HEIST9_46327
gosub @HEIST9_46291
131@ = 4
58@ = 0

:HEIST9_28111
if 
  not is_char_dead 335@(58@,15i)
goto_if_false @HEIST9_28140
delete_char 335@(58@,15i)

:HEIST9_28140
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_28111
58@ = 0

:HEIST9_28168
delete_char 109@(58@,5i)
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_28168
delete_char 295@
delete_char 296@
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
request_model 124
request_model 125

:HEIST9_28226
if or
  not has_model_loaded 124
  not has_model_loaded 125
goto_if_false @HEIST9_28256
wait 0
goto @HEIST9_28226

:HEIST9_28256
335@ = create_char PedType.Mission1 {modelId} 124 {x} 2150.8311 {y} 1611.033 {z} 992.6882
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 353.2278
set_char_only_damaged_by_player 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 124 {x} 2135.7019 {y} 1611.064 {z} 992.6882
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 354.2745
374@ = open_sequence_task 
flush_route 
extend_route 2144.1399 {y} 1610.015 {z} 992.6882
extend_route 2146.085 {y} 1611.896 {z} 992.6882
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_achieve_heading -1 {heading} 6.3138
task_stand_still -1 {time} 1
flush_route 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_28440
task_kill_char_on_foot -1 {target} $scplayer

:HEIST9_28440
close_sequence_task 374@
337@ = create_char PedType.Mission1 {modelId} 125 {x} 2144.0291 {y} 1605.3521 {z} 992.5684
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 356.695
perform_sequence_task 337@ {sequence} 374@
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2144.1399 {y} 1610.015 {z} 992.6882
extend_route 2139.8149 {y} 1615.4709 {z} 992.6882
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_toggle_duck -1 {state} False
task_achieve_heading -1 {heading} 335.8946
task_stand_still -1 {time} 1
flush_route 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_28600
task_kill_char_on_foot -1 {target} $scplayer

:HEIST9_28600
close_sequence_task 374@
338@ = create_char PedType.Mission1 {modelId} 124 {x} 2144.22 {y} 1601.963 {z} 992.5684
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 358.3628
perform_sequence_task 338@ {sequence} 374@
339@ = create_char PedType.Mission1 {modelId} 125 {x} 2146.605 {y} 1597.785 {z} 994.5676
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 89.7654
set_char_only_damaged_by_player 339@ {state} True
task_stay_in_same_place 339@ {state} True
set_sense_range 339@ {range} 5.0
340@ = create_char PedType.Mission1 {modelId} 125 {x} 2147.77 {y} 1596.479 {z} 994.5676
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 78.7631
task_stay_in_same_place 340@ {state} True
set_sense_range 340@ {range} 5.0
341@ = create_char PedType.Mission1 {modelId} 124 {x} 2148.627 {y} 1602.235 {z} 996.7766
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 170.4726
task_stay_in_same_place 341@ {state} True
set_sense_range 341@ {range} 5.0
342@ = create_char PedType.Mission1 {modelId} 125 {x} 2148.3579 {y} 1603.734 {z} 996.7766
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 158.879
task_stay_in_same_place 342@ {state} True
set_sense_range 342@ {range} 5.0
clear_sequence_task 374@
58@ = 0

:HEIST9_28905
set_char_keep_task 335@(58@,15i) {state} True
set_char_money 335@(58@,15i) {amount} 0
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_28976
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200

:HEIST9_28976
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_29040
set_char_weapon_skill 335@(58@,15i) {skill} WeaponSkill.Pro
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @HEIST9_29065

:HEIST9_29040
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 9999
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5

:HEIST9_29065
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_28905
set_fixed_camera_position 2142.248 {y} 1611.113 {z} 993.2602 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2142.6689 {y} 1610.2111 {z} 993.3487 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_29268
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.0481 {y} 1627.986 {z} 992.5703
set_char_heading $scplayer {heading} 181.8141

:HEIST9_29268
gosub @HEIST9_46360
print_now 'HM9_57' {time} 5000 {flag} 1
wait 2000
set_fixed_camera_position 2140.7849 {y} 1619.8311 {z} 993.4654 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2141.0779 {y} 1618.876 {z} 993.4291 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 338@
goto_if_false @HEIST9_29405
clear_char_tasks 338@
task_toggle_duck 338@ {state} True
set_char_coordinates_dont_warp_gang 338@ {x} 2140.249 {y} 1615.12 {z} 992.6882
set_char_heading 338@ {heading} 340.6346

:HEIST9_29405
wait 3000
if 
  not is_char_dead 335@
goto_if_false @HEIST9_29434
perform_sequence_task 335@ {sequence} 212@

:HEIST9_29434
if 
  not is_char_dead 336@
goto_if_false @HEIST9_29458
perform_sequence_task 336@ {sequence} 213@

:HEIST9_29458
if 
  does_object_exist 308@
goto_if_false @HEIST9_29494
set_object_coordinates 308@ {x} 2173.8669 {y} 1619.415 {z} 999.3

:HEIST9_29494
gosub @HEIST9_46308
set_lvar_text_label 288@s = 'HE8_RD'
set_lvar_int_to_constant 232@ = 12310
gosub @HEIST9_50650
140@ = 4
TIMERA = 0

:HEIST9_29544
if 
  140@ == 4
goto_if_false @HEIST9_30085
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  375@ == 0
goto_if_false @HEIST9_29766
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2143.927 {y} 1597.674 {z} 994.5676
extend_route 2144.1399 {y} 1603.111 {z} 992.5684
extend_route 2142.907 {y} 1614.151 {z} 992.6882
extend_route 2143.105 {y} 1621.571 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 339@
goto_if_false @HEIST9_29730
clear_char_tasks 339@
perform_sequence_task 339@ {sequence} 374@

:HEIST9_29730
if 
  not is_char_dead 340@
goto_if_false @HEIST9_29759
clear_char_tasks 340@
perform_sequence_task 340@ {sequence} 374@

:HEIST9_29759
375@ = 1

:HEIST9_29766
if and
  is_char_dead 339@
  is_char_dead 340@
  375@ == 1
goto_if_false @HEIST9_29977
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2147.772 {y} 1597.552 {z} 994.5676
extend_route 2144.127 {y} 1597.792 {z} 994.5676
extend_route 2144.3779 {y} 1603.689 {z} 992.5684
extend_route 2143.9871 {y} 1609.467 {z} 992.6882
extend_route 2143.7219 {y} 1618.05 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 341@
goto_if_false @HEIST9_29941
clear_char_tasks 341@
perform_sequence_task 341@ {sequence} 374@

:HEIST9_29941
if 
  not is_char_dead 342@
goto_if_false @HEIST9_29970
clear_char_tasks 342@
perform_sequence_task 342@ {sequence} 374@

:HEIST9_29970
375@ = 2

:HEIST9_29977
58@ = 0

:HEIST9_29984
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_30064
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_30064
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_30064
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_29984

:HEIST9_30085
if and
  140@ > 3
  locate_char_any_means_3d $scplayer {x} 2144.2451 {y} 1606.821 {z} 992.6882 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  256@ == 0
goto_if_false @HEIST9_30496
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2143.927 {y} 1597.674 {z} 994.5676
extend_route 2144.1399 {y} 1603.111 {z} 992.5684
extend_route 2142.907 {y} 1614.151 {z} 992.6882
extend_route 2143.105 {y} 1621.571 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 339@
goto_if_false @HEIST9_30277
clear_char_tasks 339@
perform_sequence_task 339@ {sequence} 374@

:HEIST9_30277
if 
  not is_char_dead 340@
goto_if_false @HEIST9_30306
clear_char_tasks 340@
perform_sequence_task 340@ {sequence} 374@

:HEIST9_30306
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2147.772 {y} 1597.552 {z} 994.5676
extend_route 2144.127 {y} 1597.792 {z} 994.5676
extend_route 2144.3779 {y} 1603.689 {z} 992.5684
extend_route 2143.9871 {y} 1609.467 {z} 992.6882
extend_route 2143.7219 {y} 1618.05 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 341@
goto_if_false @HEIST9_30453
clear_char_tasks 341@
perform_sequence_task 341@ {sequence} 374@

:HEIST9_30453
if 
  not is_char_dead 342@
goto_if_false @HEIST9_30482
clear_char_tasks 342@
perform_sequence_task 342@ {sequence} 374@

:HEIST9_30482
375@ = 2
256@ = 1

:HEIST9_30496
if 
  121@ == 2
goto_if_false @HEIST9_30637
58@ = 0

:HEIST9_30521
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_30616
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_30616
print_now 'HM9_44' {time} 4000 {flag} 1

:HEIST9_30616
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_30521

:HEIST9_30637
if 
  121@ == 2
goto_if_false @HEIST9_30687
if and
  140@ == 4
  52@ == 0
goto_if_false @HEIST9_30687
gosub @HEIST9_44026

:HEIST9_30687
if and
  locate_char_any_means_3d $scplayer {x} 2146.3291 {y} 1597.4091 {z} 998.7676 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  52@ == 1
goto_if_false @HEIST9_31407
58@ = 0

:HEIST9_30749
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_30749
335@ = create_char PedType.Mission1 {modelId} 124 {x} 2152.0149 {y} 1602.51 {z} 1000.971
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 270.0812
task_stay_in_same_place 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 125 {x} 2160.9851 {y} 1616.689 {z} 998.9657
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 178.5078
perform_sequence_task 336@ {sequence} 213@
337@ = create_char PedType.Mission1 {modelId} 124 {x} 2181.3201 {y} 1625.335 {z} 998.9714
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 117.5403
task_stay_in_same_place 337@ {state} True
task_toggle_duck 337@ {state} True
338@ = create_char PedType.Mission1 {modelId} 124 {x} 2183.6531 {y} 1623.66 {z} 998.9743
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 98.1814
task_stay_in_same_place 338@ {state} True
339@ = create_char PedType.Mission1 {modelId} 125 {x} 2182.4939 {y} 1611.8459 {z} 998.9766
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 57.0007
task_stay_in_same_place 339@ {state} True
340@ = create_char PedType.Mission1 {modelId} 125 {x} 2191.2781 {y} 1619.051 {z} 998.9766
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 85.6714
341@ = create_char PedType.Mission1 {modelId} 124 {x} 2222.6541 {y} 1616.012 {z} 998.9688
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 97.3112
perform_sequence_task 341@ {sequence} 213@
342@ = create_char PedType.Mission1 {modelId} 125 {x} 2210.106 {y} 1620.387 {z} 998.9766
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 90.3344
task_toggle_duck 342@ {state} True
task_stay_in_same_place 342@ {state} True
343@ = create_char PedType.Mission1 {modelId} 124 {x} 2224.5779 {y} 1619.114 {z} 998.9679
set_char_area_visible 343@ {areaId} 1
set_char_heading 343@ {heading} 86.7328
task_toggle_duck 343@ {state} True
task_stay_in_same_place 343@ {state} True
58@ = 0

:HEIST9_31234
set_char_money 335@(58@,15i) {amount} 0
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31234
38@ = 15

:HEIST9_31407
if 
  38@ == 15
goto_if_false @HEIST9_35098
58@ = 0

:HEIST9_31432
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_31512
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_31512
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_31512
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31432
if and
  TIMERB > 7000
  278@ == 1
goto_if_false @HEIST9_31595
set_lvar_text_label 288@s = 'HE8_TA'
set_lvar_int_to_constant 232@ = 12215
gosub @HEIST9_50650
278@ = 2

:HEIST9_31595
if and
  231@ == 2
  278@ == 2
goto_if_false @HEIST9_31656
set_lvar_text_label 288@s = 'HE8_TB'
set_lvar_int_to_constant 232@ = 12216
gosub @HEIST9_50650
278@ = 3

:HEIST9_31656
if and
  231@ == 2
  278@ == 3
goto_if_false @HEIST9_31717
set_lvar_text_label 288@s = 'HE8_TC'
set_lvar_int_to_constant 232@ = 12217
gosub @HEIST9_50650
278@ = 0

:HEIST9_31717
if and
  is_char_dead 335@
  257@ == 0
goto_if_false @HEIST9_31850
clear_sequence_task 53@
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2157.6289 {y} 1602.604 {z} 998.9766 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_31785
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_31817
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_31817
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31785
clear_sequence_task 53@
257@ = 1

:HEIST9_31850
if and
  is_char_dead 336@
  257@ == 1
goto_if_false @HEIST9_31978
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2165.4231 {y} 1618.386 {z} 998.9747 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_31913
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_31945
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_31945
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31913
clear_sequence_task 53@
257@ = 2

:HEIST9_31978
if and
  is_char_dead 337@
  is_char_dead 338@
  is_char_dead 339@
  is_char_dead 340@
  257@ == 2
goto_if_false @HEIST9_32394
53@ = open_sequence_task 
flush_route 
extend_route 2169.0449 {y} 1618.73 {z} 998.9766
extend_route 2171.0969 {y} 1618.6219 {z} 998.9766
extend_route 2172.748 {y} 1621.9351 {z} 998.9772
extend_route 2179.594 {y} 1623.489 {z} 998.9745
extend_route 2184.2 {y} 1623.908 {z} 998.9739
extend_route 2187.7639 {y} 1622.788 {z} 998.9758
extend_route 2190.1299 {y} 1618.6639 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
if 
  not is_char_dead 54@
goto_if_false @HEIST9_32181
perform_sequence_task 54@ {sequence} 53@

:HEIST9_32181
if 
  not is_char_dead 55@
goto_if_false @HEIST9_32205
perform_sequence_task 55@ {sequence} 53@

:HEIST9_32205
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
extend_route 2169.019 {y} 1618.764 {z} 998.9766
extend_route 2171.71 {y} 1618.252 {z} 998.9766
extend_route 2174.5391 {y} 1615.005 {z} 998.9766
extend_route 2180.3789 {y} 1614.246 {z} 998.9766
extend_route 2185.4451 {y} 1614.739 {z} 998.9766
extend_route 2190.1299 {y} 1618.6639 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
if 
  not is_char_dead 56@
goto_if_false @HEIST9_32358
perform_sequence_task 56@ {sequence} 53@

:HEIST9_32358
if 
  not is_char_dead 57@
goto_if_false @HEIST9_32382
perform_sequence_task 57@ {sequence} 53@

:HEIST9_32382
clear_sequence_task 53@
257@ = 3

:HEIST9_32394
if 
  257@ == 3
goto_if_false @HEIST9_32704
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_32435
if or
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_32471
wait 0
goto @HEIST9_32435

:HEIST9_32471
request_car_recording 494
load_special_character 1 {modelName} 'ZERO'

:HEIST9_32489
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_32516
wait 0
goto @HEIST9_32489

:HEIST9_32516
clear_area 2220.3401 {y} 1582.068 {z} 998.9764 {radius} 10.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 350.4443
set_char_never_targetted 97@ {state} True
279@ = create_car 523 {x} 2223.699 {y} 1582.78 {z} 998.0
set_vehicle_area_visible 279@ {interiorId} 1
set_car_heading 279@ {heading} 175.8434
lock_car_doors 279@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 279@ {state} True
280@ = create_car 523 {x} 2217.5491 {y} 1583.667 {z} 998.0
set_vehicle_area_visible 280@ {interiorId} 1
set_car_heading 280@ {heading} 175.3717
lock_car_doors 280@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 280@ {state} True
257@ = 4

:HEIST9_32704
if and
  is_char_dead 341@
  is_char_dead 342@
  is_char_dead 343@
  257@ == 4
goto_if_false @HEIST9_32865
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2222.9951 {y} 1618.726 {z} 998.9672 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2220.908 {y} 1585.6949 {z} 998.9708 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_32800
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_32832
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_32832
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_32800
clear_sequence_task 53@
257@ = 5

:HEIST9_32865
if 
  257@ >= 4
goto_if_false @HEIST9_33021
if 
  is_char_dead 97@
goto_if_false @HEIST9_32929
gosub @HEIST9_50385
print_now 'HM9_63' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_32929
if 
  is_car_dead 279@
goto_if_false @HEIST9_32975
gosub @HEIST9_50385
print_now 'HM9_60' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_32975
if 
  is_car_dead 280@
goto_if_false @HEIST9_33021
gosub @HEIST9_50385
print_now 'HM9_60' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_33021
58@ = 0

:HEIST9_33028
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_33123
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_33123
print_now 'HM9_44' {time} 5000 {flag} 1

:HEIST9_33123
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33028
58@ = 0

:HEIST9_33151
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_33252
if and
  locate_char_any_means_3d 54@(58@,4i) {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  78@(58@,4i) == 0
goto_if_false @HEIST9_33252
82@ += 1
78@(58@,4i) = 1

:HEIST9_33252
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33151
if 
  257@ <> 5
goto_if_false @HEIST9_33355
if 
  locate_char_any_means_3d $scplayer {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HEIST9_33355
print_now 'HM9_1F' {time} 4000 {flag} 1

:HEIST9_33355
if and
  257@ == 5
  locate_char_any_means_3d $scplayer {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HEIST9_35098
clear_prints 
gosub @HEIST9_46327
if 
  does_blip_exist 90@
goto_if_false @HEIST9_33440
remove_blip 90@

:HEIST9_33440
if 
  not is_char_dead 54@
goto_if_false @HEIST9_33491
clear_char_tasks_immediately 54@
set_char_coordinates_dont_warp_gang 54@ {x} 2224.042 {y} 1589.3669 {z} 998.967
set_char_heading 54@ {heading} 165.2519

:HEIST9_33491
if 
  not is_char_dead 55@
goto_if_false @HEIST9_33542
clear_char_tasks_immediately 55@
set_char_coordinates_dont_warp_gang 55@ {x} 2222.8931 {y} 1589.583 {z} 998.9684
set_char_heading 55@ {heading} 173.9364

:HEIST9_33542
if 
  not is_char_dead 56@
goto_if_false @HEIST9_33593
clear_char_tasks_immediately 56@
set_char_coordinates_dont_warp_gang 56@ {x} 2221.866 {y} 1589.245 {z} 998.9696
set_char_heading 56@ {heading} 177.0563

:HEIST9_33593
if 
  not is_char_dead 57@
goto_if_false @HEIST9_33644
clear_char_tasks_immediately 57@
set_char_coordinates_dont_warp_gang 57@ {x} 2220.7229 {y} 1589.224 {z} 998.971
set_char_heading 57@ {heading} 171.7417

:HEIST9_33644
if 
  not is_char_dead 97@
goto_if_false @HEIST9_33690
set_char_coordinates_dont_warp_gang 97@ {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_heading 97@ {heading} 350.4443

:HEIST9_33690
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_33779
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_33749
warp_char_from_car_to_coord $scplayer {x} 2225.541 {y} 1586.834 {z} 998.9651
goto @HEIST9_33769

:HEIST9_33749
set_char_coordinates_dont_warp_gang $scplayer {x} 2225.541 {y} 1586.834 {z} 998.9651

:HEIST9_33769
set_char_heading $scplayer {heading} 124.4066

:HEIST9_33779
if 
  not is_car_dead 279@
goto_if_false @HEIST9_33802
freeze_car_position 279@ {state} False

:HEIST9_33802
if 
  not is_car_dead 280@
goto_if_false @HEIST9_33825
freeze_car_position 280@ {state} False

:HEIST9_33825
clear_onscreen_timer $h9_health
gosub @HEIST9_46291
set_fixed_camera_position 2216.7209 {y} 1579.8101 {z} 1000.833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.3821 {y} 1580.538 {z} 1000.654 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_46360
if 
  not is_char_dead 97@
goto_if_false @HEIST9_33952
clear_char_tasks 97@
task_play_anim 97@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_33952
print_now 'HE8_UA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12276

:HEIST9_33979
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_34005
wait 0
goto @HEIST9_33979

:HEIST9_34005
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_34016
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_34066
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34059
goto @HEIST9_34847

:HEIST9_34059
goto @HEIST9_34016

:HEIST9_34066
print_now 'HE8_UB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12218

:HEIST9_34093
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_34119
wait 0
goto @HEIST9_34093

:HEIST9_34119
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_34130
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_34180
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34173
goto @HEIST9_34847

:HEIST9_34173
goto @HEIST9_34130

:HEIST9_34180
delete_char 97@
delete_char 56@
delete_char 57@
set_fixed_camera_position 2216.9141 {y} 1571.6219 {z} 999.7229 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.27 {y} 1572.557 {z} 999.7267 {switchStyle} SwitchType.JumpCut
281@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.8 {y} 1581.163 {z} 998.9764
set_char_heading 281@ {heading} 196.0524
set_char_area_visible 281@ {areaId} 1
282@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.019 {y} 1581.179 {z} 998.9772
set_char_heading 282@ {heading} 74.4668
set_char_area_visible 282@ {areaId} 1
if and
  not is_car_dead 51@
  not is_char_dead 54@
goto_if_false @HEIST9_34362
task_enter_car_as_driver 54@ {vehicle} 51@ {time} 8000

:HEIST9_34362
if and
  not is_car_dead 51@
  not is_char_dead 55@
goto_if_false @HEIST9_34396
task_enter_car_as_passenger 55@ {vehicle} 51@ {time} 8000 {seat} SeatId.BikeRear

:HEIST9_34396
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_34428
task_enter_car_as_driver 281@ {vehicle} 279@ {time} 8000

:HEIST9_34428
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_34460
task_enter_car_as_driver 282@ {vehicle} 280@ {time} 8000

:HEIST9_34460
TIMERB = 0

:HEIST9_34467
if 
  8000 > TIMERB
goto_if_false @HEIST9_34521
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34514
goto @HEIST9_34847

:HEIST9_34514
goto @HEIST9_34467

:HEIST9_34521
set_fixed_camera_position 2223.8501 {y} 1572.014 {z} 1001.623 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.3711 {y} 1572.844 {z} 1001.336 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 494
  not is_car_dead 51@
goto_if_false @HEIST9_34601
start_playback_recorded_car 51@ {path} 494

:HEIST9_34601
TIMERB = 0

:HEIST9_34608
if 
  500 > TIMERB
goto_if_false @HEIST9_34662
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34655
goto @HEIST9_34847

:HEIST9_34655
goto @HEIST9_34608

:HEIST9_34662
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_34724
switch_car_siren 279@ {state} True
task_car_drive_to_coord 281@ {vehicle} 279@ {x} 2223.4551 {y} 1564.892 {z} 1000.873 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_34724
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_34786
switch_car_siren 280@ {state} True
task_car_drive_to_coord 282@ {vehicle} 280@ {x} 2217.3191 {y} 1566.6 {z} 1000.3 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_34786
TIMERB = 0

:HEIST9_34793
if 
  2000 > TIMERB
goto_if_false @HEIST9_34847
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34840
goto @HEIST9_34847

:HEIST9_34840
goto @HEIST9_34793

:HEIST9_34847
58@ = 0

:HEIST9_34854
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_34892
remove_blip 91@(58@,4i)
delete_char 54@(58@,4i)

:HEIST9_34892
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_34854
gosub @HEIST9_46308
if 
  not is_char_dead 97@
goto_if_false @HEIST9_34941
delete_char 97@

:HEIST9_34941
if 
  not is_char_dead 281@
goto_if_false @HEIST9_34962
delete_char 281@

:HEIST9_34962
if 
  not is_char_dead 282@
goto_if_false @HEIST9_34983
delete_char 282@

:HEIST9_34983
if 
  not is_car_dead 279@
goto_if_false @HEIST9_35004
delete_car 279@

:HEIST9_35004
if 
  not is_car_dead 280@
goto_if_false @HEIST9_35025
delete_car 280@

:HEIST9_35025
if 
  not is_car_dead 51@
goto_if_false @HEIST9_35046
delete_car 51@

:HEIST9_35046
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 428
unload_special_character 3
unload_special_character 2
unload_special_character 1
174@ = 1
38@ = 16
TIMERA = 0

:HEIST9_35098
if 
  38@ == 16
goto_if_false @HEIST9_35858
58@ = 0

:HEIST9_35123
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_35123
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 124
request_model 126
request_model 127

:HEIST9_35169
if or
  not has_model_loaded 126
  not has_model_loaded 127
goto_if_false @HEIST9_35199
wait 0
goto @HEIST9_35169

:HEIST9_35199
335@ = create_char PedType.Mission1 {modelId} 127 {x} 2221.3401 {y} 1616.9709 {z} 998.9719
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 173.3951
task_stay_in_same_place 335@ {state} True
perform_sequence_task 335@ {sequence} 212@
336@ = create_char PedType.Mission1 {modelId} 126 {x} 2204.9109 {y} 1615.991 {z} 998.982
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 266.9222
task_stay_in_same_place 336@ {state} True
337@ = create_char PedType.Mission1 {modelId} 127 {x} 2196.6641 {y} 1618.759 {z} 998.9766
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 266.9185
338@ = create_char PedType.Mission1 {modelId} 126 {x} 2172.9961 {y} 1616.329 {z} 998.9766
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 263.6073
339@ = create_char PedType.Mission1 {modelId} 127 {x} 2173.0029 {y} 1622.626 {z} 998.9761
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 261.2549
340@ = create_char PedType.Mission1 {modelId} 126 {x} 2179.7271 {y} 1611.811 {z} 998.9766
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 263.1769
task_toggle_duck 340@ {state} True
task_stay_in_same_place 340@ {state} True
341@ = create_char PedType.Mission1 {modelId} 126 {x} 2181.543 {y} 1622.657 {z} 998.976
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 263.6053
task_toggle_duck 341@ {state} True
task_stay_in_same_place 341@ {state} True
342@ = create_char PedType.Mission1 {modelId} 126 {x} 2151.5779 {y} 1602.322 {z} 1000.971
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 264.2166
task_stay_in_same_place 342@ {state} True
58@ = 0

:HEIST9_35591
350@(58@,15i) = 1
set_char_money 335@(58@,15i) {amount} 0
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_35701
set_char_weapon_skill 335@(58@,15i) {skill} WeaponSkill.Pro
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @HEIST9_35726

:HEIST9_35701
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 9999
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5

:HEIST9_35726
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 30
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35591
print_now 'HM9_10' {time} 7000 {flag} 1
84@ = add_blip_for_coord 2156.188 {y} 1597.98 {z} 998.9766
set_blip_entry_exit 84@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
38@ = 17
255@ = 1
TIMERA = 0

:HEIST9_35858
if 
  38@ == 17
goto_if_false @HEIST9_37689
58@ = 0

:HEIST9_35883
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_35934
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_35934
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35883
if and
  not is_char_dead 336@
  locate_char_any_means_3d $scplayer {x} 2208.021 {y} 1619.125 {z} 998.9827 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36079
if 
  351@ == 1
goto_if_false @HEIST9_36079
clear_char_tasks_immediately 336@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 53@
perform_sequence_task 336@ {sequence} 53@
clear_sequence_task 53@
351@ = 2

:HEIST9_36079
if and
  not is_char_dead 337@
  locate_char_any_means_3d $scplayer {x} 2224.02 {y} 1618.927 {z} 998.9655 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36192
if 
  352@ == 1
goto_if_false @HEIST9_36192
clear_char_tasks_immediately 337@
flush_route 
extend_route 2224.02 {y} 1618.927 {z} 998.9655
task_follow_point_route 337@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
352@ = 2

:HEIST9_36192
if and
  not is_char_dead 340@
  locate_char_any_means_3d $scplayer {x} 2183.907 {y} 1613.572 {z} 998.9766 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36335
if 
  355@ == 1
goto_if_false @HEIST9_36335
task_toggle_duck 340@ {state} False
355@ = 2
if 
  not is_char_dead 338@
goto_if_false @HEIST9_36335
clear_char_tasks_immediately 338@
flush_route 
extend_route 2183.907 {y} 1613.572 {z} 998.9766
task_toggle_duck 338@ {state} True
task_follow_point_route 338@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_36335
if and
  not is_char_dead 341@
  locate_char_any_means_3d $scplayer {x} 2185.5791 {y} 1624.431 {z} 998.973 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36517
if 
  356@ == 1
goto_if_false @HEIST9_36517
clear_char_tasks_immediately 341@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 53@
perform_sequence_task 341@ {sequence} 53@
clear_sequence_task 53@
356@ = 2
if 
  not is_char_dead 339@
goto_if_false @HEIST9_36517
clear_char_tasks_immediately 339@
flush_route 
extend_route 2185.5791 {y} 1624.431 {z} 998.973
task_toggle_duck 339@ {state} True
task_follow_point_route 339@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_36517
if and
  not is_char_dead 342@
  locate_char_any_means_3d $scplayer {x} 2160.2791 {y} 1618.668 {z} 998.9676 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36647
if 
  357@ == 1
goto_if_false @HEIST9_36647
clear_char_tasks_immediately 342@
flush_route 
extend_route 2157.5801 {y} 1601.944 {z} 998.9766
extend_route 2157.832 {y} 1616.024 {z} 998.9669
task_follow_point_route 342@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
357@ = 2

:HEIST9_36647
if and
  TIMERA > 7000
  255@ == 1
goto_if_false @HEIST9_36709
set_lvar_text_label 288@s = 'HE8_VA'
set_lvar_int_to_constant 232@ = 12278
gosub @HEIST9_50650
255@ = 2

:HEIST9_36709
if and
  231@ == 2
  255@ == 2
goto_if_false @HEIST9_36770
set_lvar_text_label 288@s = 'HE8_VB'
set_lvar_int_to_constant 232@ = 12314
gosub @HEIST9_50650
255@ = 3

:HEIST9_36770
if and
  231@ == 2
  255@ == 3
goto_if_false @HEIST9_36831
set_lvar_text_label 288@s = 'HE8_VC'
set_lvar_int_to_constant 232@ = 12322
gosub @HEIST9_50650
255@ = 4

:HEIST9_36831
if and
  231@ == 2
  255@ == 4
goto_if_false @HEIST9_36892
set_lvar_text_label 288@s = 'HE8_VD'
set_lvar_int_to_constant 232@ = 12279
gosub @HEIST9_50650
255@ = 101

:HEIST9_36892
if and
  255@ == 101
  254@ == 0
goto_if_false @HEIST9_36983
set_darkness_effect False {pitchBlack} 0
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} False
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_36972
player_take_off_goggles $player1 {animate} True

:HEIST9_36972
set_night_vision False
254@ = 1

:HEIST9_36983
if and
  254@ <> 0
  254@ <> 7
goto_if_false @HEIST9_37358
if and
  231@ == 2
  254@ == 1
goto_if_false @HEIST9_37069
set_lvar_text_label 288@s = 'HE8_WA'
set_lvar_int_to_constant 232@ = 12315
gosub @HEIST9_50650
254@ = 2

:HEIST9_37069
if and
  231@ == 2
  254@ == 2
goto_if_false @HEIST9_37130
set_lvar_text_label 288@s = 'HE8_WB'
set_lvar_int_to_constant 232@ = 12280
gosub @HEIST9_50650
254@ = 3

:HEIST9_37130
if and
  231@ == 2
  254@ == 3
goto_if_false @HEIST9_37215
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37179
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_37179
set_lvar_text_label 288@s = 'HE8_WC'
set_lvar_int_to_constant 232@ = 12316
gosub @HEIST9_50650
254@ = 4

:HEIST9_37215
if and
  231@ == 2
  254@ == 4
goto_if_false @HEIST9_37297
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37261
stop_char_facial_talk $scplayer

:HEIST9_37261
set_lvar_text_label 288@s = 'HE8_WE'
set_lvar_int_to_constant 232@ = 12282
gosub @HEIST9_50650
254@ = 5

:HEIST9_37297
if and
  231@ == 2
  254@ == 5
goto_if_false @HEIST9_37358
set_lvar_text_label 288@s = 'HE8_WF'
set_lvar_int_to_constant 232@ = 12283
gosub @HEIST9_50650
254@ = 7

:HEIST9_37358
if and
  locate_char_any_means_3d $scplayer {x} 2156.188 {y} 1597.98 {z} 998.9766 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
  153@ == 0
goto_if_false @HEIST9_37689
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37436
set_player_control $player1 {state} False

:HEIST9_37436
gosub @HEIST9_46327
if 
  does_blip_exist 84@
goto_if_false @HEIST9_37464
remove_blip 84@

:HEIST9_37464
load_scene 2266.511 {y} 1647.517 {z} 1083.241
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37531
set_char_coordinates_dont_warp_gang $scplayer {x} 2266.511 {y} 1647.517 {z} 1083.241
set_char_heading $scplayer {heading} 268.927
set_camera_behind_player 
restore_camera_jumpcut 

:HEIST9_37531
376@ = add_blip_for_coord 2266.2251 {y} 1619.766 {z} 1089.4449
set_blip_entry_exit 376@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
gosub @HEIST9_44783
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 33401

:HEIST9_37591
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_37617
wait 0
goto @HEIST9_37591

:HEIST9_37617
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_37636
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_37636
gosub @HEIST9_46360
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37666
set_player_control $player1 {state} True

:HEIST9_37666
print_now 'HM9_45' {time} 4000 {flag} 1
153@ = 1

:HEIST9_37689
if or
  38@ == 17
  38@ == 18
goto_if_false @HEIST9_40687
if and
  locate_char_any_means_3d $scplayer {x} 2266.5979 {y} 1647.3781 {z} 1083.241 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  294@ == 0
goto_if_false @HEIST9_38144
58@ = 0

:HEIST9_37776
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_37776
request_model 371

:HEIST9_37811
if 
  not has_model_loaded 371
goto_if_false @HEIST9_37838
wait 0
goto @HEIST9_37811

:HEIST9_37838
298@ = create_pickup 371 {pickupType} PickupType.Once {x} 2267.989 {y} 1699.668 {z} 101.4
$para_freefall_Vz = -6.0
$para_freefall_Vy = 35.0
292@ = create_char PedType.Mission1 {modelId} 126 {x} 2269.7319 {y} 1620.345 {z} 1085.25
set_char_area_visible 292@ {areaId} 1
set_char_heading 292@ {heading} 0.7663
give_weapon_to_char 292@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 292@ {weaponType} WeaponType.Mp5
set_char_accuracy 292@ {accuracy} 80
set_char_decision_maker 292@ {handleOrTemplate} 89@
flush_route 
extend_route 2269.5769 {y} 1624.246 {z} 1083.2581
extend_route 2269.9861 {y} 1628.803 {z} 1083.245
extend_route 2268.948 {y} 1641.64 {z} 1083.234
task_follow_point_route 292@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
set_char_money 292@ {amount} 0
293@ = create_char PedType.Mission1 {modelId} 127 {x} 2265.832 {y} 1624.938 {z} 1087.448
set_char_area_visible 293@ {areaId} 1
set_char_heading 293@ {heading} 178.1353
give_weapon_to_char 293@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 293@ {weaponType} WeaponType.Mp5
set_char_accuracy 293@ {accuracy} 80
set_char_decision_maker 293@ {handleOrTemplate} 89@
task_toggle_duck 293@ {state} True
task_stay_in_same_place 293@ {state} True
set_char_money 293@ {amount} 0
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
294@ = 1

:HEIST9_38144
if 
  100@ == 0
goto_if_false @HEIST9_39561
if and
  locate_char_any_means_3d $scplayer {x} 2269.0681 {y} 1624.6479 {z} 93.922 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  100@ == 0
goto_if_false @HEIST9_39561
set_radar_zoom 0
set_wanted_multiplier 1.0
do_fade 0 {direction} Fade.Out
set_time_of_day 0 {minutes} 0
gosub @HEIST9_46291
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_38293
set_char_coordinates_dont_warp_gang $scplayer {x} 2268.666 {y} 1620.91 {z} 93.922
set_char_heading $scplayer {heading} 270.0

:HEIST9_38293
load_scene 2269.811 {y} 1625.442 {z} 93.922
load_scene_in_direction 2270.095 {y} 1692.939 {z} 101.2986 {heading} 129.3904
request_model 497

:HEIST9_38337
if 
  not has_model_loaded 497
goto_if_false @HEIST9_38364
wait 0
goto @HEIST9_38337

:HEIST9_38364
198@ = create_car 497 {x} 2295.6221 {y} 1839.804 {z} 38.2713
set_car_heading 198@ {heading} 191.5123
request_model 285
request_car_recording 484

:HEIST9_38407
if or
  not has_model_loaded 285
  not has_car_recording_been_loaded 484
goto_if_false @HEIST9_38439
wait 0
goto @HEIST9_38407

:HEIST9_38439
377@ = create_car 497 {x} 2253.0681 {y} 1626.562 {z} 87.9584
378@ = create_char_inside_car 377@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 378@ {state} False
lock_car_doors 377@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 378@ {state} True
set_heli_blades_full_speed 377@
set_car_forward_speed 377@ {forwardSpeed} 10.0
380@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 380@ {handleOrTemplate} 245@
381@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 381@ {handleOrTemplate} 245@
382@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 382@ {handleOrTemplate} 245@
383@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 383@ {handleOrTemplate} 245@
attach_char_to_car 380@ {vehicle} 377@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 381@ {vehicle} 377@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 382@ {vehicle} 377@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 383@ {vehicle} 377@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
58@ = 0

:HEIST9_38778
set_char_money 380@(58@,4i) {amount} 0
set_char_health 380@(58@,4i) {health} 150
set_char_shoot_rate 380@(58@,4i) {rate} 40
set_char_accuracy 380@(58@,4i) {accuracy} 40
task_stay_in_same_place 380@(58@,4i) {state} True
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_38778
379@ = create_searchlight_on_vehicle 377@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2269.4561 {yPoint} 1625.442 {zPoint} 93.922 {pointRadius} 5.0 {radius} 0.4
point_searchlight_at_char 379@ {handle} $scplayer {speed} 10.0
if 
  not is_car_dead 377@
goto_if_false @HEIST9_38961
if 
  has_car_recording_been_loaded 484
goto_if_false @HEIST9_38961
start_playback_recorded_car 377@ {path} 484
pause_playback_recorded_car 377@

:HEIST9_38961
335@ = create_char PedType.Mission1 {modelId} 285 {x} 2293.6799 {y} 1837.016 {z} 38.2713
set_char_heading 335@ {heading} 164.9221
task_stand_still 335@ {time} 1
336@ = create_char PedType.Mission1 {modelId} 285 {x} 2298.4919 {y} 1836.946 {z} 38.2713
set_char_heading 336@ {heading} 170.0207
task_stand_still 336@ {time} 1
task_toggle_duck 336@ {state} True
58@ = 0

:HEIST9_39059
350@(58@,15i) = 1
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_39059
switch_entry_exit 'JUMP1' {state} False
switch_entry_exit 'JUMP2' {state} False
clear_area 2270.021 {y} 1623.486 {z} 93.922 {radius} 20.0 {clearParticles} True
if 
  does_blip_exist 84@
goto_if_false @HEIST9_39245
remove_blip 84@

:HEIST9_39245
if 
  does_blip_exist 376@
goto_if_false @HEIST9_39266
remove_blip 376@

:HEIST9_39266
384@ = add_blip_for_pickup 298@
set_car_density_multiplier 1.0
set_fixed_camera_position 2305.3379 {y} 1721.1 {z} 126.2864 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2304.813 {y} 1720.407 {z} 125.7915 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_46360
set_interpolation_parameters 0.0 {time} 8000
set_fixed_camera_position 2307.4089 {y} 1599.532 {z} 118.4341 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2306.749 {y} 1600.1639 {z} 118.0293 {switchStyle} SwitchType.Interpolation
print_now 'HM9_25' {time} 8000 {flag} 1
wait 3000
if 
  not is_car_dead 377@
goto_if_false @HEIST9_39458
if 
  has_car_recording_been_loaded 484
goto_if_false @HEIST9_39458
unpause_playback_recorded_car 377@

:HEIST9_39458
wait 5000
gosub @HEIST9_46308
385@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2265.825 {y} 1617.069 {z} 94.5
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_39547
clear_char_tasks $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2269.1389 {y} 1622.576 {z} 93.922
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:HEIST9_39547
100@ = 1
TIMERB = 0

:HEIST9_39561
if 
  is_car_dead 377@
goto_if_false @HEIST9_39598
if 
  does_searchlight_exist 379@
goto_if_false @HEIST9_39598
delete_searchlight 379@

:HEIST9_39598
if and
  100@ == 1
  TIMERB > 10800
  not is_car_dead 377@
goto_if_false @HEIST9_40130
if 
  is_playback_going_on_for_car 377@
goto_if_false @HEIST9_39650
pause_playback_recorded_car 377@

:HEIST9_39650
58@ = 0

:HEIST9_39657
if 
  not is_char_dead 380@(58@,4i)
goto_if_false @HEIST9_39786
$x, $y, $z = get_char_coordinates 380@(58@,4i)
delete_char 380@(58@,4i)
create_swat_rope PedType.Mission1 {modelId} 285 {x} $x {y} $y {z} $z {var_handle} 380@(58@,4i)
set_char_shoot_rate 380@(58@,4i) {rate} 70
set_char_decision_maker 380@(58@,4i) {handleOrTemplate} 245@
give_weapon_to_char 380@(58@,4i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 380@(58@,4i) {weaponType} WeaponType.Mp5
task_stay_in_same_place 380@(58@,4i) {state} True

:HEIST9_39786
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_39657
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_toggle_duck -1 {state} False
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 380@
goto_if_false @HEIST9_39884
perform_sequence_task 380@ {sequence} 53@

:HEIST9_39884
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 381@
goto_if_false @HEIST9_39960
perform_sequence_task 381@ {sequence} 53@

:HEIST9_39960
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_toggle_duck -1 {state} False
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 382@
goto_if_false @HEIST9_40042
perform_sequence_task 382@ {sequence} 53@

:HEIST9_40042
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 383@
goto_if_false @HEIST9_40118
perform_sequence_task 383@ {sequence} 53@

:HEIST9_40118
clear_sequence_task 53@
100@ = 2

:HEIST9_40130
if and
  100@ == 2
  TIMERB > 18000
  not is_car_dead 377@
goto_if_false @HEIST9_40189
if 
  is_playback_going_on_for_car 377@
goto_if_false @HEIST9_40182
unpause_playback_recorded_car 377@

:HEIST9_40182
100@ = 3

:HEIST9_40189
if 
  294@ == 1
goto_if_false @HEIST9_40548
if 
  has_pickup_been_collected 298@
goto_if_false @HEIST9_40548
if 
  does_blip_exist 384@
goto_if_false @HEIST9_40244
remove_blip 384@

:HEIST9_40244
if 
  not is_car_dead 198@
goto_if_false @HEIST9_40275
247@ = add_blip_for_car 198@
set_blip_as_friendly 247@ {state} True

:HEIST9_40275
38@ = 18
99@ = 2
if 
  not is_car_dead 198@
goto_if_false @HEIST9_40479
gosub @HEIST9_46291
set_fixed_camera_position 2267.8799 {y} 1692.8199 {z} 111.0014 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2267.876 {y} 1693.396 {z} 110.1835 {switchStyle} SwitchType.JumpCut
wait 100
set_interpolation_parameters 0.0 {time} 6000
set_fixed_camera_position 2293.709 {y} 1832.2791 {z} 41.1442 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2294.0569 {y} 1833.15 {z} 40.7979 {switchStyle} SwitchType.Interpolation
print_now 'HM9_24' {time} 6000 {flag} 1
wait 6000
gosub @HEIST9_46308
print_now 'HM9_1H' {time} 6000 {flag} 1
goto @HEIST9_40515

:HEIST9_40479
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_X' {time} 6000 {flag} 1

:HEIST9_40515
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_40541
set_char_heading $scplayer {heading} 353.9519

:HEIST9_40541
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute

:HEIST9_40548
if and
  is_car_dead 198@
  does_blip_exist 247@
goto_if_false @HEIST9_40626
if 
  not does_blip_exist 102@
goto_if_false @HEIST9_40621
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1

:HEIST9_40621
remove_blip 247@

:HEIST9_40626
if 
  not is_car_dead 377@
goto_if_false @HEIST9_40687
if and
  not is_playback_going_on_for_car 377@
  40@ == 0
goto_if_false @HEIST9_40687
police_heli_chase_entity 377@ {char} $scplayer {vehicle} -1 {radius} 20.0
40@ = 1

:HEIST9_40687
if 
  38@ == 18
goto_if_false @HEIST9_43352
if and
  is_car_dead 198@
  does_blip_exist 247@
goto_if_false @HEIST9_40731
remove_blip 247@

:HEIST9_40731
if and
  not is_car_dead 198@
  not is_char_dead $scplayer
goto_if_false @HEIST9_40833
if and
  does_blip_exist 247@
  is_char_in_car $scplayer {vehicle} 198@
goto_if_false @HEIST9_40833
if 
  not does_blip_exist 102@
goto_if_false @HEIST9_40828
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1

:HEIST9_40828
remove_blip 247@

:HEIST9_40833
if and
  not is_char_dead $scplayer
  does_blip_exist 384@
goto_if_false @HEIST9_40917
$x, $y, $z = get_char_coordinates $scplayer
if 
  90.0 > $z
goto_if_false @HEIST9_40917
if and
  does_blip_exist 384@
  $h9_TIMERC == 0
goto_if_false @HEIST9_40917
remove_blip 384@

:HEIST9_40917
if and
  not is_char_dead $scplayer
  does_blip_exist 247@
goto_if_false @HEIST9_41067
if 
  not is_car_dead 198@
goto_if_false @HEIST9_41067
$x, $y, $z = get_char_coordinates $scplayer
if 
  36.0 > $z
goto_if_false @HEIST9_41067
if and
  does_blip_exist 247@
  $h9_TIMERC == 0
  307@ == 0
goto_if_false @HEIST9_41067
remove_blip 247@
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1
307@ = 1

:HEIST9_41067
if 
  locate_char_any_means_3d $scplayer {x} 365.5647 {y} 2536.76 {z} 15.6637 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST9_43352
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41138
set_player_control $player1 {state} False

:HEIST9_41138
43@ = 1
remove_blip 102@
gosub @HEIST9_46327
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41197
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_41197
$car = store_car_char_is_in $scplayer

:HEIST9_41197
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41286
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_41256
warp_char_from_car_to_coord $scplayer {x} 345.389 {y} 2539.21 {z} 15.7622
goto @HEIST9_41276

:HEIST9_41256
set_char_coordinates_dont_warp_gang $scplayer {x} 345.389 {y} 2539.21 {z} 15.7622

:HEIST9_41276
set_char_heading $scplayer {heading} 300.8022

:HEIST9_41286
if 
  not is_car_dead 377@
goto_if_false @HEIST9_41307
delete_car 377@

:HEIST9_41307
if 
  not is_car_dead 198@
goto_if_false @HEIST9_41328
delete_car 198@

:HEIST9_41328
if 
  not is_car_dead $car
goto_if_false @HEIST9_41349
delete_car $car

:HEIST9_41349
request_model 428
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'
load_special_character 2 {modelName} 'WUZIMU'

:HEIST9_41390
if or
  not has_model_loaded 428
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_41435
wait 0
goto @HEIST9_41390

:HEIST9_41435
61@ = create_object #CJ_MONEY_BAG {x} 344.9779 {y} 2545.2129 {z} 15.7642
62@ = create_object #CJ_MONEY_BAG {x} 347.936 {y} 2543.9719 {z} 15.7498
63@ = create_object #CJ_MONEY_BAG {x} 348.9375 {y} 2545.8411 {z} 15.7383
64@ = create_object #CJ_MONEY_BAG {x} 343.8135 {y} 2545.7219 {z} 15.7699
clear_area 345.2756 {y} 2546.824 {z} 15.7628 {radius} 50.0 {clearParticles} True
51@ = create_car 428 {x} 345.2756 {y} 2546.824 {z} 15.7628
set_car_heading 51@ {heading} 58.9413
lock_car_doors 51@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 51@ {state} True
54@ = create_char PedType.Mission2 {modelId} 291 {x} 343.7633 {y} 2545.022 {z} 15.7702
set_char_heading 54@ {heading} 202.9705
set_anim_group_for_char 54@ {animGroup} "BLINDMAN"
task_stay_in_same_place 54@ {state} True
set_char_decision_maker 54@ {handleOrTemplate} 120@
set_char_never_targetted 54@ {state} True
set_char_only_damaged_by_player 54@ {state} True
clear_area 344.5244 {y} 2540.563 {z} 15.7743 {radius} 200.0 {clearParticles} True
clear_area 346.5559 {y} 2548.0271 {z} 15.7244 {radius} 2.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 346.5559 {y} 2548.0271 {z} 15.7244
set_char_heading 97@ {heading} 242.1164
set_char_never_targetted 97@ {state} True
task_stay_in_same_place 97@ {state} True
set_char_decision_maker 97@ {handleOrTemplate} 120@
set_char_never_targetted 97@ {state} True
set_char_only_damaged_by_player 97@ {state} True
279@ = create_car 523 {x} 360.2574 {y} 2547.46 {z} 15.5491
set_car_heading 279@ {heading} 107.4242
280@ = create_car 523 {x} 362.587 {y} 2542.7151 {z} 15.618
set_car_heading 280@ {heading} 95.499
281@ = create_char_inside_car 279@ {pedType} PedType.Mission2 {modelId} 284
282@ = create_char_inside_car 280@ {pedType} PedType.Mission2 {modelId} 284
clear_wanted_level $player1
load_scene_in_direction 345.6064 {y} 2536.51 {z} 15.7612 {heading} 4.4301
if 
  not is_char_dead 54@
goto_if_false @HEIST9_41961
set_char_coordinates_dont_warp_gang 54@ {x} 342.5135 {y} 2545.147 {z} 15.7763
set_char_heading 54@ {heading} 215.4312

:HEIST9_41961
gosub @HEIST9_46291
request_animation "FIGHT_B"

:HEIST9_41979
if 
  not has_animation_loaded "FIGHT_B"
goto_if_false @HEIST9_42012
wait 0
goto @HEIST9_41979

:HEIST9_42012
if and
  not is_char_dead $scplayer
  not is_char_dead 97@
  not is_char_dead 54@
goto_if_false @HEIST9_42162
clear_char_tasks_immediately $scplayer
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 347.2988 {y} 2541.4829 {z} 15.7529 {speed} MoveState.Walk {vehicle} -1
task_turn_char_to_face_char -1 {target} 97@
task_pause -1 {time} 4500
task_turn_char_to_face_char -1 {target} 97@
task_play_anim -1 {animationName} "FIGHTB_M" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 3000
task_turn_char_to_face_char -1 {target} 54@
close_sequence_task 53@
perform_sequence_task $scplayer {sequence} 53@
clear_sequence_task 53@

:HEIST9_42162
set_fixed_camera_position 346.245 {y} 2537.9399 {z} 16.7555 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 346.7908 {y} 2538.7781 {z} 16.7555 {switchStyle} SwitchType.JumpCut
if and
  not is_car_dead 279@
  not is_car_dead 280@
  not is_char_dead 281@
  not is_char_dead 282@
goto_if_false @HEIST9_42405
53@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 279@ {x} 351.2343 {y} 2544.125 {z} 15.7337 {speed} 5.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_pause -1 {time} 2000
task_leave_car -1 {vehicle} 279@
switch_car_siren 279@ {state} False
close_sequence_task 53@
perform_sequence_task 281@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 280@ {x} 351.4331 {y} 2542.7529 {z} 15.7337 {speed} 5.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_pause -1 {time} 2000
task_leave_car -1 {vehicle} 280@
switch_car_siren 280@ {state} False
close_sequence_task 53@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
perform_sequence_task 282@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_42405
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_42433
switch_car_siren 279@ {state} True

:HEIST9_42433
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_42461
switch_car_siren 280@ {state} True

:HEIST9_42461
gosub @HEIST9_46360
print_now 'HE8_ZA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12317

:HEIST9_42495
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42521
wait 0
goto @HEIST9_42495

:HEIST9_42521
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 97@
goto_if_false @HEIST9_42605
flush_route 
extend_route 350.6611 {y} 2546.7351 {z} 15.6957
extend_route 348.9894 {y} 2543.4761 {z} 15.7446
extend_route 347.4687 {y} 2541.793 {z} 15.7521
task_follow_point_route 97@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_42605
TIMERB = 0

:HEIST9_42612
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42638
wait 0
goto @HEIST9_42612

:HEIST9_42638
print_now 'HE8_ZB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12284

:HEIST9_42665
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42691
wait 0
goto @HEIST9_42665

:HEIST9_42691
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_42702
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42728
wait 0
goto @HEIST9_42702

:HEIST9_42728
if 
  not is_char_dead 97@
goto_if_false @HEIST9_42783
task_play_anim 97@ {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST9_42783
print_now 'ZER1_DB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21818

:HEIST9_42810
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42836
wait 0
goto @HEIST9_42810

:HEIST9_42836
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_42847
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42873
wait 0
goto @HEIST9_42847

:HEIST9_42873
wait 500
set_interpolation_parameters 0.0 {time} 3000
set_fixed_camera_position 348.9764 {y} 2538.0291 {z} 16.6197 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 348.743 {y} 2539.001 {z} 16.6362 {switchStyle} SwitchType.Interpolation
print_now 'WUZX_BR' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27243

:HEIST9_42966
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42992
wait 0
goto @HEIST9_42966

:HEIST9_42992
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_43003
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_43029
wait 0
goto @HEIST9_43003

:HEIST9_43029
wait 1000
print_now 'WUZX_AK' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27210

:HEIST9_43061
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_43087
wait 0
goto @HEIST9_43061

:HEIST9_43087
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_43098
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_43124
wait 0
goto @HEIST9_43098

:HEIST9_43124
gosub @HEIST9_46327
delete_char 54@
delete_char 97@
delete_char 281@
delete_char 282@
delete_car 279@
delete_car 280@
delete_car 51@
remove_animation "FIGHT_B"
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
230@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43227
restore_clothes_state 
build_player_model $player1

:HEIST9_43227
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43326
load_scene 2023.783 {y} 1007.845 {z} 9.8203
clear_area 2023.783 {y} 1007.845 {z} 9.8203 {radius} 20.0 {clearParticles} True
request_collision 2023.783 {y} 1007.845
set_char_coordinates_dont_warp_gang $scplayer {x} 2023.783 {y} 1007.845 {z} 9.813
set_char_heading $scplayer {heading} 270.9639

:HEIST9_43326
gosub @HEIST9_46308
wait 500
gosub @HEIST9_46360
goto @HEIST9_44518

:HEIST9_43352
if and
  16 > 38@
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_43644
58@ = 0

:HEIST9_43391
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43441
get_char_coordinates 54@(58@,4i) {var_x} 180@(58@,4f) {var_y} 184@(58@,4f) {var_z} 188@(58@,4f)

:HEIST9_43441
if 
  is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43623
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_43490
remove_blip 91@(58@,4i)

:HEIST9_43490
gosub @HEIST9_46291
188@(58@,4f) += 2.5
set_fixed_camera_position 180@(58@,4f) {y} 184@(58@,4f) {z} 188@(58@,4f) {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
188@(58@,4f) -= 2.5
point_camera_at_point 180@(58@,4f) {y} 184@(58@,4f) {z} 188@(58@,4f) {switchStyle} SwitchType.JumpCut
wait 4000
gosub @HEIST9_50385
print_now 'HM9_9' {time} 4000 {flag} 1
goto @HEIST9_44470

:HEIST9_43623
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43391

:HEIST9_43644
goto @HEIST9_2598

:HEIST9_43651
goto @HEIST9_44470
delete_car 46@
mark_model_as_no_longer_needed 530
if 
  not is_char_dead 54@
goto_if_false @HEIST9_43726
clear_char_tasks_immediately 54@
set_char_coordinates_dont_warp_gang 54@ {x} 2145.146 {y} 1626.464 {z} 992.5681
set_char_heading 54@ {heading} 11.1673
task_duck 54@ {time} -1

:HEIST9_43726
if 
  not is_char_dead 55@
goto_if_false @HEIST9_43784
clear_char_tasks_immediately 55@
set_char_coordinates_dont_warp_gang 55@ {x} 2143.25 {y} 1626.4821 {z} 992.5681
set_char_heading 55@ {heading} 3.4561
task_duck 55@ {time} -1

:HEIST9_43784
if 
  not is_char_dead 56@
goto_if_false @HEIST9_43835
clear_char_tasks_immediately 56@
set_char_coordinates_dont_warp_gang 56@ {x} 2140.7529 {y} 1616.249 {z} 992.5681
set_char_heading 56@ {heading} 342.9477

:HEIST9_43835
if 
  not is_char_dead 57@
goto_if_false @HEIST9_43886
clear_char_tasks_immediately 57@
set_char_coordinates_dont_warp_gang 57@ {x} 2147.739 {y} 1616.703 {z} 992.5681
set_char_heading 57@ {heading} 33.9273

:HEIST9_43886
return 

:HEIST9_43888
58@ = 0

:HEIST9_43895
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43934
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_43934
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43895
return 

:HEIST9_43957
58@ = 0

:HEIST9_43964
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_44003
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:HEIST9_44003
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43964
return 

:HEIST9_44026
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  is_char_dead 339@
goto_if_false @HEIST9_44468
if and
  is_char_dead 340@
  is_char_dead 341@
  is_char_dead 342@
goto_if_false @HEIST9_44468
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2148.0171 {y} 1597.457 {z} 998.7676 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_44128
266@(58@,4i) = 0
270@(58@,4i) = 0
if and
  not is_char_dead 54@(58@,4i)
  not is_char_dead $scplayer
goto_if_false @HEIST9_44196
clear_char_tasks_immediately 54@(58@,4i)
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_44196
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_44291
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_44291
print_now 'HM9_44' {time} 5000 {flag} 1

:HEIST9_44291
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44128
clear_sequence_task 53@
257@ = 0
258@ = 0
278@ = 1
TIMERB = 0
58@ = 0

:HEIST9_44352
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44352
if 
  does_blip_exist 90@
goto_if_false @HEIST9_44405
remove_blip 90@

:HEIST9_44405
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
print_now 'HM9_8' {time} 7000 {flag} 1
52@ = 1

:HEIST9_44468
return 

:HEIST9_44470
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44500
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_44500
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST9_44518
$3252 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} 102.7728 {y} 1899.192 {z} 33.1572
$3253 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} 1274.301 {y} -825.7809 {z} 1085.079
$3254 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} -948.3487 {y} 1858.0229 {z} 8.3237
$3255 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} -1956.274 {y} -853.7687 {z} 31.873
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44656
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_44656
if 
  does_blip_exist $Theheist_contact_blip
goto_if_false @HEIST9_44677
remove_blip $Theheist_contact_blip

:HEIST9_44677
$flag_heist_mission_counter += 1
player_made_progress 1
register_mission_passed 'HEIST_9'
print_with_number_big 'M_PASSS' {num} 100000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 100000
award_player_mission_respect 100
play_mission_passed_tune 1
clear_wanted_level $player1
clear_area 2444.772 {y} 655.0391 {z} 10.3874 {radius} 30.0 {clearParticles} True
$flag_player_got_casino_uniform = 1
set_int_stat StatId.PassedHeist8 {value} 1
return 

:HEIST9_44783
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed #GENERATOR_BIG
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed #CJ_MONEY_BAG
mark_model_as_no_longer_needed #GENERATOR_BIG_D
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 335
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_animation "BOMBER"
remove_car_recording 499
remove_car_recording 487
remove_car_recording 494
remove_car_recording 484
return 

:HEIST9_44950
$disable_mod_garage = 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44978
stop_char_facial_talk $scplayer

:HEIST9_44978
set_wanted_multiplier 1.0
set_radar_zoom 0
58@ = 0

:HEIST9_44996
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_45025
remove_blip 350@(58@,15i)

:HEIST9_45025
if 
  does_blip_exist 320@(58@,15i)
goto_if_false @HEIST9_45054
remove_blip 320@(58@,15i)

:HEIST9_45054
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_44996
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_45100
switch_car_generator $d5_bronze_generator {amount} 101

:HEIST9_45100
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_45125
switch_car_generator $d5_silver_generator {amount} 101

:HEIST9_45125
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_45150
switch_car_generator $d5_gold_generator {amount} 101

:HEIST9_45150
if 
  not is_char_dead 97@
goto_if_false @HEIST9_45171
remove_char_elegantly 97@

:HEIST9_45171
if 
  not is_char_dead 281@
goto_if_false @HEIST9_45192
remove_char_elegantly 281@

:HEIST9_45192
if 
  not is_char_dead 282@
goto_if_false @HEIST9_45213
remove_char_elegantly 282@

:HEIST9_45213
set_zone_no_cops 'MEAD' {state} False
clear_onscreen_timer $h9_health
if 
  $player_fall_state > 0
goto_if_false @HEIST9_45256
$player_fall_state = 6

:HEIST9_45256
$para_float_Vy = 5.0
$para_flare_Vy = 8.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$iTerminateAllAmbience = 0
switch_object_brains ScriptBrainAttachType.Object {state} True
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_45339
remove_weapon_from_char $scplayer {weaponType} WeaponType.NightVision
remove_weapon_from_char $scplayer {weaponType} WeaponType.Teargas

:HEIST9_45339
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_45369
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_45369
set_object_heading $w5_storm_freighter_door {heading} 270.0
switch_entry_exit 'MAFCAS' {state} True
switch_entry_exit 'MAFCAS2' {state} True
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} True
set_darkness_effect False {pitchBlack} 0
set_night_vision False
$onmission = 0
clear_wanted_level $player1
delete_object 41@
58@ = 0

:HEIST9_45465
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_45494
remove_char_elegantly 54@(58@,4i)

:HEIST9_45494
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_45523
mark_char_as_no_longer_needed 109@(58@,5i)

:HEIST9_45523
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_45552
remove_blip 91@(58@,4i)

:HEIST9_45552
if 
  does_object_exist 61@(58@,4i)
goto_if_false @HEIST9_45581
delete_object 61@(58@,4i)

:HEIST9_45581
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_45465
if 
  does_blip_exist 299@
goto_if_false @HEIST9_45623
remove_blip 299@

:HEIST9_45623
if 
  does_blip_exist 233@
goto_if_false @HEIST9_45644
remove_blip 233@

:HEIST9_45644
if 
  does_blip_exist 45@
goto_if_false @HEIST9_45665
remove_blip 45@

:HEIST9_45665
if 
  does_blip_exist 108@
goto_if_false @HEIST9_45686
remove_blip 108@

:HEIST9_45686
if 
  does_blip_exist 39@
goto_if_false @HEIST9_45707
remove_blip 39@

:HEIST9_45707
if 
  does_blip_exist 44@
goto_if_false @HEIST9_45728
remove_blip 44@

:HEIST9_45728
if 
  does_blip_exist 47@
goto_if_false @HEIST9_45749
remove_blip 47@

:HEIST9_45749
if 
  does_blip_exist 90@
goto_if_false @HEIST9_45770
remove_blip 90@

:HEIST9_45770
if 
  does_blip_exist 384@
goto_if_false @HEIST9_45791
remove_blip 384@

:HEIST9_45791
if 
  does_blip_exist 376@
goto_if_false @HEIST9_45812
remove_blip 376@

:HEIST9_45812
if 
  does_blip_exist 84@
goto_if_false @HEIST9_45833
remove_blip 84@

:HEIST9_45833
if 
  does_blip_exist 102@
goto_if_false @HEIST9_45854
remove_blip 102@

:HEIST9_45854
if 
  does_blip_exist 372@
goto_if_false @HEIST9_45875
remove_blip 372@

:HEIST9_45875
if 
  does_blip_exist 228@
goto_if_false @HEIST9_45896
remove_blip 228@

:HEIST9_45896
if 
  does_blip_exist 229@
goto_if_false @HEIST9_45917
remove_blip 229@

:HEIST9_45917
if 
  is_any_pickup_at_coords 2176.4709 {y} 1597.394 {z} 1000.0
goto_if_false @HEIST9_45950
remove_pickup $gate_drive_car_ai_heist5

:HEIST9_45950
if 
  is_any_pickup_at_coords 2144.3391 {y} 1640.666 {z} 993.5
goto_if_false @HEIST9_45983
remove_pickup 285@

:HEIST9_45983
if 
  is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_46016
remove_pickup 214@

:HEIST9_46016
if 
  is_any_pickup_at_coords 2267.989 {y} 1699.668 {z} 101.4
goto_if_false @HEIST9_46049
remove_pickup 298@

:HEIST9_46049
if 
  is_any_pickup_at_coords 2265.825 {y} 1617.069 {z} 94.5
goto_if_false @HEIST9_46082
remove_pickup 385@

:HEIST9_46082
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed #GENERATOR_BIG
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed #CJ_MONEY_BAG
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed #GENERATOR_BIG_D
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 371
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_animation "HEIST9"
remove_animation "BOMBER"
remove_animation "FIGHT_B"
mission_has_finished 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
return 

:HEIST9_46291
clear_prints 
clear_help 
switch_widescreen True
set_player_control $player1 {state} False
return 

:HEIST9_46308
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:HEIST9_46327
do_fade 500 {direction} Fade.Out

:HEIST9_46334
if 
  get_fading_status 
goto_if_false @HEIST9_46358
wait 0
goto @HEIST9_46334

:HEIST9_46358
return 

:HEIST9_46360
do_fade 500 {direction} Fade.In

:HEIST9_46367
if 
  get_fading_status 
goto_if_false @HEIST9_46391
wait 0
goto @HEIST9_46367

:HEIST9_46391
return 

:HEIST9_46393
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @HEIST9_46484
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46484
set_char_coordinates_dont_warp_gang $scplayer {x} 2179.354 {y} 1673.1801 {z} 10.0469
set_char_heading $scplayer {heading} 285.6208
set_camera_behind_player 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46477
stop_char_facial_talk $scplayer

:HEIST9_46477
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_46484
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @HEIST9_46545
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46545
set_char_coordinates_dont_warp_gang $scplayer {x} 2176.583 {y} 1600.462 {z} 998.9749
set_char_heading $scplayer {heading} 179.7799

:HEIST9_46545
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @HEIST9_46748
gosub @HEIST9_46291
set_fixed_camera_position 2144.677 {y} 1614.061 {z} 1001.469 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2144.4131 {y} 1615.016 {z} 1001.331 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46712
clear_char_tasks_immediately $scplayer
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0
set_char_coordinates_dont_warp_gang $scplayer {x} 2142.6641 {y} 1617.397 {z} 999.968
set_char_heading $scplayer {heading} 352.2108
task_shoot_at_coord $scplayer {x} 2142.6641 {y} 1620.397 {z} 1003.0 {time} 1000

:HEIST9_46712
wait 4000
clear_area 2143.124 {y} 1618.427 {z} 999.968 {radius} 10.0 {clearParticles} True
gosub @HEIST9_46308

:HEIST9_46748
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @HEIST9_46832
set_area_visible 1
load_scene 2147.7781 {y} 1611.972 {z} 1005.188
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46832
set_char_coordinates_dont_warp_gang $scplayer {x} 2147.7781 {y} 1611.972 {z} 1005.188
set_char_heading $scplayer {heading} 182.1343
set_camera_behind_player 

:HEIST9_46832
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @HEIST9_47097
gosub @HEIST9_46327
gosub @HEIST9_46291
request_model 330
load_special_character 1 {modelName} 'ZERO'

:HEIST9_46879
if or
  not has_special_character_loaded 1
  not has_model_loaded 330
goto_if_false @HEIST9_46910
wait 0
goto @HEIST9_46879

:HEIST9_46910
set_night_vision False
set_darkness_effect True {pitchBlack} 220
set_fixed_camera_position 2219.4561 {y} 1587.37 {z} 999.1768 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2219.6799 {y} 1586.4091 {z} 999.3383 {switchStyle} SwitchType.JumpCut
97@ = create_char PedType.Special {modelId} 290 {x} 2221.1221 {y} 1582.974 {z} 998.9675
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 4.8671
task_use_mobile_phone 97@ {start} True
gosub @HEIST9_46360
print_now 'HM9_46' {time} 4000 {flag} 1
wait 2000
set_darkness_effect False {pitchBlack} 0
wait 2000
gosub @HEIST9_46308
print_now 'HM9_8' {time} 5000 {flag} 1
105@ = 1
200@ = 1

:HEIST9_47097
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @HEIST9_47158
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47158
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.021 {y} 1612.8669 {z} 992.5681
set_char_heading $scplayer {heading} 0.0

:HEIST9_47158
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @HEIST9_47196
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47196
restore_clothes_state 
build_player_model $player1

:HEIST9_47196
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @HEIST9_47369
38@ = 6
46@ = create_car 530 {x} 2173.6211 {y} 1585.964 {z} 998.9722
set_vehicle_area_visible 46@ {interiorId} 1
set_car_heading 46@ {heading} 270.0
change_car_colour 46@ {color1} 6 {color2} 6
mark_model_as_no_longer_needed 530
209@ = 1
if 
  not is_car_dead 46@
goto_if_false @HEIST9_47302
set_vehicle_area_visible 46@ {interiorId} 1

:HEIST9_47302
set_area_visible 1
load_scene 2256.551 {y} 1704.762 {z} 1.1747
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47369
set_char_coordinates_dont_warp_gang $scplayer {x} 2220.3701 {y} 1574.484 {z} 998.9695
set_char_heading $scplayer {heading} 180.0

:HEIST9_47369
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @HEIST9_47430
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47430
set_char_coordinates_dont_warp_gang $scplayer {x} 1962.8409 {y} 1060.6331 {z} 993.4688
set_char_heading $scplayer {heading} 346.1133

:HEIST9_47430
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @HEIST9_47498
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47491
set_char_coordinates_dont_warp_gang $scplayer {x} 362.6579 {y} 2525.248 {z} 15.6336
set_char_heading $scplayer {heading} 11.8402

:HEIST9_47491
38@ = 18

:HEIST9_47498
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @HEIST9_48138
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47559
set_char_coordinates_dont_warp_gang $scplayer {x} 346.9504 {y} 2539.0249 {z} 15.7546
set_char_heading $scplayer {heading} 2.8895

:HEIST9_47559
gosub @HEIST9_46291
set_fixed_camera_position 350.102 {y} 2536.9951 {z} 16.9325 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 349.5165 {y} 2537.801 {z} 16.844 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47669
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_47669
print_now 'HE8_ZA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12317

:HEIST9_47696
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47722
wait 0
goto @HEIST9_47696

:HEIST9_47722
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47733
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47759
wait 0
goto @HEIST9_47733

:HEIST9_47759
print_now 'HE8_ZB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12284

:HEIST9_47786
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47812
wait 0
goto @HEIST9_47786

:HEIST9_47812
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47823
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47849
wait 0
goto @HEIST9_47823

:HEIST9_47849
print_now 'HE8_ZC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 65535

:HEIST9_47878
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47904
wait 0
goto @HEIST9_47878

:HEIST9_47904
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47915
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47941
wait 0
goto @HEIST9_47915

:HEIST9_47941
print_now 'HE8_ZD' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12318

:HEIST9_47968
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47994
wait 0
goto @HEIST9_47968

:HEIST9_47994
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48005
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48031
wait 0
goto @HEIST9_48005

:HEIST9_48031
gosub @HEIST9_46327
delete_char 54@
delete_char 97@
delete_car 51@
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_48124
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 347.167 {y} 2538.4839 {z} 15.7535
set_char_heading $scplayer {heading} 191.987

:HEIST9_48124
gosub @HEIST9_46308
gosub @HEIST9_46360

:HEIST9_48138
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @HEIST9_48157
set_radar_zoom 0

:HEIST9_48157
if 
is_ps2_keyboard_key_just_pressed 21
goto_if_false @HEIST9_48176
set_radar_zoom 100

:HEIST9_48176
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @HEIST9_49691
request_model 117
request_model 120
request_model 428
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_48227
if or
  not has_model_loaded 117
  not has_model_loaded 120
  not has_model_loaded 428
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_48276
wait 0
goto @HEIST9_48227

:HEIST9_48276
request_car_recording 494

:HEIST9_48281
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_48308
wait 0
goto @HEIST9_48281

:HEIST9_48308
delete_object 49@
387@ = create_car 428 {x} 2220.3889 {y} 1577.623 {z} 998.0
set_vehicle_area_visible 387@ {interiorId} 1
set_car_heading 387@ {heading} 179.9804
54@ = create_char PedType.Mission2 {modelId} 117 {x} 2224.042 {y} 1589.3669 {z} 998.967
set_char_area_visible 54@ {areaId} 1
set_char_heading 54@ {heading} 165.2519
55@ = create_char PedType.Mission2 {modelId} 120 {x} 2222.8931 {y} 1589.583 {z} 998.9684
set_char_area_visible 55@ {areaId} 1
set_char_heading 55@ {heading} 173.9364
56@ = create_char PedType.Mission2 {modelId} 120 {x} 2221.866 {y} 1589.245 {z} 998.9696
set_char_area_visible 56@ {areaId} 1
set_char_heading 56@ {heading} 177.0563
57@ = create_char PedType.Mission2 {modelId} 120 {x} 2220.7229 {y} 1589.224 {z} 998.971
set_char_area_visible 57@ {areaId} 1
set_char_heading 57@ {heading} 171.7417
gosub @HEIST9_46291
set_fixed_camera_position 2216.7209 {y} 1579.8101 {z} 1000.833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.3821 {y} 1580.538 {z} 1000.654 {switchStyle} SwitchType.JumpCut
print_now 'HE8_UA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12276

:HEIST9_48602
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_48628
wait 0
goto @HEIST9_48602

:HEIST9_48628
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48639
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48689
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_48682
goto @HEIST9_49517

:HEIST9_48682
goto @HEIST9_48639

:HEIST9_48689
print_now 'HE8_UB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 12218

:HEIST9_48716
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_48742
wait 0
goto @HEIST9_48716

:HEIST9_48742
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48753
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48803
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_48796
goto @HEIST9_49517

:HEIST9_48796
goto @HEIST9_48753

:HEIST9_48803
delete_char 97@
delete_char 56@
delete_char 57@
set_fixed_camera_position 2216.9141 {y} 1571.6219 {z} 999.7229 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.27 {y} 1572.557 {z} 999.7267 {switchStyle} SwitchType.JumpCut
281@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.8 {y} 1581.163 {z} 998.9764
set_char_heading 281@ {heading} 196.0524
set_char_area_visible 281@ {areaId} 1
282@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.019 {y} 1581.179 {z} 998.9772
set_char_heading 282@ {heading} 74.4668
set_char_area_visible 282@ {areaId} 1
if and
  not is_car_dead 387@
  not is_char_dead 54@
goto_if_false @HEIST9_48985
task_enter_car_as_driver 54@ {vehicle} 387@ {time} 8000

:HEIST9_48985
if and
  not is_car_dead 387@
  not is_char_dead 55@
goto_if_false @HEIST9_49019
task_enter_car_as_passenger 55@ {vehicle} 387@ {time} 8000 {seat} SeatId.BikeRear

:HEIST9_49019
TIMERB = 0

:HEIST9_49026
if 
  4000 > TIMERB
goto_if_false @HEIST9_49080
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49073
goto @HEIST9_49517

:HEIST9_49073
goto @HEIST9_49026

:HEIST9_49080
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_49112
task_enter_car_as_driver 281@ {vehicle} 279@ {time} 4000

:HEIST9_49112
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_49144
task_enter_car_as_driver 282@ {vehicle} 280@ {time} 4000

:HEIST9_49144
TIMERB = 0

:HEIST9_49151
if 
  4000 > TIMERB
goto_if_false @HEIST9_49205
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49198
goto @HEIST9_49517

:HEIST9_49198
goto @HEIST9_49151

:HEIST9_49205
set_fixed_camera_position 2223.8501 {y} 1572.014 {z} 1001.623 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.3711 {y} 1572.844 {z} 1001.336 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 494
  not is_car_dead 387@
goto_if_false @HEIST9_49285
start_playback_recorded_car 387@ {path} 494

:HEIST9_49285
TIMERB = 0

:HEIST9_49292
if 
  500 > TIMERB
goto_if_false @HEIST9_49346
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49339
goto @HEIST9_49517

:HEIST9_49339
goto @HEIST9_49292

:HEIST9_49346
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_49401
task_car_drive_to_coord 281@ {vehicle} 279@ {x} 2223.4861 {y} 1564.463 {z} 1001.016 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_49401
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_49456
task_car_drive_to_coord 282@ {vehicle} 280@ {x} 2217.3191 {y} 1566.6 {z} 1000.3 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_49456
TIMERB = 0

:HEIST9_49463
if 
  2000 > TIMERB
goto_if_false @HEIST9_49517
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49510
goto @HEIST9_49517

:HEIST9_49510
goto @HEIST9_49463

:HEIST9_49517
58@ = 0

:HEIST9_49524
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_49562
remove_blip 91@(58@,4i)
delete_char 54@(58@,4i)

:HEIST9_49562
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_49524
if 
  not is_car_dead 387@
goto_if_false @HEIST9_49604
delete_car 387@

:HEIST9_49604
if 
  not is_car_dead 279@
goto_if_false @HEIST9_49625
delete_car 279@

:HEIST9_49625
if 
  not is_car_dead 280@
goto_if_false @HEIST9_49646
delete_car 280@

:HEIST9_49646
if 
  not is_char_dead 97@
goto_if_false @HEIST9_49667
delete_char 97@

:HEIST9_49667
gosub @HEIST9_46308
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 120
mark_model_as_no_longer_needed 285
unload_special_character 2

:HEIST9_49691
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @HEIST9_49729
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_49729
player_take_off_goggles $player1 {animate} True

:HEIST9_49729
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @HEIST9_49787
38@ = 18
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_49787
set_char_coordinates_dont_warp_gang $scplayer {x} 338.0 {y} 2540.563 {z} 15.7743

:HEIST9_49787
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @HEIST9_50383
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_49825
if or
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_49861
wait 0
goto @HEIST9_49825

:HEIST9_49861
request_car_recording 494
load_special_character 1 {modelName} 'ZERO'

:HEIST9_49879
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_49906
wait 0
goto @HEIST9_49879

:HEIST9_49906
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} False
106@ = 1
clear_area 2220.3401 {y} 1582.068 {z} 998.9764 {radius} 10.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 350.4443
279@ = create_car 523 {x} 2223.699 {y} 1582.78 {z} 998.0
set_vehicle_area_visible 279@ {interiorId} 1
set_car_heading 279@ {heading} 175.8434
lock_car_doors 279@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 279@ {state} True
280@ = create_car 523 {x} 2217.5491 {y} 1583.667 {z} 998.0
set_vehicle_area_visible 280@ {interiorId} 1
set_car_heading 280@ {heading} 175.3717
lock_car_doors 280@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 280@ {state} True
gosub @HEIST9_1936
if 
  not is_car_dead 51@
goto_if_false @HEIST9_50166
set_car_coordinates 51@ {x} 2220.2939 {y} 1578.0699 {z} 998.9756
set_car_heading 51@ {heading} 177.9097

:HEIST9_50166
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50212
set_char_coordinates_dont_warp_gang $scplayer {x} 2216.031 {y} 1618.646 {z} 998.9766
set_char_heading $scplayer {heading} 269.4771

:HEIST9_50212
if 
  not is_char_dead 54@
goto_if_false @HEIST9_50253
warp_char_from_car_to_coord 54@ {x} 2219.7581 {y} 1585.285 {z} 998.9722
clear_char_tasks_immediately 54@

:HEIST9_50253
if 
  not is_char_dead 55@
goto_if_false @HEIST9_50294
warp_char_from_car_to_coord 55@ {x} 2221.8831 {y} 1584.261 {z} 998.9696
clear_char_tasks_immediately 55@

:HEIST9_50294
if 
  not is_char_dead 56@
goto_if_false @HEIST9_50335
warp_char_from_car_to_coord 56@ {x} 2222.7051 {y} 1586.266 {z} 998.9686
clear_char_tasks_immediately 56@

:HEIST9_50335
if 
  not is_char_dead 57@
goto_if_false @HEIST9_50376
warp_char_from_car_to_coord 57@ {x} 2220.302 {y} 1586.568 {z} 998.9716
clear_char_tasks_immediately 57@

:HEIST9_50376
38@ = 14

:HEIST9_50383
return 

:HEIST9_50385
388@ = get_area_visible 
gosub @HEIST9_46327
if and
  not is_char_dead $scplayer
  388@ <> 0
goto_if_false @HEIST9_50565
set_night_vision False
set_area_visible 0
load_scene 2185.739 {y} 1677.396 {z} 10.0946
clear_area 2185.739 {y} 1677.396 {z} 10.0946 {radius} 10.0 {clearParticles} True
request_collision 2185.739 {y} 1677.396
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_50524
warp_char_from_car_to_coord $scplayer {x} 2185.739 {y} 1677.396 {z} 10.0946
goto @HEIST9_50544

:HEIST9_50524
set_char_coordinates_dont_warp_gang $scplayer {x} 2185.739 {y} 1677.396 {z} 10.0946

:HEIST9_50544
set_char_heading $scplayer {heading} 88.4776
set_char_area_visible $scplayer {areaId} 0
restore_camera_jumpcut 
set_camera_behind_player 

:HEIST9_50565
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50595
restore_clothes_state 
build_player_model $player1
230@ = 1

:HEIST9_50595
gosub @HEIST9_46360
return 

:HEIST9_50604
gosub @HEIST9_46327
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50641
restore_clothes_state 
build_player_model $player1
230@ = 1

:HEIST9_50641
gosub @HEIST9_46360
return 

:HEIST9_50650
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 232@
231@ = 0
return 

:HEIST9_50670
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  231@ == 0
goto_if_false @HEIST9_50713
play_mission_audio MissionAudioSlot.Slot1
print_now 288@s {time} 20000 {flag} 1
231@ = 1

:HEIST9_50713
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  231@ == 1
goto_if_false @HEIST9_50751
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 288@s
231@ = 2

:HEIST9_50751
return 

//-------------Mission 102---------------
// Originally: A Home In The Hills

:MANSIO1
script_name 'MANSIO1'
gosub @MANSIO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO1_38
gosub @MANSIO1_38488

:MANSIO1_38
gosub @MANSIO1_39063
terminate_this_script 

:MANSIO1_47
register_mission_given 
$onmission = 1
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
load_mission_text 'MAN_1'
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 11
load_cutscene 'BHILL1'

:MANSIO1_150
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO1_174
wait 0
goto @MANSIO1_150

:MANSIO1_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO1_183
if 
  not has_cutscene_finished 
goto_if_false @MANSIO1_207
wait 0
goto @MANSIO1_183

:MANSIO1_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO1_222
if 
  get_fading_status 
goto_if_false @MANSIO1_246
wait 0
goto @MANSIO1_222

:MANSIO1_246
set_area_visible 0
display_zone_names False
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene_in_direction 2171.137 {y} 1269.3571 {z} 32.8078 {heading} 0.0
request_model 592

:MANSIO1_293
if 
  not has_model_loaded 592
goto_if_false @MANSIO1_320
wait 0
goto @MANSIO1_293

:MANSIO1_320
set_char_area_visible $scplayer {areaId} 0
96@ = create_car 592 {x} 2144.0 {y} 1600.0 {z} 50.0
set_car_heading 96@ {heading} 180.0
set_radio_channel RadioChannel.UserTracks
set_plane_undercarriage_up 96@ {state} True
freeze_car_position 96@ {state} True
set_vehicle_area_visible 96@ {interiorId} 0
warp_char_into_car $scplayer {vehicle} 96@
49@ = 0
force_weather_now WeatherType.ExtraSunnyDesert
set_time_of_day 6 {minutes} 0
set_fixed_camera_position 2171.137 {y} 1269.3571 {z} 32.8078 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2170.998 {y} 1270.3311 {z} 32.9838 {switchStyle} SwitchType.JumpCut
set_respawn_point_for_duration_of_mission 1581.374 {y} 1768.996 {z} 9.8203
switch_widescreen True
set_heathaze_effect True
TIMERA = 0

:MANSIO1_493
if 
  1000 > TIMERA
goto_if_false @MANSIO1_523
wait 0
goto @MANSIO1_493

:MANSIO1_523
skip_cutscene_start_internal @MANSIO1_703
97@ = 1600.0
do_fade 1000 {direction} Fade.In

:MANSIO1_547
if 
  get_fading_status 
goto_if_false @MANSIO1_615
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_604
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_604
wait 0
goto @MANSIO1_547

:MANSIO1_615
TIMERA = 0

:MANSIO1_622
if 
  9000 > TIMERA
goto_if_false @MANSIO1_696
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_685
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_685
wait 0
goto @MANSIO1_622

:MANSIO1_696
49@ = 1

:MANSIO1_703
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:MANSIO1_712
if 
  get_fading_status 
goto_if_false @MANSIO1_780
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_769
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_769
wait 0
goto @MANSIO1_712

:MANSIO1_780
set_heathaze_effect False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO1_827
warp_char_from_car_to_coord $scplayer {x} 1598.951 {y} -785.327 {z} 350.1654
goto @MANSIO1_847

:MANSIO1_827
set_char_coordinates $scplayer {x} 1598.951 {y} -785.327 {z} 350.1654

:MANSIO1_847
freeze_char_position $scplayer {state} True
mark_model_as_no_longer_needed 592
mark_car_as_no_longer_needed 96@
request_model 117
request_model 118
request_model 108
request_model 109
request_model 356
request_model 353
request_model #CARGO_REAR
request_model #D9_RAMP
request_model 330
request_model #PARACHUTE
request_model #PARA_PACK
request_animation "PARACHUTE"
stream_script 1

:MANSIO1_932
if or
  not has_model_loaded 117
  not has_model_loaded 118
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 356
  not has_model_loaded 353
goto_if_false @MANSIO1_980
wait 0
goto @MANSIO1_932

:MANSIO1_980
if or
  not has_model_loaded #CARGO_REAR
  not has_model_loaded #D9_RAMP
  not has_model_loaded 330
  not has_model_loaded #PARACHUTE
  not has_model_loaded #PARA_PACK
  not has_animation_loaded "PARACHUTE"
goto_if_false @MANSIO1_1040
wait 0
goto @MANSIO1_980

:MANSIO1_1040
if 
  not has_streamed_script_loaded 1
goto_if_false @MANSIO1_1066
wait 0
goto @MANSIO1_1040

:MANSIO1_1066
52@ = 0
34@ = load_char_decision_maker DecisionMakerType.Empty
35@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 35@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 35@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleInformRespectedFriends {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 35@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
36@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 36@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleInformRespectedFriends {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.SeenPanickedPed {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 10.0 {hate} 10.0 {like} 10.0 {dislike} 10.0 {inCar} False {onFoot} True
37@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 37@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 37@ {event} Event.Damage {taskId} TaskId.ComplexSmartFleeEntity {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
39@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 39@ {event} Event.Damage
add_group_decision_maker_event_response 39@ {event} Event.Damage {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission3 {toPedType} PedType.Mission2
44@ = get_player_group $player1
set_group_default_task_allocator 44@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
set_group_decision_maker 44@ {handleOrTemplate} 39@
98@ = 0
if 
  98@ == 1
goto_if_false @MANSIO1_1842
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 143@(431@,3i)
159@ = create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 170@(43@,6i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 286@(43@,10i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 474@(43@,3i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 316@(43@,4i)
create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 194@(43@,6i)
add_blip_for_char 143@(43@,3i) {var_handle} 146@(43@,3i)

:MANSIO1_1842
switch_ambient_planes False
set_police_ignore_player $player1 {state} True
force_weather_now WeatherType.SunnyLa
set_time_of_day 3 {minutes} 0
127@ = create_object_no_offset #CARGO_REAR {x} 1595.0 {y} -785.0 {z} 350.0
set_object_heading 127@ {heading} 90.0
freeze_object_position 127@ {state} True
128@ = create_object_no_offset #D9_RAMP {x} 1595.03 {y} -784.98 {z} 348.758
set_object_heading 128@ {heading} 90.0
freeze_object_position 128@ {state} True
freeze_char_position $scplayer {state} False
set_char_coordinates $scplayer {x} 1594.3929 {y} -784.7317 {z} 349.0
set_char_heading $scplayer {heading} 36.9506
131@ = create_char PedType.Mission1 {modelId} 117 {x} 1595.303 {y} -783.4741 {z} 349.0
set_char_heading 131@ {heading} 205.0
set_char_area_visible 131@ {areaId} 0
give_weapon_to_char 131@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 131@ {weaponType} WeaponType.M4
set_char_never_targetted 131@ {state} True
set_char_decision_maker 131@ {handleOrTemplate} 34@
set_char_signal_after_kill 131@ {state} False
152@ = create_object #PARA_PACK {x} 1595.303 {y} -783.4741 {z} 349.0
task_pick_up_object 131@ {object} 152@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 131@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
139@ = 0
135@ = 0
132@ = create_char PedType.Mission1 {modelId} 118 {x} 1596.97 {y} -786.8875 {z} 349.0
set_char_heading 132@ {heading} 2.0
set_char_area_visible 132@ {areaId} 0
give_weapon_to_char 132@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 132@ {weaponType} WeaponType.M4
set_char_never_targetted 132@ {state} True
set_char_decision_maker 132@ {handleOrTemplate} 34@
set_char_signal_after_kill 132@ {state} False
153@ = create_object #PARA_PACK {x} 1596.97 {y} -786.8875 {z} 349.0
task_pick_up_object 132@ {object} 153@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 132@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
140@ = 1500
136@ = 0
133@ = create_char PedType.Mission1 {modelId} 118 {x} 1598.448 {y} -782.9297 {z} 349.0
set_char_heading 133@ {heading} 175.0
set_char_area_visible 133@ {areaId} 0
give_weapon_to_char 133@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 133@ {weaponType} WeaponType.M4
set_char_never_targetted 133@ {state} True
set_char_decision_maker 133@ {handleOrTemplate} 34@
set_char_signal_after_kill 133@ {state} False
154@ = create_object #PARA_PACK {x} 1598.448 {y} -782.9297 {z} 349.0
task_pick_up_object 133@ {object} 154@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 133@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
141@ = 3000
137@ = 0
134@ = create_char PedType.Mission1 {modelId} 117 {x} 1599.0341 {y} -786.9792 {z} 349.0
set_char_heading 134@ {heading} 347.0
set_char_area_visible 134@ {areaId} 0
give_weapon_to_char 134@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 134@ {weaponType} WeaponType.M4
set_char_never_targetted 134@ {state} True
set_char_decision_maker 134@ {handleOrTemplate} 34@
set_char_signal_after_kill 134@ {state} False
155@ = create_object #PARA_PACK {x} 1599.0341 {y} -786.9792 {z} 349.0
task_pick_up_object 134@ {object} 155@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 134@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
142@ = 5000
138@ = 0
if 
  49@ == 0
goto_if_false @MANSIO1_2700
goto @MANSIO1_5657

:MANSIO1_2700
49@ = 0
load_scene 1597.615 {y} -784.5765 {z} 350.0
set_fixed_camera_position 1598.951 {y} -785.327 {z} 350.1654 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1598.351 {y} -784.5302 {z} 350.089 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MANSIO1_2782
if 
  500 > TIMERA
goto_if_false @MANSIO1_2812
wait 0
goto @MANSIO1_2782

:MANSIO1_2812
camera_set_shake_simulation_simple 1 {timeInMs} 50000.0 {intensity} 3.0
109@ = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @MANSIO1_2905
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
110@ = 1
request_model 331

:MANSIO1_2871
if 
  not has_model_loaded 331
goto_if_false @MANSIO1_2898
wait 0
goto @MANSIO1_2871

:MANSIO1_2898
goto @MANSIO1_2912

:MANSIO1_2905
110@ = 0

:MANSIO1_2912
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 500 {direction} Fade.In

:MANSIO1_2926
if 
  get_fading_status 
goto_if_false @MANSIO1_2950
wait 0
goto @MANSIO1_2926

:MANSIO1_2950
skip_cutscene_start_internal @MANSIO1_4063
45@ = open_sequence_task 
task_stand_still -1 {time} 1500
task_go_straight_to_coord -1 {x} 1598.05 {y} -784.5205 {z} 349.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 257.9061
task_stay_in_same_place -1 {state} True
task_use_mobile_phone -1 {start} True
close_sequence_task 45@
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
set_lvar_text_label 76@s = 'MKND02A'
set_lvar_int_to_constant 55@ = 19406
set_lvar_int_to_var_int 65@ = $scplayer
set_lvar_text_label 78@s = 'MKND02B'
set_lvar_int_to_constant 56@ = 19413
66@ = -1
set_lvar_text_label 80@s = 'MKND02C'
set_lvar_int_to_constant 57@ = 19407
set_lvar_int_to_var_int 67@ = $scplayer
set_lvar_text_label 82@s = 'MKND02D'
set_lvar_int_to_constant 58@ = 19414
68@ = -1
set_lvar_text_label 84@s = 'MKND02E'
set_lvar_int_to_constant 59@ = 19415
69@ = -1
set_lvar_text_label 86@s = 'MKND02F'
set_lvar_int_to_constant 60@ = 19416
70@ = -1
set_lvar_text_label 88@s = 'MKND02G'
set_lvar_int_to_constant 61@ = 19408
set_lvar_int_to_var_int 71@ = $scplayer
set_lvar_text_label 90@s = 'MKND02H'
set_lvar_int_to_constant 62@ = 19417
72@ = -1
set_lvar_text_label 92@s = 'MKND02J'
set_lvar_int_to_constant 63@ = 19418
73@ = -1
set_lvar_text_label 94@s = 'MKND02K'
set_lvar_int_to_constant 64@ = 19409
set_lvar_int_to_var_int 74@ = $scplayer
75@ = 0

:MANSIO1_3332
if 
  46@ == 0
goto_if_false @MANSIO1_3369
wait 0
46@ = get_sequence_progress $scplayer
goto @MANSIO1_3332

:MANSIO1_3369
set_var_int_to_constant $load_sample = 23803
set_var_text_label s$load_text = 'MOBRING'
start_new_script @A_ALAP 0 99 

:MANSIO1_3403
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3436
wait 0
goto @MANSIO1_3403

:MANSIO1_3436
$SLOT_status($preload_slot,2i) = -4
46@ = get_sequence_progress $scplayer

:MANSIO1_3455
if 
  46@ <> 4
goto_if_false @MANSIO1_3492
wait 0
46@ = get_sequence_progress $scplayer
goto @MANSIO1_3455

:MANSIO1_3492
wait 2250

:MANSIO1_3497
if 
  10 > 75@
goto_if_false @MANSIO1_3657
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
if 
  65@(75@,10i) <> -1
goto_if_false @MANSIO1_3587
start_new_script @A_ALAP 2 100 65@(75@,10i) 
goto @MANSIO1_3599

:MANSIO1_3587
start_new_script @A_ALAP 0 100 

:MANSIO1_3599
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3632
wait 0
goto @MANSIO1_3599

:MANSIO1_3632
$SLOT_status($preload_slot,2i) = -4
75@ += 1
goto @MANSIO1_3497

:MANSIO1_3657
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3701
wait 0
goto @MANSIO1_3657

:MANSIO1_3701
task_use_mobile_phone $scplayer {start} False
wait 2000
if 
  not is_char_dead 133@
goto_if_false @MANSIO1_3745
task_turn_char_to_face_char $scplayer {target} 133@
task_turn_char_to_face_char 133@ {target} $scplayer

:MANSIO1_3745
set_var_int_to_constant $load_sample = 9408
set_var_text_label s$load_text = 'MAN1_CA'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3782
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3815
wait 0
goto @MANSIO1_3782

:MANSIO1_3815
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 9413
set_var_text_label s$load_text = 'MAN1_CB'
start_new_script @A_ALAP 2 100 133@ 

:MANSIO1_3863
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3896
wait 0
goto @MANSIO1_3863

:MANSIO1_3896
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 9409
set_var_text_label s$load_text = 'MAN1_CC'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3944
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3988
wait 0
goto @MANSIO1_3944

:MANSIO1_3988
TIMERA = 0

:MANSIO1_3995
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4025
wait 0
goto @MANSIO1_3995

:MANSIO1_4025
do_fade 500 {direction} Fade.Out

:MANSIO1_4032
if 
  get_fading_status 
goto_if_false @MANSIO1_4056
wait 0
goto @MANSIO1_4032

:MANSIO1_4056
49@ = 1

:MANSIO1_4063
skip_cutscene_end 
clear_prints 
do_fade 0 {direction} Fade.Out

:MANSIO1_4073
if 
  get_fading_status 
goto_if_false @MANSIO1_4097
wait 0
goto @MANSIO1_4073

:MANSIO1_4097
if 
  110@ == 1
goto_if_false @MANSIO1_4129
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
mark_model_as_no_longer_needed 331

:MANSIO1_4129
set_current_char_weapon $scplayer {weaponType} 109@
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
mark_model_as_no_longer_needed 330
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4174
$SLOT_status[0] = -2

:MANSIO1_4174
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4199
$SLOT_status[1] = -2

:MANSIO1_4199
set_char_coordinates $scplayer {x} 1096.562 {y} -825.7372 {z} 85.9453
if 
  49@ == 0
goto_if_false @MANSIO1_4244
goto @MANSIO1_5657

:MANSIO1_4244
49@ = 0
$play_open_timer = 1347.407
$ai_target_x = -811.7421
$ai_target_y = 96.9707
set_fixed_camera_position 1385.568 {y} -810.5753 {z} 78.1164 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1385.498 {y} -809.579 {z} 78.0669 {switchStyle} SwitchType.JumpCut
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
load_scene 1385.568 {y} -810.5753 {z} 78.1164
TIMERA = 0

:MANSIO1_4398
if 
  800 > TIMERA
goto_if_false @MANSIO1_4428
wait 0
goto @MANSIO1_4398

:MANSIO1_4428
do_fade 500 {direction} Fade.In
99@ = create_char PedType.Mission1 {modelId} 117 {x} 1485.536 {y} -818.0389 {z} 130.0
set_char_heading 99@ {heading} 90.0
set_char_area_visible 99@ {areaId} 0
start_new_streamed_script 1 {args} -1 -25.0 10.0 -3.0 -1.0 5.0 6.5 1 99@ 
stream_script 1
skip_cutscene_start_internal @MANSIO1_4864
TIMERA = 0

:MANSIO1_4536
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4572
wait 0
set_time_of_day 3 {minutes} 0
goto @MANSIO1_4536

:MANSIO1_4572
TIMERA = 0
111@ = 0
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1385.568 {fromY} -810.5753 {fromZ} 78.1164 {toX} 1368.495 {toY} -855.6013 {toZ} 75.1238 {time} 12000 {ease} True
camera_set_vector_track 1385.498 {fromY} -809.579 {fromZ} 78.0669 {toX} 1369.012 {toY} -854.7825 {toZ} 75.3725 {time} 12000 {ease} True

:MANSIO1_4670
if 
  14000 > TIMERA
goto_if_false @MANSIO1_4826
wait 0
if and
  111@ == 0
  TIMERA > 3000
goto_if_false @MANSIO1_4813
100@ = create_char PedType.Mission1 {modelId} 118 {x} 1485.536 {y} -818.0389 {z} 130.0
set_char_heading 100@ {heading} 90.0
set_char_area_visible 100@ {areaId} 0
start_new_streamed_script 1 {args} -1 -25.0 10.0 -3.0 -1.0 5.0 6.5 1 100@ 
stream_script 1
111@ = 1

:MANSIO1_4813
set_time_of_day 3 {minutes} 0
goto @MANSIO1_4670

:MANSIO1_4826
do_fade 1000 {direction} Fade.Out

:MANSIO1_4833
if 
  get_fading_status 
goto_if_false @MANSIO1_4857
wait 0
goto @MANSIO1_4833

:MANSIO1_4857
49@ = 1

:MANSIO1_4864
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSIO1_4872
if 
  get_fading_status 
goto_if_false @MANSIO1_4896
wait 0
goto @MANSIO1_4872

:MANSIO1_4896
camera_reset_new_scriptables 
restore_camera_jumpcut 
if 
  49@ == 0
goto_if_false @MANSIO1_4925
goto @MANSIO1_5657

:MANSIO1_4925
49@ = 0
115@ = 35.0
116@ = 20.0
114@ = 100.2
$play_open_timer = 1291.266
$ai_target_x = -788.1172
$ai_target_y = 96.7736
117@ = 1291.153
118@ = -788.1339
119@ = 95.0
load_scene_in_direction 1291.266 {y} -788.1172 {z} 96.7736 {heading} 122.0
request_model #OPMANS01_CUNTE
request_model #CEHOLLYHIL06
request_model #SUNSET22_LAWN

:MANSIO1_5059
if or
  not has_model_loaded #OPMANS01_CUNTE
  not has_model_loaded #CEHOLLYHIL06
  not has_model_loaded #SUNSET22_LAWN
goto_if_false @MANSIO1_5096
wait 0
goto @MANSIO1_5059

:MANSIO1_5096
167@ = 2
TIMERA = 0

:MANSIO1_5110
if 
  500 > TIMERA
goto_if_false @MANSIO1_5147
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_5110

:MANSIO1_5147
124@ = create_fx_system "SMOKE_FLARE" {x} 1291.454 {y} -775.3071 {z} 95.5 {ignoreBoundingChecks} True
125@ = create_fx_system "SMOKE_FLARE" {x} 1303.2111 {y} -788.2426 {z} 95.5 {ignoreBoundingChecks} True
126@ = create_fx_system "SMOKE_FLARE" {x} 1291.1591 {y} -800.4006 {z} 95.5 {ignoreBoundingChecks} True
101@ = create_char PedType.Mission1 {modelId} 118 {x} 1323.17 {y} -783.7548 {z} 117.0
set_char_heading 101@ {heading} 90.0
set_char_area_visible 101@ {areaId} 0
give_weapon_to_char 101@ {weaponType} WeaponType.M4 {ammo} 30000
start_new_streamed_script 1 {args} -1 -2.0 1.0 -3.0 -1.0 1.5 3.2 1 101@ 
stream_script 1
set_char_velocity 101@ {x} 0.0 {y} 0.0 {z} 2.0
set_char_decision_maker 101@ {handleOrTemplate} 34@
102@ = create_char PedType.Mission1 {modelId} 117 {x} 1323.442 {y} -798.6427 {z} 120.0
set_char_heading 102@ {heading} 90.0
set_char_area_visible 102@ {areaId} 0
give_weapon_to_char 102@ {weaponType} WeaponType.M4 {ammo} 30000
start_new_streamed_script 1 {args} -1 -2.0 1.0 -3.0 -1.0 1.0 2.5 1 102@ 
stream_script 1
set_char_velocity 102@ {x} 0.0 {y} 0.0 {z} 2.0
set_char_decision_maker 102@ {handleOrTemplate} 34@
do_fade 1000 {direction} Fade.In

:MANSIO1_5509
if 
  get_fading_status 
goto_if_false @MANSIO1_5547
wait 0
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5509

:MANSIO1_5547
skip_cutscene_start_internal @MANSIO1_5655
TIMERA = 0

:MANSIO1_5561
if 
  8 > 107@
goto_if_false @MANSIO1_5624
wait 0
gosub @MANSIO1_9333
gosub @MANSIO1_10132
set_time_of_day 3 {minutes} 0
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5561

:MANSIO1_5624
do_fade 500 {direction} Fade.Out

:MANSIO1_5631
if 
  get_fading_status 
goto_if_false @MANSIO1_5655
wait 0
goto @MANSIO1_5631

:MANSIO1_5655
skip_cutscene_end 

:MANSIO1_5657
do_fade 0 {direction} Fade.Out

:MANSIO1_5663
if 
  get_fading_status 
goto_if_false @MANSIO1_5687
wait 0
goto @MANSIO1_5663

:MANSIO1_5687
mark_model_as_no_longer_needed #OPMANS01_CUNTE
mark_model_as_no_longer_needed #CEHOLLYHIL06
camera_reset_new_scriptables 
restore_camera_jumpcut 
play_fx_system 124@
play_fx_system 125@
play_fx_system 126@
$play_open_timer = 1291.266
$ai_target_x = -788.1172
$ai_target_y = 96.7736
request_model 371
request_model #CARDBOARDBOX2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1818

:MANSIO1_5763
if or
  not has_model_loaded 371
  not has_model_loaded #CARDBOARDBOX2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MANSIO1_5813
wait 0
167@ = 4
gosub @MANSIO1_10537
goto @MANSIO1_5763

:MANSIO1_5813
set_lvar_text_label 76@s = 'MAN1_DA'
set_lvar_int_to_constant 55@ = 9414
set_lvar_int_to_lvar_int 65@ = 131@
set_lvar_text_label 78@s = 'MAN1_DB'
set_lvar_int_to_constant 56@ = 9415
set_lvar_int_to_lvar_int 66@ = 132@
set_lvar_text_label 80@s = 'MAN1_DC'
set_lvar_int_to_constant 57@ = 9416
set_lvar_int_to_lvar_int 67@ = 131@
set_lvar_text_label 82@s = 'MAN1_DD'
set_lvar_int_to_constant 58@ = 9417
set_lvar_int_to_lvar_int 68@ = 132@
set_lvar_text_label 84@s = 'MAN1_DE'
set_lvar_int_to_constant 59@ = 9418
set_lvar_int_to_lvar_int 69@ = 131@
set_lvar_text_label 86@s = 'MAN1_DF'
set_lvar_int_to_constant 60@ = 9419
set_lvar_int_to_lvar_int 70@ = 132@
set_lvar_text_label 88@s = 'MAN1_DG'
set_lvar_int_to_constant 61@ = 9420
set_lvar_int_to_lvar_int 71@ = 132@
set_lvar_text_label 90@s = 'MAN1_DH'
set_lvar_int_to_constant 62@ = 9410
set_lvar_int_to_lvar_int 72@ = 133@
set_lvar_text_label 92@s = 'MAN1_DJ'
set_lvar_int_to_constant 63@ = 9411
set_lvar_int_to_lvar_int 73@ = 134@
129@ = create_object_no_offset #CARDBOARDBOX2 {x} 1601.759 {y} -785.1198 {z} 349.95
set_object_heading 129@ {heading} 90.0
freeze_object_position 129@ {state} True
set_object_visible 129@ {state} False
set_object_collision 129@ {state} False
restore_camera_jumpcut 
attach_char_to_object $scplayer {handle} 129@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 40.0 {weaponType} WeaponType.Unarmed
157@ = 0
load_scene 1601.759 {y} -785.1198 {z} 351.0
mark_char_as_no_longer_needed 159@
set_player_duck_button $player1 {enabled} False
set_player_jump_button $player1 {enabled} False
set_player_fire_button $player1 {enabled} False
switch_widescreen False
display_radar False
display_hud False
222@ = 2000
221@ = 0
220@ = 0.0
TIMERA = 0

:MANSIO1_6265
if 
  500 > TIMERA
goto_if_false @MANSIO1_6302
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6265

:MANSIO1_6302
force_weather_now WeatherType.ExtraSunnyLa
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:MANSIO1_6320
if 
  get_fading_status 
goto_if_false @MANSIO1_6351
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6320

:MANSIO1_6351
TIMERA = 0
156@ = 0
75@ = 0

:MANSIO1_6372
if 
  5 > 75@
goto_if_false @MANSIO1_6627
wait 0
gosub @MANSIO1_10537
if 
  TIMERA > 1000
goto_if_false @MANSIO1_6427
gosub @MANSIO1_18875

:MANSIO1_6427
switch_start 156@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_6620 {caseNum1} 0 {caseLabel1} @MANSIO1_6490 {caseNum2} 1 {caseLabel2} @MANSIO1_6516 {caseNum3} 2 {caseLabel3} @MANSIO1_6566 {caseNum4} -1 {caseLabel4} @MANSIO1_6620 {caseNum5} -1 {caseLabel5} @MANSIO1_6620 {caseNum6} -1 {caseLabel6} @MANSIO1_6620 {caseNum7} -1 {caseLabel7} @MANSIO1_6620

:MANSIO1_6490
if 
  TIMERA <= 800
goto_if_false @MANSIO1_6516
goto @MANSIO1_6620

:MANSIO1_6516
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
start_new_script @A_ALAP 2 100 65@(75@,10i) 
156@ = 2

:MANSIO1_6566
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_6595
goto @MANSIO1_6620

:MANSIO1_6595
$SLOT_status($preload_slot,2i) = -4
75@ += 1
156@ = 1

:MANSIO1_6620
goto @MANSIO1_6372

:MANSIO1_6627
TIMERA = 0
41@ = get_game_timer 

:MANSIO1_6639
wait 0
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6687
if 
  4 > 43@
goto_if_false @MANSIO1_6731
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
43@ += 1
goto @MANSIO1_6687

:MANSIO1_6731
gosub @MANSIO1_7365
gosub @MANSIO1_10822
gosub @MANSIO1_10537
if 
  4 > 157@
goto_if_false @MANSIO1_6783
set_time_of_day 3 {minutes} 0
goto @MANSIO1_6847

:MANSIO1_6783
157@ = 0
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
51@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 1292.7 {y} -769.0 {z} 95.8
goto @MANSIO1_6854

:MANSIO1_6847
goto @MANSIO1_6639

:MANSIO1_6854
168@ = 4
set_lvar_int_to_constant 182@ = 108
set_lvar_int_to_constant 183@ = 109
set_lvar_int_to_constant 184@ = 108
set_lvar_int_to_constant 185@ = 109

:MANSIO1_6889
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSIO1_6915
goto @MANSIO1_38560

:MANSIO1_6915
if 
  52@ == 1
goto_if_false @MANSIO1_6940
goto @MANSIO1_38488

:MANSIO1_6940
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6984
if 
  3 > 43@
goto_if_false @MANSIO1_7040
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
add_int_lvar_to_int_lvar 164@(43@,3i) += 42@
43@ += 1
goto @MANSIO1_6984

:MANSIO1_7040
add_int_lvar_to_int_lvar 163@ += 42@
43@ = 0

:MANSIO1_7055
if 
  6 > 43@
goto_if_false @MANSIO1_7099
add_int_lvar_to_int_lvar 188@(43@,6i) += 42@
43@ += 1
goto @MANSIO1_7055

:MANSIO1_7099
gosub @MANSIO1_7776
gosub @MANSIO1_10822
if 
  157@ > 5
goto_if_false @MANSIO1_7138
gosub @MANSIO1_12648

:MANSIO1_7138
if 
  2 > 206@
goto_if_false @MANSIO1_7170
gosub @MANSIO1_16769
goto @MANSIO1_7177

:MANSIO1_7170
gosub @MANSIO1_14197

:MANSIO1_7177
211@ = 0
48@ = get_area_visible 
if 
  48@ <> 0
goto_if_false @MANSIO1_7358
if 
  locate_char_on_foot_2d $scplayer {x} 1257.995 {y} -785.4104 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO1_7358
48@ = 0

:MANSIO1_7252
if 
  48@ == 0
goto_if_false @MANSIO1_7289
48@ = get_char_area_visible $scplayer
wait 0
goto @MANSIO1_7252

:MANSIO1_7289
do_fade 0 {direction} Fade.Out

:MANSIO1_7295
if 
  get_fading_status 
goto_if_false @MANSIO1_7319
wait 0
goto @MANSIO1_7295

:MANSIO1_7319
clear_area_of_chars 1288.0 {leftBottomY} -772.0 {leftBottomZ} 1080.0 {rightTopX} 1260.5 {rightTopY} -787.5 {rightTopZ} 1100.0
goto @MANSIO1_19435

:MANSIO1_7358
goto @MANSIO1_6889

:MANSIO1_7365
switch_start 157@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_7774 {caseNum1} 0 {caseLabel1} @MANSIO1_7428 {caseNum2} 1 {caseLabel2} @MANSIO1_7538 {caseNum3} 2 {caseLabel3} @MANSIO1_7556 {caseNum4} 3 {caseLabel4} @MANSIO1_7633 {caseNum5} -1 {caseLabel5} @MANSIO1_7774 {caseNum6} -1 {caseLabel6} @MANSIO1_7774 {caseNum7} -1 {caseLabel7} @MANSIO1_7774

:MANSIO1_7428
if 
  TIMERA > 8300
goto_if_false @MANSIO1_7531
detach_char_from_car $scplayer
set_player_control $player1 {state} False
task_go_to_coord_any_means $scplayer {x} 1584.292 {y} -784.9141 {z} 347.0 {speed} MoveState.Sprint {vehicle} -1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @MANSIO1_7510
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1

:MANSIO1_7510
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
221@ = 2
157@ += 1

:MANSIO1_7531
goto @MANSIO1_7774

:MANSIO1_7538
restore_camera_jumpcut 
set_camera_behind_player 
157@ += 1
goto @MANSIO1_7774

:MANSIO1_7556
if 
  locate_char_on_foot_2d $scplayer {x} 1584.292 {y} -784.9141 {xRadius} 2.75 {yRadius} 2.75 {drawSphere} False
goto_if_false @MANSIO1_7626
task_jump $scplayer {state} True
158@ = 0
221@ = 3
shake_cam 0
157@ += 1

:MANSIO1_7626
goto @MANSIO1_7774

:MANSIO1_7633
if 
  158@ > 700
goto_if_false @MANSIO1_7767
158@ = 0
display_zone_names True
delete_object 127@
delete_object 128@
delete_object 129@
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
set_player_control $player1 {state} True
set_player_duck_button $player1 {enabled} True
set_player_jump_button $player1 {enabled} True
set_player_fire_button $player1 {enabled} True
display_radar True
display_hud True
print_now 'MAN1_03' {time} 8000 {flag} 1
47@ = add_blip_for_coord 1290.491 {y} -788.3314 {z} 95.4531
157@ += 1

:MANSIO1_7767
goto @MANSIO1_7774

:MANSIO1_7774
return 

:MANSIO1_7776
switch_start 157@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_9331 {caseNum1} 0 {caseLabel1} @MANSIO1_7904 {caseNum2} 1 {caseLabel2} @MANSIO1_7968 {caseNum3} 2 {caseLabel3} @MANSIO1_7998 {caseNum4} 3 {caseLabel4} @MANSIO1_8216 {caseNum5} 4 {caseLabel5} @MANSIO1_8262 {caseNum6} 5 {caseLabel6} @MANSIO1_8315 {caseNum7} 6 {caseLabel7} @MANSIO1_8964
switch_continued 7 {caseLabel1} @MANSIO1_9081 {caseNum2} 8 {caseLabel2} @MANSIO1_9150 {caseNum3} 9 {caseLabel3} @MANSIO1_9211 {caseNum4} 10 {caseLabel4} @MANSIO1_9271 {caseNum5} -1 {caseLabel5} @MANSIO1_9331 {caseNum6} -1 {caseLabel6} @MANSIO1_9331 {caseNum7} -1 {caseLabel7} @MANSIO1_9331 {caseNum8} -1 {caseLabel8} @MANSIO1_9331 {caseNum9} -1 {caseLabel9} @MANSIO1_9331

:MANSIO1_7904
if 
  $player_landed == 2
goto_if_false @MANSIO1_7936
157@ = 2
goto @MANSIO1_7961

:MANSIO1_7936
if 
  $player_landed == 3
goto_if_false @MANSIO1_7961
157@ += 1

:MANSIO1_7961
goto @MANSIO1_9331

:MANSIO1_7968
if 
  not is_char_in_air $scplayer
goto_if_false @MANSIO1_7991
157@ += 1

:MANSIO1_7991
goto @MANSIO1_9331

:MANSIO1_7998
208@ = 0
gosub @MANSIO1_17063
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO1_8131
if 
  210@ <> -1
goto_if_false @MANSIO1_8108
if 
  6 > 210@
goto_if_false @MANSIO1_8078
157@ = 5
goto @MANSIO1_8101

:MANSIO1_8078
print_now 'MAN1_04' {time} 8000 {flag} 1
157@ = 4

:MANSIO1_8101
goto @MANSIO1_8131

:MANSIO1_8108
print_now 'MAN1_04' {time} 8000 {flag} 1
157@ = 3

:MANSIO1_8131
43@ = 0

:MANSIO1_8138
if 
  4 > 43@
goto_if_false @MANSIO1_8209
if 
  not is_char_dead 170@(43@,6i)
goto_if_false @MANSIO1_8195
set_char_proofs 170@(43@,6i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_8195
43@ += 1
goto @MANSIO1_8138

:MANSIO1_8209
goto @MANSIO1_9331

:MANSIO1_8216
208@ = 0
gosub @MANSIO1_17063
if 
  210@ <> -1
goto_if_false @MANSIO1_8255
157@ += 1

:MANSIO1_8255
goto @MANSIO1_9331

:MANSIO1_8262
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  6 > 210@
goto_if_false @MANSIO1_8308
157@ += 1

:MANSIO1_8308
goto @MANSIO1_9331

:MANSIO1_8315
remove_blip 47@
if 
  168@ == 0
goto_if_false @MANSIO1_8361
print_now 'MAN1_06' {time} 8000 {flag} 1
goto @MANSIO1_8377

:MANSIO1_8361
print_now 'MAN1_05' {time} 8000 {flag} 1

:MANSIO1_8377
clear_wanted_level $player1
set_max_wanted_level 0
143@ = create_char PedType.Mission1 {modelId} 117 {x} 1000.0 {y} -785.0 {z} 200.0
set_char_heading 143@ {heading} 270.0
set_char_area_visible 143@ {areaId} 0
146@ = add_blip_for_char 143@
change_blip_display 146@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 146@ {state} True
give_weapon_to_char 143@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 143@ {weaponType} WeaponType.M4
set_char_never_targetted 143@ {state} True
set_char_decision_maker 143@ {handleOrTemplate} 34@
149@ = 0
164@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 143@ 
stream_script 1
144@ = create_char PedType.Mission1 {modelId} 118 {x} 1000.0 {y} -770.0 {z} 200.0
set_char_heading 144@ {heading} 270.0
set_char_area_visible 144@ {areaId} 0
147@ = add_blip_for_char 144@
change_blip_display 147@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 147@ {state} True
give_weapon_to_char 144@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 144@ {weaponType} WeaponType.M4
set_char_never_targetted 144@ {state} True
set_char_decision_maker 144@ {handleOrTemplate} 34@
150@ = 0
165@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 144@ 
stream_script 1
145@ = create_char PedType.Mission1 {modelId} 117 {x} 1000.0 {y} -800.0 {z} 200.0
set_char_heading 145@ {heading} 270.0
set_char_area_visible 145@ {areaId} 0
148@ = add_blip_for_char 145@
change_blip_display 148@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 148@ {state} True
give_weapon_to_char 145@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 145@ {weaponType} WeaponType.M4
set_char_never_targetted 145@ {state} True
set_char_decision_maker 145@ {handleOrTemplate} 34@
151@ = 0
166@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 145@ 
stream_script 1
169@ = 0
if 
  not is_char_dead 131@
goto_if_false @MANSIO1_8881
set_char_health 131@ {health} 20

:MANSIO1_8881
if 
  not is_char_dead 132@
goto_if_false @MANSIO1_8904
set_char_health 132@ {health} 40

:MANSIO1_8904
if 
  not is_char_dead 133@
goto_if_false @MANSIO1_8927
set_char_health 133@ {health} 30

:MANSIO1_8927
if 
  not is_char_dead 134@
goto_if_false @MANSIO1_8950
set_char_health 134@ {health} 25

:MANSIO1_8950
157@ += 1
goto @MANSIO1_9331

:MANSIO1_8964
if 
  169@ == 3
goto_if_false @MANSIO1_9074
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9051
print_now 'MAN1_09' {time} 8000 {flag} 1
157@ = 8
goto @MANSIO1_9074

:MANSIO1_9051
print_now 'MAN1_10' {time} 8000 {flag} 1
157@ = 7

:MANSIO1_9074
goto @MANSIO1_9331

:MANSIO1_9081
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9143
print_now 'MAN1_09' {time} 8000 {flag} 1
157@ = 8

:MANSIO1_9143
goto @MANSIO1_9331

:MANSIO1_9150
gosub @MANSIO1_13336
206@ = 3
47@ = add_blip_for_coord 1257.995 {y} -785.4104 {z} 91.0302
switch_entry_exit 'MADDOGS' {state} True
157@ += 1
goto @MANSIO1_9331

:MANSIO1_9211
208@ = 0
gosub @MANSIO1_17063
if or
  210@ == -1
  210@ > 10
goto_if_false @MANSIO1_9264
gosub @MANSIO1_13440
157@ += 1

:MANSIO1_9264
goto @MANSIO1_9331

:MANSIO1_9271
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  10 >= 210@
goto_if_false @MANSIO1_9324
gosub @MANSIO1_13336
157@ -= 1

:MANSIO1_9324
goto @MANSIO1_9331

:MANSIO1_9331
return 

:MANSIO1_9333
if 
  not is_char_dead 101@
goto_if_false @MANSIO1_10118
switch_start 107@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10111 {caseNum1} 0 {caseLabel1} @MANSIO1_9477 {caseNum2} 1 {caseLabel2} @MANSIO1_9574 {caseNum3} 2 {caseLabel3} @MANSIO1_9713 {caseNum4} 3 {caseLabel4} @MANSIO1_9765 {caseNum5} 4 {caseLabel5} @MANSIO1_9887 {caseNum6} 5 {caseLabel6} @MANSIO1_9929 {caseNum7} 6 {caseLabel7} @MANSIO1_10025
switch_continued 7 {caseLabel1} @MANSIO1_10078 {caseNum2} -1 {caseLabel2} @MANSIO1_10111 {caseNum3} -1 {caseLabel3} @MANSIO1_10111 {caseNum4} -1 {caseLabel4} @MANSIO1_10111 {caseNum5} -1 {caseLabel5} @MANSIO1_10111 {caseNum6} -1 {caseLabel6} @MANSIO1_10111 {caseNum7} -1 {caseLabel7} @MANSIO1_10111 {caseNum8} -1 {caseLabel8} @MANSIO1_10111 {caseNum9} -1 {caseLabel9} @MANSIO1_10111

:MANSIO1_9477
if 
  is_char_playing_anim 101@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_9525
105@ = 1
107@ += 1
goto @MANSIO1_9567

:MANSIO1_9525
$x, $y, $z = get_char_coordinates 101@
if 
  99.0 > $z
goto_if_false @MANSIO1_9567
218@ = 1

:MANSIO1_9567
goto @MANSIO1_10111

:MANSIO1_9574
if 
  not is_char_playing_anim 101@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_9706
45@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1291.519 {y} -776.0716 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1280.995 {y} -780.3347 {z} 95.461 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
close_sequence_task 45@
perform_sequence_task 101@ {sequence} 45@
clear_sequence_task 45@
107@ += 1

:MANSIO1_9706
goto @MANSIO1_10111

:MANSIO1_9713
46@ = get_sequence_progress 101@
if 
  46@ == 4
goto_if_false @MANSIO1_9758
play_fx_system 124@
TIMERA = 0
107@ += 1

:MANSIO1_9758
goto @MANSIO1_10111

:MANSIO1_9765
if 
  TIMERA > 1500
goto_if_false @MANSIO1_9880
107@ += 1
159@ = create_char PedType.Mission2 {modelId} 108 {x} 1281.413 {y} -785.8877 {z} 91.0302
set_char_heading 159@ {heading} 90.0
set_char_area_visible 159@ {areaId} 0
task_go_straight_to_coord 159@ {x} 1268.337 {y} -785.9549 {z} 94.9688 {speed} MoveState.Walk {time} -1
set_char_decision_maker 159@ {handleOrTemplate} 34@
give_weapon_to_char 159@ {weaponType} WeaponType.Mp5 {ammo} 1
set_current_char_weapon 159@ {weaponType} WeaponType.Mp5

:MANSIO1_9880
goto @MANSIO1_10111

:MANSIO1_9887
if 
  190.0 > 115@
goto_if_false @MANSIO1_9915
goto @MANSIO1_10111

:MANSIO1_9915
TIMERA = 0
107@ += 1

:MANSIO1_9929
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10018
if 
  not is_char_dead 159@
goto_if_false @MANSIO1_9978
$x, $y, $z = get_char_coordinates 159@

:MANSIO1_9978
$z += 1.0
task_shoot_at_coord 101@ {x} $x {y} $y {z} $z {time} 100
TIMERA = 0
107@ += 1

:MANSIO1_10018
goto @MANSIO1_10111

:MANSIO1_10025
if 
  TIMERA > 50
goto_if_false @MANSIO1_10071
if 
  not is_char_dead 159@
goto_if_false @MANSIO1_10064
explode_char_head 159@

:MANSIO1_10064
107@ += 1

:MANSIO1_10071
goto @MANSIO1_10111

:MANSIO1_10078
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10104
107@ += 1

:MANSIO1_10104
goto @MANSIO1_10111

:MANSIO1_10111
goto @MANSIO1_10130

:MANSIO1_10118
mark_char_as_no_longer_needed 101@
107@ = -1

:MANSIO1_10130
return 

:MANSIO1_10132
if 
  not is_char_dead 102@
goto_if_false @MANSIO1_10523
switch_start 108@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10516 {caseNum1} 0 {caseLabel1} @MANSIO1_10211 {caseNum2} 1 {caseLabel2} @MANSIO1_10259 {caseNum3} 2 {caseLabel3} @MANSIO1_10426 {caseNum4} 3 {caseLabel4} @MANSIO1_10471 {caseNum5} -1 {caseLabel5} @MANSIO1_10516 {caseNum6} -1 {caseLabel6} @MANSIO1_10516 {caseNum7} -1 {caseLabel7} @MANSIO1_10516

:MANSIO1_10211
if 
  is_char_playing_anim 102@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10252
106@ = 1
108@ += 1

:MANSIO1_10252
goto @MANSIO1_10516

:MANSIO1_10259
if 
  not is_char_playing_anim 102@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10419
45@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1291.213 {y} -799.4603 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1302.196 {y} -788.2992 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1292.3831 {y} -787.4926 {z} 95.4476 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 102@ {sequence} 45@
clear_sequence_task 45@
108@ += 1

:MANSIO1_10419
goto @MANSIO1_10516

:MANSIO1_10426
46@ = get_sequence_progress 102@
if 
  46@ == 3
goto_if_false @MANSIO1_10464
play_fx_system 126@
108@ += 1

:MANSIO1_10464
goto @MANSIO1_10516

:MANSIO1_10471
46@ = get_sequence_progress 102@
if 
  46@ == 6
goto_if_false @MANSIO1_10509
play_fx_system 125@
108@ += 1

:MANSIO1_10509
goto @MANSIO1_10516

:MANSIO1_10516
goto @MANSIO1_10535

:MANSIO1_10523
mark_char_as_no_longer_needed 102@
108@ = -1

:MANSIO1_10535
return 

:MANSIO1_10537
43@ = 0

:MANSIO1_10544
if 
  is_int_lvar_greater_than_int_lvar 167@ > 43@
goto_if_false @MANSIO1_10820
if 
  103@(43@,4i) <> -1
goto_if_false @MANSIO1_10806
if 
  not is_char_dead 99@(43@,4i)
goto_if_false @MANSIO1_10786
switch_start 103@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10779 {caseNum1} 0 {caseLabel1} @MANSIO1_10672 {caseNum2} 1 {caseLabel2} @MANSIO1_10721 {caseNum3} -1 {caseLabel3} @MANSIO1_10779 {caseNum4} -1 {caseLabel4} @MANSIO1_10779 {caseNum5} -1 {caseLabel5} @MANSIO1_10779 {caseNum6} -1 {caseLabel6} @MANSIO1_10779 {caseNum7} -1 {caseLabel7} @MANSIO1_10779

:MANSIO1_10672
if 
  is_char_playing_anim 99@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10714
103@(43@,4i) += 1

:MANSIO1_10714
goto @MANSIO1_10779

:MANSIO1_10721
if 
  not is_char_playing_anim 99@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10772
task_die 99@(43@,4i)
103@(43@,4i) += 1

:MANSIO1_10772
goto @MANSIO1_10779

:MANSIO1_10779
goto @MANSIO1_10806

:MANSIO1_10786
mark_char_as_no_longer_needed 99@(43@,4i)
103@(43@,4i) = -1

:MANSIO1_10806
43@ += 1
goto @MANSIO1_10544

:MANSIO1_10820
return 

:MANSIO1_10822
43@ = 0

:MANSIO1_10829
if 
  4 > 43@
goto_if_false @MANSIO1_11979
if 
  135@(43@,4i) <> -1
goto_if_false @MANSIO1_11965
if 
  not is_char_dead 131@(43@,4i)
goto_if_false @MANSIO1_11938
switch_start 135@(43@,4i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_11931 {caseNum1} 0 {caseLabel1} @MANSIO1_11021 {caseNum2} 1 {caseLabel2} @MANSIO1_11209 {caseNum3} 2 {caseLabel3} @MANSIO1_11223 {caseNum4} 3 {caseLabel4} @MANSIO1_11293 {caseNum5} 4 {caseLabel5} @MANSIO1_11320 {caseNum6} 5 {caseLabel6} @MANSIO1_11388 {caseNum7} 6 {caseLabel7} @MANSIO1_11437
switch_continued 7 {caseLabel1} @MANSIO1_11549 {caseNum2} 8 {caseLabel2} @MANSIO1_11648 {caseNum3} 9 {caseLabel3} @MANSIO1_11740 {caseNum4} 10 {caseLabel4} @MANSIO1_11839 {caseNum5} -1 {caseLabel5} @MANSIO1_11931 {caseNum6} -1 {caseLabel6} @MANSIO1_11931 {caseNum7} -1 {caseLabel7} @MANSIO1_11931 {caseNum8} -1 {caseLabel8} @MANSIO1_11931 {caseNum9} -1 {caseLabel9} @MANSIO1_11931

:MANSIO1_11021
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@(43@,4i)
goto_if_false @MANSIO1_11202
if or
  43@ == 0
  43@ == 2
goto_if_false @MANSIO1_11104
task_go_to_coord_any_means 131@(43@,4i) {x} 1585.293 {y} -786.5728 {z} 347.0 {speed} MoveState.Run {vehicle} -1
goto @MANSIO1_11191

:MANSIO1_11104
if 
  43@ == 1
goto_if_false @MANSIO1_11163
set_var_int_to_constant $load_sample = 9419
set_var_text_label s$load_text = 'MAN1_DF'
start_new_script @A_ALAP 2 100 65@(75@,10i) 

:MANSIO1_11163
task_go_to_coord_any_means 131@(43@,4i) {x} 1585.323 {y} -783.2303 {z} 347.0 {speed} MoveState.Run {vehicle} -1

:MANSIO1_11191
135@(43@,4i) += 1

:MANSIO1_11202
goto @MANSIO1_11931

:MANSIO1_11209
gosub @MANSIO1_11981
goto @MANSIO1_11931

:MANSIO1_11223
if 
  160@(43@,4i) > 1200
goto_if_false @MANSIO1_11286
drop_object 131@(43@,4i) {state} False
160@(43@,4i) = 0
gosub @MANSIO1_12371
135@(43@,4i) += 1

:MANSIO1_11286
goto @MANSIO1_11931

:MANSIO1_11293
delete_object 152@(43@,4i)
135@(43@,4i) += 1
goto @MANSIO1_11931

:MANSIO1_11320
if 
  160@(43@,4i) >= 40000
goto_if_false @MANSIO1_11381
if 
  43@ == 0
goto_if_false @MANSIO1_11370
gosub @MANSIO1_13530

:MANSIO1_11370
135@(43@,4i) += 1

:MANSIO1_11381
goto @MANSIO1_11931

:MANSIO1_11388
if 
  is_char_playing_anim 131@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_11430
135@(43@,4i) += 1

:MANSIO1_11430
goto @MANSIO1_11931

:MANSIO1_11437
if 
  not is_char_playing_anim 131@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_11542
if 
  2 > 206@
goto_if_false @MANSIO1_11500
206@ = 2
gosub @MANSIO1_14039

:MANSIO1_11500
set_char_proofs 131@(43@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_lvar_int_to_lvar_int 135@(43@,4i) = 43@
135@(43@,4i) += 7

:MANSIO1_11542
goto @MANSIO1_11931

:MANSIO1_11549
set_char_allowed_to_duck 131@ {state} False
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1289.698 {y} -771.6924 {z} 94.954 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 100.0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 131@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11648
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1285.824 {y} -772.1167 {z} 94.953 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 115.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 132@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11740
set_char_allowed_to_duck 133@ {state} False
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1277.87 {y} -789.9062 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 133@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11839
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1278.609 {y} -783.3164 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 95.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 134@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11931
goto @MANSIO1_11965

:MANSIO1_11938
mark_char_as_no_longer_needed 131@(43@,4i)
168@ -= 1
135@(43@,4i) = -1

:MANSIO1_11965
43@ += 1
goto @MANSIO1_10829

:MANSIO1_11979
return 

:MANSIO1_11981
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12369 {caseNum1} 0 {caseLabel1} @MANSIO1_12044 {caseNum2} 1 {caseLabel2} @MANSIO1_12192 {caseNum3} 2 {caseLabel3} @MANSIO1_12044 {caseNum4} 3 {caseLabel4} @MANSIO1_12192 {caseNum5} -1 {caseLabel5} @MANSIO1_12369 {caseNum6} -1 {caseLabel6} @MANSIO1_12369 {caseNum7} -1 {caseLabel7} @MANSIO1_12369

:MANSIO1_12044
if 
  not locate_char_on_foot_2d 131@(43@,4i) {x} 1585.293 {y} -786.5728 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO1_12093
goto @MANSIO1_12369

:MANSIO1_12093
if 
  43@ == 2
goto_if_false @MANSIO1_12152
set_var_int_to_constant $load_sample = 9410
set_var_text_label s$load_text = 'MAN1_DH'
start_new_script @A_ALAP 2 100 131@(43@,4i) 

:MANSIO1_12152
task_jump 131@(43@,4i) {state} True
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12192
if 
  not locate_char_on_foot_2d 131@(43@,4i) {x} 1585.323 {y} -783.2303 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO1_12241
goto @MANSIO1_12369

:MANSIO1_12241
if 
  43@ == 1
goto_if_false @MANSIO1_12288
set_var_int_to_constant $load_sample = 9420
set_var_text_label s$load_text = 'MAN1_DG'
goto @MANSIO1_12310

:MANSIO1_12288
set_var_int_to_constant $load_sample = 9411
set_var_text_label s$load_text = 'MAN1_DJ'

:MANSIO1_12310
start_new_script @A_ALAP 2 100 131@(43@,4i) 
task_jump 131@(43@,4i) {state} True
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12369
return 

:MANSIO1_12371
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12646 {caseNum1} 0 {caseLabel1} @MANSIO1_12434 {caseNum2} 1 {caseLabel2} @MANSIO1_12487 {caseNum3} 2 {caseLabel3} @MANSIO1_12540 {caseNum4} 3 {caseLabel4} @MANSIO1_12593 {caseNum5} -1 {caseLabel5} @MANSIO1_12646 {caseNum6} -1 {caseLabel6} @MANSIO1_12646 {caseNum7} -1 {caseLabel7} @MANSIO1_12646

:MANSIO1_12434
start_new_streamed_script 1 {args} -1 -29.0 14.0 -3.0 -1.0 5.25 6.75 1 131@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12487
start_new_streamed_script 1 {args} -1 -28.0 14.0 -3.0 -1.0 5.25 6.75 1 132@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12540
start_new_streamed_script 1 {args} -1 -27.0 14.0 -3.0 -1.0 5.25 6.75 1 133@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12593
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 134@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12646
return 

:MANSIO1_12648
43@ = 0

:MANSIO1_12655
if 
  3 > 43@
goto_if_false @MANSIO1_13334
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13299
switch_start 149@(43@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_13292 {caseNum1} 0 {caseLabel1} @MANSIO1_12760 {caseNum2} 1 {caseLabel2} @MANSIO1_12899 {caseNum3} 2 {caseLabel3} @MANSIO1_12948 {caseNum4} 3 {caseLabel4} @MANSIO1_13016 {caseNum5} 4 {caseLabel5} @MANSIO1_13108 {caseNum6} 5 {caseLabel6} @MANSIO1_13200 {caseNum7} -1 {caseLabel7} @MANSIO1_13292

:MANSIO1_12760
if 
  164@(43@,3i) >= 35000
goto_if_false @MANSIO1_12892
if 
  43@ == 0
goto_if_false @MANSIO1_12881
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_12865
print_now 'MAN1_07' {time} 8000 {flag} 1
goto @MANSIO1_12881

:MANSIO1_12865
print_now 'MAN1_08' {time} 8000 {flag} 1

:MANSIO1_12881
149@(43@,3i) += 1

:MANSIO1_12892
goto @MANSIO1_13292

:MANSIO1_12899
if 
  is_char_playing_anim 143@(43@,3i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_12941
149@(43@,3i) += 1

:MANSIO1_12941
goto @MANSIO1_13292

:MANSIO1_12948
if 
  not is_char_playing_anim 143@(43@,3i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_13009
169@ += 1
set_lvar_int_to_lvar_int 149@(43@,3i) = 43@
149@(43@,3i) += 3

:MANSIO1_13009
goto @MANSIO1_13292

:MANSIO1_13016
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1279.681 {y} -786.5801 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 86.7391
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 143@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13108
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1289.5649 {y} -775.1545 {z} 95.4476 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 76.697
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 144@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13200
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1281.683 {y} -779.4835 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 84.4451
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 145@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13292
goto @MANSIO1_13320

:MANSIO1_13299
52@ = 1
set_lvar_text_label 53@s = 'MAN1_11'

:MANSIO1_13320
43@ += 1
goto @MANSIO1_12655

:MANSIO1_13334
return 

:MANSIO1_13336
43@ = 0

:MANSIO1_13343
if 
  3 > 43@
goto_if_false @MANSIO1_13438
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13424
clear_char_tasks_immediately 143@(43@,3i)
task_stay_in_same_place 143@(43@,3i) {state} False
set_group_member 44@ {handle} 143@(43@,3i)
set_char_never_leaves_group 143@(43@,3i) {state} True

:MANSIO1_13424
43@ += 1
goto @MANSIO1_13343

:MANSIO1_13438
return 

:MANSIO1_13440
43@ = 0

:MANSIO1_13447
if 
  3 > 43@
goto_if_false @MANSIO1_13528
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13514
clear_char_tasks 143@(43@,3i)
task_stay_in_same_place 143@(43@,3i) {state} False
remove_char_from_group 143@(43@,3i)

:MANSIO1_13514
43@ += 1
goto @MANSIO1_13447

:MANSIO1_13528
return 

:MANSIO1_13530
170@ = create_char PedType.Mission2 {modelId} 108 {x} 1268.069 {y} -783.494 {z} 94.961
set_char_heading 170@ {heading} 275.8136
set_char_health 170@ {health} 200
set_char_max_health 170@ {maxHealth} 200
set_char_decision_maker 170@ {handleOrTemplate} 34@
give_weapon_to_char 170@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 170@ {weaponType} WeaponType.Mp5
set_char_proofs 170@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_is_target_priority 170@ {state} True
set_char_signal_after_kill 170@ {state} False
176@ = -2
171@ = create_char PedType.Mission2 {modelId} 109 {x} 1271.156 {y} -780.8453 {z} 94.9663
set_char_heading 171@ {heading} 254.8986
set_char_health 171@ {health} 200
set_char_max_health 171@ {maxHealth} 200
set_char_decision_maker 171@ {handleOrTemplate} 34@
give_weapon_to_char 171@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 171@ {weaponType} WeaponType.Mp5
set_char_proofs 171@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_is_target_priority 171@ {state} True
set_char_signal_after_kill 171@ {state} False
177@ = -2
172@ = create_char PedType.Mission2 {modelId} 108 {x} 1267.7371 {y} -777.1963 {z} 94.9577
set_char_heading 172@ {heading} 302.1641
set_char_health 172@ {health} 200
set_char_max_health 172@ {maxHealth} 200
set_char_decision_maker 172@ {handleOrTemplate} 34@
give_weapon_to_char 172@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 172@ {weaponType} WeaponType.Mp5
set_char_is_target_priority 172@ {state} True
set_char_signal_after_kill 172@ {state} False
178@ = -2
173@ = create_char PedType.Mission2 {modelId} 109 {x} 1272.5341 {y} -774.9141 {z} 94.9466
set_char_heading 173@ {heading} 249.014
set_char_health 173@ {health} 200
set_char_max_health 173@ {maxHealth} 200
set_char_decision_maker 173@ {handleOrTemplate} 34@
give_weapon_to_char 173@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 173@ {weaponType} WeaponType.Mp5
set_char_is_target_priority 173@ {state} True
set_char_signal_after_kill 173@ {state} False
179@ = -2
if 
  2 > 157@
goto_if_false @MANSIO1_14022
set_char_proofs 170@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 171@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 172@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 173@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14022
TIMERB = 3000
206@ = 1
return 

:MANSIO1_14039
if 
  not is_char_dead 170@
goto_if_false @MANSIO1_14078
set_char_decision_maker 170@ {handleOrTemplate} 36@
set_char_proofs 170@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14078
if 
  not is_char_dead 171@
goto_if_false @MANSIO1_14117
set_char_decision_maker 171@ {handleOrTemplate} 36@
set_char_proofs 171@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14117
if 
  not is_char_dead 172@
goto_if_false @MANSIO1_14156
set_char_decision_maker 172@ {handleOrTemplate} 36@
set_char_proofs 172@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14156
if 
  not is_char_dead 173@
goto_if_false @MANSIO1_14195
set_char_decision_maker 173@ {handleOrTemplate} 36@
set_char_proofs 173@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14195
return 

:MANSIO1_14197
43@ = 0

:MANSIO1_14204
if 
  4 > 43@
goto_if_false @MANSIO1_15096
if 
  not is_char_dead 170@(43@,6i)
goto_if_false @MANSIO1_14449
switch_start 176@(43@,6i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_14442 {caseNum1} 0 {caseLabel1} @MANSIO1_14309 {caseNum2} 1 {caseLabel2} @MANSIO1_14358 {caseNum3} 2 {caseLabel3} @MANSIO1_14406 {caseNum4} -1 {caseLabel4} @MANSIO1_14442 {caseNum5} -1 {caseLabel5} @MANSIO1_14442 {caseNum6} -1 {caseLabel6} @MANSIO1_14442 {caseNum7} -1 {caseLabel7} @MANSIO1_14442

:MANSIO1_14309
if 
  188@(43@,6i) > 100
goto_if_false @MANSIO1_14351
delete_object 194@(43@,6i)
176@(43@,6i) += 1

:MANSIO1_14351
goto @MANSIO1_14442

:MANSIO1_14358
46@ = get_sequence_progress 170@(43@,6i)
if 
  46@ >= 2
goto_if_false @MANSIO1_14399
176@(43@,6i) += 1

:MANSIO1_14399
goto @MANSIO1_14442

:MANSIO1_14406
$x, $y, $z = get_char_coordinates 170@(43@,6i)
176@(43@,6i) += 1
goto @MANSIO1_14442

:MANSIO1_14442
goto @MANSIO1_15082

:MANSIO1_14449
if 
  176@(43@,6i) <> -1
goto_if_false @MANSIO1_14500
188@(43@,6i) = 0
176@(43@,6i) = -1
goto @MANSIO1_15082

:MANSIO1_14500
if 
  188@(43@,6i) > 2000
goto_if_false @MANSIO1_15082
remove_char_elegantly 170@(43@,6i)
if 
  3 > 206@
goto_if_false @MANSIO1_15082
208@ = 0
gosub @MANSIO1_17063
if or
  210@ <> -1
  212@ <> 0
goto_if_false @MANSIO1_15082
set_lvar_int_to_lvar_int 205@ = 43@
if 
  210@ == -1
goto_if_false @MANSIO1_14647
if 
  212@ <> 0
goto_if_false @MANSIO1_14640
gosub @MANSIO1_15445

:MANSIO1_14640
goto @MANSIO1_14654

:MANSIO1_14647
gosub @MANSIO1_15098

:MANSIO1_14654
create_object #CARDBOARDBOX2 {x} 200@ {y} 201@ {z} 93.0 {var_handle} 194@(43@,6i)
set_object_dynamic 194@(43@,6i) {state} False
set_object_visible 194@(43@,6i) {state} False
freeze_object_position 194@(43@,6i) {state} True
create_char PedType.Mission2 {modelId} 182@(43@,6i) {x} 200@ {y} 201@ {z} 202@ {var_handle} 170@(43@,6i)
set_char_is_target_priority 170@(43@,6i) {state} True
set_char_health 170@(43@,6i) {health} 200
set_char_max_health 170@(43@,6i) {maxHealth} 200
set_char_heading 170@(43@,6i) {heading} 203@
set_char_decision_maker 170@(43@,6i) {handleOrTemplate} 34@
give_weapon_to_char 170@(43@,6i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 170@(43@,6i) {weaponType} WeaponType.Mp5
set_char_accuracy 170@(43@,6i) {accuracy} 70
set_char_shoot_rate 170@(43@,6i) {rate} 55
set_char_signal_after_kill 170@(43@,6i) {state} False
if 
  4 > 43@
goto_if_false @MANSIO1_15082
if or
  210@ <> -1
  212@ > 0
goto_if_false @MANSIO1_15030
$x, $y, $z = get_offset_from_char_in_world_coords 170@(43@,6i) {xOffset} 0.0 {yOffset} 3.5 {zOffset} 0.0
45@ = open_sequence_task 
task_climb -1 {flag} True
task_toggle_duck -1 {state} True
task_go_to_coord_any_means -1 {x} $x {y} $y {z} 94.95 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} False
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 170@(43@,6i) {sequence} 45@
clear_sequence_task 45@
188@(43@,6i) = 0
176@(43@,6i) = 0
goto @MANSIO1_15075

:MANSIO1_15030
task_stay_in_same_place 170@(43@,6i) {state} True
task_set_char_decision_maker 170@(43@,6i) {handleOrTemplate} 36@
188@(43@,6i) = 0
176@(43@,6i) = 3

:MANSIO1_15075
goto @MANSIO1_15082

:MANSIO1_15082
43@ += 1
goto @MANSIO1_14204

:MANSIO1_15096
return 

:MANSIO1_15098
switch_start 210@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_15347 {caseNum1} 0 {caseLabel1} @MANSIO1_15226 {caseNum2} 1 {caseLabel2} @MANSIO1_15242 {caseNum3} 2 {caseLabel3} @MANSIO1_15258 {caseNum4} 3 {caseLabel4} @MANSIO1_15274 {caseNum5} 4 {caseLabel5} @MANSIO1_15290 {caseNum6} 5 {caseLabel6} @MANSIO1_15306 {caseNum7} 6 {caseLabel7} @MANSIO1_15274
switch_continued 7 {caseLabel1} @MANSIO1_15290 {caseNum2} 8 {caseLabel2} @MANSIO1_15306 {caseNum3} 9 {caseLabel3} @MANSIO1_15258 {caseNum4} 10 {caseLabel4} @MANSIO1_15242 {caseNum5} -1 {caseLabel5} @MANSIO1_15361 {caseNum6} -1 {caseLabel6} @MANSIO1_15361 {caseNum7} -1 {caseLabel7} @MANSIO1_15361 {caseNum8} -1 {caseLabel8} @MANSIO1_15361 {caseNum9} -1 {caseLabel9} @MANSIO1_15361

:MANSIO1_15226
204@ = generate_random_int_in_range 0 {max} 5
goto @MANSIO1_15361

:MANSIO1_15242
204@ = generate_random_int_in_range 2 {max} 5
goto @MANSIO1_15361

:MANSIO1_15258
204@ = generate_random_int_in_range 3 {max} 5
goto @MANSIO1_15361

:MANSIO1_15274
204@ = generate_random_int_in_range 0 {max} 3
goto @MANSIO1_15361

:MANSIO1_15290
204@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_15361

:MANSIO1_15306
204@ = generate_random_int_in_range 0 {max} 4
if 
  204@ > 1
goto_if_false @MANSIO1_15340
204@ += 1

:MANSIO1_15340
goto @MANSIO1_15361

:MANSIO1_15347
204@ = 5
goto @MANSIO1_15361

:MANSIO1_15361
if 
  5 > 204@
goto_if_false @MANSIO1_15411
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15436

:MANSIO1_15411
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15436
gosub @MANSIO1_15686
return 

:MANSIO1_15445
switch_start 212@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_15602 {caseNum1} -1 {caseLabel1} @MANSIO1_15588 {caseNum2} 1 {caseLabel2} @MANSIO1_15508 {caseNum3} 2 {caseLabel3} @MANSIO1_15524 {caseNum4} 3 {caseLabel4} @MANSIO1_15540 {caseNum5} 4 {caseLabel5} @MANSIO1_15556 {caseNum6} 5 {caseLabel6} @MANSIO1_15572 {caseNum7} -1 {caseLabel7} @MANSIO1_15602

:MANSIO1_15508
204@ = generate_random_int_in_range 0 {max} 5
goto @MANSIO1_15602

:MANSIO1_15524
204@ = generate_random_int_in_range 3 {max} 5
goto @MANSIO1_15602

:MANSIO1_15540
204@ = generate_random_int_in_range 2 {max} 5
goto @MANSIO1_15602

:MANSIO1_15556
204@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_15602

:MANSIO1_15572
204@ = generate_random_int_in_range 0 {max} 3
goto @MANSIO1_15602

:MANSIO1_15588
204@ = 5
goto @MANSIO1_15602

:MANSIO1_15602
if 
  5 > 204@
goto_if_false @MANSIO1_15652
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15677

:MANSIO1_15652
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15677
gosub @MANSIO1_15686
return 

:MANSIO1_15686
switch_start 204@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_16767 {caseNum1} 0 {caseLabel1} @MANSIO1_15879 {caseNum2} 1 {caseLabel2} @MANSIO1_15916 {caseNum3} 2 {caseLabel3} @MANSIO1_15953 {caseNum4} 3 {caseLabel4} @MANSIO1_15990 {caseNum5} 4 {caseLabel5} @MANSIO1_16027 {caseNum6} 5 {caseLabel6} @MANSIO1_16064 {caseNum7} 6 {caseLabel7} @MANSIO1_16101
switch_continued 7 {caseLabel1} @MANSIO1_16138 {caseNum2} 8 {caseLabel2} @MANSIO1_16175 {caseNum3} 9 {caseLabel3} @MANSIO1_16212 {caseNum4} 10 {caseLabel4} @MANSIO1_16249 {caseNum5} 11 {caseLabel5} @MANSIO1_16286 {caseNum6} 12 {caseLabel6} @MANSIO1_16323 {caseNum7} 13 {caseLabel7} @MANSIO1_16360 {caseNum8} 14 {caseLabel8} @MANSIO1_16397 {caseNum9} 15 {caseLabel9} @MANSIO1_16434
switch_continued 16 {caseLabel1} @MANSIO1_16471 {caseNum2} 17 {caseLabel2} @MANSIO1_16508 {caseNum3} 18 {caseLabel3} @MANSIO1_16545 {caseNum4} 19 {caseLabel4} @MANSIO1_16582 {caseNum5} 20 {caseLabel5} @MANSIO1_16619 {caseNum6} 21 {caseLabel6} @MANSIO1_16656 {caseNum7} 22 {caseLabel7} @MANSIO1_16693 {caseNum8} 23 {caseLabel8} @MANSIO1_16730 {caseNum9} -1 {caseLabel9} @MANSIO1_16767

:MANSIO1_15879
200@ = 1262.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15916
200@ = 1266.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15953
200@ = 1257.0
201@ = -784.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_15990
200@ = 1269.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16027
200@ = 1265.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16064
200@ = 1267.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16101
200@ = 1263.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16138
200@ = 1257.0
201@ = -781.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16175
200@ = 1264.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16212
200@ = 1268.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16249
200@ = 1264.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16286
200@ = 1268.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16323
200@ = 1257.0
201@ = -778.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16360
200@ = 1267.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16397
200@ = 1263.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16434
200@ = 1269.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16471
200@ = 1265.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16508
200@ = 1257.0
201@ = -775.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16545
200@ = 1262.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16582
200@ = 1266.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16619
200@ = 1268.069
201@ = -783.494
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16656
200@ = 1271.156
201@ = -780.8453
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16693
200@ = 1267.7371
201@ = -777.1963
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16730
200@ = 1272.5341
201@ = -774.9141
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16767
return 

:MANSIO1_16769
if 
  TIMERB > 700
goto_if_false @MANSIO1_17061
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d 1269.668 {fromY} -778.8566 {toX} $player_x {toZ} $player_y
if and
  $player_z > 105.0
  $distance > 65.0
  130.0 > $distance
goto_if_false @MANSIO1_17043
$x = generate_random_float_in_range -6.0 {max} 6.1
if 
  $x > 0.0
goto_if_false @MANSIO1_16917
$x += 1.5
goto @MANSIO1_16927

:MANSIO1_16917
$x -= 1.5

:MANSIO1_16927
$z = generate_random_float_in_range -6.0 {max} 6.1
if 
  $z > 0.0
goto_if_false @MANSIO1_16980
$z += 1.5
goto @MANSIO1_16990

:MANSIO1_16980
$z -= 1.5

:MANSIO1_16990
$player_x, $player_y, $player_z = get_offset_from_char_in_world_coords $scplayer {xOffset} $x {yOffset} -10.0 {zOffset} $z
fire_single_bullet 1269.668 {fromY} -778.8566 {fromZ} 94.9557 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 0

:MANSIO1_17043
204@ = generate_random_int_in_range 100 {max} 401
set_lvar_int_to_lvar_int TIMERB = 204@

:MANSIO1_17061
return 

:MANSIO1_17063
if 
  208@ == 0
goto_if_false @MANSIO1_17143
if 
  211@ == 0
goto_if_false @MANSIO1_17134
210@ = -1
212@ = 0
215@, 216@, 217@ = get_char_coordinates $scplayer
goto @MANSIO1_17136

:MANSIO1_17134
return 

:MANSIO1_17136
goto @MANSIO1_17168

:MANSIO1_17143
213@ = -1
215@, 216@, 217@ = get_char_coordinates 170@(214@,6i)

:MANSIO1_17168
if 
  217@ > 94.5
goto_if_false @MANSIO1_17203
209@ = 0
goto @MANSIO1_17280

:MANSIO1_17203
if 
  217@ > 90.5
goto_if_false @MANSIO1_17238
209@ = 1
goto @MANSIO1_17280

:MANSIO1_17238
if 
  217@ > 86.0
goto_if_false @MANSIO1_17273
209@ = 2
goto @MANSIO1_17280

:MANSIO1_17273
209@ = 3

:MANSIO1_17280
switch_start 209@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18429 {caseNum1} 0 {caseLabel1} @MANSIO1_17343 {caseNum2} 1 {caseLabel2} @MANSIO1_17597 {caseNum3} 2 {caseLabel3} @MANSIO1_17816 {caseNum4} 3 {caseLabel4} @MANSIO1_18175 {caseNum5} -1 {caseLabel5} @MANSIO1_18429 {caseNum6} -1 {caseLabel6} @MANSIO1_18429 {caseNum7} -1 {caseLabel7} @MANSIO1_18429

:MANSIO1_17343
if and
  216@ > -802.2
  -766.75 > 216@
  215@ > 1257.9
  1304.4 > 215@
goto_if_false @MANSIO1_17583
if 
  216@ > -774.2
goto_if_false @MANSIO1_17464
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17450
207@ = 2
goto @MANSIO1_17457

:MANSIO1_17450
207@ = 1

:MANSIO1_17457
goto @MANSIO1_17576

:MANSIO1_17464
if 
  -785.85 > 216@
goto_if_false @MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17520
207@ = 4
goto @MANSIO1_17527

:MANSIO1_17520
207@ = 3

:MANSIO1_17527
goto @MANSIO1_17576

:MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17569
207@ = 5
goto @MANSIO1_17576

:MANSIO1_17569
207@ = 0

:MANSIO1_17576
goto @MANSIO1_17590

:MANSIO1_17583
207@ = -1

:MANSIO1_17590
goto @MANSIO1_18429

:MANSIO1_17597
if and
  216@ > -793.0
  -767.6 > 216@
  215@ > 1251.4
  1295.7 > 215@
goto_if_false @MANSIO1_17802
if 
  216@ > -776.25
goto_if_false @MANSIO1_17718
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17704
207@ = 9
goto @MANSIO1_17711

:MANSIO1_17704
207@ = 10

:MANSIO1_17711
goto @MANSIO1_17795

:MANSIO1_17718
if 
  -783.5 > 216@
goto_if_false @MANSIO1_17788
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17774
207@ = 7
goto @MANSIO1_17781

:MANSIO1_17774
207@ = 6

:MANSIO1_17781
goto @MANSIO1_17795

:MANSIO1_17788
207@ = 8

:MANSIO1_17795
goto @MANSIO1_17809

:MANSIO1_17802
207@ = -1

:MANSIO1_17809
goto @MANSIO1_18429

:MANSIO1_17816
if and
  216@ > -814.0
  -785.0 > 216@
  215@ > 1251.8
  1303.5 > 215@
goto_if_false @MANSIO1_18161
if 
  216@ > -793.6
goto_if_false @MANSIO1_17972
if 
  215@ > 1298.8
goto_if_false @MANSIO1_17923
207@ = 13
goto @MANSIO1_17965

:MANSIO1_17923
if 
  215@ > 1259.4
goto_if_false @MANSIO1_17958
207@ = 12
goto @MANSIO1_17965

:MANSIO1_17958
207@ = 11

:MANSIO1_17965
goto @MANSIO1_18154

:MANSIO1_17972
if 
  216@ > -807.1
goto_if_false @MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18028
207@ = 16
goto @MANSIO1_18070

:MANSIO1_18028
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18063
207@ = 15
goto @MANSIO1_18070

:MANSIO1_18063
207@ = 14

:MANSIO1_18070
goto @MANSIO1_18154

:MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18112
207@ = 19
goto @MANSIO1_18154

:MANSIO1_18112
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18147
207@ = 18
goto @MANSIO1_18154

:MANSIO1_18147
207@ = 17

:MANSIO1_18154
goto @MANSIO1_18168

:MANSIO1_18161
207@ = -1

:MANSIO1_18168
goto @MANSIO1_18429

:MANSIO1_18175
if and
  216@ > -834.35
  -787.3 > 216@
  215@ > 1239.9
  1308.4 > 215@
goto_if_false @MANSIO1_18415
if 
  -804.2511 > 216@
goto_if_false @MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18282
207@ = 23
goto @MANSIO1_18324

:MANSIO1_18282
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18317
207@ = 24
goto @MANSIO1_18324

:MANSIO1_18317
207@ = 25

:MANSIO1_18324
goto @MANSIO1_18408

:MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18366
207@ = 20
goto @MANSIO1_18408

:MANSIO1_18366
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18401
207@ = 21
goto @MANSIO1_18408

:MANSIO1_18401
207@ = 22

:MANSIO1_18408
goto @MANSIO1_18422

:MANSIO1_18415
207@ = -1

:MANSIO1_18422
goto @MANSIO1_18429

:MANSIO1_18429
if 
  207@ == -1
goto_if_false @MANSIO1_18573
if 
  217@ > 91.5
goto_if_false @MANSIO1_18566
212@ = 0
if 
  215@ > 1279.351
goto_if_false @MANSIO1_18503
212@ += 1

:MANSIO1_18503
if 
  216@ > -766.75
goto_if_false @MANSIO1_18531
212@ += 2

:MANSIO1_18531
if 
  -802.2 > 216@
goto_if_false @MANSIO1_18559
212@ += 4

:MANSIO1_18559
goto @MANSIO1_18573

:MANSIO1_18566
212@ = -1

:MANSIO1_18573
if 
  208@ == 0
goto_if_false @MANSIO1_18613
set_lvar_int_to_lvar_int 210@ = 207@
211@ = 1
goto @MANSIO1_18621

:MANSIO1_18613
set_lvar_int_to_lvar_int 213@ = 207@

:MANSIO1_18621
return 

:MANSIO1_18623
switch_start 218@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18754 {caseNum1} 1 {caseLabel1} @MANSIO1_18686 {caseNum2} -1 {caseLabel2} @MANSIO1_18754 {caseNum3} -1 {caseLabel3} @MANSIO1_18754 {caseNum4} -1 {caseLabel4} @MANSIO1_18754 {caseNum5} -1 {caseLabel5} @MANSIO1_18754 {caseNum6} -1 {caseLabel6} @MANSIO1_18754 {caseNum7} -1 {caseLabel7} @MANSIO1_18754

:MANSIO1_18686
if 
  190.0 > 115@
goto_if_false @MANSIO1_18747
115@ += 0.34
114@ -= 0.006
118@ += 0.01
116@ += 0.01

:MANSIO1_18747
goto @MANSIO1_18754

:MANSIO1_18754
122@ = cos 115@
123@ = sin 115@
set_lvar_float_to_lvar_float 120@ = 116@
mult_float_lvar_by_float_lvar 120@ *= 122@
set_lvar_float_to_lvar_float 121@ = 116@
mult_float_lvar_by_float_lvar 121@ *= 123@
set_lvar_float_to_lvar_float 112@ = 117@
add_float_lvar_to_float_lvar 112@ += 120@
set_lvar_float_to_lvar_float 113@ = 118@
add_float_lvar_to_float_lvar 113@ += 121@
set_fixed_camera_position 112@ {y} 113@ {z} 114@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 117@ {y} 118@ {z} 119@ {switchStyle} SwitchType.JumpCut
return 

:MANSIO1_18875
switch_start 219@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19024 {caseNum1} 0 {caseLabel1} @MANSIO1_18938 {caseNum2} 1 {caseLabel2} @MANSIO1_18953 {caseNum3} -1 {caseLabel3} @MANSIO1_19024 {caseNum4} -1 {caseLabel4} @MANSIO1_19024 {caseNum5} -1 {caseLabel5} @MANSIO1_19024 {caseNum6} -1 {caseLabel6} @MANSIO1_19024 {caseNum7} -1 {caseLabel7} @MANSIO1_19024

:MANSIO1_18938
report_mission_audio_event_at_object 128@ {soundId} ScriptSound.SoundCargoPlaneDoorStart
219@ += 1

:MANSIO1_18953
if 
  220@ > -20.0
goto_if_false @MANSIO1_19009
220@ += -0.1
set_object_rotation 128@ {x} 220@ {y} 0.0 {z} 90.0
goto @MANSIO1_19024

:MANSIO1_19009
report_mission_audio_event_at_object 128@ {soundId} ScriptSound.SoundCargoPlaneDoorStop
219@ += 1

:MANSIO1_19024
return 
switch_start 221@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19272 {caseNum1} 0 {caseLabel1} @MANSIO1_19089 {caseNum2} 1 {caseLabel2} @MANSIO1_19152 {caseNum3} 2 {caseLabel3} @MANSIO1_19261 {caseNum4} -1 {caseLabel4} @MANSIO1_19272 {caseNum5} -1 {caseLabel5} @MANSIO1_19272 {caseNum6} -1 {caseLabel6} @MANSIO1_19272 {caseNum7} -1 {caseLabel7} @MANSIO1_19272

:MANSIO1_19089
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 222@
goto_if_false @MANSIO1_19140
223@ = generate_random_int_in_range 4000 {max} 6001
TIMERB = 0
221@ += 1
goto @MANSIO1_19145

:MANSIO1_19140
shake_cam 224@

:MANSIO1_19145
goto @MANSIO1_19272

:MANSIO1_19152
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 223@
goto_if_false @MANSIO1_19250
224@ = generate_random_int_in_range 40 {max} 51
shake_cam 224@
222@ = generate_random_int_in_range 2500 {max} 5001
set_lvar_int_to_lvar_int 225@ = 224@
225@ *= 2
225@ += 150
shake_pad PadId.Pad1 {time} 222@ {intensity} 225@
TIMERB = 0
221@ -= 1
goto @MANSIO1_19254

:MANSIO1_19250
shake_cam 5

:MANSIO1_19254
goto @MANSIO1_19272

:MANSIO1_19261
shake_cam 20
goto @MANSIO1_19272

:MANSIO1_19272
return 

:MANSIO1_19274
kill_fx_system 124@
kill_fx_system 125@
kill_fx_system 126@
remove_blip 47@
remove_blip 146@
remove_blip 147@
remove_blip 148@
remove_pickup 51@
43@ = 0

:MANSIO1_19321
if 
  4 > 43@
goto_if_false @MANSIO1_19380
mark_char_as_no_longer_needed 99@(43@,4i)
mark_char_as_no_longer_needed 131@(43@,4i)
mark_char_as_no_longer_needed 170@(43@,6i)
43@ += 1
goto @MANSIO1_19321

:MANSIO1_19380
mark_char_as_no_longer_needed 159@
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 371
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 330
return 

:MANSIO1_19435
gosub @MANSIO1_13440
gosub @MANSIO1_19274
remove_decision_maker 39@
disable_all_entry_exits True
load_scene 1267.429 {y} -781.5715 {z} 1090.891
38@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 38@ {event} Event.Damage {taskId} TaskId.ComplexSmartFleeEntity {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
request_model 110
request_model 13
request_model 195

:MANSIO1_19597
if or
  not has_model_loaded 110
  not has_model_loaded 13
  not has_model_loaded 195
goto_if_false @MANSIO1_19632
wait 0
goto @MANSIO1_19597

:MANSIO1_19632
51@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 1278.88 {y} -810.5082 {z} 1086.0
set_fixed_camera_position 1266.807 {y} -782.0668 {z} 1092.6021 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1267.786 {y} -781.8895 {z} 1092.5 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 1267.785 {y} -781.2607 {z} 1090.8979
set_char_heading $scplayer {heading} 185.363
157@ = 0
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_19804
set_char_coordinates 143@ {x} 1263.087 {y} -782.9864 {z} 1090.8979
remove_blip 146@
goto @MANSIO1_19852

:MANSIO1_19804
143@ = create_char PedType.Mission1 {modelId} 117 {x} 1263.087 {y} -782.9864 {z} 1090.8979
give_weapon_to_char 143@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 143@ {weaponType} WeaponType.M4
set_char_never_targetted 143@ {state} True

:MANSIO1_19852
set_char_heading 143@ {heading} 269.9343
set_char_health 143@ {health} 300
set_char_area_visible 143@ {areaId} 5
set_char_decision_maker 143@ {handleOrTemplate} 34@
set_char_signal_after_kill 143@ {state} False
set_char_accuracy 143@ {accuracy} 75
set_char_shoot_rate 143@ {rate} 60
set_lvar_int_to_constant 428@ = 117
149@ = 0
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_19968
set_char_coordinates 144@ {x} 1261.967 {y} -778.3527 {z} 1090.8979
remove_blip 147@
goto @MANSIO1_20016

:MANSIO1_19968
144@ = create_char PedType.Mission1 {modelId} 118 {x} 1261.967 {y} -778.3527 {z} 1090.8979
give_weapon_to_char 144@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 144@ {weaponType} WeaponType.M4
set_char_never_targetted 144@ {state} True

:MANSIO1_20016
set_char_heading 144@ {heading} 258.1764
set_char_health 144@ {health} 300
set_char_area_visible 144@ {areaId} 5
set_char_decision_maker 144@ {handleOrTemplate} 34@
set_char_signal_after_kill 144@ {state} False
set_char_accuracy 144@ {accuracy} 75
set_char_shoot_rate 144@ {rate} 60
150@ = 1
set_lvar_int_to_constant 429@ = 118
if 
  not is_char_dead 145@
goto_if_false @MANSIO1_20132
set_char_coordinates 145@ {x} 1267.936 {y} -782.3963 {z} 1090.938
remove_blip 148@
goto @MANSIO1_20180

:MANSIO1_20132
145@ = create_char PedType.Mission1 {modelId} 118 {x} 1267.936 {y} -782.3963 {z} 1090.938
give_weapon_to_char 145@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 145@ {weaponType} WeaponType.M4
set_char_never_targetted 145@ {state} True

:MANSIO1_20180
set_char_heading 145@ {heading} 7.0205
set_char_health 145@ {health} 300
set_char_area_visible 145@ {areaId} 5
set_char_decision_maker 145@ {handleOrTemplate} 34@
43@ = 0

:MANSIO1_20220
if 
  20 > 43@
goto_if_false @MANSIO1_20263
246@(43@,20i) = -2
43@ += 1
goto @MANSIO1_20220

:MANSIO1_20263
43@ = 0

:MANSIO1_20270
if 
  10 > 43@
goto_if_false @MANSIO1_20313
296@(43@,10i) = -2
43@ += 1
goto @MANSIO1_20270

:MANSIO1_20313
320@ = -2
321@ = -2
322@ = -2
323@ = -2
346@ = 1282.481
362@ = -783.0235
378@ = 1088.9301
394@ = 178.1922
347@ = 1283.504
363@ = -782.3303
379@ = 1088.9301
395@ = 179.0122
344@ = 2
348@ = 1280.705
364@ = -789.9243
380@ = 1088.9301
396@ = 86.8595
349@ = 1283.79
365@ = -798.3011
381@ = 1088.9301
397@ = 282.0571
350@ = 1280.78
366@ = -801.7443
382@ = 1088.9301
398@ = 94.8903
351@ = 1283.531
367@ = -810.207
383@ = 1088.9301
399@ = 277.6203
352@ = 1280.724
368@ = -813.7949
384@ = 1088.9301
400@ = 92.4805
353@ = 1283.641
369@ = -822.3738
385@ = 1088.9301
401@ = 281.8632
345@ = 8
354@ = 1283.491
370@ = -785.184
386@ = 1088.9301
402@ = 178.5884
355@ = 1281.049
371@ = -792.4401
387@ = 1088.9301
403@ = 182.731
356@ = 1283.697
372@ = -799.8134
388@ = 1088.9301
404@ = 177.1231
357@ = 1280.901
373@ = -804.8507
389@ = 1088.9301
405@ = 184.0353
358@ = 1283.5
374@ = -812.0164
390@ = 1088.9301
406@ = 175.55
359@ = 1280.848
375@ = -816.8154
391@ = 1088.9301
407@ = 188.1912
360@ = 1283.6541
376@ = -831.0235
392@ = 1088.9301
408@ = 71.1923
361@ = 1282.427
377@ = -834.7235
393@ = 1088.9301
409@ = 92.1225
452@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_constant 444@ = 9424
set_lvar_text_label 453@s = 'MAN1_FC'
set_lvar_int_to_constant 445@ = 9425
set_lvar_text_label 455@s = 'MAN1_FD'
set_lvar_int_to_constant 446@ = 9426
set_lvar_text_label 457@s = 'MAN1_FE'
set_lvar_int_to_constant 447@ = 9427
set_lvar_text_label 459@s = 'MAN1_FF'
set_lvar_int_to_constant 448@ = 9431
set_lvar_text_label 461@s = 'MAN1_FK'
set_lvar_int_to_constant 449@ = 9432
set_lvar_text_label 463@s = 'MAN1_FL'
set_lvar_int_to_constant 450@ = 9433
set_lvar_text_label 465@s = 'MAN1_FM'
set_lvar_int_to_constant 451@ = 9434
set_lvar_text_label 467@s = 'MAN1_FN'
226@ = create_char PedType.Mission2 {modelId} 108 {x} 1275.64 {y} -776.5879 {z} 1089.7111
set_char_heading 226@ {heading} 127.9642
set_char_health 226@ {health} 200
set_char_max_health 226@ {maxHealth} 200
set_char_area_visible 226@ {areaId} 5
give_weapon_to_char 226@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 226@ {weaponType} WeaponType.Mp5
set_char_accuracy 226@ {accuracy} 35
set_char_shoot_rate 226@ {rate} 50
task_toggle_duck 226@ {state} True
set_char_decision_maker 226@ {handleOrTemplate} 34@
246@ = 0
227@ = create_char PedType.Mission2 {modelId} 110 {x} 1281.108 {y} -776.7111 {z} 1089.704
set_char_heading 227@ {heading} 99.357
set_char_health 227@ {health} 200
set_char_max_health 227@ {maxHealth} 200
set_char_area_visible 227@ {areaId} 5
give_weapon_to_char 227@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 227@ {weaponType} WeaponType.Mp5
set_char_accuracy 227@ {accuracy} 35
set_char_shoot_rate 227@ {rate} 60
task_toggle_duck 227@ {state} True
set_char_decision_maker 227@ {handleOrTemplate} 34@
247@ = 0
228@ = create_char PedType.Mission2 {modelId} 108 {x} 1281.6169 {y} -784.6133 {z} 1088.9301
set_char_heading 228@ {heading} 90.0
set_char_health 228@ {health} 200
set_char_max_health 228@ {maxHealth} 200
set_char_area_visible 228@ {areaId} 5
give_weapon_to_char 228@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 228@ {weaponType} WeaponType.Mp5
set_char_accuracy 228@ {accuracy} 35
set_char_shoot_rate 228@ {rate} 70
set_char_decision_maker 228@ {handleOrTemplate} 34@
248@ = 0
229@ = create_char PedType.Mission2 {modelId} 110 {x} 1283.1899 {y} -786.4687 {z} 1088.9301
set_char_heading 229@ {heading} 0.0
set_char_health 229@ {health} 200
set_char_max_health 229@ {maxHealth} 200
set_char_area_visible 229@ {areaId} 5
give_weapon_to_char 229@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 229@ {weaponType} WeaponType.Mp5
set_char_accuracy 229@ {accuracy} 35
set_char_shoot_rate 229@ {rate} 50
set_char_decision_maker 229@ {handleOrTemplate} 34@
249@ = 0
487@ = -1
490@ = 1275.382
496@ = -782.1158
502@ = 1088.9301
508@ = 270.0
491@ = 1290.621
497@ = -797.5714
503@ = 1088.9301
509@ = 90.0
492@ = 1276.333
498@ = -813.5852
504@ = 1088.9301
510@ = 270.0
493@ = 1274.861
499@ = -825.8968
505@ = 1088.9301
511@ = 270.0
494@ = 1226.309
500@ = -832.0841
506@ = 1083.0081
512@ = 180.0
495@ = 1288.024
501@ = -821.6524
507@ = 1088.9301
513@ = 90.0
set_lvar_int_to_constant 331@ = 9400
set_lvar_text_label 336@s = 'MAN1_AA'
set_lvar_int_to_constant 332@ = 9401
set_lvar_text_label 338@s = 'MAN1_AB'
set_lvar_int_to_constant 333@ = 9402
set_lvar_text_label 340@s = 'MAN1_AC'
set_lvar_int_to_constant 334@ = 9403
set_lvar_text_label 342@s = 'MAN1_AD'
335@ = 0
330@ = 0
switch_audio_zone 'MADDOGL' {state} True
stop_char_facial_talk $scplayer
do_fade 1000 {direction} Fade.In

:MANSIO1_21980
if 
  get_fading_status 
goto_if_false @MANSIO1_22004
wait 0
goto @MANSIO1_21980

:MANSIO1_22004
TIMERA = 0
49@ = 0
set_var_int_to_constant $load_sample = 9412
set_var_text_label s$load_text = 'MAN1_EA'
start_new_script @A_ALAP 2 100 145@ 
skip_cutscene_start_internal @MANSIO1_22313

:MANSIO1_22062
if 
  4000 > TIMERA
goto_if_false @MANSIO1_22092
wait 0
goto @MANSIO1_22062

:MANSIO1_22092
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22122
task_toggle_duck 226@ {state} False
49@ = 1

:MANSIO1_22122
if 
  4400 > TIMERA
goto_if_false @MANSIO1_22152
wait 0
goto @MANSIO1_22122

:MANSIO1_22152
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22198
task_shoot_at_coord 226@ {x} 1267.728 {y} -782.9617 {z} 1092.689 {time} 300
49@ = 2

:MANSIO1_22198
if 
  4700 > TIMERA
goto_if_false @MANSIO1_22228
wait 0
goto @MANSIO1_22198

:MANSIO1_22228
if and
  not is_char_dead 226@
  not is_char_dead 145@
goto_if_false @MANSIO1_22273
clear_char_tasks 226@
task_toggle_duck 226@ {state} True
explode_char_head 145@
49@ = 3

:MANSIO1_22273
task_achieve_heading $scplayer {heading} 270.0

:MANSIO1_22283
if 
  5400 > TIMERA
goto_if_false @MANSIO1_22313
wait 0
goto @MANSIO1_22283

:MANSIO1_22313
skip_cutscene_end 
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_22450 {caseNum1} 0 {caseLabel1} @MANSIO1_22422 {caseNum2} 1 {caseLabel2} @MANSIO1_22399 {caseNum3} 2 {caseLabel3} @MANSIO1_22378 {caseNum4} -1 {caseLabel4} @MANSIO1_22450 {caseNum5} -1 {caseLabel5} @MANSIO1_22450 {caseNum6} -1 {caseLabel6} @MANSIO1_22450 {caseNum7} -1 {caseLabel7} @MANSIO1_22450

:MANSIO1_22378
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22399
clear_char_tasks 226@

:MANSIO1_22399
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22422
task_toggle_duck 226@ {state} True

:MANSIO1_22422
if 
  not is_char_dead 145@
goto_if_false @MANSIO1_22443
explode_char_head 145@

:MANSIO1_22443
goto @MANSIO1_22450

:MANSIO1_22450
set_char_heading $scplayer {heading} 270.0
switch_widescreen False
set_player_control $player1 {state} True
set_var_int_to_constant $load_sample = 9421
set_var_text_label s$load_text = 'MAN1_EB'
start_new_script @A_ALAP 2 101 143@ 
TIMERB = 0
415@ = 1
411@ = 1
416@ = -1
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_22630
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1266.858 {y} -782.4518 {z} 1090.8979 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 270.5538
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 143@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22630
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_22720
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1268.02 {y} -779.9092 {z} 1090.8979 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 267.5782
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 144@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22720
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22744
set_char_decision_maker 226@ {handleOrTemplate} 36@

:MANSIO1_22744
if 
  not is_char_dead 227@
goto_if_false @MANSIO1_22768
set_char_decision_maker 227@ {handleOrTemplate} 36@

:MANSIO1_22768
if 
  not is_char_dead 228@
goto_if_false @MANSIO1_22827
45@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_weapon_roll -1 {direction} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 228@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22827
if 
  not is_char_dead 229@
goto_if_false @MANSIO1_22918
45@ = open_sequence_task 
task_stand_still -1 {time} 500
task_go_straight_to_coord -1 {x} 1283.2209 {y} -779.912 {z} 1088.9301 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 229@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22918
41@ = get_game_timer 
157@ = 0

:MANSIO1_22930
wait 0
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 164@ += 42@
add_int_lvar_to_int_lvar 165@ += 42@
43@ = 0

:MANSIO1_22986
if 
  20 > 43@
goto_if_false @MANSIO1_23030
add_int_lvar_to_int_lvar 266@(43@,20i) += 42@
43@ += 1
goto @MANSIO1_22986

:MANSIO1_23030
43@ = 0

:MANSIO1_23037
if 
  10 > 43@
goto_if_false @MANSIO1_23081
add_int_lvar_to_int_lvar 306@(43@,10i) += 42@
43@ += 1
goto @MANSIO1_23037

:MANSIO1_23081
add_int_lvar_to_int_lvar 480@ += 42@
add_int_lvar_to_int_lvar 481@ += 42@
add_int_lvar_to_int_lvar 482@ += 42@
add_int_lvar_to_int_lvar 324@ += 42@
add_int_lvar_to_int_lvar 325@ += 42@
add_int_lvar_to_int_lvar 326@ += 42@
add_int_lvar_to_int_lvar 327@ += 42@
gosub @MANSIO1_23279
gosub @MANSIO1_29184
gosub @MANSIO1_32862
gosub @MANSIO1_28155
if 
  157@ > 0
goto_if_false @MANSIO1_23190
gosub @MANSIO1_34284

:MANSIO1_23190
if 
  330@ == 1
goto_if_false @MANSIO1_23215
gosub @MANSIO1_35151

:MANSIO1_23215
if 
  521@ <> 0
goto_if_false @MANSIO1_23240
gosub @MANSIO1_35745

:MANSIO1_23240
if 
  514@ == 2
goto_if_false @MANSIO1_23265
goto @MANSIO1_36517

:MANSIO1_23265
471@ = 0
goto @MANSIO1_22930

:MANSIO1_23279
switch_start 157@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28153 {caseNum1} 0 {caseLabel1} @MANSIO1_23407 {caseNum2} 1 {caseLabel2} @MANSIO1_24472 {caseNum3} 2 {caseLabel3} @MANSIO1_24838 {caseNum4} 3 {caseLabel4} @MANSIO1_24986 {caseNum5} 4 {caseLabel5} @MANSIO1_25838 {caseNum6} 5 {caseLabel6} @MANSIO1_26532 {caseNum7} 6 {caseLabel7} @MANSIO1_26757
switch_continued 7 {caseLabel1} @MANSIO1_26929 {caseNum2} 8 {caseLabel2} @MANSIO1_27158 {caseNum3} 9 {caseLabel3} @MANSIO1_27387 {caseNum4} 10 {caseLabel4} @MANSIO1_27654 {caseNum5} 11 {caseLabel5} @MANSIO1_27883 {caseNum6} -1 {caseLabel6} @MANSIO1_28153 {caseNum7} -1 {caseLabel7} @MANSIO1_28153 {caseNum8} -1 {caseLabel8} @MANSIO1_28153 {caseNum9} -1 {caseLabel9} @MANSIO1_28153

:MANSIO1_23407
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1285.937 {leftBottomY} -783.2331 {rightTopX} 1279.36 {rightTopY} -779.1484 {drawSphere} False
  149@ == 6
  150@ == 7
goto_if_false @MANSIO1_24465
286@ = create_char PedType.Mission2 {modelId} 108 {x} 1271.954 {y} -786.6414 {z} 1088.928
set_char_heading 286@ {heading} 248.455
set_char_area_visible 286@ {areaId} 5
give_weapon_to_char 286@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 286@ {weaponType} WeaponType.Mp5
set_char_accuracy 286@ {accuracy} 45
set_char_shoot_rate 286@ {rate} 35
task_stay_in_same_place 286@ {state} True
set_char_decision_maker 286@ {handleOrTemplate} 36@
296@ = 0
287@ = create_char PedType.Mission2 {modelId} 110 {x} 1272.165 {y} -790.5964 {z} 1088.928
set_char_heading 287@ {heading} 277.2843
set_char_area_visible 287@ {areaId} 5
give_weapon_to_char 287@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 287@ {weaponType} WeaponType.Mp5
set_char_accuracy 287@ {accuracy} 45
set_char_shoot_rate 287@ {rate} 35
task_stay_in_same_place 287@ {state} True
set_char_decision_maker 287@ {handleOrTemplate} 36@
297@ = 0
288@ = create_char PedType.Mission2 {modelId} 110 {x} 1287.489 {y} -788.2037 {z} 1088.9301
set_char_heading 288@ {heading} 176.3381
set_char_area_visible 288@ {areaId} 5
give_weapon_to_char 288@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 288@ {weaponType} WeaponType.Mp5
set_char_accuracy 288@ {accuracy} 50
set_char_shoot_rate 288@ {rate} 35
task_stay_in_same_place 288@ {state} True
set_char_decision_maker 288@ {handleOrTemplate} 36@
298@ = 0
289@ = create_char PedType.Mission2 {modelId} 108 {x} 1292.4561 {y} -788.2022 {z} 1088.9301
set_char_heading 289@ {heading} 145.1614
set_char_area_visible 289@ {areaId} 5
give_weapon_to_char 289@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 289@ {weaponType} WeaponType.Mp5
set_char_accuracy 289@ {accuracy} 50
set_char_shoot_rate 289@ {rate} 35
task_stay_in_same_place 289@ {state} True
set_char_decision_maker 289@ {handleOrTemplate} 36@
299@ = 0
290@ = create_char PedType.Mission2 {modelId} 108 {x} 1271.389 {y} -800.9039 {z} 1088.927
set_char_heading 290@ {heading} 263.9924
set_char_area_visible 290@ {areaId} 5
give_weapon_to_char 290@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 290@ {weaponType} WeaponType.Mp5
set_char_accuracy 290@ {accuracy} 50
set_char_shoot_rate 290@ {rate} 35
task_stay_in_same_place 290@ {state} True
set_char_decision_maker 290@ {handleOrTemplate} 36@
300@ = 0
291@ = create_char PedType.Mission2 {modelId} 108 {x} 1291.748 {y} -810.5742 {z} 1088.9301
set_char_heading 291@ {heading} 87.4676
set_char_area_visible 291@ {areaId} 5
give_weapon_to_char 291@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 291@ {weaponType} WeaponType.Mp5
set_char_accuracy 291@ {accuracy} 50
set_char_shoot_rate 291@ {rate} 35
task_stay_in_same_place 291@ {state} True
set_char_decision_maker 291@ {handleOrTemplate} 36@
301@ = 0
292@ = create_char PedType.Mission2 {modelId} 110 {x} 1289.562 {y} -801.537 {z} 1088.9301
set_char_heading 292@ {heading} 155.5354
set_char_area_visible 292@ {areaId} 5
give_weapon_to_char 292@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 292@ {weaponType} WeaponType.Mp5
set_char_accuracy 292@ {accuracy} 50
set_char_shoot_rate 292@ {rate} 35
task_stay_in_same_place 292@ {state} True
set_char_decision_maker 292@ {handleOrTemplate} 36@
302@ = 0
293@ = create_char PedType.Mission2 {modelId} 110 {x} 1272.797 {y} -812.8729 {z} 1088.9301
set_char_heading 293@ {heading} 263.3181
set_char_area_visible 293@ {areaId} 5
give_weapon_to_char 293@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 293@ {weaponType} WeaponType.Mp5
set_char_accuracy 293@ {accuracy} 60
set_char_shoot_rate 293@ {rate} 45
task_stay_in_same_place 293@ {state} True
set_char_decision_maker 293@ {handleOrTemplate} 36@
303@ = 0
294@ = create_char PedType.Mission2 {modelId} 110 {x} 1292.816 {y} -821.3403 {z} 1088.9301
set_char_heading 294@ {heading} 96.7033
set_char_area_visible 294@ {areaId} 5
give_weapon_to_char 294@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 294@ {weaponType} WeaponType.Mp5
set_char_accuracy 294@ {accuracy} 60
set_char_shoot_rate 294@ {rate} 45
task_stay_in_same_place 294@ {state} True
set_char_decision_maker 294@ {handleOrTemplate} 36@
304@ = 0
295@ = create_char PedType.Mission2 {modelId} 108 {x} 1292.17 {y} -814.6696 {z} 1088.9301
set_char_heading 295@ {heading} 136.5314
set_char_area_visible 295@ {areaId} 5
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
set_char_accuracy 295@ {accuracy} 60
set_char_shoot_rate 295@ {rate} 45
task_stay_in_same_place 295@ {state} True
set_char_decision_maker 295@ {handleOrTemplate} 36@
305@ = 0
477@ = -1
478@ = -1
479@ = -1
480@ = 8000
481@ = 4000
482@ = 0
472@ = 1
488@ = 8000
157@ += 1

:MANSIO1_24465
goto @MANSIO1_28153

:MANSIO1_24472
418@ = 1280.15
419@ = -791.93
420@ = 1284.45
421@ = -795.42
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24544
goto @MANSIO1_28153

:MANSIO1_24544
mark_char_as_no_longer_needed 145@
410@ = generate_random_int_in_range 0 {max} 2
if 
  410@ == 0
goto_if_false @MANSIO1_24632
230@ = create_char PedType.Mission2 {modelId} 108 {x} 1278.6071 {y} -801.3676 {z} 1088.9301
316@ = create_char PedType.Mission3 {modelId} 195 {x} 1286.281 {y} -809.3582 {z} 1088.9301
goto @MANSIO1_24681

:MANSIO1_24632
230@ = create_char PedType.Mission2 {modelId} 108 {x} 1286.281 {y} -809.3582 {z} 1088.9301
316@ = create_char PedType.Mission3 {modelId} 195 {x} 1278.6071 {y} -801.3676 {z} 1088.9301

:MANSIO1_24681
set_char_heading 230@ {heading} 0.0
set_char_health 230@ {health} 200
set_char_max_health 230@ {maxHealth} 200
set_char_area_visible 230@ {areaId} 5
give_weapon_to_char 230@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 230@ {weaponType} WeaponType.Mp5
set_char_accuracy 230@ {accuracy} 70
set_char_shoot_rate 230@ {rate} 60
set_char_decision_maker 230@ {handleOrTemplate} 36@
if 
  410@ == 0
goto_if_false @MANSIO1_24785
task_weapon_roll 230@ {direction} True
goto @MANSIO1_24792

:MANSIO1_24785
task_weapon_roll 230@ {direction} False

:MANSIO1_24792
250@ = 0
set_char_heading 316@ {heading} 0.0
set_char_area_visible 316@ {areaId} 5
set_char_decision_maker 316@ {handleOrTemplate} 37@
320@ = 0
157@ += 1

:MANSIO1_24838
418@ = 1284.939
419@ = -799.527
420@ = 1279.67
421@ = -803.5135
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24910
goto @MANSIO1_28153

:MANSIO1_24910
413@ = 1
47@ = add_blip_for_coord 1227.226 {y} -834.4195 {z} 1083.0081
set_blip_entry_exit 47@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy
472@ = 0
488@ = 10000
157@ += 1

:MANSIO1_24986
418@ = 1284.9399
419@ = -823.43
420@ = 1280.15
421@ = -818.35
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_25058
goto @MANSIO1_28153

:MANSIO1_25058
231@ = create_char PedType.Mission2 {modelId} 110 {x} 1267.936 {y} -836.5694 {z} 1084.6331
set_char_heading 231@ {heading} 312.4274
set_char_health 231@ {health} 200
set_char_max_health 231@ {maxHealth} 200
set_char_area_visible 231@ {areaId} 5
give_weapon_to_char 231@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 231@ {weaponType} WeaponType.Mp5
set_char_accuracy 231@ {accuracy} 60
set_char_shoot_rate 231@ {rate} 60
task_toggle_duck 231@ {state} True
set_char_decision_maker 231@ {handleOrTemplate} 36@
251@ = 0
232@ = create_char PedType.Mission2 {modelId} 108 {x} 1272.9399 {y} -837.6696 {z} 1084.6331
set_char_heading 232@ {heading} 325.2802
set_char_health 232@ {health} 200
set_char_max_health 232@ {maxHealth} 200
set_char_area_visible 232@ {areaId} 5
give_weapon_to_char 232@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 232@ {weaponType} WeaponType.Mp5
set_char_accuracy 232@ {accuracy} 60
set_char_shoot_rate 232@ {rate} 60
task_toggle_duck 232@ {state} True
set_char_decision_maker 232@ {handleOrTemplate} 36@
252@ = 0
233@ = create_char PedType.Mission2 {modelId} 110 {x} 1278.936 {y} -837.8117 {z} 1084.6331
set_char_heading 233@ {heading} 354.8666
set_char_health 233@ {health} 200
set_char_max_health 233@ {maxHealth} 200
set_char_area_visible 233@ {areaId} 5
give_weapon_to_char 233@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 233@ {weaponType} WeaponType.Mp5
set_char_accuracy 233@ {accuracy} 60
set_char_shoot_rate 233@ {rate} 60
task_toggle_duck 233@ {state} True
set_char_decision_maker 233@ {handleOrTemplate} 36@
253@ = 0
234@ = create_char PedType.Mission2 {modelId} 108 {x} 1293.434 {y} -837.4308 {z} 1084.6331
set_char_heading 234@ {heading} 84.6034
set_char_health 234@ {health} 200
set_char_max_health 234@ {maxHealth} 200
set_char_area_visible 234@ {areaId} 5
give_weapon_to_char 234@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 234@ {weaponType} WeaponType.Mp5
set_char_accuracy 234@ {accuracy} 60
set_char_shoot_rate 234@ {rate} 60
task_toggle_duck 234@ {state} True
set_char_decision_maker 234@ {handleOrTemplate} 36@
254@ = 0
235@ = create_char PedType.Mission2 {modelId} 110 {x} 1288.788 {y} -832.1437 {z} 1084.6331
set_char_heading 235@ {heading} 93.3971
set_char_health 235@ {health} 200
set_char_max_health 235@ {maxHealth} 200
set_char_area_visible 235@ {areaId} 5
give_weapon_to_char 235@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 235@ {weaponType} WeaponType.Mp5
set_char_accuracy 235@ {accuracy} 60
set_char_shoot_rate 235@ {rate} 60
task_toggle_duck 235@ {state} True
set_char_decision_maker 235@ {handleOrTemplate} 36@
255@ = 0
236@ = create_char PedType.Mission2 {modelId} 108 {x} 1279.452 {y} -818.7137 {z} 1084.6331
set_char_heading 236@ {heading} 169.7489
set_char_health 236@ {health} 200
set_char_max_health 236@ {maxHealth} 200
set_char_area_visible 236@ {areaId} 5
give_weapon_to_char 236@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 236@ {weaponType} WeaponType.Mp5
set_char_accuracy 236@ {accuracy} 30
set_char_shoot_rate 236@ {rate} 50
task_toggle_duck 236@ {state} True
set_char_decision_maker 236@ {handleOrTemplate} 36@
256@ = 0
317@ = create_char PedType.Mission3 {modelId} 13 {x} 1292.736 {y} -832.9896 {z} 1084.6331
set_char_heading 317@ {heading} 90.0
set_char_area_visible 317@ {areaId} 5
set_char_decision_maker 317@ {handleOrTemplate} 37@
321@ = 0
318@ = create_char PedType.Mission3 {modelId} 195 {x} 1277.984 {y} -813.5414 {z} 1084.64
set_char_heading 318@ {heading} 180.0
set_char_area_visible 318@ {areaId} 5
set_char_decision_maker 318@ {handleOrTemplate} 37@
322@ = 0
157@ += 1

:MANSIO1_25838
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1266.533 {leftBottomY} -831.5337 {rightTopX} 1261.282 {rightTopY} -838.8454 {drawSphere} False
goto_if_false @MANSIO1_26532
237@ = create_char PedType.Mission2 {modelId} 110 {x} 1253.7581 {y} -826.5505 {z} 1083.0081
set_char_heading 237@ {heading} 197.3586
set_char_health 237@ {health} 200
set_char_max_health 237@ {maxHealth} 200
set_char_area_visible 237@ {areaId} 5
give_weapon_to_char 237@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 237@ {weaponType} WeaponType.Mp5
set_char_accuracy 237@ {accuracy} 60
set_char_shoot_rate 237@ {rate} 70
task_toggle_duck 237@ {state} True
set_char_decision_maker 237@ {handleOrTemplate} 36@
task_go_straight_to_coord 237@ {x} 1255.499 {y} -831.5446 {z} 1083.0081 {speed} MoveState.Run {time} -1
257@ = 0
238@ = create_char PedType.Mission2 {modelId} 108 {x} 1233.705 {y} -827.7943 {z} 1083.0081
set_char_heading 238@ {heading} 180.0
set_char_health 238@ {health} 200
set_char_max_health 238@ {maxHealth} 200
set_char_area_visible 238@ {areaId} 5
give_weapon_to_char 238@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 238@ {weaponType} WeaponType.Mp5
set_char_accuracy 238@ {accuracy} 60
set_char_shoot_rate 238@ {rate} 70
set_char_decision_maker 238@ {handleOrTemplate} 34@
258@ = 0
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1234.104 {y} -832.2075 {z} 1083.0081 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1238.847 {y} -833.2389 {z} 1083.0081 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 238@ {sequence} 45@
clear_sequence_task 45@
328@ = create_char PedType.Mission2 {modelId} 109 {x} 1227.226 {y} -834.4195 {z} 1083.0081
set_char_heading 328@ {heading} 270.0
set_char_proofs 328@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 328@ {handleOrTemplate} 34@
set_char_never_targetted 328@ {state} True
remove_blip 47@
329@ = add_blip_for_char 328@
set_blip_entry_exit 329@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
change_blip_display 329@ {display} BlipDisplay.MarkerOnly
516@ = 1227.3149
517@ = -831.5784
45@ = open_sequence_task 
task_weapon_roll -1 {direction} True
task_stand_still -1 {time} 2000
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.0081 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1225.194
519@ = -816.5573
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 9404
set_var_text_label s$load_text = 'MAN1_BA'
start_new_script @A_ALAP 2 200 328@ 
330@ = 1
415@ = -1
319@ = create_char PedType.Mission3 {modelId} 13 {x} 1240.835 {y} -826.6857 {z} 1082.156
set_char_heading 319@ {heading} 143.0862
set_char_area_visible 319@ {areaId} 5
set_char_decision_maker 319@ {handleOrTemplate} 37@
323@ = 0
157@ += 1

:MANSIO1_26532
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1229.934 {leftBottomY} -835.5339 {leftBottomZ} 1082.5 {rightTopX} 1224.882 {rightTopY} -838.8135 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_26750
if 
  515@ == 0
goto_if_false @MANSIO1_26621
print_now 'MAN1_21' {time} 8000 {flag} 1
515@ = 1

:MANSIO1_26621
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_26743
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1231.282
517@ = -816.6354
task_go_straight_to_coord 328@ {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
518@ = 1256.583
519@ = -812.8542
520@ = 270.0
514@ = 0

:MANSIO1_26743
157@ += 1

:MANSIO1_26750
goto @MANSIO1_28153

:MANSIO1_26757
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1228.6801 {leftBottomY} -829.9222 {leftBottomZ} 1082.5 {rightTopX} 1224.8831 {rightTopY} -825.2996 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_26922
239@ = create_char PedType.Mission2 {modelId} 108 {x} 1228.808 {y} -812.9333 {z} 1083.0081
set_char_heading 239@ {heading} 180.0
set_char_health 239@ {health} 200
set_char_max_health 239@ {maxHealth} 200
set_char_area_visible 239@ {areaId} 5
give_weapon_to_char 239@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 239@ {weaponType} WeaponType.Mp5
set_char_accuracy 239@ {accuracy} 60
set_char_shoot_rate 239@ {rate} 70
set_char_decision_maker 239@ {handleOrTemplate} 36@
task_weapon_roll 239@ {direction} True
259@ = 0
157@ += 1

:MANSIO1_26922
goto @MANSIO1_28153

:MANSIO1_26929
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1229.799 {leftBottomY} -810.6401 {leftBottomZ} 1082.5 {rightTopX} 1224.884 {rightTopY} -819.0158 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27151
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27144
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1262.6281
517@ = -805.6454
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1261.444 {y} -812.2836 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1266.928
519@ = -801.9423
520@ = 270.0
514@ = 0

:MANSIO1_27144
157@ += 1

:MANSIO1_27151
goto @MANSIO1_28153

:MANSIO1_27158
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1254.281 {leftBottomY} -810.6465 {leftBottomZ} 1082.5 {rightTopX} 1264.045 {rightTopY} -813.9205 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27380
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27366
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1274.634
517@ = -801.9045
task_go_straight_to_coord 328@ {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
518@ = 1257.3879
519@ = -789.8594
520@ = 90.0
514@ = 0
set_var_int_to_constant $load_sample = 9405
set_var_text_label s$load_text = 'MAN1_BB'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27366
157@ += 1
gosub @MANSIO1_35546

:MANSIO1_27380
goto @MANSIO1_28153

:MANSIO1_27387
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1278.469 {leftBottomY} -791.9025 {leftBottomZ} 1082.5 {rightTopX} 1285.187 {rightTopY} -786.7327 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27647
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27640
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1249.665
517@ = -782.4513
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1250.071 {y} -788.768 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1265.614
519@ = -769.7585
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 9406
set_var_text_label s$load_text = 'MAN1_BC'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27640
157@ += 1

:MANSIO1_27647
goto @MANSIO1_28153

:MANSIO1_27654
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1251.285 {leftBottomY} -775.3042 {leftBottomZ} 1082.5 {rightTopX} 1247.005 {rightTopY} -765.7498 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27876
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27869
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1269.674
517@ = -774.7773
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1269.4 {y} -769.4953 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1280.115
519@ = -781.6223
520@ = 270.0
514@ = 0

:MANSIO1_27869
157@ += 1

:MANSIO1_27876
goto @MANSIO1_28153

:MANSIO1_27883
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1260.2889 {leftBottomY} -765.4207 {leftBottomZ} 1082.5 {rightTopX} 1267.524 {rightTopY} -774.8633 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_28146
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_28139
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1301.0811
517@ = -786.3077
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1288.806 {y} -780.5795 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1300.839 {y} -781.0582 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = -1.0
514@ = 0
set_var_int_to_constant $load_sample = 9407
set_var_text_label s$load_text = 'MAN1_BD'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_28139
157@ += 1

:MANSIO1_28146
goto @MANSIO1_28153

:MANSIO1_28153
return 

:MANSIO1_28155
if 
  415@ == 0
goto_if_false @MANSIO1_28951
43@ = 0

:MANSIO1_28180
if 
  4 > 43@
goto_if_false @MANSIO1_28944
if 
  411@(43@,4i) == 1
goto_if_false @MANSIO1_28930
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28930 {caseNum1} 0 {caseLabel1} @MANSIO1_28283 {caseNum2} 1 {caseLabel2} @MANSIO1_28335 {caseNum3} 2 {caseLabel3} @MANSIO1_28610 {caseNum4} 3 {caseLabel4} @MANSIO1_28662 {caseNum5} -1 {caseLabel5} @MANSIO1_28930 {caseNum6} -1 {caseLabel6} @MANSIO1_28930 {caseNum7} -1 {caseLabel7} @MANSIO1_28930

:MANSIO1_28283
print_now 'MAN1_13' {time} 8000 {flag} 1
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28335
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_28483
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28469
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_28432
set_var_int_to_constant $load_sample = 9422
set_var_text_label s$load_text = 'MAN1_FA'
goto @MANSIO1_28454

:MANSIO1_28432
set_var_int_to_constant $load_sample = 9423
set_var_text_label s$load_text = 'MAN1_FB'

:MANSIO1_28454
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28469
415@ = 1
goto @MANSIO1_28563

:MANSIO1_28483
if 
  locate_char_on_foot_char_3d $scplayer {target} 144@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28556
set_var_int_to_constant $load_sample = 9430
set_var_text_label s$load_text = 'MAN1_FJ'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28556
415@ = 1

:MANSIO1_28563
if 
  415@ == 1
goto_if_false @MANSIO1_28603
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28603
goto @MANSIO1_28930

:MANSIO1_28610
print_now 'MAN1_20' {time} 8000 {flag} 1
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28662
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_28810
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28796
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_28759
set_var_int_to_constant $load_sample = 9428
set_var_text_label s$load_text = 'MAN1_FG'
goto @MANSIO1_28781

:MANSIO1_28759
set_var_int_to_constant $load_sample = 9429
set_var_text_label s$load_text = 'MAN1_FH'

:MANSIO1_28781
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28796
415@ = 1
goto @MANSIO1_28890

:MANSIO1_28810
if 
  locate_char_on_foot_char_3d $scplayer {target} 144@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28883
set_var_int_to_constant $load_sample = 9435
set_var_text_label s$load_text = 'MAN1_FO'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28883
415@ = 1

:MANSIO1_28890
if 
  415@ == 1
goto_if_false @MANSIO1_28930
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28930
43@ += 1
goto @MANSIO1_28180

:MANSIO1_28944
goto @MANSIO1_29024

:MANSIO1_28951
if 
  415@ == 1
goto_if_false @MANSIO1_29024
if 
  TIMERB > 8000
goto_if_false @MANSIO1_29024
if 
  416@ <> -1
goto_if_false @MANSIO1_29017
411@(416@,4i) = -1

:MANSIO1_29017
415@ = 0

:MANSIO1_29024
return 

:MANSIO1_29026
417@ = 0
if 
  is_char_in_area_2d $scplayer {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29072
417@ = 1
return 

:MANSIO1_29072
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_29127
if 
  is_char_in_area_2d 143@ {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29127
417@ = 1
return 

:MANSIO1_29127
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_29182
if 
  is_char_in_area_2d 144@ {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29182
417@ = 1
return 

:MANSIO1_29182
return 

:MANSIO1_29184
430@ = 0
431@ = 1

:MANSIO1_29198
if 
  2 > 430@
goto_if_false @MANSIO1_30961
if 
  not is_char_dead 143@(430@,3i)
goto_if_false @MANSIO1_30763
switch_start 149@(430@,3i) {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_30756 {caseNum1} 0 {caseLabel1} @MANSIO1_29433 {caseNum2} 1 {caseLabel2} @MANSIO1_29433 {caseNum3} 2 {caseLabel3} @MANSIO1_29497 {caseNum4} 3 {caseLabel4} @MANSIO1_29497 {caseNum5} 4 {caseLabel5} @MANSIO1_29559 {caseNum6} 5 {caseLabel6} @MANSIO1_29559 {caseNum7} 6 {caseLabel7} @MANSIO1_29684
switch_continued 7 {caseLabel1} @MANSIO1_29684 {caseNum2} 8 {caseLabel2} @MANSIO1_29752 {caseNum3} 9 {caseLabel3} @MANSIO1_29854 {caseNum4} 10 {caseLabel4} @MANSIO1_29907 {caseNum5} 11 {caseLabel5} @MANSIO1_29983 {caseNum6} 12 {caseLabel6} @MANSIO1_30089 {caseNum7} 13 {caseLabel7} @MANSIO1_30199 {caseNum8} 14 {caseLabel8} @MANSIO1_30266 {caseNum9} 15 {caseLabel9} @MANSIO1_30361
switch_continued 16 {caseLabel1} @MANSIO1_30550 {caseNum2} 17 {caseLabel2} @MANSIO1_30618 {caseNum3} -1 {caseLabel3} @MANSIO1_30756 {caseNum4} -1 {caseLabel4} @MANSIO1_30756 {caseNum5} -1 {caseLabel5} @MANSIO1_30756 {caseNum6} -1 {caseLabel6} @MANSIO1_30756 {caseNum7} -1 {caseLabel7} @MANSIO1_30756 {caseNum8} -1 {caseLabel8} @MANSIO1_30756 {caseNum9} -1 {caseLabel9} @MANSIO1_30756

:MANSIO1_29433
if or
  246@ <> -1
  247@ <> -1
  248@ <> -1
  249@ <> -1
goto_if_false @MANSIO1_29479
goto @MANSIO1_30756

:MANSIO1_29479
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29497
clear_char_tasks 143@(430@,3i)
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 430@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29559
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29595
gosub @MANSIO1_30963
goto @MANSIO1_29677

:MANSIO1_29595
clear_char_tasks 143@(430@,3i)
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_toggle_duck 143@(430@,3i) {state} True
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
task_achieve_heading 143@(430@,3i) {heading} 394@(433@,16f)
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29677
goto @MANSIO1_30756

:MANSIO1_29684
if 
  157@ > 0
goto_if_false @MANSIO1_29745
149@(430@,3i) += 2
if 
  432@ == 0
goto_if_false @MANSIO1_29745
412@ = 1
432@ = 1

:MANSIO1_29745
goto @MANSIO1_30756

:MANSIO1_29752
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_29801
if 
  149@(431@,3i) <> 13
goto_if_false @MANSIO1_29801
goto @MANSIO1_30756

:MANSIO1_29801
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 344@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29854
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29907
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29943
gosub @MANSIO1_30963
goto @MANSIO1_29976

:MANSIO1_29943
426@(430@,2i) = 1
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29976
goto @MANSIO1_30756

:MANSIO1_29983
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30019
gosub @MANSIO1_30963
goto @MANSIO1_30082

:MANSIO1_30019
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
task_toggle_duck 143@(430@,3i) {state} True
422@(430@,2i) = -1
345@ += 1
149@(430@,3i) += 2

:MANSIO1_30082
goto @MANSIO1_30756

:MANSIO1_30089
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30125
gosub @MANSIO1_30963
goto @MANSIO1_30192

:MANSIO1_30125
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
task_toggle_duck 143@(430@,3i) {state} True
422@(430@,2i) = -1
437@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_30192
goto @MANSIO1_30756

:MANSIO1_30199
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30248
if 
  149@(431@,3i) <> 11
goto_if_false @MANSIO1_30248
goto @MANSIO1_30756

:MANSIO1_30248
149@(430@,3i) -= 5
goto @MANSIO1_30756

:MANSIO1_30266
gosub @MANSIO1_31608
if 
  439@ == 1
goto_if_false @MANSIO1_30354
439@ = 0
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
task_toggle_duck 143@(430@,3i) {state} False
426@(430@,2i) = 0
422@(430@,2i) = -1
149@(430@,3i) += 1

:MANSIO1_30354
goto @MANSIO1_30756

:MANSIO1_30361
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30397
gosub @MANSIO1_30963
goto @MANSIO1_30543

:MANSIO1_30397
if 
  344@ == 8
goto_if_false @MANSIO1_30471
149@(430@,3i) = 16
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30457
149@(431@,3i) = 16

:MANSIO1_30457
414@ = 1
goto @MANSIO1_30543

:MANSIO1_30471
422@(430@,2i) = -1
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30532
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) -= 4
goto @MANSIO1_30543

:MANSIO1_30532
149@(430@,3i) -= 7

:MANSIO1_30543
goto @MANSIO1_30756

:MANSIO1_30550
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
433@ = 14
add_int_lvar_to_int_lvar 433@ += 430@
set_lvar_int_to_lvar_int 424@(430@,2i) = 433@
149@(430@,3i) += 1
goto @MANSIO1_30756

:MANSIO1_30618
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30654
gosub @MANSIO1_30963
goto @MANSIO1_30749

:MANSIO1_30654
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
if 
  424@(430@,2i) == 14
goto_if_false @MANSIO1_30710
task_toggle_duck 143@(430@,3i) {state} True

:MANSIO1_30710
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
task_achieve_heading 143@(430@,3i) {heading} 394@(433@,16f)
149@(430@,3i) += 1

:MANSIO1_30749
goto @MANSIO1_30756

:MANSIO1_30756
goto @MANSIO1_30940

:MANSIO1_30763
if 
  149@(430@,3i) <> -2
goto_if_false @MANSIO1_30940
switch_start 149@(430@,3i) {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_30852 {caseNum1} -1 {caseLabel1} @MANSIO1_30881 {caseNum2} -1 {caseLabel2} @MANSIO1_30940 {caseNum3} -1 {caseLabel3} @MANSIO1_30940 {caseNum4} -1 {caseLabel4} @MANSIO1_30940 {caseNum5} -1 {caseLabel5} @MANSIO1_30940 {caseNum6} -1 {caseLabel6} @MANSIO1_30940 {caseNum7} -1 {caseLabel7} @MANSIO1_30940

:MANSIO1_30852
164@(430@,3i) = 0
149@(430@,3i) = -1
goto @MANSIO1_30940

:MANSIO1_30881
if 
  10000 > 164@(430@,3i)
goto_if_false @MANSIO1_30911
goto @MANSIO1_30940

:MANSIO1_30911
remove_char_elegantly 143@(430@,3i)
mark_model_as_no_longer_needed 428@(430@,2i)
149@(430@,3i) -= 1

:MANSIO1_30940
430@ += 1
431@ -= 1
goto @MANSIO1_29198

:MANSIO1_30961
return 

:MANSIO1_30963
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
set_lvar_float_to_lvar_float 434@ = 346@(433@,16f)
set_lvar_float_to_lvar_float 435@ = 362@(433@,16f)
set_lvar_float_to_lvar_float 436@ = 378@(433@,16f)
if 
  426@(430@,2i) == 1
goto_if_false @MANSIO1_31130
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31130 {caseNum1} 2 {caseLabel1} @MANSIO1_31096 {caseNum2} 3 {caseLabel2} @MANSIO1_31113 {caseNum3} 4 {caseLabel3} @MANSIO1_31096 {caseNum4} 5 {caseLabel4} @MANSIO1_31113 {caseNum5} 6 {caseLabel5} @MANSIO1_31096 {caseNum6} 7 {caseLabel6} @MANSIO1_31113 {caseNum7} -1 {caseLabel7} @MANSIO1_31130

:MANSIO1_31096
434@ -= 3.5
goto @MANSIO1_31130

:MANSIO1_31113
434@ += 3.5
goto @MANSIO1_31130

:MANSIO1_31130
switch_start 422@(430@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31606 {caseNum1} -1 {caseLabel1} @MANSIO1_31197 {caseNum2} 0 {caseLabel2} @MANSIO1_31310 {caseNum3} 1 {caseLabel3} @MANSIO1_31361 {caseNum4} 2 {caseLabel4} @MANSIO1_31525 {caseNum5} -1 {caseLabel5} @MANSIO1_31606 {caseNum6} -1 {caseLabel6} @MANSIO1_31606 {caseNum7} -1 {caseLabel7} @MANSIO1_31606

:MANSIO1_31197
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31248
task_stay_in_same_place 143@(430@,3i) {state} True
422@(430@,2i) = 0
goto @MANSIO1_31303

:MANSIO1_31248
task_stay_in_same_place 143@(430@,3i) {state} False
task_toggle_duck 143@(430@,3i) {state} False
task_go_straight_to_coord 143@(430@,3i) {x} 434@ {y} 435@ {z} 436@ {speed} MoveState.Run {time} -2
422@(430@,2i) = 1

:MANSIO1_31303
goto @MANSIO1_31606

:MANSIO1_31310
if 
  not is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31354
164@(430@,3i) = 0
422@(430@,2i) = 2

:MANSIO1_31354
goto @MANSIO1_31606

:MANSIO1_31361
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31401
422@(430@,2i) = -1
goto @MANSIO1_31518

:MANSIO1_31401
if 
  locate_char_on_foot_3d 143@(430@,3i) {x} 434@ {y} 435@ {z} 436@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @MANSIO1_31465
422@(430@,2i) = 3
goto @MANSIO1_31518

:MANSIO1_31465
50@ = get_script_task_status 143@(430@,3i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 50@ == 7
goto_if_false @MANSIO1_31518
clear_char_tasks 143@(430@,3i)
422@(430@,2i) = -1

:MANSIO1_31518
goto @MANSIO1_31606

:MANSIO1_31525
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31565
422@(430@,2i) = 0
goto @MANSIO1_31599

:MANSIO1_31565
if 
  164@(430@,3i) > 500
goto_if_false @MANSIO1_31599
422@(430@,2i) = -1

:MANSIO1_31599
goto @MANSIO1_31606

:MANSIO1_31606
return 

:MANSIO1_31608
switch_start 437@(430@,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31862 {caseNum1} -1 {caseLabel1} @MANSIO1_31675 {caseNum2} 0 {caseLabel2} @MANSIO1_31726 {caseNum3} 1 {caseLabel3} @MANSIO1_31807 {caseNum4} -1 {caseLabel4} @MANSIO1_31862 {caseNum5} -1 {caseLabel5} @MANSIO1_31862 {caseNum6} -1 {caseLabel6} @MANSIO1_31862 {caseNum7} -1 {caseLabel7} @MANSIO1_31862

:MANSIO1_31675
if 
  not is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31719
164@(430@,3i) = 0
437@(430@,2i) += 1

:MANSIO1_31719
goto @MANSIO1_31862

:MANSIO1_31726
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31766
437@(430@,2i) -= 1
goto @MANSIO1_31800

:MANSIO1_31766
if 
  164@(430@,3i) > 300
goto_if_false @MANSIO1_31800
437@(430@,2i) += 1

:MANSIO1_31800
goto @MANSIO1_31862

:MANSIO1_31807
gosub @MANSIO1_31864
if 
  439@ == 0
goto_if_false @MANSIO1_31855
164@(430@,3i) = 150
437@(430@,2i) -= 1

:MANSIO1_31855
goto @MANSIO1_31862

:MANSIO1_31862
return 

:MANSIO1_31864
439@ = 0
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_32394 {caseNum1} 2 {caseLabel1} @MANSIO1_31934 {caseNum2} 3 {caseLabel2} @MANSIO1_32013 {caseNum3} 4 {caseLabel3} @MANSIO1_32092 {caseNum4} 5 {caseLabel4} @MANSIO1_32164 {caseNum5} 6 {caseLabel5} @MANSIO1_32243 {caseNum6} 7 {caseLabel6} @MANSIO1_32315 {caseNum7} -1 {caseLabel7} @MANSIO1_32394

:MANSIO1_31934
if and
  296@ == -1
  297@ == -1
goto_if_false @MANSIO1_32006
439@ = 1
440@ = 1271.3409
441@ = -785.5189
442@ = 1278.642
443@ = -798.1946

:MANSIO1_32006
goto @MANSIO1_32394

:MANSIO1_32013
if and
  298@ == -1
  299@ == -1
goto_if_false @MANSIO1_32085
439@ = 1
440@ = 1285.97
441@ = -785.5347
442@ = 1293.101
443@ = -799.4673

:MANSIO1_32085
goto @MANSIO1_32394

:MANSIO1_32092
if 
  300@ == -1
goto_if_false @MANSIO1_32157
439@ = 1
440@ = 1271.417
441@ = -799.7592
442@ = 1278.639
443@ = -810.0243

:MANSIO1_32157
goto @MANSIO1_32394

:MANSIO1_32164
if and
  301@ == -1
  302@ == -1
goto_if_false @MANSIO1_32236
439@ = 1
440@ = 1285.959
441@ = -800.8917
442@ = 1293.121
443@ = -811.5349

:MANSIO1_32236
goto @MANSIO1_32394

:MANSIO1_32243
if 
  303@ == -1
goto_if_false @MANSIO1_32308
439@ = 1
440@ = 1271.434
441@ = -811.7203
442@ = 1278.597
443@ = -822.8848

:MANSIO1_32308
goto @MANSIO1_32394

:MANSIO1_32315
if and
  304@ == -1
  305@ == -1
goto_if_false @MANSIO1_32387
439@ = 1
440@ = 1285.944
441@ = -812.8881
442@ = 1293.238
443@ = -823.5223

:MANSIO1_32387
goto @MANSIO1_32394

:MANSIO1_32394
if 
  439@ == 1
goto_if_false @MANSIO1_32519
43@ = 0

:MANSIO1_32419
if 
  20 > 43@
goto_if_false @MANSIO1_32519
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_32505
if 
  is_char_in_area_2d 226@(43@,20i) {leftBottomX} 440@ {leftBottomY} 441@ {rightTopX} 442@ {rightTopY} 443@ {drawSphere} False
goto_if_false @MANSIO1_32505
439@ = 0
43@ = 20

:MANSIO1_32505
43@ += 1
goto @MANSIO1_32419

:MANSIO1_32519
if 
  439@ == 1
goto_if_false @MANSIO1_32644
43@ = 0

:MANSIO1_32544
if 
  3 > 43@
goto_if_false @MANSIO1_32644
if 
  not is_char_dead 474@(43@,3i)
goto_if_false @MANSIO1_32630
if 
  is_char_in_area_2d 474@(43@,3i) {leftBottomX} 440@ {leftBottomY} 441@ {rightTopX} 442@ {rightTopY} 443@ {drawSphere} False
goto_if_false @MANSIO1_32630
439@ = 0
43@ = 2

:MANSIO1_32630
43@ += 1
goto @MANSIO1_32544

:MANSIO1_32644
if 
  439@ == 1
goto_if_false @MANSIO1_32860
344@ += 1
if 
  not is_message_being_displayed 
goto_if_false @MANSIO1_32860
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@(430@,3i) {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_32860
if 
  430@ == 0
goto_if_false @MANSIO1_32771
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
goto @MANSIO1_32809

:MANSIO1_32771
452@ += 4
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
452@ -= 4

:MANSIO1_32809
start_new_script @A_ALAP 2 100 143@(430@,3i) 
452@ += 1
if 
  452@ == 4
goto_if_false @MANSIO1_32860
452@ = 0

:MANSIO1_32860
return 

:MANSIO1_32862
43@ = 0

:MANSIO1_32869
if 
  20 > 43@
goto_if_false @MANSIO1_33074
switch_start 246@(43@,20i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33060 {caseNum1} 0 {caseLabel1} @MANSIO1_32954 {caseNum2} 1 {caseLabel2} @MANSIO1_33010 {caseNum3} -1 {caseLabel3} @MANSIO1_33060 {caseNum4} -1 {caseLabel4} @MANSIO1_33060 {caseNum5} -1 {caseLabel5} @MANSIO1_33060 {caseNum6} -1 {caseLabel6} @MANSIO1_33060 {caseNum7} -1 {caseLabel7} @MANSIO1_33060

:MANSIO1_32954
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_32988
goto @MANSIO1_33060
goto @MANSIO1_33010

:MANSIO1_32988
266@(43@,20i) = 0
246@(43@,20i) = 1

:MANSIO1_33010
if 
  266@(43@,20i) > 2500
goto_if_false @MANSIO1_33053
mark_char_as_no_longer_needed 226@(43@,20i)
246@(43@,20i) = -1

:MANSIO1_33053
goto @MANSIO1_33060

:MANSIO1_33060
43@ += 1
goto @MANSIO1_32869

:MANSIO1_33074
43@ = 0

:MANSIO1_33081
if 
  10 > 43@
goto_if_false @MANSIO1_33286
switch_start 296@(43@,10i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33272 {caseNum1} 0 {caseLabel1} @MANSIO1_33166 {caseNum2} 1 {caseLabel2} @MANSIO1_33222 {caseNum3} -1 {caseLabel3} @MANSIO1_33272 {caseNum4} -1 {caseLabel4} @MANSIO1_33272 {caseNum5} -1 {caseLabel5} @MANSIO1_33272 {caseNum6} -1 {caseLabel6} @MANSIO1_33272 {caseNum7} -1 {caseLabel7} @MANSIO1_33272

:MANSIO1_33166
if 
  not is_char_dead 286@(43@,10i)
goto_if_false @MANSIO1_33200
goto @MANSIO1_33272
goto @MANSIO1_33222

:MANSIO1_33200
306@(43@,10i) = 0
296@(43@,10i) = 1

:MANSIO1_33222
if 
  306@(43@,10i) > 1800
goto_if_false @MANSIO1_33265
mark_char_as_no_longer_needed 286@(43@,10i)
296@(43@,10i) = -1

:MANSIO1_33265
goto @MANSIO1_33272

:MANSIO1_33272
43@ += 1
goto @MANSIO1_33081

:MANSIO1_33286
43@ = 0

:MANSIO1_33293
if 
  4 > 43@
goto_if_false @MANSIO1_33498
switch_start 320@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33484 {caseNum1} 0 {caseLabel1} @MANSIO1_33378 {caseNum2} 1 {caseLabel2} @MANSIO1_33434 {caseNum3} -1 {caseLabel3} @MANSIO1_33484 {caseNum4} -1 {caseLabel4} @MANSIO1_33484 {caseNum5} -1 {caseLabel5} @MANSIO1_33484 {caseNum6} -1 {caseLabel6} @MANSIO1_33484 {caseNum7} -1 {caseLabel7} @MANSIO1_33484

:MANSIO1_33378
if 
  not is_char_dead 316@(43@,4i)
goto_if_false @MANSIO1_33412
goto @MANSIO1_33484
goto @MANSIO1_33434

:MANSIO1_33412
324@(43@,4i) = 0
320@(43@,4i) = 1

:MANSIO1_33434
if 
  324@(43@,4i) > 1800
goto_if_false @MANSIO1_33477
mark_char_as_no_longer_needed 316@(43@,4i)
320@(43@,4i) = -1

:MANSIO1_33477
goto @MANSIO1_33484

:MANSIO1_33484
43@ += 1
goto @MANSIO1_33293

:MANSIO1_33498
return 

:MANSIO1_33500
$x, $y, $z = get_char_coordinates $scplayer
if 
  $z > 1089.0
goto_if_false @MANSIO1_33909
if 
  $y > -784.0
goto_if_false @MANSIO1_33570
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33570
if or
  1271.0 > $x
  $x > 1294.0
goto_if_false @MANSIO1_33615
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33615
if 
  $y > -824.0
goto_if_false @MANSIO1_33895
if 
  1279.0 > $x
goto_if_false @MANSIO1_33741
if 
  $y > -799.0
goto_if_false @MANSIO1_33692
469@ = 1
goto @MANSIO1_33734

:MANSIO1_33692
if 
  $y > -811.0
goto_if_false @MANSIO1_33727
469@ = 3
goto @MANSIO1_33734

:MANSIO1_33727
469@ = 5

:MANSIO1_33734
goto @MANSIO1_33888

:MANSIO1_33741
if 
  $x > 1285.0
goto_if_false @MANSIO1_33846
if 
  $y > -800.0
goto_if_false @MANSIO1_33797
469@ = 2
goto @MANSIO1_33839

:MANSIO1_33797
if 
  $y > -812.0
goto_if_false @MANSIO1_33832
469@ = 4
goto @MANSIO1_33839

:MANSIO1_33832
469@ = 6

:MANSIO1_33839
goto @MANSIO1_33888

:MANSIO1_33846
if 
  $y > -806.0
goto_if_false @MANSIO1_33881
469@ = 7
goto @MANSIO1_33888

:MANSIO1_33881
469@ = 8

:MANSIO1_33888
goto @MANSIO1_33902

:MANSIO1_33895
469@ = 9

:MANSIO1_33902
goto @MANSIO1_33923

:MANSIO1_33909
489@ = 1
469@ = 10

:MANSIO1_33923
if 
  472@ == 1
goto_if_false @MANSIO1_33957
473@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_33964

:MANSIO1_33957
473@ = 0

:MANSIO1_33964
470@ = 0
if 
  489@ <> 1
goto_if_false @MANSIO1_34275
switch_start 469@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34275 {caseNum1} 0 {caseLabel1} @MANSIO1_34117 {caseNum2} 1 {caseLabel2} @MANSIO1_34138 {caseNum3} 2 {caseLabel3} @MANSIO1_34138 {caseNum4} 3 {caseLabel4} @MANSIO1_34138 {caseNum5} 4 {caseLabel5} @MANSIO1_34191 {caseNum6} 5 {caseLabel6} @MANSIO1_34191 {caseNum7} 6 {caseLabel7} @MANSIO1_34212
switch_continued 7 {caseLabel1} @MANSIO1_34138 {caseNum2} 8 {caseLabel2} @MANSIO1_34233 {caseNum3} 9 {caseLabel3} @MANSIO1_34233 {caseNum4} 10 {caseLabel4} @MANSIO1_34254 {caseNum5} -1 {caseLabel5} @MANSIO1_34275 {caseNum6} -1 {caseLabel6} @MANSIO1_34275 {caseNum7} -1 {caseLabel7} @MANSIO1_34275 {caseNum8} -1 {caseLabel8} @MANSIO1_34275 {caseNum9} -1 {caseLabel9} @MANSIO1_34275

:MANSIO1_34117
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 2
goto @MANSIO1_34275

:MANSIO1_34138
if 
  473@ == 0
goto_if_false @MANSIO1_34170
set_local_var_bit_const 470@ {bitIndex} 2
goto @MANSIO1_34177

:MANSIO1_34170
set_local_var_bit_const 470@ {bitIndex} 5

:MANSIO1_34177
set_local_var_bit_const 470@ {bitIndex} 3
goto @MANSIO1_34275

:MANSIO1_34191
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 3
goto @MANSIO1_34275

:MANSIO1_34212
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 0
goto @MANSIO1_34275

:MANSIO1_34233
set_local_var_bit_const 470@ {bitIndex} 0
set_local_var_bit_const 470@ {bitIndex} 4
goto @MANSIO1_34275

:MANSIO1_34254
set_local_var_bit_const 470@ {bitIndex} 2
set_local_var_bit_const 470@ {bitIndex} 4
goto @MANSIO1_34275

:MANSIO1_34275
471@ = 1
return 

:MANSIO1_34284
486@ = 0

:MANSIO1_34291
if 
  3 > 486@
goto_if_false @MANSIO1_35149
if 
  not is_char_dead 474@(486@,3i)
goto_if_false @MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34530 {caseNum1} 1 {caseLabel1} @MANSIO1_34396 {caseNum2} -1 {caseLabel2} @MANSIO1_34530 {caseNum3} -1 {caseLabel3} @MANSIO1_34530 {caseNum4} -1 {caseLabel4} @MANSIO1_34530 {caseNum5} -1 {caseLabel5} @MANSIO1_34530 {caseNum6} -1 {caseLabel6} @MANSIO1_34530 {caseNum7} -1 {caseLabel7} @MANSIO1_34530

:MANSIO1_34396
if 
  4 > 335@
goto_if_false @MANSIO1_34523
if 
  not is_message_being_displayed 
goto_if_false @MANSIO1_34523
if 
  locate_char_any_means_char_2d 474@(486@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO1_34523
set_var_int_to_lvar_int $load_sample = 331@(335@,4i)
set_var_text_label s$load_text = 336@(335@,4s)
start_new_script @A_ALAP 2 50 474@(486@,3i) 
477@(486@,3i) = 0
335@ += 1

:MANSIO1_34523
goto @MANSIO1_34530

:MANSIO1_34530
goto @MANSIO1_35135

:MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_35113 {caseNum1} -2 {caseLabel1} @MANSIO1_34708 {caseNum2} -1 {caseLabel2} @MANSIO1_34604 {caseNum3} -1 {caseLabel3} @MANSIO1_35135 {caseNum4} -1 {caseLabel4} @MANSIO1_35135 {caseNum5} -1 {caseLabel5} @MANSIO1_35135 {caseNum6} -1 {caseLabel6} @MANSIO1_35135 {caseNum7} -1 {caseLabel7} @MANSIO1_35135

:MANSIO1_34604
if 
  is_int_lvar_greater_than_int_lvar 488@ > 480@(486@,3i)
goto_if_false @MANSIO1_34634
goto @MANSIO1_35135

:MANSIO1_34634
remove_char_elegantly 474@(486@,3i)
if 
  486@ == 2
goto_if_false @MANSIO1_34708
if 
  472@ == 0
goto_if_false @MANSIO1_34697
477@(486@,3i) += 1
goto @MANSIO1_34708

:MANSIO1_34697
477@(486@,3i) -= 1

:MANSIO1_34708
if 
  489@ <> 1
goto_if_false @MANSIO1_35092
if 
  471@ == 0
goto_if_false @MANSIO1_34751
gosub @MANSIO1_33500

:MANSIO1_34751
43@ = 0

:MANSIO1_34758
if 
  6 > 43@
goto_if_false @MANSIO1_35106
if 
  is_local_var_bit_set_lvar 470@ {var_bitIndex} 43@
goto_if_false @MANSIO1_35092
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 487@
goto_if_false @MANSIO1_35092
if 
  not is_point_obscured_by_a_mission_entity 490@(43@,6f) {y} 496@(43@,6f) {z} 502@(43@,6f) {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 0.0
goto_if_false @MANSIO1_35092
create_char PedType.Mission2 {modelId} 108 {x} 490@(43@,6f) {y} 496@(43@,6f) {z} 502@(43@,6f) {var_handle} 474@(486@,3i)
set_char_health 474@(486@,3i) {health} 200
set_char_max_health 474@(486@,3i) {maxHealth} 200
set_char_heading 474@(486@,3i) {heading} 508@(43@,6f)
set_char_area_visible 474@(486@,3i) {areaId} 5
give_weapon_to_char 474@(486@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 474@(486@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 474@(486@,3i) {handleOrTemplate} 36@
set_char_drops_weapons_when_dead 474@(486@,3i) {state} False
task_kill_char_on_foot 474@(486@,3i) {target} $scplayer
set_char_accuracy 474@(486@,3i) {accuracy} 50
set_char_shoot_rate 474@(486@,3i) {rate} 60
if 
  486@ == 0
goto_if_false @MANSIO1_35066
477@(486@,3i) = 1
goto @MANSIO1_35077

:MANSIO1_35066
477@(486@,3i) = 0

:MANSIO1_35077
set_lvar_int_to_lvar_int 487@ = 43@
43@ = 5

:MANSIO1_35092
43@ += 1
goto @MANSIO1_34758

:MANSIO1_35106
goto @MANSIO1_35135

:MANSIO1_35113
480@(486@,3i) = 0
477@(486@,3i) = -1

:MANSIO1_35135
486@ += 1
goto @MANSIO1_34291

:MANSIO1_35149
return 

:MANSIO1_35151
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_35544
switch_start 514@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_35544 {caseNum1} 0 {caseLabel1} @MANSIO1_35230 {caseNum2} 1 {caseLabel2} @MANSIO1_35514 {caseNum3} -1 {caseLabel3} @MANSIO1_35544 {caseNum4} -1 {caseLabel4} @MANSIO1_35544 {caseNum5} -1 {caseLabel5} @MANSIO1_35544 {caseNum6} -1 {caseLabel6} @MANSIO1_35544 {caseNum7} -1 {caseLabel7} @MANSIO1_35544

:MANSIO1_35230
if 
  not locate_char_on_foot_2d 328@ {x} 516@ {y} 517@ {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @MANSIO1_35271
goto @MANSIO1_35544

:MANSIO1_35271
if 
  518@ <> -1.0
goto_if_false @MANSIO1_35369
if 
  515@ == 0
goto_if_false @MANSIO1_35333
print_now 'MAN1_21' {time} 8000 {flag} 1
515@ = 1

:MANSIO1_35333
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
goto @MANSIO1_35500

:MANSIO1_35369
disable_all_entry_exits False
switch_entry_exit 'MDDOGS' {state} True
47@ = add_blip_for_coord 1298.74 {y} -795.9946 {z} 1083.0081
set_blip_entry_exit 47@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
print_now 'MAN1_22' {time} 8000 {flag} 1
set_char_coordinates 328@ {x} 1261.031 {y} -815.666 {z} 83.1484
set_char_heading 328@ {heading} 65.0097
set_char_area_visible 328@ {areaId} 0
freeze_char_position_and_dont_load_collision 328@ {state} True
514@ = 1
goto @MANSIO1_35544

:MANSIO1_35500
514@ = -1
goto @MANSIO1_35544

:MANSIO1_35514
48@ = get_area_visible 
if 
  48@ == 0
goto_if_false @MANSIO1_35544
514@ = 2

:MANSIO1_35544
return 

:MANSIO1_35546
delete_char 143@
delete_char 144@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 356
43@ = 0

:MANSIO1_35576
if 
  10 > 43@
goto_if_false @MANSIO1_35617
delete_char 286@(43@,10i)
43@ += 1
goto @MANSIO1_35576

:MANSIO1_35617
43@ = 0

:MANSIO1_35624
if 
  13 > 43@
goto_if_false @MANSIO1_35665
mark_char_as_no_longer_needed 226@(43@,20i)
43@ += 1
goto @MANSIO1_35624

:MANSIO1_35665
mark_char_as_no_longer_needed 474@
mark_char_as_no_longer_needed 475@
mark_char_as_no_longer_needed 476@
mark_char_as_no_longer_needed 316@
mark_char_as_no_longer_needed 317@
mark_char_as_no_longer_needed 318@
mark_char_as_no_longer_needed 319@
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 195
remove_decision_maker 37@
remove_decision_maker 35@
request_model 18
request_model 19
request_model 63
request_model 139
521@ = 1
return 

:MANSIO1_35745
switch_start 521@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_36515 {caseNum1} 1 {caseLabel1} @MANSIO1_35808 {caseNum2} 2 {caseLabel2} @MANSIO1_36227 {caseNum3} -1 {caseLabel3} @MANSIO1_36515 {caseNum4} -1 {caseLabel4} @MANSIO1_36515 {caseNum5} -1 {caseLabel5} @MANSIO1_36515 {caseNum6} -1 {caseLabel6} @MANSIO1_36515 {caseNum7} -1 {caseLabel7} @MANSIO1_36515

:MANSIO1_35808
240@ = create_char PedType.Mission2 {modelId} 110 {x} 1260.064 {y} -793.2798 {z} 1083.241
set_char_heading 240@ {heading} 290.4863
set_char_health 240@ {health} 200
set_char_max_health 240@ {maxHealth} 200
set_char_area_visible 240@ {areaId} 5
give_weapon_to_char 240@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 240@ {weaponType} WeaponType.Mp5
set_char_accuracy 240@ {accuracy} 80
set_char_shoot_rate 240@ {rate} 60
set_char_decision_maker 240@ {handleOrTemplate} 36@
260@ = 0
241@ = create_char PedType.Mission2 {modelId} 110 {x} 1257.702 {y} -767.9689 {z} 1083.0081
set_char_heading 241@ {heading} 119.2357
set_char_health 241@ {health} 200
set_char_max_health 241@ {maxHealth} 200
set_char_area_visible 241@ {areaId} 5
give_weapon_to_char 241@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 241@ {weaponType} WeaponType.Mp5
set_char_accuracy 241@ {accuracy} 70
set_char_shoot_rate 241@ {rate} 50
set_char_decision_maker 241@ {handleOrTemplate} 36@
261@ = 0
242@ = create_char PedType.Mission2 {modelId} 110 {x} 1289.814 {y} -778.2963 {z} 1083.0081
set_char_heading 242@ {heading} 67.6874
set_char_health 242@ {health} 200
set_char_max_health 242@ {maxHealth} 200
set_char_area_visible 242@ {areaId} 5
give_weapon_to_char 242@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 242@ {weaponType} WeaponType.Mp5
set_char_accuracy 242@ {accuracy} 70
set_char_shoot_rate 242@ {rate} 60
set_char_decision_maker 242@ {handleOrTemplate} 36@
262@ = 0
243@ = create_char PedType.Mission2 {modelId} 110 {x} 1282.886 {y} -779.3019 {z} 1083.015
set_char_heading 243@ {heading} 57.042
set_char_health 243@ {health} 200
set_char_max_health 243@ {maxHealth} 200
set_char_area_visible 243@ {areaId} 5
give_weapon_to_char 243@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 243@ {weaponType} WeaponType.Mp5
set_char_accuracy 243@ {accuracy} 70
set_char_shoot_rate 243@ {rate} 60
set_char_decision_maker 243@ {handleOrTemplate} 36@
263@ = 0
521@ += 1

:MANSIO1_36227
if or
  not has_model_loaded 18
  not has_model_loaded 19
  not has_model_loaded 63
  not has_model_loaded 139
goto_if_false @MANSIO1_36262
goto @MANSIO1_36515

:MANSIO1_36262
522@ = create_char PedType.Mission3 {modelId} 19 {x} 1275.155 {y} -788.5061 {z} 1083.0081
set_char_heading 522@ {heading} 152.55
set_char_area_visible 522@ {areaId} 5
set_char_decision_maker 522@ {handleOrTemplate} 38@
523@ = create_char PedType.Mission3 {modelId} 63 {x} 1274.54 {y} -790.0915 {z} 1083.0081
set_char_heading 523@ {heading} 349.0896
set_char_area_visible 523@ {areaId} 5
set_char_decision_maker 523@ {handleOrTemplate} 38@
524@ = create_char PedType.Mission3 {modelId} 18 {x} 1273.2791 {y} -788.6833 {z} 1083.0081
set_char_heading 524@ {heading} 221.2157
set_char_area_visible 524@ {areaId} 5
set_char_decision_maker 524@ {handleOrTemplate} 38@
525@ = create_char PedType.Mission3 {modelId} 139 {x} 1261.499 {y} -788.9477 {z} 1083.015
set_char_heading 525@ {heading} 154.0331
set_char_area_visible 525@ {areaId} 5
set_char_decision_maker 525@ {handleOrTemplate} 38@
526@ = create_char PedType.Mission3 {modelId} 18 {x} 1260.887 {y} -790.43 {z} 1083.015
set_char_heading 526@ {heading} 332.9453
set_char_area_visible 526@ {areaId} 5
set_char_decision_maker 526@ {handleOrTemplate} 38@
521@ = 0

:MANSIO1_36515
return 

:MANSIO1_36517
clear_prints 
48@ = 5

:MANSIO1_36526
if 
  48@ == 5
goto_if_false @MANSIO1_36563
wait 0
48@ = get_char_area_visible $scplayer
goto @MANSIO1_36526

:MANSIO1_36563
switch_audio_zone 'MADDOGL' {state} False
do_fade 0 {direction} Fade.Out

:MANSIO1_36582
if 
  get_fading_status 
goto_if_false @MANSIO1_36606
wait 0
goto @MANSIO1_36582

:MANSIO1_36606
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
clear_area_of_cars 1239.9041 {leftBottomY} -800.9069 {leftBottomZ} 80.0 {rightTopX} 1261.751 {rightTopY} -817.216 {rightTopZ} 90.0
set_player_control $player1 {state} False
switch_widescreen True
gosub @MANSIO1_38446
set_car_density_multiplier 0.5
request_model 603
request_model 555
request_car_recording 708

:MANSIO1_36704
if or
  not has_model_loaded 603
  not has_model_loaded 555
  not has_car_recording_been_loaded 708
goto_if_false @MANSIO1_36741
wait 0
goto @MANSIO1_36704

:MANSIO1_36741
load_scene 1265.009 {y} -816.3813 {z} 83.6305
527@ = create_car 603 {x} 1250.519 {y} -812.1237 {z} 83.1484
set_car_heading 527@ {heading} 162.4757
custom_plate_for_next_car 555 {text} "J_LOMAX"
set_car_model_components 555 {component1} 1 {component2} 1
528@ = create_car 555 {x} 1244.026 {y} -808.5705 {z} 83.1484
set_car_heading 528@ {heading} 177.4448
change_car_colour 528@ {color1} 126 {color2} 0
set_radio_channel RadioChannel.BounceFM
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_36938
clear_char_tasks_immediately 328@
set_char_decision_maker 328@ {handleOrTemplate} 34@
freeze_char_position_and_dont_load_collision 328@ {state} False
set_char_area_visible 328@ {areaId} 0
set_char_coordinates 328@ {x} 1268.7 {y} -813.0891 {z} 83.1484
set_char_heading 328@ {heading} 90.0
remove_blip 329@

:MANSIO1_36938
set_char_coordinates $scplayer {x} 1268.7 {y} -813.0891 {z} 83.1484
set_char_heading $scplayer {heading} 90.0
camera_reset_new_scriptables 
camera_set_shake_simulation_simple 1 {timeInMs} 50000.0 {intensity} 0.5
set_fixed_camera_position 1265.009 {y} -816.3813 {z} 83.6305 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1264.046 {y} -816.1189 {z} 83.6842 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MANSIO1_37042
if 
  get_fading_status 
goto_if_false @MANSIO1_37066
wait 0
goto @MANSIO1_37042

:MANSIO1_37066
if and
  not is_char_dead 328@
  not is_car_dead 527@
goto_if_false @MANSIO1_37177
45@ = open_sequence_task 
task_stand_still -1 {time} 1500
task_enter_car_as_driver -1 {vehicle} 527@ {time} 9999
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
45@ = open_sequence_task 
task_stand_still -1 {time} 7000
task_go_straight_to_coord -1 {x} 1251.697 {y} -812.287 {z} 83.1484 {speed} MoveState.Run {time} -2
task_look_at_char -1 {target} 328@ {time} 1500
close_sequence_task 45@

:MANSIO1_37177
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
TIMERA = 0

:MANSIO1_37197
if 
  1500 > TIMERA
goto_if_false @MANSIO1_37227
wait 0
goto @MANSIO1_37197

:MANSIO1_37227
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1265.009 {fromY} -816.3813 {fromZ} 83.6305 {toX} 1253.448 {toY} -815.4342 {toZ} 83.4116 {time} 7500 {ease} True
camera_set_vector_track 1264.046 {fromY} -816.1189 {fromZ} 83.6842 {toX} 1252.86 {toY} -814.6353 {toZ} 83.5422 {time} 7500 {ease} True
49@ = 0

:MANSIO1_37316
if 
  49@ == 0
goto_if_false @MANSIO1_37384
wait 0
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37377
if 
  is_char_in_any_car 328@
goto_if_false @MANSIO1_37377
49@ = 1

:MANSIO1_37377
goto @MANSIO1_37316

:MANSIO1_37384
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_37456
start_playback_recorded_car 527@ {path} 708
set_car_forward_speed 527@ {forwardSpeed} 40.0
lock_car_doors 527@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37456
set_char_proofs 328@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_37456
TIMERA = 0

:MANSIO1_37463
if 
  5000 > TIMERA
goto_if_false @MANSIO1_37493
wait 0
goto @MANSIO1_37463

:MANSIO1_37493
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_37517
329@ = add_blip_for_car 527@

:MANSIO1_37517
print_now 'MAN1_23' {time} 8000 {flag} 1
set_player_control $player1 {state} True
switch_widescreen False
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_max_wanted_level 6
set_car_density_multiplier 0.5

:MANSIO1_37561
wait 0
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37678
if 
  not locate_char_any_means_char_2d $scplayer {target} 328@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @MANSIO1_37640
52@ = 1
set_lvar_text_label 53@s = 'MAN1_24'
goto @MANSIO1_38488

:MANSIO1_37640
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO1_37664
530@ = store_car_char_is_in_no_save $scplayer

:MANSIO1_37664
gosub @MANSIO1_38303
goto @MANSIO1_38296

:MANSIO1_37678
remove_blip 329@
TIMERA = 0

:MANSIO1_37690
if 
  2000 > TIMERA
goto_if_false @MANSIO1_37720
wait 0
goto @MANSIO1_37690

:MANSIO1_37720
do_fade 0 {direction} Fade.Out

:MANSIO1_37726
if 
  get_fading_status 
goto_if_false @MANSIO1_37750
wait 0
goto @MANSIO1_37726

:MANSIO1_37750
529@ = get_radio_channel 
set_radio_channel RadioChannel.UserTracks
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_wanted_level $player1
switch_widescreen True
if 
  not is_car_dead 530@
goto_if_false @MANSIO1_37851
531@ = get_car_health 530@
if 
  500 > 531@
goto_if_false @MANSIO1_37841
set_car_health 530@ {health} 500

:MANSIO1_37841
set_car_forward_speed 530@ {forwardSpeed} 0.0

:MANSIO1_37851
request_model #DRG_NU_EXT

:MANSIO1_37856
if 
  not has_model_loaded #DRG_NU_EXT
goto_if_false @MANSIO1_37883
wait 0
goto @MANSIO1_37856

:MANSIO1_37883
set_fixed_camera_position 1221.787 {y} -856.6817 {z} 99.5425 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1222.33 {y} -855.9062 {z} 99.2196 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 1248.908 {y} -804.626 {z} 87.535 {heading} 297.0012
TIMERA = 0

:MANSIO1_37963
if 
  500 > TIMERA
goto_if_false @MANSIO1_37993
wait 0
goto @MANSIO1_37963

:MANSIO1_37993
do_fade 500 {direction} Fade.In

:MANSIO1_38000
if 
  get_fading_status 
goto_if_false @MANSIO1_38024
wait 0
goto @MANSIO1_38000

:MANSIO1_38024
skip_cutscene_start_internal @MANSIO1_38115
print_now 'MAN1_30' {time} 7000 {flag} 1
TIMERA = 0

:MANSIO1_38054
if 
  7000 > TIMERA
goto_if_false @MANSIO1_38084
wait 0
goto @MANSIO1_38054

:MANSIO1_38084
do_fade 500 {direction} Fade.Out

:MANSIO1_38091
if 
  get_fading_status 
goto_if_false @MANSIO1_38115
wait 0
goto @MANSIO1_38091

:MANSIO1_38115
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSIO1_38123
if 
  get_fading_status 
goto_if_false @MANSIO1_38147
wait 0
goto @MANSIO1_38123

:MANSIO1_38147
mark_model_as_no_longer_needed #DRG_NU_EXT
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$heading = get_char_heading $scplayer
load_scene_in_direction $player_x {y} $player_y {z} $player_z {heading} $heading
TIMERA = 0

:MANSIO1_38208
if 
  500 > TIMERA
goto_if_false @MANSIO1_38238
wait 0
goto @MANSIO1_38208

:MANSIO1_38238
set_radio_channel 529@
do_fade 500 {direction} Fade.In

:MANSIO1_38250
if 
  get_fading_status 
goto_if_false @MANSIO1_38274
wait 0
goto @MANSIO1_38250

:MANSIO1_38274
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @MANSIO1_38560

:MANSIO1_38296
goto @MANSIO1_37561

:MANSIO1_38303
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_38444
switch_start 532@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_38444 {caseNum1} 0 {caseLabel1} @MANSIO1_38382 {caseNum2} -1 {caseLabel2} @MANSIO1_38444 {caseNum3} -1 {caseLabel3} @MANSIO1_38444 {caseNum4} -1 {caseLabel4} @MANSIO1_38444 {caseNum5} -1 {caseLabel5} @MANSIO1_38444 {caseNum6} -1 {caseLabel6} @MANSIO1_38444 {caseNum7} -1 {caseLabel7} @MANSIO1_38444

:MANSIO1_38382
if 
  is_playback_going_on_for_car 527@
goto_if_false @MANSIO1_38405
goto @MANSIO1_38444

:MANSIO1_38405
set_car_cruise_speed 527@ {maxSpeed} 25.0
task_car_drive_wander 328@ {vehicle} 527@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
532@ += 1
goto @MANSIO1_38444

:MANSIO1_38444
return 

:MANSIO1_38446
remove_blip 47@
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 353
remove_decision_maker 36@
return 

:MANSIO1_38488
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
if 
  52@ == 1
goto_if_false @MANSIO1_38558
print_now 53@s {time} 8000 {flag} 1

:MANSIO1_38558
return 

:MANSIO1_38560
43@ = 0

:MANSIO1_38567
if 
  16 > 43@
goto_if_false @MANSIO1_38700
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_38677
clear_char_tasks 226@(43@,20i)
set_char_accuracy 226@(43@,20i) {accuracy} 20
set_char_shoot_rate 226@(43@,20i) {rate} 25
task_stay_in_same_place 226@(43@,20i) {state} True
task_kill_char_on_foot 226@(43@,20i) {target} $scplayer
set_char_keep_task 226@(43@,20i) {state} True
goto @MANSIO1_38686

:MANSIO1_38677
mark_char_as_no_longer_needed 226@(43@,20i)

:MANSIO1_38686
43@ += 1
goto @MANSIO1_38567

:MANSIO1_38700
43@ = 0

:MANSIO1_38707
if 
  10 > 43@
goto_if_false @MANSIO1_38840
if 
  not is_char_dead 286@(43@,10i)
goto_if_false @MANSIO1_38817
clear_char_tasks 286@(43@,10i)
set_char_accuracy 226@(43@,20i) {accuracy} 20
set_char_shoot_rate 226@(43@,20i) {rate} 25
task_stay_in_same_place 286@(43@,10i) {state} True
task_kill_char_on_foot 286@(43@,10i) {target} $scplayer
set_char_keep_task 286@(43@,10i) {state} True
goto @MANSIO1_38826

:MANSIO1_38817
mark_char_as_no_longer_needed 286@(43@,10i)

:MANSIO1_38826
43@ += 1
goto @MANSIO1_38707

:MANSIO1_38840
43@ = 0

:MANSIO1_38847
if 
  2 > 43@
goto_if_false @MANSIO1_38947
if 
  not is_char_dead 474@(43@,3i)
goto_if_false @MANSIO1_38924
clear_char_tasks 474@(43@,3i)
task_kill_char_on_foot 474@(43@,3i) {target} $scplayer
set_char_keep_task 474@(43@,3i) {state} True
goto @MANSIO1_38933

:MANSIO1_38924
mark_char_as_no_longer_needed 474@(43@,3i)

:MANSIO1_38933
43@ += 1
goto @MANSIO1_38847

:MANSIO1_38947
switch_entry_exit 'MADDOGS' {state} True
switch_entry_exit 'MDDOGS' {state} True
$flag_mansion_mission_counter += 1
register_mission_passed 'MAN_1'
player_made_progress 1
switch_car_generator $5268 {amount} 101
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $casino_contact_blip
$1718 = add_short_range_sprite_blip_for_contact_point $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1] {sprite} RadarSprite.SaveGame
change_blip_display $1718 {display} BlipDisplay.BlipOnly
return 

:MANSIO1_39063
display_zone_names True
switch_audio_zone 'MADDOGL' {state} False
if 
  is_player_playing $player1
goto_if_false @MANSIO1_39107
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:MANSIO1_39107
start_new_script @A_TERM 
remove_blip 47@
remove_blip 329@
disable_all_entry_exits False
switch_ambient_planes True
set_max_wanted_level 6
set_car_density_multiplier 1.0
$para_force_chute_open = 0
kill_fx_system 124@
kill_fx_system 125@
kill_fx_system 126@
remove_blip 47@
43@ = 0

:MANSIO1_39178
if 
  4 > 43@
goto_if_false @MANSIO1_39237
mark_char_as_no_longer_needed 99@(43@,4i)
mark_char_as_no_longer_needed 131@(43@,4i)
mark_char_as_no_longer_needed 170@(43@,6i)
43@ += 1
goto @MANSIO1_39178

:MANSIO1_39237
43@ = 0

:MANSIO1_39244
if 
  3 > 43@
goto_if_false @MANSIO1_39294
mark_char_as_no_longer_needed 143@(43@,3i)
remove_blip 146@(43@,3i)
43@ += 1
goto @MANSIO1_39244

:MANSIO1_39294
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 328@
mark_car_as_no_longer_needed 527@
mark_car_as_no_longer_needed 528@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 555
mark_model_as_no_longer_needed 603
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed #DRG_NU_EXT
mark_streamed_script_as_no_longer_needed 1
remove_animation "PARACHUTE"
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 103---------------
// Originally: Vertical Bird

:MANSIO2
script_name 'MANSIO2'
gosub @MANSIO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO2_38
gosub @MANSIO2_52126

:MANSIO2_38
gosub @MANSIO2_52592
terminate_this_script 

:MANSIO2_47
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
87@ = 1
48@ = 0

:MANSIO2_238
88@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_238
223@ = 0
224@ = 0
225@ = 0
226@ = 0
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
256@ = 0
257@ = 0
261@ = 0
258@ = 0
259@ = 0
260@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
283@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
if 
  34@ == -99
goto_if_false @MANSIO2_1399
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
139@ = create_car 421 {x} 0.0 {y} 0.0 {z} 0.0
140@ = create_car 446 {x} 0.0 {y} 0.0 {z} 0.0
145@ = create_car 520 {x} 0.0 {y} 0.0 {z} 0.0
153@ = create_car 595 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_780
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 141@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_780
48@ = 0

:MANSIO2_835
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 146@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_835
48@ = 0

:MANSIO2_890
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 149@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_890
48@ = 0

:MANSIO2_945
create_car 530 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 154@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_945
130@ = create_char PedType.Mission1 {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1025
create_char PedType.Mission2 {modelId} 287 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 131@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_1025
48@ = 0

:MANSIO2_1082
create_char PedType.Mission1 {modelId} 50 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 137@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_1082
157@ = create_object_no_offset #CARRIER_LIFT1_SFSE {x} 0.0 {y} 0.0 {z} 0.0
158@ = create_object_no_offset #CARRIER_LIFT2_SFSE {x} 0.0 {y} 0.0 {z} 0.0
159@ = create_object_no_offset #CARRIER_DOOR_SFSE {x} 0.0 {y} 0.0 {z} 0.0
160@ = create_object #MISSILE_07_SFXR {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1227
create_object #KMB_KEYPAD {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 161@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1227
164@ = add_blip_for_car 140@
179@ = add_blip_for_car 145@
165@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1318
add_blip_for_car 146@(48@,3i) {var_handle} 166@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1318
48@ = 0

:MANSIO2_1362
add_blip_for_car 149@(48@,4i) {var_handle} 169@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_1362

:MANSIO2_1399
load_mission_text 'MAN_2'
force_weather_now WeatherType.RainyCountryside
gosub @MANSIO2_51202
180@ = load_char_decision_maker DecisionMakerType.Empty
181@ = load_char_decision_maker DecisionMakerType.Steal
182@ = load_char_decision_maker DecisionMakerType.Tough
clear_char_decision_maker_event_response 181@ {event} Event.SoundQuiet
gosub @MANSIO2_51374

:MANSIO2_1456
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSIO2_1489
36@ = 1
goto @MANSIO2_1884

:MANSIO2_1489
gosub @MANSIO2_50547
gosub @MANSIO2_50853
if or
  38@ == 1
  39@ == 1
goto_if_false @MANSIO2_1535
goto @MANSIO2_1884

:MANSIO2_1535
gosub @MANSIO2_51099
gosub @MANSIO2_51133
if 
  is_char_dead $scplayer
goto_if_false @MANSIO2_1579
37@ = 1
goto @MANSIO2_1884

:MANSIO2_1579
if 
  34@ == 0
goto_if_false @MANSIO2_1637
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:MANSIO2_1637
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_1877 {caseNum1} 1 {caseLabel1} @MANSIO2_1765 {caseNum2} 2 {caseLabel2} @MANSIO2_1779 {caseNum3} 3 {caseLabel3} @MANSIO2_1793 {caseNum4} 4 {caseLabel4} @MANSIO2_1807 {caseNum5} 5 {caseLabel5} @MANSIO2_1821 {caseNum6} 6 {caseLabel6} @MANSIO2_1835 {caseNum7} 7 {caseLabel7} @MANSIO2_1849
switch_continued 8 {caseLabel1} @MANSIO2_1863 {caseNum2} -1 {caseLabel2} @MANSIO2_1877 {caseNum3} -1 {caseLabel3} @MANSIO2_1877 {caseNum4} -1 {caseLabel4} @MANSIO2_1877 {caseNum5} -1 {caseLabel5} @MANSIO2_1877 {caseNum6} -1 {caseLabel6} @MANSIO2_1877 {caseNum7} -1 {caseLabel7} @MANSIO2_1877 {caseNum8} -1 {caseLabel8} @MANSIO2_1877 {caseNum9} -1 {caseLabel9} @MANSIO2_1877

:MANSIO2_1765
gosub @MANSIO2_2032
goto @MANSIO2_1877

:MANSIO2_1779
gosub @MANSIO2_4061
goto @MANSIO2_1877

:MANSIO2_1793
gosub @MANSIO2_6174
goto @MANSIO2_1877

:MANSIO2_1807
gosub @MANSIO2_8624
goto @MANSIO2_1877

:MANSIO2_1821
gosub @MANSIO2_12006
goto @MANSIO2_1877

:MANSIO2_1835
gosub @MANSIO2_17063
goto @MANSIO2_1877

:MANSIO2_1849
gosub @MANSIO2_21690
goto @MANSIO2_1877

:MANSIO2_1863
36@ = 1
goto @MANSIO2_1877

:MANSIO2_1877
gosub @MANSIO2_47159

:MANSIO2_1884
if 
  38@ == 0
goto_if_false @MANSIO2_1984
if 
  37@ == 0
goto_if_false @MANSIO2_1968
if 
  36@ == 0
goto_if_false @MANSIO2_1952
goto @MANSIO2_1456
goto @MANSIO2_1961

:MANSIO2_1952
gosub @MANSIO2_52377
return 

:MANSIO2_1961
goto @MANSIO2_1977

:MANSIO2_1968
gosub @MANSIO2_52126
return 

:MANSIO2_1977
goto @MANSIO2_1986

:MANSIO2_1984
return 

:MANSIO2_1986
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:MANSIO2_2032
if 
  35@ == 0
goto_if_false @MANSIO2_2334
custom_plate_for_next_car 421 {text} "_OMEGA__"
139@ = create_car 421 {x} 1248.681 {y} -815.9187 {z} 83.1484
change_car_colour 139@ {color1} 84 {color2} 84
set_car_heading 139@ {heading} 180.0
set_radio_channel RadioChannel.KRose
130@ = create_char PedType.Mission1 {modelId} 290 {x} 1250.896 {y} -802.7902 {z} 83.1484
set_char_heading 130@ {heading} 180.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 130@ {vehicle} 139@ {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $scplayer {vehicle} 139@ {time} 10000 {seat} SeatId.BikeRear
set_fixed_camera_position 1246.4969 {y} -822.7375 {z} 84.7111 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1246.785 {y} -821.78 {z} 84.6972 {switchStyle} SwitchType.JumpCut
81@ = 1
gosub @MANSIO2_47995
set_car_density_multiplier 0.0
do_fade 1000 {direction} Fade.In
223@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 1
207@ = 0
208@ = 0
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_2334
if 
  is_car_dead 139@
goto_if_false @MANSIO2_2366
37@ = 1
45@ = 1
return 

:MANSIO2_2366
if 
  is_char_dead 130@
goto_if_false @MANSIO2_2398
37@ = 1
45@ = 2
return 

:MANSIO2_2398
if 
  35@ == 1
goto_if_false @MANSIO2_2512
if 
  77@ == 1
goto_if_false @MANSIO2_2448
35@ += 1
goto @MANSIO2_2512

:MANSIO2_2448
if 
  80@ <> 1
goto_if_false @MANSIO2_2480
81@ = 1
gosub @MANSIO2_47995

:MANSIO2_2480
if 
  80@ == 1
goto_if_false @MANSIO2_2512
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_2512
if 
  35@ == 2
goto_if_false @MANSIO2_2781
if 
  77@ == 1
goto_if_false @MANSIO2_2562
35@ += 1
goto @MANSIO2_2781

:MANSIO2_2562
if and
  is_char_in_car $scplayer {vehicle} 139@
  is_char_in_car 130@ {vehicle} 139@
goto_if_false @MANSIO2_2781
start_playback_recorded_car 139@ {path} 208
223@ = 1
load_scene_in_direction 1239.286 {y} -836.2535 {z} 83.1477 {heading} 27.7504
set_fixed_camera_position 1250.188 {y} -849.5969 {z} 93.6161 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1249.6899 {y} -848.7883 {z} 93.3037 {switchStyle} SwitchType.JumpCut
if 
  293@ == 1
goto_if_false @MANSIO2_2714
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_2714
if 
  294@ == 1
goto_if_false @MANSIO2_2751
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_2751
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_2781
if 
  35@ == 3
goto_if_false @MANSIO2_2880
if 
  77@ == 1
goto_if_false @MANSIO2_2831
35@ += 1
goto @MANSIO2_2880

:MANSIO2_2831
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_2880
do_fade 2000 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_2880
if 
  35@ == 4
goto_if_false @MANSIO2_2977
if 
  77@ == 1
goto_if_false @MANSIO2_2930
35@ = 50
goto @MANSIO2_2977

:MANSIO2_2930
if and
  is_int_lvar_greater_than_int_lvar 46@ > 194@
  not get_fading_status 
goto_if_false @MANSIO2_2977
stop_playback_recorded_car 139@
223@ = 0
75@ = 0
35@ += 1

:MANSIO2_2977
if 
  35@ == 5
goto_if_false @MANSIO2_3156
remove_car_recording 208
clear_area -610.7587 {y} 176.8072 {z} 18.946 {radius} 20.0 {clearParticles} False
set_car_coordinates 139@ {x} -610.7587 {y} 176.8072 {z} 18.946
set_car_heading 139@ {heading} 40.0
load_scene_in_direction -709.131 {y} 232.466 {z} 4.698 {heading} 250.0
set_time_of_day 20 {minutes} 0
set_fixed_camera_position -710.0532 {y} 232.8524 {z} 4.6799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -709.131 {y} 232.466 {z} 4.698 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_3156
if 
  35@ == 6
goto_if_false @MANSIO2_3200
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3200
35@ = 99

:MANSIO2_3200
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_3234
77@ = 1

:MANSIO2_3234
if 
  35@ == 50
goto_if_false @MANSIO2_3289
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_3289
if 
  35@ == 51
goto_if_false @MANSIO2_3534
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3534
if 
  not is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_3355
warp_char_into_car_as_passenger $scplayer {handle} 139@ {seat} SeatId.BikeRear

:MANSIO2_3355
if 
  not is_char_in_car 130@ {vehicle} 139@
goto_if_false @MANSIO2_3382
task_warp_char_into_car_as_driver 130@ {vehicle} 139@

:MANSIO2_3382
if 
  223@ == 1
goto_if_false @MANSIO2_3405
stop_playback_recorded_car 139@

:MANSIO2_3405
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @MANSIO2_3430
gosub @MANSIO2_48179

:MANSIO2_3430
if 
  293@ == 1
goto_if_false @MANSIO2_3467
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_3467
if 
  294@ == 1
goto_if_false @MANSIO2_3504
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_3504
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
35@ += 1

:MANSIO2_3534
if 
  35@ == 52
goto_if_false @MANSIO2_3599
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3599
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_3599
if 
  295@ == 1
goto_if_false @MANSIO2_3980
if 
  207@ == 0
goto_if_false @MANSIO2_3669
50@ = generate_random_int_in_range 2000 {max} 3000
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_3749

:MANSIO2_3669
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_3749
if 
  293@ == 1
goto_if_false @MANSIO2_3725
clear_look_at $scplayer
293@ = 0
goto @MANSIO2_3742

:MANSIO2_3725
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_3742
207@ = 0

:MANSIO2_3749
if 
  208@ == 0
goto_if_false @MANSIO2_3801
50@ = generate_random_int_in_range 1000 {max} 4000
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_3881

:MANSIO2_3801
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_3881
if 
  294@ == 1
goto_if_false @MANSIO2_3857
clear_look_at 130@
294@ = 0
goto @MANSIO2_3874

:MANSIO2_3857
task_look_at_char 130@ {target} $scplayer {time} -2
294@ = 1

:MANSIO2_3874
208@ = 0

:MANSIO2_3881
if 
  is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @MANSIO2_3980
if 
  293@ == 1
goto_if_false @MANSIO2_3936
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_3936
if 
  294@ == 1
goto_if_false @MANSIO2_3973
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_3973
295@ = 0

:MANSIO2_3980
if 
  is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_4034
if 
  293@ == 0
goto_if_false @MANSIO2_4034
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_4034
if 
  35@ == 99
goto_if_false @MANSIO2_4059
gosub @MANSIO2_51172

:MANSIO2_4059
return 

:MANSIO2_4061
if 
  292@ == 0
goto_if_false @MANSIO2_4143
if 
  is_car_dead 139@
goto_if_false @MANSIO2_4111
37@ = 1
45@ = 1
return 

:MANSIO2_4111
if 
  is_char_dead 130@
goto_if_false @MANSIO2_4143
37@ = 1
45@ = 2
return 

:MANSIO2_4143
if 
  35@ == 0
goto_if_false @MANSIO2_4360
clear_area -760.8 {y} 243.1655 {z} -6.6249 {radius} 20.0 {clearParticles} True
140@ = create_car 446 {x} -759.4562 {y} 240.346 {z} -2.0951
set_car_heading 140@ {heading} 121.0
anchor_boat 140@ {state} True
task_car_drive_to_coord 130@ {vehicle} 139@ {x} -731.1018 {y} 223.2893 {z} 1.3815 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 421 {drivingStyle} DrivingMode.PloughThrough
do_fade 1500 {direction} Fade.In
81@ = 2
gosub @MANSIO2_47995
293@ = 0
294@ = 0
295@ = 0
207@ = 0
208@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_4360
if 
  35@ == 1
goto_if_false @MANSIO2_4498
if 
  77@ == 1
goto_if_false @MANSIO2_4410
35@ += 1
goto @MANSIO2_4498

:MANSIO2_4410
if 
  80@ <> 2
goto_if_false @MANSIO2_4442
81@ = 2
gosub @MANSIO2_47995

:MANSIO2_4442
if and
  80@ == 2
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4498
gosub @MANSIO2_48150
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6200
35@ += 1

:MANSIO2_4498
if 
  35@ == 2
goto_if_false @MANSIO2_4632
if 
  77@ == 1
goto_if_false @MANSIO2_4548
35@ += 1
goto @MANSIO2_4632

:MANSIO2_4548
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4632
set_fixed_camera_position -738.98 {y} 227.2293 {z} 3.4204 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -738.0241 {y} 226.939 {z} 3.375 {switchStyle} SwitchType.JumpCut
295@ = 1
35@ += 1

:MANSIO2_4632
if 
  35@ == 3
goto_if_false @MANSIO2_4753
if 
  77@ == 1
goto_if_false @MANSIO2_4682
35@ += 1
goto @MANSIO2_4753

:MANSIO2_4682
if 
  locate_stopped_car_3d 139@ {x} -731.1018 {y} 223.2893 {z} 1.3815 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_4753
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4600
35@ += 1

:MANSIO2_4753
if 
  35@ == 4
goto_if_false @MANSIO2_4880
if 
  77@ == 1
goto_if_false @MANSIO2_4803
35@ += 1
goto @MANSIO2_4880

:MANSIO2_4803
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4880
set_fixed_camera_position -725.9466 {y} 218.6036 {z} 4.4433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -726.7355 {y} 219.1785 {z} 4.2265 {switchStyle} SwitchType.JumpCut
35@ += 1

:MANSIO2_4880
if 
  35@ == 5
goto_if_false @MANSIO2_5085
if 
  77@ == 1
goto_if_false @MANSIO2_4930
35@ += 1
goto @MANSIO2_5085

:MANSIO2_4930
if 
  is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @MANSIO2_5085
if 
  293@ == 1
goto_if_false @MANSIO2_4985
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_4985
if 
  294@ == 1
goto_if_false @MANSIO2_5022
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_5022
295@ = 0
task_leave_car $scplayer {vehicle} 139@
task_go_straight_to_coord $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718 {speed} MoveState.Walk {time} 10000
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5085
if 
  35@ == 6
goto_if_false @MANSIO2_5212
if 
  77@ == 1
goto_if_false @MANSIO2_5135
35@ += 1
goto @MANSIO2_5212

:MANSIO2_5135
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5212
task_car_drive_to_coord 130@ {vehicle} 139@ {x} -751.1168 {y} 113.9648 {z} 13.2849 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 421 {drivingStyle} DrivingMode.PloughThrough
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_5212
if 
  35@ == 7
goto_if_false @MANSIO2_5336
if 
  77@ == 1
goto_if_false @MANSIO2_5262
35@ = 50
goto @MANSIO2_5336

:MANSIO2_5262
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5336
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char 130@
delete_car 139@
unload_special_character 1
mark_model_as_no_longer_needed 421
292@ = 1
75@ = 0
35@ += 1

:MANSIO2_5336
if 
  35@ == 8
goto_if_false @MANSIO2_5361
35@ = 99

:MANSIO2_5361
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_5395
77@ = 1

:MANSIO2_5395
if 
  35@ == 50
goto_if_false @MANSIO2_5450
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_5450
if 
  35@ == 51
goto_if_false @MANSIO2_5733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5733
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @MANSIO2_5512
gosub @MANSIO2_48179

:MANSIO2_5512
if 
  293@ == 1
goto_if_false @MANSIO2_5549
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_5549
if 
  294@ == 1
goto_if_false @MANSIO2_5586
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_5586
295@ = 0
if 
  is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_5639
warp_char_from_car_to_coord $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718
goto @MANSIO2_5659

:MANSIO2_5639
set_char_coordinates $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718

:MANSIO2_5659
set_char_heading $scplayer {heading} 83.9578
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char 130@
delete_car 139@
unload_special_character 1
mark_model_as_no_longer_needed 421
292@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_5733
if 
  35@ == 52
goto_if_false @MANSIO2_5800
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5800
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5800
if 
  35@ == 53
goto_if_false @MANSIO2_5865
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5865
76@ = 0
77@ = 0
75@ = 0
35@ = 8

:MANSIO2_5865
if 
  295@ == 1
goto_if_false @MANSIO2_6147
if 
  207@ == 0
goto_if_false @MANSIO2_5935
50@ = generate_random_int_in_range 2000 {max} 3000
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_6015

:MANSIO2_5935
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_6015
if 
  293@ == 1
goto_if_false @MANSIO2_5991
clear_look_at $scplayer
293@ = 0
goto @MANSIO2_6008

:MANSIO2_5991
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_6008
207@ = 0

:MANSIO2_6015
if 
  208@ == 0
goto_if_false @MANSIO2_6067
50@ = generate_random_int_in_range 1000 {max} 4000
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_6147

:MANSIO2_6067
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_6147
if 
  294@ == 1
goto_if_false @MANSIO2_6123
clear_look_at 130@
294@ = 0
goto @MANSIO2_6140

:MANSIO2_6123
task_look_at_char 130@ {target} $scplayer {time} -2
294@ = 1

:MANSIO2_6140
208@ = 0

:MANSIO2_6147
if 
  35@ == 99
goto_if_false @MANSIO2_6172
gosub @MANSIO2_51172

:MANSIO2_6172
return 

:MANSIO2_6174
224@ = 1
if 
  is_car_dead 140@
goto_if_false @MANSIO2_6204
224@ = 0

:MANSIO2_6204
if 
  35@ == 0
goto_if_false @MANSIO2_6841
157@ = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 9.914
158@ = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
159@ = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
164@ = add_blip_for_car 140@
set_blip_as_friendly 164@ {state} True
clear_area -1519.843 {y} 590.923 {z} 0.0 {radius} 20.0 {clearParticles} True
153@ = create_car 595 {x} -1519.843 {y} 590.923 {z} 0.0
set_car_heading 153@ {heading} 202.1246
anchor_boat 153@ {state} True
50@ = 0
create_char_inside_car 153@ {pedType} PedType.Mission2 {modelId} 287 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 1
create_char PedType.Mission2 {modelId} 287 {x} -1429.354 {y} 497.0963 {z} 2.039 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
attach_char_to_car 131@(50@,6i) {vehicle} 153@ {xOffset} 0.0 {yOffset} -3.5 {zOffset} 1.3 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.M4
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 2
create_char PedType.Mission2 {modelId} 287 {x} -1428.723 {y} 500.472 {z} 2.0391 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
attach_char_to_car 131@(50@,6i) {vehicle} 153@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 1.3 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.M4
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
191@ = 0
220@ = -1459.1429
221@ = 501.0938
222@ = 2.7322
print_now 'MAN2_20' {time} 7000 {flag} 1
set_car_density_multiplier 1.0
243@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1824
set_disable_military_zones True
225@ = 0
226@ = 0
227@ = 0
228@ = 0
258@ = 0
259@ = 0
260@ = 0
195@ = 0
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_6841
if 
  35@ == 1
goto_if_false @MANSIO2_7052
if or
  226@ == 1
  227@ == 1
goto_if_false @MANSIO2_7052
81@ = 4
gosub @MANSIO2_47995
227@ = 1
clear_area -1357.0 {y} 502.0 {z} 10.0 {radius} 300.0 {clearParticles} False
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -1513.614 {y} 559.4036 {z} 22.2746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1513.076 {y} 558.6777 {z} 21.8463 {switchStyle} SwitchType.JumpCut
258@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_7031
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_7031
183@ = 0
75@ = 1
35@ += 1

:MANSIO2_7052
if 
  35@ == 2
goto_if_false @MANSIO2_7182
if 
  77@ == 1
goto_if_false @MANSIO2_7102
35@ += 1
goto @MANSIO2_7182

:MANSIO2_7102
if 
  80@ <> 4
goto_if_false @MANSIO2_7134
81@ = 4
gosub @MANSIO2_47995

:MANSIO2_7134
if 
  80@ == 4
goto_if_false @MANSIO2_7182
gosub @MANSIO2_48150
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6800
35@ += 1

:MANSIO2_7182
if 
  35@ == 3
goto_if_false @MANSIO2_7325
if 
  77@ == 1
goto_if_false @MANSIO2_7232
35@ += 1
goto @MANSIO2_7325

:MANSIO2_7232
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7325
set_fixed_camera_position -1474.739 {y} 526.7202 {z} 16.2159 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1474.991 {y} 525.8577 {z} 15.7775 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3700
35@ += 1

:MANSIO2_7325
if 
  35@ == 4
goto_if_false @MANSIO2_7441
if 
  77@ == 1
goto_if_false @MANSIO2_7375
35@ = 50
goto @MANSIO2_7441

:MANSIO2_7375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7441
if 
  is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @MANSIO2_7441
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
75@ = 0
35@ += 1

:MANSIO2_7441
if 
  35@ == 5
goto_if_false @MANSIO2_7482
print_now 'MAN2_32' {time} 8000 {flag} 1
35@ = 99

:MANSIO2_7482
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_7516
77@ = 1

:MANSIO2_7516
if 
  35@ == 50
goto_if_false @MANSIO2_7571
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_7571
if 
  35@ == 51
goto_if_false @MANSIO2_7785
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7785
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @MANSIO2_7633
gosub @MANSIO2_48179

:MANSIO2_7633
set_object_coordinates 159@ {x} -1468.4919 {y} 501.289 {z} 11.109
if 
  not is_car_dead 153@
goto_if_false @MANSIO2_7699
set_car_coordinates 153@ {x} -1446.218 {y} 491.9281 {z} 0.0
set_car_heading 153@ {heading} 270.0

:MANSIO2_7699
if 
  not is_char_dead 131@
goto_if_false @MANSIO2_7740
if 
  183@ <> 3
goto_if_false @MANSIO2_7740
183@ = 2

:MANSIO2_7740
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_7785
if 
  35@ == 52
goto_if_false @MANSIO2_7850
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7850
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_7850
if 
  226@ == 0
goto_if_false @MANSIO2_8147
if 
  224@ == 1
goto_if_false @MANSIO2_8112
if 
  locate_char_any_means_3d $scplayer {x} -1397.0 {y} 552.0 {z} 17.0 {xRadius} 150.0 {yRadius} 110.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @MANSIO2_8008
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_7964
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_7964
remove_blip 164@
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 3
goto_if_false @MANSIO2_7994
set_local_var_bit_const 85@ {bitIndex} 3

:MANSIO2_7994
226@ = 1
goto @MANSIO2_8105

:MANSIO2_8008
if 
  is_char_in_car $scplayer {vehicle} 140@
goto_if_false @MANSIO2_8069
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_8057
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_8057
remove_blip 164@
goto @MANSIO2_8105

:MANSIO2_8069
if 
  not does_blip_exist 164@
goto_if_false @MANSIO2_8100
164@ = add_blip_for_car 140@
set_blip_as_friendly 164@ {state} True

:MANSIO2_8100
remove_blip 165@

:MANSIO2_8105
goto @MANSIO2_8147

:MANSIO2_8112
remove_blip 164@
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_8147
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_8147
if 
  225@ == 0
goto_if_false @MANSIO2_8255
if 
  224@ == 1
goto_if_false @MANSIO2_8255
if 
  is_char_in_car $scplayer {vehicle} 140@
goto_if_false @MANSIO2_8255
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 30
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 0
set_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
81@ = 3
gosub @MANSIO2_47995
gosub @MANSIO2_48150
225@ = 1

:MANSIO2_8255
if 
  228@ == 0
goto_if_false @MANSIO2_8348
if 
  226@ == 0
goto_if_false @MANSIO2_8348
if 
  does_blip_exist 165@
goto_if_false @MANSIO2_8348
if 
  is_local_var_bit_set_const 85@ {bitIndex} 3
goto_if_false @MANSIO2_8348
print_now 'MAN2_21' {time} 7000 {flag} 1
228@ = 1

:MANSIO2_8348
if 
  258@ == 1
goto_if_false @MANSIO2_8454
if 
  slide_object 159@ {posX} -1468.4919 {posY} 501.289 {posZ} 11.109 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_8454
258@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_8454
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_8454
if 
  227@ == 0
goto_if_false @MANSIO2_8576
if 
  is_car_dead 153@
goto_if_false @MANSIO2_8495
227@ = 1

:MANSIO2_8495
if 
  227@ == 0
goto_if_false @MANSIO2_8576
57@, 58@, 59@ = get_car_coordinates 153@
if 
  locate_char_any_means_3d $scplayer {x} 57@ {y} 58@ {z} 59@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MANSIO2_8576
227@ = 1

:MANSIO2_8576
gosub @MANSIO2_22681
gosub @MANSIO2_36580
gosub @MANSIO2_46157
if 
  35@ == 99
goto_if_false @MANSIO2_8622
gosub @MANSIO2_51172

:MANSIO2_8622
return 

:MANSIO2_8624
if 
  35@ == 0
goto_if_false @MANSIO2_8719
259@ = 0
260@ = 0
263@ = 0
291@ = 0
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_8691
delete_car 142@

:MANSIO2_8691
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_8719
if 
  35@ == 1
goto_if_false @MANSIO2_8916
if 
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 4.0 {yRadius} 13.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_8916
remove_blip 165@
remove_blip 164@
263@ = 1
set_player_control $player1 {state} False
force_interior_lighting_for_player $player1 {state} True
disable_char_speech $scplayer {stopNow} False
195@ = 0
259@ = 1
260@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_8871
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_8871
246@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 200 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 400
35@ += 1

:MANSIO2_8916
if 
  35@ == 2
goto_if_false @MANSIO2_9244
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9244
alter_wanted_level $player1 {wantedLevel} 0
load_scene_in_direction -1439.546 {y} 489.3506 {z} 3.8546 {heading} 300.0
set_radar_zoom 90
show_blips_on_all_levels True
220@ = -1288.084
221@ = 490.5533
222@ = 10.2026
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
set_char_coordinates $scplayer {x} -1327.957 {y} 507.4273 {z} 0.0
set_char_heading $scplayer {heading} 84.8851
50@ = 0
create_car 520 {x} -1423.62 {y} 497.13 {z} 10.19 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 62.12
242@(50@,4i) = 1
50@ = 2
create_car 520 {x} -1416.47 {y} 518.36 {z} 16.91 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 270.0
242@(50@,4i) = 1
135@ = create_char_inside_car 141@(50@,4i) {pedType} PedType.Mission2 {modelId} 287
set_char_decision_maker 135@ {handleOrTemplate} 180@
set_char_is_target_priority 135@ {state} True
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
75@ = 1
35@ += 1

:MANSIO2_9244
if 
  35@ == 3
goto_if_false @MANSIO2_9414
if 
  77@ == 1
goto_if_false @MANSIO2_9294
35@ += 1
goto @MANSIO2_9414

:MANSIO2_9294
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9414
switch_widescreen True
set_fixed_camera_position -1304.926 {y} 489.9207 {z} 11.6599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1304.047 {y} 490.3978 {z} 11.6435 {switchStyle} SwitchType.JumpCut
print_now 'MAN2_22' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4000
do_fade 500 {direction} Fade.In
35@ += 1

:MANSIO2_9414
if 
  35@ == 4
goto_if_false @MANSIO2_9577
if 
  77@ == 1
goto_if_false @MANSIO2_9464
35@ += 1
goto @MANSIO2_9577

:MANSIO2_9464
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9577
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_9554
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_9554
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1800
35@ += 1

:MANSIO2_9577
if 
  35@ == 5
goto_if_false @MANSIO2_10017
if 
  77@ == 1
goto_if_false @MANSIO2_9627
35@ += 1
goto @MANSIO2_10017

:MANSIO2_9627
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10017
set_fixed_camera_position -1400.167 {y} 517.7336 {z} 11.9235 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1401.079 {y} 518.1353 {z} 12.0041 {switchStyle} SwitchType.JumpCut
print_now 'MAN2_25' {time} 5000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3800
set_lvar_int_to_lvar_int 202@ = 46@
202@ += 2500
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO2_9867
set_char_coordinates $scplayer {x} -1446.333 {y} 506.7063 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  is_char_in_any_boat $scplayer
goto_if_false @MANSIO2_9853
$car = store_car_char_is_in_no_save $scplayer
anchor_boat $car {state} True

:MANSIO2_9853
291@ = 1
goto @MANSIO2_10010

:MANSIO2_9867
set_char_coordinates $scplayer {x} -1455.558 {y} 497.0678 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  not is_car_dead 140@
goto_if_false @MANSIO2_10010
if 
  is_car_in_area_3d 140@ {leftBottomX} -1466.083 {leftBottomY} 490.7395 {leftBottomZ} -2.0 {rightTopX} -1434.139 {rightTopY} 511.856 {rightTopZ} 3.0 {drawSphere} False
goto_if_false @MANSIO2_10005
set_car_coordinates 140@ {x} -1446.333 {y} 506.7063 {z} -2.089
set_car_heading 140@ {heading} 256.1819
291@ = 1
goto @MANSIO2_10010

:MANSIO2_10005
delete_car 140@

:MANSIO2_10010
35@ += 1

:MANSIO2_10017
if 
  35@ == 6
goto_if_false @MANSIO2_10229
if 
  77@ == 1
goto_if_false @MANSIO2_10067
35@ += 1
goto @MANSIO2_10229

:MANSIO2_10067
if and
  is_int_lvar_greater_than_int_lvar 46@ > 202@
  202@ <> 0
goto_if_false @MANSIO2_10107
187@ = 5
202@ = 0

:MANSIO2_10107
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10229
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10166
183@(50@,6i) = 6

:MANSIO2_10166
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10206
183@(50@,6i) = 6

:MANSIO2_10206
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_10229
if 
  35@ == 7
goto_if_false @MANSIO2_10392
if 
  77@ == 1
goto_if_false @MANSIO2_10279
35@ += 1
goto @MANSIO2_10392

:MANSIO2_10279
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10392
set_fixed_camera_position -1395.611 {y} 493.0729 {z} 5.3645 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1394.9771 {y} 493.8029 {z} 5.109 {switchStyle} SwitchType.JumpCut
force_weather_now WeatherType.SunnySf
print_now 'MAN2_23' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5800
35@ += 1

:MANSIO2_10392
if 
  35@ == 8
goto_if_false @MANSIO2_10500
if 
  77@ == 1
goto_if_false @MANSIO2_10442
35@ = 50
goto @MANSIO2_10500

:MANSIO2_10442
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10500
set_char_heading $scplayer {heading} 256.1819
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
75@ = 0
35@ += 1

:MANSIO2_10500
if 
  35@ == 9
goto_if_false @MANSIO2_10887
188@ = 5
274@ = 1
48@ = 0

:MANSIO2_10539
if and
  183@(48@,6i) <> -2
  183@(48@,6i) <> -1
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_10637
if 
  48@ <> 4
goto_if_false @MANSIO2_10637
add_blip_for_char 131@(48@,6i) {var_handle} 173@(48@,6i)
change_blip_display 173@(48@,6i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 173@(48@,6i) {state} True

:MANSIO2_10637
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_10539
187@ = 18
if 
  291@ == 1
goto_if_false @MANSIO2_10793
213@ = 1
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10730
183@(50@,6i) = 24

:MANSIO2_10730
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10770
189@(50@,2i) = 12

:MANSIO2_10770
print_now 'MAN2_46' {time} 5000 {flag} 1
goto @MANSIO2_10873

:MANSIO2_10793
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10833
183@(50@,6i) = 8

:MANSIO2_10833
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10873
189@(50@,2i) = 6

:MANSIO2_10873
283@ = 1
35@ = 99

:MANSIO2_10887
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_10921
77@ = 1

:MANSIO2_10921
if 
  35@ == 50
goto_if_false @MANSIO2_10976
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_10976
if 
  35@ == 51
goto_if_false @MANSIO2_11441
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11441
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_11053
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_11053
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO2_11144
set_char_coordinates $scplayer {x} -1446.333 {y} 506.7063 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  is_char_in_any_boat $scplayer
goto_if_false @MANSIO2_11130
$car = store_car_char_is_in_no_save $scplayer
anchor_boat $car {state} True

:MANSIO2_11130
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11144
set_char_coordinates $scplayer {x} -1455.558 {y} 497.0678 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  not is_car_dead 140@
goto_if_false @MANSIO2_11287
if 
  is_car_in_area_3d 140@ {leftBottomX} -1466.083 {leftBottomY} 490.7395 {leftBottomZ} -2.0 {rightTopX} -1434.139 {rightTopY} 511.856 {rightTopZ} 3.0 {drawSphere} False
goto_if_false @MANSIO2_11282
set_car_coordinates 140@ {x} -1446.333 {y} 506.7063 {z} -2.089
set_car_heading 140@ {heading} 256.1819
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11282
delete_car 140@

:MANSIO2_11287
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11327
183@(50@,6i) = 6

:MANSIO2_11327
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11367
183@(50@,6i) = 6

:MANSIO2_11367
if 
  187@ == -1
goto_if_false @MANSIO2_11392
187@ = 5

:MANSIO2_11392
force_weather_now WeatherType.SunnySf
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_11441
if 
  35@ == 52
goto_if_false @MANSIO2_11506
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11506
76@ = 0
77@ = 0
75@ = 0
35@ = 9

:MANSIO2_11506
if 
  246@ == 1
goto_if_false @MANSIO2_11612
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 9.648 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_11612
246@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_11612
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_11612
if 
  259@ == 1
goto_if_false @MANSIO2_11865
if 
  260@ == 1
goto_if_false @MANSIO2_11743
if 
  slide_object 159@ {posX} -1465.797 {posY} 501.289 {posZ} 1.145 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.3 {collisionCheck} False
goto_if_false @MANSIO2_11736
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11736
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_11736
goto @MANSIO2_11865

:MANSIO2_11743
if 
  slide_object 159@ {posX} -1465.797 {posY} 501.289 {posZ} 1.145 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_11865
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11831
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_11831
if 
  263@ == 0
goto_if_false @MANSIO2_11865
37@ = 1
45@ = 5
return 

:MANSIO2_11865
gosub @MANSIO2_22681
gosub @MANSIO2_36580
if 
  195@ <> 0
goto_if_false @MANSIO2_11979
if 
  is_int_lvar_greater_than_int_lvar 46@ > 195@
goto_if_false @MANSIO2_11979
195@ = 0
259@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_11963
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_11963
print_now 'MAN2_31' {time} 7000 {flag} 1

:MANSIO2_11979
if 
  35@ == 99
goto_if_false @MANSIO2_12004
gosub @MANSIO2_51172

:MANSIO2_12004
return 

:MANSIO2_12006
if 
  35@ == 0
goto_if_false @MANSIO2_12354
238@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
switch_ambient_planes False
50@ = 3
create_car 520 {x} -1333.231 {y} 507.6329 {z} 17.2266 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 270.0
242@(50@,4i) = 1
50@ = 0
create_object #KMB_KEYPAD {x} -1414.55 {y} 514.4193 {z} 2.9391 {var_handle} 161@(50@,3i)
set_object_heading 161@(50@,3i) {heading} 180.0
50@ = 1
create_object #KMB_KEYPAD {x} -1313.173 {y} 488.3687 {z} 11.1026 {var_handle} 161@(50@,3i)
50@ = 2
create_object #KMB_KEYPAD {x} -1412.198 {y} 488.3644 {z} 11.1026 {var_handle} 161@(50@,3i)
set_radio_channel RadioChannel.UserTracks
230@ = 0
231@ = 0
229@ = 0
248@ = 0
249@ = 0
250@ = 0
261@ = 0
264@ = 0
265@ = 0
284@ = 0
285@ = 0
296@ = 0
192@ = -1
193@ = -1
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_12354
73@ = 0
48@ = 0

:MANSIO2_12368
if 
  242@(48@,4i) == 1
goto_if_false @MANSIO2_12417
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_12417
73@ = 1

:MANSIO2_12417
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_12368
if 
  73@ == 0
goto_if_false @MANSIO2_12472
37@ = 1
45@ = 3
return 

:MANSIO2_12472
if 
  not is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_12599
57@, 58@, 59@ = get_char_coordinates $scplayer
if or
  484.0 > 58@
  58@ > 523.0
goto_if_false @MANSIO2_12552
37@ = 1
45@ = 6
return 

:MANSIO2_12552
if or
  -1471.0 > 57@
  57@ > -1246.0
goto_if_false @MANSIO2_12599
37@ = 1
45@ = 6
return 

:MANSIO2_12599
if 
  35@ == 1
goto_if_false @MANSIO2_12822
if 
  238@ == 1
goto_if_false @MANSIO2_12797
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -1291.578 {y} 491.3468 {z} 13.2852 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1290.686 {y} 491.105 {z} 12.9042 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 220@ {y} 221@ {z} 222@
task_achieve_heading $scplayer {heading} 270.0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
remove_blip 165@
165@ = add_blip_for_coord -1432.4821 {y} 506.5725 {z} 10.1953
229@ = 1
75@ = 1
35@ += 1

:MANSIO2_12797
if 
  248@ == 1
goto_if_false @MANSIO2_12822
35@ = 6

:MANSIO2_12822
if 
  35@ == 2
goto_if_false @MANSIO2_12972
if 
  77@ == 1
goto_if_false @MANSIO2_12872
35@ += 1
goto @MANSIO2_12972

:MANSIO2_12872
40@ = get_script_task_status $scplayer {taskId} 1492
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_12972
task_play_anim $scplayer {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 250
35@ += 1

:MANSIO2_12972
if 
  35@ == 3
goto_if_false @MANSIO2_13144
if 
  77@ == 1
goto_if_false @MANSIO2_13022
35@ += 1
goto @MANSIO2_13144

:MANSIO2_13022
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13144
if 
  not is_char_playing_anim $scplayer {animationName} "SLOT_BET_02"
goto_if_false @MANSIO2_13144
set_fixed_camera_position -1391.3051 {y} 490.2552 {z} 18.2899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1392.1379 {y} 490.5674 {z} 18.7452 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_13144
if 
  35@ == 4
goto_if_false @MANSIO2_13240
if 
  77@ == 1
goto_if_false @MANSIO2_13194
35@ += 1
goto @MANSIO2_13240

:MANSIO2_13194
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13240
set_aircraft_carrier_sam_site False
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13240
if 
  35@ == 5
goto_if_false @MANSIO2_13361
if 
  77@ == 1
goto_if_false @MANSIO2_13290
35@ = 50
goto @MANSIO2_13361

:MANSIO2_13290
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13361
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'MAN2_25' {time} 15000 {flag} 1
35@ += 1

:MANSIO2_13361
if 
  35@ == 6
goto_if_false @MANSIO2_13475
if 
  248@ == 1
goto_if_false @MANSIO2_13475
if or
  249@ == 1
  250@ == 1
goto_if_false @MANSIO2_13426
set_camera_behind_player 
restore_camera 

:MANSIO2_13426
remove_blip 165@
48@ = 0

:MANSIO2_13438
remove_blip 173@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_13438
35@ = 99

:MANSIO2_13475
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_13509
77@ = 1

:MANSIO2_13509
if 
  35@ == 50
goto_if_false @MANSIO2_13564
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_13564
if 
  35@ == 51
goto_if_false @MANSIO2_13664
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13664
set_aircraft_carrier_sam_site False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13664
if 
  35@ == 52
goto_if_false @MANSIO2_13745
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13745
76@ = 0
77@ = 0
75@ = 0
print_now 'MAN2_25' {time} 15000 {flag} 1
35@ = 6

:MANSIO2_13745
if 
  238@ == 0
goto_if_false @MANSIO2_13812
if 
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @MANSIO2_13812
238@ = 1

:MANSIO2_13812
if 
  229@ == 0
goto_if_false @MANSIO2_13872
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_13872
print_now 'MAN2_24' {time} 5000 {flag} 1
229@ = 1

:MANSIO2_13872
if 
  230@ == 0
goto_if_false @MANSIO2_13950
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_13950
print_help_forever 'MAN2_70'
230@ = 1
231@ = 0
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000

:MANSIO2_13950
if 
  230@ == 1
goto_if_false @MANSIO2_14041
if 
  231@ == 0
goto_if_false @MANSIO2_14041
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14041
clear_help 
print_help_forever 'MAN2_99'
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_14041
if 
  231@ == 1
goto_if_false @MANSIO2_14105
if 
  206@ <> 0
goto_if_false @MANSIO2_14105
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14105
206@ = 0
clear_help 

:MANSIO2_14105
if 
  264@ == 0
goto_if_false @MANSIO2_14322
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_14204
if 
  is_char_in_car $scplayer {vehicle} 144@
goto_if_false @MANSIO2_14175
264@ = 1
goto @MANSIO2_14197

:MANSIO2_14175
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1

:MANSIO2_14197
goto @MANSIO2_14322

:MANSIO2_14204
if 
  locate_char_any_means_3d $scplayer {x} -1347.692 {y} 499.5881 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_14281
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1
goto @MANSIO2_14322

:MANSIO2_14281
if 
  is_char_touching_object $scplayer {object} 158@
goto_if_false @MANSIO2_14322
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1

:MANSIO2_14322
if 
  265@ == 0
goto_if_false @MANSIO2_14427
if 
  locate_char_any_means_3d $scplayer {x} -1368.303 {y} 496.5314 {z} 10.1854 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_14427
193@ = 0
265@ = 1
if 
  279@ == 0
goto_if_false @MANSIO2_14427
187@ = 11

:MANSIO2_14427
if 
  not is_car_dead 143@
goto_if_false @MANSIO2_14677
73@ = 0
if 
  is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_14531
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 16.688 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14524
73@ = 1

:MANSIO2_14524
goto @MANSIO2_14586

:MANSIO2_14531
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 9.648 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14586
73@ = 1

:MANSIO2_14586
if 
  288@ == 0
goto_if_false @MANSIO2_14644
if 
  73@ == 0
goto_if_false @MANSIO2_14637
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_14637
goto @MANSIO2_14677

:MANSIO2_14644
if 
  73@ == 1
goto_if_false @MANSIO2_14677
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_14677
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_14927
73@ = 0
if 
  is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_14781
if 
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 16.953 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14774
73@ = 1

:MANSIO2_14774
goto @MANSIO2_14836

:MANSIO2_14781
if 
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 9.914 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14836
73@ = 1

:MANSIO2_14836
if 
  287@ == 0
goto_if_false @MANSIO2_14894
if 
  73@ == 0
goto_if_false @MANSIO2_14887
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
287@ = 1

:MANSIO2_14887
goto @MANSIO2_14927

:MANSIO2_14894
if 
  73@ == 1
goto_if_false @MANSIO2_14927
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_14927
if 
  249@ == 0
goto_if_false @MANSIO2_15120
if 
  not is_car_dead 143@
goto_if_false @MANSIO2_15113
if 
  is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_15113
57@, 58@, 59@ = get_car_coordinates 143@
60@, 61@, 62@ = get_object_coordinates 158@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15113
set_fixed_camera_position -1427.408 {y} 516.3539 {z} 20.8899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1426.4351 {y} 516.2787 {z} 20.6742 {switchStyle} SwitchType.Interpolation
249@ = 1

:MANSIO2_15113
goto @MANSIO2_15184

:MANSIO2_15120
if 
  is_car_dead 143@
goto_if_false @MANSIO2_15154
set_camera_behind_player 
restore_camera 
249@ = 0
goto @MANSIO2_15184

:MANSIO2_15154
if 
  not is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_15184
set_camera_behind_player 
restore_camera 
249@ = 0

:MANSIO2_15184
if 
  250@ == 0
goto_if_false @MANSIO2_15377
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_15370
if 
  is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_15370
57@, 58@, 59@ = get_car_coordinates 142@
60@, 61@, 62@ = get_object_coordinates 157@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15370
set_fixed_camera_position -1439.283 {y} 507.3634 {z} 28.9545 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1440.069 {y} 507.1481 {z} 28.3752 {switchStyle} SwitchType.Interpolation
250@ = 1

:MANSIO2_15370
goto @MANSIO2_15441

:MANSIO2_15377
if 
  is_car_dead 142@
goto_if_false @MANSIO2_15411
set_camera_behind_player 
restore_camera 
250@ = 0
goto @MANSIO2_15441

:MANSIO2_15411
if 
  not is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_15441
set_camera_behind_player 
restore_camera 
250@ = 0

:MANSIO2_15441
48@ = 0

:MANSIO2_15448
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_15830
if 
  is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_15830
switch_start 48@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_15803 {caseNum1} 0 {caseLabel1} @MANSIO2_15740 {caseNum2} 1 {caseLabel2} @MANSIO2_15647 {caseNum3} 2 {caseLabel3} @MANSIO2_15554 {caseNum4} -1 {caseLabel4} @MANSIO2_15830 {caseNum5} -1 {caseLabel5} @MANSIO2_15830 {caseNum6} -1 {caseLabel6} @MANSIO2_15830 {caseNum7} -1 {caseLabel7} @MANSIO2_15830

:MANSIO2_15554
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
60@, 61@, 62@ = get_object_coordinates 158@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15640
248@ = 1

:MANSIO2_15640
goto @MANSIO2_15830

:MANSIO2_15647
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
60@, 61@, 62@ = get_object_coordinates 157@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15733
248@ = 1

:MANSIO2_15733
goto @MANSIO2_15830

:MANSIO2_15740
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
if or
  59@ > 20.0
  5.0 > 59@
goto_if_false @MANSIO2_15796
248@ = 1

:MANSIO2_15796
goto @MANSIO2_15830

:MANSIO2_15803
if 
  is_car_in_air_proper 141@(48@,4i)
goto_if_false @MANSIO2_15830
248@ = 1

:MANSIO2_15830
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15448
if and
  248@ == 1
  261@ == 0
goto_if_false @MANSIO2_16281
48@ = 0

:MANSIO2_15883
239@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_15883
50@ = 0
48@ = 0

:MANSIO2_15929
if 
  48@ == 3
goto_if_false @MANSIO2_16028
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16028
if 
  is_playback_going_on_for_car 141@(48@,4i)
goto_if_false @MANSIO2_15996
stop_playback_recorded_car 141@(48@,4i)

:MANSIO2_15996
if 
  not is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16028
delete_car 141@(48@,4i)

:MANSIO2_16028
if 
  48@ == 1
goto_if_false @MANSIO2_16161
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16161
if 
  not is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16161
if 
  193@ <> -1
goto_if_false @MANSIO2_16161
stop_playback_recorded_car 141@(48@,4i)
set_car_coordinates 141@(48@,4i) {x} -1457.627 {y} 502.2539 {z} 9.0078
set_car_heading 141@(48@,4i) {heading} 185.069
193@ = -1

:MANSIO2_16161
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16253
if 
  is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16219
145@ = store_car_char_is_in $scplayer
goto @MANSIO2_16253

:MANSIO2_16219
set_lvar_int_to_lvar_int 146@(50@,3i) = 141@(48@,4i)
239@(50@,3i) = 1
50@ += 1

:MANSIO2_16253
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15929
261@ = 1

:MANSIO2_16281
gosub @MANSIO2_22597
gosub @MANSIO2_22681
gosub @MANSIO2_36580
48@ = 0

:MANSIO2_16309
if 
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_16338
clear_char_last_weapon_damage 131@(48@,6i)

:MANSIO2_16338
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_16309
48@ = 0

:MANSIO2_16366
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_16395
clear_char_last_weapon_damage 137@(48@,2i)

:MANSIO2_16395
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_16366
48@ = 0

:MANSIO2_16423
if 
  not is_car_dead 154@(48@,3i)
goto_if_false @MANSIO2_16452
clear_car_last_weapon_damage 154@(48@,3i)

:MANSIO2_16452
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_16423
gosub @MANSIO2_46514
gosub @MANSIO2_46786
if 
  268@ == 0
goto_if_false @MANSIO2_16758
if 
  267@ == 1
goto_if_false @MANSIO2_16758
switch_start 213@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_16724 {caseNum1} 1 {caseLabel1} @MANSIO2_16586 {caseNum2} 2 {caseLabel2} @MANSIO2_16609 {caseNum3} 3 {caseLabel3} @MANSIO2_16632 {caseNum4} 4 {caseLabel4} @MANSIO2_16655 {caseNum5} 5 {caseLabel5} @MANSIO2_16678 {caseNum6} 6 {caseLabel6} @MANSIO2_16701 {caseNum7} -1 {caseLabel7} @MANSIO2_16724

:MANSIO2_16586
print_now 'MAN2_47' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16609
print_now 'MAN2_49' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16632
print_now 'MAN2_40' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16655
print_now 'MAN2_41' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16678
print_now 'MAN2_42' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16701
print_now 'MAN2_43' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16724
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStart
289@ = 1
268@ = 1

:MANSIO2_16758
if 
  267@ == 0
goto_if_false @MANSIO2_16843
50@ = get_number_of_fires_in_area -1471.0 {leftBottomY} 484.0 {leftBottomZ} 0.0 {rightTopX} -1246.0 {rightTopY} 523.0 {rightTopZ} 40.0
if 
  50@ > 0
goto_if_false @MANSIO2_16843
213@ = 6
267@ = 1

:MANSIO2_16843
if 
  238@ == 1
goto_if_false @MANSIO2_16955
if 
  296@ == 0
goto_if_false @MANSIO2_16955
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1466.973 {leftBottomY} 488.6672 {leftBottomZ} 7.1953 {rightTopX} -1393.22 {rightTopY} 521.52 {rightTopZ} 11.3953 {drawSphere} False
goto_if_false @MANSIO2_16955
remove_blip 165@
print_now 'MAN2_25' {time} 5000 {flag} 1
296@ = 1

:MANSIO2_16955
if 
  297@ == 1
goto_if_false @MANSIO2_17010
if 
  not is_char_in_model $scplayer {modelId} 530
goto_if_false @MANSIO2_17003
set_radio_channel RadioChannel.UserTracks
297@ = 0

:MANSIO2_17003
goto @MANSIO2_17036

:MANSIO2_17010
if 
  is_char_in_model $scplayer {modelId} 530
goto_if_false @MANSIO2_17036
297@ = 1

:MANSIO2_17036
if 
  35@ == 99
goto_if_false @MANSIO2_17061
gosub @MANSIO2_51172

:MANSIO2_17061
return 

:MANSIO2_17063
if 
  is_car_dead 145@
goto_if_false @MANSIO2_17095
37@ = 1
45@ = 4
return 

:MANSIO2_17095
if 
  35@ == 0
goto_if_false @MANSIO2_17926
50@ = 0
clear_area -1178.22 {y} 2775.04 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -1178.22 {y} 2775.04 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 327.1833
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -1168.9189 {y} 2795.99 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -1168.9189 {y} 2795.99 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 171.1833
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -930.1593 {y} 2641.605 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -930.1593 {y} 2641.605 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 124.0961
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -973.0267 {y} 2484.021 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -973.0267 {y} 2484.021 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 171.8058
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
247@ = 1
251@ = 0
256@ = 0
257@ = 0
290@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
236@ = 0
if 
  288@ == 0
goto_if_false @MANSIO2_17799
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_17799
if 
  287@ == 0
goto_if_false @MANSIO2_17832
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
287@ = 1

:MANSIO2_17832
if 
  289@ == 1
goto_if_false @MANSIO2_17877
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStop
289@ = 0

:MANSIO2_17877
50@ = get_car_health 145@
50@ += 1000
set_car_health 145@ {health} 50@
81@ = 5
gosub @MANSIO2_47995
set_radar_zoom 0
35@ += 1

:MANSIO2_17926
if 
  35@ == 1
goto_if_false @MANSIO2_18056
if 
  80@ <> 5
goto_if_false @MANSIO2_17976
81@ = 5
gosub @MANSIO2_47995

:MANSIO2_17976
if and
  not locate_char_any_means_3d $scplayer {x} -1343.5 {y} 504.1 {z} 30.0 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 200.0 {drawSphere} False
  80@ == 5
goto_if_false @MANSIO2_18056
gosub @MANSIO2_48150
290@ = 1
set_disable_military_zones False
35@ += 1

:MANSIO2_18056
if 
  35@ == 2
goto_if_false @MANSIO2_18113
if 
  is_local_var_bit_set_const 85@ {bitIndex} 5
goto_if_false @MANSIO2_18113
81@ = 6
gosub @MANSIO2_47995
35@ += 1

:MANSIO2_18113
if 
  35@ == 3
goto_if_false @MANSIO2_18874
if 
  80@ <> 6
goto_if_false @MANSIO2_18163
81@ = 6
gosub @MANSIO2_47995

:MANSIO2_18163
if 
  80@ == 6
goto_if_false @MANSIO2_18874
73@ = 0
48@ = 0

:MANSIO2_18195
if 
  73@ == 0
goto_if_false @MANSIO2_18280
if 
  239@(48@,3i) == 0
goto_if_false @MANSIO2_18280
create_car 520 {x} -1333.231 {y} 507.6329 {z} 17.2266 {var_handle} 146@(48@,3i)
239@(48@,3i) = 1
73@ = 1

:MANSIO2_18280
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_18195
50@ = 0
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18482
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18482
set_car_coordinates 146@(50@,3i) {x} -1293.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18482
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18663
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18663
set_car_coordinates 146@(50@,3i) {x} -1273.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18663
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18844
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18844
set_car_coordinates 146@(50@,3i) {x} -1253.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18844
251@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_18874
if 
  35@ == 4
goto_if_false @MANSIO2_19132
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19132
50@ = -1
if 
  239@ == 1
goto_if_false @MANSIO2_18959
if 
  not is_car_dead 146@
goto_if_false @MANSIO2_18959
50@ = 0

:MANSIO2_18959
if 
  50@ == -1
goto_if_false @MANSIO2_19018
if 
  240@ == 1
goto_if_false @MANSIO2_19018
if 
  not is_car_dead 147@
goto_if_false @MANSIO2_19018
50@ = 1

:MANSIO2_19018
if 
  50@ <> -1
goto_if_false @MANSIO2_19118
set_fixed_camera_position -1297.6331 {y} 489.9132 {z} 74.9315 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 146@(50@,3i) {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_19107
freeze_car_position 145@ {state} True

:MANSIO2_19107
switch_widescreen True
set_player_control $player1 {state} False

:MANSIO2_19118
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_19132
if 
  35@ == 5
goto_if_false @MANSIO2_19189
if 
  is_local_var_bit_set_const 85@ {bitIndex} 6
goto_if_false @MANSIO2_19189
81@ = 7
gosub @MANSIO2_47995
35@ += 1

:MANSIO2_19189
if 
  35@ == 6
goto_if_false @MANSIO2_19341
if 
  80@ <> 7
goto_if_false @MANSIO2_19239
81@ = 7
gosub @MANSIO2_47995

:MANSIO2_19239
if 
  80@ == 7
goto_if_false @MANSIO2_19341
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_19318
freeze_car_position 145@ {state} False
set_car_forward_speed 145@ {forwardSpeed} 30.0
set_plane_throttle 145@ {throttle} 1.0

:MANSIO2_19318
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_19341
if 
  35@ == 7
goto_if_false @MANSIO2_19392
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19392
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_19392
if 
  35@ == 8
goto_if_false @MANSIO2_19485
if 
  is_local_var_bit_set_const 85@ {bitIndex} 7
goto_if_false @MANSIO2_19485
print_help_forever 'MAN2_71'
232@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
35@ += 1

:MANSIO2_19485
if 
  35@ == 9
goto_if_false @MANSIO2_19719
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19719
50@ = 0
48@ = 0

:MANSIO2_19536
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_19616
if 
  not is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_19616
set_plane_throttle 146@(48@,3i) {throttle} 0.5
plane_attack_player_using_dog_fight 146@(48@,3i) {player} $player1 {altitude} 30.0
50@ += 1

:MANSIO2_19616
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_19536
if 
  50@ > 0
goto_if_false @MANSIO2_19712
if 
  50@ == 1
goto_if_false @MANSIO2_19696
print_now 'MAN2_36' {time} 7000 {flag} 1
goto @MANSIO2_19712

:MANSIO2_19696
print_now 'MAN2_35' {time} 7000 {flag} 1

:MANSIO2_19712
35@ += 1

:MANSIO2_19719
if 
  35@ == 10
goto_if_false @MANSIO2_19769
if and
  256@ == 1
  257@ == 1
goto_if_false @MANSIO2_19769
35@ = 99

:MANSIO2_19769
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_19790
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_19873
if 
  is_car_dead 149@(48@,4i)
goto_if_false @MANSIO2_19866
252@(48@,4i) = 0
remove_blip 169@(48@,4i)
73@ = 1
goto @MANSIO2_19873

:MANSIO2_19866
50@ += 1

:MANSIO2_19873
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_19790
if 
  73@ == 1
goto_if_false @MANSIO2_20073
if 
  50@ > 0
goto_if_false @MANSIO2_20000
if 
  50@ == 1
goto_if_false @MANSIO2_19974
print_with_number_now 'MAN2_30' {num} 50@ {duration} 5000 {flag} 1
goto @MANSIO2_19993

:MANSIO2_19974
print_with_number_now 'MAN2_29' {num} 50@ {duration} 5000 {flag} 1

:MANSIO2_19993
goto @MANSIO2_20034

:MANSIO2_20000
if 
  257@ == 0
goto_if_false @MANSIO2_20034
print_now 'MAN2_44' {time} 5000 {flag} 1

:MANSIO2_20034
if 
  235@ == 0
goto_if_false @MANSIO2_20073
235@ = 1
236@ = 1
236@ = 1

:MANSIO2_20073
256@ = 1
48@ = 0

:MANSIO2_20087
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_20116
256@ = 0

:MANSIO2_20116
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_20087
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_20158
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20268
if 
  is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_20261
239@(48@,3i) = 0
mark_car_as_no_longer_needed 146@(48@,3i)
remove_blip 166@(48@,3i)
if 
  251@ == 1
goto_if_false @MANSIO2_20254
73@ = 1

:MANSIO2_20254
goto @MANSIO2_20268

:MANSIO2_20261
50@ += 1

:MANSIO2_20268
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20158
if 
  73@ == 1
goto_if_false @MANSIO2_20399
if 
  50@ > 0
goto_if_false @MANSIO2_20351
print_with_number_now 'MAN2_27' {num} 50@ {duration} 5000 {flag} 1
goto @MANSIO2_20399

:MANSIO2_20351
257@ = 1
if 
  256@ == 0
goto_if_false @MANSIO2_20399
print_now 'MAN2_28' {time} 5000 {flag} 1
234@ = 1

:MANSIO2_20399
if 
  247@ == 1
goto_if_false @MANSIO2_20575
if and
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 16.688 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 16.953 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_20575
247@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_20542
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_20542
if 
  287@ == 1
goto_if_false @MANSIO2_20575
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_20575
if 
  not is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_20830
if 
  not does_blip_exist 179@
goto_if_false @MANSIO2_20648
print_now 'MAN2_37' {time} 5000 {flag} 1
179@ = add_blip_for_car 145@
set_blip_as_friendly 179@ {state} True
goto @MANSIO2_20823

:MANSIO2_20648
if 
  290@ == 0
goto_if_false @MANSIO2_20823
73@ = 0
48@ = 0

:MANSIO2_20680
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20802
if 
  73@ == 0
goto_if_false @MANSIO2_20802
if 
  not is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_20802
if 
  is_char_in_car $scplayer {vehicle} 146@(48@,3i)
goto_if_false @MANSIO2_20802
set_var_int_to_lvar_int $car = 146@(48@,3i)
set_lvar_int_to_lvar_int 146@(48@,3i) = 145@
set_lvar_int_to_var_int 145@ = $car
73@ = 1

:MANSIO2_20802
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20680

:MANSIO2_20823
goto @MANSIO2_20862

:MANSIO2_20830
if 
  does_blip_exist 179@
goto_if_false @MANSIO2_20862
remove_blip 179@
clear_this_print 'MAN2_37'

:MANSIO2_20862
if 
  231@ == 0
goto_if_false @MANSIO2_20935
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_20935
clear_help 
print_help_forever 'MAN2_99'
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_20935
if and
  231@ == 1
  232@ == 0
goto_if_false @MANSIO2_21006
if 
  206@ <> 0
goto_if_false @MANSIO2_21006
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21006
206@ = 0
clear_help 

:MANSIO2_21006
if 
  232@ == 1
goto_if_false @MANSIO2_21097
if 
  233@ == 0
goto_if_false @MANSIO2_21097
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21097
clear_help 
print_help_forever 'MAN2_98'
233@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21097
if 
  233@ == 1
goto_if_false @MANSIO2_21161
if 
  206@ <> 0
goto_if_false @MANSIO2_21161
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21161
206@ = 0
clear_help 

:MANSIO2_21161
if 
  234@ == 1
goto_if_false @MANSIO2_21663
if 
  235@ == 0
goto_if_false @MANSIO2_21417
if and
  233@ == 1
  206@ == 0
goto_if_false @MANSIO2_21417
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_21417
73@ = 0
48@ = 0

:MANSIO2_21255
if 
  73@ == 0
goto_if_false @MANSIO2_21342
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_21342
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@(48@,4i) {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @MANSIO2_21342
73@ = 1

:MANSIO2_21342
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_21255
if 
  73@ == 1
goto_if_false @MANSIO2_21417
clear_help 
print_help_forever 'HYDHLP1'
235@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21417
if 
  235@ == 1
goto_if_false @MANSIO2_21508
if 
  236@ == 0
goto_if_false @MANSIO2_21508
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21508
clear_help 
print_help_forever 'HYDHLP2'
236@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21508
if 
  236@ == 1
goto_if_false @MANSIO2_21599
if 
  237@ == 0
goto_if_false @MANSIO2_21599
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21599
clear_help 
print_help_forever 'HYDHLP3'
237@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21599
if 
  237@ == 1
goto_if_false @MANSIO2_21663
if 
  206@ <> 0
goto_if_false @MANSIO2_21663
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21663
206@ = 0
clear_help 

:MANSIO2_21663
if 
  35@ == 99
goto_if_false @MANSIO2_21688
gosub @MANSIO2_51172

:MANSIO2_21688
return 

:MANSIO2_21690
if 
  is_car_dead 145@
goto_if_false @MANSIO2_21722
37@ = 1
45@ = 4
return 

:MANSIO2_21722
if 
  35@ == 0
goto_if_false @MANSIO2_21980
214@ = -76.4228
215@ = 2478.6399
216@ = 14.2844
217@ = 433.6483
218@ = 2525.658
219@ = 18.6279
set_lvar_float_to_lvar_float 220@ = 217@
sub_float_lvar_from_float_lvar 220@ -= 214@
220@ /= 2.0
add_float_lvar_to_float_lvar 220@ += 214@
set_lvar_float_to_lvar_float 221@ = 218@
sub_float_lvar_from_float_lvar 221@ -= 215@
221@ /= 2.0
add_float_lvar_to_float_lvar 221@ += 215@
set_lvar_float_to_lvar_float 222@ = 219@
sub_float_lvar_from_float_lvar 222@ -= 216@
222@ /= 2.0
add_float_lvar_to_float_lvar 222@ += 216@
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
81@ = 8
gosub @MANSIO2_47995
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
266@ = 0
request_model 359
request_model 360
request_model 362
request_model 361
35@ += 1

:MANSIO2_21980
if 
  35@ == 1
goto_if_false @MANSIO2_22070
if 
  80@ <> 8
goto_if_false @MANSIO2_22030
81@ = 8
gosub @MANSIO2_47995

:MANSIO2_22030
if and
  80@ == 8
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_22070
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_22070
if 
  35@ == 2
goto_if_false @MANSIO2_22129
if 
  is_local_var_bit_set_const 85@ {bitIndex} 8
goto_if_false @MANSIO2_22129
print_now 'MAN2_26' {time} 10000 {flag} 1
35@ += 1

:MANSIO2_22129
if 
  35@ == 3
goto_if_false @MANSIO2_22378
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
if and
  is_char_in_area_3d $scplayer {leftBottomX} 214@ {leftBottomY} 215@ {leftBottomZ} 216@ {rightTopX} 217@ {rightTopY} 218@ {rightTopZ} 219@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_22262
if and
  is_car_stopped 145@
  not is_car_in_air_proper 145@
goto_if_false @MANSIO2_22255
remove_blip 165@
35@ += 1

:MANSIO2_22255
goto @MANSIO2_22378

:MANSIO2_22262
set_lvar_float_to_lvar_float 70@ = 219@
70@ += 20.0
if and
  is_char_in_area_3d $scplayer {leftBottomX} 214@ {leftBottomY} 215@ {leftBottomZ} 216@ {rightTopX} 217@ {rightTopY} 218@ {rightTopZ} 70@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 145@
  266@ == 0
goto_if_false @MANSIO2_22378
71@ = get_plane_undercarriage_position 145@
if 
  71@ > 0.1
goto_if_false @MANSIO2_22378
print_help 'MAN2_72'
266@ = 1

:MANSIO2_22378
if 
  35@ == 4
goto_if_false @MANSIO2_22463
220@ = 291.3149
221@ = 2535.249
222@ = 15.8205
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
print_now 'MAN2_33' {time} 5000 {flag} 1
35@ += 1

:MANSIO2_22463
if 
  35@ == 5
goto_if_false @MANSIO2_22570
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_22570
if 
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @MANSIO2_22570
if 
  is_car_stopped 145@
goto_if_false @MANSIO2_22570
remove_blip 165@
35@ = 99

:MANSIO2_22570
if 
  35@ == 99
goto_if_false @MANSIO2_22595
gosub @MANSIO2_51172

:MANSIO2_22595
return 

:MANSIO2_22597
285@ = 0
if 
  284@ == 1
goto_if_false @MANSIO2_22624
return 

:MANSIO2_22624
if 
  is_char_shooting $scplayer
goto_if_false @MANSIO2_22679
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_22672
285@ = 1
goto @MANSIO2_22679

:MANSIO2_22672
284@ = 1

:MANSIO2_22679
return 

:MANSIO2_22681
52@ = 0

:MANSIO2_22688
if and
  183@(52@,6i) <> -1
  183@(52@,6i) <> -2
goto_if_false @MANSIO2_22768
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_22768
183@(52@,6i) = -2
remove_blip 173@(52@,6i)
gosub @MANSIO2_25444

:MANSIO2_22768
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22688
52@ = 0

:MANSIO2_22796
if 
  269@(52@,6i) == 1
goto_if_false @MANSIO2_22825
gosub @MANSIO2_23529

:MANSIO2_22825
switch_start 183@(52@,6i) {numCases} 30 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_23479 {caseNum1} -2 {caseLabel1} @MANSIO2_23087 {caseNum2} -1 {caseLabel2} @MANSIO2_23087 {caseNum3} 0 {caseLabel3} @MANSIO2_23094 {caseNum4} 1 {caseLabel4} @MANSIO2_23108 {caseNum5} 2 {caseLabel5} @MANSIO2_23122 {caseNum6} 3 {caseLabel6} @MANSIO2_23136 {caseNum7} 4 {caseLabel7} @MANSIO2_23150
switch_continued 5 {caseLabel1} @MANSIO2_23164 {caseNum2} 6 {caseLabel2} @MANSIO2_23178 {caseNum3} 7 {caseLabel3} @MANSIO2_23192 {caseNum4} 8 {caseLabel4} @MANSIO2_23206 {caseNum5} 9 {caseLabel5} @MANSIO2_23220 {caseNum6} 10 {caseLabel6} @MANSIO2_23234 {caseNum7} 11 {caseLabel7} @MANSIO2_23248 {caseNum8} 12 {caseLabel8} @MANSIO2_23262 {caseNum9} 13 {caseLabel9} @MANSIO2_23276
switch_continued 14 {caseLabel1} @MANSIO2_23290 {caseNum2} 15 {caseLabel2} @MANSIO2_23304 {caseNum3} 16 {caseLabel3} @MANSIO2_23318 {caseNum4} 17 {caseLabel4} @MANSIO2_23332 {caseNum5} 18 {caseLabel5} @MANSIO2_23346 {caseNum6} 19 {caseLabel6} @MANSIO2_23360 {caseNum7} 20 {caseLabel7} @MANSIO2_23374 {caseNum8} 21 {caseLabel8} @MANSIO2_23388 {caseNum9} 22 {caseLabel9} @MANSIO2_23402
switch_continued 23 {caseLabel1} @MANSIO2_23416 {caseNum2} 24 {caseLabel2} @MANSIO2_23430 {caseNum3} 25 {caseLabel3} @MANSIO2_23444 {caseNum4} 26 {caseLabel4} @MANSIO2_23458 {caseNum5} 27 {caseLabel5} @MANSIO2_23472 {caseNum6} -1 {caseLabel6} @MANSIO2_23506 {caseNum7} -1 {caseLabel7} @MANSIO2_23506 {caseNum8} -1 {caseLabel8} @MANSIO2_23506 {caseNum9} -1 {caseLabel9} @MANSIO2_23506

:MANSIO2_23087
goto @MANSIO2_23506

:MANSIO2_23094
gosub @MANSIO2_26007
goto @MANSIO2_23506

:MANSIO2_23108
gosub @MANSIO2_26083
goto @MANSIO2_23506

:MANSIO2_23122
gosub @MANSIO2_26244
goto @MANSIO2_23506

:MANSIO2_23136
gosub @MANSIO2_26313
goto @MANSIO2_23506

:MANSIO2_23150
gosub @MANSIO2_26534
goto @MANSIO2_23506

:MANSIO2_23164
gosub @MANSIO2_27077
goto @MANSIO2_23506

:MANSIO2_23178
gosub @MANSIO2_27573
goto @MANSIO2_23506

:MANSIO2_23192
gosub @MANSIO2_27899
goto @MANSIO2_23506

:MANSIO2_23206
gosub @MANSIO2_28244
goto @MANSIO2_23506

:MANSIO2_23220
gosub @MANSIO2_28447
goto @MANSIO2_23506

:MANSIO2_23234
gosub @MANSIO2_28601
goto @MANSIO2_23506

:MANSIO2_23248
gosub @MANSIO2_28822
goto @MANSIO2_23506

:MANSIO2_23262
gosub @MANSIO2_29062
goto @MANSIO2_23506

:MANSIO2_23276
gosub @MANSIO2_29685
goto @MANSIO2_23506

:MANSIO2_23290
gosub @MANSIO2_29743
goto @MANSIO2_23506

:MANSIO2_23304
gosub @MANSIO2_29807
goto @MANSIO2_23506

:MANSIO2_23318
gosub @MANSIO2_29998
goto @MANSIO2_23506

:MANSIO2_23332
gosub @MANSIO2_30429
goto @MANSIO2_23506

:MANSIO2_23346
gosub @MANSIO2_30593
goto @MANSIO2_23506

:MANSIO2_23360
gosub @MANSIO2_30823
goto @MANSIO2_23506

:MANSIO2_23374
gosub @MANSIO2_31218
goto @MANSIO2_23506

:MANSIO2_23388
gosub @MANSIO2_31918
goto @MANSIO2_23506

:MANSIO2_23402
gosub @MANSIO2_32015
goto @MANSIO2_23506

:MANSIO2_23416
gosub @MANSIO2_32147
goto @MANSIO2_23506

:MANSIO2_23430
gosub @MANSIO2_32227
goto @MANSIO2_23506

:MANSIO2_23444
gosub @MANSIO2_32426
goto @MANSIO2_23506

:MANSIO2_23458
gosub @MANSIO2_32707
goto @MANSIO2_23506

:MANSIO2_23472
goto @MANSIO2_23506

:MANSIO2_23479
write_debug "UNKNOWN_GUARD_AI_ACTION"

:MANSIO2_23506
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22796
return 

:MANSIO2_23529
if 
  267@ == 1
goto_if_false @MANSIO2_23625
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23623
183@(52@,6i) = 19
275@(52@,6i) = 1
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23623
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@

:MANSIO2_23623
return 

:MANSIO2_23625
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23786
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23786
if 
  has_char_spotted_char_in_front 131@(52@,6i) {handle} $scplayer
goto_if_false @MANSIO2_23786
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  15.0 > 72@
goto_if_false @MANSIO2_23786
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_23786
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23895
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23895
if or
  can_char_see_dead_char 131@(52@,6i) {pedType} PedType.Mission2
  can_char_see_dead_char 131@(52@,6i) {pedType} PedType.Mission1
goto_if_false @MANSIO2_23895
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_23893
213@ = 5

:MANSIO2_23893
return 

:MANSIO2_23895
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24165
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24165
if 
  284@ == 1
goto_if_false @MANSIO2_23989
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_23987
213@ = 3

:MANSIO2_23987
return 

:MANSIO2_23989
if 
  285@ == 1
goto_if_false @MANSIO2_24165
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_24165
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24124
71@ *= -1.0

:MANSIO2_24124
if 
  5.0 > 71@
goto_if_false @MANSIO2_24165
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_24165
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24261
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24261
if or
  has_char_been_damaged_by_char 131@(52@,6i) {handle} $scplayer
  has_char_been_damaged_by_weapon 131@(52@,6i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_24261
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_24261
return 

:MANSIO2_24263
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24285
return 

:MANSIO2_24285
73@ = 0
if 
  has_char_spotted_char_in_front 131@(52@,6i) {handle} $scplayer
goto_if_false @MANSIO2_24322
73@ = 1

:MANSIO2_24322
if 
  73@ == 0
goto_if_false @MANSIO2_24503
if 
  284@ == 1
goto_if_false @MANSIO2_24503
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  75.0 > 70@
goto_if_false @MANSIO2_24503
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24475
71@ *= -1.0

:MANSIO2_24475
if 
  5.0 > 71@
goto_if_false @MANSIO2_24503
73@ = 1

:MANSIO2_24503
if 
  73@ == 0
goto_if_false @MANSIO2_24684
if 
  285@ == 1
goto_if_false @MANSIO2_24684
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_24684
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24656
71@ *= -1.0

:MANSIO2_24656
if 
  5.0 > 71@
goto_if_false @MANSIO2_24684
73@ = 1

:MANSIO2_24684
if 
  73@ == 0
goto_if_false @MANSIO2_24743
if or
  has_char_been_damaged_by_char 131@(52@,6i) {handle} $scplayer
  has_char_been_damaged_by_weapon 131@(52@,6i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_24743
73@ = 1

:MANSIO2_24743
if 
  73@ == 1
goto_if_false @MANSIO2_24834
if and
  183@(52@,6i) <> 23
  183@(52@,6i) <> 26
  183@(52@,6i) <> 24
  183@(52@,6i) <> 25
goto_if_false @MANSIO2_24827
183@(52@,6i) = 23

:MANSIO2_24827
gosub @MANSIO2_24836

:MANSIO2_24834
return 

:MANSIO2_24836
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24881
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
goto @MANSIO2_24899

:MANSIO2_24881
57@, 58@, 59@ = get_dead_char_coordinates 131@(52@,6i)

:MANSIO2_24899
48@ = 0

:MANSIO2_24906
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25146
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_25146
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25037
70@ *= -1.0

:MANSIO2_25037
if 
  6.0 > 70@
goto_if_false @MANSIO2_25146
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25146
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25146
183@(48@,6i) = 23

:MANSIO2_25146
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_24906
48@ = 0

:MANSIO2_25174
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_25421
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_25421
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25297
70@ *= -1.0

:MANSIO2_25297
if 
  6.0 > 70@
goto_if_false @MANSIO2_25421
if 
  267@ == 0
goto_if_false @MANSIO2_25421
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_25414
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_25403
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_25403
281@(48@,2i) = 1

:MANSIO2_25414
goto @MANSIO2_25421

:MANSIO2_25421
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25174
return 

:MANSIO2_25444
57@, 58@, 59@ = get_dead_char_coordinates 131@(52@,6i)
48@ = 0

:MANSIO2_25469
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25709
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_25709
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25600
70@ *= -1.0

:MANSIO2_25600
if 
  6.0 > 70@
goto_if_false @MANSIO2_25709
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25709
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25709
183@(48@,6i) = 23

:MANSIO2_25709
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_25469
48@ = 0

:MANSIO2_25737
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_25984
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_25984
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25860
70@ *= -1.0

:MANSIO2_25860
if 
  6.0 > 70@
goto_if_false @MANSIO2_25984
if 
  267@ == 0
goto_if_false @MANSIO2_25984
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_25977
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_25966
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_25966
281@(48@,2i) = 1

:MANSIO2_25977
goto @MANSIO2_25984

:MANSIO2_25984
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25737
return 

:MANSIO2_26007
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26025
return 

:MANSIO2_26025
anchor_boat 153@ {state} False
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
183@(52@,6i) = 1
return 

:MANSIO2_26083
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26101
return 

:MANSIO2_26101
if 
  not locate_car_3d 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {xRadius} 10.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_26231
40@ = get_script_task_status 131@(52@,6i) {taskId} 1489
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26191
return 

:MANSIO2_26191
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
return 

:MANSIO2_26231
183@(52@,6i) = 2
return 

:MANSIO2_26244
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26262
return 

:MANSIO2_26262
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
183@(52@,6i) = 3
return 

:MANSIO2_26313
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26331
return 

:MANSIO2_26331
if 
  not locate_car_3d 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {xRadius} 3.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_26461
40@ = get_script_task_status 131@(52@,6i) {taskId} 1489
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26421
return 

:MANSIO2_26421
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
return 

:MANSIO2_26461
set_car_coordinates 153@ {x} -1446.218 {y} 491.9281 {z} 0.0
set_car_heading 153@ {heading} 270.0
anchor_boat 153@ {state} True
195@ = 60
195@ *= 1000
add_int_lvar_to_int_lvar 195@ += 46@
183@(52@,6i) = 4
return 

:MANSIO2_26534
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26574
183@(50@,6i) = 5

:MANSIO2_26574
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26614
183@(50@,6i) = 5

:MANSIO2_26614
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26654
183@(50@,6i) = 5

:MANSIO2_26654
50@ = 5
create_char PedType.Mission2 {modelId} 287 {x} -1401.786 {y} 504.5374 {z} 17.2266 {var_handle} 131@(50@,6i)
set_char_heading 131@(50@,6i) {heading} 43.9825
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_accuracy 131@(50@,6i) {accuracy} 70
set_char_shoot_rate 131@(50@,6i) {rate} 70
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 181@
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 1
create_char PedType.Mission1 {modelId} 50 {x} -1421.757 {y} 496.6105 {z} 2.0463 {var_handle} 137@(50@,2i)
189@(50@,2i) = 0
50@ = 0
create_char PedType.Mission1 {modelId} 50 {x} -1346.219 {y} 497.9554 {z} 10.1953 {var_handle} 137@(50@,2i)
189@(50@,2i) = 0
50@ = 0
create_car 530 {x} -1415.933 {y} 502.7617 {z} 2.0391 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 250.5131
50@ = 1
create_car 530 {x} -1312.89 {y} 503.5017 {z} 10.1953 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 265.6291
50@ = 2
create_car 530 {x} -1405.751 {y} 495.4972 {z} 10.2026 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 81.1713
160@ = create_object #MISSILE_07_SFXR {x} -1312.89 {y} 503.5017 {z} 10.1953
attach_object_to_car 160@ {handle} 154@(50@,3i) {xOffset} 0.0 {yOffset} 0.4 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
return 

:MANSIO2_27077
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27099
return 

:MANSIO2_27099
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27462 {caseNum1} 0 {caseLabel1} @MANSIO2_27162 {caseNum2} 1 {caseLabel2} @MANSIO2_27238 {caseNum3} 2 {caseLabel3} @MANSIO2_27323 {caseNum4} 3 {caseLabel4} @MANSIO2_27408 {caseNum5} 4 {caseLabel5} @MANSIO2_27444 {caseNum6} 5 {caseLabel6} @MANSIO2_27426 {caseNum7} -1 {caseLabel7} @MANSIO2_27494

:MANSIO2_27162
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1423.1379 {y} 493.9279 {z} 2.0391
set_char_heading 131@(52@,6i) {heading} 355.6815
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27238
detach_char_from_car 131@(52@,6i)
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1394.4771 {y} 500.653 {z} 2.0463
set_char_heading 131@(52@,6i) {heading} 214.6545
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27323
detach_char_from_car 131@(52@,6i)
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1396.397 {y} 500.5882 {z} 2.0391
set_char_heading 131@(52@,6i) {heading} 233.6078
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27408
183@(52@,6i) = 14
goto @MANSIO2_27494

:MANSIO2_27426
183@(52@,6i) = 6
goto @MANSIO2_27494

:MANSIO2_27444
183@(52@,6i) = 14
goto @MANSIO2_27494

:MANSIO2_27462
write_debug "UNKNOWN_GUARD_FOR_ACTIVATION"

:MANSIO2_27494
if 
  52@ <> 5
goto_if_false @MANSIO2_27571
give_weapon_to_char 131@(52@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(52@,6i) {weaponType} WeaponType.M4
set_char_accuracy 131@(52@,6i) {accuracy} 70
set_char_shoot_rate 131@(52@,6i) {rate} 70
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 181@

:MANSIO2_27571
return 

:MANSIO2_27573
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27595
return 

:MANSIO2_27595
switch_start 52@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27866 {caseNum1} 0 {caseLabel1} @MANSIO2_27658 {caseNum2} 1 {caseLabel2} @MANSIO2_27704 {caseNum3} 2 {caseLabel3} @MANSIO2_27750 {caseNum4} 5 {caseLabel4} @MANSIO2_27820 {caseNum5} -1 {caseLabel5} @MANSIO2_27897 {caseNum6} -1 {caseLabel6} @MANSIO2_27897 {caseNum7} -1 {caseLabel7} @MANSIO2_27897

:MANSIO2_27658
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1348.171 {y} 498.9987 {z} 10.1953 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27704
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1340.658 {y} 500.8229 {z} 17.2266 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27750
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 12
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
goto @MANSIO2_27897

:MANSIO2_27820
task_go_straight_to_coord 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27866
write_debug "UNKNOWN_GUARD_FOR_WALK_HOME"

:MANSIO2_27897
return 

:MANSIO2_27899
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27921
return 

:MANSIO2_27921
switch_start 52@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28208 {caseNum1} 0 {caseLabel1} @MANSIO2_27984 {caseNum2} 1 {caseLabel2} @MANSIO2_28054 {caseNum3} 5 {caseLabel3} @MANSIO2_28138 {caseNum4} -1 {caseLabel4} @MANSIO2_28242 {caseNum5} -1 {caseLabel5} @MANSIO2_28242 {caseNum6} -1 {caseLabel6} @MANSIO2_28242 {caseNum7} -1 {caseLabel7} @MANSIO2_28242

:MANSIO2_27984
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1348.171 {y} 498.9987 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28047
183@(52@,6i) = 10

:MANSIO2_28047
goto @MANSIO2_28242

:MANSIO2_28054
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1340.658 {y} 500.8229 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28131
task_achieve_heading 131@(52@,6i) {heading} 303.0599
183@(52@,6i) = 27

:MANSIO2_28131
goto @MANSIO2_28242

:MANSIO2_28138
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1435.72 {y} 501.0618 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28201
183@(52@,6i) = 16

:MANSIO2_28201
goto @MANSIO2_28242

:MANSIO2_28208
write_debug "UNKNOWN_GUARD_FOR_WALKING_HOME"

:MANSIO2_28242
return 

:MANSIO2_28244
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28266
return 

:MANSIO2_28266
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28408 {caseNum1} 0 {caseLabel1} @MANSIO2_28329 {caseNum2} -1 {caseLabel2} @MANSIO2_28434 {caseNum3} -1 {caseLabel3} @MANSIO2_28434 {caseNum4} -1 {caseLabel4} @MANSIO2_28434 {caseNum5} -1 {caseLabel5} @MANSIO2_28434 {caseNum6} -1 {caseLabel6} @MANSIO2_28434 {caseNum7} -1 {caseLabel7} @MANSIO2_28434

:MANSIO2_28329
if 
  not is_char_dead 138@
goto_if_false @MANSIO2_28377
task_chat_with_char 131@(52@,6i) {other} 138@ {leadSpeaker} True {_p4} 1
task_chat_with_char 138@ {other} 131@(52@,6i) {leadSpeaker} False {_p4} 1

:MANSIO2_28377
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 7000
goto @MANSIO2_28434

:MANSIO2_28408
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28434
183@(52@,6i) = 9
return 

:MANSIO2_28447
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28469
return 

:MANSIO2_28469
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28573 {caseNum1} 0 {caseLabel1} @MANSIO2_28532 {caseNum2} -1 {caseLabel2} @MANSIO2_28599 {caseNum3} -1 {caseLabel3} @MANSIO2_28599 {caseNum4} -1 {caseLabel4} @MANSIO2_28599 {caseNum5} -1 {caseLabel5} @MANSIO2_28599 {caseNum6} -1 {caseLabel6} @MANSIO2_28599 {caseNum7} -1 {caseLabel7} @MANSIO2_28599

:MANSIO2_28532
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_28566
183@(52@,6i) = 6

:MANSIO2_28566
goto @MANSIO2_28599

:MANSIO2_28573
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28599
return 

:MANSIO2_28601
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28623
return 

:MANSIO2_28623
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28795 {caseNum1} 0 {caseLabel1} @MANSIO2_28686 {caseNum2} -1 {caseLabel2} @MANSIO2_28820 {caseNum3} -1 {caseLabel3} @MANSIO2_28820 {caseNum4} -1 {caseLabel4} @MANSIO2_28820 {caseNum5} -1 {caseLabel5} @MANSIO2_28820 {caseNum6} -1 {caseLabel6} @MANSIO2_28820 {caseNum7} -1 {caseLabel7} @MANSIO2_28820

:MANSIO2_28686
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1348.075 {y} 493.1958 {z} 10.1953 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -1345.749 {y} 493.6958 {z} 10.2027 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 180.0
task_sit_down -1 {time} 99999999
close_sequence_task 56@
perform_sequence_task 131@(52@,6i) {sequence} 56@
clear_sequence_task 56@
183@(52@,6i) = 27
goto @MANSIO2_28820

:MANSIO2_28795
write_debug "UNKNOWN_GUARD_FOR_SIT"

:MANSIO2_28820
return 

:MANSIO2_28822
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28844
return 

:MANSIO2_28844
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29032 {caseNum1} 1 {caseLabel1} @MANSIO2_28932 {caseNum2} 2 {caseLabel2} @MANSIO2_28907 {caseNum3} 3 {caseLabel3} @MANSIO2_28957 {caseNum4} 4 {caseLabel4} @MANSIO2_29007 {caseNum5} 5 {caseLabel5} @MANSIO2_28982 {caseNum6} -1 {caseLabel6} @MANSIO2_29060 {caseNum7} -1 {caseLabel7} @MANSIO2_29060

:MANSIO2_28907
gosub @MANSIO2_32909
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28932
gosub @MANSIO2_33708
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28957
gosub @MANSIO2_34399
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28982
gosub @MANSIO2_35198
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_29007
gosub @MANSIO2_35889
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_29032
write_debug "UNKNOWN_GUARD_FOR_WANDER"

:MANSIO2_29060
return 

:MANSIO2_29062
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29084
return 

:MANSIO2_29084
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29652 {caseNum1} 1 {caseLabel1} @MANSIO2_29248 {caseNum2} 2 {caseLabel2} @MANSIO2_29147 {caseNum3} 3 {caseLabel3} @MANSIO2_29349 {caseNum4} 4 {caseLabel4} @MANSIO2_29551 {caseNum5} 5 {caseLabel5} @MANSIO2_29450 {caseNum6} -1 {caseLabel6} @MANSIO2_29683 {caseNum7} -1 {caseLabel7} @MANSIO2_29683

:MANSIO2_29147
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29241
gosub @MANSIO2_33239
if 
  73@ == 1
goto_if_false @MANSIO2_29241
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29241
goto @MANSIO2_29683

:MANSIO2_29248
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29342
gosub @MANSIO2_34003
if 
  73@ == 1
goto_if_false @MANSIO2_29342
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29342
goto @MANSIO2_29683

:MANSIO2_29349
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29443
gosub @MANSIO2_34729
if 
  73@ == 1
goto_if_false @MANSIO2_29443
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29443
goto @MANSIO2_29683

:MANSIO2_29450
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29544
gosub @MANSIO2_35493
if 
  73@ == 1
goto_if_false @MANSIO2_29544
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29544
goto @MANSIO2_29683

:MANSIO2_29551
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29645
gosub @MANSIO2_36184
if 
  73@ == 1
goto_if_false @MANSIO2_29645
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29645
goto @MANSIO2_29683

:MANSIO2_29652
write_debug "UNKNOWN_GUARD_FOR_WANDERING"

:MANSIO2_29683
return 

:MANSIO2_29685
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29707
return 

:MANSIO2_29707
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29741
183@(52@,6i) = 11

:MANSIO2_29741
return 

:MANSIO2_29743
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29765
return 

:MANSIO2_29765
if 
  is_char_in_any_plane 131@(52@,6i)
goto_if_false @MANSIO2_29794
task_leave_any_car 131@(52@,6i)

:MANSIO2_29794
183@(52@,6i) = 15
return 

:MANSIO2_29807
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29829
return 

:MANSIO2_29829
if 
  is_char_in_any_plane 131@(52@,6i)
goto_if_false @MANSIO2_29851
return 

:MANSIO2_29851
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29961 {caseNum1} 3 {caseLabel1} @MANSIO2_29914 {caseNum2} 4 {caseLabel2} @MANSIO2_29943 {caseNum3} -1 {caseLabel3} @MANSIO2_29996 {caseNum4} -1 {caseLabel4} @MANSIO2_29996 {caseNum5} -1 {caseLabel5} @MANSIO2_29996 {caseNum6} -1 {caseLabel6} @MANSIO2_29996 {caseNum7} -1 {caseLabel7} @MANSIO2_29996

:MANSIO2_29914
183@(52@,6i) = 11
269@(52@,6i) = 1
goto @MANSIO2_29996

:MANSIO2_29943
183@(52@,6i) = 27
goto @MANSIO2_29996

:MANSIO2_29961
write_debug "UNKNOWN_GUARD_FOR_EXITING_PLANE"

:MANSIO2_29996
return 

:MANSIO2_29998
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30020
return 

:MANSIO2_30020
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30393 {caseNum1} 5 {caseLabel1} @MANSIO2_30083 {caseNum2} -1 {caseLabel2} @MANSIO2_30427 {caseNum3} -1 {caseLabel3} @MANSIO2_30427 {caseNum4} -1 {caseLabel4} @MANSIO2_30427 {caseNum5} -1 {caseLabel5} @MANSIO2_30427 {caseNum6} -1 {caseLabel6} @MANSIO2_30427 {caseNum7} -1 {caseLabel7} @MANSIO2_30427

:MANSIO2_30083
if 
  is_car_dead 142@
goto_if_false @MANSIO2_30126
183@(52@,6i) = 11
clear_look_at 131@(52@,6i)
goto @MANSIO2_30386

:MANSIO2_30126
if 
  not is_playback_going_on_for_car 142@
goto_if_false @MANSIO2_30169
183@(52@,6i) = 11
clear_look_at 131@(52@,6i)
goto @MANSIO2_30386

:MANSIO2_30169
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
57@, 58@, 59@ = get_car_coordinates 142@
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = get_heading_from_vector_2d 57@ {y} 58@
task_achieve_heading 131@(52@,6i) {heading} 63@
40@ = get_script_task_status 131@(52@,6i) {taskId} 1471
if 
  not is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @MANSIO2_30351
if 
  not is_char_dead 134@
goto_if_false @MANSIO2_30351
task_look_at_char 131@(52@,6i) {target} 134@ {time} -2

:MANSIO2_30351
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
183@(52@,6i) = 17

:MANSIO2_30386
goto @MANSIO2_30427

:MANSIO2_30393
write_debug "UNKNOWN_GUARD_FOR_WATCH_PLANES"

:MANSIO2_30427
return 

:MANSIO2_30429
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30451
return 

:MANSIO2_30451
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30555 {caseNum1} 5 {caseLabel1} @MANSIO2_30514 {caseNum2} -1 {caseLabel2} @MANSIO2_30591 {caseNum3} -1 {caseLabel3} @MANSIO2_30591 {caseNum4} -1 {caseLabel4} @MANSIO2_30591 {caseNum5} -1 {caseLabel5} @MANSIO2_30591 {caseNum6} -1 {caseLabel6} @MANSIO2_30591 {caseNum7} -1 {caseLabel7} @MANSIO2_30591

:MANSIO2_30514
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_30548
183@(52@,6i) = 16

:MANSIO2_30548
goto @MANSIO2_30591

:MANSIO2_30555
write_debug "UNKNOWN_GUARD_FOR_WATCHING_PLANE"

:MANSIO2_30591
return 

:MANSIO2_30593
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30615
return 

:MANSIO2_30615
if 
  is_char_in_any_car 131@(52@,6i)
goto_if_false @MANSIO2_30637
return 

:MANSIO2_30637
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30791 {caseNum1} 4 {caseLabel1} @MANSIO2_30700 {caseNum2} -1 {caseLabel2} @MANSIO2_30821 {caseNum3} -1 {caseLabel3} @MANSIO2_30821 {caseNum4} -1 {caseLabel4} @MANSIO2_30821 {caseNum5} -1 {caseLabel5} @MANSIO2_30821 {caseNum6} -1 {caseLabel6} @MANSIO2_30821 {caseNum7} -1 {caseLabel7} @MANSIO2_30821

:MANSIO2_30700
set_char_coordinates 131@(52@,6i) {x} -1413.004 {y} 508.974 {z} 10.1953
183@(52@,6i) = 27
269@(52@,6i) = 1
add_blip_for_char 131@(52@,6i) {var_handle} 173@(52@,6i)
change_blip_display 173@(52@,6i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 173@(52@,6i) {state} True
goto @MANSIO2_30821

:MANSIO2_30791
write_debug "UNKNOWN_GUARD_FOR_TELEPORT"

:MANSIO2_30821
return 

:MANSIO2_30823
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30845
return 

:MANSIO2_30845
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31184 {caseNum1} 0 {caseLabel1} @MANSIO2_30908 {caseNum2} 1 {caseLabel2} @MANSIO2_30954 {caseNum3} 2 {caseLabel3} @MANSIO2_31000 {caseNum4} 3 {caseLabel4} @MANSIO2_31046 {caseNum5} 4 {caseLabel5} @MANSIO2_31138 {caseNum6} 5 {caseLabel6} @MANSIO2_31092 {caseNum7} -1 {caseLabel7} @MANSIO2_31216

:MANSIO2_30908
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1324.158 {y} 508.4572 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_30954
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1348.061 {y} 492.4249 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31000
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1299.653 {y} 509.2915 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31046
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1434.212 {y} 508.0886 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31092
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1418.207 {y} 492.2773 {z} 17.2266 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31138
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1409.1541 {y} 506.4637 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31184
write_debug "UNKNOWN_GUARD_FOR_GOTO_ALERT"

:MANSIO2_31216
return 

:MANSIO2_31218
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_31240
return 

:MANSIO2_31240
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31873 {caseNum1} 0 {caseLabel1} @MANSIO2_31303 {caseNum2} 1 {caseLabel2} @MANSIO2_31398 {caseNum3} 2 {caseLabel3} @MANSIO2_31493 {caseNum4} 3 {caseLabel4} @MANSIO2_31588 {caseNum5} 4 {caseLabel5} @MANSIO2_31778 {caseNum6} 5 {caseLabel6} @MANSIO2_31683 {caseNum7} -1 {caseLabel7} @MANSIO2_31909

:MANSIO2_31303
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1324.158 {y} 508.4572 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31391
task_achieve_heading 131@(52@,6i) {heading} 98.0823
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31391
goto @MANSIO2_31909

:MANSIO2_31398
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1348.061 {y} 492.4249 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31486
task_achieve_heading 131@(52@,6i) {heading} 0.0
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31486
goto @MANSIO2_31909

:MANSIO2_31493
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1299.653 {y} 509.2915 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31581
task_achieve_heading 131@(52@,6i) {heading} 122.1536
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31581
goto @MANSIO2_31909

:MANSIO2_31588
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1434.212 {y} 508.0886 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31676
task_achieve_heading 131@(52@,6i) {heading} 261.6837
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31676
goto @MANSIO2_31909

:MANSIO2_31683
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1418.207 {y} 492.2773 {z} 17.2266 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31771
task_achieve_heading 131@(52@,6i) {heading} 304.1052
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31771
goto @MANSIO2_31909

:MANSIO2_31778
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1409.1541 {y} 506.4637 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31866
task_achieve_heading 131@(52@,6i) {heading} 270.2725
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31866
goto @MANSIO2_31909

:MANSIO2_31873
write_debug "UNKNOWN_GUARD_FOR_GOING_TO_ALERT"

:MANSIO2_31909
gosub @MANSIO2_24263
return 

:MANSIO2_31918
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_31940
return 

:MANSIO2_31940
40@ = get_script_task_status 131@(52@,6i) {taskId} 1492
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32006
set_char_kinda_stay_in_same_place 131@(52@,6i) {state} True
183@(52@,6i) = 22
198@(52@,6i) = 0

:MANSIO2_32006
gosub @MANSIO2_24263
return 

:MANSIO2_32015
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32037
return 

:MANSIO2_32037
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32062
return 

:MANSIO2_32062
40@ = get_script_task_status 131@(52@,6i) {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32138
task_kill_char_on_foot_while_ducking 131@(52@,6i) {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 60
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32138
gosub @MANSIO2_24263
return 

:MANSIO2_32147
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32169
return 

:MANSIO2_32169
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@
set_char_kinda_stay_in_same_place 131@(52@,6i) {state} False
183@(52@,6i) = 26
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32227
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32249
return 

:MANSIO2_32249
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32347 {caseNum1} 0 {caseLabel1} @MANSIO2_32312 {caseNum2} -1 {caseLabel2} @MANSIO2_32379 {caseNum3} -1 {caseLabel3} @MANSIO2_32379 {caseNum4} -1 {caseLabel4} @MANSIO2_32379 {caseNum5} -1 {caseLabel5} @MANSIO2_32379 {caseNum6} -1 {caseLabel6} @MANSIO2_32379 {caseNum7} -1 {caseLabel7} @MANSIO2_32379

:MANSIO2_32312
task_go_straight_to_coord 131@(52@,6i) {x} -1431.944 {y} 500.2454 {z} 2.0391 {speed} MoveState.Run {time} -2
goto @MANSIO2_32379

:MANSIO2_32347
write_debug "UNKNOWN_GUARD_FOR_RUN_ATTACK"

:MANSIO2_32379
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@
183@(52@,6i) = 25
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32426
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32448
return 

:MANSIO2_32448
if 
  267@ == 0
goto_if_false @MANSIO2_32518
if 
  is_char_shooting 131@(52@,6i)
goto_if_false @MANSIO2_32518
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32518
213@ = 3

:MANSIO2_32518
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32662 {caseNum1} 0 {caseLabel1} @MANSIO2_32581 {caseNum2} -1 {caseLabel2} @MANSIO2_32698 {caseNum3} -1 {caseLabel3} @MANSIO2_32698 {caseNum4} -1 {caseLabel4} @MANSIO2_32698 {caseNum5} -1 {caseLabel5} @MANSIO2_32698 {caseNum6} -1 {caseLabel6} @MANSIO2_32698 {caseNum7} -1 {caseLabel7} @MANSIO2_32698

:MANSIO2_32581
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1431.944 {y} 500.2454 {z} 2.0391 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_32655
198@(52@,6i) = 0
183@(52@,6i) = 26

:MANSIO2_32655
goto @MANSIO2_32698

:MANSIO2_32662
write_debug "UNKNOWN_GUARD_FOR_RUNNING_ATTACK"

:MANSIO2_32698
gosub @MANSIO2_24263
return 

:MANSIO2_32707
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32729
return 

:MANSIO2_32729
if 
  267@ == 0
goto_if_false @MANSIO2_32799
if 
  is_char_shooting 131@(52@,6i)
goto_if_false @MANSIO2_32799
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32799
213@ = 3

:MANSIO2_32799
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32824
return 

:MANSIO2_32824
40@ = get_script_task_status 131@(52@,6i) {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32900
task_kill_char_on_foot_while_ducking 131@(52@,6i) {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 60
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32900
gosub @MANSIO2_24263
return 

:MANSIO2_32909
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32931
return 

:MANSIO2_32931
50@ = generate_random_int_in_range 0 {max} 6
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_33213 {caseNum1} 0 {caseLabel1} @MANSIO2_33003 {caseNum2} 1 {caseLabel2} @MANSIO2_33038 {caseNum3} 2 {caseLabel3} @MANSIO2_33073 {caseNum4} 3 {caseLabel4} @MANSIO2_33108 {caseNum5} 4 {caseLabel5} @MANSIO2_33143 {caseNum6} 5 {caseLabel6} @MANSIO2_33178 {caseNum7} -1 {caseLabel7} @MANSIO2_33213

:MANSIO2_33003
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33038
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1325.661 {y} 498.4251 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33073
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1302.248 {y} 504.2907 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33108
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1292.353 {y} 494.8264 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33143
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1301.599 {y} 509.8161 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33178
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1294.257 {y} 504.8536 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33213

:MANSIO2_33213
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_33239
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_33268
return 

:MANSIO2_33268
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33341
task_achieve_heading 131@(52@,6i) {heading} 155.3066
73@ = 1

:MANSIO2_33341
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1325.661 {y} 498.4251 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33414
task_achieve_heading 131@(52@,6i) {heading} 77.7535
73@ = 1

:MANSIO2_33414
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1302.248 {y} 504.2907 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33487
task_achieve_heading 131@(52@,6i) {heading} 275.9547
73@ = 1

:MANSIO2_33487
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1292.353 {y} 494.8264 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33560
task_achieve_heading 131@(52@,6i) {heading} 248.83
73@ = 1

:MANSIO2_33560
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1301.599 {y} 509.8161 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33633
task_achieve_heading 131@(52@,6i) {heading} 14.841
73@ = 1

:MANSIO2_33633
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1294.257 {y} 504.8536 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33706
task_achieve_heading 131@(52@,6i) {heading} 157.6618
73@ = 1

:MANSIO2_33706
return 

:MANSIO2_33708
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_33730
return 

:MANSIO2_33730
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_33977 {caseNum1} 0 {caseLabel1} @MANSIO2_33802 {caseNum2} 1 {caseLabel2} @MANSIO2_33837 {caseNum3} 2 {caseLabel3} @MANSIO2_33872 {caseNum4} 3 {caseLabel4} @MANSIO2_33907 {caseNum5} 4 {caseLabel5} @MANSIO2_33942 {caseNum6} -1 {caseLabel6} @MANSIO2_33977 {caseNum7} -1 {caseLabel7} @MANSIO2_33977

:MANSIO2_33802
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1311.834 {y} 489.4401 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33977

:MANSIO2_33837
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1298.359 {y} 512.5721 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33977

:MANSIO2_33872
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1247.3521 {y} 502.8824 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33977

:MANSIO2_33907
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1359.656 {y} 512.5123 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33977

:MANSIO2_33942
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1349.606 {y} 493.5821 {z} 17.2279 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33977

:MANSIO2_33977
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34003
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34032
return 

:MANSIO2_34032
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1311.834 {y} 489.4401 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34105
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_34105
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1298.359 {y} 512.5721 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34178
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_34178
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1247.3521 {y} 502.8824 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34251
task_achieve_heading 131@(52@,6i) {heading} 270.0
73@ = 1

:MANSIO2_34251
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1359.656 {y} 512.5123 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34324
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_34324
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1349.606 {y} 493.5821 {z} 17.2279 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34397
task_achieve_heading 131@(52@,6i) {heading} 80.0
73@ = 1

:MANSIO2_34397
return 

:MANSIO2_34399
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34421
return 

:MANSIO2_34421
50@ = generate_random_int_in_range 0 {max} 6
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_34703 {caseNum1} 0 {caseLabel1} @MANSIO2_34493 {caseNum2} 1 {caseLabel2} @MANSIO2_34528 {caseNum3} 2 {caseLabel3} @MANSIO2_34563 {caseNum4} 3 {caseLabel4} @MANSIO2_34598 {caseNum5} 4 {caseLabel5} @MANSIO2_34633 {caseNum6} 5 {caseLabel6} @MANSIO2_34668 {caseNum7} -1 {caseLabel7} @MANSIO2_34703

:MANSIO2_34493
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1444.29 {y} 496.4273 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34528
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1449.621 {y} 506.0983 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34563
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1424.2531 {y} 511.1483 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34598
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1411.083 {y} 511.8316 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34633
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1417.342 {y} 505.5704 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34668
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1431.498 {y} 501.8023 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34703

:MANSIO2_34703
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34729
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34758
return 

:MANSIO2_34758
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1444.29 {y} 496.4273 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34831
task_achieve_heading 131@(52@,6i) {heading} 56.0502
73@ = 1

:MANSIO2_34831
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1449.621 {y} 506.0983 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34904
task_achieve_heading 131@(52@,6i) {heading} 123.3438
73@ = 1

:MANSIO2_34904
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1424.2531 {y} 511.1483 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34977
task_achieve_heading 131@(52@,6i) {heading} 318.9861
73@ = 1

:MANSIO2_34977
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1411.083 {y} 511.8316 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35050
task_achieve_heading 131@(52@,6i) {heading} 28.0647
73@ = 1

:MANSIO2_35050
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1417.342 {y} 505.5704 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35123
task_achieve_heading 131@(52@,6i) {heading} 139.4299
73@ = 1

:MANSIO2_35123
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1431.498 {y} 501.8023 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35196
task_achieve_heading 131@(52@,6i) {heading} 242.7025
73@ = 1

:MANSIO2_35196
return 

:MANSIO2_35198
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35220
return 

:MANSIO2_35220
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_35467 {caseNum1} 0 {caseLabel1} @MANSIO2_35292 {caseNum2} 1 {caseLabel2} @MANSIO2_35327 {caseNum3} 2 {caseLabel3} @MANSIO2_35362 {caseNum4} 3 {caseLabel4} @MANSIO2_35397 {caseNum5} 4 {caseLabel5} @MANSIO2_35432 {caseNum6} -1 {caseLabel6} @MANSIO2_35467 {caseNum7} -1 {caseLabel7} @MANSIO2_35467

:MANSIO2_35292
task_go_straight_to_coord 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35467

:MANSIO2_35327
task_go_straight_to_coord 131@(52@,6i) {x} -1419.48 {y} 510.346 {z} 17.2295 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35467

:MANSIO2_35362
task_go_straight_to_coord 131@(52@,6i) {x} -1412.218 {y} 489.4574 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35467

:MANSIO2_35397
task_go_straight_to_coord 131@(52@,6i) {x} -1395.9351 {y} 498.2455 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35467

:MANSIO2_35432
task_go_straight_to_coord 131@(52@,6i) {x} -1373.579 {y} 512.998 {z} 17.2295 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35467

:MANSIO2_35467
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_35493
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35522
return 

:MANSIO2_35522
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35595
task_achieve_heading 131@(52@,6i) {heading} 90.0
73@ = 1

:MANSIO2_35595
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1419.48 {y} 510.346 {z} 17.2295 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35668
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_35668
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1412.218 {y} 489.4574 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35741
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_35741
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1395.9351 {y} 498.2455 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35814
task_achieve_heading 131@(52@,6i) {heading} 194.6539
73@ = 1

:MANSIO2_35814
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1373.579 {y} 512.998 {z} 17.2295 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35887
task_achieve_heading 131@(52@,6i) {heading} 326.651
73@ = 1

:MANSIO2_35887
return 

:MANSIO2_35889
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35911
return 

:MANSIO2_35911
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_36158 {caseNum1} 0 {caseLabel1} @MANSIO2_35983 {caseNum2} 1 {caseLabel2} @MANSIO2_36018 {caseNum3} 2 {caseLabel3} @MANSIO2_36053 {caseNum4} 3 {caseLabel4} @MANSIO2_36088 {caseNum5} 4 {caseLabel5} @MANSIO2_36123 {caseNum6} -1 {caseLabel6} @MANSIO2_36158 {caseNum7} -1 {caseLabel7} @MANSIO2_36158

:MANSIO2_35983
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1411.714 {y} 512.2815 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36158

:MANSIO2_36018
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1406.451 {y} 502.476 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36158

:MANSIO2_36053
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1366.03 {y} 505.7779 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36158

:MANSIO2_36088
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1366.484 {y} 516.8234 {z} 10.1797 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36158

:MANSIO2_36123
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1344.821 {y} 499.0515 {z} 10.2027 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36158

:MANSIO2_36158
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_36184
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_36213
return 

:MANSIO2_36213
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1411.714 {y} 512.2815 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36286
task_achieve_heading 131@(52@,6i) {heading} 24.5074
73@ = 1

:MANSIO2_36286
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1406.451 {y} 502.476 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36359
task_achieve_heading 131@(52@,6i) {heading} 236.3499
73@ = 1

:MANSIO2_36359
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1366.03 {y} 505.7779 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36432
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_36432
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1366.484 {y} 516.8234 {z} 10.1797 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36505
task_achieve_heading 131@(52@,6i) {heading} 341.4966
73@ = 1

:MANSIO2_36505
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1344.821 {y} 499.0515 {z} 10.2027 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36578
task_achieve_heading 131@(52@,6i) {heading} 192.1196
73@ = 1

:MANSIO2_36578
return 

:MANSIO2_36580
52@ = 0

:MANSIO2_36587
if and
  189@(52@,2i) <> -1
  189@(52@,2i) <> -2
goto_if_false @MANSIO2_36658
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_36658
189@(52@,2i) = -2
gosub @MANSIO2_39338

:MANSIO2_36658
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36587
52@ = 0

:MANSIO2_36686
gosub @MANSIO2_37173
switch_start 189@(52@,2i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_37128 {caseNum1} -2 {caseLabel1} @MANSIO2_36890 {caseNum2} -1 {caseLabel2} @MANSIO2_36890 {caseNum3} 0 {caseLabel3} @MANSIO2_36897 {caseNum4} 1 {caseLabel4} @MANSIO2_36939 {caseNum5} 2 {caseLabel5} @MANSIO2_36953 {caseNum6} 3 {caseLabel6} @MANSIO2_36967 {caseNum7} 4 {caseLabel7} @MANSIO2_36981
switch_continued 5 {caseLabel1} @MANSIO2_36995 {caseNum2} 6 {caseLabel2} @MANSIO2_36911 {caseNum3} 7 {caseLabel3} @MANSIO2_36925 {caseNum4} 8 {caseLabel4} @MANSIO2_37009 {caseNum5} 9 {caseLabel5} @MANSIO2_37023 {caseNum6} 10 {caseLabel6} @MANSIO2_37037 {caseNum7} 11 {caseLabel7} @MANSIO2_37051 {caseNum8} 12 {caseLabel8} @MANSIO2_37065 {caseNum9} 13 {caseLabel9} @MANSIO2_37079
switch_continued 14 {caseLabel1} @MANSIO2_37093 {caseNum2} 15 {caseLabel2} @MANSIO2_37107 {caseNum3} 16 {caseLabel3} @MANSIO2_37121 {caseNum4} -1 {caseLabel4} @MANSIO2_37150 {caseNum5} -1 {caseLabel5} @MANSIO2_37150 {caseNum6} -1 {caseLabel6} @MANSIO2_37150 {caseNum7} -1 {caseLabel7} @MANSIO2_37150 {caseNum8} -1 {caseLabel8} @MANSIO2_37150 {caseNum9} -1 {caseLabel9} @MANSIO2_37150

:MANSIO2_36890
goto @MANSIO2_37150

:MANSIO2_36897
gosub @MANSIO2_39901
goto @MANSIO2_37150

:MANSIO2_36911
gosub @MANSIO2_40132
goto @MANSIO2_37150

:MANSIO2_36925
gosub @MANSIO2_40290
goto @MANSIO2_37150

:MANSIO2_36939
gosub @MANSIO2_40451
goto @MANSIO2_37150

:MANSIO2_36953
gosub @MANSIO2_40661
goto @MANSIO2_37150

:MANSIO2_36967
gosub @MANSIO2_40931
goto @MANSIO2_37150

:MANSIO2_36981
gosub @MANSIO2_41099
goto @MANSIO2_37150

:MANSIO2_36995
gosub @MANSIO2_41422
goto @MANSIO2_37150

:MANSIO2_37009
gosub @MANSIO2_41480
goto @MANSIO2_37150

:MANSIO2_37023
gosub @MANSIO2_41863
goto @MANSIO2_37150

:MANSIO2_37037
gosub @MANSIO2_42377
goto @MANSIO2_37150

:MANSIO2_37051
gosub @MANSIO2_42572
goto @MANSIO2_37150

:MANSIO2_37065
gosub @MANSIO2_43010
goto @MANSIO2_37150

:MANSIO2_37079
gosub @MANSIO2_43371
goto @MANSIO2_37150

:MANSIO2_37093
gosub @MANSIO2_43823
goto @MANSIO2_37150

:MANSIO2_37107
gosub @MANSIO2_44301
goto @MANSIO2_37150

:MANSIO2_37121
goto @MANSIO2_37150

:MANSIO2_37128
write_debug "UNKNOWN_MECHANICAI"

:MANSIO2_37150
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36686
return 

:MANSIO2_37173
if 
  283@ == 0
goto_if_false @MANSIO2_37193
return 

:MANSIO2_37193
if 
  267@ == 1
goto_if_false @MANSIO2_37257
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37255
189@(52@,2i) = 8
281@(52@,2i) = 1

:MANSIO2_37255
return 

:MANSIO2_37257
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37463
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_37463
if 
  has_char_spotted_char_in_front 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_37463
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  15.0 > 72@
goto_if_false @MANSIO2_37463
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37443
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37443
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_37463
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37599
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_37599
if 
  can_char_see_dead_char 137@(52@,2i) {pedType} PedType.Mission2
goto_if_false @MANSIO2_37599
189@(52@,2i) = 12
281@(52@,2i) = 1
print_now 'MAN2_48' {time} 7000 {flag} 1
gosub @MANSIO2_38764
if 
  213@ == 0
goto_if_false @MANSIO2_37597
213@ = 4

:MANSIO2_37597
return 

:MANSIO2_37599
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37970
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_37970
if 
  284@ == 1
goto_if_false @MANSIO2_37749
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37704
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37704
281@(52@,2i) = 1
gosub @MANSIO2_38764
if 
  213@ == 0
goto_if_false @MANSIO2_37747
213@ = 2

:MANSIO2_37747
return 

:MANSIO2_37749
if 
  285@ == 1
goto_if_false @MANSIO2_37970
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_37970
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_37884
71@ *= -1.0

:MANSIO2_37884
if 
  5.0 > 71@
goto_if_false @MANSIO2_37970
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37950
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37950
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_37970
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_38235
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38235
if 
  is_char_in_any_car 137@(52@,2i)
goto_if_false @MANSIO2_38147
$car = store_car_char_is_in_no_save 137@(52@,2i)
if or
  has_car_been_damaged_by_char $car {handle} $scplayer
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38140
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38120
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_38120
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_38140
goto @MANSIO2_38235

:MANSIO2_38147
if 
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38235
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38215
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_38215
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_38235
return 

:MANSIO2_38237
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38259
return 

:MANSIO2_38259
if 
  283@ == 0
goto_if_false @MANSIO2_38279
return 

:MANSIO2_38279
73@ = 0
if 
  has_char_spotted_char_in_front 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38316
73@ = 1

:MANSIO2_38316
if 
  73@ == 0
goto_if_false @MANSIO2_38497
if 
  284@ == 1
goto_if_false @MANSIO2_38497
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  75.0 > 70@
goto_if_false @MANSIO2_38497
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38469
71@ *= -1.0

:MANSIO2_38469
if 
  5.0 > 71@
goto_if_false @MANSIO2_38497
73@ = 1

:MANSIO2_38497
if 
  73@ == 0
goto_if_false @MANSIO2_38678
if 
  285@ == 1
goto_if_false @MANSIO2_38678
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_38678
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38650
71@ *= -1.0

:MANSIO2_38650
if 
  5.0 > 71@
goto_if_false @MANSIO2_38678
73@ = 1

:MANSIO2_38678
if 
  73@ == 0
goto_if_false @MANSIO2_38737
if or
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
  has_char_been_damaged_by_weapon 137@(52@,2i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_38737
73@ = 1

:MANSIO2_38737
if 
  73@ == 1
goto_if_false @MANSIO2_38762
gosub @MANSIO2_38764

:MANSIO2_38762
return 

:MANSIO2_38764
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38809
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
goto @MANSIO2_38827

:MANSIO2_38809
57@, 58@, 59@ = get_dead_char_coordinates 137@(52@,2i)

:MANSIO2_38827
48@ = 0

:MANSIO2_38834
if 
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_39066
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_39066
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_38957
70@ *= -1.0

:MANSIO2_38957
if 
  6.0 > 70@
goto_if_false @MANSIO2_39066
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39066
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39066
183@(48@,6i) = 23

:MANSIO2_39066
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_38834
48@ = 0

:MANSIO2_39094
if and
  not is_char_dead 137@(48@,2i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39315
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_39315
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39225
70@ *= -1.0

:MANSIO2_39225
if 
  6.0 > 70@
goto_if_false @MANSIO2_39315
if 
  267@ == 0
goto_if_false @MANSIO2_39315
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39308
189@(48@,2i) = 12
281@(48@,2i) = 1

:MANSIO2_39308
goto @MANSIO2_39315

:MANSIO2_39315
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39094
return 

:MANSIO2_39338
57@, 58@, 59@ = get_dead_char_coordinates 137@(52@,2i)
48@ = 0

:MANSIO2_39363
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39603
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_39603
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39494
70@ *= -1.0

:MANSIO2_39494
if 
  6.0 > 70@
goto_if_false @MANSIO2_39603
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39603
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39603
183@(48@,6i) = 23

:MANSIO2_39603
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_39363
48@ = 0

:MANSIO2_39631
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_39878
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_39878
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39754
70@ *= -1.0

:MANSIO2_39754
if 
  6.0 > 70@
goto_if_false @MANSIO2_39878
if 
  267@ == 0
goto_if_false @MANSIO2_39878
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39871
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_39860
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_39860
281@(48@,2i) = 1

:MANSIO2_39871
goto @MANSIO2_39878

:MANSIO2_39878
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39631
return 

:MANSIO2_39901
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_39923
return 

:MANSIO2_39923
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40098 {caseNum1} 0 {caseLabel1} @MANSIO2_40042 {caseNum2} 1 {caseLabel2} @MANSIO2_39986 {caseNum3} -1 {caseLabel3} @MANSIO2_40118 {caseNum4} -1 {caseLabel4} @MANSIO2_40118 {caseNum5} -1 {caseLabel5} @MANSIO2_40118 {caseNum6} -1 {caseLabel6} @MANSIO2_40118 {caseNum7} -1 {caseLabel7} @MANSIO2_40118

:MANSIO2_39986
set_char_coordinates 137@(52@,2i) {x} -1421.757 {y} 496.6105 {z} 2.0463
set_char_heading 137@(52@,2i) {heading} 175.6815
189@(52@,2i) = 16
goto @MANSIO2_40118

:MANSIO2_40042
set_char_coordinates 137@(52@,2i) {x} -1346.219 {y} 497.9554 {z} 10.1953
set_char_heading 137@(52@,2i) {heading} 270.0
189@(52@,2i) = 1
goto @MANSIO2_40118

:MANSIO2_40098
write_debug "UNKNOWN_MECHANIC"

:MANSIO2_40118
set_char_decision_maker 137@(52@,2i) {handleOrTemplate} 180@
return 

:MANSIO2_40132
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40154
return 

:MANSIO2_40154
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40248 {caseNum1} 1 {caseLabel1} @MANSIO2_40217 {caseNum2} -1 {caseLabel2} @MANSIO2_40277 {caseNum3} -1 {caseLabel3} @MANSIO2_40277 {caseNum4} -1 {caseLabel4} @MANSIO2_40277 {caseNum5} -1 {caseLabel5} @MANSIO2_40277 {caseNum6} -1 {caseLabel6} @MANSIO2_40277 {caseNum7} -1 {caseLabel7} @MANSIO2_40277

:MANSIO2_40217
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 7000
goto @MANSIO2_40277

:MANSIO2_40248
write_debug "UNKNOWN_MECHANIC_FOR_CHAT"

:MANSIO2_40277
189@(52@,2i) = 7
return 

:MANSIO2_40290
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40312
return 

:MANSIO2_40312
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40416 {caseNum1} 1 {caseLabel1} @MANSIO2_40375 {caseNum2} -1 {caseLabel2} @MANSIO2_40449 {caseNum3} -1 {caseLabel3} @MANSIO2_40449 {caseNum4} -1 {caseLabel4} @MANSIO2_40449 {caseNum5} -1 {caseLabel5} @MANSIO2_40449 {caseNum6} -1 {caseLabel6} @MANSIO2_40449 {caseNum7} -1 {caseLabel7} @MANSIO2_40449

:MANSIO2_40375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_40409
189@(52@,2i) = 1

:MANSIO2_40409
goto @MANSIO2_40449

:MANSIO2_40416
write_debug "UNKNOWN_MECHANIC_FOR_CHATTING"

:MANSIO2_40449
return 

:MANSIO2_40451
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40473
return 

:MANSIO2_40473
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40618 {caseNum1} 0 {caseLabel1} @MANSIO2_40577 {caseNum2} 1 {caseLabel2} @MANSIO2_40536 {caseNum3} -1 {caseLabel3} @MANSIO2_40648 {caseNum4} -1 {caseLabel4} @MANSIO2_40648 {caseNum5} -1 {caseLabel5} @MANSIO2_40648 {caseNum6} -1 {caseLabel6} @MANSIO2_40648 {caseNum7} -1 {caseLabel7} @MANSIO2_40648

:MANSIO2_40536
if 
  not is_car_dead 154@
goto_if_false @MANSIO2_40570
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 137@(52@,2i) {vehicle} 154@ {time} -2

:MANSIO2_40570
goto @MANSIO2_40648

:MANSIO2_40577
if 
  not is_car_dead 155@
goto_if_false @MANSIO2_40611
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 137@(52@,2i) {vehicle} 155@ {time} -2

:MANSIO2_40611
goto @MANSIO2_40648

:MANSIO2_40618
write_debug "UNKNOWN_MECHANIC_FOR_ENTER"

:MANSIO2_40648
189@(52@,2i) = 2
return 

:MANSIO2_40661
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40683
return 

:MANSIO2_40683
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40896 {caseNum1} 0 {caseLabel1} @MANSIO2_40821 {caseNum2} 1 {caseLabel2} @MANSIO2_40746 {caseNum3} -1 {caseLabel3} @MANSIO2_40929 {caseNum4} -1 {caseLabel4} @MANSIO2_40929 {caseNum5} -1 {caseLabel5} @MANSIO2_40929 {caseNum6} -1 {caseLabel6} @MANSIO2_40929 {caseNum7} -1 {caseLabel7} @MANSIO2_40929

:MANSIO2_40746
if 
  is_car_dead 154@
goto_if_false @MANSIO2_40780
189@(52@,2i) = 16
goto @MANSIO2_40814

:MANSIO2_40780
if 
  is_char_in_car 137@(52@,2i) {vehicle} 154@
goto_if_false @MANSIO2_40814
189@(52@,2i) = 3

:MANSIO2_40814
goto @MANSIO2_40929

:MANSIO2_40821
if 
  is_car_dead 155@
goto_if_false @MANSIO2_40855
189@(52@,2i) = 16
goto @MANSIO2_40889

:MANSIO2_40855
if 
  is_char_in_car 137@(52@,2i) {vehicle} 155@
goto_if_false @MANSIO2_40889
189@(52@,2i) = 3

:MANSIO2_40889
goto @MANSIO2_40929

:MANSIO2_40896
write_debug "UNKNOWN_MECHANIC_FOR_ENTERING"

:MANSIO2_40929
return 

:MANSIO2_40931
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40953
return 

:MANSIO2_40953
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41066 {caseNum1} 0 {caseLabel1} @MANSIO2_41041 {caseNum2} 1 {caseLabel2} @MANSIO2_41016 {caseNum3} -1 {caseLabel3} @MANSIO2_41097 {caseNum4} -1 {caseLabel4} @MANSIO2_41097 {caseNum5} -1 {caseLabel5} @MANSIO2_41097 {caseNum6} -1 {caseLabel6} @MANSIO2_41097 {caseNum7} -1 {caseLabel7} @MANSIO2_41097

:MANSIO2_41016
gosub @MANSIO2_44582
189@(52@,2i) = 4
goto @MANSIO2_41097

:MANSIO2_41041
gosub @MANSIO2_45314
189@(52@,2i) = 4
goto @MANSIO2_41097

:MANSIO2_41066
write_debug "UNKNOWN_MECHANIC_FOR_WANDER"

:MANSIO2_41097
return 

:MANSIO2_41099
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41121
return 

:MANSIO2_41121
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41386 {caseNum1} 0 {caseLabel1} @MANSIO2_41285 {caseNum2} 1 {caseLabel2} @MANSIO2_41184 {caseNum3} -1 {caseLabel3} @MANSIO2_41420 {caseNum4} -1 {caseLabel4} @MANSIO2_41420 {caseNum5} -1 {caseLabel5} @MANSIO2_41420 {caseNum6} -1 {caseLabel6} @MANSIO2_41420 {caseNum7} -1 {caseLabel7} @MANSIO2_41420

:MANSIO2_41184
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41278
gosub @MANSIO2_44923
if 
  73@ == 1
goto_if_false @MANSIO2_41278
50@ = generate_random_int_in_range 2000 {max} 4000
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41278
goto @MANSIO2_41420

:MANSIO2_41285
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41379
gosub @MANSIO2_45700
if 
  73@ == 1
goto_if_false @MANSIO2_41379
50@ = generate_random_int_in_range 2000 {max} 4000
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41379
goto @MANSIO2_41420

:MANSIO2_41386
write_debug "UNKNOWN_MECHANIC_FOR_WANDERING"

:MANSIO2_41420
return 

:MANSIO2_41422
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41444
return 

:MANSIO2_41444
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41478
189@(52@,2i) = 3

:MANSIO2_41478
return 

:MANSIO2_41480
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41502
return 

:MANSIO2_41502
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41826 {caseNum1} 0 {caseLabel1} @MANSIO2_41648 {caseNum2} 1 {caseLabel2} @MANSIO2_41565 {caseNum3} -1 {caseLabel3} @MANSIO2_41861 {caseNum4} -1 {caseLabel4} @MANSIO2_41861 {caseNum5} -1 {caseLabel5} @MANSIO2_41861 {caseNum6} -1 {caseLabel6} @MANSIO2_41861 {caseNum7} -1 {caseLabel7} @MANSIO2_41861

:MANSIO2_41565
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1420.125 {y} 512.2188 {z} 2.0463 {speed} MoveState.Run {time} -2
close_sequence_task 56@
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41861

:MANSIO2_41648
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_41743
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1316.8621 {y} 490.2876 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@
goto @MANSIO2_41780

:MANSIO2_41743
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1394.8459 {y} 491.5163 {z} 10.1953 {speed} MoveState.Run {time} -2
close_sequence_task 56@

:MANSIO2_41780
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41861

:MANSIO2_41826
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_COWER"

:MANSIO2_41861
return 

:MANSIO2_41863
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41885
return 

:MANSIO2_41885
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_41910
return 

:MANSIO2_41910
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_42329 {caseNum1} 0 {caseLabel1} @MANSIO2_42151 {caseNum2} 1 {caseLabel2} @MANSIO2_41973 {caseNum3} -1 {caseLabel3} @MANSIO2_42368 {caseNum4} -1 {caseLabel4} @MANSIO2_42368 {caseNum5} -1 {caseLabel5} @MANSIO2_42368 {caseNum6} -1 {caseLabel6} @MANSIO2_42368 {caseNum7} -1 {caseLabel7} @MANSIO2_42368

:MANSIO2_41973
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42054
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42128

:MANSIO2_42054
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1389.8101 {y} 491.263 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42128
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42128
get_char_health 137@(52@,2i) {var_health} 211@(52@,2i)
goto @MANSIO2_42368

:MANSIO2_42151
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42232
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42306

:MANSIO2_42232
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1316.8621 {y} 490.2876 {z} 10.2026 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42306
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42306
get_char_health 137@(52@,2i) {var_health} 211@(52@,2i)
goto @MANSIO2_42368

:MANSIO2_42329
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_COWER"

:MANSIO2_42368
gosub @MANSIO2_38237
return 

:MANSIO2_42377
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_42399
return 

:MANSIO2_42399
50@ = get_char_health 137@(52@,2i)
if 
  is_int_lvar_greater_than_int_lvar 211@(52@,2i) > 50@
goto_if_false @MANSIO2_42470
189@(52@,2i) = 11
set_lvar_int_to_lvar_int 211@(52@,2i) = 50@
204@(52@,2i) = 0
return 

:MANSIO2_42470
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_42495
return 

:MANSIO2_42495
40@ = get_script_task_status 137@(52@,2i) {taskId} 1477
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_42563
task_duck 137@(52@,2i) {time} -2
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 1000

:MANSIO2_42563
gosub @MANSIO2_38237
return 

:MANSIO2_42572
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_42594
return 

:MANSIO2_42594
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_42971 {caseNum1} 0 {caseLabel1} @MANSIO2_42814 {caseNum2} 1 {caseLabel2} @MANSIO2_42657 {caseNum3} -1 {caseLabel3} @MANSIO2_43008 {caseNum4} -1 {caseLabel4} @MANSIO2_43008 {caseNum5} -1 {caseLabel5} @MANSIO2_43008 {caseNum6} -1 {caseLabel6} @MANSIO2_43008 {caseNum7} -1 {caseLabel7} @MANSIO2_43008

:MANSIO2_42657
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42744
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1389.8101 {y} 491.263 {z} 2.0463 {speed} MoveState.Run {time} -2
goto @MANSIO2_42772

:MANSIO2_42744
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {speed} MoveState.Run {time} -2

:MANSIO2_42772
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43008

:MANSIO2_42814
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42901
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1316.8621 {y} 490.2876 {z} 10.2026 {speed} MoveState.Run {time} -2
goto @MANSIO2_42929

:MANSIO2_42901
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {speed} MoveState.Run {time} -2

:MANSIO2_42929
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43008

:MANSIO2_42971
write_debug "UNKNOWN_MECHANIC_FOR_CHANGE_COWER"

:MANSIO2_43008
return 

:MANSIO2_43010
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43032
return 

:MANSIO2_43032
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43334 {caseNum1} 0 {caseLabel1} @MANSIO2_43167 {caseNum2} 1 {caseLabel2} @MANSIO2_43095 {caseNum3} -1 {caseLabel3} @MANSIO2_43369 {caseNum4} -1 {caseLabel4} @MANSIO2_43369 {caseNum5} -1 {caseLabel5} @MANSIO2_43369 {caseNum6} -1 {caseLabel6} @MANSIO2_43369 {caseNum7} -1 {caseLabel7} @MANSIO2_43369

:MANSIO2_43095
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1414.349 {y} 514.0193 {z} 2.0391 {speed} MoveState.Run {time} -2
close_sequence_task 56@
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 13
goto @MANSIO2_43369

:MANSIO2_43167
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_43262
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1313.373 {y} 488.6687 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@
goto @MANSIO2_43299

:MANSIO2_43262
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1412.397 {y} 488.6644 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@

:MANSIO2_43299
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 13
goto @MANSIO2_43369

:MANSIO2_43334
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_ALARM"

:MANSIO2_43369
return 

:MANSIO2_43371
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43393
return 

:MANSIO2_43393
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43775 {caseNum1} 0 {caseLabel1} @MANSIO2_43575 {caseNum2} 1 {caseLabel2} @MANSIO2_43456 {caseNum3} -1 {caseLabel3} @MANSIO2_43814 {caseNum4} -1 {caseLabel4} @MANSIO2_43814 {caseNum5} -1 {caseLabel5} @MANSIO2_43814 {caseNum6} -1 {caseLabel6} @MANSIO2_43814 {caseNum7} -1 {caseLabel7} @MANSIO2_43814

:MANSIO2_43456
if 
  267@ == 1
goto_if_false @MANSIO2_43494
189@(52@,2i) = 8
return 
goto @MANSIO2_43568

:MANSIO2_43494
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1414.349 {y} 514.8193 {z} 2.0391 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43568
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43568
goto @MANSIO2_43814

:MANSIO2_43575
if 
  267@ == 1
goto_if_false @MANSIO2_43613
189@(52@,2i) = 8
return 
goto @MANSIO2_43768

:MANSIO2_43613
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1313.373 {y} 487.8687 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43694
189@(52@,2i) = 14
204@(52@,2i) = 0
goto @MANSIO2_43768

:MANSIO2_43694
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1412.397 {y} 487.8644 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43768
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43768
goto @MANSIO2_43814

:MANSIO2_43775
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_ALARM"

:MANSIO2_43814
gosub @MANSIO2_38237
return 

:MANSIO2_43823
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43845
return 

:MANSIO2_43845
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44261 {caseNum1} 0 {caseLabel1} @MANSIO2_44020 {caseNum2} 1 {caseLabel2} @MANSIO2_43908 {caseNum3} -1 {caseLabel3} @MANSIO2_44299 {caseNum4} -1 {caseLabel4} @MANSIO2_44299 {caseNum5} -1 {caseLabel5} @MANSIO2_44299 {caseNum6} -1 {caseLabel6} @MANSIO2_44299 {caseNum7} -1 {caseLabel7} @MANSIO2_44299

:MANSIO2_43908
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1414.349 {y} 513.4193 {z} 2.0391 {heading} 0.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44299

:MANSIO2_44020
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1313.373 {y} 487.8687 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_44149
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1313.373 {y} 489.3687 {z} 10.2026 {heading} 180.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @MANSIO2_44219

:MANSIO2_44149
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1412.397 {y} 489.3644 {z} 10.2026 {heading} 180.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO2_44219
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44299

:MANSIO2_44261
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGER_ALARM"

:MANSIO2_44299
return 

:MANSIO2_44301
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44323
return 

:MANSIO2_44323
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44532 {caseNum1} 0 {caseLabel1} @MANSIO2_44459 {caseNum2} 1 {caseLabel2} @MANSIO2_44386 {caseNum3} -1 {caseLabel3} @MANSIO2_44573 {caseNum4} -1 {caseLabel4} @MANSIO2_44573 {caseNum5} -1 {caseLabel5} @MANSIO2_44573 {caseNum6} -1 {caseLabel6} @MANSIO2_44573 {caseNum7} -1 {caseLabel7} @MANSIO2_44573

:MANSIO2_44386
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44452
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44452
213@ = 2

:MANSIO2_44452
goto @MANSIO2_44573

:MANSIO2_44459
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44525
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44525
213@ = 2

:MANSIO2_44525
goto @MANSIO2_44573

:MANSIO2_44532
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGERING_ALARM"

:MANSIO2_44573
gosub @MANSIO2_38237
return 

:MANSIO2_44582
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44604
return 

:MANSIO2_44604
if 
  is_car_dead 154@
goto_if_false @MANSIO2_44633
189@(52@,2i) = 16
return 

:MANSIO2_44633
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_44885 {caseNum1} 0 {caseLabel1} @MANSIO2_44705 {caseNum2} 1 {caseLabel2} @MANSIO2_44750 {caseNum3} 2 {caseLabel3} @MANSIO2_44795 {caseNum4} 3 {caseLabel4} @MANSIO2_44840 {caseNum5} -1 {caseLabel5} @MANSIO2_44885 {caseNum6} -1 {caseLabel6} @MANSIO2_44885 {caseNum7} -1 {caseLabel7} @MANSIO2_44885

:MANSIO2_44705
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1400.205 {y} 507.259 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44885

:MANSIO2_44750
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1394.387 {y} 506.6834 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44885

:MANSIO2_44795
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1399.348 {y} 501.5815 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44885

:MANSIO2_44840
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1410.671 {y} 501.3295 {z} 2.0391 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44885

:MANSIO2_44885
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_44923
73@ = 0
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44952
return 

:MANSIO2_44952
if 
  is_car_dead 154@
goto_if_false @MANSIO2_44981
189@(52@,2i) = 16
return 

:MANSIO2_44981
switch_start 209@(52@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45312 {caseNum1} 0 {caseLabel1} @MANSIO2_45048 {caseNum2} 1 {caseLabel2} @MANSIO2_45114 {caseNum3} 2 {caseLabel3} @MANSIO2_45180 {caseNum4} 3 {caseLabel4} @MANSIO2_45246 {caseNum5} -1 {caseLabel5} @MANSIO2_45312 {caseNum6} -1 {caseLabel6} @MANSIO2_45312 {caseNum7} -1 {caseLabel7} @MANSIO2_45312

:MANSIO2_45048
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1400.205 {y} 507.259 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45107
73@ = 1

:MANSIO2_45107
goto @MANSIO2_45312

:MANSIO2_45114
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.387 {y} 506.6834 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45173
73@ = 1

:MANSIO2_45173
goto @MANSIO2_45312

:MANSIO2_45180
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1399.348 {y} 501.5815 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45239
73@ = 1

:MANSIO2_45239
goto @MANSIO2_45312

:MANSIO2_45246
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1410.671 {y} 501.3295 {z} 2.0391 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45305
73@ = 1

:MANSIO2_45305
goto @MANSIO2_45312

:MANSIO2_45312
return 

:MANSIO2_45314
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_45336
return 

:MANSIO2_45336
if 
  is_car_dead 155@
goto_if_false @MANSIO2_45365
189@(52@,2i) = 16
return 

:MANSIO2_45365
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45662 {caseNum1} 0 {caseLabel1} @MANSIO2_45437 {caseNum2} 1 {caseLabel2} @MANSIO2_45482 {caseNum3} 2 {caseLabel3} @MANSIO2_45527 {caseNum4} 3 {caseLabel4} @MANSIO2_45572 {caseNum5} 4 {caseLabel5} @MANSIO2_45617 {caseNum6} -1 {caseLabel6} @MANSIO2_45662 {caseNum7} -1 {caseLabel7} @MANSIO2_45662

:MANSIO2_45437
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1321.422 {y} 495.9306 {z} 10.2026 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45662

:MANSIO2_45482
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1305.444 {y} 497.4329 {z} 10.2026 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45662

:MANSIO2_45527
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1307.425 {y} 503.4752 {z} 10.1953 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45662

:MANSIO2_45572
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1351.098 {y} 506.4217 {z} 10.1953 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45662

:MANSIO2_45617
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1390.884 {y} 507.6548 {z} 10.1953 {speed} 3.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45662

:MANSIO2_45662
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_45700
73@ = 0
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_45729
return 

:MANSIO2_45729
if 
  is_car_dead 154@
goto_if_false @MANSIO2_45758
189@(52@,2i) = 16
return 

:MANSIO2_45758
switch_start 209@(52@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46155 {caseNum1} 0 {caseLabel1} @MANSIO2_45825 {caseNum2} 1 {caseLabel2} @MANSIO2_45891 {caseNum3} 2 {caseLabel3} @MANSIO2_45957 {caseNum4} 3 {caseLabel4} @MANSIO2_46023 {caseNum5} 4 {caseLabel5} @MANSIO2_46089 {caseNum6} -1 {caseLabel6} @MANSIO2_46155 {caseNum7} -1 {caseLabel7} @MANSIO2_46155

:MANSIO2_45825
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1321.422 {y} 495.9306 {z} 10.2026 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45884
73@ = 1

:MANSIO2_45884
goto @MANSIO2_46155

:MANSIO2_45891
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1305.444 {y} 497.4329 {z} 10.2026 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45950
73@ = 1

:MANSIO2_45950
goto @MANSIO2_46155

:MANSIO2_45957
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1307.425 {y} 503.4752 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46016
73@ = 1

:MANSIO2_46016
goto @MANSIO2_46155

:MANSIO2_46023
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1351.098 {y} 506.4217 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46082
73@ = 1

:MANSIO2_46082
goto @MANSIO2_46155

:MANSIO2_46089
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1390.884 {y} 507.6548 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46148
73@ = 1

:MANSIO2_46148
goto @MANSIO2_46155

:MANSIO2_46155
return 

:MANSIO2_46157
if 
  191@ == -1
goto_if_false @MANSIO2_46177
return 

:MANSIO2_46177
50@ = 1
if 
  191@ <> 0
goto_if_false @MANSIO2_46240
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46240
191@ = -1
mark_car_as_no_longer_needed 141@(50@,4i)
return 

:MANSIO2_46240
switch_start 191@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46512 {caseNum1} 0 {caseLabel1} @MANSIO2_46303 {caseNum2} 1 {caseLabel2} @MANSIO2_46470 {caseNum3} -1 {caseLabel3} @MANSIO2_46512 {caseNum4} -1 {caseLabel4} @MANSIO2_46512 {caseNum5} -1 {caseLabel5} @MANSIO2_46512 {caseNum6} -1 {caseLabel6} @MANSIO2_46512 {caseNum7} -1 {caseLabel7} @MANSIO2_46512

:MANSIO2_46303
create_car 520 {x} -84.0771 {y} 418.3652 {z} 92.2066 {var_handle} 141@(50@,4i)
set_car_coordinates 141@(50@,4i) {x} -84.0771 {y} 418.3652 {z} 92.2066
set_car_heading 141@(50@,4i) {heading} 91.2218
set_car_status 141@(50@,4i) {status} EntityStatus.Physics
set_car_forward_speed 141@(50@,4i) {forwardSpeed} 70.0
set_plane_throttle 141@(50@,4i) {throttle} 1.5
plane_starts_in_air 141@(50@,4i)
plane_fly_in_direction 141@(50@,4i) {heading} 190.0 {minAltitude} 20.0 {maxAltitude} 30.0
set_lvar_int_to_lvar_int 196@ = 46@
196@ += 25000
191@ += 1
goto @MANSIO2_46512

:MANSIO2_46470
if 
  is_int_lvar_greater_than_int_lvar 46@ > 196@
goto_if_false @MANSIO2_46505
delete_car 141@(50@,4i)
191@ = -1

:MANSIO2_46505
goto @MANSIO2_46512

:MANSIO2_46512
return 

:MANSIO2_46514
if 
  192@ == -1
goto_if_false @MANSIO2_46534
return 

:MANSIO2_46534
50@ = 3
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46579
192@ = -1
delete_car 141@(50@,4i)
return 

:MANSIO2_46579
switch_start 192@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46784 {caseNum1} 0 {caseLabel1} @MANSIO2_46642 {caseNum2} 1 {caseLabel2} @MANSIO2_46672 {caseNum3} 2 {caseLabel3} @MANSIO2_46741 {caseNum4} -1 {caseLabel4} @MANSIO2_46784 {caseNum5} -1 {caseLabel5} @MANSIO2_46784 {caseNum6} -1 {caseLabel6} @MANSIO2_46784 {caseNum7} -1 {caseLabel7} @MANSIO2_46784

:MANSIO2_46642
set_lvar_int_to_lvar_int 197@ = 46@
197@ += 6000
192@ += 1
goto @MANSIO2_46784

:MANSIO2_46672
if 
  is_int_lvar_greater_than_int_lvar 46@ > 197@
goto_if_false @MANSIO2_46734
242@(50@,4i) = 0
if 
  276@ == 0
goto_if_false @MANSIO2_46727
184@ = 11

:MANSIO2_46727
192@ += 1

:MANSIO2_46734
goto @MANSIO2_46784

:MANSIO2_46741
if 
  not is_playback_going_on_for_car 141@(50@,4i)
goto_if_false @MANSIO2_46777
delete_car 141@(50@,4i)
192@ = -1

:MANSIO2_46777
goto @MANSIO2_46784

:MANSIO2_46784
return 

:MANSIO2_46786
if 
  193@ == -1
goto_if_false @MANSIO2_46806
return 

:MANSIO2_46806
50@ = 1
if 
  193@ > 0
goto_if_false @MANSIO2_46869
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46869
193@ = -1
delete_car 141@(50@,4i)
return 

:MANSIO2_46869
switch_start 193@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_47157 {caseNum1} 0 {caseLabel1} @MANSIO2_46932 {caseNum2} 1 {caseLabel2} @MANSIO2_47017 {caseNum3} 2 {caseLabel3} @MANSIO2_47094 {caseNum4} -1 {caseLabel4} @MANSIO2_47157 {caseNum5} -1 {caseLabel5} @MANSIO2_47157 {caseNum6} -1 {caseLabel6} @MANSIO2_47157 {caseNum7} -1 {caseLabel7} @MANSIO2_47157

:MANSIO2_46932
create_car 520 {x} -1354.587 {y} 6.2662 {z} 13.1485 {var_handle} 141@(50@,4i)
134@ = create_char_inside_car 141@(50@,4i) {pedType} PedType.Mission2 {modelId} 287
set_char_decision_maker 134@ {handleOrTemplate} 180@
set_char_is_target_priority 134@ {state} True
start_playback_recorded_car 141@(50@,4i) {path} 211
193@ += 1
goto @MANSIO2_47157

:MANSIO2_47017
if 
  locate_car_3d 141@(50@,4i) {x} -1456.356 {y} 501.1173 {z} 9.0078 {xRadius} 10.0 {yRadius} 15.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @MANSIO2_47087
242@(50@,4i) = 1
193@ += 1

:MANSIO2_47087
goto @MANSIO2_47157

:MANSIO2_47094
if 
  not is_playback_going_on_for_car 141@(50@,4i)
goto_if_false @MANSIO2_47150
186@ = 5
176@ = add_blip_for_char 134@
change_blip_display 176@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 176@ {state} True
193@ = -1

:MANSIO2_47150
goto @MANSIO2_47157

:MANSIO2_47157
return 

:MANSIO2_47159
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47243 {caseNum1} 0 {caseLabel1} @MANSIO2_47222 {caseNum2} 1 {caseLabel2} @MANSIO2_47222 {caseNum3} 2 {caseLabel3} @MANSIO2_47229 {caseNum4} 3 {caseLabel4} @MANSIO2_47222 {caseNum5} 4 {caseLabel5} @MANSIO2_47222 {caseNum6} -1 {caseLabel6} @MANSIO2_47279 {caseNum7} -1 {caseLabel7} @MANSIO2_47279

:MANSIO2_47222
goto @MANSIO2_47279

:MANSIO2_47229
gosub @MANSIO2_47419
goto @MANSIO2_47279

:MANSIO2_47243
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:MANSIO2_47279
return 

:MANSIO2_47281
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47302
return 

:MANSIO2_47302
50@ = 1
88@(50@,3i) = 1
load_mission_audio 50@ {audioId} 91@(84@,13i)
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47360
return 

:MANSIO2_47360
50@ += 1
if 
  50@ > 2
goto_if_false @MANSIO2_47387
return 

:MANSIO2_47387
88@(50@,3i) = 1
load_mission_audio 50@ {audioId} 91@(84@,13i)
84@ += 1
return 

:MANSIO2_47419
gosub @MANSIO2_48490
if 
  79@ == 3
goto_if_false @MANSIO2_47453
gosub @MANSIO2_47687
return 

:MANSIO2_47453
switch_start 88@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47654 {caseNum1} 0 {caseLabel1} @MANSIO2_47520 {caseNum2} 1 {caseLabel2} @MANSIO2_47529 {caseNum3} 2 {caseLabel3} @MANSIO2_47565 {caseNum4} 3 {caseLabel4} @MANSIO2_47622 {caseNum5} -1 {caseLabel5} @MANSIO2_47685 {caseNum6} -1 {caseLabel6} @MANSIO2_47685 {caseNum7} -1 {caseLabel7} @MANSIO2_47685

:MANSIO2_47520
return 
goto @MANSIO2_47685

:MANSIO2_47529
if 
  not has_mission_audio_loaded 78@
goto_if_false @MANSIO2_47547
return 

:MANSIO2_47547
88@(78@,3i) = 2
goto @MANSIO2_47685

:MANSIO2_47565
play_mission_audio 78@
if 
  87@ == 1
goto_if_false @MANSIO2_47602
print_now 104@(82@,13s) {time} 10000 {flag} 1

:MANSIO2_47602
88@(78@,3i) = 3
return 
goto @MANSIO2_47685

:MANSIO2_47622
if 
  not has_mission_audio_finished 78@
goto_if_false @MANSIO2_47640
return 

:MANSIO2_47640
gosub @MANSIO2_47740
goto @MANSIO2_47685

:MANSIO2_47654
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:MANSIO2_47685
return 

:MANSIO2_47687
50@ = 1

:MANSIO2_47694
if 
  2 >= 50@
goto_if_false @MANSIO2_47731
clear_mission_audio 50@
50@ += 1
goto @MANSIO2_47694

:MANSIO2_47731
gosub @MANSIO2_47869
return 

:MANSIO2_47740
88@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @MANSIO2_47786
gosub @MANSIO2_47869
return 

:MANSIO2_47786
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @MANSIO2_47835
88@(78@,3i) = 1
load_mission_audio 78@ {audioId} 91@(84@,13i)
84@ += 1

:MANSIO2_47835
78@ += 1
if 
  78@ > 2
goto_if_false @MANSIO2_47867
78@ = 1

:MANSIO2_47867
return 

:MANSIO2_47869
set_local_var_bit_lvar 85@ {var_bitIndex} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_47933
if 
  2 > 50@
goto_if_false @MANSIO2_47976
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_47933

:MANSIO2_47976
clear_small_prints 
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:MANSIO2_47995
if 
  79@ <> 0
goto_if_false @MANSIO2_48020
gosub @MANSIO2_48179

:MANSIO2_48020
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @MANSIO2_48041
return 

:MANSIO2_48041
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_48098
if 
  2 > 50@
goto_if_false @MANSIO2_48141
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_48098

:MANSIO2_48141
gosub @MANSIO2_48208
return 

:MANSIO2_48150
if 
  79@ <> 1
goto_if_false @MANSIO2_48170
return 

:MANSIO2_48170
79@ = 2
return 

:MANSIO2_48179
if 
  79@ == 0
goto_if_false @MANSIO2_48199
return 

:MANSIO2_48199
gosub @MANSIO2_47687
return 

:MANSIO2_48208
switch_start 80@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_48448 {caseNum1} 1 {caseLabel1} @MANSIO2_48336 {caseNum2} 2 {caseLabel2} @MANSIO2_48350 {caseNum3} 3 {caseLabel3} @MANSIO2_48364 {caseNum4} 4 {caseLabel4} @MANSIO2_48378 {caseNum5} 5 {caseLabel5} @MANSIO2_48392 {caseNum6} 6 {caseLabel6} @MANSIO2_48406 {caseNum7} 7 {caseLabel7} @MANSIO2_48420
switch_continued 8 {caseLabel1} @MANSIO2_48434 {caseNum2} -1 {caseLabel2} @MANSIO2_48474 {caseNum3} -1 {caseLabel3} @MANSIO2_48474 {caseNum4} -1 {caseLabel4} @MANSIO2_48474 {caseNum5} -1 {caseLabel5} @MANSIO2_48474 {caseNum6} -1 {caseLabel6} @MANSIO2_48474 {caseNum7} -1 {caseLabel7} @MANSIO2_48474 {caseNum8} -1 {caseLabel8} @MANSIO2_48474 {caseNum9} -1 {caseLabel9} @MANSIO2_48474

:MANSIO2_48336
gosub @MANSIO2_48747
goto @MANSIO2_48474

:MANSIO2_48350
gosub @MANSIO2_48961
goto @MANSIO2_48474

:MANSIO2_48364
gosub @MANSIO2_49508
goto @MANSIO2_48474

:MANSIO2_48378
gosub @MANSIO2_49554
goto @MANSIO2_48474

:MANSIO2_48392
gosub @MANSIO2_50167
goto @MANSIO2_48474

:MANSIO2_48406
gosub @MANSIO2_50213
goto @MANSIO2_48474

:MANSIO2_48420
gosub @MANSIO2_50259
goto @MANSIO2_48474

:MANSIO2_48434
gosub @MANSIO2_49768
goto @MANSIO2_48474

:MANSIO2_48448
write_debug "UNKNOWN_CONVERSATION"
return 

:MANSIO2_48474
gosub @MANSIO2_47281
79@ = 1
return 

:MANSIO2_48490
switch_start 80@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48650 {caseNum1} 1 {caseLabel1} @MANSIO2_48618 {caseNum2} 2 {caseLabel2} @MANSIO2_48618 {caseNum3} 3 {caseLabel3} @MANSIO2_48618 {caseNum4} 4 {caseLabel4} @MANSIO2_48618 {caseNum5} 5 {caseLabel5} @MANSIO2_48618 {caseNum6} 6 {caseLabel6} @MANSIO2_48618 {caseNum7} 7 {caseLabel7} @MANSIO2_48618
switch_continued 8 {caseLabel1} @MANSIO2_48618 {caseNum2} -1 {caseLabel2} @MANSIO2_48650 {caseNum3} -1 {caseLabel3} @MANSIO2_48650 {caseNum4} -1 {caseLabel4} @MANSIO2_48650 {caseNum5} -1 {caseLabel5} @MANSIO2_48650 {caseNum6} -1 {caseLabel6} @MANSIO2_48650 {caseNum7} -1 {caseLabel7} @MANSIO2_48650 {caseNum8} -1 {caseLabel8} @MANSIO2_48650 {caseNum9} -1 {caseLabel9} @MANSIO2_48650

:MANSIO2_48618
if 
  is_char_dead $scplayer
goto_if_false @MANSIO2_48643
79@ = 3
return 

:MANSIO2_48643
goto @MANSIO2_48650

:MANSIO2_48650
switch_start 80@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48745 {caseNum1} 1 {caseLabel1} @MANSIO2_48713 {caseNum2} 2 {caseLabel2} @MANSIO2_48713 {caseNum3} -1 {caseLabel3} @MANSIO2_48745 {caseNum4} -1 {caseLabel4} @MANSIO2_48745 {caseNum5} -1 {caseLabel5} @MANSIO2_48745 {caseNum6} -1 {caseLabel6} @MANSIO2_48745 {caseNum7} -1 {caseLabel7} @MANSIO2_48745

:MANSIO2_48713
if 
  is_char_dead 130@
goto_if_false @MANSIO2_48738
79@ = 3
return 

:MANSIO2_48738
goto @MANSIO2_48745

:MANSIO2_48745
return 

:MANSIO2_48747
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6800
set_lvar_text_label 104@(50@,13s) = 'MAN2_AA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6841
set_lvar_text_label 104@(50@,13s) = 'MAN2_AB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6801
set_lvar_text_label 104@(50@,13s) = 'MAN2_AC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6802
set_lvar_text_label 104@(50@,13s) = 'MAN2_AD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_48951
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_48951
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_48961
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6842
set_lvar_text_label 104@(50@,13s) = 'MAN2_BA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6843
set_lvar_text_label 104@(50@,13s) = 'MAN2_BB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6803
set_lvar_text_label 104@(50@,13s) = 'MAN2_BC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6844
set_lvar_text_label 104@(50@,13s) = 'MAN2_BD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6804
set_lvar_text_label 104@(50@,13s) = 'MAN2_BE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6805
set_lvar_text_label 104@(50@,13s) = 'MAN2_BF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6845
set_lvar_text_label 104@(50@,13s) = 'MAN2_BG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6806
set_lvar_text_label 104@(50@,13s) = 'MAN2_BH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6807
set_lvar_text_label 104@(50@,13s) = 'MAN2_BJ'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6808
set_lvar_text_label 104@(50@,13s) = 'MAN2_BK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6846
set_lvar_text_label 104@(50@,13s) = 'MAN2_BL'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6809
set_lvar_text_label 104@(50@,13s) = 'MAN2_BM'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6810
set_lvar_text_label 104@(50@,13s) = 'MAN2_BN'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49498
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49498
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49508
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6811
set_lvar_text_label 104@(50@,13s) = 'MAN2_CA'
83@ = 1
return 

:MANSIO2_49554
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6812
set_lvar_text_label 104@(50@,13s) = 'MAN2_DA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6813
set_lvar_text_label 104@(50@,13s) = 'MAN2_DB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6847
set_lvar_text_label 104@(50@,13s) = 'MAN2_DC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6814
set_lvar_text_label 104@(50@,13s) = 'MAN2_DD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49758
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49758
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49768
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6820
set_lvar_text_label 104@(50@,13s) = 'MAN2_FA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6850
set_lvar_text_label 104@(50@,13s) = 'MAN2_FB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6851
set_lvar_text_label 104@(50@,13s) = 'MAN2_FC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6821
set_lvar_text_label 104@(50@,13s) = 'MAN2_FD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6822
set_lvar_text_label 104@(50@,13s) = 'MAN2_FE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6852
set_lvar_text_label 104@(50@,13s) = 'MAN2_FF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6823
set_lvar_text_label 104@(50@,13s) = 'MAN2_FG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6853
set_lvar_text_label 104@(50@,13s) = 'MAN2_FK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6854
set_lvar_text_label 104@(50@,13s) = 'MAN2_FL'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50157
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50157
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50167
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6815
set_lvar_text_label 104@(50@,13s) = 'MAN2_EA'
83@ = 1
return 

:MANSIO2_50213
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6863
set_lvar_text_label 104@(50@,13s) = 'MAN2_EB'
83@ = 1
return 

:MANSIO2_50259
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6848
set_lvar_text_label 104@(50@,13s) = 'MAN2_EC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6816
set_lvar_text_label 104@(50@,13s) = 'MAN2_EE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6817
set_lvar_text_label 104@(50@,13s) = 'MAN2_EF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6849
set_lvar_text_label 104@(50@,13s) = 'MAN2_EG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6818
set_lvar_text_label 104@(50@,13s) = 'MAN2_EH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6819
set_lvar_text_label 104@(50@,13s) = 'MAN2_EJ'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50537
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50537
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50547
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @MANSIO2_50596
47@ += 1
if 
  47@ > 2
goto_if_false @MANSIO2_50594
47@ = 0

:MANSIO2_50594
clear_all_view_variables 

:MANSIO2_50596
if 
  47@ == 1
goto_if_false @MANSIO2_50723
set_var_int_to_lvar_int $h9_fuck_off = 34@
set_var_int_to_lvar_int $Mansion2_view_debug = 35@
set_var_int_to_lvar_int $7944 = 46@
$7945 = 0
$7946 = 0
$7947 = 0
$7948 = 0
$7949 = 0
view_integer_variable $h9_fuck_off {_p2} "M_STAGE"
view_integer_variable $Mansion2_view_debug {_p2} "M_GOALS"
view_integer_variable $7944 {_p2} "M_MISSION_TIMER"

:MANSIO2_50723
if 
  47@ == 2
goto_if_false @MANSIO2_50741

:MANSIO2_50741
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @MANSIO2_50763
38@ = 1

:MANSIO2_50763
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @MANSIO2_50851
if 
  39@ == 0
goto_if_false @MANSIO2_50826
39@ = 1
write_debug "LEVEL_PAUSED"
goto @MANSIO2_50851

:MANSIO2_50826
39@ = 0
write_debug "LEVEL_UNPAUSED"

:MANSIO2_50851
return 

:MANSIO2_50853
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @MANSIO2_50870
return 

:MANSIO2_50870
if 
  34@ == 3
goto_if_false @MANSIO2_50945
clear_area 220@ {y} 221@ {z} 222@ {radius} 50.0 {clearParticles} False
set_char_coordinates $scplayer {x} -1460.192 {y} 513.4575 {z} 2.003
set_char_heading $scplayer {heading} 270.0
gosub @MANSIO2_51172
return 

:MANSIO2_50945
if and
  34@ == 4
  35@ > 1
  8 > 35@
goto_if_false @MANSIO2_50986
35@ = 8
return 

:MANSIO2_50986
if and
  34@ == 5
  35@ == 1
goto_if_false @MANSIO2_51097
clear_area -1403.146 {y} 509.5356 {z} 17.2266 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} -1403.146 {y} 509.5356 {z} 17.2266
set_char_heading $scplayer {heading} 78.0
set_aircraft_carrier_sam_site False
238@ = 1
229@ = 1
remove_blip 165@
35@ = 6
return 

:MANSIO2_51097
return 

:MANSIO2_51099
41@ += 1
if 
  41@ > 9
goto_if_false @MANSIO2_51131
41@ = 0

:MANSIO2_51131
return 

:MANSIO2_51133
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:MANSIO2_51172
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:MANSIO2_51202
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO2_51224
if 
  get_fading_status 
goto_if_false @MANSIO2_51248
wait 0
goto @MANSIO2_51224

:MANSIO2_51248
set_area_visible 5
load_cutscene 'BHILL2'

:MANSIO2_51263
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO2_51287
wait 0
goto @MANSIO2_51263

:MANSIO2_51287
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:MANSIO2_51304
if 
  not has_cutscene_finished 
goto_if_false @MANSIO2_51328
wait 0
goto @MANSIO2_51304

:MANSIO2_51328
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:MANSIO2_51342
if 
  get_fading_status 
goto_if_false @MANSIO2_51366
wait 0
goto @MANSIO2_51342

:MANSIO2_51366
clear_cutscene 
set_area_visible 0
return 

:MANSIO2_51374
34@ = 0
switch_widescreen True
set_player_control $player1 {state} False

:MANSIO2_51392
if 
  not is_player_playing $player1
goto_if_false @MANSIO2_51419
wait 0
goto @MANSIO2_51392

:MANSIO2_51419
gosub @MANSIO2_51745
gosub @MANSIO2_52028
gosub @MANSIO2_52072
48@ = 0

:MANSIO2_51447
183@(48@,6i) = -1
269@(48@,6i) = 0
275@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_51447
48@ = 0

:MANSIO2_51508
189@(48@,2i) = -1
281@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_51508
switch_emergency_services False
set_wanted_multiplier 0.0
213@ = 0
clear_area 1248.681 {y} -807.9187 {z} 83.1484 {radius} 100.0 {clearParticles} True
load_scene 1248.681 {y} -807.9187 {z} 83.1484
set_char_coordinates $scplayer {x} 1246.016 {y} -803.2319 {z} 83.1484
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
set_time_of_day 8 {minutes} 0
wait 2000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_aircraft_carrier_sam_site True
delete_object $displayed_sniper_help_text
delete_object $g_VB_REAR_DOOR
delete_object $g_VB_SMALL_LIFT
set_respawn_point_for_duration_of_mission 1250.65 {y} -785.9349 {z} 89.2412
gosub @MANSIO2_51172
return 

:MANSIO2_51745
request_model 421
request_model 446
request_model 520
request_model 454
request_model 595
request_model 530
request_model 287
request_model 50
load_special_character 1 {modelName} 'TORINO'
request_model 347
request_model 335
request_model 356
request_model #CARRIER_LIFT1_SFSE
request_model #CARRIER_LIFT2_SFSE
request_model #CARRIER_DOOR_SFSE
request_model #MISSILE_07_SFXR
request_model #KMB_KEYPAD
load_all_models_now 

:MANSIO2_51836
if or
  not has_model_loaded 421
  not has_model_loaded 446
  not has_model_loaded 520
  not has_model_loaded 454
  not has_model_loaded 595
  not has_model_loaded 530
goto_if_false @MANSIO2_51888
wait 0
goto @MANSIO2_51836

:MANSIO2_51888
if or
  not has_model_loaded 287
  not has_model_loaded 50
goto_if_false @MANSIO2_51919
wait 0
goto @MANSIO2_51888

:MANSIO2_51919
if 
  not has_special_character_loaded 1
goto_if_false @MANSIO2_51945
wait 0
goto @MANSIO2_51919

:MANSIO2_51945
if or
  not has_model_loaded 347
  not has_model_loaded 335
  not has_model_loaded 356
goto_if_false @MANSIO2_51982
wait 0
goto @MANSIO2_51945

:MANSIO2_51982
if or
  not has_model_loaded #CARRIER_LIFT1_SFSE
  not has_model_loaded #CARRIER_LIFT2_SFSE
  not has_model_loaded #CARRIER_DOOR_SFSE
  not has_model_loaded #MISSILE_07_SFXR
  not has_model_loaded #KMB_KEYPAD
goto_if_false @MANSIO2_52026
wait 0
goto @MANSIO2_51982

:MANSIO2_52026
return 

:MANSIO2_52028
request_animation "CASINO"

:MANSIO2_52038
if 
  not has_animation_loaded "CASINO"
goto_if_false @MANSIO2_52070
wait 0
goto @MANSIO2_52038

:MANSIO2_52070
return 

:MANSIO2_52072
request_car_recording 208
request_car_recording 209
request_car_recording 211

:MANSIO2_52087
if or
  not has_car_recording_been_loaded 208
  not has_car_recording_been_loaded 209
  not has_car_recording_been_loaded 211
goto_if_false @MANSIO2_52124
wait 0
goto @MANSIO2_52087

:MANSIO2_52124
return 

:MANSIO2_52126
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_52345 {caseNum1} 1 {caseLabel1} @MANSIO2_52207 {caseNum2} 2 {caseLabel2} @MANSIO2_52230 {caseNum3} 3 {caseLabel3} @MANSIO2_52253 {caseNum4} 4 {caseLabel4} @MANSIO2_52276 {caseNum5} 5 {caseLabel5} @MANSIO2_52299 {caseNum6} 6 {caseLabel6} @MANSIO2_52322 {caseNum7} -1 {caseLabel7} @MANSIO2_52345

:MANSIO2_52207
print_now 'MAN2_80' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52230
print_now 'MAN2_81' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52253
print_now 'MAN2_82' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52276
print_now 'MAN2_83' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52299
print_now 'MAN2_84' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52322
print_now 'MAN2_ZZ' {time} 5000 {flag} 1
goto @MANSIO2_52345

:MANSIO2_52345
if 
  is_player_playing $player1
goto_if_false @MANSIO2_52375
remove_weapon_from_char $scplayer {weaponType} WeaponType.PistolSilenced
remove_weapon_from_char $scplayer {weaponType} WeaponType.Knife

:MANSIO2_52375
return 

:MANSIO2_52377
print_with_number_big 'M_PASS' {num} 50000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 50000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'MAN_2'
player_made_progress 1
set_int_stat StatId.PassedMansion2 {value} 1
print_now 'MAN2_34' {time} 7000 {flag} 1
$flag_mansion_mission_counter += 1
$2872 = create_pickup 359 {pickupType} PickupType.OnStreetSlow {x} -686.0 {y} 934.0 {z} 13.5
$gun_toreno1 = create_pickup 360 {pickupType} PickupType.OnStreetSlow {x} -690.0 {y} 934.0 {z} 13.5
$gun_toreno2 = create_pickup 362 {pickupType} PickupType.OnStreetSlow {x} -690.0 {y} 939.0 {z} 13.5
$gun_toreno3 = create_pickup 361 {pickupType} PickupType.OnStreetSlow {x} -686.0 {y} 939.0 {z} 13.5
switch_car_generator $f1_blood_car_gen[8] {amount} 101
switch_car_generator $f1_blood_car_gen[9] {amount} 101
switch_car_generator $5180 {amount} 101
switch_car_generator $5181 {amount} 101
return 

:MANSIO2_52592
if 
  286@ == 1
goto_if_false @MANSIO2_52625
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_52625
if 
  288@ == 1
goto_if_false @MANSIO2_52658
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_52658
if 
  287@ == 1
goto_if_false @MANSIO2_52691
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_52691
if 
  289@ == 1
goto_if_false @MANSIO2_52736
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStop
289@ = 0

:MANSIO2_52736
mark_car_as_no_longer_needed 139@
mark_car_as_no_longer_needed 140@
mark_car_as_no_longer_needed 153@
mark_char_as_no_longer_needed 130@
mark_object_as_no_longer_needed 157@
mark_object_as_no_longer_needed 158@
mark_object_as_no_longer_needed 159@
mark_object_as_no_longer_needed 160@
48@ = 0

:MANSIO2_52783
mark_car_as_no_longer_needed 141@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52783
48@ = 0

:MANSIO2_52820
mark_car_as_no_longer_needed 146@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52820
48@ = 0

:MANSIO2_52857
mark_car_as_no_longer_needed 149@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52857
48@ = 0

:MANSIO2_52894
mark_car_as_no_longer_needed 154@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52894
48@ = 0

:MANSIO2_52931
mark_char_as_no_longer_needed 131@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_52931
remove_blip 164@
remove_blip 165@
remove_blip 179@
48@ = 0

:MANSIO2_52983
remove_blip 166@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52983
48@ = 0

:MANSIO2_53020
remove_blip 169@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_53020
48@ = 0

:MANSIO2_53057
remove_blip 173@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_53057
clear_help 
remove_animation "CASINO"
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 446
mark_model_as_no_longer_needed 520
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 595
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed #CARRIER_LIFT1_SFSE
mark_model_as_no_longer_needed #CARRIER_LIFT2_SFSE
mark_model_as_no_longer_needed #CARRIER_DOOR_SFSE
mark_model_as_no_longer_needed #MISSILE_07_SFXR
mark_model_as_no_longer_needed #KMB_KEYPAD
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 360
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 361
unload_special_character 1
remove_car_recording 208
remove_car_recording 209
remove_car_recording 211
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
switch_ambient_planes True
release_weather 
set_disable_military_zones False
set_aircraft_carrier_sam_site True
force_interior_lighting_for_player $player1 {state} False
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO2_53285
enable_char_speech $scplayer

:MANSIO2_53285
$timer_mobile_start = get_game_timer 
$displayed_sniper_help_text = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
set_object_dynamic $displayed_sniper_help_text {state} False
set_object_collision_damage_effect $displayed_sniper_help_text {state} False
set_object_proofs $displayed_sniper_help_text {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $displayed_sniper_help_text
$g_VB_REAR_DOOR = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
set_object_dynamic $g_VB_REAR_DOOR {state} False
set_object_collision_damage_effect $g_VB_REAR_DOOR {state} False
set_object_proofs $g_VB_REAR_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_REAR_DOOR
$g_VB_SMALL_LIFT = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 16.953
set_object_dynamic $g_VB_SMALL_LIFT {state} False
set_object_collision_damage_effect $g_VB_SMALL_LIFT {state} False
set_object_proofs $g_VB_SMALL_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_SMALL_LIFT
$onmission = 0
mission_has_finished 
return 

//-------------Mission 104---------------
// Originally: Home Coming

:MANSIO3
script_name 'MANSIO3'
gosub @MANSIO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO3_38
gosub @MANSIO3_6722

:MANSIO3_38
gosub @MANSIO3_6948
terminate_this_script 

:MANSIO3_47
load_mission_text 'MAN_3'
set_player_group_to_follow_always $player1 {state} True
can_trigger_gang_war_when_on_a_mission True
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
82@ = 2
wait 0
load_special_character 1 {modelName} 'SWEET'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_125
if 
  get_fading_status 
goto_if_false @MANSIO3_149
wait 0
goto @MANSIO3_125

:MANSIO3_149
force_weather_now WeatherType.SunnyLa
set_area_visible 5
load_cutscene 'BHILL3A'

:MANSIO3_168
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_192
wait 0
goto @MANSIO3_168

:MANSIO3_192
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:MANSIO3_209
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_233
wait 0
goto @MANSIO3_209

:MANSIO3_233
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:MANSIO3_247
if 
  get_fading_status 
goto_if_false @MANSIO3_271
wait 0
goto @MANSIO3_247

:MANSIO3_271
clear_cutscene 
set_area_visible 0
release_weather 
request_model 540
request_model 28
request_model 106
request_model 355
request_model 29
request_animation "GANGS"
request_animation "CRACK"
request_car_recording 488
stream_script 19
load_all_models_now 

:MANSIO3_330
if or
  not has_model_loaded 540
  not has_special_character_loaded 1
  not has_model_loaded 106
goto_if_false @MANSIO3_365
wait 0
goto @MANSIO3_330

:MANSIO3_365
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CRACK"
  not has_model_loaded 28
goto_if_false @MANSIO3_409
wait 0
goto @MANSIO3_365

:MANSIO3_409
if or
  not has_streamed_script_loaded 19
  not has_car_recording_been_loaded 488
  not has_model_loaded 355
  not has_model_loaded 29
goto_if_false @MANSIO3_449
wait 0
goto @MANSIO3_409

:MANSIO3_449
request_collision 1251.541 {y} -808.7633
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
can_trigger_gang_war_when_on_a_mission False
52@ = create_char PedType.CivMale {modelId} 28 {x} 2488.6169 {y} -1671.536 {z} -10.0
start_new_streamed_script 19 {args} 52@ 
56@ = add_blip_for_coord 2514.4609 {y} -1674.104 {z} 12.6425
57@ = add_blip_for_coord 1521.252 {y} -1673.3361 {z} 12.5607
change_blip_display 56@ {display} BlipDisplay.Neither
change_blip_display 57@ {display} BlipDisplay.Both
clear_area 1245.049 {y} -811.1318 {z} 83.1477 {radius} 10.0 {clearParticles} True
60@ = create_car 540 {x} 1245.049 {y} -811.1318 {z} 83.1477
change_car_colour 60@ {color1} 0 {color2} 0
set_car_heading 60@ {heading} 181.4888
set_car_traction 60@ {traction} 2.0
set_char_coordinates $scplayer {x} 1251.541 {y} -808.7633 {z} 83.1484
set_char_heading $scplayer {heading} 109.0044
79@ = add_blip_for_coord 2485.5271 {y} -1668.528 {z} 12.3438
change_blip_display 79@ {display} BlipDisplay.Neither
set_camera_behind_player 
restore_camera_jumpcut 
load_scene_in_direction 1251.541 {y} -808.7633 {z} 83.1484 {heading} 109.0044
gosub @MANSIO3_7345
print_now 'MAN3_01' {time} 7000 {flag} 1

:MANSIO3_763
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_5468
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @MANSIO3_805
goto @MANSIO3_6740

:MANSIO3_805
gosub @MANSIO3_7378
gosub @MANSIO3_7833
if 
  64@ == 0
goto_if_false @MANSIO3_1823
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_877
61@ = store_car_char_is_in $scplayer
62@ = get_maximum_number_of_passengers 61@
84@ = get_number_of_passengers 61@

:MANSIO3_877
if 
  locate_char_any_means_3d $scplayer {x} 1521.194 {y} -1671.913 {z} 12.5625 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MANSIO3_1823
if 
  62@ == 0
goto_if_false @MANSIO3_959
print_now 'MAN3_19' {time} 3000 {flag} 1

:MANSIO3_959
if 
  is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1043
if or
  is_char_in_any_heli $scplayer
  is_char_in_any_plane $scplayer
  is_char_in_flying_vehicle $scplayer
goto_if_false @MANSIO3_1027
print_now 'MAN3_69' {time} 3000 {flag} 1
goto @MANSIO3_1043

:MANSIO3_1027
print_now 'MAN3_34' {time} 3000 {flag} 1

:MANSIO3_1043
if and
  62@ > 0
  not is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1823
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1807
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1131
$car = store_car_char_is_in $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:MANSIO3_1131
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_1153
if 
  get_fading_status 
goto_if_false @MANSIO3_1177
wait 0
goto @MANSIO3_1153

:MANSIO3_1177
make_player_safe_for_cutscene $player1
if 
  not is_car_dead 60@
goto_if_false @MANSIO3_1251
if 
  locate_car_3d 60@ {x} 1542.73 {y} -1675.697 {z} 12.5551 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO3_1251
delete_car 60@

:MANSIO3_1251
clear_area 1542.73 {y} -1675.697 {z} 12.5551 {radius} 60.0 {clearParticles} True
load_cutscene 'BHILL3B'

:MANSIO3_1286
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_1310
wait 0
goto @MANSIO3_1286

:MANSIO3_1310
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO3_1319
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_1343
wait 0
goto @MANSIO3_1319

:MANSIO3_1343
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO3_1358
if 
  get_fading_status 
goto_if_false @MANSIO3_1382
wait 0
goto @MANSIO3_1358

:MANSIO3_1382
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1434
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1434
set_car_coordinates $car {x} 1521.194 {y} -1671.913 {z} 12.5625

:MANSIO3_1434
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1518
make_room_in_player_gang_for_mission_peds 1
$sweet = create_char_as_passenger $car {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_health $sweet {health} 700
set_char_max_health $sweet {maxHealth} 700
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_accuracy $sweet {accuracy} 90

:MANSIO3_1518
if and
  not is_char_dead $sweet
  not is_car_dead $car
  not is_char_dead $scplayer
goto_if_false @MANSIO3_1593
if 
  not is_char_in_car $scplayer {vehicle} $car
goto_if_false @MANSIO3_1571
warp_char_into_car $scplayer {vehicle} $car

:MANSIO3_1571
58@ = add_blip_for_char $sweet
set_blip_as_friendly 58@ {state} True
change_blip_display 58@ {display} BlipDisplay.Neither

:MANSIO3_1593
TIMERB = 0
change_blip_display 56@ {display} BlipDisplay.Both
change_blip_display 57@ {display} BlipDisplay.Neither
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_1642
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_1642
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
72@ = get_char_heading $scplayer
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1779
if and
  72@ > 90.0
  270.0 > 72@
goto_if_false @MANSIO3_1747
load_scene_in_direction 1521.194 {y} -1671.913 {z} 12.5625 {heading} 180.0
set_car_heading $car {heading} 180.0
goto @MANSIO3_1779

:MANSIO3_1747
load_scene_in_direction 1521.194 {y} -1671.913 {z} 12.5625 {heading} 0.0
set_car_heading $car {heading} 0.0

:MANSIO3_1779
gosub @MANSIO3_7345
59@ = 1
64@ = 1
goto @MANSIO3_1823

:MANSIO3_1807
print_now 'MAN3_08' {time} 4000 {flag} 1

:MANSIO3_1823
if 
  59@ <> 0
goto_if_false @MANSIO3_2226
if and
  TIMERB > 1000
  59@ == 1
goto_if_false @MANSIO3_1949
if 
  not is_char_dead $ryder
goto_if_false @MANSIO3_1890
shut_char_up_for_scripted_speech $ryder {state} True

:MANSIO3_1890
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_1913
shut_char_up_for_scripted_speech $scplayer {state} True

:MANSIO3_1913
set_lvar_text_label 86@s = 'MAN3_AA'
set_lvar_int_to_constant 83@ = 19200
gosub @MANSIO3_7813
59@ = 2

:MANSIO3_1949
if and
  82@ == 2
  59@ == 2
goto_if_false @MANSIO3_2010
set_lvar_text_label 86@s = 'MAN3_AB'
set_lvar_int_to_constant 83@ = 19202
gosub @MANSIO3_7813
59@ = 3

:MANSIO3_2010
if and
  82@ == 2
  59@ == 3
goto_if_false @MANSIO3_2071
set_lvar_text_label 86@s = 'MAN3_AC'
set_lvar_int_to_constant 83@ = 19201
gosub @MANSIO3_7813
59@ = 4

:MANSIO3_2071
if and
  82@ == 2
  59@ == 4
goto_if_false @MANSIO3_2132
set_lvar_text_label 86@s = 'MAN3_AD'
set_lvar_int_to_constant 83@ = 19203
gosub @MANSIO3_7813
59@ = 5

:MANSIO3_2132
if and
  82@ == 2
  59@ == 5
goto_if_false @MANSIO3_2226
print_now 'MAN3_05' {time} 7000 {flag} 1
59@ = 0
if 
  not is_char_dead $ryder
goto_if_false @MANSIO3_2203
shut_char_up_for_scripted_speech $ryder {state} False

:MANSIO3_2203
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_2226
shut_char_up_for_scripted_speech $scplayer {state} False

:MANSIO3_2226
if or
  64@ == 1
  64@ == 2
goto_if_false @MANSIO3_3847
if 
  is_char_dead $sweet
goto_if_false @MANSIO3_2290
print_now 'MAN3_11' {time} 4000 {flag} 1
goto @MANSIO3_6722

:MANSIO3_2290
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_2320
53@, 54@, 55@ = get_char_coordinates $sweet

:MANSIO3_2320
if 
  locate_char_any_means_3d $scplayer {x} 53@ {y} 54@ {z} 55@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MANSIO3_2421
change_blip_display 58@ {display} BlipDisplay.Neither
change_blip_display 56@ {display} BlipDisplay.Both
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_2407
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_2407
64@ = 1
goto @MANSIO3_2482

:MANSIO3_2421
print_now 'MAN3_03' {time} 4000 {flag} 1
change_blip_display 58@ {display} BlipDisplay.Both
change_blip_display 56@ {display} BlipDisplay.Neither
if 
  is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_2475
remove_char_from_group $sweet

:MANSIO3_2475
64@ = 2

:MANSIO3_2482
if 
  64@ == 1
goto_if_false @MANSIO3_3847
if 
  locate_char_any_means_3d $scplayer {x} 2514.4609 {y} -1674.104 {z} 12.6425 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @MANSIO3_3847
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_2594
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:MANSIO3_2594
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_2609
if 
  get_fading_status 
goto_if_false @MANSIO3_2633
wait 0
goto @MANSIO3_2609

:MANSIO3_2633
make_player_safe_for_cutscene $player1
if 
  not is_car_dead 60@
goto_if_false @MANSIO3_2756
if 
  locate_car_3d 60@ {x} 2492.8889 {y} -1666.564 {z} 12.3438 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO3_2756
clear_area 2482.9939 {y} -1653.609 {z} 12.461 {radius} 10.0 {clearParticles} True
set_car_coordinates 60@ {x} 2482.9939 {y} -1653.609 {z} 12.461
set_car_heading 60@ {heading} 273.1021

:MANSIO3_2756
clear_area 2492.8889 {y} -1666.564 {z} 12.3438 {radius} 60.0 {clearParticles} True
load_cutscene 'BHILL3C'

:MANSIO3_2791
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_2815
wait 0
goto @MANSIO3_2791

:MANSIO3_2815
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO3_2824
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_2848
wait 0
goto @MANSIO3_2824

:MANSIO3_2848
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO3_2863
if 
  get_fading_status 
goto_if_false @MANSIO3_2887
wait 0
goto @MANSIO3_2863

:MANSIO3_2887
88@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 88@ {state} True
close_sequence_task 88@
89@ = open_sequence_task 
task_pause -1 {time} 1000
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
change_blip_display 56@ {display} BlipDisplay.Neither
64@ = 3
40@ = create_char PedType.CivMale {modelId} 28 {x} 2429.1899 {y} -1677.537 {z} 12.7231
set_char_heading 40@ {heading} 306.1672
perform_sequence_task 40@ {sequence} 88@
34@ = add_blip_for_char 40@
47@ = create_char PedType.CivMale {modelId} 106 {x} 2430.5859 {y} -1677.075 {z} 12.7135
set_char_heading 47@ {heading} 80.528
perform_sequence_task 47@ {sequence} 89@
48@ = create_char PedType.CivMale {modelId} 106 {x} 2513.364 {y} -1649.865 {z} 13.5588
set_char_heading 48@ {heading} 140.4164
task_play_anim 48@ {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
apply_brakes_to_players_car $player1 {state} False
gosub @MANSIO3_7280
load_scene_in_direction 2424.1841 {y} -1679.58 {z} 12.7653 {heading} 322.7617
set_fixed_camera_position 2427.2271 {y} -1681.12 {z} 13.891 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2427.8081 {y} -1680.306 {z} 13.8707 {switchStyle} SwitchType.JumpCut
print_now 'MAN3_20' {time} 5000 {flag} 1
gosub @MANSIO3_7345
wait 1000
TIMERB = 0

:MANSIO3_3263
if 
  4000 > TIMERB
goto_if_false @MANSIO3_3324
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  $7950 == 1
goto_if_false @MANSIO3_3317
goto @MANSIO3_3459

:MANSIO3_3317
goto @MANSIO3_3263

:MANSIO3_3324
set_fixed_camera_position 2507.9839 {y} -1652.199 {z} 15.6974 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2508.8921 {y} -1651.913 {z} 15.3924 {switchStyle} SwitchType.JumpCut
print_now 'MAN3_21' {time} 5000 {flag} 1
TIMERB = 0

:MANSIO3_3398
if 
  5000 > TIMERB
goto_if_false @MANSIO3_3459
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  $7950 == 1
goto_if_false @MANSIO3_3452
goto @MANSIO3_3459

:MANSIO3_3452
goto @MANSIO3_3398

:MANSIO3_3459
$7950 = 1
85@ = 1
can_trigger_gang_war_when_on_a_mission True
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_3568
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_3536
warp_char_from_car_to_coord $scplayer {x} 2506.0591 {y} -1671.968 {z} 12.379
goto @MANSIO3_3556

:MANSIO3_3536
set_char_coordinates $scplayer {x} 2506.0591 {y} -1671.968 {z} 12.379

:MANSIO3_3556
set_camera_behind_player 
set_char_heading $scplayer {heading} 62.4295

:MANSIO3_3568
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_3674
if 
  is_char_in_any_car $sweet
goto_if_false @MANSIO3_3627
warp_char_from_car_to_coord $sweet {x} 2506.5669 {y} -1670.212 {z} 12.3822
goto @MANSIO3_3647

:MANSIO3_3627
set_char_coordinates $sweet {x} 2506.5669 {y} -1670.212 {z} 12.3822

:MANSIO3_3647
give_weapon_to_char $sweet {weaponType} WeaponType.Ak47 {ammo} 300
set_current_char_weapon $sweet {weaponType} WeaponType.Ak47
set_char_heading $sweet {heading} 113.0677

:MANSIO3_3674
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_3705
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_3705
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 40
delete_char 47@
59@ = 0
gosub @MANSIO3_7293
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_3824
set_char_health $sweet {health} 700
set_char_max_health $sweet {maxHealth} 700
$m3_in_the_zone = get_char_health $sweet

:MANSIO3_3824
$m3_in_the_zone /= 7
display_onscreen_counter_with_string $m3_in_the_zone {display} CounterDisplay.Bar {text} 'MAN3_32'

:MANSIO3_3847
if 
  64@ == 3
goto_if_false @MANSIO3_4151
print_now 'MAN3_22' {time} 7000 {flag} 1
41@ = create_char PedType.Dealer {modelId} 29 {x} 2482.0869 {y} -1696.119 {z} 12.5267
set_char_heading 41@ {heading} 0.095
35@ = add_blip_for_char 41@
42@ = create_char PedType.Dealer {modelId} 28 {x} 2451.6809 {y} -1644.083 {z} 12.457
set_char_heading 42@ {heading} 186.2393
36@ = add_blip_for_char 42@
43@ = create_char PedType.Dealer {modelId} 29 {x} 2415.79 {y} -1631.1429 {z} 12.5114
set_char_heading 43@ {heading} 287.5167
37@ = add_blip_for_char 43@
44@ = create_char PedType.Dealer {modelId} 28 {x} 2364.3611 {y} -1666.775 {z} 12.5469
set_char_heading 44@ {heading} 343.1245
38@ = add_blip_for_char 44@
45@ = create_char PedType.Dealer {modelId} 28 {x} 2370.333 {y} -1637.42 {z} 12.477
set_char_heading 45@ {heading} 140.6299
39@ = add_blip_for_char 45@
start_new_streamed_script 19 {args} 40@ 
start_new_streamed_script 19 {args} 41@ 
start_new_streamed_script 19 {args} 42@ 
start_new_streamed_script 19 {args} 43@ 
start_new_streamed_script 19 {args} 44@ 
start_new_streamed_script 19 {args} 45@ 
delete_char 52@
64@ = 4

:MANSIO3_4151
if 
  64@ == 4
goto_if_false @MANSIO3_5461
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4200
$m3_in_the_zone = get_char_health $sweet
$m3_in_the_zone /= 7

:MANSIO3_4200
75@ = get_zone_gang_strength 'GAN1' {gangId} GangType.Ballas
if 
  75@ == 0
goto_if_false @MANSIO3_4511
if 
  74@ == 0
goto_if_false @MANSIO3_4511
74@ = 1
if 
  73@ == 0
goto_if_false @MANSIO3_4504
gosub @MANSIO3_7280
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_4350
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_4350
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4416
clear_char_tasks_immediately $sweet
task_play_anim_non_interruptable $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_4416
print_now 'MAN3_33' {time} 4000 {flag} 1
wait 4000
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 0
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
gosub @MANSIO3_7293
TIMERB = 0
goto @MANSIO3_4511

:MANSIO3_4504
goto @MANSIO3_5475

:MANSIO3_4511
if and
  74@ == 1
  TIMERB > 4000
  81@ == 0
goto_if_false @MANSIO3_4567
print_now 'MAN3_29' {time} 10000 {flag} 1
81@ = 1

:MANSIO3_4567
if and
  is_player_in_info_zone $player1 {infoZone} 'GAN1'
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4669
if and
  78@ == 0
  not is_gang_war_going_on 
goto_if_false @MANSIO3_4662
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
if 
  does_blip_exist 79@
goto_if_false @MANSIO3_4655
remove_blip 79@

:MANSIO3_4655
78@ = 1

:MANSIO3_4662
$has_seen_this_cutscene = 1

:MANSIO3_4669
if and
  not is_player_in_info_zone $player1 {infoZone} 'GAN1'
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4802
if and
  78@ == 1
  not is_gang_war_going_on 
goto_if_false @MANSIO3_4795
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active False
print_now 'MAN3_31' {time} 6000 {flag} 1
if 
  not does_blip_exist 79@
goto_if_false @MANSIO3_4788
79@ = add_blip_for_coord 2485.5271 {y} -1668.528 {z} 12.3438

:MANSIO3_4788
78@ = 0

:MANSIO3_4795
$has_seen_this_cutscene = 0

:MANSIO3_4802
if 
  is_char_dead $sweet
goto_if_false @MANSIO3_4841
print_now 'MAN3_11' {time} 4000 {flag} 1
goto @MANSIO3_6722

:MANSIO3_4841
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4871
53@, 54@, 55@ = get_char_coordinates $sweet

:MANSIO3_4871
if 
  locate_char_any_means_3d $scplayer {x} 53@ {y} 54@ {z} 55@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 35.0 {drawSphere} False
goto_if_false @MANSIO3_5022
if 
  70@ == 1
goto_if_false @MANSIO3_5015
change_blip_display 58@ {display} BlipDisplay.Neither
change_blip_display 34@ {display} BlipDisplay.Both
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 36@ {display} BlipDisplay.Both
change_blip_display 37@ {display} BlipDisplay.Both
change_blip_display 38@ {display} BlipDisplay.Both
change_blip_display 39@ {display} BlipDisplay.Both
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5008
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_5008
70@ = 0

:MANSIO3_5015
goto @MANSIO3_5133

:MANSIO3_5022
if 
  70@ == 0
goto_if_false @MANSIO3_5133
print_now 'MAN3_03' {time} 10000 {flag} 1
change_blip_display 58@ {display} BlipDisplay.Both
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 36@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Neither
change_blip_display 38@ {display} BlipDisplay.Neither
change_blip_display 39@ {display} BlipDisplay.Neither
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5126
remove_char_from_group $sweet

:MANSIO3_5126
70@ = 1

:MANSIO3_5133
if and
  is_char_dead 40@
  does_blip_exist 34@
goto_if_false @MANSIO3_5159
remove_blip 34@

:MANSIO3_5159
if and
  is_char_dead 41@
  does_blip_exist 35@
goto_if_false @MANSIO3_5185
remove_blip 35@

:MANSIO3_5185
if and
  is_char_dead 42@
  does_blip_exist 36@
goto_if_false @MANSIO3_5211
remove_blip 36@

:MANSIO3_5211
if and
  is_char_dead 43@
  does_blip_exist 37@
goto_if_false @MANSIO3_5237
remove_blip 37@

:MANSIO3_5237
if and
  is_char_dead 44@
  does_blip_exist 38@
goto_if_false @MANSIO3_5263
remove_blip 38@

:MANSIO3_5263
if and
  is_char_dead 45@
  does_blip_exist 39@
goto_if_false @MANSIO3_5289
remove_blip 39@

:MANSIO3_5289
if and
  77@ == 1
  TIMERA > 4000
goto_if_false @MANSIO3_5333
print_help 'MAN3_30'
77@ = 2

:MANSIO3_5333
if and
  is_char_dead 40@
  is_char_dead 41@
  is_char_dead 42@
  is_char_dead 43@
  is_char_dead 44@
  is_char_dead 45@
goto_if_false @MANSIO3_5461
if 
  73@ == 0
goto_if_false @MANSIO3_5461
73@ = 1
if 
  74@ == 0
goto_if_false @MANSIO3_5454
print_now 'MAN3_28' {time} 10000 {flag} 1
TIMERA = 0
77@ = 1
goto @MANSIO3_5461

:MANSIO3_5454
goto @MANSIO3_5475

:MANSIO3_5461
goto @MANSIO3_763

:MANSIO3_5468
goto @MANSIO3_6722

:MANSIO3_5475
gosub @MANSIO3_7312
gosub @MANSIO3_7280
if and
  not is_char_dead $scplayer
  not is_char_dead $sweet
goto_if_false @MANSIO3_5723
remove_char_from_group $sweet
clear_area 2512.761 {y} -1672.52 {z} 12.5034 {radius} 20.0 {clearParticles} True
delete_car 60@
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_5607
warp_char_from_car_to_coord $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
warp_char_from_car_to_coord $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861
goto @MANSIO3_5647

:MANSIO3_5607
set_char_coordinates $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
set_char_coordinates $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861

:MANSIO3_5647
delete_car 60@
set_char_heading $scplayer {heading} 240.2609
task_turn_char_to_face_char $scplayer {target} $sweet
set_char_heading $sweet {heading} 73.5014
task_turn_char_to_face_char $sweet {target} $scplayer
task_toggle_ped_threat_scanner $sweet {onFoot} False {inCar} False {duringScriptTask} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed

:MANSIO3_5723
load_scene 2512.761 {y} -1672.52 {z} 12.5034
load_scene_in_direction 2512.761 {y} -1672.52 {z} 12.5034 {heading} 240.2609
set_fixed_camera_position 2509.7981 {y} -1672.175 {z} 13.4192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.752 {y} -1672.457 {z} 13.5178 {switchStyle} SwitchType.JumpCut
gosub @MANSIO3_7345
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_5886
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:MANSIO3_5886
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5952
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:MANSIO3_5952
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19217

:MANSIO3_5963
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_5989
wait 0
goto @MANSIO3_5963

:MANSIO3_5989
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BA' {time} 4000 {flag} 1
TIMERB = 0

:MANSIO3_6016
if 
  4000 > TIMERB
goto_if_false @MANSIO3_6070
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6063
goto @MANSIO3_6701

:MANSIO3_6063
goto @MANSIO3_6016

:MANSIO3_6070
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19204

:MANSIO3_6081
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6107
wait 0
goto @MANSIO3_6081

:MANSIO3_6107
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BB' {time} 3000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_6184
clear_char_tasks_immediately $sweet
task_play_anim $sweet {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_6184
TIMERB = 0

:MANSIO3_6191
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6245
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6238
goto @MANSIO3_6701

:MANSIO3_6238
goto @MANSIO3_6191

:MANSIO3_6245
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19218

:MANSIO3_6256
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6282
wait 0
goto @MANSIO3_6256

:MANSIO3_6282
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BC' {time} 3000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_6359
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_6359
TIMERB = 0

:MANSIO3_6366
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6420
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6413
goto @MANSIO3_6701

:MANSIO3_6413
goto @MANSIO3_6366

:MANSIO3_6420
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19205

:MANSIO3_6431
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6457
wait 0
goto @MANSIO3_6431

:MANSIO3_6457
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BD' {time} 3000 {flag} 1
TIMERB = 0

:MANSIO3_6484
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6538
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6531
goto @MANSIO3_6701

:MANSIO3_6531
goto @MANSIO3_6484

:MANSIO3_6538
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_6583
clear_char_tasks_immediately $scplayer
task_go_to_coord_any_means $scplayer {x} 2507.793 {y} -1668.927 {z} 12.3879 {speed} MoveState.Walk {vehicle} -1

:MANSIO3_6583
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19219

:MANSIO3_6594
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6620
wait 0
goto @MANSIO3_6594

:MANSIO3_6620
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BE' {time} 2000 {flag} 1
TIMERB = 0

:MANSIO3_6647
if 
  2000 > TIMERB
goto_if_false @MANSIO3_6701
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6694
goto @MANSIO3_6701

:MANSIO3_6694
goto @MANSIO3_6647

:MANSIO3_6701
gosub @MANSIO3_7293
set_camera_behind_player 
delete_char $sweet
goto @MANSIO3_6740

:MANSIO3_6722
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MANSIO3_6740
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 0
start_new_script @GROVE 
remove_blip $grove_contact_blip
$grove_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $grove_blip_icon
$flag_mansion_mission_counter += 1
player_made_progress 1
register_mission_passed 'MAN_3'
print_with_number_big 'M_PASSR' {num} 40 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
$territory_pickup = create_protection_pickup 2502.1001 {y} -1686.38 {z} 13.0 {revenueLimit} 10000 {revenueRate} $territory_cash
start_new_script @TCASH 
$terminted_territory_pickup = 0
play_mission_passed_tune 1
clear_wanted_level $player1
set_int_stat StatId.PassedMansion3 {value} 1
65@ = 1
return 

:MANSIO3_6948
if 
  65@ == 0
goto_if_false @MANSIO3_7034
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active False
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 40

:MANSIO3_7034
clear_onscreen_counter $m3_in_the_zone
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
$onmission = 0
$timer_mobile_start = get_game_timer 
$gf_game_timer = get_game_timer 
mark_model_as_no_longer_needed 540
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 29
mark_streamed_script_as_no_longer_needed 19
unload_special_character 1
remove_animation "GANGS"
remove_animation "CRACK"
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_7146
remove_char_elegantly $sweet

:MANSIO3_7146
if 
  does_blip_exist 79@
goto_if_false @MANSIO3_7167
remove_blip 79@

:MANSIO3_7167
if 
  does_blip_exist 34@
goto_if_false @MANSIO3_7188
remove_blip 34@

:MANSIO3_7188
if 
  does_blip_exist 35@
goto_if_false @MANSIO3_7209
remove_blip 35@

:MANSIO3_7209
if 
  does_blip_exist 57@
goto_if_false @MANSIO3_7230
remove_blip 57@

:MANSIO3_7230
if 
  does_blip_exist 56@
goto_if_false @MANSIO3_7251
remove_blip 56@

:MANSIO3_7251
if 
  does_blip_exist 58@
goto_if_false @MANSIO3_7272
remove_blip 58@

:MANSIO3_7272
restore_camera_jumpcut 
set_camera_behind_player 
mission_has_finished 
return 

:MANSIO3_7280
switch_widescreen True
set_player_control $player1 {state} False
return 

:MANSIO3_7293
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:MANSIO3_7312
do_fade 500 {direction} Fade.Out

:MANSIO3_7319
if 
  get_fading_status 
goto_if_false @MANSIO3_7343
wait 0
goto @MANSIO3_7319

:MANSIO3_7343
return 

:MANSIO3_7345
do_fade 500 {direction} Fade.In

:MANSIO3_7352
if 
  get_fading_status 
goto_if_false @MANSIO3_7376
wait 0
goto @MANSIO3_7352

:MANSIO3_7376
return 

:MANSIO3_7378
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @MANSIO3_7441
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7441
set_char_coordinates $scplayer {x} 1522.09 {y} -1662.082 {z} 12.5469
set_char_heading $scplayer {heading} 175.5419
set_camera_behind_player 

:MANSIO3_7441
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @MANSIO3_7456

:MANSIO3_7456
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @MANSIO3_7519
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7519
set_char_coordinates $scplayer {x} 2503.688 {y} -1671.453 {z} 12.3707
set_char_heading $scplayer {heading} 255.1807
set_camera_behind_player 

:MANSIO3_7519
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @MANSIO3_7701
gosub @MANSIO3_7280
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7607
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_7607
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_7673
clear_char_tasks_immediately $sweet
task_play_anim_non_interruptable $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_7673
print_now 'MAN3_33' {time} 4000 {flag} 1
wait 4000
gosub @MANSIO3_7293

:MANSIO3_7701
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @MANSIO3_7723
goto @MANSIO3_5475

:MANSIO3_7723
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @MANSIO3_7796
if 
  not is_car_dead 61@
goto_if_false @MANSIO3_7796
46@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.BikeRear
47@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.RearLeft
48@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.RearRight

:MANSIO3_7796
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @MANSIO3_7811

:MANSIO3_7811
return 

:MANSIO3_7813
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 83@
82@ = 0
return 

:MANSIO3_7833
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  82@ == 0
goto_if_false @MANSIO3_7876
play_mission_audio MissionAudioSlot.Slot1
print_now 86@s {time} 10000 {flag} 1
82@ = 1

:MANSIO3_7876
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  82@ == 1
goto_if_false @MANSIO3_7914
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 86@s
82@ = 2

:MANSIO3_7914
return 

//-------------Mission 105---------------
// Originally: Cut Throat Business

:MANSON5
script_name 'MANSON5'
gosub @MANSON5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSON5_38
gosub @MANSON5_13113

:MANSON5_38
gosub @MANSON5_13159
terminate_this_script 

:MANSON5_47
register_mission_given 
$onmission = 1
load_mission_text 'MAN_5'
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 5
load_cutscene 'BHILL5A'

:MANSON5_93
if 
  not has_cutscene_loaded 
goto_if_false @MANSON5_117
wait 0
goto @MANSON5_93

:MANSON5_117
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSON5_126
if 
  not has_cutscene_finished 
goto_if_false @MANSON5_150
wait 0
goto @MANSON5_126

:MANSON5_150
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSON5_165
if 
  get_fading_status 
goto_if_false @MANSON5_189
wait 0
goto @MANSON5_165

:MANSON5_189
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
force_weather_now WeatherType.ExtraSunnyLa
52@ = load_char_decision_maker DecisionMakerType.Empty
load_special_character 1 {modelName} 'MADDOGG'
request_model 424

:MANSON5_234
if or
  not has_special_character_loaded 1
  not has_model_loaded 424
goto_if_false @MANSON5_265
wait 0
goto @MANSON5_234

:MANSON5_265
clear_area 1252.4709 {y} -805.5187 {z} 83.1484 {radius} 400.0 {clearParticles} True
load_scene 1252.4709 {y} -805.5187 {z} 83.1484
request_collision 1252.4709 {y} -805.5187
set_char_coordinates $scplayer {x} 1252.4709 {y} -805.5187 {z} 83.1484
set_char_heading $scplayer {heading} 144.1434
51@ = get_player_group $player1
set_group_default_task_allocator 51@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
34@ = create_char PedType.Special {modelId} 290 {x} 1254.311 {y} -810.8859 {z} 83.1484
set_char_heading 34@ {heading} 60.7435
set_char_never_leaves_group 34@ {state} True
set_group_member 51@ {handle} 34@
set_char_drowns_in_water 34@ {state} True
set_char_decision_maker 34@ {handleOrTemplate} 52@
set_char_never_targetted 34@ {state} True
set_char_cant_be_dragged_out 34@ {state} True
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
custom_plate_for_next_car 424 {text} "LA5H_L3Y"
custom_plate_design_for_next_car 424 {design} CarPlateDesign.LosSantos
45@ = create_car 424 {x} 1248.907 {y} -804.3519 {z} 83.1484
set_car_heading 45@ {heading} 180.0
change_car_colour 45@ {color1} 0 {color2} 3
50@ = add_blip_for_coord -12.2064 {y} -1117.876 {z} 7.0705
118@ = 0
119@ = 0
set_lvar_text_label 168@s = 'MAN5_AA'
set_lvar_int_to_constant 120@ = 13419
set_lvar_int_to_var_int 144@ = $scplayer
set_lvar_text_label 170@s = 'MAN5_AB'
set_lvar_int_to_constant 121@ = 13420
set_lvar_int_to_var_int 145@ = $scplayer
set_lvar_text_label 172@s = 'MAN5_AC'
set_lvar_int_to_constant 122@ = 13400
set_lvar_int_to_lvar_int 146@ = 34@
set_lvar_text_label 174@s = 'MAN5_BA'
set_lvar_int_to_constant 123@ = 13401
set_lvar_int_to_lvar_int 147@ = 34@
set_lvar_text_label 176@s = 'MAN5_BB'
set_lvar_int_to_constant 124@ = 13421
set_lvar_int_to_var_int 148@ = $scplayer
set_lvar_text_label 178@s = 'MAN5_BC'
set_lvar_int_to_constant 125@ = 13402
set_lvar_int_to_lvar_int 149@ = 34@
set_lvar_text_label 180@s = 'MAN5_BD'
set_lvar_int_to_constant 126@ = 13426
set_lvar_int_to_var_int 150@ = $scplayer
set_lvar_text_label 182@s = 'MAN5_BE'
set_lvar_int_to_constant 127@ = 13427
set_lvar_int_to_var_int 151@ = $scplayer
set_lvar_text_label 184@s = 'MAN5_BF'
set_lvar_int_to_constant 128@ = 13428
set_lvar_int_to_var_int 152@ = $scplayer
set_lvar_text_label 186@s = 'MAN5_BG'
set_lvar_int_to_constant 129@ = 13403
set_lvar_int_to_lvar_int 153@ = 34@
set_lvar_text_label 188@s = 'MAN5_BH'
set_lvar_int_to_constant 130@ = 13429
set_lvar_int_to_var_int 154@ = $scplayer
set_lvar_text_label 190@s = 'MAN5_BJ'
set_lvar_int_to_constant 131@ = 13430
set_lvar_int_to_var_int 155@ = $scplayer
set_lvar_text_label 192@s = 'MAN5_BK'
set_lvar_int_to_constant 132@ = 13431
set_lvar_int_to_var_int 156@ = $scplayer
set_lvar_text_label 194@s = 'MAN5_BL'
set_lvar_int_to_constant 133@ = 13432
set_lvar_int_to_var_int 157@ = $scplayer
set_lvar_text_label 196@s = 'MAN5_BM'
set_lvar_int_to_constant 134@ = 13433
set_lvar_int_to_var_int 158@ = $scplayer
set_lvar_text_label 198@s = 'MAN5_BN'
set_lvar_int_to_constant 135@ = 13404
set_lvar_int_to_lvar_int 159@ = 34@
set_lvar_text_label 200@s = 'MAN5_CA'
set_lvar_int_to_constant 136@ = 13422
set_lvar_int_to_var_int 160@ = $scplayer
set_lvar_text_label 202@s = 'MAN5_CB'
set_lvar_int_to_constant 137@ = 13423
set_lvar_int_to_var_int 161@ = $scplayer
set_lvar_text_label 204@s = 'MAN5_DA'
set_lvar_int_to_constant 138@ = 13406
set_lvar_int_to_lvar_int 162@ = 34@
set_lvar_text_label 206@s = 'MAN5_DB'
set_lvar_int_to_constant 139@ = 13407
set_lvar_int_to_lvar_int 163@ = 34@
set_lvar_text_label 208@s = 'MAN5_DC'
set_lvar_int_to_constant 140@ = 13408
set_lvar_int_to_lvar_int 164@ = 34@
set_lvar_text_label 210@s = 'MAN5_DD'
set_lvar_int_to_constant 141@ = 13409
set_lvar_int_to_lvar_int 165@ = 34@
set_lvar_text_label 212@s = 'MAN5_EA'
set_lvar_int_to_constant 142@ = 13424
set_lvar_int_to_var_int 166@ = $scplayer
set_lvar_text_label 214@s = 'MAN5_EB'
set_lvar_int_to_constant 143@ = 13425
set_lvar_int_to_var_int 167@ = $scplayer
set_player_control $player1 {state} True
switch_widescreen False
do_fade 0 {direction} Fade.In
68@ = 0
47@ = 0
69@ = 0
54@ = 0
TIMERB = 0
print_now 'MAN5_G0' {time} 7500 {flag} 1

:MANSON5_1350
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_1966
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSON5_1399
goto @MANSON5_12906
goto @MANSON5_1477

:MANSON5_1399
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @MANSON5_1477
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_1477
67@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 34@ {vehicle} 67@
goto_if_false @MANSON5_1477
set_car_coordinates 67@ {x} -127.1875 {y} -1260.738 {z} 2.0469

:MANSON5_1477
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MANSON5_1851
$x, $y, $z = get_char_coordinates 34@
$distance = get_distance_between_coords_2d -12.2064 {fromY} -1117.876 {toX} $x {toZ} $y
if 
  75.0 > $distance
goto_if_false @MANSON5_1812
clear_mission_audio MissionAudioSlot.Slot1
mark_car_as_no_longer_needed 45@
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 471
do_fade 0 {direction} Fade.Out

:MANSON5_1596
if 
  get_fading_status 
goto_if_false @MANSON5_1620
wait 0
goto @MANSON5_1596

:MANSON5_1620
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_1674
warp_char_from_car_to_coord $scplayer {x} -13.4832 {y} -1139.642 {z} 7.0664
goto @MANSON5_1694

:MANSON5_1674
set_char_coordinates $scplayer {x} -13.4832 {y} -1139.642 {z} 7.0664

:MANSON5_1694
set_char_heading $scplayer {heading} 347.9809
if 
  not is_char_dead 34@
goto_if_false @MANSON5_1798
remove_char_from_group 34@
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_1768
warp_char_from_car_to_coord 34@ {x} -11.4883 {y} -1140.9709 {z} 6.8764
goto @MANSON5_1788

:MANSON5_1768
set_char_coordinates 34@ {x} -11.4883 {y} -1140.9709 {z} 6.8764

:MANSON5_1788
set_char_heading 34@ {heading} 359.6364

:MANSON5_1798
goto @MANSON5_3411
goto @MANSON5_1844

:MANSON5_1812
if 
  2 > 68@
goto_if_false @MANSON5_1837
68@ = 2

:MANSON5_1837
gosub @MANSON5_2222

:MANSON5_1844
goto @MANSON5_1905

:MANSON5_1851
gosub @MANSON5_2001
gosub @MANSON5_2222
gosub @MANSON5_2493
gosub @MANSON5_2612
if 
  TIMERB > 8000
goto_if_false @MANSON5_1905
gosub @MANSON5_11710

:MANSON5_1905
65@ = get_area_visible 
if 
  65@ <> 0
goto_if_false @MANSON5_1959
clear_prints 
freeze_char_position 34@ {state} True
remove_blip 50@
remove_blip 37@
remove_char_from_group 34@
goto @MANSON5_3252

:MANSON5_1959
goto @MANSON5_1994

:MANSON5_1966
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_1994
goto @MANSON5_1350

:MANSON5_2001
switch_start 66@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2220 {caseNum1} 0 {caseLabel1} @MANSON5_2064 {caseNum2} 1 {caseLabel2} @MANSON5_2166 {caseNum3} -1 {caseLabel3} @MANSON5_2220 {caseNum4} -1 {caseLabel4} @MANSON5_2220 {caseNum5} -1 {caseLabel5} @MANSON5_2220 {caseNum6} -1 {caseLabel6} @MANSON5_2220 {caseNum7} -1 {caseLabel7} @MANSON5_2220

:MANSON5_2064
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_2159
67@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 34@ {vehicle} 67@
goto_if_false @MANSON5_2159
if 
  $m3_sweets_health == 1
goto_if_false @MANSON5_2147
set_up_skip -126.6673 {y} -1260.804 {z} 2.0469 {heading} 280.0

:MANSON5_2147
remove_blip 37@
66@ += 1

:MANSON5_2159
goto @MANSON5_2220

:MANSON5_2166
if 
  not is_char_in_any_car 34@
goto_if_false @MANSON5_2213
clear_skip 
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
66@ -= 1

:MANSON5_2213
goto @MANSON5_2220

:MANSON5_2220
return 

:MANSON5_2222
switch_start 68@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2491 {caseNum1} 0 {caseLabel1} @MANSON5_2285 {caseNum2} 1 {caseLabel2} @MANSON5_2388 {caseNum3} 2 {caseLabel3} @MANSON5_2421 {caseNum4} 3 {caseLabel4} @MANSON5_2458 {caseNum5} -1 {caseLabel5} @MANSON5_2491 {caseNum6} -1 {caseLabel6} @MANSON5_2491 {caseNum7} -1 {caseLabel7} @MANSON5_2491

:MANSON5_2285
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$x, $y, $z = get_char_coordinates 34@
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  $distance > 75.0
goto_if_false @MANSON5_2381
print_now 'MAN5_G1' {time} 8000 {flag} 1
TIMERA = 0
68@ += 1

:MANSON5_2381
goto @MANSON5_2491

:MANSON5_2388
if 
  TIMERA > 20000
goto_if_false @MANSON5_2414
68@ -= 1

:MANSON5_2414
goto @MANSON5_2491

:MANSON5_2421
print_now 'MAN5_G2' {time} 8000 {flag} 1
TIMERA = 0
68@ += 1
goto @MANSON5_2491

:MANSON5_2458
if 
  TIMERA > 20000
goto_if_false @MANSON5_2484
68@ = 0

:MANSON5_2484
goto @MANSON5_2491

:MANSON5_2491
return 

:MANSON5_2493
if 
  47@ == 0
goto_if_false @MANSON5_2610
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  not is_car_dead 45@
goto_if_false @MANSON5_2610
$x, $y, $z = get_car_coordinates 45@
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  $distance > 150.0
goto_if_false @MANSON5_2610
mark_car_as_no_longer_needed 45@
mark_model_as_no_longer_needed 424
47@ += 1

:MANSON5_2610
return 

:MANSON5_2612
switch_start 69@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSON5_3250 {caseNum1} 0 {caseLabel1} @MANSON5_2675 {caseNum2} 1 {caseLabel2} @MANSON5_2755 {caseNum3} 2 {caseLabel3} @MANSON5_2806 {caseNum4} -1 {caseLabel4} @MANSON5_3250 {caseNum5} -1 {caseLabel5} @MANSON5_3250 {caseNum6} -1 {caseLabel6} @MANSON5_3250 {caseNum7} -1 {caseLabel7} @MANSON5_3250

:MANSON5_2675
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @MANSON5_2748
load_special_character 2 {modelName} 'OGLOC'
request_model 219
request_model 582
request_model 539
69@ += 1

:MANSON5_2748
goto @MANSON5_3250

:MANSON5_2755
if or
  not has_special_character_loaded 2
  not has_model_loaded 219
  not has_model_loaded 582
  not has_model_loaded 539
goto_if_false @MANSON5_2799
goto @MANSON5_3250
goto @MANSON5_2806

:MANSON5_2799
69@ += 1

:MANSON5_2806
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @MANSON5_3243
35@ = create_char PedType.Special {modelId} 291 {x} -6.499 {y} -1109.111 {z} 6.5441
set_char_heading 35@ {heading} 333.1959
freeze_char_position 35@ {state} True
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 35@ {handleOrTemplate} 52@
set_char_never_targetted 35@ {state} True
set_char_cant_be_dragged_out 35@ {state} True
73@ = create_char PedType.Mission1 {modelId} 219 {x} -7.174 {y} -1108.2 {z} 6.4475
set_char_heading 73@ {heading} 210.4687
freeze_char_position 73@ {state} True
set_char_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
74@ = create_car 582 {x} -12.3019 {y} -1108.927 {z} 6.837
set_car_heading 74@ {heading} 153.1079
freeze_car_position 74@ {state} True
change_car_colour 74@ {color1} 1 {color2} 1
set_car_proofs 74@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
39@ = create_car 539 {x} -7.4398 {y} -1116.85 {z} 7.0583
set_car_heading 39@ {heading} 278.5895
freeze_car_position 39@ {state} True
change_car_colour 39@ {color1} 1 {color2} 1
set_car_proofs 39@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
40@ = create_car 539 {x} -4.862 {y} -1120.453 {z} 7.0799
set_car_heading 40@ {heading} 266.0038
freeze_car_position 40@ {state} True
change_car_colour 40@ {color1} 1 {color2} 1
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
41@ = create_car 539 {x} -7.0309 {y} -1111.9091 {z} 6.726
set_car_heading 41@ {heading} 269.4002
freeze_car_position 41@ {state} True
change_car_colour 41@ {color1} 8 {color2} 0
set_car_proofs 41@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
69@ += 1

:MANSON5_3243
goto @MANSON5_3250

:MANSON5_3250
return 

:MANSON5_3252
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_3376
65@ = get_char_area_visible $scplayer
if 
  65@ == 0
goto_if_false @MANSON5_3369
freeze_char_position 34@ {state} False
set_char_never_leaves_group 34@ {state} True
set_group_member 51@ {handle} 34@
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
50@ = add_blip_for_coord -12.2064 {y} -1117.876 {z} 7.0705
goto @MANSON5_1350

:MANSON5_3369
goto @MANSON5_3404

:MANSON5_3376
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_3404
goto @MANSON5_3252

:MANSON5_3411
if 
  3 > 69@
goto_if_false @MANSON5_3447
wait 0
gosub @MANSON5_2612
goto @MANSON5_3411

:MANSON5_3447
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_car 45@
request_model 484
request_model 453
request_model #WATERJUMPX2
request_car_recording 700
request_car_recording 701

:MANSON5_3487
if or
  not has_model_loaded 484
  not has_model_loaded 453
  not has_model_loaded #WATERJUMPX2
  not has_car_recording_been_loaded 700
  not has_car_recording_been_loaded 701
goto_if_false @MANSON5_3534
wait 0
goto @MANSON5_3487

:MANSON5_3534
if 
  not is_char_dead 35@
goto_if_false @MANSON5_3557
freeze_char_position 35@ {state} False

:MANSON5_3557
if 
  not is_char_dead 73@
goto_if_false @MANSON5_3580
freeze_char_position 73@ {state} False

:MANSON5_3580
if 
  not is_car_dead 74@
goto_if_false @MANSON5_3603
freeze_car_position 74@ {state} False

:MANSON5_3603
if 
  not is_car_dead 39@
goto_if_false @MANSON5_3626
freeze_car_position 39@ {state} False

:MANSON5_3626
if 
  not is_car_dead 40@
goto_if_false @MANSON5_3649
freeze_car_position 40@ {state} False

:MANSON5_3649
if 
  not is_car_dead 41@
goto_if_false @MANSON5_3672
freeze_car_position 41@ {state} False

:MANSON5_3672
if 
  $m3_sweets_health == 0
goto_if_false @MANSON5_3697
$m3_sweets_health += 1

:MANSON5_3697
set_fixed_camera_position -5.0753 {y} -1108.265 {z} 7.9567 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -6.004 {y} -1108.63 {z} 7.8925 {switchStyle} SwitchType.JumpCut
53@ = 0
clear_area -12.3019 {y} -1108.927 {z} 6.837 {radius} 500.0 {clearParticles} True
clear_skip 
118@ = 6
119@ = 18
do_fade 0 {direction} Fade.In
skip_cutscene_start_internal @MANSON5_4643
TIMERA = 0

:MANSON5_3815
if 
  2000 > TIMERA
goto_if_false @MANSON5_3852
wait 0
gosub @MANSON5_11710
goto @MANSON5_3815

:MANSON5_3852
camera_reset_new_scriptables 
camera_persist_track True
camera_set_vector_track -6.004 {fromY} -1108.63 {fromZ} 7.8925 {toX} -5.5642 {toY} -1108.835 {toZ} 7.8925 {time} 2000 {ease} True
if and
  not is_char_dead 35@
  not is_char_dead 34@
  not is_char_dead 73@
goto_if_false @MANSON5_3937
task_turn_char_to_face_char 35@ {target} 34@
task_turn_char_to_face_char 73@ {target} 34@

:MANSON5_3937
TIMERA = 0

:MANSON5_3944
if 
  1800 > TIMERA
goto_if_false @MANSON5_3981
wait 0
gosub @MANSON5_11710
goto @MANSON5_3944

:MANSON5_3981
if 
  not is_car_dead 39@
goto_if_false @MANSON5_4052
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -8.0333 {y} -1118.52 {z} 7.0531 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 39@ {time} -2
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@

:MANSON5_4052
if and
  not is_char_dead 34@
  not is_car_dead 40@
goto_if_false @MANSON5_4128
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -4.9313 {y} -1122.054 {z} 7.0188 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 40@ {time} -2
close_sequence_task 49@
perform_sequence_task 34@ {sequence} 49@
clear_sequence_task 49@

:MANSON5_4128
TIMERA = 0

:MANSON5_4135
if 
  250 > TIMERA
goto_if_false @MANSON5_4172
wait 0
gosub @MANSON5_11710
goto @MANSON5_4135

:MANSON5_4172
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4203
task_enter_car_as_driver 35@ {vehicle} 41@ {time} -2

:MANSON5_4203
48@ = 0

:MANSON5_4210
if 
  48@ == 0
goto_if_false @MANSON5_4303
wait 0
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4289
if 
  is_char_in_car 35@ {vehicle} 41@
goto_if_false @MANSON5_4289
48@ = 1
set_car_forward_speed 41@ {forwardSpeed} 8.0

:MANSON5_4289
gosub @MANSON5_11710
goto @MANSON5_4210

:MANSON5_4303
55@, 56@, 57@ = get_active_camera_coordinates 
58@, 59@, 60@ = get_active_camera_point_at 
camera_reset_new_scriptables 
set_fixed_camera_position 55@ {y} 56@ {z} 57@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 58@ {y} 59@ {z} 60@ {switchStyle} SwitchType.JumpCut
TIMERA = 0
TIMERB = 0
48@ = 0

:MANSON5_4387
if 
  4500 > TIMERA
goto_if_false @MANSON5_4592
wait 0
55@ += 0.0085
56@ -= 0.05
58@ += 0.0085
59@ -= 0.05
set_fixed_camera_position 55@ {y} 56@ {z} 57@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 58@ {y} 59@ {z} 60@ {switchStyle} SwitchType.JumpCut
if and
  TIMERB > 800
  48@ == 0
goto_if_false @MANSON5_4578
if 
  not is_car_dead 41@
goto_if_false @MANSON5_4578
set_car_forward_speed 41@ {forwardSpeed} 0.0
set_car_coordinates 41@ {x} -15.191 {y} -1107.97 {z} 7.0385
set_car_heading 41@ {heading} 345.91
48@ += 1

:MANSON5_4578
gosub @MANSON5_11710
goto @MANSON5_4387

:MANSON5_4592
TIMERA = 0

:MANSON5_4599
if 
  1800 > TIMERA
goto_if_false @MANSON5_4636
wait 0
gosub @MANSON5_11710
goto @MANSON5_4599

:MANSON5_4636
53@ = 1

:MANSON5_4643
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_lvar_text_label 168@s = 'MAN5_FA'
set_lvar_int_to_constant 120@ = 13410
set_lvar_text_label 170@s = 'MAN5_FB'
set_lvar_int_to_constant 121@ = 13411
set_lvar_text_label 172@s = 'MAN5_FC'
set_lvar_int_to_constant 122@ = 13412
set_lvar_text_label 174@s = 'MAN5_FD'
set_lvar_int_to_constant 123@ = 13413
set_lvar_text_label 176@s = 'MAN5_FE'
set_lvar_int_to_constant 124@ = 13414
set_lvar_text_label 178@s = 'MAN5_FF'
set_lvar_int_to_constant 125@ = 13415
set_lvar_text_label 180@s = 'MAN5_FG'
set_lvar_int_to_constant 126@ = 13416
set_lvar_text_label 182@s = 'MAN5_FH'
set_lvar_int_to_constant 127@ = 13417
set_lvar_text_label 184@s = 'MAN5_FJ'
set_lvar_int_to_constant 128@ = 13418
118@ = 8
119@ = 0
if 
  53@ == 0
goto_if_false @MANSON5_5056
do_fade 0 {direction} Fade.Out
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4942
if 
  not is_char_in_car 35@ {vehicle} 41@
goto_if_false @MANSON5_4942
clear_char_tasks 35@
warp_char_into_car 35@ {vehicle} 41@

:MANSON5_4942
if and
  not is_char_dead 34@
  not is_car_dead 40@
goto_if_false @MANSON5_4995
if 
  not is_char_in_car 34@ {vehicle} 40@
goto_if_false @MANSON5_4995
clear_char_tasks 34@
warp_char_into_car 34@ {vehicle} 40@

:MANSON5_4995
if and
  not is_char_dead $scplayer
  not is_car_dead 39@
goto_if_false @MANSON5_5048
if 
  not is_char_in_car $scplayer {vehicle} 39@
goto_if_false @MANSON5_5048
clear_char_tasks $scplayer
warp_char_into_car $scplayer {vehicle} 39@

:MANSON5_5048
camera_reset_new_scriptables 
do_fade 0 {direction} Fade.In

:MANSON5_5056
print_now 'MAN5_G4' {time} 8000 {flag} 1
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead 73@
goto_if_false @MANSON5_5130
freeze_char_position 73@ {state} False
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_char_as_no_longer_needed 73@

:MANSON5_5130
if 
  not is_car_dead 74@
goto_if_false @MANSON5_5173
freeze_car_position 74@ {state} False
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 74@

:MANSON5_5173
mark_model_as_no_longer_needed 219
mark_model_as_no_longer_needed 582
if and
  not is_car_dead 41@
  not is_car_dead 40@
goto_if_false @MANSON5_5285
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_car_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
sync_water 
start_playback_recorded_car 41@ {path} 700
start_playback_recorded_car 40@ {path} 701
remove_blip 50@
remove_blip 37@
38@ = add_blip_for_car 41@
37@ = add_blip_for_car 40@
set_blip_as_friendly 37@ {state} True

:MANSON5_5285
if and
  not is_char_dead 35@
  not is_char_dead 34@
  not is_car_dead 39@
goto_if_false @MANSON5_5356
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_5356
75@ = create_car 484 {x} 64.6248 {y} -1577.02 {z} 1.0
set_car_heading 75@ {heading} 120.3362
anchor_boat 75@ {state} True
76@ = create_car 484 {x} 33.6099 {y} -1568.462 {z} 1.0
set_car_heading 76@ {heading} 284.2679
anchor_boat 76@ {state} True
77@ = create_car 453 {x} 44.502 {y} -1623.984 {z} 1.0
set_car_heading 77@ {heading} 75.0
anchor_boat 77@ {state} True
78@ = create_car 484 {x} 27.4441 {y} -1654.804 {z} 1.0
set_car_heading 78@ {heading} 60.0
anchor_boat 78@ {state} True
79@ = create_car 484 {x} 65.1404 {y} -1664.87 {z} 1.0
set_car_heading 79@ {heading} 95.0
anchor_boat 79@ {state} True
80@ = create_car 453 {x} 53.4007 {y} -1694.957 {z} 1.0
set_car_heading 80@ {heading} 231.9938
anchor_boat 80@ {state} True
81@ = create_car 453 {x} 33.4799 {y} -1697.462 {z} 1.0
set_car_heading 81@ {heading} 106.8489
anchor_boat 81@ {state} True
82@ = create_car 484 {x} 57.1376 {y} -1767.301 {z} 1.0
set_car_heading 82@ {heading} 286.5185
anchor_boat 82@ {state} True
83@ = create_object_no_offset #WATERJUMPX2 {x} 137.9184 {y} -1895.0601 {z} 0.9
set_object_heading 83@ {heading} 235.0
95@ = 0
97@ = 0
TIMERA = 0

:MANSON5_5730
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_5978
if 
  not is_char_dead 35@
goto_if_false @MANSON5_5943
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @MANSON5_8993
gosub @MANSON5_9399
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  $distance >= 240.0
goto_if_false @MANSON5_5874
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_5874
if 
  is_char_in_area_3d $scplayer {leftBottomX} 820.3243 {leftBottomY} -1918.42 {leftBottomZ} 11.8624 {rightTopX} 852.5646 {rightTopY} -1894.725 {rightTopZ} 13.0 {drawSphere} False
goto_if_false @MANSON5_5929
goto @MANSON5_6013

:MANSON5_5929
gosub @MANSON5_11710
goto @MANSON5_5971

:MANSON5_5943
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_5971
goto @MANSON5_6006

:MANSON5_5978
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_6006
goto @MANSON5_5730

:MANSON5_6013
do_fade 0 {direction} Fade.Out
set_radio_channel RadioChannel.UserTracks
set_ped_density_multiplier 0.3
if 
  not is_car_dead 39@
goto_if_false @MANSON5_6094
set_car_health 39@ {health} 2000
set_car_forward_speed 39@ {forwardSpeed} 0.0
set_car_coordinates 39@ {x} 824.9831 {y} -1843.146 {z} 11.6654
set_car_heading 39@ {heading} 192.0245

:MANSON5_6094
if 
  not is_car_dead 40@
goto_if_false @MANSON5_6176
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_6131
stop_playback_recorded_car 40@

:MANSON5_6131
set_car_forward_speed 40@ {forwardSpeed} 0.0
set_car_coordinates 40@ {x} 846.0862 {y} -1842.421 {z} 11.6367
set_car_heading 40@ {heading} 170.999
remove_blip 37@

:MANSON5_6176
if 
  not is_car_dead 41@
goto_if_false @MANSON5_6258
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_6213
stop_playback_recorded_car 41@

:MANSON5_6213
set_car_forward_speed 41@ {forwardSpeed} 0.0
set_car_coordinates 41@ {x} 832.5709 {y} -2045.707 {z} 11.8672
set_car_heading 41@ {heading} 180.0
remove_blip 38@

:MANSON5_6258
mark_char_as_no_longer_needed 73@
48@ = 0

:MANSON5_6270
if 
  8 > 48@
goto_if_false @MANSON5_6311
mark_car_as_no_longer_needed 75@(48@,8i)
48@ += 1
goto @MANSON5_6270

:MANSON5_6311
mark_object_as_no_longer_needed 83@
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed #WATERJUMPX2
remove_car_recording 700
remove_car_recording 701
request_model 571
request_car_recording 702
request_car_recording 703
request_car_recording 704
request_car_recording 705

:MANSON5_6366
if or
  not has_model_loaded 571
  not has_car_recording_been_loaded 702
  not has_car_recording_been_loaded 703
  not has_car_recording_been_loaded 704
  not has_car_recording_been_loaded 705
goto_if_false @MANSON5_6413
wait 0
goto @MANSON5_6366

:MANSON5_6413
42@ = create_car 571 {x} 832.4061 {y} -2046.025 {z} 11.8672
set_car_heading 42@ {heading} 343.6256
43@ = create_car 571 {x} 835.5082 {y} -2047.978 {z} 11.8672
set_car_heading 43@ {heading} 0.0
44@ = create_car 571 {x} 839.2866 {y} -2050.322 {z} 11.8672
set_car_heading 44@ {heading} 21.8433
freeze_car_position 44@ {state} True
103@ = 15.0
104@ = 10.0
102@ = 15.0
105@ = 835.5082
106@ = -2047.978
107@ = 11.8672
gosub @MANSON5_10491
if 
  not is_car_dead 41@
goto_if_false @MANSON5_6626
if 
  not is_playback_going_on_for_car 41@
goto_if_false @MANSON5_6626
start_playback_recorded_car 41@ {path} 702

:MANSON5_6626
switch_widescreen True
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.In
TIMERA = 0

:MANSON5_6650
if 
  1000 > TIMERA
goto_if_false @MANSON5_6687
wait 0
gosub @MANSON5_10491
goto @MANSON5_6650

:MANSON5_6687
53@ = 0
skip_cutscene_start_internal @MANSON5_7376
TIMERA = 0

:MANSON5_6708
if 
  3400 > TIMERA
goto_if_false @MANSON5_6745
wait 0
gosub @MANSON5_10491
goto @MANSON5_6708

:MANSON5_6745
if 
  not is_car_dead 39@
goto_if_false @MANSON5_6791
set_car_coordinates 39@ {x} 827.2987 {y} -2036.851 {z} 11.8672
set_car_heading 39@ {heading} 176.431

:MANSON5_6791
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_6834
warp_char_from_car_to_coord $scplayer {x} 828.7999 {y} -2036.757 {z} 11.8672
goto @MANSON5_6854

:MANSON5_6834
set_char_coordinates $scplayer {x} 828.7999 {y} -2036.757 {z} 11.8672

:MANSON5_6854
set_char_heading $scplayer {heading} 129.8786
if 
  not is_car_dead 40@
goto_if_false @MANSON5_6910
set_car_coordinates 40@ {x} 846.0646 {y} -2039.7371 {z} 11.8672
set_car_heading 40@ {heading} 162.7406

:MANSON5_6910
if 
  not is_char_dead 34@
goto_if_false @MANSON5_6999
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_6969
warp_char_from_car_to_coord 34@ {x} 844.8756 {y} -2038.455 {z} 11.8672
goto @MANSON5_6989

:MANSON5_6969
set_char_coordinates 34@ {x} 844.8756 {y} -2038.455 {z} 11.8672

:MANSON5_6989
set_char_heading 34@ {heading} 132.7607

:MANSON5_6999
48@ = 0

:MANSON5_7006
if 
  48@ == 0
goto_if_false @MANSON5_7081
wait 0
if 
  not is_car_dead 41@
goto_if_false @MANSON5_7067
if 
  not is_playback_going_on_for_car 41@
goto_if_false @MANSON5_7067
48@ = 1

:MANSON5_7067
gosub @MANSON5_10491
goto @MANSON5_7006

:MANSON5_7081
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7138
49@ = open_sequence_task 
task_leave_any_car -1
task_enter_car_as_driver -1 {vehicle} 44@ {time} -2
close_sequence_task 49@
perform_sequence_task 35@ {sequence} 49@
clear_sequence_task 49@

:MANSON5_7138
48@ = 0

:MANSON5_7145
if 
  48@ == 0
goto_if_false @MANSON5_7228
wait 0
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7214
if 
  is_char_in_car 35@ {vehicle} 44@
goto_if_false @MANSON5_7214
48@ = 1

:MANSON5_7214
gosub @MANSON5_10491
goto @MANSON5_7145

:MANSON5_7228
if 
  not is_car_dead 44@
goto_if_false @MANSON5_7268
if 
  not is_playback_going_on_for_car 44@
goto_if_false @MANSON5_7268
start_playback_recorded_car 44@ {path} 703

:MANSON5_7268
if 
  not is_car_dead 42@
goto_if_false @MANSON5_7294
task_enter_car_as_driver $scplayer {vehicle} 42@ {time} -2

:MANSON5_7294
if and
  not is_char_dead 34@
  not is_car_dead 43@
goto_if_false @MANSON5_7325
task_enter_car_as_driver 34@ {vehicle} 43@ {time} -2

:MANSON5_7325
TIMERA = 0

:MANSON5_7332
if 
  4500 > TIMERA
goto_if_false @MANSON5_7369
wait 0
gosub @MANSON5_10491
goto @MANSON5_7332

:MANSON5_7369
53@ = 1

:MANSON5_7376
skip_cutscene_end 
if 
  53@ == 0
goto_if_false @MANSON5_7402
do_fade 0 {direction} Fade.Out

:MANSON5_7402
if 
  not is_car_dead 42@
goto_if_false @MANSON5_7481
if 
  not is_char_in_car $scplayer {vehicle} 42@
goto_if_false @MANSON5_7481
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_7473
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7473
warp_char_into_car $scplayer {vehicle} 42@

:MANSON5_7481
if 
  not is_car_dead 39@
goto_if_false @MANSON5_7527
set_car_coordinates 39@ {x} 827.2987 {y} -2036.851 {z} 11.8672
set_car_heading 39@ {heading} 176.431

:MANSON5_7527
if and
  not is_char_dead 34@
  not is_car_dead 43@
goto_if_false @MANSON5_7611
if 
  not is_char_in_car 34@ {vehicle} 43@
goto_if_false @MANSON5_7611
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_7603
warp_char_from_car_to_coord 34@ {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7603
warp_char_into_car 34@ {vehicle} 43@

:MANSON5_7611
if 
  not is_car_dead 40@
goto_if_false @MANSON5_7657
set_car_coordinates 40@ {x} 846.0646 {y} -2039.7371 {z} 11.8672
set_car_heading 40@ {heading} 162.7406

:MANSON5_7657
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7748
freeze_car_position 44@ {state} False
if 
  not is_char_in_car 35@ {vehicle} 44@
goto_if_false @MANSON5_7748
if 
  is_char_in_any_car 35@
goto_if_false @MANSON5_7740
warp_char_from_car_to_coord 35@ {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7740
warp_char_into_car 35@ {vehicle} 44@

:MANSON5_7748
if 
  not is_car_dead 41@
goto_if_false @MANSON5_7785
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_7785
skip_to_end_and_stop_playback_recorded_car 41@

:MANSON5_7785
95@ = 0
97@ = 0
94@ = 0.0
112@ = 0
117@ = 0
if 
  not is_car_dead 44@
goto_if_false @MANSON5_7876
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_7860
stop_playback_recorded_car 44@

:MANSON5_7860
start_playback_recorded_car 44@ {path} 704
38@ = add_blip_for_car 44@

:MANSON5_7876
if 
  not is_car_dead 43@
goto_if_false @MANSON5_7931
if 
  not is_playback_going_on_for_car 43@
goto_if_false @MANSON5_7916
start_playback_recorded_car 43@ {path} 705

:MANSON5_7916
37@ = add_blip_for_car 43@
set_blip_as_friendly 37@ {state} True

:MANSON5_7931
118@ = 10
119@ = 4
do_fade 0 {direction} Fade.In
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'MAN5_G5' {time} 8000 {flag} 1
TIMERA = 0

:MANSON5_7989
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_8244
if 
  not is_char_dead 35@
goto_if_false @MANSON5_8209
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @MANSON5_9742
gosub @MANSON5_10148
gosub @MANSON5_10713
gosub @MANSON5_11446
if 
  54@ == 1
goto_if_false @MANSON5_8099
goto @MANSON5_8279
goto @MANSON5_8195

:MANSON5_8099
if 
  not is_char_dead 35@
goto_if_false @MANSON5_8195
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  $distance >= 130.0
goto_if_false @MANSON5_8195
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_8195
gosub @MANSON5_11710
goto @MANSON5_8237

:MANSON5_8209
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_8237
goto @MANSON5_8272

:MANSON5_8244
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_8272
goto @MANSON5_7989

:MANSON5_8279
do_fade 0 {direction} Fade.Out
set_radio_channel RadioChannel.UserTracks
remove_blip 37@
remove_blip 38@
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_8333
84@ = get_car_char_is_using $scplayer
set_car_forward_speed 84@ {forwardSpeed} 0.0

:MANSON5_8333
if 
  not is_char_dead 34@
goto_if_false @MANSON5_8359
mark_char_as_no_longer_needed 34@
mark_model_as_no_longer_needed 183

:MANSON5_8359
if 
  not is_car_dead 43@
goto_if_false @MANSON5_8401
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_8396
stop_playback_recorded_car 43@

:MANSON5_8396
mark_car_as_no_longer_needed 43@

:MANSON5_8401
set_fixed_camera_position 1045.371 {y} -1221.84 {z} 18.9362 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1046.241 {y} -1221.447 {z} 18.6378 {switchStyle} SwitchType.JumpCut
clear_area_of_cars 1071.504 {leftBottomY} -1195.558 {leftBottomZ} 18.6451 {rightTopX} 1044.942 {rightTopY} -1242.4771 {rightTopZ} 14.9051
if 
  not is_car_dead 44@
goto_if_false @MANSON5_8531
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_8531
unpause_playback_recorded_car 44@
set_playback_speed 44@ {speed} 1.0

:MANSON5_8531
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.In

:MANSON5_8549
if 
  get_fading_status 
goto_if_false @MANSON5_8573
wait 0
goto @MANSON5_8549

:MANSON5_8573
skip_cutscene_start_internal @MANSON5_8669
48@ = 0

:MANSON5_8587
if 
  48@ == 0
goto_if_false @MANSON5_8669
wait 0
if 
  not is_car_dead 44@
goto_if_false @MANSON5_8655
if 
  not is_playback_going_on_for_car 44@
goto_if_false @MANSON5_8648
48@ = 1

:MANSON5_8648
goto @MANSON5_8662

:MANSON5_8655
48@ = 1

:MANSON5_8662
goto @MANSON5_8587

:MANSON5_8669
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSON5_8677
if 
  get_fading_status 
goto_if_false @MANSON5_8701
wait 0
goto @MANSON5_8677

:MANSON5_8701
set_area_visible 3
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BHILL5B'

:MANSON5_8725
if 
  not has_cutscene_loaded 
goto_if_false @MANSON5_8749
wait 0
goto @MANSON5_8725

:MANSON5_8749
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSON5_8758
if 
  not has_cutscene_finished 
goto_if_false @MANSON5_8782
wait 0
goto @MANSON5_8758

:MANSON5_8782
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSON5_8797
if 
  get_fading_status 
goto_if_false @MANSON5_8821
wait 0
goto @MANSON5_8797

:MANSON5_8821
set_area_visible 0
load_scene 1180.7321 {y} -1159.114 {z} 22.8578
request_collision 1180.7321 {y} -1159.114
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_8897
warp_char_from_car_to_coord $scplayer {x} 1180.7321 {y} -1159.114 {z} 22.8578
goto @MANSON5_8917

:MANSON5_8897
set_char_coordinates_no_offset $scplayer {x} 1180.7321 {y} -1159.114 {z} 22.8578

:MANSON5_8917
set_char_heading $scplayer {heading} 25.4307
TIMERA = 0

:MANSON5_8934
if 
  400 > TIMERA
goto_if_false @MANSON5_8964
wait 0
goto @MANSON5_8934

:MANSON5_8964
do_fade 500 {direction} Fade.In
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @MANSON5_12906

:MANSON5_8993
if and
  not is_car_dead 40@
  not is_char_dead 34@
goto_if_false @MANSON5_9397
if 
  95@ == 0
goto_if_false @MANSON5_9397
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_9380
if 
  locate_char_in_car_char_2d 34@ {otherChar} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @MANSON5_9096
96@ -= 0.2
goto @MANSON5_9296

:MANSON5_9096
85@, 86@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} 2.0 {yOffset} 2.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} -2.0 {yOffset} 2.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_9296
if 
  96@ > 1.0
goto_if_false @MANSON5_9334
96@ = 1.0
goto @MANSON5_9365

:MANSON5_9334
if 
  0.0 > 96@
goto_if_false @MANSON5_9365
96@ = 0.0

:MANSON5_9365
set_playback_speed 40@ {speed} 96@
goto @MANSON5_9397

:MANSON5_9380
set_car_forward_speed 40@ {forwardSpeed} 0.0
95@ = -1

:MANSON5_9397
return 

:MANSON5_9399
if 
  not is_car_dead 41@
goto_if_false @MANSON5_9740
if 
  97@ == 0
goto_if_false @MANSON5_9740
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_9723
85@, 86@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} 0.0 {yOffset} -18.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} 2.0 {yOffset} -11.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} -2.0 {yOffset} -11.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.4
goto_if_false @MANSON5_9677
98@ = 1.4
goto @MANSON5_9708

:MANSON5_9677
if 
  0.9 > 98@
goto_if_false @MANSON5_9708
98@ = 0.9

:MANSON5_9708
set_playback_speed 41@ {speed} 98@
goto @MANSON5_9740

:MANSON5_9723
set_car_forward_speed 41@ {forwardSpeed} 0.0
97@ = -1

:MANSON5_9740
return 

:MANSON5_9742
if and
  not is_car_dead 43@
  not is_char_dead 34@
goto_if_false @MANSON5_10146
if 
  95@ == 0
goto_if_false @MANSON5_10146
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_10129
if 
  locate_char_in_car_char_2d 34@ {otherChar} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @MANSON5_9845
96@ -= 0.2
goto @MANSON5_10045

:MANSON5_9845
85@, 86@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} 2.0 {yOffset} 2.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} -2.0 {yOffset} 2.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 150.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_10045
if 
  96@ > 1.05
goto_if_false @MANSON5_10083
96@ = 1.05
goto @MANSON5_10114

:MANSON5_10083
if 
  0.0 > 96@
goto_if_false @MANSON5_10114
96@ = 0.0

:MANSON5_10114
set_playback_speed 43@ {speed} 96@
goto @MANSON5_10146

:MANSON5_10129
set_car_forward_speed 43@ {forwardSpeed} 0.0
95@ = -1

:MANSON5_10146
return 

:MANSON5_10148
if 
  not is_car_dead 44@
goto_if_false @MANSON5_10489
if 
  97@ == 0
goto_if_false @MANSON5_10489
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_10472
85@, 86@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} 0.0 {yOffset} -18.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} 2.0 {yOffset} -11.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} -2.0 {yOffset} -11.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.2
goto_if_false @MANSON5_10426
98@ = 1.2
goto @MANSON5_10457

:MANSON5_10426
if 
  0.6 > 98@
goto_if_false @MANSON5_10457
98@ = 0.6

:MANSON5_10457
set_playback_speed 44@ {speed} 98@
goto @MANSON5_10489

:MANSON5_10472
set_car_forward_speed 44@ {forwardSpeed} 0.0
44@ = -1

:MANSON5_10489
return 

:MANSON5_10491
switch_start 99@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSON5_10592 {caseNum1} 0 {caseLabel1} @MANSON5_10554 {caseNum2} -1 {caseLabel2} @MANSON5_10592 {caseNum3} -1 {caseLabel3} @MANSON5_10592 {caseNum4} -1 {caseLabel4} @MANSON5_10592 {caseNum5} -1 {caseLabel5} @MANSON5_10592 {caseNum6} -1 {caseLabel6} @MANSON5_10592 {caseNum7} -1 {caseLabel7} @MANSON5_10592

:MANSON5_10554
if 
  255.0 > 103@
goto_if_false @MANSON5_10585
103@ += 0.35

:MANSON5_10585
goto @MANSON5_10592

:MANSON5_10592
110@ = cos 103@
111@ = sin 103@
set_lvar_float_to_lvar_float 108@ = 104@
mult_float_lvar_by_float_lvar 108@ *= 110@
set_lvar_float_to_lvar_float 109@ = 104@
mult_float_lvar_by_float_lvar 109@ *= 111@
set_lvar_float_to_lvar_float 100@ = 105@
add_float_lvar_to_float_lvar 100@ += 108@
set_lvar_float_to_lvar_float 101@ = 106@
add_float_lvar_to_float_lvar 101@ += 109@
set_fixed_camera_position 100@ {y} 101@ {z} 102@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 105@ {y} 106@ {z} 107@ {switchStyle} SwitchType.JumpCut
return 

:MANSON5_10713
if 
  not is_char_dead 35@
goto_if_false @MANSON5_11444
switch_start 112@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11444 {caseNum1} 0 {caseLabel1} @MANSON5_10792 {caseNum2} 1 {caseLabel2} @MANSON5_10896 {caseNum3} 2 {caseLabel3} @MANSON5_11236 {caseNum4} 3 {caseLabel4} @MANSON5_11298 {caseNum5} 4 {caseLabel5} @MANSON5_11362 {caseNum6} -1 {caseLabel6} @MANSON5_11444 {caseNum7} -1 {caseLabel7} @MANSON5_11444

:MANSON5_10792
if 
  locate_char_in_car_2d 35@ {x} 748.4916 {y} -1812.361 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_10889
if 
  not is_line_of_sight_clear $player_x {fromY} $player_y {fromZ} $player_z {toX} 748.4916 {toY} -1812.361 {toZ} 12.0297 {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @MANSON5_10877

:MANSON5_10877
request_model 588
112@ += 1

:MANSON5_10889
goto @MANSON5_11444

:MANSON5_10896
if 
  locate_char_in_car_2d 35@ {x} 662.4983 {y} -1791.844 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11229
if 
  has_model_loaded 588
goto_if_false @MANSON5_11030
if 
  not is_line_of_sight_clear $player_x {fromY} $player_y {fromZ} $player_z {toX} 532.9616 {toY} -1768.656 {toZ} 4.698 {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @MANSON5_11030
114@ = create_car 588 {x} 532.9616 {y} -1768.656 {z} 4.698
set_car_heading 114@ {heading} 270.0

:MANSON5_11030
switch_roads_off 226.1833 {leftBottomY} -1631.007 {leftBottomZ} 40.0 {rightTopX} 546.4532 {rightTopY} -1423.991 {rightTopZ} 12.0
switch_roads_off 510.3661 {leftBottomY} -1431.656 {leftBottomZ} 10.0 {rightTopX} 645.8312 {rightTopY} -1387.312 {rightTopZ} 20.0
switch_roads_off 646.6142 {leftBottomY} -1389.016 {leftBottomZ} 10.0 {rightTopX} 620.9656 {rightTopY} -1310.468 {rightTopZ} 20.0
switch_roads_off 620.9656 {leftBottomY} -1310.468 {leftBottomZ} 10.0 {rightTopX} 947.811 {rightTopY} -1335.012 {rightTopZ} 20.0
switch_roads_off 948.2631 {leftBottomY} -1335.406 {leftBottomZ} 10.0 {rightTopX} 934.2357 {rightTopY} -1229.939 {rightTopZ} 20.0
switch_roads_off 804.0421 {leftBottomY} -1329.191 {leftBottomZ} 10.0 {rightTopX} 789.3583 {rightTopY} -1159.0081 {rightTopZ} 24.0
112@ += 1

:MANSON5_11229
goto @MANSON5_11444

:MANSON5_11236
if 
  locate_char_in_car_2d 35@ {x} 394.1295 {y} -1801.1281 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11291
mark_model_as_no_longer_needed 588
mark_car_as_no_longer_needed 114@
112@ += 1

:MANSON5_11291
goto @MANSON5_11444

:MANSON5_11298
if 
  locate_char_in_car_2d 35@ {x} 1030.7581 {y} -1223.58 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11355
pause_playback_recorded_car 44@
112@ += 1
goto @MANSON5_11362

:MANSON5_11355
goto @MANSON5_11444

:MANSON5_11362
if 
  not is_char_dead 35@
goto_if_false @MANSON5_11437
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  40.0 >= $distance
goto_if_false @MANSON5_11437
54@ = 1

:MANSON5_11437
goto @MANSON5_11444

:MANSON5_11444
return 

:MANSON5_11446
switch_start 117@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11708 {caseNum1} 0 {caseLabel1} @MANSON5_11509 {caseNum2} 1 {caseLabel2} @MANSON5_11570 {caseNum3} -1 {caseLabel3} @MANSON5_11708 {caseNum4} -1 {caseLabel4} @MANSON5_11708 {caseNum5} -1 {caseLabel5} @MANSON5_11708 {caseNum6} -1 {caseLabel6} @MANSON5_11708 {caseNum7} -1 {caseLabel7} @MANSON5_11708

:MANSON5_11509
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 1064.547 {toZ} -1218.083
if 
  250.0 > $distance
goto_if_false @MANSON5_11563
request_model 482
117@ += 1

:MANSON5_11563
goto @MANSON5_11708

:MANSON5_11570
if 
  has_model_loaded 482
goto_if_false @MANSON5_11701
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 1064.547 {toZ} -1218.083
if 
  80.0 > $distance
goto_if_false @MANSON5_11701
115@ = create_car 482 {x} 1064.547 {y} -1218.083 {z} 15.928
set_car_heading 115@ {heading} 191.9481
116@ = create_car 482 {x} 1050.6 {y} -1222.692 {z} 15.8704
set_car_heading 116@ {heading} 111.6362
117@ += 1

:MANSON5_11701
goto @MANSON5_11708

:MANSON5_11708
return 

:MANSON5_11710
switch_start 118@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSON5_12904 {caseNum1} 0 {caseLabel1} @MANSON5_11838 {caseNum2} 1 {caseLabel2} @MANSON5_11934 {caseNum3} 2 {caseLabel3} @MANSON5_11981 {caseNum4} 3 {caseLabel4} @MANSON5_12233 {caseNum5} 4 {caseLabel5} @MANSON5_12280 {caseNum6} 5 {caseLabel6} @MANSON5_12355 {caseNum7} 6 {caseLabel7} @MANSON5_12402
switch_continued 7 {caseLabel1} @MANSON5_12477 {caseNum2} 8 {caseLabel2} @MANSON5_12524 {caseNum3} 9 {caseLabel3} @MANSON5_12667 {caseNum4} 10 {caseLabel4} @MANSON5_12714 {caseNum5} 11 {caseLabel5} @MANSON5_12857 {caseNum6} -1 {caseLabel6} @MANSON5_12904 {caseNum7} -1 {caseLabel7} @MANSON5_12904 {caseNum8} -1 {caseLabel8} @MANSON5_12904 {caseNum9} -1 {caseLabel9} @MANSON5_12904

:MANSON5_11838
if 
  3 > 119@
goto_if_false @MANSON5_11920
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1
goto @MANSON5_11934

:MANSON5_11920
118@ = 2
goto @MANSON5_12904

:MANSON5_11934
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_11974
118@ = 0
$SLOT_status($preload_slot,2i) = -4

:MANSON5_11974
goto @MANSON5_12904

:MANSON5_11981
if 
  69@ == 3
goto_if_false @MANSON5_12058
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @MANSON5_12058
118@ += 2
119@ = 16
goto @MANSON5_12904

:MANSON5_12058
if 
  66@ == 1
goto_if_false @MANSON5_12158
if 
  16 > 119@
goto_if_false @MANSON5_12151
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12151
goto @MANSON5_12233

:MANSON5_12158
if 
  119@ <> 3
goto_if_false @MANSON5_12226
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12201
$SLOT_status[0] = -2

:MANSON5_12201
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12226
$SLOT_status[1] = -2

:MANSON5_12226
goto @MANSON5_12904

:MANSON5_12233
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12273
118@ = 2
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12273
goto @MANSON5_12904

:MANSON5_12280
if 
  18 > 119@
goto_if_false @MANSON5_12355
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12355
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12395
118@ = 4
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12395
goto @MANSON5_12904

:MANSON5_12402
if 
  24 > 119@
goto_if_false @MANSON5_12477
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12477
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12517
118@ = 6
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12517
goto @MANSON5_12904

:MANSON5_12524
if 
  4 > 119@
goto_if_false @MANSON5_12667
if 
  TIMERA > 8000
goto_if_false @MANSON5_12667
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MANSON5_12659
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12667

:MANSON5_12659
TIMERA = 7000

:MANSON5_12667
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12707
118@ = 8
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12707
goto @MANSON5_12904

:MANSON5_12714
if 
  9 > 119@
goto_if_false @MANSON5_12857
if 
  TIMERA > 8000
goto_if_false @MANSON5_12857
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MANSON5_12849
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12857

:MANSON5_12849
TIMERA = 7000

:MANSON5_12857
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12897
118@ = 10
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12897
goto @MANSON5_12904

:MANSON5_12904
return 

:MANSON5_12906
$flag_mansion_mission_counter += 1
register_mission_passed 'MAN_5'
player_made_progress 1
switch_car_generator $5247 {amount} 101
switch_car_generator $car_gen_go_kart {amount} 101
switch_car_generator $5249 {amount} 101
switch_car_generator $5250 {amount} 101
switch_car_generator $5251 {amount} 101
switch_car_generator $5252 {amount} 101
switch_car_generator $5253 {amount} 101
switch_car_generator $5254 {amount} 101
switch_car_generator $5255 {amount} 101
switch_car_generator $5256 {amount} 101
switch_car_generator $5257 {amount} 101
switch_car_generator $5258 {amount} 101
switch_car_generator $5259 {amount} 101
switch_car_generator $5260 {amount} 101
switch_car_generator $5261 {amount} 101
switch_car_generator $5262 {amount} 101
switch_car_generator $car_gen_hover {amount} 101
switch_car_generator $5264 {amount} 101
switch_car_generator $5265 {amount} 101
switch_car_generator $5266 {amount} 101
switch_car_generator $5267 {amount} 101
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 50
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $mansion_contact_blip
return 

:MANSON5_13113
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  62@ == 1
goto_if_false @MANSON5_13157
print_now 63@s {time} 5000 {flag} 1

:MANSON5_13157
return 

:MANSON5_13159
if 
  is_player_playing $player1
goto_if_false @MANSON5_13186
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:MANSON5_13186
start_new_script @A_TERM 
set_ped_density_multiplier 1.0
switch_roads_back_to_original 226.1833 {leftBottomY} -1631.007 {leftBottomZ} 40.0 {rightTopX} 546.4532 {rightTopY} -1423.991 {rightTopZ} 12.0
switch_roads_back_to_original 510.3661 {leftBottomY} -1431.656 {leftBottomZ} 10.0 {rightTopX} 645.8312 {rightTopY} -1387.312 {rightTopZ} 20.0
switch_roads_back_to_original 646.6142 {leftBottomY} -1389.016 {leftBottomZ} 10.0 {rightTopX} 620.9656 {rightTopY} -1310.468 {rightTopZ} 20.0
switch_roads_back_to_original 620.9656 {leftBottomY} -1310.468 {leftBottomZ} 10.0 {rightTopX} 947.811 {rightTopY} -1335.012 {rightTopZ} 20.0
switch_roads_back_to_original 948.2631 {leftBottomY} -1335.406 {leftBottomZ} 10.0 {rightTopX} 934.2357 {rightTopY} -1229.939 {rightTopZ} 20.0
switch_roads_back_to_original 804.0421 {leftBottomY} -1329.191 {leftBottomZ} 10.0 {rightTopX} 789.3583 {rightTopY} -1159.0081 {rightTopZ} 24.0
remove_blip 50@
remove_blip 37@
remove_blip 38@
if 
  not is_char_dead 34@
goto_if_false @MANSON5_13429
remove_char_from_group 34@

:MANSON5_13429
remove_char_elegantly 34@
remove_char_elegantly 35@
unload_special_character 1
unload_special_character 2
mark_char_as_no_longer_needed 73@
if 
  not is_char_dead 73@
goto_if_false @MANSON5_13490
freeze_char_position 73@ {state} False
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_13490
mark_car_as_no_longer_needed 74@
if 
  not is_car_dead 74@
goto_if_false @MANSON5_13533
freeze_car_position 74@ {state} False
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_13533
mark_car_as_no_longer_needed 39@
if 
  not is_car_dead 40@
goto_if_false @MANSON5_13575
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_13575
stop_playback_recorded_car 40@

:MANSON5_13575
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 41@
goto_if_false @MANSON5_13617
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_13617
stop_playback_recorded_car 41@

:MANSON5_13617
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
if 
  not is_car_dead 43@
goto_if_false @MANSON5_13664
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_13664
stop_playback_recorded_car 43@

:MANSON5_13664
mark_car_as_no_longer_needed 43@
if 
  not is_car_dead 44@
goto_if_false @MANSON5_13706
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_13706
stop_playback_recorded_car 44@

:MANSON5_13706
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 114@
mark_car_as_no_longer_needed 115@
mark_car_as_no_longer_needed 116@
48@ = 0

:MANSON5_13738
if 
  8 > 48@
goto_if_false @MANSON5_13779
mark_car_as_no_longer_needed 75@(48@,8i)
48@ += 1
goto @MANSON5_13738

:MANSON5_13779
mark_object_as_no_longer_needed 83@
mark_model_as_no_longer_needed 219
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 539
mark_model_as_no_longer_needed 571
mark_model_as_no_longer_needed 582
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed #WATERJUMPX2
$onmission = 0
mission_has_finished 
return 

//-------------Mission 106---------------
// Originally: Beat Down on B Dup

:GROVE1
script_name 'GROVE1'
gosub @GROVE1_608
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE1_38
gosub @GROVE1_18790

:GROVE1_38
gosub @GROVE1_18956
terminate_this_script 

:GROVE1_47
switch_start 96@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE1_606 {caseNum1} 0 {caseLabel1} @GROVE1_110 {caseNum2} 1 {caseLabel2} @GROVE1_322 {caseNum3} 2 {caseLabel3} @GROVE1_446 {caseNum4} 3 {caseLabel4} @GROVE1_548 {caseNum5} -1 {caseLabel5} @GROVE1_606 {caseNum6} -1 {caseLabel6} @GROVE1_606 {caseNum7} -1 {caseLabel7} @GROVE1_606

:GROVE1_110
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_FA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_FB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_FC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_FD'
set_var_text_label s$sweets_health_grove1[4] = 'GRO1_FE'
set_var_text_label s$sweets_health_grove1[5] = 'GRO1_FF'
set_var_text_label s$sweets_health_grove1[6] = 'GRO1_FG'
set_var_text_label s$sweets_health_grove1[7] = 'GRO1_FH'
set_var_text_label s$sweets_health_grove1[8] = 'GRO1_FJ'
set_lvar_int_to_constant 97@ = 13037
set_lvar_int_to_constant 98@ = 13023
set_lvar_int_to_constant 99@ = 13024
set_lvar_int_to_constant 100@ = 13025
set_lvar_int_to_constant 101@ = 13038
set_lvar_int_to_constant 102@ = 13039
set_lvar_int_to_constant 103@ = 13040
set_lvar_int_to_constant 104@ = 13041
set_lvar_int_to_constant 105@ = 13026
$cell_index_end = 8
goto @GROVE1_606

:GROVE1_322
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_JA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_JB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_JC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_JD'
set_var_text_label s$sweets_health_grove1[4] = 'GRO1_JE'
set_lvar_int_to_constant 97@ = 13042
set_lvar_int_to_constant 98@ = 13031
set_lvar_int_to_constant 99@ = 13043
set_lvar_int_to_constant 100@ = 13044
set_lvar_int_to_constant 101@ = 13032
$cell_index_end = 4
goto @GROVE1_606

:GROVE1_446
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_LA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_LB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_LC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_LD'
set_lvar_int_to_constant 97@ = 13034
set_lvar_int_to_constant 98@ = 13046
set_lvar_int_to_constant 99@ = 13035
set_lvar_int_to_constant 100@ = 13047
$cell_index_end = 3
goto @GROVE1_606

:GROVE1_548
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_KA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_KB'
set_lvar_int_to_constant 97@ = 13033
set_lvar_int_to_constant 98@ = 13045
$cell_index_end = 1
goto @GROVE1_606

:GROVE1_606
return 

:GROVE1_608
$onmission = 1
77@ = 50
78@ = 50
79@ = 50
80@ = 50
81@ = 0
$trip_skip_M5 = 1000
37@ = 0
41@ = 0
44@ = 0
47@ = 0
50@ = 0
53@ = 0
56@ = 0
60@ = 0
64@ = 0
68@ = 0
70@ = 0
71@ = 0
73@ = 0
74@ = 0
82@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
91@ = 0
92@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
register_mission_given 
load_mission_text 'GROVE1'
wait 0
set_area_visible 3
load_cutscene 'GROVE1A'

:GROVE1_1005
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_1029
wait 0
goto @GROVE1_1005

:GROVE1_1029
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_1038
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_1062
wait 0
goto @GROVE1_1038

:GROVE1_1062
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_1075
if 
  get_fading_status 
goto_if_false @GROVE1_1099
wait 0
goto @GROVE1_1075

:GROVE1_1099
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 5
goto @GROVE1_1224
39@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
57@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 57@
61@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 61@
65@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 65@
69@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 69@

:GROVE1_1224
34@ = load_char_decision_maker DecisionMakerType.Tough
35@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 35@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
load_special_character 1 {modelName} 'SWEET'
request_model 104
request_model 102
request_model 355
request_model 411
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13027
load_all_models_now 

:GROVE1_1312
if or
  not has_special_character_loaded 1
  not has_model_loaded 355
  not has_model_loaded 104
  not has_model_loaded 102
  not has_model_loaded 411
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_1360
wait 0
goto @GROVE1_1312

:GROVE1_1360
set_char_coordinates $scplayer {x} 2497.324 {y} -1684.744 {z} 12.44
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 
load_scene 2497.324 {y} -1684.744 {z} 12.44
38@ = create_char PedType.Mission1 {modelId} 290 {x} 2496.6331 {y} -1684.573 {z} 12.435
set_char_heading 38@ {heading} 0.0
set_char_decision_maker 38@ {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_anim_group_for_char 38@ {animGroup} "GANG2"
give_weapon_to_char 38@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_never_targetted 38@ {state} True
set_char_suffers_critical_hits 38@ {state} False
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
set_char_accuracy 38@ {accuracy} 90
set_char_health 38@ {health} 1000
set_char_max_health 38@ {maxHealth} 1000
set_char_relationship 38@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_player_group_to_follow_always $player1 {state} True
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_1580
if 
  not get_fading_status 
goto_if_false @GROVE1_1604
wait 0
goto @GROVE1_1580

:GROVE1_1604
set_player_control $player1 {state} True
if 
  is_char_dead 38@
goto_if_false @GROVE1_1657
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790
goto @GROVE1_1672

:GROVE1_1657
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GROVE1_1672
print_now 'GM1_18' {time} 8000 {flag} 1
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
$blob_flag = 1
TIMERA = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
gosub @GROVE1_47
119@ = 0
120@ = 0

:GROVE1_1771
if or
  not locate_char_any_means_3d $scplayer {x} 2293.032 {y} -1795.767 {z} 12.5469 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_group_member 38@ {handle} $Players_Group
  120@ <> 1
goto_if_false @GROVE1_3274
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GROVE1_1861
goto @GROVE1_18874

:GROVE1_1861
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_1945
83@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 83@
goto_if_false @GROVE1_1938
if 
  is_vehicle_on_all_wheels 83@
goto_if_false @GROVE1_1931
120@ = 1
goto @GROVE1_1938

:GROVE1_1931
120@ = 0

:GROVE1_1938
goto @GROVE1_2047

:GROVE1_1945
if 
  locate_char_any_means_3d $scplayer {x} 2293.032 {y} -1795.767 {z} 12.5469 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GROVE1_2040
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_2026
120@ = 1
goto @GROVE1_2033

:GROVE1_2026
120@ = 0

:GROVE1_2033
goto @GROVE1_2047

:GROVE1_2040
120@ = 0

:GROVE1_2047
if 
  114@ == 0
goto_if_false @GROVE1_2102
if 
  TIMERA >= 5000
goto_if_false @GROVE1_2102
clear_this_print 'GM1_18'
114@ = 1

:GROVE1_2102
if 
  114@ == 1
goto_if_false @GROVE1_2420
if 
  not is_char_dead 38@
goto_if_false @GROVE1_2364
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_2254
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_2247
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_2219
gosub @GROVE1_19474

:GROVE1_2219
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_2247
gosub @GROVE1_19474

:GROVE1_2247
goto @GROVE1_2357

:GROVE1_2254
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_FA'
clear_this_print 'GRO1_FB'
clear_this_print 'GRO1_FC'
clear_this_print 'GRO1_FD'
clear_this_print 'GRO1_FE'
clear_this_print 'GRO1_FF'
clear_this_print 'GRO1_FG'
clear_this_print 'GRO1_FH'
clear_this_print 'GRO1_FJ'

:GROVE1_2357
goto @GROVE1_2420

:GROVE1_2364
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_2413
remove_blip 39@

:GROVE1_2413
goto @GROVE1_18790

:GROVE1_2420
if 
  is_char_dead 38@
goto_if_false @GROVE1_2489
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_2475
remove_blip 39@

:GROVE1_2475
goto @GROVE1_18790
goto @GROVE1_3267

:GROVE1_2489
$trip_skip_M5 = get_char_health 38@
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_2555
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_2555
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_2555
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_2638
remove_blip 89@
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_2638
if 
  37@ == 1
goto_if_false @GROVE1_3267
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_3267
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_3106
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_3029
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_2861
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
print_now 'GM1_18' {time} 8000 {flag} 1
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_3022

:GROVE1_2861
if 
  87@ == 0
goto_if_false @GROVE1_2959
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_2931
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_2931
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_3022

:GROVE1_2959
if 
  119@ == 1
goto_if_false @GROVE1_3022
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_3022
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_3022
goto @GROVE1_3099

:GROVE1_3029
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
print_now 'GM1_18' {time} 8000 {flag} 1
$blob_flag = 1
37@ = 0

:GROVE1_3099
goto @GROVE1_3267

:GROVE1_3106
if 
  73@ == 0
goto_if_false @GROVE1_3204
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_3176
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_3176
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_3267

:GROVE1_3204
if 
  119@ == 1
goto_if_false @GROVE1_3267
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_3267
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_3267
goto @GROVE1_1771

:GROVE1_3274
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 89@
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_3344
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_3367

:GROVE1_3344
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_3367
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_3382
if 
  get_fading_status 
goto_if_false @GROVE1_3445
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3438
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_3438
goto @GROVE1_3382

:GROVE1_3445
make_player_gang_disappear 
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 7.0 {clearParticles} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @GROVE1_3548
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2294.323 {y} -1797.048 {z} 12.586
set_char_heading $scplayer {heading} 270.0
goto @GROVE1_3652

:GROVE1_3548
90@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 2294.323 {y} -1797.048 {z} 12.586

:GROVE1_3576
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_3642
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3635
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_3635
goto @GROVE1_3576

:GROVE1_3642
set_char_heading $scplayer {heading} 270.0

:GROVE1_3652
if 
  not is_char_dead 38@
goto_if_false @GROVE1_3861
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_3750
clear_area 2294.323 {y} -1794.911 {z} 12.586 {radius} 3.0 {clearParticles} True
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} 2294.323 {y} -1794.911 {z} 12.586
set_char_heading 38@ {heading} 270.0
goto @GROVE1_3854

:GROVE1_3750
90@ = store_car_char_is_in 38@
warp_char_from_car_to_coord 38@ {x} 2294.323 {y} -1794.911 {z} 12.586

:GROVE1_3778
if 
  is_char_in_any_car 38@
goto_if_false @GROVE1_3844
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3837
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_3837
goto @GROVE1_3778

:GROVE1_3844
set_char_heading 38@ {heading} 270.0

:GROVE1_3854
goto @GROVE1_3884

:GROVE1_3861
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_3884
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 6.0 {clearParticles} True
if 
  does_vehicle_exist 90@
goto_if_false @GROVE1_3994
if 
  not is_car_dead 90@
goto_if_false @GROVE1_3994
clear_area 2299.2429 {y} -1784.5649 {z} 12.591 {radius} 3.0 {clearParticles} False
set_car_coordinates 90@ {x} 2299.2429 {y} -1784.5649 {z} 12.591
set_car_heading 90@ {heading} 0.0

:GROVE1_3994
make_player_safe_for_cutscene $player1
set_area_visible 3
load_cutscene 'GROVE1B'

:GROVE1_4014
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_4038
wait 0
goto @GROVE1_4014

:GROVE1_4038
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_4047
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_4071
wait 0
goto @GROVE1_4047

:GROVE1_4071
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_4084
if 
  get_fading_status 
goto_if_false @GROVE1_4108
wait 0
goto @GROVE1_4084

:GROVE1_4108
clear_cutscene 
set_area_visible 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
load_scene 2294.323 {y} -1797.048 {z} 12.586
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:GROVE1_4156
if 
  get_fading_status 
goto_if_false @GROVE1_4180
wait 0
goto @GROVE1_4156

:GROVE1_4180
if 
  not is_char_dead 38@
goto_if_false @GROVE1_4218
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @GROVE1_4241

:GROVE1_4218
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_4241
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
print_now 'GM1_1' {time} 5000 {flag} 1
40@ = add_sprite_blip_for_coord 1988.316 {y} -1199.675 {z} 19.135 {sprite} RadarSprite.GangG
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
91@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Vagos
92@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 0
set_specific_zone_to_trigger_gang_war 'GLN1'
set_wanted_multiplier 0.5
set_gang_wars_active True
can_trigger_gang_war_when_on_a_mission True
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 1
gosub @GROVE1_47
119@ = 0

:GROVE1_4467
if or
  81@ <> 1
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_5650
wait 0
if 
  115@ == 0
goto_if_false @GROVE1_4552
if 
  TIMERB >= 5000
goto_if_false @GROVE1_4552
clear_this_print 'GM1_1'
115@ = 1

:GROVE1_4552
if 
  115@ == 1
goto_if_false @GROVE1_4827
if 
  not is_char_dead 38@
goto_if_false @GROVE1_4770
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_4704
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_4697
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_4669
gosub @GROVE1_19474

:GROVE1_4669
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_4697
gosub @GROVE1_19474

:GROVE1_4697
goto @GROVE1_4763

:GROVE1_4704
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_JA'
clear_this_print 'GRO1_JB'
clear_this_print 'GRO1_JC'
clear_this_print 'GRO1_JD'
clear_this_print 'GRO1_JE'

:GROVE1_4763
goto @GROVE1_4827

:GROVE1_4770
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_4820
remove_blip 39@

:GROVE1_4820
goto @GROVE1_18790

:GROVE1_4827
if 
  is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @GROVE1_4866
81@ = 1
goto @GROVE1_4873

:GROVE1_4866
81@ = 0

:GROVE1_4873
if 
  is_char_dead 38@
goto_if_false @GROVE1_4942
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_4928
remove_blip 39@

:GROVE1_4928
goto @GROVE1_18790
goto @GROVE1_5643

:GROVE1_4942
$trip_skip_M5 = get_char_health 38@
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_5008
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5008
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_5008
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_5086
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_5086
if 
  37@ == 1
goto_if_false @GROVE1_5643
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_5643
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_5482
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_5441
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_5273
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_5434

:GROVE1_5273
if 
  87@ == 0
goto_if_false @GROVE1_5371
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_5343
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_5343
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_5434

:GROVE1_5371
if 
  119@ == 1
goto_if_false @GROVE1_5434
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5434
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_5434
goto @GROVE1_5475

:GROVE1_5441
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
37@ = 0

:GROVE1_5475
goto @GROVE1_5643

:GROVE1_5482
if 
  73@ == 0
goto_if_false @GROVE1_5580
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_5552
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_5552
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_5643

:GROVE1_5580
if 
  119@ == 1
goto_if_false @GROVE1_5643
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5643
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_5643
goto @GROVE1_4467

:GROVE1_5650
print_now 'GM1_3' {time} 8000 {flag} 1
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 3
gosub @GROVE1_47
if 
  not is_char_dead 38@
goto_if_false @GROVE1_5739
$trip_skip_M5 = get_char_health 38@
goto @GROVE1_5796

:GROVE1_5739
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_5789
remove_blip 39@

:GROVE1_5789
goto @GROVE1_18790

:GROVE1_5796
$trip_skip_M5 /= 10
display_onscreen_counter_with_string $trip_skip_M5 {display} CounterDisplay.Bar {text} 'GM1_7'
119@ = 0

:GROVE1_5826
if or
  82@ <> 1
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_7131
wait 0
if 
  116@ == 0
goto_if_false @GROVE1_5911
if 
  TIMERB >= 5000
goto_if_false @GROVE1_5911
clear_this_print 'GM1_3'
116@ = 1

:GROVE1_5911
if 
  116@ == 1
goto_if_false @GROVE1_6153
if 
  not is_char_dead 38@
goto_if_false @GROVE1_6096
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_6063
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_6056
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_6028
gosub @GROVE1_19474

:GROVE1_6028
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_6056
gosub @GROVE1_19474

:GROVE1_6056
goto @GROVE1_6089

:GROVE1_6063
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_KA'
clear_this_print 'GRO1_KB'

:GROVE1_6089
goto @GROVE1_6153

:GROVE1_6096
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_6146
remove_blip 39@

:GROVE1_6146
goto @GROVE1_18790

:GROVE1_6153
77@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
118@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Grove
if 
  is_char_dead 38@
goto_if_false @GROVE1_6254
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_6240
remove_blip 39@

:GROVE1_6240
goto @GROVE1_18790
goto @GROVE1_6955

:GROVE1_6254
$trip_skip_M5 = get_char_health 38@
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_6320
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6320
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_6320
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_6398
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_6398
if 
  37@ == 1
goto_if_false @GROVE1_6955
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_6955
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_6794
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_6753
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_6585
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_6746

:GROVE1_6585
if 
  87@ == 0
goto_if_false @GROVE1_6683
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_6655
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_6655
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_6746

:GROVE1_6683
if 
  119@ == 1
goto_if_false @GROVE1_6746
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6746
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_6746
goto @GROVE1_6787

:GROVE1_6753
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
37@ = 0

:GROVE1_6787
goto @GROVE1_6955

:GROVE1_6794
if 
  73@ == 0
goto_if_false @GROVE1_6892
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_6864
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_6864
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_6955

:GROVE1_6892
if 
  119@ == 1
goto_if_false @GROVE1_6955
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6955
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_6955
if 
  77@ == 0
goto_if_false @GROVE1_6980
82@ = 1

:GROVE1_6980
if 
  is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @GROVE1_7019
81@ = 1
goto @GROVE1_7124

:GROVE1_7019
if 
  not is_gang_war_going_on 
goto_if_false @GROVE1_7117
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_7110
if 
  118@ == 0
goto_if_false @GROVE1_7110
if 
  88@ == 0
goto_if_false @GROVE1_7110
print_now 'GM1_16' {time} 8000 {flag} 1
88@ = 1

:GROVE1_7110
goto @GROVE1_7124

:GROVE1_7117
88@ = 0

:GROVE1_7124
goto @GROVE1_5826

:GROVE1_7131
remove_blip 40@
clear_this_print 'GM1_16'
clear_this_print 'GRO1_GA'
clear_this_print 'GM1_2'
clear_this_print 'GM1_4'
clear_this_print 'GM1_3'
can_trigger_gang_war_when_on_a_mission False
wait 5000
gosub @ENTEXT_63

:GROVE1_7207
if 
  $player_is_completely_safe <> 1
goto_if_false @GROVE1_7287
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7273
print_now 'GM1_4' {time} 5000 {flag} 1
remove_blip 39@
goto @GROVE1_18790

:GROVE1_7273
gosub @ENTEXT_63
goto @GROVE1_7207

:GROVE1_7287
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_7346
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_7369

:GROVE1_7346
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_7369
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_7384
if 
  get_fading_status 
goto_if_false @GROVE1_7408
wait 0
goto @GROVE1_7384

:GROVE1_7408
make_player_gang_disappear 
if 
  not is_char_in_any_car $scplayer
goto_if_false @GROVE1_7504
load_scene 2038.184 {y} -1143.772 {z} 23.455
clear_area 2038.184 {y} -1143.772 {z} 23.455 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2038.184 {y} -1143.772 {z} 23.455
set_char_heading $scplayer {heading} 56.5
goto @GROVE1_7601

:GROVE1_7504
90@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 2038.184 {y} -1143.772 {z} 23.455

:GROVE1_7532
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_7591
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7568

:GROVE1_7568
if 
  is_car_dead 90@
goto_if_false @GROVE1_7584

:GROVE1_7584
goto @GROVE1_7532

:GROVE1_7591
set_char_heading $scplayer {heading} 56.5

:GROVE1_7601
if 
  not is_char_dead 38@
goto_if_false @GROVE1_7791
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_7694
clear_area 2037.048 {y} -1144.896 {z} 23.487 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2037.048 {y} -1144.896 {z} 23.487
set_char_heading 38@ {heading} 56.5
goto @GROVE1_7791

:GROVE1_7694
90@ = store_car_char_is_in 38@
warp_char_from_car_to_coord 38@ {x} 2037.048 {y} -1144.896 {z} 23.487

:GROVE1_7722
if 
  is_char_in_any_car 38@
goto_if_false @GROVE1_7781
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7758

:GROVE1_7758
if 
  is_car_dead 90@
goto_if_false @GROVE1_7774

:GROVE1_7774
goto @GROVE1_7722

:GROVE1_7781
set_char_heading 38@ {heading} 56.5

:GROVE1_7791
clear_area 2038.184 {y} -1143.772 {z} 23.455 {radius} 6.0 {clearParticles} True
switch_widescreen True
clear_area 2006.356 {y} -1125.663 {z} 25.6347 {radius} 1.0 {clearParticles} True
set_fixed_camera_position 2006.356 {y} -1125.663 {z} 25.6347 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2005.666 {y} -1124.9659 {z} 25.8323 {switchStyle} SwitchType.JumpCut
clear_area 1992.437 {y} -1120.1851 {z} 25.813 {radius} 4.0 {clearParticles} False
76@ = create_car 411 {x} 1992.437 {y} -1120.1851 {z} 25.813
set_car_heading 76@ {heading} 260.0
lock_car_doors 76@ {lockStatus} CarLock.Locked
request_collision 1994.668 {y} -1119.022
load_scene_in_direction 1994.668 {y} -1119.022 {z} 25.813 {heading} 56.5
clear_area 1994.668 {y} -1119.022 {z} 25.813 {radius} 2.0 {clearParticles} False
42@ = create_char PedType.Mission2 {modelId} 102 {x} 1994.668 {y} -1119.022 {z} 25.813
give_weapon_to_char 42@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 42@ {heading} 207.71
set_char_decision_maker 42@ {handleOrTemplate} 35@
task_play_anim 42@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 42@ {state} True
task_kill_char_on_foot 42@ {target} $scplayer
set_char_is_target_priority 42@ {state} True
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2005.848 {y} -1116.5 {z} 26.179 {radius} 2.0 {clearParticles} False
45@ = create_char PedType.Mission2 {modelId} 104 {x} 2005.848 {y} -1116.5 {z} 26.179
give_weapon_to_char 45@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 45@ {heading} 185.395
set_char_decision_maker 45@ {handleOrTemplate} 35@
task_play_anim 45@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 45@ {state} True
task_kill_char_on_foot 45@ {target} $scplayer
set_char_is_target_priority 45@ {state} True
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2002.672 {y} -1116.134 {z} 26.172 {radius} 2.0 {clearParticles} False
48@ = create_char PedType.Mission2 {modelId} 102 {x} 2002.672 {y} -1116.134 {z} 26.172
give_weapon_to_char 48@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 48@ {heading} 200.691
set_char_decision_maker 48@ {handleOrTemplate} 35@
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 48@ {state} True
task_kill_char_on_foot 48@ {target} $scplayer
set_char_is_target_priority 48@ {state} True
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 1988.934 {y} -1120.135 {z} 25.813 {radius} 2.0 {clearParticles} False
51@ = create_char PedType.Mission2 {modelId} 104 {x} 1988.934 {y} -1120.135 {z} 25.813
give_weapon_to_char 51@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 51@ {heading} 220.163
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_stay_in_same_place 51@ {state} True
task_kill_char_on_foot 51@ {target} $scplayer
set_char_is_target_priority 51@ {state} True
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_area 1994.062 {y} -1115.618 {z} 25.813 {radius} 2.0 {clearParticles} False
54@ = create_char PedType.Mission2 {modelId} 104 {x} 1994.062 {y} -1115.618 {z} 25.813
give_weapon_to_char 54@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 54@ {heading} 235.0
set_char_decision_maker 54@ {handleOrTemplate} 34@
set_char_stay_in_same_place 54@ {state} True
set_char_is_target_priority 54@ {state} True
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 1997.48 {y} -1114.998 {z} 25.813 {radius} 2.0 {clearParticles} False
58@ = create_char PedType.Mission2 {modelId} 102 {x} 1997.48 {y} -1118.998 {z} 25.813
give_weapon_to_char 58@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 58@ {heading} 176.0
set_char_decision_maker 58@ {handleOrTemplate} 34@
set_char_stay_in_same_place 58@ {state} True
set_char_is_target_priority 58@ {state} True
set_char_relationship 58@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 58@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2008.344 {y} -1113.057 {z} 25.584 {radius} 2.0 {clearParticles} False
62@ = create_char PedType.Mission2 {modelId} 104 {x} 2008.344 {y} -1113.057 {z} 25.584
give_weapon_to_char 62@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 62@ {heading} 177.195
set_char_decision_maker 62@ {handleOrTemplate} 34@
set_char_stay_in_same_place 62@ {state} True
set_char_is_target_priority 62@ {state} True
set_char_relationship 62@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 62@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2014.7679 {y} -1111.447 {z} 25.235 {radius} 2.0 {clearParticles} False
66@ = create_char PedType.Mission2 {modelId} 102 {x} 2014.7679 {y} -1111.447 {z} 25.235
give_weapon_to_char 66@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 66@ {heading} 164.89
set_char_decision_maker 66@ {handleOrTemplate} 34@
set_char_is_target_priority 66@ {state} True
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In
93@ = 0
94@ = 0
95@ = 0
96@ = 2
gosub @GROVE1_47
gosub @GROVE1_19474

:GROVE1_9098
if 
  get_fading_status 
goto_if_false @GROVE1_9122
wait 0
goto @GROVE1_9098

:GROVE1_9122
if 
  not is_char_dead 38@
goto_if_false @GROVE1_9152
gosub @GROVE1_19474
goto @GROVE1_9213

:GROVE1_9152
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_9206
remove_blip 39@

:GROVE1_9206
goto @GROVE1_18790

:GROVE1_9213
skip_cutscene_start_internal @GROVE1_9390

:GROVE1_9220
if 
  93@ <> 3
goto_if_false @GROVE1_9390
wait 0
gosub @GROVE1_20514
if 
  not is_char_dead 38@
goto_if_false @GROVE1_9279
gosub @GROVE1_19474
goto @GROVE1_9340

:GROVE1_9279
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_9333
remove_blip 39@

:GROVE1_9333
goto @GROVE1_18790

:GROVE1_9340
if 
  93@ > 0
goto_if_false @GROVE1_9383
if 
  71@ == 0
goto_if_false @GROVE1_9383
gosub @GROVE1_19149

:GROVE1_9383
goto @GROVE1_9220

:GROVE1_9390
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_9417
if 
  get_fading_status 
goto_if_false @GROVE1_9441
wait 0
goto @GROVE1_9417

:GROVE1_9441
make_player_gang_reappear 
if 
  44@ == 0
goto_if_false @GROVE1_9511
if 
  not is_char_dead 42@
goto_if_false @GROVE1_9492
43@ = add_blip_for_char 42@
goto @GROVE1_9511

:GROVE1_9492
remove_blip 43@
41@ += 1
44@ = 1

:GROVE1_9511
if 
  47@ == 0
goto_if_false @GROVE1_9579
if 
  not is_char_dead 45@
goto_if_false @GROVE1_9560
46@ = add_blip_for_char 45@
goto @GROVE1_9579

:GROVE1_9560
remove_blip 46@
41@ += 1
47@ = 1

:GROVE1_9579
if 
  50@ == 0
goto_if_false @GROVE1_9647
if 
  not is_char_dead 48@
goto_if_false @GROVE1_9628
49@ = add_blip_for_char 48@
goto @GROVE1_9647

:GROVE1_9628
remove_blip 49@
41@ += 1
50@ = 1

:GROVE1_9647
if 
  53@ == 0
goto_if_false @GROVE1_9715
if 
  not is_char_dead 51@
goto_if_false @GROVE1_9696
52@ = add_blip_for_char 51@
goto @GROVE1_9715

:GROVE1_9696
remove_blip 52@
41@ += 1
53@ = 1

:GROVE1_9715
if 
  56@ == 0
goto_if_false @GROVE1_9783
if 
  not is_char_dead 54@
goto_if_false @GROVE1_9764
55@ = add_blip_for_char 54@
goto @GROVE1_9783

:GROVE1_9764
remove_blip 55@
41@ += 1
56@ = 1

:GROVE1_9783
if 
  60@ == 0
goto_if_false @GROVE1_9851
if 
  not is_char_dead 58@
goto_if_false @GROVE1_9832
59@ = add_blip_for_char 58@
goto @GROVE1_9851

:GROVE1_9832
remove_blip 59@
41@ += 1
60@ = 1

:GROVE1_9851
if 
  64@ == 0
goto_if_false @GROVE1_9919
if 
  not is_char_dead 62@
goto_if_false @GROVE1_9900
63@ = add_blip_for_char 62@
goto @GROVE1_9919

:GROVE1_9900
remove_blip 63@
41@ += 1
64@ = 1

:GROVE1_9919
if 
  68@ == 0
goto_if_false @GROVE1_9987
if 
  not is_char_dead 66@
goto_if_false @GROVE1_9968
67@ = add_blip_for_char 66@
goto @GROVE1_9987

:GROVE1_9968
remove_blip 67@
41@ += 1
68@ = 1

:GROVE1_9987
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_10010
if 
  get_fading_status 
goto_if_false @GROVE1_10034
wait 0
goto @GROVE1_10010

:GROVE1_10034
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 38@
goto_if_false @GROVE1_10093
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @GROVE1_10116

:GROVE1_10093
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_10116
print_now 'GM1_9' {time} 8000 {flag} 1
119@ = 0

:GROVE1_10139
if or
  41@ <> 8
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_14451
wait 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  is_char_dead 38@
goto_if_false @GROVE1_10252
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_10238
remove_blip 39@

:GROVE1_10238
goto @GROVE1_18790
goto @GROVE1_11505

:GROVE1_10252
$trip_skip_M5 = get_char_health 38@
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_10318
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_10318
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_10318
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_10564
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
if 
  not is_char_dead 42@
goto_if_false @GROVE1_10410
remove_blip 43@

:GROVE1_10410
if 
  not is_char_dead 45@
goto_if_false @GROVE1_10431
remove_blip 46@

:GROVE1_10431
if 
  not is_char_dead 48@
goto_if_false @GROVE1_10452
remove_blip 49@

:GROVE1_10452
if 
  not is_char_dead 51@
goto_if_false @GROVE1_10473
remove_blip 52@

:GROVE1_10473
if 
  not is_char_dead 54@
goto_if_false @GROVE1_10494
remove_blip 55@

:GROVE1_10494
if 
  not is_char_dead 58@
goto_if_false @GROVE1_10515
remove_blip 59@

:GROVE1_10515
if 
  not is_char_dead 62@
goto_if_false @GROVE1_10536
remove_blip 63@

:GROVE1_10536
if 
  not is_char_dead 66@
goto_if_false @GROVE1_10557
remove_blip 67@

:GROVE1_10557
37@ = 1

:GROVE1_10564
if 
  37@ == 1
goto_if_false @GROVE1_11505
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_11505
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_11344
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_11111
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_10943
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
if 
  not is_char_dead 42@
goto_if_false @GROVE1_10747
43@ = add_blip_for_char 42@

:GROVE1_10747
if 
  not is_char_dead 45@
goto_if_false @GROVE1_10771
46@ = add_blip_for_char 45@

:GROVE1_10771
if 
  not is_char_dead 48@
goto_if_false @GROVE1_10795
49@ = add_blip_for_char 48@

:GROVE1_10795
if 
  not is_char_dead 51@
goto_if_false @GROVE1_10819
52@ = add_blip_for_char 51@

:GROVE1_10819
if 
  not is_char_dead 54@
goto_if_false @GROVE1_10843
55@ = add_blip_for_char 54@

:GROVE1_10843
if 
  not is_char_dead 58@
goto_if_false @GROVE1_10867
59@ = add_blip_for_char 58@

:GROVE1_10867
if 
  not is_char_dead 62@
goto_if_false @GROVE1_10891
63@ = add_blip_for_char 62@

:GROVE1_10891
if 
  not is_char_dead 66@
goto_if_false @GROVE1_10915
67@ = add_blip_for_char 66@

:GROVE1_10915
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_11104

:GROVE1_10943
if 
  87@ == 0
goto_if_false @GROVE1_11041
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_11013
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_11013
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_11104

:GROVE1_11041
if 
  119@ == 1
goto_if_false @GROVE1_11104
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_11104
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_11104
goto @GROVE1_11337

:GROVE1_11111
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
if 
  not is_char_dead 42@
goto_if_false @GROVE1_11162
43@ = add_blip_for_char 42@

:GROVE1_11162
if 
  not is_char_dead 45@
goto_if_false @GROVE1_11186
46@ = add_blip_for_char 45@

:GROVE1_11186
if 
  not is_char_dead 48@
goto_if_false @GROVE1_11210
49@ = add_blip_for_char 48@

:GROVE1_11210
if 
  not is_char_dead 51@
goto_if_false @GROVE1_11234
52@ = add_blip_for_char 51@

:GROVE1_11234
if 
  not is_char_dead 54@
goto_if_false @GROVE1_11258
55@ = add_blip_for_char 54@

:GROVE1_11258
if 
  not is_char_dead 58@
goto_if_false @GROVE1_11282
59@ = add_blip_for_char 58@

:GROVE1_11282
if 
  not is_char_dead 62@
goto_if_false @GROVE1_11306
63@ = add_blip_for_char 62@

:GROVE1_11306
if 
  not is_char_dead 66@
goto_if_false @GROVE1_11330
67@ = add_blip_for_char 66@

:GROVE1_11330
37@ = 0

:GROVE1_11337
goto @GROVE1_11505

:GROVE1_11344
if 
  73@ == 0
goto_if_false @GROVE1_11442
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_11414
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_11414
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_11505

:GROVE1_11442
if 
  119@ == 1
goto_if_false @GROVE1_11505
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_11505
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_11505
if 
  44@ == 0
goto_if_false @GROVE1_11867
if 
  is_char_dead 42@
goto_if_false @GROVE1_11565
remove_blip 43@
41@ += 1
44@ = 1
goto @GROVE1_11867

:GROVE1_11565
if 
  70@ == 0
goto_if_false @GROVE1_11631
if or
  is_player_targetting_char $player1 {handle} 42@
  has_char_spotted_char 42@ {target} $scplayer
  has_char_been_damaged_by_weapon 42@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_11624
70@ = 1

:GROVE1_11624
goto @GROVE1_11867

:GROVE1_11631
if 
  locate_char_any_means_char_3d $scplayer {target} 42@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_11816
if 
  locate_char_any_means_char_3d $scplayer {target} 42@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_11755
if 
  122@ == 0
goto_if_false @GROVE1_11748
clear_char_tasks 42@
task_kill_char_on_foot 42@ {target} $scplayer
task_stay_in_same_place 42@ {state} True
122@ = 1

:GROVE1_11748
goto @GROVE1_11809

:GROVE1_11755
if 
  121@ == 0
goto_if_false @GROVE1_11809
clear_char_tasks 42@
task_stay_in_same_place 42@ {state} True
task_set_ignore_weapon_range_flag 42@ {state} True
task_shoot_at_char 42@ {target} $scplayer {time} -1
121@ = 1

:GROVE1_11809
goto @GROVE1_11867

:GROVE1_11816
if or
  121@ == 1
  122@ == 1
goto_if_false @GROVE1_11867
clear_char_tasks 42@
task_stay_in_same_place 42@ {state} True
122@ = 0
121@ = 0

:GROVE1_11867
if 
  47@ == 0
goto_if_false @GROVE1_12229
if 
  is_char_dead 45@
goto_if_false @GROVE1_11927
remove_blip 46@
41@ += 1
47@ = 1
goto @GROVE1_12229

:GROVE1_11927
if 
  70@ == 0
goto_if_false @GROVE1_11993
if or
  is_player_targetting_char $player1 {handle} 45@
  has_char_spotted_char 45@ {target} $scplayer
  has_char_been_damaged_by_weapon 45@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_11986
70@ = 1

:GROVE1_11986
goto @GROVE1_12229

:GROVE1_11993
if 
  locate_char_any_means_char_3d $scplayer {target} 45@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12178
if 
  locate_char_any_means_char_3d $scplayer {target} 45@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12117
if 
  124@ == 0
goto_if_false @GROVE1_12110
clear_char_tasks 45@
task_kill_char_on_foot 45@ {target} $scplayer
task_stay_in_same_place 45@ {state} True
124@ = 1

:GROVE1_12110
goto @GROVE1_12171

:GROVE1_12117
if 
  123@ == 0
goto_if_false @GROVE1_12171
clear_char_tasks 45@
task_stay_in_same_place 45@ {state} True
task_set_ignore_weapon_range_flag 45@ {state} True
task_shoot_at_char 45@ {target} $scplayer {time} -1
123@ = 1

:GROVE1_12171
goto @GROVE1_12229

:GROVE1_12178
if or
  123@ == 1
  124@ == 1
goto_if_false @GROVE1_12229
clear_char_tasks 45@
task_stay_in_same_place 45@ {state} True
124@ = 0
123@ = 0

:GROVE1_12229
if 
  50@ == 0
goto_if_false @GROVE1_12591
if 
  is_char_dead 48@
goto_if_false @GROVE1_12289
remove_blip 49@
41@ += 1
50@ = 1
goto @GROVE1_12591

:GROVE1_12289
if 
  70@ == 0
goto_if_false @GROVE1_12355
if or
  is_player_targetting_char $player1 {handle} 48@
  has_char_spotted_char 48@ {target} $scplayer
  has_char_been_damaged_by_weapon 48@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_12348
70@ = 1

:GROVE1_12348
goto @GROVE1_12591

:GROVE1_12355
if 
  locate_char_any_means_char_3d $scplayer {target} 48@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12540
if 
  locate_char_any_means_char_3d $scplayer {target} 48@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12479
if 
  126@ == 0
goto_if_false @GROVE1_12472
clear_char_tasks 48@
task_kill_char_on_foot 48@ {target} $scplayer
task_stay_in_same_place 48@ {state} True
126@ = 1

:GROVE1_12472
goto @GROVE1_12533

:GROVE1_12479
if 
  125@ == 0
goto_if_false @GROVE1_12533
clear_char_tasks 48@
task_stay_in_same_place 48@ {state} True
task_set_ignore_weapon_range_flag 48@ {state} True
task_shoot_at_char 48@ {target} $scplayer {time} -1
125@ = 1

:GROVE1_12533
goto @GROVE1_12591

:GROVE1_12540
if or
  125@ == 1
  126@ == 1
goto_if_false @GROVE1_12591
clear_char_tasks 48@
task_stay_in_same_place 48@ {state} True
126@ = 0
125@ = 0

:GROVE1_12591
if 
  53@ == 0
goto_if_false @GROVE1_12953
if 
  is_char_dead 51@
goto_if_false @GROVE1_12651
remove_blip 52@
41@ += 1
53@ = 1
goto @GROVE1_12953

:GROVE1_12651
if 
  70@ == 0
goto_if_false @GROVE1_12717
if or
  is_player_targetting_char $player1 {handle} 51@
  has_char_spotted_char 51@ {target} $scplayer
  has_char_been_damaged_by_weapon 51@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_12710
70@ = 1

:GROVE1_12710
goto @GROVE1_12953

:GROVE1_12717
if 
  locate_char_any_means_char_3d $scplayer {target} 51@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12902
if 
  locate_char_any_means_char_3d $scplayer {target} 51@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12841
if 
  128@ == 0
goto_if_false @GROVE1_12834
clear_char_tasks 51@
task_kill_char_on_foot 51@ {target} $scplayer
task_stay_in_same_place 51@ {state} True
128@ = 1

:GROVE1_12834
goto @GROVE1_12895

:GROVE1_12841
if 
  127@ == 0
goto_if_false @GROVE1_12895
clear_char_tasks 51@
task_stay_in_same_place 51@ {state} True
task_set_ignore_weapon_range_flag 51@ {state} True
task_shoot_at_char 51@ {target} $scplayer {time} -1
127@ = 1

:GROVE1_12895
goto @GROVE1_12953

:GROVE1_12902
if or
  127@ == 1
  128@ == 1
goto_if_false @GROVE1_12953
clear_char_tasks 51@
task_stay_in_same_place 51@ {state} True
128@ = 0
127@ = 0

:GROVE1_12953
if 
  56@ == 0
goto_if_false @GROVE1_13315
if 
  is_char_dead 54@
goto_if_false @GROVE1_13013
remove_blip 55@
41@ += 1
56@ = 1
goto @GROVE1_13315

:GROVE1_13013
if 
  70@ == 0
goto_if_false @GROVE1_13079
if or
  is_player_targetting_char $player1 {handle} 54@
  has_char_spotted_char 54@ {target} $scplayer
  has_char_been_damaged_by_weapon 54@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13072
70@ = 1

:GROVE1_13072
goto @GROVE1_13315

:GROVE1_13079
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13264
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13203
if 
  130@ == 0
goto_if_false @GROVE1_13196
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer
task_stay_in_same_place 54@ {state} True
130@ = 1

:GROVE1_13196
goto @GROVE1_13257

:GROVE1_13203
if 
  129@ == 0
goto_if_false @GROVE1_13257
clear_char_tasks 54@
task_stay_in_same_place 54@ {state} True
task_set_ignore_weapon_range_flag 54@ {state} True
task_shoot_at_char 54@ {target} $scplayer {time} -1
129@ = 1

:GROVE1_13257
goto @GROVE1_13315

:GROVE1_13264
if or
  129@ == 1
  130@ == 1
goto_if_false @GROVE1_13315
clear_char_tasks 54@
task_stay_in_same_place 54@ {state} True
130@ = 0
129@ = 0

:GROVE1_13315
if 
  60@ == 0
goto_if_false @GROVE1_13677
if 
  is_char_dead 58@
goto_if_false @GROVE1_13375
remove_blip 59@
41@ += 1
60@ = 1
goto @GROVE1_13677

:GROVE1_13375
if 
  70@ == 0
goto_if_false @GROVE1_13441
if or
  is_player_targetting_char $player1 {handle} 58@
  has_char_spotted_char 58@ {target} $scplayer
  has_char_been_damaged_by_weapon 58@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13434
70@ = 1

:GROVE1_13434
goto @GROVE1_13677

:GROVE1_13441
if 
  locate_char_any_means_char_3d $scplayer {target} 58@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13626
if 
  locate_char_any_means_char_3d $scplayer {target} 58@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13565
if 
  132@ == 0
goto_if_false @GROVE1_13558
clear_char_tasks 58@
task_kill_char_on_foot 58@ {target} $scplayer
task_stay_in_same_place 58@ {state} True
132@ = 1

:GROVE1_13558
goto @GROVE1_13619

:GROVE1_13565
if 
  131@ == 0
goto_if_false @GROVE1_13619
clear_char_tasks 58@
task_stay_in_same_place 58@ {state} True
task_set_ignore_weapon_range_flag 58@ {state} True
task_shoot_at_char 58@ {target} $scplayer {time} -1
131@ = 1

:GROVE1_13619
goto @GROVE1_13677

:GROVE1_13626
if or
  131@ == 1
  132@ == 1
goto_if_false @GROVE1_13677
clear_char_tasks 58@
task_stay_in_same_place 58@ {state} True
132@ = 0
131@ = 0

:GROVE1_13677
if 
  64@ == 0
goto_if_false @GROVE1_14039
if 
  is_char_dead 62@
goto_if_false @GROVE1_13737
remove_blip 63@
41@ += 1
64@ = 1
goto @GROVE1_14039

:GROVE1_13737
if 
  70@ == 0
goto_if_false @GROVE1_13803
if or
  is_player_targetting_char $player1 {handle} 62@
  has_char_spotted_char 62@ {target} $scplayer
  has_char_been_damaged_by_weapon 62@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13796
70@ = 1

:GROVE1_13796
goto @GROVE1_14039

:GROVE1_13803
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13988
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13927
if 
  134@ == 0
goto_if_false @GROVE1_13920
clear_char_tasks 62@
task_kill_char_on_foot 62@ {target} $scplayer
task_stay_in_same_place 62@ {state} True
134@ = 1

:GROVE1_13920
goto @GROVE1_13981

:GROVE1_13927
if 
  133@ == 0
goto_if_false @GROVE1_13981
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} True
task_set_ignore_weapon_range_flag 62@ {state} True
task_shoot_at_char 62@ {target} $scplayer {time} -1
133@ = 1

:GROVE1_13981
goto @GROVE1_14039

:GROVE1_13988
if or
  133@ == 1
  134@ == 1
goto_if_false @GROVE1_14039
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} True
134@ = 0
133@ = 0

:GROVE1_14039
if 
  68@ == 0
goto_if_false @GROVE1_14401
if 
  is_char_dead 66@
goto_if_false @GROVE1_14099
remove_blip 67@
41@ += 1
68@ = 1
goto @GROVE1_14401

:GROVE1_14099
if 
  70@ == 0
goto_if_false @GROVE1_14165
if or
  is_player_targetting_char $player1 {handle} 66@
  has_char_spotted_char 66@ {target} $scplayer
  has_char_been_damaged_by_weapon 66@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_14158
70@ = 1

:GROVE1_14158
goto @GROVE1_14401

:GROVE1_14165
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_14350
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_14289
if 
  136@ == 0
goto_if_false @GROVE1_14282
clear_char_tasks 66@
task_kill_char_on_foot 66@ {target} $scplayer
task_stay_in_same_place 66@ {state} True
136@ = 1

:GROVE1_14282
goto @GROVE1_14343

:GROVE1_14289
if 
  135@ == 0
goto_if_false @GROVE1_14343
clear_char_tasks 66@
task_stay_in_same_place 66@ {state} True
task_set_ignore_weapon_range_flag 66@ {state} True
task_shoot_at_char 66@ {target} $scplayer {time} -1
135@ = 1

:GROVE1_14343
goto @GROVE1_14401

:GROVE1_14350
if or
  135@ == 1
  136@ == 1
goto_if_false @GROVE1_14401
clear_char_tasks 66@
task_stay_in_same_place 66@ {state} True
136@ = 0
135@ = 0

:GROVE1_14401
if 
  70@ == 1
goto_if_false @GROVE1_14444
if 
  71@ == 0
goto_if_false @GROVE1_14444
gosub @GROVE1_19149

:GROVE1_14444
goto @GROVE1_10139

:GROVE1_14451
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
print_now 'GM1_15' {time} 8000 {flag} 1
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
119@ = 0

:GROVE1_14507
if or
  not locate_char_on_foot_3d $scplayer {x} 2000.269 {y} -1117.084 {z} 25.821 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} $blob_flag
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_15390
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_14637
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_14623
remove_blip 39@

:GROVE1_14623
goto @GROVE1_18790
goto @GROVE1_15383

:GROVE1_14637
$trip_skip_M5 = get_char_health 38@
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_14703
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_14703
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_14703
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_14786
remove_blip 36@
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_14786
if 
  37@ == 1
goto_if_false @GROVE1_15383
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_15383
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_15222
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_15161
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_14993
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_15154

:GROVE1_14993
if 
  87@ == 0
goto_if_false @GROVE1_15091
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_15063
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_15063
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_15154

:GROVE1_15091
if 
  119@ == 1
goto_if_false @GROVE1_15154
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_15154
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_15154
goto @GROVE1_15215

:GROVE1_15161
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
37@ = 0

:GROVE1_15215
goto @GROVE1_15383

:GROVE1_15222
if 
  73@ == 0
goto_if_false @GROVE1_15320
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_15292
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_15292
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_15383

:GROVE1_15320
if 
  119@ == 1
goto_if_false @GROVE1_15383
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_15383
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_15383
goto @GROVE1_14507

:GROVE1_15390
clear_onscreen_counter $trip_skip_M5
remove_blip 36@
clear_prints 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_15461
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_15484

:GROVE1_15461
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_15484
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_15499
if 
  get_fading_status 
goto_if_false @GROVE1_15523
wait 0
goto @GROVE1_15499

:GROVE1_15523
make_player_gang_disappear 
delete_char 38@
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 355
set_area_visible 11
make_player_safe_for_cutscene $player1
set_char_coordinates $scplayer {x} 1044.88 {y} -1334.3199 {z} 12.55
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_15587
if 
  get_fading_status 
goto_if_false @GROVE1_15611
wait 0
goto @GROVE1_15587

:GROVE1_15611
set_area_visible 2
load_cutscene 'GROVE1C'

:GROVE1_15626
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_15650
wait 0
goto @GROVE1_15626

:GROVE1_15650
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_15659
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_15683
wait 0
goto @GROVE1_15659

:GROVE1_15683
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_15696
if 
  get_fading_status 
goto_if_false @GROVE1_15720
wait 0
goto @GROVE1_15696

:GROVE1_15720
clear_cutscene 
set_area_visible 0
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'BBTHIN'
request_animation "GANGS"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13020
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13050

:GROVE1_15775
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_15822
wait 0
goto @GROVE1_15775

:GROVE1_15822
switch_widescreen True
switch_ped_roads_off 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
clear_area 2003.217 {y} -1132.552 {z} 24.278 {radius} 2.0 {clearParticles} False
75@ = create_car 411 {x} 2003.217 {y} -1132.552 {z} 24.278
set_car_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 75@ {heading} 90.0
72@ = create_char_as_passenger 75@ {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.BikeRear
set_char_proofs 72@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 72@ {state} True
request_collision 2002.105 {y} -1129.403
clear_area 2002.105 {y} -1129.403 {z} 24.484 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2002.105 {y} -1129.403 {z} 24.484
set_char_heading $scplayer {heading} 270.0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up_for_scripted_speech $scplayer {state} True
load_scene 2002.105 {y} -1129.403 {z} 24.484
clear_area 2003.105 {y} -1129.403 {z} 24.484 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission1 {modelId} 290 {x} 2003.105 {y} -1129.403 {z} 24.484
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_heading 38@ {heading} 90.0
shut_char_up_for_scripted_speech 38@ {state} True
clear_area 2016.976 {y} -1130.804 {z} 24.62 {radius} 60.0 {clearParticles} True
set_fixed_camera_position 2006.7111 {y} -1126.8669 {z} 24.6168 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2006.004 {y} -1127.551 {z} 24.7956 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:GROVE1_16235
if 
  get_fading_status 
goto_if_false @GROVE1_16259
wait 0
goto @GROVE1_16235

:GROVE1_16259
skip_cutscene_start_internal @GROVE1_18550
if 
  not is_char_dead 38@
goto_if_false @GROVE1_16356
task_play_anim 38@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BA' {time} 10000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
goto @GROVE1_16389

:GROVE1_16356
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_16389
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE1_16426
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_16599
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_16494
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_16494
if 
  is_char_dead 72@
goto_if_false @GROVE1_16543
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_16543
if 
  is_car_dead 75@
goto_if_false @GROVE1_16592
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_16592
goto @GROVE1_16426

:GROVE1_16599
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_BA'
if 
  not is_char_dead 38@
goto_if_false @GROVE1_16642
stop_char_facial_talk 38@
goto @GROVE1_16675

:GROVE1_16642
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_16675
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13002
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_BB' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999

:GROVE1_16712
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_16889
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_16784
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_16784
if 
  is_char_dead 72@
goto_if_false @GROVE1_16833
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_16833
if 
  is_car_dead 75@
goto_if_false @GROVE1_16882
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_16882
goto @GROVE1_16712

:GROVE1_16889
clear_this_print 'GRO1_BB'
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13021
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BC' {time} 10000 {flag} 1
if 
  not is_char_dead 72@
goto_if_false @GROVE1_16969
start_char_facial_talk 72@ {duration} 999999
goto @GROVE1_17002

:GROVE1_16969
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17002
task_achieve_heading $scplayer {heading} 180.0
if 
  not is_car_dead 75@
goto_if_false @GROVE1_17091
if 
  not is_char_dead 38@
goto_if_false @GROVE1_17061
task_enter_car_as_driver 38@ {vehicle} 75@ {time} -1
goto @GROVE1_17084

:GROVE1_17061
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_17084
goto @GROVE1_17114

:GROVE1_17091
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17114
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_17318
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_17186
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_17186
if 
  is_char_dead 72@
goto_if_false @GROVE1_17242
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790
goto @GROVE1_17262

:GROVE1_17242
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_17262
stop_char_facial_talk 72@

:GROVE1_17262
if 
  is_car_dead 75@
goto_if_false @GROVE1_17311
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17311
goto @GROVE1_17114

:GROVE1_17318
clear_this_print 'GRO1_BC'
clear_mission_audio MissionAudioSlot.Slot1
if 
  is_char_dead 72@
goto_if_false @GROVE1_17389
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790
goto @GROVE1_17394

:GROVE1_17389
stop_char_facial_talk 72@

:GROVE1_17394
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13003
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_BD' {time} 10000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @GROVE1_17454
start_char_facial_talk 38@ {duration} 999999
goto @GROVE1_17487

:GROVE1_17454
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_17487
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_17691
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_17566
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790
goto @GROVE1_17586

:GROVE1_17566
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_17586
stop_char_facial_talk 38@

:GROVE1_17586
if 
  is_char_dead 72@
goto_if_false @GROVE1_17635
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17635
if 
  is_car_dead 75@
goto_if_false @GROVE1_17684
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17684
goto @GROVE1_17487

:GROVE1_17691
clear_this_print 'GRO1_BD'
clear_mission_audio MissionAudioSlot.Slot2
if 
  is_char_dead 38@
goto_if_false @GROVE1_17762
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790
goto @GROVE1_17767

:GROVE1_17762
stop_char_facial_talk 38@

:GROVE1_17767
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BE' {time} 10000 {flag} 1
if 
  not is_char_dead 72@
goto_if_false @GROVE1_17820
start_char_facial_talk 72@ {duration} 999999
goto @GROVE1_17853

:GROVE1_17820
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17853
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_18114
wait 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_17960
clear_this_print 'GRO1_BE'
if 
  not is_char_dead 72@
goto_if_false @GROVE1_17927
stop_char_facial_talk 72@
goto @GROVE1_17960

:GROVE1_17927
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_17960
if 
  is_char_dead 38@
goto_if_false @GROVE1_18009
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_18009
if 
  is_char_dead 72@
goto_if_false @GROVE1_18058
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18058
if 
  is_car_dead 75@
goto_if_false @GROVE1_18107
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18107
goto @GROVE1_17853

:GROVE1_18114
if 
  not is_car_dead 75@
goto_if_false @GROVE1_18174
set_car_driving_style 75@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 75@ {maxSpeed} 30.0
car_goto_coordinates 75@ {x} 1946.0 {y} -1132.0 {z} 25.0
goto @GROVE1_18207

:GROVE1_18174
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18207
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_18380
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_18275
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18790

:GROVE1_18275
if 
  is_char_dead 72@
goto_if_false @GROVE1_18324
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18324
if 
  is_car_dead 75@
goto_if_false @GROVE1_18373
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18373
goto @GROVE1_18207

:GROVE1_18380
clear_this_print 'GRO1_BE'
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead 72@
goto_if_false @GROVE1_18427
stop_char_facial_talk 72@
goto @GROVE1_18460

:GROVE1_18427
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18790

:GROVE1_18460
wait 2000
remove_char_elegantly 72@
remove_char_elegantly 38@
delete_car 75@
make_player_gang_reappear 
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
74@ = 1

:GROVE1_18550
skip_cutscene_end 
if 
  74@ == 0
goto_if_false @GROVE1_18747
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_18595
if 
  get_fading_status 
goto_if_false @GROVE1_18619
wait 0
goto @GROVE1_18595

:GROVE1_18619
make_player_gang_reappear 
switch_widescreen False
clear_prints 
remove_char_elegantly 72@
remove_char_elegantly 38@
delete_car 75@
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
set_char_coordinates $scplayer {x} 2002.105 {y} -1129.403 {z} 24.484
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_18723
if 
  get_fading_status 
goto_if_false @GROVE1_18747
wait 0
goto @GROVE1_18723

:GROVE1_18747
switch_widescreen False
shut_char_up_for_scripted_speech $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
goto @GROVE1_18874

:GROVE1_18790
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 91@
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 92@
can_trigger_gang_war_when_on_a_mission False
return 

:GROVE1_18874
$flag_grove_mission_counter += 1
register_mission_passed 'GROVE_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $grove_contact_blip
remove_blip $intro_contact_blip
$grove_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $grove_blip_icon
return 

:GROVE1_18956
remove_char_elegantly 38@
$onmission = 0
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
set_area_visible 0
clear_specific_zones_to_trigger_gang_war 
$timer_mobile_start = get_game_timer 
clear_onscreen_counter $trip_skip_M5
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 411
remove_animation "GANGS"
remove_blip 89@
remove_blip 40@
remove_blip 39@
remove_blip 36@
remove_blip 43@
remove_blip 46@
remove_blip 49@
remove_blip 52@
remove_blip 55@
remove_blip 59@
remove_blip 63@
remove_blip 67@
clear_sequence_task 57@
clear_sequence_task 61@
clear_sequence_task 65@
clear_sequence_task 69@
remove_decision_maker 35@
remove_decision_maker 34@
can_trigger_gang_war_when_on_a_mission False
mission_has_finished 
return 

:GROVE1_19149
if 
  not is_char_dead 54@
goto_if_false @GROVE1_19228
57@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1996.934 {y} -1122.2581 {z} 25.76 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 57@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 57@
clear_sequence_task 57@

:GROVE1_19228
if 
  not is_char_dead 58@
goto_if_false @GROVE1_19307
61@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2004.069 {y} -1122.884 {z} 25.584 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 61@
clear_char_tasks 58@
perform_sequence_task 58@ {sequence} 61@
clear_sequence_task 61@

:GROVE1_19307
if 
  not is_char_dead 62@
goto_if_false @GROVE1_19386
65@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2006.7581 {y} -1122.6949 {z} 25.493 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 65@
clear_char_tasks 62@
perform_sequence_task 62@ {sequence} 65@
clear_sequence_task 65@

:GROVE1_19386
if 
  not is_char_dead 66@
goto_if_false @GROVE1_19465
69@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2015.458 {y} -1121.923 {z} 25.243 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 69@
clear_char_tasks 66@
perform_sequence_task 66@ {sequence} 69@
clear_sequence_task 69@

:GROVE1_19465
71@ = 1
return 

:GROVE1_19474
if or
  94@ == 0
  94@ == 1
goto_if_false @GROVE1_19525
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 93@
goto_if_false @GROVE1_19525
gosub @GROVE1_19590

:GROVE1_19525
if 
  94@ == 2
goto_if_false @GROVE1_19588
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_19588
gosub @GROVE1_20131
94@ = 0
93@ += 1
95@ = 0
clear_prints 

:GROVE1_19588
return 

:GROVE1_19590
if 
  94@ == 0
goto_if_false @GROVE1_19626
load_mission_audio MissionAudioSlot.Slot1 {audioId} 97@(93@,17i)
94@ = 1

:GROVE1_19626
if 
  94@ == 1
goto_if_false @GROVE1_19706
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_19706
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_19706
print_now $sweets_health_grove1(93@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @GROVE1_19708
94@ = 2

:GROVE1_19706
return 

:GROVE1_19708
if 
  96@ == 0
goto_if_false @GROVE1_19829
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_19796
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_19829

:GROVE1_19796
if 
  not is_char_dead 38@
goto_if_false @GROVE1_19829
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_19829
if 
  96@ == 1
goto_if_false @GROVE1_19936
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_19903
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_19936

:GROVE1_19903
if 
  not is_char_dead 38@
goto_if_false @GROVE1_19936
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_19936
if 
  96@ == 2
goto_if_false @GROVE1_20036
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20003
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_20036

:GROVE1_20003
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20036
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_20036
if 
  96@ == 3
goto_if_false @GROVE1_20129
if 
  93@ == 1
goto_if_false @GROVE1_20096
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_20129

:GROVE1_20096
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20129
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_20129
return 

:GROVE1_20131
if 
  96@ == 0
goto_if_false @GROVE1_20242
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_20214
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20242

:GROVE1_20214
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20242
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20242
if 
  96@ == 1
goto_if_false @GROVE1_20339
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_20311
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20339

:GROVE1_20311
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20339
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20339
if 
  96@ == 2
goto_if_false @GROVE1_20429
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20401
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20429

:GROVE1_20401
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20429
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20429
if 
  96@ == 3
goto_if_false @GROVE1_20512
if 
  93@ == 1
goto_if_false @GROVE1_20484
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20512

:GROVE1_20484
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20512
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20512
return 

:GROVE1_20514
if 
  44@ == 0
goto_if_false @GROVE1_20633
if 
  is_char_dead 42@
goto_if_false @GROVE1_20574
remove_blip 43@
41@ += 1
44@ = 1
goto @GROVE1_20633

:GROVE1_20574
if 
  70@ == 0
goto_if_false @GROVE1_20633
if or
  is_player_targetting_char $player1 {handle} 42@
  has_char_spotted_char 42@ {target} $scplayer
  has_char_been_damaged_by_weapon 42@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20633
70@ = 1

:GROVE1_20633
if 
  47@ == 0
goto_if_false @GROVE1_20752
if 
  is_char_dead 45@
goto_if_false @GROVE1_20693
remove_blip 46@
41@ += 1
47@ = 1
goto @GROVE1_20752

:GROVE1_20693
if 
  70@ == 0
goto_if_false @GROVE1_20752
if or
  is_player_targetting_char $player1 {handle} 45@
  has_char_spotted_char 45@ {target} $scplayer
  has_char_been_damaged_by_weapon 45@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20752
70@ = 1

:GROVE1_20752
if 
  50@ == 0
goto_if_false @GROVE1_20871
if 
  is_char_dead 48@
goto_if_false @GROVE1_20812
remove_blip 49@
41@ += 1
50@ = 1
goto @GROVE1_20871

:GROVE1_20812
if 
  70@ == 0
goto_if_false @GROVE1_20871
if or
  is_player_targetting_char $player1 {handle} 48@
  has_char_spotted_char 48@ {target} $scplayer
  has_char_been_damaged_by_weapon 48@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20871
70@ = 1

:GROVE1_20871
if 
  53@ == 0
goto_if_false @GROVE1_20990
if 
  is_char_dead 51@
goto_if_false @GROVE1_20931
remove_blip 52@
41@ += 1
53@ = 1
goto @GROVE1_20990

:GROVE1_20931
if 
  70@ == 0
goto_if_false @GROVE1_20990
if or
  is_player_targetting_char $player1 {handle} 51@
  has_char_spotted_char 51@ {target} $scplayer
  has_char_been_damaged_by_weapon 51@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20990
70@ = 1

:GROVE1_20990
if 
  56@ == 0
goto_if_false @GROVE1_21109
if 
  is_char_dead 54@
goto_if_false @GROVE1_21050
remove_blip 55@
41@ += 1
56@ = 1
goto @GROVE1_21109

:GROVE1_21050
if 
  70@ == 0
goto_if_false @GROVE1_21109
if or
  is_player_targetting_char $player1 {handle} 54@
  has_char_spotted_char 54@ {target} $scplayer
  has_char_been_damaged_by_weapon 54@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21109
70@ = 1

:GROVE1_21109
if 
  60@ == 0
goto_if_false @GROVE1_21228
if 
  is_char_dead 58@
goto_if_false @GROVE1_21169
remove_blip 59@
41@ += 1
60@ = 1
goto @GROVE1_21228

:GROVE1_21169
if 
  70@ == 0
goto_if_false @GROVE1_21228
if or
  is_player_targetting_char $player1 {handle} 58@
  has_char_spotted_char 58@ {target} $scplayer
  has_char_been_damaged_by_weapon 58@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21228
70@ = 1

:GROVE1_21228
if 
  64@ == 0
goto_if_false @GROVE1_21347
if 
  is_char_dead 62@
goto_if_false @GROVE1_21288
remove_blip 63@
41@ += 1
64@ = 1
goto @GROVE1_21347

:GROVE1_21288
if 
  70@ == 0
goto_if_false @GROVE1_21347
if or
  is_player_targetting_char $player1 {handle} 62@
  has_char_spotted_char 62@ {target} $scplayer
  has_char_been_damaged_by_weapon 62@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21347
70@ = 1

:GROVE1_21347
if 
  68@ == 0
goto_if_false @GROVE1_21466
if 
  is_char_dead 66@
goto_if_false @GROVE1_21407
remove_blip 67@
41@ += 1
68@ = 1
goto @GROVE1_21466

:GROVE1_21407
if 
  70@ == 0
goto_if_false @GROVE1_21466
if or
  is_player_targetting_char $player1 {handle} 66@
  has_char_spotted_char 66@ {target} $scplayer
  has_char_been_damaged_by_weapon 66@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21466
70@ = 1

:GROVE1_21466
return 

//-------------Mission 107---------------
// Originally: Grove 4 Life

:GROVE2
script_name 'GROVE2'
gosub @GROVE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE2_38
gosub @GROVE2_3134

:GROVE2_38
gosub @GROVE2_3221
terminate_this_script 

:GROVE2_47
make_room_in_player_gang_for_mission_peds 1
load_mission_text 'GROVE2'
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE2_87
if 
  get_fading_status 
goto_if_false @GROVE2_111
wait 0
goto @GROVE2_87

:GROVE2_111
force_weather_now WeatherType.SunnyLa
set_area_visible 1
load_cutscene 'GROVE2'

:GROVE2_130
if 
  not has_cutscene_loaded 
goto_if_false @GROVE2_154
wait 0
goto @GROVE2_130

:GROVE2_154
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE2_171
if 
  not has_cutscene_finished 
goto_if_false @GROVE2_195
wait 0
goto @GROVE2_171

:GROVE2_195
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:GROVE2_209
if 
  get_fading_status 
goto_if_false @GROVE2_233
wait 0
goto @GROVE2_209

:GROVE2_233
clear_cutscene 
release_weather 
load_special_character 1 {modelName} 'SWEET'
request_model 355
request_model 492
load_all_models_now 

:GROVE2_262
if or
  not has_special_character_loaded 1
  not has_model_loaded 355
  not has_model_loaded 492
goto_if_false @GROVE2_298
wait 0
goto @GROVE2_262

:GROVE2_298
set_area_visible 0
switch_widescreen False
$7989 = 0
$g2_sweet_hlth = 0
47@ = 2
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_352
clear_wanted_level $player1

:GROVE2_352
set_player_group_to_follow_always $player1 {state} True
set_gang_wars_active True
can_trigger_gang_war_when_on_a_mission True
load_scene 2497.324 {y} -1684.744 {z} 12.44
set_char_coordinates $scplayer {x} 2497.324 {y} -1684.744 {z} 12.44
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
$sweet = create_char PedType.Mission1 {modelId} 290 {x} 2496.6331 {y} -1684.573 {z} 12.435
custom_plate_for_next_car 492 {text} "GROVE4L_"
39@ = create_car 492 {x} 2507.699 {y} -1671.7159 {z} 12.3823
change_car_colour 39@ {color1} 59 {color2} 34
set_car_heading 39@ {heading} 355.4549
set_char_heading $sweet {heading} 0.0
set_anim_group_for_char $sweet {animGroup} "GANG2"
give_weapon_to_char $sweet {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet
set_char_accuracy $sweet {accuracy} 90
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_relationship $sweet {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
$7989 = get_char_health $sweet
$7989 /= 10
display_onscreen_counter_with_string $7989 {display} CounterDisplay.Bar {text} 'GR2_01'
34@ = add_blip_for_char $sweet
set_blip_as_friendly 34@ {state} True
36@ = add_blip_for_coord 2002.8149 {y} -1613.084 {z} 12.3828
55@ = add_blip_for_coord 2507.1841 {y} -1672.906 {z} 12.3824
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 55@ {display} BlipDisplay.Neither
set_car_density_multiplier 1.0
set_ped_density_multiplier 2.0
TIMERA = 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 100
set_specific_zone_to_trigger_gang_war 'IWD3A'
set_specific_zone_to_trigger_gang_war 'IWD3B'
set_specific_zone_to_trigger_gang_war 'IWD1'
set_specific_zone_to_trigger_gang_war 'IWD4'
set_zone_no_cops 'IWD3A' {state} True
set_zone_no_cops 'IWD3B' {state} True
set_zone_no_cops 'IWD1' {state} True
set_zone_no_cops 'IWD4' {state} True

:GROVE2_942
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_2932
wait 0
gosub @GROVE2_3589
gosub @GROVE2_5396
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @GROVE2_998
goto @GROVE2_3152

:GROVE2_998
if and
  not is_car_dead 39@
  not is_char_dead $scplayer
goto_if_false @GROVE2_1067
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @GROVE2_1067
if 
  57@ == 0
goto_if_false @GROVE2_1067
set_radio_channel RadioChannel.BounceFM
57@ = 1

:GROVE2_1067
if and
  TIMERA > 4000
  58@ == 1
goto_if_false @GROVE2_1316
$g2_idlewood_off = generate_random_int_in_range 0 {max} 4
switch_start $g2_idlewood_off {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1309 {caseNum1} 0 {caseLabel1} @GROVE2_1165 {caseNum2} 1 {caseLabel2} @GROVE2_1201 {caseNum3} 2 {caseLabel3} @GROVE2_1237 {caseNum4} 3 {caseLabel4} @GROVE2_1273 {caseNum5} -1 {caseLabel5} @GROVE2_1309 {caseNum6} -1 {caseLabel6} @GROVE2_1309 {caseNum7} -1 {caseLabel7} @GROVE2_1309

:GROVE2_1165
set_lvar_text_label 59@s = 'GRO2_DA'
set_lvar_int_to_constant 46@ = 14207
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1201
set_lvar_text_label 59@s = 'GRO2_DB'
set_lvar_int_to_constant 46@ = 14208
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1237
set_lvar_text_label 59@s = 'GRO2_DC'
set_lvar_int_to_constant 46@ = 14209
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1273
set_lvar_text_label 59@s = 'GRO2_DD'
set_lvar_int_to_constant 46@ = 14210
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1309
58@ = 2

:GROVE2_1316
if and
  47@ == 2
  58@ == 2
goto_if_false @GROVE2_1492
$g2_idlewood_off = generate_random_int_in_range 0 {max} 2
switch_start $g2_idlewood_off {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1485 {caseNum1} 0 {caseLabel1} @GROVE2_1413 {caseNum2} 1 {caseLabel2} @GROVE2_1449 {caseNum3} -1 {caseLabel3} @GROVE2_1485 {caseNum4} -1 {caseLabel4} @GROVE2_1485 {caseNum5} -1 {caseLabel5} @GROVE2_1485 {caseNum6} -1 {caseLabel6} @GROVE2_1485 {caseNum7} -1 {caseLabel7} @GROVE2_1485

:GROVE2_1413
set_lvar_text_label 59@s = 'GRO2_EA'
set_lvar_int_to_constant 46@ = 14211
gosub @GROVE2_5376
goto @GROVE2_1485

:GROVE2_1449
set_lvar_text_label 59@s = 'GRO2_EB'
set_lvar_int_to_constant 46@ = 14212
gosub @GROVE2_5376
goto @GROVE2_1485

:GROVE2_1485
58@ = 3

:GROVE2_1492
if and
  47@ == 2
  58@ == 3
goto_if_false @GROVE2_1540
print_now 'GR2_10' {time} 7000 {flag} 1
58@ = 4

:GROVE2_1540
if 
  54@ == 0
goto_if_false @GROVE2_2508
40@ = get_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas
41@ = get_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas
43@ = get_zone_gang_strength 'IWD1' {gangId} GangType.Ballas
44@ = get_zone_gang_strength 'IWD4' {gangId} GangType.Ballas
if 
  38@ == 0
goto_if_false @GROVE2_1676
set_lvar_text_label 59@s = 'GRO2_AA'
set_lvar_int_to_constant 46@ = 14218
gosub @GROVE2_5376
38@ = 1

:GROVE2_1676
if and
  47@ == 2
  38@ == 1
goto_if_false @GROVE2_1737
set_lvar_text_label 59@s = 'GRO2_AB'
set_lvar_int_to_constant 46@ = 14200
gosub @GROVE2_5376
38@ = 2

:GROVE2_1737
if and
  47@ == 2
  38@ == 2
goto_if_false @GROVE2_1798
set_lvar_text_label 59@s = 'GRO2_AC'
set_lvar_int_to_constant 46@ = 14201
gosub @GROVE2_5376
38@ = 3

:GROVE2_1798
if and
  47@ == 2
  38@ == 3
goto_if_false @GROVE2_1859
set_lvar_text_label 59@s = 'GRO2_AD'
set_lvar_int_to_constant 46@ = 14219
gosub @GROVE2_5376
38@ = 4

:GROVE2_1859
if and
  47@ == 2
  38@ == 4
goto_if_false @GROVE2_1907
print_now 'GR2_09' {time} 7000 {flag} 1
38@ = 5

:GROVE2_1907
if 
  56@ == 1
goto_if_false @GROVE2_2148
$g2_idlewood_off = generate_random_int_in_range 0 {max} 4
switch_start $g2_idlewood_off {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_2141 {caseNum1} 0 {caseLabel1} @GROVE2_1997 {caseNum2} 1 {caseLabel2} @GROVE2_2033 {caseNum3} 2 {caseLabel3} @GROVE2_2069 {caseNum4} 3 {caseLabel4} @GROVE2_2105 {caseNum5} -1 {caseLabel5} @GROVE2_2141 {caseNum6} -1 {caseLabel6} @GROVE2_2141 {caseNum7} -1 {caseLabel7} @GROVE2_2141

:GROVE2_1997
set_lvar_text_label 59@s = 'GRO2_CA'
set_lvar_int_to_constant 46@ = 14203
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2033
set_lvar_text_label 59@s = 'GRO2_CB'
set_lvar_int_to_constant 46@ = 14204
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2069
set_lvar_text_label 59@s = 'GRO2_CC'
set_lvar_int_to_constant 46@ = 14205
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2105
set_lvar_text_label 59@s = 'GRO2_CE'
set_lvar_int_to_constant 46@ = 14206
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2141
56@ = 2

:GROVE2_2148
if and
  47@ == 2
  56@ == 2
goto_if_false @GROVE2_2196
print_now 'GR2_05' {time} 4000 {flag} 1
56@ = 3

:GROVE2_2196
if or
  is_player_in_info_zone $player1 {infoZone} 'IWD3A'
  is_player_in_info_zone $player1 {infoZone} 'IWD3B'
  is_player_in_info_zone $player1 {infoZone} 'IWD1'
  is_player_in_info_zone $player1 {infoZone} 'IWD4'
goto_if_false @GROVE2_2327
if 
  37@ == 0
goto_if_false @GROVE2_2313
37@ = 1
if 
  56@ == 0
goto_if_false @GROVE2_2313
56@ = 1

:GROVE2_2313
change_blip_display 36@ {display} BlipDisplay.Neither
goto @GROVE2_2352

:GROVE2_2327
if 
  35@ == 1
goto_if_false @GROVE2_2352
change_blip_display 36@ {display} BlipDisplay.Both

:GROVE2_2352
if and
  40@ == 0
  48@ == 0
goto_if_false @GROVE2_2391
gosub @GROVE2_2939
48@ = 1

:GROVE2_2391
if and
  41@ == 0
  49@ == 0
goto_if_false @GROVE2_2430
gosub @GROVE2_2939
49@ = 1

:GROVE2_2430
if and
  43@ == 0
  50@ == 0
goto_if_false @GROVE2_2469
gosub @GROVE2_2939
50@ = 1

:GROVE2_2469
if and
  44@ == 0
  51@ == 0
goto_if_false @GROVE2_2508
gosub @GROVE2_2939
51@ = 1

:GROVE2_2508
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_2781
$7989 = get_char_health $sweet
$7989 /= 10
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @GROVE2_2683
if 
  35@ == 0
goto_if_false @GROVE2_2676
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @GROVE2_2619
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:GROVE2_2619
change_blip_display 34@ {display} BlipDisplay.Neither
if 
  54@ == 0
goto_if_false @GROVE2_2644

:GROVE2_2644
if 
  54@ == 1
goto_if_false @GROVE2_2662

:GROVE2_2662
$g2_sweet_hlth = 0
35@ = 1

:GROVE2_2676
goto @GROVE2_2774

:GROVE2_2683
if 
  35@ == 1
goto_if_false @GROVE2_2774
print_now 'GR2_02' {time} 4000 {flag} 1
change_blip_display 34@ {display} BlipDisplay.Both
if 
  54@ == 0
goto_if_false @GROVE2_2742

:GROVE2_2742
if 
  54@ == 1
goto_if_false @GROVE2_2760

:GROVE2_2760
$g2_sweet_hlth = 1
35@ = 0

:GROVE2_2774
goto @GROVE2_2804

:GROVE2_2781
print_now 'GR2_03' {time} 4000 {flag} 1
goto @GROVE2_3134

:GROVE2_2804
if 
  54@ == 1
goto_if_false @GROVE2_2925
if and
  53@ == 1
  47@ == 2
goto_if_false @GROVE2_2870
print_now 'GR2_11' {time} 7000 {flag} 1
53@ = 2

:GROVE2_2870
if 
  locate_char_any_means_3d $scplayer {x} 2507.1841 {y} -1672.906 {z} 12.3824 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GROVE2_2925
goto @GROVE2_3784

:GROVE2_2925
goto @GROVE2_942

:GROVE2_2932
goto @GROVE2_3134

:GROVE2_2939
52@ += 1
if 
  58@ == 0
goto_if_false @GROVE2_2978
TIMERA = 0
58@ = 1

:GROVE2_2978
if 
  52@ == 2
goto_if_false @GROVE2_3132
set_lvar_text_label 59@s = 'GRO2_FA'
set_lvar_int_to_constant 46@ = 14213
gosub @GROVE2_5376
54@ = 1
change_blip_display 55@ {display} BlipDisplay.Both
clear_area 2507.1841 {y} -1672.906 {z} 12.3824 {radius} 10.0 {clearParticles} True
if 
  not is_car_dead 39@
goto_if_false @GROVE2_3132
if 
  locate_car_3d 39@ {x} 2507.1841 {y} -1672.906 {z} 12.3824 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GROVE2_3132
delete_car 39@

:GROVE2_3132
return 

:GROVE2_3134
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GROVE2_3152
remove_blip $grove_contact_blip
$flag_grove_mission_counter += 1
player_made_progress 1
register_mission_passed 'GROVE_2'
print_with_number_big 'M_PASSS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
award_player_mission_respect 40
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:GROVE2_3221
set_zone_no_cops 'IWD3A' {state} False
set_zone_no_cops 'IWD3B' {state} False
set_zone_no_cops 'IWD1' {state} False
set_zone_no_cops 'IWD4' {state} False
clear_specific_zones_to_trigger_gang_war 
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active True
$onmission = 0
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_3311
remove_char_elegantly $sweet

:GROVE2_3311
if 
  does_blip_exist 34@
goto_if_false @GROVE2_3332
remove_blip 34@

:GROVE2_3332
if 
  does_blip_exist 36@
goto_if_false @GROVE2_3353
remove_blip 36@

:GROVE2_3353
if 
  does_blip_exist 55@
goto_if_false @GROVE2_3374
remove_blip 55@

:GROVE2_3374
clear_onscreen_counter $7989
unload_special_character 1
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 492
remove_animation "GANGS"
$timer_mobile_start = get_game_timer 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mission_has_finished 
return 

:GROVE2_3425
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:GROVE2_3440
clear_prints 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
return 

:GROVE2_3459
do_fade 500 {direction} Fade.Out

:GROVE2_3466
if 
  get_fading_status 
goto_if_false @GROVE2_3490
wait 0
goto @GROVE2_3466

:GROVE2_3490
return 

:GROVE2_3492
do_fade 500 {direction} Fade.In

:GROVE2_3499
if 
  get_fading_status 
goto_if_false @GROVE2_3523
wait 0
goto @GROVE2_3499

:GROVE2_3523
return 
do_fade 500 {direction} Fade.Out

:GROVE2_3532
if 
  get_fading_status 
goto_if_false @GROVE2_3556
wait 0
goto @GROVE2_3532

:GROVE2_3556
do_fade 500 {direction} Fade.In

:GROVE2_3563
if 
  get_fading_status 
goto_if_false @GROVE2_3587
wait 0
goto @GROVE2_3563

:GROVE2_3587
return 

:GROVE2_3589
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @GROVE2_3611
41@ = 0

:GROVE2_3611
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @GROVE2_3633
40@ = 0

:GROVE2_3633
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @GROVE2_3655
goto @GROVE2_3784

:GROVE2_3655
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @GROVE2_3745
set_char_coordinates $scplayer {x} 2487.645 {y} -1668.204 {z} 12.3438
set_char_heading $scplayer {heading} 265.0722
52@ = 2
54@ = 1
change_blip_display 55@ {display} BlipDisplay.Both
clear_area 2507.1841 {y} -1672.906 {z} 12.3824 {radius} 10.0 {clearParticles} True

:GROVE2_3745
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @GROVE2_3767
gosub @GROVE2_2939

:GROVE2_3767
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @GROVE2_3782

:GROVE2_3782
return 

:GROVE2_3784
gosub @GROVE2_3459
gosub @GROVE2_3425
clear_prints 
request_animation "GANGS"

:GROVE2_3809
if 
  not has_animation_loaded "GANGS"
goto_if_false @GROVE2_3840
wait 0
goto @GROVE2_3809

:GROVE2_3840
if and
  not is_char_dead $scplayer
  not is_char_dead $sweet
goto_if_false @GROVE2_4138
remove_char_from_group $sweet
clear_area 2512.761 {y} -1672.52 {z} 12.5034 {radius} 50.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE2_3963
set_char_coordinates $scplayer {x} 2496.552 {y} -1682.439 {z} 12.3542
set_char_heading $scplayer {heading} 270.6489
warp_char_from_car_to_coord $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
goto @GROVE2_3983

:GROVE2_3963
set_char_coordinates $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034

:GROVE2_3983
if 
  not is_car_dead 39@
goto_if_false @GROVE2_4004
delete_car 39@

:GROVE2_4004
set_char_heading $scplayer {heading} 240.2609
task_turn_char_to_face_char $scplayer {target} $sweet
if 
  is_char_in_any_car $sweet
goto_if_false @GROVE2_4065
warp_char_from_car_to_coord $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861
goto @GROVE2_4085

:GROVE2_4065
set_char_coordinates $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861

:GROVE2_4085
set_char_heading $sweet {heading} 73.5014
task_turn_char_to_face_char $sweet {target} $scplayer
task_toggle_ped_threat_scanner $sweet {onFoot} False {inCar} False {duringScriptTask} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed

:GROVE2_4138
set_ped_density_multiplier 0.0
set_fixed_camera_position 2509.7981 {y} -1672.175 {z} 13.4192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.752 {y} -1672.457 {z} 13.5178 {switchStyle} SwitchType.JumpCut
clear_prints 
gosub @GROVE2_3492
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_4271
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:GROVE2_4271
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4337
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:GROVE2_4337
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14214

:GROVE2_4348
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4374
wait 0
goto @GROVE2_4348

:GROVE2_4374
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GA' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4401
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4451
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4444
goto @GROVE2_5286

:GROVE2_4444
goto @GROVE2_4401

:GROVE2_4451
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4510
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_4510
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14222

:GROVE2_4521
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4547
wait 0
goto @GROVE2_4521

:GROVE2_4547
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GB' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4574
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4624
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4617
goto @GROVE2_5286

:GROVE2_4617
goto @GROVE2_4574

:GROVE2_4624
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14215

:GROVE2_4635
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4661
wait 0
goto @GROVE2_4635

:GROVE2_4661
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GC' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4688
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4738
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4731
goto @GROVE2_5286

:GROVE2_4731
goto @GROVE2_4688

:GROVE2_4738
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4783
clear_char_tasks_immediately $sweet
task_go_to_coord_any_means $sweet {x} 2513.6831 {y} -1672.876 {z} 12.5412 {speed} MoveState.Walk {vehicle} -1

:GROVE2_4783
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_4815
clear_char_tasks_immediately $scplayer
task_look_at_char $scplayer {target} $sweet {time} 10000

:GROVE2_4815
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14216

:GROVE2_4826
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4852
wait 0
goto @GROVE2_4826

:GROVE2_4852
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GD' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4879
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4929
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4922
goto @GROVE2_5286

:GROVE2_4922
goto @GROVE2_4879

:GROVE2_4929
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4994
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_4994
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_5059
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_5059
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14217

:GROVE2_5070
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_5096
wait 0
goto @GROVE2_5070

:GROVE2_5096
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GE' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_5123
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_5173
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_5166
goto @GROVE2_5286

:GROVE2_5166
goto @GROVE2_5123

:GROVE2_5173
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_5218
clear_char_tasks_immediately $sweet
task_go_to_coord_any_means $sweet {x} 2516.2639 {y} -1675.254 {z} 12.9287 {speed} MoveState.Walk {vehicle} -1

:GROVE2_5218
TIMERB = 0

:GROVE2_5225
if 
  2000 > TIMERB
goto_if_false @GROVE2_5279
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_5272
goto @GROVE2_5286

:GROVE2_5272
goto @GROVE2_5225

:GROVE2_5279
gosub @GROVE2_3459

:GROVE2_5286
remove_animation "GANGS"
delete_char $sweet
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_5346
set_char_coordinates $scplayer {x} 2512.407 {y} -1672.111 {z} 12.4895
set_char_heading $scplayer {heading} 78.5658

:GROVE2_5346
gosub @GROVE2_3440
set_ped_density_multiplier 1.0
set_camera_behind_player 
gosub @GROVE2_3492
goto @GROVE2_3152

:GROVE2_5376
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 46@
47@ = 0
return 

:GROVE2_5396
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  47@ == 0
goto_if_false @GROVE2_5439
play_mission_audio MissionAudioSlot.Slot1
print_now 59@s {time} 10000 {flag} 1
47@ = 1

:GROVE2_5439
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  47@ == 1
goto_if_false @GROVE2_5477
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 59@s
47@ = 2

:GROVE2_5477
return 

//-------------Mission 108---------------
// Originally: Riot

:RIOT1
script_name 'RIOT1'
gosub @RIOT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT1_38
gosub @RIOT1_2979

:RIOT1_38
gosub @RIOT1_3082
terminate_this_script 

:RIOT1_47
register_mission_given 
$onmission = 1
load_mission_text 'RIOT1'
clear_prints 
wait 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
make_player_gang_disappear 
set_area_visible 5
load_cutscene 'RIOT_1A'

:RIOT1_202
if 
  not has_cutscene_loaded 
goto_if_false @RIOT1_226
wait 0
goto @RIOT1_202

:RIOT1_226
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT1_235
if 
  not has_cutscene_finished 
goto_if_false @RIOT1_259
wait 0
goto @RIOT1_235

:RIOT1_259
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RIOT1_272
if 
  get_fading_status 
goto_if_false @RIOT1_296
wait 0
goto @RIOT1_272

:RIOT1_296
clear_cutscene 
if 
  not was_cutscene_skipped 
goto_if_false @RIOT1_418
load_cutscene 'RIOT_1B'

:RIOT1_322
if 
  not has_cutscene_loaded 
goto_if_false @RIOT1_346
wait 0
goto @RIOT1_322

:RIOT1_346
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT1_355
if 
  not has_cutscene_finished 
goto_if_false @RIOT1_379
wait 0
goto @RIOT1_355

:RIOT1_379
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RIOT1_392
if 
  get_fading_status 
goto_if_false @RIOT1_416
wait 0
goto @RIOT1_392

:RIOT1_416
clear_cutscene 

:RIOT1_418
set_area_visible 0
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
set_la_riots True
set_int_stat StatId.StartedRiot1 {value} 1
request_model 492
request_model 567
request_model 483
load_special_character 1 {modelName} 'SWEET'
load_all_models_now 
$r1_mothership = copy_char_decision_maker DecisionMakerCharTemplate.Empty
load_scene 1254.6801 {y} -789.39 {z} 91.03
clear_area 1242.9 {y} -805.4 {z} 82.9 {radius} 20.0 {clearParticles} True
custom_plate_for_next_car 483 {text} "OUTTHERE"
$r1_cesars_car = create_car 483 {x} 1242.9 {y} -805.4 {z} 82.9
set_car_heading $r1_cesars_car {heading} 0.0
change_car_colour $r1_cesars_car {color1} 1 {color2} 1
give_vehicle_paintjob $r1_cesars_car {paintjobId} 0
set_can_respray_car $r1_cesars_car {changeColors} False
clear_area 1249.1 {y} -804.9 {z} 82.9 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
$r1_sweets_car = create_car 567 {x} 1249.1 {y} -804.9 {z} 82.9
set_car_heading $r1_sweets_car {heading} 177.7
change_car_colour $r1_sweets_car {color1} 3 {color2} 3
clear_area 1254.3 {y} -806.6 {z} 82.9 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$7994 = create_car 492 {x} 1254.3 {y} -806.6 {z} 82.9
change_car_colour $7994 {color1} 59 {color2} 34
set_car_heading $7994 {heading} 177.7
clear_area 1258.2 {y} -814.4 {z} 83.1 {radius} 60.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1258.2 {y} -814.4 {z} 83.1
set_char_heading $scplayer {heading} 40.0
clear_area 1257.6 {y} -816.6 {z} 83.1 {radius} 5.0 {clearParticles} True
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 1257.6 {y} -816.6 {z} 83.1
set_char_heading $sweet {heading} 39.9
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} $r1_mothership
set_char_only_damaged_by_player $sweet {state} True
$r1_empty_decision_maker = open_sequence_task 
task_go_straight_to_coord -1 {x} 1252.4 {y} -810.3 {z} 83.1 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} $7994 {time} -1 {seat} SeatId.BikeRear
close_sequence_task $r1_empty_decision_maker
perform_sequence_task $sweet {sequence} $r1_empty_decision_maker
clear_sequence_task $r1_empty_decision_maker
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 1257.8 {y} -815.0 {z} 84.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1246.3 {y} -802.5 {z} 82.7 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
enable_ambient_crime False

:RIOT1_1048
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RIOT1_1074
goto @RIOT1_2997

:RIOT1_1074
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1106
goto @RIOT1_2979

:RIOT1_1106
if 
  35@ == 0
goto_if_false @RIOT1_1744
if 
  36@ == 0
goto_if_false @RIOT1_1339
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} $7994 {time} -1
$r1_empty_decision_maker = open_sequence_task 
task_go_straight_to_coord -1 {x} 1252.4 {y} -810.3 {z} 83.1 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} $7994 {time} -1 {seat} SeatId.BikeRear
close_sequence_task $r1_empty_decision_maker
perform_sequence_task $sweet {sequence} $r1_empty_decision_maker
clear_sequence_task $r1_empty_decision_maker
do_fade 500 {direction} Fade.In

:RIOT1_1241
if 
  get_fading_status 
goto_if_false @RIOT1_1265
wait 0
goto @RIOT1_1241

:RIOT1_1265
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1297
goto @RIOT1_2979

:RIOT1_1297
40@ = 1
41@ = 0
gosub @RIOT1_4358
36@ = 1
37@ = 1
skip_cutscene_start_internal @RIOT1_1420

:RIOT1_1339
if 
  36@ == 1
goto_if_false @RIOT1_1744
if 
  40@ == 0
goto_if_false @RIOT1_1744
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_1744
if 
  is_char_in_car $sweet {vehicle} $7994
goto_if_false @RIOT1_1744
37@ = 0

:RIOT1_1420
skip_cutscene_end 
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1454
goto @RIOT1_2979

:RIOT1_1454
if 
  37@ == 1
goto_if_false @RIOT1_1580
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
do_fade 500 {direction} Fade.Out

:RIOT1_1496
if 
  get_fading_status 
goto_if_false @RIOT1_1520
wait 0
goto @RIOT1_1496

:RIOT1_1520
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1552
goto @RIOT1_2979

:RIOT1_1552
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} $7994
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} $7994 {seat} SeatId.BikeRear

:RIOT1_1580
39@ = 1
shut_all_chars_up False
34@ = add_blip_for_coord 2505.3999 {y} -1670.6 {z} 12.1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R1_01' {time} 7000 {flag} 1
TIMERB = 0
if 
  37@ == 1
goto_if_false @RIOT1_1737
do_fade 500 {direction} Fade.In

:RIOT1_1681
if 
  get_fading_status 
goto_if_false @RIOT1_1705
wait 0
goto @RIOT1_1681

:RIOT1_1705
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1737
goto @RIOT1_2979

:RIOT1_1737
35@ = 1

:RIOT1_1744
if 
  35@ == 1
goto_if_false @RIOT1_2600
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @RIOT1_1826
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_1826
set_car_coordinates $7994 {x} 2495.7 {y} -1666.3 {z} 12.1
set_car_heading $7994 {heading} 254.2

:RIOT1_1826
if 
  42@ == 0
goto_if_false @RIOT1_1923
if 
  40@ == 0
goto_if_false @RIOT1_1923
if 
  TIMERB > 10000
goto_if_false @RIOT1_1923
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $sweet {state} True
40@ = 2
41@ = 0
gosub @RIOT1_4358
42@ = 1

:RIOT1_1923
if 
  42@ == 1
goto_if_false @RIOT1_2006
if 
  40@ == 0
goto_if_false @RIOT1_2006
if 
  TIMERB > 7000
goto_if_false @RIOT1_2006
40@ = 3
41@ = 0
gosub @RIOT1_4358
42@ = 2

:RIOT1_2006
if 
  42@ == 2
goto_if_false @RIOT1_2156
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_2156
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2156
if 
  40@ == 0
goto_if_false @RIOT1_2156
if 
  TIMERB > 7000
goto_if_false @RIOT1_2156
mark_car_as_no_longer_needed $r1_cesars_car
mark_car_as_no_longer_needed $r1_sweets_car
40@ = 4
41@ = 0
gosub @RIOT1_4358
42@ = 3

:RIOT1_2156
if 
  42@ == 3
goto_if_false @RIOT1_2296
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_2296
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2296
if 
  40@ == 0
goto_if_false @RIOT1_2296
if 
  TIMERB > 7000
goto_if_false @RIOT1_2296
40@ = 5
41@ = 0
gosub @RIOT1_4358
42@ = 4

:RIOT1_2296
if 
  42@ == 4
goto_if_false @RIOT1_2436
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_2436
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2436
if 
  40@ == 0
goto_if_false @RIOT1_2436
if 
  TIMERB > 7000
goto_if_false @RIOT1_2436
40@ = 6
41@ = 0
gosub @RIOT1_4358
42@ = 5

:RIOT1_2436
if 
  42@ == 5
goto_if_false @RIOT1_2493
if 
  40@ == 0
goto_if_false @RIOT1_2493
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $sweet {state} False
42@ = 6

:RIOT1_2493
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_2600
if 
  is_char_in_car $sweet {vehicle} $7994
goto_if_false @RIOT1_2600
if 
  locate_char_in_car_3d $scplayer {x} 2505.3999 {y} -1670.6 {z} 12.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RIOT1_2600
set_player_control $player1 {state} False
36@ = 0
35@ = 2

:RIOT1_2600
if 
  35@ == 2
goto_if_false @RIOT1_2940
if 
  36@ == 0
goto_if_false @RIOT1_2703
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
40@ = 7
41@ = 0
gosub @RIOT1_4358
36@ = 1
36@ = 1

:RIOT1_2703
if 
  36@ == 1
goto_if_false @RIOT1_2803
if 
  40@ == 0
goto_if_false @RIOT1_2803
$r1_empty_decision_maker = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2518.8999 {y} -1678.2 {z} 13.5 {speed} MoveState.Walk {time} -1
close_sequence_task $r1_empty_decision_maker
perform_sequence_task $sweet {sequence} $r1_empty_decision_maker
clear_sequence_task $r1_empty_decision_maker
TIMERA = 0
36@ = 2

:RIOT1_2803
if 
  36@ == 2
goto_if_false @RIOT1_2940
if 
  TIMERA > 4000
goto_if_false @RIOT1_2940
do_fade 500 {direction} Fade.Out

:RIOT1_2847
if 
  get_fading_status 
goto_if_false @RIOT1_2871
wait 0
goto @RIOT1_2847

:RIOT1_2871
delete_char $sweet
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
shut_all_chars_up False
do_fade 500 {direction} Fade.In

:RIOT1_2909
if 
  get_fading_status 
goto_if_false @RIOT1_2933
wait 0
goto @RIOT1_2909

:RIOT1_2933
goto @RIOT1_2997

:RIOT1_2940
if 
  35@ > 0
goto_if_false @RIOT1_2965
gosub @RIOT1_3244

:RIOT1_2965
gosub @RIOT1_3390
goto @RIOT1_1048

:RIOT1_2979
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RIOT1_2997
$flag_riot_mission_counter += 1
set_int_stat StatId.PassedRiot1 {value} 1
register_mission_passed 'RIOT_1'
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $mansion_contact_blip
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
player_made_progress 1
return 

:RIOT1_3082
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT1_3100
restore_camera_jumpcut 

:RIOT1_3100
shut_all_chars_up False
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 483
remove_char_elegantly $sweet
unload_special_character 1
remove_blip 34@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:RIOT1_3160
if 
  is_char_dead $sweet
goto_if_false @RIOT1_3201
clear_prints 
print_now 'R1_02' {time} 7000 {flag} 1
38@ = 1

:RIOT1_3201
if 
  is_car_dead $7994
goto_if_false @RIOT1_3242
clear_prints 
print_now 'R1_04' {time} 7000 {flag} 1
38@ = 1

:RIOT1_3242
return 

:RIOT1_3244
if 
  39@ == 0
goto_if_false @RIOT1_3324
if 
  is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_3324
clear_this_print 'R1_03'
remove_blip 34@
34@ = add_blip_for_coord 2505.3999 {y} -1670.6 {z} 12.1
39@ = 1

:RIOT1_3324
if 
  39@ == 1
goto_if_false @RIOT1_3388
if 
  not is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_3388
remove_blip 34@
34@ = add_blip_for_car $7994
set_blip_as_friendly 34@ {state} True
39@ = 0

:RIOT1_3388
return 

:RIOT1_3390
if 
  35@ == 1
goto_if_false @RIOT1_4277
if 
  is_char_sitting_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_3588
if or
  40@ == 2
  40@ == 3
  40@ == 4
  40@ == 5
  40@ == 6
goto_if_false @RIOT1_3588
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3574
gosub @RIOT1_5492
gosub @RIOT1_5599
if 
  not is_char_dead $sweet
goto_if_false @RIOT1_3536
gosub @RIOT1_5753
goto @RIOT1_3567

:RIOT1_3536
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3567
goto @RIOT1_3588

:RIOT1_3574
TIMERB = 0
40@ = 0

:RIOT1_3588
if 
  not is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_3724
if 
  11 > 40@
goto_if_false @RIOT1_3724
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3651
41@ += 1

:RIOT1_3651
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 44@(41@,15s)
set_lvar_int_to_lvar_int 94@ = 40@
set_lvar_int_to_lvar_int 95@ = 41@
40@ = 11
41@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_3724
if 
  40@ == 11
goto_if_false @RIOT1_4049
if 
  not is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_3997
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3974
gosub @RIOT1_5492
gosub @RIOT1_5599
if 
  36@ == 0
goto_if_false @RIOT1_3878
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @RIOT1_3847
gosub @RIOT1_5753
goto @RIOT1_3878

:RIOT1_3847
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3878
if 
  36@ == 1
goto_if_false @RIOT1_3967
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @RIOT1_3936
gosub @RIOT1_5753
goto @RIOT1_3967

:RIOT1_3936
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3967
goto @RIOT1_3997

:RIOT1_3974
print_now 'R1_03' {time} 11000 {flag} 1
40@ = 12

:RIOT1_3997
if 
  is_char_sitting_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_4049
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
40@ = 13
41@ = 0
clear_prints 

:RIOT1_4049
if 
  40@ == 12
goto_if_false @RIOT1_4102
if 
  is_char_sitting_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_4102
40@ = 13
41@ = 0
clear_prints 

:RIOT1_4102
if 
  40@ == 13
goto_if_false @RIOT1_4277
if 
  is_char_sitting_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_4203
TIMERB = 0
set_lvar_int_to_lvar_int 40@ = 94@
set_lvar_int_to_lvar_int 41@ = 95@
gosub @RIOT1_4358
if 
  94@ == 0
goto_if_false @RIOT1_4203
print_now 'R1_01' {time} 7000 {flag} 1

:RIOT1_4203
if 
  not is_char_in_car $scplayer {vehicle} $7994
goto_if_false @RIOT1_4277
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
40@ = 11
41@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_4277
if or
  40@ == 1
  40@ == 7
goto_if_false @RIOT1_4356
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_4349
gosub @RIOT1_5492
gosub @RIOT1_5599
gosub @RIOT1_5753
goto @RIOT1_4356

:RIOT1_4349
40@ = 0

:RIOT1_4356
return 

:RIOT1_4358
if 
  40@ == 1
goto_if_false @RIOT1_4427
set_lvar_text_label 44@s = 'ROT1_AA'
set_lvar_text_label 46@s = 'ROT1_AB'
set_lvar_int_to_constant 74@ = 14629
set_lvar_int_to_constant 75@ = 14600
89@ = 2

:RIOT1_4427
if 
  40@ == 2
goto_if_false @RIOT1_4562
set_lvar_text_label 44@s = 'ROT1_BA'
set_lvar_text_label 46@s = 'ROT1_BB'
set_lvar_text_label 48@s = 'ROT1_BC'
set_lvar_text_label 50@s = 'ROT1_BD'
set_lvar_text_label 52@s = 'ROT1_BE'
set_lvar_int_to_constant 74@ = 14601
set_lvar_int_to_constant 75@ = 14602
set_lvar_int_to_constant 76@ = 14630
set_lvar_int_to_constant 77@ = 14603
set_lvar_int_to_constant 78@ = 14631
89@ = 5

:RIOT1_4562
if 
  40@ == 3
goto_if_false @RIOT1_4873
set_lvar_text_label 44@s = 'ROT1_EA'
set_lvar_text_label 46@s = 'ROT1_EB'
set_lvar_text_label 48@s = 'ROT1_EC'
set_lvar_text_label 50@s = 'ROT1_ED'
set_lvar_text_label 52@s = 'ROT1_EE'
set_lvar_text_label 54@s = 'ROT1_EF'
set_lvar_text_label 56@s = 'ROT1_EG'
set_lvar_text_label 58@s = 'ROT1_EH'
set_lvar_text_label 60@s = 'ROT1_EJ'
set_lvar_text_label 62@s = 'ROT1_EK'
set_lvar_text_label 64@s = 'ROT1_EL'
set_lvar_text_label 66@s = 'ROT1_EM'
set_lvar_text_label 68@s = 'ROT1_EN'
set_lvar_int_to_constant 74@ = 14605
set_lvar_int_to_constant 75@ = 14634
set_lvar_int_to_constant 76@ = 14635
set_lvar_int_to_constant 77@ = 14606
set_lvar_int_to_constant 78@ = 14636
set_lvar_int_to_constant 79@ = 14607
set_lvar_int_to_constant 80@ = 14637
set_lvar_int_to_constant 81@ = 14608
set_lvar_int_to_constant 82@ = 14638
set_lvar_int_to_constant 83@ = 14609
set_lvar_int_to_constant 84@ = 14639
set_lvar_int_to_constant 85@ = 14610
set_lvar_int_to_constant 86@ = 14640
89@ = 13

:RIOT1_4873
if 
  40@ == 4
goto_if_false @RIOT1_4964
set_lvar_text_label 44@s = 'ROT1_DA'
set_lvar_text_label 46@s = 'ROT1_DB'
set_lvar_text_label 48@s = 'ROT1_DC'
set_lvar_int_to_constant 74@ = 14632
set_lvar_int_to_constant 75@ = 14604
set_lvar_int_to_constant 76@ = 14633
89@ = 3

:RIOT1_4964
if 
  40@ == 5
goto_if_false @RIOT1_5143
set_lvar_text_label 44@s = 'ROT1_FA'
set_lvar_text_label 46@s = 'ROT1_FB'
set_lvar_text_label 48@s = 'ROT1_FC'
set_lvar_text_label 50@s = 'ROT1_FD'
set_lvar_text_label 52@s = 'ROT1_FE'
set_lvar_text_label 54@s = 'ROT1_FF'
set_lvar_text_label 56@s = 'ROT1_FG'
set_lvar_int_to_constant 74@ = 14641
set_lvar_int_to_constant 75@ = 14642
set_lvar_int_to_constant 76@ = 14643
set_lvar_int_to_constant 77@ = 14644
set_lvar_int_to_constant 78@ = 14611
set_lvar_int_to_constant 79@ = 14612
set_lvar_int_to_constant 80@ = 14613
89@ = 7

:RIOT1_5143
if 
  40@ == 6
goto_if_false @RIOT1_5234
set_lvar_text_label 44@s = 'ROT1_GL'
set_lvar_text_label 46@s = 'ROT1_GA'
set_lvar_text_label 48@s = 'ROT1_FH'
set_lvar_int_to_constant 74@ = 14624
set_lvar_int_to_constant 75@ = 14615
set_lvar_int_to_constant 76@ = 14614
89@ = 3

:RIOT1_5234
if 
  40@ == 7
goto_if_false @RIOT1_5347
set_lvar_text_label 44@s = 'ROT1_HC'
set_lvar_text_label 46@s = 'ROT1_HD'
set_lvar_text_label 48@s = 'ROT1_HE'
set_lvar_text_label 50@s = 'ROT1_HF'
set_lvar_int_to_constant 74@ = 14627
set_lvar_int_to_constant 75@ = 14646
set_lvar_int_to_constant 76@ = 14647
set_lvar_int_to_constant 77@ = 14628
89@ = 4

:RIOT1_5347
if 
  40@ == 11
goto_if_false @RIOT1_5461
set_lvar_text_label 44@s = 'SWE1_BG'
set_lvar_text_label 46@s = 'SWE1_BK'
set_lvar_text_label 48@s = 'SWE1_BL'
set_lvar_text_label 50@s = 'SWE1_BM'
set_lvar_int_to_constant 74@ = 7463
set_lvar_int_to_constant 75@ = 7466
set_lvar_int_to_constant 76@ = 7467
set_lvar_int_to_constant 77@ = 7468
set_lvar_int_to_lvar_int 89@ = 43@

:RIOT1_5461
set_lvar_int_to_lvar_int 92@ = 41@
90@ = 0
91@ = 0
93@ = 1
return 

:RIOT1_5492
if 
  is_int_lvar_greater_than_int_lvar 89@ > 92@
goto_if_false @RIOT1_5597
if 
  90@ == 0
goto_if_false @RIOT1_5554
load_mission_audio MissionAudioSlot.Slot1 {audioId} 74@(92@,15i)
92@ += 1
90@ = 1

:RIOT1_5554
if 
  91@ == 0
goto_if_false @RIOT1_5597
load_mission_audio MissionAudioSlot.Slot2 {audioId} 74@(92@,15i)
92@ += 1
91@ = 1

:RIOT1_5597
return 

:RIOT1_5599
if 
  93@ == 1
goto_if_false @RIOT1_5675
if 
  90@ == 1
goto_if_false @RIOT1_5675
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RIOT1_5675
play_mission_audio MissionAudioSlot.Slot1
print_now 44@(41@,15s) {time} 4500 {flag} 1
90@ = 2

:RIOT1_5675
if 
  93@ == 2
goto_if_false @RIOT1_5751
if 
  91@ == 1
goto_if_false @RIOT1_5751
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @RIOT1_5751
play_mission_audio MissionAudioSlot.Slot2
print_now 44@(41@,15s) {time} 4500 {flag} 1
91@ = 2

:RIOT1_5751
return 

:RIOT1_5753
if 
  90@ == 2
goto_if_false @RIOT1_5816
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RIOT1_5816
clear_this_print 44@(41@,15s)
41@ += 1
93@ = 2
90@ = 0

:RIOT1_5816
if 
  91@ == 2
goto_if_false @RIOT1_5879
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @RIOT1_5879
clear_this_print 44@(41@,15s)
41@ += 1
93@ = 1
91@ = 0

:RIOT1_5879
return 

//-------------Mission 109---------------
// Originally: Los Desperados

:RIOT2
script_name 'RIOT2'
gosub @RIOT2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT2_38
gosub @RIOT2_30241

:RIOT2_38
gosub @RIOT2_30499
terminate_this_script 

:RIOT2_47
$onmission = 1
register_mission_given 
load_mission_text 'RIOT2'
if 
  $onmission == 0
goto_if_false @RIOT2_350
88@ = create_object #BBALL_INGAME {x} 0.0 {y} 0.0 {z} 0.0
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
37@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
43@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
49@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
55@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
61@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
79@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
96@ = add_blip_for_char 37@
102@ = add_blip_for_char 43@
108@ = add_blip_for_char 49@
114@ = add_blip_for_char 55@
120@ = add_blip_for_char 61@
132@ = add_blip_for_char 79@

:RIOT2_350
clear_prints 
wait 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
187@ = 0
set_lvar_int_to_constant 146@ = 108
set_lvar_int_to_constant 147@ = 109
148@ = 0
149@ = 2
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
262@ = 0.0
263@ = 0.0
264@ = 0.0
168@ = 0
169@ = 0
177@ = 0
178@ = 0
185@ = 0
188@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
183@ = 0.0
180@ = 0
181@ = 60
270@ = 0
make_player_gang_disappear 
set_area_visible 1
load_cutscene 'RIOT_2'

:RIOT2_756
if 
  not has_cutscene_loaded 
goto_if_false @RIOT2_780
wait 0
goto @RIOT2_756

:RIOT2_780
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT2_789
if 
  not has_cutscene_finished 
goto_if_false @RIOT2_813
wait 0
goto @RIOT2_789

:RIOT2_813
do_fade 0 {direction} Fade.Out

:RIOT2_819
if 
  get_fading_status 
goto_if_false @RIOT2_843
wait 0
goto @RIOT2_819

:RIOT2_843
set_area_visible 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
load_special_character 1 {modelName} 'CESAR'
request_model 114
request_model 115
request_model 116
request_model 108
request_model 109
request_model 339
request_model 348
request_model 372
load_all_models_now 
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
265@ = load_char_decision_maker DecisionMakerType.Tough
266@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
267@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_area 2520.8 {y} -1678.5 {z} 14.2 {radius} 30.0 {clearParticles} True
load_scene 2520.8 {y} -1678.5 {z} 14.2
set_char_coordinates $scplayer {x} 2520.8 {y} -1678.5 {z} 14.2
set_char_heading $scplayer {heading} 68.6
clear_area 2520.8 {y} -1678.5 {z} 14.2 {radius} 1.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} 2519.8 {y} -1677.5 {z} 13.7
set_char_heading $cesar {heading} 68.6
give_weapon_to_char $cesar {weaponType} WeaponType.DesertEagle {ammo} 30000
set_char_never_targetted $cesar {state} True
add_armour_to_char $cesar {amount} 100
set_char_relationship $cesar {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player $cesar {state} True
set_char_suffers_critical_hits $cesar {state} False
set_char_decision_maker $cesar {handleOrTemplate} 265@
switch_ped_roads_off 1945.8 {leftBottomY} -1956.5 {leftBottomZ} 0.0 {rightTopX} 1642.9 {rightTopY} -2174.3 {rightTopZ} 50.0
clear_area 1784.6 {y} -1969.5 {z} 13.1 {radius} 30.0 {clearParticles} True
35@ = create_char PedType.Mission1 {modelId} 114 {x} 1784.6 {y} -1969.5 {z} 13.1
set_char_heading 35@ {heading} 103.1
give_weapon_to_char 35@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted 35@ {state} True
add_armour_to_char 35@ {amount} 100
set_char_relationship 35@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 35@ {state} True
set_char_suffers_critical_hits 35@ {state} False
set_char_decision_maker 35@ {handleOrTemplate} 266@
34@ = create_char PedType.Mission1 {modelId} 115 {x} 1784.4 {y} -1971.1 {z} 13.1
set_char_heading 34@ {heading} 52.8
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted 34@ {state} True
add_armour_to_char 34@ {amount} 100
set_char_relationship 34@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 34@ {state} True
set_char_suffers_critical_hits 34@ {state} False
set_char_decision_maker 34@ {handleOrTemplate} 266@
36@ = create_char PedType.Mission1 {modelId} 116 {x} 1782.6 {y} -1969.4 {z} 13.1
set_char_heading 36@ {heading} 250.2
give_weapon_to_char 36@ {weaponType} WeaponType.Katana {ammo} 30000
set_char_never_targetted 36@ {state} True
add_armour_to_char 36@ {amount} 100
set_char_relationship 36@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 36@ {state} True
set_char_suffers_critical_hits 36@ {state} False
set_char_proofs 36@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_decision_maker 36@ {handleOrTemplate} 266@
change_garage_type 'DUF_LAS' {type} GarageType.ForScriptToOpen
switch_emergency_services False
close_garage 'DUF_LAS'
set_zone_no_cops 'ELCO' {state} True
184@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} 1877.54 {y} -1982.63 {z} 13.48
enable_ambient_crime False

:RIOT2_1585
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RIOT2_1611
goto @RIOT2_30259

:RIOT2_1611
alter_wanted_level $player1 {wantedLevel} 0
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_1650
goto @RIOT2_30241

:RIOT2_1650
174@ = get_game_timer 
set_lvar_int_to_lvar_int 175@ = 174@
sub_int_lvar_from_int_lvar 175@ -= 176@
set_lvar_int_to_lvar_int 176@ = 174@
add_int_lvar_to_int_lvar 170@ += 175@
add_int_lvar_to_int_lvar 171@ += 175@
add_int_lvar_to_int_lvar 172@ += 175@
add_int_lvar_to_int_lvar 173@ += 175@
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @RIOT2_1766
set_char_coordinates $scplayer {x} 1776.0 {y} -1988.1 {z} 12.9
set_char_coordinates $cesar {x} 1776.0 {y} -1990.1 {z} 12.9

:RIOT2_1766
$minutes, 177@ = get_group_size $Players_Group
if 
  142@ == 0
goto_if_false @RIOT2_3308
if 
  143@ == 0
goto_if_false @RIOT2_2116
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 2509.0 {y} -1672.7 {z} 13.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2523.1001 {y} -1678.2 {z} 15.2 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2512.8 {y} -1673.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2514.1001 {y} -1675.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
do_fade 500 {direction} Fade.In

:RIOT2_2018
if 
  get_fading_status 
goto_if_false @RIOT2_2042
wait 0
goto @RIOT2_2018

:RIOT2_2042
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2074
goto @RIOT2_30241

:RIOT2_2074
185@ = 1
186@ = 0
gosub @RIOT2_40912
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_2249

:RIOT2_2116
if 
  143@ == 1
goto_if_false @RIOT2_2206
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_2206
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
143@ = 2

:RIOT2_2206
if 
  143@ == 2
goto_if_false @RIOT2_2607
if 
  185@ == 0
goto_if_false @RIOT2_2607
144@ = 0

:RIOT2_2249
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2283
goto @RIOT2_30241

:RIOT2_2283
if 
  144@ == 1
goto_if_false @RIOT2_2441
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_2325
if 
  get_fading_status 
goto_if_false @RIOT2_2349
wait 0
goto @RIOT2_2325

:RIOT2_2349
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2381
goto @RIOT2_30241

:RIOT2_2381
set_char_coordinates $scplayer {x} 2512.8 {y} -1673.2 {z} 12.5
set_char_heading $scplayer {heading} 40.6
set_char_coordinates $cesar {x} 2514.1001 {y} -1675.2 {z} 12.5
set_char_heading $cesar {heading} 220.0

:RIOT2_2441
clear_char_tasks_immediately $scplayer
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
167@ = 1
set_group_decision_maker $Players_Group {handleOrTemplate} 267@
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R2_01' {time} 60000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_2600
do_fade 500 {direction} Fade.In

:RIOT2_2544
if 
  get_fading_status 
goto_if_false @RIOT2_2568
wait 0
goto @RIOT2_2544

:RIOT2_2568
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2600
goto @RIOT2_30241

:RIOT2_2600
143@ = 3

:RIOT2_2607
if 
  143@ > 2
goto_if_false @RIOT2_2632
gosub @RIOT2_37859

:RIOT2_2632
if 
  143@ == 3
goto_if_false @RIOT2_2730
if 
  177@ > 2
goto_if_false @RIOT2_2730
remove_blip 89@
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False
print_now 'R2_13' {time} 7000 {flag} 1
TIMERB = 0
143@ = 4

:RIOT2_2730
if 
  143@ == 4
goto_if_false @RIOT2_3308
if 
  187@ == 0
goto_if_false @RIOT2_2827
if 
  TIMERB > 7000
goto_if_false @RIOT2_2827
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
185@ = 2
186@ = 0
gosub @RIOT2_40912
187@ = 1

:RIOT2_2827
if 
  187@ == 1
goto_if_false @RIOT2_2877
if 
  185@ == 0
goto_if_false @RIOT2_2877
TIMERB = 0
187@ = 2

:RIOT2_2877
if 
  187@ == 2
goto_if_false @RIOT2_2942
if 
  TIMERB > 7000
goto_if_false @RIOT2_2942
185@ = 3
186@ = 0
gosub @RIOT2_40912
187@ = 3

:RIOT2_2942
if 
  187@ == 3
goto_if_false @RIOT2_2999
if 
  185@ == 0
goto_if_false @RIOT2_2999
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
187@ = 4

:RIOT2_2999
if 
  167@ == 1
goto_if_false @RIOT2_3207
$minutes, 177@ = get_group_size $Players_Group
if 
  178@ == 0
goto_if_false @RIOT2_3105
if 
  3 > 177@
goto_if_false @RIOT2_3105
remove_blip 89@
clear_this_print 'R2_13'
print_now 'R2_01' {time} 60000 {flag} 1
178@ = 1

:RIOT2_3105
if 
  178@ == 1
goto_if_false @RIOT2_3207
if 
  177@ > 2
goto_if_false @RIOT2_3207
remove_blip 89@
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False
clear_this_print 'R2_01'
print_now 'R2_13' {time} 7000 {flag} 1
178@ = 0

:RIOT2_3207
if 
  178@ == 0
goto_if_false @RIOT2_3308
if 
  locate_char_any_means_3d $scplayer {x} 1774.9 {y} -1974.9 {z} 13.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RIOT2_3308
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
187@ = 0
143@ = 0
142@ = 1

:RIOT2_3308
if 
  142@ == 1
goto_if_false @RIOT2_6797
if 
  143@ == 0
goto_if_false @RIOT2_3975
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_3368
if 
  get_fading_status 
goto_if_false @RIOT2_3392
wait 0
goto @RIOT2_3368

:RIOT2_3392
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3424
goto @RIOT2_30241

:RIOT2_3424
clear_area 1781.1 {y} -1974.8 {z} 13.1 {radius} 30.0 {clearParticles} True
shut_all_chars_up True
set_ped_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_char_from_group $cesar
request_model #BBALL_INGAME
request_animation "BSKTBALL"
request_animation "SMOKING"
request_animation "GANGS"
load_all_models_now 
make_player_gang_disappear 
if 
  not is_char_in_any_car $scplayer
goto_if_false @RIOT2_3618
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1781.1 {y} -1974.8 {z} 13.1
set_char_heading $scplayer {heading} 325.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1781.8 {y} -1976.4 {z} 13.1
set_char_heading $cesar {heading} 302.3
goto @RIOT2_3656

:RIOT2_3618
87@ = store_car_char_is_in_no_save $scplayer
set_car_coordinates 87@ {x} 1774.9 {y} -1974.9 {z} 13.1
task_leave_any_car $scplayer
task_leave_any_car $cesar

:RIOT2_3656
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1781.1 {y} -1974.8 {z} 13.1
set_char_heading $scplayer {heading} 325.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1781.8 {y} -1976.4 {z} 13.1
set_char_heading $cesar {heading} 302.3
268@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
set_fixed_camera_position 1781.1 {y} -1970.4 {z} 14.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1783.2 {y} -1969.9 {z} 14.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_3898
if 
  get_fading_status 
goto_if_false @RIOT2_3922
wait 0
goto @RIOT2_3898

:RIOT2_3922
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3954
goto @RIOT2_30241

:RIOT2_3954
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_5994

:RIOT2_3975
if 
  143@ == 1
goto_if_false @RIOT2_4028
185@ = 4
186@ = 0
188@ = 2
gosub @RIOT2_40912
143@ = 2

:RIOT2_4028
if 
  143@ == 2
goto_if_false @RIOT2_4259
if 
  185@ == 0
goto_if_false @RIOT2_4259
set_fixed_camera_position 1784.5 {y} -1967.7 {z} 14.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1781.4 {y} -1973.5 {z} 14.3 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $scplayer {x} 1782.3 {y} -1972.8 {z} 13.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char 36@ {target} $scplayer
task_go_straight_to_coord 34@ {x} 1783.8 {y} -1972.4 {z} 13.1 {speed} MoveState.Walk {time} -1
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1783.3 {y} -1973.0 {z} 13.1 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
185@ = 4
186@ = 2
188@ = 4
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_4259
if 
  143@ == 3
goto_if_false @RIOT2_4367
if 
  185@ == 0
goto_if_false @RIOT2_4367
268@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
143@ = 4

:RIOT2_4367
if 
  143@ == 4
goto_if_false @RIOT2_4586
if 
  185@ == 0
goto_if_false @RIOT2_4586
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_4586
clear_char_tasks 34@
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
185@ = 4
186@ = 4
188@ = 5
gosub @RIOT2_40912
143@ = 5

:RIOT2_4586
if 
  143@ == 5
goto_if_false @RIOT2_4636
if 
  185@ == 0
goto_if_false @RIOT2_4636
TIMERA = 0
143@ = 6

:RIOT2_4636
if 
  143@ == 6
goto_if_false @RIOT2_5228
if 
  TIMERA > 1000
goto_if_false @RIOT2_5228
do_fade 500 {direction} Fade.Out

:RIOT2_4680
if 
  get_fading_status 
goto_if_false @RIOT2_4704
wait 0
goto @RIOT2_4680

:RIOT2_4704
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_4736
goto @RIOT2_30241

:RIOT2_4736
clear_area 1793.8 {y} -1970.6 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 1789.5 {y} -1968.5 {z} 12.5
set_char_heading $scplayer {heading} 234.3
task_go_straight_to_coord $scplayer {x} 1798.2 {y} -1974.4 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks $cesar
set_char_coordinates $cesar {x} 1789.0 {y} -1970.6 {z} 12.5
set_char_heading $cesar {heading} 231.5
task_go_straight_to_coord $cesar {x} 1794.0 {y} -1973.5 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 35@ {x} 1789.3 {y} -1967.4 {z} 12.5
set_char_heading 35@ {heading} 231.5
task_go_straight_to_coord 35@ {x} 1796.3 {y} -1970.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 36@ {x} 1787.4 {y} -1967.2 {z} 12.5
set_char_heading 36@ {heading} 234.5
task_go_straight_to_coord 36@ {x} 1792.9 {y} -1972.3 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 34@ {x} 1786.3 {y} -1966.7 {z} 12.5
set_char_heading 34@ {heading} 251.5
task_go_straight_to_coord 34@ {x} 1793.8 {y} -1970.6 {z} 12.5 {speed} MoveState.Walk {time} -1
if 
  150@ == 0
goto_if_false @RIOT2_5072
gosub @RIOT2_31232
150@ = 1

:RIOT2_5072
set_fixed_camera_position 1788.0 {y} -1968.0 {z} 14.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1799.5 {y} -1973.8 {z} 13.6 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_5130
if 
  get_fading_status 
goto_if_false @RIOT2_5154
wait 0
goto @RIOT2_5130

:RIOT2_5154
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_5186
goto @RIOT2_30241

:RIOT2_5186
185@ = 4
186@ = 5
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 7

:RIOT2_5228
if 
  143@ == 7
goto_if_false @RIOT2_5376
if 
  185@ == 0
goto_if_false @RIOT2_5376
if 
  TIMERA > 4000
goto_if_false @RIOT2_5376
185@ = 4
186@ = 8
188@ = 10
gosub @RIOT2_40912
set_fixed_camera_position 1823.1 {y} -1997.4 {z} 13.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1829.3 {y} -2003.7 {z} 14.4 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 8

:RIOT2_5376
if 
  143@ == 8
goto_if_false @RIOT2_5914
if 
  not is_char_dead 38@
goto_if_false @RIOT2_5675
if 
  is_object_attached 88@
goto_if_false @RIOT2_5637
if 
  is_char_playing_anim 38@ {animationName} "BBALL_IDLELOOP"
goto_if_false @RIOT2_5630
183@ = get_char_anim_current_time 38@ {animationName} "BBALL_IDLELOOP"
if 
  is_object_playing_anim 88@ {animationName} "BBALL_IDLELOOP_O"
goto_if_false @RIOT2_5549
set_object_anim_current_time 88@ {animationName} "BBALL_IDLELOOP_O" {time} 183@
goto @RIOT2_5630

:RIOT2_5549
if 
play_object_anim 88@ {animationName} "BBALL_IDLELOOP_O" {animationFile} "BSKTBALL" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @RIOT2_5630
set_object_anim_speed 88@ {animationName} "BBALL_IDLELOOP_O" {speed} 0.0

:RIOT2_5630
goto @RIOT2_5675

:RIOT2_5637
attach_object_to_char 88@ {handle} 38@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RIOT2_5675
if 
  185@ == 0
goto_if_false @RIOT2_5914
if 
  TIMERA > 4000
goto_if_false @RIOT2_5914
set_fixed_camera_position 1827.4 {y} -1998.7 {z} 13.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1830.2 {y} -1995.2 {z} 13.4 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 42@
goto_if_false @RIOT2_5872
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1831.1 {y} -1995.9 {z} 12.6 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 180.0
task_play_anim -1 {animationName} "M_SMK_IN" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 42@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_5872
185@ = 4
186@ = 10
188@ = 12
gosub @RIOT2_40912
TIMERA = 0
143@ = 9

:RIOT2_5914
if 
  143@ == 9
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
if 
  TIMERA > 4000
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
144@ = 0

:RIOT2_5994
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6028
goto @RIOT2_30241

:RIOT2_6028
if 
  144@ == 1
goto_if_false @RIOT2_6445
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_6070
if 
  get_fading_status 
goto_if_false @RIOT2_6094
wait 0
goto @RIOT2_6070

:RIOT2_6094
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6126
goto @RIOT2_30241

:RIOT2_6126
if 
  150@ == 0
goto_if_false @RIOT2_6158
gosub @RIOT2_31232
150@ = 1

:RIOT2_6158
if 
  not is_char_dead 42@
goto_if_false @RIOT2_6270
clear_char_tasks_immediately 42@
set_char_coordinates 42@ {x} 1831.1 {y} -1995.9 {z} 12.6
set_char_heading 42@ {heading} 180.0
268@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMK_IN" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 42@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_6270
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1793.8 {y} -1970.6 {z} 12.5
set_char_heading $scplayer {heading} 234.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1792.9 {y} -1972.3 {z} 12.5
set_char_heading $cesar {heading} 231.5
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1794.8 {y} -1969.8 {z} 12.5
set_char_heading 35@ {heading} 231.5
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1791.8 {y} -1971.1 {z} 12.5
set_char_heading 36@ {heading} 234.5
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1792.5 {y} -1970.4 {z} 12.5
set_char_heading 34@ {heading} 251.5

:RIOT2_6445
delete_object 88@
mark_model_as_no_longer_needed #BBALL_INGAME
if 
  not is_char_dead 38@
goto_if_false @RIOT2_6486
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 3000
clear_char_tasks_immediately 38@

:RIOT2_6486
if 
  not is_char_dead 39@
goto_if_false @RIOT2_6507
clear_char_tasks_immediately 38@

:RIOT2_6507
if 
  not is_char_dead 38@
goto_if_false @RIOT2_6563
if 
  not is_char_dead 39@
goto_if_false @RIOT2_6563
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:RIOT2_6563
if 
  not is_char_dead 42@
goto_if_false @RIOT2_6589
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 3000

:RIOT2_6589
set_char_decision_maker 35@ {handleOrTemplate} 265@
set_char_decision_maker 34@ {handleOrTemplate} 265@
set_char_decision_maker 36@ {handleOrTemplate} 265@
make_player_gang_reappear 
set_gunshot_sense_range_for_riot2 15.0
remove_animation "GANGS"
shut_all_chars_up False
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R2_03' {time} 7000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_6776
do_fade 500 {direction} Fade.In

:RIOT2_6720
if 
  get_fading_status 
goto_if_false @RIOT2_6744
wait 0
goto @RIOT2_6720

:RIOT2_6744
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6776
goto @RIOT2_30241

:RIOT2_6776
143@ = 0
142@ = 2
TIMERB = 0

:RIOT2_6797
if 
  142@ == 2
goto_if_false @RIOT2_13879
if 
  150@ == 1
goto_if_false @RIOT2_7103
if 
  6 > 151@
goto_if_false @RIOT2_7096
if 
  not is_char_dead 37@(151@,6i)
goto_if_false @RIOT2_7075
if 
  has_char_spotted_char 37@(151@,6i) {target} $scplayer
goto_if_false @RIOT2_7031
if 
  not is_char_dead 40@
goto_if_false @RIOT2_6959
268@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 1.5 {heading} 0.0
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 40@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_6959
if 
  not is_char_dead 41@
goto_if_false @RIOT2_7024
268@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 3.0 {heading} 0.0
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 41@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_7024
150@ = 3

:RIOT2_7031
164@ = get_char_health 37@(151@,6i)
if 
  100 > 164@
goto_if_false @RIOT2_7068
150@ = 4

:RIOT2_7068
goto @RIOT2_7082

:RIOT2_7075
150@ = 4

:RIOT2_7082
151@ += 1
goto @RIOT2_7103

:RIOT2_7096
151@ = 0

:RIOT2_7103
if 
  150@ == 3
goto_if_false @RIOT2_7303
if 
  6 > 151@
goto_if_false @RIOT2_7296
if 
  not is_char_dead 37@(151@,6i)
goto_if_false @RIOT2_7275
164@ = get_char_health 37@(151@,6i)
if 
  100 > 164@
goto_if_false @RIOT2_7196
150@ = 4

:RIOT2_7196
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7238
if 
  has_char_spotted_char 37@ {target} $scplayer
goto_if_false @RIOT2_7238
150@ = 4

:RIOT2_7238
if 
  is_player_targetting_char $player1 {handle} 37@(151@,6i)
goto_if_false @RIOT2_7268
150@ = 4

:RIOT2_7268
goto @RIOT2_7282

:RIOT2_7275
150@ = 4

:RIOT2_7282
151@ += 1
goto @RIOT2_7303

:RIOT2_7296
151@ = 0

:RIOT2_7303
if 
  150@ == 4
goto_if_false @RIOT2_7421
if 
  185@ == 0
goto_if_false @RIOT2_7414
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_7414
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_7414
185@ = 5
186@ = 11
188@ = 12
gosub @RIOT2_40912

:RIOT2_7414
150@ = 5

:RIOT2_7421
if 
  150@ > 3
goto_if_false @RIOT2_7658
if or
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7526
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7526
if 
  149@ == 2
goto_if_false @RIOT2_7519
149@ = 0

:RIOT2_7519
gosub @RIOT2_32036

:RIOT2_7526
if 
  158@ > 0
goto_if_false @RIOT2_7658
if 
  161@ > 0
goto_if_false @RIOT2_7658
if 
  152@ > 0
goto_if_false @RIOT2_7658
if 
  155@ > 0
goto_if_false @RIOT2_7658
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7658
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_7658
task_kill_char_on_foot 37@ {target} $scplayer
149@ = 3

:RIOT2_7658
if 
  150@ == 5
goto_if_false @RIOT2_7908
if 
  is_char_dead 37@
goto_if_false @RIOT2_7908
if 
  is_char_dead 38@
goto_if_false @RIOT2_7908
if 
  is_char_dead 39@
goto_if_false @RIOT2_7908
if 
  is_char_dead 40@
goto_if_false @RIOT2_7908
if 
  is_char_dead 41@
goto_if_false @RIOT2_7908
if 
  is_char_dead 42@
goto_if_false @RIOT2_7908
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
if and
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7878
158@ = 1

:RIOT2_7878
remove_animation "BSKTBALL"
remove_animation "SMOKING"
150@ = 6

:RIOT2_7908
if 
  6 > 150@
goto_if_false @RIOT2_8082
if 
  is_char_dead 37@
goto_if_false @RIOT2_7952
remove_blip 96@
mark_char_as_no_longer_needed 37@

:RIOT2_7952
if 
  is_char_dead 38@
goto_if_false @RIOT2_7978
remove_blip 97@
mark_char_as_no_longer_needed 38@

:RIOT2_7978
if 
  is_char_dead 39@
goto_if_false @RIOT2_8004
remove_blip 98@
mark_char_as_no_longer_needed 39@

:RIOT2_8004
if 
  is_char_dead 40@
goto_if_false @RIOT2_8030
remove_blip 99@
mark_char_as_no_longer_needed 40@

:RIOT2_8030
if 
  is_char_dead 41@
goto_if_false @RIOT2_8056
remove_blip 100@
mark_char_as_no_longer_needed 41@

:RIOT2_8056
if 
  is_char_dead 42@
goto_if_false @RIOT2_8082
remove_blip 101@
mark_char_as_no_longer_needed 42@

:RIOT2_8082
if 
  152@ == 1
goto_if_false @RIOT2_8121
gosub @RIOT2_32547
171@ = 0
152@ = 2

:RIOT2_8121
if 
  152@ == 2
goto_if_false @RIOT2_8198
if 
  is_char_dead 43@
goto_if_false @RIOT2_8198
if 
  is_char_dead 44@
goto_if_false @RIOT2_8198
remove_blip 102@
mark_char_as_no_longer_needed 43@
remove_blip 103@
mark_char_as_no_longer_needed 44@
152@ = 3

:RIOT2_8198
if 
  3 > 152@
goto_if_false @RIOT2_8268
if 
  is_char_dead 43@
goto_if_false @RIOT2_8242
remove_blip 102@
mark_char_as_no_longer_needed 43@

:RIOT2_8242
if 
  is_char_dead 44@
goto_if_false @RIOT2_8268
remove_blip 103@
mark_char_as_no_longer_needed 44@

:RIOT2_8268
if 
  152@ > 0
goto_if_false @RIOT2_8351
if 
  153@ == 0
goto_if_false @RIOT2_8351
if 
  171@ > 500
goto_if_false @RIOT2_8351
153@ = 1
gosub @RIOT2_32547
153@ = 2
171@ = 0

:RIOT2_8351
if 
  153@ == 2
goto_if_false @RIOT2_8428
if 
  is_char_dead 45@
goto_if_false @RIOT2_8428
if 
  is_char_dead 46@
goto_if_false @RIOT2_8428
remove_blip 104@
mark_char_as_no_longer_needed 45@
remove_blip 105@
mark_char_as_no_longer_needed 46@
153@ = 3

:RIOT2_8428
if 
  3 > 153@
goto_if_false @RIOT2_8498
if 
  is_char_dead 45@
goto_if_false @RIOT2_8472
remove_blip 104@
mark_char_as_no_longer_needed 45@

:RIOT2_8472
if 
  is_char_dead 46@
goto_if_false @RIOT2_8498
remove_blip 105@
mark_char_as_no_longer_needed 46@

:RIOT2_8498
if 
  152@ > 0
goto_if_false @RIOT2_8599
if 
  153@ > 0
goto_if_false @RIOT2_8599
if 
  154@ == 0
goto_if_false @RIOT2_8599
if 
  171@ > 500
goto_if_false @RIOT2_8599
154@ = 1
gosub @RIOT2_32547
154@ = 2
171@ = 0

:RIOT2_8599
if 
  154@ == 2
goto_if_false @RIOT2_8676
if 
  is_char_dead 47@
goto_if_false @RIOT2_8676
if 
  is_char_dead 48@
goto_if_false @RIOT2_8676
remove_blip 106@
mark_char_as_no_longer_needed 47@
remove_blip 107@
mark_char_as_no_longer_needed 48@
154@ = 3

:RIOT2_8676
if 
  3 > 154@
goto_if_false @RIOT2_8746
if 
  is_char_dead 47@
goto_if_false @RIOT2_8720
remove_blip 106@
mark_char_as_no_longer_needed 47@

:RIOT2_8720
if 
  is_char_dead 48@
goto_if_false @RIOT2_8746
remove_blip 107@
mark_char_as_no_longer_needed 48@

:RIOT2_8746
if 
  152@ == 3
goto_if_false @RIOT2_8970
if 
  153@ == 3
goto_if_false @RIOT2_8970
if 
  154@ == 3
goto_if_false @RIOT2_8970
if 
  155@ == 0
goto_if_false @RIOT2_8832
155@ = 1
goto @RIOT2_8889

:RIOT2_8832
if 
  158@ == 0
goto_if_false @RIOT2_8864
158@ = 1
goto @RIOT2_8889

:RIOT2_8864
if 
  161@ == 0
goto_if_false @RIOT2_8889
161@ = 1

:RIOT2_8889
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
152@ = 4
153@ = 4
154@ = 4

:RIOT2_8970
if 
  155@ == 1
goto_if_false @RIOT2_9009
gosub @RIOT2_33875
170@ = 0
155@ = 2

:RIOT2_9009
if 
  155@ == 2
goto_if_false @RIOT2_9086
if 
  is_char_dead 49@
goto_if_false @RIOT2_9086
if 
  is_char_dead 50@
goto_if_false @RIOT2_9086
remove_blip 108@
mark_char_as_no_longer_needed 49@
remove_blip 109@
mark_char_as_no_longer_needed 50@
155@ = 3

:RIOT2_9086
if 
  3 > 155@
goto_if_false @RIOT2_9156
if 
  is_char_dead 49@
goto_if_false @RIOT2_9130
remove_blip 108@
mark_char_as_no_longer_needed 49@

:RIOT2_9130
if 
  is_char_dead 50@
goto_if_false @RIOT2_9156
remove_blip 109@
mark_char_as_no_longer_needed 50@

:RIOT2_9156
if 
  155@ > 0
goto_if_false @RIOT2_9239
if 
  156@ == 0
goto_if_false @RIOT2_9239
if 
  170@ > 500
goto_if_false @RIOT2_9239
156@ = 1
gosub @RIOT2_33875
156@ = 2
170@ = 0

:RIOT2_9239
if 
  156@ == 2
goto_if_false @RIOT2_9316
if 
  is_char_dead 51@
goto_if_false @RIOT2_9316
if 
  is_char_dead 52@
goto_if_false @RIOT2_9316
remove_blip 110@
mark_char_as_no_longer_needed 51@
remove_blip 111@
mark_char_as_no_longer_needed 52@
156@ = 3

:RIOT2_9316
if 
  3 > 156@
goto_if_false @RIOT2_9386
if 
  is_char_dead 51@
goto_if_false @RIOT2_9360
remove_blip 110@
mark_char_as_no_longer_needed 51@

:RIOT2_9360
if 
  is_char_dead 52@
goto_if_false @RIOT2_9386
remove_blip 111@
mark_char_as_no_longer_needed 52@

:RIOT2_9386
if 
  155@ > 0
goto_if_false @RIOT2_9487
if 
  156@ > 0
goto_if_false @RIOT2_9487
if 
  157@ == 0
goto_if_false @RIOT2_9487
if 
  170@ > 500
goto_if_false @RIOT2_9487
157@ = 1
gosub @RIOT2_33875
157@ = 2
170@ = 0

:RIOT2_9487
if 
  157@ == 2
goto_if_false @RIOT2_9564
if 
  is_char_dead 53@
goto_if_false @RIOT2_9564
if 
  is_char_dead 54@
goto_if_false @RIOT2_9564
remove_blip 112@
mark_char_as_no_longer_needed 53@
remove_blip 113@
mark_char_as_no_longer_needed 54@
157@ = 3

:RIOT2_9564
if 
  3 > 157@
goto_if_false @RIOT2_9634
if 
  is_char_dead 53@
goto_if_false @RIOT2_9608
remove_blip 112@
mark_char_as_no_longer_needed 53@

:RIOT2_9608
if 
  is_char_dead 54@
goto_if_false @RIOT2_9634
remove_blip 113@
mark_char_as_no_longer_needed 54@

:RIOT2_9634
if 
  155@ == 3
goto_if_false @RIOT2_9858
if 
  156@ == 3
goto_if_false @RIOT2_9858
if 
  157@ == 3
goto_if_false @RIOT2_9858
if 
  161@ == 0
goto_if_false @RIOT2_9720
161@ = 1
goto @RIOT2_9777

:RIOT2_9720
if 
  152@ == 0
goto_if_false @RIOT2_9752
152@ = 1
goto @RIOT2_9777

:RIOT2_9752
if 
  158@ == 0
goto_if_false @RIOT2_9777
158@ = 1

:RIOT2_9777
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
remove_blip 108@
remove_blip 109@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
155@ = 4
156@ = 4
157@ = 4

:RIOT2_9858
if 
  158@ == 1
goto_if_false @RIOT2_9897
gosub @RIOT2_35203
173@ = 0
158@ = 2

:RIOT2_9897
if 
  158@ == 2
goto_if_false @RIOT2_9974
if 
  is_char_dead 55@
goto_if_false @RIOT2_9974
if 
  is_char_dead 56@
goto_if_false @RIOT2_9974
remove_blip 114@
mark_char_as_no_longer_needed 55@
remove_blip 115@
mark_char_as_no_longer_needed 56@
158@ = 3

:RIOT2_9974
if 
  3 > 158@
goto_if_false @RIOT2_10044
if 
  is_char_dead 55@
goto_if_false @RIOT2_10018
remove_blip 114@
mark_char_as_no_longer_needed 55@

:RIOT2_10018
if 
  is_char_dead 56@
goto_if_false @RIOT2_10044
remove_blip 115@
mark_char_as_no_longer_needed 56@

:RIOT2_10044
if 
  158@ > 0
goto_if_false @RIOT2_10127
if 
  159@ == 0
goto_if_false @RIOT2_10127
if 
  173@ > 500
goto_if_false @RIOT2_10127
159@ = 1
gosub @RIOT2_35203
159@ = 2
173@ = 0

:RIOT2_10127
if 
  159@ == 2
goto_if_false @RIOT2_10204
if 
  is_char_dead 57@
goto_if_false @RIOT2_10204
if 
  is_char_dead 58@
goto_if_false @RIOT2_10204
remove_blip 116@
mark_char_as_no_longer_needed 57@
remove_blip 117@
mark_char_as_no_longer_needed 58@
159@ = 3

:RIOT2_10204
if 
  3 > 159@
goto_if_false @RIOT2_10274
if 
  is_char_dead 57@
goto_if_false @RIOT2_10248
remove_blip 116@
mark_char_as_no_longer_needed 57@

:RIOT2_10248
if 
  is_char_dead 58@
goto_if_false @RIOT2_10274
remove_blip 117@
mark_char_as_no_longer_needed 58@

:RIOT2_10274
if 
  158@ > 0
goto_if_false @RIOT2_10375
if 
  159@ > 0
goto_if_false @RIOT2_10375
if 
  160@ == 0
goto_if_false @RIOT2_10375
if 
  173@ > 500
goto_if_false @RIOT2_10375
160@ = 1
gosub @RIOT2_35203
160@ = 2
173@ = 0

:RIOT2_10375
if 
  160@ == 2
goto_if_false @RIOT2_10452
if 
  is_char_dead 59@
goto_if_false @RIOT2_10452
if 
  is_char_dead 60@
goto_if_false @RIOT2_10452
remove_blip 118@
mark_char_as_no_longer_needed 59@
remove_blip 119@
mark_char_as_no_longer_needed 60@
160@ = 3

:RIOT2_10452
if 
  3 > 160@
goto_if_false @RIOT2_10522
if 
  is_char_dead 59@
goto_if_false @RIOT2_10496
remove_blip 118@
mark_char_as_no_longer_needed 59@

:RIOT2_10496
if 
  is_char_dead 60@
goto_if_false @RIOT2_10522
remove_blip 119@
mark_char_as_no_longer_needed 60@

:RIOT2_10522
if 
  158@ == 3
goto_if_false @RIOT2_10746
if 
  159@ == 3
goto_if_false @RIOT2_10746
if 
  160@ == 3
goto_if_false @RIOT2_10746
if 
  152@ == 0
goto_if_false @RIOT2_10608
152@ = 1
goto @RIOT2_10665

:RIOT2_10608
if 
  161@ == 0
goto_if_false @RIOT2_10640
161@ = 1
goto @RIOT2_10665

:RIOT2_10640
if 
  155@ == 0
goto_if_false @RIOT2_10665
155@ = 1

:RIOT2_10665
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 118@
remove_blip 119@
158@ = 4
159@ = 4
160@ = 4

:RIOT2_10746
if 
  161@ == 1
goto_if_false @RIOT2_10785
gosub @RIOT2_36531
172@ = 0
161@ = 2

:RIOT2_10785
if 
  161@ == 2
goto_if_false @RIOT2_10862
if 
  is_char_dead 61@
goto_if_false @RIOT2_10862
if 
  is_char_dead 62@
goto_if_false @RIOT2_10862
remove_blip 120@
mark_char_as_no_longer_needed 61@
remove_blip 121@
mark_char_as_no_longer_needed 62@
161@ = 3

:RIOT2_10862
if 
  3 > 161@
goto_if_false @RIOT2_10932
if 
  is_char_dead 61@
goto_if_false @RIOT2_10906
remove_blip 120@
mark_char_as_no_longer_needed 61@

:RIOT2_10906
if 
  is_char_dead 62@
goto_if_false @RIOT2_10932
remove_blip 121@
mark_char_as_no_longer_needed 62@

:RIOT2_10932
if 
  161@ > 0
goto_if_false @RIOT2_11015
if 
  162@ == 0
goto_if_false @RIOT2_11015
if 
  172@ > 500
goto_if_false @RIOT2_11015
162@ = 1
gosub @RIOT2_36531
162@ = 2
172@ = 0

:RIOT2_11015
if 
  162@ == 2
goto_if_false @RIOT2_11092
if 
  is_char_dead 63@
goto_if_false @RIOT2_11092
if 
  is_char_dead 64@
goto_if_false @RIOT2_11092
remove_blip 122@
mark_char_as_no_longer_needed 63@
remove_blip 123@
mark_char_as_no_longer_needed 64@
162@ = 3

:RIOT2_11092
if 
  3 > 162@
goto_if_false @RIOT2_11162
if 
  is_char_dead 63@
goto_if_false @RIOT2_11136
remove_blip 122@
mark_char_as_no_longer_needed 63@

:RIOT2_11136
if 
  is_char_dead 64@
goto_if_false @RIOT2_11162
remove_blip 123@
mark_char_as_no_longer_needed 64@

:RIOT2_11162
if 
  161@ > 0
goto_if_false @RIOT2_11263
if 
  162@ > 0
goto_if_false @RIOT2_11263
if 
  163@ == 0
goto_if_false @RIOT2_11263
if 
  172@ > 500
goto_if_false @RIOT2_11263
163@ = 1
gosub @RIOT2_36531
163@ = 2
172@ = 0

:RIOT2_11263
if 
  163@ == 2
goto_if_false @RIOT2_11340
if 
  is_char_dead 65@
goto_if_false @RIOT2_11340
if 
  is_char_dead 66@
goto_if_false @RIOT2_11340
remove_blip 124@
mark_char_as_no_longer_needed 65@
remove_blip 125@
mark_char_as_no_longer_needed 66@
163@ = 3

:RIOT2_11340
if 
  3 > 163@
goto_if_false @RIOT2_11410
if 
  is_char_dead 65@
goto_if_false @RIOT2_11384
remove_blip 124@
mark_char_as_no_longer_needed 65@

:RIOT2_11384
if 
  is_char_dead 66@
goto_if_false @RIOT2_11410
remove_blip 125@
mark_char_as_no_longer_needed 66@

:RIOT2_11410
if 
  161@ == 3
goto_if_false @RIOT2_11634
if 
  162@ == 3
goto_if_false @RIOT2_11634
if 
  163@ == 3
goto_if_false @RIOT2_11634
if 
  158@ == 0
goto_if_false @RIOT2_11496
158@ = 1
goto @RIOT2_11553

:RIOT2_11496
if 
  155@ == 0
goto_if_false @RIOT2_11528
155@ = 1
goto @RIOT2_11553

:RIOT2_11528
if 
  152@ == 0
goto_if_false @RIOT2_11553
152@ = 1

:RIOT2_11553
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
161@ = 4
162@ = 4
163@ = 4

:RIOT2_11634
if 
  187@ == 0
goto_if_false @RIOT2_11796
if 
  6 > 165@
goto_if_false @RIOT2_11796
if 
  TIMERB > 7000
goto_if_false @RIOT2_11796
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_11796
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_11796
if 
  185@ == 0
goto_if_false @RIOT2_11796
shut_char_up_for_scripted_speech $cesar {state} True
185@ = 5
186@ = 3
188@ = 4
gosub @RIOT2_40912
187@ = 1

:RIOT2_11796
if 
  165@ == 0
goto_if_false @RIOT2_11937
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1824.9 {y} -1986.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1822.3 {y} -1986.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1820.9 {y} -1984.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1824.5 {y} -1984.0 {z} 12.6 {speed} MoveState.Walk {time} -2
165@ = 1

:RIOT2_11937
if 
  165@ == 1
goto_if_false @RIOT2_12485
if 
  150@ == 6
goto_if_false @RIOT2_12189
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1856.6 {y} -2008.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1859.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1853.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1854.8 {y} -2005.5 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12182
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12182
if 
  185@ == 0
goto_if_false @RIOT2_12182
185@ = 5
186@ = 4
188@ = 5
gosub @RIOT2_40912

:RIOT2_12182
165@ = 2

:RIOT2_12189
if 
  is_char_dead 38@
goto_if_false @RIOT2_12485
if 
  is_char_dead 39@
goto_if_false @RIOT2_12485
if 
  is_char_dead 40@
goto_if_false @RIOT2_12485
if 
  is_char_dead 41@
goto_if_false @RIOT2_12485
if 
  is_char_dead 42@
goto_if_false @RIOT2_12485
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1856.6 {y} -2008.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1859.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1853.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1854.8 {y} -2005.5 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12478
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12478
if 
  185@ == 0
goto_if_false @RIOT2_12478
185@ = 5
186@ = 5
188@ = 6
gosub @RIOT2_40912

:RIOT2_12478
165@ = 2

:RIOT2_12485
if 
  165@ == 2
goto_if_false @RIOT2_12737
if 
  158@ == 4
goto_if_false @RIOT2_12737
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1858.8 {y} -1993.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1858.8 {y} -1991.6 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1858.8 {y} -1989.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1858.8 {y} -1987.7 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12730
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12730
if 
  185@ == 0
goto_if_false @RIOT2_12730
185@ = 5
186@ = 6
188@ = 7
gosub @RIOT2_40912

:RIOT2_12730
165@ = 3

:RIOT2_12737
if 
  165@ == 3
goto_if_false @RIOT2_12989
if 
  152@ == 4
goto_if_false @RIOT2_12989
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1886.2 {y} -1995.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1886.2 {y} -1993.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1886.2 {y} -1991.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1886.2 {y} -1989.2 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12982
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12982
if 
  185@ == 0
goto_if_false @RIOT2_12982
185@ = 5
186@ = 7
188@ = 8
gosub @RIOT2_40912

:RIOT2_12982
165@ = 4

:RIOT2_12989
if 
  165@ == 4
goto_if_false @RIOT2_13241
if 
  155@ == 4
goto_if_false @RIOT2_13241
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1903.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1905.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1907.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1909.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_13234
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_13234
if 
  185@ == 0
goto_if_false @RIOT2_13234
185@ = 5
186@ = 8
188@ = 9
gosub @RIOT2_40912

:RIOT2_13234
165@ = 5

:RIOT2_13241
if 
  165@ == 5
goto_if_false @RIOT2_13723
if 
  161@ == 4
goto_if_false @RIOT2_13723
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1916.8 {y} -2059.2 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1921.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1914.5 {y} -2058.3999 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1922.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1918.1 {y} -2061.8 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1923.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1919.8 {y} -2059.6001 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1924.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 36@ {sequence} 268@
clear_sequence_task 268@
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_13684
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_13684
185@ = 5
186@ = 0
188@ = 1
gosub @RIOT2_40912

:RIOT2_13684
remove_blip 89@
89@ = add_blip_for_coord 1922.8 {y} -2075.0 {z} 12.5
187@ = 0
165@ = 6

:RIOT2_13723
if 
  165@ == 6
goto_if_false @RIOT2_13879
if 
  187@ == 0
goto_if_false @RIOT2_13800
if 
  185@ == 0
goto_if_false @RIOT2_13800
print_now 'R2_04' {time} 11000 {flag} 1
187@ = 1

:RIOT2_13800
if 
  locate_char_on_foot_3d $scplayer {x} 1922.8 {y} -2075.0 {z} 12.5 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @RIOT2_13879
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
143@ = 0
142@ = 3

:RIOT2_13879
if 
  142@ == 3
goto_if_false @RIOT2_19283
if 
  143@ == 0
goto_if_false @RIOT2_15311
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_13939
if 
  get_fading_status 
goto_if_false @RIOT2_13963
wait 0
goto @RIOT2_13939

:RIOT2_13963
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_13995
goto @RIOT2_30241

:RIOT2_13995
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
shut_char_up_for_scripted_speech $cesar {state} False
set_car_density_multiplier 0.0
if 
  not is_garage_closed 'DUF_LAS'
goto_if_false @RIOT2_14066
close_garage 'DUF_LAS'

:RIOT2_14066
request_model 466
request_model 359
request_animation "CAR"
request_animation "SWAT"
request_animation "CRACK"
request_animation "CASINO"
load_all_models_now 
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_14158
goto @RIOT2_30241

:RIOT2_14158
clear_area 1897.0 {y} -2103.8 {z} 12.3 {radius} 300.0 {clearParticles} True
67@ = create_car 466 {x} 1897.0 {y} -2103.8 {z} 12.3
set_car_heading 67@ {heading} 2.4
freeze_car_position 67@ {state} True
lock_car_doors 67@ {lockStatus} CarLock.Locked
set_car_proofs 67@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
68@ = create_car 466 {x} 1857.3 {y} -2101.3 {z} 12.3
freeze_car_position 68@ {state} True
set_car_heading 68@ {heading} 359.7
lock_car_doors 68@ {lockStatus} CarLock.Locked
148@ = generate_random_int_in_range 0 {max} 2
69@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1860.9 {y} -2099.6001 {z} 12.6
set_char_heading 69@ {heading} 270.0
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 69@ {handleOrTemplate} 266@
task_play_anim 69@ {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
126@ = add_blip_for_char 69@
change_blip_scale 126@ {size} 1
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1859.9 {y} -2102.5 {z} 12.5
set_char_heading 70@ {heading} 48.0
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 70@ {handleOrTemplate} 266@
127@ = add_blip_for_char 70@
change_blip_scale 127@ {size} 1
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
71@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1855.6 {y} -2102.6001 {z} 12.5
set_char_heading 71@ {heading} 282.0
give_weapon_to_char 71@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 71@ {handleOrTemplate} 266@
task_play_anim 71@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
128@ = add_blip_for_char 71@
change_blip_scale 128@ {size} 1
set_char_accuracy 71@ {accuracy} 181@
add_armour_to_char 71@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
72@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1855.6 {y} -2099.6001 {z} 12.5
set_char_heading 72@ {heading} 282.0
give_weapon_to_char 72@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 72@ {handleOrTemplate} 266@
task_play_anim 72@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
129@ = add_blip_for_char 72@
change_blip_scale 129@ {size} 1
set_char_accuracy 72@ {accuracy} 181@
144@ = 1
skip_cutscene_start_internal @RIOT2_16263
clear_area 1918.1 {y} -2076.8999 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1918.1 {y} -2076.8999 {z} 12.5
set_char_heading $scplayer {heading} 171.1
task_go_straight_to_coord $scplayer {x} 1916.1 {y} -2093.3 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1919.1 {y} -2077.7 {z} 12.5
set_char_heading $cesar {heading} 171.5
task_go_straight_to_coord $cesar {x} 1917.1 {y} -2094.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker $cesar {handleOrTemplate} 266@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1920.3 {y} -2075.3 {z} 12.5
set_char_heading 35@ {heading} 189.5
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
task_go_straight_to_coord 35@ {x} 1918.3 {y} -2091.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 35@ {handleOrTemplate} 266@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1918.8 {y} -2075.3 {z} 12.5
set_char_heading 34@ {heading} 165.9
task_go_straight_to_coord 34@ {x} 1916.8 {y} -2091.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 34@ {handleOrTemplate} 266@
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1919.6 {y} -2074.0 {z} 12.5
set_char_heading 36@ {heading} 173.0
task_go_straight_to_coord 36@ {x} 1917.6 {y} -2090.3999 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 36@ {handleOrTemplate} 266@
set_fixed_camera_position 1914.65 {y} -2087.8 {z} 13.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1917.9 {y} -2080.7 {z} 13.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_15213
if 
  get_fading_status 
goto_if_false @RIOT2_15237
wait 0
goto @RIOT2_15213

:RIOT2_15237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_15269
goto @RIOT2_30241

:RIOT2_15269
185@ = 6
186@ = 0
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_15311
if 
  143@ == 1
goto_if_false @RIOT2_15732
if 
  TIMERA > 8000
goto_if_false @RIOT2_15732
clear_area 1916.9 {y} -2101.1001 {z} 12.6 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1916.9 {y} -2101.1001 {z} 12.6
set_char_heading $scplayer {heading} 90.0
task_go_straight_to_coord $scplayer {x} 1912.4 {y} -2101.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1916.9 {y} -2102.1001 {z} 12.6
set_char_heading $cesar {heading} 90.0
task_go_straight_to_coord $cesar {x} 1912.4 {y} -2102.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1916.9 {y} -2103.1001 {z} 12.6
set_char_heading 35@ {heading} 90.0
task_go_straight_to_coord 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1916.9 {y} -2100.1001 {z} 12.6
set_char_heading 36@ {heading} 90.0
task_go_straight_to_coord 36@ {x} 1912.4 {y} -2100.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1916.9 {y} -2099.1001 {z} 12.6
set_char_heading 34@ {heading} 90.0
task_go_straight_to_coord 34@ {x} 1912.4 {y} -2099.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1916.5 {y} -2100.8999 {z} 12.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1906.2 {y} -2101.0 {z} 14.8 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 2

:RIOT2_15732
if 
  143@ == 2
goto_if_false @RIOT2_16201
if 
  185@ == 0
goto_if_false @RIOT2_16201
if 
  TIMERA > 4000
goto_if_false @RIOT2_16201
if 
  not is_char_dead 69@
goto_if_false @RIOT2_15886
268@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_15886
if 
  not is_char_dead 70@
goto_if_false @RIOT2_15960
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_toggle_duck -1 {state} True
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_15960
if 
  not is_char_dead 71@
goto_if_false @RIOT2_16034
268@ = open_sequence_task 
task_pause -1 {time} 700
task_stand_still -1 {time} 100
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_16034
if 
  not is_char_dead 72@
goto_if_false @RIOT2_16108
268@ = open_sequence_task 
task_pause -1 {time} 1000
task_stand_still -1 {time} 100
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 72@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_16108
185@ = 6
186@ = 6
188@ = 7
gosub @RIOT2_40912
set_fixed_camera_position 1866.1 {y} -2101.8 {z} 13.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1849.9 {y} -2101.0 {z} 14.98 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 3

:RIOT2_16201
if 
  143@ == 3
goto_if_false @RIOT2_19283
if 
  185@ == 0
goto_if_false @RIOT2_19283
if 
  TIMERA > 4000
goto_if_false @RIOT2_19283
144@ = 0

:RIOT2_16263
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16297
goto @RIOT2_30241

:RIOT2_16297
if 
  144@ == 1
goto_if_false @RIOT2_16654
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_16339
if 
  get_fading_status 
goto_if_false @RIOT2_16363
wait 0
goto @RIOT2_16339

:RIOT2_16363
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16395
goto @RIOT2_30241

:RIOT2_16395
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.4 {y} -2101.1001 {z} 12.5
set_char_heading $scplayer {heading} 90.0
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1912.4 {y} -2102.1001 {z} 12.5
set_char_heading $cesar {heading} 90.0
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5
set_char_heading 35@ {heading} 90.0
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1912.4 {y} -2100.1001 {z} 12.5
set_char_heading 36@ {heading} 90.0
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1912.4 {y} -2099.1001 {z} 12.5
set_char_heading 34@ {heading} 90.0
if 
  not is_char_dead 69@
goto_if_false @RIOT2_16591
clear_char_tasks_immediately 69@

:RIOT2_16591
if 
  not is_char_dead 70@
goto_if_false @RIOT2_16612
clear_char_tasks_immediately 70@

:RIOT2_16612
if 
  not is_char_dead 71@
goto_if_false @RIOT2_16633
clear_char_tasks_immediately 71@

:RIOT2_16633
if 
  not is_char_dead 72@
goto_if_false @RIOT2_16654
clear_char_tasks_immediately 72@

:RIOT2_16654
set_char_stay_in_same_place $cesar {state} True
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1871.1 {y} -2102.3 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2102.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5
set_char_heading 35@ {heading} 90.0
set_char_stay_in_same_place 35@ {state} True
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1878.7 {y} -2105.5 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
if 
  not is_car_dead 68@
goto_if_false @RIOT2_17114
task_destroy_car -1 {vehicle} 68@

:RIOT2_17114
task_pause -1 {time} 500
task_play_anim -1 {animationName} "MANWINB" {animationFile} "CASINO" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
set_char_stay_in_same_place 34@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1891.2 {y} -2099.6001 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1903.7 {y} -2096.6001 {z} 12.5 {heading} 75.0 {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1903.5 {y} -2096.6001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 75.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1894.6 {y} -2099.2 {z} 12.4 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_play_anim_non_interruptable -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1884.6 {y} -2107.6001 {z} 12.4 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1874.9 {y} -2102.8 {z} 12.4 {speed} MoveState.Run {time} -1
task_play_anim_non_interruptable -1 {animationName} "KO_SPIN_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 36@ {sequence} 268@
clear_sequence_task 268@
if 
  not is_char_dead 69@
goto_if_false @RIOT2_18065
set_char_stay_in_same_place 69@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {heading} 275.0 {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@

:RIOT2_18065
if 
  not is_char_dead 70@
goto_if_false @RIOT2_18089
task_kill_char_on_foot 70@ {target} $scplayer

:RIOT2_18089
if 
  not is_char_dead 71@
goto_if_false @RIOT2_18424
set_char_stay_in_same_place 71@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1864.1 {y} -2107.3999 {z} 12.6 {heading} 275.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1864.1 {y} -2107.3999 {z} 12.6 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@

:RIOT2_18424
if 
  not is_char_dead 72@
goto_if_false @RIOT2_18448
task_kill_char_on_foot 72@ {target} $scplayer

:RIOT2_18448
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 73@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1837.5 {y} -2102.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@
130@ = add_blip_for_char 73@
change_blip_scale 130@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 74@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1833.8 {y} -2097.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@
131@ = add_blip_for_char 74@
change_blip_scale 131@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
75@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1879.7 {y} -2094.8999 {z} 12.5
set_char_heading 75@ {heading} 180.0
give_weapon_to_char 75@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 75@ {handleOrTemplate} 266@
set_char_stay_in_same_place 75@ {state} True
set_char_accuracy 75@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
76@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1878.7 {y} -2094.8999 {z} 12.5
set_char_heading 76@ {heading} 180.0
give_weapon_to_char 76@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 76@ {handleOrTemplate} 266@
set_char_stay_in_same_place 76@ {state} True
set_char_accuracy 76@ {accuracy} 181@
add_armour_to_char 76@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
77@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1876.7 {y} -2094.8999 {z} 12.5
set_char_heading 77@ {heading} 180.0
give_weapon_to_char 77@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 77@ {handleOrTemplate} 266@
set_char_stay_in_same_place 77@ {state} True
set_char_accuracy 77@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
78@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1875.2 {y} -2094.8999 {z} 12.5
set_char_heading 78@ {heading} 180.0
give_weapon_to_char 78@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 78@ {handleOrTemplate} 266@
set_char_proofs 78@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_stay_in_same_place 78@ {state} True
set_char_accuracy 78@ {accuracy} 181@
add_armour_to_char 78@ {amount} 50
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
set_gunshot_sense_range_for_riot2 -1.0
shut_all_chars_up True
remove_animation "CAR"
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_05' {time} 7000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_19269
do_fade 500 {direction} Fade.In

:RIOT2_19213
if 
  get_fading_status 
goto_if_false @RIOT2_19237
wait 0
goto @RIOT2_19213

:RIOT2_19237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_19269
goto @RIOT2_30241

:RIOT2_19269
143@ = 0
142@ = 4

:RIOT2_19283
if 
  142@ == 4
goto_if_false @RIOT2_21030
if 
  not is_char_dead 69@
goto_if_false @RIOT2_19400
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1877.6 {leftBottomY} -2050.8 {rightTopX} 1815.3 {rightTopY} -2171.3999 {drawSphere} False
  has_char_been_damaged_by_char 69@ {handle} $scplayer
goto_if_false @RIOT2_19400
$task_status = get_script_task_status 69@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19400
task_kill_char_on_foot 69@ {target} $scplayer

:RIOT2_19400
if 
  not is_char_dead 71@
goto_if_false @RIOT2_19499
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1872.6 {leftBottomY} -2050.8 {rightTopX} 1815.3 {rightTopY} -2171.3999 {drawSphere} False
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @RIOT2_19499
$task_status = get_script_task_status 71@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19499
task_kill_char_on_foot 71@ {target} $scplayer

:RIOT2_19499
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_19572
180@ = get_char_health $cesar
if 
  50 > 180@
goto_if_false @RIOT2_19572
task_die_named_anim $cesar {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_19572
if 
  not is_char_dead 34@
goto_if_false @RIOT2_19645
180@ = get_char_health 34@
if 
  50 > 180@
goto_if_false @RIOT2_19645
task_die_named_anim 34@ {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_19645
if 
  143@ == 0
goto_if_false @RIOT2_19736
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19736
270@ = get_sequence_progress 36@
if 
  270@ >= 3
goto_if_false @RIOT2_19736
open_garage 'DUF_LAS'
143@ = 1

:RIOT2_19736
if 
  143@ == 1
goto_if_false @RIOT2_20402
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_20402
270@ = get_sequence_progress 36@
if 
  270@ >= 5
goto_if_false @RIOT2_20402
if 
  not is_char_dead 75@
goto_if_false @RIOT2_19934
269@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 269@
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 75@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
138@ = add_blip_for_char 75@
change_blip_scale 138@ {size} 1

:RIOT2_19934
if 
  not is_char_dead 76@
goto_if_false @RIOT2_20083
set_char_stay_in_same_place 76@ {state} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_play_anim_non_interruptable -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 76@ {sequence} 268@
clear_sequence_task 268@
139@ = add_blip_for_char 76@
change_blip_scale 139@ {size} 1

:RIOT2_20083
if 
  not is_char_dead 77@
goto_if_false @RIOT2_20213
set_char_stay_in_same_place 77@ {state} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 77@ {sequence} 268@
clear_sequence_task 268@
set_char_kinda_stay_in_same_place 77@ {state} True
140@ = add_blip_for_char 77@
change_blip_scale 140@ {size} 1

:RIOT2_20213
if 
  not is_char_dead 78@
goto_if_false @RIOT2_20358
set_char_stay_in_same_place 78@ {state} False
set_char_proofs 78@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 78@ {sequence} 268@
clear_sequence_task 268@
set_char_kinda_stay_in_same_place 78@ {state} True
141@ = add_blip_for_char 78@
change_blip_scale 141@ {size} 1

:RIOT2_20358
clear_prints 
185@ = 7
186@ = 0
gosub @RIOT2_40912
set_char_bleeding 36@ {state} True
TIMERB = 0
143@ = 2

:RIOT2_20402
if 
  143@ == 2
goto_if_false @RIOT2_20453
if 
  TIMERB > 1000
goto_if_false @RIOT2_20453
set_char_collision 36@ {state} False
143@ = 3

:RIOT2_20453
if 
  143@ == 3
goto_if_false @RIOT2_20752
if 
  is_char_dead 69@
goto_if_false @RIOT2_20752
if 
  is_char_dead 70@
goto_if_false @RIOT2_20752
if 
  is_char_dead 71@
goto_if_false @RIOT2_20752
if 
  is_char_dead 72@
goto_if_false @RIOT2_20752
if 
  is_char_dead 73@
goto_if_false @RIOT2_20752
if 
  is_char_dead 74@
goto_if_false @RIOT2_20752
if 
  is_char_dead 75@
goto_if_false @RIOT2_20752
if 
  is_char_dead 76@
goto_if_false @RIOT2_20752
if 
  is_char_dead 77@
goto_if_false @RIOT2_20752
if 
  is_char_dead 78@
goto_if_false @RIOT2_20752
remove_blip 126@
remove_blip 127@
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 138@
remove_blip 139@
remove_blip 140@
remove_blip 141@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
TIMERA = 0
143@ = 0
142@ = 5

:RIOT2_20752
if 
  is_char_dead 69@
goto_if_false @RIOT2_20778
mark_char_as_no_longer_needed 69@
remove_blip 126@

:RIOT2_20778
if 
  is_char_dead 70@
goto_if_false @RIOT2_20804
mark_char_as_no_longer_needed 70@
remove_blip 127@

:RIOT2_20804
if 
  is_char_dead 71@
goto_if_false @RIOT2_20830
mark_char_as_no_longer_needed 71@
remove_blip 128@

:RIOT2_20830
if 
  is_char_dead 72@
goto_if_false @RIOT2_20856
mark_char_as_no_longer_needed 72@
remove_blip 129@

:RIOT2_20856
if 
  is_char_dead 73@
goto_if_false @RIOT2_20882
mark_char_as_no_longer_needed 73@
remove_blip 130@

:RIOT2_20882
if 
  is_char_dead 74@
goto_if_false @RIOT2_20908
mark_char_as_no_longer_needed 74@
remove_blip 131@

:RIOT2_20908
if 
  143@ > 1
goto_if_false @RIOT2_21030
if 
  is_char_dead 75@
goto_if_false @RIOT2_20952
mark_char_as_no_longer_needed 75@
remove_blip 138@

:RIOT2_20952
if 
  is_char_dead 76@
goto_if_false @RIOT2_20978
mark_char_as_no_longer_needed 76@
remove_blip 139@

:RIOT2_20978
if 
  is_char_dead 77@
goto_if_false @RIOT2_21004
mark_char_as_no_longer_needed 77@
remove_blip 140@

:RIOT2_21004
if 
  is_char_dead 78@
goto_if_false @RIOT2_21030
mark_char_as_no_longer_needed 78@
remove_blip 141@

:RIOT2_21030
if 
  142@ == 5
goto_if_false @RIOT2_24541
if 
  143@ == 0
goto_if_false @RIOT2_21495
if 
  TIMERA > 2000
goto_if_false @RIOT2_21495
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
delete_car 68@
clear_area 1905.1 {y} -2103.8999 {z} 12.5 {radius} 60.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1905.1 {y} -2103.8999 {z} 12.5
set_char_heading $scplayer {heading} 80.2
clear_char_tasks $cesar
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1897.8 {y} -2099.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1890.8 {y} -2099.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1877.2 {y} -2101.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1900.4 {y} -2098.2 {z} 12.5
set_char_heading 34@ {heading} 92.3
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1875.7 {y} -2102.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 95.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
144@ = 1
skip_cutscene_start_internal @RIOT2_21846
set_fixed_camera_position 1900.4 {y} -2099.6001 {z} 12.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1879.4 {y} -2107.7 {z} 17.9 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 1

:RIOT2_21495
if 
  143@ == 1
goto_if_false @RIOT2_21784
if 
  TIMERA > 3000
goto_if_false @RIOT2_21784
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1875.7 {y} -2102.3999 {z} 12.5
set_char_heading 34@ {heading} 95.0
task_play_anim 34@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_coordinates $cesar {x} 1881.2 {y} -2099.6001 {z} 12.5
set_char_heading $cesar {heading} 69.4
set_char_coordinates $scplayer {x} 1886.2 {y} -2099.6001 {z} 12.5
set_char_heading $scplayer {heading} 69.4
task_go_straight_to_coord $scplayer {x} 1877.6 {y} -2099.8 {z} 12.5 {speed} MoveState.Walk {time} -1
gosub @RIOT2_38067
set_fixed_camera_position 1880.2 {y} -2103.1001 {z} 14.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1874.3 {y} -2100.77 {z} 12.8 {switchStyle} SwitchType.JumpCut
185@ = 8
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_21784
if 
  143@ == 2
goto_if_false @RIOT2_24541
if 
  185@ == 0
goto_if_false @RIOT2_24541
if 
  TIMERA > 8000
goto_if_false @RIOT2_24541
144@ = 0

:RIOT2_21846
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21880
goto @RIOT2_30241

:RIOT2_21880
if 
  144@ == 1
goto_if_false @RIOT2_22870
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_21922
if 
  get_fading_status 
goto_if_false @RIOT2_21946
wait 0
goto @RIOT2_21922

:RIOT2_21946
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21978
goto @RIOT2_30241

:RIOT2_21978
gosub @RIOT2_38067
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1875.7 {y} -2102.3999 {z} 12.5
set_char_heading 34@ {heading} 95.0
task_play_anim 34@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1881.2 {y} -2099.6001 {z} 12.5
set_char_heading $cesar {heading} 69.4
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1879.7 {y} -2101.7 {z} 12.5
set_char_heading $scplayer {heading} 90.0
clear_char_tasks_immediately 79@
set_char_decision_maker 79@ {handleOrTemplate} 265@
set_char_coordinates 79@ {x} 1861.1 {y} -2096.8999 {z} 12.5
set_char_heading 79@ {heading} 270.3
$task_status = get_script_task_status 80@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22344
clear_char_tasks_immediately 80@
task_play_anim 80@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 80@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22344
$task_status = get_script_task_status 81@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22522
clear_char_tasks_immediately 81@
task_play_anim 81@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 81@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22522
clear_char_tasks_immediately 82@
set_char_decision_maker 82@ {handleOrTemplate} 265@
set_char_coordinates 82@ {x} 1859.1 {y} -2106.0 {z} 14.0
set_char_heading 82@ {heading} 264.4
$task_status = get_script_task_status 83@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22714
clear_char_tasks_immediately 83@
task_play_anim 83@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 83@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22714
$task_status = get_script_task_status 84@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22870
clear_char_tasks_immediately 84@
task_play_anim 84@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 3000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 84@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22870
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
85@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} 1875.6 {y} -2091.3999 {z} 13.5
86@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} 1878.3 {y} -2091.1001 {z} 13.5
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1864.9 {y} -2101.2 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1874.9 {y} -2096.5 {z} 12.5 {heading} 75.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1874.9 {y} -2096.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 75.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1862.6 {y} -2104.1001 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1873.3 {y} -2107.3999 {z} 12.5 {heading} 98.8 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1873.3 {y} -2107.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 98.8
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1878.7 {y} -2105.5 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1852.1 {y} -2096.6001 {z} 16.5 {time} 10
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
148@ = generate_random_int_in_range 0 {max} 2
69@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1913.7 {y} -2109.2 {z} 12.6
set_char_heading 69@ {heading} 90.5
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 69@ {handleOrTemplate} 266@
set_char_stay_in_same_place 69@ {state} True
set_char_proofs 69@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1916.5 {y} -2113.1001 {z} 12.6
set_char_heading 70@ {heading} 20.1
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 70@ {handleOrTemplate} 266@
set_char_stay_in_same_place 70@ {state} True
set_char_proofs 70@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 73@ {handleOrTemplate} 265@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1837.5 {y} -2102.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@
remove_blip 130@
130@ = add_blip_for_char 73@
change_blip_scale 130@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 74@ {handleOrTemplate} 265@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1833.8 {y} -2097.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@
remove_blip 131@
131@ = add_blip_for_char 74@
change_blip_scale 131@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 50
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_06' {time} 4000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_24520
do_fade 500 {direction} Fade.In

:RIOT2_24464
if 
  get_fading_status 
goto_if_false @RIOT2_24488
wait 0
goto @RIOT2_24464

:RIOT2_24488
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_24520
goto @RIOT2_30241

:RIOT2_24520
TIMERA = 0
143@ = 0
142@ = 6

:RIOT2_24541
if 
  142@ == 6
goto_if_false @RIOT2_26110
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_24632
180@ = get_char_health $cesar
if 
  50 > 180@
goto_if_false @RIOT2_24632
task_die_named_anim $cesar {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_24632
if 
  not is_char_dead 34@
goto_if_false @RIOT2_24705
180@ = get_char_health 34@
if 
  50 > 180@
goto_if_false @RIOT2_24705
task_die_named_anim 34@ {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_24705
if 
  169@ == 0
goto_if_false @RIOT2_24826
if 
  is_char_dead 79@
goto_if_false @RIOT2_24826
if 
  is_char_dead 80@
goto_if_false @RIOT2_24826
if 
  is_char_dead 81@
goto_if_false @RIOT2_24826
if 
  is_char_dead 82@
goto_if_false @RIOT2_24826
if 
  is_char_dead 83@
goto_if_false @RIOT2_24826
if 
  is_char_dead 84@
goto_if_false @RIOT2_24826
169@ = 1

:RIOT2_24826
if 
  169@ == 1
goto_if_false @RIOT2_25014
if or
  TIMERA > 15000
  169@ == 1
  is_char_in_area_2d $scplayer {leftBottomX} 1893.6 {leftBottomY} -2043.3 {rightTopX} 1888.1 {rightTopY} -2175.6001 {drawSphere} False
goto_if_false @RIOT2_25014
185@ = 9
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
if 
  not is_char_dead 69@
goto_if_false @RIOT2_24971
remove_blip 126@
126@ = add_blip_for_char 69@
change_blip_scale 126@ {size} 1

:RIOT2_24971
if 
  not is_char_dead 70@
goto_if_false @RIOT2_25007
remove_blip 127@
127@ = add_blip_for_char 70@
change_blip_scale 127@ {size} 1

:RIOT2_25007
169@ = 2

:RIOT2_25014
if 
  169@ == 2
goto_if_false @RIOT2_25444
if 
  is_char_on_screen 35@
goto_if_false @RIOT2_25444
if 
  not is_char_dead 69@
goto_if_false @RIOT2_25163
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.5 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1900.8 {y} -2106.2 {z} 12.6 {time} 1500
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@
set_char_proofs 69@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RIOT2_25163
if 
  not is_char_dead 70@
goto_if_false @RIOT2_25278
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1914.2 {y} -2104.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1900.8 {y} -2106.2 {z} 12.6 {time} 1500
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@
set_char_proofs 70@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RIOT2_25278
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
268@ = open_sequence_task 
task_achieve_heading -1 {heading} 269.0
task_pause -1 {time} 200
task_shoot_at_coord -1 {x} 1951.1 {y} -2103.8999 {z} 19.3 {time} 500
task_play_anim_non_interruptable -1 {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
set_char_bleeding 35@ {state} True
TIMERA = 0
169@ = 3

:RIOT2_25444
if 
  143@ == 0
goto_if_false @RIOT2_25749
if 
  is_char_dead 79@
goto_if_false @RIOT2_25749
if 
  is_char_dead 80@
goto_if_false @RIOT2_25749
if 
  is_char_dead 81@
goto_if_false @RIOT2_25749
if 
  is_char_dead 82@
goto_if_false @RIOT2_25749
if 
  is_char_dead 83@
goto_if_false @RIOT2_25749
if 
  is_char_dead 84@
goto_if_false @RIOT2_25749
if 
  is_char_dead 73@
goto_if_false @RIOT2_25749
if 
  is_char_dead 74@
goto_if_false @RIOT2_25749
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1895.3 {y} -2102.2 {z} 12.6 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 274.7
task_shoot_at_coord -1 {x} 1913.5 {y} -2104.3999 {z} 13.9 {time} -2
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1895.6 {y} -2104.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 271.0
task_shoot_at_coord -1 {x} 1912.9 {y} -2106.3999 {z} 13.9 {time} -2
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
143@ = 1

:RIOT2_25749
if 
  143@ == 1
goto_if_false @RIOT2_25850
if 
  is_char_dead 69@
goto_if_false @RIOT2_25850
if 
  is_char_dead 70@
goto_if_false @RIOT2_25850
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
remove_animation "CASINO"
TIMERA = 0
143@ = 0
142@ = 7

:RIOT2_25850
if 
  is_char_dead 69@
goto_if_false @RIOT2_25876
mark_char_as_no_longer_needed 69@
remove_blip 126@

:RIOT2_25876
if 
  is_char_dead 70@
goto_if_false @RIOT2_25902
mark_char_as_no_longer_needed 70@
remove_blip 127@

:RIOT2_25902
if 
  is_char_dead 73@
goto_if_false @RIOT2_25928
mark_char_as_no_longer_needed 73@
remove_blip 130@

:RIOT2_25928
if 
  is_char_dead 74@
goto_if_false @RIOT2_25954
mark_char_as_no_longer_needed 74@
remove_blip 131@

:RIOT2_25954
if 
  is_char_dead 79@
goto_if_false @RIOT2_25980
mark_char_as_no_longer_needed 79@
remove_blip 132@

:RIOT2_25980
if 
  is_char_dead 80@
goto_if_false @RIOT2_26006
mark_char_as_no_longer_needed 80@
remove_blip 133@

:RIOT2_26006
if 
  is_char_dead 81@
goto_if_false @RIOT2_26032
mark_char_as_no_longer_needed 81@
remove_blip 134@

:RIOT2_26032
if 
  is_char_dead 82@
goto_if_false @RIOT2_26058
mark_char_as_no_longer_needed 82@
remove_blip 135@

:RIOT2_26058
if 
  is_char_dead 83@
goto_if_false @RIOT2_26084
mark_char_as_no_longer_needed 83@
remove_blip 136@

:RIOT2_26084
if 
  is_char_dead 84@
goto_if_false @RIOT2_26110
mark_char_as_no_longer_needed 84@
remove_blip 137@

:RIOT2_26110
if 
  142@ == 7
goto_if_false @RIOT2_28983
if 
  143@ == 0
goto_if_false @RIOT2_27274
if 
  TIMERA > 2000
goto_if_false @RIOT2_27274
do_fade 500 {direction} Fade.Out

:RIOT2_26172
if 
  get_fading_status 
goto_if_false @RIOT2_26196
wait 0
goto @RIOT2_26172

:RIOT2_26196
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_26228
goto @RIOT2_30241

:RIOT2_26228
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
remove_animation "SWAT"
request_model 361
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike
load_scene 1855.5 {y} -2101.8 {z} 12.5
69@ = create_char PedType.Mission2 {modelId} 108 {x} 1805.0 {y} -2126.0 {z} 17.8
set_char_heading 69@ {heading} 306.5
set_char_stay_in_same_place 69@ {state} True
add_armour_to_char 69@ {amount} 100
set_char_suffers_critical_hits 69@ {state} False
give_weapon_to_char 69@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_decision_maker 69@ {handleOrTemplate} 266@
90@ = add_blip_for_char 69@
change_blip_scale 90@ {size} 1
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1811.8 {y} -2124.0 {z} 12.6
set_char_heading 70@ {heading} 287.5
set_char_stay_in_same_place 70@ {state} True
give_weapon_to_char 70@ {weaponType} WeaponType.Flamethrower {ammo} 30000
set_char_decision_maker 70@ {handleOrTemplate} 266@
91@ = add_blip_for_char 70@
change_blip_scale 91@ {size} 1
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
71@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1795.0 {y} -2126.7 {z} 12.5
set_char_heading 71@ {heading} 358.6
give_weapon_to_char 71@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 71@ {state} True
set_char_decision_maker 71@ {handleOrTemplate} 266@
92@ = add_blip_for_char 71@
change_blip_scale 92@ {size} 1
set_char_accuracy 71@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
72@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1795.0 {y} -2130.7 {z} 12.5
set_char_heading 72@ {heading} 357.8
give_weapon_to_char 72@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 72@ {state} True
set_char_decision_maker 72@ {handleOrTemplate} 266@
93@ = add_blip_for_char 72@
change_blip_scale 93@ {size} 1
set_char_accuracy 72@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 73@ {state} True
set_char_decision_maker 73@ {handleOrTemplate} 266@
94@ = add_blip_for_char 73@
change_blip_scale 94@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
add_armour_to_char 73@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 74@ {state} True
set_char_decision_maker 74@ {handleOrTemplate} 266@
95@ = add_blip_for_char 74@
change_blip_scale 95@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 100
clear_area 1855.5 {y} -2101.8 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1855.5 {y} -2101.8 {z} 12.5
set_char_heading $scplayer {heading} 90.0
task_go_straight_to_coord $scplayer {x} 1846.6 {y} -2102.8 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1855.5 {y} -2102.8 {z} 12.5
set_char_heading $cesar {heading} 90.0
task_go_straight_to_coord $cesar {x} 1846.6 {y} -2102.8 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1855.5 {y} -2100.8 {z} 12.5
set_char_heading 34@ {heading} 90.0
task_go_straight_to_coord 34@ {x} 1846.6 {y} -2100.8 {z} 12.5 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1846.6 {y} -2101.8 {z} 13.88 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1853.9 {y} -2101.3999 {z} 12.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_27169
if 
  get_fading_status 
goto_if_false @RIOT2_27193
wait 0
goto @RIOT2_27169

:RIOT2_27193
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27225
goto @RIOT2_30241

:RIOT2_27225
144@ = 1
skip_cutscene_start_internal @RIOT2_27824
185@ = 10
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_27274
if 
  143@ == 1
goto_if_false @RIOT2_27575
if 
  185@ == 0
goto_if_false @RIOT2_27575
if 
  TIMERA > 4000
goto_if_false @RIOT2_27575
do_fade 500 {direction} Fade.Out

:RIOT2_27336
if 
  get_fading_status 
goto_if_false @RIOT2_27360
wait 0
goto @RIOT2_27336

:RIOT2_27360
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27392
goto @RIOT2_30241

:RIOT2_27392
load_scene 1809.8 {y} -2123.3999 {z} 12.7
set_fixed_camera_position 1816.2 {y} -2116.8 {z} 13.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1808.6 {y} -2123.8 {z} 15.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_27467
if 
  get_fading_status 
goto_if_false @RIOT2_27491
wait 0
goto @RIOT2_27467

:RIOT2_27491
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27523
goto @RIOT2_30241

:RIOT2_27523
185@ = 11
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_27575
if 
  143@ == 2
goto_if_false @RIOT2_27762
if 
  185@ == 0
goto_if_false @RIOT2_27762
if 
  TIMERA > 4000
goto_if_false @RIOT2_27762
set_fixed_camera_position 1816.2 {y} -2116.8 {z} 13.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_char_dead 70@
goto_if_false @RIOT2_27710
point_camera_at_char 70@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
task_shoot_at_coord 70@ {x} 1831.6 {y} -2118.8999 {z} 12.5 {time} 4000

:RIOT2_27710
185@ = 12
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_27762
if 
  143@ == 3
goto_if_false @RIOT2_28983
if 
  185@ == 0
goto_if_false @RIOT2_28983
if 
  TIMERA > 4000
goto_if_false @RIOT2_28983
144@ = 0

:RIOT2_27824
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27858
goto @RIOT2_30241

:RIOT2_27858
if 
  144@ == 1
goto_if_false @RIOT2_27956
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_27900
if 
  get_fading_status 
goto_if_false @RIOT2_27924
wait 0
goto @RIOT2_27900

:RIOT2_27924
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27956
goto @RIOT2_30241

:RIOT2_27956
if 
  not is_char_dead 69@
goto_if_false @RIOT2_28176
268@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1832.7 {y} -2090.1001 {z} 14.1 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
task_shoot_at_coord -1 {x} 1853.6 {y} -2087.0 {z} 20.5 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 1000
task_shoot_at_coord -1 {x} 1819.5 {y} -2113.1001 {z} 12.9 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28176
if 
  not is_char_dead 70@
goto_if_false @RIOT2_28251
268@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1831.6 {y} -2118.8999 {z} 12.5 {time} 2000
task_pause -1 {time} 2000
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28251
if 
  not is_char_dead 71@
goto_if_false @RIOT2_28335
268@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1795.0 {y} -2106.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 277.9
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28335
if 
  not is_char_dead 72@
goto_if_false @RIOT2_28419
268@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1792.0 {y} -2103.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 277.9
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 72@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28419
if 
  not is_char_dead 73@
goto_if_false @RIOT2_28488
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1809.4 {y} -2116.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28488
if 
  not is_char_dead 74@
goto_if_false @RIOT2_28557
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1809.4 {y} -2111.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28557
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1833.9 {y} -2104.2 {z} 12.5
set_char_heading $scplayer {heading} 122.4
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1833.0 {y} -2106.6001 {z} 12.5
set_char_heading $cesar {heading} 122.3
set_char_stay_in_same_place $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 265@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1834.4 {y} -2102.0 {z} 12.5
set_char_heading 34@ {heading} 99.6
set_char_stay_in_same_place 34@ {state} True
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1814.1 {y} -2102.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 112.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 80@
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_07' {time} 4000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_28969
do_fade 500 {direction} Fade.In

:RIOT2_28913
if 
  get_fading_status 
goto_if_false @RIOT2_28937
wait 0
goto @RIOT2_28913

:RIOT2_28937
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_28969
goto @RIOT2_30241

:RIOT2_28969
143@ = 0
142@ = 8

:RIOT2_28983
if 
  142@ == 8
goto_if_false @RIOT2_30227
if 
  143@ == 0
goto_if_false @RIOT2_29255
if 
  is_char_dead 69@
goto_if_false @RIOT2_29040
remove_blip 90@

:RIOT2_29040
if 
  is_char_dead 70@
goto_if_false @RIOT2_29061
remove_blip 91@

:RIOT2_29061
if 
  is_char_dead 71@
goto_if_false @RIOT2_29082
remove_blip 92@

:RIOT2_29082
if 
  is_char_dead 72@
goto_if_false @RIOT2_29103
remove_blip 93@

:RIOT2_29103
if 
  is_char_dead 73@
goto_if_false @RIOT2_29124
remove_blip 94@

:RIOT2_29124
if 
  is_char_dead 74@
goto_if_false @RIOT2_29145
remove_blip 95@

:RIOT2_29145
if 
  is_char_dead 69@
goto_if_false @RIOT2_29255
if 
  is_char_dead 70@
goto_if_false @RIOT2_29255
if 
  is_char_dead 71@
goto_if_false @RIOT2_29255
if 
  is_char_dead 72@
goto_if_false @RIOT2_29255
if 
  is_char_dead 73@
goto_if_false @RIOT2_29255
if 
  is_char_dead 74@
goto_if_false @RIOT2_29255
TIMERA = 0
143@ = 1

:RIOT2_29255
if 
  143@ == 1
goto_if_false @RIOT2_29850
if 
  TIMERA > 2000
goto_if_false @RIOT2_29850
do_fade 500 {direction} Fade.Out

:RIOT2_29299
if 
  get_fading_status 
goto_if_false @RIOT2_29323
wait 0
goto @RIOT2_29299

:RIOT2_29323
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29355
goto @RIOT2_30241

:RIOT2_29355
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
load_scene 1814.9 {y} -2112.1001 {z} 12.4
clear_area 1814.9 {y} -2112.1001 {z} 12.4 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1814.9 {y} -2112.1001 {z} 12.4
set_char_heading $scplayer {heading} 127.9
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1807.8 {y} -2122.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1812.4 {y} -2111.3 {z} 12.4
set_char_heading $cesar {heading} 127.9
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1804.8 {y} -2120.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1810.4 {y} -2111.0 {z} 12.4
set_char_heading 34@ {heading} 135.1
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1807.0 {y} -2118.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
set_fixed_camera_position 1812.6 {y} -2114.5 {z} 13.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1804.5 {y} -2123.6001 {z} 15.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_29759
if 
  get_fading_status 
goto_if_false @RIOT2_29783
wait 0
goto @RIOT2_29759

:RIOT2_29783
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29815
goto @RIOT2_30241

:RIOT2_29815
185@ = 13
186@ = 0
188@ = 4
gosub @RIOT2_40912
143@ = 2

:RIOT2_29850
if 
  143@ == 2
goto_if_false @RIOT2_29981
if 
  185@ == 0
goto_if_false @RIOT2_29981
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
185@ = 13
186@ = 4
188@ = 8
gosub @RIOT2_40912
143@ = 3

:RIOT2_29981
if 
  143@ == 3
goto_if_false @RIOT2_30169
if 
  185@ == 0
goto_if_false @RIOT2_30169
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.8 {y} -2124.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1794.8 {y} -2137.2 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.8 {y} -2122.5 {z} 12.4 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1794.8 {y} -2137.2 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
TIMERA = 0
143@ = 4

:RIOT2_30169
if 
  143@ == 4
goto_if_false @RIOT2_30227
if 
  TIMERA > 3000
goto_if_false @RIOT2_30227
shut_all_chars_up False
delete_char $cesar
delete_char 34@
goto @RIOT2_30259

:RIOT2_30227
gosub @RIOT2_39478
goto @RIOT2_1585

:RIOT2_30241
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RIOT2_30259
$flag_riot_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 60 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 60
remove_blip $sweet_contact_blip
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'RIOT_2'
player_made_progress 1
return 

:RIOT2_30499
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT2_30517
restore_camera_jumpcut 

:RIOT2_30517
set_zone_no_cops 'ELCO' {state} False
if 
  not is_char_dead 36@
goto_if_false @RIOT2_30558
set_char_collision 36@ {state} True
remove_char_elegantly 36@

:RIOT2_30558
start_new_script @DOORS 
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
switch_emergency_services True
mark_model_as_no_longer_needed 339
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 361
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #BBALL_INGAME
switch_ped_roads_back_to_original 1945.8 {leftBottomY} -1956.5 {leftBottomZ} 0.0 {rightTopX} 1642.9 {rightTopY} -2174.3 {rightTopZ} 50.0
remove_pickup 85@
remove_pickup 86@
remove_pickup 184@
remove_animation "CAR"
remove_animation "BSKTBALL"
remove_animation "SMOKING"
remove_animation "SWAT"
remove_animation "CASINO"
remove_animation "CRACK"
remove_animation "GANGS"
if 
  not is_char_dead $scplayer
goto_if_false @RIOT2_30761
shut_char_up_for_scripted_speech $scplayer {state} False

:RIOT2_30761
shut_all_chars_up False
remove_char_elegantly $cesar
unload_special_character 1
set_gunshot_sense_range_for_riot2 -1.0
remove_blip 89@
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_blip 108@
remove_blip 109@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 127@
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 132@
remove_blip 133@
remove_blip 134@
remove_blip 135@
remove_blip 136@
remove_blip 137@
remove_blip 138@
remove_blip 139@
remove_blip 140@
remove_blip 141@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:RIOT2_31066
if 
  is_char_dead $cesar
goto_if_false @RIOT2_31107
clear_prints 
print_now 'R2_08' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31107
if 
  is_char_dead 35@
goto_if_false @RIOT2_31148
clear_prints 
print_now 'R2_09' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31148
if 
  is_char_dead 34@
goto_if_false @RIOT2_31189
clear_prints 
print_now 'R2_10' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31189
if 
  is_char_dead 36@
goto_if_false @RIOT2_31230
clear_prints 
print_now 'R2_11' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31230
return 

:RIOT2_31232
148@ = generate_random_int_in_range 0 {max} 2
37@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.6 {y} -2004.6 {z} 12.6
set_inform_respected_friends 37@ {radius} 8.0 {_p3} 6
set_char_heading 37@ {heading} 90.0
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 3000
task_play_anim 37@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 266@
96@ = add_blip_for_char 37@
change_blip_scale 96@ {size} 1
set_char_accuracy 37@ {accuracy} 181@
add_armour_to_char 37@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
38@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1825.5 {y} -2002.4 {z} 12.6
set_inform_respected_friends 38@ {radius} 8.0 {_p3} 6
set_char_heading 38@ {heading} 89.7
task_play_anim 38@ {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
88@ = create_object #BBALL_INGAME {x} 0.0 {y} 0.0 {z} 0.0
97@ = add_blip_for_char 38@
change_blip_scale 97@ {size} 1
set_char_accuracy 38@ {accuracy} 181@
set_char_decision_maker 38@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 38@ {state} True
148@ = generate_random_int_in_range 0 {max} 2
39@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1824.3 {y} -2002.4 {z} 12.6
set_inform_respected_friends 39@ {radius} 8.0 {_p3} 6
set_char_heading 39@ {heading} 270.0
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 3000
task_play_anim 39@ {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 39@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 39@ {state} True
98@ = add_blip_for_char 39@
change_blip_scale 98@ {size} 1
set_char_accuracy 39@ {accuracy} 181@
add_armour_to_char 39@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
40@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1827.7 {y} -1999.1 {z} 12.6
set_inform_respected_friends 40@ {radius} 8.0 {_p3} 6
set_char_heading 40@ {heading} 133.6
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 40@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 40@ {state} True
99@ = add_blip_for_char 40@
change_blip_scale 99@ {size} 1
set_char_accuracy 40@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
41@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1828.2 {y} -2000.4 {z} 12.6
set_inform_respected_friends 41@ {radius} 8.0 {_p3} 6
set_char_heading 41@ {heading} 108.2
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 41@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 41@ {state} True
100@ = add_blip_for_char 41@
change_blip_scale 100@ {size} 1
set_char_accuracy 41@ {accuracy} 181@
add_armour_to_char 41@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
42@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1834.3 {y} -1995.9 {z} 12.6
set_inform_respected_friends 42@ {radius} 8.0 {_p3} 6
set_char_heading 42@ {heading} 88.1
set_char_decision_maker 42@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 42@ {state} True
101@ = add_blip_for_char 42@
change_blip_scale 101@ {size} 1
set_char_accuracy 42@ {accuracy} 181@
return 

:RIOT2_32036
if 
  158@ == 0
goto_if_false @RIOT2_32091
262@ = 1857.2
263@ = -2020.6
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32091
if 
  152@ == 0
goto_if_false @RIOT2_32146
262@ = 1865.3
263@ = -1992.2
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32146
if 
  155@ == 0
goto_if_false @RIOT2_32201
262@ = 1899.3
263@ = -1991.7
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32201
if 
  161@ == 0
goto_if_false @RIOT2_32249
262@ = 1908.3
263@ = -2020.1
264@ = 12.6

:RIOT2_32249
if 
  not is_char_dead 37@
goto_if_false @RIOT2_32545
if 
  149@ == 0
goto_if_false @RIOT2_32330
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 262@ {y} 263@ {z} 264@ {speed} MoveState.Sprint {time} -2
close_sequence_task 268@
perform_sequence_task 37@ {sequence} 268@
clear_sequence_task 268@
149@ = 1

:RIOT2_32330
if 
  149@ == 1
goto_if_false @RIOT2_32545
$task_status = get_script_task_status 37@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_32545
if 
  158@ == 0
goto_if_false @RIOT2_32419
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
158@ = 1
goto @RIOT2_32538

:RIOT2_32419
if 
  152@ == 0
goto_if_false @RIOT2_32461
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
152@ = 1
goto @RIOT2_32538

:RIOT2_32461
if 
  155@ == 0
goto_if_false @RIOT2_32503
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
155@ = 1
goto @RIOT2_32538

:RIOT2_32503
if 
  161@ == 0
goto_if_false @RIOT2_32538
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
161@ = 1

:RIOT2_32538
149@ = 2

:RIOT2_32545
return 

:RIOT2_32547
if 
  152@ == 1
goto_if_false @RIOT2_32989
  rotate_object $2708 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
43@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1850.3 {y} -1990.0 {z} 12.6
set_inform_respected_friends 43@ {radius} 8.0 {_p3} 6
set_char_heading 43@ {heading} 270.0
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 43@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 43@ {state} True
102@ = add_blip_for_char 43@
change_blip_scale 102@ {size} 1
set_char_accuracy 43@ {accuracy} 181@
add_armour_to_char 43@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1852.9 {y} -1990.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1853.9 {y} -1984.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 355.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 43@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
44@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1851.7 {y} -1989.9 {z} 12.6
set_inform_respected_friends 44@ {radius} 8.0 {_p3} 6
set_char_heading 44@ {heading} 270.7
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 44@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 44@ {state} True
103@ = add_blip_for_char 44@
change_blip_scale 103@ {size} 1
set_char_accuracy 44@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1852.9 {y} -1990.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1985.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 186.2
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 44@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_32989
if 
  153@ == 1
goto_if_false @RIOT2_33431
  rotate_object $2709 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1867.7 {y} -1983.7 {z} 12.6
set_inform_respected_friends 45@ {radius} 8.0 {_p3} 6
set_char_heading 45@ {heading} 180.0
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 45@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 45@ {state} True
104@ = add_blip_for_char 45@
change_blip_scale 104@ {size} 1
set_char_accuracy 45@ {accuracy} 181@
add_armour_to_char 45@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1867.7 {y} -1986.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1999.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 45@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1867.7 {y} -1984.7 {z} 12.6
set_inform_respected_friends 46@ {radius} 8.0 {_p3} 6
set_char_heading 46@ {heading} 180.0
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 46@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 46@ {state} True
105@ = add_blip_for_char 46@
change_blip_scale 105@ {size} 1
set_char_accuracy 46@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1867.7 {y} -1986.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1997.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 315.1
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 46@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_33431
if 
  154@ == 1
goto_if_false @RIOT2_33873
  rotate_object $2710 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1866.2 {y} -1999.7 {z} 12.6
set_inform_respected_friends 47@ {radius} 8.0 {_p3} 6
set_char_heading 47@ {heading} 0.0
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 47@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 47@ {state} True
106@ = add_blip_for_char 47@
change_blip_scale 106@ {size} 1
set_char_accuracy 47@ {accuracy} 181@
add_armour_to_char 47@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1866.2 {y} -1997.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1859.5 {y} -1996.2 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 148.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 47@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1865.9 {y} -1998.7 {z} 12.6
set_inform_respected_friends 48@ {radius} 8.0 {_p3} 6
set_char_heading 48@ {heading} 0.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 48@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 48@ {state} True
107@ = add_blip_for_char 48@
change_blip_scale 107@ {size} 1
set_char_accuracy 48@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1866.2 {y} -1997.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1860.0 {y} -1994.0 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 280.2
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 48@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_33873
return 

:RIOT2_33875
if 
  155@ == 1
goto_if_false @RIOT2_34317
  rotate_object $2711 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
49@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.1 {y} -1983.5 {z} 12.6
set_inform_respected_friends 49@ {radius} 8.0 {_p3} 6
set_char_heading 49@ {heading} 180.0
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 49@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 49@ {state} True
108@ = add_blip_for_char 49@
change_blip_scale 108@ {size} 1
set_char_accuracy 49@ {accuracy} 181@
add_armour_to_char 49@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1900.1 {y} -1987.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1905.0 {y} -1987.2 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 267.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 49@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
50@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.1 {y} -1984.5 {z} 12.6
set_inform_respected_friends 50@ {radius} 8.0 {_p3} 6
set_char_heading 50@ {heading} 180.7
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 50@ {state} True
109@ = add_blip_for_char 50@
change_blip_scale 109@ {size} 1
set_char_accuracy 50@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1900.1 {y} -1987.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1904.4 {y} -1988.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 108.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 50@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_34317
if 
  156@ == 1
goto_if_false @RIOT2_34759
  rotate_object $2712 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
51@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1915.8 {y} -1993.5 {z} 12.6
set_inform_respected_friends 51@ {radius} 8.0 {_p3} 6
set_char_heading 51@ {heading} 90.0
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 51@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 51@ {state} True
110@ = add_blip_for_char 51@
change_blip_scale 110@ {size} 1
set_char_accuracy 51@ {accuracy} 181@
add_armour_to_char 51@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1912.1 {y} -1993.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.9 {y} -1998.5 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 51@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
52@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1914.8 {y} -1993.5 {z} 12.6
set_inform_respected_friends 52@ {radius} 8.0 {_p3} 6
set_char_heading 52@ {heading} 90.0
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 52@ {state} True
111@ = add_blip_for_char 52@
change_blip_scale 111@ {size} 1
set_char_accuracy 52@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1912.1 {y} -1993.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.0 {y} -1997.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 36.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 52@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_34759
if 
  157@ == 1
goto_if_false @RIOT2_35201
  rotate_object $2713 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
53@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1898.3 {y} -1999.9 {z} 12.6
set_inform_respected_friends 53@ {radius} 8.0 {_p3} 6
set_char_heading 53@ {heading} 0.0
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 53@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 53@ {state} True
112@ = add_blip_for_char 53@
change_blip_scale 112@ {size} 1
set_char_accuracy 53@ {accuracy} 181@
add_armour_to_char 53@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1898.4 {y} -1996.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1891.8 {y} -1996.0 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 71.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 53@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
54@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1898.3 {y} -1998.9 {z} 12.6
set_inform_respected_friends 54@ {radius} 8.0 {_p3} 6
set_char_heading 54@ {heading} 0.0
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 54@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 54@ {state} True
113@ = add_blip_for_char 54@
change_blip_scale 113@ {size} 1
set_char_accuracy 54@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1898.4 {y} -1996.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1892.4 {y} -1995.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 302.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 54@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_35201
return 

:RIOT2_35203
if 
  158@ == 1
goto_if_false @RIOT2_35645
  rotate_object $2717 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
55@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1850.4 {y} -2019.5 {z} 12.6
set_inform_respected_friends 55@ {radius} 8.0 {_p3} 6
set_char_heading 55@ {heading} 270.0
give_weapon_to_char 55@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 55@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 55@ {state} True
114@ = add_blip_for_char 55@
change_blip_scale 114@ {size} 1
set_char_accuracy 55@ {accuracy} 181@
add_armour_to_char 55@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1854.1 {y} -2019.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1855.3 {y} -2010.4 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 30.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 55@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
56@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1851.7 {y} -2019.5 {z} 12.6
set_inform_respected_friends 56@ {radius} 8.0 {_p3} 6
set_char_heading 56@ {heading} 270.7
give_weapon_to_char 56@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 56@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 56@ {state} True
115@ = add_blip_for_char 56@
change_blip_scale 115@ {size} 1
set_char_accuracy 56@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1854.1 {y} -2019.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1855.3 {y} -2012.4 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 195.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 56@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_35645
if 
  159@ == 1
goto_if_false @RIOT2_36087
  rotate_object $2718 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
57@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1866.7 {y} -2021.1 {z} 12.6
set_inform_respected_friends 57@ {radius} 8.0 {_p3} 6
set_char_heading 57@ {heading} 90.0
give_weapon_to_char 57@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 57@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 57@ {state} True
116@ = add_blip_for_char 57@
change_blip_scale 116@ {size} 1
set_char_accuracy 57@ {accuracy} 181@
add_armour_to_char 57@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1863.3 {y} -2021.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1862.9 {y} -2011.7 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 43.3
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 57@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
58@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1865.5 {y} -2021.3 {z} 12.6
set_inform_respected_friends 58@ {radius} 8.0 {_p3} 6
set_char_heading 58@ {heading} 90.0
give_weapon_to_char 58@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 58@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 58@ {state} True
117@ = add_blip_for_char 58@
change_blip_scale 117@ {size} 1
set_char_accuracy 58@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1863.3 {y} -2021.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1863.4 {y} -2013.9 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 154.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 58@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36087
if 
  160@ == 1
goto_if_false @RIOT2_36529
  rotate_object $2719 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
59@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.2 {y} -2036.9 {z} 12.6
set_inform_respected_friends 59@ {radius} 8.0 {_p3} 6
set_char_heading 59@ {heading} 0.0
give_weapon_to_char 59@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 59@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 59@ {state} True
118@ = add_blip_for_char 59@
change_blip_scale 118@ {size} 1
set_char_accuracy 59@ {accuracy} 181@
add_armour_to_char 59@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1857.2 {y} -2032.9 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -2026.5 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 59@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
60@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.1 {y} -2035.8 {z} 12.6
set_inform_respected_friends 60@ {radius} 8.0 {_p3} 6
set_char_heading 60@ {heading} 0.0
give_weapon_to_char 60@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 60@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 60@ {state} True
119@ = add_blip_for_char 60@
change_blip_scale 119@ {size} 1
set_char_accuracy 60@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1857.2 {y} -2032.9 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -2024.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 346.3
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 60@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36529
return 

:RIOT2_36531
if 
  161@ == 1
goto_if_false @RIOT2_36973
  rotate_object $2714 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
61@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1899.3 {y} -2019.5 {z} 12.6
set_inform_respected_friends 61@ {radius} 8.0 {_p3} 6
set_char_heading 61@ {heading} 270.0
give_weapon_to_char 61@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 61@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 61@ {state} True
120@ = add_blip_for_char 61@
change_blip_scale 120@ {size} 1
set_char_accuracy 61@ {accuracy} 181@
add_armour_to_char 61@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1902.1 {y} -2019.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1903.2 {y} -2012.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 330.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 61@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
62@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.3 {y} -2019.5 {z} 12.6
set_inform_respected_friends 62@ {radius} 8.0 {_p3} 6
set_char_heading 62@ {heading} 270.7
give_weapon_to_char 62@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 62@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 62@ {state} True
121@ = add_blip_for_char 62@
change_blip_scale 121@ {size} 1
set_char_accuracy 62@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1902.1 {y} -2019.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1903.2 {y} -2013.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 195.6
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 62@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36973
if 
  162@ == 1
goto_if_false @RIOT2_37415
  rotate_object $2715 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
63@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1915.8 {y} -2021.5 {z} 12.6
set_inform_respected_friends 63@ {radius} 8.0 {_p3} 6
set_char_heading 63@ {heading} 90.0
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 63@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 63@ {state} True
122@ = add_blip_for_char 63@
change_blip_scale 122@ {size} 1
set_char_accuracy 63@ {accuracy} 181@
add_armour_to_char 63@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1912.8 {y} -2021.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1912.1 {y} -2012.8 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 21.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 63@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
64@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1914.8 {y} -2021.5 {z} 12.6
set_inform_respected_friends 64@ {radius} 8.0 {_p3} 6
set_char_heading 64@ {heading} 90.0
give_weapon_to_char 64@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 64@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 64@ {state} True
123@ = add_blip_for_char 64@
change_blip_scale 123@ {size} 1
set_char_accuracy 64@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1912.8 {y} -2021.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.7 {y} -2014.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 171.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 64@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_37415
if 
  163@ == 1
goto_if_false @RIOT2_37857
  rotate_object $2716 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
65@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1906.1 {y} -2036.9 {z} 12.6
set_inform_respected_friends 65@ {radius} 8.0 {_p3} 6
set_char_heading 65@ {heading} 0.0
give_weapon_to_char 65@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 65@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 65@ {state} True
124@ = add_blip_for_char 65@
change_blip_scale 124@ {size} 1
set_char_accuracy 65@ {accuracy} 181@
add_armour_to_char 65@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1906.0 {y} -2033.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1907.3 {y} -2033.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 32.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 65@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
66@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1906.1 {y} -2035.9 {z} 12.6
set_inform_respected_friends 66@ {radius} 8.0 {_p3} 6
set_char_heading 66@ {heading} 0.0
give_weapon_to_char 66@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 66@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 66@ {state} True
125@ = add_blip_for_char 66@
change_blip_scale 125@ {size} 1
set_char_accuracy 66@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1906.0 {y} -2033.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1906.3 {y} -2030.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 315.5
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 66@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_37857
return 

:RIOT2_37859
if 
  167@ == 1
goto_if_false @RIOT2_37923
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_37923
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
167@ = 0

:RIOT2_37923
if 
  167@ == 0
goto_if_false @RIOT2_38065
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @RIOT2_38065
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_38008
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:RIOT2_38008
remove_blip 89@
if 
  177@ > 2
goto_if_false @RIOT2_38058
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False

:RIOT2_38058
167@ = 1

:RIOT2_38065
return 

:RIOT2_38067
if 
  is_char_dead 79@
goto_if_false @RIOT2_38283
148@ = generate_random_int_in_range 0 {max} 2
79@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1860.1 {y} -2094.8 {z} 14.0
set_char_heading 79@ {heading} 187.0
give_weapon_to_char 79@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 79@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 4000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 79@ {sequence} 268@
clear_sequence_task 268@
132@ = add_blip_for_char 79@
change_blip_scale 132@ {size} 1
set_char_accuracy 79@ {accuracy} 181@
add_armour_to_char 79@ {amount} 50

:RIOT2_38283
if 
  is_char_dead 80@
goto_if_false @RIOT2_38532
148@ = generate_random_int_in_range 0 {max} 2
80@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.3 {y} -2094.8 {z} 14.0
set_char_heading 80@ {heading} 187.0
give_weapon_to_char 80@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 80@ {handleOrTemplate} 266@
task_play_anim 80@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 6000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 80@ {sequence} 268@
clear_sequence_task 268@
133@ = add_blip_for_char 80@
change_blip_scale 133@ {size} 1
set_char_accuracy 80@ {accuracy} 181@

:RIOT2_38532
if 
  is_char_dead 81@
goto_if_false @RIOT2_38788
148@ = generate_random_int_in_range 0 {max} 2
81@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1854.3 {y} -2094.8 {z} 14.0
set_char_heading 81@ {heading} 187.0
give_weapon_to_char 81@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 81@ {handleOrTemplate} 266@
task_play_anim 81@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 8000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 81@ {sequence} 268@
clear_sequence_task 268@
134@ = add_blip_for_char 81@
change_blip_scale 134@ {size} 1
set_char_accuracy 81@ {accuracy} 181@
add_armour_to_char 81@ {amount} 50

:RIOT2_38788
if 
  is_char_dead 82@
goto_if_false @RIOT2_39015
148@ = generate_random_int_in_range 0 {max} 2
82@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1859.1 {y} -2108.8 {z} 14.0
set_char_heading 82@ {heading} 2.0
give_weapon_to_char 82@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 82@ {handleOrTemplate} 266@
task_play_anim 82@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 5000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 82@ {sequence} 268@
clear_sequence_task 268@
135@ = add_blip_for_char 82@
change_blip_scale 135@ {size} 1
set_char_accuracy 82@ {accuracy} 181@

:RIOT2_39015
if 
  is_char_dead 83@
goto_if_false @RIOT2_39249
148@ = generate_random_int_in_range 0 {max} 2
83@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1856.3 {y} -2108.8 {z} 14.0
set_char_heading 83@ {heading} 2.0
give_weapon_to_char 83@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 83@ {handleOrTemplate} 266@
task_play_anim 83@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 7000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 83@ {sequence} 268@
clear_sequence_task 268@
136@ = add_blip_for_char 83@
change_blip_scale 136@ {size} 1
set_char_accuracy 83@ {accuracy} 181@
add_armour_to_char 83@ {amount} 50

:RIOT2_39249
if 
  is_char_dead 84@
goto_if_false @RIOT2_39476
148@ = generate_random_int_in_range 0 {max} 2
84@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1853.3 {y} -2108.8 {z} 14.0
set_char_heading 84@ {heading} 2.0
give_weapon_to_char 84@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 84@ {handleOrTemplate} 266@
task_play_anim 84@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 84@ {sequence} 268@
clear_sequence_task 268@
137@ = add_blip_for_char 84@
change_blip_scale 137@ {size} 1
set_char_accuracy 84@ {accuracy} 181@

:RIOT2_39476
return 

:RIOT2_39478
if or
  185@ == 1
  185@ == 4
  185@ == 6
  185@ == 8
  185@ == 9
goto_if_false @RIOT2_39578
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39571
gosub @RIOT2_43025
gosub @RIOT2_43132
gosub @RIOT2_43286
goto @RIOT2_39578

:RIOT2_39571
185@ = 0

:RIOT2_39578
if or
  185@ == 10
  185@ == 11
  185@ == 12
  185@ == 13
goto_if_false @RIOT2_39671
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39664
gosub @RIOT2_43025
gosub @RIOT2_43132
gosub @RIOT2_43286
goto @RIOT2_39671

:RIOT2_39664
185@ = 0

:RIOT2_39671
if or
  185@ == 5
  185@ == 7
goto_if_false @RIOT2_39804
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39797
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_39759
gosub @RIOT2_43286
goto @RIOT2_39790

:RIOT2_39759
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_39790
goto @RIOT2_39804

:RIOT2_39797
185@ = 0

:RIOT2_39804
if 
  185@ == 9
goto_if_false @RIOT2_39930
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39923
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not is_char_dead 35@
goto_if_false @RIOT2_39885
gosub @RIOT2_43286
goto @RIOT2_39916

:RIOT2_39885
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_39916
goto @RIOT2_39930

:RIOT2_39923
185@ = 0

:RIOT2_39930
if 
  142@ == 0
goto_if_false @RIOT2_40910
if 
  143@ > 2
goto_if_false @RIOT2_40910
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40336
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @RIOT2_40329
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @RIOT2_40175
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40175
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40168
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40130
gosub @RIOT2_43286
goto @RIOT2_40161

:RIOT2_40130
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40161
goto @RIOT2_40175

:RIOT2_40168
185@ = 0

:RIOT2_40175
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @RIOT2_40329
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40329
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40322
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40284
gosub @RIOT2_43286
goto @RIOT2_40315

:RIOT2_40284
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40315
goto @RIOT2_40329

:RIOT2_40322
185@ = 0

:RIOT2_40329
goto @RIOT2_40453

:RIOT2_40336
if 
  14 > 185@
goto_if_false @RIOT2_40453
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40380
186@ += 1

:RIOT2_40380
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
clear_prints 
set_lvar_int_to_lvar_int 260@ = 185@
set_lvar_int_to_lvar_int 261@ = 186@
185@ = 14
186@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40453
if 
  185@ == 14
goto_if_false @RIOT2_40644
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40621
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40591
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40553
gosub @RIOT2_43286
goto @RIOT2_40584

:RIOT2_40553
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40584
goto @RIOT2_40614

:RIOT2_40591
print_now 'R2_12' {time} 7000 {flag} 1
185@ = 15

:RIOT2_40614
goto @RIOT2_40644

:RIOT2_40621
print_now 'R2_12' {time} 7000 {flag} 1
185@ = 15

:RIOT2_40644
if 
  185@ == 15
goto_if_false @RIOT2_40697
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40697
185@ = 16
186@ = 0
clear_prints 

:RIOT2_40697
if 
  185@ == 16
goto_if_false @RIOT2_40910
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40855
TIMERB = 0
set_lvar_int_to_lvar_int 185@ = 260@
set_lvar_int_to_lvar_int 186@ = 261@
gosub @RIOT2_40912
if 
  260@ == 0
goto_if_false @RIOT2_40848
if 
  3 > 177@
goto_if_false @RIOT2_40825
print_now 'R2_01' {time} 60000 {flag} 1
goto @RIOT2_40841

:RIOT2_40825
print_now 'R2_13' {time} 7000 {flag} 1

:RIOT2_40841
TIMERB = 0

:RIOT2_40848
goto @RIOT2_40910

:RIOT2_40855
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
185@ = 14
186@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40910
return 

:RIOT2_40912
if 
  185@ == 1
goto_if_false @RIOT2_41025
set_lvar_text_label 189@s = 'ROT2_AA'
set_lvar_text_label 191@s = 'ROT2_AB'
set_lvar_text_label 193@s = 'ROT2_AD'
set_lvar_text_label 195@s = 'ROT2_AE'
set_lvar_int_to_constant 233@ = 3868
set_lvar_int_to_constant 234@ = 3800
set_lvar_int_to_constant 235@ = 3869
set_lvar_int_to_constant 236@ = 3870
255@ = 4

:RIOT2_41025
if 
  185@ == 2
goto_if_false @RIOT2_41138
set_lvar_text_label 189@s = 'ROT2_BA'
set_lvar_text_label 191@s = 'ROT2_BB'
set_lvar_text_label 193@s = 'ROT2_BC'
set_lvar_text_label 195@s = 'ROT2_BD'
set_lvar_int_to_constant 233@ = 3801
set_lvar_int_to_constant 234@ = 3871
set_lvar_int_to_constant 235@ = 3802
set_lvar_int_to_constant 236@ = 3872
255@ = 4

:RIOT2_41138
if 
  185@ == 3
goto_if_false @RIOT2_41515
set_lvar_text_label 189@s = 'ROT2_CA'
set_lvar_text_label 191@s = 'ROT2_CB'
set_lvar_text_label 193@s = 'ROT2_CC'
set_lvar_text_label 195@s = 'ROT2_CD'
set_lvar_text_label 197@s = 'ROT2_CE'
set_lvar_text_label 199@s = 'ROT2_CF'
set_lvar_text_label 201@s = 'ROT2_CG'
set_lvar_text_label 203@s = 'ROT2_CH'
set_lvar_text_label 205@s = 'ROT2_CJ'
set_lvar_text_label 207@s = 'ROT2_CK'
set_lvar_text_label 209@s = 'ROT2_CL'
set_lvar_text_label 211@s = 'ROT2_CM'
set_lvar_text_label 213@s = 'ROT2_CN'
set_lvar_text_label 215@s = 'ROT2_CO'
set_lvar_text_label 217@s = 'ROT2_CP'
set_lvar_text_label 219@s = 'ROT2_CQ'
set_lvar_int_to_constant 233@ = 3803
set_lvar_int_to_constant 234@ = 3873
set_lvar_int_to_constant 235@ = 3804
set_lvar_int_to_constant 236@ = 3874
set_lvar_int_to_constant 237@ = 3875
set_lvar_int_to_constant 238@ = 3805
set_lvar_int_to_constant 239@ = 3806
set_lvar_int_to_constant 240@ = 3876
set_lvar_int_to_constant 241@ = 3877
set_lvar_int_to_constant 242@ = 3807
set_lvar_int_to_constant 243@ = 3878
set_lvar_int_to_constant 244@ = 3879
set_lvar_int_to_constant 245@ = 3808
set_lvar_int_to_constant 246@ = 3809
set_lvar_int_to_constant 247@ = 3880
set_lvar_int_to_constant 248@ = 3810
255@ = 16

:RIOT2_41515
if 
  185@ == 4
goto_if_false @RIOT2_41761
set_lvar_text_label 189@s = 'ROT2_DA'
set_lvar_text_label 191@s = 'ROT2_DB'
set_lvar_text_label 193@s = 'ROT2_DC'
set_lvar_text_label 195@s = 'ROT2_DD'
set_lvar_text_label 197@s = 'ROT2_DE'
set_lvar_text_label 199@s = 'ROT2_DF'
set_lvar_text_label 205@s = 'ROT2_DJ'
set_lvar_text_label 207@s = 'ROT2_DK'
set_lvar_text_label 209@s = 'ROT2_DL'
set_lvar_text_label 211@s = 'ROT2_DM'
set_lvar_int_to_constant 233@ = 3863
set_lvar_int_to_constant 234@ = 3886
set_lvar_int_to_constant 235@ = 3811
set_lvar_int_to_constant 236@ = 3887
set_lvar_int_to_constant 237@ = 3888
set_lvar_int_to_constant 238@ = 3812
set_lvar_int_to_constant 241@ = 3814
set_lvar_int_to_constant 242@ = 3815
set_lvar_int_to_constant 243@ = 3816
set_lvar_int_to_constant 244@ = 3864
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_41761
if 
  185@ == 5
goto_if_false @RIOT2_41985
set_lvar_text_label 189@s = 'ROT2_EA'
set_lvar_text_label 195@s = 'ROT2_ED'
set_lvar_text_label 197@s = 'ROT2_EE'
set_lvar_text_label 199@s = 'ROT2_EF'
set_lvar_text_label 201@s = 'ROT2_EG'
set_lvar_text_label 203@s = 'ROT2_EH'
set_lvar_text_label 205@s = 'ROT2_EJ'
set_lvar_text_label 211@s = 'ROT2_EM'
set_lvar_text_label 213@s = 'ROT2_EN'
set_lvar_int_to_constant 233@ = 3817
set_lvar_int_to_constant 236@ = 3820
set_lvar_int_to_constant 237@ = 3821
set_lvar_int_to_constant 238@ = 3822
set_lvar_int_to_constant 239@ = 3823
set_lvar_int_to_constant 240@ = 3824
set_lvar_int_to_constant 241@ = 3825
set_lvar_int_to_constant 244@ = 3828
set_lvar_int_to_constant 245@ = 3829
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_41985
if 
  185@ == 6
goto_if_false @RIOT2_42165
set_lvar_text_label 189@s = 'ROT2_FA'
set_lvar_text_label 191@s = 'ROT2_FB'
set_lvar_text_label 193@s = 'ROT2_FC'
set_lvar_text_label 195@s = 'ROT2_FD'
set_lvar_text_label 197@s = 'ROT2_FE'
set_lvar_text_label 199@s = 'ROT2_FG'
set_lvar_text_label 201@s = 'ROT2_FH'
set_lvar_int_to_constant 233@ = 3841
set_lvar_int_to_constant 234@ = 3842
set_lvar_int_to_constant 235@ = 3843
set_lvar_int_to_constant 236@ = 3844
set_lvar_int_to_constant 237@ = 3881
set_lvar_int_to_constant 238@ = 3845
set_lvar_int_to_constant 239@ = 3846
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42165
if 
  185@ == 7
goto_if_false @RIOT2_42212
set_lvar_text_label 189@s = 'ROT2_GA'
set_lvar_int_to_constant 233@ = 3854
255@ = 1

:RIOT2_42212
if 
  185@ == 8
goto_if_false @RIOT2_42325
set_lvar_text_label 189@s = 'ROT2_GB'
set_lvar_text_label 191@s = 'ROT2_GC'
set_lvar_text_label 193@s = 'ROT2_GD'
set_lvar_text_label 195@s = 'ROT2_EW'
set_lvar_int_to_constant 233@ = 3847
set_lvar_int_to_constant 234@ = 3855
set_lvar_int_to_constant 235@ = 3848
set_lvar_int_to_constant 236@ = 3838
255@ = 4

:RIOT2_42325
if 
  185@ == 9
goto_if_false @RIOT2_42417
set_lvar_text_label 189@s = 'ROT2_HA'
set_lvar_text_label 191@s = 'ROT2_HB'
set_lvar_text_label 193@s = 'ROT2_HC'
set_lvar_int_to_constant 233@ = 3865
set_lvar_int_to_constant 234@ = 3866
set_lvar_int_to_constant 235@ = 3867
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42417
if 
  185@ == 10
goto_if_false @RIOT2_42486
set_lvar_text_label 189@s = 'ROT2_JA'
set_lvar_text_label 191@s = 'ROT2_JB'
set_lvar_int_to_constant 233@ = 3849
set_lvar_int_to_constant 234@ = 3882
255@ = 2

:RIOT2_42486
if 
  185@ == 11
goto_if_false @RIOT2_42578
set_lvar_text_label 189@s = 'ROT2_KA'
set_lvar_text_label 191@s = 'ROT2_KB'
set_lvar_text_label 193@s = 'ROT2_KC'
set_lvar_int_to_constant 233@ = 3856
set_lvar_int_to_constant 234@ = 3857
set_lvar_int_to_constant 235@ = 3858
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42578
if 
  185@ == 12
goto_if_false @RIOT2_42670
set_lvar_text_label 189@s = 'ROT2_LA'
set_lvar_text_label 191@s = 'ROT2_LB'
set_lvar_text_label 193@s = 'ROT2_LC'
set_lvar_int_to_constant 233@ = 3859
set_lvar_int_to_constant 234@ = 3860
set_lvar_int_to_constant 235@ = 3861
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42670
if 
  185@ == 13
goto_if_false @RIOT2_42872
set_lvar_text_label 189@s = 'ROT2_MA'
set_lvar_text_label 191@s = 'ROT2_MB'
set_lvar_text_label 193@s = 'ROT2_MC'
set_lvar_text_label 195@s = 'ROT2_MD'
set_lvar_text_label 197@s = 'ROT2_ME'
set_lvar_text_label 199@s = 'ROT2_MF'
set_lvar_text_label 201@s = 'ROT2_MG'
set_lvar_text_label 203@s = 'ROT2_MH'
set_lvar_int_to_constant 233@ = 3883
set_lvar_int_to_constant 234@ = 3850
set_lvar_int_to_constant 235@ = 3862
set_lvar_int_to_constant 236@ = 3884
set_lvar_int_to_constant 237@ = 3851
set_lvar_int_to_constant 238@ = 3852
set_lvar_int_to_constant 239@ = 3885
set_lvar_int_to_constant 240@ = 3853
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42872
if 
  185@ == 14
goto_if_false @RIOT2_42994
set_lvar_text_label 189@s = 'CESX_BA'
set_lvar_text_label 191@s = 'CESX_BB'
set_lvar_text_label 193@s = 'CESX_BC'
set_lvar_text_label 195@s = 'CESX_BD'
set_lvar_int_to_constant 233@ = 42406
set_lvar_int_to_constant 234@ = 42407
set_lvar_int_to_constant 235@ = 42408
set_lvar_int_to_constant 236@ = 42409
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42994
set_lvar_int_to_lvar_int 258@ = 186@
256@ = 0
257@ = 0
259@ = 1
return 

:RIOT2_43025
if 
  is_int_lvar_greater_than_int_lvar 255@ > 258@
goto_if_false @RIOT2_43130
if 
  256@ == 0
goto_if_false @RIOT2_43087
load_mission_audio MissionAudioSlot.Slot1 {audioId} 233@(258@,22i)
258@ += 1
256@ = 1

:RIOT2_43087
if 
  257@ == 0
goto_if_false @RIOT2_43130
load_mission_audio MissionAudioSlot.Slot2 {audioId} 233@(258@,22i)
258@ += 1
257@ = 1

:RIOT2_43130
return 

:RIOT2_43132
if 
  259@ == 1
goto_if_false @RIOT2_43208
if 
  256@ == 1
goto_if_false @RIOT2_43208
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RIOT2_43208
play_mission_audio MissionAudioSlot.Slot1
print_now 189@(186@,22s) {time} 4500 {flag} 1
256@ = 2

:RIOT2_43208
if 
  259@ == 2
goto_if_false @RIOT2_43284
if 
  257@ == 1
goto_if_false @RIOT2_43284
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @RIOT2_43284
play_mission_audio MissionAudioSlot.Slot2
print_now 189@(186@,22s) {time} 4500 {flag} 1
257@ = 2

:RIOT2_43284
return 

:RIOT2_43286
if 
  256@ == 2
goto_if_false @RIOT2_43349
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RIOT2_43349
clear_this_print 189@(186@,22s)
186@ += 1
259@ = 2
256@ = 0

:RIOT2_43349
if 
  257@ == 2
goto_if_false @RIOT2_43412
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @RIOT2_43412
clear_this_print 189@(186@,22s)
186@ += 1
259@ = 1
257@ = 0

:RIOT2_43412
return 

//-------------Mission 110---------------
// Originally: End Of The Line (1)

:FINALEA
gosub @FINALEA_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEA_27
gosub @FINALEA_32473

:FINALEA_27
gosub @FINALEA_32585
terminate_this_script 

:FINALEA_36
$onmission = 1
register_mission_given 
script_name 'FINALEA'
wait 0
load_mission_text 'RIOT4'
set_area_visible 1
load_cutscene 'RIOT_4A'

:FINALEA_86
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_110
wait 0
goto @FINALEA_86

:FINALEA_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_119
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_143
wait 0
goto @FINALEA_119

:FINALEA_143
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEA_158
if 
  get_fading_status 
goto_if_false @FINALEA_182
wait 0
goto @FINALEA_158

:FINALEA_182
set_area_visible 0
request_model 601
request_model 596
request_model 285
request_model 102
request_model 492
load_special_character 1 {modelName} 'SWEET'
remove_ipl "CARTER"
request_ipl "CARTER"
load_all_models_now 

:FINALEA_245
if or
  not has_model_loaded 492
  not has_special_character_loaded 1
goto_if_false @FINALEA_276
wait 0
goto @FINALEA_245

:FINALEA_276
if or
  not has_model_loaded 601
  not has_model_loaded 596
  not has_model_loaded 285
  not has_model_loaded 102
goto_if_false @FINALEA_317
wait 0
goto @FINALEA_276

:FINALEA_317
set_char_coordinates $scplayer {x} 2514.7451 {y} -1673.838 {z} 12.8
set_char_heading $scplayer {heading} 60.891
47@ = load_char_decision_maker DecisionMakerType.Empty
49@ = load_char_decision_maker DecisionMakerType.Tough
48@ = load_char_decision_maker DecisionMakerType.Weak
set_max_wanted_level 0
switch_emergency_services False
delete_object $2720
$2720 = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
set_object_health $2720 {health} 100
set_object_collision_damage_effect $2720 {state} False
freeze_object_position $2720 {state} True
set_object_collision_damage_effect $2720 {state} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2507.823 {y} -1671.88 {z} 12.1678
set_car_heading $sweet_car {heading} 347.15
set_car_only_damaged_by_player $sweet_car {state} True
128@ = add_blip_for_car $sweet_car
set_blip_as_friendly 128@ {state} True
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_health $sweet_car {health} 2000
set_can_burst_car_tyres $sweet_car {state} False
set_car_can_be_visibly_damaged $sweet_car {state} False
$sweet = create_char PedType.Special {modelId} 290 {x} 2511.1689 {y} -1672.7469 {z} 12.493
set_char_get_out_upside_down_car $sweet {state} False
set_char_heading $sweet {heading} 68.365
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 47@
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
102@ = create_fx_system "WALLBUST" {x} 2521.8601 {y} -1272.66 {z} 35.04 {ignoreBoundingChecks} True
set_time_of_day 21 {minutes} 30
set_max_fire_generations 0
switch_widescreen False
load_scene 2511.75 {y} -1672.15 {z} 14.0
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'RM4_1' {time} 7000 {flag} 1
set_player_group_recruitment $player1 {state} False
41@ = 2505.2151
41@ -= 2508.1699
42@ = -1261.351
42@ -= -1267.8781
43@ = 43.8341
43@ -= 48.0744
44@ = 2506.0029
44@ -= 2508.3511
45@ = -1261.802
45@ -= -1268.8571
46@ = 43.4146
46@ -= 47.9824
35@ = 2508.1699
36@ = -1267.8781
37@ = 48.0744
38@ = 2508.3511
39@ = -1268.8571
40@ = 47.9824
34@ = 160.0
div_float_lvar_by_float_lvar 41@ /= 34@
div_float_lvar_by_float_lvar 42@ /= 34@
div_float_lvar_by_float_lvar 43@ /= 34@
div_float_lvar_by_float_lvar 44@ /= 34@
div_float_lvar_by_float_lvar 45@ /= 34@
div_float_lvar_by_float_lvar 46@ /= 34@
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
create_script_roadblock 2336.6299 {leftBottomY} -1548.6801 {leftBottomZ} 23.99 {rightTopX} 2347.01 {rightTopY} -1548.37 {rightTopZ} 23.68 {type} 1
create_script_roadblock 2506.76 {leftBottomY} -1432.29 {leftBottomZ} 28.13 {rightTopX} 2516.6299 {rightTopY} -1430.51 {rightTopZ} 27.82 {type} 1
create_script_roadblock 2462.0 {leftBottomY} -1449.0 {leftBottomZ} 24.0 {rightTopX} 2463.0 {rightTopY} -1439.0 {rightTopZ} 24.0 {type} 1

:FINALEA_1473
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEA_1499
goto @FINALEA_32554

:FINALEA_1499
if 
  147@ == 0
goto_if_false @FINALEA_7209
if 
  146@ == 0
goto_if_false @FINALEA_1641
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_1641
if 
  not is_char_dead $sweet
goto_if_false @FINALEA_1641
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_1641
remove_blip 128@
128@ = add_blip_for_coord 2507.8201 {y} -1309.226 {z} 33.6726
print_now 'RM4_2' {time} 5000 {flag} 1
TIMERB = 0
146@ = 1

:FINALEA_1641
if 
  146@ == 1
goto_if_false @FINALEA_2452
gosub @FINALEA_31459
if 
  193@ == 0
goto_if_false @FINALEA_1750
if 
  194@ == 0
goto_if_false @FINALEA_1750
if 
  TIMERB > 5500
goto_if_false @FINALEA_1750
set_lvar_int_to_constant 125@ = 14878
set_lvar_text_label 126@s = 'ROT4_AA'
gosub @FINALEA_31417

:FINALEA_1750
if 
  193@ == 1
goto_if_false @FINALEA_1815
if 
  194@ == 0
goto_if_false @FINALEA_1815
set_lvar_int_to_constant 125@ = 14800
set_lvar_text_label 126@s = 'ROT4_AB'
gosub @FINALEA_31417

:FINALEA_1815
if 
  193@ == 2
goto_if_false @FINALEA_1887
if 
  194@ == 0
goto_if_false @FINALEA_1887
set_lvar_int_to_constant 125@ = 14879
set_lvar_text_label 126@s = 'ROT4_AC'
gosub @FINALEA_31417
TIMERB = 0

:FINALEA_1887
if 
  193@ == 3
goto_if_false @FINALEA_1971
if 
  194@ == 0
goto_if_false @FINALEA_1971
if 
  TIMERB > 3000
goto_if_false @FINALEA_1971
set_lvar_int_to_constant 125@ = 14880
set_lvar_text_label 126@s = 'ROT4_BA'
gosub @FINALEA_31417

:FINALEA_1971
if 
  193@ == 4
goto_if_false @FINALEA_2043
if 
  194@ == 0
goto_if_false @FINALEA_2043
set_lvar_int_to_constant 125@ = 14801
set_lvar_text_label 126@s = 'ROT4_BB'
gosub @FINALEA_31417
TIMERA = 0

:FINALEA_2043
if 
  193@ == 5
goto_if_false @FINALEA_2127
if 
  194@ == 0
goto_if_false @FINALEA_2127
if 
  TIMERB > 12000
goto_if_false @FINALEA_2127
set_lvar_int_to_constant 125@ = 14802
set_lvar_text_label 126@s = 'ROT4_BC'
gosub @FINALEA_31417

:FINALEA_2127
if 
  193@ == 6
goto_if_false @FINALEA_2192
if 
  194@ == 0
goto_if_false @FINALEA_2192
set_lvar_int_to_constant 125@ = 14803
set_lvar_text_label 126@s = 'ROT4_BE'
gosub @FINALEA_31417

:FINALEA_2192
if 
  193@ == 7
goto_if_false @FINALEA_2257
if 
  194@ == 0
goto_if_false @FINALEA_2257
set_lvar_int_to_constant 125@ = 14882
set_lvar_text_label 126@s = 'ROT4_BF'
gosub @FINALEA_31417

:FINALEA_2257
if 
  193@ == 8
goto_if_false @FINALEA_2322
if 
  194@ == 0
goto_if_false @FINALEA_2322
set_lvar_int_to_constant 125@ = 14804
set_lvar_text_label 126@s = 'ROT4_BG'
gosub @FINALEA_31417

:FINALEA_2322
if 
  193@ == 9
goto_if_false @FINALEA_2387
if 
  194@ == 0
goto_if_false @FINALEA_2387
set_lvar_int_to_constant 125@ = 14883
set_lvar_text_label 126@s = 'ROT4_BH'
gosub @FINALEA_31417

:FINALEA_2387
if 
  193@ == 10
goto_if_false @FINALEA_2452
if 
  194@ == 0
goto_if_false @FINALEA_2452
set_lvar_int_to_constant 125@ = 14805
set_lvar_text_label 126@s = 'ROT4_BJ'
gosub @FINALEA_31417

:FINALEA_2452
if 
  146@ == 1
goto_if_false @FINALEA_4931
if 
  not is_char_dead $sweet
goto_if_false @FINALEA_4931
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_4931
if 
  locate_car_3d $sweet_car {x} 2507.8201 {y} -1309.226 {z} 33.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FINALEA_4931
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @FINALEA_4931
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_4931
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
remove_blip 128@
clear_all_script_roadblocks 
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_mission_audio MissionAudioSlot.Slot3 {audioId} 27800
load_mission_audio MissionAudioSlot.Slot2 {audioId} 14806
load_all_models_now 
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
do_fade 500 {direction} Fade.Out

:FINALEA_2692
if 
  get_fading_status 
goto_if_false @FINALEA_2716
wait 0
goto @FINALEA_2692

:FINALEA_2716
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @FINALEA_2746
wait 0
goto @FINALEA_2716

:FINALEA_2746
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_2799
set_car_coordinates $sweet_car {x} 2536.709 {y} -1278.2531 {z} 52.57
set_car_heading $sweet_car {heading} 359.954
lock_car_doors $sweet_car {lockStatus} CarLock.Locked

:FINALEA_2799
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 2536.709 {y} -1278.2531 {z} 100.0 {radius} 100.0 {clearParticles} True
load_cutscene 'RIOT_4B'

:FINALEA_2848
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_2872
wait 0
goto @FINALEA_2848

:FINALEA_2872
clear_area 2536.709 {y} -1278.2531 {z} 100.0 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_2905
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_2929
wait 0
goto @FINALEA_2905

:FINALEA_2929
clear_cutscene 
do_fade 0 {direction} Fade.Out

:FINALEA_2937
if 
  get_fading_status 
goto_if_false @FINALEA_2961
wait 0
goto @FINALEA_2937

:FINALEA_2961
set_player_control $player1 {state} False
clear_area 2372.01 {y} -1306.609 {z} 300.0 {radius} 300.0 {clearParticles} False
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_3045
set_car_coordinates $sweet_car {x} 2507.8201 {y} -1309.226 {z} 33.2726
set_car_heading $sweet_car {heading} 1.7082
lock_car_doors $sweet_car {lockStatus} CarLock.Locked

:FINALEA_3045
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @FINALEA_3088
warp_char_from_car_to_coord $scplayer {x} 2509.781 {y} -1308.965 {z} 34.7125
goto @FINALEA_3108

:FINALEA_3088
set_char_coordinates $scplayer {x} 2509.781 {y} -1308.965 {z} 34.7125

:FINALEA_3108
set_char_heading $scplayer {heading} 352.414
clear_area 2372.01 {y} -1306.609 {z} 300.0 {radius} 300.0 {clearParticles} False
wait 2000
set_fixed_camera_position 35@ {y} 36@ {z} 37@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 38@ {y} 39@ {z} 40@ {switchStyle} SwitchType.JumpCut
request_model 481
request_model 353
request_model 355
request_model 63
request_animation "CRACK"
switch_roads_off 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_ped_roads_off 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_roads_off 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_ped_roads_off 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_roads_off 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
switch_ped_roads_off 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
clear_area 2356.3999 {y} -1233.16 {z} 300.0 {radius} 300.0 {clearParticles} True
load_all_models_now 

:FINALEA_3432
if or
  not has_model_loaded 481
  not has_model_loaded 353
  not has_model_loaded 355
  not has_animation_loaded "CRACK"
  not has_model_loaded 63
goto_if_false @FINALEA_3482
wait 0
goto @FINALEA_3432

:FINALEA_3482
50@ = create_group DefaultTaskAllocator.StandStill
51@ = create_group DefaultTaskAllocator.StandStill
52@ = create_group DefaultTaskAllocator.StandStill
54@ = create_car 596 {x} 2373.803 {y} -1314.172 {z} 22.8398
set_car_heading 54@ {heading} 292.1921
set_car_only_damaged_by_player 54@ {state} True
set_car_health 54@ {health} 500
55@ = create_car 596 {x} 2368.04 {y} -1315.7061 {z} 22.8459
set_car_heading 55@ {heading} 96.2549
set_car_only_damaged_by_player 55@ {state} True
lock_car_doors 55@ {lockStatus} CarLock.Unlocked
57@ = create_car 601 {x} 2374.3601 {y} -1323.792 {z} 22.8389
set_car_heading 57@ {heading} 3.7561
set_car_health 57@ {health} 3000
set_car_heavy 57@ {state} True
set_car_proofs 57@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_only_damaged_by_player 57@ {state} True
lock_car_doors 57@ {lockStatus} CarLock.Unlocked
set_can_burst_car_tyres 57@ {state} False
58@ = create_car 492 {x} 2365.6121 {y} -1294.829 {z} 22.8433
set_car_heading 58@ {heading} 97.3729
set_car_health 58@ {health} 500
set_car_only_damaged_by_player 58@ {state} True
59@ = create_car 492 {x} 2372.4309 {y} -1295.272 {z} 22.8418
set_car_heading 59@ {heading} 75.2267
set_car_only_damaged_by_player 59@ {state} True
63@ = create_car 481 {x} 2507.2009 {y} -1300.8409 {z} 33.6726
set_car_heading 63@ {heading} 1.6501
64@ = create_char PedType.Mission2 {modelId} 285 {x} 2366.342 {y} -1317.377 {z} 22.8438
set_char_heading 64@ {heading} 3.9226
set_char_decision_maker 64@ {handleOrTemplate} 49@
set_char_relationship 64@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 64@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_only_damaged_by_player 64@ {state} True
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 64@ {state} True
set_group_leader 50@ {handle} 64@
65@ = create_char PedType.Mission2 {modelId} 285 {x} 2375.8479 {y} -1315.325 {z} 22.8368
set_char_heading 65@ {heading} 4.8178
set_char_decision_maker 65@ {handleOrTemplate} 49@
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 65@ {state} True
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 65@ {state} True
set_group_member 50@ {handle} 65@
66@ = create_char PedType.Mission2 {modelId} 285 {x} 2371.676 {y} -1316.806 {z} 22.8429
set_char_heading 66@ {heading} 0.5529
set_char_decision_maker 66@ {handleOrTemplate} 49@
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 66@ {state} True
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 66@ {state} True
set_group_member 50@ {handle} 66@
67@ = create_char PedType.Mission2 {modelId} 285 {x} 22370.3594 {y} -1319.4919 {z} 22.8515
set_char_heading 67@ {heading} 177.5538
set_char_decision_maker 67@ {handleOrTemplate} 49@
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 67@ {state} True
give_weapon_to_char 67@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 67@ {state} True
set_group_member 50@ {handle} 67@
68@ = create_char PedType.Mission2 {modelId} 285 {x} 2376.4399 {y} -1321.625 {z} 22.9844
set_char_heading 68@ {heading} 177.5538
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 68@ {handleOrTemplate} 49@
set_char_relationship 68@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 68@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_only_damaged_by_player 68@ {state} True
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 68@ {state} True
set_group_member 50@ {handle} 68@
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2364.4319 {y} -1294.0129 {z} 22.9882
set_char_heading 71@ {heading} 177.5538
set_char_decision_maker 71@ {handleOrTemplate} 49@
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_only_damaged_by_player 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 71@ {state} True
set_group_leader 51@ {handle} 71@
72@ = create_char PedType.Mission1 {modelId} 102 {x} 2369.5271 {y} -1292.228 {z} 22.8515
set_char_heading 72@ {heading} 177.5538
set_char_decision_maker 72@ {handleOrTemplate} 49@
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 72@ {state} True
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 72@ {state} True
set_group_member 51@ {handle} 72@
73@ = create_char PedType.Mission1 {modelId} 102 {x} 2371.168 {y} -1293.37 {z} 22.8436
set_char_heading 73@ {heading} 177.5538
set_char_decision_maker 73@ {handleOrTemplate} 49@
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_only_damaged_by_player 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 73@ {state} True
set_group_member 51@ {handle} 73@
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2374.9871 {y} -1294.079 {z} 22.838
set_char_heading 74@ {heading} 177.5538
set_char_decision_maker 74@ {handleOrTemplate} 49@
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 74@ {state} True
set_group_member 51@ {handle} 74@
75@ = create_char PedType.Mission1 {modelId} 102 {x} 2521.51 {y} -1270.259 {z} 33.9206
set_char_heading 75@ {heading} 100.2518
set_char_decision_maker 75@ {handleOrTemplate} 49@
set_char_relationship 75@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 75@ {state} True
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 75@ {state} True
set_group_leader 52@ {handle} 75@
76@ = create_char PedType.Mission1 {modelId} 102 {x} 2521.72 {y} -1274.981 {z} 33.8748
set_char_heading 76@ {heading} 98.0309
set_char_decision_maker 76@ {handleOrTemplate} 49@
set_char_relationship 76@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 76@ {state} True
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 76@ {state} True
set_group_member 52@ {handle} 76@
146@ = 2
switch_widescreen True
do_fade 1000 {direction} Fade.In

:FINALEA_4854
if 
  get_fading_status 
goto_if_false @FINALEA_4878
wait 0
goto @FINALEA_4854

:FINALEA_4878
print_now 'RM4_4' {time} 5000 {flag} 1
print 'RM4_14' {time} 5000 {flag} 1
TIMERA = 0
151@ = 0
skip_cutscene_start_internal @FINALEA_5363

:FINALEA_4931
if 
  146@ == 2
goto_if_false @FINALEA_5072
add_float_lvar_to_float_lvar 35@ += 41@
add_float_lvar_to_float_lvar 36@ += 42@
add_float_lvar_to_float_lvar 37@ += 43@
set_fixed_camera_position 35@ {y} 36@ {z} 37@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
add_float_lvar_to_float_lvar 38@ += 44@
add_float_lvar_to_float_lvar 39@ += 45@
add_float_lvar_to_float_lvar 40@ += 46@
point_camera_at_point 38@ {y} 39@ {z} 40@ {switchStyle} SwitchType.JumpCut
if or
  2505.2151 >= 35@
  TIMERA > 8999
goto_if_false @FINALEA_5072
146@ = 3

:FINALEA_5072
if 
  146@ == 3
goto_if_false @FINALEA_5116
if 
  TIMERA > 8999
goto_if_false @FINALEA_5116
146@ = 4

:FINALEA_5116
if 
  146@ == 4
goto_if_false @FINALEA_5217
set_fixed_camera_position 2370.9021 {y} -1328.8149 {z} 23.0473 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2371.46 {y} -1328.005 {z} 23.2292 {switchStyle} SwitchType.JumpCut
TIMERA = 0
clear_prints 
print_now 'RM4_5' {time} 8000 {flag} 1
146@ = 5

:FINALEA_5217
if 
  146@ == 5
goto_if_false @FINALEA_5319
if 
  TIMERA > 3999
goto_if_false @FINALEA_5319
set_fixed_camera_position 2372.949 {y} -1326.9139 {z} 24.7902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2372.874 {y} -1325.92 {z} 24.701 {switchStyle} SwitchType.JumpCut
TIMERA = 0
146@ = 6

:FINALEA_5319
if 
  146@ == 6
goto_if_false @FINALEA_5643
if 
  TIMERA > 3999
goto_if_false @FINALEA_5643
151@ = 1

:FINALEA_5363
skip_cutscene_end 
if 
  151@ == 0
goto_if_false @FINALEA_5455
do_fade 500 {direction} Fade.Out

:FINALEA_5390
if 
  get_fading_status 
goto_if_false @FINALEA_5414
wait 0
goto @FINALEA_5390

:FINALEA_5414
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:FINALEA_5431
if 
  get_fading_status 
goto_if_false @FINALEA_5455
wait 0
goto @FINALEA_5431

:FINALEA_5455
if 
  not is_car_dead 57@
goto_if_false @FINALEA_5509
129@ = add_blip_for_car 57@
set_blip_as_friendly 129@ {state} True
print_now 'RM4_6' {time} 7000 {flag} 1
152@ = 1

:FINALEA_5509
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_5532
freeze_car_position $sweet_car {state} True

:FINALEA_5532
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
create_script_roadblock 2456.468 {leftBottomY} -1262.2 {leftBottomZ} 23.87 {rightTopX} 2455.625 {rightTopY} -1250.55 {rightTopZ} 23.89 {type} 1
create_script_roadblock 2375.7781 {leftBottomY} -1358.4301 {leftBottomZ} 23.878 {rightTopX} 2365.675 {rightTopY} -1358.34 {rightTopZ} 24.036 {type} 1
set_ped_density_multiplier 0.5
146@ = 7

:FINALEA_5643
if 
  146@ == 7
goto_if_false @FINALEA_6450
if 
  154@ == 0
goto_if_false @FINALEA_5751
if 
  not is_char_dead 68@
goto_if_false @FINALEA_5751
if 
  has_char_spotted_char 68@ {target} $scplayer
goto_if_false @FINALEA_5751
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 68@ {state} False
gosub @FINALEA_31661
154@ = 1

:FINALEA_5751
if 
  153@ == 0
goto_if_false @FINALEA_6143
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6143
if 
  is_char_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6143
if 
  not is_char_dead 64@
goto_if_false @FINALEA_5850
set_lvar_int_to_lvar_int 109@ = 64@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 64@ {state} False
gosub @FINALEA_31661

:FINALEA_5850
if 
  not is_char_dead 65@
goto_if_false @FINALEA_5896
set_lvar_int_to_lvar_int 109@ = 65@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 65@ {state} False
gosub @FINALEA_31661

:FINALEA_5896
if 
  not is_char_dead 66@
goto_if_false @FINALEA_5942
set_lvar_int_to_lvar_int 109@ = 66@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 66@ {state} False
gosub @FINALEA_31661

:FINALEA_5942
if 
  not is_char_dead 67@
goto_if_false @FINALEA_5988
set_lvar_int_to_lvar_int 109@ = 67@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 67@ {state} False
gosub @FINALEA_31661

:FINALEA_5988
if 
  not is_char_dead 68@
goto_if_false @FINALEA_6034
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 68@ {state} False
gosub @FINALEA_31661

:FINALEA_6034
if 
  not is_char_dead 71@
goto_if_false @FINALEA_6057
set_char_only_damaged_by_player 71@ {state} False

:FINALEA_6057
if 
  not is_char_dead 72@
goto_if_false @FINALEA_6080
set_char_only_damaged_by_player 72@ {state} False

:FINALEA_6080
if 
  not is_char_dead 73@
goto_if_false @FINALEA_6103
set_char_only_damaged_by_player 73@ {state} False

:FINALEA_6103
if 
  not is_char_dead 74@
goto_if_false @FINALEA_6126
set_char_only_damaged_by_player 74@ {state} False

:FINALEA_6126
mark_model_as_no_longer_needed 481
mark_car_as_no_longer_needed 63@
153@ = 1

:FINALEA_6143
if 
  153@ == 1
goto_if_false @FINALEA_6332
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6332
if 
  locate_char_in_car_2d $scplayer {x} 2521.9099 {y} -1273.05 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEA_6332
if 
  is_char_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6332
print_now 'RM4_15' {time} 5000 {flag} 1
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 285
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
153@ = 2

:FINALEA_6332
if 
  has_object_of_type_been_smashed 2522.0081 {y} -1272.9301 {z} 35.609 {radius} 30.0 {modelId} #IMY_SHASH_WALL
goto_if_false @FINALEA_6450
play_and_kill_fx_system 102@
play_mission_audio MissionAudioSlot.Slot3
delete_char 64@
delete_char 65@
delete_char 66@
delete_char 67@
delete_char 68@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_car 54@
delete_car 58@
delete_car 59@
remove_blip 129@
clear_prints 
147@ = 1

:FINALEA_6450
if 
  152@ == 1
goto_if_false @FINALEA_6551
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6551
if 
  is_char_sitting_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6551
remove_blip 129@
print_now 'RM4_8' {time} 5000 {flag} 1
130@ = add_blip_for_coord 2522.79 {y} -1272.85 {z} 34.19
152@ = 2

:FINALEA_6551
if 
  152@ == 2
goto_if_false @FINALEA_6647
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6647
if 
  not is_char_sitting_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6647
remove_blip 130@
129@ = add_blip_for_car 57@
set_blip_as_friendly 129@ {state} True
print_now 'RM4_9' {time} 5000 {flag} 1
152@ = 1

:FINALEA_6647
if or
  152@ == 1
  152@ == 2
goto_if_false @FINALEA_6711
if 
  is_car_dead 57@
goto_if_false @FINALEA_6711
print_now 'RM4_10' {time} 7000 {flag} 1
goto @FINALEA_32473

:FINALEA_6711
if 
  148@ == 0
goto_if_false @FINALEA_6827
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_6827
if 
  locate_char_any_means_2d $scplayer {x} 2507.8201 {y} -1309.226 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_6827
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @FINALEA_6827
play_mission_audio MissionAudioSlot.Slot2
print_now 'ROT4_CA' {time} 2000 {flag} 1
148@ = 1

:FINALEA_6827
if 
  148@ == 1
goto_if_false @FINALEA_6911
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @FINALEA_6911
if or
  not locate_char_any_means_2d $scplayer {x} 2507.8201 {y} -1309.226 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @FINALEA_6911
148@ = 0

:FINALEA_6911
if or
  146@ == 1
  146@ == 100
goto_if_false @FINALEA_7131
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_7131
if 
  149@ == 1
goto_if_false @FINALEA_7039
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_7039
remove_blip 128@
128@ = add_blip_for_car $sweet_car
set_blip_as_friendly 128@ {state} True
print_now 'RM4_7' {time} 5000 {flag} 1
146@ = 100
149@ = 0

:FINALEA_7039
if 
  149@ == 0
goto_if_false @FINALEA_7131
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_7131
remove_blip 128@
128@ = add_blip_for_coord 2507.8201 {y} -1309.226 {z} 33.6726
print_now 'RM4_2' {time} 5000 {flag} 1
146@ = 1
149@ = 1

:FINALEA_7131
if 
  is_char_dead $sweet
goto_if_false @FINALEA_7170
print_now 'RM4_11' {time} 5000 {flag} 1
goto @FINALEA_32473

:FINALEA_7170
if 
  is_car_dead $sweet_car
goto_if_false @FINALEA_7209
print_now 'RM4_12' {time} 5000 {flag} 1
goto @FINALEA_32473

:FINALEA_7209
if 
  147@ == 1
goto_if_false @FINALEA_8560
if 
  155@ == 0
goto_if_false @FINALEA_8131
remove_blip 130@
remove_group 50@
remove_group 51@
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2528.252 {y} -1273.761 {z} 33.9609
set_char_heading 71@ {heading} 91.4211
set_char_decision_maker 71@ {handleOrTemplate} 49@
task_stay_in_same_place 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 71@ {health} 20
set_sense_range 71@ {range} 50.0
72@ = create_char PedType.Mission1 {modelId} 102 {x} 2530.771 {y} -1271.391 {z} 33.9602
set_char_heading 72@ {heading} 91.5182
set_char_decision_maker 72@ {handleOrTemplate} 49@
give_weapon_to_char 72@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 72@ {state} True
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 72@ {health} 20
set_sense_range 72@ {range} 50.0
73@ = create_char PedType.Mission1 {modelId} 102 {x} 2532.0801 {y} -1272.28 {z} 33.9602
set_char_heading 73@ {heading} 177.5538
set_char_decision_maker 73@ {handleOrTemplate} 49@
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 73@ {state} True
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 73@ {health} 20
set_sense_range 73@ {range} 50.0
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2539.969 {y} -1279.563 {z} 33.9609
set_char_heading 74@ {heading} 25.3324
set_char_decision_maker 74@ {handleOrTemplate} 49@
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 74@ {state} True
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 74@ {health} 20
set_sense_range 74@ {range} 50.0
77@ = create_char PedType.Mission1 {modelId} 102 {x} 2533.2791 {y} -1295.5551 {z} 33.9609
set_char_heading 77@ {heading} 327.5814
set_char_decision_maker 77@ {handleOrTemplate} 49@
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 77@ {state} True
set_char_relationship 77@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 77@ {health} 20
set_sense_range 77@ {range} 50.0
78@ = create_char PedType.Mission1 {modelId} 102 {x} 2529.178 {y} -1304.473 {z} 33.9609
set_char_heading 78@ {heading} 351.5292
set_char_decision_maker 78@ {handleOrTemplate} 49@
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 78@ {state} True
set_char_relationship 78@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 78@ {health} 20
79@ = create_char PedType.Mission1 {modelId} 63 {x} 2538.0 {y} -1307.0 {z} 34.0
set_char_heading 79@ {heading} 35.0
set_char_health 79@ {health} 3
task_play_anim 79@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
80@ = create_char PedType.Mission1 {modelId} 7 {x} 2540.04 {y} -1307.37 {z} 33.9609
set_char_heading 80@ {heading} 92.5436
set_char_health 80@ {health} 3
task_play_anim 80@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
81@ = create_char PedType.Mission1 {modelId} 63 {x} 2533.552 {y} -1308.2841 {z} 33.9609
set_char_heading 81@ {heading} 67.9508
set_char_health 81@ {health} 3
task_play_anim 81@ {animationName} "CRCKIDLE2" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = create_char PedType.Mission1 {modelId} 7 {x} 2534.6819 {y} -1287.199 {z} 33.9609
set_char_heading 82@ {heading} 104.5
set_char_health 82@ {health} 3
task_play_anim 82@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
print_now 'RM4_13' {time} 5000 {flag} 1
130@ = add_blip_for_coord 2542.1001 {y} -1303.99 {z} 34.03
155@ = 1

:FINALEA_8131
if 
  is_char_dead $sweet
goto_if_false @FINALEA_8170
print_now 'RM4_11' {time} 5000 {flag} 1
goto @FINALEA_32473

:FINALEA_8170
if 
  155@ == 1
goto_if_false @FINALEA_8560
53@ = get_area_visible 
if 
  197@ == 0
goto_if_false @FINALEA_8269
if 
  not is_char_dead 79@
goto_if_false @FINALEA_8269
if 
  is_char_touching_char 79@ {other} $scplayer
goto_if_false @FINALEA_8269
task_flee_char 79@ {threat} $scplayer {radius} 100.0 {time} 30000
197@ = 1

:FINALEA_8269
if 
  198@ == 0
goto_if_false @FINALEA_8345
if 
  not is_char_dead 80@
goto_if_false @FINALEA_8345
if 
  is_char_touching_char 80@ {other} $scplayer
goto_if_false @FINALEA_8345
task_flee_char 80@ {threat} $scplayer {radius} 100.0 {time} 30000
198@ = 1

:FINALEA_8345
if 
  199@ == 0
goto_if_false @FINALEA_8421
if 
  not is_char_dead 81@
goto_if_false @FINALEA_8421
if 
  is_char_touching_char 81@ {other} $scplayer
goto_if_false @FINALEA_8421
task_flee_char 81@ {threat} $scplayer {radius} 100.0 {time} 30000
199@ = 1

:FINALEA_8421
if 
  200@ == 0
goto_if_false @FINALEA_8497
if 
  not is_char_dead 82@
goto_if_false @FINALEA_8497
if 
  is_char_touching_char 82@ {other} $scplayer
goto_if_false @FINALEA_8497
task_flee_char 82@ {threat} $scplayer {radius} 100.0 {time} 30000
200@ = 1

:FINALEA_8497
if 
  53@ == 2
goto_if_false @FINALEA_8560
do_fade 1000 {direction} Fade.Out

:FINALEA_8522
if 
  get_fading_status 
goto_if_false @FINALEA_8546
wait 0
goto @FINALEA_8522

:FINALEA_8546
147@ = 2
156@ = 1

:FINALEA_8560
if 
  147@ == 2
goto_if_false @FINALEA_17153
if 
  156@ == 1
goto_if_false @FINALEA_10782
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.Out
clear_all_script_roadblocks 

:FINALEA_8616
if 
  get_fading_status 
goto_if_false @FINALEA_8640
wait 0
goto @FINALEA_8616

:FINALEA_8640
set_player_mood $player1 {mood} 7 {time} 360000
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 130@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 77@
delete_char 78@
delete_char 79@
delete_char 80@
delete_char 81@
delete_char 82@
delete_car 57@
delete_char $sweet
remove_animation "CRACK"
unload_special_character 1
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 492
set_char_coordinates $scplayer {x} 2543.26 {y} -1303.844 {z} 1024.074
set_char_heading $scplayer {heading} 175.5166
set_fixed_camera_position 2544.616 {y} -1302.899 {z} 1024.407 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2544.1931 {y} -1303.702 {z} 1024.828 {switchStyle} SwitchType.JumpCut
set_char_area_visible $scplayer {areaId} 2
130@ = add_blip_for_coord 2579.8501 {y} -1305.76 {z} 1037.0699
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
clear_area 2578.0 {y} -1306.0 {z} 200.0 {radius} 200.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
print_big 'RM4_17' {time} 1000 {style} TextStyle.BottomRight

:FINALEA_8918
if 
  get_fading_status 
goto_if_false @FINALEA_8942
wait 0
goto @FINALEA_8918

:FINALEA_8942
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2527.783 {y} -1288.816 {z} 1031.4301
137@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2575.094 {y} -1286.042 {z} 1037.781
143@ = create_pickup_with_ammo 351 {pickupType} PickupType.Once {ammo} 20 {x} 2568.502 {y} -1282.345 {z} 1037.781
request_model 103
request_model 108
request_model 285
request_model 601
request_animation "SWAT"
request_model #IMCOMPMOVEDR1_LAS
request_car_recording 287
load_all_models_now 
load_scene 2541.8101 {y} -1311.3199 {z} 1028.22
85@ = create_char PedType.Mission1 {modelId} 103 {x} 2543.2439 {y} -1318.538 {z} 1030.427
set_char_heading 85@ {heading} 3.2815
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_play_anim 85@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_area_visible 85@ {areaId} 2
set_char_health 85@ {health} 200
set_char_max_health 85@ {maxHealth} 200
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 102 {x} 2536.071 {y} -1321.4709 {z} 1030.4301
set_char_heading 86@ {heading} 263.8364
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 86@ {areaId} 2
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
174@ = 0
87@ = create_char PedType.Mission1 {modelId} 108 {x} 2524.7371 {y} -1298.328 {z} 1030.427
set_char_heading 87@ {heading} 175.4097
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_accuracy 87@ {accuracy} 80
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
175@ = 0
88@ = create_char PedType.Mission1 {modelId} 103 {x} 2527.814 {y} -1289.816 {z} 1030.427
set_char_heading 88@ {heading} 178.5987
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_accuracy 87@ {accuracy} 80
set_char_shoot_rate 87@ {rate} 70
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
176@ = 0
wait 3000
71@ = create_char PedType.Mission1 {modelId} 103 {x} 2531.064 {y} -1304.332 {z} 1030.4301
set_char_heading 71@ {heading} 264.767
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_accuracy 71@ {accuracy} 80
set_char_health 71@ {health} 200
set_char_max_health 71@ {maxHealth} 200
159@ = 0
73@ = create_char PedType.Mission1 {modelId} 108 {x} 2566.6731 {y} -1297.709 {z} 1036.781
set_char_heading 73@ {heading} 85.3469
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 73@ {areaId} 2
set_char_accuracy 73@ {accuracy} 80
set_char_shoot_rate 73@ {rate} 60
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 103 {x} 2566.7271 {y} -1287.224 {z} 1036.781
set_char_heading 74@ {heading} 96.3687
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_char_accuracy 74@ {accuracy} 80
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.8589 {y} -1287.161 {z} 1030.4189
set_char_heading 75@ {heading} 90.0
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 75@ {areaId} 2
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
set_char_accuracy 75@ {accuracy} 80
set_char_shoot_rate 75@ {rate} 60
163@ = 0
76@ = create_char PedType.Mission1 {modelId} 108 {x} 2556.854 {y} -1287.161 {z} 1030.4189
set_char_heading 76@ {heading} 90.0
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 200
set_char_max_health 76@ {maxHealth} 200
164@ = 0
77@ = create_char PedType.Mission1 {modelId} 102 {x} 2556.854 {y} -1300.6281 {z} 1030.4189
set_char_heading 77@ {heading} 90.0
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 200
set_char_max_health 77@ {maxHealth} 200
165@ = 0
78@ = create_char PedType.Mission1 {modelId} 103 {x} 2539.8049 {y} -1298.6071 {z} 1030.4301
set_char_heading 78@ {heading} 64.7154
set_char_decision_maker 78@ {handleOrTemplate} 47@
give_weapon_to_char 78@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 78@ {areaId} 2
set_char_health 78@ {health} 200
set_char_shoot_rate 78@ {rate} 70
set_char_max_health 78@ {maxHealth} 200
166@ = 0
80@ = create_char PedType.Mission1 {modelId} 103 {x} 2552.7981 {y} -1300.993 {z} 1030.4301
set_char_heading 80@ {heading} 87.5663
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 80@ {areaId} 2
set_char_health 80@ {health} 200
set_char_max_health 80@ {maxHealth} 200
set_char_accuracy 80@ {accuracy} 80
set_char_shoot_rate 80@ {rate} 60
168@ = 0
81@ = create_char PedType.Mission1 {modelId} 102 {x} 2563.2339 {y} -1294.067 {z} 1030.4301
set_char_heading 81@ {heading} 93.219
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 200
set_char_max_health 81@ {maxHealth} 200
169@ = 0
82@ = create_char PedType.Mission1 {modelId} 103 {x} 2550.9919 {y} -1290.274 {z} 1030.4301
set_char_heading 82@ {heading} 103.6499
set_char_decision_maker 82@ {handleOrTemplate} 47@
give_weapon_to_char 82@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 82@ {areaId} 2
set_char_health 82@ {health} 200
set_char_shoot_rate 82@ {rate} 60
set_char_max_health 82@ {maxHealth} 200
170@ = 0
83@ = create_char PedType.Mission1 {modelId} 108 {x} 2556.1909 {y} -1281.446 {z} 1036.781
set_char_heading 83@ {heading} 183.4208
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 83@ {areaId} 2
171@ = 0
57@ = create_car 601 {x} 2561.8181 {y} -1275.167 {z} 1031.019
freeze_car_position 57@ {state} True
set_car_heading 57@ {heading} 178.9
set_vehicle_area_visible 57@ {interiorId} 2
64@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 285
set_char_decision_maker 64@ {handleOrTemplate} 47@
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 64@ {areaId} 2
set_char_shoot_rate 64@ {rate} 80
set_char_health 64@ {health} 200
set_char_max_health 64@ {maxHealth} 200
set_char_accuracy 64@ {accuracy} 80
65@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 285 {seat} SeatId.BikeRear
set_char_decision_maker 65@ {handleOrTemplate} 47@
set_char_health 65@ {health} 200
set_char_max_health 65@ {maxHealth} 200
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_area_visible 65@ {areaId} 2
153@ = 0
179@ = 0
152@ = 0
100@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2565.814 {y} -1303.566 {z} 1033.173
set_object_heading 100@ {heading} 90.0
101@ = create_object_no_offset #CJ_WIN_POP2 {x} 2561.811 {y} -1279.639 {z} 1032.1281
freeze_object_position 101@ {state} True
102@ = create_fx_system "WALLBUST" {x} 2562.0 {y} -1282.0 {z} 1031.0 {ignoreBoundingChecks} True
disable_all_entry_exits True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
print_now 'RM4_16' {time} 7000 {flag} 1
156@ = 2

:FINALEA_10782
if 
  156@ == 2
goto_if_false @FINALEA_11002
if or
  locate_char_any_means_3d $scplayer {x} 2543.3799 {y} -1310.38 {z} 1028.26 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  is_char_shooting $scplayer
goto_if_false @FINALEA_11002
if 
  173@ == 0
goto_if_false @FINALEA_10939
if 
  not is_char_dead 85@
goto_if_false @FINALEA_10939
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2527.5791
112@ = -1318.762
113@ = 1030.4301
gosub @FINALEA_31568
173@ = 1

:FINALEA_10939
if 
  176@ == 0
goto_if_false @FINALEA_10995
if 
  not is_char_dead 88@
goto_if_false @FINALEA_10995
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31661
176@ = 1

:FINALEA_10995
156@ = 3

:FINALEA_11002
if 
  156@ == 3
goto_if_false @FINALEA_11250
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2540.95 {leftBottomY} -1314.42 {leftBottomZ} 1028.79 {rightTopX} 2529.24 {rightTopY} -1333.21 {rightTopZ} 1035.04 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2534.4399 {y} -1318.92 {z} 1031.17 {xRadius} 5.5 {yRadius} 5.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEA_11168
if 
  174@ == 0
goto_if_false @FINALEA_11161
if 
  not is_char_dead 86@
goto_if_false @FINALEA_11161
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31854
174@ = 1

:FINALEA_11161
156@ = 4

:FINALEA_11168
if 
  174@ == 0
goto_if_false @FINALEA_11250
if 
  not is_char_dead 86@
goto_if_false @FINALEA_11250
if 
  has_char_been_damaged_by_char 86@ {handle} $scplayer
goto_if_false @FINALEA_11250
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31854
174@ = 1
156@ = 4

:FINALEA_11250
if 
  156@ == 4
goto_if_false @FINALEA_11384
if or
  locate_char_any_means_3d $scplayer {x} 2527.1799 {y} -1304.24 {z} 1027.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
  is_char_dead 88@
goto_if_false @FINALEA_11384
if 
  175@ == 0
goto_if_false @FINALEA_11377
if 
  not is_char_dead 87@
goto_if_false @FINALEA_11377
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31854
175@ = 1

:FINALEA_11377
156@ = 5

:FINALEA_11384
if 
  156@ == 5
goto_if_false @FINALEA_12167
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2529.3301 {leftBottomY} -1308.3 {leftBottomZ} 1027.55 {rightTopX} 2537.78 {rightTopY} -1272.14 {rightTopZ} 1035.76 {drawSphere} False
  is_char_shooting_in_area $scplayer {leftBottomX} 2522.8701 {leftBottomY} -1299.61 {topRightX} 2529.8501 {topRightY} -1287.66 {drawSphere} False
goto_if_false @FINALEA_12167
if 
  163@ == 0
goto_if_false @FINALEA_11581
if 
  not is_char_dead 75@
goto_if_false @FINALEA_11581
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2540.8589
112@ = -1287.161
113@ = 1030.4189
117@ = 1500
121@ = 90.0
gosub @FINALEA_31937
163@ = 1

:FINALEA_11581
if 
  164@ == 0
goto_if_false @FINALEA_11685
if 
  not is_char_dead 76@
goto_if_false @FINALEA_11685
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2556.854
112@ = -1287.161
113@ = 1030.4189
117@ = 2000
121@ = 90.0
gosub @FINALEA_31937
164@ = 1

:FINALEA_11685
if 
  165@ == 0
goto_if_false @FINALEA_11789
if 
  not is_char_dead 77@
goto_if_false @FINALEA_11789
set_lvar_int_to_lvar_int 109@ = 77@
111@ = 2556.854
112@ = -1300.6281
113@ = 1030.4189
117@ = 1200
121@ = 90.0
gosub @FINALEA_32178
165@ = 1

:FINALEA_11789
if 
  161@ == 0
goto_if_false @FINALEA_11845
if 
  not is_char_dead 73@
goto_if_false @FINALEA_11845
set_lvar_int_to_lvar_int 109@ = 73@
gosub @FINALEA_31661
161@ = 1

:FINALEA_11845
if 
  162@ == 0
goto_if_false @FINALEA_11901
if 
  not is_char_dead 74@
goto_if_false @FINALEA_11901
set_lvar_int_to_lvar_int 109@ = 74@
gosub @FINALEA_31661
162@ = 1

:FINALEA_11901
if 
  171@ == 0
goto_if_false @FINALEA_11957
if 
  not is_char_dead 83@
goto_if_false @FINALEA_11957
set_lvar_int_to_lvar_int 109@ = 83@
gosub @FINALEA_31661
171@ = 1

:FINALEA_11957
if 
  166@ == 0
goto_if_false @FINALEA_12013
if 
  not is_char_dead 78@
goto_if_false @FINALEA_12013
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31617
166@ = 1

:FINALEA_12013
if 
  168@ == 0
goto_if_false @FINALEA_12062
if 
  not is_char_dead 80@
goto_if_false @FINALEA_12062
task_kill_char_on_foot 80@ {target} $scplayer
168@ = 1

:FINALEA_12062
if 
  169@ == 0
goto_if_false @FINALEA_12111
if 
  not is_char_dead 81@
goto_if_false @FINALEA_12111
task_kill_char_on_foot 81@ {target} $scplayer
169@ = 1

:FINALEA_12111
if 
  170@ == 0
goto_if_false @FINALEA_12160
if 
  not is_char_dead 82@
goto_if_false @FINALEA_12160
task_kill_char_on_foot 82@ {target} $scplayer
170@ = 1

:FINALEA_12160
156@ = 6

:FINALEA_12167
if 
  156@ == 6
goto_if_false @FINALEA_12346
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2529.8799 {leftBottomY} -1307.89 {leftBottomZ} 1027.0 {rightTopX} 2538.3201 {rightTopY} -1277.63 {rightTopZ} 1032.54 {drawSphere} False
goto_if_false @FINALEA_12346
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
if 
  159@ == 0
goto_if_false @FINALEA_12339
if 
  not is_char_dead 71@
goto_if_false @FINALEA_12339
set_lvar_int_to_lvar_int 109@ = 71@
111@ = 2560.0549
112@ = -1304.916
113@ = 1030.4301
gosub @FINALEA_31568
159@ = 1

:FINALEA_12339
156@ = 7

:FINALEA_12346
if 
  156@ == 7
goto_if_false @FINALEA_12419
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2546.4299 {leftBottomY} -1277.49 {leftBottomZ} 1027.0 {rightTopX} 2568.0601 {rightTopY} -1310.79 {rightTopZ} 1032.54 {drawSphere} False
goto_if_false @FINALEA_12419
156@ = 8

:FINALEA_12419
if or
  156@ == 8
  180@ > 6
goto_if_false @FINALEA_12507
if 
  152@ == 0
goto_if_false @FINALEA_12507
if 
  not is_car_dead 57@
goto_if_false @FINALEA_12507
freeze_car_position 57@ {state} False
start_playback_recorded_car 57@ {path} 287
TIMERB = 0
152@ = 1

:FINALEA_12507
if 
  152@ == 1
goto_if_false @FINALEA_12615
if or
  is_closest_object_of_type_smashed_or_damaged 2561.811 {y} -1279.639 {z} 1032.1281 {radius} 10.0 {modelId} #CJ_WIN_POP2 {smashed} True {damaged} True
  TIMERB > 250
goto_if_false @FINALEA_12615
play_and_kill_fx_system 102@
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2557.8799 {y} -1288.65 {z} 1031.91
play_mission_audio MissionAudioSlot.Slot3
break_object 101@ {intensity} 1
152@ = 2

:FINALEA_12615
if 
  152@ == 2
goto_if_false @FINALEA_12720
if 
  not is_car_dead 57@
goto_if_false @FINALEA_12720
if 
  not is_playback_going_on_for_car 57@
goto_if_false @FINALEA_12720
if 
  not is_char_dead 64@
goto_if_false @FINALEA_12689
task_kill_char_on_foot 64@ {target} $scplayer

:FINALEA_12689
if 
  not is_char_dead 65@
goto_if_false @FINALEA_12713
task_kill_char_on_foot 65@ {target} $scplayer

:FINALEA_12713
152@ = 3

:FINALEA_12720
if 
  163@ == 1
goto_if_false @FINALEA_12848
if 
  not is_char_dead 75@
goto_if_false @FINALEA_12848
if or
  has_char_been_damaged_by_char 75@ {handle} $scplayer
  locate_char_any_means_char_3d 75@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_12848
if 
  not is_char_dead 75@
goto_if_false @FINALEA_12836
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 2
goto @FINALEA_12848

:FINALEA_12836
mark_char_as_no_longer_needed 75@
163@ = 2

:FINALEA_12848
if 
  164@ == 1
goto_if_false @FINALEA_12976
if 
  not is_char_dead 76@
goto_if_false @FINALEA_12976
if or
  has_char_been_damaged_by_char 76@ {handle} $scplayer
  locate_char_any_means_char_3d 76@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_12976
if 
  not is_char_dead 76@
goto_if_false @FINALEA_12964
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 2
goto @FINALEA_12976

:FINALEA_12964
mark_char_as_no_longer_needed 76@
164@ = 2

:FINALEA_12976
if 
  165@ == 1
goto_if_false @FINALEA_13104
if 
  not is_char_dead 77@
goto_if_false @FINALEA_13104
if or
  has_char_been_damaged_by_char 77@ {handle} $scplayer
  locate_char_any_means_char_3d 77@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_13104
if 
  not is_char_dead 77@
goto_if_false @FINALEA_13092
task_kill_char_on_foot 77@ {target} $scplayer
165@ = 2
goto @FINALEA_13104

:FINALEA_13092
mark_char_as_no_longer_needed 77@
165@ = 2

:FINALEA_13104
if 
  159@ == 1
goto_if_false @FINALEA_13157
if 
  is_char_dead 71@
goto_if_false @FINALEA_13157
mark_char_as_no_longer_needed 71@
180@ += 1
159@ = 2

:FINALEA_13157
if 
  161@ == 1
goto_if_false @FINALEA_13210
if 
  is_char_dead 73@
goto_if_false @FINALEA_13210
mark_char_as_no_longer_needed 73@
180@ += 1
161@ = 2

:FINALEA_13210
if 
  162@ == 1
goto_if_false @FINALEA_13263
if 
  is_char_dead 74@
goto_if_false @FINALEA_13263
mark_char_as_no_longer_needed 74@
180@ += 1
162@ = 2

:FINALEA_13263
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_13323
if 
  is_char_dead 75@
goto_if_false @FINALEA_13323
mark_char_as_no_longer_needed 75@
180@ += 1
163@ = 3

:FINALEA_13323
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_13383
if 
  is_char_dead 76@
goto_if_false @FINALEA_13383
mark_char_as_no_longer_needed 76@
180@ += 1
164@ = 3

:FINALEA_13383
if or
  165@ == 1
  165@ == 2
goto_if_false @FINALEA_13443
if 
  is_char_dead 77@
goto_if_false @FINALEA_13443
mark_char_as_no_longer_needed 77@
180@ += 1
165@ = 3

:FINALEA_13443
if 
  166@ == 1
goto_if_false @FINALEA_13496
if 
  is_char_dead 78@
goto_if_false @FINALEA_13496
mark_char_as_no_longer_needed 78@
180@ += 1
166@ = 2

:FINALEA_13496
if 
  168@ == 1
goto_if_false @FINALEA_13549
if 
  is_char_dead 80@
goto_if_false @FINALEA_13549
mark_char_as_no_longer_needed 80@
180@ += 1
168@ = 2

:FINALEA_13549
if 
  169@ == 1
goto_if_false @FINALEA_13602
if 
  is_char_dead 81@
goto_if_false @FINALEA_13602
mark_char_as_no_longer_needed 81@
180@ += 1
169@ = 2

:FINALEA_13602
if 
  170@ == 1
goto_if_false @FINALEA_13655
if 
  is_char_dead 82@
goto_if_false @FINALEA_13655
mark_char_as_no_longer_needed 82@
180@ += 1
170@ = 2

:FINALEA_13655
if 
  171@ == 1
goto_if_false @FINALEA_13708
if 
  is_char_dead 83@
goto_if_false @FINALEA_13708
mark_char_as_no_longer_needed 83@
180@ += 1
171@ = 2

:FINALEA_13708
if 
  153@ == 0
goto_if_false @FINALEA_13761
if 
  is_char_dead 64@
goto_if_false @FINALEA_13761
mark_char_as_no_longer_needed 64@
180@ += 1
153@ = 1

:FINALEA_13761
if 
  179@ == 0
goto_if_false @FINALEA_13814
if 
  is_char_dead 65@
goto_if_false @FINALEA_13814
mark_char_as_no_longer_needed 65@
180@ += 1
179@ = 1

:FINALEA_13814
if 
  180@ > 8
goto_if_false @FINALEA_14760
if 
  156@ == 8
goto_if_false @FINALEA_14760
if 
  181@ == 0
goto_if_false @FINALEA_14760
if 
  does_object_exist 100@
goto_if_false @FINALEA_14760
if 
  182@ == 0
goto_if_false @FINALEA_14380
85@ = create_char PedType.Mission1 {modelId} 103 {x} 2571.635 {y} -1302.189 {z} 1030.427
set_char_heading 85@ {heading} 84.9134
set_char_decision_maker 85@ {handleOrTemplate} 49@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_play_anim 85@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_area_visible 85@ {areaId} 2
set_char_accuracy 85@ {accuracy} 80
set_char_health 85@ {health} 150
set_char_max_health 85@ {maxHealth} 150
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 102 {x} 2570.3979 {y} -1299.233 {z} 1030.427
set_char_heading 86@ {heading} 119.2958
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 86@ {areaId} 2
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
174@ = 0
87@ = create_char PedType.Mission1 {modelId} 108 {x} 2566.8989 {y} -1290.145 {z} 1030.4301
set_char_heading 87@ {heading} 180.0082
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
175@ = 0
88@ = create_char PedType.Mission1 {modelId} 103 {x} 2570.637 {y} -1286.8409 {z} 1030.4301
set_char_heading 88@ {heading} 182.7895
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
176@ = 0
84@ = create_char PedType.Mission1 {modelId} 103 {x} 2569.728 {y} -1284.528 {z} 1030.4301
set_char_heading 84@ {heading} 168.4302
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
172@ = 0
182@ = 1
report_mission_audio_event_at_object 100@ {soundId} ScriptSound.SoundShutterDoorStart

:FINALEA_14380
if 
  slide_object 100@ {posX} 2565.814 {posY} -1303.566 {posZ} 1035.3621 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @FINALEA_14760
report_mission_audio_event_at_object 100@ {soundId} ScriptSound.SoundShutterDoorStop
156@ = 9
if 
  173@ == 0
goto_if_false @FINALEA_14529
if 
  not is_char_dead 85@
goto_if_false @FINALEA_14529
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2564.186
112@ = -1301.676
113@ = 1030.4301
gosub @FINALEA_31568
173@ = 1

:FINALEA_14529
if 
  174@ == 0
goto_if_false @FINALEA_14585
if 
  not is_char_dead 86@
goto_if_false @FINALEA_14585
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31617
174@ = 1

:FINALEA_14585
if 
  172@ == 0
goto_if_false @FINALEA_14641
if 
  not is_char_dead 84@
goto_if_false @FINALEA_14641
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31617
172@ = 1

:FINALEA_14641
if 
  175@ == 0
goto_if_false @FINALEA_14697
if 
  not is_char_dead 87@
goto_if_false @FINALEA_14697
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31617
175@ = 1

:FINALEA_14697
if 
  176@ == 0
goto_if_false @FINALEA_14753
if 
  not is_char_dead 88@
goto_if_false @FINALEA_14753
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31617
176@ = 1

:FINALEA_14753
181@ = 1

:FINALEA_14760
if 
  156@ == 9
goto_if_false @FINALEA_14949
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2566.1399 {leftBottomY} -1307.4301 {leftBottomZ} 1027.0 {rightTopX} 2580.0601 {rightTopY} -1279.36 {rightTopZ} 1034.16 {drawSphere} False
goto_if_false @FINALEA_14949
if 
  172@ == 1
goto_if_false @FINALEA_14942
if 
  not is_char_dead 84@
goto_if_false @FINALEA_14942
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2575.5649
112@ = -1284.965
113@ = 1030.427
118@ = 2575.5129
119@ = -1303.2419
120@ = 1036.781
gosub @FINALEA_31699
172@ = 2

:FINALEA_14942
156@ = 10

:FINALEA_14949
if 
  156@ == 10
goto_if_false @FINALEA_15336
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2577.98 {leftBottomY} -1307.4399 {leftBottomZ} 1034.5 {rightTopX} 2583.49 {rightTopY} -1298.9399 {rightTopZ} 1039.3 {drawSphere} False
goto_if_false @FINALEA_15336
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 130@
clear_mission_audio MissionAudioSlot.Slot3
set_char_coordinates $scplayer {x} 2575.0359 {y} -1305.741 {z} 1036.781
set_char_heading $scplayer {heading} 273.5172
delete_char 77@
delete_char 78@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 71@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 78@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 64@
delete_char 65@
delete_car 57@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_object 100@
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 601
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
set_fixed_camera_position 2579.686 {y} -1310.002 {z} 1037.224 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2579.7361 {y} -1309.022 {z} 1037.418 {switchStyle} SwitchType.JumpCut
print_big 'RM4_18' {time} 1000 {style} TextStyle.BottomRight
wait 1000
task_go_straight_to_coord $scplayer {x} 2580.0911 {y} -1305.649 {z} 1036.7729 {speed} MoveState.Walk {time} 4000
156@ = 11

:FINALEA_15336
if 
  156@ == 11
goto_if_false @FINALEA_17153
if 
  locate_stopped_char_on_foot_2d $scplayer {x} 2580.0911 {y} -1305.649 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_17153
130@ = add_blip_for_coord 2521.52 {y} -1301.89 {z} 1047.37
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
request_model 144
request_model 146
request_model 173
request_model 356
request_model 346
request_model #BARREL4
load_all_models_now 

:FINALEA_15464
if or
  not has_model_loaded 144
  not has_model_loaded 146
  not has_model_loaded 173
  not has_model_loaded 356
goto_if_false @FINALEA_15506
wait 0
goto @FINALEA_15464

:FINALEA_15506
if or
  not has_model_loaded 346
  not has_model_loaded #BARREL4
goto_if_false @FINALEA_15538
wait 0
goto @FINALEA_15506

:FINALEA_15538
134@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2580.9529 {y} -1285.1169 {z} 1044.173
138@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2528.4561 {y} -1282.385 {z} 1048.337
96@ = create_object #BARREL4 {x} 2560.3091 {y} -1290.702 {z} 1043.1331
set_object_only_damaged_by_player 96@ {state} True
make_object_targettable 96@ {state} True
97@ = create_object #BARREL4 {x} 2540.467 {y} -1306.681 {z} 1047.297
set_object_only_damaged_by_player 97@ {state} True
make_object_targettable 97@ {state} True
98@ = create_object #BARREL4 {x} 2545.491 {y} -1296.2841 {z} 1043.13
set_object_only_damaged_by_player 98@ {state} True
make_object_targettable 98@ {state} True
99@ = create_object #BARREL4 {x} 2538.1709 {y} -1289.806 {z} 1043.1331
set_object_only_damaged_by_player 99@ {state} True
make_object_targettable 99@ {state} True
71@ = create_char PedType.Mission1 {modelId} 173 {x} 2580.8091 {y} -1285.65 {z} 1043.1331
set_char_heading 71@ {heading} 178.4956
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
159@ = 0
72@ = create_char PedType.Mission1 {modelId} 173 {x} 2574.7361 {y} -1295.861 {z} 1043.1331
set_char_heading 72@ {heading} 183.0452
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_area_visible 72@ {areaId} 2
set_sense_range 72@ {range} 10.0
set_char_accuracy 72@ {accuracy} 60
160@ = 0
73@ = create_char PedType.Mission1 {modelId} 146 {x} 2561.6479 {y} -1300.6479 {z} 1043.17
set_char_heading 73@ {heading} 270.0
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 73@ {areaId} 2
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 144 {x} 2545.6479 {y} -1300.6479 {z} 1043.17
set_char_heading 74@ {heading} 270.0
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_char_shoot_rate 74@ {rate} 70
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 146 {x} 2538.3479 {y} -1287.1479 {z} 1043.1331
set_char_heading 75@ {heading} 270.0
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_area_visible 75@ {areaId} 2
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
163@ = 0
76@ = create_char PedType.Mission1 {modelId} 144 {x} 2553.6479 {y} -1287.1479 {z} 1043.1331
set_char_heading 76@ {heading} 270.0
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 200
set_char_max_health 76@ {maxHealth} 200
set_char_shoot_rate 76@ {rate} 60
164@ = 0
wait 250
77@ = create_char PedType.Mission1 {modelId} 146 {x} 2552.748 {y} -1304.36 {z} 1043.1331
set_char_heading 77@ {heading} 87.8604
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 77@ {skill} WeaponSkill.Pro
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 200
set_char_max_health 77@ {maxHealth} 200
set_char_shoot_rate 77@ {rate} 80
165@ = 0
79@ = create_char PedType.Mission1 {modelId} 146 {x} 2555.8511 {y} -1296.115 {z} 1043.13
set_char_heading 79@ {heading} 348.0356
set_char_decision_maker 79@ {handleOrTemplate} 47@
give_weapon_to_char 79@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 79@ {skill} WeaponSkill.Pro
set_char_area_visible 79@ {areaId} 2
set_char_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 79@ {health} 200
set_char_max_health 79@ {maxHealth} 200
set_char_accuracy 79@ {accuracy} 80
167@ = 0
80@ = create_char PedType.Mission1 {modelId} 144 {x} 2542.606 {y} -1296.0959 {z} 1043.1331
set_char_heading 80@ {heading} 353.9691
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 80@ {areaId} 2
set_char_health 80@ {health} 200
set_char_max_health 80@ {maxHealth} 200
168@ = 0
81@ = create_char PedType.Mission1 {modelId} 146 {x} 2552.9241 {y} -1290.8781 {z} 1043.1331
set_char_heading 81@ {heading} 187.0611
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 200
set_char_max_health 81@ {maxHealth} 200
set_char_accuracy 81@ {accuracy} 70
169@ = 0
83@ = create_char PedType.Mission1 {modelId} 144 {x} 2550.0591 {y} -1281.248 {z} 1043.1331
set_char_heading 83@ {heading} 230.8361
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 83@ {areaId} 2
set_char_health 83@ {health} 200
set_char_max_health 83@ {maxHealth} 200
set_char_shoot_rate 83@ {rate} 80
171@ = 0
wait 250
84@ = create_char PedType.Mission1 {modelId} 144 {x} 2531.906 {y} -1283.062 {z} 1047.297
set_char_heading 84@ {heading} 233.2448
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
set_char_accuracy 84@ {accuracy} 50
172@ = 0
85@ = create_char PedType.Mission1 {modelId} 144 {x} 2548.9771 {y} -1282.426 {z} 1047.297
set_char_heading 85@ {heading} 234.0824
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 85@ {skill} WeaponSkill.Pro
set_char_area_visible 85@ {areaId} 2
set_char_health 85@ {health} 200
set_char_max_health 85@ {maxHealth} 200
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 144 {x} 2530.0349 {y} -1293.182 {z} 1047.36
set_char_heading 86@ {heading} 268.475
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
set_char_area_visible 86@ {areaId} 2
set_char_accuracy 86@ {accuracy} 80
174@ = 0
set_player_control $player1 {state} True
switch_widescreen False
set_char_heading $scplayer {heading} 0.0
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
print_now 'RM4_23' {time} 7000 {flag} 1
147@ = 3
157@ = 1
156@ = 12

:FINALEA_17153
if 
  147@ == 3
goto_if_false @FINALEA_21839
if 
  157@ == 1
goto_if_false @FINALEA_17300
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2576.3 {leftBottomY} -1299.12 {leftBottomZ} 1039.71 {rightTopX} 2584.46 {rightTopY} -1281.22 {rightTopZ} 1046.6 {drawSphere} False
goto_if_false @FINALEA_17300
if 
  159@ == 0
goto_if_false @FINALEA_17293
if 
  not is_char_dead 71@
goto_if_false @FINALEA_17293
set_lvar_int_to_lvar_int 109@ = 71@
gosub @FINALEA_31661
159@ = 1

:FINALEA_17293
157@ = 2

:FINALEA_17300
if 
  160@ == 0
goto_if_false @FINALEA_17376
if 
  not is_char_dead 72@
goto_if_false @FINALEA_17376
if or
  has_char_spotted_char 72@ {target} $scplayer
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @FINALEA_17376
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_17376
if 
  157@ == 2
goto_if_false @FINALEA_18327
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2571.502 {leftBottomY} -1311.993 {leftBottomZ} 1041.858 {rightTopX} 2560.8059 {rightTopY} -1276.365 {rightTopZ} 1046.7271 {drawSphere} False
goto_if_false @FINALEA_18327
if 
  159@ == 0
goto_if_false @FINALEA_17477
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
159@ = 1

:FINALEA_17477
if 
  161@ == 0
goto_if_false @FINALEA_17581
if 
  not is_char_dead 73@
goto_if_false @FINALEA_17581
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2561.6479
112@ = -1300.6479
113@ = 1043.17
117@ = 3000
121@ = 270.0
gosub @FINALEA_31937
161@ = 1

:FINALEA_17581
if 
  162@ == 0
goto_if_false @FINALEA_17685
if 
  not is_char_dead 74@
goto_if_false @FINALEA_17685
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2545.6479
112@ = -1300.6479
113@ = 1043.17
117@ = 1200
121@ = 270.0
gosub @FINALEA_31937
162@ = 1

:FINALEA_17685
if 
  163@ == 0
goto_if_false @FINALEA_17789
if 
  not is_char_dead 75@
goto_if_false @FINALEA_17789
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2538.3479
112@ = -1287.1479
113@ = 1043.1331
117@ = 1500
121@ = 270.0
gosub @FINALEA_32178
163@ = 1

:FINALEA_17789
if 
  164@ == 0
goto_if_false @FINALEA_17893
if 
  not is_char_dead 76@
goto_if_false @FINALEA_17893
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2553.6479
112@ = -1287.1479
113@ = 1043.1331
117@ = 2000
121@ = 270.0
gosub @FINALEA_32178
164@ = 1

:FINALEA_17893
if 
  165@ == 0
goto_if_false @FINALEA_17942
if 
  not is_char_dead 77@
goto_if_false @FINALEA_17942
task_kill_char_on_foot 77@ {target} $scplayer
165@ = 1

:FINALEA_17942
if 
  167@ == 0
goto_if_false @FINALEA_17991
if 
  not is_char_dead 79@
goto_if_false @FINALEA_17991
task_kill_char_on_foot 79@ {target} $scplayer
167@ = 1

:FINALEA_17991
if 
  168@ == 0
goto_if_false @FINALEA_18047
if 
  not is_char_dead 80@
goto_if_false @FINALEA_18047
set_lvar_int_to_lvar_int 109@ = 80@
gosub @FINALEA_31617
168@ = 1

:FINALEA_18047
if 
  169@ == 0
goto_if_false @FINALEA_18103
if 
  not is_char_dead 81@
goto_if_false @FINALEA_18103
set_lvar_int_to_lvar_int 109@ = 81@
gosub @FINALEA_31617
168@ = 1

:FINALEA_18103
if 
  171@ == 0
goto_if_false @FINALEA_18152
if 
  not is_char_dead 83@
goto_if_false @FINALEA_18152
task_kill_char_on_foot 83@ {target} $scplayer
171@ = 1

:FINALEA_18152
if 
  172@ == 0
goto_if_false @FINALEA_18208
if 
  not is_char_dead 84@
goto_if_false @FINALEA_18208
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31617
172@ = 1

:FINALEA_18208
if 
  173@ == 0
goto_if_false @FINALEA_18264
if 
  not is_char_dead 85@
goto_if_false @FINALEA_18264
set_lvar_int_to_lvar_int 109@ = 85@
gosub @FINALEA_31661
173@ = 1

:FINALEA_18264
if 
  174@ == 0
goto_if_false @FINALEA_18320
if 
  not is_char_dead 86@
goto_if_false @FINALEA_18320
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31661
174@ = 1

:FINALEA_18320
157@ = 3

:FINALEA_18327
if 
  157@ == 3
goto_if_false @FINALEA_20722
if 
  161@ == 1
goto_if_false @FINALEA_18473
if 
  not is_char_dead 73@
goto_if_false @FINALEA_18473
if 
  has_char_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @FINALEA_18473
if or
  not is_char_dead 73@
  locate_char_any_means_char_3d 73@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18461
task_kill_char_on_foot 73@ {target} $scplayer
161@ = 2
goto @FINALEA_18473

:FINALEA_18461
mark_char_as_no_longer_needed 73@
161@ = 2

:FINALEA_18473
if 
  162@ == 1
goto_if_false @FINALEA_18601
if 
  not is_char_dead 74@
goto_if_false @FINALEA_18601
if or
  has_char_been_damaged_by_char 74@ {handle} $scplayer
  locate_char_any_means_char_3d 74@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18601
if 
  not is_char_dead 74@
goto_if_false @FINALEA_18589
task_kill_char_on_foot 74@ {target} $scplayer
162@ = 2
goto @FINALEA_18601

:FINALEA_18589
mark_char_as_no_longer_needed 74@
162@ = 2

:FINALEA_18601
if 
  163@ == 1
goto_if_false @FINALEA_18729
if 
  not is_char_dead 75@
goto_if_false @FINALEA_18729
if or
  has_char_been_damaged_by_char 75@ {handle} $scplayer
  locate_char_any_means_char_3d 75@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18729
if 
  not is_char_dead 75@
goto_if_false @FINALEA_18717
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 2
goto @FINALEA_18729

:FINALEA_18717
mark_char_as_no_longer_needed 75@
163@ = 2

:FINALEA_18729
if 
  164@ == 1
goto_if_false @FINALEA_18852
if 
  not is_char_dead 76@
goto_if_false @FINALEA_18852
if or
  has_char_been_damaged_by_char 76@ {handle} $scplayer
  locate_char_any_means_char_3d 76@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18852
if 
  not is_char_dead 76@
goto_if_false @FINALEA_18845
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 2
goto @FINALEA_18852

:FINALEA_18845
164@ = 2

:FINALEA_18852
if or
  161@ == 1
  161@ == 2
goto_if_false @FINALEA_18912
if 
  is_char_dead 73@
goto_if_false @FINALEA_18912
mark_char_as_no_longer_needed 73@
183@ += 1
161@ = 3

:FINALEA_18912
if or
  162@ == 1
  162@ == 2
goto_if_false @FINALEA_18972
if 
  is_char_dead 74@
goto_if_false @FINALEA_18972
mark_char_as_no_longer_needed 74@
183@ += 1
162@ = 3

:FINALEA_18972
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_19032
if 
  is_char_dead 75@
goto_if_false @FINALEA_19032
mark_char_as_no_longer_needed 75@
183@ += 1
163@ = 3

:FINALEA_19032
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_19092
if 
  is_char_dead 76@
goto_if_false @FINALEA_19092
mark_char_as_no_longer_needed 76@
183@ += 1
164@ = 3

:FINALEA_19092
if 
  165@ == 1
goto_if_false @FINALEA_19145
if 
  is_char_dead 77@
goto_if_false @FINALEA_19145
mark_char_as_no_longer_needed 77@
183@ += 1
165@ = 2

:FINALEA_19145
if 
  168@ == 1
goto_if_false @FINALEA_19198
if 
  is_char_dead 80@
goto_if_false @FINALEA_19198
mark_char_as_no_longer_needed 80@
183@ += 1
168@ = 2

:FINALEA_19198
if 
  169@ == 1
goto_if_false @FINALEA_19251
if 
  is_char_dead 81@
goto_if_false @FINALEA_19251
mark_char_as_no_longer_needed 81@
183@ += 1
169@ = 2

:FINALEA_19251
if 
  171@ == 1
goto_if_false @FINALEA_19304
if 
  is_char_dead 83@
goto_if_false @FINALEA_19304
mark_char_as_no_longer_needed 83@
183@ += 1
171@ = 2

:FINALEA_19304
if 
  172@ == 1
goto_if_false @FINALEA_19357
if 
  is_char_dead 84@
goto_if_false @FINALEA_19357
mark_char_as_no_longer_needed 84@
183@ += 1
172@ = 2

:FINALEA_19357
if 
  173@ == 1
goto_if_false @FINALEA_19410
if 
  is_char_dead 85@
goto_if_false @FINALEA_19410
mark_char_as_no_longer_needed 85@
183@ += 1
173@ = 2

:FINALEA_19410
if 
  174@ == 1
goto_if_false @FINALEA_19463
if 
  is_char_dead 86@
goto_if_false @FINALEA_19463
mark_char_as_no_longer_needed 86@
183@ += 1
174@ = 2

:FINALEA_19463
if 
  184@ == 0
goto_if_false @FINALEA_19844
if 
  183@ > 5
goto_if_false @FINALEA_19844
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2551.1201 {leftBottomY} -1276.34 {leftBottomZ} 1046.55 {rightTopX} 2543.0701 {rightTopY} -1287.63 {rightTopZ} 1050.46 {drawSphere} False
goto_if_false @FINALEA_19844
87@ = create_char PedType.Mission1 {modelId} 173 {x} 2573.448 {y} -1301.981 {z} 1043.1331
set_char_heading 87@ {heading} 87.1597
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 87@
111@ = 2566.2881
112@ = -1301.637
113@ = 1043.1331
118@ = 2565.74
119@ = -1297.0909
120@ = 1043.1331
gosub @FINALEA_31699
175@ = 1
88@ = create_char PedType.Mission1 {modelId} 173 {x} 2575.3081 {y} -1301.908 {z} 1043.1331
set_char_heading 88@ {heading} 91.2377
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 88@
111@ = 2566.9839
112@ = -1302.09
113@ = 1043.1331
gosub @FINALEA_31568
176@ = 1
184@ = 1

:FINALEA_19844
if 
  185@ == 0
goto_if_false @FINALEA_20177
if 
  183@ > 8
goto_if_false @FINALEA_20177
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2566.0901 {leftBottomY} -1301.26 {leftBottomZ} 1046.91 {rightTopX} 2554.5601 {rightTopY} -1309.0601 {rightTopZ} 1050.0 {drawSphere} False
goto_if_false @FINALEA_20177
89@ = create_char PedType.Mission1 {modelId} 173 {x} 2527.271 {y} -1305.6479 {z} 1047.297
set_char_heading 89@ {heading} 269.5592
set_char_decision_maker 89@ {handleOrTemplate} 47@
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 89@ {skill} WeaponSkill.Pro
set_char_area_visible 89@ {areaId} 2
set_lvar_int_to_lvar_int 109@ = 89@
111@ = 2542.3169
112@ = -1305.674
113@ = 1047.297
gosub @FINALEA_31568
177@ = 1
90@ = create_char PedType.Mission1 {modelId} 173 {x} 2523.7 {y} -1305.8781 {z} 1047.297
set_char_heading 90@ {heading} 273.1955
set_char_decision_maker 90@ {handleOrTemplate} 47@
give_weapon_to_char 90@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 90@ {skill} WeaponSkill.Pro
set_char_area_visible 90@ {areaId} 2
set_lvar_int_to_lvar_int 109@ = 90@
111@ = 2534.5669
112@ = -1305.547
113@ = 1047.297
gosub @FINALEA_31568
178@ = 1
185@ = 1

:FINALEA_20177
if 
  175@ == 1
goto_if_false @FINALEA_20230
if 
  is_char_dead 87@
goto_if_false @FINALEA_20230
mark_char_as_no_longer_needed 87@
183@ += 1
175@ = 2

:FINALEA_20230
if 
  176@ == 1
goto_if_false @FINALEA_20283
if 
  is_char_dead 88@
goto_if_false @FINALEA_20283
mark_char_as_no_longer_needed 88@
183@ += 1
176@ = 2

:FINALEA_20283
if 
  177@ == 1
goto_if_false @FINALEA_20336
if 
  is_char_dead 89@
goto_if_false @FINALEA_20336
mark_char_as_no_longer_needed 89@
183@ += 1
177@ = 2

:FINALEA_20336
if 
  178@ == 1
goto_if_false @FINALEA_20389
if 
  is_char_dead 90@
goto_if_false @FINALEA_20389
mark_char_as_no_longer_needed 90@
183@ += 1
178@ = 2

:FINALEA_20389
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2522.3501 {leftBottomY} -1309.65 {leftBottomZ} 1045.6 {rightTopX} 2513.5 {rightTopY} -1295.97 {rightTopZ} 1050.3199 {drawSphere} False
goto_if_false @FINALEA_20722
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2525.0791 {y} -1301.891 {z} 1047.297
set_char_heading $scplayer {heading} 89.7295
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 80@
delete_char 81@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 145
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
set_fixed_camera_position 2520.282 {y} -1306.363 {z} 1047.599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2520.3 {y} -1305.3879 {z} 1047.823 {switchStyle} SwitchType.JumpCut
print_big 'RM4_19' {time} 1000 {style} TextStyle.BottomRight
wait 1000
task_go_straight_to_coord $scplayer {x} 2520.0249 {y} -1301.845 {z} 1047.2889 {speed} MoveState.Walk {time} 5000
157@ = 4

:FINALEA_20722
if 
  157@ == 4
goto_if_false @FINALEA_21839
if 
  locate_stopped_char_on_foot_2d $scplayer {x} 2520.0249 {y} -1301.845 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_21839
request_model 104
request_model 111
request_model 109
request_model 352
request_model 349
request_model 12
request_animation "STRIP"
request_model 256
load_all_models_now 

:FINALEA_20820
if or
  not has_model_loaded 104
  not has_model_loaded 111
  not has_model_loaded 109
  not has_model_loaded 352
  not has_model_loaded 349
goto_if_false @FINALEA_20864
wait 0
goto @FINALEA_20820

:FINALEA_20864
if or
  not has_model_loaded 12
  not has_animation_loaded "STRIP"
  not has_model_loaded 256
goto_if_false @FINALEA_20904
wait 0
goto @FINALEA_20864

:FINALEA_20904
135@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2520.3999 {y} -1281.287 {z} 1054.681
wait 250
89@ = create_char PedType.Mission1 {modelId} 104 {x} 2520.8911 {y} -1281.7629 {z} 1053.681
set_char_heading 89@ {heading} 180.628
set_char_decision_maker 89@ {handleOrTemplate} 47@
give_weapon_to_char 89@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 89@ {skill} WeaponSkill.Pro
set_char_area_visible 89@ {areaId} 2
177@ = 0
71@ = create_char PedType.Mission1 {modelId} 109 {x} 2529.813 {y} -1285.063 {z} 1053.641
set_char_heading 71@ {heading} 182.0171
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_accuracy 71@ {accuracy} 50
159@ = 0
72@ = create_char PedType.Mission1 {modelId} 104 {x} 2529.9199 {y} -1286.83 {z} 1053.641
set_char_heading 72@ {heading} 358.5364
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
set_char_area_visible 72@ {areaId} 2
set_char_accuracy 72@ {accuracy} 50
160@ = 0
task_chat_with_char 72@ {other} 71@ {leadSpeaker} True {_p4} 1
task_chat_with_char 71@ {other} 72@ {leadSpeaker} False {_p4} 1
91@ = create_char PedType.Mission1 {modelId} 12 {x} 2537.1499 {y} -1288.125 {z} 1053.641
set_char_heading 91@ {heading} 280.1631
set_char_decision_maker 91@ {handleOrTemplate} 47@
set_char_health 91@ {health} 1
73@ = create_char PedType.Mission1 {modelId} 111 {x} 2540.364 {y} -1287.553 {z} 1053.647
set_char_heading 73@ {heading} 89.793
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 73@ {skill} WeaponSkill.Pro
set_char_area_visible 73@ {areaId} 2
set_char_accuracy 73@ {accuracy} 30
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 109 {x} 2537.074 {y} -1287.274 {z} 1053.681
set_char_heading 74@ {heading} 265.803
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 74@ {health} 150
set_char_max_health 74@ {maxHealth} 150
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 104 {x} 2542.2261 {y} -1294.381 {z} 1053.641
set_char_heading 75@ {heading} 89.8814
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 75@ {skill} WeaponSkill.Pro
set_char_area_visible 75@ {areaId} 2
task_sit_down 75@ {time} 400000
set_char_accuracy 75@ {accuracy} 30
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
163@ = 0
wait 250
77@ = create_char PedType.Mission1 {modelId} 109 {x} 2539.4771 {y} -1303.431 {z} 1053.641
set_char_heading 77@ {heading} 10.5492
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 77@ {skill} WeaponSkill.Pro
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 150
set_char_max_health 77@ {maxHealth} 150
165@ = 0
78@ = create_char PedType.Mission1 {modelId} 111 {x} 2533.9619 {y} -1306.916 {z} 1053.641
set_char_heading 78@ {heading} 338.7091
set_char_decision_maker 78@ {handleOrTemplate} 47@
give_weapon_to_char 78@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 78@ {skill} WeaponSkill.Pro
set_char_area_visible 78@ {areaId} 2
set_char_health 78@ {health} 200
set_char_max_health 78@ {maxHealth} 200
166@ = 0
remove_blip 130@
130@ = add_blip_for_coord 2579.0 {y} -1284.0 {z} 1054.686
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_player_control $player1 {state} True
switch_widescreen False
set_char_heading $scplayer {heading} 0.0
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
print_now 'RM4_21' {time} 5000 {flag} 1
147@ = 4
158@ = 1
157@ = 5

:FINALEA_21839
if 
  147@ == 4
goto_if_false @FINALEA_27552
if 
  158@ == 1
goto_if_false @FINALEA_21986
if 
  locate_char_any_means_3d $scplayer {x} 2520.23 {y} -1293.09 {z} 1051.49 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEA_21986
if 
  177@ == 0
goto_if_false @FINALEA_21979
if 
  not is_char_dead 89@
goto_if_false @FINALEA_21979
set_lvar_int_to_lvar_int 109@ = 89@
gosub @FINALEA_31661
177@ = 1

:FINALEA_21979
158@ = 2

:FINALEA_21986
if 
  158@ == 2
goto_if_false @FINALEA_22205
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2522.3201 {leftBottomY} -1293.64 {leftBottomZ} 1052.5 {rightTopX} 2532.4099 {rightTopY} -1273.4399 {rightTopZ} 1055.89 {drawSphere} False
goto_if_false @FINALEA_22122
TIMERA = 0
if 
  160@ == 0
goto_if_false @FINALEA_22108
if 
  not is_char_dead 72@
goto_if_false @FINALEA_22108
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_22108
158@ = 3
goto @FINALEA_22205

:FINALEA_22122
if or
  has_char_been_damaged_by_char 71@ {handle} $scplayer
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @FINALEA_22205
if 
  160@ == 0
goto_if_false @FINALEA_22198
if 
  not is_char_dead 72@
goto_if_false @FINALEA_22198
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_22198
158@ = 3

:FINALEA_22205
if 
  158@ == 3
goto_if_false @FINALEA_22298
if 
  TIMERA > 250
goto_if_false @FINALEA_22298
if 
  159@ == 0
goto_if_false @FINALEA_22291
if 
  not is_char_dead 71@
goto_if_false @FINALEA_22291
task_kill_char_on_foot 71@ {target} $scplayer
159@ = 1

:FINALEA_22291
158@ = 4

:FINALEA_22298
if 
  158@ == 4
goto_if_false @FINALEA_22735
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2530.6799 {leftBottomY} -1306.62 {leftBottomZ} 1052.16 {rightTopX} 2542.05 {rightTopY} -1275.1899 {rightTopZ} 1057.08 {drawSphere} False
goto_if_false @FINALEA_22735
if 
  not is_char_dead 91@
goto_if_false @FINALEA_22425
set_lvar_int_to_lvar_int 109@ = 91@
111@ = 2537.7361
112@ = -1306.448
113@ = 1053.641
gosub @FINALEA_32419

:FINALEA_22425
if 
  161@ == 0
goto_if_false @FINALEA_22518
if 
  not is_char_dead 73@
goto_if_false @FINALEA_22518
task_toggle_duck 73@ {state} -1
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2540.3701
112@ = -1280.79
113@ = 1053.647
gosub @FINALEA_31568
161@ = 1

:FINALEA_22518
if 
  162@ == 0
goto_if_false @FINALEA_22567
if 
  not is_char_dead 74@
goto_if_false @FINALEA_22567
task_kill_char_on_foot 74@ {target} $scplayer
162@ = 1

:FINALEA_22567
if 
  163@ == 0
goto_if_false @FINALEA_22616
if 
  not is_char_dead 75@
goto_if_false @FINALEA_22616
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 1

:FINALEA_22616
if 
  165@ == 0
goto_if_false @FINALEA_22672
if 
  not is_char_dead 77@
goto_if_false @FINALEA_22672
set_lvar_int_to_lvar_int 109@ = 77@
gosub @FINALEA_31617
165@ = 1

:FINALEA_22672
if 
  166@ == 0
goto_if_false @FINALEA_22728
if 
  not is_char_dead 78@
goto_if_false @FINALEA_22728
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31661
166@ = 1

:FINALEA_22728
158@ = 5

:FINALEA_22735
if 
  158@ == 5
goto_if_false @FINALEA_23450
if 
  locate_char_any_means_3d $scplayer {x} 2537.78 {y} -1298.62 {z} 1055.1 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEA_23450
76@ = create_char PedType.Mission1 {modelId} 111 {x} 2545.1931 {y} -1302.545 {z} 1053.647
set_char_heading 76@ {heading} 359.6221
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 76@ {skill} WeaponSkill.Pro
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 150
set_char_max_health 76@ {maxHealth} 150
task_toggle_duck 76@ {state} -1
164@ = 0
79@ = create_char PedType.Mission1 {modelId} 104 {x} 2548.8081 {y} -1288.9449 {z} 1053.641
set_char_heading 79@ {heading} 168.1978
set_char_decision_maker 79@ {handleOrTemplate} 47@
give_weapon_to_char 79@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 79@ {skill} WeaponSkill.Pro
set_char_accuracy 79@ {accuracy} 50
set_char_area_visible 79@ {areaId} 2
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
167@ = 0
81@ = create_char PedType.Mission1 {modelId} 109 {x} 2548.2109 {y} -1293.491 {z} 1053.641
set_char_heading 81@ {heading} 177.248
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 81@ {skill} WeaponSkill.Pro
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 150
set_char_max_health 81@ {maxHealth} 150
set_char_accuracy 81@ {accuracy} 30
169@ = 0
82@ = create_char PedType.Mission1 {modelId} 104 {x} 2548.4729 {y} -1295.834 {z} 1053.647
set_char_heading 82@ {heading} 6.5626
set_char_decision_maker 82@ {handleOrTemplate} 47@
give_weapon_to_char 82@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_accuracy 82@ {accuracy} 30
set_char_area_visible 82@ {areaId} 2
set_char_health 82@ {health} 150
set_char_max_health 82@ {maxHealth} 150
170@ = 0
88@ = create_char PedType.Mission1 {modelId} 104 {x} 2568.7351 {y} -1294.134 {z} 1053.681
set_char_heading 88@ {heading} 270.3791
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 88@ {skill} WeaponSkill.Pro
set_char_area_visible 88@ {areaId} 2
set_char_only_damaged_by_player 88@ {state} True
set_char_health 88@ {health} 150
set_char_max_health 88@ {maxHealth} 150
176@ = 0
80@ = create_char PedType.Mission1 {modelId} 104 {x} 2571.7 {y} -1294.298 {z} 1053.6801
set_char_heading 80@ {heading} 90.0
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 80@ {areaId} 2
168@ = 0
83@ = create_char PedType.Mission1 {modelId} 111 {x} 2571.802 {y} -1289.5909 {z} 1053.641
set_char_heading 83@ {heading} 90.3346
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_accuracy 83@ {accuracy} 50
set_char_area_visible 83@ {areaId} 2
set_char_health 83@ {health} 150
set_char_max_health 83@ {maxHealth} 150
171@ = 0
158@ = 6

:FINALEA_23450
if 
  158@ == 6
goto_if_false @FINALEA_24183
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2543.8701 {leftBottomY} -1308.98 {leftBottomZ} 1050.78 {rightTopX} 2553.03 {rightTopY} -1276.55 {rightTopZ} 1059.5 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2543.8799 {y} -1304.9 {z} 1053.8101 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_24183
delete_char 89@
delete_char 71@
delete_char 72@
if 
  164@ == 0
goto_if_false @FINALEA_23661
if 
  not is_char_dead 76@
goto_if_false @FINALEA_23661
task_toggle_duck 76@ {state} -1
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2545.238
112@ = -1291.791
113@ = 1053.641
gosub @FINALEA_31568
164@ = 1

:FINALEA_23661
if 
  167@ == 0
goto_if_false @FINALEA_23717
if 
  not is_char_dead 79@
goto_if_false @FINALEA_23717
set_lvar_int_to_lvar_int 109@ = 79@
gosub @FINALEA_31661
167@ = 1

:FINALEA_23717
if 
  169@ == 0
goto_if_false @FINALEA_23803
if 
  not is_char_dead 81@
goto_if_false @FINALEA_23803
set_lvar_int_to_lvar_int 109@ = 81@
111@ = 2553.877
112@ = -1292.145
113@ = 1053.647
gosub @FINALEA_31568
169@ = 1

:FINALEA_23803
if 
  170@ == 0
goto_if_false @FINALEA_23919
if 
  not is_char_dead 82@
goto_if_false @FINALEA_23919
set_lvar_int_to_lvar_int 109@ = 82@
111@ = 2553.217
112@ = -1296.903
113@ = 1053.647
118@ = 2557.1709
119@ = -1296.618
120@ = 1053.641
gosub @FINALEA_31699
170@ = 1

:FINALEA_23919
if 
  176@ == 0
goto_if_false @FINALEA_23968
if 
  not is_char_dead 88@
goto_if_false @FINALEA_23968
task_kill_char_on_foot 88@ {target} $scplayer
176@ = 1

:FINALEA_23968
if 
  168@ == 0
goto_if_false @FINALEA_24072
if 
  not is_char_dead 80@
goto_if_false @FINALEA_24072
set_lvar_int_to_lvar_int 109@ = 80@
111@ = 2571.7
112@ = -1294.298
113@ = 1053.6801
117@ = 1200
121@ = 90.0
gosub @FINALEA_31937
168@ = 1

:FINALEA_24072
if 
  171@ == 0
goto_if_false @FINALEA_24176
if 
  not is_char_dead 83@
goto_if_false @FINALEA_24176
set_lvar_int_to_lvar_int 109@ = 83@
111@ = 2571.802
112@ = -1289.5909
113@ = 1053.641
117@ = 2000
121@ = 90.0
gosub @FINALEA_31937
171@ = 1

:FINALEA_24176
158@ = 7

:FINALEA_24183
if 
  158@ == 7
goto_if_false @FINALEA_24656
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2544.0 {leftBottomY} -1298.3101 {leftBottomZ} 1051.84 {rightTopX} 2577.1101 {rightTopY} -1278.61 {rightTopZ} 1057.0601 {drawSphere} False
goto_if_false @FINALEA_24656
delete_char 91@
delete_char 74@
delete_char 75@
delete_char 77@
delete_char 78@
84@ = create_char PedType.Mission1 {modelId} 111 {x} 2561.144 {y} -1302.854 {z} 1053.641
set_char_heading 84@ {heading} 357.9032
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 84@ {skill} WeaponSkill.Pro
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
set_char_accuracy 84@ {accuracy} 40
172@ = 0
if 
  172@ == 0
goto_if_false @FINALEA_24465
if 
  not is_char_dead 84@
goto_if_false @FINALEA_24465
task_toggle_duck 84@ {state} -1
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2561.0759
112@ = -1295.2531
113@ = 1053.647
gosub @FINALEA_31568
172@ = 1

:FINALEA_24465
85@ = create_char PedType.Mission1 {modelId} 111 {x} 2561.1279 {y} -1284.657 {z} 1053.641
set_char_heading 85@ {heading} 180.8092
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 85@ {skill} WeaponSkill.Pro
set_char_area_visible 85@ {areaId} 2
set_char_accuracy 85@ {accuracy} 40
set_char_health 85@ {health} 150
set_char_max_health 85@ {maxHealth} 150
173@ = 0
if 
  173@ == 0
goto_if_false @FINALEA_24649
if 
  not is_char_dead 85@
goto_if_false @FINALEA_24649
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2561.241
112@ = -1292.802
113@ = 1053.647
gosub @FINALEA_31568
173@ = 1

:FINALEA_24649
158@ = 8

:FINALEA_24656
if 
  187@ == 0
goto_if_false @FINALEA_24923
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2556.98 {leftBottomY} -1298.58 {leftBottomZ} 1052.0 {rightTopX} 2569.6899 {rightTopY} -1035.12 {rightTopZ} 1056.21 {drawSphere} False
goto_if_false @FINALEA_24923
139@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2552.2981 {y} -1306.0601 {z} 1054.681
87@ = create_char PedType.Mission1 {modelId} 111 {x} 2566.7161 {y} -1305.75 {z} 1053.681
set_char_heading 87@ {heading} 4.514
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_accuracy 87@ {accuracy} 70
set_char_area_visible 87@ {areaId} 2
175@ = 1
task_kill_char_on_foot 87@ {target} $scplayer
92@ = create_char PedType.Mission1 {modelId} 256 {x} 2557.072 {y} -1302.799 {z} 1053.875
set_char_heading 92@ {heading} 53.1978
set_char_decision_maker 92@ {handleOrTemplate} 47@
set_char_health 92@ {health} 5
task_play_anim 92@ {animationName} "STRIP_E" {animationFile} "STRIP" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
187@ = 1

:FINALEA_24923
if 
  186@ == 0
goto_if_false @FINALEA_25189
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2558.9399 {leftBottomY} -1290.24 {leftBottomZ} 1052.74 {rightTopX} 2568.72 {rightTopY} -1283.5601 {rightTopZ} 1057.4301 {drawSphere} False
goto_if_false @FINALEA_25189
136@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.4751 {y} -1280.687 {z} 1054.686
86@ = create_char PedType.Mission1 {modelId} 111 {x} 2567.9871 {y} -1281.41 {z} 1053.687
set_char_heading 86@ {heading} 178.685
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_accuracy 86@ {accuracy} 30
set_char_area_visible 86@ {areaId} 2
174@ = 1
task_kill_char_on_foot 86@ {target} $scplayer
93@ = create_char PedType.Mission1 {modelId} 256 {x} 2557.8169 {y} -1285.218 {z} 1053.876
set_char_heading 93@ {heading} 288.0473
set_char_decision_maker 93@ {handleOrTemplate} 47@
set_char_health 93@ {health} 5
task_play_anim 93@ {animationName} "STRIP_A" {animationFile} "STRIP" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
186@ = 1

:FINALEA_25189
if 
  168@ == 1
goto_if_false @FINALEA_25317
if 
  not is_char_dead 80@
goto_if_false @FINALEA_25317
if 
  has_char_been_damaged_by_char 80@ {handle} $scplayer
goto_if_false @FINALEA_25317
if or
  not is_char_dead 80@
  locate_char_any_means_char_3d 80@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_25305
task_kill_char_on_foot 80@ {target} $scplayer
168@ = 2
goto @FINALEA_25317

:FINALEA_25305
mark_char_as_no_longer_needed 80@
168@ = 2

:FINALEA_25317
if 
  171@ == 1
goto_if_false @FINALEA_25445
if 
  not is_char_dead 83@
goto_if_false @FINALEA_25445
if or
  has_char_been_damaged_by_char 83@ {handle} $scplayer
  locate_char_any_means_char_3d 83@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_25445
if 
  not is_char_dead 83@
goto_if_false @FINALEA_25433
task_kill_char_on_foot 83@ {target} $scplayer
171@ = 2
goto @FINALEA_25445

:FINALEA_25433
mark_char_as_no_longer_needed 83@
171@ = 2

:FINALEA_25445
if 
  159@ == 1
goto_if_false @FINALEA_25498
if 
  is_char_dead 71@
goto_if_false @FINALEA_25498
mark_char_as_no_longer_needed 71@
180@ += 1
159@ = 2

:FINALEA_25498
if 
  161@ == 1
goto_if_false @FINALEA_25551
if 
  is_char_dead 73@
goto_if_false @FINALEA_25551
mark_char_as_no_longer_needed 73@
180@ += 1
161@ = 2

:FINALEA_25551
if 
  162@ == 1
goto_if_false @FINALEA_25604
if 
  is_char_dead 74@
goto_if_false @FINALEA_25604
mark_char_as_no_longer_needed 74@
180@ += 1
162@ = 2

:FINALEA_25604
if 
  163@ == 1
goto_if_false @FINALEA_25657
if 
  is_char_dead 75@
goto_if_false @FINALEA_25657
mark_char_as_no_longer_needed 75@
180@ += 1
163@ = 2

:FINALEA_25657
if 
  164@ == 1
goto_if_false @FINALEA_25710
if 
  is_char_dead 76@
goto_if_false @FINALEA_25710
mark_char_as_no_longer_needed 76@
180@ += 1
164@ = 2

:FINALEA_25710
if 
  165@ == 1
goto_if_false @FINALEA_25763
if 
  is_char_dead 77@
goto_if_false @FINALEA_25763
mark_char_as_no_longer_needed 77@
180@ += 1
165@ = 3

:FINALEA_25763
if 
  166@ == 1
goto_if_false @FINALEA_25816
if 
  is_char_dead 78@
goto_if_false @FINALEA_25816
mark_char_as_no_longer_needed 78@
180@ += 1
166@ = 2

:FINALEA_25816
if or
  168@ == 1
  168@ == 2
goto_if_false @FINALEA_25876
if 
  is_char_dead 80@
goto_if_false @FINALEA_25876
mark_char_as_no_longer_needed 80@
180@ += 1
168@ = 3

:FINALEA_25876
if 
  169@ == 1
goto_if_false @FINALEA_25929
if 
  is_char_dead 81@
goto_if_false @FINALEA_25929
mark_char_as_no_longer_needed 81@
180@ += 1
169@ = 2

:FINALEA_25929
if 
  170@ == 1
goto_if_false @FINALEA_25982
if 
  is_char_dead 82@
goto_if_false @FINALEA_25982
mark_char_as_no_longer_needed 82@
180@ += 1
170@ = 2

:FINALEA_25982
if or
  171@ == 1
  171@ == 2
goto_if_false @FINALEA_26042
if 
  is_char_dead 83@
goto_if_false @FINALEA_26042
mark_char_as_no_longer_needed 83@
180@ += 1
171@ = 3

:FINALEA_26042
if 
  172@ == 1
goto_if_false @FINALEA_26095
if 
  is_char_dead 84@
goto_if_false @FINALEA_26095
mark_char_as_no_longer_needed 84@
183@ += 1
172@ = 2

:FINALEA_26095
if 
  173@ == 1
goto_if_false @FINALEA_26148
if 
  is_char_dead 85@
goto_if_false @FINALEA_26148
mark_char_as_no_longer_needed 85@
183@ += 1
173@ = 2

:FINALEA_26148
if 
  174@ == 1
goto_if_false @FINALEA_26201
if 
  is_char_dead 86@
goto_if_false @FINALEA_26201
mark_char_as_no_longer_needed 86@
183@ += 1
174@ = 2

:FINALEA_26201
if 
  175@ == 1
goto_if_false @FINALEA_26254
if 
  is_char_dead 87@
goto_if_false @FINALEA_26254
mark_char_as_no_longer_needed 87@
183@ += 1
175@ = 2

:FINALEA_26254
if 
  176@ == 1
goto_if_false @FINALEA_26307
if 
  is_char_dead 88@
goto_if_false @FINALEA_26307
mark_char_as_no_longer_needed 88@
183@ += 1
176@ = 2

:FINALEA_26307
if 
  177@ == 1
goto_if_false @FINALEA_26360
if 
  is_char_dead 89@
goto_if_false @FINALEA_26360
mark_char_as_no_longer_needed 89@
183@ += 1
177@ = 2

:FINALEA_26360
if 
  158@ == 8
goto_if_false @FINALEA_26531
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.4299 {leftBottomY} -1281.21 {leftBottomZ} 1050.83 {rightTopX} 2584.7 {rightTopY} -1291.47 {rightTopZ} 1055.35 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2579.8201 {y} -1284.91 {z} 1054.12 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_26531
print_now 'RM4_24' {time} 5000 {flag} 1
remove_blip 130@
130@ = add_blip_for_coord 2550.74 {y} -1285.02 {z} 1060.62
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
158@ = 9

:FINALEA_26531
if 
  158@ == 9
goto_if_false @FINALEA_27552
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.46 {leftBottomY} -1306.59 {leftBottomZ} 1058.27 {rightTopX} 2571.97 {rightTopY} -1275.1 {rightTopZ} 1063.08 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2575.3999 {y} -1300.35 {z} 1061.016 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_27552
remove_blip 130@
delete_char 92@
delete_char 93@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 78@
delete_char 79@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEA_26771
if 
  get_fading_status 
goto_if_false @FINALEA_26795
wait 0
goto @FINALEA_26771

:FINALEA_26795
set_area_visible 2
load_cutscene 'RIOT_4C'

:FINALEA_26810
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_26834
wait 0
goto @FINALEA_26810

:FINALEA_26834
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_26843
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_26867
wait 0
goto @FINALEA_26843

:FINALEA_26867
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEA_26882
if 
  get_fading_status 
goto_if_false @FINALEA_26906
wait 0
goto @FINALEA_26882

:FINALEA_26906
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
remove_animation "STRIP"
remove_animation "SWAT"
mark_model_as_no_longer_needed 256
request_model 109
request_model 102
request_model 173
request_model 355
request_model 369
load_special_character 2 {modelName} 'SMOKEV'
load_all_models_now 

:FINALEA_26983
if 
  not has_special_character_loaded 2
goto_if_false @FINALEA_27009
wait 0
goto @FINALEA_26983

:FINALEA_27009
if or
  not has_model_loaded 109
  not has_model_loaded 102
  not has_model_loaded 173
  not has_model_loaded 355
  not has_model_loaded 369
goto_if_false @FINALEA_27054
wait 0
goto @FINALEA_27009

:FINALEA_27054
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2549.918 {y} -1284.457 {z} 1060.016
set_char_heading $big_smoke {heading} 250.566
set_char_decision_maker $big_smoke {handleOrTemplate} 47@
give_weapon_to_char $big_smoke {weaponType} WeaponType.Ak47 {ammo} 999999
set_char_accuracy $big_smoke {accuracy} 70
set_char_bulletproof_vest $big_smoke {state} True
set_char_health $big_smoke {health} 10000
set_char_max_health $big_smoke {maxHealth} 2000
set_char_suffers_critical_hits $big_smoke {state} False
set_char_only_damaged_by_player $big_smoke {state} True
131@ = add_blip_for_char $big_smoke
set_char_has_used_entry_exit $big_smoke {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_follow_node_threshold_distance $big_smoke {range} 2.0
set_char_area_visible $big_smoke {areaId} 2
display_onscreen_counter_with_string $r1_seq {display} CounterDisplay.Bar {text} 'RM4_39'
set_char_uses_upperbody_damage_anims_only $big_smoke {state} True
set_char_coordinates $scplayer {x} 2564.447 {y} -1292.822 {z} 1060.016
set_char_heading $scplayer {heading} 58.5
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
remove_pickup 136@
remove_pickup 137@
remove_pickup 138@
remove_pickup 139@
137@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2582.8479 {y} -1282.741 {z} 1065.391
138@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2578.7839 {y} -1282.572 {z} 1065.4
142@ = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 2575.03 {y} -1281.598 {z} 1061.02
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2549.429 {y} -1291.6121 {z} 1061.024
140@ = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreet {ammo} 60 {x} 2549.6321 {y} -1294.6121 {z} 1061.024
141@ = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreet {ammo} 60 {x} 2552.0901 {y} -1294.106 {z} 1061.024
load_scene 2552.3101 {y} -1286.25 {z} 1061.04
set_time_of_day 22 {minutes} 0
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In

:FINALEA_27475
if 
  get_fading_status 
goto_if_false @FINALEA_27499
wait 0
goto @FINALEA_27475

:FINALEA_27499
set_player_control $player1 {state} True
193@ = 0
194@ = 0
195@ = 1
print_help 'RM4_28'
158@ = 10
147@ = 5

:FINALEA_27552
if 
  147@ == 5
goto_if_false @FINALEA_31410
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_31177
if 
  188@ == 0
goto_if_false @FINALEA_27906
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0
75@ = create_char PedType.Mission1 {modelId} 173 {x} 2554.729 {y} -1281.952 {z} 1060.024
set_char_heading 75@ {heading} 180.771
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 75@ {skill} WeaponSkill.Pro
task_toggle_duck 75@ {state} -1
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2554.46
112@ = -1284.412
113@ = 1061.024
gosub @FINALEA_31568
163@ = 1
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2551.2361 {y} -1292.1801 {z} 1060.02
set_char_heading 74@ {heading} 6.0
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 74@ {skill} WeaponSkill.Pro
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2551.259
112@ = -1288.0811
113@ = 1061.02
gosub @FINALEA_31568
162@ = 1
TIMERA = 0
TIMERB = 0
188@ = 1

:FINALEA_27906
if 
  188@ == 1
goto_if_false @FINALEA_28433
if 
  TIMERB > 6000
goto_if_false @FINALEA_28433
if 
  159@ == 0
goto_if_false @FINALEA_28093
if 
  not is_point_on_screen 2551.2 {y} -1291.7271 {z} 1060.02 {radius} 5.0
goto_if_false @FINALEA_28093
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2551.2 {y} -1291.7271 {z} 1060.02
set_char_heading 71@ {heading} 0.0
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 71@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 71@ {target} $scplayer
set_char_accuracy 71@ {accuracy} 30
set_char_health 71@ {health} 200
set_char_max_health 71@ {maxHealth} 200
159@ = 1

:FINALEA_28093
if 
  160@ == 0
goto_if_false @FINALEA_28236
if 
  not is_point_on_screen 2579.04 {y} -1284.275 {z} 1064.4 {radius} 5.0
goto_if_false @FINALEA_28236
72@ = create_char PedType.Mission1 {modelId} 109 {x} 2579.04 {y} -1284.275 {z} 1064.4
set_char_heading 72@ {heading} 0.0
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 72@ {target} $scplayer
set_char_health 72@ {health} 150
set_char_max_health 72@ {maxHealth} 150
160@ = 1

:FINALEA_28236
if 
  161@ == 0
goto_if_false @FINALEA_28387
if 
  not is_point_on_screen 2576.9399 {y} -1300.3879 {z} 1060.016 {radius} 1.0
goto_if_false @FINALEA_28387
73@ = create_char PedType.Mission1 {modelId} 173 {x} 2576.9399 {y} -1300.3879 {z} 1060.016
set_char_heading 73@ {heading} 0.0
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 73@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 73@ {target} $scplayer
set_char_accuracy 73@ {accuracy} 30
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 1

:FINALEA_28387
if or
  159@ == 1
  160@ == 1
  161@ == 1
goto_if_false @FINALEA_28433
TIMERB = 0
188@ = 2

:FINALEA_28433
if 
  188@ == 2
goto_if_false @FINALEA_28702
if 
  159@ == 1
goto_if_false @FINALEA_28504
if 
  is_char_dead 71@
goto_if_false @FINALEA_28504
mark_char_as_no_longer_needed 71@
188@ = 1
159@ = 0

:FINALEA_28504
if 
  160@ == 1
goto_if_false @FINALEA_28557
if 
  is_char_dead 72@
goto_if_false @FINALEA_28557
mark_char_as_no_longer_needed 72@
188@ = 1
160@ = 0

:FINALEA_28557
if 
  161@ == 1
goto_if_false @FINALEA_28610
if 
  is_char_dead 73@
goto_if_false @FINALEA_28610
mark_char_as_no_longer_needed 73@
188@ = 1
161@ = 0

:FINALEA_28610
if 
  162@ == 1
goto_if_false @FINALEA_28656
if 
  is_char_dead 74@
goto_if_false @FINALEA_28656
mark_char_as_no_longer_needed 74@
162@ = 0

:FINALEA_28656
if 
  163@ == 1
goto_if_false @FINALEA_28702
if 
  is_char_dead 75@
goto_if_false @FINALEA_28702
mark_char_as_no_longer_needed 75@
163@ = 0

:FINALEA_28702
if 
  145@ == 0
goto_if_false @FINALEA_28756
144@ = get_script_task_status $big_smoke {taskId} 1506
if 
  is_int_lvar_equal_to_constant 144@ == 7
goto_if_false @FINALEA_28756
145@ = 1

:FINALEA_28756
if 
  189@ == 0
goto_if_false @FINALEA_28833
if 
  190@ == 0
goto_if_false @FINALEA_28833
if 
  TIMERA > 1000
goto_if_false @FINALEA_28833
TIMERA = 10000
190@ = 1
189@ = 1

:FINALEA_28833
if 
  189@ == 1
goto_if_false @FINALEA_29040
if 
  190@ == 1
goto_if_false @FINALEA_29040
if 
  TIMERA > 5999
goto_if_false @FINALEA_28989
if 
  not locate_char_any_means_3d $scplayer {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_28975
task_follow_path_nodes_to_coord $big_smoke {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_28982

:FINALEA_28975
189@ = 3

:FINALEA_28982
goto @FINALEA_29040

:FINALEA_28989
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29040
189@ = 2
TIMERA = 10000

:FINALEA_29040
if 
  189@ == 1
goto_if_false @FINALEA_29160
if 
  locate_char_any_means_3d $big_smoke {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29160
if 
  145@ == 1
goto_if_false @FINALEA_29139
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29139
TIMERA = 0
190@ = 1
189@ = 2

:FINALEA_29160
if 
  189@ == 2
goto_if_false @FINALEA_29367
if 
  190@ == 1
goto_if_false @FINALEA_29367
if 
  TIMERA > 4999
goto_if_false @FINALEA_29316
if 
  not locate_char_any_means_3d $scplayer {x} 2575.3501 {y} -1295.873 {z} 1061.85 {xRadius} 5.5 {yRadius} 5.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29302
task_follow_path_nodes_to_coord $big_smoke {x} 2575.3501 {y} -1295.873 {z} 1061.85 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_29309

:FINALEA_29302
189@ = 4

:FINALEA_29309
goto @FINALEA_29367

:FINALEA_29316
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29367
189@ = 4
TIMERA = 10000

:FINALEA_29367
if 
  189@ == 2
goto_if_false @FINALEA_29487
if 
  locate_char_any_means_3d $big_smoke {x} 2575.3501 {y} -1295.873 {z} 1061.85 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29487
if 
  145@ == 1
goto_if_false @FINALEA_29466
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29466
TIMERA = 0
190@ = 1
189@ = 3

:FINALEA_29487
if 
  189@ == 3
goto_if_false @FINALEA_29696
if 
  190@ == 1
goto_if_false @FINALEA_29696
if 
  TIMERA > 4999
goto_if_false @FINALEA_29645
if 
  not locate_char_any_means_3d $scplayer {x} 2558.1809 {y} -1303.748 {z} 1061.024 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29631
task_follow_path_nodes_to_coord $big_smoke {x} 2558.1809 {y} -1303.748 {z} 1061.024 {speed} MoveState.Run {time} 200000
190@ = 2
goto @FINALEA_29638

:FINALEA_29631
189@ = 1

:FINALEA_29638
goto @FINALEA_29696

:FINALEA_29645
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29696
189@ = 1
TIMERA = 10000

:FINALEA_29696
if 
  189@ == 3
goto_if_false @FINALEA_29816
if 
  locate_char_any_means_3d $big_smoke {x} 2558.1809 {y} -1303.748 {z} 1061.024 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29816
if 
  145@ == 1
goto_if_false @FINALEA_29795
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29795
TIMERA = 0
190@ = 1
189@ = 4

:FINALEA_29816
if 
  189@ == 4
goto_if_false @FINALEA_30023
if 
  190@ == 1
goto_if_false @FINALEA_30023
if 
  TIMERA > 5999
goto_if_false @FINALEA_29972
if 
  not locate_char_any_means_3d $scplayer {x} 2553.2329 {y} -1282.609 {z} 1061.024 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29958
task_follow_path_nodes_to_coord $big_smoke {x} 2553.2329 {y} -1282.609 {z} 1061.024 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_29965

:FINALEA_29958
189@ = 2

:FINALEA_29965
goto @FINALEA_30023

:FINALEA_29972
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_30023
189@ = 2
TIMERA = 10000

:FINALEA_30023
if 
  189@ == 4
goto_if_false @FINALEA_30143
if 
  locate_char_any_means_3d $big_smoke {x} 2553.2329 {y} -1282.609 {z} 1061.024 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_30143
if 
  145@ == 1
goto_if_false @FINALEA_30122
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_30122
TIMERA = 0
190@ = 1
189@ = 1

:FINALEA_30143
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_30264
$r1_seq = get_char_health $big_smoke
$r1_seq -= 8000
$r1_seq /= 20
if 
  0 >= $r1_seq
goto_if_false @FINALEA_30207
$r1_seq = 0

:FINALEA_30207
if 
  191@ == 0
goto_if_false @FINALEA_30264
if 
  80 > $r1_seq
goto_if_false @FINALEA_30264
196@ = 1
set_darkness_effect True {pitchBlack} 200
191@ = 1

:FINALEA_30264
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_30552
94@ = get_char_health $big_smoke
if 
  8000 >= 94@
goto_if_false @FINALEA_30552
$r1_seq = 0
task_die $big_smoke
set_darkness_effect False {pitchBlack} -1
set_infrared_vision False
clear_onscreen_counter $r1_seq
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_area $player_x {y} $player_y {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead 71@
goto_if_false @FINALEA_30396
task_die 71@

:FINALEA_30396
if 
  not is_char_dead 72@
goto_if_false @FINALEA_30417
task_die 72@

:FINALEA_30417
if 
  not is_char_dead 73@
goto_if_false @FINALEA_30438
task_die 73@

:FINALEA_30438
if 
  not is_char_dead 74@
goto_if_false @FINALEA_30459
task_die 74@

:FINALEA_30459
if 
  not is_char_dead 75@
goto_if_false @FINALEA_30480
task_die 75@

:FINALEA_30480
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
195@ = 2
do_fade 2500 {direction} Fade.Out

:FINALEA_30514
if 
  get_fading_status 
goto_if_false @FINALEA_30538
wait 0
goto @FINALEA_30514

:FINALEA_30538
goto @FINALEA_32554
TIMERA = 0

:FINALEA_30552
if 
  191@ == 1
goto_if_false @FINALEA_30737
if 
  192@ == 0
goto_if_false @FINALEA_30680
if 
  has_pickup_been_collected 142@
goto_if_false @FINALEA_30629
print_help 'RM4_36'
192@ = 3
goto @FINALEA_30680

:FINALEA_30629
132@ = add_blip_for_pickup 142@
set_blip_entry_exit 132@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
print_now 'RM4_31' {time} 7000 {flag} 1
192@ = 1

:FINALEA_30680
if 
  192@ == 1
goto_if_false @FINALEA_30737
if 
  has_pickup_been_collected 142@
goto_if_false @FINALEA_30737
remove_blip 132@
print_help 'RM4_36'
192@ = 2

:FINALEA_30737
if 
  195@ == 1
goto_if_false @FINALEA_31170
gosub @FINALEA_31459
if 
  193@ == 0
goto_if_false @FINALEA_30827
if 
  194@ == 0
goto_if_false @FINALEA_30827
set_lvar_int_to_constant 125@ = 14896
set_lvar_text_label 126@s = 'ROT4_UA'
gosub @FINALEA_31417

:FINALEA_30827
if 
  193@ == 1
goto_if_false @FINALEA_30892
if 
  194@ == 0
goto_if_false @FINALEA_30892
set_lvar_int_to_constant 125@ = 14897
set_lvar_text_label 126@s = 'ROT4_UB'
gosub @FINALEA_31417

:FINALEA_30892
if 
  193@ == 2
goto_if_false @FINALEA_30957
if 
  194@ == 0
goto_if_false @FINALEA_30957
set_lvar_int_to_constant 125@ = 14872
set_lvar_text_label 126@s = 'ROT4_UC'
gosub @FINALEA_31417

:FINALEA_30957
if 
  193@ == 3
goto_if_false @FINALEA_31022
if 
  194@ == 0
goto_if_false @FINALEA_31022
set_lvar_int_to_constant 125@ = 14873
set_lvar_text_label 126@s = 'ROT4_UD'
gosub @FINALEA_31417

:FINALEA_31022
if 
  193@ == 4
goto_if_false @FINALEA_31087
if 
  194@ == 0
goto_if_false @FINALEA_31087
set_lvar_int_to_constant 125@ = 14875
set_lvar_text_label 126@s = 'ROT4_ZB'
gosub @FINALEA_31417

:FINALEA_31087
if 
  196@ == 1
goto_if_false @FINALEA_31170
if 
  193@ == 5
goto_if_false @FINALEA_31170
if 
  194@ == 0
goto_if_false @FINALEA_31170
set_lvar_int_to_constant 125@ = 14874
set_lvar_text_label 126@s = 'RM4_31'
gosub @FINALEA_31417

:FINALEA_31170
goto @FINALEA_31410

:FINALEA_31177
$r1_seq = 0
set_darkness_effect False {pitchBlack} -1
set_infrared_vision False
clear_onscreen_counter $r1_seq
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_area $player_x {y} $player_y {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead 71@
goto_if_false @FINALEA_31261
task_die 71@

:FINALEA_31261
if 
  not is_char_dead 72@
goto_if_false @FINALEA_31282
task_die 72@

:FINALEA_31282
if 
  not is_char_dead 73@
goto_if_false @FINALEA_31303
task_die 73@

:FINALEA_31303
if 
  not is_char_dead 74@
goto_if_false @FINALEA_31324
task_die 74@

:FINALEA_31324
if 
  not is_char_dead 75@
goto_if_false @FINALEA_31345
task_die 75@

:FINALEA_31345
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
195@ = 2
do_fade 2500 {direction} Fade.Out

:FINALEA_31379
if 
  get_fading_status 
goto_if_false @FINALEA_31403
wait 0
goto @FINALEA_31379

:FINALEA_31403
goto @FINALEA_32554

:FINALEA_31410
goto @FINALEA_1473

:FINALEA_31417
if 
  194@ == 0
goto_if_false @FINALEA_31457
load_mission_audio MissionAudioSlot.Slot1 {audioId} 125@
set_lvar_text_label 123@s = 126@s
194@ = 1

:FINALEA_31457
return 

:FINALEA_31459
if 
  194@ == 1
goto_if_false @FINALEA_31513
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEA_31513
print_now 123@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
194@ = 2

:FINALEA_31513
if 
  194@ == 2
goto_if_false @FINALEA_31566
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @FINALEA_31566
193@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
194@ = 0

:FINALEA_31566
return 

:FINALEA_31568
103@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 103@
perform_sequence_task 109@ {sequence} 103@
clear_sequence_task 103@
return 

:FINALEA_31617
104@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 104@
perform_sequence_task 109@ {sequence} 104@
clear_sequence_task 104@
return 

:FINALEA_31661
105@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 105@
perform_sequence_task 109@ {sequence} 105@
clear_sequence_task 105@
return 

:FINALEA_31699
116@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 118@ {y} 119@ {z} 120@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 116@
perform_sequence_task 109@ {sequence} 116@
clear_sequence_task 116@
return 
106@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 109@ {sequence} 106@
clear_sequence_task 106@
return 

:FINALEA_31854
107@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 107@
perform_sequence_task 109@ {sequence} 107@
clear_sequence_task 107@
return 

:FINALEA_31937
108@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 117@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 111@ {y} 112@ {z} 113@ {heading} 121@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 108@ {state} True
close_sequence_task 108@
perform_sequence_task 109@ {sequence} 108@
clear_sequence_task 108@
return 

:FINALEA_32178
110@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 117@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 111@ {y} 112@ {z} 113@ {heading} 121@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 110@ {state} True
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@
return 

:FINALEA_32419
122@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Sprint {time} -1
task_stay_in_same_place -1 {state} True
task_duck -1 {time} -1
close_sequence_task 122@
perform_sequence_task 109@ {sequence} 122@
clear_sequence_task 122@
return 

:FINALEA_32473
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_ipl_discreetly "CARTER"
delete_object $2720
$2720 = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
dont_remove_object $2720
set_object_health $2720 {health} 100
set_object_collision_damage_effect $2720 {state} False
freeze_object_position $2720 {state} True
return 

:FINALEA_32554
201@ = 1
$flag_riot_mission_counter += 1
clear_wanted_level $player1
request_ipl "CARTER"
return 

:FINALEA_32585
clear_all_script_roadblocks 
disable_all_entry_exits False
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_32614
set_vehicle_is_considered_by_player $sweet_car {state} True

:FINALEA_32614
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 132@
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
remove_pickup 136@
remove_pickup 137@
remove_pickup 138@
remove_pickup 139@
remove_pickup 140@
remove_pickup 141@
remove_pickup 142@
remove_pickup 143@
clear_onscreen_counter $r1_seq
kill_fx_system 102@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
mark_model_as_no_longer_needed 601
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 492
unload_special_character 1
mark_model_as_no_longer_needed 481
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 63
remove_animation "CRACK"
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 285
remove_animation "SWAT"
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
remove_car_recording 287
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
remove_animation "STRIP"
mark_model_as_no_longer_needed 256
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 369
unload_special_character 2
switch_emergency_services True
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_ped_roads_on 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_roads_on 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_ped_roads_on 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_roads_on 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
switch_ped_roads_on 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
remove_all_script_fires 
$timer_mobile_start = get_game_timer 
if 
  is_player_playing $player1
goto_if_false @FINALEA_33146
set_player_group_recruitment $player1 {state} True

:FINALEA_33146
if 
  not is_car_dead 57@
goto_if_false @FINALEA_33184
set_car_only_damaged_by_player 57@ {state} False
set_car_proofs 57@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEA_33184
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_33215
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEA_33215
$onmission = 0
mission_has_finished 
if 
  201@ == 1
goto_if_false @FINALEA_33248
do_fade 0 {direction} Fade.Out

:FINALEA_33248
return 

//-------------Mission 111---------------
// Originally: End Of The Line (2)

:FINALEB
gosub @FINALEB_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEB_27
gosub @FINALEB_18413

:FINALEB_27
gosub @FINALEB_18554
terminate_this_script 

:FINALEB_36
$onmission = 1
script_name 'FINALEB'
wait 0
load_mission_text 'RIOT4'
97@ = load_char_decision_maker DecisionMakerType.Empty
98@ = load_char_decision_maker DecisionMakerType.Tough
set_max_wanted_level 0
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
set_area_visible 2
load_cutscene 'RIOT_4D'

:FINALEB_121
if 
  not has_cutscene_loaded 
goto_if_false @FINALEB_145
wait 0
goto @FINALEB_121

:FINALEB_145
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEB_154
if 
  not has_cutscene_finished 
goto_if_false @FINALEB_178
wait 0
goto @FINALEB_154

:FINALEB_178
clear_cutscene 
do_fade 0 {direction} Fade.Out

:FINALEB_186
if 
  get_fading_status 
goto_if_false @FINALEB_210
wait 0
goto @FINALEB_186

:FINALEB_210
request_model 102
request_model 104
request_model 109
request_model 368
request_model 349
request_model 352
request_model 356
request_animation "SWAT"
request_model 366
load_special_character 1 {modelName} 'SMOKEV'
load_special_character 2 {modelName} 'TENPEN'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14904
load_all_models_now 

:FINALEB_290
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEB_324
wait 0
goto @FINALEB_290

:FINALEB_324
if or
  not has_model_loaded 102
  not has_model_loaded 104
  not has_model_loaded 109
  not has_model_loaded 368
goto_if_false @FINALEB_363
wait 0
goto @FINALEB_324

:FINALEB_363
if or
  not has_model_loaded 349
  not has_model_loaded 352
  not has_model_loaded 356
  not has_animation_loaded "SWAT"
  not has_model_loaded 366
goto_if_false @FINALEB_413
wait 0
goto @FINALEB_363

:FINALEB_413
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
$lookcamz_fb = 420000
156@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_max_fire_generations 0
set_wanted_multiplier 0.0
switch_emergency_services False

:FINALEB_718
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEB_744
goto @FINALEB_18533

:FINALEB_744
if 
  9 > 132@
goto_if_false @FINALEB_997
if 
  154@ == 0
goto_if_false @FINALEB_948
if 
  0 >= $lookcamz_fb
goto_if_false @FINALEB_948
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
$player_x += 0.0
$player_y -= 0.5
$player_z += 0.7
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Rocket
$player_x -= 1.0
$player_y += 2.0
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Car
$player_x += 1.5
$player_y += 2.0
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
TIMERB = 0
154@ = 1

:FINALEB_948
if 
  154@ == 1
goto_if_false @FINALEB_997
if 
  TIMERB > 3000
goto_if_false @FINALEB_997
task_die $scplayer
154@ = 2

:FINALEB_997
if 
  132@ == 0
goto_if_false @FINALEB_1387
if 
  152@ == 0
goto_if_false @FINALEB_1387
$big_smoke = create_char PedType.Special {modelId} 290 {x} 2553.2 {y} -1284.8571 {z} 1060.024
set_char_heading $big_smoke {heading} 90.0
set_char_area_visible $big_smoke {areaId} 2
task_die $big_smoke
124@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.3101 {y} -1286.274 {z} 1061.024
131@ = create_pickup_with_ammo 355 {pickupType} PickupType.Once {ammo} 60 {x} 2552.3601 {y} -1283.15 {z} 1061.02
set_char_coordinates $scplayer {x} 2553.7339 {y} -1285.256 {z} 1060.024
set_char_heading $scplayer {heading} 79.954
set_char_area_visible $scplayer {areaId} 2
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2550.604 {y} -1294.5861 {z} 1044.802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2551.6011 {y} -1294.649 {z} 1044.762 {switchStyle} SwitchType.JumpCut
49@ = create_char PedType.Special {modelId} 291 {x} 2556.988 {y} -1297.499 {z} 1043.13
set_char_heading 49@ {heading} 27.2743
set_char_decision_maker 49@ {handleOrTemplate} 97@
give_weapon_to_char 49@ {weaponType} WeaponType.Shotgun {ammo} 99999
load_scene 2552.29 {y} -1294.24 {z} 1044.84
clear_area 2552.3799 {y} -1294.0601 {z} 1044.84 {radius} 100.0 {clearParticles} False
load_scene 2552.29 {y} -1294.24 {z} 1044.84
set_time_of_day 0 {minutes} 0
do_fade 500 {direction} Fade.In

:FINALEB_1356
if 
  get_fading_status 
goto_if_false @FINALEB_1380
wait 0
goto @FINALEB_1356

:FINALEB_1380
152@ = 1

:FINALEB_1387
if 
  152@ == 1
goto_if_false @FINALEB_2207
if 
  not is_char_dead 49@
goto_if_false @FINALEB_2207
task_shoot_at_coord 49@ {x} 2552.29 {y} -1294.24 {z} 1044.84 {time} 1000
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEB_1479
play_mission_audio MissionAudioSlot.Slot1
print_now 'ROT4_ZC' {time} 3500 {flag} 1

:FINALEB_1479
wait 500
61@ = start_script_fire 2552.3799 {y} -1294.0601 {z} 1044.84 {propagation} 0 {size} 1
skip_cutscene_start_internal @FINALEB_2225
wait 200
62@ = start_script_fire 2553.3301 {y} -1293.89 {z} 1044.87 {propagation} 0 {size} 2
wait 300
if 
  not is_char_dead 49@
goto_if_false @FINALEB_1589
task_go_straight_to_coord 49@ {x} 25566.8398 {y} -1297.272 {z} 1043.17 {speed} MoveState.Walk {time} -1

:FINALEB_1589
wait 2500
set_fixed_camera_position 2565.8159 {y} -1296.7321 {z} 1044.403 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2564.824 {y} -1296.613 {z} 1044.444 {switchStyle} SwitchType.JumpCut
print_now 'RM4_38' {time} 10000 {flag} 1
wait 3250
add_explosion_variable_shake 2553.1899 {y} -1293.58 {z} 1044.29 {type} 4 {shake} 0.4
wait 200
add_explosion_variable_shake 2558.53 {y} -1293.88 {z} 1044.58 {type} 0 {shake} 0.3
wait 500
add_explosion_variable_shake 2552.78 {y} -1293.24 {z} 1045.3199 {type} 0 {shake} 0.4
set_darkness_effect False {pitchBlack} 175
wait 100
add_explosion_variable_shake 2557.6001 {y} -1294.5699 {z} 1043.49 {type} 2 {shake} 0.5
wait 500
add_explosion_variable_shake 2555.8601 {y} -1293.27 {z} 1043.91 {type} 2 {shake} 0.6
wait 50
add_explosion_variable_shake 2558.73 {y} -1293.4 {z} 1044.36 {type} 4 {shake} 0.6
wait 50
set_time_of_day 0 {minutes} 0
set_heathaze_effect True
set_darkness_effect True {pitchBlack} 100
77@ = start_script_fire 2567.77 {y} -1294.03 {z} 1045.5 {propagation} 0 {size} 3
68@ = start_script_fire 2541.687 {y} -1289.6801 {z} 1043.0 {propagation} 1 {size} 1
83@ = start_script_fire 2559.45 {y} -1303.65 {z} 1044.0 {propagation} 0 {size} 2
85@ = start_script_fire 2564.72 {y} -1296.0601 {z} 1042.91 {propagation} 0 {size} 2
75@ = start_script_fire 2570.115 {y} -1301.434 {z} 1043.8 {propagation} 0 {size} 2
wait 250
set_darkness_effect False {pitchBlack} 120
81@ = start_script_fire 2559.3701 {y} -1284.76 {z} 1044.1 {propagation} 0 {size} 2
wait 500
set_darkness_effect True {pitchBlack} 140
70@ = start_script_fire 2538.751 {y} -1291.7 {z} 1044.17 {propagation} 0 {size} 2
73@ = start_script_fire 2541.5601 {y} -1292.35 {z} 1044.1 {propagation} 0 {size} 3
88@ = start_script_fire 2551.47 {y} -1297.2 {z} 1044.17 {propagation} 0 {size} 2
89@ = start_script_fire 2551.425 {y} -1298.4 {z} 1044.1 {propagation} 0 {size} 2
wait 400
set_darkness_effect False {pitchBlack} 150
wait 500
94@ = start_script_fire 2551.3301 {y} -1295.311 {z} 1043.8 {propagation} 0 {size} 3
91@ = start_script_fire 2541.3601 {y} -1300.36 {z} 1044.1 {propagation} 0 {size} 2
set_darkness_effect True {pitchBlack} 180
wait 3000
152@ = 2

:FINALEB_2207
if 
  152@ == 2
goto_if_false @FINALEB_2585

:FINALEB_2225
skip_cutscene_end 
clear_this_print 'ROT4_ZC'
clear_mission_audio MissionAudioSlot.Slot1
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char 49@
set_heathaze_effect False
set_darkness_effect True {pitchBlack} 200
set_time_of_day 0 {minutes} 0
set_player_mood $player1 {mood} 7 {time} 360000
remove_all_script_fires 
125@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2524.0 {y} -1283.0 {z} 1048.337
120@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2527.783 {y} -1288.816 {z} 1031.4301
121@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2580.9529 {y} -1285.1169 {z} 1044.173
122@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2520.3999 {y} -1281.287 {z} 1054.681
126@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2552.2981 {y} -1306.0601 {z} 1054.681
127@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2570.8391 {y} -1285.818 {z} 1037.821
123@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.4751 {y} -1280.687 {z} 1054.686
give_weapon_to_char $scplayer {weaponType} WeaponType.NightVision {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.NightVision
mark_model_as_no_longer_needed 368
print_now 'RM4_33' {time} 10000 {flag} 1
display_onscreen_timer_with_string $lookcamz_fb {direction} TimerDirection.Down {text} 'RM4_34'
set_timer_beep_countdown_time $lookcamz_fb {timeInSec} 32
118@ = add_blip_for_coord 2577.8201 {y} -1284.6 {z} 1053.99
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
TIMERA = 0
132@ = 1
152@ = 3

:FINALEB_2585
if 
  3 > 132@
goto_if_false @FINALEB_2660
if 
  155@ == 0
goto_if_false @FINALEB_2660
if 
  TIMERA > 7000
goto_if_false @FINALEB_2660
clear_prints 
print_help 'RM4_32'
155@ = 1

:FINALEB_2660
if 
  4 > 132@
goto_if_false @FINALEB_2735
if 
  155@ == 2
goto_if_false @FINALEB_2735
if 
  TIMERA > 8000
goto_if_false @FINALEB_2735
clear_prints 
print_help 'RM4_40'
155@ = 3

:FINALEB_2735
if 
  132@ == 1
goto_if_false @FINALEB_3719
if 
  locate_char_any_means_3d $scplayer {x} 2578.21 {y} -1284.87 {z} 1053.95 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_3719
remove_blip 118@
118@ = add_blip_for_coord 2521.8899 {y} -1301.98 {z} 1047.54
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
clear_prints 
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2574.5 {y} -1296.0291 {z} 1054.687
set_char_heading 34@ {heading} 4.7018
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
set_char_area_visible 34@ {areaId} 2
set_char_accuracy 34@ {accuracy} 20
set_char_health 34@ {health} 150
set_char_max_health 34@ {maxHealth} 150
137@ = 1
task_kill_char_on_foot 34@ {target} $scplayer
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2553.7639 {y} -1294.536 {z} 1053.647
set_char_heading 35@ {heading} 266.9614
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 35@ {areaId} 2
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_3126
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3126
set_lvar_int_to_lvar_int 104@ = 35@
106@ = 2553.7639
107@ = -1294.536
108@ = 1053.647
112@ = 2700
116@ = 270.0
gosub @FINALEB_17931
138@ = 1

:FINALEB_3126
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2575.2661 {y} -1296.4 {z} 1054.687
set_char_heading 36@ {heading} 89.298
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 36@ {skill} WeaponSkill.Pro
set_char_health 36@ {health} 150
set_char_max_health 36@ {maxHealth} 150
set_char_area_visible 36@ {areaId} 2
if 
  139@ == 0
goto_if_false @FINALEB_3296
if 
  not is_char_dead 36@
goto_if_false @FINALEB_3296
set_lvar_int_to_lvar_int 104@ = 36@
106@ = 2556.3101
107@ = -1297.219
108@ = 1053.641
gosub @FINALEB_17639
139@ = 1

:FINALEB_3296
37@ = create_char PedType.Mission1 {modelId} 104 {x} 2547.426 {y} -1306.462 {z} 1054.681
set_char_heading 37@ {heading} 359.0
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 37@ {skill} WeaponSkill.Pro
set_char_area_visible 37@ {areaId} 2
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_3427
if 
  not is_char_dead 37@
goto_if_false @FINALEB_3427
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17694
140@ = 1

:FINALEB_3427
38@ = create_char PedType.Mission1 {modelId} 109 {x} 2534.0449 {y} -1304.8571 {z} 1053.641
set_char_heading 38@ {heading} 273.9959
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 38@ {skill} WeaponSkill.Pro
set_char_area_visible 38@ {areaId} 2
set_char_health 38@ {health} 150
set_char_max_health 38@ {maxHealth} 150
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_3574
if 
  not is_char_dead 38@
goto_if_false @FINALEB_3574
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17694
141@ = 1

:FINALEB_3574
39@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.1919 {y} -1287.667 {z} 1053.647
set_char_heading 39@ {heading} 165.9748
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 39@ {skill} WeaponSkill.Pro
set_char_area_visible 39@ {areaId} 2
set_char_allowed_to_duck 39@ {state} False
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_3712
if 
  not is_char_dead 39@
goto_if_false @FINALEB_3712
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17738
142@ = 1

:FINALEB_3712
132@ = 2

:FINALEB_3719
if 
  132@ == 2
goto_if_false @FINALEB_4584
if 
  137@ == 1
goto_if_false @FINALEB_3783
if 
  is_char_dead 34@
goto_if_false @FINALEB_3783
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_3783
if 
  138@ == 1
goto_if_false @FINALEB_3911
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3911
if or
  has_char_been_damaged_by_char 35@ {handle} $scplayer
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_3911
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3899
task_kill_char_on_foot 35@ {target} $scplayer
138@ = 2
goto @FINALEB_3911

:FINALEB_3899
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_3911
if or
  138@ == 1
  138@ == 2
goto_if_false @FINALEB_3964
if 
  is_char_dead 35@
goto_if_false @FINALEB_3964
mark_char_as_no_longer_needed 35@
138@ = 3

:FINALEB_3964
if 
  139@ == 1
goto_if_false @FINALEB_4010
if 
  is_char_dead 36@
goto_if_false @FINALEB_4010
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_4010
if 
  140@ == 1
goto_if_false @FINALEB_4056
if 
  is_char_dead 37@
goto_if_false @FINALEB_4056
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_4056
if 
  141@ == 1
goto_if_false @FINALEB_4102
if 
  is_char_dead 38@
goto_if_false @FINALEB_4102
mark_char_as_no_longer_needed 38@
141@ = 2

:FINALEB_4102
if 
  142@ == 1
goto_if_false @FINALEB_4148
if 
  is_char_dead 39@
goto_if_false @FINALEB_4148
mark_char_as_no_longer_needed 39@
142@ = 2

:FINALEB_4148
if 
  143@ == 0
goto_if_false @FINALEB_4297
if 
  locate_char_any_means_3d $scplayer {x} 2543.46 {y} -1304.9 {z} 1054.6801 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_4297
40@ = create_char PedType.Mission1 {modelId} 102 {x} 2532.3999 {y} -1286.7 {z} 1053.6801
set_char_heading 40@ {heading} 230.835
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_area_visible 40@ {areaId} 2
task_kill_char_on_foot 40@ {target} $scplayer
143@ = 1

:FINALEB_4297
if 
  143@ == 1
goto_if_false @FINALEB_4343
if 
  is_char_dead 40@
goto_if_false @FINALEB_4343
mark_char_as_no_longer_needed 40@
143@ = 2

:FINALEB_4343
if 
  144@ == 0
goto_if_false @FINALEB_4538
if 
  locate_char_any_means_3d $scplayer {x} 2519.9299 {y} -1285.547 {z} 1054.673 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_4538
41@ = create_char PedType.Mission1 {modelId} 102 {x} 2519.9299 {y} -1285.54 {z} 1054.673
set_char_heading 41@ {heading} 200.537
set_char_decision_maker 41@ {handleOrTemplate} 97@
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 41@ {areaId} 2
set_char_health 41@ {health} 150
set_char_max_health 41@ {maxHealth} 150
set_lvar_int_to_lvar_int 104@ = 41@
106@ = 2520.05
107@ = -1301.5179
108@ = 1048.33
gosub @FINALEB_17639
144@ = 1

:FINALEB_4538
if 
  144@ == 1
goto_if_false @FINALEB_4584
if 
  is_char_dead 41@
goto_if_false @FINALEB_4584
mark_char_as_no_longer_needed 41@
144@ = 2

:FINALEB_4584
if 
  132@ == 2
goto_if_false @FINALEB_7335
if 
  locate_char_any_means_3d $scplayer {x} 2521.8999 {y} -1301.86 {z} 1047.5 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_7335
print_now 'RM4_35' {time} 7000 {flag} 1
TIMERA = 0
155@ = 2
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
remove_blip 118@
118@ = add_blip_for_coord 2572.0801 {y} -1301.88 {z} 1043.3199
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_heathaze_effect True
delete_char $big_smoke
unload_special_character 2
51@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.2 {ignoreBoundingChecks} True
52@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
53@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
54@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.7 {ignoreBoundingChecks} True
55@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 2.0 {ignoreBoundingChecks} True
56@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.7 {ignoreBoundingChecks} True
57@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.7 {ignoreBoundingChecks} True
58@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.7 {ignoreBoundingChecks} True
59@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.7 {ignoreBoundingChecks} True
60@ = 0

:FINALEB_5081
if 
  9 > 60@
goto_if_false @FINALEB_5122
play_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_5081

:FINALEB_5122
61@ = start_script_fire 2529.6201 {y} -1306.62 {z} 1048.0 {propagation} 0 {size} 2
62@ = start_script_fire 2529.4971 {y} -1304.791 {z} 1048.0 {propagation} 0 {size} 2
63@ = start_script_fire 2530.1201 {y} -1296.96 {z} 1047.8 {propagation} 0 {size} 3
64@ = start_script_fire 2529.49 {y} -1287.9301 {z} 1048.0 {propagation} 0 {size} 3
64@ = start_script_fire 2543.98 {y} -1305.709 {z} 1047.4449 {propagation} 0 {size} 3
65@ = start_script_fire 2544.54 {y} -1304.47 {z} 1047.55 {propagation} 0 {size} 3
90@ = start_script_fire 2543.9399 {y} -1306.83 {z} 1047.62 {propagation} 0 {size} 3
66@ = start_script_fire 2545.1389 {y} -1281.4969 {z} 1047.5 {propagation} 0 {size} 2
77@ = start_script_fire 2567.77 {y} -1294.03 {z} 1047.5 {propagation} 0 {size} 3
78@ = start_script_fire 2570.2 {y} -1294.4 {z} 1047.5 {propagation} 0 {size} 3
75@ = start_script_fire 2568.72 {y} -1294.3199 {z} 1047.5 {propagation} 0 {size} 2
67@ = start_script_fire 2540.2471 {y} -1288.566 {z} 1044.0 {propagation} 0 {size} 3
68@ = start_script_fire 2541.687 {y} -1289.6801 {z} 1044.0 {propagation} 1 {size} 1
69@ = start_script_fire 2540.2141 {y} -1290.218 {z} 1044.0 {propagation} 0 {size} 2
70@ = start_script_fire 2538.751 {y} -1291.7 {z} 1044.17 {propagation} 0 {size} 2
71@ = start_script_fire 2537.3391 {y} -1286.5601 {z} 1044.1 {propagation} 1 {size} 3
73@ = start_script_fire 2541.5601 {y} -1292.35 {z} 1044.1 {propagation} 0 {size} 3
80@ = start_script_fire 2570.77 {y} -1303.14 {z} 1043.35 {propagation} 0 {size} 2
81@ = start_script_fire 2559.3701 {y} -1284.76 {z} 1044.1 {propagation} 0 {size} 2
82@ = start_script_fire 2551.3999 {y} -1301.3 {z} 1044.0 {propagation} 0 {size} 2
83@ = start_script_fire 2570.52 {y} -1301.42 {z} 1043.47 {propagation} 0 {size} 2
84@ = start_script_fire 2550.9399 {y} -1301.8101 {z} 1044.0 {propagation} 0 {size} 3
85@ = start_script_fire 2537.6899 {y} -1301.34 {z} 1044.0 {propagation} 0 {size} 2
86@ = start_script_fire 2536.4199 {y} -1302.01 {z} 1044.0 {propagation} 0 {size} 2
87@ = start_script_fire 2536.8201 {y} -1290.5 {z} 1044.0 {propagation} 0 {size} 2
88@ = start_script_fire 2551.47 {y} -1297.2 {z} 1044.17 {propagation} 0 {size} 2
89@ = start_script_fire 2570.54 {y} -1301.22 {z} 1043.36 {propagation} 0 {size} 3
94@ = start_script_fire 2551.3301 {y} -1295.311 {z} 1043.8 {propagation} 0 {size} 3
91@ = start_script_fire 2541.3601 {y} -1300.36 {z} 1044.1 {propagation} 0 {size} 2
92@ = start_script_fire 2545.3279 {y} -1300.739 {z} 1044.1 {propagation} 0 {size} 2
93@ = start_script_fire 2548.77 {y} -1300.375 {z} 1044.04 {propagation} 0 {size} 3
76@ = start_script_fire 2544.1599 {y} -1306.5601 {z} 1043.8 {propagation} 0 {size} 2
72@ = start_script_fire 2570.4299 {y} -1302.4301 {z} 1043.4 {propagation} 0 {size} 1
74@ = start_script_fire 2549.05 {y} -1287.54 {z} 1043.8 {propagation} 0 {size} 3
95@ = start_script_fire 2570.4819 {y} -1302.438 {z} 1043.8 {propagation} 0 {size} 2
96@ = start_script_fire 2565.7051 {y} -1298.03 {z} 1043.7 {propagation} 0 {size} 3
79@ = start_script_fire 2565.5281 {y} -1289.17 {z} 1043.7 {propagation} 0 {size} 3
129@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2529.8291 {y} -1303.027 {z} 1048.337
119@ = add_blip_for_pickup 129@
set_blip_entry_exit 119@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
130@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2567.948 {y} -1292.879 {z} 1044.173
42@ = create_char PedType.Mission1 {modelId} 104 {x} 2528.5391 {y} -1289.9351 {z} 1048.3361
set_char_heading 42@ {heading} 359.0
set_char_health 42@ {health} 10
set_char_decision_maker 42@ {handleOrTemplate} 98@
give_weapon_to_char 42@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 42@ {rate} 20
set_char_area_visible 42@ {areaId} 2
set_char_health 42@ {health} 5
set_char_max_health 42@ {maxHealth} 5
set_char_accuracy 42@ {accuracy} 20
145@ = 1
task_shoot_at_coord 42@ {x} 2529.49 {y} -1287.9301 {z} 1048.0 {time} 650000
43@ = create_char PedType.Mission1 {modelId} 109 {x} 2538.2739 {y} -1293.322 {z} 1043.1331
set_char_heading 43@ {heading} 351.1779
set_char_health 43@ {health} 5
set_char_decision_maker 43@ {handleOrTemplate} 98@
give_weapon_to_char 43@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 43@ {rate} 20
set_char_area_visible 43@ {areaId} 2
set_char_accuracy 43@ {accuracy} 20
146@ = 1
task_shoot_at_coord 43@ {x} 2538.5691 {y} -1291.48 {z} 1043.604 {time} 650000
44@ = create_char PedType.Mission1 {modelId} 102 {x} 2539.5339 {y} -1297.778 {z} 1043.13
set_char_heading 44@ {heading} 43.6277
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 44@ {areaId} 2
set_char_accuracy 44@ {accuracy} 20
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_6471
if 
  not is_char_dead 44@
goto_if_false @FINALEB_6471
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17738
147@ = 1

:FINALEB_6471
45@ = create_char PedType.Mission1 {modelId} 102 {x} 2548.2451 {y} -1294.142 {z} 1043.13
set_char_heading 45@ {heading} 105.3104
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 45@ {areaId} 2
set_char_health 45@ {health} 150
set_char_max_health 45@ {maxHealth} 150
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_6611
if 
  not is_char_dead 45@
goto_if_false @FINALEB_6611
set_lvar_int_to_lvar_int 104@ = 45@
gosub @FINALEB_17694
148@ = 1

:FINALEB_6611
46@ = create_char PedType.Mission1 {modelId} 104 {x} 2558.4519 {y} -1289.522 {z} 1043.1331
set_char_heading 46@ {heading} 91.8235
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 46@ {areaId} 2
set_char_accuracy 46@ {accuracy} 20
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_6742
if 
  not is_char_dead 46@
goto_if_false @FINALEB_6742
set_lvar_int_to_lvar_int 104@ = 46@
gosub @FINALEB_17738
149@ = 1

:FINALEB_6742
47@ = create_char PedType.Mission1 {modelId} 102 {x} 2565.7219 {y} -1293.1331 {z} 1044.0699
set_char_heading 47@ {heading} 85.0916
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 47@ {areaId} 2
set_char_health 47@ {health} 150
set_char_max_health 47@ {maxHealth} 150
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_6882
if 
  not is_char_dead 47@
goto_if_false @FINALEB_6882
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17694
150@ = 1

:FINALEB_6882
48@ = create_char PedType.Mission1 {modelId} 104 {x} 2557.144 {y} -1297.8051 {z} 1043.13
set_char_heading 48@ {heading} 65.8333
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 48@ {areaId} 2
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_7006
if 
  not is_char_dead 48@
goto_if_false @FINALEB_7006
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17738
151@ = 1

:FINALEB_7006
if 
  145@ == 1
goto_if_false @FINALEB_7052
if 
  is_char_dead 42@
goto_if_false @FINALEB_7052
mark_char_as_no_longer_needed 42@
145@ = 2

:FINALEB_7052
if 
  146@ == 1
goto_if_false @FINALEB_7098
if 
  is_char_dead 43@
goto_if_false @FINALEB_7098
mark_char_as_no_longer_needed 43@
146@ = 2

:FINALEB_7098
if 
  147@ == 1
goto_if_false @FINALEB_7144
if 
  is_char_dead 44@
goto_if_false @FINALEB_7144
mark_char_as_no_longer_needed 44@
147@ = 2

:FINALEB_7144
if 
  148@ == 1
goto_if_false @FINALEB_7190
if 
  is_char_dead 45@
goto_if_false @FINALEB_7190
mark_char_as_no_longer_needed 45@
148@ = 2

:FINALEB_7190
if 
  149@ == 1
goto_if_false @FINALEB_7236
if 
  is_char_dead 46@
goto_if_false @FINALEB_7236
mark_char_as_no_longer_needed 46@
149@ = 2

:FINALEB_7236
if 
  150@ == 1
goto_if_false @FINALEB_7282
if 
  is_char_dead 47@
goto_if_false @FINALEB_7282
mark_char_as_no_longer_needed 47@
150@ = 2

:FINALEB_7282
if 
  151@ == 1
goto_if_false @FINALEB_7328
if 
  is_char_dead 48@
goto_if_false @FINALEB_7328
mark_char_as_no_longer_needed 48@
151@ = 2

:FINALEB_7328
132@ = 3

:FINALEB_7335
if 
  132@ == 3
goto_if_false @FINALEB_8942
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2571.3899 {leftBottomY} -1308.59 {leftBottomZ} 1041.4 {rightTopX} 2584.0801 {rightTopY} -1272.85 {rightTopZ} 1047.02 {drawSphere} False
goto_if_false @FINALEB_8942
mark_model_as_no_longer_needed 349
remove_blip 119@
remove_blip 118@
118@ = add_blip_for_coord 2565.5601 {y} -1301.7 {z} 1030.97
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
remove_blip 119@
remove_all_script_fires 
delete_char 40@
delete_char 41@
mark_model_as_no_longer_needed 366
61@ = start_script_fire 2575.7739 {y} -1283.0551 {z} 1042.1331 {propagation} 0 {size} 3
62@ = start_script_fire 2581.7439 {y} -1297.517 {z} 1039.02 {propagation} 0 {size} 1
63@ = start_script_fire 2570.4141 {y} -1300.047 {z} 1036.781 {propagation} 0 {size} 3
64@ = start_script_fire 2568.78 {y} -1299.9871 {z} 1036.781 {propagation} 0 {size} 3
65@ = start_script_fire 2577.2471 {y} -1294.814 {z} 1034.048 {propagation} 0 {size} 1
66@ = start_script_fire 2566.833 {y} -1282.489 {z} 1030.4301 {propagation} 0 {size} 3
67@ = start_script_fire 2567.9839 {y} -1284.974 {z} 1030.4301 {propagation} 0 {size} 2
68@ = start_script_fire 2572.4021 {y} -1304.5811 {z} 1030.4301 {propagation} 0 {size} 2
69@ = start_script_fire 2570.79 {y} -1305.299 {z} 1030.4301 {propagation} 0 {size} 1
70@ = start_script_fire 2556.55 {y} -1301.88 {z} 1029.8199 {propagation} 0 {size} 3
71@ = start_script_fire 2556.8301 {y} -1303.91 {z} 1029.42 {propagation} 0 {size} 2
72@ = start_script_fire 2556.01 {y} -1305.3101 {z} 1029.8199 {propagation} 0 {size} 3
73@ = start_script_fire 2553.1599 {y} -1297.9399 {z} 1029.42 {propagation} 0 {size} 2
74@ = start_script_fire 2552.4299 {y} -1297.3101 {z} 1029.8199 {propagation} 0 {size} 2
75@ = start_script_fire 2552.1499 {y} -1294.97 {z} 1029.42 {propagation} 0 {size} 3
76@ = start_script_fire 2547.77 {y} -1285.41 {z} 1029.8199 {propagation} 0 {size} 3
77@ = start_script_fire 2547.3999 {y} -1284.33 {z} 1029.42 {propagation} 0 {size} 1
78@ = start_script_fire 2547.77 {y} -1282.3199 {z} 1029.8199 {propagation} 0 {size} 3
79@ = start_script_fire 2545.9299 {y} -1292.47 {z} 1029.42 {propagation} 0 {size} 3
80@ = start_script_fire 2545.48 {y} -1290.8101 {z} 1029.8199 {propagation} 0 {size} 1
81@ = start_script_fire 2544.1101 {y} -1292.71 {z} 1029.42 {propagation} 0 {size} 2
82@ = start_script_fire 2539.75 {y} -1299.17 {z} 1029.8199 {propagation} 0 {size} 1
83@ = start_script_fire 2539.25 {y} -1297.76 {z} 1029.42 {propagation} 0 {size} 2
84@ = start_script_fire 2540.5801 {y} -1280.24 {z} 1036.78 {propagation} 0 {size} 2
85@ = start_script_fire 2540.3999 {y} -1281.22 {z} 1036.78 {propagation} 0 {size} 1
86@ = start_script_fire 2529.8501 {y} -1294.27 {z} 1036.8 {propagation} 0 {size} 2
87@ = start_script_fire 2545.8501 {y} -1307.04 {z} 1036.78 {propagation} 0 {size} 2
88@ = start_script_fire 2547.47 {y} -1306.59 {z} 1036.78 {propagation} 0 {size} 1
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2579.905 {y} -1291.163 {z} 1043.125
set_char_heading 34@ {heading} 177.191
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 34@ {areaId} 2
137@ = 0
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2567.4131 {y} -1305.324 {z} 1036.781
set_char_heading 35@ {heading} 268.0134
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 35@ {skill} WeaponSkill.Pro
set_char_area_visible 35@ {areaId} 2
set_char_health 35@ {health} 150
set_char_max_health 35@ {maxHealth} 150
138@ = 0
36@ = create_char PedType.Mission1 {modelId} 109 {x} 2572.115 {y} -1301.504 {z} 1036.781
set_char_heading 36@ {heading} 61.2775
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 36@ {rate} 20
set_char_area_visible 36@ {areaId} 2
set_char_health 36@ {health} 5
task_shoot_at_coord 36@ {x} 2570.207 {y} -1300.238 {z} 1037.059 {time} 650000
139@ = 0
37@ = create_char PedType.Mission1 {modelId} 102 {x} 2575.0071 {y} -1284.838 {z} 1030.427
set_char_heading 37@ {heading} 170.5391
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 37@ {skill} WeaponSkill.Pro
set_char_area_visible 37@ {areaId} 2
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_8547
if 
  not is_char_dead 37@
goto_if_false @FINALEB_8547
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17738
140@ = 1

:FINALEB_8547
38@ = create_char PedType.Mission1 {modelId} 104 {x} 2568.075 {y} -1293.6281 {z} 1030.4301
set_char_heading 38@ {heading} 356.7112
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 38@ {areaId} 2
set_char_health 38@ {health} 150
set_char_max_health 38@ {maxHealth} 150
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_8687
if 
  not is_char_dead 38@
goto_if_false @FINALEB_8687
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17694
141@ = 1

:FINALEB_8687
39@ = create_char PedType.Mission1 {modelId} 109 {x} 2570.626 {y} -1297.5 {z} 1030.427
set_char_heading 39@ {heading} 3.5755
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 39@ {areaId} 2
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_8811
if 
  not is_char_dead 39@
goto_if_false @FINALEB_8811
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17694
142@ = 1

:FINALEB_8811
40@ = create_char PedType.Mission1 {modelId} 102 {x} 2570.947 {y} -1301.719 {z} 1030.4301
set_char_heading 40@ {heading} 359.8018
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 40@ {areaId} 2
143@ = 0
if 
  143@ == 0
goto_if_false @FINALEB_8935
if 
  not is_char_dead 40@
goto_if_false @FINALEB_8935
set_lvar_int_to_lvar_int 104@ = 40@
gosub @FINALEB_17694
143@ = 1

:FINALEB_8935
132@ = 4

:FINALEB_8942
if 
  132@ == 4
goto_if_false @FINALEB_10782
if 
  137@ == 0
goto_if_false @FINALEB_9102
if 
  not is_char_dead 34@
goto_if_false @FINALEB_9102
if or
  locate_char_any_means_3d $scplayer {x} 2577.6001 {y} -1289.91 {z} 1043.77 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
goto_if_false @FINALEB_9102
set_lvar_int_to_lvar_int 104@ = 34@
106@ = 2579.905
107@ = -1304.985
108@ = 1036.7729
gosub @FINALEB_17639
137@ = 1

:FINALEB_9102
if 
  138@ == 0
goto_if_false @FINALEB_9207
if 
  not is_char_dead 35@
goto_if_false @FINALEB_9207
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.8799 {leftBottomY} -1309.87 {leftBottomZ} 1036.2 {rightTopX} 2563.8701 {rightTopY} -1289.87 {rightTopZ} 1042.6801 {drawSphere} False
  has_char_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @FINALEB_9207
task_kill_char_on_foot 35@ {target} $scplayer
138@ = 1

:FINALEB_9207
if 
  143@ == 1
goto_if_false @FINALEB_9379
if 
  not is_char_dead 40@
goto_if_false @FINALEB_9379
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2573.3 {leftBottomY} -1281.03 {leftBottomZ} 1028.8 {rightTopX} 2563.7 {rightTopY} -1300.61 {rightTopZ} 1034.0 {drawSphere} False
  has_char_been_damaged_by_char 40@ {handle} $scplayer
goto_if_false @FINALEB_9379
set_lvar_int_to_lvar_int 104@ = 40@
106@ = 2570.947
107@ = -1301.719
108@ = 1030.4301
113@ = 2558.7219
114@ = -1301.829
115@ = 1030.4301
gosub @FINALEB_17776
143@ = 2

:FINALEB_9379
if 
  137@ == 1
goto_if_false @FINALEB_9425
if 
  is_char_dead 34@
goto_if_false @FINALEB_9425
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_9425
if 
  138@ == 1
goto_if_false @FINALEB_9471
if 
  is_char_dead 35@
goto_if_false @FINALEB_9471
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_9471
if 
  139@ == 1
goto_if_false @FINALEB_9517
if 
  is_char_dead 36@
goto_if_false @FINALEB_9517
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_9517
if 
  140@ == 1
goto_if_false @FINALEB_9563
if 
  is_char_dead 37@
goto_if_false @FINALEB_9563
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_9563
if 
  141@ == 1
goto_if_false @FINALEB_9609
if 
  is_char_dead 38@
goto_if_false @FINALEB_9609
mark_char_as_no_longer_needed 38@
141@ = 2

:FINALEB_9609
if 
  142@ == 1
goto_if_false @FINALEB_9655
if 
  is_char_dead 39@
goto_if_false @FINALEB_9655
mark_char_as_no_longer_needed 39@
142@ = 2

:FINALEB_9655
if or
  143@ == 1
  143@ == 1
goto_if_false @FINALEB_9708
if 
  is_char_dead 40@
goto_if_false @FINALEB_9708
mark_char_as_no_longer_needed 40@
143@ = 2

:FINALEB_9708
if 
  locate_char_any_means_3d $scplayer {x} 2565.9399 {y} -1301.96 {z} 1030.77 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_10782
remove_blip 118@
118@ = add_blip_for_coord 2528.78 {y} -1293.9399 {z} 1030.86
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
43@ = create_char PedType.Mission1 {modelId} 102 {x} 2549.1621 {y} -1291.369 {z} 1030.467
set_char_heading 43@ {heading} 275.0
set_char_decision_maker 43@ {handleOrTemplate} 97@
give_weapon_to_char 43@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 43@ {areaId} 2
set_char_health 43@ {health} 150
set_char_max_health 43@ {maxHealth} 150
146@ = 0
if 
  146@ == 0
goto_if_false @FINALEB_9976
if 
  not is_char_dead 43@
goto_if_false @FINALEB_9976
set_lvar_int_to_lvar_int 104@ = 43@
gosub @FINALEB_17694
146@ = 1

:FINALEB_9976
44@ = create_char PedType.Mission1 {modelId} 104 {x} 2534.8799 {y} -1292.009 {z} 1031.469
set_char_heading 44@ {heading} 275.0
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
set_char_area_visible 44@ {areaId} 2
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_10107
if 
  not is_char_dead 44@
goto_if_false @FINALEB_10107
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17738
147@ = 1

:FINALEB_10107
45@ = create_char PedType.Mission1 {modelId} 104 {x} 2554.033 {y} -1287.08 {z} 1030.4301
set_char_heading 45@ {heading} 270.0
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 45@ {areaId} 2
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_10279
if 
  not is_char_dead 45@
goto_if_false @FINALEB_10279
set_lvar_int_to_lvar_int 104@ = 45@
106@ = 2554.033
107@ = -1287.08
108@ = 1030.4301
112@ = 1200
116@ = 270.0
gosub @FINALEB_18172
148@ = 1

:FINALEB_10279
46@ = create_char PedType.Mission1 {modelId} 104 {x} 2546.0071 {y} -1287.15 {z} 1030.427
set_char_heading 46@ {heading} 270.0
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 46@ {areaId} 2
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_10451
if 
  not is_char_dead 46@
goto_if_false @FINALEB_10451
set_lvar_int_to_lvar_int 104@ = 46@
106@ = 2546.0071
107@ = -1287.15
108@ = 1030.427
112@ = 2000
116@ = 270.0
gosub @FINALEB_18172
149@ = 1

:FINALEB_10451
47@ = create_char PedType.Mission1 {modelId} 109 {x} 2530.397 {y} -1291.381 {z} 1036.781
set_char_heading 47@ {heading} 278.2231
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 47@ {areaId} 2
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_10575
if 
  not is_char_dead 47@
goto_if_false @FINALEB_10575
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17738
150@ = 1

:FINALEB_10575
48@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.4431 {y} -1306.621 {z} 1036.781
set_char_heading 48@ {heading} 328.6817
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 48@ {areaId} 2
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_10699
if 
  not is_char_dead 48@
goto_if_false @FINALEB_10699
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17738
151@ = 1

:FINALEB_10699
42@ = create_char PedType.Mission1 {modelId} 109 {x} 2535.1111 {y} -1304.9919 {z} 1030.4301
set_char_heading 42@ {heading} 328.6817
set_char_decision_maker 42@ {handleOrTemplate} 97@
give_weapon_to_char 42@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 42@ {areaId} 2
task_kill_char_on_foot 42@ {target} $scplayer
145@ = 0
132@ = 5

:FINALEB_10782
if 
  132@ == 5
goto_if_false @FINALEB_12430
if 
  146@ == 1
goto_if_false @FINALEB_10913
if 
  not is_char_dead 43@
goto_if_false @FINALEB_10913
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2553.8501 {leftBottomY} -1308.35 {leftBottomZ} 1028.6 {rightTopX} 2540.27 {rightTopY} -1275.04 {rightTopZ} 1033.2 {drawSphere} False
  has_char_been_damaged_by_char 43@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 43@
goto_if_false @FINALEB_10913
task_kill_char_on_foot 43@ {target} $scplayer
146@ = 2

:FINALEB_10913
if 
  147@ == 1
goto_if_false @FINALEB_11026
if 
  not is_char_dead 44@
goto_if_false @FINALEB_11026
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2542.24 {leftBottomY} -1308.67 {leftBottomZ} 1028.09 {rightTopX} 2527.8601 {rightTopY} -1276.9 {rightTopZ} 1033.1899 {drawSphere} False
  has_char_been_damaged_by_char 44@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 44@
goto_if_false @FINALEB_11026
task_kill_char_on_foot 44@ {target} $scplayer
147@ = 2

:FINALEB_11026
if or
  146@ == 1
  145@ == 2
goto_if_false @FINALEB_11079
if 
  is_char_dead 43@
goto_if_false @FINALEB_11079
mark_char_as_no_longer_needed 43@
146@ = 3

:FINALEB_11079
if or
  147@ == 1
  145@ == 2
goto_if_false @FINALEB_11132
if 
  is_char_dead 44@
goto_if_false @FINALEB_11132
mark_char_as_no_longer_needed 44@
147@ = 3

:FINALEB_11132
if 
  148@ == 1
goto_if_false @FINALEB_11260
if 
  not is_char_dead 45@
goto_if_false @FINALEB_11260
if or
  has_char_been_damaged_by_char 45@ {handle} $scplayer
  locate_char_any_means_char_3d 45@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_11260
if 
  not is_char_dead 45@
goto_if_false @FINALEB_11248
task_kill_char_on_foot 45@ {target} $scplayer
148@ = 2
goto @FINALEB_11260

:FINALEB_11248
mark_char_as_no_longer_needed 45@
148@ = 2

:FINALEB_11260
if or
  148@ == 1
  148@ == 2
goto_if_false @FINALEB_11313
if 
  is_char_dead 45@
goto_if_false @FINALEB_11313
mark_char_as_no_longer_needed 45@
148@ = 3

:FINALEB_11313
if 
  149@ == 1
goto_if_false @FINALEB_11441
if 
  not is_char_dead 46@
goto_if_false @FINALEB_11441
if or
  has_char_been_damaged_by_char 46@ {handle} $scplayer
  locate_char_any_means_char_3d 46@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_11441
if 
  not is_char_dead 46@
goto_if_false @FINALEB_11429
task_kill_char_on_foot 46@ {target} $scplayer
149@ = 2
goto @FINALEB_11441

:FINALEB_11429
mark_char_as_no_longer_needed 46@
149@ = 2

:FINALEB_11441
if or
  149@ == 1
  149@ == 2
goto_if_false @FINALEB_11494
if 
  is_char_dead 46@
goto_if_false @FINALEB_11494
mark_char_as_no_longer_needed 46@
149@ = 3

:FINALEB_11494
if 
  150@ == 1
goto_if_false @FINALEB_11540
if 
  is_char_dead 47@
goto_if_false @FINALEB_11540
mark_char_as_no_longer_needed 47@
150@ = 2

:FINALEB_11540
if 
  151@ == 1
goto_if_false @FINALEB_11586
if 
  is_char_dead 48@
goto_if_false @FINALEB_11586
mark_char_as_no_longer_needed 48@
151@ = 2

:FINALEB_11586
if 
  145@ == 1
goto_if_false @FINALEB_11632
if 
  is_char_dead 42@
goto_if_false @FINALEB_11632
mark_char_as_no_longer_needed 42@
145@ = 2

:FINALEB_11632
if 
  locate_char_any_means_3d $scplayer {x} 2528.53 {y} -1293.96 {z} 1030.86 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEB_12430
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
remove_script_fire 61@
remove_script_fire 62@
remove_script_fire 63@
remove_script_fire 64@
remove_script_fire 65@
remove_script_fire 66@
remove_script_fire 67@
remove_script_fire 68@
remove_script_fire 69@
remove_script_fire 70@
remove_script_fire 71@
remove_script_fire 72@
remove_script_fire 73@
remove_script_fire 74@
remove_script_fire 76@
remove_script_fire 78@
remove_script_fire 82@
remove_script_fire 84@
remove_script_fire 85@
remove_script_fire 86@
61@ = start_script_fire 2523.9199 {y} -1299.21 {z} 1030.78 {propagation} 0 {size} 3
62@ = start_script_fire 2523.6599 {y} -1297.4 {z} 1030.8 {propagation} 0 {size} 1
63@ = start_script_fire 2528.97 {y} -1304.3199 {z} 1030.77 {propagation} 0 {size} 2
64@ = start_script_fire 2525.5 {y} -1321.59 {z} 1030.75 {propagation} 0 {size} 2
66@ = start_script_fire 2541.0 {y} -1311.02 {z} 1028.09 {propagation} 0 {size} 2
remove_pickup 130@
130@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2534.0359 {y} -1321.212 {z} 1031.469
67@ = start_script_fire 2540.6899 {y} -1320.01 {z} 1030.6801 {propagation} 0 {size} 3
68@ = start_script_fire 2540.2 {y} -1316.76 {z} 1030.64 {propagation} 0 {size} 3
69@ = start_script_fire 2540.6101 {y} -1317.4301 {z} 1030.62 {propagation} 0 {size} 3
70@ = start_script_fire 2540.3501 {y} -1318.39 {z} 1030.59 {propagation} 0 {size} 3
71@ = start_script_fire 2540.5 {y} -1319.58 {z} 1030.61 {propagation} 0 {size} 3
remove_blip 118@
118@ = add_blip_for_coord 2540.9199 {y} -1304.14 {z} 1024.39
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2527.3679 {y} -1319.587 {z} 1030.4301
set_char_heading 34@ {heading} 1.4222
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
set_char_area_visible 34@ {areaId} 2
set_char_accuracy 34@ {accuracy} 30
137@ = 0
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2528.2839 {y} -1314.865 {z} 1030.4301
set_char_heading 35@ {heading} 3.4628
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 35@ {skill} WeaponSkill.Pro
set_char_area_visible 35@ {areaId} 2
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_12348
if 
  not is_char_dead 35@
goto_if_false @FINALEB_12348
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17694
138@ = 1

:FINALEB_12348
36@ = create_char PedType.Mission1 {modelId} 109 {x} 2524.0549 {y} -1309.533 {z} 1030.4301
set_char_heading 36@ {heading} 7.001
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 36@ {areaId} 2
set_char_accuracy 36@ {accuracy} 30
139@ = 0
132@ = 6

:FINALEB_12430
if 
  132@ == 6
goto_if_false @FINALEB_12840
if 
  137@ == 0
goto_if_false @FINALEB_12561
if 
  not is_char_dead 34@
goto_if_false @FINALEB_12561
if or
  locate_char_any_means_3d $scplayer {x} 2527.0701 {y} -1293.72 {z} 1029.5 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.5 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 34@
goto_if_false @FINALEB_12561
task_kill_char_on_foot 34@ {target} $scplayer
137@ = 1

:FINALEB_12561
if 
  139@ == 0
goto_if_false @FINALEB_12669
if 
  not is_char_dead 36@
goto_if_false @FINALEB_12669
if or
  locate_char_any_means_char_3d $scplayer {target} 36@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 3.5 {drawSphere} False
  has_char_been_damaged_by_char 36@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 36@
goto_if_false @FINALEB_12669
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17848
139@ = 1

:FINALEB_12669
if 
  137@ == 1
goto_if_false @FINALEB_12715
if 
  is_char_dead 34@
goto_if_false @FINALEB_12715
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_12715
if 
  138@ == 1
goto_if_false @FINALEB_12761
if 
  is_char_dead 35@
goto_if_false @FINALEB_12761
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_12761
if 
  139@ == 1
goto_if_false @FINALEB_12807
if 
  is_char_dead 36@
goto_if_false @FINALEB_12807
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_12807
50@ = get_char_area_visible $scplayer
if 
  50@ == 0
goto_if_false @FINALEB_12840
132@ = 7

:FINALEB_12840
if 
  132@ == 7
goto_if_false @FINALEB_14000
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2506.218 {y} -1293.093 {z} 200.0 {radius} 200.0 {clearParticles} False
request_animation "DAM_JUMP"
request_animation "FINALE"
load_all_models_now 

:FINALEB_12920
if or
  not has_animation_loaded "DAM_JUMP"
  not has_animation_loaded "FINALE"
goto_if_false @FINALEB_12964
wait 0
goto @FINALEB_12920

:FINALEB_12964
remove_blip 118@
118@ = add_blip_for_coord 2522.8201 {y} -1272.52 {z} 34.151
set_char_coordinates $scplayer {x} 2538.657 {y} -1304.358 {z} 34.0
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 349
remove_animation "SWAT"
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
remove_pickup 129@
remove_pickup 130@
remove_pickup 125@
remove_pickup 120@
remove_pickup 121@
remove_pickup 122@
remove_pickup 126@
remove_pickup 123@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2543.2 {y} -1277.645 {z} 33.9609
set_char_heading 34@ {heading} 7.001
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 34@ {target} $scplayer
set_char_accuracy 34@ {accuracy} 10
137@ = 1
35@ = create_char PedType.Mission1 {modelId} 102 {x} 2536.917 {y} -1283.446 {z} 33.9609
set_char_heading 35@ {heading} 7.001
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_accuracy 35@ {accuracy} 10
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_13376
if 
  not is_char_dead 35@
goto_if_false @FINALEB_13376
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17738
138@ = 1

:FINALEB_13376
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2531.656 {y} -1287.27 {z} 33.9602
set_char_heading 36@ {heading} 7.001
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 36@ {skill} WeaponSkill.Pro
set_char_accuracy 36@ {accuracy} 10
139@ = 0
if 
  139@ == 0
goto_if_false @FINALEB_13507
if 
  not is_char_dead 36@
goto_if_false @FINALEB_13507
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17694
139@ = 1

:FINALEB_13507
37@ = create_char PedType.Mission1 {modelId} 109 {x} 2539.5691 {y} -1268.4709 {z} 33.9609
set_char_heading 37@ {heading} 2.21
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.M4 {ammo} 99999
task_kill_char_on_foot 37@ {target} $scplayer
set_char_accuracy 37@ {accuracy} 20
140@ = 1
remove_all_script_fires 
79@ = start_script_fire 2538.45 {y} -1281.4 {z} 34.34 {propagation} 0 {size} 3
61@ = start_script_fire 2527.6399 {y} -1312.0 {z} 33.9 {propagation} 0 {size} 2
62@ = start_script_fire 2527.5801 {y} -1303.3 {z} 34.4 {propagation} 0 {size} 1
63@ = start_script_fire 2532.52 {y} -1306.39 {z} 33.9 {propagation} 0 {size} 2
64@ = start_script_fire 2528.0801 {y} -1284.9 {z} 34.3 {propagation} 0 {size} 2
65@ = start_script_fire 2544.03 {y} -1269.3 {z} 34.2 {propagation} 0 {size} 1
66@ = start_script_fire 2536.26 {y} -1302.49 {z} 34.0 {propagation} 0 {size} 2
67@ = start_script_fire 2532.5801 {y} -1291.0699 {z} 34.0 {propagation} 0 {size} 1
71@ = start_script_fire 2528.6399 {y} -1269.64 {z} 34.0 {propagation} 0 {size} 1
72@ = start_script_fire 2534.5701 {y} -1284.5 {z} 34.04 {propagation} 0 {size} 1
70@ = start_script_fire 2531.99 {y} -1268.71 {z} 34.0 {propagation} 0 {size} 2
69@ = start_script_fire 2530.9871 {y} -1269.858 {z} 33.8 {propagation} 0 {size} 3
74@ = start_script_fire 2532.3899 {y} -1270.4 {z} 34.0 {propagation} 0 {size} 3
75@ = start_script_fire 2531.165 {y} -1271.9611 {z} 34.0 {propagation} 0 {size} 2
76@ = start_script_fire 2532.5291 {y} -1272.1689 {z} 34.0 {propagation} 0 {size} 1
77@ = start_script_fire 2532.395 {y} -1273.24 {z} 34.0 {propagation} 0 {size} 2
78@ = start_script_fire 2531.9399 {y} -1274.46 {z} 33.8 {propagation} 0 {size} 3
132@ = 8

:FINALEB_14000
if 
  132@ == 8
goto_if_false @FINALEB_14314
if 
  137@ == 1
goto_if_false @FINALEB_14064
if 
  is_char_dead 34@
goto_if_false @FINALEB_14064
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_14064
if 
  138@ == 1
goto_if_false @FINALEB_14110
if 
  is_char_dead 35@
goto_if_false @FINALEB_14110
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_14110
if 
  139@ == 1
goto_if_false @FINALEB_14156
if 
  is_char_dead 36@
goto_if_false @FINALEB_14156
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_14156
if 
  140@ == 1
goto_if_false @FINALEB_14202
if 
  is_char_dead 37@
goto_if_false @FINALEB_14202
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_14202
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2545.5901 {leftBottomY} -1278.26 {leftBottomZ} 31.36 {rightTopX} 2516.6499 {rightTopY} -1259.84 {rightTopZ} 37.0 {drawSphere} False
goto_if_false @FINALEB_14314
remove_all_script_fires 
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
60@ = 0

:FINALEB_14266
if 
  9 > 60@
goto_if_false @FINALEB_14307
kill_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_14266

:FINALEB_14307
132@ = 9

:FINALEB_14314
if 
  132@ == 9
goto_if_false @FINALEB_14943
remove_blip 118@
switch_widescreen True
set_player_control $player1 {state} False
set_darkness_effect False {pitchBlack} -1
set_night_vision False
player_take_off_goggles $player1 {animate} False
61@ = start_script_fire 2532.6201 {y} -1272.65 {z} 34.31 {propagation} 0 {size} 1
62@ = start_script_fire 2532.8799 {y} -1272.75 {z} 34.12 {propagation} 0 {size} 2
64@ = start_script_fire 2527.8999 {y} -1272.5 {z} 34.8 {propagation} 0 {size} 2
65@ = start_script_fire 2533.7429 {y} -1272.434 {z} 34.0 {propagation} 0 {size} 3
66@ = start_script_fire 2533.7429 {y} -1272.434 {z} 34.0 {propagation} 0 {size} 2
70@ = start_script_fire 2531.99 {y} -1268.71 {z} 34.0 {propagation} 0 {size} 2
69@ = start_script_fire 2530.9871 {y} -1269.858 {z} 33.8 {propagation} 0 {size} 3
74@ = start_script_fire 2532.3899 {y} -1270.4 {z} 34.0 {propagation} 0 {size} 1
75@ = start_script_fire 2531.165 {y} -1271.9611 {z} 34.0 {propagation} 0 {size} 2
76@ = start_script_fire 2532.5291 {y} -1272.1689 {z} 34.0 {propagation} 0 {size} 1
77@ = start_script_fire 2532.395 {y} -1273.24 {z} 34.0 {propagation} 0 {size} 3
73@ = start_script_fire 2531.9399 {y} -1274.46 {z} 33.8 {propagation} 0 {size} 1
63@ = start_script_fire 2532.4331 {y} -1275.658 {z} 34.0 {propagation} 0 {size} 3
set_max_fire_generations 3
$smokehealth_fa = 2526.989
$camx_fb = -1272.577
$camy_fb = 34.8419
$camz_fb = 2527.988
$lookcamx_fb = -1272.557
$lookcamy_fb = 34.8799
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
set_char_coordinates $scplayer {x} 2538.45 {y} -1281.4 {z} 34.34
set_char_heading $scplayer {heading} 270.0
set_fixed_camera_position $smokehealth_fa {y} $camx_fb {z} $camy_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $camz_fb {y} $lookcamx_fb {z} $lookcamy_fb {switchStyle} SwitchType.JumpCut
wait 2000
set_char_coordinates $scplayer {x} 2533.7429 {y} -1272.434 {z} 34.0
set_char_heading $scplayer {heading} 90.0
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "JUMP_ROLL" {animationFile} "DAM_JUMP" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_time_of_day 17 {minutes} 0
TIMERA = 0
set_time_scale 0.3
132@ = 10

:FINALEB_14943
if 
  132@ == 10
goto_if_false @FINALEB_16158
set_fixed_camera_position $smokehealth_fa {y} $camx_fb {z} $camy_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $camz_fb {y} $lookcamx_fb {z} $lookcamy_fb {switchStyle} SwitchType.JumpCut
if 
  2512.28 >= $smokehealth_fa
goto_if_false @FINALEB_15042
TIMERA = 0
153@ = 12
132@ = 11

:FINALEB_15042
if 
  TIMERA > 500
goto_if_false @FINALEB_15071
sub_timed_val_from_float_var $smokehealth_fa -=@ 0.18

:FINALEB_15071
if 
  TIMERA > 0
goto_if_false @FINALEB_15138
if 
  153@ == 0
goto_if_false @FINALEB_15138
add_explosion_variable_shake 2538.3999 {y} -1278.4 {z} 34.04 {type} 4 {shake} 0.2
153@ = 1

:FINALEB_15138
if 
  TIMERA > 100
goto_if_false @FINALEB_15181
if 
  153@ == 1
goto_if_false @FINALEB_15181
153@ = 2

:FINALEB_15181
if 
  TIMERA > 250
goto_if_false @FINALEB_15259
if 
  153@ == 2
goto_if_false @FINALEB_15259
add_explosion_variable_shake 2540.24 {y} -1270.59 {z} 34.07 {type} 0 {shake} 0.2
remove_script_fire 64@
remove_script_fire 61@
153@ = 3

:FINALEB_15259
if 
  TIMERA > 500
goto_if_false @FINALEB_15327
if 
  153@ == 3
goto_if_false @FINALEB_15327
add_explosion_variable_shake 2535.6599 {y} -1276.3 {z} 34.34 {type} 2 {shake} 0.2
153@ = 4

:FINALEB_15327
if 
  TIMERA > 850
goto_if_false @FINALEB_15400
if 
  153@ == 4
goto_if_false @FINALEB_15400
add_explosion_variable_shake 2531.74 {y} -1270.35 {z} 34.39 {type} 1 {shake} 0.2
remove_script_fire 64@
153@ = 5

:FINALEB_15400
if 
  TIMERA > 1100
goto_if_false @FINALEB_15451
if 
  153@ == 5
goto_if_false @FINALEB_15451
set_time_scale 0.35
153@ = 6

:FINALEB_15451
if 
  TIMERA > 1298
goto_if_false @FINALEB_15531
if 
  153@ == 6
goto_if_false @FINALEB_15531
set_time_scale 0.39
add_explosion_variable_shake 2527.72 {y} -1272.8199 {z} 34.26 {type} 0 {shake} 0.2
remove_script_fire 65@
153@ = 7

:FINALEB_15531
if 
  TIMERA > 1400
goto_if_false @FINALEB_15606
if 
  153@ == 7
goto_if_false @FINALEB_15606
set_time_scale 0.42
add_explosion_variable_shake 2529.54 {y} -1270.12 {z} 34.31 {type} 2 {shake} 0.22
153@ = 8

:FINALEB_15606
if 
  TIMERA > 1500
goto_if_false @FINALEB_15686
if 
  153@ == 8
goto_if_false @FINALEB_15686
set_time_scale 0.44
add_explosion_variable_shake 2524.1499 {y} -1272.3101 {z} 34.42 {type} 4 {shake} 0.25
remove_script_fire 70@
153@ = 9

:FINALEB_15686
if 
  TIMERA > 1600
goto_if_false @FINALEB_15806
if 
  153@ == 9
goto_if_false @FINALEB_15806
set_time_scale 0.5
add_explosion_variable_shake 2522.3301 {y} -1270.1899 {z} 34.19 {type} 1 {shake} 0.3
remove_script_fire 61@
remove_script_fire 62@
remove_script_fire 65@
remove_script_fire 70@
remove_script_fire 69@
remove_script_fire 75@
remove_script_fire 76@
remove_script_fire 73@
remove_script_fire 63@
153@ = 10

:FINALEB_15806
if 
  TIMERA > 1700
goto_if_false @FINALEB_16090
if 
  153@ == 10
goto_if_false @FINALEB_16090
add_explosion_variable_shake 2524.1399 {y} -1270.04 {z} 34.19 {type} 2 {shake} 0.25
61@ = start_script_fire 2523.1699 {y} -1269.1801 {z} 34.04 {propagation} 0 {size} 3
62@ = start_script_fire 2522.47 {y} -1271.46 {z} 34.15 {propagation} 0 {size} 2
65@ = start_script_fire 2523.6799 {y} -1272.35 {z} 34.19 {propagation} 0 {size} 3
70@ = start_script_fire 2523.1799 {y} -1273.3199 {z} 34.06 {propagation} 0 {size} 2
69@ = start_script_fire 2522.8 {y} -1274.45 {z} 34.05 {propagation} 0 {size} 3
75@ = start_script_fire 2522.4199 {y} -1276.4 {z} 34.05 {propagation} 0 {size} 2
76@ = start_script_fire 2520.3201 {y} -1273.41 {z} 34.0 {propagation} 0 {size} 1
73@ = start_script_fire 2521.3201 {y} -1273.41 {z} 34.0 {propagation} 0 {size} 1
63@ = start_script_fire 2520.9299 {y} -1269.28 {z} 34.0 {propagation} 0 {size} 2
153@ = 11

:FINALEB_16090
if 
  TIMERA > 1916
goto_if_false @FINALEB_16158
if 
  153@ == 11
goto_if_false @FINALEB_16158
add_explosion_variable_shake 2522.01 {y} -1274.0601 {z} 34.2 {type} 4 {shake} 0.2
153@ = 12

:FINALEB_16158
if 
  132@ == 11
goto_if_false @FINALEB_17632
if 
  61.0 > $camy_fb
goto_if_false @FINALEB_16227
add_timed_val_to_float_var $camy_fb +=@ 0.1
sub_timed_val_from_float_var $smokehealth_fa -=@ 0.02
add_timed_val_to_float_var $lookcamy_fb +=@ 0.008

:FINALEB_16227
set_fixed_camera_position $smokehealth_fa {y} $camx_fb {z} $camy_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $camz_fb {y} $lookcamx_fb {z} $lookcamy_fb {switchStyle} SwitchType.JumpCut
if 
  153@ == 12
goto_if_false @FINALEB_16334
if 
  TIMERA > 1400
goto_if_false @FINALEB_16334
add_explosion_variable_shake 2521.46 {y} -1268.02 {z} 39.8 {type} 0 {shake} 0.2
153@ = 13

:FINALEB_16334
if 
  153@ == 13
goto_if_false @FINALEB_16402
if 
  TIMERA > 1670
goto_if_false @FINALEB_16402
add_explosion_variable_shake 2521.48 {y} -1270.67 {z} 40.32 {type} 4 {shake} 0.25
153@ = 14

:FINALEB_16402
if 
  153@ == 14
goto_if_false @FINALEB_16562
if 
  TIMERA > 1800
goto_if_false @FINALEB_16562
add_explosion_variable_shake 2521.3201 {y} -1275.86 {z} 40.47 {type} 2 {shake} 0.2
remove_script_fire 64@
remove_script_fire 66@
remove_script_fire 74@
remove_script_fire 69@
64@ = start_script_fire 2521.46 {y} -1268.02 {z} 39.8 {propagation} 1 {size} 2
66@ = start_script_fire 22521.4805 {y} -1270.67 {z} 40.32 {propagation} 1 {size} 2
74@ = start_script_fire 2521.3201 {y} -1275.86 {z} 40.47 {propagation} 1 {size} 1
153@ = 15

:FINALEB_16562
if 
  153@ == 15
goto_if_false @FINALEB_16654
if 
  TIMERA > 1950
goto_if_false @FINALEB_16654
add_explosion_variable_shake 2521.4199 {y} -1273.1801 {z} 39.83 {type} 2 {shake} 0.2
add_explosion_variable_shake 2525.4299 {y} -1280.65 {z} 40.28 {type} 4 {shake} 0.2
153@ = 16

:FINALEB_16654
if 
  153@ == 16
goto_if_false @FINALEB_16771
if 
  TIMERA > 2200
goto_if_false @FINALEB_16771
add_explosion_variable_shake 2521.27 {y} -1270.64 {z} 43.25 {type} 2 {shake} 0.2
remove_script_fire 77@
remove_script_fire 63@
remove_script_fire 79@
remove_script_fire 78@
remove_script_fire 70@
69@ = start_script_fire 2525.4299 {y} -1280.65 {z} 40.28 {propagation} 1 {size} 2
153@ = 17

:FINALEB_16771
if 
  153@ == 17
goto_if_false @FINALEB_16887
if 
  TIMERA > 2568
goto_if_false @FINALEB_16887
add_explosion_variable_shake 2521.1499 {y} -1267.91 {z} 43.37 {type} 2 {shake} 0.2
add_explosion_variable_shake 2525.8899 {y} -1281.0 {z} 43.79 {type} 4 {shake} 0.2
70@ = start_script_fire 2525.8899 {y} -1281.0 {z} 43.79 {propagation} 3 {size} 3
153@ = 18

:FINALEB_16887
if 
  153@ == 18
goto_if_false @FINALEB_17027
if 
  TIMERA > 3241
goto_if_false @FINALEB_17027
add_explosion_variable_shake 2520.8601 {y} -1273.39 {z} 43.2 {type} 0 {shake} 0.2
77@ = start_script_fire 2521.27 {y} -1270.64 {z} 43.25 {propagation} 1 {size} 3
63@ = start_script_fire 2521.1499 {y} -1267.91 {z} 43.37 {propagation} 2 {size} 2
79@ = start_script_fire 2521.3401 {y} -1275.7 {z} 43.26 {propagation} 3 {size} 1
153@ = 19

:FINALEB_17027
if 
  153@ == 19
goto_if_false @FINALEB_17095
if 
  TIMERA > 3485
goto_if_false @FINALEB_17095
add_explosion_variable_shake 2521.3401 {y} -1275.7 {z} 43.26 {type} 4 {shake} 0.2
153@ = 20

:FINALEB_17095
if 
  153@ == 20
goto_if_false @FINALEB_17163
if 
  TIMERA > 3708
goto_if_false @FINALEB_17163
add_explosion_variable_shake 2521.1499 {y} -1275.61 {z} 47.83 {type} 2 {shake} 0.2
153@ = 21

:FINALEB_17163
if 
  153@ == 21
goto_if_false @FINALEB_17260
if 
  TIMERA > 4246
goto_if_false @FINALEB_17260
add_explosion_variable_shake 2521.04 {y} -1272.97 {z} 47.91 {type} 0 {shake} 0.2
remove_script_fire 75@
62@ = start_script_fire 2525.8799 {y} -1279.99 {z} 48.43 {propagation} 3 {size} 2
153@ = 22

:FINALEB_17260
if 
  153@ == 22
goto_if_false @FINALEB_17362
if 
  TIMERA > 4708
goto_if_false @FINALEB_17362
add_explosion_variable_shake 2521.24 {y} -1267.9 {z} 48.15 {type} 4 {shake} 0.2
remove_script_fire 61@
remove_script_fire 62@
add_explosion_variable_shake 2525.8799 {y} -1279.99 {z} 48.43 {type} 2 {shake} 0.2
153@ = 23

:FINALEB_17362
if 
  153@ == 23
goto_if_false @FINALEB_17502
if 
  TIMERA > 5000
goto_if_false @FINALEB_17502
add_explosion_variable_shake 2521.3701 {y} -1270.86 {z} 48.35 {type} 0 {shake} 0.2
78@ = start_script_fire 2521.1499 {y} -1275.61 {z} 47.83 {propagation} 3 {size} 1
61@ = start_script_fire 2521.04 {y} -1272.97 {z} 47.91 {propagation} 2 {size} 2
62@ = start_script_fire 2521.24 {y} -1267.9 {z} 48.15 {propagation} 3 {size} 2
153@ = 24

:FINALEB_17502
if 
  153@ == 24
goto_if_false @FINALEB_17632
if 
  TIMERA > 3000
goto_if_false @FINALEB_17632
clear_char_tasks_immediately $scplayer
clear_onscreen_timer $lookcamz_fb
remove_animation "DAM_JUMP"
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
set_heathaze_effect False
do_fade 1000 {direction} Fade.Out

:FINALEB_17587
if 
  get_fading_status 
goto_if_false @FINALEB_17611
wait 0
goto @FINALEB_17587

:FINALEB_17611
goto @FINALEB_18533
132@ = 11
153@ = 25

:FINALEB_17632
goto @FINALEB_718

:FINALEB_17639
99@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 106@ {y} 107@ {z} 108@ {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 99@
perform_sequence_task 104@ {sequence} 99@
clear_sequence_task 99@
return 

:FINALEB_17694
100@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 100@
perform_sequence_task 104@ {sequence} 100@
clear_sequence_task 100@
return 

:FINALEB_17738
101@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 101@
perform_sequence_task 104@ {sequence} 101@
clear_sequence_task 101@
return 

:FINALEB_17776
111@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 106@ {y} 107@ {z} 108@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 113@ {y} 114@ {z} 115@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 111@
perform_sequence_task 104@ {sequence} 111@
clear_sequence_task 111@
return 

:FINALEB_17848
102@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 102@
perform_sequence_task 104@ {sequence} 102@
clear_sequence_task 102@
return 

:FINALEB_17931
103@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 112@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 106@ {y} 107@ {z} 108@ {heading} 116@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 103@ {state} True
close_sequence_task 103@
perform_sequence_task 104@ {sequence} 103@
clear_sequence_task 103@
return 

:FINALEB_18172
105@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 112@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 106@ {y} 107@ {z} 108@ {heading} 116@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 105@ {state} True
close_sequence_task 105@
perform_sequence_task 104@ {sequence} 105@
clear_sequence_task 105@
return 

:FINALEB_18413
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  182@ == 1
goto_if_false @FINALEB_18463
print_now 'RM4_46' {time} 5000 {flag} 1

:FINALEB_18463
if 
  179@ == 7
goto_if_false @FINALEB_18497
print_now 'RM4_45' {time} 7000 {flag} 1

:FINALEB_18497
if 
  183@ == 1
goto_if_false @FINALEB_18531
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEB_18531
return 

:FINALEB_18533
156@ = 1
clear_wanted_level $player1
$flag_riot_mission_counter += 1
return 

:FINALEB_18554
set_heathaze_effect False
set_darkness_effect False {pitchBlack} -1
remove_all_script_fires 
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_onscreen_timer $lookcamz_fb
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
remove_char_elegantly $big_smoke
remove_char_elegantly 49@
unload_special_character 1
unload_special_character 2
remove_animation "SWAT"
remove_animation "DAM_JUMP"
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
remove_animation "FINALE"
remove_animation "FINALE2"
remove_blip 118@
remove_blip 119@
remove_pickup 120@
remove_pickup 121@
remove_pickup 122@
remove_pickup 123@
remove_pickup 124@
remove_pickup 125@
remove_pickup 126@
remove_pickup 127@
remove_pickup 129@
remove_pickup 130@
remove_pickup 131@
switch_emergency_services True
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
60@ = 0

:FINALEB_18837
if 
  9 > 60@
goto_if_false @FINALEB_18878
kill_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_18837

:FINALEB_18878
$onmission = 0
mission_has_finished 
if 
  156@ == 1
goto_if_false @FINALEB_18911
do_fade 0 {direction} Fade.Out

:FINALEB_18911
return 

//-------------Mission 112---------------
// Originally: End Of The Line (3)

:FINALEC
gosub @FINALEC_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEC_27
gosub @FINALEC_57243

:FINALEC_27
gosub @FINALEC_57439
terminate_this_script 

:FINALEC_36
$onmission = 1
script_name 'FINALEC'
wait 0
load_mission_text 'RIOT4'
97@ = load_char_decision_maker DecisionMakerType.Empty
128@ = 11
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
$escapetimer_fb = 450000
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
$carhealth_fc = 0
$finalerails_fcflag = 0
$rails_fcflag = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
206@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
set_max_fire_generations 0
set_wanted_multiplier 0.0
switch_emergency_services False
request_model 544
request_model 280
request_model 492
request_model 533
request_model 109
request_model 102
request_model 352
request_model 344
request_model #LA_FUCKCAR1
request_model #LA_FUCKCAR2
request_animation "FINALE"
request_animation "FINALE2"
request_car_recording 288
request_car_recording 289
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'TENPEN'
request_car_recording 290
request_car_recording 291
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14816
load_all_models_now 

:FINALEC_757
if or
  not has_model_loaded 544
  not has_model_loaded 280
  not has_model_loaded 492
  not has_model_loaded 533
  not has_model_loaded 109
goto_if_false @FINALEC_803
wait 0
goto @FINALEC_757

:FINALEC_803
if or
  not has_model_loaded 102
  not has_model_loaded 352
  not has_model_loaded 344
  not has_model_loaded #LA_FUCKCAR1
  not has_model_loaded #LA_FUCKCAR2
goto_if_false @FINALEC_849
wait 0
goto @FINALEC_803

:FINALEC_849
if or
request_animation "FINALE"
request_animation "FINALE2"
  not has_car_recording_been_loaded 288
  not has_car_recording_been_loaded 289
  not has_special_character_loaded 1
goto_if_false @FINALEC_906
wait 0
goto @FINALEC_849

:FINALEC_906
if or
  not has_car_recording_been_loaded 290
  not has_car_recording_been_loaded 291
goto_if_false @FINALEC_938
wait 0
goto @FINALEC_906

:FINALEC_938
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2515.771 {y} -1277.474 {z} 33.728
set_char_heading $scplayer {heading} 144.159
task_play_anim $scplayer {animationName} "KO_SKID_BACK" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 250
152@ = create_car 544 {x} 2508.6489 {y} -1295.866 {z} 33.92
set_car_heading 152@ {heading} 0.3186
control_movable_vehicle_part 152@ {range} 0.7
set_car_proofs 152@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_can_be_visibly_damaged 152@ {state} False
$sweet_car = create_car 492 {x} 2508.9409 {y} -1306.517 {z} 33.92
set_car_heading $sweet_car {heading} 165.3186
change_car_colour $sweet_car {color1} 59 {color2} 34
custom_plate_for_next_car 533 {text} "_IMY_AK"
153@ = create_car 533 {x} 2515.895 {y} -1269.408 {z} 33.7844
set_car_heading 153@ {heading} 359.2572
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 153@ {health} 2000
set_can_burst_car_tyres 153@ {state} False
set_car_can_be_visibly_damaged 153@ {state} False
change_car_colour 153@ {color1} 1 {color2} 8
49@ = create_char PedType.Special {modelId} 291 {x} 2506.218 {y} -1293.093 {z} 33.8438
set_char_heading 49@ {heading} 271.9809
set_char_proofs 49@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 49@ {handleOrTemplate} 97@
158@ = create_char_as_passenger 152@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_proofs 158@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 158@ {handleOrTemplate} 97@
$sweet = create_char PedType.Special {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_heading $sweet {heading} 0.3186
set_char_decision_maker $sweet {handleOrTemplate} 97@
if 
  not is_car_dead 152@
goto_if_false @FINALEC_1425
attach_char_to_car $sweet {vehicle} 152@ {xOffset} 0.0 {yOffset} -8.227 {zOffset} -1000.156 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:FINALEC_1425
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2506.218 {y} -1293.093 {z} 200.0 {radius} 200.0 {clearParticles} False
switch_random_trains False
delete_all_trains 
set_time_scale 1.0
suppress_car_model 533
suppress_car_model 544
70@ = start_script_fire 2521.3921 {y} -1269.343 {z} 34.1609 {propagation} 0 {size} 3
71@ = start_script_fire 2521.7009 {y} -1270.293 {z} 34.2031 {propagation} 0 {size} 2
72@ = start_script_fire 2523.5801 {y} -1271.225 {z} 34.2918 {propagation} 0 {size} 3
73@ = start_script_fire 2518.5759 {y} -1284.467 {z} 34.0265 {propagation} 0 {size} 2
74@ = start_script_fire 2521.6001 {y} -1270.885 {z} 40.4338 {propagation} 0 {size} 3
75@ = start_script_fire 2521.6621 {y} -1267.656 {z} 43.8955 {propagation} 0 {size} 2
76@ = start_script_fire 2521.6741 {y} -1275.707 {z} 43.7437 {propagation} 0 {size} 3
77@ = start_script_fire 2521.5061 {y} -1275.781 {z} 40.4019 {propagation} 0 {size} 2
78@ = start_script_fire 2522.6799 {y} -1280.397 {z} 39.1158 {propagation} 0 {size} 3
79@ = start_script_fire 2521.676 {y} -1279.3521 {z} 39.112 {propagation} 0 {size} 3
80@ = start_script_fire 2521.7141 {y} -1278.639 {z} 37.4041 {propagation} 0 {size} 2
shut_char_up $scplayer {state} True
set_railtrack_resistance_mult 0.3
wait 500
load_scene_in_direction 2504.96 {y} -1309.16 {z} 34.44 {heading} 334.0
set_time_of_day 17 {minutes} 0
set_max_wanted_level 0
do_fade 1000 {direction} Fade.In
128@ = 11

:FINALEC_1815
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEC_1841
goto @FINALEC_57365

:FINALEC_1841
if 
  not is_car_dead 152@
goto_if_false @FINALEC_3751
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_3751
if 
  not is_char_dead 49@
goto_if_false @FINALEC_3751
if 
  not is_car_dead 153@
goto_if_false @FINALEC_3751
if 
  128@ == 11
goto_if_false @FINALEC_1998
set_fixed_camera_position 2502.792 {y} -1296.28 {z} 35.3797 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.3779 {y} -1295.469 {z} 35.3873 {switchStyle} SwitchType.JumpCut
task_enter_car_as_driver 49@ {vehicle} 152@ {time} -1
TIMERA = 0
128@ = 12

:FINALEC_1998
if 
  128@ == 12
goto_if_false @FINALEC_2080
if 
  TIMERA > 1750
goto_if_false @FINALEC_2080
task_play_anim $scplayer {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
128@ = 13

:FINALEC_2080
if 
  128@ == 13
goto_if_false @FINALEC_2186
if 
  is_char_sitting_in_car 49@ {vehicle} 152@
goto_if_false @FINALEC_2186
task_play_anim_non_interruptable $sweet {animationName} "FIN_JUMP_ON" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
lock_car_doors 152@ {lockStatus} CarLock.Locked
190@ = 1
TIMERA = 0
128@ = 14

:FINALEC_2186
if 
  128@ == 14
goto_if_false @FINALEC_2262
set_fixed_camera_position 2515.4451 {y} -1299.71 {z} 36.5622 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2514.667 {y} -1300.3101 {z} 36.4758 {switchStyle} SwitchType.JumpCut
128@ = 15

:FINALEC_2262
if 
  128@ == 15
goto_if_false @FINALEC_2397
if 
  TIMERA > 1400
goto_if_false @FINALEC_2397
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
set_near_clip 0.1
camera_set_vector_track 2514.667 {fromY} -1300.3101 {fromZ} 36.4758 {toX} 2514.946 {toY} -1282.265 {toZ} 35.6876 {time} 4000 {ease} False
camera_set_vector_move 2515.4451 {fromY} -1299.71 {fromZ} 36.5622 {toX} 2515.4819 {toY} -1282.265 {toZ} 35.713 {time} 4000 {ease} False
128@ = 16

:FINALEC_2397
if 
  128@ == 16
goto_if_false @FINALEC_2469
if 
  TIMERA > 2220
goto_if_false @FINALEC_2469
start_playback_recorded_car 152@ {path} 288
set_char_coordinates $scplayer {x} 2513.49 {y} -1277.77 {z} 34.19
128@ = 17

:FINALEC_2469
if 
  128@ == 17
goto_if_false @FINALEC_2591
if 
  not camera_is_vector_track_running 
goto_if_false @FINALEC_2591
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2515.4819 {fromY} -1282.265 {fromZ} 35.713 {toX} 2515.4819 {toY} -1283.1 {toZ} 35.713 {time} 4000 {ease} False
camera_set_vector_track 2514.946 {fromY} -1282.265 {fromZ} 35.6876 {toX} 2515.719 {toY} -1282.136 {toZ} 35.6959 {time} 4000 {ease} False
128@ = 18

:FINALEC_2591
if 
  128@ == 18
goto_if_false @FINALEC_2661
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_2661
if 
  TIMERA > 4999
goto_if_false @FINALEC_2661
set_playback_speed 152@ {speed} 0.75
128@ = 19

:FINALEC_2661
if 
  128@ == 19
goto_if_false @FINALEC_2715
if 
  TIMERA > 6000
goto_if_false @FINALEC_2715
task_enter_car_as_driver $scplayer {vehicle} 153@ {time} -1
128@ = 20

:FINALEC_2715
if 
  128@ == 20
goto_if_false @FINALEC_3282
if 
  TIMERA > 10500
goto_if_false @FINALEC_3282
if 
  is_char_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_3282
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
151@ = 1
clear_prints 
print_now 'RM4_41' {time} 8000 {flag} 1
print 'RM4_42' {time} 5000 {flag} 1
set_ped_density_multiplier 0.2
mark_car_as_no_longer_needed $sweet_car
mark_model_as_no_longer_needed 492
167@ = create_object #LA_FUCKCAR2 {x} 2597.3601 {y} -1044.735 {z} 69.196
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 0.0
set_object_rotation 167@ {x} 0.0 {y} 180.0 {z} 0.0
168@ = create_object #LA_FUCKCAR1 {x} 2598.7 {y} -1050.9399 {z} 69.23
set_object_heading 168@ {heading} 180.0
set_object_dynamic 168@ {state} True
44@ = create_char PedType.Mission1 {modelId} 109 {x} 2600.99 {y} -1050.01 {z} 69.04
set_char_heading 44@ {heading} 274.892
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
45@ = create_char PedType.Mission1 {modelId} 109 {x} 2597.21 {y} -1040.14 {z} 69.48
set_char_heading 45@ {heading} 274.892
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
46@ = create_char PedType.Mission1 {modelId} 109 {x} 2604.991 {y} -1038.172 {z} 69.619
set_char_heading 46@ {heading} 274.892
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 46@ {state} True
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
61@ = start_script_fire 2598.54 {y} -1044.53 {z} 68.5 {propagation} 0 {size} 3
62@ = start_script_fire 2600.99 {y} -1050.01 {z} 69.04 {propagation} 0 {size} 3
63@ = start_script_fire 2599.8799 {y} -1052.4 {z} 68.06 {propagation} 0 {size} 3
128@ = 21

:FINALEC_3282
if 
  128@ == 21
goto_if_false @FINALEC_3374
stop_playback_recorded_car 152@
start_playback_recorded_car 152@ {path} 289
115@ = add_blip_for_char $sweet
set_blip_as_friendly 115@ {state} True
change_blip_display 115@ {display} BlipDisplay.BlipOnly
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot1
203@ = 0
204@ = 0
191@ = 1
128@ = 22

:FINALEC_3374
if 
  190@ == 1
goto_if_false @FINALEC_3513
if 
  is_char_playing_anim $sweet {animationName} "FIN_JUMP_ON"
goto_if_false @FINALEC_3513
164@ = get_char_anim_current_time $sweet {animationName} "FIN_JUMP_ON"
if 
  164@ == 1.0
goto_if_false @FINALEC_3513
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_3513
if 
  128@ > 13
goto_if_false @FINALEC_3751
if 
  151@ == 0
goto_if_false @FINALEC_3751
gosub @FINALEC_56977
if 
  203@ == 0
goto_if_false @FINALEC_3621
if 
  204@ == 0
goto_if_false @FINALEC_3621
set_lvar_int_to_constant 187@ = 14816
set_lvar_text_label 188@s = 'ROT4_HA'
gosub @FINALEC_56935

:FINALEC_3621
if 
  203@ == 1
goto_if_false @FINALEC_3686
if 
  204@ == 0
goto_if_false @FINALEC_3686
set_lvar_int_to_constant 187@ = 14817
set_lvar_text_label 188@s = 'ROT4_HB'
gosub @FINALEC_56935

:FINALEC_3686
if 
  203@ == 2
goto_if_false @FINALEC_3751
if 
  204@ == 0
goto_if_false @FINALEC_3751
set_lvar_int_to_constant 187@ = 14884
set_lvar_text_label 188@s = 'ROT4_DB'
gosub @FINALEC_56935

:FINALEC_3751
if or
  191@ == 1
  191@ == 2
goto_if_false @FINALEC_3806
if 
  is_car_dead 153@
goto_if_false @FINALEC_3806
201@ = 1
goto @FINALEC_57243

:FINALEC_3806
if 
  191@ == 1
goto_if_false @FINALEC_13336
if 
  not is_car_dead 152@
goto_if_false @FINALEC_13336
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_13336
if 
  not is_char_dead 49@
goto_if_false @FINALEC_13336
if 
  not is_car_dead 153@
goto_if_false @FINALEC_13336
if 
  not locate_char_any_means_car_2d $sweet {vehicle} 153@ {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @FINALEC_3965
if 
  not is_char_on_screen $sweet
goto_if_false @FINALEC_3965
202@ = 1
goto @FINALEC_57243
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEC_3965
if 
  200@ == 0
goto_if_false @FINALEC_4045
if 
  not is_char_sitting_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_4045
remove_blip 115@
115@ = add_blip_for_car 153@
set_blip_as_friendly 115@ {state} True
print_now 'RM4_48' {time} 5000 {flag} 1
200@ = 1

:FINALEC_4045
if 
  200@ == 1
goto_if_false @FINALEC_4157
if 
  is_char_sitting_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_4157
remove_blip 115@
115@ = add_blip_for_char $sweet
set_blip_as_friendly 115@ {state} True
change_blip_display 115@ {display} BlipDisplay.BlipOnly
if 
  198@ > 0
goto_if_false @FINALEC_4134
change_blip_display 115@ {display} BlipDisplay.Both

:FINALEC_4134
print_now 'RM4_49' {time} 5000 {flag} 1
200@ = 0

:FINALEC_4157
if 
  not is_car_dead 152@
goto_if_false @FINALEC_4513
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_4513
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_4513
switch_start 194@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FINALEC_4513 {caseNum1} 0 {caseLabel1} @FINALEC_4268 {caseNum2} 1 {caseLabel2} @FINALEC_4403 {caseNum3} 2 {caseLabel3} @FINALEC_4458 {caseNum4} -1 {caseLabel4} @FINALEC_4513 {caseNum5} -1 {caseLabel5} @FINALEC_4513 {caseNum6} -1 {caseLabel6} @FINALEC_4513 {caseNum7} -1 {caseLabel7} @FINALEC_4513

:FINALEC_4268
if 
  not locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @FINALEC_4323
set_playback_speed 152@ {speed} 0.5
194@ = 1
goto @FINALEC_4396

:FINALEC_4323
if 
  locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_4396
if or
  193@ <> 5
  193@ <> 1
goto_if_false @FINALEC_4396
set_playback_speed 152@ {speed} 1.3
194@ = 2

:FINALEC_4396
goto @FINALEC_4513

:FINALEC_4403
if 
  locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 55.0 {yRadius} 55.0 {drawSphere} False
goto_if_false @FINALEC_4451
set_playback_speed 152@ {speed} 1.0
194@ = 0

:FINALEC_4451
goto @FINALEC_4513

:FINALEC_4458
if 
  not locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_4506
set_playback_speed 152@ {speed} 1.0
194@ = 0

:FINALEC_4506
goto @FINALEC_4513

:FINALEC_4513
if 
  not is_char_dead 158@
goto_if_false @FINALEC_6621
if 
  196@ == 1
goto_if_false @FINALEC_4624
$player_x, $player_y, $player_z = get_car_coordinates 152@
$player_z -= 15.0
warp_char_from_car_to_coord 158@ {x} $player_x {y} $player_y {z} $player_z
attach_char_to_car 158@ {vehicle} 152@ {xOffset} 0.0 {yOffset} 0.656 {zOffset} 2.408 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
196@ = 2

:FINALEC_4624
if 
  196@ == 2
goto_if_false @FINALEC_4704
open_car_door 152@ {door} CarDoor.RightFrontDoor
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 3

:FINALEC_4704
if 
  196@ == 3
goto_if_false @FINALEC_4911
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_4911
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_4911
detach_char_from_car 158@
attach_char_to_car 158@ {vehicle} 152@ {xOffset} -0.014 {yOffset} -7.4 {zOffset} -999.253 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_CLIMBOUT2" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
198@ = 1
196@ = 4

:FINALEC_4911
if 
  196@ == 4
goto_if_false @FINALEC_5088
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_CLIMBOUT2"
goto_if_false @FINALEC_5088
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_CLIMBOUT2"
if 
  170@ == 1.0
goto_if_false @FINALEC_5088
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_STOMP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
print_now 'RM4_43' {time} 7000 {flag} 1
196@ = 5

:FINALEC_5088
if 
  196@ == 5
goto_if_false @FINALEC_5175
if 
  TIMERB > 499
goto_if_false @FINALEC_5175
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_SLIP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 6

:FINALEC_5175
if 
  196@ == 6
goto_if_false @FINALEC_5320
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_STOMP"
goto_if_false @FINALEC_5320
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_STOMP"
if 
  170@ == 1.0
goto_if_false @FINALEC_5320
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 7

:FINALEC_5320
if 
  196@ == 7
goto_if_false @FINALEC_5470
if 
  is_char_playing_anim $sweet {animationName} "FIN_HANG_SLIP"
goto_if_false @FINALEC_5470
164@ = get_char_anim_current_time $sweet {animationName} "FIN_HANG_SLIP"
if 
  164@ == 1.0
goto_if_false @FINALEC_5470
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
196@ = 8

:FINALEC_5470
if 
  196@ == 8
goto_if_false @FINALEC_5640
if 
  TIMERB > 750
goto_if_false @FINALEC_5640
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_LOOP"
goto_if_false @FINALEC_5640
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_LOOP"
if 
  170@ == 1.0
goto_if_false @FINALEC_5640
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_STOMP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
196@ = 5

:FINALEC_5640
if 
  198@ == 1
goto_if_false @FINALEC_5773
if 
  TIMERA > 8999
goto_if_false @FINALEC_5773
if 
  does_blip_exist 115@
goto_if_false @FINALEC_5700
change_blip_display 115@ {display} BlipDisplay.Both

:FINALEC_5700
$escapetimer_fc = 15
cset_var_float_to_var_int $gripbar_fc =# $escapetimer_fc
$gripbar_fc *= 100.0
$gripbar_fc /= 15.0
cset_var_int_to_var_float $fgripbardisplay_fc =# $gripbar_fc
display_onscreen_counter_with_string $fgripbardisplay_fc {display} CounterDisplay.Bar {text} 'RM4_47'
TIMERA = 0
198@ = 2

:FINALEC_5773
if 
  198@ == 2
goto_if_false @FINALEC_5831
if 
  TIMERA > 999
goto_if_false @FINALEC_5831
$escapetimer_fc -= 1
TIMERA = 0
198@ = 3

:FINALEC_5831
if 
  198@ == 3
goto_if_false @FINALEC_5889
if 
  TIMERA > 999
goto_if_false @FINALEC_5889
$escapetimer_fc -= 1
TIMERA = 0
198@ = 4

:FINALEC_5889
if 
  198@ == 4
goto_if_false @FINALEC_5954
if 
  TIMERA > 999
goto_if_false @FINALEC_5954
$escapetimer_fc -= 1
TIMERA = 0
set_car_density_multiplier 0.0
198@ = 5

:FINALEC_5954
if 
  198@ == 5
goto_if_false @FINALEC_6567
if 
  TIMERA > 999
goto_if_false @FINALEC_6012
$escapetimer_fc -= 1
205@ = 4
TIMERA = 0

:FINALEC_6012
if 
  0 >= $escapetimer_fc
goto_if_false @FINALEC_6155
$escapetimer_fc = 0
196@ = 10
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
detach_char_from_car $sweet
set_char_collision $sweet {state} True
task_play_anim_non_interruptable $sweet {animationName} "FIN_LAND_DIE" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
TIMERA = 0
198@ = 6

:FINALEC_6155
if 
  $escapetimer_fc > 0
goto_if_false @FINALEC_6567
$player_x, $player_y, $player_z = get_char_coordinates $sweet
$player_z -= 1.0
if 
  locate_char_any_means_3d $scplayer {x} $player_x {y} $player_y {z} $player_z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEC_6567
clear_onscreen_counter $escapetimer_fc
171@ = 4.0
detach_char_from_car $sweet
181@, 182@, 183@ = get_char_coordinates $sweet
set_char_collision $sweet {state} False
183@ -= 1.0
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 181@ {y} 182@ {z} 183@
task_play_anim_non_interruptable $sweet {animationName} "FIN_LET_GO" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 0
if 
  not is_car_dead 153@
goto_if_false @FINALEC_6567
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_6567
if 
  not is_car_dead 152@
goto_if_false @FINALEC_6567
181@, 182@, 183@ = get_char_coordinates $sweet
175@, 176@, 177@ = get_offset_from_car_in_world_coords 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5
set_lvar_float_to_lvar_float 172@ = 181@
sub_float_lvar_from_float_lvar 172@ -= 175@
set_lvar_float_to_lvar_float 173@ = 182@
sub_float_lvar_from_float_lvar 173@ -= 176@
set_lvar_float_to_lvar_float 174@ = 183@
sub_float_lvar_from_float_lvar 174@ -= 177@
set_lvar_float_to_lvar_float 178@ = 172@
div_float_lvar_by_float_lvar 178@ /= 171@
set_lvar_float_to_lvar_float 179@ = 173@
div_float_lvar_by_float_lvar 179@ /= 171@
set_lvar_float_to_lvar_float 180@ = 174@
div_float_lvar_by_float_lvar 180@ /= 171@
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
191@ = 2

:FINALEC_6567
if 
  198@ > 1
goto_if_false @FINALEC_6621
cset_var_float_to_var_int $gripbar_fc =# $escapetimer_fc
$gripbar_fc *= 100.0
$gripbar_fc /= 15.0
cset_var_int_to_var_float $fgripbardisplay_fc =# $gripbar_fc

:FINALEC_6621
if 
  198@ == 6
goto_if_false @FINALEC_6678
if 
  TIMERA > 2000
goto_if_false @FINALEC_6678
198@ = 7
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
goto @FINALEC_57243

:FINALEC_6678
if 
  199@ == 1
goto_if_false @FINALEC_6748
if 
  locate_car_2d 152@ {x} 2003.29 {y} -1097.0 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6748
set_car_density_multiplier 1.0
199@ = 2

:FINALEC_6748
if 
  199@ == 1
goto_if_false @FINALEC_6818
if 
  locate_car_2d 152@ {x} 2112.8401 {y} -1406.01 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6818
set_car_density_multiplier 0.0
199@ = 2

:FINALEC_6818
if 
  199@ == 2
goto_if_false @FINALEC_6888
if 
  locate_car_2d 152@ {x} 2112.51 {y} -1631.72 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6888
set_car_density_multiplier 0.9
199@ = 3

:FINALEC_6888
if 
  195@ == 1
goto_if_false @FINALEC_7007
if 
  has_model_loaded 538
goto_if_false @FINALEC_6995
157@ = create_mission_train 15 {x} 2135.04 {y} -1953.25 {z} 12.84 {direction} False
set_train_speed 157@ {speed} 30.0
set_train_cruise_speed 157@ {speed} 12.5
set_car_proofs 157@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
195@ = 2
goto @FINALEC_7007

:FINALEC_6995
mark_model_as_no_longer_needed 538
195@ = 2

:FINALEC_7007
if 
  195@ == 2
goto_if_false @FINALEC_7114
if 
  not is_car_dead 157@
goto_if_false @FINALEC_7100
if 
  locate_car_2d 157@ {x} 2226.6399 {y} -1603.62 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_7093
mark_mission_trains_as_no_longer_needed 
mark_model_as_no_longer_needed 538
195@ = 3

:FINALEC_7093
goto @FINALEC_7114

:FINALEC_7100
mark_mission_trains_as_no_longer_needed 
mark_model_as_no_longer_needed 538
195@ = 3

:FINALEC_7114
if 
  195@ == 3
goto_if_false @FINALEC_7141
delete_all_trains 
195@ = 4

:FINALEC_7141
if 
  193@ == 0
goto_if_false @FINALEC_8900
if 
  192@ == 0
goto_if_false @FINALEC_7791
if 
  locate_car_2d 152@ {x} 2339.1101 {y} -1038.88 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_7791
205@ = 1
remove_all_script_fires 
mark_object_as_no_longer_needed 167@
mark_object_as_no_longer_needed 168@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2246.3621 {y} -1059.161 {z} 61.2275
set_char_heading 34@ {heading} 255.0
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 34@ {state} True
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
37@ = create_char PedType.Mission1 {modelId} 109 {x} 2212.2161 {y} -1001.041 {z} 67.22
set_char_heading 37@ {heading} 183.4
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 37@ {state} True
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
38@ = create_char PedType.Mission1 {modelId} 109 {x} 2197.5581 {y} -1000.418 {z} 67.367
set_char_heading 38@ {heading} 209.7
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 38@ {state} True
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
39@ = create_char PedType.Mission1 {modelId} 109 {x} 2188.512 {y} -1020.8 {z} 70.33
set_char_heading 39@ {heading} 287.39
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 39@ {state} True
set_char_accuracy 39@ {accuracy} 90
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
165@ = create_object #LA_FUCKCAR2 {x} 2171.5701 {y} -1008.76 {z} 62.56
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 168.0
set_object_rotation 165@ {x} 0.0 {y} 90.0 {z} 0.0
61@ = start_script_fire 2172.5701 {y} -1008.76 {z} 61.56 {propagation} 0 {size} 3
62@ = start_script_fire 2171.5701 {y} -1007.76 {z} 62.56 {propagation} 0 {size} 3
40@ = create_char PedType.Mission1 {modelId} 109 {x} 2172.9099 {y} -1001.84 {z} 62.83
set_char_heading 40@ {heading} 258.18
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 40@ {state} True
set_lvar_int_to_lvar_int 102@ = 40@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
192@ = 1

:FINALEC_7791
if 
  192@ == 1
goto_if_false @FINALEC_8900
if 
  locate_car_2d 152@ {x} 2252.01 {y} -1046.41 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_8900
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_7923
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_7923
if 
  not is_point_on_screen 2600.99 {y} -1050.01 {z} 69.04 {radius} 10.0
goto_if_false @FINALEC_7981
delete_object 167@
delete_object 168@
delete_char 44@
delete_char 45@
delete_char 46@

:FINALEC_7981
166@ = create_object #LA_FUCKCAR2 {x} 2033.39 {y} -938.0 {z} 39.99
set_object_heading 166@ {heading} 24.8
set_object_dynamic 166@ {state} True
set_object_rotation 166@ {x} 0.0 {y} 0.0 {z} 0.0
63@ = start_script_fire 2033.39 {y} -938.0 {z} 38.99 {propagation} 0 {size} 3
64@ = start_script_fire 2032.39 {y} -937.0 {z} 38.99 {propagation} 0 {size} 3
41@ = create_char PedType.Mission1 {modelId} 109 {x} 2035.09 {y} -979.33 {z} 40.9
set_char_heading 41@ {heading} 263.9
set_char_decision_maker 41@ {handleOrTemplate} 97@
give_weapon_to_char 41@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 41@ {state} True
set_lvar_int_to_lvar_int 102@ = 41@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
42@ = create_char PedType.Mission1 {modelId} 109 {x} 2053.8101 {y} -983.87 {z} 45.33
set_char_heading 42@ {heading} 287.5
set_char_decision_maker 42@ {handleOrTemplate} 97@
give_weapon_to_char 42@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 42@ {state} True
set_lvar_int_to_lvar_int 102@ = 42@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
43@ = create_char PedType.Mission1 {modelId} 109 {x} 2089.9299 {y} -971.49 {z} 54.556
set_char_heading 43@ {heading} 219.88
set_char_decision_maker 43@ {handleOrTemplate} 97@
give_weapon_to_char 43@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 43@ {state} True
set_lvar_int_to_lvar_int 102@ = 43@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
44@ = create_char PedType.Mission1 {modelId} 109 {x} 2026.056 {y} -971.93 {z} 41.5
set_char_heading 44@ {heading} 219.88
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
45@ = create_char PedType.Mission1 {modelId} 109 {x} 1989.918 {y} -1017.65 {z} 34.05
set_char_heading 45@ {heading} 317.6
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
46@ = create_char PedType.Mission1 {modelId} 109 {x} 1999.8 {y} -1018.65 {z} 35.33
set_char_heading 46@ {heading} 317.6
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 46@ {state} True
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
47@ = create_char PedType.Mission1 {modelId} 109 {x} 1970.674 {y} -1088.046 {z} 24.163
set_char_heading 47@ {heading} 345.24
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 47@ {state} True
set_lvar_int_to_lvar_int 102@ = 47@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
48@ = create_char PedType.Mission1 {modelId} 109 {x} 1977.545 {y} -1096.913 {z} 24.35
set_char_heading 48@ {heading} 24.331
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 48@ {state} True
set_lvar_int_to_lvar_int 102@ = 48@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
167@ = create_object #LA_FUCKCAR1 {x} 1975.3101 {y} -1099.27 {z} 24.118
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 270.894
set_object_rotation 167@ {x} 0.0 {y} 180.0 {z} 0.0
remove_script_fire 61@
remove_script_fire 62@
61@ = start_script_fire 1975.3101 {y} -1099.27 {z} 24.118 {propagation} 0 {size} 3
62@ = start_script_fire 1977.0 {y} -1098.0 {z} 24.0 {propagation} 0 {size} 3
192@ = 0
199@ = 1
193@ = 1

:FINALEC_8900
if 
  193@ == 1
goto_if_false @FINALEC_10340
if 
  192@ == 0
goto_if_false @FINALEC_9226
if 
  locate_car_2d 152@ {x} 2073.51 {y} -1260.1801 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_9226
205@ = 2
mark_object_as_no_longer_needed 165@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
169@ = create_object #LA_FUCKCAR2 {x} 2117.46 {y} -1490.22 {z} 22.6
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 276.0
44@ = create_char PedType.Mission1 {modelId} 102 {x} 2108.6001 {y} -1491.5 {z} 23.85
set_char_heading 44@ {heading} 340.0
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
45@ = create_char PedType.Mission1 {modelId} 102 {x} 2116.48 {y} -1492.219 {z} 22.85
set_char_heading 45@ {heading} 340.0
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
192@ = 1

:FINALEC_9226
if 
  192@ == 1
goto_if_false @FINALEC_10340
if 
  locate_car_2d 152@ {x} 2268.9399 {y} -1260.26 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10340
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_9358
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_9358
remove_all_script_fires 
mark_model_as_no_longer_needed 109
mark_object_as_no_longer_needed 166@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_object_as_no_longer_needed 167@
delete_object 165@
delete_char 34@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_object 166@
delete_char 41@
request_model 538
165@ = create_object #LA_FUCKCAR1 {x} 2109.4919 {y} -1531.4 {z} 22.82
set_object_heading 165@ {heading} 276.274
set_object_dynamic 165@ {state} True
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2110.3899 {y} -1529.04 {z} 22.928
set_char_heading 34@ {heading} 10.19
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 34@ {state} True
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
35@ = create_char PedType.Mission1 {modelId} 102 {x} 2118.376 {y} -1531.8 {z} 23.189
set_char_heading 35@ {heading} 340.0
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 35@ {state} True
set_lvar_int_to_lvar_int 102@ = 35@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
61@ = start_script_fire 2116.7 {y} -1530.8459 {z} 22.99 {propagation} 0 {size} 3
62@ = start_script_fire 2115.5 {y} -1530.282 {z} 22.97 {propagation} 0 {size} 2
63@ = start_script_fire 2114.0601 {y} -1529.88 {z} 22.96 {propagation} 0 {size} 3
64@ = start_script_fire 2112.3 {y} -1529.92 {z} 22.9 {propagation} 0 {size} 2
168@ = create_object #LA_FUCKCAR2 {x} 2115.75 {y} -1620.6899 {z} 22.11
set_object_dynamic 168@ {state} True
set_object_heading 168@ {heading} 95.114
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2111.5701 {y} -1585.135 {z} 25.1
set_char_heading 36@ {heading} 12.0
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 36@ {state} True
set_lvar_int_to_lvar_int 102@ = 36@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
37@ = create_char PedType.Mission1 {modelId} 102 {x} 2104.4871 {y} -1586.327 {z} 25.07
set_char_heading 37@ {heading} 306.26
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 37@ {state} True
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
65@ = start_script_fire 2108.28 {y} -1637.23 {z} 18.3 {propagation} 0 {size} 3
66@ = start_script_fire 2110.6499 {y} -1637.9301 {z} 18.36 {propagation} 0 {size} 2
67@ = start_script_fire 2112.1799 {y} -1637.2 {z} 18.52 {propagation} 0 {size} 1
68@ = start_script_fire 2115.3601 {y} -1637.4301 {z} 18.47 {propagation} 0 {size} 2
69@ = start_script_fire 2117.3899 {y} -1636.75 {z} 18.62 {propagation} 0 {size} 3
70@ = start_script_fire 2107.9099 {y} -1586.498 {z} 24.8 {propagation} 0 {size} 3
71@ = start_script_fire 2110.28 {y} -1586.29 {z} 24.89 {propagation} 0 {size} 2
72@ = start_script_fire 2112.7549 {y} -1586.0811 {z} 24.8 {propagation} 0 {size} 2
38@ = create_char PedType.Mission1 {modelId} 102 {x} 2094.0 {y} -1763.0 {z} 12.5
set_char_heading 38@ {heading} 322.0
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 38@ {state} True
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
39@ = create_char PedType.Mission1 {modelId} 102 {x} 2088.0 {y} -1761.0 {z} 12.5
set_char_heading 39@ {heading} 306.26
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 39@ {state} True
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123
192@ = 0
193@ = 2

:FINALEC_10340
if 
  193@ == 2
goto_if_false @FINALEC_10654
if 
  192@ == 0
goto_if_false @FINALEC_10499
if 
  locate_car_2d 152@ {x} 2203.6899 {y} -1724.39 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10499
195@ = 1
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 46@
delete_char 47@
delete_char 48@
delete_object 167@
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
mark_model_as_no_longer_needed 344
set_car_density_multiplier 1.0
192@ = 1

:FINALEC_10499
if 
  192@ == 1
goto_if_false @FINALEC_10654
if 
  locate_car_2d 152@ {x} 2202.3201 {y} -1890.45 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10654
205@ = 3
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_10638
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_10638
remove_all_script_fires 
192@ = 0
193@ = 3

:FINALEC_10654
if 
  193@ == 3
goto_if_false @FINALEC_10938
if 
  192@ == 0
goto_if_false @FINALEC_10735
if 
  locate_car_2d 152@ {x} 2115.45 {y} -1954.4 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10735
192@ = 1

:FINALEC_10735
if 
  192@ == 1
goto_if_false @FINALEC_10938
if 
  locate_car_2d 152@ {x} 2179.1899 {y} -2017.63 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10938
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_10867
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_10867
remove_all_script_fires 
mark_object_as_no_longer_needed 165@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_object_as_no_longer_needed 169@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_object_as_no_longer_needed 168@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
192@ = 0
193@ = 4

:FINALEC_10938
if 
  193@ == 4
goto_if_false @FINALEC_11227
if 
  192@ == 0
goto_if_false @FINALEC_11074
if 
  locate_car_2d 152@ {x} 2318.03 {y} -2165.9399 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_11074
delete_object 165@
delete_char 34@
delete_char 35@
delete_object 169@
delete_char 44@
delete_char 45@
delete_object 168@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
192@ = 1

:FINALEC_11074
if 
  192@ == 1
goto_if_false @FINALEC_11227
if 
  locate_car_2d 152@ {x} 2452.6001 {y} -2170.27 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_11227
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_11206
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_11206
196@ = 1
192@ = 0
193@ = 5

:FINALEC_11227
if 
  190@ == 1
goto_if_false @FINALEC_11366
if 
  is_char_playing_anim $sweet {animationName} "FIN_JUMP_ON"
goto_if_false @FINALEC_11366
164@ = get_char_anim_current_time $sweet {animationName} "FIN_JUMP_ON"
if 
  164@ == 1.0
goto_if_false @FINALEC_11366
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_11366
if 
  190@ > 1
goto_if_false @FINALEC_12083
160@ = get_car_heading 152@
161@ = get_door_angle_ratio 152@ {door} 6
161@ -= 0.5
161@ *= 2.0
161@ *= 10.0
add_float_lvar_to_float_lvar 161@ += 160@
set_lvar_float_to_lvar_float 163@ = 161@
sub_float_lvar_from_float_lvar 163@ -= 162@
if 
  -180.0 > 163@
goto_if_false @FINALEC_11487
163@ += 360.0

:FINALEC_11487
if 
  163@ > 180.0
goto_if_false @FINALEC_11518
163@ += -360.0

:FINALEC_11518
set_lvar_float_to_lvar_float 162@ = 161@
if 
  196@ == 0
goto_if_false @FINALEC_12083
if 
  192@ == 0
goto_if_false @FINALEC_11823
if 
  -1.5 > 163@
goto_if_false @FINALEC_11655
if 
  190@ <> 4
goto_if_false @FINALEC_11648
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_L" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 4

:FINALEC_11648
goto @FINALEC_11816

:FINALEC_11655
if 
  163@ > 1.5
goto_if_false @FINALEC_11748
if 
  190@ <> 3
goto_if_false @FINALEC_11741
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_R" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 3

:FINALEC_11741
goto @FINALEC_11816

:FINALEC_11748
if 
  190@ <> 2
goto_if_false @FINALEC_11816
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 2.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_11816
goto @FINALEC_12083

:FINALEC_11823
if 
  -1.5 > 163@
goto_if_false @FINALEC_11918
if 
  190@ <> 4
goto_if_false @FINALEC_11911
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_L" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 4

:FINALEC_11911
goto @FINALEC_12083

:FINALEC_11918
if 
  163@ > 1.5
goto_if_false @FINALEC_12013
if 
  190@ <> 3
goto_if_false @FINALEC_12006
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_R" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 3

:FINALEC_12006
goto @FINALEC_12083

:FINALEC_12013
if 
  190@ <> 2
goto_if_false @FINALEC_12083
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_LOOP" {animationFile} "FINALE" {blendSpeed} 2.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_12083
if 
  2 > 191@
goto_if_false @FINALEC_13336
gosub @FINALEC_56977
if 
  203@ == 0
goto_if_false @FINALEC_12204
if 
  204@ == 0
goto_if_false @FINALEC_12204
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_12204
set_lvar_int_to_constant 187@ = 14885
set_lvar_text_label 188@s = 'ROT4_EA'
gosub @FINALEC_56935

:FINALEC_12204
if 
  205@ == 1
goto_if_false @FINALEC_12343
if 
  204@ == 0
goto_if_false @FINALEC_12343
if 
  1 > 203@
goto_if_false @FINALEC_12265
203@ = 1

:FINALEC_12265
if 
  203@ == 1
goto_if_false @FINALEC_12343
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12343
set_lvar_int_to_constant 187@ = 14818
set_lvar_text_label 188@s = 'ROT4_HC'
gosub @FINALEC_56935

:FINALEC_12343
if 
  203@ == 2
goto_if_false @FINALEC_12439
if 
  204@ == 0
goto_if_false @FINALEC_12439
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12439
set_lvar_int_to_constant 187@ = 14810
set_lvar_text_label 188@s = 'ROT4_FA'
gosub @FINALEC_56935

:FINALEC_12439
if 
  203@ == 3
goto_if_false @FINALEC_12535
if 
  204@ == 0
goto_if_false @FINALEC_12535
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12535
set_lvar_int_to_constant 187@ = 14827
set_lvar_text_label 188@s = 'ROT4_MB'
gosub @FINALEC_56935

:FINALEC_12535
if 
  204@ == 0
goto_if_false @FINALEC_12674
if 
  205@ == 2
goto_if_false @FINALEC_12674
if 
  4 > 203@
goto_if_false @FINALEC_12596
203@ = 4

:FINALEC_12596
if 
  203@ == 4
goto_if_false @FINALEC_12674
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12674
set_lvar_int_to_constant 187@ = 14824
set_lvar_text_label 188@s = 'ROT4_KJ'
gosub @FINALEC_56935

:FINALEC_12674
if 
  203@ == 5
goto_if_false @FINALEC_12770
if 
  204@ == 0
goto_if_false @FINALEC_12770
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12770
set_lvar_int_to_constant 187@ = 14886
set_lvar_text_label 188@s = 'ROT4_EB'
gosub @FINALEC_56935

:FINALEC_12770
if 
  204@ == 0
goto_if_false @FINALEC_12909
if 
  205@ == 3
goto_if_false @FINALEC_12909
if 
  6 > 203@
goto_if_false @FINALEC_12831
203@ = 6

:FINALEC_12831
if 
  203@ == 6
goto_if_false @FINALEC_12909
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12909
set_lvar_int_to_constant 187@ = 14815
set_lvar_text_label 188@s = 'ROT4_GB'
gosub @FINALEC_56935

:FINALEC_12909
if 
  204@ == 0
goto_if_false @FINALEC_13005
if 
  203@ == 7
goto_if_false @FINALEC_13005
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13005
set_lvar_int_to_constant 187@ = 14811
set_lvar_text_label 188@s = 'ROT4_FB'
gosub @FINALEC_56935

:FINALEC_13005
if 
  204@ == 0
goto_if_false @FINALEC_13144
if 
  205@ == 4
goto_if_false @FINALEC_13144
if 
  8 > 203@
goto_if_false @FINALEC_13066
203@ = 8

:FINALEC_13066
if 
  203@ == 8
goto_if_false @FINALEC_13144
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13144
set_lvar_int_to_constant 187@ = 14902
set_lvar_text_label 188@s = 'ROT4_KB'
gosub @FINALEC_56935

:FINALEC_13144
if 
  204@ == 0
goto_if_false @FINALEC_13240
if 
  203@ == 9
goto_if_false @FINALEC_13240
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13240
set_lvar_int_to_constant 187@ = 14819
set_lvar_text_label 188@s = 'ROT4_KD'
gosub @FINALEC_56935

:FINALEC_13240
if 
  204@ == 0
goto_if_false @FINALEC_13336
if 
  203@ == 10
goto_if_false @FINALEC_13336
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13336
set_lvar_int_to_constant 187@ = 14820
set_lvar_text_label 188@s = 'ROT4_KE'
gosub @FINALEC_56935

:FINALEC_13336
if 
  not is_car_dead 153@
goto_if_false @FINALEC_13938
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_13938
if 
  not is_car_dead 152@
goto_if_false @FINALEC_13938
if 
  191@ == 2
goto_if_false @FINALEC_13669
175@, 176@, 177@ = get_offset_from_car_in_world_coords 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5
171@ -= 1.0
sub_float_lvar_from_float_lvar 172@ -= 178@
sub_float_lvar_from_float_lvar 173@ -= 179@
sub_float_lvar_from_float_lvar 174@ -= 180@
set_lvar_float_to_lvar_float 181@ = 175@
add_float_lvar_to_float_lvar 181@ += 172@
set_lvar_float_to_lvar_float 182@ = 176@
add_float_lvar_to_float_lvar 182@ += 173@
set_lvar_float_to_lvar_float 183@ = 177@
add_float_lvar_to_float_lvar 183@ += 174@
183@ -= 1.0
set_char_coordinates $sweet {x} 181@ {y} 182@ {z} 183@
if 
  171@ == 0.0
goto_if_false @FINALEC_13669
attach_char_to_car $sweet {vehicle} 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable $sweet {animationName} "FIN_LAND_CAR" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  does_blip_exist 115@
goto_if_false @FINALEC_13655
change_blip_display 115@ {display} BlipDisplay.BlipOnly

:FINALEC_13655
TIMERA = 0
191@ = 3

:FINALEC_13669
if 
  191@ == 3
goto_if_false @FINALEC_13830
if 
  is_char_playing_anim $sweet {animationName} "FIN_LAND_CAR"
goto_if_false @FINALEC_13830
164@ = get_char_anim_current_time $sweet {animationName} "FIN_LAND_CAR"
if 
  164@ == 1.0
goto_if_false @FINALEC_13830
report_mission_audio_event_at_position 181@ {y} 182@ {z} 183@ {soundId} ScriptSound.SoundBonnetDent
task_play_anim_non_interruptable $sweet {animationName} "FIN_CLIMB_IN" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
191@ = 4

:FINALEC_13830
if 
  4 > 191@
goto_if_false @FINALEC_13938
if 
  191@ > 1
goto_if_false @FINALEC_13938
gosub @FINALEC_56977
if 
  204@ == 0
goto_if_false @FINALEC_13938
if 
  203@ == 0
goto_if_false @FINALEC_13938
set_lvar_int_to_constant 187@ = 14890
set_lvar_text_label 188@s = 'ROT4_MC'
gosub @FINALEC_56935

:FINALEC_13938
if 
  $carhealth_fc == 0
goto_if_false @FINALEC_16416
if 
  not is_car_dead 153@
goto_if_false @FINALEC_16416
if 
  not is_car_dead 152@
goto_if_false @FINALEC_16416
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_16416
if 
  191@ == 4
goto_if_false @FINALEC_14219
if 
  TIMERA > 2800
goto_if_false @FINALEC_14219
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
set_fixed_camera_position 2908.949 {y} -1565.179 {z} 15.6092 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2908.9961 {y} -1565.014 {z} 14.624 {switchStyle} SwitchType.JumpCut
set_interpolation_parameters 0.0 {time} 1500
force_car_lights 152@ {lightMode} CarLights.ForceOff
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_onscreen_counter $fgripbardisplay_fc
delete_char 158@
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_14186
stop_playback_recorded_car 152@

:FINALEC_14186
start_playback_recorded_car 152@ {path} 290
set_playback_speed 152@ {speed} 0.9
start_playback_recorded_car 153@ {path} 291
191@ = 5

:FINALEC_14219
if 
  191@ == 5
goto_if_false @FINALEC_15129
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_15129
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_15129
pause_playback_recorded_car 152@
pause_playback_recorded_car 153@
request_car_recording 230
request_car_recording 231
request_car_recording 232
request_car_recording 233
request_car_recording 234
request_car_recording 235
request_car_recording 236
request_car_recording 237
request_car_recording 238
request_car_recording 239
request_car_recording 240
request_model 352
request_model 596
request_model 468
request_model 344
request_model 110
request_model 576
load_all_models_now 

:FINALEC_14365
if or
  not has_model_loaded 352
  not has_model_loaded 596
  not has_model_loaded 468
goto_if_false @FINALEC_14402
wait 0
goto @FINALEC_14365

:FINALEC_14402
if or
  not has_model_loaded 110
  not has_model_loaded 576
  not has_model_loaded 344
goto_if_false @FINALEC_14438
wait 0
goto @FINALEC_14402

:FINALEC_14438
wait 2000
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_14869
if 
  not is_car_dead 152@
goto_if_false @FINALEC_14869
if 
  not is_car_dead 153@
goto_if_false @FINALEC_14869
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z -= 10.0
if 
  is_char_in_any_car $scplayer
goto_if_false @FINALEC_14545
warp_char_from_car_to_coord $scplayer {x} $player_x {y} $player_y {z} $player_z

:FINALEC_14545
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
$player_x, $player_y, $player_z = get_char_coordinates $sweet
$player_z -= 10.0
if 
  is_char_in_any_car $sweet
goto_if_false @FINALEC_14618
warp_char_from_car_to_coord $sweet {x} $player_x {y} $player_y {z} $player_z
goto @FINALEC_14637

:FINALEC_14618
detach_char_from_car $sweet
set_char_coordinates $sweet {x} $player_x {y} $player_y {z} $player_z

:FINALEC_14637
warp_char_into_car $sweet {vehicle} 153@
warp_char_into_car_as_passenger $scplayer {handle} 153@ {seat} SeatId.BikeRear
158@ = create_char PedType.Mission1 {modelId} 280 {x} $player_x {y} $player_y {z} $player_z
set_char_decision_maker 158@ {handleOrTemplate} 97@
attach_char_to_car 158@ {vehicle} 152@ {xOffset} -0.014 {yOffset} -7.4 {zOffset} -999.253 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
control_movable_vehicle_part 152@ {range} 0.2
set_char_health 158@ {health} 1000
set_char_accuracy 158@ {accuracy} 50
set_lvar_int_to_lvar_int 102@ = 158@
gosub @FINALEC_57161
159@ = create_char PedType.Mission1 {modelId} 280 {x} $player_x {y} $player_y {z} $player_z
set_char_decision_maker 159@ {handleOrTemplate} 97@
attach_char_to_car 159@ {vehicle} 152@ {xOffset} 0.0 {yOffset} 0.656 {zOffset} 2.408 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
task_play_anim_non_interruptable 159@ {animationName} "FIN_COP1_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 159@ {health} 1000

:FINALEC_14869
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_14981
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ > 0.0
goto_if_false @FINALEC_14981
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 0.0

:FINALEC_14981
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_15083
task_play_anim_non_interruptable $sweet {animationName} "FIN_SWITCH_S" {animationFile} "FINALE2" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable $scplayer {animationName} "FIN_SWITCH_P" {animationFile} "FINALE2" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:FINALEC_15083
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15129
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15129
TIMERA = 0
191@ = 6

:FINALEC_15129
if 
  191@ == 6
goto_if_false @FINALEC_15444
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_15444
if 
  is_char_playing_anim $sweet {animationName} "FIN_SWITCH_S"
goto_if_false @FINALEC_15444
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_15444
170@ = get_char_anim_current_time $scplayer {animationName} "FIN_SWITCH_P"
if 
  170@ > 0.0
goto_if_false @FINALEC_15444
set_char_anim_speed $scplayer {animName} "FIN_SWITCH_P" {animSpeed} 0.0
170@ = get_char_anim_current_time $sweet {animationName} "FIN_SWITCH_S"
if 
  170@ > 0.0
goto_if_false @FINALEC_15444
set_char_anim_speed $sweet {animName} "FIN_SWITCH_S" {animSpeed} 0.0
if 
  not is_char_dead 159@
goto_if_false @FINALEC_15437
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_15437
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 0.0

:FINALEC_15437
191@ = 7

:FINALEC_15444
if 
  191@ == 7
goto_if_false @FINALEC_15557
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15557
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15557
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_15557
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_15557
unpause_playback_recorded_car 152@
unpause_playback_recorded_car 153@
force_car_lights 152@ {lightMode} CarLights.ForceOn
TIMERA = 0
191@ = 8

:FINALEC_15557
if 
  191@ == 8
goto_if_false @FINALEC_15652
if 
  TIMERA > 599
goto_if_false @FINALEC_15652
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15652
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15652
point_camera_at_point 2909.198 {y} -1564.303 {z} 15.1955 {switchStyle} SwitchType.Interpolation
191@ = 9

:FINALEC_15652
if 
  191@ == 9
goto_if_false @FINALEC_15744
if 
  TIMERA > 2500
goto_if_false @FINALEC_15744
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15744
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15744
restore_camera 
204@ = 0
203@ = 0
191@ = 10

:FINALEC_15744
if 
  191@ == 10
goto_if_false @FINALEC_15822
if 
  TIMERA > 4600
goto_if_false @FINALEC_15822
switch_widescreen False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
191@ = 11

:FINALEC_15822
if 
  191@ == 11
goto_if_false @FINALEC_15974
if 
  TIMERA > 5000
goto_if_false @FINALEC_15974
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_15974
if 
  is_char_playing_anim $sweet {animationName} "FIN_SWITCH_S"
goto_if_false @FINALEC_15974
set_char_anim_speed $scplayer {animName} "FIN_SWITCH_P" {animSpeed} 1.0
set_char_anim_speed $sweet {animName} "FIN_SWITCH_S" {animSpeed} 1.0
191@ = 12

:FINALEC_15974
if 
  191@ == 12
goto_if_false @FINALEC_16308
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_16308
170@ = get_char_anim_current_time $scplayer {animationName} "FIN_SWITCH_P"
if 
  170@ == 1.0
goto_if_false @FINALEC_16308
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 153@ {health} 90000
$health_fc = get_car_health 153@
$health_fc /= 200
display_onscreen_counter_with_string $health_fc {display} CounterDisplay.Bar {text} 'RM4_52'
if 
  not is_char_dead 158@
goto_if_false @FINALEC_16217
set_char_proofs 158@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False

:FINALEC_16217
if 
  not is_char_dead 159@
goto_if_false @FINALEC_16248
set_char_proofs 159@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:FINALEC_16248
196@ = 0
197@ = 1
$carhealth_fc = 1
$rails_fcflag = 1
191@ = 13
print_help 'RM4_54'
204@ = 0
203@ = 0

:FINALEC_16308
if 
  191@ > 10
goto_if_false @FINALEC_16416
if 
  13 > 191@
goto_if_false @FINALEC_16416
gosub @FINALEC_56977
if 
  204@ == 0
goto_if_false @FINALEC_16416
if 
  203@ == 0
goto_if_false @FINALEC_16416
set_lvar_int_to_constant 187@ = 14891
set_lvar_text_label 188@s = 'ROT4_ME'
gosub @FINALEC_56935

:FINALEC_16416
if 
  $carhealth_fc == 1
goto_if_false @FINALEC_30594
if 
  not is_car_dead 153@
goto_if_false @FINALEC_30594
if 
  not is_car_dead 152@
goto_if_false @FINALEC_30594
$health_fc = get_car_health 153@
$health_fc -= 12000
if 
  0 >= $health_fc
goto_if_false @FINALEC_16593
$health_fc = 0
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_16558
task_die $sweet

:FINALEC_16558
explode_car 153@
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57243
goto @FINALEC_16600

:FINALEC_16593
$health_fc /= 80

:FINALEC_16600
if 
  is_char_dead $sweet
goto_if_false @FINALEC_16639
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57243

:FINALEC_16639
if 
  5 > 196@
goto_if_false @FINALEC_17115
if 
  not is_char_dead 158@
goto_if_false @FINALEC_17094
if 
  196@ == 0
goto_if_false @FINALEC_16791
$igripbardisplay_fc = get_char_health 158@
if 
  970 > $igripbardisplay_fc
goto_if_false @FINALEC_16791
set_char_proofs 158@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_current_char_weapon 158@ {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SHOT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 1

:FINALEC_16791
if 
  196@ == 1
goto_if_false @FINALEC_16936
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_SHOT"
goto_if_false @FINALEC_16936
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_SHOT"
if 
  170@ == 1.0
goto_if_false @FINALEC_16936
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SWING" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 2

:FINALEC_16936
if 
  196@ == 3
goto_if_false @FINALEC_17010
detach_char_from_car 158@
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SHOT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
196@ = 4

:FINALEC_17010
if 
  196@ == 4
goto_if_false @FINALEC_17087
if 
  not locate_char_any_means_char_2d $scplayer {target} 158@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_17087
if 
  not is_char_on_screen 158@
goto_if_false @FINALEC_17087
mark_char_as_no_longer_needed 158@
196@ = 5

:FINALEC_17087
goto @FINALEC_17115

:FINALEC_17094
if 
  does_char_exist 158@
goto_if_false @FINALEC_17115
detach_char_from_car 158@

:FINALEC_17115
if 
  6 > 197@
goto_if_false @FINALEC_17852
if 
  not is_char_dead 159@
goto_if_false @FINALEC_17831
if 
  197@ == 1
goto_if_false @FINALEC_17238
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_17238
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 1.0
197@ = 2

:FINALEC_17238
if 
  197@ == 2
goto_if_false @FINALEC_17446
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_17446
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_17446
detach_char_from_car 159@
attach_char_to_car 159@ {vehicle} 152@ {xOffset} -0.991 {yOffset} -4.12 {zOffset} 0.297 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
task_play_anim_non_interruptable 159@ {animationName} "FIN_COP2_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 159@ {health} 1000
set_char_accuracy 159@ {accuracy} 5
197@ = 3

:FINALEC_17446
if 
  197@ == 3
goto_if_false @FINALEC_17641
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP2_CLIMBOUT"
goto_if_false @FINALEC_17641
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP2_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_17641
TIMERB = 0
$igripbardisplay_fc = get_char_health 159@
if 
  $igripbardisplay_fc > 950
goto_if_false @FINALEC_17596
set_char_health 159@ {health} 1100
goto @FINALEC_17604

:FINALEC_17596
set_char_health 159@ {health} 1050

:FINALEC_17604
set_lvar_int_to_lvar_int 102@ = 159@
set_char_proofs 159@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
gosub @FINALEC_57205
197@ = 4

:FINALEC_17641
if 
  197@ == 4
goto_if_false @FINALEC_17747
$igripbardisplay_fc = get_char_health 159@
if or
  1000 > $igripbardisplay_fc
  TIMERB > 60000
goto_if_false @FINALEC_17747
detach_char_from_car 159@
task_play_anim_non_interruptable 159@ {animationName} "KO_SKID_BACK" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
197@ = 5

:FINALEC_17747
if 
  197@ == 5
goto_if_false @FINALEC_17824
if 
  not locate_char_any_means_char_2d $scplayer {target} 159@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_17824
if 
  not is_char_on_screen 159@
goto_if_false @FINALEC_17824
mark_char_as_no_longer_needed 159@
197@ = 6

:FINALEC_17824
goto @FINALEC_17852

:FINALEC_17831
if 
  does_char_exist 159@
goto_if_false @FINALEC_17852
detach_char_from_car 159@

:FINALEC_17852
if 
  $finalerails_fcflag == 0
goto_if_false @FINALEC_18176
if 
  locate_car_2d 152@ {x} 2861.28 {y} -1298.8 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_18176
217@ = create_car 596 {x} 2816.01 {y} -1186.5601 {z} 23.95
set_car_heading 217@ {heading} 279.03
set_car_health 217@ {health} 400
set_car_only_damaged_by_player 217@ {state} True
154@ = create_char_inside_car 217@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 154@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 154@ {state} False
set_char_only_damaged_by_player 154@ {state} True
155@ = create_char_as_passenger 217@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 155@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 155@ {state} True
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 9999
218@ = create_car 596 {x} 2803.0 {y} -1183.0 {z} 26.0
set_car_heading 218@ {heading} 261.0
set_car_health 218@ {health} 600
set_car_only_damaged_by_player 218@ {state} True
156@ = create_char_inside_car 218@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 156@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 156@ {state} False
set_char_only_damaged_by_player 156@ {state} True
207@ = create_char_as_passenger 218@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 218@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$finalerails_fcflag = 1

:FINALEC_18176
if 
  $finalerails_fcflag == 1
goto_if_false @FINALEC_18727
if 
  locate_car_2d 152@ {x} 2849.3899 {y} -1232.9301 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_18727
if 
  not is_car_dead 217@
goto_if_false @FINALEC_18344
start_playback_recorded_car 217@ {path} 230
switch_car_siren 217@ {state} True
if 
  not is_char_dead 155@
goto_if_false @FINALEC_18315
task_drive_by 155@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_18315
247@ = add_blip_for_car 217@
change_blip_display 247@ {display} BlipDisplay.BlipOnly
249@ = 1
260@ = 1

:FINALEC_18344
if 
  not is_car_dead 218@
goto_if_false @FINALEC_18456
switch_car_siren 218@ {state} True
start_playback_recorded_car 218@ {path} 231
if 
  not is_char_dead 207@
goto_if_false @FINALEC_18427
task_drive_by 207@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_18427
248@ = add_blip_for_car 218@
change_blip_display 248@ {display} BlipDisplay.BlipOnly
250@ = 1
261@ = 1

:FINALEC_18456
206@ = 1
211@ = create_car 576 {x} 2735.333 {y} -1081.047 {z} 69.033
set_car_heading 211@ {heading} 37.918
set_car_health 211@ {health} 275
set_car_only_damaged_by_player 211@ {state} True
34@ = create_char_inside_car 211@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 34@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 34@ {state} True
35@ = create_char_as_passenger 211@ {pedType} PedType.Mission1 {modelId} 7 {seat} SeatId.BikeRear
set_char_decision_maker 35@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 35@ {state} True
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 211@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
212@ = create_car 576 {x} 2595.7419 {y} -1003.581 {z} 75.038
set_car_heading 212@ {heading} 180.0
set_car_only_damaged_by_player 212@ {state} True
36@ = create_char_inside_car 212@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 36@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 36@ {state} False
set_char_only_damaged_by_player 36@ {state} True
37@ = create_char_as_passenger 212@ {pedType} PedType.Mission1 {modelId} 7 {seat} SeatId.BikeRear
set_char_decision_maker 37@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 37@ {state} True
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 212@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$finalerails_fcflag = 2

:FINALEC_18727
if 
  $finalerails_fcflag == 2
goto_if_false @FINALEC_19838
if 
  locate_car_2d 153@ {x} 2717.71 {y} -1047.36 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_19838
mark_model_as_no_longer_needed 596
206@ = 2
if 
  not is_car_dead 211@
goto_if_false @FINALEC_18900
start_playback_recorded_car 211@ {path} 232
if 
  not is_char_dead 35@
goto_if_false @FINALEC_18871
task_drive_by 35@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_18871
241@ = add_blip_for_car 211@
change_blip_display 241@ {display} BlipDisplay.BlipOnly
254@ = 1
265@ = 1

:FINALEC_18900
if 
  not is_car_dead 212@
goto_if_false @FINALEC_19005
start_playback_recorded_car 212@ {path} 233
if 
  not is_char_dead 37@
goto_if_false @FINALEC_18976
task_drive_by 37@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_18976
242@ = add_blip_for_car 212@
change_blip_display 242@ {display} BlipDisplay.BlipOnly
255@ = 1
266@ = 1

:FINALEC_19005
208@ = create_car 576 {x} 2707.499 {y} -1329.559 {z} 47.3
set_car_heading 208@ {heading} 265.83
set_car_only_damaged_by_player 208@ {state} True
38@ = create_char_inside_car 208@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 38@ {state} True
39@ = create_char_as_passenger 208@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 39@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 39@ {state} True
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 208@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 208@ {health} 300
209@ = create_car 576 {x} 2759.875 {y} -1373.2939 {z} 38.777
set_car_heading 209@ {heading} 90.9
set_car_only_damaged_by_player 209@ {state} True
40@ = create_char_inside_car 209@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 40@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 40@ {state} True
41@ = create_char_as_passenger 209@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 41@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 41@ {state} True
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 209@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 209@ {health} 800
169@ = create_object #LA_FUCKCAR2 {x} 2722.5991 {y} -1324.889 {z} 49.47
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 83.325
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2631.1799 {y} -1244.17 {z} 50.58
set_char_heading 228@ {heading} 62.09
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 228@ {state} True
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
if 
  not is_char_dead 49@
goto_if_false @FINALEC_19427
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_19427
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2646.1101 {y} -1193.27 {z} 66.1
set_char_heading 232@ {heading} 285.845
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
233@ = create_char PedType.Mission1 {modelId} 110 {x} 2653.9351 {y} -1211.778 {z} 61.667
set_char_heading 233@ {heading} 360.0
give_weapon_to_char 233@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 233@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 233@ {health} 10
set_char_decision_maker 233@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_19637
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_19637
234@ = create_char PedType.Mission1 {modelId} 110 {x} 2664.3359 {y} -1173.326 {z} 66.69
set_char_heading 234@ {heading} 53.93
give_weapon_to_char 234@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 234@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 234@ {health} 10
set_char_decision_maker 234@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
235@ = create_char PedType.Mission1 {modelId} 110 {x} 2639.27 {y} -1175.4 {z} 66.5
set_char_heading 235@ {heading} 2.3
give_weapon_to_char 235@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 235@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 235@ {health} 10
set_char_decision_maker 235@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
$finalerails_fcflag = 3

:FINALEC_19838
if 
  $finalerails_fcflag == 3
goto_if_false @FINALEC_20118
if 
  locate_car_2d 152@ {x} 2737.48 {y} -1309.88 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_20118
206@ = 3
if 
  not is_car_dead 208@
goto_if_false @FINALEC_20006
start_playback_recorded_car 208@ {path} 234
if 
  not is_char_dead 39@
goto_if_false @FINALEC_19977
task_drive_by 39@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_19977
238@ = add_blip_for_car 208@
change_blip_display 238@ {display} BlipDisplay.BlipOnly
251@ = 1
262@ = 1

:FINALEC_20006
if 
  not is_car_dead 209@
goto_if_false @FINALEC_20111
start_playback_recorded_car 209@ {path} 235
if 
  not is_char_dead 41@
goto_if_false @FINALEC_20082
task_drive_by 41@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20082
239@ = add_blip_for_car 209@
change_blip_display 239@ {display} BlipDisplay.BlipOnly
252@ = 1
263@ = 1

:FINALEC_20111
$finalerails_fcflag = 4

:FINALEC_20118
if 
  $finalerails_fcflag == 4
goto_if_false @FINALEC_20573
if 
  not is_car_dead 153@
goto_if_false @FINALEC_20573
if 
  locate_car_2d 153@ {x} 2662.6001 {y} -1404.83 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_20573
206@ = 4
213@ = create_car 468 {x} 2657.4551 {y} -1594.463 {z} 12.685
set_car_heading 213@ {heading} 85.0
42@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 42@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 213@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 43@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 213@ {state} True
set_car_proofs 213@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
214@ = create_car 468 {x} 2642.0 {y} -1615.0 {z} 19.0
set_car_heading 214@ {heading} 181.0
44@ = create_char_inside_car 214@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 44@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 214@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 45@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 214@ {state} True
set_car_proofs 214@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
215@ = create_car 468 {x} 2650.0 {y} -1621.0 {z} 19.0
set_car_heading 215@ {heading} 170.0
46@ = create_char_inside_car 215@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 46@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 46@ {state} True
47@ = create_char_as_passenger 215@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 47@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 215@ {state} True
set_car_proofs 215@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$finalerails_fcflag = 5

:FINALEC_20573
if 
  $finalerails_fcflag == 5
goto_if_false @FINALEC_21081
if 
  locate_car_2d 152@ {x} 2642.71 {y} -1570.03 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_21081
206@ = 5
if 
  not is_car_dead 213@
goto_if_false @FINALEC_20741
start_playback_recorded_car 213@ {path} 236
if 
  not is_char_dead 43@
goto_if_false @FINALEC_20712
task_drive_by 43@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20712
243@ = add_blip_for_car 213@
change_blip_display 243@ {display} BlipDisplay.BlipOnly
256@ = 1
267@ = 1

:FINALEC_20741
if 
  not is_car_dead 214@
goto_if_false @FINALEC_20846
start_playback_recorded_car 214@ {path} 237
if 
  not is_char_dead 45@
goto_if_false @FINALEC_20817
task_drive_by 45@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20817
244@ = add_blip_for_car 214@
change_blip_display 244@ {display} BlipDisplay.BlipOnly
257@ = 1
268@ = 1

:FINALEC_20846
if 
  not is_car_dead 215@
goto_if_false @FINALEC_20951
start_playback_recorded_car 215@ {path} 238
if 
  not is_char_dead 47@
goto_if_false @FINALEC_20922
task_drive_by 47@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20922
245@ = add_blip_for_car 215@
change_blip_display 245@ {display} BlipDisplay.BlipOnly
258@ = 1
269@ = 1

:FINALEC_20951
210@ = create_car 576 {x} 2704.0 {y} -1654.0 {z} 10.0
set_car_heading 210@ {heading} 90.0
set_car_health 210@ {health} 300
221@ = create_char_inside_car 210@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 221@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 221@ {state} False
set_char_only_damaged_by_player 221@ {state} True
222@ = create_char_as_passenger 210@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 222@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 222@ {state} True
give_weapon_to_char 222@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 210@ {state} True
$finalerails_fcflag = 6

:FINALEC_21081
if 
  $finalerails_fcflag == 6
goto_if_false @FINALEC_21249
if 
  locate_car_2d 153@ {x} 2642.98 {y} -1619.8 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_21249
if 
  not is_car_dead 210@
goto_if_false @FINALEC_21242
start_playback_recorded_car 210@ {path} 239
if 
  not is_char_dead 222@
goto_if_false @FINALEC_21213
task_drive_by 222@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_21213
240@ = add_blip_for_car 210@
change_blip_display 240@ {display} BlipDisplay.BlipOnly
253@ = 1
264@ = 1

:FINALEC_21242
$finalerails_fcflag = 7

:FINALEC_21249
if 
  $finalerails_fcflag == 7
goto_if_false @FINALEC_21396
if 
  locate_car_2d 152@ {x} 2407.9299 {y} -1918.34 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_21396
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_fixed_camera_position 2409.032 {y} -1921.426 {z} 14.0992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2408.9939 {y} -1920.431 {z} 14.0044 {switchStyle} SwitchType.JumpCut
TIMERA = 0
$finalerails_fcflag = 8

:FINALEC_21396
if 
  $finalerails_fcflag == 8
goto_if_false @FINALEC_21662
if 
  TIMERA > 5000
goto_if_false @FINALEC_21662
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
delete_char 158@
delete_char 159@
request_car_recording 241
request_car_recording 242
request_car_recording 243
request_car_recording 244
request_car_recording 245
request_car_recording 246
request_car_recording 247
request_car_recording 248
request_car_recording 249
request_car_recording 229
request_model 596
load_all_models_now 

:FINALEC_21506
if or
  not has_model_loaded 596
  not has_car_recording_been_loaded 241
  not has_car_recording_been_loaded 242
  not has_car_recording_been_loaded 243
  not has_car_recording_been_loaded 244
goto_if_false @FINALEC_21553
wait 0
goto @FINALEC_21506

:FINALEC_21553
if or
  not has_car_recording_been_loaded 245
  not has_car_recording_been_loaded 246
  not has_car_recording_been_loaded 247
  not has_car_recording_been_loaded 248
  not has_car_recording_been_loaded 249
goto_if_false @FINALEC_21600
wait 0
goto @FINALEC_21553

:FINALEC_21600
if 
  not has_car_recording_been_loaded 229
goto_if_false @FINALEC_21627
wait 0
goto @FINALEC_21600

:FINALEC_21627
remove_animation "FINALE"
remove_animation "FINALE2"
$carhealth_fc = 2
$finalerails_fcflag = 9

:FINALEC_21662
if 
  $rails_fcflag == 1
goto_if_false @FINALEC_22859
if 
  locate_car_2d 152@ {x} 2835.29 {y} -1049.49 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_22859
165@ = create_object #LA_FUCKCAR2 {x} 2806.9839 {y} -1057.249 {z} 27.0
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 189.735
61@ = start_script_fire 2806.9839 {y} -1055.249 {z} 28.6 {propagation} 0 {size} 2
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2798.46 {y} -1055.99 {z} 30.43
set_char_heading 223@ {heading} 285.845
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
237@ = create_car 576 {x} 2785.0601 {y} -1043.915 {z} 35.916
set_car_heading 237@ {heading} 4.2
set_car_health 237@ {health} 250
set_car_only_damaged_by_player 237@ {state} True
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2774.5601 {y} -1011.43 {z} 58.08
set_char_heading 224@ {heading} 285.845
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2782.9839 {y} -1041.2841 {z} 36.62
set_char_heading 226@ {heading} 285.845
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22137
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_22137
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2749.3931 {y} -1063.34 {z} 53.0
set_char_heading 227@ {heading} 309.534
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
if 
  not is_char_dead 154@
goto_if_false @FINALEC_22257
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 154@
gosub @FINALEC_57123
goto @FINALEC_22296

:FINALEC_22257
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22296
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_22296
167@ = create_object #LA_FUCKCAR2 {x} 2688.9399 {y} -1054.0341 {z} 69.57
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 210.579
62@ = start_script_fire 2806.9839 {y} -1055.249 {z} 28.6 {propagation} 0 {size} 2
63@ = start_script_fire 2807.9839 {y} -1056.249 {z} 28.6 {propagation} 0 {size} 1
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2724.0449 {y} -1058.115 {z} 69.88
set_char_heading 229@ {heading} 360.0
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2632.0 {y} -114.0 {z} 68.0
set_char_heading 230@ {heading} 254.974
give_weapon_to_char 230@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
168@ = create_object #LA_FUCKCAR2 {x} 2650.3899 {y} -1056.09 {z} 69.66
set_object_dynamic 168@ {state} True
set_object_heading 168@ {heading} 228.58
64@ = start_script_fire 2650.3899 {y} -1056.09 {z} 69.66 {propagation} 0 {size} 2
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2649.78 {y} -1052.49 {z} 69.44
set_char_heading 231@ {heading} 254.974
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2650.3999 {y} -1115.05 {z} 67.12
set_char_heading 228@ {heading} 360.0
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22852
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_22852
$rails_fcflag = 2

:FINALEC_22859
if 
  $rails_fcflag == 2
goto_if_false @FINALEC_22989
if 
  locate_car_2d 153@ {x} 2642.8101 {y} -1193.87 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_22989
delete_object 165@
delete_char 223@
mark_car_as_no_longer_needed 237@
delete_car 237@
delete_char 224@
delete_char 226@
delete_char 227@
delete_object 167@
delete_char 229@
delete_object 168@
delete_char 231@
delete_char 228@
delete_char 230@
remove_all_script_fires 
$rails_fcflag = 3

:FINALEC_22989
if 
  $rails_fcflag == 3
goto_if_false @FINALEC_24070
if 
  locate_car_2d 153@ {x} 2723.8101 {y} -1275.64 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_24070
delete_char 232@
delete_char 233@
delete_char 234@
delete_char 235@
if 
  not is_car_dead 212@
goto_if_false @FINALEC_23096
set_car_health 212@ {health} 250
set_car_only_damaged_by_player 212@ {state} False

:FINALEC_23096
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2718.29 {y} -1324.342 {z} 48.5
set_char_heading 223@ {heading} 352.57
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23209
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_23209
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2726.95 {y} -1324.49 {z} 49.5
set_char_heading 224@ {heading} 327.185
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2710.5911 {y} -1315.29 {z} 74.34
set_char_heading 226@ {heading} 303.711
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23419
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_23419
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2748.2439 {y} -1375.115 {z} 49.5
set_char_heading 227@ {heading} 309.534
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2750.615 {y} -1388.75 {z} 39.0
set_char_heading 228@ {heading} 62.09
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2713.137 {y} -1448.1689 {z} 41.95
set_char_heading 229@ {heading} 267.04
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2711.9351 {y} -1399.3199 {z} 54.0
set_char_heading 230@ {heading} 295.712
give_weapon_to_char 230@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23823
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_23823
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2754.71 {y} -1309.9561 {z} 70.0
set_char_heading 231@ {heading} 77.189
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2750.615 {y} -1419.473 {z} 38.5
set_char_heading 232@ {heading} 77.189
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
if 
  not is_char_dead 40@
goto_if_false @FINALEC_24040
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_lvar_int 107@ = 40@
gosub @FINALEC_57123
goto @FINALEC_24063

:FINALEC_24040
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123

:FINALEC_24063
$rails_fcflag = 4

:FINALEC_24070
if 
  $rails_fcflag == 4
goto_if_false @FINALEC_24894
if 
  locate_car_2d 153@ {x} 2682.55 {y} -1494.04 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_24894
delete_char 223@
delete_char 224@
delete_char 226@
delete_char 227@
delete_char 228@
delete_char 229@
delete_char 230@
delete_char 231@
delete_char 232@
delete_object 165@
remove_all_script_fires 
165@ = create_object #LA_FUCKCAR2 {x} 2649.1941 {y} -1514.1851 {z} 26.6789
set_object_heading 165@ {heading} 329.3793
set_object_dynamic 165@ {state} True
237@ = create_car 576 {x} 2638.988 {y} -1555.943 {z} 18.9832
set_car_heading 237@ {heading} 290.7073
set_car_health 237@ {health} 250
set_car_only_damaged_by_player 237@ {state} True
167@ = create_object #LA_FUCKCAR2 {x} 2635.0969 {y} -1576.996 {z} 15.3271
set_object_heading 167@ {heading} 77.161
set_object_dynamic 167@ {state} True
168@ = create_object #LA_FUCKCAR2 {x} 2650.395 {y} -1586.538 {z} 13.6033
set_object_heading 168@ {heading} 295.7696
set_object_dynamic 168@ {state} True
169@ = create_object #LA_FUCKCAR2 {x} 2649.939 {y} -1629.937 {z} 9.8785
set_object_heading 169@ {heading} 270.0938
set_object_dynamic 169@ {state} True
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.583 {y} -1518.547 {z} 25.7427
set_char_heading 223@ {heading} 12.7483
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_24499
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_24499
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2651.0449 {y} -1515.111 {z} 26.5111
set_char_heading 224@ {heading} 12.4201
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
225@ = create_char PedType.Mission1 {modelId} 110 {x} 2636.188 {y} -1559.397 {z} 18.5108
set_char_heading 225@ {heading} 276.3582
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2641.418 {y} -1558.004 {z} 18.6112
set_char_heading 226@ {heading} 339.6795
give_weapon_to_char 226@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2649.325 {y} -1589.41 {z} 13.0846
set_char_heading 227@ {heading} 318.9207
give_weapon_to_char 227@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
$rails_fcflag = 5

:FINALEC_24894
if 
  $rails_fcflag == 5
goto_if_false @FINALEC_26014
if 
  locate_car_2d 153@ {x} 2652.95 {y} -1404.16 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_26014
61@ = start_script_fire 2641.6599 {y} -1514.55 {z} 26.82 {propagation} 0 {size} 2
61@ = start_script_fire 2638.6799 {y} -1515.3 {z} 26.5 {propagation} 0 {size} 3
61@ = start_script_fire 2641.5801 {y} -1538.54 {z} 22.46 {propagation} 0 {size} 3
61@ = start_script_fire 2635.6399 {y} -1605.36 {z} 10.7 {propagation} 0 {size} 2
61@ = start_script_fire 2643.52 {y} -1599.47 {z} 18.71 {propagation} 0 {size} 3
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.583 {y} -1518.547 {z} 25.7427
set_char_heading 228@ {heading} 12.7483
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25183
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_25183
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2652.5149 {y} -1587.552 {z} 13.4203
set_char_heading 229@ {heading} 12.4201
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.3679 {y} -1629.595 {z} 9.727
set_char_heading 230@ {heading} 276.3582
give_weapon_to_char 230@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2651.1479 {y} -1631.916 {z} 9.8767
set_char_heading 231@ {heading} 339.6795
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25490
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_25490
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2635.9319 {y} -1598.666 {z} 18.7482
set_char_heading 232@ {heading} 318.9207
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
233@ = create_char PedType.Mission1 {modelId} 110 {x} 2650.4939 {y} -1600.365 {z} 18.1152
set_char_heading 233@ {heading} 318.9207
give_weapon_to_char 233@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 233@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 233@ {health} 10
set_char_decision_maker 233@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
234@ = create_char PedType.Mission1 {modelId} 110 {x} 2635.9319 {y} -1598.666 {z} 18.7482
set_char_heading 234@ {heading} 318.9207
give_weapon_to_char 234@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 234@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 234@ {health} 10
set_char_decision_maker 234@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
235@ = create_char PedType.Mission1 {modelId} 110 {x} 2646.5979 {y} -1599.905 {z} 18.295
set_char_heading 235@ {heading} 318.9207
give_weapon_to_char 235@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 235@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 235@ {health} 10
set_char_decision_maker 235@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25894
set_lvar_int_to_lvar_int 102@ = 235@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_25894
236@ = create_char PedType.Mission1 {modelId} 110 {x} 2634.689 {y} -1629.506 {z} 18.7081
set_char_heading 236@ {heading} 318.9207
give_weapon_to_char 236@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 236@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 236@ {health} 10
set_char_decision_maker 236@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_26007
set_lvar_int_to_lvar_int 102@ = 236@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_26007
$rails_fcflag = 6

:FINALEC_26014
if 
  $rails_fcflag == 6
goto_if_false @FINALEC_26169
if 
  locate_car_2d 153@ {x} 2598.5701 {y} -1729.65 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_26169
delete_char 223@
delete_char 224@
delete_char 226@
delete_char 227@
delete_char 228@
delete_char 229@
delete_char 230@
delete_char 231@
delete_char 232@
delete_char 233@
delete_char 234@
delete_char 235@
delete_char 236@
delete_car 237@
delete_object 165@
delete_object 167@
delete_object 168@
delete_object 169@
remove_all_script_fires 
$rails_fcflag = 7

:FINALEC_26169
if 
  260@ == 1
goto_if_false @FINALEC_26321
if 
  not is_car_dead 217@
goto_if_false @FINALEC_26321
if 
  not is_char_dead 154@
goto_if_false @FINALEC_26226
goto @FINALEC_26321

:FINALEC_26226
if 
  not is_char_dead 155@
goto_if_false @FINALEC_26309
if 
  is_char_in_car 155@ {vehicle} 217@
goto_if_false @FINALEC_26302
219@ = get_driver_of_car 217@
if 
  219@ == -1
goto_if_false @FINALEC_26302
task_shuffle_to_next_car_seat 155@ {vehicle} 217@
260@ = 2

:FINALEC_26302
goto @FINALEC_26321

:FINALEC_26309
stop_playback_recorded_car 217@
260@ = 2

:FINALEC_26321
if 
  260@ == 2
goto_if_false @FINALEC_26367
if 
  is_char_dead 155@
goto_if_false @FINALEC_26367
stop_playback_recorded_car 217@
260@ = 3

:FINALEC_26367
if 
  249@ == 1
goto_if_false @FINALEC_26483
if 
  not is_car_dead 217@
goto_if_false @FINALEC_26451
if 
  not is_playback_going_on_for_car 217@
goto_if_false @FINALEC_26444
mark_car_as_no_longer_needed 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
remove_blip 247@
249@ = 2

:FINALEC_26444
goto @FINALEC_26483

:FINALEC_26451
stop_playback_recorded_car 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
mark_car_as_no_longer_needed 217@
remove_blip 247@
249@ = 2

:FINALEC_26483
if 
  261@ == 1
goto_if_false @FINALEC_26635
if 
  not is_car_dead 218@
goto_if_false @FINALEC_26635
if 
  not is_char_dead 156@
goto_if_false @FINALEC_26540
goto @FINALEC_26635

:FINALEC_26540
if 
  not is_char_dead 207@
goto_if_false @FINALEC_26623
if 
  is_char_in_car 207@ {vehicle} 218@
goto_if_false @FINALEC_26616
219@ = get_driver_of_car 218@
if 
  219@ == -1
goto_if_false @FINALEC_26616
task_shuffle_to_next_car_seat 207@ {vehicle} 218@
261@ = 2

:FINALEC_26616
goto @FINALEC_26635

:FINALEC_26623
stop_playback_recorded_car 218@
261@ = 2

:FINALEC_26635
if 
  261@ == 2
goto_if_false @FINALEC_26681
if 
  is_char_dead 207@
goto_if_false @FINALEC_26681
stop_playback_recorded_car 218@
261@ = 3

:FINALEC_26681
if 
  250@ == 1
goto_if_false @FINALEC_26797
if 
  not is_car_dead 218@
goto_if_false @FINALEC_26765
if 
  not is_playback_going_on_for_car 218@
goto_if_false @FINALEC_26758
mark_car_as_no_longer_needed 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
remove_blip 248@
250@ = 2

:FINALEC_26758
goto @FINALEC_26797

:FINALEC_26765
stop_playback_recorded_car 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 218@
remove_blip 248@
250@ = 2

:FINALEC_26797
if 
  265@ == 1
goto_if_false @FINALEC_26949
if 
  not is_car_dead 211@
goto_if_false @FINALEC_26949
if 
  not is_char_dead 34@
goto_if_false @FINALEC_26854
goto @FINALEC_26949

:FINALEC_26854
if 
  not is_char_dead 35@
goto_if_false @FINALEC_26937
if 
  is_char_in_car 35@ {vehicle} 211@
goto_if_false @FINALEC_26930
219@ = get_driver_of_car 211@
if 
  219@ == -1
goto_if_false @FINALEC_26930
task_shuffle_to_next_car_seat 35@ {vehicle} 211@
265@ = 2

:FINALEC_26930
goto @FINALEC_26949

:FINALEC_26937
stop_playback_recorded_car 211@
265@ = 2

:FINALEC_26949
if 
  265@ == 2
goto_if_false @FINALEC_26995
if 
  is_char_dead 35@
goto_if_false @FINALEC_26995
stop_playback_recorded_car 211@
265@ = 3

:FINALEC_26995
if 
  254@ == 1
goto_if_false @FINALEC_27111
if 
  not is_car_dead 211@
goto_if_false @FINALEC_27079
if 
  not is_playback_going_on_for_car 211@
goto_if_false @FINALEC_27072
mark_car_as_no_longer_needed 211@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
remove_blip 241@
254@ = 2

:FINALEC_27072
goto @FINALEC_27111

:FINALEC_27079
stop_playback_recorded_car 211@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_car_as_no_longer_needed 211@
remove_blip 241@
254@ = 2

:FINALEC_27111
if 
  266@ == 1
goto_if_false @FINALEC_27263
if 
  not is_car_dead 212@
goto_if_false @FINALEC_27263
if 
  not is_char_dead 36@
goto_if_false @FINALEC_27168
goto @FINALEC_27263

:FINALEC_27168
if 
  not is_char_dead 37@
goto_if_false @FINALEC_27251
if 
  is_char_in_car 37@ {vehicle} 212@
goto_if_false @FINALEC_27244
219@ = get_driver_of_car 212@
if 
  219@ == -1
goto_if_false @FINALEC_27244
task_shuffle_to_next_car_seat 37@ {vehicle} 212@
266@ = 2

:FINALEC_27244
goto @FINALEC_27263

:FINALEC_27251
stop_playback_recorded_car 212@
266@ = 2

:FINALEC_27263
if 
  266@ == 2
goto_if_false @FINALEC_27309
if 
  is_char_dead 37@
goto_if_false @FINALEC_27309
stop_playback_recorded_car 212@
266@ = 3

:FINALEC_27309
if 
  255@ == 1
goto_if_false @FINALEC_27425
if 
  not is_car_dead 212@
goto_if_false @FINALEC_27393
if 
  not is_playback_going_on_for_car 212@
goto_if_false @FINALEC_27386
mark_car_as_no_longer_needed 212@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
remove_blip 242@
255@ = 2

:FINALEC_27386
goto @FINALEC_27425

:FINALEC_27393
stop_playback_recorded_car 212@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_car_as_no_longer_needed 212@
remove_blip 242@
255@ = 2

:FINALEC_27425
if 
  262@ == 1
goto_if_false @FINALEC_27577
if 
  not is_car_dead 208@
goto_if_false @FINALEC_27577
if 
  not is_char_dead 38@
goto_if_false @FINALEC_27482
goto @FINALEC_27577

:FINALEC_27482
if 
  not is_char_dead 39@
goto_if_false @FINALEC_27565
if 
  is_char_in_car 39@ {vehicle} 208@
goto_if_false @FINALEC_27558
219@ = get_driver_of_car 208@
if 
  219@ == -1
goto_if_false @FINALEC_27558
task_shuffle_to_next_car_seat 39@ {vehicle} 208@
262@ = 2

:FINALEC_27558
goto @FINALEC_27577

:FINALEC_27565
stop_playback_recorded_car 208@
262@ = 2

:FINALEC_27577
if 
  262@ == 2
goto_if_false @FINALEC_27623
if 
  is_char_dead 39@
goto_if_false @FINALEC_27623
stop_playback_recorded_car 208@
262@ = 3

:FINALEC_27623
if 
  251@ == 1
goto_if_false @FINALEC_27739
if 
  not is_car_dead 208@
goto_if_false @FINALEC_27707
if 
  not is_playback_going_on_for_car 208@
goto_if_false @FINALEC_27700
mark_car_as_no_longer_needed 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
remove_blip 238@
251@ = 2

:FINALEC_27700
goto @FINALEC_27739

:FINALEC_27707
stop_playback_recorded_car 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 208@
remove_blip 238@
251@ = 2

:FINALEC_27739
if 
  263@ == 1
goto_if_false @FINALEC_27891
if 
  not is_car_dead 209@
goto_if_false @FINALEC_27891
if 
  not is_char_dead 40@
goto_if_false @FINALEC_27796
goto @FINALEC_27891

:FINALEC_27796
if 
  not is_char_dead 41@
goto_if_false @FINALEC_27879
if 
  is_char_in_car 41@ {vehicle} 209@
goto_if_false @FINALEC_27872
219@ = get_driver_of_car 209@
if 
  219@ == -1
goto_if_false @FINALEC_27872
task_shuffle_to_next_car_seat 41@ {vehicle} 209@
263@ = 2

:FINALEC_27872
goto @FINALEC_27891

:FINALEC_27879
stop_playback_recorded_car 209@
263@ = 2

:FINALEC_27891
if 
  263@ == 2
goto_if_false @FINALEC_27937
if 
  is_char_dead 41@
goto_if_false @FINALEC_27937
stop_playback_recorded_car 209@
263@ = 3

:FINALEC_27937
if 
  252@ == 1
goto_if_false @FINALEC_28053
if 
  not is_car_dead 209@
goto_if_false @FINALEC_28021
if 
  not is_playback_going_on_for_car 209@
goto_if_false @FINALEC_28014
mark_car_as_no_longer_needed 209@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
remove_blip 239@
252@ = 2

:FINALEC_28014
goto @FINALEC_28053

:FINALEC_28021
stop_playback_recorded_car 209@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_car_as_no_longer_needed 209@
remove_blip 239@
252@ = 2

:FINALEC_28053
if 
  264@ == 1
goto_if_false @FINALEC_28205
if 
  not is_car_dead 210@
goto_if_false @FINALEC_28205
if 
  not is_char_dead 221@
goto_if_false @FINALEC_28110
goto @FINALEC_28205

:FINALEC_28110
if 
  not is_char_dead 222@
goto_if_false @FINALEC_28193
if 
  is_char_in_car 222@ {vehicle} 210@
goto_if_false @FINALEC_28186
219@ = get_driver_of_car 210@
if 
  219@ == -1
goto_if_false @FINALEC_28186
task_shuffle_to_next_car_seat 222@ {vehicle} 210@
264@ = 2

:FINALEC_28186
goto @FINALEC_28205

:FINALEC_28193
stop_playback_recorded_car 210@
264@ = 2

:FINALEC_28205
if 
  264@ == 2
goto_if_false @FINALEC_28251
if 
  is_char_dead 222@
goto_if_false @FINALEC_28251
stop_playback_recorded_car 210@
264@ = 3

:FINALEC_28251
if 
  253@ == 1
goto_if_false @FINALEC_28367
if 
  not is_car_dead 210@
goto_if_false @FINALEC_28335
if 
  not is_playback_going_on_for_car 210@
goto_if_false @FINALEC_28328
mark_car_as_no_longer_needed 210@
mark_char_as_no_longer_needed 221@
mark_char_as_no_longer_needed 222@
remove_blip 240@
253@ = 2

:FINALEC_28328
goto @FINALEC_28367

:FINALEC_28335
stop_playback_recorded_car 210@
mark_char_as_no_longer_needed 221@
mark_char_as_no_longer_needed 222@
mark_car_as_no_longer_needed 210@
remove_blip 240@
253@ = 2

:FINALEC_28367
if 
  267@ == 1
goto_if_false @FINALEC_28579
if 
  not is_car_dead 213@
goto_if_false @FINALEC_28579
if 
  not is_char_dead 42@
goto_if_false @FINALEC_28424
goto @FINALEC_28579

:FINALEC_28424
if 
  not is_char_dead 43@
goto_if_false @FINALEC_28537
if 
  is_char_in_car 43@ {vehicle} 213@
goto_if_false @FINALEC_28530
219@ = get_driver_of_car 213@
if 
  219@ == -1
goto_if_false @FINALEC_28530
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 213@
267@ = 2

:FINALEC_28530
goto @FINALEC_28579

:FINALEC_28537
set_car_forward_speed 213@ {forwardSpeed} 18.0
stop_playback_recorded_car 213@
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003
267@ = 2

:FINALEC_28579
if 
  267@ == 2
goto_if_false @FINALEC_28671
if 
  is_char_dead 43@
goto_if_false @FINALEC_28671
stop_playback_recorded_car 213@
if 
  not is_car_dead 213@
goto_if_false @FINALEC_28664
set_car_forward_speed 213@ {forwardSpeed} 18.0
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_28664
267@ = 3

:FINALEC_28671
if 
  256@ == 1
goto_if_false @FINALEC_28758
if 
  is_char_dead 42@
goto_if_false @FINALEC_28758
if or
  is_char_dead 43@
  is_car_dead 213@
goto_if_false @FINALEC_28758
stop_playback_recorded_car 213@
remove_blip 243@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
256@ = 2

:FINALEC_28758
if 
  268@ == 1
goto_if_false @FINALEC_28970
if 
  not is_car_dead 214@
goto_if_false @FINALEC_28970
if 
  not is_char_dead 44@
goto_if_false @FINALEC_28815
goto @FINALEC_28970

:FINALEC_28815
if 
  not is_char_dead 45@
goto_if_false @FINALEC_28928
if 
  is_char_in_car 45@ {vehicle} 214@
goto_if_false @FINALEC_28921
219@ = get_driver_of_car 214@
if 
  219@ == -1
goto_if_false @FINALEC_28921
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 214@
268@ = 2

:FINALEC_28921
goto @FINALEC_28970

:FINALEC_28928
set_car_forward_speed 214@ {forwardSpeed} 18.0
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003
268@ = 2

:FINALEC_28970
if 
  268@ == 2
goto_if_false @FINALEC_29062
if 
  is_char_dead 45@
goto_if_false @FINALEC_29062
stop_playback_recorded_car 214@
if 
  not is_car_dead 214@
goto_if_false @FINALEC_29055
set_car_forward_speed 214@ {forwardSpeed} 18.0
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_29055
268@ = 3

:FINALEC_29062
if 
  257@ == 1
goto_if_false @FINALEC_29149
if 
  is_char_dead 44@
goto_if_false @FINALEC_29149
if or
  is_char_dead 45@
  is_car_dead 214@
goto_if_false @FINALEC_29149
stop_playback_recorded_car 214@
remove_blip 244@
mark_car_as_no_longer_needed 214@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
257@ = 2

:FINALEC_29149
if 
  269@ == 1
goto_if_false @FINALEC_29361
if 
  not is_car_dead 215@
goto_if_false @FINALEC_29361
if 
  not is_char_dead 46@
goto_if_false @FINALEC_29206
goto @FINALEC_29361

:FINALEC_29206
if 
  not is_char_dead 47@
goto_if_false @FINALEC_29319
if 
  is_char_in_car 47@ {vehicle} 215@
goto_if_false @FINALEC_29312
219@ = get_driver_of_car 215@
if 
  219@ == -1
goto_if_false @FINALEC_29312
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 215@
269@ = 2

:FINALEC_29312
goto @FINALEC_29361

:FINALEC_29319
set_car_forward_speed 215@ {forwardSpeed} 18.0
stop_playback_recorded_car 215@
set_car_rotation_velocity 215@ {x} 3.5 {y} 7.3999 {z} 8.1003
269@ = 2

:FINALEC_29361
if 
  269@ == 2
goto_if_false @FINALEC_29453
if 
  is_char_dead 47@
goto_if_false @FINALEC_29453
stop_playback_recorded_car 215@
if 
  not is_car_dead 215@
goto_if_false @FINALEC_29446
set_car_forward_speed 215@ {forwardSpeed} 18.0
set_car_rotation_velocity 215@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_29446
269@ = 3

:FINALEC_29453
if 
  258@ == 1
goto_if_false @FINALEC_29540
if 
  is_char_dead 46@
goto_if_false @FINALEC_29540
if or
  is_char_dead 47@
  is_car_dead 215@
goto_if_false @FINALEC_29540
stop_playback_recorded_car 215@
remove_blip 245@
mark_car_as_no_longer_needed 215@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
258@ = 2

:FINALEC_29540
gosub @FINALEC_56977
if 
  204@ == 0
goto_if_false @FINALEC_29612
if 
  203@ == 0
goto_if_false @FINALEC_29612
set_lvar_int_to_constant 187@ = 14828
set_lvar_text_label 188@s = 'ROT4_MD'
gosub @FINALEC_56935

:FINALEC_29612
if 
  204@ == 0
goto_if_false @FINALEC_29677
if 
  203@ == 1
goto_if_false @FINALEC_29677
set_lvar_int_to_constant 187@ = 14839
set_lvar_text_label 188@s = 'ROT4_NL'
gosub @FINALEC_56935

:FINALEC_29677
if 
  206@ == 1
goto_if_false @FINALEC_29760
if 
  204@ == 0
goto_if_false @FINALEC_29760
if 
  203@ == 2
goto_if_false @FINALEC_29760
set_lvar_int_to_constant 187@ = 14852
set_lvar_text_label 188@s = 'ROT4_QA'
gosub @FINALEC_56935

:FINALEC_29760
if 
  204@ == 0
goto_if_false @FINALEC_29825
if 
  203@ == 3
goto_if_false @FINALEC_29825
set_lvar_int_to_constant 187@ = 14853
set_lvar_text_label 188@s = 'ROT4_QB'
gosub @FINALEC_56935

:FINALEC_29825
if 
  204@ == 0
goto_if_false @FINALEC_29890
if 
  203@ == 4
goto_if_false @FINALEC_29890
set_lvar_int_to_constant 187@ = 14865
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_56935

:FINALEC_29890
if 
  204@ == 0
goto_if_false @FINALEC_29955
if 
  203@ == 5
goto_if_false @FINALEC_29955
set_lvar_int_to_constant 187@ = 14845
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_56935

:FINALEC_29955
if 
  206@ == 2
goto_if_false @FINALEC_30038
if 
  204@ == 0
goto_if_false @FINALEC_30038
if 
  203@ == 6
goto_if_false @FINALEC_30038
set_lvar_int_to_constant 187@ = 14833
set_lvar_text_label 188@s = 'ROT4_NE'
gosub @FINALEC_56935

:FINALEC_30038
if 
  204@ == 0
goto_if_false @FINALEC_30103
if 
  203@ == 7
goto_if_false @FINALEC_30103
set_lvar_int_to_constant 187@ = 14869
set_lvar_text_label 188@s = 'ROT4_TK'
gosub @FINALEC_56935

:FINALEC_30103
if 
  206@ == 3
goto_if_false @FINALEC_30186
if 
  204@ == 0
goto_if_false @FINALEC_30186
if 
  203@ == 8
goto_if_false @FINALEC_30186
set_lvar_int_to_constant 187@ = 14871
set_lvar_text_label 188@s = 'ROT4_TM'
gosub @FINALEC_56935

:FINALEC_30186
if 
  204@ == 0
goto_if_false @FINALEC_30251
if 
  203@ == 9
goto_if_false @FINALEC_30251
set_lvar_int_to_constant 187@ = 14866
set_lvar_text_label 188@s = 'ROT4_TG'
gosub @FINALEC_56935

:FINALEC_30251
if 
  206@ == 5
goto_if_false @FINALEC_30334
if 
  204@ == 0
goto_if_false @FINALEC_30334
if 
  203@ == 10
goto_if_false @FINALEC_30334
set_lvar_int_to_constant 187@ = 14829
set_lvar_text_label 188@s = 'ROT4_NA'
gosub @FINALEC_56935

:FINALEC_30334
if 
  204@ == 0
goto_if_false @FINALEC_30399
if 
  203@ == 11
goto_if_false @FINALEC_30399
set_lvar_int_to_constant 187@ = 14830
set_lvar_text_label 188@s = 'ROT4_NB'
gosub @FINALEC_56935

:FINALEC_30399
if 
  204@ == 0
goto_if_false @FINALEC_30464
if 
  203@ == 12
goto_if_false @FINALEC_30464
set_lvar_int_to_constant 187@ = 14862
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_56935

:FINALEC_30464
if 
  204@ == 0
goto_if_false @FINALEC_30529
if 
  203@ == 13
goto_if_false @FINALEC_30529
set_lvar_int_to_constant 187@ = 14865
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_56935

:FINALEC_30529
if 
  204@ == 0
goto_if_false @FINALEC_30594
if 
  203@ == 14
goto_if_false @FINALEC_30594
set_lvar_int_to_constant 187@ = 14860
set_lvar_text_label 188@s = 'ROT4_TA'
gosub @FINALEC_56935

:FINALEC_30594
if 
  $carhealth_fc == 2
goto_if_false @FINALEC_39368
if 
  not is_car_dead 152@
goto_if_false @FINALEC_31360
if 
  not is_car_dead 153@
goto_if_false @FINALEC_30817
$health_fc = get_car_health 153@
$health_fc -= 12000
if 
  0 >= $health_fc
goto_if_false @FINALEC_30771
$health_fc = 0
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_30736
task_die $sweet

:FINALEC_30736
explode_car 153@
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57243
goto @FINALEC_30778

:FINALEC_30771
$health_fc /= 80

:FINALEC_30778
if 
  is_char_dead $sweet
goto_if_false @FINALEC_30817
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57243

:FINALEC_30817
if 
  289@ == 0
goto_if_false @FINALEC_31360
249@ = 0
260@ = 0
250@ = 0
261@ = 0
251@ = 0
262@ = 0
256@ = 0
267@ = 0
257@ = 0
268@ = 0
remove_blip 238@
remove_blip 239@
remove_blip 240@
remove_blip 241@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
remove_blip 247@
remove_blip 248@
delete_car 213@
delete_char 42@
delete_char 43@
delete_car 214@
delete_char 44@
delete_char 45@
delete_car 215@
delete_char 46@
delete_char 47@
delete_car 217@
delete_car 218@
delete_car 208@
delete_car 209@
delete_car 210@
delete_car 211@
delete_car 212@
213@ = create_car 468 {x} 2375.0 {y} -1918.0 {z} 12.5
set_car_heading 213@ {heading} 176.0
42@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 42@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 213@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 213@ {state} True
set_car_proofs 213@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
214@ = create_car 468 {x} 2377.0 {y} -1911.0 {z} 12.5
set_car_heading 214@ {heading} 186.0
44@ = create_char_inside_car 214@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 44@ {handleOrTemplate} 97@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 214@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 45@ {handleOrTemplate} 97@
set_char_health 45@ {health} 10
set_char_only_damaged_by_player 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 214@ {state} True
set_car_proofs 214@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_fixed_camera_position 2347.5259 {y} -1914.929 {z} 15.1567 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2348.2241 {y} -1915.6169 {z} 14.9604 {switchStyle} SwitchType.JumpCut
289@ = 1

:FINALEC_31360
if 
  not is_car_dead 152@
goto_if_false @FINALEC_37016
if 
  not is_car_dead 153@
goto_if_false @FINALEC_37016
if 
  292@ == 0
goto_if_false @FINALEC_31837
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2300.8899 {y} -1947.97 {z} 24.5
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_31523
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_31523
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2302.3301 {y} -1925.3199 {z} 12.6
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2324.5691 {y} -1951.436 {z} 20.59
set_char_heading 225@ {heading} 44.92
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_31733
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_31733
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2362.397 {y} -1982.99 {z} 18.4
set_char_heading 226@ {heading} 44.93
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
292@ = 1

:FINALEC_31837
if 
  289@ == 1
goto_if_false @FINALEC_32362
start_playback_recorded_car 152@ {path} 241
start_playback_recorded_car 153@ {path} 242
if 
  not is_car_dead 213@
goto_if_false @FINALEC_31976
start_playback_recorded_car 213@ {path} 243
if 
  not is_char_dead 43@
goto_if_false @FINALEC_31947
task_drive_by 43@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_31947
243@ = add_blip_for_car 213@
change_blip_display 243@ {display} BlipDisplay.BlipOnly
256@ = 1
267@ = 1

:FINALEC_31976
if 
  not is_car_dead 214@
goto_if_false @FINALEC_32081
start_playback_recorded_car 214@ {path} 244
if 
  not is_char_dead 45@
goto_if_false @FINALEC_32052
task_drive_by 45@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_32052
244@ = add_blip_for_car 214@
change_blip_display 244@ {display} BlipDisplay.BlipOnly
257@ = 1
268@ = 1

:FINALEC_32081
217@ = create_car 596 {x} 2337.0 {y} -2013.0 {z} 12.5
set_car_heading 217@ {heading} 325.0
set_car_only_damaged_by_player 217@ {state} True
154@ = create_char_inside_car 217@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 154@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 154@ {state} False
set_char_only_damaged_by_player 154@ {state} True
155@ = create_char_as_passenger 217@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 155@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 155@ {state} True
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 217@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
218@ = create_car 596 {x} 2266.0 {y} -1970.0 {z} 12.5
set_car_heading 218@ {heading} 178.0
set_car_only_damaged_by_player 218@ {state} True
156@ = create_char_inside_car 218@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 156@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 156@ {state} False
set_char_only_damaged_by_player 156@ {state} True
207@ = create_char_as_passenger 218@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 218@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
TIMERB = 0
289@ = 2
290@ = 1

:FINALEC_32362
if 
  290@ == 1
goto_if_false @FINALEC_32527
if 
  TIMERB > 6000
goto_if_false @FINALEC_32527
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
206@ = 0
restore_camera 
set_player_control $player1 {state} True
switch_widescreen False
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 120.5 {headingRange} 200.0
if 
  not is_car_dead 153@
goto_if_false @FINALEC_32520
set_car_proofs 153@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:FINALEC_32520
290@ = 2

:FINALEC_32527
if 
  291@ == 0
goto_if_false @FINALEC_32638
if 
  289@ > 4
goto_if_false @FINALEC_32638
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32638
if 
  locate_car_2d 217@ {x} 2210.1899 {y} -1864.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @FINALEC_32638
set_car_health 217@ {health} 100
TIMERB = 0
291@ = 1

:FINALEC_32638
if 
  291@ == 1
goto_if_false @FINALEC_32703
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32703
if 
  TIMERB > 1250
goto_if_false @FINALEC_32703
explode_car 217@
291@ = 2

:FINALEC_32703
if 
  289@ == 2
goto_if_false @FINALEC_33135
if 
  locate_car_2d 152@ {x} 2347.96 {y} -1972.42 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_33135
206@ = 1
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32878
start_playback_recorded_car 217@ {path} 245
switch_car_siren 217@ {state} True
if 
  not is_char_dead 155@
goto_if_false @FINALEC_32849
task_drive_by 155@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_32849
247@ = add_blip_for_car 217@
change_blip_display 247@ {display} BlipDisplay.BlipOnly
249@ = 1
260@ = 1

:FINALEC_32878
if 
  not is_car_dead 218@
goto_if_false @FINALEC_32990
switch_car_siren 218@ {state} True
start_playback_recorded_car 218@ {path} 246
if 
  not is_char_dead 207@
goto_if_false @FINALEC_32961
task_drive_by 207@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:FINALEC_32961
248@ = add_blip_for_car 218@
change_blip_display 248@ {display} BlipDisplay.BlipOnly
250@ = 1
261@ = 1

:FINALEC_32990
275@ = create_car 596 {x} 2283.0 {y} -2077.0 {z} 14.0
set_car_heading 275@ {heading} 48.0
set_car_only_damaged_by_player 275@ {state} True
276@ = create_char_inside_car 275@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 276@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 276@ {state} False
set_char_only_damaged_by_player 276@ {state} True
277@ = create_char_as_passenger 275@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 277@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 277@ {state} True
give_weapon_to_char 277@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 275@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 275@ {health} 700
289@ = 3

:FINALEC_33135
if 
  289@ == 3
goto_if_false @FINALEC_33927
if 
  locate_car_2d 153@ {x} 2260.9199 {y} -2021.7 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_33927
206@ = 2
if 
  not is_car_dead 275@
goto_if_false @FINALEC_33310
start_playback_recorded_car 275@ {path} 249
switch_car_siren 275@ {state} True
if 
  not is_char_dead 277@
goto_if_false @FINALEC_33281
task_drive_by 277@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_33281
279@ = add_blip_for_car 275@
change_blip_display 279@ {display} BlipDisplay.BlipOnly
295@ = 1
296@ = 1

:FINALEC_33310
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2226.8601 {y} -1966.5 {z} 24.5
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_33450
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_33450
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2224.9441 {y} -1977.119 {z} 24.5
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 156@
goto_if_false @FINALEC_33577
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57123
goto @FINALEC_33600

:FINALEC_33577
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123

:FINALEC_33600
165@ = create_object #LA_FUCKCAR2 {x} 2227.6169 {y} -1894.91 {z} 12.2
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 352.399
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2230.1499 {y} -1891.29 {z} 12.5
set_char_heading 225@ {heading} 329.17
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2229.5701 {y} -1898.48 {z} 12.415
set_char_heading 226@ {heading} 311.22
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 156@
goto_if_false @FINALEC_33857
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57123
goto @FINALEC_33880

:FINALEC_33857
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123

:FINALEC_33880
169@ = create_object #LA_FUCKCAR2 {x} 2222.927 {y} -1973.632 {z} 12.25
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 352.399
289@ = 4

:FINALEC_33927
if 
  289@ == 4
goto_if_false @FINALEC_34184
if 
  locate_car_2d 152@ {x} 2215.75 {y} -1931.8 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_34184
206@ = 3
delete_car 213@
delete_char 42@
delete_char 43@
remove_blip 243@
delete_car 214@
delete_char 44@
delete_char 45@
remove_blip 244@
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 468
272@ = create_car 596 {x} 2169.74 {y} -1726.16 {z} 12.5
set_car_heading 272@ {heading} 268.0
set_car_only_damaged_by_player 272@ {state} True
273@ = create_char_inside_car 272@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 273@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 273@ {state} False
set_char_only_damaged_by_player 273@ {state} True
274@ = create_char_as_passenger 272@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 274@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 274@ {state} True
give_weapon_to_char 274@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 272@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 272@ {health} 600
289@ = 5

:FINALEC_34184
if 
  289@ == 5
goto_if_false @FINALEC_34484
if 
  locate_car_2d 152@ {x} 2215.9299 {y} -1765.08 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_34484
if 
  not is_car_dead 272@
goto_if_false @FINALEC_34352
start_playback_recorded_car 272@ {path} 248
switch_car_siren 272@ {state} True
if 
  not is_char_dead 274@
goto_if_false @FINALEC_34323
task_drive_by 274@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_34323
278@ = add_blip_for_car 272@
change_blip_display 278@ {display} BlipDisplay.BlipOnly
293@ = 1
294@ = 1

:FINALEC_34352
208@ = create_car 596 {x} 2323.3181 {y} -1656.886 {z} 12.53
set_car_heading 208@ {heading} 272.4
set_car_only_damaged_by_player 208@ {state} True
38@ = create_char_inside_car 208@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 38@ {state} True
39@ = create_char_as_passenger 208@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 39@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 39@ {state} True
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 208@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
289@ = 6

:FINALEC_34484
if 
  289@ == 6
goto_if_false @FINALEC_34659
if 
  locate_car_2d 152@ {x} 2343.45 {y} -1658.96 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_34659
206@ = 4
if 
  not is_car_dead 208@
goto_if_false @FINALEC_34652
start_playback_recorded_car 208@ {path} 247
if 
  not is_char_dead 39@
goto_if_false @FINALEC_34623
task_drive_by 39@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_34623
238@ = add_blip_for_car 208@
change_blip_display 238@ {display} BlipDisplay.BlipOnly
251@ = 1
262@ = 1

:FINALEC_34652
289@ = 7

:FINALEC_34659
if 
  289@ == 7
goto_if_false @FINALEC_34729
if 
  locate_car_2d 152@ {x} 2431.0 {y} -1644.0 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_34729
$carhealth_fc = 3
289@ = 8

:FINALEC_34729
if 
  292@ == 1
goto_if_false @FINALEC_35614
if 
  locate_car_2d 153@ {x} 2215.8999 {y} -1791.8199 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_35614
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_object 165@
delete_object 169@
165@ = create_object #LA_FUCKCAR2 {x} 2237.0439 {y} -1744.5 {z} 12.5425
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 1.2003
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2239.1541 {y} -1747.326 {z} 12.542
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
167@ = create_object #LA_FUCKCAR2 {x} 2297.8911 {y} -1742.105 {z} 12.5469
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 185.7601
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2300.6189 {y} -1745.254 {z} 12.5469
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35119
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_35119
169@ = create_object #LA_FUCKCAR2 {x} 2355.793 {y} -1734.063 {z} 12.3828
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 1.2003
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2357.7161 {y} -1730.051 {z} 12.3828
set_char_heading 225@ {heading} 329.17
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 225@ {state} True
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2365.0669 {y} -1758.149 {z} 12.5469
set_char_heading 226@ {heading} 329.17
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 226@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35383
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_35383
227@ = create_char PedType.Mission1 {modelId} 7 {x} 2308.3191 {y} -1721.584 {z} 12.742
set_char_heading 227@ {heading} 329.17
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 227@ {state} True
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57123
228@ = create_char PedType.Mission1 {modelId} 7 {x} 2308.3191 {y} -1721.584 {z} 12.742
set_char_heading 228@ {heading} 329.17
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 228@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35607
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_35607
292@ = 2

:FINALEC_35614
if 
  292@ == 2
goto_if_false @FINALEC_35722
if 
  locate_car_2d 153@ {x} 2342.5601 {y} -1603.76 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_35722
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_char 227@
delete_char 228@
delete_object 165@
delete_object 167@
delete_object 169@
292@ = 3

:FINALEC_35722
if 
  292@ == 2
goto_if_false @FINALEC_36065
if 
  locate_car_2d 153@ {x} 2430.8101 {y} -1595.72 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_36065
165@ = create_object #LA_FUCKCAR2 {x} 2430.76 {y} -1653.03 {z} 25.34
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 268.0927
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2426.7 {y} -1653.77 {z} 25.595
set_char_heading 223@ {heading} 4.29
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35938
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_35938
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2435.959 {y} -1653.318 {z} 25.64
set_char_heading 224@ {heading} 0.0
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_36058
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57123

:FINALEC_36058
292@ = 3

:FINALEC_36065
if 
  8 > 289@
goto_if_false @FINALEC_37016
if 
  290@ == 2
goto_if_false @FINALEC_37016
gosub @FINALEC_56977
if 
  204@ == 0
goto_if_false @FINALEC_36173
if 
  203@ == 0
goto_if_false @FINALEC_36173
set_lvar_int_to_constant 187@ = 14862
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_56935

:FINALEC_36173
if 
  204@ == 0
goto_if_false @FINALEC_36238
if 
  203@ == 1
goto_if_false @FINALEC_36238
set_lvar_int_to_constant 187@ = 14861
set_lvar_text_label 188@s = 'ROT4_TB'
gosub @FINALEC_56935

:FINALEC_36238
if 
  204@ == 0
goto_if_false @FINALEC_36303
if 
  203@ == 2
goto_if_false @FINALEC_36303
set_lvar_int_to_constant 187@ = 14867
set_lvar_text_label 188@s = 'ROT4_TH'
gosub @FINALEC_56935

:FINALEC_36303
if 
  206@ == 1
goto_if_false @FINALEC_36386
if 
  204@ == 0
goto_if_false @FINALEC_36386
if 
  203@ == 3
goto_if_false @FINALEC_36386
set_lvar_int_to_constant 187@ = 14845
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_56935

:FINALEC_36386
if 
  206@ == 2
goto_if_false @FINALEC_36469
if 
  204@ == 0
goto_if_false @FINALEC_36469
if 
  203@ == 4
goto_if_false @FINALEC_36469
set_lvar_int_to_constant 187@ = 14846
set_lvar_text_label 188@s = 'ROT4_NS'
gosub @FINALEC_56935

:FINALEC_36469
if 
  204@ == 0
goto_if_false @FINALEC_36534
if 
  203@ == 5
goto_if_false @FINALEC_36534
set_lvar_int_to_constant 187@ = 14868
set_lvar_text_label 188@s = 'ROT4_TJ'
gosub @FINALEC_56935

:FINALEC_36534
if 
  206@ == 3
goto_if_false @FINALEC_36617
if 
  204@ == 0
goto_if_false @FINALEC_36617
if 
  203@ == 6
goto_if_false @FINALEC_36617
set_lvar_int_to_constant 187@ = 14877
set_lvar_text_label 188@s = 'ROT4_SB'
gosub @FINALEC_56935

:FINALEC_36617
if 
  204@ == 0
goto_if_false @FINALEC_36682
if 
  203@ == 7
goto_if_false @FINALEC_36682
set_lvar_int_to_constant 187@ = 14851
set_lvar_text_label 188@s = 'ROT4_PC'
gosub @FINALEC_56935

:FINALEC_36682
if 
  206@ == 4
goto_if_false @FINALEC_36765
if 
  204@ == 0
goto_if_false @FINALEC_36765
if 
  203@ == 8
goto_if_false @FINALEC_36765
set_lvar_int_to_constant 187@ = 14892
set_lvar_text_label 188@s = 'ROT4_OA'
gosub @FINALEC_56935

:FINALEC_36765
if 
  204@ == 0
goto_if_false @FINALEC_36830
if 
  203@ == 9
goto_if_false @FINALEC_36830
set_lvar_int_to_constant 187@ = 14893
set_lvar_text_label 188@s = 'ROT4_OD'
gosub @FINALEC_56935

:FINALEC_36830
if 
  206@ == 4
goto_if_false @FINALEC_36951
if 
  locate_char_any_means_2d $scplayer {x} 2431.3201 {y} -1528.48 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_36951
if 
  204@ == 0
goto_if_false @FINALEC_36951
if 
  203@ == 10
goto_if_false @FINALEC_36951
set_lvar_int_to_constant 187@ = 14857
set_lvar_text_label 188@s = 'ROT4_RA'
gosub @FINALEC_56935

:FINALEC_36951
if 
  204@ == 0
goto_if_false @FINALEC_37016
if 
  203@ == 11
goto_if_false @FINALEC_37016
set_lvar_int_to_constant 187@ = 14894
set_lvar_text_label 188@s = 'ROT4_RD'
gosub @FINALEC_56935

:FINALEC_37016
if 
  260@ == 1
goto_if_false @FINALEC_37168
if 
  not is_car_dead 217@
goto_if_false @FINALEC_37168
if 
  not is_char_dead 154@
goto_if_false @FINALEC_37073
goto @FINALEC_37168

:FINALEC_37073
if 
  not is_char_dead 155@
goto_if_false @FINALEC_37156
if 
  is_char_in_car 155@ {vehicle} 217@
goto_if_false @FINALEC_37149
219@ = get_driver_of_car 217@
if 
  219@ == -1
goto_if_false @FINALEC_37149
task_shuffle_to_next_car_seat 155@ {vehicle} 217@
260@ = 2

:FINALEC_37149
goto @FINALEC_37168

:FINALEC_37156
stop_playback_recorded_car 217@
260@ = 2

:FINALEC_37168
if 
  260@ == 2
goto_if_false @FINALEC_37214
if 
  is_char_dead 155@
goto_if_false @FINALEC_37214
stop_playback_recorded_car 217@
260@ = 3

:FINALEC_37214
if 
  249@ == 1
goto_if_false @FINALEC_37330
if 
  not is_car_dead 217@
goto_if_false @FINALEC_37298
if 
  not is_playback_going_on_for_car 217@
goto_if_false @FINALEC_37291
mark_car_as_no_longer_needed 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
remove_blip 247@
249@ = 2

:FINALEC_37291
goto @FINALEC_37330

:FINALEC_37298
stop_playback_recorded_car 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
mark_car_as_no_longer_needed 217@
remove_blip 247@
249@ = 2

:FINALEC_37330
if 
  261@ == 1
goto_if_false @FINALEC_37482
if 
  not is_car_dead 218@
goto_if_false @FINALEC_37482
if 
  not is_char_dead 156@
goto_if_false @FINALEC_37387
goto @FINALEC_37482

:FINALEC_37387
if 
  not is_char_dead 207@
goto_if_false @FINALEC_37470
if 
  is_char_in_car 207@ {vehicle} 218@
goto_if_false @FINALEC_37463
219@ = get_driver_of_car 218@
if 
  219@ == -1
goto_if_false @FINALEC_37463
task_shuffle_to_next_car_seat 207@ {vehicle} 218@
261@ = 2

:FINALEC_37463
goto @FINALEC_37482

:FINALEC_37470
stop_playback_recorded_car 218@
261@ = 2

:FINALEC_37482
if 
  261@ == 2
goto_if_false @FINALEC_37528
if 
  is_char_dead 207@
goto_if_false @FINALEC_37528
stop_playback_recorded_car 218@
261@ = 3

:FINALEC_37528
if 
  250@ == 1
goto_if_false @FINALEC_37644
if 
  not is_car_dead 218@
goto_if_false @FINALEC_37612
if 
  not is_playback_going_on_for_car 218@
goto_if_false @FINALEC_37605
mark_car_as_no_longer_needed 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
remove_blip 248@
250@ = 2

:FINALEC_37605
goto @FINALEC_37644

:FINALEC_37612
stop_playback_recorded_car 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 218@
remove_blip 248@
250@ = 2

:FINALEC_37644
if 
  294@ == 1
goto_if_false @FINALEC_37796
if 
  not is_car_dead 272@
goto_if_false @FINALEC_37796
if 
  not is_char_dead 273@
goto_if_false @FINALEC_37701
goto @FINALEC_37796

:FINALEC_37701
if 
  not is_char_dead 274@
goto_if_false @FINALEC_37784
if 
  is_char_in_car 274@ {vehicle} 272@
goto_if_false @FINALEC_37777
219@ = get_driver_of_car 272@
if 
  219@ == -1
goto_if_false @FINALEC_37777
task_shuffle_to_next_car_seat 274@ {vehicle} 272@
294@ = 2

:FINALEC_37777
goto @FINALEC_37796

:FINALEC_37784
stop_playback_recorded_car 272@
294@ = 2

:FINALEC_37796
if 
  294@ == 2
goto_if_false @FINALEC_37842
if 
  is_char_dead 274@
goto_if_false @FINALEC_37842
stop_playback_recorded_car 272@
294@ = 3

:FINALEC_37842
if 
  293@ == 1
goto_if_false @FINALEC_37958
if 
  not is_car_dead 272@
goto_if_false @FINALEC_37926
if 
  not is_playback_going_on_for_car 272@
goto_if_false @FINALEC_37919
mark_car_as_no_longer_needed 272@
mark_char_as_no_longer_needed 273@
mark_char_as_no_longer_needed 274@
remove_blip 278@
293@ = 2

:FINALEC_37919
goto @FINALEC_37958

:FINALEC_37926
stop_playback_recorded_car 272@
mark_char_as_no_longer_needed 273@
mark_char_as_no_longer_needed 274@
mark_car_as_no_longer_needed 272@
remove_blip 278@
293@ = 2

:FINALEC_37958
if 
  296@ == 1
goto_if_false @FINALEC_38110
if 
  not is_car_dead 275@
goto_if_false @FINALEC_38110
if 
  not is_char_dead 276@
goto_if_false @FINALEC_38015
goto @FINALEC_38110

:FINALEC_38015
if 
  not is_char_dead 277@
goto_if_false @FINALEC_38098
if 
  is_char_in_car 277@ {vehicle} 275@
goto_if_false @FINALEC_38091
219@ = get_driver_of_car 275@
if 
  219@ == -1
goto_if_false @FINALEC_38091
task_shuffle_to_next_car_seat 277@ {vehicle} 275@
296@ = 2

:FINALEC_38091
goto @FINALEC_38110

:FINALEC_38098
stop_playback_recorded_car 275@
296@ = 2

:FINALEC_38110
if 
  296@ == 2
goto_if_false @FINALEC_38156
if 
  is_char_dead 277@
goto_if_false @FINALEC_38156
stop_playback_recorded_car 275@
296@ = 3

:FINALEC_38156
if 
  295@ == 1
goto_if_false @FINALEC_38272
if 
  not is_car_dead 275@
goto_if_false @FINALEC_38240
if 
  not is_playback_going_on_for_car 275@
goto_if_false @FINALEC_38233
mark_car_as_no_longer_needed 275@
mark_char_as_no_longer_needed 276@
mark_char_as_no_longer_needed 277@
remove_blip 279@
295@ = 2

:FINALEC_38233
goto @FINALEC_38272

:FINALEC_38240
stop_playback_recorded_car 275@
mark_char_as_no_longer_needed 276@
mark_char_as_no_longer_needed 277@
mark_car_as_no_longer_needed 275@
remove_blip 279@
295@ = 2

:FINALEC_38272
if 
  262@ == 1
goto_if_false @FINALEC_38424
if 
  not is_car_dead 208@
goto_if_false @FINALEC_38424
if 
  not is_char_dead 38@
goto_if_false @FINALEC_38329
goto @FINALEC_38424

:FINALEC_38329
if 
  not is_char_dead 39@
goto_if_false @FINALEC_38412
if 
  is_char_in_car 39@ {vehicle} 208@
goto_if_false @FINALEC_38405
219@ = get_driver_of_car 208@
if 
  219@ == -1
goto_if_false @FINALEC_38405
task_shuffle_to_next_car_seat 39@ {vehicle} 208@
262@ = 2

:FINALEC_38405
goto @FINALEC_38424

:FINALEC_38412
stop_playback_recorded_car 208@
262@ = 2

:FINALEC_38424
if 
  262@ == 2
goto_if_false @FINALEC_38470
if 
  is_char_dead 39@
goto_if_false @FINALEC_38470
stop_playback_recorded_car 208@
262@ = 3

:FINALEC_38470
if 
  251@ == 1
goto_if_false @FINALEC_38586
if 
  not is_car_dead 208@
goto_if_false @FINALEC_38554
if 
  not is_playback_going_on_for_car 208@
goto_if_false @FINALEC_38547
mark_car_as_no_longer_needed 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
remove_blip 238@
251@ = 2

:FINALEC_38547
goto @FINALEC_38586

:FINALEC_38554
stop_playback_recorded_car 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 208@
remove_blip 238@
251@ = 2

:FINALEC_38586
if 
  267@ == 1
goto_if_false @FINALEC_38798
if 
  not is_car_dead 213@
goto_if_false @FINALEC_38798
if 
  not is_char_dead 42@
goto_if_false @FINALEC_38643
goto @FINALEC_38798

:FINALEC_38643
if 
  not is_char_dead 43@
goto_if_false @FINALEC_38756
if 
  is_char_in_car 43@ {vehicle} 213@
goto_if_false @FINALEC_38749
219@ = get_driver_of_car 213@
if 
  219@ == -1
goto_if_false @FINALEC_38749
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 213@
267@ = 2

:FINALEC_38749
goto @FINALEC_38798

:FINALEC_38756
set_car_forward_speed 213@ {forwardSpeed} 18.0
stop_playback_recorded_car 213@
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003
267@ = 2

:FINALEC_38798
if 
  267@ == 2
goto_if_false @FINALEC_38890
if 
  is_char_dead 43@
goto_if_false @FINALEC_38890
stop_playback_recorded_car 213@
if 
  not is_car_dead 213@
goto_if_false @FINALEC_38883
set_car_forward_speed 213@ {forwardSpeed} 18.0
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_38883
267@ = 3

:FINALEC_38890
if 
  256@ == 1
goto_if_false @FINALEC_38977
if 
  is_char_dead 42@
goto_if_false @FINALEC_38977
if or
  is_char_dead 43@
  is_car_dead 213@
goto_if_false @FINALEC_38977
stop_playback_recorded_car 213@
remove_blip 243@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
256@ = 2

:FINALEC_38977
if 
  268@ == 1
goto_if_false @FINALEC_39189
if 
  not is_car_dead 214@
goto_if_false @FINALEC_39189
if 
  not is_char_dead 44@
goto_if_false @FINALEC_39034
goto @FINALEC_39189

:FINALEC_39034
if 
  not is_char_dead 45@
goto_if_false @FINALEC_39147
if 
  is_char_in_car 45@ {vehicle} 214@
goto_if_false @FINALEC_39140
219@ = get_driver_of_car 214@
if 
  219@ == -1
goto_if_false @FINALEC_39140
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 214@
268@ = 2

:FINALEC_39140
goto @FINALEC_39189

:FINALEC_39147
set_car_forward_speed 214@ {forwardSpeed} 18.0
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003
268@ = 2

:FINALEC_39189
if 
  268@ == 2
goto_if_false @FINALEC_39281
if 
  is_char_dead 45@
goto_if_false @FINALEC_39281
stop_playback_recorded_car 214@
if 
  not is_car_dead 214@
goto_if_false @FINALEC_39274
set_car_forward_speed 214@ {forwardSpeed} 18.0
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_39274
268@ = 3

:FINALEC_39281
if 
  257@ == 1
goto_if_false @FINALEC_39368
if 
  is_char_dead 44@
goto_if_false @FINALEC_39368
if or
  is_char_dead 45@
  is_car_dead 214@
goto_if_false @FINALEC_39368
stop_playback_recorded_car 214@
remove_blip 244@
mark_car_as_no_longer_needed 214@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
257@ = 2

:FINALEC_39368
if 
  $carhealth_fc == 3
goto_if_false @FINALEC_56928
if 
  288@ == 0
goto_if_false @FINALEC_39869
if 
  not is_car_dead 153@
goto_if_false @FINALEC_39869
if 
  not is_car_dead 152@
goto_if_false @FINALEC_39869
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_39483
stop_playback_recorded_car 152@

:FINALEC_39483
stop_playback_recorded_car 152@
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_39509
stop_playback_recorded_car 153@

:FINALEC_39509
stop_playback_recorded_car 153@
set_fixed_camera_position 2453.8611 {y} -1651.519 {z} 11.6415 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.1311 {y} -1651.287 {z} 12.2845 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 152@ {path} 229
set_la_riots False
clear_area 2453.8611 {y} -1651.519 {z} 11.6415 {radius} 100.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_car_coordinates 153@ {x} 2431.8799 {y} -1600.34 {z} 25.26
delete_char $sweet
if 
  is_char_in_any_car $scplayer
goto_if_false @FINALEC_39683
warp_char_from_car_to_coord $scplayer {x} 2422.97 {y} -1607.87 {z} 25.55
goto @FINALEC_39703

:FINALEC_39683
set_char_coordinates $scplayer {x} 2422.97 {y} -1607.87 {z} 25.55

:FINALEC_39703
TIMERA = 0
TIMERB = 0
delete_car 153@
delete_car 213@
delete_car 214@
delete_car 217@
delete_car 218@
delete_car 272@
delete_car 275@
delete_car 208@
delete_object 165@
delete_object 167@
delete_object 169@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 154@
delete_char 155@
delete_char 156@
delete_char 207@
delete_char 273@
delete_char 274@
delete_char 276@
delete_char 277@
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_char 227@
delete_char 228@
288@ = 1

:FINALEC_39869
if 
  not is_car_dead 152@
goto_if_false @FINALEC_40819
if 
  288@ == 1
goto_if_false @FINALEC_39942
if 
  TIMERB > 1500
goto_if_false @FINALEC_39942
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
set_time_scale 0.8
288@ = 2

:FINALEC_39942
if 
  288@ == 2
goto_if_false @FINALEC_39993
if 
  TIMERB > 1700
goto_if_false @FINALEC_39993
set_time_scale 0.7
288@ = 3

:FINALEC_39993
if 
  288@ == 3
goto_if_false @FINALEC_40044
if 
  TIMERB > 1900
goto_if_false @FINALEC_40044
set_time_scale 0.6
288@ = 4

:FINALEC_40044
if 
  288@ == 4
goto_if_false @FINALEC_40095
if 
  TIMERB > 2100
goto_if_false @FINALEC_40095
set_time_scale 0.5
288@ = 5

:FINALEC_40095
if 
  288@ == 5
goto_if_false @FINALEC_40146
if 
  TIMERB > 2300
goto_if_false @FINALEC_40146
set_time_scale 0.4
288@ = 6

:FINALEC_40146
if 
  288@ == 6
goto_if_false @FINALEC_40197
if 
  TIMERB > 2500
goto_if_false @FINALEC_40197
set_time_scale 0.3
288@ = 7

:FINALEC_40197
if 
  288@ == 7
goto_if_false @FINALEC_40248
if 
  TIMERB > 2700
goto_if_false @FINALEC_40248
set_time_scale 0.2
288@ = 8

:FINALEC_40248
if 
  288@ == 8
goto_if_false @FINALEC_40415
if 
  TIMERB > 3360
goto_if_false @FINALEC_40415
280@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.69 {yOffset} 3.607 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 280@
281@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.137 {yOffset} 3.674 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 281@
282@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.076 {yOffset} 3.706 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 282@
288@ = 9

:FINALEC_40415
if 
  288@ == 9
goto_if_false @FINALEC_40819
if 
  TIMERB > 4250
goto_if_false @FINALEC_40819
set_fixed_camera_position 2463.7461 {y} -1663.425 {z} 12.4388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2462.8311 {y} -1663.022 {z} 12.4479 {switchStyle} SwitchType.JumpCut
set_time_scale 0.7
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
283@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 3.027 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 283@
284@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 2.444 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 284@
285@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 1.872 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 285@
286@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -0.462 {yOffset} 0.761 {zOffset} 1.7 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 286@
287@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -0.462 {yOffset} 0.197 {zOffset} 1.7 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 287@
TIMERA = 0
288@ = 10

:FINALEC_40819
if 
  288@ == 10
goto_if_false @FINALEC_56928
if 
  TIMERA > 3000
goto_if_false @FINALEC_56928
set_time_scale 1.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEC_40878
if 
  get_fading_status 
goto_if_false @FINALEC_40902
wait 0
goto @FINALEC_40878

:FINALEC_40902
add_score $player1 {money} 250000
clear_onscreen_counter $health_fc
delete_char $sweet
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
remove_animation "FINALE"
remove_animation "FINALE2"
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 576
delete_car 152@
delete_char 49@
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
kill_fx_system 283@
kill_fx_system 284@
kill_fx_system 285@
kill_fx_system 286@
kill_fx_system 287@
load_scene_in_direction 2445.6399 {y} -1650.53 {z} 14.63 {heading} 0.0
load_cutscene 'RIOT4E1'

:FINALEC_41106
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41130
wait 0
goto @FINALEC_41106

:FINALEC_41130
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41139
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41163
wait 0
goto @FINALEC_41139

:FINALEC_41163
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41178
if 
  get_fading_status 
goto_if_false @FINALEC_41202
wait 0
goto @FINALEC_41178

:FINALEC_41202
if 
  not was_cutscene_skipped 
goto_if_false @FINALEC_41322
load_cutscene 'RIOT4E2'

:FINALEC_41226
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41250
wait 0
goto @FINALEC_41226

:FINALEC_41250
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41259
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41283
wait 0
goto @FINALEC_41259

:FINALEC_41283
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41298
if 
  get_fading_status 
goto_if_false @FINALEC_41322
wait 0
goto @FINALEC_41298

:FINALEC_41322
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEC_41337
if 
  get_fading_status 
goto_if_false @FINALEC_41361
wait 0
goto @FINALEC_41337

:FINALEC_41361
set_area_visible 3
load_cutscene 'EPILOG'

:FINALEC_41376
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41400
wait 0
goto @FINALEC_41376

:FINALEC_41400
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41409
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41433
wait 0
goto @FINALEC_41409

:FINALEC_41433
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41448
if 
  get_fading_status 
goto_if_false @FINALEC_41472
wait 0
goto @FINALEC_41448

:FINALEC_41472
set_area_visible 0
set_player_control $player1 {state} False
switch_widescreen True
set_char_coordinates $scplayer {x} 2523.9751 {y} -1749.962 {z} 58.702
freeze_char_position $scplayer {state} True
set_car_density_multiplier 2.0
set_ped_density_multiplier 1.5
set_la_riots False
load_scene 2514.668 {y} -1733.4611 {z} 56.3075
force_weather_now WeatherType.SunnySmogLa
set_time_of_day 12 {minutes} 0
preload_beat_track 9

:FINALEC_41563
if 
  298@ <> 2
goto_if_false @FINALEC_41597
wait 0
298@ = get_beat_track_status 
goto @FINALEC_41563

:FINALEC_41597
play_beat_track 
set_music_does_fade False
set_darkness_effect True {pitchBlack} -1
start_credits 
do_fade 250 {direction} Fade.In
camera_reset_new_scriptables 
camera_set_vector_move 2523.9751 {fromY} -1749.962 {fromZ} 57.202 {toX} 2514.887 {toY} -1733.851 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2523.7549 {fromY} -1749.572 {fromZ} 56.3075 {toX} 2514.668 {toY} -1733.4611 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41694
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_41725
wait 0
gosub @FINALEC_57086
goto @FINALEC_41694

:FINALEC_41725
camera_set_vector_move 2514.887 {fromY} -1733.851 {fromZ} 57.202 {toX} 2503.344 {toY} -1713.386 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2514.668 {fromY} -1733.4611 {fromZ} 56.3075 {toX} 2503.124 {toY} -1712.996 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41799
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_41830
wait 0
gosub @FINALEC_57086
goto @FINALEC_41799

:FINALEC_41830
camera_set_vector_move 2503.344 {fromY} -1713.386 {fromZ} 57.202 {toX} 2491.5549 {toY} -1692.485 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2503.124 {fromY} -1712.996 {fromZ} 56.3075 {toX} 2491.335 {toY} -1692.0959 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41904
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_41935
wait 0
gosub @FINALEC_57086
goto @FINALEC_41904

:FINALEC_41935
camera_set_vector_move 2491.5549 {fromY} -1692.485 {fromZ} 57.202 {toX} 2479.7661 {toY} -1671.585 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2491.335 {fromY} -1692.0959 {fromZ} 56.3075 {toX} 2479.5459 {toY} -1671.196 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42009
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42040
wait 0
gosub @FINALEC_57086
goto @FINALEC_42009

:FINALEC_42040
camera_set_vector_move 2479.7661 {fromY} -1671.585 {fromZ} 57.202 {toX} 2467.731 {toY} -1650.249 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2479.5459 {fromY} -1671.196 {fromZ} 56.3075 {toX} 2467.511 {toY} -1649.86 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42114
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42145
wait 0
gosub @FINALEC_57086
goto @FINALEC_42114

:FINALEC_42145
camera_set_vector_move 2467.731 {fromY} -1650.249 {fromZ} 57.202 {toX} 2455.4509 {toY} -1628.478 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2467.511 {fromY} -1649.86 {fromZ} 56.3075 {toX} 2455.231 {toY} -1628.089 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42219
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42250
wait 0
gosub @FINALEC_57086
goto @FINALEC_42219

:FINALEC_42250
camera_set_vector_move 2455.4509 {fromY} -1628.478 {fromZ} 57.202 {toX} 2445.135 {toY} -1610.1899 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2455.231 {fromY} -1628.089 {fromZ} 56.3075 {toX} 2444.916 {toY} -1609.801 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42324
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42355
wait 0
gosub @FINALEC_57086
goto @FINALEC_42324

:FINALEC_42355
camera_set_vector_move 2445.135 {fromY} -1610.1899 {fromZ} 57.202 {toX} 2433.8379 {toY} -1590.161 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2444.916 {fromY} -1609.801 {fromZ} 56.3075 {toX} 2433.6179 {toY} -1589.771 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42429
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42460
wait 0
gosub @FINALEC_57086
goto @FINALEC_42429

:FINALEC_42460
camera_set_vector_move 2433.8379 {fromY} -1590.161 {fromZ} 57.202 {toX} 2423.2771 {toY} -1571.437 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2433.6179 {fromY} -1589.771 {fromZ} 56.3075 {toX} 2423.0569 {toY} -1571.048 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42534
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42565
wait 0
gosub @FINALEC_57086
goto @FINALEC_42534

:FINALEC_42565
camera_set_vector_move 2423.2771 {fromY} -1571.437 {fromZ} 57.202 {toX} 2412.7161 {toY} -1552.714 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2423.0569 {fromY} -1571.048 {fromZ} 56.3075 {toX} 2412.4961 {toY} -1552.325 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42639
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42670
wait 0
gosub @FINALEC_57086
goto @FINALEC_42639

:FINALEC_42670
camera_set_vector_move 2412.7161 {fromY} -1552.714 {fromZ} 57.202 {toX} 2401.9089 {toY} -1533.5551 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2412.4961 {fromY} -1552.325 {fromZ} 56.3075 {toX} 2401.689 {toY} -1533.166 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42744
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42775
wait 0
gosub @FINALEC_57086
goto @FINALEC_42744

:FINALEC_42775
camera_set_vector_move 2401.9089 {fromY} -1533.5551 {fromZ} 57.202 {toX} 2390.6111 {toY} -1513.526 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2401.689 {fromY} -1533.166 {fromZ} 56.3075 {toX} 2390.3911 {toY} -1513.136 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42849
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42880
wait 0
gosub @FINALEC_57086
goto @FINALEC_42849

:FINALEC_42880
camera_set_vector_move 2390.6111 {fromY} -1513.526 {fromZ} 57.202 {toX} 2379.313 {toY} -1493.496 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2390.3911 {fromY} -1513.136 {fromZ} 56.3075 {toX} 2379.094 {toY} -1493.1071 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42954
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42985
wait 0
gosub @FINALEC_57086
goto @FINALEC_42954

:FINALEC_42985
camera_set_vector_move 2379.313 {fromY} -1493.496 {fromZ} 57.202 {toX} 2367.2791 {toY} -1472.161 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2379.094 {fromY} -1493.1071 {fromZ} 56.3075 {toX} 2367.0591 {toY} -1471.771 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43059
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43090
wait 0
gosub @FINALEC_57086
goto @FINALEC_43059

:FINALEC_43090
camera_set_vector_move 2367.2791 {fromY} -1472.161 {fromZ} 57.202 {toX} 2355.981 {toY} -1452.131 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2367.0591 {fromY} -1471.771 {fromZ} 56.3075 {toX} 2355.761 {toY} -1451.741 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43164
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43195
wait 0
gosub @FINALEC_57086
goto @FINALEC_43164

:FINALEC_43195
camera_set_vector_move 2355.981 {fromY} -1452.131 {fromZ} 57.202 {toX} 2343.946 {toY} -1430.795 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2355.761 {fromY} -1451.741 {fromZ} 56.3075 {toX} 2343.7261 {toY} -1430.406 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43269
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43300
wait 0
gosub @FINALEC_57086
goto @FINALEC_43269

:FINALEC_43300
camera_set_vector_move 2343.946 {fromY} -1430.795 {fromZ} 57.202 {toX} 2332.4031 {toY} -1410.33 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2343.7261 {fromY} -1430.406 {fromZ} 56.3075 {toX} 2332.1831 {toY} -1409.941 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43374
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43405
wait 0
gosub @FINALEC_57086
goto @FINALEC_43374

:FINALEC_43405
camera_set_vector_move 2332.4031 {fromY} -1410.33 {fromZ} 57.202 {toX} 2321.5959 {toY} -1391.172 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2332.1831 {fromY} -1409.941 {fromZ} 56.3075 {toX} 2321.376 {toY} -1390.782 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43479
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43510
wait 0
gosub @FINALEC_57086
goto @FINALEC_43479

:FINALEC_43510
camera_set_vector_move 2321.5959 {fromY} -1391.172 {fromZ} 57.202 {toX} 2312.0171 {toY} -1374.1899 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2321.376 {fromY} -1390.782 {fromZ} 56.3075 {toX} 2311.7981 {toY} -1373.8 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43584
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43615
wait 0
gosub @FINALEC_57086
goto @FINALEC_43584

:FINALEC_43615
do_fade 6000 {direction} Fade.Out
camera_set_vector_move 2312.0171 {fromY} -1374.1899 {fromZ} 57.202 {toX} 2300.9651 {toY} -1354.5959 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2311.7981 {fromY} -1373.8 {fromZ} 56.3075 {toX} 2300.7451 {toY} -1354.2061 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43696
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43727
wait 0
gosub @FINALEC_57086
goto @FINALEC_43696

:FINALEC_43727
camera_set_vector_move 2300.9651 {fromY} -1354.5959 {fromZ} 57.202 {toX} 2289.667 {toY} -1334.566 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2300.7451 {fromY} -1354.2061 {fromZ} 56.3075 {toX} 2289.448 {toY} -1334.177 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43801
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43832
wait 0
gosub @FINALEC_57086
goto @FINALEC_43801

:FINALEC_43832
camera_set_vector_move 2289.667 {fromY} -1334.566 {fromZ} 57.202 {toX} 2277.8779 {toY} -1313.666 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2289.448 {fromY} -1334.177 {fromZ} 56.3075 {toX} 2277.658 {toY} -1313.276 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43906
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43937
wait 0
gosub @FINALEC_57086
goto @FINALEC_43906

:FINALEC_43937
set_char_coordinates $scplayer {x} -1014.557 {y} -1422.255 {z} 186.1819
freeze_char_position $scplayer {state} True
set_time_of_day 10 {minutes} 0
force_weather_now WeatherType.SunnyCountryside
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -1014.557 {fromY} -1422.255 {fromZ} 184.6819 {toX} -1037.938 {toY} -1423.075 {toZ} 186.8606 {time} 2000 {ease} False
camera_set_vector_track -1015.556 {fromY} -1422.29 {fromZ} 184.6751 {toX} -1038.937 {toY} -1423.11 {toZ} 186.8538 {time} 2000 {ease} False

:FINALEC_44060
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44091
wait 0
gosub @FINALEC_57086
goto @FINALEC_44060

:FINALEC_44091
camera_set_vector_move -1037.938 {fromY} -1423.075 {fromZ} 186.8606 {toX} -1063.307 {toY} -1423.965 {toZ} 189.2248 {time} 2000 {ease} False
camera_set_vector_track -1038.937 {fromY} -1423.11 {fromZ} 186.8538 {toX} -1064.306 {toY} -1424.0 {toZ} 189.218 {time} 2000 {ease} False

:FINALEC_44165
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44196
wait 0
gosub @FINALEC_57086
goto @FINALEC_44165

:FINALEC_44196
camera_set_vector_move -1063.307 {fromY} -1423.965 {fromZ} 189.2248 {toX} -1089.1591 {toY} -1425.217 {toZ} 191.6353 {time} 2000 {ease} False
camera_set_vector_track -1064.306 {fromY} -1424.0 {fromZ} 189.218 {toX} -1090.156 {toY} -1425.2841 {toZ} 191.6285 {time} 2000 {ease} False

:FINALEC_44270
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44301
wait 0
gosub @FINALEC_57086
goto @FINALEC_44270

:FINALEC_44301
camera_set_vector_move -1089.1591 {fromY} -1425.217 {fromZ} 191.6353 {toX} -1114.49 {toY} -1426.917 {toZ} 193.9995 {time} 2000 {ease} False
camera_set_vector_track -1090.156 {fromY} -1425.2841 {fromZ} 191.6285 {toX} -1115.488 {toY} -1426.984 {toZ} 193.9927 {time} 2000 {ease} False

:FINALEC_44375
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44406
wait 0
gosub @FINALEC_57086
goto @FINALEC_44375

:FINALEC_44406
camera_set_vector_move -1114.49 {fromY} -1426.917 {fromZ} 193.9995 {toX} -1139.822 {toY} -1428.616 {toZ} 196.3636 {time} 2000 {ease} False
camera_set_vector_track -1115.488 {fromY} -1426.984 {fromZ} 193.9927 {toX} -1140.8199 {toY} -1428.683 {toZ} 196.3568 {time} 2000 {ease} False

:FINALEC_44480
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44511
wait 0
gosub @FINALEC_57086
goto @FINALEC_44480

:FINALEC_44511
camera_set_vector_move -1139.822 {fromY} -1428.616 {fromZ} 196.3636 {toX} -1165.651 {toY} -1430.349 {toZ} 198.7742 {time} 2000 {ease} False
camera_set_vector_track -1140.8199 {fromY} -1428.683 {fromZ} 196.3568 {toX} -1166.649 {toY} -1430.416 {toZ} 198.7673 {time} 2000 {ease} False

:FINALEC_44585
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44616
wait 0
gosub @FINALEC_57086
goto @FINALEC_44585

:FINALEC_44616
camera_set_vector_move -1165.651 {fromY} -1430.349 {fromZ} 198.7742 {toX} -1191.48 {toY} -1432.082 {toZ} 201.1847 {time} 2000 {ease} False
camera_set_vector_track -1166.649 {fromY} -1430.416 {fromZ} 198.7673 {toX} -1192.4771 {toY} -1432.149 {toZ} 201.1779 {time} 2000 {ease} False

:FINALEC_44690
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44721
wait 0
gosub @FINALEC_57086
goto @FINALEC_44690

:FINALEC_44721
camera_set_vector_move -1191.48 {fromY} -1432.082 {fromZ} 201.1847 {toX} -1216.812 {toY} -1433.782 {toZ} 203.5488 {time} 2000 {ease} False
camera_set_vector_track -1192.4771 {fromY} -1432.149 {fromZ} 201.1779 {toX} -1217.809 {toY} -1433.849 {toZ} 203.542 {time} 2000 {ease} False

:FINALEC_44795
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44826
wait 0
gosub @FINALEC_57086
goto @FINALEC_44795

:FINALEC_44826
camera_set_vector_move -1216.812 {fromY} -1433.782 {fromZ} 203.5488 {toX} -1242.1429 {toY} -1435.481 {toZ} 205.913 {time} 2000 {ease} False
camera_set_vector_track -1217.809 {fromY} -1433.849 {fromZ} 203.542 {toX} -1243.141 {toY} -1435.548 {toZ} 205.9062 {time} 2000 {ease} False

:FINALEC_44900
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44931
wait 0
gosub @FINALEC_57086
goto @FINALEC_44900

:FINALEC_44931
camera_set_vector_move -1242.1429 {fromY} -1435.481 {fromZ} 205.913 {toX} -1267.972 {toY} -1437.214 {toZ} 208.3235 {time} 2000 {ease} False
camera_set_vector_track -1243.141 {fromY} -1435.548 {fromZ} 205.9062 {toX} -1268.97 {toY} -1437.281 {toZ} 208.3167 {time} 2000 {ease} False

:FINALEC_45005
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45036
wait 0
gosub @FINALEC_57086
goto @FINALEC_45005

:FINALEC_45036
camera_set_vector_move -1267.972 {fromY} -1437.214 {fromZ} 208.3235 {toX} -1293.801 {toY} -1438.947 {toZ} 210.7341 {time} 2000 {ease} False
camera_set_vector_track -1268.97 {fromY} -1437.281 {fromZ} 208.3167 {toX} -1294.798 {toY} -1439.014 {toZ} 210.7272 {time} 2000 {ease} False

:FINALEC_45110
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45141
wait 0
gosub @FINALEC_57086
goto @FINALEC_45110

:FINALEC_45141
camera_set_vector_move -1293.801 {fromY} -1438.947 {fromZ} 210.7341 {toX} -1319.629 {toY} -1440.6801 {toZ} 213.1446 {time} 2000 {ease} False
camera_set_vector_track -1294.798 {fromY} -1439.014 {fromZ} 210.7272 {toX} -1320.627 {toY} -1440.7469 {toZ} 213.1378 {time} 2000 {ease} False

:FINALEC_45215
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45246
wait 0
gosub @FINALEC_57086
goto @FINALEC_45215

:FINALEC_45246
camera_set_vector_move -1319.629 {fromY} -1440.6801 {fromZ} 213.1446 {toX} -1345.458 {toY} -1442.413 {toZ} 215.5551 {time} 2000 {ease} False
camera_set_vector_track -1320.627 {fromY} -1440.7469 {fromZ} 213.1378 {toX} -1346.4561 {toY} -1442.48 {toZ} 215.5483 {time} 2000 {ease} False

:FINALEC_45320
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45351
wait 0
gosub @FINALEC_57086
goto @FINALEC_45320

:FINALEC_45351
camera_set_vector_move -1345.458 {fromY} -1442.413 {fromZ} 215.5551 {toX} -1370.79 {toY} -1444.1121 {toZ} 217.9193 {time} 2000 {ease} False
camera_set_vector_track -1346.4561 {fromY} -1442.48 {fromZ} 215.5483 {toX} -1371.787 {toY} -1444.179 {toZ} 217.9125 {time} 2000 {ease} False

:FINALEC_45425
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45456
wait 0
gosub @FINALEC_57086
goto @FINALEC_45425

:FINALEC_45456
camera_set_vector_move -1370.79 {fromY} -1444.1121 {fromZ} 217.9193 {toX} -1396.1219 {toY} -1445.812 {toZ} 220.2834 {time} 2000 {ease} False
camera_set_vector_track -1371.787 {fromY} -1444.179 {fromZ} 217.9125 {toX} -1397.119 {toY} -1445.879 {toZ} 220.2766 {time} 2000 {ease} False

:FINALEC_45530
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45561
wait 0
gosub @FINALEC_57086
goto @FINALEC_45530

:FINALEC_45561
camera_set_vector_move -1396.1219 {fromY} -1445.812 {fromZ} 220.2834 {toX} -1420.957 {toY} -1447.478 {toZ} 222.6012 {time} 2000 {ease} False
camera_set_vector_track -1397.119 {fromY} -1445.879 {fromZ} 220.2766 {toX} -1421.955 {toY} -1447.545 {toZ} 222.5944 {time} 2000 {ease} False

:FINALEC_45635
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45666
wait 0
gosub @FINALEC_57086
goto @FINALEC_45635

:FINALEC_45666
camera_set_vector_move -1420.957 {fromY} -1447.478 {fromZ} 222.6012 {toX} -1446.2889 {toY} -1449.178 {toZ} 224.9654 {time} 2000 {ease} False
camera_set_vector_track -1421.955 {fromY} -1447.545 {fromZ} 222.5944 {toX} -1447.286 {toY} -1449.245 {toZ} 224.9586 {time} 2000 {ease} False

:FINALEC_45740
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45771
wait 0
gosub @FINALEC_57086
goto @FINALEC_45740

:FINALEC_45771
camera_set_vector_move -1446.2889 {fromY} -1449.178 {fromZ} 224.9654 {toX} -1471.621 {toY} -1450.877 {toZ} 227.3296 {time} 2000 {ease} False
camera_set_vector_track -1447.286 {fromY} -1449.245 {fromZ} 224.9586 {toX} -1472.618 {toY} -1450.944 {toZ} 227.3228 {time} 2000 {ease} False

:FINALEC_45845
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45876
wait 0
gosub @FINALEC_57086
goto @FINALEC_45845

:FINALEC_45876
camera_set_vector_move -1471.621 {fromY} -1450.877 {fromZ} 227.3296 {toX} -1496.953 {toY} -1452.577 {toZ} 229.6937 {time} 2000 {ease} False
camera_set_vector_track -1472.618 {fromY} -1450.944 {fromZ} 227.3228 {toX} -1497.95 {toY} -1452.644 {toZ} 229.6869 {time} 2000 {ease} False

:FINALEC_45950
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45981
wait 0
gosub @FINALEC_57086
goto @FINALEC_45950

:FINALEC_45981
do_fade 6000 {direction} Fade.Out
camera_set_vector_move -1496.953 {fromY} -1452.577 {fromZ} 229.6937 {toX} -1522.285 {toY} -1454.277 {toZ} 232.0579 {time} 2000 {ease} False
camera_set_vector_track -1497.95 {fromY} -1452.644 {fromZ} 229.6869 {toX} -1523.282 {toY} -1454.344 {toZ} 232.0511 {time} 2000 {ease} False

:FINALEC_46062
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46093
wait 0
gosub @FINALEC_57086
goto @FINALEC_46062

:FINALEC_46093
camera_set_vector_move -1522.285 {fromY} -1454.277 {fromZ} 232.0579 {toX} -1547.616 {toY} -1455.976 {toZ} 234.4221 {time} 2000 {ease} False
camera_set_vector_track -1523.282 {fromY} -1454.344 {fromZ} 232.0511 {toX} -1548.614 {toY} -1456.043 {toZ} 234.4153 {time} 2000 {ease} False

:FINALEC_46167
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46198
wait 0
gosub @FINALEC_57086
goto @FINALEC_46167

:FINALEC_46198
camera_set_vector_move -1547.616 {fromY} -1455.976 {fromZ} 234.4221 {toX} -1572.452 {toY} -1457.642 {toZ} 236.7399 {time} 2000 {ease} False
camera_set_vector_track -1548.614 {fromY} -1456.043 {fromZ} 234.4153 {toX} -1573.449 {toY} -1457.709 {toZ} 236.7331 {time} 2000 {ease} False

:FINALEC_46272
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46303
wait 0
gosub @FINALEC_57086
goto @FINALEC_46272

:FINALEC_46303
do_fade 0 {direction} Fade.Out

:FINALEC_46309
if 
  get_fading_status 
goto_if_false @FINALEC_46333
wait 0
goto @FINALEC_46309

:FINALEC_46333
set_darkness_effect False {pitchBlack} -1
set_char_coordinates $scplayer {x} -2551.824 {y} 1438.745 {z} -6.4582
freeze_char_position $scplayer {state} True
force_weather_now WeatherType.RainySf
set_time_of_day 22 {minutes} 15
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -2551.824 {fromY} 1438.745 {fromZ} -7.9582 {toX} -2555.05 {toY} 1456.451 {toZ} -7.9582 {time} 2000 {ease} False
camera_set_vector_track -2552.0029 {fromY} 1439.724 {fromZ} -8.0577 {toX} -2555.229 {toY} 1457.4301 {toZ} -8.0577 {time} 2000 {ease} False

:FINALEC_46462
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46493
wait 0
gosub @FINALEC_57086
goto @FINALEC_46462

:FINALEC_46493
camera_set_vector_move -2555.05 {fromY} 1456.451 {fromZ} -7.9582 {toX} -2558.981 {toY} 1478.022 {toZ} -6.5912 {time} 2000 {ease} False
camera_set_vector_track -2555.229 {fromY} 1457.4301 {fromZ} -8.0577 {toX} -2559.1599 {toY} 1479.005 {toZ} -6.5742 {time} 2000 {ease} False

:FINALEC_46567
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46598
wait 0
gosub @FINALEC_57086
goto @FINALEC_46567

:FINALEC_46598
camera_set_vector_move -2558.981 {fromY} 1478.022 {fromZ} -6.5912 {toX} -2562.7661 {toY} 1498.793 {toZ} -2.7267 {time} 2000 {ease} False
camera_set_vector_track -2559.1599 {fromY} 1479.005 {fromZ} -6.5742 {toX} -2562.9431 {toY} 1499.765 {toZ} -2.5699 {time} 2000 {ease} False

:FINALEC_46672
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46703
wait 0
gosub @FINALEC_57086
goto @FINALEC_46672

:FINALEC_46703
camera_set_vector_move -2562.7661 {fromY} 1498.793 {fromZ} -2.7267 {toX} -2566.4199 {toY} 1518.853 {toZ} 4.0086 {time} 2000 {ease} False
camera_set_vector_track -2562.9431 {fromY} 1499.765 {fromZ} -2.5699 {toX} -2566.594 {toY} 1519.803 {toZ} 4.2679 {time} 2000 {ease} False

:FINALEC_46777
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46808
wait 0
gosub @FINALEC_57086
goto @FINALEC_46777

:FINALEC_46808
camera_set_vector_move -2566.4199 {fromY} 1518.853 {fromZ} 4.0086 {toX} -2570.021 {toY} 1538.631 {toZ} 11.6223 {time} 2000 {ease} False
camera_set_vector_track -2566.594 {fromY} 1519.803 {fromZ} 4.2679 {toX} -2570.1941 {toY} 1539.5811 {toZ} 11.8816 {time} 2000 {ease} False

:FINALEC_46882
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46913
wait 0
gosub @FINALEC_57086
goto @FINALEC_46882

:FINALEC_46913
camera_set_vector_move -2570.021 {fromY} 1538.631 {fromZ} 11.6223 {toX} -2573.7061 {toY} 1558.869 {toZ} 19.413 {time} 2000 {ease} False
camera_set_vector_track -2570.1941 {fromY} 1539.5811 {fromZ} 11.8816 {toX} -2573.8789 {toY} 1559.819 {toZ} 19.6724 {time} 2000 {ease} False

:FINALEC_46987
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47018
wait 0
gosub @FINALEC_57086
goto @FINALEC_46987

:FINALEC_47018
camera_set_vector_move -2573.7061 {fromY} 1558.869 {fromZ} 19.413 {toX} -2577.2229 {toY} 1578.188 {toZ} 26.8497 {time} 2000 {ease} False
camera_set_vector_track -2573.8789 {fromY} 1559.819 {fromZ} 19.6724 {toX} -2577.396 {toY} 1579.1379 {toZ} 27.109 {time} 2000 {ease} False

:FINALEC_47092
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47123
wait 0
gosub @FINALEC_57086
goto @FINALEC_47092

:FINALEC_47123
camera_set_vector_move -2577.2229 {fromY} 1578.188 {fromZ} 26.8497 {toX} -2580.907 {toY} 1598.426 {toZ} 34.6405 {time} 2000 {ease} False
camera_set_vector_track -2577.396 {fromY} 1579.1379 {fromZ} 27.109 {toX} -2581.0811 {toY} 1599.376 {toZ} 34.8998 {time} 2000 {ease} False

:FINALEC_47197
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47228
wait 0
gosub @FINALEC_57086
goto @FINALEC_47197

:FINALEC_47228
camera_set_vector_move -2580.907 {fromY} 1598.426 {fromZ} 34.6405 {toX} -2584.5139 {toY} 1618.225 {toZ} 42.1997 {time} 2000 {ease} False
camera_set_vector_track -2581.0811 {fromY} 1599.376 {fromZ} 34.8998 {toX} -2584.688 {toY} 1619.178 {toZ} 42.4465 {time} 2000 {ease} False

:FINALEC_47302
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47333
wait 0
gosub @FINALEC_57086
goto @FINALEC_47302

:FINALEC_47333
camera_set_vector_move -2584.5139 {fromY} 1618.225 {fromZ} 42.1997 {toX} -2588.2329 {toY} 1638.641 {toZ} 49.4991 {time} 2000 {ease} False
camera_set_vector_track -2584.688 {fromY} 1619.178 {fromZ} 42.4465 {toX} -2588.408 {toY} 1639.599 {toZ} 49.7249 {time} 2000 {ease} False

:FINALEC_47407
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47438
wait 0
gosub @FINALEC_57086
goto @FINALEC_47407

:FINALEC_47438
camera_set_vector_move -2588.2329 {fromY} 1638.641 {fromZ} 49.4991 {toX} -2591.978 {toY} 1659.176 {toZ} 56.4439 {time} 2000 {ease} False
camera_set_vector_track -2588.408 {fromY} 1639.599 {fromZ} 49.7249 {toX} -2592.1531 {toY} 1660.136 {toZ} 56.6616 {time} 2000 {ease} False

:FINALEC_47512
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47543
wait 0
gosub @FINALEC_57086
goto @FINALEC_47512

:FINALEC_47543
camera_set_vector_move -2591.978 {fromY} 1659.176 {fromZ} 56.4439 {toX} -2595.6421 {toY} 1679.259 {toZ} 63.1876 {time} 2000 {ease} False
camera_set_vector_track -2592.1531 {fromY} 1660.136 {fromZ} 56.6616 {toX} -2595.8169 {toY} 1680.219 {toZ} 63.4053 {time} 2000 {ease} False

:FINALEC_47617
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47648
wait 0
gosub @FINALEC_57086
goto @FINALEC_47617

:FINALEC_47648
camera_set_vector_move -2595.6421 {fromY} 1679.259 {fromZ} 63.1876 {toX} -2599.394 {toY} 1699.842 {toZ} 69.9817 {time} 2000 {ease} False
camera_set_vector_track -2595.8169 {fromY} 1680.219 {fromZ} 63.4053 {toX} -2599.5691 {toY} 1700.806 {toZ} 70.1827 {time} 2000 {ease} False

:FINALEC_47722
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47753
wait 0
gosub @FINALEC_57086
goto @FINALEC_47722

:FINALEC_47753
camera_set_vector_move -2599.394 {fromY} 1699.842 {fromZ} 69.9817 {toX} -2603.1699 {toY} 1720.568 {toZ} 76.3148 {time} 2000 {ease} False
camera_set_vector_track -2599.5691 {fromY} 1700.806 {fromZ} 70.1827 {toX} -2603.3469 {toY} 1721.536 {toZ} 76.4955 {time} 2000 {ease} False

:FINALEC_47827
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47858
wait 0
gosub @FINALEC_57086
goto @FINALEC_47827

:FINALEC_47858
camera_set_vector_move -2603.1699 {fromY} 1720.568 {fromZ} 76.3148 {toX} -2606.968 {toY} 1741.411 {toZ} 82.2359 {time} 2000 {ease} False
camera_set_vector_track -2603.3469 {fromY} 1721.536 {fromZ} 76.4955 {toX} -2607.145 {toY} 1742.382 {toZ} 82.3978 {time} 2000 {ease} False

:FINALEC_47932
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47963
wait 0
gosub @FINALEC_57086
goto @FINALEC_47932

:FINALEC_47963
camera_set_vector_move -2606.968 {fromY} 1741.411 {fromZ} 82.2359 {toX} -2610.699 {toY} 1761.885 {toZ} 87.6284 {time} 2000 {ease} False
camera_set_vector_track -2607.145 {fromY} 1742.382 {fromZ} 82.3978 {toX} -2610.877 {toY} 1762.858 {toZ} 87.7717 {time} 2000 {ease} False

:FINALEC_48037
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48068
wait 0
gosub @FINALEC_57086
goto @FINALEC_48037

:FINALEC_48068
camera_set_vector_move -2610.699 {fromY} 1761.885 {fromZ} 87.6284 {toX} -2614.448 {toY} 1782.455 {toZ} 92.6294 {time} 2000 {ease} False
camera_set_vector_track -2610.877 {fromY} 1762.858 {fromZ} 87.7717 {toX} -2614.625 {toY} 1783.431 {toZ} 92.7541 {time} 2000 {ease} False

:FINALEC_48142
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48173
wait 0
gosub @FINALEC_57086
goto @FINALEC_48142

:FINALEC_48173
camera_set_vector_move -2614.448 {fromY} 1782.455 {fromZ} 92.6294 {toX} -2618.2141 {toY} 1803.127 {toZ} 97.1743 {time} 2000 {ease} False
camera_set_vector_track -2614.625 {fromY} 1783.431 {fromZ} 92.7541 {toX} -2618.3931 {toY} 1804.106 {toZ} 97.2734 {time} 2000 {ease} False

:FINALEC_48247
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48278
wait 0
gosub @FINALEC_57086
goto @FINALEC_48247

:FINALEC_48278
camera_set_vector_move -2618.2141 {fromY} 1803.127 {fromZ} 97.1743 {toX} -2622.001 {toY} 1823.9091 {toZ} 101.1663 {time} 2000 {ease} False
camera_set_vector_track -2618.3931 {fromY} 1804.106 {fromZ} 97.2734 {toX} -2622.1799 {toY} 1824.89 {toZ} 101.2393 {time} 2000 {ease} False

:FINALEC_48352
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48383
wait 0
gosub @FINALEC_57086
goto @FINALEC_48352

:FINALEC_48383
camera_set_vector_move -2622.001 {fromY} 1823.9091 {fromZ} 101.1663 {toX} -2625.8059 {toY} 1844.788 {toZ} 104.6021 {time} 2000 {ease} False
camera_set_vector_track -2622.1799 {fromY} 1824.89 {fromZ} 101.2393 {toX} -2625.9851 {toY} 1845.77 {toZ} 104.6488 {time} 2000 {ease} False

:FINALEC_48457
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48488
wait 0
gosub @FINALEC_57086
goto @FINALEC_48457

:FINALEC_48488
do_fade 6000 {direction} Fade.Out
camera_set_vector_move -2625.8059 {fromY} 1844.788 {fromZ} 104.6021 {toX} -2629.447 {toY} 1864.771 {toZ} 107.3578 {time} 2000 {ease} False
camera_set_vector_track -2625.9851 {fromY} 1845.77 {fromZ} 104.6488 {toX} -2629.626 {toY} 1865.755 {toZ} 107.3795 {time} 2000 {ease} False

:FINALEC_48569
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48600
wait 0
gosub @FINALEC_57086
goto @FINALEC_48569

:FINALEC_48600
camera_set_vector_move -2629.447 {fromY} 1864.771 {fromZ} 107.3578 {toX} -2633.2781 {toY} 1885.793 {toZ} 109.7129 {time} 2000 {ease} False
camera_set_vector_track -2629.626 {fromY} 1865.755 {fromZ} 107.3795 {toX} -2633.457 {toY} 1886.777 {toZ} 109.7149 {time} 2000 {ease} False

:FINALEC_48674
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48705
wait 0
gosub @FINALEC_57086
goto @FINALEC_48674

:FINALEC_48705
camera_set_vector_move -2633.2781 {fromY} 1885.793 {fromZ} 109.7129 {toX} -2637.1089 {toY} 1906.832 {toZ} 111.8949 {time} 2000 {ease} False
camera_set_vector_track -2633.457 {fromY} 1886.777 {fromZ} 109.7149 {toX} -2637.2891 {toY} 1907.8149 {toZ} 111.8969 {time} 2000 {ease} False

:FINALEC_48779
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48810
wait 0
gosub @FINALEC_57086
goto @FINALEC_48779

:FINALEC_48810
do_fade 0 {direction} Fade.Out

:FINALEC_48816
if 
  get_fading_status 
goto_if_false @FINALEC_48840
wait 0
goto @FINALEC_48816

:FINALEC_48840
force_weather_now WeatherType.ExtraSunnyLa
set_time_of_day 5 {minutes} 30
set_char_coordinates $scplayer {x} -922.5345 {y} 669.1976 {z} 86.8181
freeze_char_position $scplayer {state} True
set_darkness_effect True {pitchBlack} -1
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -922.5345 {fromY} 669.1976 {fromZ} 85.3181 {toX} -944.3385 {toY} 676.5142 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -923.4778 {fromY} 669.5142 {fromZ} 85.2186 {toX} -945.2818 {toY} 676.8308 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_48969
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49000
wait 0
gosub @FINALEC_57086
goto @FINALEC_48969

:FINALEC_49000
camera_set_vector_move -944.3385 {fromY} 676.5142 {fromZ} 85.3181 {toX} -968.5125 {toY} 684.6262 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -945.2818 {fromY} 676.8308 {fromZ} 85.2186 {toX} -969.4557 {toY} 684.9427 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49074
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49105
wait 0
gosub @FINALEC_57086
goto @FINALEC_49074

:FINALEC_49105
camera_set_vector_move -968.5125 {fromY} 684.6262 {fromZ} 85.3181 {toX} -993.1604 {toY} 692.8972 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -969.4557 {fromY} 684.9427 {fromZ} 85.2186 {toX} -994.1037 {toY} 693.2137 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49179
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49210
wait 0
gosub @FINALEC_57086
goto @FINALEC_49179

:FINALEC_49210
camera_set_vector_move -993.1604 {fromY} 692.8972 {fromZ} 85.3181 {toX} -1017.808 {toY} 701.1682 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -994.1037 {fromY} 693.2137 {fromZ} 85.2186 {toX} -1018.752 {toY} 701.4847 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49284
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49315
wait 0
gosub @FINALEC_57086
goto @FINALEC_49284

:FINALEC_49315
camera_set_vector_move -1017.808 {fromY} 701.1682 {fromZ} 85.3181 {toX} -1041.9821 {toY} 709.2801 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1018.752 {fromY} 701.4847 {fromZ} 85.2186 {toX} -1042.926 {toY} 709.5967 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49389
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49420
wait 0
gosub @FINALEC_57086
goto @FINALEC_49389

:FINALEC_49420
camera_set_vector_move -1041.9821 {fromY} 709.2801 {fromZ} 85.3181 {toX} -1066.156 {toY} 717.392 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1042.926 {fromY} 709.5967 {fromZ} 85.2186 {toX} -1067.099 {toY} 717.7086 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49494
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49525
wait 0
gosub @FINALEC_57086
goto @FINALEC_49494

:FINALEC_49525
camera_set_vector_move -1066.156 {fromY} 717.392 {fromZ} 85.3181 {toX} -1090.33 {toY} 725.504 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1067.099 {fromY} 717.7086 {fromZ} 85.2186 {toX} -1091.2729 {toY} 725.8206 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49599
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49630
wait 0
gosub @FINALEC_57086
goto @FINALEC_49599

:FINALEC_49630
camera_set_vector_move -1090.33 {fromY} 725.504 {fromZ} 85.3181 {toX} -1114.504 {toY} 733.6159 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1091.2729 {fromY} 725.8206 {fromZ} 85.2186 {toX} -1115.447 {toY} 733.9325 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49704
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49735
wait 0
gosub @FINALEC_57086
goto @FINALEC_49704

:FINALEC_49735
camera_set_vector_move -1114.504 {fromY} 733.6159 {fromZ} 85.3181 {toX} -1138.678 {toY} 741.7278 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1115.447 {fromY} 733.9325 {fromZ} 85.2186 {toX} -1139.621 {toY} 742.0444 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49809
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49840
wait 0
gosub @FINALEC_57086
goto @FINALEC_49809

:FINALEC_49840
camera_set_vector_move -1138.678 {fromY} 741.7278 {fromZ} 85.3181 {toX} -1162.3781 {toY} 749.6807 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1139.621 {fromY} 742.0444 {fromZ} 85.2186 {toX} -1163.321 {toY} 749.9973 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49914
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49945
wait 0
gosub @FINALEC_57086
goto @FINALEC_49914

:FINALEC_49945
camera_set_vector_move -1162.3781 {fromY} 749.6807 {fromZ} 85.3181 {toX} -1186.078 {toY} 757.6336 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1163.321 {fromY} 749.9973 {fromZ} 85.2186 {toX} -1187.021 {toY} 757.9502 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50019
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50050
wait 0
gosub @FINALEC_57086
goto @FINALEC_50019

:FINALEC_50050
camera_set_vector_move -1186.078 {fromY} 757.6336 {fromZ} 85.3181 {toX} -1209.778 {toY} 765.5865 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1187.021 {fromY} 757.9502 {fromZ} 85.2186 {toX} -1210.7209 {toY} 765.9031 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50124
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50155
wait 0
gosub @FINALEC_57086
goto @FINALEC_50124

:FINALEC_50155
camera_set_vector_move -1209.778 {fromY} 765.5865 {fromZ} 85.3181 {toX} -1233.952 {toY} 773.6984 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1210.7209 {fromY} 765.9031 {fromZ} 85.2186 {toX} -1234.895 {toY} 774.015 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50229
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50260
wait 0
gosub @FINALEC_57086
goto @FINALEC_50229

:FINALEC_50260
camera_set_vector_move -1233.952 {fromY} 773.6984 {fromZ} 85.3181 {toX} -1258.126 {toY} 781.8104 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1234.895 {fromY} 774.015 {fromZ} 85.2186 {toX} -1259.069 {toY} 782.127 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50334
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50365
wait 0
gosub @FINALEC_57086
goto @FINALEC_50334

:FINALEC_50365
camera_set_vector_move -1258.126 {fromY} 781.8104 {fromZ} 85.3181 {toX} -1281.826 {toY} 789.7632 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1259.069 {fromY} 782.127 {fromZ} 85.2186 {toX} -1282.769 {toY} 790.0798 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50439
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50470
wait 0
gosub @FINALEC_57086
goto @FINALEC_50439

:FINALEC_50470
camera_set_vector_move -1281.826 {fromY} 789.7632 {fromZ} 85.3181 {toX} -1305.526 {toY} 797.7161 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1282.769 {fromY} 790.0798 {fromZ} 85.2186 {toX} -1306.469 {toY} 798.0327 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50544
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50575
wait 0
gosub @FINALEC_57086
goto @FINALEC_50544

:FINALEC_50575
camera_set_vector_move -1305.526 {fromY} 797.7161 {fromZ} 85.3181 {toX} -1329.226 {toY} 805.669 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1306.469 {fromY} 798.0327 {fromZ} 85.2186 {toX} -1330.1689 {toY} 805.9856 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50649
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50680
wait 0
gosub @FINALEC_57086
goto @FINALEC_50649

:FINALEC_50680
camera_set_vector_move -1329.226 {fromY} 805.669 {fromZ} 85.3181 {toX} -1353.4 {toY} 813.7809 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1330.1689 {fromY} 805.9856 {fromZ} 85.2186 {toX} -1354.343 {toY} 814.0975 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50754
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50785
wait 0
gosub @FINALEC_57086
goto @FINALEC_50754

:FINALEC_50785
camera_set_vector_move -1353.4 {fromY} 813.7809 {fromZ} 85.3181 {toX} -1377.574 {toY} 821.8929 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1354.343 {fromY} 814.0975 {fromZ} 85.2186 {toX} -1378.517 {toY} 822.2095 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50859
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50890
wait 0
gosub @FINALEC_57086
goto @FINALEC_50859

:FINALEC_50890
camera_set_vector_move -1377.574 {fromY} 821.8929 {fromZ} 85.3181 {toX} -1401.274 {toY} 829.8458 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1378.517 {fromY} 822.2095 {fromZ} 85.2186 {toX} -1402.217 {toY} 830.1624 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50964
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50995
wait 0
gosub @FINALEC_57086
goto @FINALEC_50964

:FINALEC_50995
camera_set_vector_move -1401.274 {fromY} 829.8458 {fromZ} 85.3181 {toX} -1423.552 {toY} 837.3215 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1402.217 {fromY} 830.1624 {fromZ} 85.2186 {toX} -1424.495 {toY} 837.6381 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51069
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51100
wait 0
gosub @FINALEC_57086
goto @FINALEC_51069

:FINALEC_51100
camera_set_vector_move -1423.552 {fromY} 837.3215 {fromZ} 85.3181 {toX} -1446.777 {toY} 845.1153 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1424.495 {fromY} 837.6381 {fromZ} 85.2186 {toX} -1447.7209 {toY} 845.4319 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51174
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51205
wait 0
gosub @FINALEC_57086
goto @FINALEC_51174

:FINALEC_51205
camera_set_vector_move -1446.777 {fromY} 845.1153 {fromZ} 85.3181 {toX} -1470.4771 {toY} 853.0682 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1447.7209 {fromY} 845.4319 {fromZ} 85.2186 {toX} -1471.421 {toY} 853.3848 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51279
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51310
wait 0
gosub @FINALEC_57086
goto @FINALEC_51279

:FINALEC_51310
camera_set_vector_move -1470.4771 {fromY} 853.0682 {fromZ} 85.3181 {toX} -1493.703 {toY} 860.862 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1471.421 {fromY} 853.3848 {fromZ} 85.2186 {toX} -1494.647 {toY} 861.1786 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51384
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51415
wait 0
gosub @FINALEC_57086
goto @FINALEC_51384

:FINALEC_51415
do_fade 5900 {direction} Fade.Out
camera_set_vector_move -1493.703 {fromY} 860.862 {fromZ} 85.3181 {toX} -1515.981 {toY} 868.3377 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1494.647 {fromY} 861.1786 {fromZ} 85.2186 {toX} -1516.925 {toY} 868.6543 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51496
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51527
wait 0
gosub @FINALEC_57086
goto @FINALEC_51496

:FINALEC_51527
camera_set_vector_move -1515.981 {fromY} 868.3377 {fromZ} 85.3181 {toX} -1538.259 {toY} 875.8134 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1516.925 {fromY} 868.6543 {fromZ} 85.2186 {toX} -1539.203 {toY} 876.13 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51601
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51632
wait 0
gosub @FINALEC_57086
goto @FINALEC_51601

:FINALEC_51632
camera_set_vector_move -1538.259 {fromY} 875.8134 {fromZ} 85.3181 {toX} -1561.011 {toY} 883.4482 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1539.203 {fromY} 876.13 {fromZ} 85.2186 {toX} -1561.954 {toY} 883.7648 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51706
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51737
wait 0
gosub @FINALEC_57086
goto @FINALEC_51706

:FINALEC_51737
do_fade 0 {direction} Fade.Out

:FINALEC_51743
if 
  get_fading_status 
goto_if_false @FINALEC_51767
wait 0
goto @FINALEC_51743

:FINALEC_51767
force_weather_now WeatherType.ExtraSunnyDesert
set_darkness_effect True {pitchBlack} -1
set_char_coordinates $scplayer {x} 370.7745 {y} 2441.2339 {z} 19.0844
freeze_char_position $scplayer {state} True
set_time_of_day 12 {minutes} 0
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move 370.7745 {fromY} 2441.2339 {fromZ} 17.5844 {toX} 366.5777 {toY} 2438.9021 {toZ} 17.5844 {time} 2250 {ease} False
camera_set_vector_track 369.9044 {fromY} 2440.751 {fromZ} 17.4849 {toX} 365.7076 {toY} 2438.4189 {toZ} 17.4849 {time} 2250 {ease} False

:FINALEC_51896
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51927
wait 0
gosub @FINALEC_57086
goto @FINALEC_51896

:FINALEC_51927
camera_set_vector_move 366.5777 {fromY} 2438.9021 {fromZ} 17.5844 {toX} 362.0319 {toY} 2436.376 {toZ} 17.5835 {time} 2250 {ease} False
camera_set_vector_track 365.7076 {fromY} 2438.4189 {fromZ} 17.4849 {toX} 361.1612 {toY} 2435.8931 {toZ} 17.4921 {time} 2250 {ease} False

:FINALEC_52001
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52032
wait 0
gosub @FINALEC_57086
goto @FINALEC_52001

:FINALEC_52032
camera_set_vector_move 362.0319 {fromY} 2436.376 {fromZ} 17.5835 {toX} 357.4894 {toY} 2433.8521 {toZ} 17.6536 {time} 2250 {ease} False
camera_set_vector_track 361.1612 {fromY} 2435.8931 {fromZ} 17.4921 {toX} 356.6158 {toY} 2433.3669 {toZ} 17.6101 {time} 2250 {ease} False

:FINALEC_52106
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52137
wait 0
gosub @FINALEC_57086
goto @FINALEC_52106

:FINALEC_52137
camera_set_vector_move 357.4894 {fromY} 2433.8521 {fromZ} 17.6536 {toX} 352.8694 {toY} 2431.29 {toZ} 17.996 {time} 2250 {ease} False
camera_set_vector_track 356.6158 {fromY} 2433.3669 {fromZ} 17.6101 {toX} 351.9951 {toY} 2430.8049 {toZ} 18.0046 {time} 2250 {ease} False

:FINALEC_52211
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52242
wait 0
gosub @FINALEC_57086
goto @FINALEC_52211

:FINALEC_52242
camera_set_vector_move 352.8694 {fromY} 2431.29 {fromZ} 17.996 {toX} 348.2637 {toY} 2428.728 {toZ} 18.5695 {time} 2200 {ease} False
camera_set_vector_track 351.9951 {fromY} 2430.8049 {fromZ} 18.0046 {toX} 347.3847 {toY} 2428.251 {toZ} 18.5783 {time} 2200 {ease} False

:FINALEC_52316
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52347
wait 0
gosub @FINALEC_57086
goto @FINALEC_52316

:FINALEC_52347
skip_cutscene_start_internal @FINALEC_56654
camera_set_vector_move 348.2637 {fromY} 2428.728 {fromZ} 18.5695 {toX} 343.6016 {toY} 2426.2739 {toZ} 19.1432 {time} 2150 {ease} False
camera_set_vector_track 347.3847 {fromY} 2428.251 {fromZ} 18.5783 {toX} 342.7046 {toY} 2425.832 {toZ} 19.152 {time} 2150 {ease} False

:FINALEC_52428
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52459
wait 0
gosub @FINALEC_57086
goto @FINALEC_52428

:FINALEC_52459
camera_set_vector_move 343.6016 {fromY} 2426.2739 {fromZ} 19.1432 {toX} 338.937 {toY} 2424.0459 {toZ} 19.706 {time} 2100 {ease} False
camera_set_vector_track 342.7046 {fromY} 2425.832 {fromZ} 19.152 {toX} 338.0236 {toY} 2423.6389 {toZ} 19.7148 {time} 2100 {ease} False

:FINALEC_52533
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52564
wait 0
gosub @FINALEC_57086
goto @FINALEC_52533

:FINALEC_52564
camera_set_vector_move 338.937 {fromY} 2424.0459 {fromZ} 19.706 {toX} 334.282 {toY} 2422.0381 {toZ} 20.2581 {time} 2000 {ease} False
camera_set_vector_track 338.0236 {fromY} 2423.6389 {fromZ} 19.7148 {toX} 333.3536 {toY} 2421.666 {toZ} 20.2669 {time} 2000 {ease} False

:FINALEC_52638
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52669
wait 0
gosub @FINALEC_57086
goto @FINALEC_52638

:FINALEC_52669
camera_set_vector_move 334.282 {fromY} 2422.0381 {fromZ} 20.2581 {toX} 329.5525 {toY} 2420.2119 {toZ} 20.8101 {time} 2000 {ease} False
camera_set_vector_track 333.3536 {fromY} 2421.666 {fromZ} 20.2669 {toX} 328.611 {toY} 2419.875 {toZ} 20.8189 {time} 2000 {ease} False

:FINALEC_52743
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52774
wait 0
gosub @FINALEC_57086
goto @FINALEC_52743

:FINALEC_52774
camera_set_vector_move 329.5525 {fromY} 2420.2119 {fromZ} 20.8101 {toX} 324.7735 {toY} 2418.5161 {toZ} 21.3621 {time} 2000 {ease} False
camera_set_vector_track 328.611 {fromY} 2419.875 {fromZ} 20.8189 {toX} 323.8303 {toY} 2418.1841 {toZ} 21.371 {time} 2000 {ease} False

:FINALEC_52848
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52879
wait 0
gosub @FINALEC_57086
goto @FINALEC_52848

:FINALEC_52879
camera_set_vector_move 324.7735 {fromY} 2418.5161 {fromZ} 21.3621 {toX} 320.0809 {toY} 2416.8789 {toZ} 21.9034 {time} 2000 {ease} False
camera_set_vector_track 323.8303 {fromY} 2418.1841 {fromZ} 21.371 {toX} 319.1361 {toY} 2416.552 {toZ} 21.9122 {time} 2000 {ease} False

:FINALEC_52953
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52984
wait 0
gosub @FINALEC_57086
goto @FINALEC_52953

:FINALEC_52984
camera_set_vector_move 320.0809 {fromY} 2416.8789 {fromZ} 21.9034 {toX} 315.103 {toY} 2415.156 {toZ} 22.477 {time} 2000 {ease} False
camera_set_vector_track 319.1361 {fromY} 2416.552 {fromZ} 21.9122 {toX} 314.1573 {toY} 2414.8311 {toZ} 22.4858 {time} 2000 {ease} False

:FINALEC_53058
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53089
wait 0
gosub @FINALEC_57086
goto @FINALEC_53058

:FINALEC_53089
camera_set_vector_move 315.103 {fromY} 2415.156 {fromZ} 22.477 {toX} 310.2042 {toY} 2413.5061 {toZ} 23.0399 {time} 2000 {ease} False
camera_set_vector_track 314.1573 {fromY} 2414.8311 {fromZ} 22.4858 {toX} 309.2525 {toY} 2413.198 {toZ} 23.0487 {time} 2000 {ease} False

:FINALEC_53163
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53194
wait 0
gosub @FINALEC_57086
goto @FINALEC_53163

:FINALEC_53194
camera_set_vector_move 310.2042 {fromY} 2413.5061 {fromZ} 23.0399 {toX} 305.2758 {toY} 2411.946 {toZ} 23.6028 {time} 2000 {ease} False
camera_set_vector_track 309.2525 {fromY} 2413.198 {fromZ} 23.0487 {toX} 304.3187 {toY} 2411.656 {toZ} 23.6116 {time} 2000 {ease} False

:FINALEC_53268
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53299
wait 0
gosub @FINALEC_57086
goto @FINALEC_53268

:FINALEC_53299
camera_set_vector_move 305.2758 {fromY} 2411.946 {fromZ} 23.6028 {toX} 300.3198 {toY} 2410.4761 {toZ} 24.1656 {time} 2000 {ease} False
camera_set_vector_track 304.3187 {fromY} 2411.656 {fromZ} 23.6116 {toX} 299.3576 {toY} 2410.2041 {toZ} 24.1744 {time} 2000 {ease} False

:FINALEC_53373
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53404
wait 0
gosub @FINALEC_57086
goto @FINALEC_53373

:FINALEC_53404
camera_set_vector_move 300.3198 {fromY} 2410.4761 {fromZ} 24.1656 {toX} 295.434 {toY} 2409.1221 {toZ} 24.7176 {time} 2000 {ease} False
camera_set_vector_track 299.3576 {fromY} 2410.2041 {fromZ} 24.1744 {toX} 294.4671 {toY} 2408.866 {toZ} 24.7265 {time} 2000 {ease} False

:FINALEC_53478
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53509
wait 0
gosub @FINALEC_57086
goto @FINALEC_53478

:FINALEC_53509
camera_set_vector_move 295.434 {fromY} 2409.1221 {fromZ} 24.7176 {toX} 290.4283 {toY} 2407.8311 {toZ} 25.2805 {time} 2000 {ease} False
camera_set_vector_track 294.4671 {fromY} 2408.866 {fromZ} 24.7265 {toX} 289.4569 {toY} 2407.593 {toZ} 25.2893 {time} 2000 {ease} False

:FINALEC_53583
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53614
wait 0
gosub @FINALEC_57086
goto @FINALEC_53583

:FINALEC_53614
camera_set_vector_move 290.4283 {fromY} 2407.8311 {fromZ} 25.2805 {toX} 285.3999 {toY} 2406.6311 {toZ} 25.8434 {time} 2000 {ease} False
camera_set_vector_track 289.4569 {fromY} 2407.593 {fromZ} 25.2893 {toX} 284.4244 {toY} 2406.4109 {toZ} 25.8522 {time} 2000 {ease} False

:FINALEC_53688
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53719
wait 0
gosub @FINALEC_57086
goto @FINALEC_53688

:FINALEC_53719
camera_set_vector_move 285.3999 {fromY} 2406.6311 {fromZ} 25.8434 {toX} 280.3567 {toY} 2405.488 {toZ} 26.4062 {time} 2000 {ease} False
camera_set_vector_track 284.4244 {fromY} 2406.4109 {fromZ} 25.8522 {toX} 279.3812 {toY} 2405.2681 {toZ} 26.415 {time} 2000 {ease} False

:FINALEC_53793
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53824
wait 0
gosub @FINALEC_57086
goto @FINALEC_53793

:FINALEC_53824
camera_set_vector_move 280.3567 {fromY} 2405.488 {fromZ} 26.4062 {toX} 275.3135 {toY} 2404.3459 {toZ} 26.9691 {time} 2000 {ease} False
camera_set_vector_track 279.3812 {fromY} 2405.2681 {fromZ} 26.415 {toX} 274.338 {toY} 2404.126 {toZ} 26.9779 {time} 2000 {ease} False

:FINALEC_53898
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53929
wait 0
gosub @FINALEC_57086
goto @FINALEC_53898

:FINALEC_53929
camera_set_vector_move 275.3135 {fromY} 2404.3459 {fromZ} 26.9691 {toX} 270.3673 {toY} 2403.2251 {toZ} 27.5211 {time} 2000 {ease} False
camera_set_vector_track 274.338 {fromY} 2404.126 {fromZ} 26.9779 {toX} 269.3918 {toY} 2403.0049 {toZ} 27.5299 {time} 2000 {ease} False

:FINALEC_54003
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54034
wait 0
gosub @FINALEC_57086
goto @FINALEC_54003

:FINALEC_54034
camera_set_vector_move 270.3673 {fromY} 2403.2251 {fromZ} 27.5211 {toX} 265.4211 {toY} 2402.104 {toZ} 28.0732 {time} 2000 {ease} False
camera_set_vector_track 269.3918 {fromY} 2403.0049 {fromZ} 27.5299 {toX} 264.4456 {toY} 2401.885 {toZ} 28.082 {time} 2000 {ease} False

:FINALEC_54108
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54139
wait 0
gosub @FINALEC_57086
goto @FINALEC_54108

:FINALEC_54139
camera_set_vector_move 265.4211 {fromY} 2402.104 {fromZ} 28.0732 {toX} 262.4145 {toY} 2401.4231 {toZ} 28.4087 {time} 2000 {ease} False
camera_set_vector_track 264.4456 {fromY} 2401.885 {fromZ} 28.082 {toX} 261.439 {toY} 2401.2029 {toZ} 28.4175 {time} 2000 {ease} False

:FINALEC_54213
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54244
wait 0
gosub @FINALEC_57086
goto @FINALEC_54213

:FINALEC_54244
camera_set_vector_move 262.4145 {fromY} 2401.4231 {fromZ} 28.4087 {toX} 258.8261 {toY} 2400.6101 {toZ} 28.8092 {time} 2000 {ease} False
camera_set_vector_track 261.439 {fromY} 2401.2029 {fromZ} 28.4175 {toX} 257.8506 {toY} 2400.3899 {toZ} 28.818 {time} 2000 {ease} False

:FINALEC_54318
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54349
wait 0
gosub @FINALEC_57086
goto @FINALEC_54318

:FINALEC_54349
do_fade 6000 {direction} Fade.Out
camera_set_vector_move 258.8261 {fromY} 2400.6101 {fromZ} 28.8092 {toX} 253.8804 {toY} 2399.49 {toZ} 29.3612 {time} 2000 {ease} False
camera_set_vector_track 257.8506 {fromY} 2400.3899 {fromZ} 28.818 {toX} 252.9049 {toY} 2399.27 {toZ} 29.37 {time} 2000 {ease} False

:FINALEC_54430
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54461
wait 0
gosub @FINALEC_57086
goto @FINALEC_54430

:FINALEC_54461
camera_set_vector_move 253.8804 {fromY} 2399.49 {fromZ} 29.3612 {toX} 248.8379 {toY} 2398.3469 {toZ} 29.9241 {time} 2000 {ease} False
camera_set_vector_track 252.9049 {fromY} 2399.27 {fromZ} 29.37 {toX} 247.8624 {toY} 2398.127 {toZ} 29.9329 {time} 2000 {ease} False

:FINALEC_54535
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54566
wait 0
gosub @FINALEC_57086
goto @FINALEC_54535

:FINALEC_54566
camera_set_vector_move 248.8379 {fromY} 2398.3469 {fromZ} 29.9241 {toX} 244.0864 {toY} 2397.271 {toZ} 30.4545 {time} 2000 {ease} False
camera_set_vector_track 247.8624 {fromY} 2398.127 {fromZ} 29.9329 {toX} 243.1109 {toY} 2397.051 {toZ} 30.4633 {time} 2000 {ease} False

:FINALEC_54640
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54671
wait 0
gosub @FINALEC_57086
goto @FINALEC_54640

:FINALEC_54671
do_fade 0 {direction} Fade.Out

:FINALEC_54677
if 
  get_fading_status 
goto_if_false @FINALEC_54701
wait 0
goto @FINALEC_54677

:FINALEC_54701
set_char_coordinates $scplayer {x} 2012.444 {y} 2140.3831 {z} 78.0505
freeze_char_position $scplayer {state} True
set_time_of_day 0 {minutes} 0
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move 2012.444 {fromY} 2140.3831 {fromZ} 76.5505 {toX} 2030.939 {toY} 2140.4189 {toZ} 76.5504 {time} 2900 {ease} False
camera_set_vector_track 2013.439 {fromY} 2140.385 {fromZ} 76.451 {toX} 2031.934 {toY} 2140.4209 {toZ} 76.4497 {time} 2900 {ease} False

:FINALEC_54820
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54851
wait 0
gosub @FINALEC_57086
goto @FINALEC_54820

:FINALEC_54851
camera_set_vector_move 2030.939 {fromY} 2140.4189 {fromZ} 76.5504 {toX} 2051.375 {toY} 2140.459 {toZ} 75.0916 {time} 2900 {ease} False
camera_set_vector_track 2031.934 {fromY} 2140.4209 {fromZ} 76.4497 {toX} 2052.3491 {toY} 2140.4609 {toZ} 74.8638 {time} 2900 {ease} False

:FINALEC_54925
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54956
wait 0
gosub @FINALEC_57086
goto @FINALEC_54925

:FINALEC_54956
camera_set_vector_move 2051.375 {fromY} 2140.459 {fromZ} 75.0916 {toX} 2072.1089 {toY} 2140.5 {toZ} 71.7815 {time} 2900 {ease} False
camera_set_vector_track 2052.3491 {fromY} 2140.4609 {fromZ} 74.8638 {toX} 2073.061 {toY} 2140.502 {toZ} 71.4748 {time} 2900 {ease} False

:FINALEC_55030
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55061
wait 0
gosub @FINALEC_57086
goto @FINALEC_55030

:FINALEC_55061
camera_set_vector_move 2072.1089 {fromY} 2140.5 {fromZ} 71.7815 {toX} 2092.6179 {toY} 2140.541 {toZ} 67.3086 {time} 2900 {ease} False
camera_set_vector_track 2073.061 {fromY} 2140.502 {fromZ} 71.4748 {toX} 2093.5691 {toY} 2140.543 {toZ} 66.9993 {time} 2900 {ease} False

:FINALEC_55135
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55166
wait 0
gosub @FINALEC_57086
goto @FINALEC_55135

:FINALEC_55166
camera_set_vector_move 2092.6179 {fromY} 2140.541 {fromZ} 67.3086 {toX} 2114.1021 {toY} 2140.584 {toZ} 62.62 {time} 2900 {ease} False
camera_set_vector_track 2093.5691 {fromY} 2140.543 {fromZ} 66.9993 {toX} 2115.053 {toY} 2140.5859 {toZ} 62.3108 {time} 2900 {ease} False

:FINALEC_55240
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55271
wait 0
gosub @FINALEC_57086
goto @FINALEC_55240

:FINALEC_55271
camera_set_vector_move 2114.1021 {fromY} 2140.584 {fromZ} 62.62 {toX} 2135.5869 {toY} 2140.627 {toZ} 57.9315 {time} 2900 {ease} False
camera_set_vector_track 2115.053 {fromY} 2140.5859 {fromZ} 62.3108 {toX} 2136.5381 {toY} 2140.6289 {toZ} 57.6223 {time} 2900 {ease} False

:FINALEC_55345
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55376
wait 0
gosub @FINALEC_57086
goto @FINALEC_55345

:FINALEC_55376
camera_set_vector_move 2135.5869 {fromY} 2140.627 {fromZ} 57.9315 {toX} 2157.071 {toY} 2140.6699 {toZ} 53.2431 {time} 2900 {ease} False
camera_set_vector_track 2136.5381 {fromY} 2140.6289 {fromZ} 57.6223 {toX} 2158.022 {toY} 2140.6721 {toZ} 52.9338 {time} 2900 {ease} False

:FINALEC_55450
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55481
wait 0
gosub @FINALEC_57086
goto @FINALEC_55450

:FINALEC_55481
camera_set_vector_move 2157.071 {fromY} 2140.6699 {fromZ} 53.2431 {toX} 2179.0439 {toY} 2140.7141 {toZ} 48.4481 {time} 2900 {ease} False
camera_set_vector_track 2158.022 {fromY} 2140.6721 {fromZ} 52.9338 {toX} 2179.9951 {toY} 2140.7161 {toZ} 48.1388 {time} 2900 {ease} False

:FINALEC_55555
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55586
wait 0
gosub @FINALEC_57086
goto @FINALEC_55555

:FINALEC_55586
camera_set_vector_move 2179.0439 {fromY} 2140.7141 {fromZ} 48.4481 {toX} 2201.0171 {toY} 2140.7581 {toZ} 43.6528 {time} 2900 {ease} False
camera_set_vector_track 2179.9951 {fromY} 2140.7161 {fromZ} 48.1388 {toX} 2201.968 {toY} 2140.76 {toZ} 43.344 {time} 2900 {ease} False

:FINALEC_55660
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55691
wait 0
gosub @FINALEC_57086
goto @FINALEC_55660

:FINALEC_55691
camera_set_vector_move 2201.0171 {fromY} 2140.7581 {fromZ} 43.6528 {toX} 2222.665 {toY} 2140.801 {toZ} 39.8525 {time} 2900 {ease} False
camera_set_vector_track 2201.968 {fromY} 2140.76 {fromZ} 43.344 {toX} 2223.635 {toY} 2140.802 {toZ} 39.6117 {time} 2900 {ease} False

:FINALEC_55765
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55796
wait 0
gosub @FINALEC_57086
goto @FINALEC_55765

:FINALEC_55796
camera_set_vector_move 2222.665 {fromY} 2140.801 {fromZ} 39.8525 {toX} 2244.4709 {toY} 2140.844 {toZ} 37.0436 {time} 2900 {ease} False
camera_set_vector_track 2223.635 {fromY} 2140.802 {fromZ} 39.6117 {toX} 2245.4519 {toY} 2140.845 {toZ} 36.8518 {time} 2900 {ease} False

:FINALEC_55870
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55901
wait 0
gosub @FINALEC_57086
goto @FINALEC_55870

:FINALEC_55901
camera_set_vector_move 2244.4709 {fromY} 2140.844 {fromZ} 37.0436 {toX} 2266.387 {toY} 2140.886 {toZ} 35.2987 {time} 2900 {ease} False
camera_set_vector_track 2245.4519 {fromY} 2140.845 {fromZ} 36.8518 {toX} 2267.3779 {toY} 2140.8879 {toZ} 35.1659 {time} 2900 {ease} False

:FINALEC_55975
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56006
wait 0
gosub @FINALEC_57086
goto @FINALEC_55975

:FINALEC_56006
camera_set_vector_move 2266.387 {fromY} 2140.886 {fromZ} 35.2987 {toX} 2287.8669 {toY} 2140.928 {toZ} 34.9542 {time} 2900 {ease} False
camera_set_vector_track 2267.3779 {fromY} 2140.8879 {fromZ} 35.1659 {toX} 2288.864 {toY} 2140.9299 {toZ} 34.8693 {time} 2900 {ease} False

:FINALEC_56080
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56111
wait 0
gosub @FINALEC_57086
goto @FINALEC_56080

:FINALEC_56111
camera_set_vector_move 2287.8669 {fromY} 2140.928 {fromZ} 34.9542 {toX} 2310.356 {toY} 2140.9719 {toZ} 35.284 {time} 2900 {ease} False
camera_set_vector_track 2288.864 {fromY} 2140.9299 {fromZ} 34.8693 {toX} 2311.353 {toY} 2140.9741 {toZ} 35.1991 {time} 2900 {ease} False

:FINALEC_56185
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56216
wait 0
gosub @FINALEC_57086
goto @FINALEC_56185

:FINALEC_56216
camera_set_vector_move 2310.356 {fromY} 2140.9719 {fromZ} 35.284 {toX} 2332.845 {toY} 2141.0161 {toZ} 35.6137 {time} 2900 {ease} False
camera_set_vector_track 2311.353 {fromY} 2140.9741 {fromZ} 35.1991 {toX} 2333.842 {toY} 2141.0181 {toZ} 35.5288 {time} 2900 {ease} False

:FINALEC_56290
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56321
wait 0
gosub @FINALEC_57086
goto @FINALEC_56290

:FINALEC_56321
set_music_does_fade True
camera_set_vector_move 2332.845 {fromY} 2141.0161 {fromZ} 35.6137 {toX} 2354.335 {toY} 2141.0581 {toZ} 35.9288 {time} 2900 {ease} False
camera_set_vector_track 2333.842 {fromY} 2141.0181 {fromZ} 35.5288 {toX} 2355.3311 {toY} 2141.0601 {toZ} 35.8439 {time} 2900 {ease} False

:FINALEC_56399
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56430
wait 0
gosub @FINALEC_57086
goto @FINALEC_56399

:FINALEC_56430
do_fade 4000 {direction} Fade.Out
camera_set_vector_move 2354.335 {fromY} 2141.0581 {fromZ} 35.9288 {toX} 2376.824 {toY} 2141.1021 {toZ} 36.2586 {time} 2900 {ease} False
camera_set_vector_track 2355.3311 {fromY} 2141.0601 {fromZ} 35.8439 {toX} 2377.8201 {toY} 2141.104 {toZ} 36.1737 {time} 2900 {ease} False

:FINALEC_56511
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56542
wait 0
gosub @FINALEC_57086
goto @FINALEC_56511

:FINALEC_56542
camera_set_vector_move 2376.824 {fromY} 2141.1021 {fromZ} 36.2586 {toX} 2399.813 {toY} 2141.147 {toZ} 36.5957 {time} 2900 {ease} False
camera_set_vector_track 2377.8201 {fromY} 2141.104 {fromZ} 36.1737 {toX} 2400.8091 {toY} 2141.1489 {toZ} 36.5108 {time} 2900 {ease} False

:FINALEC_56616
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56647
wait 0
gosub @FINALEC_57086
goto @FINALEC_56616

:FINALEC_56647
297@ = 1

:FINALEC_56654
skip_cutscene_end 
if 
  297@ == 0
goto_if_false @FINALEC_56676
stop_credits 

:FINALEC_56676
set_music_does_fade True
do_fade 0 {direction} Fade.Out

:FINALEC_56686
if 
  get_fading_status 
goto_if_false @FINALEC_56710
wait 0
goto @FINALEC_56686

:FINALEC_56710
switch_widescreen False
release_weather 
force_weather_now WeatherType.SunnySmogLa
stop_beat_track 
freeze_char_position $scplayer {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2494.4829 {y} -1684.639 {z} 12.51
set_char_heading $scplayer {heading} 3.546
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_darkness_effect False {pitchBlack} -1
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0

:FINALEC_56790
if 
  not are_credits_finished 
goto_if_false @FINALEC_56814
wait 0
goto @FINALEC_56790

:FINALEC_56814
stop_beat_track 
stop_credits 
load_scene_in_direction 2495.1111 {y} -1687.04 {z} 12.55 {heading} 0.0
wait 500
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 300
do_fade 3500 {direction} Fade.In

:FINALEC_56862
if 
  get_fading_status 
goto_if_false @FINALEC_56886
wait 0
goto @FINALEC_56862

:FINALEC_56886
clear_wanted_level $player1
set_player_control $player1 {state} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 120
goto @FINALEC_57365
288@ = 11

:FINALEC_56928
goto @FINALEC_1815

:FINALEC_56935
if 
  204@ == 0
goto_if_false @FINALEC_56975
load_mission_audio MissionAudioSlot.Slot1 {audioId} 187@
set_lvar_text_label 185@s = 188@s
204@ = 1

:FINALEC_56975
return 

:FINALEC_56977
if 
  204@ == 1
goto_if_false @FINALEC_57031
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEC_57031
print_now 185@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
204@ = 2

:FINALEC_57031
if 
  204@ == 2
goto_if_false @FINALEC_57084
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @FINALEC_57084
203@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0

:FINALEC_57084
return 

:FINALEC_57086
$player_x, $player_y, $player_z = get_active_camera_coordinates 
$player_z += 1.5
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
return 

:FINALEC_57123
184@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 107@
close_sequence_task 184@
perform_sequence_task 102@ {sequence} 184@
clear_sequence_task 184@
return 

:FINALEC_57161
98@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 98@
perform_sequence_task 102@ {sequence} 98@
clear_sequence_task 98@
return 

:FINALEC_57205
99@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 99@
perform_sequence_task 102@ {sequence} 99@
clear_sequence_task 99@
return 

:FINALEC_57243
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  201@ == 1
goto_if_false @FINALEC_57295
print_now 'RM4_46' {time} 5000 {flag} 1

:FINALEC_57295
if 
  198@ == 7
goto_if_false @FINALEC_57329
print_now 'RM4_45' {time} 7000 {flag} 1

:FINALEC_57329
if 
  202@ == 1
goto_if_false @FINALEC_57363
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEC_57363
return 

:FINALEC_57365
clear_wanted_level $player1
register_mission_passed 'RIOT_4'
player_made_progress 1
set_int_stat StatId.CitiesPassed {value} 4
remove_blip $mansion_contact_blip
remove_blip $sweet_contact_blip
$flag_riot_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 150 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 150
return 

:FINALEC_57439
set_railtrack_resistance_mult -1.0
clear_onscreen_counter $fgripbardisplay_fc
clear_onscreen_counter $health_fc
set_player_enter_car_button $player1 {enabled} True
remove_blip 115@
remove_blip 238@
remove_blip 239@
remove_blip 240@
remove_blip 241@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
remove_blip 247@
remove_blip 248@
remove_blip 278@
remove_blip 279@
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
kill_fx_system 283@
kill_fx_system 284@
kill_fx_system 285@
kill_fx_system 286@
remove_char_elegantly $sweet
remove_char_elegantly 49@
remove_char_elegantly 158@
remove_char_elegantly 159@
remove_all_script_fires 
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
remove_animation "FINALE"
remove_animation "FINALE2"
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 576
unload_special_character 1
unload_special_character 2
if 
  not is_car_dead 153@
goto_if_false @FINALEC_57742
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57742
if 
  not is_car_dead 152@
goto_if_false @FINALEC_57780
lock_car_doors 152@ {lockStatus} CarLock.Unlocked
set_car_proofs 152@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57780
if 
  is_player_playing $player1
goto_if_false @FINALEC_57818
shut_char_up $scplayer {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57818
release_weather 
switch_random_trains True
switch_emergency_services True
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 113---------------
// Originally: Shooting range

:SHRANGE
script_name 'SHRANGE'
set_deatharrest_state 0
$onmission = 1
$flag_shooting_range_mission = 1
$rioters_fcflag = 286.1649
$8020 = -30.9591
$Schallenge_X = 301.8877
$Schallenge_Y = -77.2586
$8018 = 306.4883
$8022 = -141.9047
$8019 = 307.0919
$8023 = -159.2197
$8056[0] = -321
$8056[1] = -322
$8056[2] = -323
$8056[3] = -324
$8056[4] = -325
$8056[5] = -326
$8056[6] = -327
$8056[7] = -328
$8037[1] = 0.275
$8045[1] = -3.502
$8037[2] = -0.214
$8045[2] = -3.479
$8037[3] = 0.245
$8045[3] = -2.791
$8037[4] = -0.168
$8045[4] = -2.806
$8037[5] = 0.079
$8045[5] = -2.123
$8037[6] = -0.589
$8045[6] = -2.317
$8037[7] = -0.357
$8045[7] = -1.855
35@ = 290.6264
39@ = -24.5548
43@ = 1000.523
47@ = 3.0583
51@ = 6.1726
55@ = -13.6242
59@ = 0.0
36@ = 303.0788
40@ = -61.2269
44@ = 1000.523
48@ = 2.9464
52@ = 6.0799
56@ = -13.6242
60@ = 270.0
37@ = 300.1018
41@ = -137.0399
45@ = 1003.055
49@ = 3.1341
53@ = 6.1264
57@ = -13.6242
61@ = 90.0
38@ = 299.4518
42@ = -166.3517
46@ = 998.6105
50@ = 3.0055
54@ = 4.6018
58@ = -13.6242
62@ = 90.0
$sr_i = 0

:SHRANGE_600
if 
  3 > $sr_i
goto_if_false @SHRANGE_723
$8088($sr_i,3i) = 1
$sr_yoffset($sr_i,3i) = 0
$8027($sr_i,4i) = 0
$8024($sr_i,3i) = 0
$8031($sr_i,3i) = 0
$8053($sr_i,3f) = 90.0
$8120($sr_i,3i) = 0
$SR_mission_state($sr_i,3i) = 0
$sr_i += 1
goto @SHRANGE_600

:SHRANGE_723
$sr_Dec = 0
$sr_area = 0
$SR_flag = 0
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @SHRANGE_777
$player_has_fast_reload = 2

:SHRANGE_777
if 
  $Return_cities_passed == 1
goto_if_false @SHRANGE_827
if 
  $player_has_fast_reload == 2
goto_if_false @SHRANGE_820
$range_weapons_open = 1

:SHRANGE_820
$player_has_fast_reload = 3

:SHRANGE_827
if 
  $Return_cities_passed > 1
goto_if_false @SHRANGE_877
if 
  4 > $player_has_fast_reload
goto_if_false @SHRANGE_870
$range_weapons_open = 1

:SHRANGE_870
$player_has_fast_reload = 4

:SHRANGE_877
$8068 = copy_char_decision_maker DecisionMakerCharTemplate.RandomNorm
clear_char_decision_maker_event_response $8068 {event} Event.ShotFired
add_char_decision_maker_event_response $8068 {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1801
request_model #TARGET_HEAD
request_model #TARGET_LARM
request_model #TARGET_RARM
request_model #TARGET_LLEG
request_model #TARGET_RLEG
request_model #TARGET_RTORSO
request_model #TARGET_LTORSO
request_model #TARGET_FRAME
request_model 346
request_model 352
request_model 349
request_model 355

:SHRANGE_995
if or
  not has_model_loaded 346
  not has_model_loaded 352
  not has_model_loaded 349
  not has_model_loaded 355
goto_if_false @SHRANGE_1037
wait 0
goto @SHRANGE_995

:SHRANGE_1037
if or
  not has_model_loaded #TARGET_HEAD
  not has_model_loaded #TARGET_LARM
  not has_model_loaded #TARGET_RARM
  not has_model_loaded #TARGET_LLEG
  not has_model_loaded #TARGET_RLEG
goto_if_false @SHRANGE_1084
wait 0
goto @SHRANGE_1037

:SHRANGE_1084
if or
  not has_model_loaded #TARGET_RTORSO
  not has_model_loaded #TARGET_LTORSO
  not has_model_loaded #TARGET_FRAME
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @SHRANGE_1125
wait 0
goto @SHRANGE_1084

:SHRANGE_1125
if 
  $flag_shooting_range_mission == 47
goto_if_false @SHRANGE_1201
$8096[0] = create_object_no_offset $8056($sr_i,8i) {x} 293.757 {y} 1.0 {z} 1000.516
$sr_obj_number[0] = create_random_char $x {y} $y {z} $z
$8064 = create_object 338 {x} $x {y} $y {z} $z

:SHRANGE_1201
$8073 = get_area_visible 

:SHRANGE_1206
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @SHRANGE_1298
$sr_i = 9

:SHRANGE_1228
if 
  16 > $sr_i
goto_if_false @SHRANGE_1291
if 
  does_object_exist $8096($sr_i,24i)
goto_if_false @SHRANGE_1277
break_object $8096($sr_i,24i) {intensity} 1

:SHRANGE_1277
$sr_i += 1
goto @SHRANGE_1228

:SHRANGE_1291
$sr_Score = 20

:SHRANGE_1298
wait 0
$sr_i = get_area_visible 
if 
  not is_int_var_equal_to_int_var $sr_i == $8073
goto_if_false @SHRANGE_1333
goto @SHRANGE_16741

:SHRANGE_1333
if 
  is_player_playing $player1
goto_if_false @SHRANGE_1370
gosub @SHRANGE_13202
gosub @SHRANGE_10813
gosub @SHRANGE_1379

:SHRANGE_1370
goto @SHRANGE_1206
terminate_this_script 

:SHRANGE_1379
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SHRANGE_1444
if 
  $sr_Dec <> 0
goto_if_false @SHRANGE_1444
clear_prints 
34@ = 1
$sr_Dec = 20
$sr_area = 1
$SR_flag = 0

:SHRANGE_1444
switch_start $sr_Dec {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_10811 {caseNum1} 0 {caseLabel1} @SHRANGE_1507 {caseNum2} 1 {caseLabel2} @SHRANGE_1806 {caseNum3} 2 {caseLabel3} @SHRANGE_5083 {caseNum4} 3 {caseLabel4} @SHRANGE_5296 {caseNum5} 4 {caseLabel5} @SHRANGE_6513 {caseNum6} 5 {caseLabel6} @SHRANGE_8127 {caseNum7} 20 {caseLabel7} @SHRANGE_9940

:SHRANGE_1507
if 
  $SR_range_id == 0
goto_if_false @SHRANGE_1580
if 
  locate_char_any_means_3d $scplayer {x} 286.1649 {y} -30.9591 {z} 1000.516 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1580
$sr_Dec = 1

:SHRANGE_1580
if 
  $SR_range_id == 1
goto_if_false @SHRANGE_1653
if 
  locate_char_any_means_3d $scplayer {x} 301.8877 {y} -77.2586 {z} 1000.523 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1653
$sr_Dec = 1

:SHRANGE_1653
if 
  $SR_range_id == 2
goto_if_false @SHRANGE_1726
if 
  locate_char_any_means_3d $scplayer {x} 306.4883 {y} -141.9047 {z} 1003.055 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1726
$sr_Dec = 1

:SHRANGE_1726
if 
  $SR_range_id == 3
goto_if_false @SHRANGE_1799
if 
  locate_char_any_means_3d $scplayer {x} 307.0919 {y} -159.2197 {z} 998.601 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1799
$sr_Dec = 1

:SHRANGE_1799
goto @SHRANGE_10811

:SHRANGE_1806
if 
  $tell_player_to_kill_valet > 0
goto_if_false @SHRANGE_1865
if and
  7 > $sr_area
  $sr_area > 1
goto_if_false @SHRANGE_1865
$sr_area = 7
$SR_flag = 0
clear_prints 

:SHRANGE_1865
if 
  $sr_area == 0
goto_if_false @SHRANGE_2013
34@ = 0
set_player_cycle_weapon_button $player1 {enabled} False
$8134, $8130, $8138 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Pistols
$WeaponType, $ammo, $ModelForWeaponType = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Shotguns
$8136, $8132, $8140 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.SMG
$8137, $8133, $8141 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Assault
$8123 = 0
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_2013
if 
  $sr_area == 1
goto_if_false @SHRANGE_2247
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2247
switch_widescreen True
clear_prints 
print 'ANR_1' {time} 4000 {flag} 1
print 'ANR_2' {time} 4000 {flag} 1
print 'ANR_3' {time} 4000 {flag} 1
$sr_float2 = -0.83
$sr_float3 = 0.47
$z = 1.7
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float2 = 0.17
$sr_float3 = 0.63
$z = 1.7
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000

:SHRANGE_2247
if 
  $sr_area == 2
goto_if_false @SHRANGE_2441
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2441
$sr_yoffset[1] = 3
$8088[1] = 0
$sr_float2 = -0.63
$sr_float3 = -3.47
$z = 0.2
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float2 = 0.4
$sr_float3 = -2.5
$z = 0.5
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 2000

:SHRANGE_2441
if 
  $sr_area == 3
goto_if_false @SHRANGE_2570
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2570
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 99999
$sr_float2 = 0.0
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -1.0
gosub @SHRANGE_16573
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_2570
if 
  $sr_area == 4
goto_if_false @SHRANGE_3014
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3014
$sr_yoffset[1] = 4
set_var_float_to_lvar_float $sr_direction = 59@($SR_range_id,4f)
$sr_direction += 90.0
set_char_heading $scplayer {heading} $sr_direction
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float2 -= 0.8201
$sr_float3 = -0.4944
$z = 2.1312
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float2 -= 0.1125
$sr_float3 = -0.0237
$z = 1.6042
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = -2.0
$z = 0.0
gosub @SHRANGE_16573
set_char_coordinates_dont_warp_gang $scplayer {x} $x {y} $y {z} $z
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
if 
  $8123 == 0
goto_if_false @SHRANGE_2935
$8027[0] = 1
$8027[2] = 1

:SHRANGE_2935
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_3014
if 
  $sr_area == 5
goto_if_false @SHRANGE_3205
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3205
clear_prints 
print_big 'ANR_6' {time} 2000 {style} TextStyle.Middle
$sr_float2 = 2.1566
$sr_float3 = 2.4369
$z = 1.4565
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float2 = 1.9771
$sr_float3 = 3.4129
$z = 1.3326
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_3205
if 
  $sr_area == 6
goto_if_false @SHRANGE_3444
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3444
if 
  not is_char_dead $sr_obj_number[0]
goto_if_false @SHRANGE_3265
set_char_accuracy $sr_obj_number[0] {accuracy} 100

:SHRANGE_3265
clear_this_big_print 'ANR_6'
print 'ANR_7' {time} 4000 {flag} 1
print 'ANR_10' {time} 4000 {flag} 1
$sr_float2 = 0.7525
$sr_float3 = -0.3628
$z = 1.6174
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float2 = 0.1734
$sr_float3 = 0.446
$z = 1.5146
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 8000

:SHRANGE_3444
if 
  $sr_area == 7
goto_if_false @SHRANGE_3559
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3559
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_3497

:SHRANGE_3497
if 
  $tell_player_to_kill_valet == 0
goto_if_false @SHRANGE_3529
$tell_player_to_kill_valet = 1
goto @SHRANGE_3545

:SHRANGE_3529
print_big 'ANR_6' {time} 2000 {style} TextStyle.Middle

:SHRANGE_3545
do_fade 1000 {direction} Fade.Out
$sr_area = 8

:SHRANGE_3559
if 
  $sr_area == 8
goto_if_false @SHRANGE_3859
if 
  not get_fading_status 
goto_if_false @SHRANGE_3859
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
if 
  not does_object_exist $8064
goto_if_false @SHRANGE_3681
$8064 = create_object 338 {x} $x {y} $y {z} $z
set_object_visible $8064 {state} False
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)

:SHRANGE_3681
clear_char_tasks_immediately $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
set_player_duck_button $player1 {enabled} False
if 
  $8123 == 0
goto_if_false @SHRANGE_3755
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 99999

:SHRANGE_3755
$sr_yoffset[1] = 4
$8088[1] = 0
$sr_area = 9
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 800
if 
  $8123 == 0
goto_if_false @SHRANGE_3824
$8027[0] = 1
$8027[2] = 1

:SHRANGE_3824
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
$8031[0] = 4
$8031[1] = 4
$8031[2] = 4

:SHRANGE_3859
if 
  $sr_area == 9
goto_if_false @SHRANGE_4038
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4038
do_fade 1000 {direction} Fade.In
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
if 
  $range_weapons_open == 1
goto_if_false @SHRANGE_4031
print_help 'ANR_56'
$range_weapons_open = 0

:SHRANGE_4031
$sr_area = 10

:SHRANGE_4038
if 
  $sr_area == 10
goto_if_false @SHRANGE_4121
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4121
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 11
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
set_player_control $player1 {state} True

:SHRANGE_4121
if 
  $sr_area == 11
goto_if_false @SHRANGE_4197
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4197
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 12
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_4197
if 
  $sr_area == 12
goto_if_false @SHRANGE_4273
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4273
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 13
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_4273
if 
  $sr_area == 13
goto_if_false @SHRANGE_4356
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4356
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 14
if 
  not is_char_dead $sr_obj_number[0]
goto_if_false @SHRANGE_4356
set_char_accuracy $sr_obj_number[0] {accuracy} 80

:SHRANGE_4356
if 
  $sr_area == 14
goto_if_false @SHRANGE_4388
$sr_Dec = 2
$sr_area = 0

:SHRANGE_4388
if 
  $sr_area == 16
goto_if_false @SHRANGE_4607
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4607
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_4577
if 
  not does_object_exist $8064
goto_if_false @SHRANGE_4577
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
$8064 = create_object 338 {x} $x {y} $y {z} $z
set_object_visible $8064 {state} False
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 
switch_widescreen False
set_player_duck_button $player1 {enabled} False

:SHRANGE_4577
do_fade 1000 {direction} Fade.Out
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500
$sr_area = 17

:SHRANGE_4607
if 
  $sr_area == 17
goto_if_false @SHRANGE_4990
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4990
if 
  $8123 == 3
goto_if_false @SHRANGE_4711
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.MicroUzi

:SHRANGE_4711
if 
  $8123 == 6
goto_if_false @SHRANGE_4778
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Shotgun

:SHRANGE_4778
if 
  $8123 == 9
goto_if_false @SHRANGE_4845
give_weapon_to_char $scplayer {weaponType} WeaponType.Ak47 {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Ak47

:SHRANGE_4845
do_fade 1000 {direction} Fade.In
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  $8123 == 3
goto_if_false @SHRANGE_4899
print_big 'ANR_47' {time} 3000 {style} TextStyle.Middle

:SHRANGE_4899
if 
  $8123 == 6
goto_if_false @SHRANGE_4933
print_big 'ANR_23' {time} 3000 {style} TextStyle.Middle

:SHRANGE_4933
if 
  $8123 == 9
goto_if_false @SHRANGE_4967
print_big 'ANR_50' {time} 3000 {style} TextStyle.Middle

:SHRANGE_4967
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 18

:SHRANGE_4990
if 
  $sr_area == 18
goto_if_false @SHRANGE_5076
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_5076
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
$sr_area = 10

:SHRANGE_5076
goto @SHRANGE_10811

:SHRANGE_5083
if 
  $sr_area == 0
goto_if_false @SHRANGE_5154
if 
  not is_char_dead $sr_obj_number[0]
goto_if_false @SHRANGE_5124
set_char_accuracy $sr_obj_number[0] {accuracy} 87

:SHRANGE_5124
if 
  not is_char_dead $sr_obj_number[2]
goto_if_false @SHRANGE_5147
set_char_accuracy $sr_obj_number[2] {accuracy} 87

:SHRANGE_5147
$sr_area = 1

:SHRANGE_5154
if 
  $sr_area == 1
goto_if_false @SHRANGE_5289
if and
  $8031[0] == 3
  $8024[0] == 3
goto_if_false @SHRANGE_5211
$sr_Dec = 20
$sr_area = 0

:SHRANGE_5211
if and
  $8031[2] == 3
  $8024[2] == 3
goto_if_false @SHRANGE_5250
$sr_Dec = 20
$sr_area = 0

:SHRANGE_5250
if and
  $8031[1] == 3
  $8024[1] == 3
goto_if_false @SHRANGE_5289
$sr_Dec = 3
$sr_area = 0

:SHRANGE_5289
goto @SHRANGE_10811

:SHRANGE_5296
if 
  $sr_area == 0
goto_if_false @SHRANGE_5915
if or
  $8123 == 0
  $8123 == 3
  $8123 == 6
  $8123 == 9
goto_if_false @SHRANGE_5369
print_big 'ANR_41' {time} 3000 {style} TextStyle.Middle

:SHRANGE_5369
if or
  $8123 == 1
  $8123 == 4
  $8123 == 7
  $8123 == 10
goto_if_false @SHRANGE_5435
clear_this_big_print 'ANR_41'
print_big 'ANR_42' {time} 3000 {style} TextStyle.Middle

:SHRANGE_5435
if or
  $8123 == 2
  $8123 == 5
  $8123 == 8
goto_if_false @SHRANGE_5515
clear_this_big_print 'ANR_42'
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5

:SHRANGE_5515
if 
  $8123 == 11
goto_if_false @SHRANGE_5586
print_big 'ANR_45' {time} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 5500
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5

:SHRANGE_5586
if 
  is_int_var_equal_to_int_var $8123 == $SR_skill_award_given
goto_if_false @SHRANGE_5908
if or
  $8123 == 0
  $8123 == 1
goto_if_false @SHRANGE_5639
increment_float_stat StatId.WeapontypePistolSkill {value} 50.0

:SHRANGE_5639
if or
  $8123 == 3
  $8123 == 4
goto_if_false @SHRANGE_5673
increment_float_stat StatId.WeapontypeMicroUziSkill {value} 50.0

:SHRANGE_5673
if or
  $8123 == 6
  $8123 == 7
goto_if_false @SHRANGE_5707
increment_float_stat StatId.WeapontypeShotgunSkill {value} 50.0

:SHRANGE_5707
if or
  $8123 == 9
  $8123 == 10
goto_if_false @SHRANGE_5741
increment_float_stat StatId.WeapontypeAk47Skill {value} 50.0

:SHRANGE_5741
if 
  $8123 == 2
goto_if_false @SHRANGE_5772
increment_float_stat StatId.WeapontypePistolSkill {value} 100.0
player_made_progress 1

:SHRANGE_5772
if 
  $8123 == 5
goto_if_false @SHRANGE_5803
increment_float_stat StatId.WeapontypeMicroUziSkill {value} 100.0
player_made_progress 1

:SHRANGE_5803
if 
  $8123 == 8
goto_if_false @SHRANGE_5834
increment_float_stat StatId.WeapontypeShotgunSkill {value} 100.0
player_made_progress 1

:SHRANGE_5834
if 
  $8123 == 11
goto_if_false @SHRANGE_5893
increment_float_stat StatId.WeapontypeAk47Skill {value} 100.0
set_float_stat StatId.WeapontypePistolSkill {value} 1000.0
add_score $player1 {money} 10000
player_made_progress 1
play_mission_passed_tune 2
$valet_cash_pickup = 1

:SHRANGE_5893
$SR_skill_award_given += 1
set_int_stat StatId.ShootingRangeScore {value} $SR_skill_award_given

:SHRANGE_5908
$sr_area = 1

:SHRANGE_5915
if 
  $sr_area == 1
goto_if_false @SHRANGE_6506
if 
  $8123 == 0
goto_if_false @SHRANGE_5965
$sr_Dec = 4
$sr_area = 0

:SHRANGE_5965
if or
  $8123 == 3
  $8123 == 6
  $8123 == 9
goto_if_false @SHRANGE_6011
$sr_Dec = 4
$sr_area = 10

:SHRANGE_6011
if 
  $8123 == 1
goto_if_false @SHRANGE_6043
$sr_Dec = 5
$sr_area = 0

:SHRANGE_6043
if or
  $8123 == 4
  $8123 == 7
  $8123 == 10
goto_if_false @SHRANGE_6089
$sr_Dec = 5
$sr_area = 10

:SHRANGE_6089
if or
  $8123 == 2
  $8123 == 5
  $8123 == 8
goto_if_false @SHRANGE_6135
$sr_Dec = 1
$sr_area = 16

:SHRANGE_6135
if 
  $8123 == 2
goto_if_false @SHRANGE_6197
$8027[0] = 2
$8027[2] = 2
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
print_big 'ANR_29' {time} 3000 {style} TextStyle.Middle

:SHRANGE_6197
if 
  $8123 == 5
goto_if_false @SHRANGE_6259
$8027[0] = 3
$8027[2] = 3
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
print_big 'ANR_53' {time} 3000 {style} TextStyle.Middle

:SHRANGE_6259
if 
  $8123 == 8
goto_if_false @SHRANGE_6321
$8027[0] = 4
$8027[2] = 4
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
print_big 'ANR_31' {time} 3000 {style} TextStyle.Middle

:SHRANGE_6321
if 
  $8123 == 5
goto_if_false @SHRANGE_6394
if 
  2 >= $player_has_fast_reload
goto_if_false @SHRANGE_6378
$sr_Dec = 20
$sr_area = 1
goto @SHRANGE_6394

:SHRANGE_6378
print 'ANR_44' {time} 4000 {flag} 1

:SHRANGE_6394
if 
  $8123 == 8
goto_if_false @SHRANGE_6467
if 
  3 >= $player_has_fast_reload
goto_if_false @SHRANGE_6451
$sr_Dec = 20
$sr_area = 1
goto @SHRANGE_6467

:SHRANGE_6451
print 'ANR_44' {time} 4000 {flag} 1

:SHRANGE_6467
if 
  $8123 == 11
goto_if_false @SHRANGE_6499
$sr_Dec = 20
$sr_area = 1

:SHRANGE_6499
$8123 += 1

:SHRANGE_6506
goto @SHRANGE_10811

:SHRANGE_6513
if 
  $sr_area == 0
goto_if_false @SHRANGE_6617
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$8024[0] = 4
$8024[1] = 4
$8024[2] = 4
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_6617
if 
  $sr_area == 1
goto_if_false @SHRANGE_6692
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_6692
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_6692
if 
  $sr_area == 2
goto_if_false @SHRANGE_7025
if 
  $tell_player_to_kill_valet > 1
goto_if_false @SHRANGE_6829
clear_prints 
if 
  does_object_exist $8096[8]
goto_if_false @SHRANGE_6751
delete_object $8096[8]

:SHRANGE_6751
clear_this_big_print 'ANR_18'
clear_this_big_print 'ANR_19'
$SR_flag = 0
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$sr_area = 3
$SR_flag = 0
do_fade 800 {direction} Fade.Out
goto @SHRANGE_7025

:SHRANGE_6829
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7025
set_player_control $player1 {state} False
switch_widescreen True
clear_this_big_print 'ANR_41'
print_big 'ANR_18' {time} 4000 {style} TextStyle.Middle
print 'ANR_9' {time} 3000 {flag} 1
print 'ANR_10' {time} 3000 {flag} 1
$sr_float2 = -2.0835
$sr_float3 = 6.0428
$z = 0.0387
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0

:SHRANGE_7025
if 
  $sr_area == 3
goto_if_false @SHRANGE_7092
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7092
do_fade 1000 {direction} Fade.In
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 6000

:SHRANGE_7092
if 
  $sr_area == 4
goto_if_false @SHRANGE_7404
if 
  $tell_player_to_kill_valet == 1
goto_if_false @SHRANGE_7181
if 
  does_object_exist $8096[8]
goto_if_false @SHRANGE_7181
$x, $y, $z = get_object_coordinates $8096[8]
$z -= 2.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SHRANGE_7181
if or
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
  $tell_player_to_kill_valet > 1
goto_if_false @SHRANGE_7404
if 
  $tell_player_to_kill_valet == 1
goto_if_false @SHRANGE_7239
$tell_player_to_kill_valet = 2
goto @SHRANGE_7255

:SHRANGE_7239
print_big 'ANR_18' {time} 2000 {style} TextStyle.Middle

:SHRANGE_7255
if 
  3 > $tell_player_to_kill_valet
goto_if_false @SHRANGE_7316
restore_camera_jumpcut 
switch_widescreen False
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol

:SHRANGE_7316
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
set_player_control $player1 {state} True

:SHRANGE_7404
if 
  $sr_area == 5
goto_if_false @SHRANGE_7480
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7480
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_7480
if 
  $sr_area == 6
goto_if_false @SHRANGE_7556
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7556
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_7556
if 
  $sr_area == 7
goto_if_false @SHRANGE_7616
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7616
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 8

:SHRANGE_7616
if 
  $sr_area == 8
goto_if_false @SHRANGE_7751
if and
  $8031[0] == 3
  $SR_mission_state[0] == 3
goto_if_false @SHRANGE_7673
$sr_Dec = 20
$sr_area = 0

:SHRANGE_7673
if and
  $8031[2] == 3
  $SR_mission_state[2] == 3
goto_if_false @SHRANGE_7712
$sr_Dec = 20
$sr_area = 0

:SHRANGE_7712
if and
  $8031[1] == 3
  $SR_mission_state[1] == 3
goto_if_false @SHRANGE_7751
$sr_Dec = 3
$sr_area = 0

:SHRANGE_7751
if 
  $sr_area == 10
goto_if_false @SHRANGE_7797
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$sr_area = 11

:SHRANGE_7797
if 
  $sr_area == 11
goto_if_false @SHRANGE_7974
if and
  $8031[0] == 99
  $8031[1] == 99
  $8031[2] == 99
goto_if_false @SHRANGE_7974
clear_prints 
if 
  $8123 == 4
goto_if_false @SHRANGE_7883
print_big 'ANR_48' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7883
if 
  $8123 == 7
goto_if_false @SHRANGE_7917
print_big 'ANR_24' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7917
if 
  $8123 == 10
goto_if_false @SHRANGE_7951
print_big 'ANR_51' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7951
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 12

:SHRANGE_7974
if 
  $sr_area == 12
goto_if_false @SHRANGE_8120
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8120
$8024[0] = 4
$8024[1] = 4
$8024[2] = 4
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
set_player_control $player1 {state} True

:SHRANGE_8120
goto @SHRANGE_10811

:SHRANGE_8127
if 
  $tell_player_to_kill_valet > 2
goto_if_false @SHRANGE_8208
if and
  4 > $sr_area
  $sr_area > 1
goto_if_false @SHRANGE_8208
$SR_flag = 0
clear_prints 
clear_this_big_print 'ANR_18'
clear_this_big_print 'ANR_19'
$sr_area = 4

:SHRANGE_8208
if 
  $sr_area == 0
goto_if_false @SHRANGE_8333
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$8024[0] = 0
$8024[1] = 5
$8024[2] = 0
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_8333
if 
  $sr_area == 1
goto_if_false @SHRANGE_8408
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8408
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_8408
if 
  $sr_area == 2
goto_if_false @SHRANGE_8718
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8718
set_player_control $player1 {state} False
switch_widescreen True
set_player_control $player1 {state} False
clear_this_big_print 'ANR_41'
print_big 'ANR_19' {time} 4000 {style} TextStyle.Middle
print 'ANR_33' {time} 3000 {flag} 1
print 'ANR_34' {time} 3000 {flag} 1
print 'ANR_35' {time} 3000 {flag} 1
print 'ANR_46' {time} 3000 {flag} 1
$sr_float2 = 3.0583
$sr_float3 = 0.6889
$z = 1.2953
gosub @SHRANGE_16573
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float2 = 2.9703
$sr_float3 = 1.684
$z = 1.2513
gosub @SHRANGE_16573
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 12000
$8031[0] = 5
$8031[1] = 0
$8031[2] = 5

:SHRANGE_8718
if 
  $sr_area == 3
goto_if_false @SHRANGE_8806
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8806
do_fade 1000 {direction} Fade.Out
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500
$sr_area = 4
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0

:SHRANGE_8806
if 
  $sr_area == 4
goto_if_false @SHRANGE_9118
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9118
if 
  not get_fading_status 
goto_if_false @SHRANGE_9118
if 
  $tell_player_to_kill_valet == 2
goto_if_false @SHRANGE_8888
$tell_player_to_kill_valet = 3
goto @SHRANGE_8904

:SHRANGE_8888
print_big 'ANR_19' {time} 2000 {style} TextStyle.Middle

:SHRANGE_8904
display_onscreen_counter_with_string $SR_skill_won {display} CounterDisplay.Number {text} 'ANR_37'
display_nth_onscreen_counter_with_string $sr_Score {display} CounterDisplay.Number {slot} 2 {text} 'ANR_39'
display_nth_onscreen_counter_with_string $8126 {display} CounterDisplay.Number {slot} 3 {text} 'ANR_38'
do_fade 1000 {direction} Fade.In
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $8064 {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 0
$8031[2] = 5
clear_prints 
clear_this_big_print 'ANR_19'
clear_this_big_print 'ANR_18'
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
set_player_control $player1 {state} True
switch_widescreen False

:SHRANGE_9118
if 
  $sr_area == 5
goto_if_false @SHRANGE_9194
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9194
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_9194
if 
  $sr_area == 6
goto_if_false @SHRANGE_9270
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9270
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_9270
if 
  $sr_area == 7
goto_if_false @SHRANGE_9351
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9351
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 8
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0

:SHRANGE_9351
if 
  $sr_area == 8
goto_if_false @SHRANGE_9470
if 
  $sr_Score >= 20
goto_if_false @SHRANGE_9416
$sr_Dec = 3
$sr_area = 0
clear_onscreen_counter $SR_skill_won
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126

:SHRANGE_9416
if or
  $SR_skill_won >= 20
  $8126 >= 20
goto_if_false @SHRANGE_9470
$sr_Dec = 20
$sr_area = 0
clear_onscreen_counter $SR_skill_won
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126

:SHRANGE_9470
if 
  $sr_area == 10
goto_if_false @SHRANGE_9532
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 11

:SHRANGE_9532
if 
  $sr_area == 11
goto_if_false @SHRANGE_9717
if and
  $8031[0] == 99
  $8031[1] == 99
  $8031[2] == 99
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9717
clear_prints 
if 
  $8123 == 5
goto_if_false @SHRANGE_9626
print_big 'ANR_49' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9626
if 
  $8123 == 8
goto_if_false @SHRANGE_9660
print_big 'ANR_25' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9660
if 
  $8123 == 11
goto_if_false @SHRANGE_9694
print_big 'ANR_52' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9694
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 12

:SHRANGE_9717
if 
  $sr_area == 12
goto_if_false @SHRANGE_9933
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9933
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
$SR_mission_state[1] = 0
$8031[1] = 0
$8024[0] = 0
$8024[1] = 5
$8024[2] = 0
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
display_onscreen_counter_with_string $SR_skill_won {display} CounterDisplay.Number {text} 'ANR_37'
display_nth_onscreen_counter_with_string $sr_Score {display} CounterDisplay.Number {slot} 2 {text} 'ANR_39'
display_nth_onscreen_counter_with_string $8126 {display} CounterDisplay.Number {slot} 3 {text} 'ANR_38'
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
set_player_control $player1 {state} True
switch_widescreen False

:SHRANGE_9933
goto @SHRANGE_10811

:SHRANGE_9940
if 
  $sr_area == 0
goto_if_false @SHRANGE_9997
print_big 'ANR_16' {time} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000
$sr_area = 1

:SHRANGE_9997
if 
  $sr_area == 1
goto_if_false @SHRANGE_10048
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_10048
do_fade 1000 {direction} Fade.Out
$sr_area = 2

:SHRANGE_10048
if 
  $sr_area == 2
goto_if_false @SHRANGE_10102
if 
  not get_fading_status 
goto_if_false @SHRANGE_10102
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 500
$sr_area = 3

:SHRANGE_10102
if 
  $sr_area == 3
goto_if_false @SHRANGE_10804
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_10804
$sr_float2 = 2.0
$sr_float3 = -12.0
$z = 0.0
clear_onscreen_counter $SR_skill_won
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
detach_char_from_car $scplayer
gosub @SHRANGE_16573
set_player_cycle_weapon_button $player1 {enabled} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.Pistol
if 
  $8130 > 0
goto_if_false @SHRANGE_10271

:SHRANGE_10228
if 
  not has_model_loaded $8138
goto_if_false @SHRANGE_10260
request_model $8138
wait 0
goto @SHRANGE_10228

:SHRANGE_10260
give_weapon_to_char $scplayer {weaponType} $8134 {ammo} $8130

:SHRANGE_10271
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
if 
  $ammo > 0
goto_if_false @SHRANGE_10339

:SHRANGE_10296
if 
  not has_model_loaded $ModelForWeaponType
goto_if_false @SHRANGE_10328
request_model $ModelForWeaponType
wait 0
goto @SHRANGE_10296

:SHRANGE_10328
give_weapon_to_char $scplayer {weaponType} $WeaponType {ammo} $ammo

:SHRANGE_10339
remove_weapon_from_char $scplayer {weaponType} WeaponType.Shotgun
if 
  $8132 > 0
goto_if_false @SHRANGE_10407

:SHRANGE_10364
if 
  not has_model_loaded $8140
goto_if_false @SHRANGE_10396
request_model $8140
wait 0
goto @SHRANGE_10364

:SHRANGE_10396
give_weapon_to_char $scplayer {weaponType} $8136 {ammo} $8132

:SHRANGE_10407
remove_weapon_from_char $scplayer {weaponType} WeaponType.Ak47
if 
  $8133 > 0
goto_if_false @SHRANGE_10475

:SHRANGE_10432
if 
  not has_model_loaded $8141
goto_if_false @SHRANGE_10464
request_model $8141
wait 0
goto @SHRANGE_10432

:SHRANGE_10464
give_weapon_to_char $scplayer {weaponType} $8137 {ammo} $8133

:SHRANGE_10475
set_player_duck_button $player1 {enabled} True
delete_object $8064
clear_prints 
set_char_coordinates_dont_warp_gang $scplayer {x} $x {y} $y {z} $z
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_10526
freeze_char_position $scplayer {state} False

:SHRANGE_10526
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_10569
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)

:SHRANGE_10569
$8088[1] = 1
do_fade 1000 {direction} Fade.In
$sr_Dec = 0
$sr_area = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8027[0] = 0
$8027[1] = 0
$8027[2] = 0
$sr_yoffset[0] = 1
if 
  is_char_dead $sr_obj_number[1]
goto_if_false @SHRANGE_10669
$sr_yoffset[1] = 0

:SHRANGE_10669
$sr_yoffset[2] = 1
$8024[0] = 0
$8024[1] = 0
$8024[2] = 0
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
if 
  34@ == 1
goto_if_false @SHRANGE_10763
clear_this_print_big_now TextStyle.Middle
print 'ANR_A1' {time} 4000 {flag} 1
34@ = 0

:SHRANGE_10763
if and
  $player_has_fast_reload <> 4
  34@ <> 1
goto_if_false @SHRANGE_10804
print 'ANR_55' {time} 4000 {flag} 1

:SHRANGE_10804
goto @SHRANGE_10811

:SHRANGE_10811
return 

:SHRANGE_10813
$sr_i = 0
set_var_int_to_var_int $8142 = $8031[0]
set_var_int_to_var_int $8145 = $8031[1]
set_var_int_to_var_int $8148 = $8031[2]

:SHRANGE_10844
if 
  3 > $sr_i
goto_if_false @SHRANGE_13200
switch_start $sr_yoffset($sr_i,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_13186 {caseNum1} 0 {caseLabel1} @SHRANGE_10929 {caseNum2} 1 {caseLabel2} @SHRANGE_11343 {caseNum3} 2 {caseLabel3} @SHRANGE_11612 {caseNum4} 3 {caseLabel4} @SHRANGE_12600 {caseNum5} 4 {caseLabel5} @SHRANGE_13139 {caseNum6} -1 {caseLabel6} @SHRANGE_13186 {caseNum7} -1 {caseLabel7} @SHRANGE_13186

:SHRANGE_10929
if 
  $8088($sr_i,3i) == 1
goto_if_false @SHRANGE_11336
$sr_yoffset($sr_i,3i) = 1
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
set_var_float_to_lvar_float $z = 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  $sr_i == 1
goto_if_false @SHRANGE_11127
if 
  63@ == 90.0
goto_if_false @SHRANGE_11061
add_float_lvar_to_float_var $y += 47@($SR_range_id,4f)

:SHRANGE_11061
if 
  63@ == 270.0
goto_if_false @SHRANGE_11094
sub_float_lvar_from_float_var $y -= 47@($SR_range_id,4f)

:SHRANGE_11094
if 
  63@ == 0.0
goto_if_false @SHRANGE_11127
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_11127
if 
  $sr_i == 2
goto_if_false @SHRANGE_11244
if 
  63@ == 90.0
goto_if_false @SHRANGE_11178
add_float_lvar_to_float_var $y += 51@($SR_range_id,4f)

:SHRANGE_11178
if 
  63@ == 270.0
goto_if_false @SHRANGE_11211
sub_float_lvar_from_float_var $y -= 51@($SR_range_id,4f)

:SHRANGE_11211
if 
  63@ == 0.0
goto_if_false @SHRANGE_11244
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_11244
create_random_char $x {y} $y {z} $z {var_handle} $sr_obj_number($sr_i,3i)
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_11336
set_char_proofs $sr_obj_number($sr_i,3i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker $sr_obj_number($sr_i,3i) {handleOrTemplate} $8068
set_char_accuracy $sr_obj_number($sr_i,3i) {accuracy} 93
set_char_heading $sr_obj_number($sr_i,3i) {heading} 63@

:SHRANGE_11336
goto @SHRANGE_13186

:SHRANGE_11343
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_11605
if 
  $8027($sr_i,4i) == 0
goto_if_false @SHRANGE_11398
generate_random_int_in_range 1 {max} 5 {var_result} $8027($sr_i,4i)

:SHRANGE_11398
if 
  $8027($sr_i,4i) == 1
goto_if_false @SHRANGE_11447
give_weapon_to_char $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Pistol {ammo} 99999
set_current_char_weapon $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Pistol

:SHRANGE_11447
if 
  $8027($sr_i,4i) == 2
goto_if_false @SHRANGE_11496
give_weapon_to_char $sr_obj_number($sr_i,3i) {weaponType} WeaponType.MicroUzi {ammo} 99999
set_current_char_weapon $sr_obj_number($sr_i,3i) {weaponType} WeaponType.MicroUzi

:SHRANGE_11496
if 
  $8027($sr_i,4i) == 3
goto_if_false @SHRANGE_11545
give_weapon_to_char $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Shotgun {ammo} 99999
set_current_char_weapon $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Shotgun

:SHRANGE_11545
if 
  $8027($sr_i,4i) == 4
goto_if_false @SHRANGE_11594
give_weapon_to_char $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Ak47 {ammo} 99999
set_current_char_weapon $sr_obj_number($sr_i,3i) {weaponType} WeaponType.Ak47

:SHRANGE_11594
$sr_yoffset($sr_i,3i) = 2

:SHRANGE_11605
goto @SHRANGE_13186

:SHRANGE_11612
$SR_time_check = 0
if 
  $8031($sr_i,3i) == 2
goto_if_false @SHRANGE_11648
$SR_time_check = 1

:SHRANGE_11648
if and
  $sr_Dec == 5
  $8031[1] == 2
goto_if_false @SHRANGE_11680
$SR_time_check = 1

:SHRANGE_11680
if 
  $sr_i == 0
goto_if_false @SHRANGE_11706
set_var_int_to_var_int $this_Watch = $SR_time_check

:SHRANGE_11706
if 
  $sr_i == 1
goto_if_false @SHRANGE_11732
set_var_int_to_var_int $8146 = $SR_time_check

:SHRANGE_11732
if 
  $sr_i == 2
goto_if_false @SHRANGE_11758
set_var_int_to_var_int $8149 = $SR_time_check

:SHRANGE_11758
if 
  $SR_time_check == 1
goto_if_false @SHRANGE_12531
if 
  is_int_lvar_greater_than_int_var TIMERA > $8120($sr_i,3i)
goto_if_false @SHRANGE_12524
$SR_time_check = generate_random_int_in_range 1 {max} 8
if 
  $sr_Dec == 5
goto_if_false @SHRANGE_11840
$SR_time_check += 8
goto @SHRANGE_11890

:SHRANGE_11840
if 
  $sr_i == 2
goto_if_false @SHRANGE_11865
$SR_time_check += 16

:SHRANGE_11865
if 
  $sr_i == 1
goto_if_false @SHRANGE_11890
$SR_time_check += 8

:SHRANGE_11890
$8091 = 0

:SHRANGE_11897
if and
  has_object_been_damaged $8096($SR_time_check,24i)
  8 > $8091
goto_if_false @SHRANGE_11984
$SR_time_check += 1
$8091 += 1
if or
  $SR_time_check == 8
  $SR_time_check == 24
  $SR_time_check == 16
goto_if_false @SHRANGE_11977
$SR_time_check -= 7

:SHRANGE_11977
goto @SHRANGE_11897

:SHRANGE_11984
if 
  $sr_i == 0
goto_if_false @SHRANGE_12010
set_var_int_to_var_int $8144 = $8091

:SHRANGE_12010
if 
  $sr_i == 1
goto_if_false @SHRANGE_12036
set_var_int_to_var_int $8147 = $8091

:SHRANGE_12036
if 
  $sr_i == 2
goto_if_false @SHRANGE_12062
set_var_int_to_var_int $8150 = $8091

:SHRANGE_12062
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_12524
$x, $y, $z = get_object_coordinates $8096($SR_time_check,24i)
if and
  $SR_time_check > 8
  16 > $SR_time_check
goto_if_false @SHRANGE_12132
$SR_time_check -= 8

:SHRANGE_12132
if and
  $SR_time_check > 16
  24 > $SR_time_check
goto_if_false @SHRANGE_12164
$SR_time_check -= 16

:SHRANGE_12164
if 
  63@ == 0.0
goto_if_false @SHRANGE_12197
add_float_var_to_float_var $x += $8037($SR_time_check,8f)

:SHRANGE_12197
if 
  63@ == 90.0
goto_if_false @SHRANGE_12230
add_float_var_to_float_var $y += $8037($SR_time_check,8f)

:SHRANGE_12230
if 
  63@ == 270.0
goto_if_false @SHRANGE_12263
sub_float_var_from_float_var $y -= $8037($SR_time_check,8f)

:SHRANGE_12263
add_float_var_to_float_var $z += $8045($SR_time_check,8f)
if 
  $8123 >= 8
goto_if_false @SHRANGE_12376
$SR_time_check = get_script_task_status $sr_obj_number($sr_i,3i) {taskId} 1640
if 
  is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12369
freeze_char_position $sr_obj_number($sr_i,3i) {state} True
task_shoot_at_coord $sr_obj_number($sr_i,3i) {x} $x {y} $y {z} $z {time} 800
set_char_accuracy $sr_obj_number($sr_i,3i) {accuracy} 95

:SHRANGE_12369
goto @SHRANGE_12441

:SHRANGE_12376
$SR_time_check = get_script_task_status $sr_obj_number($sr_i,3i) {taskId} 1640
if 
  is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12441
freeze_char_position $sr_obj_number($sr_i,3i) {state} True
task_shoot_at_coord $sr_obj_number($sr_i,3i) {x} $x {y} $y {z} $z {time} 1500

:SHRANGE_12441
if 
  $8123 >= 8
goto_if_false @SHRANGE_12489
$SR_time_check = generate_random_int_in_range 200 {max} 400
$8120($sr_i,3i) += 600
goto @SHRANGE_12500

:SHRANGE_12489
$SR_time_check = generate_random_int_in_range 200 {max} 1600

:SHRANGE_12500
set_var_int_to_lvar_int $8120($sr_i,3i) = TIMERA
add_int_var_to_int_var $8120($sr_i,3i) += $SR_time_check

:SHRANGE_12524
goto @SHRANGE_12593

:SHRANGE_12531
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_12593
$SR_time_check = get_script_task_status $sr_obj_number($sr_i,3i) {taskId} 1640
if 
  not is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12593
clear_char_tasks $sr_obj_number($sr_i,3i)

:SHRANGE_12593
goto @SHRANGE_13186

:SHRANGE_12600
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_13132
$x, $y, $z = get_char_coordinates $sr_obj_number($sr_i,3i)
freeze_char_position $sr_obj_number($sr_i,3i) {state} False
flush_route 
$sr_int2 = open_sequence_task 
$sr_float2 = 0.0
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -1.0
$sr_direction = cos 59@($SR_range_id,4f)
$sr_float1 = sin 59@($SR_range_id,4f)
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_12776
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_12818

:SHRANGE_12776
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_12818
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
63@ -= 180.0
task_achieve_heading -1 {heading} 63@
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
extend_route $x {y} $y {z} $z
$sr_float2 = -0.5
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -4.5
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_13002
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_13044

:SHRANGE_13002
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_13044
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
extend_route $x {y} $y {z} $z
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task $sr_int2
perform_sequence_task $sr_obj_number($sr_i,3i) {sequence} $sr_int2
clear_sequence_task $sr_int2
$sr_yoffset($sr_i,3i) = 99

:SHRANGE_13132
goto @SHRANGE_13186

:SHRANGE_13139
if 
  not is_char_dead $sr_obj_number($sr_i,3i)
goto_if_false @SHRANGE_13168
delete_char $sr_obj_number($sr_i,3i)

:SHRANGE_13168
$sr_yoffset($sr_i,3i) = 0
goto @SHRANGE_13186

:SHRANGE_13186
$sr_i += 1
goto @SHRANGE_10844

:SHRANGE_13200
return 

:SHRANGE_13202
$sr_i = 0

:SHRANGE_13209
if 
  3 > $sr_i
goto_if_false @SHRANGE_16571
switch_start $8031($sr_i,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_16557 {caseNum1} 0 {caseLabel1} @SHRANGE_13294 {caseNum2} 1 {caseLabel2} @SHRANGE_14076 {caseNum3} 2 {caseLabel3} @SHRANGE_14405 {caseNum4} 3 {caseLabel4} @SHRANGE_16006 {caseNum5} 4 {caseLabel5} @SHRANGE_16308 {caseNum6} 5 {caseLabel6} @SHRANGE_16429 {caseNum7} -1 {caseLabel7} @SHRANGE_16557

:SHRANGE_13294
clear_char_decision_maker_event_response $8068 {event} Event.ShotFired
$8031($sr_i,3i) = 1
if 
  $8024($sr_i,3i) == 0
goto_if_false @SHRANGE_13380
generate_random_int_in_range 1 {max} 3 {var_result} $8024($sr_i,3i)
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_13380
$8024($sr_i,3i) = 4

:SHRANGE_13380
$x = 0.0
$y = 5.0
$z = 4.0
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  5 > $8024($sr_i,3i)
goto_if_false @SHRANGE_13611
if 
  $sr_i == 1
goto_if_false @SHRANGE_13474
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_13474
if 
  $sr_i == 2
goto_if_false @SHRANGE_13504
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13504
if 
  $8024($sr_i,3i) == 1
goto_if_false @SHRANGE_13536
$y += 0.0

:SHRANGE_13536
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_13568
$y += 5.0

:SHRANGE_13568
if or
  $8024($sr_i,3i) == 3
  $8024($sr_i,3i) == 4
goto_if_false @SHRANGE_13611
$y += 10.0

:SHRANGE_13611
if 
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_13695
$sr_float4 = generate_random_float_in_range 0.0 {max} 10.0
add_float_var_to_float_var $y += $sr_float4
$sr_seq = generate_random_int_in_range 0 {max} 2
if 
  $sr_seq == 1
goto_if_false @SHRANGE_13695
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13695
set_var_float_to_var_float $sr_float2 = $x
set_var_float_to_var_float $sr_float3 = $y
gosub @SHRANGE_16573
set_var_int_to_var_int $SR_time_check = $sr_i
$SR_time_check *= 8
if 
  does_object_exist $8096($SR_time_check,24i)
goto_if_false @SHRANGE_13762
delete_object $8096($SR_time_check,24i)

:SHRANGE_13762
create_object_no_offset $8056[0] {x} $x {y} $y {z} $z {var_handle} $8096($SR_time_check,24i)
set_object_rotation $8096($SR_time_check,24i) {x} 90.0 {y} 0.0 {z} 63@
report_mission_audio_event_at_object $8096($SR_time_check,24i) {soundId} ScriptSound.SoundShootingRangeTargetDrop
$8053($sr_i,3f) = 90.0
$8091 = 1

:SHRANGE_13838
if 
  8 > $8091
goto_if_false @SHRANGE_14046
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  does_object_exist $8096($sr_j,24i)
goto_if_false @SHRANGE_13908
delete_object $8096($sr_j,24i)

:SHRANGE_13908
create_object_no_offset $8056($8091,8i) {x} $x {y} $y {z} $z {var_handle} $8096($sr_j,24i)
attach_object_to_object $8096($sr_j,24i) {handle} $8096($SR_time_check,24i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist $8096($sr_j,24i)
goto_if_false @SHRANGE_14032
set_object_rotation $8096($sr_j,24i) {x} 90.0 {y} 0.0 {z} 63@
set_object_collision $8096($sr_j,24i) {state} False

:SHRANGE_14032
$8091 += 1
goto @SHRANGE_13838

:SHRANGE_14046
$SR_mission_state($sr_i,3i) += 1
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
goto @SHRANGE_16557

:SHRANGE_14076
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 3000
goto_if_false @SHRANGE_14123
$SR_time_check = 3000

:SHRANGE_14123
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 3000.0
$sr_direction *= -90.0
$sr_direction += 90.0
set_var_float_to_var_float $8053($sr_i,3f) = $sr_direction
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  does_object_exist $8096($sr_j,24i)
goto_if_false @SHRANGE_14232
set_object_rotation $8096($sr_j,24i) {x} $8053($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_14232
if 
  0.0 >= $8053($sr_i,3f)
goto_if_false @SHRANGE_14398
$8031($sr_i,3i) = 2
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
if or
  $8024($sr_i,3i) == 4
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_14325
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStart

:SHRANGE_14325
$8091 = 0

:SHRANGE_14332
if 
  8 > $8091
goto_if_false @SHRANGE_14398
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
set_object_collision $8096($sr_j,24i) {state} True
$8091 += 1
goto @SHRANGE_14332

:SHRANGE_14398
goto @SHRANGE_16557

:SHRANGE_14405
if 
  $8024($sr_i,3i) == 4
goto_if_false @SHRANGE_15041
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_mission_state($sr_i,3i) == 4
goto_if_false @SHRANGE_14480
$SR_mission_state($sr_i,3i) = 1

:SHRANGE_14480
if 
  $SR_mission_state($sr_i,3i) == 1
goto_if_false @SHRANGE_14556
if 
  $SR_time_check > 20000
goto_if_false @SHRANGE_14556
$SR_time_check = 20000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14556
if 
  $SR_mission_state($sr_i,3i) == 2
goto_if_false @SHRANGE_14632
if 
  $SR_time_check > 15000
goto_if_false @SHRANGE_14632
$SR_time_check = 15000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14632
if 
  $SR_mission_state($sr_i,3i) == 3
goto_if_false @SHRANGE_14708
if 
  $SR_time_check > 10000
goto_if_false @SHRANGE_14708
$SR_time_check = 10000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14708
cset_var_float_to_var_int $sr_direction =# $SR_time_check
if 
  $SR_mission_state($sr_i,3i) == 1
goto_if_false @SHRANGE_14748
$sr_direction /= 20000.0

:SHRANGE_14748
if 
  $SR_mission_state($sr_i,3i) == 2
goto_if_false @SHRANGE_14780
$sr_direction /= 15000.0

:SHRANGE_14780
if 
  $SR_mission_state($sr_i,3i) == 3
goto_if_false @SHRANGE_14812
$sr_direction /= 10000.0

:SHRANGE_14812
$sr_direction *= 10.0
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
$x, $y, $z = get_object_coordinates $8096($sr_j,24i)
if 
  63@ == 90.0
goto_if_false @SHRANGE_14906
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x -= 15.0
add_float_var_to_float_var $x += $sr_direction

:SHRANGE_14906
if 
  63@ == 270.0
goto_if_false @SHRANGE_14957
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x += 15.0
sub_float_var_from_float_var $x -= $sr_direction

:SHRANGE_14957
if 
  63@ == 0.0
goto_if_false @SHRANGE_15008
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
$y += 15.0
sub_float_var_from_float_var $y -= $sr_direction

:SHRANGE_15008
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
set_object_coordinates $8096($sr_j,24i) {x} $x {y} $y {z} $z

:SHRANGE_15041
if 
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_15398
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 10000
goto_if_false @SHRANGE_15247
$SR_time_check = 10000
$8031($sr_i,3i) = 3
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundShootingRangeTargetDrop
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
$8091 = 0

:SHRANGE_15181
if 
  8 > $8091
goto_if_false @SHRANGE_15247
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
set_object_collision $8096($sr_j,24i) {state} False
$8091 += 1
goto @SHRANGE_15181

:SHRANGE_15247
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 10000.0
mult_float_var_by_float_lvar $sr_direction *= 51@($SR_range_id,4f)
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  $sr_seq == 0
goto_if_false @SHRANGE_15325
set_var_float_to_var_float $sr_float2 = $sr_direction
goto @SHRANGE_15345

:SHRANGE_15325
set_var_float_to_lvar_float $sr_float2 = 51@($SR_range_id,4f)
sub_float_var_from_float_var $sr_float2 -= $sr_direction

:SHRANGE_15345
$z = 4.0
set_var_float_to_var_float $sr_float3 = $sr_float4
$sr_float3 += 5.0
gosub @SHRANGE_16573
set_object_coordinates $8096($sr_j,24i) {x} $x {y} $y {z} $z

:SHRANGE_15398
set_var_int_to_var_int $SR_time_check = $8034($sr_i,3i)
$8034($sr_i,3i) = 0
$8091 = 0

:SHRANGE_15428
if 
  8 > $8091
goto_if_false @SHRANGE_15514
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  has_object_been_damaged $8096($sr_j,24i)
goto_if_false @SHRANGE_15500
$8034($sr_i,3i) += 1

:SHRANGE_15500
$8091 += 1
goto @SHRANGE_15428

:SHRANGE_15514
if 
  is_int_var_greater_than_int_var $8034($sr_i,3i) > $SR_time_check
goto_if_false @SHRANGE_15549
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetShatter

:SHRANGE_15549
if 
  $sr_i == 1
goto_if_false @SHRANGE_15872
if 
  is_int_var_greater_than_int_var $8034[1] > $SR_time_check
goto_if_false @SHRANGE_15872
set_var_int_to_var_int $sr_int1 = $8034[1]
sub_int_var_from_int_var $sr_int1 -= $SR_time_check
$SR_time_check = generate_random_int_in_range 0 {max} 2
if 
  $SR_time_check == 0
goto_if_false @SHRANGE_15754
if 
  not is_char_dead $sr_obj_number[0]
goto_if_false @SHRANGE_15747
if 
  is_char_shooting $sr_obj_number[0]
goto_if_false @SHRANGE_15676
add_int_var_to_int_var $SR_skill_won += $sr_int1
goto @SHRANGE_15747

:SHRANGE_15676
if 
  is_char_shooting $scplayer
goto_if_false @SHRANGE_15707
add_int_var_to_int_var $sr_Score += $sr_int1
goto @SHRANGE_15747

:SHRANGE_15707
if 
  not is_char_dead $sr_obj_number[2]
goto_if_false @SHRANGE_15747
if 
  is_char_shooting $sr_obj_number[2]
goto_if_false @SHRANGE_15747
add_int_var_to_int_var $8126 += $sr_int1

:SHRANGE_15747
goto @SHRANGE_15872

:SHRANGE_15754
if 
  not is_char_dead $sr_obj_number[2]
goto_if_false @SHRANGE_15872
if 
  is_char_shooting $sr_obj_number[2]
goto_if_false @SHRANGE_15801
add_int_var_to_int_var $8126 += $sr_int1
goto @SHRANGE_15872

:SHRANGE_15801
if 
  is_char_shooting $scplayer
goto_if_false @SHRANGE_15832
add_int_var_to_int_var $sr_Score += $sr_int1
goto @SHRANGE_15872

:SHRANGE_15832
if 
  not is_char_dead $sr_obj_number[0]
goto_if_false @SHRANGE_15872
if 
  is_char_shooting $sr_obj_number[0]
goto_if_false @SHRANGE_15872
add_int_var_to_int_var $SR_skill_won += $sr_int1

:SHRANGE_15872
if 
  $8034($sr_i,3i) == 7
goto_if_false @SHRANGE_15999
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
$8031($sr_i,3i) = 3
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundShootingRangeTargetDrop
clear_char_decision_maker_event_response $8068 {event} Event.ShotFired
add_char_decision_maker_event_response $8068 {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True

:SHRANGE_15999
goto @SHRANGE_16557

:SHRANGE_16006
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 2000
goto_if_false @SHRANGE_16053
$SR_time_check = 2000

:SHRANGE_16053
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 2000.0
$sr_direction *= 90.0
set_var_float_to_var_float $8053($sr_i,3f) = $sr_direction
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  does_object_exist $8096($sr_j,24i)
goto_if_false @SHRANGE_16152
set_object_rotation $8096($sr_j,24i) {x} $8053($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_16152
if 
  $8053($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16301
$8031($sr_i,3i) = 0
if 
  $8024($sr_i,3i) == 3
goto_if_false @SHRANGE_16228
$8024($sr_i,3i) = 1
goto @SHRANGE_16301

:SHRANGE_16228
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_16268
$8024($sr_i,3i) = 3
goto @SHRANGE_16301

:SHRANGE_16268
if 
  $8024($sr_i,3i) == 1
goto_if_false @SHRANGE_16301
$8024($sr_i,3i) = 2

:SHRANGE_16301
goto @SHRANGE_16557

:SHRANGE_16308
$8091 = 0

:SHRANGE_16315
if 
  8 > $8091
goto_if_false @SHRANGE_16411
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  does_object_exist $8096($8091,24i)
goto_if_false @SHRANGE_16397
report_mission_audio_event_at_object $8096($8091,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
delete_object $8096($8091,24i)

:SHRANGE_16397
$8091 += 1
goto @SHRANGE_16315

:SHRANGE_16411
$8031($sr_i,3i) = 99
goto @SHRANGE_16557

:SHRANGE_16429
$8053($sr_i,3f) += 1.0
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  does_object_exist $8096($sr_j,24i)
goto_if_false @SHRANGE_16514
report_mission_audio_event_at_object $8096($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
set_object_rotation $8096($sr_j,24i) {x} $8053($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_16514
if 
  $8053($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16550
$8031($sr_i,3i) = 4

:SHRANGE_16550
goto @SHRANGE_16557

:SHRANGE_16557
$sr_i += 1
goto @SHRANGE_13209

:SHRANGE_16571
return 

:SHRANGE_16573
$sr_direction = cos 59@($SR_range_id,4f)
$sr_float1 = sin 59@($SR_range_id,4f)
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_16661
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_16703

:SHRANGE_16661
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_16703
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
return 

:SHRANGE_16741
delete_char $sr_obj_number[0]
delete_char $sr_obj_number[1]
delete_char $sr_obj_number[2]
clear_onscreen_counter $SR_skill_won
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
mark_model_as_no_longer_needed #TARGET_HEAD
mark_model_as_no_longer_needed #TARGET_LARM
mark_model_as_no_longer_needed #TARGET_RARM
mark_model_as_no_longer_needed #TARGET_LLEG
mark_model_as_no_longer_needed #TARGET_RLEG
mark_model_as_no_longer_needed #TARGET_RTORSO
mark_model_as_no_longer_needed #TARGET_LTORSO
mark_model_as_no_longer_needed #TARGET_FRAME
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 355
remove_decision_maker $8068
clear_mission_audio MissionAudioSlot.Slot4
$8091 = 0

:SHRANGE_16847
if 
  24 > $8091
goto_if_false @SHRANGE_16908
if 
  does_object_exist $8096($8091,24i)
goto_if_false @SHRANGE_16894
delete_object $8096($8091,24i)

:SHRANGE_16894
$8091 += 1
goto @SHRANGE_16847

:SHRANGE_16908
$flag_shooting_range_mission = 0
$onmission = 0
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_16945
freeze_char_position $scplayer {state} False

:SHRANGE_16945
terminate_this_script 
return 
terminate_this_script 

//-------------Mission 114---------------
// Originally: Los Santos Gym Fight School

:GYMLS
script_name 'GYMLS'
gosub @GYMLS_55
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLS_46
gosub @GYMLS_5862

:GYMLS_46
gosub @GYMLS_5902
terminate_this_script 

:GYMLS_55
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_78
listen_to_player_group_commands $scplayer {state} False

:GYMLS_78
$onmission = 1
$8151 = 0
increment_int_stat StatId.VisitsToGym {value} 1
$gym_is_running = 1
register_mission_given 
load_mission_text 'GYM'
request_model 80
request_model 81
request_model 19
request_animation "RIOT"
request_animation "FIGHT_B"
request_animation "INT_SHOP"
request_animation "GYMNASIUM"
load_all_models_now 

:GYMLS_177
if or
  not has_animation_loaded "GYMNASIUM"
  not has_model_loaded 80
  not has_model_loaded 81
goto_if_false @GYMLS_220
wait 0
goto @GYMLS_177

:GYMLS_220
if or
  not has_model_loaded 19
  not has_animation_loaded "RIOT"
  not has_animation_loaded "FIGHT_B"
  not has_animation_loaded "INT_SHOP"
goto_if_false @GYMLS_277
wait 0
goto @GYMLS_220

:GYMLS_277
43@ = load_char_decision_maker DecisionMakerType.Empty
58@ = load_char_decision_maker DecisionMakerType.Normal
57@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
clear_char_decision_maker_event_response 58@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 57@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 58@ {event} Event.Damage
clear_char_decision_maker_event_response 58@ {event} Event.ShotFired
clear_char_decision_maker_event_response 58@ {event} Event.AcquaintancePedDislike
clear_char_decision_maker_event_response 57@ {event} Event.AcquaintancePedDislike
add_char_decision_maker_event_response 58@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
40@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.8681 {y} 7.4928 {z} 999.7141 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 13.3401
task_play_anim -1 {animationName} "RIOT_PUNCHES" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 40@ {state} True
close_sequence_task 40@
54@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 765.2909 {y} 16.0319 {z} 999.698 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 198.8789
set_sequence_to_repeat 54@ {state} True
close_sequence_task 54@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 767.2571 {y} 14.4044 {z} 999.6998 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 263.2938
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 1000
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
50@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 50@ {state} True
close_sequence_task 50@
51@ = open_sequence_task 
task_pause -1 {time} 750
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 51@ {state} True
close_sequence_task 51@
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6263 {y} 11.4876 {z} 1000.164
set_char_heading 34@ {heading} 128.1297
set_char_decision_maker 34@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 34@ {state} True
shut_char_up 34@ {state} True
35@ = create_char PedType.Mission2 {modelId} 81 {x} 760.343 {y} 10.1973 {z} 999.7099
set_char_heading 35@ {heading} 310.2206
set_char_decision_maker 35@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 35@ {state} True
shut_char_up 34@ {state} True
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 761.6263 {y} 11.4876 {z} 1000.164 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 128.1297
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1192
task_kill_char_on_foot -1 {target} 35@

:GYMLS_1192
set_sequence_to_repeat 52@ {state} True
close_sequence_task 52@
41@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 760.343 {y} 10.1973 {z} 999.7099 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 310.2206
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1264
task_kill_char_on_foot -1 {target} 34@

:GYMLS_1264
set_sequence_to_repeat 41@ {state} True
close_sequence_task 41@
perform_sequence_task 34@ {sequence} 52@
perform_sequence_task 35@ {sequence} 41@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 762.8681 {y} 7.4928 {z} 999.7141
set_char_heading 37@ {heading} 13.3401
perform_sequence_task 37@ {sequence} 40@
set_char_decision_maker 37@ {handleOrTemplate} 57@
39@ = create_char PedType.Mission2 {modelId} 80 {x} 767.2571 {y} 14.4044 {z} 999.6998
set_char_heading 39@ {heading} 263.2938
set_char_decision_maker 39@ {handleOrTemplate} 57@
perform_sequence_task 39@ {sequence} 53@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMLS_1412
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMLS_1438
wait 0
goto @GYMLS_1412

:GYMLS_1438
TIMERA = 0
64@ = 2
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMLS_1489
$gym_final_month = 0.0

:GYMLS_1489
wait 0
gosub @GYMLS_6164
if 
  48@ == 0
goto_if_false @GYMLS_1667
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1589
if 
  is_char_playing_anim 34@ {animationName} "GYM_SHADOWBOX"
goto_if_false @GYMLS_1589
set_char_anim_current_time 34@ {animationName} "GYMSHADOWBOX" {time} 0.0

:GYMLS_1589
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1660
if 
  is_char_playing_anim 35@ {animationName} "GYM_SHADOWBOX"
goto_if_false @GYMLS_1660
set_char_anim_current_time 35@ {animationName} "GYMSHADOWBOX" {time} 0.5

:GYMLS_1660
48@ = 1

:GYMLS_1667
if and
  is_char_dead 34@
  TIMERA > 20000
goto_if_false @GYMLS_1727
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1727
clear_char_tasks 35@
task_duck 35@ {time} 20000
TIMERA = 0

:GYMLS_1727
if and
  is_char_dead 35@
  TIMERA > 20000
goto_if_false @GYMLS_1787
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1787
clear_char_tasks 34@
task_duck 34@ {time} 20000
TIMERA = 0

:GYMLS_1787
if 
  locate_char_any_means_3d $scplayer {x} 760.8566 {y} 11.063 {z} 1000.164 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GYMLS_1941
if 
  59@ == 0
goto_if_false @GYMLS_1934
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1890
clear_char_tasks_immediately 34@
set_char_decision_maker 34@ {handleOrTemplate} 57@
task_kill_char_on_foot 34@ {target} $scplayer

:GYMLS_1890
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1927
clear_char_tasks_immediately 35@
set_char_decision_maker 35@ {handleOrTemplate} 57@
task_kill_char_on_foot 35@ {target} $scplayer

:GYMLS_1927
59@ = 1

:GYMLS_1934
goto @GYMLS_2029

:GYMLS_1941
if 
  59@ == 1
goto_if_false @GYMLS_2029
if and
  not is_char_dead 34@
  not is_char_dead 35@
goto_if_false @GYMLS_2022
clear_char_tasks_immediately 34@
set_char_decision_maker 34@ {handleOrTemplate} 58@
perform_sequence_task 34@ {sequence} 52@
clear_char_tasks_immediately 35@
set_char_decision_maker 35@ {handleOrTemplate} 58@
perform_sequence_task 35@ {sequence} 41@

:GYMLS_2022
59@ = 0

:GYMLS_2029
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMLS_2062
goto @GYMLS_5862

:GYMLS_2062
if 
  not locate_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMLS_2117
46@ = 0

:GYMLS_2117
if 
  not is_char_dead 39@
goto_if_false @GYMLS_5855
if and
  46@ == 0
  locate_char_any_means_3d 39@ {x} 767.2571 {y} 14.4044 {z} 999.6998 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMLS_5855
if 
  locate_stopped_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMLS_2236

:GYMLS_2236
if and
  locate_stopped_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 39@
goto_if_false @GYMLS_5855
if and
  not is_char_dead 39@
  not is_char_dead $scplayer
goto_if_false @GYMLS_2343
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 39@
task_turn_char_to_face_char 39@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 39@

:GYMLS_2343
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_2418
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30200

:GYMLS_2372
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2398
wait 0
goto @GYMLS_2372

:GYMLS_2398
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_1' {time} 3000 {flag} 1

:GYMLS_2418
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_2493
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30203

:GYMLS_2447
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2473
wait 0
goto @GYMLS_2447

:GYMLS_2473
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_4' {time} 3000 {flag} 1

:GYMLS_2493
print_help_forever 'TALK_1'

:GYMLS_2504
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_2852
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMLS_2717
60@ = get_float_stat StatId.BodyMuscle
if 
  60@ > 349.0
goto_if_false @GYMLS_2592
44@ = 1
clear_help 
goto @GYMLS_2852
goto @GYMLS_2717

:GYMLS_2592
44@ = 0
46@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30202

:GYMLS_2619
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2645
wait 0
goto @GYMLS_2619

:GYMLS_2645
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @GYMLS_2696
perform_sequence_task 39@ {sequence} 53@

:GYMLS_2696
TIMERA = 0
55@ = 1
goto @GYMLS_1489

:GYMLS_2717
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMLS_2845
44@ = 0
46@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30201

:GYMLS_2761
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2787
wait 0
goto @GYMLS_2761

:GYMLS_2787
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_2' {time} 3000 {flag} 1
set_player_control $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @GYMLS_2838
perform_sequence_task 39@ {sequence} 53@

:GYMLS_2838
goto @GYMLS_1489

:GYMLS_2845
goto @GYMLS_2504

:GYMLS_2852
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
gosub @GYMLS_6055
delete_char 37@
delete_char 34@
delete_char 35@
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6934 {y} 4.2203 {z} 999.7099
set_char_heading 34@ {heading} 171.4614
perform_sequence_task 34@ {sequence} 49@
35@ = create_char PedType.Mission2 {modelId} 81 {x} 764.7962 {y} 0.7163 {z} 999.715
set_char_heading 35@ {heading} 93.8066
perform_sequence_task 35@ {sequence} 50@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 759.5085 {y} 4.2343 {z} 999.7051
set_char_heading 37@ {heading} 189.7654
perform_sequence_task 37@ {sequence} 51@
if 
  not is_char_dead 39@
goto_if_false @GYMLS_3080
set_char_coordinates_dont_warp_gang 39@ {x} 762.616 {y} 2.1235 {z} 1000.594
set_char_heading 39@ {heading} 135.5749
set_char_health 39@ {health} 1000
set_char_max_health 39@ {maxHealth} 1000

:GYMLS_3080
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3126
set_char_coordinates_dont_warp_gang $scplayer {x} 759.0147 {y} -1.7235 {z} 1000.594
set_char_heading $scplayer {heading} 312.9747

:GYMLS_3126
if 
  not is_char_dead 39@
goto_if_false @GYMLS_3174
set_char_decision_maker 39@ {handleOrTemplate} 57@
task_kill_char_on_foot 39@ {target} $scplayer
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
set_char_shoot_rate 39@ {rate} 100

:GYMLS_3174
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_3212
print_help_forever 'GYM1101'

:GYMLS_3212
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3241
print_help_forever 'GYM1_84'

:GYMLS_3241
gosub @GYMLS_6111
TIMERA = 0
TIMERB = 0
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMLS_3290
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMLS_3290
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3807
wait 0
if 
  not is_char_dead 35@
goto_if_false @GYMLS_3381
if 
  not locate_char_any_means_3d 35@ {x} 761.0182 {y} 0.6609 {z} 1000.594 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMLS_3381
goto @GYMLS_3807

:GYMLS_3381
if 
  not is_char_dead 34@
goto_if_false @GYMLS_3437
if and
  TIMERB > 3000
  65@ == 0
goto_if_false @GYMLS_3430
65@ = 1

:GYMLS_3430
TIMERB = 0

:GYMLS_3437
if 
  not is_char_dead 35@
goto_if_false @GYMLS_3493
if and
  TIMERB > 3000
  65@ == 1
goto_if_false @GYMLS_3486
65@ = 0

:GYMLS_3486
TIMERB = 0

:GYMLS_3493
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3777
if 
  56@ == 0
goto_if_false @GYMLS_3556
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMLS_3556
if 
  not is_german_game 
goto_if_false @GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3622
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMLS_3622
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLS_3675
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLS_3675
goto @GYMLS_3735

:GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3735
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLS_3735
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLS_3777
clear_help 
TIMERA = 0
56@ = 0

:GYMLS_3777
if 
  is_char_dead 39@
goto_if_false @GYMLS_3800
goto @GYMLS_3807

:GYMLS_3800
goto @GYMLS_3290

:GYMLS_3807
clear_help 
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3834
goto @GYMLS_5431

:GYMLS_3834
gosub @GYMLS_6055
delete_char 39@
clear_area 760.7445 {y} 0.6538 {z} 1000.594 {radius} 10.0 {clearParticles} True
gosub @GYMLS_6003
39@ = create_char PedType.Mission2 {modelId} 80 {x} 762.616 {y} 2.1235 {z} 1000.594
set_char_heading 39@ {heading} 135.5749
set_char_decision_maker 39@ {handleOrTemplate} 43@
clear_char_tasks_immediately 39@
set_char_decision_maker 39@ {handleOrTemplate} 43@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3987
set_char_coordinates_dont_warp_gang $scplayer {x} 759.0147 {y} -1.7235 {z} 1000.594
set_char_heading $scplayer {heading} 312.9747

:GYMLS_3987
delete_char 34@
delete_char 35@
delete_char 37@
set_fixed_camera_position 764.0964 {y} -4.8216 {z} 1003.062 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.5206 {y} -4.0516 {z} 1002.787 {switchStyle} SwitchType.JumpCut
gosub @GYMLS_6111
print_now 'BBOX_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30204

:GYMLS_4087
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4130
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4123

:GYMLS_4123
goto @GYMLS_4087

:GYMLS_4130
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMLS_4146
if 
  2000 > TIMERA
goto_if_false @GYMLS_4193
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4186

:GYMLS_4186
goto @GYMLS_4146

:GYMLS_4193
set_fixed_camera_position 762.5212 {y} -0.4172 {z} 1001.843 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 762.5431 {y} 0.5793 {z} 1001.762 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_4267
if 
  2000 > TIMERA
goto_if_false @GYMLS_4314
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4307

:GYMLS_4307
goto @GYMLS_4267

:GYMLS_4314
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30205

:GYMLS_4325
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4368
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4361

:GYMLS_4361
goto @GYMLS_4325

:GYMLS_4368
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_4395
if 
  4000 > TIMERA
goto_if_false @GYMLS_4442
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4435

:GYMLS_4435
goto @GYMLS_4395

:GYMLS_4442
if 
  not is_char_dead 39@
goto_if_false @GYMLS_4497
task_play_anim 39@ {animationName} "FIGHTB_M" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4497
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_4545
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4545
TIMERA = 0

:GYMLS_4552
if 
  3000 > TIMERA
goto_if_false @GYMLS_4599
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4592

:GYMLS_4592
goto @GYMLS_4552

:GYMLS_4599
if 
  not is_german_game 
goto_if_false @GYMLS_5018
set_fixed_camera_position 759.6699 {y} 1.9955 {z} 1001.068 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 760.6637 {y} 2.0051 {z} 1001.178 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_4686
if 
  2000 > TIMERA
goto_if_false @GYMLS_4733
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4726

:GYMLS_4726
goto @GYMLS_4686

:GYMLS_4733
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30206

:GYMLS_4744
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4787
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4780

:GYMLS_4780
goto @GYMLS_4744

:GYMLS_4787
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_4814
if 
  4000 > TIMERA
goto_if_false @GYMLS_4861
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4854

:GYMLS_4854
goto @GYMLS_4814

:GYMLS_4861
if 
  not is_char_dead 39@
goto_if_false @GYMLS_4916
task_play_anim 39@ {animationName} "FIGHTB_G" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4916
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_4964
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4964
TIMERA = 0

:GYMLS_4971
if 
  3000 > TIMERA
goto_if_false @GYMLS_5018
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5011

:GYMLS_5011
goto @GYMLS_4971

:GYMLS_5018
set_fixed_camera_position 764.5368 {y} 3.1767 {z} 1002.349 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.7495 {y} 2.6046 {z} 1002.12 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_5092
if 
  2000 > TIMERA
goto_if_false @GYMLS_5139
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5132

:GYMLS_5132
goto @GYMLS_5092

:GYMLS_5139
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 30207

:GYMLS_5150
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_5193
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5186

:GYMLS_5186
goto @GYMLS_5150

:GYMLS_5193
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_5220
if 
  4000 > TIMERA
goto_if_false @GYMLS_5267
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5260

:GYMLS_5260
goto @GYMLS_5220

:GYMLS_5267
if 
  not is_char_dead 39@
goto_if_false @GYMLS_5329
freeze_char_position 39@ {state} True
task_play_anim 39@ {animationName} "FIGHTB_3" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_5329
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5377
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMLS_5377
TIMERA = 0

:GYMLS_5384
if 
  2000 > TIMERA
goto_if_false @GYMLS_5431
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5424

:GYMLS_5424
goto @GYMLS_5384

:GYMLS_5431
delete_char 37@
delete_char 34@
delete_char 35@
gosub @GYMLS_6055
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6263 {y} 11.4876 {z} 1000.164
set_char_heading 34@ {heading} 128.1297
set_char_decision_maker 34@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 34@ {state} True
shut_char_up 34@ {state} True
35@ = create_char PedType.Mission2 {modelId} 81 {x} 760.343 {y} 10.1973 {z} 999.7099
set_char_heading 35@ {heading} 310.2206
set_char_decision_maker 35@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 35@ {state} True
shut_char_up 34@ {state} True
perform_sequence_task 34@ {sequence} 52@
perform_sequence_task 35@ {sequence} 41@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 762.8681 {y} 7.4928 {z} 999.7141
set_char_heading 37@ {heading} 13.3401
perform_sequence_task 37@ {sequence} 40@
set_char_decision_maker 37@ {handleOrTemplate} 57@
delete_char 39@
39@ = create_char PedType.Mission2 {modelId} 80 {x} 767.2571 {y} 14.4044 {z} 999.6998
set_char_heading 39@ {heading} 263.2938
set_char_decision_maker 39@ {handleOrTemplate} 57@
perform_sequence_task 39@ {sequence} 53@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5741
set_char_coordinates_dont_warp_gang $scplayer {x} 765.6662 {y} 2.7963 {z} 999.718
set_char_heading $scplayer {heading} 277.3348

:GYMLS_5741
gosub @GYMLS_6027
gosub @GYMLS_6111
if 
  $ls_has_the_knuckle_duster == 0
goto_if_false @GYMLS_5784
player_made_progress 1
$ls_has_the_knuckle_duster = 1

:GYMLS_5784
give_melee_attack_to_char $scplayer {style} FightStyle.Boxeo {move} FightMoves.All
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_5827
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMLS_5827
$gym_sf_defeated = 0
$player_been_taught_move = 1
$8156 = 0
set_player_cycle_weapon_button $player1 {enabled} True

:GYMLS_5855
goto @GYMLS_1489

:GYMLS_5862
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMLS_5902
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5925
listen_to_player_group_commands $scplayer {state} True

:GYMLS_5925
mark_model_as_no_longer_needed 80
mark_model_as_no_longer_needed 81
mark_model_as_no_longer_needed 19
remove_animation "GYMNASIUM"
remove_animation "RIOT"
remove_animation "FIGHT_B"
remove_animation "INT_SHOP"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMLS_6003
clear_help 
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMLS_6027
clear_help 
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMLS_6055
do_fade 500 {direction} Fade.Out

:GYMLS_6062
if 
  get_fading_status 
goto_if_false @GYMLS_6109
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_6102
do_fade 1 {direction} Fade.Out

:GYMLS_6102
goto @GYMLS_6062

:GYMLS_6109
return 

:GYMLS_6111
do_fade 500 {direction} Fade.In

:GYMLS_6118
if 
  get_fading_status 
goto_if_false @GYMLS_6142
wait 0
goto @GYMLS_6118

:GYMLS_6142
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 63@
64@ = 0
return 

:GYMLS_6164
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  64@ == 0
goto_if_false @GYMLS_6207
play_mission_audio MissionAudioSlot.Slot1
print_now 61@s {time} 10000 {flag} 1
64@ = 1

:GYMLS_6207
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  64@ == 1
goto_if_false @GYMLS_6245
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 61@s
64@ = 2

:GYMLS_6245
return 

//-------------Mission 115---------------
// Originally: San Fierro Gym Fight School

:GYMSF
script_name 'GYMSF'
do_fade 0 {direction} Fade.Out
gosub @GYMSF_61
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMSF_52
gosub @GYMSF_5328

:GYMSF_52
gosub @GYMSF_5368
terminate_this_script 

:GYMSF_61
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_84
listen_to_player_group_commands $scplayer {state} False

:GYMSF_84
$gym_is_running = 1
63@ = 2
$onmission = 1
increment_int_stat StatId.VisitsToGym {value} 1
register_mission_given 
load_mission_text 'GYM'
request_model 96
request_model 203
request_model 97
request_model 49
request_model 204

:GYMSF_147
if or
  not has_model_loaded 96
  not has_model_loaded 203
  not has_model_loaded 97
  not has_model_loaded 49
  not has_model_loaded 204
goto_if_false @GYMSF_191
wait 0
goto @GYMSF_147

:GYMSF_191
request_animation "PARK"
request_animation "FIGHT_C"
request_animation "GYMNASIUM"

:GYMSF_223
if or
  not has_animation_loaded "PARK"
  not has_animation_loaded "FIGHT_C"
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMSF_277
wait 0
goto @GYMSF_223

:GYMSF_277
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMSF_288
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMSF_314
wait 0
goto @GYMSF_288

:GYMSF_314
40@ = load_char_decision_maker DecisionMakerType.Empty
57@ = load_char_decision_maker DecisionMakerType.Normal
41@ = load_char_decision_maker DecisionMakerType.Tough
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 768.064 {y} -41.5728 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 358.0992
task_look_about -1 {time} -2
close_sequence_task 52@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 770.3961 {y} -23.0853 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 87.3049
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
54@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 766.3062 {y} -23.0554 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 272.4196
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 54@
42@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 769.8199 {y} -36.4933 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 88.548
task_play_anim -1 {animationName} "FIGHTC_IDLE" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
43@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 767.057 {y} -37.0465 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 270.0
task_play_anim -1 {animationName} "FIGHTC_IDLE" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 43@ {state} True
close_sequence_task 43@
48@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 768.064 {y} -41.5728 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 358.0992
task_look_about -1 {time} -2
set_sequence_to_repeat 48@ {state} True
close_sequence_task 48@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 57@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
49@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 770.3961 {y} -23.0853 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 87.3049
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
35@ = create_char PedType.CivMale {modelId} 96 {x} 770.3961 {y} -23.0853 {z} 999.5938
set_char_heading 35@ {heading} 87.3049
perform_sequence_task 35@ {sequence} 49@
set_char_decision_maker 35@ {handleOrTemplate} 41@
give_melee_attack_to_char 35@ {style} FightStyle.KungFu {move} FightMoves.All
50@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 766.3062 {y} -23.0554 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 272.4196
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 50@ {state} True
close_sequence_task 50@
34@ = create_char PedType.CivMale {modelId} 97 {x} 766.3062 {y} -23.0554 {z} 999.5938
set_char_heading 34@ {heading} 272.4196
perform_sequence_task 34@ {sequence} 50@
set_char_decision_maker 34@ {handleOrTemplate} 41@
give_melee_attack_to_char 34@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
gosub @GYMSF_5567
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMSF_1318
$gym_final_month = 0.0

:GYMSF_1318
wait 0
gosub @GYMSF_5620
if 
  51@ == 0
goto_if_false @GYMSF_1422
if 
  not is_char_dead 37@
goto_if_false @GYMSF_1422
if 
  is_char_playing_anim 37@ {animationName} "FIGHTC_SPAR"
goto_if_false @GYMSF_1422
set_char_anim_current_time 37@ {animationName} "FIGHTC_SPAR" {time} 0.45
51@ = 1

:GYMSF_1422
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMSF_1455
goto @GYMSF_5328

:GYMSF_1455
if 
  not locate_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMSF_1510
47@ = 0

:GYMSF_1510
if 
  not is_char_dead 38@
goto_if_false @GYMSF_5321
if and
  47@ == 0
  locate_char_any_means_3d 38@ {x} 768.064 {y} -41.5728 {z} 999.6865 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMSF_5321
if 
  locate_stopped_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMSF_1629

:GYMSF_1629
if and
  locate_stopped_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 38@
goto_if_false @GYMSF_5321
if and
  not is_char_dead 38@
  not is_char_dead $scplayer
goto_if_false @GYMSF_1731
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
task_turn_char_to_face_char 38@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 38@

:GYMSF_1731
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_1806
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28000

:GYMSF_1760
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_1786
wait 0
goto @GYMSF_1760

:GYMSF_1786
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_1' {time} 3000 {flag} 1

:GYMSF_1806
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_1881
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28003

:GYMSF_1835
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_1861
wait 0
goto @GYMSF_1835

:GYMSF_1861
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_4' {time} 3000 {flag} 1

:GYMSF_1881
print_help_forever 'GYM1_73'

:GYMSF_1892
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_2216
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMSF_2081
59@ = get_float_stat StatId.BodyMuscle
if 
  59@ > 349.0
goto_if_false @GYMSF_1980
44@ = 1
clear_help 
goto @GYMSF_2218
goto @GYMSF_2081

:GYMSF_1980
44@ = 0
47@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28002

:GYMSF_2007
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_2033
wait 0
goto @GYMSF_2007

:GYMSF_2033
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
TIMERA = 0
55@ = 1
goto @GYMSF_1318

:GYMSF_2081
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMSF_2209
44@ = 0
47@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28001

:GYMSF_2125
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_2151
wait 0
goto @GYMSF_2125

:GYMSF_2151
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_2' {time} 3000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2195
perform_sequence_task 38@ {sequence} 48@

:GYMSF_2195
set_player_control $player1 {state} True
goto @GYMSF_1318

:GYMSF_2209
goto @GYMSF_1892

:GYMSF_2216
clear_help 

:GYMSF_2218
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  44@ == 1
goto_if_false @GYMSF_5321
gosub @GYMSF_5511
delete_char 36@
delete_char 37@
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2333
set_char_coordinates_dont_warp_gang 38@ {x} 771.4357 {y} -36.9728 {z} 999.6865
set_char_heading 38@ {heading} 88.1801
set_char_health 38@ {health} 1000
set_char_max_health 38@ {maxHealth} 1000

:GYMSF_2333
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_2379
set_char_coordinates_dont_warp_gang $scplayer {x} 764.6453 {y} -37.1052 {z} 999.6865
set_char_heading $scplayer {heading} 273.9816

:GYMSF_2379
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2427
set_char_decision_maker 38@ {handleOrTemplate} 41@
task_kill_char_on_foot 38@ {target} $scplayer
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
set_char_shoot_rate 38@ {rate} 100

:GYMSF_2427
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_2465
print_help_forever 'GYM1106'

:GYMSF_2465
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_2494
print_help_forever 'GYM1_84'

:GYMSF_2494
gosub @GYMSF_5567
58@ = 0
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMSF_2536
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMSF_2536
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3285
wait 0
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_2840
if 
  56@ == 0
goto_if_false @GYMSF_2619
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMSF_2619
if 
  not is_german_game 
goto_if_false @GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2685
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMSF_2685
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMSF_2738
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMSF_2738
goto @GYMSF_2798

:GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2798
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMSF_2798
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMSF_2840
clear_help 
TIMERA = 0
56@ = 0

:GYMSF_2840
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2911
if 
  not locate_char_any_means_3d 38@ {x} 768.4611 {y} -36.6685 {z} 999.6865 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMSF_2911
goto @GYMSF_3285

:GYMSF_2911
if 
  not locate_char_any_means_3d $scplayer {x} 768.4611 {y} -36.6685 {z} 999.6865 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMSF_3255
gosub @GYMSF_5511
delete_char 38@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 41@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3203
set_char_coordinates_dont_warp_gang $scplayer {x} 762.756 {y} -37.2153 {z} 999.6865
set_char_heading $scplayer {heading} 90.0
set_player_control $player1 {state} True

:GYMSF_3203
clear_prints 
clear_help 
gosub @GYMSF_5567
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_3248
print_now 'GYM1_92' {time} 5000 {flag} 1

:GYMSF_3248
goto @GYMSF_1318

:GYMSF_3255
if 
  is_char_dead 38@
goto_if_false @GYMSF_3278
goto @GYMSF_3285

:GYMSF_3278
goto @GYMSF_2536

:GYMSF_3285
clear_help 
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_3319
gosub @GYMSF_5511
goto @GYMSF_4956

:GYMSF_3319
gosub @GYMSF_5511
delete_char 38@
clear_area 768.1746 {y} -36.6986 {z} 999.6865 {radius} 5.0 {clearParticles} True
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
set_char_decision_maker 38@ {handleOrTemplate} 40@
if 
  not is_char_dead 38@
goto_if_false @GYMSF_3443
set_char_coordinates_dont_warp_gang 38@ {x} 771.4357 {y} -36.9728 {z} 999.6865
set_char_heading 38@ {heading} 88.1801

:GYMSF_3443
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3494
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 764.6453 {y} -37.1052 {z} 999.6865
set_char_heading $scplayer {heading} 273.9816

:GYMSF_3494
if 
  not is_char_dead 38@
goto_if_false @GYMSF_3520
set_char_decision_maker 38@ {handleOrTemplate} DecisionMakerCharTemplate.Empty

:GYMSF_3520
gosub @GYMSF_5467
set_fixed_camera_position 762.8773 {y} -35.4754 {z} 1001.545 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.8198 {y} -35.703 {z} 1001.3 {switchStyle} SwitchType.JumpCut
gosub @GYMSF_5567
print_now 'KUNG_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28004

:GYMSF_3612
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_3655
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3648

:GYMSF_3648
goto @GYMSF_3612

:GYMSF_3655
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMSF_3671
if 
  2000 > TIMERA
goto_if_false @GYMSF_3718
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3711

:GYMSF_3711
goto @GYMSF_3671

:GYMSF_3718
set_fixed_camera_position 767.428 {y} -39.4061 {z} 1000.416 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 768.1919 {y} -38.7609 {z} 1000.4 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_3792
if 
  2000 > TIMERA
goto_if_false @GYMSF_3839
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3832

:GYMSF_3832
goto @GYMSF_3792

:GYMSF_3839
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28005

:GYMSF_3850
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_3893
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3886

:GYMSF_3886
goto @GYMSF_3850

:GYMSF_3893
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_3920
if 
  4000 > TIMERA
goto_if_false @GYMSF_3967
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3960

:GYMSF_3960
goto @GYMSF_3920

:GYMSF_3967
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4022
task_play_anim 38@ {animationName} "FIGHTC_M" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4022
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4070
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4070
TIMERA = 0

:GYMSF_4077
if 
  3000 > TIMERA
goto_if_false @GYMSF_4124
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4117

:GYMSF_4117
goto @GYMSF_4077

:GYMSF_4124
if 
  not is_german_game 
goto_if_false @GYMSF_4543
set_fixed_camera_position 768.0062 {y} -35.1731 {z} 1000.276 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 768.757 {y} -35.8325 {z} 1000.314 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_4211
if 
  2000 > TIMERA
goto_if_false @GYMSF_4258
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4251

:GYMSF_4251
goto @GYMSF_4211

:GYMSF_4258
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28006

:GYMSF_4269
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_4312
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4305

:GYMSF_4305
goto @GYMSF_4269

:GYMSF_4312
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_4339
if 
  4000 > TIMERA
goto_if_false @GYMSF_4386
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4379

:GYMSF_4379
goto @GYMSF_4339

:GYMSF_4386
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4441
task_play_anim 38@ {animationName} "FIGHTC_G" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4441
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4489
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4489
TIMERA = 0

:GYMSF_4496
if 
  3000 > TIMERA
goto_if_false @GYMSF_4543
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4536

:GYMSF_4536
goto @GYMSF_4496

:GYMSF_4543
set_fixed_camera_position 772.6448 {y} -38.011 {z} 1000.478 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 771.679 {y} -37.7522 {z} 1000.485 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_4617
if 
  2000 > TIMERA
goto_if_false @GYMSF_4664
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4657

:GYMSF_4657
goto @GYMSF_4617

:GYMSF_4664
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 28007

:GYMSF_4675
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_4718
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4711

:GYMSF_4711
goto @GYMSF_4675

:GYMSF_4718
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_4745
if 
  4000 > TIMERA
goto_if_false @GYMSF_4792
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4785

:GYMSF_4785
goto @GYMSF_4745

:GYMSF_4792
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4854
freeze_char_position 38@ {state} True
task_play_anim 38@ {animationName} "FIGHTC_3" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4854
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4902
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMSF_4902
TIMERA = 0

:GYMSF_4909
if 
  2000 > TIMERA
goto_if_false @GYMSF_4956
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4949

:GYMSF_4949
goto @GYMSF_4909

:GYMSF_4956
gosub @GYMSF_5511
delete_char 38@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 41@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
gosub @GYMSF_5487
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_5214
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 765.9402 {y} -41.602 {z} 999.6865
set_char_heading $scplayer {heading} 265.007
set_player_control $player1 {state} True
set_camera_behind_player 

:GYMSF_5214
gosub @GYMSF_5567
if 
  $gym_ls_defeated == 0
goto_if_false @GYMSF_5250
player_made_progress 1
$gym_ls_defeated = 1

:GYMSF_5250
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_5284
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMSF_5284
give_melee_attack_to_char $scplayer {style} FightStyle.KungFu {move} FightMoves.All
set_player_cycle_weapon_button $player1 {enabled} True
$gym_sf_defeated = 1
$player_been_taught_move = 0
$8156 = 0

:GYMSF_5321
goto @GYMSF_1318

:GYMSF_5328
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMSF_5368
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_5391
listen_to_player_group_commands $scplayer {state} True

:GYMSF_5391
mark_model_as_no_longer_needed 96
mark_model_as_no_longer_needed 203
mark_model_as_no_longer_needed 97
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 204
remove_animation "GYMNASIUM"
remove_animation "PARK"
remove_animation "FIGHT_C"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMSF_5467
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMSF_5487
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMSF_5511
do_fade 500 {direction} Fade.Out

:GYMSF_5518
if 
  get_fading_status 
goto_if_false @GYMSF_5565
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_5558
do_fade 1 {direction} Fade.Out

:GYMSF_5558
goto @GYMSF_5518

:GYMSF_5565
return 

:GYMSF_5567
do_fade 500 {direction} Fade.In

:GYMSF_5574
if 
  get_fading_status 
goto_if_false @GYMSF_5598
wait 0
goto @GYMSF_5574

:GYMSF_5598
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 62@
63@ = 0
return 

:GYMSF_5620
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  63@ == 0
goto_if_false @GYMSF_5663
play_mission_audio MissionAudioSlot.Slot1
print_now 60@s {time} 10000 {flag} 1
63@ = 1

:GYMSF_5663
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  63@ == 1
goto_if_false @GYMSF_5701
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 60@s
63@ = 2

:GYMSF_5701
return 

//-------------Mission 116---------------
// Originally: Las Venturas Gym Fight School

:GYMLV
script_name 'GYMLV'
gosub @GYMLV_55
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLV_46
gosub @GYMLV_5184

:GYMLV_46
gosub @GYMLV_5224
terminate_this_script 

:GYMLV_55
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_78
listen_to_player_group_commands $scplayer {state} False

:GYMLV_78
$gym_is_running = 1
$onmission = 1
increment_int_stat StatId.VisitsToGym {value} 1
register_mission_given 
load_mission_text 'GYM'
request_model 80
request_model 81
request_model 19
request_animation "RIOT"
request_animation "FIGHT_D"
request_animation "GYMNASIUM"
request_animation "INT_SHOP"
load_all_models_now 

:GYMLV_170
if or
  not has_animation_loaded "GYMNASIUM"
  not has_model_loaded 80
  not has_model_loaded 81
goto_if_false @GYMLV_213
wait 0
goto @GYMLV_170

:GYMLV_213
if or
  not has_model_loaded 19
  not has_animation_loaded "RIOT"
  not has_animation_loaded "FIGHT_D"
  not has_animation_loaded "INT_SHOP"
goto_if_false @GYMLV_270
wait 0
goto @GYMLV_213

:GYMLV_270
41@ = load_char_decision_maker DecisionMakerType.Empty
51@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
63@ = open_sequence_task 
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 1000
set_sequence_to_repeat 63@ {state} True
close_sequence_task 63@
64@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 64@ {state} True
close_sequence_task 64@
65@ = open_sequence_task 
task_pause -1 {time} 750
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 65@ {state} True
close_sequence_task 65@
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 773.8429 {y} -61.5409 {z} 999.7184 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 93.0279
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 52@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 771.2518 {y} -69.3033 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 85.5162
close_sequence_task 53@
54@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.3508 {y} -78.2144 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 359.2498
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 54@
48@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.3508 {y} -78.2144 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 359.2498
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 48@ {state} True
close_sequence_task 48@
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 51@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
set_char_decision_maker 36@ {handleOrTemplate} 41@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
set_char_decision_maker 37@ {handleOrTemplate} 41@
42@ = open_sequence_task 
task_pause -1 {time} 1000
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 42@
43@ = open_sequence_task 
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 43@
perform_sequence_task 36@ {sequence} 42@
perform_sequence_task 37@ {sequence} 43@
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMLV_1078
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMLV_1104
wait 0
goto @GYMLV_1078

:GYMLV_1104
62@ = 2
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMLV_1148
$gym_final_month = 0.0

:GYMLV_1148
wait 0
gosub @GYMLV_5478
if 
  57@ == 0
goto_if_false @GYMLV_1279
if 
  is_char_dead 36@
goto_if_false @GYMLV_1228
if 
  not is_char_dead 37@
goto_if_false @GYMLV_1228
clear_char_tasks_immediately 37@
task_duck 37@ {time} -2
57@ = 1

:GYMLV_1228
if 
  is_char_dead 37@
goto_if_false @GYMLV_1279
if 
  not is_char_dead 36@
goto_if_false @GYMLV_1279
clear_char_tasks_immediately 36@
task_duck 36@ {time} -2
57@ = 1

:GYMLV_1279
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMLV_1312
goto @GYMLV_5184

:GYMLV_1312
if 
  not locate_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMLV_1367
45@ = 0

:GYMLV_1367
if 
  not is_char_dead 34@
goto_if_false @GYMLV_5177
if and
  45@ == 0
  locate_char_any_means_3d 34@ {x} 762.3508 {y} -78.2144 {z} 999.6562 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMLV_5177
if 
  locate_stopped_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMLV_1486

:GYMLV_1486
if and
  locate_stopped_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 34@
goto_if_false @GYMLV_5177
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_1593
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
clear_char_tasks 34@
task_turn_char_to_face_char 34@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 34@

:GYMLV_1593
if 
  $8156 == 0
goto_if_false @GYMLV_1668
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27000

:GYMLV_1622
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1648
wait 0
goto @GYMLV_1622

:GYMLV_1648
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_1' {time} 3000 {flag} 1

:GYMLV_1668
if 
  $8156 == 1
goto_if_false @GYMLV_1743
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27003

:GYMLV_1697
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1723
wait 0
goto @GYMLV_1697

:GYMLV_1723
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_4' {time} 3000 {flag} 1

:GYMLV_1743
print_help_forever 'GYM1_73'

:GYMLV_1754
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2054
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMLV_1943
58@ = get_float_stat StatId.BodyMuscle
if 
  58@ > 349.0
goto_if_false @GYMLV_1842
44@ = 1
clear_help 
goto @GYMLV_2056
goto @GYMLV_1943

:GYMLV_1842
44@ = 0
45@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27002

:GYMLV_1869
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1895
wait 0
goto @GYMLV_1869

:GYMLV_1895
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
TIMERA = 0
55@ = 1
goto @GYMLV_1148

:GYMLV_1943
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMLV_2047
44@ = 0
45@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27001

:GYMLV_1987
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_2013
wait 0
goto @GYMLV_1987

:GYMLV_2013
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_2' {time} 3000 {flag} 1
set_player_control $player1 {state} True
goto @GYMLV_1148

:GYMLV_2047
goto @GYMLV_1754

:GYMLV_2054
clear_help 

:GYMLV_2056
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  44@ == 1
goto_if_false @GYMLV_5177
gosub @GYMLV_5369
delete_char 36@
delete_char 37@
delete_char 34@
36@ = create_char PedType.CivMale {modelId} 80 {x} 767.9493 {y} -64.6707 {z} 999.6562
set_char_heading 36@ {heading} 166.9465
perform_sequence_task 36@ {sequence} 63@
37@ = create_char PedType.CivMale {modelId} 81 {x} 770.7913 {y} -67.3238 {z} 999.6562
set_char_heading 37@ {heading} 90.0184
perform_sequence_task 37@ {sequence} 64@
38@ = create_char PedType.CivMale {modelId} 80 {x} 770.4339 {y} -69.5049 {z} 999.6562
set_char_heading 38@ {heading} 91.3393
perform_sequence_task 38@ {sequence} 65@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2384
clear_char_tasks_immediately $scplayer
34@ = create_char PedType.Mission1 {modelId} 81 {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_heading 34@ {heading} 145.0
set_char_health 34@ {health} 1000
set_char_max_health 34@ {maxHealth} 1000
set_char_coordinates_dont_warp_gang $scplayer {x} 764.8033 {y} -70.2273 {z} 1000.569
set_char_heading $scplayer {heading} 310.0
set_char_decision_maker 34@ {handleOrTemplate} 51@
task_kill_char_on_foot 34@ {target} $scplayer
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
set_char_shoot_rate 34@ {rate} 100
restore_camera_jumpcut 
set_camera_behind_player 
gosub @GYMLV_5425

:GYMLV_2384
set_player_control $player1 {state} True
if 
  $8156 == 0
goto_if_false @GYMLV_2420
print_help_forever 'GYM1101'

:GYMLV_2420
if 
  $8156 == 1
goto_if_false @GYMLV_2449
print_help_forever 'GYM1_84'

:GYMLV_2449
gosub @GYMLV_5425
$x, $y, $z = get_char_coordinates $scplayer
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMLV_2498
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMLV_2498
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_3156
wait 0
if 
  $8156 == 1
goto_if_false @GYMLV_2802
if 
  56@ == 0
goto_if_false @GYMLV_2581
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMLV_2581
if 
  not is_german_game 
goto_if_false @GYMLV_2707
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2647
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMLV_2647
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLV_2700
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLV_2700
goto @GYMLV_2760

:GYMLV_2707
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2760
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLV_2760
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLV_2802
clear_help 
TIMERA = 0
56@ = 0

:GYMLV_2802
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2832
$x, $y, $z = get_char_coordinates $scplayer

:GYMLV_2832
if 
  is_char_dead 34@
goto_if_false @GYMLV_2855
goto @GYMLV_3156

:GYMLV_2855
if 
  1000.7 > $z
goto_if_false @GYMLV_3149
gosub @GYMLV_5369
delete_char 34@
delete_char 36@
delete_char 37@
delete_char 38@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2954
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 762.854 {y} -69.5929 {z} 999.6562
set_char_heading $scplayer {heading} 103.4243

:GYMLV_2954
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 41@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
perform_sequence_task 36@ {sequence} 42@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
perform_sequence_task 37@ {sequence} 43@
clear_prints 
clear_help 
gosub @GYMLV_5425
if 
  $8156 == 0
goto_if_false @GYMLV_3142
print_now 'GYM1_92' {time} 5000 {flag} 1

:GYMLV_3142
goto @GYMLV_1148

:GYMLV_3149
goto @GYMLV_2498

:GYMLV_3156
clear_help 
if 
  $8156 == 1
goto_if_false @GYMLV_3183
goto @GYMLV_4831

:GYMLV_3183
gosub @GYMLV_5369
gosub @GYMLV_5325
clear_area 768.2548 {y} -67.2063 {z} 1000.569 {radius} 10.0 {clearParticles} True
delete_char 34@
delete_char 36@
delete_char 37@
delete_char 38@
34@ = create_char PedType.CivMale {modelId} 81 {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_decision_maker 34@ {handleOrTemplate} 41@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_3373
clear_char_tasks_immediately $scplayer
clear_char_tasks 34@
set_char_coordinates_dont_warp_gang $scplayer {x} 764.8033 {y} -70.2273 {z} 1000.569
set_char_coordinates_dont_warp_gang 34@ {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_heading $scplayer {heading} 310.0
set_char_heading 34@ {heading} 145.0

:GYMLV_3373
set_fixed_camera_position 765.1049 {y} -74.2975 {z} 1003.591 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 765.3495 {y} -73.4547 {z} 1003.112 {switchStyle} SwitchType.JumpCut
gosub @GYMLV_5425
print_now 'WBOX_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27004

:GYMLV_3458
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_3501
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3494

:GYMLV_3494
goto @GYMLV_3458

:GYMLV_3501
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMLV_3517
if 
  2000 > TIMERA
goto_if_false @GYMLV_3564
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3557

:GYMLV_3557
goto @GYMLV_3517

:GYMLV_3564
set_fixed_camera_position 767.7358 {y} -70.2958 {z} 1001.493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 767.9329 {y} -69.3157 {z} 1001.47 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMLV_3638
if 
  2000 > TIMERA
goto_if_false @GYMLV_3685
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3678

:GYMLV_3678
goto @GYMLV_3638

:GYMLV_3685
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27005

:GYMLV_3696
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_3739
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3732

:GYMLV_3732
goto @GYMLV_3696

:GYMLV_3739
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_3766
if 
  4000 > TIMERA
goto_if_false @GYMLV_3813
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3806

:GYMLV_3806
goto @GYMLV_3766

:GYMLV_3813
if 
  not is_char_dead 34@
goto_if_false @GYMLV_3868
task_play_anim 34@ {animationName} "FIGHTD_M" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_3868
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_3916
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_3916
TIMERA = 0

:GYMLV_3923
if 
  3000 > TIMERA
goto_if_false @GYMLV_3970
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3963

:GYMLV_3963
goto @GYMLV_3923

:GYMLV_3970
if 
  not is_german_game 
goto_if_false @GYMLV_4389
set_fixed_camera_position 765.0073 {y} -67.3258 {z} 1001.465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 766.0051 {y} -67.2777 {z} 1001.419 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMLV_4057
if 
  2000 > TIMERA
goto_if_false @GYMLV_4104
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4097

:GYMLV_4097
goto @GYMLV_4057

:GYMLV_4104
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27006

:GYMLV_4115
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_4158
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4151

:GYMLV_4151
goto @GYMLV_4115

:GYMLV_4158
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_4185
if 
  4000 > TIMERA
goto_if_false @GYMLV_4232
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4225

:GYMLV_4225
goto @GYMLV_4185

:GYMLV_4232
if 
  not is_char_dead 34@
goto_if_false @GYMLV_4287
task_play_anim 34@ {animationName} "FIGHTD_G" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4287
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4335
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4335
TIMERA = 0

:GYMLV_4342
if 
  3000 > TIMERA
goto_if_false @GYMLV_4389
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4382

:GYMLV_4382
goto @GYMLV_4342

:GYMLV_4389
set_fixed_camera_position 770.4639 {y} -65.7272 {z} 1002.231 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 769.6946 {y} -66.3243 {z} 1002.003 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_4485
task_turn_char_to_face_char 34@ {target} $scplayer

:GYMLV_4485
TIMERA = 0

:GYMLV_4492
if 
  2000 > TIMERA
goto_if_false @GYMLV_4539
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4532

:GYMLV_4532
goto @GYMLV_4492

:GYMLV_4539
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 27007

:GYMLV_4550
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_4593
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4586

:GYMLV_4586
goto @GYMLV_4550

:GYMLV_4593
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_4620
if 
  4000 > TIMERA
goto_if_false @GYMLV_4667
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4660

:GYMLV_4660
goto @GYMLV_4620

:GYMLV_4667
if 
  not is_char_dead 34@
goto_if_false @GYMLV_4729
freeze_char_position 34@ {state} True
task_play_anim 34@ {animationName} "FIGHTD_3" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4729
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4777
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMLV_4777
TIMERA = 0

:GYMLV_4784
if 
  2000 > TIMERA
goto_if_false @GYMLV_4831
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4824

:GYMLV_4824
goto @GYMLV_4784

:GYMLV_4831
gosub @GYMLV_5369
if 
  $8157 == 0
goto_if_false @GYMLV_4867
player_made_progress 1
$8157 = 1

:GYMLV_4867
delete_char 34@
delete_char 36@
delete_char 37@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4933
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 762.854 {y} -69.5929 {z} 999.6562
set_char_heading $scplayer {heading} 103.4243

:GYMLV_4933
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 51@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
gosub @GYMLV_5345
gosub @GYMLV_5425
give_melee_attack_to_char $scplayer {style} FightStyle.KickBoxing {move} FightMoves.All
if 
  $8156 == 0
goto_if_false @GYMLV_5149
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMLV_5149
$gym_sf_defeated = 0
$player_been_taught_move = 0
$8156 = 1
set_player_cycle_weapon_button $player1 {enabled} True

:GYMLV_5177
goto @GYMLV_1148

:GYMLV_5184
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMLV_5224
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_5247
listen_to_player_group_commands $scplayer {state} True

:GYMLV_5247
mark_model_as_no_longer_needed 80
mark_model_as_no_longer_needed 81
mark_model_as_no_longer_needed 19
remove_animation "GYMNASIUM"
remove_animation "RIOT"
remove_animation "FIGHT_D"
remove_animation "INT_SHOP"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMLV_5325
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMLV_5345
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMLV_5369
do_fade 500 {direction} Fade.Out

:GYMLV_5376
if 
  get_fading_status 
goto_if_false @GYMLV_5423
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_5416
do_fade 1 {direction} Fade.Out

:GYMLV_5416
goto @GYMLV_5376

:GYMLV_5423
return 

:GYMLV_5425
do_fade 500 {direction} Fade.In

:GYMLV_5432
if 
  get_fading_status 
goto_if_false @GYMLV_5456
wait 0
goto @GYMLV_5432

:GYMLV_5456
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 61@
62@ = 0
return 

:GYMLV_5478
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  62@ == 0
goto_if_false @GYMLV_5521
play_mission_audio MissionAudioSlot.Slot1
print_now 59@s {time} 10000 {flag} 1
62@ = 1

:GYMLV_5521
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  62@ == 1
goto_if_false @GYMLV_5559
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 59@s
62@ = 2

:GYMLV_5559
return 

//-------------Mission 117---------------
// Originally: Trucking

:TRUCK
script_name 'TRUCK'
gosub @TRUCK_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUCK_38
gosub @TRUCK_16284

:TRUCK_38
gosub @TRUCK_16693
terminate_this_script 

:TRUCK_47
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_67
register_mission_given 

:TRUCK_67
$onmission = 1
$flag_player_on_oddjob = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
105@ = 0
106@ = 0
114@ = 0
if 
  36@ == -99
goto_if_false @TRUCK_324
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
74@ = create_car 514 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 584 {x} 0.0 {y} 0.0 {z} 0.0
78@ = add_blip_for_car 74@
77@ = add_blip_for_car 74@
79@ = add_blip_for_car 75@

:TRUCK_324
load_mission_text 'TRUCK'
if 
  $gym_lv_defeated >= 6
goto_if_false @TRUCK_468
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @TRUCK_468
print_now 'TRK_H17' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @TRUCK_450
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_player_control $player1 {state} True

:TRUCK_450
do_fade 500 {direction} Fade.In
wait 5000
draw_oddjob_title_before_fade True
return 

:TRUCK_468
if 
  $gym_lv_defeated >= 4
goto_if_false @TRUCK_601
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  1 > $Return_cities_passed
goto_if_false @TRUCK_601
print_now 'TRK_H18' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @TRUCK_583
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_player_control $player1 {state} True

:TRUCK_583
do_fade 500 {direction} Fade.In
wait 5000
draw_oddjob_title_before_fade True
return 

:TRUCK_601
gosub @TRUCK_15331
gosub @TRUCK_15333
wait 100

:TRUCK_619
wait 0
gosub @TRUCK_12343
gosub @TRUCK_12716
if or
  40@ == 1
  41@ == 1
goto_if_false @TRUCK_669
goto @TRUCK_896

:TRUCK_669
gosub @TRUCK_15228
gosub @TRUCK_15262
if 
  is_char_dead $scplayer
goto_if_false @TRUCK_713
39@ = 1
goto @TRUCK_896

:TRUCK_713
if 
  36@ == 0
goto_if_false @TRUCK_771
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TRUCK_771
if 
  36@ == 1
goto_if_false @TRUCK_796
gosub @TRUCK_1097

:TRUCK_796
if 
  36@ == 2
goto_if_false @TRUCK_821
gosub @TRUCK_1312

:TRUCK_821
if 
  36@ == 3
goto_if_false @TRUCK_846
38@ = 1

:TRUCK_846
if 
  36@ == 50
goto_if_false @TRUCK_871
gosub @TRUCK_2456

:TRUCK_871
if 
  36@ == 51
goto_if_false @TRUCK_896
40@ = 1

:TRUCK_896
if 
  40@ == 0
goto_if_false @TRUCK_1049
if 
  39@ == 0
goto_if_false @TRUCK_1033
if 
  38@ == 0
goto_if_false @TRUCK_964
goto @TRUCK_619
goto @TRUCK_1026

:TRUCK_964
gosub @TRUCK_16686
if 
  114@ == 1
goto_if_false @TRUCK_1024
38@ = 0
36@ = 50
37@ = 0
114@ = 0
goto @TRUCK_619

:TRUCK_1024
return 

:TRUCK_1026
goto @TRUCK_1042

:TRUCK_1033
gosub @TRUCK_16284
return 

:TRUCK_1042
goto @TRUCK_1051

:TRUCK_1049
return 

:TRUCK_1051
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TRUCK_1097
if or
  is_car_dead 75@
  is_car_dead 74@
goto_if_false @TRUCK_1134
39@ = 1
89@ = 3
return 

:TRUCK_1134
if 
  37@ == 0
goto_if_false @TRUCK_1236
display_nth_onscreen_counter_with_string $g_nTruckMissionsPassed {display} CounterDisplay.Number {slot} 1 {text} 'TRK_CSH'
set_var_int_to_lvar_int $g_nTruckMissionsPassed = 91@
set_lvar_int_to_lvar_int 83@ = 91@
gosub @TRUCK_3404
gosub @TRUCK_3622
gosub @TRUCK_5156
77@ = add_blip_for_car 74@
set_blip_as_friendly 77@ {state} True
113@ = 0
37@ += 1

:TRUCK_1236
if 
  37@ == 1
goto_if_false @TRUCK_1285
if 
  is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_1285
remove_blip 77@
37@ = 99

:TRUCK_1285
if 
  37@ == 99
goto_if_false @TRUCK_1310
gosub @TRUCK_15301

:TRUCK_1310
return 

:TRUCK_1312
if or
  is_car_dead 74@
  is_car_dead 75@
goto_if_false @TRUCK_1349
39@ = 1
89@ = 3
return 

:TRUCK_1349
if 
  113@ == 0
goto_if_false @TRUCK_1394
gosub @TRUCK_5173
if 
  39@ == 1
goto_if_false @TRUCK_1394
return 

:TRUCK_1394
if 
  37@ == 0
goto_if_false @TRUCK_1679
76@ = add_blip_for_coord 102@ {y} 103@ {z} 104@
change_blip_scale 76@ {size} 4
106@ = 0
gosub @TRUCK_5861
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_1648 {caseNum1} 1 {caseLabel1} @TRUCK_1510 {caseNum2} 2 {caseLabel2} @TRUCK_1533 {caseNum3} 3 {caseLabel3} @TRUCK_1556 {caseNum4} 4 {caseLabel4} @TRUCK_1579 {caseNum5} 5 {caseLabel5} @TRUCK_1602 {caseNum6} 6 {caseLabel6} @TRUCK_1625 {caseNum7} -1 {caseLabel7} @TRUCK_1672

:TRUCK_1510
print_now 'TRK_H6' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1533
print_now 'TRK_H7' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1556
print_now 'TRK_H12' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1579
print_now 'TRK_H9' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1602
print_now 'TRK_H11' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1625
print_now 'TRK_H10' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1648
write_debug "UNKNOWN_MISSION_TYPE"

:TRUCK_1672
37@ += 1

:TRUCK_1679
if 
  37@ == 1
goto_if_false @TRUCK_1922
set_lvar_float_to_lvar_float 63@ = 102@
63@ -= 4.0
set_lvar_float_to_lvar_float 64@ = 103@
64@ -= 4.0
set_lvar_float_to_lvar_float 65@ = 104@
65@ -= 4.0
set_lvar_float_to_lvar_float 66@ = 102@
66@ += 4.0
set_lvar_float_to_lvar_float 67@ = 103@
67@ += 4.0
set_lvar_float_to_lvar_float 68@ = 104@
68@ += 4.0
if or
  is_car_in_area_3d 75@ {leftBottomX} 63@ {leftBottomY} 64@ {leftBottomZ} 65@ {rightTopX} 66@ {rightTopY} 67@ {rightTopZ} 68@ {drawSphere} True
  is_car_in_area_3d 74@ {leftBottomX} 63@ {leftBottomY} 64@ {leftBottomZ} 65@ {rightTopX} 66@ {rightTopY} 67@ {rightTopZ} 68@ {drawSphere} False
goto_if_false @TRUCK_1922
if and
  is_char_in_car $scplayer {vehicle} 74@
  is_trailer_attached_to_cab 75@ {cab} 74@
goto_if_false @TRUCK_1922
set_player_control $player1 {state} False
113@ = 1
81@ += 15000
37@ += 1

:TRUCK_1922
if 
  37@ == 2
goto_if_false @TRUCK_1990
if and
  is_car_stopped 75@
  is_car_stopped 74@
goto_if_false @TRUCK_1990
freeze_car_position 74@ {state} True
task_leave_car $scplayer {vehicle} 74@
gosub @TRUCK_16480
37@ += 1

:TRUCK_1990
if 
  37@ == 3
goto_if_false @TRUCK_2053
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_2053
close_all_car_doors 74@
lock_car_doors 74@ {lockStatus} CarLock.Locked
set_player_control $player1 {state} True
37@ = 99

:TRUCK_2053
gosub @TRUCK_7070
gosub @TRUCK_7225
gosub @TRUCK_7454
if 
  106@ == 1
goto_if_false @TRUCK_2099
gosub @TRUCK_7648

:TRUCK_2099
if 
  106@ == 0
goto_if_false @TRUCK_2270
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
if and
  locate_car_3d 75@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
  not locate_car_3d 75@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TRUCK_2270
set_car_density_multiplier 1.0
if 
  88@ == 4
goto_if_false @TRUCK_2245

:TRUCK_2245
if 
  88@ == 6
goto_if_false @TRUCK_2263

:TRUCK_2263
106@ = 1

:TRUCK_2270
if 
  105@ == 0
goto_if_false @TRUCK_2370
if 
  110@ == 1
goto_if_false @TRUCK_2329
print_now 'TRK_H14' {time} 6000 {flag} 1
110@ = 0

:TRUCK_2329
if 
  111@ == 1
goto_if_false @TRUCK_2370
print_now 'TRK_H15' {time} 6000 {flag} 1
111@ = 0

:TRUCK_2370
if 
  105@ == 0
goto_if_false @TRUCK_2429
if 
  112@ == 1
goto_if_false @TRUCK_2429
print_now 'TRK_H16' {time} 7000 {flag} 1
112@ = 0

:TRUCK_2429
if 
  37@ == 99
goto_if_false @TRUCK_2454
gosub @TRUCK_15301

:TRUCK_2454
return 

:TRUCK_2456
if 
  37@ == 0
goto_if_false @TRUCK_2531
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
59@, 60@, 61@ = get_char_coordinates $scplayer
62@ = get_char_heading $scplayer
clear_onscreen_counter $g_nTruckMissionsPassed
37@ += 1

:TRUCK_2531
if 
  37@ == 1
goto_if_false @TRUCK_2598
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2598
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_2598
if 
  37@ == 2
goto_if_false @TRUCK_2847
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_2847
$g_Truck_CashPickupKM = create_protection_pickup -82.2693 {y} -1135.526 {z} 0.5847 {revenueLimit} $g_Truck_CashPickupValueKM {revenueRate} $g_Truck_CashPickupValueKM
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @TRUCK_2710
warp_char_from_car_to_coord $scplayer {x} -47.0873 {y} -1122.146 {z} 0.4453
goto @TRUCK_2730

:TRUCK_2710
set_char_coordinates $scplayer {x} -47.0873 {y} -1122.146 {z} 0.4453

:TRUCK_2730
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
load_scene_in_direction -96.3779 {y} -1125.262 {z} 0.093 {heading} 261.7115
set_fixed_camera_position -109.2539 {y} -1122.353 {z} 15.1451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -108.3806 {y} -1122.439 {z} 14.6655 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_2847
if 
  37@ == 3
goto_if_false @TRUCK_2930
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2930
do_fade 500 {direction} Fade.In
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
37@ += 1

:TRUCK_2930
if 
  37@ == 4
goto_if_false @TRUCK_3060
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3060
set_fixed_camera_position -83.7387 {y} -1133.793 {z} 0.9871 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -82.9525 {y} -1134.41 {z} 0.9592 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $g_Truck_CashPickupValueKM {duration} 6000 {flag} 1
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 6000
37@ += 1

:TRUCK_3060
if 
  37@ == 5
goto_if_false @TRUCK_3127
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3127
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3127
if 
  37@ == 6
goto_if_false @TRUCK_3230
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_3230
set_char_coordinates $scplayer {x} 59@ {y} 60@ {z} 61@
set_char_heading $scplayer {heading} 62@
load_scene 59@ {y} 60@ {z} 61@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_3230
if 
  37@ == 7
goto_if_false @TRUCK_3313
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3313
print_now 'TRK_P2' {time} 10000 {flag} 1
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3313
if 
  37@ == 8
goto_if_false @TRUCK_3377
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_3377
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_player_control $player1 {state} True
37@ = 99

:TRUCK_3377
if 
  37@ == 99
goto_if_false @TRUCK_3402
gosub @TRUCK_15301

:TRUCK_3402
return 

:TRUCK_3404
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_3593 {caseNum1} 1 {caseLabel1} @TRUCK_3467 {caseNum2} 2 {caseLabel2} @TRUCK_3488 {caseNum3} 3 {caseLabel3} @TRUCK_3509 {caseNum4} 4 {caseLabel4} @TRUCK_3530 {caseNum5} 5 {caseLabel5} @TRUCK_3551 {caseNum6} 6 {caseLabel6} @TRUCK_3572 {caseNum7} -1 {caseLabel7} @TRUCK_3620

:TRUCK_3467
set_lvar_text_label 98@s = 'TRK_MND'
goto @TRUCK_3620

:TRUCK_3488
set_lvar_text_label 98@s = 'TRK_MNT'
goto @TRUCK_3620

:TRUCK_3509
set_lvar_text_label 98@s = 'TRK_MFD'
goto @TRUCK_3620

:TRUCK_3530
set_lvar_text_label 98@s = 'TRK_MI'
goto @TRUCK_3620

:TRUCK_3551
set_lvar_text_label 98@s = 'TRK_MTD'
goto @TRUCK_3620

:TRUCK_3572
set_lvar_text_label 98@s = 'TRK_MHI'
goto @TRUCK_3620

:TRUCK_3593
write_debug "UNKNOWN_MISSION_TYPE_ID"

:TRUCK_3620
return 

:TRUCK_3622
if 
  86@ == 1
goto_if_false @TRUCK_3787
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3787 {caseNum1} 0 {caseLabel1} @TRUCK_3703 {caseNum2} 1 {caseLabel2} @TRUCK_3724 {caseNum3} 2 {caseLabel3} @TRUCK_3745 {caseNum4} 3 {caseLabel4} @TRUCK_3766 {caseNum5} -1 {caseLabel5} @TRUCK_3787 {caseNum6} -1 {caseLabel6} @TRUCK_3787 {caseNum7} -1 {caseLabel7} @TRUCK_3787

:TRUCK_3703
set_lvar_text_label 100@s = 'TRK_CE0'
goto @TRUCK_3787

:TRUCK_3724
set_lvar_text_label 100@s = 'TRK_CE1'
goto @TRUCK_3787

:TRUCK_3745
set_lvar_text_label 100@s = 'TRK_CE2'
goto @TRUCK_3787

:TRUCK_3766
set_lvar_text_label 100@s = 'TRK_CE3'
goto @TRUCK_3787

:TRUCK_3787
if 
  86@ == 2
goto_if_false @TRUCK_3910
switch_start 87@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3910 {caseNum1} 0 {caseLabel1} @TRUCK_3868 {caseNum2} 1 {caseLabel2} @TRUCK_3889 {caseNum3} -1 {caseLabel3} @TRUCK_3910 {caseNum4} -1 {caseLabel4} @TRUCK_3910 {caseNum5} -1 {caseLabel5} @TRUCK_3910 {caseNum6} -1 {caseLabel6} @TRUCK_3910 {caseNum7} -1 {caseLabel7} @TRUCK_3910

:TRUCK_3868
set_lvar_text_label 100@s = 'TRK_CE4'
goto @TRUCK_3910

:TRUCK_3889
set_lvar_text_label 100@s = 'TRK_CE5'
goto @TRUCK_3910

:TRUCK_3910
if 
  86@ == 3
goto_if_false @TRUCK_4075
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4075 {caseNum1} 0 {caseLabel1} @TRUCK_3991 {caseNum2} 1 {caseLabel2} @TRUCK_4012 {caseNum3} 2 {caseLabel3} @TRUCK_4033 {caseNum4} 3 {caseLabel4} @TRUCK_4054 {caseNum5} -1 {caseLabel5} @TRUCK_4075 {caseNum6} -1 {caseLabel6} @TRUCK_4075 {caseNum7} -1 {caseLabel7} @TRUCK_4075

:TRUCK_3991
set_lvar_text_label 100@s = 'TRK_LS0'
goto @TRUCK_4075

:TRUCK_4012
set_lvar_text_label 100@s = 'TRK_LS1'
goto @TRUCK_4075

:TRUCK_4033
set_lvar_text_label 100@s = 'TRK_LS2'
goto @TRUCK_4075

:TRUCK_4054
set_lvar_text_label 100@s = 'TRK_LS3'
goto @TRUCK_4075

:TRUCK_4075
if 
  86@ == 8
goto_if_false @TRUCK_4515
switch_start 87@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4515 {caseNum1} 0 {caseLabel1} @TRUCK_4221 {caseNum2} 1 {caseLabel2} @TRUCK_4242 {caseNum3} 2 {caseLabel3} @TRUCK_4263 {caseNum4} 3 {caseLabel4} @TRUCK_4284 {caseNum5} 4 {caseLabel5} @TRUCK_4305 {caseNum6} 5 {caseLabel6} @TRUCK_4326 {caseNum7} 6 {caseLabel7} @TRUCK_4347
switch_continued 7 {caseLabel1} @TRUCK_4368 {caseNum2} 8 {caseLabel2} @TRUCK_4389 {caseNum3} 9 {caseLabel3} @TRUCK_4410 {caseNum4} 10 {caseLabel4} @TRUCK_4431 {caseNum5} 11 {caseLabel5} @TRUCK_4452 {caseNum6} 12 {caseLabel6} @TRUCK_4473 {caseNum7} 13 {caseLabel7} @TRUCK_4494 {caseNum8} -1 {caseLabel8} @TRUCK_4515 {caseNum9} -1 {caseLabel9} @TRUCK_4515

:TRUCK_4221
set_lvar_text_label 100@s = 'TRK_V0'
goto @TRUCK_4515

:TRUCK_4242
set_lvar_text_label 100@s = 'TRK_V1'
goto @TRUCK_4515

:TRUCK_4263
set_lvar_text_label 100@s = 'TRK_V2'
goto @TRUCK_4515

:TRUCK_4284
set_lvar_text_label 100@s = 'TRK_V3'
goto @TRUCK_4515

:TRUCK_4305
set_lvar_text_label 100@s = 'TRK_V4'
goto @TRUCK_4515

:TRUCK_4326
set_lvar_text_label 100@s = 'TRK_V5'
goto @TRUCK_4515

:TRUCK_4347
set_lvar_text_label 100@s = 'TRK_V6'
goto @TRUCK_4515

:TRUCK_4368
set_lvar_text_label 100@s = 'TRK_V7'
goto @TRUCK_4515

:TRUCK_4389
set_lvar_text_label 100@s = 'TRK_V8'
goto @TRUCK_4515

:TRUCK_4410
set_lvar_text_label 100@s = 'TRK_V9'
goto @TRUCK_4515

:TRUCK_4431
set_lvar_text_label 100@s = 'TRK_V10'
goto @TRUCK_4515

:TRUCK_4452
set_lvar_text_label 100@s = 'TRK_V11'
goto @TRUCK_4515

:TRUCK_4473
set_lvar_text_label 100@s = 'TRK_V12'
goto @TRUCK_4515

:TRUCK_4494
set_lvar_text_label 100@s = 'TRK_V13'
goto @TRUCK_4515

:TRUCK_4515
if 
  86@ == 7
goto_if_false @TRUCK_4701
switch_start 87@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4701 {caseNum1} 0 {caseLabel1} @TRUCK_4596 {caseNum2} 1 {caseLabel2} @TRUCK_4617 {caseNum3} 2 {caseLabel3} @TRUCK_4638 {caseNum4} 3 {caseLabel4} @TRUCK_4659 {caseNum5} 4 {caseLabel5} @TRUCK_4680 {caseNum6} -1 {caseLabel6} @TRUCK_4701 {caseNum7} -1 {caseLabel7} @TRUCK_4701

:TRUCK_4596
set_lvar_text_label 100@s = 'TRK_NC0'
goto @TRUCK_4701

:TRUCK_4617
set_lvar_text_label 100@s = 'TRK_NC1'
goto @TRUCK_4701

:TRUCK_4638
set_lvar_text_label 100@s = 'TRK_NC2'
goto @TRUCK_4701

:TRUCK_4659
set_lvar_text_label 100@s = 'TRK_NC3'
goto @TRUCK_4701

:TRUCK_4680
set_lvar_text_label 100@s = 'TRK_NC4'
goto @TRUCK_4701

:TRUCK_4701
if 
  86@ == 4
goto_if_false @TRUCK_4845
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4845 {caseNum1} 0 {caseLabel1} @TRUCK_4782 {caseNum2} 1 {caseLabel2} @TRUCK_4803 {caseNum3} 2 {caseLabel3} @TRUCK_4824 {caseNum4} -1 {caseLabel4} @TRUCK_4845 {caseNum5} -1 {caseLabel5} @TRUCK_4845 {caseNum6} -1 {caseLabel6} @TRUCK_4845 {caseNum7} -1 {caseLabel7} @TRUCK_4845

:TRUCK_4782
set_lvar_text_label 100@s = 'TRK_CS0'
goto @TRUCK_4845

:TRUCK_4803
set_lvar_text_label 100@s = 'TRK_CS1'
goto @TRUCK_4845

:TRUCK_4824
set_lvar_text_label 100@s = 'TRK_CS2'
goto @TRUCK_4845

:TRUCK_4845
if 
  86@ == 5
goto_if_false @TRUCK_5010
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5010 {caseNum1} 0 {caseLabel1} @TRUCK_4926 {caseNum2} 1 {caseLabel2} @TRUCK_4947 {caseNum3} 2 {caseLabel3} @TRUCK_4968 {caseNum4} 3 {caseLabel4} @TRUCK_4989 {caseNum5} -1 {caseLabel5} @TRUCK_5010 {caseNum6} -1 {caseLabel6} @TRUCK_5010 {caseNum7} -1 {caseLabel7} @TRUCK_5010

:TRUCK_4926
set_lvar_text_label 100@s = 'TRK_SF0'
goto @TRUCK_5010

:TRUCK_4947
set_lvar_text_label 100@s = 'TRK_SF1'
goto @TRUCK_5010

:TRUCK_4968
set_lvar_text_label 100@s = 'TRK_SF2'
goto @TRUCK_5010

:TRUCK_4989
set_lvar_text_label 100@s = 'TRK_SF3'
goto @TRUCK_5010

:TRUCK_5010
if 
  86@ == 6
goto_if_false @TRUCK_5154
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5154 {caseNum1} 0 {caseLabel1} @TRUCK_5091 {caseNum2} 1 {caseLabel2} @TRUCK_5112 {caseNum3} 2 {caseLabel3} @TRUCK_5133 {caseNum4} -1 {caseLabel4} @TRUCK_5154 {caseNum5} -1 {caseLabel5} @TRUCK_5154 {caseNum6} -1 {caseLabel6} @TRUCK_5154 {caseNum7} -1 {caseLabel7} @TRUCK_5154

:TRUCK_5091
set_lvar_text_label 100@s = 'TRK_CN0'
goto @TRUCK_5154

:TRUCK_5112
set_lvar_text_label 100@s = 'TRK_CN1'
goto @TRUCK_5154

:TRUCK_5133
set_lvar_text_label 100@s = 'TRK_CN2'
goto @TRUCK_5154

:TRUCK_5154
return 

:TRUCK_5156
clear_small_prints 
print_string_in_string_now 98@s {replacementKey} 100@s {duration} 15000 {style} TextStyle.Middle
return 

:TRUCK_5173
if 
  105@ == 1
goto_if_false @TRUCK_5729
if and
  is_trailer_attached_to_cab 75@ {cab} 74@
  is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5267
84@ = 0
105@ = 0
remove_blip 78@
remove_blip 79@
76@ = add_blip_for_coord 102@ {y} 103@ {z} 104@
change_blip_scale 76@ {size} 4
clear_small_prints 
return 

:TRUCK_5267
50@ = get_car_health 74@
if 
  250 > 50@
goto_if_false @TRUCK_5306
clear_small_prints 
remove_blip 78@
remove_blip 79@

:TRUCK_5306
if 
  is_int_lvar_greater_than_int_lvar 47@ > 80@
goto_if_false @TRUCK_5348
84@ -= 1
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000

:TRUCK_5348
if 
  0 > 84@
goto_if_false @TRUCK_5460
39@ = 1
clear_small_prints 
remove_blip 78@
remove_blip 79@
72@ = 0
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5425
72@ = 1
89@ = 4

:TRUCK_5425
if and
  not is_trailer_attached_to_cab 75@ {cab} 74@
  72@ == 0
goto_if_false @TRUCK_5458
89@ = 5

:TRUCK_5458
return 

:TRUCK_5460
clear_prints 
add_next_message_to_previous_briefs False
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5607
if 
  84@ == 1
goto_if_false @TRUCK_5529
print_with_number 'TRK_H5B' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5548

:TRUCK_5529
print_with_number 'TRK_H5' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5548
if 
  does_blip_exist 79@
goto_if_false @TRUCK_5569
remove_blip 79@

:TRUCK_5569
if 
  not does_blip_exist 78@
goto_if_false @TRUCK_5600
78@ = add_blip_for_car 74@
set_blip_as_friendly 78@ {state} True

:TRUCK_5600
goto @TRUCK_5722

:TRUCK_5607
if 
  84@ == 1
goto_if_false @TRUCK_5651
print_with_number 'TRK_H4B' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5670

:TRUCK_5651
print_with_number 'TRK_H4' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5670
if 
  not does_blip_exist 79@
goto_if_false @TRUCK_5701
79@ = add_blip_for_car 75@
set_blip_as_friendly 79@ {state} True

:TRUCK_5701
if 
  does_blip_exist 78@
goto_if_false @TRUCK_5722
remove_blip 78@

:TRUCK_5722
goto @TRUCK_5859

:TRUCK_5729
if or
  not is_trailer_attached_to_cab 75@ {cab} 74@
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5859
84@ = 60
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000
105@ = 1
remove_blip 76@
add_next_message_to_previous_briefs False
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5840
print_with_number_now 'TRK_H5' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5859

:TRUCK_5840
print_with_number_now 'TRK_H4' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5859
return 

:TRUCK_5861
90@ = 750
if or
  88@ == 1
  88@ == 5
goto_if_false @TRUCK_5902
90@ = 500

:TRUCK_5902
if 
  88@ == 3
goto_if_false @TRUCK_5928
90@ = 250

:TRUCK_5928
set_lvar_int_to_lvar_int 50@ = 90@
50@ += 250
set_car_health 75@ {health} 50@
set_car_health 74@ {health} 50@
92@ = 0
gosub @TRUCK_6109
if or
  88@ == 1
  88@ == 3
goto_if_false @TRUCK_6017
display_nth_onscreen_counter_with_string $g_Truck_cashKM {display} CounterDisplay.Bar {slot} 2 {text} 'TRK_DMG'

:TRUCK_6017
if 
  88@ == 2
goto_if_false @TRUCK_6046
gosub @TRUCK_6513
freeze_onscreen_timer True

:TRUCK_6046
if 
  88@ == 5
goto_if_false @TRUCK_6093
gosub @TRUCK_6513
display_nth_onscreen_counter_with_string $g_Truck_cashKM {display} CounterDisplay.Bar {slot} 2 {text} 'TRK_DMG'
freeze_onscreen_timer True

:TRUCK_6093
110@ = 0
111@ = 0
return 

:TRUCK_6109
switch_start 92@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_6319 {caseNum1} 0 {caseLabel1} @TRUCK_6172 {caseNum2} 1 {caseLabel2} @TRUCK_6210 {caseNum3} 2 {caseLabel3} @TRUCK_6247 {caseNum4} 3 {caseLabel4} @TRUCK_6284 {caseNum5} 4 {caseLabel5} @TRUCK_6305 {caseNum6} -1 {caseLabel6} @TRUCK_6319 {caseNum7} -1 {caseLabel7} @TRUCK_6319

:TRUCK_6172
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 140
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 1
goto @TRUCK_6319

:TRUCK_6210
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 2
goto @TRUCK_6319

:TRUCK_6247
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 3
goto @TRUCK_6319

:TRUCK_6284
gosub @TRUCK_6321
92@ = 4
goto @TRUCK_6319

:TRUCK_6305
92@ = 5
goto @TRUCK_6319

:TRUCK_6319
return 

:TRUCK_6321
50@ = 2
50@ *= 60
50@ += 0
50@ *= 1000
set_lvar_int_to_lvar_int 81@ = 47@
add_int_lvar_to_int_lvar 81@ += 50@
50@, 51@ = get_time_of_day 
51@ += 0
if 
  51@ >= 60
goto_if_false @TRUCK_6413
51@ -= 60
50@ += 1

:TRUCK_6413
50@ += 2
if 
  50@ >= 24
goto_if_false @TRUCK_6445
50@ -= 24

:TRUCK_6445
set_lvar_int_to_lvar_int 52@ = 50@
52@ *= 60
add_int_lvar_to_int_lvar 52@ += 51@
52@ *= 1000
set_var_int_to_lvar_int $g_Truck_damageKM = 52@
display_onscreen_timer_with_string $g_Truck_damageKM {direction} TimerDirection.Up {text} 'TRK_DLN'
freeze_onscreen_timer True
112@ = 1
return 

:TRUCK_6513
set_lvar_int_to_lvar_int 50@ = 93@
50@ *= 140
50@ /= 1000
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 60
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 60
sub_int_lvar_from_int_lvar 50@ -= 52@
94@, 95@ = get_time_of_day 
add_int_lvar_to_int_lvar 95@ += 50@
if 
  95@ >= 60
goto_if_false @TRUCK_6623
94@ += 1
95@ -= 60

:TRUCK_6623
add_int_lvar_to_int_lvar 94@ += 51@

:TRUCK_6631
if 
  94@ >= 24
goto_if_false @TRUCK_6663
94@ -= 24
goto @TRUCK_6631

:TRUCK_6663
72@ = 0
if 
  95@ > 45
goto_if_false @TRUCK_6765
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 0
94@ += 1
if 
  94@ == 24
goto_if_false @TRUCK_6742
94@ = 0

:TRUCK_6742
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6765
if 
  72@ == 0
goto_if_false @TRUCK_6853
if and
  95@ > 30
  45 > 95@
goto_if_false @TRUCK_6853
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6853
if 
  72@ == 0
goto_if_false @TRUCK_6941
if and
  95@ > 15
  30 > 95@
goto_if_false @TRUCK_6941
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6941
if 
  72@ == 0
goto_if_false @TRUCK_7029
if and
  95@ > 0
  15 > 95@
goto_if_false @TRUCK_7029
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_7029
set_lvar_int_to_lvar_int 50@ = 94@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 95@
50@ *= 1000
set_var_int_to_lvar_int $g_Truck_damageKM = 50@
return 

:TRUCK_7070
50@ = get_car_health 75@
51@ = get_car_health 74@
if 
  is_int_lvar_greater_than_int_lvar 50@ > 51@
goto_if_false @TRUCK_7113
set_lvar_int_to_lvar_int 50@ = 51@

:TRUCK_7113
if 
  50@ > 1
goto_if_false @TRUCK_7147
set_car_health 74@ {health} 50@
set_car_health 75@ {health} 50@

:TRUCK_7147
if 
  108@ == 0
goto_if_false @TRUCK_7167
return 

:TRUCK_7167
50@ -= 250
50@ *= 100
div_int_lvar_by_int_lvar 50@ /= 90@
if 
  0 > 50@
goto_if_false @TRUCK_7215
50@ = 0

:TRUCK_7215
set_var_int_to_lvar_int $g_Truck_cashKM = 50@
return 

:TRUCK_7225
if 
  is_int_lvar_greater_than_int_lvar 47@ > 81@
goto_if_false @TRUCK_7452
gosub @TRUCK_6109
if 
  92@ == 5
goto_if_false @TRUCK_7299
39@ = 1
81@ = 0
83@ = 0
89@ = 2
return 

:TRUCK_7299
if 
  107@ == 1
goto_if_false @TRUCK_7452
if or
  92@ == 2
  92@ == 3
  92@ == 4
goto_if_false @TRUCK_7452
91@ /= 2
clear_onscreen_counter $g_nTruckMissionsPassed
display_nth_onscreen_counter_with_string $g_nTruckMissionsPassed {display} CounterDisplay.Number {slot} 1 {text} 'TRK_CSH'
if 
  92@ == 2
goto_if_false @TRUCK_7402
clear_onscreen_timer $g_Truck_damageKM

:TRUCK_7402
if 
  92@ == 2
goto_if_false @TRUCK_7427
110@ = 1

:TRUCK_7427
if 
  92@ == 3
goto_if_false @TRUCK_7452
111@ = 1

:TRUCK_7452
return 

:TRUCK_7454
set_lvar_int_to_lvar_int 83@ = 91@
if 
  108@ == 1
goto_if_false @TRUCK_7597
if 
  is_car_dead 74@
goto_if_false @TRUCK_7510
83@ = 0
goto @TRUCK_7597

:TRUCK_7510
50@ = get_car_health 74@
if 
  250 > 50@
goto_if_false @TRUCK_7551
83@ = 0
goto @TRUCK_7597

:TRUCK_7551
50@ -= 250
set_lvar_int_to_lvar_int 51@ = 50@
51@ *= 100
div_int_lvar_by_int_lvar 51@ /= 90@
mult_int_lvar_by_int_lvar 83@ *= 51@
83@ /= 100

:TRUCK_7597
if 
  109@ == 1
goto_if_false @TRUCK_7638
if 
  is_car_dead 74@
goto_if_false @TRUCK_7638
83@ = 0

:TRUCK_7638
set_var_int_to_lvar_int $g_nTruckMissionsPassed = 83@
return 

:TRUCK_7648
if 
  109@ == 0
goto_if_false @TRUCK_7668
return 

:TRUCK_7668
if 
  88@ == 4
goto_if_false @TRUCK_7706
if 
  not is_wanted_level_greater $player1 {wantedLevel} 2
goto_if_false @TRUCK_7704

:TRUCK_7704
return 

:TRUCK_7706
if 
  88@ == 6
goto_if_false @TRUCK_7744
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @TRUCK_7742

:TRUCK_7742
return 

:TRUCK_7744
return 

:TRUCK_7746
86@ = -1
87@ = -1
88@ = 0
gosub @TRUCK_7811
gosub @TRUCK_8263
gosub @TRUCK_9781
gosub @TRUCK_8926
gosub @TRUCK_9266
gosub @TRUCK_9371
return 

:TRUCK_7811
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
62@ = 69.9957
clear_area 59@ {y} 60@ {z} 61@ {radius} 30.0 {clearParticles} False
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8004 {caseNum1} 1 {caseLabel1} @TRUCK_7932 {caseNum2} 2 {caseLabel2} @TRUCK_7956 {caseNum3} 3 {caseLabel3} @TRUCK_7980 {caseNum4} -1 {caseLabel4} @TRUCK_8019 {caseNum5} -1 {caseLabel5} @TRUCK_8019 {caseNum6} -1 {caseLabel6} @TRUCK_8019 {caseNum7} -1 {caseLabel7} @TRUCK_8019

:TRUCK_7932
74@ = create_car 514 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8019

:TRUCK_7956
74@ = create_car 403 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8019

:TRUCK_7980
74@ = create_car 515 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8019

:TRUCK_8004
write_debug "UNKNOWN_CAB"

:TRUCK_8019
set_car_heading 74@ {heading} 62@
59@ = -60.6033
60@ = -1136.899
61@ = 0.0781
clear_area 59@ {y} 60@ {z} 61@ {radius} 50.0 {clearParticles} False
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8234 {caseNum1} 1 {caseLabel1} @TRUCK_8138 {caseNum2} 2 {caseLabel2} @TRUCK_8162 {caseNum3} 3 {caseLabel3} @TRUCK_8186 {caseNum4} 4 {caseLabel4} @TRUCK_8210 {caseNum5} -1 {caseLabel5} @TRUCK_8253 {caseNum6} -1 {caseLabel6} @TRUCK_8253 {caseNum7} -1 {caseLabel7} @TRUCK_8253

:TRUCK_8138
75@ = create_car 584 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8253

:TRUCK_8162
75@ = create_car 435 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8253

:TRUCK_8186
75@ = create_car 450 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8253

:TRUCK_8210
75@ = create_car 591 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8253

:TRUCK_8234
write_debug "UNKNOWN_TRAILER"

:TRUCK_8253
attach_trailer_to_cab 75@ {cab} 74@
return 

:TRUCK_8263
switch_start $gym_lv_defeated {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8537 {caseNum1} 0 {caseLabel1} @TRUCK_8391 {caseNum2} 1 {caseLabel2} @TRUCK_8405 {caseNum3} 2 {caseLabel3} @TRUCK_8419 {caseNum4} 3 {caseLabel4} @TRUCK_8433 {caseNum5} 4 {caseLabel5} @TRUCK_8447 {caseNum6} 5 {caseLabel6} @TRUCK_8461 {caseNum7} 6 {caseLabel7} @TRUCK_8492
switch_continued 7 {caseLabel1} @TRUCK_8523 {caseNum2} -1 {caseLabel2} @TRUCK_8568 {caseNum3} -1 {caseLabel3} @TRUCK_8568 {caseNum4} -1 {caseLabel4} @TRUCK_8568 {caseNum5} -1 {caseLabel5} @TRUCK_8568 {caseNum6} -1 {caseLabel6} @TRUCK_8568 {caseNum7} -1 {caseLabel7} @TRUCK_8568 {caseNum8} -1 {caseLabel8} @TRUCK_8568 {caseNum9} -1 {caseLabel9} @TRUCK_8568

:TRUCK_8391
86@ = 1
goto @TRUCK_8568

:TRUCK_8405
86@ = 2
goto @TRUCK_8568

:TRUCK_8419
86@ = 3
goto @TRUCK_8568

:TRUCK_8433
86@ = 4
goto @TRUCK_8568

:TRUCK_8447
86@ = 5
goto @TRUCK_8568

:TRUCK_8461
51@ = 5
51@ += 1
86@ = generate_random_int_in_range 4 {max} 51@
goto @TRUCK_8568

:TRUCK_8492
51@ = 7
51@ += 1
86@ = generate_random_int_in_range 6 {max} 51@
goto @TRUCK_8568

:TRUCK_8523
86@ = 8
goto @TRUCK_8568

:TRUCK_8537
51@ = 8
51@ += 1
86@ = generate_random_int_in_range 2 {max} 51@
goto @TRUCK_8568

:TRUCK_8568
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8808 {caseNum1} 1 {caseLabel1} @TRUCK_8696 {caseNum2} 2 {caseLabel2} @TRUCK_8710 {caseNum3} 3 {caseLabel3} @TRUCK_8724 {caseNum4} 4 {caseLabel4} @TRUCK_8766 {caseNum5} 5 {caseLabel5} @TRUCK_8780 {caseNum6} 6 {caseLabel6} @TRUCK_8794 {caseNum7} 7 {caseLabel7} @TRUCK_8752
switch_continued 8 {caseLabel1} @TRUCK_8738 {caseNum2} -1 {caseLabel2} @TRUCK_8836 {caseNum3} -1 {caseLabel3} @TRUCK_8836 {caseNum4} -1 {caseLabel4} @TRUCK_8836 {caseNum5} -1 {caseLabel5} @TRUCK_8836 {caseNum6} -1 {caseLabel6} @TRUCK_8836 {caseNum7} -1 {caseLabel7} @TRUCK_8836 {caseNum8} -1 {caseLabel8} @TRUCK_8836 {caseNum9} -1 {caseLabel9} @TRUCK_8836

:TRUCK_8696
gosub @TRUCK_8838
goto @TRUCK_8836

:TRUCK_8710
gosub @TRUCK_8849
goto @TRUCK_8836

:TRUCK_8724
gosub @TRUCK_8871
goto @TRUCK_8836

:TRUCK_8738
gosub @TRUCK_8860
goto @TRUCK_8836

:TRUCK_8752
gosub @TRUCK_8915
goto @TRUCK_8836

:TRUCK_8766
gosub @TRUCK_8893
goto @TRUCK_8836

:TRUCK_8780
gosub @TRUCK_8882
goto @TRUCK_8836

:TRUCK_8794
gosub @TRUCK_8904
goto @TRUCK_8836

:TRUCK_8808
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_8836
return 

:TRUCK_8838
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8849
87@ = generate_random_int_in_range 0 {max} 2
return 

:TRUCK_8860
87@ = generate_random_int_in_range 0 {max} 14
return 

:TRUCK_8871
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8882
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8893
87@ = generate_random_int_in_range 0 {max} 3
return 

:TRUCK_8904
87@ = generate_random_int_in_range 0 {max} 3
return 

:TRUCK_8915
87@ = generate_random_int_in_range 0 {max} 5
return 

:TRUCK_8926
switch_start $gym_lv_defeated {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9138 {caseNum1} 0 {caseLabel1} @TRUCK_9054 {caseNum2} 1 {caseLabel2} @TRUCK_9068 {caseNum3} 2 {caseLabel3} @TRUCK_9096 {caseNum4} 3 {caseLabel4} @TRUCK_9054 {caseNum5} 4 {caseLabel5} @TRUCK_9082 {caseNum6} 5 {caseLabel6} @TRUCK_9096 {caseNum7} 6 {caseLabel7} @TRUCK_9110
switch_continued 7 {caseLabel1} @TRUCK_9124 {caseNum2} -1 {caseLabel2} @TRUCK_9161 {caseNum3} -1 {caseLabel3} @TRUCK_9161 {caseNum4} -1 {caseLabel4} @TRUCK_9161 {caseNum5} -1 {caseLabel5} @TRUCK_9161 {caseNum6} -1 {caseLabel6} @TRUCK_9161 {caseNum7} -1 {caseLabel7} @TRUCK_9161 {caseNum8} -1 {caseLabel8} @TRUCK_9161 {caseNum9} -1 {caseLabel9} @TRUCK_9161

:TRUCK_9054
88@ = 2
goto @TRUCK_9161

:TRUCK_9068
88@ = 1
goto @TRUCK_9161

:TRUCK_9082
88@ = 3
goto @TRUCK_9161

:TRUCK_9096
88@ = 4
goto @TRUCK_9161

:TRUCK_9110
88@ = 5
goto @TRUCK_9161

:TRUCK_9124
88@ = 6
goto @TRUCK_9161

:TRUCK_9138
88@ = generate_random_int_in_range 0 {max} 6
88@ += 1
goto @TRUCK_9161

:TRUCK_9161
if or
  88@ == 1
  88@ == 3
  88@ == 5
goto_if_false @TRUCK_9200
108@ = 1

:TRUCK_9200
if or
  88@ == 2
  88@ == 5
goto_if_false @TRUCK_9232
107@ = 1

:TRUCK_9232
if or
  88@ == 4
  88@ == 6
goto_if_false @TRUCK_9264
109@ = 1

:TRUCK_9264
return 

:TRUCK_9266
set_lvar_float_to_lvar_float 63@ = 102@
sub_float_var_from_float_lvar 63@ -= $truckX
set_lvar_float_to_lvar_float 64@ = 103@
sub_float_var_from_float_lvar 64@ -= $truckY
set_lvar_float_to_lvar_float 66@ = 63@
mult_float_lvar_by_float_lvar 66@ *= 63@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 69@ = 66@
add_float_lvar_to_float_lvar 69@ += 67@
70@ = sqrt 69@
cset_lvar_int_to_lvar_float 93@ =# 70@
49@ += 1
return 

:TRUCK_9371
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9544 {caseNum1} 1 {caseLabel1} @TRUCK_9499 {caseNum2} 2 {caseLabel2} @TRUCK_9499 {caseNum3} 3 {caseLabel3} @TRUCK_9499 {caseNum4} 4 {caseLabel4} @TRUCK_9514 {caseNum5} 5 {caseLabel5} @TRUCK_9514 {caseNum6} 6 {caseLabel6} @TRUCK_9529 {caseNum7} 7 {caseLabel7} @TRUCK_9529
switch_continued 8 {caseLabel1} @TRUCK_9529 {caseNum2} -1 {caseLabel2} @TRUCK_9583 {caseNum3} -1 {caseLabel3} @TRUCK_9583 {caseNum4} -1 {caseLabel4} @TRUCK_9583 {caseNum5} -1 {caseLabel5} @TRUCK_9583 {caseNum6} -1 {caseLabel6} @TRUCK_9583 {caseNum7} -1 {caseLabel7} @TRUCK_9583 {caseNum8} -1 {caseLabel8} @TRUCK_9583 {caseNum9} -1 {caseLabel9} @TRUCK_9583

:TRUCK_9499
91@ = 1000
goto @TRUCK_9583

:TRUCK_9514
91@ = 3000
goto @TRUCK_9583

:TRUCK_9529
91@ = 4000
goto @TRUCK_9583

:TRUCK_9544
write_debug "INITIALISE_CASH_UNKNOWN_DESTINATION"

:TRUCK_9583
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9713 {caseNum1} 1 {caseLabel1} @TRUCK_9653 {caseNum2} 2 {caseLabel2} @TRUCK_9646 {caseNum3} 3 {caseLabel3} @TRUCK_9668 {caseNum4} 4 {caseLabel4} @TRUCK_9668 {caseNum5} 5 {caseLabel5} @TRUCK_9683 {caseNum6} 6 {caseLabel6} @TRUCK_9698 {caseNum7} -1 {caseLabel7} @TRUCK_9753

:TRUCK_9646
goto @TRUCK_9753

:TRUCK_9653
91@ += 500
goto @TRUCK_9753

:TRUCK_9668
91@ += 1000
goto @TRUCK_9753

:TRUCK_9683
91@ += 3000
goto @TRUCK_9753

:TRUCK_9698
91@ += 6000
goto @TRUCK_9753

:TRUCK_9713
write_debug "INITIALISE_CASH_UNKNOWN_MISSION_TYPE"

:TRUCK_9753
if 
  $gym_lv_defeated == 5
goto_if_false @TRUCK_9779
91@ += 1000

:TRUCK_9779
return 

:TRUCK_9781
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10021 {caseNum1} 1 {caseLabel1} @TRUCK_9909 {caseNum2} 2 {caseLabel2} @TRUCK_9923 {caseNum3} 3 {caseLabel3} @TRUCK_9937 {caseNum4} 4 {caseLabel4} @TRUCK_9979 {caseNum5} 5 {caseLabel5} @TRUCK_9993 {caseNum6} 6 {caseLabel6} @TRUCK_10007 {caseNum7} 7 {caseLabel7} @TRUCK_9965
switch_continued 8 {caseLabel1} @TRUCK_9951 {caseNum2} -1 {caseLabel2} @TRUCK_10049 {caseNum3} -1 {caseLabel3} @TRUCK_10049 {caseNum4} -1 {caseLabel4} @TRUCK_10049 {caseNum5} -1 {caseLabel5} @TRUCK_10049 {caseNum6} -1 {caseLabel6} @TRUCK_10049 {caseNum7} -1 {caseLabel7} @TRUCK_10049 {caseNum8} -1 {caseLabel8} @TRUCK_10049 {caseNum9} -1 {caseLabel9} @TRUCK_10049

:TRUCK_9909
gosub @TRUCK_10051
goto @TRUCK_10049

:TRUCK_9923
gosub @TRUCK_10300
goto @TRUCK_10049

:TRUCK_9937
gosub @TRUCK_11154
goto @TRUCK_10049

:TRUCK_9951
gosub @TRUCK_10474
goto @TRUCK_10049

:TRUCK_9965
gosub @TRUCK_11815
goto @TRUCK_10049

:TRUCK_9979
gosub @TRUCK_11397
goto @TRUCK_10049

:TRUCK_9993
gosub @TRUCK_12099
goto @TRUCK_10049

:TRUCK_10007
gosub @TRUCK_11606
goto @TRUCK_10049

:TRUCK_10021
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_10049
return 

:TRUCK_10051
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10262 {caseNum1} 0 {caseLabel1} @TRUCK_10114 {caseNum2} 1 {caseLabel2} @TRUCK_10151 {caseNum3} 2 {caseLabel3} @TRUCK_10188 {caseNum4} 3 {caseLabel4} @TRUCK_10225 {caseNum5} -1 {caseLabel5} @TRUCK_10298 {caseNum6} -1 {caseLabel6} @TRUCK_10298 {caseNum7} -1 {caseLabel7} @TRUCK_10298

:TRUCK_10114
102@ = -187.4041
103@ = -277.0196
104@ = 0.4219
goto @TRUCK_10298

:TRUCK_10151
102@ = 58.0364
103@ = -256.7285
104@ = 0.5781
goto @TRUCK_10298

:TRUCK_10188
102@ = 95.8675
103@ = -154.3627
104@ = 1.5751
goto @TRUCK_10298

:TRUCK_10225
102@ = 809.7556
103@ = -598.0007
104@ = 15.1875
goto @TRUCK_10298

:TRUCK_10262
write_debug "UNKNOWN_COUNTRYEASTNEAR_LOCATION"

:TRUCK_10298
return 

:TRUCK_10300
switch_start 87@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10437 {caseNum1} 0 {caseLabel1} @TRUCK_10363 {caseNum2} 1 {caseLabel2} @TRUCK_10400 {caseNum3} -1 {caseLabel3} @TRUCK_10472 {caseNum4} -1 {caseLabel4} @TRUCK_10472 {caseNum5} -1 {caseLabel5} @TRUCK_10472 {caseNum6} -1 {caseLabel6} @TRUCK_10472 {caseNum7} -1 {caseLabel7} @TRUCK_10472

:TRUCK_10363
102@ = 1403.833
103@ = 399.4294
104@ = 18.75
goto @TRUCK_10472

:TRUCK_10400
102@ = 1338.2889
103@ = 348.9004
104@ = 18.4062
goto @TRUCK_10472

:TRUCK_10437
write_debug "UNKNOWN_COUNTRYEASTFAR_LOCATION"

:TRUCK_10472
return 

:TRUCK_10474
switch_start 87@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11120 {caseNum1} 0 {caseLabel1} @TRUCK_10602 {caseNum2} 1 {caseLabel2} @TRUCK_10639 {caseNum3} 2 {caseLabel3} @TRUCK_10676 {caseNum4} 3 {caseLabel4} @TRUCK_10713 {caseNum5} 4 {caseLabel5} @TRUCK_10750 {caseNum6} 5 {caseLabel6} @TRUCK_10787 {caseNum7} 6 {caseLabel7} @TRUCK_10824
switch_continued 7 {caseLabel1} @TRUCK_10861 {caseNum2} 8 {caseLabel2} @TRUCK_10898 {caseNum3} 9 {caseLabel3} @TRUCK_10935 {caseNum4} 10 {caseLabel4} @TRUCK_10972 {caseNum5} 11 {caseLabel5} @TRUCK_11009 {caseNum6} 12 {caseLabel6} @TRUCK_11046 {caseNum7} 13 {caseLabel7} @TRUCK_11083 {caseNum8} -1 {caseLabel8} @TRUCK_11152 {caseNum9} -1 {caseLabel9} @TRUCK_11152

:TRUCK_10602
102@ = 1449.715
103@ = 2358.8521
104@ = 9.8203
goto @TRUCK_11152

:TRUCK_10639
102@ = 1037.475
103@ = 2131.344
104@ = 9.8203
goto @TRUCK_11152

:TRUCK_10676
102@ = 987.9741
103@ = 2080.3889
104@ = 9.8203
goto @TRUCK_11152

:TRUCK_10713
102@ = 1288.671
103@ = 1195.2321
104@ = 9.8656
goto @TRUCK_11152

:TRUCK_10750
102@ = 2467.9021
103@ = 1950.061
104@ = 9.2381
goto @TRUCK_11152

:TRUCK_10787
102@ = 2792.7439
103@ = 2578.3359
104@ = 9.8203
goto @TRUCK_11152

:TRUCK_10824
102@ = 2271.4771
103@ = 2791.739
104@ = 9.8203
goto @TRUCK_11152

:TRUCK_10861
102@ = 2596.519
103@ = 1738.582
104@ = 9.8281
goto @TRUCK_11152

:TRUCK_10898
102@ = 2818.8401
103@ = 912.5091
104@ = 9.75
goto @TRUCK_11152

:TRUCK_10935
102@ = 2706.5049
103@ = 827.3236
104@ = 9.2145
goto @TRUCK_11152

:TRUCK_10972
102@ = 1627.723
103@ = 688.4043
104@ = 9.8281
goto @TRUCK_11152

:TRUCK_11009
102@ = 1504.4919
103@ = 981.141
104@ = 9.7187
goto @TRUCK_11152

:TRUCK_11046
102@ = 1724.012
103@ = 1590.1281
104@ = 9.2578
goto @TRUCK_11152

:TRUCK_11083
102@ = 1727.833
103@ = 2338.0171
104@ = 9.813
goto @TRUCK_11152

:TRUCK_11120
write_debug "UNKNOWN_LASVENTURAS_LOCATION"

:TRUCK_11152
return 

:TRUCK_11154
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11365 {caseNum1} 0 {caseLabel1} @TRUCK_11217 {caseNum2} 1 {caseLabel2} @TRUCK_11254 {caseNum3} 2 {caseLabel3} @TRUCK_11291 {caseNum4} 3 {caseLabel4} @TRUCK_11328 {caseNum5} -1 {caseLabel5} @TRUCK_11395 {caseNum6} -1 {caseLabel6} @TRUCK_11395 {caseNum7} -1 {caseLabel7} @TRUCK_11395

:TRUCK_11217
102@ = 2413.6831
103@ = -2113.6741
104@ = 12.3881
goto @TRUCK_11395

:TRUCK_11254
102@ = 2784.9729
103@ = -2455.4409
104@ = 12.625
goto @TRUCK_11395

:TRUCK_11291
102@ = 2112.6621
103@ = -2070.376
104@ = 12.5547
goto @TRUCK_11395

:TRUCK_11328
102@ = 1763.641
103@ = -2070.3711
104@ = 12.6195
goto @TRUCK_11395

:TRUCK_11365
write_debug "UNKNOWN_LOSSANTOS_LOCATION"

:TRUCK_11395
return 

:TRUCK_11397
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11571 {caseNum1} 0 {caseLabel1} @TRUCK_11460 {caseNum2} 1 {caseLabel2} @TRUCK_11497 {caseNum3} 2 {caseLabel3} @TRUCK_11534 {caseNum4} -1 {caseLabel4} @TRUCK_11604 {caseNum5} -1 {caseLabel5} @TRUCK_11604 {caseNum6} -1 {caseLabel6} @TRUCK_11604 {caseNum7} -1 {caseLabel7} @TRUCK_11604

:TRUCK_11460
102@ = -1888.621
103@ = -1711.8361
104@ = 20.7656
goto @TRUCK_11604

:TRUCK_11497
102@ = -2117.2271
103@ = -2380.5071
104@ = 29.4688
goto @TRUCK_11604

:TRUCK_11534
102@ = -1545.439
103@ = -2747.032
104@ = 47.5314
goto @TRUCK_11604

:TRUCK_11571
write_debug "UNKNOWN_COUNTRYSOUTH_LOCATION"

:TRUCK_11604
return 

:TRUCK_11606
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11780 {caseNum1} 0 {caseLabel1} @TRUCK_11669 {caseNum2} 1 {caseLabel2} @TRUCK_11706 {caseNum3} 2 {caseLabel3} @TRUCK_11743 {caseNum4} -1 {caseLabel4} @TRUCK_11813 {caseNum5} -1 {caseLabel5} @TRUCK_11813 {caseNum6} -1 {caseLabel6} @TRUCK_11813 {caseNum7} -1 {caseLabel7} @TRUCK_11813

:TRUCK_11669
102@ = -1407.375
103@ = 2645.957
104@ = 54.7031
goto @TRUCK_11813

:TRUCK_11706
102@ = -2245.5811
103@ = 2371.6931
104@ = 3.9919
goto @TRUCK_11813

:TRUCK_11743
102@ = -1360.6331
103@ = 2068.094
104@ = 51.4589
goto @TRUCK_11813

:TRUCK_11780
write_debug "UNKNOWN_COUNTRYNORTH_LOCATION"

:TRUCK_11813
return 

:TRUCK_11815
switch_start 87@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12063 {caseNum1} 0 {caseLabel1} @TRUCK_11878 {caseNum2} 1 {caseLabel2} @TRUCK_11915 {caseNum3} 2 {caseLabel3} @TRUCK_11952 {caseNum4} 3 {caseLabel4} @TRUCK_11989 {caseNum5} 4 {caseLabel5} @TRUCK_12026 {caseNum6} -1 {caseLabel6} @TRUCK_12097 {caseNum7} -1 {caseLabel7} @TRUCK_12097

:TRUCK_11878
102@ = 274.2705
103@ = 1382.781
104@ = 9.6016
goto @TRUCK_12097

:TRUCK_11915
102@ = 628.8638
103@ = 1714.891
104@ = 5.9922
goto @TRUCK_12097

:TRUCK_11952
102@ = 635.0028
103@ = 1213.777
104@ = 10.7188
goto @TRUCK_12097

:TRUCK_11989
102@ = -914.953
103@ = 2012.1379
104@ = 59.9283
goto @TRUCK_12097

:TRUCK_12026
102@ = 385.8214
103@ = 2595.55
104@ = 15.4843
goto @TRUCK_12097

:TRUCK_12063
write_debug "UNKNOWN_COUNTRYNORTH2_LOCATION"

:TRUCK_12097
return 

:TRUCK_12099
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12310 {caseNum1} 0 {caseLabel1} @TRUCK_12162 {caseNum2} 1 {caseLabel2} @TRUCK_12199 {caseNum3} 2 {caseLabel3} @TRUCK_12236 {caseNum4} 3 {caseLabel4} @TRUCK_12273 {caseNum5} -1 {caseLabel5} @TRUCK_12341 {caseNum6} -1 {caseLabel6} @TRUCK_12341 {caseNum7} -1 {caseLabel7} @TRUCK_12341

:TRUCK_12162
102@ = -1556.9771
103@ = -441.3493
104@ = 5.0
goto @TRUCK_12341

:TRUCK_12199
102@ = -2659.6311
103@ = 1380.642
104@ = 6.1643
goto @TRUCK_12341

:TRUCK_12236
102@ = -1650.928
103@ = 437.5679
104@ = 6.1797
goto @TRUCK_12341

:TRUCK_12273
102@ = -1745.116
103@ = 37.8752
104@ = 2.5408
goto @TRUCK_12341

:TRUCK_12310
write_debug "UNKNOWN_SAN_FIERRO_LOCATION"

:TRUCK_12341
return 

:TRUCK_12343
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @TRUCK_12392
48@ += 1
if 
  48@ > 2
goto_if_false @TRUCK_12390
48@ = 0

:TRUCK_12390
clear_all_view_variables 

:TRUCK_12392
if 
  48@ == 1
goto_if_false @TRUCK_12586
set_var_int_to_lvar_int $g_Truck_timedKM = 36@
set_var_int_to_lvar_int $Truck_view_debug = 37@
set_var_int_to_lvar_int $8164 = 47@
set_var_int_to_lvar_int $8165 = 81@
sub_int_lvar_from_int_var $8165 -= 47@
set_var_int_to_lvar_int $8166 = 92@
set_var_int_to_lvar_int $8167 = 93@
$8168 = 0
$8169 = 0
view_integer_variable $g_Truck_timedKM {_p2} "M_STAGE"
view_integer_variable $Truck_view_debug {_p2} "M_GOALS"
view_integer_variable $8164 {_p2} "M_MISSION_TIMER"
view_integer_variable $8165 {_p2} "TIME_BOUNDARY_HIT"
view_integer_variable $8166 {_p2} "TIME_STAGE"
view_integer_variable $8167 {_p2} "DISTANCE"

:TRUCK_12586
if 
  48@ == 2
goto_if_false @TRUCK_12604

:TRUCK_12604
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @TRUCK_12626
40@ = 1

:TRUCK_12626
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @TRUCK_12714
if 
  41@ == 0
goto_if_false @TRUCK_12689
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TRUCK_12714

:TRUCK_12689
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TRUCK_12714
return 

:TRUCK_12716
if or
  36@ == 50
  36@ == 51
goto_if_false @TRUCK_12743
return 

:TRUCK_12743
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @TRUCK_12774
gosub @TRUCK_16480
38@ = 1
return 

:TRUCK_12774
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @TRUCK_12820
$gym_lv_defeated += 1
write_debug_with_int "MISSIONS_PASSED" {number} $gym_lv_defeated
return 

:TRUCK_12820
72@ = 0
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @TRUCK_12849
72@ = 1

:TRUCK_12849
73@ = 0
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @TRUCK_12878
73@ = 1

:TRUCK_12878
50@ = 0
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @TRUCK_12907
50@ = 1

:TRUCK_12907
if and
  72@ <> 1
  73@ <> 1
  50@ <> 1
goto_if_false @TRUCK_12941
return 

:TRUCK_12941
if 
  72@ == 1
goto_if_false @TRUCK_13011
34@ += 1
if 
  34@ == 6
goto_if_false @TRUCK_12991
34@ = 0

:TRUCK_12991
35@ = 0
write_debug_with_int "AREA" {number} 34@
return 

:TRUCK_13011
if 
  73@ == 1
goto_if_false @TRUCK_13056
35@ += 1
write_debug_with_int "DESTINATION" {number} 35@
return 

:TRUCK_13056
if 
  34@ == 0
goto_if_false @TRUCK_13366
switch_start 35@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_13322 {caseNum1} 0 {caseLabel1} @TRUCK_13322 {caseNum2} 1 {caseLabel2} @TRUCK_13137 {caseNum3} 2 {caseLabel3} @TRUCK_13174 {caseNum4} 3 {caseLabel4} @TRUCK_13211 {caseNum5} 4 {caseLabel5} @TRUCK_13248 {caseNum6} 5 {caseLabel6} @TRUCK_13285 {caseNum7} -1 {caseLabel7} @TRUCK_13366

:TRUCK_13137
102@ = 56.744
103@ = -268.404
104@ = 0.579
goto @TRUCK_13366

:TRUCK_13174
102@ = 100.397
103@ = -155.05
104@ = 1.583
goto @TRUCK_13366

:TRUCK_13211
102@ = 815.046
103@ = -605.128
104@ = 15.336
goto @TRUCK_13366

:TRUCK_13248
102@ = 1401.109
103@ = 398.763
104@ = 18.756
goto @TRUCK_13366

:TRUCK_13285
102@ = 1343.125
103@ = 345.667
104@ = 18.556
goto @TRUCK_13366

:TRUCK_13322
102@ = -189.23
103@ = -273.013
104@ = 0.429
35@ = 0
goto @TRUCK_13366

:TRUCK_13366
if 
  34@ == 2
goto_if_false @TRUCK_14037
switch_start 35@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_13993 {caseNum1} 0 {caseLabel1} @TRUCK_13993 {caseNum2} 1 {caseLabel2} @TRUCK_13512 {caseNum3} 2 {caseLabel3} @TRUCK_13549 {caseNum4} 3 {caseLabel4} @TRUCK_13586 {caseNum5} 4 {caseLabel5} @TRUCK_13623 {caseNum6} 5 {caseLabel6} @TRUCK_13660 {caseNum7} 6 {caseLabel7} @TRUCK_13697
switch_continued 7 {caseLabel1} @TRUCK_13734 {caseNum2} 8 {caseLabel2} @TRUCK_13771 {caseNum3} 9 {caseLabel3} @TRUCK_13808 {caseNum4} 10 {caseLabel4} @TRUCK_13845 {caseNum5} 11 {caseLabel5} @TRUCK_13882 {caseNum6} 12 {caseLabel6} @TRUCK_13919 {caseNum7} 13 {caseLabel7} @TRUCK_13956 {caseNum8} -1 {caseLabel8} @TRUCK_14037 {caseNum9} -1 {caseLabel9} @TRUCK_14037

:TRUCK_13512
102@ = 1042.15
103@ = 2130.46
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13549
102@ = 983.11
103@ = 2076.3799
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13586
102@ = 1288.671
103@ = 1195.2321
104@ = 9.8656
goto @TRUCK_14037

:TRUCK_13623
102@ = 2469.5701
103@ = 1949.52
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13660
102@ = 2807.8301
103@ = 2609.9399
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13697
102@ = 2248.71
103@ = 2775.1201
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13734
102@ = 2603.22
103@ = 1730.48
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13771
102@ = 2818.8401
103@ = 912.19
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13808
102@ = 2710.3601
103@ = 850.12
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13845
102@ = 1588.9
103@ = 715.31
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13882
102@ = 1446.26
103@ = 1000.51
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13919
102@ = 1724.012
103@ = 1590.1281
104@ = 9.2578
goto @TRUCK_14037

:TRUCK_13956
102@ = 1713.79
103@ = 2329.05
104@ = 101.0
goto @TRUCK_14037

:TRUCK_13993
102@ = 1450.8
103@ = 2360.6899
104@ = 101.0
35@ = 0
goto @TRUCK_14037

:TRUCK_14037
if 
  34@ == 1
goto_if_false @TRUCK_14273
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14229 {caseNum1} 0 {caseLabel1} @TRUCK_14229 {caseNum2} 1 {caseLabel2} @TRUCK_14118 {caseNum3} 2 {caseLabel3} @TRUCK_14155 {caseNum4} 3 {caseLabel4} @TRUCK_14192 {caseNum5} -1 {caseLabel5} @TRUCK_14273 {caseNum6} -1 {caseLabel6} @TRUCK_14273 {caseNum7} -1 {caseLabel7} @TRUCK_14273

:TRUCK_14118
102@ = 2759.0
103@ = -2446.0
104@ = 101.0
goto @TRUCK_14273

:TRUCK_14155
102@ = 2104.0
103@ = -2089.0
104@ = 101.0
goto @TRUCK_14273

:TRUCK_14192
102@ = 1751.0
103@ = -2067.0
104@ = 101.0
goto @TRUCK_14273

:TRUCK_14229
102@ = 2412.0
103@ = -2106.0
104@ = 101.0
35@ = 0
goto @TRUCK_14273

:TRUCK_14273
if 
  34@ == 4
goto_if_false @TRUCK_14472
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14428 {caseNum1} 0 {caseLabel1} @TRUCK_14428 {caseNum2} 1 {caseLabel2} @TRUCK_14354 {caseNum3} 2 {caseLabel3} @TRUCK_14391 {caseNum4} -1 {caseLabel4} @TRUCK_14472 {caseNum5} -1 {caseLabel5} @TRUCK_14472 {caseNum6} -1 {caseLabel6} @TRUCK_14472 {caseNum7} -1 {caseLabel7} @TRUCK_14472

:TRUCK_14354
102@ = -2001.03
103@ = -2388.0801
104@ = 101.0
goto @TRUCK_14472

:TRUCK_14391
102@ = -1560.67
103@ = -2728.3899
104@ = 101.0
goto @TRUCK_14472

:TRUCK_14428
102@ = -1835.0
103@ = -1647.6801
104@ = 101.0
35@ = 0
goto @TRUCK_14472

:TRUCK_14472
if 
  34@ == 6
goto_if_false @TRUCK_14671
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14627 {caseNum1} 0 {caseLabel1} @TRUCK_14627 {caseNum2} 1 {caseLabel2} @TRUCK_14553 {caseNum3} 2 {caseLabel3} @TRUCK_14590 {caseNum4} -1 {caseLabel4} @TRUCK_14671 {caseNum5} -1 {caseLabel5} @TRUCK_14671 {caseNum6} -1 {caseLabel6} @TRUCK_14671 {caseNum7} -1 {caseLabel7} @TRUCK_14671

:TRUCK_14553
102@ = -1945.89
103@ = 2377.8999
104@ = 101.0
goto @TRUCK_14671

:TRUCK_14590
102@ = -1471.49
103@ = 1864.85
104@ = 101.0
goto @TRUCK_14671

:TRUCK_14627
102@ = -1286.73
103@ = 2695.9199
104@ = 101.0
35@ = 0
goto @TRUCK_14671

:TRUCK_14671
if 
  34@ == 3
goto_if_false @TRUCK_14944
switch_start 35@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14900 {caseNum1} 0 {caseLabel1} @TRUCK_14900 {caseNum2} 1 {caseLabel2} @TRUCK_14752 {caseNum3} 2 {caseLabel3} @TRUCK_14789 {caseNum4} 3 {caseLabel4} @TRUCK_14826 {caseNum5} 4 {caseLabel5} @TRUCK_14863 {caseNum6} -1 {caseLabel6} @TRUCK_14944 {caseNum7} -1 {caseLabel7} @TRUCK_14944

:TRUCK_14752
102@ = 613.75
103@ = 1692.39
104@ = 101.0
goto @TRUCK_14944

:TRUCK_14789
102@ = 620.35
103@ = 1249.328
104@ = 101.0
goto @TRUCK_14944

:TRUCK_14826
102@ = -533.24
103@ = 1995.917
104@ = 101.0
goto @TRUCK_14944

:TRUCK_14863
102@ = 325.05
103@ = 2543.29
104@ = 101.0
goto @TRUCK_14944

:TRUCK_14900
102@ = 246.56
103@ = 1435.1899
104@ = 101.0
35@ = 0
goto @TRUCK_14944

:TRUCK_14944
if 
  34@ == 5
goto_if_false @TRUCK_15180
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15136 {caseNum1} 0 {caseLabel1} @TRUCK_15136 {caseNum2} 1 {caseLabel2} @TRUCK_15025 {caseNum3} 2 {caseLabel3} @TRUCK_15062 {caseNum4} 3 {caseLabel4} @TRUCK_15099 {caseNum5} -1 {caseLabel5} @TRUCK_15180 {caseNum6} -1 {caseLabel6} @TRUCK_15180 {caseNum7} -1 {caseLabel7} @TRUCK_15180

:TRUCK_15025
102@ = -2629.0911
103@ = 1387.42
104@ = 101.0
goto @TRUCK_15180

:TRUCK_15062
102@ = -1530.776
103@ = 487.201
104@ = 101.0
goto @TRUCK_15180

:TRUCK_15099
102@ = -1745.08
103@ = 27.759
104@ = 101.0
goto @TRUCK_15180

:TRUCK_15136
102@ = -1549.859
103@ = -434.86
104@ = 101.0068
35@ = 0
goto @TRUCK_15180

:TRUCK_15180
clear_area 102@ {y} 103@ {z} 104@ {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 0.0
set_char_coordinates $scplayer {x} 102@ {y} 103@ {z} -101.0
set_camera_behind_player 
return 

:TRUCK_15228
43@ += 1
if 
  43@ > 9
goto_if_false @TRUCK_15260
43@ = 0

:TRUCK_15260
return 

:TRUCK_15262
44@ = get_game_timer 
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TRUCK_15301
36@ += 1
37@ = 0
TIMERA = 0
TIMERB = 0
return 

:TRUCK_15331
return 

:TRUCK_15333
if 
  not is_player_playing $player1
goto_if_false @TRUCK_15360
wait 0
goto @TRUCK_15333

:TRUCK_15360
set_player_control $player1 {state} False
wait 1000
do_fade 1000 {direction} Fade.Out

:TRUCK_15379
if 
  get_fading_status 
goto_if_false @TRUCK_15403
wait 0
goto @TRUCK_15379

:TRUCK_15403
gosub @TRUCK_15570
gosub @TRUCK_15636
gosub @TRUCK_16282
clear_area $truckX {y} $truckY {z} $truckZ {radius} 100.0 {clearParticles} True
load_scene $truckX {y} $truckY {z} $truckZ
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_car_density_multiplier 0.0
gosub @TRUCK_7746
wait 2000
draw_oddjob_title_before_fade True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:TRUCK_15523
if 
  get_fading_status 
goto_if_false @TRUCK_15547
wait 0
goto @TRUCK_15523

:TRUCK_15547
set_player_control $player1 {state} True
89@ = 0
gosub @TRUCK_15301
return 

:TRUCK_15570
97@ = generate_random_int_in_range 0 {max} 3
97@ += 1
if 
  97@ == 1
goto_if_false @TRUCK_15618
96@ = 1
goto @TRUCK_15634

:TRUCK_15618
96@ = generate_random_int_in_range 1 {max} 4
96@ += 1

:TRUCK_15634
return 

:TRUCK_15636
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15735 {caseNum1} 1 {caseLabel1} @TRUCK_15699 {caseNum2} 2 {caseLabel2} @TRUCK_15711 {caseNum3} 3 {caseLabel3} @TRUCK_15723 {caseNum4} -1 {caseLabel4} @TRUCK_15750 {caseNum5} -1 {caseLabel5} @TRUCK_15750 {caseNum6} -1 {caseLabel6} @TRUCK_15750 {caseNum7} -1 {caseLabel7} @TRUCK_15750

:TRUCK_15699
request_model 514
goto @TRUCK_15750

:TRUCK_15711
request_model 403
goto @TRUCK_15750

:TRUCK_15723
request_model 515
goto @TRUCK_15750

:TRUCK_15735
write_debug "UNKNOWN_CAB"

:TRUCK_15750
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15861 {caseNum1} 1 {caseLabel1} @TRUCK_15813 {caseNum2} 2 {caseLabel2} @TRUCK_15825 {caseNum3} 3 {caseLabel3} @TRUCK_15837 {caseNum4} 4 {caseLabel4} @TRUCK_15849 {caseNum5} -1 {caseLabel5} @TRUCK_15880 {caseNum6} -1 {caseLabel6} @TRUCK_15880 {caseNum7} -1 {caseLabel7} @TRUCK_15880

:TRUCK_15813
request_model 584
goto @TRUCK_15880

:TRUCK_15825
request_model 435
goto @TRUCK_15880

:TRUCK_15837
request_model 450
goto @TRUCK_15880

:TRUCK_15849
request_model 591
goto @TRUCK_15880

:TRUCK_15861
write_debug "UNKNOWN_TRAILER"

:TRUCK_15880
load_all_models_now 
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16047 {caseNum1} 1 {caseLabel1} @TRUCK_15945 {caseNum2} 2 {caseLabel2} @TRUCK_15979 {caseNum3} 3 {caseLabel3} @TRUCK_16013 {caseNum4} -1 {caseLabel4} @TRUCK_16062 {caseNum5} -1 {caseLabel5} @TRUCK_16062 {caseNum6} -1 {caseLabel6} @TRUCK_16062 {caseNum7} -1 {caseLabel7} @TRUCK_16062

:TRUCK_15945
if 
  not has_model_loaded 514
goto_if_false @TRUCK_15972
wait 0
goto @TRUCK_15945

:TRUCK_15972
goto @TRUCK_16062

:TRUCK_15979
if 
  not has_model_loaded 403
goto_if_false @TRUCK_16006
wait 0
goto @TRUCK_15979

:TRUCK_16006
goto @TRUCK_16062

:TRUCK_16013
if 
  not has_model_loaded 515
goto_if_false @TRUCK_16040
wait 0
goto @TRUCK_16013

:TRUCK_16040
goto @TRUCK_16062

:TRUCK_16047
write_debug "UNKNOWN_CAB"

:TRUCK_16062
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16261 {caseNum1} 1 {caseLabel1} @TRUCK_16125 {caseNum2} 2 {caseLabel2} @TRUCK_16159 {caseNum3} 3 {caseLabel3} @TRUCK_16193 {caseNum4} 4 {caseLabel4} @TRUCK_16227 {caseNum5} -1 {caseLabel5} @TRUCK_16280 {caseNum6} -1 {caseLabel6} @TRUCK_16280 {caseNum7} -1 {caseLabel7} @TRUCK_16280

:TRUCK_16125
if 
  not has_model_loaded 584
goto_if_false @TRUCK_16152
wait 0
goto @TRUCK_16125

:TRUCK_16152
goto @TRUCK_16280

:TRUCK_16159
if 
  not has_model_loaded 435
goto_if_false @TRUCK_16186
wait 0
goto @TRUCK_16159

:TRUCK_16186
goto @TRUCK_16280

:TRUCK_16193
if 
  not has_model_loaded 450
goto_if_false @TRUCK_16220
wait 0
goto @TRUCK_16193

:TRUCK_16220
goto @TRUCK_16280

:TRUCK_16227
if 
  not has_model_loaded 591
goto_if_false @TRUCK_16254
wait 0
goto @TRUCK_16227

:TRUCK_16254
goto @TRUCK_16280

:TRUCK_16261
write_debug "UNKNOWN_TRAILER"

:TRUCK_16280
return 

:TRUCK_16282
return 

:TRUCK_16284
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
switch_start 89@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_16478 {caseNum1} 1 {caseLabel1} @TRUCK_16363 {caseNum2} 2 {caseLabel2} @TRUCK_16386 {caseNum3} 3 {caseLabel3} @TRUCK_16409 {caseNum4} 4 {caseLabel4} @TRUCK_16432 {caseNum5} 5 {caseLabel5} @TRUCK_16455 {caseNum6} -1 {caseLabel6} @TRUCK_16478 {caseNum7} -1 {caseLabel7} @TRUCK_16478

:TRUCK_16363
print_now 'TRK_F1' {time} 5000 {flag} 1
goto @TRUCK_16478

:TRUCK_16386
print_now 'TRK_F2' {time} 5000 {flag} 1
goto @TRUCK_16478

:TRUCK_16409
print_now 'TRK_F3' {time} 5000 {flag} 1
goto @TRUCK_16478

:TRUCK_16432
print_now 'TRK_F4' {time} 5000 {flag} 1
goto @TRUCK_16478

:TRUCK_16455
print_now 'TRK_F5' {time} 5000 {flag} 1
goto @TRUCK_16478

:TRUCK_16478
return 

:TRUCK_16480
gosub @TRUCK_7454
print_with_number_big 'M_PASS' {num} 83@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 83@
clear_onscreen_counter $g_nTruckMissionsPassed
$gym_lv_defeated += 1
if 
  $gym_lv_defeated == 1
goto_if_false @TRUCK_16567
print_now 'TRK_P1' {time} 5000 {flag} 1
goto @TRUCK_16669

:TRUCK_16567
if 
  $gym_lv_defeated == 8
goto_if_false @TRUCK_16650
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_16627
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
$done_truck_progress = 1
114@ = 1

:TRUCK_16627
print_big 'TRK_P4' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TRUCK_16669

:TRUCK_16650
print_with_number_now 'TRK_P3' {num} $gym_lv_defeated {duration} 5000 {flag} 1

:TRUCK_16669
increment_int_stat_no_message StatId.TruckMissionsPassed {value} 1
increment_int_stat_no_message StatId.TruckMoneyMade {value} 83@
return 

:TRUCK_16686
clear_wanted_level $player1
return 

:TRUCK_16693
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
remove_blip 77@
remove_blip 76@
remove_blip 78@
remove_blip 79@
clear_onscreen_counter $g_nTruckMissionsPassed
clear_onscreen_counter $g_Truck_cashKM
clear_onscreen_timer $g_Truck_damageKM
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 403
mark_model_as_no_longer_needed 515
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 435
mark_model_as_no_longer_needed 450
mark_model_as_no_longer_needed 591
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
$timer_mobile_start = get_game_timer 
draw_oddjob_title_before_fade True
$flag_player_on_oddjob = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 118---------------
// Originally: Quarry

:QUARRY
script_name 'QUARRY'
gosub @QUARRY_47
if 
  has_deatharrest_been_executed 
goto_if_false @QUARRY_38
gosub @QUARRY_25912

:QUARRY_38
gosub @QUARRY_27546
terminate_this_script 

:QUARRY_47
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_67
register_mission_given 

:QUARRY_67
$onmission = 1
$flag_player_on_oddjob = 1
82@ = 0
83@ = 0
84@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
230@ = 0
231@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
238@ = 0
239@ = 0
240@ = 0
241@ = 0
242@ = 0
243@ = 0
251@ = 0
252@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
282@ = 0
283@ = 0
284@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
if 
  34@ == -99
goto_if_false @QUARRY_1311
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
86@ = create_car 468 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_car 486 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_car 406 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 523 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_car 406 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.CivMale {modelId} 18 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object #DEAD_TIED_COP {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0
121@ = create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:QUARRY_679
create_object #DYN_QUARRYROCK03 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 94@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_679
48@ = 0

:QUARRY_734
create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 101@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_734
48@ = 0

:QUARRY_789
create_object #DEAD_TIED_COP {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 111@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_789
48@ = 0

:QUARRY_844
create_object #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 114@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_844
90@ = create_mission_train 11 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False
48@ = 0

:QUARRY_923
create_checkpoint CheckpointType.Tube {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0 {var_handle} 190@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_923
48@ = 0

:QUARRY_997
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 122@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_997
197@ = create_checkpoint CheckpointType.Tube {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0
125@ = add_blip_for_car 87@
126@ = add_blip_for_car 88@
130@ = add_blip_for_car 89@
141@ = add_blip_for_car 90@
152@ = add_blip_for_car 91@
127@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
128@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
131@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
132@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
129@ = add_blip_for_object 92@
140@ = add_blip_for_object 101@
48@ = 0

:QUARRY_1230
add_blip_for_object 94@(48@,7i) {var_handle} 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_1230
48@ = 0

:QUARRY_1274
add_blip_for_object 101@(48@,10i) {var_handle} 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_1274

:QUARRY_1311
load_mission_text 'QUARRY'
if 
  not is_char_dead $scplayer
goto_if_false @QUARRY_1424
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @QUARRY_1424
print_now 'VAL_C1' {time} 5000 {flag} 1
set_char_coordinates $scplayer {x} 827.9296 {y} 857.7913 {z} 11.311
set_char_heading $scplayer {heading} 120.0
set_camera_behind_player 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
draw_oddjob_title_before_fade True
return 

:QUARRY_1424
gosub @QUARRY_21090

:QUARRY_1431
wait 0
if and
  34@ <> 18
  34@ <> 19
goto_if_false @QUARRY_1701
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @QUARRY_1525
set_lvar_int_to_var_int 50@ = $g_Quarry_damageKM($8170,7i)
50@ *= 1000
set_lvar_int_to_lvar_int 206@ = 46@
sub_int_lvar_from_int_lvar 206@ -= 50@
36@ = 1
goto @QUARRY_2224

:QUARRY_1525
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_1701
if 
  292@ == 1
goto_if_false @QUARRY_1677
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @QUARRY_1670
38@ = 1
print_now 'QUAR_37' {time} 5000 {flag} 1
print_big 'SKIPPED' {time} 5000 {style} TextStyle.MiddleSmallerHigher
$8170 += 1
if 
  $8170 == 7
goto_if_false @QUARRY_1649
$8170 = 0

:QUARRY_1649
switch_car_generator $flag_1st_time_nitro_shop {amount} 101
switch_car_generator $gen_car1 {amount} 101
goto @QUARRY_2224

:QUARRY_1670
goto @QUARRY_1701

:QUARRY_1677
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @QUARRY_1701
292@ = 1

:QUARRY_1701
gosub @QUARRY_20409
gosub @QUARRY_20898
if or
  38@ == 1
  39@ == 1
goto_if_false @QUARRY_1747
goto @QUARRY_2224

:QUARRY_1747
gosub @QUARRY_20987
gosub @QUARRY_21021
if 
  is_char_dead $scplayer
goto_if_false @QUARRY_1791
37@ = 1
goto @QUARRY_2224

:QUARRY_1791
if 
  34@ == 0
goto_if_false @QUARRY_1849
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:QUARRY_1849
switch_start 34@ {numCases} 19 {hasDefaultCase} 0 {defaultLabel} @QUARRY_2224 {caseNum1} 1 {caseLabel1} @QUARRY_2126 {caseNum2} 2 {caseLabel2} @QUARRY_2140 {caseNum3} 3 {caseLabel3} @QUARRY_2154 {caseNum4} 4 {caseLabel4} @QUARRY_2182 {caseNum5} 5 {caseLabel5} @QUARRY_2042 {caseNum6} 6 {caseLabel6} @QUARRY_2182 {caseNum7} 7 {caseLabel7} @QUARRY_2056
switch_continued 8 {caseLabel1} @QUARRY_2182 {caseNum2} 9 {caseLabel2} @QUARRY_2070 {caseNum3} 10 {caseLabel3} @QUARRY_2084 {caseNum4} 11 {caseLabel4} @QUARRY_2182 {caseNum5} 12 {caseLabel5} @QUARRY_2098 {caseNum6} 13 {caseLabel6} @QUARRY_2182 {caseNum7} 14 {caseLabel7} @QUARRY_2112 {caseNum8} 15 {caseLabel8} @QUARRY_2182 {caseNum9} 16 {caseLabel9} @QUARRY_2168
switch_continued 17 {caseLabel1} @QUARRY_2182 {caseNum2} 18 {caseLabel2} @QUARRY_2196 {caseNum3} 19 {caseLabel3} @QUARRY_2210 {caseNum4} -1 {caseLabel4} @QUARRY_2224 {caseNum5} -1 {caseLabel5} @QUARRY_2224 {caseNum6} -1 {caseLabel6} @QUARRY_2224 {caseNum7} -1 {caseLabel7} @QUARRY_2224 {caseNum8} -1 {caseLabel8} @QUARRY_2224 {caseNum9} -1 {caseLabel9} @QUARRY_2224

:QUARRY_2042
gosub @QUARRY_6252
goto @QUARRY_2224

:QUARRY_2056
gosub @QUARRY_8986
goto @QUARRY_2224

:QUARRY_2070
gosub @QUARRY_11447
goto @QUARRY_2224

:QUARRY_2084
gosub @QUARRY_11875
goto @QUARRY_2224

:QUARRY_2098
gosub @QUARRY_13354
goto @QUARRY_2224

:QUARRY_2112
gosub @QUARRY_15693
goto @QUARRY_2224

:QUARRY_2126
gosub @QUARRY_2425
goto @QUARRY_2224

:QUARRY_2140
gosub @QUARRY_3641
goto @QUARRY_2224

:QUARRY_2154
gosub @QUARRY_4711
goto @QUARRY_2224

:QUARRY_2168
gosub @QUARRY_17197
goto @QUARRY_2224

:QUARRY_2182
36@ = 1
goto @QUARRY_2224

:QUARRY_2196
gosub @QUARRY_18899
goto @QUARRY_2224

:QUARRY_2210
38@ = 1
goto @QUARRY_2224

:QUARRY_2224
if 
  38@ == 0
goto_if_false @QUARRY_2377
if 
  37@ == 0
goto_if_false @QUARRY_2361
if 
  36@ == 0
goto_if_false @QUARRY_2292
goto @QUARRY_1431
goto @QUARRY_2354

:QUARRY_2292
gosub @QUARRY_26382
if 
  295@ == 1
goto_if_false @QUARRY_2352
36@ = 0
34@ = 18
35@ = 0
295@ = 0
goto @QUARRY_1431

:QUARRY_2352
return 

:QUARRY_2354
goto @QUARRY_2370

:QUARRY_2361
gosub @QUARRY_25912
return 

:QUARRY_2370
goto @QUARRY_2379

:QUARRY_2377
return 

:QUARRY_2379
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:QUARRY_2425
if 
  is_car_dead 87@
goto_if_false @QUARRY_2457
37@ = 1
45@ = 1
return 

:QUARRY_2457
if 
  is_car_dead 88@
goto_if_false @QUARRY_2489
37@ = 1
45@ = 2
return 

:QUARRY_2489
if 
  not is_car_dead 89@
goto_if_false @QUARRY_2513
set_car_health 89@ {health} 10000

:QUARRY_2513
if 
  35@ == 0
goto_if_false @QUARRY_2722
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
230@ = 0
233@ = 0
234@ = 0
282@ = 0
212@ = 672.7664
213@ = 888.3682
214@ = -41.3985
print_now 'QUAR_00' {time} 10000 {flag} 1
50@ = 7
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D1'
set_lvar_int_to_lvar_int 206@ = 46@
if 
  not is_car_dead 89@
goto_if_false @QUARRY_2701
set_vehicle_is_considered_by_player 89@ {state} False

:QUARRY_2701
winch_can_pick_vehicle_up 88@ {state} False
winch_can_pick_vehicle_up 87@ {state} False
35@ += 1

:QUARRY_2722
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_2756
37@ = 1
45@ = 4
return 

:QUARRY_2756
if 
  35@ == 1
goto_if_false @QUARRY_2819
if 
  230@ == 1
goto_if_false @QUARRY_2819
remove_blip 128@
remove_blip 125@
remove_blip 129@
remove_blip 130@
35@ = 99

:QUARRY_2819
if 
  230@ == 0
goto_if_false @QUARRY_3030
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_2968
if 
  does_blip_exist 125@
goto_if_false @QUARRY_2961
remove_blip 125@
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
clear_this_print 'QUAR_35'
if 
  234@ == 0
goto_if_false @QUARRY_2928
129@ = add_blip_for_object 92@

:QUARRY_2928
if 
  233@ == 0
goto_if_false @QUARRY_2961
130@ = add_blip_for_car 89@
change_blip_colour 130@ {color} BlipColor.Green

:QUARRY_2961
goto @QUARRY_3030

:QUARRY_2968
if 
  not does_blip_exist 125@
goto_if_false @QUARRY_3030
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
remove_blip 128@
remove_blip 129@
remove_blip 130@
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_3030
if 
  232@ == 0
goto_if_false @QUARRY_3098
if or
  is_char_in_car $scplayer {vehicle} 89@
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_3098
232@ = 1
print_now 'QUAR_02' {time} 7000 {flag} 1

:QUARRY_3098
if 
  230@ == 0
goto_if_false @QUARRY_3614
if 
  233@ == 0
goto_if_false @QUARRY_3279
if 
  locate_car_3d 89@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} 232@
goto_if_false @QUARRY_3279
if 
  locate_car_3d 89@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3279
233@ = 1
remove_blip 130@
freeze_car_position 89@ {state} True
set_car_collision 89@ {state} False
if 
  234@ == 0
goto_if_false @QUARRY_3279
print_now 'QUAR_03' {time} 5000 {flag} 1

:QUARRY_3279
if 
  234@ == 0
goto_if_false @QUARRY_3559
if 
  233@ == 1
goto_if_false @QUARRY_3433
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} 232@
goto_if_false @QUARRY_3426
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3426
234@ = 1
remove_blip 129@
freeze_object_position 92@ {state} True
set_object_collision 92@ {state} False

:QUARRY_3426
goto @QUARRY_3559

:QUARRY_3433
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3559
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3559
234@ = 1
remove_blip 129@
freeze_object_position 92@ {state} True
set_object_collision 92@ {state} False
print_now 'QUAR_04' {time} 5000 {flag} 1

:QUARRY_3559
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_3614
230@ = 1
print_now 'QUAR_05' {time} 5000 {flag} 1
282@ = 1

:QUARRY_3614
if 
  35@ == 99
goto_if_false @QUARRY_3639
gosub @QUARRY_21060

:QUARRY_3639
return 

:QUARRY_3641
if 
  is_car_dead 87@
goto_if_false @QUARRY_3673
37@ = 1
45@ = 1
return 

:QUARRY_3673
if 
  is_car_dead 88@
goto_if_false @QUARRY_3705
37@ = 1
45@ = 2
return 

:QUARRY_3705
if 
  not is_car_dead 89@
goto_if_false @QUARRY_3729
set_car_health 89@ {health} 10000

:QUARRY_3729
if 
  35@ == 0
goto_if_false @QUARRY_3809
231@ = 0
233@ = 0
234@ = 0
127@ = add_blip_for_coord 705.1055 {y} 916.3154 {z} -19.6407
set_blip_as_friendly 127@ {state} True
240@ = 1
35@ += 1

:QUARRY_3809
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_3843
37@ = 1
45@ = 4
return 

:QUARRY_3843
if 
  35@ == 1
goto_if_false @QUARRY_3898
if 
  231@ == 1
goto_if_false @QUARRY_3898
remove_blip 126@
set_car_heavy 88@ {state} True
35@ = 99

:QUARRY_3898
if 
  not is_object_attached 93@
goto_if_false @QUARRY_3952
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_3952
if 
  231@ == 0
goto_if_false @QUARRY_4503
59@, 60@, 61@ = get_object_coordinates 93@
53@, 54@, 55@ = grab_entity_on_rope_for_object $quarry_stand
if 
  234@ == 0
goto_if_false @QUARRY_4143
if 
  locate_object_3d 92@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_4136
if 
  is_object_attached 92@
goto_if_false @QUARRY_4136
if 
  not is_int_lvar_equal_to_int_lvar 55@ == 92@
goto_if_false @QUARRY_4114
234@ = 1
winch_can_pick_object_up 92@ {state} False
goto @QUARRY_4136

:QUARRY_4114
detach_object 92@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_4136
goto @QUARRY_4238

:QUARRY_4143
if 
  not is_object_attached 92@
goto_if_false @QUARRY_4238
59@, 60@, 61@ = get_object_coordinates 92@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4238
234@ = 0
winch_can_pick_object_up 92@ {state} True

:QUARRY_4238
if 
  233@ == 0
goto_if_false @QUARRY_4376
if 
  locate_stopped_car_3d 89@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_4369
if 
  not is_int_lvar_equal_to_int_lvar 53@ == 89@
goto_if_false @QUARRY_4369
attach_car_to_car 89@ {handle} 88@ {xOffset} -1000.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
233@ = 1
winch_can_pick_vehicle_up 89@ {state} False

:QUARRY_4369
goto @QUARRY_4471

:QUARRY_4376
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_4471
59@, 60@, 61@ = get_car_coordinates 89@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4471
233@ = 0
winch_can_pick_vehicle_up 89@ {state} True

:QUARRY_4471
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_4503
231@ = 1

:QUARRY_4503
if 
  240@ == 1
goto_if_false @QUARRY_4612
if 
  locate_char_any_means_3d $scplayer {x} 705.1055 {y} 916.3154 {z} -19.6407 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @QUARRY_4612
remove_blip 127@
240@ = 0
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_06' {time} 7000 {flag} 1

:QUARRY_4612
if 
  282@ == 1
goto_if_false @QUARRY_4684
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_4684
freeze_object_position 92@ {state} False
set_object_collision 92@ {state} True
freeze_car_position 89@ {state} False
set_car_collision 89@ {state} True
282@ = 0

:QUARRY_4684
if 
  35@ == 99
goto_if_false @QUARRY_4709
gosub @QUARRY_21060

:QUARRY_4709
return 

:QUARRY_4711
if 
  is_car_dead 88@
goto_if_false @QUARRY_4743
37@ = 1
45@ = 2
return 

:QUARRY_4743
if 
  not is_car_dead 89@
goto_if_false @QUARRY_4767
set_car_health 89@ {health} 10000

:QUARRY_4767
if 
  35@ == 0
goto_if_false @QUARRY_4894
212@ = 985.1581
213@ = 688.4734
214@ = 8.7255
gosub @QUARRY_19761
236@ = 0
235@ = 0
242@ = 0
280@ = 0
281@ = 0
284@ = 0
172@ = 0
print_now 'QUAR_07' {time} 5000 {flag} 1
35@ += 1

:QUARRY_4894
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_4928
37@ = 1
45@ = 4
return 

:QUARRY_4928
if 
  235@ == 0
goto_if_false @QUARRY_5136
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_5041
59@, 60@, 61@ = get_car_coordinates 89@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5041
37@ = 1
45@ = 3

:QUARRY_5041
if 
  not is_object_attached 92@
goto_if_false @QUARRY_5136
59@, 60@, 61@ = get_object_coordinates 92@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5136
37@ = 1
45@ = 3

:QUARRY_5136
if 
  35@ == 1
goto_if_false @QUARRY_5208
if 
  236@ == 1
goto_if_false @QUARRY_5208
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_5208
remove_blip 128@
delete_checkpoint 197@
35@ = 99

:QUARRY_5208
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_5373
if 
  does_blip_exist 126@
goto_if_false @QUARRY_5359
remove_blip 126@
clear_this_print 'QUAR_36'
if 
  238@ == 1
goto_if_false @QUARRY_5291
gosub @QUARRY_19761
goto @QUARRY_5359

:QUARRY_5291
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = create_checkpoint CheckpointType.Tube {x} 212@ {y} 75@ {z} 214@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0

:QUARRY_5359
284@ = 1
goto @QUARRY_5453

:QUARRY_5373
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_5453
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
remove_blip 128@
delete_checkpoint 197@
remove_blip 131@
if 
  284@ == 1
goto_if_false @QUARRY_5453
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_5453
if 
  242@ == 0
goto_if_false @QUARRY_5513
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_5513
print_now 'QUAR_08' {time} 7000 {flag} 1
242@ = 1

:QUARRY_5513
if 
  does_blip_exist 131@
goto_if_false @QUARRY_5698
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
if 
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
goto_if_false @QUARRY_5698
remove_blip 131@
238@ = 0
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = create_checkpoint CheckpointType.Tube {x} 212@ {y} 75@ {z} 214@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0
print_now 'QUAR_09' {time} 5000 {flag} 1

:QUARRY_5698
if 
  235@ == 0
goto_if_false @QUARRY_5790
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 50.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @QUARRY_5783
235@ = 1
print_help 'QUAR_H4'
goto @QUARRY_5790

:QUARRY_5783
235@ = 0

:QUARRY_5790
if 
  235@ == 1
goto_if_false @QUARRY_5913
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.05
goto_if_false @QUARRY_5913
if 
  is_vehicle_attached 89@
goto_if_false @QUARRY_5875
detach_car 89@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_5875
if 
  is_object_attached 92@
goto_if_false @QUARRY_5913
detach_object 92@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_5913
if 
  280@ == 0
goto_if_false @QUARRY_5954
if 
  is_car_in_water 89@
goto_if_false @QUARRY_5954
280@ = 1

:QUARRY_5954
if 
  281@ == 0
goto_if_false @QUARRY_5995
if 
  is_object_in_water 92@
goto_if_false @QUARRY_5995
281@ = 1

:QUARRY_5995
if 
  236@ == 0
goto_if_false @QUARRY_6061
if and
  280@ == 1
  281@ == 1
goto_if_false @QUARRY_6061
236@ = 1
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000

:QUARRY_6061
if 
  not is_object_attached 93@
goto_if_false @QUARRY_6115
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_6115
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_6225
59@, 60@, 61@ = get_object_coordinates 93@
if 
  locate_stopped_car_3d 89@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_6225
attach_car_to_car 89@ {handle} 88@ {xOffset} -1000.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_6225
if 
  35@ == 99
goto_if_false @QUARRY_6250
gosub @QUARRY_21060

:QUARRY_6250
return 

:QUARRY_6252
if 
  is_car_dead 87@
goto_if_false @QUARRY_6284
37@ = 1
45@ = 1
return 

:QUARRY_6284
if 
  35@ == 0
goto_if_false @QUARRY_6462
199@ = 0
48@ = 0

:QUARRY_6316
244@(48@,7i) = 0
285@(48@,7i) = 0
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6316
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_11' {time} 10000 {flag} 1
50@ = 1
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D2'
set_lvar_int_to_lvar_int 206@ = 46@
243@ = 0
35@ += 1

:QUARRY_6462
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_6496
37@ = 1
45@ = 5
return 

:QUARRY_6496
if 
  35@ == 1
goto_if_false @QUARRY_6539
if 
  199@ == 7
goto_if_false @QUARRY_6539
35@ = 99

:QUARRY_6539
if 
  does_blip_exist 125@
goto_if_false @QUARRY_6663
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_6656
remove_blip 125@
clear_this_print 'QUAR_35'
48@ = 0

:QUARRY_6597
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_6635
add_blip_for_object 94@(48@,7i) {var_handle} 133@(48@,7i)

:QUARRY_6635
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6597

:QUARRY_6656
goto @QUARRY_8899

:QUARRY_6663
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_6757
48@ = 0

:QUARRY_6689
remove_blip 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6689
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1
goto @QUARRY_8899

:QUARRY_6757
59@, 60@, 61@ = get_char_coordinates $scplayer
48@ = 0

:QUARRY_6778
80@ = 0
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_8878
switch_start 48@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_8662 {caseNum1} 0 {caseLabel1} @QUARRY_6870 {caseNum2} 1 {caseLabel2} @QUARRY_7126 {caseNum3} 2 {caseLabel3} @QUARRY_7382 {caseNum4} 3 {caseLabel4} @QUARRY_7638 {caseNum5} 4 {caseLabel5} @QUARRY_7894 {caseNum6} 5 {caseLabel6} @QUARRY_8150 {caseNum7} 6 {caseLabel7} @QUARRY_8406

:QUARRY_6870
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7077
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7011
create_checkpoint CheckpointType.Tube {x} 762.119 {y} 836.6474 {z} -3.4382 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7011
if 
  locate_object_3d 94@(48@,7i) {x} 762.119 {y} 836.6474 {z} -5.4382 {xRadius} 15.0 {yRadius} 35.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7070
80@ = 1

:QUARRY_7070
goto @QUARRY_7119

:QUARRY_7077
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7119
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7119
goto @QUARRY_8680

:QUARRY_7126
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  50.0 > 78@
goto_if_false @QUARRY_7333
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7267
create_checkpoint CheckpointType.Tube {x} 735.8682 {y} 933.0437 {z} -4.3942 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7267
if 
  locate_object_3d 94@(48@,7i) {x} 735.8682 {y} 933.0437 {z} -4.3942 {xRadius} 20.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7326
80@ = 1

:QUARRY_7326
goto @QUARRY_7375

:QUARRY_7333
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7375
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7375
goto @QUARRY_8680

:QUARRY_7382
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7589
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7523
create_checkpoint CheckpointType.Tube {x} 518.9683 {y} 967.7642 {z} -25.891 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7523
if 
  locate_object_3d 94@(48@,7i) {x} 518.9683 {y} 967.7642 {z} -17.891 {xRadius} 45.0 {yRadius} 20.0 {zRadius} 9.0 {drawSphere} False
goto_if_false @QUARRY_7582
80@ = 1

:QUARRY_7582
goto @QUARRY_7631

:QUARRY_7589
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7631
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7631
goto @QUARRY_8680

:QUARRY_7638
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7845
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7779
create_checkpoint CheckpointType.Tube {x} 671.3267 {y} 941.1938 {z} -29.338 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7779
if 
  locate_object_3d 94@(48@,7i) {x} 671.3267 {y} 941.1938 {z} -29.338 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7838
80@ = 1

:QUARRY_7838
goto @QUARRY_7887

:QUARRY_7845
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7887
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7887
goto @QUARRY_8680

:QUARRY_7894
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_8101
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8035
create_checkpoint CheckpointType.Tube {x} 523.2235 {y} 907.1995 {z} -43.4101 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8035
if 
  locate_object_3d 94@(48@,7i) {x} 523.2235 {y} 907.1995 {z} -40.4101 {xRadius} 35.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_8094
80@ = 1

:QUARRY_8094
goto @QUARRY_8143

:QUARRY_8101
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8143
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8143
goto @QUARRY_8680

:QUARRY_8150
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_8357
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8291
create_checkpoint CheckpointType.Tube {x} 536.8022 {y} 838.0778 {z} -38.2296 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8291
if 
  locate_object_3d 94@(48@,7i) {x} 536.8022 {y} 838.0778 {z} -38.2296 {xRadius} 25.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_8350
80@ = 1

:QUARRY_8350
goto @QUARRY_8399

:QUARRY_8357
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8399
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8399
goto @QUARRY_8680

:QUARRY_8406
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  50.0 > 78@
goto_if_false @QUARRY_8613
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8547
create_checkpoint CheckpointType.Tube {x} 645.2571 {y} 773.7028 {z} -28.2457 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8547
if 
  locate_object_3d 94@(48@,7i) {x} 645.2571 {y} 773.7028 {z} -26.2457 {xRadius} 35.0 {yRadius} 20.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @QUARRY_8606
80@ = 1

:QUARRY_8606
goto @QUARRY_8655

:QUARRY_8613
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8655
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8655
goto @QUARRY_8680

:QUARRY_8662
write_debug "TOO_MANY_ROCKS"

:QUARRY_8680
if 
  80@ == 1
goto_if_false @QUARRY_8878
remove_blip 133@(48@,7i)
delete_object 94@(48@,7i)
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8758
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8758
244@(48@,7i) = 1
199@ += 1
50@ = 7
sub_int_lvar_from_int_lvar 50@ -= 199@
if 
  50@ <> 0
goto_if_false @QUARRY_8878
if 
  199@ == 1
goto_if_false @QUARRY_8856
print_with_2_numbers_now 'QUAR_14' {num1} 199@ {num2} 50@ {duration} 5000 {style} TextStyle.Middle
goto @QUARRY_8878

:QUARRY_8856
print_with_2_numbers_now 'QUAR_13' {num1} 199@ {num2} 50@ {duration} 5000 {style} TextStyle.Middle

:QUARRY_8878
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6778

:QUARRY_8899
if 
  243@ == 0
goto_if_false @QUARRY_8959
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_8959
print_now 'QUAR_12' {time} 7000 {flag} 1
243@ = 1

:QUARRY_8959
if 
  35@ == 99
goto_if_false @QUARRY_8984
gosub @QUARRY_21060

:QUARRY_8984
return 

:QUARRY_8986
if 
  is_car_dead 87@
goto_if_false @QUARRY_9018
37@ = 1
45@ = 1
return 

:QUARRY_9018
if 
  35@ == 0
goto_if_false @QUARRY_9242
204@ = 0
48@ = 0

:QUARRY_9050
253@(48@,4i) = 0
257@(48@,4i) = 0
178@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9050
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_15' {time} 10000 {flag} 1
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 174@
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D3'
set_lvar_int_to_lvar_int 206@ = 46@
48@ = 0

:QUARRY_9174
add_int_lvar_to_int_lvar 174@(48@,4i) += 46@
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9174
251@ = 0
252@ = 0
261@ = 0
243@ = 0
35@ += 1

:QUARRY_9242
if 
  35@ == 1
goto_if_false @QUARRY_9408
if 
  252@ == 1
goto_if_false @QUARRY_9408
59@, 60@, 61@ = get_char_coordinates $scplayer
50@ = 4
50@ -= 1
62@, 63@, 64@ = get_object_coordinates 101@(50@,10i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  78@ > 20.0
goto_if_false @QUARRY_9408
add_explosion 62@ {y} 63@ {z} 64@ {type} ExplosionType.Aircraft
delete_object 101@(50@,10i)
253@(50@,4i) = 1
35@ = 99

:QUARRY_9408
if 
  does_blip_exist 125@
goto_if_false @QUARRY_9466
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_9459
remove_blip 125@
clear_this_print 'QUAR_35'

:QUARRY_9459
goto @QUARRY_9533

:QUARRY_9466
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_9533
remove_blip 140@
remove_blip 128@
251@ = 0
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_9533
if 
  252@ == 0
goto_if_false @QUARRY_10787
80@ = 0
switch_start 204@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @QUARRY_10048 {caseNum1} 0 {caseLabel1} @QUARRY_9621 {caseNum2} 1 {caseLabel2} @QUARRY_9687 {caseNum3} 2 {caseLabel3} @QUARRY_9916 {caseNum4} 3 {caseLabel4} @QUARRY_9982 {caseNum5} -1 {caseLabel5} @QUARRY_10067 {caseNum6} -1 {caseLabel6} @QUARRY_10067 {caseNum7} -1 {caseLabel7} @QUARRY_10067

:QUARRY_9621
if 
  locate_object_3d 101@(204@,10i) {x} 830.4274 {y} 889.852 {z} 12.3516 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9680
80@ = 1

:QUARRY_9680
goto @QUARRY_10067

:QUARRY_9687
if 
  261@ == 0
goto_if_false @QUARRY_9850
if 
  locate_object_3d 101@(204@,10i) {x} 678.5786 {y} 981.4282 {z} -13.749 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9764
80@ = 1

:QUARRY_9764
59@, 60@, 61@ = get_object_coordinates 101@(204@,10i)
if 
  -23.6787 > 61@
goto_if_false @QUARRY_9843
261@ = 1
remove_blip 140@
remove_blip 128@
251@ = 0
print_now 'QUAR_21' {time} 7000 {flag} 1

:QUARRY_9843
goto @QUARRY_9909

:QUARRY_9850
if 
  locate_object_3d 101@(204@,10i) {x} 660.666 {y} 913.719 {z} -41.4059 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9909
80@ = 1

:QUARRY_9909
goto @QUARRY_10067

:QUARRY_9916
if 
  locate_object_3d 101@(204@,10i) {x} 648.9208 {y} 916.257 {z} -42.2287 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9975
80@ = 1

:QUARRY_9975
goto @QUARRY_10067

:QUARRY_9982
if 
  locate_object_3d 101@(204@,10i) {x} 632.4524 {y} 810.3196 {z} -43.9609 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_10041
80@ = 1

:QUARRY_10041
goto @QUARRY_10067

:QUARRY_10048
write_debug "UNKNOWN_BOMB_ID"

:QUARRY_10067
if 
  80@ == 1
goto_if_false @QUARRY_10222
remove_blip 140@
remove_blip 128@
251@ = 0
261@ = 0
freeze_object_position 101@(204@,10i) {state} True
set_object_collision 101@(204@,10i) {state} False
set_lvar_int_to_lvar_int 50@ = 204@
50@ += 1
if 
  50@ == 4
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 51@ = 46@
51@ += 15000
if 
  is_int_lvar_greater_than_int_lvar 174@(204@,4i) > 51@
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 174@(204@,4i) = 51@

:QUARRY_10215
204@ += 1

:QUARRY_10222
if 
  204@ == 4
goto_if_false @QUARRY_10247
252@ = 1

:QUARRY_10247
if 
  80@ == 1
goto_if_false @QUARRY_10324
clear_onscreen_timer $g_nQuarryMissionsPassed
if 
  252@ == 0
goto_if_false @QUARRY_10324
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 174@(204@,4i)
sub_int_lvar_from_int_var $g_nQuarryMissionsPassed -= 46@
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D3'

:QUARRY_10324
if 
  80@ == 1
goto_if_false @QUARRY_10522
if 
  252@ == 1
goto_if_false @QUARRY_10383
print_now 'QUAR_20' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10383
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10522 {caseNum1} 0 {caseLabel1} @QUARRY_10446 {caseNum2} 1 {caseLabel2} @QUARRY_10453 {caseNum3} 2 {caseLabel3} @QUARRY_10476 {caseNum4} 3 {caseLabel4} @QUARRY_10499 {caseNum5} -1 {caseLabel5} @QUARRY_10522 {caseNum6} -1 {caseLabel6} @QUARRY_10522 {caseNum7} -1 {caseLabel7} @QUARRY_10522

:QUARRY_10446
goto @QUARRY_10522

:QUARRY_10453
print_now 'QUAR_17' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10476
print_now 'QUAR_18' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10499
print_now 'QUAR_34' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10522
if and
  251@ == 0
  252@ == 0
  not does_blip_exist 125@
goto_if_false @QUARRY_10787
140@ = add_blip_for_object 101@(204@,10i)
251@ = 1
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10787 {caseNum1} 0 {caseLabel1} @QUARRY_10634 {caseNum2} 1 {caseLabel2} @QUARRY_10661 {caseNum3} 2 {caseLabel3} @QUARRY_10733 {caseNum4} 3 {caseLabel4} @QUARRY_10760 {caseNum5} -1 {caseLabel5} @QUARRY_10787 {caseNum6} -1 {caseLabel6} @QUARRY_10787 {caseNum7} -1 {caseLabel7} @QUARRY_10787

:QUARRY_10634
128@ = add_blip_for_coord 830.4274 {y} 889.852 {z} 12.3516
goto @QUARRY_10787

:QUARRY_10661
if 
  261@ == 0
goto_if_false @QUARRY_10706
128@ = add_blip_for_coord 678.5786 {y} 981.4282 {z} -13.749
goto @QUARRY_10726

:QUARRY_10706
128@ = add_blip_for_coord 660.666 {y} 913.719 {z} -41.4059

:QUARRY_10726
goto @QUARRY_10787

:QUARRY_10733
128@ = add_blip_for_coord 648.9208 {y} 916.257 {z} -42.2287
goto @QUARRY_10787

:QUARRY_10760
128@ = add_blip_for_coord 632.4524 {y} 810.3196 {z} -43.9609
goto @QUARRY_10787

:QUARRY_10787
48@ = 0
set_lvar_int_to_lvar_int 50@ = 204@
if 
  252@ == 1
goto_if_false @QUARRY_10827
50@ -= 1

:QUARRY_10827
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 48@
goto_if_false @QUARRY_11360
if 
  253@(48@,4i) == 0
goto_if_false @QUARRY_11265
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
62@, 63@, 64@ = get_car_coordinates 87@
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
65@, 66@, 67@ = get_char_coordinates $scplayer
79@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 65@ {toY} 66@ {toZ} 67@
if 
  not is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11033
if and
  78@ > 21.0
  79@ > 21.0
goto_if_false @QUARRY_11033
set_lvar_int_to_lvar_int 174@(48@,4i) = 46@
174@(48@,4i) -= 1

:QUARRY_11033
if 
  is_int_lvar_greater_than_int_lvar 46@ > 174@(48@,4i)
goto_if_false @QUARRY_11258
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.TankFire
delete_object 101@(48@,10i)
253@(48@,4i) = 1
257@(48@,4i) = 0
set_lvar_int_to_lvar_int 178@(48@,4i) = 46@
178@(48@,4i) += 2000
set_lvar_float_to_lvar_float 218@(48@,4f) = 59@
set_lvar_float_to_lvar_float 222@(48@,4f) = 60@
set_lvar_float_to_lvar_float 226@(48@,4f) = 61@
if 
  20.0 > 78@
goto_if_false @QUARRY_11186
explode_car 87@

:QUARRY_11186
if 
  20.0 > 79@
goto_if_false @QUARRY_11223
37@ = 1
45@ = 7
return 

:QUARRY_11223
if 
  is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11258
37@ = 1
45@ = 6
return 

:QUARRY_11258
goto @QUARRY_11346

:QUARRY_11265
if 
  257@(48@,4i) == 0
goto_if_false @QUARRY_11346
if 
  is_int_lvar_greater_than_int_lvar 46@ > 178@(48@,4i)
goto_if_false @QUARRY_11346
add_explosion 218@(48@,4f) {y} 222@(48@,4f) {z} 226@(48@,4f) {type} ExplosionType.Object
257@(48@,4i) = 1

:QUARRY_11346
48@ += 1
goto @QUARRY_10827

:QUARRY_11360
if 
  243@ == 0
goto_if_false @QUARRY_11420
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_11420
print_now 'QUAR_16' {time} 7000 {flag} 1
243@ = 1

:QUARRY_11420
if 
  35@ == 99
goto_if_false @QUARRY_11445
gosub @QUARRY_21060

:QUARRY_11445
return 

:QUARRY_11447
if 
  is_car_dead 88@
goto_if_false @QUARRY_11479
37@ = 1
45@ = 2
return 

:QUARRY_11479
if 
  35@ == 0
goto_if_false @QUARRY_11607
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
gosub @QUARRY_19814
print_now 'QUAR_22' {time} 10000 {flag} 1
235@ = 0
50@ = 4
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D1'
set_lvar_int_to_lvar_int 206@ = 46@
35@ += 1

:QUARRY_11607
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_11641
37@ = 1
45@ = 4
return 

:QUARRY_11641
if 
  35@ == 1
goto_if_false @QUARRY_11701
if 
  235@ == 1
goto_if_false @QUARRY_11701
remove_blip 132@
239@ = 0
remove_blip 126@
35@ = 99

:QUARRY_11701
if 
  235@ == 0
goto_if_false @QUARRY_11745
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_11745
235@ = 1

:QUARRY_11745
if 
  239@ == 1
goto_if_false @QUARRY_11848
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
if 
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 15.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_11848
remove_blip 132@
239@ = 0

:QUARRY_11848
if 
  35@ == 99
goto_if_false @QUARRY_11873
gosub @QUARRY_21060

:QUARRY_11873
return 

:QUARRY_11875
if 
  is_car_dead 88@
goto_if_false @QUARRY_11907
37@ = 1
45@ = 2
return 

:QUARRY_11907
if 
  35@ == 0
goto_if_false @QUARRY_12473
212@ = 469.377
213@ = 877.2751
214@ = -29.0362
gosub @QUARRY_19761
48@ = 0

:QUARRY_11969
50@ = generate_random_int_in_range 2 {max} 4
59@ = generate_random_float_in_range -2.0 {max} 2.0
60@ = generate_random_float_in_range -3.0 {max} 3.0
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} -20.0
start_script_fire 59@ {y} 60@ {z} 61@ {propagation} 0 {size} 50@ {var_handle} 153@(48@,18i)
48@ += 1
  48@ >= 15
goto_if_false @QUARRY_11969
48@ = 0

:QUARRY_12091
50@ = generate_random_int_in_range 0 {max} 4
59@ = generate_random_float_in_range -1.3 {max} 1.3
60@ = generate_random_float_in_range -1.8 {max} 1.8
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} -20.0
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_12337 {caseNum1} 0 {caseLabel1} @QUARRY_12225 {caseNum2} 1 {caseLabel2} @QUARRY_12253 {caseNum3} 2 {caseLabel3} @QUARRY_12281 {caseNum4} 3 {caseLabel4} @QUARRY_12309 {caseNum5} -1 {caseLabel5} @QUARRY_12337 {caseNum6} -1 {caseLabel6} @QUARRY_12337 {caseNum7} -1 {caseLabel7} @QUARRY_12337

:QUARRY_12225
create_object #CM_BOX {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12253
create_object #BLACKBAG2 {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12281
create_object #DYN_WOODPILE {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12309
create_object #DYN_WOODPILE2 {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12337
75@ = generate_random_float_in_range 0.0 {max} 359.0
76@ = generate_random_float_in_range 0.0 {max} 359.0
77@ = generate_random_float_in_range 0.0 {max} 359.0
set_object_rotation 114@(50@,7i) {x} 75@ {y} 76@ {z} 77@
set_object_render_scorched 114@(50@,7i) {state} True
set_object_collision 114@(50@,7i) {state} False
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_12091
print_now 'QUAR_23' {time} 7000 {flag} 1
263@ = 0
35@ += 1

:QUARRY_12473
if 
  236@ == 0
goto_if_false @QUARRY_12806
50@ = 0
48@ = 0

:QUARRY_12505
if 
  not is_object_attached 111@(48@,3i)
goto_if_false @QUARRY_12760
59@, 60@, 61@ = get_object_coordinates 111@(48@,3i)
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  0.5 > 76@
goto_if_false @QUARRY_12760
if 
  locate_object_3d 111@(48@,3i) {x} 212@ {y} 213@ {z} 214@ {xRadius} 12.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @QUARRY_12744
51@ = 15
add_int_lvar_to_int_lvar 51@ += 48@
if 
  not does_script_fire_exist 153@(51@,18i)
goto_if_false @QUARRY_12730
start_script_fire 59@ {y} 60@ {z} 61@ {propagation} 0 {size} 3 {var_handle} 153@(51@,18i)
set_object_render_scorched 111@(48@,3i) {state} True
freeze_object_position 111@(48@,3i) {state} True
set_object_collision 111@(48@,3i) {state} False

:QUARRY_12730
50@ += 1
goto @QUARRY_12760

:QUARRY_12744
37@ = 1
45@ = 8
return 

:QUARRY_12760
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_12505
if 
  50@ == 3
goto_if_false @QUARRY_12806
236@ = 1

:QUARRY_12806
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_12840
37@ = 1
45@ = 4
return 

:QUARRY_12840
if 
  35@ == 1
goto_if_false @QUARRY_12883
if 
  236@ == 1
goto_if_false @QUARRY_12883
35@ = 99

:QUARRY_12883
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_12994
if 
  does_blip_exist 126@
goto_if_false @QUARRY_12987
remove_blip 126@
clear_this_print 'QUAR_36'
if 
  238@ == 1
goto_if_false @QUARRY_12973
128@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
goto @QUARRY_12987

:QUARRY_12973
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@

:QUARRY_12987
goto @QUARRY_13046

:QUARRY_12994
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_13046
remove_blip 128@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_13046
if 
  236@ == 0
goto_if_false @QUARRY_13199
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_13199
if 
  not locate_char_in_car_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @QUARRY_13163
  locate_char_in_car_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto @QUARRY_13199

:QUARRY_13163
if 
  262@ == 0
goto_if_false @QUARRY_13199
print_help_forever 'QUAR_H1'
262@ = 1

:QUARRY_13199
if 
  263@ == 0
goto_if_false @QUARRY_13327
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_13327
if 
  locate_char_in_car_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} True
goto_if_false @QUARRY_13327
print_now 'QUAR_24' {time} 7000 {flag} 1
263@ = 1
remove_blip 131@
238@ = 0
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@

:QUARRY_13327
if 
  35@ == 99
goto_if_false @QUARRY_13352
gosub @QUARRY_21060

:QUARRY_13352
return 

:QUARRY_13354
if 
  is_car_dead 88@
goto_if_false @QUARRY_13386
37@ = 1
45@ = 2
return 

:QUARRY_13386
if 
  35@ == 0
goto_if_false @QUARRY_13602
212@ = -59.3126
213@ = 2502.2539
214@ = 15.4766
205@ = get_car_health 88@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
50@ = 5
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D4'
set_lvar_int_to_lvar_int 206@ = 46@
print_now 'QUAR_38' {time} 10000 {flag} 1
236@ = 0
264@ = 0
48@ = 0

:QUARRY_13552
296@(48@,6i) = 0
184@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13552
35@ += 1

:QUARRY_13602
if 
  236@ == 0
goto_if_false @QUARRY_13974
80@ = 0
50@ = 0
48@ = 0

:QUARRY_13641
if 
  not is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_13819
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.0 > 76@
goto_if_false @QUARRY_13819
if 
  locate_object_3d 101@(48@,10i) {x} 212@ {y} 213@ {z} 214@ {xRadius} 12.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @QUARRY_13790
50@ += 1
goto @QUARRY_13819

:QUARRY_13790
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)
80@ = 1

:QUARRY_13819
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13641
if 
  80@ == 1
goto_if_false @QUARRY_13949
48@ = 0

:QUARRY_13865
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_13907
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_13907
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13865
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_13949
if 
  50@ == 6
goto_if_false @QUARRY_13974
236@ = 1

:QUARRY_13974
if 
  236@ == 0
goto_if_false @QUARRY_14151
50@ = get_car_health 88@
set_lvar_int_to_lvar_int 51@ = 205@
sub_int_lvar_from_int_lvar 51@ -= 50@
if 
  51@ > 10
goto_if_false @QUARRY_14143
48@ = 0

:QUARRY_14041
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14101
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_14101
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14041
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_14143
set_lvar_int_to_lvar_int 205@ = 50@

:QUARRY_14151
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_14185
37@ = 1
45@ = 10
return 

:QUARRY_14185
if 
  35@ == 1
goto_if_false @QUARRY_14228
if 
  236@ == 1
goto_if_false @QUARRY_14228
35@ = 99

:QUARRY_14228
48@ = 0

:QUARRY_14235
if 
  does_object_exist 122@(48@,3i)
goto_if_false @QUARRY_14485
if 
  not is_object_attached 122@(48@,3i)
goto_if_false @QUARRY_14485
switch_start 48@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @QUARRY_14485 {caseNum1} 0 {caseLabel1} @QUARRY_14338 {caseNum2} 1 {caseLabel2} @QUARRY_14387 {caseNum3} 2 {caseLabel3} @QUARRY_14436 {caseNum4} -1 {caseLabel4} @QUARRY_14485 {caseNum5} -1 {caseLabel5} @QUARRY_14485 {caseNum6} -1 {caseLabel6} @QUARRY_14485 {caseNum7} -1 {caseLabel7} @QUARRY_14485

:QUARRY_14338
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} -1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14387
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14436
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} 1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14485
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_14235
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_14578
if 
  not does_blip_exist 128@
goto_if_false @QUARRY_14571
remove_blip 126@
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
clear_this_print 'QUAR_36'

:QUARRY_14571
goto @QUARRY_14630

:QUARRY_14578
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_14630
remove_blip 128@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_14630
if 
  does_blip_exist 128@
goto_if_false @QUARRY_14677
  locate_char_any_means_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} True

:QUARRY_14677
if 
  264@ == 0
goto_if_false @QUARRY_14760
if 
  locate_char_any_means_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 24.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @QUARRY_14760
print_now 'QUAR_26' {time} 7000 {flag} 1
264@ = 1

:QUARRY_14760
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_14925
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.05
goto_if_false @QUARRY_14925
48@ = 0

:QUARRY_14838
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14904
if 
  is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_14904
detach_object 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_14904
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14838

:QUARRY_14925
80@ = 0
48@ = 0

:QUARRY_14939
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14997
50@ = get_object_health 101@(48@,10i)
if 
  950 >= 50@
goto_if_false @QUARRY_14997
80@ = 1

:QUARRY_14997
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14939
if 
  80@ == 1
goto_if_false @QUARRY_15145
48@ = 0

:QUARRY_15043
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_15103
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_15103
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15043
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_15145
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_15656
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.25
goto_if_false @QUARRY_15656
48@ = 0

:QUARRY_15223
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_15635
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
80@ = 0
50@ = 0

:QUARRY_15275
if 
  3 > 50@
goto_if_false @QUARRY_15403
if and
  80@ == 0
  does_object_exist 122@(50@,3i)
goto_if_false @QUARRY_15389
62@, 63@, 64@ = get_object_coordinates 122@(50@,3i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  0.75 > 78@
goto_if_false @QUARRY_15389
80@ = 1

:QUARRY_15389
50@ += 1
goto @QUARRY_15275

:QUARRY_15403
if 
  80@ == 1
goto_if_false @QUARRY_15613
if 
  296@(48@,6i) == 0
goto_if_false @QUARRY_15485
296@(48@,6i) = 1
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
goto @QUARRY_15606

:QUARRY_15485
if 
  is_int_lvar_greater_than_int_lvar 46@ > 184@(48@,6i)
goto_if_false @QUARRY_15606
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
if 
  is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_15578
detach_object 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_15578
61@ += 1.2
set_object_coordinates 101@(48@,10i) {x} 59@ {y} 60@ {z} 61@

:QUARRY_15606
goto @QUARRY_15635

:QUARRY_15613
296@(48@,6i) = 0
184@(48@,6i) = 0

:QUARRY_15635
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15223

:QUARRY_15656
if 
  35@ == 99
goto_if_false @QUARRY_15691
remove_blip 128@
remove_blip 126@
gosub @QUARRY_21060

:QUARRY_15691
return 

:QUARRY_15693
if 
  is_car_dead 87@
goto_if_false @QUARRY_15725
37@ = 1
45@ = 1
return 

:QUARRY_15725
if 
  is_car_dead 90@
goto_if_false @QUARRY_15757
37@ = 1
45@ = 12
return 

:QUARRY_15757
if 
  35@ == 0
goto_if_false @QUARRY_15966
265@ = 0
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
50@ = 6
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D5'
set_lvar_int_to_lvar_int 206@ = 46@
set_lvar_int_to_var_int 182@ = $g_Quarry_damageKM(50@,7i)
182@ -= 15
182@ *= 1000
add_int_lvar_to_int_lvar 182@ += 46@
266@ = 0
267@ = 0
48@ = 0

:QUARRY_15911
268@(48@,10i) = 1
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_15911
print_now 'QUAR_28' {time} 10000 {flag} 1
35@ += 1

:QUARRY_15966
if 
  266@ == 1
goto_if_false @QUARRY_16217
62@, 63@, 64@ = get_object_coordinates 121@
48@ = 0

:QUARRY_16005
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_16176
if 
  268@(48@,10i) == 1
goto_if_false @QUARRY_16176
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  2.0 > 78@
goto_if_false @QUARRY_16176
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Aircraft
delete_object 101@(48@,10i)
if 
  not is_car_dead 90@
goto_if_false @QUARRY_16176
explode_car 90@
set_train_cruise_speed 90@ {speed} 0.0
37@ = 1
45@ = 11

:QUARRY_16176
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16005
if 
  37@ == 1
goto_if_false @QUARRY_16217
return 

:QUARRY_16217
if 
  35@ == 1
goto_if_false @QUARRY_16260
if 
  267@ == 1
goto_if_false @QUARRY_16260
35@ = 99

:QUARRY_16260
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_16327
if 
  265@ == 0
goto_if_false @QUARRY_16320
265@ = 1
remove_blip 125@
clear_this_print 'QUAR_35'

:QUARRY_16320
goto @QUARRY_16436

:QUARRY_16327
if 
  265@ == 1
goto_if_false @QUARRY_16389
48@ = 0

:QUARRY_16352
remove_blip 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16352
265@ = 0

:QUARRY_16389
if 
  not does_blip_exist 125@
goto_if_false @QUARRY_16436
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_16436
if 
  266@ == 0
goto_if_false @QUARRY_16531
if 
  is_int_lvar_greater_than_int_lvar 46@ > 182@
goto_if_false @QUARRY_16531
set_train_speed 90@ {speed} 56.0
set_train_cruise_speed 90@ {speed} 56.0
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
print_now 'QUAR_29' {time} 7000 {flag} 1
266@ = 1

:QUARRY_16531
if 
  266@ == 0
goto_if_false @QUARRY_16660
if 
  is_char_in_area_3d $scplayer {leftBottomX} 727.6937 {leftBottomY} 2412.2041 {leftBottomZ} 17.6685 {rightTopX} 872.5978 {rightTopY} 2714.917 {rightTopZ} 21.0511 {drawSphere} False
goto_if_false @QUARRY_16660
set_train_speed 90@ {speed} 56.0
set_train_cruise_speed 90@ {speed} 56.0
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
clear_onscreen_timer $g_nQuarryMissionsPassed
print_now 'QUAR_29' {time} 7000 {flag} 1
266@ = 1

:QUARRY_16660
if and
  266@ == 1
  267@ == 0
goto_if_false @QUARRY_16740
if 
  locate_car_3d 90@ {x} 673.9813 {y} 1331.079 {z} 10.7891 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @QUARRY_16740
267@ = 1

:QUARRY_16740
if 
  265@ == 1
goto_if_false @QUARRY_16949
48@ = 0

:QUARRY_16765
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_16928
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
if and
  59@ > 739.0
  747.0 > 59@
goto_if_false @QUARRY_16888
268@(48@,10i) = 1
if 
  not does_blip_exist 142@(48@,10i)
goto_if_false @QUARRY_16881
add_blip_for_object 101@(48@,10i) {var_handle} 142@(48@,10i)

:QUARRY_16881
goto @QUARRY_16928

:QUARRY_16888
268@(48@,10i) = 0
if 
  does_blip_exist 142@(48@,10i)
goto_if_false @QUARRY_16928
remove_blip 142@(48@,10i)

:QUARRY_16928
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16765

:QUARRY_16949
if 
  266@ == 0
goto_if_false @QUARRY_17170
50@ = 0
48@ = 0

:QUARRY_16981
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_17037
if 
  268@(48@,10i) == 0
goto_if_false @QUARRY_17030
50@ += 1

:QUARRY_17030
goto @QUARRY_17044

:QUARRY_17037
50@ += 1

:QUARRY_17044
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16981
if 
  50@ == 10
goto_if_false @QUARRY_17170
75@ = 56.0
75@ *= 2.0
set_train_speed 90@ {speed} 75@
set_train_cruise_speed 90@ {speed} 75@
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
clear_onscreen_timer $g_nQuarryMissionsPassed
print_now 'QUAR_29' {time} 7000 {flag} 1
set_lvar_int_to_lvar_int 207@ = 46@
266@ = 1

:QUARRY_17170
if 
  35@ == 99
goto_if_false @QUARRY_17195
gosub @QUARRY_21060

:QUARRY_17195
return 

:QUARRY_17197
if 
  is_car_dead 91@
goto_if_false @QUARRY_17220
278@ = 1

:QUARRY_17220
if 
  is_car_dead 88@
goto_if_false @QUARRY_17252
37@ = 1
45@ = 2
return 

:QUARRY_17252
if 
  35@ == 0
goto_if_false @QUARRY_17632
car_wander_randomly 91@
set_car_cruise_speed 91@ {maxSpeed} 26.0
set_car_driving_style 91@ {drivingStyle} DrivingMode.AvoidCars
set_car_only_damaged_by_player 91@ {state} True
152@ = add_blip_for_car 91@
lock_car_doors 91@ {lockStatus} CarLock.LockoutPlayerOnly
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_32' {time} 10000 {flag} 1
display_onscreen_counter_with_string $g_Quarry_timerKM {display} CounterDisplay.Bar {text} 'QUAR_D6'
50@ = 3
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
display_onscreen_timer_with_string $g_nQuarryMissionsPassed {direction} TimerDirection.Down {text} 'QUAR_D4'
set_lvar_int_to_lvar_int 206@ = 46@
switch_roads_off 256.6312 {leftBottomY} 734.7498 {leftBottomZ} 4.0053 {rightTopX} 343.9576 {rightTopY} 765.6713 {rightTopZ} 6.4852
switch_roads_off 291.2253 {leftBottomY} 762.6765 {leftBottomZ} 4.0625 {rightTopX} 354.4869 {rightTopY} 784.4223 {rightTopZ} 6.6101
switch_roads_off -149.9865 {leftBottomY} 460.067 {leftBottomZ} 4.9719 {rightTopX} -119.7325 {rightTopY} 530.4155 {rightTopZ} 12.4813
switch_roads_off -100.9858 {leftBottomY} 1190.38 {leftBottomZ} 16.1736 {rightTopX} 97.0928 {rightTopY} 1205.202 {rightTopZ} 19.9344
switch_roads_off -124.9028 {leftBottomY} 1209.5811 {leftBottomZ} 14.6519 {rightTopX} -108.1954 {rightTopY} 1243.821 {rightTopZ} 19.8554
switch_roads_off -113.2273 {leftBottomY} 1246.4771 {leftBottomZ} 11.3781 {rightTopX} -84.1825 {rightTopY} 1268.751 {rightTopZ} 17.5621
283@ = 1
279@ = 0
35@ += 1

:QUARRY_17632
if 
  not is_car_dead 91@
goto_if_false @QUARRY_17855
59@, 60@, 61@ = get_char_coordinates $scplayer
62@, 63@, 64@ = get_car_coordinates 91@
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  78@ > 600.0
goto_if_false @QUARRY_17736
37@ = 1
45@ = 13
return 

:QUARRY_17736
if 
  279@ == 0
goto_if_false @QUARRY_17798
if 
  78@ > 500.0
goto_if_false @QUARRY_17798
print_now 'QUAR_33' {time} 7000 {flag} 1
279@ = 1

:QUARRY_17798
if 
  279@ == 1
goto_if_false @QUARRY_17855
if 
  400.0 > 78@
goto_if_false @QUARRY_17855
clear_this_print 'QUAR_33'
279@ = 0

:QUARRY_17855
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_17889
37@ = 1
45@ = 14
return 

:QUARRY_17889
if 
  35@ == 1
goto_if_false @QUARRY_17948
if 
  278@ == 1
goto_if_false @QUARRY_17948
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000
35@ += 1

:QUARRY_17948
if 
  35@ == 2
goto_if_false @QUARRY_17992
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_17992
35@ = 99

:QUARRY_17992
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_18050
if 
  does_blip_exist 126@
goto_if_false @QUARRY_18043
remove_blip 126@
clear_this_print 'QUAR_36'

:QUARRY_18043
goto @QUARRY_18097

:QUARRY_18050
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_18097
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_18097
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18156
50@ = get_car_health 91@
if and
  50@ > 300
  800 >= 50@
goto_if_false @QUARRY_18156
set_car_health 91@ {health} 300

:QUARRY_18156
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18431
50@ = get_car_health 91@
if 
  250 >= 50@
goto_if_false @QUARRY_18213
$g_Quarry_timerKM = 0
goto @QUARRY_18431

:QUARRY_18213
if 
  50@ == 1000
goto_if_false @QUARRY_18246
$g_Quarry_timerKM = 100
goto @QUARRY_18431

:QUARRY_18246
if 
  50@ == 300
goto_if_false @QUARRY_18279
$g_Quarry_timerKM = 20
goto @QUARRY_18431

:QUARRY_18279
if 
  300 > 50@
goto_if_false @QUARRY_18350
51@ = 300
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_timerKM = 50
sub_int_lvar_from_int_var $g_Quarry_timerKM -= 51@
$g_Quarry_timerKM *= 20
$g_Quarry_timerKM /= 50
goto @QUARRY_18431

:QUARRY_18350
if 
  800 > 50@
goto_if_false @QUARRY_18377
50@ = 800

:QUARRY_18377
51@ = 1000
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_timerKM = 200
sub_int_lvar_from_int_var $g_Quarry_timerKM -= 51@
$g_Quarry_timerKM *= 80
$g_Quarry_timerKM /= 200
$g_Quarry_timerKM += 20

:QUARRY_18431
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18872
48@ = 0

:QUARRY_18454
if 
  does_object_exist 94@(48@,7i)
goto_if_false @QUARRY_18851
if 
  not is_object_attached 94@(48@,7i)
goto_if_false @QUARRY_18851
switch_start 48@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @QUARRY_18851 {caseNum1} 0 {caseLabel1} @QUARRY_18557 {caseNum2} 1 {caseLabel2} @QUARRY_18606 {caseNum3} 2 {caseLabel3} @QUARRY_18655 {caseNum4} 3 {caseLabel4} @QUARRY_18704 {caseNum5} 4 {caseLabel5} @QUARRY_18753 {caseNum6} 5 {caseLabel6} @QUARRY_18802 {caseNum7} -1 {caseLabel7} @QUARRY_18851

:QUARRY_18557
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18606
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18655
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18704
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18753
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18802
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18851
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_18454

:QUARRY_18872
if 
  35@ == 99
goto_if_false @QUARRY_18897
gosub @QUARRY_21060

:QUARRY_18897
return 

:QUARRY_18899
if 
  35@ == 0
goto_if_false @QUARRY_18952
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
clear_onscreen_timer $g_nQuarryMissionsPassed
35@ += 1

:QUARRY_18952
if 
  35@ == 1
goto_if_false @QUARRY_19019
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19019
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19019
if 
  35@ == 2
goto_if_false @QUARRY_19190
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19190
$g_Quarry_CashPickupKM = create_protection_pickup 818.2578 {y} 853.8873 {z} 10.8059 {revenueLimit} $g_Quarry_CashPickupValueKM {revenueRate} $g_Quarry_CashPickupValueKM
switch_widescreen True
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
load_scene 818.2578 {y} 853.8873 {z} 10.8059
set_fixed_camera_position 849.6491 {y} 839.9428 {z} 42.7363 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 848.7661 {y} 840.1115 {z} 42.2983 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19190
if 
  35@ == 3
goto_if_false @QUARRY_19273
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19273
do_fade 500 {direction} Fade.In
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
35@ += 1

:QUARRY_19273
if 
  35@ == 4
goto_if_false @QUARRY_19403
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19403
set_fixed_camera_position 825.0984 {y} 855.4503 {z} 13.577 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 824.1995 {y} 855.1732 {z} 13.2376 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $g_Quarry_CashPickupValueKM {duration} 6000 {flag} 1
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 6000
35@ += 1

:QUARRY_19403
if 
  35@ == 5
goto_if_false @QUARRY_19470
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19470
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19470
if 
  35@ == 6
goto_if_false @QUARRY_19565
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19565
59@, 60@, 61@ = get_char_coordinates $scplayer
load_scene 59@ {y} 60@ {z} 61@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19565
if 
  35@ == 7
goto_if_false @QUARRY_19670
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19670
print_with_2_numbers_now 'QUAR_P7' {num1} 210@ {num2} 211@ {duration} 10000 {style} TextStyle.Middle
print 'QUAR_H3' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19670
if 
  35@ == 8
goto_if_false @QUARRY_19734
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19734
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_player_control $player1 {state} True
35@ = 99

:QUARRY_19734
if 
  35@ == 99
goto_if_false @QUARRY_19759
gosub @QUARRY_21060

:QUARRY_19759
return 

:QUARRY_19761
215@ = 808.4078
216@ = 841.9887
217@ = 8.6694
131@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
238@ = 1
return 

:QUARRY_19814
215@ = 371.5454
216@ = 978.1724
217@ = 28.521
132@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
239@ = 1
return 
200@, 201@ = get_time_of_day 
set_lvar_int_to_lvar_int 50@ = 202@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 203@
50@ *= 1000
set_lvar_int_to_lvar_int 173@ = 50@
add_int_lvar_to_int_lvar 173@ += 46@
add_int_lvar_to_int_lvar 201@ += 203@
if 
  201@ >= 60
goto_if_false @QUARRY_19962
200@ += 1
201@ -= 60

:QUARRY_19962
add_int_lvar_to_int_lvar 200@ += 202@

:QUARRY_19970
if 
  200@ >= 24
goto_if_false @QUARRY_20002
200@ -= 24
goto @QUARRY_19970

:QUARRY_20002
80@ = 0
if 
  201@ > 45
goto_if_false @QUARRY_20104
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 0
200@ += 1
if 
  200@ == 24
goto_if_false @QUARRY_20081
200@ = 0

:QUARRY_20081
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20104
if 
  80@ == 0
goto_if_false @QUARRY_20192
if and
  201@ > 30
  45 > 201@
goto_if_false @QUARRY_20192
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20192
if 
  80@ == 0
goto_if_false @QUARRY_20280
if and
  201@ > 15
  30 > 201@
goto_if_false @QUARRY_20280
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20280
if 
  80@ == 0
goto_if_false @QUARRY_20368
if and
  201@ > 0
  15 > 201@
goto_if_false @QUARRY_20368
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20368
set_lvar_int_to_lvar_int 50@ = 200@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 201@
50@ *= 1000
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 50@
return 

:QUARRY_20409
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @QUARRY_20458
47@ += 1
if 
  47@ > 2
goto_if_false @QUARRY_20456
47@ = 0

:QUARRY_20456
clear_all_view_variables 

:QUARRY_20458
if 
  47@ == 1
goto_if_false @QUARRY_20585
set_var_int_to_lvar_int $8180[0] = 34@
set_var_int_to_lvar_int $8180[1] = 35@
set_var_int_to_lvar_int $8180[2] = 46@
$8180[3] = 0
$8180[4] = 0
$8180[5] = 0
$8180[6] = 0
$8180[7] = 0
view_integer_variable $8180[0] {_p2} "M_STAGE"
view_integer_variable $8180[1] {_p2} "M_GOALS"
view_integer_variable $8180[2] {_p2} "M_MISSION_TIMER"

:QUARRY_20585
if 
  47@ == 2
goto_if_false @QUARRY_20786
$8180[7] = 0
48@ = 0

:QUARRY_20617
set_var_int_to_var_int $8180(48@,8i) = $g_Quarry_damageKM(48@,7i)
add_int_var_to_int_var $8180[7] += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_20617
view_integer_variable $8180[0] {_p2} "ROCKFALL"
view_integer_variable $8180[1] {_p2} "SABOTAGE"
view_integer_variable $8180[2] {_p2} "DESTROY."
view_integer_variable $8180[3] {_p2} "REMOVAL."
view_integer_variable $8180[4] {_p2} "DELIVERY"
view_integer_variable $8180[5] {_p2} "SPILLAGE"
view_integer_variable $8180[6] {_p2} "BURIAL.."
view_integer_variable $8180[7] {_p2} "TOTAL..."

:QUARRY_20786
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @QUARRY_20808
38@ = 1

:QUARRY_20808
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @QUARRY_20896
if 
  39@ == 0
goto_if_false @QUARRY_20871
39@ = 1
write_debug "LEVEL_PAUSED"
goto @QUARRY_20896

:QUARRY_20871
39@ = 0
write_debug "LEVEL_UNPAUSED"

:QUARRY_20896
return 

:QUARRY_20898
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @QUARRY_20922
36@ = 1
return 

:QUARRY_20922
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @QUARRY_20968
$8170 += 1
write_debug_with_int "MISSIONS_PASSED" {number} $8170
return 

:QUARRY_20968
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @QUARRY_20985
return 

:QUARRY_20985
return 

:QUARRY_20987
41@ += 1
if 
  41@ > 9
goto_if_false @QUARRY_21019
41@ = 0

:QUARRY_21019
return 

:QUARRY_21021
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:QUARRY_21060
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:QUARRY_21090
if 
  not is_player_playing $player1
goto_if_false @QUARRY_21117
wait 0
goto @QUARRY_21090

:QUARRY_21117
set_player_control $player1 {state} False
wait 1000
do_fade 1000 {direction} Fade.Out

:QUARRY_21136
if 
  get_fading_status 
goto_if_false @QUARRY_21160
wait 0
goto @QUARRY_21136

:QUARRY_21160
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_21378
if 
  $8170 == 0
goto_if_false @QUARRY_21378
50@ = 1
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 211
50@ = 2
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 300
50@ = 3
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 481
50@ = 4
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 241
50@ = 5
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 181
50@ = 6
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 181
50@ = 7
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 481

:QUARRY_21378
clear_area $quarryX {y} $quarryY {z} $quarryZ {radius} 1000.0 {clearParticles} False
load_scene $quarryX {y} $quarryY {z} $quarryZ
set_char_coordinates $scplayer {x} $quarryX {y} $quarryY {z} $quarryZ
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
wait 500
set_lvar_int_to_var_int 50@ = $8170

:QUARRY_21446
if 
  50@ >= 7
goto_if_false @QUARRY_21478
50@ -= 7
goto @QUARRY_21446

:QUARRY_21478
set_lvar_int_to_lvar_int 198@ = 50@
198@ += 1
gosub @QUARRY_21635
207@ = 0
switch_car_generator $flag_1st_time_nitro_shop {amount} 0
switch_car_generator $gen_car1 {amount} 0
wait 1500
draw_oddjob_title_before_fade True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:QUARRY_21545
if 
  get_fading_status 
goto_if_false @QUARRY_21569
wait 0
goto @QUARRY_21545

:QUARRY_21569
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_21598
print_help 'QUAR_H2'

:QUARRY_21598
set_player_control $player1 {state} True
45@ = 0
TIMERA = 0
TIMERB = 0
35@ = 0
return 

:QUARRY_21635
switch_start 198@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_21796 {caseNum1} 1 {caseLabel1} @QUARRY_21698 {caseNum2} 2 {caseLabel2} @QUARRY_21712 {caseNum3} 3 {caseLabel3} @QUARRY_21782 {caseNum4} 4 {caseLabel4} @QUARRY_21726 {caseNum5} 5 {caseLabel5} @QUARRY_21740 {caseNum6} 6 {caseLabel6} @QUARRY_21754 {caseNum7} 7 {caseLabel7} @QUARRY_21768

:QUARRY_21698
gosub @QUARRY_22158
goto @QUARRY_21825

:QUARRY_21712
gosub @QUARRY_22482
goto @QUARRY_21825

:QUARRY_21726
gosub @QUARRY_22957
goto @QUARRY_21825

:QUARRY_21740
gosub @QUARRY_23543
goto @QUARRY_21825

:QUARRY_21754
gosub @QUARRY_24497
goto @QUARRY_21825

:QUARRY_21768
gosub @QUARRY_21827
goto @QUARRY_21825

:QUARRY_21782
gosub @QUARRY_25306
goto @QUARRY_21825

:QUARRY_21796
write_debug "UNKNOWN_QUARRY_MISSION_ID"

:QUARRY_21825
return 

:QUARRY_21827
34@ = 1
request_model 468
request_model 486
request_model 406
request_model #DEAD_TIED_COP
request_model 523
request_model #CR_AMMOBOX
load_all_models_now 

:QUARRY_21866
if or
  not has_model_loaded 468
  not has_model_loaded 486
  not has_model_loaded 406
  not has_model_loaded #DEAD_TIED_COP
  not has_model_loaded 523
  not has_model_loaded #CR_AMMOBOX
goto_if_false @QUARRY_21918
wait 0
goto @QUARRY_21866

:QUARRY_21918
86@ = create_car 468 {x} 819.7281 {y} 858.3189 {z} 11.0469
set_car_heading 86@ {heading} 291.4761
87@ = create_car 486 {x} 653.1636 {y} 879.9844 {z} -42.5799
set_car_heading 87@ {heading} 119.7783
88@ = create_car 406 {x} 717.0151 {y} 938.3721 {z} -19.7314
set_car_heading 88@ {heading} 38.1129
93@ = create_object #CR_AMMOBOX {x} 720.5391 {y} 922.5157 {z} -19.8436
set_object_collision 93@ {state} False
set_object_visible 93@ {state} False
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
92@ = create_object #DEAD_TIED_COP {x} 606.9487 {y} 933.0876 {z} -38.5322
set_object_dynamic 92@ {state} True
89@ = create_car 523 {x} 560.3003 {y} 844.9364 {z} -13.0258
set_car_can_be_damaged 89@ {state} False
switch_emergency_services False
return 

:QUARRY_22158
34@ = 5
request_model 486
request_model #DYN_QUARRYROCK03
load_all_models_now 

:QUARRY_22177
if or
  not has_model_loaded 486
  not has_model_loaded #DYN_QUARRYROCK03
goto_if_false @QUARRY_22209
wait 0
goto @QUARRY_22177

:QUARRY_22209
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 115.4882
50@ = 0
create_object #DYN_QUARRYROCK03 {x} 771.6403 {y} 836.2275 {z} 4.8965 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 751.6732 {y} 944.9977 {z} 4.8593 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 538.9102 {y} 985.6403 {z} -8.5887 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 680.5322 {y} 963.4501 {z} -13.6607 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 516.8391 {y} 928.7185 {z} -27.6183 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 522.6153 {y} 828.3048 {z} -27.1838 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 646.7208 {y} 752.2311 {z} -12.1482 {var_handle} 94@(50@,7i)
return 

:QUARRY_22482
34@ = 7
request_model 486
request_model #KB_BARREL
load_all_models_now 

:QUARRY_22501
if or
  not has_model_loaded 486
  not has_model_loaded #KB_BARREL
goto_if_false @QUARRY_22533
wait 0
goto @QUARRY_22501

:QUARRY_22533
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 115.4882
50@ = 0
create_object #KB_BARREL {x} 817.0658 {y} 865.5903 {z} 11.0469 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 714.5327 {y} 920.0583 {z} -19.6787 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 632.2825 {y} 895.8612 {z} -43.9534 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 675.7952 {y} 841.8704 {z} -43.9609 {var_handle} 101@(50@,10i)
51@ = 2
51@ -= 1
set_lvar_int_to_var_int 50@ = $g_Quarry_damageKM(51@,7i)
50@ *= 100
48@ = 0

:QUARRY_22742
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_22930 {caseNum1} 0 {caseLabel1} @QUARRY_22805 {caseNum2} 1 {caseLabel2} @QUARRY_22835 {caseNum3} 2 {caseLabel3} @QUARRY_22865 {caseNum4} 3 {caseLabel4} @QUARRY_22895 {caseNum5} -1 {caseLabel5} @QUARRY_22930 {caseNum6} -1 {caseLabel6} @QUARRY_22930 {caseNum7} -1 {caseLabel7} @QUARRY_22930

:QUARRY_22805
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 3
goto @QUARRY_22930

:QUARRY_22835
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 6
goto @QUARRY_22930

:QUARRY_22865
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 8
goto @QUARRY_22930

:QUARRY_22895
set_lvar_int_to_var_int 174@(48@,4i) = $g_Quarry_damageKM(51@,7i)
174@(48@,4i) *= 1000
goto @QUARRY_22930

:QUARRY_22930
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_22742
switch_emergency_services False
return 

:QUARRY_22957
34@ = 9
request_model 406
request_model #DEAD_TIED_COP
request_model 468
request_model #CM_BOX
request_model #BLACKBAG2
request_model #DYN_WOODPILE
request_model #DYN_WOODPILE2
load_all_models_now 

:QUARRY_23001
if or
  not has_model_loaded 406
  not has_model_loaded #DEAD_TIED_COP
  not has_model_loaded 468
goto_if_false @QUARRY_23038
wait 0
goto @QUARRY_23001

:QUARRY_23038
if or
  not has_model_loaded #CM_BOX
  not has_model_loaded #BLACKBAG2
  not has_model_loaded #DYN_WOODPILE
  not has_model_loaded #DYN_WOODPILE2
goto_if_false @QUARRY_23080
wait 0
goto @QUARRY_23038

:QUARRY_23080
88@ = create_car 406 {x} 355.8632 {y} 895.6545 {z} 19.399
set_car_heading 88@ {heading} 342.1892
86@ = create_car 468 {x} 819.7281 {y} 858.3189 {z} 11.0469
set_car_heading 86@ {heading} 291.4761
50@ = 0
create_object #DEAD_TIED_COP {x} 355.8632 {y} 894.6545 {z} 24.2254 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23236
75@ += 360.0

:QUARRY_23236
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
50@ += 1
create_object #DEAD_TIED_COP {x} 355.8632 {y} 895.6545 {z} 24.5629 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23364
75@ += 360.0

:QUARRY_23364
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
50@ += 1
create_object #DEAD_TIED_COP {x} 355.8632 {y} 896.6545 {z} 24.8877 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23492
75@ += 360.0

:QUARRY_23492
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
set_car_density_multiplier 3.0
switch_emergency_services False
return 

:QUARRY_23543
34@ = 12
request_model 406
request_model #KB_BARREL
load_all_models_now 

:QUARRY_23562
if or
  not has_model_loaded 406
  not has_model_loaded #KB_BARREL
goto_if_false @QUARRY_23594
wait 0
goto @QUARRY_23562

:QUARRY_23594
88@ = create_car 406 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 88@ {heading} 295.4882
50@ = 0
create_object #KB_BARREL {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 814.2406 {y} 845.8572 {z} 14.9014 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.93 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.93 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 813.2042 {y} 843.0317 {z} 14.7114 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.96 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 813.2919 {y} 845.4581 {z} 14.8038 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.96 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ = 0
create_object #CR_AMMOBOX {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} -1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_AMMOBOX {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_AMMOBOX {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} 1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
switch_emergency_services False
return 

:QUARRY_24497
34@ = 14
request_model 486
request_model #KB_BARREL
request_model 538
request_model 570
load_all_models_now 

:QUARRY_24526
if or
  not has_model_loaded 486
  not has_model_loaded #KB_BARREL
  not has_model_loaded 538
  not has_model_loaded 570
goto_if_false @QUARRY_24568
wait 0
goto @QUARRY_24526

:QUARRY_24568
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 295.4882
90@ = create_mission_train 11 {x} 832.5291 {y} 2669.7161 {z} 19.8594 {direction} False
set_train_speed 90@ {speed} 0.0
set_train_cruise_speed 90@ {speed} 0.0
121@ = create_object #CR_AMMOBOX {x} 816.4832 {y} 848.8509 {z} 9.4934
set_object_collision 121@ {state} False
set_object_visible 121@ {state} False
attach_object_to_car 121@ {handle} 90@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} -1.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ = 0
create_object #KB_BARREL {x} 744.1446 {y} 1583.6 {z} 7.5408 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.0427 {y} 1602.7679 {z} 7.1368 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 78.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.5758 {y} 1616.749 {z} 6.8536 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 64.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.6569 {y} 1653.42 {z} 6.158 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 36.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.8057 {y} 1671.5229 {z} 5.8467 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 14.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.5768 {y} 1700.3051 {z} 5.4186 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 128.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.4429 {y} 1730.141 {z} 5.0731 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 96.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.0187 {y} 1765.321 {z} 4.6566 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 65.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.176 {y} 1812.375 {z} 4.3281 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 170.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.7178 {y} 1869.991 {z} 4.3281 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 143.0 {z} 0.0
switch_random_trains False
return 

:QUARRY_25306
34@ = 16
request_model 406
request_model 18
request_model #CR_GUNCRATE
load_all_models_now 

:QUARRY_25329
if or
  not has_model_loaded 406
  not has_model_loaded 18
  not has_model_loaded #CR_GUNCRATE
goto_if_false @QUARRY_25365
wait 0
goto @QUARRY_25329

:QUARRY_25365
88@ = create_car 406 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 88@ {heading} 295.4882
91@ = create_car 406 {x} 812.4955 {y} 1144.567 {z} 27.3445
set_car_heading 91@ {heading} 116.9096
lock_car_doors 91@ {lockStatus} CarLock.Locked
85@ = create_char_inside_car 91@ {pedType} PedType.CivMale {modelId} 18
50@ = 0
create_object #CR_GUNCRATE {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 814.2406 {y} 845.8572 {z} 14.9014 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 813.2042 {y} 843.0317 {z} 14.7114 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 813.2919 {y} 845.4581 {z} 14.8038 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
switch_emergency_services False
return 

:QUARRY_25912
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @QUARRY_26380 {caseNum1} 1 {caseLabel1} @QUARRY_26081 {caseNum2} 2 {caseLabel2} @QUARRY_26104 {caseNum3} 3 {caseLabel3} @QUARRY_26127 {caseNum4} 4 {caseLabel4} @QUARRY_26150 {caseNum5} 5 {caseLabel5} @QUARRY_26173 {caseNum6} 6 {caseLabel6} @QUARRY_26196 {caseNum7} 7 {caseLabel7} @QUARRY_26219
switch_continued 8 {caseLabel1} @QUARRY_26242 {caseNum2} 9 {caseLabel2} @QUARRY_26265 {caseNum3} 10 {caseLabel3} @QUARRY_26058 {caseNum4} 11 {caseLabel4} @QUARRY_26288 {caseNum5} 12 {caseLabel5} @QUARRY_26311 {caseNum6} 13 {caseLabel6} @QUARRY_26334 {caseNum7} 14 {caseLabel7} @QUARRY_26357 {caseNum8} -1 {caseLabel8} @QUARRY_26380 {caseNum9} -1 {caseLabel9} @QUARRY_26380

:QUARRY_26058
print_now 'QUAR_F0' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26081
print_now 'QUAR_F1' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26104
print_now 'QUAR_F2' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26127
print_now 'QUAR_F3' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26150
print_now 'QUAR_F4' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26173
print_now 'QUAR_F5' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26196
print_now 'QUAR_F6' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26219
print_now 'QUAR_F7' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26242
print_now 'QUAR_F8' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26265
print_now 'QUAR_F9' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26288
print_now 'QUAR_FA' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26311
print_now 'QUAR_FB' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26334
print_now 'QUAR_FC' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26357
print_now 'QUAR_FD' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26380
return 

:QUARRY_26382
if 
  207@ == 0
goto_if_false @QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 46@
sub_int_lvar_from_int_lvar 50@ -= 206@
goto @QUARRY_26439

:QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 207@
sub_int_lvar_from_int_lvar 50@ -= 206@

:QUARRY_26439
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 1000
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 1000
sub_int_lvar_from_int_lvar 50@ -= 52@
if 
  50@ > 50
goto_if_false @QUARRY_26504
51@ += 1

:QUARRY_26504
293@ = 0
294@ = 0
if 
  is_int_var_equal_to_int_lvar $g_Quarry_damageKM($8170,7i) == 51@
goto_if_false @QUARRY_26555
293@ = 1
goto @QUARRY_26585

:QUARRY_26555
if 
  is_int_var_greater_than_int_lvar $g_Quarry_damageKM($8170,7i) > 51@
goto_if_false @QUARRY_26585
294@ = 1

:QUARRY_26585
if 
  294@ == 1
goto_if_false @QUARRY_26615
set_var_int_to_lvar_int $g_Quarry_damageKM($8170,7i) = 51@

:QUARRY_26615
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26686
set_lvar_int_to_lvar_int 208@ = 51@
208@ /= 60
set_lvar_int_to_lvar_int 50@ = 208@
50@ *= 60
set_lvar_int_to_lvar_int 209@ = 51@
sub_int_lvar_from_int_lvar 209@ -= 50@

:QUARRY_26686
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_26751
48@ = 0

:QUARRY_26718
add_int_var_to_int_lvar 50@ += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_26718

:QUARRY_26751
set_int_stat StatId.QuarryCompletionTime {value} 50@
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26830
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@

:QUARRY_26830
$8170 += 1
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27101
switch_start $8170 {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @QUARRY_27023 {caseNum1} 1 {caseLabel1} @QUARRY_26918 {caseNum2} 2 {caseLabel2} @QUARRY_26933 {caseNum3} 3 {caseLabel3} @QUARRY_26948 {caseNum4} 4 {caseLabel4} @QUARRY_26963 {caseNum5} 5 {caseLabel5} @QUARRY_26978 {caseNum6} 6 {caseLabel6} @QUARRY_26993 {caseNum7} 7 {caseLabel7} @QUARRY_27008

:QUARRY_26918
50@ = 500
goto @QUARRY_27023

:QUARRY_26933
50@ = 1000
goto @QUARRY_27023

:QUARRY_26948
50@ = 2000
goto @QUARRY_27023

:QUARRY_26963
50@ = 3000
goto @QUARRY_27023

:QUARRY_26978
50@ = 5000
goto @QUARRY_27023

:QUARRY_26993
50@ = 7500
goto @QUARRY_27023

:QUARRY_27008
50@ = 10000
goto @QUARRY_27023

:QUARRY_27023
if 
  $8170 == 7
goto_if_false @QUARRY_27067
print_with_number_big 'M_PASS' {num} 50@ {duration} 3000 {style} TextStyle.Middle
goto @QUARRY_27086

:QUARRY_27067
print_with_number_big 'M_PASS' {num} 50@ {duration} 5000 {style} TextStyle.Middle

:QUARRY_27086
add_score $player1 {money} 50@
goto @QUARRY_27206

:QUARRY_27101
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
if 
  293@ == 1
goto_if_false @QUARRY_27160
print_now 'QUAR_P5' {time} 5000 {flag} 1
goto @QUARRY_27206

:QUARRY_27160
if 
  294@ == 1
goto_if_false @QUARRY_27206
print_with_4_numbers_now 'QUAR_P6' {num1} 208@ {num2} 209@ {num3} 210@ {num4} 211@ {duration} 10000 {style} TextStyle.Middle

:QUARRY_27206
clear_wanted_level $player1
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27487
if 
  $8170 == 1
goto_if_false @QUARRY_27270
print_now 'QUAR_P1' {time} 5000 {flag} 1
goto @QUARRY_27480

:QUARRY_27270
if 
  $8170 == 7
goto_if_false @QUARRY_27461
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
$done_quarry_progress = 1
$8170 = 0
print_big 'QUAR_P2' {time} 4000 {style} TextStyle.MiddleSmaller
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27393
48@ = 0

:QUARRY_27360
add_int_var_to_int_lvar 50@ += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27360

:QUARRY_27393
set_int_stat StatId.QuarryCompletionTime {value} 50@
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@
295@ = 1
goto @QUARRY_27480

:QUARRY_27461
print_with_number_now 'QUAR_P4' {num} $8170 {duration} 5000 {flag} 1

:QUARRY_27480
goto @QUARRY_27512

:QUARRY_27487
if 
  $8170 == 7
goto_if_false @QUARRY_27512
$8170 = 0

:QUARRY_27512
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27544
switch_car_generator $flag_1st_time_nitro_shop {amount} 101
switch_car_generator $gen_car1 {amount} 101

:QUARRY_27544
return 

:QUARRY_27546
mark_car_as_no_longer_needed 86@
mark_car_as_no_longer_needed 87@
mark_car_as_no_longer_needed 88@
mark_car_as_no_longer_needed 89@
mark_car_as_no_longer_needed 91@
mark_char_as_no_longer_needed 85@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 121@
mark_mission_train_as_no_longer_needed 90@
48@ = 0

:QUARRY_27603
mark_object_as_no_longer_needed 94@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27603
48@ = 0

:QUARRY_27640
mark_object_as_no_longer_needed 101@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27640
48@ = 0

:QUARRY_27677
mark_object_as_no_longer_needed 111@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27677
48@ = 0

:QUARRY_27714
mark_object_as_no_longer_needed 114@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27714
48@ = 0

:QUARRY_27751
mark_object_as_no_longer_needed 122@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27751
48@ = 0

:QUARRY_27788
delete_checkpoint 190@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27788
delete_checkpoint 197@
remove_blip 125@
remove_blip 126@
remove_blip 128@
remove_blip 130@
remove_blip 129@
remove_blip 131@
remove_blip 132@
remove_blip 140@
remove_blip 141@
remove_blip 152@
remove_blip 127@
48@ = 0

:QUARRY_27885
remove_blip 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27885
48@ = 0

:QUARRY_27922
remove_blip 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27922
clear_onscreen_timer $g_nQuarryMissionsPassed
clear_onscreen_counter $g_Quarry_timerKM
clear_all_script_fire_flags 
if 
  262@ == 1
goto_if_false @QUARRY_27984
clear_help 

:QUARRY_27984
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 406
mark_model_as_no_longer_needed #DYN_QUARRYROCK02
mark_model_as_no_longer_needed #DEAD_TIED_COP
mark_model_as_no_longer_needed #DYN_QUARRYROCK03
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed #CR_AMMOBOX
mark_model_as_no_longer_needed #KB_BARREL
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed #CR_GUNCRATE
mark_model_as_no_longer_needed #CM_BOX
mark_model_as_no_longer_needed #BLACKBAG2
mark_model_as_no_longer_needed #DYN_WOODPILE
mark_model_as_no_longer_needed #DYN_WOODPILE2
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
if 
  283@ == 1
goto_if_false @QUARRY_28307
switch_roads_back_to_original 256.6312 {leftBottomY} 734.7498 {leftBottomZ} 4.0053 {rightTopX} 343.9576 {rightTopY} 765.6713 {rightTopZ} 6.4852
switch_roads_back_to_original 291.2253 {leftBottomY} 762.6765 {leftBottomZ} 4.0625 {rightTopX} 354.4869 {rightTopY} 784.4223 {rightTopZ} 6.6101
switch_roads_back_to_original -149.9865 {leftBottomY} 460.067 {leftBottomZ} 4.9719 {rightTopX} -119.7325 {rightTopY} 530.4155 {rightTopZ} 12.4813
switch_roads_back_to_original -100.9858 {leftBottomY} 1190.38 {leftBottomZ} 16.1736 {rightTopX} 97.0928 {rightTopY} 1205.202 {rightTopZ} 19.9344
switch_roads_back_to_original -124.9028 {leftBottomY} 1209.5811 {leftBottomZ} 14.6519 {rightTopX} -108.1954 {rightTopY} 1243.821 {rightTopZ} 19.8554
switch_roads_back_to_original -113.2273 {leftBottomY} 1246.4771 {leftBottomZ} 11.3781 {rightTopX} -84.1825 {rightTopY} 1268.751 {rightTopZ} 17.5621

:QUARRY_28307
$timer_mobile_start = get_game_timer 
draw_oddjob_title_before_fade True
$onmission = 0
$flag_player_on_oddjob = 0
mission_has_finished 
return 

//-------------Mission 119---------------
// Originally: Boat School

:BOAT
script_name 'BOAT'
gosub @BOAT_416
if 
  has_deatharrest_been_executed 
goto_if_false @BOAT_38
gosub @BOAT_37293

:BOAT_38
gosub @BOAT_37411
terminate_this_script 
if 
  $onmission == 0
goto_if_false @BOAT_416
if 
  36@ == 13
goto_if_false @BOAT_416
37@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
46@ = create_car 415 {x} 5.0 {y} 5.0 {z} 10.0
47@ = create_char PedType.Mission1 {modelId} 210 {x} 20.0 {y} 20.0 {z} 20.0
39@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
42@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
43@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
40@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
41@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
45@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
44@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
156@ = 0

:BOAT_330
if 
  13 > 156@
goto_if_false @BOAT_416
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
create_object_no_offset #WATERJUMP1 {x} 0.0 {y} 0.0 {z} 150.0 {var_handle} 106@(156@,50i)
156@ += 1
goto @BOAT_330

:BOAT_416
$onmission = 1
if 
  $boat_passed_once == 0
goto_if_false @BOAT_443
register_mission_given 

:BOAT_443
load_mission_text 'BOAT'
show_update_stats False
display_car_names False
display_zone_names False
if 
  is_player_playing $player1
goto_if_false @BOAT_489
set_player_can_do_drive_by $player1 {state} False

:BOAT_489
wait 0
246@ = 0
248@ = 0
34@ = 0
35@ = 0
245@ = 0
36@ = 0
$8188 = 1
182@ = -2215.5801
183@ = 2391.7
184@ = 3.965
174@ = -2185.335
175@ = 2410.4089
176@ = 3.9752
177@ = 122.2585
178@ = -2216.3269
179@ = 2393.209
180@ = 3.9
181@ = 238.0
55@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_alpha = 0
$boat_which_medal_displayed = 0
169@ = 0
229@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
209@ = 12000
210@ = 12000
211@ = 10500
212@ = 9700
213@ = 40000
214@ = 40000
215@ = 37000
216@ = 33000
217@ = 120000
218@ = 120000
219@ = 85000
220@ = 80000
221@ = 55
222@ = 55
223@ = 63
224@ = 67
225@ = 180000
226@ = 180000
227@ = 150000
228@ = 130000
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 210
request_model 473
request_model 497
request_model 472
request_model 484
request_model 454
request_model 539
load_all_models_now 

:BOAT_981
if or
  not has_model_loaded 210
  not has_model_loaded 473
  not has_model_loaded 497
  not has_model_loaded 472
goto_if_false @BOAT_1023
wait 0
goto @BOAT_981

:BOAT_1023
if or
  not has_model_loaded 484
  not has_model_loaded 454
  not has_model_loaded 539
goto_if_false @BOAT_1060
wait 0
goto @BOAT_1023

:BOAT_1060
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@
set_char_heading $scplayer {heading} 177@
set_char_drowns_in_water $scplayer {state} False
38@ = create_char PedType.Mission1 {modelId} 210 {x} 178@ {y} 179@ {z} 180@
set_char_heading 38@ {heading} 181@
set_char_never_targetted 38@ {state} True
if 
  $boat_mission_selection == 0
goto_if_false @BOAT_1262
$boat_mission_selection = 50

:BOAT_1262
wait 0
if 
  $boat_mission_selection == 50
goto_if_false @BOAT_1316
goto @BOAT_1323
if 
  is_char_dead 38@
goto_if_false @BOAT_1316
clear_help 
goto @BOAT_37293

:BOAT_1316
goto @BOAT_1262

:BOAT_1323
display_hud False
display_radar False
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
gosub @BOAT_19806
$boat_introcutscene = 0
$boatpb_flag = 0
use_text_commands True
$boat_fade_flag = 255
$boat_control_flag = 2
if 
  6 > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1422
set_var_int_to_var_int $8188 = $boat_which_missions_are_open_flag

:BOAT_1422
gosub @BOAT_25096
display_hud False
display_radar False
set_area_visible 0
do_fade 500 {direction} Fade.In

:BOAT_1448
wait 0
gosub @BOAT_25096
if 
  34@ == 0
goto_if_false @BOAT_1491
load_mission_audio MissionAudioSlot.Slot3 {audioId} 31400
34@ = 1

:BOAT_1491
if 
  34@ == 1
goto_if_false @BOAT_1531
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_1531
34@ = 2

:BOAT_1531
if 
  34@ == 2
goto_if_false @BOAT_1560
play_mission_audio MissionAudioSlot.Slot3
34@ = 3

:BOAT_1560
force_weather_now WeatherType.ExtraSunnyCountryside
set_time_of_day 12 {minutes} 50
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDisableHeliAudio
if 
  $boatpb_flag == 0
goto_if_false @BOAT_2122
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BOAT_1698
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1698
$8188 -= 1
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_1698
$boat_introcutscene = 3

:BOAT_1698
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BOAT_1772
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1772
$8188 += 1
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_1772
$boat_introcutscene = 3

:BOAT_1772
if 
  1 > $8188
goto_if_false @BOAT_1798
set_var_int_to_var_int $8188 = $boat_which_missions_are_open_flag

:BOAT_1798
if 
  is_int_var_greater_than_int_var $8188 > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1824
$8188 = 1

:BOAT_1824
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_2016

:BOAT_1842
if 
  -100 > $LStickX
goto_if_false @BOAT_1894
wait 0
gosub @BOAT_25096
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BOAT_1842

:BOAT_1894
if 
  $LStickX > 100
goto_if_false @BOAT_1946
wait 0
gosub @BOAT_25096
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BOAT_1894

:BOAT_1946
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BOAT_1981
wait 0
gosub @BOAT_25096
goto @BOAT_1946

:BOAT_1981
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BOAT_2016
wait 0
gosub @BOAT_25096
goto @BOAT_1981

:BOAT_2016
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BOAT_2076
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_2058
$boat_introcutscene = 3

:BOAT_2058
clear_mission_audio MissionAudioSlot.Slot3
34@ = 0
goto @BOAT_2136

:BOAT_2076
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BOAT_2098
$boat_which_missions_are_open_flag = 5

:BOAT_2098
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_2122
goto @BOAT_37293

:BOAT_2122
gosub @BOAT_31988
goto @BOAT_1448

:BOAT_2136
do_fade 500 {direction} Fade.Out

:BOAT_2143
if 
  get_fading_status 
goto_if_false @BOAT_2174
wait 0
gosub @BOAT_25096
goto @BOAT_2143

:BOAT_2174
if 
  not is_car_dead 37@
goto_if_false @BOAT_2195
stop_playback_recorded_car 37@

:BOAT_2195
restore_camera_jumpcut 
delete_car 37@
delete_car 46@
delete_char 47@
delete_char 39@
gosub @BOAT_37227
$boat_introcutscene = 5
display_hud True
display_radar True
if 
  $8188 == 1
goto_if_false @BOAT_3817

:BOAT_2257
gosub @BOAT_33622

:BOAT_2264
set_player_control $player1 {state} True
gosub @BOAT_19806
46@ = create_car 497 {x} -3303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
245@ = 0
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 472 {x} -2323.627 {y} 2105.29 {z} 0.0
change_car_colour 37@ {color1} 1 {color2} 114
set_car_heading 37@ {heading} 90.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_2488
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_2488
gosub @BOAT_33310
print_help 'BOAT_H2'
set_player_control $player1 {state} True
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
change_blip_colour 53@ {color} BlipColor.Yellow
change_blip_colour 54@ {color} BlipColor.Yellow
if 
  not is_car_dead 37@
goto_if_false @BOAT_2637
185@, 186@, 187@ = get_car_coordinates 37@
set_lvar_float_to_lvar_float 192@ = 185@
192@ -= 195.0
set_lvar_float_to_lvar_float 193@ = 186@
set_lvar_float_to_lvar_float 194@ = 187@

:BOAT_2637
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_2731
if 
  not is_car_dead 37@
goto_if_false @BOAT_2731
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 120.0 {maxAltitude} 120.0

:BOAT_2731
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_2762
164@ = 2
goto @BOAT_3757

:BOAT_2762
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_2794
goto @BOAT_37293

:BOAT_2794
if 
  158@ == 0
goto_if_false @BOAT_2985
print_now 'BOAT_A4' {time} 5000 {flag} 1
if 
  not is_car_dead 37@
goto_if_false @BOAT_2852
247@ = get_car_health 37@

:BOAT_2852
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_2985
sync_water 
set_lvar_int_to_lvar_int 208@ = 212@
set_lvar_int_to_lvar_int 207@ = 211@
set_lvar_int_to_lvar_int 206@ = 210@
158@ = 1
$boat_which_score_displayed = 0
clear_onscreen_timer $boat_which_score_displayed
display_onscreen_timer_with_string $boat_which_score_displayed {direction} TimerDirection.Up {text} 'BOAT_T1'
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} ScriptSound.SoundClaxonStart
TIMERA = 0

:BOAT_2985
if 
  158@ == 1
goto_if_false @BOAT_3281
if 
  not is_car_dead 37@
goto_if_false @BOAT_3235
49@ = get_car_speed 37@
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} -30.0 {drawSphere} False
goto_if_false @BOAT_3124
print_now 'BOAT_32' {time} 4000 {flag} 1
if 
  7.0 > 49@
goto_if_false @BOAT_3124
clear_prints 
print_now 'BOAT_33' {time} 4000 {flag} 1
158@ = 99

:BOAT_3124
if 
  TIMERA > 4500
goto_if_false @BOAT_3180
if 
  not is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} -30.0 {drawSphere} False
goto_if_false @BOAT_3180
clear_prints 

:BOAT_3180
if 
  245@ == 0
goto_if_false @BOAT_3235
if 
  TIMERA > 4500
goto_if_false @BOAT_3235
245@ = 1
print_help 'BOAT_A5'

:BOAT_3235
if 
  $boat_which_score_displayed > 60000
goto_if_false @BOAT_3281
clear_prints 
print_now 'BOAT_34' {time} 4000 {flag} 1
158@ = 99

:BOAT_3281
if 
  158@ == 99
goto_if_false @BOAT_3810
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_accelerate_best_score > 168@
goto_if_false @BOAT_3519
set_lvar_int_to_var_int 169@ = $boat_accelerate_best_score
set_var_int_to_lvar_int $boat_accelerate_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_3419
if 
  $boat_accelerate_goldachieved == 0
goto_if_false @BOAT_3419
$boat_accelerate_goldachieved = 1
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3419
if 
  $boat_alpha == 3
goto_if_false @BOAT_3469
if 
  $boat_accelerate_silverachieved == 0
goto_if_false @BOAT_3469
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3469
if 
  $boat_alpha == 2
goto_if_false @BOAT_3512
if 
  $boat_accelerate_bronzeachieved == 0
goto_if_false @BOAT_3512
$boat_accelerate_bronzeachieved = 1

:BOAT_3512
goto @BOAT_3526

:BOAT_3519
$boat_alpha = 0

:BOAT_3526
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_3604
if 
  is_int_lvar_greater_than_int_lvar 209@ > 168@
goto_if_false @BOAT_3604
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 2
164@ = 2

:BOAT_3604
TIMERA = 0

:BOAT_3611
if 
  TIMERA > -1
goto_if_false @BOAT_3757
wait 0
gosub @BOAT_20773
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_3691
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_3757

:BOAT_3691
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_3750
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_3757

:BOAT_3750
goto @BOAT_3611

:BOAT_3757
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_3803
goto @BOAT_1323
goto @BOAT_3810

:BOAT_3803
goto @BOAT_2257

:BOAT_3810
goto @BOAT_2637

:BOAT_3817
if 
  $8188 == 2
goto_if_false @BOAT_6516

:BOAT_3835
gosub @BOAT_33622

:BOAT_3842
set_player_control $player1 {state} True
gosub @BOAT_19806
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 472 {x} -2578.6709 {y} 2050.845 {z} 0.0
change_car_colour 37@ {color1} 1 {color2} 114
set_car_heading 37@ {heading} 0.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_4059
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_4059
gosub @BOAT_33310
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_4195
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
change_blip_colour 52@ {color} BlipColor.Yellow
51@ = add_blip_for_object 57@
change_blip_colour 51@ {color} BlipColor.Yellow
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_33755

:BOAT_4195
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_4289
if 
  not is_car_dead 37@
goto_if_false @BOAT_4289
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_4289
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_4320
164@ = 2
goto @BOAT_6456

:BOAT_4320
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_4352
goto @BOAT_37293

:BOAT_4352
if 
  159@ == 0
goto_if_false @BOAT_4470
print_now 'BOAT_B4' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_4470
sync_water 
set_lvar_int_to_lvar_int 208@ = 216@
set_lvar_int_to_lvar_int 207@ = 215@
set_lvar_int_to_lvar_int 206@ = 214@
159@ = 5
$boat_which_score_displayed = 0
clear_onscreen_timer $boat_which_score_displayed
display_onscreen_timer_with_string $boat_which_score_displayed {direction} TimerDirection.Up {text} 'BOAT_T1'

:BOAT_4470
if 
  159@ > 0
goto_if_false @BOAT_4516
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_4516
159@ = 99

:BOAT_4516
if 
  159@ == 5
goto_if_false @BOAT_4722
if 
  not is_car_dead 37@
goto_if_false @BOAT_4722
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_4722
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
clear_help 
print_help 'BOAT_B5'
159@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_33755

:BOAT_4722
if 
  159@ == 10
goto_if_false @BOAT_4915
if 
  not is_car_dead 37@
goto_if_false @BOAT_4915
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_4915
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_33755

:BOAT_4915
if 
  159@ == 15
goto_if_false @BOAT_5108
if 
  not is_car_dead 37@
goto_if_false @BOAT_5108
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5108
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_33755

:BOAT_5108
if 
  159@ == 20
goto_if_false @BOAT_5301
if 
  not is_car_dead 37@
goto_if_false @BOAT_5301
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5301
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_33755

:BOAT_5301
if 
  159@ == 25
goto_if_false @BOAT_5494
if 
  not is_car_dead 37@
goto_if_false @BOAT_5494
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5494
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_33755

:BOAT_5494
if 
  159@ == 30
goto_if_false @BOAT_5687
if 
  not is_car_dead 37@
goto_if_false @BOAT_5687
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5687
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_33755

:BOAT_5687
if 
  159@ == 35
goto_if_false @BOAT_5864
if 
  not is_car_dead 37@
goto_if_false @BOAT_5864
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5864
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
gosub @BOAT_33755

:BOAT_5864
if 
  159@ == 40
goto_if_false @BOAT_5980
if 
  not is_car_dead 37@
goto_if_false @BOAT_5980
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5980
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_33' {time} 1000 {flag} 1
159@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_5980
if 
  159@ == 99
goto_if_false @BOAT_6509
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_simplecircuit_best_score > 168@
goto_if_false @BOAT_6218
set_lvar_int_to_var_int 169@ = $boat_simplecircuit_best_score
set_var_int_to_lvar_int $boat_simplecircuit_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_6118
if 
  $boat_simplecircuit_goldachieved == 0
goto_if_false @BOAT_6118
$boat_simplecircuit_goldachieved = 1
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6118
if 
  $boat_alpha == 3
goto_if_false @BOAT_6168
if 
  $boat_simplecircuit_silverachieved == 0
goto_if_false @BOAT_6168
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6168
if 
  $boat_alpha == 2
goto_if_false @BOAT_6211
if 
  $boat_simplecircuit_bronzeachieved == 0
goto_if_false @BOAT_6211
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6211
goto @BOAT_6225

:BOAT_6218
$boat_alpha = 0

:BOAT_6225
if 
  $boat_which_missions_are_open_flag == 2
goto_if_false @BOAT_6303
if 
  is_int_lvar_greater_than_int_lvar 213@ > 168@
goto_if_false @BOAT_6303
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 3
164@ = 2

:BOAT_6303
TIMERA = 0

:BOAT_6310
if 
  TIMERA > -1
goto_if_false @BOAT_6456
wait 0
gosub @BOAT_20773
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_6390
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_6456

:BOAT_6390
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_6449
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_6456

:BOAT_6449
goto @BOAT_6310

:BOAT_6456
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_6502
goto @BOAT_1323
goto @BOAT_6509

:BOAT_6502
goto @BOAT_3835

:BOAT_6509
goto @BOAT_4195

:BOAT_6516
if 
  $8188 == 3
goto_if_false @BOAT_10919

:BOAT_6534
gosub @BOAT_33622

:BOAT_6541
set_player_control $player1 {state} True
gosub @BOAT_19806
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 473 {x} -2124.125 {y} 2438.3521 {z} 0.0
change_car_colour 37@ {color1} 114 {color2} 1
set_car_heading 37@ {heading} 180.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_6758
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_6758
gosub @BOAT_33310
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_6894
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_33755

:BOAT_6894
35@ = 0

:BOAT_6901
wait 0
if 
  35@ == 0
goto_if_false @BOAT_6937
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32000
35@ = 1

:BOAT_6937
if 
  35@ == 1
goto_if_false @BOAT_6977
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_6977
35@ = 2

:BOAT_6977
if 
  not is_car_dead 46@
goto_if_false @BOAT_7067
if 
  not is_car_dead 37@
goto_if_false @BOAT_7067
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_7067
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_7098
164@ = 2
goto @BOAT_10859

:BOAT_7098
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_7130
goto @BOAT_37293

:BOAT_7130
if 
  160@ == 0
goto_if_false @BOAT_7264
print_now 'BOAT_C1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_7264
sync_water 
set_lvar_int_to_lvar_int 208@ = 220@
set_lvar_int_to_lvar_int 207@ = 219@
set_lvar_int_to_lvar_int 206@ = 218@
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 65535
160@ = 5
$boat_which_score_displayed = 0
clear_onscreen_timer $boat_which_score_displayed
display_onscreen_timer_with_string $boat_which_score_displayed {direction} TimerDirection.Up {text} 'BOAT_T1'

:BOAT_7264
if 
  160@ > 0
goto_if_false @BOAT_7310
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_7310
160@ = 99

:BOAT_7310
if 
  160@ == 5
goto_if_false @BOAT_7503
if 
  not is_car_dead 37@
goto_if_false @BOAT_7503
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7503
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_33755

:BOAT_7503
if 
  160@ == 10
goto_if_false @BOAT_7696
if 
  not is_car_dead 37@
goto_if_false @BOAT_7696
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7696
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_33755

:BOAT_7696
if 
  160@ == 15
goto_if_false @BOAT_7977
if 
  not is_car_dead 37@
goto_if_false @BOAT_7977
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7977
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_33755
if 
  not is_car_dead 44@
goto_if_false @BOAT_7977
if 
  not is_char_dead 45@
goto_if_false @BOAT_7977
if 
  35@ == 2
goto_if_false @BOAT_7943
play_mission_audio MissionAudioSlot.Slot3

:BOAT_7943
task_car_drive_to_coord 45@ {vehicle} 44@ {x} -2013.476 {y} 1748.499 {z} 0.0 {speed} 18.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_7977
if 
  160@ == 20
goto_if_false @BOAT_8170
if 
  not is_car_dead 37@
goto_if_false @BOAT_8170
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8170
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_33755

:BOAT_8170
if 
  160@ == 25
goto_if_false @BOAT_8363
if 
  not is_car_dead 37@
goto_if_false @BOAT_8363
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8363
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_33755

:BOAT_8363
if 
  160@ == 30
goto_if_false @BOAT_8556
if 
  not is_car_dead 37@
goto_if_false @BOAT_8556
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8556
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_33755

:BOAT_8556
if 
  160@ == 35
goto_if_false @BOAT_8749
if 
  not is_car_dead 37@
goto_if_false @BOAT_8749
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8749
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 72@
54@ = add_blip_for_object 73@
gosub @BOAT_33755

:BOAT_8749
if 
  160@ == 40
goto_if_false @BOAT_8942
if 
  not is_car_dead 37@
goto_if_false @BOAT_8942
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8942
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 45
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 72@
195@, 196@, 197@ = get_object_coordinates 73@
52@ = add_blip_for_object 72@
51@ = add_blip_for_object 73@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 74@
54@ = add_blip_for_object 75@
gosub @BOAT_33755

:BOAT_8942
if 
  160@ == 45
goto_if_false @BOAT_9135
if 
  not is_car_dead 37@
goto_if_false @BOAT_9135
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9135
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 50
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 74@
195@, 196@, 197@ = get_object_coordinates 75@
52@ = add_blip_for_object 74@
51@ = add_blip_for_object 75@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 76@
54@ = add_blip_for_object 77@
gosub @BOAT_33755

:BOAT_9135
if 
  160@ == 50
goto_if_false @BOAT_9328
if 
  not is_car_dead 37@
goto_if_false @BOAT_9328
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9328
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 55
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 76@
195@, 196@, 197@ = get_object_coordinates 77@
52@ = add_blip_for_object 76@
51@ = add_blip_for_object 77@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 78@
54@ = add_blip_for_object 79@
gosub @BOAT_33755

:BOAT_9328
if 
  160@ == 55
goto_if_false @BOAT_9521
if 
  not is_car_dead 37@
goto_if_false @BOAT_9521
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9521
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 60
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 78@
195@, 196@, 197@ = get_object_coordinates 79@
52@ = add_blip_for_object 78@
51@ = add_blip_for_object 79@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 80@
54@ = add_blip_for_object 81@
gosub @BOAT_33755

:BOAT_9521
if 
  160@ == 60
goto_if_false @BOAT_9802
if 
  not is_car_dead 37@
goto_if_false @BOAT_9802
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9802
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 65
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 80@
195@, 196@, 197@ = get_object_coordinates 81@
52@ = add_blip_for_object 80@
51@ = add_blip_for_object 81@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 82@
54@ = add_blip_for_object 83@
gosub @BOAT_33755
if 
  not is_car_dead 41@
goto_if_false @BOAT_9802
if 
  not is_char_dead 43@
goto_if_false @BOAT_9802
if 
  35@ == 2
goto_if_false @BOAT_9768
play_mission_audio MissionAudioSlot.Slot3

:BOAT_9768
task_car_drive_to_coord 43@ {vehicle} 41@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_9802
if 
  160@ == 65
goto_if_false @BOAT_10083
if 
  not is_car_dead 37@
goto_if_false @BOAT_10083
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10083
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 70
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 82@
195@, 196@, 197@ = get_object_coordinates 83@
52@ = add_blip_for_object 82@
51@ = add_blip_for_object 83@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 56@
54@ = add_blip_for_object 57@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_10083
if 
  not is_char_dead 42@
goto_if_false @BOAT_10083
if 
  35@ == 2
goto_if_false @BOAT_10049
play_mission_audio MissionAudioSlot.Slot3

:BOAT_10049
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_10083
if 
  160@ == 70
goto_if_false @BOAT_10267
if 
  not is_car_dead 37@
goto_if_false @BOAT_10267
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10267
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 80
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
remove_blip 53@
remove_blip 54@

:BOAT_10267
if 
  160@ == 80
goto_if_false @BOAT_10383
if 
  not is_car_dead 37@
goto_if_false @BOAT_10383
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10383
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_33' {time} 1000 {flag} 1
160@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_10383
if 
  160@ == 99
goto_if_false @BOAT_10912
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_slalom_best_score > 168@
goto_if_false @BOAT_10621
set_lvar_int_to_var_int 169@ = $boat_slalom_best_score
set_var_int_to_lvar_int $boat_slalom_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_10521
if 
  $boat_slalom_goldachieved == 0
goto_if_false @BOAT_10521
$boat_slalom_goldachieved = 1
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10521
if 
  $boat_alpha == 3
goto_if_false @BOAT_10571
if 
  $boat_slalom_silverachieved == 0
goto_if_false @BOAT_10571
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10571
if 
  $boat_alpha == 2
goto_if_false @BOAT_10614
if 
  $boat_slalom_bronzeachieved == 0
goto_if_false @BOAT_10614
$boat_slalom_bronzeachieved = 1

:BOAT_10614
goto @BOAT_10628

:BOAT_10621
$boat_alpha = 0

:BOAT_10628
if 
  $boat_which_missions_are_open_flag == 3
goto_if_false @BOAT_10706
if 
  is_int_lvar_greater_than_int_lvar 217@ > 168@
goto_if_false @BOAT_10706
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 4
164@ = 2

:BOAT_10706
TIMERA = 0

:BOAT_10713
if 
  TIMERA > -1
goto_if_false @BOAT_10859
wait 0
gosub @BOAT_20773
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_10793
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_10859

:BOAT_10793
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_10852
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_10859

:BOAT_10852
goto @BOAT_10713

:BOAT_10859
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_10905
goto @BOAT_1323
goto @BOAT_10912

:BOAT_10905
goto @BOAT_6534

:BOAT_10912
goto @BOAT_6901

:BOAT_10919
if 
  $8188 == 4
goto_if_false @BOAT_12799

:BOAT_10937
gosub @BOAT_33622

:BOAT_10944
set_player_control $player1 {state} True
gosub @BOAT_19806
46@ = create_car 497 {x} -3303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 539 {x} -2584.3159 {y} 2213.4751 {z} 0.0
change_car_colour 37@ {color1} 78 {color2} 14
set_car_heading 37@ {heading} 250.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_33799
if 
  not is_car_dead 37@
goto_if_false @BOAT_11157
set_car_coordinates 37@ {x} -2318.0491 {y} 2312.302 {z} 10.0
set_car_heading 37@ {heading} 174.6078

:BOAT_11157
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_11207
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_11207
gosub @BOAT_33310
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_11308
192@ = 0.0
193@ = 0.0
194@ = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.0

:BOAT_11308
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_11402
if 
  not is_car_dead 37@
goto_if_false @BOAT_11402
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 120.0 {maxAltitude} 120.0

:BOAT_11402
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_11433
164@ = 2
goto @BOAT_12739

:BOAT_11433
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_11465
goto @BOAT_37293

:BOAT_11465
if 
  161@ == 0
goto_if_false @BOAT_11670
print_now 'BOAT_D1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_11670
sync_water 
set_lvar_int_to_lvar_int 208@ = 224@
set_lvar_int_to_lvar_int 207@ = 223@
set_lvar_int_to_lvar_int 206@ = 222@
clear_onscreen_timer $boat_which_score_displayed
$boat_which_score_displayed = 46000
161@ = 1
display_onscreen_timer_with_string $boat_which_score_displayed {direction} TimerDirection.Down {text} 'BOAT_T1'
remove_blip 52@
remove_blip 51@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 65535

:BOAT_11670
if 
  161@ == 1
goto_if_false @BOAT_11823
if 
  not is_car_dead 37@
goto_if_false @BOAT_11823
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {leftBottomZ} 1.0 {rightTopX} 195@ {rightTopY} 196@ {rightTopZ} 3.0 {angle} 10.0 {drawSphere} False
goto_if_false @BOAT_11823
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
remove_blip 52@
remove_blip 51@
49@ = get_car_speed 37@
161@ = 2
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
TIMERB = 0

:BOAT_11823
if 
  161@ == 2
goto_if_false @BOAT_12023
if 
  not is_car_dead 37@
goto_if_false @BOAT_12023
if 
  TIMERB > 1000
goto_if_false @BOAT_12023
192@, 193@, 194@ = get_car_coordinates 37@
if 
  1.0 > 194@
goto_if_false @BOAT_12023
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 600.0 {drawSphere} False
goto_if_false @BOAT_11974
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
161@ = 3
TIMERB = 0

:BOAT_11974
if 
  not is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 600.0 {drawSphere} False
goto_if_false @BOAT_12023
161@ = 4
TIMERB = 0

:BOAT_12023
if 
  161@ == 3
goto_if_false @BOAT_12109
201@, 202@, 203@ = get_object_coordinates 106@
243@ = get_distance_between_coords_2d 201@ {fromY} 202@ {toX} 192@ {toZ} 193@

:BOAT_12072
if 
  1000 > TIMERB
goto_if_false @BOAT_12102
wait 0
goto @BOAT_12072

:BOAT_12102
161@ = 99

:BOAT_12109
if 
  161@ == 4
goto_if_false @BOAT_12174

:BOAT_12127
if 
  1000 > TIMERB
goto_if_false @BOAT_12157
wait 0
goto @BOAT_12127

:BOAT_12157
243@ = 0.0
161@ = 99

:BOAT_12174
if 
  161@ > 0
goto_if_false @BOAT_12247
if 
  1 > $boat_which_score_displayed
goto_if_false @BOAT_12247
clear_prints 
print_now 'BOAT_34' {time} 4000 {flag} 1
161@ = 99
wait 3000
goto @BOAT_12739

:BOAT_12247
if 
  161@ == 99
goto_if_false @BOAT_12792
gosub @BOAT_20102
gosub @BOAT_20430
if or
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
goto_if_false @BOAT_12493
set_lvar_int_to_var_int 169@ = $boat_skijump_best_score
set_var_int_to_lvar_int $boat_skijump_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_12393
if 
  $boat_skijump_goldachieved == 0
goto_if_false @BOAT_12393
$boat_skijump_goldachieved = 1
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12393
if 
  $boat_alpha == 3
goto_if_false @BOAT_12443
if 
  $boat_skijump_silverachieved == 0
goto_if_false @BOAT_12443
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12443
if 
  $boat_alpha == 2
goto_if_false @BOAT_12486
if 
  $boat_skijump_bronzeachieved == 0
goto_if_false @BOAT_12486
$boat_skijump_bronzeachieved = 1

:BOAT_12486
goto @BOAT_12500

:BOAT_12493
$boat_alpha = 0

:BOAT_12500
if 
  $boat_which_missions_are_open_flag == 4
goto_if_false @BOAT_12586
if or
  is_int_lvar_greater_than_int_lvar 168@ > 221@
  is_int_lvar_equal_to_int_lvar 168@ == 221@
goto_if_false @BOAT_12586
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 5
164@ = 2

:BOAT_12586
TIMERA = 0

:BOAT_12593
if 
  TIMERA > -1
goto_if_false @BOAT_12739
wait 0
gosub @BOAT_20773
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_12673
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_12739

:BOAT_12673
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_12732
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_12739

:BOAT_12732
goto @BOAT_12593

:BOAT_12739
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_12785
goto @BOAT_1323
goto @BOAT_12792

:BOAT_12785
goto @BOAT_10937

:BOAT_12792
goto @BOAT_11308

:BOAT_12799
if 
  $8188 == 5
goto_if_false @BOAT_19806

:BOAT_12817
gosub @BOAT_33622

:BOAT_12824
set_player_control $player1 {state} True
gosub @BOAT_19806
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 539 {x} -2014.267 {y} 2365.429 {z} 6.0509
change_car_colour 37@ {color1} 6 {color2} 2
set_car_heading 37@ {heading} 111.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_13041
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_13041
gosub @BOAT_33310
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_13170
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_33755
freeze_car_position 37@ {state} True

:BOAT_13170
35@ = 0

:BOAT_13177
wait 0
if 
  35@ == 0
goto_if_false @BOAT_13213
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32000
35@ = 1

:BOAT_13213
if 
  35@ == 1
goto_if_false @BOAT_13253
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_13253
35@ = 2

:BOAT_13253
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @BOAT_13275
162@ = 99

:BOAT_13275
if 
  not is_car_dead 46@
goto_if_false @BOAT_13365
if 
  not is_car_dead 37@
goto_if_false @BOAT_13365
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_13365
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_13396
164@ = 2
goto @BOAT_19612

:BOAT_13396
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_13428
goto @BOAT_37293

:BOAT_13428
if 
  162@ == 0
goto_if_false @BOAT_13569
print_now 'BOAT_C1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_13569
sync_water 
set_lvar_int_to_lvar_int 208@ = 228@
set_lvar_int_to_lvar_int 207@ = 227@
set_lvar_int_to_lvar_int 206@ = 226@
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 65535
162@ = 5
$boat_which_score_displayed = 0
clear_onscreen_timer $boat_which_score_displayed
display_onscreen_timer_with_string $boat_which_score_displayed {direction} TimerDirection.Up {text} 'BOAT_T1'
freeze_car_position 37@ {state} False

:BOAT_13569
if 
  162@ > 0
goto_if_false @BOAT_13615
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_13615
162@ = 99

:BOAT_13615
if 
  162@ == 5
goto_if_false @BOAT_13808
if 
  not is_car_dead 37@
goto_if_false @BOAT_13808
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_13808
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_33755

:BOAT_13808
if 
  162@ == 10
goto_if_false @BOAT_14001
if 
  not is_car_dead 37@
goto_if_false @BOAT_14001
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14001
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_33755

:BOAT_14001
if 
  162@ == 15
goto_if_false @BOAT_14194
if 
  not is_car_dead 37@
goto_if_false @BOAT_14194
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14194
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_33755

:BOAT_14194
if 
  162@ == 20
goto_if_false @BOAT_14387
if 
  not is_car_dead 37@
goto_if_false @BOAT_14387
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14387
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_33755

:BOAT_14387
if 
  162@ == 25
goto_if_false @BOAT_14580
if 
  not is_car_dead 37@
goto_if_false @BOAT_14580
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14580
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_33755

:BOAT_14580
if 
  162@ == 30
goto_if_false @BOAT_14773
if 
  not is_car_dead 37@
goto_if_false @BOAT_14773
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14773
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_33755

:BOAT_14773
if 
  162@ == 35
goto_if_false @BOAT_14966
if 
  not is_car_dead 37@
goto_if_false @BOAT_14966
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14966
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 72@
54@ = add_blip_for_object 73@
gosub @BOAT_33755

:BOAT_14966
if 
  162@ == 40
goto_if_false @BOAT_15159
if 
  not is_car_dead 37@
goto_if_false @BOAT_15159
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15159
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 45
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 72@
195@, 196@, 197@ = get_object_coordinates 73@
52@ = add_blip_for_object 72@
51@ = add_blip_for_object 73@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 74@
54@ = add_blip_for_object 75@
gosub @BOAT_33755

:BOAT_15159
if 
  162@ == 45
goto_if_false @BOAT_15352
if 
  not is_car_dead 37@
goto_if_false @BOAT_15352
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15352
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 50
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 74@
195@, 196@, 197@ = get_object_coordinates 75@
52@ = add_blip_for_object 74@
51@ = add_blip_for_object 75@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 76@
54@ = add_blip_for_object 77@
gosub @BOAT_33755

:BOAT_15352
if 
  162@ == 50
goto_if_false @BOAT_15545
if 
  not is_car_dead 37@
goto_if_false @BOAT_15545
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15545
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 55
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 76@
195@, 196@, 197@ = get_object_coordinates 77@
52@ = add_blip_for_object 76@
51@ = add_blip_for_object 77@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 78@
54@ = add_blip_for_object 79@
gosub @BOAT_33755

:BOAT_15545
if 
  162@ == 55
goto_if_false @BOAT_15738
if 
  not is_car_dead 37@
goto_if_false @BOAT_15738
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15738
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 60
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 78@
195@, 196@, 197@ = get_object_coordinates 79@
52@ = add_blip_for_object 78@
51@ = add_blip_for_object 79@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 80@
54@ = add_blip_for_object 81@
gosub @BOAT_33755

:BOAT_15738
if 
  162@ == 60
goto_if_false @BOAT_16019
if 
  not is_car_dead 37@
goto_if_false @BOAT_16019
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16019
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 65
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 80@
195@, 196@, 197@ = get_object_coordinates 81@
52@ = add_blip_for_object 80@
51@ = add_blip_for_object 81@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 82@
54@ = add_blip_for_object 83@
gosub @BOAT_33755
if 
  not is_car_dead 41@
goto_if_false @BOAT_16019
if 
  not is_char_dead 43@
goto_if_false @BOAT_16019
if 
  35@ == 2
goto_if_false @BOAT_15985
play_mission_audio MissionAudioSlot.Slot3

:BOAT_15985
task_car_drive_to_coord 43@ {vehicle} 41@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16019
if 
  162@ == 65
goto_if_false @BOAT_16300
if 
  not is_car_dead 37@
goto_if_false @BOAT_16300
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16300
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 70
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 82@
195@, 196@, 197@ = get_object_coordinates 83@
52@ = add_blip_for_object 82@
51@ = add_blip_for_object 83@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 84@
54@ = add_blip_for_object 85@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_16300
if 
  not is_char_dead 42@
goto_if_false @BOAT_16300
if 
  35@ == 2
goto_if_false @BOAT_16266
play_mission_audio MissionAudioSlot.Slot3

:BOAT_16266
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16300
if 
  162@ == 70
goto_if_false @BOAT_16559
if 
  not is_car_dead 37@
goto_if_false @BOAT_16559
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16559
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 75
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 84@
195@, 196@, 197@ = get_object_coordinates 85@
52@ = add_blip_for_object 84@
51@ = add_blip_for_object 85@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 86@
54@ = add_blip_for_object 87@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_16559
if 
  not is_char_dead 42@
goto_if_false @BOAT_16559
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16559
if 
  162@ == 75
goto_if_false @BOAT_16840
if 
  not is_car_dead 37@
goto_if_false @BOAT_16840
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16840
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 80
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 86@
195@, 196@, 197@ = get_object_coordinates 87@
52@ = add_blip_for_object 86@
51@ = add_blip_for_object 87@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 88@
54@ = add_blip_for_object 89@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_16840
if 
  not is_char_dead 42@
goto_if_false @BOAT_16840
if 
  35@ == 2
goto_if_false @BOAT_16806
play_mission_audio MissionAudioSlot.Slot3

:BOAT_16806
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16840
if 
  162@ == 80
goto_if_false @BOAT_17099
if 
  not is_car_dead 37@
goto_if_false @BOAT_17099
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17099
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 82
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 88@
195@, 196@, 197@ = get_object_coordinates 89@
52@ = add_blip_for_object 88@
51@ = add_blip_for_object 89@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 90@
54@ = add_blip_for_object 91@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_17099
if 
  not is_char_dead 42@
goto_if_false @BOAT_17099
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17099
if 
  162@ == 82
goto_if_false @BOAT_17380
if 
  not is_car_dead 37@
goto_if_false @BOAT_17380
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17380
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 84
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 90@
195@, 196@, 197@ = get_object_coordinates 91@
52@ = add_blip_for_object 90@
51@ = add_blip_for_object 91@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 92@
54@ = add_blip_for_object 93@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_17380
if 
  not is_char_dead 42@
goto_if_false @BOAT_17380
if 
  35@ == 2
goto_if_false @BOAT_17346
play_mission_audio MissionAudioSlot.Slot3

:BOAT_17346
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17380
if 
  162@ == 84
goto_if_false @BOAT_17639
if 
  not is_car_dead 37@
goto_if_false @BOAT_17639
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17639
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 86
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 92@
195@, 196@, 197@ = get_object_coordinates 93@
52@ = add_blip_for_object 92@
51@ = add_blip_for_object 93@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 94@
54@ = add_blip_for_object 95@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_17639
if 
  not is_char_dead 42@
goto_if_false @BOAT_17639
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17639
if 
  162@ == 86
goto_if_false @BOAT_17898
if 
  not is_car_dead 37@
goto_if_false @BOAT_17898
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17898
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 88
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 94@
195@, 196@, 197@ = get_object_coordinates 95@
52@ = add_blip_for_object 94@
51@ = add_blip_for_object 95@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 96@
54@ = add_blip_for_object 97@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_17898
if 
  not is_char_dead 42@
goto_if_false @BOAT_17898
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17898
if 
  162@ == 88
goto_if_false @BOAT_18157
if 
  not is_car_dead 37@
goto_if_false @BOAT_18157
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18157
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 90
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 96@
195@, 196@, 197@ = get_object_coordinates 97@
52@ = add_blip_for_object 96@
51@ = add_blip_for_object 97@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 98@
54@ = add_blip_for_object 99@
gosub @BOAT_33755
if 
  not is_car_dead 40@
goto_if_false @BOAT_18157
if 
  not is_char_dead 42@
goto_if_false @BOAT_18157
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_18157
if 
  162@ == 90
goto_if_false @BOAT_18334
if 
  not is_car_dead 37@
goto_if_false @BOAT_18334
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18334
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 91
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 98@
195@, 196@, 197@ = get_object_coordinates 99@
52@ = add_blip_for_object 98@
51@ = add_blip_for_object 99@
remove_blip 53@
remove_blip 54@
gosub @BOAT_33755

:BOAT_18334
if 
  162@ == 91
goto_if_false @BOAT_18450
if 
  not is_car_dead 37@
goto_if_false @BOAT_18450
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18450
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_33' {time} 1000 {flag} 1
162@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_18450
if 
  162@ == 92
goto_if_false @BOAT_18643
if 
  not is_car_dead 37@
goto_if_false @BOAT_18643
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18643
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 93
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 102@
195@, 196@, 197@ = get_object_coordinates 103@
52@ = add_blip_for_object 102@
51@ = add_blip_for_object 103@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 104@
54@ = add_blip_for_object 105@
gosub @BOAT_33755

:BOAT_18643
if 
  162@ == 93
goto_if_false @BOAT_18836
if 
  not is_car_dead 37@
goto_if_false @BOAT_18836
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18836
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 94
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 104@
195@, 196@, 197@ = get_object_coordinates 105@
52@ = add_blip_for_object 104@
51@ = add_blip_for_object 105@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 56@
54@ = add_blip_for_object 57@
gosub @BOAT_33755

:BOAT_18836
if 
  162@ == 94
goto_if_false @BOAT_19013
if 
  not is_car_dead 37@
goto_if_false @BOAT_19013
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_19013
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 97
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
remove_blip 53@
remove_blip 54@
gosub @BOAT_33755

:BOAT_19013
if 
  162@ == 97
goto_if_false @BOAT_19129
if 
  not is_car_dead 37@
goto_if_false @BOAT_19129
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_19129
add_one_off_sound 198@ {y} 199@ {z} 200@ {soundId} 246@
print_now 'BOAT_33' {time} 1000 {flag} 1
162@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_19129
if 
  162@ == 99
goto_if_false @BOAT_19799
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_hover_best_score > 168@
goto_if_false @BOAT_19387
set_lvar_int_to_var_int 169@ = $boat_hover_best_score
set_var_int_to_lvar_int $boat_hover_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_19287
if 
  $boat_hover_goldachieved == 0
goto_if_false @BOAT_19287
$boat_hover_goldachieved = 1
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19287
if 
  $boat_alpha == 3
goto_if_false @BOAT_19337
if 
  $boat_hover_silverachieved == 0
goto_if_false @BOAT_19337
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19337
if 
  $boat_alpha == 2
goto_if_false @BOAT_19380
if 
  $boat_hover_bronzeachieved == 0
goto_if_false @BOAT_19380
$boat_hover_bronzeachieved = 1

:BOAT_19380
goto @BOAT_19394

:BOAT_19387
$boat_alpha = 0

:BOAT_19394
if 
  $boat_which_missions_are_open_flag == 5
goto_if_false @BOAT_19459
if 
  is_int_lvar_greater_than_int_lvar 225@ > 168@
goto_if_false @BOAT_19459
167@ = 2
$boat_which_missions_are_open_flag = 5
248@ = 1
164@ = 2

:BOAT_19459
TIMERA = 0

:BOAT_19466
if 
  TIMERA > -1
goto_if_false @BOAT_19612
wait 0
gosub @BOAT_20773
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_19546
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_19612

:BOAT_19546
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_19605
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_19612

:BOAT_19605
goto @BOAT_19466

:BOAT_19612
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_19792
if 
  248@ == 1
goto_if_false @BOAT_19778
if 
  $boat_passed_once == 0
goto_if_false @BOAT_19778
do_fade 1000 {direction} Fade.Out

:BOAT_19687
if 
  get_fading_status 
goto_if_false @BOAT_19711
wait 0
goto @BOAT_19687

:BOAT_19711
set_char_heading $scplayer {heading} 177@
set_camera_behind_player 
restore_camera_jumpcut 
load_scene -2185.335 {y} 2410.4089 {z} 3.9752
do_fade 2000 {direction} Fade.In

:BOAT_19747
if 
  get_fading_status 
goto_if_false @BOAT_19771
wait 0
goto @BOAT_19747

:BOAT_19771
goto @BOAT_37333

:BOAT_19778
goto @BOAT_1323
goto @BOAT_19799

:BOAT_19792
goto @BOAT_12817

:BOAT_19799
goto @BOAT_13177

:BOAT_19806
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_which_score_displayed = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
48@ = 1000
188@ = 0.0
189@ = 0.0
190@ = 0.0
191@ = 0
204@ = 0
205@ = 0
49@ = 0.0
208@ = 0
207@ = 0
206@ = 0
230@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
return 

:BOAT_20019
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BOAT_20075
if 
  166@ == 1
goto_if_false @BOAT_20068
166@ = 0
165@ = 1

:BOAT_20068
goto @BOAT_20100

:BOAT_20075
if 
  166@ == 0
goto_if_false @BOAT_20100
166@ = 1

:BOAT_20100
return 

:BOAT_20102
clear_help 
set_player_control $player1 {state} False
if 
  $8188 == 1
goto_if_false @BOAT_20169
freeze_onscreen_timer True
boat_stop 37@
set_car_forward_speed 37@ {forwardSpeed} 0.0
freeze_car_position 37@ {state} False
anchor_boat 37@ {state} True
freeze_car_position 37@ {state} False

:BOAT_20169
if 
  $8188 > 1
goto_if_false @BOAT_20352
freeze_onscreen_timer True
TIMERB = 0

:BOAT_20198
if 
  1000 > TIMERB
goto_if_false @BOAT_20228
wait 0
goto @BOAT_20198

:BOAT_20228
if 
  not is_car_dead 37@
goto_if_false @BOAT_20352
if 
  $8188 <> 4
goto_if_false @BOAT_20285
if 
  $8188 <> 5
goto_if_false @BOAT_20285
boat_stop 37@

:BOAT_20285
set_car_forward_speed 37@ {forwardSpeed} 0.0
freeze_car_position 37@ {state} False
if 
  $8188 <> 4
goto_if_false @BOAT_20345
if 
  $8188 <> 5
goto_if_false @BOAT_20345
anchor_boat 37@ {state} True

:BOAT_20345
freeze_car_position 37@ {state} False

:BOAT_20352
return 

:BOAT_20354
if 
  not is_car_dead 37@
goto_if_false @BOAT_20421
if 
  163@ == 1
goto_if_false @BOAT_20414
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @BOAT_20414
164@ = 1

:BOAT_20414
goto @BOAT_20428

:BOAT_20421
164@ = 1

:BOAT_20428
return 

:BOAT_20430
if 
  $8188 <> 4
goto_if_false @BOAT_20617
set_lvar_int_to_var_int 205@ = $boat_which_score_displayed
230@ = 0
48@ = 1000
if 
  not is_car_dead 37@
goto_if_false @BOAT_20495
247@ = get_car_health 37@

:BOAT_20495
if 
  $8188 == 5
goto_if_false @BOAT_20520
247@ += 120

:BOAT_20520
if 
  1000 > 247@
goto_if_false @BOAT_20547
230@ = 5000

:BOAT_20547
if 
  995 > 247@
goto_if_false @BOAT_20574
230@ = 7000

:BOAT_20574
if 
  990 > 247@
goto_if_false @BOAT_20601
230@ = 10000

:BOAT_20601
set_lvar_int_to_lvar_int 168@ = 205@
add_int_lvar_to_int_lvar 168@ += 230@

:BOAT_20617
if 
  $8188 == 4
goto_if_false @BOAT_20771
set_lvar_int_to_var_int 205@ = $boat_which_score_displayed
230@ = 0
48@ = 1000
if 
  not is_car_dead 37@
goto_if_false @BOAT_20682
247@ = get_car_health 37@

:BOAT_20682
if 
  995 > 247@
goto_if_false @BOAT_20709
230@ = 5000

:BOAT_20709
if 
  990 > 247@
goto_if_false @BOAT_20736
230@ = 10000

:BOAT_20736
if 
  985 > 247@
goto_if_false @BOAT_20763
230@ = 15000

:BOAT_20763
cset_lvar_int_to_lvar_float 168@ =# 243@

:BOAT_20771
return 

:BOAT_20773
if 
  not is_car_dead 37@
goto_if_false @BOAT_21200
if 
  191@ == 0
goto_if_false @BOAT_20912
188@, 189@, 190@ = get_car_coordinates 37@
190@ += 5.0
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} 10.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 1

:BOAT_20912
if 
  TIMERA > 3000
goto_if_false @BOAT_21049
if 
  6000 > TIMERA
goto_if_false @BOAT_21049
if 
  191@ == 1
goto_if_false @BOAT_21049
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 2

:BOAT_21049
if 
  TIMERA > 6000
goto_if_false @BOAT_21167
if 
  191@ == 2
goto_if_false @BOAT_21167
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} -10.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 3

:BOAT_21167
if 
  TIMERA > 9000
goto_if_false @BOAT_21200
191@ = 1
TIMERA = 0

:BOAT_21200
return 

:BOAT_21202
$boat_alpha = 0
if 
  $8188 <> 4
goto_if_false @BOAT_21458
if 
  is_int_lvar_greater_than_int_lvar 206@ > 168@
goto_if_false @BOAT_21313
if 
  is_int_lvar_greater_than_int_lvar 168@ > 207@
goto_if_false @BOAT_21313
if and
  is_int_lvar_greater_than_int_lvar 206@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 207@
goto_if_false @BOAT_21306
$boat_alpha = 0
goto @BOAT_21313

:BOAT_21306
$boat_alpha = 2

:BOAT_21313
if 
  is_int_lvar_greater_than_int_lvar 207@ > 168@
goto_if_false @BOAT_21399
if 
  is_int_lvar_greater_than_int_lvar 168@ > 208@
goto_if_false @BOAT_21399
if and
  is_int_lvar_greater_than_int_lvar 207@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 208@
goto_if_false @BOAT_21392
$boat_alpha = 0
goto @BOAT_21399

:BOAT_21392
$boat_alpha = 3

:BOAT_21399
if 
  is_int_lvar_greater_than_int_lvar 208@ > 168@
goto_if_false @BOAT_21458
if 
  is_int_lvar_greater_than_int_lvar 208@ > 169@
goto_if_false @BOAT_21451
$boat_alpha = 0
goto @BOAT_21458

:BOAT_21451
$boat_alpha = 4

:BOAT_21458
if 
  $8188 == 4
goto_if_false @BOAT_21731
if or
  is_int_lvar_greater_than_int_lvar 168@ > 206@
  is_int_lvar_equal_to_int_lvar 168@ == 206@
goto_if_false @BOAT_21570
if 
  is_int_lvar_greater_than_int_lvar 207@ > 168@
goto_if_false @BOAT_21570
if and
  is_int_lvar_greater_than_int_lvar 169@ > 206@
  is_int_lvar_greater_than_int_lvar 207@ > 169@
goto_if_false @BOAT_21563
$boat_alpha = 0
goto @BOAT_21570

:BOAT_21563
$boat_alpha = 2

:BOAT_21570
if or
  is_int_lvar_greater_than_int_lvar 168@ > 207@
  is_int_lvar_equal_to_int_lvar 168@ == 207@
goto_if_false @BOAT_21664
if 
  is_int_lvar_greater_than_int_lvar 208@ > 168@
goto_if_false @BOAT_21664
if and
  is_int_lvar_greater_than_int_lvar 169@ > 207@
  is_int_lvar_greater_than_int_lvar 208@ > 169@
goto_if_false @BOAT_21657
$boat_alpha = 0
goto @BOAT_21664

:BOAT_21657
$boat_alpha = 3

:BOAT_21664
if or
  is_int_lvar_greater_than_int_lvar 168@ > 208@
  is_int_lvar_equal_to_int_lvar 168@ == 208@
goto_if_false @BOAT_21731
if 
  is_int_lvar_greater_than_int_lvar 169@ > 208@
goto_if_false @BOAT_21724
$boat_alpha = 0
goto @BOAT_21731

:BOAT_21724
$boat_alpha = 4

:BOAT_21731
return 

:BOAT_21733
display_hud False
display_radar False
if 
  2 > $boat_alpha
goto_if_false @BOAT_21864
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_21824
draw_window 122.0 {leftTopY} 240.0 {rightBottomX} 520.0 {rightBottomY} 400.0 {header} 'BOAT_75' {zIndex} 3
goto @BOAT_21857

:BOAT_21824
draw_window 152.0 {leftTopY} 240.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'BOAT_75' {zIndex} 3

:BOAT_21857
goto @BOAT_21962

:BOAT_21864
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_21929
draw_window 122.0 {leftTopY} 220.0 {rightBottomX} 520.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3
goto @BOAT_21962

:BOAT_21929
draw_window 152.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:BOAT_21962
gosub @BOAT_33074
gosub @BOAT_33074
if 
  48@ > 0
goto_if_false @BOAT_24237
clear_prints 
gosub @BOAT_33074
set_text_background False
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22167
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22141
display_text_with_float 145.0 {leftTopY} 275.0 {key} 'BOAT_7' {value} 238@ {precision} 2
goto @BOAT_22167

:BOAT_22141
display_text_with_float 180.0 {leftTopY} 275.0 {key} 'BOAT_7' {value} 238@ {precision} 2

:BOAT_22167
gosub @BOAT_33074
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
237@ = 0.0
cset_lvar_float_to_lvar_int 237@ =# 230@
237@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22334
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22308
display_text_with_float 145.0 {leftTopY} 295.0 {key} 'BOAT_9' {value} 237@ {precision} 2
goto @BOAT_22334

:BOAT_22308
display_text_with_float 180.0 {leftTopY} 295.0 {key} 'BOAT_9' {value} 237@ {precision} 2

:BOAT_22334
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_22403
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
goto @BOAT_22433

:BOAT_22403
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@

:BOAT_22433
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22563
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22537
display_text_with_float 145.0 {leftTopY} 315.0 {key} 'BOAT_10' {value} 239@ {precision} 2
goto @BOAT_22563

:BOAT_22537
display_text_with_float 180.0 {leftTopY} 315.0 {key} 'BOAT_10' {value} 239@ {precision} 2

:BOAT_22563
if 
  $8188 == 4
goto_if_false @BOAT_22847
if 
  243@ > 0.0
goto_if_false @BOAT_22773
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22660
display_text_with_float 145.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 243@ {precision} 2
goto @BOAT_22766

:BOAT_22660
if 
  249@ == 3
goto_if_false @BOAT_22704
display_text_with_float 175.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 243@ {precision} 2

:BOAT_22704
if 
  249@ <> 3
goto_if_false @BOAT_22766
if 
  249@ <> 4
goto_if_false @BOAT_22766
display_text_with_float 180.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 243@ {precision} 2

:BOAT_22766
goto @BOAT_22847

:BOAT_22773
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22826
display_text 145.0 {offsetTop} 315.0 {key} 'BOAT_12'
goto @BOAT_22847

:BOAT_22826
display_text 180.0 {offsetTop} 315.0 {key} 'BOAT_12'

:BOAT_22847
gosub @BOAT_33074
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22998
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22972
display_text_with_float 425.0 {leftTopY} 275.0 {key} 'BOAT_77' {value} 238@ {precision} 2
goto @BOAT_22998

:BOAT_22972
display_text_with_float 390.0 {leftTopY} 275.0 {key} 'BOAT_77' {value} 238@ {precision} 2

:BOAT_22998
gosub @BOAT_33074
170@, 171@, 172@, 173@ = get_hud_colour 0
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
237@ = 0.0
cset_lvar_float_to_lvar_int 237@ =# 230@
237@ /= 1000.0
if 
  237@ > 0.0
goto_if_false @BOAT_23121
170@, 171@, 172@, 173@ = get_hud_colour 0
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
goto @BOAT_23151

:BOAT_23121
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Radar
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@

:BOAT_23151
if 
  $8188 <> 4
goto_if_false @BOAT_23253
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23227
display_text_with_float 425.0 {leftTopY} 295.0 {key} 'BOAT_77' {value} 237@ {precision} 2
goto @BOAT_23253

:BOAT_23227
display_text_with_float 390.0 {leftTopY} 295.0 {key} 'BOAT_77' {value} 237@ {precision} 2

:BOAT_23253
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23306
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @BOAT_23320

:BOAT_23306
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:BOAT_23320
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_23450
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23424
display_text_with_float 425.0 {leftTopY} 315.0 {key} 'BOAT_77' {value} 239@ {precision} 2
goto @BOAT_23450

:BOAT_23424
display_text_with_float 390.0 {leftTopY} 315.0 {key} 'BOAT_77' {value} 239@ {precision} 2

:BOAT_23450
if 
  $8188 == 4
goto_if_false @BOAT_23580
if 
  243@ > 0.0
goto_if_false @BOAT_23580
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23547
display_text_with_float 425.0 {leftTopY} 315.0 {key} 'BOAT_80' {value} 243@ {precision} 2
goto @BOAT_23573

:BOAT_23547
display_text_with_float 390.0 {leftTopY} 315.0 {key} 'BOAT_80' {value} 243@ {precision} 2

:BOAT_23573
goto @BOAT_23580

:BOAT_23580
set_text_scale 1.45 {heightScale} 2.0
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 180.0 {offsetTop} 342.0 {key} 'BOAT_74'
set_text_scale 1.45 {heightScale} 2.0
display_text 180.0 {offsetTop} 362.0 {key} 'BOAT_73'
gosub @BOAT_33074
set_text_scale 0.52 {heightScale} 1.45
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 215.0 {offsetTop} 345.0 {key} 'BOAT_76'
gosub @BOAT_33074
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 215.0 {offsetTop} 365.0 {key} 'BOAT_53'
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23883
gosub @BOAT_33190
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'BOAT_46'

:BOAT_23883
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24230
if 
  $boat_alpha > 0
goto_if_false @BOAT_24230
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 219.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 219.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  $boat_alpha == 2
goto_if_false @BOAT_24052
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24052
if 
  $boat_alpha == 3
goto_if_false @BOAT_24106
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24106
if 
  $boat_alpha == 4
goto_if_false @BOAT_24160
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24160
gosub @BOAT_33190
set_text_scale 1.0 {heightScale} 3.4
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 323.0 {offsetTop} 65.0 {key} 'BOAT_47'

:BOAT_24230
goto @BOAT_24825

:BOAT_24237
gosub @BOAT_33074
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
display_text_with_float 30.0 {leftTopY} 55.0 {key} 'BOAT_7' {value} 238@ {precision} 2
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24363
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
goto @BOAT_24377

:BOAT_24363
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255

:BOAT_24377
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
display_text_with_float 30.0 {leftTopY} 65.0 {key} 'BOAT_10' {value} 239@ {precision} 2
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24496
gosub @BOAT_33074
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
display_text 260.0 {offsetTop} 65.0 {key} 'BOAT_46'

:BOAT_24496
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24825
if 
  $boat_alpha > 0
goto_if_false @BOAT_24825
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 68.0 {offsetTop} 145.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 210.0 {offsetTop} 145.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
if 
  $boat_alpha == 2
goto_if_false @BOAT_24677
draw_sprite 1 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24677
if 
  $boat_alpha == 3
goto_if_false @BOAT_24731
draw_sprite 2 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24731
if 
  $boat_alpha == 4
goto_if_false @BOAT_24785
draw_sprite 3 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24785
gosub @BOAT_33074
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
display_text 260.0 {offsetTop} 172.0 {key} 'BOAT_47'

:BOAT_24825
clear_onscreen_timer $boat_which_score_displayed
return 

:BOAT_24832
do_fade 500 {direction} Fade.Out

:BOAT_24839
if 
  get_fading_status 
goto_if_false @BOAT_24863
wait 0
goto @BOAT_24839

:BOAT_24863
display_hud True
display_radar True
clear_prints 
clear_help 
clear_this_big_print 'BOAT_46'
clear_this_big_print 'BOAT_47'
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  164@ == 2
goto_if_false @BOAT_24987
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @BOAT_24966
warp_char_from_car_to_coord $scplayer {x} 174@ {y} 175@ {z} 176@
goto @BOAT_24980

:BOAT_24966
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@

:BOAT_24980
goto @BOAT_25038

:BOAT_24987
if 
  is_char_in_any_car $scplayer
goto_if_false @BOAT_25024
warp_char_from_car_to_coord $scplayer {x} 174@ {y} 175@ {z} 176@
goto @BOAT_25038

:BOAT_25024
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@

:BOAT_25038
wait 0
delete_car 37@
delete_car 46@
delete_char 39@
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
restore_camera_jumpcut 
set_camera_behind_player 
wait 0
clear_onscreen_timer $boat_which_score_displayed
freeze_onscreen_timer False
return 

:BOAT_25096
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} $boat_fade_flag
if 
  $boat_control_flag == 1
goto_if_false @BOAT_25218
if 
  255 > $boat_fade_flag
goto_if_false @BOAT_25211
$boat_fade_flag += 20
if 
  $boat_fade_flag > 255
goto_if_false @BOAT_25204
$boat_fade_flag = 255

:BOAT_25204
goto @BOAT_25218

:BOAT_25211
$boat_control_flag = 2

:BOAT_25218
if 
  $boat_control_flag == 3
goto_if_false @BOAT_25300
if 
  $boat_fade_flag > 0
goto_if_false @BOAT_25293
$boat_fade_flag -= 5
if 
  0 > $boat_fade_flag
goto_if_false @BOAT_25286
$boat_fade_flag = 0

:BOAT_25286
goto @BOAT_25300

:BOAT_25293
$boat_control_flag = 0

:BOAT_25300
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BOAT_33190
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $8188 == 1
goto_if_false @BOAT_25412
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_A'
set_var_int_to_var_int $boat_which_medal_displayed = $boat_accelerate_best_score
gosub @BOAT_26892

:BOAT_25412
if 
  $8188 == 2
goto_if_false @BOAT_25466
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_B'
set_var_int_to_var_int $boat_which_medal_displayed = $boat_simplecircuit_best_score
gosub @BOAT_26892

:BOAT_25466
if 
  $8188 == 3
goto_if_false @BOAT_25520
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_C'
set_var_int_to_var_int $boat_which_medal_displayed = $boat_slalom_best_score
gosub @BOAT_26892

:BOAT_25520
if 
  $8188 == 4
goto_if_false @BOAT_25574
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_D'
set_var_int_to_var_int $boat_which_medal_displayed = $boat_skijump_best_score
gosub @BOAT_26892

:BOAT_25574
if 
  $8188 == 5
goto_if_false @BOAT_25628
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_E'
set_var_int_to_var_int $boat_which_medal_displayed = $boat_hover_best_score
gosub @BOAT_26892

:BOAT_25628
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25718
display_text 96.0 {offsetTop} 375.0 {key} 'BOAT_53'
goto @BOAT_25739

:BOAT_25718
display_text 105.0 {offsetTop} 375.0 {key} 'BOAT_53'

:BOAT_25739
if 
  $boatpb_flag <> 1
goto_if_false @BOAT_26133
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25847
display_text 96.0 {offsetTop} 325.0 {key} 'BOAT_54'
goto @BOAT_25868

:BOAT_25847
display_text 105.0 {offsetTop} 325.0 {key} 'BOAT_54'

:BOAT_25868
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_25997
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25976
display_text 96.0 {offsetTop} 350.0 {key} 'BOAT_52'
goto @BOAT_25997

:BOAT_25976
display_text 105.0 {offsetTop} 350.0 {key} 'BOAT_52'

:BOAT_25997
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26126
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Radar
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_26105
display_text 96.0 {offsetTop} 350.0 {key} 'BOAT_52'
goto @BOAT_26126

:BOAT_26105
display_text 105.0 {offsetTop} 350.0 {key} 'BOAT_52'

:BOAT_26126
goto @BOAT_26244

:BOAT_26133
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_26223
display_text 96.0 {offsetTop} 350.0 {key} 'BOAT_52'
goto @BOAT_26244

:BOAT_26223
display_text 105.0 {offsetTop} 350.0 {key} 'BOAT_52'

:BOAT_26244
gosub @BOAT_33012
set_text_scale 1.45 {heightScale} 2.0
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 70.0 {offsetTop} 372.0 {key} 'BOAT_73'
if 
  $boatpb_flag <> 1
goto_if_false @BOAT_26568
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
display_text 70.0 {offsetTop} 322.0 {key} 'BOAT_74'
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_26473
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BOAT_72'

:BOAT_26473
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26561
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BOAT_72'

:BOAT_26561
goto @BOAT_26638

:BOAT_26568
gosub @BOAT_33012
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BOAT_72'

:BOAT_26638
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:BOAT_26892
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BOAT_33012
set_text_right_justify False
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
if 
  $8188 == 1
goto_if_false @BOAT_27713
if 
  is_int_lvar_greater_than_int_var 209@ > $boat_accelerate_best_score
goto_if_false @BOAT_27277
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27270 {caseNum1} 0 {caseLabel1} @BOAT_27105 {caseNum2} 1 {caseLabel2} @BOAT_27138 {caseNum3} 2 {caseLabel3} @BOAT_27171 {caseNum4} 3 {caseLabel4} @BOAT_27204 {caseNum5} 4 {caseLabel5} @BOAT_27237 {caseNum6} -1 {caseLabel6} @BOAT_27270 {caseNum7} -1 {caseLabel7} @BOAT_27270

:BOAT_27105
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_27270

:BOAT_27138
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_27270

:BOAT_27171
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_27270

:BOAT_27204
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_27270

:BOAT_27237
display_text_with_float 193.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_27270

:BOAT_27270
goto @BOAT_27571

:BOAT_27277
244@ = 0
231@ = 0.0
cset_lvar_float_to_lvar_int 231@ =# 209@
231@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27571 {caseNum1} 0 {caseLabel1} @BOAT_27382 {caseNum2} 1 {caseLabel2} @BOAT_27415 {caseNum3} 2 {caseLabel3} @BOAT_27448 {caseNum4} 3 {caseLabel4} @BOAT_27481 {caseNum5} 4 {caseLabel5} @BOAT_27514 {caseNum6} -1 {caseLabel6} @BOAT_27571 {caseNum7} -1 {caseLabel7} @BOAT_27571

:BOAT_27382
display_text_with_float 137.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 231@ {precision} 1
goto @BOAT_27571

:BOAT_27415
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 231@ {precision} 1
goto @BOAT_27571

:BOAT_27448
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 231@ {precision} 1
goto @BOAT_27571

:BOAT_27481
display_text_with_float 97.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 231@ {precision} 1
goto @BOAT_27571

:BOAT_27514
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 93.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 231@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_27571

:BOAT_27571
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 210@
goto_if_false @BOAT_27597
$boat_alpha = 1

:BOAT_27597
if 
  is_int_lvar_greater_than_int_var 210@ > $boat_which_medal_displayed
goto_if_false @BOAT_27642
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 211@
goto_if_false @BOAT_27642
$boat_alpha = 2

:BOAT_27642
if 
  is_int_lvar_greater_than_int_var 211@ > $boat_which_medal_displayed
goto_if_false @BOAT_27687
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 212@
goto_if_false @BOAT_27687
$boat_alpha = 3

:BOAT_27687
if 
  is_int_lvar_greater_than_int_var 212@ > $boat_which_medal_displayed
goto_if_false @BOAT_27713
$boat_alpha = 4

:BOAT_27713
if 
  $8188 == 2
goto_if_false @BOAT_28449
if 
  is_int_lvar_greater_than_int_var 213@ > $boat_simplecircuit_best_score
goto_if_false @BOAT_28020
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28013 {caseNum1} 0 {caseLabel1} @BOAT_27848 {caseNum2} 1 {caseLabel2} @BOAT_27881 {caseNum3} 2 {caseLabel3} @BOAT_27914 {caseNum4} 3 {caseLabel4} @BOAT_27947 {caseNum5} 4 {caseLabel5} @BOAT_27980 {caseNum6} -1 {caseLabel6} @BOAT_28013 {caseNum7} -1 {caseLabel7} @BOAT_28013

:BOAT_27848
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28013

:BOAT_27881
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28013

:BOAT_27914
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28013

:BOAT_27947
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28013

:BOAT_27980
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28013

:BOAT_28013
goto @BOAT_28307

:BOAT_28020
232@ = 0.0
cset_lvar_float_to_lvar_int 232@ =# 213@
232@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28307 {caseNum1} 0 {caseLabel1} @BOAT_28118 {caseNum2} 1 {caseLabel2} @BOAT_28151 {caseNum3} 2 {caseLabel3} @BOAT_28184 {caseNum4} 3 {caseLabel4} @BOAT_28217 {caseNum5} 4 {caseLabel5} @BOAT_28250 {caseNum6} -1 {caseLabel6} @BOAT_28307 {caseNum7} -1 {caseLabel7} @BOAT_28307

:BOAT_28118
display_text_with_float 137.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 232@ {precision} 1
goto @BOAT_28307

:BOAT_28151
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 232@ {precision} 1
goto @BOAT_28307

:BOAT_28184
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 232@ {precision} 1
goto @BOAT_28307

:BOAT_28217
display_text_with_float 97.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 232@ {precision} 1
goto @BOAT_28307

:BOAT_28250
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 88.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 232@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_28307

:BOAT_28307
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 214@
goto_if_false @BOAT_28333
$boat_alpha = 1

:BOAT_28333
if 
  is_int_lvar_greater_than_int_var 214@ > $boat_which_medal_displayed
goto_if_false @BOAT_28378
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 215@
goto_if_false @BOAT_28378
$boat_alpha = 2

:BOAT_28378
if 
  is_int_lvar_greater_than_int_var 215@ > $boat_which_medal_displayed
goto_if_false @BOAT_28423
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 216@
goto_if_false @BOAT_28423
$boat_alpha = 3

:BOAT_28423
if 
  is_int_lvar_greater_than_int_var 216@ > $boat_which_medal_displayed
goto_if_false @BOAT_28449
$boat_alpha = 4

:BOAT_28449
if 
  $8188 == 3
goto_if_false @BOAT_29195
if 
  is_int_lvar_greater_than_int_var 217@ > $boat_slalom_best_score
goto_if_false @BOAT_28756
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28749 {caseNum1} 0 {caseLabel1} @BOAT_28584 {caseNum2} 1 {caseLabel2} @BOAT_28617 {caseNum3} 2 {caseLabel3} @BOAT_28650 {caseNum4} 3 {caseLabel4} @BOAT_28683 {caseNum5} 4 {caseLabel5} @BOAT_28716 {caseNum6} -1 {caseLabel6} @BOAT_28749 {caseNum7} -1 {caseLabel7} @BOAT_28749

:BOAT_28584
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28749

:BOAT_28617
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28749

:BOAT_28650
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28749

:BOAT_28683
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28749

:BOAT_28716
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_28749

:BOAT_28749
goto @BOAT_29053

:BOAT_28756
233@ = 0.0
cset_lvar_float_to_lvar_int 233@ =# 217@
233@ /= 1000.0
233@ /= 60.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29053 {caseNum1} 0 {caseLabel1} @BOAT_28864 {caseNum2} 1 {caseLabel2} @BOAT_28897 {caseNum3} 2 {caseLabel3} @BOAT_28930 {caseNum4} 3 {caseLabel4} @BOAT_28963 {caseNum5} 4 {caseLabel5} @BOAT_28996 {caseNum6} -1 {caseLabel6} @BOAT_29053 {caseNum7} -1 {caseLabel7} @BOAT_29053

:BOAT_28864
display_text_with_float 142.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 233@ {precision} 1
goto @BOAT_29053

:BOAT_28897
display_text_with_float 87.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 233@ {precision} 1
goto @BOAT_29053

:BOAT_28930
display_text_with_float 83.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 233@ {precision} 1
goto @BOAT_29053

:BOAT_28963
display_text_with_float 112.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 233@ {precision} 1
goto @BOAT_29053

:BOAT_28996
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 103.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 233@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_29053

:BOAT_29053
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 218@
goto_if_false @BOAT_29079
$boat_alpha = 1

:BOAT_29079
if 
  is_int_lvar_greater_than_int_var 218@ > $boat_which_medal_displayed
goto_if_false @BOAT_29124
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 219@
goto_if_false @BOAT_29124
$boat_alpha = 2

:BOAT_29124
if 
  is_int_lvar_greater_than_int_var 219@ > $boat_which_medal_displayed
goto_if_false @BOAT_29169
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 220@
goto_if_false @BOAT_29169
$boat_alpha = 3

:BOAT_29169
if 
  is_int_lvar_greater_than_int_var 220@ > $boat_which_medal_displayed
goto_if_false @BOAT_29195
$boat_alpha = 4

:BOAT_29195
if 
  $8188 == 4
goto_if_false @BOAT_29911
if 
  is_int_var_greater_than_int_lvar $boat_skijump_best_score > 221@
goto_if_false @BOAT_29492
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29485 {caseNum1} 0 {caseLabel1} @BOAT_29330 {caseNum2} 1 {caseLabel2} @BOAT_29361 {caseNum3} 2 {caseLabel3} @BOAT_29392 {caseNum4} 3 {caseLabel4} @BOAT_29423 {caseNum5} 4 {caseLabel5} @BOAT_29454 {caseNum6} -1 {caseLabel6} @BOAT_29485 {caseNum7} -1 {caseLabel7} @BOAT_29485

:BOAT_29330
display_text_with_number 185.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29485

:BOAT_29361
display_text_with_number 167.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29485

:BOAT_29392
display_text_with_number 167.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29485

:BOAT_29423
display_text_with_number 177.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29485

:BOAT_29454
display_text_with_number 160.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29485

:BOAT_29485
goto @BOAT_29745

:BOAT_29492
234@ = 0.0
cset_lvar_float_to_lvar_int 234@ =# 221@
234@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29745 {caseNum1} 0 {caseLabel1} @BOAT_29590 {caseNum2} 1 {caseLabel2} @BOAT_29621 {caseNum3} 2 {caseLabel3} @BOAT_29652 {caseNum4} 3 {caseLabel4} @BOAT_29683 {caseNum5} 4 {caseLabel5} @BOAT_29714 {caseNum6} -1 {caseLabel6} @BOAT_29745 {caseNum7} -1 {caseLabel7} @BOAT_29745

:BOAT_29590
display_text_with_number 153.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 221@
goto @BOAT_29745

:BOAT_29621
display_text_with_number 103.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 221@
goto @BOAT_29745

:BOAT_29652
display_text_with_number 93.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 221@
goto @BOAT_29745

:BOAT_29683
display_text_with_number 123.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 221@
goto @BOAT_29745

:BOAT_29714
display_text_with_number 103.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 221@
goto @BOAT_29745

:BOAT_29745
if 
  is_int_lvar_greater_than_int_var 222@ > $boat_which_medal_displayed
goto_if_false @BOAT_29771
$boat_alpha = 1

:BOAT_29771
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 222@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 222@
goto_if_false @BOAT_29824
if 
  is_int_lvar_greater_than_int_var 223@ > $boat_which_medal_displayed
goto_if_false @BOAT_29824
$boat_alpha = 2

:BOAT_29824
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 223@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 223@
goto_if_false @BOAT_29877
if 
  is_int_lvar_greater_than_int_var 224@ > $boat_which_medal_displayed
goto_if_false @BOAT_29877
$boat_alpha = 3

:BOAT_29877
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 224@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 224@
goto_if_false @BOAT_29911
$boat_alpha = 4

:BOAT_29911
if 
  $8188 == 5
goto_if_false @BOAT_30657
if 
  is_int_lvar_greater_than_int_var 225@ > $boat_hover_best_score
goto_if_false @BOAT_30218
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30211 {caseNum1} 0 {caseLabel1} @BOAT_30046 {caseNum2} 1 {caseLabel2} @BOAT_30079 {caseNum3} 2 {caseLabel3} @BOAT_30112 {caseNum4} 3 {caseLabel4} @BOAT_30145 {caseNum5} 4 {caseLabel5} @BOAT_30178 {caseNum6} -1 {caseLabel6} @BOAT_30211 {caseNum7} -1 {caseLabel7} @BOAT_30211

:BOAT_30046
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_30211

:BOAT_30079
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_30211

:BOAT_30112
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_30211

:BOAT_30145
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_30211

:BOAT_30178
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 236@ {precision} 2
goto @BOAT_30211

:BOAT_30211
goto @BOAT_30515

:BOAT_30218
235@ = 0.0
cset_lvar_float_to_lvar_int 235@ =# 225@
235@ /= 1000.0
235@ /= 60.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30515 {caseNum1} 0 {caseLabel1} @BOAT_30326 {caseNum2} 1 {caseLabel2} @BOAT_30359 {caseNum3} 2 {caseLabel3} @BOAT_30392 {caseNum4} 3 {caseLabel4} @BOAT_30425 {caseNum5} 4 {caseLabel5} @BOAT_30458 {caseNum6} -1 {caseLabel6} @BOAT_30515 {caseNum7} -1 {caseLabel7} @BOAT_30515

:BOAT_30326
display_text_with_float 144.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 235@ {precision} 1
goto @BOAT_30515

:BOAT_30359
display_text_with_float 87.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 235@ {precision} 1
goto @BOAT_30515

:BOAT_30392
display_text_with_float 88.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 235@ {precision} 1
goto @BOAT_30515

:BOAT_30425
display_text_with_float 117.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 235@ {precision} 1
goto @BOAT_30515

:BOAT_30458
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 103.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 235@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_30515

:BOAT_30515
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 226@
goto_if_false @BOAT_30541
$boat_alpha = 1

:BOAT_30541
if 
  is_int_lvar_greater_than_int_var 226@ > $boat_which_medal_displayed
goto_if_false @BOAT_30586
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 227@
goto_if_false @BOAT_30586
$boat_alpha = 2

:BOAT_30586
if 
  is_int_lvar_greater_than_int_var 227@ > $boat_which_medal_displayed
goto_if_false @BOAT_30631
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 228@
goto_if_false @BOAT_30631
$boat_alpha = 3

:BOAT_30631
if 
  is_int_lvar_greater_than_int_var 228@ > $boat_which_medal_displayed
goto_if_false @BOAT_30657
$boat_alpha = 4

:BOAT_30657
if 
  $boat_alpha > 1
goto_if_false @BOAT_30762
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @BOAT_30842

:BOAT_30762
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:BOAT_30842
set_sprites_draw_before_fade True
if 
  $boat_alpha == 1
goto_if_false @BOAT_31131
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33012
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31131 {caseNum1} 0 {caseLabel1} @BOAT_30991 {caseNum2} 1 {caseLabel2} @BOAT_31019 {caseNum3} 2 {caseLabel3} @BOAT_31047 {caseNum4} 3 {caseLabel4} @BOAT_31075 {caseNum5} 4 {caseLabel5} @BOAT_31103 {caseNum6} -1 {caseLabel6} @BOAT_31131 {caseNum7} -1 {caseLabel7} @BOAT_31131

:BOAT_30991
display_text 266.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31131

:BOAT_31019
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31131

:BOAT_31047
display_text 233.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31131

:BOAT_31075
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31131

:BOAT_31103
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31131

:BOAT_31131
if 
  $boat_alpha == 2
goto_if_false @BOAT_31416
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33012
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31416 {caseNum1} 0 {caseLabel1} @BOAT_31276 {caseNum2} 1 {caseLabel2} @BOAT_31304 {caseNum3} 2 {caseLabel3} @BOAT_31332 {caseNum4} 3 {caseLabel4} @BOAT_31360 {caseNum5} 4 {caseLabel5} @BOAT_31388 {caseNum6} -1 {caseLabel6} @BOAT_31416 {caseNum7} -1 {caseLabel7} @BOAT_31416

:BOAT_31276
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31416

:BOAT_31304
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31416

:BOAT_31332
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31416

:BOAT_31360
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31416

:BOAT_31388
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31416

:BOAT_31416
if 
  $boat_alpha == 3
goto_if_false @BOAT_31701
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33012
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31701 {caseNum1} 0 {caseLabel1} @BOAT_31561 {caseNum2} 1 {caseLabel2} @BOAT_31589 {caseNum3} 2 {caseLabel3} @BOAT_31617 {caseNum4} 3 {caseLabel4} @BOAT_31645 {caseNum5} 4 {caseLabel5} @BOAT_31673 {caseNum6} -1 {caseLabel6} @BOAT_31701 {caseNum7} -1 {caseLabel7} @BOAT_31701

:BOAT_31561
display_text 283.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31701

:BOAT_31589
display_text 278.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31701

:BOAT_31617
display_text 283.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31701

:BOAT_31645
display_text 273.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31701

:BOAT_31673
display_text 286.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31701

:BOAT_31701
if 
  $boat_alpha == 4
goto_if_false @BOAT_31986
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33012
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31986 {caseNum1} 0 {caseLabel1} @BOAT_31846 {caseNum2} 1 {caseLabel2} @BOAT_31874 {caseNum3} 2 {caseLabel3} @BOAT_31902 {caseNum4} 3 {caseLabel4} @BOAT_31930 {caseNum5} 4 {caseLabel5} @BOAT_31958 {caseNum6} -1 {caseLabel6} @BOAT_31986 {caseNum7} -1 {caseLabel7} @BOAT_31986

:BOAT_31846
display_text 294.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_31986

:BOAT_31874
display_text 307.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_31986

:BOAT_31902
display_text 294.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_31986

:BOAT_31930
display_text 300.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_31986

:BOAT_31958
display_text 300.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_31986

:BOAT_31986
return 

:BOAT_31988
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_32138
if 
  $8188 == 1
goto_if_false @BOAT_32031
gosub @BOAT_2264

:BOAT_32031
if 
  $8188 == 2
goto_if_false @BOAT_32056
gosub @BOAT_3842

:BOAT_32056
if 
  $8188 == 3
goto_if_false @BOAT_32081
gosub @BOAT_6541

:BOAT_32081
if 
  $8188 == 4
goto_if_false @BOAT_32106
gosub @BOAT_10944

:BOAT_32106
if 
  $8188 == 5
goto_if_false @BOAT_32131
gosub @BOAT_12824

:BOAT_32131
$boat_introcutscene = 1

:BOAT_32138
if 
  $boat_introcutscene == 1
goto_if_false @BOAT_32522
if 
  not is_car_dead 37@
goto_if_false @BOAT_32522
if 
  $8188 == 1
goto_if_false @BOAT_32242
if 
  not has_car_recording_been_loaded 752
goto_if_false @BOAT_32218
request_car_recording 752
goto @BOAT_32242

:BOAT_32218
sync_water 
start_playback_recorded_car 37@ {path} 752
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32242
if 
  $8188 == 2
goto_if_false @BOAT_32312
if 
  not has_car_recording_been_loaded 755
goto_if_false @BOAT_32288
request_car_recording 755
goto @BOAT_32312

:BOAT_32288
sync_water 
start_playback_recorded_car 37@ {path} 755
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32312
if 
  $8188 == 3
goto_if_false @BOAT_32382
if 
  not has_car_recording_been_loaded 757
goto_if_false @BOAT_32358
request_car_recording 757
goto @BOAT_32382

:BOAT_32358
sync_water 
start_playback_recorded_car 37@ {path} 757
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32382
if 
  $8188 == 4
goto_if_false @BOAT_32452
if 
  not has_car_recording_been_loaded 759
goto_if_false @BOAT_32428
request_car_recording 759
goto @BOAT_32452

:BOAT_32428
sync_water 
start_playback_recorded_car 37@ {path} 759
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32452
if 
  $8188 == 5
goto_if_false @BOAT_32522
if 
  not has_car_recording_been_loaded 760
goto_if_false @BOAT_32498
request_car_recording 760
goto @BOAT_32522

:BOAT_32498
sync_water 
start_playback_recorded_car 37@ {path} 760
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32522
if 
  $boat_introcutscene == 2
goto_if_false @BOAT_32843
if 
  not is_car_dead 37@
goto_if_false @BOAT_32829
if 
  not is_car_dead 46@
goto_if_false @BOAT_32792
185@, 186@, 187@ = get_car_coordinates 37@
if 
  $8188 == 1
goto_if_false @BOAT_32624
185@ -= 35.0
186@ -= 30.0

:BOAT_32624
if 
  $8188 == 2
goto_if_false @BOAT_32662
185@ -= 15.0
186@ -= 30.0

:BOAT_32662
if 
  $8188 == 3
goto_if_false @BOAT_32700
185@ -= 13.0
186@ -= 13.0

:BOAT_32700
if 
  $8188 == 4
goto_if_false @BOAT_32738
185@ -= 10.0
186@ -= 20.0

:BOAT_32738
if 
  $8188 == 5
goto_if_false @BOAT_32776
185@ -= 10.0
186@ -= 20.0

:BOAT_32776
set_car_coordinates 46@ {x} 185@ {y} 186@ {z} 10.0

:BOAT_32792
if 
  not is_playback_going_on_for_car 37@
goto_if_false @BOAT_32822
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32822
goto @BOAT_32843

:BOAT_32829
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32843
if 
  $boat_introcutscene == 3
goto_if_false @BOAT_32875
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32875
if 
  $boat_introcutscene == 4
goto_if_false @BOAT_33010
if 
  $boat_control_flag == 2
goto_if_false @BOAT_33010
stop_playback_recorded_car 37@
restore_camera_jumpcut 
clear_onscreen_timer $boat_which_score_displayed
freeze_onscreen_timer False
delete_car 46@
delete_car 37@
gosub @BOAT_37227
$boat_introcutscene = 0
clear_onscreen_timer $boat_which_score_displayed
freeze_onscreen_timer False
delete_car 37@
delete_car 46@
delete_char 47@
delete_char 39@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 42@
delete_char 43@
delete_char 45@

:BOAT_33010
return 

:BOAT_33012
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BOAT_33074
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:BOAT_33190
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.8
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BOAT_33310
set_player_control $player1 {state} False
delete_char 39@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
clear_onscreen_timer $boat_which_score_displayed
40@ = create_car 454 {x} -2100.8359 {y} 2247.8621 {z} 0.0
set_car_heading 40@ {heading} 122.0
42@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 210
41@ = create_car 484 {x} -1996.127 {y} 2125.1689 {z} 0.0
set_car_heading 41@ {heading} 160.0
43@ = create_char_inside_car 41@ {pedType} PedType.Mission1 {modelId} 210
44@ = create_car 454 {x} -2251.1709 {y} 2129.291 {z} 0.0
set_car_heading 44@ {heading} 182.0
45@ = create_char_inside_car 44@ {pedType} PedType.Mission1 {modelId} 210
warp_char_into_car $scplayer {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.LockedPlayerInside
wait 1000
do_fade 2000 {direction} Fade.Out

:BOAT_33522
if 
  get_fading_status 
goto_if_false @BOAT_33546
wait 0
goto @BOAT_33522

:BOAT_33546
restore_camera_jumpcut 
set_camera_behind_player 
if 
  $8188 == 4
goto_if_false @BOAT_33589
load_scene -2318.0491 {y} 2312.302 {z} 10.0
wait 0

:BOAT_33589
do_fade 2000 {direction} Fade.In

:BOAT_33596
if 
  get_fading_status 
goto_if_false @BOAT_33620
wait 0
goto @BOAT_33596

:BOAT_33620
return 

:BOAT_33622
do_fade 500 {direction} Fade.Out

:BOAT_33629
if 
  get_fading_status 
goto_if_false @BOAT_33653
wait 0
goto @BOAT_33629

:BOAT_33653
if 
  $8188 == 16
goto_if_false @BOAT_33692
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
goto @BOAT_33706

:BOAT_33692
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:BOAT_33706
restore_camera_jumpcut 
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnyCountryside
set_area_visible 0
delete_char 39@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
return 

:BOAT_33755
change_blip_scale 53@ {size} 1
change_blip_scale 54@ {size} 1
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
change_blip_colour 53@ {color} BlipColor.Yellow
change_blip_colour 54@ {color} BlipColor.Yellow
return 

:BOAT_33799
if 
  $8188 == 1
goto_if_false @BOAT_34105
156@ = 0

:BOAT_33824
if 
  8 > 156@
goto_if_false @BOAT_33905
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_33824

:BOAT_33905
if 
  not is_car_dead 37@
goto_if_false @BOAT_34105
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 180.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 180.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 210.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 210.0 {zOffset} 0.0

:BOAT_34105
if 
  $8188 == 2
goto_if_false @BOAT_34595
156@ = 0

:BOAT_34130
if 
  16 > 156@
goto_if_false @BOAT_34211
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_34130

:BOAT_34211
if 
  not is_car_dead 37@
goto_if_false @BOAT_34595
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 80.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 70.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 55.0 {yOffset} 145.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 70.0 {yOffset} 130.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 150.0 {yOffset} 110.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} 160.0 {yOffset} 130.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 250.0 {yOffset} 80.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 240.0 {yOffset} 60.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 300.0 {yOffset} 0.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 290.0 {yOffset} -20.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 380.0 {yOffset} -150.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 360.0 {yOffset} -150.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 320.0 {yOffset} -300.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 340.0 {yOffset} -325.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 230.0 {yOffset} -280.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 210.0 {yOffset} -300.0 {zOffset} 0.0

:BOAT_34595
if 
  $8188 == 3
goto_if_false @BOAT_35361
156@ = 0

:BOAT_34620
if 
  28 > 156@
goto_if_false @BOAT_34701
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_34620

:BOAT_34701
if 
  not is_car_dead 37@
goto_if_false @BOAT_35361
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 40.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 55.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 300.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -15.0 {yOffset} 290.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 140.0 {yOffset} 320.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 140.0 {yOffset} 335.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 220.0 {yOffset} 370.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 210.0 {yOffset} 385.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 210.0 {yOffset} 470.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 195.0 {yOffset} 460.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 195.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 180.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 95.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 95.0 {yOffset} 585.0 {zOffset} 0.0
place_object_relative_to_car 72@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 73@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 515.0 {zOffset} 0.0
place_object_relative_to_car 74@ {vehicle} 37@ {xOffset} -90.0 {yOffset} 585.0 {zOffset} 0.0
place_object_relative_to_car 75@ {vehicle} 37@ {xOffset} -90.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 76@ {vehicle} 37@ {xOffset} -160.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 77@ {vehicle} 37@ {xOffset} -150.0 {yOffset} 485.0 {zOffset} 0.0
place_object_relative_to_car 78@ {vehicle} 37@ {xOffset} -240.0 {yOffset} 430.0 {zOffset} 0.0
place_object_relative_to_car 79@ {vehicle} 37@ {xOffset} -230.0 {yOffset} 415.0 {zOffset} 0.0
place_object_relative_to_car 80@ {vehicle} 37@ {xOffset} -140.0 {yOffset} 330.0 {zOffset} 0.0
place_object_relative_to_car 81@ {vehicle} 37@ {xOffset} -140.0 {yOffset} 315.0 {zOffset} 0.0
place_object_relative_to_car 82@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 220.0 {zOffset} 0.0
place_object_relative_to_car 83@ {vehicle} 37@ {xOffset} -40.0 {yOffset} 205.0 {zOffset} 0.0

:BOAT_35361
if 
  $8188 == 4
goto_if_false @BOAT_36032
156@ = 0

:BOAT_35386
if 
  20 > 156@
goto_if_false @BOAT_35467
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_35386

:BOAT_35467
157@ = 0

:BOAT_35474
if 
  1 > 157@
goto_if_false @BOAT_35533
create_object_no_offset #WATERJUMPX2 {x} 20.0 {y} 20.0 {z} 150.0 {var_handle} 106@(157@,50i)
157@ += 1
goto @BOAT_35474

:BOAT_35533
if 
  not is_car_dead 37@
goto_if_false @BOAT_36032
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 91.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 109.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 106@ {vehicle} 37@ {xOffset} 100.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 510.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 510.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 520.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 520.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 530.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 530.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 540.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 540.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 550.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 550.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 560.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 560.0 {zOffset} 0.0
place_object_relative_to_car 72@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 73@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 74@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 580.0 {zOffset} 0.0
place_object_relative_to_car 75@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 580.0 {zOffset} 0.0

:BOAT_36032
if 
  $8188 == 5
goto_if_false @BOAT_37225
156@ = 0

:BOAT_36057
if 
  44 > 156@
goto_if_false @BOAT_36138
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_36057

:BOAT_36138
157@ = 0

:BOAT_36145
if 
  3 > 157@
goto_if_false @BOAT_36204
create_object_no_offset #WATERJUMPX2 {x} 20.0 {y} 20.0 {z} 150.0 {var_handle} 106@(157@,50i)
157@ += 1
goto @BOAT_36145

:BOAT_36204
if 
  not is_car_dead 37@
goto_if_false @BOAT_37225
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 25.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 10.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 170.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} -50.0 {yOffset} 160.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} -100.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -120.0 {yOffset} 170.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} -170.0 {yOffset} 260.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} -188.0 {yOffset} 260.0 {zOffset} 0.0
place_object_relative_to_car 106@ {vehicle} 37@ {xOffset} -179.0 {yOffset} 360.0 {zOffset} -6.509
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} -170.0 {yOffset} 360.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} -188.0 {yOffset} 360.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} -180.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} -195.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} -50.0 {yOffset} 600.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 600.0 {zOffset} 0.0
set_object_coordinates 107@ {x} -2682.1589 {y} 1946.412 {z} 0.9
set_object_heading 107@ {heading} 180.0
set_object_coordinates 70@ {x} -2689.573 {y} 1944.864 {z} 0.0
set_object_coordinates 71@ {x} -2674.354 {y} 1944.6071 {z} 0.0
set_object_coordinates 108@ {x} -2681.7461 {y} 1608.7939 {z} 0.9
set_object_heading 108@ {heading} 180.0
set_object_coordinates 72@ {x} -2689.573 {y} 1607.7939 {z} 0.0
set_object_coordinates 73@ {x} -2674.354 {y} 1607.7939 {z} 0.0
set_object_coordinates 74@ {x} -2689.27 {y} 1533.282 {z} 0.0
set_object_coordinates 75@ {x} -2674.6399 {y} 1530.12 {z} 0.0
set_object_coordinates 76@ {x} -2553.7 {y} 1494.392 {z} 0.0
set_object_coordinates 77@ {x} -2550.7419 {y} 1481.417 {z} 0.0
set_object_coordinates 78@ {x} -2453.7 {y} 1494.392 {z} 0.0
set_object_coordinates 79@ {x} -2450.7419 {y} 1481.417 {z} 0.0
set_object_coordinates 80@ {x} -2353.7 {y} 1474.392 {z} 0.0
set_object_coordinates 81@ {x} -2350.7419 {y} 1461.417 {z} 0.0
set_object_coordinates 82@ {x} -2284.2419 {y} 1547.5811 {z} 0.0
set_object_coordinates 83@ {x} -2270.8931 {y} 1550.765 {z} 0.0
set_object_coordinates 84@ {x} -2334.2419 {y} 1647.5811 {z} 0.0
set_object_coordinates 85@ {x} -2320.8931 {y} 1650.765 {z} 0.0
set_object_coordinates 86@ {x} -2284.2419 {y} 1747.5811 {z} 0.0
set_object_coordinates 87@ {x} -2270.8931 {y} 1750.765 {z} 0.0
set_object_coordinates 88@ {x} -2139.394 {y} 1821.2629 {z} 0.0
set_object_coordinates 89@ {x} -2134.5811 {y} 1808.785 {z} 0.0
set_object_coordinates 90@ {x} -2039.394 {y} 1761.2629 {z} 0.0
set_object_coordinates 91@ {x} -2034.5811 {y} 1748.785 {z} 0.0
set_object_coordinates 92@ {x} -1939.394 {y} 1841.2629 {z} 0.0
set_object_coordinates 93@ {x} -1934.5811 {y} 1828.785 {z} 0.0
set_object_coordinates 94@ {x} -1809.394 {y} 1801.2629 {z} 0.0
set_object_coordinates 95@ {x} -1804.5811 {y} 1788.785 {z} 0.0
set_object_coordinates 96@ {x} -1831.853 {y} 1909.105 {z} 0.0
set_object_coordinates 97@ {x} -1847.2531 {y} 1906.1121 {z} 0.0
set_object_coordinates 98@ {x} -1879.002 {y} 2073.6011 {z} 0.0
set_object_coordinates 99@ {x} -1893.786 {y} 2068.166 {z} 0.0

:BOAT_37225
return 

:BOAT_37227
156@ = 0

:BOAT_37234
if 
  50 > 156@
goto_if_false @BOAT_37284
delete_object 56@(156@,50i)
delete_object 106@(156@,50i)
156@ += 1
goto @BOAT_37234

:BOAT_37284
return 

:BOAT_37286
249@ = get_current_language 
return 

:BOAT_37293
load_scene_in_direction -2185.335 {y} 2410.4089 {z} 3.9752 {heading} 122.2585
clear_help 
clear_prints 
set_char_heading $scplayer {heading} 177@
set_camera_behind_player 
restore_camera_jumpcut 
return 

:BOAT_37333
if 
  $boat_passed_once == 0
goto_if_false @BOAT_37409
clear_mission_audio MissionAudioSlot.Slot3
print_big 'BOAT_P2' {time} 5000 {style} TextStyle.Middle
print 'BOAT_P1' {time} 5000 {flag} 1
play_mission_passed_tune 2
clear_wanted_level $player1
player_made_progress 1
register_oddjob_mission_passed 
$boat_passed_once = 1

:BOAT_37409
return 

:BOAT_37411
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundEnableHeliAudio
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
set_player_can_do_drive_by $player1 {state} True
set_char_drowns_in_water $scplayer {state} True
clear_mission_audio MissionAudioSlot.Slot3
display_hud True
display_radar True
display_car_names True
display_zone_names True
clear_onscreen_timer $boat_which_score_displayed
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
mark_model_as_no_longer_needed 210
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 38@
delete_car 37@
delete_car 46@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
mark_model_as_no_longer_needed 473
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 472
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 539
release_weather 
set_player_control $player1 {state} True
$timer_mobile_start = get_game_timer 
if 
  $boat_gold_rewardgiven == 0
goto_if_false @BOAT_37738
if 
  $boat_accelerate_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_simplecircuit_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_slalom_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_skijump_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_hover_goldachieved == 1
goto_if_false @BOAT_37738
$boat_gold_rewardgiven = 1
$boat_silver_rewardgiven = 99
$boat_bronze_rewardgiven = 99

:BOAT_37738
if 
  $boat_silver_rewardgiven == 0
goto_if_false @BOAT_37860
if 
  $boat_accelerate_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_simplecircuit_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_slalom_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_skijump_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_hover_silverachieved == 1
goto_if_false @BOAT_37860
$boat_silver_rewardgiven = 1
$boat_bronze_rewardgiven = 99

:BOAT_37860
if 
  $boat_bronze_rewardgiven == 0
goto_if_false @BOAT_37975
if 
  $boat_accelerate_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_simplecircuit_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_slalom_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_skijump_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_hover_bronzeachieved == 1
goto_if_false @BOAT_37975
$boat_bronze_rewardgiven = 1

:BOAT_37975
if 
  $boat_gold_rewardgiven == 1
goto_if_false @BOAT_38042
switch_car_generator $boat_gold_generator {amount} 101
set_has_been_owned_for_car_generator $boat_gold_generator {state} True
switch_car_generator $boat_silver_generator {amount} 101
set_has_been_owned_for_car_generator $boat_silver_generator {state} True
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_gold_rewardgiven = 2

:BOAT_38042
if 
  $boat_silver_rewardgiven == 1
goto_if_false @BOAT_38095
switch_car_generator $boat_silver_generator {amount} 101
set_has_been_owned_for_car_generator $boat_silver_generator {state} True
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_silver_rewardgiven = 2

:BOAT_38095
if 
  $boat_bronze_rewardgiven == 1
goto_if_false @BOAT_38134
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_bronze_rewardgiven = 2

:BOAT_38134
$onmission = 0
mission_has_finished 
return 

//-------------Mission 120---------------
// Originally: Bike School

:BSKOOL
script_name 'BSKOOL'
gosub @BSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @BSKOOL_38
gosub @BSKOOL_11872

:BSKOOL_38
gosub @BSKOOL_11977
terminate_this_script 

:BSKOOL_47
clear_this_print 'M_FAIL'
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_78
register_mission_given 

:BSKOOL_78
$onmission = 1
load_mission_text 'BS'
set_fading_colour 0 {g} 0 {b} 0
wait 0
if 
  $onmission == 0
goto_if_false @BSKOOL_206
38@ = create_car 581 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$trafficcones[20] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
$trafficcones[30] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
56@ = create_object #LANDJUMP2 {x} $car_posx {y} $car_posy {z} $perfect_positionz

:BSKOOL_206
34@ = 0
61@ = 0
62@ = 0
57@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
51@ = 0
if 
  $bs_open_tests == 0
goto_if_false @BSKOOL_301
$bs_open_tests = 1

:BSKOOL_301
$mission_selection = 1
$start_coordsx = 1130.4399
$start_coordsy = 1341.0
$noticeboard_x = 1173.9301
$noticeboard_y = 1351.066
$noticeboard_z = 9.9219
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
request_model 581
request_model 521
request_model 461
request_model #TRAFFICCONE
request_model #LANDJUMP2
request_model 522
request_model 468
request_model 50

:BSKOOL_417
if or
  not has_model_loaded 581
  not has_model_loaded 521
  not has_model_loaded 461
  not has_model_loaded #TRAFFICCONE
  not has_model_loaded #LANDJUMP2
goto_if_false @BSKOOL_464
wait 0
goto @BSKOOL_417

:BSKOOL_464
if or
  not has_model_loaded 468
  not has_model_loaded 50
  not has_model_loaded 522
goto_if_false @BSKOOL_500
wait 0
goto @BSKOOL_464

:BSKOOL_500
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
set_player_control $player1 {state} True
display_hud False
goto @BSKOOL_632

:BSKOOL_632
set_player_control $player1 {state} False
clear_help 
clear_prints 
50@ = store_wanted_level $player1
clear_wanted_level $player1
gosub @BSKOOL_16223
34@ = 0
57@ = 0
use_text_commands True
64@ = 255
63@ = 2
if 
  7 > $bs_open_tests
goto_if_false @BSKOOL_722
set_var_int_to_lvar_int $mission_selection = 37@

:BSKOOL_722
do_fade 500 {direction} Fade.In

:BSKOOL_729
if 
  get_fading_status 
goto_if_false @BSKOOL_762
clear_prints 
gosub @BSKOOL_12657
wait 0
goto @BSKOOL_729

:BSKOOL_762
gosub @BSKOOL_12657
display_radar False

:BSKOOL_773
wait 0
gosub @BSKOOL_12657
if 
  51@ == 0
goto_if_false @BSKOOL_816
load_mission_audio MissionAudioSlot.Slot3 {audioId} 31400
51@ = 1

:BSKOOL_816
if 
  51@ == 1
goto_if_false @BSKOOL_856
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BSKOOL_856
51@ = 2

:BSKOOL_856
if 
  51@ == 2
goto_if_false @BSKOOL_885
play_mission_audio MissionAudioSlot.Slot3
51@ = 3

:BSKOOL_885
if 
  57@ == 0
goto_if_false @BSKOOL_1382
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BSKOOL_1000
37@ -= 1
$mission_selection -= 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1000
if 
  4 > 34@
goto_if_false @BSKOOL_1000
34@ = 3

:BSKOOL_1000
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BSKOOL_1081
37@ += 1
$mission_selection += 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1081
if 
  4 > 34@
goto_if_false @BSKOOL_1081
34@ = 3

:BSKOOL_1081
if 
  1 > $mission_selection
goto_if_false @BSKOOL_1115
set_var_int_to_var_int $mission_selection = $bs_open_tests
set_lvar_int_to_var_int 37@ = $bs_open_tests

:BSKOOL_1115
if 
  is_int_var_greater_than_int_var $mission_selection > $bs_open_tests
goto_if_false @BSKOOL_1148
37@ = 1
$mission_selection = 1

:BSKOOL_1148
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BSKOOL_1183
wait 0
gosub @BSKOOL_12657
goto @BSKOOL_1148

:BSKOOL_1183
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BSKOOL_1218
wait 0
gosub @BSKOOL_12657
goto @BSKOOL_1183

:BSKOOL_1218
if 
  -100 > $LStickX
goto_if_false @BSKOOL_1270
wait 0
gosub @BSKOOL_12657
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BSKOOL_1218

:BSKOOL_1270
if 
  $LStickX > 100
goto_if_false @BSKOOL_1322
wait 0
gosub @BSKOOL_12657
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BSKOOL_1270

:BSKOOL_1322
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BSKOOL_1382
if 
  4 > 34@
goto_if_false @BSKOOL_1364
34@ = 3

:BSKOOL_1364
clear_mission_audio MissionAudioSlot.Slot3
51@ = 0
goto @BSKOOL_1627

:BSKOOL_1382
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BSKOOL_1404
$bs_open_tests = 6

:BSKOOL_1404
if 
is_ps2_keyboard_key_pressed 34
goto_if_false @BSKOOL_1468
$bs_open_tests = 6
$bs_wheelie_best_score = 100
$bs_stoppie_best_score = 100
$bs_the360_best_score = 100
$bs_the180_best_score = 100
$bs_jumpstop_best_score = 100
$bs_jumpstoppie_best_score = 100

:BSKOOL_1468
if and
  $bs_wheelie_best_score > 69
  $bs_stoppie_best_score > 69
  $bs_the360_best_score > 69
  $bs_the180_best_score > 69
  $bs_jumpstop_best_score > 69
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_1528
$bs_passed = 1

:BSKOOL_1528
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_1578
if 
  $bs_passed == 1
goto_if_false @BSKOOL_1578
gosub @BSKOOL_20195
goto @BSKOOL_11900

:BSKOOL_1578
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_1613
clear_mission_audio MissionAudioSlot.Slot3
51@ = 0
goto @BSKOOL_11872

:BSKOOL_1613
gosub @BSKOOL_15413
goto @BSKOOL_773

:BSKOOL_1627
do_fade 500 {direction} Fade.Out

:BSKOOL_1634
if 
  get_fading_status 
goto_if_false @BSKOOL_1665
gosub @BSKOOL_12657
wait 0
goto @BSKOOL_1634

:BSKOOL_1665
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_1686
stop_playback_recorded_car 38@

:BSKOOL_1686
delete_car 38@
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_car 38@
gosub @BSKOOL_20534
34@ = 5
display_radar True
if 
  $mission_selection == 1
goto_if_false @BSKOOL_3435

:BSKOOL_1759
gosub @BSKOOL_16186

:BSKOOL_1766
$perfect_heading = 180.0
$car_timer = 16000
35@ = 181
gosub @BSKOOL_16223
38@ = create_car 581 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_1922
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_1879
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_1879
set_fixed_camera_position 1125.66 {y} 1334.4 {z} 22.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_1922
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_now 'BS_A_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_1976
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_2011
48@ = 2
goto @BSKOOL_3375

:BSKOOL_2011
gosub @BSKOOL_17012
if 
  48@ == 1
goto_if_false @BSKOOL_2043
goto @BSKOOL_11872

:BSKOOL_2043
if 
  $car_started == 0
goto_if_false @BSKOOL_2091
print_now 'BS_A_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_3428

:BSKOOL_2091
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_3428
gosub @BSKOOL_17246
$perfect_heading = get_car_heading 38@
if 
  $variablec == 0
goto_if_false @BSKOOL_2196
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2196
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2196
$variablec = 1
58@ = 1

:BSKOOL_2196
if 
  58@ == 1
goto_if_false @BSKOOL_2415
if 
  $variablec == 1
goto_if_false @BSKOOL_2281
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2281
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2281
$variablec = 2

:BSKOOL_2281
if 
  $variablec == 2
goto_if_false @BSKOOL_2348
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2348
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2348
$variablec = 3

:BSKOOL_2348
if 
  $variablec == 3
goto_if_false @BSKOOL_2415
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2415
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2415
$variablec = 4

:BSKOOL_2415
if 
  $variablec == 0
goto_if_false @BSKOOL_2489
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2489
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2489
58@ = 2
$variablec = 1

:BSKOOL_2489
if 
  58@ == 2
goto_if_false @BSKOOL_2708
if 
  $variablec == 1
goto_if_false @BSKOOL_2574
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2574
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2574
$variablec = 2

:BSKOOL_2574
if 
  $variablec == 2
goto_if_false @BSKOOL_2641
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2641
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2641
$variablec = 3

:BSKOOL_2641
if 
  $variablec == 3
goto_if_false @BSKOOL_2708
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2708
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2708
$variablec = 4

:BSKOOL_2708
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
  not is_char_in_car $scplayer {vehicle} 38@
  $car_timer == 0
goto_if_false @BSKOOL_3428
gosub @BSKOOL_17280
gosub @BSKOOL_17293
if 
  $variablec == 4
goto_if_false @BSKOOL_2785
$heading_score = 100

:BSKOOL_2785
if 
  $variablec == 3
goto_if_false @BSKOOL_2810
$heading_score = 75

:BSKOOL_2810
if 
  $variablec == 2
goto_if_false @BSKOOL_2835
$heading_score = 50

:BSKOOL_2835
if 
  $variablec == 1
goto_if_false @BSKOOL_2860
$heading_score = 25

:BSKOOL_2860
if 
  $variablec == 0
goto_if_false @BSKOOL_2885
$heading_score = 0

:BSKOOL_2885
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_2933
$overall_score = 0

:BSKOOL_2933
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the360_best_score
goto_if_false @BSKOOL_3153
set_lvar_int_to_var_int 67@ = $bs_the360_best_score
set_var_int_to_var_int $bs_the360_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_3053
if 
  $bs_the360_goldachieved == 0
goto_if_false @BSKOOL_3053
$bs_the360_goldachieved = 1
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3053
if 
  65@ == 3
goto_if_false @BSKOOL_3103
if 
  $bs_the360_silverachieved == 0
goto_if_false @BSKOOL_3103
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3103
if 
  65@ == 2
goto_if_false @BSKOOL_3146
if 
  $bs_the360_bronzeachieved == 0
goto_if_false @BSKOOL_3146
$bs_the360_bronzeachieved = 1

:BSKOOL_3146
goto @BSKOOL_3160

:BSKOOL_3153
65@ = 0

:BSKOOL_3160
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_3244
if 
  $overall_score > 69
goto_if_false @BSKOOL_3244
59@ = 2
$bs_open_tests = 2
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_3244
TIMERA = 0

:BSKOOL_3251
if 
  TIMERA > -1
goto_if_false @BSKOOL_3375
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_3329
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_3329
48@ = 2
goto @BSKOOL_3375

:BSKOOL_3329
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_3368
goto @BSKOOL_3375

:BSKOOL_3368
goto @BSKOOL_3251

:BSKOOL_3375
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_3421
goto @BSKOOL_632
goto @BSKOOL_3428

:BSKOOL_3421
goto @BSKOOL_1759

:BSKOOL_3428
goto @BSKOOL_1976

:BSKOOL_3435
if 
  $mission_selection == 2
goto_if_false @BSKOOL_4860

:BSKOOL_3453
gosub @BSKOOL_16186

:BSKOOL_3460
$perfect_heading = 0.0
$car_timer = 11000
35@ = 182
gosub @BSKOOL_16223
38@ = create_car 461 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_3616
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_3573
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_3573
set_fixed_camera_position 1130.66 {y} 1264.4 {z} 14.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_3616
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.0 {yOffset} 82.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.0 {yOffset} 88.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_now 'BS_B_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_3728
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_3763
48@ = 2
goto @BSKOOL_4800

:BSKOOL_3763
if 
  $car_started == 0
goto_if_false @BSKOOL_3811
print_now 'BS_B_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_4853

:BSKOOL_3811
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_4853
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_3889
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_3889
$variablec = 1

:BSKOOL_3889
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_4853
gosub @BSKOOL_17280
gosub @BSKOOL_17293
if 
  $variablec == 0
goto_if_false @BSKOOL_3952
$position_score = 0

:BSKOOL_3952
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  39@ == 0
goto_if_false @BSKOOL_4000
$heading_score = 100
goto @BSKOOL_4285

:BSKOOL_4000
if 
  39@ == 360
goto_if_false @BSKOOL_4033
$heading_score = 100
goto @BSKOOL_4285

:BSKOOL_4033
if 
  39@ > 0
goto_if_false @BSKOOL_4076
if 
  21 > 39@
goto_if_false @BSKOOL_4076
$heading_score = 100

:BSKOOL_4076
if 
  39@ > 179
goto_if_false @BSKOOL_4155
if 
  340 > 39@
goto_if_false @BSKOOL_4155
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_4285

:BSKOOL_4155
if 
  39@ > 339
goto_if_false @BSKOOL_4200
if 
  360 > 39@
goto_if_false @BSKOOL_4200
$heading_score = 100

:BSKOOL_4200
if 
  39@ > 20
goto_if_false @BSKOOL_4285
if 
  180 > 39@
goto_if_false @BSKOOL_4285
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_4285

:BSKOOL_4285
if 
  1 > $heading_score
goto_if_false @BSKOOL_4310
$heading_score = 0

:BSKOOL_4310
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_4358
$overall_score = 0

:BSKOOL_4358
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the180_best_score
goto_if_false @BSKOOL_4578
set_lvar_int_to_var_int 67@ = $bs_the180_best_score
set_var_int_to_var_int $bs_the180_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_4478
if 
  $bs_the180_goldachieved == 0
goto_if_false @BSKOOL_4478
$bs_the180_goldachieved = 1
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4478
if 
  65@ == 3
goto_if_false @BSKOOL_4528
if 
  $bs_the180_silverachieved == 0
goto_if_false @BSKOOL_4528
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4528
if 
  65@ == 2
goto_if_false @BSKOOL_4571
if 
  $bs_the180_bronzeachieved == 0
goto_if_false @BSKOOL_4571
$bs_the180_bronzeachieved = 1

:BSKOOL_4571
goto @BSKOOL_4585

:BSKOOL_4578
65@ = 0

:BSKOOL_4585
if 
  $bs_open_tests == 2
goto_if_false @BSKOOL_4669
if 
  $overall_score > 69
goto_if_false @BSKOOL_4669
59@ = 2
$bs_open_tests = 3
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_4669
TIMERA = 0

:BSKOOL_4676
if 
  TIMERA > -1
goto_if_false @BSKOOL_4800
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_4754
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_4754
48@ = 2
goto @BSKOOL_4800

:BSKOOL_4754
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_4793
goto @BSKOOL_4800

:BSKOOL_4793
goto @BSKOOL_4676

:BSKOOL_4800
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_4846
goto @BSKOOL_632
goto @BSKOOL_4853

:BSKOOL_4846
goto @BSKOOL_3453

:BSKOOL_4853
goto @BSKOOL_3728

:BSKOOL_4860
if 
  $mission_selection == 3
goto_if_false @BSKOOL_6628

:BSKOOL_4878
gosub @BSKOOL_16186

:BSKOOL_4885
$perfect_heading = 180.0
$car_timer = 9000
35@ = 183
gosub @BSKOOL_16223
38@ = create_car 521 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_5041
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_4998
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_4998
set_fixed_camera_position 1125.66 {y} 1283.4 {z} 10.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_5041
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_C_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_5153
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_5188
48@ = 2
goto @BSKOOL_6568

:BSKOOL_5188
if 
  $car_started == 0
goto_if_false @BSKOOL_5236
print_now 'BS_C_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_6621

:BSKOOL_5236
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_6621
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_5314
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_5314
$variablec = 1

:BSKOOL_5314
if 
  $variablec == 1
goto_if_false @BSKOOL_5455
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_5432
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_5425
gosub @BSKOOL_17280
goto @BSKOOL_5432

:BSKOOL_5425
$variablec = 2

:BSKOOL_5432
if 
  not is_player_performing_wheelie $player1
goto_if_false @BSKOOL_5455
gosub @BSKOOL_17280

:BSKOOL_5455
42@ = get_car_heading 38@
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_5605
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_5533
44@ += 0.1

:BSKOOL_5533
if 
  44@ == 360.0
goto_if_false @BSKOOL_5564
  44@ > 0.0

:BSKOOL_5564
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_5605
44@ -= 0.1

:BSKOOL_5605
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_6621
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_5684
gosub @BSKOOL_17293
goto @BSKOOL_5691

:BSKOOL_5684
$position_score = 0

:BSKOOL_5691
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_6039
if 
  39@ == 0
goto_if_false @BSKOOL_5757
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_5757
if 
  39@ == 180
goto_if_false @BSKOOL_5790
$heading_score = 100
goto @BSKOOL_6053

:BSKOOL_5790
if 
  39@ == 360
goto_if_false @BSKOOL_5823
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_5823
if 
  39@ > 0
goto_if_false @BSKOOL_5893
if 
  175 > 39@
goto_if_false @BSKOOL_5893
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_6053

:BSKOOL_5893
if 
  39@ > 174
goto_if_false @BSKOOL_5938
if 
  186 > 39@
goto_if_false @BSKOOL_5938
$heading_score = 100

:BSKOOL_5938
if 
  39@ > 185
goto_if_false @BSKOOL_6032
if 
  360 > 39@
goto_if_false @BSKOOL_6032
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_6053

:BSKOOL_6032
goto @BSKOOL_6053

:BSKOOL_6039
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_6053
if 
  1 > $heading_score
goto_if_false @BSKOOL_6078
$heading_score = 0

:BSKOOL_6078
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_6126
$overall_score = 0

:BSKOOL_6126
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_wheelie_best_score
goto_if_false @BSKOOL_6346
set_lvar_int_to_var_int 67@ = $bs_wheelie_best_score
set_var_int_to_var_int $bs_wheelie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_6246
if 
  $bs_wheelie_goldachieved == 0
goto_if_false @BSKOOL_6246
$bs_wheelie_goldachieved = 1
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6246
if 
  65@ == 3
goto_if_false @BSKOOL_6296
if 
  $bs_wheelie_silverachieved == 0
goto_if_false @BSKOOL_6296
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6296
if 
  65@ == 2
goto_if_false @BSKOOL_6339
if 
  $bs_wheelie_bronzeachieved == 0
goto_if_false @BSKOOL_6339
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6339
goto @BSKOOL_6353

:BSKOOL_6346
65@ = 0

:BSKOOL_6353
if 
  $bs_open_tests == 3
goto_if_false @BSKOOL_6437
if 
  $overall_score > 69
goto_if_false @BSKOOL_6437
59@ = 2
$bs_open_tests = 4
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_6437
TIMERA = 0

:BSKOOL_6444
if 
  TIMERA > -1
goto_if_false @BSKOOL_6568
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_6522
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_6522
48@ = 2
goto @BSKOOL_6568

:BSKOOL_6522
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_6561
goto @BSKOOL_6568

:BSKOOL_6561
goto @BSKOOL_6444

:BSKOOL_6568
gosub @BSKOOL_20534
gosub @BSKOOL_20195
if 
  48@ == 2
goto_if_false @BSKOOL_6614
goto @BSKOOL_632
goto @BSKOOL_6621

:BSKOOL_6614
goto @BSKOOL_4878

:BSKOOL_6621
goto @BSKOOL_5153

:BSKOOL_6628
if 
  $mission_selection == 5
goto_if_false @BSKOOL_8404

:BSKOOL_6646
gosub @BSKOOL_16186

:BSKOOL_6653
$perfect_heading = 180.0
$car_timer = 9000
35@ = 184
gosub @BSKOOL_16223
38@ = create_car 521 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_6809
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_6766
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_6766
set_fixed_camera_position 1125.66 {y} 1283.4 {z} 10.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_6809
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_D_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_6921
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_6956
48@ = 2
goto @BSKOOL_8344

:BSKOOL_6956
if 
  $car_started == 0
goto_if_false @BSKOOL_7004
print_now 'BS_D_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_8397

:BSKOOL_7004
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_8397
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_7082
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_7082
$variablec = 1

:BSKOOL_7082
if 
  $variablec == 1
goto_if_false @BSKOOL_7223
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_7200
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_7193
gosub @BSKOOL_17280
goto @BSKOOL_7200

:BSKOOL_7193
$variablec = 2

:BSKOOL_7200
if 
  not is_player_performing_stoppie $player1
goto_if_false @BSKOOL_7223
gosub @BSKOOL_17280

:BSKOOL_7223
42@ = get_car_heading 38@
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_7373
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_7301
44@ += 0.1

:BSKOOL_7301
if 
  44@ == 360.0
goto_if_false @BSKOOL_7332
  44@ > 0.0

:BSKOOL_7332
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_7373
44@ -= 0.1

:BSKOOL_7373
43@ = get_car_speed 38@
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_8397
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_7460
gosub @BSKOOL_17293
goto @BSKOOL_7467

:BSKOOL_7460
$position_score = 0

:BSKOOL_7467
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_7815
if 
  39@ == 0
goto_if_false @BSKOOL_7533
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7533
if 
  39@ == 180
goto_if_false @BSKOOL_7566
$heading_score = 100
goto @BSKOOL_7829

:BSKOOL_7566
if 
  39@ == 360
goto_if_false @BSKOOL_7599
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7599
if 
  39@ > 0
goto_if_false @BSKOOL_7669
if 
  175 > 39@
goto_if_false @BSKOOL_7669
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_7829

:BSKOOL_7669
if 
  39@ > 174
goto_if_false @BSKOOL_7714
if 
  186 > 39@
goto_if_false @BSKOOL_7714
$heading_score = 100

:BSKOOL_7714
if 
  39@ > 185
goto_if_false @BSKOOL_7808
if 
  360 > 39@
goto_if_false @BSKOOL_7808
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_7829

:BSKOOL_7808
goto @BSKOOL_7829

:BSKOOL_7815
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7829
if 
  1 > $heading_score
goto_if_false @BSKOOL_7854
$heading_score = 0

:BSKOOL_7854
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_7902
$overall_score = 0

:BSKOOL_7902
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_stoppie_best_score
goto_if_false @BSKOOL_8122
set_lvar_int_to_var_int 67@ = $bs_stoppie_best_score
set_var_int_to_var_int $bs_stoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_8022
if 
  $bs_stoppie_goldachieved == 0
goto_if_false @BSKOOL_8022
$bs_stoppie_goldachieved = 1
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8022
if 
  65@ == 3
goto_if_false @BSKOOL_8072
if 
  $bs_stoppie_silverachieved == 0
goto_if_false @BSKOOL_8072
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8072
if 
  65@ == 2
goto_if_false @BSKOOL_8115
if 
  $bs_stoppie_bronzeachieved == 0
goto_if_false @BSKOOL_8115
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8115
goto @BSKOOL_8129

:BSKOOL_8122
65@ = 0

:BSKOOL_8129
if 
  $bs_open_tests == 5
goto_if_false @BSKOOL_8213
if 
  $overall_score > 69
goto_if_false @BSKOOL_8213
59@ = 2
$bs_open_tests = 6
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_8213
TIMERA = 0

:BSKOOL_8220
if 
  TIMERA > -1
goto_if_false @BSKOOL_8344
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_8298
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_8298
48@ = 2
goto @BSKOOL_8344

:BSKOOL_8298
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_8337
goto @BSKOOL_8344

:BSKOOL_8337
goto @BSKOOL_8220

:BSKOOL_8344
gosub @BSKOOL_20534
gosub @BSKOOL_20195
if 
  48@ == 2
goto_if_false @BSKOOL_8390
goto @BSKOOL_632
goto @BSKOOL_8397

:BSKOOL_8390
goto @BSKOOL_6646

:BSKOOL_8397
goto @BSKOOL_6921

:BSKOOL_8404
if 
  $mission_selection == 4
goto_if_false @BSKOOL_9997

:BSKOOL_8422
gosub @BSKOOL_16186

:BSKOOL_8429
$perfect_heading = 180.0
$car_timer = 9000
35@ = 185
gosub @BSKOOL_16223
38@ = create_car 468 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} $perfect_heading
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.5 {yOffset} 46.0 {zOffset} 2.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.5 {yOffset} 50.0 {zOffset} 2.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_8641
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_8598
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_8598
set_fixed_camera_position 1127.66 {y} 1288.4 {z} 12.75 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_8641
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_E_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_8695
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_8730
48@ = 2
goto @BSKOOL_9937

:BSKOOL_8730
if 
  $car_started == 0
goto_if_false @BSKOOL_8778
print_now 'BS_E_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_9990

:BSKOOL_8778
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_9990
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_8856
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_8856
$variablec = 1

:BSKOOL_8856
if 
  $variablec == 1
goto_if_false @BSKOOL_8974
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_8974
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_8967
gosub @BSKOOL_17280
goto @BSKOOL_8974

:BSKOOL_8967
$variablec = 2

:BSKOOL_8974
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_9990
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_9053
gosub @BSKOOL_17293
goto @BSKOOL_9060

:BSKOOL_9053
$position_score = 0

:BSKOOL_9060
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_9408
if 
  39@ == 0
goto_if_false @BSKOOL_9126
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9126
if 
  39@ == 180
goto_if_false @BSKOOL_9159
$heading_score = 100
goto @BSKOOL_9422

:BSKOOL_9159
if 
  39@ == 360
goto_if_false @BSKOOL_9192
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9192
if 
  39@ > 0
goto_if_false @BSKOOL_9262
if 
  175 > 39@
goto_if_false @BSKOOL_9262
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_9422

:BSKOOL_9262
if 
  39@ > 174
goto_if_false @BSKOOL_9307
if 
  186 > 39@
goto_if_false @BSKOOL_9307
$heading_score = 100

:BSKOOL_9307
if 
  39@ > 185
goto_if_false @BSKOOL_9401
if 
  360 > 39@
goto_if_false @BSKOOL_9401
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_9422

:BSKOOL_9401
goto @BSKOOL_9422

:BSKOOL_9408
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9422
if 
  1 > $heading_score
goto_if_false @BSKOOL_9447
$heading_score = 0

:BSKOOL_9447
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_9495
$overall_score = 0

:BSKOOL_9495
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstop_best_score
goto_if_false @BSKOOL_9715
set_lvar_int_to_var_int 67@ = $bs_jumpstop_best_score
set_var_int_to_var_int $bs_jumpstop_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_9615
if 
  $bs_jumpstop_goldachieved == 0
goto_if_false @BSKOOL_9615
$bs_jumpstop_goldachieved = 1
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9615
if 
  65@ == 3
goto_if_false @BSKOOL_9665
if 
  $bs_jumpstop_silverachieved == 0
goto_if_false @BSKOOL_9665
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9665
if 
  65@ == 2
goto_if_false @BSKOOL_9708
if 
  $bs_jumpstop_bronzeachieved == 0
goto_if_false @BSKOOL_9708
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9708
goto @BSKOOL_9722

:BSKOOL_9715
65@ = 0

:BSKOOL_9722
if 
  $bs_open_tests == 4
goto_if_false @BSKOOL_9806
if 
  $overall_score > 69
goto_if_false @BSKOOL_9806
59@ = 2
$bs_open_tests = 5
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart
48@ = 2
37@ += 1

:BSKOOL_9806
TIMERA = 0

:BSKOOL_9813
if 
  TIMERA > -1
goto_if_false @BSKOOL_9937
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_9891
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_9891
48@ = 2
goto @BSKOOL_9937

:BSKOOL_9891
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_9930
goto @BSKOOL_9937

:BSKOOL_9930
goto @BSKOOL_9813

:BSKOOL_9937
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_9983
goto @BSKOOL_632
goto @BSKOOL_9990

:BSKOOL_9983
goto @BSKOOL_8422

:BSKOOL_9990
goto @BSKOOL_8695

:BSKOOL_9997
if 
  $mission_selection == 6
goto_if_false @BSKOOL_11872

:BSKOOL_10015
gosub @BSKOOL_16186

:BSKOOL_10022
$perfect_heading = 180.0
$car_timer = 9000
35@ = 186
gosub @BSKOOL_16223
38@ = create_car 522 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} $perfect_heading
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.5 {yOffset} 46.0 {zOffset} 2.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.5 {yOffset} 52.0 {zOffset} 2.0
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_10234
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_10191
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_10191
set_fixed_camera_position 1122.66 {y} 1265.4 {z} 15.75 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_10234
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 114.0 {zOffset} 0.0
clear_prints 
print_now 'BS_F_1' {time} 5000 {flag} 4
gosub @BSKOOL_16945

:BSKOOL_10288
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_10323
48@ = 2
goto @BSKOOL_11673

:BSKOOL_10323
if 
  $car_started == 0
goto_if_false @BSKOOL_10371
print_now 'BS_F_1' {time} 5000 {flag} 4
gosub @BSKOOL_17088
goto @BSKOOL_11865

:BSKOOL_10371
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_11865
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_10449
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_10449
$variablec = 1

:BSKOOL_10449
if 
  $variablec == 1
goto_if_false @BSKOOL_10567
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_10567
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_10560
gosub @BSKOOL_17280
goto @BSKOOL_10567

:BSKOOL_10560
$variablec = 2

:BSKOOL_10567
if 
  $variablec == 2
goto_if_false @BSKOOL_10613
if 
  not is_car_in_air_proper 38@
goto_if_false @BSKOOL_10613
70@ = get_game_timer 
$variablec = 3

:BSKOOL_10613
if 
  $variablec == 3
goto_if_false @BSKOOL_10699
69@ = get_game_timer 
set_lvar_int_to_lvar_int 68@ = 69@
sub_int_lvar_from_int_lvar 68@ -= 70@
if 
  68@ > 250
goto_if_false @BSKOOL_10699
if or
  not is_player_performing_stoppie $player1
  is_player_performing_wheelie $player1
goto_if_false @BSKOOL_10699
gosub @BSKOOL_17280

:BSKOOL_10699
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_11865
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_10778
gosub @BSKOOL_17293
goto @BSKOOL_10785

:BSKOOL_10778
$position_score = 0

:BSKOOL_10785
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_11133
if 
  39@ == 0
goto_if_false @BSKOOL_10851
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_10851
if 
  39@ == 180
goto_if_false @BSKOOL_10884
$heading_score = 100
goto @BSKOOL_11147

:BSKOOL_10884
if 
  39@ == 360
goto_if_false @BSKOOL_10917
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_10917
if 
  39@ > 0
goto_if_false @BSKOOL_10987
if 
  175 > 39@
goto_if_false @BSKOOL_10987
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_11147

:BSKOOL_10987
if 
  39@ > 174
goto_if_false @BSKOOL_11032
if 
  186 > 39@
goto_if_false @BSKOOL_11032
$heading_score = 100

:BSKOOL_11032
if 
  39@ > 185
goto_if_false @BSKOOL_11126
if 
  360 > 39@
goto_if_false @BSKOOL_11126
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_11147

:BSKOOL_11126
goto @BSKOOL_11147

:BSKOOL_11133
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_11147
if 
  1 > $heading_score
goto_if_false @BSKOOL_11172
$heading_score = 0

:BSKOOL_11172
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_11220
$overall_score = 0

:BSKOOL_11220
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstoppie_best_score
goto_if_false @BSKOOL_11440
set_lvar_int_to_var_int 67@ = $bs_jumpstoppie_best_score
set_var_int_to_var_int $bs_jumpstoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_11340
if 
  $bs_jumpstoppie_goldachieved == 0
goto_if_false @BSKOOL_11340
$bs_jumpstoppie_goldachieved = 1
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11340
if 
  65@ == 3
goto_if_false @BSKOOL_11390
if 
  $bs_jumpstoppie_silverachieved == 0
goto_if_false @BSKOOL_11390
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11390
if 
  65@ == 2
goto_if_false @BSKOOL_11433
if 
  $bs_jumpstoppie_bronzeachieved == 0
goto_if_false @BSKOOL_11433
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11433
goto @BSKOOL_11447

:BSKOOL_11440
65@ = 0

:BSKOOL_11447
if 
  $bs_passed == 0
goto_if_false @BSKOOL_11542
if 
  $bs_open_tests == 6
goto_if_false @BSKOOL_11542
if 
  $overall_score > 69
goto_if_false @BSKOOL_11542
59@ = 2
$bs_passed = 1
48@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_11542
TIMERA = 0

:BSKOOL_11549
if 
  TIMERA > -1
goto_if_false @BSKOOL_11673
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_11627
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_11627
48@ = 2
goto @BSKOOL_11673

:BSKOOL_11627
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_11666
goto @BSKOOL_11673

:BSKOOL_11666
goto @BSKOOL_11549

:BSKOOL_11673
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_11858
if 
  $bs_passed == 1
goto_if_false @BSKOOL_11844
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11844
do_fade 1000 {direction} Fade.Out

:BSKOOL_11748
if 
  get_fading_status 
goto_if_false @BSKOOL_11772
wait 0
goto @BSKOOL_11748

:BSKOOL_11772
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
set_char_heading $scplayer {heading} 11.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 2000 {direction} Fade.In

:BSKOOL_11813
if 
  get_fading_status 
goto_if_false @BSKOOL_11837
wait 0
goto @BSKOOL_11813

:BSKOOL_11837
goto @BSKOOL_11900

:BSKOOL_11844
goto @BSKOOL_632
goto @BSKOOL_11865

:BSKOOL_11858
goto @BSKOOL_10015

:BSKOOL_11865
goto @BSKOOL_10288

:BSKOOL_11872
clear_mission_audio MissionAudioSlot.Slot3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStop
clear_prints 
return 

:BSKOOL_11900
do_fade 500 {direction} Fade.In
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11948
register_oddjob_mission_passed 
player_made_progress 1
$flag_bikeschool_passed_1stime = 1
increment_float_stat StatId.BikeSkill {value} 50.0

:BSKOOL_11948
clear_prints 
print_big 'BS_Z_7' {time} 5000 {style} TextStyle.MiddleSmallerHigher
play_mission_passed_tune 2
clear_wanted_level $player1
return 

:BSKOOL_11977
clear_onscreen_timer $car_timer
use_text_commands False
display_hud True
display_radar True
release_weather 
mark_model_as_no_longer_needed #TRAFFICCONE
mark_model_as_no_longer_needed #LANDJUMP2
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 581
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 522
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 50
if 
  $bs_gold_rewardgiven == 0
goto_if_false @BSKOOL_12218
if 
  $bs_the360_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_the180_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_wheelie_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_stoppie_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_jumpstop_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_jumpstoppie_goldachieved == 1
goto_if_false @BSKOOL_12218
$bs_gold_rewardgiven = 1
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12193
$bs_silver_rewardgiven = 1

:BSKOOL_12193
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12218
$bs_bronze_rewardgiven = 1

:BSKOOL_12218
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12376
if 
  $bs_the360_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_the180_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_wheelie_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_stoppie_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_jumpstop_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_jumpstoppie_silverachieved == 1
goto_if_false @BSKOOL_12376
$bs_silver_rewardgiven = 1
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12376
$bs_bronze_rewardgiven = 1

:BSKOOL_12376
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12509
if 
  $bs_the360_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_the180_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_wheelie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_stoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_jumpstop_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_jumpstoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
$bs_bronze_rewardgiven = 1

:BSKOOL_12509
if 
  $bs_gold_rewardgiven == 1
goto_if_false @BSKOOL_12558
set_has_been_owned_for_car_generator $bs_gold_generator {state} True
switch_car_generator $bs_gold_generator {amount} 101
increment_float_stat StatId.BikeSkill {value} 200.0
$bs_gold_rewardgiven = 2

:BSKOOL_12558
if 
  $bs_silver_rewardgiven == 1
goto_if_false @BSKOOL_12607
set_has_been_owned_for_car_generator $bs_silver_generator {state} True
switch_car_generator $bs_silver_generator {amount} 101
increment_float_stat StatId.BikeSkill {value} 100.0
$bs_silver_rewardgiven = 2

:BSKOOL_12607
if 
  $bs_bronze_rewardgiven == 1
goto_if_false @BSKOOL_12646
set_has_been_owned_for_car_generator $bs_bronze_generator {state} True
switch_car_generator $bs_bronze_generator {amount} 101
$bs_bronze_rewardgiven = 2

:BSKOOL_12646
$onmission = 0
mission_has_finished 
return 

:BSKOOL_12657
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 64@
if 
  63@ == 1
goto_if_false @BSKOOL_12779
if 
  255 > 64@
goto_if_false @BSKOOL_12772
64@ += 5
if 
  64@ > 255
goto_if_false @BSKOOL_12765
64@ = 255

:BSKOOL_12765
goto @BSKOOL_12779

:BSKOOL_12772
63@ = 2

:BSKOOL_12779
if 
  63@ == 3
goto_if_false @BSKOOL_12861
if 
  64@ > 0
goto_if_false @BSKOOL_12854
64@ -= 5
if 
  0 > 64@
goto_if_false @BSKOOL_12847
64@ = 0

:BSKOOL_12847
goto @BSKOOL_12861

:BSKOOL_12854
63@ = 0

:BSKOOL_12861
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BSKOOL_16066
set_text_colour 190 {green} 190 {blue} 190 {alpha} 255
if 
  $mission_selection == 1
goto_if_false @BSKOOL_13056
display_text 322.0 {offsetTop} 41.0 {key} 'BS_A'
if 
  $bs_the360_best_score > 69
goto_if_false @BSKOOL_12991
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
goto @BSKOOL_13049

:BSKOOL_12991
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13049
gosub @BSKOOL_14558

:BSKOOL_13056
if 
  $mission_selection == 2
goto_if_false @BSKOOL_13193
display_text 322.0 {offsetTop} 41.0 {key} 'BS_B'
if 
  $bs_the180_best_score > 69
goto_if_false @BSKOOL_13128
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
goto @BSKOOL_13186

:BSKOOL_13128
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13186
gosub @BSKOOL_14558

:BSKOOL_13193
if 
  $mission_selection == 3
goto_if_false @BSKOOL_13330
display_text 322.0 {offsetTop} 41.0 {key} 'BS_C'
if 
  $bs_wheelie_best_score > 69
goto_if_false @BSKOOL_13265
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
goto @BSKOOL_13323

:BSKOOL_13265
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13323
gosub @BSKOOL_14558

:BSKOOL_13330
if 
  $mission_selection == 5
goto_if_false @BSKOOL_13467
display_text 322.0 {offsetTop} 41.0 {key} 'BS_D'
if 
  $bs_stoppie_best_score > 69
goto_if_false @BSKOOL_13402
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
goto @BSKOOL_13460

:BSKOOL_13402
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13460
gosub @BSKOOL_14558

:BSKOOL_13467
if 
  $mission_selection == 4
goto_if_false @BSKOOL_13604
display_text 322.0 {offsetTop} 41.0 {key} 'BS_E'
if 
  $bs_jumpstop_best_score > 69
goto_if_false @BSKOOL_13539
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
goto @BSKOOL_13597

:BSKOOL_13539
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13597
gosub @BSKOOL_14558

:BSKOOL_13604
if 
  $mission_selection == 6
goto_if_false @BSKOOL_13741
display_text 322.0 {offsetTop} 41.0 {key} 'BS_F'
if 
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_13676
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
goto @BSKOOL_13734

:BSKOOL_13676
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
gosub @BSKOOL_15888
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13734
gosub @BSKOOL_14558

:BSKOOL_13741
gosub @BSKOOL_15888
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 105.0 {offsetTop} 375.0 {key} 'BS_X_4'
if 
  57@ <> 1
goto_if_false @BSKOOL_13966
gosub @BSKOOL_15888
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 105.0 {offsetTop} 325.0 {key} 'BS_X_5'
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_13900
gosub @BSKOOL_15888
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 105.0 {offsetTop} 350.0 {key} 'BS_X_3'

:BSKOOL_13900
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_13959
gosub @BSKOOL_15888
set_text_colour 173 {green} 173 {blue} 173 {alpha} 125
display_text 105.0 {offsetTop} 350.0 {key} 'BS_X_3'

:BSKOOL_13959
goto @BSKOOL_14007

:BSKOOL_13966
gosub @BSKOOL_15888
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 105.0 {offsetTop} 350.0 {key} 'BS_X_3'

:BSKOOL_14007
gosub @BSKOOL_15888
set_text_scale 1.45 {heightScale} 2.0
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
display_text 70.0 {offsetTop} 372.0 {key} 'BS_X04'
if 
  57@ <> 1
goto_if_false @BSKOOL_14258
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
set_text_scale 1.45 {heightScale} 2.0
display_text 70.0 {offsetTop} 322.0 {key} 'BS_X05'
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_14188
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BS_X03'

:BSKOOL_14188
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_14251
set_text_colour 248 {green} 211 {blue} 7 {alpha} 125
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BS_X03'

:BSKOOL_14251
goto @BSKOOL_14304

:BSKOOL_14258
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
set_text_scale 1.45 {heightScale} 2.0
display_text 61.4 {offsetTop} 347.0 {key} 'BS_X03'

:BSKOOL_14304
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:BSKOOL_14558
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BSKOOL_15888
set_text_right_justify False
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
if 
  66@ > 69
goto_if_false @BSKOOL_14670
set_text_right_justify False
set_text_centre True
display_text_with_number 320.0 {offsetTop} 80.0 {key} 'BS_Y_6' {num} 66@

:BSKOOL_14670
if 
  70 > 66@
goto_if_false @BSKOOL_14695
65@ = 1

:BSKOOL_14695
if 
  66@ > 69
goto_if_false @BSKOOL_14738
if 
  85 > 66@
goto_if_false @BSKOOL_14738
65@ = 2

:BSKOOL_14738
if 
  66@ > 84
goto_if_false @BSKOOL_14781
if 
  100 > 66@
goto_if_false @BSKOOL_14781
65@ = 3

:BSKOOL_14781
if 
  66@ == 100
goto_if_false @BSKOOL_14806
65@ = 4

:BSKOOL_14806
if 
  65@ > 1
goto_if_false @BSKOOL_14911
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @BSKOOL_14991

:BSKOOL_14911
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:BSKOOL_14991
set_sprites_draw_before_fade True
if 
  65@ == 1
goto_if_false @BSKOOL_15099
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_15888
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Z_4'

:BSKOOL_15099
if 
  65@ == 2
goto_if_false @BSKOOL_15203
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_15888
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_12'

:BSKOOL_15203
if 
  65@ == 3
goto_if_false @BSKOOL_15307
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_15888
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_11'

:BSKOOL_15307
if 
  65@ == 4
goto_if_false @BSKOOL_15411
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_15888
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_10'

:BSKOOL_15411
return 

:BSKOOL_15413
if 
  34@ == 0
goto_if_false @BSKOOL_15588
if 
  $mission_selection == 1
goto_if_false @BSKOOL_15456
gosub @BSKOOL_1766

:BSKOOL_15456
if 
  $mission_selection == 2
goto_if_false @BSKOOL_15481
gosub @BSKOOL_3460

:BSKOOL_15481
if 
  $mission_selection == 3
goto_if_false @BSKOOL_15506
gosub @BSKOOL_4885

:BSKOOL_15506
if 
  $mission_selection == 5
goto_if_false @BSKOOL_15531
gosub @BSKOOL_6653

:BSKOOL_15531
if 
  $mission_selection == 4
goto_if_false @BSKOOL_15556
gosub @BSKOOL_8429

:BSKOOL_15556
if 
  $mission_selection == 6
goto_if_false @BSKOOL_15581
gosub @BSKOOL_10022

:BSKOOL_15581
34@ = 1

:BSKOOL_15588
if 
  34@ == 1
goto_if_false @BSKOOL_15672
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_15672
if 
  not has_car_recording_been_loaded 35@
goto_if_false @BSKOOL_15650
request_car_recording 35@
goto @BSKOOL_15672

:BSKOOL_15650
start_playback_recorded_car 38@ {path} 35@
63@ = 3
34@ = 2

:BSKOOL_15672
if 
  34@ == 2
goto_if_false @BSKOOL_15757
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_15743
if 
  not is_playback_going_on_for_car 38@
goto_if_false @BSKOOL_15736
63@ = 1
34@ = 4

:BSKOOL_15736
goto @BSKOOL_15757

:BSKOOL_15743
63@ = 1
34@ = 4

:BSKOOL_15757
if 
  34@ == 3
goto_if_false @BSKOOL_15789
63@ = 1
34@ = 4

:BSKOOL_15789
if 
  34@ == 4
goto_if_false @BSKOOL_15886
if 
  63@ == 2
goto_if_false @BSKOOL_15886
stop_playback_recorded_car 38@
delete_car 38@
delete_char 49@
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_car 38@
gosub @BSKOOL_20534
34@ = 0

:BSKOOL_15886
return 

:BSKOOL_15888
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BSKOOL_15950
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:BSKOOL_16066
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.8
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BSKOOL_16186
do_fade 500 {direction} Fade.Out

:BSKOOL_16193
if 
  get_fading_status 
goto_if_false @BSKOOL_16217
wait 0
goto @BSKOOL_16193

:BSKOOL_16217
restore_camera_jumpcut 
set_camera_behind_player 
return 

:BSKOOL_16223
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
43@ = 0.0
42@ = 0.0
44@ = 0.0
39@ = 0
40@ = 0
48@ = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = get_ground_z_for_3d_coord $perfect_positionx {y} $perfect_positiony {z} 50.0
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
41@ = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
45@ = 0.0
46@ = 0
47@ = 0
59@ = 0
58@ = 0
return 

:BSKOOL_16945
warp_char_into_car $scplayer {vehicle} 38@
lock_car_doors 38@ {lockStatus} CarLock.LockedPlayerInside
wait 0
display_radar True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In

:BSKOOL_16979
if 
  get_fading_status 
goto_if_false @BSKOOL_17003
wait 0
goto @BSKOOL_16979

:BSKOOL_17003
set_player_control $player1 {state} True
return 

:BSKOOL_17012
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_17079
if 
  $car_started == 1
goto_if_false @BSKOOL_17072
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_17072
48@ = 1

:BSKOOL_17072
goto @BSKOOL_17086

:BSKOOL_17079
48@ = 1

:BSKOOL_17086
return 

:BSKOOL_17088
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_17131
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_17131
43@ = get_car_speed 38@

:BSKOOL_17131
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BSKOOL_17244
if 
  43@ > 0.1
goto_if_false @BSKOOL_17244
clear_prints 
if or
  $mission_selection == 1
  $mission_selection == 2
  $mission_selection == 3
  $mission_selection == 5
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_17237
display_onscreen_timer $car_timer {direction} TimerDirection.Down

:BSKOOL_17237
$car_started = 1

:BSKOOL_17244
return 

:BSKOOL_17246
if 
  $car_timer == 0
goto_if_false @BSKOOL_17278
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:BSKOOL_17278
return 

:BSKOOL_17280
set_player_control $player1 {state} False
freeze_onscreen_timer True
return 

:BSKOOL_17293
$player_x, $player_y, $player_z = get_car_coordinates 38@
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @BSKOOL_17430
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @BSKOOL_17416
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @BSKOOL_17423

:BSKOOL_17416
$position_score = 0

:BSKOOL_17423
goto @BSKOOL_17437

:BSKOOL_17430
$position_score = 100

:BSKOOL_17437
add_int_var_to_int_var $overall_score += $position_score
return 
40@ = get_car_health 38@
$player_car_damage = 1000
sub_int_lvar_from_int_var $player_car_damage -= 40@
if 
  $mission_selection == 16
goto_if_false @BSKOOL_17503
$player_car_damage /= 10
goto @BSKOOL_17510

:BSKOOL_17503
$player_car_damage /= 2

:BSKOOL_17510
if 
  $player_car_damage > 100
goto_if_false @BSKOOL_17535
$player_car_damage = 100

:BSKOOL_17535
return 

:BSKOOL_17537
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_17628

:BSKOOL_17569
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_17628
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_17614
$total_car_damage += 10

:BSKOOL_17614
$trafficcone_counter += 1
goto @BSKOOL_17569

:BSKOOL_17628
if 
  $mission_selection == 2
goto_if_false @BSKOOL_17705

:BSKOOL_17646
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_17705
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_17691
$total_car_damage += 10

:BSKOOL_17691
$trafficcone_counter += 1
goto @BSKOOL_17646

:BSKOOL_17705
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_17789

:BSKOOL_17730
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_17789
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_17775
$total_car_damage += 10

:BSKOOL_17775
$trafficcone_counter += 1
goto @BSKOOL_17730

:BSKOOL_17789
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_17873

:BSKOOL_17814
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_17873
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_17859
$total_car_damage += 10

:BSKOOL_17859
$trafficcone_counter += 1
goto @BSKOOL_17814

:BSKOOL_17873
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @BSKOOL_17905
$total_car_damage = 100

:BSKOOL_17905
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:BSKOOL_17915
if 
  1 > $overall_score
goto_if_false @BSKOOL_17940
$overall_score = 0

:BSKOOL_17940
clear_prints 
return 

:BSKOOL_17944
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_18377
if 
  $camera_position_int == 0
goto_if_false @BSKOOL_18069
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 10.0 {yOffset} 0.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 1

:BSKOOL_18069
if 
  TIMERA > 3000
goto_if_false @BSKOOL_18216
if 
  6000 > TIMERA
goto_if_false @BSKOOL_18216
if 
  $camera_position_int == 1
goto_if_false @BSKOOL_18216
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 2

:BSKOOL_18216
if 
  TIMERA > 6000
goto_if_false @BSKOOL_18344
if 
  $camera_position_int == 2
goto_if_false @BSKOOL_18344
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} -10.0 {yOffset} 0.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 3

:BSKOOL_18344
if 
  TIMERA > 9000
goto_if_false @BSKOOL_18377
$camera_position_int = 1
TIMERA = 0

:BSKOOL_18377
return 

:BSKOOL_18379
65@ = 0
if 
  $overall_score > 69
goto_if_false @BSKOOL_18468
if 
  85 > $overall_score
goto_if_false @BSKOOL_18468
if and
  67@ > 69
  85 > 67@
goto_if_false @BSKOOL_18461
65@ = 0
goto @BSKOOL_18468

:BSKOOL_18461
65@ = 2

:BSKOOL_18468
if 
  $overall_score > 84
goto_if_false @BSKOOL_18550
if 
  100 > $overall_score
goto_if_false @BSKOOL_18550
if and
  67@ > 84
  100 > 67@
goto_if_false @BSKOOL_18543
65@ = 0
goto @BSKOOL_18550

:BSKOOL_18543
65@ = 3

:BSKOOL_18550
if 
  $overall_score == 100
goto_if_false @BSKOOL_18607
if 
  67@ == 100
goto_if_false @BSKOOL_18600
65@ = 0
goto @BSKOOL_18607

:BSKOOL_18600
65@ = 4

:BSKOOL_18607
return 

:BSKOOL_18609
display_hud False
display_radar False
clear_prints 
clear_onscreen_timer $car_timer
if 
  2 > 65@
goto_if_false @BSKOOL_18682
draw_window 160.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'BS_Z_8' {zIndex} 3
goto @BSKOOL_18715

:BSKOOL_18682
draw_window 160.0 {leftTopY} 200.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:BSKOOL_18715
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 255.0 {key} 'BS_Y_1'
gosub @BSKOOL_15950
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 255.0 {key} 'BS_Y_6' {num} $heading_score
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 275.0 {key} 'BS_Y_2'
gosub @BSKOOL_15950
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 275.0 {key} 'BS_Y_6' {num} $position_score
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 295.0 {key} 'BS_Y_3'
gosub @BSKOOL_15950
set_text_right_justify True
52@, 53@, 54@, 55@ = get_hud_colour 0
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text_with_number 475.0 {offsetTop} 295.0 {key} 'BS_Y_6' {num} $total_car_damage
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 315.0 {key} 'BS_Y_5'
gosub @BSKOOL_15950
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 315.0 {key} 'BS_Y_6' {num} $overall_score
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_19519
if 
  65@ > 0
goto_if_false @BSKOOL_19519
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 200.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 200.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  65@ == 2
goto_if_false @BSKOOL_19328
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19328
if 
  65@ == 3
goto_if_false @BSKOOL_19382
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19382
if 
  65@ == 4
goto_if_false @BSKOOL_19436
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19436
gosub @BSKOOL_16066
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 323.0 {offsetTop} 65.0 {key} 'BS_Y_9'

:BSKOOL_19519
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_19611
gosub @BSKOOL_16066
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'BS_Y_8'

:BSKOOL_19611
if 
  59@ <> 2
goto_if_false @BSKOOL_19916
gosub @BSKOOL_15950
set_text_scale 1.45 {heightScale} 2.0
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 342.0 {key} 'BS_X05'
gosub @BSKOOL_15950
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 205.0 {offsetTop} 345.0 {key} 'BS_Z_5'
gosub @BSKOOL_15950
set_text_scale 1.45 {heightScale} 2.0
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 362.0 {key} 'BS_X04'
gosub @BSKOOL_15950
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 205.0 {offsetTop} 365.0 {key} 'BS_Z_6'
goto @BSKOOL_20110

:BSKOOL_19916
gosub @BSKOOL_15950
set_text_scale 0.52 {heightScale} 1.45
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 170.0 {offsetTop} 345.0 {key} 'BS_Z_9'
gosub @BSKOOL_15950
set_text_scale 1.45 {heightScale} 2.0
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 362.0 {key} 'BS_X05'
gosub @BSKOOL_15950
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 205.0 {offsetTop} 365.0 {key} 'BS_Z_5'

:BSKOOL_20110
return 

:BSKOOL_20112
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BSKOOL_20168
if 
  $button_pressed == 1
goto_if_false @BSKOOL_20161
$button_pressed = 0
$finished_watching_scores = 1

:BSKOOL_20161
goto @BSKOOL_20193

:BSKOOL_20168
if 
  $button_pressed == 0
goto_if_false @BSKOOL_20193
$button_pressed = 1

:BSKOOL_20193
return 

:BSKOOL_20195
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStop
do_fade 500 {direction} Fade.Out

:BSKOOL_20222
if 
  get_fading_status 
goto_if_false @BSKOOL_20291
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_20278
if 
  $bs_passed == 1
goto_if_false @BSKOOL_20278
gosub @BSKOOL_12657

:BSKOOL_20278
clear_prints 
wait 0
goto @BSKOOL_20222

:BSKOOL_20291
clear_prints 
clear_this_big_print 'BS_Y_8'
clear_this_big_print 'BS_Y_9'
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  48@ == 2
goto_if_false @BSKOOL_20417
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @BSKOOL_20390
warp_char_from_car_to_coord $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
goto @BSKOOL_20410

:BSKOOL_20390
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219

:BSKOOL_20410
goto @BSKOOL_20480

:BSKOOL_20417
if 
  is_char_in_any_car $scplayer
goto_if_false @BSKOOL_20460
warp_char_from_car_to_coord $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
goto @BSKOOL_20480

:BSKOOL_20460
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219

:BSKOOL_20480
set_char_heading $scplayer {heading} 5.0
delete_car 38@
clear_area 1171.521 {y} 1351.183 {z} 9.9219 {radius} 2.0 {clearParticles} True
restore_camera_jumpcut 
set_camera_behind_player 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
return 

:BSKOOL_20534
$trafficcone_counter = 0

:BSKOOL_20541
if 
  46 > $trafficcone_counter
goto_if_false @BSKOOL_20582
delete_object $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20541

:BSKOOL_20582
if 
  does_object_exist 56@
goto_if_false @BSKOOL_20603
delete_object 56@

:BSKOOL_20603
return 

:BSKOOL_20605
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_20689

:BSKOOL_20630
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_20689
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20630

:BSKOOL_20689
if 
  $mission_selection == 2
goto_if_false @BSKOOL_20766

:BSKOOL_20707
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_20766
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20707

:BSKOOL_20766
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_20850

:BSKOOL_20791
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_20850
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20791

:BSKOOL_20850
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_20964

:BSKOOL_20875
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_20934
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20875

:BSKOOL_20934
56@ = create_object_no_offset #LANDJUMP2 {x} 0.0 {y} 0.0 {z} 500.0
set_object_collision 56@ {state} True

:BSKOOL_20964
if 
  $mission_selection == 1
goto_if_false @BSKOOL_21642
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.2

:BSKOOL_21031
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @BSKOOL_21114
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21114
if 
  $where_to_place_cones == 24.0
goto_if_false @BSKOOL_21149
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21149
if 
  $where_to_place_cones == 48.0
goto_if_false @BSKOOL_21184
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21184
if 
  $where_to_place_cones == 72.0
goto_if_false @BSKOOL_21219
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21219
if 
  $where_to_place_cones == 96.0
goto_if_false @BSKOOL_21254
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21254
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_21289
set_object_coordinates $trafficcones[5] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21289
if 
  $where_to_place_cones == 144.0
goto_if_false @BSKOOL_21324
set_object_coordinates $trafficcones[6] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21324
if 
  $where_to_place_cones == 168.0
goto_if_false @BSKOOL_21359
set_object_coordinates $trafficcones[7] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21359
if 
  $where_to_place_cones == 192.0
goto_if_false @BSKOOL_21394
set_object_coordinates $trafficcones[8] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21394
if 
  $where_to_place_cones == 216.0
goto_if_false @BSKOOL_21429
set_object_coordinates $trafficcones[9] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21429
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_21464
set_object_coordinates $trafficcones[10] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21464
if 
  $where_to_place_cones == 264.0
goto_if_false @BSKOOL_21499
set_object_coordinates $trafficcones[11] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21499
if 
  $where_to_place_cones == 288.0
goto_if_false @BSKOOL_21534
set_object_coordinates $trafficcones[12] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21534
if 
  $where_to_place_cones == 312.0
goto_if_false @BSKOOL_21569
set_object_coordinates $trafficcones[13] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21569
if 
  $where_to_place_cones == 336.0
goto_if_false @BSKOOL_21604
set_object_coordinates $trafficcones[14] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21604
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @BSKOOL_21642
goto @BSKOOL_21031

:BSKOOL_21642
if 
  $mission_selection == 2
goto_if_false @BSKOOL_22384
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 86.0 {zOffset} -0.2

:BSKOOL_21709
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_21792
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21792
if 
  $where_to_place_cones == 150.0
goto_if_false @BSKOOL_21827
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21827
if 
  $where_to_place_cones == 180.0
goto_if_false @BSKOOL_21862
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21862
if 
  $where_to_place_cones == 210.0
goto_if_false @BSKOOL_21897
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21897
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_21932
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21932
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @BSKOOL_21970
goto @BSKOOL_21709

:BSKOOL_21970
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -7.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 7.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -7.0 {yOffset} 78.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 7.0 {yOffset} 78.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -7.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 7.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} -7.0 {yOffset} 86.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[14] {vehicle} 38@ {xOffset} 7.0 {yOffset} 86.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[15] {vehicle} 38@ {xOffset} 0.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[16] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[17] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[18] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[19] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[20] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[21] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[22] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[23] {vehicle} 38@ {xOffset} 0.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[24] {vehicle} 38@ {xOffset} 0.0 {yOffset} 78.0 {zOffset} -0.2

:BSKOOL_22384
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_23099
place_object_relative_to_car $trafficcones[0] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[1] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[2] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[3] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[4] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[5] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[6] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.5 {yOffset} 56.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.5 {yOffset} 60.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.5 {yOffset} 60.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.5 {yOffset} 64.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.5 {yOffset} 64.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} -3.5 {yOffset} 68.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[14] {vehicle} 38@ {xOffset} 3.5 {yOffset} 68.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[15] {vehicle} 38@ {xOffset} -3.5 {yOffset} 72.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[16] {vehicle} 38@ {xOffset} 3.5 {yOffset} 72.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[17] {vehicle} 38@ {xOffset} -3.5 {yOffset} 76.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[18] {vehicle} 38@ {xOffset} 3.5 {yOffset} 76.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[19] {vehicle} 38@ {xOffset} -3.5 {yOffset} 80.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[20] {vehicle} 38@ {xOffset} 3.5 {yOffset} 80.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[21] {vehicle} 38@ {xOffset} -3.5 {yOffset} 84.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[22] {vehicle} 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[23] {vehicle} 38@ {xOffset} -3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[24] {vehicle} 38@ {xOffset} 3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[25] {vehicle} 38@ {xOffset} -3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[26] {vehicle} 38@ {xOffset} 3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[27] {vehicle} 38@ {xOffset} -3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[28] {vehicle} 38@ {xOffset} 3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[29] {vehicle} 38@ {xOffset} 0.0 {yOffset} 128.0 {zOffset} -0.2

:BSKOOL_23099
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_23666
place_object_relative_to_car $trafficcones[0] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[1] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[2] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[3] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[4] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[5] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[6] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car 56@ {vehicle} 38@ {xOffset} 0.0 {yOffset} 48.0 {zOffset} -0.2
if 
  $mission_selection == 4
goto_if_false @BSKOOL_23487
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} 0.0 {yOffset} 128.0 {zOffset} -0.2

:BSKOOL_23487
if 
  $mission_selection == 6
goto_if_false @BSKOOL_23666
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.0 {yOffset} 110.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.0 {yOffset} 110.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.0 {yOffset} 114.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.0 {yOffset} 114.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.0 {yOffset} 118.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.0 {yOffset} 118.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} 0.0 {yOffset} 118.0 {zOffset} -0.2

:BSKOOL_23666
return 

//-------------Mission 121---------------
// Originally: Taxi-Driver Sub-Mission

:TAXIODD
script_name 'TAXIODD'
34@ = 0
gosub @TAXIODD_54
if 
  has_deatharrest_been_executed 
goto_if_false @TAXIODD_45
gosub @TAXIODD_18798

:TAXIODD_45
gosub @TAXIODD_18971
terminate_this_script 

:TAXIODD_54
if 
  $done_taxiodd_progress == 0
goto_if_false @TAXIODD_74
register_mission_given 

:TAXIODD_74
$onmission = 1
$flag_player_on_oddjob = 1
if 
  not is_char_dead $scplayer
goto_if_false @TAXIODD_231
if 
  is_char_in_taxi $scplayer
goto_if_false @TAXIODD_231
37@ = store_car_char_is_in $scplayer
35@ = get_number_of_passengers 37@
if 
  35@ <> 0
goto_if_false @TAXIODD_179
print_now 'TX_FULL' {time} 5000 {flag} 1
wait 4500
clear_prints 
return 

:TAXIODD_179
36@ = get_car_health 37@
if 
  not is_car_health_greater 37@ {health} 400
goto_if_false @TAXIODD_231
print_now 'TX_ILL' {time} 5000 {flag} 1
wait 4500
clear_prints 
return 

:TAXIODD_231
set_var_int_to_var_int $g_Taxiodd_bonusKM = $stop_gargae_for_neil
$stop_gargae_for_neil = 1
85@ = 0
86@ = 0
87@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
102@ = 0
127@ = 0
130@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
124@ = 0
125@ = 0
126@ = 0
108@ = 0
146@ = 0
if 
  38@ == -99
goto_if_false @TAXIODD_721
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
89@ = create_car 420 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.CivMale {modelId} 147 {x} 0.0 {y} 0.0 {z} 0.0
49@ = 0

:TAXIODD_593
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(49@,4i)
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_593
96@ = add_blip_for_char 88@
97@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
49@ = 0

:TAXIODD_676
add_blip_for_coord 0.0 {y} 0.0 {z} 0.0 {var_handle} 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_676

:TAXIODD_721
load_mission_text 'TAXI1'
gosub @TAXIODD_17937
101@ = load_char_decision_maker DecisionMakerType.Empty
gosub @TAXIODD_17939
if 
  34@ == 1
goto_if_false @TAXIODD_778
goto @TAXIODD_17009

:TAXIODD_778
wait 0
gosub @TAXIODD_16579
gosub @TAXIODD_16933
if or
  40@ == 1
  41@ == 1
goto_if_false @TAXIODD_828
goto @TAXIODD_1465

:TAXIODD_828
gosub @TAXIODD_17804
gosub @TAXIODD_17838
if 
  is_char_dead $scplayer
goto_if_false @TAXIODD_872
124@ = 1
goto @TAXIODD_1465

:TAXIODD_872
if 
  38@ == 0
goto_if_false @TAXIODD_930
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TAXIODD_930
83@ = 0
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @TAXIODD_991
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @TAXIODD_984
83@ = 1

:TAXIODD_984
goto @TAXIODD_1015

:TAXIODD_991
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @TAXIODD_1015
83@ = 1

:TAXIODD_1015
if 
  135@ == 0
goto_if_false @TAXIODD_1081
if 
  83@ == 1
goto_if_false @TAXIODD_1074
if 
  is_player_playing $player1
goto_if_false @TAXIODD_1074
135@ = 1

:TAXIODD_1074
goto @TAXIODD_1129

:TAXIODD_1081
if 
  83@ == 0
goto_if_false @TAXIODD_1129
if 
  is_player_playing $player1
goto_if_false @TAXIODD_1129
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1129
if 
  is_car_dead 89@
goto_if_false @TAXIODD_1159
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1159
51@ = get_car_health 89@
if 
  250 >= 51@
goto_if_false @TAXIODD_1287
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_1273
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_1273
print_now 'TX_FLED' {time} 5000 {flag} 1
if 
  138@ == 0
goto_if_false @TAXIODD_1273
116@ = set_char_say_context 88@ {phrase} SpeechId.Target
138@ = 1

:TAXIODD_1273
126@ = 1
goto @TAXIODD_1465

:TAXIODD_1287
if 
  130@ == 1
goto_if_false @TAXIODD_1344
if 
  $g_Taxiodd_faresKM == 0
goto_if_false @TAXIODD_1344
124@ = 1
108@ = 2
goto @TAXIODD_1465

:TAXIODD_1344
gosub @TAXIODD_2868
if 
  127@ == 0
goto_if_false @TAXIODD_1390
124@ = 1
108@ = 1
goto @TAXIODD_1465

:TAXIODD_1390
if 
  38@ == 1
goto_if_false @TAXIODD_1415
gosub @TAXIODD_1657

:TAXIODD_1415
if 
  38@ == 2
goto_if_false @TAXIODD_1440
gosub @TAXIODD_2261

:TAXIODD_1440
if 
  38@ == 3
goto_if_false @TAXIODD_1465
125@ = 1

:TAXIODD_1465
if 
  40@ == 0
goto_if_false @TAXIODD_1609
if 
  124@ == 0
goto_if_false @TAXIODD_1593
if 
  126@ == 0
goto_if_false @TAXIODD_1572
if 
  125@ == 0
goto_if_false @TAXIODD_1551
goto @TAXIODD_778
goto @TAXIODD_1565

:TAXIODD_1551
gosub @TAXIODD_18696
goto @TAXIODD_778

:TAXIODD_1565
goto @TAXIODD_1586

:TAXIODD_1572
gosub @TAXIODD_18732
goto @TAXIODD_778

:TAXIODD_1586
goto @TAXIODD_1602

:TAXIODD_1593
gosub @TAXIODD_18798
return 

:TAXIODD_1602
goto @TAXIODD_1611

:TAXIODD_1609
return 

:TAXIODD_1611
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TAXIODD_1657
if 
  39@ == 0
goto_if_false @TAXIODD_1829
128@ = 0
129@ = 0
138@ = 0
139@ = 0
145@ = 0
107@ = 0
set_taxi_lights 89@ {state} True
if 
  144@ == 1
goto_if_false @TAXIODD_1756
39@ = 20
goto @TAXIODD_1829

:TAXIODD_1756
gosub @TAXIODD_3334
if 
  133@ == 0
goto_if_false @TAXIODD_1795
39@ = 1
goto @TAXIODD_1829

:TAXIODD_1795
print_now 'TX_JUNK' {time} $g_Taxiodd_faresKM {flag} 1
139@ = 1
freeze_onscreen_timer False
39@ = 10

:TAXIODD_1829
if 
  133@ == 1
goto_if_false @TAXIODD_1966
if 
  134@ == 0
goto_if_false @TAXIODD_1879
gosub @TAXIODD_3376
goto @TAXIODD_1966

:TAXIODD_1879
gosub @TAXIODD_3334
if 
  133@ == 0
goto_if_false @TAXIODD_1966
gosub @TAXIODD_3376
clear_this_print 'TX_JUNK'
$g_Taxiodd_faresKM += 10000
if 
  139@ == 1
goto_if_false @TAXIODD_1959
freeze_onscreen_timer True
139@ = 0

:TAXIODD_1959
39@ = 0

:TAXIODD_1966
if 
  39@ == 1
goto_if_false @TAXIODD_2055
gosub @TAXIODD_4400
if 
  128@ == 1
goto_if_false @TAXIODD_2055
if 
  130@ == 0
goto_if_false @TAXIODD_2044
$g_Taxiodd_faresKM = 36000
130@ = 1

:TAXIODD_2044
freeze_onscreen_timer False
39@ = 2

:TAXIODD_2055
if 
  39@ == 2
goto_if_false @TAXIODD_2151
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_2151
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2151
remove_blip 96@
clear_look_at 88@
set_taxi_lights 89@ {state} False
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiHitPed
117@ = get_car_health 89@
39@ = 99

:TAXIODD_2151
if 
  39@ == 10
goto_if_false @TAXIODD_2169

:TAXIODD_2169
if 
  39@ == 20
goto_if_false @TAXIODD_2227
if 
  is_int_lvar_greater_than_int_lvar 47@ > 106@
goto_if_false @TAXIODD_2227
144@ = 0
106@ = 0
39@ = 0

:TAXIODD_2227
gosub @TAXIODD_4901
if 
  39@ == 99
goto_if_false @TAXIODD_2259
gosub @TAXIODD_17877

:TAXIODD_2259
return 

:TAXIODD_2261
if 
  39@ == 0
goto_if_false @TAXIODD_2352
gosub @TAXIODD_7013
freeze_onscreen_timer False
131@ = 0
102@ = 0
136@ = 0
if 
  143@ == 0
goto_if_false @TAXIODD_2345
set_lvar_int_to_lvar_int 105@ = 47@
105@ += 5000

:TAXIODD_2345
39@ += 1

:TAXIODD_2352
if 
  is_char_dead 88@
goto_if_false @TAXIODD_2375
126@ = 1

:TAXIODD_2375
if and
  not is_char_in_car 88@ {vehicle} 89@
  131@ == 0
goto_if_false @TAXIODD_2408
126@ = 1

:TAXIODD_2408
gosub @TAXIODD_3334
if 
  133@ == 1
goto_if_false @TAXIODD_2481
if 
  134@ == 0
goto_if_false @TAXIODD_2474
print_now 'TX_REP' {time} 6000 {flag} 1
gosub @TAXIODD_3376

:TAXIODD_2474
goto @TAXIODD_2506

:TAXIODD_2481
if 
  134@ == 1
goto_if_false @TAXIODD_2506
gosub @TAXIODD_3376

:TAXIODD_2506
if 
  39@ == 1
goto_if_false @TAXIODD_2623
if 
  locate_char_in_car_3d 88@ {x} 121@ {y} 122@ {z} 123@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TAXIODD_2623
if and
  is_char_in_car 88@ {vehicle} 89@
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_2623
set_player_control $player1 {state} False
remove_blip 97@
131@ = 1
freeze_onscreen_timer True
39@ += 1

:TAXIODD_2623
if 
  39@ == 2
goto_if_false @TAXIODD_2698
if 
  is_car_stopped 89@
goto_if_false @TAXIODD_2698
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2684
task_leave_car_immediately 88@ {vehicle} 89@

:TAXIODD_2684
gosub @TAXIODD_18188
39@ += 1

:TAXIODD_2698
if 
  39@ == 3
goto_if_false @TAXIODD_2761
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2761
mark_char_as_no_longer_needed 88@
146@ -= 1
set_player_control $player1 {state} True
39@ = 99

:TAXIODD_2761
if 
  131@ == 0
goto_if_false @TAXIODD_2786
gosub @TAXIODD_6762

:TAXIODD_2786
if 
  143@ == 0
goto_if_false @TAXIODD_2841
if 
  is_int_lvar_greater_than_int_lvar 47@ > 105@
goto_if_false @TAXIODD_2841
print_help 'TX_TIP'
143@ = 1

:TAXIODD_2841
if 
  39@ == 99
goto_if_false @TAXIODD_2866
gosub @TAXIODD_17877

:TAXIODD_2866
return 

:TAXIODD_2868
if 
  is_char_in_taxi $scplayer
goto_if_false @TAXIODD_2931
if 
  127@ <> 1
goto_if_false @TAXIODD_2924
89@ = store_car_char_is_in $scplayer
127@ = 1
gosub @TAXIODD_2940

:TAXIODD_2924
goto @TAXIODD_2938

:TAXIODD_2931
127@ = 0

:TAXIODD_2938
return 

:TAXIODD_2940
51@ = 0
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 0.0 {yOffset} 2.3 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 1
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 0.0 {yOffset} -2.6 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 2
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 3
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 1.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
return 

:TAXIODD_3334
if 
  is_car_health_greater 89@ {health} 400
goto_if_false @TAXIODD_3367
133@ = 0
goto @TAXIODD_3374

:TAXIODD_3367
133@ = 1

:TAXIODD_3374
return 

:TAXIODD_3376
if 
  134@ == 1
goto_if_false @TAXIODD_3440
49@ = 0

:TAXIODD_3401
remove_blip 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_3401
134@ = 0
return 

:TAXIODD_3440
if 
  is_char_in_zone $scplayer {zone} 'LA'
goto_if_false @TAXIODD_3507
51@ = 0
gosub @TAXIODD_3887
51@ += 1
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4229

:TAXIODD_3507
if 
  is_char_in_zone $scplayer {zone} 'VE'
goto_if_false @TAXIODD_3546
51@ = 0
gosub @TAXIODD_4115

:TAXIODD_3546
if 
  is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @TAXIODD_3599
51@ = 0
gosub @TAXIODD_4172
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3599
if 
  is_char_in_zone $scplayer {zone} 'RED'
goto_if_false @TAXIODD_3652
51@ = 0
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4229

:TAXIODD_3652
if 
  is_char_in_zone $scplayer {zone} 'FLINTC'
goto_if_false @TAXIODD_3719
51@ = 0
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3719
if 
  is_char_in_zone $scplayer {zone} 'WHET'
goto_if_false @TAXIODD_3786
51@ = 0
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3786
if 
  is_char_in_zone $scplayer {zone} 'ROBAD'
goto_if_false @TAXIODD_3825
51@ = 0
gosub @TAXIODD_4058

:TAXIODD_3825
if 
  is_char_in_zone $scplayer {zone} 'BONE'
goto_if_false @TAXIODD_3878
51@ = 0
gosub @TAXIODD_4058
51@ += 1
gosub @TAXIODD_4115

:TAXIODD_3878
134@ = 1
return 

:TAXIODD_3887
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_3916
remove_blip 98@(51@,3i)

:TAXIODD_3916
add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_3944
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_3973
remove_blip 98@(51@,3i)

:TAXIODD_3973
add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4001
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4030
remove_blip 98@(51@,3i)

:TAXIODD_4030
add_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4058
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4087
remove_blip 98@(51@,3i)

:TAXIODD_4087
add_sprite_blip_for_coord -1420.547 {y} 2583.9451 {z} 58.031 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4115
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4144
remove_blip 98@(51@,3i)

:TAXIODD_4144
add_sprite_blip_for_coord 1966.532 {y} 2162.6499 {z} 10.995 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4172
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4201
remove_blip 98@(51@,3i)

:TAXIODD_4201
add_sprite_blip_for_coord -2425.46 {y} 1020.83 {z} 49.39 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4229
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4258
remove_blip 98@(51@,3i)

:TAXIODD_4258
add_sprite_blip_for_coord 1021.8 {y} -1018.7 {z} 30.9 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4286
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4315
remove_blip 98@(51@,3i)

:TAXIODD_4315
add_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4372
remove_blip 98@(51@,3i)

:TAXIODD_4372
add_sprite_blip_for_coord -103.6 {y} 1112.4 {z} 18.7 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4400
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4515
if 
  136@ == 0
goto_if_false @TAXIODD_4483
print_now 'TX_NONE' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 1
goto @TAXIODD_4515

:TAXIODD_4483
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4515
88@ = get_random_char_in_zone 'SAN_AND' {civilian} True {gang} False {criminalOrProstitute} True
if 
  88@ == -1
goto_if_false @TAXIODD_4555
return 

:TAXIODD_4555
146@ += 1
if or
  is_char_dead 88@
  is_char_in_any_car 88@
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @TAXIODD_4605
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4605
94@ = get_char_model 88@
if 
  is_int_lvar_equal_to_int_lvar 94@ == 95@
goto_if_false @TAXIODD_4646
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4646
58@, 59@, 60@ = get_char_coordinates 88@
if 
  not locate_char_any_means_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 88.0 {yRadius} 88.0 {zRadius} 19.0 {drawSphere} False
goto_if_false @TAXIODD_4716
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4716
136@ = 1
if 
  137@ == 1
goto_if_false @TAXIODD_4780
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 0

:TAXIODD_4780
clear_char_tasks_immediately 88@
set_char_decision_maker 88@ {handleOrTemplate} 101@
task_stand_still 88@ {time} -2
145@ = 0
gosub @TAXIODD_6156
if 
  does_blip_exist 96@
goto_if_false @TAXIODD_4835
remove_blip 96@

:TAXIODD_4835
96@ = add_blip_for_char 88@
set_blip_as_friendly 96@ {state} True
118@, 119@, 120@ = get_char_coordinates $scplayer
118@ += 4.0
119@ += 4.0
set_lvar_int_to_lvar_int 95@ = 94@
128@ = 1
return 

:TAXIODD_4901
if 
  128@ == 0
goto_if_false @TAXIODD_4921
return 

:TAXIODD_4921
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4972
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4972
83@ = 0
84@ = 1
if or
  is_char_dead 88@
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @TAXIODD_5056
83@ = 1
84@ = 0
print_now 'TX_OOPS' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_5056
if 
  is_car_dead 89@
goto_if_false @TAXIODD_5079
83@ = 1

:TAXIODD_5079
if 
  83@ == 0
goto_if_false @TAXIODD_5123
if 
  not is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_5123
83@ = 1

:TAXIODD_5123
if 
  83@ == 0
goto_if_false @TAXIODD_5169
58@, 59@, 60@ = get_char_coordinates $scplayer
61@, 62@, 63@ = get_char_coordinates 88@

:TAXIODD_5169
if 
  83@ == 0
goto_if_false @TAXIODD_5236
if 
  not locate_char_any_means_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 90.0 {yRadius} 90.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TAXIODD_5236
83@ = 1

:TAXIODD_5236
if 
  83@ == 1
goto_if_false @TAXIODD_5383
if 
  84@ == 1
goto_if_false @TAXIODD_5279
102@ = 0

:TAXIODD_5279
128@ = 0
138@ = 0
remove_blip 96@
if 
  133@ == 1
goto_if_false @TAXIODD_5330
39@ = 10
goto @TAXIODD_5337

:TAXIODD_5330
39@ = 1

:TAXIODD_5337
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_5365
clear_look_at 88@
gosub @TAXIODD_6399

:TAXIODD_5365
mark_char_as_no_longer_needed 88@
146@ -= 1
freeze_onscreen_timer False
return 

:TAXIODD_5383
if and
  is_char_in_car $scplayer {vehicle} 89@
  locate_stopped_char_in_car_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @TAXIODD_5702
if 
  129@ == 0
goto_if_false @TAXIODD_5540
gosub @TAXIODD_3334
if 
  133@ == 1
goto_if_false @TAXIODD_5499
print_now 'TX_JUNK' {time} 5000 {flag} 1
goto @TAXIODD_5279

:TAXIODD_5499
gosub @TAXIODD_6399
set_lvar_int_to_lvar_int 107@ = 47@
107@ += 300
129@ = 1
freeze_onscreen_timer True
goto @TAXIODD_5693

:TAXIODD_5540
if 
  107@ > 0
goto_if_false @TAXIODD_5620
if 
  is_int_lvar_greater_than_int_lvar 47@ > 107@
goto_if_false @TAXIODD_5620
42@ = get_script_task_status 88@ {taskId} 2586
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5620
gosub @TAXIODD_6437
107@ = 0

:TAXIODD_5620
if 
  107@ == 0
goto_if_false @TAXIODD_5693
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_5693
42@ = get_script_task_status 88@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5693
gosub @TAXIODD_6437

:TAXIODD_5693
return 
goto @TAXIODD_5815

:TAXIODD_5702
if 
  129@ == 1
goto_if_false @TAXIODD_5808
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_5806
if 
  not locate_char_in_car_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @TAXIODD_5806
gosub @TAXIODD_6156
task_stand_still 88@ {time} -2
129@ = 0
freeze_onscreen_timer False

:TAXIODD_5806
return 

:TAXIODD_5808
107@ = 0

:TAXIODD_5815
if 
  not is_char_in_any_car 88@
goto_if_false @TAXIODD_5877
42@ = get_script_task_status 88@ {taskId} 1471
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_5877
task_look_at_char 88@ {target} $scplayer {time} -2

:TAXIODD_5877
if 
  not is_char_in_any_car 88@
goto_if_false @TAXIODD_6056
42@ = get_script_task_status 88@ {taskId} 1492
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_6056
82@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 118@ {toY} 119@ {toZ} 120@
if 
  82@ > 4.0
goto_if_false @TAXIODD_6056
set_lvar_float_to_lvar_float 74@ = 58@
set_lvar_float_to_lvar_float 75@ = 59@
set_lvar_float_to_lvar_float 77@ = 61@
set_lvar_float_to_lvar_float 78@ = 62@
set_lvar_float_to_lvar_float 58@ = 74@
sub_float_lvar_from_float_lvar 58@ -= 77@
set_lvar_float_to_lvar_float 59@ = 75@
sub_float_lvar_from_float_lvar 59@ -= 78@
73@ = get_heading_from_vector_2d 58@ {y} 59@
task_achieve_heading 88@ {heading} 73@

:TAXIODD_6056
if 
  145@ == 0
goto_if_false @TAXIODD_6154
if 
  129@ == 0
goto_if_false @TAXIODD_6154
82@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
if 
  10.0 > 82@
goto_if_false @TAXIODD_6154
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiBail
145@ = 1

:TAXIODD_6154
return 

:TAXIODD_6156
140@ = 0
gosub @TAXIODD_6502
141@ = 0
gosub @TAXIODD_6632
83@ = 0
if 
  140@ == 1
goto_if_false @TAXIODD_6255
if 
  141@ == 1
goto_if_false @TAXIODD_6241
83@ = 0
goto @TAXIODD_6248

:TAXIODD_6241
83@ = 1

:TAXIODD_6248
goto @TAXIODD_6294

:TAXIODD_6255
if 
  141@ == 1
goto_if_false @TAXIODD_6287
83@ = 1
goto @TAXIODD_6294

:TAXIODD_6287
83@ = 0

:TAXIODD_6294
if 
  83@ == 1
goto_if_false @TAXIODD_6359
task_play_anim_secondary 88@ {animationName} "HIKER_POSE_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @TAXIODD_6397

:TAXIODD_6359
task_play_anim_secondary 88@ {animationName} "HIKER_POSE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:TAXIODD_6397
return 

:TAXIODD_6399
task_play_anim_secondary 88@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 100
return 

:TAXIODD_6437
140@ = 0
gosub @TAXIODD_6502
if 
  140@ == 1
goto_if_false @TAXIODD_6488
task_enter_car_as_passenger 88@ {vehicle} 89@ {time} -2 {seat} SeatId.RearRight
goto @TAXIODD_6500

:TAXIODD_6488
task_enter_car_as_passenger 88@ {vehicle} 89@ {time} -2 {seat} SeatId.RearLeft

:TAXIODD_6500
return 

:TAXIODD_6502
58@, 59@, 60@ = get_char_coordinates 88@
61@, 62@, 63@ = get_object_coordinates 92@
64@, 65@, 66@ = get_object_coordinates 93@
80@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
81@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 64@ {toY} 65@ {toZ} 66@
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6623
140@ = 0
goto @TAXIODD_6630

:TAXIODD_6623
140@ = 1

:TAXIODD_6630
return 

:TAXIODD_6632
58@, 59@, 60@ = get_char_coordinates 88@
61@, 62@, 63@ = get_object_coordinates 90@
64@, 65@, 66@ = get_object_coordinates 91@
80@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
81@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 64@ {toY} 65@ {toZ} 66@
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6753
141@ = 1
goto @TAXIODD_6760

:TAXIODD_6753
141@ = 0

:TAXIODD_6760
return 

:TAXIODD_6762
if 
  132@ == 0
goto_if_false @TAXIODD_6782
return 

:TAXIODD_6782
if 
  is_int_lvar_greater_than_int_lvar 47@ > 104@
goto_if_false @TAXIODD_6822
clear_onscreen_counter $g_Taxiodd_timerKM
132@ = 0
$g_Taxiodd_timerKM = 0
return 

:TAXIODD_6822
51@ = get_car_health 89@
if 
  is_int_lvar_greater_than_int_lvar 51@ > 117@
goto_if_false @TAXIODD_6864
set_lvar_int_to_lvar_int 117@ = 51@
goto @TAXIODD_6923

:TAXIODD_6864
if 
  is_int_lvar_greater_than_int_lvar 117@ > 51@
goto_if_false @TAXIODD_6923
set_lvar_int_to_lvar_int 52@ = 117@
sub_int_lvar_from_int_lvar 52@ -= 51@
set_lvar_int_to_lvar_int 117@ = 51@
52@ *= 180
sub_int_lvar_from_int_lvar 104@ -= 52@

:TAXIODD_6923
set_lvar_int_to_lvar_int 51@ = 104@
sub_int_lvar_from_int_lvar 51@ -= 103@
set_lvar_int_to_lvar_int 52@ = 47@
sub_int_lvar_from_int_lvar 52@ -= 103@
set_var_int_to_lvar_int $g_Taxiodd_timerKM = 51@
sub_int_lvar_from_int_var $g_Taxiodd_timerKM -= 52@
$g_Taxiodd_timerKM *= 100
div_int_var_by_int_lvar $g_Taxiodd_timerKM /= 51@
if 
  0 > $g_Taxiodd_timerKM
goto_if_false @TAXIODD_7011
$g_Taxiodd_timerKM = 0

:TAXIODD_7011
return 

:TAXIODD_7013
if 
  is_char_dead 88@
goto_if_false @TAXIODD_7031
return 

:TAXIODD_7031
set_lvar_int_to_lvar_int 112@ = 113@
113@ = 0
110@ = -1
gosub @TAXIODD_7654
58@, 59@, 60@ = get_char_coordinates 88@
set_lvar_float_to_lvar_float 67@ = 58@
sub_float_lvar_from_float_lvar 67@ -= 121@
set_lvar_float_to_lvar_float 68@ = 59@
sub_float_lvar_from_float_lvar 68@ -= 122@
set_lvar_float_to_lvar_float 70@ = 67@
mult_float_lvar_by_float_lvar 70@ *= 67@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 68@
set_lvar_float_to_lvar_float 80@ = 70@
add_float_lvar_to_float_lvar 80@ += 71@
81@ = sqrt 80@
cset_lvar_int_to_lvar_float 111@ =# 81@
if 
  200 > 111@
goto_if_false @TAXIODD_7196
goto @TAXIODD_7013

:TAXIODD_7196
set_lvar_int_to_lvar_int 51@ = 111@
if 
  $boat_timer == 0
goto_if_false @TAXIODD_7229
51@ *= 100

:TAXIODD_7229
if 
  $boat_timer == 1
goto_if_false @TAXIODD_7254
51@ *= 95

:TAXIODD_7254
if 
  $boat_timer == 2
goto_if_false @TAXIODD_7279
51@ *= 80

:TAXIODD_7279
if 
  $boat_timer == 3
goto_if_false @TAXIODD_7304
51@ *= 79

:TAXIODD_7304
if 
  $boat_timer == 4
goto_if_false @TAXIODD_7329
51@ *= 78

:TAXIODD_7329
if 
  $boat_timer == 5
goto_if_false @TAXIODD_7354
51@ *= 76

:TAXIODD_7354
if and
  $boat_timer > 5
  10 >= $boat_timer
goto_if_false @TAXIODD_7386
51@ *= 75

:TAXIODD_7386
if and
  $boat_timer > 10
  20 >= $boat_timer
goto_if_false @TAXIODD_7418
51@ *= 70

:TAXIODD_7418
if and
  $boat_timer > 20
  50 >= $boat_timer
goto_if_false @TAXIODD_7450
51@ *= 65

:TAXIODD_7450
if 
  $boat_timer > 50
goto_if_false @TAXIODD_7475
51@ *= 60

:TAXIODD_7475
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 51@
set_lvar_int_to_lvar_int 52@ = 112@
52@ *= 500
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 52@ = 113@
52@ *= 1000
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 103@ = 47@
set_lvar_int_to_lvar_int 104@ = 51@
104@ *= 95
104@ /= 100
add_int_lvar_to_int_lvar 104@ += 47@
$g_Taxiodd_timerKM = 0
display_nth_onscreen_counter_with_string $g_Taxiodd_timerKM {display} CounterDisplay.Bar {slot} 3 {text} 'TX_ADDS'
132@ = 1
if 
  does_blip_exist 97@
goto_if_false @TAXIODD_7638
remove_blip 97@

:TAXIODD_7638
97@ = add_blip_for_coord 121@ {y} 122@ {z} 123@
return 

:TAXIODD_7654
if 
  is_char_in_zone $scplayer {zone} 'LA'
goto_if_false @TAXIODD_7686
gosub @TAXIODD_8391

:TAXIODD_7686
if 
  is_char_in_zone $scplayer {zone} 'VE'
goto_if_false @TAXIODD_7718
gosub @TAXIODD_10647

:TAXIODD_7718
if 
  is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @TAXIODD_7750
gosub @TAXIODD_13590

:TAXIODD_7750
if 
  is_char_in_zone $scplayer {zone} 'RED'
goto_if_false @TAXIODD_7875
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_7875 {caseNum1} 0 {caseLabel1} @TAXIODD_7847 {caseNum2} 1 {caseLabel2} @TAXIODD_7861 {caseNum3} -1 {caseLabel3} @TAXIODD_7875 {caseNum4} -1 {caseLabel4} @TAXIODD_7875 {caseNum5} -1 {caseLabel5} @TAXIODD_7875 {caseNum6} -1 {caseLabel6} @TAXIODD_7875 {caseNum7} -1 {caseLabel7} @TAXIODD_7875

:TAXIODD_7847
gosub @TAXIODD_15447
goto @TAXIODD_7875

:TAXIODD_7861
gosub @TAXIODD_8391
goto @TAXIODD_7875

:TAXIODD_7875
if 
  is_char_in_zone $scplayer {zone} 'FLINTC'
goto_if_false @TAXIODD_8014
51@ = generate_random_int_in_range 0 {max} 3
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8014 {caseNum1} 0 {caseLabel1} @TAXIODD_7972 {caseNum2} 1 {caseLabel2} @TAXIODD_7986 {caseNum3} 2 {caseLabel3} @TAXIODD_8000 {caseNum4} -1 {caseLabel4} @TAXIODD_8014 {caseNum5} -1 {caseLabel5} @TAXIODD_8014 {caseNum6} -1 {caseLabel6} @TAXIODD_8014 {caseNum7} -1 {caseLabel7} @TAXIODD_8014

:TAXIODD_7972
gosub @TAXIODD_15545
goto @TAXIODD_8014

:TAXIODD_7986
gosub @TAXIODD_8391
goto @TAXIODD_8014

:TAXIODD_8000
gosub @TAXIODD_13590
goto @TAXIODD_8014

:TAXIODD_8014
if 
  is_char_in_zone $scplayer {zone} 'WHET'
goto_if_false @TAXIODD_8139
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8139 {caseNum1} 0 {caseLabel1} @TAXIODD_8111 {caseNum2} 1 {caseLabel2} @TAXIODD_8125 {caseNum3} -1 {caseLabel3} @TAXIODD_8139 {caseNum4} -1 {caseLabel4} @TAXIODD_8139 {caseNum5} -1 {caseLabel5} @TAXIODD_8139 {caseNum6} -1 {caseLabel6} @TAXIODD_8139 {caseNum7} -1 {caseLabel7} @TAXIODD_8139

:TAXIODD_8111
gosub @TAXIODD_15645
goto @TAXIODD_8139

:TAXIODD_8125
gosub @TAXIODD_13590
goto @TAXIODD_8139

:TAXIODD_8139
if 
  is_char_in_zone $scplayer {zone} 'ROBAD'
goto_if_false @TAXIODD_8264
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8264 {caseNum1} 0 {caseLabel1} @TAXIODD_8236 {caseNum2} 1 {caseLabel2} @TAXIODD_8250 {caseNum3} -1 {caseLabel3} @TAXIODD_8264 {caseNum4} -1 {caseLabel4} @TAXIODD_8264 {caseNum5} -1 {caseLabel5} @TAXIODD_8264 {caseNum6} -1 {caseLabel6} @TAXIODD_8264 {caseNum7} -1 {caseLabel7} @TAXIODD_8264

:TAXIODD_8236
gosub @TAXIODD_15742
goto @TAXIODD_8264

:TAXIODD_8250
gosub @TAXIODD_13590
goto @TAXIODD_8264

:TAXIODD_8264
if 
  is_char_in_zone $scplayer {zone} 'BONE'
goto_if_false @TAXIODD_8389
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8389 {caseNum1} 0 {caseLabel1} @TAXIODD_8361 {caseNum2} 1 {caseLabel2} @TAXIODD_8375 {caseNum3} -1 {caseLabel3} @TAXIODD_8389 {caseNum4} -1 {caseLabel4} @TAXIODD_8389 {caseNum5} -1 {caseLabel5} @TAXIODD_8389 {caseNum6} -1 {caseLabel6} @TAXIODD_8389 {caseNum7} -1 {caseLabel7} @TAXIODD_8389

:TAXIODD_8361
gosub @TAXIODD_16082
goto @TAXIODD_8389

:TAXIODD_8375
gosub @TAXIODD_10647
goto @TAXIODD_8389

:TAXIODD_8389
return 

:TAXIODD_8391
if 
  34@ == 1
goto_if_false @TAXIODD_8431
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_8440

:TAXIODD_8431
110@ = generate_random_int_in_range 1 {max} 35

:TAXIODD_8440
switch_start 110@ {numCases} 34 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_10528 {caseNum1} 1 {caseLabel1} @TAXIODD_8698 {caseNum2} 2 {caseLabel2} @TAXIODD_8751 {caseNum3} 3 {caseLabel3} @TAXIODD_8804 {caseNum4} 4 {caseLabel4} @TAXIODD_8857 {caseNum5} 5 {caseLabel5} @TAXIODD_8910 {caseNum6} 6 {caseLabel6} @TAXIODD_8963 {caseNum7} 7 {caseLabel7} @TAXIODD_9016
switch_continued 8 {caseLabel1} @TAXIODD_9069 {caseNum2} 9 {caseLabel2} @TAXIODD_9122 {caseNum3} 10 {caseLabel3} @TAXIODD_9175 {caseNum4} 11 {caseLabel4} @TAXIODD_9228 {caseNum5} 12 {caseLabel5} @TAXIODD_9281 {caseNum6} 13 {caseLabel6} @TAXIODD_9334 {caseNum7} 14 {caseLabel7} @TAXIODD_9387 {caseNum8} 15 {caseLabel8} @TAXIODD_9440 {caseNum9} 16 {caseLabel9} @TAXIODD_9493
switch_continued 17 {caseLabel1} @TAXIODD_9546 {caseNum2} 18 {caseLabel2} @TAXIODD_9606 {caseNum3} 19 {caseLabel3} @TAXIODD_9666 {caseNum4} 20 {caseLabel4} @TAXIODD_9726 {caseNum5} 21 {caseLabel5} @TAXIODD_9779 {caseNum6} 22 {caseLabel6} @TAXIODD_9832 {caseNum7} 23 {caseLabel7} @TAXIODD_9885 {caseNum8} 24 {caseLabel8} @TAXIODD_9938 {caseNum9} 25 {caseLabel9} @TAXIODD_9991
switch_continued 26 {caseLabel1} @TAXIODD_10044 {caseNum2} 27 {caseLabel2} @TAXIODD_10097 {caseNum3} 28 {caseLabel3} @TAXIODD_10150 {caseNum4} 29 {caseLabel4} @TAXIODD_10203 {caseNum5} 30 {caseLabel5} @TAXIODD_10263 {caseNum6} 31 {caseLabel6} @TAXIODD_10316 {caseNum7} 32 {caseLabel7} @TAXIODD_10369 {caseNum8} 33 {caseLabel8} @TAXIODD_10422 {caseNum9} 34 {caseLabel9} @TAXIODD_10475

:TAXIODD_8698
print_now 'TX_LS1' {time} 5000 {flag} 1
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_8751
print_now 'TX_LS2' {time} 5000 {flag} 1
121@ = 2794.0
122@ = -1828.0
123@ = 10.0
goto @TAXIODD_10645

:TAXIODD_8804
print_now 'TX_LS3' {time} 5000 {flag} 1
121@ = 1884.193
122@ = -1257.521
123@ = 12.3984
goto @TAXIODD_10645

:TAXIODD_8857
print_now 'TX_LS4' {time} 5000 {flag} 1
121@ = 2317.48
122@ = -1386.604
123@ = 22.8784
goto @TAXIODD_10645

:TAXIODD_8910
print_now 'TX_LS5' {time} 5000 {flag} 1
121@ = 2237.76
122@ = -1304.165
123@ = 22.8488
goto @TAXIODD_10645

:TAXIODD_8963
print_now 'TX_LS6' {time} 5000 {flag} 1
121@ = 2221.0869
122@ = -1137.332
123@ = 24.625
goto @TAXIODD_10645

:TAXIODD_9016
print_now 'TX_LS7' {time} 5000 {flag} 1
121@ = 2146.7371
122@ = -1179.795
123@ = 22.8278
goto @TAXIODD_10645

:TAXIODD_9069
print_now 'TX_LS8' {time} 5000 {flag} 1
121@ = 2075.5581
122@ = -1202.793
123@ = 22.7571
goto @TAXIODD_10645

:TAXIODD_9122
print_now 'TX_LS9' {time} 5000 {flag} 1
121@ = 2320.0
122@ = -1655.0
123@ = 14.0
goto @TAXIODD_10645

:TAXIODD_9175
print_now 'TX_LS10' {time} 5000 {flag} 1
121@ = 2455.0
122@ = -1502.0
123@ = 24.0
goto @TAXIODD_10645

:TAXIODD_9228
print_now 'TX_LS11' {time} 5000 {flag} 1
121@ = 2181.0
122@ = -1771.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_9281
print_now 'TX_LS12' {time} 5000 {flag} 1
121@ = 2084.731
122@ = -1800.86
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9334
print_now 'TX_LS13' {time} 5000 {flag} 1
121@ = 2078.0149
122@ = -1791.589
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9387
print_now 'TX_LS14' {time} 5000 {flag} 1
121@ = 2081.2871
122@ = -1779.5
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9440
print_now 'TX_LS15' {time} 5000 {flag} 1
121@ = 2418.542
122@ = -2085.1189
123@ = 12.2928
goto @TAXIODD_10645

:TAXIODD_9493
print_now 'TX_LS16' {time} 5000 {flag} 1
121@ = 1742.689
122@ = -1858.697
123@ = 12.4185
goto @TAXIODD_10645

:TAXIODD_9546
print_now 'TX_LS17' {time} 5000 {flag} 1
121@ = 1668.0
122@ = -2253.0
123@ = 13.0
113@ = 40
goto @TAXIODD_10645

:TAXIODD_9606
print_now 'TX_LS18' {time} 5000 {flag} 1
121@ = 1432.198
122@ = -2274.6479
123@ = 12.3906
113@ = 30
goto @TAXIODD_10645

:TAXIODD_9666
print_now 'TX_LS19' {time} 5000 {flag} 1
121@ = 1256.0
122@ = -2028.0
123@ = 60.0
113@ = 30
goto @TAXIODD_10645

:TAXIODD_9726
print_now 'TX_LS20' {time} 5000 {flag} 1
121@ = 1532.7889
122@ = -1675.442
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9779
print_now 'TX_LS21' {time} 5000 {flag} 1
121@ = 1472.35
122@ = -1729.7061
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9832
print_now 'TX_LS22' {time} 5000 {flag} 1
121@ = 1855.4189
122@ = -1383.2729
123@ = 12.3984
goto @TAXIODD_10645

:TAXIODD_9885
print_now 'TX_LS23' {time} 5000 {flag} 1
121@ = 2025.0
122@ = -1413.0
123@ = 17.0
goto @TAXIODD_10645

:TAXIODD_9938
print_now 'TX_LS24' {time} 5000 {flag} 1
121@ = 1361.218
122@ = -1277.9041
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9991
print_now 'TX_LS25' {time} 5000 {flag} 1
121@ = 1192.0
122@ = -1324.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_10044
print_now 'TX_LS26' {time} 5000 {flag} 1
121@ = 1031.066
122@ = -1329.704
123@ = 12.3861
goto @TAXIODD_10645

:TAXIODD_10097
print_now 'TX_LS27' {time} 5000 {flag} 1
121@ = 814.0
122@ = -1330.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_10150
print_now 'TX_LS28' {time} 5000 {flag} 1
121@ = 667.7637
122@ = -1265.6899
123@ = 12.4687
goto @TAXIODD_10645

:TAXIODD_10203
print_now 'TX_LS29' {time} 5000 {flag} 1
121@ = 368.1992
122@ = -2042.537
123@ = 6.6582
113@ = 30
goto @TAXIODD_10645

:TAXIODD_10263
print_now 'TX_LS30' {time} 5000 {flag} 1
121@ = 152.5806
122@ = -1754.8311
123@ = 3.9518
goto @TAXIODD_10645

:TAXIODD_10316
print_now 'TX_LS31' {time} 5000 {flag} 1
121@ = 508.2797
122@ = -1358.598
123@ = 14.9532
goto @TAXIODD_10645

:TAXIODD_10369
print_now 'TX_LS32' {time} 5000 {flag} 1
121@ = 1199.8459
122@ = -933.0658
123@ = 41.7332
goto @TAXIODD_10645

:TAXIODD_10422
print_now 'TX_LS33' {time} 5000 {flag} 1
121@ = 816.2869
122@ = -1630.762
123@ = 12.3906
goto @TAXIODD_10645

:TAXIODD_10475
print_now 'TX_LS34' {time} 5000 {flag} 1
121@ = 1311.97
122@ = -1712.2889
123@ = 12.3906
goto @TAXIODD_10645

:TAXIODD_10528
if 
  34@ == 1
goto_if_false @TAXIODD_10553
110@ = 0

:TAXIODD_10553
write_debug "UNKNOWN_LOS_SANTOS_TAXI_DESTINATION"
print_now 'TX_LS1' {time} 5000 {flag} 1
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_10645
return 

:TAXIODD_10647
if 
  34@ == 1
goto_if_false @TAXIODD_10687
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_10696

:TAXIODD_10687
110@ = generate_random_int_in_range 1 {max} 46

:TAXIODD_10696
switch_start 110@ {numCases} 45 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_13469 {caseNum1} 1 {caseLabel1} @TAXIODD_11084 {caseNum2} 2 {caseLabel2} @TAXIODD_11137 {caseNum3} 3 {caseLabel3} @TAXIODD_11190 {caseNum4} 4 {caseLabel4} @TAXIODD_11243 {caseNum5} 5 {caseLabel5} @TAXIODD_11296 {caseNum6} 6 {caseLabel6} @TAXIODD_11349 {caseNum7} 7 {caseLabel7} @TAXIODD_11402
switch_continued 8 {caseLabel1} @TAXIODD_11455 {caseNum2} 9 {caseLabel2} @TAXIODD_11508 {caseNum3} 10 {caseLabel3} @TAXIODD_11561 {caseNum4} 11 {caseLabel4} @TAXIODD_11614 {caseNum5} 12 {caseLabel5} @TAXIODD_11667 {caseNum6} 13 {caseLabel6} @TAXIODD_11720 {caseNum7} 14 {caseLabel7} @TAXIODD_11773 {caseNum8} 15 {caseLabel8} @TAXIODD_11826 {caseNum9} 16 {caseLabel9} @TAXIODD_11879
switch_continued 17 {caseLabel1} @TAXIODD_11932 {caseNum2} 18 {caseLabel2} @TAXIODD_11985 {caseNum3} 19 {caseLabel3} @TAXIODD_12038 {caseNum4} 20 {caseLabel4} @TAXIODD_12091 {caseNum5} 21 {caseLabel5} @TAXIODD_12144 {caseNum6} 22 {caseLabel6} @TAXIODD_12197 {caseNum7} 23 {caseLabel7} @TAXIODD_12250 {caseNum8} 24 {caseLabel8} @TAXIODD_12303 {caseNum9} 25 {caseLabel9} @TAXIODD_12356
switch_continued 26 {caseLabel1} @TAXIODD_12409 {caseNum2} 27 {caseLabel2} @TAXIODD_12462 {caseNum3} 28 {caseLabel3} @TAXIODD_12515 {caseNum4} 29 {caseLabel4} @TAXIODD_12568 {caseNum5} 30 {caseLabel5} @TAXIODD_12621 {caseNum6} 31 {caseLabel6} @TAXIODD_12674 {caseNum7} 32 {caseLabel7} @TAXIODD_12727 {caseNum8} 33 {caseLabel8} @TAXIODD_12780 {caseNum9} 34 {caseLabel9} @TAXIODD_12833
switch_continued 35 {caseLabel1} @TAXIODD_12886 {caseNum2} 36 {caseLabel2} @TAXIODD_12939 {caseNum3} 37 {caseLabel3} @TAXIODD_12992 {caseNum4} 38 {caseLabel4} @TAXIODD_13045 {caseNum5} 39 {caseLabel5} @TAXIODD_13098 {caseNum6} 40 {caseLabel6} @TAXIODD_13151 {caseNum7} 41 {caseLabel7} @TAXIODD_13204 {caseNum8} 42 {caseLabel8} @TAXIODD_13257 {caseNum9} 43 {caseLabel9} @TAXIODD_13310
switch_continued 44 {caseLabel1} @TAXIODD_13363 {caseNum2} 45 {caseLabel2} @TAXIODD_13416 {caseNum3} -1 {caseLabel3} @TAXIODD_13588 {caseNum4} -1 {caseLabel4} @TAXIODD_13588 {caseNum5} -1 {caseLabel5} @TAXIODD_13588 {caseNum6} -1 {caseLabel6} @TAXIODD_13588 {caseNum7} -1 {caseLabel7} @TAXIODD_13588 {caseNum8} -1 {caseLabel8} @TAXIODD_13588 {caseNum9} -1 {caseLabel9} @TAXIODD_13588

:TAXIODD_11084
print_now 'TX_VE1' {time} 5000 {flag} 1
121@ = 2491.3779
122@ = 2773.6079
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11137
print_now 'TX_VE2' {time} 5000 {flag} 1
121@ = 2899.2109
122@ = 2435.624
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11190
print_now 'TX_VE3' {time} 5000 {flag} 1
121@ = 2220.4951
122@ = 1838.4969
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11243
print_now 'TX_VE4' {time} 5000 {flag} 1
121@ = 2246.2019
122@ = 1896.5909
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11296
print_now 'TX_VE5' {time} 5000 {flag} 1
121@ = 2127.3069
122@ = 2355.7849
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11349
print_now 'TX_VE6' {time} 5000 {flag} 1
121@ = 2289.5891
122@ = 2415.939
123@ = 9.7773
goto @TAXIODD_13588

:TAXIODD_11402
print_now 'TX_VE7' {time} 5000 {flag} 1
121@ = 2636.2229
122@ = 2344.803
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11455
print_now 'TX_VE8' {time} 5000 {flag} 1
121@ = 1439.0
122@ = 754.0
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11508
print_now 'TX_VE9' {time} 5000 {flag} 1
121@ = 1095.619
122@ = 1375.292
123@ = 9.7977
goto @TAXIODD_13588

:TAXIODD_11561
print_now 'TX_VE10' {time} 5000 {flag} 1
121@ = 1162.077
122@ = 1124.441
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_11614
print_now 'TX_VE11' {time} 5000 {flag} 1
121@ = 1710.624
122@ = 1448.153
123@ = 9.6643
goto @TAXIODD_13588

:TAXIODD_11667
print_now 'TX_VE12' {time} 5000 {flag} 1
121@ = 2490.384
122@ = 2771.7019
123@ = 9.7964
goto @TAXIODD_13588

:TAXIODD_11720
print_now 'TX_VE13' {time} 5000 {flag} 1
121@ = 1465.187
122@ = 2773.9651
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_11773
print_now 'TX_VE14' {time} 5000 {flag} 1
121@ = 1436.145
122@ = 2670.385
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_11826
print_now 'TX_VE15' {time} 5000 {flag} 1
121@ = 1486.472
122@ = 2257.9451
123@ = 9.8128
goto @TAXIODD_13588

:TAXIODD_11879
print_now 'TX_VE16' {time} 5000 {flag} 1
121@ = 1694.188
122@ = 2200.3779
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_11932
print_now 'TX_VE17' {time} 5000 {flag} 1
121@ = 1744.656
122@ = 2055.8101
123@ = 9.7309
goto @TAXIODD_13588

:TAXIODD_11985
print_now 'TX_VE18' {time} 5000 {flag} 1
121@ = 1840.554
122@ = 2169.6541
123@ = 9.801
goto @TAXIODD_13588

:TAXIODD_12038
print_now 'TX_VE19' {time} 5000 {flag} 1
121@ = 1928.3571
122@ = 2434.3101
123@ = 9.813
goto @TAXIODD_13588

:TAXIODD_12091
print_now 'TX_VE20' {time} 5000 {flag} 1
121@ = 2424.123
122@ = 2315.7451
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12144
print_now 'TX_VE21' {time} 5000 {flag} 1
121@ = 2431.1541
122@ = 2375.061
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12197
print_now 'TX_VE22' {time} 5000 {flag} 1
121@ = 2370.2981
122@ = 2467.925
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12250
print_now 'TX_VE23' {time} 5000 {flag} 1
121@ = 2272.043
122@ = 2286.7549
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12303
print_now 'TX_VE24' {time} 5000 {flag} 1
121@ = 2324.5129
122@ = 2155.0991
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12356
print_now 'TX_VE25' {time} 5000 {flag} 1
121@ = 2508.4719
122@ = 2131.2051
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_12409
print_now 'TX_VE26' {time} 5000 {flag} 1
121@ = 2530.9141
122@ = 2083.355
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12462
print_now 'TX_VE27' {time} 5000 {flag} 1
121@ = 2546.51
122@ = 1968.6071
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_12515
print_now 'TX_VE28' {time} 5000 {flag} 1
121@ = 2530.781
122@ = 1821.228
123@ = 9.8129
goto @TAXIODD_13588

:TAXIODD_12568
print_now 'TX_VE29' {time} 5000 {flag} 1
121@ = 2360.313
122@ = 2071.9961
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12621
print_now 'TX_VE30' {time} 5000 {flag} 1
121@ = 2035.457
122@ = 1912.2791
123@ = 11.1768
goto @TAXIODD_13588

:TAXIODD_12674
print_now 'TX_VE31' {time} 5000 {flag} 1
121@ = 2078.4141
122@ = 2041.116
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_12727
print_now 'TX_VE32' {time} 5000 {flag} 1
121@ = 2159.0901
122@ = 1678.1121
123@ = 9.6953
goto @TAXIODD_13588

:TAXIODD_12780
print_now 'TX_VE33' {time} 5000 {flag} 1
121@ = 2028.496
122@ = 1711.744
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12833
print_now 'TX_VE34' {time} 5000 {flag} 1
121@ = 2076.406
122@ = 1519.038
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_12886
print_now 'TX_VE35' {time} 5000 {flag} 1
121@ = 2040.251
122@ = 1342.891
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12939
print_now 'TX_VE36' {time} 5000 {flag} 1
121@ = 2230.47
122@ = 1284.891
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12992
print_now 'TX_VE37' {time} 5000 {flag} 1
121@ = 2074.51
122@ = 1162.833
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_13045
print_now 'TX_VE38' {time} 5000 {flag} 1
121@ = 2039.257
122@ = 1174.172
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_13098
print_now 'TX_VE39' {time} 5000 {flag} 1
121@ = 2040.2841
122@ = 1005.619
123@ = 9.6645
goto @TAXIODD_13588

:TAXIODD_13151
print_now 'TX_VE40' {time} 5000 {flag} 1
121@ = 1608.522
122@ = 1827.752
123@ = 9.8281
goto @TAXIODD_13588

:TAXIODD_13204
print_now 'TX_VE41' {time} 5000 {flag} 1
121@ = 2483.5139
122@ = 922.5383
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_13257
print_now 'TX_VE42' {time} 5000 {flag} 1
121@ = 2544.668
122@ = 1016.168
123@ = 9.7593
goto @TAXIODD_13588

:TAXIODD_13310
print_now 'TX_VE43' {time} 5000 {flag} 1
121@ = 2491.7649
122@ = 1533.687
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_13363
print_now 'TX_VE44' {time} 5000 {flag} 1
121@ = 2828.6489
122@ = 1292.2679
123@ = 9.8281
goto @TAXIODD_13588

:TAXIODD_13416
print_now 'TX_VE45' {time} 5000 {flag} 1
121@ = 2524.4929
122@ = 2297.584
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_13469
if 
  34@ == 1
goto_if_false @TAXIODD_13494
110@ = 0

:TAXIODD_13494
write_debug "UNKNOWN_LAS_VENTURAS_TAXI_DESTINATION"
print_now 'TX_VE1' {time} 5000 {flag} 1
121@ = 2491.3779
122@ = 2773.6079
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_13588
return 

:TAXIODD_13590
if 
  34@ == 1
goto_if_false @TAXIODD_13630
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_13639

:TAXIODD_13630
110@ = generate_random_int_in_range 1 {max} 28

:TAXIODD_13639
switch_start 110@ {numCases} 27 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15328 {caseNum1} 1 {caseLabel1} @TAXIODD_13897 {caseNum2} 2 {caseLabel2} @TAXIODD_13950 {caseNum3} 3 {caseLabel3} @TAXIODD_14003 {caseNum4} 4 {caseLabel4} @TAXIODD_14056 {caseNum5} 5 {caseLabel5} @TAXIODD_14109 {caseNum6} 6 {caseLabel6} @TAXIODD_14162 {caseNum7} 7 {caseLabel7} @TAXIODD_14215
switch_continued 8 {caseLabel1} @TAXIODD_14268 {caseNum2} 9 {caseLabel2} @TAXIODD_14321 {caseNum3} 10 {caseLabel3} @TAXIODD_14374 {caseNum4} 11 {caseLabel4} @TAXIODD_14427 {caseNum5} 12 {caseLabel5} @TAXIODD_14480 {caseNum6} 13 {caseLabel6} @TAXIODD_14533 {caseNum7} 14 {caseLabel7} @TAXIODD_14586 {caseNum8} 15 {caseLabel8} @TAXIODD_14639 {caseNum9} 16 {caseLabel9} @TAXIODD_14692
switch_continued 17 {caseLabel1} @TAXIODD_14745 {caseNum2} 18 {caseLabel2} @TAXIODD_14798 {caseNum3} 19 {caseLabel3} @TAXIODD_14851 {caseNum4} 20 {caseLabel4} @TAXIODD_14904 {caseNum5} 21 {caseLabel5} @TAXIODD_14957 {caseNum6} 22 {caseLabel6} @TAXIODD_15010 {caseNum7} 23 {caseLabel7} @TAXIODD_15063 {caseNum8} 24 {caseLabel8} @TAXIODD_15116 {caseNum9} 25 {caseLabel9} @TAXIODD_15169
switch_continued 26 {caseLabel1} @TAXIODD_15222 {caseNum2} 27 {caseLabel2} @TAXIODD_15275 {caseNum3} -1 {caseLabel3} @TAXIODD_15445 {caseNum4} -1 {caseLabel4} @TAXIODD_15445 {caseNum5} -1 {caseLabel5} @TAXIODD_15445 {caseNum6} -1 {caseLabel6} @TAXIODD_15445 {caseNum7} -1 {caseLabel7} @TAXIODD_15445 {caseNum8} -1 {caseLabel8} @TAXIODD_15445 {caseNum9} -1 {caseLabel9} @TAXIODD_15445

:TAXIODD_13897
print_now 'TX_SF1' {time} 5000 {flag} 1
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15445

:TAXIODD_13950
print_now 'TX_SF2' {time} 5000 {flag} 1
121@ = -2044.4189
122@ = 500.771
123@ = 35.176
goto @TAXIODD_15445

:TAXIODD_14003
print_now 'TX_SF3' {time} 5000 {flag} 1
121@ = -2150.5811
122@ = 251.624
123@ = 35.176
goto @TAXIODD_15445

:TAXIODD_14056
print_now 'TX_SF4' {time} 5000 {flag} 1
121@ = -1988.5129
122@ = 138.31
123@ = 27.857
goto @TAXIODD_15445

:TAXIODD_14109
print_now 'TX_SF5' {time} 5000 {flag} 1
121@ = -2216.3989
122@ = -297.305
123@ = 35.202
goto @TAXIODD_15445

:TAXIODD_14162
print_now 'TX_SF6' {time} 5000 {flag} 1
121@ = -2726.428
122@ = -310.5865
123@ = 6.0313
goto @TAXIODD_15445

:TAXIODD_14215
print_now 'TX_SF7' {time} 5000 {flag} 1
121@ = -2704.6489
122@ = -3.5644
123@ = 3.1953
goto @TAXIODD_15445

:TAXIODD_14268
print_now 'TX_SF8' {time} 5000 {flag} 1
121@ = -2708.9971
122@ = 127.501
123@ = 4.584
goto @TAXIODD_15445

:TAXIODD_14321
print_now 'TX_SF9' {time} 5000 {flag} 1
121@ = -2751.905
122@ = 376.781
123@ = 4.584
goto @TAXIODD_15445

:TAXIODD_14374
print_now 'TX_SF10' {time} 5000 {flag} 1
121@ = -2415.75
122@ = 330.9614
123@ = 33.9765
goto @TAXIODD_15445

:TAXIODD_14427
print_now 'TX_SF11' {time} 5000 {flag} 1
121@ = -2454.926
122@ = 138.9312
123@ = 33.9765
goto @TAXIODD_15445

:TAXIODD_14480
print_now 'TX_SF12' {time} 5000 {flag} 1
121@ = -2499.2141
122@ = -16.6149
123@ = 24.6094
goto @TAXIODD_15445

:TAXIODD_14533
print_now 'TX_SF13' {time} 5000 {flag} 1
121@ = -2431.7351
122@ = -198.9205
123@ = 34.1563
goto @TAXIODD_15445

:TAXIODD_14586
print_now 'TX_SF14' {time} 5000 {flag} 1
121@ = -1815.151
122@ = 597.754
123@ = 38.528
goto @TAXIODD_15445

:TAXIODD_14639
print_now 'TX_SF15' {time} 5000 {flag} 1
121@ = -1530.776
122@ = 487.201
123@ = 9.44
goto @TAXIODD_15445

:TAXIODD_14692
print_now 'TX_SF16' {time} 5000 {flag} 1
121@ = -1745.08
122@ = 27.759
123@ = 5.452
goto @TAXIODD_15445

:TAXIODD_14745
print_now 'TX_SF17' {time} 5000 {flag} 1
121@ = -1414.557
122@ = -301.347
123@ = 14.637
goto @TAXIODD_15445

:TAXIODD_14798
print_now 'TX_SF18' {time} 5000 {flag} 1
121@ = -2618.467
122@ = 1432.752
123@ = 6.1016
goto @TAXIODD_15445

:TAXIODD_14851
print_now 'TX_SF19' {time} 5000 {flag} 1
121@ = -1904.765
122@ = 882.7293
123@ = 34.0156
goto @TAXIODD_15445

:TAXIODD_14904
print_now 'TX_SF20' {time} 5000 {flag} 1
121@ = -2134.729
122@ = 919.0828
123@ = 78.8438
goto @TAXIODD_15445

:TAXIODD_14957
print_now 'TX_SF21' {time} 5000 {flag} 1
121@ = -2361.8359
122@ = 993.0967
123@ = 49.6875
goto @TAXIODD_15445

:TAXIODD_15010
print_now 'TX_SF22' {time} 5000 {flag} 1
121@ = -2753.6899
122@ = 779.9389
123@ = 53.2422
goto @TAXIODD_15445

:TAXIODD_15063
print_now 'TX_SF23' {time} 5000 {flag} 1
121@ = -1714.717
122@ = 1332.564
123@ = 6.0391
goto @TAXIODD_15445

:TAXIODD_15116
print_now 'TX_SF24' {time} 5000 {flag} 1
121@ = -2251.033
122@ = 717.7971
123@ = 48.2969
goto @TAXIODD_15445

:TAXIODD_15169
print_now 'TX_SF25' {time} 5000 {flag} 1
121@ = -1807.813
122@ = 936.0701
123@ = 23.75
goto @TAXIODD_15445

:TAXIODD_15222
print_now 'TX_SF26' {time} 5000 {flag} 1
121@ = -1969.205
122@ = 1115.312
123@ = 52.6942
goto @TAXIODD_15445

:TAXIODD_15275
print_now 'TX_SF27' {time} 5000 {flag} 1
121@ = -2540.593
122@ = 1222.188
123@ = 36.4283
goto @TAXIODD_15445

:TAXIODD_15328
if 
  34@ == 1
goto_if_false @TAXIODD_15353
110@ = 0

:TAXIODD_15353
write_debug "UNKNOWN_SAN_FIERRO_TAXI_DESTINATION"
print_now 'TX_SF1' {time} 5000 {flag} 1
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15445

:TAXIODD_15445
return 

:TAXIODD_15447
write_debug "NO_RED_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15513
110@ = 0
goto @TAXIODD_15543

:TAXIODD_15513
write_debug "CHOOSING_LOS_SANTOS"
gosub @TAXIODD_8391

:TAXIODD_15543
return 

:TAXIODD_15545
write_debug "NO_FLINT_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15613
110@ = 0
goto @TAXIODD_15643

:TAXIODD_15613
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13590

:TAXIODD_15643
return 

:TAXIODD_15645
write_debug "NO_WHETSTONE_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15710
110@ = 0
goto @TAXIODD_15740

:TAXIODD_15710
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13590

:TAXIODD_15740
return 

:TAXIODD_15742
if 
  34@ == 1
goto_if_false @TAXIODD_15782
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_15791

:TAXIODD_15782
110@ = generate_random_int_in_range 1 {max} 3

:TAXIODD_15791
switch_start 110@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15960 {caseNum1} 1 {caseLabel1} @TAXIODD_15854 {caseNum2} 2 {caseLabel2} @TAXIODD_15907 {caseNum3} -1 {caseLabel3} @TAXIODD_16080 {caseNum4} -1 {caseLabel4} @TAXIODD_16080 {caseNum5} -1 {caseLabel5} @TAXIODD_16080 {caseNum6} -1 {caseLabel6} @TAXIODD_16080 {caseNum7} -1 {caseLabel7} @TAXIODD_16080

:TAXIODD_15854
print_now 'TX_TR1' {time} 5000 {flag} 1
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16080

:TAXIODD_15907
print_now 'TX_TR2' {time} 5000 {flag} 1
121@ = -846.9434
122@ = 1528.1541
123@ = 20.551
goto @TAXIODD_16080

:TAXIODD_15960
if 
  34@ == 1
goto_if_false @TAXIODD_15985
110@ = 0

:TAXIODD_15985
write_debug "UNKNOWN_TIERRA_ROBADA_TAXI_DESTINATION"
print_now 'TX_TR1' {time} 5000 {flag} 1
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16080

:TAXIODD_16080
return 

:TAXIODD_16082
if 
  34@ == 1
goto_if_false @TAXIODD_16122
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_16131

:TAXIODD_16122
110@ = generate_random_int_in_range 1 {max} 6

:TAXIODD_16131
switch_start 110@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_16459 {caseNum1} 1 {caseLabel1} @TAXIODD_16194 {caseNum2} 2 {caseLabel2} @TAXIODD_16247 {caseNum3} 3 {caseLabel3} @TAXIODD_16300 {caseNum4} 4 {caseLabel4} @TAXIODD_16353 {caseNum5} 5 {caseLabel5} @TAXIODD_16406 {caseNum6} -1 {caseLabel6} @TAXIODD_16577 {caseNum7} -1 {caseLabel7} @TAXIODD_16577

:TAXIODD_16194
print_now 'TX_BC1' {time} 5000 {flag} 1
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16577

:TAXIODD_16247
print_now 'TX_BC2' {time} 5000 {flag} 1
121@ = -904.3732
122@ = 2007.6429
123@ = 59.9141
goto @TAXIODD_16577

:TAXIODD_16300
print_now 'TX_BC3' {time} 5000 {flag} 1
121@ = 392.0225
122@ = 2547.8059
123@ = 15.5568
goto @TAXIODD_16577

:TAXIODD_16353
print_now 'TX_BC4' {time} 5000 {flag} 1
121@ = 832.8276
122@ = 1705.429
123@ = 4.8587
goto @TAXIODD_16577

:TAXIODD_16406
print_now 'TX_BC5' {time} 5000 {flag} 1
121@ = -84.9834
122@ = 1358.616
123@ = 9.3644
goto @TAXIODD_16577

:TAXIODD_16459
if 
  34@ == 1
goto_if_false @TAXIODD_16484
110@ = 0

:TAXIODD_16484
write_debug "UNKNOWN_BONE_COUNTY_TAXI_DESTINATION"
print_now 'TX_BC1' {time} 5000 {flag} 1
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16577

:TAXIODD_16577
return 

:TAXIODD_16579
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @TAXIODD_16628
48@ += 1
if 
  48@ > 2
goto_if_false @TAXIODD_16626
48@ = 0

:TAXIODD_16626
clear_all_view_variables 

:TAXIODD_16628
if 
  48@ == 1
goto_if_false @TAXIODD_16803
set_var_int_to_lvar_int $nHoldModGarageState = 38@
set_var_int_to_lvar_int $Taxiodd_view_debug = 39@
set_var_int_to_lvar_int $8203 = 47@
set_var_int_to_var_int $8204 = $taxi_passed
set_var_int_to_lvar_int $8205 = 146@
$8206 = 0
$8207 = 0
$8208 = 0
view_integer_variable $nHoldModGarageState {_p2} "M_STAGE"
view_integer_variable $Taxiodd_view_debug {_p2} "M_GOALS"
view_integer_variable $8205 {_p2} "CLEANUP_TESTING"
view_integer_variable $8203 {_p2} "M_MISSION_TIMER"
view_integer_variable $8204 {_p2} "TOTAL_TAXI_PASSED"

:TAXIODD_16803
if 
  48@ == 2
goto_if_false @TAXIODD_16821

:TAXIODD_16821
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @TAXIODD_16843
40@ = 1

:TAXIODD_16843
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @TAXIODD_16931
if 
  41@ == 0
goto_if_false @TAXIODD_16906
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TAXIODD_16931

:TAXIODD_16906
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TAXIODD_16931
return 

:TAXIODD_16933
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @TAXIODD_16950
return 

:TAXIODD_16950
if 
  38@ == 2
goto_if_false @TAXIODD_17007
clear_area 121@ {y} 122@ {z} 123@ {radius} 10.0 {clearParticles} False
set_char_coordinates $scplayer {x} 121@ {y} 122@ {z} 123@
39@ = 1

:TAXIODD_17007
return 

:TAXIODD_17009
147@ = 0
148@ = 0

:TAXIODD_17023
110@ = 0
switch_start 147@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_17533 {caseNum1} 0 {caseLabel1} @TAXIODD_17158 {caseNum2} 1 {caseLabel2} @TAXIODD_17204 {caseNum3} 2 {caseLabel3} @TAXIODD_17252 {caseNum4} 3 {caseLabel4} @TAXIODD_17298 {caseNum5} 4 {caseLabel5} @TAXIODD_17344 {caseNum6} 5 {caseLabel6} @TAXIODD_17392 {caseNum7} 6 {caseLabel7} @TAXIODD_17437
switch_continued 7 {caseLabel1} @TAXIODD_17486 {caseNum2} -1 {caseLabel2} @TAXIODD_17540 {caseNum3} -1 {caseLabel3} @TAXIODD_17540 {caseNum4} -1 {caseLabel4} @TAXIODD_17540 {caseNum5} -1 {caseLabel5} @TAXIODD_17540 {caseNum6} -1 {caseLabel6} @TAXIODD_17540 {caseNum7} -1 {caseLabel7} @TAXIODD_17540 {caseNum8} -1 {caseLabel8} @TAXIODD_17540 {caseNum9} -1 {caseLabel9} @TAXIODD_17540

:TAXIODD_17158
gosub @TAXIODD_8391
if 
  110@ <> 0
goto_if_false @TAXIODD_17197
write_debug "LOS_SANTOS"

:TAXIODD_17197
goto @TAXIODD_17540

:TAXIODD_17204
gosub @TAXIODD_10647
if 
  110@ <> 0
goto_if_false @TAXIODD_17245
write_debug "LAS_VENTURAS"

:TAXIODD_17245
goto @TAXIODD_17540

:TAXIODD_17252
gosub @TAXIODD_13590
if 
  110@ <> 0
goto_if_false @TAXIODD_17291
write_debug "SAN_FIERRO"

:TAXIODD_17291
goto @TAXIODD_17540

:TAXIODD_17298
gosub @TAXIODD_15447
if 
  110@ <> 0
goto_if_false @TAXIODD_17337
write_debug "RED_COUNTY"

:TAXIODD_17337
goto @TAXIODD_17540

:TAXIODD_17344
gosub @TAXIODD_15545
if 
  110@ <> 0
goto_if_false @TAXIODD_17385
write_debug "FLINT_COUNTY"

:TAXIODD_17385
goto @TAXIODD_17540

:TAXIODD_17392
gosub @TAXIODD_15645
if 
  110@ <> 0
goto_if_false @TAXIODD_17430
write_debug "WHETSTONE"

:TAXIODD_17430
goto @TAXIODD_17540

:TAXIODD_17437
gosub @TAXIODD_15742
if 
  110@ <> 0
goto_if_false @TAXIODD_17479
write_debug "TIERRA_ROBADA"

:TAXIODD_17479
goto @TAXIODD_17540

:TAXIODD_17486
gosub @TAXIODD_16082
if 
  110@ <> 0
goto_if_false @TAXIODD_17526
write_debug "BONE_COUNTY"

:TAXIODD_17526
goto @TAXIODD_17540

:TAXIODD_17533
147@ = -1

:TAXIODD_17540
if 
  110@ == 0
goto_if_false @TAXIODD_17583
wait 0
147@ += 1
148@ = 0
goto @TAXIODD_17023

:TAXIODD_17583
write_debug_with_int "J_A_D___ID" {number} 110@

:TAXIODD_17600
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @TAXIODD_17684
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @TAXIODD_17644
147@ += 1
goto @TAXIODD_17023

:TAXIODD_17644
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @TAXIODD_17673
148@ += 1
goto @TAXIODD_17023

:TAXIODD_17673
wait 0
goto @TAXIODD_17600

:TAXIODD_17684
if 
  not is_char_dead $scplayer
goto_if_false @TAXIODD_17728
97@ = add_blip_for_coord 121@ {y} 122@ {z} 123@
set_char_coordinates $scplayer {x} 121@ {y} 122@ {z} 123@

:TAXIODD_17728
148@ += 1
write_debug "PRESS_N_FOR_NEXT_FARE"

:TAXIODD_17760
if 
  not is_ps2_keyboard_key_just_pressed 17
goto_if_false @TAXIODD_17786
wait 0
goto @TAXIODD_17760

:TAXIODD_17786
remove_blip 97@
wait 0
goto @TAXIODD_17023
return 

:TAXIODD_17804
43@ += 1
if 
  43@ > 9
goto_if_false @TAXIODD_17836
43@ = 0

:TAXIODD_17836
return 

:TAXIODD_17838
44@ = get_game_timer 
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TAXIODD_17877
38@ += 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17907
38@ = 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17937
return 

:TAXIODD_17939
if 
  not is_player_playing $player1
goto_if_false @TAXIODD_17966
wait 0
goto @TAXIODD_17939

:TAXIODD_17966
gosub @TAXIODD_18112
gosub @TAXIODD_18148
if 
  $done_taxi_help == 0
goto_if_false @TAXIODD_18016
print_help 'TX_H1'
$done_taxi_help = 1

:TAXIODD_18016
gosub @TAXIODD_2868
109@ = 0
112@ = 0
113@ = 0
$boat_timer = 0
display_onscreen_counter_with_string $boat_timer {display} CounterDisplay.Number {text} 'TX_TOTL'
$g_Taxiodd_faresKM = 0
114@ = 5
115@ = 500
94@ = -1
95@ = -1
gosub @TAXIODD_17877
return 

:TAXIODD_18112
request_model #CR_AMMOBOX
load_all_models_now 

:TAXIODD_18119
if 
  not has_model_loaded #CR_AMMOBOX
goto_if_false @TAXIODD_18146
wait 0
goto @TAXIODD_18119

:TAXIODD_18146
return 

:TAXIODD_18148
request_animation "MISC"

:TAXIODD_18156
if 
  not has_animation_loaded "MISC"
goto_if_false @TAXIODD_18186
wait 0
goto @TAXIODD_18156

:TAXIODD_18186
return 

:TAXIODD_18188
if 
  132@ == 1
goto_if_false @TAXIODD_18228
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 16
goto @TAXIODD_18243

:TAXIODD_18228
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 40

:TAXIODD_18243
set_lvar_int_to_lvar_int 52@ = 51@
add_score $player1 {money} 51@
print_with_number_big 'TX_PAY' {num} 51@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
add_int_lvar_to_int_lvar 109@ += 51@
$boat_timer += 1
$taxi_passed += 1
142@ = 0
if 
  is_int_var_equal_to_int_lvar $boat_timer == 114@
goto_if_false @TAXIODD_18414
print_with_2_numbers_big 'TX_SEQ' {num1} $boat_timer {num2} 115@ {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 115@
add_int_lvar_to_int_lvar 109@ += 115@
142@ = 1
add_int_lvar_to_int_lvar 52@ += 115@
114@ += 5
115@ += 500

:TAXIODD_18414
if and
  $done_taxiodd_progress == 0
  $taxi_passed > 49
goto_if_false @TAXIODD_18518
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
print_big 'TX_DONE' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_now 'TX_NTRO' {time} 7000 {flag} 1
144@ = 1
set_lvar_int_to_lvar_int 106@ = 47@
106@ += 7000
$done_taxiodd_progress = 1
goto @TAXIODD_18679

:TAXIODD_18518
if 
  $g_Taxiodd_timerKM > 0
goto_if_false @TAXIODD_18611
if 
  142@ == 1
goto_if_false @TAXIODD_18577
print_big 'TX_FAST' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TAXIODD_18593

:TAXIODD_18577
print_big 'TX_FAST' {time} 5000 {style} TextStyle.MiddleSmallerHigher

:TAXIODD_18593
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiSuccess
goto @TAXIODD_18679

:TAXIODD_18611
if 
  142@ == 1
goto_if_false @TAXIODD_18652
print_big 'TX_WIN' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TAXIODD_18668

:TAXIODD_18652
print_big 'TX_WIN' {time} 5000 {style} TextStyle.MiddleSmallerHigher

:TAXIODD_18668
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiStart

:TAXIODD_18679
increment_int_stat_no_message StatId.PassengersDeliveredInTaxi {value} 1
increment_int_stat_no_message StatId.TaxiMoneyMade {value} 52@
return 

:TAXIODD_18696
$g_Taxiodd_faresKM += 10000
clear_onscreen_counter $g_Taxiodd_timerKM
132@ = 0
125@ = 0
gosub @TAXIODD_17907
return 

:TAXIODD_18732
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_18760
mark_char_as_no_longer_needed 88@
146@ -= 1

:TAXIODD_18760
remove_blip 96@
remove_blip 97@
clear_onscreen_counter $g_Taxiodd_timerKM
132@ = 0
126@ = 0
gosub @TAXIODD_17907
return 

:TAXIODD_18798
print_big 'TX_END' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'TX_PAY' {num} 109@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
clear_small_prints 
switch_start 108@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_18967 {caseNum1} 1 {caseLabel1} @TAXIODD_18898 {caseNum2} 2 {caseLabel2} @TAXIODD_18921 {caseNum3} 3 {caseLabel3} @TAXIODD_18944 {caseNum4} -1 {caseLabel4} @TAXIODD_18967 {caseNum5} -1 {caseLabel5} @TAXIODD_18967 {caseNum6} -1 {caseLabel6} @TAXIODD_18967 {caseNum7} -1 {caseLabel7} @TAXIODD_18967

:TAXIODD_18898
print_now 'TX_F1' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18921
print_now 'TX_F2' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18944
print_now 'TX_F3' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18967
clear_help 
return 

:TAXIODD_18971
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_19048
clear_look_at 88@
if 
  is_car_dead 89@
goto_if_false @TAXIODD_19022
gosub @TAXIODD_6399
goto @TAXIODD_19048

:TAXIODD_19022
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_19048
gosub @TAXIODD_6399

:TAXIODD_19048
mark_car_as_no_longer_needed 89@
mark_char_as_no_longer_needed 88@
49@ = 0

:TAXIODD_19065
mark_object_as_no_longer_needed 90@(49@,4i)
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_19065
remove_blip 96@
remove_blip 97@
49@ = 0

:TAXIODD_19112
remove_blip 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_19112
clear_onscreen_counter $boat_timer
clear_onscreen_timer $g_Taxiodd_faresKM
clear_onscreen_counter $g_Taxiodd_timerKM
remove_animation "MISC"
mark_model_as_no_longer_needed #CR_AMMOBOX
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
set_var_int_to_var_int $stop_gargae_for_neil = $g_Taxiodd_bonusKM
$timer_mobile_start = get_game_timer 
$flag_player_on_oddjob = 0
$onmission = 0
$flag_taxiodd_mission_launched = 0
mission_has_finished 
return 

//-------------Mission 122---------------
// Originally: Paramedic Sub-Mission

:AMBULAN
gosub @AMBULAN_16
gosub @AMBULAN_13127
terminate_this_script 

:AMBULAN_16
$onmission = 1
$flag_player_on_ambulance_mission = 1
script_name 'AMBULAN'
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_61
register_mission_given 

:AMBULAN_61
wait 0
set_script_limit_to_gang_size 0
if 
  is_char_in_any_car $scplayer
goto_if_false @AMBULAN_221
213@ = store_car_char_is_in $scplayer
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.BikeRear
goto_if_false @AMBULAN_134
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.BikeRear
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_134
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.RearLeft
goto_if_false @AMBULAN_175
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.RearLeft
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_175
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.RearRight
goto_if_false @AMBULAN_216
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.RearRight
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_216
mark_car_as_no_longer_needed 213@

:AMBULAN_221
235@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_text 'AMBULAE'
show_update_stats False
$8209 = 20000
34@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
37@ = 1
36@ = 0
83@ = 0
86@ = 0
89@ = 0
92@ = 0
95@ = 0
58@ = 0
61@ = 0
64@ = 0
67@ = 0
70@ = 0
73@ = 0
76@ = 0
46@ = 0
189@ = 10.0
$ped_time_limit = 1
48@ = 0
49@ = 0
44@ = 0
45@ = 0
51@ = 0
52@ = 0
53@ = 0
50@ = 0
55@ = 0
79@ = 0
176@ = 0.0
177@ = 0.0
178@ = 0.0
99@ = 0

:AMBULAN_522
if 
  13 > 99@
goto_if_false @AMBULAN_658
100@(99@,13i) = 0
113@(99@,13f) = 0.0
126@(99@,13f) = 0.0
139@(99@,13f) = 0.0
152@(99@,13i) = 0
if 
  10 > 99@
goto_if_false @AMBULAN_644
214@(99@,10i) = 0
224@(99@,10i) = 0

:AMBULAN_644
99@ += 1
goto @AMBULAN_522

:AMBULAN_658
99@ = 0
96@ = 0
97@ = 0
234@ = 0
$db_ambulance_level = 0
238@ = 0.0

:AMBULAN_703
if 
  10 > 99@
goto_if_false @AMBULAN_836
if 
  is_relationship_set RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
goto_if_false @AMBULAN_775
224@(99@,10i) = 1
234@ += 1
clear_relationship RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
goto @AMBULAN_822

:AMBULAN_775
if 
  is_relationship_set RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1
goto_if_false @AMBULAN_822
214@(99@,10i) = 1
234@ += 1
clear_relationship RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1

:AMBULAN_822
99@ += 1
goto @AMBULAN_703

:AMBULAN_836
99@ = 0
print_now 'ATUTOR2' {time} 3000 {flag} 1
set_wanted_multiplier 0.5
201@, 202@, 203@ = get_char_coordinates $scplayer
212@ = 9999999.0
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_1470
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_1130
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_997
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_997
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1060
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1060
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1123
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1123
goto @AMBULAN_1463

:AMBULAN_1130
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_1463
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1211
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1211
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1274
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1274
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1337
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1337
209@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2198.6931 {toY} -2290.105 {toZ} 29.625
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1400
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1400
210@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2670.2849 {toY} 616.4364 {toZ} 13.4531
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1463
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1463
goto @AMBULAN_1974

:AMBULAN_1470
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1533
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1533
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1596
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1596
206@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -316.3832 {toY} 1056.045 {toZ} 18.7344
if 
  is_float_lvar_greater_than_float_lvar 212@ > 206@
goto_if_false @AMBULAN_1659
set_lvar_float_to_lvar_float 212@ = 206@
213@ = 3

:AMBULAN_1659
207@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -1514.823 {toY} 2527.1189 {toZ} 54.7443
if 
  is_float_lvar_greater_than_float_lvar 212@ > 207@
goto_if_false @AMBULAN_1722
set_lvar_float_to_lvar_float 212@ = 207@
213@ = 4

:AMBULAN_1722
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1785
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1785
209@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2198.6931 {toY} -2290.105 {toZ} 29.625
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1848
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1848
210@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2670.2849 {toY} 616.4364 {toZ} 13.4531
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1911
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1911
211@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1578.446 {toY} 1770.682 {toZ} 9.8358
if 
  is_float_lvar_greater_than_float_lvar 212@ > 211@
goto_if_false @AMBULAN_1974
set_lvar_float_to_lvar_float 212@ = 211@
213@ = 8

:AMBULAN_1974
switch_start 213@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_2958 {caseNum1} 1 {caseLabel1} @AMBULAN_2102 {caseNum2} 2 {caseLabel2} @AMBULAN_2209 {caseNum3} 3 {caseLabel3} @AMBULAN_2316 {caseNum4} 4 {caseLabel4} @AMBULAN_2423 {caseNum5} 5 {caseLabel5} @AMBULAN_2530 {caseNum6} 6 {caseLabel6} @AMBULAN_2637 {caseNum7} 7 {caseLabel7} @AMBULAN_2744
switch_continued 8 {caseLabel1} @AMBULAN_2851 {caseNum2} -1 {caseLabel2} @AMBULAN_3065 {caseNum3} -1 {caseLabel3} @AMBULAN_3065 {caseNum4} -1 {caseLabel4} @AMBULAN_3065 {caseNum5} -1 {caseLabel5} @AMBULAN_3065 {caseNum6} -1 {caseLabel6} @AMBULAN_3065 {caseNum7} -1 {caseLabel7} @AMBULAN_3065 {caseNum8} -1 {caseLabel8} @AMBULAN_3065 {caseNum9} -1 {caseLabel9} @AMBULAN_3065

:AMBULAN_2102
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_2209
167@ = 1180.85
168@ = -1325.5699
169@ = 12.58
173@ = 1172.0
174@ = -1324.0
175@ = 15.0
197@ = 450.0
198@ = 1800.0
199@ = -1900.0
200@ = -870.0
goto @AMBULAN_3065

:AMBULAN_2316
167@ = -316.3832
168@ = 1056.045
169@ = 18.7344
173@ = -316.0
174@ = 1050.0
175@ = 20.0
197@ = -860.0
198@ = 185.0
199@ = 749.0
200@ = 1616.0
goto @AMBULAN_3065

:AMBULAN_2423
167@ = -1514.006
168@ = 2532.0129
169@ = 54.7443
173@ = -1515.0
174@ = 2520.0
175@ = 56.0
197@ = -1684.0
198@ = -702.0
199@ = 1465.0
200@ = 2749.8999
goto @AMBULAN_3065

:AMBULAN_2530
167@ = 1225.0
168@ = 302.0
169@ = 20.0
173@ = 1227.0
174@ = 289.5
175@ = 22.64
197@ = 100.0
198@ = 2604.0
199@ = -720.0
200@ = 465.0
goto @AMBULAN_3065

:AMBULAN_2637
167@ = -2198.6931
168@ = -2290.105
169@ = 29.625
173@ = -2204.728
174@ = -2296.302
175@ = 29.6181
197@ = -2598.0
198@ = -1500.0
199@ = -2700.0
200@ = -1700.0
goto @AMBULAN_3065

:AMBULAN_2744
167@ = -2670.2849
168@ = 616.4364
169@ = 13.4531
173@ = -2677.0
174@ = 632.0
175@ = 14.0
197@ = -2820.0
198@ = -1784.0
199@ = 29.0
200@ = 1180.0
goto @AMBULAN_3065

:AMBULAN_2851
167@ = 1578.446
168@ = 1770.682
169@ = 9.8358
173@ = 1582.0
174@ = 1765.0
175@ = 11.0
197@ = 1000.0
198@ = 2600.0
199@ = 772.0
200@ = 2400.0
goto @AMBULAN_3065

:AMBULAN_2958
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_3065
display_nth_onscreen_counter_with_string $db_ambulance_level {display} CounterDisplay.Number {slot} 2 {text} 'AMBSEAT'
display_nth_onscreen_counter_with_string $ped_time_limit {display} CounterDisplay.Number {slot} 1 {text} 'ALEV'
if 
  $onmission == 0
goto_if_false @AMBULAN_3133
47@ = add_blip_for_coord 167@ {y} 168@ {z} 169@

:AMBULAN_3133
clear_onscreen_timer $8209

:AMBULAN_3138
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @AMBULAN_3339
gosub @AMBULAN_7797
set_lvar_float_to_lvar_float 113@(36@,13f) = 176@
set_lvar_float_to_lvar_float 126@(36@,13f) = 177@
set_lvar_float_to_lvar_float 139@(36@,13f) = 178@
if 
  79@ == 1
goto_if_false @AMBULAN_3225
goto @AMBULAN_13127

:AMBULAN_3225
gosub @AMBULAN_10729
set_lvar_int_to_lvar_int 152@(36@,13i) = 35@
if 
  152@(36@,13i) > 45000
goto_if_false @AMBULAN_3290
152@(36@,13i) = 45000
goto @AMBULAN_3325

:AMBULAN_3290
if 
  15000 > 152@(36@,13i)
goto_if_false @AMBULAN_3325
152@(36@,13i) = 15000

:AMBULAN_3325
36@ += 1
goto @AMBULAN_3138

:AMBULAN_3339
gosub @AMBULAN_3715
if 
  37@ > 3
goto_if_false @AMBULAN_3378
45@ = 1
goto @AMBULAN_3385

:AMBULAN_3378
45@ = 0

:AMBULAN_3385
51@ = 0
if 
  2 > 37@
goto_if_false @AMBULAN_3521
set_lvar_int_to_lvar_int 48@ = 35@
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $8209 += 48@
div_int_var_by_int_lvar $8209 /= 37@
set_lvar_int_to_lvar_int 48@ = 35@
48@ /= 3
if 
  48@ > 15000
goto_if_false @AMBULAN_3514
48@ = 15000

:AMBULAN_3514
goto @AMBULAN_3598

:AMBULAN_3521
set_lvar_int_to_var_int 48@ = $8209
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $8209 += 48@
div_int_var_by_int_lvar $8209 /= 37@
set_lvar_int_to_var_int 48@ = $8209
48@ /= 3

:AMBULAN_3598
if 
  60000 > $8209
goto_if_false @AMBULAN_3629
$8209 = 60000

:AMBULAN_3629
if 
  25000 > 48@
goto_if_false @AMBULAN_3663
48@ = 25000
goto @AMBULAN_3694

:AMBULAN_3663
if 
  48@ > 60000
goto_if_false @AMBULAN_3694
48@ = 60000

:AMBULAN_3694
239@ = 0
240@ = 0
goto @AMBULAN_10882

:AMBULAN_3715
if 
  37@ > 0
goto_if_false @AMBULAN_3842
81@ = create_random_char 113@ {y} 126@ {z} 139@
freeze_char_position_and_dont_load_collision 81@ {state} True
set_load_collision_for_char_flag 81@ {state} False
83@ = 1
set_char_decision_maker 81@ {handleOrTemplate} 235@
set_char_bleeding 81@ {state} True
set_char_only_damaged_by_player 81@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 81@ {heading} 188@
82@ = add_blip_for_char 81@
set_blip_as_friendly 82@ {state} True
change_blip_scale 82@ {size} 2
100@ = 1

:AMBULAN_3842
if 
  37@ > 1
goto_if_false @AMBULAN_3969
84@ = create_random_char 114@ {y} 127@ {z} 140@
86@ = 1
set_char_decision_maker 84@ {handleOrTemplate} 235@
set_char_bleeding 84@ {state} True
set_char_only_damaged_by_player 84@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 84@ {heading} 188@
85@ = add_blip_for_char 84@
set_blip_as_friendly 85@ {state} True
change_blip_scale 85@ {size} 2
freeze_char_position_and_dont_load_collision 84@ {state} True
set_load_collision_for_char_flag 84@ {state} False
101@ = 1

:AMBULAN_3969
if 
  37@ > 2
goto_if_false @AMBULAN_4096
87@ = create_random_char 115@ {y} 128@ {z} 141@
89@ = 1
set_char_decision_maker 87@ {handleOrTemplate} 235@
set_char_bleeding 87@ {state} True
set_char_only_damaged_by_player 87@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 87@ {heading} 188@
88@ = add_blip_for_char 87@
set_blip_as_friendly 88@ {state} True
change_blip_scale 88@ {size} 2
freeze_char_position_and_dont_load_collision 87@ {state} True
set_load_collision_for_char_flag 87@ {state} False
102@ = 1

:AMBULAN_4096
if 
  37@ > 3
goto_if_false @AMBULAN_4223
90@ = create_random_char 116@ {y} 129@ {z} 142@
92@ = 1
set_char_decision_maker 90@ {handleOrTemplate} 235@
set_char_bleeding 90@ {state} True
set_char_only_damaged_by_player 90@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 90@ {heading} 188@
91@ = add_blip_for_char 90@
set_blip_as_friendly 91@ {state} True
change_blip_scale 91@ {size} 2
freeze_char_position_and_dont_load_collision 90@ {state} True
set_load_collision_for_char_flag 90@ {state} False
103@ = 1

:AMBULAN_4223
if 
  37@ > 4
goto_if_false @AMBULAN_4350
93@ = create_random_char 117@ {y} 130@ {z} 143@
95@ = 1
set_char_decision_maker 93@ {handleOrTemplate} 235@
set_char_bleeding 93@ {state} True
set_char_only_damaged_by_player 93@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 93@ {heading} 188@
94@ = add_blip_for_char 93@
set_blip_as_friendly 94@ {state} True
change_blip_scale 94@ {size} 2
freeze_char_position_and_dont_load_collision 93@ {state} True
set_load_collision_for_char_flag 93@ {state} False
104@ = 1

:AMBULAN_4350
if 
  37@ > 5
goto_if_false @AMBULAN_4477
56@ = create_random_char 118@ {y} 131@ {z} 144@
58@ = 1
set_char_decision_maker 56@ {handleOrTemplate} 235@
set_char_bleeding 56@ {state} True
set_char_only_damaged_by_player 56@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 56@ {heading} 188@
57@ = add_blip_for_char 56@
set_blip_as_friendly 57@ {state} True
change_blip_scale 57@ {size} 2
freeze_char_position_and_dont_load_collision 56@ {state} True
set_load_collision_for_char_flag 56@ {state} False
105@ = 1

:AMBULAN_4477
if 
  37@ > 6
goto_if_false @AMBULAN_4604
59@ = create_random_char 119@ {y} 132@ {z} 145@
61@ = 1
set_char_decision_maker 59@ {handleOrTemplate} 235@
set_char_bleeding 59@ {state} True
set_char_only_damaged_by_player 59@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 59@ {heading} 188@
60@ = add_blip_for_char 59@
set_blip_as_friendly 60@ {state} True
change_blip_scale 60@ {size} 2
freeze_char_position_and_dont_load_collision 59@ {state} True
set_load_collision_for_char_flag 59@ {state} False
106@ = 1

:AMBULAN_4604
if 
  37@ > 7
goto_if_false @AMBULAN_4731
62@ = create_random_char 120@ {y} 133@ {z} 146@
64@ = 1
set_char_decision_maker 62@ {handleOrTemplate} 235@
set_char_bleeding 62@ {state} True
set_char_only_damaged_by_player 62@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 62@ {heading} 188@
63@ = add_blip_for_char 62@
set_blip_as_friendly 63@ {state} True
change_blip_scale 63@ {size} 2
freeze_char_position_and_dont_load_collision 62@ {state} True
set_load_collision_for_char_flag 62@ {state} False
107@ = 1

:AMBULAN_4731
if 
  37@ > 8
goto_if_false @AMBULAN_4858
65@ = create_random_char 121@ {y} 134@ {z} 147@
67@ = 1
set_char_decision_maker 65@ {handleOrTemplate} 235@
set_char_bleeding 65@ {state} True
set_char_only_damaged_by_player 65@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 65@ {heading} 188@
66@ = add_blip_for_char 65@
set_blip_as_friendly 66@ {state} True
change_blip_scale 66@ {size} 2
freeze_char_position_and_dont_load_collision 65@ {state} True
set_load_collision_for_char_flag 65@ {state} False
108@ = 1

:AMBULAN_4858
if 
  37@ > 9
goto_if_false @AMBULAN_4985
68@ = create_random_char 122@ {y} 135@ {z} 148@
70@ = 1
set_char_decision_maker 68@ {handleOrTemplate} 235@
set_char_bleeding 68@ {state} True
set_char_only_damaged_by_player 68@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 68@ {heading} 188@
69@ = add_blip_for_char 68@
set_blip_as_friendly 69@ {state} True
change_blip_scale 69@ {size} 2
freeze_char_position_and_dont_load_collision 68@ {state} True
set_load_collision_for_char_flag 68@ {state} False
109@ = 1

:AMBULAN_4985
if 
  37@ > 10
goto_if_false @AMBULAN_5112
71@ = create_random_char 123@ {y} 136@ {z} 149@
73@ = 1
set_char_decision_maker 71@ {handleOrTemplate} 235@
set_char_bleeding 71@ {state} True
set_char_only_damaged_by_player 71@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 71@ {heading} 188@
72@ = add_blip_for_char 71@
set_blip_as_friendly 72@ {state} True
change_blip_scale 72@ {size} 2
freeze_char_position_and_dont_load_collision 71@ {state} True
set_load_collision_for_char_flag 71@ {state} False
110@ = 1

:AMBULAN_5112
if 
  37@ > 11
goto_if_false @AMBULAN_5239
74@ = create_random_char 124@ {y} 137@ {z} 150@
76@ = 1
set_char_decision_maker 74@ {handleOrTemplate} 235@
set_char_bleeding 74@ {state} True
set_char_only_damaged_by_player 74@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 74@ {heading} 188@
75@ = add_blip_for_char 74@
set_blip_as_friendly 75@ {state} True
change_blip_scale 75@ {size} 2
freeze_char_position_and_dont_load_collision 74@ {state} True
set_load_collision_for_char_flag 74@ {state} False
111@ = 1

:AMBULAN_5239
return 

:AMBULAN_5241
switch_start 239@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_7781 {caseNum1} 0 {caseLabel1} @AMBULAN_5369 {caseNum2} 1 {caseLabel2} @AMBULAN_5570 {caseNum3} 2 {caseLabel3} @AMBULAN_5771 {caseNum4} 3 {caseLabel4} @AMBULAN_5972 {caseNum5} 4 {caseLabel5} @AMBULAN_6173 {caseNum6} 5 {caseLabel6} @AMBULAN_6374 {caseNum7} 6 {caseLabel7} @AMBULAN_6575
switch_continued 7 {caseLabel1} @AMBULAN_6776 {caseNum2} 8 {caseLabel2} @AMBULAN_6977 {caseNum3} 9 {caseLabel3} @AMBULAN_7178 {caseNum4} 10 {caseLabel4} @AMBULAN_7379 {caseNum5} 11 {caseLabel5} @AMBULAN_7580 {caseNum6} -1 {caseLabel6} @AMBULAN_7795 {caseNum7} -1 {caseLabel7} @AMBULAN_7795 {caseNum8} -1 {caseLabel8} @AMBULAN_7795 {caseNum9} -1 {caseLabel9} @AMBULAN_7795

:AMBULAN_5369
if 
  37@ > 0
goto_if_false @AMBULAN_5556
if 
  3 > 83@
goto_if_false @AMBULAN_5556
if 
  not is_char_dead 81@
goto_if_false @AMBULAN_5556
if 
  locate_char_in_car_char_3d $scplayer {target} 81@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5517
if 
  100@ == 1
goto_if_false @AMBULAN_5510
freeze_char_position_and_dont_load_collision 81@ {state} False
set_load_collision_for_char_flag 81@ {state} True
set_char_coordinates 81@ {x} 113@ {y} 126@ {z} 139@
100@ = 0

:AMBULAN_5510
goto @AMBULAN_5556

:AMBULAN_5517
if 
  100@ == 0
goto_if_false @AMBULAN_5556
freeze_char_position_and_dont_load_collision 81@ {state} True
set_load_collision_for_char_flag 81@ {state} False
100@ = 1

:AMBULAN_5556
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5570
if 
  37@ > 1
goto_if_false @AMBULAN_5757
if 
  3 > 86@
goto_if_false @AMBULAN_5757
if 
  not is_char_dead 84@
goto_if_false @AMBULAN_5757
if 
  locate_char_in_car_char_3d $scplayer {target} 84@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5718
if 
  101@ == 1
goto_if_false @AMBULAN_5711
freeze_char_position_and_dont_load_collision 84@ {state} False
set_load_collision_for_char_flag 84@ {state} True
set_char_coordinates 84@ {x} 114@ {y} 127@ {z} 140@
101@ = 0

:AMBULAN_5711
goto @AMBULAN_5757

:AMBULAN_5718
if 
  101@ == 0
goto_if_false @AMBULAN_5757
freeze_char_position_and_dont_load_collision 84@ {state} True
set_load_collision_for_char_flag 84@ {state} False
101@ = 1

:AMBULAN_5757
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5771
if 
  37@ > 2
goto_if_false @AMBULAN_5958
if 
  3 > 89@
goto_if_false @AMBULAN_5958
if 
  not is_char_dead 87@
goto_if_false @AMBULAN_5958
if 
  locate_char_in_car_char_3d $scplayer {target} 87@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5919
if 
  102@ == 1
goto_if_false @AMBULAN_5912
freeze_char_position_and_dont_load_collision 87@ {state} False
set_load_collision_for_char_flag 87@ {state} True
set_char_coordinates 87@ {x} 115@ {y} 128@ {z} 141@
102@ = 0

:AMBULAN_5912
goto @AMBULAN_5958

:AMBULAN_5919
if 
  102@ == 0
goto_if_false @AMBULAN_5958
freeze_char_position_and_dont_load_collision 87@ {state} True
set_load_collision_for_char_flag 87@ {state} False
102@ = 1

:AMBULAN_5958
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5972
if 
  37@ > 3
goto_if_false @AMBULAN_6159
if 
  3 > 92@
goto_if_false @AMBULAN_6159
if 
  not is_char_dead 90@
goto_if_false @AMBULAN_6159
if 
  locate_char_in_car_char_3d $scplayer {target} 90@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6120
if 
  103@ == 1
goto_if_false @AMBULAN_6113
freeze_char_position_and_dont_load_collision 90@ {state} False
set_load_collision_for_char_flag 90@ {state} True
set_char_coordinates 90@ {x} 116@ {y} 129@ {z} 142@
103@ = 0

:AMBULAN_6113
goto @AMBULAN_6159

:AMBULAN_6120
if 
  103@ == 0
goto_if_false @AMBULAN_6159
freeze_char_position_and_dont_load_collision 90@ {state} True
set_load_collision_for_char_flag 90@ {state} False
103@ = 1

:AMBULAN_6159
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6173
if 
  37@ > 4
goto_if_false @AMBULAN_6360
if 
  3 > 95@
goto_if_false @AMBULAN_6360
if 
  not is_char_dead 93@
goto_if_false @AMBULAN_6360
if 
  locate_char_in_car_char_3d $scplayer {target} 93@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6321
if 
  104@ == 1
goto_if_false @AMBULAN_6314
freeze_char_position_and_dont_load_collision 93@ {state} False
set_load_collision_for_char_flag 93@ {state} True
set_char_coordinates 93@ {x} 117@ {y} 130@ {z} 143@
104@ = 0

:AMBULAN_6314
goto @AMBULAN_6360

:AMBULAN_6321
if 
  104@ == 0
goto_if_false @AMBULAN_6360
freeze_char_position_and_dont_load_collision 93@ {state} True
set_load_collision_for_char_flag 93@ {state} False
104@ = 1

:AMBULAN_6360
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6374
if 
  37@ > 5
goto_if_false @AMBULAN_6561
if 
  3 > 58@
goto_if_false @AMBULAN_6561
if 
  not is_char_dead 56@
goto_if_false @AMBULAN_6561
if 
  locate_char_in_car_char_3d $scplayer {target} 56@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6522
if 
  105@ == 1
goto_if_false @AMBULAN_6515
freeze_char_position_and_dont_load_collision 56@ {state} False
set_load_collision_for_char_flag 56@ {state} True
set_char_coordinates 56@ {x} 118@ {y} 131@ {z} 144@
105@ = 0

:AMBULAN_6515
goto @AMBULAN_6561

:AMBULAN_6522
if 
  105@ == 0
goto_if_false @AMBULAN_6561
freeze_char_position_and_dont_load_collision 56@ {state} True
set_load_collision_for_char_flag 56@ {state} False
105@ = 1

:AMBULAN_6561
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6575
if 
  37@ > 6
goto_if_false @AMBULAN_6762
if 
  3 > 61@
goto_if_false @AMBULAN_6762
if 
  not is_char_dead 59@
goto_if_false @AMBULAN_6762
if 
  locate_char_in_car_char_3d $scplayer {target} 59@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6723
if 
  106@ == 1
goto_if_false @AMBULAN_6716
freeze_char_position_and_dont_load_collision 59@ {state} False
set_load_collision_for_char_flag 59@ {state} True
set_char_coordinates 59@ {x} 119@ {y} 132@ {z} 145@
106@ = 0

:AMBULAN_6716
goto @AMBULAN_6762

:AMBULAN_6723
if 
  106@ == 0
goto_if_false @AMBULAN_6762
freeze_char_position_and_dont_load_collision 59@ {state} True
set_load_collision_for_char_flag 59@ {state} False
106@ = 1

:AMBULAN_6762
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6776
if 
  37@ > 7
goto_if_false @AMBULAN_6963
if 
  3 > 64@
goto_if_false @AMBULAN_6963
if 
  not is_char_dead 62@
goto_if_false @AMBULAN_6963
if 
  locate_char_in_car_char_3d $scplayer {target} 62@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6924
if 
  107@ == 1
goto_if_false @AMBULAN_6917
freeze_char_position_and_dont_load_collision 62@ {state} False
set_load_collision_for_char_flag 62@ {state} True
set_char_coordinates 62@ {x} 120@ {y} 133@ {z} 146@
107@ = 0

:AMBULAN_6917
goto @AMBULAN_6963

:AMBULAN_6924
if 
  107@ == 0
goto_if_false @AMBULAN_6963
freeze_char_position_and_dont_load_collision 62@ {state} True
set_load_collision_for_char_flag 62@ {state} False
107@ = 1

:AMBULAN_6963
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6977
if 
  37@ > 8
goto_if_false @AMBULAN_7164
if 
  3 > 67@
goto_if_false @AMBULAN_7164
if 
  not is_char_dead 65@
goto_if_false @AMBULAN_7164
if 
  locate_char_in_car_char_3d $scplayer {target} 65@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7125
if 
  108@ == 1
goto_if_false @AMBULAN_7118
freeze_char_position_and_dont_load_collision 65@ {state} False
set_load_collision_for_char_flag 65@ {state} True
set_char_coordinates 65@ {x} 121@ {y} 134@ {z} 147@
108@ = 0

:AMBULAN_7118
goto @AMBULAN_7164

:AMBULAN_7125
if 
  108@ == 0
goto_if_false @AMBULAN_7164
freeze_char_position_and_dont_load_collision 65@ {state} True
set_load_collision_for_char_flag 65@ {state} False
108@ = 1

:AMBULAN_7164
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7178
if 
  37@ > 9
goto_if_false @AMBULAN_7365
if 
  3 > 70@
goto_if_false @AMBULAN_7365
if 
  not is_char_dead 68@
goto_if_false @AMBULAN_7365
if 
  locate_char_in_car_char_3d $scplayer {target} 68@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7326
if 
  109@ == 1
goto_if_false @AMBULAN_7319
freeze_char_position_and_dont_load_collision 68@ {state} False
set_load_collision_for_char_flag 68@ {state} True
set_char_coordinates 68@ {x} 122@ {y} 135@ {z} 148@
109@ = 0

:AMBULAN_7319
goto @AMBULAN_7365

:AMBULAN_7326
if 
  109@ == 0
goto_if_false @AMBULAN_7365
freeze_char_position_and_dont_load_collision 68@ {state} True
set_load_collision_for_char_flag 68@ {state} False
109@ = 1

:AMBULAN_7365
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7379
if 
  37@ > 10
goto_if_false @AMBULAN_7566
if 
  3 > 73@
goto_if_false @AMBULAN_7566
if 
  not is_char_dead 71@
goto_if_false @AMBULAN_7566
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7527
if 
  110@ == 1
goto_if_false @AMBULAN_7520
freeze_char_position_and_dont_load_collision 71@ {state} False
set_load_collision_for_char_flag 71@ {state} True
set_char_coordinates 71@ {x} 123@ {y} 136@ {z} 149@
110@ = 0

:AMBULAN_7520
goto @AMBULAN_7566

:AMBULAN_7527
if 
  110@ == 0
goto_if_false @AMBULAN_7566
freeze_char_position_and_dont_load_collision 71@ {state} True
set_load_collision_for_char_flag 71@ {state} False
110@ = 1

:AMBULAN_7566
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7580
if 
  37@ > 11
goto_if_false @AMBULAN_7767
if 
  3 > 76@
goto_if_false @AMBULAN_7767
if 
  not is_char_dead 74@
goto_if_false @AMBULAN_7767
if 
  locate_char_in_car_char_3d $scplayer {target} 74@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7728
if 
  111@ == 1
goto_if_false @AMBULAN_7721
freeze_char_position_and_dont_load_collision 74@ {state} False
set_load_collision_for_char_flag 74@ {state} True
set_char_coordinates 74@ {x} 124@ {y} 137@ {z} 150@
111@ = 0

:AMBULAN_7721
goto @AMBULAN_7767

:AMBULAN_7728
if 
  111@ == 0
goto_if_false @AMBULAN_7767
freeze_char_position_and_dont_load_collision 74@ {state} True
set_load_collision_for_char_flag 74@ {state} False
111@ = 1

:AMBULAN_7767
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7781
239@ = 0
goto @AMBULAN_7795

:AMBULAN_7795
return 

:AMBULAN_7797
wait 0
170@, 171@, 172@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 190@ = 167@
set_lvar_float_to_lvar_float 193@ = 167@
set_lvar_float_to_lvar_float 191@ = 168@
set_lvar_float_to_lvar_float 194@ = 168@
set_lvar_float_to_lvar_float 192@ = 169@
set_lvar_float_to_lvar_float 195@ = 169@
96@ = get_city_from_coords 170@ {y} 171@ {z} 172@
cset_lvar_float_to_var_int 237@ =# $ped_time_limit
237@ *= 60.0
add_float_lvar_to_float_lvar 237@ += 238@
if 
  96@ == 0
goto_if_false @AMBULAN_7938
238@ += 15.0
goto @AMBULAN_7948

:AMBULAN_7938
238@ += 1.0

:AMBULAN_7948
if 
  100.0 > 237@
goto_if_false @AMBULAN_7979
237@ = 100.0

:AMBULAN_7979
if 
  238@ > 10000.0
goto_if_false @AMBULAN_8045
if 
  $ped_time_limit == 1
goto_if_false @AMBULAN_8045
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1

:AMBULAN_8045
sub_float_lvar_from_float_lvar 190@ -= 237@
add_float_lvar_to_float_lvar 193@ += 237@
sub_float_lvar_from_float_lvar 191@ -= 237@
add_float_lvar_to_float_lvar 194@ += 237@
if 
  8 > $ped_time_limit
goto_if_false @AMBULAN_8210
if 
  is_float_lvar_greater_than_float_lvar 197@ > 190@
goto_if_false @AMBULAN_8122
set_lvar_float_to_lvar_float 190@ = 197@

:AMBULAN_8122
if 
  is_float_lvar_greater_than_float_lvar 193@ > 198@
goto_if_false @AMBULAN_8149
set_lvar_float_to_lvar_float 193@ = 198@

:AMBULAN_8149
if 
  is_float_lvar_greater_than_float_lvar 199@ > 191@
goto_if_false @AMBULAN_8176
set_lvar_float_to_lvar_float 191@ = 199@

:AMBULAN_8176
if 
  is_float_lvar_greater_than_float_lvar 166@ > 200@
goto_if_false @AMBULAN_8203
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8203
goto @AMBULAN_8242

:AMBULAN_8210
set_lvar_float_to_lvar_float 190@ = 197@
set_lvar_float_to_lvar_float 193@ = 198@
set_lvar_float_to_lvar_float 191@ = 199@
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8242
165@ = generate_random_float_in_range 190@ {max} 193@
166@ = generate_random_float_in_range 191@ {max} 194@
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @AMBULAN_8318
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_8311
53@ = 1

:AMBULAN_8311
goto @AMBULAN_8342

:AMBULAN_8318
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @AMBULAN_8342
53@ = 1

:AMBULAN_8342
if 
  53@ == 1
goto_if_false @AMBULAN_8491
if 
  $controlmode <> 3
goto_if_false @AMBULAN_8438
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_8431
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_8431
goto @AMBULAN_8491

:AMBULAN_8438
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @AMBULAN_8491
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_8491
if 
  not is_char_dead $scplayer
goto_if_false @AMBULAN_8562
if 
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @AMBULAN_8562
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_8562
176@, 177@, 178@ = get_closest_char_node 165@ {y} 166@ {z} 169@
if 
  is_float_lvar_greater_than_float_lvar 197@ > 176@
goto_if_false @AMBULAN_8615
goto @AMBULAN_7797
goto @AMBULAN_8707

:AMBULAN_8615
if 
  is_float_lvar_greater_than_float_lvar 176@ > 198@
goto_if_false @AMBULAN_8648
goto @AMBULAN_7797
goto @AMBULAN_8707

:AMBULAN_8648
if 
  is_float_lvar_greater_than_float_lvar 199@ > 177@
goto_if_false @AMBULAN_8681
goto @AMBULAN_7797
goto @AMBULAN_8707

:AMBULAN_8681
if 
  is_float_lvar_greater_than_float_lvar 177@ > 200@
goto_if_false @AMBULAN_8707
goto @AMBULAN_7797

:AMBULAN_8707
if 
  6.0 > 178@
goto_if_false @AMBULAN_8735
goto @AMBULAN_7797

:AMBULAN_8735
185@ = get_distance_between_coords_3d 170@ {fromY} 171@ {fromZ} 172@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  50.0 > 185@
goto_if_false @AMBULAN_8786
goto @AMBULAN_7797

:AMBULAN_8786
186@ = get_distance_between_coords_3d 167@ {fromY} 168@ {fromZ} 169@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  30.0 > 186@
goto_if_false @AMBULAN_8837
goto @AMBULAN_7797

:AMBULAN_8837
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_9299
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_9113
if and
  78.4427 > 176@
  -699.519 > 177@
goto_if_false @AMBULAN_8923
wait 0
goto @AMBULAN_7797

:AMBULAN_8923
if and
  -252.6557 > 176@
  -285.766 > 177@
goto_if_false @AMBULAN_8965
wait 0
goto @AMBULAN_7797

:AMBULAN_8965
if 
  -948.3447 > 176@
goto_if_false @AMBULAN_8997
wait 0
goto @AMBULAN_7797

:AMBULAN_8997
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_9039
wait 0
goto @AMBULAN_7797

:AMBULAN_9039
if 
  177@ > 578.6325
goto_if_false @AMBULAN_9071
wait 0
goto @AMBULAN_7797

:AMBULAN_9071
if and
  837.5551 > 176@
  177@ > 347.4097
goto_if_false @AMBULAN_9113
wait 0
goto @AMBULAN_7797

:AMBULAN_9113
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_9299
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_9173
wait 0
goto @AMBULAN_7797

:AMBULAN_9173
if and
  177@ > 578.6325
  176@ > -1528.498
goto_if_false @AMBULAN_9215
wait 0
goto @AMBULAN_7797

:AMBULAN_9215
if and
  837.5551 > 176@
  176@ > -1528.498
  177@ > 347.4097
goto_if_false @AMBULAN_9267
wait 0
goto @AMBULAN_7797

:AMBULAN_9267
if 
  177@ > 1380.0
goto_if_false @AMBULAN_9299
wait 0
goto @AMBULAN_7797

:AMBULAN_9299
if 
  37@ > 0
goto_if_false @AMBULAN_9368
212@ = get_distance_between_coords_3d 113@ {fromY} 126@ {fromZ} 139@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9368
goto @AMBULAN_7797

:AMBULAN_9368
if 
  37@ > 1
goto_if_false @AMBULAN_9437
212@ = get_distance_between_coords_3d 113@ {fromY} 126@ {fromZ} 139@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9437
goto @AMBULAN_7797

:AMBULAN_9437
if 
  37@ > 2
goto_if_false @AMBULAN_9506
212@ = get_distance_between_coords_3d 114@ {fromY} 127@ {fromZ} 140@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9506
goto @AMBULAN_7797

:AMBULAN_9506
if 
  37@ > 3
goto_if_false @AMBULAN_9575
212@ = get_distance_between_coords_3d 115@ {fromY} 128@ {fromZ} 141@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9575
goto @AMBULAN_7797

:AMBULAN_9575
if 
  37@ > 4
goto_if_false @AMBULAN_9644
212@ = get_distance_between_coords_3d 116@ {fromY} 129@ {fromZ} 142@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9644
goto @AMBULAN_7797

:AMBULAN_9644
if 
  37@ > 5
goto_if_false @AMBULAN_9713
212@ = get_distance_between_coords_3d 117@ {fromY} 130@ {fromZ} 143@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9713
goto @AMBULAN_7797

:AMBULAN_9713
if 
  37@ > 6
goto_if_false @AMBULAN_9782
212@ = get_distance_between_coords_3d 118@ {fromY} 131@ {fromZ} 144@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9782
goto @AMBULAN_7797

:AMBULAN_9782
if 
  37@ > 7
goto_if_false @AMBULAN_9851
212@ = get_distance_between_coords_3d 119@ {fromY} 132@ {fromZ} 145@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9851
goto @AMBULAN_7797

:AMBULAN_9851
if 
  37@ > 8
goto_if_false @AMBULAN_9920
212@ = get_distance_between_coords_3d 120@ {fromY} 133@ {fromZ} 146@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9920
goto @AMBULAN_7797

:AMBULAN_9920
if 
  37@ > 9
goto_if_false @AMBULAN_9989
212@ = get_distance_between_coords_3d 121@ {fromY} 134@ {fromZ} 147@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9989
goto @AMBULAN_7797

:AMBULAN_9989
if 
  37@ > 10
goto_if_false @AMBULAN_10058
212@ = get_distance_between_coords_3d 122@ {fromY} 135@ {fromZ} 148@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_10058
goto @AMBULAN_7797

:AMBULAN_10058
if 
  37@ > 11
goto_if_false @AMBULAN_10127
212@ = get_distance_between_coords_3d 123@ {fromY} 136@ {fromZ} 149@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_10127
goto @AMBULAN_7797

:AMBULAN_10127
if 
  is_point_obscured_by_a_mission_entity 176@ {y} 177@ {z} 177@ {radiusX} 25.0 {radiusY} 25.0 {radiusZ} 10.0
goto_if_false @AMBULAN_10171
goto @AMBULAN_7797

:AMBULAN_10171
if 
  1186.0 > 176@
goto_if_false @AMBULAN_10262
if 
  176@ > 1047.0
goto_if_false @AMBULAN_10262
if 
  -1406.0 > 177@
goto_if_false @AMBULAN_10262
if 
  177@ > -1567.0
goto_if_false @AMBULAN_10262
goto @AMBULAN_7797

:AMBULAN_10262
if 
  1444.0 > 176@
goto_if_false @AMBULAN_10353
if 
  176@ > 1339.0
goto_if_false @AMBULAN_10353
if 
  -1450.0 > 177@
goto_if_false @AMBULAN_10353
if 
  177@ > -1504.0
goto_if_false @AMBULAN_10353
goto @AMBULAN_7797

:AMBULAN_10353
if 
  2041.979 > 176@
goto_if_false @AMBULAN_10444
if 
  176@ > 1999.387
goto_if_false @AMBULAN_10444
if 
  -1408.708 > 177@
goto_if_false @AMBULAN_10444
if 
  177@ > -1445.462
goto_if_false @AMBULAN_10444
goto @AMBULAN_7797

:AMBULAN_10444
if 
  1202.0 > 176@
goto_if_false @AMBULAN_10535
if 
  176@ > 1162.0
goto_if_false @AMBULAN_10535
if 
  -1238.0 > 177@
goto_if_false @AMBULAN_10535
if 
  177@ > -1250.0
goto_if_false @AMBULAN_10535
goto @AMBULAN_7797

:AMBULAN_10535
if 
  2632.8181 > 176@
goto_if_false @AMBULAN_10626
if 
  176@ > 2546.4629
goto_if_false @AMBULAN_10626
if 
  -1129.673 > 177@
goto_if_false @AMBULAN_10626
if 
  177@ > -1144.012
goto_if_false @AMBULAN_10626
goto @AMBULAN_7797

:AMBULAN_10626
if 
  -222.5044 > 176@
goto_if_false @AMBULAN_10717
if 
  176@ > -229.096
goto_if_false @AMBULAN_10717
if 
  1412.0861 > 177@
goto_if_false @AMBULAN_10717
if 
  177@ > 1393.817
goto_if_false @AMBULAN_10717
goto @AMBULAN_7797

:AMBULAN_10717
238@ = 0.0
return 

:AMBULAN_10729
if 
  2 > 37@
goto_if_false @AMBULAN_10838
if 
  is_float_lvar_greater_than_float_lvar 185@ > 186@
goto_if_false @AMBULAN_10789
set_lvar_float_to_lvar_float 187@ = 185@
div_float_lvar_by_float_lvar 187@ /= 189@
goto @AMBULAN_10805

:AMBULAN_10789
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@

:AMBULAN_10805
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $8209 += 35@
goto @AMBULAN_10880

:AMBULAN_10838
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $8209 += 35@

:AMBULAN_10880
return 

:AMBULAN_10882
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @AMBULAN_10911
$8209 = 999999

:AMBULAN_10911
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @AMBULAN_10948
$done_ambulance_progress = 0
set_lvar_int_to_lvar_int 46@ = 37@
$ped_time_limit = 12

:AMBULAN_10948
if 
  $8209 == 0
goto_if_false @AMBULAN_10996
print_now 'A_FAIL2' {time} 3000 {flag} 1
79@ = 1
goto @AMBULAN_13127

:AMBULAN_10996
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @AMBULAN_11050
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_11043
53@ = 1

:AMBULAN_11043
goto @AMBULAN_11074

:AMBULAN_11050
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @AMBULAN_11074
53@ = 1

:AMBULAN_11074
if 
  53@ == 1
goto_if_false @AMBULAN_11197
if 
  $controlmode <> 3
goto_if_false @AMBULAN_11157
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_11150
print_now 'A_CANC' {time} 3000 {flag} 1
goto @AMBULAN_13127

:AMBULAN_11150
goto @AMBULAN_11197

:AMBULAN_11157
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @AMBULAN_11197
print_now 'A_CANC' {time} 3000 {flag} 1
goto @AMBULAN_13127

:AMBULAN_11197
if 
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @AMBULAN_11246
print_now 'A_CANC' {time} 3000 {flag} 1
goto @AMBULAN_13127
goto @AMBULAN_11302

:AMBULAN_11246
34@ = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead 34@
goto_if_false @AMBULAN_11302
43@ = get_number_of_passengers 34@
42@ = get_maximum_number_of_passengers 34@
set_var_int_to_lvar_int $db_ambulance_level = 42@
sub_int_lvar_from_int_var $db_ambulance_level -= 43@

:AMBULAN_11302
if and
  37@ > 6
  45@ == 2
  51@ == 0
goto_if_false @AMBULAN_11348
45@ = 1
51@ += 1

:AMBULAN_11348
if and
  37@ > 9
  45@ == 2
  51@ == 1
goto_if_false @AMBULAN_11394
45@ = 1
51@ += 1

:AMBULAN_11394
if and
  37@ > 12
  45@ == 2
  51@ == 2
goto_if_false @AMBULAN_11440
45@ = 1
51@ += 1

:AMBULAN_11440
gosub @AMBULAN_5241
if 
  52@ == 1
goto_if_false @AMBULAN_11496
  locate_stopped_char_in_car_3d $scplayer {x} 167@ {y} 168@ {z} 169@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} True

:AMBULAN_11496
switch_start 240@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_12776 {caseNum1} 0 {caseLabel1} @AMBULAN_11624 {caseNum2} 1 {caseLabel2} @AMBULAN_11720 {caseNum3} 2 {caseLabel3} @AMBULAN_11816 {caseNum4} 3 {caseLabel4} @AMBULAN_11912 {caseNum5} 4 {caseLabel5} @AMBULAN_12008 {caseNum6} 5 {caseLabel6} @AMBULAN_12104 {caseNum7} 6 {caseLabel7} @AMBULAN_12200
switch_continued 7 {caseLabel1} @AMBULAN_12296 {caseNum2} 8 {caseLabel2} @AMBULAN_12392 {caseNum3} 9 {caseLabel3} @AMBULAN_12488 {caseNum4} 10 {caseLabel4} @AMBULAN_12584 {caseNum5} 11 {caseLabel5} @AMBULAN_12680 {caseNum6} -1 {caseLabel6} @AMBULAN_12790 {caseNum7} -1 {caseLabel7} @AMBULAN_12790 {caseNum8} -1 {caseLabel8} @AMBULAN_12790 {caseNum9} -1 {caseLabel9} @AMBULAN_12790

:AMBULAN_11624
if 
  83@ > 0
goto_if_false @AMBULAN_11706
set_lvar_int_to_lvar_int 77@ = 81@
set_lvar_int_to_lvar_int 80@ = 83@
set_lvar_int_to_lvar_int 78@ = 82@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11698
goto @AMBULAN_13127

:AMBULAN_11698
set_lvar_int_to_lvar_int 83@ = 80@

:AMBULAN_11706
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11720
if 
  86@ > 0
goto_if_false @AMBULAN_11802
set_lvar_int_to_lvar_int 77@ = 84@
set_lvar_int_to_lvar_int 80@ = 86@
set_lvar_int_to_lvar_int 78@ = 85@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11794
goto @AMBULAN_13127

:AMBULAN_11794
set_lvar_int_to_lvar_int 86@ = 80@

:AMBULAN_11802
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11816
if 
  89@ > 0
goto_if_false @AMBULAN_11898
set_lvar_int_to_lvar_int 77@ = 87@
set_lvar_int_to_lvar_int 80@ = 89@
set_lvar_int_to_lvar_int 78@ = 88@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11890
goto @AMBULAN_13127

:AMBULAN_11890
set_lvar_int_to_lvar_int 89@ = 80@

:AMBULAN_11898
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11912
if 
  92@ > 0
goto_if_false @AMBULAN_11994
set_lvar_int_to_lvar_int 77@ = 90@
set_lvar_int_to_lvar_int 80@ = 92@
set_lvar_int_to_lvar_int 78@ = 91@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11986
goto @AMBULAN_13127

:AMBULAN_11986
set_lvar_int_to_lvar_int 92@ = 80@

:AMBULAN_11994
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12008
if 
  95@ > 0
goto_if_false @AMBULAN_12090
set_lvar_int_to_lvar_int 77@ = 93@
set_lvar_int_to_lvar_int 80@ = 95@
set_lvar_int_to_lvar_int 78@ = 94@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12082
goto @AMBULAN_13127

:AMBULAN_12082
set_lvar_int_to_lvar_int 95@ = 80@

:AMBULAN_12090
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12104
if 
  58@ > 0
goto_if_false @AMBULAN_12186
set_lvar_int_to_lvar_int 77@ = 56@
set_lvar_int_to_lvar_int 80@ = 58@
set_lvar_int_to_lvar_int 78@ = 57@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12178
goto @AMBULAN_13127

:AMBULAN_12178
set_lvar_int_to_lvar_int 58@ = 80@

:AMBULAN_12186
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12200
if 
  61@ > 0
goto_if_false @AMBULAN_12282
set_lvar_int_to_lvar_int 77@ = 59@
set_lvar_int_to_lvar_int 80@ = 61@
set_lvar_int_to_lvar_int 78@ = 60@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12274
goto @AMBULAN_13127

:AMBULAN_12274
set_lvar_int_to_lvar_int 61@ = 80@

:AMBULAN_12282
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12296
if 
  64@ > 0
goto_if_false @AMBULAN_12378
set_lvar_int_to_lvar_int 77@ = 62@
set_lvar_int_to_lvar_int 80@ = 64@
set_lvar_int_to_lvar_int 78@ = 63@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12370
goto @AMBULAN_13127

:AMBULAN_12370
set_lvar_int_to_lvar_int 64@ = 80@

:AMBULAN_12378
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12392
if 
  67@ > 0
goto_if_false @AMBULAN_12474
set_lvar_int_to_lvar_int 77@ = 65@
set_lvar_int_to_lvar_int 80@ = 67@
set_lvar_int_to_lvar_int 78@ = 66@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12466
goto @AMBULAN_13127

:AMBULAN_12466
set_lvar_int_to_lvar_int 67@ = 80@

:AMBULAN_12474
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12488
if 
  70@ > 0
goto_if_false @AMBULAN_12570
set_lvar_int_to_lvar_int 77@ = 68@
set_lvar_int_to_lvar_int 80@ = 70@
set_lvar_int_to_lvar_int 78@ = 69@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12562
goto @AMBULAN_13127

:AMBULAN_12562
set_lvar_int_to_lvar_int 70@ = 80@

:AMBULAN_12570
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12584
if 
  73@ > 0
goto_if_false @AMBULAN_12666
set_lvar_int_to_lvar_int 77@ = 71@
set_lvar_int_to_lvar_int 80@ = 73@
set_lvar_int_to_lvar_int 78@ = 72@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12658
goto @AMBULAN_13127

:AMBULAN_12658
set_lvar_int_to_lvar_int 73@ = 80@

:AMBULAN_12666
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12680
if 
  76@ > 0
goto_if_false @AMBULAN_12762
set_lvar_int_to_lvar_int 77@ = 74@
set_lvar_int_to_lvar_int 80@ = 76@
set_lvar_int_to_lvar_int 78@ = 75@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12754
goto @AMBULAN_13127

:AMBULAN_12754
set_lvar_int_to_lvar_int 76@ = 80@

:AMBULAN_12762
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12776
240@ = 0
goto @AMBULAN_12790

:AMBULAN_12790
if 
  is_int_lvar_equal_to_int_lvar 46@ == 37@
goto_if_false @AMBULAN_13120
set_lvar_int_to_var_int 44@ = $ped_time_limit
mult_int_lvar_by_int_var 44@ *= $ped_time_limit
44@ *= 50
force_big_message_and_counter True
print_with_number_big 'REWARD' {num} 44@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_int_lvar_to_int_var $total_saved_peds += 46@
add_int_lvar_to_int_lvar 55@ += 46@
37@ += 1
46@ = 0
36@ = 0
add_score $player1 {money} 44@
52@ = 0
remove_blip 47@
remove_blip 82@
remove_blip 85@
remove_blip 88@
remove_blip 91@
remove_blip 94@
remove_blip 57@
remove_blip 60@
remove_blip 63@
remove_blip 66@
remove_blip 69@
remove_blip 72@
remove_blip 75@
register_int_stat StatId.AmbulanceLevel {value} $ped_time_limit
$ped_time_limit += 1
if 
  $ped_time_limit == 13
goto_if_false @AMBULAN_13113
force_big_message_and_counter True
print_with_number_big 'A_COMP1' {num} 5000 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 5000
play_mission_passed_tune 2
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_13111
player_made_progress 1
print 'A_COMP3' {time} 5000 {flag} 1
196@ = get_float_stat StatId.MaxHealth
196@ *= 1.5
increment_float_stat_no_message StatId.MaxHealth {value} 196@
register_oddjob_mission_passed 
$done_ambulance_progress = 1

:AMBULAN_13111
return 

:AMBULAN_13113
goto @AMBULAN_3133

:AMBULAN_13120
goto @AMBULAN_10882

:AMBULAN_13127
clear_onscreen_timer $8209
clear_onscreen_counter $ped_time_limit
clear_onscreen_counter $db_ambulance_level
clear_this_print 'ALEVEL'
if 
  $ped_time_limit <> 13
goto_if_false @AMBULAN_13206
print_big 'A_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'A_SAVES' {num} 55@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller

:AMBULAN_13206
if 
  $ped_time_limit <> 13
goto_if_false @AMBULAN_13620
if 
  not is_char_dead 81@
goto_if_false @AMBULAN_13257
set_char_only_damaged_by_player 81@ {state} False
explode_char_head 81@
remove_char_elegantly 81@

:AMBULAN_13257
if 
  not is_char_dead 84@
goto_if_false @AMBULAN_13290
set_char_only_damaged_by_player 84@ {state} False
explode_char_head 84@
remove_char_elegantly 84@

:AMBULAN_13290
if 
  not is_char_dead 87@
goto_if_false @AMBULAN_13323
set_char_only_damaged_by_player 87@ {state} False
explode_char_head 87@
remove_char_elegantly 87@

:AMBULAN_13323
if 
  not is_char_dead 90@
goto_if_false @AMBULAN_13356
set_char_only_damaged_by_player 90@ {state} False
explode_char_head 90@
remove_char_elegantly 90@

:AMBULAN_13356
if 
  not is_char_dead 93@
goto_if_false @AMBULAN_13389
set_char_only_damaged_by_player 93@ {state} False
explode_char_head 93@
remove_char_elegantly 93@

:AMBULAN_13389
if 
  not is_char_dead 56@
goto_if_false @AMBULAN_13422
set_char_only_damaged_by_player 56@ {state} False
explode_char_head 56@
remove_char_elegantly 56@

:AMBULAN_13422
if 
  not is_char_dead 59@
goto_if_false @AMBULAN_13455
set_char_only_damaged_by_player 59@ {state} False
explode_char_head 59@
remove_char_elegantly 59@

:AMBULAN_13455
if 
  not is_char_dead 62@
goto_if_false @AMBULAN_13488
set_char_only_damaged_by_player 62@ {state} False
explode_char_head 62@
remove_char_elegantly 62@

:AMBULAN_13488
if 
  not is_char_dead 65@
goto_if_false @AMBULAN_13521
set_char_only_damaged_by_player 65@ {state} False
explode_char_head 65@
remove_char_elegantly 65@

:AMBULAN_13521
if 
  not is_char_dead 68@
goto_if_false @AMBULAN_13554
set_char_only_damaged_by_player 68@ {state} False
explode_char_head 68@
remove_char_elegantly 68@

:AMBULAN_13554
if 
  not is_char_dead 71@
goto_if_false @AMBULAN_13587
set_char_only_damaged_by_player 71@ {state} False
explode_char_head 71@
remove_char_elegantly 71@

:AMBULAN_13587
if 
  not is_char_dead 74@
goto_if_false @AMBULAN_13620
set_char_only_damaged_by_player 74@ {state} False
explode_char_head 74@
remove_char_elegantly 74@

:AMBULAN_13620
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 90@
mark_char_as_no_longer_needed 93@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 74@
52@ = 0
remove_blip 47@
remove_blip 82@
remove_blip 85@
remove_blip 88@
remove_blip 91@
remove_blip 94@
remove_blip 57@
remove_blip 60@
remove_blip 63@
remove_blip 66@
remove_blip 69@
remove_blip 72@
remove_blip 75@
remove_decision_maker 235@
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
99@ = 0

:AMBULAN_13776
if 
  10 > 99@
goto_if_false @AMBULAN_13906
if 
  224@(99@,10i) == 1
goto_if_false @AMBULAN_13843
set_relationship RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
234@ -= 1
224@(99@,10i) = 0

:AMBULAN_13843
if 
  214@(99@,10i) == 1
goto_if_false @AMBULAN_13892
set_relationship RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1
234@ -= 1
214@(99@,10i) = 0

:AMBULAN_13892
99@ += 1
goto @AMBULAN_13776

:AMBULAN_13906
$onmission = 0
$flag_player_on_ambulance_mission = 0
mission_has_finished 
if 
  $done_ambulance_progress == 1
goto_if_false @AMBULAN_13959
$done_ambulance_progress = 2
show_update_stats False
start_new_script @BACKON 

:AMBULAN_13959
return 

:AMBULAN_13961
if 
  is_char_dead 77@
goto_if_false @AMBULAN_14002
print_now 'A_FAIL3' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_14002
if 
  $8209 == 0
goto_if_false @AMBULAN_14055
explode_char_head 77@
remove_char_elegantly 77@
print_now 'A_FAIL2' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_14055
if 
  80@ == 3
goto_if_false @AMBULAN_14223
179@, 180@, 181@ = get_char_coordinates 77@
40@ = get_car_health 34@
if 
  is_int_lvar_greater_than_int_lvar 39@ > 40@
goto_if_false @AMBULAN_14223
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
41@ *= 50
set_lvar_int_to_var_int 35@ = $8209
sub_int_lvar_from_int_lvar 35@ -= 41@
if 
  35@ > 10
goto_if_false @AMBULAN_14179
sub_int_lvar_from_int_var $8209 -= 41@

:AMBULAN_14179
236@ = set_char_say_context 77@ {phrase} SpeechId.PainStart
if 
  0 > $8209
goto_if_false @AMBULAN_14215
$8209 = 0

:AMBULAN_14215
set_lvar_int_to_lvar_int 39@ = 40@

:AMBULAN_14223
if 
  80@ == 1
goto_if_false @AMBULAN_14508
if 
  locate_char_in_car_char_3d $scplayer {target} 77@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @AMBULAN_14508
43@ = get_number_of_passengers 34@
42@ = get_maximum_number_of_passengers 34@
if 
  is_int_lvar_equal_to_int_lvar 43@ == 42@
goto_if_false @AMBULAN_14360
if 
  50@ == 0
goto_if_false @AMBULAN_14346
print_now 'A_FULL' {time} 5000 {flag} 1

:AMBULAN_14346
50@ = 1
goto @AMBULAN_14367

:AMBULAN_14360
50@ = 0

:AMBULAN_14367
39@ = get_car_health 34@
if 
  50@ == 0
goto_if_false @AMBULAN_14485
if 
  97@ == 0
goto_if_false @AMBULAN_14437
task_enter_car_as_passenger 77@ {vehicle} 34@ {time} -2 {seat} -1
97@ = 1
goto @AMBULAN_14478

:AMBULAN_14437
98@ = get_script_task_status 77@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 98@ == 7
goto_if_false @AMBULAN_14478
task_enter_car_as_passenger 77@ {vehicle} 34@ {time} -2 {seat} -1

:AMBULAN_14478
goto @AMBULAN_14501

:AMBULAN_14485
print_now 'A_FULL' {time} 5000 {flag} 1

:AMBULAN_14501
80@ = 2

:AMBULAN_14508
if 
  80@ == 2
goto_if_false @AMBULAN_14587
if 
  not locate_char_in_car_char_2d $scplayer {otherChar} 77@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_14564
80@ = 1

:AMBULAN_14564
if 
  not is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_14587
80@ = 1

:AMBULAN_14587
if 
  80@ == 2
goto_if_false @AMBULAN_14730
if 
  is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_14730
97@ = 0
remove_blip 78@
if 
  52@ == 0
goto_if_false @AMBULAN_14672
47@ = add_blip_for_coord 167@ {y} 168@ {z} 169@
52@ = 1

:AMBULAN_14672
set_lvar_int_to_lvar_int 49@ = 152@(240@,13i)
49@ /= 1000
print_with_number_big 'A_TIME' {num} 49@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_int_lvar_to_int_var $8209 += 152@(240@,13i)
80@ = 3

:AMBULAN_14730
if 
  80@ == 3
goto_if_false @AMBULAN_14815
if 
  locate_stopped_char_in_car_3d $scplayer {x} 167@ {y} 168@ {z} 169@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @AMBULAN_14815
task_go_straight_to_coord 77@ {x} 173@ {y} 174@ {z} 175@ {speed} MoveState.Run {time} -1
80@ = 4

:AMBULAN_14815
if 
  80@ == 4
goto_if_false @AMBULAN_15046
if 
  not is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_15046
task_go_straight_to_coord 77@ {x} 173@ {y} 174@ {z} 175@ {speed} MoveState.Run {time} -1
force_big_message_and_counter True
print_big 'A_PASS' {time} 3000 {style} TextStyle.MiddleSmallerHigher
if 
  45@ == 1
goto_if_false @AMBULAN_14986
set_lvar_int_to_lvar_int 49@ = 48@
49@ /= 1000
print_with_number_big 'A_TIME' {num} 49@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
34@ = store_car_char_is_in_no_save $scplayer
54@ = get_car_health 34@
54@ += 110
set_car_health 34@ {health} 54@
add_int_lvar_to_int_var $8209 += 48@
45@ += 1

:AMBULAN_14986
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
46@ += 1
increment_int_stat StatId.LivesSaved {value} 1
80@ = 0
set_char_bleeding 77@ {state} False
set_char_keep_task 77@ {state} True
mark_char_as_no_longer_needed 77@

:AMBULAN_15046
return 

//-------------Mission 123---------------
// Originally: Firefighter Sub-Mission

:FIRETRU
gosub @FIRETRU_16
gosub @FIRETRU_10440
terminate_this_script 

:FIRETRU_16
$onmission = 1
$flag_player_on_fire_mission = 1
script_name 'FIRETRU'
wait 0
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_65
register_mission_given 

:FIRETRU_65
165@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_text 'FIRETRK'
show_update_stats False
162@ = 0.0
$db_fires_extinguished = 0
79@ = 0
80@ = 0
$db_firetruck_level = 0
81@ = 0
83@ = 0
82@ = 0
121@ = 7.0
$amb_free_seats = 1
77@ = 0
126@ = 0
78@ = 0
84@ = 0
35@ = -1
35@ = -1
35@ = -1
87@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
$car_or_ped_flag = 0
$8219 = 0
set_wanted_multiplier 0.5
if 
  $onmission == 0
goto_if_false @FIRETRU_789
63@ = add_blip_for_coord $x {y} $y {z} $z
64@ = add_blip_for_coord $x {y} $y {z} $z
65@ = add_blip_for_coord $x {y} $y {z} $z
66@ = add_blip_for_coord $x {y} $y {z} $z
67@ = add_blip_for_coord $x {y} $y {z} $z
68@ = add_blip_for_coord $x {y} $y {z} $z
69@ = add_blip_for_coord $x {y} $y {z} $z
70@ = add_blip_for_coord $x {y} $y {z} $z
71@ = add_blip_for_coord $x {y} $y {z} $z
72@ = add_blip_for_coord $x {y} $y {z} $z
73@ = add_blip_for_coord $x {y} $y {z} $z
74@ = add_blip_for_coord $x {y} $y {z} $z
75@ = add_blip_for_coord $x {y} $y {z} $z
76@ = add_blip_for_coord $x {y} $y {z} $z
35@ = create_car 470 {x} 0.0 {y} 0.0 {z} 0.0
39@ = create_char PedType.Mission1 {modelId} 280 {x} 0.0 {y} 0.0 {z} 0.0
49@ = start_car_fire 35@
50@ = start_car_fire 35@
51@ = start_car_fire 35@
52@ = start_car_fire 35@
53@ = start_char_fire 39@
54@ = start_char_fire 39@
55@ = start_char_fire 39@
56@ = start_char_fire 39@
57@ = start_char_fire 39@
58@ = start_char_fire 39@
59@ = start_char_fire 39@
60@ = start_char_fire 39@
61@ = start_char_fire 39@
62@ = start_char_fire 39@

:FIRETRU_789
88@ = 0
89@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
125@ = generate_random_int_in_range 25 {max} 44
if 
  125@ == 25
goto_if_false @FIRETRU_1027
set_lvar_int_to_constant 126@ = 405

:FIRETRU_1027
if 
  125@ == 26
goto_if_false @FIRETRU_1053
set_lvar_int_to_constant 126@ = 418

:FIRETRU_1053
if 
  125@ == 27
goto_if_false @FIRETRU_1079
set_lvar_int_to_constant 126@ = 421

:FIRETRU_1079
if 
  125@ == 28
goto_if_false @FIRETRU_1105
set_lvar_int_to_constant 126@ = 400

:FIRETRU_1105
if 
  125@ == 29
goto_if_false @FIRETRU_1131
set_lvar_int_to_constant 126@ = 404

:FIRETRU_1131
if 
  125@ == 30
goto_if_false @FIRETRU_1157
set_lvar_int_to_constant 126@ = 445

:FIRETRU_1157
if 
  125@ == 31
goto_if_false @FIRETRU_1183
set_lvar_int_to_constant 126@ = 466

:FIRETRU_1183
if 
  125@ == 32
goto_if_false @FIRETRU_1209
set_lvar_int_to_constant 126@ = 467

:FIRETRU_1209
if 
  125@ == 33
goto_if_false @FIRETRU_1235
set_lvar_int_to_constant 126@ = 479

:FIRETRU_1235
if 
  125@ == 34
goto_if_false @FIRETRU_1261
set_lvar_int_to_constant 126@ = 413

:FIRETRU_1261
if 
  125@ == 35
goto_if_false @FIRETRU_1287
set_lvar_int_to_constant 126@ = 420

:FIRETRU_1287
if 
  125@ == 36
goto_if_false @FIRETRU_1313
set_lvar_int_to_constant 126@ = 438

:FIRETRU_1313
if 
  125@ == 37
goto_if_false @FIRETRU_1339
set_lvar_int_to_constant 126@ = 440

:FIRETRU_1339
if 
  125@ == 38
goto_if_false @FIRETRU_1365
set_lvar_int_to_constant 126@ = 551

:FIRETRU_1365
if 
  125@ == 39
goto_if_false @FIRETRU_1391
set_lvar_int_to_constant 126@ = 470

:FIRETRU_1391
if 
  125@ == 40
goto_if_false @FIRETRU_1417
set_lvar_int_to_constant 126@ = 482

:FIRETRU_1417
if 
  125@ == 41
goto_if_false @FIRETRU_1443
set_lvar_int_to_constant 126@ = 546

:FIRETRU_1443
if 
  125@ == 42
goto_if_false @FIRETRU_1469
set_lvar_int_to_constant 126@ = 492

:FIRETRU_1469
if 
  125@ == 43
goto_if_false @FIRETRU_1495
set_lvar_int_to_constant 126@ = 560

:FIRETRU_1495
request_model 126@
wait 0
gosub @FIRETRU_8331
if 
  77@ == 1
goto_if_false @FIRETRU_1536
goto @FIRETRU_10440

:FIRETRU_1536
if 
  not has_model_loaded 126@
goto_if_false @FIRETRU_1600
wait 0
request_model 126@
gosub @FIRETRU_8331
if 
  77@ == 1
goto_if_false @FIRETRU_1593
goto @FIRETRU_10440

:FIRETRU_1593
goto @FIRETRU_1536

:FIRETRU_1600
119@ = 0
gosub @FIRETRU_5954
set_lvar_float_to_lvar_float 127@ = 153@
set_lvar_float_to_lvar_float 128@ = 154@
set_lvar_float_to_lvar_float 129@ = 155@
clear_area 127@ {y} 128@ {z} 129@ {radius} 5.0 {clearParticles} False
35@ = create_car 126@ {x} 127@ {y} 128@ {z} 129@
freeze_car_position_and_dont_load_collision 35@ {state} True
set_car_heading 35@ {heading} 160@
set_load_collision_for_car_flag 35@ {state} False
set_car_proofs 35@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
123@ = generate_random_float_in_range 0.0 {max} 359.9
set_car_heading 35@ {heading} 123@
50@ = start_car_fire 35@
remove_blip 64@
64@ = add_blip_for_car 35@
set_blip_as_friendly 64@ {state} True
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 35@ {state} True
119@ = 1
88@ += 1
40@ = create_random_char_as_driver 35@
set_char_decision_maker 40@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 40@ {state} False
set_char_only_damaged_by_player 40@ {state} True
set_char_proofs 40@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_1913
41@ = create_random_char_as_passenger 35@ {seat} SeatId.BikeRear
set_char_decision_maker 41@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 41@ {state} False
set_char_only_damaged_by_player 41@ {state} True
set_char_proofs 41@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_1913
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_1985
42@ = create_random_char_as_passenger 35@ {seat} SeatId.RearLeft
set_char_decision_maker 42@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 42@ {state} False
set_char_only_damaged_by_player 42@ {state} True
set_char_proofs 42@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_1985
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_2176
gosub @FIRETRU_5954
set_lvar_float_to_lvar_float 130@ = 153@
set_lvar_float_to_lvar_float 131@ = 154@
set_lvar_float_to_lvar_float 132@ = 155@
clear_area 130@ {y} 131@ {z} 132@ {radius} 5.0 {clearParticles} False
36@ = create_car 126@ {x} 130@ {y} 131@ {z} 132@
freeze_car_position_and_dont_load_collision 36@ {state} True
set_car_heading 36@ {heading} 160@
set_load_collision_for_car_flag 36@ {state} False
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
turn_car_to_face_coord 36@ {x} 127@ {y} 128@
51@ = start_car_fire 36@
set_car_forward_speed 36@ {forwardSpeed} 20.0
remove_blip 65@
65@ = add_blip_for_car 36@
set_blip_as_friendly 65@ {state} True
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 36@ {state} True
88@ += 1

:FIRETRU_2176
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_2246
43@ = create_random_char_as_driver 36@
set_char_decision_maker 43@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 43@ {state} False
set_char_only_damaged_by_player 43@ {state} True
set_char_proofs 43@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2246
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_2318
44@ = create_random_char_as_passenger 36@ {seat} SeatId.BikeRear
set_char_decision_maker 44@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_char_proofs 44@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2318
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_2390
45@ = create_random_char_as_passenger 36@ {seat} SeatId.RearLeft
set_char_decision_maker 45@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 45@ {state} False
set_char_only_damaged_by_player 45@ {state} True
set_char_proofs 45@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2390
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_2581
gosub @FIRETRU_5954
set_lvar_float_to_lvar_float 133@ = 153@
set_lvar_float_to_lvar_float 134@ = 154@
set_lvar_float_to_lvar_float 135@ = 155@
clear_area 133@ {y} 134@ {z} 135@ {radius} 5.0 {clearParticles} False
37@ = create_car 126@ {x} 133@ {y} 134@ {z} 135@
freeze_car_position_and_dont_load_collision 37@ {state} True
set_car_heading 37@ {heading} 160@
set_load_collision_for_car_flag 37@ {state} False
set_car_proofs 37@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
turn_car_to_face_coord 37@ {x} 127@ {y} 128@
52@ = start_car_fire 37@
set_car_forward_speed 37@ {forwardSpeed} 20.0
remove_blip 66@
66@ = add_blip_for_car 37@
set_blip_as_friendly 66@ {state} True
change_blip_display 66@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 37@ {state} True
88@ += 1

:FIRETRU_2581
mark_model_as_no_longer_needed 126@
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_2656
46@ = create_random_char_as_driver 37@
set_char_decision_maker 46@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 46@ {state} False
set_char_only_damaged_by_player 46@ {state} True
set_char_proofs 46@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2656
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_2728
47@ = create_random_char_as_passenger 37@ {seat} SeatId.BikeRear
set_char_decision_maker 47@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 47@ {state} False
set_char_only_damaged_by_player 47@ {state} True
set_char_proofs 47@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2728
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_2800
48@ = create_random_char_as_passenger 37@ {seat} SeatId.RearLeft
set_char_decision_maker 48@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 48@ {state} False
set_char_only_damaged_by_player 48@ {state} True
set_char_proofs 48@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2800
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_2823
set_car_mission 35@ {carMission} CarMission.StopForever

:FIRETRU_2823
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_2846
set_car_mission 36@ {carMission} CarMission.StopForever

:FIRETRU_2846
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_2869
set_car_mission 37@ {carMission} CarMission.StopForever

:FIRETRU_2869
gosub @FIRETRU_8331
if 
  77@ == 1
goto_if_false @FIRETRU_2901
goto @FIRETRU_10440

:FIRETRU_2901
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_3008
146@, 147@, 148@ = get_char_coordinates 40@
s$fire_time_limit = get_name_of_zone 146@ {y} 147@ {z} 148@
if 
  5 > $amb_free_seats
goto_if_false @FIRETRU_2989
print_string_in_string_now 'F_START' {replacementKey} s$fire_time_limit {duration} 5000 {style} TextStyle.Middle
goto @FIRETRU_3008

:FIRETRU_2989
print_string_in_string_now 'F_STAR1' {replacementKey} s$fire_time_limit {duration} 5000 {style} TextStyle.Middle

:FIRETRU_3008
if 
  $amb_free_seats == 1
goto_if_false @FIRETRU_3038
88@ -= 1
delete_char 40@

:FIRETRU_3038
if 
  80@ == 0
goto_if_false @FIRETRU_3088
display_nth_onscreen_counter_with_string $amb_free_seats {display} CounterDisplay.Number {slot} 1 {text} 'FLEV'
80@ = 1
goto @FIRETRU_3092

:FIRETRU_3088
freeze_onscreen_timer False

:FIRETRU_3092
set_lvar_int_to_var_int 85@ = $amb_free_seats
85@ -= 4
$game_timer = get_game_timer 
set_lvar_int_to_var_int 87@ = $game_timer
87@ += 3000

:FIRETRU_3128
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @FIRETRU_3153
$db_fires_extinguished = 300000

:FIRETRU_3153
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @FIRETRU_3294
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_3198
set_car_can_be_damaged 35@ {state} False
set_car_can_be_damaged 35@ {state} True

:FIRETRU_3198
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_3246
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_3246
set_car_can_be_damaged 36@ {state} False
set_car_can_be_damaged 36@ {state} True

:FIRETRU_3246
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_3294
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_3294
set_car_can_be_damaged 37@ {state} False
set_car_can_be_damaged 37@ {state} True

:FIRETRU_3294
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FIRETRU_3330
$done_firetruck_progress = 0
$amb_free_seats = 12
goto @FIRETRU_9883

:FIRETRU_3330
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @FIRETRU_3498
clear_onscreen_timer $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_onscreen_counter $amb_free_seats
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
print_big 'F_PASS1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
print_with_number_big 'REWARD' {num} 79@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_score $player1 {money} 79@
print_with_number_big 'F_COMP1' {num} 5000 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 5000
play_mission_passed_tune 2

:FIRETRU_3498
if 
  77@ == 1
goto_if_false @FIRETRU_3523
goto @FIRETRU_10440

:FIRETRU_3523
wait 0
$game_timer = get_game_timer 
gosub @FIRETRU_8331
if 
  77@ == 1
goto_if_false @FIRETRU_3564
goto @FIRETRU_10440

:FIRETRU_3564
if 
  2 > $got_siren_help_before
goto_if_false @FIRETRU_3761
if 
  $got_siren_help_before == 0
goto_if_false @FIRETRU_3684
if 
  not is_help_message_being_displayed 
goto_if_false @FIRETRU_3677
if 
  not is_message_being_displayed 
goto_if_false @FIRETRU_3670
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3663
print_help 'SPRAY_1'
$got_siren_help_before = 1

:FIRETRU_3663
goto @FIRETRU_3677

:FIRETRU_3670
TIMERA = 0

:FIRETRU_3677
goto @FIRETRU_3761

:FIRETRU_3684
if 
  not is_help_message_being_displayed 
goto_if_false @FIRETRU_3761
if 
  not is_message_being_displayed 
goto_if_false @FIRETRU_3754
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3747
print_help 'SIREN_1'
$got_siren_help_before = 2

:FIRETRU_3747
goto @FIRETRU_3761

:FIRETRU_3754
TIMERA = 0

:FIRETRU_3761
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_4144
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_3982
if 
  104@ == 0
goto_if_false @FIRETRU_3975
set_load_collision_for_car_flag 35@ {state} True
freeze_car_position_and_dont_load_collision 35@ {state} False
104@ = 1
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_3893
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_3893
set_load_collision_for_char_flag 40@ {state} True

:FIRETRU_3893
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_3934
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_3934
set_load_collision_for_char_flag 41@ {state} True

:FIRETRU_3934
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_3975
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_3975
set_load_collision_for_char_flag 42@ {state} True

:FIRETRU_3975
goto @FIRETRU_4144

:FIRETRU_3982
if 
  104@ == 1
goto_if_false @FIRETRU_4144
set_load_collision_for_car_flag 35@ {state} False
freeze_car_position_and_dont_load_collision 35@ {state} True
104@ = 0
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_4062
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_4062
set_load_collision_for_char_flag 40@ {state} False

:FIRETRU_4062
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_4103
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_4103
set_load_collision_for_char_flag 41@ {state} False

:FIRETRU_4103
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_4144
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_4144
set_load_collision_for_char_flag 42@ {state} False

:FIRETRU_4144
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_4946
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_4545
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 36@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_4383
if 
  105@ == 0
goto_if_false @FIRETRU_4376
set_load_collision_for_car_flag 36@ {state} True
freeze_car_position_and_dont_load_collision 36@ {state} False
105@ = 1
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_4294
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_4294
set_load_collision_for_char_flag 43@ {state} True

:FIRETRU_4294
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_4335
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_4335
set_load_collision_for_char_flag 44@ {state} True

:FIRETRU_4335
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_4376
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_4376
set_load_collision_for_char_flag 45@ {state} True

:FIRETRU_4376
goto @FIRETRU_4545

:FIRETRU_4383
if 
  105@ == 1
goto_if_false @FIRETRU_4545
set_load_collision_for_car_flag 36@ {state} False
freeze_car_position_and_dont_load_collision 36@ {state} True
105@ = 0
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_4463
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_4463
set_load_collision_for_char_flag 43@ {state} False

:FIRETRU_4463
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_4504
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_4504
set_load_collision_for_char_flag 44@ {state} False

:FIRETRU_4504
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_4545
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_4545
set_load_collision_for_char_flag 45@ {state} False

:FIRETRU_4545
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_4946
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_4946
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 37@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_4784
if 
  106@ == 0
goto_if_false @FIRETRU_4777
set_load_collision_for_car_flag 37@ {state} True
freeze_car_position_and_dont_load_collision 37@ {state} False
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_4688
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_4688
set_load_collision_for_char_flag 46@ {state} True

:FIRETRU_4688
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_4729
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_4729
set_load_collision_for_char_flag 47@ {state} True

:FIRETRU_4729
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_4770
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_4770
set_load_collision_for_char_flag 48@ {state} True

:FIRETRU_4770
106@ = 1

:FIRETRU_4777
goto @FIRETRU_4946

:FIRETRU_4784
if 
  106@ == 1
goto_if_false @FIRETRU_4946
set_load_collision_for_car_flag 37@ {state} False
freeze_car_position_and_dont_load_collision 37@ {state} True
106@ = 0
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_4864
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_4864
set_load_collision_for_char_flag 46@ {state} False

:FIRETRU_4864
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_4905
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_4905
set_load_collision_for_char_flag 47@ {state} False

:FIRETRU_4905
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_4946
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_4946
set_load_collision_for_char_flag 48@ {state} False

:FIRETRU_4946
set_lvar_int_to_lvar_int 34@ = 35@
set_lvar_int_to_lvar_int 49@ = 50@
set_lvar_int_to_lvar_int 90@ = 92@
set_lvar_int_to_lvar_int 63@ = 64@
$car_or_ped_flag = 1
gosub @FIRETRU_8667
set_lvar_int_to_lvar_int 50@ = 49@
set_lvar_int_to_lvar_int 92@ = 90@
set_lvar_int_to_lvar_int 64@ = 63@
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_5097
set_lvar_int_to_lvar_int 39@ = 40@
set_lvar_int_to_lvar_int 91@ = 95@
set_lvar_int_to_lvar_int 53@ = 54@
set_lvar_int_to_lvar_int 67@ = 68@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 95@ = 91@
set_lvar_int_to_lvar_int 54@ = 53@
set_lvar_int_to_lvar_int 68@ = 67@

:FIRETRU_5097
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_5178
set_lvar_int_to_lvar_int 39@ = 41@
set_lvar_int_to_lvar_int 91@ = 96@
set_lvar_int_to_lvar_int 53@ = 55@
set_lvar_int_to_lvar_int 67@ = 69@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 96@ = 91@
set_lvar_int_to_lvar_int 55@ = 53@
set_lvar_int_to_lvar_int 69@ = 67@

:FIRETRU_5178
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_5259
set_lvar_int_to_lvar_int 39@ = 42@
set_lvar_int_to_lvar_int 91@ = 97@
set_lvar_int_to_lvar_int 53@ = 56@
set_lvar_int_to_lvar_int 67@ = 70@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 97@ = 91@
set_lvar_int_to_lvar_int 56@ = 53@
set_lvar_int_to_lvar_int 70@ = 67@

:FIRETRU_5259
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_5347
set_lvar_int_to_lvar_int 34@ = 36@
set_lvar_int_to_lvar_int 49@ = 51@
set_lvar_int_to_lvar_int 90@ = 93@
set_lvar_int_to_lvar_int 63@ = 65@
$car_or_ped_flag = 2
gosub @FIRETRU_8667
set_lvar_int_to_lvar_int 51@ = 49@
set_lvar_int_to_lvar_int 93@ = 90@
set_lvar_int_to_lvar_int 65@ = 63@

:FIRETRU_5347
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_5428
set_lvar_int_to_lvar_int 39@ = 43@
set_lvar_int_to_lvar_int 91@ = 98@
set_lvar_int_to_lvar_int 53@ = 57@
set_lvar_int_to_lvar_int 67@ = 71@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 98@ = 91@
set_lvar_int_to_lvar_int 57@ = 53@
set_lvar_int_to_lvar_int 71@ = 67@

:FIRETRU_5428
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_5509
set_lvar_int_to_lvar_int 39@ = 44@
set_lvar_int_to_lvar_int 91@ = 99@
set_lvar_int_to_lvar_int 53@ = 58@
set_lvar_int_to_lvar_int 67@ = 72@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 99@ = 91@
set_lvar_int_to_lvar_int 58@ = 53@
set_lvar_int_to_lvar_int 72@ = 67@

:FIRETRU_5509
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_5590
set_lvar_int_to_lvar_int 39@ = 45@
set_lvar_int_to_lvar_int 91@ = 100@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 67@ = 73@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 100@ = 91@
set_lvar_int_to_lvar_int 59@ = 53@
set_lvar_int_to_lvar_int 73@ = 67@

:FIRETRU_5590
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_5678
set_lvar_int_to_lvar_int 34@ = 37@
set_lvar_int_to_lvar_int 49@ = 52@
set_lvar_int_to_lvar_int 90@ = 94@
set_lvar_int_to_lvar_int 63@ = 66@
$car_or_ped_flag = 3
gosub @FIRETRU_8667
set_lvar_int_to_lvar_int 52@ = 49@
set_lvar_int_to_lvar_int 94@ = 90@
set_lvar_int_to_lvar_int 66@ = 63@

:FIRETRU_5678
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_5759
set_lvar_int_to_lvar_int 39@ = 46@
set_lvar_int_to_lvar_int 91@ = 101@
set_lvar_int_to_lvar_int 53@ = 60@
set_lvar_int_to_lvar_int 67@ = 74@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 101@ = 91@
set_lvar_int_to_lvar_int 60@ = 53@
set_lvar_int_to_lvar_int 74@ = 67@

:FIRETRU_5759
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_5840
set_lvar_int_to_lvar_int 39@ = 47@
set_lvar_int_to_lvar_int 91@ = 102@
set_lvar_int_to_lvar_int 53@ = 61@
set_lvar_int_to_lvar_int 67@ = 75@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 102@ = 91@
set_lvar_int_to_lvar_int 61@ = 53@
set_lvar_int_to_lvar_int 75@ = 67@

:FIRETRU_5840
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_5921
set_lvar_int_to_lvar_int 39@ = 48@
set_lvar_int_to_lvar_int 91@ = 103@
set_lvar_int_to_lvar_int 53@ = 62@
set_lvar_int_to_lvar_int 67@ = 76@
gosub @FIRETRU_9195
set_lvar_int_to_lvar_int 103@ = 91@
set_lvar_int_to_lvar_int 62@ = 53@
set_lvar_int_to_lvar_int 76@ = 67@

:FIRETRU_5921
if 
  is_int_lvar_greater_or_equal_to_int_lvar 89@ >= 88@
goto_if_false @FIRETRU_5947
goto @FIRETRU_9883

:FIRETRU_5947
goto @FIRETRU_3128

:FIRETRU_5954
wait 0
120@ = 0
TIMERA = 0

:FIRETRU_5972
if 
  120@ == 0
goto_if_false @FIRETRU_8062
120@ = 1
163@ = 1
162@ += 1.0
if 
  not is_char_dead $scplayer
goto_if_false @FIRETRU_6081
if 
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @FIRETRU_6074
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6074
goto @FIRETRU_6088

:FIRETRU_6081
77@ = 1

:FIRETRU_6088
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6142
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_6135
82@ = 1

:FIRETRU_6135
goto @FIRETRU_6166

:FIRETRU_6142
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_6166
82@ = 1

:FIRETRU_6166
if 
  82@ == 1
goto_if_false @FIRETRU_6293
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6251
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_6244
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6244
goto @FIRETRU_6293

:FIRETRU_6251
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_6293
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6293
if 
  77@ == 1
goto_if_false @FIRETRU_6318
goto @FIRETRU_10440

:FIRETRU_6318
143@, 144@, 145@ = get_char_coordinates $scplayer
cset_lvar_float_to_var_int 156@ =# $amb_free_seats
156@ *= 60.0
add_float_lvar_to_float_lvar 156@ += 162@
if 
  170.0 > 156@
goto_if_false @FIRETRU_6389
156@ = 170.0

:FIRETRU_6389
set_lvar_float_to_lvar_float 149@ = 143@
add_float_lvar_to_float_lvar 149@ += 156@
set_lvar_float_to_lvar_float 151@ = 143@
sub_float_lvar_from_float_lvar 151@ -= 156@
set_lvar_float_to_lvar_float 150@ = 144@
add_float_lvar_to_float_lvar 150@ += 156@
set_lvar_float_to_lvar_float 152@ = 144@
sub_float_lvar_from_float_lvar 152@ -= 156@
153@ = generate_random_float_in_range 151@ {max} 149@
154@ = generate_random_float_in_range 152@ {max} 150@
153@, 154@, 155@, 157@, 158@, 159@, 160@ = get_closest_straight_road 153@ {y} 154@ {z} 145@ {minDist} 10.0 {maxDist} 500.0
if 
  153@ == 0.0
goto_if_false @FIRETRU_6608
if 
  154@ == 0.0
goto_if_false @FIRETRU_6608
if 
  157@ == 0.0
goto_if_false @FIRETRU_6608
if 
  158@ == 0.0
goto_if_false @FIRETRU_6608
120@ = 0

:FIRETRU_6608
if 
  120@ == 1
goto_if_false @FIRETRU_6777
124@ = get_distance_between_coords_3d 143@ {fromY} 144@ {fromZ} 145@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  140.0 > 124@
goto_if_false @FIRETRU_6677
120@ = 0

:FIRETRU_6677
if 
  119@ == 1
goto_if_false @FIRETRU_6763
if 
  35.0 > 162@
goto_if_false @FIRETRU_6756
s$8217 = get_name_of_zone 153@ {y} 154@ {z} 155@
if 
  not is_var_text_label_equal_to_text_label s$8217 == s$fire_time_limit
goto_if_false @FIRETRU_6756
120@ = 0

:FIRETRU_6756
goto @FIRETRU_6777

:FIRETRU_6763
s$fire_time_limit = get_name_of_zone 153@ {y} 154@ {z} 155@

:FIRETRU_6777
if 
  120@ == 1
goto_if_false @FIRETRU_7379
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @FIRETRU_7379
if 
  $Return_cities_passed == 0
goto_if_false @FIRETRU_7137
if and
  78.4427 > 153@
  -699.519 > 154@
goto_if_false @FIRETRU_6877
120@ = 0

:FIRETRU_6877
if 
  120@ == 1
goto_if_false @FIRETRU_7137
if and
  -252.6557 > 153@
  -285.766 > 154@
goto_if_false @FIRETRU_6933
120@ = 0

:FIRETRU_6933
if 
  120@ == 1
goto_if_false @FIRETRU_7137
if 
  -948.3447 > 153@
goto_if_false @FIRETRU_6979
120@ = 0

:FIRETRU_6979
if 
  120@ == 1
goto_if_false @FIRETRU_7137
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7035
120@ = 0

:FIRETRU_7035
if 
  120@ == 1
goto_if_false @FIRETRU_7137
if 
  154@ > 578.6325
goto_if_false @FIRETRU_7081
120@ = 0

:FIRETRU_7081
if 
  120@ == 1
goto_if_false @FIRETRU_7137
if and
  837.5551 > 153@
  154@ > 347.4097
goto_if_false @FIRETRU_7137
120@ = 0

:FIRETRU_7137
if 
  120@ == 1
goto_if_false @FIRETRU_7379
if 
  $Return_cities_passed == 1
goto_if_false @FIRETRU_7379
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7211
120@ = 0

:FIRETRU_7211
if 
  120@ == 1
goto_if_false @FIRETRU_7379
if and
  154@ > 578.6325
  153@ > -1528.498
goto_if_false @FIRETRU_7267
120@ = 0

:FIRETRU_7267
if 
  120@ == 1
goto_if_false @FIRETRU_7379
if and
  837.5551 > 153@
  153@ > -1528.498
  154@ > 347.4097
goto_if_false @FIRETRU_7333
120@ = 0

:FIRETRU_7333
if 
  120@ == 1
goto_if_false @FIRETRU_7379
if 
  154@ > 1380.0
goto_if_false @FIRETRU_7379
120@ = 0

:FIRETRU_7379
if 
  120@ == 1
goto_if_false @FIRETRU_7579
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7488
if 
  153@ > 1970.0
goto_if_false @FIRETRU_7488
if 
  -2274.0 > 154@
goto_if_false @FIRETRU_7488
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7488
120@ = 0

:FIRETRU_7488
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7579
if 
  153@ > 1590.0
goto_if_false @FIRETRU_7579
if 
  -2397.0 > 154@
goto_if_false @FIRETRU_7579
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7579
120@ = 0

:FIRETRU_7579
if 
  120@ == 1
goto_if_false @FIRETRU_7779
if 
  -1070.0 > 153@
goto_if_false @FIRETRU_7688
if 
  153@ > -1737.0
goto_if_false @FIRETRU_7688
if 
  -185.0 > 154@
goto_if_false @FIRETRU_7688
if 
  154@ > -590.0
goto_if_false @FIRETRU_7688
120@ = 0

:FIRETRU_7688
if 
  -1081.0 > 153@
goto_if_false @FIRETRU_7779
if 
  153@ > -1600.0
goto_if_false @FIRETRU_7779
if 
  415.0 > 154@
goto_if_false @FIRETRU_7779
if 
  154@ > -185.0
goto_if_false @FIRETRU_7779
120@ = 0

:FIRETRU_7779
if 
  120@ == 1
goto_if_false @FIRETRU_7888
if 
  1733.0 > 153@
goto_if_false @FIRETRU_7888
if 
  153@ > 1500.0
goto_if_false @FIRETRU_7888
if 
  1702.0 > 154@
goto_if_false @FIRETRU_7888
if 
  154@ > 1529.0
goto_if_false @FIRETRU_7888
120@ = 0

:FIRETRU_7888
if 
  120@ == 1
goto_if_false @FIRETRU_8051
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_8051
161@ = get_distance_between_coords_3d 127@ {fromY} 128@ {fromZ} 129@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  20.0 > 161@
goto_if_false @FIRETRU_7982
120@ = 0
goto @FIRETRU_8051

:FIRETRU_7982
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_8051
161@ = get_distance_between_coords_3d 130@ {fromY} 131@ {fromZ} 132@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  20.0 > 161@
goto_if_false @FIRETRU_8051
120@ = 0

:FIRETRU_8051
wait 0
goto @FIRETRU_5972

:FIRETRU_8062
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_8194
161@ = get_distance_between_coords_3d 127@ {fromY} 128@ {fromZ} 129@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_8169
161@ = get_distance_between_coords_3d 130@ {fromY} 131@ {fromZ} 132@ {toX} 153@ {toY} 154@ {toZ} 155@
161@ /= 4.0
add_float_lvar_to_float_lvar 124@ += 161@
goto @FIRETRU_8187

:FIRETRU_8169
add_float_lvar_to_float_lvar 124@ += 161@
161@ /= 8.0

:FIRETRU_8187
goto @FIRETRU_8194

:FIRETRU_8194
if 
  9 > $amb_free_seats
goto_if_false @FIRETRU_8237
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 8.0
goto @FIRETRU_8255

:FIRETRU_8237
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 10.0

:FIRETRU_8255
122@ *= 1000.0
cset_lvar_int_to_lvar_float 78@ =# 122@
add_int_lvar_to_int_var $db_fires_extinguished += 78@
if 
  60000 > $db_fires_extinguished
goto_if_false @FIRETRU_8312
$db_fires_extinguished = 60000

:FIRETRU_8312
163@ = 0
162@ = 0.0
return 

:FIRETRU_8331
if 
  80@ == 1
goto_if_false @FIRETRU_8394
if 
  1 > $db_fires_extinguished
goto_if_false @FIRETRU_8394
clear_prints 
print_now 'F_FAIL2' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_8394
if 
  not is_char_dead $scplayer
goto_if_false @FIRETRU_8456
if 
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @FIRETRU_8456
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8456
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8510
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_8503
82@ = 1

:FIRETRU_8503
goto @FIRETRU_8534

:FIRETRU_8510
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_8534
82@ = 1

:FIRETRU_8534
if 
  82@ == 1
goto_if_false @FIRETRU_8665
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8621
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_8614
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8614
goto @FIRETRU_8665

:FIRETRU_8621
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_8665
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8665
return 

:FIRETRU_8667
if 
  90@ <> 10
goto_if_false @FIRETRU_9193
if 
  not is_car_dead 34@
goto_if_false @FIRETRU_9017
$8219 = 1
if 
  does_script_fire_exist 49@
goto_if_false @FIRETRU_8886
if 
  not is_script_fire_extinguished 49@
goto_if_false @FIRETRU_8755
86@ = get_car_health 34@
goto @FIRETRU_8879

:FIRETRU_8755
if 
  90@ <> 10
goto_if_false @FIRETRU_8879
remove_blip 63@
task_everyone_leave_car 34@
remove_script_fire 49@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_8838
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_8838
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_8879
goto @FIRETRU_9010

:FIRETRU_8886
if 
  90@ <> 10
goto_if_false @FIRETRU_9010
remove_blip 63@
task_everyone_leave_car 34@
remove_script_fire 49@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_8969
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_8969
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_9010
goto @FIRETRU_9186

:FIRETRU_9017
if 
  is_car_in_water 34@
goto_if_false @FIRETRU_9159
if 
  90@ <> 10
goto_if_false @FIRETRU_9152
remove_blip 63@
task_everyone_leave_car 34@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9111
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9111
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_9152
goto @FIRETRU_9186

:FIRETRU_9159
clear_prints 
print_now 'F_FAIL4' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9186
goto @FIRETRU_9193

:FIRETRU_9193
return 

:FIRETRU_9195
if 
  2 > 91@
goto_if_false @FIRETRU_9881
if 
  not is_char_dead 39@
goto_if_false @FIRETRU_9678
if 
  91@ == 0
goto_if_false @FIRETRU_9410
if 
  not is_char_in_any_car 39@
goto_if_false @FIRETRU_9342
53@ = start_char_fire 39@
138@, 139@, 140@ = get_char_coordinates 39@
task_flee_point 39@ {x} 138@ {y} 139@ {z} 140@ {radius} 20.0 {time} -1
67@ = add_blip_for_char 39@
set_blip_as_friendly 67@ {state} True
change_blip_display 67@ {display} BlipDisplay.BlipOnly
91@ = 1
goto @FIRETRU_9410

:FIRETRU_9342
if 
  90@ == 10
goto_if_false @FIRETRU_9410
if 
  is_char_in_any_car 39@
goto_if_false @FIRETRU_9410
164@ = get_script_task_status 39@ {taskId} 1587
if 
  is_int_lvar_equal_to_constant 164@ == 7
goto_if_false @FIRETRU_9410
task_leave_any_car 39@

:FIRETRU_9410
if 
  91@ == 1
goto_if_false @FIRETRU_9671
$8219 = 2
if 
  does_script_fire_exist 53@
goto_if_false @FIRETRU_9575
if 
  is_script_fire_extinguished 53@
goto_if_false @FIRETRU_9568
remove_script_fire 53@
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9527
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9527
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_firetruck_level += 1
89@ += 1
91@ = 2

:FIRETRU_9568
goto @FIRETRU_9671

:FIRETRU_9575
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9630
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9630
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_firetruck_level += 1
89@ += 1
91@ = 2

:FIRETRU_9671
goto @FIRETRU_9881

:FIRETRU_9678
if 
  is_char_in_water 39@
goto_if_false @FIRETRU_9854
if 
  91@ == 1
goto_if_false @FIRETRU_9820
remove_script_fire 53@
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9772
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9772
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_firetruck_level += 1
89@ += 1
91@ = 2
goto @FIRETRU_9847

:FIRETRU_9820
clear_prints 
print_now 'F_FAIL2' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9847
goto @FIRETRU_9881

:FIRETRU_9854
clear_prints 
print_now 'F_FAIL3' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9881
return 

:FIRETRU_9883
freeze_onscreen_timer True
remove_all_script_fires 
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
if 
  is_char_in_any_car $scplayer
goto_if_false @FIRETRU_10007
38@ = store_car_char_is_in_no_save $scplayer
84@ = get_car_health 38@
84@ += 150
set_car_health 38@ {health} 84@

:FIRETRU_10007
mark_car_as_no_longer_needed 35@
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_10035
set_car_only_damaged_by_player 35@ {state} False

:FIRETRU_10035
mark_car_as_no_longer_needed 36@
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_10063
set_car_only_damaged_by_player 36@ {state} False

:FIRETRU_10063
mark_car_as_no_longer_needed 37@
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_10091
set_car_only_damaged_by_player 37@ {state} False

:FIRETRU_10091
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_model_as_no_longer_needed 126@
register_int_stat StatId.FirefighterLevel {value} $amb_free_seats
$amb_free_seats += 1
if 
  $amb_free_seats == 13
goto_if_false @FIRETRU_10359
clear_onscreen_timer $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_onscreen_counter $amb_free_seats
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
print_big 'F_PASS1' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
79@ += 5000
print_with_number_big 'F_COMP1' {num} 13450 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 79@
play_mission_passed_tune 2
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_10343
show_update_stats False
player_made_progress 1
register_oddjob_mission_passed 
$done_firetruck_progress = 1

:FIRETRU_10343
77@ = 1
return 
goto @FIRETRU_10433

:FIRETRU_10359
print_big 'F_PASS1' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
print_with_number_big 'REWARD' {num} 79@ {duration} 6000 {style} TextStyle.LightBlueTop
add_score $player1 {money} 79@

:FIRETRU_10433
goto @FIRETRU_789

:FIRETRU_10440
clear_onscreen_timer $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_onscreen_counter $amb_free_seats
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
if 
  $amb_free_seats <> 13
goto_if_false @FIRETRU_10548
print_big 'F_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'TSCORE' {num} 83@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
goto @FIRETRU_10548

:FIRETRU_10548
set_wanted_multiplier 1.0
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
if 
  $amb_free_seats <> 13
goto_if_false @FIRETRU_11225
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_10688
set_char_only_damaged_by_player 40@ {state} False
set_char_health 40@ {health} 10
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10688
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_10733
set_char_only_damaged_by_player 41@ {state} False
set_char_health 41@ {health} 10
set_char_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10733
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_10778
set_char_only_damaged_by_player 42@ {state} False
set_char_health 42@ {health} 10
set_char_proofs 42@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10778
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_10823
set_char_only_damaged_by_player 43@ {state} False
set_char_health 43@ {health} 10
set_char_proofs 43@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10823
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_10868
set_char_only_damaged_by_player 44@ {state} False
set_char_health 44@ {health} 10
set_char_proofs 44@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10868
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_10913
set_char_only_damaged_by_player 45@ {state} False
set_char_health 45@ {health} 10
set_char_proofs 45@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10913
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_10958
set_char_only_damaged_by_player 46@ {state} False
set_char_health 46@ {health} 10
set_char_proofs 46@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10958
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_11003
set_char_only_damaged_by_player 47@ {state} False
set_char_health 47@ {health} 10
set_char_proofs 47@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_11003
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_11048
set_char_only_damaged_by_player 48@ {state} False
set_char_health 48@ {health} 10
set_char_proofs 48@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_11048
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_11107
set_car_only_damaged_by_player 35@ {state} False
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 35@
goto_if_false @FIRETRU_11107
explode_car 35@

:FIRETRU_11107
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_11166
set_car_only_damaged_by_player 36@ {state} False
set_car_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 36@
goto_if_false @FIRETRU_11166
explode_car 36@

:FIRETRU_11166
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_11225
set_car_only_damaged_by_player 37@ {state} False
set_car_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 37@
goto_if_false @FIRETRU_11225
explode_car 37@

:FIRETRU_11225
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_model_as_no_longer_needed 126@
$timer_mobile_start = get_game_timer 
$onmission = 0
$flag_player_on_fire_mission = 0
clear_all_script_fire_flags 
remove_decision_maker 165@
mission_has_finished 
if 
  $done_firetruck_progress == 1
goto_if_false @FIRETRU_11368
clear_help 
print_help 'FIREPRO'
$done_firetruck_progress = 2
show_update_stats False
start_new_script @BACKON 

:FIRETRU_11368
return 

//-------------Mission 124---------------
// Originally: Vigilante Sub-Mission

:COPCAR
gosub @COPCAR_52
if 
  has_deatharrest_been_executed 
goto_if_false @COPCAR_43
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
gosub @COPCAR_14759

:COPCAR_43
gosub @COPCAR_14761
terminate_this_script 

:COPCAR_52
$onmission = 1
script_name 'COPCAR'
wait 0
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_94
register_mission_given 

:COPCAR_94
load_mission_text 'COPCAR'
51@ = 0
$car_numer_flag = -100
58@ = 0
$cop_time_limit = 0
65@ = 0
62@ = 0
52@ = 0
53@ = 0
64@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
59@ = 0
60@ = 0
61@ = 0
63@ = 0
90@ = 0
142@ = 4.0
144@ = 0.0
143@ = 0.9
91@ = 0
$heading = 0.0
124@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
set_lvar_int_to_constant 176@ = 521
set_lvar_int_to_constant 177@ = 522
set_lvar_int_to_constant 178@ = 461
set_lvar_int_to_constant 179@ = 462
set_lvar_int_to_constant 180@ = 463
set_lvar_int_to_constant 181@ = 468
set_lvar_int_to_constant 182@ = 581
set_lvar_int_to_constant 183@ = 586
set_lvar_int_to_constant 184@ = 411
set_lvar_int_to_constant 185@ = 415
set_lvar_int_to_constant 186@ = 429
set_lvar_int_to_constant 187@ = 451
set_lvar_int_to_constant 188@ = 477
set_lvar_int_to_constant 189@ = 480
set_lvar_int_to_constant 190@ = 506
set_lvar_int_to_constant 191@ = 541
set_lvar_int_to_constant 192@ = 603
set_lvar_int_to_constant 193@ = 400
set_lvar_int_to_constant 194@ = 401
set_lvar_int_to_constant 195@ = 402
set_lvar_int_to_constant 196@ = 410
set_lvar_int_to_constant 197@ = 412
set_lvar_int_to_constant 198@ = 413
set_lvar_int_to_constant 199@ = 419
set_lvar_int_to_constant 200@ = 422
set_lvar_int_to_constant 201@ = 424
set_lvar_int_to_constant 202@ = 434
set_lvar_int_to_constant 203@ = 436
set_lvar_int_to_constant 204@ = 439
set_lvar_int_to_constant 205@ = 440
set_lvar_int_to_constant 206@ = 474
set_lvar_int_to_constant 207@ = 475
set_lvar_int_to_constant 208@ = 478
set_lvar_int_to_constant 209@ = 482
set_lvar_int_to_constant 210@ = 483
set_lvar_int_to_constant 211@ = 489
set_lvar_int_to_constant 212@ = 491
set_lvar_int_to_constant 213@ = 496
set_lvar_int_to_constant 214@ = 500
set_lvar_int_to_constant 215@ = 517
set_lvar_int_to_constant 216@ = 518
set_lvar_int_to_constant 217@ = 526
set_lvar_int_to_constant 218@ = 527
set_lvar_int_to_constant 219@ = 533
set_lvar_int_to_constant 220@ = 534
set_lvar_int_to_constant 221@ = 535
set_lvar_int_to_constant 222@ = 536
set_lvar_int_to_constant 223@ = 542
set_lvar_int_to_constant 224@ = 543
set_lvar_int_to_constant 225@ = 545
set_lvar_int_to_constant 226@ = 549
set_lvar_int_to_constant 227@ = 554
set_lvar_int_to_constant 228@ = 555
set_lvar_int_to_constant 229@ = 558
set_lvar_int_to_constant 230@ = 559
set_lvar_int_to_constant 231@ = 562
set_lvar_int_to_constant 232@ = 565
set_lvar_int_to_constant 233@ = 567
set_lvar_int_to_constant 234@ = 575
set_lvar_int_to_constant 235@ = 576
set_lvar_int_to_constant 236@ = 579
set_lvar_int_to_constant 237@ = 587
set_lvar_int_to_constant 238@ = 589
set_lvar_int_to_constant 239@ = 600
set_lvar_int_to_constant 240@ = 602
set_lvar_int_to_constant 241@ = 605
set_lvar_int_to_constant 242@ = 442
set_lvar_int_to_constant 243@ = 404
set_lvar_int_to_constant 244@ = 405
set_lvar_int_to_constant 245@ = 418
set_lvar_int_to_constant 246@ = 421
set_lvar_int_to_constant 247@ = 426
set_lvar_int_to_constant 248@ = 445
set_lvar_int_to_constant 249@ = 458
set_lvar_int_to_constant 250@ = 466
set_lvar_int_to_constant 251@ = 467
set_lvar_int_to_constant 252@ = 479
set_lvar_int_to_constant 253@ = 492
set_lvar_int_to_constant 254@ = 507
set_lvar_int_to_constant 255@ = 516
set_lvar_int_to_constant 256@ = 529
set_lvar_int_to_constant 257@ = 540
set_lvar_int_to_constant 258@ = 546
set_lvar_int_to_constant 259@ = 547
set_lvar_int_to_constant 260@ = 550
set_lvar_int_to_constant 261@ = 551
set_lvar_int_to_constant 262@ = 560
set_lvar_int_to_constant 263@ = 561
set_lvar_int_to_constant 264@ = 580
set_lvar_int_to_constant 265@ = 585
set_lvar_int_to_constant 266@ = 604
request_model 346
request_model 352
request_model 355
request_model 349
request_model 336
load_all_models_now 

:COPCAR_1163
if or
  not has_model_loaded 346
  not has_model_loaded 352
  not has_model_loaded 355
  not has_model_loaded 349
goto_if_false @COPCAR_1205
wait 0
goto @COPCAR_1163

:COPCAR_1205
if 
  not has_model_loaded 336
goto_if_false @COPCAR_1232
wait 0
goto @COPCAR_1205

:COPCAR_1232
if 
  is_char_in_any_car $scplayer
goto_if_false @COPCAR_1263
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False

:COPCAR_1263
267@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 267@ {event} Event.VehicleDamageWeapon
268@ = copy_group_decision_maker -1
clear_group_decision_maker_event_response 268@ {event} Event.VehicleDamageWeapon

:COPCAR_1291
73@ = 0
82@ = 0
89@ = 0
52@ = 0
269@ = 0
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
71@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
83@ = 0
174@ = 0
175@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
128@ = 0.0
129@ = 0.0
130@ = 0.0
131@ = 0.0
270@ = 0
gosub @COPCAR_14902
271@ = generate_random_int_in_range 9 {max} 255

:COPCAR_1530
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1579
271@ = generate_random_int_in_range 9 {max} 255
goto @COPCAR_1530

:COPCAR_1579
if 
  not is_model_in_cdimage 271@
goto_if_false @COPCAR_1661
271@ = generate_random_int_in_range 9 {max} 255

:COPCAR_1605
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1654
271@ = generate_random_int_in_range 9 {max} 255
goto @COPCAR_1605

:COPCAR_1654
goto @COPCAR_1579

:COPCAR_1661
request_model 271@

:COPCAR_1666
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_1698
goto @COPCAR_14759

:COPCAR_1698
$player_x, $player_y, $z = get_char_coordinates $scplayer
set_var_float_to_var_float $x = $player_x
$x -= 800.0
set_lvar_float_to_var_float 272@ = $player_x
272@ += 800.0
104@ = generate_random_float_in_range $x {max} 272@
set_var_float_to_var_float $y = $player_y
$y -= 800.0
set_lvar_float_to_var_float 273@ = $player_y
273@ += 800.0
105@ = generate_random_float_in_range $y {max} 273@
106@ = 10.0
if 
  4 > 51@
goto_if_false @COPCAR_1867
104@, 105@, 106@, 113@ = get_closest_car_node_with_heading 104@ {y} 105@ {z} 106@
106@ += 0.5

:COPCAR_1867
if and
  51@ > 3
  8 > 51@
goto_if_false @COPCAR_2252
104@, 105@, 106@, 107@, 108@, 109@, 113@ = get_closest_straight_road 104@ {y} 105@ {z} 106@ {minDist} 8.0 {maxDist} 500.0
if and
  104@ == 0.0
  105@ == 0.0
  107@ == 0.0
  108@ == 0.0
goto_if_false @COPCAR_1996
wait 0
goto @COPCAR_1666

:COPCAR_1996
set_lvar_float_to_lvar_float 125@ = 107@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 108@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = sqrt 127@
149@ = 8.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 107@ = 104@
add_float_lvar_to_float_lvar 107@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 108@ = 105@
add_float_lvar_to_float_lvar 108@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
106@ += 0.5
109@ += 0.5

:COPCAR_2252
if 
  51@ > 7
goto_if_false @COPCAR_2742
104@, 105@, 106@, 110@, 111@, 112@, 113@ = get_closest_straight_road 104@ {y} 105@ {z} 106@ {minDist} 13.0 {maxDist} 500.0
if and
  104@ == 0.0
  105@ == 0.0
  110@ == 0.0
  111@ == 0.0
goto_if_false @COPCAR_2374
wait 0
goto @COPCAR_1666

:COPCAR_2374
set_lvar_float_to_lvar_float 125@ = 110@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 111@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = sqrt 127@
149@ = 13.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 110@ = 104@
add_float_lvar_to_float_lvar 110@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 111@ = 105@
add_float_lvar_to_float_lvar 111@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
set_lvar_float_to_lvar_float 107@ = 104@
sub_float_lvar_from_float_lvar 107@ -= 110@
107@ /= 2.0
add_float_lvar_to_float_lvar 107@ += 110@
set_lvar_float_to_lvar_float 108@ = 105@
sub_float_lvar_from_float_lvar 108@ -= 111@
108@ /= 2.0
add_float_lvar_to_float_lvar 108@ += 111@
set_lvar_float_to_lvar_float 109@ = 106@
sub_float_lvar_from_float_lvar 109@ -= 112@
109@ /= 2.0
add_float_lvar_to_float_lvar 109@ += 112@
106@ += 0.5
109@ += 0.5
112@ += 0.5

:COPCAR_2742
if 
  1.0 > 106@
goto_if_false @COPCAR_2774
wait 0
goto @COPCAR_1666

:COPCAR_2774
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
115@ = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 104@ {toZ} 105@
if or
  150.0 > 115@
  115@ > 800.0
goto_if_false @COPCAR_2847
wait 0
goto @COPCAR_1666

:COPCAR_2847
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @COPCAR_3105
if and
  78.4427 > 104@
  -699.519 > 105@
goto_if_false @COPCAR_2915
wait 0
goto @COPCAR_1666

:COPCAR_2915
if and
  -252.6557 > 104@
  -285.766 > 105@
goto_if_false @COPCAR_2957
wait 0
goto @COPCAR_1666

:COPCAR_2957
if 
  -948.3447 > 104@
goto_if_false @COPCAR_2989
wait 0
goto @COPCAR_1666

:COPCAR_2989
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3031
wait 0
goto @COPCAR_1666

:COPCAR_3031
if 
  105@ > 578.6325
goto_if_false @COPCAR_3063
wait 0
goto @COPCAR_1666

:COPCAR_3063
if and
  837.5551 > 104@
  105@ > 347.4097
goto_if_false @COPCAR_3105
wait 0
goto @COPCAR_1666

:COPCAR_3105
if 
  2 > $Return_cities_passed
goto_if_false @COPCAR_3353
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3165
wait 0
goto @COPCAR_1666

:COPCAR_3165
if and
  105@ > 578.6325
  104@ > -1528.498
goto_if_false @COPCAR_3207
wait 0
goto @COPCAR_1666

:COPCAR_3207
if and
  837.5551 > 104@
  104@ > -1528.498
  105@ > 347.4097
goto_if_false @COPCAR_3259
wait 0
goto @COPCAR_1666

:COPCAR_3259
if 
  105@ > 1380.0
goto_if_false @COPCAR_3291
wait 0
goto @COPCAR_1666

:COPCAR_3291
if and
  104@ > -2702.72
  105@ > 1225.6689
  -2663.146 > 104@
  1654.808 > 105@
goto_if_false @COPCAR_3353
wait 0
goto @COPCAR_1666

:COPCAR_3353
if and
  104@ > -1735.751
  105@ > -696.0117
  -1192.817 > 104@
  286.3584 > 105@
goto_if_false @COPCAR_3415
wait 0
goto @COPCAR_1666

:COPCAR_3415
if and
  104@ > -1192.817
  105@ > -521.9908
  -1125.656 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3477
wait 0
goto @COPCAR_1666

:COPCAR_3477
if and
  104@ > -1125.656
  105@ > -329.59
  -1020.189 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3539
wait 0
goto @COPCAR_1666

:COPCAR_3539
$total_criminals_killed = generate_random_int 

:COPCAR_3544
if 
  $total_criminals_killed == 0
goto_if_false @COPCAR_3574
$total_criminals_killed = generate_random_int 
goto @COPCAR_3544

:COPCAR_3574
if or
  not has_model_loaded 90@
  not has_model_loaded 271@
goto_if_false @COPCAR_3638
wait 0
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_3631
goto @COPCAR_14759

:COPCAR_3631
goto @COPCAR_3574

:COPCAR_3638
35@ = create_car 90@ {x} 104@ {y} 105@ {z} 106@
set_car_health 35@ {health} 800
set_car_driving_style 35@ {drivingStyle} DrivingMode.AvoidCars
if 
  51@ > 3
goto_if_false @COPCAR_3696
set_car_random_route_seed 35@ {routeSeed} $total_criminals_killed

:COPCAR_3696
mark_car_as_convoy_car 35@ {state} True
set_car_heading 35@ {heading} 113@
set_car_avoid_level_transitions 35@ {state} True

:COPCAR_3718
if 
  is_car_waiting_for_world_collision 35@
goto_if_false @COPCAR_3800
wait 0
if 
  is_car_dead 35@
goto_if_false @COPCAR_3761
goto @COPCAR_14759

:COPCAR_3761
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_3793
goto @COPCAR_14759

:COPCAR_3793
goto @COPCAR_3718

:COPCAR_3800
36@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 271@
if 
  $onmission == 0
goto_if_false @COPCAR_4020
92@ = add_blip_for_coord $x {y} $y {z} $z
93@ = add_blip_for_coord $x {y} $y {z} $z
94@ = add_blip_for_coord $x {y} $y {z} $z
95@ = add_blip_for_coord $x {y} $y {z} $z
96@ = add_blip_for_coord $x {y} $y {z} $z
97@ = add_blip_for_coord $x {y} $y {z} $z
98@ = add_blip_for_coord $x {y} $y {z} $z
99@ = add_blip_for_coord $x {y} $y {z} $z
100@ = add_blip_for_coord $x {y} $y {z} $z
101@ = add_blip_for_coord $x {y} $y {z} $z
102@ = add_blip_for_coord $x {y} $y {z} $z
103@ = add_blip_for_coord $x {y} $y {z} $z
274@ = create_group DefaultTaskAllocator.FollowAnyMeans
275@ = create_group DefaultTaskAllocator.FollowAnyMeans
276@ = create_group DefaultTaskAllocator.FollowAnyMeans

:COPCAR_4020
remove_blip 92@
92@ = add_blip_for_char 36@
set_lvar_int_to_lvar_int 50@ = 36@
gosub @COPCAR_18041
if 
  51@ > 0
goto_if_false @COPCAR_4144
remove_group 274@
274@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 274@ {handle} 36@
set_group_decision_maker 274@ {handleOrTemplate} 268@
37@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 95@
95@ = add_blip_for_char 37@
set_lvar_int_to_lvar_int 50@ = 37@
gosub @COPCAR_18041
goto @COPCAR_4151

:COPCAR_4144
69@ = 1

:COPCAR_4151
if 
  51@ > 1
goto_if_false @COPCAR_4219
38@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 96@
96@ = add_blip_for_char 38@
set_lvar_int_to_lvar_int 50@ = 38@
gosub @COPCAR_18041
goto @COPCAR_4226

:COPCAR_4219
70@ = 1

:COPCAR_4226
if 
  51@ > 2
goto_if_false @COPCAR_4294
39@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 97@
97@ = add_blip_for_char 39@
set_lvar_int_to_lvar_int 50@ = 39@
gosub @COPCAR_18041
goto @COPCAR_4301

:COPCAR_4294
71@ = 1

:COPCAR_4301
if 
  51@ > 3
goto_if_false @COPCAR_4511
40@ = create_car 90@ {x} 107@ {y} 108@ {z} 109@
mark_car_as_convoy_car 40@ {state} True
set_car_heading 40@ {heading} 113@
set_car_avoid_level_transitions 40@ {state} True
set_car_driving_style 40@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 40@ {health} 800
set_car_random_route_seed 40@ {routeSeed} $total_criminals_killed

:COPCAR_4381
if 
  is_car_waiting_for_world_collision 40@
goto_if_false @COPCAR_4463
wait 0
if 
  is_car_dead 40@
goto_if_false @COPCAR_4424
goto @COPCAR_14759

:COPCAR_4424
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_4456
goto @COPCAR_14759

:COPCAR_4456
goto @COPCAR_4381

:COPCAR_4463
41@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 271@
set_lvar_int_to_lvar_int 50@ = 41@
gosub @COPCAR_18041
remove_blip 93@
93@ = add_blip_for_char 41@
goto @COPCAR_4525

:COPCAR_4511
82@ = 1
77@ = 1

:COPCAR_4525
if 
  51@ > 4
goto_if_false @COPCAR_4621
remove_group 275@
275@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 275@ {handle} 41@
set_group_decision_maker 275@ {handleOrTemplate} 268@
42@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 98@
98@ = add_blip_for_char 42@
set_lvar_int_to_lvar_int 50@ = 42@
gosub @COPCAR_18041
goto @COPCAR_4628

:COPCAR_4621
78@ = 1

:COPCAR_4628
if 
  51@ > 5
goto_if_false @COPCAR_4696
43@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 99@
99@ = add_blip_for_char 43@
set_lvar_int_to_lvar_int 50@ = 43@
gosub @COPCAR_18041
goto @COPCAR_4703

:COPCAR_4696
79@ = 1

:COPCAR_4703
if 
  51@ > 6
goto_if_false @COPCAR_4771
44@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 100@
100@ = add_blip_for_char 44@
set_lvar_int_to_lvar_int 50@ = 44@
gosub @COPCAR_18041
goto @COPCAR_4778

:COPCAR_4771
80@ = 1

:COPCAR_4778
if 
  51@ > 7
goto_if_false @COPCAR_4988
45@ = create_car 90@ {x} 110@ {y} 111@ {z} 112@
mark_car_as_convoy_car 45@ {state} True
set_car_heading 45@ {heading} 113@
set_car_avoid_level_transitions 45@ {state} True
set_car_driving_style 45@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 45@ {health} 800
set_car_random_route_seed 45@ {routeSeed} $total_criminals_killed

:COPCAR_4858
if 
  is_car_waiting_for_world_collision 45@
goto_if_false @COPCAR_4940
wait 0
if 
  is_car_dead 45@
goto_if_false @COPCAR_4901
goto @COPCAR_14759

:COPCAR_4901
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_4933
goto @COPCAR_14759

:COPCAR_4933
goto @COPCAR_4858

:COPCAR_4940
46@ = create_char_inside_car 45@ {pedType} PedType.Mission1 {modelId} 271@
set_lvar_int_to_lvar_int 50@ = 46@
gosub @COPCAR_18041
remove_blip 94@
94@ = add_blip_for_char 46@
goto @COPCAR_5002

:COPCAR_4988
89@ = 1
84@ = 1

:COPCAR_5002
if 
  51@ > 8
goto_if_false @COPCAR_5098
remove_group 276@
276@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 276@ {handle} 46@
set_group_decision_maker 276@ {handleOrTemplate} 268@
47@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 101@
101@ = add_blip_for_char 47@
set_lvar_int_to_lvar_int 50@ = 47@
gosub @COPCAR_18041
goto @COPCAR_5105

:COPCAR_5098
85@ = 1

:COPCAR_5105
if 
  51@ > 9
goto_if_false @COPCAR_5173
48@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 102@
102@ = add_blip_for_char 48@
set_lvar_int_to_lvar_int 50@ = 48@
gosub @COPCAR_18041
goto @COPCAR_5180

:COPCAR_5173
86@ = 1

:COPCAR_5180
if 
  51@ > 10
goto_if_false @COPCAR_5248
49@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 103@
103@ = add_blip_for_char 49@
set_lvar_int_to_lvar_int 50@ = 49@
gosub @COPCAR_18041
goto @COPCAR_5255

:COPCAR_5248
87@ = 1

:COPCAR_5255
mark_model_as_no_longer_needed 90@
mark_model_as_no_longer_needed 271@
if 
  not is_char_dead 36@
goto_if_false @COPCAR_5295
116@, 117@, $z = get_char_coordinates 36@

:COPCAR_5295
s$random_seed = get_name_of_zone 116@ {y} 117@ {z} $z
if 
  51@ == 0
goto_if_false @COPCAR_5353
print_string_in_string_now 'C_BREIF' {replacementKey} s$random_seed {duration} 5000 {style} TextStyle.Middle
goto @COPCAR_5372

:COPCAR_5353
print_string_in_string_now 'C_BREIS' {replacementKey} s$random_seed {duration} 5000 {style} TextStyle.Middle

:COPCAR_5372
police_radio_message 116@ {_p2} 117@ {_p3} $z
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 116@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 117@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 114@ = $x_temp
add_float_var_to_float_lvar 114@ += $x_temp
114@ = sqrt 114@
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_5505
142@ = 8.0
goto @COPCAR_5515

:COPCAR_5505
142@ = 4.0

:COPCAR_5515
add_float_lvar_to_float_lvar 142@ += 144@
div_float_lvar_by_float_lvar 114@ /= 142@
114@ *= 1000.0
cset_lvar_int_to_lvar_float 63@ =# 114@
if 
  40000 > 63@
goto_if_false @COPCAR_5580
63@ = 40000

:COPCAR_5580
add_int_lvar_to_int_var $car_numer_flag += 63@
63@ /= 1000
set_var_int_to_lvar_int $8226 = 51@
$8226 += 1
if 
  65@ == 1
goto_if_false @COPCAR_5659
force_big_message_and_counter True
print_with_number_big 'A_TIME' {num} 63@ {duration} 4000 {style} TextStyle.WhiteMiddleSmaller
goto @COPCAR_5741

:COPCAR_5659
if 
  45000 > $car_numer_flag
goto_if_false @COPCAR_5690
$car_numer_flag = 45000

:COPCAR_5690
$car_numer_flag += 30000
65@ = 1
display_nth_onscreen_counter_with_string $8226 {display} CounterDisplay.Number {slot} 1 {text} 'COPLEVL'
display_nth_onscreen_counter_with_string $cop_time_limit {display} CounterDisplay.Number {slot} 2 {text} 'KILLS'

:COPCAR_5741
set_lvar_int_to_var_int 72@ = $game_timer
set_lvar_int_to_var_int 81@ = $game_timer
set_lvar_int_to_var_int 88@ = $game_timer
if 
  13 > 51@
goto_if_false @COPCAR_5793
144@ += 0.1

:COPCAR_5793
freeze_onscreen_timer False

:COPCAR_5797
wait 0
$game_timer = get_game_timer 
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @COPCAR_18544
if 
  58@ == 1
goto_if_false @COPCAR_5852
goto @COPCAR_14759

:COPCAR_5852
if or
  269@ == -1
  74@ == -1
  83@ == -1
goto_if_false @COPCAR_5891
52@ = 1

:COPCAR_5891
270@ += 1
if 
  270@ > 2
goto_if_false @COPCAR_5923
270@ = 0

:COPCAR_5923
if 
  270@ == 0
goto_if_false @COPCAR_8239
if 
  not is_char_dead 36@
goto_if_false @COPCAR_7309
if 
  is_char_sitting_in_any_car 36@
goto_if_false @COPCAR_6763
mark_car_as_no_longer_needed 35@
35@ = store_car_char_is_in_no_save 36@
if 
  269@ == -1
goto_if_false @COPCAR_6091
55@ = get_number_of_followers 36@
if 
  55@ > 0
goto_if_false @COPCAR_6076
if 
  does_group_exist 274@
goto_if_false @COPCAR_6053
set_group_default_task_allocator 274@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_6053
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6084

:COPCAR_6076
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6084
269@ = 0

:COPCAR_6091
if 
  269@ == 0
goto_if_false @COPCAR_6180
if or
  is_int_var_greater_than_int_lvar $game_timer > 72@
  is_int_lvar_equal_to_int_var 72@ == $game_timer
goto_if_false @COPCAR_6180
set_car_cruise_speed 35@ {maxSpeed} 100.0
set_car_driving_style 35@ {drivingStyle} DrivingMode.AvoidCars
car_wander_randomly 35@
set_lvar_int_to_var_int 66@ = $game_timer
269@ = 1
67@ = 0

:COPCAR_6180
if 
  269@ > 0
goto_if_false @COPCAR_6756
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @COPCAR_6254
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6254
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6254
set_lvar_int_to_lvar_int 153@ = 35@
set_lvar_int_to_lvar_int 154@ = 67@
set_lvar_int_to_lvar_int 155@ = 66@
set_lvar_float_to_lvar_float 150@ = 145@
set_lvar_float_to_lvar_float 151@ = 146@
set_lvar_float_to_lvar_float 152@ = 147@
if 
  148@ > 0.0
goto_if_false @COPCAR_6330
gosub @COPCAR_16097

:COPCAR_6330
set_lvar_int_to_lvar_int 67@ = 154@
set_lvar_int_to_lvar_int 66@ = 155@
set_lvar_float_to_lvar_float 145@ = 150@
set_lvar_float_to_lvar_float 146@ = 151@
set_lvar_float_to_lvar_float 147@ = 152@
if 
  67@ == -9
goto_if_false @COPCAR_6460
$task_status = get_script_task_status 36@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6453
$x, $y, $z = get_char_coordinates 36@
task_flee_point 36@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_6453
67@ = 0

:COPCAR_6460
if 
  not is_car_health_greater 35@ {health} 251
goto_if_false @COPCAR_6567
$task_status = get_script_task_status 36@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6544
$x, $y, $z = get_char_coordinates 36@
task_flee_point 36@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_6544
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6575

:COPCAR_6567
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6575
gosub @COPCAR_16706
116@, 117@, $z = get_char_coordinates 36@
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 116@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 117@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = sqrt 149@
148@ = 1000.0
div_float_lvar_by_float_lvar 148@ /= 149@
if 
  148@ > 100.0
goto_if_false @COPCAR_6717
148@ = 100.0

:COPCAR_6717
if 
  15.0 > 148@
goto_if_false @COPCAR_6748
148@ = 15.0

:COPCAR_6748
set_car_cruise_speed 35@ {maxSpeed} 148@

:COPCAR_6756
goto @COPCAR_7302

:COPCAR_6763
if 
  does_group_exist 274@
goto_if_false @COPCAR_6786
set_group_default_task_allocator 274@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_6786
269@ = -1
gosub @COPCAR_16706
if 
  is_int_var_greater_than_int_lvar $game_timer > 72@
goto_if_false @COPCAR_7302
if 
  locate_char_any_means_char_2d $scplayer {target} 36@ {xRadius} 45.0 {yRadius} 45.0 {drawSphere} False
goto_if_false @COPCAR_7147
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_6910
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6903
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6903
goto @COPCAR_7140

:COPCAR_6910
if 
  locate_char_any_means_char_2d $scplayer {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_6985
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6978
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6978
goto @COPCAR_7140

:COPCAR_6985
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not is_car_dead 35@
goto_if_false @COPCAR_7133
if 
  is_car_health_greater 35@ {health} 400
goto_if_false @COPCAR_7119
if 
  locate_char_any_means_car_2d 36@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_7105
$task_status = get_script_task_status 36@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7098
task_enter_car_as_driver 36@ {vehicle} 35@ {time} -2

:COPCAR_7098
goto @COPCAR_7112

:COPCAR_7105
gosub @COPCAR_15279

:COPCAR_7112
goto @COPCAR_7126

:COPCAR_7119
gosub @COPCAR_15279

:COPCAR_7126
goto @COPCAR_7140

:COPCAR_7133
gosub @COPCAR_15279

:COPCAR_7140
goto @COPCAR_7302

:COPCAR_7147
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not is_car_dead 35@
goto_if_false @COPCAR_7295
if 
  is_car_health_greater 35@ {health} 400
goto_if_false @COPCAR_7281
if 
  locate_char_any_means_car_2d 36@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_7267
$task_status = get_script_task_status 36@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7260
task_enter_car_as_driver 36@ {vehicle} 35@ {time} -2

:COPCAR_7260
goto @COPCAR_7274

:COPCAR_7267
gosub @COPCAR_15279

:COPCAR_7274
goto @COPCAR_7288

:COPCAR_7281
gosub @COPCAR_15279

:COPCAR_7288
goto @COPCAR_7302

:COPCAR_7295
gosub @COPCAR_15279

:COPCAR_7302
goto @COPCAR_7899

:COPCAR_7309
remove_blip 92@
mark_char_as_no_longer_needed 36@
36@ = -1
if 
  68@ == 0
goto_if_false @COPCAR_7385
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
68@ = 1

:COPCAR_7385
if 
  does_group_exist 274@
goto_if_false @COPCAR_7899
if 
  not is_char_dead 37@
goto_if_false @COPCAR_7550
if 
  not is_group_member 37@ {handle} 274@
goto_if_false @COPCAR_7480
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7473
task_kill_char_on_foot 37@ {target} $scplayer

:COPCAR_7473
goto @COPCAR_7543

:COPCAR_7480
if 
  is_group_leader 37@ {handle} 274@
goto_if_false @COPCAR_7543
set_lvar_int_to_lvar_int 36@ = 37@
37@ = -1
68@ = 0
69@ = 1
set_lvar_int_to_lvar_int 92@ = 95@
95@ = -1

:COPCAR_7543
goto @COPCAR_7567

:COPCAR_7550
remove_blip 95@
mark_char_as_no_longer_needed 37@
37@ = -1

:COPCAR_7567
if 
  not is_char_dead 38@
goto_if_false @COPCAR_7716
if 
  not is_group_member 38@ {handle} 274@
goto_if_false @COPCAR_7646
$task_status = get_script_task_status 38@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7639
task_kill_char_on_foot 38@ {target} $scplayer

:COPCAR_7639
goto @COPCAR_7709

:COPCAR_7646
if 
  is_group_leader 38@ {handle} 274@
goto_if_false @COPCAR_7709
set_lvar_int_to_lvar_int 36@ = 38@
38@ = -1
68@ = 0
70@ = 1
set_lvar_int_to_lvar_int 92@ = 96@
96@ = -1

:COPCAR_7709
goto @COPCAR_7733

:COPCAR_7716
remove_blip 96@
mark_char_as_no_longer_needed 38@
38@ = -1

:COPCAR_7733
if 
  not is_char_dead 39@
goto_if_false @COPCAR_7882
if 
  not is_group_member 39@ {handle} 274@
goto_if_false @COPCAR_7812
$task_status = get_script_task_status 39@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7805
task_kill_char_on_foot 39@ {target} $scplayer

:COPCAR_7805
goto @COPCAR_7875

:COPCAR_7812
if 
  is_group_leader 39@ {handle} 274@
goto_if_false @COPCAR_7875
set_lvar_int_to_lvar_int 36@ = 39@
39@ = -1
68@ = 0
71@ = 1
set_lvar_int_to_lvar_int 92@ = 97@
97@ = -1

:COPCAR_7875
goto @COPCAR_7899

:COPCAR_7882
remove_blip 97@
mark_char_as_no_longer_needed 39@
39@ = -1

:COPCAR_7899
if 
  is_char_dead 37@
goto_if_false @COPCAR_7991
if 
  69@ == 0
goto_if_false @COPCAR_7991
mark_char_as_no_longer_needed 37@
37@ = -1
remove_blip 95@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
69@ = 1

:COPCAR_7991
if 
  is_char_dead 38@
goto_if_false @COPCAR_8083
if 
  70@ == 0
goto_if_false @COPCAR_8083
mark_char_as_no_longer_needed 38@
38@ = -1
remove_blip 96@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
70@ = 1

:COPCAR_8083
if 
  is_char_dead 39@
goto_if_false @COPCAR_8175
if 
  71@ == 0
goto_if_false @COPCAR_8175
mark_char_as_no_longer_needed 39@
39@ = -1
remove_blip 97@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
71@ = 1

:COPCAR_8175
if 
  73@ == 0
goto_if_false @COPCAR_8239
if and
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @COPCAR_8239
73@ = 1

:COPCAR_8239
if 
  270@ == 1
goto_if_false @COPCAR_11070
if 
  not is_char_dead 41@
goto_if_false @COPCAR_10140
if 
  is_char_sitting_in_any_car 41@
goto_if_false @COPCAR_9594
mark_car_as_no_longer_needed 40@
40@ = store_car_char_is_in_no_save 41@
if 
  74@ == -1
goto_if_false @COPCAR_8407
55@ = get_number_of_followers 41@
if 
  55@ > 0
goto_if_false @COPCAR_8392
if 
  does_group_exist 275@
goto_if_false @COPCAR_8369
set_group_default_task_allocator 275@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_8369
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_8400

:COPCAR_8392
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_8400
74@ = 0

:COPCAR_8407
if 
  74@ == 0
goto_if_false @COPCAR_8566
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_8566
set_car_cruise_speed 40@ {maxSpeed} 100.0
set_car_driving_style 40@ {drivingStyle} DrivingMode.AvoidCars
if 
  52@ == 0
goto_if_false @COPCAR_8514
if 
  not is_car_dead 35@
goto_if_false @COPCAR_8507
car_wander_randomly 40@
goto @COPCAR_8514

:COPCAR_8507
52@ = 1

:COPCAR_8514
if 
  52@ == 1
goto_if_false @COPCAR_8544
mark_car_as_convoy_car 40@ {state} False
car_wander_randomly 40@

:COPCAR_8544
set_lvar_int_to_var_int 75@ = $game_timer
74@ = 1
76@ = 0

:COPCAR_8566
if 
  74@ > 0
goto_if_false @COPCAR_9587
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @COPCAR_8640
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8640
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_8640
set_lvar_int_to_lvar_int 153@ = 40@
set_lvar_int_to_lvar_int 154@ = 76@
set_lvar_int_to_lvar_int 155@ = 75@
set_lvar_float_to_lvar_float 150@ = 164@
set_lvar_float_to_lvar_float 151@ = 165@
set_lvar_float_to_lvar_float 152@ = 166@
if 
  167@ > 0.0
goto_if_false @COPCAR_8716
gosub @COPCAR_16097

:COPCAR_8716
set_lvar_int_to_lvar_int 76@ = 154@
set_lvar_int_to_lvar_int 75@ = 155@
set_lvar_float_to_lvar_float 164@ = 150@
set_lvar_float_to_lvar_float 165@ = 151@
set_lvar_float_to_lvar_float 166@ = 152@
if 
  76@ == -9
goto_if_false @COPCAR_8846
$task_status = get_script_task_status 41@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8839
$x, $y, $z = get_char_coordinates 41@
task_flee_point 41@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_8839
76@ = 0

:COPCAR_8846
if 
  not is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_8902
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8902
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_8902
if 
  not is_car_health_greater 40@ {health} 251
goto_if_false @COPCAR_9009
$task_status = get_script_task_status 41@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8986
$x, $y, $z = get_char_coordinates 41@
task_flee_point 41@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_8986
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_9017

:COPCAR_9009
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_9017
gosub @COPCAR_17151
162@, 163@, $z = get_char_coordinates 41@
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 162@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 163@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = sqrt 149@
167@ = 1000.0
div_float_lvar_by_float_lvar 167@ /= 149@
if 
  167@ > 100.0
goto_if_false @COPCAR_9159
167@ = 100.0

:COPCAR_9159
if 
  15.0 > 167@
goto_if_false @COPCAR_9190
167@ = 15.0

:COPCAR_9190
if 
  52@ == 0
goto_if_false @COPCAR_9542
if 
  not is_car_dead 35@
goto_if_false @COPCAR_9530
set_lvar_int_to_lvar_int 157@ = 40@
set_lvar_int_to_lvar_int 158@ = 35@
gosub @COPCAR_15066
set_lvar_float_to_lvar_float 167@ = 124@
138@ = get_car_forward_x 40@
139@ = get_car_forward_y 40@
132@, 133@, $z = get_car_coordinates 35@
134@, 135@, $z = get_car_coordinates 40@
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 132@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 133@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 128@ = 138@
add_float_lvar_to_float_lvar 128@ += 139@
138@ = get_car_forward_x 35@
139@ = get_car_forward_y 35@
134@, 135@, $z = get_car_coordinates 40@
132@, 133@, $z = get_car_coordinates 35@
set_lvar_float_to_lvar_float 120@ = 132@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 133@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 129@ = 138@
add_float_lvar_to_float_lvar 129@ += 139@
if 
  128@ > 0.0
goto_if_false @COPCAR_9523
if 
  0.0 > 129@
goto_if_false @COPCAR_9523
167@ = 0.0

:COPCAR_9523
goto @COPCAR_9542

:COPCAR_9530
car_wander_randomly 40@
52@ = 1

:COPCAR_9542
if 
  167@ == 0.0
goto_if_false @COPCAR_9579
set_car_temp_action 40@ {actionId} TempAction.Wait {time} 17
goto @COPCAR_9587

:COPCAR_9579
set_car_cruise_speed 40@ {maxSpeed} 167@

:COPCAR_9587
goto @COPCAR_10133

:COPCAR_9594
if 
  does_group_exist 275@
goto_if_false @COPCAR_9617
set_group_default_task_allocator 275@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_9617
74@ = -1
gosub @COPCAR_17151
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_10133
if 
  locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_9978
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_9741
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9734
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_9734
goto @COPCAR_9971

:COPCAR_9741
if 
  locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @COPCAR_9816
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9809
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_9809
goto @COPCAR_9971

:COPCAR_9816
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not is_car_dead 40@
goto_if_false @COPCAR_9964
if 
  is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_9950
if 
  locate_char_any_means_car_2d 41@ {vehicle} 40@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_9936
$task_status = get_script_task_status 41@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9929
task_enter_car_as_driver 41@ {vehicle} 40@ {time} -2

:COPCAR_9929
goto @COPCAR_9943

:COPCAR_9936
gosub @COPCAR_15279

:COPCAR_9943
goto @COPCAR_9957

:COPCAR_9950
gosub @COPCAR_15279

:COPCAR_9957
goto @COPCAR_9971

:COPCAR_9964
gosub @COPCAR_15279

:COPCAR_9971
goto @COPCAR_10133

:COPCAR_9978
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not is_car_dead 40@
goto_if_false @COPCAR_10126
if 
  is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_10112
if 
  locate_char_any_means_car_2d 41@ {vehicle} 40@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_10098
$task_status = get_script_task_status 41@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10091
task_enter_car_as_driver 41@ {vehicle} 40@ {time} -2

:COPCAR_10091
goto @COPCAR_10105

:COPCAR_10098
gosub @COPCAR_15279

:COPCAR_10105
goto @COPCAR_10119

:COPCAR_10112
gosub @COPCAR_15279

:COPCAR_10119
goto @COPCAR_10133

:COPCAR_10126
gosub @COPCAR_15279

:COPCAR_10133
goto @COPCAR_10730

:COPCAR_10140
remove_blip 93@
mark_char_as_no_longer_needed 41@
41@ = -1
if 
  77@ == 0
goto_if_false @COPCAR_10216
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
77@ = 1

:COPCAR_10216
if 
  does_group_exist 275@
goto_if_false @COPCAR_10730
if 
  not is_char_dead 42@
goto_if_false @COPCAR_10381
if 
  not is_group_member 42@ {handle} 275@
goto_if_false @COPCAR_10311
$task_status = get_script_task_status 42@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10304
task_kill_char_on_foot 42@ {target} $scplayer

:COPCAR_10304
goto @COPCAR_10374

:COPCAR_10311
if 
  is_group_leader 42@ {handle} 275@
goto_if_false @COPCAR_10374
set_lvar_int_to_lvar_int 41@ = 42@
42@ = -1
77@ = 0
78@ = 1
set_lvar_int_to_lvar_int 93@ = 98@
98@ = -1

:COPCAR_10374
goto @COPCAR_10398

:COPCAR_10381
remove_blip 98@
mark_char_as_no_longer_needed 42@
42@ = -1

:COPCAR_10398
if 
  not is_char_dead 43@
goto_if_false @COPCAR_10547
if 
  not is_group_member 43@ {handle} 275@
goto_if_false @COPCAR_10477
$task_status = get_script_task_status 43@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10470
task_kill_char_on_foot 43@ {target} $scplayer

:COPCAR_10470
goto @COPCAR_10540

:COPCAR_10477
if 
  is_group_leader 43@ {handle} 275@
goto_if_false @COPCAR_10540
set_lvar_int_to_lvar_int 41@ = 43@
43@ = -1
77@ = 0
79@ = 1
set_lvar_int_to_lvar_int 93@ = 99@
99@ = -1

:COPCAR_10540
goto @COPCAR_10564

:COPCAR_10547
remove_blip 99@
mark_char_as_no_longer_needed 43@
43@ = -1

:COPCAR_10564
if 
  not is_char_dead 44@
goto_if_false @COPCAR_10713
if 
  not is_group_member 44@ {handle} 275@
goto_if_false @COPCAR_10643
$task_status = get_script_task_status 44@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10636
task_kill_char_on_foot 44@ {target} $scplayer

:COPCAR_10636
goto @COPCAR_10706

:COPCAR_10643
if 
  is_group_leader 44@ {handle} 275@
goto_if_false @COPCAR_10706
set_lvar_int_to_lvar_int 41@ = 44@
44@ = -1
77@ = 0
80@ = 1
set_lvar_int_to_lvar_int 93@ = 100@
100@ = -1

:COPCAR_10706
goto @COPCAR_10730

:COPCAR_10713
remove_blip 100@
mark_char_as_no_longer_needed 44@
44@ = -1

:COPCAR_10730
if 
  is_char_dead 42@
goto_if_false @COPCAR_10822
if 
  78@ == 0
goto_if_false @COPCAR_10822
mark_char_as_no_longer_needed 42@
42@ = -1
remove_blip 98@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
78@ = 1

:COPCAR_10822
if 
  is_char_dead 43@
goto_if_false @COPCAR_10914
if 
  79@ == 0
goto_if_false @COPCAR_10914
mark_char_as_no_longer_needed 43@
43@ = -1
remove_blip 99@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
79@ = 1

:COPCAR_10914
if 
  is_char_dead 44@
goto_if_false @COPCAR_11006
if 
  80@ == 0
goto_if_false @COPCAR_11006
mark_char_as_no_longer_needed 44@
44@ = -1
remove_blip 100@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
80@ = 1

:COPCAR_11006
if 
  82@ == 0
goto_if_false @COPCAR_11070
if and
  77@ == 1
  78@ == 1
  79@ == 1
  80@ == 1
goto_if_false @COPCAR_11070
82@ = 1

:COPCAR_11070
if 
  270@ == 2
goto_if_false @COPCAR_13901
if 
  not is_char_dead 46@
goto_if_false @COPCAR_12971
if 
  is_char_sitting_in_any_car 46@
goto_if_false @COPCAR_12425
mark_car_as_no_longer_needed 45@
45@ = store_car_char_is_in_no_save 46@
if 
  83@ == -1
goto_if_false @COPCAR_11238
55@ = get_number_of_followers 46@
if 
  55@ > 0
goto_if_false @COPCAR_11223
if 
  does_group_exist 276@
goto_if_false @COPCAR_11200
set_group_default_task_allocator 276@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_11200
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11231

:COPCAR_11223
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11231
83@ = 0

:COPCAR_11238
if 
  83@ == 0
goto_if_false @COPCAR_11397
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_11397
set_car_cruise_speed 45@ {maxSpeed} 100.0
set_car_driving_style 45@ {drivingStyle} DrivingMode.AvoidCars
if 
  52@ == 0
goto_if_false @COPCAR_11345
if 
  not is_car_dead 40@
goto_if_false @COPCAR_11338
car_wander_randomly 45@
goto @COPCAR_11345

:COPCAR_11338
52@ = 1

:COPCAR_11345
if 
  52@ == 1
goto_if_false @COPCAR_11375
mark_car_as_convoy_car 45@ {state} False
car_wander_randomly 45@

:COPCAR_11375
set_lvar_int_to_var_int 174@ = $game_timer
83@ = 1
175@ = 0

:COPCAR_11397
if 
  83@ > 0
goto_if_false @COPCAR_12418
if 
  is_char_in_car $scplayer {vehicle} 45@
goto_if_false @COPCAR_11471
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11471
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_11471
set_lvar_int_to_lvar_int 153@ = 45@
set_lvar_int_to_lvar_int 154@ = 175@
set_lvar_int_to_lvar_int 155@ = 174@
set_lvar_float_to_lvar_float 150@ = 170@
set_lvar_float_to_lvar_float 151@ = 171@
set_lvar_float_to_lvar_float 152@ = 172@
if 
  173@ > 0.0
goto_if_false @COPCAR_11547
gosub @COPCAR_16097

:COPCAR_11547
set_lvar_int_to_lvar_int 175@ = 154@
set_lvar_int_to_lvar_int 174@ = 155@
set_lvar_float_to_lvar_float 170@ = 150@
set_lvar_float_to_lvar_float 171@ = 151@
set_lvar_float_to_lvar_float 172@ = 152@
if 
  175@ == -9
goto_if_false @COPCAR_11677
$task_status = get_script_task_status 46@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11670
$x, $y, $z = get_char_coordinates 46@
task_flee_point 46@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_11670
175@ = 0

:COPCAR_11677
if 
  not is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_11733
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11733
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_11733
if 
  not is_car_health_greater 45@ {health} 251
goto_if_false @COPCAR_11840
$task_status = get_script_task_status 46@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11817
$x, $y, $z = get_char_coordinates 46@
task_flee_point 46@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_11817
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11848

:COPCAR_11840
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11848
gosub @COPCAR_17596
168@, 169@, $z = get_char_coordinates 46@
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 168@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 169@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = sqrt 149@
173@ = 1000.0
div_float_lvar_by_float_lvar 173@ /= 149@
if 
  173@ > 100.0
goto_if_false @COPCAR_11990
173@ = 100.0

:COPCAR_11990
if 
  15.0 > 173@
goto_if_false @COPCAR_12021
173@ = 15.0

:COPCAR_12021
if 
  52@ == 0
goto_if_false @COPCAR_12373
if 
  not is_car_dead 40@
goto_if_false @COPCAR_12361
set_lvar_int_to_lvar_int 157@ = 45@
set_lvar_int_to_lvar_int 158@ = 40@
gosub @COPCAR_15066
set_lvar_float_to_lvar_float 173@ = 124@
138@ = get_car_forward_x 45@
139@ = get_car_forward_y 45@
134@, 135@, $z = get_car_coordinates 40@
136@, 137@, $z = get_car_coordinates 45@
set_lvar_float_to_lvar_float 120@ = 136@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 137@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 130@ = 138@
add_float_lvar_to_float_lvar 130@ += 139@
138@ = get_car_forward_x 40@
139@ = get_car_forward_y 40@
136@, 137@, $z = get_car_coordinates 45@
134@, 135@, $z = get_car_coordinates 40@
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 136@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 137@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 131@ = 138@
add_float_lvar_to_float_lvar 131@ += 139@
if 
  130@ > 0.0
goto_if_false @COPCAR_12354
if 
  0.0 > 131@
goto_if_false @COPCAR_12354
173@ = 0.0

:COPCAR_12354
goto @COPCAR_12373

:COPCAR_12361
car_wander_randomly 45@
52@ = 1

:COPCAR_12373
if 
  173@ == 0.0
goto_if_false @COPCAR_12410
set_car_temp_action 45@ {actionId} TempAction.Wait {time} 17
goto @COPCAR_12418

:COPCAR_12410
set_car_cruise_speed 45@ {maxSpeed} 173@

:COPCAR_12418
goto @COPCAR_12964

:COPCAR_12425
if 
  does_group_exist 276@
goto_if_false @COPCAR_12448
set_group_default_task_allocator 276@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_12448
83@ = -1
gosub @COPCAR_17596
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_12964
if 
  locate_char_any_means_char_2d $scplayer {target} 46@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12809
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_12572
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12565
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_12565
goto @COPCAR_12802

:COPCAR_12572
if 
  locate_char_any_means_char_2d $scplayer {target} 46@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @COPCAR_12647
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12640
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_12640
goto @COPCAR_12802

:COPCAR_12647
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not is_car_dead 45@
goto_if_false @COPCAR_12795
if 
  is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_12781
if 
  locate_char_any_means_car_2d 46@ {vehicle} 45@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12767
$task_status = get_script_task_status 46@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12760
task_enter_car_as_driver 46@ {vehicle} 45@ {time} -2

:COPCAR_12760
goto @COPCAR_12774

:COPCAR_12767
gosub @COPCAR_15279

:COPCAR_12774
goto @COPCAR_12788

:COPCAR_12781
gosub @COPCAR_15279

:COPCAR_12788
goto @COPCAR_12802

:COPCAR_12795
gosub @COPCAR_15279

:COPCAR_12802
goto @COPCAR_12964

:COPCAR_12809
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not is_car_dead 45@
goto_if_false @COPCAR_12957
if 
  is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_12943
if 
  locate_char_any_means_car_2d 46@ {vehicle} 45@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12929
$task_status = get_script_task_status 46@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12922
task_enter_car_as_driver 46@ {vehicle} 45@ {time} -2

:COPCAR_12922
goto @COPCAR_12936

:COPCAR_12929
gosub @COPCAR_15279

:COPCAR_12936
goto @COPCAR_12950

:COPCAR_12943
gosub @COPCAR_15279

:COPCAR_12950
goto @COPCAR_12964

:COPCAR_12957
gosub @COPCAR_15279

:COPCAR_12964
goto @COPCAR_13561

:COPCAR_12971
remove_blip 94@
mark_char_as_no_longer_needed 46@
46@ = -1
if 
  84@ == 0
goto_if_false @COPCAR_13047
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
84@ = 1

:COPCAR_13047
if 
  does_group_exist 276@
goto_if_false @COPCAR_13561
if 
  not is_char_dead 47@
goto_if_false @COPCAR_13212
if 
  not is_group_member 47@ {handle} 276@
goto_if_false @COPCAR_13142
$task_status = get_script_task_status 47@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13135
task_kill_char_on_foot 47@ {target} $scplayer

:COPCAR_13135
goto @COPCAR_13205

:COPCAR_13142
if 
  is_group_leader 47@ {handle} 276@
goto_if_false @COPCAR_13205
set_lvar_int_to_lvar_int 46@ = 47@
47@ = -1
84@ = 0
85@ = 1
set_lvar_int_to_lvar_int 94@ = 101@
101@ = -1

:COPCAR_13205
goto @COPCAR_13229

:COPCAR_13212
remove_blip 101@
mark_char_as_no_longer_needed 47@
47@ = -1

:COPCAR_13229
if 
  not is_char_dead 48@
goto_if_false @COPCAR_13378
if 
  not is_group_member 48@ {handle} 276@
goto_if_false @COPCAR_13308
$task_status = get_script_task_status 48@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13301
task_kill_char_on_foot 48@ {target} $scplayer

:COPCAR_13301
goto @COPCAR_13371

:COPCAR_13308
if 
  is_group_leader 48@ {handle} 276@
goto_if_false @COPCAR_13371
set_lvar_int_to_lvar_int 46@ = 48@
48@ = -1
84@ = 0
86@ = 1
set_lvar_int_to_lvar_int 94@ = 102@
102@ = -1

:COPCAR_13371
goto @COPCAR_13395

:COPCAR_13378
remove_blip 102@
mark_char_as_no_longer_needed 48@
48@ = -1

:COPCAR_13395
if 
  not is_char_dead 49@
goto_if_false @COPCAR_13544
if 
  not is_group_member 49@ {handle} 276@
goto_if_false @COPCAR_13474
$task_status = get_script_task_status 49@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13467
task_kill_char_on_foot 49@ {target} $scplayer

:COPCAR_13467
goto @COPCAR_13537

:COPCAR_13474
if 
  is_group_leader 49@ {handle} 276@
goto_if_false @COPCAR_13537
set_lvar_int_to_lvar_int 46@ = 49@
49@ = -1
84@ = 0
87@ = 1
set_lvar_int_to_lvar_int 94@ = 103@
103@ = -1

:COPCAR_13537
goto @COPCAR_13561

:COPCAR_13544
remove_blip 103@
mark_char_as_no_longer_needed 49@
49@ = -1

:COPCAR_13561
if 
  is_char_dead 47@
goto_if_false @COPCAR_13653
if 
  85@ == 0
goto_if_false @COPCAR_13653
remove_blip 101@
mark_char_as_no_longer_needed 47@
47@ = -1
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
85@ = 1

:COPCAR_13653
if 
  is_char_dead 48@
goto_if_false @COPCAR_13745
if 
  86@ == 0
goto_if_false @COPCAR_13745
mark_char_as_no_longer_needed 48@
48@ = -1
remove_blip 102@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
86@ = 1

:COPCAR_13745
if 
  is_char_dead 49@
goto_if_false @COPCAR_13837
if 
  87@ == 0
goto_if_false @COPCAR_13837
mark_char_as_no_longer_needed 49@
49@ = -1
remove_blip 103@
$cop_time_limit += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
87@ = 1

:COPCAR_13837
if 
  89@ == 0
goto_if_false @COPCAR_13901
if and
  84@ == 1
  85@ == 1
  86@ == 1
  87@ == 1
goto_if_false @COPCAR_13901
89@ = 1

:COPCAR_13901
if and
  73@ == 1
  82@ == 1
  89@ == 1
goto_if_false @COPCAR_13940
goto @COPCAR_13947

:COPCAR_13940
goto @COPCAR_5797

:COPCAR_13947
register_int_stat StatId.VigilanteLevel {value} $8226
51@ += 1
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_14024
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
64@ = get_car_health 34@
64@ += 100
set_car_health 34@ {health} 64@

:COPCAR_14024
mark_car_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_group 274@
remove_group 275@
remove_group 276@
set_lvar_int_to_lvar_int 54@ = 51@
mult_int_lvar_by_int_lvar 54@ *= 51@
54@ *= 50
force_big_message_and_counter True
print_with_number_big 'C_PASS' {num} 54@ {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 54@
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_14292
if 
  51@ == 12
goto_if_false @COPCAR_14292
print_help 'C_COMP1'
player_made_progress 1
register_oddjob_mission_passed 
play_mission_passed_tune 2
$done_copcar_progress = 1

:COPCAR_14292
if -1
goto_if_false @COPCAR_14629
if 
  57@ == 0
goto_if_false @COPCAR_14379
53@ = get_game_timer 
if 
  $car_numer_flag > 60000
goto_if_false @COPCAR_14364
56@ = 60000
goto @COPCAR_14372

:COPCAR_14364
set_lvar_int_to_var_int 56@ = $car_numer_flag

:COPCAR_14372
57@ = 1

:COPCAR_14379
59@ = get_game_timer 
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_14513
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_14506
print_now 'C_TIME' {time} 3000 {flag} 1
58@ = 1
goto @COPCAR_14759

:COPCAR_14506
goto @COPCAR_14529

:COPCAR_14513
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_14529
if 
  61@ > -1
goto_if_false @COPCAR_14618
if 
  61@ == 1
goto_if_false @COPCAR_14595
add_next_message_to_previous_briefs False
print_with_number_now 'COPCA_T' {num} 61@ {duration} 200 {flag} 1
goto @COPCAR_14618

:COPCAR_14595
add_next_message_to_previous_briefs False
print_with_number_now 'COPCART' {num} 61@ {duration} 200 {flag} 1

:COPCAR_14618
wait 0
goto @COPCAR_14292

:COPCAR_14629
freeze_onscreen_timer True
if 
  is_char_in_any_car $scplayer
goto_if_false @COPCAR_14688
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
64@ = get_car_health 34@
64@ += 200
set_car_health 34@ {health} 64@

:COPCAR_14688
if 
  13 > 51@
goto_if_false @COPCAR_14752
143@ -= 0.075
if 
  0.0 > 143@
goto_if_false @COPCAR_14747
143@ = 0.0

:COPCAR_14747
set_wanted_multiplier 143@

:COPCAR_14752
goto @COPCAR_1291

:COPCAR_14759
return 

:COPCAR_14761
$onmission = 0
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_group 274@
remove_group 275@
remove_group 276@
clear_onscreen_timer $car_numer_flag
clear_onscreen_counter $8226
clear_onscreen_counter $cop_time_limit
mark_model_as_no_longer_needed 90@
mark_model_as_no_longer_needed 271@
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 336
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:COPCAR_14902
if 
  51@ == 0
goto_if_false @COPCAR_14970
159@ = generate_random_int_in_range 0 {max} 91
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_14963
159@ = generate_random_int_in_range 0 {max} 91

:COPCAR_14963
goto @COPCAR_15047

:COPCAR_14970
if 
  51@ == 1
goto_if_false @COPCAR_15038
159@ = generate_random_int_in_range 2 {max} 91
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_15031
159@ = generate_random_int_in_range 2 {max} 91

:COPCAR_15031
goto @COPCAR_15047

:COPCAR_15038
159@ = generate_random_int_in_range 67 {max} 91

:COPCAR_15047
set_lvar_int_to_lvar_int 90@ = 176@(159@,91i)
request_model 90@
return 

:COPCAR_15066
if 
  158@ == -1
goto_if_false @COPCAR_15105
122@, 123@, 120@ = get_char_coordinates $scplayer
goto @COPCAR_15119

:COPCAR_15105
122@, 123@, 120@ = get_car_coordinates 158@

:COPCAR_15119
118@, 119@, 120@ = get_car_coordinates 157@
set_lvar_float_to_lvar_float 120@ = 118@
sub_float_lvar_from_float_lvar 120@ -= 122@
set_lvar_float_to_lvar_float 121@ = 119@
sub_float_lvar_from_float_lvar 121@ -= 123@
mult_float_lvar_by_float_lvar 120@ *= 120@
mult_float_lvar_by_float_lvar 121@ *= 121@
add_float_lvar_to_float_lvar 120@ += 121@
120@ = sqrt 120@
set_lvar_float_to_lvar_float 124@ = 120@
124@ += 3.0
if 
  124@ > 100.0
goto_if_false @COPCAR_15246
124@ = 100.0

:COPCAR_15246
if 
  0.0 > 124@
goto_if_false @COPCAR_15277
124@ = 0.0

:COPCAR_15277
return 

:COPCAR_15279
if 
  not is_char_dead 156@
goto_if_false @COPCAR_16074
$coord_1_x, $coord_1_y, $coord_1_z = get_char_coordinates 156@
if 
  $heading == 919.9
goto_if_false @COPCAR_15347
$car = create_car 90@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z

:COPCAR_15347
if 
  locate_char_any_means_char_2d $scplayer {target} 156@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_15752
set_var_float_to_var_float $coord_2_x = $coord_1_x
$coord_2_x += 40.0
set_var_float_to_var_float $coord_2_y = $coord_1_y
$coord_2_y += 40.0
$coord_1_x -= 40.0
$coord_1_y -= 40.0
mark_car_as_no_longer_needed $car
$car = -1
$car = get_random_car_of_type_in_area $coord_1_x {leftBottomY} $coord_1_y {rightTopX} $coord_2_x {rightTopY} $coord_2_y {modelId} -1
if or
  $car == -1
  is_int_lvar_equal_to_int_var 35@ == $car
goto_if_false @COPCAR_15535
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15528
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15528
goto @COPCAR_15745

:COPCAR_15535
if 
  is_car_health_greater $car {health} 400
goto_if_false @COPCAR_15696
55@ = get_number_of_followers 156@
160@ = get_maximum_number_of_passengers $car
if 
  not is_int_lvar_greater_than_int_lvar 55@ > 160@
goto_if_false @COPCAR_15652
$task_status = get_script_task_status 156@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15645
lock_car_doors $car {lockStatus} CarLock.Unlocked
set_car_cruise_speed $car {maxSpeed} 0.0
task_enter_car_as_driver 156@ {vehicle} $car {time} -2

:COPCAR_15645
goto @COPCAR_15689

:COPCAR_15652
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15689
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15689
goto @COPCAR_15745

:COPCAR_15696
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15733
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15733
mark_car_as_no_longer_needed $car
$car = -1

:COPCAR_15745
goto @COPCAR_16067

:COPCAR_15752
$coord_1_x, $coord_1_y, $coord_1_z, $heading = get_closest_car_node_with_heading $coord_1_x {y} $coord_1_y {z} $coord_1_z
if 
  not is_point_on_screen $coord_1_x {y} $coord_1_y {z} $coord_1_z {radius} 3.0
goto_if_false @COPCAR_16067
if 
  not is_point_obscured_by_a_mission_entity $coord_1_x {y} $coord_1_y {z} $coord_1_z {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 2.0
goto_if_false @COPCAR_15958
if 
  has_model_loaded 90@
goto_if_false @COPCAR_15951
$task_status = get_script_task_status 156@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15951
mark_car_as_no_longer_needed $car
$car = create_car 90@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z
if 
  is_car_health_greater $car {health} 800
goto_if_false @COPCAR_15933
set_car_health $car {health} 800

:COPCAR_15933
set_car_heading $car {heading} $heading
task_enter_car_as_driver 156@ {vehicle} $car {time} -2

:COPCAR_15951
goto @COPCAR_16067

:COPCAR_15958
if 
  locate_char_on_foot_3d 156@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @COPCAR_16067
$task_status = get_script_task_status 156@ {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16067
$coord_1_x, $coord_1_y, $coord_1_z = get_closest_char_node $coord_1_x {y} $coord_1_y {z} $coord_1_z
task_go_straight_to_coord 156@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z {speed} MoveState.Run {time} -2

:COPCAR_16067
goto @COPCAR_16095

:COPCAR_16074
0661: breakpoint {_p1} "GOSUB_PED_IS_DEAD"

:COPCAR_16095
return 

:COPCAR_16097
161@ = get_game_timer 
if 
  not is_car_dead 153@
goto_if_false @COPCAR_16704
if and
  is_car_upsidedown 153@
  is_car_stopped 153@
goto_if_false @COPCAR_16300
52@ = 1
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 153@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @COPCAR_16198
set_upsidedown_car_not_damaged 153@ {state} False
154@ = -9
goto @COPCAR_16300

:COPCAR_16198
if 
  not is_car_on_screen 153@
goto_if_false @COPCAR_16300
$coord_c1_x, $coord_c1_y, $coord_c1_z = get_car_coordinates 153@
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = get_closest_car_node_with_heading $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
if 
  not is_point_on_screen $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radius} 4.0
goto_if_false @COPCAR_16300
set_car_coordinates 153@ {x} $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
set_car_heading 153@ {heading} $heading

:COPCAR_16300
if 
  locate_car_3d 153@ {x} 150@ {y} 151@ {z} 152@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @COPCAR_16641
if 
  154@ == 0
goto_if_false @COPCAR_16375
set_lvar_int_to_lvar_int 155@ = 161@
154@ = 1

:COPCAR_16375
sub_int_lvar_from_int_lvar 161@ -= 155@
if 
  154@ == 1
goto_if_false @COPCAR_16641
if 
  161@ > 8000
goto_if_false @COPCAR_16641
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 153@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @COPCAR_16480
set_upsidedown_car_not_damaged 153@ {state} False
set_lvar_int_to_lvar_int 155@ = 161@
154@ = -9
goto @COPCAR_16641

:COPCAR_16480
if 
  not is_car_on_screen 153@
goto_if_false @COPCAR_16641
$coord_c1_x, $coord_c1_y, $coord_c1_z = get_car_coordinates 153@
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = get_closest_car_node_with_heading $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
if 
  not is_point_obscured_by_a_mission_entity $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @COPCAR_16641
if 
  not is_point_on_screen $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radius} 4.0
goto_if_false @COPCAR_16641
set_car_coordinates 153@ {x} $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
set_car_heading 153@ {heading} $heading
set_lvar_int_to_lvar_int 155@ = 161@
154@ = 0
52@ = 1

:COPCAR_16641
if 
  not locate_car_3d 153@ {x} 150@ {y} 151@ {z} 152@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @COPCAR_16704
150@, 151@, 152@ = get_car_coordinates 153@
154@ = 0

:COPCAR_16704
return 

:COPCAR_16706
if 
  not is_char_dead 36@
goto_if_false @COPCAR_17149
if 
  does_group_exist 274@
goto_if_false @COPCAR_17149
if 
  not is_char_dead 37@
goto_if_false @COPCAR_16863
if 
  not is_group_member 37@ {handle} 274@
goto_if_false @COPCAR_16856
if 
  locate_char_any_means_char_2d 37@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_16819
set_group_member 274@ {handle} 37@
goto @COPCAR_16856

:COPCAR_16819
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16856
task_kill_char_on_foot 37@ {target} $scplayer

:COPCAR_16856
goto @COPCAR_16875

:COPCAR_16863
mark_char_as_no_longer_needed 37@
37@ = -1

:COPCAR_16875
if 
  not is_char_dead 38@
goto_if_false @COPCAR_17000
if 
  not is_group_member 38@ {handle} 274@
goto_if_false @COPCAR_16993
if 
  locate_char_any_means_char_2d 38@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_16956
set_group_member 274@ {handle} 38@
goto @COPCAR_16993

:COPCAR_16956
$task_status = get_script_task_status 38@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16993
task_kill_char_on_foot 38@ {target} $scplayer

:COPCAR_16993
goto @COPCAR_17012

:COPCAR_17000
mark_char_as_no_longer_needed 38@
38@ = -1

:COPCAR_17012
if 
  not is_char_dead 39@
goto_if_false @COPCAR_17137
if 
  not is_group_member 39@ {handle} 274@
goto_if_false @COPCAR_17130
if 
  locate_char_any_means_char_2d 39@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17093
set_group_member 274@ {handle} 39@
goto @COPCAR_17130

:COPCAR_17093
$task_status = get_script_task_status 39@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17130
task_kill_char_on_foot 39@ {target} $scplayer

:COPCAR_17130
goto @COPCAR_17149

:COPCAR_17137
mark_char_as_no_longer_needed 39@
39@ = -1

:COPCAR_17149
return 

:COPCAR_17151
if 
  not is_char_dead 41@
goto_if_false @COPCAR_17594
if 
  does_group_exist 275@
goto_if_false @COPCAR_17594
if 
  not is_char_dead 42@
goto_if_false @COPCAR_17308
if 
  not is_group_member 42@ {handle} 275@
goto_if_false @COPCAR_17301
if 
  locate_char_any_means_char_2d 42@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17264
set_group_member 275@ {handle} 42@
goto @COPCAR_17301

:COPCAR_17264
$task_status = get_script_task_status 42@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17301
task_kill_char_on_foot 42@ {target} $scplayer

:COPCAR_17301
goto @COPCAR_17320

:COPCAR_17308
mark_char_as_no_longer_needed 42@
42@ = -1

:COPCAR_17320
if 
  not is_char_dead 43@
goto_if_false @COPCAR_17445
if 
  not is_group_member 43@ {handle} 275@
goto_if_false @COPCAR_17438
if 
  locate_char_any_means_char_2d 43@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17401
set_group_member 275@ {handle} 43@
goto @COPCAR_17438

:COPCAR_17401
$task_status = get_script_task_status 43@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17438
task_kill_char_on_foot 43@ {target} $scplayer

:COPCAR_17438
goto @COPCAR_17457

:COPCAR_17445
mark_char_as_no_longer_needed 43@
43@ = -1

:COPCAR_17457
if 
  not is_char_dead 44@
goto_if_false @COPCAR_17582
if 
  not is_group_member 44@ {handle} 275@
goto_if_false @COPCAR_17575
if 
  locate_char_any_means_char_2d 44@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17538
set_group_member 275@ {handle} 44@
goto @COPCAR_17575

:COPCAR_17538
$task_status = get_script_task_status 44@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17575
task_kill_char_on_foot 44@ {target} $scplayer

:COPCAR_17575
goto @COPCAR_17594

:COPCAR_17582
mark_char_as_no_longer_needed 44@
44@ = -1

:COPCAR_17594
return 

:COPCAR_17596
if 
  not is_char_dead 46@
goto_if_false @COPCAR_18039
if 
  does_group_exist 276@
goto_if_false @COPCAR_18039
if 
  not is_char_dead 47@
goto_if_false @COPCAR_17753
if 
  not is_group_member 47@ {handle} 276@
goto_if_false @COPCAR_17746
if 
  locate_char_any_means_char_2d 47@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17709
set_group_member 276@ {handle} 47@
goto @COPCAR_17746

:COPCAR_17709
$task_status = get_script_task_status 47@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17746
task_kill_char_on_foot 47@ {target} $scplayer

:COPCAR_17746
goto @COPCAR_17765

:COPCAR_17753
mark_char_as_no_longer_needed 47@
47@ = -1

:COPCAR_17765
if 
  not is_char_dead 48@
goto_if_false @COPCAR_17890
if 
  not is_group_member 48@ {handle} 276@
goto_if_false @COPCAR_17883
if 
  locate_char_any_means_char_2d 48@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17846
set_group_member 276@ {handle} 48@
goto @COPCAR_17883

:COPCAR_17846
$task_status = get_script_task_status 48@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17883
task_kill_char_on_foot 48@ {target} $scplayer

:COPCAR_17883
goto @COPCAR_17902

:COPCAR_17890
mark_char_as_no_longer_needed 48@
48@ = -1

:COPCAR_17902
if 
  not is_char_dead 49@
goto_if_false @COPCAR_18027
if 
  not is_group_member 49@ {handle} 276@
goto_if_false @COPCAR_18020
if 
  locate_char_any_means_char_2d 49@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17983
set_group_member 276@ {handle} 49@
goto @COPCAR_18020

:COPCAR_17983
$task_status = get_script_task_status 49@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_18020
task_kill_char_on_foot 49@ {target} $scplayer

:COPCAR_18020
goto @COPCAR_18039

:COPCAR_18027
mark_char_as_no_longer_needed 49@
49@ = -1

:COPCAR_18039
return 

:COPCAR_18041
set_char_decision_maker 50@ {handleOrTemplate} 267@
set_char_is_chris_criminal 50@ {state} True
set_char_only_damaged_by_player 50@ {state} True
set_char_force_die_in_car 50@ {state} True
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.CivMale
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.CivFemale
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang1
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang2
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang8
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang3
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang5
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang7
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang6
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Dealer
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Emergency
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Fireman
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Bum
if 
  51@ == 0
goto_if_false @COPCAR_18232
159@ = generate_random_int_in_range 0 {max} 2

:COPCAR_18232
if 
  51@ > 1
goto_if_false @COPCAR_18259
159@ = generate_random_int_in_range 0 {max} 3

:COPCAR_18259
if 
  51@ > 4
goto_if_false @COPCAR_18286
159@ = generate_random_int_in_range 0 {max} 4

:COPCAR_18286
if 
  51@ > 6
goto_if_false @COPCAR_18313
159@ = generate_random_int_in_range 0 {max} 5

:COPCAR_18313
if 
  51@ > 8
goto_if_false @COPCAR_18340
159@ = generate_random_int_in_range 0 {max} 6

:COPCAR_18340
if 
  159@ == 0
goto_if_false @COPCAR_18423
159@ = generate_random_int_in_range 10 {max} 13
if 
  159@ == 10
goto_if_false @COPCAR_18395
give_weapon_to_char 50@ {weaponType} WeaponType.BaseballBat {ammo} 9999

:COPCAR_18395
if 
  159@ == 11
goto_if_false @COPCAR_18423
give_weapon_to_char 50@ {weaponType} WeaponType.BaseballBat {ammo} 9999

:COPCAR_18423
if 
  159@ == 1
goto_if_false @COPCAR_18451
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 9999

:COPCAR_18451
if 
  159@ == 2
goto_if_false @COPCAR_18479
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 9999

:COPCAR_18479
if 
  159@ == 3
goto_if_false @COPCAR_18507
give_weapon_to_char 50@ {weaponType} WeaponType.Ak47 {ammo} 9999

:COPCAR_18507
if or
  159@ == 4
  159@ == 5
goto_if_false @COPCAR_18542
give_weapon_to_char 50@ {weaponType} WeaponType.Shotgun {ammo} 9999

:COPCAR_18542
return 

:COPCAR_18544
if 
  $car_numer_flag <> -100
goto_if_false @COPCAR_18621
if 
  1 > $car_numer_flag
goto_if_false @COPCAR_18621
58@ = 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'C_TIME' {time} 3000 {flag} 1
return 

:COPCAR_18621
if -1
goto_if_false @COPCAR_18946
freeze_onscreen_timer False
if 
  57@ == 0
goto_if_false @COPCAR_18712
53@ = get_game_timer 
if 
  $car_numer_flag > 60000
goto_if_false @COPCAR_18697
56@ = 60000
goto @COPCAR_18705

:COPCAR_18697
set_lvar_int_to_var_int 56@ = $car_numer_flag

:COPCAR_18705
57@ = 1

:COPCAR_18712
59@ = get_game_timer 
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_18841
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_18834
print_now 'C_TIME' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_18834
goto @COPCAR_18857

:COPCAR_18841
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_18857
if 
  61@ > -1
goto_if_false @COPCAR_18946
if 
  61@ == 1
goto_if_false @COPCAR_18923
add_next_message_to_previous_briefs False
print_with_number_now 'COPCA_T' {num} 61@ {duration} 200 {flag} 1
goto @COPCAR_18946

:COPCAR_18923
add_next_message_to_previous_briefs False
print_with_number_now 'COPCART' {num} 61@ {duration} 200 {flag} 1

:COPCAR_18946
$controlmode = get_controller_mode 
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_19170
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
if 
  $controlmode <> 3
goto_if_false @COPCAR_19089
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @COPCAR_19057
if 
  62@ == 1
goto_if_false @COPCAR_19050
62@ = 2

:COPCAR_19050
goto @COPCAR_19082

:COPCAR_19057
if 
  62@ == 0
goto_if_false @COPCAR_19082
62@ = 1

:COPCAR_19082
goto @COPCAR_19163

:COPCAR_19089
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @COPCAR_19138
if 
  62@ == 1
goto_if_false @COPCAR_19131
62@ = 2

:COPCAR_19131
goto @COPCAR_19163

:COPCAR_19138
if 
  62@ == 0
goto_if_false @COPCAR_19163
62@ = 1

:COPCAR_19163
57@ = 0

:COPCAR_19170
if 
  62@ == 2
goto_if_false @COPCAR_19297
if 
  $controlmode <> 3
goto_if_false @COPCAR_19255
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @COPCAR_19248
print_now 'C_CANC' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_19248
goto @COPCAR_19297

:COPCAR_19255
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @COPCAR_19297
print_now 'C_CANC' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_19297
return 

//-------------Mission 125---------------
// Originally: Burglary Sub-Mission

:BURGJB
script_name 'BURGJB'
gosub @BURGJB_65
if 
  has_deatharrest_been_executed 
goto_if_false @BURGJB_38
gosub @BURGJB_8271

:BURGJB_38
gosub @BURGJB_8376
terminate_this_script 
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_65

:BURGJB_65
$onmission = 1
register_mission_given 
wait 0
set_fading_colour 0 {g} 0 {b} 0
load_mission_text 'BURGLAR'
enable_burglary_houses True
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
101@ = 0
98@ = 0
99@ = 0
100@ = 0
103@ = 0
102@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
112@ = 0
47@ = 0
$copcar_print_level = 0
90@ = 0
89@ = 0
106@ = 0
$burglary_time_to_daylight = 10
$burglary_time_to_get_out = 300000
91@ = 0
105@ = 0
41@ = 0.0
$burglary_noise = 0.0
42@ = 9999999.0
43@ = 9999999.0
54@ = 2741.0
57@ = -2006.807
60@ = 14.0
set_var_text_label s$burglary_session_made[0] = 'BURG_LK'
76@ = 2741.241
79@ = -2011.274
82@ = 13.5869
55@ = -2096.54
58@ = -15.5931
61@ = 34.3203
set_var_text_label s$burglary_session_made[1] = 'BRGSFSE'
77@ = -2109.3201
80@ = -15.7967
83@ = 34.3203
56@ = 2609.248
59@ = 1435.347
62@ = 9.8203
set_var_text_label s$burglary_session_made[2] = 'VGELOCK'
78@ = 2609.012
81@ = 1445.936
84@ = 9.8203
34@ = 0
48@ = 0
$burglary_player_spotted = 0
111@ = 0
$g_VB_BIG_LIFT = 0
$disable_mod_garage = 1
38@ = store_score $player1
39@ = store_score $player1
if 
  48@ == 99
goto_if_false @BURGJB_687
49@ = create_object #BRIEFCASE {x} 0.0 {y} 0.0 {z} 0.0
51@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
53@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:BURGJB_687
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_791
draw_oddjob_title_before_fade False
do_fade 1000 {direction} Fade.Out

:BURGJB_727
if 
  get_fading_status 
goto_if_false @BURGJB_751
wait 0
goto @BURGJB_727

:BURGJB_751
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_763
if 
  get_fading_status 
goto_if_false @BURGJB_787
wait 0
goto @BURGJB_763

:BURGJB_787
draw_oddjob_title_before_fade True

:BURGJB_791
$hours, $minutes = get_time_of_day 
if 
  $hours >= 20
goto_if_false @BURGJB_880
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_880
if 
  6 > $hours
goto_if_false @BURGJB_953
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_953
display_onscreen_timer_with_string $8234 {direction} TimerDirection.Down {text} 'BURG52'
display_nth_onscreen_counter_with_string $copcar_print_level {display} CounterDisplay.Number {slot} 1 {text} 'BURG51'
wait 0
if 
  is_char_in_any_car $scplayer
goto_if_false @BURGJB_1015
50@ = store_car_char_is_in $scplayer

:BURGJB_1015
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @BURGJB_1044
$8234 = 10000000

:BURGJB_1044
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @BURGJB_1089
set_char_coordinates $scplayer {x} 2741.928 {y} -1993.231 {z} 12.3669
set_char_heading $scplayer {heading} 173.5173

:BURGJB_1089
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @BURGJB_1124
set_char_coordinates $scplayer {x} 2639.0 {y} 2039.911 {z} 9.8052

:BURGJB_1124
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @BURGJB_1147
$8234 = 5000

:BURGJB_1147
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @BURGJB_1170
$burglary_time_to_get_out = 5000

:BURGJB_1170
if 
is_ps2_keyboard_key_pressed 34
goto_if_false @BURGJB_1193
$burglary_total_made = 11000

:BURGJB_1193
if 
is_ps2_keyboard_key_pressed 35
goto_if_false @BURGJB_1215
48@ = 3

:BURGJB_1215
if 
  110@ == 0
goto_if_false @BURGJB_2124
if 
  $8234 == 0
goto_if_false @BURGJB_1941
clear_prints 
enable_burglary_houses False
if 
  92@ == 1
goto_if_false @BURGJB_1541
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:BURGJB_1289
if 
  get_fading_status 
goto_if_false @BURGJB_1313
wait 0
goto @BURGJB_1289

:BURGJB_1313
clear_help 
set_area_visible 0
request_collision 69@ {y} 70@
load_scene 69@ {y} 70@ {z} 71@
set_char_coordinates_no_offset $scplayer {x} 69@ {y} 70@ {z} 71@
shut_char_up $scplayer {state} False
72@ += 180.0
set_char_heading $scplayer {heading} 72@
set_char_has_used_entry_exit $scplayer {x} 73@ {y} 74@ {radius} 5.0
load_scene 69@ {y} 70@ {z} 71@
if 
  48@ == 0
goto_if_false @BURGJB_1467
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_1467
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_1467
92@ = 0
93@ = 0
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_1496
restore_camera_jumpcut 

:BURGJB_1496
do_fade 1000 {direction} Fade.In

:BURGJB_1503
if 
  get_fading_status 
goto_if_false @BURGJB_1527
wait 0
goto @BURGJB_1503

:BURGJB_1527
set_player_control $player1 {state} True
goto @BURGJB_1704

:BURGJB_1541
if 
  48@ == 0
goto_if_false @BURGJB_1704
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_1704
if 
  is_player_control_on $player1
goto_if_false @BURGJB_1611
set_player_control $player1 {state} False

:BURGJB_1611
do_fade 1000 {direction} Fade.Out

:BURGJB_1618
if 
  get_fading_status 
goto_if_false @BURGJB_1642
wait 0
goto @BURGJB_1618

:BURGJB_1642
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_1673
restore_camera_jumpcut 

:BURGJB_1673
do_fade 1000 {direction} Fade.In

:BURGJB_1680
if 
  get_fading_status 
goto_if_false @BURGJB_1704
wait 0
goto @BURGJB_1680

:BURGJB_1704
clear_onscreen_timer $8234
if 
  48@ > 0
goto_if_false @BURGJB_1887
display_onscreen_timer_with_string $burglary_time_to_get_out {direction} TimerDirection.Down {text} 'BURG3'
clear_prints 
print 'BURG2' {time} 5000 {flag} 1
if 
  93@ == 1
goto_if_false @BURGJB_1809
print 'BURG26' {time} 5000 {flag} 1
102@ = 2
goto @BURGJB_1880

:BURGJB_1809
if 
  94@ == 1
goto_if_false @BURGJB_1857
print 'BURG27' {time} 5000 {flag} 1
102@ = 1
goto @BURGJB_1880

:BURGJB_1857
print 'BURG1' {time} 5000 {flag} 1
102@ = 3

:BURGJB_1880
goto @BURGJB_1927

:BURGJB_1887
$burglary_time_to_get_out = 0
delete_object 49@
mark_object_as_no_longer_needed 49@
print 'BURG53' {time} 5000 {flag} 1
goto @BURGJB_8271

:BURGJB_1927
110@ = 1
goto @BURGJB_2117

:BURGJB_1941
$hours, $minutes = get_time_of_day 
if 
  $hours >= 20
goto_if_false @BURGJB_2037
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_2037
if 
  6 > $hours
goto_if_false @BURGJB_2117
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_2117
goto @BURGJB_2322

:BURGJB_2124
if 
  $burglary_time_to_get_out == 0
goto_if_false @BURGJB_2322
clear_prints 
if 
  is_player_control_on $player1
goto_if_false @BURGJB_2167
set_player_control $player1 {state} False

:BURGJB_2167
do_fade 1000 {direction} Fade.Out

:BURGJB_2174
if 
  get_fading_status 
goto_if_false @BURGJB_2198
wait 0
goto @BURGJB_2174

:BURGJB_2198
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_2243
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_2243
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_2258
restore_camera_jumpcut 

:BURGJB_2258
do_fade 1000 {direction} Fade.In

:BURGJB_2265
if 
  get_fading_status 
goto_if_false @BURGJB_2289
wait 0
goto @BURGJB_2265

:BURGJB_2289
print 'BURG53' {time} 5000 {flag} 1
delete_object 49@
mark_object_as_no_longer_needed 49@
goto @BURGJB_8271

:BURGJB_2322
if 
  95@ == 0
goto_if_false @BURGJB_7771
gosub @BURGJB_7892
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @BURGJB_2404
if 
goto_if_false @BURGJB_2404
print 'BURG62' {time} 5000 {flag} 1
goto @BURGJB_8271

:BURGJB_2404
if 
  93@ == 1
goto_if_false @BURGJB_2647
if and
  is_wanted_level_greater $player1 {wantedLevel} 0
  48@ > 0
goto_if_false @BURGJB_2497
if 
  102@ <> 5
goto_if_false @BURGJB_2490
clear_prints 
print 'BURG50' {time} 5000 {flag} 1
102@ = 5

:BURGJB_2490
goto @BURGJB_2640

:BURGJB_2497
if 
  102@ <> 2
goto_if_false @BURGJB_2640
clear_prints 
if 
  48@ > 0
goto_if_false @BURGJB_2599
if 
  110@ == 0
goto_if_false @BURGJB_2576
print 'BURG4' {time} 5000 {flag} 1
goto @BURGJB_2592

:BURGJB_2576
print 'BURG26' {time} 5000 {flag} 1

:BURGJB_2592
goto @BURGJB_2633

:BURGJB_2599
if 
  110@ == 0
goto_if_false @BURGJB_2633
print 'BURG29' {time} 5000 {flag} 1

:BURGJB_2633
102@ = 2

:BURGJB_2640
goto @BURGJB_3037

:BURGJB_2647
if 
  110@ == 0
goto_if_false @BURGJB_2910
if 
  94@ == 1
goto_if_false @BURGJB_2751
if 
  102@ <> 1
goto_if_false @BURGJB_2744
if 
  92@ == 0
goto_if_false @BURGJB_2744
clear_prints 
print 'BURG27' {time} 5000 {flag} 1
102@ = 1

:BURGJB_2744
goto @BURGJB_2903

:BURGJB_2751
if 
  92@ == 1
goto_if_false @BURGJB_2819
if 
  102@ <> 4
goto_if_false @BURGJB_2812
clear_prints 
print 'BURG30' {time} 5000 {flag} 1
102@ = 4

:BURGJB_2812
goto @BURGJB_2903

:BURGJB_2819
if 
  102@ <> 3
goto_if_false @BURGJB_2903
clear_prints 
if 
  48@ == 0
goto_if_false @BURGJB_2880
print 'BURG29' {time} 5000 {flag} 1
goto @BURGJB_2896

:BURGJB_2880
print 'BURG31' {time} 5000 {flag} 1

:BURGJB_2896
102@ = 3

:BURGJB_2903
goto @BURGJB_3037

:BURGJB_2910
if 
  94@ == 1
goto_if_false @BURGJB_2996
if 
  102@ <> 1
goto_if_false @BURGJB_2989
if 
  92@ == 0
goto_if_false @BURGJB_2989
clear_prints 
print 'BURG27' {time} 5000 {flag} 1
102@ = 1

:BURGJB_2989
goto @BURGJB_3037

:BURGJB_2996
if 
  102@ <> 3
goto_if_false @BURGJB_3037
print 'BURG1' {time} 5000 {flag} 1
102@ = 3

:BURGJB_3037
if 
  not is_car_dead 50@
goto_if_false @BURGJB_7620
if 
  92@ == 0
goto_if_false @BURGJB_3349
if 
  not is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_3181
93@ = 0
if 
  99@ == 1
goto_if_false @BURGJB_3127
remove_blip 51@
99@ = 0

:BURGJB_3127
if 
  97@ == 0
goto_if_false @BURGJB_3174
52@ = add_blip_for_car 50@
change_blip_display 52@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 52@ {state} True
97@ = 1

:BURGJB_3174
goto @BURGJB_3349

:BURGJB_3181
93@ = 1
if 
  97@ == 1
goto_if_false @BURGJB_3225
108@ = 0
remove_blip 52@
97@ = 0

:BURGJB_3225
if 
  48@ > 0
goto_if_false @BURGJB_3349
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @BURGJB_3298
if 
  99@ == 1
goto_if_false @BURGJB_3291
remove_blip 51@
99@ = 0

:BURGJB_3291
goto @BURGJB_3349

:BURGJB_3298
if 
  99@ == 0
goto_if_false @BURGJB_3349
51@ = add_blip_for_coord 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f)
99@ = 1

:BURGJB_3349
if 
  108@ == 0
goto_if_false @BURGJB_3801
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @BURGJB_3407
35@ = 0
goto @BURGJB_3783

:BURGJB_3407
if 
  $Return_cities_passed == 1
goto_if_false @BURGJB_3579
63@, 64@, 65@ = get_char_coordinates $scplayer
35@ = get_city_from_coords 63@ {y} 64@ {z} 65@
if 
  35@ > 0
goto_if_false @BURGJB_3485
35@ -= 1
goto @BURGJB_3572

:BURGJB_3485
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 54@ {toY} 57@ {toZ} 60@
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 55@ {toY} 58@ {toZ} 61@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3572
35@ = 1

:BURGJB_3572
goto @BURGJB_3783

:BURGJB_3579
63@, 64@, 65@ = get_char_coordinates $scplayer
35@ = get_city_from_coords 63@ {y} 64@ {z} 65@
if 
  35@ > 0
goto_if_false @BURGJB_3639
35@ -= 1
goto @BURGJB_3783

:BURGJB_3639
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 54@ {toY} 57@ {toZ} 60@
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 55@ {toY} 58@ {toZ} 61@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3734
35@ = 1
set_lvar_float_to_lvar_float 43@ = 42@

:BURGJB_3734
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 56@ {toY} 59@ {toZ} 62@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3783
35@ = 2

:BURGJB_3783
change_garage_type $burglary_session_made(35@,3s) {type} GarageType.ForScriptToOpenAndClose
108@ = 1

:BURGJB_3801
if 
  not is_car_dead 50@
goto_if_false @BURGJB_5248
if or
  locate_char_any_means_3d $scplayer {x} 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
  locate_car_3d 50@ {x} 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @BURGJB_5219
if 
  not is_garage_open $burglary_session_made(35@,3s)
goto_if_false @BURGJB_3943
open_garage $burglary_session_made(35@,3s)

:BURGJB_3943
if 
  108@ == 1
goto_if_false @BURGJB_5212
if 
  93@ == 1
goto_if_false @BURGJB_5212
if 
  48@ > 0
goto_if_false @BURGJB_5212
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @BURGJB_4070
if 
  99@ == 1
goto_if_false @BURGJB_4063
clear_prints 
print 'BURG50' {time} 5000 {flag} 1
remove_blip 51@
99@ = 0

:BURGJB_4063
goto @BURGJB_5212

:BURGJB_4070
if 
  99@ == 0
goto_if_false @BURGJB_4146
clear_prints 
print 'BURG26' {time} 5000 {flag} 1
51@ = add_blip_for_coord 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f)
99@ = 1
goto @BURGJB_5212

:BURGJB_4146
print 'BURG40' {time} 1000 {flag} 1
if 
  locate_char_in_car_3d $scplayer {x} 76@(35@,3f) {y} 79@(35@,3f) {z} 82@(35@,3f) {xRadius} 2.9 {yRadius} 3.2 {zRadius} 5.0 {drawSphere} True
goto_if_false @BURGJB_5212
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
clear_prints 
clear_area 76@(35@,3f) {y} 79@(35@,3f) {z} 82@(35@,3f) {radius} 10.0 {clearParticles} True
if 
  110@ == 1
goto_if_false @BURGJB_4295
clear_onscreen_timer $burglary_time_to_get_out
$burglary_time_to_get_out = 999999

:BURGJB_4295
if 
  not is_garage_closed $burglary_session_made(35@,3s)
goto_if_false @BURGJB_4324
close_garage $burglary_session_made(35@,3s)

:BURGJB_4324
104@ = 0

:BURGJB_4331
if 
  104@ == 0
goto_if_false @BURGJB_4387
wait 0
if 
  is_garage_closed $burglary_session_made(35@,3s)
goto_if_false @BURGJB_4380
104@ = 1

:BURGJB_4380
goto @BURGJB_4331

:BURGJB_4387
remove_blip 51@
set_lvar_int_to_lvar_int 34@ = 48@
34@ *= 20
mult_int_lvar_by_int_lvar 34@ *= 48@
add_int_lvar_to_int_var $burglary_total_items += 48@
add_int_lvar_to_int_var $burglary_total_made += 34@
cset_lvar_float_to_var_int 45@ =# $burglary_total_made
cset_lvar_float_to_lvar_int 46@ =# 34@
add_int_lvar_to_int_lvar 47@ += 48@
add_int_lvar_to_int_var $copcar_print_level += 34@
register_float_stat StatId.LargestBurglarySwag {value} 46@
increment_float_stat StatId.MoneyMadeBurglary {value} 46@
increment_int_stat StatId.StolenItemsSold {value} 48@
if 
  110@ == 1
goto_if_false @BURGJB_4653
if 
  is_player_control_on $player1
goto_if_false @BURGJB_4526
set_player_control $player1 {state} False

:BURGJB_4526
do_fade 1000 {direction} Fade.Out

:BURGJB_4533
if 
  get_fading_status 
goto_if_false @BURGJB_4557
wait 0
goto @BURGJB_4533

:BURGJB_4557
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_4602
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_4602
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_4615

:BURGJB_4615
do_fade 1000 {direction} Fade.In

:BURGJB_4622
if 
  get_fading_status 
goto_if_false @BURGJB_4646
wait 0
goto @BURGJB_4622

:BURGJB_4646
goto @BURGJB_4822

:BURGJB_4653
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_4822
if 
  is_player_control_on $player1
goto_if_false @BURGJB_4702
set_player_control $player1 {state} False

:BURGJB_4702
do_fade 1000 {direction} Fade.Out

:BURGJB_4709
if 
  get_fading_status 
goto_if_false @BURGJB_4733
wait 0
goto @BURGJB_4709

:BURGJB_4733
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_4778
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_4778
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_4791

:BURGJB_4791
do_fade 1000 {direction} Fade.In

:BURGJB_4798
if 
  get_fading_status 
goto_if_false @BURGJB_4822
wait 0
goto @BURGJB_4798

:BURGJB_4822
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
if 
  2 > 48@
goto_if_false @BURGJB_4889
print_with_2_numbers_big 'BURG39' {num1} 48@ {num2} 34@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @BURGJB_4911

:BURGJB_4889
print_with_2_numbers_big 'BURG36' {num1} 48@ {num2} 34@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:BURGJB_4911
add_score $player1 {money} 34@
TIMERA = 0

:BURGJB_4926
if or
  is_message_being_displayed 
  4000 > TIMERA
goto_if_false @BURGJB_4958
wait 0
goto @BURGJB_4926

:BURGJB_4958
if 
  not is_garage_open $burglary_session_made(35@,3s)
goto_if_false @BURGJB_4987
open_garage $burglary_session_made(35@,3s)

:BURGJB_4987
104@ = 0

:BURGJB_4994
if 
  104@ == 0
goto_if_false @BURGJB_5050
wait 0
if 
  is_garage_open $burglary_session_made(35@,3s)
goto_if_false @BURGJB_5043
104@ = 1

:BURGJB_5043
goto @BURGJB_4994

:BURGJB_5050
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_5104
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
goto @BURGJB_8311
goto @BURGJB_5166

:BURGJB_5104
if 
  110@ == 0
goto_if_false @BURGJB_5138
print 'BURG29' {time} 5000 {flag} 1

:BURGJB_5138
99@ = 0
34@ = 0
48@ = 0
105@ = 0

:BURGJB_5166
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
if 
  110@ == 1
goto_if_false @BURGJB_5212
goto @BURGJB_8271
$burglary_time_to_get_out = 0

:BURGJB_5212
goto @BURGJB_5248

:BURGJB_5219
if 
  not is_garage_closed $burglary_session_made(35@,3s)
goto_if_false @BURGJB_5248
close_garage $burglary_session_made(35@,3s)

:BURGJB_5248
if 
  93@ == 0
goto_if_false @BURGJB_5683
if 
  is_procedural_interior_active 0
goto_if_false @BURGJB_5423
if 
  107@ == 0
goto_if_false @BURGJB_5409
69@, 70@, 71@, 72@ = get_position_of_entry_exit_char_used $scplayer
73@, 74@, 75@ = get_char_coordinates $scplayer
if 
  does_object_exist 49@
goto_if_false @BURGJB_5378
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5378
37@ = get_area_visible 
set_object_area_visible 49@ {areaId} 37@

:BURGJB_5378
remove_blip 52@
shut_char_up $scplayer {state} True
set_radar_zoom 90
39@ = store_score $player1
107@ = 1

:BURGJB_5409
92@ = 1
goto @BURGJB_5683

:BURGJB_5423
if 
  107@ == 1
goto_if_false @BURGJB_5676
shut_char_up $scplayer {state} False
if 
  does_object_exist 49@
goto_if_false @BURGJB_5496
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5496
37@ = get_area_visible 
set_object_area_visible 49@ {areaId} 37@

:BURGJB_5496
if 
  not is_car_dead 50@
goto_if_false @BURGJB_5527
52@ = add_blip_for_car 50@
set_blip_as_friendly 52@ {state} True

:BURGJB_5527
set_radar_zoom 0
107@ = 0
if 
  94@ == 1
goto_if_false @BURGJB_5676
112@ = 1
if 
  is_float_lvar_equal_to_float_lvar 85@ == 69@
goto_if_false @BURGJB_5627
if 
  is_float_lvar_equal_to_float_lvar 86@ == 70@
goto_if_false @BURGJB_5627
if 
  is_float_lvar_equal_to_float_lvar 87@ == 71@
goto_if_false @BURGJB_5627
112@ = 0

:BURGJB_5627
if 
  112@ == 1
goto_if_false @BURGJB_5676
set_lvar_float_to_lvar_float 85@ = 69@
set_lvar_float_to_lvar_float 86@ = 70@
set_lvar_float_to_lvar_float 87@ = 71@
increment_int_stat StatId.HousesBurgled {value} 1

:BURGJB_5676
92@ = 0

:BURGJB_5683
if 
  93@ == 0
goto_if_false @BURGJB_6445
if 
  92@ == 0
goto_if_false @BURGJB_6445
if 
  94@ == 0
goto_if_false @BURGJB_5961
63@, 64@, 65@ = get_char_coordinates $scplayer
49@ = get_closest_stealable_object 63@ {y} 64@ {z} 65@ {radius} 5.0
if 
  49@ <> -1
goto_if_false @BURGJB_5954
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5848
if 
  100@ == 1
goto_if_false @BURGJB_5834
clear_help 
100@ = 0

:BURGJB_5834
94@ = 1
goto @BURGJB_5954

:BURGJB_5848
if 
  locate_char_on_foot_object_3d $scplayer {object} 49@ {xRadius} 1.7 {yRadius} 1.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_5927
if 
  100@ == 0
goto_if_false @BURGJB_5920
print_help_forever 'BURG23'
100@ = 1

:BURGJB_5920
goto @BURGJB_5954

:BURGJB_5927
if 
  100@ == 1
goto_if_false @BURGJB_5954
clear_help 
100@ = 0

:BURGJB_5954
goto @BURGJB_6003

:BURGJB_5961
if 
  does_object_exist 49@
goto_if_false @BURGJB_6003
if 
  not is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_6003
94@ = 0

:BURGJB_6003
if or
  $burglary_player_spotted == 1
  98@ == 1
goto_if_false @BURGJB_6061
$burglary_player_spotted = 0
98@ = 0
clear_onscreen_counter $burglary_time_to_daylight
$burglary_time_to_daylight = 10
109@ = 0

:BURGJB_6061
if 
  101@ == 1
goto_if_false @BURGJB_6118
clear_onscreen_counter $g_VB_BIG_LIFT
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0

:BURGJB_6118
if 
  94@ == 1
goto_if_false @BURGJB_6445
66@, 67@, 68@ = get_offset_from_car_in_world_coords 50@ {xOffset} 0.0 {yOffset} -6.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} 66@ {y} 67@ {z} 68@ {xRadius} 3.5 {yRadius} 3.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_6418
if 
  100@ == 0
goto_if_false @BURGJB_6243
print_help_forever 'BURG24'
100@ = 1

:BURGJB_6243
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BURGJB_6411
clear_help 
48@ += 1
TIMERB = 0
104@ = 0
if 
  does_object_exist 49@
goto_if_false @BURGJB_6404

:BURGJB_6299
if 
  104@ == 0
goto_if_false @BURGJB_6367
if or
  not is_char_holding_object $scplayer {handle} 49@
  is_char_dead $scplayer
  TIMERB > 5000
goto_if_false @BURGJB_6356
104@ = 1

:BURGJB_6356
wait 0
goto @BURGJB_6299

:BURGJB_6367
delete_object 49@
mark_object_as_no_longer_needed 49@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
94@ = 0

:BURGJB_6404
100@ = 0

:BURGJB_6411
goto @BURGJB_6445

:BURGJB_6418
if 
  100@ == 1
goto_if_false @BURGJB_6445
clear_help 
100@ = 0

:BURGJB_6445
if 
  92@ == 1
goto_if_false @BURGJB_7613
if and
  98@ == 0
  $burglary_player_spotted == 0
goto_if_false @BURGJB_6918
if 
  101@ == 0
goto_if_false @BURGJB_6570
111@ = get_number_of_instances_of_streamed_script 23
if 
  111@ > 0
goto_if_false @BURGJB_6563
display_nth_onscreen_counter_with_string $g_VB_BIG_LIFT {display} CounterDisplay.Bar {slot} 2 {text} 'BURG25'
shut_char_up $scplayer {state} True
101@ = 1

:BURGJB_6563
goto @BURGJB_6911

:BURGJB_6570
111@ = get_number_of_instances_of_streamed_script 23
if 
  111@ <> 0
goto_if_false @BURGJB_6865
63@, 64@, 65@ = get_char_coordinates $scplayer
$burglary_noise = get_sound_level_at_coords -1 {x} 63@ {y} 64@ {z} 65@
$burglary_noise *= 1.6
if 
  $burglary_noise > 20.0
goto_if_false @BURGJB_6674
$burglary_noise -= 20.0
add_float_var_to_float_lvar 41@ += $burglary_noise

:BURGJB_6674
41@ *= 0.99
cset_var_int_to_lvar_float $g_VB_BIG_LIFT =# 41@
if 
  $g_VB_BIG_LIFT >= 100
goto_if_false @BURGJB_6754
$g_VB_BIG_LIFT = 100
if 
  106@ == 0
goto_if_false @BURGJB_6747
89@ = get_game_timer 
106@ = 1

:BURGJB_6747
goto @BURGJB_6786

:BURGJB_6754
if 
  0 > $g_VB_BIG_LIFT
goto_if_false @BURGJB_6779
$g_VB_BIG_LIFT = 0

:BURGJB_6779
106@ = 0

:BURGJB_6786
if 
  106@ == 1
goto_if_false @BURGJB_6858
90@ = get_game_timer 
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
if 
  91@ > 200
goto_if_false @BURGJB_6858
98@ = 1
105@ += 1

:BURGJB_6858
goto @BURGJB_6911

:BURGJB_6865
clear_onscreen_counter $g_VB_BIG_LIFT
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0
shut_char_up $scplayer {state} False

:BURGJB_6911
goto @BURGJB_7275

:BURGJB_6918
if 
  101@ == 1
goto_if_false @BURGJB_7030
clear_onscreen_counter $g_VB_BIG_LIFT
$burglary_time_to_daylight = 10
clear_prints 
print 'BURG55' {time} 5000 {flag} 1
display_nth_onscreen_counter_with_string $burglary_time_to_daylight {display} CounterDisplay.Number {slot} 2 {text} 'BURG61'
89@ = get_game_timer 
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0
goto @BURGJB_7275

:BURGJB_7030
if 
  109@ == 0
goto_if_false @BURGJB_7275
90@ = get_game_timer 
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
91@ /= 1000
$burglary_time_to_daylight = 10
sub_int_lvar_from_int_var $burglary_time_to_daylight -= 91@
if or
  0 > $burglary_time_to_daylight
  $burglary_time_to_daylight == 0
goto_if_false @BURGJB_7186
$burglary_time_to_daylight = 0
if 
  not is_wanted_level_greater $player1 {wantedLevel} 4
goto_if_false @BURGJB_7149
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:BURGJB_7149
109@ = 1
clear_prints 
print 'BURG60' {time} 5000 {flag} 1
clear_onscreen_counter $burglary_time_to_daylight
goto @BURGJB_7275

:BURGJB_7186
clear_this_print 'BURG58'
clear_this_print 'BURG59'
add_next_message_to_previous_briefs False
if 
  $burglary_time_to_daylight > 1
goto_if_false @BURGJB_7256
print_with_number 'BURG58' {num} $burglary_time_to_daylight {duration} 1000 {flag} 1
goto @BURGJB_7275

:BURGJB_7256
print_with_number 'BURG59' {num} $burglary_time_to_daylight {duration} 1000 {flag} 1

:BURGJB_7275
if 
  94@ == 0
goto_if_false @BURGJB_7535
63@, 64@, 65@ = get_char_coordinates $scplayer
49@ = get_closest_stealable_object 63@ {y} 64@ {z} 65@ {radius} 5.0
if 
  49@ <> -1
goto_if_false @BURGJB_7528
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_7422
if 
  100@ == 1
goto_if_false @BURGJB_7408
clear_prints 
print 'BURG57' {time} 5000 {flag} 1
clear_help 
100@ = 0

:BURGJB_7408
94@ = 1
goto @BURGJB_7528

:BURGJB_7422
if 
  locate_char_on_foot_object_3d $scplayer {object} 49@ {xRadius} 1.7 {yRadius} 1.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_7501
if 
  100@ == 0
goto_if_false @BURGJB_7494
print_help_forever 'BURG23'
100@ = 1

:BURGJB_7494
goto @BURGJB_7528

:BURGJB_7501
if 
  100@ == 1
goto_if_false @BURGJB_7528
clear_help 
100@ = 0

:BURGJB_7528
goto @BURGJB_7613

:BURGJB_7535
if 
  does_object_exist 49@
goto_if_false @BURGJB_7613
if 
  not is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_7613
if 
  94@ == 1
goto_if_false @BURGJB_7606
clear_prints 
print 'BURG30' {time} 5000 {flag} 1

:BURGJB_7606
94@ = 0

:BURGJB_7613
goto @BURGJB_7764

:BURGJB_7620
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_7750
if 
  is_player_control_on $player1
goto_if_false @BURGJB_7672
set_player_control $player1 {state} False

:BURGJB_7672
do_fade 1000 {direction} Fade.Out

:BURGJB_7679
if 
  get_fading_status 
goto_if_false @BURGJB_7703
wait 0
goto @BURGJB_7679

:BURGJB_7703
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_7726
if 
  get_fading_status 
goto_if_false @BURGJB_7750
wait 0
goto @BURGJB_7726

:BURGJB_7750
goto @BURGJB_8271
95@ = 1

:BURGJB_7764
goto @BURGJB_7885

:BURGJB_7771
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_7878
do_fade 1000 {direction} Fade.Out

:BURGJB_7807
if 
  get_fading_status 
goto_if_false @BURGJB_7831
wait 0
goto @BURGJB_7807

:BURGJB_7831
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_7854
if 
  get_fading_status 
goto_if_false @BURGJB_7878
wait 0
goto @BURGJB_7854

:BURGJB_7878
goto @BURGJB_8271

:BURGJB_7885
goto @BURGJB_1015

:BURGJB_7892
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @BURGJB_7981
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BURGJB_7974
if 
  not is_car_dead 50@
goto_if_false @BURGJB_7974
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_7974
96@ = 1

:BURGJB_7974
goto @BURGJB_8040

:BURGJB_7981
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BURGJB_8040
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8040
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8040
96@ = 1

:BURGJB_8040
if 
  96@ == 1
goto_if_false @BURGJB_8269
if 
  $controlmode <> 3
goto_if_false @BURGJB_8176
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BURGJB_8169
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8169
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8160
clear_prints 
print_now 'BURG41' {time} 5000 {flag} 1
95@ = 1
goto @BURGJB_8167

:BURGJB_8160
96@ = 0

:BURGJB_8167
return 

:BURGJB_8169
goto @BURGJB_8269

:BURGJB_8176
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BURGJB_8269
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8269
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8260
clear_prints 
print_now 'BURG41' {time} 5000 {flag} 1
95@ = 1
goto @BURGJB_8267

:BURGJB_8260
96@ = 0

:BURGJB_8267
return 

:BURGJB_8269
return 

:BURGJB_8271
print_big 'B_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_2_numbers_big 'BURG37' {num1} 47@ {num2} $copcar_print_level {duration} 5000 {style} TextStyle.Middle
return 

:BURGJB_8311
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_8372
print_with_number_big 'BURG54' {num} 3000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 3000
clear_wanted_level $player1
play_mission_passed_tune 2
$done_burglary_progress = 1

:BURGJB_8372
return 
return 

:BURGJB_8376
$disable_mod_garage = 0
if 
  is_player_playing $player1
goto_if_false @BURGJB_8406
shut_char_up $scplayer {state} False

:BURGJB_8406
draw_oddjob_title_before_fade True
enable_burglary_houses False
change_garage_type s$burglary_session_made[0] {type} GarageType.Burglary
change_garage_type s$burglary_session_made[1] {type} GarageType.Burglary
change_garage_type s$burglary_session_made[2] {type} GarageType.Burglary
mark_car_as_no_longer_needed 50@
remove_blip 52@
remove_blip 51@
clear_onscreen_counter $g_VB_BIG_LIFT
clear_onscreen_timer $8234
clear_onscreen_timer $burglary_time_to_get_out
clear_onscreen_counter $copcar_print_level
clear_onscreen_counter $burglary_time_to_daylight
$flag_player_on_burglary_mission = 0
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 126---------------
// Originally: Freight Train Sub-Mission

:FREIGHT
script_name 'FREIGHT'
gosub @FREIGHT_80
if 
  has_deatharrest_been_executed 
goto_if_false @FREIGHT_38
gosub @FREIGHT_2787

:FREIGHT_38
gosub @FREIGHT_3146
if 
  $freight_remaining == 1
goto_if_false @FREIGHT_78
start_new_script @FRTEXT 
$freight_remaining = 2

:FREIGHT_78
terminate_this_script 

:FREIGHT_80
clear_wanted_level $player1
set_wanted_multiplier 0.0
135@ = 999999.0
$onmission = 1
$flag_player_on_freight_mission = 1
130@ = 0
126@ = 0
125@ = 0
if 
  $ft_train_level == 0
goto_if_false @FREIGHT_162
$ft_train_level = 1

:FREIGHT_162
45@ = 1698.826
65@ = -1953.75
85@ = 12.5469
34@ = 150000
39@ = 60000
46@ = 789.4952
66@ = -1343.796
86@ = -2.5794
35@ = 60000
40@ = 140000
47@ = -1943.241
67@ = 159.585
87@ = 24.7186
36@ = 140000
41@ = 150000
48@ = 1463.359
68@ = 2632.25
88@ = 9.8203
37@ = 150000
42@ = 105000
49@ = 2864.623
69@ = 1248.266
89@ = 9.8203
38@ = 105000
43@ = 150000
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_438
127@ = 15000

:FREIGHT_438
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_464
127@ = 10000

:FREIGHT_464
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_489
127@ = 0

:FREIGHT_489
129@ = 0

:FREIGHT_496
add_int_lvar_to_int_lvar 34@(129@,5i) += 127@
add_int_lvar_to_int_lvar 39@(129@,5i) += 127@
129@ += 1
  129@ >= 5
goto_if_false @FREIGHT_496
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_576
register_mission_given 

:FREIGHT_576
load_mission_text 'FTRAIN'
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_627
if 
  is_char_in_any_car $scplayer
goto_if_false @FREIGHT_627
$car = store_car_char_is_in $scplayer

:FREIGHT_627
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_671
print_with_number_big 'FREI_04' {num} $ft_train_level {duration} 5000 {style} TextStyle.MiddleSmaller
goto @FREIGHT_687

:FREIGHT_671
print_big 'FREI_X' {time} 5000 {style} TextStyle.MiddleSmaller

:FREIGHT_687
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_721
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_721
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 1698.826 {toZ} -1953.75
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_776
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 0

:FREIGHT_776
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 789.4952 {toZ} -1343.796
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_831
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 1

:FREIGHT_831
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} -1943.241 {toZ} 159.585
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_886
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 2

:FREIGHT_886
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 1463.359 {toZ} 2632.25
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_941
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 3

:FREIGHT_941
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2864.623 {toZ} 1248.266
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_996
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 4

:FREIGHT_996
request_model 590
request_model 570
request_model 569
request_model 538
request_model 537

:FREIGHT_1021
if or
  not has_model_loaded 590
  not has_model_loaded 570
  not has_model_loaded 569
  not has_model_loaded 538
  not has_model_loaded 537
goto_if_false @FREIGHT_1068
wait 0
goto @FREIGHT_1021

:FREIGHT_1068
TIMERA = 0
TIMERB = 0
delete_all_trains 
switch_random_trains False
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_1128
if 
  is_char_in_any_car $scplayer
goto_if_false @FREIGHT_1128
$car = store_car_char_is_in_no_save $scplayer

:FREIGHT_1128
if 
  not is_car_dead $car
goto_if_false @FREIGHT_1195
if 
  find_train_direction $car
goto_if_false @FREIGHT_1181
125@ += 1
133@ = 0
goto @FREIGHT_1195

:FREIGHT_1181
125@ -= 1
133@ = 1

:FREIGHT_1195
if 
  125@ == 5
goto_if_false @FREIGHT_1220
125@ = 0

:FREIGHT_1220
if 
  125@ == -1
goto_if_false @FREIGHT_1245
125@ = 4

:FREIGHT_1245
gosub @FREIGHT_3321
add_blip_for_coord 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {var_handle} 105@(125@,20i)
if 
  133@ == 0
goto_if_false @FREIGHT_1319
set_var_int_to_lvar_int $burglary_time_to_lockup = 34@(125@,5i)
goto @FREIGHT_1331

:FREIGHT_1319
set_var_int_to_lvar_int $burglary_time_to_lockup = 39@(125@,5i)

:FREIGHT_1331
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_2734
wait 0
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @FREIGHT_1373
goto @FREIGHT_2242

:FREIGHT_1373
if or
  is_char_in_model $scplayer {modelId} 538
  is_char_in_model $scplayer {modelId} 537
goto_if_false @FREIGHT_1442
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_upright $car
goto_if_false @FREIGHT_1435
clear_prints 
clear_help 
goto @FREIGHT_2741

:FREIGHT_1435
goto @FREIGHT_1453

:FREIGHT_1442
clear_prints 
clear_help 
goto @FREIGHT_2741

:FREIGHT_1453
137@ = get_car_speed $car
cset_var_int_to_lvar_float $ft_distance =# 137@
if and
  TIMERB > 3000
  126@ == 0
goto_if_false @FREIGHT_1515
126@ = 1
clear_prints 
print_help 'FREI_03'

:FREIGHT_1515
if and
  TIMERB > 8000
  126@ == 1
goto_if_false @FREIGHT_1603
126@ = 2
clear_prints 
clear_help 
if 
  $ft_speed == 0
goto_if_false @FREIGHT_1588
print_help 'FREI_12'
goto @FREIGHT_1603

:FREIGHT_1588
TIMERB = 18000
126@ = 3

:FREIGHT_1603
if and
  TIMERB > 12000
  126@ == 2
goto_if_false @FREIGHT_1691
126@ = 3
clear_prints 
clear_help 
if 
  $ft_speed == 0
goto_if_false @FREIGHT_1676
print_help 'FREI_13'
goto @FREIGHT_1691

:FREIGHT_1676
TIMERB = 18000
126@ = 3

:FREIGHT_1691
if and
  TIMERB > 16000
  126@ == 3
goto_if_false @FREIGHT_2022
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_1747
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_1747
136@ = 0.0
$burglary_time_to_lockup = 0
136@ = get_distance_between_coords_2d $x {fromY} $y {toX} 45@(125@,20f) {toZ} 65@(125@,20f)
cset_var_int_to_lvar_float $flag_freight_passed_0stime =# 136@
if 
  136@ > 3000.0
goto_if_false @FREIGHT_1835
136@ /= 0.021
goto @FREIGHT_1845

:FREIGHT_1835
136@ /= 0.019

:FREIGHT_1845
if 
  10000.0 > 136@
goto_if_false @FREIGHT_1876
136@ = 10000.0

:FREIGHT_1876
cset_var_int_to_lvar_float $burglary_time_to_lockup =# 136@
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_1910
127@ = 15000

:FREIGHT_1910
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_1935
127@ = 0

:FREIGHT_1935
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_1960
127@ = 0

:FREIGHT_1960
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@
126@ = 4
$ft_speed = 1
display_nth_onscreen_counter_with_string $flag_freight_passed_0stime {display} CounterDisplay.Number {slot} 1 {text} 'FREI_10'
display_nth_onscreen_counter_with_string $ft_distance {display} CounterDisplay.Number {slot} 2 {text} 'FREI_11'
clear_prints 
clear_help 

:FREIGHT_2022
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_2052
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_2052
136@ = get_distance_between_coords_2d $x {fromY} $y {toX} 45@(125@,20f) {toZ} 65@(125@,20f)
cset_var_int_to_lvar_float $flag_freight_passed_0stime =# 136@
if 
  has_train_derailed $car
goto_if_false @FREIGHT_2108
goto @FREIGHT_2787

:FREIGHT_2108
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FREIGHT_2136
clear_prints 
clear_help 
goto @FREIGHT_2741

:FREIGHT_2136
if 
  0 >= $burglary_time_to_lockup
goto_if_false @FREIGHT_2161
goto @FREIGHT_2787

:FREIGHT_2161
if 
  locate_stopped_char_any_means_3d $scplayer {x} 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @FREIGHT_2506
if or
  is_char_in_model $scplayer {modelId} 538
  is_char_in_model $scplayer {modelId} 537
goto_if_false @FREIGHT_2506

:FREIGHT_2242
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_2271
remove_blip 105@(125@,20i)

:FREIGHT_2271
130@ += 1
set_lvar_int_to_var_int 127@ = $burglary_time_to_lockup
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
if 
  130@ == 5
goto_if_false @FREIGHT_2326
goto @FREIGHT_2873

:FREIGHT_2326
if 
  133@ == 0
goto_if_false @FREIGHT_2358
125@ += 1
goto @FREIGHT_2365

:FREIGHT_2358
125@ -= 1

:FREIGHT_2365
if 
  125@ == 5
goto_if_false @FREIGHT_2390
125@ = 0

:FREIGHT_2390
if 
  125@ == -1
goto_if_false @FREIGHT_2415
125@ = 4

:FREIGHT_2415
if 
  127@ > 15000
goto_if_false @FREIGHT_2442
127@ = 15000

:FREIGHT_2442
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 100
mult_int_lvar_by_int_var 128@ *= $ft_train_level
print_with_number_big 'FREI_07' {num} 128@ {duration} 3000 {style} TextStyle.Middle
add_score $player1 {money} 128@
TIMERA = 0
132@ = 1

:FREIGHT_2506
if and
  132@ == 1
  TIMERA > 6000
goto_if_false @FREIGHT_2727
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 1000
print_with_number_big 'FREI_05' {num} 128@ {duration} 4000 {style} TextStyle.WhiteMiddleSmaller
$burglary_time_to_lockup = 0
if 
  133@ == 0
goto_if_false @FREIGHT_2619
set_var_int_to_lvar_int $burglary_time_to_lockup = 34@(125@,5i)
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@
goto @FREIGHT_2639

:FREIGHT_2619
set_var_int_to_lvar_int $burglary_time_to_lockup = 39@(125@,5i)
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@

:FREIGHT_2639
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
display_nth_onscreen_counter_with_string $flag_freight_passed_0stime {display} CounterDisplay.Number {slot} 1 {text} 'FREI_10'
display_nth_onscreen_counter_with_string $ft_distance {display} CounterDisplay.Number {slot} 2 {text} 'FREI_11'
add_blip_for_coord 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {var_handle} 105@(125@,20i)
132@ = 0

:FREIGHT_2727
goto @FREIGHT_1331

:FREIGHT_2734
goto @FREIGHT_2787

:FREIGHT_2741
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
clear_help 
print_big 'FREI_02' {time} 5000 {style} TextStyle.Middle
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
wait 2000
return 

:FREIGHT_2787
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_2816
remove_blip 105@(125@,20i)

:FREIGHT_2816
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
set_camera_behind_player 
restore_camera_jumpcut 
clear_help 
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'FREI_06' {time} 4000 {flag} 1
return 

:FREIGHT_2873
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_3000
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_2944
print_with_number_big 'M_PASS' {num} 50000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 50000
play_mission_passed_tune 2

:FREIGHT_2944
if 
  $freight_remaining == 2
goto_if_false @FREIGHT_2993
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
play_mission_passed_tune 2

:FREIGHT_2993
goto @FREIGHT_3019

:FREIGHT_3000
print_with_number_big 'FREI_15' {num} $ft_train_level {duration} 5000 {style} TextStyle.Middle

:FREIGHT_3019
if and
  $flag_freight_passed_1stime == 0
  $ft_train_level == 1
goto_if_false @FREIGHT_3053
register_oddjob_mission_passed 
$flag_freight_passed_1stime = 1

:FREIGHT_3053
if and
  $freight_remaining == 0
  $ft_train_level == 2
goto_if_false @FREIGHT_3091
register_oddjob_mission_passed 
player_made_progress 1
$freight_remaining = 1

:FREIGHT_3091
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
clear_wanted_level $player1
set_camera_behind_player 
restore_camera_jumpcut 
play_mission_passed_tune 1
if 
  $ft_train_level <> 2
goto_if_false @FREIGHT_3144
$ft_train_level += 1

:FREIGHT_3144
return 

:FREIGHT_3146
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_3175
remove_blip 105@(125@,20i)

:FREIGHT_3175
mark_model_as_no_longer_needed 590
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 537
$onmission = 0
$flag_player_on_freight_mission = 0
clear_wanted_level $player1
clear_onscreen_counter $flag_freight_passed_0stime
clear_onscreen_counter $ft_distance
clear_onscreen_timer $burglary_time_to_lockup
clear_wanted_level $player1
set_wanted_multiplier 1.0
mission_has_finished 
return 
switch_widescreen True
set_player_control $player1 {state} False
return 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:FREIGHT_3295
if 
  get_fading_status 
goto_if_false @FREIGHT_3319
wait 0
goto @FREIGHT_3295

:FREIGHT_3319
return 

:FREIGHT_3321
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:FREIGHT_3336
if 
  get_fading_status 
goto_if_false @FREIGHT_3360
wait 0
goto @FREIGHT_3336

:FREIGHT_3360
return 
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @FREIGHT_3377

:FREIGHT_3377
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @FREIGHT_3392

:FREIGHT_3392
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @FREIGHT_3407

:FREIGHT_3407
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @FREIGHT_3422

:FREIGHT_3422
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @FREIGHT_3458
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_3458
task_die $scplayer

:FREIGHT_3458
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @FREIGHT_3503
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_3503
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:FREIGHT_3503
return 

//-------------Mission 127---------------
// Originally: Pimping Sub-Mission

:PIMP
script_name 'PIMP'
gosub @PIMP_47
if 
  has_deatharrest_been_executed 
goto_if_false @PIMP_38
gosub @PIMP_37353

:PIMP_38
gosub @PIMP_37764
terminate_this_script 

:PIMP_47
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_67
register_mission_given 

:PIMP_67
$flag_player_on_pimp_mission = 1
$onmission = 1
wait 0
wait 0
load_mission_text 'PIMP'
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_138
set_player_control $player1 {state} True

:PIMP_138
541@ = 0
34@ = 0
537@ = 0
538@ = 0
$freight_player_location = 0
514@ = 0
516@ = 0
517@ = 0
520@ = 0
531@ = 0
41@ = 0
42@ = 0
47@ = 0
44@ = 0
46@ = 0
45@ = 0
43@ = 0
48@ = 0
49@ = 0
147@ = 0
52@ = 0
56@ = 0
55@ = 0
511@ = 0
512@ = 0
37@ = 0
521@ = 0
525@ = 0
524@ = 0
523@ = 0
57@ = 1
175@ = 2286.79
203@ = -2312.8359
231@ = 12.557
259@ = 301.0
176@ = 1537.2679
204@ = -2314.27
232@ = 12.5469
260@ = 280.2771
177@ = 2307.9031
205@ = -1998.647
233@ = 12.5529
261@ = 321.3693
178@ = 1239.282
206@ = -1918.819
234@ = 30.3478
262@ = 284.1407
179@ = 1685.3199
207@ = -1585.244
235@ = 12.5469
263@ = 233.3592
180@ = 1749.745
208@ = -1455.778
236@ = 12.5547
264@ = 8.5912
181@ = 1959.5389
209@ = -1452.5601
237@ = 12.5495
265@ = 186.4147
182@ = 1793.708
210@ = -1600.12
238@ = 12.5387
266@ = 74.0619
183@ = 2259.7029
211@ = -1339.907
239@ = 22.9832
267@ = 267.1747
184@ = 2350.009
212@ = -1504.599
240@ = 23.0
268@ = 113.9031
185@ = 2745.374
213@ = -1188.6801
241@ = 68.3986
269@ = 109.0182
186@ = 2833.886
214@ = -1585.979
242@ = 10.086
270@ = 223.6582
187@ = 1282.429
215@ = -1666.13
243@ = 12.5547
271@ = 202.373
188@ = 899.8489
216@ = -1823.877
244@ = 11.2302
272@ = 215.4203
189@ = 447.2084
217@ = -1761.314
245@ = 4.7837
273@ = 230.4552
190@ = 765.7432
218@ = -1541.3199
246@ = 12.5536
274@ = 264.2591
191@ = 1269.592
219@ = -1560.462
247@ = 12.5643
275@ = 186.3764
192@ = 557.9569
220@ = -1509.402
248@ = 13.5557
276@ = 94.5521
193@ = 434.0113
221@ = -1555.667
249@ = 26.5851
277@ = 273.0415
194@ = 403.0965
222@ = -1256.665
250@ = 51.2
278@ = 29.0138
195@ = 1147.13
223@ = -898.4011
251@ = 41.7814
279@ = 234.2193
196@ = 1020.802
224@ = -911.898
252@ = 41.2395
280@ = 222.6945
197@ = 828.6284
225@ = -1056.4449
253@ = 24.2484
281@ = 22.838
198@ = 971.1776
226@ = -1107.744
254@ = 22.8672
282@ = 83.3249
199@ = 1893.3621
227@ = -1741.244
255@ = 12.5468
283@ = 177.218
200@ = 2333.625
228@ = -1764.6591
256@ = 12.5534
284@ = 333.4691
201@ = 1775.942
229@ = -1895.623
257@ = 12.3865
285@ = 248.6633
202@ = 1707.121
230@ = -1804.755
258@ = 12.5391
286@ = 172.0678
287@ = -2020.2729
315@ = 932.0927
343@ = 44.5639
371@ = 221.8539
288@ = -2399.2981
316@ = 1071.83
344@ = 54.7266
372@ = 327.6848
289@ = -2400.6521
317@ = 922.1189
345@ = 44.4453
373@ = 283.5361
290@ = -2301.292
318@ = 1373.105
346@ = 6.1961
374@ = 124.8329
293@ = -2576.948
321@ = 1144.234
349@ = 54.7266
377@ = 124.6449
294@ = -2694.1509
322@ = 1204.6281
350@ = 54.1953
378@ = 357.2611
295@ = -2244.2351
323@ = 643.8406
351@ = 48.4375
379@ = 99.8674
296@ = -1923.351
324@ = 563.4099
352@ = 34.1972
380@ = 44.6685
297@ = -1736.431
325@ = 809.515
353@ = 23.8904
381@ = 333.3014
298@ = -1504.571
326@ = 1083.0
354@ = 6.1846
382@ = 156.5032
299@ = -2400.051
327@ = 556.1022
355@ = 23.8906
383@ = 18.535
300@ = -2490.2549
328@ = 6.0292
356@ = 24.6238
384@ = 56.3408
301@ = -2757.469
329@ = 168.1762
357@ = 6.0408
385@ = 196.6891
302@ = -2779.791
330@ = -319.9682
358@ = 6.1875
386@ = 123.0427
303@ = -2192.0229
331@ = 309.7259
359@ = 34.1172
387@ = 7.9069
304@ = -2195.7891
332@ = 197.3115
360@ = 34.3203
388@ = 9.4354
305@ = -2108.647
333@ = 217.1542
361@ = 34.3045
389@ = 133.6119
306@ = -1545.449
334@ = 560.5441
362@ = 6.1797
390@ = 165.7533
307@ = -2779.8
335@ = -500.7523
363@ = 6.2925
391@ = 37.7744
308@ = -1974.475
336@ = -975.055
364@ = 31.2266
392@ = 138.4206
309@ = -1587.119
337@ = -482.9532
365@ = 5.1484
393@ = 117.5313
310@ = -2838.1121
338@ = 846.8309
366@ = 42.5804
394@ = 288.0701
311@ = -2566.241
339@ = 918.7418
367@ = 63.9765
395@ = 178.9968
312@ = -2601.5911
340@ = 688.1887
368@ = 26.8125
396@ = 34.6082
313@ = -2758.551
341@ = 394.18
369@ = 3.3359
397@ = 315.443
399@ = 2009.313
427@ = 1167.793
455@ = 9.813
483@ = 266.731
400@ = 1959.998
428@ = 945.6432
456@ = 9.8203
484@ = 225.7712
401@ = 2202.7371
429@ = 1254.45
457@ = 9.8203
485@ = 110.1904
402@ = 2186.8401
430@ = 998.9764
458@ = 9.8203
486@ = 202.3453
403@ = 2031.976
431@ = 1539.9
459@ = 9.8203
487@ = 224.9353
404@ = 2139.4619
432@ = 1516.045
460@ = 9.8203
488@ = 351.7
405@ = 2150.364
433@ = 1675.969
461@ = 9.8203
489@ = 217.8727
406@ = 1939.55
434@ = 1389.756
462@ = 8.2578
490@ = 271.8136
407@ = 2595.79
435@ = 1793.637
463@ = 9.9692
491@ = 105.7608
408@ = 2185.686
436@ = 1885.912
464@ = 9.8203
492@ = 4.9185
409@ = 2159.8911
437@ = 1931.016
465@ = 9.8203
493@ = 94.0854
410@ = 2057.374
438@ = 1957.522
466@ = 10.7324
494@ = 218.8441
411@ = 2181.532
439@ = 2353.4839
467@ = 9.8203
495@ = 186.4606
412@ = 2437.6069
440@ = 2376.5811
468@ = 9.8203
496@ = 87.5329
413@ = 2335.3911
441@ = 2076.146
469@ = 9.8125
497@ = 261.0065
414@ = 2217.564
442@ = 1787.844
470@ = 9.8203
498@ = 36.1247
415@ = 1540.7321
443@ = 748.3782
471@ = 9.8203
499@ = 259.5982
416@ = 1011.96
444@ = 1104.625
472@ = 9.8203
500@ = 4.436
417@ = 1723.9041
445@ = 1541.124
473@ = 9.8203
501@ = 317.5323
418@ = 1958.822
446@ = 706.9632
474@ = 9.8199
502@ = 216.0597
$pimp_bikeostimer = 180000
clear_area 1918.988 {y} -1791.854 {z} 12.3828 {radius} 30.0 {clearParticles} False
set_char_cant_be_dragged_out $scplayer {state} True
if 
  not is_player_playing $player1
goto_if_false @PIMP_3339
goto @PIMP_37353

:PIMP_3339
if 
  is_char_in_any_car $scplayer
goto_if_false @PIMP_3370
40@ = store_car_char_is_in $scplayer
goto @PIMP_3377

:PIMP_3370
goto @PIMP_37353

:PIMP_3377
if 
  not is_car_dead 40@
goto_if_false @PIMP_3401
set_car_health 40@ {health} 2000

:PIMP_3401
518@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Like {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
get_random_char_in_zone 'BLUFF' {civilian} True {gang} False {criminalOrProstitute} True {var_handle} 35@(37@,2i)
delete_char 35@(37@,2i)
get_random_char_in_zone 'BLUFF' {civilian} True {gang} False {criminalOrProstitute} True {var_handle} 91@(51@,28i)
delete_char 91@(51@,28i)
if 
  47@ == -13
goto_if_false @PIMP_3505
clear_onscreen_timer $pimp_bikeostimer

:PIMP_3505
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_3529
531@ = get_city_player_is_in $player1

:PIMP_3529
if 
  not is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_3749
if 
  not is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_3749
if 
  not is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_3749
532@, 533@, 534@ = get_char_coordinates $scplayer
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 200@ {toY} 228@ {toZ} 256@
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 1
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 287@ {toY} 315@ {toZ} 343@
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3692
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 2

:PIMP_3692
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 399@ {toY} 427@ {toZ} 455@
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3749
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 3

:PIMP_3749
wait 0
if 
  541@ == 1
goto_if_false @PIMP_3791
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 36200
541@ = 2

:PIMP_3791
if 
  541@ == 2
goto_if_false @PIMP_3831
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @PIMP_3831
541@ = 3

:PIMP_3831
if 
  537@ == 1
goto_if_false @PIMP_3892
if 
  1 > $pimp_bikeostimer
goto_if_false @PIMP_3892
clear_prints 
print_now 'PIMP_92' {time} 6000 {flag} 1
goto @PIMP_37353

:PIMP_3892
if 
  537@ == 2
goto_if_false @PIMP_3953
if 
  1 > $pimp_bikeostimer
goto_if_false @PIMP_3953
clear_prints 
print_now 'PIMP_91' {time} 6000 {flag} 1
goto @PIMP_37353

:PIMP_3953
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @PIMP_3978
$pimp_bikeostimer += 60000

:PIMP_3978
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @PIMP_4001
$pimp_bikeostimer -= 30000

:PIMP_4001
if 
  not is_player_playing $player1
goto_if_false @PIMP_4024
goto @PIMP_37353

:PIMP_4024
if 
  is_car_dead 40@
goto_if_false @PIMP_4047
goto @PIMP_37353

:PIMP_4047
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @PIMP_4069
alter_wanted_level $player1 {wantedLevel} 2

:PIMP_4069
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @PIMP_4091
alter_wanted_level $player1 {wantedLevel} 0

:PIMP_4091
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @PIMP_4302
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4295
clear_small_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
if 
  not is_char_dead 35@
goto_if_false @PIMP_4222
if 
  not is_car_dead 40@
goto_if_false @PIMP_4217
if 
  is_char_sitting_in_car 35@ {vehicle} 40@
goto_if_false @PIMP_4217
clear_char_tasks 35@
task_leave_any_car 35@

:PIMP_4217
mark_char_as_no_longer_needed 35@

:PIMP_4222
if 
  not is_char_dead 36@
goto_if_false @PIMP_4288
if 
  not is_car_dead 40@
goto_if_false @PIMP_4283
if 
  is_char_sitting_in_car 36@ {vehicle} 40@
goto_if_false @PIMP_4283
clear_char_tasks 36@
task_leave_any_car 36@

:PIMP_4283
mark_char_as_no_longer_needed 36@

:PIMP_4288
goto @PIMP_37214

:PIMP_4295
goto @PIMP_4483

:PIMP_4302
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4483
clear_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
if 
  not is_char_dead 35@
goto_if_false @PIMP_4410
if 
  not is_car_dead 40@
goto_if_false @PIMP_4405
if 
  is_char_sitting_in_car 35@ {vehicle} 40@
goto_if_false @PIMP_4405
clear_char_tasks 35@
task_leave_any_car 35@

:PIMP_4405
mark_char_as_no_longer_needed 35@

:PIMP_4410
if 
  not is_char_dead 36@
goto_if_false @PIMP_4476
if 
  not is_car_dead 40@
goto_if_false @PIMP_4471
if 
  is_char_sitting_in_car 36@ {vehicle} 40@
goto_if_false @PIMP_4471
clear_char_tasks 36@
task_leave_any_car 36@

:PIMP_4471
mark_char_as_no_longer_needed 36@

:PIMP_4476
goto @PIMP_37214

:PIMP_4483
530@ = 0

:PIMP_4490
if 
  28 > 530@
goto_if_false @PIMP_4653
if 
  119@(530@,28i) == 1
goto_if_false @PIMP_4639
if 
  does_char_exist 91@(530@,28i)
goto_if_false @PIMP_4639
if 
  has_char_been_damaged_by_char 91@(530@,28i) {handle} $scplayer
goto_if_false @PIMP_4596
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_4596
if 
  is_char_dead 91@(530@,28i)
goto_if_false @PIMP_4639
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_4639
530@ += 1
goto @PIMP_4490

:PIMP_4653
if 
  516@ == 0
goto_if_false @PIMP_4739
if 
  not is_car_dead 40@
goto_if_false @PIMP_4739
if 
goto_if_false @PIMP_4739
TIMERB = 0
517@ = 1
set_lvar_int_to_var_int 515@ = $pimp_bikeostimer
515@ /= 1000
516@ = 1
clear_prints 
clear_help 

:PIMP_4739
if 
  516@ == 1
goto_if_false @PIMP_4822
if 
  not is_car_dead 40@
goto_if_false @PIMP_4822
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_4822
TIMERB = 0
516@ = 0
517@ = 0
538@ = 0
clear_prints 

:PIMP_4822
if 
  517@ == 1
goto_if_false @PIMP_5105
set_lvar_int_to_lvar_int 514@ = TIMERB
514@ /= 1000
if 
  538@ == 0
goto_if_false @PIMP_4907
if and
  21000 > $pimp_bikeostimer
  $pimp_bikeostimer > 1
goto_if_false @PIMP_4907
538@ = 1

:PIMP_4907
if 
  538@ == 0
goto_if_false @PIMP_4951
if 
  $pimp_bikeostimer > 20099
goto_if_false @PIMP_4951
538@ = 2

:PIMP_4951
if 
  538@ == 1
goto_if_false @PIMP_4985
set_var_int_to_var_int $freight_player_location = $pimp_bikeostimer
$freight_player_location /= 1000

:PIMP_4985
if 
  538@ == 2
goto_if_false @PIMP_5018
$freight_player_location = 20
sub_int_lvar_from_int_var $freight_player_location -= 514@

:PIMP_5018
clear_prints 
if 
  $freight_player_location > 0
goto_if_false @PIMP_5061
add_next_message_to_previous_briefs False
print_with_number_now 'PIMP_1' {num} $freight_player_location {duration} 4000 {flag} 1

:PIMP_5061
if 
  TIMERB > 21000
goto_if_false @PIMP_5105
clear_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
goto @PIMP_37353

:PIMP_5105
if 
  41@ == -13
goto_if_false @PIMP_5180
create_char PedType.Prostitute {modelId} 152 {x} 1954.348 {y} -1867.1639 {z} 12.5391 {var_handle} 35@(37@,2i)
88@ = add_blip_for_char 35@(37@,2i)
89@ = add_blip_for_char $scplayer
90@ = add_blip_for_char $scplayer

:PIMP_5180
if 
  41@ == 0
goto_if_false @PIMP_5212
gosub @PIMP_35616
41@ = 1

:PIMP_5212
if 
  41@ == 1
goto_if_false @PIMP_11844
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_7621
request_model 63
request_model 64

:PIMP_5256
if or
  not has_model_loaded 63
  not has_model_loaded 64
goto_if_false @PIMP_5286
wait 0
goto @PIMP_5256

:PIMP_5286
if 
  42@ == 0
goto_if_false @PIMP_5370
if 
  is_char_in_zone $scplayer {zone} 'IWD'
goto_if_false @PIMP_5370
create_char PedType.Prostitute {modelId} 64 {x} 202@ {y} 230@ {z} 258@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 286@
gosub @PIMP_35488

:PIMP_5370
if 
  42@ == 0
goto_if_false @PIMP_5454
if 
  is_char_in_zone $scplayer {zone} 'GAN'
goto_if_false @PIMP_5454
create_char PedType.Prostitute {modelId} 64 {x} 201@ {y} 229@ {z} 257@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 285@
gosub @PIMP_35488

:PIMP_5454
if 
  42@ == 0
goto_if_false @PIMP_5538
if 
  is_char_in_zone $scplayer {zone} 'ELCO'
goto_if_false @PIMP_5538
create_char PedType.Prostitute {modelId} 63 {x} 200@ {y} 228@ {z} 256@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 284@
gosub @PIMP_35488

:PIMP_5538
if 
  42@ == 0
goto_if_false @PIMP_5622
if 
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_5622
create_char PedType.Prostitute {modelId} 63 {x} 199@ {y} 227@ {z} 255@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 283@
gosub @PIMP_35488

:PIMP_5622
if 
  42@ == 0
goto_if_false @PIMP_5706
if 
  is_char_in_zone $scplayer {zone} 'LDOC'
goto_if_false @PIMP_5706
create_char PedType.Prostitute {modelId} 63 {x} 176@ {y} 204@ {z} 232@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 260@
gosub @PIMP_35488

:PIMP_5706
if 
  42@ == 0
goto_if_false @PIMP_5790
if 
  is_char_in_zone $scplayer {zone} 'LAIR'
goto_if_false @PIMP_5790
create_char PedType.Prostitute {modelId} 63 {x} 177@ {y} 205@ {z} 233@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 261@
gosub @PIMP_35488

:PIMP_5790
if 
  42@ == 0
goto_if_false @PIMP_5874
if 
  is_char_in_zone $scplayer {zone} 'LIND'
goto_if_false @PIMP_5874
create_char PedType.Prostitute {modelId} 64 {x} 175@ {y} 203@ {z} 231@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 259@
gosub @PIMP_35488

:PIMP_5874
if 
  42@ == 0
goto_if_false @PIMP_5958
if 
  is_char_in_zone $scplayer {zone} 'BLUF'
goto_if_false @PIMP_5958
create_char PedType.Prostitute {modelId} 64 {x} 176@ {y} 204@ {z} 232@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 260@
gosub @PIMP_35488

:PIMP_5958
if 
  42@ == 0
goto_if_false @PIMP_6042
if 
  is_char_in_zone $scplayer {zone} 'COM'
goto_if_false @PIMP_6042
create_char PedType.Prostitute {modelId} 64 {x} 180@ {y} 208@ {z} 236@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 264@
gosub @PIMP_35488

:PIMP_6042
if 
  42@ == 0
goto_if_false @PIMP_6126
if 
  is_char_in_zone $scplayer {zone} 'LDT'
goto_if_false @PIMP_6126
create_char PedType.Prostitute {modelId} 64 {x} 179@ {y} 207@ {z} 235@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 263@
gosub @PIMP_35488

:PIMP_6126
if 
  42@ == 0
goto_if_false @PIMP_6210
if 
  is_char_in_zone $scplayer {zone} 'GLN'
goto_if_false @PIMP_6210
create_char PedType.Prostitute {modelId} 64 {x} 182@ {y} 210@ {z} 238@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 266@
gosub @PIMP_35488

:PIMP_6210
if 
  42@ == 0
goto_if_false @PIMP_6294
if 
  is_char_in_zone $scplayer {zone} 'CHC'
goto_if_false @PIMP_6294
create_char PedType.Prostitute {modelId} 63 {x} 181@ {y} 209@ {z} 237@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 265@
gosub @PIMP_35488

:PIMP_6294
if 
  42@ == 0
goto_if_false @PIMP_6378
if 
  is_char_in_zone $scplayer {zone} 'JEF'
goto_if_false @PIMP_6378
create_char PedType.Prostitute {modelId} 64 {x} 184@ {y} 212@ {z} 240@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 268@
gosub @PIMP_35488

:PIMP_6378
if 
  42@ == 0
goto_if_false @PIMP_6462
if 
  is_char_in_zone $scplayer {zone} 'ELS'
goto_if_false @PIMP_6462
create_char PedType.Prostitute {modelId} 63 {x} 183@ {y} 211@ {z} 239@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 267@
gosub @PIMP_35488

:PIMP_6462
if 
  42@ == 0
goto_if_false @PIMP_6546
if 
  is_char_in_zone $scplayer {zone} 'LFL'
goto_if_false @PIMP_6546
create_char PedType.Prostitute {modelId} 63 {x} 186@ {y} 214@ {z} 242@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 270@
gosub @PIMP_35488

:PIMP_6546
if 
  42@ == 0
goto_if_false @PIMP_6630
if 
  is_char_in_zone $scplayer {zone} 'EBE'
goto_if_false @PIMP_6630
create_char PedType.Prostitute {modelId} 64 {x} 185@ {y} 213@ {z} 241@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 269@
gosub @PIMP_35488

:PIMP_6630
if 
  42@ == 0
goto_if_false @PIMP_6714
if 
  is_char_in_zone $scplayer {zone} 'CONF'
goto_if_false @PIMP_6714
create_char PedType.Prostitute {modelId} 63 {x} 188@ {y} 216@ {z} 244@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 272@
gosub @PIMP_35488

:PIMP_6714
if 
  42@ == 0
goto_if_false @PIMP_6798
if 
  is_char_in_zone $scplayer {zone} 'VERO'
goto_if_false @PIMP_6798
create_char PedType.Prostitute {modelId} 63 {x} 187@ {y} 215@ {z} 243@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 271@
gosub @PIMP_35488

:PIMP_6798
if 
  42@ == 0
goto_if_false @PIMP_6882
if 
  is_char_in_zone $scplayer {zone} 'MKT'
goto_if_false @PIMP_6882
create_char PedType.Prostitute {modelId} 63 {x} 190@ {y} 218@ {z} 246@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 274@
gosub @PIMP_35488

:PIMP_6882
if 
  42@ == 0
goto_if_false @PIMP_6966
if 
  is_char_in_zone $scplayer {zone} 'MAR'
goto_if_false @PIMP_6966
create_char PedType.Prostitute {modelId} 63 {x} 189@ {y} 217@ {z} 245@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 273@
gosub @PIMP_35488

:PIMP_6966
if 
  42@ == 0
goto_if_false @PIMP_7050
if 
  is_char_in_zone $scplayer {zone} 'SMB'
goto_if_false @PIMP_7050
create_char PedType.Prostitute {modelId} 63 {x} 190@ {y} 218@ {z} 246@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 274@
gosub @PIMP_35488

:PIMP_7050
if 
  42@ == 0
goto_if_false @PIMP_7134
if 
  is_char_in_zone $scplayer {zone} 'PLS'
goto_if_false @PIMP_7134
create_char PedType.Prostitute {modelId} 64 {x} 193@ {y} 221@ {z} 249@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 277@
gosub @PIMP_35488

:PIMP_7134
if 
  42@ == 0
goto_if_false @PIMP_7218
if 
  is_char_in_zone $scplayer {zone} 'ROD'
goto_if_false @PIMP_7218
create_char PedType.Prostitute {modelId} 63 {x} 194@ {y} 222@ {z} 250@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 278@
gosub @PIMP_35488

:PIMP_7218
if 
  42@ == 0
goto_if_false @PIMP_7302
if 
  is_char_in_zone $scplayer {zone} 'RIH'
goto_if_false @PIMP_7302
create_char PedType.Prostitute {modelId} 63 {x} 192@ {y} 220@ {z} 248@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 276@
gosub @PIMP_35488

:PIMP_7302
if 
  42@ == 0
goto_if_false @PIMP_7386
if 
  is_char_in_zone $scplayer {zone} 'VIN'
goto_if_false @PIMP_7386
create_char PedType.Prostitute {modelId} 63 {x} 195@ {y} 223@ {z} 251@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 279@
gosub @PIMP_35488

:PIMP_7386
if 
  42@ == 0
goto_if_false @PIMP_7470
if 
  is_char_in_zone $scplayer {zone} 'MUL'
goto_if_false @PIMP_7470
create_char PedType.Prostitute {modelId} 63 {x} 198@ {y} 226@ {z} 254@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 282@
gosub @PIMP_35488

:PIMP_7470
if 
  42@ == 0
goto_if_false @PIMP_7554
if 
  is_char_in_zone $scplayer {zone} 'SUN'
goto_if_false @PIMP_7554
create_char PedType.Prostitute {modelId} 64 {x} 196@ {y} 224@ {z} 252@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 280@
gosub @PIMP_35488

:PIMP_7554
if 
  42@ == 0
goto_if_false @PIMP_7613
create_char PedType.Prostitute {modelId} 64 {x} 180@ {y} 208@ {z} 236@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 264@
gosub @PIMP_35488

:PIMP_7613
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 64

:PIMP_7621
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_10028
request_model 75
request_model 152

:PIMP_7648
if or
  not has_model_loaded 75
  not has_model_loaded 152
goto_if_false @PIMP_7679
wait 0
goto @PIMP_7648

:PIMP_7679
if 
  42@ == 0
goto_if_false @PIMP_7764
if 
  is_char_in_zone $scplayer {zone} 'CALT'
goto_if_false @PIMP_7764
create_char PedType.Prostitute {modelId} 152 {x} 288@ {y} 316@ {z} 344@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 372@
gosub @PIMP_35488

:PIMP_7764
if 
  42@ == 0
goto_if_false @PIMP_7848
if 
  is_char_in_zone $scplayer {zone} 'JUNIHO'
goto_if_false @PIMP_7848
create_char PedType.Prostitute {modelId} 75 {x} 287@ {y} 315@ {z} 343@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 371@
gosub @PIMP_35488

:PIMP_7848
if 
  42@ == 0
goto_if_false @PIMP_7932
if 
  is_char_in_zone $scplayer {zone} 'ESPN'
goto_if_false @PIMP_7932
create_char PedType.Prostitute {modelId} 75 {x} 289@ {y} 317@ {z} 345@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 373@
gosub @PIMP_35488

:PIMP_7932
if 
  42@ == 0
goto_if_false @PIMP_8017
if 
  is_char_in_zone $scplayer {zone} 'JUNIHI'
goto_if_false @PIMP_8017
create_char PedType.Prostitute {modelId} 152 {x} 290@ {y} 318@ {z} 346@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 374@
gosub @PIMP_35488

:PIMP_8017
if 
  42@ == 0
goto_if_false @PIMP_8102
if 
  is_char_in_zone $scplayer {zone} 'SUNMA'
goto_if_false @PIMP_8102
create_char PedType.Prostitute {modelId} 152 {x} 292@ {y} 320@ {z} 348@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 376@
gosub @PIMP_35488

:PIMP_8102
if 
  42@ == 0
goto_if_false @PIMP_8186
if 
  is_char_in_zone $scplayer {zone} 'SUNNN'
goto_if_false @PIMP_8186
create_char PedType.Prostitute {modelId} 75 {x} 291@ {y} 319@ {z} 347@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 375@
gosub @PIMP_35488

:PIMP_8186
if 
  42@ == 0
goto_if_false @PIMP_8270
if 
  is_char_in_zone $scplayer {zone} 'BATTP'
goto_if_false @PIMP_8270
create_char PedType.Prostitute {modelId} 75 {x} 294@ {y} 322@ {z} 350@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 378@
gosub @PIMP_35488

:PIMP_8270
if 
  42@ == 0
goto_if_false @PIMP_8355
if 
  is_char_in_zone $scplayer {zone} 'GANTB'
goto_if_false @PIMP_8355
create_char PedType.Prostitute {modelId} 152 {x} 293@ {y} 321@ {z} 349@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 377@
gosub @PIMP_35488

:PIMP_8355
if 
  42@ == 0
goto_if_false @PIMP_8440
if 
  is_char_in_zone $scplayer {zone} 'CHINA'
goto_if_false @PIMP_8440
create_char PedType.Prostitute {modelId} 152 {x} 296@ {y} 324@ {z} 352@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 380@
gosub @PIMP_35488

:PIMP_8440
if 
  42@ == 0
goto_if_false @PIMP_8524
if 
  is_char_in_zone $scplayer {zone} 'SFDWT'
goto_if_false @PIMP_8524
create_char PedType.Prostitute {modelId} 75 {x} 295@ {y} 323@ {z} 351@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 379@
gosub @PIMP_35488

:PIMP_8524
if 
  42@ == 0
goto_if_false @PIMP_8608
if 
  is_char_in_zone $scplayer {zone} 'FINA'
goto_if_false @PIMP_8608
create_char PedType.Prostitute {modelId} 75 {x} 298@ {y} 326@ {z} 354@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 382@
gosub @PIMP_35488

:PIMP_8608
if 
  42@ == 0
goto_if_false @PIMP_8693
if 
  is_char_in_zone $scplayer {zone} 'ESPE'
goto_if_false @PIMP_8693
create_char PedType.Prostitute {modelId} 152 {x} 297@ {y} 325@ {z} 353@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 381@
gosub @PIMP_35488

:PIMP_8693
if 
  42@ == 0
goto_if_false @PIMP_8778
if 
  is_char_in_zone $scplayer {zone} 'WESTP'
goto_if_false @PIMP_8778
create_char PedType.Prostitute {modelId} 152 {x} 300@ {y} 328@ {z} 356@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 384@
gosub @PIMP_35488

:PIMP_8778
if 
  42@ == 0
goto_if_false @PIMP_8862
if 
  is_char_in_zone $scplayer {zone} 'HASH'
goto_if_false @PIMP_8862
create_char PedType.Prostitute {modelId} 75 {x} 299@ {y} 327@ {z} 355@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 383@
gosub @PIMP_35488

:PIMP_8862
if 
  42@ == 0
goto_if_false @PIMP_8947
if 
  is_char_in_zone $scplayer {zone} 'OCEAF'
goto_if_false @PIMP_8947
create_char PedType.Prostitute {modelId} 152 {x} 302@ {y} 330@ {z} 358@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 386@
gosub @PIMP_35488

:PIMP_8947
if 
  42@ == 0
goto_if_false @PIMP_9031
if 
  is_char_in_zone $scplayer {zone} 'CUNTC'
goto_if_false @PIMP_9031
create_char PedType.Prostitute {modelId} 75 {x} 301@ {y} 329@ {z} 357@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 385@
gosub @PIMP_35488

:PIMP_9031
if 
  42@ == 0
goto_if_false @PIMP_9116
if 
  is_char_in_zone $scplayer {zone} 'THEA'
goto_if_false @PIMP_9116
create_char PedType.Prostitute {modelId} 152 {x} 304@ {y} 332@ {z} 360@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 388@
gosub @PIMP_35488

:PIMP_9116
if 
  42@ == 0
goto_if_false @PIMP_9200
if 
  is_char_in_zone $scplayer {zone} 'GARC'
goto_if_false @PIMP_9200
create_char PedType.Prostitute {modelId} 75 {x} 303@ {y} 331@ {z} 359@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 387@
gosub @PIMP_35488

:PIMP_9200
if 
  42@ == 0
goto_if_false @PIMP_9285
if 
  is_char_in_zone $scplayer {zone} 'DOH'
goto_if_false @PIMP_9285
create_char PedType.Prostitute {modelId} 152 {x} 306@ {y} 334@ {z} 362@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 390@
gosub @PIMP_35488

:PIMP_9285
if 
  42@ == 0
goto_if_false @PIMP_9369
if 
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @PIMP_9369
create_char PedType.Prostitute {modelId} 75 {x} 305@ {y} 333@ {z} 361@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 389@
gosub @PIMP_35488

:PIMP_9369
if 
  42@ == 0
goto_if_false @PIMP_9453
if 
  is_char_in_zone $scplayer {zone} 'HILLP'
goto_if_false @PIMP_9453
create_char PedType.Prostitute {modelId} 75 {x} 308@ {y} 336@ {z} 364@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 392@
gosub @PIMP_35488

:PIMP_9453
if 
  42@ == 0
goto_if_false @PIMP_9538
if 
  is_char_in_zone $scplayer {zone} 'SILLY'
goto_if_false @PIMP_9538
create_char PedType.Prostitute {modelId} 152 {x} 309@ {y} 337@ {z} 365@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 393@
gosub @PIMP_35488

:PIMP_9538
if 
  42@ == 0
goto_if_false @PIMP_9622
if 
  is_char_in_zone $scplayer {zone} 'SFAIR'
goto_if_false @PIMP_9622
create_char PedType.Prostitute {modelId} 75 {x} 307@ {y} 335@ {z} 363@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 391@
gosub @PIMP_35488

:PIMP_9622
if 
  42@ == 0
goto_if_false @PIMP_9706
if 
  is_char_in_zone $scplayer {zone} 'BAYV'
goto_if_false @PIMP_9706
create_char PedType.Prostitute {modelId} 75 {x} 311@ {y} 339@ {z} 367@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 395@
gosub @PIMP_35488

:PIMP_9706
if 
  42@ == 0
goto_if_false @PIMP_9791
if 
  is_char_in_zone $scplayer {zone} 'PARA'
goto_if_false @PIMP_9791
create_char PedType.Prostitute {modelId} 152 {x} 310@ {y} 338@ {z} 366@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 394@
gosub @PIMP_35488

:PIMP_9791
if 
  42@ == 0
goto_if_false @PIMP_9876
if 
  is_char_in_zone $scplayer {zone} 'CIVI'
goto_if_false @PIMP_9876
create_char PedType.Prostitute {modelId} 152 {x} 313@ {y} 341@ {z} 369@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 397@
gosub @PIMP_35488

:PIMP_9876
if 
  42@ == 0
goto_if_false @PIMP_9960
if 
  is_char_in_zone $scplayer {zone} 'CITYS'
goto_if_false @PIMP_9960
create_char PedType.Prostitute {modelId} 75 {x} 312@ {y} 340@ {z} 368@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 396@
gosub @PIMP_35488

:PIMP_9960
if 
  42@ == 0
goto_if_false @PIMP_10019
create_char PedType.Prostitute {modelId} 75 {x} 287@ {y} 315@ {z} 343@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 371@
gosub @PIMP_35488

:PIMP_10019
mark_model_as_no_longer_needed 75
mark_model_as_no_longer_needed 152

:PIMP_10028
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_11844
request_model 85
request_model 245

:PIMP_10055
if or
  not has_model_loaded 85
  not has_model_loaded 245
goto_if_false @PIMP_10086
wait 0
goto @PIMP_10055

:PIMP_10086
if 
  42@ == 0
goto_if_false @PIMP_10170
if 
  is_char_in_zone $scplayer {zone} 'PINK'
goto_if_false @PIMP_10170
create_char PedType.Prostitute {modelId} 85 {x} 400@ {y} 428@ {z} 456@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 484@
gosub @PIMP_35488

:PIMP_10170
if 
  42@ == 0
goto_if_false @PIMP_10254
if 
  is_char_in_zone $scplayer {zone} 'DRAG'
goto_if_false @PIMP_10254
create_char PedType.Prostitute {modelId} 85 {x} 399@ {y} 427@ {z} 455@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 483@
gosub @PIMP_35488

:PIMP_10254
if 
  42@ == 0
goto_if_false @PIMP_10339
if 
  is_char_in_zone $scplayer {zone} 'CAM'
goto_if_false @PIMP_10339
create_char PedType.Prostitute {modelId} 245 {x} 402@ {y} 430@ {z} 458@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 486@
gosub @PIMP_35488

:PIMP_10339
if 
  42@ == 0
goto_if_false @PIMP_10424
if 
  is_char_in_zone $scplayer {zone} 'LOT'
goto_if_false @PIMP_10424
create_char PedType.Prostitute {modelId} 245 {x} 401@ {y} 429@ {z} 457@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 485@
gosub @PIMP_35488

:PIMP_10424
if 
  42@ == 0
goto_if_false @PIMP_10508
if 
  is_char_in_zone $scplayer {zone} 'PIRA'
goto_if_false @PIMP_10508
create_char PedType.Prostitute {modelId} 85 {x} 404@ {y} 432@ {z} 460@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 488@
gosub @PIMP_35488

:PIMP_10508
if 
  42@ == 0
goto_if_false @PIMP_10592
if 
  is_char_in_zone $scplayer {zone} 'ROY'
goto_if_false @PIMP_10592
create_char PedType.Prostitute {modelId} 85 {x} 403@ {y} 431@ {z} 459@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 487@
gosub @PIMP_35488

:PIMP_10592
if 
  42@ == 0
goto_if_false @PIMP_10677
if 
  is_char_in_zone $scplayer {zone} 'CALI'
goto_if_false @PIMP_10677
create_char PedType.Prostitute {modelId} 245 {x} 406@ {y} 434@ {z} 462@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 490@
gosub @PIMP_35488

:PIMP_10677
if 
  42@ == 0
goto_if_false @PIMP_10762
if 
  is_char_in_zone $scplayer {zone} 'HIGH'
goto_if_false @PIMP_10762
create_char PedType.Prostitute {modelId} 245 {x} 405@ {y} 433@ {z} 461@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 489@
gosub @PIMP_35488

:PIMP_10762
if 
  42@ == 0
goto_if_false @PIMP_10846
if 
  is_char_in_zone $scplayer {zone} 'PILG'
goto_if_false @PIMP_10846
create_char PedType.Prostitute {modelId} 85 {x} 408@ {y} 436@ {z} 464@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 492@
gosub @PIMP_35488

:PIMP_10846
if 
  42@ == 0
goto_if_false @PIMP_10930
if 
  is_char_in_zone $scplayer {zone} 'STAR'
goto_if_false @PIMP_10930
create_char PedType.Prostitute {modelId} 85 {x} 407@ {y} 435@ {z} 463@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 491@
gosub @PIMP_35488

:PIMP_10930
if 
  42@ == 0
goto_if_false @PIMP_11015
if 
  is_char_in_zone $scplayer {zone} 'STRIP'
goto_if_false @PIMP_11015
create_char PedType.Prostitute {modelId} 245 {x} 410@ {y} 438@ {z} 466@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 494@
gosub @PIMP_35488

:PIMP_11015
if 
  42@ == 0
goto_if_false @PIMP_11100
if 
  is_char_in_zone $scplayer {zone} 'VISA'
goto_if_false @PIMP_11100
create_char PedType.Prostitute {modelId} 245 {x} 409@ {y} 437@ {z} 465@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 493@
gosub @PIMP_35488

:PIMP_11100
if 
  42@ == 0
goto_if_false @PIMP_11184
if 
  is_char_in_zone $scplayer {zone} 'ISLE'
goto_if_false @PIMP_11184
create_char PedType.Prostitute {modelId} 85 {x} 412@ {y} 440@ {z} 468@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 496@
gosub @PIMP_35488

:PIMP_11184
if 
  42@ == 0
goto_if_false @PIMP_11268
if 
  is_char_in_zone $scplayer {zone} 'ROCE'
goto_if_false @PIMP_11268
create_char PedType.Prostitute {modelId} 85 {x} 411@ {y} 439@ {z} 467@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 495@
gosub @PIMP_35488

:PIMP_11268
if 
  42@ == 0
goto_if_false @PIMP_11353
if 
  is_char_in_zone $scplayer {zone} 'OVS'
goto_if_false @PIMP_11353
create_char PedType.Prostitute {modelId} 245 {x} 414@ {y} 442@ {z} 470@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 498@
gosub @PIMP_35488

:PIMP_11353
if 
  42@ == 0
goto_if_false @PIMP_11438
if 
  is_char_in_zone $scplayer {zone} 'RING'
goto_if_false @PIMP_11438
create_char PedType.Prostitute {modelId} 245 {x} 413@ {y} 441@ {z} 469@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 497@
gosub @PIMP_35488

:PIMP_11438
if 
  42@ == 0
goto_if_false @PIMP_11522
if 
  is_char_in_zone $scplayer {zone} 'BFC'
goto_if_false @PIMP_11522
create_char PedType.Prostitute {modelId} 85 {x} 416@ {y} 444@ {z} 472@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 500@
gosub @PIMP_35488

:PIMP_11522
if 
  42@ == 0
goto_if_false @PIMP_11606
if 
  is_char_in_zone $scplayer {zone} 'GGC'
goto_if_false @PIMP_11606
create_char PedType.Prostitute {modelId} 85 {x} 415@ {y} 443@ {z} 471@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 499@
gosub @PIMP_35488

:PIMP_11606
if 
  42@ == 0
goto_if_false @PIMP_11691
if 
  is_char_in_zone $scplayer {zone} 'VAIR'
goto_if_false @PIMP_11691
create_char PedType.Prostitute {modelId} 245 {x} 418@ {y} 446@ {z} 474@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 502@
gosub @PIMP_35488

:PIMP_11691
if 
  42@ == 0
goto_if_false @PIMP_11776
if 
  is_char_in_zone $scplayer {zone} 'LDM'
goto_if_false @PIMP_11776
create_char PedType.Prostitute {modelId} 245 {x} 417@ {y} 445@ {z} 473@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 501@
gosub @PIMP_35488

:PIMP_11776
if 
  42@ == 0
goto_if_false @PIMP_11835
create_char PedType.Prostitute {modelId} 85 {x} 399@ {y} 427@ {z} 455@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 483@
gosub @PIMP_35488

:PIMP_11835
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 245

:PIMP_11844
if 
  42@ == 1
goto_if_false @PIMP_12059
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12059
task_stand_still 35@(37@,2i) {time} -1
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_char_decision_maker 35@(37@,2i) {handleOrTemplate} 518@
set_char_only_damaged_by_player 35@(37@,2i) {state} True
set_char_cant_be_dragged_out 35@(37@,2i) {state} True
set_blip_as_friendly 88@ {state} True
if 
  37@ == 0
goto_if_false @PIMP_11998
clear_prints 
print_now 'PIMP_2' {time} 6000 {flag} 1
set_char_cant_be_dragged_out 35@(37@,2i) {state} True

:PIMP_11998
if 
  37@ == 1
goto_if_false @PIMP_12045
clear_prints 
print_now 'PIMP_30' {time} 6000 {flag} 1
set_char_cant_be_dragged_out 35@(37@,2i) {state} True

:PIMP_12045
42@ = 2
43@ = 1

:PIMP_12059
if 
  43@ == 1
goto_if_false @PIMP_12205
if 
  does_char_exist 35@
goto_if_false @PIMP_12132
if 
  is_char_dead 35@
goto_if_false @PIMP_12132
print_now 'PIMP_51' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_12132
if 
  52@ == 1
goto_if_false @PIMP_12205
if 
  does_char_exist 36@
goto_if_false @PIMP_12205
if 
  is_char_dead 36@
goto_if_false @PIMP_12205
print_now 'PIMP_51' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_12205
if 
  42@ == 2
goto_if_false @PIMP_12847
if 
  523@ == 1
goto_if_false @PIMP_12283
if 
  TIMERA > 4000
goto_if_false @PIMP_12283
print_now 'PIMP_57' {time} 6000 {flag} 1
523@ = 99

:PIMP_12283
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12847
if 
  not is_car_dead 40@
goto_if_false @PIMP_12847
if 
  521@ == 0
goto_if_false @PIMP_12383
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_12383
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 88@
521@ = 1

:PIMP_12383
if 
  521@ == 1
goto_if_false @PIMP_12479
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_12479
remove_blip 522@
521@ = 0
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_blip_as_friendly 88@ {state} True
print_now 'PIMP_54' {time} 6000 {flag} 1
521@ = 0

:PIMP_12479
if 
  44@ == 0
goto_if_false @PIMP_12666
if 
  521@ == 0
goto_if_false @PIMP_12666
if 
  locate_char_in_car_char_2d $scplayer {otherChar} 35@(37@,2i) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @PIMP_12666
if 
  45@ == 0
goto_if_false @PIMP_12615
38@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_stand_still -1 {time} -1
close_sequence_task 38@
perform_sequence_task 35@(37@,2i) {sequence} 38@
clear_sequence_task 38@
45@ = 1

:PIMP_12615
if 
  is_car_stopped 40@
goto_if_false @PIMP_12666
clear_char_tasks 35@(37@,2i)
task_enter_car_as_passenger 35@(37@,2i) {vehicle} 40@ {time} 60000 {seat} -1
44@ = 1

:PIMP_12666
if 
  not is_car_dead 40@
goto_if_false @PIMP_12847
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12847
if 
  is_char_sitting_in_car 35@(37@,2i) {vehicle} 40@
goto_if_false @PIMP_12847
if 
  2 > 56@
goto_if_false @PIMP_12757
56@ += 1
increment_int_stat StatId.NumGirlsPimped {value} 1

:PIMP_12757
44@ = 2
remove_blip 88@
42@ = 99
47@ = 1
gosub @PIMP_35616
520@ = 1
TIMERA = 0
if 
  49@ == 10
goto_if_false @PIMP_12847
clear_prints 
print_now 'SEXGOD' {time} 6000 {flag} 1
goto @PIMP_37695

:PIMP_12847
if 
  44@ == 1
goto_if_false @PIMP_12985
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12985
if 
  not is_car_dead 40@
goto_if_false @PIMP_12985
539@ = get_script_task_status 35@(37@,2i) {taskId} 1482
if 
  is_int_lvar_equal_to_constant 539@ == 7
goto_if_false @PIMP_12985
if 
  not is_char_in_car 35@(37@,2i) {vehicle} 40@
goto_if_false @PIMP_12985
clear_char_tasks 35@(37@,2i)
task_enter_car_as_passenger 35@(37@,2i) {vehicle} 40@ {time} 60000 {seat} -1

:PIMP_12985
if 
  47@ == 1
goto_if_false @PIMP_29156
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_19019
if 
  58@ == 1
goto_if_false @PIMP_13875
if 
  60@ == 1
goto_if_false @PIMP_13118
if 
  61@ == 1
goto_if_false @PIMP_13118
if 
  62@ == 1
goto_if_false @PIMP_13118
if 
  63@ == 1
goto_if_false @PIMP_13118
58@ = 2

:PIMP_13118
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_13314
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13314
request_model 72

:PIMP_13171
if 
  not has_model_loaded 72
goto_if_false @PIMP_13197
wait 0
goto @PIMP_13171

:PIMP_13197
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_10' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13314
if 
  50@ == 1
goto_if_false @PIMP_13501
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13501
request_model 72

:PIMP_13358
if 
  not has_model_loaded 72
goto_if_false @PIMP_13384
wait 0
goto @PIMP_13358

:PIMP_13384
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_11' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13501
if 
  50@ == 2
goto_if_false @PIMP_13688
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13688
request_model 72

:PIMP_13545
if 
  not has_model_loaded 72
goto_if_false @PIMP_13571
wait 0
goto @PIMP_13545

:PIMP_13571
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_12' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13688
if 
  50@ == 3
goto_if_false @PIMP_13875
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13875
request_model 22

:PIMP_13732
if 
  not has_model_loaded 22
goto_if_false @PIMP_13758
wait 0
goto @PIMP_13732

:PIMP_13758
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_13' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13875
if 
  58@ == 2
goto_if_false @PIMP_14733
if 
  64@ == 1
goto_if_false @PIMP_13972
if 
  65@ == 1
goto_if_false @PIMP_13972
if 
  66@ == 1
goto_if_false @PIMP_13972
if 
  67@ == 1
goto_if_false @PIMP_13972
58@ = 3

:PIMP_13972
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_14168
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14168
request_model 22

:PIMP_14025
if 
  not has_model_loaded 22
goto_if_false @PIMP_14051
wait 0
goto @PIMP_14025

:PIMP_14051
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_14' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14168
if 
  50@ == 5
goto_if_false @PIMP_14359
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14359
request_model 147

:PIMP_14213
if 
  not has_model_loaded 147
goto_if_false @PIMP_14240
wait 0
goto @PIMP_14213

:PIMP_14240
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_15' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14359
if 
  50@ == 6
goto_if_false @PIMP_14546
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14546
request_model 22

:PIMP_14403
if 
  not has_model_loaded 22
goto_if_false @PIMP_14429
wait 0
goto @PIMP_14403

:PIMP_14429
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_16' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14546
if 
  50@ == 7
goto_if_false @PIMP_14733
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14733
request_model 22

:PIMP_14590
if 
  not has_model_loaded 22
goto_if_false @PIMP_14616
wait 0
goto @PIMP_14590

:PIMP_14616
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_17' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14733
if 
  58@ == 3
goto_if_false @PIMP_15591
if 
  68@ == 1
goto_if_false @PIMP_14830
if 
  69@ == 1
goto_if_false @PIMP_14830
if 
  70@ == 1
goto_if_false @PIMP_14830
if 
  71@ == 1
goto_if_false @PIMP_14830
58@ = 4

:PIMP_14830
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_15026
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15026
request_model 68

:PIMP_14883
if 
  not has_model_loaded 68
goto_if_false @PIMP_14909
wait 0
goto @PIMP_14883

:PIMP_14909
create_char PedType.CivMale {modelId} 68 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_18' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15026
if 
  50@ == 9
goto_if_false @PIMP_15213
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15213
request_model 48

:PIMP_15070
if 
  not has_model_loaded 48
goto_if_false @PIMP_15096
wait 0
goto @PIMP_15070

:PIMP_15096
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_19' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15213
if 
  50@ == 10
goto_if_false @PIMP_15400
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15400
request_model 48

:PIMP_15257
if 
  not has_model_loaded 48
goto_if_false @PIMP_15283
wait 0
goto @PIMP_15257

:PIMP_15283
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_20' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15400
if 
  50@ == 11
goto_if_false @PIMP_15591
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15591
request_model 147

:PIMP_15445
if 
  not has_model_loaded 147
goto_if_false @PIMP_15472
wait 0
goto @PIMP_15445

:PIMP_15472
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_21' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15591
if 
  58@ == 4
goto_if_false @PIMP_16449
if 
  72@ == 1
goto_if_false @PIMP_15688
if 
  73@ == 1
goto_if_false @PIMP_15688
if 
  74@ == 1
goto_if_false @PIMP_15688
if 
  75@ == 1
goto_if_false @PIMP_15688
58@ = 5

:PIMP_15688
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_15888
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15888
request_model 147

:PIMP_15742
if 
  not has_model_loaded 147
goto_if_false @PIMP_15769
wait 0
goto @PIMP_15742

:PIMP_15769
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_22' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15888
if 
  50@ == 13
goto_if_false @PIMP_16075
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16075
request_model 23

:PIMP_15932
if 
  not has_model_loaded 23
goto_if_false @PIMP_15958
wait 0
goto @PIMP_15932

:PIMP_15958
create_char PedType.CivMale {modelId} 23 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_23' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16075
if 
  50@ == 14
goto_if_false @PIMP_16262
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16262
request_model 17

:PIMP_16119
if 
  not has_model_loaded 17
goto_if_false @PIMP_16145
wait 0
goto @PIMP_16119

:PIMP_16145
create_char PedType.CivMale {modelId} 17 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_24' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16262
if 
  50@ == 15
goto_if_false @PIMP_16449
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16449
request_model 50

:PIMP_16306
if 
  not has_model_loaded 50
goto_if_false @PIMP_16332
wait 0
goto @PIMP_16306

:PIMP_16332
create_char PedType.CivMale {modelId} 50 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_25' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16449
if 
  58@ == 5
goto_if_false @PIMP_17307
if 
  76@ == 1
goto_if_false @PIMP_16546
if 
  77@ == 1
goto_if_false @PIMP_16546
if 
  78@ == 1
goto_if_false @PIMP_16546
if 
  79@ == 1
goto_if_false @PIMP_16546
58@ = 6

:PIMP_16546
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_16746
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16746
request_model 147

:PIMP_16600
if 
  not has_model_loaded 147
goto_if_false @PIMP_16627
wait 0
goto @PIMP_16600

:PIMP_16627
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_26' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16746
if 
  50@ == 17
goto_if_false @PIMP_16933
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16933
request_model 48

:PIMP_16790
if 
  not has_model_loaded 48
goto_if_false @PIMP_16816
wait 0
goto @PIMP_16790

:PIMP_16816
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_27' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16933
if 
  50@ == 18
goto_if_false @PIMP_17120
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17120
request_model 23

:PIMP_16977
if 
  not has_model_loaded 23
goto_if_false @PIMP_17003
wait 0
goto @PIMP_16977

:PIMP_17003
create_char PedType.CivMale {modelId} 23 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_28' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17120
if 
  50@ == 19
goto_if_false @PIMP_17307
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17307
request_model 17

:PIMP_17164
if 
  not has_model_loaded 17
goto_if_false @PIMP_17190
wait 0
goto @PIMP_17164

:PIMP_17190
create_char PedType.CivMale {modelId} 17 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_29' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17307
if 
  58@ == 6
goto_if_false @PIMP_18161
if 
  80@ == 1
goto_if_false @PIMP_17404
if 
  81@ == 1
goto_if_false @PIMP_17404
if 
  82@ == 1
goto_if_false @PIMP_17404
if 
  83@ == 1
goto_if_false @PIMP_17404
58@ = 7

:PIMP_17404
50@ = generate_random_int_in_range 20 {max} 24
if 
  50@ == 20
goto_if_false @PIMP_17600
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17600
request_model 36

:PIMP_17457
if 
  not has_model_loaded 36
goto_if_false @PIMP_17483
wait 0
goto @PIMP_17457

:PIMP_17483
create_char PedType.CivMale {modelId} 36 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 36
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_80' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17600
if 
  50@ == 21
goto_if_false @PIMP_17787
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17787
request_model 50

:PIMP_17644
if 
  not has_model_loaded 50
goto_if_false @PIMP_17670
wait 0
goto @PIMP_17644

:PIMP_17670
create_char PedType.CivMale {modelId} 50 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_81' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17787
if 
  50@ == 22
goto_if_false @PIMP_17974
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17974
request_model 48

:PIMP_17831
if 
  not has_model_loaded 48
goto_if_false @PIMP_17857
wait 0
goto @PIMP_17831

:PIMP_17857
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_82' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17974
if 
  50@ == 23
goto_if_false @PIMP_18161
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18161
request_model 68

:PIMP_18018
if 
  not has_model_loaded 68
goto_if_false @PIMP_18044
wait 0
goto @PIMP_18018

:PIMP_18044
create_char PedType.CivMale {modelId} 68 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_83' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18161
if 
  58@ == 7
goto_if_false @PIMP_19019
if 
  84@ == 1
goto_if_false @PIMP_18258
if 
  85@ == 1
goto_if_false @PIMP_18258
if 
  86@ == 1
goto_if_false @PIMP_18258
if 
  87@ == 1
goto_if_false @PIMP_18258
58@ = 1

:PIMP_18258
50@ = generate_random_int_in_range 24 {max} 28
if 
  50@ == 24
goto_if_false @PIMP_18458
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18458
request_model 163

:PIMP_18312
if 
  not has_model_loaded 163
goto_if_false @PIMP_18339
wait 0
goto @PIMP_18312

:PIMP_18339
create_char PedType.CivMale {modelId} 163 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 163
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_84' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18458
if 
  50@ == 25
goto_if_false @PIMP_18645
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18645
request_model 19

:PIMP_18502
if 
  not has_model_loaded 19
goto_if_false @PIMP_18528
wait 0
goto @PIMP_18502

:PIMP_18528
create_char PedType.CivMale {modelId} 19 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 19
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_85' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18645
if 
  50@ == 26
goto_if_false @PIMP_18832
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18832
request_model 29

:PIMP_18689
if 
  not has_model_loaded 29
goto_if_false @PIMP_18715
wait 0
goto @PIMP_18689

:PIMP_18715
create_char PedType.CivMale {modelId} 29 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_86' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18832
if 
  50@ == 27
goto_if_false @PIMP_19019
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19019
request_model 48

:PIMP_18876
if 
  not has_model_loaded 48
goto_if_false @PIMP_18902
wait 0
goto @PIMP_18876

:PIMP_18902
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_87' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19019
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_24856
if 
  58@ == 1
goto_if_false @PIMP_19891
if 
  60@ == 1
goto_if_false @PIMP_19134
if 
  61@ == 1
goto_if_false @PIMP_19134
if 
  62@ == 1
goto_if_false @PIMP_19134
if 
  63@ == 1
goto_if_false @PIMP_19134
58@ = 2

:PIMP_19134
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_19330
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19330
request_model 72

:PIMP_19187
if 
  not has_model_loaded 72
goto_if_false @PIMP_19213
wait 0
goto @PIMP_19187

:PIMP_19213
create_char PedType.CivMale {modelId} 72 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP200' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19330
if 
  50@ == 1
goto_if_false @PIMP_19517
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19517
request_model 72

:PIMP_19374
if 
  not has_model_loaded 72
goto_if_false @PIMP_19400
wait 0
goto @PIMP_19374

:PIMP_19400
create_char PedType.CivMale {modelId} 72 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP201' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19517
if 
  50@ == 2
goto_if_false @PIMP_19704
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19704
request_model 50

:PIMP_19561
if 
  not has_model_loaded 50
goto_if_false @PIMP_19587
wait 0
goto @PIMP_19561

:PIMP_19587
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP202' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19704
if 
  50@ == 3
goto_if_false @PIMP_19891
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19891
request_model 50

:PIMP_19748
if 
  not has_model_loaded 50
goto_if_false @PIMP_19774
wait 0
goto @PIMP_19748

:PIMP_19774
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP203' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19891
if 
  58@ == 2
goto_if_false @PIMP_20771
if 
  64@ == 1
goto_if_false @PIMP_19988
if 
  65@ == 1
goto_if_false @PIMP_19988
if 
  66@ == 1
goto_if_false @PIMP_19988
if 
  67@ == 1
goto_if_false @PIMP_19988
58@ = 3

:PIMP_19988
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_20195
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20195
request_model 17

:PIMP_20052
if 
  not has_model_loaded 17
goto_if_false @PIMP_20078
wait 0
goto @PIMP_20052

:PIMP_20078
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP204' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20195
if 
  50@ == 5
goto_if_false @PIMP_20397
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20397
request_model 147

:PIMP_20251
if 
  not has_model_loaded 147
goto_if_false @PIMP_20278
wait 0
goto @PIMP_20251

:PIMP_20278
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP205' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20397
if 
  50@ == 6
goto_if_false @PIMP_20584
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20584
request_model 50

:PIMP_20441
if 
  not has_model_loaded 50
goto_if_false @PIMP_20467
wait 0
goto @PIMP_20441

:PIMP_20467
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP206' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20584
if 
  50@ == 7
goto_if_false @PIMP_20771
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20771
request_model 22

:PIMP_20628
if 
  not has_model_loaded 22
goto_if_false @PIMP_20654
wait 0
goto @PIMP_20628

:PIMP_20654
create_char PedType.CivMale {modelId} 22 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP207' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20771
if 
  58@ == 3
goto_if_false @PIMP_21629
if 
  68@ == 1
goto_if_false @PIMP_20868
if 
  69@ == 1
goto_if_false @PIMP_20868
if 
  70@ == 1
goto_if_false @PIMP_20868
if 
  71@ == 1
goto_if_false @PIMP_20868
58@ = 4

:PIMP_20868
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_21064
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21064
request_model 58

:PIMP_20921
if 
  not has_model_loaded 58
goto_if_false @PIMP_20947
wait 0
goto @PIMP_20921

:PIMP_20947
create_char PedType.CivMale {modelId} 58 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 58
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP208' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21064
if 
  50@ == 9
goto_if_false @PIMP_21255
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21255
request_model 147

:PIMP_21109
if 
  not has_model_loaded 147
goto_if_false @PIMP_21136
wait 0
goto @PIMP_21109

:PIMP_21136
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP209' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21255
if 
  50@ == 10
goto_if_false @PIMP_21442
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21442
request_model 17

:PIMP_21299
if 
  not has_model_loaded 17
goto_if_false @PIMP_21325
wait 0
goto @PIMP_21299

:PIMP_21325
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP210' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21442
if 
  50@ == 11
goto_if_false @PIMP_21629
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21629
request_model 22

:PIMP_21486
if 
  not has_model_loaded 22
goto_if_false @PIMP_21512
wait 0
goto @PIMP_21486

:PIMP_21512
create_char PedType.CivMale {modelId} 22 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP211' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21629
if 
  58@ == 4
goto_if_false @PIMP_22487
if 
  72@ == 1
goto_if_false @PIMP_21726
if 
  73@ == 1
goto_if_false @PIMP_21726
if 
  74@ == 1
goto_if_false @PIMP_21726
if 
  75@ == 1
goto_if_false @PIMP_21726
58@ = 5

:PIMP_21726
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_21926
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21926
request_model 147

:PIMP_21780
if 
  not has_model_loaded 147
goto_if_false @PIMP_21807
wait 0
goto @PIMP_21780

:PIMP_21807
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP212' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21926
if 
  50@ == 13
goto_if_false @PIMP_22113
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22113
request_model 29

:PIMP_21970
if 
  not has_model_loaded 29
goto_if_false @PIMP_21996
wait 0
goto @PIMP_21970

:PIMP_21996
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP213' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22113
if 
  50@ == 14
goto_if_false @PIMP_22300
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22300
request_model 17

:PIMP_22157
if 
  not has_model_loaded 17
goto_if_false @PIMP_22183
wait 0
goto @PIMP_22157

:PIMP_22183
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP214' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22300
if 
  50@ == 15
goto_if_false @PIMP_22487
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22487
request_model 36

:PIMP_22344
if 
  not has_model_loaded 36
goto_if_false @PIMP_22370
wait 0
goto @PIMP_22344

:PIMP_22370
create_char PedType.CivMale {modelId} 36 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 36
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP215' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22487
if 
  58@ == 5
goto_if_false @PIMP_23345
if 
  76@ == 1
goto_if_false @PIMP_22584
if 
  77@ == 1
goto_if_false @PIMP_22584
if 
  78@ == 1
goto_if_false @PIMP_22584
if 
  79@ == 1
goto_if_false @PIMP_22584
58@ = 6

:PIMP_22584
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_22784
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22784
request_model 147

:PIMP_22638
if 
  not has_model_loaded 147
goto_if_false @PIMP_22665
wait 0
goto @PIMP_22638

:PIMP_22665
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP216' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22784
if 
  50@ == 17
goto_if_false @PIMP_22971
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22971
request_model 29

:PIMP_22828
if 
  not has_model_loaded 29
goto_if_false @PIMP_22854
wait 0
goto @PIMP_22828

:PIMP_22854
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP217' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22971
if 
  50@ == 18
goto_if_false @PIMP_23158
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23158
request_model 27

:PIMP_23015
if 
  not has_model_loaded 27
goto_if_false @PIMP_23041
wait 0
goto @PIMP_23015

:PIMP_23041
create_char PedType.CivMale {modelId} 27 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 27
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP218' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23158
if 
  50@ == 19
goto_if_false @PIMP_23345
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23345
request_model 50

:PIMP_23202
if 
  not has_model_loaded 50
goto_if_false @PIMP_23228
wait 0
goto @PIMP_23202

:PIMP_23228
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP219' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23345
if 
  58@ == 6
goto_if_false @PIMP_23998
if 
  80@ == 1
goto_if_false @PIMP_23424
if 
  81@ == 1
goto_if_false @PIMP_23424
if 
  82@ == 1
goto_if_false @PIMP_23424
58@ = 7

:PIMP_23424
50@ = generate_random_int_in_range 20 {max} 23
if 
  50@ == 20
goto_if_false @PIMP_23624
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23624
request_model 147

:PIMP_23478
if 
  not has_model_loaded 147
goto_if_false @PIMP_23505
wait 0
goto @PIMP_23478

:PIMP_23505
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP220' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23624
if 
  50@ == 21
goto_if_false @PIMP_23811
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23811
request_model 17

:PIMP_23668
if 
  not has_model_loaded 17
goto_if_false @PIMP_23694
wait 0
goto @PIMP_23668

:PIMP_23694
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP221' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23811
if 
  50@ == 22
goto_if_false @PIMP_23998
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23998
request_model 71

:PIMP_23855
if 
  not has_model_loaded 71
goto_if_false @PIMP_23881
wait 0
goto @PIMP_23855

:PIMP_23881
create_char PedType.CivMale {modelId} 71 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 71
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP222' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23998
if 
  58@ == 7
goto_if_false @PIMP_24856
if 
  83@ == 1
goto_if_false @PIMP_24095
if 
  84@ == 1
goto_if_false @PIMP_24095
if 
  85@ == 1
goto_if_false @PIMP_24095
if 
  86@ == 1
goto_if_false @PIMP_24095
58@ = 1

:PIMP_24095
50@ = generate_random_int_in_range 23 {max} 27
if 
  50@ == 23
goto_if_false @PIMP_24295
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24295
request_model 147

:PIMP_24149
if 
  not has_model_loaded 147
goto_if_false @PIMP_24176
wait 0
goto @PIMP_24149

:PIMP_24176
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP223' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24295
if 
  50@ == 24
goto_if_false @PIMP_24482
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24482
request_model 29

:PIMP_24339
if 
  not has_model_loaded 29
goto_if_false @PIMP_24365
wait 0
goto @PIMP_24339

:PIMP_24365
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP224' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24482
if 
  50@ == 25
goto_if_false @PIMP_24669
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24669
request_model 23

:PIMP_24526
if 
  not has_model_loaded 23
goto_if_false @PIMP_24552
wait 0
goto @PIMP_24526

:PIMP_24552
create_char PedType.CivMale {modelId} 23 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP225' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24669
if 
  50@ == 26
goto_if_false @PIMP_24856
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24856
request_model 17

:PIMP_24713
if 
  not has_model_loaded 17
goto_if_false @PIMP_24739
wait 0
goto @PIMP_24713

:PIMP_24739
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP226' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24856
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_29156
if 
  58@ == 1
goto_if_false @PIMP_25732
if 
  60@ == 1
goto_if_false @PIMP_24971
if 
  61@ == 1
goto_if_false @PIMP_24971
if 
  62@ == 1
goto_if_false @PIMP_24971
if 
  63@ == 1
goto_if_false @PIMP_24971
58@ = 2

:PIMP_24971
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_25167
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25167
request_model 72

:PIMP_25024
if 
  not has_model_loaded 72
goto_if_false @PIMP_25050
wait 0
goto @PIMP_25024

:PIMP_25050
create_char PedType.CivMale {modelId} 72 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP300' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25167
if 
  50@ == 1
goto_if_false @PIMP_25354
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25354
request_model 72

:PIMP_25211
if 
  not has_model_loaded 72
goto_if_false @PIMP_25237
wait 0
goto @PIMP_25211

:PIMP_25237
create_char PedType.CivMale {modelId} 72 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP301' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25354
if 
  50@ == 2
goto_if_false @PIMP_25541
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25541
request_model 17

:PIMP_25398
if 
  not has_model_loaded 17
goto_if_false @PIMP_25424
wait 0
goto @PIMP_25398

:PIMP_25424
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP302' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25541
if 
  50@ == 3
goto_if_false @PIMP_25732
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25732
request_model 147

:PIMP_25586
if 
  not has_model_loaded 147
goto_if_false @PIMP_25613
wait 0
goto @PIMP_25586

:PIMP_25613
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP303' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25732
if 
  58@ == 2
goto_if_false @PIMP_26590
if 
  64@ == 1
goto_if_false @PIMP_25829
if 
  65@ == 1
goto_if_false @PIMP_25829
if 
  66@ == 1
goto_if_false @PIMP_25829
if 
  67@ == 1
goto_if_false @PIMP_25829
58@ = 3

:PIMP_25829
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_26025
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26025
request_model 32

:PIMP_25882
if 
  not has_model_loaded 32
goto_if_false @PIMP_25908
wait 0
goto @PIMP_25882

:PIMP_25908
create_char PedType.CivMale {modelId} 32 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 32
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP304' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26025
if 
  50@ == 5
goto_if_false @PIMP_26212
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26212
request_model 33

:PIMP_26069
if 
  not has_model_loaded 33
goto_if_false @PIMP_26095
wait 0
goto @PIMP_26069

:PIMP_26095
create_char PedType.CivMale {modelId} 33 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 33
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP305' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26212
if 
  50@ == 6
goto_if_false @PIMP_26399
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26399
request_model 17

:PIMP_26256
if 
  not has_model_loaded 17
goto_if_false @PIMP_26282
wait 0
goto @PIMP_26256

:PIMP_26282
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP306' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26399
if 
  50@ == 7
goto_if_false @PIMP_26590
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26590
request_model 147

:PIMP_26444
if 
  not has_model_loaded 147
goto_if_false @PIMP_26471
wait 0
goto @PIMP_26444

:PIMP_26471
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP307' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26590
if 
  58@ == 3
goto_if_false @PIMP_27448
if 
  68@ == 1
goto_if_false @PIMP_26687
if 
  69@ == 1
goto_if_false @PIMP_26687
if 
  70@ == 1
goto_if_false @PIMP_26687
if 
  71@ == 1
goto_if_false @PIMP_26687
58@ = 4

:PIMP_26687
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_26883
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26883
request_model 32

:PIMP_26740
if 
  not has_model_loaded 32
goto_if_false @PIMP_26766
wait 0
goto @PIMP_26740

:PIMP_26766
create_char PedType.CivMale {modelId} 32 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 32
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP308' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26883
if 
  50@ == 9
goto_if_false @PIMP_27070
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27070
request_model 33

:PIMP_26927
if 
  not has_model_loaded 33
goto_if_false @PIMP_26953
wait 0
goto @PIMP_26927

:PIMP_26953
create_char PedType.CivMale {modelId} 33 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 33
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP309' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27070
if 
  50@ == 10
goto_if_false @PIMP_27257
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27257
request_model 17

:PIMP_27114
if 
  not has_model_loaded 17
goto_if_false @PIMP_27140
wait 0
goto @PIMP_27114

:PIMP_27140
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP310' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27257
if 
  50@ == 11
goto_if_false @PIMP_27448
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27448
request_model 147

:PIMP_27302
if 
  not has_model_loaded 147
goto_if_false @PIMP_27329
wait 0
goto @PIMP_27302

:PIMP_27329
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP311' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27448
if 
  58@ == 4
goto_if_false @PIMP_28302
if 
  72@ == 1
goto_if_false @PIMP_27545
if 
  73@ == 1
goto_if_false @PIMP_27545
if 
  74@ == 1
goto_if_false @PIMP_27545
if 
  75@ == 1
goto_if_false @PIMP_27545
58@ = 5

:PIMP_27545
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_27741
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27741
request_model 50

:PIMP_27598
if 
  not has_model_loaded 50
goto_if_false @PIMP_27624
wait 0
goto @PIMP_27598

:PIMP_27624
create_char PedType.CivMale {modelId} 50 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP312' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27741
if 
  50@ == 13
goto_if_false @PIMP_27928
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27928
request_model 34

:PIMP_27785
if 
  not has_model_loaded 34
goto_if_false @PIMP_27811
wait 0
goto @PIMP_27785

:PIMP_27811
create_char PedType.CivMale {modelId} 34 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 34
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP313' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27928
if 
  50@ == 14
goto_if_false @PIMP_28115
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28115
request_model 17

:PIMP_27972
if 
  not has_model_loaded 17
goto_if_false @PIMP_27998
wait 0
goto @PIMP_27972

:PIMP_27998
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP314' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28115
if 
  50@ == 15
goto_if_false @PIMP_28302
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28302
request_model 29

:PIMP_28159
if 
  not has_model_loaded 29
goto_if_false @PIMP_28185
wait 0
goto @PIMP_28159

:PIMP_28185
create_char PedType.CivMale {modelId} 29 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP315' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28302
if 
  58@ == 5
goto_if_false @PIMP_29156
if 
  76@ == 1
goto_if_false @PIMP_28399
if 
  77@ == 1
goto_if_false @PIMP_28399
if 
  78@ == 1
goto_if_false @PIMP_28399
if 
  79@ == 1
goto_if_false @PIMP_28399
58@ = 1

:PIMP_28399
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_28595
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28595
request_model 68

:PIMP_28452
if 
  not has_model_loaded 68
goto_if_false @PIMP_28478
wait 0
goto @PIMP_28452

:PIMP_28478
create_char PedType.CivMale {modelId} 68 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP316' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28595
if 
  50@ == 17
goto_if_false @PIMP_28782
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28782
request_model 101

:PIMP_28639
if 
  not has_model_loaded 101
goto_if_false @PIMP_28665
wait 0
goto @PIMP_28639

:PIMP_28665
create_char PedType.CivMale {modelId} 101 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 101
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP317' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28782
if 
  50@ == 18
goto_if_false @PIMP_28969
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28969
request_model 17

:PIMP_28826
if 
  not has_model_loaded 17
goto_if_false @PIMP_28852
wait 0
goto @PIMP_28826

:PIMP_28852
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP318' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28969
if 
  50@ == 19
goto_if_false @PIMP_29156
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_29156
request_model 34

:PIMP_29013
if 
  not has_model_loaded 34
goto_if_false @PIMP_29039
wait 0
goto @PIMP_29013

:PIMP_29039
create_char PedType.CivMale {modelId} 34 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 34
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP319' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_29156
if 
  520@ == 1
goto_if_false @PIMP_29713
if 
  TIMERA > 5000
goto_if_false @PIMP_29713
if 
  1 > 49@
goto_if_false @PIMP_29279
if 
  37@ == 0
goto_if_false @PIMP_29245
print_now 'PIMP_3' {time} 6000 {flag} 1

:PIMP_29245
if 
  37@ == 1
goto_if_false @PIMP_29279
print_now 'PIMP_31' {time} 6000 {flag} 1

:PIMP_29279
if 
  49@ > 0
goto_if_false @PIMP_29699
541@ = 1
if 
  513@ <> 1
goto_if_false @PIMP_29699
529@ = create_menu 'PIMP_70' {topLeftX} 31.0 {topLeftY} 80.0 {width} 89.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
34@ = 1
set_menu_column 529@ {column} 0 {title} 'PIMP_71' {row0} 'PIMP_72' {row1} 'PIMP_73' {row2} 'PIMP_74' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 529@ {column} 1 {alignment} Align.Right
528@ = 300
set_lvar_int_to_lvar_int 526@ = 49@
mult_int_lvar_by_int_lvar 526@ *= 528@
set_menu_item_with_number 529@ {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 528@
set_menu_item_with_number 529@ {column} 1 {row} 1 {gxt} 'PIMP_75' {number} 49@
set_menu_item_with_number 529@ {column} 1 {row} 2 {gxt} 'DOLLAR' {number} 526@
set_active_menu_item 529@ {row} 2
cset_lvar_float_to_lvar_int 527@ =# 526@
if 
  37@ == 0
goto_if_false @PIMP_29650
print_now 'PIMP_7' {time} 6000 {flag} 1
add_score $player1 {money} 526@
increment_float_stat StatId.MoneyMadePimping {value} 527@

:PIMP_29650
if 
  37@ == 1
goto_if_false @PIMP_29699
print_now 'PIMP_32' {time} 6000 {flag} 1
add_score $player1 {money} 526@
increment_float_stat StatId.MoneyMadePimping {value} 527@

:PIMP_29699
520@ = 2
TIMERA = 0

:PIMP_29713
if 
  520@ == 2
goto_if_false @PIMP_29787
if 
  TIMERA > 6000
goto_if_false @PIMP_29787
if 
  34@ == 1
goto_if_false @PIMP_29780
delete_menu 529@
34@ = 0

:PIMP_29780
520@ = 3

:PIMP_29787
if 
  47@ == 2
goto_if_false @PIMP_29944
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_29877
if 
  37@ == 0
goto_if_false @PIMP_29851
set_lvar_int_to_lvar_int 511@ = 50@

:PIMP_29851
if 
  37@ == 1
goto_if_false @PIMP_29877
set_lvar_int_to_lvar_int 512@ = 50@

:PIMP_29877
remove_blip 89@
89@ = add_blip_for_char 91@(50@,28i)
change_blip_colour 89@ {color} BlipColor.Yellow
$pimp_bikeostimer = 180000
clear_onscreen_timer $pimp_bikeostimer
537@ = 0
537@ = 1
47@ = 3
48@ = 0

:PIMP_29944
if 
  47@ == 3
goto_if_false @PIMP_30700
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_30700
if 
  not is_car_dead 40@
goto_if_false @PIMP_30700
if 
  521@ == 0
goto_if_false @PIMP_30062
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_30062
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 89@
521@ = 1

:PIMP_30062
if 
  521@ == 1
goto_if_false @PIMP_30158
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_30158
remove_blip 522@
521@ = 0
remove_blip 89@
89@ = add_blip_for_char 91@(50@,28i)
change_blip_colour 89@ {color} BlipColor.Yellow
print_now 'PIMP_53' {time} 6000 {flag} 1
521@ = 0

:PIMP_30158
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_30204
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_30204
if 
  not is_car_dead 40@
goto_if_false @PIMP_30700
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_30700
if 
  46@ == 0
goto_if_false @PIMP_30700
if 
  521@ == 0
goto_if_false @PIMP_30700
if 
  locate_char_in_car_char_2d $scplayer {otherChar} 91@(50@,28i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @PIMP_30700
if 
  48@ == 0
goto_if_false @PIMP_30411
if 
  37@ == 0
goto_if_false @PIMP_30370
print_now 'PIMP_6' {time} 4000 {flag} 1
48@ = 1

:PIMP_30370
if 
  37@ == 1
goto_if_false @PIMP_30411
print_now 'PIMP_33' {time} 4000 {flag} 1
48@ = 1

:PIMP_30411
set_lvar_int_to_lvar_int 53@ = 37@
if 
  is_car_stopped 40@
goto_if_false @PIMP_30700
task_turn_char_to_face_char 91@(50@,28i) {target} 35@(53@,2i)
clear_char_tasks 35@(53@,2i)
set_lvar_int_to_lvar_int 54@ = 50@
537@ = 0
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
39@ = open_sequence_task 
task_leave_car -1 {vehicle} 40@
clear_mission_audio MissionAudioSlot.Slot4
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_30554
task_go_straight_to_coord -1 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30554
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_30602
task_go_straight_to_coord -1 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30602
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_30650
task_go_straight_to_coord -1 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30650
close_sequence_task 39@
perform_sequence_task 35@(53@,2i) {sequence} 39@
clear_sequence_task 39@
46@ = 1
55@ = 1
47@ = 4
TIMERA = 0

:PIMP_30700
if 
  55@ == 1
goto_if_false @PIMP_30862
if 
  not is_char_dead 35@(53@,2i)
goto_if_false @PIMP_30862
if 
  not is_char_dead 91@(54@,28i)
goto_if_false @PIMP_30862
if 
  locate_char_any_means_char_2d 35@(53@,2i) {target} 91@(54@,28i) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @PIMP_30862
clear_char_tasks 35@(53@,2i)
clear_char_tasks 91@(54@,28i)
task_chat_with_char 35@(53@,2i) {other} 91@(54@,28i) {leadSpeaker} True {_p4} 1
task_chat_with_char 91@(54@,28i) {other} 35@(53@,2i) {leadSpeaker} False {_p4} 1
55@ = 0

:PIMP_30862
if 
  47@ == 4
goto_if_false @PIMP_31088
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_30926
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_30926
if 
  not is_char_dead 35@(53@,2i)
goto_if_false @PIMP_31088
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_31088
if 
  52@ == 1
goto_if_false @PIMP_30991
47@ = 15

:PIMP_30991
if 
  52@ == 0
goto_if_false @PIMP_31088
if 
  37@ == 0
goto_if_false @PIMP_31088
42@ = 0
41@ = 0
37@ = 1
47@ = 99
remove_blip 89@
45@ = 0
44@ = 0
46@ = 0
52@ = 1

:PIMP_31088
if 
  47@ == 15
goto_if_false @PIMP_31192
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_31152
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_31152
remove_blip 89@
45@ = 0
44@ = 0
46@ = 0
gosub @PIMP_35558
47@ = 20

:PIMP_31192
if 
  47@ == 20
goto_if_false @PIMP_31263
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_31256
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37353

:PIMP_31256
47@ = 25

:PIMP_31263
if 
  47@ == 25
goto_if_false @PIMP_31997
513@ = generate_random_int_in_range 0 {max} 4
if 
  2 > 49@
goto_if_false @PIMP_31315
513@ = 3

:PIMP_31315
if 
  513@ == 0
goto_if_false @PIMP_31582
47@ = 30
print_now 'PIMP_35' {time} 6000 {flag} 1
524@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31476
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_31476
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
set_char_is_target_priority 91@(511@,28i) {state} True
119@(511@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
537@ = 2

:PIMP_31476
if 
  37@ == 1
goto_if_false @PIMP_31582
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_31582
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
set_char_is_target_priority 91@(512@,28i) {state} True
119@(512@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
537@ = 2

:PIMP_31582
if 
  513@ == 1
goto_if_false @PIMP_31873
47@ = 40
print_now 'PIMP_39' {time} 6000 {flag} 1
525@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31755
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_31755
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
set_char_is_target_priority 91@(511@,28i) {state} True
119@(511@,28i) = 0
set_char_money 91@(511@,28i) {amount} 250
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
537@ = 2

:PIMP_31755
if 
  37@ == 1
goto_if_false @PIMP_31873
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_31873
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
set_char_is_target_priority 91@(512@,28i) {state} True
119@(512@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
set_char_money 91@(512@,28i) {amount} 250
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
537@ = 2

:PIMP_31873
if 
  513@ == 2
goto_if_false @PIMP_31935
523@ = 0
47@ = 50
print_now 'PIMP_56' {time} 4000 {flag} 1
TIMERA = 0
523@ = 1

:PIMP_31935
if 
  513@ == 3
goto_if_false @PIMP_31997
523@ = 0
47@ = 50
print_now 'PIMP_56' {time} 4000 {flag} 1
TIMERA = 0
523@ = 1

:PIMP_31997
if 
  47@ == 30
goto_if_false @PIMP_32868
if 
  525@ == 1
goto_if_false @PIMP_32075
if 
  TIMERA > 4000
goto_if_false @PIMP_32075
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_32075
if 
  524@ == 1
goto_if_false @PIMP_32135
if 
  TIMERA > 4000
goto_if_false @PIMP_32135
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_32135
if 
  not is_car_dead 40@
goto_if_false @PIMP_32404
if 
  521@ == 0
goto_if_false @PIMP_32215
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_32215
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 90@
521@ = 1

:PIMP_32215
if 
  521@ == 1
goto_if_false @PIMP_32404
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_32404
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_32319
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32319
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_32319
if 
  37@ == 1
goto_if_false @PIMP_32381
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32381
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_32381
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_32404
if 
  521@ == 0
goto_if_false @PIMP_32736
if 
  37@ == 0
goto_if_false @PIMP_32579
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_32579
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @PIMP_32579
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32579
clear_char_tasks 35@(37@,2i)
task_kill_char_on_foot 35@(37@,2i) {target} 91@(511@,28i)
task_kill_char_on_foot 91@(511@,28i) {target} 35@(37@,2i)
print_now 'PIMP_55' {time} 6000 {flag} 1
47@ = 35

:PIMP_32579
if 
  37@ == 1
goto_if_false @PIMP_32736
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_32736
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @PIMP_32736
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32736
task_kill_char_on_foot 91@(512@,28i) {target} 35@(37@,2i)
clear_char_tasks 35@(37@,2i)
task_kill_char_on_foot 35@(37@,2i) {target} 91@(512@,28i)
print_now 'PIMP_55' {time} 6000 {flag} 1
47@ = 35

:PIMP_32736
if 
  37@ == 0
goto_if_false @PIMP_32802
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32802
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_32802
if 
  37@ == 1
goto_if_false @PIMP_32868
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32868
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_32868
if 
  47@ == 35
goto_if_false @PIMP_33409
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_32953
if 
  TIMERA > 4000
goto_if_false @PIMP_32953
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_32953
if 
  524@ == 1
goto_if_false @PIMP_33013
if 
  TIMERA > 4000
goto_if_false @PIMP_33013
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_33013
if 
  not is_car_dead 40@
goto_if_false @PIMP_33277
if 
  521@ == 0
goto_if_false @PIMP_33088
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33088
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
521@ = 1

:PIMP_33088
if 
  521@ == 1
goto_if_false @PIMP_33277
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33277
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_33192
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33192
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33192
if 
  37@ == 1
goto_if_false @PIMP_33254
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33254
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33254
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_33277
if 
  37@ == 0
goto_if_false @PIMP_33343
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33343
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
47@ = 50

:PIMP_33343
if 
  37@ == 1
goto_if_false @PIMP_33409
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33409
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
47@ = 50

:PIMP_33409
if 
  47@ == 40
goto_if_false @PIMP_34236
if 
  525@ == 1
goto_if_false @PIMP_33487
if 
  TIMERA > 4000
goto_if_false @PIMP_33487
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_33487
if 
  524@ == 1
goto_if_false @PIMP_33547
if 
  TIMERA > 4000
goto_if_false @PIMP_33547
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_33547
if 
  not is_car_dead 40@
goto_if_false @PIMP_33816
if 
  521@ == 0
goto_if_false @PIMP_33627
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33627
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 90@
521@ = 1

:PIMP_33627
if 
  521@ == 1
goto_if_false @PIMP_33816
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33816
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_33731
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33731
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33731
if 
  37@ == 1
goto_if_false @PIMP_33793
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33793
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33793
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_33816
if 
  521@ == 0
goto_if_false @PIMP_34104
if 
  37@ == 0
goto_if_false @PIMP_33969
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_33969
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @PIMP_33969
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33969
task_smart_flee_char 91@(511@,28i) {threat} $scplayer {radius} 100.0 {time} -1
print_now 'PIMP_37' {time} 6000 {flag} 1
47@ = 45

:PIMP_33969
if 
  37@ == 1
goto_if_false @PIMP_34104
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_34104
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @PIMP_34104
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34104
task_smart_flee_char 91@(512@,28i) {threat} $scplayer {radius} 100.0 {time} -1
print_now 'PIMP_37' {time} 6000 {flag} 1
47@ = 45

:PIMP_34104
if 
  37@ == 0
goto_if_false @PIMP_34170
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34170
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_34170
if 
  37@ == 1
goto_if_false @PIMP_34236
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34236
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_34236
if 
  47@ == 45
goto_if_false @PIMP_34787
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_34321
if 
  TIMERA > 4000
goto_if_false @PIMP_34321
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_34321
if 
  524@ == 1
goto_if_false @PIMP_34381
if 
  TIMERA > 4000
goto_if_false @PIMP_34381
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_34381
if 
  not is_car_dead 40@
goto_if_false @PIMP_34645
if 
  521@ == 0
goto_if_false @PIMP_34456
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_34456
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
521@ = 1

:PIMP_34456
if 
  521@ == 1
goto_if_false @PIMP_34645
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_34645
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_34560
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34560
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_34560
if 
  37@ == 1
goto_if_false @PIMP_34622
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34622
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_34622
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_34645
if 
  37@ == 0
goto_if_false @PIMP_34716
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34716
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
wait 2000
47@ = 50

:PIMP_34716
if 
  37@ == 1
goto_if_false @PIMP_34787
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34787
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
wait 2000
47@ = 50

:PIMP_34787
if 
  47@ == 50
goto_if_false @PIMP_35068
537@ = 0
clear_onscreen_timer $pimp_bikeostimer
$pimp_bikeostimer = 180000
516@ = 0
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_35012
clear_prints 
clear_char_tasks 35@(37@,2i)
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_blip_as_friendly 88@ {state} True
47@ = 25
if 
  37@ == 0
goto_if_false @PIMP_34954
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34954
mark_char_as_no_longer_needed 91@(511@,28i)
119@(511@,28i) = 0

:PIMP_34954
if 
  37@ == 1
goto_if_false @PIMP_35012
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_35012
mark_char_as_no_longer_needed 91@(512@,28i)
119@(512@,28i) = 0

:PIMP_35012
47@ = 99
42@ = 2
49@ += 1
540@ = get_int_stat StatId.PimpingLevel
if 
  not is_int_lvar_greater_than_int_lvar 540@ > 49@
goto_if_false @PIMP_35068
set_int_stat StatId.PimpingLevel {value} 49@

:PIMP_35068
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_35157
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(50@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35146
freeze_char_position_and_dont_load_collision 91@(50@,28i) {state} False
goto @PIMP_35157

:PIMP_35146
freeze_char_position_and_dont_load_collision 91@(50@,28i) {state} True

:PIMP_35157
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_35246
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(511@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35235
freeze_char_position_and_dont_load_collision 91@(511@,28i) {state} False
goto @PIMP_35246

:PIMP_35235
freeze_char_position_and_dont_load_collision 91@(511@,28i) {state} True

:PIMP_35246
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_35335
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(512@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35324
freeze_char_position_and_dont_load_collision 91@(512@,28i) {state} False
goto @PIMP_35335

:PIMP_35324
freeze_char_position_and_dont_load_collision 91@(512@,28i) {state} True

:PIMP_35335
if 
  not is_char_dead 35@
goto_if_false @PIMP_35408
if 
  locate_char_any_means_char_3d $scplayer {target} 35@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35401
freeze_char_position_and_dont_load_collision 35@ {state} False
goto @PIMP_35408

:PIMP_35401
freeze_char_position_and_dont_load_collision 35@ {state} True

:PIMP_35408
if 
  not is_char_dead 36@
goto_if_false @PIMP_35481
if 
  locate_char_any_means_char_3d $scplayer {target} 36@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35474
freeze_char_position_and_dont_load_collision 36@ {state} False
goto @PIMP_35481

:PIMP_35474
freeze_char_position_and_dont_load_collision 36@ {state} True

:PIMP_35481
goto @PIMP_3749

:PIMP_35488
if 
  35@(37@,2i) <> -1
goto_if_false @PIMP_35556
519@ = get_ped_type 35@(37@,2i)
if 
  not is_char_male 35@(37@,2i)
goto_if_false @PIMP_35556
41@ = 99
42@ = 1

:PIMP_35556
return 

:PIMP_35558
if 
  37@ == 0
goto_if_false @PIMP_35585
37@ = 1
return 

:PIMP_35585
if 
  37@ == 1
goto_if_false @PIMP_35612
37@ = 0
return 

:PIMP_35612
return 
return 

:PIMP_35616
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_36202
if or
  is_char_in_zone $scplayer {zone} 'IWD'
  is_char_in_zone $scplayer {zone} 'GAN'
  is_char_in_zone $scplayer {zone} 'ELCO'
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_35708
58@ = 1

:PIMP_35708
if or
  is_char_in_zone $scplayer {zone} 'LDOC'
  is_char_in_zone $scplayer {zone} 'LAIR'
  is_char_in_zone $scplayer {zone} 'LIND'
  is_char_in_zone $scplayer {zone} 'BLUF'
goto_if_false @PIMP_35782
58@ = 2

:PIMP_35782
if or
  is_char_in_zone $scplayer {zone} 'COM'
  is_char_in_zone $scplayer {zone} 'LDT'
  is_char_in_zone $scplayer {zone} 'GLN'
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_35856
58@ = 3

:PIMP_35856
if or
  is_char_in_zone $scplayer {zone} 'JEF'
  is_char_in_zone $scplayer {zone} 'ELS'
  is_char_in_zone $scplayer {zone} 'LFL'
  is_char_in_zone $scplayer {zone} 'EBE'
goto_if_false @PIMP_35930
58@ = 4

:PIMP_35930
if or
  is_char_in_zone $scplayer {zone} 'CONF'
  is_char_in_zone $scplayer {zone} 'VERO'
  is_char_in_zone $scplayer {zone} 'SMB'
  is_char_in_zone $scplayer {zone} 'MAR'
  is_char_in_zone $scplayer {zone} 'MKT'
goto_if_false @PIMP_36018
58@ = 5

:PIMP_36018
if or
  is_char_in_zone $scplayer {zone} 'SMB'
  is_char_in_zone $scplayer {zone} 'PLS'
  is_char_in_zone $scplayer {zone} 'ROD'
  is_char_in_zone $scplayer {zone} 'RIH'
goto_if_false @PIMP_36092
58@ = 6

:PIMP_36092
if or
  is_char_in_zone $scplayer {zone} 'VIN'
  is_char_in_zone $scplayer {zone} 'MUL'
  is_char_in_zone $scplayer {zone} 'SUN'
goto_if_false @PIMP_36152
58@ = 7

:PIMP_36152
if 
  1 > 58@
goto_if_false @PIMP_36177
58@ = 1

:PIMP_36177
if 
  58@ > 7
goto_if_false @PIMP_36202
58@ = 1

:PIMP_36202
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_36774
if or
  is_char_in_zone $scplayer {zone} 'BAYV'
  is_char_in_zone $scplayer {zone} 'PARA'
  is_char_in_zone $scplayer {zone} 'CIVI'
  is_char_in_zone $scplayer {zone} 'CITYS'
goto_if_false @PIMP_36294
58@ = 1

:PIMP_36294
if or
  is_char_in_zone $scplayer {zone} 'CALT'
  is_char_in_zone $scplayer {zone} 'JUNIHO'
  is_char_in_zone $scplayer {zone} 'JUNIHI'
  is_char_in_zone $scplayer {zone} 'ESPN'
goto_if_false @PIMP_36368
58@ = 2

:PIMP_36368
if or
  is_char_in_zone $scplayer {zone} 'SUNMA'
  is_char_in_zone $scplayer {zone} 'SUNNN'
  is_char_in_zone $scplayer {zone} 'GANTB'
  is_char_in_zone $scplayer {zone} 'BATTP'
goto_if_false @PIMP_36442
58@ = 3

:PIMP_36442
if or
  is_char_in_zone $scplayer {zone} 'CHINA'
  is_char_in_zone $scplayer {zone} 'SFDWT'
  is_char_in_zone $scplayer {zone} 'FINA'
  is_char_in_zone $scplayer {zone} 'ESPE'
goto_if_false @PIMP_36516
58@ = 4

:PIMP_36516
if or
  is_char_in_zone $scplayer {zone} 'WESTP'
  is_char_in_zone $scplayer {zone} 'HASH'
  is_char_in_zone $scplayer {zone} 'OCEAF'
  is_char_in_zone $scplayer {zone} 'CUNTC'
goto_if_false @PIMP_36590
58@ = 5

:PIMP_36590
if or
  is_char_in_zone $scplayer {zone} 'THEA'
  is_char_in_zone $scplayer {zone} 'GARC'
  is_char_in_zone $scplayer {zone} 'DOH'
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @PIMP_36664
58@ = 6

:PIMP_36664
if or
  is_char_in_zone $scplayer {zone} 'HILLP'
  is_char_in_zone $scplayer {zone} 'SILLY'
  is_char_in_zone $scplayer {zone} 'SFAIR'
goto_if_false @PIMP_36724
58@ = 7

:PIMP_36724
if 
  1 > 58@
goto_if_false @PIMP_36749
58@ = 1

:PIMP_36749
if 
  58@ > 7
goto_if_false @PIMP_36774
58@ = 1

:PIMP_36774
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_37212
if or
  is_char_in_zone $scplayer {zone} 'BFC'
  is_char_in_zone $scplayer {zone} 'GGC'
  is_char_in_zone $scplayer {zone} 'VAIR'
  is_char_in_zone $scplayer {zone} 'LDM'
goto_if_false @PIMP_36866
58@ = 1

:PIMP_36866
if or
  is_char_in_zone $scplayer {zone} 'PINK'
  is_char_in_zone $scplayer {zone} 'DRAG'
  is_char_in_zone $scplayer {zone} 'CAM'
  is_char_in_zone $scplayer {zone} 'LOT'
goto_if_false @PIMP_36940
58@ = 2

:PIMP_36940
if or
  is_char_in_zone $scplayer {zone} 'PIRA'
  is_char_in_zone $scplayer {zone} 'ROY'
  is_char_in_zone $scplayer {zone} 'CALI'
  is_char_in_zone $scplayer {zone} 'HIGH'
goto_if_false @PIMP_37014
58@ = 3

:PIMP_37014
if or
  is_char_in_zone $scplayer {zone} 'PILG'
  is_char_in_zone $scplayer {zone} 'STAR'
  is_char_in_zone $scplayer {zone} 'STRIP'
  is_char_in_zone $scplayer {zone} 'VISA'
goto_if_false @PIMP_37088
58@ = 4

:PIMP_37088
if or
  is_char_in_zone $scplayer {zone} 'ISLE'
  is_char_in_zone $scplayer {zone} 'ROCE'
  is_char_in_zone $scplayer {zone} 'OVS'
  is_char_in_zone $scplayer {zone} 'RING'
goto_if_false @PIMP_37162
58@ = 5

:PIMP_37162
if 
  1 > 58@
goto_if_false @PIMP_37187
58@ = 1

:PIMP_37187
if 
  58@ > 5
goto_if_false @PIMP_37212
58@ = 1

:PIMP_37212
return 

:PIMP_37214
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @PIMP_37295

:PIMP_37237
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @PIMP_37288
wait 0
if 
  not is_player_playing $player1
goto_if_false @PIMP_37281
goto @PIMP_37353

:PIMP_37281
goto @PIMP_37237

:PIMP_37288
goto @PIMP_37346

:PIMP_37295
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @PIMP_37346
wait 0
if 
  not is_player_playing $player1
goto_if_false @PIMP_37339
goto @PIMP_37353

:PIMP_37339
goto @PIMP_37295

:PIMP_37346
goto @PIMP_37353

:PIMP_37353
if 
  49@ == 0
goto_if_false @PIMP_37387
print_big 'PIMP_40' {time} 5000 {style} TextStyle.Middle

:PIMP_37387
if 
  49@ == 1
goto_if_false @PIMP_37421
print_big 'PIMP_41' {time} 5000 {style} TextStyle.Middle

:PIMP_37421
if 
  49@ == 2
goto_if_false @PIMP_37455
print_big 'PIMP_42' {time} 5000 {style} TextStyle.Middle

:PIMP_37455
if 
  49@ == 3
goto_if_false @PIMP_37489
print_big 'PIMP_43' {time} 5000 {style} TextStyle.Middle

:PIMP_37489
if 
  49@ == 4
goto_if_false @PIMP_37523
print_big 'PIMP_44' {time} 5000 {style} TextStyle.Middle

:PIMP_37523
if 
  49@ == 5
goto_if_false @PIMP_37557
print_big 'PIMP_45' {time} 5000 {style} TextStyle.Middle

:PIMP_37557
if 
  49@ == 6
goto_if_false @PIMP_37591
print_big 'PIMP_46' {time} 5000 {style} TextStyle.Middle

:PIMP_37591
if 
  49@ == 7
goto_if_false @PIMP_37625
print_big 'PIMP_47' {time} 5000 {style} TextStyle.Middle

:PIMP_37625
if 
  49@ == 8
goto_if_false @PIMP_37659
print_big 'PIMP_48' {time} 5000 {style} TextStyle.Middle

:PIMP_37659
if 
  49@ == 9
goto_if_false @PIMP_37693
print_big 'PIMP_49' {time} 5000 {style} TextStyle.Middle

:PIMP_37693
return 

:PIMP_37695
print_with_number_big 'PIMP_50' {num} 1000 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 2
add_score $player1 {money} 1000
clear_wanted_level $player1
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_37762
register_oddjob_mission_passed 
player_made_progress 1
$pimp_passed_once = 1

:PIMP_37762
return 

:PIMP_37764
clear_mission_audio MissionAudioSlot.Slot4
clear_onscreen_timer $pimp_bikeostimer
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 36
mark_model_as_no_longer_needed 29
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 152
mark_model_as_no_longer_needed 75
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 48
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 19
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_37896
set_char_cant_be_dragged_out $scplayer {state} False

:PIMP_37896
remove_blip 88@
remove_blip 89@
remove_blip 90@
remove_blip 522@
if 
  34@ == 1
goto_if_false @PIMP_37939
delete_menu 529@

:PIMP_37939
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
$timer_mobile_start = get_game_timer 
$flag_player_on_pimp_mission = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 128---------------
// Originally: Arena Mission: Blood Ring

:BLOOD
script_name 'BLOOD'
gosub @BLOOD_47
if 
  has_deatharrest_been_executed 
goto_if_false @BLOOD_38
gosub @BLOOD_13135

:BLOOD_38
gosub @BLOOD_13240
terminate_this_script 

:BLOOD_47
$onmission = 1
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_74
register_mission_given 

:BLOOD_74
load_mission_text 'BLOOD'
if 
  $onmission == 0
goto_if_false @BLOOD_202
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
87@ = create_object #BB_PICKUP {x} 170@ {y} 171@ {z} 172@
84@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
85@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
86@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
95@ = create_car 504 {x} 154@ {y} 155@ {z} 156@

:BLOOD_202
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
91@ = 0
92@ = 0
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_269
$blood_time_to_beat = 60
$blood_players_current_time = 60000

:BLOOD_269
93@ = 0
94@ = 0
95@ = 0
$pimp_runtimer = 30000
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = -1
154@ = -1280.9
155@ = 994.8
156@ = 1037.0
157@ = 90.0
158@ = 0.0
159@ = 0.0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
169@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
174@ = 0.0
175@ = 0.0
176@ = 0.0
177@ = 0.0
178@ = 0.0
179@ = 0.0
180@ = 0.0
181@ = 0.0
182@ = 0.0
183@ = 0.0
184@ = 0.0
103@ = 0
111@ = 0
104@ = 0
105@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
106@ = 0.0
set_lvar_int_to_constant 131@ = 33200
set_lvar_int_to_constant 132@ = 33202
set_lvar_int_to_constant 133@ = 33205
set_lvar_int_to_constant 134@ = 33200
set_lvar_int_to_constant 135@ = 33202
set_lvar_int_to_constant 136@ = 33205
set_lvar_int_to_constant 137@ = 33200
set_lvar_int_to_constant 138@ = 33202
set_lvar_int_to_constant 139@ = 33205
set_lvar_int_to_constant 140@ = 33200
set_lvar_int_to_constant 141@ = 33202
set_lvar_int_to_constant 142@ = 33205
set_lvar_int_to_constant 143@ = 33200
set_lvar_int_to_constant 144@ = 33202
set_lvar_int_to_constant 145@ = 33205
set_lvar_int_to_constant 146@ = 33200
set_lvar_int_to_constant 147@ = 33202
set_lvar_int_to_constant 148@ = 33205
set_lvar_int_to_constant 149@ = 33200
set_lvar_int_to_constant 150@ = 33202
set_lvar_int_to_constant 151@ = 33205
set_lvar_int_to_constant 152@ = 33200
set_lvar_int_to_constant 153@ = 33202
107@ = 0
108@ = 0
wait 0
do_fade 500 {direction} Fade.Out

:BLOOD_1062
if 
  get_fading_status 
goto_if_false @BLOOD_1086
wait 0
goto @BLOOD_1062

:BLOOD_1086
request_model 504
request_model 439
request_model 353
request_model #BB_PICKUP
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827

:BLOOD_1113
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BLOOD_1139
wait 0
goto @BLOOD_1113

:BLOOD_1139
load_all_models_now 
override_next_restart -2126.3 {y} -440.6 {z} 34.5 {heading} 82.7
force_all_vehicle_lights_off True
suppress_car_model 403
suppress_car_model 408
suppress_car_model 409
suppress_car_model 413
suppress_car_model 414
suppress_car_model 418
suppress_car_model 423
suppress_car_model 428
suppress_car_model 431
suppress_car_model 433
suppress_car_model 437
suppress_car_model 440
suppress_car_model 442
suppress_car_model 443
suppress_car_model 444
suppress_car_model 455
suppress_car_model 456
suppress_car_model 458
suppress_car_model 470
suppress_car_model 482
suppress_car_model 483
suppress_car_model 486
suppress_car_model 489
suppress_car_model 498
suppress_car_model 499
suppress_car_model 508
suppress_car_model 514
suppress_car_model 515
suppress_car_model 524
suppress_car_model 525
suppress_car_model 578
suppress_car_model 582
suppress_car_model 588
set_player_control $player1 {state} False
185@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
hide_all_frontend_blips True
set_free_health_care $player1 {state} True
switch_rubbish 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
shut_player_up $player1 {_p2} 1
set_char_coordinates $scplayer {x} -1398.4611 {y} 995.641 {z} 1024.462
set_area_visible 15
set_char_area_visible $scplayer {areaId} 15
set_extra_colours 2 {fade} False
request_collision 154@ {y} 155@
load_scene 154@ {y} 155@ {z} 156@
clear_area -1280.9 {y} 994.8 {z} 1037.0 {radius} 300.0 {clearParticles} True
load_scene_in_direction -1280.8 {y} 994.7 {z} 1036.0 {heading} 90.0
103@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Mp5
give_weapon_to_char $scplayer {weaponType} WeaponType.Mp5 {ammo} 30000
set_lvar_int_to_constant 108@ = 504
gosub @BLOOD_15567
34@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
set_load_collision_for_car_flag 34@ {state} True
set_vehicle_area_visible 34@ {interiorId} 15
set_car_heading 34@ {heading} 157@
lock_car_doors 34@ {lockStatus} CarLock.LockedPlayerInside
warp_char_into_car $scplayer {vehicle} 34@
set_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
set_car_strong 34@ {state} True
set_upsidedown_car_not_damaged 34@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 1249
83@ = create_random_char_as_passenger 34@ {seat} SeatId.BikeRear
set_char_area_visible 83@ {areaId} 15
set_char_decision_maker 83@ {handleOrTemplate} 185@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_proofs 83@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:BLOOD_1662
if 
  16 > 93@
goto_if_false @BLOOD_2121
wait 0
gosub @BLOOD_13364
104@, 105@ = get_random_car_model_in_memory True
if 
  104@ >= 0
goto_if_false @BLOOD_1755
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15567
create_car 104@ {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)

:BLOOD_1755
if 
  104@ == -1
goto_if_false @BLOOD_1809
set_lvar_int_to_constant 108@ = 439
gosub @BLOOD_15567
create_car 439 {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)

:BLOOD_1809
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_2107
set_car_heading 35@(93@,16i) {heading} 157@
set_load_collision_for_car_flag 35@(93@,16i) {state} True
set_car_straight_line_distance 35@(93@,16i) {distance} 255
set_can_burst_car_tyres 35@(93@,16i) {state} False
create_random_char_as_driver 35@(93@,16i) {var_handle} 51@(93@,16i)
set_char_area_visible 51@(93@,16i) {areaId} 15
set_char_decision_maker 51@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 51@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
101@ = get_maximum_number_of_passengers 35@(93@,16i)
if 
  101@ > 0
goto_if_false @BLOOD_2026
create_random_char_as_passenger 35@(93@,16i) {seat} SeatId.BikeRear {var_handle} 67@(93@,16i)
set_char_decision_maker 67@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 67@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
give_weapon_to_char 67@(93@,16i) {weaponType} WeaponType.Mp5 {ammo} 30000

:BLOOD_2026
if 
  is_char_on_any_bike 51@(93@,16i)
goto_if_false @BLOOD_2068
set_char_can_be_knocked_off_bike 51@(93@,16i) {stayOnBike} True
set_char_can_be_knocked_off_bike 67@(93@,16i) {stayOnBike} True

:BLOOD_2068
add_stuck_car_check 35@(93@,16i) {distance} 1.0 {time} 3000
set_upsidedown_car_not_damaged 35@(93@,16i) {state} True
set_vehicle_area_visible 35@(93@,16i) {interiorId} 15

:BLOOD_2107
93@ += 1
goto @BLOOD_1662

:BLOOD_2121
switch_widescreen True
set_fixed_camera_position -1273.2 {y} 992.4 {z} 1038.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1307.9 {y} 995.3 {z} 1034.2 {switchStyle} SwitchType.JumpCut
89@ = create_checkpoint CheckpointType.Tube {x} -1432.6 {y} 1016.1 {z} 1024.1 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In

:BLOOD_2238
if 
  get_fading_status 
goto_if_false @BLOOD_2262
wait 0
goto @BLOOD_2238

:BLOOD_2262
skip_cutscene_start_internal @BLOOD_2988
print_now 'BLOD_10' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2292
if 
  5000 > TIMERA
goto_if_false @BLOOD_2322
wait 0
goto @BLOOD_2292

:BLOOD_2322
set_fixed_camera_position -1441.9 {y} 1054.6 {z} 1040.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1432.0 {y} 1012.6 {z} 1034.7 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_01' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2396
if 
  5000 > TIMERA
goto_if_false @BLOOD_2426
wait 0
goto @BLOOD_2396

:BLOOD_2426
set_fixed_camera_position -1464.6 {y} 943.6 {z} 1036.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1436.1 {y} 923.4 {z} 1040.2 {switchStyle} SwitchType.JumpCut
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_2518
print_now 'BLOD_11' {time} 5000 {flag} 1
goto @BLOOD_2537

:BLOOD_2518
print_with_number_now 'BLOD_12' {num} $blood_attempt {duration} 5000 {flag} 1

:BLOOD_2537
TIMERA = 0

:BLOOD_2544
if 
  5000 > TIMERA
goto_if_false @BLOOD_2574
wait 0
goto @BLOOD_2544

:BLOOD_2574
set_fixed_camera_position -1492.7 {y} 1029.5 {z} 1038.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1539.1 {y} 1032.3 {z} 1038.9 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_03' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2648
if 
  5000 > TIMERA
goto_if_false @BLOOD_2678
wait 0
goto @BLOOD_2648

:BLOOD_2678
set_fixed_camera_position -1314.1 {y} 1040.6 {z} 1038.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1373.1 {y} 1047.2 {z} 1034.5 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_02' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2752
if 
  5000 > TIMERA
goto_if_false @BLOOD_2782
wait 0
goto @BLOOD_2752

:BLOOD_2782
87@ = create_object #BB_PICKUP {x} -1345.2 {y} 978.7 {z} 1024.9
set_object_area_visible 87@ {areaId} 15
set_fixed_camera_position -1342.1 {y} 975.2 {z} 1026.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1345.2 {y} 979.7 {z} 1026.4 {switchStyle} SwitchType.JumpCut
print_now 'SPANNER' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2886
if 
  5000 > TIMERA
goto_if_false @BLOOD_2988
wait 0
if 
  does_object_exist 87@
goto_if_false @BLOOD_2981
if 
  358.0 > 106@
goto_if_false @BLOOD_2971
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_2981

:BLOOD_2971
106@ = 0.0

:BLOOD_2981
goto @BLOOD_2886

:BLOOD_2988
skip_cutscene_end 
do_fade 500 {direction} Fade.Out

:BLOOD_2997
if 
  get_fading_status 
goto_if_false @BLOOD_3093
wait 0
if 
  does_object_exist 87@
goto_if_false @BLOOD_3086
if 
  358.0 > 106@
goto_if_false @BLOOD_3076
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_3086

:BLOOD_3076
106@ = 0.0

:BLOOD_3086
goto @BLOOD_2997

:BLOOD_3093
delete_checkpoint 89@
158@ = -1432.6
159@ = 1016.1
160@ = 1024.1
89@ = create_checkpoint CheckpointType.Tube {x} 158@ {y} 159@ {z} 160@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
delete_object 87@
gosub @BLOOD_14473
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:BLOOD_3207
if 
  get_fading_status 
goto_if_false @BLOOD_3231
wait 0
goto @BLOOD_3207

:BLOOD_3231
print_big 'RACE2' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE3' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE4' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE5' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRaceGo
wait 800
clear_prints 
set_player_control $player1 {state} True
display_onscreen_timer $pimp_runtimer {direction} TimerDirection.Down
93@ = 0

:BLOOD_3438
if 
  16 > 93@
goto_if_false @BLOOD_3563
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_3549
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_3549
set_car_forward_speed 35@(93@,16i) {forwardSpeed} 10.0
set_car_cruise_speed 35@(93@,16i) {maxSpeed} 100.0
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.GoForward {time} 5000

:BLOOD_3549
93@ += 1
goto @BLOOD_3438

:BLOOD_3563
wait 0
clear_wanted_level $player1
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BLOOD_3594
goto @BLOOD_13153

:BLOOD_3594
if 
  91@ == 0
goto_if_false @BLOOD_12351
if 
  not is_car_dead 34@
goto_if_false @BLOOD_12351
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1530.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 923.0 {drawSphere} False
goto_if_false @BLOOD_3803
if 
  97@ == 0
goto_if_false @BLOOD_3796
if 
  not is_char_dead 52@
goto_if_false @BLOOD_3705
clear_char_tasks 52@

:BLOOD_3705
if 
  not is_char_dead 53@
goto_if_false @BLOOD_3726
clear_char_tasks 53@

:BLOOD_3726
if 
  not is_char_dead 67@
goto_if_false @BLOOD_3747
clear_char_tasks 67@

:BLOOD_3747
if 
  not is_char_dead 68@
goto_if_false @BLOOD_3768
clear_char_tasks 68@

:BLOOD_3768
if 
  not is_char_dead 69@
goto_if_false @BLOOD_3789
clear_char_tasks 69@

:BLOOD_3789
97@ = 1

:BLOOD_3796
goto @BLOOD_3933

:BLOOD_3803
if 
  97@ == 1
goto_if_false @BLOOD_3933
if 
  not is_char_dead 52@
goto_if_false @BLOOD_3842
clear_char_tasks 52@

:BLOOD_3842
if 
  not is_char_dead 53@
goto_if_false @BLOOD_3863
clear_char_tasks 53@

:BLOOD_3863
if 
  not is_char_dead 67@
goto_if_false @BLOOD_3884
clear_char_tasks 67@

:BLOOD_3884
if 
  not is_char_dead 68@
goto_if_false @BLOOD_3905
clear_char_tasks 68@

:BLOOD_3905
if 
  not is_char_dead 69@
goto_if_false @BLOOD_3926
clear_char_tasks 69@

:BLOOD_3926
97@ = 0

:BLOOD_3933
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1530.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 1076.0 {drawSphere} False
goto_if_false @BLOOD_4108
if 
  98@ == 0
goto_if_false @BLOOD_4101
if 
  not is_char_dead 55@
goto_if_false @BLOOD_4010
clear_char_tasks 55@

:BLOOD_4010
if 
  not is_char_dead 56@
goto_if_false @BLOOD_4031
clear_char_tasks 56@

:BLOOD_4031
if 
  not is_char_dead 70@
goto_if_false @BLOOD_4052
clear_char_tasks 70@

:BLOOD_4052
if 
  not is_char_dead 71@
goto_if_false @BLOOD_4073
clear_char_tasks 71@

:BLOOD_4073
if 
  not is_char_dead 72@
goto_if_false @BLOOD_4094
clear_char_tasks 72@

:BLOOD_4094
98@ = 1

:BLOOD_4101
goto @BLOOD_4238

:BLOOD_4108
if 
  98@ == 1
goto_if_false @BLOOD_4238
if 
  not is_char_dead 55@
goto_if_false @BLOOD_4147
clear_char_tasks 55@

:BLOOD_4147
if 
  not is_char_dead 56@
goto_if_false @BLOOD_4168
clear_char_tasks 56@

:BLOOD_4168
if 
  not is_char_dead 70@
goto_if_false @BLOOD_4189
clear_char_tasks 70@

:BLOOD_4189
if 
  not is_char_dead 71@
goto_if_false @BLOOD_4210
clear_char_tasks 71@

:BLOOD_4210
if 
  not is_char_dead 72@
goto_if_false @BLOOD_4231
clear_char_tasks 72@

:BLOOD_4231
98@ = 0

:BLOOD_4238
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1265.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 923.0 {drawSphere} False
goto_if_false @BLOOD_4413
if 
  99@ == 0
goto_if_false @BLOOD_4406
if 
  not is_char_dead 58@
goto_if_false @BLOOD_4315
clear_char_tasks 58@

:BLOOD_4315
if 
  not is_char_dead 59@
goto_if_false @BLOOD_4336
clear_char_tasks 59@

:BLOOD_4336
if 
  not is_char_dead 73@
goto_if_false @BLOOD_4357
clear_char_tasks 73@

:BLOOD_4357
if 
  not is_char_dead 74@
goto_if_false @BLOOD_4378
clear_char_tasks 74@

:BLOOD_4378
if 
  not is_char_dead 75@
goto_if_false @BLOOD_4399
clear_char_tasks 75@

:BLOOD_4399
99@ = 1

:BLOOD_4406
goto @BLOOD_4543

:BLOOD_4413
if 
  99@ == 1
goto_if_false @BLOOD_4543
if 
  not is_char_dead 58@
goto_if_false @BLOOD_4452
clear_char_tasks 58@

:BLOOD_4452
if 
  not is_char_dead 59@
goto_if_false @BLOOD_4473
clear_char_tasks 59@

:BLOOD_4473
if 
  not is_char_dead 73@
goto_if_false @BLOOD_4494
clear_char_tasks 73@

:BLOOD_4494
if 
  not is_char_dead 74@
goto_if_false @BLOOD_4515
clear_char_tasks 74@

:BLOOD_4515
if 
  not is_char_dead 75@
goto_if_false @BLOOD_4536
clear_char_tasks 75@

:BLOOD_4536
99@ = 0

:BLOOD_4543
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1265.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 1076.0 {drawSphere} False
goto_if_false @BLOOD_4718
if 
  100@ == 0
goto_if_false @BLOOD_4711
if 
  not is_char_dead 61@
goto_if_false @BLOOD_4620
clear_char_tasks 61@

:BLOOD_4620
if 
  not is_char_dead 62@
goto_if_false @BLOOD_4641
clear_char_tasks 62@

:BLOOD_4641
if 
  not is_char_dead 76@
goto_if_false @BLOOD_4662
clear_char_tasks 76@

:BLOOD_4662
if 
  not is_char_dead 77@
goto_if_false @BLOOD_4683
clear_char_tasks 77@

:BLOOD_4683
if 
  not is_char_dead 78@
goto_if_false @BLOOD_4704
clear_char_tasks 78@

:BLOOD_4704
100@ = 1

:BLOOD_4711
goto @BLOOD_4848

:BLOOD_4718
if 
  100@ == 1
goto_if_false @BLOOD_4848
if 
  not is_char_dead 61@
goto_if_false @BLOOD_4757
clear_char_tasks 61@

:BLOOD_4757
if 
  not is_char_dead 62@
goto_if_false @BLOOD_4778
clear_char_tasks 62@

:BLOOD_4778
if 
  not is_char_dead 76@
goto_if_false @BLOOD_4799
clear_char_tasks 76@

:BLOOD_4799
if 
  not is_char_dead 77@
goto_if_false @BLOOD_4820
clear_char_tasks 77@

:BLOOD_4820
if 
  not is_char_dead 78@
goto_if_false @BLOOD_4841
clear_char_tasks 78@

:BLOOD_4841
100@ = 0

:BLOOD_4848
if 
  16 > 93@
goto_if_false @BLOOD_11472
if 
  93@ == 0
goto_if_false @BLOOD_5608
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_5608
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_5327
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_5271
if 
  97@ == 0
goto_if_false @BLOOD_5152
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
173@ = generate_random_float_in_range -1530.0 {max} -1384.0
174@ = generate_random_float_in_range 995.0 {max} 923.0
175@ = get_ground_z_for_3d_coord 173@ {y} 174@ {z} 1078.7
if 
  1034.1 > 175@
goto_if_false @BLOOD_5152
if 
  175@ > 1022.8
goto_if_false @BLOOD_5152
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 173@ {y} 174@ {z} 175@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5152
if 
  97@ == 1
goto_if_false @BLOOD_5264
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5264
goto @BLOOD_5327

:BLOOD_5271
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5327
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_5327
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_5608
if 
  97@ == 0
goto_if_false @BLOOD_5517
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5517
if 
  not is_car_dead 36@
goto_if_false @BLOOD_5461
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 36@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_5517

:BLOOD_5461
if 
  not is_car_dead 37@
goto_if_false @BLOOD_5517
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 37@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_5517
if 
  97@ == 1
goto_if_false @BLOOD_5608
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5608
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_5608
if or
  93@ == 1
  93@ == 2
goto_if_false @BLOOD_6214
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_6214
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_5996
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_5940
if 
  97@ == 0
goto_if_false @BLOOD_5821
if 
  not is_car_dead 35@
goto_if_false @BLOOD_5821
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 35@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5821
if 
  97@ == 1
goto_if_false @BLOOD_5933
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5933
goto @BLOOD_5996

:BLOOD_5940
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5996
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_5996
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_6214
if 
  97@ == 0
goto_if_false @BLOOD_6123
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6123
if 
  not is_car_dead 35@
goto_if_false @BLOOD_6123
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 35@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6123
if 
  97@ == 1
goto_if_false @BLOOD_6214
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6214
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6214
if 
  93@ == 3
goto_if_false @BLOOD_6956
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_6956
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_6675
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_6619
if 
  98@ == 0
goto_if_false @BLOOD_6500
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
176@ = generate_random_float_in_range -1530.0 {max} -1384.0
177@ = generate_random_float_in_range 995.0 {max} 1056.0
178@ = get_ground_z_for_3d_coord 176@ {y} 177@ {z} 1078.7
if 
  1034.1 > 178@
goto_if_false @BLOOD_6500
if 
  178@ > 1022.8
goto_if_false @BLOOD_6500
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 176@ {y} 177@ {z} 178@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_6500
if 
  98@ == 1
goto_if_false @BLOOD_6612
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_6612
goto @BLOOD_6675

:BLOOD_6619
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6675
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_6675
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_6956
if 
  98@ == 0
goto_if_false @BLOOD_6865
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6865
if 
  not is_car_dead 39@
goto_if_false @BLOOD_6809
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 39@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_6865

:BLOOD_6809
if 
  not is_car_dead 40@
goto_if_false @BLOOD_6865
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_6865
if 
  98@ == 1
goto_if_false @BLOOD_6956
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6956
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6956
if or
  93@ == 4
  93@ == 5
goto_if_false @BLOOD_7562
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_7562
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_7344
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_7288
if 
  98@ == 0
goto_if_false @BLOOD_7169
if 
  not is_car_dead 38@
goto_if_false @BLOOD_7169
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 38@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7169
if 
  98@ == 1
goto_if_false @BLOOD_7281
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7281
goto @BLOOD_7344

:BLOOD_7288
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7344
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_7344
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_7562
if 
  98@ == 0
goto_if_false @BLOOD_7471
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7471
if 
  not is_car_dead 38@
goto_if_false @BLOOD_7471
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 38@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_7471
if 
  98@ == 1
goto_if_false @BLOOD_7562
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7562
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_7562
if 
  93@ == 6
goto_if_false @BLOOD_8304
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_8304
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_8023
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_7967
if 
  99@ == 0
goto_if_false @BLOOD_7848
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
179@ = generate_random_float_in_range -1265.0 {max} -1384.0
180@ = generate_random_float_in_range 995.0 {max} 923.0
181@ = get_ground_z_for_3d_coord 179@ {y} 180@ {z} 1078.7
if 
  1034.1 > 181@
goto_if_false @BLOOD_7848
if 
  181@ > 1022.8
goto_if_false @BLOOD_7848
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 179@ {y} 180@ {z} 181@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7848
if 
  99@ == 1
goto_if_false @BLOOD_7960
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7960
goto @BLOOD_8023

:BLOOD_7967
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8023
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_8023
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_8304
if 
  99@ == 0
goto_if_false @BLOOD_8213
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8213
if 
  not is_car_dead 42@
goto_if_false @BLOOD_8157
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 42@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_8213

:BLOOD_8157
if 
  not is_car_dead 43@
goto_if_false @BLOOD_8213
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 43@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_8213
if 
  99@ == 1
goto_if_false @BLOOD_8304
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8304
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8304
if or
  93@ == 7
  93@ == 8
goto_if_false @BLOOD_8910
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_8910
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_8692
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_8636
if 
  99@ == 0
goto_if_false @BLOOD_8517
if 
  not is_car_dead 41@
goto_if_false @BLOOD_8517
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 41@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_8517
if 
  99@ == 1
goto_if_false @BLOOD_8629
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_8629
goto @BLOOD_8692

:BLOOD_8636
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8692
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_8692
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_8910
if 
  99@ == 0
goto_if_false @BLOOD_8819
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8819
if 
  not is_car_dead 41@
goto_if_false @BLOOD_8819
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 41@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8819
if 
  99@ == 1
goto_if_false @BLOOD_8910
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8910
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8910
if 
  93@ == 9
goto_if_false @BLOOD_9652
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_9652
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_9371
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_9315
if 
  100@ == 0
goto_if_false @BLOOD_9196
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
182@ = generate_random_float_in_range -1265.0 {max} -1384.0
183@ = generate_random_float_in_range 995.0 {max} 1056.0
184@ = get_ground_z_for_3d_coord 182@ {y} 183@ {z} 1078.7
if 
  1034.1 > 184@
goto_if_false @BLOOD_9196
if 
  184@ > 1022.8
goto_if_false @BLOOD_9196
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 182@ {y} 183@ {z} 184@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9196
if 
  100@ == 1
goto_if_false @BLOOD_9308
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9308
goto @BLOOD_9371

:BLOOD_9315
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9371
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_9371
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_9652
if 
  100@ == 0
goto_if_false @BLOOD_9561
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9561
if 
  not is_car_dead 45@
goto_if_false @BLOOD_9505
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 45@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_9561

:BLOOD_9505
if 
  not is_car_dead 46@
goto_if_false @BLOOD_9561
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 46@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_9561
if 
  100@ == 1
goto_if_false @BLOOD_9652
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9652
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_9652
if or
  93@ == 10
  93@ == 11
goto_if_false @BLOOD_10258
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_10258
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10040
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_9984
if 
  100@ == 0
goto_if_false @BLOOD_9865
if 
  not is_car_dead 44@
goto_if_false @BLOOD_9865
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 44@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9865
if 
  100@ == 1
goto_if_false @BLOOD_9977
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9977
goto @BLOOD_10040

:BLOOD_9984
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10040
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10040
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_10258
if 
  100@ == 0
goto_if_false @BLOOD_10167
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10167
if 
  not is_car_dead 44@
goto_if_false @BLOOD_10167
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 44@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_10167
if 
  100@ == 1
goto_if_false @BLOOD_10258
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10258
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_10258
if or
  93@ == 12
  93@ == 13
goto_if_false @BLOOD_10593
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_10593
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10500
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_10444
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_10437
goto @BLOOD_10500

:BLOOD_10444
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10500
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10500
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_10593
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10593
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 40

:BLOOD_10593
if or
  93@ == 14
  93@ == 15
goto_if_false @BLOOD_11090
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11090
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10843
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_10787
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 158@ {y} 159@ {z} 160@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_10780
goto @BLOOD_10843

:BLOOD_10787
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10843
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10843
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_11090
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11090
set_lvar_int_to_lvar_int 88@ = 35@(93@,16i)
if 
  93@ == 14
goto_if_false @BLOOD_10999
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 84@ = 95@
if 
  84@ <> -1
goto_if_false @BLOOD_10999
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 84@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_10999
if 
  93@ == 15
goto_if_false @BLOOD_11090
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 85@ = 95@
if 
  85@ <> -1
goto_if_false @BLOOD_11090
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 85@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_11090
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11199
if 
  not is_char_dead 83@
goto_if_false @BLOOD_11199
if or
  has_car_been_damaged_by_char 35@(93@,16i) {handle} 83@
  has_car_been_damaged_by_char 35@(93@,16i) {handle} $scplayer
goto_if_false @BLOOD_11179
112@(93@,16i) = 1
goto @BLOOD_11190

:BLOOD_11179
112@(93@,16i) = 0

:BLOOD_11190
clear_car_last_damage_entity 35@(93@,16i)

:BLOOD_11199
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11411
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_11404
if 
  is_car_upsidedown 35@(93@,16i)
goto_if_false @BLOOD_11330
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@(93@,16i) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11330
167@, 168@, 169@ = get_car_coordinates 35@(93@,16i)
set_car_coordinates 35@(93@,16i) {x} 167@ {y} 168@ {z} 169@

:BLOOD_11330
if 
  is_car_stuck 35@(93@,16i)
goto_if_false @BLOOD_11404
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11404
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.Reverse {time} 3000

:BLOOD_11404
goto @BLOOD_11458

:BLOOD_11411
if 
  112@(93@,16i) == 1
goto_if_false @BLOOD_11440
111@ += 1

:BLOOD_11440
112@(93@,16i) = 0
gosub @BLOOD_14625

:BLOOD_11458
93@ += 1
goto @BLOOD_11479

:BLOOD_11472
93@ = 0

:BLOOD_11479
if 
  not is_car_dead 47@
goto_if_false @BLOOD_11544
if 
  locate_car_3d 47@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11544
gosub @BLOOD_14294

:BLOOD_11544
if 
  not is_car_dead 48@
goto_if_false @BLOOD_11609
if 
  locate_car_3d 48@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11609
gosub @BLOOD_14294

:BLOOD_11609
if 
  not is_car_dead 49@
goto_if_false @BLOOD_11674
if 
  locate_car_3d 49@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11674
gosub @BLOOD_14294

:BLOOD_11674
if 
  not is_car_dead 50@
goto_if_false @BLOOD_11739
if 
  locate_car_3d 50@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11739
gosub @BLOOD_14294

:BLOOD_11739
if 
  does_object_exist 87@
goto_if_false @BLOOD_11927
if 
  locate_char_any_means_object_2d $scplayer {object} 87@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @BLOOD_11864
delete_object 87@
96@ = get_car_health 34@
if 
  999 > 96@
goto_if_false @BLOOD_11841
96@ += 500
set_car_health 34@ {health} 96@
goto @BLOOD_11857

:BLOOD_11841
96@ = 1500
set_car_health 34@ {health} 96@

:BLOOD_11857
goto @BLOOD_11920

:BLOOD_11864
if 
  358.0 > 106@
goto_if_false @BLOOD_11910
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_11920

:BLOOD_11910
106@ = 0.0

:BLOOD_11920
goto @BLOOD_11934

:BLOOD_11927
gosub @BLOOD_14473

:BLOOD_11934
if 
  locate_char_any_means_3d $scplayer {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_12095
if 
  $pimp_runtimer > 0
goto_if_false @BLOOD_12095
96@ = get_car_health 34@
if 
  1199 > 96@
goto_if_false @BLOOD_12044
96@ += 300
set_car_health 34@ {health} 96@
goto @BLOOD_12060

:BLOOD_12044
96@ = 1500
set_car_health 34@ {health} 96@

:BLOOD_12060
$pimp_runtimer += 15000
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
gosub @BLOOD_14294

:BLOOD_12095
if 
  is_car_upsidedown 34@
goto_if_false @BLOOD_12171
if 
  is_car_stopped 34@
goto_if_false @BLOOD_12171
167@, 168@, 169@ = get_car_coordinates 34@
157@ = get_car_heading 34@
set_car_coordinates 34@ {x} 167@ {y} 168@ {z} 169@
set_car_heading 34@ {heading} 157@

:BLOOD_12171
if 
  not is_char_dead 83@
goto_if_false @BLOOD_12293
$task_status = get_script_task_status 83@ {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_12293
set_lvar_int_to_lvar_int 88@ = 34@
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 86@ = 95@
if 
  86@ <> -1
goto_if_false @BLOOD_12293
task_drive_by 83@ {targetChar} -1 {targetVehicle} 86@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:BLOOD_12293
gosub @BLOOD_17526
if 
  is_int_var_greater_than_int_var $pimp_runtimer > $blood_players_current_time
goto_if_false @BLOOD_12326
91@ = 1

:BLOOD_12326
if 
  0 >= $pimp_runtimer
goto_if_false @BLOOD_12351
91@ = 2

:BLOOD_12351
if 
  91@ == 1
goto_if_false @BLOOD_12774
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
set_player_control $player1 {state} False
switch_widescreen True
play_mission_passed_tune 1
93@ = 0

:BLOOD_12411
if 
  16 > 93@
goto_if_false @BLOOD_12478
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_12464
freeze_car_position 35@(93@,16i) {state} True

:BLOOD_12464
93@ += 1
goto @BLOOD_12411

:BLOOD_12478
gosub @BLOOD_17072
set_lvar_int_to_var_int 109@ = $blood_attempt
109@ *= 60
increment_int_stat StatId.BloodringTime {value} 109@
increment_int_stat StatId.BloodringKills {value} 111@
$blood_attempt += 1
$blood_players_current_time += 60000
TIMERA = 0

:BLOOD_12540
if 
  5000 > TIMERA
goto_if_false @BLOOD_12570
wait 0
goto @BLOOD_12540

:BLOOD_12570
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:BLOOD_12585
if 
  get_fading_status 
goto_if_false @BLOOD_12609
wait 0
goto @BLOOD_12585

:BLOOD_12609
switch_widescreen False
delete_menu 110@
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
request_collision -2126.3 {y} -440.6
load_scene_in_direction -2119.0 {y} -440.7 {z} 34.5 {heading} 82.6
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2126.3 {y} -440.6 {z} 34.5
set_char_heading $scplayer {heading} 82.7
clear_onscreen_timer $pimp_runtimer
remove_blip 90@
delete_checkpoint 89@
hide_all_frontend_blips False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:BLOOD_12736
if 
  get_fading_status 
goto_if_false @BLOOD_12760
wait 0
goto @BLOOD_12736

:BLOOD_12760
set_player_control $player1 {state} True
goto @BLOOD_13153

:BLOOD_12774
if 
  91@ == 2
goto_if_false @BLOOD_13128
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
set_player_control $player1 {state} False
93@ = 0

:BLOOD_12826
if 
  16 > 93@
goto_if_false @BLOOD_12893
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_12879
freeze_car_position 35@(93@,16i) {state} True

:BLOOD_12879
93@ += 1
goto @BLOOD_12826

:BLOOD_12893
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:BLOOD_12908
if 
  get_fading_status 
goto_if_false @BLOOD_12932
wait 0
goto @BLOOD_12908

:BLOOD_12932
switch_widescreen False
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'BLOD_05' {time} 5000 {flag} 1
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
request_collision -2126.3 {y} -440.6
load_scene_in_direction -2119.0 {y} -440.7 {z} 34.5 {heading} 82.6
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2126.3 {y} -440.6 {z} 34.5
set_char_heading $scplayer {heading} 82.7
clear_onscreen_timer $pimp_runtimer
remove_blip 90@
delete_checkpoint 89@
hide_all_frontend_blips False
cancel_override_restart 
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:BLOOD_13090
if 
  get_fading_status 
goto_if_false @BLOOD_13114
wait 0
goto @BLOOD_13090

:BLOOD_13114
set_player_control $player1 {state} True
goto @BLOOD_13135

:BLOOD_13128
goto @BLOOD_3563

:BLOOD_13135
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:BLOOD_13153
cancel_override_restart 
set_free_health_care $player1 {state} False
clear_prints 
clear_wanted_level $player1
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_13238
register_oddjob_mission_passed 
player_made_progress 1
switch_car_generator $f1_scripted_cut {amount} 101
play_mission_passed_tune 2
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
$blood_passed_once = 1

:BLOOD_13238
return 

:BLOOD_13240
if 
  is_var_text_label_empty s$shop_name
goto_if_false @BLOOD_13258
restore_camera_jumpcut 

:BLOOD_13258
clear_extra_colours False
remove_blip 90@
clear_onscreen_timer $pimp_runtimer
if 
  not is_char_dead $scplayer
goto_if_false @BLOOD_13295
shut_char_up_for_scripted_speech $scplayer {state} False

:BLOOD_13295
shut_all_chars_up False
use_text_commands False
mark_model_as_no_longer_needed 504
mark_model_as_no_longer_needed 439
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #BB_PICKUP
set_char_ammo $scplayer {weaponType} WeaponType.Mp5 {ammo} 103@
delete_checkpoint 89@
dont_suppress_any_car_models 
force_all_vehicle_lights_off False
hide_all_frontend_blips False
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:BLOOD_13364
if 
  93@ == 0
goto_if_false @BLOOD_13422
154@ = -1285.77
155@ = 1014.54
156@ = 1036.5
157@ = 104.4

:BLOOD_13422
if 
  93@ == 1
goto_if_false @BLOOD_13480
154@ = -1299.5
155@ = 1030.74
156@ = 1036.8
157@ = 132.6

:BLOOD_13480
if 
  93@ == 2
goto_if_false @BLOOD_13538
154@ = -1319.3
155@ = 1042.8199
156@ = 1037.1
157@ = 135.4

:BLOOD_13538
if 
  93@ == 3
goto_if_false @BLOOD_13596
154@ = -1349.33
155@ = 1054.47
156@ = 1037.3
157@ = 155.4

:BLOOD_13596
if 
  93@ == 4
goto_if_false @BLOOD_13654
154@ = -1384.33
155@ = 1058.55
156@ = 1037.5
157@ = 173.2

:BLOOD_13654
if 
  93@ == 5
goto_if_false @BLOOD_13712
154@ = -1296.7
155@ = 960.2
156@ = 1035.6
157@ = 60.5

:BLOOD_13712
if 
  93@ == 6
goto_if_false @BLOOD_13770
154@ = -1418.77
155@ = 1057.54
156@ = 1037.5
157@ = 180.4

:BLOOD_13770
if 
  93@ == 7
goto_if_false @BLOOD_13828
154@ = -1460.3
155@ = 1050.3
156@ = 1037.5
157@ = 203.9

:BLOOD_13828
if 
  93@ == 8
goto_if_false @BLOOD_13886
154@ = -1499.77
155@ = 1029.54
156@ = 1037.2
157@ = 242.4

:BLOOD_13886
if 
  93@ == 9
goto_if_false @BLOOD_13944
154@ = -1513.77
155@ = 986.54
156@ = 1036.5
157@ = 271.4

:BLOOD_13944
if 
  93@ == 10
goto_if_false @BLOOD_14002
154@ = -1496.77
155@ = 959.54
156@ = 1036.0
157@ = 293.4

:BLOOD_14002
if 
  93@ == 11
goto_if_false @BLOOD_14060
154@ = -1461.84
155@ = 938.32
156@ = 1035.3
157@ = 345.6

:BLOOD_14060
if 
  93@ == 12
goto_if_false @BLOOD_14118
154@ = -1424.36
155@ = 931.29
156@ = 1035.2
157@ = 0.0

:BLOOD_14118
if 
  93@ == 13
goto_if_false @BLOOD_14176
154@ = -1363.77
155@ = 932.44
156@ = 1035.3
157@ = 17.85

:BLOOD_14176
if 
  93@ == 14
goto_if_false @BLOOD_14234
154@ = -1332.77
155@ = 940.3
156@ = 1037.0
157@ = 39.98

:BLOOD_14234
if 
  93@ == 15
goto_if_false @BLOOD_14292
154@ = -1443.29
155@ = 933.86
156@ = 1035.3
157@ = 351.4

:BLOOD_14292
return 

:BLOOD_14294
158@ = generate_random_float_in_range -1290.0 {max} -1508.0
159@ = generate_random_float_in_range 939.0 {max} 1052.0
160@ = get_ground_z_for_3d_coord 158@ {y} 159@ {z} 1056.7
if 
  160@ > 1034.1
goto_if_false @BLOOD_14368
goto @BLOOD_14294

:BLOOD_14368
if 
  1022.8 > 160@
goto_if_false @BLOOD_14396
goto @BLOOD_14294

:BLOOD_14396
remove_blip 90@
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
if 
  not is_char_dead 65@
goto_if_false @BLOOD_14436
clear_char_tasks 65@

:BLOOD_14436
if 
  not is_char_dead 66@
goto_if_false @BLOOD_14457
clear_char_tasks 66@

:BLOOD_14457
set_checkpoint_coords 89@ {x} 158@ {y} 159@ {z} 160@
return 

:BLOOD_14473
170@ = generate_random_float_in_range -1290.0 {max} -1508.0
171@ = generate_random_float_in_range 939.0 {max} 1052.0
172@ = get_ground_z_for_3d_coord 170@ {y} 171@ {z} 1056.7
if 
  172@ > 1034.1
goto_if_false @BLOOD_14547
goto @BLOOD_14473

:BLOOD_14547
if 
  1022.8 > 172@
goto_if_false @BLOOD_14575
goto @BLOOD_14473

:BLOOD_14575
172@ += 0.5
87@ = create_object #BB_PICKUP {x} 170@ {y} 171@ {z} 172@
set_object_area_visible 87@ {areaId} 15
set_object_collision 87@ {state} False
set_object_dynamic 87@ {state} False
return 

:BLOOD_14625
gosub @BLOOD_15096
if 
  102@ <> -1
goto_if_false @BLOOD_15094
remove_stuck_car_check 35@(93@,16i)
mark_car_as_no_longer_needed 35@(93@,16i)
mark_char_as_no_longer_needed 51@(93@,16i)
mark_char_as_no_longer_needed 67@(93@,16i)
104@, 105@ = get_random_car_model_in_memory True
if 
  104@ >= 0
goto_if_false @BLOOD_14762
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15567
create_car 104@ {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)
set_car_heading 35@(93@,16i) {heading} 157@

:BLOOD_14762
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_15094
set_load_collision_for_car_flag 35@(93@,16i) {state} True
set_car_straight_line_distance 35@(93@,16i) {distance} 255
set_can_burst_car_tyres 35@(93@,16i) {state} False
create_random_char_as_driver 35@(93@,16i) {var_handle} 51@(93@,16i)
set_char_area_visible 51@(93@,16i) {areaId} 15
set_char_decision_maker 51@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 51@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_char_flag 51@(93@,16i) {state} True
101@ = get_maximum_number_of_passengers 35@(93@,16i)
if 
  101@ > 0
goto_if_false @BLOOD_14978
create_random_char_as_passenger 35@(93@,16i) {seat} SeatId.BikeRear {var_handle} 67@(93@,16i)
set_char_decision_maker 67@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 67@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
give_weapon_to_char 67@(93@,16i) {weaponType} WeaponType.Mp5 {ammo} 30000

:BLOOD_14978
if 
  is_char_on_any_bike 51@(93@,16i)
goto_if_false @BLOOD_15020
set_char_can_be_knocked_off_bike 51@(93@,16i) {stayOnBike} True
set_char_can_be_knocked_off_bike 67@(93@,16i) {stayOnBike} True

:BLOOD_15020
add_stuck_car_check 35@(93@,16i) {distance} 1.0 {time} 3000
set_upsidedown_car_not_damaged 35@(93@,16i) {state} True
set_vehicle_area_visible 35@(93@,16i) {interiorId} 15
set_car_forward_speed 35@(93@,16i) {forwardSpeed} 25.0
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.GoForward {time} 3000

:BLOOD_15094
return 

:BLOOD_15096
102@ = generate_random_int_in_range 1 {max} 4
if 
  102@ == 1
goto_if_false @BLOOD_15220
if 
  not is_point_obscured_by_a_mission_entity -1461.84 {y} 938.32 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15213
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15220

:BLOOD_15213
102@ = 2

:BLOOD_15220
if 
  102@ == 2
goto_if_false @BLOOD_15335
if 
  not is_point_obscured_by_a_mission_entity -1424.36 {y} 933.86 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15328
154@ = -1424.36
155@ = 933.86
156@ = 1035.0
157@ = 0.0
goto @BLOOD_15335

:BLOOD_15328
102@ = 3

:BLOOD_15335
if 
  102@ == 3
goto_if_false @BLOOD_15450
if 
  not is_point_obscured_by_a_mission_entity -1443.29 {y} 931.29 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15443
154@ = -1443.29
155@ = 931.29
156@ = 1035.0
157@ = 351.4
goto @BLOOD_15450

:BLOOD_15443
102@ = 1

:BLOOD_15450
if 
  102@ == 1
goto_if_false @BLOOD_15565
if 
  not is_point_obscured_by_a_mission_entity -1461.84 {y} 938.32 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15558
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15565

:BLOOD_15558
102@ = -1

:BLOOD_15565
return 

:BLOOD_15567
107@ = generate_random_int_in_range 1 {max} 37
if 
  107@ == 1
goto_if_false @BLOOD_15609
custom_plate_for_next_car 108@ {text} "GOT_M00_"

:BLOOD_15609
if 
  107@ == 2
goto_if_false @BLOOD_15642
custom_plate_for_next_car 108@ {text} "M00TV_4U"

:BLOOD_15642
if 
  107@ == 3
goto_if_false @BLOOD_15675
custom_plate_for_next_car 108@ {text} "MATHEW_2"

:BLOOD_15675
if 
  107@ == 4
goto_if_false @BLOOD_15708
custom_plate_for_next_car 108@ {text} "D4_DEW0R"

:BLOOD_15708
if 
  107@ == 5
goto_if_false @BLOOD_15741
custom_plate_for_next_car 108@ {text} "D0DE_777"

:BLOOD_15741
if 
  107@ == 6
goto_if_false @BLOOD_15774
custom_plate_for_next_car 108@ {text} "DAM0_666"

:BLOOD_15774
if 
  107@ == 7
goto_if_false @BLOOD_15807
custom_plate_for_next_car 108@ {text} "C0NEY_88"

:BLOOD_15807
if 
  107@ == 8
goto_if_false @BLOOD_15840
custom_plate_for_next_car 108@ {text} "PRE4CHER"

:BLOOD_15840
if 
  107@ == 9
goto_if_false @BLOOD_15873
custom_plate_for_next_car 108@ {text} "DBP_4NDY"

:BLOOD_15873
if 
  107@ == 10
goto_if_false @BLOOD_15906
custom_plate_for_next_car 108@ {text} "EV1L_SLY"

:BLOOD_15906
if 
  107@ == 11
goto_if_false @BLOOD_15939
custom_plate_for_next_car 108@ {text} "N1_R4V3N"

:BLOOD_15939
if 
  107@ == 12
goto_if_false @BLOOD_15972
custom_plate_for_next_car 108@ {text} "D1VX_Z00"

:BLOOD_15972
if 
  107@ == 13
goto_if_false @BLOOD_16004
custom_plate_for_next_car 108@ {text} "MR_B3NN"

:BLOOD_16004
if 
  107@ == 14
goto_if_false @BLOOD_16037
custom_plate_for_next_car 108@ {text} "R3D_R4SP"

:BLOOD_16037
if 
  107@ == 15
goto_if_false @BLOOD_16070
custom_plate_for_next_car 108@ {text} "LA_B0MBA"

:BLOOD_16070
if 
  107@ == 16
goto_if_false @BLOOD_16103
custom_plate_for_next_car 108@ {text} "L3337_0G"

:BLOOD_16103
if 
  107@ == 17
goto_if_false @BLOOD_16136
custom_plate_for_next_car 108@ {text} "BUDD4H_X"

:BLOOD_16136
if 
  107@ == 18
goto_if_false @BLOOD_16169
custom_plate_for_next_car 108@ {text} "T3H_BUCK"

:BLOOD_16169
if 
  107@ == 19
goto_if_false @BLOOD_16202
custom_plate_for_next_car 108@ {text} "CHUNKY_1"

:BLOOD_16202
if 
  107@ == 20
goto_if_false @BLOOD_16235
custom_plate_for_next_car 108@ {text} "EV1L_BNZ"

:BLOOD_16235
if 
  107@ == 21
goto_if_false @BLOOD_16268
custom_plate_for_next_car 108@ {text} "S4ND_M4N"

:BLOOD_16268
if 
  107@ == 22
goto_if_false @BLOOD_16301
custom_plate_for_next_car 108@ {text} "RKK_DBP1"

:BLOOD_16301
if 
  107@ == 23
goto_if_false @BLOOD_16334
custom_plate_for_next_car 108@ {text} "RE1_K0KU"

:BLOOD_16334
if 
  107@ == 24
goto_if_false @BLOOD_16367
custom_plate_for_next_car 108@ {text} "S3XY_JUD"

:BLOOD_16367
if 
  107@ == 25
goto_if_false @BLOOD_16400
custom_plate_for_next_car 108@ {text} "SUNRA_93"

:BLOOD_16400
if 
  107@ == 26
goto_if_false @BLOOD_16433
custom_plate_for_next_car 108@ {text} "UG_FUX69"

:BLOOD_16433
if 
  107@ == 27
goto_if_false @BLOOD_16466
custom_plate_for_next_car 108@ {text} "LI0N_CUM"

:BLOOD_16466
if 
  107@ == 28
goto_if_false @BLOOD_16499
custom_plate_for_next_car 108@ {text} "RKK_PWND"

:BLOOD_16499
if 
  107@ == 29
goto_if_false @BLOOD_16532
custom_plate_for_next_car 108@ {text} "HAZE_B0B"

:BLOOD_16532
if 
  107@ == 30
goto_if_false @BLOOD_16565
custom_plate_for_next_car 108@ {text} "T3H_FLUF"

:BLOOD_16565
if 
  107@ == 31
goto_if_false @BLOOD_16598
custom_plate_for_next_car 108@ {text} "BM_4NDY_"

:BLOOD_16598
if 
  107@ == 32
goto_if_false @BLOOD_16631
custom_plate_for_next_car 108@ {text} "BM_D34N_"

:BLOOD_16631
if 
  107@ == 33
goto_if_false @BLOOD_16664
custom_plate_for_next_car 108@ {text} "BM_L4C3Y"

:BLOOD_16664
if 
  107@ == 34
goto_if_false @BLOOD_16697
custom_plate_for_next_car 108@ {text} "BM_D3V__"

:BLOOD_16697
if 
  107@ == 35
goto_if_false @BLOOD_16730
custom_plate_for_next_car 108@ {text} "NU_SK00L"

:BLOOD_16730
if 
  107@ == 36
goto_if_false @BLOOD_16763
custom_plate_for_next_car 108@ {text} "G4L_AVET"

:BLOOD_16763
if 
  107@ == 37
goto_if_false @BLOOD_16796
custom_plate_for_next_car 108@ {text} "M0J0_J0J"

:BLOOD_16796
return 

:BLOOD_16798
161@, 162@, $z = get_car_coordinates 88@
94@ = 0
165@ = 99999.0
95@ = -1

:BLOOD_16836
if 
  16 > 94@
goto_if_false @BLOOD_16985
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 35@(94@,16i)
goto_if_false @BLOOD_16971
if 
  not is_car_dead 35@(94@,16i)
goto_if_false @BLOOD_16971
163@, 164@, $z = get_car_coordinates 35@(94@,16i)
166@ = get_distance_between_coords_2d 161@ {fromY} 162@ {toX} 163@ {toZ} 164@
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_16971
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 35@(94@,16i)

:BLOOD_16971
94@ += 1
goto @BLOOD_16836

:BLOOD_16985
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 34@
goto_if_false @BLOOD_17070
163@, 164@, $z = get_car_coordinates 34@
166@ = get_distance_between_coords_2d 161@ {fromY} 162@ {toX} 163@ {toZ} 164@
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_17070
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 34@

:BLOOD_17070
return 

:BLOOD_17072
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17134
110@ = create_menu 'BLOD_06' {topLeftX} 190.0 {topLeftY} 141.0 {width} 120.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BLOOD_17171

:BLOOD_17134
110@ = create_menu 'BLOD_06' {topLeftX} 190.0 {topLeftY} 141.0 {width} 150.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:BLOOD_17171
set_menu_column 110@ {column} 0 {title} 'DUMMY' {row0} 'BLOD_07' {row1} 'BLOD_08' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 110@ {column} 1 {title} 'DUMMY' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number 110@ {column} 1 {row} 0 {gxt} 'BLOD_09' {number} $blood_attempt
set_menu_item_with_number 110@ {column} 1 {row} 1 {gxt} 'BLOD_09' {number} 111@
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17505
set_menu_column_width 110@ {column} 0 {width} 200
set_menu_column_width 110@ {column} 1 {width} 40
goto @BLOOD_17524

:BLOOD_17505
set_menu_column_width 110@ {column} 0 {width} 260
set_menu_column_width 110@ {column} 1 {width} 40

:BLOOD_17524
return 

:BLOOD_17526
if 
  129@ == 0
goto_if_false @BLOOD_17589
128@ = generate_random_int_in_range 2000 {max} 10000
130@ = generate_random_int_in_range 1 {max} 22
load_mission_audio MissionAudioSlot.Slot4 {audioId} 131@(130@,23i)
TIMERB = 0
129@ = 1

:BLOOD_17589
if 
  129@ == 1
goto_if_false @BLOOD_17629
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BLOOD_17629
129@ = 2

:BLOOD_17629
if 
  129@ == 2
goto_if_false @BLOOD_17677
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 128@
goto_if_false @BLOOD_17677
play_mission_audio MissionAudioSlot.Slot4
129@ = 3

:BLOOD_17677
if 
  129@ == 3
goto_if_false @BLOOD_17717
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @BLOOD_17717
129@ = 0

:BLOOD_17717
return 

//-------------Mission 129---------------
// Originally: Arena Mission: Kickstart

:KICKSTA
script_name 'KICKSTA'
gosub @KICKSTA_54
if 
  has_deatharrest_been_executed 
goto_if_false @KICKSTA_38
gosub @KICKSTA_7448

:KICKSTA_38
gosub @KICKSTA_7590
terminate_this_script 
49@ = 0

:KICKSTA_54
clear_this_print_big_now TextStyle.Middle
$onmission = 1
48@ = 0
249@ = 1.5
253@ = 0
254@ = 0
$number_of_checkpoints_kickstart = 0
257@ = 0
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_130
register_mission_given 

:KICKSTA_130
$blood_best_time = 0
$time_left_to_find_bike_secs_ks = 240000
$time_bailed_ks = 30000
50@ = -1376.437
83@ = 1562.29
116@ = 1059.0
182@ = 0
215@ = 0
51@ = -1354.842
84@ = 1585.201
117@ = 1057.885
183@ = 0
216@ = 0
52@ = -1408.025
85@ = 1568.736
118@ = 1055.838
184@ = 0
217@ = 0
53@ = -1451.728
86@ = 1571.0649
119@ = 1059.0
185@ = 0
218@ = 1
54@ = -1487.554
87@ = 1564.278
120@ = 1056.457
186@ = 0
219@ = 1
55@ = -1466.286
88@ = 1595.355
121@ = 1057.325
187@ = 0
220@ = 2
56@ = -1387.597
89@ = 1572.125
122@ = 1053.929
188@ = 0
221@ = 0
57@ = -1362.579
90@ = 1614.624
123@ = 1055.33
189@ = 0
222@ = 1
58@ = -1359.51
91@ = 1638.219
124@ = 1056.035
190@ = 0
223@ = 2
59@ = -1371.351
92@ = 1623.274
125@ = 1054.6591
191@ = 0
224@ = 1
60@ = -1369.52
93@ = 1634.025
126@ = 1055.772
192@ = 0
225@ = 2
61@ = -1384.616
94@ = 1603.547
127@ = 1053.595
193@ = 0
226@ = 0
62@ = -1398.996
95@ = 1603.275
128@ = 1055.156
194@ = 0
227@ = 0
63@ = -1403.911
96@ = 1645.158
129@ = 1071.462
195@ = 0
228@ = 1
64@ = -1443.392
97@ = 1648.548
130@ = 1054.287
196@ = 0
229@ = 0
65@ = -1457.0031
98@ = 1648.714
131@ = 1054.937
197@ = 0
230@ = 0
66@ = -1486.931
99@ = 1630.226
132@ = 1056.626
198@ = 0
231@ = 0
67@ = -1482.813
100@ = 1642.205
133@ = 1060.704
199@ = 0
232@ = 2
68@ = -1484.813
101@ = 1597.116
134@ = 1061.382
200@ = 0
233@ = 1
69@ = -1431.399
102@ = 1598.063
135@ = 1054.752
201@ = 0
234@ = 0
70@ = -1420.682
103@ = 1598.275
136@ = 1054.9561
202@ = 0
235@ = 0
71@ = -1408.1071
104@ = 1585.364
137@ = 1055.691
203@ = 0
236@ = 0
72@ = -1408.217
105@ = 1593.302
138@ = 1055.6169
204@ = 0
237@ = 0
73@ = -1462.244
106@ = 1622.424
139@ = 1054.313
205@ = 0
238@ = 1
74@ = -1461.74
107@ = 1635.7531
140@ = 1054.007
206@ = 0
239@ = 1
75@ = -1453.8929
108@ = 1636.028
141@ = 1056.1801
207@ = 0
240@ = 1
76@ = -1454.0551
109@ = 1628.601
142@ = 1054.298
208@ = 0
241@ = 2
77@ = -1454.067
110@ = 1617.637
143@ = 1055.999
209@ = 0
242@ = 2
78@ = -1450.026
111@ = 1620.467
144@ = 1056.421
210@ = 0
243@ = 2
79@ = -1407.7321
112@ = 1617.416
145@ = 1054.797
211@ = 0
244@ = 1
80@ = -1414.1591
113@ = 1607.16
146@ = 1054.843
212@ = 0
245@ = 1
81@ = -1388.309
114@ = 1620.99
147@ = 1054.951
213@ = 0
246@ = 2
82@ = -1431.09
115@ = 1580.832
148@ = 1055.759
214@ = 0
247@ = 1
$race_timer_kickstart = 0
$race_timer_mins_kickstart = 0
$race_timer_seconds_kickstart = 0
35@ = 0
$race_timer_seconds2_kickstart = 0
$player_taken_too_long_kickstart = 33
37@ = 0.0
38@ = 0.0
39@ = 0.0
40@ = 0.0
41@ = 0.0
42@ = 0.0
43@ = 0
45@ = 0
46@ = 0
47@ = 0
255@ = 0
wait 0
load_mission_text 'KICKSTT'
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:KICKSTA_1781
if 
  get_fading_status 
goto_if_false @KICKSTA_1805
wait 0
goto @KICKSTA_1781

:KICKSTA_1805
set_respawn_point_for_duration_of_mission 1579.5699 {y} 1769.011 {z} 9.828
set_player_is_in_stadium True
set_area_visible 14
request_collision -1473.187 {y} 1565.173
set_char_coordinates $scplayer {x} -1473.187 {y} 1565.173 {z} 1051.589
set_char_area_visible $scplayer {areaId} 14
display_radar True
set_char_heading $scplayer {heading} 266.488
load_scene -1473.187 {y} 1565.173 {z} 1051.7889
set_camera_behind_player 
restore_camera_jumpcut 
set_extra_colours 2 {fade} False
request_model 468

:KICKSTA_1915
if 
  not has_model_loaded 468
goto_if_false @KICKSTA_1942
wait 0
goto @KICKSTA_1915

:KICKSTA_1942
34@ = create_car 468 {x} -1472.38 {y} 1563.576 {z} 1051.417
set_vehicle_area_visible 34@ {interiorId} 14
set_car_heading 34@ {heading} 266.488
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
36@ = add_blip_for_car 34@
set_blip_as_friendly 36@ {state} True
set_car_strong 34@ {state} True
44@ = add_sphere -1464.3199 {y} 1556.6899 {z} 1051.75 {radius} 3.0
256@ = 0

:KICKSTA_2051
if 
  33 > 256@
goto_if_false @KICKSTA_2300
if 
  215@(256@,33i) == 0
goto_if_false @KICKSTA_2113
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_2113
if 
  215@(256@,33i) == 1
goto_if_false @KICKSTA_2158
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_2158
if 
  215@(256@,33i) == 2
goto_if_false @KICKSTA_2202
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_2202
draw_corona 50@(256@,33f) {y} 50@(256@,33f) {z} 50@(256@,33f) {size} 249@ {coronaType} CoronaType.Normal {flareType} FlareType.None {r} 250@ {g} 251@ {b} 252@
add_blip_for_coord_old 50@(256@,33f) {y} 50@(256@,33f) {z} 50@(256@,33f) {colour} BlipColor.Red {display} BlipDisplay.BlipOnly {var_handle} 149@(256@,33i)
change_blip_scale 149@(256@,33i) {size} 1
256@ += 1
goto @KICKSTA_2051

:KICKSTA_2300
wait 1000
switch_widescreen True
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_player_control $player1 {state} False
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33205

:KICKSTA_2343
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @KICKSTA_2369
wait 0
goto @KICKSTA_2343

:KICKSTA_2369
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In
set_fixed_camera_position -1461.084 {y} 1558.448 {z} 1054.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1460.135 {y} 1558.761 {z} 1054.429 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -1461.084 {fromY} 1558.448 {fromZ} 1054.46 {toX} -1474.255 {toY} 1561.567 {toZ} 1052.553 {time} 6000 {ease} True
camera_set_vector_track -1460.135 {fromY} 1558.761 {fromZ} 1054.429 {toX} -1473.741 {toY} 1562.424 {toZ} 1052.533 {time} 6000 {ease} True
play_mission_audio MissionAudioSlot.Slot1

:KICKSTA_2523
if 
  get_fading_status 
goto_if_false @KICKSTA_2766
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_2744
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_2594
if 
  get_fading_status 
goto_if_false @KICKSTA_2618
wait 0
goto @KICKSTA_2594

:KICKSTA_2618
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_2662
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_2662
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_2705
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_2725

:KICKSTA_2705
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_2725
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_2752

:KICKSTA_2744
set_car_health 34@ {health} 1000

:KICKSTA_2752
gosub @KICKSTA_7904
goto @KICKSTA_2523

:KICKSTA_2766
print_now 'KICK_10' {time} 10000 {flag} 1
TIMERA = 0
skip_cutscene_start_internal @KICKSTA_3415

:KICKSTA_2796
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3045
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3023
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_2873
if 
  get_fading_status 
goto_if_false @KICKSTA_2897
wait 0
goto @KICKSTA_2873

:KICKSTA_2897
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_2941
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_2941
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_2984
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3004

:KICKSTA_2984
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3004
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3031

:KICKSTA_3023
set_car_health 34@ {health} 1000

:KICKSTA_3031
gosub @KICKSTA_7904
goto @KICKSTA_2796

:KICKSTA_3045
clear_this_print 'KICK_10'
camera_reset_new_scriptables 
set_fixed_camera_position -1474.91 {y} 1564.625 {z} 1052.952 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1473.948 {y} 1564.3669 {z} 1053.041 {switchStyle} SwitchType.JumpCut
print_now 'KICK_11' {time} 10000 {flag} 1
task_look_at_coord $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {time} 6000
TIMERA = 0

:KICKSTA_3155
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3404
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3382
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3232
if 
  get_fading_status 
goto_if_false @KICKSTA_3256
wait 0
goto @KICKSTA_3232

:KICKSTA_3256
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3300
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3300
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3343
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3363

:KICKSTA_3343
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3363
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3390

:KICKSTA_3382
set_car_health 34@ {health} 1000

:KICKSTA_3390
gosub @KICKSTA_7904
goto @KICKSTA_3155

:KICKSTA_3404
clear_this_print 'KICK_11'

:KICKSTA_3415
skip_cutscene_end 
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3621
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3471
if 
  get_fading_status 
goto_if_false @KICKSTA_3495
wait 0
goto @KICKSTA_3471

:KICKSTA_3495
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3539
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3539
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3582
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3602

:KICKSTA_3582
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3602
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3629

:KICKSTA_3621
set_car_health 34@ {health} 1000

:KICKSTA_3629
set_camera_behind_player 
restore_camera_jumpcut 
set_radio_channel RadioChannel.UserTracks
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
camera_reset_new_scriptables 
display_radar False
print_now 'KICK1_8' {time} 5000 {flag} 1

:KICKSTA_3688
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @KICKSTA_4392
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3915
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3765
if 
  get_fading_status 
goto_if_false @KICKSTA_3789
wait 0
goto @KICKSTA_3765

:KICKSTA_3789
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3833
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3833
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3876
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3896

:KICKSTA_3876
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3896
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3923

:KICKSTA_3915
set_car_health 34@ {health} 1000

:KICKSTA_3923
if or
  $time_left_to_find_bike_secs_ks >= 3600000
  $race_timer_seconds2_kickstart == 1
goto_if_false @KICKSTA_4137
set_player_control $player1 {state} False
print_now 'KICK_13' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
wait 1500
do_fade 1000 {direction} Fade.Out

:KICKSTA_3994
if 
  get_fading_status 
goto_if_false @KICKSTA_4018
wait 0
goto @KICKSTA_3994

:KICKSTA_4018
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_4062
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_4062
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_4105
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_4125

:KICKSTA_4105
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_4125
wait 1500
goto @KICKSTA_7448

:KICKSTA_4137
if or
  locate_char_on_foot_3d $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  43@ == 1
goto_if_false @KICKSTA_4378
set_player_control $player1 {state} False
print_now 'KICK_12' {time} 5000 {flag} 1
remove_sphere 44@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_4235
if 
  get_fading_status 
goto_if_false @KICKSTA_4259
wait 0
goto @KICKSTA_4235

:KICKSTA_4259
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_4303
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_4303
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_4346
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_4366

:KICKSTA_4346
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_4366
wait 1500
goto @KICKSTA_7448

:KICKSTA_4378
gosub @KICKSTA_7904
goto @KICKSTA_3688

:KICKSTA_4392
switch_widescreen True
set_player_control $player1 {state} False
set_camera_behind_player 
clear_this_print 'KICK1_8'
257@ = 0
TIMERA = 0
TIMERB = 0

:KICKSTA_4437
if 
  257@ <> 10
goto_if_false @KICKSTA_4886
wait 0
if 
  257@ == 0
goto_if_false @KICKSTA_4581
if 
  TIMERB > 900
goto_if_false @KICKSTA_4581
print_big 'KICK_17' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827

:KICKSTA_4541
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @KICKSTA_4567
wait 0
goto @KICKSTA_4541

:KICKSTA_4567
257@ += 1
TIMERB = 0

:KICKSTA_4581
if 
  257@ == 1
goto_if_false @KICKSTA_4670
if 
  TIMERB > 900
goto_if_false @KICKSTA_4670
print_big 'KICK_18' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
257@ += 1
TIMERB = 0

:KICKSTA_4670
if 
  257@ == 2
goto_if_false @KICKSTA_4759
if 
  TIMERB > 900
goto_if_false @KICKSTA_4759
print_big 'KICK_19' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
257@ += 1
TIMERB = 0

:KICKSTA_4759
if 
  257@ == 3
goto_if_false @KICKSTA_4846
if 
  TIMERB > 900
goto_if_false @KICKSTA_4846
print_big 'KICK_20' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position -1462.0 {y} 1558.6899 {z} 1055.02 {soundId} ScriptSound.SoundAirHorn
257@ = 10
TIMERB = 0

:KICKSTA_4846
if 
  TIMERA > 4000
goto_if_false @KICKSTA_4872
257@ = 10

:KICKSTA_4872
gosub @KICKSTA_7904
goto @KICKSTA_4437

:KICKSTA_4886
switch_widescreen False
remove_blip 36@
set_player_control $player1 {state} True
print_now 'KICK_26' {time} 5000 {flag} 1
display_onscreen_counter_with_string $number_of_checkpoints_kickstart {display} CounterDisplay.Number {text} 'KICK1_9'
display_onscreen_timer_with_string $time_left_to_find_bike_secs_ks {direction} TimerDirection.Down {text} 'KICK1_T'
TIMERA = 0
TIMERB = 0

:KICKSTA_4964
if 
  $blood_best_time <> 33
goto_if_false @KICKSTA_6929
wait 0
gosub @KICKSTA_7904
if 
  48@ == 1
goto_if_false @KICKSTA_5033
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @KICKSTA_5033
48@ = 2

:KICKSTA_5033
if 
  48@ == 2
goto_if_false @KICKSTA_5062
play_mission_audio MissionAudioSlot.Slot1
48@ = 3

:KICKSTA_5062
if 
  48@ == 3
goto_if_false @KICKSTA_5106
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @KICKSTA_5106
clear_mission_audio MissionAudioSlot.Slot1
48@ = 0

:KICKSTA_5106
if or
  0 >= $time_left_to_find_bike_secs_ks
  $race_timer_seconds2_kickstart == 1
goto_if_false @KICKSTA_5673
set_player_control $player1 {state} False
clear_onscreen_timer $time_left_to_find_bike_secs_ks
clear_onscreen_counter $number_of_checkpoints_kickstart
if 
  is_int_var_greater_than_int_var $number_of_checkpoints_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_5417
set_var_int_to_var_int $current_highest_score_kickstart = $number_of_checkpoints_kickstart
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
print_now 'KICK_23' {time} 5000 {flag} 1
register_int_stat StatId.KickstartBestScore {value} $current_highest_score_kickstart
play_mission_passed_tune 2
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_5247
switch_car_generator $trigger_new_range_level {amount} 101

:KICKSTA_5247
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5267
if 
  get_fading_status 
goto_if_false @KICKSTA_5291
wait 0
goto @KICKSTA_5267

:KICKSTA_5291
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5335
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5335
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5378
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5398

:KICKSTA_5378
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5398
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_5673

:KICKSTA_5417
print_with_number_big 'KICK1_9' {num} $number_of_checkpoints_kickstart {duration} 5000 {style} TextStyle.Middle
print_with_number_big 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
print_now 'KICK_24' {time} 5000 {flag} 1
248@ = get_int_stat StatId.KickstartBestScore
if 
  is_int_var_greater_than_int_lvar $number_of_checkpoints_kickstart > 248@
goto_if_false @KICKSTA_5506
register_int_stat StatId.KickstartBestScore {value} $number_of_checkpoints_kickstart

:KICKSTA_5506
play_mission_passed_tune 1
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5530
if 
  get_fading_status 
goto_if_false @KICKSTA_5554
wait 0
goto @KICKSTA_5530

:KICKSTA_5554
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5598
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5598
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5641
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5661

:KICKSTA_5641
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5661
wait 1500
goto @KICKSTA_7448

:KICKSTA_5673
if or
  locate_char_on_foot_3d $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  43@ == 1
goto_if_false @KICKSTA_5914
set_player_control $player1 {state} False
print_now 'KICK_12' {time} 5000 {flag} 1
remove_sphere 44@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5771
if 
  get_fading_status 
goto_if_false @KICKSTA_5795
wait 0
goto @KICKSTA_5771

:KICKSTA_5795
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5839
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5839
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5882
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5902

:KICKSTA_5882
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5902
wait 1500
goto @KICKSTA_7448

:KICKSTA_5914
37@, 38@, 39@ = get_char_coordinates $scplayer
if 
  1050.0 > 39@
goto_if_false @KICKSTA_5979
set_char_coordinates $scplayer {x} -1473.187 {y} 1565.173 {z} 1051.7889
set_char_heading $scplayer {heading} 266.488

:KICKSTA_5979
if 
  is_car_dead 34@
goto_if_false @KICKSTA_6183
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_6033
if 
  get_fading_status 
goto_if_false @KICKSTA_6057
wait 0
goto @KICKSTA_6033

:KICKSTA_6057
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_6101
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_6101
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_6144
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_6164

:KICKSTA_6144
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_6164
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_6922

:KICKSTA_6183
set_car_health 34@ {health} 1000
40@, 41@, 42@ = get_car_coordinates 34@
if 
  1050.0 > 42@
goto_if_false @KICKSTA_6259
34@ = create_car 468 {x} -1472.38 {y} 1563.576 {z} 1051.417
set_car_heading 34@ {heading} 266.488

:KICKSTA_6259
if 
  not is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_6874
if 
  254@ == 0
goto_if_false @KICKSTA_6450
if 
  35@ == 0
goto_if_false @KICKSTA_6361
36@ = add_blip_for_car 34@
set_blip_as_friendly 36@ {state} True
if 
  47@ == 2
goto_if_false @KICKSTA_6354
47@ = 3

:KICKSTA_6354
35@ = 1

:KICKSTA_6361
$time_off_bike_ks = get_game_timer 
$time_bailed_ks = 30000
if 
  $time_left_to_find_bike_secs_ks >= 30000
goto_if_false @KICKSTA_6408
$time_bailed_ks = 30000
goto @KICKSTA_6416

:KICKSTA_6408
set_var_int_to_var_int $time_bailed_ks = $time_left_to_find_bike_secs_ks

:KICKSTA_6416
254@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33200
48@ = 1
goto @KICKSTA_6867

:KICKSTA_6450
if 
  $time_bailed_ks > 0
goto_if_false @KICKSTA_6643
$player_checkpoint_kickstart = get_game_timer 
set_var_int_to_var_int $time_now_ks = $player_checkpoint_kickstart
sub_int_var_from_int_var $time_now_ks -= $time_off_bike_ks
set_var_int_to_var_int $time_off_bike_ks = $player_checkpoint_kickstart
sub_int_var_from_int_var $time_bailed_ks -= $time_now_ks
set_var_int_to_var_int $time_left_to_find_bike_ks = $time_bailed_ks
$time_left_to_find_bike_ks /= 1000
add_next_message_to_previous_briefs False
if 
  $time_left_to_find_bike_ks <> 1
goto_if_false @KICKSTA_6569
print_with_number_now 'KICK_27' {num} $time_left_to_find_bike_ks {duration} 1000 {flag} 1
goto @KICKSTA_6588

:KICKSTA_6569
print_with_number_now 'KICK_28' {num} $time_left_to_find_bike_ks {duration} 1000 {flag} 1

:KICKSTA_6588
if 
  is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_6636
clear_this_print 'GETBIKE'
clear_this_print 'GETBIK2'
$time_bailed_ks = 1

:KICKSTA_6636
goto @KICKSTA_6867

:KICKSTA_6643
if 
  0 >= $time_bailed_ks
goto_if_false @KICKSTA_6867
print_now 'KICK1_2' {time} 5000 {flag} 1
set_player_control $player1 {state} False
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33200
48@ = 1
wait 1500
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_6724
if 
  get_fading_status 
goto_if_false @KICKSTA_6748
wait 0
goto @KICKSTA_6724

:KICKSTA_6748
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_6792
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_6792
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_6835
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_6855

:KICKSTA_6835
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_6855
wait 1500
goto @KICKSTA_7448

:KICKSTA_6867
goto @KICKSTA_6922

:KICKSTA_6874
clear_this_print 'KICK_27'
if 
  35@ == 1
goto_if_false @KICKSTA_6915
remove_blip 36@
35@ = 0

:KICKSTA_6915
254@ = 0

:KICKSTA_6922
goto @KICKSTA_4964

:KICKSTA_6929
clear_onscreen_timer $time_left_to_find_bike_secs_ks
clear_onscreen_counter $number_of_checkpoints_kickstart
if 
  is_int_var_greater_than_int_var $number_of_checkpoints_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_7208
set_var_int_to_var_int $current_highest_score_kickstart = $number_of_checkpoints_kickstart
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
print_now 'KICK_23' {time} 5000 {flag} 1
register_int_stat StatId.KickstartBestScore {value} $current_highest_score_kickstart
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7034
switch_car_generator $trigger_new_range_level {amount} 101

:KICKSTA_7034
play_mission_passed_tune 2
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_7058
if 
  get_fading_status 
goto_if_false @KICKSTA_7082
wait 0
goto @KICKSTA_7058

:KICKSTA_7082
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7126
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7126
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_7169
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_7189

:KICKSTA_7169
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_7189
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_7448

:KICKSTA_7208
play_mission_passed_tune 1
248@ = get_int_stat StatId.KickstartBestScore
if 
  is_int_var_greater_than_int_lvar $number_of_checkpoints_kickstart > 248@
goto_if_false @KICKSTA_7247
register_int_stat StatId.KickstartBestScore {value} $number_of_checkpoints_kickstart

:KICKSTA_7247
print_with_number_big 'KICK1_9' {num} $number_of_checkpoints_kickstart {duration} 5000 {style} TextStyle.Middle
print_with_number_big 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_7305
if 
  get_fading_status 
goto_if_false @KICKSTA_7329
wait 0
goto @KICKSTA_7305

:KICKSTA_7329
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7373
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7373
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_7416
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_7436

:KICKSTA_7416
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_7436
wait 1500
goto @KICKSTA_7448

:KICKSTA_7448
print_with_number_big 'KICK1_9' {num} 15 {duration} $number_of_checkpoints_kickstart {style} TextStyle.Middle
print_with_number_now 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {flag} 1
set_lvar_int_to_var_int 258@ = $number_of_checkpoints_kickstart
258@ *= 100
add_score $player1 {money} 258@
return 

:KICKSTA_7510
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7541
register_oddjob_mission_passed 
player_made_progress 1
$flag_kickstart_passed_1stime = 1

:KICKSTA_7541
clear_wanted_level $player1
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
set_lvar_int_to_var_int 258@ = $number_of_checkpoints_kickstart
258@ *= 100
add_score $player1 {money} 258@
return 

:KICKSTA_7590
display_radar True
clear_extra_colours False
$onmission = 0
clear_prints 
clear_extra_colours False
remove_sphere 44@
camera_reset_new_scriptables 
remove_blip 149@
remove_blip 150@
remove_blip 151@
remove_blip 152@
remove_blip 153@
remove_blip 154@
remove_blip 155@
remove_blip 156@
remove_blip 157@
remove_blip 158@
remove_blip 159@
remove_blip 160@
remove_blip 161@
remove_blip 162@
remove_blip 163@
remove_blip 164@
remove_blip 165@
remove_blip 166@
remove_blip 167@
remove_blip 168@
remove_blip 169@
remove_blip 170@
remove_blip 171@
remove_blip 172@
remove_blip 173@
remove_blip 174@
remove_blip 175@
remove_blip 176@
remove_blip 177@
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
remove_blip 36@
mark_model_as_no_longer_needed 468
clear_onscreen_timer $time_left_to_find_bike_secs_ks
clear_onscreen_counter $number_of_checkpoints_kickstart
if or
  not has_deatharrest_been_executed 
  $flag_kickstart_mission1_passed == 1
goto_if_false @KICKSTA_7859
set_char_heading $scplayer {heading} 1.0
restore_camera_jumpcut 
set_camera_behind_player 
set_fading_colour 0 {g} 0 {b} 0
do_fade 3000 {direction} Fade.In
set_player_control $player1 {state} True

:KICKSTA_7859
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7882
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7882
display_radar True
mark_car_as_no_longer_needed 34@
set_player_is_in_stadium False
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:KICKSTA_7904
253@ = 0

:KICKSTA_7911
if 
  33 > 253@
goto_if_false @KICKSTA_8439
if 
  182@(253@,33i) == 0
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_7995
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_7995
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8040
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_8040
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8084
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_8084
draw_corona 50@(253@,33f) {y} 83@(253@,33f) {z} 116@(253@,33f) {size} 249@ {coronaType} CoronaType.Normal {flareType} FlareType.None {r} 250@ {g} 251@ {b} 252@
if 
  locate_char_any_means_3d $scplayer {x} 50@(253@,33f) {y} 83@(253@,33f) {z} 116@(253@,33f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @KICKSTA_8425
if 
  is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_8261
$number_of_checkpoints_kickstart += 1
print_now 'KICK_14' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33202
48@ = 1

:KICKSTA_8261
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8326
$number_of_checkpoints_kickstart += 2
print_now 'KICK_15' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33202
48@ = 1

:KICKSTA_8326
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8391
$number_of_checkpoints_kickstart += 3
print_now 'KICK_16' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33205
48@ = 1

:KICKSTA_8391
remove_blip 149@(253@,33i)
$blood_best_time += 1
$player_taken_too_long_kickstart -= 1
182@(253@,33i) = 1

:KICKSTA_8425
253@ += 1
goto @KICKSTA_7911

:KICKSTA_8439
return 

//-------------Mission 130---------------
// Originally: Beat the Cock!

:TRIA
gosub @TRIA_36
if 
  has_deatharrest_been_executed 
goto_if_false @TRIA_27
gosub @TRIA_22646

:TRIA_27
gosub @TRIA_22887
terminate_this_script 

:TRIA_36
clear_this_print_big_now TextStyle.Middle
$onmission = 1
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_67
register_mission_given 

:TRIA_67
script_name 'TRIA'
load_mission_text 'RACETOR'
set_message_formatting True {margin} 355 {width} 370
wait 0
use_text_commands True
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_130
set_player_control $player1 {state} False

:TRIA_130
do_fade 1000 {direction} Fade.Out

:TRIA_137
if 
  get_fading_status 
goto_if_false @TRIA_161
wait 0
goto @TRIA_137

:TRIA_161
816@ = load_char_decision_maker DecisionMakerType.Empty
802@ = 0
817@ = 0
782@ = 0
783@ = 0
34@ = 582.7242
46@ = 356.2812
58@ = 52.2072
70@ = 52.2072
35@ = 584.0833
47@ = 329.3647
59@ = 0.5427
71@ = 2.0841
36@ = 572.9216
48@ = 323.5937
60@ = 1.0585
72@ = 4.8106
37@ = 585.724
49@ = 345.6341
61@ = 0.4929
73@ = 1.8511
38@ = 582.7242
50@ = 359.0323
62@ = 0.4993
74@ = 2.637
39@ = 582.7242
51@ = 356.2812
63@ = 56.2072
75@ = 56.2072
40@ = 582.7242
52@ = 356.2812
64@ = 58.2072
76@ = 58.2072
if 
  $triathalon_selection == 1
goto_if_false @TRIA_501
goto @TRIA_526

:TRIA_501
if 
  $triathalon_selection == 2
goto_if_false @TRIA_526
goto @TRIA_3828

:TRIA_526
819@ = 0
820@ = 1
821@ = 7
822@ = 8
823@ = 8
824@ = 37
825@ = 37
826@ = 38
827@ = 62
792@ = -243.9
793@ = -1719.3101
794@ = 2.35
143@ = 181.3364
263@ = -1885.854
383@ = 3.5158
503@ = 194.886
144@ = 187.69
264@ = -1915.42
384@ = 0.0
504@ = 187.4411
145@ = 190.3243
265@ = -1965.0699
385@ = -1.09
505@ = 122.2256
146@ = 129.4773
266@ = -2001.432
386@ = -0.5606
506@ = 44.5101
147@ = 24.1326
267@ = -1872.092
387@ = -0.1744
507@ = 46.3064
148@ = -38.8038
268@ = -1799.4
388@ = -0.4976
508@ = 29.2224
149@ = -132.8051
269@ = -1809.788
389@ = -1.1548
509@ = 74.9425
150@ = -228.93
270@ = -1726.7
390@ = -0.01
510@ = 70.775
151@ = -248.1052
271@ = -1716.78
391@ = 1.9372
511@ = 157.2827
152@ = -262.3395
272@ = -1787.277
392@ = 8.7655
512@ = 167.5477
153@ = -277.3514
273@ = -1855.098
393@ = 21.3005
513@ = 168.3277
154@ = -280.5171
274@ = -1887.12
394@ = 24.786
514@ = 176.1066
155@ = -281.7469
275@ = -2087.8269
395@ = 38.443
515@ = 141.1524
156@ = -464.7682
276@ = -2179.8149
396@ = 58.8239
516@ = 68.1063
157@ = -641.5079
277@ = -2196.429
397@ = 11.5282
517@ = 129.7469
158@ = -783.5144
278@ = -2459.2939
398@ = 73.7524
518@ = 140.2978
159@ = -871.3914
279@ = -2407.9871
399@ = 54.4911
519@ = 51.7369
160@ = -942.5181
280@ = -2368.063
400@ = 58.8718
520@ = 85.4252
161@ = -1056.249
281@ = -2378.2429
401@ = 48.5923
521@ = 94.4035
162@ = -1238.965
282@ = -2327.3149
402@ = 18.2458
522@ = 58.7494
163@ = -1403.78
283@ = -2165.124
403@ = 17.4059
523@ = 77.2286
164@ = -1659.6851
284@ = -2190.1299
404@ = 32.3572
524@ = 144.7275
165@ = -1732.8311
285@ = -2312.709
405@ = 45.225
525@ = 109.6972
166@ = -1826.058
286@ = -2340.271
406@ = 33.7243
526@ = 125.1071
167@ = -1917.6801
287@ = -2432.147
407@ = 29.6249
527@ = 124.1505
168@ = -1972.515
288@ = -2478.3259
408@ = 29.6259
528@ = 117.8682
169@ = -2025.629
289@ = -2500.3911
409@ = 31.0671
529@ = 73.6687
170@ = -2119.1069
290@ = -2431.2649
410@ = 29.4766
530@ = 50.8121
171@ = -2188.5701
291@ = -2377.5381
411@ = 29.6172
531@ = 0.0
172@ = -2215.8899
292@ = -2352.6011
412@ = 29.6981
532@ = 61.4763
173@ = -2341.21
293@ = -2256.627
413@ = 16.8759
533@ = 39.8273
174@ = -2430.1799
294@ = -2278.3779
414@ = 13.7817
534@ = 45.7545
175@ = -2498.637
295@ = -2208.573
415@ = 27.9284
535@ = 50.0042
176@ = -2619.8391
296@ = -2067.5359
416@ = 38.1676
536@ = 55.7597
176@ = -2867.7839
296@ = -1824.571
416@ = 36.6821
536@ = 16.2011
177@ = -2923.241
297@ = -1561.889
417@ = 10.0017
537@ = 7.7626
178@ = -2899.031
298@ = -1152.584
418@ = 8.32
538@ = 351.8611
179@ = -2858.125
299@ = -835.5231
419@ = 8.4844
539@ = 352.7365
180@ = -2814.01
300@ = -529.22
420@ = 6.1876
540@ = 343.4993
181@ = -2779.95
301@ = -489.85
421@ = 6.33
541@ = 305.3686
182@ = -2708.981
302@ = -529.5283
422@ = 10.196
542@ = 276.1151
183@ = -2670.157
303@ = -481.2506
423@ = 21.3104
543@ = 345.938
184@ = -2666.6631
304@ = -406.0401
424@ = 31.3067
544@ = 324.8106
185@ = -2583.74
305@ = -369.7502
425@ = 46.2653
545@ = 275.6224
186@ = -2515.9709
306@ = -367.1822
426@ = 58.2571
546@ = 272.1555
186@ = -2411.156
306@ = -371.7223
426@ = 72.2992
546@ = 236.1908
187@ = -2340.564
307@ = -416.5017
427@ = 78.5669
547@ = 230.3644
188@ = -2338.824
308@ = -463.832
428@ = 79.0233
548@ = 107.323
189@ = -2387.6899
309@ = -423.99
429@ = 82.4307
549@ = 46.7979
190@ = -2496.3789
310@ = -446.1119
430@ = 75.3116
550@ = 79.2676
191@ = -2544.498
311@ = -465.218
431@ = 68.9665
551@ = 119.0487
191@ = -2556.8521
311@ = -466.8922
431@ = 69.2275
551@ = 116.1301
192@ = -2580.532
312@ = -468.6765
432@ = 67.3814
552@ = 105.1953
193@ = -2612.064
313@ = -475.2015
433@ = 67.8512
553@ = 102.5922
194@ = -2623.105
314@ = -500.2463
434@ = 69.917
554@ = 197.9217
195@ = -2613.75
315@ = -497.1339
435@ = 71.9272
555@ = 288.9547
196@ = -2579.7329
316@ = -492.6317
436@ = 75.158
556@ = 278.9598
197@ = -2542.8
317@ = -490.87
437@ = 80.34
557@ = 280.2745
198@ = -2497.678
318@ = -480.3432
438@ = 94.0158
558@ = 282.4144
199@ = -2466.4009
319@ = -497.2612
439@ = 104.2728
559@ = 198.2153
200@ = -2452.0801
320@ = -544.5864
440@ = 120.5837
560@ = 197.1636
201@ = -2469.5139
321@ = -618.502
441@ = 131.3831
561@ = 208.6952
202@ = -2471.0601
322@ = -618.73
442@ = 131.73
562@ = 85.5749
203@ = -2498.3679
323@ = -617.9995
443@ = 131.5625
563@ = 94.5939
204@ = -2498.981
324@ = -653.2845
444@ = 137.3194
564@ = 168.6758
205@ = -2501.356
325@ = -695.9691
445@ = 138.3174
565@ = 180.3733
743@ = -2500.0
744@ = -710.0
745@ = 138.49
828@ = 63
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 60.0
771@ = 40.0
772@ = 25.0
773@ = 2.25
774@ = 2.0
775@ = 1.8
776@ = 1.3
777@ = 1.25
778@ = 1.16
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = 8.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 9.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 9.0
goto @TRIA_8781

:TRIA_3828
819@ = 0
820@ = 1
821@ = 9
822@ = 10
823@ = 10
824@ = 96
825@ = 96
826@ = 97
827@ = 103
792@ = 1408.9
793@ = -298.31
794@ = 1.14
143@ = 2135.4319
263@ = -67.9555
383@ = 5.4915
503@ = 66.3885
144@ = 2113.189
264@ = -61.7735
384@ = -1.6317
504@ = 79.829
145@ = 2042.62
265@ = -68.5141
385@ = -1.9576
505@ = 105.8667
146@ = 1914.295
266@ = -82.3669
386@ = -1.573
506@ = 101.7482
147@ = 1844.035
267@ = -62.2716
387@ = -1.6096
507@ = 84.9519
148@ = 1742.236
268@ = -20.0478
388@ = -1.287
508@ = 79.6055
149@ = 1618.168
269@ = -15.6618
389@ = -1.6797
509@ = 156.9966
150@ = 1599.854
270@ = -118.7409
390@ = -1.4099
510@ = 164.6305
151@ = 1533.974
271@ = -213.8303
391@ = -1.8143
511@ = 126.3196
152@ = 1426.781
272@ = -284.0623
392@ = 0.4372
512@ = 144.5477
153@ = 1398.955
273@ = -320.351
393@ = 4.0182
513@ = 153.3551
154@ = 1358.093
274@ = -336.8423
394@ = 1.9089
514@ = 116.3511
155@ = 1289.739
275@ = -376.0291
395@ = 1.8575
515@ = 115.9818
156@ = 1226.153
276@ = -418.5785
396@ = 4.1044
516@ = 98.6074
157@ = 1042.313
277@ = -450.289
397@ = 50.3135
517@ = 101.4914
158@ = 955.7357
278@ = -394.1266
398@ = 62.9355
518@ = 78.1451
159@ = 862.81
279@ = -348.28
399@ = 35.11
519@ = 56.0
160@ = 735.1562
280@ = -269.1867
400@ = 8.7576
520@ = 73.8366
161@ = 469.2164
281@ = -284.2076
401@ = 9.4602
521@ = 112.1922
162@ = 251.8701
282@ = -371.7388
402@ = 7.7356
522@ = 68.255
163@ = 223.9637
283@ = -281.344
403@ = 0.4297
523@ = 271.1071
164@ = 232.8023
284@ = -147.7986
404@ = 0.4375
524@ = 357.6566
165@ = 212.8295
285@ = 51.8381
405@ = 1.0781
525@ = 109.6694
166@ = -68.0222
286@ = 199.2302
406@ = 1.1111
526@ = 65.8208
167@ = -214.4978
287@ = 242.3661
407@ = 10.9924
527@ = 77.1542
168@ = -474.3636
288@ = 283.1361
408@ = 1.0859
528@ = 87.3102
169@ = -704.3909
289@ = 237.3473
409@ = 1.2298
529@ = 125.775
170@ = -753.5148
290@ = 113.9041
410@ = 13.0728
530@ = 238.8586
171@ = -774.6131
291@ = 19.818
411@ = 32.2693
531@ = 99.2499
172@ = -882.6287
292@ = -30.0806
412@ = 32.3448
532@ = 159.807
173@ = -693.5931
293@ = 14.1184
413@ = 64.7495
533@ = 274.7533
174@ = -747.8843
294@ = -87.2834
414@ = 65.6724
534@ = 116.1896
175@ = -914.7136
295@ = -149.6012
415@ = 52.8499
535@ = 134.4302
176@ = -962.9247
296@ = -326.8087
416@ = 35.2353
536@ = 168.4629
177@ = -1053.014
297@ = -459.1835
417@ = 34.307
537@ = 115.9967
178@ = -1192.145
298@ = -713.6215
418@ = 54.6026
538@ = 156.9905
179@ = -1487.715
299@ = -817.6843
419@ = 64.4213
539@ = 92.4112
180@ = -1740.777
300@ = -724.1766
420@ = 30.4857
540@ = 49.0549
181@ = -1781.205
301@ = -583.264
421@ = 15.3359
541@ = 100.3213
182@ = -1823.7
302@ = -529.5533
422@ = 13.9686
542@ = 4.2211
183@ = -1799.017
303@ = -273.0101
423@ = 20.3398
543@ = 354.7032
184@ = -1800.123
304@ = -65.1682
424@ = 10.9423
544@ = 359.6422
185@ = -1725.062
305@ = 327.4661
425@ = 6.039
545@ = 315.311
186@ = -1557.097
306@ = 578.606
426@ = 6.028
546@ = 0.4208
187@ = -1541.106
307@ = 769.1249
427@ = 6.0391
547@ = 353.7148
188@ = -1583.3781
308@ = 1116.991
428@ = 6.0468
548@ = 1.1392
189@ = -1809.283
309@ = 1378.625
429@ = 6.0391
549@ = 81.656
190@ = -2100.2129
310@ = 1275.833
430@ = 15.1271
550@ = 95.1487
191@ = -2350.208
311@ = 1176.574
431@ = 41.5671
551@ = 90.0114
192@ = -2510.877
312@ = 1187.856
432@ = 39.1262
552@ = 85.252
193@ = -2669.6799
313@ = 1245.1429
433@ = 54.4297
553@ = 8.9025
194@ = -2673.8931
314@ = 1643.3521
434@ = 65.0251
554@ = 0.2767
195@ = -2674.0471
315@ = 2075.5439
435@ = 54.4218
555@ = 359.5528
196@ = -2738.813
316@ = 2389.167
436@ = 71.7769
556@ = 13.6254
197@ = -2547.9309
317@ = 2616.4619
437@ = 59.9948
557@ = 274.8428
198@ = -2291.8879
318@ = 2639.561
438@ = 54.2564
558@ = 274.3506
199@ = -1943.441
319@ = 2477.7959
439@ = 53.9877
559@ = 203.7195
200@ = -1773.83
320@ = 2183.4089
440@ = 15.1278
560@ = 244.4939
201@ = -1671.4351
321@ = 1994.474
441@ = 18.605
561@ = 169.1263
202@ = -1665.7
322@ = 1828.964
442@ = 24.836
562@ = 278.2649
203@ = -1515.527
323@ = 1841.554
443@ = 28.9903
563@ = 271.1894
204@ = -1264.993
324@ = 1827.301
444@ = 39.4348
564@ = 234.95
205@ = -1121.385
325@ = 1807.5389
445@ = 41.2592
565@ = 284.4989
206@ = -988.9796
326@ = 1847.639
446@ = 61.9118
566@ = 237.4219
207@ = -855.0579
327@ = 1858.897
447@ = 59.216
567@ = 15.0168
208@ = -827.7874
328@ = 2022.61
448@ = 59.1866
568@ = 302.1424
209@ = -643.984
329@ = 2054.752
449@ = 59.3829
569@ = 252.3283
210@ = -460.4977
330@ = 2022.137
450@ = 59.1932
570@ = 314.0172
211@ = -385.3306
331@ = 2052.0591
451@ = 61.1139
571@ = 121.3349
212@ = -471.1979
332@ = 1868.452
452@ = 81.3094
572@ = 185.3215
213@ = -424.8187
333@ = 1785.552
453@ = 69.9688
573@ = 353.9297
214@ = -392.5027
334@ = 1899.678
454@ = 56.3096
574@ = 190.7471
215@ = -437.5663
335@ = 1639.054
455@ = 34.5544
575@ = 155.0889
216@ = -419.9048
336@ = 1375.7111
456@ = 29.3441
576@ = 198.0373
217@ = -254.2456
337@ = 1241.245
457@ = 22.9055
577@ = 262.7647
218@ = -17.3116
338@ = 1265.996
458@ = 7.1868
578@ = 269.9033
219@ = 207.218
339@ = 1174.193
459@ = 13.9973
579@ = 316.9584
220@ = 339.0704
340@ = 1382.287
460@ = 6.1753
580@ = 342.3971
221@ = 388.3414
341@ = 1547.929
461@ = 13.8468
581@ = 343.6689
222@ = 633.4001
342@ = 1754.8669
462@ = 3.9566
582@ = 317.1131
223@ = 669.8152
343@ = 2168.323
463@ = 20.5117
583@ = 358.9947
224@ = 689.647
344@ = 2565.1599
464@ = 27.2334
584@ = 311.5221
225@ = 891.8608
345@ = 2603.7539
465@ = 9.595
585@ = 247.505
226@ = 1044.021
346@ = 2515.8569
466@ = 9.6323
586@ = 231.5339
227@ = 1244.597
347@ = 2379.124
467@ = 12.6162
587@ = 243.279
228@ = 1443.869
348@ = 2448.9451
468@ = 5.7498
588@ = 288.6619
229@ = 1666.8929
349@ = 2445.9929
469@ = 6.0409
589@ = 251.8771
230@ = 1788.89
350@ = 2302.6411
470@ = 4.9096
590@ = 178.4221
231@ = 1787.288
351@ = 2020.553
471@ = 2.9839
591@ = 180.0315
232@ = 1757.569
352@ = 1803.75
472@ = 6.6726
592@ = 151.3169
233@ = 1719.6591
353@ = 1733.205
473@ = 9.6719
593@ = 76.1769
234@ = 1647.86
354@ = 1740.389
474@ = 9.6719
594@ = 353.7883
235@ = 1666.322
355@ = 1871.767
475@ = 9.6797
595@ = 276.203
236@ = 1707.177
356@ = 1939.953
476@ = 9.6719
596@ = 1.2039
237@ = 1736.212
357@ = 2053.1389
477@ = 9.6797
597@ = 263.9626
238@ = 1897.3199
358@ = 2044.712
478@ = 9.6719
598@ = 254.9706
239@ = 1994.816
359@ = 2022.869
479@ = 9.6797
599@ = 270.1811
240@ = 2126.0049
360@ = 2014.889
480@ = 9.6719
600@ = 199.0654
241@ = 2126.7981
361@ = 1885.59
481@ = 9.6797
601@ = 178.0925
242@ = 2098.335
362@ = 1802.86
482@ = 9.6797
602@ = 156.4693
243@ = 2056.644
363@ = 1720.575
483@ = 9.6719
603@ = 156.0535
244@ = 2049.26
364@ = 1554.7889
484@ = 9.6719
604@ = 179.2217
245@ = 2050.8269
365@ = 1403.3621
485@ = 9.6719
605@ = 179.9112
246@ = 2048.7
366@ = 1089.746
486@ = 9.6641
606@ = 179.8144
743@ = 2046.0
744@ = 979.0
745@ = 9.49
828@ = 104
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 50.0
771@ = 40.0
772@ = 30.0
773@ = 2.23
774@ = 2.1
775@ = 1.8
776@ = 1.33
777@ = 1.3
778@ = 1.25
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = -4.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 5.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 4.0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
750@ = 0
751@ = 0
752@ = 0
753@ = 0
754@ = 0
755@ = 0
756@ = 0
757@ = 0
goto @TRIA_8781
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0
delete_checkpoint 963@

:TRIA_8781
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@

:TRIA_8805
if 
  not is_player_playing $player1
goto_if_false @TRIA_8832
wait 0
goto @TRIA_8805

:TRIA_8832
clear_area 143@ {y} 263@ {z} 383@ {radius} 1000001.0 {clearParticles} False
load_scene 143@ {y} 263@ {z} 383@
disable_all_entry_exits True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_lvar_int_to_lvar_int 853@ = 828@
853@ -= 1
758@ = 0
759@ = 0
760@ = 0
761@ = 0
set_lvar_int_to_lvar_int 926@ = 118@

:TRIA_8930
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_8974
927@(759@,12i) = 0
759@ += 1
goto @TRIA_8930

:TRIA_8974
939@ = add_blip_for_coord 143@ {y} 263@ {z} 383@
940@ = 0

:TRIA_8995
wait 0
$game_timer = get_game_timer 
942@ = 0
759@ = 0
if 
  940@ == 0
goto_if_false @TRIA_9234
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_9234
set_char_coordinates $scplayer {x} 143@ {y} 263@ {z} 383@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
build_player_model $player1
if 
  locate_char_any_means_2d $scplayer {x} 144@ {y} 264@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @TRIA_9234
758@ = 0
set_var_float_to_lvar_float $x = 143@
$x += 4.0
set_var_float_to_lvar_float $y = 263@
$y += 4.0
set_var_float_to_lvar_float $z = 383@
$z += 6.0
set_lvar_float_to_lvar_float 785@ = 143@
785@ -= 7.0
set_lvar_float_to_lvar_float 786@ = 263@
786@ -= 7.0
set_lvar_float_to_lvar_float 787@ = 383@
787@ -= 7.0
940@ += 1

:TRIA_9234
if 
  940@ == 1
goto_if_false @TRIA_9327
request_model 154
request_model 18
request_model 45
request_model 167
request_model 510

:TRIA_9275
if or
  not has_model_loaded 154
  not has_model_loaded 18
  not has_model_loaded 45
  not has_model_loaded 167
  not has_model_loaded 510
goto_if_false @TRIA_9320
wait 0
goto @TRIA_9275

:TRIA_9320
940@ = 2

:TRIA_9327
if 
  940@ == 2
goto_if_false @TRIA_11267
768@ = create_car 841@ {x} 143@ {y} 263@ {z} 383@
turn_car_to_face_coord 768@ {x} 144@ {y} 264@
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
769@ = create_car 841@ {x} 143@(822@,120f) {y} 263@(822@,120f) {z} -100.0
set_car_heading 769@ {heading} 503@(822@,120f)
785@, 786@, 787@ = get_offset_from_car_in_world_coords 769@ {xOffset} 785@ {yOffset} 786@ {zOffset} 787@
791@ = get_car_heading 769@
set_lvar_float_to_lvar_float 787@ = 383@
759@ = 0

:TRIA_9473
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_11027
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_9591
$x = 1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_9649

:TRIA_9591
$x = -1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_9649
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} $x {yOffset} $y {zOffset} $z
789@ = get_car_heading 768@
set_var_float_to_lvar_float $z = 383@
set_lvar_float_to_var_float 854@(759@,12f) = $x
set_lvar_float_to_var_float 866@(759@,12f) = $y
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 878@(759@,12f) = $z
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_10271
create_char PedType.CivMale {modelId} 829@(759@,12i) {x} $x {y} $y {z} -100.0 {var_handle} 914@(759@,12i)
set_char_only_damaged_by_player 914@(759@,12i) {state} True
set_char_decision_maker 914@(759@,12i) {handleOrTemplate} 816@
131@(759@,12i) = 0
804@(759@,12i) = 0
set_char_heading 914@(759@,12i) {heading} 503@
set_char_drowns_in_water 914@(759@,12i) {state} False
clear_char_last_damage_entity 914@(759@,12i)
set_char_can_be_shot_in_vehicle 914@(759@,12i) {state} False
if 
  131@(759@,12i) == 0
goto_if_false @TRIA_10264
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_9995
$x = 3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_10053

:TRIA_9995
$x = -3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_10053
$x, $y, $z = get_offset_from_car_in_world_coords 769@ {xOffset} $x {yOffset} $y {zOffset} $z
create_car 841@(759@,12i) {x} $x {y} $y {z} -100.0 {var_handle} 902@(759@,12i)
improve_car_by_cheating 902@(759@,12i) {state} True
set_car_traction 902@(759@,12i) {traction} 1.5
131@(759@,12i) = 1
add_stuck_car_check_with_warp 902@(759@,12i) {distance} 0.5 {time} 5000 {stuck} True {flipped} False {inWater} True {numNodesToCheck} 1
set_car_heading 902@(759@,12i) {heading} 175.0
set_car_proofs 902@(759@,12i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 902@(759@,12i) {health} 2000
set_car_watertight 902@(759@,12i) {state} True
set_car_strong 902@(759@,12i) {state} True
set_upsidedown_car_not_damaged 902@(759@,12i) {state} True
set_car_straight_line_distance 902@(759@,12i) {distance} 5
set_can_burst_car_tyres 902@(759@,12i) {state} False

:TRIA_10264
goto @TRIA_11013

:TRIA_10271
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
954@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 954@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
943@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 943@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} -0.8
944@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 944@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} -0.8
945@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 945@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} -0.8
946@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 946@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} -0.8
947@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 947@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} -0.8
948@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 948@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} -0.8
949@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 949@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} -0.8
950@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 950@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} -0.8
951@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 951@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} -0.8
952@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 952@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} -0.8
953@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 953@ {x} 143@ {y} 263@ {z} 383@
remove_blip 939@
939@ = add_blip_for_coord 854@(762@,12f) {y} 866@(762@,12f) {z} 878@(762@,12f)
set_car_density_multiplier 0.5
set_lvar_int_to_var_int 914@(759@,12i) = $scplayer
set_lvar_int_to_lvar_int 941@ = 759@

:TRIA_11013
759@ += 1
goto @TRIA_9473

:TRIA_11027
940@ += 1
delete_car 768@
delete_car 769@
769@ = create_car 841@ {x} 143@(822@,120f) {y} 263@(822@,120f) {z} 383@(822@,120f)
set_car_heading 769@ {heading} 503@(822@,120f)
795@, 796@, 797@ = get_offset_from_car_in_world_coords 769@ {xOffset} 5.0 {yOffset} -15.0 {zOffset} 0.0
set_car_heading 769@ {heading} 791@
create_car 510 {x} 795@ {y} 796@ {z} -100.0 {var_handle} 902@(941@,12i)
set_car_heading 902@(941@,12i) {heading} 791@
set_car_watertight 902@(941@,12i) {state} True
delete_car 769@
if 
  is_player_playing $player1
goto_if_false @TRIA_11225
set_char_coordinates $scplayer {x} 854@(941@,12f) {y} 866@(941@,12f) {z} 878@(941@,12f)
set_char_heading $scplayer {heading} 503@
set_camera_behind_player 

:TRIA_11225
switch_widescreen True
wait 500
do_fade 3000 {direction} Fade.In

:TRIA_11241
if 
  get_fading_status 
goto_if_false @TRIA_11265
wait 0
goto @TRIA_11241

:TRIA_11265
clear_prints 

:TRIA_11267
if 
  940@ == 3
goto_if_false @TRIA_11478
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_11478
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11379
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11455
if 
  is_char_dead 914@(759@,12i)
goto_if_false @TRIA_11441
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_11441
759@ += 1
goto @TRIA_11379

:TRIA_11455
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11478
if 
  940@ == 4
goto_if_false @TRIA_11576
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11576
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11576
if 
  940@ == 5
goto_if_false @TRIA_11674
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11674
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11674
if 
  940@ == 6
goto_if_false @TRIA_11901
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11901
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_11901
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
restore_camera 
switch_widescreen False
display_car_names False
set_lvar_int_to_var_int 767@ = $game_timer
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11823
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11887
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_11873
set_car_only_damaged_by_player 902@(759@,12i) {state} False

:TRIA_11873
759@ += 1
goto @TRIA_11823

:TRIA_11887
955@ = 0
940@ += 1

:TRIA_11901
if 
  940@ > 6
goto_if_false @TRIA_19640

:TRIA_11919
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_18580
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_18566
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_14917
if 
  940@ == 8
goto_if_false @TRIA_14910
if 
  not is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_14910
if 
  is_int_lvar_equal_to_int_lvar 927@(941@,12i) == 927@(759@,12i)
goto_if_false @TRIA_12157
$x, $y, $z = get_char_coordinates 914@(759@,12i)
957@ = get_distance_between_coords_2d $x {fromY} $y {toX} 854@(759@,12f) {toZ} 866@(759@,12f)
$x, $y, $z = get_char_coordinates $scplayer
790@ = get_distance_between_coords_2d $x {fromY} $y {toX} 854@(759@,12f) {toZ} 866@(759@,12f)
if 
  is_float_lvar_greater_than_float_lvar 790@ > 957@
goto_if_false @TRIA_12150
942@ += 1

:TRIA_12150
goto @TRIA_12191

:TRIA_12157
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 927@(941@,12i)
goto_if_false @TRIA_12191
942@ += 1

:TRIA_12191
if 
  not locate_char_any_means_2d 914@(759@,12i) {x} 82@(759@,12f) {y} 94@(759@,12f) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @TRIA_12407
get_char_coordinates 914@(759@,12i) {var_x} 82@(759@,12f) {var_y} 94@(759@,12f) {var_z} $z
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_12329
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12407

:TRIA_12329
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_12383
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12407

:TRIA_12383
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 4000

:TRIA_12407
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_12608
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "SPRINT_PANIC"
goto_if_false @TRIA_12502
set_char_anim_speed 914@(759@,12i) {animName} "SPRINT_PANIC" {animSpeed} 781@

:TRIA_12502
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "RUN_CIVI"
goto_if_false @TRIA_12554
set_char_anim_speed 914@(759@,12i) {animName} "RUN_CIVI" {animSpeed} 781@

:TRIA_12554
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "WALK_CIVI"
goto_if_false @TRIA_12608
set_char_anim_speed 914@(759@,12i) {animName} "WALK_CIVI" {animSpeed} 781@

:TRIA_12608
if 
  locate_char_any_means_2d 914@(759@,12i) {x} 82@(759@,12f) {y} 94@(759@,12f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @TRIA_14169
if 
  is_int_var_greater_than_int_lvar $game_timer > 119@(759@,12i)
goto_if_false @TRIA_14169
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_13188
if 
  is_char_in_water 914@(759@,12i)
goto_if_false @TRIA_13165
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 819@
goto_if_false @TRIA_12950
if 
  3 <= 927@(759@,12i)
goto_if_false @TRIA_12907
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_12900
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@

:TRIA_12900
goto @TRIA_12943

:TRIA_12907
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 2.2

:TRIA_12943
goto @TRIA_13158

:TRIA_12950
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_13158
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_13158
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
set_char_heading 914@(759@,12i) {heading} 503@(759@,120f)
clear_char_tasks 914@(759@,12i)
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_13158
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@

:TRIA_13158
goto @TRIA_13188

:TRIA_13165
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_13188

:TRIA_13188
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14026
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_14026
switch_start 804@(759@,12i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRIA_13635 {caseNum1} 0 {caseLabel1} @TRIA_13310 {caseNum2} 1 {caseLabel2} @TRIA_13385 {caseNum3} -1 {caseLabel3} @TRIA_14026 {caseNum4} -1 {caseLabel4} @TRIA_14026 {caseNum5} -1 {caseLabel5} @TRIA_14026 {caseNum6} -1 {caseLabel6} @TRIA_14026 {caseNum7} -1 {caseLabel7} @TRIA_14026

:TRIA_13310
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 792@ {y} 793@ {z} 794@ {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 902@(759@,12i) {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
804@(759@,12i) = 1
goto @TRIA_14026

:TRIA_13385
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_13628
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_car_on_screen 902@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_13628
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_13628
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
804@(759@,12i) = 2

:TRIA_13628
goto @TRIA_14026

:TRIA_13635
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14019
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_14019
if 
  not is_car_on_screen 902@(759@,12i)
goto_if_false @TRIA_14019
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_14019
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14019
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_13925
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_13918
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_13918
goto @TRIA_14019

:TRIA_13925
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
turn_car_to_face_coord 902@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_14019
goto @TRIA_14026

:TRIA_14026
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_14169
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14169
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_14169
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)

:TRIA_14169
if 
  is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_14220
set_lvar_int_to_lvar_int 762@ = 927@(941@,12i)
762@ += 5
768@ = store_car_char_is_in_no_save 914@(759@,12i)

:TRIA_14220
758@ = 0
761@ = 0

:TRIA_14234
if 
  is_int_lvar_greater_than_int_lvar 926@ > 758@
goto_if_false @TRIA_14316
set_lvar_int_to_lvar_int 958@ = 927@(758@,12i)
958@ -= 2
if 
  is_int_lvar_greater_than_int_lvar 958@ > 927@(759@,12i)
goto_if_false @TRIA_14302
761@ += 1

:TRIA_14302
758@ += 1
goto @TRIA_14234

:TRIA_14316
if 
  761@ > 0
goto_if_false @TRIA_14910
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_14910
if 
  not locate_char_any_means_char_3d $scplayer {target} 914@(759@,12i) {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @TRIA_14910
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_point_obscured_by_a_mission_entity 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @TRIA_14910
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 4.0
goto_if_false @TRIA_14910
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
clear_char_tasks 914@(759@,12i)
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14910
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14910
if 
  is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_14728
768@ = store_car_char_is_in_no_save 914@(759@,12i)
set_car_heading 768@ {heading} 503@(759@,120f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @TRIA_14910

:TRIA_14728
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_char_in_car $scplayer {vehicle} 902@(759@,12i)
goto_if_false @TRIA_14910
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_14910
clear_char_tasks 914@(759@,12i)
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
set_car_heading 902@(759@,12i) {heading} 503@(759@,120f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_14910
goto @TRIA_15019

:TRIA_14917
if and
  has_char_been_damaged_by_char 914@(759@,12i) {handle} $scplayer
  is_char_dead 914@(759@,12i)
goto_if_false @TRIA_15019
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_15019
if 
  not has_char_been_damaged_by_car 914@(759@,12i) {handle} 902@(941@,12i)
goto_if_false @TRIA_15019
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15019
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_16413
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15161
if 
  782@ == 0
goto_if_false @TRIA_15161
if 
  not locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 600.0 {yRadius} 600.0 {zRadius} 600.0 {drawSphere} False
goto_if_false @TRIA_15161
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15161
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 827@
goto_if_false @TRIA_15267
if 
  746@(759@,12i) == 0
goto_if_false @TRIA_15267
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 743@ {y} 744@ {z} 745@ {speed} MoveState.Sprint {time} -2
task_tired -1 {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
746@(759@,12i) = 1

:TRIA_15267
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_15671
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_15671
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_15397
goto @TRIA_19715
goto @TRIA_15445

:TRIA_15397
get_script_task_status 914@(759@,12i) {taskId} 2606 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15445
goto @TRIA_19715

:TRIA_15445
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_15671
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15560
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_15530
goto @TRIA_22664
goto @TRIA_15553

:TRIA_15530
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15553
goto @TRIA_15671

:TRIA_15560
task_car_temp_action 914@(759@,12i) {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 2000000
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 30.0
goto_if_false @TRIA_15671
if 
  not is_car_dead 768@
goto_if_false @TRIA_15671
turn_car_to_face_coord 768@ {x} 143@(759@,120f) {y} 263@(759@,120f)

:TRIA_15671
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 821@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_16236
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16078
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_15929
if 
  locate_char_in_car_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @TRIA_15922
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_15915
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15908
goto @TRIA_19715

:TRIA_15908
goto @TRIA_15922

:TRIA_15915
goto @TRIA_19715

:TRIA_15922
goto @TRIA_16071

:TRIA_15929
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_16071
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16064
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16057
goto @TRIA_19715

:TRIA_16057
goto @TRIA_16071

:TRIA_16064
goto @TRIA_19715

:TRIA_16071
goto @TRIA_16236

:TRIA_16078
if 
  locate_char_in_car_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @TRIA_16236
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_16229
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16222
goto @TRIA_19715

:TRIA_16222
goto @TRIA_16236

:TRIA_16229
goto @TRIA_19715

:TRIA_16236
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_than_int_lvar 821@ > 927@(759@,12i)
goto_if_false @TRIA_16413
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_16413
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16406
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16399
goto @TRIA_19715

:TRIA_16399
goto @TRIA_16413

:TRIA_16406
goto @TRIA_19715

:TRIA_16413
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_18566
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_17226
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17201
if 
  not is_char_in_car $scplayer {vehicle} 902@(941@,12i)
goto_if_false @TRIA_16901
if 
  782@ == 0
goto_if_false @TRIA_16626
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_16581
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_16581
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_16626
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_16675
764@ = 0

:TRIA_16675
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_16719
print_now 'RACES20' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_16719
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_16767
print_with_number_now 'RACE_51' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_16786

:TRIA_16767
print_with_number_now 'RACES50' {num} 764@ {duration} 200 {flag} 1

:TRIA_16786
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_16894
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16894
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_16871
goto @TRIA_22664
goto @TRIA_16894

:TRIA_16871
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_16894
goto @TRIA_17194

:TRIA_16901
if 
  782@ == 1
goto_if_false @TRIA_17194
clear_this_print 'RACES50'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17096
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_17187

:TRIA_17096
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17145
762@ = 1

:TRIA_17145
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_17187
782@ = 0

:TRIA_17194
goto @TRIA_17226

:TRIA_17201
print_now 'RACES24' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_17226
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_than_int_lvar 765@ > 927@(759@,12i)
goto_if_false @TRIA_17896
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17896
if 
  is_char_in_any_car $scplayer
goto_if_false @TRIA_17603
if 
  782@ == 0
goto_if_false @TRIA_17436
store_car_char_is_in $scplayer {var_handle} 902@(941@,12i)
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17391
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_17391
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_17436
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_17485
764@ = 0

:TRIA_17485
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_17529
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_17529
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_17577
print_with_number_now 'RACE_49' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_17596

:TRIA_17577
print_with_number_now 'RACES48' {num} 764@ {duration} 200 {flag} 1

:TRIA_17596
goto @TRIA_17896

:TRIA_17603
if 
  782@ == 1
goto_if_false @TRIA_17896
clear_this_print 'RACES48'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17798
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_17889

:TRIA_17798
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17847
762@ = 1

:TRIA_17847
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_17889
782@ = 0

:TRIA_17896
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 765@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_18566
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_18566
if 
  is_char_in_any_car $scplayer
goto_if_false @TRIA_18273
if 
  782@ == 0
goto_if_false @TRIA_18106
store_car_char_is_in $scplayer {var_handle} 902@(941@,12i)
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_18061
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_18061
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 5000
782@ = 1

:TRIA_18106
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_18155
764@ = 0

:TRIA_18155
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_18199
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_18199
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_18247
print_with_number_now 'RACE_49' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_18266

:TRIA_18247
print_with_number_now 'RACES48' {num} 764@ {duration} 200 {flag} 1

:TRIA_18266
goto @TRIA_18566

:TRIA_18273
if 
  782@ == 1
goto_if_false @TRIA_18566
clear_this_print 'RACES48'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18468
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_18559

:TRIA_18468
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18517
762@ = 1

:TRIA_18517
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_18559
782@ = 0

:TRIA_18566
759@ += 1
goto @TRIA_11919

:TRIA_18580
draw_rect 40@ {y} 52@ {width} 64@ {height} 76@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 39@ {y} 51@ {width} 63@ {height} 75@ {r} 134 {g} 155 {b} 184 {a} 255
draw_rect 34@ {y} 46@ {width} 58@ {height} 70@ {r} 0 {g} 0 {b} 0 {a} 255
942@ += 1
gosub @TRIA_19647
set_text_scale 59@ {heightScale} 71@
if 
  942@ == 1
goto_if_false @TRIA_18709
display_text 35@ {offsetTop} 47@ {key} 'ST'

:TRIA_18709
if 
  942@ == 2
goto_if_false @TRIA_18744
display_text 35@ {offsetTop} 47@ {key} 'ND'

:TRIA_18744
if 
  942@ == 3
goto_if_false @TRIA_18779
display_text 35@ {offsetTop} 47@ {key} 'RD'

:TRIA_18779
if 
  942@ > 3
goto_if_false @TRIA_18814
display_text 35@ {offsetTop} 47@ {key} 'TH'

:TRIA_18814
if 
  7 >= 942@
goto_if_false @TRIA_19083
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_18939
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_18939
779@ = 20.0

:TRIA_18939
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19011
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19011
779@ = 20.0

:TRIA_19011
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19083
if or
  927@(759@,12i) == 89
  927@(759@,12i) == 90
  927@(759@,12i) == 91
goto_if_false @TRIA_19083
779@ = 20.0

:TRIA_19083
if and
  942@ > 7
  9 > 942@
goto_if_false @TRIA_19359
set_lvar_float_to_lvar_float 779@ = 771@
set_lvar_float_to_lvar_float 780@ = 774@
set_lvar_float_to_lvar_float 781@ = 777@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19215
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_19215
779@ = 20.0

:TRIA_19215
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19287
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19287
779@ = 20.0

:TRIA_19287
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19359
if or
  927@(759@,12i) == 91
  927@(759@,12i) == 92
  927@(759@,12i) == 93
goto_if_false @TRIA_19359
779@ = 20.0

:TRIA_19359
if 
  942@ == 9
goto_if_false @TRIA_19401
set_lvar_float_to_lvar_float 779@ = 772@
set_lvar_float_to_lvar_float 780@ = 775@
set_lvar_float_to_lvar_float 781@ = 778@

:TRIA_19401
gosub @TRIA_19647
set_text_scale 60@ {heightScale} 72@
set_text_centre True
display_text_with_number 36@ {offsetTop} 48@ {key} 'NUMBER' {num} 942@
gosub @TRIA_19647
set_text_scale 61@ {heightScale} 73@
display_text_with_number 37@ {offsetTop} 49@ {key} 'OUT_OF' {num} 118@
$game_timer = get_game_timer 
set_lvar_int_to_var_int 959@ = $game_timer
sub_int_lvar_from_int_lvar 959@ -= 767@
959@ /= 1000
set_lvar_int_to_lvar_int 763@ = 959@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 959@
sub_int_lvar_from_int_lvar 764@ -= 762@
gosub @TRIA_19647
set_text_centre True
set_text_scale 62@ {heightScale} 74@
if 
  764@ > 9
goto_if_false @TRIA_19617
display_text_with_2_numbers 38@ {offsetTop} 50@ {key} 'TIME' {num1} 763@ {num2} 764@
goto @TRIA_19640

:TRIA_19617
display_text_with_2_numbers 38@ {offsetTop} 50@ {key} 'TIME_0' {num1} 763@ {num2} 764@

:TRIA_19640
goto @TRIA_8995

:TRIA_19647
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:TRIA_19715
if 
  940@ == 7
goto_if_false @TRIA_19740
940@ = 8

:TRIA_19740
927@(759@,12i) += 1
set_lvar_int_to_lvar_int 762@ = 927@(759@,12i)
set_lvar_float_to_lvar_float 854@(759@,12f) = 143@(762@,120f)
set_lvar_float_to_lvar_float 866@(759@,12f) = 263@(762@,120f)
set_lvar_float_to_lvar_float 878@(759@,12f) = 383@(762@,120f)
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_21781
if 
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_19919
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_19896
goto @TRIA_22664
goto @TRIA_19919

:TRIA_19896
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_19919
if 
  817@ == 0
goto_if_false @TRIA_19978
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_19978
print_help 'TRAI2'
817@ = 1

:TRIA_19978
if 
  817@ == 1
goto_if_false @TRIA_20037
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_20037
print_help 'TRAI3'
817@ = 2

:TRIA_20037
if 
  817@ == 2
goto_if_false @TRIA_20096
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_20096
print_help 'TRAI4'
817@ = 3

:TRIA_20096
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 939@
762@ += 1
set_lvar_float_to_lvar_float 960@ = 143@(762@,120f)
set_lvar_float_to_lvar_float 961@ = 263@(762@,120f)
set_lvar_float_to_lvar_float 962@ = 383@(762@,120f)
939@ = add_blip_for_coord 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  940@ == 1
goto_if_false @TRIA_20271
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_20271
delete_checkpoint 963@
if 
  is_int_lvar_greater_than_int_lvar 853@ > 927@(759@,12i)
goto_if_false @TRIA_20348
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0
goto @TRIA_20390

:TRIA_20348
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_20390
if 
  927@(759@,12i) == 3
goto_if_false @TRIA_20472
delete_char 954@
delete_char 943@
delete_char 944@
delete_char 945@
delete_char 946@
delete_char 947@
delete_char 948@
delete_char 949@
delete_char 950@
delete_char 951@
delete_char 952@
delete_char 953@

:TRIA_20472
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 3
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 762@
goto_if_false @TRIA_21387
768@ = create_car 841@ {x} 143@(825@,120f) {y} 263@(825@,120f) {z} 383@(825@,120f)
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 1
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} 0.8
954@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 954@ {x} 143@(762@,120f) {y} 263@(824@,120f) {z} 383@(824@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} 0.8
943@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 943@ {x} 143@(762@,120f) {y} 263@(824@,120f) {z} 383@(824@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} 0.8
944@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 944@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} 0.8
945@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 945@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} 0.8
946@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 946@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} 0.8
947@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 947@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} 0.8
948@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 948@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} 0.8
949@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 949@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} 0.8
950@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 950@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} 0.8
951@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 951@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} 0.8
952@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 952@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} 0.8
953@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 953@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
delete_car 768@

:TRIA_21387
set_lvar_int_to_lvar_int 765@ = 824@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21485
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@

:TRIA_21485
if 
  927@(759@,12i) == 21
goto_if_false @TRIA_21538
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21538
set_car_watertight 902@(941@,12i) {state} True

:TRIA_21538
if 
  927@(759@,12i) == 22
goto_if_false @TRIA_21591
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21591
set_car_watertight 902@(941@,12i) {state} False

:TRIA_21591
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21689
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@

:TRIA_21689
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_21774
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21774
if 
  is_char_in_car $scplayer {vehicle} 902@(941@,12i)
goto_if_false @TRIA_21774
task_car_temp_action $scplayer {vehicle} 902@(941@,12i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:TRIA_21774
goto @TRIA_22639

:TRIA_21781
if 
  not is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_22639
clear_char_tasks 914@(759@,12i)
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_22039
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@ {speed} MoveState.Sprint {time} -2
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "SPRINT_PANIC"
goto_if_false @TRIA_21926
set_char_anim_speed 914@(759@,12i) {animName} "SPRINT_PANIC" {animSpeed} 781@

:TRIA_21926
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "RUN_CIVI"
goto_if_false @TRIA_21978
set_char_anim_speed 914@(759@,12i) {animName} "RUN_CIVI" {animSpeed} 781@

:TRIA_21978
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "WALK_CIVI"
goto_if_false @TRIA_22032
set_char_anim_speed 914@(759@,12i) {animName} "WALK_CIVI" {animSpeed} 781@

:TRIA_22032
goto @TRIA_16413

:TRIA_22039
if and
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 820@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_22375
if 
  is_char_in_water 914@(759@,12i)
goto_if_false @TRIA_22316
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_22309
if 
  804@(759@,12i) == 0
goto_if_false @TRIA_22309
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_22309
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 792@ {y} 793@ {z} 794@ {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 902@(759@,12i) {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
804@(759@,12i) = 1

:TRIA_22309
goto @TRIA_22368

:TRIA_22316
if 
  927@(759@,12i) == 2
goto_if_false @TRIA_22368
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@ {speed} MoveState.Sprint {time} -2

:TRIA_22368
goto @TRIA_16413

:TRIA_22375
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_22480
if 
  804@(759@,12i) > 0
goto_if_false @TRIA_22473
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_22473
goto @TRIA_16413

:TRIA_22480
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_22639
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_22579
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} MoveState.Sprint {time} -2
goto @TRIA_22632

:TRIA_22579
set_follow_node_threshold_distance 914@(759@,12i) {range} 20.0
task_follow_path_nodes_to_coord_with_radius 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} MoveState.Sprint {time} -2 {radius} 8.0

:TRIA_22632
goto @TRIA_16413

:TRIA_22639
goto @TRIA_16413

:TRIA_22646
print_big 'RACEFA' {time} 5000 {style} TextStyle.Middle
return 

:TRIA_22664
clear_wanted_level $player1
play_mission_passed_tune 2
print_big 'RACES18' {time} 5000 {style} TextStyle.Middle
if 
  $triathalon_selection == 1
goto_if_false @TRIA_22734
print_with_number 'TRAI1' {num} 10000 {duration} 5000 {flag} 2
add_score $player1 {money} 10000

:TRIA_22734
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22779
print_with_number 'TRAI1' {num} 20000 {duration} 5000 {flag} 2
add_score $player1 {money} 20000

:TRIA_22779
955@ /= 1000
set_lvar_int_to_lvar_int 763@ = 955@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 955@
sub_int_lvar_from_int_lvar 764@ -= 762@
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_22885
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22876
set_int_stat StatId.Stamina {value} 1000

:TRIA_22876
register_oddjob_mission_passed 
$flag_triathalon_passed_1stime = 1

:TRIA_22885
return 

:TRIA_22887
$onmission = 0
mark_model_as_no_longer_needed 829@
mark_model_as_no_longer_needed 830@
mark_model_as_no_longer_needed 831@
mark_model_as_no_longer_needed 832@
mark_model_as_no_longer_needed 833@
mark_model_as_no_longer_needed 834@
mark_model_as_no_longer_needed 835@
mark_model_as_no_longer_needed 836@
mark_model_as_no_longer_needed 837@
mark_model_as_no_longer_needed 838@
mark_model_as_no_longer_needed 839@
mark_model_as_no_longer_needed 840@
mark_model_as_no_longer_needed 154
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 45
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed 510
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@
display_car_names True
remove_blip 939@
$timer_mobile_start = get_game_timer 
disable_all_entry_exits False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_message_formatting False {margin} 380 {width} 464
use_text_commands False
mission_has_finished 
return 

//-------------Mission 131---------------
// Originally: Courier

:BCOUR
script_name 'BCOUR'
gosub @BCOUR_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCOUR_38
gosub @BCOUR_14263

:BCOUR_38
gosub @BCOUR_16223
terminate_this_script 

:BCOUR_47
if 
  not is_char_dead $scplayer
goto_if_false @BCOUR_71
872@ = get_city_player_is_in $player1

:BCOUR_71
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_109
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_109
register_mission_given 

:BCOUR_109
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_147
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_147
register_mission_given 

:BCOUR_147
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_185
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_185
register_mission_given 

:BCOUR_185
$onmission = 1
wait 0
wait 0
load_mission_text 'BCOU'
set_fading_colour 0 {g} 0 {b} 0
37@ = create_object #KMB_PACKET {x} -2492.5081 {y} 0.5813 {z} 24.7593
if 
  746@ == -13
goto_if_false @BCOUR_284
38@ = create_char PedType.Mission1 {modelId} 29 {x} -2455.6621 {y} -105.3974 {z} 26.5568

:BCOUR_284
request_model 586
request_model 29
request_animation "SMOKING"
load_all_models_now 

:BCOUR_306
if or
  not has_model_loaded 586
  not has_model_loaded 29
  not has_animation_loaded "SMOKING"
goto_if_false @BCOUR_348
wait 0
goto @BCOUR_306

:BCOUR_348
if 
  not is_char_dead $scplayer
goto_if_false @BCOUR_371
set_player_control $player1 {state} True

:BCOUR_371
875@ = 0
882@ = 0
879@ = 0
880@ = 0
866@ = 0
867@ = 0
34@ = 0
869@ = 0
870@ = 0
871@ = 0
744@ = 0
745@ = 0
743@ = 0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
868@ = 0
760@ = 0
761@ = 0
762@ = 0
383@ = -2594.8159
413@ = 52.5992
443@ = 3.3359
103@ = -2797.9519
133@ = 209.7299
163@ = 6.1963
104@ = -2492.771
134@ = -196.6625
164@ = 24.6236
105@ = -2611.989
135@ = -110.7328
165@ = 3.331
106@ = -2176.3921
136@ = -41.7131
166@ = 34.3125
107@ = -2243.896
137@ = 603.6998
167@ = 40.1216
108@ = -1569.994
138@ = 662.3286
168@ = 6.1874
109@ = -2756.3711
139@ = 379.1574
169@ = 3.3281
110@ = -2609.9021
140@ = 131.9432
170@ = 3.326
111@ = -2743.8579
141@ = 761.4077
171@ = 53.3828
112@ = -2600.543
142@ = 980.7458
172@ = 77.2676
113@ = -2153.959
143@ = 716.1611
173@ = 68.5511
114@ = -2153.604
144@ = 251.9152
174@ = 34.3125
115@ = -2808.2849
145@ = -340.2412
175@ = 6.1797
116@ = -2428.8459
146@ = -164.1249
176@ = 34.3125
117@ = -1984.213
147@ = 128.7572
177@ = 26.6797
118@ = -1888.46
148@ = 819.6346
178@ = 34.1797
119@ = -1503.329
149@ = 919.9264
179@ = 6.1776
120@ = -2533.885
150@ = 987.9146
180@ = 77.3017
473@ = 1346.019
503@ = -1741.781
533@ = 12.397
193@ = 1286.769
223@ = -1676.166
253@ = 12.5625
194@ = 1544.063
224@ = -1675.754
254@ = 12.56
195@ = 1320.097
225@ = -1795.099
255@ = 12.5391
196@ = 1614.261
226@ = -1885.756
256@ = 12.5536
197@ = 2009.173
227@ = -1716.913
257@ = 12.5469
198@ = 1256.5129
228@ = -1010.974
258@ = 32.9002
199@ = 1016.673
229@ = -1508.782
259@ = 12.541
200@ = 1286.769
230@ = -1676.166
260@ = 12.5625
201@ = 1544.063
231@ = -1675.754
261@ = 12.56
202@ = 1320.097
232@ = -1795.099
262@ = 12.5391
203@ = 1614.261
233@ = -1885.756
263@ = 12.5536
204@ = 2009.173
234@ = -1716.913
264@ = 12.5469
205@ = 2865.3889
235@ = -1438.957
265@ = 9.9659
206@ = 2740.561
236@ = -2103.4419
266@ = 11.1221
207@ = 1346.455
237@ = -989.3849
267@ = 28.0294
208@ = 150.4926
238@ = -1945.385
268@ = 2.7657
209@ = 378.0941
239@ = -2053.585
269@ = 7.0156
210@ = 804.5734
240@ = -1020.714
270@ = 25.6819
563@ = 1904.681
593@ = 2096.1699
623@ = 9.8203
283@ = 1698.4041
313@ = 2054.8979
343@ = 9.8203
284@ = 2159.833
314@ = 2066.728
344@ = 9.8125
285@ = 1935.701
315@ = 2158.4641
345@ = 9.8203
286@ = 1654.3311
316@ = 1803.812
346@ = 9.8125
287@ = 2083.325
317@ = 1503.754
347@ = 9.8125
288@ = 1720.11
318@ = 1298.548
348@ = 9.8203
289@ = 2233.8369
319@ = 1282.1949
349@ = 9.8203
290@ = 1698.4041
320@ = 2063.969
350@ = 9.8203
291@ = 2159.833
321@ = 2066.728
351@ = 9.8125
292@ = 1935.701
322@ = 2158.4641
352@ = 9.8203
293@ = 1654.3311
323@ = 1803.812
353@ = 9.8125
294@ = 2083.325
324@ = 1503.754
354@ = 9.8125
295@ = 1917.762
325@ = 2768.874
355@ = 9.8203
296@ = 2344.5691
326@ = 2779.9651
356@ = 9.8203
297@ = 973.123
327@ = 1782.238
357@ = 7.6562
298@ = 2346.52
328@ = 2296.9729
358@ = 7.1478
299@ = 1488.175
329@ = 2148.4741
359@ = 9.8203
300@ = 1104.697
330@ = 1648.064
360@ = 4.8273
653@ = 0
654@ = 0
655@ = 0
656@ = 0
657@ = 0
658@ = 0
659@ = 0
660@ = 0
661@ = 0
662@ = 0
663@ = 0
664@ = 0
665@ = 0
666@ = 0
667@ = 0
668@ = 0
669@ = 0
670@ = 0
671@ = 0
672@ = 0
673@ = 0
674@ = 0
675@ = 0
676@ = 0
677@ = 0
678@ = 0
679@ = 0
680@ = 0
681@ = 0
753@ = 99
set_player_can_do_drive_by $player1 {state} False
if 
  not is_player_playing $player1
goto_if_false @BCOUR_2468
goto @BCOUR_14263

:BCOUR_2468
if 
  is_char_in_any_car $scplayer
goto_if_false @BCOUR_2492
36@ = store_car_char_is_in $scplayer

:BCOUR_2492
753@ = 99
754@ = 0
755@ = 0
758@ = 0
756@ = 0
757@ = 0
857@ = 0
862@ = 0
881@ = 0

:BCOUR_2555
wait 0
if 
  882@ == 0
goto_if_false @BCOUR_2591
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000
882@ = 1

:BCOUR_2591
if 
  882@ == 1
goto_if_false @BCOUR_2631
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BCOUR_2631
882@ = 2

:BCOUR_2631
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @BCOUR_2656
$bcou_bikeostimer += 60000

:BCOUR_2656
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BCOUR_2681
$bcou_bikeostimer -= 45000

:BCOUR_2681
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @BCOUR_2703
alter_wanted_level $player1 {wantedLevel} 2

:BCOUR_2703
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @BCOUR_2725
alter_wanted_level $player1 {wantedLevel} 0

:BCOUR_2725
if 
is_ps2_keyboard_key_pressed 27
goto_if_false @BCOUR_2765
if 
  881@ == 0
goto_if_false @BCOUR_2765
881@ = 1

:BCOUR_2765
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @BCOUR_2787
881@ = 0

:BCOUR_2787
if 
  862@ == 1
goto_if_false @BCOUR_2838
clear_onscreen_timer $bcou_bikeostimer
clear_onscreen_counter $bcou_timelimit
print_now 'BCOU_11' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_2838
if 
  not is_player_playing $player1
goto_if_false @BCOUR_2861
goto @BCOUR_14263

:BCOUR_2861
if 
  is_car_dead 36@
goto_if_false @BCOUR_2884
goto @BCOUR_14263

:BCOUR_2884
if 
  not is_car_dead 36@
goto_if_false @BCOUR_2959
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_2959
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BCOUR_2959
print_now 'BCOU_35' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_2959
if 
  743@ == 10
goto_if_false @BCOUR_2984
goto @BCOUR_15142

:BCOUR_2984
if 
  743@ == -99
goto_if_false @BCOUR_3074
create_object_no_offset #KMB_PACKET {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 763@(793@,30i)
create_fx_system_on_object "COKE_TRAIL" {object} 763@(793@,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True {var_handle} 827@(793@,30i)

:BCOUR_3074
if 
  749@ == 1
goto_if_false @BCOUR_3116
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCOUR_3116
748@ = 50

:BCOUR_3116
if 
  868@ == 1
goto_if_false @BCOUR_3172
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCOUR_3172
866@ = 2
set_player_control $player1 {state} True
868@ = 0

:BCOUR_3172
if 
  753@ == 0
goto_if_false @BCOUR_3289
if 
  not is_car_dead 36@
goto_if_false @BCOUR_3289
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_3289
TIMERB = 0
754@ = 1
set_lvar_int_to_var_int 752@ = $bcou_bikeostimer
752@ /= 1000
753@ = 1
clear_prints 
add_next_message_to_previous_briefs False
print_with_number_now 'BCOU_37' {num} $score_kickstart {duration} 4000 {flag} 1
clear_help 

:BCOUR_3289
if 
  753@ == 1
goto_if_false @BCOUR_3442
if 
  not is_car_dead 36@
goto_if_false @BCOUR_3442
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_3442
TIMERB = 0
753@ = 0
754@ = 0
875@ = 0
clear_prints 
clear_help 
if 
  746@ > 9
goto_if_false @BCOUR_3408
print_now 'BCOU_6' {time} 4000 {flag} 1

:BCOUR_3408
if 
  10 > 746@
goto_if_false @BCOUR_3442
print_now 'BCOU_3' {time} 4000 {flag} 1

:BCOUR_3442
if 
  754@ == 1
goto_if_false @BCOUR_3725
set_lvar_int_to_lvar_int 751@ = TIMERB
751@ /= 1000
if 
  875@ == 0
goto_if_false @BCOUR_3527
if and
  21000 > $bcou_bikeostimer
  $bcou_bikeostimer > 1
goto_if_false @BCOUR_3527
875@ = 1

:BCOUR_3527
if 
  875@ == 0
goto_if_false @BCOUR_3571
if 
  $bcou_bikeostimer > 20099
goto_if_false @BCOUR_3571
875@ = 2

:BCOUR_3571
if 
  875@ == 1
goto_if_false @BCOUR_3605
set_var_int_to_var_int $score_kickstart = $bcou_bikeostimer
$score_kickstart /= 1000

:BCOUR_3605
if 
  875@ == 2
goto_if_false @BCOUR_3638
$score_kickstart = 20
sub_int_lvar_from_int_var $score_kickstart -= 751@

:BCOUR_3638
clear_prints 
if 
  $score_kickstart > 0
goto_if_false @BCOUR_3681
add_next_message_to_previous_briefs False
print_with_number_now 'BCOU_37' {num} $score_kickstart {duration} 4000 {flag} 1

:BCOUR_3681
if 
  TIMERB > 21000
goto_if_false @BCOUR_3725
clear_prints 
print_now 'BCOU_35' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_3725
if 
  746@ == -1
goto_if_false @BCOUR_4823
if 
  748@ == 0
goto_if_false @BCOUR_4010
39@ = load_char_decision_maker DecisionMakerType.Empty
delete_char 38@
clear_area -2455.6621 {y} -105.3974 {z} 26.5568 {radius} 10.0 {clearParticles} True
38@ = create_char PedType.Mission1 {modelId} 29 {x} -2455.6621 {y} -105.3974 {z} 26.5568
set_char_heading 38@ {heading} 176.0958
set_char_decision_maker 38@ {handleOrTemplate} 39@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2468.3931 {y} -96.8149 {z} 26.1614 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2467.6931 {y} -97.5246 {z} 26.0805 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 38@
goto_if_false @BCOUR_3989
flush_route 
extend_route -2457.04 {y} -110.2905 {z} 25.0058
extend_route -2460.845 {y} -108.7783 {z} 24.9517
extend_route -2462.3711 {y} -106.9304 {z} 24.9069
task_follow_point_route 38@ {speed} MoveState.Run {mode} RouteMode.Once
set_follow_node_threshold_distance 38@ {range} 150.0

:BCOUR_3989
748@ = 10
749@ = 1
TIMERB = 0

:BCOUR_4010
if 
  748@ == 10
goto_if_false @BCOUR_4093
if 
  TIMERB > 4000
goto_if_false @BCOUR_4093
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4093
print_now 'BCOU_2' {time} 4000 {flag} 1
748@ = 15
TIMERB = 0

:BCOUR_4093
if 
  748@ == 15
goto_if_false @BCOUR_4160
if 
  TIMERB > 1000
goto_if_false @BCOUR_4160
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4160
748@ = 20
TIMERB = 0

:BCOUR_4160
if 
  748@ == 20
goto_if_false @BCOUR_4211
if 
  TIMERB > 1000
goto_if_false @BCOUR_4211
TIMERB = 0
748@ = 25

:BCOUR_4211
if 
  748@ == 25
goto_if_false @BCOUR_4283
if 
  TIMERB > 200
goto_if_false @BCOUR_4283
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4283
clear_char_tasks 38@
TIMERB = 0
748@ = 40

:BCOUR_4283
if 
  748@ == 40
goto_if_false @BCOUR_4433
if 
  TIMERB > 1000
goto_if_false @BCOUR_4336
print_now 'BCOU_3' {time} 4000 {flag} 1

:BCOUR_4336
if 
  TIMERB > 4000
goto_if_false @BCOUR_4433
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4401
clear_char_tasks 38@
task_go_straight_to_coord 38@ {x} -2457.0859 {y} -126.3415 {z} 25.013 {speed} MoveState.Run {time} 5000

:BCOUR_4401
TIMERB = 0
clear_prints 
print_now 'BCOU_1' {time} 4000 {flag} 1
748@ = 45

:BCOUR_4433
if 
  748@ == 45
goto_if_false @BCOUR_4477
if 
  TIMERB > 4000
goto_if_false @BCOUR_4477
748@ = 50

:BCOUR_4477
if 
  748@ == 50
goto_if_false @BCOUR_4713
clear_prints 
749@ = 0
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4560
clear_char_tasks 38@
set_char_coordinates 38@ {x} -2457.0859 {y} -126.3415 {z} 25.013
set_char_heading 38@ {heading} 180.0
delete_object 37@

:BCOUR_4560
switch_widescreen False
delete_object 37@
restore_camera_jumpcut 
set_player_control $player1 {state} True
748@ = 60
TIMERB = 0
746@ = 1
if 
  not is_car_dead 36@
goto_if_false @BCOUR_4622
force_car_lights 36@ {lightMode} CarLights.NoOverride

:BCOUR_4622
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4669
clear_char_tasks 38@
task_achieve_heading 38@ {heading} 100.0
print_now 'BCOU_4' {time} 6000 {flag} 1

:BCOUR_4669
753@ = 0
37@ = create_object #KMB_PACKET {x} -2458.249 {y} -98.5704 {z} 28.1875
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_4713
if 
  748@ == 60
goto_if_false @BCOUR_4823
if 
  TIMERB > 2000
goto_if_false @BCOUR_4823
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4823
clear_char_tasks 38@
task_play_anim 38@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
748@ = 99

:BCOUR_4823
if 
  746@ == 0
goto_if_false @BCOUR_5065
872@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_4904
37@ = create_object #KMB_PACKET {x} 1361.558 {y} -1764.276 {z} 18.0781
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_4904
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_4966
37@ = create_object #KMB_PACKET {x} -2584.613 {y} 60.3094 {z} 3.9701
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True
switch_car_generator $tank_gen1 {amount} 0

:BCOUR_4966
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5021
37@ = create_object #KMB_PACKET {x} 1884.329 {y} 2078.7209 {z} 15.0869
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_5021
print_now 'BCOU_4' {time} 6000 {flag} 1
TIMERA = 0
34@ = 1
753@ = 0
746@ = 1

:BCOUR_5065
if 
  34@ == 1
goto_if_false @BCOUR_5120
if 
  TIMERA > 7000
goto_if_false @BCOUR_5120
34@ = 0
print_help 'BCOU_84'

:BCOUR_5120
if 
  746@ == 1
goto_if_false @BCOUR_5808
755@ = 4
758@ = 3
756@ = 3
744@ = 0
759@ = 0
$bcou_timelimit = 6
861@ = 0
867@ = 0

:BCOUR_5194
if 
  7 > 861@
goto_if_false @BCOUR_5237
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5194

:BCOUR_5237
if 
  not is_car_dead 36@
goto_if_false @BCOUR_5808
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_5808
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_5435

:BCOUR_5290
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5435
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5290

:BCOUR_5435
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_5598

:BCOUR_5453
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5598
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5453

:BCOUR_5598
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5761

:BCOUR_5616
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5761
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5616

:BCOUR_5761
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 180000
display_onscreen_counter_with_string $bcou_timelimit {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_5808
if 
  746@ == 2
goto_if_false @BCOUR_6496
755@ = 8
758@ = 7
756@ = 4
744@ = 3
759@ = 3
$bcou_timelimit = 6
861@ = 0
867@ = 0

:BCOUR_5882
if 
  7 > 861@
goto_if_false @BCOUR_5925
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5882

:BCOUR_5925
if 
  not is_car_dead 36@
goto_if_false @BCOUR_6496
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_6496
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6123

:BCOUR_5978
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6123
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5978

:BCOUR_6123
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_6286

:BCOUR_6141
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6286
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6141

:BCOUR_6286
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_6449

:BCOUR_6304
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6449
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6304

:BCOUR_6449
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 300000
display_onscreen_counter_with_string $bcou_timelimit {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_6496
if 
  746@ == 3
goto_if_false @BCOUR_7184
755@ = 13
758@ = 12
756@ = 5
744@ = 7
759@ = 7
$bcou_timelimit = 7
861@ = 0
867@ = 0

:BCOUR_6570
if 
  8 > 861@
goto_if_false @BCOUR_6613
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_6570

:BCOUR_6613
if 
  not is_car_dead 36@
goto_if_false @BCOUR_7184
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_7184
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6811

:BCOUR_6666
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6811
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6666

:BCOUR_6811
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_6974

:BCOUR_6829
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6974
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6829

:BCOUR_6974
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7137

:BCOUR_6992
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7137
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6992

:BCOUR_7137
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 300000
display_onscreen_counter_with_string $bcou_timelimit {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_7184
if 
  746@ == 4
goto_if_false @BCOUR_7946
755@ = 19
758@ = 18
756@ = 6
744@ = 12
759@ = 12
$bcou_timelimit = 8
861@ = 0
867@ = 0

:BCOUR_7258
if 
  9 > 861@
goto_if_false @BCOUR_7301
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_7258

:BCOUR_7301
if 
  not is_car_dead 36@
goto_if_false @BCOUR_7946
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_7946
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7499

:BCOUR_7354
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7499
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7354

:BCOUR_7499
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7662

:BCOUR_7517
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7662
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7517

:BCOUR_7662
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7825

:BCOUR_7680
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7825
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7680

:BCOUR_7825
747@ = 0
746@ = 9
757@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7874
$bcou_bikeostimer = 600000

:BCOUR_7874
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7902
$bcou_bikeostimer = 420000

:BCOUR_7902
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7930
$bcou_bikeostimer = 480000

:BCOUR_7930
display_onscreen_counter_with_string $bcou_timelimit {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_7946
if 
  746@ == 9
goto_if_false @BCOUR_9554
if 
  867@ == 0
goto_if_false @BCOUR_8046
if 
  not is_char_dead 38@
goto_if_false @BCOUR_8046
if 
  not locate_char_any_means_char_3d $scplayer {target} 38@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCOUR_8046
delete_char 38@
867@ = 1

:BCOUR_8046
if 
  not is_car_dead 36@
goto_if_false @BCOUR_9554
if 
  747@ == 0
goto_if_false @BCOUR_8297
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @BCOUR_8135
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_8135
879@ = 0
gosub @BCOUR_12067
gosub @BCOUR_14183

:BCOUR_8135
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
goto_if_false @BCOUR_8190
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_8190
879@ = 0
gosub @BCOUR_13125
gosub @BCOUR_14183

:BCOUR_8190
if 
  not is_car_dead 36@
goto_if_false @BCOUR_8297
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_8297
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True

:BCOUR_8240
if 
  is_int_lvar_greater_than_int_lvar 755@ > 744@
goto_if_false @BCOUR_8282
remove_blip 42@(744@,30i)
744@ += 1
goto @BCOUR_8240

:BCOUR_8282
set_lvar_int_to_lvar_int 744@ = 759@
747@ = 1

:BCOUR_8297
if 
  747@ == 1
goto_if_false @BCOUR_8553
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_8553
remove_blip 40@

:BCOUR_8339
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8538
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8524
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8428
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8428
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_8476
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8476
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_8524
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8524
744@ += 1
goto @BCOUR_8339

:BCOUR_8538
747@ = 0
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_8553
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_9477
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8871

:BCOUR_8590
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8871
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8857
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_8857
if 
  locate_object_3d 763@(793@,30i) {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 0.7 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_8857
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_8841
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_8857

:BCOUR_8841
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_8857
744@ += 1
goto @BCOUR_8590

:BCOUR_8871
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9170

:BCOUR_8889
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9170
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9156
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9156
if 
  locate_object_3d 763@(793@,30i) {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 1.2 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_9156
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9140
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_9156

:BCOUR_9140
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_9156
744@ += 1
goto @BCOUR_8889

:BCOUR_9170
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9469

:BCOUR_9188
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9469
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9455
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9455
if 
  locate_object_3d 763@(793@,30i) {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 1.2 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_9455
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9439
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_9455

:BCOUR_9439
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_9455
744@ += 1
goto @BCOUR_9188

:BCOUR_9469
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_9477
set_lvar_int_to_lvar_int 874@ = 756@
sub_int_lvar_from_int_lvar 874@ -= 757@
set_lvar_int_to_var_int 873@ = $bcou_timelimit
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9528
873@ += 1

:BCOUR_9528
if 
  is_int_lvar_greater_than_int_lvar 874@ > 873@
goto_if_false @BCOUR_9554
862@ = 1

:BCOUR_9554
if 
  746@ > 8
goto_if_false @BCOUR_9638
if 
  25 > 746@
goto_if_false @BCOUR_9638
if 
  1 > $bcou_bikeostimer
goto_if_false @BCOUR_9638
clear_prints 
print_now 'BCOU_33' {time} 6000 {flag} 1
clear_onscreen_timer $bcou_bikeostimer
goto @BCOUR_14263

:BCOUR_9638
if 
  746@ == 10
goto_if_false @BCOUR_9795
746@ = 20
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_9707
72@ = add_blip_for_coord 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f)

:BCOUR_9707
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9751
72@ = add_blip_for_coord 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f)

:BCOUR_9751
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9795
72@ = add_blip_for_coord 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f)

:BCOUR_9795
if 
  746@ == 20
goto_if_false @BCOUR_10546
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @BCOUR_9856
if 
  not is_minigame_in_progress 
goto_if_false @BCOUR_9856
set_player_control $player1 {state} True

:BCOUR_9856
if 
  not is_car_dead 36@
goto_if_false @BCOUR_10546
if 
  747@ == 0
goto_if_false @BCOUR_9936
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_9936
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
remove_blip 72@
747@ = 1

:BCOUR_9936
if 
  747@ == 1
goto_if_false @BCOUR_10117
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10117
remove_blip 40@
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10022
72@ = add_blip_for_coord 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f)

:BCOUR_10022
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10066
72@ = add_blip_for_coord 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f)

:BCOUR_10066
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10110
72@ = add_blip_for_coord 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f)

:BCOUR_10110
747@ = 0

:BCOUR_10117
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10260
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10260
if 
  locate_char_in_car_3d $scplayer {x} 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10260
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10260
remove_blip 72@
clear_onscreen_timer $bcou_bikeostimer
clear_onscreen_counter $bcou_timelimit
760@ += 1
746@ = 50

:BCOUR_10260
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10403
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10403
if 
  locate_char_in_car_3d $scplayer {x} 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10403
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10403
remove_blip 72@
clear_onscreen_timer $bcou_bikeostimer
clear_onscreen_counter $bcou_timelimit
761@ += 1
746@ = 50

:BCOUR_10403
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10546
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10546
if 
  locate_char_in_car_3d $scplayer {x} 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10546
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10546
remove_blip 72@
clear_onscreen_timer $bcou_bikeostimer
clear_onscreen_counter $bcou_timelimit
762@ += 1
746@ = 50

:BCOUR_10546
if 
  746@ == 50
goto_if_false @BCOUR_11105
set_player_control $player1 {state} True
868@ = 0
clear_prints 
print_now 'BCOU_12' {time} 4000 {flag} 1
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10674
863@ = create_menu 'BCOU_81' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 761@

:BCOUR_10674
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10752
863@ = create_menu 'BCOU_82' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 762@

:BCOUR_10752
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10830
863@ = create_menu 'BCOU_80' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 760@

:BCOUR_10830
set_menu_column 863@ {column} 0 {title} 'BCOU_21' {row0} 'BCOU_22' {row1} 'BCOU_23' {row2} 'BCOU_24' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 863@ {column} 1 {alignment} Align.Right
865@ = 0
set_lvar_int_to_var_int 870@ = $bcou_timelimit
870@ *= 100
set_lvar_int_to_lvar_int 871@ = 869@
add_int_lvar_to_int_lvar 871@ += 870@
set_menu_item_with_number 863@ {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 869@
set_menu_item_with_number 863@ {column} 1 {row} 1 {gxt} 'DOLLAR' {number} 870@
set_menu_item_with_number 863@ {column} 1 {row} 2 {gxt} 'DOLLAR' {number} 871@
set_active_menu_item 863@ {row} 2
TIMERA = 0
866@ = 1
add_score $player1 {money} 871@
delete_object 37@
746@ = 55

:BCOUR_11105
if 
  866@ == 1
goto_if_false @BCOUR_11327
if 
  TIMERA > 2000
goto_if_false @BCOUR_11149
868@ = 1

:BCOUR_11149
if 
  761@ == 4
goto_if_false @BCOUR_11198
if 
  TIMERA > 4000
goto_if_false @BCOUR_11198
delete_menu 863@
866@ = 2

:BCOUR_11198
if 
  760@ == 4
goto_if_false @BCOUR_11247
if 
  TIMERA > 4000
goto_if_false @BCOUR_11247
delete_menu 863@
866@ = 2

:BCOUR_11247
if 
  762@ == 4
goto_if_false @BCOUR_11296
if 
  TIMERA > 4000
goto_if_false @BCOUR_11296
delete_menu 863@
866@ = 2

:BCOUR_11296
if 
  TIMERA > 6000
goto_if_false @BCOUR_11327
delete_menu 863@
866@ = 2

:BCOUR_11327
if 
  866@ == 2
goto_if_false @BCOUR_11945
if 
  not is_car_dead 36@
goto_if_false @BCOUR_11945
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_11945
delete_menu 863@
868@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_11574
clear_prints 
set_player_control $player1 {state} True
if 
  760@ == 1
goto_if_false @BCOUR_11460
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11460
if 
  760@ == 2
goto_if_false @BCOUR_11501
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11501
if 
  760@ == 3
goto_if_false @BCOUR_11542
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11542
if 
  760@ == 4
goto_if_false @BCOUR_11574
goto @BCOUR_15142
746@ = 5

:BCOUR_11574
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_11756
clear_prints 
set_player_control $player1 {state} True
if 
  761@ == 1
goto_if_false @BCOUR_11642
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11642
if 
  761@ == 2
goto_if_false @BCOUR_11683
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11683
if 
  761@ == 3
goto_if_false @BCOUR_11724
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11724
if 
  761@ == 4
goto_if_false @BCOUR_11756
goto @BCOUR_15142
746@ = 5

:BCOUR_11756
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_11938
clear_prints 
set_player_control $player1 {state} True
if 
  762@ == 1
goto_if_false @BCOUR_11824
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11824
if 
  762@ == 2
goto_if_false @BCOUR_11865
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11865
if 
  762@ == 3
goto_if_false @BCOUR_11906
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11906
if 
  762@ == 4
goto_if_false @BCOUR_11938
goto @BCOUR_15142
746@ = 5

:BCOUR_11938
866@ = 0

:BCOUR_11945
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_12060
if 
  locate_char_any_means_object_3d $scplayer {object} 763@(793@,30i) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @BCOUR_12060
if 
  TIMERA > 3000
goto_if_false @BCOUR_12060
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
$bcou_timelimit += 1
797@($bcou_timelimit,30i) = 0

:BCOUR_12060
goto @BCOUR_2555

:BCOUR_12067
if 
  not is_car_dead 36@
goto_if_false @BCOUR_13123
if 
  $bcou_timelimit > 0
goto_if_false @BCOUR_13123
if 
  797@($bcou_timelimit,30i) == 0
goto_if_false @BCOUR_13123
if 
  857@ > 0
goto_if_false @BCOUR_12159
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)

:BCOUR_12159
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_12340

:BCOUR_12177
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12325
if 
  880@ == 0
goto_if_false @BCOUR_12311
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12311
if 
  locate_char_any_means_3d $scplayer {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12311
880@ = 1
879@ = 1
goto @BCOUR_12311

:BCOUR_12311
744@ += 1
goto @BCOUR_12177

:BCOUR_12325
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12340
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_12521

:BCOUR_12358
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12506
if 
  880@ == 0
goto_if_false @BCOUR_12492
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12492
if 
  locate_char_any_means_3d $scplayer {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12492
880@ = 1
879@ = 1
goto @BCOUR_12492

:BCOUR_12492
744@ += 1
goto @BCOUR_12358

:BCOUR_12506
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12521
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_12702

:BCOUR_12539
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12687
if 
  880@ == 0
goto_if_false @BCOUR_12673
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12673
if 
  locate_char_any_means_3d $scplayer {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12673
880@ = 1
879@ = 1
goto @BCOUR_12673

:BCOUR_12673
744@ += 1
goto @BCOUR_12539

:BCOUR_12687
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12702
876@, 877@, 878@ = get_car_coordinates 36@
create_object_no_offset #KMB_PACKET {x} 876@ {y} 877@ {z} 878@ {var_handle} 763@($bcou_timelimit,30i)
set_object_collision 763@($bcou_timelimit,30i) {state} True
set_object_dynamic 763@($bcou_timelimit,30i) {state} True
create_fx_system_on_object "COKE_PUFF" {object} 763@($bcou_timelimit,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {ignoreBoundingChecks} True {var_handle} 827@($bcou_timelimit,30i)
play_fx_system 827@($bcou_timelimit,30i)
858@, 859@, 860@ = get_char_coordinates $scplayer
if 
  882@ == 2
goto_if_false @BCOUR_12848
play_mission_audio MissionAudioSlot.Slot3

:BCOUR_12848
if 
  879@ == 1
goto_if_false @BCOUR_12900
place_object_relative_to_car 763@($bcou_timelimit,30i) {vehicle} 36@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 1.3
goto @BCOUR_12927

:BCOUR_12900
place_object_relative_to_car 763@($bcou_timelimit,30i) {vehicle} 36@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.7

:BCOUR_12927
794@ = get_char_heading $scplayer
795@ -= 30.0
796@ -= 30.0
795@ = cos 794@
796@ = sin 794@
if 
  879@ == 1
goto_if_false @BCOUR_13036
795@ *= 15.0
796@ *= 15.0
add_to_object_velocity 763@($bcou_timelimit,30i) {x} 795@ {y} 796@ {z} 1.0
goto @BCOUR_13076

:BCOUR_13036
795@ *= 30.0
796@ *= 30.0
add_to_object_velocity 763@($bcou_timelimit,30i) {x} 795@ {y} 796@ {z} 8.5

:BCOUR_13076
879@ = 0
857@ += 1
797@($bcou_timelimit,30i) = 1
set_lvar_int_to_var_int 793@ = $bcou_timelimit
$bcou_timelimit -= 1
TIMERA = 0

:BCOUR_13123
return 

:BCOUR_13125
if 
  $bcou_timelimit > 0
goto_if_false @BCOUR_14181
if 
  not is_car_dead 36@
goto_if_false @BCOUR_14181
if 
  797@($bcou_timelimit,30i) == 0
goto_if_false @BCOUR_14181
if 
  857@ > 0
goto_if_false @BCOUR_13217
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)

:BCOUR_13217
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_13398

:BCOUR_13235
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13383
if 
  880@ == 0
goto_if_false @BCOUR_13369
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13369
if 
  locate_char_any_means_3d $scplayer {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13369
880@ = 1
879@ = 1
goto @BCOUR_13369

:BCOUR_13369
744@ += 1
goto @BCOUR_13235

:BCOUR_13383
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13398
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_13579

:BCOUR_13416
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13564
if 
  880@ == 0
goto_if_false @BCOUR_13550
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13550
if 
  locate_char_any_means_3d $scplayer {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13550
880@ = 1
879@ = 1
goto @BCOUR_13550

:BCOUR_13550
744@ += 1
goto @BCOUR_13416

:BCOUR_13564
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13579
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_13760

:BCOUR_13597
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13745
if 
  880@ == 0
goto_if_false @BCOUR_13731
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13731
if 
  locate_char_any_means_3d $scplayer {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13731
880@ = 1
879@ = 1
goto @BCOUR_13731

:BCOUR_13731
744@ += 1
goto @BCOUR_13597

:BCOUR_13745
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13760
876@, 877@, 878@ = get_car_coordinates 36@
create_object_no_offset #KMB_PACKET {x} 876@ {y} 877@ {z} 878@ {var_handle} 763@($bcou_timelimit,30i)
set_object_collision 763@($bcou_timelimit,30i) {state} True
set_object_dynamic 763@($bcou_timelimit,30i) {state} True
create_fx_system_on_object "COKE_PUFF" {object} 763@($bcou_timelimit,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True {var_handle} 827@($bcou_timelimit,30i)
play_fx_system 827@($bcou_timelimit,30i)
858@, 859@, 860@ = get_char_coordinates $scplayer
if 
  882@ == 2
goto_if_false @BCOUR_13906
play_mission_audio MissionAudioSlot.Slot3

:BCOUR_13906
if 
  879@ == 1
goto_if_false @BCOUR_13958
place_object_relative_to_car 763@($bcou_timelimit,30i) {vehicle} 36@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 1.3
goto @BCOUR_13985

:BCOUR_13958
place_object_relative_to_car 763@($bcou_timelimit,30i) {vehicle} 36@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.7

:BCOUR_13985
794@ = get_char_heading $scplayer
795@ -= 330.0
796@ -= 330.0
795@ = cos 794@
796@ = sin 794@
if 
  879@ == 1
goto_if_false @BCOUR_14094
795@ *= -15.0
796@ *= -15.0
add_to_object_velocity 763@($bcou_timelimit,30i) {x} 795@ {y} 796@ {z} 1.0
goto @BCOUR_14134

:BCOUR_14094
795@ *= -30.0
796@ *= -30.0
add_to_object_velocity 763@($bcou_timelimit,30i) {x} 795@ {y} 796@ {z} 8.5

:BCOUR_14134
879@ = 0
857@ += 1
797@($bcou_timelimit,30i) = 1
set_lvar_int_to_var_int 793@ = $bcou_timelimit
$bcou_timelimit -= 1
TIMERA = 0

:BCOUR_14181
return 

:BCOUR_14183
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_14211
wait 0
goto @BCOUR_14183

:BCOUR_14211
return 

:BCOUR_14213
if 
  3000 > TIMERB
goto_if_false @BCOUR_14243
wait 0
goto @BCOUR_14213

:BCOUR_14243
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
return 

:BCOUR_14263
set_player_can_do_drive_by $player1 {state} True
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_14560
if 
  760@ == 0
goto_if_false @BCOUR_14322
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14322
if 
  760@ == 1
goto_if_false @BCOUR_14356
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14356
if 
  760@ == 2
goto_if_false @BCOUR_14390
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14390
if 
  760@ == 3
goto_if_false @BCOUR_14424
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_14424
if 
  760@ == 4
goto_if_false @BCOUR_14458
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_14458
if 
  760@ == 5
goto_if_false @BCOUR_14492
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_14492
if 
  760@ == 6
goto_if_false @BCOUR_14526
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_14526
if 
  760@ == 7
goto_if_false @BCOUR_14560
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_14560
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_14850
if 
  762@ == 0
goto_if_false @BCOUR_14612
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14612
if 
  762@ == 1
goto_if_false @BCOUR_14646
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14646
if 
  762@ == 2
goto_if_false @BCOUR_14680
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14680
if 
  762@ == 3
goto_if_false @BCOUR_14714
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_14714
if 
  762@ == 4
goto_if_false @BCOUR_14748
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_14748
if 
  762@ == 5
goto_if_false @BCOUR_14782
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_14782
if 
  762@ == 6
goto_if_false @BCOUR_14816
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_14816
if 
  762@ == 7
goto_if_false @BCOUR_14850
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_14850
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15140
if 
  761@ == 0
goto_if_false @BCOUR_14902
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14902
if 
  761@ == 1
goto_if_false @BCOUR_14936
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14936
if 
  761@ == 2
goto_if_false @BCOUR_14970
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14970
if 
  761@ == 3
goto_if_false @BCOUR_15004
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_15004
if 
  761@ == 4
goto_if_false @BCOUR_15038
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_15038
if 
  761@ == 5
goto_if_false @BCOUR_15072
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_15072
if 
  761@ == 6
goto_if_false @BCOUR_15106
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_15106
if 
  761@ == 7
goto_if_false @BCOUR_15140
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_15140
return 

:BCOUR_15142
clear_mission_audio MissionAudioSlot.Slot3
play_mission_passed_tune 2
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_15504
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_15504
register_oddjob_mission_passed 
player_made_progress 1
$courierLV_passed_once = 1
$courierLV_cash_pickup = create_protection_pickup 1887.9969 {y} 2073.0081 {z} 10.5547 {revenueLimit} $courierLV_revenue {revenueRate} $courierLV_revenue
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:BCOUR_15241
if 
  get_fading_status 
goto_if_false @BCOUR_15265
wait 0
goto @BCOUR_15241

:BCOUR_15265
switch_widescreen True
load_scene_in_direction 1895.53 {y} 2063.094 {z} 15.8639 {heading} 47.0
set_fixed_camera_position 1895.53 {y} 2063.094 {z} 15.8639 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1894.813 {y} 2063.7749 {z} 15.7175 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_15349
if 
  get_fading_status 
goto_if_false @BCOUR_15373
wait 0
goto @BCOUR_15349

:BCOUR_15373
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 1890.1639 {y} 2070.478 {z} 11.8641 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1889.516 {y} 2071.2129 {z} 11.6633 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierLV_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_15480
if 
  get_fading_status 
goto_if_false @BCOUR_15504
wait 0
goto @BCOUR_15480

:BCOUR_15504
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15858
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_15858
register_oddjob_mission_passed 
player_made_progress 1
$courierLA_passed_once = 1
$courierLA_cash_pickup = create_protection_pickup 1345.859 {y} -1757.432 {z} 13.0078 {revenueLimit} $courierLA_revenue {revenueRate} $courierLA_revenue
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:BCOUR_15595
if 
  get_fading_status 
goto_if_false @BCOUR_15619
wait 0
goto @BCOUR_15595

:BCOUR_15619
switch_widescreen True
load_scene_in_direction 1358.5959 {y} -1741.184 {z} 18.431 {heading} 223.0
set_fixed_camera_position 1358.5959 {y} -1741.184 {z} 18.431 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1358.3719 {y} -1742.135 {z} 18.2203 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_15703
if 
  get_fading_status 
goto_if_false @BCOUR_15727
wait 0
goto @BCOUR_15703

:BCOUR_15727
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 1345.5649 {y} -1753.368 {z} 15.2186 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1345.567 {y} -1754.218 {z} 14.692 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierLA_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_15834
if 
  get_fading_status 
goto_if_false @BCOUR_15858
wait 0
goto @BCOUR_15834

:BCOUR_15858
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_16212
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_16212
player_made_progress 1
register_oddjob_mission_passed 
$courierSF_passed_once = 1
$courierSF_cash_pickup = create_protection_pickup -2593.8821 {y} 59.2467 {z} 3.8359 {revenueLimit} $courierSF_revenue {revenueRate} $courierSF_revenue
set_player_control $player1 {state} False
clear_prints 
do_fade 500 {direction} Fade.Out

:BCOUR_15949
if 
  get_fading_status 
goto_if_false @BCOUR_15973
wait 0
goto @BCOUR_15949

:BCOUR_15973
switch_widescreen True
load_scene_in_direction -2603.114 {y} 51.3338 {z} 10.1663 {heading} 275.0
set_fixed_camera_position -2603.98 {y} 54.4522 {z} 7.5275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2603.0139 {y} 54.7055 {z} 7.4818 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_16057
if 
  get_fading_status 
goto_if_false @BCOUR_16081
wait 0
goto @BCOUR_16057

:BCOUR_16081
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -2598.8999 {y} 59.0635 {z} 4.8343 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2597.905 {y} 59.0525 {z} 4.7405 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierSF_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_16188
if 
  get_fading_status 
goto_if_false @BCOUR_16212
wait 0
goto @BCOUR_16188

:BCOUR_16212
clear_wanted_level $player1
set_camera_behind_player 
restore_camera_jumpcut 
return 

:BCOUR_16223
clear_help 
clear_mission_audio MissionAudioSlot.Slot3
if 
  is_player_playing $player1
goto_if_false @BCOUR_16259
set_player_can_do_drive_by $player1 {state} True
set_player_control $player1 {state} True

:BCOUR_16259
clear_onscreen_timer $bcou_bikeostimer
clear_onscreen_counter $bcou_timelimit
delete_menu 863@
delete_object 37@
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
mark_char_as_no_longer_needed 38@
mark_model_as_no_longer_needed 586
mark_model_as_no_longer_needed 29
remove_animation "SMOKING"
remove_blip 40@
remove_blip 72@
744@ = 0

:BCOUR_16339
if 
  30 > 744@
goto_if_false @BCOUR_16380
remove_blip 42@(744@,30i)
744@ += 1
goto @BCOUR_16339

:BCOUR_16380
switch_car_generator $tank_gen1 {amount} 101
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 132---------------
// Originally: The Chiliad Challenge

:MTBIKER
gosub @MTBIKER_36
if 
  has_deatharrest_been_executed 
goto_if_false @MTBIKER_27
gosub @MTBIKER_14357

:MTBIKER_27
gosub @MTBIKER_14658
terminate_this_script 

:MTBIKER_36
$onmission = 1
clear_this_print_big_now TextStyle.Middle
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_67
register_mission_given 

:MTBIKER_67
script_name 'MTBIKER'
load_mission_text 'RACETOR'
set_message_formatting True {margin} 355 {width} 370
wait 0
use_text_commands True
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_130
set_player_control $player1 {state} False

:MTBIKER_130
do_fade 1000 {direction} Fade.Out

:MTBIKER_137
if 
  get_fading_status 
goto_if_false @MTBIKER_161
wait 0
goto @MTBIKER_137

:MTBIKER_161
669@ = load_char_decision_maker DecisionMakerType.Empty
690@ = 0
691@ = 0
692@ = 0
693@ = 0
694@ = 0
695@ = 0
696@ = 0
697@ = 0
698@ = 0
699@ = 0
656@ = 0
657@ = 0
34@ = 582.7242
41@ = 356.2812
48@ = 52.2072
55@ = 52.2072
35@ = 584.0833
42@ = 329.3647
49@ = 0.5427
56@ = 2.0841
36@ = 572.9216
43@ = 323.5937
50@ = 1.0585
57@ = 4.8106
37@ = 585.724
44@ = 345.6341
51@ = 0.4929
58@ = 1.8511
38@ = 582.7242
45@ = 359.0323
52@ = 0.4993
59@ = 2.637
39@ = 582.7242
46@ = 356.2812
53@ = 56.2072
60@ = 56.2072
40@ = 582.7242
47@ = 356.2812
54@ = 58.2072
61@ = 58.2072
670@ = 0
671@ = 0
672@ = 0
673@ = 0
674@ = 0
675@ = 0
676@ = 0
677@ = 0
678@ = 0
679@ = 0
build_player_model $player1
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_632
goto @MTBIKER_682

:MTBIKER_632
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_657
goto @MTBIKER_1617

:MTBIKER_657
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_682
goto @MTBIKER_3072

:MTBIKER_682
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_716
print_big 'MTROUT1' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_716
103@ = -2304.344
223@ = -1667.125
343@ = 483.386
463@ = 208.0
104@ = -2280.48
224@ = -1730.3149
344@ = 467.8242
464@ = 178.6093
105@ = -2357.1819
225@ = -1815.429
345@ = 431.4012
465@ = 64.067
106@ = -2447.4031
226@ = -1718.4351
346@ = 430.9626
466@ = 148.4592
107@ = -2446.6521
227@ = -1810.658
347@ = 409.0582
467@ = 93.195
108@ = -2527.5859
228@ = -1711.376
348@ = 401.175
468@ = 16.0889
109@ = -2552.845
229@ = -1668.842
349@ = 398.455
469@ = 155.2717
110@ = -2534.5171
230@ = -1802.53
350@ = 374.7244
470@ = 127.1514
111@ = -2595.25
231@ = -1631.995
351@ = 342.7061
471@ = 176.454
112@ = -2526.4299
232@ = -1888.459
352@ = 292.5149
472@ = 77.3269
113@ = -2652.8589
233@ = -1739.147
353@ = 255.1567
473@ = 189.6474
114@ = -2491.229
234@ = -2034.597
354@ = 150.1413
474@ = 225.1505
115@ = -2428.644
235@ = -2088.887
355@ = 121.97
475@ = 243.2365
116@ = -2322.0591
236@ = -2097.6399
356@ = 114.0331
476@ = 292.4177
117@ = -2218.1311
237@ = -2047.089
357@ = 118.8139
477@ = 315.497
118@ = -2168.4199
238@ = -1991.8719
358@ = 117.8448
478@ = 314.2462
119@ = -2102.5449
239@ = -1895.2271
359@ = 108.4655
479@ = 174.3973
120@ = -2162.365
240@ = -2039.522
360@ = 91.2074
480@ = 135.1339
121@ = -2373.667
241@ = -2195.0891
361@ = 32.3837
481@ = 112.827
700@ = 19
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 38.0
653@ = 27.0
654@ = 23.0
goto @MTBIKER_4291

:MTBIKER_1617
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_1651
print_big 'MTROUT2' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_1651
103@ = -2304.344
223@ = -1667.125
343@ = 483.586
463@ = 208.0
104@ = -2279.8569
224@ = -1732.752
344@ = 466.799
464@ = 163.4517
105@ = -2355.6089
225@ = -1815.324
345@ = 431.5401
465@ = 90.1409
106@ = -2458.843
226@ = -1733.434
346@ = 426.432
466@ = 187.8666
107@ = -2460.9041
227@ = -1807.384
347@ = 406.6599
467@ = 60.8579
108@ = -2521.292
228@ = -1707.7531
348@ = 401.2728
468@ = 2.4494
109@ = -2467.126
229@ = -1467.868
349@ = 388.9202
469@ = 270.5872
110@ = -2324.3669
230@ = -1455.149
350@ = 380.9767
470@ = 233.5233
111@ = -2251.9221
231@ = -1492.653
351@ = 377.8563
471@ = 196.094
112@ = -2191.949
232@ = -1713.993
352@ = 375.5497
472@ = 322.9377
113@ = -2206.7781
233@ = -1528.34
353@ = 359.6156
473@ = 20.0752
114@ = -2280.6831
234@ = -1426.188
354@ = 355.6379
474@ = 58.5606
115@ = -2419.2219
235@ = -1392.925
355@ = 358.1968
475@ = 98.4498
116@ = -2569.7671
236@ = -1460.698
356@ = 357.2175
476@ = 325.2711
117@ = -2440.8889
237@ = -1368.257
357@ = 337.413
477@ = 304.5745
118@ = -2357.0701
238@ = -1286.3621
358@ = 306.1062
478@ = 103.378
119@ = -2508.1531
239@ = -1273.621
359@ = 271.7476
479@ = 103.6739
120@ = -2595.4919
240@ = -1360.244
360@ = 264.5467
480@ = 100.454
121@ = -2671.155
241@ = -1378.1899
361@ = 252.3816
481@ = 352.7671
122@ = -2608.5
242@ = -1285.22
362@ = 219.88
482@ = 335.6836
123@ = -2537.2939
243@ = -1121.297
363@ = 175.3035
483@ = 140.5565
124@ = -2634.553
244@ = -1169.384
364@ = 166.8249
484@ = 128.43
125@ = -2747.937
245@ = -1377.943
365@ = 143.0419
485@ = 168.2364
126@ = -2773.78
246@ = -1670.301
366@ = 140.4944
486@ = 169.7697
127@ = -2733.364
247@ = -1876.022
367@ = 138.8912
487@ = 269.3722
128@ = -2620.5791
248@ = -2066.7461
368@ = 129.5185
488@ = 201.5526
129@ = -2438.3789
249@ = -2086.928
369@ = 123.3899
489@ = 257.1008
130@ = -2335.7839
250@ = -2102.4419
370@ = 112.9194
490@ = 283.7088
131@ = -2101.0049
251@ = -1893.245
371@ = 108.8372
491@ = 174.9563
132@ = -2156.2161
252@ = -2031.774
372@ = 91.9901
492@ = 145.72
133@ = -2236.1111
253@ = -2118.7671
373@ = 66.3876
493@ = 131.2891
134@ = -2374.958
254@ = -2195.4541
374@ = 32.3626
494@ = 113.8008
700@ = 32
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 35.0
653@ = 30.0
654@ = 28.0
goto @MTBIKER_4291

:MTBIKER_3072
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_3106
print_big 'MTROUT3' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_3106
103@ = -2432.876
223@ = -1939.6541
343@ = 303.7731
463@ = 273.0
104@ = -2339.998
224@ = -1941.224
344@ = 295.8086
464@ = 269.6869
105@ = -2286.782
225@ = -1940.24
345@ = 268.8093
465@ = 245.1214
106@ = -2234.8911
226@ = -1925.067
346@ = 242.4752
466@ = 300.1313
107@ = -2205.429
227@ = -1914.0291
347@ = 239.2782
467@ = 269.1174
108@ = -2204.8611
228@ = -1914.031
348@ = 239.1954
468@ = 269.4709
109@ = -2173.895
229@ = -1903.88
349@ = 233.6897
469@ = 314.003
110@ = -2169.728
230@ = -1885.136
350@ = 231.1551
470@ = 8.2283
111@ = -2173.511
231@ = -1861.948
351@ = 222.7416
471@ = 13.9626
112@ = -2173.6411
232@ = -1843.246
352@ = 217.9074
472@ = 13.6434
113@ = -2148.4309
233@ = -1792.73
353@ = 210.1444
473@ = 294.9009
114@ = -2129.241
234@ = -1775.973
354@ = 207.5088
474@ = 313.3039
115@ = -2109.7241
235@ = -1755.573
355@ = 195.2899
475@ = 332.9617
116@ = -2101.7561
236@ = -1744.009
356@ = 195.9091
476@ = 324.6714
117@ = -2072.0801
237@ = -1644.9
357@ = 174.3308
477@ = 357.332
118@ = -2050.7
238@ = -1571.491
358@ = 137.474
478@ = 272.8463
119@ = -2041.665
239@ = -1509.007
359@ = 124.2398
479@ = 16.1558
120@ = -2033.5601
240@ = -1438.604
360@ = 93.2658
480@ = 210.8019
121@ = -1991.328
241@ = -1596.526
361@ = 86.5936
481@ = 182.1263
122@ = -2027.707
242@ = -1789.3311
362@ = 96.554
482@ = 160.6694
123@ = -2099.854
243@ = -1890.88
363@ = 109.2095
483@ = 175.6702
124@ = -2118.301
244@ = -1948.25
364@ = 99.0724
484@ = 162.0987
125@ = -2233.6489
245@ = -2117.0459
365@ = 67.2467
485@ = 134.1193
126@ = -2373.8921
246@ = -2194.998
366@ = 32.3799
486@ = 115.9183
700@ = 24
92@ = 3
set_lvar_int_to_constant 701@ = 51
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 23
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
652@ = 40.0
653@ = 30.0
654@ = 25.0
request_car_recording 829
request_car_recording 830
request_car_recording 831
request_car_recording 832
request_car_recording 833
request_car_recording 834

:MTBIKER_4185
if or
  not has_car_recording_been_loaded 829
  not has_car_recording_been_loaded 830
  not has_car_recording_been_loaded 831
  not has_car_recording_been_loaded 832
  not has_car_recording_been_loaded 833
  not has_car_recording_been_loaded 834
goto_if_false @MTBIKER_4237
wait 0
goto @MTBIKER_4185

:MTBIKER_4237
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0
delete_checkpoint 780@
goto @MTBIKER_4291

:MTBIKER_4291
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_4299
if 
  not is_player_playing $player1
goto_if_false @MTBIKER_4326
wait 0
goto @MTBIKER_4299

:MTBIKER_4326
clear_area 103@ {y} 223@ {z} 343@ {radius} 0.5 {clearParticles} False
load_scene 103@ {y} 223@ {z} 343@
disable_all_entry_exits True
set_lvar_int_to_lvar_int 713@ = 700@
713@ -= 1
643@ = 0
644@ = 0
645@ = 0
646@ = 0
set_lvar_int_to_lvar_int 744@ = 92@

:MTBIKER_4410
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_4454
745@(644@,10i) = 0
644@ += 1
goto @MTBIKER_4410

:MTBIKER_4454
755@ = add_blip_for_coord 103@ {y} 223@ {z} 343@
756@ = 0

:MTBIKER_4475
wait 0
$game_timer = get_game_timer 
758@ = 0
644@ = 0
if 
  756@ == 0
goto_if_false @MTBIKER_4702
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_4702
set_char_coordinates $scplayer {x} 103@ {y} 223@ {z} 343@
if 
  locate_char_any_means_2d $scplayer {x} 104@ {y} 224@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MTBIKER_4702
643@ = 0
set_var_float_to_lvar_float $x = 103@
$x += 7.0
set_var_float_to_lvar_float $y = 223@
$y += 7.0
set_var_float_to_lvar_float $z = 343@
$z += 4.0
set_lvar_float_to_lvar_float 659@ = 103@
659@ -= 7.0
set_lvar_float_to_lvar_float 660@ = 223@
660@ -= 7.0
set_lvar_float_to_lvar_float 661@ = 343@
661@ -= 4.0
756@ += 1

:MTBIKER_4702
if 
  756@ == 1
goto_if_false @MTBIKER_4822
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
if and
  has_model_loaded 701@(643@,6i)
  has_model_loaded 707@(643@,6i)
goto_if_false @MTBIKER_4778
643@ += 1
goto @MTBIKER_4796

:MTBIKER_4778
request_model 701@(643@,6i)
request_model 707@(643@,6i)

:MTBIKER_4796
if 
  is_int_lvar_equal_to_int_lvar 643@ == 647@
goto_if_false @MTBIKER_4822
756@ += 1

:MTBIKER_4822
if 
  756@ == 2
goto_if_false @MTBIKER_6461
774@ = create_car 707@ {x} 103@ {y} 223@ {z} 343@
turn_car_to_face_coord 774@ {x} 104@ {y} 224@
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_4890
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_6221
set_lvar_int_to_lvar_int 645@ = 644@
645@ /= 2
645@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 645@ == 644@
goto_if_false @MTBIKER_5008
$x = 2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -3.0
set_var_float_to_lvar_float $y = 662@
goto @MTBIKER_5066

:MTBIKER_5008
$x = -2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ -= 1
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -1.2
set_var_float_to_lvar_float $y = 662@

:MTBIKER_5066
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} $x {yOffset} $y {zOffset} $z
663@ = get_car_heading 774@
set_var_float_to_lvar_float $z = 343@
set_lvar_float_to_var_float 714@(644@,6f) = $x
set_lvar_float_to_var_float 720@(644@,6f) = $y
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 726@(644@,6f) = $z
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_5460
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
add_stuck_car_check_with_warp 732@(644@,6i) {distance} 0.5 {time} 5000 {stuck} True {flipped} False {inWater} True {numNodesToCheck} 1
set_car_traction 732@(644@,6i) {traction} 1.5
mark_model_as_no_longer_needed 707@(644@,6i)
set_car_heading 732@(644@,6i) {heading} 663@
set_car_proofs 732@(644@,6i) {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_watertight 732@(644@,6i) {state} True
set_car_strong 732@(644@,6i) {state} True
set_upsidedown_car_not_damaged 732@(644@,6i) {state} True
set_car_straight_line_distance 732@(644@,6i) {distance} 5
set_can_burst_car_tyres 732@(644@,6i) {state} False
create_char_inside_car 732@(644@,6i) {pedType} PedType.CivMale {modelId} 701@(644@,6i) {var_handle} 738@(644@,6i)
clear_char_last_damage_entity 738@(644@,6i)
mark_model_as_no_longer_needed 701@(644@,6i)
set_char_can_be_shot_in_vehicle 738@(644@,6i) {state} False
set_char_decision_maker 738@(644@,6i) {handleOrTemplate} 669@
improve_car_by_cheating 732@(644@,6i) {state} True
car_set_idle 732@(644@,6i)
set_car_driving_style 732@(644@,6i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 732@(644@,6i) {maxSpeed} 655@
set_car_only_damaged_by_player 732@(644@,6i) {state} True
goto @MTBIKER_6207

:MTBIKER_5460
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
770@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 770@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
759@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 759@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} -0.8
760@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 760@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} -0.8
761@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 761@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} -0.8
762@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 762@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} -0.8
763@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 763@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} -0.8
764@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 764@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} -0.8
765@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 765@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} -0.8
766@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 766@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} -0.8
767@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 767@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} -0.8
768@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 768@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} -0.8
769@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 769@ {x} 103@ {y} 223@ {z} 343@
delete_car 774@
remove_blip 755@
755@ = add_blip_for_coord 714@(647@,6f) {y} 720@(647@,6f) {z} 726@(647@,6f)
set_car_density_multiplier 0.5
set_lvar_int_to_var_int 738@(644@,6i) = $scplayer
set_lvar_int_to_lvar_int 757@ = 644@

:MTBIKER_6207
644@ += 1
goto @MTBIKER_4890

:MTBIKER_6221
756@ += 1
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_6317
store_car_char_is_in $scplayer {var_handle} 732@(757@,6i)
set_car_health 732@(757@,6i) {health} 500
clear_car_last_damage_entity 732@(757@,6i)
set_char_coordinates $scplayer {x} 714@(757@,6f) {y} 720@(757@,6f) {z} 726@(757@,6f)
set_car_heading 732@(757@,6i) {heading} 463@
set_camera_behind_player 

:MTBIKER_6317
switch_widescreen True
wait 500
do_fade 1000 {direction} Fade.In
clear_prints 

:MTBIKER_6335
if 
  get_fading_status 
goto_if_false @MTBIKER_6359
wait 0
goto @MTBIKER_6335

:MTBIKER_6359
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_6393
print_now 'MTROUT1' {time} 3000 {flag} 6

:MTBIKER_6393
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_6427
print_now 'MTROUT2' {time} 3000 {flag} 6

:MTBIKER_6427
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_6461
print_now 'MTROUT3' {time} 3000 {flag} 6

:MTBIKER_6461
if 
  756@ == 3
goto_if_false @MTBIKER_6787
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_6787
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_6517
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_6708
if or
  is_car_dead 732@(644@,6i)
  is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_6588
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14357

:MTBIKER_6588
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_6694
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_6694
if or
  not is_car_health_greater 732@(644@,6i) {health} 999
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_6694
print_big 'RACES_3' {time} 1200 {style} TextStyle.MiddleSmaller
display_car_names False
756@ = 7

:MTBIKER_6694
644@ += 1
goto @MTBIKER_6517

:MTBIKER_6708
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6787
if 
  756@ == 4
goto_if_false @MTBIKER_6885
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_6885
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6885
if 
  756@ == 5
goto_if_false @MTBIKER_6983
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_6983
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6983
if 
  756@ == 6
goto_if_false @MTBIKER_7210
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_7210
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_7210
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
restore_camera 
switch_widescreen False
display_car_names False
set_lvar_int_to_var_int 651@ = $game_timer
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_7132
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_7196
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_7182
set_car_only_damaged_by_player 732@(644@,6i) {state} False

:MTBIKER_7182
644@ += 1
goto @MTBIKER_7132

:MTBIKER_7196
771@ = 0
756@ += 1

:MTBIKER_7210
if 
  756@ > 6
goto_if_false @MTBIKER_12430

:MTBIKER_7228
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_11754
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_11740
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_9533
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_7399
if 
  has_char_been_damaged_by_char 738@(644@,6i) {handle} $scplayer
goto_if_false @MTBIKER_7399
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_7399
if 
  not has_char_been_damaged_by_car 738@(644@,6i) {handle} 732@(757@,6i)
goto_if_false @MTBIKER_7399
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14357

:MTBIKER_7399
if 
  756@ == 8
goto_if_false @MTBIKER_9144
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9144
if 
  is_int_lvar_equal_to_int_lvar 745@(757@,10i) == 745@(644@,10i)
goto_if_false @MTBIKER_7582
$x, $y, $z = get_char_coordinates 738@(644@,6i)
773@ = get_distance_between_coords_2d $x {fromY} $y {toX} 714@(644@,6f) {toZ} 720@(644@,6f)
$x, $y, $z = get_char_coordinates $scplayer
664@ = get_distance_between_coords_2d $x {fromY} $y {toX} 714@(644@,6f) {toZ} 720@(644@,6f)
if 
  is_float_lvar_greater_than_float_lvar 664@ > 773@
goto_if_false @MTBIKER_7575
758@ += 1

:MTBIKER_7575
goto @MTBIKER_7616

:MTBIKER_7582
if 
  is_int_lvar_greater_than_int_lvar 745@(644@,10i) > 745@(757@,10i)
goto_if_false @MTBIKER_7616
758@ += 1

:MTBIKER_7616
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_7732
if 
  not locate_char_any_means_2d 738@(644@,6i) {x} 62@(644@,10f) {y} 72@(644@,10f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MTBIKER_7732
get_char_coordinates 738@(644@,6i) {var_x} 62@(644@,10f) {var_y} 72@(644@,10f) {var_z} $z
set_lvar_int_to_var_int 93@(644@,10i) = $game_timer
93@(644@,10i) += 2000

:MTBIKER_7732
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_8575
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_7942
if 
  670@(644@,10i) == 0
goto_if_false @MTBIKER_7832
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_7832
670@(644@,10i) = 1

:MTBIKER_7832
if 
  670@(644@,10i) == 1
goto_if_false @MTBIKER_7942
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_7942
clear_char_tasks 738@(644@,6i)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
670@(644@,10i) = 0

:MTBIKER_7942
if 
  locate_char_any_means_2d 738@(644@,6i) {x} 62@(644@,10f) {y} 72@(644@,10f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MTBIKER_8575
if 
  is_int_var_greater_than_int_lvar $game_timer > 93@(644@,10i)
goto_if_false @MTBIKER_8575
if 
  not is_char_on_screen 738@(644@,6i)
goto_if_false @MTBIKER_8575
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_8252
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_8245
665@ = get_driver_of_car 732@(644@,6i)
if 
  665@ == -1
goto_if_false @MTBIKER_8131
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto @MTBIKER_8245

:MTBIKER_8131
mark_car_as_no_longer_needed 732@(644@,6i)
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
turn_car_to_face_coord 732@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8245
goto @MTBIKER_8366

:MTBIKER_8252
delete_car 732@(644@,6i)
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
turn_car_to_face_coord 732@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8366
$x, $y, $z = get_char_coordinates 738@(644@,6i)
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 10.0 {radiusY} 10.0 {radiusZ} 10.0
goto_if_false @MTBIKER_8575
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @MTBIKER_8575
set_char_coordinates 738@(644@,6i) {x} $x {y} $y {z} $z
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_8575
774@ = store_car_char_is_in_no_save 738@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8575
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_8626
set_lvar_int_to_lvar_int 647@ = 745@(757@,10i)
647@ += 5
774@ = store_car_char_is_in_no_save 738@(644@,6i)

:MTBIKER_8626
643@ = 0
646@ = 0

:MTBIKER_8640
if 
  is_int_lvar_greater_than_int_lvar 744@ > 643@
goto_if_false @MTBIKER_8722
set_lvar_int_to_lvar_int 775@ = 745@(643@,10i)
775@ -= 3
if 
  is_int_lvar_greater_than_int_lvar 775@ > 745@(644@,10i)
goto_if_false @MTBIKER_8708
646@ += 1

:MTBIKER_8708
643@ += 1
goto @MTBIKER_8640

:MTBIKER_8722
if 
  646@ > 0
goto_if_false @MTBIKER_9144
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_9144
if 
  not locate_char_any_means_char_3d $scplayer {target} 738@(644@,6i) {xRadius} 30.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9144
if 
  not is_char_on_screen 738@(644@,6i)
goto_if_false @MTBIKER_9144
if 
  not is_point_obscured_by_a_mission_entity 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radiusX} 10.0 {radiusY} 10.0 {radiusZ} 10.0
goto_if_false @MTBIKER_9144
if 
  not is_point_on_screen 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radius} 4.0
goto_if_false @MTBIKER_9144
set_char_coordinates 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f)
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_9034
774@ = store_car_char_is_in_no_save 738@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9144

:MTBIKER_9034
create_car 707@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_9144
if 
  656@ == 0
goto_if_false @MTBIKER_9266
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9266
if 
  not locate_char_any_means_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 500.0 {yRadius} 500.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @MTBIKER_9266
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14357

:MTBIKER_9266
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_9461
if and
  13 > 745@(644@,10i)
  745@(644@,10i) > 4
goto_if_false @MTBIKER_9389
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @MTBIKER_9382
goto @MTBIKER_12437

:MTBIKER_9382
goto @MTBIKER_9454

:MTBIKER_9389
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9454
goto @MTBIKER_12437

:MTBIKER_9454
goto @MTBIKER_9526

:MTBIKER_9461
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9526
goto @MTBIKER_12437

:MTBIKER_9526
goto @MTBIKER_9587

:MTBIKER_9533
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9587
if 
  not is_char_in_water 738@(644@,6i)
goto_if_false @MTBIKER_9587
745@(644@,10i) = 0

:MTBIKER_9587
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11346
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_11314
get_char_coordinates 738@(757@,6i) {var_x} 583@(644@,10f) {var_y} 593@(644@,10f) {var_z} 603@(644@,10f)
613@, 623@, 633@ = get_car_coordinates 732@(757@,6i)
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
sub_float_lvar_from_float_lvar 633@ -= 726@(644@,6f)
if or
  -24.5 > 603@(644@,10f)
  -24.5 > 633@
goto_if_false @MTBIKER_10085
if 
  657@ == 0
goto_if_false @MTBIKER_9782
657@ = 1
set_lvar_int_to_var_int 668@ = $game_timer
668@ += 1500

:MTBIKER_9782
if 
  657@ == 1
goto_if_false @MTBIKER_10078
set_lvar_int_to_lvar_int 649@ = 668@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_9849
649@ = 0

:MTBIKER_9849
if 
  is_int_var_greater_than_int_lvar $game_timer > 668@
goto_if_false @MTBIKER_10078
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:MTBIKER_9901
if 
  get_fading_status 
goto_if_false @MTBIKER_9925
wait 0
goto @MTBIKER_9901

:MTBIKER_9925
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_10034
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(757@,6i)
goto_if_false @MTBIKER_9988
warp_char_into_car 738@(644@,6i) {vehicle} 732@(757@,6i)

:MTBIKER_9988
set_car_coordinates 732@(757@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
set_car_heading 732@(757@,6i) {heading} 463@(658@,120f)

:MTBIKER_10034
do_fade 500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 

:MTBIKER_10045
if 
  get_fading_status 
goto_if_false @MTBIKER_10069
wait 0
goto @MTBIKER_10045

:MTBIKER_10069
set_camera_behind_player 
set_player_control $player1 {state} True

:MTBIKER_10078
goto @MTBIKER_10110

:MTBIKER_10085
if 
  657@ == 1
goto_if_false @MTBIKER_10110
657@ = 0

:MTBIKER_10110
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_11307
if 
  not is_char_in_car $scplayer {vehicle} 732@(757@,6i)
goto_if_false @MTBIKER_11014
if 
  656@ == 0
goto_if_false @MTBIKER_10265
delete_checkpoint 780@
remove_blip 755@
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_10220
755@ = add_blip_for_car 732@(757@,6i)
set_blip_as_friendly 755@ {state} True

:MTBIKER_10220
set_lvar_int_to_lvar_int 666@ = 644@
720@(644@,6f) += 1000.0
set_lvar_int_to_var_int 667@ = $game_timer
667@ += 25400
656@ = 1

:MTBIKER_10265
set_lvar_int_to_lvar_int 649@ = 667@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_10314
649@ = 0

:MTBIKER_10314
if 
  is_int_var_greater_than_int_lvar $game_timer > 667@
goto_if_false @MTBIKER_10358
print_now 'RACES20' {time} 5000 {flag} 1
goto @MTBIKER_14357
return 

:MTBIKER_10358
if 
  649@ == 1
goto_if_false @MTBIKER_10406
add_next_message_to_previous_briefs False
print_with_number_now 'RACE_51' {num} 649@ {duration} 200 {flag} 1
goto @MTBIKER_10429

:MTBIKER_10406
add_next_message_to_previous_briefs False
print_with_number_now 'RACES50' {num} 649@ {duration} 200 {flag} 1

:MTBIKER_10429
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_11007
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11007
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_10679
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
register_fastest_time StatId.Longest2WheelDist {value} $mtbikerace_best_times($mtbikerace_selection,5i)
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10650
print_with_2_numbers_big 'LAPMTB2' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_10672

:MTBIKER_10650
print_with_2_numbers_big 'LAPMTB' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_10672
goto @MTBIKER_10961

:MTBIKER_10679
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10800
print_with_2_numbers_big 'RACES08' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_10822

:MTBIKER_10800
print_with_2_numbers_big 'RACES22' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_10822
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10939
print_with_2_numbers_big 'RACE_52' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller
goto @MTBIKER_10961

:MTBIKER_10939
print_with_2_numbers_big 'RACE_53' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller

:MTBIKER_10961
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_11000
goto @MTBIKER_14375
goto @MTBIKER_11007

:MTBIKER_11000
goto @MTBIKER_14357

:MTBIKER_11007
goto @MTBIKER_11307

:MTBIKER_11014
if 
  656@ == 1
goto_if_false @MTBIKER_11307
clear_this_print 'RACES50'
remove_blip 755@
720@(644@,6f) -= 1000.0
645@ = 0
set_lvar_int_to_lvar_int 647@ = 92@
647@ -= 1
755@ = add_blip_for_coord 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f)
change_blip_colour 755@ {color} BlipColor.Red
change_blip_display 755@ {display} BlipDisplay.BlipOnly
change_blip_scale 755@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11209
780@ = create_checkpoint CheckpointType.TubeEnd {x} 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @MTBIKER_11300

:MTBIKER_11209
set_lvar_int_to_lvar_int 647@ = 745@(666@,10i)
647@ += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11258
647@ = 1

:MTBIKER_11258
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_11300
656@ = 0

:MTBIKER_11307
goto @MTBIKER_11339

:MTBIKER_11314
print_now 'RACES24' {time} 5000 {flag} 1
goto @MTBIKER_14357
return 

:MTBIKER_11339
goto @MTBIKER_11740

:MTBIKER_11346
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_11740
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_11740
get_char_coordinates 738@(644@,6i) {var_x} 583@(644@,10f) {var_y} 593@(644@,10f) {var_z} 603@(644@,10f)
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
if 
  -15.5 > 603@(644@,10f)
goto_if_false @MTBIKER_11740
if 
  not is_point_on_screen 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f) {radius} 10.0
goto_if_false @MTBIKER_11740
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_11595
set_car_coordinates 732@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
set_car_heading 732@(644@,6i) {heading} 463@(644@,120f)
goto @MTBIKER_11740

:MTBIKER_11595
665@ = get_driver_of_car 732@(644@,6i)
if 
  665@ == -1
goto_if_false @MTBIKER_11678
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
set_car_coordinates 732@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
goto @MTBIKER_11740

:MTBIKER_11678
mark_car_as_no_longer_needed 732@(644@,6i)
create_car 707@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f) {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)

:MTBIKER_11740
644@ += 1
goto @MTBIKER_7228

:MTBIKER_11754
draw_rect 40@ {y} 47@ {width} 54@ {height} 61@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 39@ {y} 46@ {width} 53@ {height} 60@ {r} 134 {g} 155 {b} 184 {a} 255
draw_rect 34@ {y} 41@ {width} 48@ {height} 55@ {r} 0 {g} 0 {b} 0 {a} 255
758@ += 1
gosub @MTBIKER_14289
set_text_scale 49@ {heightScale} 56@
if 
  758@ == 1
goto_if_false @MTBIKER_11883
display_text 35@ {offsetTop} 42@ {key} 'ST'

:MTBIKER_11883
if 
  758@ == 2
goto_if_false @MTBIKER_11918
display_text 35@ {offsetTop} 42@ {key} 'ND'

:MTBIKER_11918
if 
  758@ == 3
goto_if_false @MTBIKER_11953
display_text 35@ {offsetTop} 42@ {key} 'RD'

:MTBIKER_11953
if 
  758@ > 3
goto_if_false @MTBIKER_11988
display_text 35@ {offsetTop} 42@ {key} 'TH'

:MTBIKER_11988
if 
  2 >= 758@
goto_if_false @MTBIKER_12073
set_lvar_float_to_lvar_float 655@ = 652@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12073
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12073
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12073
if and
  758@ > 2
  4 > 758@
goto_if_false @MTBIKER_12165
set_lvar_float_to_lvar_float 655@ = 653@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12165
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12165
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12165
if 
  758@ == 6
goto_if_false @MTBIKER_12191
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12191
gosub @MTBIKER_14289
set_text_scale 50@ {heightScale} 57@
set_text_centre True
display_text_with_number 36@ {offsetTop} 43@ {key} 'NUMBER' {num} 758@
gosub @MTBIKER_14289
set_text_scale 51@ {heightScale} 58@
display_text_with_number 37@ {offsetTop} 44@ {key} 'OUT_OF' {num} 92@
$game_timer = get_game_timer 
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
gosub @MTBIKER_14289
set_text_centre True
set_text_scale 52@ {heightScale} 59@
if 
  649@ > 9
goto_if_false @MTBIKER_12407
display_text_with_2_numbers 38@ {offsetTop} 45@ {key} 'TIME' {num1} 648@ {num2} 649@
goto @MTBIKER_12430

:MTBIKER_12407
display_text_with_2_numbers 38@ {offsetTop} 45@ {key} 'TIME_0' {num1} 648@ {num2} 649@

:MTBIKER_12430
goto @MTBIKER_4475

:MTBIKER_12437
if 
  756@ == 7
goto_if_false @MTBIKER_12462
756@ = 8

:MTBIKER_12462
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_12510
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 755@

:MTBIKER_12510
745@(644@,10i) += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13217
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13106
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_12771
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
register_fastest_time StatId.Longest2WheelDist {value} $mtbikerace_best_times($mtbikerace_selection,5i)
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12742
print_with_2_numbers_big 'LAPMTB2' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_12764

:MTBIKER_12742
print_with_2_numbers_big 'LAPMTB' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_12764
goto @MTBIKER_13053

:MTBIKER_12771
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12892
print_with_2_numbers_big 'RACES08' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_12914

:MTBIKER_12892
print_with_2_numbers_big 'RACES22' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_12914
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_13031
print_with_2_numbers_big 'TIME' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller
goto @MTBIKER_13053

:MTBIKER_13031
print_with_2_numbers_big 'TIME_0' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller

:MTBIKER_13053
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_13092
goto @MTBIKER_14375
goto @MTBIKER_13099

:MTBIKER_13092
goto @MTBIKER_14357

:MTBIKER_13099
goto @MTBIKER_13217

:MTBIKER_13106
task_car_temp_action 738@(644@,6i) {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 2000000
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  not is_point_on_screen 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radius} 30.0
goto_if_false @MTBIKER_13217
if 
  not is_car_dead 774@
goto_if_false @MTBIKER_13217
turn_car_to_face_coord 774@ {x} 103@(658@,120f) {y} 223@(658@,120f)

:MTBIKER_13217
set_lvar_int_to_lvar_int 647@ = 745@(644@,10i)
set_lvar_float_to_lvar_float 714@(644@,6f) = 103@(647@,120f)
set_lvar_float_to_lvar_float 720@(644@,6f) = 223@(647@,120f)
set_lvar_float_to_lvar_float 726@(644@,6f) = 343@(647@,120f)
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13658
647@ += 1
set_lvar_float_to_lvar_float 777@ = 103@(647@,120f)
set_lvar_float_to_lvar_float 778@ = 223@(647@,120f)
set_lvar_float_to_lvar_float 779@ = 343@(647@,120f)
755@ = add_blip_for_coord 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f)
change_blip_colour 755@ {color} BlipColor.Red
change_blip_display 755@ {display} BlipDisplay.BlipOnly
change_blip_scale 755@ {size} 3
if 
  756@ == 1
goto_if_false @MTBIKER_13450
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_13450
delete_checkpoint 780@
if 
  is_int_lvar_greater_than_int_lvar 713@ > 745@(644@,10i)
goto_if_false @MTBIKER_13527
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0
goto @MTBIKER_13569

:MTBIKER_13527
780@ = create_checkpoint CheckpointType.TubeEnd {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_13569
if 
  745@(644@,10i) == 3
goto_if_false @MTBIKER_13651
mark_char_as_no_longer_needed 770@
mark_char_as_no_longer_needed 759@
mark_char_as_no_longer_needed 760@
mark_char_as_no_longer_needed 761@
mark_char_as_no_longer_needed 762@
mark_char_as_no_longer_needed 763@
mark_char_as_no_longer_needed 764@
mark_char_as_no_longer_needed 765@
mark_char_as_no_longer_needed 766@
mark_char_as_no_longer_needed 767@
mark_char_as_no_longer_needed 768@
mark_char_as_no_longer_needed 769@

:MTBIKER_13651
goto @MTBIKER_14282

:MTBIKER_13658
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14044
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_14037
if 
  745@(644@,10i) == 1
goto_if_false @MTBIKER_13822
if 
  644@ == 0
goto_if_false @MTBIKER_13770
$bags_on_bike = generate_random_int_in_range 832 {max} 835
start_playback_recorded_car 732@(644@,6i) {path} $bags_on_bike
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} True

:MTBIKER_13770
if 
  644@ == 1
goto_if_false @MTBIKER_13822
$bags_on_bike = generate_random_int_in_range 829 {max} 832
start_playback_recorded_car 732@(644@,6i) {path} $bags_on_bike
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} True

:MTBIKER_13822
if 
  745@(644@,10i) == 13
goto_if_false @MTBIKER_13944
  is_playback_going_on_for_car 732@(644@,6i)
stop_playback_recorded_car 732@(644@,6i)
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13944
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} False
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9587

:MTBIKER_13944
if 
  745@(644@,10i) > 13
goto_if_false @MTBIKER_14037
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14037
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9587

:MTBIKER_14037
goto @MTBIKER_14282

:MTBIKER_14044
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14115
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9587

:MTBIKER_14115
if 
  is_int_lvar_greater_or_equal_to_int_lvar 745@(644@,10i) >= 700@
goto_if_false @MTBIKER_14282
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_14282
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_14282
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_14282
if 
  690@(644@,10i) == 0
goto_if_false @MTBIKER_14282
clear_char_tasks 738@(644@,6i)
690@(644@,10i) = 1
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} -2399.863 {y} -2206.5491 {z} 32.5652 {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_14282
goto @MTBIKER_9587

:MTBIKER_14289
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:MTBIKER_14357
print_big 'RACES_8' {time} 5000 {style} TextStyle.Middle
return 

:MTBIKER_14375
set_lvar_int_to_var_int 646@ = $mtbikerace_selection
646@ += 1
646@ *= 10000
clear_wanted_level $player1
play_mission_passed_tune 1
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_14469
print_big 'RACES18' {time} 500 {style} TextStyle.Middle
add_score $player1 {money} 500
print_now 'MTWIN1' {time} 5000 {flag} 1
play_mission_passed_tune 1

:MTBIKER_14469
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_14531
print_now 'MTWIN2' {time} 5000 {flag} 1
print_big 'RACES18' {time} 1000 {style} TextStyle.Middle
add_score $player1 {money} 1000
play_mission_passed_tune 1

:MTBIKER_14531
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14593
print_big 'RACES18' {time} 2000 {style} TextStyle.Middle
add_score $player1 {money} 2000
print_now 'MTWIN3' {time} 5000 {flag} 1
play_mission_passed_tune 2

:MTBIKER_14593
$mtbikerace_selection += 1
if 
  $mtbikerace_selection > 3
goto_if_false @MTBIKER_14656
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_14649
register_oddjob_mission_passed 
player_made_progress 1
$flag_mtbike_passed_1stime = 1

:MTBIKER_14649
$mtbikerace_selection = 1

:MTBIKER_14656
return 

:MTBIKER_14658
$onmission = 0
if 
  not is_car_dead 732@
goto_if_false @MTBIKER_14702
if 
is_recording_going_on_for_car 732@
goto_if_false @MTBIKER_14702
stop_playback_recorded_car 732@

:MTBIKER_14702
if 
  not is_car_dead 733@
goto_if_false @MTBIKER_14739
if 
is_recording_going_on_for_car 733@
goto_if_false @MTBIKER_14739
stop_playback_recorded_car 733@

:MTBIKER_14739
remove_car_recording 829
remove_car_recording 830
remove_car_recording 831
remove_car_recording 832
remove_car_recording 833
remove_car_recording 834
mark_model_as_no_longer_needed 701@
mark_model_as_no_longer_needed 702@
mark_model_as_no_longer_needed 703@
mark_model_as_no_longer_needed 704@
mark_model_as_no_longer_needed 705@
mark_model_as_no_longer_needed 706@
mark_model_as_no_longer_needed 707@
mark_model_as_no_longer_needed 708@
mark_model_as_no_longer_needed 709@
mark_model_as_no_longer_needed 710@
mark_model_as_no_longer_needed 711@
mark_model_as_no_longer_needed 712@
mark_char_as_no_longer_needed 770@
mark_char_as_no_longer_needed 759@
mark_char_as_no_longer_needed 760@
mark_char_as_no_longer_needed 761@
mark_char_as_no_longer_needed 762@
mark_char_as_no_longer_needed 763@
mark_char_as_no_longer_needed 764@
mark_char_as_no_longer_needed 765@
mark_char_as_no_longer_needed 766@
mark_char_as_no_longer_needed 767@
mark_char_as_no_longer_needed 768@
mark_char_as_no_longer_needed 769@
display_car_names True
remove_blip 755@
$timer_mobile_start = get_game_timer 
disable_all_entry_exits False
set_message_formatting False {margin} 380 {width} 464
use_text_commands False
mission_has_finished 
return 

//-------------Mission 133---------------
// Originally: BMX / NRG-500 STUNT Mission

:STUNT
gosub @STUNT_36
if 
  has_deatharrest_been_executed 
goto_if_false @STUNT_27
gosub @STUNT_1602

:STUNT_27
gosub @STUNT_2028
terminate_this_script 

:STUNT_36
$onmission = 1
if 
  $steal_car_cargen5 == 0
goto_if_false @STUNT_63
register_mission_given 

:STUNT_63
script_name 'STUNT'
wait 0
load_mission_text 'STUNT'

:STUNT_89
if 
  not is_player_playing $player1
goto_if_false @STUNT_116
wait 0
goto @STUNT_89

:STUNT_116
34@ = store_car_char_is_in $scplayer
set_car_health 34@ {health} 3000
gosub @STUNT_2129
35@ = 1
56@ = 0

:STUNT_153
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_197
36@(56@,20i) = 0
56@ += 1
goto @STUNT_153

:STUNT_197
if 
  $onmission == 0
goto_if_false @STUNT_229
57@ = add_blip_for_coord $x {y} $y {z} $z

:STUNT_229
58@ = 0
59@ = 0
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 191@ {y} 192@ {z} 193@ {switchStyle} SwitchType.JumpCut
$game_timer = get_game_timer 
set_var_int_to_var_int $random_number_mtbike = $game_timer
$random_number_mtbike += 5000
print_now 'STUNT_6' {time} 5000 {flag} 1
80@ = 0

:STUNT_355
wait 0
$game_timer = get_game_timer 
if 
  58@ == 0
goto_if_false @STUNT_510
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STUNT_503
if 
  80@ == 1
goto_if_false @STUNT_496
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
$random_number_mtbike = 11000
display_onscreen_timer_with_string $random_number_mtbike {direction} TimerDirection.Down {text} 'STUNT_2'
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1
80@ = 0

:STUNT_496
goto @STUNT_510

:STUNT_503
80@ = 1

:STUNT_510
if 
  58@ == 0
goto_if_false @STUNT_619
if 
  is_int_var_greater_than_int_var $game_timer > $random_number_mtbike
goto_if_false @STUNT_619
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
$random_number_mtbike = 11000
display_onscreen_timer_with_string $random_number_mtbike {direction} TimerDirection.Down {text} 'STUNT_2'
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1

:STUNT_619
if 
  not is_car_dead 34@
goto_if_false @STUNT_1505
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STUNT_1180
if 
  35@ == 1
goto_if_false @STUNT_856
clear_this_print 'STUNT_1'
remove_blip 57@
56@ = 0

:STUNT_695
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_849
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_835
add_blip_for_coord 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {var_handle} 82@(56@,20i)
change_blip_colour 82@(56@,20i) {color} BlipColor.Red
create_checkpoint CheckpointType.Torus {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {pointX} 127@(56@,20f) {pointY} 147@(56@,20f) {pointZ} 167@(56@,20f) {radius} 0.8 {var_handle} 102@(56@,20i)

:STUNT_835
56@ += 1
goto @STUNT_695

:STUNT_849
35@ = 0

:STUNT_856
56@ = 0

:STUNT_863
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1173
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_1159
set_checkpoint_heading 102@(56@,20i) {heading} 60@(56@,20f)
draw_shadow ShadowTextureType.Ped {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {angle} 0.0 {length} 1.0 {intensity} 150 {r} 0 {g} 0 {b} 0
60@(56@,20f) += 10.0
if 
  60@(56@,20f) > 360.0
goto_if_false @STUNT_1017
60@(56@,20f) -= 360.0

:STUNT_1017
if 
  locate_char_in_car_3d $scplayer {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @STUNT_1159
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
report_mission_audio_event_at_position 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {soundId} ScriptSound.SoundPartMissionComplete
$random_number_mtbike += 10000
print_with_number_now 'STUNT_3' {num} 10 {duration} 1500 {flag} 1
59@ += 1
36@(56@,20i) += 1

:STUNT_1159
56@ += 1
goto @STUNT_863

:STUNT_1173
goto @STUNT_1498

:STUNT_1180
if 
  35@ == 0
goto_if_false @STUNT_1336
56@ = 0

:STUNT_1205
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1256
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
56@ += 1
goto @STUNT_1205

:STUNT_1256
57@ = add_blip_for_car 34@
set_blip_as_friendly 57@ {state} True
if 
  $random_number_mtbike > 25400
goto_if_false @STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
122@ += 25400
goto @STUNT_1329

:STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
add_int_var_to_int_lvar 122@ += $random_number_mtbike

:STUNT_1329
35@ = 1

:STUNT_1336
set_lvar_int_to_lvar_int 123@ = 122@
sub_int_var_from_int_lvar 123@ -= $game_timer
123@ /= 1000
if 
  1 > 123@
goto_if_false @STUNT_1385
123@ = 0

:STUNT_1385
if 
  is_int_var_greater_than_int_lvar $game_timer > 122@
goto_if_false @STUNT_1427
print_now 'STUNT_4' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1427
if 
  123@ == 1
goto_if_false @STUNT_1475
add_next_message_to_previous_briefs False
print_with_number_now 'STUNT_8' {num} 123@ {duration} 200 {flag} 1
goto @STUNT_1498

:STUNT_1475
add_next_message_to_previous_briefs False
print_with_number_now 'STUNT_1' {num} 123@ {duration} 200 {flag} 1

:STUNT_1498
goto @STUNT_1528

:STUNT_1505
print_now 'STUNT_5' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1528
if 
  is_int_lvar_equal_to_int_lvar 59@ == 187@
goto_if_false @STUNT_1554
goto @STUNT_1620

:STUNT_1554
if 
  $random_number_mtbike == 0
goto_if_false @STUNT_1595
print_now 'STUNT_7' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1595
goto @STUNT_355

:STUNT_1602
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STUNT_1620
add_score $player1 {money} 1000
clear_wanted_level $player1
play_mission_passed_tune 1
set_lvar_int_to_var_int 124@ = $game_timer
sub_int_lvar_from_int_lvar 124@ -= 81@
124@ /= 1000
if 
  $stunt_course == 0
goto_if_false @STUNT_1730
if 
  $steal_car_cargen5 == 0
goto_if_false @STUNT_1723
player_made_progress 1
register_mission_passed 'BMX'
play_mission_passed_tune 2
$steal_car_cargen5 = 1

:STUNT_1723
register_fastest_time StatId.BestTimeBmx {value} 124@

:STUNT_1730
if 
  $stunt_course == 1
goto_if_false @STUNT_1800
if 
  $done_bmx_stunt_progress == 0
goto_if_false @STUNT_1792
player_made_progress 1
register_mission_passed 'NRG500'
play_mission_passed_tune 2
$done_bmx_stunt_progress = 1

:STUNT_1792
register_fastest_time StatId.BestTimeNrg {value} 124@

:STUNT_1800
set_lvar_int_to_lvar_int 125@ = 124@
125@ /= 60
set_lvar_int_to_lvar_int 126@ = 125@
126@ *= 60
set_lvar_int_to_lvar_int 123@ = 124@
sub_int_lvar_from_int_lvar 123@ -= 126@
if 
  is_int_var_greater_than_int_lvar $done_nrg500_stunt_progress($stunt_course,2i) > 124@
goto_if_false @STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_1916
print_with_2_numbers_big 'STUNTN0' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle
goto @STUNT_1938

:STUNT_1916
print_with_2_numbers_big 'STUNTPN' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle

:STUNT_1938
set_var_int_to_lvar_int $done_nrg500_stunt_progress($stunt_course,2i) = 124@
goto @STUNT_2026

:STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_2004
print_with_2_numbers_big 'STUNTT0' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle
goto @STUNT_2026

:STUNT_2004
print_with_2_numbers_big 'STUNTPT' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle

:STUNT_2026
return 

:STUNT_2028
clear_this_print 'STUNT_1'
clear_this_print 'STUNT_3'
56@ = 0

:STUNT_2057
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_2108
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
56@ += 1
goto @STUNT_2057

:STUNT_2108
remove_blip 57@
clear_onscreen_timer $random_number_mtbike
$onmission = 0
mission_has_finished 
return 

:STUNT_2129
switch_start $stunt_course {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @STUNT_3450 {caseNum1} 0 {caseLabel1} @STUNT_2192 {caseNum2} 1 {caseLabel2} @STUNT_2836 {caseNum3} -1 {caseLabel3} @STUNT_3450 {caseNum4} -1 {caseLabel4} @STUNT_3450 {caseNum5} -1 {caseLabel5} @STUNT_3450 {caseNum6} -1 {caseLabel6} @STUNT_3450 {caseNum7} -1 {caseLabel7} @STUNT_3450

:STUNT_2192
127@ = 1955.012
147@ = -1367.72
167@ = 24.7354
128@ = 1954.609
148@ = -1376.964
168@ = 24.2187
129@ = 1887.392
149@ = -1362.954
169@ = 19.4329
130@ = 1914.137
150@ = -1427.099
170@ = 15.5805
131@ = 1908.552
151@ = -1388.389
171@ = 10.3294
132@ = 1882.3621
152@ = -1427.686
172@ = 10.3294
133@ = 1953.349
153@ = -1426.5861
173@ = 10.3294
134@ = 1878.189
154@ = -1388.8101
174@ = 15.2464
135@ = 1878.184
155@ = -1388.839
175@ = 18.1461
136@ = 1872.327
156@ = -1451.051
176@ = 15.7645
137@ = 1905.178
157@ = -1413.675
177@ = 13.5322
138@ = 1949.5031
158@ = -1411.546
178@ = 15.1837
139@ = 1867.153
159@ = -1410.007
179@ = 13.5322
140@ = 1909.3409
160@ = -1369.8459
180@ = 16.7966
141@ = 1939.243
161@ = -1388.132
181@ = 19.2615
142@ = 1904.8879
162@ = -1360.6219
182@ = 13.5322
143@ = 1930.234
163@ = -1398.62
183@ = 16.8554
144@ = 1888.765
164@ = -1399.326
184@ = 17.2408
145@ = 1900.948
165@ = -1397.83
185@ = 15.6868
187@ = 19
188@ = 1964.7531
189@ = -1368.3621
190@ = 29.6217
191@ = 1963.934
192@ = -1368.818
193@ = 29.2725
goto @STUNT_3450

:STUNT_2836
127@ = -1632.058
147@ = 143.152
167@ = 3.4111
128@ = -1632.021
148@ = 83.0413
168@ = 7.5331
129@ = -1689.1479
149@ = 53.3936
169@ = 11.7703
130@ = -1606.423
150@ = 133.4396
170@ = -10.9911
131@ = -1680.386
151@ = 87.0915
171@ = 8.2325
132@ = -1666.295
152@ = 102.0489
172@ = -1.5025
133@ = -1654.692
153@ = 60.7782
173@ = 7.6501
134@ = -1684.8669
154@ = 74.6374
174@ = -7.0328
135@ = -1583.797
155@ = 126.1577
175@ = 4.157
136@ = -1667.705
156@ = 49.5191
176@ = 6.5634
137@ = -1611.585
157@ = 106.3131
177@ = -3.6465
138@ = -1590.556
158@ = 148.9676
178@ = 4.113
139@ = -1671.959
159@ = 98.6
179@ = 8.9263
140@ = -1693.3199
160@ = 65.1187
180@ = 8.7997
141@ = -1660.951
161@ = 107.6739
181@ = -2.1545
142@ = -1654.071
162@ = 77.2629
182@ = -10.2893
143@ = -1645.494
163@ = 107.2477
183@ = -10.6617
144@ = -1673.735
164@ = 56.9287
184@ = -10.674
187@ = 18
188@ = -1681.464
189@ = 27.2091
190@ = 9.6606
191@ = -1681.252
192@ = 28.183
193@ = 9.5773
goto @STUNT_3450

:STUNT_3450
return 

//-------------Mission 134---------------
// Originally: Buy Properties Mission

:BUYPRO1
script_name 'BUYPRO1'
$onmission = 1
wait 0
34@ = 0
set_fading_colour 0 {g} 0 {b} 1
set_player_control $player1 {state} False
switch_widescreen True
switch_start $buying_property_switch {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @BUYPRO1_4201 {caseNum1} 0 {caseLabel1} @BUYPRO1_306 {caseNum2} 1 {caseLabel2} @BUYPRO1_410 {caseNum3} 2 {caseLabel3} @BUYPRO1_504 {caseNum4} 3 {caseLabel4} @BUYPRO1_688 {caseNum5} 4 {caseLabel5} @BUYPRO1_814 {caseNum6} 5 {caseLabel6} @BUYPRO1_940 {caseNum7} 6 {caseLabel7} @BUYPRO1_1066
switch_continued 7 {caseLabel1} @BUYPRO1_1192 {caseNum2} 8 {caseLabel2} @BUYPRO1_1318 {caseNum3} 9 {caseLabel3} @BUYPRO1_1444 {caseNum4} 10 {caseLabel4} @BUYPRO1_1570 {caseNum5} 11 {caseLabel5} @BUYPRO1_1696 {caseNum6} 12 {caseLabel6} @BUYPRO1_1822 {caseNum7} 13 {caseLabel7} @BUYPRO1_1948 {caseNum8} 14 {caseLabel8} @BUYPRO1_2074 {caseNum9} 15 {caseLabel9} @BUYPRO1_2200
switch_continued 16 {caseLabel1} @BUYPRO1_2315 {caseNum2} 17 {caseLabel2} @BUYPRO1_2437 {caseNum3} 18 {caseLabel3} @BUYPRO1_2559 {caseNum4} 19 {caseLabel4} @BUYPRO1_2674 {caseNum5} 20 {caseLabel5} @BUYPRO1_2789 {caseNum6} 21 {caseLabel6} @BUYPRO1_2904 {caseNum7} 22 {caseLabel7} @BUYPRO1_3026 {caseNum8} 23 {caseLabel8} @BUYPRO1_3141 {caseNum9} 24 {caseLabel9} @BUYPRO1_3256
switch_continued 25 {caseLabel1} @BUYPRO1_3371 {caseNum2} 26 {caseLabel2} @BUYPRO1_3497 {caseNum3} 27 {caseLabel3} @BUYPRO1_3612 {caseNum4} 28 {caseLabel4} @BUYPRO1_3734 {caseNum5} 29 {caseLabel5} @BUYPRO1_3856 {caseNum6} 30 {caseLabel6} @BUYPRO1_3971 {caseNum7} 31 {caseLabel7} @BUYPRO1_4086 {caseNum8} -1 {caseLabel8} @BUYPRO1_4201 {caseNum9} -1 {caseLabel9} @BUYPRO1_4201

:BUYPRO1_306
set_fixed_camera_position -1990.969 {y} 292.2734 {z} 35.1049 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1990.053 {y} 291.9333 {z} 35.3176 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $save_houseprice
start_new_script @STEAL 
remove_blip $steal_contact_blip
$steal_contact_blip = add_sprite_blip_for_contact_point $stealX {y} $stealY {z} $stealZ {sprite} $steal_blip_icon
remove_blip $showroom_contact_blip
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_410
set_fixed_camera_position -2255.7051 {y} 131.9585 {z} 38.5998 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2254.7161 {y} 132.0048 {z} 38.4589 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1654
remove_blip $zero_contact_blip
switch_entry_exit 'RCPLAY' {state} True
$zeros_property_bought = 1
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_504
set_fixed_camera_position 445.128 {y} 2540.436 {z} 25.6202 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 444.1882 {y} 2540.1421 {z} 25.4462 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1655
remove_blip $airstrip_contact_blip
start_new_script @PSCH 
remove_blip $desert2_contact_blip
remove_blip $1719
$1719 = add_short_range_sprite_blip_for_contact_point $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2] {sprite} RadarSprite.SaveGame
change_blip_display $1719 {display} BlipDisplay.BlipOnly
remove_blip $pilot_contact_blip
$pilot_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
change_blip_display $pilot_contact_blip {display} BlipDisplay.BlipOnly
activate_garage 'CN2GAR2'
activate_garage 'DHANGAR'
set_closest_entry_exit_flag $propertyX[2] {y} $propertyY[2] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_688
set_fixed_camera_position 316.0747 {y} -1786.757 {z} 5.0712 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.1206 {y} -1785.778 {z} 5.2692 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1656
remove_blip $1624
$1624 = add_short_range_sprite_blip_for_contact_point $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {sprite} RadarSprite.SaveGame
change_blip_display $1624 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[3] {y} $propertyY[3] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BEACSV'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_814
set_fixed_camera_position 2430.8689 {y} 698.3348 {z} 12.9763 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2431.7891 {y} 697.9644 {z} 12.843 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1657
remove_blip $1625
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.SaveGame
change_blip_display $1625 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[4] {y} $propertyY[4] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'VESVGRG'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_940
set_fixed_camera_position -362.3164 {y} 1152.6639 {z} 21.4821 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -362.6989 {y} 1153.587 {z} 21.5142 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1658
remove_blip $1626
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.SaveGame
change_blip_display $1626 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[5] {y} $propertyY[5] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CN2GAR1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1066
set_fixed_camera_position 1295.9821 {y} 2525.5701 {z} 14.1002 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1294.994 {y} 2525.7241 {z} 14.0597 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1659
remove_blip $1627
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.SaveGame
change_blip_display $1627 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[6] {y} $propertyY[6] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB69'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1192
set_fixed_camera_position 908.9885 {y} 2006.151 {z} 17.7914 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 909.9134 {y} 2006.1429 {z} 17.4113 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1660
remove_blip $1628
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.SaveGame
change_blip_display $1628 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[7] {y} $propertyY[7] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB7'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1318
set_fixed_camera_position 2233.1399 {y} 152.5748 {z} 33.5239 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2233.1599 {y} 153.5324 {z} 33.2366 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1661
remove_blip $1629
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.SaveGame
change_blip_display $1629 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[8] {y} $propertyY[8] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BURBDOO'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1444
set_fixed_camera_position 1385.519 {y} 1901.313 {z} 14.5901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1386.472 {y} 1901.076 {z} 14.4041 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1662
remove_blip $1630
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.SaveGame
change_blip_display $1630 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[9] {y} $propertyY[9] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB6'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1570
set_fixed_camera_position 1689.118 {y} -2120.165 {z} 18.6369 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1689.188 {y} -2119.187 {z} 18.4393 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1663
remove_blip $1631
$1631 = add_short_range_sprite_blip_for_contact_point $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {sprite} RadarSprite.SaveGame
change_blip_display $1631 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[10] {y} $propertyY[10] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CARLAS1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1696
set_fixed_camera_position -2098.967 {y} 923.2947 {z} 80.2446 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2098.9861 {y} 922.2994 {z} 80.3401 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1664
remove_blip $1632
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.SaveGame
change_blip_display $1632 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[11] {y} $propertyY[11] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SAV1SFE'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1822
set_fixed_camera_position 1325.974 {y} -598.7552 {z} 116.1597 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1326.254 {y} -599.7052 {z} 116.0219 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1665
remove_blip $1633
$1633 = add_short_range_sprite_blip_for_contact_point $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {sprite} RadarSprite.SaveGame
change_blip_display $1633 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[12] {y} $propertyY[12] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CESAFE1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1948
set_fixed_camera_position -2700.657 {y} 791.45 {z} 70.2223 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2700.6609 {y} 792.4032 {z} 69.9203 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1666
remove_blip $1634
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.SaveGame
change_blip_display $1634 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[13] {y} $propertyY[13] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SAV1SFW'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2074
set_fixed_camera_position -2476.4319 {y} -127.2039 {z} 26.6779 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2475.458 {y} -127.2469 {z} 26.8974 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1667
remove_blip $1635
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.SaveGame
change_blip_display $1635 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[14] {y} $propertyY[14] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SVGSFS1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2200
set_fixed_camera_position 894.7908 {y} -1663.996 {z} 20.202 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 894.803 {y} -1663.0031 {z} 20.0891 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1668
remove_blip $1636
$1636 = add_short_range_sprite_blip_for_contact_point $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {sprite} RadarSprite.SaveGame
change_blip_display $1636 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[15] {y} $propertyY[15] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2315
set_fixed_camera_position 2036.76 {y} 1623.074 {z} 13.4128 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2035.8 {y} 1623.087 {z} 13.6921 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1669
remove_blip $1637
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.SaveGame
change_blip_display $1637 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[16] {y} $propertyY[16] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2437
set_fixed_camera_position 2146.165 {y} 1286.25 {z} 33.6386 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2147.1641 {y} 1286.218 {z} 33.5943 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1670
remove_blip $1638
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.SaveGame
change_blip_display $1638 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[17] {y} $propertyY[17] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2559
set_fixed_camera_position -2213.188 {y} 744.9976 {z} 50.024 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2213.2729 {y} 744.0281 {z} 50.254 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1671
remove_blip $1639
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.SaveGame
change_blip_display $1639 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[18] {y} $propertyY[18] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2674
set_fixed_camera_position -1437.184 {y} -1507.7321 {z} 103.8198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1437.047 {y} -1508.7111 {z} 103.9666 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1672
remove_blip $1640
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.SaveGame
change_blip_display $1640 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[19] {y} $propertyY[19] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2789
set_fixed_camera_position -2000.427 {y} -64.4142 {z} 40.0479 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2001.257 {y} -63.8685 {z} 40.1625 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1673
remove_blip $1641
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.SaveGame
change_blip_display $1641 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[20] {y} $propertyY[20] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2904
set_fixed_camera_position -2379.854 {y} 312.8534 {z} 34.2136 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2380.6831 {y} 313.311 {z} 34.5349 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1674
remove_blip $1642
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.SaveGame
change_blip_display $1642 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[21] {y} $propertyY[21] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3026
set_fixed_camera_position -2079.061 {y} -2298.0559 {z} 35.15 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2078.8799 {y} -2299.0291 {z} 35.0066 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1675
remove_blip $1643
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.SaveGame
change_blip_display $1643 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[22] {y} $propertyY[22] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3141
set_fixed_camera_position -1545.093 {y} 2663.0559 {z} 61.0133 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1544.282 {y} 2662.509 {z} 60.8075 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1676
remove_blip $1644
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.SaveGame
change_blip_display $1644 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[23] {y} $propertyY[23] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3256
set_fixed_camera_position -1035.191 {y} 1568.4561 {z} 39.7221 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1035.9709 {y} 1567.886 {z} 39.4659 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1677
remove_blip $1645
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.SaveGame
change_blip_display $1645 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[24] {y} $propertyY[24] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3371
set_fixed_camera_position 789.7151 {y} -529.9901 {z} 20.74 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 789.8545 {y} -529.0045 {z} 20.6445 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1678
remove_blip $1646
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.SaveGame
change_blip_display $1646 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[25] {y} $propertyY[25] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BURBDO2'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3497
set_fixed_camera_position 2114.3789 {y} -1299.7419 {z} 32.8721 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2114.3049 {y} -1298.833 {z} 32.4622 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1679
remove_blip $1647
$1647 = add_short_range_sprite_blip_for_contact_point $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {sprite} RadarSprite.SaveGame
change_blip_display $1647 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[26] {y} $propertyY[26] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3612
set_fixed_camera_position 2342.4961 {y} 2140.6621 {z} 11.3215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2343.2429 {y} 2141.272 {z} 11.5827 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1680
remove_blip $1648
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.SaveGame
change_blip_display $1648 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[27] {y} $propertyY[27] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3734
set_fixed_camera_position 2119.739 {y} 1767.835 {z} 26.2058 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2120.53 {y} 1768.447 {z} 26.1978 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1681
remove_blip $1649
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.SaveGame
change_blip_display $1649 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[28] {y} $propertyY[28] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3856
set_fixed_camera_position 2820.3611 {y} 2174.8301 {z} 19.0746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.384 {y} 2173.834 {z} 18.9889 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1682
remove_blip $1650
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.SaveGame
change_blip_display $1650 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[29] {y} $propertyY[29] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3971
set_fixed_camera_position 2484.9709 {y} -2013.007 {z} 17.5718 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2484.96 {y} -2012.031 {z} 17.3533 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1683
remove_blip $1651
$1651 = add_short_range_sprite_blip_for_contact_point $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {sprite} RadarSprite.SaveGame
change_blip_display $1651 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[30] {y} $propertyY[30] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_4086
set_fixed_camera_position 189.8908 {y} -107.1989 {z} 5.7226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 190.8559 {y} -107.2361 {z} 5.4634 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1684
remove_blip $1652
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.SaveGame
change_blip_display $1652 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[31] {y} $propertyY[31] {radius} 5.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_4201
if 
  34@ == 0
goto_if_false @BUYPRO1_4242
print_big 'BUYPRO' {time} 5000 {style} TextStyle.BottomRight
goto @BUYPRO1_4258

:BUYPRO1_4242
print_big 'HSUITE' {time} 5000 {style} TextStyle.BottomRight

:BUYPRO1_4258
play_mission_passed_tune 2
wait 5000
if 
  not is_player_playing $player1
goto_if_false @BUYPRO1_4285
terminate_this_script 

:BUYPRO1_4285
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
terminate_this_script 
return 

//-------------Mission 135---------------
// Originally: 2player Ram

:RAM_2P
script_name 'RAM_2P'
gosub @RAM_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @RAM_2P_38
gosub @RAM_2P_1487

:RAM_2P_38
gosub @RAM_2P_1783
terminate_this_script 

:RAM_2P_47
hide_all_frontend_blips True
clear_prints 
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
283@ = 0
286@ = 0
287@ = 0
294@ = 0
288@ = 0

:RAM_2P_108
289@(288@,5i) = 0
288@ += 1
  288@ >= 5
goto_if_false @RAM_2P_108
$onmission = 1
register_mission_given 
load_mission_text 'MENU2P'
goto @RAM_2P_167

:RAM_2P_167
gosub @RAM_2P_1938
wait 0
request_model 352
request_model 353
request_model 346
request_model 63

:RAM_2P_197
if or
  not has_model_loaded 352
  not has_model_loaded 353
  not has_model_loaded 346
  not has_model_loaded 63
goto_if_false @RAM_2P_238
wait 0
goto @RAM_2P_197

:RAM_2P_238
TIMERA = 0
set_ped_density_multiplier 2.0
clear_area 1478.868 {y} -1655.853 {z} 13.0469 {radius} 40.0 {clearParticles} True
$player2 = create_player 1 {x} 1478.868 {y} -1655.853 {z} 13.0469
$p2 = get_player_char $player2
set_player_model $player2 {modelId} 63
set_char_heading $p2 {heading} 237.1571
if 
  not is_char_dead $scplayer
goto_if_false @RAM_2P_425
set_char_coordinates $scplayer {x} 1478.973 {y} -1657.854 {z} 13.0469
set_char_heading $scplayer {heading} 237.1571
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
set_players_can_be_in_separate_cars False
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RAM_2P_425
switch_start $ram_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @RAM_2P_895 {caseNum1} 0 {caseLabel1} @RAM_2P_553 {caseNum2} 1 {caseLabel2} @RAM_2P_591 {caseNum3} 2 {caseLabel3} @RAM_2P_629 {caseNum4} 3 {caseLabel4} @RAM_2P_667 {caseNum5} 4 {caseLabel5} @RAM_2P_705 {caseNum6} 5 {caseLabel6} @RAM_2P_743 {caseNum7} 6 {caseLabel7} @RAM_2P_781
switch_continued 7 {caseLabel1} @RAM_2P_819 {caseNum2} 8 {caseLabel2} @RAM_2P_857 {caseNum3} -1 {caseLabel3} @RAM_2P_895 {caseNum4} -1 {caseLabel4} @RAM_2P_895 {caseNum5} -1 {caseLabel5} @RAM_2P_895 {caseNum6} -1 {caseLabel6} @RAM_2P_895 {caseNum7} -1 {caseLabel7} @RAM_2P_895 {caseNum8} -1 {caseLabel8} @RAM_2P_895 {caseNum9} -1 {caseLabel9} @RAM_2P_895

:RAM_2P_553
267@ = 15
268@ = 3
266@ = 180000
358@ = 0
goto @RAM_2P_895

:RAM_2P_591
267@ = 15
268@ = 2
266@ = 120000
358@ = 0
goto @RAM_2P_895

:RAM_2P_629
267@ = 15
268@ = 1
266@ = 90000
358@ = 0
goto @RAM_2P_895

:RAM_2P_667
267@ = 18
268@ = 3
266@ = 180000
358@ = 1
goto @RAM_2P_895

:RAM_2P_705
267@ = 18
268@ = 2
266@ = 120000
358@ = 1
goto @RAM_2P_895

:RAM_2P_743
267@ = 18
268@ = 1
266@ = 90000
358@ = 1
goto @RAM_2P_895

:RAM_2P_781
267@ = 20
268@ = 3
266@ = 180000
358@ = 2
goto @RAM_2P_895

:RAM_2P_819
267@ = 20
268@ = 2
266@ = 120000
358@ = 2
goto @RAM_2P_895

:RAM_2P_857
267@ = 20
268@ = 1
266@ = 90000
358@ = 2
goto @RAM_2P_895

:RAM_2P_895
gosub @RAM_2P_1850
make_player_gang_disappear 
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RAM_2P_939
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RAM_2P_939
set_fixed_camera_position 1484.073 {y} -1659.599 {z} 15.6832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1483.27 {y} -1659.0811 {z} 15.3862 {switchStyle} SwitchType.JumpCut
gosub @RAM_2P_1979
if 
  268@ == 1
goto_if_false @RAM_2P_1046
print_with_3_numbers 'MENU_65' {num1} 267@ {num2} 268@ {num3} 30 {duration} 5000 {style} TextStyle.Middle
goto @RAM_2P_1068

:RAM_2P_1046
print_with_2_numbers_now 'MENU_36' {num1} 267@ {num2} 268@ {duration} 5000 {style} TextStyle.Middle

:RAM_2P_1068
wait 5000
gosub @RAM_2P_1891
set_lvar_int_to_var_int 360@ = $ram_2p_level
360@ += 1
clear_prints 
switch_start 358@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RAM_2P_1268 {caseNum1} 0 {caseLabel1} @RAM_2P_1160 {caseNum2} 1 {caseLabel2} @RAM_2P_1196 {caseNum3} 2 {caseLabel3} @RAM_2P_1232 {caseNum4} -1 {caseLabel4} @RAM_2P_1268 {caseNum5} -1 {caseLabel5} @RAM_2P_1268 {caseNum6} -1 {caseLabel6} @RAM_2P_1268 {caseNum7} -1 {caseLabel7} @RAM_2P_1268

:RAM_2P_1160
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Mp5 {timeInMs} 266@ {targetsNum} 267@ {targetModel1} #INFO {targetModel2} #INFO {targetModel3} #INFO {targetModel4} #INFO {betaSoundsAndMessages} False
goto @RAM_2P_1268

:RAM_2P_1196
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.MicroUzi {timeInMs} 266@ {targetsNum} 267@ {targetModel1} #INFO {targetModel2} #INFO {targetModel3} #INFO {targetModel4} #INFO {betaSoundsAndMessages} False
goto @RAM_2P_1268

:RAM_2P_1232
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Pistol {timeInMs} 266@ {targetsNum} 267@ {targetModel1} #INFO {targetModel2} #INFO {targetModel3} #INFO {targetModel4} #INFO {betaSoundsAndMessages} False
goto @RAM_2P_1268

:RAM_2P_1268
TIMERB = 0

:RAM_2P_1275
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RAM_2P_1480
wait 0
gosub @RAM_2P_2020
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RAM_2P_1351
if or
  has_char_been_arrested $scplayer
  has_char_been_arrested $p2
goto_if_false @RAM_2P_1351
fail_kill_frenzy 

:RAM_2P_1351
283@ = read_kill_frenzy_status 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RAM_2P_1386
sub_int_lvar_from_int_lvar 266@ -= TIMERB
set_lvar_int_to_constant 283@ = 2

:RAM_2P_1386
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @RAM_2P_1408
set_lvar_int_to_constant 283@ = 3

:RAM_2P_1408
if 
  is_int_lvar_equal_to_constant 283@ == 2
goto_if_false @RAM_2P_1441
sub_int_lvar_from_int_lvar 266@ -= TIMERB
goto @RAM_2P_1647

:RAM_2P_1441
if 
  is_int_lvar_equal_to_constant 283@ == 3
goto_if_false @RAM_2P_1473
359@ = 1
goto @RAM_2P_1487

:RAM_2P_1473
goto @RAM_2P_1275

:RAM_2P_1480
goto @RAM_2P_1487

:RAM_2P_1487
if 
  359@ == 0
goto_if_false @RAM_2P_1613
if 
  is_char_dead $scplayer
goto_if_false @RAM_2P_1537
print_now 'MENU_47' {time} 4000 {flag} 1

:RAM_2P_1537
if 
  is_char_dead $p2
goto_if_false @RAM_2P_1569
print_now 'MENU_48' {time} 4000 {flag} 1

:RAM_2P_1569
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RAM_2P_1606
print_now 'MENU_49' {time} 4000 {flag} 1

:RAM_2P_1606
goto @RAM_2P_1629

:RAM_2P_1613
print_now 'MENU_50' {time} 4000 {flag} 1

:RAM_2P_1629
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RAM_2P_1647
266@ /= 1000
361@ = get_int_stat StatId.P2RampageBestTime
if 
  is_int_lvar_greater_than_int_lvar 266@ > 361@
goto_if_false @RAM_2P_1690
set_int_stat StatId.P2RampageBestTime {value} 266@

:RAM_2P_1690
if 
  $ram_2p_level == 8
goto_if_false @RAM_2P_1733
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
goto @RAM_2P_1751

:RAM_2P_1733
print_with_number_big 'MENU_67' {num} 0 {duration} 5000 {style} TextStyle.Middle

:RAM_2P_1751
clear_wanted_level $player1
if 
  $ram_2p_level <> 8
goto_if_false @RAM_2P_1781
$ram_2p_level += 1

:RAM_2P_1781
return 

:RAM_2P_1783
hide_all_frontend_blips False
359@ = 0
make_player_gang_reappear 
clear_wanted_level $player1
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 63
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:RAM_2P_1850
switch_widescreen True
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RAM_2P_1889
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RAM_2P_1889
return 

:RAM_2P_1891
switch_widescreen False
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RAM_2P_1930
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RAM_2P_1930
restore_camera_jumpcut 
set_two_player_camera_mode 2
return 

:RAM_2P_1938
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RAM_2P_1953
if 
  get_fading_status 
goto_if_false @RAM_2P_1977
wait 0
goto @RAM_2P_1953

:RAM_2P_1977
return 

:RAM_2P_1979
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RAM_2P_1994
if 
  get_fading_status 
goto_if_false @RAM_2P_2018
wait 0
goto @RAM_2P_1994

:RAM_2P_2018
return 

:RAM_2P_2020
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RAM_2P_2056
if 
  not is_char_dead $p2
goto_if_false @RAM_2P_2056
task_die $p2

:RAM_2P_2056
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @RAM_2P_2092
if 
  not is_char_dead $scplayer
goto_if_false @RAM_2P_2092
task_die $scplayer

:RAM_2P_2092
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RAM_2P_2126
view_integer_variable $ram_2p_level {_p2} "RAM_2P_LEVEL"

:RAM_2P_2126
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RAM_2P_2141

:RAM_2P_2141
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RAM_2P_2156

:RAM_2P_2156
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RAM_2P_2171

:RAM_2P_2171
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RAM_2P_2186

:RAM_2P_2186
return 

//-------------Mission 136---------------
// Originally: 2player bike

:BIKE_2P
script_name 'BIKE_2P'
gosub @BIKE_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @BIKE_2P_38
gosub @BIKE_2P_1549

:BIKE_2P_38
gosub @BIKE_2P_1868
terminate_this_script 

:BIKE_2P_47
hide_all_frontend_blips True
clear_prints 
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
283@ = 0
284@ = 0
285@ = 0
292@ = 0
286@ = 0

:BIKE_2P_108
287@(286@,5i) = 0
286@ += 1
  286@ >= 5
goto_if_false @BIKE_2P_108
$onmission = 1
register_mission_given 
load_mission_text 'MENU2P'
gosub @BIKE_2P_2092
wait 0
request_model 353
request_model 63
request_model 521
request_model 522
request_model 461

:BIKE_2P_195
if or
  not has_model_loaded 353
  not has_model_loaded 63
  not has_model_loaded 521
  not has_model_loaded 522
  not has_model_loaded 461
goto_if_false @BIKE_2P_241
wait 0
goto @BIKE_2P_195

:BIKE_2P_241
TIMERA = 0
suppress_car_model 448
suppress_car_model 462
suppress_car_model 463
suppress_car_model 509
suppress_car_model 510
suppress_car_model 523
suppress_car_model 581
suppress_car_model 586
suppress_car_model 523
suppress_car_model 581
suppress_car_model 586
set_force_random_car_model 521
display_radar False
set_ped_density_multiplier 0.0
clear_area 1196.491 {y} 249.321 {z} 18.5618 {radius} 60.0 {clearParticles} True
switch_start $bike_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @BIKE_2P_957 {caseNum1} 0 {caseLabel1} @BIKE_2P_471 {caseNum2} 1 {caseLabel2} @BIKE_2P_525 {caseNum3} 2 {caseLabel3} @BIKE_2P_579 {caseNum4} 3 {caseLabel4} @BIKE_2P_633 {caseNum5} 4 {caseLabel5} @BIKE_2P_687 {caseNum6} 5 {caseLabel6} @BIKE_2P_741 {caseNum7} 6 {caseLabel7} @BIKE_2P_795
switch_continued 7 {caseLabel1} @BIKE_2P_849 {caseNum2} 8 {caseLabel2} @BIKE_2P_903 {caseNum3} -1 {caseLabel3} @BIKE_2P_957 {caseNum4} -1 {caseLabel4} @BIKE_2P_957 {caseNum5} -1 {caseLabel5} @BIKE_2P_957 {caseNum6} -1 {caseLabel6} @BIKE_2P_957 {caseNum7} -1 {caseLabel7} @BIKE_2P_957 {caseNum8} -1 {caseLabel8} @BIKE_2P_957 {caseNum9} -1 {caseLabel9} @BIKE_2P_957

:BIKE_2P_471
266@ = 5
267@ = 3
265@ = 180000
284@ = create_car 521 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_525
266@ = 5
267@ = 2
265@ = 120000
284@ = create_car 521 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_579
266@ = 5
267@ = 1
265@ = 60000
284@ = create_car 521 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_633
266@ = 8
267@ = 3
265@ = 180000
284@ = create_car 522 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_687
266@ = 8
267@ = 2
265@ = 120000
284@ = create_car 522 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_741
266@ = 8
267@ = 1
265@ = 60000
284@ = create_car 522 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_795
266@ = 10
267@ = 3
265@ = 180000
284@ = create_car 461 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_849
266@ = 10
267@ = 2
265@ = 120000
284@ = create_car 461 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_903
266@ = 10
267@ = 1
265@ = 60000
284@ = create_car 461 {x} 1196.491 {y} 249.321 {z} 18.5618
goto @BIKE_2P_957

:BIKE_2P_957
set_car_heading 284@ {heading} 337.2467
lock_car_doors 284@ {lockStatus} CarLock.LockedPlayerInside
$player2 = create_player 1 {x} 1196.491 {y} 249.321 {z} 18.5618
set_player_model $player2 {modelId} 63
$p2 = get_player_char $player2
if 
  not is_char_dead $scplayer
goto_if_false @BIKE_2P_1131
set_char_coordinates $scplayer {x} 1196.491 {y} 249.321 {z} 18.5618
warp_char_into_car $scplayer {vehicle} 284@
warp_char_into_car_as_passenger $p2 {handle} 284@ {seat} SeatId.BikeRear
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
disable_char_speech $p2 {stopNow} True
limit_two_player_distance 20.0
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} True
set_char_can_be_knocked_off_bike $p2 {stayOnBike} True

:BIKE_2P_1131
gosub @BIKE_2P_2006
make_player_gang_disappear 
set_fixed_camera_position 1192.166 {y} 245.3466 {z} 20.4391 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1192.838 {y} 246.0682 {z} 20.2713 {switchStyle} SwitchType.JumpCut
gosub @BIKE_2P_2133
if 
  267@ <> 1
goto_if_false @BIKE_2P_1245
print_with_2_numbers_now 'MENU_38' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle
goto @BIKE_2P_1267

:BIKE_2P_1245
print_with_2_numbers_now 'MENU_61' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle

:BIKE_2P_1267
wait 5000
gosub @BIKE_2P_2047
set_lvar_int_to_var_int 354@ = $bike_2p_level
354@ += 1
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Mp5 {timeInMs} 265@ {targetsNum} 266@ {targetModel1} 521 {targetModel2} 522 {targetModel3} 461 {targetModel4} 468 {betaSoundsAndMessages} False
set_car_density_multiplier 2.0
TIMERB = 0

:BIKE_2P_1341
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @BIKE_2P_1542
wait 0
gosub @BIKE_2P_2174
if 
  is_car_in_water 284@
goto_if_false @BIKE_2P_1391
fail_kill_frenzy 

:BIKE_2P_1391
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @BIKE_2P_1413
goto @BIKE_2P_1709

:BIKE_2P_1413
283@ = read_kill_frenzy_status 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BIKE_2P_1448
sub_int_lvar_from_int_lvar 265@ -= TIMERB
set_lvar_int_to_constant 283@ = 2

:BIKE_2P_1448
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @BIKE_2P_1470
set_lvar_int_to_constant 283@ = 3

:BIKE_2P_1470
if 
  is_int_lvar_equal_to_constant 283@ == 2
goto_if_false @BIKE_2P_1503
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @BIKE_2P_1709

:BIKE_2P_1503
if 
  is_int_lvar_equal_to_constant 283@ == 3
goto_if_false @BIKE_2P_1535
327@ = 1
goto @BIKE_2P_1549

:BIKE_2P_1535
goto @BIKE_2P_1341

:BIKE_2P_1542
goto @BIKE_2P_1549

:BIKE_2P_1549
if 
  327@ == 0
goto_if_false @BIKE_2P_1675
if 
  is_char_dead $scplayer
goto_if_false @BIKE_2P_1599
print_now 'MENU_47' {time} 4000 {flag} 1

:BIKE_2P_1599
if 
  is_char_dead $p2
goto_if_false @BIKE_2P_1631
print_now 'MENU_48' {time} 4000 {flag} 1

:BIKE_2P_1631
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @BIKE_2P_1668
print_now 'MENU_49' {time} 4000 {flag} 1

:BIKE_2P_1668
goto @BIKE_2P_1691

:BIKE_2P_1675
print_now 'MENU_50' {time} 4000 {flag} 1

:BIKE_2P_1691
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:BIKE_2P_1709
265@ /= 1000
355@ = get_int_stat StatId.P2BikeRampageBestTime
if 
  is_int_lvar_greater_than_int_lvar 265@ > 355@
goto_if_false @BIKE_2P_1752
set_int_stat StatId.P2BikeRampageBestTime {value} 265@

:BIKE_2P_1752
if 
  $bike_2p_level == 8
goto_if_false @BIKE_2P_1795
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
goto @BIKE_2P_1813

:BIKE_2P_1795
print_with_number_big 'MENU_67' {num} 0 {duration} 5000 {style} TextStyle.Middle

:BIKE_2P_1813
if 
  $bike_2p_level <> 8
goto_if_false @BIKE_2P_1838
$bike_2p_level += 1

:BIKE_2P_1838
clear_wanted_level $player1
if 
  not is_car_dead 284@
goto_if_false @BIKE_2P_1866
lock_car_doors 284@ {lockStatus} CarLock.Unlocked

:BIKE_2P_1866
return 

:BIKE_2P_1868
hide_all_frontend_blips False
327@ = 0
make_player_gang_reappear 
clear_wanted_level $player1
set_wanted_multiplier 1.0
if 
  not is_car_dead 284@
goto_if_false @BIKE_2P_1916
lock_car_doors 284@ {lockStatus} CarLock.Unlocked

:BIKE_2P_1916
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 522
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 63
dont_suppress_car_model 448
dont_suppress_car_model 462
dont_suppress_car_model 463
dont_suppress_car_model 509
dont_suppress_car_model 510
dont_suppress_car_model 523
dont_suppress_car_model 581
dont_suppress_car_model 586
dont_suppress_car_model 523
dont_suppress_car_model 581
dont_suppress_car_model 586
$onmission = 0
mission_has_finished 
return 

:BIKE_2P_2006
switch_widescreen True
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @BIKE_2P_2045
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:BIKE_2P_2045
return 

:BIKE_2P_2047
set_camera_behind_player 
switch_widescreen False
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @BIKE_2P_2088
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:BIKE_2P_2088
restore_camera_jumpcut 
return 

:BIKE_2P_2092
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:BIKE_2P_2107
if 
  get_fading_status 
goto_if_false @BIKE_2P_2131
wait 0
goto @BIKE_2P_2107

:BIKE_2P_2131
return 

:BIKE_2P_2133
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:BIKE_2P_2148
if 
  get_fading_status 
goto_if_false @BIKE_2P_2172
wait 0
goto @BIKE_2P_2148

:BIKE_2P_2172
return 

:BIKE_2P_2174
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @BIKE_2P_2189

:BIKE_2P_2189
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @BIKE_2P_2211
goto @BIKE_2P_1709

:BIKE_2P_2211
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @BIKE_2P_2226

:BIKE_2P_2226
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @BIKE_2P_2262
if 
  not is_char_dead $p2
goto_if_false @BIKE_2P_2262
task_die $p2

:BIKE_2P_2262
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @BIKE_2P_2279
fail_kill_frenzy 

:BIKE_2P_2279
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @BIKE_2P_2315
if 
  not is_char_dead $scplayer
goto_if_false @BIKE_2P_2315
task_die $scplayer

:BIKE_2P_2315
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @BIKE_2P_2360
if 
  not is_char_dead $scplayer
goto_if_false @BIKE_2P_2360
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:BIKE_2P_2360
return 

//-------------Mission 137---------------
// Originally: 2player cars

:CARS_2P
script_name 'CARS_2P'
gosub @CARS_2P_45
if 
  has_deatharrest_been_executed 
goto_if_false @CARS_2P_38
gosub @CARS_2P_1736

:CARS_2P_38
goto @CARS_2P_2055

:CARS_2P_45
hide_all_frontend_blips True
clear_prints 
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
282@ = 0
283@ = 0
284@ = 0
291@ = 0
285@ = 0

:CARS_2P_106
286@(285@,5i) = 0
285@ += 1
  285@ >= 5
goto_if_false @CARS_2P_106
$onmission = 1
register_mission_given 
load_mission_text 'MENU2P'
wait 0
request_model 353
request_model 63

:CARS_2P_171
if 
  not has_model_loaded 63
goto_if_false @CARS_2P_197
wait 0
goto @CARS_2P_171

:CARS_2P_197
TIMERA = 0
set_car_density_multiplier 2.0
set_ped_density_multiplier 0.0
clear_area -2102.8479 {y} 653.8868 {z} 51.3671 {radius} 40.0 {clearParticles} True
switch_start $cars_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CARS_2P_1144 {caseNum1} 0 {caseLabel1} @CARS_2P_370 {caseNum2} 1 {caseLabel2} @CARS_2P_456 {caseNum3} 2 {caseLabel3} @CARS_2P_542 {caseNum4} 3 {caseLabel4} @CARS_2P_628 {caseNum5} 4 {caseLabel5} @CARS_2P_714 {caseNum6} 5 {caseLabel6} @CARS_2P_800 {caseNum7} 6 {caseLabel7} @CARS_2P_886
switch_continued 7 {caseLabel1} @CARS_2P_972 {caseNum2} 8 {caseLabel2} @CARS_2P_1058 {caseNum3} -1 {caseLabel3} @CARS_2P_1144 {caseNum4} -1 {caseLabel4} @CARS_2P_1144 {caseNum5} -1 {caseLabel5} @CARS_2P_1144 {caseNum6} -1 {caseLabel6} @CARS_2P_1144 {caseNum7} -1 {caseLabel7} @CARS_2P_1144 {caseNum8} -1 {caseLabel8} @CARS_2P_1144 {caseNum9} -1 {caseLabel9} @CARS_2P_1144

:CARS_2P_370
request_model 405

:CARS_2P_375
if 
  not has_model_loaded 405
goto_if_false @CARS_2P_402
wait 0
goto @CARS_2P_375

:CARS_2P_402
266@ = 5
267@ = 3
265@ = 180000
283@ = create_car 405 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_456
request_model 405

:CARS_2P_461
if 
  not has_model_loaded 405
goto_if_false @CARS_2P_488
wait 0
goto @CARS_2P_461

:CARS_2P_488
266@ = 5
267@ = 2
265@ = 120000
283@ = create_car 405 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_542
request_model 405

:CARS_2P_547
if 
  not has_model_loaded 405
goto_if_false @CARS_2P_574
wait 0
goto @CARS_2P_547

:CARS_2P_574
266@ = 5
267@ = 1
265@ = 60000
283@ = create_car 405 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_628
request_model 420

:CARS_2P_633
if 
  not has_model_loaded 420
goto_if_false @CARS_2P_660
wait 0
goto @CARS_2P_633

:CARS_2P_660
266@ = 8
267@ = 3
265@ = 180000
283@ = create_car 420 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_714
request_model 420

:CARS_2P_719
if 
  not has_model_loaded 420
goto_if_false @CARS_2P_746
wait 0
goto @CARS_2P_719

:CARS_2P_746
266@ = 8
267@ = 2
265@ = 120000
283@ = create_car 420 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_800
request_model 420

:CARS_2P_805
if 
  not has_model_loaded 420
goto_if_false @CARS_2P_832
wait 0
goto @CARS_2P_805

:CARS_2P_832
266@ = 8
267@ = 1
265@ = 60000
283@ = create_car 420 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_886
request_model 502

:CARS_2P_891
if 
  not has_model_loaded 502
goto_if_false @CARS_2P_918
wait 0
goto @CARS_2P_891

:CARS_2P_918
266@ = 10
267@ = 3
265@ = 180000
283@ = create_car 502 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_972
request_model 502

:CARS_2P_977
if 
  not has_model_loaded 502
goto_if_false @CARS_2P_1004
wait 0
goto @CARS_2P_977

:CARS_2P_1004
266@ = 10
267@ = 2
265@ = 120000
283@ = create_car 502 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_1058
request_model 502

:CARS_2P_1063
if 
  not has_model_loaded 502
goto_if_false @CARS_2P_1090
wait 0
goto @CARS_2P_1063

:CARS_2P_1090
266@ = 10
267@ = 1
265@ = 60000
283@ = create_car 502 {x} -2103.0 {y} 654.4047 {z} 51.3703
goto @CARS_2P_1144

:CARS_2P_1144
set_car_heading 283@ {heading} 269.5643
lock_car_doors 283@ {lockStatus} CarLock.LockedPlayerInside
$player2 = create_player 1 {x} -2104.5559 {y} 654.4047 {z} 51.3703
set_player_model $player2 {modelId} 63
$p2 = get_player_char $player2
if 
  not is_char_dead $scplayer
goto_if_false @CARS_2P_1304
set_char_coordinates $scplayer {x} -2104.5559 {y} 654.4047 {z} 51.3703
warp_char_into_car $scplayer {vehicle} 283@
warp_char_into_car_as_passenger $p2 {handle} 283@ {seat} SeatId.BikeRear
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:CARS_2P_1304
gosub @CARS_2P_2143
make_player_gang_disappear 
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @CARS_2P_1348
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:CARS_2P_1348
set_fixed_camera_position -2105.843 {y} 651.8388 {z} 52.536 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2105.124 {y} 652.5283 {z} 52.4463 {switchStyle} SwitchType.JumpCut
gosub @CARS_2P_2270
if 
  267@ <> 1
goto_if_false @CARS_2P_1453
print_with_2_numbers_now 'MENU_64' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle
goto @CARS_2P_1475

:CARS_2P_1453
print_with_2_numbers_now 'MENU_63' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle

:CARS_2P_1475
wait 5000
gosub @CARS_2P_2184
set_lvar_int_to_var_int 353@ = $cars_2p_level
353@ += 1
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Mp5 {timeInMs} 265@ {targetsNum} 266@ {targetModel1} #KEYCARD {targetModel2} #KEYCARD {targetModel3} #KEYCARD {targetModel4} #KEYCARD {betaSoundsAndMessages} False
set_car_density_multiplier 2.0
TIMERB = 0

:CARS_2P_1545
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
  not is_car_dead 283@
goto_if_false @CARS_2P_1729
wait 0
gosub @CARS_2P_2311
if 
  is_car_in_water 283@
goto_if_false @CARS_2P_1600
fail_kill_frenzy 

:CARS_2P_1600
282@ = read_kill_frenzy_status 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CARS_2P_1635
sub_int_lvar_from_int_lvar 265@ -= TIMERB
set_lvar_int_to_constant 282@ = 2

:CARS_2P_1635
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @CARS_2P_1657
set_lvar_int_to_constant 282@ = 3

:CARS_2P_1657
if 
  is_int_lvar_equal_to_constant 282@ == 2
goto_if_false @CARS_2P_1690
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @CARS_2P_1896

:CARS_2P_1690
if 
  is_int_lvar_equal_to_constant 282@ == 3
goto_if_false @CARS_2P_1722
352@ = 1
goto @CARS_2P_1736

:CARS_2P_1722
goto @CARS_2P_1545

:CARS_2P_1729
goto @CARS_2P_1736

:CARS_2P_1736
if 
  352@ == 0
goto_if_false @CARS_2P_1862
if 
  is_char_dead $scplayer
goto_if_false @CARS_2P_1786
print_now 'MENU_47' {time} 4000 {flag} 1

:CARS_2P_1786
if 
  is_char_dead $p2
goto_if_false @CARS_2P_1818
print_now 'MENU_48' {time} 4000 {flag} 1

:CARS_2P_1818
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @CARS_2P_1855
print_now 'MENU_49' {time} 4000 {flag} 1

:CARS_2P_1855
goto @CARS_2P_1878

:CARS_2P_1862
print_now 'MENU_50' {time} 4000 {flag} 1

:CARS_2P_1878
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CARS_2P_1896
265@ /= 1000
354@ = get_int_stat StatId.P2CarsRampageBestTime
if 
  is_int_lvar_greater_than_int_lvar 265@ > 354@
goto_if_false @CARS_2P_1939
set_int_stat StatId.P2CarsRampageBestTime {value} 265@

:CARS_2P_1939
if 
  $cars_2p_level == 8
goto_if_false @CARS_2P_1982
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
goto @CARS_2P_2000

:CARS_2P_1982
print_with_number_big 'MENU_67' {num} 0 {duration} 5000 {style} TextStyle.Middle

:CARS_2P_2000
clear_wanted_level $player1
if 
  not is_car_dead 283@
goto_if_false @CARS_2P_2028
lock_car_doors 283@ {lockStatus} CarLock.Unlocked

:CARS_2P_2028
if 
  $cars_2p_level <> 8
goto_if_false @CARS_2P_2053
$cars_2p_level += 1

:CARS_2P_2053
return 

:CARS_2P_2055
hide_all_frontend_blips False
352@ = 0
make_player_gang_reappear 
clear_wanted_level $player1
set_wanted_multiplier 1.0
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 502
mark_model_as_no_longer_needed 63
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
if 
  not is_car_dead 283@
goto_if_false @CARS_2P_2141
lock_car_doors 283@ {lockStatus} CarLock.Unlocked

:CARS_2P_2141
terminate_this_script 

:CARS_2P_2143
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @CARS_2P_2182
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:CARS_2P_2182
return 

:CARS_2P_2184
set_camera_behind_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @CARS_2P_2225
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:CARS_2P_2225
restore_camera_jumpcut 
return 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:CARS_2P_2244
if 
  get_fading_status 
goto_if_false @CARS_2P_2268
wait 0
goto @CARS_2P_2244

:CARS_2P_2268
return 

:CARS_2P_2270
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:CARS_2P_2285
if 
  get_fading_status 
goto_if_false @CARS_2P_2309
wait 0
goto @CARS_2P_2285

:CARS_2P_2309
return 

:CARS_2P_2311
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @CARS_2P_2349
if 
  not is_car_dead 283@
goto_if_false @CARS_2P_2349
lock_car_doors 283@ {lockStatus} CarLock.Unlocked

:CARS_2P_2349
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CARS_2P_2364

:CARS_2P_2364
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @CARS_2P_2386
goto @CARS_2P_1896

:CARS_2P_2386
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CARS_2P_2422
if 
  not is_char_dead $p2
goto_if_false @CARS_2P_2422
task_die $p2

:CARS_2P_2422
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @CARS_2P_2437

:CARS_2P_2437
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @CARS_2P_2473
if 
  not is_char_dead $scplayer
goto_if_false @CARS_2P_2473
task_die $scplayer

:CARS_2P_2473
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @CARS_2P_2518
if 
  not is_char_dead $scplayer
goto_if_false @CARS_2P_2518
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:CARS_2P_2518
return 

//-------------Mission 138---------------
// Originally: 2player heli

:HELI_2P
script_name 'HELI_2P'
gosub @HELI_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @HELI_2P_38
gosub @HELI_2P_1442

:HELI_2P_38
gosub @HELI_2P_1761
terminate_this_script 

:HELI_2P_47
hide_all_frontend_blips True
clear_prints 
clear_wanted_level $player1
set_wanted_multiplier 0.0
load_mission_text 'MENU2P'
set_fading_colour 0 {g} 0 {b} 0
gosub @HELI_2P_1940
34@ = 0
35@ = 0
$onmission = 1
register_mission_given 
wait 0
request_model 353
request_model 497
request_model 447
request_model 469
request_model 63

:HELI_2P_142
if or
  not has_model_loaded 353
  not has_model_loaded 497
  not has_model_loaded 447
  not has_model_loaded 469
  not has_model_loaded 63
goto_if_false @HELI_2P_188
wait 0
goto @HELI_2P_142

:HELI_2P_188
TIMERA = 0
set_car_density_multiplier 1.0
clear_area -252.9156 {y} 2583.7791 {z} 62.5703 {radius} 40.0 {clearParticles} True
switch_start $heli_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @HELI_2P_840 {caseNum1} 0 {caseLabel1} @HELI_2P_354 {caseNum2} 1 {caseLabel2} @HELI_2P_408 {caseNum3} 2 {caseLabel3} @HELI_2P_462 {caseNum4} 3 {caseLabel4} @HELI_2P_516 {caseNum5} 4 {caseLabel5} @HELI_2P_570 {caseNum6} 5 {caseLabel6} @HELI_2P_624 {caseNum7} 6 {caseLabel7} @HELI_2P_678
switch_continued 7 {caseLabel1} @HELI_2P_732 {caseNum2} 8 {caseLabel2} @HELI_2P_786 {caseNum3} -1 {caseLabel3} @HELI_2P_840 {caseNum4} -1 {caseLabel4} @HELI_2P_840 {caseNum5} -1 {caseLabel5} @HELI_2P_840 {caseNum6} -1 {caseLabel6} @HELI_2P_840 {caseNum7} -1 {caseLabel7} @HELI_2P_840 {caseNum8} -1 {caseLabel8} @HELI_2P_840 {caseNum9} -1 {caseLabel9} @HELI_2P_840

:HELI_2P_354
278@ = 8
279@ = 3
277@ = 180000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_408
278@ = 8
279@ = 2
277@ = 120000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_462
278@ = 8
279@ = 1
277@ = 60000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_516
278@ = 10
279@ = 3
277@ = 180000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_570
278@ = 10
279@ = 2
277@ = 120000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_624
278@ = 10
279@ = 1
277@ = 60000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_678
278@ = 12
279@ = 3
277@ = 180000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_732
278@ = 12
279@ = 2
277@ = 120000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_786
278@ = 12
279@ = 1
277@ = 60000
34@ = create_car 497 {x} -252.9156 {y} 2583.7791 {z} 62.5703
goto @HELI_2P_840

:HELI_2P_840
set_car_heading 34@ {heading} 310.1937
lock_car_doors 34@ {lockStatus} CarLock.LockedPlayerInside
$player2 = create_player 1 {x} -252.9156 {y} 2583.7791 {z} 62.5703
set_player_model $player2 {modelId} 63
$p2 = get_player_char $player2
if 
  not is_char_dead $scplayer
goto_if_false @HELI_2P_1017
set_char_coordinates $scplayer {x} -252.9156 {y} 2583.7791 {z} 62.5703
warp_char_into_car $scplayer {vehicle} 34@
warp_char_into_car_as_passenger $p2 {handle} 34@ {seat} SeatId.BikeRear
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
give_weapon_to_char $p2 {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon $p2 {weaponType} WeaponType.Mp5
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:HELI_2P_1017
gosub @HELI_2P_1854
make_player_gang_disappear 
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @HELI_2P_1061
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:HELI_2P_1061
set_fixed_camera_position -252.9156 {y} 2575.8601 {z} 65.34 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -252.7241 {y} 2576.8191 {z} 65.1324 {switchStyle} SwitchType.JumpCut
gosub @HELI_2P_1981
if 
  279@ <> 1
goto_if_false @HELI_2P_1166
print_with_2_numbers_now 'MENU_64' {num1} 278@ {num2} 279@ {duration} 5000 {style} TextStyle.Middle
goto @HELI_2P_1188

:HELI_2P_1166
print_with_2_numbers_now 'MENU_63' {num1} 278@ {num2} 279@ {duration} 5000 {style} TextStyle.Middle

:HELI_2P_1188
wait 5000
gosub @HELI_2P_1895
set_lvar_int_to_var_int 345@ = $heli_2p_level
345@ += 1
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Mp5 {timeInMs} 277@ {targetsNum} 278@ {targetModel1} #KEYCARD {targetModel2} #KEYCARD {targetModel3} #KEYCARD {targetModel4} #KEYCARD {betaSoundsAndMessages} False
TIMERB = 0

:HELI_2P_1251
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
  not is_car_dead 34@
goto_if_false @HELI_2P_1435
wait 0
gosub @HELI_2P_2022
if 
  is_car_in_water 34@
goto_if_false @HELI_2P_1306
fail_kill_frenzy 

:HELI_2P_1306
35@ = read_kill_frenzy_status 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HELI_2P_1341
sub_int_lvar_from_int_lvar 277@ -= TIMERB
set_lvar_int_to_constant 35@ = 2

:HELI_2P_1341
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @HELI_2P_1363
set_lvar_int_to_constant 35@ = 3

:HELI_2P_1363
if 
  is_int_lvar_equal_to_constant 35@ == 2
goto_if_false @HELI_2P_1396
sub_int_lvar_from_int_lvar 277@ -= TIMERB
goto @HELI_2P_1602

:HELI_2P_1396
if 
  is_int_lvar_equal_to_constant 35@ == 3
goto_if_false @HELI_2P_1428
344@ = 1
goto @HELI_2P_1442

:HELI_2P_1428
goto @HELI_2P_1251

:HELI_2P_1435
goto @HELI_2P_1442

:HELI_2P_1442
if 
  344@ == 0
goto_if_false @HELI_2P_1568
if 
  is_char_dead $scplayer
goto_if_false @HELI_2P_1492
print_now 'MENU_47' {time} 4000 {flag} 1

:HELI_2P_1492
if 
  is_char_dead $p2
goto_if_false @HELI_2P_1524
print_now 'MENU_48' {time} 4000 {flag} 1

:HELI_2P_1524
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @HELI_2P_1561
print_now 'MENU_49' {time} 4000 {flag} 1

:HELI_2P_1561
goto @HELI_2P_1584

:HELI_2P_1568
print_now 'MENU_50' {time} 4000 {flag} 1

:HELI_2P_1584
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HELI_2P_1602
277@ /= 1000
346@ = get_int_stat StatId.P2HeliRampageBestTime
if 
  is_int_lvar_greater_than_int_lvar 277@ > 346@
goto_if_false @HELI_2P_1645
set_int_stat StatId.P2HeliRampageBestTime {value} 277@

:HELI_2P_1645
if 
  not is_car_dead 34@
goto_if_false @HELI_2P_1668
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:HELI_2P_1668
if 
  $heli_2p_level <> 8
goto_if_false @HELI_2P_1693
$heli_2p_level += 1

:HELI_2P_1693
if 
  $heli_2p_level == 8
goto_if_false @HELI_2P_1736
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
goto @HELI_2P_1754

:HELI_2P_1736
print_with_number_big 'MENU_67' {num} 0 {duration} 5000 {style} TextStyle.Middle

:HELI_2P_1754
clear_wanted_level $player1
return 

:HELI_2P_1761
hide_all_frontend_blips False
344@ = 0
make_player_gang_reappear 
set_wanted_multiplier 1.0
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 447
mark_model_as_no_longer_needed 469
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 488
mark_model_as_no_longer_needed 63
if 
  not is_car_dead 34@
goto_if_false @HELI_2P_1838
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:HELI_2P_1838
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:HELI_2P_1854
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @HELI_2P_1893
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:HELI_2P_1893
return 

:HELI_2P_1895
set_camera_behind_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @HELI_2P_1936
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:HELI_2P_1936
restore_camera_jumpcut 
return 

:HELI_2P_1940
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:HELI_2P_1955
if 
  get_fading_status 
goto_if_false @HELI_2P_1979
wait 0
goto @HELI_2P_1955

:HELI_2P_1979
return 

:HELI_2P_1981
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:HELI_2P_1996
if 
  get_fading_status 
goto_if_false @HELI_2P_2020
wait 0
goto @HELI_2P_1996

:HELI_2P_2020
return 

:HELI_2P_2022
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @HELI_2P_2037

:HELI_2P_2037
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @HELI_2P_2052

:HELI_2P_2052
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @HELI_2P_2074
goto @HELI_2P_1602

:HELI_2P_2074
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @HELI_2P_2110
if 
  not is_char_dead $p2
goto_if_false @HELI_2P_2110
task_die $p2

:HELI_2P_2110
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @HELI_2P_2125

:HELI_2P_2125
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @HELI_2P_2161
if 
  not is_char_dead $scplayer
goto_if_false @HELI_2P_2161
task_die $scplayer

:HELI_2P_2161
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @HELI_2P_2206
if 
  not is_char_dead $scplayer
goto_if_false @HELI_2P_2206
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:HELI_2P_2206
return 

//-------------Mission 139---------------
// Originally: 2player peds

:PEDS_2P
script_name 'PEDS_2P'
gosub @PEDS_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @PEDS_2P_38
gosub @PEDS_2P_1754

:PEDS_2P_38
gosub @PEDS_2P_2073
terminate_this_script 

:PEDS_2P_47
hide_all_frontend_blips True
clear_prints 
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
282@ = 0
283@ = 0
284@ = 0
291@ = 0
285@ = 0

:PEDS_2P_110
286@(285@,5i) = 0
285@ += 1
  285@ >= 5
goto_if_false @PEDS_2P_110
$onmission = 1
register_mission_given 
load_mission_text 'MENU2P'
gosub @PEDS_2P_2242
wait 0
request_model 353
request_model 63

:PEDS_2P_182
if or
  not has_model_loaded 353
  not has_model_loaded 63
goto_if_false @PEDS_2P_213
wait 0
goto @PEDS_2P_182

:PEDS_2P_213
TIMERA = 0
set_car_density_multiplier 0.5
clear_area 2510.6331 {y} 1207.917 {z} 9.8281 {radius} 40.0 {clearParticles} True
switch_start $peds_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @PEDS_2P_1153 {caseNum1} 0 {caseLabel1} @PEDS_2P_379 {caseNum2} 1 {caseLabel2} @PEDS_2P_465 {caseNum3} 2 {caseLabel3} @PEDS_2P_551 {caseNum4} 3 {caseLabel4} @PEDS_2P_637 {caseNum5} 4 {caseLabel5} @PEDS_2P_723 {caseNum6} 5 {caseLabel6} @PEDS_2P_809 {caseNum7} 6 {caseLabel7} @PEDS_2P_895
switch_continued 7 {caseLabel1} @PEDS_2P_981 {caseNum2} 8 {caseLabel2} @PEDS_2P_1067 {caseNum3} -1 {caseLabel3} @PEDS_2P_1153 {caseNum4} -1 {caseLabel4} @PEDS_2P_1153 {caseNum5} -1 {caseLabel5} @PEDS_2P_1153 {caseNum6} -1 {caseLabel6} @PEDS_2P_1153 {caseNum7} -1 {caseLabel7} @PEDS_2P_1153 {caseNum8} -1 {caseLabel8} @PEDS_2P_1153 {caseNum9} -1 {caseLabel9} @PEDS_2P_1153

:PEDS_2P_379
request_model 402

:PEDS_2P_384
if 
  not has_model_loaded 402
goto_if_false @PEDS_2P_411
wait 0
goto @PEDS_2P_384

:PEDS_2P_411
266@ = 15
267@ = 3
265@ = 180000
283@ = create_car 402 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_465
request_model 402

:PEDS_2P_470
if 
  not has_model_loaded 402
goto_if_false @PEDS_2P_497
wait 0
goto @PEDS_2P_470

:PEDS_2P_497
266@ = 15
267@ = 2
265@ = 120000
283@ = create_car 402 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_551
request_model 402

:PEDS_2P_556
if 
  not has_model_loaded 402
goto_if_false @PEDS_2P_583
wait 0
goto @PEDS_2P_556

:PEDS_2P_583
266@ = 15
267@ = 1
265@ = 60000
283@ = create_car 402 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_637
request_model 411

:PEDS_2P_642
if 
  not has_model_loaded 411
goto_if_false @PEDS_2P_669
wait 0
goto @PEDS_2P_642

:PEDS_2P_669
266@ = 20
267@ = 3
265@ = 180000
283@ = create_car 411 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_723
request_model 411

:PEDS_2P_728
if 
  not has_model_loaded 411
goto_if_false @PEDS_2P_755
wait 0
goto @PEDS_2P_728

:PEDS_2P_755
266@ = 20
267@ = 2
265@ = 120000
283@ = create_car 411 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_809
request_model 411

:PEDS_2P_814
if 
  not has_model_loaded 411
goto_if_false @PEDS_2P_841
wait 0
goto @PEDS_2P_814

:PEDS_2P_841
266@ = 20
267@ = 1
265@ = 60000
283@ = create_car 411 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_895
request_model 477

:PEDS_2P_900
if 
  not has_model_loaded 477
goto_if_false @PEDS_2P_927
wait 0
goto @PEDS_2P_900

:PEDS_2P_927
266@ = 25
267@ = 3
265@ = 180000
283@ = create_car 477 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_981
request_model 477

:PEDS_2P_986
if 
  not has_model_loaded 477
goto_if_false @PEDS_2P_1013
wait 0
goto @PEDS_2P_986

:PEDS_2P_1013
266@ = 25
267@ = 2
265@ = 120000
283@ = create_car 477 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_1067
request_model 477

:PEDS_2P_1072
if 
  not has_model_loaded 477
goto_if_false @PEDS_2P_1099
wait 0
goto @PEDS_2P_1072

:PEDS_2P_1099
266@ = 25
267@ = 1
265@ = 60000
283@ = create_car 477 {x} 2510.6331 {y} 1207.917 {z} 9.8281
goto @PEDS_2P_1153

:PEDS_2P_1153
set_car_heading 283@ {heading} 271.2962
lock_car_doors 283@ {lockStatus} CarLock.LockedPlayerInside
$player2 = create_player 1 {x} 2510.6331 {y} 1207.917 {z} 9.8281
set_player_model $player2 {modelId} 63
$p2 = get_player_char $player2
if 
  not is_char_dead $scplayer
goto_if_false @PEDS_2P_1330
set_char_coordinates $scplayer {x} 2510.6331 {y} 1207.917 {z} 9.8281
warp_char_into_car $scplayer {vehicle} 283@
warp_char_into_car_as_passenger $p2 {handle} 283@ {seat} SeatId.BikeRear
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
give_weapon_to_char $p2 {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon $p2 {weaponType} WeaponType.Mp5
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:PEDS_2P_1330
gosub @PEDS_2P_2156
make_player_gang_disappear 
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @PEDS_2P_1374
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:PEDS_2P_1374
set_fixed_camera_position 2508.093 {y} 1205.589 {z} 11.1785 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2509.0171 {y} 1205.957 {z} 11.0761 {switchStyle} SwitchType.JumpCut
gosub @PEDS_2P_2283
if 
  267@ <> 1
goto_if_false @PEDS_2P_1479
print_with_2_numbers_now 'MENU_46' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle
goto @PEDS_2P_1501

:PEDS_2P_1479
print_with_2_numbers_now 'MENU_62' {num1} 266@ {num2} 267@ {duration} 5000 {style} TextStyle.Middle

:PEDS_2P_1501
wait 5000
gosub @PEDS_2P_2197
set_lvar_int_to_var_int 353@ = $peds_2p_level
353@ += 1
start_kill_frenzy 'DUMMY' {weaponType} WeaponType.Mp5 {timeInMs} 265@ {targetsNum} 266@ {targetModel1} #INFO {targetModel2} #INFO {targetModel3} #INFO {targetModel4} #INFO {betaSoundsAndMessages} False
set_ped_density_multiplier 2.0
TIMERB = 0

:PEDS_2P_1571
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
  not is_car_dead 283@
goto_if_false @PEDS_2P_1747
wait 0
gosub @PEDS_2P_2324
if 
  is_car_in_water 283@
goto_if_false @PEDS_2P_1626
fail_kill_frenzy 

:PEDS_2P_1626
282@ = read_kill_frenzy_status 
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @PEDS_2P_1653
set_lvar_int_to_constant 282@ = 2

:PEDS_2P_1653
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @PEDS_2P_1675
set_lvar_int_to_constant 282@ = 3

:PEDS_2P_1675
if 
  is_int_lvar_equal_to_constant 282@ == 2
goto_if_false @PEDS_2P_1708
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @PEDS_2P_1914

:PEDS_2P_1708
if 
  is_int_lvar_equal_to_constant 282@ == 3
goto_if_false @PEDS_2P_1740
352@ = 1
goto @PEDS_2P_1754

:PEDS_2P_1740
goto @PEDS_2P_1571

:PEDS_2P_1747
goto @PEDS_2P_1754

:PEDS_2P_1754
if 
  352@ == 0
goto_if_false @PEDS_2P_1880
if 
  is_char_dead $scplayer
goto_if_false @PEDS_2P_1804
print_now 'MENU_47' {time} 4000 {flag} 1

:PEDS_2P_1804
if 
  is_char_dead $p2
goto_if_false @PEDS_2P_1836
print_now 'MENU_48' {time} 4000 {flag} 1

:PEDS_2P_1836
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @PEDS_2P_1873
print_now 'MENU_49' {time} 4000 {flag} 1

:PEDS_2P_1873
goto @PEDS_2P_1896

:PEDS_2P_1880
print_now 'MENU_50' {time} 4000 {flag} 1

:PEDS_2P_1896
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:PEDS_2P_1914
265@ /= 1000
354@ = get_int_stat StatId.P2PedsRampageBestTime
if 
  is_int_lvar_greater_than_int_lvar 265@ > 354@
goto_if_false @PEDS_2P_1957
set_int_stat StatId.P2PedsRampageBestTime {value} 265@

:PEDS_2P_1957
if 
  $peds_2p_level <> 8
goto_if_false @PEDS_2P_1982
$peds_2p_level += 1

:PEDS_2P_1982
if 
  $peds_2p_level == 8
goto_if_false @PEDS_2P_2025
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
goto @PEDS_2P_2043

:PEDS_2P_2025
print_with_number_big 'MENU_67' {num} 0 {duration} 5000 {style} TextStyle.Middle

:PEDS_2P_2043
clear_wanted_level $player1
if 
  not is_car_dead 283@
goto_if_false @PEDS_2P_2071
lock_car_doors 283@ {lockStatus} CarLock.Unlocked

:PEDS_2P_2071
return 

:PEDS_2P_2073
hide_all_frontend_blips False
352@ = 0
make_player_gang_reappear 
clear_wanted_level $player1
set_wanted_multiplier 1.0
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 402
mark_model_as_no_longer_needed 411
mark_model_as_no_longer_needed 477
mark_model_as_no_longer_needed 63
if 
  not is_car_dead 283@
goto_if_false @PEDS_2P_2145
lock_car_doors 283@ {lockStatus} CarLock.Unlocked

:PEDS_2P_2145
$onmission = 0
mission_has_finished 
return 

:PEDS_2P_2156
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @PEDS_2P_2195
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:PEDS_2P_2195
return 

:PEDS_2P_2197
set_camera_behind_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @PEDS_2P_2238
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:PEDS_2P_2238
restore_camera_jumpcut 
return 

:PEDS_2P_2242
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:PEDS_2P_2257
if 
  get_fading_status 
goto_if_false @PEDS_2P_2281
wait 0
goto @PEDS_2P_2257

:PEDS_2P_2281
return 

:PEDS_2P_2283
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:PEDS_2P_2298
if 
  get_fading_status 
goto_if_false @PEDS_2P_2322
wait 0
goto @PEDS_2P_2298

:PEDS_2P_2322
return 

:PEDS_2P_2324
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @PEDS_2P_2339

:PEDS_2P_2339
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @PEDS_2P_2354

:PEDS_2P_2354
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @PEDS_2P_2376
goto @PEDS_2P_1914

:PEDS_2P_2376
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @PEDS_2P_2412
if 
  not is_char_dead $p2
goto_if_false @PEDS_2P_2412
task_die $p2

:PEDS_2P_2412
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @PEDS_2P_2427

:PEDS_2P_2427
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @PEDS_2P_2463
if 
  not is_char_dead $scplayer
goto_if_false @PEDS_2P_2463
task_die $scplayer

:PEDS_2P_2463
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @PEDS_2P_2508
if 
  not is_char_dead $scplayer
goto_if_false @PEDS_2P_2508
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:PEDS_2P_2508
return 

//-------------Mission 140---------------
// Originally: Run-around LS

:RUN_LS
script_name 'RUN_LS'
gosub @RUN_LS_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_LS_38
gosub @RUN_LS_963

:RUN_LS_38
gosub @RUN_LS_1089
terminate_this_script 

:RUN_LS_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
$flag_car_normal_carmod = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @RUN_LS_1245
wait 0
request_model 63
request_animation "KISSING"

:RUN_LS_112
if or
  not has_model_loaded 63
  not has_animation_loaded "KISSING"
goto_if_false @RUN_LS_149
wait 0
goto @RUN_LS_112

:RUN_LS_149
TIMERA = 0
clear_area 2069.907 {y} -1556.3781 {z} 12.4198 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LS_351
set_char_coordinates $scplayer {x} 2070.3369 {y} -1557.624 {z} 12.4203
set_char_heading $scplayer {heading} 269.0526
clear_area 2491.895 {y} -1669.1219 {z} 12.3594 {radius} 10.0 {clearParticles} True
$player2 = create_player 1 {x} 2069.74 {y} -1555.6281 {z} 12.4214
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_player_model $player2 {modelId} 63
set_char_heading $p2 {heading} 269.0526
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RUN_LS_351
gosub @RUN_LS_1159
set_fixed_camera_position 2078.45 {y} -1556.668 {z} 13.6446 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2077.4509 {y} -1556.651 {z} 13.6027 {switchStyle} SwitchType.JumpCut
gosub @RUN_LS_1286
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
switch_widescreen False
print_help_forever 'RUN_XX'

:RUN_LS_454
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_820
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_LS_780
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad2
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  $LStickX > 100
goto_if_false @RUN_LS_584
50@ += 1
if 
  50@ > 5
goto_if_false @RUN_LS_570
50@ = 0

:RUN_LS_570
gosub @RUN_LS_1327
TIMERB = 0

:RUN_LS_584
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  -100 > $LStickX
goto_if_false @RUN_LS_654
50@ -= 1
if 
  0 > 50@
goto_if_false @RUN_LS_640
50@ = 5

:RUN_LS_640
gosub @RUN_LS_1327
TIMERB = 0

:RUN_LS_654
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadRight
goto_if_false @RUN_LS_717
50@ += 1
if 
  50@ > 5
goto_if_false @RUN_LS_703
50@ = 0

:RUN_LS_703
gosub @RUN_LS_1327
TIMERB = 0

:RUN_LS_717
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadLeft
goto_if_false @RUN_LS_780
50@ -= 1
if 
  0 > 50@
goto_if_false @RUN_LS_766
50@ = 5

:RUN_LS_766
gosub @RUN_LS_1327
TIMERB = 0

:RUN_LS_780
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Cross
goto_if_false @RUN_LS_813
gosub @RUN_LS_1200
clear_help 
goto @RUN_LS_820

:RUN_LS_813
goto @RUN_LS_454

:RUN_LS_820
print_help 'RUN_06'

:RUN_LS_831
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_956
wait 0
gosub @RUN_LS_1665
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_949
if 
  not is_char_in_any_car $scplayer
goto_if_false @RUN_LS_949
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @RUN_LS_939
gosub @RUN_LS_1844
goto @RUN_LS_949

:RUN_LS_939
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:RUN_LS_949
goto @RUN_LS_831

:RUN_LS_956
goto @RUN_LS_963

:RUN_LS_963
if 
  is_char_dead $scplayer
goto_if_false @RUN_LS_995
print_now 'RUN_03' {time} 4000 {flag} 1

:RUN_LS_995
if 
  is_char_dead $p2
goto_if_false @RUN_LS_1027
print_now 'RUN_04' {time} 4000 {flag} 1

:RUN_LS_1027
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RUN_LS_1064
print_now 'RUN_05' {time} 4000 {flag} 1

:RUN_LS_1064
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:RUN_LS_1089
$flag_car_normal_carmod = 0
hide_all_frontend_blips False
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 0
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 139
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:RUN_LS_1159
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_LS_1198
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RUN_LS_1198
return 

:RUN_LS_1200
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_LS_1241
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RUN_LS_1241
restore_camera_jumpcut 
return 

:RUN_LS_1245
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RUN_LS_1260
if 
  get_fading_status 
goto_if_false @RUN_LS_1284
wait 0
goto @RUN_LS_1260

:RUN_LS_1284
return 

:RUN_LS_1286
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RUN_LS_1301
if 
  get_fading_status 
goto_if_false @RUN_LS_1325
wait 0
goto @RUN_LS_1301

:RUN_LS_1325
return 

:RUN_LS_1327
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_LS_1663 {caseNum1} 0 {caseLabel1} @RUN_LS_1390 {caseNum2} 1 {caseLabel2} @RUN_LS_1434 {caseNum3} 2 {caseLabel3} @RUN_LS_1478 {caseNum4} 3 {caseLabel4} @RUN_LS_1522 {caseNum5} 4 {caseLabel5} @RUN_LS_1569 {caseNum6} 5 {caseLabel6} @RUN_LS_1616 {caseNum7} -1 {caseLabel7} @RUN_LS_1663

:RUN_LS_1390
request_model 63

:RUN_LS_1394
if 
  not has_model_loaded 63
goto_if_false @RUN_LS_1420
wait 0
goto @RUN_LS_1394

:RUN_LS_1420
set_player_model $player2 {modelId} 63
goto @RUN_LS_1663

:RUN_LS_1434
request_model 106

:RUN_LS_1438
if 
  not has_model_loaded 106
goto_if_false @RUN_LS_1464
wait 0
goto @RUN_LS_1438

:RUN_LS_1464
set_player_model $player2 {modelId} 106
goto @RUN_LS_1663

:RUN_LS_1478
request_model 0

:RUN_LS_1482
if 
  not has_model_loaded 0
goto_if_false @RUN_LS_1508
wait 0
goto @RUN_LS_1482

:RUN_LS_1508
set_player_model $player2 {modelId} 0
goto @RUN_LS_1663

:RUN_LS_1522
request_model 139

:RUN_LS_1527
if 
  not has_model_loaded 139
goto_if_false @RUN_LS_1554
wait 0
goto @RUN_LS_1527

:RUN_LS_1554
set_player_model $player2 {modelId} 139
goto @RUN_LS_1663

:RUN_LS_1569
request_model 280

:RUN_LS_1574
if 
  not has_model_loaded 280
goto_if_false @RUN_LS_1601
wait 0
goto @RUN_LS_1574

:RUN_LS_1601
set_player_model $player2 {modelId} 280
goto @RUN_LS_1663

:RUN_LS_1616
request_model 285

:RUN_LS_1621
if 
  not has_model_loaded 285
goto_if_false @RUN_LS_1648
wait 0
goto @RUN_LS_1621

:RUN_LS_1648
set_player_model $player2 {modelId} 285
goto @RUN_LS_1663

:RUN_LS_1663
return 

:RUN_LS_1665
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_LS_1680

:RUN_LS_1680
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_LS_1695

:RUN_LS_1695
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_LS_1710

:RUN_LS_1710
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_LS_1746
if 
  not is_char_dead $p2
goto_if_false @RUN_LS_1746
task_die $p2

:RUN_LS_1746
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_LS_1761

:RUN_LS_1761
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_LS_1797
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LS_1797
task_die $scplayer

:RUN_LS_1797
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_LS_1842
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LS_1842
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:RUN_LS_1842
return 

:RUN_LS_1844
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_2203
if 
  48@ == 0
goto_if_false @RUN_LS_2196
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @RUN_LS_2189
if 
  is_char_stopped $p2
goto_if_false @RUN_LS_2189
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @RUN_LS_2162
if 
  49@ == 0
goto_if_false @RUN_LS_2027
print_help_forever 'GF_0021'
49@ = 1

:RUN_LS_2027
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @RUN_LS_2155
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @RUN_LS_2155
48@ = 1
gosub @RUN_LS_2205

:RUN_LS_2155
goto @RUN_LS_2189

:RUN_LS_2162
if 
  49@ == 1
goto_if_false @RUN_LS_2189
clear_help 
49@ = 0

:RUN_LS_2189
goto @RUN_LS_2203

:RUN_LS_2196
gosub @RUN_LS_2205

:RUN_LS_2203
return 

:RUN_LS_2205
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_LS_3647 {caseNum1} 1 {caseLabel1} @RUN_LS_2268 {caseNum2} 2 {caseLabel2} @RUN_LS_2465 {caseNum3} 3 {caseLabel3} @RUN_LS_2979 {caseNum4} 4 {caseLabel4} @RUN_LS_3148 {caseNum5} -1 {caseLabel5} @RUN_LS_3647 {caseNum6} -1 {caseLabel6} @RUN_LS_3647 {caseNum7} -1 {caseLabel7} @RUN_LS_3647

:RUN_LS_2268
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_2458
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:RUN_LS_2458
goto @RUN_LS_3647

:RUN_LS_2465
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_2972
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LS_2824
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @RUN_LS_2796
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:RUN_LS_2796
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @RUN_LS_2972

:RUN_LS_2824
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @RUN_LS_2885
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @RUN_LS_2885
task_stand_still $scplayer {time} -1

:RUN_LS_2885
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LS_2972
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_LS_2972
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:RUN_LS_2972
goto @RUN_LS_3647

:RUN_LS_2979
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_3141
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:RUN_LS_3141
goto @RUN_LS_3647

:RUN_LS_3148
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LS_3640
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @RUN_LS_3233
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:RUN_LS_3233
if 
  43@ > -1.0
goto_if_false @RUN_LS_3455
if 
  43@ == 1.0
goto_if_false @RUN_LS_3448
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:RUN_LS_3448
goto @RUN_LS_3640

:RUN_LS_3455
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:RUN_LS_3640
goto @RUN_LS_3647

:RUN_LS_3647
return 

//-------------Mission 141---------------
// Originally: Run-around LV

:RUN_LV
script_name 'RUN_LV'
gosub @RUN_LV_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_LV_38
gosub @RUN_LV_942

:RUN_LV_38
gosub @RUN_LV_1095
terminate_this_script 

:RUN_LV_47
hide_all_frontend_blips True
$flag_car_normal_carmod = 1
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @RUN_LV_1248
wait 0
request_model 178
request_animation "KISSING"

:RUN_LV_113
if or
  not has_model_loaded 178
  not has_animation_loaded "KISSING"
goto_if_false @RUN_LV_151
wait 0
goto @RUN_LV_113

:RUN_LV_151
TIMERA = 0
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LV_330
clear_area 2234.8931 {y} 1451.413 {z} 10.0546 {radius} 10.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2234.8931 {y} 1451.413 {z} 10.0546
set_char_heading $scplayer {heading} 238.7284
$player2 = create_player 1 {x} 2234.3711 {y} 1454.5229 {z} 10.0546
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_player_model $player2 {modelId} 178
set_char_heading $p2 {heading} 251.0562
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RUN_LV_330
gosub @RUN_LV_1162
set_fixed_camera_position 2236.5591 {y} 1448.937 {z} 11.6522 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2236.126 {y} 1449.822 {z} 11.4823 {switchStyle} SwitchType.JumpCut
gosub @RUN_LV_1289
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
switch_widescreen False
print_help_forever 'RUN_XX'

:RUN_LV_433
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_LV_759
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad2
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  $LStickX > 100
goto_if_false @RUN_LV_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_LV_549
34@ = 0

:RUN_LV_549
gosub @RUN_LV_1330
TIMERB = 0

:RUN_LV_563
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  -100 > $LStickX
goto_if_false @RUN_LV_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_LV_619
34@ = 5

:RUN_LV_619
gosub @RUN_LV_1330
TIMERB = 0

:RUN_LV_633
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadRight
goto_if_false @RUN_LV_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_LV_682
34@ = 0

:RUN_LV_682
gosub @RUN_LV_1330
TIMERB = 0

:RUN_LV_696
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadLeft
goto_if_false @RUN_LV_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_LV_745
34@ = 5

:RUN_LV_745
gosub @RUN_LV_1330
TIMERB = 0

:RUN_LV_759
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Cross
goto_if_false @RUN_LV_792
gosub @RUN_LV_1203
clear_help 
goto @RUN_LV_799

:RUN_LV_792
goto @RUN_LV_433

:RUN_LV_799
print_help 'RUN_06'

:RUN_LV_810
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_935
wait 0
gosub @RUN_LV_1671
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_928
if 
  not is_char_in_any_car $scplayer
goto_if_false @RUN_LV_928
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @RUN_LV_918
gosub @RUN_LV_1850
goto @RUN_LV_928

:RUN_LV_918
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:RUN_LV_928
goto @RUN_LV_810

:RUN_LV_935
goto @RUN_LV_942

:RUN_LV_942
if 
  is_char_dead $scplayer
goto_if_false @RUN_LV_974
print_now 'RUN_03' {time} 4000 {flag} 1

:RUN_LV_974
if 
  is_char_dead $p2
goto_if_false @RUN_LV_1006
print_now 'RUN_04' {time} 4000 {flag} 1

:RUN_LV_1006
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RUN_LV_1043
print_now 'RUN_05' {time} 4000 {flag} 1

:RUN_LV_1043
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
clear_wanted_level $player1
return 

:RUN_LV_1095
$flag_car_normal_carmod = 0
hide_all_frontend_blips False
mark_model_as_no_longer_needed 178
mark_model_as_no_longer_needed 66
mark_model_as_no_longer_needed 181
mark_model_as_no_longer_needed 140
mark_model_as_no_longer_needed 183
mark_model_as_no_longer_needed 282
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:RUN_LV_1162
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_LV_1201
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RUN_LV_1201
return 

:RUN_LV_1203
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_LV_1244
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RUN_LV_1244
restore_camera_jumpcut 
return 

:RUN_LV_1248
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RUN_LV_1263
if 
  get_fading_status 
goto_if_false @RUN_LV_1287
wait 0
goto @RUN_LV_1263

:RUN_LV_1287
return 

:RUN_LV_1289
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RUN_LV_1304
if 
  get_fading_status 
goto_if_false @RUN_LV_1328
wait 0
goto @RUN_LV_1304

:RUN_LV_1328
return 

:RUN_LV_1330
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_LV_1669 {caseNum1} 0 {caseLabel1} @RUN_LV_1393 {caseNum2} 1 {caseLabel2} @RUN_LV_1440 {caseNum3} 2 {caseLabel3} @RUN_LV_1484 {caseNum4} 3 {caseLabel4} @RUN_LV_1531 {caseNum5} 4 {caseLabel5} @RUN_LV_1575 {caseNum6} 5 {caseLabel6} @RUN_LV_1622 {caseNum7} -1 {caseLabel7} @RUN_LV_1669

:RUN_LV_1393
request_model 178

:RUN_LV_1398
if 
  not has_model_loaded 178
goto_if_false @RUN_LV_1425
wait 0
goto @RUN_LV_1398

:RUN_LV_1425
set_player_model $player2 {modelId} 178
goto @RUN_LV_1669

:RUN_LV_1440
request_model 66

:RUN_LV_1444
if 
  not has_model_loaded 66
goto_if_false @RUN_LV_1470
wait 0
goto @RUN_LV_1444

:RUN_LV_1470
set_player_model $player2 {modelId} 66
goto @RUN_LV_1669

:RUN_LV_1484
request_model 275

:RUN_LV_1489
if 
  not has_model_loaded 275
goto_if_false @RUN_LV_1516
wait 0
goto @RUN_LV_1489

:RUN_LV_1516
set_player_model $player2 {modelId} 275
goto @RUN_LV_1669

:RUN_LV_1531
request_model 87

:RUN_LV_1535
if 
  not has_model_loaded 87
goto_if_false @RUN_LV_1561
wait 0
goto @RUN_LV_1535

:RUN_LV_1561
set_player_model $player2 {modelId} 87
goto @RUN_LV_1669

:RUN_LV_1575
request_model 212

:RUN_LV_1580
if 
  not has_model_loaded 212
goto_if_false @RUN_LV_1607
wait 0
goto @RUN_LV_1580

:RUN_LV_1607
set_player_model $player2 {modelId} 212
goto @RUN_LV_1669

:RUN_LV_1622
request_model 278

:RUN_LV_1627
if 
  not has_model_loaded 278
goto_if_false @RUN_LV_1654
wait 0
goto @RUN_LV_1627

:RUN_LV_1654
set_player_model $player2 {modelId} 278
goto @RUN_LV_1669

:RUN_LV_1669
return 

:RUN_LV_1671
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_LV_1686

:RUN_LV_1686
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_LV_1701

:RUN_LV_1701
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_LV_1716

:RUN_LV_1716
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_LV_1752
if 
  not is_char_dead $p2
goto_if_false @RUN_LV_1752
task_die $p2

:RUN_LV_1752
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_LV_1767

:RUN_LV_1767
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_LV_1803
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LV_1803
task_die $scplayer

:RUN_LV_1803
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_LV_1848
if 
  not is_char_dead $scplayer
goto_if_false @RUN_LV_1848
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:RUN_LV_1848
return 

:RUN_LV_1850
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_2209
if 
  49@ == 0
goto_if_false @RUN_LV_2202
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @RUN_LV_2195
if 
  is_char_stopped $p2
goto_if_false @RUN_LV_2195
35@, 38@, 41@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 35@ {y} 38@ {z} 41@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @RUN_LV_2168
if 
  50@ == 0
goto_if_false @RUN_LV_2033
print_help_forever 'GF_0021'
50@ = 1

:RUN_LV_2033
35@, 38@, 41@ = get_char_coordinates $scplayer
36@, 39@, 42@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_LV_2161
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @RUN_LV_2161
49@ = 1
gosub @RUN_LV_2211

:RUN_LV_2161
goto @RUN_LV_2195

:RUN_LV_2168
if 
  50@ == 1
goto_if_false @RUN_LV_2195
clear_help 
50@ = 0

:RUN_LV_2195
goto @RUN_LV_2209

:RUN_LV_2202
gosub @RUN_LV_2211

:RUN_LV_2209
return 

:RUN_LV_2211
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_LV_3653 {caseNum1} 1 {caseLabel1} @RUN_LV_2274 {caseNum2} 2 {caseLabel2} @RUN_LV_2471 {caseNum3} 3 {caseLabel3} @RUN_LV_2985 {caseNum4} 4 {caseLabel4} @RUN_LV_3154 {caseNum5} -1 {caseLabel5} @RUN_LV_3653 {caseNum6} -1 {caseLabel6} @RUN_LV_3653 {caseNum7} -1 {caseLabel7} @RUN_LV_3653

:RUN_LV_2274
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_2464
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
49@ += 1

:RUN_LV_2464
goto @RUN_LV_3653

:RUN_LV_2471
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_2978
47@ = get_script_task_status $scplayer {taskId} 1593
48@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_LV_2830
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
37@, 40@, 43@ = get_char_coordinates $p2
43@ = get_ground_z_for_3d_coord 37@ {y} 40@ {z} 43@
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 35@ {fromY} 38@ {fromZ} 41@ {toX} 36@ {toY} 39@ {toZ} 42@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @RUN_LV_2802
set_fixed_camera_position 35@ {y} 38@ {z} 41@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 36@ {y} 39@ {z} 42@ {switchStyle} SwitchType.JumpCut

:RUN_LV_2802
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
49@ += 1
goto @RUN_LV_2978

:RUN_LV_2830
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LV_2891
47@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_LV_2891
task_stand_still $scplayer {time} -1

:RUN_LV_2891
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_LV_2978
48@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_LV_2978
task_stand_still $p2 {time} -1
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@

:RUN_LV_2978
goto @RUN_LV_3653

:RUN_LV_2985
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_3147
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
49@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:RUN_LV_3147
goto @RUN_LV_3653

:RUN_LV_3154
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_LV_3646
44@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @RUN_LV_3239
44@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:RUN_LV_3239
if 
  44@ > -1.0
goto_if_false @RUN_LV_3461
if 
  44@ == 1.0
goto_if_false @RUN_LV_3454
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_LV_3454
goto @RUN_LV_3646

:RUN_LV_3461
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_LV_3646
goto @RUN_LV_3653

:RUN_LV_3653
return 

//-------------Mission 142---------------
// Originally: Run-around SF

:RUN_SF
script_name 'RUN_SF'
gosub @RUN_SF_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_SF_38
gosub @RUN_SF_942

:RUN_SF_38
gosub @RUN_SF_1068
terminate_this_script 

:RUN_SF_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @RUN_SF_1217
wait 0
request_model 173
request_animation "KISSING"

:RUN_SF_113
if or
  not has_model_loaded 173
  not has_animation_loaded "KISSING"
goto_if_false @RUN_SF_151
wait 0
goto @RUN_SF_113

:RUN_SF_151
TIMERA = 0
clear_area -2197.667 {y} 292.0621 {z} 34.123 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @RUN_SF_330
set_char_coordinates $scplayer {x} -2196.917 {y} 288.4338 {z} 34.3262
set_char_heading $scplayer {heading} 342.0689
$player2 = create_player 1 {x} -2201.332 {y} 288.7762 {z} 34.3203
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 342.0689
set_player_model $player2 {modelId} 173
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RUN_SF_330
gosub @RUN_SF_1131
set_fixed_camera_position -2194.5769 {y} 289.8771 {z} 36.0049 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2195.5149 {y} 289.5766 {z} 35.833 {switchStyle} SwitchType.JumpCut
gosub @RUN_SF_1258
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
switch_widescreen False
print_help_forever 'RUN_XX'

:RUN_SF_433
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_SF_759
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad2
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  $LStickX > 100
goto_if_false @RUN_SF_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_SF_549
34@ = 0

:RUN_SF_549
gosub @RUN_SF_1299
TIMERB = 0

:RUN_SF_563
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  -100 > $LStickX
goto_if_false @RUN_SF_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_SF_619
34@ = 5

:RUN_SF_619
gosub @RUN_SF_1299
TIMERB = 0

:RUN_SF_633
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadRight
goto_if_false @RUN_SF_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_SF_682
34@ = 0

:RUN_SF_682
gosub @RUN_SF_1299
TIMERB = 0

:RUN_SF_696
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadLeft
goto_if_false @RUN_SF_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_SF_745
34@ = 5

:RUN_SF_745
gosub @RUN_SF_1299
TIMERB = 0

:RUN_SF_759
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Cross
goto_if_false @RUN_SF_792
gosub @RUN_SF_1172
clear_help 
goto @RUN_SF_799

:RUN_SF_792
goto @RUN_SF_433

:RUN_SF_799
print_help 'RUN_06'

:RUN_SF_810
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_935
wait 0
gosub @RUN_SF_1631
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_928
if 
  not is_char_in_any_car $scplayer
goto_if_false @RUN_SF_928
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @RUN_SF_918
gosub @RUN_SF_1810
goto @RUN_SF_928

:RUN_SF_918
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:RUN_SF_928
goto @RUN_SF_810

:RUN_SF_935
goto @RUN_SF_942

:RUN_SF_942
if 
  is_char_dead $scplayer
goto_if_false @RUN_SF_974
print_now 'RUN_03' {time} 4000 {flag} 1

:RUN_SF_974
if 
  is_char_dead $p2
goto_if_false @RUN_SF_1006
print_now 'RUN_04' {time} 4000 {flag} 1

:RUN_SF_1006
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RUN_SF_1043
print_now 'RUN_05' {time} 4000 {flag} 1

:RUN_SF_1043
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:RUN_SF_1068
$flag_car_normal_carmod = 0
hide_all_frontend_blips False
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 47
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 69
mark_model_as_no_longer_needed 29
mark_model_as_no_longer_needed 281
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:RUN_SF_1131
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_SF_1170
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RUN_SF_1170
return 

:RUN_SF_1172
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_SF_1213
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RUN_SF_1213
restore_camera_jumpcut 
return 

:RUN_SF_1217
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RUN_SF_1232
if 
  get_fading_status 
goto_if_false @RUN_SF_1256
wait 0
goto @RUN_SF_1232

:RUN_SF_1256
return 

:RUN_SF_1258
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RUN_SF_1273
if 
  get_fading_status 
goto_if_false @RUN_SF_1297
wait 0
goto @RUN_SF_1273

:RUN_SF_1297
return 

:RUN_SF_1299
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_SF_1629 {caseNum1} 0 {caseLabel1} @RUN_SF_1362 {caseNum2} 1 {caseLabel2} @RUN_SF_1406 {caseNum3} 2 {caseLabel3} @RUN_SF_1450 {caseNum4} 3 {caseLabel4} @RUN_SF_1494 {caseNum5} 4 {caseLabel5} @RUN_SF_1538 {caseNum6} 5 {caseLabel6} @RUN_SF_1582 {caseNum7} -1 {caseLabel7} @RUN_SF_1629

:RUN_SF_1362
request_model 101

:RUN_SF_1366
if 
  not has_model_loaded 101
goto_if_false @RUN_SF_1392
wait 0
goto @RUN_SF_1366

:RUN_SF_1392
set_player_model $player2 {modelId} 101
goto @RUN_SF_1629

:RUN_SF_1406
request_model 47

:RUN_SF_1410
if 
  not has_model_loaded 47
goto_if_false @RUN_SF_1436
wait 0
goto @RUN_SF_1410

:RUN_SF_1436
set_player_model $player2 {modelId} 47
goto @RUN_SF_1629

:RUN_SF_1450
request_model 22

:RUN_SF_1454
if 
  not has_model_loaded 22
goto_if_false @RUN_SF_1480
wait 0
goto @RUN_SF_1454

:RUN_SF_1480
set_player_model $player2 {modelId} 22
goto @RUN_SF_1629

:RUN_SF_1494
request_model 69

:RUN_SF_1498
if 
  not has_model_loaded 69
goto_if_false @RUN_SF_1524
wait 0
goto @RUN_SF_1498

:RUN_SF_1524
set_player_model $player2 {modelId} 69
goto @RUN_SF_1629

:RUN_SF_1538
request_model 29

:RUN_SF_1542
if 
  not has_model_loaded 29
goto_if_false @RUN_SF_1568
wait 0
goto @RUN_SF_1542

:RUN_SF_1568
set_player_model $player2 {modelId} 29
goto @RUN_SF_1629

:RUN_SF_1582
request_model 281

:RUN_SF_1587
if 
  not has_model_loaded 281
goto_if_false @RUN_SF_1614
wait 0
goto @RUN_SF_1587

:RUN_SF_1614
set_player_model $player2 {modelId} 281
goto @RUN_SF_1629

:RUN_SF_1629
return 

:RUN_SF_1631
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_SF_1646

:RUN_SF_1646
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_SF_1661

:RUN_SF_1661
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_SF_1676

:RUN_SF_1676
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_SF_1712
if 
  not is_char_dead $p2
goto_if_false @RUN_SF_1712
task_die $p2

:RUN_SF_1712
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_SF_1727

:RUN_SF_1727
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_SF_1763
if 
  not is_char_dead $scplayer
goto_if_false @RUN_SF_1763
task_die $scplayer

:RUN_SF_1763
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_SF_1808
if 
  not is_char_dead $scplayer
goto_if_false @RUN_SF_1808
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:RUN_SF_1808
return 

:RUN_SF_1810
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_2169
if 
  49@ == 0
goto_if_false @RUN_SF_2162
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @RUN_SF_2155
if 
  is_char_stopped $p2
goto_if_false @RUN_SF_2155
35@, 38@, 41@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 35@ {y} 38@ {z} 41@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @RUN_SF_2128
if 
  50@ == 0
goto_if_false @RUN_SF_1993
print_help_forever 'GF_0021'
50@ = 1

:RUN_SF_1993
35@, 38@, 41@ = get_char_coordinates $scplayer
36@, 39@, 42@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_SF_2121
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @RUN_SF_2121
49@ = 1
gosub @RUN_SF_2171

:RUN_SF_2121
goto @RUN_SF_2155

:RUN_SF_2128
if 
  50@ == 1
goto_if_false @RUN_SF_2155
clear_help 
50@ = 0

:RUN_SF_2155
goto @RUN_SF_2169

:RUN_SF_2162
gosub @RUN_SF_2171

:RUN_SF_2169
return 

:RUN_SF_2171
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_SF_3613 {caseNum1} 1 {caseLabel1} @RUN_SF_2234 {caseNum2} 2 {caseLabel2} @RUN_SF_2431 {caseNum3} 3 {caseLabel3} @RUN_SF_2945 {caseNum4} 4 {caseLabel4} @RUN_SF_3114 {caseNum5} -1 {caseLabel5} @RUN_SF_3613 {caseNum6} -1 {caseLabel6} @RUN_SF_3613 {caseNum7} -1 {caseLabel7} @RUN_SF_3613

:RUN_SF_2234
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_2424
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
49@ += 1

:RUN_SF_2424
goto @RUN_SF_3613

:RUN_SF_2431
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_2938
47@ = get_script_task_status $scplayer {taskId} 1593
48@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_SF_2790
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
37@, 40@, 43@ = get_char_coordinates $p2
43@ = get_ground_z_for_3d_coord 37@ {y} 40@ {z} 43@
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 35@ {fromY} 38@ {fromZ} 41@ {toX} 36@ {toY} 39@ {toZ} 42@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @RUN_SF_2762
set_fixed_camera_position 35@ {y} 38@ {z} 41@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 36@ {y} 39@ {z} 42@ {switchStyle} SwitchType.JumpCut

:RUN_SF_2762
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
49@ += 1
goto @RUN_SF_2938

:RUN_SF_2790
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_SF_2851
47@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_SF_2851
task_stand_still $scplayer {time} -1

:RUN_SF_2851
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_SF_2938
48@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_SF_2938
task_stand_still $p2 {time} -1
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@

:RUN_SF_2938
goto @RUN_SF_3613

:RUN_SF_2945
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_3107
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
49@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:RUN_SF_3107
goto @RUN_SF_3613

:RUN_SF_3114
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_SF_3606
44@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @RUN_SF_3199
44@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:RUN_SF_3199
if 
  44@ > -1.0
goto_if_false @RUN_SF_3421
if 
  44@ == 1.0
goto_if_false @RUN_SF_3414
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_SF_3414
goto @RUN_SF_3606

:RUN_SF_3421
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_SF_3606
goto @RUN_SF_3613

:RUN_SF_3613
return 

//-------------Mission 143---------------
// Originally: Run-around DE

:RUN_DE
script_name 'RUN_DE'
gosub @RUN_DE_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_DE_38
gosub @RUN_DE_942

:RUN_DE_38
gosub @RUN_DE_1068
terminate_this_script 

:RUN_DE_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @RUN_DE_1222
wait 0
request_model 157
request_animation "KISSING"

:RUN_DE_113
if or
  not has_model_loaded 157
  not has_animation_loaded "KISSING"
goto_if_false @RUN_DE_151
wait 0
goto @RUN_DE_113

:RUN_DE_151
TIMERA = 0
clear_area -1520.864 {y} 2608.207 {z} 54.8437 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @RUN_DE_330
set_char_coordinates $scplayer {x} -1520.864 {y} 2608.207 {z} 54.8437
set_char_heading $scplayer {heading} 160.0054
$player2 = create_player 1 {x} -1518.757 {y} 2608.2791 {z} 54.8437
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_player_model $player2 {modelId} 157
set_char_heading $p2 {heading} 180.1871
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RUN_DE_330
gosub @RUN_DE_1136
set_fixed_camera_position -1524.699 {y} 2605.78 {z} 57.8026 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1523.8979 {y} 2606.2429 {z} 57.4224 {switchStyle} SwitchType.JumpCut
gosub @RUN_DE_1263
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
switch_widescreen False
print_help_forever 'RUN_XX'

:RUN_DE_433
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_DE_759
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad2
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  $LStickX > 100
goto_if_false @RUN_DE_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_DE_549
34@ = 0

:RUN_DE_549
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_563
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  -100 > $LStickX
goto_if_false @RUN_DE_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_DE_619
34@ = 5

:RUN_DE_619
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_633
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadRight
goto_if_false @RUN_DE_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_DE_682
34@ = 0

:RUN_DE_682
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_696
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadLeft
goto_if_false @RUN_DE_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_DE_745
34@ = 5

:RUN_DE_745
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_759
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Cross
goto_if_false @RUN_DE_792
gosub @RUN_DE_1177
clear_help 
goto @RUN_DE_799

:RUN_DE_792
goto @RUN_DE_433

:RUN_DE_799
print_help 'RUN_06'

:RUN_DE_810
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_935
wait 0
gosub @RUN_DE_1651
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_928
if 
  not is_char_in_any_car $scplayer
goto_if_false @RUN_DE_928
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @RUN_DE_918
gosub @RUN_DE_1830
goto @RUN_DE_928

:RUN_DE_918
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:RUN_DE_928
goto @RUN_DE_810

:RUN_DE_935
goto @RUN_DE_942

:RUN_DE_942
if 
  is_char_dead $scplayer
goto_if_false @RUN_DE_974
print_now 'RUN_03' {time} 4000 {flag} 1

:RUN_DE_974
if 
  is_char_dead $p2
goto_if_false @RUN_DE_1006
print_now 'RUN_04' {time} 4000 {flag} 1

:RUN_DE_1006
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RUN_DE_1043
print_now 'RUN_05' {time} 4000 {flag} 1

:RUN_DE_1043
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:RUN_DE_1068
$flag_car_normal_carmod = 0
hide_all_frontend_blips False
mark_model_as_no_longer_needed 254
mark_model_as_no_longer_needed 247
mark_model_as_no_longer_needed 248
mark_model_as_no_longer_needed 161
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 198
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:RUN_DE_1136
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_DE_1175
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RUN_DE_1175
return 

:RUN_DE_1177
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_DE_1218
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RUN_DE_1218
restore_camera_jumpcut 
return 

:RUN_DE_1222
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RUN_DE_1237
if 
  get_fading_status 
goto_if_false @RUN_DE_1261
wait 0
goto @RUN_DE_1237

:RUN_DE_1261
return 

:RUN_DE_1263
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RUN_DE_1278
if 
  get_fading_status 
goto_if_false @RUN_DE_1302
wait 0
goto @RUN_DE_1278

:RUN_DE_1302
return 

:RUN_DE_1304
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_DE_1649 {caseNum1} 0 {caseLabel1} @RUN_DE_1367 {caseNum2} 1 {caseLabel2} @RUN_DE_1414 {caseNum3} 2 {caseLabel3} @RUN_DE_1461 {caseNum4} 3 {caseLabel4} @RUN_DE_1508 {caseNum5} 4 {caseLabel5} @RUN_DE_1555 {caseNum6} 5 {caseLabel6} @RUN_DE_1602 {caseNum7} -1 {caseLabel7} @RUN_DE_1649

:RUN_DE_1367
request_model 254

:RUN_DE_1372
if 
  not has_model_loaded 254
goto_if_false @RUN_DE_1399
wait 0
goto @RUN_DE_1372

:RUN_DE_1399
set_player_model $player2 {modelId} 254
goto @RUN_DE_1649

:RUN_DE_1414
request_model 247

:RUN_DE_1419
if 
  not has_model_loaded 247
goto_if_false @RUN_DE_1446
wait 0
goto @RUN_DE_1419

:RUN_DE_1446
set_player_model $player2 {modelId} 247
goto @RUN_DE_1649

:RUN_DE_1461
request_model 248

:RUN_DE_1466
if 
  not has_model_loaded 248
goto_if_false @RUN_DE_1493
wait 0
goto @RUN_DE_1466

:RUN_DE_1493
set_player_model $player2 {modelId} 248
goto @RUN_DE_1649

:RUN_DE_1508
request_model 161

:RUN_DE_1513
if 
  not has_model_loaded 161
goto_if_false @RUN_DE_1540
wait 0
goto @RUN_DE_1513

:RUN_DE_1540
set_player_model $player2 {modelId} 161
goto @RUN_DE_1649

:RUN_DE_1555
request_model 283

:RUN_DE_1560
if 
  not has_model_loaded 283
goto_if_false @RUN_DE_1587
wait 0
goto @RUN_DE_1560

:RUN_DE_1587
set_player_model $player2 {modelId} 283
goto @RUN_DE_1649

:RUN_DE_1602
request_model 198

:RUN_DE_1607
if 
  not has_model_loaded 198
goto_if_false @RUN_DE_1634
wait 0
goto @RUN_DE_1607

:RUN_DE_1634
set_player_model $player2 {modelId} 198
goto @RUN_DE_1649

:RUN_DE_1649
return 

:RUN_DE_1651
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_DE_1666

:RUN_DE_1666
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_DE_1681

:RUN_DE_1681
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_DE_1696

:RUN_DE_1696
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_DE_1732
if 
  not is_char_dead $p2
goto_if_false @RUN_DE_1732
task_die $p2

:RUN_DE_1732
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_DE_1747

:RUN_DE_1747
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_DE_1783
if 
  not is_char_dead $scplayer
goto_if_false @RUN_DE_1783
task_die $scplayer

:RUN_DE_1783
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_DE_1828
if 
  not is_char_dead $scplayer
goto_if_false @RUN_DE_1828
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:RUN_DE_1828
return 

:RUN_DE_1830
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_2189
if 
  49@ == 0
goto_if_false @RUN_DE_2182
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @RUN_DE_2175
if 
  is_char_stopped $p2
goto_if_false @RUN_DE_2175
35@, 38@, 41@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 35@ {y} 38@ {z} 41@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @RUN_DE_2148
if 
  50@ == 0
goto_if_false @RUN_DE_2013
print_help_forever 'GF_0021'
50@ = 1

:RUN_DE_2013
35@, 38@, 41@ = get_char_coordinates $scplayer
36@, 39@, 42@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_DE_2141
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @RUN_DE_2141
49@ = 1
gosub @RUN_DE_2191

:RUN_DE_2141
goto @RUN_DE_2175

:RUN_DE_2148
if 
  50@ == 1
goto_if_false @RUN_DE_2175
clear_help 
50@ = 0

:RUN_DE_2175
goto @RUN_DE_2189

:RUN_DE_2182
gosub @RUN_DE_2191

:RUN_DE_2189
return 

:RUN_DE_2191
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_DE_3633 {caseNum1} 1 {caseLabel1} @RUN_DE_2254 {caseNum2} 2 {caseLabel2} @RUN_DE_2451 {caseNum3} 3 {caseLabel3} @RUN_DE_2965 {caseNum4} 4 {caseLabel4} @RUN_DE_3134 {caseNum5} -1 {caseLabel5} @RUN_DE_3633 {caseNum6} -1 {caseLabel6} @RUN_DE_3633 {caseNum7} -1 {caseLabel7} @RUN_DE_3633

:RUN_DE_2254
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_2444
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
49@ += 1

:RUN_DE_2444
goto @RUN_DE_3633

:RUN_DE_2451
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_2958
47@ = get_script_task_status $scplayer {taskId} 1593
48@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_DE_2810
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
37@, 40@, 43@ = get_char_coordinates $p2
43@ = get_ground_z_for_3d_coord 37@ {y} 40@ {z} 43@
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 35@ {fromY} 38@ {fromZ} 41@ {toX} 36@ {toY} 39@ {toZ} 42@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @RUN_DE_2782
set_fixed_camera_position 35@ {y} 38@ {z} 41@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 36@ {y} 39@ {z} 42@ {switchStyle} SwitchType.JumpCut

:RUN_DE_2782
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
49@ += 1
goto @RUN_DE_2958

:RUN_DE_2810
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_DE_2871
47@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_DE_2871
task_stand_still $scplayer {time} -1

:RUN_DE_2871
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_DE_2958
48@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_DE_2958
task_stand_still $p2 {time} -1
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@

:RUN_DE_2958
goto @RUN_DE_3633

:RUN_DE_2965
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_3127
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
49@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:RUN_DE_3127
goto @RUN_DE_3633

:RUN_DE_3134
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_DE_3626
44@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @RUN_DE_3219
44@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:RUN_DE_3219
if 
  44@ > -1.0
goto_if_false @RUN_DE_3441
if 
  44@ == 1.0
goto_if_false @RUN_DE_3434
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_DE_3434
goto @RUN_DE_3626

:RUN_DE_3441
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_DE_3626
goto @RUN_DE_3633

:RUN_DE_3633
return 

//-------------Mission 144---------------
// Originally: Run-around CO

:RUN_CO
script_name 'RUN_CO'
gosub @RUN_CO_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_CO_38
gosub @RUN_CO_952

:RUN_CO_38
gosub @RUN_CO_1097
terminate_this_script 

:RUN_CO_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @RUN_CO_1248
wait 0
TIMERA = 0
request_model 157
request_animation "KISSING"

:RUN_CO_120
if or
  not has_model_loaded 157
  not has_animation_loaded "KISSING"
goto_if_false @RUN_CO_158
wait 0
goto @RUN_CO_120

:RUN_CO_158
clear_area 711.0688 {y} -569.3774 {z} 15.3359 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @RUN_CO_340
set_char_coordinates $scplayer {x} 712.1416 {y} -571.62 {z} 15.3359
set_char_heading $scplayer {heading} 244.9583
$player2 = create_player 1 {x} 712.3738 {y} -568.9551 {z} 15.3359
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_player_model $player2 {modelId} 157
set_anim_group_for_char $p2 {animGroup} "PRO"
set_char_heading $p2 {heading} 260.509
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:RUN_CO_340
gosub @RUN_CO_1164
set_fixed_camera_position 713.8377 {y} -575.1109 {z} 16.933 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 713.3706 {y} -574.2305 {z} 16.8514 {switchStyle} SwitchType.JumpCut
gosub @RUN_CO_1289
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
switch_widescreen False
print_help_forever 'RUN_XX'

:RUN_CO_443
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_809
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_CO_769
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad2
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  $LStickX > 100
goto_if_false @RUN_CO_573
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_CO_559
34@ = 0

:RUN_CO_559
gosub @RUN_CO_1330
TIMERB = 0

:RUN_CO_573
if and
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftStickX
  -100 > $LStickX
goto_if_false @RUN_CO_643
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_CO_629
34@ = 5

:RUN_CO_629
gosub @RUN_CO_1330
TIMERB = 0

:RUN_CO_643
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadRight
goto_if_false @RUN_CO_706
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_CO_692
34@ = 0

:RUN_CO_692
gosub @RUN_CO_1330
TIMERB = 0

:RUN_CO_706
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.DpadLeft
goto_if_false @RUN_CO_769
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_CO_755
34@ = 5

:RUN_CO_755
gosub @RUN_CO_1330
TIMERB = 0

:RUN_CO_769
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Cross
goto_if_false @RUN_CO_802
gosub @RUN_CO_1205
clear_help 
goto @RUN_CO_809

:RUN_CO_802
goto @RUN_CO_443

:RUN_CO_809
print_help 'RUN_06'

:RUN_CO_820
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_945
wait 0
gosub @RUN_CO_1674
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_938
if 
  not is_char_in_any_car $scplayer
goto_if_false @RUN_CO_938
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @RUN_CO_928
gosub @RUN_CO_1853
goto @RUN_CO_938

:RUN_CO_928
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:RUN_CO_938
goto @RUN_CO_820

:RUN_CO_945
goto @RUN_CO_952

:RUN_CO_952
if 
  is_char_dead $scplayer
goto_if_false @RUN_CO_984
print_now 'RUN_03' {time} 4000 {flag} 1

:RUN_CO_984
if 
  is_char_dead $p2
goto_if_false @RUN_CO_1016
print_now 'RUN_04' {time} 4000 {flag} 1

:RUN_CO_1016
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @RUN_CO_1053
print_now 'RUN_05' {time} 4000 {flag} 1

:RUN_CO_1053
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
return 

:RUN_CO_1097
hide_all_frontend_blips False
$flag_car_normal_carmod = 0
$onmission = 0
clear_wanted_level $player1
mark_model_as_no_longer_needed 131
mark_model_as_no_longer_needed 151
mark_model_as_no_longer_needed 169
mark_model_as_no_longer_needed 246
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 40
remove_animation "KISSING"
mission_has_finished 
return 

:RUN_CO_1164
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_CO_1203
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:RUN_CO_1203
return 

:RUN_CO_1205
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @RUN_CO_1244
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:RUN_CO_1244
restore_camera_jumpcut 
return 

:RUN_CO_1248
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:RUN_CO_1263
if 
  get_fading_status 
goto_if_false @RUN_CO_1287
wait 0
goto @RUN_CO_1263

:RUN_CO_1287
return 

:RUN_CO_1289
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:RUN_CO_1304
if 
  get_fading_status 
goto_if_false @RUN_CO_1328
wait 0
goto @RUN_CO_1304

:RUN_CO_1328
return 

:RUN_CO_1330
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_CO_1672 {caseNum1} 0 {caseLabel1} @RUN_CO_1393 {caseNum2} 1 {caseLabel2} @RUN_CO_1440 {caseNum3} 2 {caseLabel3} @RUN_CO_1487 {caseNum4} 3 {caseLabel4} @RUN_CO_1534 {caseNum5} 4 {caseLabel5} @RUN_CO_1581 {caseNum6} 5 {caseLabel6} @RUN_CO_1628 {caseNum7} -1 {caseLabel7} @RUN_CO_1672

:RUN_CO_1393
request_model 131

:RUN_CO_1398
if 
  not has_model_loaded 131
goto_if_false @RUN_CO_1425
wait 0
goto @RUN_CO_1398

:RUN_CO_1425
set_player_model $player2 {modelId} 131
goto @RUN_CO_1672

:RUN_CO_1440
request_model 151

:RUN_CO_1445
if 
  not has_model_loaded 151
goto_if_false @RUN_CO_1472
wait 0
goto @RUN_CO_1445

:RUN_CO_1472
set_player_model $player2 {modelId} 151
goto @RUN_CO_1672

:RUN_CO_1487
request_model 169

:RUN_CO_1492
if 
  not has_model_loaded 169
goto_if_false @RUN_CO_1519
wait 0
goto @RUN_CO_1492

:RUN_CO_1519
set_player_model $player2 {modelId} 169
goto @RUN_CO_1672

:RUN_CO_1534
request_model 246

:RUN_CO_1539
if 
  not has_model_loaded 246
goto_if_false @RUN_CO_1566
wait 0
goto @RUN_CO_1539

:RUN_CO_1566
set_player_model $player2 {modelId} 246
goto @RUN_CO_1672

:RUN_CO_1581
request_model 245

:RUN_CO_1586
if 
  not has_model_loaded 245
goto_if_false @RUN_CO_1613
wait 0
goto @RUN_CO_1586

:RUN_CO_1613
set_player_model $player2 {modelId} 245
goto @RUN_CO_1672

:RUN_CO_1628
request_model 40

:RUN_CO_1632
if 
  not has_model_loaded 40
goto_if_false @RUN_CO_1658
wait 0
goto @RUN_CO_1632

:RUN_CO_1658
set_player_model $player2 {modelId} 40
goto @RUN_CO_1672

:RUN_CO_1672
return 

:RUN_CO_1674
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_CO_1689

:RUN_CO_1689
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_CO_1704

:RUN_CO_1704
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_CO_1719

:RUN_CO_1719
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_CO_1755
if 
  not is_char_dead $p2
goto_if_false @RUN_CO_1755
task_die $p2

:RUN_CO_1755
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_CO_1770

:RUN_CO_1770
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_CO_1806
if 
  not is_char_dead $scplayer
goto_if_false @RUN_CO_1806
task_die $scplayer

:RUN_CO_1806
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_CO_1851
if 
  not is_char_dead $scplayer
goto_if_false @RUN_CO_1851
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:RUN_CO_1851
return 

:RUN_CO_1853
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_2212
if 
  49@ == 0
goto_if_false @RUN_CO_2205
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @RUN_CO_2198
if 
  is_char_stopped $p2
goto_if_false @RUN_CO_2198
35@, 38@, 41@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 35@ {y} 38@ {z} 41@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @RUN_CO_2171
if 
  50@ == 0
goto_if_false @RUN_CO_2036
print_help_forever 'GF_0021'
50@ = 1

:RUN_CO_2036
35@, 38@, 41@ = get_char_coordinates $scplayer
36@, 39@, 42@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_CO_2164
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @RUN_CO_2164
49@ = 1
gosub @RUN_CO_2214

:RUN_CO_2164
goto @RUN_CO_2198

:RUN_CO_2171
if 
  50@ == 1
goto_if_false @RUN_CO_2198
clear_help 
50@ = 0

:RUN_CO_2198
goto @RUN_CO_2212

:RUN_CO_2205
gosub @RUN_CO_2214

:RUN_CO_2212
return 

:RUN_CO_2214
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_CO_3656 {caseNum1} 1 {caseLabel1} @RUN_CO_2277 {caseNum2} 2 {caseLabel2} @RUN_CO_2474 {caseNum3} 3 {caseLabel3} @RUN_CO_2988 {caseNum4} 4 {caseLabel4} @RUN_CO_3157 {caseNum5} -1 {caseLabel5} @RUN_CO_3656 {caseNum6} -1 {caseLabel6} @RUN_CO_3656 {caseNum7} -1 {caseLabel7} @RUN_CO_3656

:RUN_CO_2277
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_2467
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_off 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
49@ += 1

:RUN_CO_2467
goto @RUN_CO_3656

:RUN_CO_2474
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_2981
47@ = get_script_task_status $scplayer {taskId} 1593
48@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_CO_2833
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
37@, 40@, 43@ = get_char_coordinates $p2
43@ = get_ground_z_for_3d_coord 37@ {y} 40@ {z} 43@
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 35@ {fromY} 38@ {fromZ} 41@ {toX} 36@ {toY} 39@ {toZ} 42@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @RUN_CO_2805
set_fixed_camera_position 35@ {y} 38@ {z} 41@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 36@ {y} 39@ {z} 42@ {switchStyle} SwitchType.JumpCut

:RUN_CO_2805
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
49@ += 1
goto @RUN_CO_2981

:RUN_CO_2833
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_CO_2894
47@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_CO_2894
task_stand_still $scplayer {time} -1

:RUN_CO_2894
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_CO_2981
48@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_CO_2981
task_stand_still $p2 {time} -1
44@ = get_char_heading $scplayer
44@ += 180.0
set_char_heading $p2 {heading} 44@

:RUN_CO_2981
goto @RUN_CO_3656

:RUN_CO_2988
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_3150
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
49@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:RUN_CO_3150
goto @RUN_CO_3656

:RUN_CO_3157
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @RUN_CO_3649
44@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @RUN_CO_3242
44@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:RUN_CO_3242
if 
  44@ > -1.0
goto_if_false @RUN_CO_3464
if 
  44@ == 1.0
goto_if_false @RUN_CO_3457
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_CO_3457
goto @RUN_CO_3649

:RUN_CO_3464
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 37@ {y} 40@ {z} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
36@, 39@, 42@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
switch_ped_roads_back_to_original 35@ {leftBottomY} 38@ {leftBottomZ} 41@ {rightTopX} 36@ {rightTopY} 39@ {rightTopZ} 42@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 0

:RUN_CO_3649
goto @RUN_CO_3656

:RUN_CO_3656
return 

//-------------Mission 145---------------
// Originally: Run-around (2player)

:R_MILY
script_name 'R_MILY'
gosub @R_MILY_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_MILY_38
gosub @R_MILY_568

:R_MILY_38
gosub @R_MILY_694
terminate_this_script 

:R_MILY_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_MILY_823
wait 0
request_model 194
request_animation "KISSING"

:R_MILY_113
if or
  not has_model_loaded 194
  not has_animation_loaded "KISSING"
goto_if_false @R_MILY_151
wait 0
goto @R_MILY_113

:R_MILY_151
TIMERA = 0
clear_area 2029.306 {y} 2732.5879 {z} 9.8203 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_MILY_330
set_char_coordinates $scplayer {x} 2029.306 {y} 2732.5879 {z} 9.8203
set_char_heading $scplayer {heading} 0.7089
$player2 = create_player 1 {x} 2027.131 {y} 2732.603 {z} 9.8203
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 0.7089
set_player_model $player2 {modelId} 194
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_MILY_330
gosub @R_MILY_737
set_fixed_camera_position 2028.41 {y} 2737.5979 {z} 13.2972 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2028.422 {y} 2736.655 {z} 12.967 {switchStyle} SwitchType.JumpCut
gosub @R_MILY_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_MILY_778
print_help 'RUN_06'

:R_MILY_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_MILY_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_MILY_537
gosub @R_MILY_1084
goto @R_MILY_547

:R_MILY_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_MILY_547
gosub @R_MILY_905
goto @R_MILY_436

:R_MILY_561
goto @R_MILY_568

:R_MILY_568
if 
  is_char_dead $scplayer
goto_if_false @R_MILY_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_MILY_600
if 
  is_char_dead $p2
goto_if_false @R_MILY_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_MILY_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_MILY_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_MILY_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_MILY_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 194
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_MILY_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_MILY_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_MILY_776
return 

:R_MILY_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_MILY_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_MILY_819
restore_camera_jumpcut 
return 

:R_MILY_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_MILY_838
if 
  get_fading_status 
goto_if_false @R_MILY_862
wait 0
goto @R_MILY_838

:R_MILY_862
return 

:R_MILY_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_MILY_879
if 
  get_fading_status 
goto_if_false @R_MILY_903
wait 0
goto @R_MILY_879

:R_MILY_903
return 

:R_MILY_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_MILY_920

:R_MILY_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_MILY_935

:R_MILY_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_MILY_950

:R_MILY_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_MILY_986
if 
  not is_char_dead $p2
goto_if_false @R_MILY_986
task_die $p2

:R_MILY_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_MILY_1001

:R_MILY_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_MILY_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_MILY_1037
task_die $scplayer

:R_MILY_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_MILY_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_MILY_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_MILY_1082
return 

:R_MILY_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_1443
if 
  48@ == 0
goto_if_false @R_MILY_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_MILY_1429
if 
  is_char_stopped $p2
goto_if_false @R_MILY_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_MILY_1402
if 
  49@ == 0
goto_if_false @R_MILY_1267
print_help_forever 'GF_0021'
49@ = 1

:R_MILY_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_MILY_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_MILY_1395
48@ = 1
gosub @R_MILY_1445

:R_MILY_1395
goto @R_MILY_1429

:R_MILY_1402
if 
  49@ == 1
goto_if_false @R_MILY_1429
clear_help 
49@ = 0

:R_MILY_1429
goto @R_MILY_1443

:R_MILY_1436
gosub @R_MILY_1445

:R_MILY_1443
return 

:R_MILY_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_MILY_2887 {caseNum1} 1 {caseLabel1} @R_MILY_1508 {caseNum2} 2 {caseLabel2} @R_MILY_1705 {caseNum3} 3 {caseLabel3} @R_MILY_2219 {caseNum4} 4 {caseLabel4} @R_MILY_2388 {caseNum5} -1 {caseLabel5} @R_MILY_2887 {caseNum6} -1 {caseLabel6} @R_MILY_2887 {caseNum7} -1 {caseLabel7} @R_MILY_2887

:R_MILY_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_MILY_1698
goto @R_MILY_2887

:R_MILY_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MILY_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_MILY_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_MILY_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_MILY_2212

:R_MILY_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_MILY_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_MILY_2125
task_stand_still $scplayer {time} -1

:R_MILY_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MILY_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_MILY_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_MILY_2212
goto @R_MILY_2887

:R_MILY_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_MILY_2381
goto @R_MILY_2887

:R_MILY_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MILY_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_MILY_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_MILY_2473
if 
  43@ > -1.0
goto_if_false @R_MILY_2695
if 
  43@ == 1.0
goto_if_false @R_MILY_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_MILY_2688
goto @R_MILY_2880

:R_MILY_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_MILY_2880
goto @R_MILY_2887

:R_MILY_2887
return 

//-------------Mission 146---------------
// Originally: Run-around (2player)

:R_SUZI
script_name 'R_SUZI'
gosub @R_SUZI_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_SUZI_38
gosub @R_SUZI_568

:R_SUZI_38
gosub @R_SUZI_694
terminate_this_script 

:R_SUZI_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_SUZI_823
wait 0
request_model 193
request_animation "KISSING"

:R_SUZI_113
if or
  not has_model_loaded 193
  not has_animation_loaded "KISSING"
goto_if_false @R_SUZI_151
wait 0
goto @R_SUZI_113

:R_SUZI_151
TIMERA = 0
clear_area -2574.303 {y} 1151.564 {z} 54.7333 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_SUZI_330
set_char_coordinates $scplayer {x} -2571.8269 {y} 1150.589 {z} 54.7333
set_char_heading $scplayer {heading} 156.4741
$player2 = create_player 1 {x} -2570.0669 {y} 1150.097 {z} 54.7333
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 163.1839
set_player_model $player2 {modelId} 193
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_SUZI_330
gosub @R_SUZI_737
set_fixed_camera_position -2572.03 {y} 1146.816 {z} 57.1697 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2571.7529 {y} 1147.731 {z} 56.875 {switchStyle} SwitchType.JumpCut
gosub @R_SUZI_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_SUZI_778
print_help 'RUN_06'

:R_SUZI_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_SUZI_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_SUZI_537
gosub @R_SUZI_1084
goto @R_SUZI_547

:R_SUZI_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_SUZI_547
gosub @R_SUZI_905
goto @R_SUZI_436

:R_SUZI_561
goto @R_SUZI_568

:R_SUZI_568
if 
  is_char_dead $scplayer
goto_if_false @R_SUZI_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_SUZI_600
if 
  is_char_dead $p2
goto_if_false @R_SUZI_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_SUZI_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_SUZI_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_SUZI_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_SUZI_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 193
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_SUZI_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_SUZI_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_SUZI_776
return 

:R_SUZI_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_SUZI_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_SUZI_819
restore_camera_jumpcut 
return 

:R_SUZI_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_SUZI_838
if 
  get_fading_status 
goto_if_false @R_SUZI_862
wait 0
goto @R_SUZI_838

:R_SUZI_862
return 

:R_SUZI_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_SUZI_879
if 
  get_fading_status 
goto_if_false @R_SUZI_903
wait 0
goto @R_SUZI_879

:R_SUZI_903
return 

:R_SUZI_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_SUZI_920

:R_SUZI_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_SUZI_935

:R_SUZI_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_SUZI_950

:R_SUZI_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_SUZI_986
if 
  not is_char_dead $p2
goto_if_false @R_SUZI_986
task_die $p2

:R_SUZI_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_SUZI_1001

:R_SUZI_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_SUZI_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_SUZI_1037
task_die $scplayer

:R_SUZI_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_SUZI_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_SUZI_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_SUZI_1082
return 

:R_SUZI_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_1443
if 
  48@ == 0
goto_if_false @R_SUZI_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_SUZI_1429
if 
  is_char_stopped $p2
goto_if_false @R_SUZI_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_SUZI_1402
if 
  49@ == 0
goto_if_false @R_SUZI_1267
print_help_forever 'GF_0021'
49@ = 1

:R_SUZI_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_SUZI_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_SUZI_1395
48@ = 1
gosub @R_SUZI_1445

:R_SUZI_1395
goto @R_SUZI_1429

:R_SUZI_1402
if 
  49@ == 1
goto_if_false @R_SUZI_1429
clear_help 
49@ = 0

:R_SUZI_1429
goto @R_SUZI_1443

:R_SUZI_1436
gosub @R_SUZI_1445

:R_SUZI_1443
return 

:R_SUZI_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_SUZI_2887 {caseNum1} 1 {caseLabel1} @R_SUZI_1508 {caseNum2} 2 {caseLabel2} @R_SUZI_1705 {caseNum3} 3 {caseLabel3} @R_SUZI_2219 {caseNum4} 4 {caseLabel4} @R_SUZI_2388 {caseNum5} -1 {caseLabel5} @R_SUZI_2887 {caseNum6} -1 {caseLabel6} @R_SUZI_2887 {caseNum7} -1 {caseLabel7} @R_SUZI_2887

:R_SUZI_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_SUZI_1698
goto @R_SUZI_2887

:R_SUZI_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_SUZI_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_SUZI_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_SUZI_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_SUZI_2212

:R_SUZI_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_SUZI_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_SUZI_2125
task_stand_still $scplayer {time} -1

:R_SUZI_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_SUZI_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_SUZI_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_SUZI_2212
goto @R_SUZI_2887

:R_SUZI_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_SUZI_2381
goto @R_SUZI_2887

:R_SUZI_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_SUZI_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_SUZI_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_SUZI_2473
if 
  43@ > -1.0
goto_if_false @R_SUZI_2695
if 
  43@ == 1.0
goto_if_false @R_SUZI_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_SUZI_2688
goto @R_SUZI_2880

:R_SUZI_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_SUZI_2880
goto @R_SUZI_2887

:R_SUZI_2887
return 

//-------------Mission 147---------------
// Originally: Run-around (2player)

:R_BARB
script_name 'R_BARB'
gosub @R_BARB_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_BARB_38
gosub @R_BARB_568

:R_BARB_38
gosub @R_BARB_694
terminate_this_script 

:R_BARB_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_BARB_823
wait 0
request_model 190
request_animation "KISSING"

:R_BARB_113
if or
  not has_model_loaded 190
  not has_animation_loaded "KISSING"
goto_if_false @R_BARB_151
wait 0
goto @R_BARB_113

:R_BARB_151
TIMERA = 0
clear_area -1391.616 {y} 2637.604 {z} 54.9843 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_BARB_330
set_char_coordinates $scplayer {x} -1391.616 {y} 2637.604 {z} 54.9843
set_char_heading $scplayer {heading} 129.2336
$player2 = create_player 1 {x} -1390.879 {y} 2636.415 {z} 54.9843
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 129.2336
set_player_model $player2 {modelId} 190
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_BARB_330
gosub @R_BARB_737
set_fixed_camera_position -1395.236 {y} 2633.939 {z} 57.8633 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1394.498 {y} 2634.542 {z} 57.5606 {switchStyle} SwitchType.JumpCut
gosub @R_BARB_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_BARB_778
print_help 'RUN_06'

:R_BARB_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_BARB_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_BARB_537
gosub @R_BARB_1084
goto @R_BARB_547

:R_BARB_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_BARB_547
gosub @R_BARB_905
goto @R_BARB_436

:R_BARB_561
goto @R_BARB_568

:R_BARB_568
if 
  is_char_dead $scplayer
goto_if_false @R_BARB_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_BARB_600
if 
  is_char_dead $p2
goto_if_false @R_BARB_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_BARB_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_BARB_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_BARB_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_BARB_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 190
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_BARB_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_BARB_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_BARB_776
return 

:R_BARB_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_BARB_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_BARB_819
restore_camera_jumpcut 
return 

:R_BARB_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_BARB_838
if 
  get_fading_status 
goto_if_false @R_BARB_862
wait 0
goto @R_BARB_838

:R_BARB_862
return 

:R_BARB_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_BARB_879
if 
  get_fading_status 
goto_if_false @R_BARB_903
wait 0
goto @R_BARB_879

:R_BARB_903
return 

:R_BARB_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_BARB_920

:R_BARB_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_BARB_935

:R_BARB_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_BARB_950

:R_BARB_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_BARB_986
if 
  not is_char_dead $p2
goto_if_false @R_BARB_986
task_die $p2

:R_BARB_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_BARB_1001

:R_BARB_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_BARB_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_BARB_1037
task_die $scplayer

:R_BARB_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_BARB_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_BARB_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_BARB_1082
return 

:R_BARB_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_1443
if 
  48@ == 0
goto_if_false @R_BARB_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_BARB_1429
if 
  is_char_stopped $p2
goto_if_false @R_BARB_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_BARB_1402
if 
  49@ == 0
goto_if_false @R_BARB_1267
print_help_forever 'GF_0021'
49@ = 1

:R_BARB_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_BARB_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_BARB_1395
48@ = 1
gosub @R_BARB_1445

:R_BARB_1395
goto @R_BARB_1429

:R_BARB_1402
if 
  49@ == 1
goto_if_false @R_BARB_1429
clear_help 
49@ = 0

:R_BARB_1429
goto @R_BARB_1443

:R_BARB_1436
gosub @R_BARB_1445

:R_BARB_1443
return 

:R_BARB_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_BARB_2887 {caseNum1} 1 {caseLabel1} @R_BARB_1508 {caseNum2} 2 {caseLabel2} @R_BARB_1705 {caseNum3} 3 {caseLabel3} @R_BARB_2219 {caseNum4} 4 {caseLabel4} @R_BARB_2388 {caseNum5} -1 {caseLabel5} @R_BARB_2887 {caseNum6} -1 {caseLabel6} @R_BARB_2887 {caseNum7} -1 {caseLabel7} @R_BARB_2887

:R_BARB_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_BARB_1698
goto @R_BARB_2887

:R_BARB_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_BARB_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_BARB_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_BARB_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_BARB_2212

:R_BARB_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_BARB_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_BARB_2125
task_stand_still $scplayer {time} -1

:R_BARB_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_BARB_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_BARB_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_BARB_2212
goto @R_BARB_2887

:R_BARB_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_BARB_2381
goto @R_BARB_2887

:R_BARB_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_BARB_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_BARB_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_BARB_2473
if 
  43@ > -1.0
goto_if_false @R_BARB_2695
if 
  43@ == 1.0
goto_if_false @R_BARB_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_BARB_2688
goto @R_BARB_2880

:R_BARB_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_BARB_2880
goto @R_BARB_2887

:R_BARB_2887
return 

//-------------Mission 148---------------
// Originally: Run-around (2player)

:R_KYLIE
script_name 'R_KYLIE'
gosub @R_KYLIE_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_KYLIE_38
gosub @R_KYLIE_568

:R_KYLIE_38
gosub @R_KYLIE_694
terminate_this_script 

:R_KYLIE_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_KYLIE_823
wait 0
request_model 191
request_animation "KISSING"

:R_KYLIE_113
if or
  not has_model_loaded 191
  not has_animation_loaded "KISSING"
goto_if_false @R_KYLIE_151
wait 0
goto @R_KYLIE_113

:R_KYLIE_151
TIMERA = 0
clear_area -381.5365 {y} -1425.3521 {z} 24.9571 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_KYLIE_330
set_char_coordinates $scplayer {x} -381.3404 {y} -1426.902 {z} 24.9079
set_char_heading $scplayer {heading} 270.0
$player2 = create_player 1 {x} -381.5365 {y} -1425.3521 {z} 24.9571
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 270.0
set_player_model $player2 {modelId} 191
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_KYLIE_330
gosub @R_KYLIE_737
set_fixed_camera_position -376.3109 {y} -1426.436 {z} 27.8865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -377.2638 {y} -1426.4139 {z} 27.5841 {switchStyle} SwitchType.JumpCut
gosub @R_KYLIE_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_KYLIE_778
print_help 'RUN_06'

:R_KYLIE_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_KYLIE_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_KYLIE_537
gosub @R_KYLIE_1084
goto @R_KYLIE_547

:R_KYLIE_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_KYLIE_547
gosub @R_KYLIE_905
goto @R_KYLIE_436

:R_KYLIE_561
goto @R_KYLIE_568

:R_KYLIE_568
if 
  is_char_dead $scplayer
goto_if_false @R_KYLIE_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_KYLIE_600
if 
  is_char_dead $p2
goto_if_false @R_KYLIE_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_KYLIE_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_KYLIE_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_KYLIE_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_KYLIE_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 191
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_KYLIE_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_KYLIE_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_KYLIE_776
return 

:R_KYLIE_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_KYLIE_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_KYLIE_819
restore_camera_jumpcut 
return 

:R_KYLIE_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_KYLIE_838
if 
  get_fading_status 
goto_if_false @R_KYLIE_862
wait 0
goto @R_KYLIE_838

:R_KYLIE_862
return 

:R_KYLIE_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_KYLIE_879
if 
  get_fading_status 
goto_if_false @R_KYLIE_903
wait 0
goto @R_KYLIE_879

:R_KYLIE_903
return 

:R_KYLIE_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_KYLIE_920

:R_KYLIE_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_KYLIE_935

:R_KYLIE_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_KYLIE_950

:R_KYLIE_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_KYLIE_986
if 
  not is_char_dead $p2
goto_if_false @R_KYLIE_986
task_die $p2

:R_KYLIE_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_KYLIE_1001

:R_KYLIE_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_KYLIE_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_KYLIE_1037
task_die $scplayer

:R_KYLIE_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_KYLIE_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_KYLIE_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_KYLIE_1082
return 

:R_KYLIE_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_1443
if 
  48@ == 0
goto_if_false @R_KYLIE_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_KYLIE_1429
if 
  is_char_stopped $p2
goto_if_false @R_KYLIE_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_KYLIE_1402
if 
  49@ == 0
goto_if_false @R_KYLIE_1267
print_help_forever 'GF_0021'
49@ = 1

:R_KYLIE_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_KYLIE_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_KYLIE_1395
48@ = 1
gosub @R_KYLIE_1445

:R_KYLIE_1395
goto @R_KYLIE_1429

:R_KYLIE_1402
if 
  49@ == 1
goto_if_false @R_KYLIE_1429
clear_help 
49@ = 0

:R_KYLIE_1429
goto @R_KYLIE_1443

:R_KYLIE_1436
gosub @R_KYLIE_1445

:R_KYLIE_1443
return 

:R_KYLIE_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_KYLIE_2887 {caseNum1} 1 {caseLabel1} @R_KYLIE_1508 {caseNum2} 2 {caseLabel2} @R_KYLIE_1705 {caseNum3} 3 {caseLabel3} @R_KYLIE_2219 {caseNum4} 4 {caseLabel4} @R_KYLIE_2388 {caseNum5} -1 {caseLabel5} @R_KYLIE_2887 {caseNum6} -1 {caseLabel6} @R_KYLIE_2887 {caseNum7} -1 {caseLabel7} @R_KYLIE_2887

:R_KYLIE_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_KYLIE_1698
goto @R_KYLIE_2887

:R_KYLIE_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_KYLIE_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_KYLIE_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_KYLIE_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_KYLIE_2212

:R_KYLIE_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_KYLIE_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_KYLIE_2125
task_stand_still $scplayer {time} -1

:R_KYLIE_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_KYLIE_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_KYLIE_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_KYLIE_2212
goto @R_KYLIE_2887

:R_KYLIE_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_KYLIE_2381
goto @R_KYLIE_2887

:R_KYLIE_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_KYLIE_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_KYLIE_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_KYLIE_2473
if 
  43@ > -1.0
goto_if_false @R_KYLIE_2695
if 
  43@ == 1.0
goto_if_false @R_KYLIE_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_KYLIE_2688
goto @R_KYLIE_2880

:R_KYLIE_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_KYLIE_2880
goto @R_KYLIE_2887

:R_KYLIE_2887
return 

//-------------Mission 149---------------
// Originally: Run-around (2player)

:R_COCH
script_name 'R_COCH'
gosub @R_COCH_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_COCH_38
gosub @R_COCH_568

:R_COCH_38
gosub @R_COCH_694
terminate_this_script 

:R_COCH_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_COCH_823
wait 0
request_model 195
request_animation "KISSING"

:R_COCH_113
if or
  not has_model_loaded 195
  not has_animation_loaded "KISSING"
goto_if_false @R_COCH_151
wait 0
goto @R_COCH_113

:R_COCH_151
TIMERA = 0
clear_area 2401.595 {y} -1720.311 {z} 12.6137 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_COCH_330
set_char_coordinates $scplayer {x} 2401.595 {y} -1720.311 {z} 12.6137
set_char_heading $scplayer {heading} 180.0
$player2 = create_player 1 {x} 2403.405 {y} -1720.3051 {z} 12.6171
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 180.0
set_player_model $player2 {modelId} 195
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_COCH_330
gosub @R_COCH_737
set_fixed_camera_position 2402.6851 {y} -1728.01 {z} 15.5387 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2402.698 {y} -1727.024 {z} 15.3723 {switchStyle} SwitchType.JumpCut
gosub @R_COCH_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_COCH_778
print_help 'RUN_06'

:R_COCH_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_COCH_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_COCH_537
gosub @R_COCH_1084
goto @R_COCH_547

:R_COCH_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_COCH_547
gosub @R_COCH_905
goto @R_COCH_436

:R_COCH_561
goto @R_COCH_568

:R_COCH_568
if 
  is_char_dead $scplayer
goto_if_false @R_COCH_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_COCH_600
if 
  is_char_dead $p2
goto_if_false @R_COCH_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_COCH_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_COCH_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_COCH_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_COCH_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 195
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_COCH_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_COCH_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_COCH_776
return 

:R_COCH_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_COCH_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_COCH_819
restore_camera_jumpcut 
return 

:R_COCH_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_COCH_838
if 
  get_fading_status 
goto_if_false @R_COCH_862
wait 0
goto @R_COCH_838

:R_COCH_862
return 

:R_COCH_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_COCH_879
if 
  get_fading_status 
goto_if_false @R_COCH_903
wait 0
goto @R_COCH_879

:R_COCH_903
return 

:R_COCH_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_COCH_920

:R_COCH_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_COCH_935

:R_COCH_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_COCH_950

:R_COCH_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_COCH_986
if 
  not is_char_dead $p2
goto_if_false @R_COCH_986
task_die $p2

:R_COCH_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_COCH_1001

:R_COCH_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_COCH_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_COCH_1037
task_die $scplayer

:R_COCH_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_COCH_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_COCH_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_COCH_1082
return 

:R_COCH_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_1443
if 
  48@ == 0
goto_if_false @R_COCH_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_COCH_1429
if 
  is_char_stopped $p2
goto_if_false @R_COCH_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_COCH_1402
if 
  49@ == 0
goto_if_false @R_COCH_1267
print_help_forever 'GF_0021'
49@ = 1

:R_COCH_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_COCH_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_COCH_1395
48@ = 1
gosub @R_COCH_1445

:R_COCH_1395
goto @R_COCH_1429

:R_COCH_1402
if 
  49@ == 1
goto_if_false @R_COCH_1429
clear_help 
49@ = 0

:R_COCH_1429
goto @R_COCH_1443

:R_COCH_1436
gosub @R_COCH_1445

:R_COCH_1443
return 

:R_COCH_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_COCH_2887 {caseNum1} 1 {caseLabel1} @R_COCH_1508 {caseNum2} 2 {caseLabel2} @R_COCH_1705 {caseNum3} 3 {caseLabel3} @R_COCH_2219 {caseNum4} 4 {caseLabel4} @R_COCH_2388 {caseNum5} -1 {caseLabel5} @R_COCH_2887 {caseNum6} -1 {caseLabel6} @R_COCH_2887 {caseNum7} -1 {caseLabel7} @R_COCH_2887

:R_COCH_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_COCH_1698
goto @R_COCH_2887

:R_COCH_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_COCH_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_COCH_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_COCH_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_COCH_2212

:R_COCH_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_COCH_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_COCH_2125
task_stand_still $scplayer {time} -1

:R_COCH_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_COCH_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_COCH_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_COCH_2212
goto @R_COCH_2887

:R_COCH_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_COCH_2381
goto @R_COCH_2887

:R_COCH_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_COCH_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_COCH_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_COCH_2473
if 
  43@ > -1.0
goto_if_false @R_COCH_2695
if 
  43@ == 1.0
goto_if_false @R_COCH_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_COCH_2688
goto @R_COCH_2880

:R_COCH_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_COCH_2880
goto @R_COCH_2887

:R_COCH_2887
return 

//-------------Mission 150---------------
// Originally: Run-around (2player)

:R_MICH
script_name 'R_MICH'
gosub @R_MICH_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_MICH_38
gosub @R_MICH_568

:R_MICH_38
gosub @R_MICH_694
terminate_this_script 

:R_MICH_47
hide_all_frontend_blips True
set_fading_colour 0 {g} 0 {b} 0
$flag_car_normal_carmod = 1
$onmission = 1
register_mission_given 
load_mission_text 'RUN_2P'
gosub @R_MICH_823
wait 0
request_model 192
request_animation "KISSING"

:R_MICH_113
if or
  not has_model_loaded 192
  not has_animation_loaded "KISSING"
goto_if_false @R_MICH_151
wait 0
goto @R_MICH_113

:R_MICH_151
TIMERA = 0
clear_area -1804.144 {y} 1199.7729 {z} 24.1172 {radius} 10.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @R_MICH_330
set_char_coordinates $scplayer {x} -1804.144 {y} 1199.7729 {z} 24.1172
set_char_heading $scplayer {heading} 184.5768
$player2 = create_player 1 {x} -1802.808 {y} 1199.912 {z} 24.1172
do_weapon_stuff_at_start_of_2p_game 
$p2 = get_player_char $player2
set_char_heading $p2 {heading} 184.5768
set_player_model $player2 {modelId} 192
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player2
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player2
set_player_player_targetting False
set_char_never_targetted $scplayer {state} True
set_char_never_targetted $p2 {state} True
set_two_player_camera_mode 2
limit_two_player_distance 20.0
disable_char_speech $p2 {stopNow} True

:R_MICH_330
gosub @R_MICH_737
set_fixed_camera_position -1802.895 {y} 1194.637 {z} 27.1164 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1802.969 {y} 1195.568 {z} 26.7584 {switchStyle} SwitchType.JumpCut
gosub @R_MICH_864
print_now 'RUN_02' {time} 5000 {flag} 1
wait 5000
clear_prints 
gosub @R_MICH_778
print_help 'RUN_06'

:R_MICH_436
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_561
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_547
if 
  not is_char_in_any_car $scplayer
goto_if_false @R_MICH_547
if and
  not has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.SprayCan
  not has_char_been_damaged_by_weapon $p2 {weaponType} WeaponType.SprayCan
goto_if_false @R_MICH_537
gosub @R_MICH_1084
goto @R_MICH_547

:R_MICH_537
clear_char_last_weapon_damage $scplayer
clear_char_last_weapon_damage $p2

:R_MICH_547
gosub @R_MICH_905
goto @R_MICH_436

:R_MICH_561
goto @R_MICH_568

:R_MICH_568
if 
  is_char_dead $scplayer
goto_if_false @R_MICH_600
print_now 'RUN_03' {time} 4000 {flag} 1

:R_MICH_600
if 
  is_char_dead $p2
goto_if_false @R_MICH_632
print_now 'RUN_04' {time} 4000 {flag} 1

:R_MICH_632
if and
  is_char_dead $p2
  is_char_dead $scplayer
goto_if_false @R_MICH_669
print_now 'RUN_05' {time} 4000 {flag} 1

:R_MICH_669
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
clear_wanted_level $player1
return 

:R_MICH_694
$flag_car_normal_carmod = 0
hide_all_frontend_blips True
mark_model_as_no_longer_needed 192
remove_animation "KISSING"
$onmission = 0
clear_wanted_level $player1
mission_has_finished 
return 

:R_MICH_737
switch_widescreen True
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_MICH_776
set_player_control $player1 {state} False
set_player_control $player2 {state} False

:R_MICH_776
return 

:R_MICH_778
set_camera_in_front_of_player 
switch_widescreen False
if and
  is_player_playing $player1
  is_player_playing $player2
goto_if_false @R_MICH_819
set_player_control $player1 {state} True
set_player_control $player2 {state} True

:R_MICH_819
restore_camera_jumpcut 
return 

:R_MICH_823
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:R_MICH_838
if 
  get_fading_status 
goto_if_false @R_MICH_862
wait 0
goto @R_MICH_838

:R_MICH_862
return 

:R_MICH_864
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:R_MICH_879
if 
  get_fading_status 
goto_if_false @R_MICH_903
wait 0
goto @R_MICH_879

:R_MICH_903
return 

:R_MICH_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_MICH_920

:R_MICH_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_MICH_935

:R_MICH_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_MICH_950

:R_MICH_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_MICH_986
if 
  not is_char_dead $p2
goto_if_false @R_MICH_986
task_die $p2

:R_MICH_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_MICH_1001

:R_MICH_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_MICH_1037
if 
  not is_char_dead $scplayer
goto_if_false @R_MICH_1037
task_die $scplayer

:R_MICH_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_MICH_1082
if 
  not is_char_dead $scplayer
goto_if_false @R_MICH_1082
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:R_MICH_1082
return 

:R_MICH_1084
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_1443
if 
  48@ == 0
goto_if_false @R_MICH_1436
if and
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $p2
goto_if_false @R_MICH_1429
if 
  is_char_stopped $p2
goto_if_false @R_MICH_1429
34@, 37@, 40@ = get_offset_from_char_in_world_coords $p2 {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 34@ {y} 37@ {z} 40@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @R_MICH_1402
if 
  49@ == 0
goto_if_false @R_MICH_1267
print_help_forever 'GF_0021'
49@ = 1

:R_MICH_1267
34@, 37@, 40@ = get_char_coordinates $scplayer
35@, 38@, 41@ = get_char_coordinates $p2
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_MICH_1395
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  is_button_pressed PadId.Pad2 {buttonId} Button.LeftShoulder1
goto_if_false @R_MICH_1395
48@ = 1
gosub @R_MICH_1445

:R_MICH_1395
goto @R_MICH_1429

:R_MICH_1402
if 
  49@ == 1
goto_if_false @R_MICH_1429
clear_help 
49@ = 0

:R_MICH_1429
goto @R_MICH_1443

:R_MICH_1436
gosub @R_MICH_1445

:R_MICH_1443
return 

:R_MICH_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_MICH_2887 {caseNum1} 1 {caseLabel1} @R_MICH_1508 {caseNum2} 2 {caseLabel2} @R_MICH_1705 {caseNum3} 3 {caseLabel3} @R_MICH_2219 {caseNum4} 4 {caseLabel4} @R_MICH_2388 {caseNum5} -1 {caseLabel5} @R_MICH_2887 {caseNum6} -1 {caseLabel6} @R_MICH_2887 {caseNum7} -1 {caseLabel7} @R_MICH_2887

:R_MICH_1508
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_1698
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $p2
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene $p2 {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_off 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
task_turn_char_to_face_char $scplayer {target} $p2
task_turn_char_to_face_char $p2 {target} $scplayer
48@ += 1

:R_MICH_1698
goto @R_MICH_2887

:R_MICH_1705
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_2212
46@ = get_script_task_status $scplayer {taskId} 1593
47@ = get_script_task_status $p2 {taskId} 1593
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MICH_2064
set_char_collision $scplayer {state} False
set_char_collision $p2 {state} False
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
41@ = get_ground_z_for_3d_coord 35@ {y} 38@ {z} 41@
36@, 39@, 42@ = get_char_coordinates $p2
42@ = get_ground_z_for_3d_coord 36@ {y} 39@ {z} 42@
set_char_coordinates $p2 {x} 35@ {y} 38@ {z} 41@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 34@ {fromY} 37@ {fromZ} 40@ {toX} 35@ {toY} 38@ {toZ} 41@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @R_MICH_2036
set_fixed_camera_position 34@ {y} 37@ {z} 40@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 35@ {y} 38@ {z} 41@ {switchStyle} SwitchType.JumpCut

:R_MICH_2036
task_stand_still $scplayer {time} -1
task_stand_still $p2 {time} -1
48@ += 1
goto @R_MICH_2212

:R_MICH_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_MICH_2125
46@ = get_script_task_status $scplayer {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_MICH_2125
task_stand_still $scplayer {time} -1

:R_MICH_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MICH_2212
47@ = get_script_task_status $p2 {taskId} 1466
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_MICH_2212
task_stand_still $p2 {time} -1
43@ = get_char_heading $scplayer
43@ += 180.0
set_char_heading $p2 {heading} 43@

:R_MICH_2212
goto @R_MICH_2887

:R_MICH_2219
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_2381
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim $p2 {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
48@ += 1
add_armour_to_char $scplayer {amount} 150
add_armour_to_char $p2 {amount} 100
set_char_health $scplayer {health} 200
set_char_health $p2 {health} 200

:R_MICH_2381
goto @R_MICH_2887

:R_MICH_2388
if and
  not is_char_dead $scplayer
  not is_char_dead $p2
goto_if_false @R_MICH_2880
43@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @R_MICH_2473
43@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:R_MICH_2473
if 
  43@ > -1.0
goto_if_false @R_MICH_2695
if 
  43@ == 1.0
goto_if_false @R_MICH_2688
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_MICH_2688
goto @R_MICH_2880

:R_MICH_2695
clear_char_tasks $scplayer
task_pause $p2 {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene $p2 {state} False
set_char_coordinates $p2 {x} 36@ {y} 39@ {z} 42@
34@, 37@, 40@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
35@, 38@, 41@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
switch_ped_roads_back_to_original 34@ {leftBottomY} 37@ {leftBottomZ} 40@ {rightTopX} 35@ {rightTopY} 38@ {rightTopZ} 41@
set_char_collision $scplayer {state} True
set_char_collision $p2 {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
48@ = 0

:R_MICH_2880
goto @R_MICH_2887

:R_MICH_2887
return 

//-------------External script 0 (PLAYER_PARACHUTE)---------------

:PLCHUTE
script_name 'PLCHUTE'
request_model 371

:PLCHUTE_16
if 
  not has_model_loaded 371
goto_if_false @PLCHUTE_43
wait 0
goto @PLCHUTE_16

:PLCHUTE_43
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_59

:PLCHUTE_59
$player_landed = 0
$player_fall_state = 0
$player_has_parachute = 0
if 
  $player_landed == 999
goto_if_false @PLCHUTE_118
$para_max_Vz = create_pickup 371 {pickupType} PickupType.Once {x} $player_x {y} $player_y {z} $player_z

:PLCHUTE_118
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_5455
if 
  not is_2player_game_going_on 
goto_if_false @PLCHUTE_5455
if 
  $player_fall_state <> 0
goto_if_false @PLCHUTE_176
set_player_cycle_weapon_button $player1 {enabled} False

:PLCHUTE_176
if 
  $player_has_parachute > 0
goto_if_false @PLCHUTE_219
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @PLCHUTE_219
gosub @PLCHUTE_5521

:PLCHUTE_219
if 
  $player_has_parachute == 0
goto_if_false @PLCHUTE_274
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @PLCHUTE_274
request_model #PARACHUTE
$player_has_parachute = 1
$player_landed = 0

:PLCHUTE_274
if 
  $player_has_parachute == 1
goto_if_false @PLCHUTE_377
if 
  has_model_loaded #PARACHUTE
goto_if_false @PLCHUTE_377
17@ = create_object #PARACHUTE {x} $player_x {y} $player_y {z} $player_z
attach_object_to_char 17@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 17@ {state} False
$player_has_parachute = 2

:PLCHUTE_377
if and
  $player_has_parachute == 2
  $player_fall_state == 1
goto_if_false @PLCHUTE_409
$player_has_parachute = 3

:PLCHUTE_409
if and
  $player_fall_state == 0
  $player_has_parachute > 0
goto_if_false @PLCHUTE_565
if 
  is_char_in_air $scplayer
goto_if_false @PLCHUTE_565
$para_Vx, $para_Vy, $para_Vz = get_char_velocity $scplayer
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_565
7@ = get_char_height_above_ground $scplayer
if 
  7@ > 20.0
goto_if_false @PLCHUTE_565
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundFreefallStart
$player_fall_state = 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
0@ = 0
$stunt_timer = 0.0

:PLCHUTE_565
if 
  $player_fall_state == 1
goto_if_false @PLCHUTE_2386
if 
  0@ == 0
goto_if_false @PLCHUTE_608
0@ = 2

:PLCHUTE_608
if 
  0@ == 2
goto_if_false @PLCHUTE_729
27@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_729
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
request_animation "PARACHUTE"
15@ = 1
1@ = get_char_heading $scplayer
0@ = 3

:PLCHUTE_729
if 
  0@ == 3
goto_if_false @PLCHUTE_2386
27@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_815
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PLCHUTE_815
7@ = get_char_height_above_ground $scplayer
if and
  100.0 > 7@
  7@ > 60.0
goto_if_false @PLCHUTE_912
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_912
if 
  $onmission == 0
goto_if_false @PLCHUTE_912
print_now 'PARA_01' {time} 1000 {flag} 1

:PLCHUTE_912
10@, 11@, 12@, 12@ = get_position_of_analogue_sticks PadId.Pad1
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_960
10@ = 0
11@ = 0

:PLCHUTE_960
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 5.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_1061
1@ -= 360.0

:PLCHUTE_1061
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_1092
1@ += 360.0

:PLCHUTE_1092
cset_lvar_float_to_lvar_int 22@ =# 11@
22@ /= 4.267
sub_float_lvar_from_float_lvar 22@ -= 3@
22@ /= 20.0
add_float_lvar_to_float_lvar 3@ += 22@
8@, 9@, $para_Vz = get_char_velocity $scplayer
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $para_Vz
goto_if_false @PLCHUTE_1177
set_var_float_to_var_float $para_Vz = $para_freefall_Vz

:PLCHUTE_1177
if 
  is_float_var_greater_than_float_var $stunt_timer > $para_Vz
goto_if_false @PLCHUTE_1204
set_var_float_to_var_float $stunt_timer = $para_Vz

:PLCHUTE_1204
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $stunt_timer
goto_if_false @PLCHUTE_1231
set_var_float_to_var_float $stunt_timer = $para_freefall_Vz

:PLCHUTE_1231
if and
  is_float_var_greater_than_float_var $para_Vz > $stunt_timer
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_1407
if 
  not is_char_in_water $scplayer
goto_if_false @PLCHUTE_1361
if 
  -20.0 > $stunt_timer
goto_if_false @PLCHUTE_1308
$player_fall_state = 2
goto @PLCHUTE_1354

:PLCHUTE_1308
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 100
$player_fall_state = 7

:PLCHUTE_1354
goto @PLCHUTE_1407

:PLCHUTE_1361
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 100
$player_fall_state = 7

:PLCHUTE_1407
set_lvar_float_to_lvar_float 4@ = 3@
4@ /= 30.0
mult_float_lvar_by_float_var 4@ *= $para_freefall_Vy
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vy *= -1.0
add_float_var_to_float_var $para_Vy += $para_default_Vy
set_lvar_float_to_lvar_float 21@ = 8@
sub_float_var_from_float_lvar 21@ -= $para_Vx
21@ *= 0.01
set_var_float_to_lvar_float $para_Vx = 8@
sub_float_lvar_from_float_var $para_Vx -= 21@
set_lvar_float_to_lvar_float 21@ = 9@
sub_float_var_from_float_lvar 21@ -= $para_Vy
21@ *= 0.01
set_var_float_to_lvar_float $para_Vy = 9@
sub_float_lvar_from_float_var $para_Vy -= 21@
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_2109
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_1872
if 
  10@ >= 0
goto_if_false @PLCHUTE_1751
if 
  15@ <> 2
goto_if_false @PLCHUTE_1751
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1744
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_R" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1744
15@ = 2

:PLCHUTE_1751
if 
  0 > 10@
goto_if_false @PLCHUTE_1865
if 
  15@ <> 3
goto_if_false @PLCHUTE_1865
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1858
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_L" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1858
15@ = 3

:PLCHUTE_1865
goto @PLCHUTE_2102

:PLCHUTE_1872
if 
  11@ >= 0
goto_if_false @PLCHUTE_1984
if 
  15@ <> 4
goto_if_false @PLCHUTE_1984
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1977
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1977
15@ = 4

:PLCHUTE_1984
if 
  0 > 11@
goto_if_false @PLCHUTE_2102
if 
  15@ <> 5
goto_if_false @PLCHUTE_2102
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2095
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_ACCEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_2095
15@ = 5

:PLCHUTE_2102
goto @PLCHUTE_2203

:PLCHUTE_2109
if 
  15@ <> 1
goto_if_false @PLCHUTE_2203
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2203
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
15@ = 1

:PLCHUTE_2203
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  $para_force_chute_open == 1
goto_if_false @PLCHUTE_2386
if 
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_2386
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2386
if and
  $player_has_parachute == 3
  $para_control_off == 0
goto_if_false @PLCHUTE_2386
task_play_anim_non_interruptable $scplayer {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundFreefallStop
set_var_int_to_lvar_int $para_pickup = TIMERA
$para_pickup += 1100
$player_fall_state = 3
0@ = 0

:PLCHUTE_2386
if 
  $player_fall_state == 2
goto_if_false @PLCHUTE_2504
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2492
set_char_heading $scplayer {heading} 1@
task_die_named_anim $scplayer {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPedDeathCrunch
goto @PLCHUTE_2497

:PLCHUTE_2492
task_die $scplayer

:PLCHUTE_2497
gosub @PLCHUTE_5521

:PLCHUTE_2504
if 
  $player_fall_state == 3
goto_if_false @PLCHUTE_4781
if 
  $para_pickup > 0
goto_if_false @PLCHUTE_2586
if 
  is_int_lvar_greater_than_int_var TIMERA > $para_pickup
goto_if_false @PLCHUTE_2586
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundParachuteOpen
$para_pickup = 0

:PLCHUTE_2586
if 
  0@ == 0
goto_if_false @PLCHUTE_2689
set_lvar_float_to_lvar_float 25@ = 3@
25@ /= 500.0
set_lvar_float_to_lvar_float 26@ = 2@
26@ /= 500.0
set_lvar_int_to_lvar_int 18@ = TIMERA
set_lvar_int_to_lvar_int 19@ = TIMERA
set_lvar_float_to_lvar_float 5@ = 4@
5@ *= -1.0
set_lvar_float_to_var_float 6@ = $para_Vz
0@ = 1

:PLCHUTE_2689
if 
  0@ == 1
goto_if_false @PLCHUTE_2856
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_2829
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 18@
set_lvar_int_to_lvar_int 18@ = TIMERA
cset_lvar_float_to_lvar_int 21@ =# 10@
set_lvar_float_to_lvar_float 22@ = 25@
mult_float_lvar_by_float_lvar 22@ *= 21@
set_lvar_float_to_lvar_float 23@ = 26@
mult_float_lvar_by_float_lvar 23@ *= 21@
sub_float_lvar_from_float_lvar 3@ -= 22@
sub_float_lvar_from_float_lvar 2@ -= 23@
goto @PLCHUTE_2856

:PLCHUTE_2829
2@ = 0.0
3@ = 0.0
0@ = 2

:PLCHUTE_2856
if 
  0@ == 2
goto_if_false @PLCHUTE_2964
if 
  does_object_exist 17@
goto_if_false @PLCHUTE_2964
set_object_visible 17@ {state} True
set_object_scale 17@ {scale} 0.0
set_lvar_int_to_lvar_int 19@ = TIMERA
wait 0
play_object_anim 17@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
0@ = 3

:PLCHUTE_2964
if 
  0@ == 3
goto_if_false @PLCHUTE_3067
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_3050
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 500.0
set_object_scale 17@ {scale} 21@
goto @PLCHUTE_3067

:PLCHUTE_3050
set_object_scale 17@ {scale} 1.0
0@ = 4

:PLCHUTE_3067
if 
  0@ == 5
goto_if_false @PLCHUTE_3136
20@ = create_object #PARA_COLLISION {x} 0.0 {y} 0.0 {z} 0.0
set_object_visible 20@ {state} False
set_object_dynamic 20@ {state} True
set_object_records_collisions 20@ {state} True
0@ = 6

:PLCHUTE_3136
if 
  0@ == 6
goto_if_false @PLCHUTE_4354
10@, 11@, 12@, 12@ = get_position_of_analogue_sticks PadId.Pad1
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_3202
10@ = 0
11@ = 0

:PLCHUTE_3202
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 15.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_3303
1@ -= 360.0

:PLCHUTE_3303
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_3334
1@ += 360.0

:PLCHUTE_3334
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_var $para_Vx *= $para_float_Vy
mult_float_var_by_float_var $para_Vy *= $para_float_Vy
$para_Vx *= -1.0
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_4066
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_3741
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  10@ >= 0
goto_if_false @PLCHUTE_3607
if 
  15@ <> 2
goto_if_false @PLCHUTE_3607
task_play_anim_non_interruptable $scplayer {animationName} "PARA_STEERR" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_STEERR_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 2

:PLCHUTE_3607
if 
  0 > 10@
goto_if_false @PLCHUTE_3734
if 
  15@ <> 3
goto_if_false @PLCHUTE_3734
task_play_anim_non_interruptable $scplayer {animationName} "PARA_STEERL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_STEERL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 3

:PLCHUTE_3734
goto @PLCHUTE_4059

:PLCHUTE_3741
if 
  11@ >= 0
goto_if_false @PLCHUTE_3900
set_lvar_float_to_var_float 21@ = $para_flare_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 4
goto_if_false @PLCHUTE_3900
task_play_anim_non_interruptable $scplayer {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 4

:PLCHUTE_3900
if 
  0 > 11@
goto_if_false @PLCHUTE_4059
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4059
task_play_anim_non_interruptable $scplayer {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 5

:PLCHUTE_4059
goto @PLCHUTE_4225

:PLCHUTE_4066
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4225
if 
  15@ <> 1
goto_if_false @PLCHUTE_4225
task_play_anim_non_interruptable $scplayer {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 1

:PLCHUTE_4225
$x, $y, $z = get_object_coordinates 17@
set_object_coordinates_and_velocity 20@ {x} $x {y} $y {z} $z
if 
  has_object_collided_with_anything 20@
goto_if_false @PLCHUTE_4318
play_object_anim 17@ {animationName} "PARA_RIP_LOOP_O" {animationFile} "PARACHUTE" {frameDelta} 8.0 {lockF} True {loop} True
0@ = 7

:PLCHUTE_4318
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLCHUTE_4354
clear_char_tasks $scplayer
$player_fall_state = 6
$player_landed = 3

:PLCHUTE_4354
if 
  does_object_exist 17@
goto_if_false @PLCHUTE_4593
if 
  is_object_playing_anim 17@ {animationName} "PARA_OPEN_O"
goto_if_false @PLCHUTE_4593
21@ = get_object_anim_current_time 17@ {animationName} "PARA_OPEN_O"
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $para_float_Vz
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_var_float_to_lvar_float $para_Vz = 6@
sub_float_lvar_from_float_var $para_Vz -= 23@
set_lvar_float_to_lvar_float 22@ = 5@
sub_float_var_from_float_lvar 22@ -= $para_float_Vy
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_lvar_float_to_lvar_float 4@ = 5@
sub_float_lvar_from_float_lvar 4@ -= 23@
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vx *= -1.0
if and
  21@ == 1.0
  0@ == 4
goto_if_false @PLCHUTE_4593
0@ = 5

:PLCHUTE_4593
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_4781
if 
  is_char_in_water $scplayer
goto_if_false @PLCHUTE_4732
task_play_anim_non_interruptable $scplayer {animationName} "PARA_LAND_WATER" {animationFile} "PARACHUTE" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} False {keepLastFrame} False {time} 1000
play_object_anim 17@ {animationName} "PARA_LAND_WATER_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$player_fall_state = 5
0@ = 0

:PLCHUTE_4732
21@, 21@, 23@ = get_char_velocity $scplayer
if 
  23@ > -0.1
goto_if_false @PLCHUTE_4781
$player_fall_state = 4
0@ = 0

:PLCHUTE_4781
if 
  $player_fall_state == 4
goto_if_false @PLCHUTE_5271
if 
  0@ == 0
goto_if_false @PLCHUTE_5168
$player_landed = 1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z -= 1.0
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_4922
$player_fall_state = 2
0@ = 0
goto @PLCHUTE_5092

:PLCHUTE_4922
if 
  -4.0 > $para_Vz
goto_if_false @PLCHUTE_5047
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "FALL_FRONT" {animationFile} "PED" {blendSpeed} 20.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 700
task_play_anim_non_interruptable -1 {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} False {keepLastFrame} False {time} -2
close_sequence_task 14@
perform_sequence_task $scplayer {sequence} 14@
clear_sequence_task 14@
goto @PLCHUTE_5085

:PLCHUTE_5047
task_play_anim_non_interruptable $scplayer {animationName} "RUN_PLAYER" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} False {keepLastFrame} False {time} 1000

:PLCHUTE_5085
0@ = 1

:PLCHUTE_5092
play_object_anim 17@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
detach_object 17@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_lvar_int_to_lvar_int 18@ = TIMERA
18@ += 1000

:PLCHUTE_5168
if 
  0@ == 1
goto_if_false @PLCHUTE_5271
if 
  is_object_playing_anim 17@ {animationName} "PARA_LAND_O"
goto_if_false @PLCHUTE_5271
21@ = get_object_anim_current_time 17@ {animationName} "PARA_LAND_O"
if 
  21@ == 1.0
goto_if_false @PLCHUTE_5271
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5271
if 
  $player_fall_state == 5
goto_if_false @PLCHUTE_5328
$player_landed = 1
if 
  0@ == 0
goto_if_false @PLCHUTE_5328
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5328
if and
  $player_fall_state > 0
  4 > $player_fall_state
goto_if_false @PLCHUTE_5405
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_5405
set_char_velocity $scplayer {x} $para_Vx {y} $para_Vy {z} $para_Vz
set_char_heading $scplayer {heading} 1@
set_char_rotation $scplayer {x} 3@ {y} 2@ {z} 1@

:PLCHUTE_5405
if 
  $player_fall_state == 6
goto_if_false @PLCHUTE_5430
gosub @PLCHUTE_5521

:PLCHUTE_5430
if 
  $player_fall_state == 7
goto_if_false @PLCHUTE_5455
gosub @PLCHUTE_5462

:PLCHUTE_5455
goto @PLCHUTE_118

:PLCHUTE_5462
$player_fall_state = 0
0@ = 0
mark_model_as_no_longer_needed #PARACHUTE
remove_animation "PARACHUTE"
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
set_player_cycle_weapon_button $player1 {enabled} True
return 

:PLCHUTE_5521
detach_object 17@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
remove_object_elegantly 17@
delete_object 20@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
$player_fall_state = 0
$player_has_parachute = 0
0@ = 0
mark_model_as_no_longer_needed #PARACHUTE
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed 371
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
set_player_cycle_weapon_button $player1 {enabled} True
terminate_this_script 

//-------------External script 1 (PARACHUTE)---------------

:PARACH
script_name 'PARACH'
$para_anim_time = 0
31@ = generate_random_int_in_range 0 {max} 6
11@ = 10
17@ = 0
12@ = 0
$para_vel_change = 0
if 
  12@ == 100
goto_if_false @PARACH_122
0@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 32.1527 {y} 2239.7261 {z} 125.672
8@ = create_char PedType.CivMale {modelId} 61 {x} 32.1527 {y} 2239.7261 {z} 125.672

:PARACH_122
if 
  not is_char_dead 8@
goto_if_false @PARACH_146
30@ = get_char_height_above_ground 8@

:PARACH_146
wait 0
set_var_int_to_lvar_int $ai_landed = 17@
if 
  $para_vel_change == 2
goto_if_false @PARACH_202
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_202
gosub @PARACH_6417

:PARACH_202
if 
  0@ <> -1
goto_if_false @PARACH_293
if 
  11@ == 10
goto_if_false @PARACH_293
if 
  0@ <> -1
goto_if_false @PARACH_286
if 
  has_pickup_been_collected 0@
goto_if_false @PARACH_279
11@ = 0

:PARACH_279
goto @PARACH_293

:PARACH_286
11@ = 0

:PARACH_293
if 
  0@ == -1
goto_if_false @PARACH_336
if 
  11@ == 10
goto_if_false @PARACH_336
11@ = 0

:PARACH_336
if 
  11@ == 0
goto_if_false @PARACH_384
request_animation "PARACHUTE"
request_model #PARACHUTE
request_model #PARA_PACK
11@ = 1

:PARACH_384
if 
  11@ == 1
goto_if_false @PARACH_443
if and
  has_animation_loaded "PARACHUTE"
  has_model_loaded #PARACHUTE
  has_model_loaded #PARA_PACK
goto_if_false @PARACH_443
11@ = 2

:PARACH_443
if 
  11@ == 2
goto_if_false @PARACH_654
if 
  not is_char_dead 8@
goto_if_false @PARACH_491
$player_x, $player_y, $player_z = get_char_coordinates 8@

:PARACH_491
9@ = create_object #PARACHUTE {x} $player_x {y} $player_y {z} $player_z
10@ = create_object #PARA_PACK {x} $player_x {y} $player_y {z} $player_z
set_object_visible 9@ {state} False
if 
  not is_char_dead 8@
goto_if_false @PARACH_647
attach_object_to_char 9@ {handle} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_rotation 10@ {x} 90.0 {y} 90.0 {z} 90.0
task_pick_up_object 8@ {object} 10@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:PARACH_647
11@ = 3

:PARACH_654
if 
  11@ == 3
goto_if_false @PARACH_6053
if 
  not is_char_dead 8@
goto_if_false @PARACH_6053
if 
  31@ == 0
goto_if_false @PARACH_756
30@ = get_char_height_above_ground 8@
if 
  5.0 > 30@
goto_if_false @PARACH_749
31@ = 2
goto @PARACH_756

:PARACH_749
31@ = 5

:PARACH_756
31@ -= 1
if 
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_789
gosub @PARACH_6503

:PARACH_789
if 
  is_char_in_any_car 8@
goto_if_false @PARACH_819
$para_give_heading = 1
goto @PARACH_826

:PARACH_819
$para_give_heading = 0

:PARACH_826
if 
  not is_char_dead 8@
goto_if_false @PARACH_1186
if or
  is_char_in_air 8@
  $para_give_heading == 0
goto_if_false @PARACH_1186
if and
  17@ == 0
  14@ == 0
  30@ > 5.0
goto_if_false @PARACH_1186
if 
  $para_give_heading == 0
goto_if_false @PARACH_988
$p_in_air = sin $para_give_speed
mult_float_var_by_float_var $p_in_air *= $force_chute_open
$p_in_air *= -1.0
$x_car_speed = cos $para_give_speed
mult_float_var_by_float_var $x_car_speed *= $force_chute_open
$has_freefall_started, $has_freefall_started, $has_freefall_started = get_char_velocity 8@
set_char_velocity 8@ {x} $p_in_air {y} $x_car_speed {z} $has_freefall_started

:PARACH_988
17@ = 1
$para_anim_time = 1
set_lvar_int_to_lvar_int 18@ = TIMERA
27@ = get_char_heading 8@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1071
$para_cam_y_change = 3.0
$end_cam_z = -2.0
16@ = 0
gosub @PARACH_6083

:PARACH_1071
if 
  7@ == 0
goto_if_false @PARACH_1141
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @PARACH_1186

:PARACH_1141
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PARACH_1186
if 
  17@ == 1
goto_if_false @PARACH_2838
if 
  is_char_in_water 8@
goto_if_false @PARACH_1268
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
17@ = 2

:PARACH_1268
if 
  3.0 > 30@
goto_if_false @PARACH_1337
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
17@ = 2

:PARACH_1337
$has_freefall_started, $has_freefall_started, $tempf1 = get_char_velocity 8@
if 
  is_float_lvar_greater_than_float_var 1@ > $tempf1
goto_if_false @PARACH_1378
set_var_float_to_lvar_float $tempf1 = 1@

:PARACH_1378
set_var_int_to_lvar_int $para_turny_rate = TIMERA
sub_int_lvar_from_int_var $para_turny_rate -= 18@
cset_lvar_float_to_var_int 28@ =# $para_turny_rate
28@ /= 2000.0
if 
  28@ > 1.0
goto_if_false @PARACH_1443
28@ = 1.0

:PARACH_1443
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1490
if 
  1.0 >= 28@
goto_if_false @PARACH_1490
gosub @PARACH_6307

:PARACH_1490
if 
  28@ == 1.0
goto_if_false @PARACH_2431
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2413
$para_turny_rate, $tempv1, $tempv2, $tempv2 = get_position_of_analogue_sticks PadId.Pad1
cset_var_float_to_var_int $tempf3 =# $para_turny_rate
$tempf3 /= 256.0
add_float_var_to_float_lvar 25@ += $tempf3
set_var_float_to_lvar_float $tempf4 = 25@
$tempf4 /= 30.0
if 
  -1.6 > $tempf4
goto_if_false @PARACH_1621
$tempf4 = -1.6

:PARACH_1621
if 
  $tempf4 > 1.6
goto_if_false @PARACH_1652
$tempf4 = 1.6

:PARACH_1652
sub_float_var_from_float_lvar 27@ -= $tempf4
if 
  $tempf3 == 0.0
goto_if_false @PARACH_1712
if 
  25@ <> 0.0
goto_if_false @PARACH_1712
25@ *= 0.95

:PARACH_1712
set_var_float_to_lvar_float $tempf2 = 26@
$tempf2 *= 6.0
cset_var_float_to_var_int $tempf5 =# $tempv1
sub_float_var_from_float_var $tempf5 -= $tempf2
$tempf5 /= 256.0
add_float_var_to_float_lvar 26@ += $tempf5
if 
  -30.0 > 26@
goto_if_false @PARACH_1795
26@ = -30.0

:PARACH_1795
if 
  26@ > 30.0
goto_if_false @PARACH_1826
26@ = 30.0

:PARACH_1826
if 
  $tempf5 == 0.0
goto_if_false @PARACH_1878
if 
  26@ <> 0.0
goto_if_false @PARACH_1878
26@ *= 0.97

:PARACH_1878
$x = sin 27@
$y = cos 27@
set_var_float_to_lvar_float $tempf3 = 26@
$tempf3 /= -5.0
mult_float_var_by_float_lvar $x *= 2@
mult_float_var_by_float_var $x *= $tempf3
$x *= -1.0
mult_float_var_by_float_lvar $y *= 2@
mult_float_var_by_float_var $y *= $tempf3
$tempf2, $tempf3, $has_freefall_started = get_char_velocity 8@
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.1
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.1
sub_float_var_from_float_var $tempf3 -= $y
set_char_velocity 8@ {x} $tempf2 {y} $tempf3 {z} $tempf1
set_char_rotation 8@ {x} 26@ {y} 0.0 {z} 27@
if 
  -100 > $tempv1
goto_if_false @PARACH_2171
if 
  15@ <> 4
goto_if_false @PARACH_2164
15@ = 4
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_ACCEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2164
goto @PARACH_2406

:PARACH_2171
if and
  $para_turny_rate == 0
  15@ <> 0
goto_if_false @PARACH_2248
15@ = 0
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2248
if and
  0 > $para_turny_rate
  15@ <> -1
goto_if_false @PARACH_2327
15@ = -1
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_L" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2327
if and
  $para_turny_rate > 0
  15@ <> 1
goto_if_false @PARACH_2406
15@ = 1
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_R" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2406
goto @PARACH_2431

:PARACH_2413
set_char_velocity 8@ {x} 0.0 {y} 0.0 {z} 1@

:PARACH_2431
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  $end_cam_y == 1
goto_if_false @PARACH_2652
if 
  $end_cam_y <> 2
goto_if_false @PARACH_2652
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2652
17@ = 0
15@ = 0
14@ = 1
set_object_visible 9@ {state} True
wait 0
if 
  not is_char_dead 8@
goto_if_false @PARACH_2652
task_play_anim_non_interruptable 8@ {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$has_freefall_started, $has_freefall_started, 24@ = get_char_velocity 8@
set_var_float_to_lvar_float $right_angle_check = 24@
$right_angle_check += 5.0

:PARACH_2652
if and
  12@ == 1
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2838
17@ = 0
15@ = 0
14@ = 1
set_object_visible 9@ {state} True
wait 0
if 
  not is_char_dead 8@
goto_if_false @PARACH_2838
task_play_anim_non_interruptable 8@ {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$has_freefall_started, $has_freefall_started, 24@ = get_char_velocity 8@
set_var_float_to_lvar_float $right_angle_check = 24@
$right_angle_check += 5.0

:PARACH_2838
if 
  14@ == 1
goto_if_false @PARACH_3568
if 
  not is_char_dead 8@
goto_if_false @PARACH_3540
if 
  is_char_playing_anim 8@ {animationName} "PARA_OPEN"
goto_if_false @PARACH_3540
$ai_target_z = get_char_anim_current_time 8@ {animationName} "PARA_OPEN"
$player_x, $player_y, $player_z = get_char_coordinates 8@
$ai_target_z *= 2.0
$ai_target_z -= 0.5
if 
  $ai_target_z > 1.0
goto_if_false @PARACH_2983
$ai_target_z = 1.0

:PARACH_2983
if 
  0.0 > $ai_target_z
goto_if_false @PARACH_3014
$ai_target_z = 0.0

:PARACH_3014
if and
  0.25 >= $ai_target_z
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3120
$para_cam_y_change = -2.0
$end_cam_z = -2.0
set_lvar_float_to_var_float 28@ = $ai_target_z
28@ *= 4.0
if 
  16@ == 1
goto_if_false @PARACH_3113
16@ = 2
gosub @PARACH_6083

:PARACH_3113
gosub @PARACH_6307

:PARACH_3120
if and
  $ai_target_z > 0.25
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3236
$para_cam_y_change = 5.0
$end_cam_z = -5.0
set_lvar_float_to_var_float 28@ = $ai_target_z
28@ -= 0.25
28@ *= 1.333
if 
  16@ == 2
goto_if_false @PARACH_3229
16@ = 3
gosub @PARACH_6083

:PARACH_3229
gosub @PARACH_6307

:PARACH_3236
set_var_float_to_var_float $has_freefall_started = $right_angle_check
mult_float_var_by_float_var $has_freefall_started *= $ai_target_z
$has_freefall_started *= -1.0
add_float_lvar_to_float_var $has_freefall_started += 24@
$tempf2, $tempf3, $tempf1 = get_char_velocity 8@
$x = sin 27@
$y = cos 27@
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.01
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.01
sub_float_var_from_float_var $tempf3 -= $y
set_char_velocity 8@ {x} $tempf2 {y} $tempf3 {z} $has_freefall_started
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_3540
task_play_anim_non_interruptable 8@ {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 2.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 2.0 {lockF} True {loop} True
14@ = 2
set_lvar_float_to_var_float 29@ = $has_freefall_started
25@ = 0.0

:PARACH_3540
if 
  3.0 > 30@
goto_if_false @PARACH_3568
14@ = 3

:PARACH_3568
if 
  14@ == 2
goto_if_false @PARACH_5824
if and
  13@ <> 5
  is_char_in_water 8@
goto_if_false @PARACH_3616
13@ = 4

:PARACH_3616
if 
  13@ == 0
goto_if_false @PARACH_4766
$x = sin 27@
$y = cos 27@
$tempv2 = 0
$tempv3 = 0
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3706
$para_turny_rate, $tempv1, $tempv2, $tempv3 = get_position_of_analogue_sticks PadId.Pad1
goto @PARACH_3728

:PARACH_3706
set_var_int_to_lvar_int $para_turny_rate = 22@
$tempv1 = 0
$tempv2 = 0

:PARACH_3728
if and
  $tempv2 <> 0
  $tempv3 <> 0
goto_if_false @PARACH_3753

:PARACH_3753
if or
  $tempv1 > 100
  12@ == 2
goto_if_false @PARACH_3811
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
goto @PARACH_3837

:PARACH_3811
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@

:PARACH_3837
set_var_int_to_var_int $tempv3 = $tempv1
set_char_rotation 8@ {x} 0.0 {y} 25@ {z} 27@
if 
  30@ > 3.0
goto_if_false @PARACH_4574
cset_var_float_to_var_int $tempf5 =# $para_turny_rate
$tempf5 /= 128.0
add_float_var_to_float_lvar 25@ += $tempf5
if 
  25@ > 45.0
goto_if_false @PARACH_3939
25@ = 45.0

:PARACH_3939
if 
  -45.0 > 25@
goto_if_false @PARACH_3970
25@ = -45.0

:PARACH_3970
set_var_float_to_lvar_float $tempf4 = 25@
$tempf4 /= 15.0
sub_float_var_from_float_lvar 27@ -= $tempf4
if 
  $tempf5 == 0.0
goto_if_false @PARACH_4048
if 
  25@ <> 0.0
goto_if_false @PARACH_4048
25@ *= 0.95

:PARACH_4048
set_char_rotation 8@ {x} 0.0 {y} 25@ {z} 27@
if or
  $tempv1 > 100
  12@ == 2
goto_if_false @PARACH_4211
set_var_float_to_lvar_float $z = 4@
if 
  15@ <> 4
goto_if_false @PARACH_4204
15@ = 4
task_play_anim_non_interruptable 8@ {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4204
goto @PARACH_4574

:PARACH_4211
set_var_float_to_lvar_float $z = 3@
if and
  $tempf5 == 0.0
  15@ <> 0
goto_if_false @PARACH_4336
15@ = 0
task_play_anim_non_interruptable 8@ {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4336
if and
  0.0 > $tempf5
  15@ <> -1
goto_if_false @PARACH_4455
15@ = -1
task_play_anim_non_interruptable 8@ {animationName} "PARA_STEERL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_STEERL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4455
if and
  $tempf5 > 0.0
  15@ <> 1
goto_if_false @PARACH_4574
15@ = 1
task_play_anim_non_interruptable 8@ {animationName} "PARA_STEERR" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_STEERR_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4574
$tempf2, $tempf3, $has_freefall_started = get_char_velocity 8@
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.1
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.1
sub_float_var_from_float_var $tempf3 -= $y
$z *= -1.0
add_float_lvar_to_float_var $z += 29@
$z *= 0.2
set_var_float_to_lvar_float $has_freefall_started = 29@
sub_float_var_from_float_var $has_freefall_started -= $z
set_lvar_float_to_var_float 29@ = $has_freefall_started
set_char_velocity 8@ {x} $tempf2 {y} $tempf3 {z} $has_freefall_started
mult_float_var_by_float_var $tempf2 *= $tempf2
mult_float_var_by_float_var $tempf3 *= $tempf3
set_var_float_to_var_float $tempf4 = $tempf2
add_float_var_to_float_var $tempf4 += $tempf3
$tempf4 = sqrt $tempf4

:PARACH_4766
if 
  3.0 > 30@
goto_if_false @PARACH_5104
set_char_heading 8@ {heading} 27@
25@ = 0.0
$x = sin 27@
$y = cos 27@
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
set_char_velocity 8@ {x} $x {y} $y {z} -2.0
if 
  13@ == 0
goto_if_false @PARACH_5012
13@ = 1
task_play_anim_non_interruptable 8@ {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 4.0 {lockF} True {loop} True
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5012
set_var_float_to_var_float $para_cam_y_change = $initial_y
set_var_float_to_var_float $end_cam_z = $player_freefall
gosub @PARACH_6083

:PARACH_5012
if and
  13@ == 1
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5104
28@ = 3.0
sub_float_lvar_from_float_lvar 28@ -= 30@
28@ *= 0.75
if 
  28@ > 1.0
goto_if_false @PARACH_5097
28@ = 1.0

:PARACH_5097
gosub @PARACH_6307

:PARACH_5104
if and
  1.5 > 30@
  13@ == 1
goto_if_false @PARACH_5219
13@ = 2
task_play_anim_non_interruptable 8@ {animationName} "PARA_LAND" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True

:PARACH_5219
if 
  13@ == 2
goto_if_false @PARACH_5496
if 
  is_char_playing_anim 8@ {animationName} "PARA_LAND"
goto_if_false @PARACH_5496
$ai_target_z = get_char_anim_current_time 8@ {animationName} "PARA_LAND"
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_5496
delete_object 9@
delete_object 10@
$player_x, $player_y, $player_z = get_dead_char_pickup_coords 8@
if 
  0@ <> -1
goto_if_false @PARACH_5351
remove_pickup 0@

:PARACH_5351
task_pause 8@ {time} 1
clear_char_tasks_immediately 8@
14@ = 3
set_char_rotation 8@ {x} 0.0 {y} 0.0 {z} 0.0
set_char_heading 8@ {heading} 27@
$player_x, $player_y, $player_z = get_char_coordinates 8@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5438
$para_vel_change = 1

:PARACH_5438
if 
  $onmission == 1
goto_if_false @PARACH_5463
gosub @PARACH_6417

:PARACH_5463
0@ = 0
0@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} $player_x {y} $player_y {z} $player_z
13@ = 3

:PARACH_5496
if 
  13@ == 4
goto_if_false @PARACH_5623
task_play_anim_non_interruptable 8@ {animationName} "PARA_LAND_WATER" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_LAND_WATER_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} False {loop} True
13@ = 5
$ai_target_z = 0.0

:PARACH_5623
if 
  13@ == 5
goto_if_false @PARACH_5824
if 
  is_char_playing_anim 8@ {animationName} "PARA_LAND_WATER"
goto_if_false @PARACH_5699
$ai_target_z = get_char_anim_current_time 8@ {animationName} "PARA_LAND_WATER"

:PARACH_5699
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_5824
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5746
$para_vel_change = 1

:PARACH_5746
delete_object 9@
delete_object 10@
13@ = 3
task_pause 8@ {time} 1
clear_char_tasks_immediately 8@
14@ = 3
set_char_rotation 8@ {x} 0.0 {y} 0.0 {z} 0.0
set_char_heading 8@ {heading} 27@
$player_x, $player_y, $player_z = get_char_coordinates 8@

:PARACH_5824
if and
  14@ == 3
  13@ == 0
goto_if_false @PARACH_5935
play_object_anim 9@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} False {loop} True
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
13@ = 1

:PARACH_5935
if 
  14@ == 3
goto_if_false @PARACH_6053
if 
  has_pickup_been_collected 0@
goto_if_false @PARACH_6004
11@ = 10
17@ = 0
14@ = 0
7@ = 0
13@ = 0

:PARACH_6004
if 
  not locate_char_any_means_3d 8@ {x} $player_x {y} $player_y {z} $player_z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @PARACH_6053
goto @PARACH_6417

:PARACH_6053
if 
  is_char_dead 8@
goto_if_false @PARACH_6076
goto @PARACH_6417

:PARACH_6076
goto @PARACH_146

:PARACH_6083
$x, $y, $z = get_active_camera_coordinates 
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_var_float $tempf2 = $player_x
sub_float_var_from_float_var $tempf2 -= $x
set_var_float_to_var_float $tempf3 = $player_y
sub_float_var_from_float_var $tempf3 -= $y
set_var_float_to_var_float $initial_z = $z
sub_float_var_from_float_var $initial_z -= $player_z
set_var_float_to_var_float $has_freefall_started = $tempf2
mult_float_var_by_float_var $has_freefall_started *= $tempf2
set_var_float_to_var_float $tempf1 = $tempf3
mult_float_var_by_float_var $tempf1 *= $tempf3
set_var_float_to_var_float $start_cam_z = $has_freefall_started
add_float_var_to_float_var $start_cam_z += $tempf1
$start_cam_z *= -1.0
$start_cam_z = sqrt $start_cam_z
set_var_float_to_var_float $start_cam_y = $para_cam_y_change
sub_float_var_from_float_var $start_cam_y -= $initial_z
$start_cam_z *= -1.0
set_var_float_to_var_float $para_cam_z_change = $end_cam_z
sub_float_var_from_float_var $para_cam_z_change -= $start_cam_z
if 
  16@ == 0
goto_if_false @PARACH_6305
16@ = 1
set_var_float_to_var_float $player_freefall = $start_cam_z
set_var_float_to_var_float $initial_y = $initial_z

:PARACH_6305
return 

:PARACH_6307
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_lvar_float $tempf2 = 28@
$tempf2 *= 180.0
$tempf2 = cos $tempf2
$tempf2 -= 1.0
$tempf2 *= -0.5
set_var_float_to_var_float $z = $start_cam_y
mult_float_var_by_float_var $z *= $tempf2
add_float_var_to_float_var $z += $initial_z
set_var_float_to_var_float $y = $para_cam_z_change
mult_float_var_by_float_var $y *= $tempf2
add_float_var_to_float_var $y += $start_cam_z
return 

:PARACH_6417
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
if 
  0@ <> -1
goto_if_false @PARACH_6463
remove_pickup 0@

:PARACH_6463
delete_object 9@
delete_object 10@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_6499
$end_cam_y = 0

:PARACH_6499
terminate_this_script 
return 

:PARACH_6503
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_var_float $x = $play_open_timer
sub_float_var_from_float_var $x -= $player_x
set_var_float_to_var_float $y = $ai_target_x
sub_float_var_from_float_var $y -= $player_y
set_var_float_to_var_float $z = $player_z
sub_float_var_from_float_var $z -= $ai_target_y
if 
  17@ == 1
goto_if_false @PARACH_6683
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = sqrt $x
set_var_float_to_var_float $has_freefall_started = $z
div_float_var_by_float_var $has_freefall_started /= $x
set_var_float_to_lvar_float $tempf1 = 3@
div_float_var_by_float_lvar $tempf1 /= 5@
$tempf1 *= -1.2
if 
  is_float_var_greater_than_float_var $tempf1 > $has_freefall_started
goto_if_false @PARACH_6683
12@ = 1

:PARACH_6683
if 
  14@ == 2
goto_if_false @PARACH_7350
20@ = get_heading_from_vector_2d $x {y} $y
19@ = get_char_heading 8@
3@ -= 1.0
4@ -= 1.0
set_lvar_float_to_lvar_float 21@ = 20@
sub_float_lvar_from_float_lvar 21@ -= 19@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 23@
goto_if_false @PARACH_7137
set_lvar_int_to_lvar_int 23@ = TIMERA
23@ += 3000
$tempv4 = generate_random_float_in_range -20.0 {max} 0.0
$left_angle_check = generate_random_float_in_range 0.0 {max} 20.0
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = sqrt $x
set_var_float_to_var_float $tempf1 = $x
div_float_var_by_float_lvar $tempf1 /= 5@
set_var_float_to_var_float $has_freefall_started = $z
div_float_var_by_float_var $has_freefall_started /= $tempf1
set_var_float_to_lvar_float $tempf1 = 3@
add_float_lvar_to_float_var $tempf1 += 4@
$tempf1 /= 2.0
set_var_float_to_lvar_float $tempf2 = 3@
sub_float_lvar_from_float_var $tempf2 -= 4@
$tempf2 /= 4.0
add_float_var_to_float_var $tempf2 += $tempf1
set_var_float_to_lvar_float $tempf3 = 3@
sub_float_lvar_from_float_var $tempf3 -= 4@
$tempf3 /= -4.0
add_float_var_to_float_var $tempf3 += $tempf1
$tempf2 *= -1.0
$tempf3 *= -1.0
if and
  is_float_var_greater_than_float_var $tempf2 > $has_freefall_started
  is_float_var_greater_than_float_var $has_freefall_started > $tempf3
goto_if_false @PARACH_7085
$para_turny_rate = generate_random_int_in_range 0 {max} 2
if 
  $para_turny_rate == 0
goto_if_false @PARACH_7060
12@ = 2

:PARACH_7060
if 
  $para_turny_rate == 1
goto_if_false @PARACH_7085
12@ = 0

:PARACH_7085
if 
  is_float_var_greater_or_equal_to_float_var $has_freefall_started >= $tempf2
goto_if_false @PARACH_7111
12@ = 0

:PARACH_7111
if 
  is_float_var_greater_or_equal_to_float_var $tempf3 >= $has_freefall_started
goto_if_false @PARACH_7137
12@ = 2

:PARACH_7137
if or
  is_float_var_greater_than_float_lvar $tempv4 > 21@
  is_float_lvar_greater_than_float_var 21@ > $left_angle_check
goto_if_false @PARACH_7323
if 
  -180.0 > 21@
goto_if_false @PARACH_7195
21@ += 360.0

:PARACH_7195
if 
  21@ > 180.0
goto_if_false @PARACH_7226
21@ -= 360.0

:PARACH_7226
21@ /= 180.0
if 
  21@ > 1.0
goto_if_false @PARACH_7267
21@ = 1.0

:PARACH_7267
if 
  -1.0 > 21@
goto_if_false @PARACH_7298
21@ = -1.0

:PARACH_7298
21@ *= -128.0
cset_lvar_int_to_lvar_float 22@ =# 21@
goto @PARACH_7330

:PARACH_7323
22@ = 0

:PARACH_7330
3@ += 1.0
4@ += 1.0

:PARACH_7350
return 
terminate_this_script 

//-------------External script 2 (BCESAR2)---------------

:BCESAR2
script_name 'BCESAR2'
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @BCESAR2_50
goto @BCESAR2_6142

:BCESAR2_50
if 
  $flag_synd_mission_counter >= 10
goto_if_false @BCESAR2_75
goto @BCESAR2_6142

:BCESAR2_75
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_107
goto @BCESAR2_6142

:BCESAR2_107
set_deatharrest_state 0
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_131
register_mission_given 

:BCESAR2_131
$bcesar2_mission_flag = 1
$flag_on_courier_mission = 1
wait 0
0@ = 0
1@ = 5
21@ = 0
3@ = 0
4@ = 0
23@ = 0
$bce2_text_timer_start = 0
$bce2_audio_playing = 0
$bce2_mobile = 1
$bce2_counter = 0
$bce2_ahead_counter = 1
$bce2_audio_slot = 2
$bce2_random = 0
$8321[0] = 0
$8321[1] = 0
$8321[2] = 0
$8321[3] = 0
$8321[4] = 0
$8321[5] = 0
$y_car_speed[0] = 0
$y_car_speed[1] = 0
$y_car_speed[2] = 0
$y_car_speed[3] = 0
$y_car_speed[4] = 0
$y_car_speed[5] = 0
10@ = 0
11@ = 1
19@ = 1000
31@ = 40.0
$8310 = generate_random_int_in_range 0 {max} 2
if 
  $8310 == 0
goto_if_false @BCESAR2_390
9@ = 114

:BCESAR2_390
if 
  $8310 == 1
goto_if_false @BCESAR2_415
9@ = 96

:BCESAR2_415
if 
  $8310 == 2
goto_if_false @BCESAR2_440
9@ = 115

:BCESAR2_440
if 
  $8310 == 0
goto_if_false @BCESAR2_489
set_var_float_to_var_float $bce2_response = $4183[0]
set_var_float_to_var_float $bce2_track_x = $4299[0]
set_var_float_to_var_float $bce2_track_y = $4415[0]
goto @BCESAR2_562

:BCESAR2_489
if 
  $8310 == 1
goto_if_false @BCESAR2_538
set_var_float_to_var_float $bce2_response = $4531[0]
set_var_float_to_var_float $bce2_track_x = $4629[0]
set_var_float_to_var_float $bce2_track_y = $4727[0]
goto @BCESAR2_562

:BCESAR2_538
set_var_float_to_var_float $bce2_response = $4825[0]
set_var_float_to_var_float $bce2_track_x = $4942[0]
set_var_float_to_var_float $bce2_track_y = $5059[0]

:BCESAR2_562
request_model 107
request_model 470
request_model 352
request_model 330

:BCESAR2_581
if or
  not has_model_loaded 107
  not has_model_loaded 470
  not has_model_loaded 352
  not has_model_loaded 330
goto_if_false @BCESAR2_622
wait 0
goto @BCESAR2_581

:BCESAR2_622
set_car_model_components 470 {component1} 2 {component2} 2
custom_plate_for_next_car 470 {text} "_ASSMAN_"
26@ = create_car 470 {x} $bce2_response {y} $bce2_track_x {z} $bce2_track_y
set_load_collision_for_car_flag 26@ {state} False
25@ = create_char_inside_car 26@ {pedType} PedType.CivMale {modelId} 107
set_char_suffers_critical_hits 25@ {state} False
set_char_proofs 25@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_car_proofs 26@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_car_cruise_speed 26@ {maxSpeed} 40.0
add_stuck_car_check_with_warp 26@ {distance} 2.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
lock_car_doors 26@ {lockStatus} CarLock.LockoutPlayerOnly
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4183(10@,116f) {y} $4299(10@,116f) {z} $4415(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
27@ = add_blip_for_car 26@
set_car_only_damaged_by_player 26@ {state} True
if 
  $bce2_played > 0
goto_if_false @BCESAR2_978
28@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.BikeRear
give_weapon_to_char 28@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 28@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 28@ {accuracy} 90
if 
  $bce2_played > 1
goto_if_false @BCESAR2_978
29@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.RearLeft
give_weapon_to_char 29@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 29@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 29@ {accuracy} 90
if 
  $bce2_played > 2
goto_if_false @BCESAR2_978
30@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.RearRight
give_weapon_to_char 30@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 30@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 30@ {accuracy} 90

:BCESAR2_978
if 
  10@ == 0
goto_if_false @BCESAR2_1022
turn_car_to_face_coord 26@ {x} $4183(11@,116f) {y} $4299(11@,116f)
goto @BCESAR2_1041

:BCESAR2_1022
turn_car_to_face_coord 26@ {x} $4183(10@,116f) {y} $4299(10@,116f)

:BCESAR2_1041
$bce2_random_rot[0] = -0.65
$8334[0] = -2.307
$8340[0] = 0.26
$bce2_random_rot[1] = -0.047
$8334[1] = -2.307
$8340[1] = 0.26
$bce2_random_rot[2] = 0.554
$8334[2] = -2.307
$8340[2] = 0.26
$bce2_random_rot[3] = 0.554
$8334[3] = -1.808
$8340[3] = 0.26
$bce2_random_rot[4] = -0.65
$8334[4] = -1.808
$8340[4] = 0.26
$bce2_random_rot[5] = -0.047
$8334[5] = -1.808
$8340[5] = 0.26

:BCESAR2_1221
if 
  0@ <> 6
goto_if_false @BCESAR2_1471
wait 0
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_1464
if 
  $8321(0@,6i) == 0
goto_if_false @BCESAR2_1457
$8327 = generate_random_float_in_range 0.0 {max} 19.9
if and
  20.0 > $8327
  $8327 > 10.0
goto_if_false @BCESAR2_1337
$8327 += 340.0

:BCESAR2_1337
create_object #CM_BOX {x} $bce2_random_rot(0@,6f) {y} $8334(0@,6f) {z} $8340(0@,6f) {var_handle} $bce2_track_z(0@,6i)
attach_object_to_car $bce2_track_z(0@,6i) {handle} 26@ {xOffset} $bce2_random_rot(0@,6f) {yOffset} $8334(0@,6f) {zOffset} $8340(0@,6f) {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
  rotate_object $bce2_track_z(0@,6i) {fromAngle} $8327 {toAngle} $8327 {collisionCheck} True
set_object_collision $bce2_track_z(0@,6i) {state} False
set_object_dynamic $bce2_track_z(0@,6i) {state} False

:BCESAR2_1457
0@ += 1

:BCESAR2_1464
goto @BCESAR2_1221

:BCESAR2_1471
12@ = get_game_timer 
wait 0
if 
  is_player_playing $player1
goto_if_false @BCESAR2_1503
set_player_group_recruitment $player1 {state} False

:BCESAR2_1503
set_var_text_label s$8346[1] = 'MCES07A'
set_var_text_label s$8346[2] = 'MCES07B'
set_var_text_label s$8346[3] = 'MCES07C'
set_var_text_label s$8346[4] = 'MCES06A'
set_var_text_label s$8346[5] = 'MCES06B'
set_var_text_label s$8346[6] = 'MCES06C'
set_var_text_label s$8346[7] = 'MCES06D'
set_var_text_label s$8346[8] = 'MCES06E'
set_var_text_label s$8346[9] = 'MCES06F'
set_var_text_label s$8346[10] = 'MCES06G'
set_var_text_label s$8346[11] = 'MCES07D'
set_var_int_to_constant $8370[1] = 4682
set_var_int_to_constant $8370[2] = 4645
set_var_int_to_constant $8370[3] = 4683
set_var_int_to_constant $8370[4] = 4678
set_var_int_to_constant $8370[5] = 4642
set_var_int_to_constant $8370[6] = 4643
set_var_int_to_constant $8370[7] = 4644
set_var_int_to_constant $8370[8] = 4679
set_var_int_to_constant $8370[9] = 4680
set_var_int_to_constant $8370[10] = 4681
set_var_int_to_constant $8370[11] = 4687
request_model 330
load_all_models_now 
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23803

:BCESAR2_1759
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BCESAR2_1790
wait 0
goto @BCESAR2_1759

:BCESAR2_1790
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_1822
goto @BCESAR2_6142

:BCESAR2_1822
task_use_mobile_phone $scplayer {start} True
play_mission_audio MissionAudioSlot.Slot3
wait 2000
clear_mission_audio MissionAudioSlot.Slot3

:BCESAR2_1842
wait 0
if 
  $bce2_audio_playing <> 0
goto_if_false @BCESAR2_2185
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_1910
if 
  has_mission_audio_loaded $bce2_audio_slot
goto_if_false @BCESAR2_1903
clear_mission_audio $bce2_audio_slot

:BCESAR2_1903
$bce2_text_timer_start = 1

:BCESAR2_1910
if 
  $bce2_text_timer_start == 1
goto_if_false @BCESAR2_1947
load_mission_audio $bce2_ahead_counter {audioId} $8370($bce2_audio_playing,12i)
$bce2_text_timer_start = 2

:BCESAR2_1947
if 
  $bce2_text_timer_start == 2
goto_if_false @BCESAR2_2007
if 
  has_mission_audio_loaded $bce2_ahead_counter
goto_if_false @BCESAR2_2007
play_mission_audio $bce2_ahead_counter
print_now $8346($bce2_audio_playing,12s) {time} 10000 {flag} 1
$bce2_text_timer_start = 3

:BCESAR2_2007
if 
  $bce2_text_timer_start == 3
goto_if_false @BCESAR2_2185
if 
  has_mission_audio_finished $bce2_ahead_counter
goto_if_false @BCESAR2_2124
clear_this_print $8346($bce2_audio_playing,12s)
if 
  $bce2_ahead_counter == 1
goto_if_false @BCESAR2_2089
$bce2_ahead_counter = 2
$bce2_audio_slot = 1
goto @BCESAR2_2103

:BCESAR2_2089
$bce2_ahead_counter = 1
$bce2_audio_slot = 2

:BCESAR2_2103
$bce2_audio_playing = 0
$bce2_text_timer_start = 0
goto @BCESAR2_2185

:BCESAR2_2124
if 
  not has_mission_audio_loaded $bce2_audio_slot
goto_if_false @BCESAR2_2185
if 
  10 > $bce2_audio_playing
goto_if_false @BCESAR2_2185
set_var_int_to_var_int $bce2_mobile = $bce2_audio_playing
$bce2_mobile += 1
load_mission_audio $bce2_audio_slot {audioId} $8370($bce2_mobile,12i)

:BCESAR2_2185
if 
  $bce2_played > 0
goto_if_false @BCESAR2_2676
if 
  $bce2_counter == 0
goto_if_false @BCESAR2_2258
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2258
$bce2_audio_playing = 1
$bce2_counter = 1
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2258
if 
  $bce2_counter == 1
goto_if_false @BCESAR2_2373
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2373
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2373
$bce2_audio_playing = 2
$bce2_counter = 2
$bce2_random = 0
$bce2_text_timer_end = get_game_timer 
clear_help 
print_help_forever 'TALK_1'

:BCESAR2_2373
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2443
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BCESAR2_2417
clear_help 
$bce2_random = 2

:BCESAR2_2417
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BCESAR2_2443
clear_help 
$bce2_random = 1

:BCESAR2_2443
if 
  $bce2_random == 1
goto_if_false @BCESAR2_2556
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2556
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2556
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2556
$bce2_audio_playing = 3
$bce2_counter = 7
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2556
if 
  $bce2_random == 2
goto_if_false @BCESAR2_2669
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2669
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2669
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2669
$bce2_audio_playing = 11
$bce2_counter = 7
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2669
goto @BCESAR2_3301

:BCESAR2_2676
if 
  $bce2_counter == 0
goto_if_false @BCESAR2_2731
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2731
$bce2_audio_playing = 4
$bce2_counter = 1
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2731
if 
  $bce2_counter == 1
goto_if_false @BCESAR2_2826
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2826
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2826
$bce2_audio_playing = 5
$bce2_counter = 2
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2826
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2921
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2921
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2921
$bce2_audio_playing = 6
$bce2_counter = 3
$bce2_text_timer_end = get_game_timer 

:BCESAR2_2921
if 
  $bce2_counter == 3
goto_if_false @BCESAR2_3016
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3016
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3016
$bce2_audio_playing = 7
$bce2_counter = 4
$bce2_text_timer_end = get_game_timer 

:BCESAR2_3016
if 
  $bce2_counter == 4
goto_if_false @BCESAR2_3111
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3111
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3111
$bce2_audio_playing = 8
$bce2_counter = 5
$bce2_text_timer_end = get_game_timer 

:BCESAR2_3111
if 
  $bce2_counter == 5
goto_if_false @BCESAR2_3206
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3206
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3206
$bce2_audio_playing = 9
$bce2_counter = 6
$bce2_text_timer_end = get_game_timer 

:BCESAR2_3206
if 
  $bce2_counter == 6
goto_if_false @BCESAR2_3301
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3301
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3301
$bce2_audio_playing = 10
$bce2_counter = 7
$bce2_text_timer_end = get_game_timer 

:BCESAR2_3301
if or
  $bce2_counter == 7
  $bce2_counter == 8
goto_if_false @BCESAR2_3475
$bce2_text_timer_diff = get_game_timer 
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3475
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3475
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_3475
24@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BCESAR2_3436
task_use_mobile_phone $scplayer {start} False

:BCESAR2_3436
if 
  2 > $bce2_random
goto_if_false @BCESAR2_3468
goto @BCESAR2_3531
goto @BCESAR2_3475

:BCESAR2_3468
goto @BCESAR2_6142

:BCESAR2_3475
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BCESAR2_3524
if 
  $bce2_played > 0
goto_if_false @BCESAR2_3517
$bce2_random = 2

:BCESAR2_3517
$bce2_counter = 8

:BCESAR2_3524
goto @BCESAR2_1842

:BCESAR2_3531
wait 0
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @BCESAR2_3564
1@ = 0
3@ = 6

:BCESAR2_3564
if 
  $onmission == 1
goto_if_false @BCESAR2_3596
1@ = 0
3@ = 6

:BCESAR2_3596
if 
  is_player_playing $player1
goto_if_false @BCESAR2_3718
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_3718
if 
  23@ == 0
goto_if_false @BCESAR2_3677
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR2_3677
22@ = store_car_char_is_in_no_save $scplayer
23@ = 1

:BCESAR2_3677
if 
  23@ == 1
goto_if_false @BCESAR2_3718
if 
  not is_char_in_any_car $scplayer
goto_if_false @BCESAR2_3718
23@ = 0

:BCESAR2_3718
if 
  is_player_playing $player1
goto_if_false @BCESAR2_5271
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_5264
if 
  4@ == 0
goto_if_false @BCESAR2_3833
if 
  locate_char_any_means_3d $scplayer {x} $bce2_response {y} $bce2_track_x {z} $bce2_track_y {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @BCESAR2_3833
print_now 'BCE2_02' {time} 5000 {flag} 1
4@ = 1

:BCESAR2_3833
if 
  is_car_dead 26@
goto_if_false @BCESAR2_3856
goto @BCESAR2_6142

:BCESAR2_3856
if 
  $bce2_played > 0
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 28@
goto_if_false @BCESAR2_3962
5@ = get_script_task_status 28@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BCESAR2_3962
task_drive_by 28@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 28@ {weaponType} WeaponType.MicroUzi

:BCESAR2_3962
if 
  $bce2_played > 1
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 29@
goto_if_false @BCESAR2_4068
6@ = get_script_task_status 29@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @BCESAR2_4068
task_drive_by 29@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 29@ {weaponType} WeaponType.MicroUzi

:BCESAR2_4068
if 
  $bce2_played > 2
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 30@
goto_if_false @BCESAR2_4174
7@ = get_script_task_status 30@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @BCESAR2_4174
task_drive_by 30@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 30@ {weaponType} WeaponType.MicroUzi

:BCESAR2_4174
if and
  not is_char_dead 25@
  not is_car_dead 26@
goto_if_false @BCESAR2_5264
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 26@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @BCESAR2_4269
if 
  31@ > 30.0
goto_if_false @BCESAR2_4262
31@ -= 0.1

:BCESAR2_4262
goto @BCESAR2_4300

:BCESAR2_4269
if 
  50.0 > 31@
goto_if_false @BCESAR2_4300
31@ += 0.1

:BCESAR2_4300
if 
  4@ == 1
goto_if_false @BCESAR2_4361
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 26@ {xRadius} 500.0 {yRadius} 500.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @BCESAR2_4361
goto @BCESAR2_6142

:BCESAR2_4361
$bce2_response, $bce2_track_x, $bce2_track_y = get_car_coordinates 26@
if 
  is_int_lvar_greater_than_int_lvar 9@ > 10@
goto_if_false @BCESAR2_4772
if 
  $8310 == 0
goto_if_false @BCESAR2_4526
if 
  locate_char_in_car_3d 25@ {x} $4183(10@,116f) {y} $4299(10@,116f) {z} $4415(10@,116f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4519
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4183(10@,116f) {y} $4299(10@,116f) {z} $4415(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4519
goto @BCESAR2_4765

:BCESAR2_4526
if 
  $8310 == 1
goto_if_false @BCESAR2_4658
if 
  locate_char_in_car_3d 25@ {x} $4531(10@,98f) {y} $4629(10@,98f) {z} $4727(10@,98f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4651
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4531(10@,98f) {y} $4629(10@,98f) {z} $4727(10@,98f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4651
goto @BCESAR2_4765

:BCESAR2_4658
if 
  locate_char_in_car_3d 25@ {x} $4825(10@,117f) {y} $4942(10@,117f) {z} $5059(10@,117f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4765
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4825(10@,117f) {y} $4942(10@,117f) {z} $5059(10@,117f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4765
goto @BCESAR2_5071

:BCESAR2_4772
if 
  $8310 == 0
goto_if_false @BCESAR2_4866
if 
  locate_char_in_car_3d 25@ {x} $4183(10@,116f) {y} $4299(10@,116f) {z} $4415(10@,116f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_4859
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_4859
goto @BCESAR2_5029

:BCESAR2_4866
if 
  $8310 == 1
goto_if_false @BCESAR2_4960
if 
  locate_char_in_car_3d 25@ {x} $4531(10@,98f) {y} $4629(10@,98f) {z} $4727(10@,98f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_4953
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_4953
goto @BCESAR2_5029

:BCESAR2_4960
if 
  locate_char_in_car_3d 25@ {x} $4825(10@,117f) {y} $4942(10@,117f) {z} $5059(10@,117f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_5029
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_5029
if 
  is_int_lvar_equal_to_int_lvar 10@ == 9@
goto_if_false @BCESAR2_5071
if 
  not is_car_on_screen 26@
goto_if_false @BCESAR2_5071
goto @BCESAR2_6142

:BCESAR2_5071
8@ = get_script_task_status 25@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 8@ == 7
goto_if_false @BCESAR2_5264
if 
  $8310 == 0
goto_if_false @BCESAR2_5163
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4183(10@,116f) {y} $4299(10@,116f) {z} $4415(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @BCESAR2_5264

:BCESAR2_5163
if 
  $8310 == 1
goto_if_false @BCESAR2_5226
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4531(10@,98f) {y} $4629(10@,98f) {z} $4727(10@,98f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @BCESAR2_5264

:BCESAR2_5226
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $4825(10@,117f) {y} $4942(10@,117f) {z} $5059(10@,117f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_5264
goto @BCESAR2_5278

:BCESAR2_5271
goto @BCESAR2_6142

:BCESAR2_5278
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_5759
13@ = get_game_timer 
set_lvar_int_to_lvar_int 14@ = 13@
sub_int_lvar_from_int_lvar 14@ -= 12@
20@ = get_car_health 26@
if 
  14@ > 1000
goto_if_false @BCESAR2_5759
if 
  is_int_lvar_greater_than_int_lvar 19@ > 20@
goto_if_false @BCESAR2_5759
if 
  $8321(1@,6i) == 0
goto_if_false @BCESAR2_5751
if 
  is_object_attached $bce2_track_z(1@,6i)
goto_if_false @BCESAR2_5751
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_5751
if or
  not is_car_upsidedown 26@
  not is_car_in_water 26@
goto_if_false @BCESAR2_5751
get_object_coordinates $bce2_track_z(1@,6i) {var_x} $bce2_random_rot(1@,6f) {var_y} $8334(1@,6f) {var_z} $8340(1@,6f)
$8340(1@,6f) += 0.5
set_object_coordinates $bce2_track_z(1@,6i) {x} $bce2_random_rot(1@,6f) {y} $8334(1@,6f) {z} $8340(1@,6f)
detach_object $bce2_track_z(1@,6i) {x} 90.0 {y} 180.0 {z} 1.5 {collisionDetection} True
add_blip_for_object $bce2_track_z(1@,6i) {var_handle} $y_car_speed(1@,6i)
add_to_object_velocity $bce2_track_z(1@,6i) {x} 0.0 {y} -5.0 {z} 20.0
set_object_collision $bce2_track_z(1@,6i) {state} True
set_object_dynamic $bce2_track_z(1@,6i) {state} True
if 
  is_player_playing $player1
goto_if_false @BCESAR2_5662
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR2_5662
if 
  not is_car_dead 22@
goto_if_false @BCESAR2_5662
sort_out_object_collision_with_car $bce2_track_z(1@,6i) {handle} 22@

:BCESAR2_5662
12@ = get_game_timer 
print_now 'BCE2_03' {time} 5000 {flag} 1
$8321(1@,6i) = 2
if 
  1@ > 0
goto_if_false @BCESAR2_5726
1@ -= 1
goto @BCESAR2_5751

:BCESAR2_5726
if 
  3@ == 6
goto_if_false @BCESAR2_5751
goto @BCESAR2_6142

:BCESAR2_5751
set_lvar_int_to_lvar_int 19@ = 20@

:BCESAR2_5759
if 
  1@ == 0
goto_if_false @BCESAR2_5802
if 
  3@ == 6
goto_if_false @BCESAR2_5802
goto @BCESAR2_6142

:BCESAR2_5802
2@ = 0

:BCESAR2_5809
if 
  2@ <> 6
goto_if_false @BCESAR2_6135
wait 0
if 
  $8321(2@,6i) == 2
goto_if_false @BCESAR2_6121
if 
  is_player_playing $player1
goto_if_false @BCESAR2_6121
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_6121
16@, 17@, 18@ = get_char_coordinates $scplayer
if 
  does_object_exist $bce2_track_z(2@,6i)
goto_if_false @BCESAR2_6025
if 
  locate_char_any_means_object_3d $scplayer {object} $bce2_track_z(2@,6i) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCESAR2_6025
remove_blip $y_car_speed(2@,6i)
delete_object $bce2_track_z(2@,6i)
add_one_off_sound 16@ {y} 17@ {z} 18@ {soundId} ScriptSound.SoundPartMissionComplete
add_score $player1 {money} 300
21@ += 300
$8321(2@,6i) = 3
3@ += 1

:BCESAR2_6025
if 
  does_object_exist $bce2_track_z(2@,6i)
goto_if_false @BCESAR2_6121
if 
  not locate_char_any_means_object_3d $scplayer {object} $bce2_track_z(2@,6i) {xRadius} 75.0 {yRadius} 75.0 {zRadius} 75.0 {drawSphere} False
goto_if_false @BCESAR2_6121
remove_blip $y_car_speed(2@,6i)
delete_object $bce2_track_z(2@,6i)
$8321(2@,6i) = 3
3@ += 1

:BCESAR2_6121
2@ += 1
goto @BCESAR2_5809

:BCESAR2_6135
goto @BCESAR2_3531

:BCESAR2_6142
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6202
print_with_number_big 'BCE2_04' {num} 21@ {duration} 7500 {style} TextStyle.MiddleSmallerHigher
print_now 'BCE2_05' {time} 7500 {flag} 1
$bce2_played += 1

:BCESAR2_6202
remove_blip 27@
remove_blip $y_car_speed[0]
remove_blip $y_car_speed[1]
remove_blip $y_car_speed[2]
remove_blip $y_car_speed[3]
remove_blip $y_car_speed[4]
remove_blip $y_car_speed[5]
mark_car_as_no_longer_needed 26@
mark_char_as_no_longer_needed 25@
mark_char_as_no_longer_needed 28@
mark_char_as_no_longer_needed 29@
mark_char_as_no_longer_needed 30@
mark_object_as_no_longer_needed $bce2_track_z[0]
mark_object_as_no_longer_needed $bce2_track_z[1]
mark_object_as_no_longer_needed $bce2_track_z[2]
mark_object_as_no_longer_needed $bce2_track_z[3]
mark_object_as_no_longer_needed $bce2_track_z[4]
mark_object_as_no_longer_needed $bce2_track_z[5]
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 330
$timer_mobile_start = get_game_timer 
clear_help 
clear_mission_audio MissionAudioSlot.Slot3
$timer_mobile_start = get_game_timer 
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6372
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_6372
register_oddjob_mission_passed 
$flag_bce2_passed_1stime = 1

:BCESAR2_6372
$flag_on_courier_mission = 0
terminate_this_script 
terminate_this_script 

//-------------External script 3 (BCESAR3)---------------

:COKEC
script_name 'COKEC'
15@ = 0
0@ = 0
1@ = 0
12@ = 0
13@ = 0
14@ = 0
16@ = 0
$bce2_alt_slot = 0
$phone_conversation_choice = 0

:COKEC_74
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @COKEC_120
goto @COKEC_5529
16@ = 1

:COKEC_120
if 
  $bce2_played == 0
goto_if_false @COKEC_152
goto @COKEC_5529
16@ = 1

:COKEC_152
if 
  $flag_synd_mission_counter >= 10
goto_if_false @COKEC_184
goto @COKEC_5529
16@ = 1

:COKEC_184
$current_visible_area_cell = get_area_visible 
if 
  is_player_playing $player1
goto_if_false @COKEC_333
if 
  $current_visible_area_cell == 0
goto_if_false @COKEC_322
if and
  is_char_on_foot $scplayer
  not is_char_in_air $scplayer
  $onmission == 0
  $player_fall_state == 0
goto_if_false @COKEC_304
if and
  not is_char_in_water $scplayer
  not is_char_shooting $scplayer
goto_if_false @COKEC_286
goto @COKEC_297

:COKEC_286
wait 0
goto @COKEC_74

:COKEC_297
goto @COKEC_315

:COKEC_304
wait 0
goto @COKEC_74

:COKEC_315
goto @COKEC_333

:COKEC_322
wait 0
goto @COKEC_74

:COKEC_333
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @COKEC_369
wait 0
goto @COKEC_74

:COKEC_369
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_389
register_mission_given 

:COKEC_389
14@ = 1
$flag_on_courier_mission = 1

:COKEC_403
wait 0
3@ = get_game_timer 
set_lvar_int_to_lvar_int 2@ = 3@
sub_int_lvar_from_int_lvar 2@ -= 9@
set_lvar_int_to_lvar_int 9@ = 3@
27@ = get_area_visible 
if 
  27@ == 0
goto_if_false @COKEC_475
add_int_lvar_to_int_lvar 10@ += 2@
add_int_lvar_to_int_lvar 11@ += 2@

:COKEC_475
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @COKEC_497
goto @COKEC_5529

:COKEC_497
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @COKEC_519
goto @COKEC_5529

:COKEC_519
if 
  $onmission == 1
goto_if_false @COKEC_551
16@ = 1
goto @COKEC_5529

:COKEC_551
if 
  not is_player_playing $player1
goto_if_false @COKEC_574
goto @COKEC_5529

:COKEC_574
if 
  has_deatharrest_been_executed 
goto_if_false @COKEC_601
16@ = 1
goto @COKEC_5529

:COKEC_601
if 
  0@ == 0
goto_if_false @COKEC_675
23@ = -1
21@ = 0
24@ = 0
25@ = 0
26@ = 0
28@ = 0
0@ += 1
1@ = 0

:COKEC_675
if 
  0@ == 1
goto_if_false @COKEC_5522
if 
  1@ == 0
goto_if_false @COKEC_806
request_model 23
request_model 468
request_model 346
request_model 330
request_car_recording 556
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23803

:COKEC_742
if or
  not has_model_loaded 23
  not has_model_loaded 468
  not has_model_loaded 346
  not has_model_loaded 330
  not has_car_recording_been_loaded 556
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @COKEC_792
wait 0
goto @COKEC_742

:COKEC_792
29@ = load_char_decision_maker DecisionMakerType.Tough
1@ += 1

:COKEC_806
if 
  1@ == 1
goto_if_false @COKEC_882
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @COKEC_882
play_mission_audio MissionAudioSlot.Slot3
task_use_mobile_phone $scplayer {start} True
TIMERA = -1500
12@ = 0
1@ += 1

:COKEC_882
if 
  1@ >= 2
goto_if_false @COKEC_1567
if 
  5 > 12@
goto_if_false @COKEC_1567
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @COKEC_963
12@ = 4
$bce2_alt_slot = 3
$phone_conversation_choice = 2
16@ = 1

:COKEC_963
if and
  $bce2_alt_slot == 1
  $audio_line_is_active == 0
  not is_message_being_displayed 
goto_if_false @COKEC_1008
print_help_forever 'TALK_1'
$bce2_alt_slot += 1

:COKEC_1008
if 
  $bce2_alt_slot == 2
goto_if_false @COKEC_1099
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @COKEC_1066
$phone_conversation_choice = 1
$bce2_alt_slot += 1
clear_help 
goto @COKEC_1099

:COKEC_1066
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @COKEC_1099
$phone_conversation_choice = 2
$bce2_alt_slot += 1
clear_help 

:COKEC_1099
if or
  $bce2_alt_slot == 0
  $bce2_alt_slot == 3
goto_if_false @COKEC_1567
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @COKEC_1567
switch_start 12@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COKEC_1553 {caseNum1} 0 {caseLabel1} @COKEC_1213 {caseNum2} 1 {caseLabel2} @COKEC_1264 {caseNum3} 2 {caseLabel3} @COKEC_1312 {caseNum4} 3 {caseLabel4} @COKEC_1366 {caseNum5} 4 {caseLabel5} @COKEC_1482 {caseNum6} -1 {caseLabel6} @COKEC_1553 {caseNum7} -1 {caseLabel7} @COKEC_1553

:COKEC_1213
clear_mission_audio MissionAudioSlot.Slot3
set_var_text_label s$audio_string = 'MCES08A'
set_var_int_to_constant $audio_sound_file = 4646
start_new_script @AUDIOL -1 0 1 1 0 
goto @COKEC_1553

:COKEC_1264
set_var_text_label s$audio_string = 'MCES08B'
set_var_int_to_constant $audio_sound_file = 4686
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1553

:COKEC_1312
set_var_text_label s$audio_string = 'MCES08C'
set_var_int_to_constant $audio_sound_file = 4647
start_new_script @AUDIOL -1 0 1 1 0 
$bce2_alt_slot += 1
goto @COKEC_1553

:COKEC_1366
if 
  $phone_conversation_choice == 1
goto_if_false @COKEC_1432
set_var_text_label s$audio_string = 'MCES08D'
set_var_int_to_constant $audio_sound_file = 4685
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1475

:COKEC_1432
set_var_text_label s$audio_string = 'VOFFE2N'
set_var_int_to_constant $audio_sound_file = 42644
start_new_script @AUDIOL $scplayer 0 1 1 0 

:COKEC_1475
goto @COKEC_1553

:COKEC_1482
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  is_player_playing $player1
goto_if_false @COKEC_1521
task_use_mobile_phone $scplayer {start} False

:COKEC_1521
if 
  $phone_conversation_choice <> 1
goto_if_false @COKEC_1546
goto @COKEC_5529

:COKEC_1546
goto @COKEC_1553

:COKEC_1553
12@ += 1
TIMERA = 0

:COKEC_1567
if 
  1@ == 2
goto_if_false @COKEC_2216
if 
  15@ == 0
goto_if_false @COKEC_1993
26@ = generate_random_int_in_range 0 {max} 60

:COKEC_1612
if 
  2@ == 0
goto_if_false @COKEC_1734
if 
  is_player_playing $player1
goto_if_false @COKEC_1727
if 
  locate_char_any_means_3d $scplayer {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f) {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @COKEC_1720
26@ = generate_random_int_in_range 0 {max} 60
wait 0
goto @COKEC_1727

:COKEC_1720
2@ = 1

:COKEC_1727
goto @COKEC_1612

:COKEC_1734
17@ = create_car 468 {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f)
18@ = create_char PedType.CivMale {modelId} 23 {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f)
22@ = create_object #PARA_PACK {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f)
warp_char_into_car 18@ {vehicle} 17@
task_pick_up_object 18@ {object} 22@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_load_collision_for_car_flag 17@ {state} False
set_lvar_int_to_lvar_int 2@ = 26@
2@ += 1
set_var_float_to_var_float $x = $3928(2@,85f)
sub_float_var_from_float_var $x -= $3928(26@,85f)
set_var_float_to_var_float $y = $4013(2@,85f)
sub_float_var_from_float_var $y -= $4013(26@,85f)
5@ = get_heading_from_vector_2d $x {y} $y
set_car_heading 17@ {heading} 5@
car_goto_coordinates_racing 17@ {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f)
goto @COKEC_1993

:COKEC_1993
set_char_only_damaged_by_player 18@ {state} True
set_char_accuracy 18@ {accuracy} 95
set_char_decision_maker 18@ {handleOrTemplate} 29@
task_toggle_ped_threat_scanner 18@ {onFoot} False {inCar} False {duringScriptTask} True
give_weapon_to_char 18@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_max_health 18@ {maxHealth} 300
set_char_health 18@ {health} 300
set_car_only_damaged_by_player 17@ {state} True
set_car_cruise_speed 17@ {maxSpeed} 25.0
set_car_driving_style 17@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 17@ {distance} 2.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
set_char_proofs 18@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 17@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_drowns_in_water 18@ {state} False
set_char_can_be_knocked_off_bike 18@ {stayOnBike} True
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 346
if 
  not is_char_dead 18@
goto_if_false @COKEC_2181
19@ = add_blip_for_char 18@

:COKEC_2181
24@ = 0
TIMERB = 0
11@ = 0
10@ = 0
1@ += 1

:COKEC_2216
if 
  1@ == 3
goto_if_false @COKEC_3297
if 
  is_player_playing $player1
goto_if_false @COKEC_3297
if 
  25@ == 0
goto_if_false @COKEC_2313
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @COKEC_2306
if 
  not is_char_dead 18@
goto_if_false @COKEC_2306
25@ = 1

:COKEC_2306
goto @COKEC_2339

:COKEC_2313
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @COKEC_2339
restore_camera_jumpcut 
set_camera_behind_player 
25@ = 0

:COKEC_2339
if 
  25@ == 1
goto_if_false @COKEC_2499
if 
  not is_char_dead 18@
goto_if_false @COKEC_2499
$x, $y, $z = get_char_coordinates 18@
$x += -15.0
$y += 12.0
$z += 15.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_char_coordinates 18@
$x, $y, $z = get_offset_from_char_in_world_coords 18@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:COKEC_2499
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @COKEC_2573
if 
  not is_char_dead 18@
goto_if_false @COKEC_2573
if 
  not is_car_dead 17@
goto_if_false @COKEC_2573
if 
  is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_2573
task_leave_car_immediately 18@ {vehicle} 17@

:COKEC_2573
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @COKEC_2673
if 
  not is_char_dead 18@
goto_if_false @COKEC_2673
$x, $y, $z = get_offset_from_char_in_world_coords 18@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
$z += 10.0
if 
  is_player_playing $player1
goto_if_false @COKEC_2673
set_char_coordinates $scplayer {x} $x {y} $y {z} $z

:COKEC_2673
if 
  15@ == 0
goto_if_false @COKEC_2893
if 
  24@ == 0
goto_if_false @COKEC_2886
if 
  is_player_playing $player1
goto_if_false @COKEC_2886
if 
  not is_char_dead 18@
goto_if_false @COKEC_2886
if 
  locate_char_any_means_char_3d $scplayer {target} 18@ {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @COKEC_2858
set_char_can_be_knocked_off_bike 18@ {stayOnBike} False
set_char_proofs 18@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_car_dead 17@
goto_if_false @COKEC_2830
set_car_proofs 17@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:COKEC_2830
set_char_drowns_in_water 18@ {state} True
set_char_can_be_knocked_off_bike 18@ {stayOnBike} False
24@ = 1
goto @COKEC_2886

:COKEC_2858
if 
  11@ > 600000
goto_if_false @COKEC_2886
goto @COKEC_5529

:COKEC_2886
goto @COKEC_2893

:COKEC_2893
if 
  is_player_playing $player1
goto_if_false @COKEC_3044
if 
  24@ == 1
goto_if_false @COKEC_3044
if 
  not is_char_dead 18@
goto_if_false @COKEC_3044
if 
  is_player_playing $player1
goto_if_false @COKEC_3002
if or
  locate_char_any_means_char_2d $scplayer {target} 18@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  is_char_on_screen 18@
goto_if_false @COKEC_3002
10@ = 0

:COKEC_3002
if 
  10@ > 20000
goto_if_false @COKEC_3044
print 'BCR3_02' {time} 4000 {flag} 1
goto @COKEC_5529

:COKEC_3044
if 
  23@ == -1
goto_if_false @COKEC_3223
if 
  not is_char_dead 18@
goto_if_false @COKEC_3216
if 
  is_player_playing $player1
goto_if_false @COKEC_3216
if 
  has_char_been_damaged_by_char 18@ {handle} $scplayer
goto_if_false @COKEC_3216
if 
  does_object_exist 22@
goto_if_false @COKEC_3186
20@ = create_fx_system_on_object_with_direction "COKE_TRAIL" {object} 22@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} -0.1 {xDirection} 0.0 {yDirection} 0.0 {zDirection} -1.0 {ignoreBoundingChecks} True
play_fx_system 20@

:COKEC_3186
print 'BCR3_04' {time} 5000 {flag} 1
23@ = 1
TIMERA = 0

:COKEC_3216
goto @COKEC_3274

:COKEC_3223
if 
  TIMERA > 180000
goto_if_false @COKEC_3274
if 
  23@ > 0
goto_if_false @COKEC_3274
stop_fx_system 20@
23@ = 0

:COKEC_3274
if 
  is_char_dead 18@
goto_if_false @COKEC_3297
1@ += 1

:COKEC_3297
if 
  1@ == 4
goto_if_false @COKEC_3556
if 
  is_player_playing $player1
goto_if_false @COKEC_3556
if 
  is_char_dead 18@
goto_if_false @COKEC_3556
stop_fx_system 20@
cset_lvar_float_to_lvar_int 5@ =# TIMERA
if 
  5@ > 180000.0
goto_if_false @COKEC_3391
5@ = 180000.0

:COKEC_3391
5@ /= 180000.0
5@ -= 1.0
5@ *= -1.0
5@ *= 2000.0
cset_lvar_int_to_lvar_float 23@ =# 5@
remove_blip 19@
if 
  does_object_exist 22@
goto_if_false @COKEC_3465
delete_object 22@

:COKEC_3465
$x, $y, $z = get_dead_char_pickup_coords 18@
21@ = create_pickup #PARA_PACK {pickupType} PickupType.Once {x} $x {y} $y {z} $z
19@ = add_blip_for_coord $x {y} $y {z} $z
change_blip_colour 19@ {color} BlipColor.Green
print_now 'BCR3_05' {time} 4000 {flag} 1
$phone_conversation_answer = 0
TIMERA = 0
1@ += 1

:COKEC_3556
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @COKEC_3592
if 
  not is_char_dead 18@
goto_if_false @COKEC_3592
task_die 18@

:COKEC_3592
if 
  $phone_conversation_answer == 0
goto_if_false @COKEC_3779
if 
  not has_pickup_been_collected 21@
goto_if_false @COKEC_3779
$x, $y, $z = get_pickup_coordinates 21@
if 
  is_player_playing $player1
goto_if_false @COKEC_3779
if 
  locate_char_any_means_2d $scplayer {x} $x {y} $y {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @COKEC_3779
5@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_var_float_to_lvar_float $z = 5@
$z += 1.0
remove_pickup 21@
remove_blip 19@
21@ = create_pickup #PARA_PACK {pickupType} PickupType.Once {x} $x {y} $y {z} $z
19@ = add_blip_for_coord $x {y} $y {z} $z
change_blip_colour 19@ {color} BlipColor.Green
$phone_conversation_answer = 1

:COKEC_3779
if 
  1@ == 5
goto_if_false @COKEC_4021
if 
  is_player_playing $player1
goto_if_false @COKEC_4021
$x, $y, $z = get_pickup_coordinates 21@
if 
  locate_char_any_means_2d $scplayer {x} $x {y} $y {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @COKEC_4012
if 
  180000 > TIMERA
goto_if_false @COKEC_3996
if 
  21@ <> 0
goto_if_false @COKEC_3980
if 
  has_pickup_been_collected 21@
goto_if_false @COKEC_3973
if 
  23@ > 0
goto_if_false @COKEC_3950
clear_prints 
13@ = 1
goto @COKEC_3966

:COKEC_3950
print_now 'BCR3_06' {time} 7500 {flag} 1

:COKEC_3966
goto @COKEC_5529

:COKEC_3973
goto @COKEC_3989

:COKEC_3980
clear_prints 
goto @COKEC_5529

:COKEC_3989
goto @COKEC_4005

:COKEC_3996
clear_prints 
goto @COKEC_5529

:COKEC_4005
goto @COKEC_4021

:COKEC_4012
clear_prints 
goto @COKEC_5529

:COKEC_4021
if 
  24@ <> 0
goto_if_false @COKEC_4228
if 
  15@ == 0
goto_if_false @COKEC_4228
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4221
if 
  not is_car_dead 17@
goto_if_false @COKEC_4221
if 
  is_player_playing $player1
goto_if_false @COKEC_4221
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 17@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @COKEC_4211
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 17@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @COKEC_4194
set_car_cruise_speed 17@ {maxSpeed} 45.0
goto @COKEC_4204

:COKEC_4194
set_car_cruise_speed 17@ {maxSpeed} 30.0

:COKEC_4204
goto @COKEC_4221

:COKEC_4211
set_car_cruise_speed 17@ {maxSpeed} 20.0

:COKEC_4221
goto @COKEC_4228

:COKEC_4228
if 
  15@ == 0
goto_if_false @COKEC_4615
if 
  not is_char_dead 18@
goto_if_false @COKEC_4615
if 
  26@ <> -1
goto_if_false @COKEC_4615
if 
  not is_car_dead 17@
goto_if_false @COKEC_4615
if 
  is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_4615
if 
  locate_char_in_car_3d 18@ {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f) {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @COKEC_4470
26@ += 1
if 
  85 > 26@
goto_if_false @COKEC_4441
task_car_drive_to_coord 18@ {vehicle} 17@ {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f) {speed} 25.0 {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
goto @COKEC_4463

:COKEC_4441
task_car_drive_wander 18@ {vehicle} 17@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
26@ = -1

:COKEC_4463
goto @COKEC_4615

:COKEC_4470
if 
  85 > 26@
goto_if_false @COKEC_4564
2@ = get_script_task_status 18@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4557
task_car_drive_to_coord 18@ {vehicle} 17@ {x} $3928(26@,85f) {y} $4013(26@,85f) {z} $4098(26@,85f) {speed} 25.0 {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.AvoidCars

:COKEC_4557
goto @COKEC_4615

:COKEC_4564
2@ = get_script_task_status 18@ {taskId} 1490
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4615
task_car_drive_wander 18@ {vehicle} 17@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
26@ = -1

:COKEC_4615
if 
  not is_char_dead 18@
goto_if_false @COKEC_4730
if 
  not does_object_exist 22@
goto_if_false @COKEC_4670
22@ = create_object #PARA_PACK {x} 0.0 {y} 0.0 {z} 0.0

:COKEC_4670
if 
  not is_char_holding_object 18@ {handle} 22@
goto_if_false @COKEC_4730
task_pick_up_object 18@ {object} 22@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:COKEC_4730
if 
  27@ <> 0
goto_if_false @COKEC_4826
if 
  28@ == 0
goto_if_false @COKEC_4819
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4789
freeze_car_position 17@ {state} True

:COKEC_4789
if 
  does_char_exist 18@
goto_if_false @COKEC_4812
freeze_char_position 18@ {state} True

:COKEC_4812
28@ = 1

:COKEC_4819
goto @COKEC_4897

:COKEC_4826
if 
  28@ == 1
goto_if_false @COKEC_4897
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4867
freeze_car_position 17@ {state} False

:COKEC_4867
if 
  does_char_exist 18@
goto_if_false @COKEC_4890
freeze_char_position 18@ {state} False

:COKEC_4890
28@ = 0

:COKEC_4897
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_5522
if 
  not is_char_dead 18@
goto_if_false @COKEC_5522
if 
  24@ == 1
goto_if_false @COKEC_5479
if 
  not is_car_dead 17@
goto_if_false @COKEC_5397
if 
  not is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_5390
if 
  is_player_playing $player1
goto_if_false @COKEC_5390
if 
  not locate_char_on_foot_char_3d $scplayer {target} 18@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @COKEC_5241
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5123
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@
goto @COKEC_5234

:COKEC_5123
2@ = get_script_task_status 18@ {taskId} 1506
if 
  not is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5234
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5234
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5234
goto @COKEC_5390

:COKEC_5241
if 
  23@ == 1
goto_if_false @COKEC_5308
2@ = get_script_task_status 18@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5301
clear_char_tasks 18@
task_kill_char_on_foot 18@ {target} $scplayer

:COKEC_5301
goto @COKEC_5390

:COKEC_5308
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5390
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5390
goto @COKEC_5472

:COKEC_5397
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5472
8@ = open_sequence_task 
if 
  is_player_playing $player1
goto_if_false @COKEC_5454
task_kill_char_on_foot -1 {target} $scplayer

:COKEC_5454
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5472
goto @COKEC_5522

:COKEC_5479
if 
  not is_car_dead 17@
goto_if_false @COKEC_5522
if 
  not is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_5522
warp_char_into_car 18@ {vehicle} 17@

:COKEC_5522
goto @COKEC_403

:COKEC_5529
if 
  14@ == 1
goto_if_false @COKEC_5846
if 
  is_player_playing $player1
goto_if_false @COKEC_5570
task_use_mobile_phone $scplayer {start} False

:COKEC_5570
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
wait 1
clear_help 
if 
  13@ == 0
goto_if_false @COKEC_5617
23@ = 0

:COKEC_5617
if 
  16@ == 0
goto_if_false @COKEC_5683
if 
  not is_message_being_displayed 
goto_if_false @COKEC_5664
print_now 'BCR3_08' {time} 7500 {flag} 1

:COKEC_5664
print_with_number_big 'BCE2_04' {num} 23@ {duration} 7500 {style} TextStyle.MiddleSmallerHigher

:COKEC_5683
if 
  13@ == 1
goto_if_false @COKEC_5761
if 
  is_player_playing $player1
goto_if_false @COKEC_5725
add_score $player1 {money} 23@

:COKEC_5725
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_5752
register_oddjob_mission_passed 
$bcesar3_passed_mission += 1

:COKEC_5752
play_mission_passed_tune 1
clear_wanted_level $player1

:COKEC_5761
mark_char_as_no_longer_needed 18@
mark_car_as_no_longer_needed 17@
mark_object_as_no_longer_needed 22@
remove_blip 19@
kill_fx_system 20@
remove_pickup 21@
remove_decision_maker 29@
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 330
remove_car_recording 556
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 330
14@ = 0

:COKEC_5846
$flag_on_courier_mission = 0
terminate_this_script 
set_var_int_to_var_int $bce_point_to_edit = $checked_coke_pickup_z
$bce_point_to_edit -= 2
set_var_int_to_var_int $start_line_point = $checked_coke_pickup_z
$start_line_point += 2
if 
  0 > $bce_point_to_edit
goto_if_false @COKEC_5910
$bce_point_to_edit = 0

:COKEC_5910
if 
  $start_line_point > 84
goto_if_false @COKEC_5935
$start_line_point = 84

:COKEC_5935
set_lvar_int_to_var_int 2@ = $bce_point_to_edit

:COKEC_5943
if 
  is_int_var_greater_than_int_lvar $start_line_point > 2@
goto_if_false @COKEC_6053
set_lvar_int_to_lvar_int 3@ = 2@
3@ += 1
if 
  85 > 3@
goto_if_false @COKEC_6039
line $3928(2@,85f) {f2} $4013(2@,85f) {f3} $4098(2@,85f) {f4} $3928(3@,85f) {f5} $4013(3@,85f) {f6} $4098(3@,85f)

:COKEC_6039
2@ += 1
goto @COKEC_5943

:COKEC_6053
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @COKEC_6124
$checked_coke_pickup_z += 1
if 
  $checked_coke_pickup_z > 84
goto_if_false @COKEC_6100
$checked_coke_pickup_z = 0

:COKEC_6100
write_debug_with_int "BCE_POINT_TO_EDIT" {number} $checked_coke_pickup_z

:COKEC_6124
if 
is_ps2_keyboard_key_just_pressed 78
goto_if_false @COKEC_6195
$checked_coke_pickup_z -= 1
if 
  0 > $checked_coke_pickup_z
goto_if_false @COKEC_6171
$checked_coke_pickup_z = 84

:COKEC_6171
write_debug_with_int "BCE_POINT_TO_EDIT" {number} $checked_coke_pickup_z

:COKEC_6195
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @COKEC_6224
$4013($checked_coke_pickup_z,85f) += 0.5

:COKEC_6224
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @COKEC_6253
$4013($checked_coke_pickup_z,85f) += -0.5

:COKEC_6253
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @COKEC_6282
$3928($checked_coke_pickup_z,85f) += 0.5

:COKEC_6282
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @COKEC_6311
$3928($checked_coke_pickup_z,85f) += -0.5

:COKEC_6311
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @COKEC_6340
$4098($checked_coke_pickup_z,85f) += 0.5

:COKEC_6340
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @COKEC_6369
$4098($checked_coke_pickup_z,85f) += -0.5

:COKEC_6369
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @COKEC_6398
$4013($checked_coke_pickup_z,85f) += 10.0

:COKEC_6398
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @COKEC_6427
$4013($checked_coke_pickup_z,85f) += -10.0

:COKEC_6427
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @COKEC_6456
$3928($checked_coke_pickup_z,85f) += 10.0

:COKEC_6456
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @COKEC_6485
$3928($checked_coke_pickup_z,85f) += -10.0

:COKEC_6485
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @COKEC_7506
save_newline_to_debug_file 
save_string_to_debug_file "COKE COURIER ROUTE - EDIT POINT -"
save_int_to_debug_file $checked_coke_pickup_z
save_newline_to_debug_file 
2@ = 0

:COKEC_6646
if 
  85 > 2@
goto_if_false @COKEC_7506
save_string_to_debug_file "BCE2_CHECKPOINTS_X["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $3928(2@,85f)
save_newline_to_debug_file 
save_string_to_debug_file "BCE2_CHECKPOINTS_Y["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $4013(2@,85f)
save_newline_to_debug_file 
save_string_to_debug_file "BCE2_CHECKPOINTS_Z["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $4098(2@,85f)
save_newline_to_debug_file 
2@ += 1
goto @COKEC_6646

:COKEC_7506
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @COKEC_7609
set_lvar_int_to_var_int 2@ = $checked_coke_pickup_z
2@ -= 1
if 
  0 > 2@
goto_if_false @COKEC_7561
2@ = 0

:COKEC_7561
set_var_float_to_var_float $3928($checked_coke_pickup_z,85f) = $3928(2@,85f)
set_var_float_to_var_float $4013($checked_coke_pickup_z,85f) = $4013(2@,85f)
set_var_float_to_var_float $4098($checked_coke_pickup_z,85f) = $4098(2@,85f)

:COKEC_7609
if 
  is_player_playing $player1
goto_if_false @COKEC_7711
  locate_char_any_means_3d $scplayer {x} $3928($checked_coke_pickup_z,85f) {y} $4013($checked_coke_pickup_z,85f) {z} $4098($checked_coke_pickup_z,85f) {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} $3928($checked_coke_pickup_z,85f) {y} $4013($checked_coke_pickup_z,85f) {z} $4098($checked_coke_pickup_z,85f) {xRadius} 0.5 {yRadius} 0.5 {zRadius} 0.5 {drawSphere} False

:COKEC_7711
return 
terminate_this_script 

//-------------External script 4 (SLOT_MACHINE)---------------

:BANDIT
script_name 'BANDIT'
4@ = 0
6@ = 0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0
14@ = generate_random_int_in_range 0 {max} 5
if 
  14@ == 1
goto_if_false @BANDIT_96
14@ = 5

:BANDIT_96
if 
  14@ == 0
goto_if_false @BANDIT_121
14@ = 1

:BANDIT_121
if 
  14@ == 2
goto_if_false @BANDIT_146
14@ = 10

:BANDIT_146
if 
  14@ == 3
goto_if_false @BANDIT_171
14@ = 20

:BANDIT_171
if 
  14@ == 4
goto_if_false @BANDIT_196
14@ = 50

:BANDIT_196
if 
  4@ == 1
goto_if_false @BANDIT_253
0@ = create_object_no_offset #KB_BANDIT_U {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #CJ_WHEEL_1 {x} $x {y} $y {z} $z

:BANDIT_253
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @BANDIT_2859
if 
  is_object_within_brain_activation_range 0@
goto_if_false @BANDIT_2845
if 
  is_player_playing $player1
goto_if_false @BANDIT_2831
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BANDIT_2824 {caseNum1} 0 {caseLabel1} @BANDIT_373 {caseNum2} 1 {caseLabel2} @BANDIT_590 {caseNum3} 2 {caseLabel3} @BANDIT_792 {caseNum4} 3 {caseLabel4} @BANDIT_1356 {caseNum5} 4 {caseLabel5} @BANDIT_1595 {caseNum6} 5 {caseLabel6} @BANDIT_1943 {caseNum7} 6 {caseLabel7} @BANDIT_2549

:BANDIT_373
15@ = get_object_model 0@
if 
  has_model_loaded 15@
goto_if_false @BANDIT_583
$heading = get_object_heading 0@
if 
  not does_object_exist 1@
goto_if_false @BANDIT_462
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
1@ = create_object_no_offset #CJ_WHEEL_1 {x} $x {y} $y {z} $z
set_object_heading 1@ {heading} $heading

:BANDIT_462
if 
  not does_object_exist 2@
goto_if_false @BANDIT_519
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 2
2@ = create_object_no_offset #CJ_WHEEL_02 {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} $heading

:BANDIT_519
if 
  not does_object_exist 3@
goto_if_false @BANDIT_576
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 3
3@ = create_object_no_offset #CJ_WHEEL_03 {x} $x {y} $y {z} $z
set_object_heading 3@ {heading} $heading

:BANDIT_576
4@ += 1

:BANDIT_583
goto @BANDIT_2824

:BANDIT_590
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} -0.5
16@ = get_user_of_closest_map_attractor $x {y} $y {z} $z {radius} 1.5 {modelId} #KB_BANDIT_U {attractorName} "PEDSLOT"
if 
  16@ == -1
goto_if_false @BANDIT_785
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @BANDIT_758
print_help_forever_with_number 'SLOT_02' {number} 14@
set_player_enter_car_button $player1 {enabled} False
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
gosub @BANDIT_2873
4@ += 1
goto @BANDIT_785

:BANDIT_758
if 
  13@ == 1
goto_if_false @BANDIT_785
remove_texture_dictionary 
13@ = 0

:BANDIT_785
goto @BANDIT_2824

:BANDIT_792
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} -0.5
16@ = get_user_of_closest_map_attractor $x {y} $y {z} $z {radius} 1.5 {modelId} #KB_BANDIT_U {attractorName} "PEDSLOT"
if 
  16@ == -1
goto_if_false @BANDIT_1306
request_animation "CASINO"
if 
  has_animation_loaded "CASINO"
goto_if_false @BANDIT_1299
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @BANDIT_1256
17@ = get_random_char_in_area_offset_no_save $x {y} $y {z} $z {radiusX} 0.6 {radiusY} 0.6 {radiusZ} 1.0
if 
  17@ == -1
goto_if_false @BANDIT_1249
if 
  not is_minigame_in_progress 
goto_if_false @BANDIT_1249
gosub @BANDIT_2873
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BANDIT_1249
set_var_int_to_lvar_int $sequence_task_obj = 14@
$sequence_task_obj -= 1
if 
  is_score_greater $player1 {money} $sequence_task_obj
goto_if_false @BANDIT_1229
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
$heading = get_object_heading 0@
task_char_slide_to_coord_and_play_anim $scplayer {x} $x {y} $y {z} $z {heading} $heading {radius} 0.4 {animationName} "SLOT_PLYR" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_var_int_to_lvar_int $sequence_task_obj = 14@
$sequence_task_obj *= -1
add_score $player1 {money} $sequence_task_obj
increment_int_stat StatId.MoneySpentGambling {value} 14@
cset_var_float_to_lvar_int $an =# 14@
$an *= 0.001
increment_float_stat StatId.Gambling {value} $an
clear_help 
set_minigame_in_progress True
set_lvar_int_to_var_int 5@ = $game_timer
5@ += 750
4@ += 1
goto @BANDIT_1249

:BANDIT_1229
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied

:BANDIT_1249
goto @BANDIT_1299

:BANDIT_1256
if 
  13@ == 1
goto_if_false @BANDIT_1283
remove_texture_dictionary 
13@ = 0

:BANDIT_1283
clear_help 
set_player_enter_car_button $player1 {enabled} True
4@ = 1

:BANDIT_1299
goto @BANDIT_1349

:BANDIT_1306
if 
  13@ == 1
goto_if_false @BANDIT_1333
remove_texture_dictionary 
13@ = 0

:BANDIT_1333
clear_help 
set_player_enter_car_button $player1 {enabled} True
4@ = 1

:BANDIT_1349
goto @BANDIT_2824

:BANDIT_1356
gosub @BANDIT_2873
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_1588
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_1424
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditInsertCoin

:BANDIT_1424
set_player_enter_car_button $player1 {enabled} True
use_text_commands True
if 
  13@ == 0
goto_if_false @BANDIT_1539
load_texture_dictionary 'LD_SLOT'
load_sprite 1 {spriteName} "CHERRY"
load_sprite 2 {spriteName} "GRAPES"
load_sprite 3 {spriteName} "R_69"
load_sprite 4 {spriteName} "BELL"
load_sprite 5 {spriteName} "BAR1_O"
load_sprite 6 {spriteName} "BAR2_O"
13@ = 1

:BANDIT_1539
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_1581
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStart

:BANDIT_1581
4@ += 1

:BANDIT_1588
goto @BANDIT_2824

:BANDIT_1595
add_timed_val_to_float_lvar 10@ +=@ 1.0
if 
  10@ > 10.0
goto_if_false @BANDIT_1682
10@ = 10.0
$sequence_task_obj = generate_random_int_in_range 2000 {max} 3000
6@ = 0
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $sequence_task_obj
clear_char_tasks $scplayer
4@ += 1

:BANDIT_1682
add_timed_val_to_float_lvar 11@ +=@ 1.1
if 
  11@ > 10.0
goto_if_false @BANDIT_1723
11@ = 10.0

:BANDIT_1723
add_timed_val_to_float_lvar 12@ +=@ 1.05
if 
  12@ > 10.0
goto_if_false @BANDIT_1764
12@ = 10.0

:BANDIT_1764
$heading = get_object_heading 0@
$temp_integer_4 = 0

:BANDIT_1779
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_1929
if 
  10@($temp_integer_4,3f) > 0.0
goto_if_false @BANDIT_1915
add_timed_float_lvar_to_float_lvar 7@($temp_integer_4,3f) +=@ 10@($temp_integer_4,3f)
if or
  7@($temp_integer_4,3f) > 360.0
  7@($temp_integer_4,3f) == 360.0
goto_if_false @BANDIT_1891
7@($temp_integer_4,3f) -= 360.0

:BANDIT_1891
set_object_rotation 1@($temp_integer_4,3i) {x} 7@($temp_integer_4,3f) {y} 0.0 {z} $heading

:BANDIT_1915
$temp_integer_4 += 1
goto @BANDIT_1779

:BANDIT_1929
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_1943
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_2370
sub_timed_val_from_float_lvar 10@(6@,3f) -=@ 0.3
if 
  0.6 > 10@(6@,3f)
goto_if_false @BANDIT_2370
set_var_float_to_lvar_float $an = 7@(6@,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
$sequence_task_obj *= 20
cset_var_float_to_var_int $an =# $sequence_task_obj
set_var_float_to_lvar_float $temp_float_1 = 7@(6@,3f)
sub_float_var_from_float_var $temp_float_1 -= $an
if 
  10.0 > $temp_float_1
goto_if_false @BANDIT_2356
10@(6@,3f) = 0.0
set_var_float_to_lvar_float $an = 7@(6@,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
cset_lvar_float_to_var_int 7@(6@,3f) =# $sequence_task_obj
7@(6@,3f) *= 20.0
$sequence_task_obj = generate_random_int_in_range 750 {max} 1000
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $sequence_task_obj
if 
  2 > 6@
goto_if_false @BANDIT_2300
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2244
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStop

:BANDIT_2244
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2286
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStart

:BANDIT_2286
6@ += 1
goto @BANDIT_2349

:BANDIT_2300
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2342
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStop

:BANDIT_2342
4@ += 1

:BANDIT_2349
goto @BANDIT_2370

:BANDIT_2356
10@(6@,3f) = 0.6

:BANDIT_2370
$heading = get_object_heading 0@
$temp_integer_4 = 0

:BANDIT_2385
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_2535
if 
  10@($temp_integer_4,3f) > 0.0
goto_if_false @BANDIT_2521
add_timed_float_lvar_to_float_lvar 7@($temp_integer_4,3f) +=@ 10@($temp_integer_4,3f)
if or
  7@($temp_integer_4,3f) > 360.0
  7@($temp_integer_4,3f) == 360.0
goto_if_false @BANDIT_2497
7@($temp_integer_4,3f) -= 360.0

:BANDIT_2497
set_object_rotation 1@($temp_integer_4,3i) {x} 7@($temp_integer_4,3f) {y} 0.0 {z} $heading

:BANDIT_2521
$temp_integer_4 += 1
goto @BANDIT_2385

:BANDIT_2535
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2549
set_var_float_to_lvar_float $an = 7@
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
set_var_float_to_lvar_float $an = 8@
$an /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $an
set_var_float_to_lvar_float $an = 9@
$an /= 20.0
cset_var_int_to_var_float $temp_integer_2 =# $an
if and
  is_int_var_equal_to_int_var $bar2_o($sequence_task_obj,18i) == $3430($temp_integer_1,18i)
  is_int_var_equal_to_int_var $bar2_o($sequence_task_obj,18i) == $3448($temp_integer_2,18i)
goto_if_false @BANDIT_2772
set_var_int_to_lvar_int $temp_integer_3 = 14@
mult_int_var_by_int_var $temp_integer_3 *= $bar2_o($sequence_task_obj,18i)
start_new_script @CASHWIN $temp_integer_3 
add_score $player1 {money} $temp_integer_3
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2751
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditPayout

:BANDIT_2751
increment_int_stat StatId.MoneyWonGambling {value} $temp_integer_3
register_int_stat StatId.BiggestGamblingWin {value} $temp_integer_3
goto @BANDIT_2792

:BANDIT_2772
start_new_script @CASHWIN 0 2500 
register_int_stat StatId.BiggestGamblingLoss {value} 14@

:BANDIT_2792
set_player_control $player1 {state} True
set_minigame_in_progress False
4@ = 1
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2824
goto @BANDIT_2838

:BANDIT_2831
goto @BANDIT_3455

:BANDIT_2838
goto @BANDIT_2852

:BANDIT_2845
goto @BANDIT_3455

:BANDIT_2852
goto @BANDIT_2866

:BANDIT_2859
goto @BANDIT_3455

:BANDIT_2866
goto @BANDIT_253

:BANDIT_2873
if 
  13@ == 1
goto_if_false @BANDIT_3453
set_sprites_draw_before_fade True
draw_window $reel_sprite_x {leftTopY} $reel_sprite_y {rightBottomX} $3468 {rightBottomY} $3473 {header} 'DUMMY' {zIndex} 0
$temp_integer_4 = 0

:BANDIT_2927
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_3453
set_var_float_to_lvar_float $an = 7@($temp_integer_4,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
if 
  $temp_integer_4 == 0
goto_if_false @BANDIT_3013
set_var_int_to_var_int $temp_integer_1 = $bar2_o($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466

:BANDIT_3013
if 
  $temp_integer_4 == 1
goto_if_false @BANDIT_3061
set_var_int_to_var_int $temp_integer_1 = $3430($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466
$temp_float_3 += 64.0

:BANDIT_3061
if 
  $temp_integer_4 == 2
goto_if_false @BANDIT_3109
set_var_int_to_var_int $temp_integer_1 = $3448($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466
$temp_float_3 += 128.0

:BANDIT_3109
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $z_temp
goto_if_false @BANDIT_3164
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3164
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $cherry
goto_if_false @BANDIT_3219
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3219
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $grape
goto_if_false @BANDIT_3274
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3274
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $r_69
goto_if_false @BANDIT_3329
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3329
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $bell
goto_if_false @BANDIT_3384
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3384
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $bar1_o
goto_if_false @BANDIT_3439
set_sprites_draw_before_fade True
draw_sprite 6 {offsetLeft} $temp_float_3 {offsetTop} $3471 {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3439
$temp_integer_4 += 1
goto @BANDIT_2927

:BANDIT_3453
return 

:BANDIT_3455
if 
  4@ > 0
goto_if_false @BANDIT_3550
if 
  4@ > 1
goto_if_false @BANDIT_3500
clear_help 
set_player_enter_car_button $player1 {enabled} True

:BANDIT_3500
if 
  4@ > 2
goto_if_false @BANDIT_3528
remove_animation "CASINO"

:BANDIT_3528
delete_object 1@
delete_object 2@
delete_object 3@
4@ = 0

:BANDIT_3550
if 
  13@ == 1
goto_if_false @BANDIT_3577
remove_texture_dictionary 
13@ = 0

:BANDIT_3577
terminate_this_script 
return 
terminate_this_script 

//-------------External script 5 (ROULETTE)---------------

:ROULETE
script_name 'ROULETE'
1@ = 0
if 
  1@ == 1
goto_if_false @ROULETE_79
0@ = create_object_no_offset #ROULETTE_TBL {x} 0.0 {y} 0.0 {z} 0.0
create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z {var_handle} $gambling_stat($8548,151i)

:ROULETE_79
2@ = 0
3@ = 0
4@ = 0
5@ = 0
8@ = 0
9@ = 0
7@ = 0
10@ = 500
11@ = 500
12@ = 0
13@ = 0
14@ = 0
15@ = 0
16@ = get_float_stat StatId.Gambling
18@ = generate_random_int_in_range 0 {max} 19
$total_roulette_tables += 1
if 
  1.0 > 16@
goto_if_false @ROULETE_255
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_248
18@ = 0

:ROULETE_248
goto @ROULETE_467

:ROULETE_255
if 
  10.0 > 16@
goto_if_false @ROULETE_315
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_308
18@ = 5

:ROULETE_308
goto @ROULETE_467

:ROULETE_315
if 
  100.0 > 16@
goto_if_false @ROULETE_375
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_368
18@ = 10

:ROULETE_368
goto @ROULETE_467

:ROULETE_375
if 
  1000.0 > 16@
goto_if_false @ROULETE_435
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_428
18@ = 14

:ROULETE_428
goto @ROULETE_467

:ROULETE_435
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_467
18@ = 17

:ROULETE_467
if or
  18@ == 0
  18@ == 1
  18@ == 2
  18@ == 3
  18@ == 4
goto_if_false @ROULETE_528
17@ = 1
19@ = -342

:ROULETE_528
if or
  18@ == 5
  18@ == 6
  18@ == 7
  18@ == 8
  18@ == 9
goto_if_false @ROULETE_589
17@ = 10
19@ = -343

:ROULETE_589
if or
  18@ == 10
  18@ == 11
  18@ == 12
  18@ == 13
goto_if_false @ROULETE_643
17@ = 100
19@ = -344

:ROULETE_643
if or
  18@ == 14
  18@ == 15
  18@ == 16
goto_if_false @ROULETE_691
17@ = 1000
19@ = -345

:ROULETE_691
if or
  18@ == 17
  18@ == 18
goto_if_false @ROULETE_732
17@ = 10000
19@ = -346

:ROULETE_732
18@ = 0
20@ = 0
set_lvar_int_to_lvar_int 21@ = 17@
21@ *= 100
22@ = 0
$sequence_task_obj = generate_random_int_in_range 0 {max} 2
if 
  $sequence_task_obj == 0
goto_if_false @ROULETE_809
set_lvar_int_to_constant 23@ = 11
goto @ROULETE_817

:ROULETE_809
set_lvar_int_to_constant 23@ = 172

:ROULETE_817
$8548 = 0

:ROULETE_824
if 
  151 > $8548
goto_if_false @ROULETE_868
$end_line_point($8548,151i) = 0
$8548 += 1
goto @ROULETE_824

:ROULETE_868
$i = 0
$winnings_this_round = 0
if 
  22@ == 1
goto_if_false @ROULETE_909
22@ = 0
return 

:ROULETE_909
24@ = 0.0
25@ = 0.0

:ROULETE_929
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @ROULETE_7879
if 
  is_object_within_brain_activation_range 0@
goto_if_false @ROULETE_7735
if 
  $iTerminateAllAmbience == 0
goto_if_false @ROULETE_7591
if 
  is_player_playing $player1
goto_if_false @ROULETE_7456
if 
  1@ == 0
goto_if_false @ROULETE_1034
request_model 23@
1@ += 1

:ROULETE_1034
if 
  1@ == 1
goto_if_false @ROULETE_1169
request_model 23@
if 
  has_model_loaded 23@
goto_if_false @ROULETE_1169
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.208 {yOffset} 0.571 {zOffset} -1.144
26@ = create_char PedType.CivFemale {modelId} 23@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
$heading += 90.0
set_char_heading 26@ {heading} $heading
set_char_decision_maker 26@ {handleOrTemplate} $iGlobalPedPanicDM
enable_disabled_attractors_on_object 0@ {state} True
1@ += 1

:ROULETE_1169
if 
  1@ == 2
goto_if_false @ROULETE_1271
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_1271
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.215 {yOffset} 1.34 {zOffset} -0.086
27@ = create_object_no_offset #WHEEL_WEE {x} $x {y} $y {z} $z
1@ += 1

:ROULETE_1271
if 
  1@ == 3
goto_if_false @ROULETE_1593
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_1593
if 
  $fFunTemp == 0
goto_if_false @ROULETE_1593
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.839 {yOffset} -2.4444 {zOffset} -0.6
$temp_float_3, $x_temp, $y_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 0.761 {yOffset} 0.9556 {zOffset} 0.6
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} $temp_float_3 {rightTopY} $x_temp {rightTopZ} $y_temp {drawSphere} False
goto_if_false @ROULETE_1593
if 
  17@ == 1
goto_if_false @ROULETE_1461
print_help_forever 'SLOT_06'

:ROULETE_1461
if 
  17@ == 10
goto_if_false @ROULETE_1490
print_help_forever 'SLOT_07'

:ROULETE_1490
if 
  17@ == 100
goto_if_false @ROULETE_1519
print_help_forever 'SLOT_08'

:ROULETE_1519
if 
  17@ == 1000
goto_if_false @ROULETE_1549
print_help_forever 'SLOT_09'

:ROULETE_1549
if 
  17@ == 10000
goto_if_false @ROULETE_1579
print_help_forever 'SLOT_10'

:ROULETE_1579
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
1@ += 1

:ROULETE_1593
if 
  1@ == 4
goto_if_false @ROULETE_2950
if 
  $3488 == 0
goto_if_false @ROULETE_2950
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_2950
if 
  $fFunTemp == 0
goto_if_false @ROULETE_2941
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.839 {yOffset} -2.4444 {zOffset} -0.6
$temp_float_3, $x_temp, $y_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 0.761 {yOffset} 0.9556 {zOffset} 0.6
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} $temp_float_3 {rightTopY} $x_temp {rightTopZ} $y_temp {drawSphere} False
goto_if_false @ROULETE_2925
if 
  can_player_start_mission $player1
goto_if_false @ROULETE_2918
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ROULETE_2911
if 
  9@ == 0
goto_if_false @ROULETE_2904
$temp_int_roulette = get_int_stat StatId.Gambling
if 
  17@ == 10
goto_if_false @ROULETE_1975
if 
  $temp_int_roulette < 1
goto_if_false @ROULETE_1975
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_1968
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_1950
set_char_say_script 26@ {_p2} $3816($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_1968

:ROULETE_1950
set_char_say_script 26@ {_p2} $3875($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_1968
goto @ROULETE_929

:ROULETE_1975
if 
  17@ == 100
goto_if_false @ROULETE_2120
if 
  $temp_int_roulette < 10
goto_if_false @ROULETE_2120
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2113
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2095
set_char_say_script 26@ {_p2} $3816($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2113

:ROULETE_2095
set_char_say_script 26@ {_p2} $3875($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2113
goto @ROULETE_929

:ROULETE_2120
if 
  17@ == 1000
goto_if_false @ROULETE_2266
if 
  $temp_int_roulette < 100
goto_if_false @ROULETE_2266
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2259
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2241
set_char_say_script 26@ {_p2} $3816($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2259

:ROULETE_2241
set_char_say_script 26@ {_p2} $3875($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2259
goto @ROULETE_929

:ROULETE_2266
if 
  17@ == 10000
goto_if_false @ROULETE_2413
if 
  $temp_int_roulette <= 999
goto_if_false @ROULETE_2413
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2406
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2388
set_char_say_script 26@ {_p2} $3816($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2406

:ROULETE_2388
set_char_say_script 26@ {_p2} $3875($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2406
goto @ROULETE_929

:ROULETE_2413
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
$x, $y, $z = get_object_coordinates 0@
task_turn_char_to_face_coord $scplayer {x} $x {y} $y {z} $z
if 
  is_widescreen_on_in_options 
goto_if_false @ROULETE_2578
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.632 {yOffset} -1.9669 {zOffset} 1.9144
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.5003 {yOffset} -1.3914 {zOffset} 1.1073
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation
goto @ROULETE_2675

:ROULETE_2578
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.5689 {yOffset} -1.5476 {zOffset} 1.8759
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.4106 {yOffset} -1.0626 {zOffset} 1.0159
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation

:ROULETE_2675
set_near_clip 0.1
use_text_commands True
load_texture_dictionary 'LD_ROUL'
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2783
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2765
set_char_say_script 26@ {_p2} $3827($temp_integer_4,2i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2783

:ROULETE_2765
set_char_say_script 26@ {_p2} $3886($temp_integer_4,2i) {_p3} True {_p4} True {_p5} False

:ROULETE_2783
load_sprite 1 {spriteName} "ROULBLA"
load_sprite 2 {spriteName} "ROULRED"
load_sprite 3 {spriteName} "ROULGRE"
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $spot_size_y {yOffset} $spot1_x {zOffset} $spot1_y
$z += 0.01
$total_stake_this_round = create_object_no_offset #ROULETTE_MARKER {x} $x {y} $y {z} $z
set_minigame_in_progress True
$3488 = 1
28@ = 0
1@ += 1
9@ = 1

:ROULETE_2904
goto @ROULETE_2918

:ROULETE_2911
9@ = 0

:ROULETE_2918
goto @ROULETE_2934

:ROULETE_2925
clear_help 
1@ = 3

:ROULETE_2934
goto @ROULETE_2950

:ROULETE_2941
clear_help 
1@ = 3

:ROULETE_2950
if 
  1@ == 5
goto_if_false @ROULETE_7449
display_radar False
if 
  $spot_increment_y > 0
goto_if_false @ROULETE_3503
$3808 += 2.0
$sprite_x += 2.0
draw_sprite 1 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 0 {g} 0 {b} 0 {a} 255
$3808 -= 2.0
$sprite_x -= 2.0
if 
  18@ == 0
goto_if_false @ROULETE_3116
draw_sprite 3 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3116
if or
  18@ == 1
  18@ == 3
  18@ == 5
  18@ == 7
  18@ == 9
  18@ == 12
goto_if_false @ROULETE_3208
draw_sprite 2 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3208
if or
  18@ == 14
  18@ == 16
  18@ == 18
  18@ == 19
  18@ == 21
  18@ == 23
goto_if_false @ROULETE_3300
draw_sprite 2 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3300
if or
  18@ == 25
  18@ == 27
  18@ == 30
  18@ == 32
  18@ == 34
  18@ == 36
goto_if_false @ROULETE_3392
draw_sprite 2 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3392
draw_sprite 1 {offsetLeft} $3808 {offsetTop} $sprite_x {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255

:ROULETE_3424
set_var_float_to_var_float $chips_stack = $3808
$chips_stack += -1.6679
set_var_float_to_var_float $text_positionn_x = $sprite_x
$text_positionn_x += -30.0255
gosub @ROULETE_18193
set_text_scale 0.9423 {heightScale} 4.2306
set_text_centre True
display_text_with_number $chips_stack {offsetTop} $text_positionn_x {key} 'NUMBER' {num} 18@

:ROULETE_3503
draw_window $3478 {leftTopY} $3482 {rightBottomX} $3479 {rightBottomY} $3483 {header} 'ROUWAGE' {zIndex} 2
gosub @ROULETE_18193
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @ROULETE_3579
set_text_scale 0.42 {heightScale} 2.5077

:ROULETE_3579
display_text $3476 {offsetTop} $3480 {key} 'ROU_MAX'
set_var_float_to_var_float $text_positionn_x = $3480
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
set_text_scale $rou_x_scale {heightScale} $rou_y_scale
display_text_with_number $3476 {offsetTop} $text_positionn_x {key} 'DOLLAR' {num} 21@
add_float_var_to_float_var $text_positionn_x += $rou_text_x
gosub @ROULETE_18193
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $3476 {offsetTop} $text_positionn_x {key} 'ROUYOUR'
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
set_text_scale $rou_x_scale {heightScale} $rou_y_scale
display_text_with_number $3476 {offsetTop} $text_positionn_x {key} 'DOLLAR' {num} $winnings_this_round
add_float_var_to_float_var $text_positionn_x += $rou_text_x
gosub @ROULETE_18193
if 
  $spot_increment_y > 0
goto_if_false @ROULETE_3850
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $3476 {offsetTop} $text_positionn_x {key} 'ROU_WON'
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
set_text_scale $rou_x_scale {heightScale} $rou_y_scale
display_text_with_number $3476 {offsetTop} $text_positionn_x {key} 'DOLLAR' {num} $i
goto @ROULETE_3924

:ROULETE_3850
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $3476 {offsetTop} $text_positionn_x {key} 'ROUTHIS'
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
set_text_scale $rou_x_scale {heightScale} $rou_y_scale
display_text_with_number $3476 {offsetTop} $text_positionn_x {key} 'DOLLAR' {num} 20@

:ROULETE_3924
if 
  $spot_increment_y == 0
goto_if_false @ROULETE_4536
print_help_forever 'ROUHELP'
set_object_visible $total_stake_this_round {state} True
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ROULETE_4238
if 
  7@ == 0
goto_if_false @ROULETE_4231
if 
  $winnings_this_round > 0
goto_if_false @ROULETE_4189
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4106
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4088
set_char_say_script 26@ {_p2} $sprite_y($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4106

:ROULETE_4088
set_char_say_script 26@ {_p2} $3869($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_4106
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_4141
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteSpin

:ROULETE_4141
increment_int_stat StatId.MoneySpentGambling {value} $winnings_this_round
cset_var_float_to_var_int $an =# $winnings_this_round
$an *= 0.001
clear_help 
increment_float_stat StatId.Gambling {value} $an
$spot_increment_y += 1
goto @ROULETE_4224

:ROULETE_4189
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_4224
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteNoCash

:ROULETE_4224
7@ += 1

:ROULETE_4231
goto @ROULETE_4245

:ROULETE_4238
7@ = 0

:ROULETE_4245
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ROULETE_4522
if 
  9@ == 0
goto_if_false @ROULETE_4515
9@ += 1
$spot_increment_y = 0
1@ = 3
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4387
$temp_integer_4 = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4369
set_char_say_script 26@ {_p2} $3825($temp_integer_4,2i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4387

:ROULETE_4369
set_char_say_script 26@ {_p2} $3884($temp_integer_4,2i) {_p3} True {_p4} True {_p5} False

:ROULETE_4387
display_radar True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
use_text_commands False
remove_texture_dictionary 
clear_help 
delete_object $total_stake_this_round
add_score $player1 {money} $winnings_this_round
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_4455
if 
  151 > $8548
goto_if_false @ROULETE_4497
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_4455

:ROULETE_4497
set_minigame_in_progress False
$3488 = 0
goto @ROULETE_929

:ROULETE_4515
goto @ROULETE_4529

:ROULETE_4522
9@ = 0

:ROULETE_4529
gosub @ROULETE_8023

:ROULETE_4536
if 
  $spot_increment_y == 1
goto_if_false @ROULETE_4625
set_object_visible $total_stake_this_round {state} False
add_timed_val_to_float_lvar 24@ +=@ 0.5
if or
  24@ > 20.0
  24@ == 20.0
goto_if_false @ROULETE_4625
set_var_int_to_var_int $roulette_flag = $game_timer
$roulette_flag += 1500
$spot_increment_y += 1

:ROULETE_4625
if 
  $spot_increment_y == 2
goto_if_false @ROULETE_4803
if 
  is_int_var_greater_than_int_var $game_timer > $roulette_flag
goto_if_false @ROULETE_4803
sub_timed_val_from_float_lvar 24@ -=@ 0.08
if or
  0.0 > 24@
  24@ == 0.0
goto_if_false @ROULETE_4803
18@ = generate_random_int_in_range 0 {max} 37
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4789
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4771
set_char_say_script 26@ {_p2} $3829(18@,37i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4789

:ROULETE_4771
set_char_say_script 26@ {_p2} $3888(18@,37i) {_p3} True {_p4} True {_p5} False

:ROULETE_4789
gosub @ROULETE_9703
$spot_increment_y += 1

:ROULETE_4803
if 
  $spot_increment_y == 3
goto_if_false @ROULETE_5553
print_help_forever 'X_CONT'
set_var_int_to_var_int $sequence_task_obj = $i
sub_int_var_from_int_var $sequence_task_obj -= $winnings_this_round
if 
  $sequence_task_obj == 0
goto_if_false @ROULETE_4934
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
display_text 320.0 {offsetTop} 180.333 {key} 'NOWIN'
goto @ROULETE_5138

:ROULETE_4934
if 
  $sequence_task_obj > 0
goto_if_false @ROULETE_5060
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = get_hud_colour 6
set_text_colour $temp_integer_1 {green} $temp_integer_2 {blue} $temp_integer_3 {alpha} 255
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'WINNER' {num} $sequence_task_obj
register_int_stat StatId.BiggestGamblingWin {value} $sequence_task_obj
goto @ROULETE_5138

:ROULETE_5060
$sequence_task_obj *= -1
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'LOSER' {num} $sequence_task_obj
register_int_stat StatId.BiggestGamblingLoss {value} $sequence_task_obj

:ROULETE_5138
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ROULETE_5546
if 
  7@ == 0
goto_if_false @ROULETE_5539
set_lvar_int_to_var_int 7@ = $game_timer
7@ += 999999
add_score $player1 {money} $i
increment_int_stat StatId.MoneyWonGambling {value} $i
set_var_int_to_var_int $sequence_task_obj = $i
sub_int_var_from_int_var $sequence_task_obj -= $winnings_this_round
$bj_temp_float3 += 1
if 
  $sequence_task_obj > 0
goto_if_false @ROULETE_5425
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if or
  $temp_integer_4 == 0
  $temp_integer_4 == 1
goto_if_false @ROULETE_5408
if 
  $bj_temp_float3 > 1
goto_if_false @ROULETE_5315
$temp_integer_4 = generate_random_int_in_range 3 {max} 6
goto @ROULETE_5324

:ROULETE_5315
$temp_integer_4 = generate_random_int_in_range 0 {max} 3

:ROULETE_5324
if 
  not is_char_dead 26@
goto_if_false @ROULETE_5401
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_5383
set_char_say_script 26@ {_p2} $3819($temp_integer_4,6i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_5401

:ROULETE_5383
set_char_say_script 26@ {_p2} $3878($temp_integer_4,6i) {_p3} True {_p4} True {_p5} False

:ROULETE_5401
goto @ROULETE_5418

:ROULETE_5408
$temp_integer_3 = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin

:ROULETE_5418
goto @ROULETE_5469

:ROULETE_5425
$temp_integer_1 = generate_random_int_in_range 0 {max} 2
if 
  $temp_integer_1 == 0
goto_if_false @ROULETE_5462
$temp_integer_3 = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoLose

:ROULETE_5462
$bj_temp_float3 = 0

:ROULETE_5469
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_5490
if 
  151 > $8548
goto_if_false @ROULETE_5532
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_5490

:ROULETE_5532
$spot_increment_y = 0

:ROULETE_5539
goto @ROULETE_5553

:ROULETE_5546
7@ = 0

:ROULETE_5553
if and
  $spot_increment_y > 0
  3 > $spot_increment_y
goto_if_false @ROULETE_5613
add_timed_float_lvar_to_float_lvar 25@ +=@ 24@
set_object_rotation 27@ {x} 0.0 {y} 0.0 {z} 25@
18@ = generate_random_int_in_range 0 {max} 37

:ROULETE_5613
$text_positionn_y, $pad1_left_stick_x, $pad1_left_stick_y, $pad1_right_stick_x = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -80 > $text_positionn_y
goto_if_false @ROULETE_6087
if 
  2@ == 0
goto_if_false @ROULETE_6054
set_lvar_int_to_var_int 12@ = $game_timer
12@ += 80
if 
  0.0 > $spot1_z
goto_if_false @ROULETE_5804
if 
  $spot_selection_x <> 2.0
goto_if_false @ROULETE_5797
if 
  $spot1_z <> 0.0
goto_if_false @ROULETE_5797
if 
  $spot_selection_x == -24.0
goto_if_false @ROULETE_5787
$spot1_z += 2.0
goto @ROULETE_5797

:ROULETE_5787
$spot1_z += 1.0

:ROULETE_5797
goto @ROULETE_6040

:ROULETE_5804
if 
  $spot1_z == 0.0
goto_if_false @ROULETE_5999
if and
  2.0 > $spot_selection_x
  $spot_selection_x > -7.0
goto_if_false @ROULETE_5883
$spot1_z += 2.0
$spot_selection_x = -3.0
goto @ROULETE_5992

:ROULETE_5883
if and
  -6.0 > $spot_selection_x
  $spot_selection_x > -15.0
goto_if_false @ROULETE_5941
$spot1_z += 2.0
$spot_selection_x = -11.0
goto @ROULETE_5992

:ROULETE_5941
if and
  -14.0 > $spot_selection_x
  $spot_selection_x > -24.0
goto_if_false @ROULETE_5992
$spot1_z += 2.0
$spot_selection_x = -19.0

:ROULETE_5992
goto @ROULETE_6040

:ROULETE_5999
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_6040
$spot1_z += 2.0
$spot_selection_x += 2.0

:ROULETE_6040
2@ += 1
goto @ROULETE_6080

:ROULETE_6054
if 
  is_int_var_greater_than_int_lvar $game_timer > 12@
goto_if_false @ROULETE_6080
2@ = 0

:ROULETE_6080
goto @ROULETE_6094

:ROULETE_6087
2@ = 0

:ROULETE_6094
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $text_positionn_y > 80
goto_if_false @ROULETE_6521
if 
  3@ == 0
goto_if_false @ROULETE_6488
set_lvar_int_to_var_int 13@ = $game_timer
13@ += 80
if 
  $spot1_z > -4.0
goto_if_false @ROULETE_6412
if 
  $spot_selection_x <> 2.0
goto_if_false @ROULETE_6405
if 
  $spot1_z <> -4.0
goto_if_false @ROULETE_6405
if or
  $spot_selection_x == -24.0
  $spot1_z == 2.0
  $spot1_z == 4.0
goto_if_false @ROULETE_6395
if or
  $spot_selection_x == -1.0
  $spot_selection_x == -5.0
goto_if_false @ROULETE_6296
$spot_selection_x = -3.0

:ROULETE_6296
if or
  $spot_selection_x == -9.0
  $spot_selection_x == -13.0
goto_if_false @ROULETE_6337
$spot_selection_x = -11.0

:ROULETE_6337
if or
  $spot_selection_x == -17.0
  $spot_selection_x == -21.0
goto_if_false @ROULETE_6378
$spot_selection_x = -19.0

:ROULETE_6378
$spot1_z += -2.0
goto @ROULETE_6405

:ROULETE_6395
$spot1_z += -1.0

:ROULETE_6405
goto @ROULETE_6474

:ROULETE_6412
if 
  $spot1_z == -4.0
goto_if_false @ROULETE_6474
if and
  $spot_selection_x > -23.0
  1.0 > $spot_selection_x
goto_if_false @ROULETE_6474
$spot1_z += -1.0

:ROULETE_6474
3@ += 1
goto @ROULETE_6514

:ROULETE_6488
if 
  is_int_var_greater_than_int_lvar $game_timer > 13@
goto_if_false @ROULETE_6514
3@ = 0

:ROULETE_6514
goto @ROULETE_6528

:ROULETE_6521
3@ = 0

:ROULETE_6528
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -80 > $pad1_left_stick_x
goto_if_false @ROULETE_6867
if 
  4@ == 0
goto_if_false @ROULETE_6834
set_lvar_int_to_var_int 14@ = $game_timer
14@ += 80
if 
  0.0 > $spot_selection_x
goto_if_false @ROULETE_6779
if 
  $spot_selection_x == -24.0
goto_if_false @ROULETE_6644
$spot_selection_x += 2.0
goto @ROULETE_6772

:ROULETE_6644
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_6703
if 
  $spot_selection_x <> -3.0
goto_if_false @ROULETE_6696
$spot_selection_x += 8.0

:ROULETE_6696
goto @ROULETE_6772

:ROULETE_6703
if 
  $spot1_z == 4.0
goto_if_false @ROULETE_6762
if 
  $spot_selection_x <> -1.0
goto_if_false @ROULETE_6755
$spot_selection_x += 4.0

:ROULETE_6755
goto @ROULETE_6772

:ROULETE_6762
$spot_selection_x += 1.0

:ROULETE_6772
goto @ROULETE_6820

:ROULETE_6779
if 
  $spot_selection_x == 0.0
goto_if_false @ROULETE_6820
$spot_selection_x += 2.0
$spot1_z = -2.0

:ROULETE_6820
4@ += 1
goto @ROULETE_6860

:ROULETE_6834
if 
  is_int_var_greater_than_int_lvar $game_timer > 14@
goto_if_false @ROULETE_6860
4@ = 0

:ROULETE_6860
goto @ROULETE_6874

:ROULETE_6867
4@ = 0

:ROULETE_6874
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $pad1_left_stick_x > 80
goto_if_false @ROULETE_7331
if 
  5@ == 0
goto_if_false @ROULETE_7298
set_lvar_int_to_var_int 15@ = $game_timer
15@ += 80
if 
  $spot_selection_x > -22.0
goto_if_false @ROULETE_7125
if 
  $spot_selection_x == 2.0
goto_if_false @ROULETE_6990
$spot_selection_x += -2.0
goto @ROULETE_7118

:ROULETE_6990
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_7049
if 
  $spot_selection_x <> -19.0
goto_if_false @ROULETE_7042
$spot_selection_x += -8.0

:ROULETE_7042
goto @ROULETE_7118

:ROULETE_7049
if 
  $spot1_z == 4.0
goto_if_false @ROULETE_7108
if 
  $spot_selection_x <> -21.0
goto_if_false @ROULETE_7101
$spot_selection_x += -4.0

:ROULETE_7101
goto @ROULETE_7118

:ROULETE_7108
$spot_selection_x += -1.0

:ROULETE_7118
goto @ROULETE_7284

:ROULETE_7125
if 
  $spot1_z == -4.0
goto_if_false @ROULETE_7184
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7177
$spot_selection_x += -2.0

:ROULETE_7177
goto @ROULETE_7284

:ROULETE_7184
if 
  $spot1_z == 0.0
goto_if_false @ROULETE_7243
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7236
$spot_selection_x += -2.0

:ROULETE_7236
goto @ROULETE_7284

:ROULETE_7243
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7284
$spot1_z = -2.0
$spot_selection_x += -2.0

:ROULETE_7284
5@ += 1
goto @ROULETE_7324

:ROULETE_7298
if 
  is_int_var_greater_than_int_lvar $game_timer > 15@
goto_if_false @ROULETE_7324
5@ = 0

:ROULETE_7324
goto @ROULETE_7338

:ROULETE_7331
5@ = 0

:ROULETE_7338
set_var_float_to_var_float $chip_position_y = $spot1_z
mult_float_var_by_float_var $chip_position_y *= $spot36_bottomright_y
set_var_float_to_var_float $spot_increment_x = $spot_selection_x
mult_float_var_by_float_var $spot_increment_x *= $spot_size_x
set_var_float_to_var_float $spot_selection_y = $spot_size_y
add_float_var_to_float_var $spot_selection_y += $chip_position_y
set_var_float_to_var_float $chip_position_x = $spot1_x
add_float_var_to_float_var $chip_position_x += $spot_increment_x
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $spot_selection_y {yOffset} $chip_position_x {zOffset} $spot1_y
$z += 0.01
set_object_coordinates $total_stake_this_round {x} $x {y} $y {z} $z

:ROULETE_7449
goto @ROULETE_7584

:ROULETE_7456
if 
  1@ > 0
goto_if_false @ROULETE_7584
if 
  1@ > 3
goto_if_false @ROULETE_7494
clear_help 

:ROULETE_7494
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7525
if 
  151 > $8548
goto_if_false @ROULETE_7567
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_7525

:ROULETE_7567
delete_object $total_stake_this_round
delete_object 27@
1@ = 0

:ROULETE_7584
goto @ROULETE_7728

:ROULETE_7591
if 
  1@ > 0
goto_if_false @ROULETE_7719
if 
  1@ > 3
goto_if_false @ROULETE_7629
clear_help 

:ROULETE_7629
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7660
if 
  151 > $8548
goto_if_false @ROULETE_7702
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_7660

:ROULETE_7702
delete_object $total_stake_this_round
delete_object 27@
1@ = 0

:ROULETE_7719
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7728
goto @ROULETE_7872

:ROULETE_7735
if 
  1@ > 0
goto_if_false @ROULETE_7863
if 
  1@ > 3
goto_if_false @ROULETE_7773
clear_help 

:ROULETE_7773
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7804
if 
  151 > $8548
goto_if_false @ROULETE_7846
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_7804

:ROULETE_7846
delete_object $total_stake_this_round
delete_object 27@
1@ = 0

:ROULETE_7863
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7872
goto @ROULETE_8016

:ROULETE_7879
if 
  1@ > 0
goto_if_false @ROULETE_8007
if 
  1@ > 3
goto_if_false @ROULETE_7917
clear_help 

:ROULETE_7917
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7948
if 
  151 > $8548
goto_if_false @ROULETE_7990
delete_object $gambling_stat($8548,151i)
$8548 += 1
goto @ROULETE_7948

:ROULETE_7990
delete_object $total_stake_this_round
delete_object 27@
1@ = 0

:ROULETE_8007
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_8016
goto @ROULETE_929

:ROULETE_8023
$8548 = 0

:ROULETE_8030
if 
  151 > $8548
goto_if_false @ROULETE_9701
if 
  is_float_var_equal_to_float_var $spot1_z == $wheel_rotation_timer($8548,151f)
goto_if_false @ROULETE_9687
if 
  is_float_var_equal_to_float_var $spot_selection_x == $3657($8548,151f)
goto_if_false @ROULETE_9687
set_lvar_int_to_var_int 20@ = $end_line_point($8548,151i)
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @ROULETE_9317
if 
  is_int_var_greater_than_int_lvar $game_timer > 8@
goto_if_false @ROULETE_9310
$pad1_right_stick_y = store_score $player1
$pad1_right_stick_y += 1
$temp_int_roulette = get_int_stat StatId.Gambling
if 
  $temp_int_roulette > 999
goto_if_false @ROULETE_8338
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 1000000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8331
if 
  28@ == 0
goto_if_false @ROULETE_8331
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8324
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8306
set_char_say_script 26@ {_p2} $3866($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8324

:ROULETE_8306
set_char_say_script 26@ {_p2} $3925($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8324
28@ = 1

:ROULETE_8331
goto @ROULETE_8858

:ROULETE_8338
if 
  $temp_int_roulette > 100
goto_if_false @ROULETE_8510
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 100000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8503
if 
  28@ == 0
goto_if_false @ROULETE_8503
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8496
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8478
set_char_say_script 26@ {_p2} $3866($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8496

:ROULETE_8478
set_char_say_script 26@ {_p2} $3925($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8496
28@ = 1

:ROULETE_8503
goto @ROULETE_8858

:ROULETE_8510
if 
  $temp_int_roulette > 10
goto_if_false @ROULETE_8680
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 10000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8673
if 
  28@ == 0
goto_if_false @ROULETE_8673
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8666
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8648
set_char_say_script 26@ {_p2} $3866($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8666

:ROULETE_8648
set_char_say_script 26@ {_p2} $3925($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8666
28@ = 1

:ROULETE_8673
goto @ROULETE_8858

:ROULETE_8680
if 
  $temp_int_roulette > 1
goto_if_false @ROULETE_8850
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 1000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8843
if 
  28@ == 0
goto_if_false @ROULETE_8843
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8836
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8818
set_char_say_script 26@ {_p2} $3866($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8836

:ROULETE_8818
set_char_say_script 26@ {_p2} $3925($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8836
28@ = 1

:ROULETE_8843
goto @ROULETE_8858

:ROULETE_8850
set_var_int_to_lvar_int $temp_integer_3 = 17@

:ROULETE_8858
if and
  is_int_lvar_greater_than_int_var 21@ > $winnings_this_round
  is_int_var_greater_than_int_var $pad1_right_stick_y > $temp_integer_3
goto_if_false @ROULETE_9145
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_8927
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteAddCash

:ROULETE_8927
add_int_lvar_to_int_lvar 20@ += 17@
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= -1
add_score $player1 {money} $pad1_right_stick_y
add_int_lvar_to_int_var $winnings_this_round += 17@
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= 26
if 
  is_int_var_greater_than_int_lvar $pad1_right_stick_y > 20@
goto_if_false @ROULETE_9096
$x, $y, $z = get_object_coordinates $total_stake_this_round
$z += -0.14
set_var_int_to_lvar_int $pad1_right_stick_y = 20@
div_int_var_by_int_lvar $pad1_right_stick_y /= 17@
cset_var_float_to_var_int $an =# $pad1_right_stick_y
$an *= 0.005
add_float_var_to_float_var $z += $an
delete_object $gambling_stat($8548,151i)
create_object_no_offset 19@ {x} $x {y} $y {z} $z {var_handle} $gambling_stat($8548,151i)

:ROULETE_9096
set_lvar_int_to_var_int 8@ = $game_timer
add_int_lvar_to_int_lvar 8@ += 10@
if 
  10@ == 500
goto_if_false @ROULETE_9138
10@ = 80

:ROULETE_9138
goto @ROULETE_9310

:ROULETE_9145
if 
  is_int_var_greater_or_equal_to_int_var $temp_integer_3 >= $pad1_right_stick_y
goto_if_false @ROULETE_9250
if 
  not is_char_dead 26@
goto_if_false @ROULETE_9250
$temp_integer_4 = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_9232
set_char_say_script 26@ {_p2} $3813($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_9250

:ROULETE_9232
set_char_say_script 26@ {_p2} $3872($temp_integer_4,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_9250
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_9292
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteNoCash

:ROULETE_9292
set_lvar_int_to_var_int 8@ = $game_timer
8@ += 6000000

:ROULETE_9310
goto @ROULETE_9675

:ROULETE_9317
set_lvar_int_to_var_int 8@ = $game_timer
10@ = 500
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ROULETE_9659
if 
  is_int_var_greater_than_int_lvar $game_timer > 6@
goto_if_false @ROULETE_9652
if or
  is_int_lvar_greater_than_int_lvar 20@ > 17@
  is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @ROULETE_9610
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_9438
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteRemoveCash

:ROULETE_9438
sub_int_lvar_from_int_lvar 20@ -= 17@
sub_int_lvar_from_int_var $winnings_this_round -= 17@
add_score $player1 {money} 17@
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= 26
if 
  is_int_var_greater_than_int_lvar $pad1_right_stick_y > 20@
goto_if_false @ROULETE_9610
$x, $y, $z = get_object_coordinates $total_stake_this_round
$z += -0.14
set_var_int_to_lvar_int $pad1_right_stick_y = 20@
div_int_var_by_int_lvar $pad1_right_stick_y /= 17@
cset_var_float_to_var_int $an =# $pad1_right_stick_y
$an *= 0.005
add_float_var_to_float_var $z += $an
delete_object $gambling_stat($8548,151i)
if 
  20@ > 0
goto_if_false @ROULETE_9610
create_object_no_offset 19@ {x} $x {y} $y {z} $z {var_handle} $gambling_stat($8548,151i)

:ROULETE_9610
set_lvar_int_to_var_int 6@ = $game_timer
add_int_lvar_to_int_lvar 6@ += 11@
if 
  11@ == 500
goto_if_false @ROULETE_9652
11@ = 80

:ROULETE_9652
goto @ROULETE_9675

:ROULETE_9659
set_lvar_int_to_var_int 6@ = $game_timer
11@ = 500

:ROULETE_9675
set_var_int_to_lvar_int $end_line_point($8548,151i) = 20@

:ROULETE_9687
$8548 += 1
goto @ROULETE_8030

:ROULETE_9701
return 

:ROULETE_9703
if 
  18@ == 0
goto_if_false @ROULETE_9743
$end_line_point[0] *= 36
add_int_var_to_int_var $i += $end_line_point[0]
$end_line_point[0] = 0

:ROULETE_9743
if 
  18@ == 1
goto_if_false @ROULETE_9926
$end_line_point[1] *= 36
add_int_var_to_int_var $i += $end_line_point[1]
$end_line_point[37] *= 18
add_int_var_to_int_var $i += $end_line_point[37]
$end_line_point[61] *= 18
add_int_var_to_int_var $i += $end_line_point[61]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_9926
if 
  18@ == 2
goto_if_false @ROULETE_10139
$end_line_point[2] *= 36
add_int_var_to_int_var $i += $end_line_point[2]
$end_line_point[37] *= 18
add_int_var_to_int_var $i += $end_line_point[37]
$end_line_point[38] *= 18
add_int_var_to_int_var $i += $end_line_point[38]
$end_line_point[62] *= 18
add_int_var_to_int_var $i += $end_line_point[62]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_10139
if 
  18@ == 3
goto_if_false @ROULETE_10322
$end_line_point[3] *= 36
add_int_var_to_int_var $i += $end_line_point[3]
$end_line_point[38] *= 18
add_int_var_to_int_var $i += $end_line_point[38]
$end_line_point[63] *= 18
add_int_var_to_int_var $i += $end_line_point[63]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_10322
if 
  18@ == 4
goto_if_false @ROULETE_10550
$end_line_point[4] *= 36
add_int_var_to_int_var $i += $end_line_point[4]
$end_line_point[61] *= 18
add_int_var_to_int_var $i += $end_line_point[61]
$end_line_point[39] *= 18
add_int_var_to_int_var $i += $end_line_point[39]
$end_line_point[64] *= 18
add_int_var_to_int_var $i += $end_line_point[64]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_10550
if 
  18@ == 5
goto_if_false @ROULETE_10823
$end_line_point[5] *= 36
add_int_var_to_int_var $i += $end_line_point[5]
$end_line_point[62] *= 18
add_int_var_to_int_var $i += $end_line_point[62]
$end_line_point[39] *= 18
add_int_var_to_int_var $i += $end_line_point[39]
$end_line_point[40] *= 18
add_int_var_to_int_var $i += $end_line_point[40]
$end_line_point[65] *= 18
add_int_var_to_int_var $i += $end_line_point[65]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[107]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_10823
if 
  18@ == 6
goto_if_false @ROULETE_11051
$end_line_point[6] *= 36
add_int_var_to_int_var $i += $end_line_point[6]
$end_line_point[63] *= 18
add_int_var_to_int_var $i += $end_line_point[63]
$end_line_point[40] *= 18
add_int_var_to_int_var $i += $end_line_point[40]
$end_line_point[66] *= 18
add_int_var_to_int_var $i += $end_line_point[66]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[107]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_11051
if 
  18@ == 7
goto_if_false @ROULETE_11279
$end_line_point[7] *= 36
add_int_var_to_int_var $i += $end_line_point[7]
$end_line_point[64] *= 18
add_int_var_to_int_var $i += $end_line_point[64]
$end_line_point[41] *= 18
add_int_var_to_int_var $i += $end_line_point[41]
$end_line_point[67] *= 18
add_int_var_to_int_var $i += $end_line_point[67]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11279
if 
  18@ == 8
goto_if_false @ROULETE_11552
$end_line_point[8] *= 36
add_int_var_to_int_var $i += $end_line_point[8]
$end_line_point[65] *= 18
add_int_var_to_int_var $i += $end_line_point[65]
$end_line_point[41] *= 18
add_int_var_to_int_var $i += $end_line_point[41]
$end_line_point[42] *= 18
add_int_var_to_int_var $i += $end_line_point[42]
$end_line_point[68] *= 18
add_int_var_to_int_var $i += $end_line_point[68]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11552
if 
  18@ == 9
goto_if_false @ROULETE_11780
$end_line_point[9] *= 36
add_int_var_to_int_var $i += $end_line_point[9]
$end_line_point[66] *= 18
add_int_var_to_int_var $i += $end_line_point[66]
$end_line_point[42] *= 18
add_int_var_to_int_var $i += $end_line_point[42]
$end_line_point[69] *= 18
add_int_var_to_int_var $i += $end_line_point[69]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11780
if 
  18@ == 10
goto_if_false @ROULETE_12008
$end_line_point[10] *= 36
add_int_var_to_int_var $i += $end_line_point[10]
$end_line_point[67] *= 18
add_int_var_to_int_var $i += $end_line_point[67]
$end_line_point[43] *= 18
add_int_var_to_int_var $i += $end_line_point[43]
$end_line_point[70] *= 18
add_int_var_to_int_var $i += $end_line_point[70]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12008
if 
  18@ == 11
goto_if_false @ROULETE_12281
$end_line_point[11] *= 36
add_int_var_to_int_var $i += $end_line_point[11]
$end_line_point[68] *= 18
add_int_var_to_int_var $i += $end_line_point[68]
$end_line_point[43] *= 18
add_int_var_to_int_var $i += $end_line_point[43]
$end_line_point[44] *= 18
add_int_var_to_int_var $i += $end_line_point[44]
$end_line_point[71] *= 18
add_int_var_to_int_var $i += $end_line_point[71]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12281
if 
  18@ == 12
goto_if_false @ROULETE_12509
$end_line_point[12] *= 36
add_int_var_to_int_var $i += $end_line_point[12]
$end_line_point[69] *= 18
add_int_var_to_int_var $i += $end_line_point[69]
$end_line_point[44] *= 18
add_int_var_to_int_var $i += $end_line_point[44]
$end_line_point[72] *= 18
add_int_var_to_int_var $i += $end_line_point[72]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12509
if 
  18@ == 13
goto_if_false @ROULETE_12737
$end_line_point[13] *= 36
add_int_var_to_int_var $i += $end_line_point[13]
$end_line_point[70] *= 18
add_int_var_to_int_var $i += $end_line_point[70]
$end_line_point[45] *= 18
add_int_var_to_int_var $i += $end_line_point[45]
$end_line_point[73] *= 18
add_int_var_to_int_var $i += $end_line_point[73]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_12737
if 
  18@ == 14
goto_if_false @ROULETE_13010
$end_line_point[14] *= 36
add_int_var_to_int_var $i += $end_line_point[14]
$end_line_point[71] *= 18
add_int_var_to_int_var $i += $end_line_point[71]
$end_line_point[45] *= 18
add_int_var_to_int_var $i += $end_line_point[45]
$end_line_point[46] *= 18
add_int_var_to_int_var $i += $end_line_point[46]
$end_line_point[74] *= 18
add_int_var_to_int_var $i += $end_line_point[74]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_13010
if 
  18@ == 15
goto_if_false @ROULETE_13238
$end_line_point[15] *= 36
add_int_var_to_int_var $i += $end_line_point[15]
$end_line_point[72] *= 18
add_int_var_to_int_var $i += $end_line_point[72]
$end_line_point[46] *= 18
add_int_var_to_int_var $i += $end_line_point[46]
$end_line_point[75] *= 18
add_int_var_to_int_var $i += $end_line_point[75]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_13238
if 
  18@ == 16
goto_if_false @ROULETE_13466
$end_line_point[16] *= 36
add_int_var_to_int_var $i += $end_line_point[16]
$end_line_point[73] *= 18
add_int_var_to_int_var $i += $end_line_point[73]
$end_line_point[47] *= 18
add_int_var_to_int_var $i += $end_line_point[47]
$end_line_point[76] *= 18
add_int_var_to_int_var $i += $end_line_point[76]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13466
if 
  18@ == 17
goto_if_false @ROULETE_13739
$end_line_point[17] *= 36
add_int_var_to_int_var $i += $end_line_point[17]
$end_line_point[74] *= 18
add_int_var_to_int_var $i += $end_line_point[74]
$end_line_point[47] *= 18
add_int_var_to_int_var $i += $end_line_point[47]
$end_line_point[48] *= 18
add_int_var_to_int_var $i += $end_line_point[48]
$end_line_point[77] *= 18
add_int_var_to_int_var $i += $end_line_point[77]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13739
if 
  18@ == 18
goto_if_false @ROULETE_13967
$end_line_point[18] *= 36
add_int_var_to_int_var $i += $end_line_point[18]
$end_line_point[75] *= 18
add_int_var_to_int_var $i += $end_line_point[75]
$end_line_point[48] *= 18
add_int_var_to_int_var $i += $end_line_point[48]
$end_line_point[78] *= 18
add_int_var_to_int_var $i += $end_line_point[78]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13967
if 
  18@ == 19
goto_if_false @ROULETE_14195
$end_line_point[19] *= 36
add_int_var_to_int_var $i += $end_line_point[19]
$end_line_point[76] *= 18
add_int_var_to_int_var $i += $end_line_point[76]
$end_line_point[49] *= 18
add_int_var_to_int_var $i += $end_line_point[49]
$end_line_point[79] *= 18
add_int_var_to_int_var $i += $end_line_point[79]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14195
if 
  18@ == 20
goto_if_false @ROULETE_14468
$end_line_point[20] *= 36
add_int_var_to_int_var $i += $end_line_point[20]
$end_line_point[77] *= 18
add_int_var_to_int_var $i += $end_line_point[77]
$end_line_point[49] *= 18
add_int_var_to_int_var $i += $end_line_point[49]
$end_line_point[50] *= 18
add_int_var_to_int_var $i += $end_line_point[50]
$end_line_point[80] *= 18
add_int_var_to_int_var $i += $end_line_point[80]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14468
if 
  18@ == 21
goto_if_false @ROULETE_14696
$end_line_point[21] *= 36
add_int_var_to_int_var $i += $end_line_point[21]
$end_line_point[78] *= 18
add_int_var_to_int_var $i += $end_line_point[78]
$end_line_point[50] *= 18
add_int_var_to_int_var $i += $end_line_point[50]
$end_line_point[81] *= 18
add_int_var_to_int_var $i += $end_line_point[81]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14696
if 
  18@ == 22
goto_if_false @ROULETE_14924
$end_line_point[22] *= 36
add_int_var_to_int_var $i += $end_line_point[22]
$end_line_point[79] *= 18
add_int_var_to_int_var $i += $end_line_point[79]
$end_line_point[51] *= 18
add_int_var_to_int_var $i += $end_line_point[51]
$end_line_point[82] *= 18
add_int_var_to_int_var $i += $end_line_point[82]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_14924
if 
  18@ == 23
goto_if_false @ROULETE_15197
$end_line_point[23] *= 36
add_int_var_to_int_var $i += $end_line_point[23]
$end_line_point[80] *= 18
add_int_var_to_int_var $i += $end_line_point[80]
$end_line_point[51] *= 18
add_int_var_to_int_var $i += $end_line_point[51]
$end_line_point[52] *= 18
add_int_var_to_int_var $i += $end_line_point[52]
$end_line_point[83] *= 18
add_int_var_to_int_var $i += $end_line_point[83]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_15197
if 
  18@ == 24
goto_if_false @ROULETE_15425
$end_line_point[24] *= 36
add_int_var_to_int_var $i += $end_line_point[24]
$end_line_point[81] *= 18
add_int_var_to_int_var $i += $end_line_point[81]
$end_line_point[52] *= 18
add_int_var_to_int_var $i += $end_line_point[52]
$end_line_point[84] *= 18
add_int_var_to_int_var $i += $end_line_point[84]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_15425
if 
  18@ == 25
goto_if_false @ROULETE_15653
$end_line_point[25] *= 36
add_int_var_to_int_var $i += $end_line_point[25]
$end_line_point[82] *= 18
add_int_var_to_int_var $i += $end_line_point[82]
$end_line_point[53] *= 18
add_int_var_to_int_var $i += $end_line_point[53]
$end_line_point[85] *= 18
add_int_var_to_int_var $i += $end_line_point[85]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_15653
if 
  18@ == 26
goto_if_false @ROULETE_15926
$end_line_point[26] *= 36
add_int_var_to_int_var $i += $end_line_point[26]
$end_line_point[83] *= 18
add_int_var_to_int_var $i += $end_line_point[83]
$end_line_point[53] *= 18
add_int_var_to_int_var $i += $end_line_point[53]
$end_line_point[54] *= 18
add_int_var_to_int_var $i += $end_line_point[54]
$end_line_point[86] *= 18
add_int_var_to_int_var $i += $end_line_point[86]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_15926
if 
  18@ == 27
goto_if_false @ROULETE_16154
$end_line_point[27] *= 36
add_int_var_to_int_var $i += $end_line_point[27]
$end_line_point[84] *= 18
add_int_var_to_int_var $i += $end_line_point[84]
$end_line_point[54] *= 18
add_int_var_to_int_var $i += $end_line_point[54]
$end_line_point[87] *= 18
add_int_var_to_int_var $i += $end_line_point[87]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_16154
if 
  18@ == 28
goto_if_false @ROULETE_16382
$end_line_point[28] *= 36
add_int_var_to_int_var $i += $end_line_point[28]
$end_line_point[85] *= 18
add_int_var_to_int_var $i += $end_line_point[85]
$end_line_point[55] *= 18
add_int_var_to_int_var $i += $end_line_point[55]
$end_line_point[88] *= 18
add_int_var_to_int_var $i += $end_line_point[88]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16382
if 
  18@ == 29
goto_if_false @ROULETE_16655
$end_line_point[29] *= 36
add_int_var_to_int_var $i += $end_line_point[29]
$end_line_point[86] *= 18
add_int_var_to_int_var $i += $end_line_point[86]
$end_line_point[55] *= 18
add_int_var_to_int_var $i += $end_line_point[55]
$end_line_point[56] *= 18
add_int_var_to_int_var $i += $end_line_point[56]
$end_line_point[89] *= 18
add_int_var_to_int_var $i += $end_line_point[89]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16655
if 
  18@ == 30
goto_if_false @ROULETE_16883
$end_line_point[30] *= 36
add_int_var_to_int_var $i += $end_line_point[30]
$end_line_point[87] *= 18
add_int_var_to_int_var $i += $end_line_point[87]
$end_line_point[56] *= 18
add_int_var_to_int_var $i += $end_line_point[56]
$end_line_point[90] *= 18
add_int_var_to_int_var $i += $end_line_point[90]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16883
if 
  18@ == 31
goto_if_false @ROULETE_17111
$end_line_point[31] *= 36
add_int_var_to_int_var $i += $end_line_point[31]
$end_line_point[88] *= 18
add_int_var_to_int_var $i += $end_line_point[88]
$end_line_point[57] *= 18
add_int_var_to_int_var $i += $end_line_point[57]
$end_line_point[91] *= 18
add_int_var_to_int_var $i += $end_line_point[91]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17111
if 
  18@ == 32
goto_if_false @ROULETE_17384
$end_line_point[32] *= 36
add_int_var_to_int_var $i += $end_line_point[32]
$end_line_point[89] *= 18
add_int_var_to_int_var $i += $end_line_point[89]
$end_line_point[57] *= 18
add_int_var_to_int_var $i += $end_line_point[57]
$end_line_point[58] *= 18
add_int_var_to_int_var $i += $end_line_point[58]
$end_line_point[92] *= 18
add_int_var_to_int_var $i += $end_line_point[92]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17384
if 
  18@ == 33
goto_if_false @ROULETE_17612
$end_line_point[33] *= 36
add_int_var_to_int_var $i += $end_line_point[33]
$end_line_point[90] *= 18
add_int_var_to_int_var $i += $end_line_point[90]
$end_line_point[58] *= 18
add_int_var_to_int_var $i += $end_line_point[58]
$end_line_point[93] *= 18
add_int_var_to_int_var $i += $end_line_point[93]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17612
if 
  18@ == 34
goto_if_false @ROULETE_17795
$end_line_point[34] *= 36
add_int_var_to_int_var $i += $end_line_point[34]
$end_line_point[91] *= 18
add_int_var_to_int_var $i += $end_line_point[91]
$end_line_point[59] *= 18
add_int_var_to_int_var $i += $end_line_point[59]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17795
if 
  18@ == 35
goto_if_false @ROULETE_18008
$end_line_point[35] *= 36
add_int_var_to_int_var $i += $end_line_point[35]
$end_line_point[92] *= 18
add_int_var_to_int_var $i += $end_line_point[92]
$end_line_point[59] *= 18
add_int_var_to_int_var $i += $end_line_point[59]
$end_line_point[60] *= 18
add_int_var_to_int_var $i += $end_line_point[60]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_18008
if 
  18@ == 36
goto_if_false @ROULETE_18191
$end_line_point[36] *= 36
add_int_var_to_int_var $i += $end_line_point[36]
$end_line_point[93] *= 18
add_int_var_to_int_var $i += $end_line_point[93]
$end_line_point[60] *= 18
add_int_var_to_int_var $i += $end_line_point[60]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_18191
return 

:ROULETE_18193
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $3484 {heightScale} $3486
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
terminate_this_script 

//-------------External script 6 (OTB_SCRIPT)---------------

:OTB_MSC
script_name 'OTB_MSC'
1@ = 0
if 
  1@ == -1
goto_if_false @OTB_MSC_58
0@ = create_object #OTB_MACHINE {x} 0.0 {y} 0.0 {z} 0.0

:OTB_MSC_58
wait 0
if 
  does_object_exist 0@
goto_if_false @OTB_MSC_625
if 
  is_object_within_brain_activation_range 0@
goto_if_false @OTB_MSC_589
if 
  is_player_playing $player1
goto_if_false @OTB_MSC_555
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @OTB_MSC_521
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_MSC_478
if 
  1@ == 1
goto_if_false @OTB_MSC_471
clear_help 
1@ = 0
if 
  $onmission == 0
goto_if_false @OTB_MSC_455
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @OTB_MSC_432
if 
  can_player_start_mission $player1
goto_if_false @OTB_MSC_425
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:OTB_MSC_298
if 
  get_fading_status 
goto_if_false @OTB_MSC_322
wait 0
goto @OTB_MSC_298

:OTB_MSC_322
$load_and_launch_mission_if_poss = 4
wait 0
wait 0
wait 0
if 
  is_player_playing $player1
goto_if_false @OTB_MSC_425
if 
  $onmission == 0
goto_if_false @OTB_MSC_382
set_player_control $player1 {state} True

:OTB_MSC_382
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates $scplayer {x} $x {y} $y {z} $z

:OTB_MSC_425
goto @OTB_MSC_448

:OTB_MSC_432
print_now 'BUSY' {time} 3000 {flag} 1

:OTB_MSC_448
goto @OTB_MSC_471

:OTB_MSC_455
print_now 'BUSY' {time} 3000 {flag} 1

:OTB_MSC_471
goto @OTB_MSC_514

:OTB_MSC_478
if 
  1@ == 0
goto_if_false @OTB_MSC_514
print_help_forever 'OTB_A'
1@ = 1

:OTB_MSC_514
goto @OTB_MSC_548

:OTB_MSC_521
if 
  1@ == 1
goto_if_false @OTB_MSC_548
clear_help 
1@ = 0

:OTB_MSC_548
goto @OTB_MSC_582

:OTB_MSC_555
if 
  1@ == 1
goto_if_false @OTB_MSC_582
clear_help 
1@ = 0

:OTB_MSC_582
goto @OTB_MSC_618

:OTB_MSC_589
if 
  1@ == 1
goto_if_false @OTB_MSC_616
clear_help 
1@ = 0

:OTB_MSC_616
terminate_this_script 

:OTB_MSC_618
goto @OTB_MSC_654

:OTB_MSC_625
if 
  1@ == 1
goto_if_false @OTB_MSC_652
clear_help 
1@ = 0

:OTB_MSC_652
terminate_this_script 

:OTB_MSC_654
goto @OTB_MSC_58
terminate_this_script 

//-------------External script 7 (ARCADE)---------------

:ARCADE
script_name 'ARCADE'
1@ = 0
if 
  1@ == -1
goto_if_false @ARCADE_58
0@ = create_object #CJ_COIN_OP_2 {x} 0.0 {y} 0.0 {z} 0.0

:ARCADE_58
wait 0
if 
  does_object_exist 0@
goto_if_false @ARCADE_749
if 
  is_object_within_brain_activation_range 0@
goto_if_false @ARCADE_713
if 
  is_player_playing $player1
goto_if_false @ARCADE_679
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 1.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @ARCADE_645
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ARCADE_602
if 
  1@ == 1
goto_if_false @ARCADE_595
clear_help 
1@ = 0
if 
  $onmission == 0
goto_if_false @ARCADE_563
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ARCADE_524
if 
  can_player_start_mission $player1
goto_if_false @ARCADE_517
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:ARCADE_298
if 
  get_fading_status 
goto_if_false @ARCADE_322
wait 0
goto @ARCADE_298

:ARCADE_322
if 
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_2
goto_if_false @ARCADE_354
$load_and_launch_mission_if_poss = 1
goto @ARCADE_464

:ARCADE_354
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_3
  does_object_have_this_model 0@ {modelId} #SWANK_CONSOLE
goto_if_false @ARCADE_393
$load_and_launch_mission_if_poss = 0
goto @ARCADE_464

:ARCADE_393
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_1
  does_object_have_this_model 0@ {modelId} #SNESISH
goto_if_false @ARCADE_432
$load_and_launch_mission_if_poss = 3
goto @ARCADE_464

:ARCADE_432
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP
  does_object_have_this_model 0@ {modelId} #LOW_CONSOLE
goto_if_false @ARCADE_464
$load_and_launch_mission_if_poss = 2

:ARCADE_464
wait 0
wait 0
wait 0
if 
  is_player_playing $player1
goto_if_false @ARCADE_517
if 
  $onmission == 0
goto_if_false @ARCADE_517
set_player_control $player1 {state} True

:ARCADE_517
goto @ARCADE_556

:ARCADE_524
if 
  is_player_control_on $player1
goto_if_false @ARCADE_556
print_now 'BUSY' {time} 3000 {flag} 1

:ARCADE_556
goto @ARCADE_595

:ARCADE_563
if 
  is_player_control_on $player1
goto_if_false @ARCADE_595
print_now 'BUSY' {time} 3000 {flag} 1

:ARCADE_595
goto @ARCADE_638

:ARCADE_602
if 
  1@ == 0
goto_if_false @ARCADE_638
print_help_forever 'DUAL_A'
1@ = 1

:ARCADE_638
goto @ARCADE_672

:ARCADE_645
if 
  1@ == 1
goto_if_false @ARCADE_672
clear_help 
1@ = 0

:ARCADE_672
goto @ARCADE_706

:ARCADE_679
if 
  1@ == 1
goto_if_false @ARCADE_706
clear_help 
1@ = 0

:ARCADE_706
goto @ARCADE_742

:ARCADE_713
if 
  1@ == 1
goto_if_false @ARCADE_740
clear_help 
1@ = 0

:ARCADE_740
terminate_this_script 

:ARCADE_742
goto @ARCADE_778

:ARCADE_749
if 
  1@ == 1
goto_if_false @ARCADE_776
clear_help 
1@ = 0

:ARCADE_776
terminate_this_script 

:ARCADE_778
goto @ARCADE_58
terminate_this_script 

//-------------External script 8 (VENDING_MACHINE)---------------

:VENDING
script_name 'VENDING'
1@ = 0
if 
  1@ == 1
goto_if_false @VENDING_80
0@ = create_object_no_offset #VENDMACHFD {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object_no_offset #KB_BEER {x} 0.0 {y} 0.0 {z} 0.0

:VENDING_80
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @VENDING_1579
if 
  is_object_within_brain_activation_range 0@
goto_if_false @VENDING_1484
if 
  is_player_playing $player1
goto_if_false @VENDING_1391
if 
  1@ == 0
goto_if_false @VENDING_173
request_animation "VENDING"
1@ += 1

:VENDING_173
if 
  1@ == 1
goto_if_false @VENDING_395
if 
  has_animation_loaded "VENDING"
goto_if_false @VENDING_384
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.5
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @VENDING_377
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_343
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45401
print_help_forever 'SLOT_04'
goto @VENDING_363

:VENDING_343
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45400
print_help_forever 'SLOT_05'

:VENDING_363
set_player_enter_car_button $player1 {enabled} False
1@ += 1

:VENDING_377
goto @VENDING_395

:VENDING_384
request_animation "VENDING"

:VENDING_395
if 
  1@ == 2
goto_if_false @VENDING_1210
if 
  has_animation_loaded "VENDING"
goto_if_false @VENDING_1199
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.5
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_512
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45401
goto @VENDING_521

:VENDING_512
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45400

:VENDING_521
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @VENDING_1176
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VENDING_1169
if 
  can_player_start_mission $player1
goto_if_false @VENDING_1169
if 
  is_score_greater $player1 {money} 0
goto_if_false @VENDING_1141
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VENDING_1134
$heading = get_object_heading 0@
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.6
3@ = create_object_no_offset #CJ_JUICE_CAN {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
$3394 = open_sequence_task 
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.2 {yOffset} -1.0 {zOffset} 0.0
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} $heading {radius} 0.4 {animationName} "VEND_USE" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_859
task_play_anim_secondary -1 {animationName} "VEND_EAT_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @VENDING_1001

:VENDING_859
$x, $y, $z, $x, $y, $z = get_model_dimensions #CJ_JUICE_CAN
$y /= 2.0
$y += 0.027
task_pick_up_object -1 {object} 3@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_USE_PT2" {animationFile} "VENDING" {time} 0
task_pick_up_object -1 {object} 3@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {time} 0

:VENDING_1001
close_sequence_task $3394
perform_sequence_task $scplayer {sequence} $3394
clear_sequence_task $3394
add_score $player1 {money} -1
clear_help 
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_1076
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45401
goto @VENDING_1085

:VENDING_1076
load_mission_audio MissionAudioSlot.Slot4 {audioId} 45400

:VENDING_1085
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VENDING_1111
play_mission_audio MissionAudioSlot.Slot4
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} $scplayer

:VENDING_1111
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 3000
1@ += 1

:VENDING_1134
goto @VENDING_1169

:VENDING_1141
$x, $y, $z = get_char_coordinates $scplayer
add_one_off_sound $x {y} $y {z} $z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied

:VENDING_1169
goto @VENDING_1192

:VENDING_1176
clear_help 
set_player_enter_car_button $player1 {enabled} True
1@ = 1

:VENDING_1192
goto @VENDING_1210

:VENDING_1199
request_animation "VENDING"

:VENDING_1210
if 
  1@ == 3
goto_if_false @VENDING_1324
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VENDING_1324
increment_int_stat StatId.Calories {value} 5
$sequence_task_obj = get_char_health $scplayer
$sequence_task_obj += 30
set_char_health $scplayer {health} $sequence_task_obj
mark_object_as_no_longer_needed 3@
clear_help 
set_player_enter_car_button $player1 {enabled} True
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 1500
1@ += 1

:VENDING_1324
if 
  1@ == 4
goto_if_false @VENDING_1384
if 
  is_int_var_greater_than_int_lvar $game_timer > 2@
goto_if_false @VENDING_1384
clear_char_tasks $scplayer
remove_animation "VENDING"
1@ = 0

:VENDING_1384
goto @VENDING_1477

:VENDING_1391
if 
  1@ > 0
goto_if_false @VENDING_1477
if 
  1@ > 1
goto_if_false @VENDING_1436
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1436
if 
  1@ > 2
goto_if_false @VENDING_1459
mark_object_as_no_longer_needed 3@

:VENDING_1459
remove_animation "VENDING"
1@ = 0

:VENDING_1477
goto @VENDING_1572

:VENDING_1484
if 
  1@ > 0
goto_if_false @VENDING_1570
if 
  1@ > 1
goto_if_false @VENDING_1529
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1529
if 
  1@ > 2
goto_if_false @VENDING_1552
mark_object_as_no_longer_needed 3@

:VENDING_1552
remove_animation "VENDING"
1@ = 0

:VENDING_1570
terminate_this_script 

:VENDING_1572
goto @VENDING_1667

:VENDING_1579
if 
  1@ > 0
goto_if_false @VENDING_1665
if 
  1@ > 1
goto_if_false @VENDING_1624
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1624
if 
  1@ > 2
goto_if_false @VENDING_1647
mark_object_as_no_longer_needed 3@

:VENDING_1647
remove_animation "VENDING"
1@ = 0

:VENDING_1665
terminate_this_script 

:VENDING_1667
goto @VENDING_80
terminate_this_script 

//-------------External script 9 (FOOD_VENDOR)---------------

:FODVEND
script_name 'FODVEND'
1@ = 0
if 
  1@ == 1
goto_if_false @FODVEND_58
0@ = create_object_no_offset #ICESCART_PROP {x} 0.0 {y} 0.0 {z} 0.0

:FODVEND_58
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @FODVEND_1130
if 
  is_object_within_brain_activation_range 0@
goto_if_false @FODVEND_1075
if 
  is_player_playing $player1
goto_if_false @FODVEND_1022
if 
  not has_object_been_uprooted 0@
goto_if_false @FODVEND_924
if 
  1@ == 0
goto_if_false @FODVEND_469
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} -1.0
set_var_float_to_var_float $temp_float_3 = $x
$temp_float_3 -= 0.5
set_var_float_to_var_float $x_temp = $y
$x_temp -= 0.5
set_var_float_to_var_float $y_temp = $z
set_var_float_to_var_float $an = $x
$an += 0.5
set_var_float_to_var_float $temp_float_1 = $y
$temp_float_1 += 0.5
set_var_float_to_var_float $temp_float_2 = $z
$temp_float_2 += 2.0
if 
  not is_area_occupied $temp_float_3 {leftBottomY} $x_temp {leftBottomZ} $y_temp {rightTopX} $an {rightTopY} $temp_float_1 {rightTopZ} $temp_float_2 {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FODVEND_462
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 1.0
goto_if_false @FODVEND_455
request_model 168
if 
  has_model_loaded 168
goto_if_false @FODVEND_455
2@ = create_char PedType.CivMale {modelId} 168 {x} $x {y} $y {z} $z
$temp_float_3, $x_temp, $y_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
sub_float_var_from_float_var $temp_float_3 -= $x
sub_float_var_from_float_var $x_temp -= $y
$heading = get_heading_from_vector_2d $temp_float_3 {y} $x_temp
set_char_heading 2@ {heading} $heading
1@ += 1

:FODVEND_455
goto @FODVEND_469

:FODVEND_462
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_469
if 
  1@ == 1
goto_if_false @FODVEND_742
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @FODVEND_742
request_animation "VENDING"
if 
  has_animation_loaded "VENDING"
goto_if_false @FODVEND_742
if 
  is_score_greater $player1 {money} 0
goto_if_false @FODVEND_742
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @FODVEND_742
$sequence_task_obj = get_char_health $scplayer
$sequence_task_obj += 50
set_char_health $scplayer {health} $sequence_task_obj
task_play_anim_secondary $scplayer {animationName} "VEND_EAT1_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
increment_int_stat StatId.Calories {value} 10
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
add_score $player1 {money} -1
1@ += 1

:FODVEND_742
if 
  1@ == 2
goto_if_false @FODVEND_802
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_802
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
1@ += 1

:FODVEND_802
if 
  1@ == 3
goto_if_false @FODVEND_917
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_917
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  not locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @FODVEND_917
1@ = 1

:FODVEND_917
goto @FODVEND_1015

:FODVEND_924
if 
  1@ > 0
goto_if_false @FODVEND_1008
mark_char_as_no_longer_needed 2@
if 
  is_player_playing $player1
goto_if_false @FODVEND_990
if 
  not is_char_dead 2@
goto_if_false @FODVEND_990
task_kill_char_on_foot_timed 2@ {target} $scplayer {time} 10000

:FODVEND_990
remove_animation "VENDING"
1@ = 0

:FODVEND_1008
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1015
goto @FODVEND_1068

:FODVEND_1022
if 
  1@ > 0
goto_if_false @FODVEND_1063
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1063
mark_model_as_no_longer_needed 168

:FODVEND_1068
goto @FODVEND_1123

:FODVEND_1075
if 
  1@ > 0
goto_if_false @FODVEND_1116
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1116
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1123
goto @FODVEND_1178

:FODVEND_1130
if 
  1@ > 0
goto_if_false @FODVEND_1171
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1171
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1178
goto @FODVEND_58
terminate_this_script 

//-------------External script 10 (GATES_SCRIPT)---------------

:GATEOS
script_name 'GATEOS'
1@ = 0
if 
  1@ == 1
goto_if_false @GATEOS_80
0@ = create_object_no_offset #GATE_AUTOL {x} 0.0 {y} 0.0 {z} 0.0
0@ = create_object_no_offset #GATE_AUTOR {x} 0.0 {y} 0.0 {z} 0.0

:GATEOS_80
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @GATEOS_997
if 
  is_object_within_brain_activation_range 0@
goto_if_false @GATEOS_988
if 
  1@ == 0
goto_if_false @GATEOS_502
if 
  is_player_playing $player1
goto_if_false @GATEOS_502
9@ = get_object_model 0@
if 
  has_model_loaded 9@
goto_if_false @GATEOS_502
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @GATEOS_477
if or
  is_char_in_model $scplayer {modelId} 433
  is_char_in_model $scplayer {modelId} 470
  is_char_in_model $scplayer {modelId} 432
goto_if_false @GATEOS_366
$an, $temp_float_1, $temp_float_2 = get_level_design_coords_for_object 0@ {nth} 5
$temp_float_3, $x_temp, $y_temp = get_level_design_coords_for_object 0@ {nth} 6
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 7
$z = get_distance_between_coords_2d $temp_float_3 {fromY} $x_temp {toX} $x {toZ} $y
$z *= -1.0
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} $an {leftBottomY} $temp_float_1 {leftBottomZ} $temp_float_2 {rightTopX} $temp_float_3 {rightTopY} $x_temp {rightTopZ} $y_temp {angle} $z {drawSphere} False
goto_if_false @GATEOS_366
1@ = 1

:GATEOS_366
$an, $temp_float_1, $temp_float_2 = get_level_design_coords_for_object 0@ {nth} 1
$temp_float_3, $x_temp, $y_temp = get_level_design_coords_for_object 0@ {nth} 2
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 3
$z = get_distance_between_coords_2d $temp_float_3 {fromY} $x_temp {toX} $x {toZ} $y
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} $an {leftBottomY} $temp_float_1 {leftBottomZ} $temp_float_2 {rightTopX} $temp_float_3 {rightTopY} $x_temp {rightTopZ} $y_temp {angle} $z {drawSphere} False
goto_if_false @GATEOS_477
1@ = 1

:GATEOS_477
if 
  $open_gate_now_flag == 1
goto_if_false @GATEOS_502
1@ = 1

:GATEOS_502
if 
  1@ == 1
goto_if_false @GATEOS_589
9@ = get_object_model 0@
if 
  has_model_loaded 9@
goto_if_false @GATEOS_589
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
5@, 6@, 7@ = get_object_coordinates 0@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart
1@ += 1

:GATEOS_589
if 
  1@ == 2
goto_if_false @GATEOS_727
if 
  slide_object 0@ {posX} 2@ {posY} 3@ {posZ} 4@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} True
goto_if_false @GATEOS_727
if 
  locate_object_3d 0@ {x} 2@ {y} 3@ {z} 4@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @GATEOS_727
set_object_coordinates 0@ {x} 2@ {y} 3@ {z} 4@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop
$open_gate_now_flag += 1
1@ += 1

:GATEOS_727
if 
  1@ == 3
goto_if_false @GATEOS_770
if 
  $gate_stay_open == 0
goto_if_false @GATEOS_770
1@ += 1

:GATEOS_770
if 
  1@ == 4
goto_if_false @GATEOS_850
if 
  is_player_playing $player1
goto_if_false @GATEOS_850
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @GATEOS_850
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart
1@ += 1

:GATEOS_850
if 
  1@ == 5
goto_if_false @GATEOS_981
if 
  slide_object 0@ {posX} 5@ {posY} 6@ {posZ} 7@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} True
goto_if_false @GATEOS_981
if 
  locate_object_3d 0@ {x} 5@ {y} 6@ {z} 7@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @GATEOS_981
set_object_coordinates 0@ {x} 5@ {y} 6@ {z} 7@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop
1@ = 0

:GATEOS_981
goto @GATEOS_990

:GATEOS_988
terminate_this_script 

:GATEOS_990
goto @GATEOS_999

:GATEOS_997
terminate_this_script 

:GATEOS_999
goto @GATEOS_80
terminate_this_script 

//-------------External script 11 (GYMBIKE)---------------

:GYMBIKE
script_name 'GYMBIKE'
$bike_shake_speed = 0
$bike_TIMERC = 0.0
$bike_pedals_z = 0
$distanceon_bikefloat = 0
$levelbar_bike_1 = 0
5@ = 0.0
6@ = 0.0
7@ = 0.0
8@ = 0.0
9@ = 0.0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
15@ = 0.0
$gym_TIMERC = 0.0
$ply_exbikex = 0.0
16@ = 0.0
17@ = 0.0
19@ = 0.0
$bike_pedals = 0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$gym_TIMERC = 0.0
$ply_exbikex = 0.0
$ply_exbikey = 0
$speedbar_bike = 0
$levelbar_bike = 0
$distanceon_bike = 0.0
$distancetoaddbike_gym = 0.0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$speedbar_bike = 0
30@ = 0
29@ = 0
$main_menu_bike = 0
TIMERA = 0
TIMERB = 0
if 
  30@ == 1
goto_if_false @GYMBIKE_486
0@ = create_object_no_offset #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0

:GYMBIKE_486
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_538
5@, 6@, 7@ = get_object_coordinates 0@
11@, 12@, 13@ = get_object_coordinates 0@
4@ = get_object_heading 0@

:GYMBIKE_538
set_var_float_to_lvar_float $expedalsy = 7@
$expedalsy += 0.15
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.05
2@ *= 0.05
set_var_float_to_lvar_float $bike_has_KD = 5@
add_float_lvar_to_float_var $bike_has_KD += 2@
set_var_float_to_lvar_float $expedalsx = 6@
add_float_lvar_to_float_var $expedalsx += 1@
$temp_ply_z = create_object #PEDALS {x} $bike_has_KD {y} $expedalsx {z} $expedalsy
set_object_heading $temp_ply_z {heading} 4@
set_lvar_float_to_lvar_float 10@ = 7@
10@ += 0.9
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 45.0
1@ = sin 3@
2@ = cos 3@
1@ *= 2.8
2@ *= 2.8
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 2@
set_lvar_float_to_lvar_float 9@ = 6@
add_float_lvar_to_float_lvar 9@ += 1@
4@ -= 180.0
3@ += 45.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.5
2@ *= 0.5
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.5
2@ *= 0.5
set_var_float_to_lvar_float $gym_TIMERC = 5@
add_float_lvar_to_float_var $gym_TIMERC += 2@
set_var_float_to_lvar_float $ply_exbikex = 6@
add_float_lvar_to_float_var $ply_exbikex += 1@
7@ += 0.05
$ply_exbikey = 0
$levelbar_bike = 0
$are_anims_loaded = 0

:GYMBIKE_960
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMBIKE_987
delete_object $temp_ply_z
terminate_this_script 

:GYMBIKE_987
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMBIKE_1010
delete_object $temp_ply_z
terminate_this_script 

:GYMBIKE_1010
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_6327
if 
  20@ == 0
goto_if_false @GYMBIKE_1366
if 
  28@ == 0
goto_if_false @GYMBIKE_1325
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMBIKE_1291
if 
  29@ == 0
goto_if_false @GYMBIKE_1140
print_help_forever 'GYM1_81'
29@ = 1

:GYMBIKE_1140
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMBIKE_1284
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBIKE_1268
$5344, $gym_day = get_current_date 
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMBIKE_1245
20@ = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMBIKE_1261

:GYMBIKE_1245
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMBIKE_1261
goto @GYMBIKE_1284

:GYMBIKE_1268
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMBIKE_1284
goto @GYMBIKE_1318

:GYMBIKE_1291
if 
  29@ == 1
goto_if_false @GYMBIKE_1318
clear_help 
29@ = 0

:GYMBIKE_1318
goto @GYMBIKE_1366

:GYMBIKE_1325
if 
  not locate_char_on_foot_2d $scplayer {x} 5@ {y} 6@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMBIKE_1366
28@ = 0

:GYMBIKE_1366
if 
  20@ == 1
goto_if_false @GYMBIKE_6327
if 
  $are_anims_loaded == 0
goto_if_false @GYMBIKE_1494
request_animation "GYMNASIUM"

:GYMBIKE_1415
if 
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMBIKE_1450
wait 0
goto @GYMBIKE_1415

:GYMBIKE_1450
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMBIKE_1461
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_1487
wait 0
goto @GYMBIKE_1461

:GYMBIKE_1487
$are_anims_loaded = 1

:GYMBIKE_1494
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_1606
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} $gym_TIMERC {y} $ply_exbikex {z} 7@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} 4@
point_camera_at_point 11@ {y} 12@ {z} 10@ {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMBIKE_1606
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2192
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "GYM_BIKE_GETON" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
print_help_forever 'GYM1_60'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBIKE_1885
$8711 = create_menu 'GYM1_D' {topLeftX} 31.0 {topLeftY} 180.0 {width} 178.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $8711 {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMBIKE_2046

:GYMBIKE_1885
$8711 = create_menu 'GYM1_D' {topLeftX} 31.0 {topLeftY} 150.0 {width} 178.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $8711 {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMBIKE_2046
set_active_menu_item $8711 {row} 0

:GYMBIKE_2053
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2178
wait 0
$bike_txt += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $bike_txt > 20
goto_if_false @GYMBIKE_2125
clear_help 
delete_menu $8711
$speedbar_bike = 0
goto @GYMBIKE_5322

:GYMBIKE_2125
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2171
clear_help 
$speedbar_bike = get_menu_item_selected $8711
$speedbar_bike += 1
delete_menu $8711
goto @GYMBIKE_2178

:GYMBIKE_2171
goto @GYMBIKE_2053

:GYMBIKE_2178
$playerexercising_flag = 3
TIMERB = 0

:GYMBIKE_2192
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2383
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_GETON"
goto_if_false @GYMBIKE_2383
15@ = get_char_anim_current_time $scplayer {animationName} "GYM_BIKE_GETON"
if 
  15@ == 1.0
goto_if_false @GYMBIKE_2383
task_play_anim $scplayer {animationName} "GYM_BIKE_SLOW" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_SLOW" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
$playerexercising_flag = 4

:GYMBIKE_2383
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2578
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
goto_if_false @GYMBIKE_2578
15@ = get_char_anim_current_time $scplayer {animationName} "GYM_BIKE_SLOW"
if 
  15@ == 0.0
goto_if_false @GYMBIKE_2578
set_char_anim_playing_flag $scplayer {animationName} "GYM_BIKE_SLOW" {flag} False
display_nth_onscreen_counter_with_string $ply_exbikey {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $speedbar_bike {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_4'
display_nth_onscreen_counter_with_string $levelbar_bike {display} CounterDisplay.Number {slot} 3 {text} 'GYM1_3'
21@ = 1
$playerexercising_flag = 5
TIMERB = 0

:GYMBIKE_2578
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_6327
if 
  $main_menu_bike == 0
goto_if_false @GYMBIKE_2637
print_help_forever 'GYM1_40'
$main_menu_bike = 1

:GYMBIKE_2637
if and
  TIMERB > 4000
  $main_menu_bike == 1
goto_if_false @GYMBIKE_2683
clear_help 
print_help_forever 'GYM1_41'
$main_menu_bike = 2

:GYMBIKE_2683
if and
  TIMERB > 8000
  $main_menu_bike == 2
goto_if_false @GYMBIKE_2718
clear_help 
$main_menu_bike = 101

:GYMBIKE_2718
19@ = get_float_stat StatId.Stamina
19@ /= 100.0
set_lvar_float_to_lvar_float 16@ = 17@
add_float_lvar_to_float_lvar 16@ += 19@
14@ -= 0.7
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2811
if 
  22@ == 0
goto_if_false @GYMBIKE_2811
add_float_lvar_to_float_lvar 14@ += 16@
22@ = 1

:GYMBIKE_2811
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2853
if 
  22@ == 1
goto_if_false @GYMBIKE_2853
22@ = 0

:GYMBIKE_2853
if 
  0.0 > 14@
goto_if_false @GYMBIKE_2884
14@ = 0.0

:GYMBIKE_2884
if 
  14@ > 100.0
goto_if_false @GYMBIKE_2915
14@ = 100.0

:GYMBIKE_2915
if 
  21@ == 1
goto_if_false @GYMBIKE_3048
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
goto_if_false @GYMBIKE_3048
set_char_anim_playing_flag $scplayer {animationName} "GYM_BIKE_SLOW" {flag} True
set_char_anim_speed $scplayer {animName} "GYM_BIKE_SLOW" {animSpeed} 0.5
set_object_anim_speed $temp_ply_z {animationName} "PEDALS_SLOW" {speed} 0.5
TIMERA = 0
21@ = 2

:GYMBIKE_3048
if and
  21@ == 2
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_6223
19@ = get_float_stat StatId.Stamina
19@ /= 200.0
if 
  0.0 > 19@
goto_if_false @GYMBIKE_3119
19@ = 0.0

:GYMBIKE_3119
cset_var_int_to_lvar_float $bike_pedals =# 19@
set_var_int_to_var_int $bike_speed_level = $speedbar_bike
sub_int_var_from_int_var $bike_speed_level -= $bike_pedals
if 
  14@ == 0.0
goto_if_false @GYMBIKE_3296
if 
  23@ == 0
goto_if_false @GYMBIKE_3296
task_play_anim $scplayer {animationName} "GYM_BIKE_STILL" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_STILL" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
25@ = 0
26@ = 0
23@ = 1

:GYMBIKE_3296
if 
  24@ == 0
goto_if_false @GYMBIKE_3454
if and
  3 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3454
task_play_anim $scplayer {animationName} "GYM_BIKE_SLOW" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_SLOW" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 1
25@ = 0
26@ = 0
23@ = 0

:GYMBIKE_3454
if 
  25@ == 0
goto_if_false @GYMBIKE_3618
if and
  $bike_speed_level > 2
  7 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3618
task_play_anim $scplayer {animationName} "GYM_BIKE_FAST" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_MED" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
26@ = 0
25@ = 1
23@ = 0

:GYMBIKE_3618
if 
  26@ == 0
goto_if_false @GYMBIKE_3785
if and
  $bike_speed_level > 6
  11 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3785
task_play_anim $scplayer {animationName} "GYM_BIKE_FASTER" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_FAST" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
25@ = 0
26@ = 1
23@ = 0

:GYMBIKE_3785
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMBIKE_3923
if 
  27@ == 0
goto_if_false @GYMBIKE_3923
if and
  $speedbar_bike > 0
  10 > $speedbar_bike
goto_if_false @GYMBIKE_3923
$speedbar_bike += 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_3875
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMBIKE_3875
14@ -= 20.0
if 
  0.0 > 14@
goto_if_false @GYMBIKE_3916
14@ = 0.0

:GYMBIKE_3916
27@ = 1

:GYMBIKE_3923
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMBIKE_4020
if 
  27@ == 0
goto_if_false @GYMBIKE_4020
if and
  $speedbar_bike > 1
  11 > $speedbar_bike
goto_if_false @GYMBIKE_4020
$speedbar_bike -= 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_4013
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMBIKE_4013
27@ = 2

:GYMBIKE_4020
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMBIKE_4062
if 
  27@ == 1
goto_if_false @GYMBIKE_4062
27@ = 0

:GYMBIKE_4062
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMBIKE_4104
if 
  27@ == 2
goto_if_false @GYMBIKE_4104
27@ = 0

:GYMBIKE_4104
if 
  $speedbar_bike == 1
goto_if_false @GYMBIKE_4132
17@ = 6.5

:GYMBIKE_4132
if 
  $speedbar_bike == 2
goto_if_false @GYMBIKE_4160
17@ = 5.9

:GYMBIKE_4160
if 
  $speedbar_bike == 3
goto_if_false @GYMBIKE_4188
17@ = 5.0

:GYMBIKE_4188
if 
  $speedbar_bike == 4
goto_if_false @GYMBIKE_4216
17@ = 4.3

:GYMBIKE_4216
if 
  $speedbar_bike == 5
goto_if_false @GYMBIKE_4244
17@ = 3.7

:GYMBIKE_4244
if 
  $speedbar_bike == 6
goto_if_false @GYMBIKE_4272
17@ = 2.9

:GYMBIKE_4272
if 
  $speedbar_bike == 7
goto_if_false @GYMBIKE_4300
17@ = 2.2

:GYMBIKE_4300
if 
  $speedbar_bike == 8
goto_if_false @GYMBIKE_4328
17@ = 1.5

:GYMBIKE_4328
if 
  $speedbar_bike == 9
goto_if_false @GYMBIKE_4356
17@ = 1.1

:GYMBIKE_4356
if 
  $speedbar_bike == 10
goto_if_false @GYMBIKE_4384
17@ = 0.7

:GYMBIKE_4384
if 
  14@ >= 0.0
goto_if_false @GYMBIKE_4436
if 
  10.0 >= 14@
goto_if_false @GYMBIKE_4436
18@ = 0.9

:GYMBIKE_4436
if 
  14@ >= 11.0
goto_if_false @GYMBIKE_4488
if 
  20.0 >= 14@
goto_if_false @GYMBIKE_4488
18@ = 1.0

:GYMBIKE_4488
if 
  14@ >= 21.0
goto_if_false @GYMBIKE_4540
if 
  30.0 >= 14@
goto_if_false @GYMBIKE_4540
18@ = 1.1

:GYMBIKE_4540
if 
  14@ >= 31.0
goto_if_false @GYMBIKE_4592
if 
  40.0 >= 14@
goto_if_false @GYMBIKE_4592
18@ = 1.2

:GYMBIKE_4592
if 
  14@ >= 41.0
goto_if_false @GYMBIKE_4644
if 
  50.0 >= 14@
goto_if_false @GYMBIKE_4644
18@ = 1.3

:GYMBIKE_4644
if 
  14@ >= 51.0
goto_if_false @GYMBIKE_4696
if 
  60.0 >= 14@
goto_if_false @GYMBIKE_4696
18@ = 1.4

:GYMBIKE_4696
if 
  14@ >= 61.0
goto_if_false @GYMBIKE_4748
if 
  70.0 >= 14@
goto_if_false @GYMBIKE_4748
18@ = 1.5

:GYMBIKE_4748
if 
  14@ >= 71.0
goto_if_false @GYMBIKE_4800
if 
  80.0 >= 14@
goto_if_false @GYMBIKE_4800
18@ = 1.6

:GYMBIKE_4800
if 
  14@ >= 81.0
goto_if_false @GYMBIKE_4852
if 
  90.0 >= 14@
goto_if_false @GYMBIKE_4852
18@ = 1.7

:GYMBIKE_4852
if 
  14@ >= 91.0
goto_if_false @GYMBIKE_4904
if 
  100.0 >= 14@
goto_if_false @GYMBIKE_4904
18@ = 1.8

:GYMBIKE_4904
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_4963
set_char_anim_speed $scplayer {animName} "GYM_BIKE_SLOW" {animSpeed} 18@

:GYMBIKE_4963
if and
  is_object_playing_anim $temp_ply_z {animationName} "PEDALS_SLOW"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5018
set_object_anim_speed $temp_ply_z {animationName} "PEDALS_SLOW" {speed} 18@

:GYMBIKE_5018
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_FAST"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5077
set_char_anim_speed $scplayer {animName} "GYM_BIKE_FAST" {animSpeed} 18@

:GYMBIKE_5077
if and
  is_object_playing_anim $temp_ply_z {animationName} "PEDALS_MED"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5130
set_object_anim_speed $temp_ply_z {animationName} "PEDALS_MED" {speed} 18@

:GYMBIKE_5130
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_FASTER"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5193
set_char_anim_speed $scplayer {animName} "GYM_BIKE_FASTER" {animSpeed} 18@

:GYMBIKE_5193
if and
  is_object_playing_anim $temp_ply_z {animationName} "PEDALS_FAST"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5248
set_object_anim_speed $temp_ply_z {animationName} "PEDALS_FAST" {speed} 18@

:GYMBIKE_5248
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_5782
if 
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_5306
$gym_final_month = 0.0

:GYMBIKE_5306
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5782

:GYMBIKE_5322
shake_pad PadId.Pad1 {time} 1 {intensity} 1
increment_int_stat StatId.DistExerciseBike {value} $levelbar_bike
set_lvar_int_to_lvar_int 31@ = TIMERB
31@ /= 1000
increment_int_stat StatId.LongestExerciseBikeTime {value} 31@
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5463
task_play_anim $scplayer {animationName} "GYM_BIKE_GETOFF" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_object_anim $temp_ply_z {animationName} "PEDALS_STILL" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} False {loop} -1

:GYMBIKE_5463
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
20@ = 0
$playerexercising_flag = 0
$speedbar_bike = 0
$levelbar_bike = 0
$distancetoaddbike_gym = 0.0
$distanceon_bike = 0.0
$ply_exbikey = 0
14@ = 0.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBIKE_5614
set_float_stat StatId.Fat {value} 0.0

:GYMBIKE_5614
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_5637
set_object_collision 0@ {state} True

:GYMBIKE_5637
$animstate_flag = 0
$playernextset_flag = 0
$are_anims_loaded = 0
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
clear_onscreen_counter $ply_exbikey
clear_onscreen_counter $speedbar_bike
clear_onscreen_counter $levelbar_bike
restore_camera_jumpcut 
set_player_control $player1 {state} False
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5726
set_player_control $player1 {state} True

:GYMBIKE_5726
28@ = 1
delete_menu $8711
clear_help 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMBIKE_5754
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_5782
wait 0
goto @GYMBIKE_5754

:GYMBIKE_5782
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_5907
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_5907
if 
  14@ > 10.0
goto_if_false @GYMBIKE_5874
if 
  $bike_shake_speed == 0
goto_if_false @GYMBIKE_5867
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymBikeStart
$bike_shake_speed = 1

:GYMBIKE_5867
goto @GYMBIKE_5907

:GYMBIKE_5874
if 
  $bike_shake_speed == 1
goto_if_false @GYMBIKE_5907
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymBikeStop
$bike_shake_speed = 0

:GYMBIKE_5907
if 
  TIMERA > 250
goto_if_false @GYMBIKE_6223
TIMERA -= 250
set_var_float_to_lvar_float $distanceon_bike = 14@
$distanceon_bike /= 10.0
cset_var_float_to_var_int $statbike_temp =# $speedbar_bike
$statbike_temp /= 10.0
$statbike_temp += 1.0
mult_float_var_by_float_var $statbike_temp *= $distanceon_bike
add_float_var_to_float_var $statbikestamina_ctr += $statbike_temp
if 
  $statbikestamina_ctr >= 400.0
goto_if_false @GYMBIKE_6141
$statbikestamina_ctr -= 400.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBIKE_6064
decrement_float_stat StatId.Fat {value} 8.0

:GYMBIKE_6064
if 
  $bike_start_sound == 3
goto_if_false @GYMBIKE_6115
$bike_start_sound = 0
increment_float_stat StatId.Stamina {value} 4.0
$gym_final_month += 4.0
goto @GYMBIKE_6141

:GYMBIKE_6115
increment_float_stat_no_message StatId.Stamina {value} 4.0
$gym_final_month += 4.0
$bike_start_sound += 1

:GYMBIKE_6141
if 
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_6186
$gym_month, $gym_final_day = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMBIKE_6186
if 
  $levelbar_bike < 999999
goto_if_false @GYMBIKE_6223
add_float_var_to_float_var $distancetoaddbike_gym += $distanceon_bike
cset_var_int_to_var_float $levelbar_bike =# $distancetoaddbike_gym

:GYMBIKE_6223
$distanceon_bikefloat += 1
set_var_int_to_var_int $bike_pedals_z = $ply_exbikey
$bike_pedals_z -= 100
if 
  $bike_pedals_z > -40
goto_if_false @GYMBIKE_6270
$bike_pedals_z = -40

:GYMBIKE_6270
if 
  is_int_var_greater_or_equal_to_int_var $distanceon_bikefloat >= $bike_pedals_z
goto_if_false @GYMBIKE_6319
$distanceon_bikefloat = 0
$ply_exbikey *= 12
$ply_exbikey /= 10
shake_pad PadId.Pad1 {time} 100 {intensity} $ply_exbikey

:GYMBIKE_6319
cset_var_int_to_lvar_float $ply_exbikey =# 14@

:GYMBIKE_6327
goto @GYMBIKE_960
terminate_this_script 

//-------------External script 12 (GYMBENCH)---------------

:GYMBENC
script_name 'GYMBENC'
$weightbp = 0.0
$bench_show_stat = 0.0
$bench_audio = 2
$bench_playing = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
$temp_bench_weight = 0
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
$animframe_freepickup = 0.0
$animframe_freegetoff = 0.0
21@ = 1
$bpress_resistance = 0
$main_menu_bench = 0
22@ = 0
29@ = 0
TIMERA = 0
TIMERB = 0
if 
  29@ == 1
goto_if_false @GYMBENC_217
0@ = create_object_no_offset #BEACHTOWEL01 {x} 0.0 {y} 0.0 {z} 0.0

:GYMBENC_217
if 
  does_object_exist 0@
goto_if_false @GYMBENC_277
5@, 6@, 7@ = get_object_coordinates 0@
8@, 9@, 10@ = get_object_coordinates 0@
11@ = get_object_heading 0@
3@ = get_object_heading 0@

:GYMBENC_277
1@ = 0.0
2@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
21@ = 1
$bpress_resistance = 0
set_lvar_float_to_lvar_float 14@ = 7@
14@ += 1.7
3@ -= 180.0
set_lvar_float_to_lvar_float 4@ = 3@
4@ -= 270.0
1@ = sin 4@
2@ = cos 4@
1@ *= 1.0
2@ *= 1.0
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
1@ *= 3.0
2@ *= 3.0
set_lvar_float_to_lvar_float 12@ = 5@
add_float_lvar_to_float_lvar 12@ += 2@
set_lvar_float_to_lvar_float 13@ = 6@
add_float_lvar_to_float_lvar 13@ += 1@
11@ += 90.0
1@ = sin 11@
2@ = cos 11@
1@ *= 1.0
2@ *= 1.0
sub_float_lvar_from_float_lvar 8@ -= 2@
sub_float_lvar_from_float_lvar 9@ -= 1@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
3@ -= 180.0
$speedbar_bike = 1
$are_anims_loaded = 0

:GYMBENC_632
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMBENC_659
delete_object 30@
terminate_this_script 

:GYMBENC_659
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMBENC_682
delete_object 30@
terminate_this_script 

:GYMBENC_682
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8086
if and
  $playerexercising_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_1097
if 
  23@ == 0
goto_if_false @GYMBENC_1097
if 
  27@ == 0
goto_if_false @GYMBENC_1056
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMBENC_1022
if 
  22@ == 0
goto_if_false @GYMBENC_835
print_help_forever 'GYM1_81'
22@ = 1

:GYMBENC_835
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMBENC_1015
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBENC_999
$5344, $gym_day = get_current_date 
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMBENC_976
23@ = 1
$playerexercising_flag = 1
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 5@ {y} 6@ {z} 7@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 3@
$bike_txt = 0
goto @GYMBENC_992

:GYMBENC_976
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMBENC_992
goto @GYMBENC_1015

:GYMBENC_999
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMBENC_1015
goto @GYMBENC_1049

:GYMBENC_1022
if 
  22@ == 1
goto_if_false @GYMBENC_1049
clear_help 
22@ = 0

:GYMBENC_1049
goto @GYMBENC_1097

:GYMBENC_1056
if 
  not locate_char_on_foot_2d $scplayer {x} 5@ {y} 6@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMBENC_1097
27@ = 0

:GYMBENC_1097
if 
  23@ == 1
goto_if_false @GYMBENC_1205
if 
  $are_anims_loaded == 0
goto_if_false @GYMBENC_1205
request_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMBENC_1158
if or
  not has_animation_loaded "BENCHPRESS"
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBENC_1198
wait 0
goto @GYMBENC_1158

:GYMBENC_1198
$are_anims_loaded = 1

:GYMBENC_1205
if and
  23@ == 1
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8086
if 
  $playerexercising_flag == 1
goto_if_false @GYMBENC_1324
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 5@ {y} 6@ {z} 7@
set_fixed_camera_position 12@ {y} 13@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} 3@
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMBENC_1324
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2560
print_help_forever 'GYM1_71'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBENC_1551
$bike_show_stat = create_menu 'GYM1_E' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $bike_show_stat {column} 0 {title} 'GYM1_72' {row0} 'GYM1_8' {row1} 'GYM1_9' {row2} 'GYM1_10' {row3} 'GYM1_11' {row4} 'GYM1_12' {row5} 'GYM1_13' {row6} 'GYM1_14' {row7} 'GYM1_15' {row8} 'GYM1_16' {row9} 'GYM1_17' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMBENC_1712

:GYMBENC_1551
$bike_show_stat = create_menu 'GYM1_E' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $bike_show_stat {column} 0 {title} 'GYM1_72' {row0} 'GYM1_8' {row1} 'GYM1_9' {row2} 'GYM1_10' {row3} 'GYM1_11' {row4} 'GYM1_12' {row5} 'GYM1_13' {row6} 'GYM1_14' {row7} 'GYM1_15' {row8} 'GYM1_16' {row9} 'GYM1_17' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMBENC_1712
set_active_menu_item $bike_show_stat {row} 0

:GYMBENC_1719
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_1837
wait 0
$bike_txt += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $bike_txt > 20
goto_if_false @GYMBENC_1784
clear_help 
delete_menu $bike_show_stat
goto @GYMBENC_7341

:GYMBENC_1784
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_1830
clear_help 
21@ = get_menu_item_selected $bike_show_stat
21@ += 1
delete_menu $bike_show_stat
goto @GYMBENC_1837

:GYMBENC_1830
goto @GYMBENC_1719

:GYMBENC_1837
if 
  21@ == 1
goto_if_false @GYMBENC_1875
$bench_txt = 1.0
20@ = 5.0

:GYMBENC_1875
if 
  21@ == 2
goto_if_false @GYMBENC_1913
20@ = 5.2
$bench_txt = 2.0

:GYMBENC_1913
if 
  21@ == 3
goto_if_false @GYMBENC_1951
20@ = 5.3
$bench_txt = 3.0

:GYMBENC_1951
if 
  21@ == 4
goto_if_false @GYMBENC_1989
20@ = 5.5
$bench_txt = 4.0

:GYMBENC_1989
if 
  21@ == 5
goto_if_false @GYMBENC_2027
20@ = 6.0
$bench_txt = 5.0

:GYMBENC_2027
if 
  21@ == 6
goto_if_false @GYMBENC_2065
20@ = 6.5
$bench_txt = 6.0

:GYMBENC_2065
if 
  21@ == 7
goto_if_false @GYMBENC_2103
20@ = 7.0
$bench_txt = 7.0

:GYMBENC_2103
if 
  21@ == 8
goto_if_false @GYMBENC_2141
20@ = 7.5
$bench_txt = 8.0

:GYMBENC_2141
if 
  21@ == 9
goto_if_false @GYMBENC_2179
20@ = 8.0
$bench_txt = 9.0

:GYMBENC_2179
if 
  21@ == 10
goto_if_false @GYMBENC_2217
20@ = 8.5
$bench_txt = 10.0

:GYMBENC_2217
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2279
task_play_anim $scplayer {animationName} "GYM_BP_GETON" {animationFile} "BENCHPRESS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_2279
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2553
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETON"
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2553
$animframe_bppickup = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"

:GYMBENC_2356
if 
  $animframe_bppickup <= 0.75
goto_if_false @GYMBENC_2426
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2419
$animframe_bppickup = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"

:GYMBENC_2419
goto @GYMBENC_2356

:GYMBENC_2426
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBENC_2449
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights

:GYMBENC_2449
freeze_object_position 30@ {state} False
detach_object 30@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2539
task_pick_up_object $scplayer {object} 30@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.1 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:GYMBENC_2539
$playerexercising_flag = 4
TIMERA = 0

:GYMBENC_2553
$playerexercising_flag = 4

:GYMBENC_2560
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3238
if 
  $main_menu_bench == 0
goto_if_false @GYMBENC_2621
clear_help 
print_help_forever 'GYM1_37'
$main_menu_bench = 1

:GYMBENC_2621
if and
  TIMERA > 6000
  $main_menu_bench == 1
goto_if_false @GYMBENC_2667
clear_help 
print_help_forever 'GYM1_25'
$main_menu_bench = 2

:GYMBENC_2667
if and
  TIMERA > 9000
  $main_menu_bench == 2
goto_if_false @GYMBENC_2702
clear_help 
$main_menu_bench = 101

:GYMBENC_2702
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETON"
goto_if_false @GYMBENC_2789
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"
if 
  $animframe == 1.0
goto_if_false @GYMBENC_2782
goto @GYMBENC_2843

:GYMBENC_2782
goto @GYMBENC_3238

:GYMBENC_2789
if and
  $playernextset_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3238
$bpress_resistance = 0
$powerbar = 0
clear_onscreen_counter $bpress_resistance
clear_onscreen_counter $powerbar
goto @GYMBENC_2843

:GYMBENC_2843
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_2891
$upperbodymusclestat_gym = 0.0

:GYMBENC_2891
set_var_float_to_var_float $weightbp = $upperbodymusclestat_gym
$weightbp += 30.0
if 
  $weightbp > 75.0
goto_if_false @GYMBENC_2940
$weightbp = 75.0

:GYMBENC_2940
cset_lvar_float_to_var_int 19@ =# $bpress_resistance
set_var_float_to_var_float $animationtobeplayed = $weightbp
sub_float_var_from_float_var $animationtobeplayed -= $bench_txt
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3030
task_play_anim $scplayer {animationName} "GYM_BP_UP_B" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3030
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMBENC_3117
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3117
task_play_anim $scplayer {animationName} "GYM_BP_UP_A" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3117
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMBENC_3188
task_play_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3188
display_nth_onscreen_counter_with_string $powerbar {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $bpress_resistance {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_2'
$animstate_flag = 1
$playerexercising_flag = 5

:GYMBENC_3238
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6949
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_3309
$upperbodymusclestat_gym = 0.0

:GYMBENC_3309
set_var_float_to_var_float $weightbp = $upperbodymusclestat_gym
$weightbp += 20.0
if 
  $weightbp > 75.0
goto_if_false @GYMBENC_3358
$weightbp = 75.0

:GYMBENC_3358
if 
  $main_menu_bench == 0
goto_if_false @GYMBENC_3396
clear_help 
print_help_forever 'GYM1_37'
$main_menu_bench = 1

:GYMBENC_3396
if and
  TIMERA > 6000
  $main_menu_bench == 1
goto_if_false @GYMBENC_3442
clear_help 
print_help_forever 'GYM1_25'
$main_menu_bench = 2

:GYMBENC_3442
if and
  TIMERA > 9000
  $main_menu_bench == 2
goto_if_false @GYMBENC_3477
clear_help 
$main_menu_bench = 101

:GYMBENC_3477
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3510
sub_float_var_from_float_lvar 18@ -= $bench_txt

:GYMBENC_3510
if 
  $animstate_flag == 4
goto_if_false @GYMBENC_3538
18@ -= 4.0

:GYMBENC_3538
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_3580
if 
  26@ == 1
goto_if_false @GYMBENC_3580
26@ = 2

:GYMBENC_3580
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMBENC_3622
if 
  26@ == 3
goto_if_false @GYMBENC_3622
26@ = 0

:GYMBENC_3622
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3759
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMBENC_3703
if 
  26@ == 0
goto_if_false @GYMBENC_3703
add_float_var_to_float_lvar 18@ += $weightbp
26@ = 1

:GYMBENC_3703
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_3759
if 
  26@ == 2
goto_if_false @GYMBENC_3759
add_float_var_to_float_lvar 18@ += $weightbp
26@ = 3

:GYMBENC_3759
if 
  0.0 > 18@
goto_if_false @GYMBENC_3790
18@ = 0.0

:GYMBENC_3790
if 
  18@ > 25.0
goto_if_false @GYMBENC_3822
$play_bench_once = set_char_say_context $scplayer {phrase} SpeechId.PainCjBoxing

:GYMBENC_3822
if 
  18@ >= 100.0
goto_if_false @GYMBENC_3878
18@ = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMBENC_3878
$animstate_flag = 2

:GYMBENC_3878
if and
  $animstate_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3943
if 
  $animvalue == 1.0
goto_if_false @GYMBENC_3943
26@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMBENC_3943
if and
  $animstate_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6043
switch_start 21@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMBENC_4239 {caseNum1} 1 {caseLabel1} @GYMBENC_4094 {caseNum2} 2 {caseLabel2} @GYMBENC_4108 {caseNum3} 3 {caseLabel3} @GYMBENC_4122 {caseNum4} 4 {caseLabel4} @GYMBENC_4136 {caseNum5} 5 {caseLabel5} @GYMBENC_4150 {caseNum6} 6 {caseLabel6} @GYMBENC_4164 {caseNum7} 7 {caseLabel7} @GYMBENC_4179
switch_continued 8 {caseLabel1} @GYMBENC_4194 {caseNum2} 9 {caseLabel2} @GYMBENC_4209 {caseNum3} 10 {caseLabel3} @GYMBENC_4224 {caseNum4} -1 {caseLabel4} @GYMBENC_4239 {caseNum5} -1 {caseLabel5} @GYMBENC_4239 {caseNum6} -1 {caseLabel6} @GYMBENC_4239 {caseNum7} -1 {caseLabel7} @GYMBENC_4239 {caseNum8} -1 {caseLabel8} @GYMBENC_4239 {caseNum9} -1 {caseLabel9} @GYMBENC_4239

:GYMBENC_4094
$reps_bpress = 40
goto @GYMBENC_4239

:GYMBENC_4108
$reps_bpress = 60
goto @GYMBENC_4239

:GYMBENC_4122
$reps_bpress = 80
goto @GYMBENC_4239

:GYMBENC_4136
$reps_bpress = 100
goto @GYMBENC_4239

:GYMBENC_4150
$reps_bpress = 120
goto @GYMBENC_4239

:GYMBENC_4164
$reps_bpress = 160
goto @GYMBENC_4239

:GYMBENC_4179
$reps_bpress = 200
goto @GYMBENC_4239

:GYMBENC_4194
$reps_bpress = 240
goto @GYMBENC_4239

:GYMBENC_4209
$reps_bpress = 280
goto @GYMBENC_4239

:GYMBENC_4224
$reps_bpress = 320
goto @GYMBENC_4239

:GYMBENC_4239
$bench_weight = get_int_stat StatId.HeaviestWeightBenchPress
if 
  is_int_var_greater_than_int_var $reps_bpress > $bench_weight
goto_if_false @GYMBENC_4272
set_int_stat StatId.HeaviestWeightBenchPress {value} $reps_bpress

:GYMBENC_4272
shake_pad PadId.Pad1 {time} 200 {intensity} 200
if 
  $bpress_resistance < 999999
goto_if_false @GYMBENC_4310
$bpress_resistance += 1

:GYMBENC_4310
$bench_show_stat = get_float_stat StatId.BodyMuscle
if 
  1000.0 > $bench_show_stat
goto_if_false @GYMBENC_4618
if 
  21@ == 1
goto_if_false @GYMBENC_4366
20@ = 1.0

:GYMBENC_4366
if 
  21@ == 2
goto_if_false @GYMBENC_4394
20@ = 1.2

:GYMBENC_4394
if 
  21@ == 3
goto_if_false @GYMBENC_4422
20@ = 1.3

:GYMBENC_4422
if 
  21@ == 4
goto_if_false @GYMBENC_4450
20@ = 1.5

:GYMBENC_4450
if 
  21@ == 5
goto_if_false @GYMBENC_4478
20@ = 2.0

:GYMBENC_4478
if 
  21@ == 6
goto_if_false @GYMBENC_4506
20@ = 2.5

:GYMBENC_4506
if 
  21@ == 7
goto_if_false @GYMBENC_4534
20@ = 3.0

:GYMBENC_4534
if 
  21@ == 8
goto_if_false @GYMBENC_4562
20@ = 4.0

:GYMBENC_4562
if 
  21@ == 9
goto_if_false @GYMBENC_4590
20@ = 5.0

:GYMBENC_4590
if 
  21@ == 10
goto_if_false @GYMBENC_4618
20@ = 6.0

:GYMBENC_4618
if 
  800.0 > $bench_show_stat
goto_if_false @GYMBENC_4919
if 
  21@ == 1
goto_if_false @GYMBENC_4667
20@ = 2.0

:GYMBENC_4667
if 
  21@ == 2
goto_if_false @GYMBENC_4695
20@ = 2.2

:GYMBENC_4695
if 
  21@ == 3
goto_if_false @GYMBENC_4723
20@ = 2.3

:GYMBENC_4723
if 
  21@ == 4
goto_if_false @GYMBENC_4751
20@ = 2.5

:GYMBENC_4751
if 
  21@ == 5
goto_if_false @GYMBENC_4779
20@ = 3.0

:GYMBENC_4779
if 
  21@ == 6
goto_if_false @GYMBENC_4807
20@ = 3.5

:GYMBENC_4807
if 
  21@ == 7
goto_if_false @GYMBENC_4835
20@ = 4.0

:GYMBENC_4835
if 
  21@ == 8
goto_if_false @GYMBENC_4863
20@ = 5.0

:GYMBENC_4863
if 
  21@ == 9
goto_if_false @GYMBENC_4891
20@ = 6.0

:GYMBENC_4891
if 
  21@ == 10
goto_if_false @GYMBENC_4919
20@ = 7.0

:GYMBENC_4919
if 
  600.0 > $bench_show_stat
goto_if_false @GYMBENC_5220
if 
  21@ == 1
goto_if_false @GYMBENC_4968
20@ = 3.0

:GYMBENC_4968
if 
  21@ == 2
goto_if_false @GYMBENC_4996
20@ = 3.2

:GYMBENC_4996
if 
  21@ == 3
goto_if_false @GYMBENC_5024
20@ = 3.3

:GYMBENC_5024
if 
  21@ == 4
goto_if_false @GYMBENC_5052
20@ = 3.5

:GYMBENC_5052
if 
  21@ == 5
goto_if_false @GYMBENC_5080
20@ = 4.0

:GYMBENC_5080
if 
  21@ == 6
goto_if_false @GYMBENC_5108
20@ = 4.5

:GYMBENC_5108
if 
  21@ == 7
goto_if_false @GYMBENC_5136
20@ = 5.0

:GYMBENC_5136
if 
  21@ == 8
goto_if_false @GYMBENC_5164
20@ = 6.0

:GYMBENC_5164
if 
  21@ == 9
goto_if_false @GYMBENC_5192
20@ = 7.0

:GYMBENC_5192
if 
  21@ == 10
goto_if_false @GYMBENC_5220
20@ = 8.0

:GYMBENC_5220
if 
  400.0 > $bench_show_stat
goto_if_false @GYMBENC_5521
if 
  21@ == 1
goto_if_false @GYMBENC_5269
20@ = 4.0

:GYMBENC_5269
if 
  21@ == 2
goto_if_false @GYMBENC_5297
20@ = 4.2

:GYMBENC_5297
if 
  21@ == 3
goto_if_false @GYMBENC_5325
20@ = 4.3

:GYMBENC_5325
if 
  21@ == 4
goto_if_false @GYMBENC_5353
20@ = 4.5

:GYMBENC_5353
if 
  21@ == 5
goto_if_false @GYMBENC_5381
20@ = 5.0

:GYMBENC_5381
if 
  21@ == 6
goto_if_false @GYMBENC_5409
20@ = 5.5

:GYMBENC_5409
if 
  21@ == 7
goto_if_false @GYMBENC_5437
20@ = 6.0

:GYMBENC_5437
if 
  21@ == 8
goto_if_false @GYMBENC_5465
20@ = 7.0

:GYMBENC_5465
if 
  21@ == 9
goto_if_false @GYMBENC_5493
20@ = 8.0

:GYMBENC_5493
if 
  21@ == 10
goto_if_false @GYMBENC_5521
20@ = 9.0

:GYMBENC_5521
if 
  200.0 > $bench_show_stat
goto_if_false @GYMBENC_5822
if 
  21@ == 1
goto_if_false @GYMBENC_5570
20@ = 5.0

:GYMBENC_5570
if 
  21@ == 2
goto_if_false @GYMBENC_5598
20@ = 5.2

:GYMBENC_5598
if 
  21@ == 3
goto_if_false @GYMBENC_5626
20@ = 5.3

:GYMBENC_5626
if 
  21@ == 4
goto_if_false @GYMBENC_5654
20@ = 5.5

:GYMBENC_5654
if 
  21@ == 5
goto_if_false @GYMBENC_5682
20@ = 6.0

:GYMBENC_5682
if 
  21@ == 6
goto_if_false @GYMBENC_5710
20@ = 6.5

:GYMBENC_5710
if 
  21@ == 7
goto_if_false @GYMBENC_5738
20@ = 7.0

:GYMBENC_5738
if 
  21@ == 8
goto_if_false @GYMBENC_5766
20@ = 7.5

:GYMBENC_5766
if 
  21@ == 9
goto_if_false @GYMBENC_5794
20@ = 8.0

:GYMBENC_5794
if 
  21@ == 10
goto_if_false @GYMBENC_5822
20@ = 8.5

:GYMBENC_5822
if 
  $bench_sfx == 8
goto_if_false @GYMBENC_5869
$bench_sfx = 0
increment_float_stat StatId.BodyMuscle {value} 20@
add_float_lvar_to_float_var $gym_final_month += 20@
goto @GYMBENC_5891

:GYMBENC_5869
increment_float_stat_no_message StatId.BodyMuscle {value} 20@
$bench_sfx += 1
add_float_lvar_to_float_var $gym_final_month += 20@

:GYMBENC_5891
if 
  $gym_final_month > 200.0
goto_if_false @GYMBENC_5936
$gym_month, $gym_final_day = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMBENC_5936
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBENC_5973
decrement_float_stat StatId.Fat {value} 1.0

:GYMBENC_5973
$powerbar = 0
$play_bench_once = set_char_say_context $scplayer {phrase} SpeechId.PainCjGrunt
task_play_anim $scplayer {animationName} "GYM_BP_DOWN" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$animstate_flag = 4

:GYMBENC_6043
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6383
if and
  18@ == 0.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6383
if 
  $animvalue == 0.0
goto_if_false @GYMBENC_6383
cset_lvar_float_to_var_int 19@ =# $bpress_resistance
set_var_float_to_var_float $animationtobeplayed = $weightbp
sub_float_var_from_float_var $animationtobeplayed -= $bench_txt
if and
  18.0 >= $animationtobeplayed
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6208
task_play_anim $scplayer {animationName} "GYM_BP_UP_B" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6208
if and
  $animationtobeplayed > 18.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6300
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_6300
task_play_anim $scplayer {animationName} "GYM_BP_UP_A" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6300
if and
  $animationtobeplayed > 24.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6376
task_play_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6376
$animstate_flag = 1

:GYMBENC_6383
set_var_float_to_lvar_float $bar_animvalue = 18@
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6762
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMBENC_6496
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMBENC_6504

:GYMBENC_6496
add_float_var_to_float_var $animvalue += $diffgym

:GYMBENC_6504
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6602
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_DOWN"
goto_if_false @GYMBENC_6595
set_char_anim_current_time $scplayer {animationName} "GYM_BP_DOWN" {time} $tempfloat_gym

:GYMBENC_6595
goto @GYMBENC_6762

:GYMBENC_6602
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_A"
goto_if_false @GYMBENC_6652
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_A" {time} $animvalue

:GYMBENC_6652
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_B"
goto_if_false @GYMBENC_6702
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_B" {time} $animvalue

:GYMBENC_6702
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH"
goto_if_false @GYMBENC_6762
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_SMOOTH" {time} $animvalue

:GYMBENC_6762
cset_var_int_to_lvar_float $powerbar =# 18@
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_final_month > 200.0
goto_if_false @GYMBENC_6949
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6949

:GYMBENC_6813
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_6841
wait 0
goto @GYMBENC_6813

:GYMBENC_6841
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6904
task_play_anim $scplayer {animationName} "GYM_BP_GETOFF" {animationFile} "BENCHPRESS" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMBENC_6904
$powerbar = 0
if 
  $gym_final_month > 200.0
goto_if_false @GYMBENC_6942
$gym_final_month = 0.0

:GYMBENC_6942
$playerexercising_flag = 6

:GYMBENC_6949
if and
  $playerexercising_flag == 6
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8086
if 
  $bpress_resistance > 4
goto_if_false @GYMBENC_7606
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETOFF"
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7599
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7049
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7120
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7113
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7113
goto @GYMBENC_7049

:GYMBENC_7120
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  $bench_playing == 0
goto_if_false @GYMBENC_7157
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights
$bench_playing = 1

:GYMBENC_7157
drop_object $scplayer {state} False
freeze_object_position 30@ {state} True
delete_object 30@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7270
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7270
if 
  $animframe == 1.0
goto_if_false @GYMBENC_7599
task_play_anim $scplayer {animationName} "GYM_BP_CELEBRATE" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMBENC_7341
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7599
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$bpress_resistance = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$bpress_resistance = 0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMBENC_7477
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMBENC_7477
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBENC_7514
set_float_stat StatId.Fat {value} 0.0

:GYMBENC_7514
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
clear_onscreen_counter $bpress_resistance
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
remove_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
delete_menu $bike_show_stat
$main_menu_bench = 0
$are_anims_loaded = 0

:GYMBENC_7599
goto @GYMBENC_8086

:GYMBENC_7606
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8086
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETOFF"
goto_if_false @GYMBENC_8086
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7676
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7747
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7740
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7740
goto @GYMBENC_7676

:GYMBENC_7747
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  $bench_playing == 0
goto_if_false @GYMBENC_7784
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights
$bench_playing = 1

:GYMBENC_7784
drop_object $scplayer {state} False
freeze_object_position 30@ {state} True
delete_object 30@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7897
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7897
if 
  $animframe == 1.0
goto_if_false @GYMBENC_8086
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$bpress_resistance = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$bpress_resistance = 0
clear_onscreen_counter $bpress_resistance
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
remove_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
delete_menu $bike_show_stat
$main_menu_bench = 0
$are_anims_loaded = 0

:GYMBENC_8086
goto @GYMBENC_632
terminate_this_script 

//-------------External script 13 (GYMTREAD)---------------

:GYMTREA
script_name 'GYMTREA'
$tread_TIMERC = 0
$tread_shake_speed = 0
$tread_has_KD = 0
$tread_txt = 0
$levelbar_tread = 0
$speed_treadbar = 0
$incline_tread = 0
$distanceon_tread = 0
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
$finishedtread_flag = 1
27@ = 0
TIMERA = 0
TIMERB = 0
28@ = 0
if 
  28@ == 1
goto_if_false @GYMTREA_278
0@ = create_object_no_offset #BEACHTOWEL03 {x} 0.0 {y} 0.0 {z} 0.0

:GYMTREA_278
if 
  does_object_exist 0@
goto_if_false @GYMTREA_330
1@, 2@, 3@ = get_object_coordinates 0@
7@, 8@, 9@ = get_object_coordinates 0@
10@ = get_object_heading 0@

:GYMTREA_330
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
26@ = 1.0
set_lvar_float_to_lvar_float 6@ = 3@
6@ += 1.5
set_lvar_float_to_lvar_float 9@ = 3@
9@ += 0.75
set_lvar_float_to_lvar_float 11@ = 10@
11@ -= 60.0
12@ = sin 11@
13@ = cos 11@
12@ *= 3.0
13@ *= 3.0
set_lvar_float_to_lvar_float 4@ = 1@
sub_float_lvar_from_float_lvar 4@ -= 13@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_lvar_from_float_lvar 5@ -= 12@
set_lvar_float_to_lvar_float 11@ = 10@
11@ += 90.0
12@ = sin 11@
13@ = cos 11@
12@ *= 1.5
13@ *= 1.5
sub_float_lvar_from_float_lvar 1@ -= 13@
sub_float_lvar_from_float_lvar 2@ -= 12@
3@ += 0.1
$are_anims_loaded = 0

:GYMTREA_573
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMTREA_595
terminate_this_script 

:GYMTREA_595
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5875
if and
  $playerexercising_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_974
if 
  $starttreadmill_flag == 0
goto_if_false @GYMTREA_974
if 
  $finishedtread_flag == 0
goto_if_false @GYMTREA_933
if 
  locate_char_on_foot_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMTREA_899
if 
  27@ == 0
goto_if_false @GYMTREA_748
print_help_forever 'GYM1_81'
27@ = 1

:GYMTREA_748
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMTREA_892
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMTREA_876
$5344, $gym_day = get_current_date 
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMTREA_853
$starttreadmill_flag = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMTREA_869

:GYMTREA_853
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMTREA_869
goto @GYMTREA_892

:GYMTREA_876
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMTREA_892
goto @GYMTREA_926

:GYMTREA_899
if 
  27@ == 1
goto_if_false @GYMTREA_926
clear_help 
27@ = 0

:GYMTREA_926
goto @GYMTREA_974

:GYMTREA_933
if 
  not locate_char_on_foot_2d $scplayer {x} 1@ {y} 2@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMTREA_974
$finishedtread_flag = 0

:GYMTREA_974
if and
  $starttreadmill_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5875
if 
  $are_anims_loaded == 0
goto_if_false @GYMTREA_1107
request_animation "GYMNASIUM"

:GYMTREA_1028
if 
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMTREA_1063
wait 0
goto @GYMTREA_1028

:GYMTREA_1063
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMTREA_1074
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_1100
wait 0
goto @GYMTREA_1074

:GYMTREA_1100
$are_anims_loaded = 1

:GYMTREA_1107
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1219
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 1@ {y} 2@ {z} 3@
set_char_heading $scplayer {heading} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 4@ {y} 5@ {z} 6@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 7@ {y} 8@ {z} 9@ {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMTREA_1219
if 
  $playerexercising_flag == 2
goto_if_false @GYMTREA_1939
print_help_forever 'GYM1_60'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMTREA_1441
$temp_muscle_stat = create_menu 'GYM1_F' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $temp_muscle_stat {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMTREA_1602

:GYMTREA_1441
$temp_muscle_stat = create_menu 'GYM1_F' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $temp_muscle_stat {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMTREA_1602
set_active_menu_item $temp_muscle_stat {row} 0

:GYMTREA_1609
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1734
wait 0
$bike_txt += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $bike_txt > 20
goto_if_false @GYMTREA_1674
clear_help 
delete_menu $temp_muscle_stat
goto @GYMTREA_5418

:GYMTREA_1674
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_1727
clear_help 
$tread_txt = get_menu_item_selected $temp_muscle_stat
$tread_txt += 1
delete_menu $temp_muscle_stat
TIMERA = 0
goto @GYMTREA_1734

:GYMTREA_1727
goto @GYMTREA_1609

:GYMTREA_1734
if 
  $tread_helpflag == 0
goto_if_false @GYMTREA_1775
print_help 'GYM1_42'
wait 4000
$tread_helpflag = 1

:GYMTREA_1775
if 
  $tread_helpflag == 1
goto_if_false @GYMTREA_1816
print_help 'GYM1_43'
wait 5000
$tread_helpflag = 2

:GYMTREA_1816
if 
  $tread_helpflag == 2
goto_if_false @GYMTREA_1864
print_help 'GYM1_45'
wait 4000
$tread_helpflag = 4
TIMERA = 0

:GYMTREA_1864
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1928
task_play_anim $scplayer {animationName} "GYM_TREAD_GETON" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMTREA_1928
wait 0
$playerexercising_flag = 3

:GYMTREA_1939
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMTREA_2159
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_GETON"
goto_if_false @GYMTREA_2159
14@ = get_char_anim_current_time $scplayer {animationName} "GYM_TREAD_GETON"
if 
  14@ == 1.0
goto_if_false @GYMTREA_2159
task_play_anim $scplayer {animationName} "GYM_TREAD_WALK" {animationFile} "GYMNASIUM" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
display_nth_onscreen_counter_with_string $levelbar_tread {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $tread_txt {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_4'
display_nth_onscreen_counter_with_string $incline_tread {display} CounterDisplay.Number {slot} 3 {text} 'GYM1_3'
17@ = 30.0
$playerexercising_flag = 4

:GYMTREA_2159
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5875
23@ /= 500.0
$lowerbodymusclestat_gym /= 750.0
add_float_var_to_float_lvar 23@ += $lowerbodymusclestat_gym
set_lvar_float_to_lvar_float 18@ = 20@
add_float_lvar_to_float_lvar 18@ += 23@
sub_float_lvar_from_float_lvar 17@ -= 19@
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_2284
if 
  $reptread_flag == 0
goto_if_false @GYMTREA_2284
add_float_lvar_to_float_lvar 17@ += 18@
$reptread_flag = 1

:GYMTREA_2284
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_2326
if 
  $reptread_flag == 1
goto_if_false @GYMTREA_2326
$reptread_flag = 0

:GYMTREA_2326
if 
  0.0 > 17@
goto_if_false @GYMTREA_2357
17@ = 0.0

:GYMTREA_2357
if 
  17@ > 100.0
goto_if_false @GYMTREA_2388
17@ = 100.0

:GYMTREA_2388
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GYMTREA_2405

:GYMTREA_2405
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GYMTREA_2422

:GYMTREA_2422
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GYMTREA_2464
if 
  $inclinebutton_flag == 1
goto_if_false @GYMTREA_2464
$inclinebutton_flag = 0

:GYMTREA_2464
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GYMTREA_2506
if 
  $inclinebutton_flag == 2
goto_if_false @GYMTREA_2506
$inclinebutton_flag = 0

:GYMTREA_2506
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMTREA_2644
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2644
if and
  $tread_txt > 0
  10 > $tread_txt
goto_if_false @GYMTREA_2644
$tread_txt += 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_2596
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMTREA_2596
17@ -= 10.0
if 
  0.0 > 17@
goto_if_false @GYMTREA_2637
17@ = 0.0

:GYMTREA_2637
$buttonpressgymtread_flag = 1

:GYMTREA_2644
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMTREA_2741
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2741
if and
  $tread_txt > 1
  11 > $tread_txt
goto_if_false @GYMTREA_2741
$tread_txt -= 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_2734
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMTREA_2734
$buttonpressgymtread_flag = 2

:GYMTREA_2741
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMTREA_2783
if 
  $buttonpressgymtread_flag == 1
goto_if_false @GYMTREA_2783
$buttonpressgymtread_flag = 0

:GYMTREA_2783
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMTREA_2825
if 
  $buttonpressgymtread_flag == 2
goto_if_false @GYMTREA_2825
$buttonpressgymtread_flag = 0

:GYMTREA_2825
if 
  $tread_txt == 1
goto_if_false @GYMTREA_2863
26@ = 1.0
20@ = 9.5

:GYMTREA_2863
if 
  $tread_txt == 2
goto_if_false @GYMTREA_2901
26@ = 2.0
20@ = 8.5

:GYMTREA_2901
if 
  $tread_txt == 3
goto_if_false @GYMTREA_2939
26@ = 3.0
20@ = 7.5

:GYMTREA_2939
if 
  $tread_txt == 4
goto_if_false @GYMTREA_2977
26@ = 4.0
20@ = 6.5

:GYMTREA_2977
if 
  $tread_txt == 5
goto_if_false @GYMTREA_3015
26@ = 5.0
20@ = 5.5

:GYMTREA_3015
if 
  $tread_txt == 6
goto_if_false @GYMTREA_3053
26@ = 6.0
20@ = 4.5

:GYMTREA_3053
if 
  $tread_txt == 7
goto_if_false @GYMTREA_3091
26@ = 7.0
20@ = 3.5

:GYMTREA_3091
if 
  $tread_txt == 8
goto_if_false @GYMTREA_3129
26@ = 8.0
20@ = 2.5

:GYMTREA_3129
if 
  $tread_txt == 9
goto_if_false @GYMTREA_3167
26@ = 9.0
20@ = 1.5

:GYMTREA_3167
if 
  $tread_txt == 10
goto_if_false @GYMTREA_3205
26@ = 10.0
20@ = 0.5

:GYMTREA_3205
if 
  $playerstarttread_flag == 0
goto_if_false @GYMTREA_3274
if 
  17@ > 0.0
goto_if_false @GYMTREA_3274
add_one_off_sound 1@ {y} 2@ {z} 3@ {soundId} 65535
TIMERB = 0
$playerstarttread_flag = 1

:GYMTREA_3274
if and
  0.0 >= 17@
  not is_char_dead $scplayer
goto_if_false @GYMTREA_3778
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_WALK"
goto_if_false @GYMTREA_3381
task_play_anim $scplayer {animationName} "GYM_WALK_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3381
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_JOG"
goto_if_false @GYMTREA_3460
task_play_anim $scplayer {animationName} "GYM_JOG_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3460
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_SPRINT"
goto_if_false @GYMTREA_3544
task_play_anim $scplayer {animationName} "GYM_TREAD_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3544
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_3581
set_float_stat StatId.Fat {value} 0.0

:GYMTREA_3581
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 0
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
clear_onscreen_counter $levelbar_tread
clear_onscreen_counter $tread_txt
clear_onscreen_counter $incline_tread
set_player_control $player1 {state} True
restore_camera_jumpcut 
$finishedtread_flag = 1
set_char_collision $scplayer {state} True
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
delete_menu $temp_muscle_stat
clear_help 

:GYMTREA_3778
if 
  $starttreadmill_flag == 1
goto_if_false @GYMTREA_4145
if and
  $playwalkanim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_3912
if and
  $tread_txt > 0
  3 > $tread_txt
goto_if_false @GYMTREA_3912
task_play_anim $scplayer {animationName} "GYM_TREAD_WALK" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 1
$playjoganim_flag = 0
$playsprintanim_flag = 0

:GYMTREA_3912
if and
  $playjoganim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4027
if and
  $tread_txt > 2
  7 > $tread_txt
goto_if_false @GYMTREA_4027
task_play_anim $scplayer {animationName} "GYM_TREAD_JOG" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 0
$playsprintanim_flag = 0
$playjoganim_flag = 1

:GYMTREA_4027
if and
  $playsprintanim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4145
if and
  $tread_txt > 6
  11 > $tread_txt
goto_if_false @GYMTREA_4145
task_play_anim $scplayer {animationName} "GYM_TREAD_SPRINT" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 1

:GYMTREA_4145
if 
  17@ >= 0.0
goto_if_false @GYMTREA_4197
if 
  10.0 >= 17@
goto_if_false @GYMTREA_4197
15@ = 0.9

:GYMTREA_4197
if 
  17@ >= 11.0
goto_if_false @GYMTREA_4249
if 
  20.0 >= 17@
goto_if_false @GYMTREA_4249
15@ = 0.97

:GYMTREA_4249
if 
  17@ >= 21.0
goto_if_false @GYMTREA_4301
if 
  30.0 >= 17@
goto_if_false @GYMTREA_4301
15@ = 1.04

:GYMTREA_4301
if 
  17@ >= 31.0
goto_if_false @GYMTREA_4353
if 
  40.0 >= 17@
goto_if_false @GYMTREA_4353
15@ = 1.11

:GYMTREA_4353
if 
  17@ >= 41.0
goto_if_false @GYMTREA_4405
if 
  50.0 >= 17@
goto_if_false @GYMTREA_4405
15@ = 1.18

:GYMTREA_4405
if 
  17@ >= 51.0
goto_if_false @GYMTREA_4457
if 
  60.0 >= 17@
goto_if_false @GYMTREA_4457
15@ = 1.25

:GYMTREA_4457
if 
  17@ >= 61.0
goto_if_false @GYMTREA_4509
if 
  70.0 >= 17@
goto_if_false @GYMTREA_4509
15@ = 1.32

:GYMTREA_4509
if 
  17@ >= 71.0
goto_if_false @GYMTREA_4561
if 
  80.0 >= 17@
goto_if_false @GYMTREA_4561
15@ = 1.39

:GYMTREA_4561
if 
  17@ >= 81.0
goto_if_false @GYMTREA_4613
if 
  90.0 >= 17@
goto_if_false @GYMTREA_4613
15@ = 1.46

:GYMTREA_4613
if 
  17@ >= 91.0
goto_if_false @GYMTREA_4665
if 
  100.0 >= 17@
goto_if_false @GYMTREA_4665
15@ = 1.53

:GYMTREA_4665
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4851
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_WALK"
goto_if_false @GYMTREA_4737
set_char_anim_speed $scplayer {animName} "GYM_TREAD_WALK" {animSpeed} 15@

:GYMTREA_4737
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_JOG"
goto_if_false @GYMTREA_4791
set_char_anim_speed $scplayer {animName} "GYM_TREAD_JOG" {animSpeed} 15@

:GYMTREA_4791
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_SPRINT"
goto_if_false @GYMTREA_4851
set_char_anim_speed $scplayer {animName} "GYM_TREAD_SPRINT" {animSpeed} 15@

:GYMTREA_4851
if 
  does_object_exist 0@
goto_if_false @GYMTREA_4976
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_4976
if 
  17@ > 10.0
goto_if_false @GYMTREA_4943
if 
  $tread_shake_speed == 0
goto_if_false @GYMTREA_4936
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRunningMachineStart
$tread_shake_speed = 1

:GYMTREA_4936
goto @GYMTREA_4976

:GYMTREA_4943
if 
  $tread_shake_speed == 1
goto_if_false @GYMTREA_4976
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRunningMachineStop
$tread_shake_speed = 0

:GYMTREA_4976
if 
  TIMERB > 250
goto_if_false @GYMTREA_5295
TIMERB -= 250
set_lvar_float_to_lvar_float 21@ = 17@
mult_float_lvar_by_float_lvar 21@ *= 26@
21@ /= 80.0
cset_var_float_to_var_int $stattread_temp =# $tread_txt
$stattread_temp /= 10.0
$stattread_temp += 1.0
mult_float_var_by_float_lvar $stattread_temp *= 21@
add_float_var_to_float_var $stattreadstamina_ctr += $stattread_temp
if 
  $stattreadstamina_ctr >= 170.0
goto_if_false @GYMTREA_5218
$stattreadstamina_ctr -= 170.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMTREA_5141
decrement_float_stat StatId.Fat {value} 8.0

:GYMTREA_5141
if 
  $tread_start_sound == 3
goto_if_false @GYMTREA_5192
$tread_start_sound = 0
increment_float_stat StatId.Stamina {value} 4.0
$gym_final_month += 4.0
goto @GYMTREA_5218

:GYMTREA_5192
increment_float_stat_no_message StatId.Stamina {value} 4.0
$gym_final_month += 4.0
$tread_start_sound += 1

:GYMTREA_5218
if 
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5263
$gym_month, $gym_final_day = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMTREA_5263
cset_lvar_float_to_var_int 25@ =# $speed_treadbar
mult_float_var_by_float_lvar $stattread_temp *= 25@
add_float_lvar_to_float_lvar 22@ += 21@
cset_var_int_to_lvar_float $incline_tread =# 22@

:GYMTREA_5295
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5771
if 
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5353
$gym_final_month = 0.0

:GYMTREA_5353
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5771
task_play_anim $scplayer {animationName} "GYM_TREAD_GETOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_5418
shake_pad PadId.Pad1 {time} 1 {intensity} 1
increment_int_stat StatId.DistTreadmill {value} $incline_tread
set_lvar_int_to_lvar_int 29@ = TIMERA
29@ /= 1000
increment_int_stat StatId.LongestTreadmillTime {value} 29@
clear_help 
delete_menu $temp_muscle_stat
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
clear_onscreen_counter $levelbar_tread
clear_onscreen_counter $tread_txt
clear_onscreen_counter $incline_tread
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5643
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMTREA_5643
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
restore_camera_jumpcut 
$finishedtread_flag = 1
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMTREA_5706
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMTREA_5706
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_5743
set_float_stat StatId.Fat {value} 0.0

:GYMTREA_5743
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMTREA_5771
wait 0
goto @GYMTREA_5743

:GYMTREA_5771
$tread_has_KD += 1
set_var_int_to_var_int $tread_TIMERC = $levelbar_tread
$tread_TIMERC -= 100
if 
  $tread_TIMERC > -40
goto_if_false @GYMTREA_5818
$tread_TIMERC = -40

:GYMTREA_5818
if 
  is_int_var_greater_or_equal_to_int_var $tread_has_KD >= $tread_TIMERC
goto_if_false @GYMTREA_5867
$tread_has_KD = 0
$levelbar_tread *= 12
$levelbar_tread /= 10
shake_pad PadId.Pad1 {time} 100 {intensity} $levelbar_tread

:GYMTREA_5867
cset_var_int_to_lvar_float $levelbar_tread =# 17@

:GYMTREA_5875
goto @GYMTREA_573
terminate_this_script 

//-------------External script 14 (GYMDUMB)---------------

:GYMDUMB
script_name 'GYMDUMB'
$reps_dumbell = 1
$weightdb = 0
27@ = 0
$incmusclestatdb = 0
$dumbellcamy1 = 0.0
TIMERA = 0
TIMERB = 0
23@ = 0
if 
  23@ == 1
goto_if_false @GYMDUMB_111
0@ = create_object_no_offset #BEACHTOWEL04 {x} 0.0 {y} 0.0 {z} 0.0

:GYMDUMB_111
if 
  does_object_exist 0@
goto_if_false @GYMDUMB_149
4@, 5@, 6@ = get_object_coordinates 0@
12@ = get_object_heading 0@

:GYMDUMB_149
set_lvar_float_to_lvar_float 2@ = 4@
set_lvar_float_to_lvar_float 3@ = 5@
set_var_float_to_lvar_float $dumbell_player_heading1 = 4@
set_var_float_to_lvar_float $dumbellx1 = 5@
set_lvar_float_to_lvar_float 9@ = 6@
9@ += 1.7
set_lvar_float_to_lvar_float 13@ = 12@
set_lvar_float_to_lvar_float 1@ = 12@
1@ -= 90.0
set_var_float_to_lvar_float $dumb_front_back = 12@
$dumb_front_back -= 90.0
set_var_float_to_lvar_float $dumbell_player_heading = 12@
$dumbell_player_heading += 90.0
10@ = sin 13@
11@ = cos 13@
10@ *= 0.95
11@ *= 0.95
sub_float_lvar_from_float_lvar 4@ -= 11@
sub_float_lvar_from_float_lvar 5@ -= 10@
10@ *= 3.5
11@ *= 3.5
set_lvar_float_to_lvar_float 7@ = 4@
add_float_lvar_to_float_lvar 7@ += 11@
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 10@
10@ = sin 13@
11@ = cos 13@
10@ *= 0.95
11@ *= 0.95
add_float_lvar_to_float_var $dumbell_player_heading1 += 11@
add_float_lvar_to_float_var $dumbellx1 += 10@
10@ *= 3.5
11@ *= 3.5
set_var_float_to_var_float $dumbelly1 = $dumbell_player_heading1
sub_float_lvar_from_float_var $dumbelly1 -= 11@
set_var_float_to_var_float $dumbellcamx1 = $dumbellx1
sub_float_lvar_from_float_var $dumbellcamx1 -= 10@
12@ += 180.0
set_lvar_float_to_lvar_float 13@ = 12@
13@ += 90.0
10@ = sin 13@
11@ = cos 13@
10@ *= 0.2
11@ *= 0.2
add_float_lvar_to_float_lvar 2@ += 11@
add_float_lvar_to_float_lvar 3@ += 10@
25@ = create_object #KMB_DUMBBELL_R {x} 2@ {y} 3@ {z} 6@
attach_object_to_object 25@ {handle} 0@ {xOffset} 0.05 {yOffset} 0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
26@ = create_object #KMB_DUMBBELL_L {x} 2@ {y} 3@ {z} 6@
attach_object_to_object 26@ {handle} 0@ {xOffset} 0.05 {yOffset} -0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
6@ += 0.1
$speedbar_bike = 1
$are_anims_loaded = 0

:GYMDUMB_683
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMDUMB_715
delete_object 25@
delete_object 26@
terminate_this_script 

:GYMDUMB_715
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMDUMB_743
delete_object 25@
delete_object 26@
terminate_this_script 

:GYMDUMB_743
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7878
if 
  $playerexercising_flag == 0
goto_if_false @GYMDUMB_1234
if 
  17@ == 0
goto_if_false @GYMDUMB_1234
if 
  21@ == 0
goto_if_false @GYMDUMB_1170
if or
  locate_char_on_foot_3d $scplayer {x} 4@ {y} 5@ {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} $dumbell_player_heading1 {y} $dumbellx1 {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMDUMB_1136
if 
  locate_char_on_foot_3d $scplayer {x} 4@ {y} 5@ {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMDUMB_942
$dumb_weight = 0
goto @GYMDUMB_949

:GYMDUMB_942
$dumb_weight = 1

:GYMDUMB_949
if 
  27@ == 0
goto_if_false @GYMDUMB_985
print_help_forever 'GYM1_85'
27@ = 1

:GYMDUMB_985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMDUMB_1129
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMDUMB_1113
$5344, $gym_day = get_current_date 
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMDUMB_1090
17@ = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMDUMB_1106

:GYMDUMB_1090
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMDUMB_1106
goto @GYMDUMB_1129

:GYMDUMB_1113
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMDUMB_1129
goto @GYMDUMB_1163

:GYMDUMB_1136
if 
  27@ == 1
goto_if_false @GYMDUMB_1163
clear_help 
27@ = 0

:GYMDUMB_1163
goto @GYMDUMB_1234

:GYMDUMB_1170
if or
  not locate_char_on_foot_2d $scplayer {x} 4@ {y} 5@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  not locate_char_on_foot_2d $scplayer {x} $dumbell_player_heading1 {y} $dumbellx1 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMDUMB_1234
21@ = 0

:GYMDUMB_1234
if 
  17@ == 1
goto_if_false @GYMDUMB_7878
if 
  $are_anims_loaded == 0
goto_if_false @GYMDUMB_1377
request_animation "FREEWEIGHTS"
load_mission_text 'GYM'

:GYMDUMB_1296
if 
  not has_animation_loaded "FREEWEIGHTS"
goto_if_false @GYMDUMB_1333
wait 0
goto @GYMDUMB_1296

:GYMDUMB_1333
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMDUMB_1344
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMDUMB_1370
wait 0
goto @GYMDUMB_1344

:GYMDUMB_1370
$are_anims_loaded = 1

:GYMDUMB_1377
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_1565
set_char_collision $scplayer {state} False
if 
  $dumb_weight == 0
goto_if_false @GYMDUMB_1487
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 4@ {y} 5@ {z} 6@
set_fixed_camera_position 7@ {y} 8@ {z} 9@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} $dumb_front_back
goto @GYMDUMB_1542

:GYMDUMB_1487
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} $dumbell_player_heading1 {y} $dumbellx1 {z} 6@
set_fixed_camera_position $dumbelly1 {y} $dumbellcamx1 {z} 9@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} $dumbell_player_heading

:GYMDUMB_1542
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed

:GYMDUMB_1565
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2092
print_help_forever 'GYM1_71'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMDUMB_1792
$tread_show_stat = create_menu 'GYM1_G' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $tread_show_stat {column} 0 {title} 'GYM1_72' {row0} 'GYM1_26' {row1} 'GYM1_27' {row2} 'GYM1_28' {row3} 'GYM1_29' {row4} 'GYM1_30' {row5} 'GYM1_31' {row6} 'GYM1_32' {row7} 'GYM1_33' {row8} 'GYM1_34' {row9} 'GYM1_35' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMDUMB_1953

:GYMDUMB_1792
$tread_show_stat = create_menu 'GYM1_G' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $tread_show_stat {column} 0 {title} 'GYM1_72' {row0} 'GYM1_26' {row1} 'GYM1_27' {row2} 'GYM1_28' {row3} 'GYM1_29' {row4} 'GYM1_30' {row5} 'GYM1_31' {row6} 'GYM1_32' {row7} 'GYM1_33' {row8} 'GYM1_34' {row9} 'GYM1_35' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMDUMB_1953
set_active_menu_item $tread_show_stat {row} 0

:GYMDUMB_1960
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2071
wait 0
$bike_txt += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $bike_txt > 20
goto_if_false @GYMDUMB_2025
clear_help 
delete_menu $tread_show_stat
goto @GYMDUMB_7402

:GYMDUMB_2025
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_2064
clear_help 
$reps_dumbell = get_menu_item_selected $tread_show_stat
delete_menu $tread_show_stat
goto @GYMDUMB_2071

:GYMDUMB_2064
goto @GYMDUMB_1960

:GYMDUMB_2071
19@ = 1
18@ = 1
$playerexercising_flag = 3

:GYMDUMB_2092
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2849
if 
  $reps_dumbell == 0
goto_if_false @GYMDUMB_2153
$DUMBELL_TXT = 1.0
$reps_dumbellfloat = 5.0

:GYMDUMB_2153
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_2191
$DUMBELL_TXT = 2.0
$reps_dumbellfloat = 5.2

:GYMDUMB_2191
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_2229
$DUMBELL_TXT = 3.0
$reps_dumbellfloat = 5.3

:GYMDUMB_2229
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_2267
$DUMBELL_TXT = 4.0
$reps_dumbellfloat = 5.5

:GYMDUMB_2267
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_2305
$DUMBELL_TXT = 5.0
$reps_dumbellfloat = 6.0

:GYMDUMB_2305
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_2343
$DUMBELL_TXT = 6.0
$reps_dumbellfloat = 6.5

:GYMDUMB_2343
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_2381
$DUMBELL_TXT = 7.0
$reps_dumbellfloat = 7.0

:GYMDUMB_2381
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_2419
$DUMBELL_TXT = 8.0
$reps_dumbellfloat = 7.5

:GYMDUMB_2419
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_2457
$DUMBELL_TXT = 9.0
$reps_dumbellfloat = 8.0

:GYMDUMB_2457
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_2495
$DUMBELL_TXT = 10.0
$reps_dumbellfloat = 8.5

:GYMDUMB_2495
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2561
task_play_anim $scplayer {animationName} "GYM_FREE_PICKUP" {animationFile} "FREEWEIGHTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_2561
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2849
if and
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PICKUP"
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2849
$animframe_freepickup = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"

:GYMDUMB_2644
if 
  $animframe_freepickup <= 0.7789
goto_if_false @GYMDUMB_2717
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2710
$animframe_freepickup = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"

:GYMDUMB_2710
goto @GYMDUMB_2644

:GYMDUMB_2717
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2835
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2835
task_pick_up_object $scplayer {object} 25@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_pick_up_second_object $scplayer {object} 26@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {boneId} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:GYMDUMB_2835
$playerexercising_flag = 4
TIMERA = 0

:GYMDUMB_2849
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_3385
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PICKUP"
goto_if_false @GYMDUMB_3385
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"
if 
  $animframe == 1.0
goto_if_false @GYMDUMB_3385
if 
  $sub_menu_bell == 0
goto_if_false @GYMDUMB_2987
print_help_forever 'GYM1_36'
$sub_menu_bell = 1

:GYMDUMB_2987
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3035
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3035
set_var_float_to_var_float $weight_dumbell = $upperbodymusclestat_gym
$weight_dumbell += 30.0
if 
  $weight_dumbell > 75.0
goto_if_false @GYMDUMB_3084
$weight_dumbell = 75.0

:GYMDUMB_3084
cset_var_float_to_var_int $powerdumbell =# $weightdb
set_var_float_to_var_float $animationtobeplayed = $weight_dumbell
sub_float_var_from_float_var $animationtobeplayed -= $DUMBELL_TXT
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3174
task_play_anim $scplayer {animationName} "GYM_FREE_B" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3174
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_3261
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3261
task_play_anim $scplayer {animationName} "GYM_FREE_A" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3261
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_3335
task_play_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3335
display_nth_onscreen_counter_with_string $powerbar {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $weightdb {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_2'
$animstate_flag = 1
$playerexercising_flag = 5

:GYMDUMB_3385
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7014
if and
  TIMERA > 4000
  $sub_menu_bell == 1
goto_if_false @GYMDUMB_3454
clear_help 
print_help_forever 'GYM1_25'
$sub_menu_bell = 2

:GYMDUMB_3454
if and
  TIMERA > 8000
  $sub_menu_bell == 2
goto_if_false @GYMDUMB_3489
clear_help 
$sub_menu_bell = 101

:GYMDUMB_3489
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3537
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3537
set_var_float_to_var_float $weight_dumbell = $upperbodymusclestat_gym
$weight_dumbell += 20.0
if 
  $weight_dumbell > 75.0
goto_if_false @GYMDUMB_3586
$weight_dumbell = 75.0

:GYMDUMB_3586
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3619
sub_float_var_from_float_var $dumbell_resistance -= $DUMBELL_TXT

:GYMDUMB_3619
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_3647
$dumbell_resistance -= 4.0

:GYMDUMB_3647
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMDUMB_3689
if 
  20@ == 3
goto_if_false @GYMDUMB_3689
20@ = 0

:GYMDUMB_3689
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_3731
if 
  20@ == 1
goto_if_false @GYMDUMB_3731
20@ = 2

:GYMDUMB_3731
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3868
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMDUMB_3812
if 
  20@ == 0
goto_if_false @GYMDUMB_3812
add_float_var_to_float_var $dumbell_resistance += $weight_dumbell
20@ = 1

:GYMDUMB_3812
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_3868
if 
  20@ == 2
goto_if_false @GYMDUMB_3868
add_float_var_to_float_var $dumbell_resistance += $weight_dumbell
20@ = 3

:GYMDUMB_3868
if 
  0.0 > $dumbell_resistance
goto_if_false @GYMDUMB_3899
$dumbell_resistance = 0.0

:GYMDUMB_3899
if 
  $dumbell_resistance >= 100.0
goto_if_false @GYMDUMB_3955
$dumbell_resistance = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMDUMB_3955
$animstate_flag = 2

:GYMDUMB_3955
if 
  $dumbell_resistance > 25.0
goto_if_false @GYMDUMB_3987
$temp_muscle_stat_dumb = set_char_say_context $scplayer {phrase} SpeechId.PainCjBoxing

:GYMDUMB_3987
if 
  $animstate_flag == 2
goto_if_false @GYMDUMB_4047
if 
  $animvalue == 1.0
goto_if_false @GYMDUMB_4047
20@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMDUMB_4047
if and
  $animstate_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6138
if 
  $weightdb < 999999
goto_if_false @GYMDUMB_4098
$weightdb += 1

:GYMDUMB_4098
switch_start $reps_dumbell {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMDUMB_4366 {caseNum1} 0 {caseLabel1} @GYMDUMB_4226 {caseNum2} 1 {caseLabel2} @GYMDUMB_4240 {caseNum3} 2 {caseLabel3} @GYMDUMB_4254 {caseNum4} 3 {caseLabel4} @GYMDUMB_4268 {caseNum5} 4 {caseLabel5} @GYMDUMB_4282 {caseNum6} 5 {caseLabel6} @GYMDUMB_4296 {caseNum7} 6 {caseLabel7} @GYMDUMB_4310
switch_continued 7 {caseLabel1} @GYMDUMB_4324 {caseNum2} 8 {caseLabel2} @GYMDUMB_4338 {caseNum3} 9 {caseLabel3} @GYMDUMB_4352 {caseNum4} -1 {caseLabel4} @GYMDUMB_4366 {caseNum5} -1 {caseLabel5} @GYMDUMB_4366 {caseNum6} -1 {caseLabel6} @GYMDUMB_4366 {caseNum7} -1 {caseLabel7} @GYMDUMB_4366 {caseNum8} -1 {caseLabel8} @GYMDUMB_4366 {caseNum9} -1 {caseLabel9} @GYMDUMB_4366

:GYMDUMB_4226
$temp_dumb_weight = 20
goto @GYMDUMB_4366

:GYMDUMB_4240
$temp_dumb_weight = 30
goto @GYMDUMB_4366

:GYMDUMB_4254
$temp_dumb_weight = 40
goto @GYMDUMB_4366

:GYMDUMB_4268
$temp_dumb_weight = 50
goto @GYMDUMB_4366

:GYMDUMB_4282
$temp_dumb_weight = 60
goto @GYMDUMB_4366

:GYMDUMB_4296
$temp_dumb_weight = 70
goto @GYMDUMB_4366

:GYMDUMB_4310
$temp_dumb_weight = 80
goto @GYMDUMB_4366

:GYMDUMB_4324
$temp_dumb_weight = 90
goto @GYMDUMB_4366

:GYMDUMB_4338
$temp_dumb_weight = 100
goto @GYMDUMB_4366

:GYMDUMB_4352
$temp_dumb_weight = 110
goto @GYMDUMB_4366

:GYMDUMB_4366
$dumb_has_KD = get_int_stat StatId.HeaviestWeightDumbells
if 
  is_int_var_greater_than_int_var $temp_dumb_weight > $dumb_has_KD
goto_if_false @GYMDUMB_4399
set_int_stat StatId.HeaviestWeightDumbells {value} $temp_dumb_weight

:GYMDUMB_4399
$dumbellcamy1 = get_float_stat StatId.BodyMuscle
if 
  1000.0 > $dumbellcamy1
goto_if_false @GYMDUMB_4707
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_4455
$reps_dumbellfloat = 1.0

:GYMDUMB_4455
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_4483
$reps_dumbellfloat = 1.2

:GYMDUMB_4483
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_4511
$reps_dumbellfloat = 1.3

:GYMDUMB_4511
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_4539
$reps_dumbellfloat = 1.5

:GYMDUMB_4539
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_4567
$reps_dumbellfloat = 2.0

:GYMDUMB_4567
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_4595
$reps_dumbellfloat = 2.5

:GYMDUMB_4595
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_4623
$reps_dumbellfloat = 3.0

:GYMDUMB_4623
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_4651
$reps_dumbellfloat = 4.0

:GYMDUMB_4651
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_4679
$reps_dumbellfloat = 5.0

:GYMDUMB_4679
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_4707
$reps_dumbellfloat = 6.0

:GYMDUMB_4707
if 
  800.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5008
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_4756
$reps_dumbellfloat = 2.0

:GYMDUMB_4756
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_4784
$reps_dumbellfloat = 2.2

:GYMDUMB_4784
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_4812
$reps_dumbellfloat = 2.3

:GYMDUMB_4812
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_4840
$reps_dumbellfloat = 2.5

:GYMDUMB_4840
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_4868
$reps_dumbellfloat = 3.0

:GYMDUMB_4868
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_4896
$reps_dumbellfloat = 3.5

:GYMDUMB_4896
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_4924
$reps_dumbellfloat = 4.0

:GYMDUMB_4924
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_4952
$reps_dumbellfloat = 5.0

:GYMDUMB_4952
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_4980
$reps_dumbellfloat = 6.0

:GYMDUMB_4980
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5008
$reps_dumbellfloat = 7.0

:GYMDUMB_5008
if 
  600.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5309
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5057
$reps_dumbellfloat = 3.0

:GYMDUMB_5057
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5085
$reps_dumbellfloat = 3.2

:GYMDUMB_5085
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5113
$reps_dumbellfloat = 3.3

:GYMDUMB_5113
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5141
$reps_dumbellfloat = 3.5

:GYMDUMB_5141
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5169
$reps_dumbellfloat = 4.0

:GYMDUMB_5169
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5197
$reps_dumbellfloat = 4.5

:GYMDUMB_5197
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5225
$reps_dumbellfloat = 5.0

:GYMDUMB_5225
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5253
$reps_dumbellfloat = 6.0

:GYMDUMB_5253
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5281
$reps_dumbellfloat = 7.0

:GYMDUMB_5281
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5309
$reps_dumbellfloat = 8.0

:GYMDUMB_5309
if 
  400.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5610
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5358
$reps_dumbellfloat = 4.0

:GYMDUMB_5358
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5386
$reps_dumbellfloat = 4.2

:GYMDUMB_5386
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5414
$reps_dumbellfloat = 4.3

:GYMDUMB_5414
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5442
$reps_dumbellfloat = 4.5

:GYMDUMB_5442
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5470
$reps_dumbellfloat = 5.0

:GYMDUMB_5470
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5498
$reps_dumbellfloat = 5.5

:GYMDUMB_5498
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5526
$reps_dumbellfloat = 6.0

:GYMDUMB_5526
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5554
$reps_dumbellfloat = 7.0

:GYMDUMB_5554
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5582
$reps_dumbellfloat = 8.0

:GYMDUMB_5582
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5610
$reps_dumbellfloat = 9.0

:GYMDUMB_5610
if 
  200.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5911
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5659
$reps_dumbellfloat = 5.0

:GYMDUMB_5659
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5687
$reps_dumbellfloat = 5.2

:GYMDUMB_5687
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5715
$reps_dumbellfloat = 5.3

:GYMDUMB_5715
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5743
$reps_dumbellfloat = 5.5

:GYMDUMB_5743
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5771
$reps_dumbellfloat = 6.0

:GYMDUMB_5771
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5799
$reps_dumbellfloat = 6.5

:GYMDUMB_5799
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5827
$reps_dumbellfloat = 7.0

:GYMDUMB_5827
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5855
$reps_dumbellfloat = 7.5

:GYMDUMB_5855
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5883
$reps_dumbellfloat = 8.0

:GYMDUMB_5883
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5911
$reps_dumbellfloat = 8.5

:GYMDUMB_5911
if 
  $dumb_sfx == 8
goto_if_false @GYMDUMB_5958
$dumb_sfx = 0
increment_float_stat StatId.BodyMuscle {value} $reps_dumbellfloat
add_float_var_to_float_var $gym_final_month += $reps_dumbellfloat
goto @GYMDUMB_5980

:GYMDUMB_5958
increment_float_stat_no_message StatId.BodyMuscle {value} $reps_dumbellfloat
$dumb_sfx += 1
add_float_var_to_float_var $gym_final_month += $reps_dumbellfloat

:GYMDUMB_5980
if 
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_6025
$gym_month, $gym_final_day = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMDUMB_6025
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMDUMB_6062
decrement_float_stat StatId.Fat {value} 1.0

:GYMDUMB_6062
shake_pad PadId.Pad1 {time} 200 {intensity} 200
$temp_muscle_stat_dumb = set_char_say_context $scplayer {phrase} SpeechId.PainCjGrunt
task_play_anim $scplayer {animationName} "GYM_FREE_DOWN" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$animstate_flag = 4

:GYMDUMB_6138
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6461
if 
  $dumbell_resistance == 0.0
goto_if_false @GYMDUMB_6461
if 
  $animvalue == 0.0
goto_if_false @GYMDUMB_6461
cset_var_float_to_var_int $powerdumbell =# $weightdb
set_var_float_to_var_float $animationtobeplayed = $weight_dumbell
sub_float_var_from_float_var $animationtobeplayed -= $DUMBELL_TXT
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6293
task_play_anim $scplayer {animationName} "GYM_FREE_B" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6293
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_6380
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6380
task_play_anim $scplayer {animationName} "GYM_FREE_A" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6380
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_6454
task_play_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6454
$animstate_flag = 1

:GYMDUMB_6461
set_var_float_to_var_float $bar_animvalue = $dumbell_resistance
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6839
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMDUMB_6574
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMDUMB_6582

:GYMDUMB_6574
add_float_var_to_float_var $animvalue += $diffgym

:GYMDUMB_6582
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_6679
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_DOWN"
goto_if_false @GYMDUMB_6672
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_DOWN" {time} $tempfloat_gym

:GYMDUMB_6672
goto @GYMDUMB_6839

:GYMDUMB_6679
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_A"
goto_if_false @GYMDUMB_6727
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_A" {time} $animvalue

:GYMDUMB_6727
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_B"
goto_if_false @GYMDUMB_6775
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_B" {time} $animvalue

:GYMDUMB_6775
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH"
goto_if_false @GYMDUMB_6839
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {time} $animvalue

:GYMDUMB_6839
cset_var_int_to_var_float $powerbar =# $dumbell_resistance
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_7014
$powerbar = 0

:GYMDUMB_6881
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_6909
wait 0
goto @GYMDUMB_6881

:GYMDUMB_6909
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6976
task_play_anim $scplayer {animationName} "GYM_FREE_PUTDOWN" {animationFile} "FREEWEIGHTS" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMDUMB_6976
if 
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_7007
$gym_final_month = 0.0

:GYMDUMB_7007
$playerexercising_flag = 6

:GYMDUMB_7014
if and
  $playerexercising_flag == 6
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7878
if 
  $weightdb >= 0
goto_if_false @GYMDUMB_7661
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PUTDOWN"
goto_if_false @GYMDUMB_7654
$animframe_freegetoff = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"

:GYMDUMB_7115
if 
  $animframe_freegetoff <= 0.3
goto_if_false @GYMDUMB_7189
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7182
$animframe_freegetoff = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"

:GYMDUMB_7182
goto @GYMDUMB_7115

:GYMDUMB_7189
drop_object $scplayer {state} False
drop_second_object $scplayer {state} False
attach_object_to_object 25@ {handle} 0@ {xOffset} 0.0 {yOffset} 0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_object 26@ {handle} 0@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"
if and
  $animframe == 1.0
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7654
if 
  $weightdb > 4
goto_if_false @GYMDUMB_7402
task_play_anim $scplayer {animationName} "GYM_FREE_CELEBRATE" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMDUMB_7402
17@ = 0
$animstate_flag = 0
21@ = 1
$reps_dumbell = 1
$weightdb = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$dumbell_resistance = 0.0
$reps_dumbell = 1
$weightdb = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7542
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMDUMB_7542
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7579
set_float_stat StatId.Fat {value} 0.0

:GYMDUMB_7579
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7621
clear_onscreen_counter $weightdb
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMDUMB_7621
remove_animation "FREEWEIGHTS"
clear_mission_audio MissionAudioSlot.Slot4
delete_menu $tread_show_stat
clear_help 
$are_anims_loaded = 0

:GYMDUMB_7654
goto @GYMDUMB_7878

:GYMDUMB_7661
17@ = 0
$animstate_flag = 0
21@ = 1
$reps_dumbell = 1
$weightdb = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$dumbell_resistance = 0.0
$reps_dumbell = 1
$weightdb = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7801
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMDUMB_7801
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7838
set_float_stat StatId.Fat {value} 0.0

:GYMDUMB_7838
clear_onscreen_counter $weightdb
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
delete_menu $tread_show_stat
clear_help 
$are_anims_loaded = 0

:GYMDUMB_7878
goto @GYMDUMB_683
terminate_this_script 

//-------------External script 15 (BASKETB)---------------

:BBALL
script_name 'BBALL'
if 
  $bball_active <> 0
goto_if_false @BBALL_31
terminate_this_script 

:BBALL_31
16@ = 0
17@ = 0
18@ = 0
20@ = 0
22@ = 0
$bball_frame_count = 0
19@ = 0
21@ = 0
$bball_help = 0
if 
  16@ == -1
goto_if_false @BBALL_178
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$dumb_show_stat = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:BBALL_178
24@ = 0
if 
  $bball_unlocked <> 0
goto_if_false @BBALL_451
if 
  does_object_exist 0@
goto_if_false @BBALL_451
if and
  is_player_playing $player1
  $onmission == 0
goto_if_false @BBALL_451
if 
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
goto_if_false @BBALL_296
if 
  has_model_loaded #BSKBALL_LAX
goto_if_false @BBALL_289
23@ = -30
24@ = 1

:BBALL_289
goto @BBALL_451

:BBALL_296
if 
  does_object_have_this_model 0@ {modelId} #BSKBALLHUB_LAX01
goto_if_false @BBALL_350
if 
  has_model_loaded #BSKBALLHUB_LAX01
goto_if_false @BBALL_343
23@ = -31
24@ = 1

:BBALL_343
goto @BBALL_451

:BBALL_350
if 
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_404
if 
  has_model_loaded #VGSXREFBBALLNET
goto_if_false @BBALL_397
23@ = -32
24@ = 1

:BBALL_397
goto @BBALL_451

:BBALL_404
if 
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET2
goto_if_false @BBALL_451
if 
  has_model_loaded #VGSXREFBBALLNET2
goto_if_false @BBALL_451
23@ = -33
24@ = 1

:BBALL_451
if 
  24@ == 1
goto_if_false @BBALL_2137
switch_start 16@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_2130 {caseNum1} 0 {caseLabel1} @BBALL_532 {caseNum2} 1 {caseLabel2} @BBALL_732 {caseNum3} 2 {caseLabel3} @BBALL_1203 {caseNum4} 3 {caseLabel4} @BBALL_1731 {caseNum5} -1 {caseLabel5} @BBALL_2130 {caseNum6} -1 {caseLabel6} @BBALL_2130 {caseNum7} -1 {caseLabel7} @BBALL_2130

:BBALL_532
if 
  $bball_active == 0
goto_if_false @BBALL_718
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_711
if 
  not does_object_exist 1@
goto_if_false @BBALL_711
$bball_active = 1
if 
  has_model_loaded 23@
goto_if_false @BBALL_636
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1

:BBALL_636
$z += 1.0
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
19@ = 1
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
16@ += 1

:BBALL_711
goto @BBALL_725

:BBALL_718
gosub @BBALL_2162

:BBALL_725
goto @BBALL_2130

:BBALL_732
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_1177
if 
  does_object_exist 1@
goto_if_false @BBALL_1170
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1170
if 
  has_model_loaded 23@
goto_if_false @BBALL_1170
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_1130
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1123
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_1123
set_player_enter_car_button $player1 {enabled} False
print_help_forever 'BB_01'
16@ += 1

:BBALL_1123
goto @BBALL_1170

:BBALL_1130
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
$z += 1.0
set_object_coordinates 1@ {x} $x {y} $y {z} $z

:BBALL_1170
goto @BBALL_1196

:BBALL_1177
mark_object_as_no_longer_needed 1@
16@ = 0
$bball_active = 0

:BBALL_1196
goto @BBALL_2130

:BBALL_1203
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_1698
if 
  does_object_exist 1@
goto_if_false @BBALL_1691
if 
  has_model_loaded 23@
goto_if_false @BBALL_1691
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_1675
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1652
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_1629
if 
  20@ == 0
goto_if_false @BBALL_1598
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_1591
20@ = 1
clear_help 
gosub @BBALL_3448
16@ += 1

:BBALL_1591
goto @BBALL_1622

:BBALL_1598
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_1622
20@ = 0

:BBALL_1622
goto @BBALL_1645

:BBALL_1629
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1645
goto @BBALL_1668

:BBALL_1652
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1668
goto @BBALL_1691

:BBALL_1675
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1691
goto @BBALL_1724

:BBALL_1698
set_player_enter_car_button $player1 {enabled} True
mark_object_as_no_longer_needed 1@
$bball_active = 0
16@ = 0

:BBALL_1724
goto @BBALL_2130

:BBALL_1731
if 
  has_model_loaded 23@
goto_if_false @BBALL_2123
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_1914
if 
  6000 > TIMERB
goto_if_false @BBALL_1893
if and
  TIMERB > 0
  1000 > TIMERB
goto_if_false @BBALL_1879
print_help_forever 'BB_03'
TIMERB = 1000

:BBALL_1879
gosub @BBALL_4174
goto @BBALL_1907

:BBALL_1893
gosub @BBALL_4775
16@ = 1

:BBALL_1907
goto @BBALL_1949

:BBALL_1914
if 
  TIMERB > 1000
goto_if_false @BBALL_1935
clear_help 

:BBALL_1935
gosub @BBALL_4174
TIMERB = 0

:BBALL_1949
if 
  is_player_playing $player1
goto_if_false @BBALL_1997
if 
  has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.AnyWeapon
goto_if_false @BBALL_1997
gosub @BBALL_4775
16@ = 1

:BBALL_1997
if and
  17@ <> 10
  17@ <> 16
  17@ <> 17
  17@ <> 4
goto_if_false @BBALL_2123
if 
  20@ == 0
goto_if_false @BBALL_2099
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_2092
20@ = 1
gosub @BBALL_4775
16@ = 1

:BBALL_2092
goto @BBALL_2123

:BBALL_2099
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_2123
20@ = 0

:BBALL_2123
goto @BBALL_2130

:BBALL_2130
goto @BBALL_2151

:BBALL_2137
$bball_active = 0
gosub @BBALL_2162

:BBALL_2151
wait 0
goto @BBALL_178

:BBALL_2162
mark_object_as_no_longer_needed 1@
if 
  is_player_playing $player1
goto_if_false @BBALL_2208
if 
  $onmission == 0
goto_if_false @BBALL_2208
set_player_enter_car_button $player1 {enabled} True

:BBALL_2208
terminate_this_script 
return 
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BBALL_2237
$release_time += 0.01

:BBALL_2237
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BBALL_2262
$release_time += -0.01

:BBALL_2262
return 

:BBALL_2264
if 
  does_object_exist 1@
goto_if_false @BBALL_2618
if 
  is_object_attached 1@
goto_if_false @BBALL_2487
if 
  19@ == 1
goto_if_false @BBALL_2480
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
set_object_collision 1@ {state} True
19@ = 0

:BBALL_2480
goto @BBALL_2618

:BBALL_2487
if 
  19@ == 0
goto_if_false @BBALL_2618
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1

:BBALL_2618
return 

:BBALL_2620
if 
  does_object_exist 1@
goto_if_false @BBALL_3446
if 
  is_object_attached 1@
goto_if_false @BBALL_2843
if 
  19@ == 1
goto_if_false @BBALL_2836
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
set_object_collision 1@ {state} True
19@ = 0

:BBALL_2836
goto @BBALL_3446

:BBALL_2843
if 
  19@ == 0
goto_if_false @BBALL_3446
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_3151
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1
goto @BBALL_3446

:BBALL_3151
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} -0.3
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_3441
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1
goto @BBALL_3446

:BBALL_3441
delete_object 1@

:BBALL_3446
return 

:BBALL_3448
set_minigame_in_progress True
display_non_minigame_help_messages True
$release_time = 0.4
set_player_enter_car_button $player1 {enabled} False
if 
  is_player_playing $player1
goto_if_false @BBALL_3616
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_last_weapon_damage $scplayer
$bball_is_active = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @BBALL_3595
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
$bball_stored_weapon = 1
request_model 331

:BBALL_3561
if 
  not has_model_loaded 331
goto_if_false @BBALL_3588
wait 0
goto @BBALL_3561

:BBALL_3588
goto @BBALL_3602

:BBALL_3595
$bball_stored_weapon = 0

:BBALL_3602
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_cycle_weapon_button $player1 {enabled} False

:BBALL_3616
if 
  does_object_exist 1@
goto_if_false @BBALL_3639
freeze_object_position 1@ {state} True

:BBALL_3639
request_animation "BSKTBALL"
request_model #BBALL_INGAME
request_model #BBALL_COL
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1811

:BBALL_3668
if or
  not has_animation_loaded "BSKTBALL"
  not has_model_loaded #BBALL_INGAME
  not has_model_loaded #BBALL_COL
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BBALL_3716
wait 0
goto @BBALL_3668

:BBALL_3716
10@, 11@, 12@ = get_active_camera_coordinates 
13@, 14@, 15@ = get_active_camera_point_at 
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
set_var_float_to_lvar_float $z = 15@
sub_float_lvar_from_float_var $z -= 12@
$distance = get_distance_between_coords_3d 13@ {fromY} 14@ {fromZ} 15@ {toX} 10@ {toY} 11@ {toZ} 12@
div_float_var_by_float_var $x /= $distance
div_float_var_by_float_var $y /= $distance
div_float_var_by_float_var $z /= $distance
$x *= 10.0
$y *= 10.0
$z *= 10.0
set_lvar_float_to_lvar_float 13@ = 10@
add_float_var_to_float_lvar 13@ += $x
set_lvar_float_to_lvar_float 14@ = 11@
add_float_var_to_float_lvar 14@ += $y
set_lvar_float_to_lvar_float 15@ = 12@
add_float_var_to_float_lvar 15@ += $z
TIMERA = 0
$bball_help = 0
17@ = 10
$bball_frame_count = 1
if 
  is_player_playing $player1
goto_if_false @BBALL_3991
$x, $y, $z = get_char_coordinates $scplayer
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_var_float_to_var_float $bball_player_has_brassknuckle = $z

:BBALL_3991
8@ = get_object_heading 0@
if or
  10.0 > 8@
  8@ > 350.0
goto_if_false @BBALL_4037
$bball_court_z = 1

:BBALL_4037
if and
  8@ > 80.0
  100.0 > 8@
goto_if_false @BBALL_4075
$bball_court_z = 2

:BBALL_4075
if and
  8@ > 170.0
  190.0 > 8@
goto_if_false @BBALL_4113
$bball_court_z = 3

:BBALL_4113
if and
  8@ > 260.0
  280.0 > 8@
goto_if_false @BBALL_4151
$bball_court_z = 4

:BBALL_4151
set_ped_density_multiplier 0.2
set_car_density_multiplier 0.2
$bball_camera_type = 1
return 

:BBALL_4174
$anim_release_time += 1
if 
  $anim_release_time >= 30
goto_if_false @BBALL_4206
$anim_release_time = 0

:BBALL_4206
gosub @BBALL_15871
gosub @BBALL_17470
gosub @BBALL_5180
gosub @BBALL_11732
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @BBALL_4256
gosub @BBALL_20230

:BBALL_4256
if 
  3 > $bball_help
goto_if_false @BBALL_4499
if 
  $bball_help == 0
goto_if_false @BBALL_4335
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4321
print_help 'BB_02'

:BBALL_4321
$bball_help += 1
TIMERA = 0

:BBALL_4335
if and
  $bball_help == 1
  TIMERA > 10000
goto_if_false @BBALL_4404
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4390
print_help 'BB_07'

:BBALL_4390
TIMERA = 0
$bball_help += 1

:BBALL_4404
if and
  $bball_help == 2
  TIMERA > 5000
goto_if_false @BBALL_4499
if or
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_4484
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4484
print_help 'BB_09'

:BBALL_4484
TIMERA = 12000
$bball_help += 1

:BBALL_4499
if or
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_4626
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4626
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBALL_4602
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBALL_4595
$bball_r3_is_pressed = 1
start_new_script @BBCHAL 0@ 

:BBALL_4595
goto @BBALL_4626

:BBALL_4602
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBALL_4626
$bball_r3_is_pressed = 0

:BBALL_4626
if 
  $anim_release_time == 0
goto_if_false @BBALL_4773
if 
  does_object_exist 1@
goto_if_false @BBALL_4773
if 
  not is_object_attached 1@
goto_if_false @BBALL_4773
if 
  has_model_loaded 23@
goto_if_false @BBALL_4773
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 1
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_lvar_float 8@ = 4@
8@ -= 0.7
if 
  is_float_lvar_greater_than_float_var 8@ > $z
goto_if_false @BBALL_4773
set_object_coordinates 1@ {x} 2@ {y} 3@ {z} 4@

:BBALL_4773
return 

:BBALL_4775
if 
  is_player_playing $player1
goto_if_false @BBALL_5178
if 
  $bball_stored_weapon == 1
goto_if_false @BBALL_4830
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
$bball_stored_weapon = 0
mark_model_as_no_longer_needed 331

:BBALL_4830
set_current_char_weapon $scplayer {weaponType} $bball_is_active
set_player_cycle_weapon_button $player1 {enabled} True
clear_char_tasks $scplayer
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} True
if 
  does_object_exist 1@
goto_if_false @BBALL_4925
if 
  is_object_attached 1@
goto_if_false @BBALL_4925
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} True
gosub @BBALL_2620

:BBALL_4925
if 
  does_object_exist 1@
goto_if_false @BBALL_5065
if 
  has_model_loaded 23@
goto_if_false @BBALL_5005
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3

:BBALL_5005
if 
  not is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_5065
$z += 1.0
set_object_coordinates 1@ {x} $x {y} $y {z} $z

:BBALL_5065
if 
  does_object_exist $dumb_show_stat
goto_if_false @BBALL_5116
if 
  22@ == 1
goto_if_false @BBALL_5111
detach_char_from_car $scplayer
22@ = 0

:BBALL_5111
delete_object $dumb_show_stat

:BBALL_5116
restore_camera 
$bball_frame_count = 0
remove_animation "BSKTBALL"
mark_model_as_no_longer_needed #BBALL_INGAME
mark_model_as_no_longer_needed #BBALL_COL
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
$bball_camera_type = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_minigame_in_progress False

:BBALL_5178
return 

:BBALL_5180
if and
  is_player_playing $player1
  has_model_loaded 23@
goto_if_false @BBALL_11722
switch_start 17@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @BBALL_11722 {caseNum1} 1 {caseLabel1} @BBALL_6264 {caseNum2} 2 {caseLabel2} @BBALL_6797 {caseNum3} 3 {caseLabel3} @BBALL_7207 {caseNum4} 4 {caseLabel4} @BBALL_8203 {caseNum5} 5 {caseLabel5} @BBALL_8694 {caseNum6} 6 {caseLabel6} @BBALL_8868 {caseNum7} 7 {caseLabel7} @BBALL_10836
switch_continued 8 {caseLabel1} @BBALL_11026 {caseNum2} 9 {caseLabel2} @BBALL_11226 {caseNum3} 10 {caseLabel3} @BBALL_11240 {caseNum4} 11 {caseLabel4} @BBALL_8013 {caseNum5} 12 {caseLabel5} @BBALL_11233 {caseNum6} 13 {caseLabel6} @BBALL_8818 {caseNum7} 14 {caseLabel7} @BBALL_5394 {caseNum8} 15 {caseLabel8} @BBALL_5828 {caseNum9} 16 {caseLabel9} @BBALL_9420
switch_continued 17 {caseLabel1} @BBALL_10135 {caseNum2} -1 {caseLabel2} @BBALL_11722 {caseNum3} -1 {caseLabel3} @BBALL_11722 {caseNum4} -1 {caseLabel4} @BBALL_11722 {caseNum5} -1 {caseLabel5} @BBALL_11722 {caseNum6} -1 {caseLabel6} @BBALL_11722 {caseNum7} -1 {caseLabel7} @BBALL_11722 {caseNum8} -1 {caseLabel8} @BBALL_11722 {caseNum9} -1 {caseLabel9} @BBALL_11722

:BBALL_5394
if 
  18@ <> 14
goto_if_false @BBALL_5658
24@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_5510
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  8@ > 0.9
goto_if_false @BBALL_5510
24@ = 1
$hoop_direction = 0

:BBALL_5510
if 
  24@ == 1
goto_if_false @BBALL_5644
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLE" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_5651

:BBALL_5644
goto @BBALL_11730

:BBALL_5651
goto @BBALL_5821

:BBALL_5658
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_5708
17@ = 11
goto @BBALL_5180
goto @BBALL_5821

:BBALL_5708
if 
  $hoop_direction == 0
goto_if_false @BBALL_5768
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE"
goto_if_false @BBALL_5761
$hoop_direction += 1

:BBALL_5761
goto @BBALL_5821

:BBALL_5768
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_5821
17@ = 11
$hoop_direction = 0
goto @BBALL_5180

:BBALL_5821
goto @BBALL_11722

:BBALL_5828
if 
  18@ <> 15
goto_if_false @BBALL_6093
24@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_5944
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  8@ > 0.9
goto_if_false @BBALL_5944
$roll_along_back_flag = 0
24@ = 1

:BBALL_5944
if 
  24@ == 1
goto_if_false @BBALL_6079
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLE2" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_6086

:BBALL_6079
goto @BBALL_11730

:BBALL_6086
goto @BBALL_6257

:BBALL_6093
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_6143
17@ = 11
goto @BBALL_5180
goto @BBALL_6257

:BBALL_6143
if 
  $roll_along_back_flag == 0
goto_if_false @BBALL_6204
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE2"
goto_if_false @BBALL_6197
$roll_along_back_flag += 1

:BBALL_6197
goto @BBALL_6257

:BBALL_6204
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6257
17@ = 11
$roll_along_back_flag = 0
goto @BBALL_5180

:BBALL_6257
goto @BBALL_11722

:BBALL_6264
if or
  18@ == 11
  18@ == 2
  18@ == 3
  18@ == 10
goto_if_false @BBALL_6697
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_6683
$spin_on_finger_flag = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_6478
$walk_with_ball_flag = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"

:BBALL_6478
26@ = open_sequence_task 
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6617
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK_START" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
$spin_on_finger_flag = 1
goto @BBALL_6658

:BBALL_6617
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1

:BBALL_6658
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_6690

:BBALL_6683
goto @BBALL_11730

:BBALL_6690
goto @BBALL_6790

:BBALL_6697
if 
  $spin_on_finger_flag == 0
goto_if_false @BBALL_6790
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_6790
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
set_char_anim_current_time $scplayer {animationName} "BBALL_WALK" {time} $walk_with_ball_flag
$spin_on_finger_flag += 1

:BBALL_6790
goto @BBALL_11722

:BBALL_6797
if or
  18@ == 11
  18@ == 1
  18@ == 3
  18@ == 10
goto_if_false @BBALL_7129
if 
  18@ == 11
goto_if_false @BBALL_6868
17@ = 1
goto @BBALL_5180

:BBALL_6868
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_7115
$walk_with_ball_start_position = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_7045
$run_with_ball_flag = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"

:BBALL_7045
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_RUN" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_7122

:BBALL_7115
goto @BBALL_11730

:BBALL_7122
goto @BBALL_7200

:BBALL_7129
if 
  $walk_with_ball_start_position == 0
goto_if_false @BBALL_7200
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7200
set_char_anim_current_time $scplayer {animationName} "BBALL_RUN" {time} $run_with_ball_flag
$walk_with_ball_start_position += 1

:BBALL_7200
goto @BBALL_11722

:BBALL_7207
if 
  18@ <> 3
goto_if_false @BBALL_7910
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7488
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7488
26@ = open_sequence_task 
if 
  0.5 > 8@
goto_if_false @BBALL_7378
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_7425

:BBALL_7378
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_7425
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_7488
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_7754
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_7754
26@ = open_sequence_task 
if 
  0.5 > 8@
goto_if_false @BBALL_7644
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_7691

:BBALL_7644
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_7691
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_7754
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK_START"
goto_if_false @BBALL_7903
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_7903
goto @BBALL_8006

:BBALL_7910
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_7960
17@ = 11
goto @BBALL_11730
goto @BBALL_8006

:BBALL_7960
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_8006
17@ = 11
goto @BBALL_11730

:BBALL_8006
goto @BBALL_11722

:BBALL_8013
if 
  18@ <> 11
goto_if_false @BBALL_8099
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8099
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8196
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8196
goto @BBALL_11722

:BBALL_8203
if 
  18@ <> 4
goto_if_false @BBALL_8596
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = get_heading_from_vector_2d 5@ {y} 6@
set_var_float_to_var_float $bb_new_look_z = $heading
26@ = open_sequence_task 
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
task_look_at_coord -1 {x} $x {y} $y {z} $z {time} 2000
if 
  18@ == 2
goto_if_false @BBALL_8525
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_8403
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"

:BBALL_8403
if 
  0.5 > 8@
goto_if_false @BBALL_8478
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_8525

:BBALL_8478
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_8525
task_play_anim_non_interruptable -1 {animationName} "BBALL_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_8687

:BBALL_8596
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_8687
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  is_float_lvar_greater_than_float_var 8@ > $release_time
goto_if_false @BBALL_8687
17@ = 6
goto @BBALL_11730

:BBALL_8687
goto @BBALL_11722

:BBALL_8694
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_END"
goto_if_false @BBALL_8811
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_JUMP_CANCEL" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
17@ = 13
goto @BBALL_11730

:BBALL_8811
goto @BBALL_11722

:BBALL_8818
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8861
17@ = 11
goto @BBALL_11730

:BBALL_8861
goto @BBALL_11722

:BBALL_8868
if 
  18@ <> 6
goto_if_false @BBALL_9330
if 
  is_object_attached 1@
goto_if_false @BBALL_9323
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2264
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.04 {yOffset} 0.694 {zOffset} 1.75
set_object_coordinates 1@ {x} $x {y} $y {z} $z
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
cset_var_int_to_lvar_float $bball_shot_dist =# 8@
set_lvar_float_to_var_float 7@ = $z
cset_lvar_float_to_var_int 7@ =# $bball_shot_dist
set_lvar_float_to_lvar_float 9@ = 8@
sub_float_lvar_from_float_lvar 9@ -= 7@
9@ *= 10.0
cset_var_int_to_lvar_float $bball_shot_dist_decimal =# 9@
if 
  8@ > 20.0
goto_if_false @BBALL_9096
8@ = 20.0

:BBALL_9096
8@ /= 20.0
8@ *= 5.0
9@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
if 
  9@ > 15.0
goto_if_false @BBALL_9164
9@ = 15.0

:BBALL_9164
mult_float_var_by_float_lvar $char_obj *= 9@
$x, $y, $z = get_object_coordinates 1@
9@ = get_float_stat StatId.BodyMuscle
9@ /= 1000.0
9@ += 1.0
9@ *= 0.15
if 
  is_float_lvar_greater_than_float_var 9@ > $char_obj
goto_if_false @BBALL_9286
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 0 0@ 
goto @BBALL_9323

:BBALL_9286
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 1 0@ 

:BBALL_9323
goto @BBALL_9413

:BBALL_9330
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_9413
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_9413
set_player_control $player1 {state} True
17@ = 12
goto @BBALL_11730

:BBALL_9413
goto @BBALL_11722

:BBALL_9420
if 
  18@ <> 16
goto_if_false @BBALL_9890
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
if 
  8@ > 0.01
goto_if_false @BBALL_9554
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@

:BBALL_9554
5@ *= 0.01
6@ *= 0.01
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_var_float_to_lvar_float $z = 4@
$z -= 1.9
set_var_float_to_var_float $p_desired_heading = $x
set_var_float_to_var_float $bb_desired_x = $y
set_var_float_to_var_float $bb_desired_y = $z
5@ *= -1.0
6@ *= -1.0
$heading = get_heading_from_vector_2d 5@ {y} 6@
set_var_float_to_var_float $bb_new_look_z = $heading
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_LNCH" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_GLI" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_LND" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_10128

:BBALL_9890
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_10087
if 
  not does_object_exist $dumb_show_stat
goto_if_false @BBALL_10087
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
$run_with_ball_start_position = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
$bb_desired_z = 0.0
$heading = get_char_heading $scplayer
$dumb_show_stat = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
set_object_heading $dumb_show_stat {heading} $heading
set_object_collision $dumb_show_stat {state} False
set_object_visible $dumb_show_stat {state} False
freeze_object_position $dumb_show_stat {state} True
attach_char_to_object $scplayer {handle} $dumb_show_stat {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
22@ = 1

:BBALL_10087
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_10128
17@ = 17
goto @BBALL_11730

:BBALL_10128
goto @BBALL_11722

:BBALL_10135
if 
  18@ <> 17
goto_if_false @BBALL_10543
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_10522
if 
  is_object_attached 1@
goto_if_false @BBALL_10515
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_O"
goto_if_false @BBALL_10405
8@ = get_object_anim_current_time 1@ {animationName} "BBALL_DNK_O"
if 
  8@ > 0.9
goto_if_false @BBALL_10384
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2264
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
$z += -0.5
set_object_coordinates 1@ {x} $x {y} $y {z} $z
freeze_object_position 1@ {state} False
set_object_collision 1@ {state} True
set_object_dynamic 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
goto @BBALL_10398

:BBALL_10384
18@ = 0
goto @BBALL_11730

:BBALL_10398
goto @BBALL_10515

:BBALL_10405
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2264
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
$z += -0.5
set_object_coordinates 1@ {x} $x {y} $y {z} $z
freeze_object_position 1@ {state} False
set_object_collision 1@ {state} True
set_object_dynamic 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1

:BBALL_10515
goto @BBALL_10536

:BBALL_10522
$bb_desired_y = get_ground_z_for_3d_coord $p_desired_heading {y} $bb_desired_x {z} $bb_desired_y

:BBALL_10536
goto @BBALL_10829

:BBALL_10543
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LNCH"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_10721
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_10714
if 
  does_object_exist $dumb_show_stat
goto_if_false @BBALL_10693
detach_char_from_car $scplayer
delete_object $dumb_show_stat
22@ = 0

:BBALL_10693
set_player_control $player1 {state} True
17@ = 12
goto @BBALL_11730

:BBALL_10714
goto @BBALL_10829

:BBALL_10721
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_10829
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
set_var_float_to_var_float $p_desired_heading = $x
set_var_float_to_var_float $bb_desired_x = $y
set_var_float_to_var_float $bb_desired_y = $z

:BBALL_10829
goto @BBALL_11722

:BBALL_10836
if 
  18@ <> 7
goto_if_false @BBALL_10922
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_10922
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11019
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11019
goto @BBALL_11722

:BBALL_11026
if 
  18@ <> 8
goto_if_false @BBALL_11117
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11117
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11219
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11219
goto @BBALL_11722

:BBALL_11226
goto @BBALL_11722

:BBALL_11233
goto @BBALL_11722

:BBALL_11240
if 
  18@ <> 10
goto_if_false @BBALL_11619
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 1@
goto_if_false @BBALL_11324
2@, 3@, 4@ = get_object_coordinates 1@

:BBALL_11324
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@
5@ *= 0.5
6@ *= 0.5
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = get_heading_from_vector_2d 5@ {y} 6@
26@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} $heading {radius} -1.0 {animationName} "BBALL_PICKUP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_11715

:BBALL_11619
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11669
17@ = 11
goto @BBALL_11730
goto @BBALL_11715

:BBALL_11669
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_11715
17@ = 11
goto @BBALL_11730

:BBALL_11715
goto @BBALL_11722

:BBALL_11722
set_lvar_int_to_lvar_int 18@ = 17@

:BBALL_11730
return 

:BBALL_11732
if 
  is_player_playing $player1
goto_if_false @BBALL_15869
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_12082
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_11917
if 
  8@ > 0.45
goto_if_false @BBALL_11892
if 
  27@ <> 1
goto_if_false @BBALL_11885
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 1

:BBALL_11885
goto @BBALL_11917

:BBALL_11892
if 
  27@ == 1
goto_if_false @BBALL_11917
27@ = 0

:BBALL_11917
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12082
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLELOOP_O"
goto_if_false @BBALL_12003
set_object_anim_current_time 1@ {animationName} "BBALL_IDLELOOP_O" {time} 8@
goto @BBALL_12082

:BBALL_12003
if 
play_object_anim 1@ {animationName} "BBALL_IDLELOOP_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} True {loop} False
goto_if_false @BBALL_12082
set_object_anim_current_time 1@ {animationName} "BBALL_IDLELOOP_O" {time} 8@

:BBALL_12082
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE"
goto_if_false @BBALL_12365
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLE"
if 
  8@ > 0.8767
goto_if_false @BBALL_12191
if 
  27@ <> 2
goto_if_false @BBALL_12184
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 2

:BBALL_12184
goto @BBALL_12216

:BBALL_12191
if 
  27@ == 2
goto_if_false @BBALL_12216
27@ = 0

:BBALL_12216
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12365
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLE_O"
goto_if_false @BBALL_12294
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE_O" {time} 8@
goto @BBALL_12365

:BBALL_12294
if 
play_object_anim 1@ {animationName} "BBALL_IDLE_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_12365
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE_O" {time} 8@

:BBALL_12365
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE2"
goto_if_false @BBALL_12568
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLE2"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12568
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLE2_O"
goto_if_false @BBALL_12495
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE2_O" {time} 8@
goto @BBALL_12568

:BBALL_12495
if 
play_object_anim 1@ {animationName} "BBALL_IDLE2_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_12568
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE2_O" {time} 8@

:BBALL_12568
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_12757
if 
  is_object_attached 1@
goto_if_false @BBALL_12757
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12757
if 
  is_object_playing_anim 1@ {animationName} "BBALL_JUMP_SHOT_O"
goto_if_false @BBALL_12703
goto @BBALL_12757

:BBALL_12703
if 
play_object_anim 1@ {animationName} "BBALL_JUMP_SHOT_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_12757

:BBALL_12757
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_CANCEL"
goto_if_false @BBALL_12996
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_CANCEL"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12996
if 
  is_object_playing_anim 1@ {animationName} "BBALL_JUMP_CANCEL_O"
goto_if_false @BBALL_12911
set_object_anim_current_time 1@ {animationName} "BBALL_JUMP_CANCEL_O" {time} 8@
goto @BBALL_12996

:BBALL_12911
if 
play_object_anim 1@ {animationName} "BBALL_JUMP_CANCEL_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_12996
set_object_anim_current_time 1@ {animationName} "BBALL_JUMP_CANCEL_O" {time} 8@

:BBALL_12996
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
goto_if_false @BBALL_13359
if 
  not is_object_attached 1@
goto_if_false @BBALL_13094
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
gosub @BBALL_2264
goto @BBALL_13359

:BBALL_13094
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_PICKUP"
if 
  8@ > 0.836
goto_if_false @BBALL_13177
if 
  27@ <> 3
goto_if_false @BBALL_13170
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 3

:BBALL_13170
goto @BBALL_13202

:BBALL_13177
if 
  27@ == 3
goto_if_false @BBALL_13202
27@ = 0

:BBALL_13202
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13359
if 
  is_object_playing_anim 1@ {animationName} "BBALL_PICKUP_O"
goto_if_false @BBALL_13284
set_object_anim_current_time 1@ {animationName} "BBALL_PICKUP_O" {time} 8@
goto @BBALL_13359

:BBALL_13284
if 
play_object_anim 1@ {animationName} "BBALL_PICKUP_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_13359
set_object_anim_current_time 1@ {animationName} "BBALL_PICKUP_O" {time} 8@

:BBALL_13359
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_13704
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"
if 
  8@ > 0.222
goto_if_false @BBALL_13527
if 
  0.74 > 8@
goto_if_false @BBALL_13487
if 
  27@ <> 4
goto_if_false @BBALL_13480
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 4

:BBALL_13480
goto @BBALL_13520

:BBALL_13487
if 
  27@ <> 5
goto_if_false @BBALL_13520
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 5

:BBALL_13520
goto @BBALL_13559

:BBALL_13527
if or
  27@ == 4
  27@ == 5
goto_if_false @BBALL_13559
27@ = 0

:BBALL_13559
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13704
if 
  is_object_playing_anim 1@ {animationName} "BBALL_RUN_O"
goto_if_false @BBALL_13635
set_object_anim_current_time 1@ {animationName} "BBALL_RUN_O" {time} 8@
goto @BBALL_13704

:BBALL_13635
if 
play_object_anim 1@ {animationName} "BBALL_RUN_O" {animationFile} "BSKTBALL" {frameDelta} 8.0 {lockF} True {loop} False
goto_if_false @BBALL_13704
set_object_anim_current_time 1@ {animationName} "BBALL_RUN_O" {time} 8@

:BBALL_13704
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
goto_if_false @BBALL_13937
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_SKIDSTOP_L"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13937
if 
  is_object_playing_anim 1@ {animationName} "BBALL_SKIDSTOP_L_O"
goto_if_false @BBALL_13854
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_L_O" {time} 8@
goto @BBALL_13937

:BBALL_13854
if 
play_object_anim 1@ {animationName} "BBALL_SKIDSTOP_L_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_13937
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_L_O" {time} 8@

:BBALL_13937
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
goto_if_false @BBALL_14170
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_SKIDSTOP_R"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14170
if 
  is_object_playing_anim 1@ {animationName} "BBALL_SKIDSTOP_R_O"
goto_if_false @BBALL_14087
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_R_O" {time} 8@
goto @BBALL_14170

:BBALL_14087
if 
play_object_anim 1@ {animationName} "BBALL_SKIDSTOP_R_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14170
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_R_O" {time} 8@

:BBALL_14170
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
goto_if_false @BBALL_14403
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALKSTOP_L"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14403
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALKSTOP_L_O"
goto_if_false @BBALL_14320
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_L_O" {time} 8@
goto @BBALL_14403

:BBALL_14320
if 
play_object_anim 1@ {animationName} "BBALL_WALKSTOP_L_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14403
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_L_O" {time} 8@

:BBALL_14403
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_14636
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALKSTOP_R"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14636
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALKSTOP_R_O"
goto_if_false @BBALL_14553
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_R_O" {time} 8@
goto @BBALL_14636

:BBALL_14553
if 
play_object_anim 1@ {animationName} "BBALL_WALKSTOP_R_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14636
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_R_O" {time} 8@

:BBALL_14636
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_15014
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_14865
if 
  8@ > 0.218
goto_if_false @BBALL_14833
if 
  0.718 > 8@
goto_if_false @BBALL_14793
if 
  27@ <> 6
goto_if_false @BBALL_14786
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 6

:BBALL_14786
goto @BBALL_14826

:BBALL_14793
if 
  27@ <> 7
goto_if_false @BBALL_14826
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 7

:BBALL_14826
goto @BBALL_14865

:BBALL_14833
if or
  27@ == 6
  27@ == 7
goto_if_false @BBALL_14865
27@ = 0

:BBALL_14865
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15014
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALK_O"
goto_if_false @BBALL_14943
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_O" {time} 8@
goto @BBALL_15014

:BBALL_14943
if 
play_object_anim 1@ {animationName} "BBALL_WALK_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} True {loop} False
goto_if_false @BBALL_15014
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_O" {time} 8@

:BBALL_15014
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK_START"
goto_if_false @BBALL_15247
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK_START"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15247
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALK_START_O"
goto_if_false @BBALL_15164
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_START_O" {time} 8@
goto @BBALL_15247

:BBALL_15164
if 
play_object_anim 1@ {animationName} "BBALL_WALK_START_O" {animationFile} "BSKTBALL" {frameDelta} 8.0 {lockF} False {loop} True
goto_if_false @BBALL_15247
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_START_O" {time} 8@

:BBALL_15247
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LNCH"
goto_if_false @BBALL_15468
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK_LNCH"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15468
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_LNCH_O"
goto_if_false @BBALL_15389
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_LNCH_O" {time} 8@
goto @BBALL_15468

:BBALL_15389
if 
play_object_anim 1@ {animationName} "BBALL_DNK_LNCH_O" {animationFile} "BSKTBALL" {frameDelta} 4.0 {lockF} False {loop} True
goto_if_false @BBALL_15468
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_LNCH_O" {time} 8@

:BBALL_15468
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_15683
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK_GLI"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15683
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_GLI_O"
goto_if_false @BBALL_15606
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} 8@
goto @BBALL_15683

:BBALL_15606
if 
play_object_anim 1@ {animationName} "BBALL_DNK_GLI_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_15683
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} 8@

:BBALL_15683
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_15869
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK"
if 
  0.2 > 8@
goto_if_false @BBALL_15869
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15869
if 
  is_object_attached 1@
goto_if_false @BBALL_15869
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_O"
goto_if_false @BBALL_15821
goto @BBALL_15869

:BBALL_15821
if 
play_object_anim 1@ {animationName} "BBALL_DNK_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_15869

:BBALL_15869
return 

:BBALL_15871
if and
  is_player_playing $player1
  has_model_loaded 23@
goto_if_false @BBALL_17468
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_object_coordinates 0@
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
8@, 8@, $bb_new_camera_y = get_level_design_coords_for_object 0@ {nth} 0
$bb_new_camera_y += -1.0
switch_start $bball_court_z {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_16805 {caseNum1} 1 {caseLabel1} @BBALL_16025 {caseNum2} 2 {caseLabel2} @BBALL_16220 {caseNum3} 3 {caseLabel3} @BBALL_16415 {caseNum4} 4 {caseLabel4} @BBALL_16610 {caseNum5} -1 {caseLabel5} @BBALL_16805 {caseNum6} -1 {caseLabel6} @BBALL_16805 {caseNum7} -1 {caseLabel7} @BBALL_16805

:BBALL_16025
set_var_float_to_lvar_float $bb_cam_vec_z = 2@
$bb_cam_vec_z += 0.2
set_var_float_to_var_float $bb_new_camera_x = $y
$bb_new_camera_x += 5.0
6@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 6@
goto_if_false @BBALL_16098
set_var_float_to_lvar_float $bb_new_camera_x = 6@

:BBALL_16098
set_lvar_float_to_lvar_float 8@ = 3@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_new_camera_x
goto_if_false @BBALL_16143
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_16143
set_lvar_float_to_lvar_float 8@ = 6@
sub_float_lvar_from_float_lvar 8@ -= 3@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $bb_new_camera_x
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16220
set_var_float_to_var_float $bb_cam_vec_z = $x
$bb_cam_vec_z -= 5.0
set_var_float_to_lvar_float $bb_new_camera_x = 3@
$bb_new_camera_x += 0.2
5@ += -5.0
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_cam_vec_z
goto_if_false @BBALL_16293
set_var_float_to_lvar_float $bb_cam_vec_z = 5@

:BBALL_16293
set_lvar_float_to_lvar_float 8@ = 2@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_cam_vec_z > 8@
goto_if_false @BBALL_16338
set_var_float_to_lvar_float $bb_cam_vec_z = 8@

:BBALL_16338
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_lvar_from_float_lvar 8@ -= 5@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_cam_vec_z
sub_float_lvar_from_float_lvar 9@ -= 5@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16415
set_var_float_to_lvar_float $bb_cam_vec_z = 2@
$bb_cam_vec_z -= 0.2
set_var_float_to_var_float $bb_new_camera_x = $y
$bb_new_camera_x -= 5.0
6@ += -5.0
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_camera_x
goto_if_false @BBALL_16488
set_var_float_to_lvar_float $bb_new_camera_x = 6@

:BBALL_16488
set_lvar_float_to_lvar_float 8@ = 3@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 8@
goto_if_false @BBALL_16533
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_16533
set_lvar_float_to_lvar_float 8@ = 3@
sub_float_lvar_from_float_lvar 8@ -= 6@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_new_camera_x
sub_float_lvar_from_float_lvar 9@ -= 6@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16610
set_var_float_to_var_float $bb_cam_vec_z = $x
$bb_cam_vec_z += 5.0
set_var_float_to_lvar_float $bb_new_camera_x = 3@
$bb_new_camera_x -= 0.2
5@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_cam_vec_z > 5@
goto_if_false @BBALL_16683
set_var_float_to_lvar_float $bb_cam_vec_z = 5@

:BBALL_16683
set_lvar_float_to_lvar_float 8@ = 2@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_cam_vec_z
goto_if_false @BBALL_16728
set_var_float_to_lvar_float $bb_cam_vec_z = 8@

:BBALL_16728
set_lvar_float_to_lvar_float 8@ = 5@
sub_float_lvar_from_float_lvar 8@ -= 2@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 5@
sub_float_var_from_float_lvar 9@ -= $bb_cam_vec_z
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16805
set_var_float_to_lvar_float $dunk_slide_distance = 2@
sub_float_var_from_float_var $dunk_slide_distance -= $x
set_var_float_to_lvar_float $bb_cam_vec_x = 3@
sub_float_var_from_float_var $bb_cam_vec_x -= $y
set_var_float_to_lvar_float $bb_cam_vec_y = 4@
sub_float_var_from_float_var $bb_cam_vec_y -= $z
mult_float_var_by_float_lvar $dunk_slide_distance *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_x *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_y *= 9@
set_var_float_to_var_float $bb_new_camera_z = $x
add_float_var_to_float_var $bb_new_camera_z += $dunk_slide_distance
set_var_float_to_var_float $bb_new_look_x = $y
add_float_var_to_float_var $bb_new_look_x += $bb_cam_vec_x
set_var_float_to_var_float $bb_new_look_y = $z
add_float_var_to_float_var $bb_new_look_y += $bb_cam_vec_y
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_float_lvar_greater_than_float_lvar 2@ > 5@
goto_if_false @BBALL_17037
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_z > 2@
goto_if_false @BBALL_17003
set_var_float_to_lvar_float $bb_new_camera_z = 2@

:BBALL_17003
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_new_camera_z
goto_if_false @BBALL_17030
set_var_float_to_lvar_float $bb_new_camera_z = 5@

:BBALL_17030
goto @BBALL_17091

:BBALL_17037
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_z > 5@
goto_if_false @BBALL_17064
set_var_float_to_lvar_float $bb_new_camera_z = 5@

:BBALL_17064
if 
  is_float_lvar_greater_than_float_var 2@ > $bb_new_camera_z
goto_if_false @BBALL_17091
set_var_float_to_lvar_float $bb_new_camera_z = 2@

:BBALL_17091
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @BBALL_17171
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 3@
goto_if_false @BBALL_17137
set_var_float_to_lvar_float $bb_new_look_x = 3@

:BBALL_17137
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_look_x
goto_if_false @BBALL_17164
set_var_float_to_lvar_float $bb_new_look_x = 6@

:BBALL_17164
goto @BBALL_17225

:BBALL_17171
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 6@
goto_if_false @BBALL_17198
set_var_float_to_lvar_float $bb_new_look_x = 6@

:BBALL_17198
if 
  is_float_lvar_greater_than_float_var 3@ > $bb_new_look_x
goto_if_false @BBALL_17225
set_var_float_to_lvar_float $bb_new_look_x = 3@

:BBALL_17225
set_var_float_to_var_float $dunk_slide_distance = $bb_cam_vec_z
sub_float_lvar_from_float_var $dunk_slide_distance -= 10@
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_camera_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 11@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_camera_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 12@
$dunk_slide_distance *= 0.25
$bb_cam_vec_x *= 0.25
$bb_cam_vec_y *= 0.25
add_float_var_to_float_lvar 10@ += $dunk_slide_distance
add_float_var_to_float_lvar 11@ += $bb_cam_vec_x
add_float_var_to_float_lvar 12@ += $bb_cam_vec_y
set_var_float_to_var_float $dunk_slide_distance = $bb_new_camera_z
sub_float_lvar_from_float_var $dunk_slide_distance -= 13@
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_look_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 14@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_look_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 15@
$dunk_slide_distance *= 0.1
$bb_cam_vec_x *= 0.1
$bb_cam_vec_y *= 0.1
add_float_var_to_float_lvar 13@ += $dunk_slide_distance
add_float_var_to_float_lvar 14@ += $bb_cam_vec_x
add_float_var_to_float_lvar 15@ += $bb_cam_vec_y
set_fixed_camera_position 10@ {y} 11@ {z} 12@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 13@ {y} 14@ {z} 15@ {switchStyle} SwitchType.JumpCut

:BBALL_17468
return 

:BBALL_17470
if and
  is_object_attached 1@
  has_model_loaded 23@
goto_if_false @BBALL_19037
24@ = 1
if or
  17@ == 10
  17@ == 4
  17@ == 6
  17@ == 16
  17@ == 17
goto_if_false @BBALL_17551
24@ = 0

:BBALL_17551
if or
  17@ == 14
  17@ == 15
goto_if_false @BBALL_17583
24@ = 0

:BBALL_17583
if 
  24@ == 1
goto_if_false @BBALL_18663
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @BBALL_18011
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= -128.0
set_lvar_float_to_var_float 8@ = $x
mult_float_lvar_by_float_var 8@ *= $x
set_lvar_float_to_var_float 9@ = $y
mult_float_lvar_by_float_var 9@ *= $y
add_float_lvar_to_float_lvar 8@ += 9@
8@ = sqrt 8@
$bb_new_look_z = get_heading_from_vector_2d $x {y} $y
if 
  $bball_frame_count == 1
goto_if_false @BBALL_17792
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
goto @BBALL_17862

:BBALL_17792
2@, 3@, 4@ = get_active_camera_coordinates 
5@, 6@, 7@ = get_active_camera_point_at 
set_var_float_to_lvar_float $x = 5@
sub_float_lvar_from_float_var $x -= 2@
set_var_float_to_lvar_float $y = 6@
sub_float_lvar_from_float_var $y -= 3@
set_var_float_to_lvar_float $z = 7@
sub_float_lvar_from_float_var $z -= 4@

:BBALL_17862
9@ = get_heading_from_vector_2d $x {y} $y
add_float_lvar_to_float_var $bb_new_look_z += 9@
if 
  8@ > 0.3
goto_if_false @BBALL_17951
if 
  0.8 > 8@
goto_if_false @BBALL_17937
17@ = 1
goto @BBALL_17944

:BBALL_17937
17@ = 2

:BBALL_17944
goto @BBALL_18004

:BBALL_17951
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18004
17@ = 3
18@ = 0

:BBALL_18004
goto @BBALL_18064

:BBALL_18011
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18064
17@ = 3
18@ = 0

:BBALL_18064
if 
  21@ == 0
goto_if_false @BBALL_18558
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_18519
if 
  18@ <> 6
goto_if_false @BBALL_18512
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
if 
  is_player_playing $player1
goto_if_false @BBALL_18163
2@, 3@, 4@ = get_char_coordinates $scplayer

:BBALL_18163
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
$x, $y, $z = get_object_coordinates 0@
2@, 3@, 4@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $y
set_lvar_float_to_lvar_float 2@ = 8@
set_lvar_float_to_lvar_float 3@ = 9@
8@ = get_angle_between_2d_vectors 5@ {y1} 6@ {x2} 2@ {y2} 3@
if 
  90.0 > 8@
goto_if_false @BBALL_18512
24@ = 0
if 
  18@ == 2
goto_if_false @BBALL_18466
8@ = get_float_stat StatId.Fat
if 
  400.0 > 8@
goto_if_false @BBALL_18466
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_object_coordinates 0@
8@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 2@ {toY} 3@ {toZ} 4@
if and
  4.0 > 8@
  8@ > 1.0
goto_if_false @BBALL_18466
24@ = 1

:BBALL_18466
if 
  24@ == 1
goto_if_false @BBALL_18498
17@ = 16
goto @BBALL_18505

:BBALL_18498
17@ = 4

:BBALL_18505
21@ = 1

:BBALL_18512
goto @BBALL_18551

:BBALL_18519
if and
  18@ == 4
  17@ <> 6
goto_if_false @BBALL_18551
21@ = 1

:BBALL_18551
goto @BBALL_18558

:BBALL_18558
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_18607
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BBALL_18607
17@ = 14

:BBALL_18607
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_18656
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BBALL_18656
17@ = 15

:BBALL_18656
goto @BBALL_19030

:BBALL_18663
if 
  21@ == 1
goto_if_false @BBALL_19030
if or
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19006
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_18870
21@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_18853
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  is_float_lvar_greater_than_float_var 8@ > $release_time
goto_if_false @BBALL_18830
set_var_float_to_lvar_float $char_obj = 8@
sub_float_var_from_float_var $char_obj -= $release_time
goto @BBALL_18846

:BBALL_18830
set_var_float_to_var_float $char_obj = $release_time
sub_float_lvar_from_float_var $char_obj -= 8@

:BBALL_18846
goto @BBALL_18863

:BBALL_18853
$char_obj = 1.0

:BBALL_18863
goto @BBALL_18999

:BBALL_18870
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_18989
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
set_lvar_float_to_var_float 9@ = $release_time
9@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 8@ > 9@
goto_if_false @BBALL_18982
$char_obj = 1.0
21@ = 0

:BBALL_18982
goto @BBALL_18999

:BBALL_18989
$char_obj = 1.0

:BBALL_18999
goto @BBALL_19030

:BBALL_19006
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19030
21@ = 0

:BBALL_19030
goto @BBALL_19177

:BBALL_19037
if 
  18@ == 12
goto_if_false @BBALL_19177
if 
  21@ == 0
goto_if_false @BBALL_19153
if 
  does_object_exist 1@
goto_if_false @BBALL_19146
$x, $y, $z = get_object_coordinates 1@
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_19146
17@ = 10

:BBALL_19146
goto @BBALL_19177

:BBALL_19153
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19177
21@ = 0

:BBALL_19177
24@ = 0
if or
  17@ == 1
  17@ == 2
  17@ == 8
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19237
24@ = 1

:BBALL_19237
if or
  17@ == 16
  17@ == 17
goto_if_false @BBALL_19269
24@ = 1

:BBALL_19269
if 
  24@ == 1
goto_if_false @BBALL_19564
if 
  not is_char_dead $scplayer
goto_if_false @BBALL_19311
29@ = get_char_heading $scplayer

:BBALL_19311
if 
  $bb_new_look_z > 360.0
goto_if_false @BBALL_19349
$bb_new_look_z += -360.0
goto @BBALL_19311

:BBALL_19349
if 
  -360.0 > $bb_new_look_z
goto_if_false @BBALL_19387
$bb_new_look_z += 360.0
goto @BBALL_19349

:BBALL_19387
set_lvar_float_to_var_float 30@ = $bb_new_look_z
sub_float_lvar_from_float_lvar 30@ -= 29@
if 
  30@ > 180.0
goto_if_false @BBALL_19434
30@ += -360.0

:BBALL_19434
if 
  -180.0 > 30@
goto_if_false @BBALL_19465
30@ += 360.0

:BBALL_19465
30@ /= 10.0
add_timed_float_lvar_to_float_lvar 29@ +=@ 30@
if 
  not is_char_dead $scplayer
goto_if_false @BBALL_19564
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
goto_if_false @BBALL_19564
set_char_heading $scplayer {heading} 29@

:BBALL_19564
if or
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_20130
if 
  does_object_exist $dumb_show_stat
goto_if_false @BBALL_20130
$x, $y, $z = get_object_coordinates $dumb_show_stat
8@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} $p_desired_heading {toY} $bb_desired_x {toZ} $bb_desired_y
if 
  8@ > 0.07
goto_if_false @BBALL_19963
set_lvar_float_to_var_float 2@ = $p_desired_heading
sub_float_var_from_float_lvar 2@ -= $x
set_lvar_float_to_var_float 3@ = $bb_desired_x
sub_float_var_from_float_lvar 3@ -= $y
set_lvar_float_to_var_float 4@ = $bb_desired_y
sub_float_var_from_float_lvar 4@ -= $z
div_float_lvar_by_float_lvar 2@ /= 8@
div_float_lvar_by_float_lvar 3@ /= 8@
div_float_lvar_by_float_lvar 4@ /= 8@
if 
  8@ > 0.065
goto_if_false @BBALL_19932
2@ *= 0.065
3@ *= 0.065
4@ *= 0.065
add_timed_float_lvar_to_float_var $x +=@ 2@
add_timed_float_lvar_to_float_var $y +=@ 3@
add_timed_float_lvar_to_float_var $z +=@ 4@
set_object_coordinates $dumb_show_stat {x} $x {y} $y {z} $z
8@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} $p_desired_heading {toY} $bb_desired_x {toZ} $bb_desired_y
set_var_float_to_lvar_float $bb_desired_z = 8@
div_float_var_by_float_var $bb_desired_z /= $run_with_ball_start_position
$bb_desired_z += -1.0
$bb_desired_z *= -1.0
goto @BBALL_19956

:BBALL_19932
set_object_coordinates $dumb_show_stat {x} $p_desired_heading {y} $bb_desired_x {z} $bb_desired_y
$bb_desired_z = 1.0

:BBALL_19956
goto @BBALL_19987

:BBALL_19963
set_object_coordinates $dumb_show_stat {x} $p_desired_heading {y} $bb_desired_x {z} $bb_desired_y
$bb_desired_z = 1.0

:BBALL_19987
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_20130
if and
  $bb_desired_z >= 0.0
  1.0 >= $bb_desired_z
goto_if_false @BBALL_20130
set_char_anim_current_time $scplayer {animationName} "BBALL_DNK_GLI" {time} $bb_desired_z
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_GLI_O"
goto_if_false @BBALL_20130
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} $bb_desired_z

:BBALL_20130
return 
set_var_float_to_var_float $x = $dunc_glide_percent
sub_float_var_from_float_var $x -= $intrp_dest_z
set_var_float_to_var_float $y = $intrp_dest_x
sub_float_var_from_float_var $y -= $intrp_start_x
set_var_float_to_var_float $z = $intrp_dest_y
sub_float_var_from_float_var $z -= $intrp_start_y
mult_float_var_by_float_var $x *= $intrp_start_z
mult_float_var_by_float_var $y *= $intrp_start_z
mult_float_var_by_float_var $z *= $intrp_start_z
add_float_var_to_float_var $intrp_dest_z += $x
add_float_var_to_float_var $intrp_start_x += $y
add_float_var_to_float_var $intrp_start_y += $z
return 

:BBALL_20230
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 0@
goto_if_false @BBALL_20279
2@, 3@, 4@ = get_object_coordinates 0@
$heading = get_object_heading 0@

:BBALL_20279
$heading *= -1.0
8@ = cos $heading
9@ = sin $heading
set_var_float_to_var_float $intrp_speed = $x
sub_float_lvar_from_float_var $intrp_speed -= 2@
set_var_float_to_var_float $bb_vec_x = $y
sub_float_lvar_from_float_var $bb_vec_x -= 3@
set_var_float_to_var_float $bb_vec_y = $z
sub_float_lvar_from_float_var $bb_vec_y -= 4@
set_var_float_to_var_float $bb_vec_z = $intrp_speed
mult_float_var_by_float_lvar $bb_vec_z *= 8@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
sub_float_var_from_float_var $bb_vec_z -= $bb_vec2_y
set_var_float_to_var_float $bb_vec2_x = $intrp_speed
mult_float_var_by_float_lvar $bb_vec2_x *= 9@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 8@
add_float_var_to_float_var $bb_vec2_x += $bb_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM BBHOOP = "
save_float_to_debug_file $bb_vec_z
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec_y
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $intrp_speed = $x
sub_float_lvar_from_float_var $intrp_speed -= 2@
set_var_float_to_var_float $bb_vec_x = $y
sub_float_lvar_from_float_var $bb_vec_x -= 3@
set_var_float_to_var_float $bb_vec_y = $z
sub_float_lvar_from_float_var $bb_vec_y -= 4@
set_var_float_to_var_float $bb_vec_z = $intrp_speed
mult_float_var_by_float_lvar $bb_vec_z *= 8@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
sub_float_var_from_float_var $bb_vec_z -= $bb_vec2_y
set_var_float_to_var_float $bb_vec2_x = $intrp_speed
mult_float_var_by_float_lvar $bb_vec2_x *= 9@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 8@
add_float_var_to_float_var $bb_vec2_x += $bb_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM BBHOOP = "
save_float_to_debug_file $bb_vec_z
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec_y
return 
terminate_this_script 

//-------------External script 16 (VIDPOK)---------------

:VIDPOK
script_name 'VIDPOK'
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
if 
  4@ == -1
goto_if_false @VIDPOK_110
0@ = create_object #KMB_ROCK {x} 0.0 {y} 0.0 {z} 0.0
$hand_result = create_object #KMB_ROCK {x} 0.0 {y} 0.0 {z} 0.0

:VIDPOK_110
if 
  is_player_playing $player1
goto_if_false @VIDPOK_134
12@ = store_score $player1

:VIDPOK_134
if 
  100 > 12@
goto_if_false @VIDPOK_166
13@ = 5
goto @VIDPOK_309

:VIDPOK_166
if 
  1000 > 12@
goto_if_false @VIDPOK_199
13@ = 6
goto @VIDPOK_309

:VIDPOK_199
if 
  10000 > 12@
goto_if_false @VIDPOK_232
13@ = 7
goto @VIDPOK_309

:VIDPOK_232
if 
  50000 > 12@
goto_if_false @VIDPOK_267
13@ = 8
goto @VIDPOK_309

:VIDPOK_267
if 
  100000 > 12@
goto_if_false @VIDPOK_302
13@ = 9
goto @VIDPOK_309

:VIDPOK_302
13@ = 10

:VIDPOK_309
12@ = generate_random_int_in_range 0 {max} 13@
switch_start 12@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_591 {caseNum1} 0 {caseLabel1} @VIDPOK_447 {caseNum2} 1 {caseLabel2} @VIDPOK_461 {caseNum3} 2 {caseLabel3} @VIDPOK_475 {caseNum4} 3 {caseLabel4} @VIDPOK_489 {caseNum5} 4 {caseLabel5} @VIDPOK_503 {caseNum6} 5 {caseLabel6} @VIDPOK_517 {caseNum7} 6 {caseLabel7} @VIDPOK_531
switch_continued 7 {caseLabel1} @VIDPOK_546 {caseNum2} 8 {caseLabel2} @VIDPOK_561 {caseNum3} 9 {caseLabel3} @VIDPOK_576 {caseNum4} -1 {caseLabel4} @VIDPOK_591 {caseNum5} -1 {caseLabel5} @VIDPOK_591 {caseNum6} -1 {caseLabel6} @VIDPOK_591 {caseNum7} -1 {caseLabel7} @VIDPOK_591 {caseNum8} -1 {caseLabel8} @VIDPOK_591 {caseNum9} -1 {caseLabel9} @VIDPOK_591

:VIDPOK_447
1@ = 1
goto @VIDPOK_591

:VIDPOK_461
1@ = 5
goto @VIDPOK_591

:VIDPOK_475
1@ = 10
goto @VIDPOK_591

:VIDPOK_489
1@ = 25
goto @VIDPOK_591

:VIDPOK_503
1@ = 50
goto @VIDPOK_591

:VIDPOK_517
1@ = 100
goto @VIDPOK_591

:VIDPOK_531
1@ = 500
goto @VIDPOK_591

:VIDPOK_546
1@ = 1000
goto @VIDPOK_591

:VIDPOK_561
1@ = 5000
goto @VIDPOK_591

:VIDPOK_576
1@ = 10000
goto @VIDPOK_591

:VIDPOK_591
wait 0
if 
  does_object_exist 0@
goto_if_false @VIDPOK_1657
if 
  $hand_result == 0
goto_if_false @VIDPOK_1569
if 
  is_player_playing $player1
goto_if_false @VIDPOK_1533
if 
  $fFunTemp == 0
goto_if_false @VIDPOK_1497
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @VIDPOK_1461
12@ = 0
13@ = get_object_model 0@
19@, 20@, 21@, 22@, 23@, 24@ = get_model_dimensions 13@
set_lvar_float_to_lvar_float 15@ = 22@
sub_float_lvar_from_float_lvar 15@ -= 19@
if 
  15@ > 4.0
goto_if_false @VIDPOK_1166
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_847
12@ = 1

:VIDPOK_847
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.838 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_925
12@ = 1

:VIDPOK_925
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.676 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1003
12@ = 1

:VIDPOK_1003
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.838 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1081
12@ = 1

:VIDPOK_1081
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.676 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1159
12@ = 1

:VIDPOK_1159
goto @VIDPOK_1244

:VIDPOK_1166
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1244
12@ = 1

:VIDPOK_1244
if 
  12@ == 1
goto_if_false @VIDPOK_1427
if 
  $vp_cross_is_pressed == 0
goto_if_false @VIDPOK_1396
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_1353
if 
  2@ == 1
goto_if_false @VIDPOK_1324
clear_help 
2@ = 0

:VIDPOK_1324
3@ = 0
4@ = 0
set_var_int_to_lvar_int $hand_result = 0@
goto @VIDPOK_1389

:VIDPOK_1353
if 
  2@ == 0
goto_if_false @VIDPOK_1389
print_help_forever 'VP01'
2@ = 1

:VIDPOK_1389
goto @VIDPOK_1420

:VIDPOK_1396
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_1420
$vp_cross_is_pressed = 0

:VIDPOK_1420
goto @VIDPOK_1454

:VIDPOK_1427
if 
  2@ == 1
goto_if_false @VIDPOK_1454
clear_help 
2@ = 0

:VIDPOK_1454
goto @VIDPOK_1490

:VIDPOK_1461
if 
  2@ == 1
goto_if_false @VIDPOK_1488
clear_help 
2@ = 0

:VIDPOK_1488
terminate_this_script 

:VIDPOK_1490
goto @VIDPOK_1526

:VIDPOK_1497
if 
  2@ == 1
goto_if_false @VIDPOK_1524
clear_help 
2@ = 0

:VIDPOK_1524
terminate_this_script 

:VIDPOK_1526
goto @VIDPOK_1562

:VIDPOK_1533
if 
  2@ == 1
goto_if_false @VIDPOK_1560
clear_help 
2@ = 0

:VIDPOK_1560
terminate_this_script 

:VIDPOK_1562
goto @VIDPOK_1650

:VIDPOK_1569
if 
  is_int_var_equal_to_int_lvar $hand_result == 0@
goto_if_false @VIDPOK_1650
if 
  is_player_playing $player1
goto_if_false @VIDPOK_1650
if 
  7@ == 0
goto_if_false @VIDPOK_1636
gosub @VIDPOK_1695
goto @VIDPOK_1650

:VIDPOK_1636
gosub @VIDPOK_34957
$hand_result = 0

:VIDPOK_1650
goto @VIDPOK_1686

:VIDPOK_1657
if 
  2@ == 1
goto_if_false @VIDPOK_1684
clear_help 
2@ = 0

:VIDPOK_1684
terminate_this_script 

:VIDPOK_1686
goto @VIDPOK_591
return 

:VIDPOK_1695
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @VIDPOK_1717
25@ = 1

:VIDPOK_1717
if 
  25@ == 1
goto_if_false @VIDPOK_1801
set_var_int_to_lvar_int $8902 = 3@
set_var_int_to_lvar_int $VIDPOK_view_debug = 4@
view_integer_variable $8902 {_p2} "M_STAGE"
view_integer_variable $VIDPOK_view_debug {_p2} "M_GOALS"
view_integer_variable $active_vidpok_machine {_p2} "HIGH_CARDS_HELD"

:VIDPOK_1801
8@ += 1
if 
  8@ > 9
goto_if_false @VIDPOK_1833
8@ = 0

:VIDPOK_1833
9@ = get_game_timer 
set_lvar_int_to_lvar_int 11@ = 9@
sub_int_lvar_from_int_lvar 11@ -= 10@
set_lvar_int_to_lvar_int 10@ = 9@
if 
  3@ == 0
goto_if_false @VIDPOK_4544
if 
  4@ == 0
goto_if_false @VIDPOK_3662
set_minigame_in_progress True
if 
  does_object_exist 0@
goto_if_false @VIDPOK_1926
$heading = get_object_heading 0@

:VIDPOK_1926
set_player_control $player1 {state} False
task_achieve_heading $scplayer {heading} $heading
display_hud False
$8904 = 200
$vp_edit_counter[0] = 529.0
$8915[0] = 57.0
$vp_edit_counter[1] = 565.0
$8915[1] = 384.0
$vp_edit_counter[2] = 527.0
$8915[2] = 133.0
$vp_edit_counter[3] = 323.0
$8915[3] = 291.0
$vp_edit_counter[4] = 180.0
$8915[4] = 413.0
$vp_edit_counter[5] = 79.0
$8915[5] = 34.0
$vp_edit_counter[6] = 531.0
$8915[6] = 79.0
$vp_edit_counter[7] = 527.0
$8915[7] = 157.0
$vp_initial_stake[0] = 122.0
$8877[0] = 314.0
$vp_initial_stake[1] = 222.0
$8877[1] = 314.0
$vp_initial_stake[2] = 320.0
$8877[2] = 314.0
$vp_initial_stake[3] = 419.0
$8877[3] = 314.0
$vp_initial_stake[4] = 517.0
$8877[4] = 314.0
$vp_card_height = 91.0
$8923 = 137.0
$8892[0] = 33.0
$8892[1] = 61.0
$8892[2] = 76.0
$8892[3] = 92.0
$8892[4] = 108.0
$8892[5] = 124.0
$8892[6] = 140.0
$8892[7] = 156.0
$8892[8] = 172.0
$8892[9] = 188.0
$deal_y[0] = 86.0
$deal_y[1] = 239.0
$deal_y[2] = 286.0
$deal_y[3] = 330.0
$deal_y[4] = 378.0
$deal_y[5] = 450.0
$vp_card_width = -86.0
$vp_hold_button_offset = 49.0
$vp_hold_width = 18.0
$8882 = 123.0
$bet_one_x = 401.0
$vp_deal_height = 81.0
$vp_bet_one_width = 18.0
$bet_one_y = 222.0
$deal_x = 401.0
$vp_border_height = 87.0
$vp_deal_width = 18.0
$vp_hold_height = 4.0
$vp_bet_one_height[0] = 384.0
$8944[0] = 131.0
$8953[0] = 2.0
$8962[0] = 152.0
$vp_bet_one_height[1] = 458.0
$8944[1] = 131.0
$8953[1] = 2.0
$8962[1] = 154.0
$vp_bet_one_height[2] = 267.0
$8944[2] = 207.0
$8953[2] = 382.0
$8962[2] = 2.0
$vp_bet_one_height[3] = 77.0
$8944[3] = 131.0
$8953[3] = 2.0
$8962[3] = 152.0
$vp_bet_one_height[4] = 267.0
$8944[4] = 54.0
$8953[4] = 383.0
$8962[4] = 2.0
$vp_bet_one_height[5] = 199.0
$8944[5] = 131.0
$8953[5] = 2.0
$8962[5] = 152.0
$vp_bet_one_height[6] = 246.0
$8944[6] = 131.0
$8953[6] = 2.0
$8962[6] = 152.0
$vp_bet_one_height[7] = 292.0
$8944[7] = 131.0
$8953[7] = 2.0
$8962[7] = 153.0
$vp_bet_one_height[8] = 338.0
$8944[8] = 131.0
$8953[8] = 2.0
$8962[8] = 153.0
$8971[0] = 0.82
$8977[0] = 3.02
$8983[0] = 128
$8989[0] = 0
$8995[0] = 0
$9001[0] = 1
$9007[0] = 1
$9013[0] = 1
set_var_int_to_var_int $9019[0] = $8904
set_var_int_to_var_int $9025[0] = $8904
$9031[0] = 0
$8971[1] = 0.52
$8977[1] = 2.39
$8983[1] = 128
$8989[1] = 0
$8995[1] = 0
$9001[1] = 1
$9007[1] = 0
$9013[1] = 1
set_var_int_to_var_int $9019[1] = $8904
set_var_int_to_var_int $9025[1] = $8904
$9031[1] = 0
$8971[2] = 0.36
$8977[2] = 1.53
set_var_int_to_var_int $8983[2] = $8904
set_var_int_to_var_int $8989[2] = $8904
$8995[2] = 0
$9001[2] = 1
$9007[2] = 0
$9013[2] = 1
$9019[2] = 0
$9025[2] = 0
$9031[2] = 0
$8971[3] = 0.36
$8977[3] = 1.72
set_var_int_to_var_int $8983[3] = $8904
set_var_int_to_var_int $8989[3] = $8904
$8995[3] = 0
$9001[3] = 1
$9007[3] = 0
$9013[3] = 1
$9019[3] = 0
$9025[3] = 0
$9031[3] = 0
$8971[4] = 0.42
$8977[4] = 1.6
set_var_int_to_var_int $8983[4] = $8904
set_var_int_to_var_int $8989[4] = $8904
$8995[4] = 0
$9001[4] = 1
$9007[4] = 0
$9013[4] = 1
$9019[4] = 0
$9025[4] = 0
$9031[4] = 0
$8971[5] = 0.44
$8977[5] = 1.35
set_var_int_to_var_int $8983[5] = $8904
set_var_int_to_var_int $8989[5] = $8904
$8995[5] = 0
$9001[5] = 1
$9007[5] = 1
$9013[5] = 1
$9019[5] = 0
$9025[5] = 0
$9031[5] = 0
$TILE_WIDTH = 81.0
$vp_selected_colour_direction = 63.0
$vp_tile_type = 268.0
$vp_table_x = 130.0
$vp_table_y = 384.0
$vp_table_width = 152.0
$vp_table_height[0] = 222.0
$9048[0] = 130.0
$9053[0] = 49.0
$9058[0] = 152.0
$vp_table_height[1] = 269.0
$9048[1] = 130.0
$9053[1] = 46.0
$9058[1] = 152.0
$vp_table_height[2] = 314.0
$9048[2] = 130.0
$9053[2] = 48.0
$9058[2] = 152.0
$vp_table_height[3] = 360.0
$9048[3] = 130.0
$9053[3] = 46.0
$9058[3] = 152.0
$vp_table_height[4] = 421.0
$9048[4] = 130.0
$9053[4] = 72.0
$9058[4] = 152.0
$9037 = 2.5
4@ += 1

:VIDPOK_3662
if 
  4@ == 1
goto_if_false @VIDPOK_3694
do_fade 500 {direction} Fade.Out
4@ += 1

:VIDPOK_3694
if 
  4@ == 2
goto_if_false @VIDPOK_3732
if 
  not get_fading_status 
goto_if_false @VIDPOK_3732
4@ += 1

:VIDPOK_3732
if 
  4@ == 3
goto_if_false @VIDPOK_4505
use_text_commands True
load_texture_dictionary 'LD_POKE'
load_sprite 1 {spriteName} "CD1C"
load_sprite 2 {spriteName} "CD2C"
load_sprite 3 {spriteName} "CD3C"
load_sprite 4 {spriteName} "CD4C"
load_sprite 5 {spriteName} "CD5C"
load_sprite 6 {spriteName} "CD6C"
load_sprite 7 {spriteName} "CD7C"
load_sprite 8 {spriteName} "CD8C"
load_sprite 9 {spriteName} "CD9C"
load_sprite 10 {spriteName} "CD10C"
load_sprite 11 {spriteName} "CD11C"
load_sprite 12 {spriteName} "CD12C"
load_sprite 13 {spriteName} "CD13C"
load_sprite 14 {spriteName} "CD1D"
load_sprite 15 {spriteName} "CD2D"
load_sprite 16 {spriteName} "CD3D"
load_sprite 17 {spriteName} "CD4D"
load_sprite 18 {spriteName} "CD5D"
load_sprite 19 {spriteName} "CD6D"
load_sprite 20 {spriteName} "CD7D"
load_sprite 21 {spriteName} "CD8D"
load_sprite 22 {spriteName} "CD9D"
load_sprite 23 {spriteName} "CD10D"
load_sprite 24 {spriteName} "CD11D"
load_sprite 25 {spriteName} "CD12D"
load_sprite 26 {spriteName} "CD13D"
load_sprite 27 {spriteName} "CD1S"
load_sprite 28 {spriteName} "CD2S"
load_sprite 29 {spriteName} "CD3S"
load_sprite 30 {spriteName} "CD4S"
load_sprite 31 {spriteName} "CD5S"
load_sprite 32 {spriteName} "CD6S"
load_sprite 33 {spriteName} "CD7S"
load_sprite 34 {spriteName} "CD8S"
load_sprite 35 {spriteName} "CD9S"
load_sprite 36 {spriteName} "CD10S"
load_sprite 37 {spriteName} "CD11S"
load_sprite 38 {spriteName} "CD12S"
load_sprite 39 {spriteName} "CD13S"
load_sprite 40 {spriteName} "CD1H"
load_sprite 41 {spriteName} "CD2H"
load_sprite 42 {spriteName} "CD3H"
load_sprite 43 {spriteName} "CD4H"
load_sprite 44 {spriteName} "CD5H"
load_sprite 45 {spriteName} "CD6H"
load_sprite 46 {spriteName} "CD7H"
load_sprite 47 {spriteName} "CD8H"
load_sprite 48 {spriteName} "CD9H"
load_sprite 49 {spriteName} "CD10H"
load_sprite 50 {spriteName} "CD11H"
load_sprite 51 {spriteName} "CD12H"
load_sprite 52 {spriteName} "CD13H"
load_sprite 53 {spriteName} "CDBACK"
load_sprite 54 {spriteName} "ADDCOIN"
load_sprite 57 {spriteName} "DEAL"
load_sprite 60 {spriteName} "HOLDOFF"
load_sprite 61 {spriteName} "HOLDMID"
load_sprite 62 {spriteName} "HOLDON"
load_sprite 63 {spriteName} "TVCORN"
load_sprite 64 {spriteName} "BACKRED"
load_sprite 65 {spriteName} "BACKCYAN"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1800

:VIDPOK_4420
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VIDPOK_4446
wait 0
goto @VIDPOK_4420

:VIDPOK_4446
if 
  is_player_playing $player1
goto_if_false @VIDPOK_4492
12@ = store_score $player1
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
$bb_temp_float3 = 1

:VIDPOK_4492
do_fade 0 {direction} Fade.In
4@ = 99

:VIDPOK_4505
if 
  4@ == 99
goto_if_false @VIDPOK_4544
$deal_value = 0
3@ += 1
4@ = 0

:VIDPOK_4544
if 
  3@ == 1
goto_if_false @VIDPOK_5712
if 
  4@ == 0
goto_if_false @VIDPOK_4727
$bet_one_value = 2
$8841 = 2
12@ = 0

:VIDPOK_4601
if 
  5 > 12@
goto_if_false @VIDPOK_4655
$no_of_coins(12@,5i) = 0
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_4601

:VIDPOK_4655
12@ = store_score $player1
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
set_lvar_int_to_var_int 13@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_4720
$bb_temp_float3 = 1

:VIDPOK_4720
4@ += 1

:VIDPOK_4727
if 
  4@ == 1
goto_if_false @VIDPOK_5237
if 
  $deal_value == 0
goto_if_false @VIDPOK_4784
$8841 = 3
$bet_one_value = 2
goto @VIDPOK_4798

:VIDPOK_4784
$8841 = 2
$bet_one_value = 3

:VIDPOK_4798
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 64
goto_if_false @VIDPOK_4916
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_4909
if 
  $deal_value == 0
goto_if_false @VIDPOK_4888
$deal_value = 1
goto @VIDPOK_4895

:VIDPOK_4888
$deal_value = 0

:VIDPOK_4895
$vp_triangle_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_4909
goto @VIDPOK_5050

:VIDPOK_4916
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -64 > $LStickX
goto_if_false @VIDPOK_5018
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_5011
if 
  $deal_value == 1
goto_if_false @VIDPOK_4990
$deal_value = 0
goto @VIDPOK_4997

:VIDPOK_4990
$deal_value = 1

:VIDPOK_4997
$vp_triangle_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_5011
goto @VIDPOK_5050

:VIDPOK_5018
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_5050
$vp_triangle_is_pressed = 0

:VIDPOK_5050
if 
  $high_cards_held == 0
goto_if_false @VIDPOK_5213
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_5206
if 
  $deal_value == 0
goto_if_false @VIDPOK_5151
$high_cards_held += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
4@ += 1
goto @VIDPOK_5237
goto @VIDPOK_5206

:VIDPOK_5151
$high_cards_held += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
$bet_one_value = 2
TIMERA = 0
4@ += 3
goto @VIDPOK_5237

:VIDPOK_5206
goto @VIDPOK_5237

:VIDPOK_5213
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_5237
$high_cards_held = 0

:VIDPOK_5237
if 
  4@ == 2
goto_if_false @VIDPOK_5373
if 
  5 > $bb_temp_float3
goto_if_false @VIDPOK_5287
$bb_temp_float3 += 1
goto @VIDPOK_5294

:VIDPOK_5287
$bb_temp_float3 = 1

:VIDPOK_5294
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
13@ = store_score $player1
gosub @VIDPOK_34793
add_int_var_to_int_lvar 13@ += $bj_payout
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @VIDPOK_5359
$bb_temp_float3 = 1

:VIDPOK_5359
TIMERA = 0
4@ += 1

:VIDPOK_5373
if 
  4@ == 3
goto_if_false @VIDPOK_5398
4@ = 1

:VIDPOK_5398
if 
  4@ == 4
goto_if_false @VIDPOK_5495
12@ = store_score $player1
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
set_lvar_int_to_var_int 13@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_5488
4@ = 1
goto @VIDPOK_5495

:VIDPOK_5488
4@ = 99

:VIDPOK_5495
if 
  4@ == 99
goto_if_false @VIDPOK_5705
if 
  $bb_temp_float3 == 6
goto_if_false @VIDPOK_5538
$bb_temp_float3 = 4

:VIDPOK_5538
if 
  $bb_temp_float3 == 7
goto_if_false @VIDPOK_5563
$bb_temp_float3 = 3

:VIDPOK_5563
if 
  $bb_temp_float3 == 8
goto_if_false @VIDPOK_5588
$bb_temp_float3 = 2

:VIDPOK_5588
if 
  $bb_temp_float3 == 9
goto_if_false @VIDPOK_5613
$bb_temp_float3 = 1

:VIDPOK_5613
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
increment_int_stat_no_message StatId.MoneySpentGambling {value} 12@
cset_lvar_float_to_lvar_int 15@ =# 12@
15@ *= 0.001
increment_float_stat_no_message StatId.Gambling {value} 15@
set_var_int_to_lvar_int $vp_dpad_is_pressed = 12@
12@ *= -1
add_score $player1 {money} 12@
4@ = 0
3@ += 1
goto @VIDPOK_5712

:VIDPOK_5705
gosub @VIDPOK_26451

:VIDPOK_5712
if 
  3@ == 2
goto_if_false @VIDPOK_6360
if 
  4@ == 0
goto_if_false @VIDPOK_5834
$bet_one_value = 0
$8841 = 0
12@ = 0

:VIDPOK_5769
if 
  5 > 12@
goto_if_false @VIDPOK_5823
$no_of_coins(12@,5i) = 0
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_5769

:VIDPOK_5823
shuffle_card_decks 1
4@ += 1

:VIDPOK_5834
if 
  4@ == 1
goto_if_false @VIDPOK_5886
12@ = fetch_next_card 
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[0] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5886
if 
  4@ == 2
goto_if_false @VIDPOK_5930
if 
  TIMERA > 400
goto_if_false @VIDPOK_5930
4@ += 1

:VIDPOK_5930
if 
  4@ == 3
goto_if_false @VIDPOK_5982
12@ = fetch_next_card 
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[1] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5982
if 
  4@ == 4
goto_if_false @VIDPOK_6026
if 
  TIMERA > 400
goto_if_false @VIDPOK_6026
4@ += 1

:VIDPOK_6026
if 
  4@ == 5
goto_if_false @VIDPOK_6078
12@ = fetch_next_card 
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[2] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6078
if 
  4@ == 6
goto_if_false @VIDPOK_6122
if 
  TIMERA > 400
goto_if_false @VIDPOK_6122
4@ += 1

:VIDPOK_6122
if 
  4@ == 7
goto_if_false @VIDPOK_6174
12@ = fetch_next_card 
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[3] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6174
if 
  4@ == 8
goto_if_false @VIDPOK_6218
if 
  TIMERA > 400
goto_if_false @VIDPOK_6218
4@ += 1

:VIDPOK_6218
if 
  4@ == 9
goto_if_false @VIDPOK_6270
12@ = fetch_next_card 
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[4] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6270
if 
  4@ == 10
goto_if_false @VIDPOK_6314
if 
  TIMERA > 800
goto_if_false @VIDPOK_6314
4@ = 99

:VIDPOK_6314
if 
  4@ == 99
goto_if_false @VIDPOK_6353
4@ = 0
3@ += 1
goto @VIDPOK_6360

:VIDPOK_6353
gosub @VIDPOK_26451

:VIDPOK_6360
if 
  3@ == 3
goto_if_false @VIDPOK_7501
if 
  4@ == 0
goto_if_false @VIDPOK_6485
$bet_one_value = 2
$8841 = 0
12@ = 0

:VIDPOK_6417
if 
  5 > 12@
goto_if_false @VIDPOK_6471
$8836(12@,5i) = 2
$8831(12@,5i) = 0
12@ += 1
goto @VIDPOK_6417

:VIDPOK_6471
$deal_value = 0
4@ += 1

:VIDPOK_6485
if 
  4@ == 1
goto_if_false @VIDPOK_7405
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 64
goto_if_false @VIDPOK_6646
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_6639
if 
  5 > $deal_value
goto_if_false @VIDPOK_6639
$deal_value += 1
if 
  $deal_value == 5
goto_if_false @VIDPOK_6611
$deal_value = 0

:VIDPOK_6611
4@ += 1
TIMERA = 0
$vp_triangle_is_pressed += 1
goto @VIDPOK_7173

:VIDPOK_6639
goto @VIDPOK_6812

:VIDPOK_6646
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -64 > $LStickX
goto_if_false @VIDPOK_6780
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_6773
if and
  $deal_value > -1
  5 > $deal_value
goto_if_false @VIDPOK_6773
$deal_value -= 1
if 
  $deal_value == -1
goto_if_false @VIDPOK_6745
$deal_value = 4

:VIDPOK_6745
4@ += 1
$vp_triangle_is_pressed += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6773
goto @VIDPOK_6812

:VIDPOK_6780
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_6812
$vp_triangle_is_pressed = 0

:VIDPOK_6812
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $LStickY > 64
goto_if_false @VIDPOK_6864
$deal_value = 5
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6864
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $LStickY
goto_if_false @VIDPOK_6934
if 
  $deal_value == 5
goto_if_false @VIDPOK_6934
$deal_value = 1
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6934
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_7148
if 
  $high_cards_held == 0
goto_if_false @VIDPOK_7141
if 
  5 > $deal_value
goto_if_false @VIDPOK_7093
if 
  $8831($deal_value,5i) == 0
goto_if_false @VIDPOK_7027
$8831($deal_value,5i) = 1
goto @VIDPOK_7038

:VIDPOK_7027
$8831($deal_value,5i) = 0

:VIDPOK_7038
TIMERA = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
4@ += 1
$high_cards_held += 1
goto @VIDPOK_7173
goto @VIDPOK_7141

:VIDPOK_7093
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
TIMERA = 0
4@ += 2
$high_cards_held += 1
goto @VIDPOK_7173

:VIDPOK_7141
goto @VIDPOK_7173

:VIDPOK_7148
if 
  $high_cards_held <> 0
goto_if_false @VIDPOK_7173
$high_cards_held = 0

:VIDPOK_7173
12@ = 0

:VIDPOK_7180
if 
  6 > 12@
goto_if_false @VIDPOK_7405
if 
  5 > 12@
goto_if_false @VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $deal_value
goto_if_false @VIDPOK_7293
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7275
$8836(12@,5i) = 2
goto @VIDPOK_7286

:VIDPOK_7275
$8836(12@,5i) = 4

:VIDPOK_7286
goto @VIDPOK_7344

:VIDPOK_7293
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7333
$8836(12@,5i) = 3
goto @VIDPOK_7344

:VIDPOK_7333
$8836(12@,5i) = 5

:VIDPOK_7344
goto @VIDPOK_7391

:VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $deal_value
goto_if_false @VIDPOK_7384
$bet_one_value = 2
goto @VIDPOK_7391

:VIDPOK_7384
$bet_one_value = 3

:VIDPOK_7391
12@ += 1
goto @VIDPOK_7180

:VIDPOK_7405
if 
  4@ == 2
goto_if_false @VIDPOK_7430
4@ = 1

:VIDPOK_7430
if 
  4@ == 3
goto_if_false @VIDPOK_7455
4@ = 99

:VIDPOK_7455
if 
  4@ == 99
goto_if_false @VIDPOK_7494
4@ = 0
3@ += 1
goto @VIDPOK_7501

:VIDPOK_7494
gosub @VIDPOK_26451

:VIDPOK_7501
if 
  3@ == 4
goto_if_false @VIDPOK_8619
if 
  4@ == 0
goto_if_false @VIDPOK_7741
$bet_one_value = 0
$8841 = 0
12@ = 0

:VIDPOK_7558
if 
  5 > 12@
goto_if_false @VIDPOK_7601
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_7558

:VIDPOK_7601
$active_vidpok_machine = 0
12@ = 0

:VIDPOK_7615
if 
  5 > 12@
goto_if_false @VIDPOK_7734
if 
  $8831(12@,5i) <> 0
goto_if_false @VIDPOK_7720
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33298
if or
  $vp_in_card_value == 1
  $vp_in_card_value == 11
  $vp_in_card_value == 12
  $vp_in_card_value == 13
goto_if_false @VIDPOK_7720
$active_vidpok_machine += 1

:VIDPOK_7720
12@ += 1
goto @VIDPOK_7615

:VIDPOK_7734
4@ += 1

:VIDPOK_7741
if 
  4@ == 1
goto_if_false @VIDPOK_7845
12@ = 0

:VIDPOK_7766
if 
  5 > 12@
goto_if_false @VIDPOK_7831
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7817
$no_of_coins(12@,5i) = 0

:VIDPOK_7817
12@ += 1
goto @VIDPOK_7766

:VIDPOK_7831
TIMERA = 0
4@ += 1

:VIDPOK_7845
if 
  4@ == 2
goto_if_false @VIDPOK_7889
if 
  TIMERA > 500
goto_if_false @VIDPOK_7889
4@ += 1

:VIDPOK_7889
if 
  4@ == 3
goto_if_false @VIDPOK_7973
if 
  $8831[0] == 0
goto_if_false @VIDPOK_7966
12@ = fetch_next_card 
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[0] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_7973

:VIDPOK_7966
4@ += 2

:VIDPOK_7973
if 
  4@ == 4
goto_if_false @VIDPOK_8017
if 
  TIMERA > 400
goto_if_false @VIDPOK_8017
4@ += 1

:VIDPOK_8017
if 
  4@ == 5
goto_if_false @VIDPOK_8101
if 
  $8831[1] == 0
goto_if_false @VIDPOK_8094
12@ = fetch_next_card 
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[1] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8101

:VIDPOK_8094
4@ += 2

:VIDPOK_8101
if 
  4@ == 6
goto_if_false @VIDPOK_8145
if 
  TIMERA > 400
goto_if_false @VIDPOK_8145
4@ += 1

:VIDPOK_8145
if 
  4@ == 7
goto_if_false @VIDPOK_8229
if 
  $8831[2] == 0
goto_if_false @VIDPOK_8222
12@ = fetch_next_card 
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[2] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8229

:VIDPOK_8222
4@ += 2

:VIDPOK_8229
if 
  4@ == 8
goto_if_false @VIDPOK_8273
if 
  TIMERA > 400
goto_if_false @VIDPOK_8273
4@ += 1

:VIDPOK_8273
if 
  4@ == 9
goto_if_false @VIDPOK_8357
if 
  $8831[3] == 0
goto_if_false @VIDPOK_8350
12@ = fetch_next_card 
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[3] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8357

:VIDPOK_8350
4@ += 2

:VIDPOK_8357
if 
  4@ == 10
goto_if_false @VIDPOK_8401
if 
  TIMERA > 400
goto_if_false @VIDPOK_8401
4@ += 1

:VIDPOK_8401
if 
  4@ == 11
goto_if_false @VIDPOK_8485
if 
  $8831[4] == 0
goto_if_false @VIDPOK_8478
12@ = fetch_next_card 
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[4] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8485

:VIDPOK_8478
4@ += 2

:VIDPOK_8485
if 
  4@ == 12
goto_if_false @VIDPOK_8529
if 
  TIMERA > 400
goto_if_false @VIDPOK_8529
4@ += 1

:VIDPOK_8529
if 
  4@ == 13
goto_if_false @VIDPOK_8573
if 
  TIMERA > 800
goto_if_false @VIDPOK_8573
4@ = 99

:VIDPOK_8573
if 
  4@ == 99
goto_if_false @VIDPOK_8612
4@ = 0
3@ += 1
goto @VIDPOK_8619

:VIDPOK_8612
gosub @VIDPOK_26451

:VIDPOK_8619
if 
  3@ == 5
goto_if_false @VIDPOK_10143
if 
  4@ == 0
goto_if_false @VIDPOK_8739
$highlighted_button = 0
$hand_is_royal_flush = 0
$hand_is_straight_flush = 0
$hand_is_four_of_kind = 0
$hand_is_full_house = 0
$hand_is_flush = 0
$hand_is_straight = 0
$hand_is_three_of_kind = 0
$hand_is_two_pairs = 0
$hand_is_jacks_or_better = 0
$pair1 = 0
4@ += 1

:VIDPOK_8739
if 
  4@ == 1
goto_if_false @VIDPOK_10065
12@ = 0

:VIDPOK_8764
if 
  5 > 12@
goto_if_false @VIDPOK_8858
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33298
set_var_int_to_var_int $pair2(12@,5i) = $vp_in_card_value
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33446
set_var_int_to_var_int $8860(12@,5i) = $vp_in_card_value
12@ += 1
goto @VIDPOK_8764

:VIDPOK_8858
save_newline_to_debug_file 
14@ = 1

:VIDPOK_8867
if 
  14@ > 0
goto_if_false @VIDPOK_9052
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_8906
if 
  5 > 12@
goto_if_false @VIDPOK_9045
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9031
if 
  is_int_var_greater_than_int_var $pair2(12@,5i) > $pair2(13@,5i)
goto_if_false @VIDPOK_9031
set_lvar_int_to_var_int 26@ = $pair2(13@,5i)
set_var_int_to_var_int $pair2(13@,5i) = $pair2(12@,5i)
set_var_int_to_lvar_int $pair2(12@,5i) = 26@
14@ += 1

:VIDPOK_9031
12@ += 1
goto @VIDPOK_8906

:VIDPOK_9045
goto @VIDPOK_8867

:VIDPOK_9052
if and
  is_int_var_equal_to_int_var $8860[0] == $8860[1]
  is_int_var_equal_to_int_var $8860[1] == $8860[2]
  is_int_var_equal_to_int_var $8860[2] == $8860[3]
  is_int_var_equal_to_int_var $8860[3] == $8860[4]
goto_if_false @VIDPOK_9102
$hand_is_full_house = 1

:VIDPOK_9102
set_lvar_int_to_var_int 12@ = $pair2[0]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[1]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[1]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[2]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[2]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[3]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[3]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[4]
goto_if_false @VIDPOK_9270
$hand_is_flush = 1
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9270
$hand_is_royal_flush = 1

:VIDPOK_9270
if and
  $pair2[0] == 1
  $pair2[1] == 10
  $pair2[2] == 11
  $pair2[3] == 12
  $pair2[4] == 13
goto_if_false @VIDPOK_9355
$hand_is_flush = 1
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9355
$hand_is_royal_flush = 1
$highlighted_button = 1

:VIDPOK_9355
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_9376
if 
  5 > 12@
goto_if_false @VIDPOK_9649
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9635
if 
  is_int_var_equal_to_int_var $pair2(12@,5i) == $pair2(13@,5i)
goto_if_false @VIDPOK_9493
14@ += 1
if 
  13@ == 4
goto_if_false @VIDPOK_9486
goto @VIDPOK_9493

:VIDPOK_9486
goto @VIDPOK_9635

:VIDPOK_9493
if 
  14@ > 0
goto_if_false @VIDPOK_9635
if 
  14@ == 1
goto_if_false @VIDPOK_9578
if 
  $hand_is_jacks_or_better == 0
goto_if_false @VIDPOK_9566
set_var_int_to_var_int $hand_is_jacks_or_better = $pair2(12@,5i)
goto @VIDPOK_9578

:VIDPOK_9566
set_var_int_to_var_int $pair1 = $pair2(12@,5i)

:VIDPOK_9578
if 
  14@ == 2
goto_if_false @VIDPOK_9603
$hand_is_straight = 1

:VIDPOK_9603
if 
  14@ == 3
goto_if_false @VIDPOK_9628
$hand_is_straight_flush = 1

:VIDPOK_9628
14@ = 0

:VIDPOK_9635
12@ += 1
goto @VIDPOK_9376

:VIDPOK_9649
if and
  $hand_is_straight == 1
  $hand_is_jacks_or_better <> 0
goto_if_false @VIDPOK_9681
$hand_is_four_of_kind = 1

:VIDPOK_9681
if and
  $hand_is_jacks_or_better <> 0
  $pair1 <> 0
goto_if_false @VIDPOK_9713
$hand_is_three_of_kind = 1

:VIDPOK_9713
if 
  $hand_is_jacks_or_better <> 0
goto_if_false @VIDPOK_9763
if or
  $hand_is_jacks_or_better > 10
  $hand_is_jacks_or_better == 1
goto_if_false @VIDPOK_9763
$hand_is_two_pairs = 1

:VIDPOK_9763
if 
  $highlighted_button == 1
goto_if_false @VIDPOK_9795
$8865 = 9
goto @VIDPOK_10058

:VIDPOK_9795
if 
  $hand_is_royal_flush == 1
goto_if_false @VIDPOK_9827
$8865 = 8
goto @VIDPOK_10058

:VIDPOK_9827
if 
  $hand_is_straight_flush == 1
goto_if_false @VIDPOK_9859
$8865 = 7
goto @VIDPOK_10058

:VIDPOK_9859
if 
  $hand_is_four_of_kind == 1
goto_if_false @VIDPOK_9891
$8865 = 6
goto @VIDPOK_10058

:VIDPOK_9891
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9923
$8865 = 5
goto @VIDPOK_10058

:VIDPOK_9923
if 
  $hand_is_flush == 1
goto_if_false @VIDPOK_9955
$8865 = 4
goto @VIDPOK_10058

:VIDPOK_9955
if 
  $hand_is_straight == 1
goto_if_false @VIDPOK_9987
$8865 = 3
goto @VIDPOK_10058

:VIDPOK_9987
if 
  $hand_is_three_of_kind == 1
goto_if_false @VIDPOK_10019
$8865 = 2
goto @VIDPOK_10058

:VIDPOK_10019
if 
  $hand_is_two_pairs == 1
goto_if_false @VIDPOK_10051
$8865 = 1
goto @VIDPOK_10058

:VIDPOK_10051
$8865 = 0

:VIDPOK_10058
4@ += 1

:VIDPOK_10065
if 
  4@ == 2
goto_if_false @VIDPOK_10090
4@ = 99

:VIDPOK_10090
if 
  4@ == 99
goto_if_false @VIDPOK_10136
3@ += 1
4@ = 0
TIMERA = 0
goto @VIDPOK_10143

:VIDPOK_10136
gosub @VIDPOK_26451

:VIDPOK_10143
if 
  3@ == 6
goto_if_false @VIDPOK_12154
if 
  4@ == 0
goto_if_false @VIDPOK_11921
set_lvar_int_to_lvar_int 12@ = 1@
if 
  $8865 == 9
goto_if_false @VIDPOK_10383
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10383 {caseNum1} 1 {caseLabel1} @VIDPOK_10268 {caseNum2} 2 {caseLabel2} @VIDPOK_10291 {caseNum3} 3 {caseLabel3} @VIDPOK_10314 {caseNum4} 4 {caseLabel4} @VIDPOK_10337 {caseNum5} 5 {caseLabel5} @VIDPOK_10360 {caseNum6} -1 {caseLabel6} @VIDPOK_10383 {caseNum7} -1 {caseLabel7} @VIDPOK_10383

:VIDPOK_10268
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10383

:VIDPOK_10291
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 500
goto @VIDPOK_10383

:VIDPOK_10314
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 750
goto @VIDPOK_10383

:VIDPOK_10337
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1000
goto @VIDPOK_10383

:VIDPOK_10360
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4000
goto @VIDPOK_10383

:VIDPOK_10383
if 
  $8865 == 8
goto_if_false @VIDPOK_10577
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10577 {caseNum1} 1 {caseLabel1} @VIDPOK_10464 {caseNum2} 2 {caseLabel2} @VIDPOK_10486 {caseNum3} 3 {caseLabel3} @VIDPOK_10508 {caseNum4} 4 {caseLabel4} @VIDPOK_10531 {caseNum5} 5 {caseLabel5} @VIDPOK_10554 {caseNum6} -1 {caseLabel6} @VIDPOK_10577 {caseNum7} -1 {caseLabel7} @VIDPOK_10577

:VIDPOK_10464
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10577

:VIDPOK_10486
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10577

:VIDPOK_10508
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 150
goto @VIDPOK_10577

:VIDPOK_10531
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 200
goto @VIDPOK_10577

:VIDPOK_10554
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10577

:VIDPOK_10577
if 
  $8865 == 7
goto_if_false @VIDPOK_10768
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10768 {caseNum1} 1 {caseLabel1} @VIDPOK_10658 {caseNum2} 2 {caseLabel2} @VIDPOK_10680 {caseNum3} 3 {caseLabel3} @VIDPOK_10702 {caseNum4} 4 {caseLabel4} @VIDPOK_10724 {caseNum5} 5 {caseLabel5} @VIDPOK_10746 {caseNum6} -1 {caseLabel6} @VIDPOK_10768 {caseNum7} -1 {caseLabel7} @VIDPOK_10768

:VIDPOK_10658
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 25
goto @VIDPOK_10768

:VIDPOK_10680
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10768

:VIDPOK_10702
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 75
goto @VIDPOK_10768

:VIDPOK_10724
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10768

:VIDPOK_10746
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 125
goto @VIDPOK_10768

:VIDPOK_10768
if 
  $8865 == 6
goto_if_false @VIDPOK_10959
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10959 {caseNum1} 1 {caseLabel1} @VIDPOK_10849 {caseNum2} 2 {caseLabel2} @VIDPOK_10871 {caseNum3} 3 {caseLabel3} @VIDPOK_10893 {caseNum4} 4 {caseLabel4} @VIDPOK_10915 {caseNum5} 5 {caseLabel5} @VIDPOK_10937 {caseNum6} -1 {caseLabel6} @VIDPOK_10959 {caseNum7} -1 {caseLabel7} @VIDPOK_10959

:VIDPOK_10849
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_10959

:VIDPOK_10871
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_10959

:VIDPOK_10893
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 27
goto @VIDPOK_10959

:VIDPOK_10915
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 36
goto @VIDPOK_10959

:VIDPOK_10937
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 45
goto @VIDPOK_10959

:VIDPOK_10959
if 
  $8865 == 5
goto_if_false @VIDPOK_11150
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11150 {caseNum1} 1 {caseLabel1} @VIDPOK_11040 {caseNum2} 2 {caseLabel2} @VIDPOK_11062 {caseNum3} 3 {caseLabel3} @VIDPOK_11084 {caseNum4} 4 {caseLabel4} @VIDPOK_11106 {caseNum5} 5 {caseLabel5} @VIDPOK_11128 {caseNum6} -1 {caseLabel6} @VIDPOK_11150 {caseNum7} -1 {caseLabel7} @VIDPOK_11150

:VIDPOK_11040
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11150

:VIDPOK_11062
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11150

:VIDPOK_11084
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_11150

:VIDPOK_11106
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 24
goto @VIDPOK_11150

:VIDPOK_11128
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 30
goto @VIDPOK_11150

:VIDPOK_11150
if 
  $8865 == 4
goto_if_false @VIDPOK_11341
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11341 {caseNum1} 1 {caseLabel1} @VIDPOK_11231 {caseNum2} 2 {caseLabel2} @VIDPOK_11253 {caseNum3} 3 {caseLabel3} @VIDPOK_11275 {caseNum4} 4 {caseLabel4} @VIDPOK_11297 {caseNum5} 5 {caseLabel5} @VIDPOK_11319 {caseNum6} -1 {caseLabel6} @VIDPOK_11341 {caseNum7} -1 {caseLabel7} @VIDPOK_11341

:VIDPOK_11231
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11341

:VIDPOK_11253
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11341

:VIDPOK_11275
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11341

:VIDPOK_11297
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 16
goto @VIDPOK_11341

:VIDPOK_11319
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 20
goto @VIDPOK_11341

:VIDPOK_11341
if 
  $8865 == 3
goto_if_false @VIDPOK_11532
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11532 {caseNum1} 1 {caseLabel1} @VIDPOK_11422 {caseNum2} 2 {caseLabel2} @VIDPOK_11444 {caseNum3} 3 {caseLabel3} @VIDPOK_11466 {caseNum4} 4 {caseLabel4} @VIDPOK_11488 {caseNum5} 5 {caseLabel5} @VIDPOK_11510 {caseNum6} -1 {caseLabel6} @VIDPOK_11532 {caseNum7} -1 {caseLabel7} @VIDPOK_11532

:VIDPOK_11422
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11532

:VIDPOK_11444
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11532

:VIDPOK_11466
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_11532

:VIDPOK_11488
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11532

:VIDPOK_11510
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 15
goto @VIDPOK_11532

:VIDPOK_11532
if 
  $8865 == 2
goto_if_false @VIDPOK_11723
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11723 {caseNum1} 1 {caseLabel1} @VIDPOK_11613 {caseNum2} 2 {caseLabel2} @VIDPOK_11635 {caseNum3} 3 {caseLabel3} @VIDPOK_11657 {caseNum4} 4 {caseLabel4} @VIDPOK_11679 {caseNum5} 5 {caseLabel5} @VIDPOK_11701 {caseNum6} -1 {caseLabel6} @VIDPOK_11723 {caseNum7} -1 {caseLabel7} @VIDPOK_11723

:VIDPOK_11613
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11723

:VIDPOK_11635
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11723

:VIDPOK_11657
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11723

:VIDPOK_11679
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11723

:VIDPOK_11701
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 10
goto @VIDPOK_11723

:VIDPOK_11723
if 
  $8865 == 1
goto_if_false @VIDPOK_11914
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11914 {caseNum1} 1 {caseLabel1} @VIDPOK_11804 {caseNum2} 2 {caseLabel2} @VIDPOK_11826 {caseNum3} 3 {caseLabel3} @VIDPOK_11848 {caseNum4} 4 {caseLabel4} @VIDPOK_11870 {caseNum5} 5 {caseLabel5} @VIDPOK_11892 {caseNum6} -1 {caseLabel6} @VIDPOK_11914 {caseNum7} -1 {caseLabel7} @VIDPOK_11914

:VIDPOK_11804
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1
goto @VIDPOK_11914

:VIDPOK_11826
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11914

:VIDPOK_11848
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11914

:VIDPOK_11870
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11914

:VIDPOK_11892
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 5
goto @VIDPOK_11914

:VIDPOK_11914
4@ += 1

:VIDPOK_11921
if 
  $8865 <> 0
goto_if_false @VIDPOK_12072
if or
  TIMERA > 4000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_12065
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerPayout
add_score $player1 {money} 14@
set_lvar_int_to_lvar_int 12@ = 14@
sub_int_var_from_int_lvar 12@ -= $vp_dpad_is_pressed
increment_int_stat_no_message StatId.MoneyWonGambling {value} 12@
show_update_stats False
register_int_stat StatId.BiggestGamblingWin {value} 12@
show_update_stats True
3@ = 1
4@ = 0
$deal_value = 1
$high_cards_held = 1
$vp_dpad_is_pressed = 0

:VIDPOK_12065
goto @VIDPOK_12147

:VIDPOK_12072
if or
  TIMERA > 4000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_12147
show_update_stats False
register_int_stat StatId.BiggestGamblingLoss {value} $vp_dpad_is_pressed
show_update_stats True
$vp_dpad_is_pressed = 0
$high_cards_held = 1
3@ = 1
4@ = 0
$deal_value = 1

:VIDPOK_12147
gosub @VIDPOK_26451

:VIDPOK_12154
gosub @VIDPOK_12212
if 
  3@ > 0
goto_if_false @VIDPOK_12210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_12210
7@ = 1
$vp_cross_is_pressed = 1

:VIDPOK_12210
return 

:VIDPOK_12212
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @VIDPOK_12778
$vp_yellow += 1
if 
  $vp_yellow > 13
goto_if_false @VIDPOK_12259
$vp_yellow = 0

:VIDPOK_12259
if 
  $vp_yellow == 1
goto_if_false @VIDPOK_12297
write_debug "EDIT_BET_DETAILS"

:VIDPOK_12297
if 
  $vp_yellow == 2
goto_if_false @VIDPOK_12335
write_debug "EDIT_SHIFT_CARDS"

:VIDPOK_12335
if 
  $vp_yellow == 3
goto_if_false @VIDPOK_12390
write_debug "EDIT_SHIFT_TABLE_ROWS_AND_COLUMNS"

:VIDPOK_12390
if 
  $vp_yellow == 4
goto_if_false @VIDPOK_12429
write_debug "EDIT_HOLD_BUTTONS"

:VIDPOK_12429
if 
  $vp_yellow == 5
goto_if_false @VIDPOK_12463
write_debug "EDIT_BET_ONE"

:VIDPOK_12463
if 
  $vp_yellow == 6
goto_if_false @VIDPOK_12494
write_debug "EDIT_DEAL"

:VIDPOK_12494
if 
  $vp_yellow == 7
goto_if_false @VIDPOK_12537
write_debug "EDIT_BORDER_THICKNESS"

:VIDPOK_12537
if 
  $vp_yellow == 8
goto_if_false @VIDPOK_12575
write_debug "EDIT_TABLE_LINES"

:VIDPOK_12575
if 
  $vp_yellow == 9
goto_if_false @VIDPOK_12606
write_debug "EDIT_TEXT"

:VIDPOK_12606
if 
  $vp_yellow == 10
goto_if_false @VIDPOK_12638
write_debug "EDIT_TILES"

:VIDPOK_12638
if 
  $vp_yellow == 11
goto_if_false @VIDPOK_12681
write_debug "EDIT_TABLE_BACKGROUND"

:VIDPOK_12681
if 
  $vp_yellow == 12
goto_if_false @VIDPOK_12733
write_debug "EDIT_TABLE_HIGHLIGHTED_COLUMNS"

:VIDPOK_12733
if 
  $vp_yellow == 13
goto_if_false @VIDPOK_12778
write_debug "EDIT_BUTTON_TEXT_OFFSET"

:VIDPOK_12778
if 
  $vp_yellow == 1
goto_if_false @VIDPOK_12978
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_12862
$vp_edit_mode += 1
if 
  $vp_edit_mode > 7
goto_if_false @VIDPOK_12843
$vp_edit_mode = 0

:VIDPOK_12843
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_12862
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_12891
$8915($vp_edit_mode,8f) += -1.0

:VIDPOK_12891
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_12920
$8915($vp_edit_mode,8f) += 1.0

:VIDPOK_12920
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_12949
$vp_edit_counter($vp_edit_mode,8f) += 1.0

:VIDPOK_12949
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_12978
$vp_edit_counter($vp_edit_mode,8f) += -1.0

:VIDPOK_12978
if 
  $vp_yellow == 2
goto_if_false @VIDPOK_13278
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13062
$vp_edit_mode += 1
if 
  $vp_edit_mode > 4
goto_if_false @VIDPOK_13043
$vp_edit_mode = 0

:VIDPOK_13043
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_13062
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13091
$8877($vp_edit_mode,5f) += -1.0

:VIDPOK_13091
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13120
$8877($vp_edit_mode,5f) += 1.0

:VIDPOK_13120
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13149
$vp_initial_stake($vp_edit_mode,5f) += 1.0

:VIDPOK_13149
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13178
$vp_initial_stake($vp_edit_mode,5f) += -1.0

:VIDPOK_13178
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13203
$vp_card_height += 1.0

:VIDPOK_13203
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13228
$vp_card_height += -1.0

:VIDPOK_13228
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13253
$8923 += 1.0

:VIDPOK_13253
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13278
$8923 += -1.0

:VIDPOK_13278
if 
  $vp_yellow == 3
goto_if_false @VIDPOK_13528
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13362
$vp_edit_mode += 1
if 
  $vp_edit_mode > 9
goto_if_false @VIDPOK_13343
$vp_edit_mode = 0

:VIDPOK_13343
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_13362
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13391
$8892($vp_edit_mode,10f) += -1.0

:VIDPOK_13391
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13420
$8892($vp_edit_mode,10f) += 1.0

:VIDPOK_13420
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13474
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_13460
$vp_edit_mode = 0

:VIDPOK_13460
$deal_y($vp_edit_mode,6f) += 1.0

:VIDPOK_13474
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13528
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_13514
$vp_edit_mode = 0

:VIDPOK_13514
$deal_y($vp_edit_mode,6f) += -1.0

:VIDPOK_13528
if 
  $vp_yellow == 4
goto_if_false @VIDPOK_13711
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13561

:VIDPOK_13561
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @VIDPOK_13586
$vp_card_width += -1.0

:VIDPOK_13586
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @VIDPOK_13611
$vp_card_width += 1.0

:VIDPOK_13611
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13636
$vp_hold_button_offset += 1.0

:VIDPOK_13636
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13661
$vp_hold_button_offset += -1.0

:VIDPOK_13661
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13686
$vp_hold_width += 1.0

:VIDPOK_13686
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13711
$vp_hold_width += -1.0

:VIDPOK_13711
if 
  $vp_yellow == 5
goto_if_false @VIDPOK_13944
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13744

:VIDPOK_13744
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13769
$bet_one_x += -1.0

:VIDPOK_13769
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13794
$bet_one_x += 1.0

:VIDPOK_13794
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13819
$8882 += 1.0

:VIDPOK_13819
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13844
$8882 += -1.0

:VIDPOK_13844
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13869
$vp_deal_height += 1.0

:VIDPOK_13869
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13894
$vp_deal_height += -1.0

:VIDPOK_13894
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13919
$vp_bet_one_width += 1.0

:VIDPOK_13919
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13944
$vp_bet_one_width += -1.0

:VIDPOK_13944
if 
  $vp_yellow == 6
goto_if_false @VIDPOK_14177
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13977

:VIDPOK_13977
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14002
$deal_x += -1.0

:VIDPOK_14002
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14027
$deal_x += 1.0

:VIDPOK_14027
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14052
$bet_one_y += 1.0

:VIDPOK_14052
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14077
$bet_one_y += -1.0

:VIDPOK_14077
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_14102
$vp_border_height += 1.0

:VIDPOK_14102
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_14127
$vp_border_height += -1.0

:VIDPOK_14127
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_14152
$vp_deal_width += 1.0

:VIDPOK_14152
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_14177
$vp_deal_width += -1.0

:VIDPOK_14177
if 
  $vp_yellow == 7
goto_if_false @VIDPOK_14245
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14220
$vp_hold_height += 0.1

:VIDPOK_14220
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14245
$vp_hold_height += -0.1

:VIDPOK_14245
if 
  $vp_yellow == 8
goto_if_false @VIDPOK_14616
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_14329
$vp_edit_mode += 1
if 
  $vp_edit_mode > 8
goto_if_false @VIDPOK_14310
$vp_edit_mode = 0

:VIDPOK_14310
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_14329
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14358
$8944($vp_edit_mode,9f) += -1.0

:VIDPOK_14358
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14387
$8944($vp_edit_mode,9f) += 1.0

:VIDPOK_14387
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14416
$vp_bet_one_height($vp_edit_mode,9f) += 1.0

:VIDPOK_14416
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14445
$vp_bet_one_height($vp_edit_mode,9f) += -1.0

:VIDPOK_14445
if 
is_ps2_keyboard_key_just_pressed 93
goto_if_false @VIDPOK_14500
set_lvar_float_to_var_float 15@ = $8953($vp_edit_mode,9f)
set_var_float_to_var_float $8953($vp_edit_mode,9f) = $8962($vp_edit_mode,9f)
set_var_float_to_lvar_float $8962($vp_edit_mode,9f) = 15@

:VIDPOK_14500
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_14529
$8953($vp_edit_mode,9f) += -1.0

:VIDPOK_14529
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_14558
$8953($vp_edit_mode,9f) += 1.0

:VIDPOK_14558
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_14587
$8962($vp_edit_mode,9f) += 1.0

:VIDPOK_14587
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_14616
$8962($vp_edit_mode,9f) += -1.0

:VIDPOK_14616
if 
  $vp_yellow == 9
goto_if_false @VIDPOK_15544
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_14700
$vp_edit_mode += 1
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_14681
$vp_edit_mode = 0

:VIDPOK_14681
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_14700
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14729
$8977($vp_edit_mode,6f) += -0.01

:VIDPOK_14729
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14758
$8977($vp_edit_mode,6f) += 0.01

:VIDPOK_14758
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14787
$8971($vp_edit_mode,6f) += 0.01

:VIDPOK_14787
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14816
$8971($vp_edit_mode,6f) += -0.01

:VIDPOK_14816
if 
is_ps2_keyboard_key_just_pressed 21
goto_if_false @VIDPOK_14856
$8983($vp_edit_mode,6i) += 1
write_debug_with_int "RED" {number} $8983($vp_edit_mode,6i)

:VIDPOK_14856
if 
is_ps2_keyboard_key_just_pressed 25
goto_if_false @VIDPOK_14896
$8983($vp_edit_mode,6i) += -1
write_debug_with_int "RED" {number} $8983($vp_edit_mode,6i)

:VIDPOK_14896
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @VIDPOK_14938
$8989($vp_edit_mode,6i) += 1
write_debug_with_int "GREEN" {number} $8989($vp_edit_mode,6i)

:VIDPOK_14938
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @VIDPOK_14980
$8989($vp_edit_mode,6i) += -1
write_debug_with_int "GREEN" {number} $8989($vp_edit_mode,6i)

:VIDPOK_14980
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @VIDPOK_15021
$8995($vp_edit_mode,6i) += 1
write_debug_with_int "BLUE" {number} $8995($vp_edit_mode,6i)

:VIDPOK_15021
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @VIDPOK_15062
$8995($vp_edit_mode,6i) += -1
write_debug_with_int "BLUE" {number} $8995($vp_edit_mode,6i)

:VIDPOK_15062
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @VIDPOK_15102
$9019($vp_edit_mode,6i) += 1
write_debug_with_int "RED" {number} $9019($vp_edit_mode,6i)

:VIDPOK_15102
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @VIDPOK_15142
$9019($vp_edit_mode,6i) += -1
write_debug_with_int "RED" {number} $9019($vp_edit_mode,6i)

:VIDPOK_15142
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @VIDPOK_15184
$9025($vp_edit_mode,6i) += 1
write_debug_with_int "GREEN" {number} $9025($vp_edit_mode,6i)

:VIDPOK_15184
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @VIDPOK_15226
$9025($vp_edit_mode,6i) += -1
write_debug_with_int "GREEN" {number} $9025($vp_edit_mode,6i)

:VIDPOK_15226
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @VIDPOK_15267
$9031($vp_edit_mode,6i) += 1
write_debug_with_int "BLUE" {number} $9031($vp_edit_mode,6i)

:VIDPOK_15267
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @VIDPOK_15308
$9031($vp_edit_mode,6i) += -1
write_debug_with_int "BLUE" {number} $9031($vp_edit_mode,6i)

:VIDPOK_15308
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_15334
$9013($vp_edit_mode,6i) += 1

:VIDPOK_15334
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_15360
$9013($vp_edit_mode,6i) += -1

:VIDPOK_15360
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @VIDPOK_15419
$9001($vp_edit_mode,6i) += 1
if 
  $9001($vp_edit_mode,6i) > 3
goto_if_false @VIDPOK_15419
$9001($vp_edit_mode,6i) = 0

:VIDPOK_15419
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @VIDPOK_15478
$9001($vp_edit_mode,6i) += -1
if 
  0 > $9001($vp_edit_mode,6i)
goto_if_false @VIDPOK_15478
$9001($vp_edit_mode,6i) = 3

:VIDPOK_15478
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @VIDPOK_15544
if 
  $9007($vp_edit_mode,6i) == 0
goto_if_false @VIDPOK_15533
$9007($vp_edit_mode,6i) = 1
goto @VIDPOK_15544

:VIDPOK_15533
$9007($vp_edit_mode,6i) = 0

:VIDPOK_15544
if 
  $vp_yellow == 10
goto_if_false @VIDPOK_15728
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_15587
$TILE_WIDTH += -1.0

:VIDPOK_15587
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_15612
$TILE_WIDTH += 1.0

:VIDPOK_15612
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_15637
$vp_selected_colour_direction += 1.0

:VIDPOK_15637
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_15662
$vp_selected_colour_direction += -1.0

:VIDPOK_15662
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_15728
$button_text_offset += 1
if 
  $button_text_offset > 3
goto_if_false @VIDPOK_15709
$button_text_offset = 0

:VIDPOK_15709
write_debug_with_int "VP_TILE_TYPE" {number} $button_text_offset

:VIDPOK_15728
if 
  $vp_yellow == 11
goto_if_false @VIDPOK_15946
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_15771
$vp_table_x += -1.0

:VIDPOK_15771
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_15796
$vp_table_x += 1.0

:VIDPOK_15796
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_15821
$vp_tile_type += 1.0

:VIDPOK_15821
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_15846
$vp_tile_type += -1.0

:VIDPOK_15846
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_15871
$vp_table_width += 1.0

:VIDPOK_15871
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_15896
$vp_table_width += -1.0

:VIDPOK_15896
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_15921
$vp_table_y += 1.0

:VIDPOK_15921
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_15946
$vp_table_y += -1.0

:VIDPOK_15946
if 
  $vp_yellow == 12
goto_if_false @VIDPOK_16262
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_16030
$vp_edit_mode += 1
if 
  $vp_edit_mode > 4
goto_if_false @VIDPOK_16011
$vp_edit_mode = 0

:VIDPOK_16011
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_mode

:VIDPOK_16030
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_16059
$9048($vp_edit_mode,5f) += -1.0

:VIDPOK_16059
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_16088
$9048($vp_edit_mode,5f) += 1.0

:VIDPOK_16088
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_16117
$vp_table_height($vp_edit_mode,5f) += 1.0

:VIDPOK_16117
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_16146
$vp_table_height($vp_edit_mode,5f) += -1.0

:VIDPOK_16146
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_16175
$9058($vp_edit_mode,5f) += 1.0

:VIDPOK_16175
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_16204
$9058($vp_edit_mode,5f) += -1.0

:VIDPOK_16204
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_16233
$9053($vp_edit_mode,5f) += 1.0

:VIDPOK_16233
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_16262
$9053($vp_edit_mode,5f) += -1.0

:VIDPOK_16262
if 
  $vp_yellow == 13
goto_if_false @VIDPOK_16330
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_16305
$9037 += 0.05

:VIDPOK_16305
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_16330
$9037 += -0.05

:VIDPOK_16330
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @VIDPOK_26449
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_16356
if 
  8 > 12@
goto_if_false @VIDPOK_16940
save_newline_to_debug_file 
save_string_to_debug_file "VP_SCREEN_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_edit_counter(12@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_SCREEN_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8915(12@,8f)
12@ += 1
goto @VIDPOK_16356

:VIDPOK_16940
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_16951
if 
  5 > 12@
goto_if_false @VIDPOK_17535
save_newline_to_debug_file 
save_string_to_debug_file "CARD_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_initial_stake(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "CARD_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8877(12@,5f)
12@ += 1
goto @VIDPOK_16951

:VIDPOK_17535
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_CARD_WIDTH = "
save_float_to_debug_file $vp_card_height
save_newline_to_debug_file 
save_string_to_debug_file "VP_CARD_HEIGHT = "
save_float_to_debug_file $8923
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_17824
if 
  10 > 12@
goto_if_false @VIDPOK_18132
save_newline_to_debug_file 
save_string_to_debug_file "ROW_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8892(12@,10f)
12@ += 1
goto @VIDPOK_17824

:VIDPOK_18132
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_18143
if 
  6 > 12@
goto_if_false @VIDPOK_18451
save_newline_to_debug_file 
save_string_to_debug_file "COL_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $deal_y(12@,6f)
12@ += 1
goto @VIDPOK_18143

:VIDPOK_18451
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_BUTTON_OFFSET = "
save_float_to_debug_file $vp_card_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_WIDTH = "
save_float_to_debug_file $vp_hold_button_offset
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_HEIGHT = "
save_float_to_debug_file $vp_hold_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BET_ONE_X = "
save_float_to_debug_file $8882
save_newline_to_debug_file 
save_string_to_debug_file "BET_ONE_Y = "
save_float_to_debug_file $bet_one_x
save_newline_to_debug_file 
save_string_to_debug_file "VP_BET_ONE_WIDTH = "
save_float_to_debug_file $vp_deal_height
save_newline_to_debug_file 
save_string_to_debug_file "VP_BET_ONE_HEIGHT = "
save_float_to_debug_file $vp_bet_one_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "DEAL_X = "
save_float_to_debug_file $bet_one_y
save_newline_to_debug_file 
save_string_to_debug_file "DEAL_Y = "
save_float_to_debug_file $deal_x
save_newline_to_debug_file 
save_string_to_debug_file "VP_DEAL_WIDTH = "
save_float_to_debug_file $vp_border_height
save_newline_to_debug_file 
save_string_to_debug_file "VP_DEAL_HEIGHT = "
save_float_to_debug_file $vp_deal_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_BORDER_THICKNESS = "
save_float_to_debug_file $vp_hold_height
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_20122
if 
  9 > 12@
goto_if_false @VIDPOK_21258
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_bet_one_height(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8944(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_WIDTH["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8953(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_HEIGHT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8962(12@,9f)
12@ += 1
goto @VIDPOK_20122

:VIDPOK_21258
12@ = 0

:VIDPOK_21265
if 
  6 > 12@
goto_if_false @VIDPOK_24333
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_SCALE_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8971(12@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_SCALE_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $8977(12@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_R["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $8983(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_G["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $8989(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_B["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $8995(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_FONT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9001(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_CENTRE["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9007(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9013(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_R["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9019(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_G["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9025(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_B["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $9031(12@,6i)
12@ += 1
goto @VIDPOK_21265

:VIDPOK_24333
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TILE_HEIGHT = "
save_float_to_debug_file $TILE_WIDTH
save_newline_to_debug_file 
save_string_to_debug_file "TILE_WIDTH = "
save_float_to_debug_file $vp_selected_colour_direction
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_X = "
save_float_to_debug_file $vp_tile_type
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_Y = "
save_float_to_debug_file $vp_table_x
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_WIDTH = "
save_float_to_debug_file $vp_table_y
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_HEIGHT = "
save_float_to_debug_file $vp_table_width
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_25174
if 
  5 > 12@
goto_if_false @VIDPOK_26310
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_table_height(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $9048(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_WIDTH["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $9053(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_HEIGHT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $9058(12@,5f)
12@ += 1
goto @VIDPOK_25174

:VIDPOK_26310
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BUTTON_TEXT_OFFSET = "
save_float_to_debug_file $9037

:VIDPOK_26449
return 

:VIDPOK_26451
if 
  $vp_selected_colour == 0
goto_if_false @VIDPOK_26517
$vphud_int += 10
if 
  $vphud_int >= 255
goto_if_false @VIDPOK_26510
$vphud_int = 255
$vp_selected_colour = 1

:VIDPOK_26510
goto @VIDPOK_26556

:VIDPOK_26517
$vphud_int += -10
if 
  0 >= $vphud_int
goto_if_false @VIDPOK_26556
$vphud_int = 0
$vp_selected_colour = 0

:VIDPOK_26556
if 
  $button_text_offset <> 0
goto_if_false @VIDPOK_26827
12@ = 0
set_var_float_to_var_float $x = $vp_selected_colour_direction
$x /= 2.0
set_var_float_to_var_float $y = $TILE_WIDTH
$y /= 2.0

:VIDPOK_26617
if and
  480.0 > $y
  100 > 12@
goto_if_false @VIDPOK_26820

:VIDPOK_26645
if and
  640.0 > $x
  100 > 12@
goto_if_false @VIDPOK_26787
if 
  $button_text_offset == 1
goto_if_false @VIDPOK_26719
draw_sprite 64 {offsetLeft} $x {offsetTop} $y {width} $vp_selected_colour_direction {height} $TILE_WIDTH {r} 150 {g} 150 {b} 150 {a} 255

:VIDPOK_26719
if 
  $button_text_offset == 2
goto_if_false @VIDPOK_26765
draw_sprite 65 {offsetLeft} $x {offsetTop} $y {width} $vp_selected_colour_direction {height} $TILE_WIDTH {r} 150 {g} 150 {b} 150 {a} 255

:VIDPOK_26765
12@ += 1
add_float_var_to_float_var $x += $vp_selected_colour_direction
goto @VIDPOK_26645

:VIDPOK_26787
add_float_var_to_float_var $y += $TILE_WIDTH
set_var_float_to_var_float $x = $vp_selected_colour_direction
$x /= 2.0
goto @VIDPOK_26617

:VIDPOK_26820
goto @VIDPOK_26859

:VIDPOK_26827
draw_rect 320.0 {y} 240.0 {width} 640.0 {height} 480.0 {r} 6 {g} 16 {b} 140 {a} 255

:VIDPOK_26859
draw_sprite 63 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
gosub @VIDPOK_33747
set_text_right_justify False
set_text_centre True
display_text $vp_edit_counter[0] {offsetTop} $8915[0] {key} 'VP02'
gosub @VIDPOK_33555
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_edit_counter[6] {offsetTop} $8915[6] {key} 'DOLLAR' {num} 1@
12@ = store_score $player1
gosub @VIDPOK_34793
gosub @VIDPOK_33555
set_text_right_justify True
set_lvar_int_to_var_int 13@ = $bj_payout
13@ *= -1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 13@ >= 12@
goto_if_false @VIDPOK_27154
display_text $vp_edit_counter[1] {offsetTop} $8915[1] {key} 'VP18'
goto @VIDPOK_27174

:VIDPOK_27154
display_text_with_number $vp_edit_counter[1] {offsetTop} $8915[1] {key} 'VP16' {num} 12@

:VIDPOK_27174
gosub @VIDPOK_33747
set_text_right_justify False
set_text_centre True
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
display_text $vp_edit_counter[2] {offsetTop} $8915[2] {key} 'VP03'
gosub @VIDPOK_33555
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_edit_counter[7] {offsetTop} $8915[7] {key} 'DOLLAR' {num} 12@
gosub @VIDPOK_34131
display_text_with_number $vp_edit_counter[4] {offsetTop} $8915[4] {key} 'VP17' {num} 12@
draw_rect $vp_tile_type {y} $vp_table_x {width} $vp_table_y {height} $vp_table_width {r} 0 {g} 0 {b} 0 {a} 255
if 
  3@ <> 6
goto_if_false @VIDPOK_27553
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27553 {caseNum1} 1 {caseLabel1} @VIDPOK_27388 {caseNum2} 2 {caseLabel2} @VIDPOK_27421 {caseNum3} 3 {caseLabel3} @VIDPOK_27454 {caseNum4} 4 {caseLabel4} @VIDPOK_27487 {caseNum5} 5 {caseLabel5} @VIDPOK_27520 {caseNum6} -1 {caseLabel6} @VIDPOK_27553 {caseNum7} -1 {caseLabel7} @VIDPOK_27553

:VIDPOK_27388
draw_rect $vp_table_height[0] {y} $9048[0] {width} $9053[0] {height} $9058[0] {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
goto @VIDPOK_27553

:VIDPOK_27421
draw_rect $vp_table_height[1] {y} $9048[1] {width} $9053[1] {height} $9058[1] {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
goto @VIDPOK_27553

:VIDPOK_27454
draw_rect $vp_table_height[2] {y} $9048[2] {width} $9053[2] {height} $9058[2] {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
goto @VIDPOK_27553

:VIDPOK_27487
draw_rect $vp_table_height[3] {y} $9048[3] {width} $9053[3] {height} $9058[3] {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
goto @VIDPOK_27553

:VIDPOK_27520
draw_rect $vp_table_height[4] {y} $9048[4] {width} $9053[4] {height} $9058[4] {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
goto @VIDPOK_27553

:VIDPOK_27553
if and
  3@ == 6
  $8865 <> 0
goto_if_false @VIDPOK_27890
12@ = 10
sub_int_var_from_int_lvar 12@ -= $8865
set_lvar_float_to_var_float 15@ = $8892(12@,10f)
15@ += 9.0
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27848 {caseNum1} 1 {caseLabel1} @VIDPOK_27678 {caseNum2} 2 {caseLabel2} @VIDPOK_27712 {caseNum3} 3 {caseLabel3} @VIDPOK_27746 {caseNum4} 4 {caseLabel4} @VIDPOK_27780 {caseNum5} 5 {caseLabel5} @VIDPOK_27814 {caseNum6} -1 {caseLabel6} @VIDPOK_27848 {caseNum7} -1 {caseLabel7} @VIDPOK_27848

:VIDPOK_27678
draw_rect $vp_table_height[0] {y} 15@ {width} $9053[0] {height} 18.0 {r} 255 {g} $vphud_int {b} 0 {a} 255
goto @VIDPOK_27848

:VIDPOK_27712
draw_rect $vp_table_height[1] {y} 15@ {width} $9053[1] {height} 18.0 {r} 255 {g} $vphud_int {b} 0 {a} 255
goto @VIDPOK_27848

:VIDPOK_27746
draw_rect $vp_table_height[2] {y} 15@ {width} $9053[2] {height} 18.0 {r} 255 {g} $vphud_int {b} 0 {a} 255
goto @VIDPOK_27848

:VIDPOK_27780
draw_rect $vp_table_height[3] {y} 15@ {width} $9053[3] {height} 18.0 {r} 255 {g} $vphud_int {b} 0 {a} 255
goto @VIDPOK_27848

:VIDPOK_27814
draw_rect $vp_table_height[4] {y} 15@ {width} $9053[4] {height} 18.0 {r} 255 {g} $vphud_int {b} 0 {a} 255
goto @VIDPOK_27848

:VIDPOK_27848
gosub @VIDPOK_33555
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_edit_counter[3] {offsetTop} $8915[3] {key} 'VP04' {num} 14@
goto @VIDPOK_27957

:VIDPOK_27890
if and
  3@ == 6
  $8865 == 0
goto_if_false @VIDPOK_27957
14@ = 0
gosub @VIDPOK_33555
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_edit_counter[3] {offsetTop} $8915[3] {key} 'VP04' {num} 14@

:VIDPOK_27957
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[1] {key} 'VP06'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[2] {key} 'VP07'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[3] {key} 'VP08'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[4] {key} 'VP09'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[5] {key} 'VP10'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[6] {key} 'VP11'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[7] {key} 'VP12'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[8] {key} 'VP13'
gosub @VIDPOK_33939
display_text $deal_y[0] {offsetTop} $8892[9] {key} 'VP14'
gosub @VIDPOK_34131
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text $vp_edit_counter[5] {offsetTop} $8915[5] {key} 'VP05'
gosub @VIDPOK_34131
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $deal_y[1] {offsetTop} $8892[0] {key} 'VP15' {num} 1
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[1] {key} 'VP15' {num} 250
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[2] {key} 'VP15' {num} 50
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[3] {key} 'VP15' {num} 25
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[4] {key} 'VP15' {num} 9
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[5] {key} 'VP15' {num} 6
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[6] {key} 'VP15' {num} 4
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[7] {key} 'VP15' {num} 3
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[8] {key} 'VP15' {num} 2
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[1] {offsetTop} $8892[9] {key} 'VP15' {num} 1
gosub @VIDPOK_34131
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $deal_y[2] {offsetTop} $8892[0] {key} 'VP15' {num} 2
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[1] {key} 'VP15' {num} 500
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[2] {key} 'VP15' {num} 100
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[3] {key} 'VP15' {num} 50
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[4] {key} 'VP15' {num} 18
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[5] {key} 'VP15' {num} 12
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[6] {key} 'VP15' {num} 8
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[7] {key} 'VP15' {num} 6
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[8] {key} 'VP15' {num} 4
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[2] {offsetTop} $8892[9] {key} 'VP15' {num} 2
gosub @VIDPOK_34131
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $deal_y[3] {offsetTop} $8892[0] {key} 'VP15' {num} 3
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[1] {key} 'VP15' {num} 750
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[2] {key} 'VP15' {num} 150
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[3] {key} 'VP15' {num} 75
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[4] {key} 'VP15' {num} 27
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[5] {key} 'VP15' {num} 18
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[6] {key} 'VP15' {num} 12
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[7] {key} 'VP15' {num} 9
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[8] {key} 'VP15' {num} 6
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[3] {offsetTop} $8892[9] {key} 'VP15' {num} 3
gosub @VIDPOK_34131
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $deal_y[4] {offsetTop} $8892[0] {key} 'VP15' {num} 4
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[1] {key} 'VP15' {num} 1000
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[2] {key} 'VP15' {num} 200
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[3] {key} 'VP15' {num} 100
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[4] {key} 'VP15' {num} 36
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[5] {key} 'VP15' {num} 24
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[6] {key} 'VP15' {num} 16
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[7] {key} 'VP15' {num} 12
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[8] {key} 'VP15' {num} 8
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[4] {offsetTop} $8892[9] {key} 'VP15' {num} 4
gosub @VIDPOK_34131
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $deal_y[5] {offsetTop} $8892[0] {key} 'VP15' {num} 5
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[1] {key} 'VP15' {num} 4000
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[2] {key} 'VP15' {num} 250
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[3] {key} 'VP15' {num} 125
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[4] {key} 'VP15' {num} 45
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[5] {key} 'VP15' {num} 30
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[6] {key} 'VP15' {num} 20
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[7] {key} 'VP15' {num} 15
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[8] {key} 'VP15' {num} 10
gosub @VIDPOK_34323
set_text_right_justify True
display_text_with_number $deal_y[5] {offsetTop} $8892[9] {key} 'VP15' {num} 5
draw_rect $vp_bet_one_height[0] {y} $8944[0] {width} $8953[0] {height} $8962[0] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[1] {y} $8944[1] {width} $8953[1] {height} $8962[1] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[2] {y} $8944[2] {width} $8953[2] {height} $8962[2] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[3] {y} $8944[3] {width} $8953[3] {height} $8962[3] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[4] {y} $8944[4] {width} $8953[4] {height} $8962[4] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[5] {y} $8944[5] {width} $8953[5] {height} $8962[5] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[6] {y} $8944[6] {width} $8953[6] {height} $8962[6] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[7] {y} $8944[7] {width} $8953[7] {height} $8962[7] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
draw_rect $vp_bet_one_height[8] {y} $8944[8] {width} $8953[8] {height} $8962[8] {r} $9019[0] {g} $9025[0] {b} $9031[0] {a} 255
$9063 = 0

:VIDPOK_30030
if 
  5 > $9063
goto_if_false @VIDPOK_31216
if 
  $no_of_coins($9063,5i) == 0
goto_if_false @VIDPOK_30113
draw_sprite 53 {offsetLeft} $vp_initial_stake($9063,5f) {offsetTop} $8877($9063,5f) {width} $vp_card_height {height} $8923 {r} 128 {g} 128 {b} 128 {a} 255
goto @VIDPOK_30154

:VIDPOK_30113
draw_sprite $no_of_coins($9063,5i) {offsetLeft} $vp_initial_stake($9063,5f) {offsetTop} $8877($9063,5f) {width} $vp_card_height {height} $8923 {r} 128 {g} 128 {b} 128 {a} 255

:VIDPOK_30154
set_var_float_to_var_float $x = $vp_initial_stake($9063,5f)
set_var_float_to_var_float $y = $8877($9063,5f)
add_float_var_to_float_var $y += $vp_card_width
if 
  $8836($9063,5i) == 0
goto_if_false @VIDPOK_30365
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30365
if 
  $8836($9063,5i) == 1
goto_if_false @VIDPOK_30546
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 128
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30546
if 
  $8836($9063,5i) == 2
goto_if_false @VIDPOK_30707
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30707
if 
  $8836($9063,5i) == 3
goto_if_false @VIDPOK_30872
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30872
if 
  $8836($9063,5i) == 4
goto_if_false @VIDPOK_31035
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_31035
if 
  $8836($9063,5i) == 5
goto_if_false @VIDPOK_31202
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $x {y} $y {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_button_offset {height} $vp_hold_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_31202
$9063 += 1
goto @VIDPOK_30030

:VIDPOK_31216
if 
  $8841 == 0
goto_if_false @VIDPOK_31399
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_31399
if 
  $8841 == 1
goto_if_false @VIDPOK_31584
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 128
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_31584
if 
  $8841 == 2
goto_if_false @VIDPOK_31749
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_31749
if 
  $8841 == 3
goto_if_false @VIDPOK_31918
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_31918
if 
  $8841 == 4
goto_if_false @VIDPOK_32085
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_32085
if 
  $8841 == 5
goto_if_false @VIDPOK_32256
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $8882 {y} $bet_one_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $8882 {y} $bet_one_x {width} $vp_deal_height {height} $vp_bet_one_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
display_text $8882 {offsetTop} $y {key} 'VP20'

:VIDPOK_32256
if 
  $bet_one_value == 0
goto_if_false @VIDPOK_32439
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_32439
if 
  $bet_one_value == 1
goto_if_false @VIDPOK_32624
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 128
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34515
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $9013[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_32624
if 
  $bet_one_value == 2
goto_if_false @VIDPOK_32789
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_32789
if 
  $bet_one_value == 3
goto_if_false @VIDPOK_32958
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_32958
if 
  $bet_one_value == 4
goto_if_false @VIDPOK_33125
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_33125
if 
  $bet_one_value == 5
goto_if_false @VIDPOK_33296
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_thickness {height} $vp_border_width {r} 255 {g} $vphud_int {b} 0 {a} 255
draw_rect $bet_one_y {y} $deal_x {width} $vp_border_height {height} $vp_deal_width {r} $8983[1] {g} $8989[1] {b} $8995[1] {a} 255
gosub @VIDPOK_34515
set_text_colour $8983[5] {green} $vphud_int {blue} $8995[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_y {offsetTop} $y {key} 'VP21'

:VIDPOK_33296
return 

:VIDPOK_33298
if and
  27 > $TILE_HEIGHT
  $TILE_HEIGHT > 13
goto_if_false @VIDPOK_33338
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 13

:VIDPOK_33338
if and
  40 > $TILE_HEIGHT
  $TILE_HEIGHT > 26
goto_if_false @VIDPOK_33378
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 26

:VIDPOK_33378
if and
  53 > $TILE_HEIGHT
  $TILE_HEIGHT > 39
goto_if_false @VIDPOK_33418
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 39

:VIDPOK_33418
if 
  13 >= $TILE_HEIGHT
goto_if_false @VIDPOK_33444
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT

:VIDPOK_33444
return 

:VIDPOK_33446
if 
  14 > $TILE_HEIGHT
goto_if_false @VIDPOK_33478
$vp_in_card_value = 1
goto @VIDPOK_33549

:VIDPOK_33478
if 
  27 > $TILE_HEIGHT
goto_if_false @VIDPOK_33510
$vp_in_card_value = 2
goto @VIDPOK_33549

:VIDPOK_33510
if 
  40 > $TILE_HEIGHT
goto_if_false @VIDPOK_33542
$vp_in_card_value = 3
goto @VIDPOK_33549

:VIDPOK_33542
$vp_in_card_value = 4

:VIDPOK_33549
return 

:VIDPOK_33551
return 

:VIDPOK_33553
return 

:VIDPOK_33555
set_text_scale $8971[0] {heightScale} $8977[0]
set_text_colour $8983[0] {green} $8989[0] {blue} $8995[0] {alpha} 255
if 
  $9007[0] == 1
goto_if_false @VIDPOK_33599
set_text_centre True

:VIDPOK_33599
switch_start $9001[0] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33706 {caseNum1} 0 {caseLabel1} @VIDPOK_33662 {caseNum2} 1 {caseLabel2} @VIDPOK_33673 {caseNum3} 2 {caseLabel3} @VIDPOK_33684 {caseNum4} 3 {caseLabel4} @VIDPOK_33695 {caseNum5} -1 {caseLabel5} @VIDPOK_33717 {caseNum6} -1 {caseLabel6} @VIDPOK_33717 {caseNum7} -1 {caseLabel7} @VIDPOK_33717

:VIDPOK_33662
set_text_font Font.Gothic
goto @VIDPOK_33717

:VIDPOK_33673
set_text_font Font.Subtitles
goto @VIDPOK_33717

:VIDPOK_33684
set_text_font Font.Menu
goto @VIDPOK_33717

:VIDPOK_33695
set_text_font Font.Pricedown
goto @VIDPOK_33717

:VIDPOK_33706
set_text_font Font.Gothic
goto @VIDPOK_33717

:VIDPOK_33717
set_text_edge $9013[0] {red} $9019[0] {green} $9025[0] {blue} $9031[0] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_33747
set_text_scale $8971[1] {heightScale} $8977[1]
set_text_colour $8983[1] {green} $8989[1] {blue} $8995[1] {alpha} 255
if 
  $9007[1] == 1
goto_if_false @VIDPOK_33791
set_text_centre True

:VIDPOK_33791
switch_start $9001[1] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33898 {caseNum1} 0 {caseLabel1} @VIDPOK_33854 {caseNum2} 1 {caseLabel2} @VIDPOK_33865 {caseNum3} 2 {caseLabel3} @VIDPOK_33876 {caseNum4} 3 {caseLabel4} @VIDPOK_33887 {caseNum5} -1 {caseLabel5} @VIDPOK_33909 {caseNum6} -1 {caseLabel6} @VIDPOK_33909 {caseNum7} -1 {caseLabel7} @VIDPOK_33909

:VIDPOK_33854
set_text_font Font.Gothic
goto @VIDPOK_33909

:VIDPOK_33865
set_text_font Font.Subtitles
goto @VIDPOK_33909

:VIDPOK_33876
set_text_font Font.Menu
goto @VIDPOK_33909

:VIDPOK_33887
set_text_font Font.Pricedown
goto @VIDPOK_33909

:VIDPOK_33898
set_text_font Font.Gothic
goto @VIDPOK_33909

:VIDPOK_33909
set_text_edge $9013[1] {red} $9019[1] {green} $9025[1] {blue} $9031[1] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_33939
set_text_scale $8971[2] {heightScale} $8977[2]
set_text_colour $8983[2] {green} $8989[2] {blue} $8995[2] {alpha} 255
if 
  $9007[2] == 1
goto_if_false @VIDPOK_33983
set_text_centre True

:VIDPOK_33983
switch_start $9001[2] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34090 {caseNum1} 0 {caseLabel1} @VIDPOK_34046 {caseNum2} 1 {caseLabel2} @VIDPOK_34057 {caseNum3} 2 {caseLabel3} @VIDPOK_34068 {caseNum4} 3 {caseLabel4} @VIDPOK_34079 {caseNum5} -1 {caseLabel5} @VIDPOK_34101 {caseNum6} -1 {caseLabel6} @VIDPOK_34101 {caseNum7} -1 {caseLabel7} @VIDPOK_34101

:VIDPOK_34046
set_text_font Font.Gothic
goto @VIDPOK_34101

:VIDPOK_34057
set_text_font Font.Subtitles
goto @VIDPOK_34101

:VIDPOK_34068
set_text_font Font.Menu
goto @VIDPOK_34101

:VIDPOK_34079
set_text_font Font.Pricedown
goto @VIDPOK_34101

:VIDPOK_34090
set_text_font Font.Gothic
goto @VIDPOK_34101

:VIDPOK_34101
set_text_edge $9013[2] {red} $9019[2] {green} $9025[2] {blue} $9031[2] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34131
set_text_scale $8971[3] {heightScale} $8977[3]
set_text_colour $8983[3] {green} $8989[3] {blue} $8995[3] {alpha} 255
if 
  $9007[3] == 1
goto_if_false @VIDPOK_34175
set_text_centre True

:VIDPOK_34175
switch_start $9001[3] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34282 {caseNum1} 0 {caseLabel1} @VIDPOK_34238 {caseNum2} 1 {caseLabel2} @VIDPOK_34249 {caseNum3} 2 {caseLabel3} @VIDPOK_34260 {caseNum4} 3 {caseLabel4} @VIDPOK_34271 {caseNum5} -1 {caseLabel5} @VIDPOK_34293 {caseNum6} -1 {caseLabel6} @VIDPOK_34293 {caseNum7} -1 {caseLabel7} @VIDPOK_34293

:VIDPOK_34238
set_text_font Font.Gothic
goto @VIDPOK_34293

:VIDPOK_34249
set_text_font Font.Subtitles
goto @VIDPOK_34293

:VIDPOK_34260
set_text_font Font.Menu
goto @VIDPOK_34293

:VIDPOK_34271
set_text_font Font.Pricedown
goto @VIDPOK_34293

:VIDPOK_34282
set_text_font Font.Gothic
goto @VIDPOK_34293

:VIDPOK_34293
set_text_edge $9013[3] {red} $9019[3] {green} $9025[3] {blue} $9031[3] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34323
set_text_scale $8971[4] {heightScale} $8977[4]
set_text_colour $8983[4] {green} $8989[4] {blue} $8995[4] {alpha} 255
if 
  $9007[4] == 1
goto_if_false @VIDPOK_34367
set_text_centre True

:VIDPOK_34367
switch_start $9001[4] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34474 {caseNum1} 0 {caseLabel1} @VIDPOK_34430 {caseNum2} 1 {caseLabel2} @VIDPOK_34441 {caseNum3} 2 {caseLabel3} @VIDPOK_34452 {caseNum4} 3 {caseLabel4} @VIDPOK_34463 {caseNum5} -1 {caseLabel5} @VIDPOK_34485 {caseNum6} -1 {caseLabel6} @VIDPOK_34485 {caseNum7} -1 {caseLabel7} @VIDPOK_34485

:VIDPOK_34430
set_text_font Font.Gothic
goto @VIDPOK_34485

:VIDPOK_34441
set_text_font Font.Subtitles
goto @VIDPOK_34485

:VIDPOK_34452
set_text_font Font.Menu
goto @VIDPOK_34485

:VIDPOK_34463
set_text_font Font.Pricedown
goto @VIDPOK_34485

:VIDPOK_34474
set_text_font Font.Gothic
goto @VIDPOK_34485

:VIDPOK_34485
set_text_edge $9013[4] {red} $9019[4] {green} $9025[4] {blue} $9031[4] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34515
set_text_scale $8971[5] {heightScale} $8977[5]
set_text_colour $8983[5] {green} $8989[5] {blue} $8995[5] {alpha} 255
if 
  $9007[5] == 1
goto_if_false @VIDPOK_34559
set_text_centre True

:VIDPOK_34559
switch_start $9001[5] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34666 {caseNum1} 0 {caseLabel1} @VIDPOK_34622 {caseNum2} 1 {caseLabel2} @VIDPOK_34633 {caseNum3} 2 {caseLabel3} @VIDPOK_34644 {caseNum4} 3 {caseLabel4} @VIDPOK_34655 {caseNum5} -1 {caseLabel5} @VIDPOK_34677 {caseNum6} -1 {caseLabel6} @VIDPOK_34677 {caseNum7} -1 {caseLabel7} @VIDPOK_34677

:VIDPOK_34622
set_text_font Font.Gothic
goto @VIDPOK_34677

:VIDPOK_34633
set_text_font Font.Subtitles
goto @VIDPOK_34677

:VIDPOK_34644
set_text_font Font.Menu
goto @VIDPOK_34677

:VIDPOK_34655
set_text_font Font.Pricedown
goto @VIDPOK_34677

:VIDPOK_34666
set_text_font Font.Gothic
goto @VIDPOK_34677

:VIDPOK_34677
set_text_edge $9013[5] {red} $9019[5] {green} $9025[5] {blue} $9031[5] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34793
15@ = get_float_stat StatId.Gambling
if 
  50.0 > 15@
goto_if_false @VIDPOK_34835
$bj_payout = 100
goto @VIDPOK_34955

:VIDPOK_34835
if 
  150.0 > 15@
goto_if_false @VIDPOK_34871
$bj_payout = 1000
goto @VIDPOK_34955

:VIDPOK_34871
if 
  350.0 > 15@
goto_if_false @VIDPOK_34907
$bj_payout = 10000
goto @VIDPOK_34955

:VIDPOK_34907
if 
  1000.0 > 15@
goto_if_false @VIDPOK_34945
$bj_payout = 100000
goto @VIDPOK_34955

:VIDPOK_34945
$bj_payout = 1000000

:VIDPOK_34955
return 

:VIDPOK_34957
set_minigame_in_progress False
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
terminate_all_scripts_with_this_name 'CASHWIN'
clear_prints 
clear_help 
clear_mission_audio MissionAudioSlot.Slot4
remove_texture_dictionary 
use_text_commands False
set_player_control $player1 {state} True
display_hud True
set_camera_behind_player 
restore_camera_jumpcut 
return 
terminate_this_script 

//-------------External script 17 (BLACKJ)---------------

:BLACKJ
script_name 'BLACKJ'
2@ = 0
3@ = 0
4@ = 0
5@ = 0
22@ = 0
23@ = 0
24@ = 0
if 
  3@ == -1
goto_if_false @BLACKJ_193
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$bj_chip_set_default_z = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$active_bj_table = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$total_bj_tables[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0

:BLACKJ_193
29@ = -99

:BLACKJ_200
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @BLACKJ_2463
if 
  does_object_exist 0@
goto_if_false @BLACKJ_2447
if 
  is_object_within_brain_activation_range 0@
goto_if_false @BLACKJ_2431
if 
  $bj_chip_set_default_z == 0
goto_if_false @BLACKJ_2343
if 
  is_player_playing $player1
goto_if_false @BLACKJ_2327
if 
  2@ == 0
goto_if_false @BLACKJ_1076
if 
  3@ == 0
goto_if_false @BLACKJ_869
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_366
set_lvar_int_to_constant 26@ = 171
goto @BLACKJ_374

:BLACKJ_366
set_lvar_int_to_constant 26@ = 171

:BLACKJ_374
if 
  not has_model_loaded 26@
goto_if_false @BLACKJ_395
request_model 26@

:BLACKJ_395
if 
  not has_animation_loaded "CASINO"
goto_if_false @BLACKJ_426
request_animation "CASINO"

:BLACKJ_426
if 
  29@ == -99
goto_if_false @BLACKJ_862
13@ = get_float_stat StatId.Gambling
if 
  $bj_offering_credit == 0
goto_if_false @BLACKJ_675
if 
  1.0 > 13@
goto_if_false @BLACKJ_511
29@ = 100
30@ = 1
goto @BLACKJ_661

:BLACKJ_511
if 
  10.0 > 13@
goto_if_false @BLACKJ_554
29@ = 1000
30@ = 10
goto @BLACKJ_661

:BLACKJ_554
if 
  100.0 > 13@
goto_if_false @BLACKJ_597
29@ = 10000
30@ = 100
goto @BLACKJ_661

:BLACKJ_597
if 
  1000.0 > 13@
goto_if_false @BLACKJ_643
29@ = 100000
30@ = 1000
goto @BLACKJ_661

:BLACKJ_643
29@ = 1000000
30@ = 10000

:BLACKJ_661
$bj_offering_credit += 1
goto @BLACKJ_862

:BLACKJ_675
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_862 {caseNum1} 0 {caseLabel1} @BLACKJ_747 {caseNum2} 1 {caseLabel2} @BLACKJ_768 {caseNum3} 2 {caseLabel3} @BLACKJ_790 {caseNum4} 3 {caseLabel4} @BLACKJ_812 {caseNum5} 4 {caseLabel5} @BLACKJ_837 {caseNum6} -1 {caseLabel6} @BLACKJ_862 {caseNum7} -1 {caseLabel7} @BLACKJ_862

:BLACKJ_747
29@ = 100
30@ = 1
goto @BLACKJ_862

:BLACKJ_768
29@ = 1000
30@ = 10
goto @BLACKJ_862

:BLACKJ_790
29@ = 10000
30@ = 100
goto @BLACKJ_862

:BLACKJ_812
29@ = 100000
30@ = 1000
goto @BLACKJ_862

:BLACKJ_837
29@ = 1000000
30@ = 10000
goto @BLACKJ_862

:BLACKJ_862
3@ += 1

:BLACKJ_869
if 
  3@ == 1
goto_if_false @BLACKJ_920
if and
  has_model_loaded 26@
  has_animation_loaded "CASINO"
goto_if_false @BLACKJ_920
3@ += 1

:BLACKJ_920
if 
  3@ == 2
goto_if_false @BLACKJ_1076
if 
  not does_char_exist 1@
goto_if_false @BLACKJ_1062
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
1@ = create_char PedType.CivMale {modelId} 26@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
$heading = get_object_heading 0@
$heading += 180.0
set_char_heading 1@ {heading} $heading
mark_model_as_no_longer_needed 26@
enable_disabled_attractors_on_object 0@ {state} True

:BLACKJ_1062
2@ += 1
3@ = 0

:BLACKJ_1076
if 
  2@ == 1
goto_if_false @BLACKJ_2320
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_2320
if 
  $fFunTemp == 0
goto_if_false @BLACKJ_2271
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
if 
  locate_char_on_foot_3d 1@ {x} $x {y} $y {z} $z {xRadius} 0.4 {yRadius} 0.4 {zRadius} 2.0 {drawSphere} False
goto_if_false @BLACKJ_2215
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @BLACKJ_2159
if 
  is_char_on_foot $scplayer
goto_if_false @BLACKJ_2152
if 
  22@ == 0
goto_if_false @BLACKJ_2128
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_1875
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_lvar $dealer_got_bj > 30@
goto_if_false @BLACKJ_1845
10@ = 0
13@ = get_float_stat StatId.Gambling
if 
  29@ == 1000000
goto_if_false @BLACKJ_1449
if 
  1000.0 > 13@
goto_if_false @BLACKJ_1442
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1442
goto @BLACKJ_1654

:BLACKJ_1449
if 
  29@ == 100000
goto_if_false @BLACKJ_1521
if 
  100.0 > 13@
goto_if_false @BLACKJ_1514
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1514
goto @BLACKJ_1654

:BLACKJ_1521
if 
  29@ == 10000
goto_if_false @BLACKJ_1591
if 
  10.0 > 13@
goto_if_false @BLACKJ_1584
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1584
goto @BLACKJ_1654

:BLACKJ_1591
if 
  29@ == 1000
goto_if_false @BLACKJ_1654
if 
  1.0 > 13@
goto_if_false @BLACKJ_1654
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1654
if 
  10@ == 0
goto_if_false @BLACKJ_1744
if 
  21@ == 1
goto_if_false @BLACKJ_1701
clear_prints 
clear_help 
21@ = 0

:BLACKJ_1701
2@ = 0
3@ = 0
set_var_int_to_lvar_int $bj_chip_set_default_z = 0@
$colour_a = 0
22@ = 1
goto @BLACKJ_1838

:BLACKJ_1744
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_1838
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_1816
set_char_say_script 1@ {_p2} 30450 {_p3} True {_p4} True {_p5} False
start_char_facial_talk 1@ {duration} 2000
goto @BLACKJ_1838

:BLACKJ_1816
set_char_say_script 1@ {_p2} 30451 {_p3} True {_p4} True {_p5} False
start_char_facial_talk 1@ {duration} 2000

:BLACKJ_1838
goto @BLACKJ_1868

:BLACKJ_1845
print_now 'BJ_2' {time} 5000 {flag} 1
gosub @BLACKJ_18301

:BLACKJ_1868
goto @BLACKJ_2121

:BLACKJ_1875
if 
  21@ <> 1
goto_if_false @BLACKJ_2121
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_2121
set_help_message_box_size 200
switch_start 29@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_2114 {caseNum1} 100 {caseLabel1} @BLACKJ_2024 {caseNum2} 1000 {caseLabel2} @BLACKJ_2042 {caseNum3} 10000 {caseLabel3} @BLACKJ_2060 {caseNum4} 100000 {caseLabel4} @BLACKJ_2078 {caseNum5} 1000000 {caseLabel5} @BLACKJ_2096 {caseNum6} -1 {caseLabel6} @BLACKJ_2114 {caseNum7} -1 {caseLabel7} @BLACKJ_2114

:BLACKJ_2024
print_help_forever 'BJ_1A'
goto @BLACKJ_2114

:BLACKJ_2042
print_help_forever 'BJ_1B'
goto @BLACKJ_2114

:BLACKJ_2060
print_help_forever 'BJ_1C'
goto @BLACKJ_2114

:BLACKJ_2078
print_help_forever 'BJ_1D'
goto @BLACKJ_2114

:BLACKJ_2096
print_help_forever 'BJ_1E'
goto @BLACKJ_2114

:BLACKJ_2114
21@ = 1

:BLACKJ_2121
goto @BLACKJ_2152

:BLACKJ_2128
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_2152
22@ = 0

:BLACKJ_2152
goto @BLACKJ_2208

:BLACKJ_2159
if 
  21@ == 1
goto_if_false @BLACKJ_2208
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2208
goto @BLACKJ_2264

:BLACKJ_2215
if 
  21@ == 1
goto_if_false @BLACKJ_2264
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2264
goto @BLACKJ_2320

:BLACKJ_2271
if 
  21@ == 1
goto_if_false @BLACKJ_2320
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2320
goto @BLACKJ_2336

:BLACKJ_2327
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2336
goto @BLACKJ_2424

:BLACKJ_2343
if 
  is_int_var_equal_to_int_lvar $bj_chip_set_default_z == 0@
goto_if_false @BLACKJ_2424
if 
  is_player_playing $player1
goto_if_false @BLACKJ_2424
if 
  5@ == 0
goto_if_false @BLACKJ_2410
gosub @BLACKJ_2533
goto @BLACKJ_2424

:BLACKJ_2410
gosub @BLACKJ_34534
$bj_chip_set_default_z = 0

:BLACKJ_2424
goto @BLACKJ_2440

:BLACKJ_2431
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2440
goto @BLACKJ_2456

:BLACKJ_2447
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2456
goto @BLACKJ_2472

:BLACKJ_2463
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2472
goto @BLACKJ_200

:BLACKJ_2479
if 
  does_object_exist 0@
goto_if_false @BLACKJ_2502
enable_disabled_attractors_on_object 0@ {state} False

:BLACKJ_2502
mark_char_as_no_longer_needed 1@
remove_animation "CASINO"
$bj_offering_credit -= 1
2@ = 0
return 

:BLACKJ_2533
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @BLACKJ_2582
31@ += 1
if 
  31@ > 5
goto_if_false @BLACKJ_2580
31@ = 0

:BLACKJ_2580
clear_all_view_variables 

:BLACKJ_2582
if 
  31@ == 1
goto_if_false @BLACKJ_2838
set_var_int_to_lvar_int $active_bj_croupier = 2@
set_var_int_to_lvar_int $BLACKJ_view_debug = 3@
set_var_int_to_lvar_int $9220 = 4@
set_var_int_to_var_int $9221 = $dealer_wins_by_default
set_var_int_to_var_int $9222 = $player_total1
set_var_int_to_var_int $9223 = $player_total1_b
set_var_int_to_var_int $9224 = $player_total2
set_var_int_to_var_int $9225 = $player_total2_b
set_var_int_to_var_int $9226 = $dealer_total
view_integer_variable $active_bj_croupier {_p2} "M_STAGE"
view_integer_variable $BLACKJ_view_debug {_p2} "M_GOALS"
view_integer_variable $9220 {_p2} "M_GOALS2"
view_integer_variable $9221 {_p2} "PLAYER_TOTAL1"
view_integer_variable $9222 {_p2} "PLAYER_TOTAL1_B"
view_integer_variable $9223 {_p2} "PLAYER_TOTAL2"
view_integer_variable $9224 {_p2} "PLAYER_TOTAL2_B"
view_integer_variable $9225 {_p2} "DEALER_TOTAL"
view_integer_variable $9226 {_p2} "DEALER_TOTAL2"

:BLACKJ_2838
if 
  31@ == 2
goto_if_false @BLACKJ_3148
set_var_int_to_var_int $active_bj_croupier = $9164
set_var_int_to_var_int $BLACKJ_view_debug = $player_cannot_split
set_var_int_to_var_int $9220 = $player_has_split
set_var_int_to_var_int $9221 = $player_cannot_double
set_var_int_to_var_int $9222 = $player_has_doubled1
set_var_int_to_var_int $9223 = $player_has_doubled2
set_var_int_to_var_int $9224 = $player_has_stuck1
set_var_int_to_var_int $9225 = $player_has_stuck2
set_var_int_to_var_int $9226 = $player_has_hit
view_integer_variable $active_bj_croupier {_p2} "PLAYER_CANNOT_SPLIT"
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_HAS_SPLIT"
view_integer_variable $9220 {_p2} "PLAYER_CANNOT_DOUBLE"
view_integer_variable $9221 {_p2} "PLAYER_HAS_DOUBLED1"
view_integer_variable $9222 {_p2} "PLAYER_HAS_DOUBLED2"
view_integer_variable $9223 {_p2} "PLAYER_HAS_STUCK1"
view_integer_variable $9224 {_p2} "PLAYER_HAS_STUCK2"
view_integer_variable $9225 {_p2} "PLAYER_HAS_HIT"
view_integer_variable $9226 {_p2} "DEALER_HAS_STUCK"

:BLACKJ_3148
if 
  31@ == 3
goto_if_false @BLACKJ_3441
set_var_int_to_var_int $active_bj_croupier = $dealer_has_stuck
set_var_int_to_var_int $BLACKJ_view_debug = $player_has_quit
set_var_int_to_var_int $9220 = $player_has_won1
set_var_int_to_var_int $9221 = $player_has_won2
set_var_int_to_var_int $9222 = $player_has_input
set_var_int_to_var_int $9223 = $dealer_total2
set_var_int_to_var_int $9224 = $dealer_got_ace
set_var_int_to_var_int $9225 = $player_got_ace1
set_var_int_to_var_int $9226 = $player_got_ace2
view_integer_variable $active_bj_croupier {_p2} "PLAYER_HAS_QUIT"
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_HAS_WON1"
view_integer_variable $9220 {_p2} "PLAYER_HAS_WON2"
view_integer_variable $9221 {_p2} "PLAYER_HAS_INPUT"
view_integer_variable $9222 {_p2} "DEALER_WINS_BY_DEFAULT"
view_integer_variable $9223 {_p2} "DEALER_GOT_ACE"
view_integer_variable $9224 {_p2} "PLAYER_GOT_ACE1"
view_integer_variable $9225 {_p2} "PLAYER_GOT_ACE2"
view_integer_variable $9226 {_p2} "PLAYER_GOT_BJ"

:BLACKJ_3441
if 
  31@ == 4
goto_if_false @BLACKJ_3679
set_var_int_to_var_int $active_bj_croupier = $dealer_got_bj
set_var_int_to_lvar_int $BLACKJ_view_debug = 30@
set_var_int_to_lvar_int $9220 = 29@
set_var_int_to_var_int $9221 = $bj_players_cash
set_var_int_to_var_int $9222 = $bj_last_bet
set_var_int_to_var_int $9223 = $bj_bet1
set_var_int_to_var_int $9224 = $bj_bet2
set_var_int_to_var_int $9225 = $bj_half_bet_f
set_var_int_to_var_int $9226 = $bj_half_bet
view_integer_variable $active_bj_croupier {_p2} "BJ_PLAYERS_CASH"
view_integer_variable $BLACKJ_view_debug {_p2} "MIN_BET"
view_integer_variable $9220 {_p2} "MAX_BET"
view_integer_variable $9221 {_p2} "BJ_LAST_BET"
view_integer_variable $9222 {_p2} "BJ_BET1"
view_integer_variable $9223 {_p2} "BJ_BET2"
view_integer_variable $9224 {_p2} "BJ_BET_STEP"
view_integer_variable $9225 {_p2} "BJ_HALF_BET"
view_integer_variable $9226 {_p2} "BJ_REFUND"

:BLACKJ_3679
if 
  31@ == 5
goto_if_false @BLACKJ_3780
set_var_int_to_var_int $active_bj_croupier = $player_got_ace2
set_var_int_to_var_int $BLACKJ_view_debug = $bj_initial_stake
set_var_int_to_var_int $9220 = $bj_refund
view_integer_variable $active_bj_croupier {_p2} "PLAYER_GOT_BJ"
view_integer_variable $BLACKJ_view_debug {_p2} "BJ_PAYOUT"
view_integer_variable $9220 {_p2} "BJ_INITIAL_STAKE"

:BLACKJ_3780
6@ += 1
if 
  6@ > 9
goto_if_false @BLACKJ_3812
6@ = 0

:BLACKJ_3812
7@ = get_game_timer 
set_lvar_int_to_lvar_int 9@ = 7@
sub_int_lvar_from_int_lvar 9@ -= 8@
set_lvar_int_to_lvar_int 8@ = 7@
if or
  is_this_help_message_being_displayed 'SGPUNT'
  is_this_help_message_being_displayed 'SGGAMB'
  is_this_help_message_being_displayed 'SGPROF'
  is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_4365
if 
  $bj_initial_last_bet <> 1
goto_if_false @BLACKJ_4079
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_4065
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4065 {caseNum1} 0 {caseLabel1} @BLACKJ_4002 {caseNum2} 1 {caseLabel2} @BLACKJ_4023 {caseNum3} 2 {caseLabel3} @BLACKJ_4044 {caseNum4} -1 {caseLabel4} @BLACKJ_4065 {caseNum5} -1 {caseLabel5} @BLACKJ_4065 {caseNum6} -1 {caseLabel6} @BLACKJ_4065 {caseNum7} -1 {caseLabel7} @BLACKJ_4065

:BLACKJ_4002
set_char_say_script 1@ {_p2} 30420 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4023
set_char_say_script 1@ {_p2} 30421 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4044
set_char_say_script 1@ {_p2} 30422 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4065
$bj_initial_last_bet = 1
TIMERA = 0

:BLACKJ_4079
if 
  23@ == 0
goto_if_false @BLACKJ_4130
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_4123
clear_help 
23@ = 1

:BLACKJ_4123
goto @BLACKJ_4172

:BLACKJ_4130
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_4172
if 
  23@ <> 0
goto_if_false @BLACKJ_4172
23@ = 0

:BLACKJ_4172
if 
  25@ == 0
goto_if_false @BLACKJ_4223
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_4216
clear_help 
25@ = 1

:BLACKJ_4216
goto @BLACKJ_4265

:BLACKJ_4223
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_4265
if 
  25@ <> 0
goto_if_false @BLACKJ_4265
25@ = 0

:BLACKJ_4265
if 
  24@ == 0
goto_if_false @BLACKJ_4316
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_4309
clear_help 
24@ = 1

:BLACKJ_4309
goto @BLACKJ_4358

:BLACKJ_4316
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_4358
if 
  24@ <> 0
goto_if_false @BLACKJ_4358
24@ = 0

:BLACKJ_4358
goto @BLACKJ_4390

:BLACKJ_4365
if 
  $bj_initial_last_bet <> 0
goto_if_false @BLACKJ_4390
$bj_initial_last_bet = 0

:BLACKJ_4390
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4551 {caseNum1} 0 {caseLabel1} @BLACKJ_4453 {caseNum2} 1 {caseLabel2} @BLACKJ_4467 {caseNum3} 2 {caseLabel3} @BLACKJ_4481 {caseNum4} 3 {caseLabel4} @BLACKJ_4495 {caseNum5} 4 {caseLabel5} @BLACKJ_4509 {caseNum6} 5 {caseLabel6} @BLACKJ_4523 {caseNum7} 6 {caseLabel7} @BLACKJ_4537

:BLACKJ_4453
gosub @BLACKJ_5013
goto @BLACKJ_4551

:BLACKJ_4467
gosub @BLACKJ_7714
goto @BLACKJ_4551

:BLACKJ_4481
gosub @BLACKJ_9613
goto @BLACKJ_4551

:BLACKJ_4495
gosub @BLACKJ_10187
goto @BLACKJ_4551

:BLACKJ_4509
gosub @BLACKJ_10620
goto @BLACKJ_4551

:BLACKJ_4523
gosub @BLACKJ_15355
goto @BLACKJ_4551

:BLACKJ_4537
gosub @BLACKJ_15877
goto @BLACKJ_4551

:BLACKJ_4551
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @BLACKJ_4646
$bj_adjust_mode += 1
if 
  $bj_adjust_mode > 1
goto_if_false @BLACKJ_4626
$bj_adjust_mode = 0
write_debug_with_int "CARD_CHEAT_OFF" {number} $bj_adjust_mode
goto @BLACKJ_4646

:BLACKJ_4626
write_debug_with_int "CARD_CHEAT_ON" {number} $bj_adjust_mode

:BLACKJ_4646
if 
  $bj_adjust_mode <> 0
goto_if_false @BLACKJ_4790
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_4727
$9227 += 1
if 
  $9227 > 52
goto_if_false @BLACKJ_4711
$9227 = 1

:BLACKJ_4711
write_debug_with_int "NEXT_CARD" {number} $9227

:BLACKJ_4727
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_4790
$9227 -= 1
if 
  1 > $9227
goto_if_false @BLACKJ_4774
$9227 = 52

:BLACKJ_4774
write_debug_with_int "NEXT_CARD" {number} $9227

:BLACKJ_4790
if 
  22@ == 0
goto_if_false @BLACKJ_4964
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  2@ <> 2
goto_if_false @BLACKJ_4957
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_4910
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_4896
set_char_say_script 1@ {_p2} 30452 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4910

:BLACKJ_4896
set_char_say_script 1@ {_p2} 30453 {_p3} True {_p4} True {_p5} False

:BLACKJ_4910
5@ = 1
22@ = 1
if 
  $bj_half_bet <> 0
goto_if_false @BLACKJ_4950
add_score $player1 {money} $bj_half_bet

:BLACKJ_4950
$bj_players_cash = 0

:BLACKJ_4957
goto @BLACKJ_4988

:BLACKJ_4964
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_4988
22@ = 0

:BLACKJ_4988
if 
  is_char_dead 1@
goto_if_false @BLACKJ_5011
5@ = 1

:BLACKJ_5011
return 

:BLACKJ_5013
if 
  3@ == 0
goto_if_false @BLACKJ_5948
set_minigame_in_progress True
set_player_control $player1 {state} False
$bj_temp_float3 = 0
$9134 = 51.0
$card_width = 64.0
$9086[0] = 233.0
$9094[0] = 381.0
$9102[0] = 233.0
$9110[0] = 311.0
$9118[0] = 233.0
$9126[0] = 381.0
$vp_out_card_value[0] = 226.0
$9078[0] = 60.0
$spacing_x = 6.0
$card_cheat_value[0] = 29.0
$9255[0] = 220.0
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5269 {caseNum1} 3 {caseLabel1} @BLACKJ_5242 {caseNum2} -1 {caseLabel2} @BLACKJ_5296 {caseNum3} -1 {caseLabel3} @BLACKJ_5296 {caseNum4} -1 {caseLabel4} @BLACKJ_5296 {caseNum5} -1 {caseLabel5} @BLACKJ_5296 {caseNum6} -1 {caseLabel6} @BLACKJ_5296 {caseNum7} -1 {caseLabel7} @BLACKJ_5296

:BLACKJ_5242
$card_cheat_value[1] = 173.9799
$9255[1] = 409.0
goto @BLACKJ_5296

:BLACKJ_5269
$card_cheat_value[1] = 157.0
$9255[1] = 409.0
goto @BLACKJ_5296

:BLACKJ_5296
$card_cheat_value[2] = 36.0
$9255[2] = 240.0
$card_cheat_value[3] = 36.0
$9255[3] = 260.0
$card_cheat_value[4] = 36.0
$9255[4] = 290.0
$card_cheat_value[5] = 36.0
$9255[5] = 310.0
$card_cheat_value[6] = 36.0
$9255[6] = 340.0
$card_cheat_value[7] = 36.0
$9255[7] = 360.0
$card_cheat_value[8] = 29.0
$9255[8] = 220.0
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5553 {caseNum1} 1 {caseLabel1} @BLACKJ_5526 {caseNum2} 2 {caseLabel2} @BLACKJ_5499 {caseNum3} 3 {caseLabel3} @BLACKJ_5499 {caseNum4} 4 {caseLabel4} @BLACKJ_5499 {caseNum5} -1 {caseLabel5} @BLACKJ_5580 {caseNum6} -1 {caseLabel6} @BLACKJ_5580 {caseNum7} -1 {caseLabel7} @BLACKJ_5580

:BLACKJ_5499
$card_cheat_value[9] = 169.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5526
$card_cheat_value[9] = 177.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5553
$card_cheat_value[9] = 157.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5580
$card_cheat_value[10] = 36.0
$9255[10] = 240.0
$card_cheat_value[11] = 36.0
$9255[11] = 260.0
$card_cheat_value[12] = 36.0
$9255[12] = 290.0
$card_cheat_value[13] = 40.0
$9255[13] = 310.0
$card_cheat_value[14] = 40.0
$9255[14] = 310.0
$card_cheat_value[15] = 36.0
$9255[15] = 340.0
$card_cheat_value[16] = 40.0
$9255[16] = 360.0
$card_cheat_value[17] = 40.0
$9255[17] = 360.0
$card_cheat_value[18] = 40.0
$9255[18] = 360.0
$card_cheat_value[19] = 40.0
$9255[19] = 360.0
$card_cheat_value[20] = 40.0
$9255[20] = 382.0
$card_cheat_value[21] = 40.0
$9255[21] = 382.0
$card_cheat_value[22] = 209.0
$9255[22] = 293.0
$card_cheat_value[23] = 209.0
$9255[23] = 361.0
$card_cheat_value[24] = 1.0
$9255[24] = 4.0
$card_cheat_value[25] = 320.0
$9255[25] = 197.0
$card_cheat_value[26] = 320.0
$9255[26] = 233.0
gosub @BLACKJ_32356
request_model #BLCK_JACK
request_animation "CASINO"
3@ += 1

:BLACKJ_5948
if 
  3@ == 1
goto_if_false @BLACKJ_5998
if and
  has_model_loaded #BLCK_JACK
  has_animation_loaded "CASINO"
goto_if_false @BLACKJ_5998
3@ += 1

:BLACKJ_5998
if 
  3@ == 2
goto_if_false @BLACKJ_7550
use_text_commands True
load_texture_dictionary 'LD_CARD'
load_sprite 1 {spriteName} "CD1C"
load_sprite 2 {spriteName} "CD2C"
load_sprite 3 {spriteName} "CD3C"
load_sprite 4 {spriteName} "CD4C"
load_sprite 5 {spriteName} "CD5C"
load_sprite 6 {spriteName} "CD6C"
load_sprite 7 {spriteName} "CD7C"
load_sprite 8 {spriteName} "CD8C"
load_sprite 9 {spriteName} "CD9C"
load_sprite 10 {spriteName} "CD10C"
load_sprite 11 {spriteName} "CD11C"
load_sprite 12 {spriteName} "CD12C"
load_sprite 13 {spriteName} "CD13C"
load_sprite 14 {spriteName} "CD1D"
load_sprite 15 {spriteName} "CD2D"
load_sprite 16 {spriteName} "CD3D"
load_sprite 17 {spriteName} "CD4D"
load_sprite 18 {spriteName} "CD5D"
load_sprite 19 {spriteName} "CD6D"
load_sprite 20 {spriteName} "CD7D"
load_sprite 21 {spriteName} "CD8D"
load_sprite 22 {spriteName} "CD9D"
load_sprite 23 {spriteName} "CD10D"
load_sprite 24 {spriteName} "CD11D"
load_sprite 25 {spriteName} "CD12D"
load_sprite 26 {spriteName} "CD13D"
load_sprite 27 {spriteName} "CD1S"
load_sprite 28 {spriteName} "CD2S"
load_sprite 29 {spriteName} "CD3S"
load_sprite 30 {spriteName} "CD4S"
load_sprite 31 {spriteName} "CD5S"
load_sprite 32 {spriteName} "CD6S"
load_sprite 33 {spriteName} "CD7S"
load_sprite 34 {spriteName} "CD8S"
load_sprite 35 {spriteName} "CD9S"
load_sprite 36 {spriteName} "CD10S"
load_sprite 37 {spriteName} "CD11S"
load_sprite 38 {spriteName} "CD12S"
load_sprite 39 {spriteName} "CD13S"
load_sprite 40 {spriteName} "CD1H"
load_sprite 41 {spriteName} "CD2H"
load_sprite 42 {spriteName} "CD3H"
load_sprite 43 {spriteName} "CD4H"
load_sprite 44 {spriteName} "CD5H"
load_sprite 45 {spriteName} "CD6H"
load_sprite 46 {spriteName} "CD7H"
load_sprite 47 {spriteName} "CD8H"
load_sprite 48 {spriteName} "CD9H"
load_sprite 49 {spriteName} "CD10H"
load_sprite 50 {spriteName} "CD11H"
load_sprite 51 {spriteName} "CD12H"
load_sprite 52 {spriteName} "CD13H"
load_sprite 53 {spriteName} "CDBACK"
shuffle_card_decks 6
display_radar False
switch_rubbish 0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
$heading = get_object_heading 0@
$heading += 180.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += -0.4
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_6705
clear_char_tasks_immediately 1@
set_char_coordinates 1@ {x} $x {y} $y {z} $z
set_char_heading 1@ {heading} $heading

:BLACKJ_6705
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.3192 {yOffset} -1.6334 {zOffset} 0.1415
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += -0.4
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_6796
task_turn_char_to_face_char $scplayer {target} 1@

:BLACKJ_6796
if 
  does_object_exist 0@
goto_if_false @BLACKJ_6909
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.4379 {yOffset} -2.243 {zOffset} 1.16
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.2822 {yOffset} -1.3256 {zOffset} 0.7939
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:BLACKJ_6909
if 
  does_object_exist 0@
goto_if_false @BLACKJ_7543
$9215 = -0.14
$9282[0] = 0.0
$9290[0] = -0.885
set_var_float_to_var_float $9298[0] = $9215
$9282[1] = 0.045
$9290[1] = -0.935
set_var_float_to_var_float $9298[1] = $9215
$9282[2] = -0.05
$9290[2] = -0.93
set_var_float_to_var_float $9298[2] = $9215
$9282[3] = -0.01
$9290[3] = -0.98
set_var_float_to_var_float $9298[3] = $9215
$9282[4] = 0.06
$9290[4] = -0.995
set_var_float_to_var_float $9298[4] = $9215
$9282[5] = 0.02
$9290[5] = -1.075
set_var_float_to_var_float $9298[5] = $9215
$9282[6] = -0.07
$9290[6] = -1.03
set_var_float_to_var_float $9298[6] = $9215
$9282[7] = 0.065
$9290[7] = -1.05
set_var_float_to_var_float $9298[7] = $9215
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[0] {yOffset} $9290[0] {zOffset} $9215
$total_bj_tables[0] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[0] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[1] {yOffset} $9290[1] {zOffset} $9215
$total_bj_tables[1] = create_object_no_offset #CHIP_STACK08 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[1] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[2] {yOffset} $9290[2] {zOffset} $9215
$total_bj_tables[2] = create_object_no_offset #CHIP_STACK09 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[2] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[3] {yOffset} $9290[3] {zOffset} $9215
$total_bj_tables[3] = create_object_no_offset #CHIP_STACK10 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[3] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[4] {yOffset} $9290[4] {zOffset} $9215
$total_bj_tables[4] = create_object_no_offset #CHIP_STACK11 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[4] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[5] {yOffset} $9290[5] {zOffset} $9215
$total_bj_tables[5] = create_object_no_offset #CHIP_STACK12 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[5] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[6] {yOffset} $9290[6] {zOffset} $9215
$total_bj_tables[6] = create_object_no_offset #CHIP_STACK13 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[6] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282[7] {yOffset} $9290[7] {zOffset} $9215
$total_bj_tables[7] = create_object_no_offset #CHIP_STACK14 {x} $x {y} $y {z} $z
set_object_heading $total_bj_tables[7] {heading} $heading

:BLACKJ_7543
3@ = 99

:BLACKJ_7550
if 
  3@ == 99
goto_if_false @BLACKJ_7712
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_7698
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_7698 {caseNum1} 0 {caseLabel1} @BLACKJ_7656 {caseNum2} 1 {caseLabel2} @BLACKJ_7677 {caseNum3} -1 {caseLabel3} @BLACKJ_7698 {caseNum4} -1 {caseLabel4} @BLACKJ_7698 {caseNum5} -1 {caseLabel5} @BLACKJ_7698 {caseNum6} -1 {caseLabel6} @BLACKJ_7698 {caseNum7} -1 {caseLabel7} @BLACKJ_7698

:BLACKJ_7656
set_char_say_script 1@ {_p2} 30409 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_7698

:BLACKJ_7677
set_char_say_script 1@ {_p2} 30410 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_7698

:BLACKJ_7698
2@ += 1
3@ = 0

:BLACKJ_7712
return 

:BLACKJ_7714
if 
  3@ == 0
goto_if_false @BLACKJ_8321
$multiplier = 0
10@ = 0

:BLACKJ_7746
if 
  8 > 10@
goto_if_false @BLACKJ_7811
$next_card(10@,8i) = 0
$9148(10@,8i) = 0
$9156(10@,8i) = 0
10@ += 1
goto @BLACKJ_7746

:BLACKJ_7811
$9164 = 0
$player_cannot_split = 0
$player_has_split = 0
$player_cannot_double = 0
$player_has_doubled1 = 0
$player_has_doubled2 = 0
$player_has_stuck1 = 0
$player_has_stuck2 = 0
$player_has_hit = 0
$dealer_has_stuck = 0
$player_has_quit = 0
$player_has_won1 = 0
$player_has_won2 = 0
$player_has_input = 0
$dealer_wins_by_default = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$player_total2_b = 0
$dealer_total = 0
$dealer_total2 = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$bj_half_bet = 0
if 
  is_int_lvar_greater_than_int_var 30@ > $colour_a
goto_if_false @BLACKJ_8006
set_var_int_to_lvar_int $colour_a = 30@

:BLACKJ_8006
set_var_int_to_var_int $bj_last_bet = $colour_a
$bj_bet1 = 0
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_8071
set_var_int_to_lvar_int $bj_last_bet = 30@

:BLACKJ_8071
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_8134
print_now 'BJ_2' {time} 5000 {flag} 1
gosub @BLACKJ_18301
5@ = 1
goto @BLACKJ_9611
goto @BLACKJ_8303

:BLACKJ_8134
set_lvar_int_to_var_int 10@ = $bj_last_bet
10@ *= -1
add_score $player1 {money} 10@
set_var_int_to_var_int $bj_half_bet = $bj_last_bet
set_var_int_to_var_int $bj_refund = $bj_last_bet
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_8303
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_8303 {caseNum1} 0 {caseLabel1} @BLACKJ_8261 {caseNum2} 1 {caseLabel2} @BLACKJ_8282 {caseNum3} -1 {caseLabel3} @BLACKJ_8303 {caseNum4} -1 {caseLabel4} @BLACKJ_8303 {caseNum5} -1 {caseLabel5} @BLACKJ_8303 {caseNum6} -1 {caseLabel6} @BLACKJ_8303 {caseNum7} -1 {caseLabel7} @BLACKJ_8303

:BLACKJ_8261
set_char_say_script 1@ {_p2} 30409 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_8303

:BLACKJ_8282
set_char_say_script 1@ {_p2} 30410 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_8303

:BLACKJ_8303
terminate_all_scripts_with_this_name 'CASHWIN'
3@ += 1

:BLACKJ_8321
if 
  3@ == 1
goto_if_false @BLACKJ_9540
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_9465
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_8436
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_8436
set_help_message_box_size 200
print_help_forever 'BJ_H1'

:BLACKJ_8436
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_8885
if and
  24@ <> 1
  24@ <> -1
goto_if_false @BLACKJ_8834
if 
  $bj_last_bet >= 10000
goto_if_false @BLACKJ_8535
$bj_bet2 = 1000
goto @BLACKJ_8639

:BLACKJ_8535
if 
  $bj_last_bet >= 1000
goto_if_false @BLACKJ_8568
$bj_bet2 = 100
goto @BLACKJ_8639

:BLACKJ_8568
if 
  $bj_last_bet >= 100
goto_if_false @BLACKJ_8600
$bj_bet2 = 10
goto @BLACKJ_8639

:BLACKJ_8600
if 
  $bj_last_bet == 0
goto_if_false @BLACKJ_8632
$bj_bet2 = 2
goto @BLACKJ_8639

:BLACKJ_8632
$bj_bet2 = 1

:BLACKJ_8639
if 
  is_int_var_greater_than_int_var $bj_bet2 > $dealer_got_bj
goto_if_false @BLACKJ_8666
set_var_int_to_var_int $bj_bet2 = $dealer_got_bj

:BLACKJ_8666
set_lvar_int_to_var_int 10@ = $bj_last_bet
add_int_var_to_int_lvar 10@ += $bj_bet2
if 
  is_int_lvar_greater_than_int_lvar 10@ > 29@
goto_if_false @BLACKJ_8717
set_var_int_to_lvar_int $bj_bet2 = 29@
sub_int_var_from_int_var $bj_bet2 -= $bj_last_bet

:BLACKJ_8717
if 
  0 > $bj_bet2
goto_if_false @BLACKJ_8742
$bj_bet2 *= -1

:BLACKJ_8742
add_int_var_to_int_var $bj_last_bet += $bj_bet2
add_int_var_to_int_var $bj_half_bet += $bj_bet2
add_int_var_to_int_var $bj_refund += $bj_bet2
$bj_bet2 *= -1
add_score $player1 {money} $bj_bet2
24@ += 1
if 
  24@ > 1
goto_if_false @BLACKJ_8820
24@ = 2
goto @BLACKJ_8827

:BLACKJ_8820
TIMERA = 0

:BLACKJ_8827
goto @BLACKJ_8878

:BLACKJ_8834
if 
  24@ == 1
goto_if_false @BLACKJ_8878
if 
  TIMERA > 500
goto_if_false @BLACKJ_8878
24@ = 2

:BLACKJ_8878
goto @BLACKJ_9284

:BLACKJ_8885
if 
  25@ <> 0
goto_if_false @BLACKJ_8910
25@ = 0

:BLACKJ_8910
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_9259
if 
  25@ <> 1
goto_if_false @BLACKJ_9226
if 
  $bj_last_bet > 10000
goto_if_false @BLACKJ_8979
$bj_bet2 = -1000
goto @BLACKJ_9051

:BLACKJ_8979
if 
  $bj_last_bet > 1000
goto_if_false @BLACKJ_9012
$bj_bet2 = -100
goto @BLACKJ_9051

:BLACKJ_9012
if 
  $bj_last_bet > 100
goto_if_false @BLACKJ_9044
$bj_bet2 = -10
goto @BLACKJ_9051

:BLACKJ_9044
$bj_bet2 = -1

:BLACKJ_9051
set_lvar_int_to_var_int 10@ = $bj_last_bet
add_int_var_to_int_var $bj_last_bet += $bj_bet2
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_last_bet
goto_if_false @BLACKJ_9108
$bj_last_bet = 0
set_var_int_to_lvar_int $bj_bet2 = 10@
$bj_bet2 *= -1

:BLACKJ_9108
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_last_bet
goto_if_false @BLACKJ_9142
set_var_int_to_lvar_int $bj_last_bet = 30@
goto @BLACKJ_9173

:BLACKJ_9142
$bj_bet2 *= -1
sub_int_var_from_int_var $bj_half_bet -= $bj_bet2
sub_int_var_from_int_var $bj_refund -= $bj_bet2
add_score $player1 {money} $bj_bet2

:BLACKJ_9173
25@ += 1
if 
  25@ > 1
goto_if_false @BLACKJ_9212
25@ = 2
goto @BLACKJ_9219

:BLACKJ_9212
TIMERA = 0

:BLACKJ_9219
goto @BLACKJ_9252

:BLACKJ_9226
if 
  TIMERA > 500
goto_if_false @BLACKJ_9252
25@ = 2

:BLACKJ_9252
goto @BLACKJ_9284

:BLACKJ_9259
if 
  25@ <> 0
goto_if_false @BLACKJ_9284
25@ = 0

:BLACKJ_9284
if 
  23@ == 0
goto_if_false @BLACKJ_9402
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9395
set_var_int_to_var_int $colour_a = $bj_last_bet
increment_int_stat StatId.MoneySpentGambling {value} $bj_last_bet
cset_lvar_float_to_var_int 13@ =# $bj_last_bet
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet = 0
set_var_int_to_var_int $bj_players_cash = $bj_last_bet
gosub @BLACKJ_24848
23@ = 1
3@ = 99

:BLACKJ_9395
goto @BLACKJ_9426

:BLACKJ_9402
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9426
23@ = 0

:BLACKJ_9426
gosub @BLACKJ_23195
if 
  3@ <> 99
goto_if_false @BLACKJ_9458
3@ += 1

:BLACKJ_9458
goto @BLACKJ_9540

:BLACKJ_9465
if 
  23@ == 0
goto_if_false @BLACKJ_9516
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9509
23@ = 1
clear_prints 

:BLACKJ_9509
goto @BLACKJ_9540

:BLACKJ_9516
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9540
23@ = 0

:BLACKJ_9540
if 
  3@ == 2
goto_if_false @BLACKJ_9572
gosub @BLACKJ_24848
3@ = 1

:BLACKJ_9572
if 
  3@ == 99
goto_if_false @BLACKJ_9611
gosub @BLACKJ_10561
3@ = 0
2@ += 1

:BLACKJ_9611
return 

:BLACKJ_9613
if 
  3@ == 0
goto_if_false @BLACKJ_9671
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9664
set_var_int_to_var_int $9148[0] = $multiplier

:BLACKJ_9664
3@ += 1

:BLACKJ_9671
if 
  3@ == 1
goto_if_false @BLACKJ_9741
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9741
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9741
3@ += 1

:BLACKJ_9741
if 
  3@ == 2
goto_if_false @BLACKJ_9799
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9792
set_var_int_to_var_int $next_card[0] = $multiplier

:BLACKJ_9792
3@ += 1

:BLACKJ_9799
if 
  3@ == 3
goto_if_false @BLACKJ_9869
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9869
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9869
3@ += 1

:BLACKJ_9869
if 
  3@ == 4
goto_if_false @BLACKJ_9927
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9920
set_var_int_to_var_int $9148[1] = $multiplier

:BLACKJ_9920
3@ += 1

:BLACKJ_9927
if 
  3@ == 5
goto_if_false @BLACKJ_9997
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9997
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9997
3@ += 1

:BLACKJ_9997
if 
  3@ == 6
goto_if_false @BLACKJ_10055
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_10048
set_var_int_to_var_int $next_card[1] = $multiplier

:BLACKJ_10048
3@ += 1

:BLACKJ_10055
if 
  3@ == 7
goto_if_false @BLACKJ_10125
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_10125
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_10125
3@ = 99

:BLACKJ_10125
if 
  3@ == 99
goto_if_false @BLACKJ_10164
21@ = 0
3@ = 0
2@ += 1

:BLACKJ_10164
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_10187
gosub @BLACKJ_10561
if 
  3@ == 0
goto_if_false @BLACKJ_10350
gosub @BLACKJ_31187
$player_got_ace2 = 0
$player_got_bj = 0
if or
  $dealer_wins_by_default == 21
  $player_total2_b == 21
goto_if_false @BLACKJ_10343
if 
  $dealer_wins_by_default == 21
goto_if_false @BLACKJ_10283
$player_got_ace2 = 1

:BLACKJ_10283
if 
  $player_total2_b == 21
goto_if_false @BLACKJ_10308
$player_got_bj = 1

:BLACKJ_10308
$player_has_doubled2 = 1
$player_has_hit = 1
2@ += 2
3@ = 0
goto @BLACKJ_10350

:BLACKJ_10343
3@ = 99

:BLACKJ_10350
if 
  3@ == 99
goto_if_false @BLACKJ_10396
3@ = 0
4@ = 0
21@ = 0
2@ += 1

:BLACKJ_10396
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
if 
  $player_got_ace2 == 0
goto_if_false @BLACKJ_10449
gosub @BLACKJ_18454
goto @BLACKJ_10559

:BLACKJ_10449
if 
  $player_total2_b <> 21
goto_if_false @BLACKJ_10552
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_10545
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_10531
set_char_say_script 1@ {_p2} 30411 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_10545

:BLACKJ_10531
set_char_say_script 1@ {_p2} 30412 {_p3} True {_p4} True {_p5} False

:BLACKJ_10545
goto @BLACKJ_10559

:BLACKJ_10552
gosub @BLACKJ_18454

:BLACKJ_10559
return 

:BLACKJ_10561
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_10618
clear_help 

:BLACKJ_10618
return 

:BLACKJ_10620
if 
  3@ == 0
goto_if_false @BLACKJ_12233
if 
  $9164 == 0
goto_if_false @BLACKJ_10806
set_var_int_to_var_int $ct_this_card_value = $9148[0]
gosub @BLACKJ_32208
set_lvar_int_to_var_int 10@ = $in_card_value
set_var_int_to_var_int $ct_this_card_value = $9148[1]
gosub @BLACKJ_32208
set_lvar_int_to_var_int 11@ = $in_card_value
if 
  is_int_lvar_equal_to_int_lvar 10@ == 11@
goto_if_false @BLACKJ_10760
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10753
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10753
goto @BLACKJ_10774

:BLACKJ_10760
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10774
if 
  $player_cannot_split <> 0
goto_if_false @BLACKJ_10806
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10806
if 
  $player_has_split == 0
goto_if_false @BLACKJ_11138
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_10937
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10874
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10874
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_10930
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10930
goto @BLACKJ_11138

:BLACKJ_10937
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_11050
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10987
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10987
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_11043
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11043
goto @BLACKJ_11138

:BLACKJ_11050
if 
  $9156[2] <> 0
goto_if_false @BLACKJ_11082
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11082
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_bet1 > $dealer_got_bj
goto_if_false @BLACKJ_11138
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11138
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_11742
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11254
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11247
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11247
21@ = 1

:BLACKJ_11254
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11315
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11308
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11308
21@ = 2

:BLACKJ_11315
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11376
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11369
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11369
21@ = 3

:BLACKJ_11376
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11437
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11430
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11430
21@ = 2

:BLACKJ_11437
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11498
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11491
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11491
21@ = 3

:BLACKJ_11498
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11559
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11552
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11552
21@ = 1

:BLACKJ_11559
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11620
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11613
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11613
21@ = 3

:BLACKJ_11620
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11681
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11674
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11674
21@ = 1

:BLACKJ_11681
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11742
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11735
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11735
21@ = 2

:BLACKJ_11742
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_12158
if 
  25@ == 0
goto_if_false @BLACKJ_11832
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_11825
$player_has_stuck2 = 1
4@ = 0
3@ += 1
25@ = 1
goto @BLACKJ_12233

:BLACKJ_11825
goto @BLACKJ_11856

:BLACKJ_11832
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_11856
25@ = 0

:BLACKJ_11856
if 
  $9164 == 0
goto_if_false @BLACKJ_11937
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_11937
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @BLACKJ_11937
$player_cannot_split = 1
3@ += 1
4@ = 0
goto @BLACKJ_12233

:BLACKJ_11937
if 
  $player_has_split == 0
goto_if_false @BLACKJ_12025
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_12025
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12004
$player_cannot_double = 1
goto @BLACKJ_12011

:BLACKJ_12004
$player_has_doubled1 = 1

:BLACKJ_12011
3@ += 1
goto @BLACKJ_12233

:BLACKJ_12025
if 
  23@ == 0
goto_if_false @BLACKJ_12127
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_12120
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12092
$player_has_doubled2 = 1
goto @BLACKJ_12099

:BLACKJ_12092
$player_has_stuck1 = 1

:BLACKJ_12099
23@ = 1
3@ += 1
goto @BLACKJ_12233

:BLACKJ_12120
goto @BLACKJ_12151

:BLACKJ_12127
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_12151
23@ = 0

:BLACKJ_12151
goto @BLACKJ_12233

:BLACKJ_12158
if 
  25@ == 0
goto_if_false @BLACKJ_12209
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_12202
25@ = 1
clear_prints 

:BLACKJ_12202
goto @BLACKJ_12233

:BLACKJ_12209
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_12233
25@ = 0

:BLACKJ_12233
if 
  3@ == 1
goto_if_false @BLACKJ_15202
if 
  $player_has_stuck2 == 1
goto_if_false @BLACKJ_12732
if 
  4@ == 0
goto_if_false @BLACKJ_12301
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_12301
if 
  4@ == 1
goto_if_false @BLACKJ_12371
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_12371
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_12371
4@ += 1

:BLACKJ_12371
if 
  4@ == 2
goto_if_false @BLACKJ_12700
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_12501
10@ = 0

:BLACKJ_12414
if 
  8 > 10@
goto_if_false @BLACKJ_12494
if 
  $9148(10@,8i) == 0
goto_if_false @BLACKJ_12480
set_var_int_to_var_int $9148(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12480
10@ += 1
goto @BLACKJ_12414

:BLACKJ_12494
goto @BLACKJ_12700

:BLACKJ_12501
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12613
10@ = 0

:BLACKJ_12526
if 
  8 > 10@
goto_if_false @BLACKJ_12606
if 
  $9148(10@,8i) == 0
goto_if_false @BLACKJ_12592
set_var_int_to_var_int $9148(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12592
10@ += 1
goto @BLACKJ_12526

:BLACKJ_12606
goto @BLACKJ_12700

:BLACKJ_12613
10@ = 0

:BLACKJ_12620
if 
  8 > 10@
goto_if_false @BLACKJ_12700
if 
  $9156(10@,8i) == 0
goto_if_false @BLACKJ_12686
set_var_int_to_var_int $9156(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12686
10@ += 1
goto @BLACKJ_12620

:BLACKJ_12700
if 
  4@ == 99
goto_if_false @BLACKJ_12732
$player_has_stuck2 = 0
gosub @BLACKJ_18454

:BLACKJ_12732
10@ = 0
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_12789
if or
  $9156[0] == 0
  $9148[1] == 0
goto_if_false @BLACKJ_12789
10@ = 1

:BLACKJ_12789
if and
  $player_cannot_split == 1
  10@ == 1
goto_if_false @BLACKJ_13264
if 
  4@ == 0
goto_if_false @BLACKJ_12941
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_12934
$player_cannot_split = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18301
goto @BLACKJ_12941

:BLACKJ_12934
4@ += 1

:BLACKJ_12941
if 
  4@ == 1
goto_if_false @BLACKJ_13043
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet_f
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet_f *= -1
add_score $player1 {money} $bj_half_bet_f
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
4@ += 1

:BLACKJ_13043
if 
  4@ == 2
goto_if_false @BLACKJ_13098
set_var_int_to_var_int $9156[0] = $9148[0]
set_var_int_to_var_int $9148[0] = $9148[1]
$9148[1] = 0
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13098
if 
  4@ == 3
goto_if_false @BLACKJ_13176
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13176
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13176
set_var_int_to_var_int $9148[1] = $multiplier
4@ += 1

:BLACKJ_13176
if 
  4@ == 4
goto_if_false @BLACKJ_13264
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
$bj_bet_step /= 2.0
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
set_var_int_to_var_int $bj_last_bet = $bj_half_bet_f
set_var_int_to_var_int $bj_bet1 = $bj_half_bet_f
$player_has_split = 0
gosub @BLACKJ_10561
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13264
if and
  $player_cannot_split == 1
  $player_has_doubled2 == 1
  $9156[1] == 0
goto_if_false @BLACKJ_13470
if 
  4@ == 0
goto_if_false @BLACKJ_13328
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13328
if 
  4@ == 1
goto_if_false @BLACKJ_13398
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13398
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13398
4@ += 1

:BLACKJ_13398
if 
  4@ == 2
goto_if_false @BLACKJ_13452
set_var_int_to_var_int $9156[1] = $multiplier
$player_has_split = 0
gosub @BLACKJ_10561
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13452
if 
  4@ == 99
goto_if_false @BLACKJ_13470

:BLACKJ_13470
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_13873
if and
  $player_cannot_double == 1
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_13866
if 
  4@ == 0
goto_if_false @BLACKJ_13640
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_13633
$player_cannot_double = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18301
goto @BLACKJ_13640

:BLACKJ_13633
4@ += 1

:BLACKJ_13640
if 
  4@ == 1
goto_if_false @BLACKJ_13749
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet_f
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet_f *= -1
add_score $player1 {money} $bj_half_bet_f
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13749
if 
  4@ == 2
goto_if_false @BLACKJ_13819
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13819
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13819
4@ += 1

:BLACKJ_13819
if 
  4@ == 3
goto_if_false @BLACKJ_13866
set_var_int_to_var_int $9148[2] = $multiplier
$player_has_doubled2 = 1
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13866
goto @BLACKJ_14636

:BLACKJ_13873
if and
  $player_cannot_double == 1
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_14258
if 
  4@ == 0
goto_if_false @BLACKJ_14025
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_14018
$player_cannot_double = 0
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18301
4@ = 99
goto @BLACKJ_14025

:BLACKJ_14018
4@ += 1

:BLACKJ_14025
if 
  4@ == 1
goto_if_false @BLACKJ_14134
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet_f
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet_f *= -1
add_score $player1 {money} $bj_half_bet_f
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_14134
if 
  4@ == 2
goto_if_false @BLACKJ_14204
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_14204
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14204
4@ += 1

:BLACKJ_14204
if 
  4@ == 3
goto_if_false @BLACKJ_14258
set_var_int_to_var_int $9148[2] = $multiplier
$player_has_doubled2 = 1
gosub @BLACKJ_18454
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14258
if and
  $player_has_doubled1 == 1
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_14636
if 
  4@ == 0
goto_if_false @BLACKJ_14410
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = store_score $player1
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_14403
$player_has_doubled1 = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18301
goto @BLACKJ_14410

:BLACKJ_14403
4@ += 1

:BLACKJ_14410
if 
  4@ == 1
goto_if_false @BLACKJ_14519
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet_f
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet_f *= -1
add_score $player1 {money} $bj_half_bet_f
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_bet1 += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_14519
if 
  4@ == 2
goto_if_false @BLACKJ_14589
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_14589
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14589
4@ += 1

:BLACKJ_14589
if 
  4@ == 3
goto_if_false @BLACKJ_14636
set_var_int_to_var_int $9156[2] = $multiplier
$player_has_stuck1 = 1
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_14636
gosub @BLACKJ_31187
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_14718
if 
  $dealer_wins_by_default > 20
goto_if_false @BLACKJ_14686
$player_has_doubled2 = 1

:BLACKJ_14686
if 
  $9148[4] <> 0
goto_if_false @BLACKJ_14711
$player_has_doubled2 = 1

:BLACKJ_14711
goto @BLACKJ_14864

:BLACKJ_14718
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_14814
if 
  $dealer_wins_by_default > 20
goto_if_false @BLACKJ_14775
$player_has_doubled2 = 1
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14775
if 
  $9148[4] <> 0
goto_if_false @BLACKJ_14814
$player_has_doubled2 = 1
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14814
if 
  $player_total1_b > 20
goto_if_false @BLACKJ_14839
$player_has_stuck1 = 1

:BLACKJ_14839
if 
  $9156[4] <> 0
goto_if_false @BLACKJ_14864
$player_has_stuck1 = 1

:BLACKJ_14864
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_15042
if and
  $player_has_doubled2 == 1
  $player_has_stuck1 == 1
goto_if_false @BLACKJ_15042
if and
  $dealer_wins_by_default == 21
  $9148[2] == 0
goto_if_false @BLACKJ_15010
if or
  $player_total1_b <> 21
  $9156[2] <> 0
goto_if_false @BLACKJ_14971
$player_got_ace2 = 2
goto @BLACKJ_15003

:BLACKJ_14971
if and
  $player_total1_b == 21
  $9156[2] == 0
goto_if_false @BLACKJ_15003
$player_got_ace2 = 4

:BLACKJ_15003
goto @BLACKJ_15042

:BLACKJ_15010
if and
  $player_total1_b == 21
  $9156[2] == 0
goto_if_false @BLACKJ_15042
$player_got_ace2 = 3

:BLACKJ_15042
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_15131
if 
  $player_has_doubled2 == 1
goto_if_false @BLACKJ_15092
3@ = 99
goto @BLACKJ_15124

:BLACKJ_15092
if 
  4@ == 99
goto_if_false @BLACKJ_15124
3@ = 0
4@ = 0

:BLACKJ_15124
goto @BLACKJ_15202

:BLACKJ_15131
if and
  $player_has_doubled2 == 1
  $player_has_stuck1 == 1
goto_if_false @BLACKJ_15170
3@ = 99
goto @BLACKJ_15202

:BLACKJ_15170
if 
  4@ == 99
goto_if_false @BLACKJ_15202
3@ = 0
4@ = 0

:BLACKJ_15202
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_15293
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_15269
gosub @BLACKJ_34119
display_text $card_cheat_value[22] {offsetTop} $9255[22] {key} 'BJ_ARR'
goto @BLACKJ_15293

:BLACKJ_15269
gosub @BLACKJ_34119
display_text $card_cheat_value[23] {offsetTop} $9255[23] {key} 'BJ_ARR'

:BLACKJ_15293
if 
  3@ == 99
goto_if_false @BLACKJ_15332
gosub @BLACKJ_10561
3@ = 0
2@ += 1

:BLACKJ_15332
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_15355
if 
  3@ == 0
goto_if_false @BLACKJ_15508
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_15437
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_15430
$player_has_hit = 1
$player_has_input = 1
3@ = 99

:BLACKJ_15430
goto @BLACKJ_15483

:BLACKJ_15437
if and
  $dealer_wins_by_default > 21
  $player_total1_b > 21
goto_if_false @BLACKJ_15483
$player_has_hit = 1
$player_has_input = 1
3@ = 99

:BLACKJ_15483
if 
  3@ <> 99
goto_if_false @BLACKJ_15508
3@ += 1

:BLACKJ_15508
if 
  3@ == 1
goto_if_false @BLACKJ_15615
if 
  $player_total2_b > 16
goto_if_false @BLACKJ_15558
$player_has_hit = 1
goto @BLACKJ_15565

:BLACKJ_15558
3@ += 1

:BLACKJ_15565
if 
  $next_card[4] <> 0
goto_if_false @BLACKJ_15590
$player_has_hit = 1

:BLACKJ_15590
if 
  $player_has_hit == 1
goto_if_false @BLACKJ_15615
3@ = 99

:BLACKJ_15615
if 
  3@ == 2
goto_if_false @BLACKJ_15647
gosub @BLACKJ_29731
3@ += 1

:BLACKJ_15647
if 
  3@ == 3
goto_if_false @BLACKJ_15717
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_15717
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_15717
3@ += 1

:BLACKJ_15717
if 
  3@ == 4
goto_if_false @BLACKJ_15822
10@ = 0

:BLACKJ_15742
if 
  8 > 10@
goto_if_false @BLACKJ_15815
if 
  $next_card(10@,8i) == 0
goto_if_false @BLACKJ_15801
set_var_int_to_var_int $next_card(10@,8i) = $multiplier
10@ = 8

:BLACKJ_15801
10@ += 1
goto @BLACKJ_15742

:BLACKJ_15815
3@ = 0

:BLACKJ_15822
if 
  3@ == 99
goto_if_false @BLACKJ_15854
2@ += 1
3@ = 0

:BLACKJ_15854
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_15877
if 
  3@ == 0
goto_if_false @BLACKJ_17943
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_16139
if 
  $dealer_wins_by_default <= 21
goto_if_false @BLACKJ_16132
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_15963
$player_has_quit = 1
goto @BLACKJ_16132

:BLACKJ_15963
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total2_b
goto_if_false @BLACKJ_15996
$player_has_quit = 1
goto @BLACKJ_16132

:BLACKJ_15996
if 
  is_int_var_equal_to_int_var $dealer_wins_by_default == $player_total2_b
goto_if_false @BLACKJ_16125
if 
  $player_got_ace2 == 1
goto_if_false @BLACKJ_16079
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16065
$player_has_quit = 2
goto @BLACKJ_16072

:BLACKJ_16065
$player_has_quit = 1

:BLACKJ_16072
goto @BLACKJ_16118

:BLACKJ_16079
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16111
$player_has_quit = 0
goto @BLACKJ_16118

:BLACKJ_16111
$player_has_quit = 2

:BLACKJ_16118
goto @BLACKJ_16132

:BLACKJ_16125
$player_has_quit = 0

:BLACKJ_16132
goto @BLACKJ_16591

:BLACKJ_16139
if 
  $dealer_wins_by_default <= 21
goto_if_false @BLACKJ_16365
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_16189
$player_has_quit = 1
goto @BLACKJ_16365

:BLACKJ_16189
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total2_b
goto_if_false @BLACKJ_16222
$player_has_quit = 1
goto @BLACKJ_16365

:BLACKJ_16222
if 
  is_int_var_equal_to_int_var $dealer_wins_by_default == $player_total2_b
goto_if_false @BLACKJ_16358
if or
  $player_got_ace2 == 2
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16312
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16298
$player_has_quit = 2
goto @BLACKJ_16305

:BLACKJ_16298
$player_has_quit = 1

:BLACKJ_16305
goto @BLACKJ_16351

:BLACKJ_16312
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16344
$player_has_quit = 0
goto @BLACKJ_16351

:BLACKJ_16344
$player_has_quit = 2

:BLACKJ_16351
goto @BLACKJ_16365

:BLACKJ_16358
$player_has_quit = 0

:BLACKJ_16365
if 
  $player_total1_b <= 21
goto_if_false @BLACKJ_16591
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_16415
$player_has_won1 = 1
goto @BLACKJ_16591

:BLACKJ_16415
if 
  is_int_var_greater_than_int_var $player_total1_b > $player_total2_b
goto_if_false @BLACKJ_16448
$player_has_won1 = 1
goto @BLACKJ_16591

:BLACKJ_16448
if 
  is_int_var_equal_to_int_var $player_total1_b == $player_total2_b
goto_if_false @BLACKJ_16584
if or
  $player_got_ace2 == 3
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16538
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16524
$player_has_won1 = 2
goto @BLACKJ_16531

:BLACKJ_16524
$player_has_won1 = 1

:BLACKJ_16531
goto @BLACKJ_16577

:BLACKJ_16538
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16570
$player_has_won1 = 0
goto @BLACKJ_16577

:BLACKJ_16570
$player_has_won1 = 2

:BLACKJ_16577
goto @BLACKJ_16591

:BLACKJ_16584
$player_has_won1 = 0

:BLACKJ_16591
TIMERA = 0
$bj_initial_stake = 0
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_16736
if 
  $player_has_quit == 1
goto_if_false @BLACKJ_16703
if 
  $player_got_ace2 == 1
goto_if_false @BLACKJ_16681
$bj_initial_stake = 3
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet
goto @BLACKJ_16696

:BLACKJ_16681
$bj_initial_stake = 2
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet

:BLACKJ_16696
goto @BLACKJ_16729

:BLACKJ_16703
if 
  $player_has_quit == 2
goto_if_false @BLACKJ_16729
set_var_int_to_var_int $bj_initial_stake = $bj_last_bet

:BLACKJ_16729
goto @BLACKJ_16978

:BLACKJ_16736
if 
  $player_has_quit == 1
goto_if_false @BLACKJ_16823
if or
  $player_got_ace2 == 2
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16801
$bj_initial_stake = 3
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet
goto @BLACKJ_16816

:BLACKJ_16801
$bj_initial_stake = 2
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet

:BLACKJ_16816
goto @BLACKJ_16849

:BLACKJ_16823
if 
  $player_has_quit == 2
goto_if_false @BLACKJ_16849
set_var_int_to_var_int $bj_initial_stake = $bj_last_bet

:BLACKJ_16849
if 
  $player_has_won1 == 1
goto_if_false @BLACKJ_16952
if or
  $player_got_ace2 == 3
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16922
set_lvar_int_to_var_int 10@ = $bj_bet1
10@ *= 3
add_int_lvar_to_int_var $bj_initial_stake += 10@
goto @BLACKJ_16945

:BLACKJ_16922
set_lvar_int_to_var_int 10@ = $bj_bet1
10@ *= 2
add_int_lvar_to_int_var $bj_initial_stake += 10@

:BLACKJ_16945
goto @BLACKJ_16978

:BLACKJ_16952
if 
  $player_has_won1 == 2
goto_if_false @BLACKJ_16978
add_int_var_to_int_var $bj_initial_stake += $bj_bet1

:BLACKJ_16978
set_lvar_int_to_var_int 10@ = $bj_initial_stake
sub_int_var_from_int_lvar 10@ -= $bj_refund
increment_int_stat StatId.MoneyWonGambling {value} 10@
add_score $player1 {money} $bj_initial_stake
start_new_script @CASHWIN 10@ 3000 69 
show_update_stats False
if 
  10@ > 0
goto_if_false @BLACKJ_17496
register_int_stat StatId.BiggestGamblingWin {value} 10@
cset_lvar_float_to_lvar_int 13@ =# 10@
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
$bj_temp_float3 += 1
if 
  5 > $bj_temp_float3
goto_if_false @BLACKJ_17331
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17324
if 
  13@ > 0.8
goto_if_false @BLACKJ_17156
10@ = generate_random_int_in_range 0 {max} 4
goto @BLACKJ_17165

:BLACKJ_17156
10@ = generate_random_int_in_range 0 {max} 3

:BLACKJ_17165
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17324 {caseNum1} 0 {caseLabel1} @BLACKJ_17228 {caseNum2} 1 {caseLabel2} @BLACKJ_17249 {caseNum3} 2 {caseLabel3} @BLACKJ_17270 {caseNum4} 3 {caseLabel4} @BLACKJ_17291 {caseNum5} -1 {caseLabel5} @BLACKJ_17324 {caseNum6} -1 {caseLabel6} @BLACKJ_17324 {caseNum7} -1 {caseLabel7} @BLACKJ_17324

:BLACKJ_17228
set_char_say_script 1@ {_p2} 30447 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17324

:BLACKJ_17249
set_char_say_script 1@ {_p2} 30448 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17324

:BLACKJ_17270
set_char_say_script 1@ {_p2} 30449 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17324

:BLACKJ_17291
if 
  is_player_playing $player1
goto_if_false @BLACKJ_17317
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin

:BLACKJ_17317
goto @BLACKJ_17324

:BLACKJ_17324
goto @BLACKJ_17489

:BLACKJ_17331
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17482
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17482 {caseNum1} 0 {caseLabel1} @BLACKJ_17419 {caseNum2} 1 {caseLabel2} @BLACKJ_17440 {caseNum3} 2 {caseLabel3} @BLACKJ_17461 {caseNum4} -1 {caseLabel4} @BLACKJ_17482 {caseNum5} -1 {caseLabel5} @BLACKJ_17482 {caseNum6} -1 {caseLabel6} @BLACKJ_17482 {caseNum7} -1 {caseLabel7} @BLACKJ_17482

:BLACKJ_17419
set_char_say_script 1@ {_p2} 30454 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17482

:BLACKJ_17440
set_char_say_script 1@ {_p2} 30455 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17482

:BLACKJ_17461
set_char_say_script 1@ {_p2} 30456 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17482

:BLACKJ_17482
$bj_temp_float3 = 0

:BLACKJ_17489
goto @BLACKJ_17918

:BLACKJ_17496
10@ *= -1
register_int_stat StatId.BiggestGamblingLoss {value} 10@
10@ *= -1
$bj_temp_float3 = 0
cset_lvar_float_to_lvar_int 13@ =# 10@
13@ *= -1.0
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17918
if 
  0 > 10@
goto_if_false @BLACKJ_17804
if 
  13@ > 0.8
goto_if_false @BLACKJ_17629
10@ = generate_random_int_in_range 0 {max} 4
goto @BLACKJ_17638

:BLACKJ_17629
10@ = generate_random_int_in_range 0 {max} 3

:BLACKJ_17638
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17797 {caseNum1} 0 {caseLabel1} @BLACKJ_17701 {caseNum2} 1 {caseLabel2} @BLACKJ_17722 {caseNum3} 2 {caseLabel3} @BLACKJ_17743 {caseNum4} 3 {caseLabel4} @BLACKJ_17764 {caseNum5} -1 {caseLabel5} @BLACKJ_17797 {caseNum6} -1 {caseLabel6} @BLACKJ_17797 {caseNum7} -1 {caseLabel7} @BLACKJ_17797

:BLACKJ_17701
set_char_say_script 1@ {_p2} 30417 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17797

:BLACKJ_17722
set_char_say_script 1@ {_p2} 30418 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17797

:BLACKJ_17743
set_char_say_script 1@ {_p2} 30419 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17797

:BLACKJ_17764
if 
  is_player_playing $player1
goto_if_false @BLACKJ_17790
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoLose

:BLACKJ_17790
goto @BLACKJ_17797

:BLACKJ_17797
goto @BLACKJ_17918

:BLACKJ_17804
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17918 {caseNum1} 0 {caseLabel1} @BLACKJ_17876 {caseNum2} 1 {caseLabel2} @BLACKJ_17897 {caseNum3} -1 {caseLabel3} @BLACKJ_17918 {caseNum4} -1 {caseLabel4} @BLACKJ_17918 {caseNum5} -1 {caseLabel5} @BLACKJ_17918 {caseNum6} -1 {caseLabel6} @BLACKJ_17918 {caseNum7} -1 {caseLabel7} @BLACKJ_17918

:BLACKJ_17876
set_char_say_script 1@ {_p2} 30415 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17918

:BLACKJ_17897
set_char_say_script 1@ {_p2} 30416 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17918

:BLACKJ_17918
show_update_stats True
$bj_refund = 0
gosub @BLACKJ_23195
3@ += 1

:BLACKJ_17943
if 
  3@ == 1
goto_if_false @BLACKJ_18074
if 
  TIMERA > 3000
goto_if_false @BLACKJ_17994
3@ += 1
goto @BLACKJ_18074

:BLACKJ_17994
if 
  23@ == 0
goto_if_false @BLACKJ_18050
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18043
23@ = 1
3@ += 1

:BLACKJ_18043
goto @BLACKJ_18074

:BLACKJ_18050
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18074
23@ = 0

:BLACKJ_18074
if 
  3@ == 2
goto_if_false @BLACKJ_18106
TIMERA = 0
3@ += 1

:BLACKJ_18106
if 
  3@ == 3
goto_if_false @BLACKJ_18246
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18162
23@ = 1
3@ = 99
goto @BLACKJ_18246

:BLACKJ_18162
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_18246
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_18246
set_help_message_box_size 128
print_help_forever 'BJ_H4'

:BLACKJ_18246
if 
  3@ == 99
goto_if_false @BLACKJ_18285
gosub @BLACKJ_10561
2@ = 1
3@ = 0

:BLACKJ_18285
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_18301
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_18452
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_18452 {caseNum1} 0 {caseLabel1} @BLACKJ_18389 {caseNum2} 1 {caseLabel2} @BLACKJ_18410 {caseNum3} 2 {caseLabel3} @BLACKJ_18431 {caseNum4} -1 {caseLabel4} @BLACKJ_18452 {caseNum5} -1 {caseLabel5} @BLACKJ_18452 {caseNum6} -1 {caseLabel6} @BLACKJ_18452 {caseNum7} -1 {caseLabel7} @BLACKJ_18452

:BLACKJ_18389
set_char_say_script 1@ {_p2} 30423 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18452

:BLACKJ_18410
set_char_say_script 1@ {_p2} 30424 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18452

:BLACKJ_18431
set_char_say_script 1@ {_p2} 30425 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18452

:BLACKJ_18452
return 

:BLACKJ_18454
gosub @BLACKJ_31187
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_21797
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_19592
if 
  $player_total1 == 0
goto_if_false @BLACKJ_19168
switch_start $dealer_wins_by_default {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19084 {caseNum1} 4 {caseLabel1} @BLACKJ_18706 {caseNum2} 5 {caseLabel2} @BLACKJ_18727 {caseNum3} 6 {caseLabel3} @BLACKJ_18748 {caseNum4} 7 {caseLabel4} @BLACKJ_18769 {caseNum5} 8 {caseLabel5} @BLACKJ_18790 {caseNum6} 9 {caseLabel6} @BLACKJ_18811 {caseNum7} 10 {caseLabel7} @BLACKJ_18832
switch_continued 11 {caseLabel1} @BLACKJ_18853 {caseNum2} 12 {caseLabel2} @BLACKJ_18874 {caseNum3} 13 {caseLabel3} @BLACKJ_18895 {caseNum4} 14 {caseLabel4} @BLACKJ_18916 {caseNum5} 15 {caseLabel5} @BLACKJ_18937 {caseNum6} 16 {caseLabel6} @BLACKJ_18958 {caseNum7} 17 {caseLabel7} @BLACKJ_18979 {caseNum8} 18 {caseLabel8} @BLACKJ_19000 {caseNum9} 19 {caseLabel9} @BLACKJ_19021
switch_continued 20 {caseLabel1} @BLACKJ_19042 {caseNum2} 21 {caseLabel2} @BLACKJ_19063 {caseNum3} -1 {caseLabel3} @BLACKJ_19153 {caseNum4} -1 {caseLabel4} @BLACKJ_19153 {caseNum5} -1 {caseLabel5} @BLACKJ_19153 {caseNum6} -1 {caseLabel6} @BLACKJ_19153 {caseNum7} -1 {caseLabel7} @BLACKJ_19153 {caseNum8} -1 {caseLabel8} @BLACKJ_19153 {caseNum9} -1 {caseLabel9} @BLACKJ_19153

:BLACKJ_18706
set_char_say_script 1@ {_p2} 30441 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18727
set_char_say_script 1@ {_p2} 30442 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18748
set_char_say_script 1@ {_p2} 30443 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18769
set_char_say_script 1@ {_p2} 30444 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18790
set_char_say_script 1@ {_p2} 30445 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18811
set_char_say_script 1@ {_p2} 30446 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18832
set_char_say_script 1@ {_p2} 30429 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18853
set_char_say_script 1@ {_p2} 30430 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18874
set_char_say_script 1@ {_p2} 30431 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18895
set_char_say_script 1@ {_p2} 30432 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18916
set_char_say_script 1@ {_p2} 30433 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18937
set_char_say_script 1@ {_p2} 30434 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18958
set_char_say_script 1@ {_p2} 30435 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_18979
set_char_say_script 1@ {_p2} 30436 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_19000
set_char_say_script 1@ {_p2} 30437 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_19021
set_char_say_script 1@ {_p2} 30438 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_19042
set_char_say_script 1@ {_p2} 30439 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_19063
set_char_say_script 1@ {_p2} 30440 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19153

:BLACKJ_19084
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_19132
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19146

:BLACKJ_19132
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_19146
goto @BLACKJ_19153

:BLACKJ_19153
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_19585

:BLACKJ_19168
switch_start $dealer_wins_by_default {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19508 {caseNum1} 12 {caseLabel1} @BLACKJ_19296 {caseNum2} 13 {caseLabel2} @BLACKJ_19317 {caseNum3} 14 {caseLabel3} @BLACKJ_19338 {caseNum4} 15 {caseLabel4} @BLACKJ_19359 {caseNum5} 16 {caseLabel5} @BLACKJ_19380 {caseNum6} 17 {caseLabel6} @BLACKJ_19401 {caseNum7} 18 {caseLabel7} @BLACKJ_19422
switch_continued 19 {caseLabel1} @BLACKJ_19443 {caseNum2} 20 {caseLabel2} @BLACKJ_19464 {caseNum3} 21 {caseLabel3} @BLACKJ_19485 {caseNum4} -1 {caseLabel4} @BLACKJ_19577 {caseNum5} -1 {caseLabel5} @BLACKJ_19577 {caseNum6} -1 {caseLabel6} @BLACKJ_19577 {caseNum7} -1 {caseLabel7} @BLACKJ_19577 {caseNum8} -1 {caseLabel8} @BLACKJ_19577 {caseNum9} -1 {caseLabel9} @BLACKJ_19577

:BLACKJ_19296
set_char_say_script 1@ {_p2} 30401 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19317
set_char_say_script 1@ {_p2} 30402 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19338
set_char_say_script 1@ {_p2} 30403 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19359
set_char_say_script 1@ {_p2} 30404 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19380
set_char_say_script 1@ {_p2} 30405 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19401
set_char_say_script 1@ {_p2} 30406 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19422
set_char_say_script 1@ {_p2} 30407 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19443
set_char_say_script 1@ {_p2} 30408 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19464
set_char_say_script 1@ {_p2} 30400 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19485
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19577

:BLACKJ_19508
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_19556
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19570

:BLACKJ_19556
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_19570
goto @BLACKJ_19577

:BLACKJ_19577
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_19585
goto @BLACKJ_21797

:BLACKJ_19592
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_20707
if 
  $player_total1 == 0
goto_if_false @BLACKJ_20283
switch_start $dealer_wins_by_default {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20199 {caseNum1} 4 {caseLabel1} @BLACKJ_19821 {caseNum2} 5 {caseLabel2} @BLACKJ_19842 {caseNum3} 6 {caseLabel3} @BLACKJ_19863 {caseNum4} 7 {caseLabel4} @BLACKJ_19884 {caseNum5} 8 {caseLabel5} @BLACKJ_19905 {caseNum6} 9 {caseLabel6} @BLACKJ_19926 {caseNum7} 10 {caseLabel7} @BLACKJ_19947
switch_continued 11 {caseLabel1} @BLACKJ_19968 {caseNum2} 12 {caseLabel2} @BLACKJ_19989 {caseNum3} 13 {caseLabel3} @BLACKJ_20010 {caseNum4} 14 {caseLabel4} @BLACKJ_20031 {caseNum5} 15 {caseLabel5} @BLACKJ_20052 {caseNum6} 16 {caseLabel6} @BLACKJ_20073 {caseNum7} 17 {caseLabel7} @BLACKJ_20094 {caseNum8} 18 {caseLabel8} @BLACKJ_20115 {caseNum9} 19 {caseLabel9} @BLACKJ_20136
switch_continued 20 {caseLabel1} @BLACKJ_20157 {caseNum2} 21 {caseLabel2} @BLACKJ_20178 {caseNum3} -1 {caseLabel3} @BLACKJ_20268 {caseNum4} -1 {caseLabel4} @BLACKJ_20268 {caseNum5} -1 {caseLabel5} @BLACKJ_20268 {caseNum6} -1 {caseLabel6} @BLACKJ_20268 {caseNum7} -1 {caseLabel7} @BLACKJ_20268 {caseNum8} -1 {caseLabel8} @BLACKJ_20268 {caseNum9} -1 {caseLabel9} @BLACKJ_20268

:BLACKJ_19821
set_char_say_script 1@ {_p2} 30441 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19842
set_char_say_script 1@ {_p2} 30442 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19863
set_char_say_script 1@ {_p2} 30443 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19884
set_char_say_script 1@ {_p2} 30444 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19905
set_char_say_script 1@ {_p2} 30445 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19926
set_char_say_script 1@ {_p2} 30446 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19947
set_char_say_script 1@ {_p2} 30429 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19968
set_char_say_script 1@ {_p2} 30430 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_19989
set_char_say_script 1@ {_p2} 30431 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20010
set_char_say_script 1@ {_p2} 30432 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20031
set_char_say_script 1@ {_p2} 30433 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20052
set_char_say_script 1@ {_p2} 30434 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20073
set_char_say_script 1@ {_p2} 30435 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20094
set_char_say_script 1@ {_p2} 30436 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20115
set_char_say_script 1@ {_p2} 30437 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20136
set_char_say_script 1@ {_p2} 30438 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20157
set_char_say_script 1@ {_p2} 30439 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20178
set_char_say_script 1@ {_p2} 30440 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20268

:BLACKJ_20199
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_20247
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20261

:BLACKJ_20247
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_20261
goto @BLACKJ_20268

:BLACKJ_20268
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_20700

:BLACKJ_20283
switch_start $dealer_wins_by_default {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20623 {caseNum1} 12 {caseLabel1} @BLACKJ_20411 {caseNum2} 13 {caseLabel2} @BLACKJ_20432 {caseNum3} 14 {caseLabel3} @BLACKJ_20453 {caseNum4} 15 {caseLabel4} @BLACKJ_20474 {caseNum5} 16 {caseLabel5} @BLACKJ_20495 {caseNum6} 17 {caseLabel6} @BLACKJ_20516 {caseNum7} 18 {caseLabel7} @BLACKJ_20537
switch_continued 19 {caseLabel1} @BLACKJ_20558 {caseNum2} 20 {caseLabel2} @BLACKJ_20579 {caseNum3} 21 {caseLabel3} @BLACKJ_20600 {caseNum4} -1 {caseLabel4} @BLACKJ_20692 {caseNum5} -1 {caseLabel5} @BLACKJ_20692 {caseNum6} -1 {caseLabel6} @BLACKJ_20692 {caseNum7} -1 {caseLabel7} @BLACKJ_20692 {caseNum8} -1 {caseLabel8} @BLACKJ_20692 {caseNum9} -1 {caseLabel9} @BLACKJ_20692

:BLACKJ_20411
set_char_say_script 1@ {_p2} 30401 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20432
set_char_say_script 1@ {_p2} 30402 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20453
set_char_say_script 1@ {_p2} 30403 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20474
set_char_say_script 1@ {_p2} 30404 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20495
set_char_say_script 1@ {_p2} 30405 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20516
set_char_say_script 1@ {_p2} 30406 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20537
set_char_say_script 1@ {_p2} 30407 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20558
set_char_say_script 1@ {_p2} 30408 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20579
set_char_say_script 1@ {_p2} 30400 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20600
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20692

:BLACKJ_20623
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_20671
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20685

:BLACKJ_20671
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_20685
goto @BLACKJ_20692

:BLACKJ_20692
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_20700
goto @BLACKJ_21797

:BLACKJ_20707
if 
  $player_total2 == 0
goto_if_false @BLACKJ_21380
switch_start $player_total1_b {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21296 {caseNum1} 4 {caseLabel1} @BLACKJ_20918 {caseNum2} 5 {caseLabel2} @BLACKJ_20939 {caseNum3} 6 {caseLabel3} @BLACKJ_20960 {caseNum4} 7 {caseLabel4} @BLACKJ_20981 {caseNum5} 8 {caseLabel5} @BLACKJ_21002 {caseNum6} 9 {caseLabel6} @BLACKJ_21023 {caseNum7} 10 {caseLabel7} @BLACKJ_21044
switch_continued 11 {caseLabel1} @BLACKJ_21065 {caseNum2} 12 {caseLabel2} @BLACKJ_21086 {caseNum3} 13 {caseLabel3} @BLACKJ_21107 {caseNum4} 14 {caseLabel4} @BLACKJ_21128 {caseNum5} 15 {caseLabel5} @BLACKJ_21149 {caseNum6} 16 {caseLabel6} @BLACKJ_21170 {caseNum7} 17 {caseLabel7} @BLACKJ_21191 {caseNum8} 18 {caseLabel8} @BLACKJ_21212 {caseNum9} 19 {caseLabel9} @BLACKJ_21233
switch_continued 20 {caseLabel1} @BLACKJ_21254 {caseNum2} 21 {caseLabel2} @BLACKJ_21275 {caseNum3} -1 {caseLabel3} @BLACKJ_21365 {caseNum4} -1 {caseLabel4} @BLACKJ_21365 {caseNum5} -1 {caseLabel5} @BLACKJ_21365 {caseNum6} -1 {caseLabel6} @BLACKJ_21365 {caseNum7} -1 {caseLabel7} @BLACKJ_21365 {caseNum8} -1 {caseLabel8} @BLACKJ_21365 {caseNum9} -1 {caseLabel9} @BLACKJ_21365

:BLACKJ_20918
set_char_say_script 1@ {_p2} 30441 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_20939
set_char_say_script 1@ {_p2} 30442 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_20960
set_char_say_script 1@ {_p2} 30443 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_20981
set_char_say_script 1@ {_p2} 30444 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21002
set_char_say_script 1@ {_p2} 30445 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21023
set_char_say_script 1@ {_p2} 30446 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21044
set_char_say_script 1@ {_p2} 30429 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21065
set_char_say_script 1@ {_p2} 30430 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21086
set_char_say_script 1@ {_p2} 30431 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21107
set_char_say_script 1@ {_p2} 30432 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21128
set_char_say_script 1@ {_p2} 30433 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21149
set_char_say_script 1@ {_p2} 30434 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21170
set_char_say_script 1@ {_p2} 30435 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21191
set_char_say_script 1@ {_p2} 30436 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21212
set_char_say_script 1@ {_p2} 30437 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21233
set_char_say_script 1@ {_p2} 30438 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21254
set_char_say_script 1@ {_p2} 30439 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21275
set_char_say_script 1@ {_p2} 30440 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21365

:BLACKJ_21296
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_21344
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21358

:BLACKJ_21344
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_21358
goto @BLACKJ_21365

:BLACKJ_21365
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_21797

:BLACKJ_21380
switch_start $player_total1_b {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21720 {caseNum1} 12 {caseLabel1} @BLACKJ_21508 {caseNum2} 13 {caseLabel2} @BLACKJ_21529 {caseNum3} 14 {caseLabel3} @BLACKJ_21550 {caseNum4} 15 {caseLabel4} @BLACKJ_21571 {caseNum5} 16 {caseLabel5} @BLACKJ_21592 {caseNum6} 17 {caseLabel6} @BLACKJ_21613 {caseNum7} 18 {caseLabel7} @BLACKJ_21634
switch_continued 19 {caseLabel1} @BLACKJ_21655 {caseNum2} 20 {caseLabel2} @BLACKJ_21676 {caseNum3} 21 {caseLabel3} @BLACKJ_21697 {caseNum4} -1 {caseLabel4} @BLACKJ_21789 {caseNum5} -1 {caseLabel5} @BLACKJ_21789 {caseNum6} -1 {caseLabel6} @BLACKJ_21789 {caseNum7} -1 {caseLabel7} @BLACKJ_21789 {caseNum8} -1 {caseLabel8} @BLACKJ_21789 {caseNum9} -1 {caseLabel9} @BLACKJ_21789

:BLACKJ_21508
set_char_say_script 1@ {_p2} 30401 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21529
set_char_say_script 1@ {_p2} 30402 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21550
set_char_say_script 1@ {_p2} 30403 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21571
set_char_say_script 1@ {_p2} 30404 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21592
set_char_say_script 1@ {_p2} 30405 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21613
set_char_say_script 1@ {_p2} 30406 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21634
set_char_say_script 1@ {_p2} 30407 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21655
set_char_say_script 1@ {_p2} 30408 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21676
set_char_say_script 1@ {_p2} 30400 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21697
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21789

:BLACKJ_21720
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_21768
set_char_say_script 1@ {_p2} 30413 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21782

:BLACKJ_21768
set_char_say_script 1@ {_p2} 30414 {_p3} True {_p4} True {_p5} False

:BLACKJ_21782
goto @BLACKJ_21789

:BLACKJ_21789
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_21797
return 
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @BLACKJ_21864
$9306 += 1
if 
  $9306 > 7
goto_if_false @BLACKJ_21846
$9306 = 0

:BLACKJ_21846
write_debug_with_int "BJ_CHIP_NUM" {number} $9306

:BLACKJ_21864
if 
  does_object_exist 0@
goto_if_false @BLACKJ_22177
if 
  does_object_exist $total_bj_tables($9306,8i)
goto_if_false @BLACKJ_22177
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $9282($9306,8f) {yOffset} $9290($9306,8f) {zOffset} $9298($9306,8f)
set_object_coordinates $total_bj_tables($9306,8i) {x} $x {y} $y {z} $z
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_21982
$9298($9306,8f) += 0.005

:BLACKJ_21982
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_22011
$9298($9306,8f) += -0.005

:BLACKJ_22011
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_22040
$9282($9306,8f) += 0.005

:BLACKJ_22040
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_22069
$9282($9306,8f) += -0.005

:BLACKJ_22069
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @BLACKJ_22098
$9290($9306,8f) += 0.005

:BLACKJ_22098
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @BLACKJ_22127
$9290($9306,8f) += -0.005

:BLACKJ_22127
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @BLACKJ_22152
$9215 += 0.005

:BLACKJ_22152
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @BLACKJ_22177
$9215 += -0.005

:BLACKJ_22177
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_23193
save_newline_to_debug_file 
save_string_to_debug_file "// ------ BJ CHIP OFFSETS -------"
save_newline_to_debug_file 
10@ = 0

:BLACKJ_22333
if 
  8 > 10@
goto_if_false @BLACKJ_23193
save_string_to_debug_file "BJ_CHIP_OFF_X["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $9282(10@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "BJ_CHIP_OFF_Y["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $9290(10@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "BJ_CHIP_OFF_Z["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $9298(10@,8f)
save_newline_to_debug_file 
10@ += 1
goto @BLACKJ_22333

:BLACKJ_23193
return 

:BLACKJ_23195
set_lvar_int_to_var_int 12@ = $bj_refund
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23252
13@ = 10.0

:BLACKJ_23252
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23306
14@ += 0.0

:BLACKJ_23306
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[0]
goto_if_false @BLACKJ_23408
$x, $y, $z = get_object_coordinates $total_bj_tables[0]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[0] {x} $x {y} $y {z} $z

:BLACKJ_23408
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 5.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23457
13@ = 10.0

:BLACKJ_23457
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23511
14@ += 0.0

:BLACKJ_23511
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[1]
goto_if_false @BLACKJ_23613
$x, $y, $z = get_object_coordinates $total_bj_tables[1]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[1] {x} $x {y} $y {z} $z

:BLACKJ_23613
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 10.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23662
13@ = 10.0

:BLACKJ_23662
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23716
14@ += 0.0

:BLACKJ_23716
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[2]
goto_if_false @BLACKJ_23818
$x, $y, $z = get_object_coordinates $total_bj_tables[2]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[2] {x} $x {y} $y {z} $z

:BLACKJ_23818
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 50.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23867
13@ = 10.0

:BLACKJ_23867
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23921
14@ += 0.0

:BLACKJ_23921
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[3]
goto_if_false @BLACKJ_24023
$x, $y, $z = get_object_coordinates $total_bj_tables[3]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[3] {x} $x {y} $y {z} $z

:BLACKJ_24023
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 100.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24072
13@ = 10.0

:BLACKJ_24072
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24126
14@ += 0.0

:BLACKJ_24126
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[4]
goto_if_false @BLACKJ_24228
$x, $y, $z = get_object_coordinates $total_bj_tables[4]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[4] {x} $x {y} $y {z} $z

:BLACKJ_24228
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 200.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24277
13@ = 10.0

:BLACKJ_24277
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24331
14@ += 0.0

:BLACKJ_24331
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[5]
goto_if_false @BLACKJ_24434
$x, $y, $z = get_object_coordinates $total_bj_tables[5]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[5] {x} $x {y} $y {z} $z

:BLACKJ_24434
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 500.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24483
13@ = 10.0

:BLACKJ_24483
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24537
14@ += 0.0

:BLACKJ_24537
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[6]
goto_if_false @BLACKJ_24640
$x, $y, $z = get_object_coordinates $total_bj_tables[6]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[6] {x} $x {y} $y {z} $z

:BLACKJ_24640
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1000.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24689
13@ = 10.0

:BLACKJ_24689
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24743
14@ += 0.0

:BLACKJ_24743
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $total_bj_tables[7]
goto_if_false @BLACKJ_24846
$x, $y, $z = get_object_coordinates $total_bj_tables[7]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $total_bj_tables[7] {x} $x {y} $y {z} $z

:BLACKJ_24846
return 

:BLACKJ_24848
set_sprites_draw_before_fade False
draw_window $card_cheat_value[0] {leftTopY} $9255[0] {rightBottomX} $card_cheat_value[1] {rightBottomY} $9255[1] {header} 'BJ_TITL' {zIndex} 2
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[2] {offsetTop} $9255[2] {key} 'BJ_01'
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $card_cheat_value[3] {offsetTop} $9255[3] {key} 'DOLLAR' {num} $bj_refund
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[4] {offsetTop} $9255[4] {key} 'BJ_02'
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $card_cheat_value[5] {offsetTop} $9255[5] {key} 'DOLLAR' {num} 30@
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[6] {offsetTop} $9255[6] {key} 'BJ_03'
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $card_cheat_value[7] {offsetTop} $9255[7] {key} 'DOLLAR' {num} 29@
return 

:BLACKJ_25134
set_sprites_draw_before_fade False
draw_window $card_cheat_value[8] {leftTopY} $9255[8] {rightBottomX} $card_cheat_value[9] {rightBottomY} $9255[9] {header} 'BJ_TITL' {zIndex} 2
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[10] {offsetTop} $9255[10] {key} 'BJ_01'
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $card_cheat_value[11] {offsetTop} $9255[11] {key} 'DOLLAR' {num} $bj_refund
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[12] {offsetTop} $9255[12] {key} 'BJ_04'
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  2@ > 4
goto_if_false @BLACKJ_25448
if 
  $dealer_total == 0
goto_if_false @BLACKJ_25418
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_25391
display_text $card_cheat_value[13] {offsetTop} $9255[13] {key} 'BJ_BUST'
goto @BLACKJ_25411

:BLACKJ_25391
display_text_with_number $card_cheat_value[13] {offsetTop} $9255[13] {key} 'BJ_0' {num} $player_total2_b

:BLACKJ_25411
goto @BLACKJ_25441

:BLACKJ_25418
display_text_with_2_numbers $card_cheat_value[14] {offsetTop} $9255[14] {key} 'BJ_OR2' {num1} $player_total2_b {num2} $dealer_total

:BLACKJ_25441
goto @BLACKJ_25465

:BLACKJ_25448
display_text $card_cheat_value[13] {offsetTop} $9255[13] {key} 'BJ_HIDE'

:BLACKJ_25465
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $card_cheat_value[15] {offsetTop} $9255[15] {key} 'BJ_05'
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_25665
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total1 == 0
goto_if_false @BLACKJ_25635
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_25608
display_text $card_cheat_value[16] {offsetTop} $9255[16] {key} 'BJ_BUST'
goto @BLACKJ_25628

:BLACKJ_25608
display_text_with_number $card_cheat_value[16] {offsetTop} $9255[16] {key} 'BJ_0' {num} $dealer_wins_by_default

:BLACKJ_25628
goto @BLACKJ_25658

:BLACKJ_25635
display_text_with_2_numbers $card_cheat_value[17] {offsetTop} $9255[17] {key} 'BJ_OR2' {num1} $dealer_wins_by_default {num2} $player_total1

:BLACKJ_25658
goto @BLACKJ_25931

:BLACKJ_25665
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total1 == 0
goto_if_false @BLACKJ_25775
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_25748
display_text $card_cheat_value[18] {offsetTop} $9255[18] {key} 'BJ_BUST'
goto @BLACKJ_25768

:BLACKJ_25748
display_text_with_number $card_cheat_value[18] {offsetTop} $9255[18] {key} 'BJ_0' {num} $dealer_wins_by_default

:BLACKJ_25768
goto @BLACKJ_25798

:BLACKJ_25775
display_text_with_2_numbers $card_cheat_value[19] {offsetTop} $9255[19] {key} 'BJ_OR2' {num1} $dealer_wins_by_default {num2} $player_total1

:BLACKJ_25798
gosub @BLACKJ_34009
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total2 == 0
goto_if_false @BLACKJ_25908
if 
  $player_total1_b > 21
goto_if_false @BLACKJ_25881
display_text $card_cheat_value[20] {offsetTop} $9255[20] {key} 'BJ_BUST'
goto @BLACKJ_25901

:BLACKJ_25881
display_text_with_number $card_cheat_value[20] {offsetTop} $9255[20] {key} 'BJ_0' {num} $player_total1_b

:BLACKJ_25901
goto @BLACKJ_25931

:BLACKJ_25908
display_text_with_2_numbers $card_cheat_value[21] {offsetTop} $9255[21] {key} 'BJ_OR2' {num1} $player_total1_b {num2} $player_total2

:BLACKJ_25931
return 
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @BLACKJ_26007
$bj_chip_num += 1
if 
  $bj_chip_num > 26
goto_if_false @BLACKJ_25980
$bj_chip_num = -1

:BLACKJ_25980
write_debug_with_int "SCREEN_POSITION_EDIT" {number} $bj_chip_num

:BLACKJ_26007
if 
  $bj_chip_num > -1
goto_if_false @BLACKJ_26141
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_26054
$card_cheat_value($bj_chip_num,27f) += 1.0

:BLACKJ_26054
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_26083
$card_cheat_value($bj_chip_num,27f) += -1.0

:BLACKJ_26083
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_26112
$9255($bj_chip_num,27f) += -1.0

:BLACKJ_26112
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_26141
$9255($bj_chip_num,27f) += 1.0

:BLACKJ_26141
if 
  $bj_chip_num > -1
goto_if_false @BLACKJ_26899
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_26899
save_newline_to_debug_file 
save_string_to_debug_file "------ SCREEN COORDS ------"
10@ = 0

:BLACKJ_26313
if 
  27 > 10@
goto_if_false @BLACKJ_26897
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_POS_X["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $card_cheat_value(10@,27f)
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_POS_Y["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $9255(10@,27f)
10@ += 1
goto @BLACKJ_26313

:BLACKJ_26897
save_newline_to_debug_file 

:BLACKJ_26899
return 
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @BLACKJ_27265
$screen_pos += 1
if 
  $screen_pos > 7
goto_if_false @BLACKJ_26948
$screen_pos = 0

:BLACKJ_26948
if 
  $screen_pos == 1
goto_if_false @BLACKJ_26984
write_debug "EDIT_CARD_SIZE"

:BLACKJ_26984
if 
  $screen_pos == 2
goto_if_false @BLACKJ_27027
write_debug "EDIT_CARD_POSITIONS_X"

:BLACKJ_27027
if 
  $screen_pos == 3
goto_if_false @BLACKJ_27077
write_debug "EDIT_PLAYERS_CARD_POSITION_1"

:BLACKJ_27077
if 
  $screen_pos == 4
goto_if_false @BLACKJ_27128
write_debug "EDIT_PLAYERS_CARD_POSITION_1B"

:BLACKJ_27128
if 
  $screen_pos == 5
goto_if_false @BLACKJ_27178
write_debug "EDIT_PLAYERS_CARD_POSITION_2"

:BLACKJ_27178
if 
  $screen_pos == 6
goto_if_false @BLACKJ_27226
write_debug "EDIT_DEALERS_CARD_POSITION"

:BLACKJ_27226
if 
  $screen_pos == 7
goto_if_false @BLACKJ_27265
write_debug "EDIT_BORDER_WIDTH"

:BLACKJ_27265
if 
  $screen_pos == 1
goto_if_false @BLACKJ_27473
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27315
$card_width += 1.0
gosub @BLACKJ_32356

:BLACKJ_27315
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27378
$card_width += -1.0
if 
  1.0 > $card_width
goto_if_false @BLACKJ_27371
$card_width = 1.0

:BLACKJ_27371
gosub @BLACKJ_32356

:BLACKJ_27378
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27410
$9134 += 1.0
gosub @BLACKJ_32356

:BLACKJ_27410
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27473
$9134 += -1.0
if 
  1.0 > $9134
goto_if_false @BLACKJ_27466
$9134 = 1.0

:BLACKJ_27466
gosub @BLACKJ_32356

:BLACKJ_27473
if 
  $screen_pos == 2
goto_if_false @BLACKJ_27595
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27543
$9086[0] += 1.0
$9102[0] += 1.0
$9118[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27543
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27595
$9086[0] += -1.0
$9102[0] += -1.0
$9118[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27595
if 
  $screen_pos == 3
goto_if_false @BLACKJ_27677
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27645
$9094[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27645
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27677
$9094[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27677
if 
  $screen_pos == 4
goto_if_false @BLACKJ_27759
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27727
$9110[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27727
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27759
$9110[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27759
if 
  $screen_pos == 5
goto_if_false @BLACKJ_27841
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27809
$9126[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27809
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27841
$9126[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27841
if 
  $screen_pos == 6
goto_if_false @BLACKJ_27987
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27891
$vp_out_card_value[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27891
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27923
$vp_out_card_value[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27923
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27955
$9078[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27955
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27987
$9078[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27987
if 
  $screen_pos == 7
goto_if_false @BLACKJ_28055
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_28030
$spacing_x += 1.0

:BLACKJ_28030
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_28055
$spacing_x += -1.0

:BLACKJ_28055
if 
  $screen_pos > 0
goto_if_false @BLACKJ_29729
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_29729
save_newline_to_debug_file 
save_string_to_debug_file "----- BLACKJACK SCREEN COORDS ------"
save_newline_to_debug_file 
save_string_to_debug_file "CARD_WIDTH = "
save_float_to_debug_file $9134
save_newline_to_debug_file 
save_string_to_debug_file "CARD_HEIGHT = "
save_float_to_debug_file $card_width
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1_X[0] = "
save_float_to_debug_file $9086[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1_Y[0] = "
save_float_to_debug_file $9094[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1B_X[0] = "
save_float_to_debug_file $9102[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1B_Y[0] = "
save_float_to_debug_file $9110[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE2_X[0] = "
save_float_to_debug_file $9118[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE2_Y[0] = "
save_float_to_debug_file $9126[0]
save_newline_to_debug_file 
save_string_to_debug_file "DEALER_SPRITE_X[0] = "
save_float_to_debug_file $vp_out_card_value[0]
save_newline_to_debug_file 
save_string_to_debug_file "DEALER_SPRITE_Y[0] = "
save_float_to_debug_file $9078[0]
save_newline_to_debug_file 
save_string_to_debug_file "BORDER_WIDTH = "
save_float_to_debug_file $spacing_x
save_newline_to_debug_file 

:BLACKJ_29729
return 

:BLACKJ_29731
if 
  $bj_adjust_mode == 0
goto_if_false @BLACKJ_29768
$multiplier = 0
$multiplier = fetch_next_card 
goto @BLACKJ_29776

:BLACKJ_29768
set_var_int_to_var_int $multiplier = $9227

:BLACKJ_29776
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_29830
task_play_anim 1@ {animationName} "DEALONE" {animationFile} "CASINO" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500

:BLACKJ_29830
return 

:BLACKJ_29832
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_31185
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30067
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $9086[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9094[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $9086[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9094[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0
goto @BLACKJ_30264

:BLACKJ_30067
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $9102[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9110[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $9118[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9126[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0

:BLACKJ_30264
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_30516
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $vp_out_card_value[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9078[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $vp_out_card_value[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9078[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0

:BLACKJ_30516
$card_cheat_on = 0

:BLACKJ_30523
if 
  8 > $card_cheat_on
goto_if_false @BLACKJ_31185
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30633
if 
  $9148($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30626
set_sprites_draw_before_fade True
draw_sprite $9148($card_cheat_on,8i) {offsetLeft} $9086($card_cheat_on,8f) {offsetTop} $9094($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30626
goto @BLACKJ_30767

:BLACKJ_30633
if 
  $9148($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30700
set_sprites_draw_before_fade True
draw_sprite $9148($card_cheat_on,8i) {offsetLeft} $9102($card_cheat_on,8f) {offsetTop} $9110($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30700
if 
  $9156($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30767
set_sprites_draw_before_fade True
draw_sprite $9156($card_cheat_on,8i) {offsetLeft} $9118($card_cheat_on,8f) {offsetTop} $9126($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30767
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_31166
if 
  $next_card($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_31159
if 
  $card_cheat_on == 0
goto_if_false @BLACKJ_31114
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30997
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_30945
set_sprites_draw_before_fade True
draw_sprite 53 {offsetLeft} $vp_out_card_value($card_cheat_on,8f) {offsetTop} $9078($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255
goto @BLACKJ_30990

:BLACKJ_30945
set_sprites_draw_before_fade True
draw_sprite $next_card($card_cheat_on,8i) {offsetLeft} $vp_out_card_value($card_cheat_on,8f) {offsetTop} $9078($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30990
goto @BLACKJ_31107

:BLACKJ_30997
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_31062
set_sprites_draw_before_fade True
draw_sprite 53 {offsetLeft} $vp_out_card_value($card_cheat_on,8f) {offsetTop} $9078($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255
goto @BLACKJ_31107

:BLACKJ_31062
set_sprites_draw_before_fade True
draw_sprite $next_card($card_cheat_on,8i) {offsetLeft} $vp_out_card_value($card_cheat_on,8f) {offsetTop} $9078($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_31107
goto @BLACKJ_31159

:BLACKJ_31114
set_sprites_draw_before_fade True
draw_sprite $next_card($card_cheat_on,8i) {offsetLeft} $vp_out_card_value($card_cheat_on,8f) {offsetTop} $9078($card_cheat_on,8f) {width} $9134 {height} $card_width {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_31159
goto @BLACKJ_31171

:BLACKJ_31166
set_help_message_box_size 200

:BLACKJ_31171
$card_cheat_on += 1
goto @BLACKJ_30523

:BLACKJ_31185
return 

:BLACKJ_31187
$player_total2_b = 0
$dealer_total = 0
$dealer_wins_by_default = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$dealer_total2 = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$counter_disp = 0

:BLACKJ_31257
if 
  8 > $counter_disp
goto_if_false @BLACKJ_31742
if 
  $next_card($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31426
set_var_int_to_var_int $ct_temp_int = $next_card($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31410
if 
  $dealer_total2 == 0
goto_if_false @BLACKJ_31389
$player_total2_b += 11
$dealer_total2 = 1
goto @BLACKJ_31396

:BLACKJ_31389
$player_total2_b += 1

:BLACKJ_31396
$dealer_total += 1
goto @BLACKJ_31426

:BLACKJ_31410
add_int_var_to_int_var $player_total2_b += $ct_temp_int
add_int_var_to_int_var $dealer_total += $ct_temp_int

:BLACKJ_31426
if 
  $9148($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31577
set_var_int_to_var_int $ct_temp_int = $9148($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31561
if 
  $dealer_got_ace == 0
goto_if_false @BLACKJ_31540
$dealer_wins_by_default += 11
$dealer_got_ace = 1
goto @BLACKJ_31547

:BLACKJ_31540
$dealer_wins_by_default += 1

:BLACKJ_31547
$player_total1 += 1
goto @BLACKJ_31577

:BLACKJ_31561
add_int_var_to_int_var $dealer_wins_by_default += $ct_temp_int
add_int_var_to_int_var $player_total1 += $ct_temp_int

:BLACKJ_31577
if 
  $9156($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31728
set_var_int_to_var_int $ct_temp_int = $9156($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31712
if 
  $player_got_ace1 == 0
goto_if_false @BLACKJ_31691
$player_total1_b += 11
$player_got_ace1 = 1
goto @BLACKJ_31698

:BLACKJ_31691
$player_total1_b += 1

:BLACKJ_31698
$player_total2 += 1
goto @BLACKJ_31728

:BLACKJ_31712
add_int_var_to_int_var $player_total1_b += $ct_temp_int
add_int_var_to_int_var $player_total2 += $ct_temp_int

:BLACKJ_31728
$counter_disp += 1
goto @BLACKJ_31257

:BLACKJ_31742
if 
  is_int_var_greater_than_int_var $player_total2_b > $dealer_total
goto_if_false @BLACKJ_31826
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_31794
set_var_int_to_var_int $player_total2_b = $dealer_total
$dealer_total = 0

:BLACKJ_31794
if 
  $player_total2_b == 21
goto_if_false @BLACKJ_31819
$dealer_total = 0

:BLACKJ_31819
goto @BLACKJ_31833

:BLACKJ_31826
$dealer_total = 0

:BLACKJ_31833
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total1
goto_if_false @BLACKJ_31917
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_31885
set_var_int_to_var_int $dealer_wins_by_default = $player_total1
$player_total1 = 0

:BLACKJ_31885
if 
  $dealer_wins_by_default == 21
goto_if_false @BLACKJ_31910
$player_total1 = 0

:BLACKJ_31910
goto @BLACKJ_31924

:BLACKJ_31917
$player_total1 = 0

:BLACKJ_31924
if 
  is_int_var_greater_than_int_var $player_total1_b > $player_total2
goto_if_false @BLACKJ_32008
if 
  $player_total1_b > 21
goto_if_false @BLACKJ_31976
set_var_int_to_var_int $player_total1_b = $player_total2
$player_total2 = 0

:BLACKJ_31976
if 
  $player_total1_b == 21
goto_if_false @BLACKJ_32001
$player_total2 = 0

:BLACKJ_32001
goto @BLACKJ_32015

:BLACKJ_32008
$player_total2 = 0

:BLACKJ_32015
return 

:BLACKJ_32017
if 
  14 > $ct_this_card_value
goto_if_false @BLACKJ_32043
set_var_int_to_var_int $in_card_value = $ct_this_card_value

:BLACKJ_32043
if and
  27 > $ct_this_card_value
  $ct_this_card_value > 13
goto_if_false @BLACKJ_32083
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 13

:BLACKJ_32083
if and
  40 > $ct_this_card_value
  $ct_this_card_value > 26
goto_if_false @BLACKJ_32123
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 26

:BLACKJ_32123
if and
  53 > $ct_this_card_value
  $ct_this_card_value > 39
goto_if_false @BLACKJ_32163
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 39

:BLACKJ_32163
if 
  14 > $in_card_value
goto_if_false @BLACKJ_32206
if 
  $in_card_value > 10
goto_if_false @BLACKJ_32206
$in_card_value = 10

:BLACKJ_32206
return 

:BLACKJ_32208
if 
  14 > $ct_this_card_value
goto_if_false @BLACKJ_32234
set_var_int_to_var_int $in_card_value = $ct_this_card_value

:BLACKJ_32234
if and
  27 > $ct_this_card_value
  $ct_this_card_value > 13
goto_if_false @BLACKJ_32274
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 13

:BLACKJ_32274
if and
  40 > $ct_this_card_value
  $ct_this_card_value > 26
goto_if_false @BLACKJ_32314
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 26

:BLACKJ_32314
if and
  53 > $ct_this_card_value
  $ct_this_card_value > 39
goto_if_false @BLACKJ_32354
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 39

:BLACKJ_32354
return 

:BLACKJ_32356
set_var_float_to_var_float $9118[0] = $9086[0]
set_var_float_to_var_float $9126[0] = $9094[0]
set_var_float_to_var_float $9102[0] = $9086[0]
set_var_float_to_var_float $9110[0] = $9094[0]
sub_float_var_from_float_var $9110[0] -= $card_width
sub_float_var_from_float_var $9110[0] -= $spacing_x
10@ = 0

:BLACKJ_32411
if 
  8 > 10@
goto_if_false @BLACKJ_32740
if 
  5 > 10@
goto_if_false @BLACKJ_32630
set_var_float_to_var_float $card_height = $9134
add_float_var_to_float_var $card_height += $spacing_x
cset_var_float_to_lvar_int $border_width =# 10@
mult_float_var_by_float_var $border_width *= $card_height
set_var_float_to_var_float $9086(10@,8f) = $9086[0]
add_float_var_to_float_var $9086(10@,8f) += $border_width
set_var_float_to_var_float $9094(10@,8f) = $9094[0]
set_var_float_to_var_float $9102(10@,8f) = $9102[0]
add_float_var_to_float_var $9102(10@,8f) += $border_width
set_var_float_to_var_float $9110(10@,8f) = $9110[0]
set_var_float_to_var_float $9118(10@,8f) = $9118[0]
add_float_var_to_float_var $9118(10@,8f) += $border_width
set_var_float_to_var_float $9126(10@,8f) = $9126[0]
set_var_float_to_var_float $vp_out_card_value(10@,8f) = $vp_out_card_value[0]
add_float_var_to_float_var $vp_out_card_value(10@,8f) += $border_width
set_var_float_to_var_float $9078(10@,8f) = $9078[0]
goto @BLACKJ_32726

:BLACKJ_32630
set_var_float_to_var_float $9086(10@,8f) = $9086[4]
set_var_float_to_var_float $9094(10@,8f) = $9094[4]
set_var_float_to_var_float $9102(10@,8f) = $9102[4]
set_var_float_to_var_float $9110(10@,8f) = $9110[4]
set_var_float_to_var_float $9118(10@,8f) = $9118[4]
set_var_float_to_var_float $9126(10@,8f) = $9126[4]
set_var_float_to_var_float $vp_out_card_value(10@,8f) = $vp_out_card_value[4]
set_var_float_to_var_float $9078(10@,8f) = $9078[4]

:BLACKJ_32726
10@ += 1
goto @BLACKJ_32411

:BLACKJ_32740
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 0@
goto_if_false @BLACKJ_32791
$out_card_value, $bj_x2, $bj_y2 = get_object_coordinates 0@
$heading = get_object_heading 0@

:BLACKJ_32791
$heading *= -1.0
13@ = cos $heading
14@ = sin $heading
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
return 
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 0@
goto_if_false @BLACKJ_33432
$out_card_value, $bj_x2, $bj_y2 = get_object_coordinates 0@
$heading = get_object_heading 0@

:BLACKJ_33432
$heading *= -1.0
13@ = cos $heading
14@ = sin $heading
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_COORDINATES - OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
return 

:BLACKJ_33735
13@ = get_float_stat StatId.Gambling
if 
  1.0 > 13@
goto_if_false @BLACKJ_33777
$bj_payout = 100
goto @BLACKJ_33897

:BLACKJ_33777
if 
  10.0 > 13@
goto_if_false @BLACKJ_33813
$bj_payout = 1000
goto @BLACKJ_33897

:BLACKJ_33813
if 
  100.0 > 13@
goto_if_false @BLACKJ_33849
$bj_payout = 10000
goto @BLACKJ_33897

:BLACKJ_33849
if 
  1000.0 > 13@
goto_if_false @BLACKJ_33887
$bj_payout = 100000
goto @BLACKJ_33897

:BLACKJ_33887
$bj_payout = 1000000

:BLACKJ_33897
return 
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_justify False
set_text_right_justify False
set_text_wrapx 2000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.6 {heightScale} 1.6
return 
set_text_colour 255 {green} 180 {blue} 180 {alpha} 255
set_text_justify False
set_text_right_justify False
set_text_wrapx 2000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 2.0 {heightScale} 3.0
return 

:BLACKJ_34009
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:BLACKJ_34119
set_text_colour 255 {green} 255 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale $card_cheat_value[24] {heightScale} $9255[24]
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour 6
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour 0
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour HudObject.Health
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour HudObject.Health
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Menu
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.52 {heightScale} 1.45
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 

:BLACKJ_34534
set_minigame_in_progress False
2@ = 0
3@ = 0
4@ = 0
5@ = 0
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_34623
clear_help 

:BLACKJ_34623
restore_camera 
10@ = 0

:BLACKJ_34632
if 
  8 > 10@
goto_if_false @BLACKJ_34693
if 
  does_object_exist $total_bj_tables(10@,8i)
goto_if_false @BLACKJ_34679
delete_object $total_bj_tables(10@,8i)

:BLACKJ_34679
10@ += 1
goto @BLACKJ_34632

:BLACKJ_34693
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_34716
task_stay_in_same_place 1@ {state} True

:BLACKJ_34716
terminate_all_scripts_with_this_name 'CASHWIN'
set_player_control $player1 {state} True
restore_camera_jumpcut 
remove_animation "CASINO"
remove_texture_dictionary 
use_text_commands False
display_radar True
switch_rubbish 1
set_help_message_box_size 200
return 
terminate_this_script 

//-------------External script 18 (WHEELO)---------------

:WOF
script_name 'WOF'
5@ = 0
6@ = 0
22@ = 0.0
23@ = 0.0
13@ = 0
15@ = 0
16@ = 0
25@ = -1
27@ = 0
generate_random_int_in_range 0 {max} 30000 {var_result} TIMERA
goto @WOF_438
0@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
4@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
7@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$wof_winnings[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9344[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9350[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9356[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9362[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9368[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9374[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9380[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$9435 = create_object #ROULETTE_MARKER {x} 0.0 {y} 0.0 {z} 0.0

:WOF_438
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @WOF_2376
if 
  does_object_exist 0@
goto_if_false @WOF_2362
if 
  is_object_within_brain_activation_range 0@
goto_if_false @WOF_2348
if 
  $wof_refund == 0
goto_if_false @WOF_2253
if 
  is_player_playing $player1
goto_if_false @WOF_2239
if 
  5@ == 0
goto_if_false @WOF_1066
if 
  6@ == 0
goto_if_false @WOF_583
request_model 11
request_animation "CASINO"
6@ += 1

:WOF_583
if 
  6@ == 1
goto_if_false @WOF_633
if and
  has_model_loaded 11
  has_animation_loaded "CASINO"
goto_if_false @WOF_633
6@ += 1

:WOF_633
if 
  6@ == 2
goto_if_false @WOF_1029
if 
  not does_char_exist 7@
goto_if_false @WOF_781
20@ = get_object_heading 0@
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.3974 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
7@ = create_char PedType.CivFemale {modelId} 11 {x} $x {y} $y {z} $z
set_char_decision_maker 7@ {handleOrTemplate} $iGlobalPedPanicDM
set_var_float_to_lvar_float $heading = 20@
$heading += 180.0
set_char_heading 7@ {heading} $heading
freeze_char_position 7@ {state} True
mark_model_as_no_longer_needed 11

:WOF_781
if 
  not does_object_exist 4@
goto_if_false @WOF_851
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.159 {zOffset} 0.0
4@ = create_object_no_offset #WHEEL_SUPPORT {x} $x {y} $y {z} $z
set_object_heading 4@ {heading} 20@

:WOF_851
if 
  not does_object_exist 2@
goto_if_false @WOF_952
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.132 {yOffset} -1.0492 {zOffset} -0.8342
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
2@ = create_object_no_offset #WHEEL_TABLE {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} 20@
gosub @WOF_15505

:WOF_952
if 
  not does_object_exist 1@
goto_if_false @WOF_1022
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.05
1@ = create_object_no_offset #CLICKER {x} $x {y} $y {z} $z
set_object_heading 1@ {heading} 20@

:WOF_1022
6@ += 1

:WOF_1029
if 
  6@ == 3
goto_if_false @WOF_1066
generate_random_int_in_range 0 {max} 50000 {var_result} TIMERA
5@ += 1

:WOF_1066
if 
  5@ == 1
goto_if_false @WOF_2189
if 
  not is_char_dead 7@
goto_if_false @WOF_1309
if 
  TIMERA > 50000
goto_if_false @WOF_1309
task_play_anim 7@ {animationName} "WOF" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_1295 {caseNum1} 0 {caseLabel1} @WOF_1226 {caseNum2} 1 {caseLabel2} @WOF_1249 {caseNum3} 2 {caseLabel3} @WOF_1272 {caseNum4} -1 {caseLabel4} @WOF_1295 {caseNum5} -1 {caseLabel5} @WOF_1295 {caseNum6} -1 {caseLabel6} @WOF_1295 {caseNum7} -1 {caseLabel7} @WOF_1295

:WOF_1226
set_char_say_script 7@ {_p2} 40008 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1249
set_char_say_script 7@ {_p2} 40009 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1272
set_char_say_script 7@ {_p2} 40010 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1295
25@ = 0
TIMERA = 0

:WOF_1309
if 
  not is_char_dead 7@
goto_if_false @WOF_2189
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  $fFunTemp == 0
goto_if_false @WOF_2189
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @WOF_2162
if 
  is_char_on_foot $scplayer
goto_if_false @WOF_2155
if 
  15@ == 0
goto_if_false @WOF_2131
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_1865
10@ = 0
8@ = get_float_stat StatId.Gambling
if 
  19@ == 1000000
goto_if_false @WOF_1558
if 
  1000.0 > 8@
goto_if_false @WOF_1551
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1551
goto @WOF_1784

:WOF_1558
if 
  19@ == 100000
goto_if_false @WOF_1637
if 
  100.0 > 8@
goto_if_false @WOF_1630
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1630
goto @WOF_1784

:WOF_1637
if 
  19@ == 10000
goto_if_false @WOF_1714
if 
  10.0 > 8@
goto_if_false @WOF_1707
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1707
goto @WOF_1784

:WOF_1714
if 
  19@ == 1000
goto_if_false @WOF_1784
if 
  1.0 > 8@
goto_if_false @WOF_1784
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1784
if 
  10@ == 0
goto_if_false @WOF_1858
if 
  14@ == 1
goto_if_false @WOF_1829
clear_help 
14@ = 0

:WOF_1829
5@ = 0
6@ = 0
set_var_int_to_lvar_int $wof_refund = 0@
15@ = 1

:WOF_1858
goto @WOF_2124

:WOF_1865
if 
  14@ == 0
goto_if_false @WOF_2124
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @WOF_2124
switch_start 19@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @WOF_2099 {caseNum1} 100 {caseLabel1} @WOF_2009 {caseNum2} 1000 {caseLabel2} @WOF_2027 {caseNum3} 10000 {caseLabel3} @WOF_2045 {caseNum4} 100000 {caseLabel4} @WOF_2063 {caseNum5} 1000000 {caseLabel5} @WOF_2081 {caseNum6} -1 {caseLabel6} @WOF_2117 {caseNum7} -1 {caseLabel7} @WOF_2117

:WOF_2009
print_help_forever 'WOF_06A'
goto @WOF_2117

:WOF_2027
print_help_forever 'WOF_06B'
goto @WOF_2117

:WOF_2045
print_help_forever 'WOF_06C'
goto @WOF_2117

:WOF_2063
print_help_forever 'WOF_06D'
goto @WOF_2117

:WOF_2081
print_help_forever 'WOF_06E'
goto @WOF_2117

:WOF_2099
print_help_forever 'WOF_06'
goto @WOF_2117

:WOF_2117
14@ = 1

:WOF_2124
goto @WOF_2155

:WOF_2131
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2155
15@ = 0

:WOF_2155
goto @WOF_2189

:WOF_2162
if 
  14@ == 1
goto_if_false @WOF_2189
clear_help 
14@ = 0

:WOF_2189
if or
  is_object_on_screen 0@
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @WOF_2232
gosub @WOF_9892

:WOF_2232
goto @WOF_2246

:WOF_2239
gosub @WOF_2465

:WOF_2246
goto @WOF_2341

:WOF_2253
if 
  is_int_var_equal_to_int_lvar $wof_refund == 0@
goto_if_false @WOF_2341
if 
  is_player_playing $player1
goto_if_false @WOF_2341
if 
  13@ == 0
goto_if_false @WOF_2327
gosub @WOF_9892
gosub @WOF_2506
goto @WOF_2341

:WOF_2327
gosub @WOF_11175
$wof_refund = 0

:WOF_2341
goto @WOF_2355

:WOF_2348
gosub @WOF_2465

:WOF_2355
goto @WOF_2369

:WOF_2362
gosub @WOF_2465

:WOF_2369
goto @WOF_2383

:WOF_2376
gosub @WOF_2465

:WOF_2383
goto @WOF_438

:WOF_2390
10@ = 0
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_2447
set_char_say_script 7@ {_p2} 40051 {_p3} True {_p4} True {_p5} False
goto @WOF_2463

:WOF_2447
set_char_say_script 7@ {_p2} 40051 {_p3} True {_p4} True {_p5} False

:WOF_2463
return 

:WOF_2465
mark_char_as_no_longer_needed 7@
mark_object_as_no_longer_needed 4@
mark_object_as_no_longer_needed 2@
mark_object_as_no_longer_needed 1@
remove_animation "CASINO"
$wof_temp_float3 -= 1
terminate_this_script 
return 

:WOF_2506
switch_start 5@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WOF_2667 {caseNum1} 0 {caseLabel1} @WOF_2569 {caseNum2} 1 {caseLabel2} @WOF_2583 {caseNum3} 2 {caseLabel3} @WOF_2597 {caseNum4} 3 {caseLabel4} @WOF_2611 {caseNum5} 4 {caseLabel5} @WOF_2625 {caseNum6} 5 {caseLabel6} @WOF_2639 {caseNum7} 6 {caseLabel7} @WOF_2653

:WOF_2569
gosub @WOF_2815
goto @WOF_2667

:WOF_2583
gosub @WOF_4181
goto @WOF_2667

:WOF_2597
gosub @WOF_7344
goto @WOF_2667

:WOF_2611
gosub @WOF_7670
goto @WOF_2667

:WOF_2625
gosub @WOF_7814
goto @WOF_2667

:WOF_2639
gosub @WOF_7848
goto @WOF_2667

:WOF_2653
gosub @WOF_9496
goto @WOF_2667

:WOF_2667
gosub @WOF_13533
if 
  5@ == 1
goto_if_false @WOF_2772
if 
  15@ == 0
goto_if_false @WOF_2748
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2741
13@ = 1
15@ = 1

:WOF_2741
goto @WOF_2772

:WOF_2748
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2772
15@ = 0

:WOF_2772
if 
  is_char_dead 7@
goto_if_false @WOF_2813
if 
  5@ > 0
goto_if_false @WOF_2813
13@ = 1

:WOF_2813
return 

:WOF_2815
if 
  6@ == 0
goto_if_false @WOF_4076
if 
  is_player_playing $player1
goto_if_false @WOF_4069
set_minigame_in_progress True
set_player_control $player1 {state} False
$x, $y, $z = get_object_coordinates 0@
task_turn_char_to_face_coord $scplayer {x} $x {y} $y {z} $z
use_text_commands True
display_radar False
request_animation "CASINO"
clear_prints 
10@ = 0

:WOF_2915
if 
  6 > 10@
goto_if_false @WOF_3053
$9386 = -0.118
set_var_float_to_var_float $chip_set_z(10@,6f) = $9386
set_var_float_to_var_float $9393(10@,6f) = $9386
set_var_float_to_var_float $9399(10@,6f) = $9386
set_var_float_to_var_float $9405(10@,6f) = $9386
set_var_float_to_var_float $9411(10@,6f) = $9386
set_var_float_to_var_float $9417(10@,6f) = $9386
set_var_float_to_var_float $9423(10@,6f) = $9386
set_var_float_to_var_float $9429(10@,6f) = $9386
10@ += 1
goto @WOF_2915

:WOF_3053
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.634 {yOffset} 0.253 {zOffset} $chip_set_z[0]
$wof_winnings[0] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[0] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} 0.253 {zOffset} $chip_set_z[1]
$wof_winnings[1] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[1] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} 0.253 {zOffset} $chip_set_z[2]
$wof_winnings[2] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[2] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} -0.106 {zOffset} $chip_set_z[3]
$wof_winnings[3] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[3] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} -0.106 {zOffset} $chip_set_z[4]
$wof_winnings[4] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[4] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} -0.106 {zOffset} $chip_set_z[5]
$wof_winnings[5] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $wof_winnings[5] {heading} 20@
10@ = 0

:WOF_3372
if 
  6 > 10@
goto_if_false @WOF_3458
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} 0.07 {yOffset} 0.0 {zOffset} 0.0
create_object_no_offset #CHIP_STACK08 {x} $x {y} $y {z} $z {var_handle} $9344(10@,6i)
10@ += 1
goto @WOF_3372

:WOF_3458
10@ = 0

:WOF_3465
if 
  6 > 10@
goto_if_false @WOF_3551
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} -0.07 {yOffset} 0.0 {zOffset} 0.0
create_object_no_offset #CHIP_STACK09 {x} $x {y} $y {z} $z {var_handle} $9350(10@,6i)
10@ += 1
goto @WOF_3465

:WOF_3551
10@ = 0

:WOF_3558
if 
  6 > 10@
goto_if_false @WOF_3644
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} 0.07 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK10 {x} $x {y} $y {z} $z {var_handle} $9356(10@,6i)
10@ += 1
goto @WOF_3558

:WOF_3644
10@ = 0

:WOF_3651
if 
  6 > 10@
goto_if_false @WOF_3737
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} 0.07 {yOffset} -0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK11 {x} $x {y} $y {z} $z {var_handle} $9362(10@,6i)
10@ += 1
goto @WOF_3651

:WOF_3737
10@ = 0

:WOF_3744
if 
  6 > 10@
goto_if_false @WOF_3830
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} -0.07 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK12 {x} $x {y} $y {z} $z {var_handle} $9368(10@,6i)
10@ += 1
goto @WOF_3744

:WOF_3830
10@ = 0

:WOF_3837
if 
  6 > 10@
goto_if_false @WOF_3923
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} -0.07 {yOffset} -0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK13 {x} $x {y} $y {z} $z {var_handle} $9374(10@,6i)
10@ += 1
goto @WOF_3837

:WOF_3923
10@ = 0

:WOF_3930
if 
  6 > 10@
goto_if_false @WOF_4016
$x, $y, $z = get_offset_from_object_in_world_coords $wof_winnings(10@,6i) {xOffset} 0.0 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK14 {x} $x {y} $y {z} $z {var_handle} $9380(10@,6i)
10@ += 1
goto @WOF_3930

:WOF_4016
$bj_temp_float3 = 0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} 0.253 {zOffset} 0.041
$9435 = create_object_no_offset #ROULETTE_MARKER {x} $x {y} $y {z} $z

:WOF_4069
6@ += 1

:WOF_4076
if 
  6@ == 1
goto_if_false @WOF_4122
if 
  has_animation_loaded "CASINO"
goto_if_false @WOF_4122
6@ += 1

:WOF_4122
if 
  6@ == 2
goto_if_false @WOF_4147
6@ = 99

:WOF_4147
if 
  6@ == 99
goto_if_false @WOF_4179
5@ += 1
6@ = 0

:WOF_4179
return 

:WOF_4181
if 
  6@ == 0
goto_if_false @WOF_4648
10@ = 0

:WOF_4206
if 
  6 > 10@
goto_if_false @WOF_4249
$win_dialogue(10@,6i) = 0
10@ += 1
goto @WOF_4206

:WOF_4249
$9332 = 0
$total_bet = 0
TIMERA = 0
TIMERB = 0
print_help_forever 'WOFHD01'
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -0.7 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.7734 {yOffset} -0.6326 {zOffset} 0.9882
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.4684 {yOffset} -0.0634 {zOffset} 0.2246
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $9435
goto_if_false @WOF_4473
set_object_visible $9435 {state} True

:WOF_4473
23@ = 0.0
24@ = 0.0
$wof_betting_menu = 0
$wof_initial_stake = 0
if 
  not is_char_dead 7@
goto_if_false @WOF_4641
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WOF_4641 {caseNum1} 0 {caseLabel1} @WOF_4595 {caseNum2} 1 {caseLabel2} @WOF_4618 {caseNum3} -1 {caseLabel3} @WOF_4641 {caseNum4} -1 {caseLabel4} @WOF_4641 {caseNum5} -1 {caseLabel5} @WOF_4641 {caseNum6} -1 {caseLabel6} @WOF_4641 {caseNum7} -1 {caseLabel7} @WOF_4641

:WOF_4595
set_char_say_script 7@ {_p2} 40000 {_p3} True {_p4} True {_p5} False
goto @WOF_4641

:WOF_4618
set_char_say_script 7@ {_p2} 40001 {_p3} True {_p4} True {_p5} False
goto @WOF_4641

:WOF_4641
6@ += 1

:WOF_4648
if 
  6@ == 1
goto_if_false @WOF_7308
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if 
  17@ <> 0
goto_if_false @WOF_4820
10@ = 0
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @WOF_4749
10@ = 1

:WOF_4749
if or
  $LStickY > 100
  -100 > $LStickY
  $LStickX > 100
  -100 > $LStickX
goto_if_false @WOF_4795
10@ = 1

:WOF_4795
if 
  10@ == 0
goto_if_false @WOF_4820
17@ = 0

:WOF_4820
set_lvar_int_to_lvar_int 10@ = 17@
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > $LStickY
goto_if_false @WOF_4859
17@ = 1

:WOF_4859
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $LStickY > 100
goto_if_false @WOF_4890
17@ = 2

:WOF_4890
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
goto_if_false @WOF_4921
17@ = 3

:WOF_4921
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
goto_if_false @WOF_4952
17@ = 4

:WOF_4952
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 10@
goto_if_false @WOF_5226
if 
  17@ == 4
goto_if_false @WOF_5056
if or
  $total_bet == 0
  $total_bet == 1
  $total_bet == 3
  $total_bet == 4
goto_if_false @WOF_5042
$total_bet += 1
goto @WOF_5049

:WOF_5042
$total_bet += -2

:WOF_5049
TIMERA = 0

:WOF_5056
if 
  17@ == 3
goto_if_false @WOF_5141
if or
  $total_bet == 1
  $total_bet == 2
  $total_bet == 4
  $total_bet == 5
goto_if_false @WOF_5127
$total_bet += -1
goto @WOF_5134

:WOF_5127
$total_bet += 2

:WOF_5134
TIMERA = 0

:WOF_5141
if or
  17@ == 1
  17@ == 2
goto_if_false @WOF_5226
if or
  $total_bet == 0
  $total_bet == 1
  $total_bet == 2
goto_if_false @WOF_5212
$total_bet += 3
goto @WOF_5219

:WOF_5212
$total_bet += -3

:WOF_5219
TIMERA = 0

:WOF_5226
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @WOF_5817
if and
  16@ <> 1
  16@ <> -1
goto_if_false @WOF_5766
if 
  $win_dialogue($total_bet,6i) >= 100000
goto_if_false @WOF_5308
$current_bet_type = 10000
goto @WOF_5494

:WOF_5308
if 
  $win_dialogue($total_bet,6i) >= 10000
goto_if_false @WOF_5346
$current_bet_type = 1000
goto @WOF_5494

:WOF_5346
if 
  $win_dialogue($total_bet,6i) >= 1000
goto_if_false @WOF_5383
$current_bet_type = 100
goto @WOF_5494

:WOF_5383
if 
  $win_dialogue($total_bet,6i) >= 100
goto_if_false @WOF_5419
$current_bet_type = 10
goto @WOF_5494

:WOF_5419
if 
  $win_dialogue($total_bet,6i) == 0
goto_if_false @WOF_5487
if 
  $total_bet == 2
goto_if_false @WOF_5473
$current_bet_type = 5
goto @WOF_5480

:WOF_5473
$current_bet_type = 2

:WOF_5480
goto @WOF_5494

:WOF_5487
$current_bet_type = 1

:WOF_5494
10@ = store_score $player1
gosub @WOF_11541
add_int_var_to_int_lvar 10@ += $bj_payout
if 
  is_int_var_greater_than_int_lvar $current_bet_type > 10@
goto_if_false @WOF_5544
set_var_int_to_lvar_int $current_bet_type = 10@

:WOF_5544
$9332 = 0
10@ = 0

:WOF_5558
if 
  6 > 10@
goto_if_false @WOF_5602
add_int_var_to_int_var $9332 += $win_dialogue(10@,6i)
10@ += 1
goto @WOF_5558

:WOF_5602
set_lvar_int_to_lvar_int 10@ = 19@
sub_int_var_from_int_lvar 10@ -= $9332
if 
  is_int_var_greater_than_int_lvar $current_bet_type > 10@
goto_if_false @WOF_5645
set_var_int_to_lvar_int $current_bet_type = 10@

:WOF_5645
if 
  0 > $current_bet_type
goto_if_false @WOF_5670
$current_bet_type *= -1

:WOF_5670
add_int_var_to_int_var $win_dialogue($total_bet,6i) += $current_bet_type
add_int_var_to_int_var $wof_betting_menu += $current_bet_type
add_int_var_to_int_var $wof_initial_stake += $current_bet_type
$current_bet_type *= -1
add_score $player1 {money} $current_bet_type
16@ += 1
if 
  16@ > 1
goto_if_false @WOF_5752
16@ = 2
goto @WOF_5759

:WOF_5752
TIMERA = 0

:WOF_5759
goto @WOF_5810

:WOF_5766
if 
  16@ == 1
goto_if_false @WOF_5810
if 
  TIMERA > 500
goto_if_false @WOF_5810
16@ = 2

:WOF_5810
goto @WOF_6337

:WOF_5817
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @WOF_6312
if 
  18@ <> 1
goto_if_false @WOF_6279
if 
  $win_dialogue($total_bet,6i) > 100000
goto_if_false @WOF_5892
$current_bet_type = -10000
goto @WOF_6010

:WOF_5892
if 
  $win_dialogue($total_bet,6i) > 10000
goto_if_false @WOF_5930
$current_bet_type = -1000
goto @WOF_6010

:WOF_5930
if 
  $win_dialogue($total_bet,6i) > 1000
goto_if_false @WOF_5967
$current_bet_type = -100
goto @WOF_6010

:WOF_5967
if 
  $win_dialogue($total_bet,6i) > 100
goto_if_false @WOF_6003
$current_bet_type = -10
goto @WOF_6010

:WOF_6003
$current_bet_type = -1

:WOF_6010
set_lvar_int_to_var_int 10@ = $win_dialogue($total_bet,6i)
add_int_var_to_int_var $win_dialogue($total_bet,6i) += $current_bet_type
if 
  $total_bet == 2
goto_if_false @WOF_6107
if 
  5 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6100
$win_dialogue($total_bet,6i) = 0
set_var_int_to_lvar_int $current_bet_type = 10@
$current_bet_type *= -1

:WOF_6100
goto @WOF_6155

:WOF_6107
if 
  2 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6155
$win_dialogue($total_bet,6i) = 0
set_var_int_to_lvar_int $current_bet_type = 10@
$current_bet_type *= -1

:WOF_6155
if 
  0 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6195
$win_dialogue($total_bet,6i) = 0
goto @WOF_6226

:WOF_6195
add_int_var_to_int_var $wof_betting_menu += $current_bet_type
add_int_var_to_int_var $wof_initial_stake += $current_bet_type
$current_bet_type *= -1
add_score $player1 {money} $current_bet_type

:WOF_6226
18@ += 1
if 
  18@ > 1
goto_if_false @WOF_6265
18@ = 2
goto @WOF_6272

:WOF_6265
TIMERA = 0

:WOF_6272
goto @WOF_6305

:WOF_6279
if 
  TIMERA > 500
goto_if_false @WOF_6305
18@ = 2

:WOF_6305
goto @WOF_6337

:WOF_6312
if 
  18@ <> 0
goto_if_false @WOF_6337
18@ = 0

:WOF_6337
$9332 = 0
10@ = 0

:WOF_6351
if 
  6 > 10@
goto_if_false @WOF_6395
add_int_var_to_int_var $9332 += $win_dialogue(10@,6i)
10@ += 1
goto @WOF_6351

:WOF_6395
if 
  $total_bet == 0
goto_if_false @WOF_6456
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6456
if 
  $total_bet == 1
goto_if_false @WOF_6517
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6517
if 
  $total_bet == 2
goto_if_false @WOF_6578
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6578
if 
  $total_bet == 3
goto_if_false @WOF_6639
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6639
if 
  $total_bet == 4
goto_if_false @WOF_6700
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6700
if 
  $total_bet == 5
goto_if_false @WOF_6761
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $9435 {x} $x {y} $y {z} $z

:WOF_6761
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @WOF_6864 {caseNum1} 3 {caseLabel1} @WOF_6824 {caseNum2} -1 {caseLabel2} @WOF_6904 {caseNum3} -1 {caseLabel3} @WOF_6904 {caseNum4} -1 {caseLabel4} @WOF_6904 {caseNum5} -1 {caseLabel5} @WOF_6904 {caseNum6} -1 {caseLabel6} @WOF_6904 {caseNum7} -1 {caseLabel7} @WOF_6904

:WOF_6824
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @WOF_6904

:WOF_6864
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @WOF_6904

:WOF_6904
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} $win_dialogue($total_bet,6i)
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'WOF_05'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} $9332
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 19@
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WOF_7283
if 
  16@ == 0
goto_if_false @WOF_7276
if 
  $9332 > 0
goto_if_false @WOF_7269
increment_int_stat StatId.MoneySpentGambling {value} $9332
cset_lvar_float_to_var_int 8@ =# $9332
8@ *= 0.001
increment_float_stat StatId.Gambling {value} 8@
TIMERA = 0
$wof_initial_stake = 0
6@ = 99

:WOF_7269
16@ = 1

:WOF_7276
goto @WOF_7308

:WOF_7283
if 
  16@ <> 0
goto_if_false @WOF_7308
16@ = 0

:WOF_7308
if 
  6@ == 99
goto_if_false @WOF_7342
clear_help 
5@ += 1
6@ = 0

:WOF_7342
return 

:WOF_7344
if 
  not is_char_dead 7@
goto_if_false @WOF_7668
task_play_anim 7@ {animationName} "WOF" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_7534 {caseNum1} 0 {caseLabel1} @WOF_7465 {caseNum2} 1 {caseLabel2} @WOF_7488 {caseNum3} 2 {caseLabel3} @WOF_7511 {caseNum4} -1 {caseLabel4} @WOF_7534 {caseNum5} -1 {caseLabel5} @WOF_7534 {caseNum6} -1 {caseLabel6} @WOF_7534 {caseNum7} -1 {caseLabel7} @WOF_7534

:WOF_7465
set_char_say_script 7@ {_p2} 40008 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7488
set_char_say_script 7@ {_p2} 40009 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7511
set_char_say_script 7@ {_p2} 40010 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7534
25@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -1.3681 {yOffset} -2.0088 {zOffset} 0.7317
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.8154 {yOffset} -1.1754 {zOffset} 0.7401
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $9435
goto_if_false @WOF_7661
set_object_visible $9435 {state} False

:WOF_7661
5@ += 1

:WOF_7668
return 

:WOF_7670
if and
  2.0 > 23@
  25@ > 1
goto_if_false @WOF_7812
$x, $y, $z = get_offset_from_object_in_world_coords 4@ {xOffset} -0.3059 {yOffset} -0.9385 {zOffset} 0.4225
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 4@ {xOffset} -0.0298 {yOffset} -0.0515 {zOffset} 0.7929
set_interpolation_parameters 0.0 {time} 6000
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation
5@ += 1

:WOF_7812
return 

:WOF_7814
if 
  25@ == 4
goto_if_false @WOF_7846
6@ = 0
5@ += 1

:WOF_7846
return 

:WOF_7848
if 
  6@ == 0
goto_if_false @WOF_9049
set_lvar_float_to_lvar_float 8@ = 21@
8@ -= 3.3333
if 
  0.0 > 8@
goto_if_false @WOF_7915
8@ += 360.0

:WOF_7915
8@ /= 6.6667
cset_var_int_to_lvar_float $betting_step =# 8@
$betting_step += 1
gosub @WOF_11803
10@ = 0
$wheel_position_value = 0
if 
  $wheel_position == 1
goto_if_false @WOF_8012
if 
  $win_dialogue[2] > 0
goto_if_false @WOF_8012
$wheel_position_value = 2
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[2]

:WOF_8012
if 
  $wheel_position == 2
goto_if_false @WOF_8063
if 
  $win_dialogue[4] > 0
goto_if_false @WOF_8063
$wheel_position_value = 3
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[4]

:WOF_8063
if 
  $wheel_position == 5
goto_if_false @WOF_8114
if 
  $win_dialogue[1] > 0
goto_if_false @WOF_8114
$wheel_position_value = 6
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[1]

:WOF_8114
if 
  $wheel_position == 10
goto_if_false @WOF_8165
if 
  $win_dialogue[3] > 0
goto_if_false @WOF_8165
$wheel_position_value = 11
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[3]

:WOF_8165
if 
  $wheel_position == 20
goto_if_false @WOF_8216
if 
  $win_dialogue[0] > 0
goto_if_false @WOF_8216
$wheel_position_value = 21
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[0]

:WOF_8216
if 
  $wheel_position == 40
goto_if_false @WOF_8267
if 
  $win_dialogue[5] > 0
goto_if_false @WOF_8267
$wheel_position_value = 41
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[5]

:WOF_8267
TIMERA = 0
set_lvar_int_to_var_int 10@ = $wheel_position_value
sub_int_var_from_int_lvar 10@ -= $wof_betting_menu
add_score $player1 {money} $wheel_position_value
if 
  10@ > 0
goto_if_false @WOF_8330
increment_int_stat StatId.MoneyWonGambling {value} 10@
goto @WOF_8330

:WOF_8330
start_new_script @CASHWIN 10@ 3000 
show_update_stats False
if 
  10@ > 0
goto_if_false @WOF_9003
register_int_stat StatId.BiggestGamblingWin {value} 10@
cset_lvar_float_to_lvar_int 8@ =# 10@
cset_lvar_float_to_lvar_int 9@ =# 19@
div_float_lvar_by_float_lvar 8@ /= 9@
$bj_temp_float3 += 1
if 
  3 > $bj_temp_float3
goto_if_false @WOF_8832
if 
  8@ > 0.9
goto_if_false @WOF_8654
if 
  is_player_playing $player1
goto_if_false @WOF_8647
if 
  not is_char_dead 7@
goto_if_false @WOF_8647
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @WOF_8633 {caseNum1} 0 {caseLabel1} @WOF_8547 {caseNum2} 1 {caseLabel2} @WOF_8570 {caseNum3} 2 {caseLabel3} @WOF_8593 {caseNum4} 3 {caseLabel4} @WOF_8616 {caseNum5} -1 {caseLabel5} @WOF_8647 {caseNum6} -1 {caseLabel6} @WOF_8647 {caseNum7} -1 {caseLabel7} @WOF_8647

:WOF_8547
set_char_say_script 7@ {_p2} 40048 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8570
set_char_say_script 7@ {_p2} 40049 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8593
set_char_say_script 7@ {_p2} 40050 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8616
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin
goto @WOF_8647

:WOF_8633
gosub @WOF_9227
goto @WOF_8647

:WOF_8647
goto @WOF_8825

:WOF_8654
if 
  not is_char_dead 7@
goto_if_false @WOF_8825
10@ = generate_random_int_in_range 0 {max} 10
switch_start 10@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WOF_8811 {caseNum1} 0 {caseLabel1} @WOF_8742 {caseNum2} 1 {caseLabel2} @WOF_8765 {caseNum3} 2 {caseLabel3} @WOF_8788 {caseNum4} -1 {caseLabel4} @WOF_8825 {caseNum5} -1 {caseLabel5} @WOF_8825 {caseNum6} -1 {caseLabel6} @WOF_8825 {caseNum7} -1 {caseLabel7} @WOF_8825

:WOF_8742
set_char_say_script 7@ {_p2} 40048 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8765
set_char_say_script 7@ {_p2} 40049 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8788
set_char_say_script 7@ {_p2} 40050 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8811
gosub @WOF_9227
goto @WOF_8825

:WOF_8825
goto @WOF_8996

:WOF_8832
if 
  not is_char_dead 7@
goto_if_false @WOF_8989
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_8989 {caseNum1} 0 {caseLabel1} @WOF_8920 {caseNum2} 1 {caseLabel2} @WOF_8943 {caseNum3} 2 {caseLabel3} @WOF_8966 {caseNum4} -1 {caseLabel4} @WOF_8989 {caseNum5} -1 {caseLabel5} @WOF_8989 {caseNum6} -1 {caseLabel6} @WOF_8989 {caseNum7} -1 {caseLabel7} @WOF_8989

:WOF_8920
set_char_say_script 7@ {_p2} 40062 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8943
set_char_say_script 7@ {_p2} 40063 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8966
set_char_say_script 7@ {_p2} 40064 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8989
$bj_temp_float3 = 0

:WOF_8996
goto @WOF_9038

:WOF_9003
10@ *= -1
register_int_stat StatId.BiggestGamblingLoss {value} 10@
10@ *= -1
gosub @WOF_9227
$bj_temp_float3 = 0

:WOF_9038
show_update_stats True
6@ += 1

:WOF_9049
if 
  6@ == 1
goto_if_false @WOF_9100
if 
  3000 > TIMERA
goto_if_false @WOF_9093
goto @WOF_9100

:WOF_9093
6@ += 1

:WOF_9100
if 
  6@ == 2
goto_if_false @WOF_9193
print_help_forever 'WOF_09'
10@ = 0

:WOF_9136
if 
  6 > 10@
goto_if_false @WOF_9179
$win_dialogue(10@,6i) = 0
10@ += 1
goto @WOF_9136

:WOF_9179
TIMERA = 0
6@ = 99

:WOF_9193
if 
  6@ == 99
goto_if_false @WOF_9225
TIMERA = 0
5@ += 1

:WOF_9225
return 

:WOF_9227
if 
  not is_char_dead 7@
goto_if_false @WOF_9494
switch_start $wheel_position {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WOF_9494 {caseNum1} 1 {caseLabel1} @WOF_9306 {caseNum2} 2 {caseLabel2} @WOF_9329 {caseNum3} 5 {caseLabel3} @WOF_9352 {caseNum4} 10 {caseLabel4} @WOF_9375 {caseNum5} 20 {caseLabel5} @WOF_9398 {caseNum6} 40 {caseLabel6} @WOF_9421 {caseNum7} -1 {caseLabel7} @WOF_9494

:WOF_9306
set_char_say_script 7@ {_p2} 40055 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9329
set_char_say_script 7@ {_p2} 40056 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9352
set_char_say_script 7@ {_p2} 40057 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9375
set_char_say_script 7@ {_p2} 40058 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9398
set_char_say_script 7@ {_p2} 40059 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9421
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_9471
set_char_say_script 7@ {_p2} 40060 {_p3} True {_p4} True {_p5} False
goto @WOF_9487

:WOF_9471
set_char_say_script 7@ {_p2} 40061 {_p3} True {_p4} True {_p5} False

:WOF_9487
goto @WOF_9494

:WOF_9494
return 

:WOF_9496
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WOF_9538
16@ = -1
clear_prints 
clear_help 
5@ = 1
6@ = 0

:WOF_9538
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour 6
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour 0
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour HudObject.Health
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$casino_credit, $colour_r, $colour_g, $colour_b = get_hud_colour HudObject.Health
set_text_colour $casino_credit {green} $colour_r {blue} $colour_g {alpha} $colour_b
set_text_font Font.Menu
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.52 {heightScale} 1.45
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 

:WOF_9892
switch_start 25@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_10591 {caseNum1} 0 {caseLabel1} @WOF_9955 {caseNum2} 1 {caseLabel2} @WOF_9991 {caseNum3} 2 {caseLabel3} @WOF_10050 {caseNum4} 3 {caseLabel4} @WOF_10220 {caseNum5} 4 {caseLabel5} @WOF_10584 {caseNum6} -1 {caseLabel6} @WOF_10591 {caseNum7} -1 {caseLabel7} @WOF_10591

:WOF_9955
24@ = generate_random_float_in_range 0.1 {max} 0.15
TIMERB = 0
25@ += 1
goto @WOF_10591

:WOF_9991
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  TIMERB > 500
goto_if_false @WOF_10043
24@ = -0.005
25@ += 1

:WOF_10043
goto @WOF_10591

:WOF_10050
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  0.3 > 23@
goto_if_false @WOF_10213
set_lvar_float_to_lvar_float 21@ = 22@
set_lvar_float_to_lvar_float 8@ = 21@
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.6667
add_float_lvar_to_float_lvar 21@ += 8@
if 
  21@ > 360.0
goto_if_false @WOF_10206
21@ += -360.0

:WOF_10206
25@ += 1

:WOF_10213
goto @WOF_10591

:WOF_10220
set_lvar_float_to_lvar_float 8@ = 22@
sub_float_lvar_from_float_lvar 8@ -= 21@
if 
  -180.0 > 8@
goto_if_false @WOF_10267
8@ += 360.0

:WOF_10267
if 
  8@ > 180.0
goto_if_false @WOF_10298
8@ += -360.0

:WOF_10298
if 
  23@ > 0.01
goto_if_false @WOF_10416
if 
  8@ > 3.3333
goto_if_false @WOF_10409
set_lvar_float_to_lvar_float 22@ = 21@
22@ += 3.3333
if 
  22@ > 360.0
goto_if_false @WOF_10389
22@ += -360.0

:WOF_10389
23@ *= -1.0
24@ *= -1.0

:WOF_10409
goto @WOF_10561

:WOF_10416
if 
  -0.01 > 23@
goto_if_false @WOF_10534
if 
  -3.3333 > 8@
goto_if_false @WOF_10527
set_lvar_float_to_lvar_float 22@ = 21@
22@ -= 3.3333
if 
  0.0 > 22@
goto_if_false @WOF_10507
22@ += 360.0

:WOF_10507
23@ *= -1.0
24@ *= -1.0

:WOF_10527
goto @WOF_10561

:WOF_10534
23@ = 0.0
24@ = 0.0
25@ += 1

:WOF_10561
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
goto @WOF_10591

:WOF_10584
goto @WOF_10591

:WOF_10591
if 
  23@ <> 0.0
goto_if_false @WOF_10690
if 
  22@ > 360.0
goto_if_false @WOF_10643
22@ += -360.0

:WOF_10643
if 
  0.0 > 22@
goto_if_false @WOF_10674
22@ += 360.0

:WOF_10674
set_object_rotation 0@ {x} 0.0 {y} 22@ {z} 20@

:WOF_10690
if 
  does_object_exist 1@
goto_if_false @WOF_11173
if 
  23@ > 0.2
goto_if_false @WOF_11095
if 
  0.8 > 23@
goto_if_false @WOF_11032
set_lvar_float_to_lvar_float 8@ = 22@
8@ += 3.3333
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.6667
if 
  8@ > 5.0
goto_if_false @WOF_10959
8@ += -5.0
8@ /= 1.6667
8@ += -1.0
8@ *= -1.0
8@ *= 5.0
set_lvar_float_to_lvar_float 26@ = 8@
26@ *= -1.0
if 
  27@ <> 1
goto_if_false @WOF_10952
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundWheelOfFortuneClacker
27@ = 1

:WOF_10952
goto @WOF_11025

:WOF_10959
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11000
26@ = 0.0

:WOF_11000
if 
  27@ <> 0
goto_if_false @WOF_11025
27@ = 0

:WOF_11025
goto @WOF_11088

:WOF_11032
if 
  26@ == -5.0
goto_if_false @WOF_11078
26@ = -2.0
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundWheelOfFortuneClacker
goto @WOF_11088

:WOF_11078
26@ = -5.0

:WOF_11088
goto @WOF_11157

:WOF_11095
if 
  0.0 > 26@
goto_if_false @WOF_11157
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11157
26@ = 0.0

:WOF_11157
set_object_rotation 1@ {x} 0.0 {y} 26@ {z} 20@

:WOF_11173
return 

:WOF_11175
set_minigame_in_progress False
13@ = 0
5@ = 0
6@ = 0
if 
  $wof_initial_stake > 0
goto_if_false @WOF_11226
add_score $player1 {money} $wof_initial_stake

:WOF_11226
$wof_initial_stake = 0
if 
  not is_char_dead 7@
goto_if_false @WOF_11315
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_11299
set_char_say_script 7@ {_p2} 40053 {_p3} True {_p4} True {_p5} False
goto @WOF_11315

:WOF_11299
set_char_say_script 7@ {_p2} 40054 {_p3} True {_p4} True {_p5} False

:WOF_11315
if 
  is_player_playing $player1
goto_if_false @WOF_11338
set_player_control $player1 {state} True

:WOF_11338
terminate_all_scripts_with_this_name 'CASHWIN'
use_text_commands False
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
10@ = 0

:WOF_11368
if 
  6 > 10@
goto_if_false @WOF_11472
delete_object $wof_winnings(10@,6i)
delete_object $9344(10@,6i)
delete_object $9350(10@,6i)
delete_object $9356(10@,6i)
delete_object $9362(10@,6i)
delete_object $9368(10@,6i)
delete_object $9374(10@,6i)
delete_object $9380(10@,6i)
10@ += 1
goto @WOF_11368

:WOF_11472
delete_object $9435
delete_menu $marker
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @WOF_11539
clear_help 

:WOF_11539
return 

:WOF_11541
8@ = get_float_stat StatId.Gambling
if 
  1.0 > 8@
goto_if_false @WOF_11583
$bj_payout = 100
goto @WOF_11703

:WOF_11583
if 
  10.0 > 8@
goto_if_false @WOF_11619
$bj_payout = 1000
goto @WOF_11703

:WOF_11619
if 
  100.0 > 8@
goto_if_false @WOF_11655
$bj_payout = 10000
goto @WOF_11703

:WOF_11655
if 
  1000.0 > 8@
goto_if_false @WOF_11693
$bj_payout = 100000
goto @WOF_11703

:WOF_11693
$bj_payout = 1000000

:WOF_11703
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:WOF_11748
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:WOF_11803
if 
  $betting_step == 1
goto_if_false @WOF_11835
$wheel_position = 40
goto @WOF_13531

:WOF_11835
if 
  $betting_step == 2
goto_if_false @WOF_11867
$wheel_position = 2
goto @WOF_13531

:WOF_11867
if 
  $betting_step == 3
goto_if_false @WOF_11899
$wheel_position = 10
goto @WOF_13531

:WOF_11899
if 
  $betting_step == 4
goto_if_false @WOF_11931
$wheel_position = 1
goto @WOF_13531

:WOF_11931
if 
  $betting_step == 5
goto_if_false @WOF_11963
$wheel_position = 2
goto @WOF_13531

:WOF_11963
if 
  $betting_step == 6
goto_if_false @WOF_11995
$wheel_position = 1
goto @WOF_13531

:WOF_11995
if 
  $betting_step == 7
goto_if_false @WOF_12027
$wheel_position = 5
goto @WOF_13531

:WOF_12027
if 
  $betting_step == 8
goto_if_false @WOF_12059
$wheel_position = 1
goto @WOF_13531

:WOF_12059
if 
  $betting_step == 9
goto_if_false @WOF_12091
$wheel_position = 2
goto @WOF_13531

:WOF_12091
if 
  $betting_step == 10
goto_if_false @WOF_12123
$wheel_position = 10
goto @WOF_13531

:WOF_12123
if 
  $betting_step == 11
goto_if_false @WOF_12155
$wheel_position = 1
goto @WOF_13531

:WOF_12155
if 
  $betting_step == 12
goto_if_false @WOF_12187
$wheel_position = 2
goto @WOF_13531

:WOF_12187
if 
  $betting_step == 13
goto_if_false @WOF_12219
$wheel_position = 1
goto @WOF_13531

:WOF_12219
if 
  $betting_step == 14
goto_if_false @WOF_12251
$wheel_position = 5
goto @WOF_13531

:WOF_12251
if 
  $betting_step == 15
goto_if_false @WOF_12283
$wheel_position = 2
goto @WOF_13531

:WOF_12283
if 
  $betting_step == 16
goto_if_false @WOF_12315
$wheel_position = 1
goto @WOF_13531

:WOF_12315
if 
  $betting_step == 17
goto_if_false @WOF_12347
$wheel_position = 20
goto @WOF_13531

:WOF_12347
if 
  $betting_step == 18
goto_if_false @WOF_12379
$wheel_position = 1
goto @WOF_13531

:WOF_12379
if 
  $betting_step == 19
goto_if_false @WOF_12411
$wheel_position = 2
goto @WOF_13531

:WOF_12411
if 
  $betting_step == 20
goto_if_false @WOF_12443
$wheel_position = 5
goto @WOF_13531

:WOF_12443
if 
  $betting_step == 21
goto_if_false @WOF_12475
$wheel_position = 10
goto @WOF_13531

:WOF_12475
if 
  $betting_step == 22
goto_if_false @WOF_12507
$wheel_position = 1
goto @WOF_13531

:WOF_12507
if 
  $betting_step == 23
goto_if_false @WOF_12539
$wheel_position = 2
goto @WOF_13531

:WOF_12539
if 
  $betting_step == 24
goto_if_false @WOF_12571
$wheel_position = 1
goto @WOF_13531

:WOF_12571
if 
  $betting_step == 25
goto_if_false @WOF_12603
$wheel_position = 5
goto @WOF_13531

:WOF_12603
if 
  $betting_step == 26
goto_if_false @WOF_12635
$wheel_position = 1
goto @WOF_13531

:WOF_12635
if 
  $betting_step == 27
goto_if_false @WOF_12667
$wheel_position = 2
goto @WOF_13531

:WOF_12667
if 
  $betting_step == 28
goto_if_false @WOF_12699
$wheel_position = 1
goto @WOF_13531

:WOF_12699
if 
  $betting_step == 29
goto_if_false @WOF_12731
$wheel_position = 40
goto @WOF_13531

:WOF_12731
if 
  $betting_step == 30
goto_if_false @WOF_12763
$wheel_position = 2
goto @WOF_13531

:WOF_12763
if 
  $betting_step == 31
goto_if_false @WOF_12795
$wheel_position = 1
goto @WOF_13531

:WOF_12795
if 
  $betting_step == 32
goto_if_false @WOF_12827
$wheel_position = 2
goto @WOF_13531

:WOF_12827
if 
  $betting_step == 33
goto_if_false @WOF_12859
$wheel_position = 1
goto @WOF_13531

:WOF_12859
if 
  $betting_step == 34
goto_if_false @WOF_12891
$wheel_position = 2
goto @WOF_13531

:WOF_12891
if 
  $betting_step == 35
goto_if_false @WOF_12923
$wheel_position = 5
goto @WOF_13531

:WOF_12923
if 
  $betting_step == 36
goto_if_false @WOF_12955
$wheel_position = 1
goto @WOF_13531

:WOF_12955
if 
  $betting_step == 37
goto_if_false @WOF_12987
$wheel_position = 2
goto @WOF_13531

:WOF_12987
if 
  $betting_step == 38
goto_if_false @WOF_13019
$wheel_position = 1
goto @WOF_13531

:WOF_13019
if 
  $betting_step == 39
goto_if_false @WOF_13051
$wheel_position = 5
goto @WOF_13531

:WOF_13051
if 
  $betting_step == 40
goto_if_false @WOF_13083
$wheel_position = 1
goto @WOF_13531

:WOF_13083
if 
  $betting_step == 41
goto_if_false @WOF_13115
$wheel_position = 20
goto @WOF_13531

:WOF_13115
if 
  $betting_step == 42
goto_if_false @WOF_13147
$wheel_position = 1
goto @WOF_13531

:WOF_13147
if 
  $betting_step == 43
goto_if_false @WOF_13179
$wheel_position = 10
goto @WOF_13531

:WOF_13179
if 
  $betting_step == 44
goto_if_false @WOF_13211
$wheel_position = 1
goto @WOF_13531

:WOF_13211
if 
  $betting_step == 45
goto_if_false @WOF_13243
$wheel_position = 2
goto @WOF_13531

:WOF_13243
if 
  $betting_step == 46
goto_if_false @WOF_13275
$wheel_position = 1
goto @WOF_13531

:WOF_13275
if 
  $betting_step == 47
goto_if_false @WOF_13307
$wheel_position = 5
goto @WOF_13531

:WOF_13307
if 
  $betting_step == 48
goto_if_false @WOF_13339
$wheel_position = 1
goto @WOF_13531

:WOF_13339
if 
  $betting_step == 49
goto_if_false @WOF_13371
$wheel_position = 2
goto @WOF_13531

:WOF_13371
if 
  $betting_step == 50
goto_if_false @WOF_13403
$wheel_position = 1
goto @WOF_13531

:WOF_13403
if 
  $betting_step == 51
goto_if_false @WOF_13435
$wheel_position = 5
goto @WOF_13531

:WOF_13435
if 
  $betting_step == 52
goto_if_false @WOF_13467
$wheel_position = 1
goto @WOF_13531

:WOF_13467
if 
  $betting_step == 53
goto_if_false @WOF_13499
$wheel_position = 2
goto @WOF_13531

:WOF_13499
if 
  $betting_step == 54
goto_if_false @WOF_13531
$wheel_position = 1
goto @WOF_13531

:WOF_13531
return 

:WOF_13533
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @WOF_13575
$9386 += 0.001
write_debug_with_float "CHIP_SET_Z" {number} $9386

:WOF_13575
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @WOF_13617
$9386 += -0.001
write_debug_with_float "CHIP_SET_Z" {number} $9386

:WOF_13617
10@ = 0

:WOF_13624
if 
  6 > 10@
goto_if_false @WOF_15503
set_lvar_int_to_var_int 12@ = $win_dialogue(10@,6i)
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1.0
if 
  8@ > 10.0
goto_if_false @WOF_13703
8@ = 10.0

:WOF_13703
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13757
9@ += 0.03

:WOF_13757
set_var_float_to_var_float $chip_set_z(10@,6f) = $9386
add_float_lvar_to_float_var $chip_set_z(10@,6f) += 9@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $wof_winnings(10@,6i)
goto_if_false @WOF_13883
$x, $y, $z = get_object_coordinates $wof_winnings(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_z(10@,6f)
set_object_coordinates $wof_winnings(10@,6i) {x} $x {y} $y {z} $z

:WOF_13883
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 5.0
if 
  8@ > 10.0
goto_if_false @WOF_13932
8@ = 10.0

:WOF_13932
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13986
9@ += 0.03

:WOF_13986
set_var_float_to_var_float $9393(10@,6f) = $9386
add_float_lvar_to_float_var $9393(10@,6f) += 9@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9344(10@,6i)
goto_if_false @WOF_14112
$x, $y, $z = get_object_coordinates $9344(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9393(10@,6f)
set_object_coordinates $9344(10@,6i) {x} $x {y} $y {z} $z

:WOF_14112
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 10.0
if 
  8@ > 10.0
goto_if_false @WOF_14161
8@ = 10.0

:WOF_14161
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14215
9@ += 0.03

:WOF_14215
set_var_float_to_var_float $9399(10@,6f) = $9386
add_float_lvar_to_float_var $9399(10@,6f) += 9@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9350(10@,6i)
goto_if_false @WOF_14341
$x, $y, $z = get_object_coordinates $9350(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9399(10@,6f)
set_object_coordinates $9350(10@,6i) {x} $x {y} $y {z} $z

:WOF_14341
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 50.0
if 
  8@ > 10.0
goto_if_false @WOF_14390
8@ = 10.0

:WOF_14390
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14444
9@ += 0.03

:WOF_14444
set_var_float_to_var_float $9405(10@,6f) = $9386
add_float_lvar_to_float_var $9405(10@,6f) += 9@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9356(10@,6i)
goto_if_false @WOF_14570
$x, $y, $z = get_object_coordinates $9356(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9405(10@,6f)
set_object_coordinates $9356(10@,6i) {x} $x {y} $y {z} $z

:WOF_14570
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 100.0
if 
  8@ > 10.0
goto_if_false @WOF_14619
8@ = 10.0

:WOF_14619
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14673
9@ += 0.03

:WOF_14673
set_var_float_to_var_float $9411(10@,6f) = $9386
add_float_lvar_to_float_var $9411(10@,6f) += 9@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9362(10@,6i)
goto_if_false @WOF_14799
$x, $y, $z = get_object_coordinates $9362(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9411(10@,6f)
set_object_coordinates $9362(10@,6i) {x} $x {y} $y {z} $z

:WOF_14799
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 200.0
if 
  8@ > 10.0
goto_if_false @WOF_14848
8@ = 10.0

:WOF_14848
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14902
9@ += 0.03

:WOF_14902
set_var_float_to_var_float $9417(10@,6f) = $9386
add_float_lvar_to_float_var $9417(10@,6f) += 9@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9368(10@,6i)
goto_if_false @WOF_15029
$x, $y, $z = get_object_coordinates $9368(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9417(10@,6f)
set_object_coordinates $9368(10@,6i) {x} $x {y} $y {z} $z

:WOF_15029
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 500.0
if 
  8@ > 10.0
goto_if_false @WOF_15078
8@ = 10.0

:WOF_15078
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15132
9@ += 0.03

:WOF_15132
set_var_float_to_var_float $9423(10@,6f) = $9386
add_float_lvar_to_float_var $9423(10@,6f) += 9@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9374(10@,6i)
goto_if_false @WOF_15259
$x, $y, $z = get_object_coordinates $9374(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9423(10@,6f)
set_object_coordinates $9374(10@,6i) {x} $x {y} $y {z} $z

:WOF_15259
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1000.0
if 
  8@ > 10.0
goto_if_false @WOF_15308
8@ = 10.0

:WOF_15308
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15362
9@ += 0.03

:WOF_15362
set_var_float_to_var_float $9429(10@,6f) = $9386
add_float_lvar_to_float_var $9429(10@,6f) += 9@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $9380(10@,6i)
goto_if_false @WOF_15489
$x, $y, $z = get_object_coordinates $9380(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $9429(10@,6f)
set_object_coordinates $9380(10@,6i) {x} $x {y} $y {z} $z

:WOF_15489
10@ += 1
goto @WOF_13624

:WOF_15503
return 

:WOF_15505
if 
  does_object_exist 0@
goto_if_false @WOF_15865
8@ = get_float_stat StatId.Gambling
if 
  $wof_temp_float3 == 0
goto_if_false @WOF_15715
if 
  1.0 > 8@
goto_if_false @WOF_15581
19@ = 100
goto @WOF_15701

:WOF_15581
if 
  10.0 > 8@
goto_if_false @WOF_15617
19@ = 1000
goto @WOF_15701

:WOF_15617
if 
  100.0 > 8@
goto_if_false @WOF_15653
19@ = 10000
goto @WOF_15701

:WOF_15653
if 
  1000.0 > 8@
goto_if_false @WOF_15691
19@ = 100000
goto @WOF_15701

:WOF_15691
19@ = 1000000

:WOF_15701
$wof_temp_float3 += 1
goto @WOF_15865

:WOF_15715
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_15865 {caseNum1} 0 {caseLabel1} @WOF_15787 {caseNum2} 1 {caseLabel2} @WOF_15801 {caseNum3} 2 {caseLabel3} @WOF_15816 {caseNum4} 3 {caseLabel4} @WOF_15831 {caseNum5} 4 {caseLabel5} @WOF_15848 {caseNum6} -1 {caseLabel6} @WOF_15865 {caseNum7} -1 {caseLabel7} @WOF_15865

:WOF_15787
19@ = 100
goto @WOF_15865

:WOF_15801
19@ = 1000
goto @WOF_15865

:WOF_15816
19@ = 10000
goto @WOF_15865

:WOF_15831
19@ = 100000
goto @WOF_15865

:WOF_15848
19@ = 1000000
goto @WOF_15865

:WOF_15865
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 4@
goto_if_false @WOF_15916
$active_wheel, $wof_x2, $wof_y2 = get_object_coordinates 4@
$heading = get_object_heading 4@

:WOF_15916
$heading *= -1.0
8@ = cos $heading
9@ = sin $heading
set_var_float_to_var_float $wof_z2 = $x
sub_float_var_from_float_var $wof_z2 -= $active_wheel
set_var_float_to_var_float $wof_vec_x = $y
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $z
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $wof_z2
mult_float_var_by_float_lvar $wof_vec_z *= 8@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
sub_float_var_from_float_var $wof_vec_z -= $wof_vec2_y
set_var_float_to_var_float $wof_vec2_x = $wof_z2
mult_float_var_by_float_lvar $wof_vec2_x *= 9@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 8@
add_float_var_to_float_var $wof_vec2_x += $wof_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file $wof_vec_z
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec_y
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $wof_z2 = $x
sub_float_var_from_float_var $wof_z2 -= $active_wheel
set_var_float_to_var_float $wof_vec_x = $y
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $z
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $wof_z2
mult_float_var_by_float_lvar $wof_vec_z *= 8@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
sub_float_var_from_float_var $wof_vec_z -= $wof_vec2_y
set_var_float_to_var_float $wof_vec2_x = $wof_z2
mult_float_var_by_float_lvar $wof_vec2_x *= 9@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 8@
add_float_var_to_float_var $wof_vec2_x += $wof_vec2_y
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file $wof_vec_z
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec_y
return 
terminate_this_script 

//-------------External script 19 (DEALER)---------------

:DEALER
script_name 'DEALER'
13@ = 0
if 
  13@ == 1
goto_if_false @DEALER_60
0@ = create_char PedType.Dealer {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DEALER_60
1@ = 0
2@ = 0
11@ = -1
14@ = 0
if and
  not is_char_dead 0@
  not is_char_dead $scplayer
goto_if_false @DEALER_338
3@, 4@, 5@ = get_char_coordinates 0@
s$total_wof_tables = get_name_of_info_zone 3@ {y} 4@ {z} 5@
set_lvar_text_label 17@s = s$total_wof_tables
$9452 = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
set_char_decision_maker 0@ {handleOrTemplate} $9452
set_char_money 0@ {amount} 2000
start_setting_up_conversation 0@
set_up_conversation_node_with_speech 'DEAL1' {positiveAnswer} 'DEAL2' {negativeAnswer} 'DEAL3' {questionPhrase} SpeechId.ShopLeave {positiveAnswerPhrase} SpeechId.DrugDealerDislike {negativeAnswerPhrase} SpeechId.DrugDealerHate
13@ = get_int_stat StatId.RespectTotal
if 
  13@ >= 500
goto_if_false @DEALER_271
set_up_conversation_end_node_with_speech 'DEAL2' {phrase} SpeechId.DrugReasonableHigh
set_up_conversation_end_node_with_speech 'DEAL3' {phrase} SpeechId.DrugAggressiveHigh
goto @DEALER_297

:DEALER_271
set_up_conversation_end_node_with_speech 'DEAL2' {phrase} SpeechId.DrugReasonableLow
set_up_conversation_end_node_with_speech 'DEAL3' {phrase} SpeechId.DrugAggressiveLow

:DEALER_297
13@ = get_current_language 
if 
  is_int_lvar_equal_to_constant 13@ == 0
goto_if_false @DEALER_329
finish_setting_up_conversation_no_subtitles 
goto @DEALER_331

:DEALER_329
finish_setting_up_conversation 

:DEALER_331
goto @DEALER_345

:DEALER_338
gosub @DEALER_3913

:DEALER_345
wait 0
if 
  not is_char_dead 0@
goto_if_false @DEALER_471
if 
  not is_char_dead $scplayer
goto_if_false @DEALER_457
if or
  has_char_been_damaged_by_char 0@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 0@
goto_if_false @DEALER_429
gosub @DEALER_641
gosub @DEALER_3368
goto @DEALER_450

:DEALER_429
gosub @DEALER_846
gosub @DEALER_485
gosub @DEALER_931

:DEALER_450
goto @DEALER_464

:DEALER_457
gosub @DEALER_3913

:DEALER_464
goto @DEALER_478

:DEALER_471
gosub @DEALER_3913

:DEALER_478
goto @DEALER_345

:DEALER_485
if 
  11@ == -1
goto_if_false @DEALER_604
if 
  TIMERA > 15000
goto_if_false @DEALER_597
3@, 4@, 5@ = get_char_coordinates 0@
11@ = get_random_char_in_sphere_only_drugs_buyers 3@ {y} 4@ {z} 5@ {radius} 5.0
if 
  11@ <> -1
goto_if_false @DEALER_597
if 
  is_char_in_any_car 11@
goto_if_false @DEALER_597
12@ = store_car_char_is_in_no_save 11@

:DEALER_597
goto @DEALER_639

:DEALER_604
if or
  is_char_dead 11@
  not does_char_exist 11@
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @DEALER_639
11@ = -1

:DEALER_639
return 

:DEALER_641
mark_char_as_no_longer_needed 11@
if 
  not is_char_dead 11@
goto_if_false @DEALER_709
if 
  not is_car_dead 12@
goto_if_false @DEALER_709
if 
  not is_car_on_fire 12@
goto_if_false @DEALER_709
task_car_drive_wander 11@ {vehicle} 12@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars

:DEALER_709
TIMERA = 0
11@ = -1
return 

:DEALER_725
if 
  not is_char_dead 0@
goto_if_false @DEALER_844
if 
  not is_char_dead 11@
goto_if_false @DEALER_844
3@, 4@, 5@ = get_char_coordinates 0@
6@, 7@, 8@ = get_char_coordinates 11@
9@ = get_distance_between_coords_2d 3@ {fromY} 4@ {toX} 6@ {toZ} 7@
if 
  9@ > 2.0
goto_if_false @DEALER_837
13@ = 1
goto @DEALER_844

:DEALER_837
13@ = 0

:DEALER_844
return 

:DEALER_846
if 
  has_model_loaded 346
goto_if_false @DEALER_929
if 
  not has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_929
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 1000
if 
  15@ <> 1
goto_if_false @DEALER_922
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
goto @DEALER_929

:DEALER_922
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol

:DEALER_929
return 

:DEALER_931
switch_start 1@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DEALER_1285 {caseNum1} 0 {caseLabel1} @DEALER_994 {caseNum2} 1 {caseLabel2} @DEALER_1151 {caseNum3} 2 {caseLabel3} @DEALER_1211 {caseNum4} 3 {caseLabel4} @DEALER_1271 {caseNum5} -1 {caseLabel5} @DEALER_1299 {caseNum6} -1 {caseLabel6} @DEALER_1299 {caseNum7} -1 {caseLabel7} @DEALER_1299

:DEALER_994
if 
  is_player_in_position_for_conversation 0@
goto_if_false @DEALER_1038
2@ = 0
1@ = 3
gosub @DEALER_2884
goto @DEALER_1144

:DEALER_1038
if 
  11@ > -1
goto_if_false @DEALER_1137
gosub @DEALER_725
if 
  13@ == 0
goto_if_false @DEALER_1109
2@ = 0
1@ = 2
gosub @DEALER_2636
goto @DEALER_1130

:DEALER_1109
2@ = 0
1@ = 1
gosub @DEALER_1793

:DEALER_1130
goto @DEALER_1144

:DEALER_1137
gosub @DEALER_1301

:DEALER_1144
goto @DEALER_1299

:DEALER_1151
if 
  11@ > -1
goto_if_false @DEALER_1183
gosub @DEALER_1793
goto @DEALER_1204

:DEALER_1183
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1204
goto @DEALER_1299

:DEALER_1211
if 
  11@ > -1
goto_if_false @DEALER_1243
gosub @DEALER_2636
goto @DEALER_1264

:DEALER_1243
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1264
goto @DEALER_1299

:DEALER_1271
gosub @DEALER_2884
goto @DEALER_1299

:DEALER_1285
gosub @DEALER_3913
goto @DEALER_1299

:DEALER_1299
return 

:DEALER_1301
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_1791 {caseNum1} 0 {caseLabel1} @DEALER_1364 {caseNum2} 1 {caseLabel2} @DEALER_1488 {caseNum3} 2 {caseLabel3} @DEALER_1758 {caseNum4} -1 {caseLabel4} @DEALER_1791 {caseNum5} -1 {caseLabel5} @DEALER_1791 {caseNum6} -1 {caseLabel6} @DEALER_1791 {caseNum7} -1 {caseLabel7} @DEALER_1791

:DEALER_1364
if 
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @DEALER_1481
enable_conversation 0@ {state} True
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1481
task_play_anim 0@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
14@ = 3000
2@ += 1

:DEALER_1481
goto @DEALER_1791

:DEALER_1488
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1751
set_char_wanted_by_police 0@ {state} False
13@ = generate_random_int_in_range 1 {max} 15
if 
  13@ > 5
goto_if_false @DEALER_1659
if 
  13@ > 10
goto_if_false @DEALER_1610
13@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1603
task_look_about 0@ {time} -1
14@ = 2000

:DEALER_1603
goto @DEALER_1652

:DEALER_1610
13@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1652
task_wander_standard 0@
14@ = 1500

:DEALER_1652
goto @DEALER_1737

:DEALER_1659
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1737
task_play_anim 0@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
14@ = 3000

:DEALER_1737
TIMERB = 0
2@ += 1

:DEALER_1751
goto @DEALER_1791

:DEALER_1758
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1784
2@ = 1

:DEALER_1784
goto @DEALER_1791

:DEALER_1791
return 

:DEALER_1793
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DEALER_2634 {caseNum1} 0 {caseLabel1} @DEALER_1856 {caseNum2} 1 {caseLabel2} @DEALER_1907 {caseNum3} 2 {caseLabel3} @DEALER_2044 {caseNum4} 3 {caseLabel4} @DEALER_2074 {caseNum5} 4 {caseLabel5} @DEALER_2295 {caseNum6} 5 {caseLabel6} @DEALER_2505 {caseNum7} -1 {caseLabel7} @DEALER_2634

:DEALER_1856
enable_conversation 0@ {state} False
task_look_about 0@ {time} -1
task_goto_char 11@ {target} 0@ {time} 20000 {radius} 1.0
TIMERB = 0
2@ += 1
goto @DEALER_2634

:DEALER_1907
3@, 4@, 5@ = get_char_coordinates 0@
6@, 7@, 8@ = get_char_coordinates 11@
9@ = get_distance_between_coords_2d 3@ {fromY} 4@ {toX} 6@ {toZ} 7@
task_look_at_char 0@ {target} 11@ {time} -1
if 
  1.8 >= 9@
goto_if_false @DEALER_1997
2@ += 1
goto @DEALER_2037

:DEALER_1997
if 
  TIMERB > 20000
goto_if_false @DEALER_2037
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2037
goto @DEALER_2634

:DEALER_2044
task_turn_char_to_face_char 11@ {target} 0@
task_turn_char_to_face_char 0@ {target} 11@
2@ += 1
goto @DEALER_2634

:DEALER_2074
13@ = get_script_task_status 11@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
13@ = get_script_task_status 11@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
task_stand_still 11@ {time} -1

:DEALER_2139
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2204
task_stand_still 0@ {time} -1

:DEALER_2204
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = set_char_say_context 11@ {phrase} SpeechId.DrugsBuy
task_play_anim 11@ {animationName} "SHOP_PAY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ += 1

:DEALER_2288
goto @DEALER_2634

:DEALER_2295
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
clear_look_at 0@
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2404
task_play_anim 11@ {animationName} "DRUGS_BUY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_wanted_by_police 11@ {state} True

:DEALER_2404
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
13@ = set_char_say_context 0@ {phrase} SpeechId.DrugsSell
task_play_anim 0@ {animationName} "DEALER_DEAL" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_wanted_by_police 0@ {state} True
2@ += 1

:DEALER_2498
goto @DEALER_2634

:DEALER_2505
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
13@ = get_script_task_status 11@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
task_stand_still 11@ {time} -1

:DEALER_2570
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2627
set_char_drugged_up 11@ {state} True
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2627
goto @DEALER_2634

:DEALER_2634
return 

:DEALER_2636
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_2882 {caseNum1} 0 {caseLabel1} @DEALER_2699 {caseNum2} 1 {caseLabel2} @DEALER_2769 {caseNum3} 2 {caseLabel3} @DEALER_2825 {caseNum4} -1 {caseLabel4} @DEALER_2882 {caseNum5} -1 {caseLabel5} @DEALER_2882 {caseNum6} -1 {caseLabel6} @DEALER_2882 {caseNum7} -1 {caseLabel7} @DEALER_2882

:DEALER_2699
enable_conversation 0@ {state} False
3@, 4@, 5@ = get_char_coordinates 0@
task_look_at_char 0@ {target} 11@ {time} -1
task_follow_footsteps 0@ {target} 11@
13@ = set_char_say_context 0@ {phrase} SpeechId.DrugsSell
TIMERB = 0
2@ += 1
goto @DEALER_2882

:DEALER_2769
if 
  TIMERB > 6000
goto_if_false @DEALER_2818
clear_look_at 0@
task_follow_path_nodes_to_coord 0@ {x} 3@ {y} 4@ {z} 5@ {speed} MoveState.Walk {time} -2
2@ += 1

:DEALER_2818
goto @DEALER_2882

:DEALER_2825
13@ = get_script_task_status 0@ {taskId} 1525
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2875
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2875
goto @DEALER_2882

:DEALER_2882
return 

:DEALER_2884
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DEALER_3366 {caseNum1} 0 {caseLabel1} @DEALER_2947 {caseNum2} 1 {caseLabel2} @DEALER_2976 {caseNum3} 2 {caseLabel3} @DEALER_3178 {caseNum4} 3 {caseLabel4} @DEALER_3312 {caseNum5} -1 {caseLabel5} @DEALER_3366 {caseNum6} -1 {caseLabel6} @DEALER_3366 {caseNum7} -1 {caseLabel7} @DEALER_3366

:DEALER_2947
TIMERB = 0
task_turn_char_to_face_char 0@ {target} $scplayer
2@ += 1
goto @DEALER_3366

:DEALER_2976
if 
  not is_help_message_being_displayed 
goto_if_false @DEALER_3039
if and
  not is_conversation_at_node 0@ {speech} 'DEAL2'
  not is_conversation_at_node 0@ {speech} 'DEAL3'
goto_if_false @DEALER_3039
print_help 'TALK_1'

:DEALER_3039
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3128
task_look_at_char 0@ {target} $scplayer {time} -1
13@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3114
task_stand_still 0@ {time} -2

:DEALER_3114
2@ += 1
goto @DEALER_3171

:DEALER_3128
if or
  not is_player_in_position_for_conversation 0@
  TIMERB > 15000
goto_if_false @DEALER_3171
clear_look_at 0@
2@ = 0
1@ = 0

:DEALER_3171
goto @DEALER_3366

:DEALER_3178
if and
  is_conversation_at_node 0@ {speech} 'DEAL3'
  TIMERB > 9000
goto_if_false @DEALER_3220
clear_help 
gosub @DEALER_3368

:DEALER_3220
if and
  is_conversation_at_node 0@ {speech} 'DEAL2'
  TIMERB > 9000
goto_if_false @DEALER_3262
clear_help 
gosub @DEALER_3595

:DEALER_3262
if or
  not is_player_in_position_for_conversation 0@
  TIMERB > 15000
goto_if_false @DEALER_3305
clear_look_at 0@
2@ = 0
1@ = 0

:DEALER_3305
goto @DEALER_3366

:DEALER_3312
if 
  TIMERB > 2000
goto_if_false @DEALER_3359
clear_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
2@ = 0
1@ = 0

:DEALER_3359
goto @DEALER_3366

:DEALER_3366
return 

:DEALER_3368
clear_help 
clear_look_at 0@
enable_conversation 0@ {state} False
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_3407
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol

:DEALER_3407
if 
  15@ <> 1
goto_if_false @DEALER_3593
15@ = 1
13@ = get_int_stat StatId.RespectTotal
if 
  13@ > 500
goto_if_false @DEALER_3529
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
clear_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0
goto @DEALER_3593

:DEALER_3529
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
clear_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0

:DEALER_3593
return 

:DEALER_3595
clear_help 
clear_look_at 0@
enable_conversation 0@ {state} False
13@ = get_int_stat StatId.Respect
if 
  15@ <> 2
goto_if_false @DEALER_3868
15@ = 2
if 
  13@ > 500
goto_if_false @DEALER_3738
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
clear_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike
add_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0
goto @DEALER_3868

:DEALER_3738
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
clear_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_3820
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
add_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleGunCtrl {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
goto @DEALER_3854

:DEALER_3820
add_char_decision_maker_event_response $9452 {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:DEALER_3854
TIMERB = 0
2@ += 1

:DEALER_3868
return 

:DEALER_3870
16@ = get_zone_dealer_strength 17@s
if 
  16@ > 0
goto_if_false @DEALER_3903
16@ -= 1

:DEALER_3903
set_zone_dealer_strength 17@s {strength} 16@
return 

:DEALER_3913
if 
  15@ == 1
goto_if_false @DEALER_3938
gosub @DEALER_3870

:DEALER_3938
clear_conversation_for_char 0@
if 
  11@ > -1
goto_if_false @DEALER_3966
mark_char_as_no_longer_needed 11@

:DEALER_3966
remove_decision_maker $9452
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 1@
write_debug_with_int "SUBSTATESTATUS" {number} 2@
write_debug_with_int "TIMER_B" {number} TIMERB
write_debug_with_int "TIMER_A" {number} TIMERA
return 
terminate_this_script 

//-------------External script 20 (HOME_BRAINS)---------------

:HMLES
script_name 'HMLES'
$iMyDM = 0
$homeless_number = 0
$homeless_brain_flag = 0
2@ = 0
12@ = 0
13@ = 0
14@ = 0
11@ = 0
if 
  $iMyDM == 1
goto_if_false @HMLES_109
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:HMLES_109
$homeless_brain_flag = generate_random_int_in_range 0 {max} 4
$homeless_brain_flag = 3
if 
  $fire_people_created <> 0
goto_if_false @HMLES_159
12@ = 1
terminate_this_script 
goto @HMLES_236

:HMLES_159
if 
  does_char_exist 0@
goto_if_false @HMLES_229
if 
  not is_char_dead 0@
goto_if_false @HMLES_229
clear_char_tasks_immediately 0@
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_229
set_anim_group_for_char 0@ {animGroup} "DRUNKMAN"

:HMLES_229
$fire_people_created = 1

:HMLES_236
wait 0
if and
  does_char_exist 0@
  12@ == 0
goto_if_false @HMLES_3525
if and
  is_player_playing $player1
  not is_char_dead 0@
goto_if_false @HMLES_3518
if 
  is_char_in_any_car $scplayer
goto_if_false @HMLES_322
1@ = store_car_char_is_in_no_save $scplayer
2@ = 1
goto @HMLES_329

:HMLES_322
2@ = 0

:HMLES_329
if 
  $iMyDM == 0
goto_if_false @HMLES_1945
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_463
if 
  locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HMLES_463
if 
  has_char_spotted_char 0@ {target} $scplayer
goto_if_false @HMLES_463
17@ = set_char_say_context 0@ {phrase} SpeechId.BumLatch
if 
  2@ == 0
goto_if_false @HMLES_456
task_walk_alongside_char 0@ {target} $scplayer

:HMLES_456
$iMyDM = 1

:HMLES_463
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_1012
if 
  $homeless_number == 0
goto_if_false @HMLES_518
request_animation "SUNBATHE"
$homeless_number = 1

:HMLES_518
if 
  $homeless_number == 1
goto_if_false @HMLES_573
if 
  has_animation_loaded "SUNBATHE"
goto_if_false @HMLES_573
$homeless_number = 2
goto @HMLES_573

:HMLES_573
if 
  $homeless_number == 2
goto_if_false @HMLES_1012
if 
  has_animation_loaded "SUNBATHE"
goto_if_false @HMLES_1000
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_IN" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEB" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEA" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEC" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEB" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEC" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_OUT" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
11@ = 0
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1012

:HMLES_1000
request_animation "SUNBATHE"

:HMLES_1012
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_1610
if 
  $homeless_number == 0
goto_if_false @HMLES_1079
request_animation "FOOD"
request_animation "VENDING"
request_model #CJ_JUICE_CAN
$homeless_number = 1

:HMLES_1079
if 
  $homeless_number == 1
goto_if_false @HMLES_1185
if and
  has_animation_loaded "FOOD"
  has_animation_loaded "VENDING"
  has_model_loaded #CJ_JUICE_CAN
goto_if_false @HMLES_1185
7@, 8@, 9@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.3 {zOffset} 0.0
19@ = create_object #CJ_JUICE_CAN {x} 7@ {y} 8@ {z} 9@
$homeless_number = 2

:HMLES_1185
if 
  $homeless_number == 2
goto_if_false @HMLES_1610
if 
  has_animation_loaded "VENDING"
goto_if_false @HMLES_1599
if 
  has_animation_loaded "FOOD"
goto_if_false @HMLES_1584
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_pick_up_object -1 {object} 19@ {xOffset} 0.1 {yOffset} 0.1 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim -1 {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WALK_DRUNK" {animationFile} "PED" {blendSpeed} 1004.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "VEND_DRINK_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WALK_DRUNK" {animationFile} "PED" {blendSpeed} 1004.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1592

:HMLES_1584
request_animation "FOOD"

:HMLES_1592
goto @HMLES_1610

:HMLES_1599
request_animation "VENDING"

:HMLES_1610
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_1945
if 
  $homeless_number == 0
goto_if_false @HMLES_1665
request_animation "PAULNMAC"
$homeless_number = 1

:HMLES_1665
if 
  $homeless_number == 1
goto_if_false @HMLES_1713
if 
  has_animation_loaded "PAULNMAC"
goto_if_false @HMLES_1713
$homeless_number = 2

:HMLES_1713
if 
  $homeless_number == 2
goto_if_false @HMLES_1945
if 
  has_animation_loaded "PAULNMAC"
goto_if_false @HMLES_1933
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "PISS_IN" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_LOOP" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_OUT" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1945

:HMLES_1933
request_animation "PAULNMAC"

:HMLES_1945
if 
  $iMyDM == 1
goto_if_false @HMLES_2069
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_1992
17@ = set_char_say_context 0@ {phrase} SpeechId.ShopLeave

:HMLES_1992
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2021
17@ = set_char_say_context 0@ {phrase} SpeechId.ShopLeave

:HMLES_2021
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2039

:HMLES_2039
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_2057

:HMLES_2057
4@ = get_game_timer 
$iMyDM = 2

:HMLES_2069
if 
  $iMyDM == 2
goto_if_false @HMLES_2717
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_2217
if 
  not is_message_being_displayed 
goto_if_false @HMLES_2217
5@ = get_game_timer 
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if and
  6@ > 8000
  10000 > 6@
goto_if_false @HMLES_2206
17@ = set_char_say_context 0@ {phrase} SpeechId.SolicitThanks
task_kill_char_on_foot 0@ {target} $scplayer
$fire_people_created = 0
12@ = 1
goto @HMLES_2217

:HMLES_2206
17@ = set_char_say_context 0@ {phrase} SpeechId.ShopLeave

:HMLES_2217
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2381
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2381
16@ = get_sequence_progress 0@
if 
  16@ > 6
goto_if_false @HMLES_2381
if 
  11@ == 0
goto_if_false @HMLES_2327
11@ = 1
4@ = get_game_timer 
goto @HMLES_2381

:HMLES_2327
5@ = get_game_timer 
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if 
  6@ > 15000
goto_if_false @HMLES_2381
$iMyDM = 0
$homeless_number = 0

:HMLES_2381
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2553
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2553
if 
  is_char_playing_anim 0@ {animationName} "EAT_VOMIT_P"
goto_if_false @HMLES_2553
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.355 {yOffset} -0.116 {zOffset} 0.048
10@ = get_char_anim_current_time 0@ {animationName} "EAT_VOMIT_P"
15@ = create_fx_system "PUKE" {x} 7@ {y} 8@ {z} 9@ {ignoreBoundingChecks} True
10@ = 0.0
11@ = 0
$iMyDM = 3

:HMLES_2553
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_2717
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2717
if 
  is_char_playing_anim 0@ {animationName} "PISS_IN"
goto_if_false @HMLES_2717
10@ = get_char_anim_current_time 0@ {animationName} "PISS_IN"
15@ = create_fx_system_on_char_with_direction "PETROLCAN" {char} 0@ {xOffset} 0.0 {yOffset} 0.58 {zOffset} -0.08 {xDirection} 0.0 {yDirection} 0.01 {zDirection} 0.0 {ignoreBoundingChecks} True
10@ = 0.0
11@ = 0
$iMyDM = 3

:HMLES_2717
if 
  $iMyDM == 3
goto_if_false @HMLES_3468
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_2753

:HMLES_2753
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2771

:HMLES_2771
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2993
if 
  10@ <> 1.0
goto_if_false @HMLES_2969
if 
  not is_char_dead 0@
goto_if_false @HMLES_2883
if 
  is_char_playing_anim 0@ {animationName} "EAT_VOMIT_P"
goto_if_false @HMLES_2876
10@ = get_char_anim_current_time 0@ {animationName} "EAT_VOMIT_P"

:HMLES_2876
goto @HMLES_2893

:HMLES_2883
10@ = 1.0

:HMLES_2893
if 
  11@ == 0
goto_if_false @HMLES_2962
if 
  10@ >= 0.5
goto_if_false @HMLES_2962
if 
  15@ <> -1
goto_if_false @HMLES_2955
play_fx_system 15@

:HMLES_2955
11@ = 1

:HMLES_2962
goto @HMLES_2993

:HMLES_2969
stop_fx_system 15@
kill_fx_system 15@
$fire_people_created = 0
12@ = 1

:HMLES_2993
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_3468
if 
  2 > 11@
goto_if_false @HMLES_3199
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 7
goto_if_false @HMLES_3114
if 
  11@ == 1
goto_if_false @HMLES_3093
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3093
$fire_people_created = 0
12@ = 1
goto @HMLES_3199

:HMLES_3114
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_3182
16@ = get_sequence_progress 0@
if 
  16@ > 2
goto_if_false @HMLES_3175
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3175
goto @HMLES_3199

:HMLES_3182
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3199
if 
  11@ == 0
goto_if_false @HMLES_3368
if 
  not is_char_dead 0@
goto_if_false @HMLES_3282
if 
  is_char_playing_anim 0@ {animationName} "PISS_IN"
goto_if_false @HMLES_3275
10@ = get_char_anim_current_time 0@ {animationName} "PISS_IN"

:HMLES_3275
goto @HMLES_3292

:HMLES_3282
10@ = 1.0

:HMLES_3292
if 
  11@ == 0
goto_if_false @HMLES_3361
if 
  10@ >= 0.6
goto_if_false @HMLES_3361
if 
  15@ <> -1
goto_if_false @HMLES_3354
play_fx_system 15@

:HMLES_3354
11@ = 1

:HMLES_3361
goto @HMLES_3468

:HMLES_3368
if 
  11@ == 1
goto_if_false @HMLES_3468
if 
  is_char_playing_anim 0@ {animationName} "PISS_OUT"
goto_if_false @HMLES_3468
10@ = get_char_anim_current_time 0@ {animationName} "PISS_OUT"
if 
  10@ >= 0.42
goto_if_false @HMLES_3468
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3468
if 
  not locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HMLES_3518
$fire_people_created = 0
12@ = 1

:HMLES_3518
goto @HMLES_3539

:HMLES_3525
$fire_people_created = 0
12@ = 1

:HMLES_3539
if 
  is_char_dead 0@
goto_if_false @HMLES_3569
12@ = 1
$fire_people_created = 0

:HMLES_3569
if 
  12@ == 1
goto_if_false @HMLES_3694
if 
  does_char_exist 0@
goto_if_false @HMLES_3624
if 
  not is_char_dead 0@
goto_if_false @HMLES_3624
task_wander_standard 0@

:HMLES_3624
stop_fx_system 15@
kill_fx_system 15@
mark_char_as_no_longer_needed 0@
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_object_as_no_longer_needed 19@
remove_animation "FOOD"
remove_animation "VENDING"
remove_animation "SUNBATHE"
remove_animation "PAULNMAC"
terminate_this_script 

:HMLES_3694
goto @HMLES_236
terminate_this_script 

//-------------External script 21 (POOL_SCRIPT)---------------

:POOL
script_name 'POOL'
if 
  $pool_max_bet == 0
goto_if_false @POOL_84
if 
  $onmission == 0
goto_if_false @POOL_75
$pool_max_bet = 1
$homeless_waiting_flag = 0
$active_pool_table = 0
goto @POOL_77

:POOL_75
terminate_this_script 

:POOL_77
goto @POOL_86

:POOL_84
terminate_this_script 

:POOL_86
3@ = 0

:POOL_93
wait 0
if 
  3@ == -1
goto_if_false @POOL_251
0@ = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_table = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$homeless_waiting_flag = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_opponent = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0

:POOL_251
if 
  3@ == 0
goto_if_false @POOL_474
if 
  is_player_playing $player1
goto_if_false @POOL_467
if 
  can_player_start_mission $player1
goto_if_false @POOL_453
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_439
5@ = generate_random_int_in_range 0 {max} 2
if 
  5@ == 0
goto_if_false @POOL_360
set_lvar_int_to_constant 7@ = 66
goto @POOL_367

:POOL_360
set_lvar_int_to_constant 7@ = 67

:POOL_367
request_model 7@
request_animation "POOL"
request_model 338

:POOL_385
if or
  not has_model_loaded 7@
  not has_animation_loaded "POOL"
  not has_model_loaded 338
goto_if_false @POOL_425
wait 0
goto @POOL_385

:POOL_425
3@ += 1
goto @POOL_446

:POOL_439
gosub @POOL_2110

:POOL_446
goto @POOL_460

:POOL_453
gosub @POOL_2110

:POOL_460
goto @POOL_474

:POOL_467
gosub @POOL_2110

:POOL_474
if 
  3@ == 1
goto_if_false @POOL_1183
if 
  is_player_playing $player1
goto_if_false @POOL_1176
if 
  can_player_start_mission $player1
goto_if_false @POOL_1162
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_1148
if 
  does_object_exist 0@
goto_if_false @POOL_1134
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0219 {yOffset} -1.1236 {zOffset} 0.5363
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
if 
  not does_char_exist 1@
goto_if_false @POOL_804
if 
  not does_char_exist $active_pool_table
goto_if_false @POOL_688
1@ = create_char PedType.CivMale {modelId} 7@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
mark_model_as_no_longer_needed 7@
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading
goto @POOL_797

:POOL_688
if 
  not is_char_dead $active_pool_table
goto_if_false @POOL_749
set_lvar_int_to_var_int 1@ = $active_pool_table
set_char_coordinates 1@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading
goto @POOL_797

:POOL_749
1@ = create_char PedType.CivMale {modelId} 7@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
mark_model_as_no_longer_needed 7@
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading

:POOL_797
goto @POOL_850

:POOL_804
if 
  not is_char_dead 1@
goto_if_false @POOL_850
set_char_coordinates 1@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading

:POOL_850
if 
  not does_object_exist 2@
goto_if_false @POOL_888
2@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL_888
if 
  not is_char_dead 1@
goto_if_false @POOL_964
if 
  not is_char_holding_object 1@ {handle} 2@
goto_if_false @POOL_964
task_pick_up_object 1@ {object} 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL_964
6@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_CHALKCUE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  is_player_playing $player1
goto_if_false @POOL_1035
task_look_at_char -1 {target} $scplayer {time} 9000

:POOL_1035
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
set_sequence_to_repeat 6@ {state} True
close_sequence_task 6@
if 
  not is_char_dead 1@
goto_if_false @POOL_1115
perform_sequence_task 1@ {sequence} 6@

:POOL_1115
clear_sequence_task 6@
3@ += 1
goto @POOL_1141

:POOL_1134
gosub @POOL_2110

:POOL_1141
goto @POOL_1155

:POOL_1148
gosub @POOL_2110

:POOL_1155
goto @POOL_1169

:POOL_1162
gosub @POOL_2110

:POOL_1169
goto @POOL_1183

:POOL_1176
gosub @POOL_2110

:POOL_1183
if 
  3@ == 2
goto_if_false @POOL_1721
if 
  $onmission == 0
goto_if_false @POOL_1693
if 
  is_player_playing $player1
goto_if_false @POOL_1679
if 
  $fFunTemp == 0
goto_if_false @POOL_1644
if 
  does_object_exist 0@
goto_if_false @POOL_1630
if 
  not is_char_dead 1@
goto_if_false @POOL_1616
if 
  has_char_been_damaged_by_char 1@ {handle} $scplayer
goto_if_false @POOL_1364
clear_char_tasks 1@
drop_object 1@ {state} False
delete_object 2@
give_weapon_to_char 1@ {weaponType} WeaponType.PoolCue {ammo} 99999
task_kill_char_on_foot 1@ {target} $scplayer
clear_help 
4@ = 0
goto @POOL_2001
goto @POOL_1609

:POOL_1364
if 
  locate_char_on_foot_char_3d 1@ {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @POOL_1582
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @POOL_1539
5@ = store_score $player1
if 
  50 > 5@
goto_if_false @POOL_1466
print_now 'NOCASH' {time} 3000 {flag} 1
goto @POOL_1532

:POOL_1466
if 
  4@ == 1
goto_if_false @POOL_1494
clear_help 
set_lvar_int_to_var_int 4@ = $onmission

:POOL_1494
set_var_int_to_lvar_int $homeless_waiting_flag = 0@
set_var_int_to_lvar_int $active_pool_table = 1@
set_var_int_to_lvar_int $active_pool_opponent = 2@
$load_and_launch_mission_if_poss = 5
3@ += 1

:POOL_1532
goto @POOL_1575

:POOL_1539
if 
  4@ == 0
goto_if_false @POOL_1575
print_help_forever 'POOL_A'
4@ = 1

:POOL_1575
goto @POOL_1609

:POOL_1582
if 
  4@ == 1
goto_if_false @POOL_1609
clear_help 
4@ = 0

:POOL_1609
goto @POOL_1623

:POOL_1616
goto @POOL_2001

:POOL_1623
goto @POOL_1637

:POOL_1630
goto @POOL_2001

:POOL_1637
goto @POOL_1672

:POOL_1644
if 
  not is_char_dead 1@
goto_if_false @POOL_1665
clear_char_tasks 1@

:POOL_1665
goto @POOL_2001

:POOL_1672
goto @POOL_1686

:POOL_1679
goto @POOL_2001

:POOL_1686
goto @POOL_1721

:POOL_1693
if 
  not is_char_dead 1@
goto_if_false @POOL_1714
clear_char_tasks 1@

:POOL_1714
goto @POOL_2001

:POOL_1721
if 
  3@ == 3
goto_if_false @POOL_1764
if 
  $onmission == 1
goto_if_false @POOL_1764
3@ += 1

:POOL_1764
if 
  3@ == 4
goto_if_false @POOL_1896
if 
  $onmission == 0
goto_if_false @POOL_1896
if 
  is_player_playing $player1
goto_if_false @POOL_1896
if 
  can_player_start_mission $player1
goto_if_false @POOL_1896
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_1896
if 
  does_object_exist 0@
goto_if_false @POOL_1896
if 
  not is_char_dead 1@
goto_if_false @POOL_1896
3@ = 1
goto @POOL_474

:POOL_1896
if 
  is_player_playing $player1
goto_if_false @POOL_1987
if 
  does_object_exist 0@
goto_if_false @POOL_1973
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @POOL_1966
goto @POOL_2001

:POOL_1966
goto @POOL_1980

:POOL_1973
goto @POOL_2001

:POOL_1980
goto @POOL_1994

:POOL_1987
goto @POOL_2001

:POOL_1994
goto @POOL_93

:POOL_2001
if 
  is_player_playing $player1
goto_if_false @POOL_2092
if 
  does_object_exist 0@
goto_if_false @POOL_2078
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @POOL_2071
gosub @POOL_2110

:POOL_2071
goto @POOL_2085

:POOL_2078
gosub @POOL_2110

:POOL_2085
goto @POOL_2099

:POOL_2092
gosub @POOL_2110

:POOL_2099
wait 0
goto @POOL_2001

:POOL_2110
if 
  4@ == 1
goto_if_false @POOL_2130
clear_help 

:POOL_2130
clear_this_print 'NOCASH'
mark_char_as_no_longer_needed 1@
delete_object 2@
mark_model_as_no_longer_needed 7@
remove_animation "POOL"
mark_model_as_no_longer_needed 338
$pool_max_bet = 0
$homeless_waiting_flag = 0
$active_pool_table = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 22 (LOWR_CONT)---------------

:LOWRCON
script_name 'LOWRCON'
1@ = 0
if 
  1@ == -1
goto_if_false @LOWRCON_83
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
4@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:LOWRCON_83
2@ = 0

:LOWRCON_90
wait 0
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1753
if or
  $onmission == 0
  2@ == 1
goto_if_false @LOWRCON_1739
if 
  locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @LOWRCON_1725
if 
  does_char_exist 0@
goto_if_false @LOWRCON_212
if 
  is_char_dead 0@
goto_if_false @LOWRCON_212
goto @LOWRCON_1767

:LOWRCON_212
switch_start 1@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWRCON_1718 {caseNum1} 0 {caseLabel1} @LOWRCON_340 {caseNum2} 1 {caseLabel2} @LOWRCON_480 {caseNum3} 2 {caseLabel3} @LOWRCON_726 {caseNum4} 3 {caseLabel4} @LOWRCON_787 {caseNum5} 4 {caseLabel5} @LOWRCON_904 {caseNum6} 5 {caseLabel6} @LOWRCON_1125 {caseNum7} 6 {caseLabel7} @LOWRCON_1221
switch_continued 7 {caseLabel1} @LOWRCON_1338 {caseNum2} 8 {caseLabel2} @LOWRCON_1506 {caseNum3} 9 {caseLabel3} @LOWRCON_1646 {caseNum4} -1 {caseLabel4} @LOWRCON_1718 {caseNum5} -1 {caseLabel5} @LOWRCON_1718 {caseNum6} -1 {caseLabel6} @LOWRCON_1718 {caseNum7} -1 {caseLabel7} @LOWRCON_1718 {caseNum8} -1 {caseLabel8} @LOWRCON_1718 {caseNum9} -1 {caseLabel9} @LOWRCON_1718

:LOWRCON_340
request_model 50

:LOWRCON_344
if 
  not has_model_loaded 50
goto_if_false @LOWRCON_370
wait 0
goto @LOWRCON_344

:LOWRCON_370
3@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
0@ = create_char PedType.Mission1 {modelId} 50 {x} 1812.369 {y} -1929.922 {z} 12.5486
set_char_heading 0@ {heading} 270.0
set_char_only_damaged_by_player 0@ {state} True
set_char_decision_maker 0@ {handleOrTemplate} 3@
if 
  is_player_playing $player1
goto_if_false @LOWRCON_455
task_look_at_char 0@ {target} $scplayer {time} -2

:LOWRCON_455
mark_model_as_no_longer_needed 50
freeze_char_position 0@ {state} True
1@ += 1
goto @LOWRCON_1718

:LOWRCON_480
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_719
if 
  locate_char_on_foot_3d 0@ {x} 1813.369 {y} -1929.922 {z} 12.5486 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @LOWRCON_719
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_589
$x, $y, $z = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0

:LOWRCON_589
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_639
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @LOWRCON_639
task_kill_char_on_foot 0@ {target} $scplayer
goto @LOWRCON_1767

:LOWRCON_639
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.7 {yRadius} 0.7 {zRadius} 1.2 {drawSphere} True
goto_if_false @LOWRCON_719
set_player_control $player1 {state} False
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_712
task_turn_char_to_face_char $scplayer {target} 0@

:LOWRCON_712
1@ += 1

:LOWRCON_719
goto @LOWRCON_1718

:LOWRCON_726
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_780
if 
  is_player_playing $player1
goto_if_false @LOWRCON_768
task_look_at_char 0@ {target} $scplayer {time} -2

:LOWRCON_768
clear_char_tasks 0@
1@ += 1

:LOWRCON_780
goto @LOWRCON_1718

:LOWRCON_787
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_840
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000

:LOWRCON_840
set_var_text_label s$audio_string = 'MEC_HI'
set_var_int_to_constant $audio_sound_file = 35607
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1
goto @LOWRCON_1718

:LOWRCON_904
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1118
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1118
print_help_forever 'TALK_1'
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @LOWRCON_1040
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 8653
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_help 
TIMERA = 0
2@ = 1
1@ += 1
goto @LOWRCON_1118

:LOWRCON_1040
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @LOWRCON_1118
set_var_text_label s$audio_string = 'VOFFE1N'
set_var_int_to_constant $audio_sound_file = 42641
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_help 
TIMERA = 0
restore_camera 
1@ += 2

:LOWRCON_1118
goto @LOWRCON_1718

:LOWRCON_1125
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1214
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1214
do_fade 150 {direction} Fade.Out

:LOWRCON_1169
if 
  get_fading_status 
goto_if_false @LOWRCON_1193
wait 0
goto @LOWRCON_1169

:LOWRCON_1193
$lowrider_meeting_is_loaded = 0
$load_and_launch_mission_if_poss = 6
1@ += 2

:LOWRCON_1214
goto @LOWRCON_1718

:LOWRCON_1221
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1331
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1331
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1281
set_player_control $player1 {state} True

:LOWRCON_1281
set_var_text_label s$audio_string = 'MEC_N'
set_var_int_to_constant $audio_sound_file = 35608
start_new_script @AUDIOL 0@ 1 1 1 0 
goto @LOWRCON_1767

:LOWRCON_1331
goto @LOWRCON_1718

:LOWRCON_1338
if 
  $lowrider_meeting_is_loaded == 1
goto_if_false @LOWRCON_1499
set_fixed_camera_position 1815.894 {y} -1932.708 {z} 15.2576 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1815.094 {y} -1932.212 {z} 14.9195 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 150 {direction} Fade.In

:LOWRCON_1418
if 
  get_fading_status 
goto_if_false @LOWRCON_1442
wait 0
goto @LOWRCON_1418

:LOWRCON_1442
set_var_text_label s$audio_string = 'MEC_Y'
set_var_int_to_constant $audio_sound_file = 35609
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1

:LOWRCON_1499
goto @LOWRCON_1718

:LOWRCON_1506
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1639
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1639
camera_reset_new_scriptables 
camera_set_vector_move 1815.894 {fromY} -1932.708 {fromZ} 15.2576 {toX} 1813.444 {toY} -1932.063 {toZ} 18.552 {time} 3000 {ease} True
camera_set_vector_track 1815.094 {fromY} -1932.212 {fromZ} 14.9195 {toX} 1812.689 {toY} -1931.438 {toZ} 18.3523 {time} 3000 {ease} True
camera_persist_track True
camera_persist_pos True
TIMERA = 0
1@ += 1

:LOWRCON_1639
goto @LOWRCON_1718

:LOWRCON_1646
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWRCON_1711
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1711
camera_reset_new_scriptables 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
goto @LOWRCON_1767

:LOWRCON_1711
goto @LOWRCON_1718

:LOWRCON_1718
goto @LOWRCON_1732

:LOWRCON_1725
goto @LOWRCON_1767

:LOWRCON_1732
goto @LOWRCON_1746

:LOWRCON_1739
goto @LOWRCON_1767

:LOWRCON_1746
goto @LOWRCON_1760

:LOWRCON_1753
goto @LOWRCON_1767

:LOWRCON_1760
goto @LOWRCON_90

:LOWRCON_1767
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_1800
freeze_char_position 0@ {state} False
clear_look_at 0@
task_wander_standard 0@

:LOWRCON_1800
mark_char_as_no_longer_needed 0@
mark_car_as_no_longer_needed 4@
remove_animation "GANGS"
mark_model_as_no_longer_needed 50
2@ = 0
remove_decision_maker 3@
terminate_this_script 
terminate_this_script 

//-------------External script 23 (BURG_BRAINS)---------------

:BURGLAR
script_name 'BURGLAR'
1@ = 0
5@ = 0
4@ = 0
7@ = 0
8@ = 0
14@ = 0
15@ = 0
if 
  1@ == 1
goto_if_false @BURGLAR_132
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$gym_day_fitness = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty

:BURGLAR_132
2@ = generate_random_int_in_range 0 {max} 6
if 
  2@ == 2
goto_if_false @BURGLAR_168
3@ = generate_random_int_in_range 0 {max} 6

:BURGLAR_168
wait 0
if and
  does_char_exist 0@
  5@ == 0
goto_if_false @BURGLAR_5624
if and
  is_player_playing $player1
  not is_char_dead 0@
goto_if_false @BURGLAR_5610
if 
  15@ == 0
goto_if_false @BURGLAR_550
13@ = get_ped_type 0@
14@ = 1
if 
  not is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BURGLAR_527
if 
  not is_int_lvar_equal_to_constant 13@ == 9
goto_if_false @BURGLAR_504
if 
  not is_int_lvar_equal_to_constant 13@ == 10
goto_if_false @BURGLAR_481
if 
  not is_int_lvar_equal_to_constant 13@ == 11
goto_if_false @BURGLAR_458
if 
  not is_int_lvar_equal_to_constant 13@ == 12
goto_if_false @BURGLAR_435
if 
  not is_int_lvar_equal_to_constant 13@ == 13
goto_if_false @BURGLAR_412
if 
  not is_int_lvar_equal_to_constant 13@ == 14
goto_if_false @BURGLAR_389
14@ = 0
goto @BURGLAR_405

:BURGLAR_389
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseRifa {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_405
goto @BURGLAR_428

:BURGLAR_412
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseTriad {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_428
goto @BURGLAR_451

:BURGLAR_435
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseMafia {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_451
goto @BURGLAR_474

:BURGLAR_458
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseDaNang {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_474
goto @BURGLAR_497

:BURGLAR_481
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangLsv {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_497
goto @BURGLAR_520

:BURGLAR_504
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangVla {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_520
goto @BURGLAR_543

:BURGLAR_527
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangBallas {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_543
15@ = 1

:BURGLAR_550
if 
  not is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_2056
if 
  8@ <> 1
goto_if_false @BURGLAR_2049
if 
  14@ == 0
goto_if_false @BURGLAR_1686
if 
  is_char_male 0@
goto_if_false @BURGLAR_1221
remove_decision_maker $gym_day_fitness
$gym_day_fitness = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $gym_day_fitness <> -1
goto_if_false @BURGLAR_661
set_char_decision_maker 0@ {handleOrTemplate} $gym_day_fitness

:BURGLAR_661
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 70.0 {dislike} 70.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.ComplexTurnToFaceEntity {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
goto @BURGLAR_1679

:BURGLAR_1221
remove_decision_maker $burglary_male_decision
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_1262
set_char_decision_maker 0@ {handleOrTemplate} $burglary_male_decision

:BURGLAR_1262
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexReactToGunAimedAt {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 60.0 {dislike} 60.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True

:BURGLAR_1679
goto @BURGLAR_2042

:BURGLAR_1686
remove_decision_maker $burglary_female_decision
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_1727
set_char_decision_maker 0@ {handleOrTemplate} $burglary_female_decision

:BURGLAR_1727
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:BURGLAR_2042
8@ = 1

:BURGLAR_2049
goto @BURGLAR_3571

:BURGLAR_2056
if 
  8@ <> 2
goto_if_false @BURGLAR_3571
if 
  14@ == 0
goto_if_false @BURGLAR_3208
if 
  is_char_male 0@
goto_if_false @BURGLAR_2743
remove_decision_maker $gym_day_fitness
$gym_day_fitness = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $gym_day_fitness <> -1
goto_if_false @BURGLAR_2149
set_char_decision_maker 0@ {handleOrTemplate} $gym_day_fitness

:BURGLAR_2149
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 60.0 {dislike} 60.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.ComplexTurnToFaceEntity {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.ShotFired {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $gym_day_fitness {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
add_char_decision_maker_event_response $gym_day_fitness {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
goto @BURGLAR_3201

:BURGLAR_2743
remove_decision_maker $burglary_male_decision
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_2784
set_char_decision_maker 0@ {handleOrTemplate} $burglary_male_decision

:BURGLAR_2784
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexReactToGunAimedAt {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:BURGLAR_3201
goto @BURGLAR_3564

:BURGLAR_3208
remove_decision_maker $burglary_female_decision
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_3249
set_char_decision_maker 0@ {handleOrTemplate} $burglary_female_decision

:BURGLAR_3249
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:BURGLAR_3564
8@ = 2

:BURGLAR_3571
if or
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
  is_char_responding_to_event 0@ {event} Event.ShotFired
  is_char_responding_to_event 0@ {event} Event.Damage
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedDislike
  $g_VB_BIG_LIFT == 100
goto_if_false @BURGLAR_4393
if 
  $burglary_player_spotted == 0
goto_if_false @BURGLAR_4393
if and
  2@ == 4
  14@ == 0
goto_if_false @BURGLAR_3753
if 
  not has_model_loaded 330
goto_if_false @BURGLAR_3688
request_model 330
goto @BURGLAR_3746

:BURGLAR_3688
if 
  not is_char_dead 0@
goto_if_false @BURGLAR_3711
task_use_mobile_phone 0@ {start} True

:BURGLAR_3711
13@ = set_char_say_context_important 0@ {phrase} SpeechId.JackedGeneric {overrideSilence} True {ignoreMute} False {frontEnd} False
9@ = get_game_timer 
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3746
goto @BURGLAR_4393

:BURGLAR_3753
if 
  2@ == 2
goto_if_false @BURGLAR_4379
if 
  is_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
goto_if_false @BURGLAR_4305
if 
  3@ == 1
goto_if_false @BURGLAR_3925
if 
  not has_model_loaded 336
goto_if_false @BURGLAR_3835
request_model 336
goto @BURGLAR_3918

:BURGLAR_3835
give_weapon_to_char 0@ {weaponType} WeaponType.BaseballBat {ammo} 0
set_current_char_weapon 0@ {weaponType} WeaponType.BaseballBat
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_3904
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_3904
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3918
goto @BURGLAR_4298

:BURGLAR_3925
if 
  3@ == 3
goto_if_false @BURGLAR_4078
if 
  not has_model_loaded 346
goto_if_false @BURGLAR_3971
request_model 346
goto @BURGLAR_4071

:BURGLAR_3971
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 40
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4040
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4040
7@ = 1
$burglary_player_spotted = 1
13@ = set_char_say_context_important 0@ {phrase} SpeechId.PoliceOverboard {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4071
goto @BURGLAR_4298

:BURGLAR_4078
if 
  3@ == 5
goto_if_false @BURGLAR_4231
if 
  not has_model_loaded 350
goto_if_false @BURGLAR_4124
request_model 350
goto @BURGLAR_4224

:BURGLAR_4124
give_weapon_to_char 0@ {weaponType} WeaponType.Sawnoff {ammo} 40
set_current_char_weapon 0@ {weaponType} WeaponType.Sawnoff
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4193
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4193
7@ = 1
$burglary_player_spotted = 1
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Shocked {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4224
goto @BURGLAR_4298

:BURGLAR_4231
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Fight {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4284
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4284
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4298
goto @BURGLAR_4372

:BURGLAR_4305
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Fight {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4358
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4358
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4372
goto @BURGLAR_4393

:BURGLAR_4379
$burglary_player_spotted = 1
7@ = 1

:BURGLAR_4393
if or
  7@ == 1
  7@ == 2
goto_if_false @BURGLAR_5603
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5196
if and
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 0@ {event} Event.ShotFired
  not is_char_responding_to_event 0@ {event} Event.Damage
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedDislike
goto_if_false @BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5092 {caseNum1} 0 {caseLabel1} @BURGLAR_4549 {caseNum2} 1 {caseLabel2} @BURGLAR_4608 {caseNum3} 2 {caseLabel3} @BURGLAR_4709 {caseNum4} 3 {caseLabel4} @BURGLAR_4769 {caseNum5} 4 {caseLabel5} @BURGLAR_4828 {caseNum6} -1 {caseLabel6} @BURGLAR_5196 {caseNum7} -1 {caseLabel7} @BURGLAR_5196

:BURGLAR_4549
12@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4601
task_duck 0@ {time} -2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Duck {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4601
goto @BURGLAR_5196

:BURGLAR_4608
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4702
task_hands_up 0@ {time} -2
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_4686
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_4702

:BURGLAR_4686
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4702
goto @BURGLAR_5196

:BURGLAR_4709
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4762
task_kill_char_on_foot 0@ {target} $scplayer
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4762
goto @BURGLAR_5196

:BURGLAR_4769
12@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4821
task_stand_still 0@ {time} -2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunCool {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4821
goto @BURGLAR_5196

:BURGLAR_4828
if 
  $flag_player_on_burglary_mission == 1
goto_if_false @BURGLAR_5085
if 
  7@ == 1
goto_if_false @BURGLAR_4991
10@ = get_game_timer 
set_lvar_int_to_lvar_int 11@ = 10@
sub_int_lvar_from_int_lvar 11@ -= 9@
if 
  11@ > 8000
goto_if_false @BURGLAR_4984
if 
  not is_char_dead 0@
goto_if_false @BURGLAR_4984
12@ = get_script_task_status 0@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4956
task_use_mobile_phone 0@ {start} False

:BURGLAR_4956
mark_model_as_no_longer_needed 330
7@ = 2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Chased {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4984
goto @BURGLAR_5085

:BURGLAR_4991
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5085
task_hands_up 0@ {time} -2
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5069
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5085

:BURGLAR_5069
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5085
goto @BURGLAR_5196

:BURGLAR_5092
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5134
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5189

:BURGLAR_5134
if 
  is_char_male 0@
goto_if_false @BURGLAR_5173
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5189

:BURGLAR_5173
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5189
goto @BURGLAR_5196

:BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5499 {caseNum1} 0 {caseLabel1} @BURGLAR_5259 {caseNum2} 1 {caseLabel2} @BURGLAR_5282 {caseNum3} 2 {caseLabel3} @BURGLAR_5347 {caseNum4} 3 {caseLabel4} @BURGLAR_5370 {caseNum5} 4 {caseLabel5} @BURGLAR_5393 {caseNum6} -1 {caseLabel6} @BURGLAR_5603 {caseNum7} -1 {caseLabel7} @BURGLAR_5603

:BURGLAR_5259
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Duck {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5282
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5324
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5340

:BURGLAR_5324
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5340
goto @BURGLAR_5603

:BURGLAR_5347
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5370
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunCool {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5393
if 
  7@ == 1
goto_if_false @BURGLAR_5434
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Chased {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5492

:BURGLAR_5434
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5476
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5492

:BURGLAR_5476
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5492
goto @BURGLAR_5603

:BURGLAR_5499
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5541
13@ = set_char_say_context_important 0@ {phrase} SpeechId.MoveIn {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5596

:BURGLAR_5541
if 
  is_char_male 0@
goto_if_false @BURGLAR_5580
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5596

:BURGLAR_5580
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5596
goto @BURGLAR_5603

:BURGLAR_5603
goto @BURGLAR_5617

:BURGLAR_5610
5@ = 1

:BURGLAR_5617
goto @BURGLAR_5666

:BURGLAR_5624
remove_decision_maker $gym_day_fitness
remove_decision_maker $burglary_male_decision
remove_decision_maker $burglary_female_decision
mark_char_as_no_longer_needed 0@
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 350
terminate_this_script 

:BURGLAR_5666
goto @BURGLAR_168
terminate_this_script 

//-------------External script 24 (GF_MEETING)---------------

:GFMEET
script_name 'GFMEET'
5@ = 0
6@ = 0
7@ = 0
if 
  7@ > 0
goto_if_false @GFMEET_106
15@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
17@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
18@ = add_blip_for_char 15@

:GFMEET_106
gosub @GFMEET_3912
gosub @GFMEET_2883

:GFMEET_120
wait 0
if 
  is_player_playing $player1
goto_if_false @GFMEET_325
if and
  not is_char_dead 15@
  locate_char_any_means_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @GFMEET_311
if 
  has_char_been_damaged_by_char 15@ {handle} $scplayer
goto_if_false @GFMEET_227
set_local_var_bit_const 7@ {bitIndex} 2
5@ = 6
6@ = 0

:GFMEET_227
if 
  8@ == 1
goto_if_false @GFMEET_290
if or
  is_char_dead 17@
  has_char_been_damaged_by_char 17@ {handle} $scplayer
goto_if_false @GFMEET_290
set_local_var_bit_const 7@ {bitIndex} 2
5@ = 6
6@ = 0

:GFMEET_290
gosub @GFMEET_339
gosub @GFMEET_4873
goto @GFMEET_318

:GFMEET_311
gosub @GFMEET_5627

:GFMEET_318
goto @GFMEET_332

:GFMEET_325
gosub @GFMEET_5627

:GFMEET_332
goto @GFMEET_120

:GFMEET_339
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_486 {caseNum1} 1 {caseLabel1} @GFMEET_402 {caseNum2} 2 {caseLabel2} @GFMEET_416 {caseNum3} 3 {caseLabel3} @GFMEET_430 {caseNum4} 4 {caseLabel4} @GFMEET_444 {caseNum5} 5 {caseLabel5} @GFMEET_458 {caseNum6} 6 {caseLabel6} @GFMEET_472 {caseNum7} -1 {caseLabel7} @GFMEET_486

:GFMEET_402
gosub @GFMEET_488
goto @GFMEET_486

:GFMEET_416
gosub @GFMEET_822
goto @GFMEET_486

:GFMEET_430
gosub @GFMEET_1353
goto @GFMEET_486

:GFMEET_444
gosub @GFMEET_1710
goto @GFMEET_486

:GFMEET_458
gosub @GFMEET_1989
goto @GFMEET_486

:GFMEET_472
gosub @GFMEET_2399
goto @GFMEET_486

:GFMEET_486
return 

:GFMEET_488
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_820 {caseNum1} 0 {caseLabel1} @GFMEET_551 {caseNum2} -1 {caseLabel2} @GFMEET_820 {caseNum3} -1 {caseLabel3} @GFMEET_820 {caseNum4} -1 {caseLabel4} @GFMEET_820 {caseNum5} -1 {caseLabel5} @GFMEET_820 {caseNum6} -1 {caseLabel6} @GFMEET_820 {caseNum7} -1 {caseLabel7} @GFMEET_820

:GFMEET_551
if 
  is_player_in_position_for_conversation 15@
goto_if_false @GFMEET_813
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 0@
goto_if_false @GFMEET_742
if 
  locate_char_on_foot_char_2d $scplayer {target} 15@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GFMEET_742
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_703
enable_conversation 15@ {state} True
if 
  is_conversation_at_node 15@ {speech} 19@s
goto_if_false @GFMEET_689
5@ = 2
6@ = 0
goto @GFMEET_696

:GFMEET_689
enable_conversation 15@ {state} False

:GFMEET_696
goto @GFMEET_742

:GFMEET_703
if 
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_742
5@ = 3
6@ = 0
enable_conversation 15@ {state} False

:GFMEET_742
13@ = get_script_task_status 15@ {taskId} 1655
14@ = get_script_task_status 17@ {taskId} 1655
if and
  is_int_lvar_equal_to_constant 13@ == 7
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @GFMEET_813
task_chat_with_char 15@ {other} 17@ {leadSpeaker} True {_p4} 1
task_chat_with_char 17@ {other} 15@ {leadSpeaker} False {_p4} 1

:GFMEET_813
goto @GFMEET_820

:GFMEET_820
return 

:GFMEET_822
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1351 {caseNum1} 0 {caseLabel1} @GFMEET_885 {caseNum2} 1 {caseLabel2} @GFMEET_973 {caseNum3} 2 {caseLabel3} @GFMEET_1073 {caseNum4} 3 {caseLabel4} @GFMEET_1304 {caseNum5} -1 {caseLabel5} @GFMEET_1351 {caseNum6} -1 {caseLabel6} @GFMEET_1351 {caseNum7} -1 {caseLabel7} @GFMEET_1351

:GFMEET_885
TIMERB = 0
task_turn_char_to_face_char 15@ {target} $scplayer
if and
  8@ == 1
  not is_char_dead 17@
goto_if_false @GFMEET_959
13@ = get_script_task_status 17@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_959
task_stand_still 17@ {time} -2

:GFMEET_959
6@ += 1
goto @GFMEET_1351

:GFMEET_973
13@ = get_script_task_status 15@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1066
task_look_at_char 15@ {target} $scplayer {time} -1
13@ = get_script_task_status 15@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1048
task_stand_still 15@ {time} -2

:GFMEET_1048
print_help_forever 'TALK_1'
6@ += 1

:GFMEET_1066
goto @GFMEET_1351

:GFMEET_1073
if 
  is_conversation_at_node 15@ {speech} 23@s
goto_if_false @GFMEET_1175
clear_help 
if 
  TIMERB > 9000
goto_if_false @GFMEET_1175
$iGFLikesPlayer(0@,6i) = 0
clear_global_var_bit_lvar $iActiveGF {var_bitIndex} 0@
if 
  does_blip_exist 18@
goto_if_false @GFMEET_1153
remove_blip 18@

:GFMEET_1153
clear_help 
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1175
if 
  is_conversation_at_node 15@ {speech} 21@s
goto_if_false @GFMEET_1251
clear_help 
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 0@
goto_if_false @GFMEET_1223
set_global_var_bit_lvar $iActiveGF {var_bitIndex} 0@

:GFMEET_1223
if 
  does_blip_exist 18@
goto_if_false @GFMEET_1244
remove_blip 18@

:GFMEET_1244
6@ += 1

:GFMEET_1251
if and
  not is_player_in_position_for_conversation 15@
  TIMERB > 9000
goto_if_false @GFMEET_1297
clear_help 
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1297
goto @GFMEET_1351

:GFMEET_1304
if 
  not is_message_being_displayed 
goto_if_false @GFMEET_1344
gosub @GFMEET_3773
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1344
goto @GFMEET_1351

:GFMEET_1351
return 

:GFMEET_1353
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1708 {caseNum1} 0 {caseLabel1} @GFMEET_1416 {caseNum2} 1 {caseLabel2} @GFMEET_1504 {caseNum3} 2 {caseLabel3} @GFMEET_1593 {caseNum4} 3 {caseLabel4} @GFMEET_1655 {caseNum5} -1 {caseLabel5} @GFMEET_1708 {caseNum6} -1 {caseLabel6} @GFMEET_1708 {caseNum7} -1 {caseLabel7} @GFMEET_1708

:GFMEET_1416
TIMERB = 0
task_turn_char_to_face_char 15@ {target} $scplayer
if and
  8@ == 1
  not is_char_dead 17@
goto_if_false @GFMEET_1490
13@ = get_script_task_status 17@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1490
task_stand_still 17@ {time} -2

:GFMEET_1490
6@ += 1
goto @GFMEET_1708

:GFMEET_1504
13@ = get_script_task_status 15@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1586
task_look_at_char 15@ {target} $scplayer {time} -1
13@ = get_script_task_status 15@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1579
task_stand_still 15@ {time} -2

:GFMEET_1579
6@ += 1

:GFMEET_1586
goto @GFMEET_1708

:GFMEET_1593
if 
  is_local_var_bit_set_const 7@ {bitIndex} 3
goto_if_false @GFMEET_1633
set_var_int_to_constant $iGFSayContext = 312
clear_local_var_bit_const 7@ {bitIndex} 3
goto @GFMEET_1641

:GFMEET_1633
set_var_int_to_constant $iGFSayContext = 311

:GFMEET_1641
6@ += 1
goto @GFMEET_1708

:GFMEET_1655
if 
  TIMERB > 6000
goto_if_false @GFMEET_1701
clear_look_at 15@
set_local_var_bit_const 7@ {bitIndex} 1
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1701
goto @GFMEET_1708

:GFMEET_1708
return 

:GFMEET_1710
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1987 {caseNum1} 0 {caseLabel1} @GFMEET_1773 {caseNum2} -1 {caseLabel2} @GFMEET_1987 {caseNum3} -1 {caseLabel3} @GFMEET_1987 {caseNum4} -1 {caseLabel4} @GFMEET_1987 {caseNum5} -1 {caseLabel5} @GFMEET_1987 {caseNum6} -1 {caseLabel6} @GFMEET_1987 {caseNum7} -1 {caseLabel7} @GFMEET_1987

:GFMEET_1773
if 
  locate_char_any_means_char_2d $scplayer {target} 15@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @GFMEET_1929
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_1890
enable_conversation 15@ {state} True
if 
  is_conversation_at_node 15@ {speech} 19@s
goto_if_false @GFMEET_1876
5@ = 2
6@ = 0
goto @GFMEET_1883

:GFMEET_1876
enable_conversation 15@ {state} False

:GFMEET_1883
goto @GFMEET_1929

:GFMEET_1890
if 
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_1929
5@ = 3
6@ = 0
enable_conversation 15@ {state} False

:GFMEET_1929
13@ = get_script_task_status 15@ {taskId} 1640
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1980
task_shoot_at_coord 15@ {x} 264.0 {y} -155.0 {z} 5.0 {time} -1

:GFMEET_1980
goto @GFMEET_1987

:GFMEET_1987
return 

:GFMEET_1989
switch_start 6@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2397 {caseNum1} 0 {caseLabel1} @GFMEET_2052 {caseNum2} 1 {caseLabel2} @GFMEET_2133 {caseNum3} 2 {caseLabel3} @GFMEET_2323 {caseNum4} -1 {caseLabel4} @GFMEET_2397 {caseNum5} -1 {caseLabel5} @GFMEET_2397 {caseNum6} -1 {caseLabel6} @GFMEET_2397 {caseNum7} -1 {caseLabel7} @GFMEET_2397

:GFMEET_2052
13@ = get_script_task_status 15@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2126
task_play_anim 15@ {animationName} "TAI_CHI_IN" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
6@ += 1

:GFMEET_2126
goto @GFMEET_2397

:GFMEET_2133
13@ = get_script_task_status 15@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2205
task_play_anim 15@ {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1215752191

:GFMEET_2205
if and
  is_player_in_position_for_conversation 15@
  locate_char_any_means_char_2d $scplayer {target} 15@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  is_conversation_at_node 15@ {speech} 19@s
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_2309
task_play_anim 15@ {animationName} "TAI_CHI_OUT" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
6@ += 1
goto @GFMEET_2316

:GFMEET_2309
enable_conversation 15@ {state} False

:GFMEET_2316
goto @GFMEET_2397

:GFMEET_2323
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_2376
enable_conversation 15@ {state} True
5@ = 2
6@ = 0
goto @GFMEET_2390

:GFMEET_2376
5@ = 3
6@ = 0

:GFMEET_2390
goto @GFMEET_2397

:GFMEET_2397
return 

:GFMEET_2399
switch_start 6@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2881 {caseNum1} 0 {caseLabel1} @GFMEET_2462 {caseNum2} 1 {caseLabel2} @GFMEET_2769 {caseNum3} -1 {caseLabel3} @GFMEET_2881 {caseNum4} -1 {caseLabel4} @GFMEET_2881 {caseNum5} -1 {caseLabel5} @GFMEET_2881 {caseNum6} -1 {caseLabel6} @GFMEET_2881 {caseNum7} -1 {caseLabel7} @GFMEET_2881

:GFMEET_2462
if 
  is_local_var_bit_set_const 7@ {bitIndex} 2
goto_if_false @GFMEET_2762
$iGFLikesPlayer(0@,6i) = 0
if 
  0@ == 1
goto_if_false @GFMEET_2526
set_char_decision_maker 15@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
goto @GFMEET_2536

:GFMEET_2526
set_char_decision_maker 15@ {handleOrTemplate} DecisionMakerCharTemplate.RandomTough

:GFMEET_2536
if 
  not is_char_dead 17@
goto_if_false @GFMEET_2562
set_char_decision_maker 17@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors

:GFMEET_2562
if 
  has_char_got_weapon 15@ {weaponType} WeaponType.Pistol
goto_if_false @GFMEET_2631
set_current_char_weapon 15@ {weaponType} WeaponType.Pistol
13@ = get_script_task_status 15@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2624
task_kill_char_on_foot 15@ {target} $scplayer

:GFMEET_2624
goto @GFMEET_2667

:GFMEET_2631
13@ = get_script_task_status 15@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2667
task_duck 15@ {time} -2

:GFMEET_2667
if 
  does_blip_exist 18@
goto_if_false @GFMEET_2688
remove_blip 18@

:GFMEET_2688
13@ = get_current_day_of_week 
13@ += 1
if 
  13@ > 7
goto_if_false @GFMEET_2725
13@ = 1

:GFMEET_2725
13@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours(0@,6i) {var_bitIndex} 13@
set_global_var_bit_const $iGFDiaryOfBusyHours(0@,6i) {bitIndex} 31
6@ += 1

:GFMEET_2762
goto @GFMEET_2881

:GFMEET_2769
if 
  has_char_got_weapon 15@ {weaponType} WeaponType.Pistol
goto_if_false @GFMEET_2838
set_current_char_weapon 15@ {weaponType} WeaponType.Pistol
13@ = get_script_task_status 15@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2831
task_kill_char_on_foot 15@ {target} $scplayer

:GFMEET_2831
goto @GFMEET_2874

:GFMEET_2838
13@ = get_script_task_status 15@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2874
task_duck 15@ {time} -2

:GFMEET_2874
goto @GFMEET_2881

:GFMEET_2881
return 

:GFMEET_2883
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3401 {caseNum1} 1 {caseLabel1} @GFMEET_2946 {caseNum2} 2 {caseLabel2} @GFMEET_3042 {caseNum3} 3 {caseLabel3} @GFMEET_3170 {caseNum4} 4 {caseLabel4} @GFMEET_3298 {caseNum5} -1 {caseLabel5} @GFMEET_3401 {caseNum6} -1 {caseLabel6} @GFMEET_3401 {caseNum7} -1 {caseLabel7} @GFMEET_3401

:GFMEET_2946
if 
  not has_model_loaded 192
goto_if_false @GFMEET_2978
request_model 192
wait 0
goto @GFMEET_2946

:GFMEET_2978
set_lvar_int_to_constant 13@ = 192
set_lvar_text_label 19@s = 'GF_1A'
set_lvar_text_label 21@s = 'GF_1C'
set_lvar_text_label 23@s = 'GF_1B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3042
if 
  not has_model_loaded 191
goto_if_false @GFMEET_3074
request_model 191
wait 0
goto @GFMEET_3042

:GFMEET_3074
if 
  not has_model_loaded 346
goto_if_false @GFMEET_3106
request_model 346
wait 0
goto @GFMEET_3074

:GFMEET_3106
set_lvar_int_to_constant 13@ = 191
set_lvar_text_label 19@s = 'GF_2A'
set_lvar_text_label 21@s = 'GF_2C'
set_lvar_text_label 23@s = 'GF_2B'
8@ = 4
goto @GFMEET_3401

:GFMEET_3170
if 
  not has_model_loaded 190
goto_if_false @GFMEET_3202
request_model 190
wait 0
goto @GFMEET_3170

:GFMEET_3202
if 
  not has_model_loaded 346
goto_if_false @GFMEET_3234
request_model 346
wait 0
goto @GFMEET_3202

:GFMEET_3234
set_lvar_int_to_constant 13@ = 190
set_lvar_text_label 19@s = 'GF_3A'
set_lvar_text_label 21@s = 'GF_3C'
set_lvar_text_label 23@s = 'GF_3B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3298
if 
  not has_model_loaded 193
goto_if_false @GFMEET_3330
request_model 193
wait 0
goto @GFMEET_3298

:GFMEET_3330
set_lvar_int_to_constant 13@ = 193
set_lvar_text_label 19@s = 'GF_4A'
set_lvar_text_label 21@s = 'GF_4C'
set_lvar_text_label 23@s = 'GF_4B'
8@ = 5
6@ = 0
goto @GFMEET_3401

:GFMEET_3401
15@ = create_char PedType.CivFemale {modelId} 13@ {x} 1@ {y} 2@ {z} 3@
set_char_heading 15@ {heading} 4@
if 
  0@ == 2
goto_if_false @GFMEET_3465
give_weapon_to_char 15@ {weaponType} WeaponType.Pistol {ammo} 999999999
set_char_accuracy 15@ {accuracy} 100

:GFMEET_3465
if 
  0@ == 3
goto_if_false @GFMEET_3509
give_weapon_to_char 15@ {weaponType} WeaponType.Pistol {ammo} 999999999
set_current_char_weapon 15@ {weaponType} WeaponType.Unarmed
set_char_accuracy 15@ {accuracy} 100

:GFMEET_3509
set_char_stay_in_same_place 15@ {state} True
set_char_suffers_critical_hits 15@ {state} False
set_char_never_targetted 15@ {state} True
set_char_proofs 15@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 15@ {health} 200
task_stand_still 15@ {time} -1
set_char_keep_task 15@ {state} True
start_setting_up_conversation 15@
set_up_conversation_node_with_speech 19@s {positiveAnswer} 21@s {negativeAnswer} 23@s {questionPhrase} SpeechId.GfriendHitByPlayerWarning {positiveAnswerPhrase} SpeechId.AcceptSex {negativeAnswerPhrase} SpeechId.DeclineSex
set_up_conversation_end_node_with_speech 21@s {phrase} SpeechId.GfriendDumpPlayerPhone
set_up_conversation_end_node_with_speech 23@s {phrase} SpeechId.GfriendDumpPlayerLive
finish_setting_up_conversation 
enable_conversation 15@ {state} False
18@ = add_blip_for_char 15@
set_blip_as_friendly 18@ {state} True
change_blip_display 18@ {display} BlipDisplay.MarkerOnly
if 
  8@ == 1
goto_if_false @GFMEET_3756
9@, 10@, 11@ = get_offset_from_char_in_world_coords 15@ {xOffset} 0.5 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 9@ {y} 10@ {z} 11@
17@ = create_random_char 9@ {y} 10@ {z} 11@
4@ += 180.0
set_char_heading 17@ {heading} 4@
task_chat_with_char 15@ {other} 17@ {leadSpeaker} True {_p4} 1
task_chat_with_char 17@ {other} 15@ {leadSpeaker} False {_p4} 1

:GFMEET_3756
set_lvar_int_to_lvar_int 5@ = 8@
6@ = 0
return 

:GFMEET_3773
clear_help 
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3910 {caseNum1} 1 {caseLabel1} @GFMEET_3838 {caseNum2} 2 {caseLabel2} @GFMEET_3856 {caseNum3} 3 {caseLabel3} @GFMEET_3874 {caseNum4} 4 {caseLabel4} @GFMEET_3892 {caseNum5} -1 {caseLabel5} @GFMEET_3910 {caseNum6} -1 {caseLabel6} @GFMEET_3910 {caseNum7} -1 {caseLabel7} @GFMEET_3910

:GFMEET_3838
print_help 'GF_H001'
goto @GFMEET_3910

:GFMEET_3856
print_help 'GF_H002'
goto @GFMEET_3910

:GFMEET_3874
print_help 'GF_H003'
goto @GFMEET_3910

:GFMEET_3892
print_help 'GF_H004'
goto @GFMEET_3910

:GFMEET_3910
return 

:GFMEET_3912
request_animation "PARK"

:GFMEET_3920
wait 0
if 
  has_animation_loaded "PARK"
goto_if_false @GFMEET_3952
return 
goto @GFMEET_3967

:GFMEET_3952
request_animation "PARK"
goto @GFMEET_3920

:GFMEET_3967
13@ = 0
13@ = get_int_stat StatId.SexAppeal
13@ /= 10
14@ = get_int_stat StatId.Fat
14@ /= 10
14@ /= 2
if 
  14@ >= 25
goto_if_false @GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 2
goto_if_false @GFMEET_4064
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4086

:GFMEET_4064
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 11

:GFMEET_4086
goto @GFMEET_4199

:GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 2
goto_if_false @GFMEET_4144
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 10
goto @GFMEET_4199

:GFMEET_4144
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4199
if 
  14@ == 0
goto_if_false @GFMEET_4191
14@ = 5

:GFMEET_4191
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4199
14@ = get_int_stat StatId.BodyMuscle
14@ /= 10
14@ /= 2
if 
  14@ >= 20
goto_if_false @GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 1
goto_if_false @GFMEET_4275
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4319

:GFMEET_4275
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4319
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 12

:GFMEET_4319
goto @GFMEET_4432

:GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 1
goto_if_false @GFMEET_4377
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 11
goto @GFMEET_4432

:GFMEET_4377
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4432
if 
  14@ == 0
goto_if_false @GFMEET_4424
14@ = 5

:GFMEET_4424
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4432
if 
  is_int_lvar_greater_or_equal_to_int_var 13@ >= $iGFDesiredSexAppeal(0@,6i)
goto_if_false @GFMEET_4487
$iGFLikesPlayer(0@,6i) = 15
gosub @GFMEET_4496
13@ = 1
goto @GFMEET_4494

:GFMEET_4487
13@ = -1

:GFMEET_4494
return 

:GFMEET_4496
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_4871 {caseNum1} 0 {caseLabel1} @GFMEET_4559 {caseNum2} 1 {caseLabel2} @GFMEET_4611 {caseNum3} 2 {caseLabel3} @GFMEET_4663 {caseNum4} 3 {caseLabel4} @GFMEET_4715 {caseNum5} 4 {caseLabel5} @GFMEET_4767 {caseNum6} 5 {caseLabel6} @GFMEET_4819 {caseNum7} -1 {caseLabel7} @GFMEET_4871

:GFMEET_4559
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4592
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4592
set_int_stat StatId.GirlfriendDenise {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4611
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4644
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4644
set_int_stat StatId.GirlfriendMichelle {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4663
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4696
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4696
set_int_stat StatId.GirlfriendHelena {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4715
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4748
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4748
set_int_stat StatId.GirlfriendBarbara {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4767
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4800
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4800
set_int_stat StatId.GirlfriendKatie {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4819
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4852
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4852
set_int_stat StatId.GirlfriendMillie {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4871
return 

:GFMEET_4873
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5405 {caseNum1} 0 {caseLabel1} @GFMEET_4936 {caseNum2} 1 {caseLabel2} @GFMEET_4968 {caseNum3} 2 {caseLabel3} @GFMEET_4980 {caseNum4} 3 {caseLabel4} @GFMEET_4994 {caseNum5} 4 {caseLabel5} @GFMEET_5263 {caseNum6} 5 {caseLabel6} @GFMEET_5363 {caseNum7} 6 {caseLabel7} @GFMEET_5172

:GFMEET_4936
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_4961
$iGFSpeechStatus = 3

:GFMEET_4961
goto @GFMEET_5405

:GFMEET_4968
enable_char_speech 15@
goto @GFMEET_5405

:GFMEET_4980
disable_char_speech 15@ {stopNow} False
goto @GFMEET_5405

:GFMEET_4994
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5165
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5105
$iGFContextVariation = set_char_say_context_important 15@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFMEET_5407
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5091
$iGFSpeechStatus = 6
goto @GFMEET_5098

:GFMEET_5091
$iGFSpeechStatus = 0

:GFMEET_5098
goto @GFMEET_5165

:GFMEET_5105
if 
  $iGFSayContext == -2
goto_if_false @GFMEET_5144
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFMEET_5165

:GFMEET_5144
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5165
goto @GFMEET_5405

:GFMEET_5172
if and
  not is_char_talking $scplayer
  not is_char_talking 15@
goto_if_false @GFMEET_5256
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5249
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFMEET_5256

:GFMEET_5249
$iGFSpeechStatus = 0

:GFMEET_5256
goto @GFMEET_5405

:GFMEET_5263
disable_char_speech 15@ {stopNow} False
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5356
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5349
$iGFContextVariation = set_char_say_context_important 15@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFMEET_5407
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFMEET_5356

:GFMEET_5349
$iGFSpeechStatus = 0

:GFMEET_5356
goto @GFMEET_5405

:GFMEET_5363
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5398
enable_char_speech 15@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5398
goto @GFMEET_5405

:GFMEET_5405
return 

:GFMEET_5407
switch_start $iGFSayContext {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5625 {caseNum1} 311 {caseLabel1} @GFMEET_5602 {caseNum2} 312 {caseLabel2} @GFMEET_5472 {caseNum3} -1 {caseLabel3} @GFMEET_5625 {caseNum4} -1 {caseLabel4} @GFMEET_5625 {caseNum5} -1 {caseLabel5} @GFMEET_5625 {caseNum6} -1 {caseLabel6} @GFMEET_5625 {caseNum7} -1 {caseLabel7} @GFMEET_5625

:GFMEET_5472
if 
  is_local_var_bit_set_const 7@ {bitIndex} 10
goto_if_false @GFMEET_5513
print_now 'GF_0074' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5513
if 
  is_local_var_bit_set_const 7@ {bitIndex} 11
goto_if_false @GFMEET_5554
print_now 'GF_0053' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5554
if 
  is_local_var_bit_set_const 7@ {bitIndex} 12
goto_if_false @GFMEET_5595
print_now 'GF_0075' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5595
goto @GFMEET_5625

:GFMEET_5602
print_now 'GF_0052' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5625
return 

:GFMEET_5627
mark_char_as_no_longer_needed 15@
mark_char_as_no_longer_needed 17@
remove_animation "PARK"
clear_help 
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5782 {caseNum1} 0 {caseLabel1} @GFMEET_5710 {caseNum2} 1 {caseLabel2} @GFMEET_5722 {caseNum3} 2 {caseLabel3} @GFMEET_5734 {caseNum4} 3 {caseLabel4} @GFMEET_5746 {caseNum5} 4 {caseLabel5} @GFMEET_5758 {caseNum6} 5 {caseLabel6} @GFMEET_5770 {caseNum7} -1 {caseLabel7} @GFMEET_5782

:GFMEET_5710
mark_model_as_no_longer_needed 195
goto @GFMEET_5782

:GFMEET_5722
mark_model_as_no_longer_needed 192
goto @GFMEET_5782

:GFMEET_5734
mark_model_as_no_longer_needed 191
goto @GFMEET_5782

:GFMEET_5746
mark_model_as_no_longer_needed 190
goto @GFMEET_5782

:GFMEET_5758
mark_model_as_no_longer_needed 193
goto @GFMEET_5782

:GFMEET_5770
mark_model_as_no_longer_needed 194
goto @GFMEET_5782

:GFMEET_5782
clear_conversation_for_char 15@
if 
  does_blip_exist 18@
goto_if_false @GFMEET_5808
remove_blip 18@

:GFMEET_5808
clear_global_var_bit_const $iDateReport {bitIndex} 20
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "GF_LIKES_PLAYER" {number} $iGFLikesPlayer(0@,6i)
write_debug_with_int "DESIRED_SEX_APPEAL" {number} $iGFDesiredSexAppeal(0@,6i)
write_debug_with_int "ISUBSTATESTATUS" {number} 6@
switch_start 5@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFMEET_6106 {caseNum1} 0 {caseLabel1} @GFMEET_6011 {caseNum2} 1 {caseLabel2} @GFMEET_6030 {caseNum3} 2 {caseLabel3} @GFMEET_6049 {caseNum4} 3 {caseLabel4} @GFMEET_6068 {caseNum5} 4 {caseLabel5} @GFMEET_6087 {caseNum6} -1 {caseLabel6} @GFMEET_6135 {caseNum7} -1 {caseLabel7} @GFMEET_6135

:GFMEET_6011
write_debug "STATE0__"
goto @GFMEET_6135

:GFMEET_6030
write_debug "STATE1__"
goto @GFMEET_6135

:GFMEET_6049
write_debug "STATE2__"
goto @GFMEET_6135

:GFMEET_6068
write_debug "STATE3__"
goto @GFMEET_6135

:GFMEET_6087
write_debug "STATE4__"
goto @GFMEET_6135

:GFMEET_6106
write_debug "UNTRAPPED_STATE___"
goto @GFMEET_6135

:GFMEET_6135
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 25 (GF_DATE)---------------

:GFDATE
script_name 'GFDATE'
1@ = 0
2@ = 0
3@ = 0
24@ = 0
30@ = -1
29@ = -1
$9466 = 30
$iFun = 30.0
if 
  3@ > 0
goto_if_false @GFDATE_120
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
28@ = store_car_char_is_in_no_save 0@

:GFDATE_120
gosub @GFDATE_23713
set_local_var_bit_const 3@ {bitIndex} 1

:GFDATE_134
wait 0
if and
  is_player_playing $player1
  $onmission == 0
goto_if_false @GFDATE_260
if 
  not is_char_dead 0@
goto_if_false @GFDATE_244
gosub @GFDATE_26389
gosub @GFDATE_23883
gosub @GFDATE_283
gosub @GFDATE_3666
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_230
gosub @GFDATE_26840

:GFDATE_230
gosub @GFDATE_30085
goto @GFDATE_253

:GFDATE_244
clear_help 
gosub @GFDATE_32147

:GFDATE_253
goto @GFDATE_276

:GFDATE_260
clear_help 
set_local_var_bit_const 3@ {bitIndex} 9
gosub @GFDATE_32147

:GFDATE_276
goto @GFDATE_134

:GFDATE_283
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 1
goto_if_false @GFDATE_3664
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 26
goto_if_false @GFDATE_342
set_global_var_bit_const $iDateReport {bitIndex} 2
1@ = 3
2@ = 0
return 

:GFDATE_342
gosub @GFDATE_19692
if 
  24@ > -1
goto_if_false @GFDATE_462
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_414
gosub @GFDATE_32037
do_fade 0 {direction} Fade.Out
1@ = 2
2@ = 0
return 

:GFDATE_414
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_455
gosub @GFDATE_32037
1@ = 10
2@ = 0
return 

:GFDATE_455
goto @GFDATE_503

:GFDATE_462
if 
  24@ == -2
goto_if_false @GFDATE_503
gosub @GFDATE_32037
1@ = 3
2@ = 0
return 

:GFDATE_503
switch_start $iTransitionStages {numCases} 17 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3664 {caseNum1} 0 {caseLabel1} @GFDATE_696 {caseNum2} 1 {caseLabel2} @GFDATE_887 {caseNum3} 2 {caseLabel3} @GFDATE_1067 {caseNum4} 3 {caseLabel4} @GFDATE_1353 {caseNum5} 4 {caseLabel5} @GFDATE_1457 {caseNum6} 5 {caseLabel6} @GFDATE_1563 {caseNum7} 6 {caseLabel7} @GFDATE_1676
switch_continued 7 {caseLabel1} @GFDATE_1789 {caseNum2} 8 {caseLabel2} @GFDATE_1847 {caseNum3} 9 {caseLabel3} @GFDATE_1964 {caseNum4} 10 {caseLabel4} @GFDATE_2047 {caseNum5} 11 {caseLabel5} @GFDATE_2351 {caseNum6} 12 {caseLabel6} @GFDATE_2561 {caseNum7} 13 {caseLabel7} @GFDATE_2698 {caseNum8} 14 {caseLabel8} @GFDATE_3141 {caseNum9} 15 {caseLabel9} @GFDATE_3315
switch_continued 16 {caseLabel1} @GFDATE_3522 {caseNum2} -1 {caseLabel2} @GFDATE_3664 {caseNum3} -1 {caseLabel3} @GFDATE_3664 {caseNum4} -1 {caseLabel4} @GFDATE_3664 {caseNum5} -1 {caseLabel5} @GFDATE_3664 {caseNum6} -1 {caseLabel6} @GFDATE_3664 {caseNum7} -1 {caseLabel7} @GFDATE_3664 {caseNum8} -1 {caseLabel8} @GFDATE_3664 {caseNum9} -1 {caseLabel9} @GFDATE_3664

:GFDATE_696
gosub @GFDATE_23333
if 
  25@ > 0
goto_if_false @GFDATE_873
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @GFDATE_866
if and
  1@ == 1
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 26
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_859
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 3
goto_if_false @GFDATE_859
set_local_var_bit_const 3@ {bitIndex} 3
if 
  25@ == 2
goto_if_false @GFDATE_843
1@ = 11
2@ = 0
return 
goto @GFDATE_859

:GFDATE_843
1@ = 6
2@ = 0
return 

:GFDATE_859
goto @GFDATE_873

:GFDATE_866
clear_local_var_bit_const 3@ {bitIndex} 3

:GFDATE_873
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_887
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_1053
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_1053
4@, 7@, 10@ = get_char_coordinates $scplayer
s$txtCurrZone = get_name_of_info_zone 4@ {y} 7@ {z} 10@
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_1053
25@ = get_ammo_in_char_weapon 0@ {weaponType} WeaponType.MicroUzi
if 
  25@ == 0
goto_if_false @GFDATE_1053
add_ammo_to_char 0@ {weaponType} WeaponType.MicroUzi {ammo} 60
set_var_int_to_constant $iGFSayContext = 278
set_global_var_bit_const $iDateReport {bitIndex} 2
gosub @GFDATE_32037
gosub @GFDATE_19097
set_local_var_bit_const 3@ {bitIndex} 27
set_local_var_bit_const 3@ {bitIndex} 2

:GFDATE_1053
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1067
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_1305
if and
  is_global_var_bit_set_const $iDateReport {bitIndex} 15
  1@ <> 8
goto_if_false @GFDATE_1124
1@ = 8
2@ = 0
return 

:GFDATE_1124
if 
  1@ <> 4
goto_if_false @GFDATE_1165
1@ = 4
2@ = 0
return 
goto @GFDATE_1298

:GFDATE_1165
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_1231
if and
  0 > 29@
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1231
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_1231
if and
  is_local_var_bit_set_const 3@ {bitIndex} 5
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 6
  not is_char_on_any_bike $scplayer
  not is_local_var_bit_set_const 3@ {bitIndex} 30
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_1298
1@ = 7
2@ = 0
return 

:GFDATE_1298
goto @GFDATE_1339

:GFDATE_1305
if 
  1@ <> 1
goto_if_false @GFDATE_1339
1@ = 1
2@ = 0
return 

:GFDATE_1339
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1353
if and
  TIMERA > 10000
  not is_group_member 0@ {handle} $Players_Group
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_1443
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_1443
set_local_var_bit_const 3@ {bitIndex} 7
clear_prints 
clear_help 
print_help 'GF_H017'
gosub @GFDATE_32147
return 

:GFDATE_1443
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1457
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @GFDATE_1549
if 
  not is_char_health_greater 0@ {health} 498
goto_if_false @GFDATE_1536
set_local_var_bit_const 3@ {bitIndex} 15
print_help 'GF_H018'
1@ = 9
2@ = 0
return 
goto @GFDATE_1549

:GFDATE_1536
set_var_int_to_constant $iGFSayContext = 308
clear_char_last_damage_entity 0@

:GFDATE_1549
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1563
if and
  TIMERA > 120000
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_1662
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1653
if 
  TIMERA > 240000
goto_if_false @GFDATE_1646
gosub @GFDATE_23217
return 

:GFDATE_1646
goto @GFDATE_1662

:GFDATE_1653
gosub @GFDATE_23217
return 

:GFDATE_1662
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1676
if and
  TIMERA > 180000
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1775
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1766
if 
  TIMERA > 300000
goto_if_false @GFDATE_1759
gosub @GFDATE_23317
return 

:GFDATE_1759
goto @GFDATE_1775

:GFDATE_1766
gosub @GFDATE_23317
return 

:GFDATE_1775
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1789
if and
  TIMERA > 360000
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1833
1@ = 9
2@ = 0
return 

:GFDATE_1833
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1847
if 
  not is_char_health_greater 0@ {health} 10
goto_if_false @GFDATE_1891
$iGFLikesPlayer($iGFidx,6i) = -999
task_dead 0@
gosub @GFDATE_32147
return 

:GFDATE_1891
if and
  is_wanted_level_greater $player1 {wantedLevel} 2
  not is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1950
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_1950
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1964
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_2033
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_2033
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_2033
gosub @GFDATE_24782

:GFDATE_2033
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2047
if and
  is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 12
  not is_local_var_bit_set_const 3@ {bitIndex} 15
  $iGF_TT_Status <> -1
goto_if_false @GFDATE_2273
25@ = get_int_stat StatId.CurrentGirlfriends
if 
  25@ > 1
goto_if_false @GFDATE_2266
25@ = get_area_visible 
if 
  25@ == 0
goto_if_false @GFDATE_2259
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_2259
if and
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
  TIMERA > 7000
goto_if_false @GFDATE_2259
25@ = generate_random_int_in_range 0 {max} 100
if 
  50 >= 25@
goto_if_false @GFDATE_2234
$iGF_TT_Status = 0
set_global_var_bit_const $iDateReport {bitIndex} 22
goto @GFDATE_2259

:GFDATE_2234
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 25
goto_if_false @GFDATE_2259
$iGF_TT_Status = -1

:GFDATE_2259
goto @GFDATE_2273

:GFDATE_2266
$iGF_TT_Status = -1

:GFDATE_2273
if and
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
  TIMERA >= 30000
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_2327
$iTransitionStages += 1
goto @GFDATE_3664
goto @GFDATE_2337

:GFDATE_2327
$fFun = 0.0

:GFDATE_2337
$iTransitionStages = 0
goto @GFDATE_3664

:GFDATE_2351
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
  1@ == 6
goto_if_false @GFDATE_2425
if 
  2@ == 0
goto_if_false @GFDATE_2415
$fFun += 1.5
goto @GFDATE_2425

:GFDATE_2415
$fFun += 0.0

:GFDATE_2425
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
  1@ == 7
goto_if_false @GFDATE_2499
if 
  2@ == 0
goto_if_false @GFDATE_2489
$fFun += 1.5
goto @GFDATE_2499

:GFDATE_2489
$fFun += 0.0

:GFDATE_2499
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_2547
if 
  is_char_shooting 0@
goto_if_false @GFDATE_2547
$fFun += 4.0

:GFDATE_2547
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2561
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_2684
25@ = get_car_health 28@
if 
  is_int_lvar_greater_than_int_lvar 29@ > 25@
goto_if_false @GFDATE_2684
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 24
goto_if_false @GFDATE_2666
if 
  has_car_been_damaged_by_car 28@ {other} -1
goto_if_false @GFDATE_2659
$fFun += 1.5
clear_car_last_damage_entity 28@

:GFDATE_2659
goto @GFDATE_2676

:GFDATE_2666
$fFun -= 1.0

:GFDATE_2676
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_2684
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2698
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3127
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_3127
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 11
goto_if_false @GFDATE_2824
if and
  $passenger_said_jump == 1
  not is_local_var_bit_set_const 3@ {bitIndex} 17
goto_if_false @GFDATE_2799
$fFun += 1.5
set_local_var_bit_const 3@ {bitIndex} 17

:GFDATE_2799
if 
  $passenger_said_jump == 0
goto_if_false @GFDATE_2824
clear_local_var_bit_const 3@ {bitIndex} 17

:GFDATE_2824
14@ = get_car_speed 28@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 12
goto_if_false @GFDATE_2941
if 
  14@ > 22.0
goto_if_false @GFDATE_2899
$fFun += 1.5
clear_local_var_bit_const 3@ {bitIndex} 19
goto @GFDATE_2941

:GFDATE_2899
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 19
goto_if_false @GFDATE_2931
set_local_var_bit_const 3@ {bitIndex} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_2931
$fFun -= 2.5

:GFDATE_2941
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 13
goto_if_false @GFDATE_3127
if and
  14@ > 8.0
  20.0 > 14@
goto_if_false @GFDATE_3025
$fFun += 0.5
clear_local_var_bit_const 3@ {bitIndex} 19
clear_local_var_bit_const 3@ {bitIndex} 18
goto @GFDATE_3127

:GFDATE_3025
if 
  8.0 >= 14@
goto_if_false @GFDATE_3085
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 19
goto_if_false @GFDATE_3078
set_local_var_bit_const 3@ {bitIndex} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_3078
goto @GFDATE_3117

:GFDATE_3085
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 18
goto_if_false @GFDATE_3117
set_local_var_bit_const 3@ {bitIndex} 18
set_var_int_to_constant $iGFSayContext = 32

:GFDATE_3117
$fFun -= 2.5

:GFDATE_3127
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3141
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3253
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_3253
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_3253
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 16
goto_if_false @GFDATE_3253
gosub @GFDATE_23095
if 
  25@ > 0
goto_if_false @GFDATE_3253
$fFun += 0.5

:GFDATE_3253
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_3301
if 
  is_char_shooting 0@
goto_if_false @GFDATE_3301
$fFun += 4.0

:GFDATE_3301
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3315
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3501
if 
  is_car_stopped 28@
goto_if_false @GFDATE_3501
26@ = get_current_population_zone_type 
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 14
goto_if_false @GFDATE_3501
if or
  is_int_lvar_equal_to_constant 26@ == 10
  is_int_lvar_equal_to_constant 26@ == 3
goto_if_false @GFDATE_3501
26@ = get_minutes_to_time_of_day 6 {minutes} 0
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3456
$fFun += 4.0
goto @GFDATE_3501

:GFDATE_3456
26@ = get_minutes_to_time_of_day 20 {minutes} 0
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3501
$fFun += 4.0

:GFDATE_3501
gosub @GFDATE_24664
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3522
if and
  $9466 >= 100
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_3585
set_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 278
set_local_var_bit_const 3@ {bitIndex} 2
gosub @GFDATE_32037
return 
goto @GFDATE_3640

:GFDATE_3585
if and
  0 >= $9466
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_3640
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_3640
$fFun = 0.0
$iTransitionStages = 0
goto @GFDATE_3664

:GFDATE_3664
return 

:GFDATE_3666
switch_start 1@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3962 {caseNum1} 0 {caseLabel1} @GFDATE_3794 {caseNum2} 1 {caseLabel2} @GFDATE_3808 {caseNum3} 2 {caseLabel3} @GFDATE_3822 {caseNum4} 3 {caseLabel4} @GFDATE_3836 {caseNum5} 4 {caseLabel5} @GFDATE_3850 {caseNum6} 5 {caseLabel6} @GFDATE_3864 {caseNum7} 6 {caseLabel7} @GFDATE_3878
switch_continued 7 {caseLabel1} @GFDATE_3892 {caseNum2} 8 {caseLabel2} @GFDATE_3906 {caseNum3} 9 {caseLabel3} @GFDATE_3920 {caseNum4} 10 {caseLabel4} @GFDATE_3934 {caseNum5} 11 {caseLabel5} @GFDATE_3948 {caseNum6} -1 {caseLabel6} @GFDATE_3962 {caseNum7} -1 {caseLabel7} @GFDATE_3962 {caseNum8} -1 {caseLabel8} @GFDATE_3962 {caseNum9} -1 {caseLabel9} @GFDATE_3962

:GFDATE_3794
gosub @GFDATE_3964
goto @GFDATE_3962

:GFDATE_3808
gosub @GFDATE_4766
goto @GFDATE_3962

:GFDATE_3822
gosub @GFDATE_5065
goto @GFDATE_3962

:GFDATE_3836
gosub @GFDATE_5797
goto @GFDATE_3962

:GFDATE_3850
gosub @GFDATE_6939
goto @GFDATE_3962

:GFDATE_3864
gosub @GFDATE_7658
goto @GFDATE_3962

:GFDATE_3878
gosub @GFDATE_7780
goto @GFDATE_3962

:GFDATE_3892
gosub @GFDATE_10846
goto @GFDATE_3962

:GFDATE_3906
gosub @GFDATE_12141
goto @GFDATE_3962

:GFDATE_3920
gosub @GFDATE_14307
goto @GFDATE_3962

:GFDATE_3934
gosub @GFDATE_14557
goto @GFDATE_3962

:GFDATE_3948
gosub @GFDATE_14904
goto @GFDATE_3962

:GFDATE_3962
return 

:GFDATE_3964
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFDATE_4764 {caseNum1} 0 {caseLabel1} @GFDATE_4027 {caseNum2} 1 {caseLabel2} @GFDATE_4306 {caseNum3} 2 {caseLabel3} @GFDATE_4562 {caseNum4} 3 {caseLabel4} @GFDATE_4642 {caseNum5} -1 {caseLabel5} @GFDATE_4764 {caseNum6} -1 {caseLabel6} @GFDATE_4764 {caseNum7} -1 {caseLabel7} @GFDATE_4764

:GFDATE_4027
set_local_var_bit_const 3@ {bitIndex} 1
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_4108
set_local_var_bit_const 3@ {bitIndex} 9
set_global_var_bit_const $iDateReport {bitIndex} 2
set_global_var_bit_const $iDateReport {bitIndex} 3
1@ = 3
2@ = 0
goto @GFDATE_4764

:GFDATE_4108
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_char_only_damaged_by_player 0@ {state} True
gosub @GFDATE_22388
clear_area 6@ {y} 9@ {z} 12@ {radius} 2.0 {clearParticles} True
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut
lock_door $iGFdoor($iGFidx,7i) {state} False
gosub @GFDATE_16340
if 
  25@ == -1
goto_if_false @GFDATE_4263
set_local_var_bit_const 3@ {bitIndex} 16
task_goto_char 0@ {target} $scplayer {time} 5000 {radius} 2.5
goto @GFDATE_4285

:GFDATE_4263
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_4285
TIMERB = 0
2@ += 1
goto @GFDATE_4764

:GFDATE_4306
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_char_coordinates 0@
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  TIMERB >= 6000
goto_if_false @GFDATE_4420
5@, 8@, 11@ = get_closest_char_node 5@ {y} 8@ {z} 11@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = 1.0

:GFDATE_4420
if 
  3.0 >= 13@
goto_if_false @GFDATE_4555
point_camera_at_point 4@ {y} 7@ {z} 10@ {switchStyle} SwitchType.Interpolation
lock_door $iGFdoor($iGFidx,7i) {state} True
if 
  is_local_var_bit_set_const 3@ {bitIndex} 16
goto_if_false @GFDATE_4525
set_char_only_damaged_by_player 0@ {state} False
set_local_var_bit_const 3@ {bitIndex} 9
1@ = 3
2@ = 3
goto @GFDATE_4764
goto @GFDATE_4555

:GFDATE_4525
set_var_int_to_constant $iGFSayContext = 293
set_var_int_to_constant $iCJSayContext = 238
TIMERB = 0
2@ += 1

:GFDATE_4555
goto @GFDATE_4764

:GFDATE_4562
if 
  TIMERB >= 3000
goto_if_false @GFDATE_4635
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_only_damaged_by_player 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
2@ += 1

:GFDATE_4635
goto @GFDATE_4764

:GFDATE_4642
gosub @GFDATE_17110
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_4678
print_help 'GF_0036'

:GFDATE_4678
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_4707
print_help 'GF_0037'

:GFDATE_4707
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_4736
print_help 'GF_0038'

:GFDATE_4736
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0
goto @GFDATE_4764

:GFDATE_4764
return 

:GFDATE_4766
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5063 {caseNum1} 0 {caseLabel1} @GFDATE_4829 {caseNum2} 1 {caseLabel2} @GFDATE_4857 {caseNum3} 2 {caseLabel3} @GFDATE_4943 {caseNum4} -1 {caseLabel4} @GFDATE_5063 {caseNum5} -1 {caseLabel5} @GFDATE_5063 {caseNum6} -1 {caseLabel6} @GFDATE_5063 {caseNum7} -1 {caseLabel7} @GFDATE_5063

:GFDATE_4829
clear_local_var_bit_const 3@ {bitIndex} 5
clear_local_var_bit_const 3@ {bitIndex} 6
2@ += 1
goto @GFDATE_5063

:GFDATE_4857
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_4929
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @GFDATE_4929
if 
  is_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi
goto_if_false @GFDATE_4929
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed

:GFDATE_4929
2@ += 1
goto @GFDATE_5063

:GFDATE_4943
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_5049
if and
  is_local_var_bit_set_const 3@ {bitIndex} 29
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_5035
if 
  TIMERB > 25000
goto_if_false @GFDATE_5028
set_var_int_to_constant $iGFSayContext = 271
set_var_int_to_constant $iCJSayContext = 240
clear_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_5028
goto @GFDATE_5049

:GFDATE_5035
TIMERB = 0
set_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_5049
2@ = 0
goto @GFDATE_5063

:GFDATE_5063
return 

:GFDATE_5065
switch_start 2@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5795 {caseNum1} 0 {caseLabel1} @GFDATE_5193 {caseNum2} 1 {caseLabel2} @GFDATE_5231 {caseNum3} 2 {caseLabel3} @GFDATE_5298 {caseNum4} 3 {caseLabel4} @GFDATE_5325 {caseNum5} 4 {caseLabel5} @GFDATE_5363 {caseNum6} 5 {caseLabel6} @GFDATE_5377 {caseNum7} 6 {caseLabel7} @GFDATE_5413
switch_continued 7 {caseLabel1} @GFDATE_5573 {caseNum2} 8 {caseLabel2} @GFDATE_5664 {caseNum3} 9 {caseLabel3} @GFDATE_5732 {caseNum4} -1 {caseLabel4} @GFDATE_5795 {caseNum5} -1 {caseLabel5} @GFDATE_5795 {caseNum6} -1 {caseLabel6} @GFDATE_5795 {caseNum7} -1 {caseLabel7} @GFDATE_5795 {caseNum8} -1 {caseLabel8} @GFDATE_5795 {caseNum9} -1 {caseLabel9} @GFDATE_5795

:GFDATE_5193
set_local_var_bit_const 3@ {bitIndex} 1
do_fade 0 {direction} Fade.Out
gosub @GFDATE_32037
clear_prints 
clear_help 
2@ += 1
goto @GFDATE_5795

:GFDATE_5231
if 
  not get_fading_status 
goto_if_false @GFDATE_5291
make_player_safe_for_cutscene $player1
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
set_char_collision 0@ {state} False
set_char_collision $scplayer {state} False
gosub @GFDATE_19988
gosub @GFDATE_20215
2@ += 1

:GFDATE_5291
goto @GFDATE_5795

:GFDATE_5298
if 
  has_cutscene_loaded 
goto_if_false @GFDATE_5318
2@ += 1

:GFDATE_5318
goto @GFDATE_5795

:GFDATE_5325
set_cutscene_offset 4@ {y} 7@ {z} 10@
do_fade 1000 {direction} Fade.In
switch_rubbish 0
start_cutscene 
2@ += 1
goto @GFDATE_5795

:GFDATE_5363
2@ += 1
goto @GFDATE_5795

:GFDATE_5377
if 
  has_cutscene_finished 
goto_if_false @GFDATE_5406
do_fade 1000 {direction} Fade.Out
clear_prints 
2@ += 1

:GFDATE_5406
goto @GFDATE_5795

:GFDATE_5413
if 
  not get_fading_status 
goto_if_false @GFDATE_5566
clear_cutscene 
clear_extra_colours False
gosub @GFDATE_19097
set_area_visible 0
set_char_area_visible 0@ {areaId} 0
set_char_area_visible $scplayer {areaId} 0
4@, 7@, 10@ = get_char_coordinates $scplayer
clear_area 4@ {y} 7@ {z} 10@ {radius} 2.0 {clearParticles} True
load_scene 4@ {y} 7@ {z} 10@
request_collision 4@ {y} 7@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 0@
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_5559
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_5559
2@ += 1

:GFDATE_5566
goto @GFDATE_5795

:GFDATE_5573
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
display_radar True
set_char_collision 0@ {state} True
set_char_collision $scplayer {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_rubbish 1
clear_char_tasks $scplayer
task_pause 0@ {time} 0
do_fade 500 {direction} Fade.In
2@ += 1
goto @GFDATE_5795

:GFDATE_5664
if 
  not get_fading_status 
goto_if_false @GFDATE_5725
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFDATE_5710
set_var_int_to_constant $iGFSayContext = 275
goto @GFDATE_5718

:GFDATE_5710
set_var_int_to_constant $iGFSayContext = 276

:GFDATE_5718
2@ += 1

:GFDATE_5725
goto @GFDATE_5795

:GFDATE_5732
if and
  $iGFSayContext == -1
  not is_message_being_displayed 
goto_if_false @GFDATE_5788
set_var_int_to_constant $iGFSayContext = 278
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 2
1@ = 1
2@ = 0

:GFDATE_5788
goto @GFDATE_5795

:GFDATE_5795
return 

:GFDATE_5797
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_6937 {caseNum1} 0 {caseLabel1} @GFDATE_5925 {caseNum2} 1 {caseLabel2} @GFDATE_5953 {caseNum3} 2 {caseLabel3} @GFDATE_6141 {caseNum4} 3 {caseLabel4} @GFDATE_6162 {caseNum5} 4 {caseLabel5} @GFDATE_6632 {caseNum6} 5 {caseLabel6} @GFDATE_6695 {caseNum7} 6 {caseLabel7} @GFDATE_6837
switch_continued 7 {caseLabel1} @GFDATE_6884 {caseNum2} -1 {caseLabel2} @GFDATE_6937 {caseNum3} -1 {caseLabel3} @GFDATE_6937 {caseNum4} -1 {caseLabel4} @GFDATE_6937 {caseNum5} -1 {caseLabel5} @GFDATE_6937 {caseNum6} -1 {caseLabel6} @GFDATE_6937 {caseNum7} -1 {caseLabel7} @GFDATE_6937 {caseNum8} -1 {caseLabel8} @GFDATE_6937 {caseNum9} -1 {caseLabel9} @GFDATE_6937

:GFDATE_5925
set_local_var_bit_const 3@ {bitIndex} 1
do_fade 500 {direction} Fade.Out
2@ += 1
goto @GFDATE_6937

:GFDATE_5953
set_local_var_bit_const 3@ {bitIndex} 1
if 
  not get_fading_status 
goto_if_false @GFDATE_6134
gosub @GFDATE_32037
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_6018
remove_char_from_group 0@

:GFDATE_6018
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
gosub @GFDATE_22388
clear_area 6@ {y} 9@ {z} 12@ {radius} 1.0 {clearParticles} True
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 0@
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
task_achieve_heading 0@ {heading} 13@
2@ += 1

:GFDATE_6134
goto @GFDATE_6937

:GFDATE_6141
do_fade 1000 {direction} Fade.In
2@ += 1
goto @GFDATE_6937

:GFDATE_6162
if 
  not get_fading_status 
goto_if_false @GFDATE_6625
if 
  is_local_var_bit_set_const 3@ {bitIndex} 9
goto_if_false @GFDATE_6392
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_6248
set_var_int_to_constant $iGFSayContext = 267
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6937

:GFDATE_6248
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_6304
$iGFLikesPlayer($iGFidx,6i) = -100
set_var_int_to_constant $iGFSayContext = 309
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iGFidx
goto @GFDATE_6363

:GFDATE_6304
if 
  is_local_var_bit_set_const 3@ {bitIndex} 16
goto_if_false @GFDATE_6363
if 
  is_local_var_bit_set_const 3@ {bitIndex} 23
goto_if_false @GFDATE_6355
set_var_int_to_constant $iGFSayContext = 312
goto @GFDATE_6363

:GFDATE_6355
set_var_int_to_constant $iGFSayContext = 311

:GFDATE_6363
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6625

:GFDATE_6392
if 
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_6447
set_var_int_to_constant $iGFSayContext = 291
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6625

:GFDATE_6447
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFDATE_6573
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_6528
set_var_int_to_constant $iGFSayContext = 280
TIMERB = 0
25@ = 0
2@ += 1
goto @GFDATE_6566

:GFDATE_6528
set_var_int_to_constant $iGFSayContext = 287
set_var_int_to_constant $iCJSayContext = 239
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6566
goto @GFDATE_6625

:GFDATE_6573
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_6603
set_var_int_to_constant $iGFSayContext = 309

:GFDATE_6603
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6625
goto @GFDATE_6937

:GFDATE_6632
if 
  TIMERB >= 5000
goto_if_false @GFDATE_6688
print_help_forever 'TALK_1'
if 
  TIMERB > 5100
goto_if_false @GFDATE_6688
2@ += 1

:GFDATE_6688
goto @GFDATE_6937

:GFDATE_6695
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GFDATE_6766
clear_prints 
clear_help 
set_global_var_bit_const $iDateReport {bitIndex} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 46
TIMERB = 0
25@ = 3500
2@ += 1
goto @GFDATE_6830

:GFDATE_6766
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GFDATE_6830
clear_prints 
clear_help 
clear_global_var_bit_const $iDateReport {bitIndex} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 47
TIMERB = 0
25@ = 3500
2@ += 1

:GFDATE_6830
goto @GFDATE_6937

:GFDATE_6837
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @GFDATE_6877
set_global_var_bit_const $iDateReport {bitIndex} 6
do_fade 1000 {direction} Fade.Out
2@ += 1

:GFDATE_6877
goto @GFDATE_6937

:GFDATE_6884
if 
  not get_fading_status 
goto_if_false @GFDATE_6930
switch_widescreen False
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
gosub @GFDATE_32147

:GFDATE_6930
goto @GFDATE_6937

:GFDATE_6937
return 

:GFDATE_6939
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7656 {caseNum1} 0 {caseLabel1} @GFDATE_7002 {caseNum2} 1 {caseLabel2} @GFDATE_7159 {caseNum3} 2 {caseLabel3} @GFDATE_7293 {caseNum4} 3 {caseLabel4} @GFDATE_7442 {caseNum5} 4 {caseLabel5} @GFDATE_7542 {caseNum6} -1 {caseLabel6} @GFDATE_7656 {caseNum7} -1 {caseLabel7} @GFDATE_7656

:GFDATE_7002
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_7145
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_7145
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 27
goto_if_false @GFDATE_7145
gosub @GFDATE_23095
if 
  25@ > 0
goto_if_false @GFDATE_7145
if and
  not is_message_being_displayed 
  not is_char_talking $scplayer
  not is_char_talking 0@
goto_if_false @GFDATE_7145
set_var_int_to_constant $iGFSayContext = 301
set_var_int_to_constant $iCJSayContext = 242
2@ = 4
goto @GFDATE_7656

:GFDATE_7145
2@ += 1
goto @GFDATE_7656

:GFDATE_7159
if 
  not is_car_dead 28@
goto_if_false @GFDATE_7265
if 
  is_car_stopped 28@
goto_if_false @GFDATE_7244
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 5
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7237
TIMERB = 0
2@ = 3
goto @GFDATE_7656

:GFDATE_7237
goto @GFDATE_7258

:GFDATE_7244
clear_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 5

:GFDATE_7258
goto @GFDATE_7279

:GFDATE_7265
clear_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 5

:GFDATE_7279
2@ += 1
goto @GFDATE_7656

:GFDATE_7293
if 
  is_local_var_bit_set_const 3@ {bitIndex} 29
goto_if_false @GFDATE_7396
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7389
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_7389
if 
  TIMERB > 25000
goto_if_false @GFDATE_7389
set_var_int_to_constant $iGFSayContext = 271
set_var_int_to_constant $iCJSayContext = 240
clear_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_7389
goto @GFDATE_7428

:GFDATE_7396
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7428
TIMERB = 0
set_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_7428
2@ += 1
goto @GFDATE_7656

:GFDATE_7442
if 
  not is_car_dead 28@
goto_if_false @GFDATE_7528
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_7488
2@ = 0
goto @GFDATE_7521

:GFDATE_7488
if 
  TIMERB > 10000
goto_if_false @GFDATE_7521
set_local_var_bit_const 3@ {bitIndex} 5
2@ = 0

:GFDATE_7521
goto @GFDATE_7535

:GFDATE_7528
2@ = 0

:GFDATE_7535
goto @GFDATE_7656

:GFDATE_7542
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_7642
if 
  not is_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi
goto_if_false @GFDATE_7596
set_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi

:GFDATE_7596
gosub @GFDATE_23095
if 
  0 >= 25@
goto_if_false @GFDATE_7635
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
2@ = 0

:GFDATE_7635
goto @GFDATE_7649

:GFDATE_7642
2@ = 0

:GFDATE_7649
goto @GFDATE_7656

:GFDATE_7656
return 

:GFDATE_7658
switch_start 2@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7778 {caseNum1} 0 {caseLabel1} @GFDATE_7721 {caseNum2} -1 {caseLabel2} @GFDATE_7778 {caseNum3} -1 {caseLabel3} @GFDATE_7778 {caseNum4} -1 {caseLabel4} @GFDATE_7778 {caseNum5} -1 {caseLabel5} @GFDATE_7778 {caseNum6} -1 {caseLabel6} @GFDATE_7778 {caseNum7} -1 {caseLabel7} @GFDATE_7778

:GFDATE_7721
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 7
set_var_int_to_constant $iGFSayContext = 279
gosub @GFDATE_32037
gosub @GFDATE_19242
$iDanceScore = 1
goto @GFDATE_7778

:GFDATE_7778
return 

:GFDATE_7780
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFDATE_10844 {caseNum1} 0 {caseLabel1} @GFDATE_7843 {caseNum2} 1 {caseLabel2} @GFDATE_8016 {caseNum3} 2 {caseLabel3} @GFDATE_8491 {caseNum4} 3 {caseLabel4} @GFDATE_9079 {caseNum5} 4 {caseLabel5} @GFDATE_9422 {caseNum6} 5 {caseLabel6} @GFDATE_9669 {caseNum7} 6 {caseLabel7} @GFDATE_9868

:GFDATE_7843
set_local_var_bit_const 3@ {bitIndex} 1
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
task_turn_char_to_face_char $scplayer {target} 0@
task_turn_char_to_face_char 0@ {target} $scplayer
2@ += 1
goto @GFDATE_10844

:GFDATE_8016
25@ = get_script_task_status $scplayer {taskId} 1593
26@ = get_script_task_status 0@ {taskId} 1593
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_8354
set_char_collision $scplayer {state} False
set_char_collision 0@ {state} False
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 5@ {y} 8@ {z} 11@
6@, 9@, 12@ = get_char_coordinates 0@
12@ = get_ground_z_for_3d_coord 6@ {y} 9@ {z} 12@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = get_char_heading $scplayer
13@ += 180.0
set_char_heading 0@ {heading} 13@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_8326
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_8326
task_stand_still $scplayer {time} -1
task_stand_still 0@ {time} -1
2@ += 1
goto @GFDATE_8484

:GFDATE_8354
25@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8419
25@ = get_script_task_status $scplayer {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8419
task_stand_still $scplayer {time} -1

:GFDATE_8419
25@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8484
25@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8484
task_stand_still 0@ {time} -1

:GFDATE_8484
goto @GFDATE_10844

:GFDATE_8491
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
cset_lvar_float_to_var_int 13@ =# $iGFSelfRespect($iGFidx,6i)
13@ /= 1.2
cset_lvar_float_to_var_int 14@ =# $iGFLikesPlayer($iGFidx,6i)
if 
  is_float_lvar_greater_or_equal_to_float_lvar 13@ >= 14@
goto_if_false @GFDATE_8661
task_play_anim $scplayer {animationName} "PLAYA_KISS_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ = 6
goto @GFDATE_9072

:GFDATE_8661
if 
  is_int_var_greater_or_equal_to_int_var $iGFSelfRespect($iGFidx,6i) >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_8791
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ = 6
goto @GFDATE_9072

:GFDATE_8791
task_play_anim $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
if 
  are_any_chars_near_char 0@ {radius} 25.0
goto_if_false @GFDATE_9026
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_9012
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_8998
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_8977
2@ += 1
goto @GFDATE_8991

:GFDATE_8977
set_local_var_bit_const 3@ {bitIndex} 25
2@ = 6

:GFDATE_8991
goto @GFDATE_9005

:GFDATE_8998
2@ = 6

:GFDATE_9005
goto @GFDATE_9019

:GFDATE_9012
2@ = 6

:GFDATE_9019
goto @GFDATE_9072

:GFDATE_9026
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_9058
2@ += 1
goto @GFDATE_9072

:GFDATE_9058
set_local_var_bit_const 3@ {bitIndex} 25
2@ = 6

:GFDATE_9072
goto @GFDATE_10844

:GFDATE_9079
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9106
2@ = 6
goto @GFDATE_10844

:GFDATE_9106
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 25
goto_if_false @GFDATE_9408
25@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_9401
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 2.5 {yOffset} -1.2 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.1
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_9291
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_9291
task_play_anim $scplayer {animationName} "BJ_STAND_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim 0@ {animationName} "BJ_STAND_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_local_var_bit_const 3@ {bitIndex} 25
2@ += 1

:GFDATE_9401
goto @GFDATE_9415

:GFDATE_9408
2@ = 6

:GFDATE_9415
goto @GFDATE_10844

:GFDATE_9422
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9449
2@ = 6
goto @GFDATE_10844

:GFDATE_9449
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_START_P"
goto_if_false @GFDATE_9655
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_START_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_9648
task_play_anim $scplayer {animationName} "BJ_STAND_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim 0@ {animationName} "BJ_STAND_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
2@ += 1

:GFDATE_9648
goto @GFDATE_9662

:GFDATE_9655
2@ = 6

:GFDATE_9662
goto @GFDATE_10844

:GFDATE_9669
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9696
2@ = 6
goto @GFDATE_10844

:GFDATE_9696
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_LOOP_P"
goto_if_false @GFDATE_9854
if 
  TIMERB > 6000
goto_if_false @GFDATE_9847
task_play_anim $scplayer {animationName} "BJ_STAND_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "BJ_STAND_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ += 1

:GFDATE_9847
goto @GFDATE_9861

:GFDATE_9854
2@ = 6

:GFDATE_9861
goto @GFDATE_10844

:GFDATE_9868
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 24
goto_if_false @GFDATE_10133
set_local_var_bit_const 3@ {bitIndex} 24
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_than_int_var $iGFSelfRespect($iGFidx,6i) > $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_10000
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_9982
$iGFLikesPlayer($iGFidx,6i) += 1
goto @GFDATE_9993

:GFDATE_9982
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_9993
goto @GFDATE_10133

:GFDATE_10000
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_10133
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_10122
$iGFLikesPlayer($iGFidx,6i) += 1
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_10115
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_10115
goto @GFDATE_10133

:GFDATE_10122
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_10133
13@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_END_P"
goto_if_false @GFDATE_10199
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_END_P"

:GFDATE_10199
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_01"
goto_if_false @GFDATE_10253
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_01"

:GFDATE_10253
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @GFDATE_10307
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:GFDATE_10307
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @GFDATE_10361
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_03"

:GFDATE_10361
if 
  13@ > -1.0
goto_if_false @GFDATE_10597
if 
  13@ == 1.0
goto_if_false @GFDATE_10590
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_10590
goto @GFDATE_10837

:GFDATE_10597
clear_char_tasks $scplayer
task_pause 0@ {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_10816
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_10816
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_10837
goto @GFDATE_10844

:GFDATE_10844
return 

:GFDATE_10846
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_12139 {caseNum1} 0 {caseLabel1} @GFDATE_10909 {caseNum2} 1 {caseLabel2} @GFDATE_11228 {caseNum3} 2 {caseLabel3} @GFDATE_11343 {caseNum4} 3 {caseLabel4} @GFDATE_11469 {caseNum5} 4 {caseLabel5} @GFDATE_11655 {caseNum6} 5 {caseLabel6} @GFDATE_11796 {caseNum7} -1 {caseLabel7} @GFDATE_12139

:GFDATE_10909
if 
  $iCensoredVersion == 1
goto_if_false @GFDATE_10969
set_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0
goto @GFDATE_12139
goto @GFDATE_11221

:GFDATE_10969
set_local_var_bit_const 3@ {bitIndex} 1
if and
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
  not is_car_dead 28@
  not is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
goto_if_false @GFDATE_11193
27@ = get_char_in_car_passenger_seat 28@ {seat} SeatId.BikeRear
if 
  is_int_lvar_equal_to_int_lvar 27@ == 0@
goto_if_false @GFDATE_11158
if 
  are_any_chars_near_char 0@ {radius} 25.0
goto_if_false @GFDATE_11144
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_11101
2@ += 1
goto @GFDATE_11137

:GFDATE_11101
set_var_int_to_constant $iGFSayContext = 297
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11137
goto @GFDATE_11151

:GFDATE_11144
2@ += 1

:GFDATE_11151
goto @GFDATE_11186

:GFDATE_11158
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11186
goto @GFDATE_11221

:GFDATE_11193
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11221
goto @GFDATE_12139

:GFDATE_11228
set_local_var_bit_const 3@ {bitIndex} 6
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
if 
  not is_car_dead 28@
goto_if_false @GFDATE_11329
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:GFDATE_11329
2@ += 1
goto @GFDATE_12139

:GFDATE_11343
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11363
2@ = 5

:GFDATE_11363
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
2@ += 1
goto @GFDATE_12139

:GFDATE_11469
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11489
2@ = 5

:GFDATE_11489
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_CAR_START_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_11648
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
2@ += 1

:GFDATE_11648
goto @GFDATE_12139

:GFDATE_11655
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11675
2@ = 5

:GFDATE_11675
if 
  TIMERB > 6000
goto_if_false @GFDATE_11789
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ += 1

:GFDATE_11789
goto @GFDATE_12139

:GFDATE_11796
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_11877
$iGFLikesPlayer($iGFidx,6i) += 1
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_11877
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_11877
if 
  is_char_playing_anim $scplayer {animationName} "BJ_CAR_END_P"
goto_if_false @GFDATE_12018
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_CAR_END_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_12011
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0

:GFDATE_12011
goto @GFDATE_12132

:GFDATE_12018
clear_char_tasks $scplayer
task_pause 0@ {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_12111
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_12111
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0

:GFDATE_12132
goto @GFDATE_12139

:GFDATE_12139
return 

:GFDATE_12141
switch_start 2@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14305 {caseNum1} 0 {caseLabel1} @GFDATE_12269 {caseNum2} 1 {caseLabel2} @GFDATE_12488 {caseNum3} 2 {caseLabel3} @GFDATE_12612 {caseNum4} 3 {caseLabel4} @GFDATE_12683 {caseNum5} 4 {caseLabel5} @GFDATE_12826 {caseNum6} 5 {caseLabel6} @GFDATE_12974 {caseNum7} 6 {caseLabel7} @GFDATE_13035
switch_continued 7 {caseLabel1} @GFDATE_13343 {caseNum2} 9 {caseLabel2} @GFDATE_13774 {caseNum3} 10 {caseLabel3} @GFDATE_13901 {caseNum4} 11 {caseLabel4} @GFDATE_14023 {caseNum5} 12 {caseLabel5} @GFDATE_14120 {caseNum6} -1 {caseLabel6} @GFDATE_14305 {caseNum7} -1 {caseLabel7} @GFDATE_14305 {caseNum8} -1 {caseLabel8} @GFDATE_14305 {caseNum9} -1 {caseLabel9} @GFDATE_14305

:GFDATE_12269
if 
  not is_car_dead 28@
goto_if_false @GFDATE_12443
if and
  not is_char_on_any_bike 0@
  not is_char_in_flying_vehicle 0@
goto_if_false @GFDATE_12398
25@ = get_maximum_number_of_passengers 28@
if 
  25@ > 0
goto_if_false @GFDATE_12353
set_local_var_bit_const 3@ {bitIndex} 1
2@ += 1
goto @GFDATE_12391

:GFDATE_12353
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12391
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12391
goto @GFDATE_12436

:GFDATE_12398
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12436
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12436
goto @GFDATE_12481

:GFDATE_12443
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12481
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12481
goto @GFDATE_14305

:GFDATE_12488
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_everyone_ignore_player $player1 {state} True
if 
  not is_car_dead 28@
goto_if_false @GFDATE_12574
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:GFDATE_12574
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_12598
remove_char_from_group 0@

:GFDATE_12598
2@ += 1
goto @GFDATE_14305

:GFDATE_12612
if 
  not is_car_dead 28@
goto_if_false @GFDATE_12676
if 
  not is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
goto_if_false @GFDATE_12661
task_leave_car $scplayer {vehicle} 28@
goto @GFDATE_12669

:GFDATE_12661
task_leave_car 0@ {vehicle} 28@

:GFDATE_12669
2@ += 1

:GFDATE_12676
goto @GFDATE_14305

:GFDATE_12683
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12819
25@ = get_script_task_status 0@ {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12819
if 
  is_char_in_any_car $scplayer
goto_if_false @GFDATE_12784
28@ = store_car_char_is_in_no_save $scplayer
task_enter_car_as_passenger 0@ {vehicle} 28@ {time} -1 {seat} SeatId.BikeRear
goto @GFDATE_12812

:GFDATE_12784
28@ = store_car_char_is_in_no_save 0@
task_shuffle_to_next_car_seat 0@ {vehicle} 28@
task_enter_car_as_passenger $scplayer {vehicle} 28@ {time} -1 {seat} SeatId.BikeRear

:GFDATE_12812
2@ += 1

:GFDATE_12819
goto @GFDATE_14305

:GFDATE_12826
25@ = get_script_task_status $scplayer {taskId} 1482
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12967
25@ = get_script_task_status 0@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12967
27@ = get_driver_of_car 28@
if 
  is_int_lvar_equal_to_int_var 27@ == $scplayer
goto_if_false @GFDATE_12932
2@ = 2
goto @GFDATE_14305
goto @GFDATE_12967

:GFDATE_12932
task_car_drive_wander 0@ {vehicle} 28@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
add_stuck_car_check 28@ {distance} 1.0 {time} 1000
2@ += 1

:GFDATE_12967
goto @GFDATE_14305

:GFDATE_12974
if 
  not is_car_dead 28@
goto_if_false @GFDATE_13028
point_camera_at_car 28@ {mode} CameraMode.WheelCam {switchStyle} SwitchType.JumpCut
set_cinema_camera True
print_help 'GF_RAD'
set_local_var_bit_const 3@ {bitIndex} 13
2@ += 1

:GFDATE_13028
goto @GFDATE_14305

:GFDATE_13035
if 
  not get_fading_status 
goto_if_false @GFDATE_13336
if 
  is_car_stuck 28@
goto_if_false @GFDATE_13085
do_fade 500 {direction} Fade.Out
2@ = 9
goto @GFDATE_14305

:GFDATE_13085
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GFDATE_13144
25@ = get_radio_channel 
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13139
25@ = 0

:GFDATE_13139
set_radio_channel 25@

:GFDATE_13144
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GFDATE_13203
25@ = get_radio_channel 
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13198
25@ = 10

:GFDATE_13198
set_radio_channel 25@

:GFDATE_13203
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13266
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13259
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14305

:GFDATE_13259
goto @GFDATE_13273

:GFDATE_13266
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13273
if 
  TIMERA > 60000
goto_if_false @GFDATE_13336
gosub @GFDATE_19405
task_car_drive_to_coord 0@ {vehicle} 28@ {x} 4@ {y} 7@ {z} 10@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
2@ += 1

:GFDATE_13336
goto @GFDATE_14305

:GFDATE_13343
if 
  is_car_stuck 28@
goto_if_false @GFDATE_13380
do_fade 500 {direction} Fade.Out
2@ = 9
goto @GFDATE_14305

:GFDATE_13380
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GFDATE_13439
25@ = get_radio_channel 
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13434
25@ = 0

:GFDATE_13434
set_radio_channel 25@

:GFDATE_13439
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GFDATE_13498
25@ = get_radio_channel 
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13493
25@ = 10

:GFDATE_13493
set_radio_channel 25@

:GFDATE_13498
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13561
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13554
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14305

:GFDATE_13554
goto @GFDATE_13568

:GFDATE_13561
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13568
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13631
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13624
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14305

:GFDATE_13624
goto @GFDATE_13638

:GFDATE_13631
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13638
25@ = get_script_task_status 0@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13767
clear_help 
set_cinema_camera False
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_13694
remove_stuck_car_check 28@

:GFDATE_13694
set_global_var_bit_const $iDateReport {bitIndex} 2
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_13742
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_13742
$iGFLikesPlayer($iGFidx,6i) += 5
1@ = 3
2@ = 0

:GFDATE_13767
goto @GFDATE_14305

:GFDATE_13774
if 
  not get_fading_status 
goto_if_false @GFDATE_13894
4@, 7@, 10@ = get_car_coordinates 28@
5@, 8@, 11@ = get_nth_closest_car_node 4@ {fromY} 7@ {fromZ} 10@ {n} 2
set_car_coordinates 28@ {x} 5@ {y} 8@ {z} 11@
do_fade 2000 {direction} Fade.In
25@ = get_script_task_status 0@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_13887
2@ = 7
goto @GFDATE_13894

:GFDATE_13887
2@ = 6

:GFDATE_13894
goto @GFDATE_14305

:GFDATE_13901
clear_help 
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14009
car_set_idle 28@
set_cinema_camera False
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_13949
remove_stuck_car_check 28@

:GFDATE_13949
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
switch_widescreen True
2@ += 1
goto @GFDATE_14016

:GFDATE_14009
2@ += 1

:GFDATE_14016
goto @GFDATE_14305

:GFDATE_14023
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14106
if 
  is_car_stopped 28@
goto_if_false @GFDATE_14099
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14099
task_leave_car $scplayer {vehicle} 28@
2@ += 1

:GFDATE_14099
goto @GFDATE_14113

:GFDATE_14106
2@ += 1

:GFDATE_14113
goto @GFDATE_14305

:GFDATE_14120
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14298
28@ = store_car_char_is_in_no_save 0@
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14219
set_car_proofs 28@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_car_drive_wander 0@ {vehicle} 28@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
set_var_int_to_constant $iGFSayContext = 305
set_var_int_to_constant $iCJSayContext = 244

:GFDATE_14219
clear_char_tasks $scplayer
clear_help 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_local_var_bit_const 3@ {bitIndex} 7
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
1@ = 9
2@ = 1

:GFDATE_14298
goto @GFDATE_14305

:GFDATE_14305
return 

:GFDATE_14307
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14555 {caseNum1} 0 {caseLabel1} @GFDATE_14370 {caseNum2} 1 {caseLabel2} @GFDATE_14459 {caseNum3} -1 {caseLabel3} @GFDATE_14555 {caseNum4} -1 {caseLabel4} @GFDATE_14555 {caseNum5} -1 {caseLabel5} @GFDATE_14555 {caseNum6} -1 {caseLabel6} @GFDATE_14555 {caseNum7} -1 {caseLabel7} @GFDATE_14555

:GFDATE_14370
gosub @GFDATE_32037
set_local_var_bit_const 3@ {bitIndex} 1
clear_global_var_bit_const $iDateReport {bitIndex} 2
remove_char_from_group 0@
clear_char_tasks_immediately 0@
task_flee_char_any_means 0@ {threat} $scplayer {safeDist} 100.0 {time} 36000000 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 30.0
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
2@ += 1
goto @GFDATE_14555

:GFDATE_14459
if 
  not is_char_health_greater 0@ {health} 5
goto_if_false @GFDATE_14503
$iGFLikesPlayer($iGFidx,6i) = -999
task_die 0@
gosub @GFDATE_32147
return 

:GFDATE_14503
if 
  not locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 70.0 {yRadius} 70.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GFDATE_14548
gosub @GFDATE_32147
return 

:GFDATE_14548
goto @GFDATE_14555

:GFDATE_14555
return 

:GFDATE_14557
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14902 {caseNum1} 0 {caseLabel1} @GFDATE_14620 {caseNum2} 1 {caseLabel2} @GFDATE_14670 {caseNum3} -1 {caseLabel3} @GFDATE_14902 {caseNum4} -1 {caseLabel4} @GFDATE_14902 {caseNum5} -1 {caseLabel5} @GFDATE_14902 {caseNum6} -1 {caseLabel6} @GFDATE_14902 {caseNum7} -1 {caseLabel7} @GFDATE_14902

:GFDATE_14620
set_local_var_bit_const 3@ {bitIndex} 1
set_var_int_to_lvar_int $iDanceGirlfriend = 0@
$iBouncerAction = 0
$iDanceScore = 0
set_global_var_bit_const $d6_trip_skips_available {bitIndex} 31
2@ += 1
goto @GFDATE_14902

:GFDATE_14670
if 
  not is_global_var_bit_set_const $d6_trip_skips_available {bitIndex} 31
goto_if_false @GFDATE_14827
$iDanceScore = 1
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_14736
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_14736
if 
  $iDanceReport >= 3000
goto_if_false @GFDATE_14777
set_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 277
goto @GFDATE_14792

:GFDATE_14777
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 276

:GFDATE_14792
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 2
1@ = 1
2@ = 0
goto @GFDATE_14895

:GFDATE_14827
24@ = get_char_area_visible $scplayer
if 
  24@ == 0
goto_if_false @GFDATE_14888
clear_local_var_bit_const 3@ {bitIndex} 1
clear_global_var_bit_const $d6_trip_skips_available {bitIndex} 31
1@ = 1
2@ = 0
goto @GFDATE_14895

:GFDATE_14888
set_local_var_bit_const 3@ {bitIndex} 13

:GFDATE_14895
goto @GFDATE_14902

:GFDATE_14902
return 

:GFDATE_14904
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16338 {caseNum1} 0 {caseLabel1} @GFDATE_14967 {caseNum2} 1 {caseLabel2} @GFDATE_15133 {caseNum3} 2 {caseLabel3} @GFDATE_15594 {caseNum4} 3 {caseLabel4} @GFDATE_15708 {caseNum5} 4 {caseLabel5} @GFDATE_15775 {caseNum6} -1 {caseLabel6} @GFDATE_16338 {caseNum7} -1 {caseLabel7} @GFDATE_16338

:GFDATE_14967
set_local_var_bit_const 3@ {bitIndex} 1
clear_help 
set_player_control $player1 {state} False
set_player_fire_button $player1 {enabled} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
task_turn_char_to_face_char $scplayer {target} 0@
task_turn_char_to_face_char 0@ {target} $scplayer
2@ += 1
goto @GFDATE_16338

:GFDATE_15133
25@ = get_script_task_status $scplayer {taskId} 1593
26@ = get_script_task_status 0@ {taskId} 1593
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_15457
set_char_collision $scplayer {state} False
set_char_collision 0@ {state} False
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 5@ {y} 8@ {z} 11@
6@, 9@, 12@ = get_char_coordinates 0@
12@ = get_ground_z_for_3d_coord 6@ {y} 9@ {z} 12@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = get_char_heading $scplayer
13@ += 180.0
set_char_heading 0@ {heading} 13@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_15443
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_15443
2@ += 1
goto @GFDATE_15587

:GFDATE_15457
25@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15522
25@ = get_script_task_status $scplayer {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15522
task_stand_still $scplayer {time} -1

:GFDATE_15522
25@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15587
25@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15587
task_stand_still 0@ {time} -1

:GFDATE_15587
goto @GFDATE_16338

:GFDATE_15594
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
task_play_anim $scplayer {animationName} "GIFT_GIVE" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GIFT_GET" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
TIMERB = 0
2@ += 1
goto @GFDATE_16338

:GFDATE_15708
if 
  TIMERB >= 3966
goto_if_false @GFDATE_15768
25@ = get_current_char_weapon $scplayer
remove_weapon_from_char $scplayer {weaponType} 25@
give_weapon_to_char 0@ {weaponType} 25@ {ammo} 0
set_var_int_to_constant $iGFSayContext = 298
2@ = 4

:GFDATE_15768
goto @GFDATE_16338

:GFDATE_15775
13@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "GIFT_GIVE"
goto_if_false @GFDATE_15831
13@ = get_char_anim_current_time $scplayer {animationName} "GIFT_GIVE"

:GFDATE_15831
if 
  13@ > -1.0
goto_if_false @GFDATE_16087
if 
  13@ == 1.0
goto_if_false @GFDATE_16080
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_player_fire_button $player1 {enabled} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
25@ = get_current_char_weapon 0@
remove_weapon_from_char 0@ {weaponType} 25@
$iGFLikesPlayer($iGFidx,6i) += 1
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_16080
goto @GFDATE_16331

:GFDATE_16087
clear_char_tasks $scplayer
task_pause 0@ {time} 0
$iGFLikesPlayer($iGFidx,6i) += 1
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_player_fire_button $player1 {enabled} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_16310
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_16310
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_16331
goto @GFDATE_16338

:GFDATE_16338
return 

:GFDATE_16340
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_16373
$iGFLikesPlayer($iGFidx,6i) = -99

:GFDATE_16373
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_16404
25@ = -1
return 

:GFDATE_16404
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_16431
25@ = 1
return 

:GFDATE_16431
25@ = get_int_stat StatId.SexAppeal
25@ /= 10
switch_start $iGFidx {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16593 {caseNum1} 2 {caseLabel1} @GFDATE_16508 {caseNum2} 3 {caseLabel2} @GFDATE_16551 {caseNum3} -1 {caseLabel3} @GFDATE_16593 {caseNum4} -1 {caseLabel4} @GFDATE_16593 {caseNum5} -1 {caseLabel5} @GFDATE_16593 {caseNum6} -1 {caseLabel6} @GFDATE_16593 {caseNum7} -1 {caseLabel7} @GFDATE_16593

:GFDATE_16508
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "COUNTRYTR"
goto_if_false @GFDATE_16544
25@ += 25

:GFDATE_16544
goto @GFDATE_16593

:GFDATE_16551
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "POLICETR"
goto_if_false @GFDATE_16586
25@ += 25

:GFDATE_16586
goto @GFDATE_16593

:GFDATE_16593
26@ = get_int_stat StatId.Fat
26@ /= 10
26@ /= 2
if 
  26@ >= 25
goto_if_false @GFDATE_16698
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_16669
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_16691

:GFDATE_16669
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 21

:GFDATE_16691
goto @GFDATE_16804

:GFDATE_16698
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_16749
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 20
goto @GFDATE_16804

:GFDATE_16749
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_16804
if 
  26@ == 0
goto_if_false @GFDATE_16796
26@ = 5

:GFDATE_16796
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_16804
26@ = get_int_stat StatId.BodyMuscle
26@ /= 10
26@ /= 2
if 
  26@ >= 20
goto_if_false @GFDATE_16931
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_16880
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_16924

:GFDATE_16880
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_16924
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 22

:GFDATE_16924
goto @GFDATE_17037

:GFDATE_16931
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_16982
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 21
goto @GFDATE_17037

:GFDATE_16982
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_17037
if 
  26@ == 0
goto_if_false @GFDATE_17029
26@ = 5

:GFDATE_17029
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_17037
set_lvar_int_to_var_int 26@ = $iGFLikesPlayer($iGFidx,6i)
26@ /= 2
add_int_lvar_to_int_lvar 25@ += 26@
if 
  is_int_lvar_greater_or_equal_to_int_var 25@ >= $iGFDesiredSexAppeal($iGFidx,6i)
goto_if_false @GFDATE_17101
25@ = 1
goto @GFDATE_17108

:GFDATE_17101
25@ = -1

:GFDATE_17108
return 

:GFDATE_17110
25@ = generate_random_int_in_range 0 {max} 100
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_17217
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17186
set_var_int_to_constant $iGFSayContext = 261
goto @GFDATE_17194

:GFDATE_17186
set_var_int_to_constant $iGFSayContext = 262

:GFDATE_17194
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18362
gosub @GFDATE_17453
return 

:GFDATE_17217
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_17317
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17284
set_var_int_to_constant $iGFSayContext = 263
goto @GFDATE_17292

:GFDATE_17284
set_var_int_to_constant $iGFSayContext = 264

:GFDATE_17292
set_var_int_to_constant $iCJSayContext = 10
display_onscreen_counter_with_string $9466 {display} CounterDisplay.Bar {text} 'GF_0029'
return 

:GFDATE_17317
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_17415
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17384
set_var_int_to_constant $iGFSayContext = 265
goto @GFDATE_17392

:GFDATE_17384
set_var_int_to_constant $iGFSayContext = 266

:GFDATE_17392
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18362
gosub @GFDATE_17453
return 

:GFDATE_17415
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 15
goto_if_false @GFDATE_17451
set_var_int_to_constant $iGFSayContext = 304
set_var_int_to_constant $iCJSayContext = 243
return 

:GFDATE_17451
return 

:GFDATE_17453
if 
  is_player_playing $player1
goto_if_false @GFDATE_18360
gosub @GFDATE_32037
25@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_17670
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_17630
15@ = add_short_range_sprite_blip_for_coord 2862.0 {y} -1439.0 {z} 10.0 {sprite} RadarSprite.Diner
16@ = add_short_range_sprite_blip_for_coord 2317.0 {y} -1645.0 {z} 13.0 {sprite} RadarSprite.DateDrink
17@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDrink
18@ = add_short_range_sprite_blip_for_coord 415.3947 {y} -1431.017 {z} 31.5057 {sprite} RadarSprite.DateFood
19@ = add_short_range_sprite_blip_for_coord 384.6615 {y} -1819.5291 {z} 6.8414 {sprite} RadarSprite.Diner

:GFDATE_17630
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_17670
15@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDisco

:GFDATE_17670
if 
  is_int_lvar_equal_to_constant 25@ == 2
goto_if_false @GFDATE_17878
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_17838
15@ = add_short_range_sprite_blip_for_coord -2463.0 {y} 132.0 {z} 34.0 {sprite} RadarSprite.DateFood
16@ = add_short_range_sprite_blip_for_coord -1885.0 {y} 747.0 {z} 44.0 {sprite} RadarSprite.DateFood
17@ = add_short_range_sprite_blip_for_coord -1699.0 {y} 1380.0 {z} 6.0 {sprite} RadarSprite.Diner
18@ = add_short_range_sprite_blip_for_coord -2524.0 {y} 1216.0 {z} 37.0 {sprite} RadarSprite.Diner
19@ = add_short_range_sprite_blip_for_coord -2241.0 {y} -88.0 {z} 35.0 {sprite} RadarSprite.DateDrink
20@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDrink

:GFDATE_17838
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_17878
15@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDisco

:GFDATE_17878
if 
  is_int_lvar_equal_to_constant 25@ == 3
goto_if_false @GFDATE_18064
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18024
15@ = add_short_range_sprite_blip_for_coord 2441.145 {y} 2065.145 {z} 9.847 {sprite} RadarSprite.DateDrink
16@ = add_short_range_sprite_blip_for_coord 1693.0 {y} 2208.0 {z} 9.8 {sprite} RadarSprite.DateFood
17@ = add_short_range_sprite_blip_for_coord 2490.666 {y} 2065.145 {z} 9.847 {sprite} RadarSprite.DateFood
18@ = add_short_range_sprite_blip_for_coord 1376.892 {y} 2327.792 {z} 9.822 {sprite} RadarSprite.Diner
19@ = add_short_range_sprite_blip_for_coord 2368.0581 {y} 1983.1851 {z} 10.003 {sprite} RadarSprite.Diner

:GFDATE_18024
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18064
15@ = add_short_range_sprite_blip_for_coord 2507.4399 {y} 1242.3101 {z} 9.833 {sprite} RadarSprite.DateDisco

:GFDATE_18064
if 
  is_int_lvar_equal_to_constant 25@ == 0
goto_if_false @GFDATE_18360
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18276
15@ = add_short_range_sprite_blip_for_coord 292.865 {y} -195.47 {z} 0.852 {sprite} RadarSprite.DateDrink
16@ = add_short_range_sprite_blip_for_coord 681.544 {y} -473.494 {z} 15.592 {sprite} RadarSprite.Diner
17@ = add_short_range_sprite_blip_for_coord -1941.516 {y} 2379.6721 {z} 48.4922 {sprite} RadarSprite.Diner
18@ = add_short_range_sprite_blip_for_coord -857.14 {y} 1537.277 {z} 21.587 {sprite} RadarSprite.DateFood
19@ = add_short_range_sprite_blip_for_coord -85.2583 {y} 1378.991 {z} 9.2812 {sprite} RadarSprite.DateDrink
20@ = add_short_range_sprite_blip_for_coord -53.867 {y} 1189.297 {z} 18.414 {sprite} RadarSprite.Diner
21@ = add_short_range_sprite_blip_for_coord 2317.0 {y} -1645.0 {z} 13.0 {sprite} RadarSprite.DateDrink
22@ = add_short_range_sprite_blip_for_coord 415.3947 {y} -1431.017 {z} 31.5057 {sprite} RadarSprite.DateFood

:GFDATE_18276
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18360
15@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDisco
16@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDisco
17@ = add_short_range_sprite_blip_for_coord 2507.4399 {y} 1242.3101 {z} 9.833 {sprite} RadarSprite.DateDisco

:GFDATE_18360
return 

:GFDATE_18362
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18660
switch_entry_exit 'FDREST1' {state} True
switch_entry_exit 'REST2' {state} True
switch_entry_exit 'DINER1' {state} True
switch_entry_exit 'DINER2' {state} True
switch_entry_exit 'TSDINER' {state} True
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDREST1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'TSDINER' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} True
goto @GFDATE_18710

:GFDATE_18660
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18710
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.WarpGroup {state} True
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.WarpGroup {state} True

:GFDATE_18710
return 

:GFDATE_18712
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'FDPIZA' {state} True
switch_entry_exit 'FDBURG' {state} True
switch_entry_exit 'FDCHICK' {state} True
switch_entry_exit 'BAR1' {state} True
switch_entry_exit 'BAR2' {state} True
switch_entry_exit 'UFOBAR' {state} True
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDREST1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'TSDINER' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.WarpGroup {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.WarpGroup {state} False
return 

:GFDATE_19097
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDBURG' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'BAR1' {state} False
switch_entry_exit 'BAR2' {state} False
switch_entry_exit 'UFOBAR' {state} False
return 

:GFDATE_19242
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} False
return 

:GFDATE_19405
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_19690 {caseNum1} 0 {caseLabel1} @GFDATE_19468 {caseNum2} 1 {caseLabel2} @GFDATE_19579 {caseNum3} 2 {caseLabel3} @GFDATE_19542 {caseNum4} 3 {caseLabel4} @GFDATE_19505 {caseNum5} 4 {caseLabel5} @GFDATE_19616 {caseNum6} 5 {caseLabel6} @GFDATE_19653 {caseNum7} -1 {caseLabel7} @GFDATE_19690

:GFDATE_19468
4@ = 2402.012
7@ = -1719.6479
10@ = 12.6219
goto @GFDATE_19690

:GFDATE_19505
4@ = -1398.101
7@ = 2636.873
10@ = 54.7031
goto @GFDATE_19690

:GFDATE_19542
4@ = -377.3978
7@ = -1438.692
10@ = 24.7209
goto @GFDATE_19690

:GFDATE_19579
4@ = -1796.952
7@ = 1197.376
10@ = 24.1094
goto @GFDATE_19690

:GFDATE_19616
4@ = -2576.8081
7@ = 1144.744
10@ = 54.8547
goto @GFDATE_19690

:GFDATE_19653
4@ = 2035.3621
7@ = 2732.4109
10@ = 9.8203
goto @GFDATE_19690

:GFDATE_19690
return 

:GFDATE_19692
if 
  is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_19787
gosub @GFDATE_19405
if 
  locate_stopped_char_any_means_3d 0@ {x} 4@ {y} 7@ {z} 10@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @GFDATE_19773
24@ = -2
goto @GFDATE_19780

:GFDATE_19773
24@ = -1

:GFDATE_19780
goto @GFDATE_19986

:GFDATE_19787
24@ = get_area_visible 
if 
  24@ <> 0
goto_if_false @GFDATE_19979
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_19884
v$active_pool_script = get_name_of_entry_exit_char_used $scplayer
gosub @GFDATE_22008
if 
  25@ > -1
goto_if_false @GFDATE_19870
return 
goto @GFDATE_19877

:GFDATE_19870
24@ = -1

:GFDATE_19877
goto @GFDATE_19972

:GFDATE_19884
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_19965
v$active_pool_script = get_name_of_entry_exit_char_used $scplayer
gosub @GFDATE_22008
if 
  25@ == 8
goto_if_false @GFDATE_19951
set_local_var_bit_const 3@ {bitIndex} 13
return 
goto @GFDATE_19958

:GFDATE_19951
24@ = -1

:GFDATE_19958
goto @GFDATE_19972

:GFDATE_19965
24@ = -1

:GFDATE_19972
goto @GFDATE_19986

:GFDATE_19979
24@ = -1

:GFDATE_19986
return 

:GFDATE_19988
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_20213 {caseNum1} 0 {caseLabel1} @GFDATE_20051 {caseNum2} 1 {caseLabel2} @GFDATE_20132 {caseNum3} 2 {caseLabel3} @GFDATE_20105 {caseNum4} 3 {caseLabel4} @GFDATE_20078 {caseNum5} 4 {caseLabel5} @GFDATE_20159 {caseNum6} 5 {caseLabel6} @GFDATE_20186 {caseNum7} -1 {caseLabel7} @GFDATE_20213

:GFDATE_20051
append_to_next_cutscene 'GANGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20078
append_to_next_cutscene 'COPGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20105
append_to_next_cutscene 'GUNGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20132
append_to_next_cutscene 'MECGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20159
append_to_next_cutscene 'NURGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20186
append_to_next_cutscene 'CROGRL3' {animName} 'GFRIEND'
goto @GFDATE_20213

:GFDATE_20213
return 

:GFDATE_20215
gosub @GFDATE_22008
switch_start 25@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @GFDATE_22006 {caseNum1} 1 {caseLabel1} @GFDATE_20838 {caseNum2} 2 {caseLabel2} @GFDATE_20974 {caseNum3} 3 {caseLabel3} @GFDATE_20350 {caseNum4} 4 {caseLabel4} @GFDATE_20566 {caseNum5} 5 {caseLabel5} @GFDATE_20702 {caseNum6} 6 {caseLabel6} @GFDATE_21462 {caseNum7} 7 {caseLabel7} @GFDATE_21734
switch_continued 8 {caseLabel1} @GFDATE_21190 {caseNum2} 9 {caseLabel2} @GFDATE_21326 {caseNum3} 10 {caseLabel3} @GFDATE_21870 {caseNum4} 11 {caseLabel4} @GFDATE_21598 {caseNum5} -1 {caseLabel5} @GFDATE_22006 {caseNum6} -1 {caseLabel6} @GFDATE_22006 {caseNum7} -1 {caseLabel7} @GFDATE_22006 {caseNum8} -1 {caseLabel8} @GFDATE_22006 {caseNum9} -1 {caseLabel9} @GFDATE_22006

:GFDATE_20350
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 370.0
7@ = -125.0
10@ = 1001.52
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_20501
append_to_next_cutscene 'GFPIZ1' {animName} 'GFPIZ1'
append_to_next_cutscene 'GFPIZ2' {animName} 'GFPIZ2'
load_cutscene 'DATE1A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_20559

:GFDATE_20501
append_to_next_cutscene 'GFPIZ1' {animName} 'GFPIZ1'
append_to_next_cutscene 'GFPIZ2' {animName} 'GFPIZ2'
load_cutscene 'DATE1B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_20559
goto @GFDATE_22006

:GFDATE_20566
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 445.381
7@ = -14.147
10@ = 1001.731
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 5
goto_if_false @GFDATE_20677
load_cutscene 'DATE5A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_20695

:GFDATE_20677
load_cutscene 'DATE5B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_20695
goto @GFDATE_22006

:GFDATE_20702
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 441.871
7@ = -60.839
10@ = 1000.675
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 5
goto_if_false @GFDATE_20813
load_cutscene 'DATE5A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_20831

:GFDATE_20813
load_cutscene 'DATE5B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_20831
goto @GFDATE_22006

:GFDATE_20838
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 374.478
7@ = -8.415
10@ = 1002.86
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_20949
load_cutscene 'DATE2A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_20967

:GFDATE_20949
load_cutscene 'DATE2B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_20967
goto @GFDATE_22006

:GFDATE_20974
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 367.891
7@ = -67.591
10@ = 1001.516
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_21125
append_to_next_cutscene 'BURG_PA' {animName} 'GFPIZ1'
append_to_next_cutscene 'BURG_GA' {animName} 'GFPIZ2'
load_cutscene 'DATE1A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21183

:GFDATE_21125
append_to_next_cutscene 'BURG_PA' {animName} 'GFPIZ1'
append_to_next_cutscene 'BURG_GA' {animName} 'GFPIZ2'
load_cutscene 'DATE1B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21183
goto @GFDATE_22006

:GFDATE_21190
set_extra_colours 5 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = 498.536
7@ = -18.2
10@ = 1000.651
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_21301
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21319

:GFDATE_21301
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21319
goto @GFDATE_22006

:GFDATE_21326
set_extra_colours 6 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = 490.718
7@ = -79.168
10@ = 998.76
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_21437
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21455

:GFDATE_21437
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21455
goto @GFDATE_22006

:GFDATE_21462
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 449.41
7@ = -86.72
10@ = 1000.53
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_21573
load_cutscene 'DATE3A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21591

:GFDATE_21573
load_cutscene 'DATE3B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21591
goto @GFDATE_22006

:GFDATE_21598
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 678.028
7@ = -452.9
10@ = -24.444
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_21709
load_cutscene 'DATE3A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21727

:GFDATE_21709
load_cutscene 'DATE3B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21727
goto @GFDATE_22006

:GFDATE_21734
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 449.41
7@ = -108.24
10@ = 1000.528
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_21845
load_cutscene 'DATE4A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21863

:GFDATE_21845
load_cutscene 'DATE4B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21863
goto @GFDATE_22006

:GFDATE_21870
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = -226.249
7@ = 1405.448
10@ = 27.7
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_21981
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21999

:GFDATE_21981
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21999
goto @GFDATE_22006

:GFDATE_22006
return 

:GFDATE_22008
25@ = -1
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDCHICK"
goto_if_false @GFDATE_22049
25@ = 1
return 

:GFDATE_22049
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDBURG"
goto_if_false @GFDATE_22082
25@ = 2
return 

:GFDATE_22082
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDPIZA"
goto_if_false @GFDATE_22115
25@ = 3
return 

:GFDATE_22115
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDREST1"
goto_if_false @GFDATE_22149
25@ = 4
return 

:GFDATE_22149
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "REST2"
goto_if_false @GFDATE_22181
25@ = 5
return 

:GFDATE_22181
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "DINER1"
goto_if_false @GFDATE_22214
25@ = 6
return 

:GFDATE_22214
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "DINER2"
goto_if_false @GFDATE_22247
25@ = 7
return 

:GFDATE_22247
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "BAR1"
goto_if_false @GFDATE_22278
25@ = 8
return 

:GFDATE_22278
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "BAR2"
goto_if_false @GFDATE_22309
25@ = 9
return 

:GFDATE_22309
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "UFOBAR"
goto_if_false @GFDATE_22342
25@ = 10
return 

:GFDATE_22342
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "TSDINER"
goto_if_false @GFDATE_22376
25@ = 11
return 

:GFDATE_22376
set_var_text_label16 v$active_pool_script = "NIL"
return 

:GFDATE_22388
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_23093 {caseNum1} 0 {caseLabel1} @GFDATE_22451 {caseNum2} 1 {caseLabel2} @GFDATE_22665 {caseNum3} 2 {caseLabel3} @GFDATE_22772 {caseNum4} 3 {caseLabel4} @GFDATE_22558 {caseNum5} 4 {caseLabel5} @GFDATE_22879 {caseNum6} 5 {caseLabel6} @GFDATE_22986 {caseNum7} -1 {caseLabel7} @GFDATE_23093

:GFDATE_22451
4@ = 2394.408
7@ = -1728.215
10@ = 14.2715
5@ = 2395.0659
8@ = -1727.465
11@ = 14.2063
6@ = 2401.9099
9@ = -1715.6331
12@ = 13.0848
13@ = 180.0
goto @GFDATE_23093

:GFDATE_22558
4@ = -1401.494
7@ = 2640.0991
10@ = 59.3883
5@ = -1400.704
8@ = 2639.6411
11@ = 58.9806
6@ = -1390.6
9@ = 2638.3491
12@ = 54.9965
13@ = 90.0
goto @GFDATE_23093

:GFDATE_22665
4@ = -1799.7371
7@ = 1192.863
10@ = 29.6868
5@ = -1799.472
8@ = 1193.683
11@ = 29.1813
6@ = -1799.8101
9@ = 1200.6021
12@ = 24.1194
13@ = 197.0
goto @GFDATE_23093

:GFDATE_22772
4@ = -383.3153
7@ = -1435.266
10@ = 26.695
5@ = -382.5756
8@ = -1435.887
11@ = 26.4366
6@ = -382.0961
9@ = -1438.207
12@ = 24.7209
13@ = 269.3417
goto @GFDATE_23093

:GFDATE_22879
4@ = -2582.293
7@ = 1147.762
10@ = 59.6235
5@ = -2581.406
8@ = 1147.7679
11@ = 59.1605
6@ = -2574.0449
9@ = 1152.397
12@ = 54.7422
13@ = 151.7896
goto @GFDATE_23093

:GFDATE_22986
4@ = 2032.235
7@ = 2734.541
10@ = 13.3226
5@ = 2032.744
8@ = 2733.7141
11@ = 13.0817
6@ = 2037.401
9@ = 2723.283
12@ = 9.8352
13@ = 8.0
goto @GFDATE_23093

:GFDATE_23093
return 

:GFDATE_23095
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Ballas
if 
  25@ > 0
goto_if_false @GFDATE_23125
return 

:GFDATE_23125
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Aztecas
if 
  25@ > 0
goto_if_false @GFDATE_23155
return 

:GFDATE_23155
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Vagos
if 
  25@ > 0
goto_if_false @GFDATE_23185
return 

:GFDATE_23185
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Rifa
if 
  25@ > 0
goto_if_false @GFDATE_23215
return 

:GFDATE_23215
return 

:GFDATE_23217
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_23275
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_23268
set_var_int_to_constant $iGFSayContext = 270

:GFDATE_23268
goto @GFDATE_23308

:GFDATE_23275
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_23308
set_var_int_to_constant $iGFSayContext = 269

:GFDATE_23308
set_local_var_bit_const 3@ {bitIndex} 26
return 

:GFDATE_23317
1@ = 5
2@ = 0
return 

:GFDATE_23333
25@ = 0
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_23711
if and
  not is_char_in_any_car 0@
  not is_player_using_jetpack $player1
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @GFDATE_23711
if 
  is_char_stopped 0@
goto_if_false @GFDATE_23711
4@, 7@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 4@ {y} 7@ {z} 10@ {xRadius} 1.3 {yRadius} 1.3 {zRadius} 1.0 {drawSphere} False
goto_if_false @GFDATE_23711
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_char_coordinates 0@
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 0.02
set_lvar_float_to_lvar_float 14@ = 11@
14@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 10@ > 13@
  is_float_lvar_greater_than_float_lvar 14@ > 10@
goto_if_false @GFDATE_23711
if or
  is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @GFDATE_23664
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 28
  not is_help_message_being_displayed 
goto_if_false @GFDATE_23648
print_help 'GF_H013'
set_local_var_bit_const 3@ {bitIndex} 28

:GFDATE_23648
25@ = 2
return 
goto @GFDATE_23711

:GFDATE_23664
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 4
  not is_help_message_being_displayed 
goto_if_false @GFDATE_23702
print_help 'GF_0021'
set_local_var_bit_const 3@ {bitIndex} 4

:GFDATE_23702
25@ = 1
return 

:GFDATE_23711
return 

:GFDATE_23713
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_23743
request_animation "BLOWJOBZ"

:GFDATE_23743
request_animation "KISSING"

:GFDATE_23754
wait 0
if 
  has_animation_loaded "KISSING"
goto_if_false @GFDATE_23865
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_23856
if 
  has_animation_loaded "BLOWJOBZ"
goto_if_false @GFDATE_23830
return 
goto @GFDATE_23849

:GFDATE_23830
request_animation "BLOWJOBZ"
goto @GFDATE_23754

:GFDATE_23849
goto @GFDATE_23858

:GFDATE_23856
return 

:GFDATE_23858
goto @GFDATE_23883

:GFDATE_23865
request_animation "KISSING"
goto @GFDATE_23754

:GFDATE_23883
if 
  is_local_var_bit_set_const 3@ {bitIndex} 13
goto_if_false @GFDATE_23955
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_23934
TIMERA = 30000
goto @GFDATE_23941

:GFDATE_23934
TIMERA = 0

:GFDATE_23941
clear_local_var_bit_const 3@ {bitIndex} 13
goto @GFDATE_24662

:GFDATE_23955
if 
  is_local_var_bit_set_const 3@ {bitIndex} 8
goto_if_false @GFDATE_24053
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24006
TIMERA = 30000
goto @GFDATE_24039

:GFDATE_24006
if 
  30@ == -1
goto_if_false @GFDATE_24032
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24032
TIMERA = 0

:GFDATE_24039
clear_local_var_bit_const 3@ {bitIndex} 8
goto @GFDATE_24662

:GFDATE_24053
switch_start 1@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @GFDATE_24662 {caseNum1} 1 {caseLabel1} @GFDATE_24181 {caseNum2} 2 {caseLabel2} @GFDATE_24262 {caseNum3} 3 {caseLabel3} @GFDATE_24276 {caseNum4} 4 {caseLabel4} @GFDATE_24290 {caseNum5} 5 {caseLabel5} @GFDATE_24371 {caseNum6} 6 {caseLabel6} @GFDATE_24385 {caseNum7} 7 {caseLabel7} @GFDATE_24480
switch_continued 10 {caseLabel1} @GFDATE_24575 {caseNum2} 11 {caseLabel2} @GFDATE_24589 {caseNum3} -1 {caseLabel3} @GFDATE_24662 {caseNum4} -1 {caseLabel4} @GFDATE_24662 {caseNum5} -1 {caseLabel5} @GFDATE_24662 {caseNum6} -1 {caseLabel6} @GFDATE_24662 {caseNum7} -1 {caseLabel7} @GFDATE_24662 {caseNum8} -1 {caseLabel8} @GFDATE_24662 {caseNum9} -1 {caseLabel9} @GFDATE_24662

:GFDATE_24181
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  is_char_shooting 0@
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24222
TIMERA = 0

:GFDATE_24222
if 
  30@ > 0
goto_if_false @GFDATE_24255
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24255
goto @GFDATE_24662

:GFDATE_24262
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24276
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24290
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  is_char_shooting 0@
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24331
TIMERA = 0

:GFDATE_24331
if 
  30@ > 0
goto_if_false @GFDATE_24364
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24364
goto @GFDATE_24662

:GFDATE_24371
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24385
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_24473
if 
  30@ == -1
goto_if_false @GFDATE_24433
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24433
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24466
TIMERA = 30000
goto @GFDATE_24473

:GFDATE_24466
TIMERA = 0

:GFDATE_24473
goto @GFDATE_24662

:GFDATE_24480
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_24568
if 
  30@ == -1
goto_if_false @GFDATE_24528
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24528
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24561
TIMERA = 30000
goto @GFDATE_24568

:GFDATE_24561
TIMERA = 0

:GFDATE_24568
goto @GFDATE_24662

:GFDATE_24575
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24589
if 
  30@ == -1
goto_if_false @GFDATE_24615
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24615
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24648
TIMERA = 30000
goto @GFDATE_24655

:GFDATE_24648
TIMERA = 0

:GFDATE_24655
goto @GFDATE_24662

:GFDATE_24662
return 

:GFDATE_24664
if 
  0.0 >= $fFun
goto_if_false @GFDATE_24695
$fFun -= 0.5

:GFDATE_24695
add_float_var_to_float_var $iFun += $fFun
if 
  0.0 > $iFun
goto_if_false @GFDATE_24734
$iFun = 0.0

:GFDATE_24734
if 
  $iFun > 100.0
goto_if_false @GFDATE_24765
$iFun = 100.0

:GFDATE_24765
cset_var_int_to_var_float $9466 =# $iFun
set_local_var_bit_const 3@ {bitIndex} 8
return 

:GFDATE_24782
26@ = get_current_population_zone_type 
switch_start 26@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @GFDATE_26147 {caseNum1} 0 {caseLabel1} @GFDATE_25022 {caseNum2} 1 {caseLabel2} @GFDATE_25515 {caseNum3} 2 {caseLabel3} @GFDATE_25989 {caseNum4} 3 {caseLabel4} @GFDATE_25594 {caseNum5} 4 {caseLabel5} @GFDATE_25101 {caseNum6} 5 {caseLabel6} @GFDATE_25008 {caseNum7} 6 {caseLabel7} @GFDATE_25015
switch_continued 7 {caseLabel1} @GFDATE_26068 {caseNum2} 8 {caseLabel2} @GFDATE_25357 {caseNum3} 9 {caseLabel3} @GFDATE_25752 {caseNum4} 10 {caseLabel4} @GFDATE_25259 {caseNum5} 11 {caseLabel5} @GFDATE_24980 {caseNum6} 12 {caseLabel6} @GFDATE_25910 {caseNum7} 13 {caseLabel7} @GFDATE_25831 {caseNum8} 14 {caseLabel8} @GFDATE_25673 {caseNum9} 15 {caseLabel9} @GFDATE_25180
switch_continued 16 {caseLabel1} @GFDATE_24994 {caseNum2} 17 {caseLabel2} @GFDATE_25436 {caseNum3} 18 {caseLabel3} @GFDATE_24987 {caseNum4} 19 {caseLabel4} @GFDATE_25001 {caseNum5} -1 {caseLabel5} @GFDATE_26147 {caseNum6} -1 {caseLabel6} @GFDATE_26147 {caseNum7} -1 {caseLabel7} @GFDATE_26147 {caseNum8} -1 {caseLabel8} @GFDATE_26147 {caseNum9} -1 {caseLabel9} @GFDATE_26147

:GFDATE_24980
goto @GFDATE_26147

:GFDATE_24987
goto @GFDATE_26147

:GFDATE_24994
goto @GFDATE_26147

:GFDATE_25001
goto @GFDATE_26147

:GFDATE_25008
goto @GFDATE_26147

:GFDATE_25015
goto @GFDATE_26147

:GFDATE_25022
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25087
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25073
$fFun += 0.5

:GFDATE_25073
gosub @GFDATE_26149
goto @GFDATE_25094

:GFDATE_25087
gosub @GFDATE_26269

:GFDATE_25094
goto @GFDATE_26147

:GFDATE_25101
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25166
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25152
$fFun += 0.5

:GFDATE_25152
gosub @GFDATE_26149
goto @GFDATE_25173

:GFDATE_25166
gosub @GFDATE_26269

:GFDATE_25173
goto @GFDATE_26147

:GFDATE_25180
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25245
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25231
$fFun += 0.5

:GFDATE_25231
gosub @GFDATE_26149
goto @GFDATE_25252

:GFDATE_25245
gosub @GFDATE_26269

:GFDATE_25252
goto @GFDATE_26147

:GFDATE_25259
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25343
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25329
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25329
$fFun += 0.5

:GFDATE_25329
gosub @GFDATE_26149
goto @GFDATE_25350

:GFDATE_25343
gosub @GFDATE_26269

:GFDATE_25350
goto @GFDATE_26147

:GFDATE_25357
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25422
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25408
$fFun += 0.5

:GFDATE_25408
gosub @GFDATE_26149
goto @GFDATE_25429

:GFDATE_25422
gosub @GFDATE_26269

:GFDATE_25429
goto @GFDATE_26147

:GFDATE_25436
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25501
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25487
$fFun += 0.5

:GFDATE_25487
gosub @GFDATE_26149
goto @GFDATE_25508

:GFDATE_25501
gosub @GFDATE_26269

:GFDATE_25508
goto @GFDATE_26147

:GFDATE_25515
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 18
goto_if_false @GFDATE_25580
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25566
$fFun += 0.5

:GFDATE_25566
gosub @GFDATE_26149
goto @GFDATE_25587

:GFDATE_25580
gosub @GFDATE_26269

:GFDATE_25587
goto @GFDATE_26147

:GFDATE_25594
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 18
goto_if_false @GFDATE_25659
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25645
$fFun += 0.5

:GFDATE_25645
gosub @GFDATE_26149
goto @GFDATE_25666

:GFDATE_25659
gosub @GFDATE_26269

:GFDATE_25666
goto @GFDATE_26147

:GFDATE_25673
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_25738
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25724
$fFun += 0.5

:GFDATE_25724
gosub @GFDATE_26149
goto @GFDATE_25745

:GFDATE_25738
gosub @GFDATE_26269

:GFDATE_25745
goto @GFDATE_26147

:GFDATE_25752
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_25817
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25803
$fFun += 0.5

:GFDATE_25803
gosub @GFDATE_26149
goto @GFDATE_25824

:GFDATE_25817
gosub @GFDATE_26269

:GFDATE_25824
goto @GFDATE_26147

:GFDATE_25831
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_25896
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25882
$fFun += 0.5

:GFDATE_25882
gosub @GFDATE_26149
goto @GFDATE_25903

:GFDATE_25896
gosub @GFDATE_26269

:GFDATE_25903
goto @GFDATE_26147

:GFDATE_25910
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 20
goto_if_false @GFDATE_25975
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25961
$fFun += 0.5

:GFDATE_25961
gosub @GFDATE_26149
goto @GFDATE_25982

:GFDATE_25975
gosub @GFDATE_26269

:GFDATE_25982
goto @GFDATE_26147

:GFDATE_25989
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 20
goto_if_false @GFDATE_26054
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26040
$fFun += 0.5

:GFDATE_26040
gosub @GFDATE_26149
goto @GFDATE_26061

:GFDATE_26054
gosub @GFDATE_26269

:GFDATE_26061
goto @GFDATE_26147

:GFDATE_26068
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 16
goto_if_false @GFDATE_26133
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26119
$fFun += 0.5

:GFDATE_26119
gosub @GFDATE_26149
goto @GFDATE_26140

:GFDATE_26133
gosub @GFDATE_26269

:GFDATE_26140
goto @GFDATE_26147

:GFDATE_26147
return 

:GFDATE_26149
26@ = get_current_population_zone_type 
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26267
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_26232
if 
  $9466 > 0
goto_if_false @GFDATE_26225
set_var_int_to_constant $iGFSayContext = 307
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26225
goto @GFDATE_26267

:GFDATE_26232
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26267
set_var_int_to_constant $iGFSayContext = 307
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26267
return 

:GFDATE_26269
26@ = get_current_population_zone_type 
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26387
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_26352
if 
  $9466 > 0
goto_if_false @GFDATE_26345
set_var_int_to_constant $iGFSayContext = 306
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26345
goto @GFDATE_26387

:GFDATE_26352
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26387
set_var_int_to_constant $iGFSayContext = 306
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26387
return 

:GFDATE_26389
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_26454
28@ = store_car_char_is_in_no_save 0@
25@ = get_car_health 28@
if 
  29@ == -1
goto_if_false @GFDATE_26447
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_26447
goto @GFDATE_26461

:GFDATE_26454
29@ = -1

:GFDATE_26461
return 
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_26838 {caseNum1} 0 {caseLabel1} @GFDATE_26526 {caseNum2} 1 {caseLabel2} @GFDATE_26578 {caseNum3} 2 {caseLabel3} @GFDATE_26630 {caseNum4} 3 {caseLabel4} @GFDATE_26682 {caseNum5} 4 {caseLabel5} @GFDATE_26734 {caseNum6} 5 {caseLabel6} @GFDATE_26786 {caseNum7} -1 {caseLabel7} @GFDATE_26838

:GFDATE_26526
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26559
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26559
set_int_stat StatId.GirlfriendDenise {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26578
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26611
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26611
set_int_stat StatId.GirlfriendMichelle {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26630
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26663
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26663
set_int_stat StatId.GirlfriendHelena {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26682
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26715
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26715
set_int_stat StatId.GirlfriendBarbara {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26734
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26767
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26767
set_int_stat StatId.GirlfriendKatie {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26786
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26819
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26819
set_int_stat StatId.GirlfriendMillie {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_26838

:GFDATE_26838
return 

:GFDATE_26840
switch_start $iGF_TT_Status {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @GFDATE_30083 {caseNum1} -1 {caseLabel1} @GFDATE_26968 {caseNum2} 0 {caseLabel2} @GFDATE_26982 {caseNum3} 1 {caseLabel3} @GFDATE_27243 {caseNum4} 2 {caseLabel4} @GFDATE_27295 {caseNum5} 3 {caseLabel5} @GFDATE_27554 {caseNum6} 4 {caseLabel6} @GFDATE_27708 {caseNum7} 5 {caseLabel7} @GFDATE_27868
switch_continued 6 {caseLabel1} @GFDATE_27924 {caseNum2} 7 {caseLabel2} @GFDATE_28124 {caseNum3} 8 {caseLabel3} @GFDATE_28357 {caseNum4} 9 {caseLabel4} @GFDATE_28461 {caseNum5} 10 {caseLabel5} @GFDATE_28678 {caseNum6} 11 {caseLabel6} @GFDATE_29075 {caseNum7} 12 {caseLabel7} @GFDATE_29346 {caseNum8} 13 {caseLabel8} @GFDATE_29599 {caseNum9} 99 {caseLabel9} @GFDATE_29735

:GFDATE_26968
clear_global_var_bit_const $iDateReport {bitIndex} 22
goto @GFDATE_30083

:GFDATE_26982
$iGF_TT_PedModel = generate_random_int_in_range 0 {max} 6
if and
  6 > $iGF_TT_PedModel
  is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iGF_TT_PedModel
  not is_int_var_equal_to_int_var $iGF_TT_PedModel == $iGFidx
goto_if_false @GFDATE_27236
if 
  $iGF_TT_PedModel == 0
goto_if_false @GFDATE_27059
set_var_int_to_constant $iGF_TT_PedModel = 195
set_var_int_to_constant $iGF_TT_CarModel = 545

:GFDATE_27059
if 
  $iGF_TT_PedModel == 1
goto_if_false @GFDATE_27093
set_var_int_to_constant $iGF_TT_PedModel = 192
set_var_int_to_constant $iGF_TT_CarModel = 557

:GFDATE_27093
if 
  $iGF_TT_PedModel == 3
goto_if_false @GFDATE_27127
set_var_int_to_constant $iGF_TT_PedModel = 190
set_var_int_to_constant $iGF_TT_CarModel = 599

:GFDATE_27127
if 
  $iGF_TT_PedModel == 2
goto_if_false @GFDATE_27161
set_var_int_to_constant $iGF_TT_PedModel = 191
set_var_int_to_constant $iGF_TT_CarModel = 568

:GFDATE_27161
if 
  $iGF_TT_PedModel == 4
goto_if_false @GFDATE_27195
set_var_int_to_constant $iGF_TT_PedModel = 193
set_var_int_to_constant $iGF_TT_CarModel = 442

:GFDATE_27195
if 
  $iGF_TT_PedModel == 5
goto_if_false @GFDATE_27229
set_var_int_to_constant $iGF_TT_PedModel = 194
set_var_int_to_constant $iGF_TT_CarModel = 533

:GFDATE_27229
$iGF_TT_Status = 1

:GFDATE_27236
goto @GFDATE_30083

:GFDATE_27243
if and
  has_model_loaded $iGF_TT_CarModel
  has_model_loaded $iGF_TT_PedModel
goto_if_false @GFDATE_27278
$iGF_TT_Status = 2
goto @GFDATE_27288

:GFDATE_27278
request_model $iGF_TT_CarModel
request_model $iGF_TT_PedModel

:GFDATE_27288
goto @GFDATE_30083

:GFDATE_27295
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 25.0 {zOffset} 0.0
if 
5@, 8@, 11@, 13@ = get_closest_car_node_with_heading 4@ {y} 7@ {z} 10@
goto_if_false @GFDATE_27540
clear_area 5@ {y} 8@ {z} 11@ {radius} 5.0 {clearParticles} True
$iGF_TT_Car = create_car $iGF_TT_CarModel {x} 5@ {y} 8@ {z} 11@
add_stuck_car_check_with_warp $iGF_TT_Car {distance} 1.0 {time} 1000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 545
goto_if_false @GFDATE_27442
change_car_colour $iGF_TT_Car {color1} 83 {color2} 1

:GFDATE_27442
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 442
goto_if_false @GFDATE_27470
change_car_colour $iGF_TT_Car {color1} 1 {color2} 1

:GFDATE_27470
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 533
goto_if_false @GFDATE_27498
change_car_colour $iGF_TT_Car {color1} 126 {color2} 1

:GFDATE_27498
$iGF_TT_driver = create_char_inside_car $iGF_TT_Car {pedType} PedType.CivFemale {modelId} $iGF_TT_PedModel
set_char_cant_be_dragged_out $iGF_TT_driver {state} True
set_car_heading $iGF_TT_Car {heading} 13@
$iGF_TT_Status = 3
goto @GFDATE_27547

:GFDATE_27540
$iGF_TT_Status = 99

:GFDATE_27547
goto @GFDATE_30083

:GFDATE_27554
clear_prints 
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
if and
  not is_car_dead $iGF_TT_Car
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_27694
attach_camera_to_vehicle_look_at_char $iGF_TT_Car {xOffset} -1.5 {yOffset} 1.5 {zOffset} 1.5 {char} $iGF_TT_driver {tilt} 6.0 {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $iGF_TT_driver {animationName} "GF_CARSPOT" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
print_help 'GF_H014'
$iGF_TT_Status = 4
goto @GFDATE_27701

:GFDATE_27694
$iGF_TT_Status = 99

:GFDATE_27701
goto @GFDATE_30083

:GFDATE_27708
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_27854
26@ = get_script_task_status $iGF_TT_driver {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_27847
if 
  not is_car_dead 28@
goto_if_false @GFDATE_27810
if and
  is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
  is_char_in_car $scplayer {vehicle} 28@
goto_if_false @GFDATE_27810
task_warp_char_into_car_as_passenger 0@ {vehicle} 28@ {seatId} 0

:GFDATE_27810
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
$iGF_TT_Blip = add_blip_for_car $iGF_TT_Car
$iGF_TT_Status = 5

:GFDATE_27847
goto @GFDATE_27861

:GFDATE_27854
$iGF_TT_Status = 99

:GFDATE_27861
goto @GFDATE_30083

:GFDATE_27868
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_27910
set_car_mission $iGF_TT_Car {carMission} CarMission.RamPlayerClose
$iGF_TT_Status = 6
goto @GFDATE_27917

:GFDATE_27910
$iGF_TT_Status = 99

:GFDATE_27917
goto @GFDATE_30083

:GFDATE_27924
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28110
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_car_coordinates $iGF_TT_Car
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  6.0 >= 13@
goto_if_false @GFDATE_28059
set_car_mission $iGF_TT_Car {carMission} CarMission.None
freeze_car_position $iGF_TT_Car {state} True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out
$iGF_TT_Status = 8
goto @GFDATE_28103

:GFDATE_28059
if 
  13@ > 200.0
goto_if_false @GFDATE_28103
set_lvar_int_to_lvar_int 26@ = TIMERA
26@ += 20000
$iGF_TT_Status = 7

:GFDATE_28103
goto @GFDATE_28117

:GFDATE_28110
$iGF_TT_Status = 99

:GFDATE_28117
goto @GFDATE_30083

:GFDATE_28124
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28343
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_car_coordinates $iGF_TT_Car
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  13@ > 180.0
goto_if_false @GFDATE_28329
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 26@
goto_if_false @GFDATE_28322
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_28257
remove_blip $iGF_TT_Blip

:GFDATE_28257
delete_char $iGF_TT_driver
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28304
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_28299
remove_stuck_car_check $iGF_TT_Car

:GFDATE_28299
delete_car $iGF_TT_Car

:GFDATE_28304
print_help 'GF_H016'
$iGF_TT_Status = 12

:GFDATE_28322
goto @GFDATE_28336

:GFDATE_28329
$iGF_TT_Status = 6

:GFDATE_28336
goto @GFDATE_28350

:GFDATE_28343
$iGF_TT_Status = 99

:GFDATE_28350
goto @GFDATE_30083

:GFDATE_28357
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28447
if 
  not get_fading_status 
goto_if_false @GFDATE_28440
clear_prints 
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_camera_in_front_of_player 
do_fade 500 {direction} Fade.In
TIMERB = 0
$iGF_TT_Status = 9

:GFDATE_28440
goto @GFDATE_28454

:GFDATE_28447
$iGF_TT_Status = 99

:GFDATE_28454
goto @GFDATE_30083

:GFDATE_28461
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28664
if 
  not get_fading_status 
goto_if_false @GFDATE_28657
4@, 7@, 10@ = get_active_camera_coordinates 
5@, 8@, 11@ = get_char_coordinates $iGF_TT_driver
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 1.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs $iGF_TT_driver {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs $iGF_TT_Car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable $iGF_TT_driver {animationName} "GF_CARARGUE_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
$iGFSpeechStatus = 7
set_var_int_to_constant $iGFSayContext = 288
$iGF_TT_Status = 10

:GFDATE_28657
goto @GFDATE_28671

:GFDATE_28664
$iGF_TT_Status = 99

:GFDATE_28671
goto @GFDATE_30083

:GFDATE_28678
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29061
26@ = get_script_task_status $iGF_TT_driver {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29054
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_28854
5@, 8@, 11@ = get_char_coordinates 0@
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 0@ {animationName} "GF_CARARGUE_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
set_var_int_to_constant $iGFSayContext = 289
$iGF_TT_Status = 11
goto @GFDATE_29054

:GFDATE_28854
4@, 7@, 10@ = get_char_coordinates 0@
5@, 8@, 11@ = get_char_coordinates $scplayer
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if or
  5.0 > 13@
  TIMERB > 6000
goto_if_false @GFDATE_29047
5@, 8@, 11@ = get_char_coordinates 0@
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 0@ {animationName} "GF_STREETARGUE_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
set_var_int_to_constant $iGFSayContext = 289
$iGF_TT_Status = 11
goto @GFDATE_29054

:GFDATE_29047
goto @GFDATE_30083

:GFDATE_29054
goto @GFDATE_29068

:GFDATE_29061
$iGF_TT_Status = 99

:GFDATE_29068
goto @GFDATE_30083

:GFDATE_29075
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29332
26@ = get_script_task_status 0@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29325
26@ = get_script_task_status $iGF_TT_driver {taskId} 1490
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29176
freeze_car_position $iGF_TT_Car {state} False
task_car_drive_wander $iGF_TT_driver {vehicle} $iGF_TT_Car {speed} 30.0 {drivingMode} DrivingMode.PloughThrough

:GFDATE_29176
if 
  not is_car_dead 28@
goto_if_false @GFDATE_29311
if 
  is_char_in_car 0@ {vehicle} 28@
goto_if_false @GFDATE_29255
26@ = get_script_task_status 0@ {taskId} 1485
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29248
task_leave_car 0@ {vehicle} 28@

:GFDATE_29248
goto @GFDATE_29311

:GFDATE_29255
26@ = get_script_task_status 0@ {taskId} 1873
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29311
task_flee_char_any_means 0@ {threat} $scplayer {safeDist} 100.0 {time} 5000 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 30.0

:GFDATE_29311
TIMERB = 0
$iGF_TT_Status = 12

:GFDATE_29325
goto @GFDATE_29339

:GFDATE_29332
$iGF_TT_Status = 99

:GFDATE_29339
goto @GFDATE_30083

:GFDATE_29346
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29585
if 
  TIMERB > 5000
goto_if_false @GFDATE_29578
do_fade 1000 {direction} Fade.Out
$iGFLikesPlayer($iGFidx,6i) -= 4
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_29430
26@ = 0

:GFDATE_29430
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_29456
26@ = 1

:GFDATE_29456
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_29482
26@ = 3

:GFDATE_29482
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_29508
26@ = 2

:GFDATE_29508
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_29534
26@ = 4

:GFDATE_29534
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_29560
26@ = 5

:GFDATE_29560
$iGFLikesPlayer(26@,6i) -= 4
$iGF_TT_Status = 13

:GFDATE_29578
goto @GFDATE_29592

:GFDATE_29585
$iGF_TT_Status = 99

:GFDATE_29592
goto @GFDATE_30083

:GFDATE_29599
if 
  not get_fading_status 
goto_if_false @GFDATE_29728
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_local_var_bit_const 3@ {bitIndex} 7
delete_char $iGF_TT_driver
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29688
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_29683
remove_stuck_car_check $iGF_TT_Car

:GFDATE_29683
delete_car $iGF_TT_Car

:GFDATE_29688
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
do_fade 1500 {direction} Fade.In
print_help 'GF_H015'
gosub @GFDATE_32147

:GFDATE_29728
goto @GFDATE_30083

:GFDATE_29735
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_char_dead 0@
goto_if_false @GFDATE_29781
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GFDATE_29781
if 
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_29812
set_char_proofs $iGF_TT_driver {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GFDATE_29812
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29849
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_29849
remove_stuck_car_check $iGF_TT_Car

:GFDATE_29849
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_29870
remove_blip $iGF_TT_Blip

:GFDATE_29870
if and
  is_char_dead $iGF_TT_driver
  has_char_been_damaged_by_char $iGF_TT_driver {handle} $scplayer
goto_if_false @GFDATE_30062
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_29920
26@ = 0

:GFDATE_29920
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_29946
26@ = 1

:GFDATE_29946
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_29972
26@ = 3

:GFDATE_29972
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_29998
26@ = 2

:GFDATE_29998
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_30024
26@ = 4

:GFDATE_30024
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_30050
26@ = 5

:GFDATE_30050
$iGFLikesPlayer(26@,6i) = -999

:GFDATE_30062
clear_global_var_bit_const $iDateReport {bitIndex} 22
$iGF_TT_Status = -1
goto @GFDATE_30083

:GFDATE_30083
return 

:GFDATE_30085
switch_start $iGFSpeechStatus {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_30915 {caseNum1} 0 {caseLabel1} @GFDATE_30213 {caseNum2} 1 {caseLabel2} @GFDATE_30284 {caseNum3} 2 {caseLabel3} @GFDATE_30296 {caseNum4} 3 {caseLabel4} @GFDATE_30310 {caseNum5} 4 {caseLabel5} @GFDATE_30579 {caseNum6} 5 {caseLabel6} @GFDATE_30679 {caseNum7} 6 {caseLabel7} @GFDATE_30488
switch_continued 7 {caseLabel1} @GFDATE_30721 {caseNum2} -1 {caseLabel2} @GFDATE_30915 {caseNum3} -1 {caseLabel3} @GFDATE_30915 {caseNum4} -1 {caseLabel4} @GFDATE_30915 {caseNum5} -1 {caseLabel5} @GFDATE_30915 {caseNum6} -1 {caseLabel6} @GFDATE_30915 {caseNum7} -1 {caseLabel7} @GFDATE_30915 {caseNum8} -1 {caseLabel8} @GFDATE_30915 {caseNum9} -1 {caseLabel9} @GFDATE_30915

:GFDATE_30213
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30245
$iGFSpeechStatus = 3
goto @GFDATE_30277

:GFDATE_30245
if and
  $iGFSayContext == -2
  $iCJSayContext > 0
goto_if_false @GFDATE_30277
$iGFSpeechStatus = 3

:GFDATE_30277
goto @GFDATE_30915

:GFDATE_30284
enable_char_speech 0@
goto @GFDATE_30915

:GFDATE_30296
disable_char_speech 0@ {stopNow} False
goto @GFDATE_30915

:GFDATE_30310
if 
  not is_char_talking 0@
goto_if_false @GFDATE_30481
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30421
$iGFContextVariation = set_char_say_context_important 0@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_30917
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30407
$iGFSpeechStatus = 6
goto @GFDATE_30414

:GFDATE_30407
$iGFSpeechStatus = 0

:GFDATE_30414
goto @GFDATE_30481

:GFDATE_30421
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_30460
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_30481

:GFDATE_30460
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30481
goto @GFDATE_30915

:GFDATE_30488
if and
  not is_char_talking $scplayer
  not is_char_talking 0@
goto_if_false @GFDATE_30572
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30565
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFDATE_30572

:GFDATE_30565
$iGFSpeechStatus = 0

:GFDATE_30572
goto @GFDATE_30915

:GFDATE_30579
disable_char_speech 0@ {stopNow} False
if 
  not is_char_talking 0@
goto_if_false @GFDATE_30672
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30665
$iGFContextVariation = set_char_say_context_important 0@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_30917
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFDATE_30672

:GFDATE_30665
$iGFSpeechStatus = 0

:GFDATE_30672
goto @GFDATE_30915

:GFDATE_30679
if 
  not is_char_talking 0@
goto_if_false @GFDATE_30714
enable_char_speech 0@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30714
goto @GFDATE_30915

:GFDATE_30721
if 
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_30908
if 
  not is_char_talking $iGF_TT_driver
goto_if_false @GFDATE_30908
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30848
$iGFContextVariation = set_char_say_context_important $iGF_TT_driver {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_30917
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30834
$iGFSpeechStatus = 6
goto @GFDATE_30841

:GFDATE_30834
$iGFSpeechStatus = 0

:GFDATE_30841
goto @GFDATE_30908

:GFDATE_30848
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_30887
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_30908

:GFDATE_30887
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30908
goto @GFDATE_30915

:GFDATE_30915
return 

:GFDATE_30917
switch_start $iGFSayContext {numCases} 29 {hasDefaultCase} 0 {defaultLabel} @GFDATE_32035 {caseNum1} 32 {caseLabel1} @GFDATE_31989 {caseNum2} 39 {caseLabel2} @GFDATE_32012 {caseNum3} 262 {caseLabel3} @GFDATE_31202 {caseNum4} 264 {caseLabel4} @GFDATE_31209 {caseNum5} 266 {caseLabel5} @GFDATE_31216 {caseNum6} 267 {caseLabel6} @GFDATE_31269 {caseNum7} 268 {caseLabel7} @GFDATE_31246
switch_continued 269 {caseLabel1} @GFDATE_31315 {caseNum2} 270 {caseLabel2} @GFDATE_31461 {caseNum3} 275 {caseLabel3} @GFDATE_31507 {caseNum4} 276 {caseLabel4} @GFDATE_31530 {caseNum5} 277 {caseLabel5} @GFDATE_31874 {caseNum6} 278 {caseLabel6} @GFDATE_31292 {caseNum7} 279 {caseLabel7} @GFDATE_31828 {caseNum8} 280 {caseLabel8} @GFDATE_31752 {caseNum9} 287 {caseLabel9} @GFDATE_31775
switch_continued 291 {caseLabel1} @GFDATE_31729 {caseNum2} 293 {caseLabel2} @GFDATE_31484 {caseNum3} 294 {caseLabel3} @GFDATE_31798 {caseNum4} 297 {caseLabel4} @GFDATE_31943 {caseNum5} 301 {caseLabel5} @GFDATE_31805 {caseNum6} 304 {caseLabel6} @GFDATE_31223 {caseNum7} 305 {caseLabel7} @GFDATE_31851 {caseNum8} 306 {caseLabel8} @GFDATE_31920 {caseNum9} 307 {caseLabel9} @GFDATE_31897
switch_continued 308 {caseLabel1} @GFDATE_31966 {caseNum2} 309 {caseLabel2} @GFDATE_31553 {caseNum3} 311 {caseLabel3} @GFDATE_31706 {caseNum4} 312 {caseLabel4} @GFDATE_31576 {caseNum5} -1 {caseLabel5} @GFDATE_32035 {caseNum6} -1 {caseLabel6} @GFDATE_32035 {caseNum7} -1 {caseLabel7} @GFDATE_32035 {caseNum8} -1 {caseLabel8} @GFDATE_32035 {caseNum9} -1 {caseLabel9} @GFDATE_32035

:GFDATE_31202
goto @GFDATE_32035

:GFDATE_31209
goto @GFDATE_32035

:GFDATE_31216
goto @GFDATE_32035

:GFDATE_31223
print_now 'GF_0045' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31246
print_now 'GF_0061' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31269
print_now 'GF_0044' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31292
print_now 'GF_0022' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31315
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_31356
print_now 'GF_0077' {time} 5000 {flag} 1
goto @GFDATE_31454

:GFDATE_31356
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_31397
print_now 'GF_0078' {time} 5000 {flag} 1
goto @GFDATE_31454

:GFDATE_31397
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_31438
print_now 'GF_0079' {time} 5000 {flag} 1
goto @GFDATE_31454

:GFDATE_31438
print_now 'GF_0031' {time} 5000 {flag} 1

:GFDATE_31454
goto @GFDATE_32035

:GFDATE_31461
print_now 'GF_0031' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31484
print_now 'GF_0004' {time} 3000 {flag} 1
goto @GFDATE_32035

:GFDATE_31507
print_now 'GF_0007' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31530
print_now 'GF_0066' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31553
print_now 'GF_0011' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31576
if 
  is_local_var_bit_set_const 3@ {bitIndex} 20
goto_if_false @GFDATE_31617
print_now 'GF_0074' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31617
if 
  is_local_var_bit_set_const 3@ {bitIndex} 21
goto_if_false @GFDATE_31658
print_now 'GF_0053' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31658
if 
  is_local_var_bit_set_const 3@ {bitIndex} 22
goto_if_false @GFDATE_31699
print_now 'GF_0075' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31699
goto @GFDATE_32035

:GFDATE_31706
print_now 'GF_0052' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31729
print_now 'GF_0034' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31752
print_now 'GF_0014' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31775
print_now 'GF_0033' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31798
goto @GFDATE_32035

:GFDATE_31805
print_now 'GF_0024' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31828
print_now 'GF_0032' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31851
print_now 'GF_0047' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31874
print_now 'GF_0054' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31897
print_now 'GF_0050' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31920
print_now 'GF_0051' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31943
print_now 'GF_0070' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31966
print_now 'GF_0072' {time} 5000 {flag} 1
goto @GFDATE_32035

:GFDATE_31989
print_now 'GF_0073' {time} 2500 {flag} 1
goto @GFDATE_32035

:GFDATE_32012
print_now 'GF_0076' {time} 2500 {flag} 1
goto @GFDATE_32035

:GFDATE_32035
return 

:GFDATE_32037
26@ = 0

:GFDATE_32044
if 
  does_blip_exist 15@(26@,9i)
goto_if_false @GFDATE_32073
remove_blip 15@(26@,9i)

:GFDATE_32073
26@ += 1
  26@ >= 9
goto_if_false @GFDATE_32044
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_32115
remove_blip $iGF_TT_Blip

:GFDATE_32115
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_32138
clear_onscreen_counter $9466

:GFDATE_32138
clear_local_var_bit_const 3@ {bitIndex} 11
return 

:GFDATE_32147
gosub @GFDATE_32037
gosub @GFDATE_18712
clear_prints 
if 
  not is_char_dead 0@
goto_if_false @GFDATE_32203
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_32203
remove_char_from_group 0@

:GFDATE_32203
if 
  not is_car_dead 28@
goto_if_false @GFDATE_32240
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_32240
remove_stuck_car_check 28@

:GFDATE_32240
if 
  $iGF_TT_Status > 0
goto_if_false @GFDATE_32288
if 
  is_player_playing $player1
goto_if_false @GFDATE_32288
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False

:GFDATE_32288
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_32325
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_32325
remove_stuck_car_check $iGF_TT_Car

:GFDATE_32325
mark_model_as_no_longer_needed $iGF_TT_CarModel
mark_model_as_no_longer_needed $iGF_TT_PedModel
mark_char_as_no_longer_needed $iGF_TT_driver
mark_car_as_no_longer_needed $iGF_TT_Car
remove_animation "KISSING"
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_32386
remove_animation "BLOWJOBZ"

:GFDATE_32386
if 
  is_char_dead 0@
goto_if_false @GFDATE_32446
clear_global_var_bit_const $iDateReport {bitIndex} 2
if 
  is_local_var_bit_set_const 3@ {bitIndex} 15
goto_if_false @GFDATE_32439
$iGFLikesPlayer($iGFidx,6i) = -999

:GFDATE_32439
goto @GFDATE_32519

:GFDATE_32446
if 
  is_local_var_bit_set_const 3@ {bitIndex} 15
goto_if_false @GFDATE_32519
clear_global_var_bit_const $iDateReport {bitIndex} 2
if 
  not is_char_health_greater 0@ {health} 10
goto_if_false @GFDATE_32508
$iGFLikesPlayer($iGFidx,6i) = -999
goto @GFDATE_32519

:GFDATE_32508
$iGFLikesPlayer($iGFidx,6i) -= 10

:GFDATE_32519
if 
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_32544
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_32544
$iDanceScore = 0
$iDanceGirlfriend = -1
if 
  is_local_var_bit_set_const 3@ {bitIndex} 9
goto_if_false @GFDATE_32608
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_32601
set_global_var_bit_const $iDateReport {bitIndex} 8

:GFDATE_32601
goto @GFDATE_32615

:GFDATE_32608
set_global_var_bit_const $iDateReport {bitIndex} 21

:GFDATE_32615
if 
  is_player_playing $player1
goto_if_false @GFDATE_32656
set_player_control $player1 {state} True
switch_widescreen False
set_player_group_to_follow_always $player1 {state} False
set_player_group_recruitment $player1 {state} True

:GFDATE_32656
show_update_stats True
clear_global_var_bit_const $iDateReport {bitIndex} 1
set_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
terminate_this_script 
return 
write_debug_with_int "IGF_TT_STATUS" {number} $iGF_TT_Status
write_debug_with_int v$active_pool_script {number} 24@
write_debug_with_int "ICURRENTCARHEALTH" {number} 29@
write_debug_with_float "FTEMP1_SPEED" {number} 14@
write_debug_with_float "FUN_TEMP" {number} $fFun
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "DATE_TIMER" {number} TIMERA
write_debug_with_int "SUBSTATESTATUS" {number} 2@
switch_start 1@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GFDATE_33274 {caseNum1} 0 {caseLabel1} @GFDATE_32944 {caseNum2} 1 {caseLabel2} @GFDATE_32972 {caseNum3} 2 {caseLabel3} @GFDATE_33003 {caseNum4} 3 {caseLabel4} @GFDATE_33034 {caseNum5} 4 {caseLabel5} @GFDATE_33065 {caseNum6} 5 {caseLabel6} @GFDATE_33095 {caseNum7} 6 {caseLabel7} @GFDATE_33125
switch_continued 7 {caseLabel1} @GFDATE_33156 {caseNum2} 8 {caseLabel2} @GFDATE_33189 {caseNum3} 9 {caseLabel3} @GFDATE_33219 {caseNum4} 10 {caseLabel4} @GFDATE_33249 {caseNum5} -1 {caseLabel5} @GFDATE_33306 {caseNum6} -1 {caseLabel6} @GFDATE_33306 {caseNum7} -1 {caseLabel7} @GFDATE_33306 {caseNum8} -1 {caseLabel8} @GFDATE_33306 {caseNum9} -1 {caseLabel9} @GFDATE_33306

:GFDATE_32944
write_debug "STATE0__DATE_INIT"
goto @GFDATE_33306

:GFDATE_32972
write_debug "STATE1__IDLE_ON_FOOT"
goto @GFDATE_33306

:GFDATE_33003
write_debug "STATE2__REACHED_DEST"
goto @GFDATE_33306

:GFDATE_33034
write_debug "STATE3__REACHED_HOME"
goto @GFDATE_33306

:GFDATE_33065
write_debug "STATE4__IDLE_IN_CAR"
goto @GFDATE_33306

:GFDATE_33095
write_debug "STATE5__DUMP_PLAYER"
goto @GFDATE_33306

:GFDATE_33125
write_debug "STATE6__KISS_ON_FOOT"
goto @GFDATE_33306

:GFDATE_33156
write_debug "STATE7__BLOWJOB_IN_CAR"
goto @GFDATE_33306

:GFDATE_33189
write_debug "STATE8__GIRL_DRIVES"
goto @GFDATE_33306

:GFDATE_33219
write_debug "STATE9__FLEE_PLAYER"
goto @GFDATE_33306

:GFDATE_33249
write_debug "STATE10__DANCE"
goto @GFDATE_33306

:GFDATE_33274
write_debug_with_int "UNTRAPPED_STATE___" {number} 1@
goto @GFDATE_33306

:GFDATE_33306
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 26 (GF_SEX)---------------

:GFSEX
script_name 'GFSEX'
set_minigame_in_progress True
7@ = 0
8@ = 0
if 
  1@ > 0
goto_if_false @GFSEX_61
$excitement = 40
goto @GFSEX_68

:GFSEX_61
$excitement = 50

:GFSEX_68
$power = 1
9@ = 0
if 
  9@ > 0
goto_if_false @GFSEX_124
24@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:GFSEX_124
gosub @GFSEX_7532
if 
  $iCensoredVersion == 0
goto_if_false @GFSEX_156
gosub @GFSEX_7925

:GFSEX_156
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead 24@
  $iGFLikesPlayer(0@,6i) <> -999
  $iGFLikesPlayer(0@,6i) <> -100
  $iGFLikesPlayer(0@,6i) <> -99
goto_if_false @GFSEX_243
gosub @GFSEX_257
gosub @GFSEX_514
gosub @GFSEX_12442
goto @GFSEX_250

:GFSEX_243
gosub @GFSEX_13604

:GFSEX_250
goto @GFSEX_156

:GFSEX_257
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 1
goto_if_false @GFSEX_512
if 
  $iCensoredVersion == 1
goto_if_false @GFSEX_316
set_local_var_bit_const 9@ {bitIndex} 1
7@ = 9
8@ = 0
return 

:GFSEX_316
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GFSEX_372
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 2
goto_if_false @GFSEX_365
gosub @GFSEX_9088
set_local_var_bit_const 9@ {bitIndex} 2

:GFSEX_365
goto @GFSEX_379

:GFSEX_372
clear_local_var_bit_const 9@ {bitIndex} 2

:GFSEX_379
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @GFSEX_435
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 3
goto_if_false @GFSEX_428
gosub @GFSEX_9866
set_local_var_bit_const 9@ {bitIndex} 3

:GFSEX_428
goto @GFSEX_442

:GFSEX_435
clear_local_var_bit_const 9@ {bitIndex} 3

:GFSEX_442
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFSEX_505
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 4
goto_if_false @GFSEX_498
7@ = 2
8@ = 0
set_local_var_bit_const 9@ {bitIndex} 4

:GFSEX_498
goto @GFSEX_512

:GFSEX_505
clear_local_var_bit_const 9@ {bitIndex} 4

:GFSEX_512
return 

:GFSEX_514
switch_start 7@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFSEX_782 {caseNum1} 0 {caseLabel1} @GFSEX_642 {caseNum2} 1 {caseLabel2} @GFSEX_656 {caseNum3} 2 {caseLabel3} @GFSEX_670 {caseNum4} 3 {caseLabel4} @GFSEX_684 {caseNum5} 4 {caseLabel5} @GFSEX_698 {caseNum6} 5 {caseLabel6} @GFSEX_712 {caseNum7} 6 {caseLabel7} @GFSEX_726
switch_continued 7 {caseLabel1} @GFSEX_740 {caseNum2} 8 {caseLabel2} @GFSEX_754 {caseNum3} 9 {caseLabel3} @GFSEX_768 {caseNum4} -1 {caseLabel4} @GFSEX_782 {caseNum5} -1 {caseLabel5} @GFSEX_782 {caseNum6} -1 {caseLabel6} @GFSEX_782 {caseNum7} -1 {caseLabel7} @GFSEX_782 {caseNum8} -1 {caseLabel8} @GFSEX_782 {caseNum9} -1 {caseLabel9} @GFSEX_782

:GFSEX_642
gosub @GFSEX_784
goto @GFSEX_782

:GFSEX_656
gosub @GFSEX_958
goto @GFSEX_782

:GFSEX_670
gosub @GFSEX_1707
goto @GFSEX_782

:GFSEX_684
gosub @GFSEX_1988
goto @GFSEX_782

:GFSEX_698
gosub @GFSEX_3093
goto @GFSEX_782

:GFSEX_712
gosub @GFSEX_3522
goto @GFSEX_782

:GFSEX_726
gosub @GFSEX_4083
goto @GFSEX_782

:GFSEX_740
gosub @GFSEX_5310
goto @GFSEX_782

:GFSEX_754
gosub @GFSEX_6051
goto @GFSEX_782

:GFSEX_768
gosub @GFSEX_6653
goto @GFSEX_782

:GFSEX_782
return 

:GFSEX_784
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_956 {caseNum1} 0 {caseLabel1} @GFSEX_847 {caseNum2} 1 {caseLabel2} @GFSEX_874 {caseNum3} -1 {caseLabel3} @GFSEX_956 {caseNum4} -1 {caseLabel4} @GFSEX_956 {caseNum5} -1 {caseLabel5} @GFSEX_956 {caseNum6} -1 {caseLabel6} @GFSEX_956 {caseNum7} -1 {caseLabel7} @GFSEX_956

:GFSEX_847
set_local_var_bit_const 9@ {bitIndex} 1
do_fade 0 {direction} Fade.Out
8@ += 1
goto @GFSEX_956

:GFSEX_874
if 
  not get_fading_status 
goto_if_false @GFSEX_949
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 24@ {state} True
display_radar False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
gosub @GFSEX_8067
set_lvar_int_to_lvar_int 7@ = 21@
8@ = 0

:GFSEX_949
goto @GFSEX_956

:GFSEX_956
return 

:GFSEX_958
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_1705 {caseNum1} 0 {caseLabel1} @GFSEX_1021 {caseNum2} 1 {caseLabel2} @GFSEX_1063 {caseNum3} 2 {caseLabel3} @GFSEX_1186 {caseNum4} 3 {caseLabel4} @GFSEX_1423 {caseNum5} 4 {caseLabel5} @GFSEX_1582 {caseNum6} 5 {caseLabel6} @GFSEX_1632 {caseNum7} -1 {caseLabel7} @GFSEX_1705

:GFSEX_1021
set_local_var_bit_const 9@ {bitIndex} 1
23@ = -1
gosub @GFSEX_9088
do_fade 1500 {direction} Fade.In
8@ += 1
goto @GFSEX_1705

:GFSEX_1063
if 
  not get_fading_status 
goto_if_false @GFSEX_1179
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
8@ += 1

:GFSEX_1179
goto @GFSEX_1705

:GFSEX_1186
16@ = get_char_anim_current_time $scplayer {animationName} "BJ_COUCH_START_P"
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_1277
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_1277
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_1705

:GFSEX_1277
if 
  16@ == 1.0
goto_if_false @GFSEX_1416
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
8@ += 1

:GFSEX_1416
goto @GFSEX_1705

:GFSEX_1423
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_1457
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_1575

:GFSEX_1457
if 
  TIMERB > 6000
goto_if_false @GFSEX_1575
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_1575
goto @GFSEX_1705

:GFSEX_1582
20@ = get_script_task_status 24@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_1625
do_fade 500 {direction} Fade.Out
8@ += 1

:GFSEX_1625
goto @GFSEX_1705

:GFSEX_1632
if 
  not get_fading_status 
goto_if_false @GFSEX_1698
if 
  1@ > 0
goto_if_false @GFSEX_1684
7@ = 3
8@ = 0
goto @GFSEX_1698

:GFSEX_1684
7@ = 6
8@ = 0

:GFSEX_1698
goto @GFSEX_1705

:GFSEX_1705
return 

:GFSEX_1707
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_1986 {caseNum1} 0 {caseLabel1} @GFSEX_1770 {caseNum2} 1 {caseLabel2} @GFSEX_1791 {caseNum3} 2 {caseLabel3} @GFSEX_1959 {caseNum4} -1 {caseLabel4} @GFSEX_1986 {caseNum5} -1 {caseLabel5} @GFSEX_1986 {caseNum6} -1 {caseLabel6} @GFSEX_1986 {caseNum7} -1 {caseLabel7} @GFSEX_1986

:GFSEX_1770
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_1986

:GFSEX_1791
if 
  not get_fading_status 
goto_if_false @GFSEX_1952
gosub @GFSEX_8653
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_1841
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_1841
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_1871
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_1871
clear_help 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @GFSEX_1938
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GFSEX_1938
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_1952
goto @GFSEX_1986

:GFSEX_1959
if 
  not get_fading_status 
goto_if_false @GFSEX_1979
gosub @GFSEX_13604

:GFSEX_1979
goto @GFSEX_1986

:GFSEX_1986
return 

:GFSEX_1988
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3091 {caseNum1} 0 {caseLabel1} @GFSEX_2051 {caseNum2} 1 {caseLabel2} @GFSEX_2269 {caseNum3} 2 {caseLabel3} @GFSEX_2464 {caseNum4} 3 {caseLabel4} @GFSEX_2681 {caseNum5} 4 {caseLabel5} @GFSEX_2923 {caseNum6} 5 {caseLabel6} @GFSEX_3030 {caseNum7} -1 {caseLabel7} @GFSEX_3091

:GFSEX_2051
if 
  not get_fading_status 
goto_if_false @GFSEX_2262
switch_widescreen False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
gosub @GFSEX_8741
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
print_help_forever 'GF_0043'
display_nth_onscreen_counter_with_string $excitement {display} CounterDisplay.Bar {slot} 1 {text} 'GF_0017'
display_nth_onscreen_counter_with_string $power {display} CounterDisplay.Bar {slot} 3 {text} 'GF_0040'
set_local_var_bit_const 9@ {bitIndex} 9
set_local_var_bit_const 9@ {bitIndex} 13
23@ = 1
gosub @GFSEX_9088
do_fade 1000 {direction} Fade.In
clear_local_var_bit_const 9@ {bitIndex} 1
8@ += 1

:GFSEX_2262
goto @GFSEX_3091

:GFSEX_2269
task_play_anim_non_interruptable 24@ {animationName} "SPANKING_IDLEW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKING_IDLEP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
clear_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_12276
if 
  0 >= $excitement
goto_if_false @GFSEX_2411
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2450

:GFSEX_2411
if 
  $excitement >= 100
goto_if_false @GFSEX_2450
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2450
8@ += 1
goto @GFSEX_3091

:GFSEX_2464
gosub @GFSEX_12276
if 
  $power >= 100
goto_if_false @GFSEX_2496
8@ += 1

:GFSEX_2496
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GFSEX_2582
if and
  not is_local_var_bit_set_const 9@ {bitIndex} 8
  not is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_2575
set_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_11855
8@ = 4
goto @GFSEX_3091

:GFSEX_2575
goto @GFSEX_2589

:GFSEX_2582
clear_local_var_bit_const 9@ {bitIndex} 8

:GFSEX_2589
if 
  0 >= $excitement
goto_if_false @GFSEX_2635
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2674

:GFSEX_2635
if 
  $excitement == 100
goto_if_false @GFSEX_2674
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2674
goto @GFSEX_3091

:GFSEX_2681
gosub @GFSEX_12276
if 
  $power >= 97
goto_if_false @GFSEX_2799
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GFSEX_2792
if and
  not is_local_var_bit_set_const 9@ {bitIndex} 8
  not is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_2785
set_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_11855
8@ = 4
goto @GFSEX_3091

:GFSEX_2785
goto @GFSEX_2799

:GFSEX_2792
clear_local_var_bit_const 9@ {bitIndex} 8

:GFSEX_2799
if 
  0 >= $power
goto_if_false @GFSEX_2831
gosub @GFSEX_11556
8@ -= 1

:GFSEX_2831
if 
  0 >= $excitement
goto_if_false @GFSEX_2877
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2916

:GFSEX_2877
if 
  $excitement == 100
goto_if_false @GFSEX_2916
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2916
goto @GFSEX_3091

:GFSEX_2923
gosub @GFSEX_12276
gosub @GFSEX_11896
task_play_anim_non_interruptable 24@ {animationName} "SPANKINGW" {animationFile} "SNM" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKINGP" {animationFile} "SNM" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
clear_local_var_bit_const 9@ {bitIndex} 5
8@ += 1
goto @GFSEX_3091

:GFSEX_3030
gosub @GFSEX_12276
gosub @GFSEX_11946
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_3084
set_var_int_to_constant $iCJSayContext = 237
gosub @GFSEX_12142
8@ = 1

:GFSEX_3084
goto @GFSEX_3091

:GFSEX_3091
return 

:GFSEX_3093
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3520 {caseNum1} 0 {caseLabel1} @GFSEX_3156 {caseNum2} 1 {caseLabel2} @GFSEX_3239 {caseNum3} 2 {caseLabel3} @GFSEX_3444 {caseNum4} -1 {caseLabel4} @GFSEX_3520 {caseNum5} -1 {caseLabel5} @GFSEX_3520 {caseNum6} -1 {caseLabel6} @GFSEX_3520 {caseNum7} -1 {caseLabel7} @GFSEX_3520

:GFSEX_3156
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_3186
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_3186
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_3216
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_3216
clear_help 
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_3520

:GFSEX_3239
if 
  not get_fading_status 
goto_if_false @GFSEX_3437
gosub @GFSEX_8741
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
task_play_anim_non_interruptable 24@ {animationName} "SPANKEDW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 600000
task_play_anim_non_interruptable $scplayer {animationName} "SPANKEDP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 600000
do_fade 1000 {direction} Fade.In
TIMERB = 0
8@ += 1

:GFSEX_3437
goto @GFSEX_3520

:GFSEX_3444
if 
  not get_fading_status 
goto_if_false @GFSEX_3513
set_var_int_to_constant $iGFSayContext = 286
set_var_int_to_constant $iCJSayContext = 236
if 
  TIMERB > 7000
goto_if_false @GFSEX_3513
clear_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_3513
goto @GFSEX_3520

:GFSEX_3520
return 

:GFSEX_3522
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_4081 {caseNum1} 0 {caseLabel1} @GFSEX_3585 {caseNum2} 1 {caseLabel2} @GFSEX_3668 {caseNum3} 2 {caseLabel3} @GFSEX_3967 {caseNum4} 3 {caseLabel4} @GFSEX_4009 {caseNum5} -1 {caseLabel5} @GFSEX_4081 {caseNum6} -1 {caseLabel6} @GFSEX_4081 {caseNum7} -1 {caseLabel7} @GFSEX_4081

:GFSEX_3585
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_3615
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_3615
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_3645
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_3645
clear_help 
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_4081

:GFSEX_3668
if 
  not get_fading_status 
goto_if_false @GFSEX_3960
gosub @GFSEX_8741
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.707 {yOffset} 3.136 {zOffset} -0.163
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.427 {yOffset} 0.634 {zOffset} -0.5
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable 24@ {animationName} "SPANKING_ENDW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKING_ENDP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_3960
goto @GFSEX_4081

:GFSEX_3967
if 
  not get_fading_status 
goto_if_false @GFSEX_4002
set_var_int_to_constant $iGFSayContext = 285
TIMERB = 0
8@ += 1

:GFSEX_4002
goto @GFSEX_4081

:GFSEX_4009
16@ = get_char_anim_current_time $scplayer {animationName} "SPANKING_ENDP"
if 
  16@ == 1.0
goto_if_false @GFSEX_4074
set_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_4074
goto @GFSEX_4081

:GFSEX_4081
return 

:GFSEX_4083
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_5308 {caseNum1} 0 {caseLabel1} @GFSEX_4146 {caseNum2} 1 {caseLabel2} @GFSEX_4340 {caseNum3} 2 {caseLabel3} @GFSEX_4921 {caseNum4} 3 {caseLabel4} @GFSEX_5037 {caseNum5} 4 {caseLabel5} @GFSEX_5147 {caseNum6} 5 {caseLabel6} @GFSEX_5245 {caseNum7} -1 {caseLabel7} @GFSEX_5308

:GFSEX_4146
if 
  not get_fading_status 
goto_if_false @GFSEX_4333
switch_widescreen False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
gosub @GFSEX_8741
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
16@ = get_char_heading $scplayer
16@ += 180.0
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
display_onscreen_counter_with_string $excitement {display} CounterDisplay.Bar {text} 'GF_0017'
set_local_var_bit_const 9@ {bitIndex} 13
gosub @GFSEX_9088
print_help_forever 'GF_0020'
do_fade 500 {direction} Fade.In
clear_local_var_bit_const 9@ {bitIndex} 1
8@ += 1

:GFSEX_4333
goto @GFSEX_5308

:GFSEX_4340
TIMERB = 0
if 
  22@ == 0
goto_if_false @GFSEX_4440
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_4440
if 
  22@ == 1
goto_if_false @GFSEX_4677
if 
  is_char_playing_anim $scplayer {animationName} "SEX_1TO2_P"
goto_if_false @GFSEX_4602
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1TO2_P"
if 
  16@ >= 1.0
goto_if_false @GFSEX_4595
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4595
goto @GFSEX_4670

:GFSEX_4602
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4670
8@ += 1

:GFSEX_4677
if 
  22@ == 2
goto_if_false @GFSEX_4914
if 
  is_char_playing_anim $scplayer {animationName} "SEX_2TO3_P"
goto_if_false @GFSEX_4839
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_2TO3_P"
if 
  16@ >= 1.0
goto_if_false @GFSEX_4832
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4832
goto @GFSEX_4907

:GFSEX_4839
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4907
8@ += 1

:GFSEX_4914
goto @GFSEX_5308

:GFSEX_4921
gosub @GFSEX_10213
gosub @GFSEX_10624
if 
  $excitement == 100
goto_if_false @GFSEX_4989
set_var_int_to_constant $iGFSayContext = 283
set_player_control $player1 {state} False
set_local_var_bit_const 9@ {bitIndex} 1
set_global_var_bit_const $iDateReport {bitIndex} 4
8@ += 1

:GFSEX_4989
if 
  $excitement == 0
goto_if_false @GFSEX_5030
clear_global_var_bit_const $iDateReport {bitIndex} 4
clear_help 
7@ = 8
8@ = 0

:GFSEX_5030
goto @GFSEX_5308

:GFSEX_5037
if 
  22@ == 0
goto_if_false @GFSEX_5062
8@ += 1

:GFSEX_5062
if 
  22@ == 1
goto_if_false @GFSEX_5101
gosub @GFSEX_9088
22@ = 0
8@ += 1

:GFSEX_5101
if 
  22@ == 2
goto_if_false @GFSEX_5140
gosub @GFSEX_9088
22@ = 0
8@ += 1

:GFSEX_5140
goto @GFSEX_5308

:GFSEX_5147
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_CUM_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_CUM_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 285
8@ += 1
goto @GFSEX_5308

:GFSEX_5245
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1_CUM_P"
if 
  16@ == 1.0
goto_if_false @GFSEX_5301
7@ = 2
8@ = 0

:GFSEX_5301
goto @GFSEX_5308

:GFSEX_5308
return 

:GFSEX_5310
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6049 {caseNum1} 0 {caseLabel1} @GFSEX_5373 {caseNum2} 1 {caseLabel2} @GFSEX_5415 {caseNum3} 2 {caseLabel3} @GFSEX_5538 {caseNum4} 3 {caseLabel4} @GFSEX_5767 {caseNum5} 4 {caseLabel5} @GFSEX_5926 {caseNum6} 5 {caseLabel6} @GFSEX_5976 {caseNum7} -1 {caseLabel7} @GFSEX_6049

:GFSEX_5373
set_local_var_bit_const 9@ {bitIndex} 1
23@ = -1
gosub @GFSEX_9088
do_fade 1500 {direction} Fade.In
8@ += 1
goto @GFSEX_6049

:GFSEX_5415
if 
  not get_fading_status 
goto_if_false @GFSEX_5531
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
8@ += 1

:GFSEX_5531
goto @GFSEX_6049

:GFSEX_5538
16@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_START_P"
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_5629
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_5629
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_6049

:GFSEX_5629
if 
  16@ == 1.0
goto_if_false @GFSEX_5760
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
TIMERB = 0
8@ += 1

:GFSEX_5760
goto @GFSEX_6049

:GFSEX_5767
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_5801
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_5919

:GFSEX_5801
if 
  TIMERB > 6000
goto_if_false @GFSEX_5919
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_5919
goto @GFSEX_6049

:GFSEX_5926
20@ = get_script_task_status 24@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_5969
do_fade 500 {direction} Fade.Out
8@ += 1

:GFSEX_5969
goto @GFSEX_6049

:GFSEX_5976
if 
  not get_fading_status 
goto_if_false @GFSEX_6042
if 
  1@ > 0
goto_if_false @GFSEX_6028
7@ = 3
8@ = 0
goto @GFSEX_6042

:GFSEX_6028
7@ = 6
8@ = 0

:GFSEX_6042
goto @GFSEX_6049

:GFSEX_6049
return 

:GFSEX_6051
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6651 {caseNum1} 0 {caseLabel1} @GFSEX_6114 {caseNum2} 1 {caseLabel2} @GFSEX_6475 {caseNum3} -1 {caseLabel3} @GFSEX_6651 {caseNum4} -1 {caseLabel4} @GFSEX_6651 {caseNum5} -1 {caseLabel5} @GFSEX_6651 {caseNum6} -1 {caseLabel6} @GFSEX_6651 {caseNum7} -1 {caseLabel7} @GFSEX_6651

:GFSEX_6114
if 
  22@ == 0
goto_if_false @GFSEX_6232
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6232
if 
  22@ == 1
goto_if_false @GFSEX_6350
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6350
if 
  22@ == 2
goto_if_false @GFSEX_6468
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6468
goto @GFSEX_6651

:GFSEX_6475
if 
  22@ == 0
goto_if_false @GFSEX_6522
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1_FAIL_P"
goto @GFSEX_6609

:GFSEX_6522
if 
  22@ == 1
goto_if_false @GFSEX_6569
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_2_FAIL_P"
goto @GFSEX_6609

:GFSEX_6569
if 
  22@ == 2
goto_if_false @GFSEX_6609
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_3_FAIL_P"

:GFSEX_6609
if 
  16@ == 1.0
goto_if_false @GFSEX_6644
7@ = 2
8@ = 0

:GFSEX_6644
goto @GFSEX_6651

:GFSEX_6651
return 

:GFSEX_6653
switch_start 8@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7530 {caseNum1} 0 {caseLabel1} @GFSEX_6781 {caseNum2} 1 {caseLabel2} @GFSEX_6862 {caseNum3} 2 {caseLabel3} @GFSEX_7147 {caseNum4} 3 {caseLabel4} @GFSEX_7189 {caseNum5} 4 {caseLabel5} @GFSEX_7251 {caseNum6} 5 {caseLabel6} @GFSEX_7352 {caseNum7} 6 {caseLabel7} @GFSEX_7414
switch_continued 7 {caseLabel1} @GFSEX_7476 {caseNum2} -1 {caseLabel2} @GFSEX_7530 {caseNum3} -1 {caseLabel3} @GFSEX_7530 {caseNum4} -1 {caseLabel4} @GFSEX_7530 {caseNum5} -1 {caseLabel5} @GFSEX_7530 {caseNum6} -1 {caseLabel6} @GFSEX_7530 {caseNum7} -1 {caseLabel7} @GFSEX_7530 {caseNum8} -1 {caseLabel8} @GFSEX_7530 {caseNum9} -1 {caseLabel9} @GFSEX_7530

:GFSEX_6781
if 
  is_char_in_any_car $scplayer
goto_if_false @GFSEX_6827
25@ = store_car_char_is_in_no_save $scplayer
set_car_proofs 25@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GFSEX_6842

:GFSEX_6827
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:GFSEX_6842
do_fade 0 {direction} Fade.Out
8@ += 1
goto @GFSEX_7530

:GFSEX_6862
if 
  not get_fading_status 
goto_if_false @GFSEX_7140
set_area_visible 0
set_char_area_visible 24@ {areaId} 0
set_char_area_visible $scplayer {areaId} 0
if 
  is_char_on_foot $scplayer
goto_if_false @GFSEX_6931
set_char_coordinates $scplayer {x} 3@ {y} 4@ {z} 5@
set_char_heading $scplayer {heading} 6@

:GFSEX_6931
load_scene 3@ {y} 4@ {z} 5@
request_collision 3@ {y} 4@
set_char_visible $scplayer {state} False
set_player_control $player1 {state} False
switch_widescreen True
display_radar False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
gosub @GFSEX_13137
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_collision 24@ {state} False
set_char_visible 24@ {state} False
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
camera_set_shake_simulation_simple 5 {timeInMs} 5000.0 {intensity} 10.0
20@, 21@ = get_time_of_day 
21@ += 30
if 
  21@ > 60
goto_if_false @GFSEX_7118
21@ -= 60
20@ += 1

:GFSEX_7118
set_time_of_day 20@ {minutes} 21@
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_7140
goto @GFSEX_7530

:GFSEX_7147
if 
  not get_fading_status 
goto_if_false @GFSEX_7182
set_var_int_to_constant $iGFSayContext = 281
TIMERB = 0
8@ += 1

:GFSEX_7182
goto @GFSEX_7530

:GFSEX_7189
if 
  TIMERB > 3000
goto_if_false @GFSEX_7244
set_var_int_to_constant $iGFSayContext = 281
TIMERB = 0
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 15.0
8@ += 1

:GFSEX_7244
goto @GFSEX_7530

:GFSEX_7251
if 
  TIMERB > 3000
goto_if_false @GFSEX_7345
$iGFSayContext = -2
if 
  1@ > 0
goto_if_false @GFSEX_7310
set_var_int_to_constant $iCJSayContext = 237
goto @GFSEX_7317

:GFSEX_7310
set_var_int_to_constant $iCJSayContext = 116

:GFSEX_7317
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 20.0
TIMERB = 0
8@ += 1

:GFSEX_7345
goto @GFSEX_7530

:GFSEX_7352
if 
  TIMERB > 3000
goto_if_false @GFSEX_7407
set_var_int_to_constant $iGFSayContext = 283
camera_set_shake_simulation_simple 5 {timeInMs} 4000.0 {intensity} 30.0
TIMERB = 0
8@ += 1

:GFSEX_7407
goto @GFSEX_7530

:GFSEX_7414
if 
  TIMERB > 4000
goto_if_false @GFSEX_7469
set_var_int_to_constant $iGFSayContext = 285
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 5.0
TIMERB = 0
8@ += 1

:GFSEX_7469
goto @GFSEX_7530

:GFSEX_7476
if 
  TIMERB > 3000
goto_if_false @GFSEX_7523
set_global_var_bit_const $iDateReport {bitIndex} 2
set_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_7523
goto @GFSEX_7530

:GFSEX_7530
return 

:GFSEX_7532
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7871 {caseNum1} 0 {caseLabel1} @GFSEX_7595 {caseNum2} 1 {caseLabel2} @GFSEX_7641 {caseNum3} 2 {caseLabel3} @GFSEX_7687 {caseNum4} 3 {caseLabel4} @GFSEX_7733 {caseNum5} 4 {caseLabel5} @GFSEX_7779 {caseNum6} 5 {caseLabel6} @GFSEX_7825 {caseNum7} -1 {caseLabel7} @GFSEX_7871

:GFSEX_7595
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7634
load_special_character 1 {modelName} 'GANGRL2'
wait 0
goto @GFSEX_7595

:GFSEX_7634
goto @GFSEX_7871

:GFSEX_7641
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7680
load_special_character 1 {modelName} 'MECGRL2'
wait 0
goto @GFSEX_7641

:GFSEX_7680
goto @GFSEX_7871

:GFSEX_7687
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7726
load_special_character 1 {modelName} 'GUNGRL2'
wait 0
goto @GFSEX_7687

:GFSEX_7726
goto @GFSEX_7871

:GFSEX_7733
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7772
load_special_character 1 {modelName} 'COPGRL2'
wait 0
goto @GFSEX_7733

:GFSEX_7772
goto @GFSEX_7871

:GFSEX_7779
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7818
load_special_character 1 {modelName} 'NURGRL2'
wait 0
goto @GFSEX_7779

:GFSEX_7818
goto @GFSEX_7871

:GFSEX_7825
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7864
load_special_character 1 {modelName} 'CROGRL2'
wait 0
goto @GFSEX_7825

:GFSEX_7864
goto @GFSEX_7871

:GFSEX_7871
24@ = create_char PedType.CivFemale {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
set_char_proofs 24@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision 24@ {state} False
dont_remove_char 24@
return 

:GFSEX_7925
request_animation "BLOWJOBZ"
request_animation "KISSING"
request_animation "SEX"
request_animation "SNM"

:GFSEX_7962
wait 0
if and
  has_animation_loaded "BLOWJOBZ"
  has_animation_loaded "SEX"
  has_animation_loaded "KISSING"
  has_animation_loaded "SNM"
goto_if_false @GFSEX_8023
return 
goto @GFSEX_8067

:GFSEX_8023
request_animation "BLOWJOBZ"
request_animation "KISSING"
request_animation "SEX"
request_animation "SNM"
goto @GFSEX_7962

:GFSEX_8067
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_8496 {caseNum1} 0 {caseLabel1} @GFSEX_8130 {caseNum2} 1 {caseLabel2} @GFSEX_8191 {caseNum3} 2 {caseLabel3} @GFSEX_8252 {caseNum4} 3 {caseLabel4} @GFSEX_8313 {caseNum5} 4 {caseLabel5} @GFSEX_8374 {caseNum6} 5 {caseLabel6} @GFSEX_8435 {caseNum7} -1 {caseLabel7} @GFSEX_8496

:GFSEX_8130
10@ = 245.6252
12@ = 304.1411
14@ = 998.32
16@ = 0.0
20@ = 1
21@ = 1
goto @GFSEX_8496

:GFSEX_8191
10@ = 306.1999
12@ = 305.1225
14@ = 1002.297
16@ = 90.0
20@ = 4
21@ = 1
goto @GFSEX_8496

:GFSEX_8252
10@ = 288.7753
12@ = 308.4772
14@ = 998.1641
16@ = 213.8029
20@ = 3
21@ = 7
goto @GFSEX_8496

:GFSEX_8313
10@ = 324.6405
12@ = 307.4622
14@ = 998.1558
16@ = 175.0
20@ = 5
21@ = 7
goto @GFSEX_8496

:GFSEX_8374
10@ = 271.4699
12@ = 307.2668
14@ = 998.32
16@ = 265.0
20@ = 2
21@ = 1
goto @GFSEX_8496

:GFSEX_8435
10@ = 345.6252
12@ = 304.1411
14@ = 998.25
16@ = 0.0
20@ = 6
21@ = 1
goto @GFSEX_8496

:GFSEX_8496
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
set_char_collision 24@ {state} False
set_char_collision $scplayer {state} False
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
16@ = get_char_heading $scplayer
16@ += 180.0
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
set_area_visible 20@
set_char_area_visible 24@ {areaId} 20@
set_char_area_visible $scplayer {areaId} 20@
load_scene 10@ {y} 12@ {z} 14@
request_collision 10@ {y} 12@
return 

:GFSEX_8653
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_area 3@ {y} 4@ {z} 5@ {radius} 3.0 {clearParticles} True
if 
  is_char_on_foot $scplayer
goto_if_false @GFSEX_8720
set_char_coordinates $scplayer {x} 3@ {y} 4@ {z} 5@
set_char_heading $scplayer {heading} 6@

:GFSEX_8720
request_collision 3@ {y} 4@
load_scene 3@ {y} 4@ {z} 5@
return 

:GFSEX_8741
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_9086 {caseNum1} 0 {caseLabel1} @GFSEX_8804 {caseNum2} 1 {caseLabel2} @GFSEX_8898 {caseNum3} 2 {caseLabel3} @GFSEX_8945 {caseNum4} 3 {caseLabel4} @GFSEX_8851 {caseNum5} 4 {caseLabel5} @GFSEX_8992 {caseNum6} 5 {caseLabel6} @GFSEX_9039 {caseNum7} -1 {caseLabel7} @GFSEX_9086

:GFSEX_8804
10@ = 245.617
12@ = 301.507
14@ = 999.046
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8851
10@ = 318.4
12@ = 311.85
14@ = 998.8
16@ = 110.0
goto @GFSEX_9086

:GFSEX_8898
10@ = 308.8862
12@ = 301.9657
14@ = 1003.0
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8945
10@ = 282.5775
12@ = 307.7573
14@ = 1002.391
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8992
10@ = 270.12
12@ = 307.737
14@ = 999.0204
16@ = 180.0
goto @GFSEX_9086

:GFSEX_9039
10@ = 345.617
12@ = 301.507
14@ = 998.8
16@ = 0.0
goto @GFSEX_9086

:GFSEX_9086
return 

:GFSEX_9088
switch_start 23@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_9692 {caseNum1} -1 {caseLabel1} @GFSEX_9151 {caseNum2} 0 {caseLabel2} @GFSEX_9216 {caseNum3} 1 {caseLabel3} @GFSEX_9335 {caseNum4} 2 {caseLabel4} @GFSEX_9454 {caseNum5} 3 {caseLabel5} @GFSEX_9573 {caseNum6} -1 {caseLabel6} @GFSEX_9818 {caseNum7} -1 {caseLabel7} @GFSEX_9818

:GFSEX_9151
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.8 {yOffset} 2.9 {zOffset} 0.353
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 0.8701 {zOffset} 0.1828
goto @GFSEX_9818

:GFSEX_9216
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.6375 {yOffset} 2.3043 {zOffset} 0.1065
if 
  7@ == 3
goto_if_false @GFSEX_9299
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.1
goto @GFSEX_9328

:GFSEX_9299
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.2746

:GFSEX_9328
goto @GFSEX_9818

:GFSEX_9335
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.5989 {yOffset} 0.7828 {zOffset} -0.2044
if 
  7@ == 3
goto_if_false @GFSEX_9418
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.6223 {yOffset} 0.6748 {zOffset} -0.2
goto @GFSEX_9447

:GFSEX_9418
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.6223 {yOffset} 0.6748 {zOffset} -0.3904

:GFSEX_9447
goto @GFSEX_9818

:GFSEX_9454
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.9748 {yOffset} -0.1026 {zOffset} 0.7511
if 
  7@ == 3
goto_if_false @GFSEX_9537
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.4155 {yOffset} 0.3026 {zOffset} 0.01
goto @GFSEX_9566

:GFSEX_9537
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.4155 {yOffset} 0.3026 {zOffset} 0.0279

:GFSEX_9566
goto @GFSEX_9818

:GFSEX_9573
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.3103 {yOffset} 1.6396 {zOffset} -0.6208
if 
  7@ == 3
goto_if_false @GFSEX_9656
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.49 {yOffset} 1.0874 {zOffset} -0.2
goto @GFSEX_9685

:GFSEX_9656
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.49 {yOffset} 1.0874 {zOffset} -0.4726

:GFSEX_9685
goto @GFSEX_9818

:GFSEX_9692
23@ = 0
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.6375 {yOffset} 2.3043 {zOffset} 0.1065
if 
  7@ == 3
goto_if_false @GFSEX_9782
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} 0.0
goto @GFSEX_9811

:GFSEX_9782
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.2746

:GFSEX_9811
goto @GFSEX_9818

:GFSEX_9818
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
23@ += 1
return 

:GFSEX_9866
if 
  7@ == 6
goto_if_false @GFSEX_10211
22@ += 1
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10204 {caseNum1} 1 {caseLabel1} @GFSEX_9954 {caseNum2} 2 {caseLabel2} @GFSEX_10035 {caseNum3} 3 {caseLabel3} @GFSEX_10116 {caseNum4} -1 {caseLabel4} @GFSEX_10204 {caseNum5} -1 {caseLabel5} @GFSEX_10204 {caseNum6} -1 {caseLabel6} @GFSEX_10204 {caseNum7} -1 {caseLabel7} @GFSEX_10204

:GFSEX_9954
task_play_anim_non_interruptable 24@ {animationName} "SEX_1TO2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1TO2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10204

:GFSEX_10035
task_play_anim_non_interruptable 24@ {animationName} "SEX_2TO3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2TO3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10204

:GFSEX_10116
22@ = 0
task_play_anim_non_interruptable 24@ {animationName} "SEX_3TO1_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3TO1_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10204

:GFSEX_10204
8@ = 1

:GFSEX_10211
return 

:GFSEX_10213
set_lvar_int_to_var_int 20@ = $excitement
20@ /= 10
if 
  3 > 20@
goto_if_false @GFSEX_10253
20@ = 0

:GFSEX_10253
switch_start 20@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10622 {caseNum1} 0 {caseLabel1} @GFSEX_10381 {caseNum2} 3 {caseLabel2} @GFSEX_10412 {caseNum3} 4 {caseLabel3} @GFSEX_10443 {caseNum4} 5 {caseLabel4} @GFSEX_10474 {caseNum5} 6 {caseLabel5} @GFSEX_10505 {caseNum6} 7 {caseLabel6} @GFSEX_10536 {caseNum7} 8 {caseLabel7} @GFSEX_10567
switch_continued 9 {caseLabel1} @GFSEX_10598 {caseNum2} -1 {caseLabel2} @GFSEX_10622 {caseNum3} -1 {caseLabel3} @GFSEX_10622 {caseNum4} -1 {caseLabel4} @GFSEX_10622 {caseNum5} -1 {caseLabel5} @GFSEX_10622 {caseNum6} -1 {caseLabel6} @GFSEX_10622 {caseNum7} -1 {caseLabel7} @GFSEX_10622 {caseNum8} -1 {caseLabel8} @GFSEX_10622 {caseNum9} -1 {caseLabel9} @GFSEX_10622

:GFSEX_10381
16@ = 0.035
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10412
16@ = 0.045
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10443
16@ = 0.05
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10474
16@ = 0.055
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10505
16@ = 0.055
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10536
16@ = 0.08
set_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10567
16@ = 0.08
set_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10598
16@ = 0.09
set_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10622

:GFSEX_10622
return 

:GFSEX_10624
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_11056 {caseNum1} 0 {caseLabel1} @GFSEX_10687 {caseNum2} 1 {caseLabel2} @GFSEX_10810 {caseNum3} 2 {caseLabel3} @GFSEX_10933 {caseNum4} -1 {caseLabel4} @GFSEX_11056 {caseNum5} -1 {caseLabel5} @GFSEX_11056 {caseNum6} -1 {caseLabel6} @GFSEX_11056 {caseNum7} -1 {caseLabel7} @GFSEX_11056

:GFSEX_10687
if 
  is_char_playing_anim $scplayer {animationName} "SEX_1_P"
goto_if_false @GFSEX_10745
set_char_anim_playing_flag $scplayer {animationName} "SEX_1_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_1_P" {time} $GF_anim_time

:GFSEX_10745
if 
  is_char_playing_anim 24@ {animationName} "SEX_1_W"
goto_if_false @GFSEX_10803
set_char_anim_playing_flag 24@ {animationName} "SEX_1_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_1_W" {time} $GF_anim_time

:GFSEX_10803
goto @GFSEX_11056

:GFSEX_10810
if 
  is_char_playing_anim $scplayer {animationName} "SEX_2_P"
goto_if_false @GFSEX_10868
set_char_anim_playing_flag $scplayer {animationName} "SEX_2_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_2_P" {time} $GF_anim_time

:GFSEX_10868
if 
  is_char_playing_anim 24@ {animationName} "SEX_2_W"
goto_if_false @GFSEX_10926
set_char_anim_playing_flag 24@ {animationName} "SEX_2_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_2_W" {time} $GF_anim_time

:GFSEX_10926
goto @GFSEX_11056

:GFSEX_10933
if 
  is_char_playing_anim $scplayer {animationName} "SEX_3_P"
goto_if_false @GFSEX_10991
set_char_anim_playing_flag $scplayer {animationName} "SEX_3_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_3_P" {time} $GF_anim_time

:GFSEX_10991
if 
  is_char_playing_anim 24@ {animationName} "SEX_3_W"
goto_if_false @GFSEX_11049
set_char_anim_playing_flag 24@ {animationName} "SEX_3_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_3_W" {time} $GF_anim_time

:GFSEX_11049
goto @GFSEX_11056

:GFSEX_11056
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_11089
sub_float_lvar_from_float_var $GF_anim_time -= 16@
goto @GFSEX_11097

:GFSEX_11089
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_11097
if 
  0.0 >= $GF_anim_time
goto_if_false @GFSEX_11142
$GF_anim_time = 0.01
clear_local_var_bit_const 9@ {bitIndex} 5
gosub @GFSEX_11217

:GFSEX_11142
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_11187
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {bitIndex} 5
gosub @GFSEX_11217

:GFSEX_11187
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11215
gosub @GFSEX_11217

:GFSEX_11215
return 

:GFSEX_11217
$GF_left_stick_x, $GF_left_stick_y, $GF_right_stick_x, $GF_right_stick_y = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 17@ =# $GF_left_stick_y
17@ /= 128.0
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11316
if 
  0.0 > 17@
goto_if_false @GFSEX_11307
gosub @GFSEX_11451
goto @GFSEX_11316

:GFSEX_11307
gosub @GFSEX_11556
return 

:GFSEX_11316
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_11407
shake_pad PadId.Pad1 {time} 200 {intensity} 100
set_var_int_to_constant $iGFSayContext = 281
set_var_int_to_constant $iCJSayContext = 116
if 
  -0.8 > 17@
goto_if_false @GFSEX_11393
gosub @GFSEX_11451
goto @GFSEX_11400

:GFSEX_11393
gosub @GFSEX_11556

:GFSEX_11400
goto @GFSEX_11449

:GFSEX_11407
if 
  17@ > 0.8
goto_if_false @GFSEX_11442
gosub @GFSEX_11451
goto @GFSEX_11449

:GFSEX_11442
gosub @GFSEX_11556

:GFSEX_11449
return 

:GFSEX_11451
if 
  100 > $excitement
goto_if_false @GFSEX_11547
if 
  is_local_var_bit_set_const 9@ {bitIndex} 6
goto_if_false @GFSEX_11501
$excitement += 5
goto @GFSEX_11540

:GFSEX_11501
if 
  is_local_var_bit_set_const 9@ {bitIndex} 7
goto_if_false @GFSEX_11533
$excitement += 10
goto @GFSEX_11540

:GFSEX_11533
$excitement += 1

:GFSEX_11540
goto @GFSEX_11554

:GFSEX_11547
$excitement = 100

:GFSEX_11554
return 

:GFSEX_11556
if 
  TIMERB > 5000
goto_if_false @GFSEX_11653
if 
  $excitement > 0
goto_if_false @GFSEX_11646
if and
  $excitement > 10
  not is_local_var_bit_set_const 9@ {bitIndex} 6
goto_if_false @GFSEX_11632
$excitement -= 5
goto @GFSEX_11639

:GFSEX_11632
$excitement -= 1

:GFSEX_11639
goto @GFSEX_11653

:GFSEX_11646
$excitement = 0

:GFSEX_11653
return 

:GFSEX_11655
if 
  18@ > 90.0
goto_if_false @GFSEX_11686
18@ = 0.0

:GFSEX_11686
19@ = sin 18@
19@ *= 13.5
cset_lvar_int_to_lvar_float 20@ =# 19@
add_int_var_to_int_lvar 20@ += $power
if 
  20@ >= 100
goto_if_false @GFSEX_11752
$power = 100
goto @GFSEX_11760

:GFSEX_11752
set_var_int_to_lvar_int $power = 20@

:GFSEX_11760
18@ += 1.0
return 

:GFSEX_11772
18@ = 0.0
if 
  $power >= 97
goto_if_false @GFSEX_11814
$power -= 3
goto @GFSEX_11853

:GFSEX_11814
if 
  7 >= $power
goto_if_false @GFSEX_11846
$power = 0
goto @GFSEX_11853

:GFSEX_11846
$power -= 7

:GFSEX_11853
return 

:GFSEX_11855
if 
  $power >= 97
goto_if_false @GFSEX_11887
set_local_var_bit_const 9@ {bitIndex} 10
goto @GFSEX_11894

:GFSEX_11887
clear_local_var_bit_const 9@ {bitIndex} 10

:GFSEX_11894
return 

:GFSEX_11896
16@ = 0.025
if 
  is_local_var_bit_set_const 9@ {bitIndex} 10
goto_if_false @GFSEX_11934
16@ += 0.015

:GFSEX_11934
$GF_anim_time = 0.01
return 

:GFSEX_11946
if 
  is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_12010
set_char_anim_playing_flag $scplayer {animationName} "SPANKINGP" {flag} False
set_char_anim_current_time $scplayer {animationName} "SPANKINGP" {time} $GF_anim_time

:GFSEX_12010
if 
  is_char_playing_anim 24@ {animationName} "SPANKINGW"
goto_if_false @GFSEX_12074
set_char_anim_playing_flag 24@ {animationName} "SPANKINGW" {flag} False
set_char_anim_current_time 24@ {animationName} "SPANKINGW" {time} $GF_anim_time

:GFSEX_12074
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_12100
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_12100
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_12140
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {bitIndex} 5
return 

:GFSEX_12140
return 

:GFSEX_12142
if 
  is_local_var_bit_set_const 9@ {bitIndex} 10
goto_if_false @GFSEX_12214
set_var_int_to_constant $iGFSayContext = 283
if 
  100 >= $excitement
goto_if_false @GFSEX_12200
$excitement += 10
goto @GFSEX_12207

:GFSEX_12200
$excitement = 100

:GFSEX_12207
goto @GFSEX_12253

:GFSEX_12214
if 
  $excitement >= 10
goto_if_false @GFSEX_12246
$excitement -= 10
goto @GFSEX_12253

:GFSEX_12246
$excitement = 0

:GFSEX_12253
clear_local_var_bit_const 9@ {bitIndex} 10
clear_local_var_bit_const 9@ {bitIndex} 11
clear_local_var_bit_const 9@ {bitIndex} 12
return 

:GFSEX_12276
if and
  100 > $power
  $power > 0
  is_local_var_bit_set_const 9@ {bitIndex} 14
goto_if_false @GFSEX_12317
gosub @GFSEX_11772
return 

:GFSEX_12317
if and
  100 > $power
  $power > 0
  not is_local_var_bit_set_const 9@ {bitIndex} 14
goto_if_false @GFSEX_12358
gosub @GFSEX_11655
return 

:GFSEX_12358
if 
  $power >= 100
goto_if_false @GFSEX_12399
$power = 100
set_local_var_bit_const 9@ {bitIndex} 14
gosub @GFSEX_11772
return 

:GFSEX_12399
if 
  0 >= $power
goto_if_false @GFSEX_12440
$power = 0
clear_local_var_bit_const 9@ {bitIndex} 14
gosub @GFSEX_11655
return 

:GFSEX_12440
return 

:GFSEX_12442
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFSEX_12974 {caseNum1} 0 {caseLabel1} @GFSEX_12505 {caseNum2} 1 {caseLabel2} @GFSEX_12537 {caseNum3} 2 {caseLabel3} @GFSEX_12549 {caseNum4} 3 {caseLabel4} @GFSEX_12563 {caseNum5} 4 {caseLabel5} @GFSEX_12832 {caseNum6} 5 {caseLabel6} @GFSEX_12932 {caseNum7} 6 {caseLabel7} @GFSEX_12741

:GFSEX_12505
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12530
$iGFSpeechStatus = 3

:GFSEX_12530
goto @GFSEX_12974

:GFSEX_12537
enable_char_speech 24@
goto @GFSEX_12974

:GFSEX_12549
disable_char_speech 24@ {stopNow} False
goto @GFSEX_12974

:GFSEX_12563
if 
  not is_char_talking 24@
goto_if_false @GFSEX_12734
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12674
$iGFContextVariation = set_char_say_context_important 24@ {phrase} $iGFSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
gosub @GFSEX_12976
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12660
$iGFSpeechStatus = 6
goto @GFSEX_12667

:GFSEX_12660
$iGFSpeechStatus = 0

:GFSEX_12667
goto @GFSEX_12734

:GFSEX_12674
if 
  $iGFSayContext == -2
goto_if_false @GFSEX_12713
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFSEX_12734

:GFSEX_12713
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_12734
goto @GFSEX_12974

:GFSEX_12741
if and
  not is_char_talking $scplayer
  not is_char_talking 24@
goto_if_false @GFSEX_12825
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12818
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFSEX_12825

:GFSEX_12818
$iGFSpeechStatus = 0

:GFSEX_12825
goto @GFSEX_12974

:GFSEX_12832
disable_char_speech 24@ {stopNow} False
if 
  not is_char_talking 24@
goto_if_false @GFSEX_12925
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12918
$iGFContextVariation = set_char_say_context_important 24@ {phrase} $iGFSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
gosub @GFSEX_12976
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFSEX_12925

:GFSEX_12918
$iGFSpeechStatus = 0

:GFSEX_12925
goto @GFSEX_12974

:GFSEX_12932
if 
  not is_char_talking 24@
goto_if_false @GFSEX_12967
enable_char_speech 24@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_12967
goto @GFSEX_12974

:GFSEX_12974
return 

:GFSEX_12976
switch_start $iGFSayContext {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13135 {caseNum1} 283 {caseLabel1} @GFSEX_13043 {caseNum2} 284 {caseLabel2} @GFSEX_13066 {caseNum3} 285 {caseLabel3} @GFSEX_13089 {caseNum4} 286 {caseLabel4} @GFSEX_13112 {caseNum5} -1 {caseLabel5} @GFSEX_13135 {caseNum6} -1 {caseLabel6} @GFSEX_13135 {caseNum7} -1 {caseLabel7} @GFSEX_13135

:GFSEX_13043
print_now 'GF_0019' {time} 5000 {flag} 1
goto @GFSEX_13135

:GFSEX_13066
print_now 'GF_0067' {time} 5000 {flag} 1
goto @GFSEX_13135

:GFSEX_13089
print_now 'GF_0042' {time} 5000 {flag} 1
goto @GFSEX_13135

:GFSEX_13112
print_now 'GF_0067' {time} 5000 {flag} 1
goto @GFSEX_13135

:GFSEX_13135
return 

:GFSEX_13137
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13602 {caseNum1} 0 {caseLabel1} @GFSEX_13200 {caseNum2} 1 {caseLabel2} @GFSEX_13334 {caseNum3} 2 {caseLabel3} @GFSEX_13401 {caseNum4} 3 {caseLabel4} @GFSEX_13267 {caseNum5} 4 {caseLabel5} @GFSEX_13468 {caseNum6} 5 {caseLabel6} @GFSEX_13535 {caseNum7} -1 {caseLabel7} @GFSEX_13602

:GFSEX_13200
10@ = 2394.408
12@ = -1728.215
14@ = 14.2715
11@ = 2395.0659
13@ = -1727.465
15@ = 14.2063
goto @GFSEX_13602

:GFSEX_13267
10@ = -1401.494
12@ = 2640.0991
14@ = 59.3883
11@ = -1400.704
13@ = 2639.6411
15@ = 58.9806
goto @GFSEX_13602

:GFSEX_13334
10@ = -1799.7371
12@ = 1192.863
14@ = 29.6868
11@ = -1799.472
13@ = 1193.683
15@ = 29.1813
goto @GFSEX_13602

:GFSEX_13401
10@ = -383.3153
12@ = -1435.266
14@ = 26.695
11@ = -382.5756
13@ = -1435.887
15@ = 26.4366
goto @GFSEX_13602

:GFSEX_13468
10@ = -2582.293
12@ = 1147.762
14@ = 59.6235
11@ = -2581.406
13@ = 1147.7679
15@ = 59.1605
goto @GFSEX_13602

:GFSEX_13535
10@ = 2032.235
12@ = 2734.541
14@ = 13.3226
11@ = 2032.744
13@ = 2733.7141
15@ = 13.0817
goto @GFSEX_13602

:GFSEX_13602
return 

:GFSEX_13604
remove_animation "SNM"
remove_animation "SEX"
remove_animation "BLOWJOBZ"
remove_animation "KISSING"
unload_special_character 1
delete_char 24@
if 
  not is_car_dead 25@
goto_if_false @GFSEX_13686
set_car_proofs 25@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 25@

:GFSEX_13686
if 
  is_player_playing $player1
goto_if_false @GFSEX_13740
set_char_visible $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_tasks $scplayer
set_player_control $player1 {state} True
switch_widescreen False

:GFSEX_13740
display_radar True
set_global_var_bit_const $iDateReport {bitIndex} 21
clear_global_var_bit_const $iDateReport {bitIndex} 5
set_minigame_in_progress False
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug_with_float "STICK_POSITION" {number} 17@
write_debug_with_int "SHAGGIN_POSITION" {number} 22@
write_debug_with_int "I_EXCITEMENT" {number} $excitement
write_debug_with_float "ANIM_TIME" {number} $GF_anim_time
write_debug_with_int "SUBSTATESTATUS" {number} 8@
switch_start 7@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_14066 {caseNum1} 0 {caseLabel1} @GFSEX_13971 {caseNum2} 1 {caseLabel2} @GFSEX_13990 {caseNum3} 2 {caseLabel3} @GFSEX_14009 {caseNum4} 3 {caseLabel4} @GFSEX_14028 {caseNum5} 4 {caseLabel5} @GFSEX_14047 {caseNum6} -1 {caseLabel6} @GFSEX_14095 {caseNum7} -1 {caseLabel7} @GFSEX_14095

:GFSEX_13971
write_debug "STATE0__"
goto @GFSEX_14095

:GFSEX_13990
write_debug "STATE1__"
goto @GFSEX_14095

:GFSEX_14009
write_debug "STATE2__"
goto @GFSEX_14095

:GFSEX_14028
write_debug "STATE3__"
goto @GFSEX_14095

:GFSEX_14047
write_debug "STATE4__"
goto @GFSEX_14095

:GFSEX_14066
write_debug "UNTRAPPED_STATE___"
goto @GFSEX_14095

:GFSEX_14095
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 27 (CASINO_AMBIENCE)---------------

:CASAMB
script_name 'CASAMB'
if 
  $onmission == 0
goto_if_false @CASAMB_43
$fFunTemp = 0
$iSetCasinoPanic = 0

:CASAMB_43
1@ = 1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_91
request_model 124
request_model 126
request_model 125
request_model 214

:CASAMB_91
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_130
request_model 163
request_model 164
request_model 263

:CASAMB_130
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_170
request_model 163
request_model 164
request_model 172

:CASAMB_170
request_animation "BAR"

:CASAMB_177
if 
  not has_animation_loaded "BAR"
goto_if_false @CASAMB_206
wait 0
goto @CASAMB_177

:CASAMB_206
2@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 2@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 3@
4@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 4@
if 
  is_player_playing $player1
goto_if_false @CASAMB_1779
reset_num_of_models_killed_by_player $player1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_928
5@ = add_attractor 1953.774 {y} 1018.197 {z} 991.4766 {angle} 260.0 {_p5} 90.0 {sequence} 2@
6@ = add_attractor 1952.286 {y} 1025.58 {z} 991.4745 {angle} 260.0 {_p5} 90.0 {sequence} 2@
7@ = add_attractor 1952.3 {y} 1010.296 {z} 991.4745 {angle} 260.0 {_p5} 90.0 {sequence} 2@
8@ = add_attractor 1952.25 {y} 1017.92 {z} 991.4766 {angle} 90.0 {_p5} 260.0 {sequence} 3@
9@ = add_attractor 1948.073 {y} 1016.505 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
10@ = add_attractor 1948.564 {y} 1022.182 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
11@ = add_attractor 1949.246 {y} 1013.613 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
12@ = add_attractor 1949.0 {y} 1015.8 {z} 991.4766 {angle} 275.0 {_p5} 85.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 263 {taskId} 5@ {attractor} 1466
17@ = create_char_at_attractor PedType.CivFemale {modelId} 263 {taskId} 9@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 2.5 
start_new_streamed_script 38 {args} 17@ 9@ 10@ 11@ 12@ 2.5 
stream_script 38
13@ = add_attractor 1966.5389 {y} 984.8237 {z} 993.4688 {angle} 270.0 {_p5} 270.0 {sequence} 4@
14@ = add_attractor 1932.395 {y} 1033.886 {z} 993.4688 {angle} 60.0 {_p5} 300.0 {sequence} 4@
15@ = add_attractor 1959.094 {y} 993.7656 {z} 991.4766 {angle} 240.0 {_p5} 240.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502
19@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 14@ {attractor} 1502
20@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
start_new_streamed_script 39 {args} 19@ 
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_928
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_1474
5@ = add_attractor 2195.73 {y} 1600.786 {z} 1004.063 {angle} 206.0 {_p5} -206.0 {sequence} 2@
6@ = add_attractor 2197.012 {y} 1602.8521 {z} 1004.063 {angle} 253.0 {_p5} -253.0 {sequence} 2@
7@ = add_attractor 2195.7859 {y} 1606.363 {z} 1004.063 {angle} 349.0 {_p5} -349.0 {sequence} 2@
8@ = add_attractor 2196.137 {y} 1603.521 {z} 1004.063 {angle} 98.0 {_p5} -98.0 {sequence} 3@
9@ = add_attractor 2191.592 {y} 1601.286 {z} 1004.063 {angle} 151.0 {_p5} -151.0 {sequence} 2@
10@ = add_attractor 2191.176 {y} 1604.874 {z} 1004.063 {angle} 58.0 {_p5} -58.0 {sequence} 2@
11@ = add_attractor 2192.425 {y} 1606.9709 {z} 1004.063 {angle} 40.0 {_p5} -40.0 {sequence} 2@
12@ = add_attractor 2192.9541 {y} 1605.687 {z} 1004.069 {angle} 207.0 {_p5} -207.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 214 {taskId} 5@ {attractor} 1466
17@ = create_char_at_attractor PedType.CivFemale {modelId} 214 {taskId} 9@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 3.5 
start_new_streamed_script 38 {args} 17@ 9@ 10@ 11@ 12@ 3.5 
stream_script 38
13@ = add_attractor 2247.8689 {y} 1624.467 {z} 1007.367 {angle} 152.0 {_p5} -152.0 {sequence} 4@
14@ = add_attractor 2247.3491 {y} 1583.257 {z} 1007.366 {angle} 358.0 {_p5} -358.0 {sequence} 4@
15@ = add_attractor 2164.6431 {y} 1582.151 {z} 1007.359 {angle} 13.0 {_p5} -13.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 124 {taskId} 13@ {attractor} 1502
19@ = create_char_at_attractor PedType.Cop {modelId} 125 {taskId} 14@ {attractor} 1502
20@ = create_char_at_attractor PedType.Cop {modelId} 126 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
start_new_streamed_script 39 {args} 19@ 
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_1474
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_1779
5@ = add_attractor 1141.2061 {y} -5.9198 {z} 999.6719 {angle} 81.0 {_p5} -81.0 {sequence} 2@
6@ = add_attractor 1141.8311 {y} -8.994 {z} 999.6797 {angle} 94.0 {_p5} -94.0 {sequence} 2@
7@ = add_attractor 1141.161 {y} 1.224 {z} 999.6719 {angle} 110.0 {_p5} -110.0 {sequence} 2@
8@ = add_attractor 1141.1591 {y} -3.9906 {z} 999.6797 {angle} 93.0 {_p5} -93.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 5@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 2.0 
stream_script 38
9@ = -1
10@ = -1
11@ = -1
12@ = -1
13@ = add_attractor 1143.677 {y} 6.4929 {z} 999.6797 {angle} 71.0 {_p5} -71.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
stream_script 39
14@ = -1
15@ = -1

:CASAMB_1779
if 
  is_player_playing $player1
goto_if_false @CASAMB_3006
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @CASAMB_1835
goto @CASAMB_3017

:CASAMB_1835
if 
  is_char_shooting $scplayer
goto_if_false @CASAMB_1865
$fFunTemp = 1
$iSetCasinoPanic = 1

:CASAMB_1865
0@ = get_total_number_of_peds_killed_by_player $player1
if 
  0@ > 0
goto_if_false @CASAMB_1898
$iSetCasinoPanic = 1

:CASAMB_1898
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @CASAMB_1924
$iSetCasinoPanic = 1

:CASAMB_1924
0@ = 0

:CASAMB_1931
if 
  not is_char_dead 16@(0@,11i)
goto_if_false @CASAMB_2039
if and
  is_player_targetting_char $player1 {handle} 16@(0@,11i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @CASAMB_2002
$fFunTemp = 1
$iSetCasinoPanic = 1
goto @CASAMB_2039

:CASAMB_2002
if 
  has_char_been_damaged_by_char 16@(0@,11i) {handle} $scplayer
goto_if_false @CASAMB_2039
$fFunTemp = 1
$iSetCasinoPanic = 1

:CASAMB_2039
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_1931
if 
  $fFunTemp == 1
goto_if_false @CASAMB_2144
$iSetCasinoPanic = 1
0@ = get_random_char_in_sphere_no_brain 27@ {y} 28@ {z} 29@ {radius} 50.0
if 
  0@ > -1
goto_if_false @CASAMB_2144
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:CASAMB_2144
if 
  $iSetCasinoPanic == 1
goto_if_false @CASAMB_3006
if and
  is_char_dead 18@
  13@ <> -1
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2239
27@ = 1966.5389
28@ = 984.8237
29@ = 993.4688

:CASAMB_2239
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2293
27@ = 2247.8689
28@ = 1624.467
29@ = 1007.367

:CASAMB_2293
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_2348
27@ = 1143.677
28@ = 6.4929
29@ = 999.6797

:CASAMB_2348
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2452
18@ = create_char_at_attractor PedType.CivMale {modelId} 124 {taskId} 13@ {attractor} 1502
goto @CASAMB_2468

:CASAMB_2452
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502

:CASAMB_2468
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:CASAMB_2480
if and
  is_char_dead 19@
  14@ <> -1
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2557
27@ = 1932.395
28@ = 1033.886
29@ = 993.4688

:CASAMB_2557
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2611
27@ = 2247.3491
28@ = 1583.257
29@ = 1007.366

:CASAMB_2611
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2715
19@ = create_char_at_attractor PedType.Cop {modelId} 125 {taskId} 14@ {attractor} 1502
goto @CASAMB_2731

:CASAMB_2715
19@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 14@ {attractor} 1502

:CASAMB_2731
start_new_streamed_script 39 {args} 19@ 
stream_script 39

:CASAMB_2743
if and
  is_char_dead 20@
  15@ <> -1
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2820
27@ = 1959.094
28@ = 993.7656
29@ = 991.4766

:CASAMB_2820
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2874
27@ = 2164.6431
28@ = 1582.151
29@ = 1007.359

:CASAMB_2874
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2978
20@ = create_char_at_attractor PedType.CivMale {modelId} 126 {taskId} 15@ {attractor} 1502
goto @CASAMB_2994

:CASAMB_2978
20@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 15@ {attractor} 1502

:CASAMB_2994
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_3006
wait 0
goto @CASAMB_1779

:CASAMB_3017
0@ = 0

:CASAMB_3024
mark_char_as_no_longer_needed 16@(0@,11i)
delete_char 16@(0@,11i)
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3024
0@ = 0

:CASAMB_3070
if 
  5@(0@,11i) <> -1
goto_if_false @CASAMB_3101
clear_attractor 5@(0@,11i)

:CASAMB_3101
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3070
remove_animation "BAR"
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 263
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
clear_sequence_task 2@
clear_sequence_task 3@
clear_sequence_task 4@
terminate_this_script 
terminate_this_script 

//-------------External script 28 (BAR_AMBIENCE)---------------

:BAR
script_name 'BAR'
if and
  $onmission == 0
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @BAR_50
$iBouncerAction = 0
$iDanceScore = 0

:BAR_50
0@ = 0
if 
  0@ > 0
goto_if_false @BAR_99
$iDanceGirlfriend = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BAR_99
1@ = 1
2@ = 0
0@ = get_int_stat StatId.LatestDanceScore
if 
  0@ >= 7500
goto_if_false @BAR_154
15@ = 3
goto @BAR_161

:BAR_154
15@ = 0

:BAR_161
gosub @BAR_2146
4@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 4@
5@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 5@
if 
  is_player_playing $player1
goto_if_false @BAR_944
v$txtEntryExit = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_534
6@ = add_attractor 502.2242 {y} -19.8799 {z} 999.6797 {angle} 107.0 {_p5} -107.0 {sequence} 4@
7@ = add_attractor 502.0665 {y} -24.1488 {z} 999.6797 {angle} 94.0 {_p5} -94.0 {sequence} 4@
8@ = add_attractor 502.0757 {y} -17.2798 {z} 999.6719 {angle} 85.0 {_p5} -85.0 {sequence} 4@
9@ = add_attractor 502.3116 {y} -19.8236 {z} 999.6797 {angle} 278.6 {_p5} -278.6 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_534
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
goto_if_false @BAR_738
6@ = add_attractor 497.9362 {y} -78.0533 {z} 997.7651 {angle} 1.0 {_p5} -1.0 {sequence} 4@
7@ = add_attractor 493.9349 {y} -77.9233 {z} 997.7651 {angle} 100.5 {_p5} -100.5 {sequence} 4@
8@ = add_attractor 501.2002 {y} -77.739 {z} 997.7651 {angle} 19.0 {_p5} -19.0 {sequence} 4@
9@ = add_attractor 496.5553 {y} -78.7725 {z} 997.7651 {angle} 194.5 {_p5} -194.5 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_738
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @BAR_944
6@ = add_attractor -223.2594 {y} 1405.634 {z} 26.7656 {angle} 86.9 {_p5} 262.0 {sequence} 4@
7@ = add_attractor -223.26 {y} 1402.984 {z} 26.7656 {angle} 145.4 {_p5} 327.0 {sequence} 4@
8@ = add_attractor -223.2956 {y} 1407.486 {z} 26.7656 {angle} 26.0 {_p5} 184.0 {sequence} 4@
9@ = add_attractor -222.6826 {y} 1405.787 {z} 26.7656 {angle} 275.7 {_p5} 97.0 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_944
wait 0
if 
  is_player_playing $player1
goto_if_false @BAR_2139
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @BAR_1004
goto @BAR_2225

:BAR_1004
if and
  $iDanceScore == 0
  $onmission == 0
  2@ == 0
goto_if_false @BAR_1462
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1455
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 488.0048 {y} -14.0754 {z} 999.6797 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @BAR_1455
clear_help 
clear_prints 
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @BAR_1286
0@ = get_int_stat StatId.LatestDanceScore
if 
  0@ >= 3500
goto_if_false @BAR_1169
3@ = 3
goto @BAR_1244

:BAR_1169
if 
  0@ >= 6000
goto_if_false @BAR_1202
3@ = 4
goto @BAR_1244

:BAR_1202
if 
  0@ >= 7500
goto_if_false @BAR_1237
3@ = generate_random_int_in_range 1 {max} 5
goto @BAR_1244

:BAR_1237
3@ = 2

:BAR_1244
start_new_streamed_script 35 {args} 488.0048 -14.0754 999.6797 180.0 3@ $iDanceGirlfriend 
stream_script 35
goto @BAR_1441

:BAR_1286
switch_start 15@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BAR_1407 {caseNum1} 0 {caseLabel1} @BAR_1349 {caseNum2} 1 {caseLabel2} @BAR_1363 {caseNum3} 2 {caseLabel3} @BAR_1377 {caseNum4} 3 {caseLabel4} @BAR_1391 {caseNum5} -1 {caseLabel5} @BAR_1407 {caseNum6} -1 {caseLabel6} @BAR_1407 {caseNum7} -1 {caseLabel7} @BAR_1407

:BAR_1349
3@ = 2
goto @BAR_1407

:BAR_1363
3@ = 3
goto @BAR_1407

:BAR_1377
3@ = 4
goto @BAR_1407

:BAR_1391
3@ = generate_random_int_in_range 1 {max} 5
goto @BAR_1407

:BAR_1407
start_new_streamed_script 35 {args} 488.0048 -14.0754 999.6797 180.0 3@ 0 
stream_script 35

:BAR_1441
2@ = 1
16@ = 0

:BAR_1455
goto @BAR_1884

:BAR_1462
if and
  $iDanceScore == 0
  $onmission == 0
  2@ == 1
goto_if_false @BAR_1884
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1884
if 
  not locate_char_on_foot_3d $scplayer {x} 488.0048 {y} -14.0754 {z} 999.6797 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @BAR_1578
2@ = 0
goto @BAR_1884

:BAR_1578
if and
  not is_minigame_in_progress 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
  16@ == 0
goto_if_false @BAR_1884
switch_start 15@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BAR_1884 {caseNum1} 0 {caseLabel1} @BAR_1668 {caseNum2} 1 {caseLabel2} @BAR_1740 {caseNum3} 2 {caseLabel3} @BAR_1812 {caseNum4} -1 {caseLabel4} @BAR_1884 {caseNum5} -1 {caseLabel5} @BAR_1884 {caseNum6} -1 {caseLabel6} @BAR_1884 {caseNum7} -1 {caseLabel7} @BAR_1884

:BAR_1668
if 
  $iDanceReport >= 3500
goto_if_false @BAR_1733
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P2' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1733
goto @BAR_1884

:BAR_1740
if 
  $iDanceReport >= 6000
goto_if_false @BAR_1805
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P2' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1805
goto @BAR_1884

:BAR_1812
if 
  $iDanceReport >= 7500
goto_if_false @BAR_1877
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P3' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1877
goto @BAR_1884

:BAR_1884
if 
  is_char_shooting $scplayer
goto_if_false @BAR_1907
$iBouncerAction = 1

:BAR_1907
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @BAR_1933
$iBouncerAction = 1

:BAR_1933
0@ = 0

:BAR_1940
if 
  not is_char_dead 10@(0@,2i)
goto_if_false @BAR_2034
if and
  is_player_targetting_char $player1 {handle} 10@(0@,2i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @BAR_2004
$iBouncerAction = 1
goto @BAR_2034

:BAR_2004
if 
  has_char_been_damaged_by_char 10@(0@,2i) {handle} $scplayer
goto_if_false @BAR_2034
$iBouncerAction = 1

:BAR_2034
0@ += 1
  0@ >= 2
goto_if_false @BAR_1940
if 
  $iBouncerAction == 1
goto_if_false @BAR_2139
$iDanceScore = 1
0@ = get_random_char_in_sphere_no_brain 12@ {y} 13@ {z} 14@ {radius} 50.0
if 
  0@ > -1
goto_if_false @BAR_2139
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:BAR_2139
goto @BAR_944

:BAR_2146
request_model 172
request_animation "BAR"
request_animation "DANCING"
if and
  has_model_loaded 172
  has_animation_loaded "BAR"
  has_animation_loaded "DANCING"
goto_if_false @BAR_2212
return 
goto @BAR_2223

:BAR_2212
wait 0
goto @BAR_2146

:BAR_2223
return 

:BAR_2225
0@ = 0

:BAR_2232
mark_char_as_no_longer_needed 10@(0@,2i)
delete_char 10@(0@,2i)
0@ += 1
  0@ >= 2
goto_if_false @BAR_2232
0@ = 0

:BAR_2278
if 
  6@(0@,4i) <> -1
goto_if_false @BAR_2309
clear_attractor 6@(0@,4i)

:BAR_2309
0@ += 1
  0@ >= 4
goto_if_false @BAR_2278
mark_model_as_no_longer_needed 172
clear_sequence_task 4@
clear_sequence_task 5@
remove_animation "BAR"
remove_animation "DANCING"
terminate_this_script 
terminate_this_script 

//-------------External script 29 (FOODBRAINS)---------------

:PSHOP
script_name 'PSHOP'
$iSetPizzaPanic = 0
switch_start 0@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PSHOP_552 {caseNum1} 0 {caseLabel1} @PSHOP_81 {caseNum2} 1 {caseLabel2} @PSHOP_238 {caseNum3} 2 {caseLabel3} @PSHOP_395 {caseNum4} -1 {caseLabel4} @PSHOP_552 {caseNum5} -1 {caseLabel5} @PSHOP_552 {caseNum6} -1 {caseLabel6} @PSHOP_552 {caseNum7} -1 {caseLabel7} @PSHOP_552

:PSHOP_81
3@ = 377.3
4@ = -117.182
5@ = 1000.637
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 155
request_model 11@
request_model #PIZZAHIGH
request_model #CJ_PIZZA_2

:PSHOP_152
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_179
wait 0
goto @PSHOP_152

:PSHOP_179
if 
  not has_model_loaded #PIZZAHIGH
goto_if_false @PSHOP_205
wait 0
goto @PSHOP_179

:PSHOP_205
if 
  not has_model_loaded #CJ_PIZZA_2
goto_if_false @PSHOP_231
wait 0
goto @PSHOP_205

:PSHOP_231
goto @PSHOP_552

:PSHOP_238
3@ = 371.5365
4@ = -4.4935
5@ = 1000.859
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 167
request_model 11@
request_model #BURGERHIGH
request_model #CJ_BURG_2

:PSHOP_309
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_336
wait 0
goto @PSHOP_309

:PSHOP_336
if 
  not has_model_loaded #BURGERHIGH
goto_if_false @PSHOP_362
wait 0
goto @PSHOP_336

:PSHOP_362
if 
  not has_model_loaded #CJ_BURG_2
goto_if_false @PSHOP_388
wait 0
goto @PSHOP_362

:PSHOP_388
goto @PSHOP_552

:PSHOP_395
3@ = 378.4146
4@ = -65.8567
5@ = 1000.508
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 205
request_model 11@
request_model #BURGERHIGH
request_model #CJ_BURG_2

:PSHOP_466
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_493
wait 0
goto @PSHOP_466

:PSHOP_493
if 
  not has_model_loaded #BURGERHIGH
goto_if_false @PSHOP_519
wait 0
goto @PSHOP_493

:PSHOP_519
if 
  not has_model_loaded #CJ_BURG_2
goto_if_false @PSHOP_545
wait 0
goto @PSHOP_519

:PSHOP_545
goto @PSHOP_552

:PSHOP_552
8@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 8@
9@ = add_attractor 3@ {y} 4@ {z} 5@ {angle} 6@ {_p5} 7@ {sequence} 8@
10@ = create_char_at_attractor PedType.CivMale {modelId} 11@ {taskId} 9@ {attractor} 1466
start_new_streamed_script 36 {args} 10@ 9@ 
stream_script 36

:PSHOP_628
if 
  is_player_playing $player1
goto_if_false @PSHOP_873
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @PSHOP_684
gosub @PSHOP_884

:PSHOP_684
if 
  is_char_shooting $scplayer
goto_if_false @PSHOP_707
$iSetPizzaPanic = 1

:PSHOP_707
if 
  not is_char_dead 10@
goto_if_false @PSHOP_782
if 
  is_player_targetting_char $player1 {handle} 10@
goto_if_false @PSHOP_756
$iSetPizzaPanic = 1
goto @PSHOP_782

:PSHOP_756
if 
  has_char_been_damaged_by_char 10@ {handle} $scplayer
goto_if_false @PSHOP_782
$iSetPizzaPanic = 1

:PSHOP_782
if 
  $iSetPizzaPanic == 1
goto_if_false @PSHOP_873
3@, 4@, 5@ = get_char_coordinates $scplayer
1@ = get_random_char_in_sphere_no_brain 3@ {y} 4@ {z} 5@ {radius} 20.0
if 
  1@ > -1
goto_if_false @PSHOP_873
2@ += 1
start_new_streamed_script 37 {args} 1@ 2@ 
stream_script 37

:PSHOP_873
wait 0
goto @PSHOP_628

:PSHOP_884
$iSetPizzaPanic = 0
mark_char_as_no_longer_needed 10@
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed 205
mark_model_as_no_longer_needed #PIZZAHIGH
mark_model_as_no_longer_needed #BURGERHIGH
mark_model_as_no_longer_needed #CJ_PIZZA_2
mark_model_as_no_longer_needed #CJ_BURG_2
delete_char 10@
clear_attractor 9@
clear_sequence_task 8@
terminate_this_script 
terminate_this_script 

//-------------External script 30 (OTB_AMBIENCE)---------------

:OTBSHP
script_name 'OTBSHP'
if 
  $onmission == 0
goto_if_false @OTBSHP_36
$played_ryder1_before = 0

:OTBSHP_36
1@ = 1
request_model 11
request_model 172

:OTBSHP_52
if 
  not has_model_loaded 172
goto_if_false @OTBSHP_79
wait 0
goto @OTBSHP_52

:OTBSHP_79
if 
  not has_model_loaded 11
goto_if_false @OTBSHP_105
wait 0
goto @OTBSHP_79

:OTBSHP_105
2@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 2@
3@ = add_attractor 820.3698 {y} -0.3935 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
4@ = add_attractor 820.133 {y} 4.2015 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
5@ = add_attractor 820.3185 {y} 6.4021 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
6@ = add_attractor 820.0 {y} 2.0 {z} 1003.0 {angle} 270.0 {_p5} 90.0 {sequence} 2@
7@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 3@ {attractor} 1466
8@ = create_char_at_attractor PedType.CivFemale {modelId} 11 {taskId} 4@ {attractor} 1466
9@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 5@ {attractor} 1466
10@ = create_char_at_attractor PedType.CivFemale {modelId} 11 {taskId} 6@ {attractor} 1466
start_new_streamed_script 40 {args} 7@ 3@ 
start_new_streamed_script 40 {args} 8@ 4@ 
start_new_streamed_script 40 {args} 9@ 5@ 
start_new_streamed_script 40 {args} 10@ 6@ 
stream_script 40

:OTBSHP_369
if 
  is_player_playing $player1
goto_if_false @OTBSHP_655
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @OTBSHP_425
goto @OTBSHP_666

:OTBSHP_425
if or
  is_char_shooting $scplayer
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @OTBSHP_456
$played_ryder1_before = 1

:OTBSHP_456
0@ = 0

:OTBSHP_463
if 
  not is_char_dead 7@(0@,4i)
goto_if_false @OTBSHP_557
if and
  is_player_targetting_char $player1 {handle} 7@(0@,4i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @OTBSHP_527
$played_ryder1_before = 1
goto @OTBSHP_557

:OTBSHP_527
if 
  has_char_been_damaged_by_char 7@(0@,4i) {handle} $scplayer
goto_if_false @OTBSHP_557
$played_ryder1_before = 1

:OTBSHP_557
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_463
if 
  $played_ryder1_before == 1
goto_if_false @OTBSHP_655
0@ = get_random_char_in_sphere_no_brain 11@ {y} 12@ {z} 13@ {radius} 20.0
if 
  0@ > -1
goto_if_false @OTBSHP_655
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:OTBSHP_655
wait 0
goto @OTBSHP_369

:OTBSHP_666
0@ = 0

:OTBSHP_673
mark_char_as_no_longer_needed 7@(0@,4i)
delete_char 7@(0@,4i)
clear_attractor 3@(0@,4i)
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_673
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 11
clear_sequence_task 2@
terminate_this_script 
terminate_this_script 

//-------------External script 31 (STRIP_AMBIENCE)---------------

:STRIP
script_name 'STRIP'
if 
  $onmission == 0
goto_if_false @STRIP_43
$iSetBarPanic = 0
$iSetCasinoPanic = 0

:STRIP_43
0@ = 0
if 
  0@ == 1
goto_if_false @STRIP_114
$iLapDancesWatched = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$iStripperPed = create_object 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIP_114
1@ = 1
$iPrintStripperHelp = 0
$iSetSTRIPPanic = 0
gosub @STRIP_2509
7@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 7@
8@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 8@
9@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 9@
if 
  is_player_playing $player1
goto_if_false @STRIP_881
reset_num_of_models_killed_by_player $player1
v$5310 = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_650
10@ = add_attractor 1214.859 {y} -15.4637 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
11@ = add_attractor 1217.084 {y} -15.4657 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
12@ = add_attractor 1213.234 {y} -15.4087 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
13@ = add_attractor 1214.085 {y} -15.4395 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 8@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 10@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 10@ 11@ 12@ 13@ 2.5 15.0 1 
stream_script 38
14@ = add_attractor 1220.042 {y} -15.3365 {z} 999.9219 {angle} 341.7 {_p5} -341.7 {sequence} 9@
15@ = add_attractor 1222.0081 {y} 4.4324 {z} 999.9219 {angle} 93.3 {_p5} -93.3 {sequence} 9@
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
18@ = create_char_at_attractor PedType.CivMale {modelId} 164 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 17@ 
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:STRIP_650
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_881
10@ = -1
11@ = add_attractor 1206.2 {y} -30.6012 {z} 999.9531 {angle} 180.0 {_p5} 0.0 {sequence} 7@
12@ = -1
13@ = add_attractor 1206.2 {y} -29.1414 {z} 999.9531 {angle} 270.0 {_p5} 0.0 {sequence} 8@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 11@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 11@ 11@ 11@ 13@ 1.5 15.0 1 
stream_script 38
14@ = add_attractor 1216.871 {y} -24.1246 {z} 999.9531 {angle} 146.8 {_p5} -146.8 {sequence} 9@
15@ = -1
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
18@ = -1
start_new_streamed_script 39 {args} 17@ 
stream_script 39

:STRIP_881
wait 0
if 
  is_player_playing $player1
goto_if_false @STRIP_2502
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @STRIP_941
goto @STRIP_2586

:STRIP_941
if 
  4@ > 0
goto_if_false @STRIP_973
gosub @STRIP_2766
goto @STRIP_881

:STRIP_973
if 
  $iPrintStripperHelp <> 0
goto_if_false @STRIP_1042
if 
  not is_char_dead $iLapDancesWatched
goto_if_false @STRIP_1021
gosub @STRIP_5426
goto @STRIP_1042

:STRIP_1021
set_player_control $player1 {state} True
$iPrintStripperHelp = 0
$iLapDancesWatched = -1

:STRIP_1042
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_1326
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1326
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 1204.85 {y} 11.8 {z} 999.9219 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @STRIP_1312
if 
  is_score_greater $player1 {money} 99
goto_if_false @STRIP_1298
if 
  2@ == 0
goto_if_false @STRIP_1291
3@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_1291
add_score $player1 {money} -100
increment_float_stat StatId.StripClubBudget {value} 100.0
2@ = 1
3@ = 0
19@ = 1204.326
20@ = 17.709
21@ = 998.925
22@ = 0.0
do_fade 500 {direction} Fade.Out
4@ = 1
gosub @STRIP_2766

:STRIP_1291
goto @STRIP_1305

:STRIP_1298
3@ = 2

:STRIP_1305
goto @STRIP_1326

:STRIP_1312
3@ = 0
2@ = 0

:STRIP_1326
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_1624
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1624
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 1207.59 {y} -40.646 {z} 999.9531 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @STRIP_1610
if 
  is_score_greater $player1 {money} 99
goto_if_false @STRIP_1596
if 
  2@ == 0
goto_if_false @STRIP_1589
3@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_1589
add_score $player1 {money} -100
22@ = get_float_stat StatId.StripClubBudget
22@ += 100.0
22@ = get_float_stat StatId.StripClubBudget
2@ = 1
3@ = 0
19@ = 1207.366
20@ = -43.595
21@ = 998.925
22@ = 0.0
do_fade 500 {direction} Fade.Out
4@ = 1
gosub @STRIP_2766

:STRIP_1589
goto @STRIP_1603

:STRIP_1596
3@ = 2

:STRIP_1603
goto @STRIP_1624

:STRIP_1610
3@ = 0
2@ = 0

:STRIP_1624
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1784
if 
  3@ == 1
goto_if_false @STRIP_1685
print_help_forever 'STR_01'
goto @STRIP_1777

:STRIP_1685
if 
  3@ == 2
goto_if_false @STRIP_1721
print_help_forever 'STR_03'
goto @STRIP_1777

:STRIP_1721
if 
  $iSetSTRIPPanic > 0
goto_if_false @STRIP_1757
print_help_forever 'STR_00'
goto @STRIP_1777

:STRIP_1757
if 
  4@ == 0
goto_if_false @STRIP_1777
clear_help 

:STRIP_1777
goto @STRIP_1786

:STRIP_1784
clear_help 

:STRIP_1786
if 
  is_char_shooting $scplayer
goto_if_false @STRIP_1816
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1816
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @STRIP_1849
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1849
0@ = get_total_number_of_peds_killed_by_player $player1
if 
  0@ > 0
goto_if_false @STRIP_1882
$iSetCasinoPanic = 1

:STRIP_1882
0@ = 0

:STRIP_1889
if 
  not is_char_dead 16@(0@,3i)
goto_if_false @STRIP_1997
if and
  is_player_targetting_char $player1 {handle} 16@(0@,3i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @STRIP_1960
$iSetBarPanic = 1
$iSetCasinoPanic = 1
goto @STRIP_1997

:STRIP_1960
if 
  has_char_been_damaged_by_char 16@(0@,3i) {handle} $scplayer
goto_if_false @STRIP_1997
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1997
0@ += 1
  0@ >= 3
goto_if_false @STRIP_1889
if 
  $iSetBarPanic == 1
goto_if_false @STRIP_2102
$iSetCasinoPanic = 1
0@ = get_random_char_in_sphere_no_brain 19@ {y} 20@ {z} 21@ {radius} 50.0
if 
  0@ > -1
goto_if_false @STRIP_2102
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:STRIP_2102
if 
  $iSetCasinoPanic == 1
goto_if_false @STRIP_2502
if and
  is_char_dead 17@
  14@ <> -1
goto_if_false @STRIP_2338
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_2198
19@ = 1220.042
20@ = -15.3365
21@ = 999.9219

:STRIP_2198
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_2252
19@ = 1216.871
20@ = -24.1246
21@ = 999.9531

:STRIP_2252
if and
  not locate_char_any_means_3d $scplayer {x} 19@ {y} 20@ {z} 21@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 19@ {y} 20@ {z} 21@ {radius} 3.0
goto_if_false @STRIP_2338
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
start_new_streamed_script 39 {args} 17@ 
stream_script 39

:STRIP_2338
if and
  is_char_dead 18@
  15@ <> -1
goto_if_false @STRIP_2502
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_2416
19@ = 1222.0081
20@ = 4.4324
21@ = 999.9219

:STRIP_2416
if and
  not locate_char_any_means_3d $scplayer {x} 19@ {y} 20@ {z} 21@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 19@ {y} 20@ {z} 21@ {radius} 3.0
goto_if_false @STRIP_2502
18@ = create_char_at_attractor PedType.CivMale {modelId} 164 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:STRIP_2502
goto @STRIP_881

:STRIP_2509
request_model 163
request_model 164
request_model 172
request_animation "BAR"
if and
  has_model_loaded 163
  has_model_loaded 164
  has_model_loaded 172
  has_animation_loaded "BAR"
goto_if_false @STRIP_2573
return 
goto @STRIP_2584

:STRIP_2573
wait 0
goto @STRIP_2509

:STRIP_2584
return 

:STRIP_2586
0@ = 0

:STRIP_2593
mark_char_as_no_longer_needed 16@(0@,3i)
delete_char 16@(0@,3i)
0@ += 1
  0@ >= 3
goto_if_false @STRIP_2593
0@ = 0

:STRIP_2639
if 
  10@(0@,6i) <> -1
goto_if_false @STRIP_2670
clear_attractor 10@(0@,6i)

:STRIP_2670
0@ += 1
  0@ >= 6
goto_if_false @STRIP_2639
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
clear_sequence_task 7@
clear_sequence_task 8@
remove_animation "STRIP"
remove_animation "BAR"
$iSetCasinoPanic = 0
clear_help 
if 
  is_player_playing $player1
goto_if_false @STRIP_2764
set_player_control $player1 {state} True

:STRIP_2764
terminate_this_script 

:STRIP_2766
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STRIP_3923 {caseNum1} 1 {caseLabel1} @STRIP_2829 {caseNum2} 2 {caseLabel2} @STRIP_3053 {caseNum3} 3 {caseLabel3} @STRIP_3194 {caseNum4} 4 {caseLabel4} @STRIP_3320 {caseNum5} 5 {caseLabel5} @STRIP_3653 {caseNum6} 6 {caseLabel6} @STRIP_3887 {caseNum7} -1 {caseLabel7} @STRIP_3923

:STRIP_2829
if 
  not get_fading_status 
goto_if_false @STRIP_3046
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
display_hud False
display_radar False
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} False
set_char_coordinates $scplayer {x} 19@ {y} 20@ {z} 21@
set_char_heading $scplayer {heading} 22@
set_camera_in_front_of_player 
if 
  $iThrowMoneyState == 0
goto_if_false @STRIP_2956
set_lvar_int_to_constant 5@ = 256
set_lvar_text_label16 28@v = "LAPDAN1"
$iThrowMoneyState += 1
goto @STRIP_3039

:STRIP_2956
if 
  $iThrowMoneyState == 1
goto_if_false @STRIP_3010
set_lvar_int_to_constant 5@ = 257
set_lvar_text_label16 28@v = "LAPDAN2"
$iThrowMoneyState += 1
goto @STRIP_3039

:STRIP_3010
set_lvar_int_to_constant 5@ = 246
set_lvar_text_label16 28@v = "LAPDAN3"
$iThrowMoneyState = 0

:STRIP_3039
4@ += 1

:STRIP_3046
goto @STRIP_3923

:STRIP_3053
if 
  not has_animation_loaded 28@v
goto_if_false @STRIP_3081
request_animation 28@v
goto @STRIP_3187

:STRIP_3081
if 
  not has_model_loaded 5@
goto_if_false @STRIP_3109
request_model 5@
goto @STRIP_3187

:STRIP_3109
19@, 20@, 21@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -1.0 {zOffset} -1.0
22@ = get_char_heading $scplayer
5@ = create_char PedType.CivFemale {modelId} 5@ {x} 19@ {y} 20@ {z} 21@
set_char_collision 5@ {state} False
set_char_heading 5@ {heading} 22@
4@ += 1

:STRIP_3187
goto @STRIP_3923

:STRIP_3194
task_play_anim_non_interruptable $scplayer {animationName} "LAPDAN_P" {animationFile} 28@v {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_char_dead 5@
goto_if_false @STRIP_3290
task_play_anim_non_interruptable 5@ {animationName} "LAPDAN_D" {animationFile} 28@v {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = -1
gosub @STRIP_3925

:STRIP_3290
do_fade 1500 {direction} Fade.In
TIMERB = 0
clear_help 
4@ += 1
goto @STRIP_3923

:STRIP_3320
if 
  not get_fading_status 
goto_if_false @STRIP_3646
if 
  not is_char_dead 5@
goto_if_false @STRIP_3639
if 
  is_char_playing_anim $scplayer {animationName} "LAPDAN_P"
goto_if_false @STRIP_3432
23@ = get_char_anim_total_time $scplayer {animationName} "LAPDAN_P"
cset_lvar_int_to_lvar_float 25@ =# 23@
25@ -= 800
set_lvar_int_to_lvar_int 26@ = 25@
26@ -= 2200
goto @STRIP_3439

:STRIP_3432
25@ = 0

:STRIP_3439
if and
  TIMERB > 2500
  2600 > TIMERB
goto_if_false @STRIP_3499
if 
  not is_this_help_message_being_displayed 'STR_02'
goto_if_false @STRIP_3499
print_help 'STR_02'

:STRIP_3499
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @STRIP_3539
do_fade 500 {direction} Fade.Out
4@ += 1
goto @STRIP_3923

:STRIP_3539
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  TIMERA >= 500
  TIMERB > 2500
  is_int_lvar_greater_than_int_lvar 26@ > TIMERB
goto_if_false @STRIP_3594
gosub @STRIP_3925
TIMERA = 0

:STRIP_3594
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_3632
do_fade 500 {direction} Fade.Out
4@ += 1
goto @STRIP_3923

:STRIP_3632
goto @STRIP_3646

:STRIP_3639
4@ += 1

:STRIP_3646
goto @STRIP_3923

:STRIP_3653
if 
  not get_fading_status 
goto_if_false @STRIP_3880
if 
  not is_char_dead 5@
goto_if_false @STRIP_3873
clear_help 
0@ = get_char_model 5@
mark_model_as_no_longer_needed 0@
remove_animation 28@v
delete_char 5@
clear_char_tasks_immediately $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
display_hud True
display_radar True
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_3798
set_char_coordinates $scplayer {x} 1204.991 {y} 12.6603 {z} 999.9219
set_char_heading $scplayer {heading} 180.0

:STRIP_3798
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_3852
set_char_coordinates $scplayer {x} 1207.59 {y} -40.646 {z} 999.9531
set_char_heading $scplayer {heading} 360.0

:STRIP_3852
do_fade 500 {direction} Fade.In
4@ += 1
goto @STRIP_3880

:STRIP_3873
4@ += 1

:STRIP_3880
goto @STRIP_3923

:STRIP_3887
if 
  not get_fading_status 
goto_if_false @STRIP_3916
set_player_control $player1 {state} True
4@ = 0
return 

:STRIP_3916
goto @STRIP_3923

:STRIP_3923
return 

:STRIP_3925
switch_start 6@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @STRIP_5173 {caseNum1} -1 {caseLabel1} @STRIP_3988 {caseNum2} 0 {caseLabel2} @STRIP_4225 {caseNum3} 1 {caseLabel3} @STRIP_4462 {caseNum4} 2 {caseLabel4} @STRIP_4699 {caseNum5} 3 {caseLabel5} @STRIP_4936 {caseNum6} -1 {caseLabel6} @STRIP_5417 {caseNum7} -1 {caseLabel7} @STRIP_5417

:STRIP_3988
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4119
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.JumpCut
goto @STRIP_4218

:STRIP_4119
19@ = 1208.3199
20@ = -45.8672
21@ = 1001.066
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.847
20@ = -44.9985
21@ = 1000.919
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.JumpCut

:STRIP_4218
goto @STRIP_5417

:STRIP_4225
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4356
19@ = 1202.6541
20@ = 16.7123
21@ = 1001.302
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1203.589
20@ = 16.9879
21@ = 1001.08
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4455

:STRIP_4356
19@ = 1205.649
20@ = -44.5486
21@ = 1001.344
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1206.541
20@ = -44.2188
21@ = 1001.035
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4455
goto @STRIP_5417

:STRIP_4462
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4593
19@ = 1203.5291
20@ = 18.3118
21@ = 1001.391
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.11
20@ = 17.5609
21@ = 1001.078
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4692

:STRIP_4593
19@ = 1206.434
20@ = -43.1812
21@ = 1001.705
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.0439
20@ = -43.796
21@ = 1001.204
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4692
goto @STRIP_5417

:STRIP_4699
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4830
19@ = 1204.712
20@ = 18.3221
21@ = 1000.941
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.4091
20@ = 17.369
21@ = 1000.95
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4929

:STRIP_4830
19@ = 1207.472
20@ = -43.1042
21@ = 1001.054
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.325
20@ = -44.0841
21@ = 1000.919
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4929
goto @STRIP_5417

:STRIP_4936
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_5067
19@ = 1205.856
20@ = 17.3141
21@ = 1002.26
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1205.0959
20@ = 17.1228
21@ = 1001.64
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_5166

:STRIP_5067
19@ = 1207.8459
20@ = -43.4954
21@ = 1001.964
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.427
20@ = -43.9585
21@ = 1001.184
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_5166
goto @STRIP_5417

:STRIP_5173
6@ = -1
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_5311
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_5410

:STRIP_5311
19@ = 1207.978
20@ = -46.1248
21@ = 1001.215
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.757
20@ = -45.1702
21@ = 1001.016
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_5410
goto @STRIP_5417

:STRIP_5417
6@ += 1
return 

:STRIP_5426
switch_start $iPrintStripperHelp {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @STRIP_5877 {caseNum1} 1 {caseLabel1} @STRIP_5489 {caseNum2} 2 {caseLabel2} @STRIP_5518 {caseNum3} 3 {caseLabel3} @STRIP_5598 {caseNum4} 4 {caseLabel4} @STRIP_5770 {caseNum5} -1 {caseLabel5} @STRIP_5877 {caseNum6} -1 {caseLabel6} @STRIP_5877 {caseNum7} -1 {caseLabel7} @STRIP_5877

:STRIP_5489
set_player_control $player1 {state} False
task_turn_char_to_face_char $scplayer {target} $iLapDancesWatched
$iPrintStripperHelp = 2
goto @STRIP_5877

:STRIP_5518
27@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @STRIP_5591
task_play_anim_non_interruptable $scplayer {animationName} "PLY_CASH" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
$iPrintStripperHelp = 3

:STRIP_5591
goto @STRIP_5877

:STRIP_5598
if 
  is_char_playing_anim $scplayer {animationName} "PLY_CASH"
goto_if_false @STRIP_5756
24@ = get_char_anim_current_time $scplayer {animationName} "PLY_CASH"
if and
  24@ >= 0.35
  1.0 > 24@
goto_if_false @STRIP_5749
19@, 20@, 21@ = get_offset_from_char_in_world_coords $iLapDancesWatched {xOffset} 0.0 {yOffset} 0.5 {zOffset} -0.5
$iStripperPed = create_object_no_offset #MONEY {x} 19@ {y} 20@ {z} 21@
set_object_collision $iStripperPed {state} False
add_score $player1 {money} -20
increment_float_stat StatId.StripClubBudget {value} 20.0
$iPrintStripperHelp = 4

:STRIP_5749
goto @STRIP_5763

:STRIP_5756
$iPrintStripperHelp = 4

:STRIP_5763
goto @STRIP_5877

:STRIP_5770
if 
  is_char_playing_anim $scplayer {animationName} "PLY_CASH"
goto_if_false @STRIP_5856
24@ = get_char_anim_current_time $scplayer {animationName} "PLY_CASH"
if 
  24@ >= 1.0
goto_if_false @STRIP_5849
set_player_control $player1 {state} True
$iPrintStripperHelp = 0

:STRIP_5849
goto @STRIP_5870

:STRIP_5856
set_player_control $player1 {state} True
$iPrintStripperHelp = 0

:STRIP_5870
goto @STRIP_5877

:STRIP_5877
return 
terminate_this_script 

//-------------External script 32 (PLANES)---------------

:PLANES
script_name 'PLANES'
set_var_text_label s$pl_plane[1] = 'PLA_9'
set_var_text_label s$pl_plane[2] = 'PLA_3'
set_var_text_label s$pl_plane[3] = 'PLA_4'
set_var_text_label s$pl_plane[4] = 'PLA_5'
set_var_text_label s$pl_plane[5] = 'PLA_6'
set_var_text_label s$pl_plane[6] = 'PLA_7'
set_var_text_label s$pl_plane[7] = 'PLA_8'
$9495 = 0
$pl_city_open = 0
$pl_which_city_select = 0
$pl_which_car_recording = 500
$pl_ticket_price = 0
$pl_players_money = 0
$pl_denied_flag = 0
$pl_control_flag = 0
$pl_game_timer_start = 0
$pl_game_timer_end = 0
$pl_game_timer_diff = 0
$pl_which_recording = 0
$pl_has_player_skipped = 0
$pl_undercarriage_flag = 0
$pl_undercarriage_up_time = 0
$pl_plane_heading = 0.0
$pl_print_flag_11 = 0.0
$pl_playerx = 0.0
$pl_playery = 0.0
$pl_playerz = 0.0
$pl_player_heading = 0.0
$pl_planex = 0.0
$pl_planey = 0.0
$pl_planez = 0.0
$pl_undercarriage_down_time = 0
$pl_skip_in_how_much = 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_342
goto @PLANES_3712

:PLANES_342
set_player_control $player1 {state} False
set_deatharrest_state 0
store_clock 
$9495 = get_current_day_of_week 
if 
  $9495 == 7
goto_if_false @PLANES_392
$9495 = 1
goto @PLANES_399

:PLANES_392
$9495 += 1

:PLANES_399
$pl_days_flag = get_int_stat StatId.CitiesPassed
gosub @PLANES_3818
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_455
goto @PLANES_3712

:PLANES_455
do_fade 500 {direction} Fade.Out

:PLANES_462
if 
  get_fading_status 
goto_if_false @PLANES_509
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_502
goto @PLANES_3712

:PLANES_502
goto @PLANES_462

:PLANES_509
load_texture_dictionary 'LD_PLAN'
load_sprite 1 {spriteName} "AIRLOGO"
load_sprite 2 {spriteName} "TVCORN"
load_sprite 3 {spriteName} "TVBASE"
load_sprite 4 {spriteName} "BLKDOT"
load_all_models_now 
clear_help 
clear_prints 
use_text_commands True
display_hud False
display_radar False
show_update_stats False
do_fade 500 {direction} Fade.In
gosub @PLANES_4363

:PLANES_605
if 
  get_fading_status 
goto_if_false @PLANES_659
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_645
goto @PLANES_3712

:PLANES_645
gosub @PLANES_4363
goto @PLANES_605

:PLANES_659
gosub @PLANES_4363

:PLANES_666
wait 0
gosub @PLANES_4363
if 
  not is_player_playing $player1
goto_if_false @PLANES_700
goto @PLANES_3712

:PLANES_700
restore_clock 
if 
  $pl_days_flag > 1
goto_if_false @PLANES_805
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @PLANES_767
$pl_city_open = 0

:PLANES_767
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @PLANES_798
$pl_city_open = 1

:PLANES_798
goto @PLANES_812

:PLANES_805
$pl_city_open = 0

:PLANES_812
if 
  $pl_days_flag > 0
goto_if_false @PLANES_1281
if 
  $pl_denied_flag == 0
goto_if_false @PLANES_879
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_879
$pl_players_money = 0
$pl_denied_flag = 1

:PLANES_879
if 
  $pl_denied_flag == 1
goto_if_false @PLANES_921
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_921
$pl_denied_flag = 2

:PLANES_921
if 
  $pl_denied_flag == 2
goto_if_false @PLANES_1134
$pl_ticket_price = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $pl_ticket_price >= $pl_which_car_recording
goto_if_false @PLANES_1069
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteAddCash
gosub @PLANES_4363
do_fade 500 {direction} Fade.Out

:PLANES_994
if 
  get_fading_status 
goto_if_false @PLANES_1055
gosub @PLANES_4363
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_1041
goto @PLANES_3712

:PLANES_1041
gosub @PLANES_4363
goto @PLANES_994

:PLANES_1055
goto @PLANES_1437
goto @PLANES_1134

:PLANES_1069
if 
  $pl_players_money == 0
goto_if_false @PLANES_1134
$pl_control_flag = get_game_timer 
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteNoCash
$pl_players_money = 1
$pl_denied_flag = 0

:PLANES_1134
$pl_game_timer_start = get_game_timer 
set_var_int_to_var_int $pl_game_timer_end = $pl_game_timer_start
sub_int_var_from_int_var $pl_game_timer_end -= $pl_control_flag
if 
  5000 > $pl_game_timer_end
goto_if_false @PLANES_1281
gosub @PLANES_8014
set_text_scale 0.41 {heightScale} 1.84
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if or
  is_int_var_equal_to_constant $current_Language == 3
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_1260
display_text 40.0 {offsetTop} 337.0 {key} 'SHOPNO'
goto @PLANES_1281

:PLANES_1260
display_text 93.0 {offsetTop} 337.0 {key} 'SHOPNO'

:PLANES_1281
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLANES_1430
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteNoCash
gosub @PLANES_4363
do_fade 500 {direction} Fade.Out

:PLANES_1326
if 
  get_fading_status 
goto_if_false @PLANES_1387
gosub @PLANES_4363
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_1373
goto @PLANES_3712

:PLANES_1373
gosub @PLANES_4363
goto @PLANES_1326

:PLANES_1387
gosub @PLANES_3818
set_char_coordinates $scplayer {x} $pl_print_flag_11 {y} $pl_playerx {z} $pl_playery
set_char_heading $scplayer {heading} $pl_playerz
do_fade 500 {direction} Fade.In
goto @PLANES_3712

:PLANES_1430
goto @PLANES_666

:PLANES_1437
if 
  not is_player_playing $player1
goto_if_false @PLANES_1460
goto @PLANES_3712

:PLANES_1460
set_time_one_day_forward 
add_score $player1 {money} -500
remove_texture_dictionary 
request_model 577
request_model 371
load_all_models_now 
allow_pause_in_widescreen True
gosub @PLANES_3818
request_collision $pl_player_heading {y} $pl_planex
clear_area $pl_player_heading {y} $pl_planex {z} $pl_planey {radius} 100.0 {clearParticles} True
$iPlayerMoney = create_car 577 {x} $pl_player_heading {y} $pl_planex {z} $pl_planey
set_car_heading $iPlayerMoney {heading} $pl_planez
warp_char_into_car $scplayer {vehicle} $iPlayerMoney
load_scene $pl_player_heading {y} $pl_planex {z} $pl_planey
switch_widescreen True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_1709
if 
  $pl_city_open == 0
goto_if_false @PLANES_1650
set_time_of_day 10 {minutes} 30
$pl_plane_heading = 9500.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 150000
$pl_game_timer_diff = 42

:PLANES_1650
if 
  $pl_city_open == 1
goto_if_false @PLANES_1709
set_time_of_day 17 {minutes} 50
$pl_plane_heading = 5000.0
$pl_undercarriage_flag = 30000
$pl_undercarriage_up_time = 110000
$pl_game_timer_diff = 46

:PLANES_1709
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_1845
if 
  $pl_city_open == 0
goto_if_false @PLANES_1786
set_time_of_day 11 {minutes} 20
$pl_plane_heading = 6000.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 120000
$pl_game_timer_diff = 49

:PLANES_1786
if 
  $pl_city_open == 1
goto_if_false @PLANES_1845
set_time_of_day 14 {minutes} 40
$pl_plane_heading = 8000.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 160000
$pl_game_timer_diff = 44

:PLANES_1845
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_1981
if 
  $pl_city_open == 0
goto_if_false @PLANES_1922
set_time_of_day 19 {minutes} 10
$pl_plane_heading = 6600.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 120000
$pl_game_timer_diff = 48

:PLANES_1922
if 
  $pl_city_open == 1
goto_if_false @PLANES_1981
set_time_of_day 14 {minutes} 30
$pl_plane_heading = 3800.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 70000
$pl_game_timer_diff = 43

:PLANES_1981
request_car_recording $pl_game_timer_diff

:PLANES_1986
if 
  not has_car_recording_been_loaded $pl_game_timer_diff
goto_if_false @PLANES_2036
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2029
goto @PLANES_3712

:PLANES_2029
goto @PLANES_1986

:PLANES_2036
$pl_control_flag = get_game_timer 
$pl_denied_flag = 0
do_fade 500 {direction} Fade.In

:PLANES_2055
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2082
goto @PLANES_3712

:PLANES_2082
if 
  is_player_playing $player1
goto_if_false @PLANES_2103
clear_wanted_level $player1

:PLANES_2103
$pl_game_timer_start = get_game_timer 
set_var_int_to_var_int $pl_game_timer_end = $pl_game_timer_start
sub_int_var_from_int_var $pl_game_timer_end -= $pl_control_flag
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_3705
if 
  $pl_denied_flag == 0
goto_if_false @PLANES_2196
if 
  $pl_game_timer_end > 2000
goto_if_false @PLANES_2196
start_playback_recorded_car $iPlayerMoney {path} $pl_game_timer_diff
set_cinema_camera True
$pl_denied_flag = 1

:PLANES_2196
if 
  $pl_denied_flag > 0
goto_if_false @PLANES_2343
if 
  $pl_which_recording == 0
goto_if_false @PLANES_2343
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_z > 150.0
goto_if_false @PLANES_2343
clear_this_print 'PLA_11'
if 
  $pl_undercarriage_down_time == 0
goto_if_false @PLANES_2319
print_now 'PLA_12' {time} 20000 {flag} 1
$pl_undercarriage_down_time = 1

:PLANES_2319
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLANES_2343
$pl_denied_flag = 2

:PLANES_2343
if 
  $pl_denied_flag > 0
goto_if_false @PLANES_2467
if 
  $pl_skip_in_how_much == 0
goto_if_false @PLANES_2421
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_z > 150.0
goto_if_false @PLANES_2421
$pl_skip_in_how_much = 1

:PLANES_2421
if 
  $pl_skip_in_how_much == 1
goto_if_false @PLANES_2467
if 
  150.0 > $player_z
goto_if_false @PLANES_2467
$pl_skip_in_how_much = 2

:PLANES_2467
if 
  $pl_denied_flag == 1
goto_if_false @PLANES_3342
if 
  $pl_which_recording == 0
goto_if_false @PLANES_3112
if 
  150.0 >= $player_z
goto_if_false @PLANES_2569
clear_this_print 'PLA_12'
if 
  $pl_undercarriage_down_time == 0
goto_if_false @PLANES_2569
print_now 'PLA_11' {time} 5000 {flag} 1

:PLANES_2569
if 
  2 > $pl_skip_in_how_much
goto_if_false @PLANES_3112
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_3112
do_fade 500 {direction} Fade.Out

:PLANES_2611
if 
  get_fading_status 
goto_if_false @PLANES_2658
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2651
goto @PLANES_3712

:PLANES_2651
goto @PLANES_2611

:PLANES_2658
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_3056
if 
  is_playback_going_on_for_car $iPlayerMoney
goto_if_false @PLANES_3056
if 
  $pl_has_player_skipped == 1
goto_if_false @PLANES_2715
set_plane_undercarriage_up $iPlayerMoney {state} False

:PLANES_2715
skip_in_playback_recorded_car $iPlayerMoney {amount} -10000000.0
skip_in_playback_recorded_car $iPlayerMoney {amount} $pl_plane_heading
set_cinema_camera False
if or
  $pl_game_timer_diff == 48
  $pl_game_timer_diff == 49
goto_if_false @PLANES_2841
set_fixed_camera_position 1774.9 {y} -2529.3 {z} 30.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_2819
point_camera_at_car $iPlayerMoney {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_2819
load_scene_in_direction 1774.9 {y} -2529.3 {z} 13.9 {heading} 48.0

:PLANES_2841
if or
  $pl_game_timer_diff == 42
  $pl_game_timer_diff == 43
goto_if_false @PLANES_2945
set_fixed_camera_position -1268.5 {y} 106.9 {z} 37.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_2923
point_camera_at_car $iPlayerMoney {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_2923
load_scene_in_direction -1268.5 {y} 106.9 {z} 13.0 {heading} 350.0

:PLANES_2945
if or
  $pl_game_timer_diff == 46
  $pl_game_timer_diff == 44
goto_if_false @PLANES_3049
set_fixed_camera_position 1396.1 {y} 1382.3 {z} 25.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_3027
point_camera_at_car $iPlayerMoney {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_3027
load_scene_in_direction 1396.1 {y} 1382.3 {z} 10.0 {heading} 264.0

:PLANES_3049
$pl_which_recording = 1

:PLANES_3056
clear_prints 
do_fade 2500 {direction} Fade.In

:PLANES_3065
if 
  get_fading_status 
goto_if_false @PLANES_3112
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3105
goto @PLANES_3712

:PLANES_3105
goto @PLANES_3065

:PLANES_3112
if 
  not is_car_dead $iPlayerMoney
goto_if_false @PLANES_3342
if 
  not is_playback_going_on_for_car $iPlayerMoney
goto_if_false @PLANES_3342
do_fade 2000 {direction} Fade.Out

:PLANES_3151
if 
  get_fading_status 
goto_if_false @PLANES_3198
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3191
goto @PLANES_3712

:PLANES_3191
goto @PLANES_3151

:PLANES_3198
gosub @PLANES_3818
set_cinema_camera False
request_collision $pl_print_flag_11 {y} $pl_playerx
clear_area $pl_print_flag_11 {y} $pl_playerx {z} $pl_playery {radius} 100.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $pl_print_flag_11 {y} $pl_playerx {z} $pl_playery
set_char_heading $scplayer {heading} $pl_playerz
load_scene $pl_print_flag_11 {y} $pl_playerx {z} $pl_playery
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:PLANES_3288
if 
  get_fading_status 
goto_if_false @PLANES_3335
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3328
goto @PLANES_3712

:PLANES_3328
goto @PLANES_3288

:PLANES_3335
goto @PLANES_3712

:PLANES_3342
if 
  $pl_denied_flag == 2
goto_if_false @PLANES_3585
do_fade 500 {direction} Fade.Out

:PLANES_3367
if 
  get_fading_status 
goto_if_false @PLANES_3414
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3407
goto @PLANES_3712

:PLANES_3407
goto @PLANES_3367

:PLANES_3414
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
set_cinema_camera False
task_leave_any_car $scplayer
clear_this_print 'PLA_11'
clear_this_print 'PLA_12'

:PLANES_3461
if 
  is_char_in_any_car $scplayer
goto_if_false @PLANES_3511
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3504
goto @PLANES_3712

:PLANES_3504
goto @PLANES_3461

:PLANES_3511
delete_car $iPlayerMoney
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:PLANES_3531
if 
  get_fading_status 
goto_if_false @PLANES_3578
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3571
goto @PLANES_3712

:PLANES_3571
goto @PLANES_3531

:PLANES_3578
goto @PLANES_3712

:PLANES_3585
if 
  $pl_which_recording == 0
goto_if_false @PLANES_3705
if 
  $pl_has_player_skipped == 0
goto_if_false @PLANES_3654
if 
  is_int_var_greater_than_int_var $pl_game_timer_end > $pl_undercarriage_flag
goto_if_false @PLANES_3654
set_plane_undercarriage_up $iPlayerMoney {state} True
$pl_has_player_skipped = 1

:PLANES_3654
if 
  $pl_has_player_skipped == 1
goto_if_false @PLANES_3705
if 
  is_int_var_greater_than_int_var $pl_game_timer_end > $pl_undercarriage_up_time
goto_if_false @PLANES_3705
set_plane_undercarriage_up $iPlayerMoney {state} False
$pl_has_player_skipped = 2

:PLANES_3705
goto @PLANES_2055

:PLANES_3712
clear_this_print 'PLA_11'
clear_this_print 'PLA_12'
if 
  is_var_text_label_empty s$shop_name
goto_if_false @PLANES_3752
restore_camera_jumpcut 

:PLANES_3752
if 
  is_player_playing $player1
goto_if_false @PLANES_3775
set_player_control $player1 {state} True

:PLANES_3775
set_cinema_camera False
allow_pause_in_widescreen False
use_text_commands False
mark_car_as_no_longer_needed $iPlayerMoney
mark_model_as_no_longer_needed 577
mark_model_as_no_longer_needed 371
remove_texture_dictionary 
display_hud True
display_radar True
show_update_stats True
terminate_this_script 

:PLANES_3818
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_3999
$pl_print_flag_11 = 1682.7
$pl_playerx = -2244.8999
$pl_playery = 12.5
$pl_playerz = 178.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_3934
$pl_player_heading = 2052.0
$pl_planex = -2497.5
$pl_planey = 12.4
$pl_planez = 89.9

:PLANES_3934
if 
  $pl_city_open == 1
goto_if_false @PLANES_3992
$pl_player_heading = 1580.0
$pl_planex = -2493.5
$pl_planey = 12.4
$pl_planez = 270.0

:PLANES_3992
$pl_which_city_select = 18

:PLANES_3999
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_4180
$pl_print_flag_11 = -1431.6
$pl_playerx = -283.9
$pl_playery = 13.1
$pl_playerz = 149.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_4115
$pl_player_heading = -1626.0
$pl_planex = -137.3
$pl_planey = 13.0
$pl_planez = 315.6

:PLANES_4115
if 
  $pl_city_open == 1
goto_if_false @PLANES_4173
$pl_player_heading = -1590.9
$pl_planex = -103.5
$pl_planey = 13.0
$pl_planez = 315.3

:PLANES_4173
$pl_which_city_select = 19

:PLANES_4180
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_4361
$pl_print_flag_11 = 1669.8
$pl_playerx = 1422.1
$pl_playery = 9.7
$pl_playerz = 263.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_4296
$pl_player_heading = 1479.7
$pl_planex = 1716.1
$pl_planey = 9.7
$pl_planez = 180.0

:PLANES_4296
if 
  $pl_city_open == 1
goto_if_false @PLANES_4354
$pl_player_heading = 1475.7
$pl_planex = 1636.0
$pl_planey = 9.7
$pl_planez = 180.0

:PLANES_4354
$pl_which_city_select = 20

:PLANES_4361
return 

:PLANES_4363
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} 321.0 {offsetTop} 246.0 {width} 356.0 {height} 246.0 {r} 160 {g} 160 {b} 160 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 326.0 {offsetTop} 84.0 {width} 602.0 {height} 58.0 {r} 73 {g} 73 {b} 73 {a} 255
gosub @PLANES_7939
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_4574
display_text 269.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4574
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_4625
set_text_scale 0.9 {heightScale} 3.4
display_text 327.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4625
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_4664
display_text 269.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4664
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_4715
set_text_scale 0.91 {heightScale} 3.43
display_text 322.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4715
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4766
set_text_scale 0.9 {heightScale} 3.4
display_text 322.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4766
if 
  $pl_days_flag == 0
goto_if_false @PLANES_4999
gosub @PLANES_7939
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4863
set_text_scale 1.21 {heightScale} 6.23
display_text 320.0 {offsetTop} 204.0 {key} 'PLA_25'
goto @PLANES_4896

:PLANES_4863
set_text_scale 1.41 {heightScale} 6.23
display_text 316.0 {offsetTop} 204.0 {key} 'PLA_25'

:PLANES_4896
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.94
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 277.0 {offsetTop} 370.0 {key} 'PLA_23'
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 298.0 {offsetTop} 368.0 {key} 'PLA_21'
goto @PLANES_7697

:PLANES_4999
gosub @PLANES_8014
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 144.0 {key} 'PLA_2'
gosub @PLANES_8014
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 207.0 {key} 'PLA_13'
gosub @PLANES_8014
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 267.0 {key} 'PLA_17'
if 
  $pl_days_flag > 1
goto_if_false @PLANES_6482
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.54
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5215
display_text 92.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5215
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5254
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5254
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5293
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5293
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5332
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5332
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5371
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5371
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5431
display_text 124.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5431
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5470
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5470
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5509
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5509
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5548
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5548
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5587
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5587
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.94
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5659
display_text 260.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_5659
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5698
display_text 295.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_5698
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5737
display_text 295.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_5737
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5776
display_text 258.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_5776
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5815
display_text 295.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_5815
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5875
display_text 281.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_5875
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5914
display_text 312.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_5914
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5953
display_text 312.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_5953
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5992
display_text 277.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_5992
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6031
display_text 312.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_6031
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.94
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6103
display_text 362.0 {offsetTop} 370.0 {key} 'PLA_23'

:PLANES_6103
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6142
display_text 458.0 {offsetTop} 370.0 {key} 'PLA_23'

:PLANES_6142
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6181
display_text 458.0 {offsetTop} 370.0 {key} 'PLA_23'

:PLANES_6181
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6220
display_text 458.0 {offsetTop} 370.0 {key} 'PLA_23'

:PLANES_6220
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6259
display_text 458.0 {offsetTop} 370.0 {key} 'PLA_23'

:PLANES_6259
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6319
display_text 383.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6319
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6358
display_text 477.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6358
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6397
display_text 477.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6397
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6436
display_text 477.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6436
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6475
display_text 477.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6475
goto @PLANES_6766

:PLANES_6482
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.94
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6561
display_text 220.0 {offsetTop} 370.0 {key} 'PLA_24'
goto @PLANES_6582

:PLANES_6561
display_text 170.0 {offsetTop} 370.0 {key} 'PLA_24'

:PLANES_6582
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6649
display_text 241.0 {offsetTop} 368.0 {key} 'PLA_20'
goto @PLANES_6670

:PLANES_6649
display_text 191.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_6670
gosub @PLANES_8014
set_text_scale 0.62 {heightScale} 1.94
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 328.0 {offsetTop} 370.0 {key} 'PLA_23'
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 349.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6766
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 92.0 {offsetTop} 167.0 {key} $pl_plane($9495,8s)
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 92.0 {offsetTop} 290.0 {key} 'PLA_18' {num} $pl_which_car_recording
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_7139
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_6915
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_6926

:PLANES_6915
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_6926
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_15'
if 
  $pl_days_flag > 1
goto_if_false @PLANES_7043
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7008
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_7022

:PLANES_7008
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_7022
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_14'

:PLANES_7043
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_city_open == 0
goto_if_false @PLANES_7114
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 10 {num2} 30
goto @PLANES_7139

:PLANES_7114
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 17 {num2} 50

:PLANES_7139
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_7427
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7203
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_7214

:PLANES_7203
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_7214
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_16'
if 
  $pl_days_flag > 1
goto_if_false @PLANES_7331
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7296
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_7310

:PLANES_7296
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_7310
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_14'

:PLANES_7331
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_city_open == 0
goto_if_false @PLANES_7402
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 11 {num2} 20
goto @PLANES_7427

:PLANES_7402
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 14 {num2} 40

:PLANES_7427
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_7697
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7491
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_7502

:PLANES_7491
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_7502
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_16'
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7566
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_7580

:PLANES_7566
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_7580
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_15'
gosub @PLANES_8014
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_city_open == 0
goto_if_false @PLANES_7672
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 19 {num2} 10
goto @PLANES_7697

:PLANES_7672
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 14 {num2} 30

:PLANES_7697
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:PLANES_7939
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.4
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:PLANES_8014
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.62 {heightScale} 2.34
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
terminate_this_script 

//-------------External script 33 (TRAINS)---------------

:TRAINS
script_name 'TRAINS'
$train_car = 0.0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_44
goto @TRAINS_768

:TRAINS_44
set_deatharrest_state 0

:TRAINS_48
wait 0
if 
  is_player_playing $player1
goto_if_false @TRAINS_754
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_740
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_726
$train_control_flag = store_car_char_is_in_no_save $scplayer
if 
  $pl_stop_player_skipping_flag == 0
goto_if_false @TRAINS_181
$train_car = get_car_speed $train_control_flag
if 
  $train_car > 0.0
goto_if_false @TRAINS_181
print_now 'TRAINS' {time} 20000 {flag} 1
$pl_stop_player_skipping_flag = 1

:TRAINS_181
if 
  $pl_stop_player_skipping_flag == 1
goto_if_false @TRAINS_619
if 
  is_next_station_allowed $train_control_flag
goto_if_false @TRAINS_429
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TRAINS_422
do_fade 1000 {direction} Fade.Out

:TRAINS_239
if 
  get_fading_status 
goto_if_false @TRAINS_286
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_279
goto @TRAINS_768

:TRAINS_279
goto @TRAINS_239

:TRAINS_286
if 
  is_player_playing $player1
goto_if_false @TRAINS_361
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_361
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_361
$train_control_flag = store_car_char_is_in_no_save $scplayer
skip_to_next_allowed_station $train_control_flag
clear_this_print 'TRAINS'

:TRAINS_361
do_fade 1000 {direction} Fade.In

:TRAINS_368
if 
  get_fading_status 
goto_if_false @TRAINS_415
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_408
goto @TRAINS_768

:TRAINS_408
goto @TRAINS_368

:TRAINS_415
$pl_stop_player_skipping_flag = 2

:TRAINS_422
goto @TRAINS_619

:TRAINS_429
do_fade 1000 {direction} Fade.Out

:TRAINS_436
if 
  get_fading_status 
goto_if_false @TRAINS_483
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_476
goto @TRAINS_768

:TRAINS_476
goto @TRAINS_436

:TRAINS_483
if 
  is_player_playing $player1
goto_if_false @TRAINS_558
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_558
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_558
$train_control_flag = store_car_char_is_in_no_save $scplayer
skip_to_next_allowed_station $train_control_flag
clear_this_print 'TRAINS'

:TRAINS_558
do_fade 1000 {direction} Fade.In

:TRAINS_565
if 
  get_fading_status 
goto_if_false @TRAINS_612
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_605
goto @TRAINS_768

:TRAINS_605
goto @TRAINS_565

:TRAINS_612
$pl_stop_player_skipping_flag = 2

:TRAINS_619
if 
  $pl_stop_player_skipping_flag == 2
goto_if_false @TRAINS_719
if 
  is_player_playing $player1
goto_if_false @TRAINS_719
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_719
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_719
$train_control_flag = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $train_control_flag
goto_if_false @TRAINS_719
$pl_stop_player_skipping_flag = 0

:TRAINS_719
goto @TRAINS_733

:TRAINS_726
goto @TRAINS_768

:TRAINS_733
goto @TRAINS_747

:TRAINS_740
goto @TRAINS_768

:TRAINS_747
goto @TRAINS_761

:TRAINS_754
goto @TRAINS_768

:TRAINS_761
goto @TRAINS_48

:TRAINS_768
$pl_stop_player_skipping_flag = 0
clear_this_print 'TRAINS'
terminate_this_script 
terminate_this_script 

//-------------External script 34 (ZERO_AMBIENCE)---------------

:RCSHOP
script_name 'RCSHOP'
$train_speed = 0
2@ = -2237.291
3@ = 128.5856
4@ = 1034.422
5@ = 0.0
6@ = 360.0
set_lvar_int_to_constant 10@ = 217
request_model 10@

:RCSHOP_81
if 
  not has_model_loaded 10@
goto_if_false @RCSHOP_108
wait 0
goto @RCSHOP_81

:RCSHOP_108
7@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 7@
8@ = add_attractor 2@ {y} 3@ {z} 4@ {angle} 5@ {_p5} 6@ {sequence} 7@
9@ = create_char_at_attractor PedType.CivMale {modelId} 10@ {taskId} 8@ {attractor} 1466

:RCSHOP_169
if 
  is_player_playing $player1
goto_if_false @RCSHOP_509
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @RCSHOP_225
gosub @RCSHOP_520

:RCSHOP_225
if and
  $flag_zero_mission_counter == 3
  $onmission == 0
goto_if_false @RCSHOP_305
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -2219.2871 {y} 133.8895 {z} 1034.641 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @RCSHOP_305
$load_and_launch_mission_if_poss = 7

:RCSHOP_305
if or
  is_char_shooting $scplayer
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @RCSHOP_336
$train_speed = 1

:RCSHOP_336
if 
  not is_char_dead 9@
goto_if_false @RCSHOP_418
if and
  is_player_targetting_char $player1 {handle} 9@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @RCSHOP_392
$train_speed = 1
goto @RCSHOP_418

:RCSHOP_392
if 
  has_char_been_damaged_by_char 9@ {handle} $scplayer
goto_if_false @RCSHOP_418
$train_speed = 1

:RCSHOP_418
if 
  $train_speed == 1
goto_if_false @RCSHOP_509
2@, 3@, 4@ = get_char_coordinates $scplayer
0@ = get_random_char_in_sphere_no_brain 2@ {y} 3@ {z} 4@ {radius} 20.0
if 
  0@ > -1
goto_if_false @RCSHOP_509
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:RCSHOP_509
wait 0
goto @RCSHOP_169

:RCSHOP_520
$train_speed = 0
mark_char_as_no_longer_needed 9@
mark_model_as_no_longer_needed 10@
delete_char 9@
clear_attractor 8@
clear_sequence_task 7@
terminate_this_script 
terminate_this_script 

//-------------External script 35 (DANCE)---------------

:DANCE
script_name 'DANCE'
set_global_var_bit_const $d6_trip_skips_available {bitIndex} 31
set_minigame_in_progress True
use_text_commands True
force_big_message_and_counter True
if 
  13@ > 0
goto_if_false @DANCE_72
5@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DANCE_72
18@ = 5
23@ = 5
16@ = -1
24@ = -1
17@ = -1
13@ = 0
$iDanceReport = 0
$iDance_SpeechRequest = 0
$iSetRCPanic = -1
$iDance_SpeechState = 1
22@ = 5
TIMERA = 10000

:DANCE_157
wait 0
if 
  is_player_playing $player1
goto_if_false @DANCE_367
if 
  6@ > 0
goto_if_false @DANCE_353
if 
  $iSwitchOffDanceMiniGame == 1
goto_if_false @DANCE_245
if 
  6@ <> 2
goto_if_false @DANCE_245
6@ = 2
7@ = 0

:DANCE_245
if 
  5@ == -1
goto_if_false @DANCE_302
if 
  22@ <> 5
goto_if_false @DANCE_288
gosub @DANCE_9298

:DANCE_288
gosub @DANCE_381
goto @DANCE_346

:DANCE_302
if 
  not is_char_dead 5@
goto_if_false @DANCE_339
gosub @DANCE_9298
gosub @DANCE_381
goto @DANCE_346

:DANCE_339
gosub @DANCE_16928

:DANCE_346
goto @DANCE_360

:DANCE_353
gosub @DANCE_381

:DANCE_360
goto @DANCE_374

:DANCE_367
gosub @DANCE_16928

:DANCE_374
goto @DANCE_157

:DANCE_381
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_500 {caseNum1} 0 {caseLabel1} @DANCE_444 {caseNum2} 1 {caseLabel2} @DANCE_458 {caseNum3} 2 {caseLabel3} @DANCE_472 {caseNum4} 3 {caseLabel4} @DANCE_486 {caseNum5} -1 {caseLabel5} @DANCE_500 {caseNum6} -1 {caseLabel6} @DANCE_500 {caseNum7} -1 {caseLabel7} @DANCE_500

:DANCE_444
gosub @DANCE_502
goto @DANCE_500

:DANCE_458
gosub @DANCE_1090
goto @DANCE_500

:DANCE_472
gosub @DANCE_2086
goto @DANCE_500

:DANCE_486
gosub @DANCE_2412
goto @DANCE_500

:DANCE_500
return 

:DANCE_502
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_1088 {caseNum1} 0 {caseLabel1} @DANCE_565 {caseNum2} 1 {caseLabel2} @DANCE_646 {caseNum3} 2 {caseLabel3} @DANCE_803 {caseNum4} 3 {caseLabel4} @DANCE_948 {caseNum5} -1 {caseLabel5} @DANCE_1088 {caseNum6} -1 {caseLabel6} @DANCE_1088 {caseNum7} -1 {caseLabel7} @DANCE_1088

:DANCE_565
set_player_control $player1 {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
display_hud False
display_radar False
if 
  5@ <> -1
goto_if_false @DANCE_625
store_clock 

:DANCE_625
do_fade 500 {direction} Fade.Out
7@ += 1
goto @DANCE_1088

:DANCE_646
if 
  not get_fading_status 
goto_if_false @DANCE_796
gosub @DANCE_2764
request_animation v$5306
if 
  not has_animation_loaded v$5306
goto_if_false @DANCE_694
goto @DANCE_1088

:DANCE_694
if 
  5@ <> -1
goto_if_false @DANCE_718
set_time_of_day 0 {minutes} 0

:DANCE_718
clear_char_tasks_immediately $scplayer
clear_area 0@ {y} 1@ {z} 2@ {radius} 1.5 {clearParticles} True
set_char_coordinates $scplayer {x} 0@ {y} 1@ {z} 2@
set_char_heading $scplayer {heading} 3@
gosub @DANCE_6702
gosub @DANCE_5647
17@ = 0
preload_beat_track 4@
7@ += 1

:DANCE_796
goto @DANCE_1088

:DANCE_803
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 2
goto_if_false @DANCE_941
play_beat_track 
task_play_anim_non_interruptable $scplayer {animationName} "DANCE_LOOP" {animationFile} v$5306 {blendSpeed} 99.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 1215752191
if 
  not is_char_dead 5@
goto_if_false @DANCE_920
task_play_anim_non_interruptable 5@ {animationName} "DANCE_LOOP" {animationFile} v$5306 {blendSpeed} 99.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 1215752191

:DANCE_920
do_fade 500 {direction} Fade.In
TIMERB = 0
7@ += 1

:DANCE_941
goto @DANCE_1088

:DANCE_948
if 
  not get_fading_status 
goto_if_false @DANCE_1081
if 
  5@ == -1
goto_if_false @DANCE_1043
if 
  TIMERB >= 10000
goto_if_false @DANCE_1036
start_new_script @BDISPLY 
display_onscreen_counter_with_string $iDanceReport {display} CounterDisplay.Number {text} 'DNC_001'
6@ = 1
7@ = 1

:DANCE_1036
goto @DANCE_1081

:DANCE_1043
start_new_script @BDISPLY 
display_onscreen_counter_with_string $iDanceReport {display} CounterDisplay.Number {text} 'DNC_001'
6@ = 1
7@ = 1

:DANCE_1081
goto @DANCE_1088

:DANCE_1088
return 

:DANCE_1090
switch_start 7@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCE_2084 {caseNum1} 1 {caseLabel1} @DANCE_1153 {caseNum2} -1 {caseLabel2} @DANCE_2084 {caseNum3} -1 {caseLabel3} @DANCE_2084 {caseNum4} -1 {caseLabel4} @DANCE_2084 {caseNum5} -1 {caseLabel5} @DANCE_2084 {caseNum6} -1 {caseLabel6} @DANCE_2084 {caseNum7} -1 {caseLabel7} @DANCE_2084

:DANCE_1153
gosub @DANCE_5511
gosub @DANCE_7887
gosub @DANCE_5542
gosub @DANCE_5323
gosub @DANCE_2932
if 
  6@ == 3
goto_if_false @DANCE_1213
goto @DANCE_2084

:DANCE_1213
gosub @DANCE_3481
gosub @DANCE_5186
gosub @DANCE_5647
gosub @DANCE_8771
gosub @DANCE_9436
if 
  22@ == 3
goto_if_false @DANCE_1387
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1341
if 
  29@ == 2
goto_if_false @DANCE_1334
30@ = 10
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1341

:DANCE_1334
$iDanceReport += 10

:DANCE_1341
26@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1380
gosub @DANCE_3932

:DANCE_1380
goto @DANCE_2084

:DANCE_1387
if 
  22@ == 1
goto_if_false @DANCE_1526
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1480
if 
  29@ == 2
goto_if_false @DANCE_1473
30@ = 50
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1480

:DANCE_1473
$iDanceReport += 50

:DANCE_1480
28@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1519
gosub @DANCE_3932

:DANCE_1519
goto @DANCE_2084

:DANCE_1526
if 
  22@ == 2
goto_if_false @DANCE_1665
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1619
if 
  29@ == 2
goto_if_false @DANCE_1612
30@ = 20
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1619

:DANCE_1612
$iDanceReport += 20

:DANCE_1619
26@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1658
gosub @DANCE_3932

:DANCE_1658
goto @DANCE_2084

:DANCE_1665
if 
  22@ == 0
goto_if_false @DANCE_1768
if 
  $iDanceReport > 0
goto_if_false @DANCE_1715
$iDanceReport -= 0
goto @DANCE_1722

:DANCE_1715
$iDanceReport = 0

:DANCE_1722
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1761
gosub @DANCE_4559

:DANCE_1761
goto @DANCE_2084

:DANCE_1768
if 
  22@ == 4
goto_if_false @DANCE_1871
if 
  $iDanceReport > 0
goto_if_false @DANCE_1818
$iDanceReport -= 0
goto @DANCE_1825

:DANCE_1818
$iDanceReport = 0

:DANCE_1825
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1864
gosub @DANCE_4559

:DANCE_1864
goto @DANCE_2084

:DANCE_1871
if 
  22@ == 10
goto_if_false @DANCE_1974
if 
  $iDanceReport > 0
goto_if_false @DANCE_1921
$iDanceReport -= 0
goto @DANCE_1928

:DANCE_1921
$iDanceReport = 0

:DANCE_1928
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1967
gosub @DANCE_4559

:DANCE_1967
goto @DANCE_2084

:DANCE_1974
if 
  22@ == 11
goto_if_false @DANCE_2077
if 
  $iDanceReport > 0
goto_if_false @DANCE_2024
$iDanceReport -= 0
goto @DANCE_2031

:DANCE_2024
$iDanceReport = 0

:DANCE_2031
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_2070
gosub @DANCE_4559

:DANCE_2070
goto @DANCE_2084

:DANCE_2077
goto @DANCE_2084

:DANCE_2084
return 

:DANCE_2086
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_2410 {caseNum1} 0 {caseLabel1} @DANCE_2149 {caseNum2} 1 {caseLabel2} @DANCE_2170 {caseNum3} 2 {caseLabel3} @DANCE_2222 {caseNum4} 3 {caseLabel4} @DANCE_2396 {caseNum5} -1 {caseLabel5} @DANCE_2410 {caseNum6} -1 {caseLabel6} @DANCE_2410 {caseNum7} -1 {caseLabel7} @DANCE_2410

:DANCE_2149
do_fade 500 {direction} Fade.Out
7@ += 1
goto @DANCE_2410

:DANCE_2170
if 
  not get_fading_status 
goto_if_false @DANCE_2215
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_2208
stop_beat_track 

:DANCE_2208
7@ += 1

:DANCE_2215
goto @DANCE_2410

:DANCE_2222
clear_onscreen_counter $iDanceReport
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_all_cars_can_be_damaged True
display_hud True
display_radar True
clear_help 
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "DANCE_LOOP" {animationFile} v$5306 {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
if 
  not is_char_dead 5@
goto_if_false @DANCE_2355
clear_char_tasks_immediately 5@
task_play_anim_non_interruptable 5@ {animationName} "DANCE_LOOP" {animationFile} v$5306 {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:DANCE_2355
if 
  5@ <> -1
goto_if_false @DANCE_2375
restore_clock 

:DANCE_2375
do_fade 1500 {direction} Fade.In
7@ += 1
goto @DANCE_2410

:DANCE_2396
gosub @DANCE_16928
goto @DANCE_2410

:DANCE_2410
return 

:DANCE_2412
switch_start 7@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DANCE_2762 {caseNum1} 0 {caseLabel1} @DANCE_2475 {caseNum2} 1 {caseLabel2} @DANCE_2567 {caseNum3} -1 {caseLabel3} @DANCE_2762 {caseNum4} -1 {caseLabel4} @DANCE_2762 {caseNum5} -1 {caseLabel5} @DANCE_2762 {caseNum6} -1 {caseLabel6} @DANCE_2762 {caseNum7} -1 {caseLabel7} @DANCE_2762

:DANCE_2475
pause_current_beat_track True
if 
  is_char_playing_anim $scplayer {animationName} v$iTerminateDanceMiniGame
goto_if_false @DANCE_2508
set_char_anim_playing_flag $scplayer {animationName} v$iTerminateDanceMiniGame {flag} False

:DANCE_2508
if 
  not is_char_dead 5@
goto_if_false @DANCE_2553
if 
  is_char_playing_anim 5@ {animationName} v$5302
goto_if_false @DANCE_2553
set_char_anim_playing_flag 5@ {animationName} v$5302 {flag} False

:DANCE_2553
7@ += 1
goto @DANCE_2762

:DANCE_2567
gosub @DANCE_2932
if 
  18@ == 1
goto_if_false @DANCE_2620
$iDanceReport = 0
6@ = 2
7@ = 0
goto @DANCE_2762

:DANCE_2620
if 
  18@ == 3
goto_if_false @DANCE_2755
if 
  6@ > 0
goto_if_false @DANCE_2755
pause_current_beat_track False
if 
  is_char_playing_anim $scplayer {animationName} v$iTerminateDanceMiniGame
goto_if_false @DANCE_2689
set_char_anim_playing_flag $scplayer {animationName} v$iTerminateDanceMiniGame {flag} True

:DANCE_2689
if 
  not is_char_dead 5@
goto_if_false @DANCE_2734
if 
  is_char_playing_anim 5@ {animationName} v$5302
goto_if_false @DANCE_2734
set_char_anim_playing_flag 5@ {animationName} v$5302 {flag} True

:DANCE_2734
6@ = 1
7@ = 1
goto @DANCE_2762

:DANCE_2755
goto @DANCE_2762

:DANCE_2762
return 

:DANCE_2764
switch_start 4@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DANCE_2906 {caseNum1} 1 {caseLabel1} @DANCE_2827 {caseNum2} 2 {caseLabel2} @DANCE_2846 {caseNum3} 3 {caseLabel3} @DANCE_2865 {caseNum4} 4 {caseLabel4} @DANCE_2889 {caseNum5} -1 {caseLabel5} @DANCE_2930 {caseNum6} -1 {caseLabel6} @DANCE_2930 {caseNum7} -1 {caseLabel7} @DANCE_2930

:DANCE_2827
set_var_text_label16 v$5306 = "GFUNK"
goto @DANCE_2930

:DANCE_2846
set_var_text_label16 v$5306 = "GFUNK"
goto @DANCE_2930

:DANCE_2865
set_var_text_label16 v$5306 = "RUNNINGMAN"
goto @DANCE_2930

:DANCE_2889
set_var_text_label16 v$5306 = "WOP"
goto @DANCE_2930

:DANCE_2906
set_var_text_label16 v$5306 = "WOP"
4@ = 4
goto @DANCE_2930

:DANCE_2930
return 

:DANCE_2932
switch_start 23@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_3479 {caseNum1} 1 {caseLabel1} @DANCE_3434 {caseNum2} 2 {caseLabel2} @DANCE_3389 {caseNum3} 3 {caseLabel3} @DANCE_3206 {caseNum4} 4 {caseLabel4} @DANCE_3161 {caseNum5} 5 {caseLabel5} @DANCE_2995 {caseNum6} -1 {caseLabel6} @DANCE_3479 {caseNum7} -1 {caseLabel7} @DANCE_3479

:DANCE_2995
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DANCE_3033
18@ = 4
23@ = 4
goto @DANCE_3479

:DANCE_3033
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DANCE_3078
18@ = 3
23@ = 3
TIMERB = 0
goto @DANCE_3479

:DANCE_3078
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DANCE_3116
18@ = 2
23@ = 2
goto @DANCE_3479

:DANCE_3116
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DANCE_3154
18@ = 1
23@ = 1
goto @DANCE_3479

:DANCE_3154
goto @DANCE_3479

:DANCE_3161
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DANCE_3199
23@ = 5
goto @DANCE_3479

:DANCE_3199
goto @DANCE_3479

:DANCE_3206
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DANCE_3251
23@ = 5
goto @DANCE_3479
goto @DANCE_3382

:DANCE_3251
if 
  5@ == -1
goto_if_false @DANCE_3338
if 
  22@ <> 5
goto_if_false @DANCE_3331
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3331
clear_help 
6@ = 3
7@ = 0
return 

:DANCE_3331
goto @DANCE_3382

:DANCE_3338
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3382
clear_help 
6@ = 3
7@ = 0
return 

:DANCE_3382
goto @DANCE_3479

:DANCE_3389
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DANCE_3427
23@ = 5
goto @DANCE_3479

:DANCE_3427
goto @DANCE_3479

:DANCE_3434
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DANCE_3472
23@ = 5
goto @DANCE_3479

:DANCE_3472
goto @DANCE_3479

:DANCE_3479
return 

:DANCE_3481
14@, 13@, 15@ = get_beat_proximity 0
if 
  14@ > 3000
goto_if_false @DANCE_3527
22@ = 5
goto @DANCE_3930

:DANCE_3527
if 
  is_int_lvar_greater_than_int_lvar 15@ > 16@
goto_if_false @DANCE_3841
if 
  18@ == 5
goto_if_false @DANCE_3606
if 
  -110 > 14@
goto_if_false @DANCE_3599
22@ = 0
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3599
goto @DANCE_3834

:DANCE_3606
$BD_RenderHit = 1
if 
  is_int_lvar_equal_to_int_lvar 18@ == 13@
goto_if_false @DANCE_3817
if and
  35 >= 14@
  14@ >= -35
goto_if_false @DANCE_3688
22@ = 1
$BD_RenderHit = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3688
if and
  60 >= 14@
  14@ >= -60
goto_if_false @DANCE_3744
22@ = 2
$BD_RenderHit = 2
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3744
if and
  110 >= 14@
  14@ >= -110
goto_if_false @DANCE_3793
22@ = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3793
22@ = 11
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3810
goto @DANCE_3834

:DANCE_3817
22@ = 10
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3834
goto @DANCE_3930

:DANCE_3841
if or
  22@ == 1
  22@ == 2
  22@ == 3
goto_if_false @DANCE_3882
22@ = 8
return 

:DANCE_3882
if or
  22@ == 0
  22@ == 4
  22@ == 10
  22@ == 11
goto_if_false @DANCE_3930
22@ = 9
return 

:DANCE_3930
return 

:DANCE_3932
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4060 {caseNum1} 2 {caseLabel1} @DANCE_4089 {caseNum2} 3 {caseLabel2} @DANCE_4118 {caseNum3} 4 {caseLabel3} @DANCE_4147 {caseNum4} 5 {caseLabel4} @DANCE_4176 {caseNum5} 6 {caseLabel5} @DANCE_4205 {caseNum6} 7 {caseLabel6} @DANCE_4234 {caseNum7} 8 {caseLabel7} @DANCE_4263
switch_continued 9 {caseLabel1} @DANCE_4292 {caseNum2} 10 {caseLabel2} @DANCE_4321 {caseNum3} 11 {caseLabel3} @DANCE_4351 {caseNum4} 12 {caseLabel4} @DANCE_4381 {caseNum5} 13 {caseLabel5} @DANCE_4411 {caseNum6} 14 {caseLabel6} @DANCE_4441 {caseNum7} 15 {caseLabel7} @DANCE_4471 {caseNum8} 16 {caseLabel8} @DANCE_4501 {caseNum9} -1 {caseLabel9} @DANCE_4531

:DANCE_4060
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G1"
17@ = 2
goto @DANCE_4531

:DANCE_4089
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G2"
17@ += 1
goto @DANCE_4531

:DANCE_4118
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G3"
17@ += 1
goto @DANCE_4531

:DANCE_4147
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G4"
17@ += 1
goto @DANCE_4531

:DANCE_4176
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G5"
17@ += 1
goto @DANCE_4531

:DANCE_4205
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G6"
17@ += 1
goto @DANCE_4531

:DANCE_4234
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G7"
17@ += 1
goto @DANCE_4531

:DANCE_4263
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G8"
17@ += 1
goto @DANCE_4531

:DANCE_4292
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G9"
17@ += 1
goto @DANCE_4531

:DANCE_4321
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G10"
17@ += 1
goto @DANCE_4531

:DANCE_4351
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G11"
17@ += 1
goto @DANCE_4531

:DANCE_4381
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G12"
17@ += 1
goto @DANCE_4531

:DANCE_4411
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G13"
17@ += 1
goto @DANCE_4531

:DANCE_4441
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G14"
17@ += 1
goto @DANCE_4531

:DANCE_4471
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G15"
17@ += 1
goto @DANCE_4531

:DANCE_4501
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G16"
17@ += 1
goto @DANCE_4531

:DANCE_4531
task_play_anim_non_interruptable $scplayer {animationName} v$iTerminateDanceMiniGame {animationFile} v$5306 {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
return 

:DANCE_4559
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4687 {caseNum1} 2 {caseLabel1} @DANCE_4716 {caseNum2} 3 {caseLabel2} @DANCE_4745 {caseNum3} 4 {caseLabel3} @DANCE_4774 {caseNum4} 5 {caseLabel4} @DANCE_4803 {caseNum5} 6 {caseLabel5} @DANCE_4832 {caseNum6} 7 {caseLabel6} @DANCE_4861 {caseNum7} 8 {caseLabel7} @DANCE_4890
switch_continued 9 {caseLabel1} @DANCE_4919 {caseNum2} 10 {caseLabel2} @DANCE_4948 {caseNum3} 11 {caseLabel3} @DANCE_4978 {caseNum4} 12 {caseLabel4} @DANCE_5008 {caseNum5} 13 {caseLabel5} @DANCE_5038 {caseNum6} 14 {caseLabel6} @DANCE_5068 {caseNum7} 15 {caseLabel7} @DANCE_5098 {caseNum8} 16 {caseLabel8} @DANCE_5128 {caseNum9} -1 {caseLabel9} @DANCE_5158

:DANCE_4687
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B1"
17@ = 2
goto @DANCE_5158

:DANCE_4716
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B2"
17@ += 1
goto @DANCE_5158

:DANCE_4745
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B3"
17@ += 1
goto @DANCE_5158

:DANCE_4774
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B4"
17@ += 1
goto @DANCE_5158

:DANCE_4803
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B5"
17@ += 1
goto @DANCE_5158

:DANCE_4832
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B6"
17@ += 1
goto @DANCE_5158

:DANCE_4861
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B7"
17@ += 1
goto @DANCE_5158

:DANCE_4890
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B8"
17@ += 1
goto @DANCE_5158

:DANCE_4919
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B9"
17@ += 1
goto @DANCE_5158

:DANCE_4948
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B10"
17@ += 1
goto @DANCE_5158

:DANCE_4978
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B11"
17@ += 1
goto @DANCE_5158

:DANCE_5008
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B12"
17@ += 1
goto @DANCE_5158

:DANCE_5038
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B13"
17@ += 1
goto @DANCE_5158

:DANCE_5068
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B14"
17@ += 1
goto @DANCE_5158

:DANCE_5098
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B15"
17@ += 1
goto @DANCE_5158

:DANCE_5128
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B16"
17@ += 1
goto @DANCE_5158

:DANCE_5158
task_play_anim_non_interruptable $scplayer {animationName} v$iTerminateDanceMiniGame {animationFile} v$5306 {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
return 

:DANCE_5186
if 
  is_char_playing_anim $scplayer {animationName} v$iTerminateDanceMiniGame
goto_if_false @DANCE_5312
12@ = get_char_anim_total_time $scplayer {animationName} v$iTerminateDanceMiniGame
11@ = get_char_anim_current_time $scplayer {animationName} v$iTerminateDanceMiniGame
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5296
31@ = 1
return 
goto @DANCE_5305

:DANCE_5296
31@ = -1
return 

:DANCE_5305
goto @DANCE_5321

:DANCE_5312
31@ = 0
return 

:DANCE_5321
return 

:DANCE_5323
if 
  5@ > -1
goto_if_false @DANCE_5509
if 
  is_char_playing_anim 5@ {animationName} v$5302
goto_if_false @DANCE_5451
12@ = get_char_anim_total_time 5@ {animationName} v$5302
11@ = get_char_anim_current_time 5@ {animationName} v$5302
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5444
gosub @DANCE_6885
return 

:DANCE_5444
goto @DANCE_5509

:DANCE_5451
14@, 13@, 15@ = get_beat_proximity 0
if 
  15@ == 0
goto_if_false @DANCE_5509
if 
  25 >= 14@
goto_if_false @DANCE_5509
gosub @DANCE_6885
return 

:DANCE_5509
return 

:DANCE_5511
19@ = get_game_timer 
set_lvar_int_to_lvar_int 21@ = 19@
sub_int_lvar_from_int_lvar 21@ -= 20@
set_lvar_int_to_lvar_int 20@ = 19@
return 

:DANCE_5542
gosub @DANCE_5186
if 
  31@ == 1
goto_if_false @DANCE_5645
if or
  22@ == 1
  22@ == 2
  22@ == 3
  22@ == 8
goto_if_false @DANCE_5629
gosub @DANCE_3932
31@ = -1
return 
goto @DANCE_5645

:DANCE_5629
gosub @DANCE_4559
31@ = -1
return 

:DANCE_5645
return 

:DANCE_5647
switch_start 17@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_6700 {caseNum1} -1 {caseLabel1} @DANCE_5710 {caseNum2} 4 {caseLabel2} @DANCE_5908 {caseNum3} 8 {caseLabel3} @DANCE_6106 {caseNum4} 12 {caseLabel4} @DANCE_6304 {caseNum5} 16 {caseLabel5} @DANCE_6502 {caseNum6} -1 {caseLabel6} @DANCE_6700 {caseNum7} -1 {caseLabel7} @DANCE_6700

:DANCE_5710
if and
  5@ == -1
  $5314[0] > 0.0
goto_if_false @DANCE_5784
set_fixed_camera_position $5314[0] {y} $5319[0] {z} $5324[0] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $5329[0] {y} $5334[0] {z} $5339[0] {switchStyle} SwitchType.JumpCut
goto @DANCE_5901

:DANCE_5784
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -2.3176 {yOffset} 0.9635 {zOffset} 0.5141
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.3381 {yOffset} 0.8235 {zOffset} 0.6587
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_5901
goto @DANCE_6700

:DANCE_5908
if and
  5@ == -1
  $5314[1] > 0.0
goto_if_false @DANCE_5982
set_fixed_camera_position $5314[1] {y} $5319[1] {z} $5324[1] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $5329[1] {y} $5334[1] {z} $5339[1] {switchStyle} SwitchType.JumpCut
goto @DANCE_6099

:DANCE_5982
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 3.5814 {yOffset} 0.8987 {zOffset} 0.6651
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 2.6071 {yOffset} 0.853 {zOffset} 0.8857
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6099
goto @DANCE_6700

:DANCE_6106
if and
  5@ == -1
  $5314[2] > 0.0
goto_if_false @DANCE_6180
set_fixed_camera_position $5314[2] {y} $5319[2] {z} $5324[2] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $5329[2] {y} $5334[2] {z} $5339[2] {switchStyle} SwitchType.JumpCut
goto @DANCE_6297

:DANCE_6180
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.3843 {yOffset} 2.9502 {zOffset} 1.8476
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.461 {yOffset} 2.0089 {zOffset} 1.5188
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6297
goto @DANCE_6700

:DANCE_6304
if and
  5@ == -1
  $5314[3] > 0.0
goto_if_false @DANCE_6378
set_fixed_camera_position $5314[3] {y} $5319[3] {z} $5324[3] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $5329[3] {y} $5334[3] {z} $5339[3] {switchStyle} SwitchType.JumpCut
goto @DANCE_6495

:DANCE_6378
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -2.2621 {yOffset} 0.1226 {zOffset} 0.6863
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.2706 {yOffset} 0.1649 {zOffset} 0.8096
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6495
goto @DANCE_6700

:DANCE_6502
if and
  5@ == -1
  $5314[4] > 0.0
goto_if_false @DANCE_6576
set_fixed_camera_position $5314[4] {y} $5319[4] {z} $5324[4] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $5329[4] {y} $5334[4] {z} $5339[4] {switchStyle} SwitchType.JumpCut
goto @DANCE_6693

:DANCE_6576
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.6647 {yOffset} 1.7322 {zOffset} 2.3217
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.8677 {yOffset} 1.3108 {zOffset} 1.889
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6693
goto @DANCE_6700

:DANCE_6700
return 

:DANCE_6702
if 
  5@ <> -1
goto_if_false @DANCE_6883
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 1.3 {zOffset} 0.0
10@ = get_ground_z_for_3d_coord 8@ {y} 9@ {z} 10@
if 
  is_char_dead 5@
goto_if_false @DANCE_6793
gosub @DANCE_7528
goto @DANCE_6836

:DANCE_6793
if 
  is_group_member 5@ {handle} $Players_Group
goto_if_false @DANCE_6817
remove_char_from_group 5@

:DANCE_6817
clear_char_tasks_immediately 5@
set_char_coordinates 5@ {x} 8@ {y} 9@ {z} 10@

:DANCE_6836
if and
  not is_char_dead 5@
  not is_char_dead $scplayer
goto_if_false @DANCE_6883
11@ = get_char_heading $scplayer
11@ += 180.0
set_char_heading 5@ {heading} 11@

:DANCE_6883
return 

:DANCE_6885
switch_start 25@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_7013 {caseNum1} 2 {caseLabel1} @DANCE_7042 {caseNum2} 3 {caseLabel2} @DANCE_7071 {caseNum3} 4 {caseLabel3} @DANCE_7100 {caseNum4} 5 {caseLabel4} @DANCE_7129 {caseNum5} 6 {caseLabel5} @DANCE_7158 {caseNum6} 7 {caseLabel6} @DANCE_7187 {caseNum7} 8 {caseLabel7} @DANCE_7216
switch_continued 9 {caseLabel1} @DANCE_7245 {caseNum2} 10 {caseLabel2} @DANCE_7274 {caseNum3} 11 {caseLabel3} @DANCE_7304 {caseNum4} 12 {caseLabel4} @DANCE_7334 {caseNum5} 13 {caseLabel5} @DANCE_7364 {caseNum6} 14 {caseLabel6} @DANCE_7394 {caseNum7} 15 {caseLabel7} @DANCE_7424 {caseNum8} 16 {caseLabel8} @DANCE_7454 {caseNum9} -1 {caseLabel9} @DANCE_7484

:DANCE_7013
set_var_text_label16 v$5302 = "DANCE_G1"
25@ = 2
goto @DANCE_7484

:DANCE_7042
set_var_text_label16 v$5302 = "DANCE_G2"
25@ += 1
goto @DANCE_7484

:DANCE_7071
set_var_text_label16 v$5302 = "DANCE_G3"
25@ += 1
goto @DANCE_7484

:DANCE_7100
set_var_text_label16 v$5302 = "DANCE_G4"
25@ += 1
goto @DANCE_7484

:DANCE_7129
set_var_text_label16 v$5302 = "DANCE_G5"
25@ += 1
goto @DANCE_7484

:DANCE_7158
set_var_text_label16 v$5302 = "DANCE_G6"
25@ += 1
goto @DANCE_7484

:DANCE_7187
set_var_text_label16 v$5302 = "DANCE_G7"
25@ += 1
goto @DANCE_7484

:DANCE_7216
set_var_text_label16 v$5302 = "DANCE_G8"
25@ += 1
goto @DANCE_7484

:DANCE_7245
set_var_text_label16 v$5302 = "DANCE_G9"
25@ += 1
goto @DANCE_7484

:DANCE_7274
set_var_text_label16 v$5302 = "DANCE_G10"
25@ += 1
goto @DANCE_7484

:DANCE_7304
set_var_text_label16 v$5302 = "DANCE_G11"
25@ += 1
goto @DANCE_7484

:DANCE_7334
set_var_text_label16 v$5302 = "DANCE_G12"
25@ += 1
goto @DANCE_7484

:DANCE_7364
set_var_text_label16 v$5302 = "DANCE_G13"
25@ += 1
goto @DANCE_7484

:DANCE_7394
set_var_text_label16 v$5302 = "DANCE_G14"
25@ += 1
goto @DANCE_7484

:DANCE_7424
set_var_text_label16 v$5302 = "DANCE_G15"
25@ += 1
goto @DANCE_7484

:DANCE_7454
set_var_text_label16 v$5302 = "DANCE_G16"
25@ += 1
goto @DANCE_7484

:DANCE_7484
if 
  not is_char_dead 5@
goto_if_false @DANCE_7526
task_play_anim_non_interruptable 5@ {animationName} v$5302 {animationFile} v$5306 {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:DANCE_7526
return 

:DANCE_7528
13@ = generate_random_int_in_range 1 {max} 5
switch_start 13@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_7885 {caseNum1} 1 {caseLabel1} @DANCE_7600 {caseNum2} 2 {caseLabel2} @DANCE_7657 {caseNum3} 3 {caseLabel3} @DANCE_7714 {caseNum4} 4 {caseLabel4} @DANCE_7771 {caseNum5} 5 {caseLabel5} @DANCE_7828 {caseNum6} -1 {caseLabel6} @DANCE_7885 {caseNum7} -1 {caseLabel7} @DANCE_7885

:DANCE_7600
if 
  not has_model_loaded 12
goto_if_false @DANCE_7630
request_model 12
wait 0
goto @DANCE_7600

:DANCE_7630
5@ = create_char PedType.CivFemale {modelId} 12 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_7885

:DANCE_7657
if 
  not has_model_loaded 56
goto_if_false @DANCE_7687
request_model 56
wait 0
goto @DANCE_7657

:DANCE_7687
5@ = create_char PedType.CivFemale {modelId} 56 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_7885

:DANCE_7714
if 
  not has_model_loaded 93
goto_if_false @DANCE_7744
request_model 93
wait 0
goto @DANCE_7714

:DANCE_7744
5@ = create_char PedType.CivFemale {modelId} 93 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_7885

:DANCE_7771
if 
  not has_model_loaded 40
goto_if_false @DANCE_7801
request_model 40
wait 0
goto @DANCE_7771

:DANCE_7801
5@ = create_char PedType.CivFemale {modelId} 40 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_7885

:DANCE_7828
if 
  not has_model_loaded 91
goto_if_false @DANCE_7858
request_model 91
wait 0
goto @DANCE_7828

:DANCE_7858
5@ = create_char PedType.CivFemale {modelId} 91 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_7885

:DANCE_7885
return 

:DANCE_7887
if 
  not is_var_text_label16_empty v$iTerminateDanceMiniGame
goto_if_false @DANCE_7948
14@, 13@, 15@ = get_beat_proximity 0
if 
  13@ == 33
goto_if_false @DANCE_7948
6@ = 2
7@ = 0

:DANCE_7948
return 

:DANCE_7950
switch_start 24@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DANCE_8013 {caseNum1} 2 {caseLabel1} @DANCE_8265 {caseNum2} 3 {caseLabel2} @DANCE_8517 {caseNum3} -1 {caseLabel3} @DANCE_8769 {caseNum4} -1 {caseLabel4} @DANCE_8769 {caseNum5} -1 {caseLabel5} @DANCE_8769 {caseNum6} -1 {caseLabel6} @DANCE_8769 {caseNum7} -1 {caseLabel7} @DANCE_8769

:DANCE_8013
if 
  22@ == 1
goto_if_false @DANCE_8047
print_big 'DNC_005' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8047
if 
  22@ == 2
goto_if_false @DANCE_8081
print_big 'DNC_006' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8081
if 
  22@ == 3
goto_if_false @DANCE_8115
print_big 'DNC_007' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8115
if 
  22@ == 0
goto_if_false @DANCE_8149
print_big 'DNC_008' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8149
if 
  22@ == 4
goto_if_false @DANCE_8183
print_big 'DNC_009' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8183
if 
  22@ == 10
goto_if_false @DANCE_8217
print_big 'DNC_010' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8217
if 
  22@ == 11
goto_if_false @DANCE_8251
print_big 'DNC_011' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8251
24@ = 2
goto @DANCE_8769

:DANCE_8265
if 
  22@ == 1
goto_if_false @DANCE_8299
print_big 'DNC_012' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8299
if 
  22@ == 2
goto_if_false @DANCE_8333
print_big 'DNC_013' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8333
if 
  22@ == 3
goto_if_false @DANCE_8367
print_big 'DNC_014' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8367
if 
  22@ == 0
goto_if_false @DANCE_8401
print_big 'DNC_015' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8401
if 
  22@ == 4
goto_if_false @DANCE_8435
print_big 'DNC_016' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8435
if 
  22@ == 10
goto_if_false @DANCE_8469
print_big 'DNC_017' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8469
if 
  22@ == 11
goto_if_false @DANCE_8503
print_big 'DNC_018' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8503
24@ += 1
goto @DANCE_8769

:DANCE_8517
if 
  22@ == 1
goto_if_false @DANCE_8551
print_big 'DNC_019' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8551
if 
  22@ == 2
goto_if_false @DANCE_8585
print_big 'DNC_020' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8585
if 
  22@ == 3
goto_if_false @DANCE_8619
print_big 'DNC_021' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8619
if 
  22@ == 0
goto_if_false @DANCE_8653
print_big 'DNC_022' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8653
if 
  22@ == 4
goto_if_false @DANCE_8687
print_big 'DNC_023' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8687
if 
  22@ == 10
goto_if_false @DANCE_8721
print_big 'DNC_024' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8721
if 
  22@ == 11
goto_if_false @DANCE_8755
print_big 'DNC_025' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8755
24@ += 1
goto @DANCE_8769

:DANCE_8769
return 

:DANCE_8771
set_lvar_int_to_lvar_int 13@ = 26@
add_int_lvar_to_int_lvar 13@ += 27@
add_int_lvar_to_int_lvar 13@ += 28@
if 
  13@ > 0
goto_if_false @DANCE_9296
if 
  13@ >= 4
goto_if_false @DANCE_9296
if 
  28@ == 4
goto_if_false @DANCE_8966
if or
  29@ == 1
  29@ == 2
goto_if_false @DANCE_8920
$iSetRCPanic = 2
TIMERA = 0
print_big 'DNC_002' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 2
goto @DANCE_8959

:DANCE_8920
$iSetRCPanic = 2
TIMERA = 0
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1

:DANCE_8959
goto @DANCE_9275

:DANCE_8966
if 
  is_int_lvar_greater_than_int_lvar 26@ > 27@
goto_if_false @DANCE_9089
if 
  29@ <> 1
goto_if_false @DANCE_9024
$iSetRCPanic = 4
TIMERA = 0
goto @DANCE_9057

:DANCE_9024
if 
  TIMERA >= 10000
goto_if_false @DANCE_9057
$iSetRCPanic = 4
TIMERA = 0

:DANCE_9057
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1
goto @DANCE_9275

:DANCE_9089
if 
  29@ == 2
goto_if_false @DANCE_9153
$iSetRCPanic = 3
TIMERA = 0
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1
goto @DANCE_9275

:DANCE_9153
if 
  29@ == 1
goto_if_false @DANCE_9217
$iSetRCPanic = 5
TIMERA = 0
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 0
goto @DANCE_9275

:DANCE_9217
if 
  TIMERA >= 10000
goto_if_false @DANCE_9250
$iSetRCPanic = 5
TIMERA = 0

:DANCE_9250
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 0

:DANCE_9275
28@ = 0
26@ = 0
27@ = 0

:DANCE_9296
return 

:DANCE_9298
set_text_right_justify False
set_text_proportional True
set_text_background True
set_text_scale 0.5014 {heightScale} 1.8889
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
if 
  6@ == 3
goto_if_false @DANCE_9388
set_text_wrapx 240.0
display_text 32.0 {offsetTop} 32.0 {key} 'DNC_H2'
goto @DANCE_9434

:DANCE_9388
if 
  6@ <> 2
goto_if_false @DANCE_9434
set_text_wrapx 220.0
display_text 32.0 {offsetTop} 32.0 {key} 'DNC_H1'

:DANCE_9434
return 

:DANCE_9436
switch_start $iDance_SpeechRequest {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DANCE_9862 {caseNum1} 0 {caseLabel1} @DANCE_9499 {caseNum2} 1 {caseLabel2} @DANCE_9822 {caseNum3} 6 {caseLabel3} @DANCE_9662 {caseNum4} 8 {caseLabel4} @DANCE_9702 {caseNum5} 9 {caseLabel5} @DANCE_9742 {caseNum6} 10 {caseLabel6} @DANCE_9782 {caseNum7} -1 {caseLabel7} @DANCE_9862

:DANCE_9499
if 
  $iSetRCPanic == 2
goto_if_false @DANCE_9538
$iDance_SpeechRequest = 6
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9538
if 
  $iSetRCPanic == 3
goto_if_false @DANCE_9577
$iDance_SpeechRequest = 8
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9577
if 
  $iSetRCPanic == 4
goto_if_false @DANCE_9616
$iDance_SpeechRequest = 9
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9616
if 
  $iSetRCPanic == 5
goto_if_false @DANCE_9655
$iDance_SpeechRequest = 10
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9655
goto @DANCE_9862

:DANCE_9662
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9695
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_9864
$iDance_SpeechRequest = 1

:DANCE_9695
goto @DANCE_9862

:DANCE_9702
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9735
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_11630
$iDance_SpeechRequest = 1

:DANCE_9735
goto @DANCE_9862

:DANCE_9742
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9775
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_13396
$iDance_SpeechRequest = 1

:DANCE_9775
goto @DANCE_9862

:DANCE_9782
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9815
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_15162
$iDance_SpeechRequest = 1

:DANCE_9815
goto @DANCE_9862

:DANCE_9822
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @DANCE_9855
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} $scplayer
play_mission_audio MissionAudioSlot.Slot4
$iDance_SpeechRequest = 0

:DANCE_9855
goto @DANCE_9862

:DANCE_9862
return 

:DANCE_9864
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_10317 {caseNum1} 1 {caseLabel1} @DANCE_10340 {caseNum2} 2 {caseLabel2} @DANCE_10363 {caseNum3} 3 {caseLabel3} @DANCE_10386 {caseNum4} 4 {caseLabel4} @DANCE_10409 {caseNum5} 5 {caseLabel5} @DANCE_10432 {caseNum6} 6 {caseLabel6} @DANCE_10455 {caseNum7} 7 {caseLabel7} @DANCE_10478
switch_continued 8 {caseLabel1} @DANCE_10501 {caseNum2} 9 {caseLabel2} @DANCE_10524 {caseNum3} 10 {caseLabel3} @DANCE_10547 {caseNum4} 11 {caseLabel4} @DANCE_10570 {caseNum5} 12 {caseLabel5} @DANCE_10593 {caseNum6} 13 {caseLabel6} @DANCE_10616 {caseNum7} 14 {caseLabel7} @DANCE_10639 {caseNum8} 15 {caseLabel8} @DANCE_10662 {caseNum9} 16 {caseLabel9} @DANCE_10685
switch_continued 17 {caseLabel1} @DANCE_10708 {caseNum2} 18 {caseLabel2} @DANCE_10731 {caseNum3} 19 {caseLabel3} @DANCE_10754 {caseNum4} 20 {caseLabel4} @DANCE_10777 {caseNum5} 21 {caseLabel5} @DANCE_10800 {caseNum6} 22 {caseLabel6} @DANCE_10823 {caseNum7} 23 {caseLabel7} @DANCE_10846 {caseNum8} 24 {caseLabel8} @DANCE_10869 {caseNum9} 25 {caseLabel9} @DANCE_10892
switch_continued 26 {caseLabel1} @DANCE_10915 {caseNum2} 27 {caseLabel2} @DANCE_10938 {caseNum3} 28 {caseLabel3} @DANCE_10961 {caseNum4} 29 {caseLabel4} @DANCE_10984 {caseNum5} 30 {caseLabel5} @DANCE_11007 {caseNum6} 31 {caseLabel6} @DANCE_11030 {caseNum7} 32 {caseLabel7} @DANCE_11053 {caseNum8} 33 {caseLabel8} @DANCE_11076 {caseNum9} 34 {caseLabel9} @DANCE_11099
switch_continued 35 {caseLabel1} @DANCE_11122 {caseNum2} 36 {caseLabel2} @DANCE_11145 {caseNum3} 37 {caseLabel3} @DANCE_11168 {caseNum4} 38 {caseLabel4} @DANCE_11191 {caseNum5} 39 {caseLabel5} @DANCE_11214 {caseNum6} 40 {caseLabel6} @DANCE_11237 {caseNum7} 41 {caseLabel7} @DANCE_11260 {caseNum8} 42 {caseLabel8} @DANCE_11283 {caseNum9} 43 {caseLabel9} @DANCE_11306
switch_continued 44 {caseLabel1} @DANCE_11329 {caseNum2} 45 {caseLabel2} @DANCE_11352 {caseNum3} 46 {caseLabel3} @DANCE_11375 {caseNum4} 47 {caseLabel4} @DANCE_11398 {caseNum5} 48 {caseLabel5} @DANCE_11421 {caseNum6} 49 {caseLabel6} @DANCE_11444 {caseNum7} 50 {caseLabel7} @DANCE_11467 {caseNum8} 51 {caseLabel8} @DANCE_11490 {caseNum9} 52 {caseLabel9} @DANCE_11513
switch_continued 53 {caseLabel1} @DANCE_11536 {caseNum2} 54 {caseLabel2} @DANCE_11559 {caseNum3} 55 {caseLabel3} @DANCE_11582 {caseNum4} 56 {caseLabel4} @DANCE_11605 {caseNum5} -1 {caseLabel5} @DANCE_11628 {caseNum6} -1 {caseLabel6} @DANCE_11628 {caseNum7} -1 {caseLabel7} @DANCE_11628 {caseNum8} -1 {caseLabel8} @DANCE_11628 {caseNum9} -1 {caseLabel9} @DANCE_11628

:DANCE_10317
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40455
$iDance_SpeechState = 1
goto @DANCE_11628

:DANCE_10340
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40400
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10363
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40401
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10386
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40402
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10409
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40403
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10432
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40404
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10455
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40405
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10478
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40406
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10501
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40407
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10524
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40408
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10547
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40409
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10570
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40410
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10593
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40411
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10616
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40412
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10639
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40413
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10662
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40414
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10685
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40415
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10708
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40416
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10731
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40417
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10754
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40418
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10777
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40419
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10800
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40420
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10823
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40421
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10846
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40422
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10869
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40423
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10892
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40424
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10915
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40425
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10938
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40426
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10961
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40427
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10984
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40428
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11007
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40429
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11030
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40430
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11053
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40431
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11076
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40432
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11099
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40433
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11122
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40434
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11145
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40435
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11168
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40436
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11191
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40437
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11214
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40438
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11237
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40439
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11260
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40440
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11283
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40441
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11306
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40442
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11329
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40443
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11352
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40444
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11375
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40445
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11398
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40446
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11421
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40447
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11444
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40448
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11467
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40449
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11490
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40450
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11513
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40451
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11536
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40452
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11559
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40453
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11582
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40454
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11605
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40455
$iDance_SpeechState = 1
goto @DANCE_11628

:DANCE_11628
return 

:DANCE_11630
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_12083 {caseNum1} 1 {caseLabel1} @DANCE_12106 {caseNum2} 2 {caseLabel2} @DANCE_12129 {caseNum3} 3 {caseLabel3} @DANCE_12152 {caseNum4} 4 {caseLabel4} @DANCE_12175 {caseNum5} 5 {caseLabel5} @DANCE_12198 {caseNum6} 6 {caseLabel6} @DANCE_12221 {caseNum7} 7 {caseLabel7} @DANCE_12244
switch_continued 8 {caseLabel1} @DANCE_12267 {caseNum2} 9 {caseLabel2} @DANCE_12290 {caseNum3} 10 {caseLabel3} @DANCE_12313 {caseNum4} 11 {caseLabel4} @DANCE_12336 {caseNum5} 12 {caseLabel5} @DANCE_12359 {caseNum6} 13 {caseLabel6} @DANCE_12382 {caseNum7} 14 {caseLabel7} @DANCE_12405 {caseNum8} 15 {caseLabel8} @DANCE_12428 {caseNum9} 16 {caseLabel9} @DANCE_12451
switch_continued 17 {caseLabel1} @DANCE_12474 {caseNum2} 18 {caseLabel2} @DANCE_12497 {caseNum3} 19 {caseLabel3} @DANCE_12520 {caseNum4} 20 {caseLabel4} @DANCE_12543 {caseNum5} 21 {caseLabel5} @DANCE_12566 {caseNum6} 22 {caseLabel6} @DANCE_12589 {caseNum7} 23 {caseLabel7} @DANCE_12612 {caseNum8} 24 {caseLabel8} @DANCE_12635 {caseNum9} 25 {caseLabel9} @DANCE_12658
switch_continued 26 {caseLabel1} @DANCE_12681 {caseNum2} 27 {caseLabel2} @DANCE_12704 {caseNum3} 28 {caseLabel3} @DANCE_12727 {caseNum4} 29 {caseLabel4} @DANCE_12750 {caseNum5} 30 {caseLabel5} @DANCE_12773 {caseNum6} 31 {caseLabel6} @DANCE_12796 {caseNum7} 32 {caseLabel7} @DANCE_12819 {caseNum8} 33 {caseLabel8} @DANCE_12842 {caseNum9} 34 {caseLabel9} @DANCE_12865
switch_continued 35 {caseLabel1} @DANCE_12888 {caseNum2} 36 {caseLabel2} @DANCE_12911 {caseNum3} 37 {caseLabel3} @DANCE_12934 {caseNum4} 38 {caseLabel4} @DANCE_12957 {caseNum5} 39 {caseLabel5} @DANCE_12980 {caseNum6} 40 {caseLabel6} @DANCE_13003 {caseNum7} 41 {caseLabel7} @DANCE_13026 {caseNum8} 42 {caseLabel8} @DANCE_13049 {caseNum9} 43 {caseLabel9} @DANCE_13072
switch_continued 44 {caseLabel1} @DANCE_13095 {caseNum2} 45 {caseLabel2} @DANCE_13118 {caseNum3} 46 {caseLabel3} @DANCE_13141 {caseNum4} 47 {caseLabel4} @DANCE_13164 {caseNum5} 48 {caseLabel5} @DANCE_13187 {caseNum6} 49 {caseLabel6} @DANCE_13210 {caseNum7} 50 {caseLabel7} @DANCE_13233 {caseNum8} 51 {caseLabel8} @DANCE_13256 {caseNum9} 52 {caseLabel9} @DANCE_13279
switch_continued 53 {caseLabel1} @DANCE_13302 {caseNum2} 54 {caseLabel2} @DANCE_13325 {caseNum3} 55 {caseLabel3} @DANCE_13348 {caseNum4} 56 {caseLabel4} @DANCE_13371 {caseNum5} -1 {caseLabel5} @DANCE_13394 {caseNum6} -1 {caseLabel6} @DANCE_13394 {caseNum7} -1 {caseLabel7} @DANCE_13394 {caseNum8} -1 {caseLabel8} @DANCE_13394 {caseNum9} -1 {caseLabel9} @DANCE_13394

:DANCE_12083
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40655
$iDance_SpeechState = 1
goto @DANCE_13394

:DANCE_12106
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40600
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12129
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40601
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12152
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40602
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12175
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40603
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12198
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40604
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12221
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40605
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12244
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40606
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12267
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40607
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12290
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40608
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12313
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40609
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12336
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40610
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12359
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40611
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12382
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40612
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12405
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40613
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12428
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40614
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12451
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40615
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12474
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40616
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12497
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40617
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12520
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40618
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12543
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40619
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12566
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40620
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12589
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40621
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12612
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40622
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12635
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40623
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12658
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40624
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12681
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40625
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12704
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40626
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12727
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40627
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12750
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40628
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12773
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40629
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12796
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40630
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12819
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40631
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12842
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40632
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12865
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40633
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12888
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40634
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12911
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40635
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12934
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40636
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12957
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40637
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12980
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40638
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13003
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40639
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13026
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40640
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13049
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40641
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13072
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40642
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13095
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40643
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13118
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40644
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13141
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40645
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13164
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40646
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13187
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40647
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13210
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40648
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13233
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40649
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13256
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40650
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13279
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40651
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13302
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40652
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13325
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40653
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13348
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40654
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13371
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40655
$iDance_SpeechState = 1
goto @DANCE_13394

:DANCE_13394
return 

:DANCE_13396
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_13849 {caseNum1} 1 {caseLabel1} @DANCE_13872 {caseNum2} 2 {caseLabel2} @DANCE_13895 {caseNum3} 3 {caseLabel3} @DANCE_13918 {caseNum4} 4 {caseLabel4} @DANCE_13941 {caseNum5} 5 {caseLabel5} @DANCE_13964 {caseNum6} 6 {caseLabel6} @DANCE_13987 {caseNum7} 7 {caseLabel7} @DANCE_14010
switch_continued 8 {caseLabel1} @DANCE_14033 {caseNum2} 9 {caseLabel2} @DANCE_14056 {caseNum3} 10 {caseLabel3} @DANCE_14079 {caseNum4} 11 {caseLabel4} @DANCE_14102 {caseNum5} 12 {caseLabel5} @DANCE_14125 {caseNum6} 13 {caseLabel6} @DANCE_14148 {caseNum7} 14 {caseLabel7} @DANCE_14171 {caseNum8} 15 {caseLabel8} @DANCE_14194 {caseNum9} 16 {caseLabel9} @DANCE_14217
switch_continued 17 {caseLabel1} @DANCE_14240 {caseNum2} 18 {caseLabel2} @DANCE_14263 {caseNum3} 19 {caseLabel3} @DANCE_14286 {caseNum4} 20 {caseLabel4} @DANCE_14309 {caseNum5} 21 {caseLabel5} @DANCE_14332 {caseNum6} 22 {caseLabel6} @DANCE_14355 {caseNum7} 23 {caseLabel7} @DANCE_14378 {caseNum8} 24 {caseLabel8} @DANCE_14401 {caseNum9} 25 {caseLabel9} @DANCE_14424
switch_continued 26 {caseLabel1} @DANCE_14447 {caseNum2} 27 {caseLabel2} @DANCE_14470 {caseNum3} 28 {caseLabel3} @DANCE_14493 {caseNum4} 29 {caseLabel4} @DANCE_14516 {caseNum5} 30 {caseLabel5} @DANCE_14539 {caseNum6} 31 {caseLabel6} @DANCE_14562 {caseNum7} 32 {caseLabel7} @DANCE_14585 {caseNum8} 33 {caseLabel8} @DANCE_14608 {caseNum9} 34 {caseLabel9} @DANCE_14631
switch_continued 35 {caseLabel1} @DANCE_14654 {caseNum2} 36 {caseLabel2} @DANCE_14677 {caseNum3} 37 {caseLabel3} @DANCE_14700 {caseNum4} 38 {caseLabel4} @DANCE_14723 {caseNum5} 39 {caseLabel5} @DANCE_14746 {caseNum6} 40 {caseLabel6} @DANCE_14769 {caseNum7} 41 {caseLabel7} @DANCE_14792 {caseNum8} 42 {caseLabel8} @DANCE_14815 {caseNum9} 43 {caseLabel9} @DANCE_14838
switch_continued 44 {caseLabel1} @DANCE_14861 {caseNum2} 45 {caseLabel2} @DANCE_14884 {caseNum3} 46 {caseLabel3} @DANCE_14907 {caseNum4} 47 {caseLabel4} @DANCE_14930 {caseNum5} 48 {caseLabel5} @DANCE_14953 {caseNum6} 49 {caseLabel6} @DANCE_14976 {caseNum7} 50 {caseLabel7} @DANCE_14999 {caseNum8} 51 {caseLabel8} @DANCE_15022 {caseNum9} 52 {caseLabel9} @DANCE_15045
switch_continued 53 {caseLabel1} @DANCE_15068 {caseNum2} 54 {caseLabel2} @DANCE_15091 {caseNum3} 55 {caseLabel3} @DANCE_15114 {caseNum4} 56 {caseLabel4} @DANCE_15137 {caseNum5} -1 {caseLabel5} @DANCE_15160 {caseNum6} -1 {caseLabel6} @DANCE_15160 {caseNum7} -1 {caseLabel7} @DANCE_15160 {caseNum8} -1 {caseLabel8} @DANCE_15160 {caseNum9} -1 {caseLabel9} @DANCE_15160

:DANCE_13849
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40855
$iDance_SpeechState = 1
goto @DANCE_15160

:DANCE_13872
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40800
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13895
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40801
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13918
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40802
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13941
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40803
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13964
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40804
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13987
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40805
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14010
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40806
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14033
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40807
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14056
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40808
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14079
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40809
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14102
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40810
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14125
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40811
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14148
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40812
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14171
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40813
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14194
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40814
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14217
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40815
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14240
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40816
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14263
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40817
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14286
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40818
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14309
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40819
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14332
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40820
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14355
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40821
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14378
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40822
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14401
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40823
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14424
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40824
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14447
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40825
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14470
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40826
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14493
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40827
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14516
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40828
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14539
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40829
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14562
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40830
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14585
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40831
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14608
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40832
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14631
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40833
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14654
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40834
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14677
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40835
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14700
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40836
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14723
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40837
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14746
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40838
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14769
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40839
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14792
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40840
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14815
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40841
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14838
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40842
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14861
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40843
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14884
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40844
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14907
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40845
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14930
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40846
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14953
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40847
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14976
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40848
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14999
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40849
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15022
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40850
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15045
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40851
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15068
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40852
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15091
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40853
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15114
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40854
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15137
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40855
$iDance_SpeechState = 1
goto @DANCE_15160

:DANCE_15160
return 

:DANCE_15162
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_15615 {caseNum1} 1 {caseLabel1} @DANCE_15638 {caseNum2} 2 {caseLabel2} @DANCE_15661 {caseNum3} 3 {caseLabel3} @DANCE_15684 {caseNum4} 4 {caseLabel4} @DANCE_15707 {caseNum5} 5 {caseLabel5} @DANCE_15730 {caseNum6} 6 {caseLabel6} @DANCE_15753 {caseNum7} 7 {caseLabel7} @DANCE_15776
switch_continued 8 {caseLabel1} @DANCE_15799 {caseNum2} 9 {caseLabel2} @DANCE_15822 {caseNum3} 10 {caseLabel3} @DANCE_15845 {caseNum4} 11 {caseLabel4} @DANCE_15868 {caseNum5} 12 {caseLabel5} @DANCE_15891 {caseNum6} 13 {caseLabel6} @DANCE_15914 {caseNum7} 14 {caseLabel7} @DANCE_15937 {caseNum8} 15 {caseLabel8} @DANCE_15960 {caseNum9} 16 {caseLabel9} @DANCE_15983
switch_continued 17 {caseLabel1} @DANCE_16006 {caseNum2} 18 {caseLabel2} @DANCE_16029 {caseNum3} 19 {caseLabel3} @DANCE_16052 {caseNum4} 20 {caseLabel4} @DANCE_16075 {caseNum5} 21 {caseLabel5} @DANCE_16098 {caseNum6} 22 {caseLabel6} @DANCE_16121 {caseNum7} 23 {caseLabel7} @DANCE_16144 {caseNum8} 24 {caseLabel8} @DANCE_16167 {caseNum9} 25 {caseLabel9} @DANCE_16190
switch_continued 26 {caseLabel1} @DANCE_16213 {caseNum2} 27 {caseLabel2} @DANCE_16236 {caseNum3} 28 {caseLabel3} @DANCE_16259 {caseNum4} 29 {caseLabel4} @DANCE_16282 {caseNum5} 30 {caseLabel5} @DANCE_16305 {caseNum6} 31 {caseLabel6} @DANCE_16328 {caseNum7} 32 {caseLabel7} @DANCE_16351 {caseNum8} 33 {caseLabel8} @DANCE_16374 {caseNum9} 34 {caseLabel9} @DANCE_16397
switch_continued 35 {caseLabel1} @DANCE_16420 {caseNum2} 36 {caseLabel2} @DANCE_16443 {caseNum3} 37 {caseLabel3} @DANCE_16466 {caseNum4} 38 {caseLabel4} @DANCE_16489 {caseNum5} 39 {caseLabel5} @DANCE_16512 {caseNum6} 40 {caseLabel6} @DANCE_16535 {caseNum7} 41 {caseLabel7} @DANCE_16558 {caseNum8} 42 {caseLabel8} @DANCE_16581 {caseNum9} 43 {caseLabel9} @DANCE_16604
switch_continued 44 {caseLabel1} @DANCE_16627 {caseNum2} 45 {caseLabel2} @DANCE_16650 {caseNum3} 46 {caseLabel3} @DANCE_16673 {caseNum4} 47 {caseLabel4} @DANCE_16696 {caseNum5} 48 {caseLabel5} @DANCE_16719 {caseNum6} 49 {caseLabel6} @DANCE_16742 {caseNum7} 50 {caseLabel7} @DANCE_16765 {caseNum8} 51 {caseLabel8} @DANCE_16788 {caseNum9} 52 {caseLabel9} @DANCE_16811
switch_continued 53 {caseLabel1} @DANCE_16834 {caseNum2} 54 {caseLabel2} @DANCE_16857 {caseNum3} 55 {caseLabel3} @DANCE_16880 {caseNum4} 56 {caseLabel4} @DANCE_16903 {caseNum5} -1 {caseLabel5} @DANCE_16926 {caseNum6} -1 {caseLabel6} @DANCE_16926 {caseNum7} -1 {caseLabel7} @DANCE_16926 {caseNum8} -1 {caseLabel8} @DANCE_16926 {caseNum9} -1 {caseLabel9} @DANCE_16926

:DANCE_15615
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41055
$iDance_SpeechState = 1
goto @DANCE_16926

:DANCE_15638
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41000
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15661
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41001
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15684
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41002
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15707
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41003
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15730
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41004
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15753
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41005
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15776
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41006
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15799
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41007
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15822
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41008
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15845
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41009
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15868
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41010
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15891
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41011
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15914
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41012
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15937
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41013
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15960
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41014
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15983
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41015
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16006
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41016
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16029
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41017
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16052
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41018
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16075
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41019
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16098
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41020
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16121
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41021
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16144
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41022
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16167
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41023
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16190
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41024
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16213
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41025
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16236
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41026
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16259
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41027
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16282
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41028
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16305
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41029
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16328
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41030
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16351
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41031
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16374
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41032
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16397
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41033
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16420
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41034
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16443
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41035
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16466
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41036
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16489
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41037
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16512
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41038
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16535
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41039
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16558
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41040
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16581
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41041
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16604
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41042
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16627
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41043
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16650
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41044
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16673
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41045
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16696
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41046
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16719
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41047
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16742
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41048
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16765
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41049
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16788
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41050
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16811
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41051
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16834
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41052
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16857
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41053
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16880
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41054
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16903
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41055
$iDance_SpeechState = 1
goto @DANCE_16926

:DANCE_16926
return 

:DANCE_16928
$bd_terminate_script = 1
$iSwitchOffDanceMiniGame = 0
remove_animation v$5306
clear_prints 
if 
  not is_char_dead 5@
goto_if_false @DANCE_17042
if and
  not is_char_model 5@ {modelId} 195
  not is_char_model 5@ {modelId} 192
  not is_char_model 5@ {modelId} 191
  not is_char_model 5@ {modelId} 190
  not is_char_model 5@ {modelId} 193
  not is_char_model 5@ {modelId} 194
goto_if_false @DANCE_17042
13@ = get_char_model 5@
mark_model_as_no_longer_needed 13@
delete_char 5@

:DANCE_17042
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_17067
stop_beat_track 

:DANCE_17067
13@ = 0

:DANCE_17074
$5314(13@,5f) = 0.0
$5319(13@,5f) = 0.0
$5324(13@,5f) = 0.0
$5329(13@,5f) = 0.0
$5334(13@,5f) = 0.0
$5339(13@,5f) = 0.0
13@ += 1
  13@ >= 5
goto_if_false @DANCE_17074
force_big_message_and_counter False
use_text_commands False
if 
  $iDanceReport >= 0
goto_if_false @DANCE_17213
set_int_stat StatId.LatestDanceScore {value} $iDanceReport

:DANCE_17213
clear_mission_audio MissionAudioSlot.Slot4
set_player_control $player1 {state} True
clear_global_var_bit_const $d6_trip_skips_available {bitIndex} 31
set_minigame_in_progress False
terminate_this_script 
return 
write_debug v$iTerminateDanceMiniGame
13@, 13@, 13@ = get_beat_proximity 1
write_debug_with_int "NEXT_BEAT_NUMBER" {number} 13@
return 
terminate_this_script 

//-------------External script 36 (SHOPKEEPER)---------------

:SKBRAIN
script_name 'SKBRAIN'
2@ = 0
if 
  2@ == 1
goto_if_false @SKBRAIN_114
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
6@ = create_object 0 {x} 0.0 {y} 0.0 {z} 0.0

:SKBRAIN_114
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_138
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:SKBRAIN_138
request_animation "FOOD"

:SKBRAIN_146
if 
  not has_animation_loaded "FOOD"
goto_if_false @SKBRAIN_176
wait 0
goto @SKBRAIN_146

:SKBRAIN_176
3@ = 1
4@ = 0
5@ = 0
7@ = 0

:SKBRAIN_204
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_377
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_283
gosub @SKBRAIN_1552
goto @SKBRAIN_370

:SKBRAIN_283
if or
  is_player_targetting_char $player1 {handle} 0@
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @SKBRAIN_331
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_331
delete_object 6@

:SKBRAIN_331
if 
  $iSetPizzaPanic == 0
goto_if_false @SKBRAIN_363
gosub @SKBRAIN_391
goto @SKBRAIN_370

:SKBRAIN_363
goto @SKBRAIN_1590

:SKBRAIN_370
goto @SKBRAIN_384

:SKBRAIN_377
gosub @SKBRAIN_1552

:SKBRAIN_384
goto @SKBRAIN_204

:SKBRAIN_391
switch_start 3@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_496 {caseNum1} 1 {caseLabel1} @SKBRAIN_454 {caseNum2} 2 {caseLabel2} @SKBRAIN_468 {caseNum3} 3 {caseLabel3} @SKBRAIN_482 {caseNum4} -1 {caseLabel4} @SKBRAIN_496 {caseNum5} -1 {caseLabel5} @SKBRAIN_496 {caseNum6} -1 {caseLabel6} @SKBRAIN_496 {caseNum7} -1 {caseLabel7} @SKBRAIN_496

:SKBRAIN_454
gosub @SKBRAIN_498
goto @SKBRAIN_496

:SKBRAIN_468
gosub @SKBRAIN_841
goto @SKBRAIN_496

:SKBRAIN_482
gosub @SKBRAIN_1185
goto @SKBRAIN_496

:SKBRAIN_496
return 

:SKBRAIN_498
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_839 {caseNum1} 0 {caseLabel1} @SKBRAIN_561 {caseNum2} 1 {caseLabel2} @SKBRAIN_737 {caseNum3} -1 {caseLabel3} @SKBRAIN_839 {caseNum4} -1 {caseLabel4} @SKBRAIN_839 {caseNum5} -1 {caseLabel5} @SKBRAIN_839 {caseNum6} -1 {caseLabel6} @SKBRAIN_839 {caseNum7} -1 {caseLabel7} @SKBRAIN_839

:SKBRAIN_561
13@, 14@, 15@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 13@ {y} 14@ {z} 15@ {radius} 20.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ > -1
goto_if_false @SKBRAIN_730
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} -5.0 {yOffset} -5.0 {zOffset} -5.0
6@ = create_object #PIZZAHIGH {x} 10@ {y} 11@ {z} 12@
task_play_anim 0@ {animationName} "SHP_TRAY_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:SKBRAIN_730
goto @SKBRAIN_839

:SKBRAIN_737
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_IN"
goto_if_false @SKBRAIN_832
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_IN"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_832
4@ = 0
3@ += 1

:SKBRAIN_832
goto @SKBRAIN_839

:SKBRAIN_839
return 

:SKBRAIN_841
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1183 {caseNum1} 0 {caseLabel1} @SKBRAIN_904 {caseNum2} 1 {caseLabel2} @SKBRAIN_1044 {caseNum3} 2 {caseLabel3} @SKBRAIN_1143 {caseNum4} -1 {caseLabel4} @SKBRAIN_1183 {caseNum5} -1 {caseLabel5} @SKBRAIN_1183 {caseNum6} -1 {caseLabel6} @SKBRAIN_1183 {caseNum7} -1 {caseLabel7} @SKBRAIN_1183

:SKBRAIN_904
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1023
task_pick_up_object 0@ {object} 6@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable 0@ {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
4@ += 1
goto @SKBRAIN_1037

:SKBRAIN_1023
4@ = 0
3@ += 1

:SKBRAIN_1037
goto @SKBRAIN_1183

:SKBRAIN_1044
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_LIFT"
goto_if_false @SKBRAIN_1136
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_LIFT"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1136
4@ += 1

:SKBRAIN_1136
goto @SKBRAIN_1183

:SKBRAIN_1143
if 
  TIMERB > 2000
goto_if_false @SKBRAIN_1176
4@ = 0
3@ += 1

:SKBRAIN_1176
goto @SKBRAIN_1183

:SKBRAIN_1183
return 

:SKBRAIN_1185
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1550 {caseNum1} 0 {caseLabel1} @SKBRAIN_1248 {caseNum2} 1 {caseLabel2} @SKBRAIN_1340 {caseNum3} 2 {caseLabel3} @SKBRAIN_1397 {caseNum4} 3 {caseLabel4} @SKBRAIN_1529 {caseNum5} -1 {caseLabel5} @SKBRAIN_1550 {caseNum6} -1 {caseLabel6} @SKBRAIN_1550 {caseNum7} -1 {caseLabel7} @SKBRAIN_1550

:SKBRAIN_1248
13@, 14@, 15@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 13@ {y} 14@ {z} 15@ {radius} 20.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ == -1
goto_if_false @SKBRAIN_1333
4@ += 1

:SKBRAIN_1333
goto @SKBRAIN_1550

:SKBRAIN_1340
task_play_anim_non_interruptable 0@ {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @SKBRAIN_1550

:SKBRAIN_1397
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_RETURN"
goto_if_false @SKBRAIN_1522
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_RETURN"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1522
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1507
delete_object 6@

:SKBRAIN_1507
task_use_attractor 0@ {attractor} 1@
4@ += 1

:SKBRAIN_1522
goto @SKBRAIN_1550

:SKBRAIN_1529
4@ = 0
3@ = 1
goto @SKBRAIN_1550

:SKBRAIN_1550
return 

:SKBRAIN_1552
remove_animation "FOOD"
mark_object_as_no_longer_needed 6@
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_1586
clear_char_tasks_immediately 0@

:SKBRAIN_1586
terminate_this_script 
return 

:SKBRAIN_1590
wait 0
if and
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_1762
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_1664
gosub @SKBRAIN_1552
goto @SKBRAIN_1755

:SKBRAIN_1664
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_1755
7@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @SKBRAIN_1755
task_hands_up 0@ {time} -2
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @SKBRAIN_1755
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1755
delete_object 6@

:SKBRAIN_1755
goto @SKBRAIN_1769

:SKBRAIN_1762
gosub @SKBRAIN_1552

:SKBRAIN_1769
goto @SKBRAIN_1590
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 37 (CUSTOMER_PANIC)---------------

:FFPNC
script_name 'FFPNC'
2@ = 0
if 
  2@ == 1
goto_if_false @FFPNC_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FFPNC_60
if 
  not is_char_dead 0@
goto_if_false @FFPNC_84
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM

:FFPNC_84
wait 0
if and
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FFPNC_308
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @FFPNC_151
gosub @FFPNC_322

:FFPNC_151
if 
  not is_char_dead 0@
goto_if_false @FFPNC_294
set_lvar_int_to_lvar_int 2@ = 1@
2@ /= 2
2@ *= 2
if 
  is_int_lvar_greater_than_int_lvar 1@ > 2@
goto_if_false @FFPNC_251
3@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_244
task_duck 0@ {time} -2

:FFPNC_244
goto @FFPNC_287

:FFPNC_251
3@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_287
task_hands_up 0@ {time} -2

:FFPNC_287
goto @FFPNC_301

:FFPNC_294
gosub @FFPNC_322

:FFPNC_301
goto @FFPNC_315

:FFPNC_308
gosub @FFPNC_322

:FFPNC_315
goto @FFPNC_84

:FFPNC_322
mark_char_as_no_longer_needed 0@
mark_streamed_script_as_no_longer_needed 37
terminate_this_script 
return 
terminate_this_script 

//-------------External script 38 (BAR_STAFF)---------------

:BARSTAF
script_name 'BARSTAF'
8@ = 0
if 
  8@ == 1
goto_if_false @BARSTAF_212
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
8@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
2@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
3@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
4@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1

:BARSTAF_212
if 
  not is_char_dead 0@
goto_if_false @BARSTAF_236
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:BARSTAF_236
request_animation "BAR"

:BARSTAF_243
if 
  not has_animation_loaded "BAR"
goto_if_false @BARSTAF_279
request_animation "BAR"
wait 0
goto @BARSTAF_243

:BARSTAF_279
9@ = 1
10@ = 0
12@ = 0
if 
  0.0 >= 6@
goto_if_false @BARSTAF_331
6@ = 6.0

:BARSTAF_331
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_540
if 
  9@ == 2
goto_if_false @BARSTAF_480
if 
  not is_char_dead 8@
goto_if_false @BARSTAF_452
if or
  $fFunTemp == 1
  $iBouncerAction == 1
  $iSetBarPanic == 1
goto_if_false @BARSTAF_438
goto @BARSTAF_2200
goto @BARSTAF_445

:BARSTAF_438
gosub @BARSTAF_554

:BARSTAF_445
goto @BARSTAF_473

:BARSTAF_452
9@ = 1
10@ = 0
gosub @BARSTAF_554

:BARSTAF_473
goto @BARSTAF_533

:BARSTAF_480
if or
  $fFunTemp == 1
  $iBouncerAction == 1
  $iSetBarPanic == 1
goto_if_false @BARSTAF_526
goto @BARSTAF_2200
goto @BARSTAF_533

:BARSTAF_526
gosub @BARSTAF_554

:BARSTAF_533
goto @BARSTAF_547

:BARSTAF_540
gosub @BARSTAF_2287

:BARSTAF_547
goto @BARSTAF_331

:BARSTAF_554
switch_start 9@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_659 {caseNum1} 1 {caseLabel1} @BARSTAF_617 {caseNum2} 2 {caseLabel2} @BARSTAF_631 {caseNum3} 3 {caseLabel3} @BARSTAF_645 {caseNum4} -1 {caseLabel4} @BARSTAF_659 {caseNum5} -1 {caseLabel5} @BARSTAF_659 {caseNum6} -1 {caseLabel6} @BARSTAF_659 {caseNum7} -1 {caseLabel7} @BARSTAF_659

:BARSTAF_617
gosub @BARSTAF_661
goto @BARSTAF_659

:BARSTAF_631
gosub @BARSTAF_1390
goto @BARSTAF_659

:BARSTAF_645
gosub @BARSTAF_2085
goto @BARSTAF_659

:BARSTAF_659
return 

:BARSTAF_661
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_1388 {caseNum1} 0 {caseLabel1} @BARSTAF_724 {caseNum2} 1 {caseLabel2} @BARSTAF_767 {caseNum3} 2 {caseLabel3} @BARSTAF_974 {caseNum4} 3 {caseLabel4} @BARSTAF_1181 {caseNum5} -1 {caseLabel5} @BARSTAF_1388 {caseNum6} -1 {caseLabel6} @BARSTAF_1388 {caseNum7} -1 {caseLabel7} @BARSTAF_1388

:BARSTAF_724
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_760
10@ += 1

:BARSTAF_760
goto @BARSTAF_1388

:BARSTAF_767
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_923
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_866
8@ = -1
goto @BARSTAF_923

:BARSTAF_866
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_916
9@ += 1
10@ = 0
goto @BARSTAF_923

:BARSTAF_916
8@ = -1

:BARSTAF_923
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_967
task_use_attractor 0@ {attractor} 2@
10@ += 1

:BARSTAF_967
goto @BARSTAF_1388

:BARSTAF_974
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_1130
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_1073
8@ = -1
goto @BARSTAF_1130

:BARSTAF_1073
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1123
9@ += 1
10@ = 0
goto @BARSTAF_1130

:BARSTAF_1123
8@ = -1

:BARSTAF_1130
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1174
task_use_attractor 0@ {attractor} 3@
10@ += 1

:BARSTAF_1174
goto @BARSTAF_1388

:BARSTAF_1181
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_1337
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_1280
8@ = -1
goto @BARSTAF_1337

:BARSTAF_1280
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1330
9@ += 1
10@ = 0
goto @BARSTAF_1337

:BARSTAF_1330
8@ = -1

:BARSTAF_1337
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1381
task_use_attractor 0@ {attractor} 1@
10@ = 0

:BARSTAF_1381
goto @BARSTAF_1388

:BARSTAF_1388
return 

:BARSTAF_1390
switch_start 10@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2083 {caseNum1} 0 {caseLabel1} @BARSTAF_1518 {caseNum2} 1 {caseLabel2} @BARSTAF_1577 {caseNum3} 2 {caseLabel3} @BARSTAF_1628 {caseNum4} 3 {caseLabel4} @BARSTAF_1720 {caseNum5} 4 {caseLabel5} @BARSTAF_1771 {caseNum6} 5 {caseLabel6} @BARSTAF_1873 {caseNum7} 6 {caseLabel7} @BARSTAF_1934
switch_continued 7 {caseLabel1} @BARSTAF_1985 {caseNum2} -1 {caseLabel2} @BARSTAF_2083 {caseNum3} -1 {caseLabel3} @BARSTAF_2083 {caseNum4} -1 {caseLabel4} @BARSTAF_2083 {caseNum5} -1 {caseLabel5} @BARSTAF_2083 {caseNum6} -1 {caseLabel6} @BARSTAF_2083 {caseNum7} -1 {caseLabel7} @BARSTAF_2083 {caseNum8} -1 {caseLabel8} @BARSTAF_2083 {caseNum9} -1 {caseLabel9} @BARSTAF_2083

:BARSTAF_1518
14@, 15@, 16@ = get_offset_from_char_in_world_coords 8@ {xOffset} 0.0 {yOffset} 5@ {zOffset} 0.0
task_go_straight_to_coord 0@ {x} 14@ {y} 15@ {z} 16@ {speed} MoveState.Walk {time} -2
10@ += 1
goto @BARSTAF_2083

:BARSTAF_1577
13@ = get_script_task_status 0@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1621
task_turn_char_to_face_char 0@ {target} 8@
10@ += 1

:BARSTAF_1621
goto @BARSTAF_2083

:BARSTAF_1628
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1713
set_char_health 8@ {health} 99
task_play_anim 0@ {animationName} "BARSERVE_ORDER" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
10@ += 1

:BARSTAF_1713
goto @BARSTAF_2083

:BARSTAF_1720
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1764
task_use_attractor 0@ {attractor} 4@
10@ += 1

:BARSTAF_1764
goto @BARSTAF_2083

:BARSTAF_1771
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1866
if 
  7@ == 0
goto_if_false @BARSTAF_1859
task_play_anim 0@ {animationName} "BARSERVE_GLASS" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:BARSTAF_1859
10@ += 1

:BARSTAF_1866
goto @BARSTAF_2083

:BARSTAF_1873
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1927
task_go_straight_to_coord 0@ {x} 14@ {y} 15@ {z} 16@ {speed} MoveState.Walk {time} -2
10@ += 1

:BARSTAF_1927
goto @BARSTAF_2083

:BARSTAF_1934
13@ = get_script_task_status 0@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1978
task_turn_char_to_face_char 0@ {target} 8@
10@ += 1

:BARSTAF_1978
goto @BARSTAF_2083

:BARSTAF_1985
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2076
set_char_health 8@ {health} 99
task_play_anim 0@ {animationName} "BARSERVE_GIVE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
9@ += 1
10@ = 0

:BARSTAF_2076
goto @BARSTAF_2083

:BARSTAF_2083
return 

:BARSTAF_2085
switch_start 10@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2198 {caseNum1} 0 {caseLabel1} @BARSTAF_2148 {caseNum2} -1 {caseLabel2} @BARSTAF_2198 {caseNum3} -1 {caseLabel3} @BARSTAF_2198 {caseNum4} -1 {caseLabel4} @BARSTAF_2198 {caseNum5} -1 {caseLabel5} @BARSTAF_2198 {caseNum6} -1 {caseLabel6} @BARSTAF_2198 {caseNum7} -1 {caseLabel7} @BARSTAF_2198

:BARSTAF_2148
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2191
9@ = 1
10@ = 0

:BARSTAF_2191
goto @BARSTAF_2198

:BARSTAF_2198
return 

:BARSTAF_2200
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_2273
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BARSTAF_2266
task_hands_up 0@ {time} 60000

:BARSTAF_2266
goto @BARSTAF_2280

:BARSTAF_2273
gosub @BARSTAF_2287

:BARSTAF_2280
goto @BARSTAF_2200

:BARSTAF_2287
remove_animation "BAR"
mark_char_as_no_longer_needed 0@
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 9@
write_debug_with_int "SUBSTATESTATUS" {number} 10@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 39 (BOUNCER)---------------

:BOUNCER
script_name 'BOUNCER'
2@ = 0
if 
  2@ == 1
goto_if_false @BOUNCER_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BOUNCER_60
if 
  not has_model_loaded 346
goto_if_false @BOUNCER_88
request_model 346
goto @BOUNCER_60

:BOUNCER_88
if 
  not is_char_dead 0@
goto_if_false @BOUNCER_187
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 99999999
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.NightStick
goto_if_false @BOUNCER_148
remove_weapon_from_char 0@ {weaponType} WeaponType.NightStick

:BOUNCER_148
set_char_accuracy 0@ {accuracy} 80
$iDance_SpeechCounter = copy_shared_char_decision_maker DecisionMakerCharTemplate.Cop
clear_char_decision_maker_event_response $iDance_SpeechCounter {event} Event.Attractor
clear_char_decision_maker_event_response $iDance_SpeechCounter {event} Event.ScriptedAttractor
set_char_decision_maker 0@ {handleOrTemplate} $iDance_SpeechCounter

:BOUNCER_187
3@ = 0
4@ = 0

:BOUNCER_201
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_279
if 
  $iSetCasinoPanic == 0
goto_if_false @BOUNCER_265
gosub @BOUNCER_293
goto @BOUNCER_272

:BOUNCER_265
goto @BOUNCER_693

:BOUNCER_272
goto @BOUNCER_286

:BOUNCER_279
gosub @BOUNCER_864

:BOUNCER_286
goto @BOUNCER_201

:BOUNCER_293
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_370 {caseNum1} 0 {caseLabel1} @BOUNCER_356 {caseNum2} -1 {caseLabel2} @BOUNCER_370 {caseNum3} -1 {caseLabel3} @BOUNCER_370 {caseNum4} -1 {caseLabel4} @BOUNCER_370 {caseNum5} -1 {caseLabel5} @BOUNCER_370 {caseNum6} -1 {caseLabel6} @BOUNCER_370 {caseNum7} -1 {caseLabel7} @BOUNCER_370

:BOUNCER_356
gosub @BOUNCER_372
goto @BOUNCER_370

:BOUNCER_370
return 

:BOUNCER_372
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_691 {caseNum1} 0 {caseLabel1} @BOUNCER_435 {caseNum2} 1 {caseLabel2} @BOUNCER_498 {caseNum3} 2 {caseLabel3} @BOUNCER_658 {caseNum4} -1 {caseLabel4} @BOUNCER_691 {caseNum5} -1 {caseLabel5} @BOUNCER_691 {caseNum6} -1 {caseLabel6} @BOUNCER_691 {caseNum7} -1 {caseLabel7} @BOUNCER_691

:BOUNCER_435
2@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_491
task_wander_standard 0@
TIMERB = 0
6@ = 5000
4@ += 1

:BOUNCER_491
goto @BOUNCER_691

:BOUNCER_498
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_651
2@ = generate_random_int_in_range 1 {max} 10
if 
  2@ > 5
goto_if_false @BOUNCER_595
2@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_588
task_look_about 0@ {time} -1
6@ = 5000

:BOUNCER_588
goto @BOUNCER_637

:BOUNCER_595
2@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_637
task_wander_standard 0@
6@ = 5000

:BOUNCER_637
TIMERB = 0
4@ += 1

:BOUNCER_651
goto @BOUNCER_691

:BOUNCER_658
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_684
4@ = 1

:BOUNCER_684
goto @BOUNCER_691

:BOUNCER_691
return 

:BOUNCER_693
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_850
if 
  is_char_shooting $scplayer
goto_if_false @BOUNCER_799
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
5@ = get_script_task_status 0@ {taskId} 1588
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_792
task_kill_char_on_foot_while_ducking 0@ {target} $scplayer {flags} 1 {actionDelay} 4000 {actionChance} 60

:BOUNCER_792
goto @BOUNCER_843

:BOUNCER_799
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_843
task_kill_char_on_foot 0@ {target} $scplayer

:BOUNCER_843
goto @BOUNCER_857

:BOUNCER_850
gosub @BOUNCER_864

:BOUNCER_857
goto @BOUNCER_693

:BOUNCER_864
remove_decision_maker $iDance_SpeechCounter
mark_char_as_no_longer_needed 0@
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 40 (OTB_STAFF)---------------

:OTBSTAF
script_name 'OTBSTAF'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSTAF_92
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1

:OTBSTAF_92
request_animation "INT_SHOP"

:OTBSTAF_104
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @OTBSTAF_138
wait 0
goto @OTBSTAF_104

:OTBSTAF_138
if 
  not is_char_dead 0@
goto_if_false @OTBSTAF_162
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:OTBSTAF_162
3@ = 1
4@ = 0
6@ = 0

:OTBSTAF_183
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_256
if 
  $played_ryder1_before == 0
goto_if_false @OTBSTAF_242
gosub @OTBSTAF_270
goto @OTBSTAF_249

:OTBSTAF_242
goto @OTBSTAF_848

:OTBSTAF_249
goto @OTBSTAF_263

:OTBSTAF_256
gosub @OTBSTAF_832

:OTBSTAF_263
goto @OTBSTAF_183

:OTBSTAF_270
switch_start 3@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_361 {caseNum1} 1 {caseLabel1} @OTBSTAF_333 {caseNum2} 2 {caseLabel2} @OTBSTAF_347 {caseNum3} -1 {caseLabel3} @OTBSTAF_361 {caseNum4} -1 {caseLabel4} @OTBSTAF_361 {caseNum5} -1 {caseLabel5} @OTBSTAF_361 {caseNum6} -1 {caseLabel6} @OTBSTAF_361 {caseNum7} -1 {caseLabel7} @OTBSTAF_361

:OTBSTAF_333
gosub @OTBSTAF_363
goto @OTBSTAF_361

:OTBSTAF_347
gosub @OTBSTAF_668
goto @OTBSTAF_361

:OTBSTAF_361
return 

:OTBSTAF_363
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_666 {caseNum1} 0 {caseLabel1} @OTBSTAF_426 {caseNum2} 1 {caseLabel2} @OTBSTAF_562 {caseNum3} -1 {caseLabel3} @OTBSTAF_666 {caseNum4} -1 {caseLabel4} @OTBSTAF_666 {caseNum5} -1 {caseLabel5} @OTBSTAF_666 {caseNum6} -1 {caseLabel6} @OTBSTAF_666 {caseNum7} -1 {caseLabel7} @OTBSTAF_666

:OTBSTAF_426
9@, 10@, 11@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 9@ {y} 10@ {z} 11@ {radius} 3.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ > -1
goto_if_false @OTBSTAF_555
task_play_anim 0@ {animationName} "SHOP_CASHIER" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBSTAF_555
goto @OTBSTAF_666

:OTBSTAF_562
8@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHOP_CASHIER"
goto_if_false @OTBSTAF_659
8@ = get_char_anim_current_time 0@ {animationName} "SHOP_CASHIER"
if 
  8@ == 1.0
goto_if_false @OTBSTAF_659
4@ = 0
3@ += 1

:OTBSTAF_659
goto @OTBSTAF_666

:OTBSTAF_666
return 

:OTBSTAF_668
switch_start 4@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_830 {caseNum1} 0 {caseLabel1} @OTBSTAF_731 {caseNum2} -1 {caseLabel2} @OTBSTAF_830 {caseNum3} -1 {caseLabel3} @OTBSTAF_830 {caseNum4} -1 {caseLabel4} @OTBSTAF_830 {caseNum5} -1 {caseLabel5} @OTBSTAF_830 {caseNum6} -1 {caseLabel6} @OTBSTAF_830 {caseNum7} -1 {caseLabel7} @OTBSTAF_830

:OTBSTAF_731
9@, 10@, 11@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 9@ {y} 10@ {z} 11@ {radius} 3.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ == -1
goto_if_false @OTBSTAF_823
4@ = 0
3@ = 1

:OTBSTAF_823
goto @OTBSTAF_830

:OTBSTAF_830
return 

:OTBSTAF_832
remove_animation "INT_SHOP"
terminate_this_script 
return 

:OTBSTAF_848
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_918
6@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @OTBSTAF_911
task_hands_up 0@ {time} -2

:OTBSTAF_911
goto @OTBSTAF_925

:OTBSTAF_918
gosub @OTBSTAF_832

:OTBSTAF_925
goto @OTBSTAF_848
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 41 (PCHAIR)---------------

:PCHAIR
script_name 'PCHAIR'
2@ = 0
if 
  2@ == 1
goto_if_false @PCHAIR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PCHAIR_60
request_animation "FOOD"

:PCHAIR_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @PCHAIR_98
wait 0
goto @PCHAIR_68

:PCHAIR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @PCHAIR_154
5@ = 0
4@ = 1
goto @PCHAIR_168

:PCHAIR_154
5@ = -2
4@ = 2

:PCHAIR_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @PCHAIR_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @PCHAIR_222

:PCHAIR_215
6@ = 0

:PCHAIR_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_345
if 
  is_char_using_map_attractor 0@
goto_if_false @PCHAIR_331
if or
  $iSetPizzaPanic == 1
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PCHAIR_317
$iSetPizzaPanic = 1
goto @PCHAIR_3035
goto @PCHAIR_324

:PCHAIR_317
gosub @PCHAIR_359

:PCHAIR_324
goto @PCHAIR_338

:PCHAIR_331
gosub @PCHAIR_2959

:PCHAIR_338
goto @PCHAIR_352

:PCHAIR_345
gosub @PCHAIR_2959

:PCHAIR_352
goto @PCHAIR_222

:PCHAIR_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_492 {caseNum1} 1 {caseLabel1} @PCHAIR_422 {caseNum2} 2 {caseLabel2} @PCHAIR_436 {caseNum3} 3 {caseLabel3} @PCHAIR_450 {caseNum4} 4 {caseLabel4} @PCHAIR_464 {caseNum5} 5 {caseLabel5} @PCHAIR_478 {caseNum6} -1 {caseLabel6} @PCHAIR_492 {caseNum7} -1 {caseLabel7} @PCHAIR_492

:PCHAIR_422
gosub @PCHAIR_494
goto @PCHAIR_492

:PCHAIR_436
gosub @PCHAIR_715
goto @PCHAIR_492

:PCHAIR_450
gosub @PCHAIR_2157
goto @PCHAIR_492

:PCHAIR_464
gosub @PCHAIR_2959
goto @PCHAIR_492

:PCHAIR_478
gosub @PCHAIR_2526
goto @PCHAIR_492

:PCHAIR_492
return 

:PCHAIR_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_713 {caseNum1} 0 {caseLabel1} @PCHAIR_557 {caseNum2} 1 {caseLabel2} @PCHAIR_615 {caseNum3} -1 {caseLabel3} @PCHAIR_713 {caseNum4} -1 {caseLabel4} @PCHAIR_713 {caseNum5} -1 {caseLabel5} @PCHAIR_713 {caseNum6} -1 {caseLabel6} @PCHAIR_713 {caseNum7} -1 {caseLabel7} @PCHAIR_713

:PCHAIR_557
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @PCHAIR_713

:PCHAIR_615
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN"
goto_if_false @PCHAIR_671
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN"

:PCHAIR_671
if 
  9@ == 1.0
goto_if_false @PCHAIR_706
5@ = 0
4@ += 1

:PCHAIR_706
goto @PCHAIR_713

:PCHAIR_713
return 

:PCHAIR_715
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2155 {caseNum1} -2 {caseLabel1} @PCHAIR_778 {caseNum2} 0 {caseLabel2} @PCHAIR_1103 {caseNum3} 1 {caseLabel3} @PCHAIR_1560 {caseNum4} 2 {caseLabel4} @PCHAIR_1858 {caseNum5} 3 {caseLabel5} @PCHAIR_2061 {caseNum6} -1 {caseLabel6} @PCHAIR_2155 {caseNum7} -1 {caseLabel7} @PCHAIR_2155

:PCHAIR_778
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @PCHAIR_848
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1089

:PCHAIR_848
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_925
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @PCHAIR_941

:PCHAIR_925
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:PCHAIR_941
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @PCHAIR_1047
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1089

:PCHAIR_1047
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1089
5@ = 1
goto @PCHAIR_2155

:PCHAIR_1103
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @PCHAIR_1235
if 
  is_char_male 0@
goto_if_false @PCHAIR_1186
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1228

:PCHAIR_1186
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1228
goto @PCHAIR_1546

:PCHAIR_1235
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @PCHAIR_1305
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1546

:PCHAIR_1305
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_1382
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @PCHAIR_1398

:PCHAIR_1382
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:PCHAIR_1398
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @PCHAIR_1504
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1546

:PCHAIR_1504
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1546
5@ += 1
goto @PCHAIR_2155

:PCHAIR_1560
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.65
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_1727
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_BURG_CHAIR {state} False {target} 0@
goto @PCHAIR_1751

:PCHAIR_1727
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} False {target} 0@

:PCHAIR_1751
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @PCHAIR_1851
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:PCHAIR_1851
goto @PCHAIR_2155

:PCHAIR_1858
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PCHAIR_1910
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @PCHAIR_2155

:PCHAIR_1910
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @PCHAIR_2054
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_1991
5@ = 0
4@ += 1
goto @PCHAIR_2054

:PCHAIR_1991
if 
  $iSetPizzaPanic == 1
goto_if_false @PCHAIR_2054
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:PCHAIR_2054
goto @PCHAIR_2155

:PCHAIR_2061
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2141
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_2134
5@ = 0
4@ += 1

:PCHAIR_2134
goto @PCHAIR_2148

:PCHAIR_2141
set_char_never_targetted 0@ {state} True

:PCHAIR_2148
goto @PCHAIR_2155

:PCHAIR_2155
return 

:PCHAIR_2157
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2524 {caseNum1} 0 {caseLabel1} @PCHAIR_2220 {caseNum2} 1 {caseLabel2} @PCHAIR_2301 {caseNum3} 2 {caseLabel3} @PCHAIR_2336 {caseNum4} -1 {caseLabel4} @PCHAIR_2524 {caseNum5} -1 {caseLabel5} @PCHAIR_2524 {caseNum6} -1 {caseLabel6} @PCHAIR_2524 {caseNum7} -1 {caseLabel7} @PCHAIR_2524

:PCHAIR_2220
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @PCHAIR_2245
drop_object 0@ {state} True

:PCHAIR_2245
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2301
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2336
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_180"
goto_if_false @PCHAIR_2517
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_180"
if 
  9@ == 1.0
goto_if_false @PCHAIR_2517
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_2479
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_BURG_CHAIR {state} True {target} 0@
goto @PCHAIR_2503

:PCHAIR_2479
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} True {target} 0@

:PCHAIR_2503
5@ = 0
4@ += 1

:PCHAIR_2517
goto @PCHAIR_2524

:PCHAIR_2524
return 

:PCHAIR_2526
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2957 {caseNum1} 0 {caseLabel1} @PCHAIR_2589 {caseNum2} 1 {caseLabel2} @PCHAIR_2641 {caseNum3} 2 {caseLabel3} @PCHAIR_2797 {caseNum4} -1 {caseLabel4} @PCHAIR_2957 {caseNum5} -1 {caseLabel5} @PCHAIR_2957 {caseNum6} -1 {caseLabel6} @PCHAIR_2957 {caseNum7} -1 {caseLabel7} @PCHAIR_2957

:PCHAIR_2589
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @PCHAIR_2957

:PCHAIR_2641
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @PCHAIR_2727
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @PCHAIR_2727
5@ += 1

:PCHAIR_2727
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2790
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @PCHAIR_2959

:PCHAIR_2790
goto @PCHAIR_2957

:PCHAIR_2797
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2867
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @PCHAIR_2959
goto @PCHAIR_2950

:PCHAIR_2867
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_2936
4@ = 3
5@ = 0
gosub @PCHAIR_3035
goto @PCHAIR_2950

:PCHAIR_2936
4@ = 2
5@ = 2

:PCHAIR_2950
goto @PCHAIR_2957

:PCHAIR_2957
return 

:PCHAIR_2959
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @PCHAIR_3031
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:PCHAIR_3031
terminate_this_script 
return 

:PCHAIR_3035
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_3376
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @PCHAIR_3369
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @PCHAIR_3355 {caseNum1} 1 {caseLabel1} @PCHAIR_3146 {caseNum2} 2 {caseLabel2} @PCHAIR_3228 {caseNum3} 3 {caseLabel3} @PCHAIR_3277 {caseNum4} 4 {caseLabel4} @PCHAIR_3291 {caseNum5} 5 {caseLabel5} @PCHAIR_3341 {caseNum6} -1 {caseLabel6} @PCHAIR_3369 {caseNum7} -1 {caseLabel7} @PCHAIR_3369

:PCHAIR_3146
if 
  5@ > 1
goto_if_false @PCHAIR_3178
gosub @PCHAIR_359
goto @PCHAIR_3221

:PCHAIR_3178
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3221
task_duck 0@ {time} -2
gosub @PCHAIR_2959

:PCHAIR_3221
goto @PCHAIR_3369

:PCHAIR_3228
if 
  5@ == 2
goto_if_false @PCHAIR_3263
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:PCHAIR_3263
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3277
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3291
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3334
task_duck 0@ {time} -2
gosub @PCHAIR_2959

:PCHAIR_3334
goto @PCHAIR_3369

:PCHAIR_3341
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3355
gosub @PCHAIR_2959
goto @PCHAIR_3369

:PCHAIR_3369
goto @PCHAIR_3383

:PCHAIR_3376
gosub @PCHAIR_2959

:PCHAIR_3383
goto @PCHAIR_3035
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 42 (PCUSTOM)---------------

:PCUSTOM
script_name 'PCUSTOM'
2@ = 0
if 
  2@ == 1
goto_if_false @PCUSTOM_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PCUSTOM_60
request_animation "INT_SHOP"

:PCUSTOM_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @PCUSTOM_106
wait 0
goto @PCUSTOM_72

:PCUSTOM_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:PCUSTOM_134
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_237
if 
  is_char_using_map_attractor 0@
goto_if_false @PCUSTOM_223
if 
  $iSetPizzaPanic == 0
goto_if_false @PCUSTOM_209
gosub @PCUSTOM_251
goto @PCUSTOM_216

:PCUSTOM_209
goto @PCUSTOM_804

:PCUSTOM_216
goto @PCUSTOM_230

:PCUSTOM_223
gosub @PCUSTOM_727

:PCUSTOM_230
goto @PCUSTOM_244

:PCUSTOM_237
gosub @PCUSTOM_727

:PCUSTOM_244
goto @PCUSTOM_134

:PCUSTOM_251
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_328 {caseNum1} 1 {caseLabel1} @PCUSTOM_314 {caseNum2} -1 {caseLabel2} @PCUSTOM_328 {caseNum3} -1 {caseLabel3} @PCUSTOM_328 {caseNum4} -1 {caseLabel4} @PCUSTOM_328 {caseNum5} -1 {caseLabel5} @PCUSTOM_328 {caseNum6} -1 {caseLabel6} @PCUSTOM_328 {caseNum7} -1 {caseLabel7} @PCUSTOM_328

:PCUSTOM_314
gosub @PCUSTOM_330
goto @PCUSTOM_328

:PCUSTOM_328
return 

:PCUSTOM_330
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_725 {caseNum1} 0 {caseLabel1} @PCUSTOM_393 {caseNum2} 1 {caseLabel2} @PCUSTOM_451 {caseNum3} 2 {caseLabel3} @PCUSTOM_534 {caseNum4} 3 {caseLabel4} @PCUSTOM_711 {caseNum5} -1 {caseLabel5} @PCUSTOM_725 {caseNum6} -1 {caseLabel6} @PCUSTOM_725 {caseNum7} -1 {caseLabel7} @PCUSTOM_725

:PCUSTOM_393
5@ = 1
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
4@ += 1
goto @PCUSTOM_725

:PCUSTOM_451
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_527
task_play_anim 0@ {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:PCUSTOM_527
goto @PCUSTOM_725

:PCUSTOM_534
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_704
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} 1.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCUSTOM_640
12@ = create_object #CJ_PIZZA_2 {x} 7@ {y} 8@ {z} 9@
goto @PCUSTOM_656

:PCUSTOM_640
12@ = create_object #CJ_BURG_2 {x} 7@ {y} 8@ {z} 9@

:PCUSTOM_656
task_pick_up_object 0@ {object} 12@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
4@ += 1

:PCUSTOM_704
goto @PCUSTOM_725

:PCUSTOM_711
gosub @PCUSTOM_727
goto @PCUSTOM_725

:PCUSTOM_725
return 

:PCUSTOM_727
remove_animation "INT_SHOP"
mark_object_as_no_longer_needed 12@
if 
  not is_char_dead 0@
goto_if_false @PCUSTOM_800
clear_char_tasks_immediately 0@
task_use_closest_map_attractor 0@ {radius} 20.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCHAIR"

:PCUSTOM_800
terminate_this_script 
return 

:PCUSTOM_804
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_890
if 
  not is_char_dead 0@
goto_if_false @PCUSTOM_883
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @PCUSTOM_883
task_duck 0@ {time} -2

:PCUSTOM_883
goto @PCUSTOM_897

:PCUSTOM_890
gosub @PCUSTOM_727

:PCUSTOM_897
goto @PCUSTOM_804
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 43 (OTBWTCH)---------------

:OTBWTCH
script_name 'OTBWTCH'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBWTCH_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBWTCH_60
request_animation "OTB"

:OTBWTCH_67
if 
  not has_animation_loaded "OTB"
goto_if_false @OTBWTCH_96
wait 0
goto @OTBWTCH_67

:OTBWTCH_96
3@ = 1
4@ = 0

:OTBWTCH_110
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_221
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBWTCH_207
if 
  $played_ryder1_before == 0
goto_if_false @OTBWTCH_185
gosub @OTBWTCH_235
goto @OTBWTCH_200

:OTBWTCH_185
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBWTCH_1122

:OTBWTCH_200
goto @OTBWTCH_214

:OTBWTCH_207
gosub @OTBWTCH_1060

:OTBWTCH_214
goto @OTBWTCH_228

:OTBWTCH_221
gosub @OTBWTCH_1060

:OTBWTCH_228
goto @OTBWTCH_110

:OTBWTCH_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_312 {caseNum1} 1 {caseLabel1} @OTBWTCH_298 {caseNum2} -1 {caseLabel2} @OTBWTCH_312 {caseNum3} -1 {caseLabel3} @OTBWTCH_312 {caseNum4} -1 {caseLabel4} @OTBWTCH_312 {caseNum5} -1 {caseLabel5} @OTBWTCH_312 {caseNum6} -1 {caseLabel6} @OTBWTCH_312 {caseNum7} -1 {caseLabel7} @OTBWTCH_312

:OTBWTCH_298
gosub @OTBWTCH_314
goto @OTBWTCH_312

:OTBWTCH_312
return 

:OTBWTCH_314
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_1058 {caseNum1} 0 {caseLabel1} @OTBWTCH_377 {caseNum2} 1 {caseLabel2} @OTBWTCH_429 {caseNum3} 2 {caseLabel3} @OTBWTCH_524 {caseNum4} 3 {caseLabel4} @OTBWTCH_682 {caseNum5} 4 {caseLabel5} @OTBWTCH_777 {caseNum6} 5 {caseLabel6} @OTBWTCH_933 {caseNum7} 6 {caseLabel7} @OTBWTCH_1015

:OTBWTCH_377
task_play_anim 0@ {animationName} "WTCHRACE_IN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @OTBWTCH_1058

:OTBWTCH_429
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_517
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBWTCH_517
goto @OTBWTCH_1058

:OTBWTCH_524
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_675
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBWTCH_627
task_play_anim 0@ {animationName} "WTCHRACE_CMON" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBWTCH_668

:OTBWTCH_627
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:OTBWTCH_668
4@ += 1

:OTBWTCH_675
goto @OTBWTCH_1058

:OTBWTCH_682
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_770
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBWTCH_770
goto @OTBWTCH_1058

:OTBWTCH_777
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_926
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBWTCH_879
task_play_anim 0@ {animationName} "WTCHRACE_WIN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBWTCH_919

:OTBWTCH_879
task_play_anim 0@ {animationName} "WTCHRACE_LOSE" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:OTBWTCH_919
4@ += 1

:OTBWTCH_926
goto @OTBWTCH_1058

:OTBWTCH_933
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1008
task_play_anim 0@ {animationName} "WTCHRACE_OUT" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBWTCH_1008
goto @OTBWTCH_1058

:OTBWTCH_1015
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1051
gosub @OTBWTCH_1060

:OTBWTCH_1051
goto @OTBWTCH_1058

:OTBWTCH_1058
return 

:OTBWTCH_1060
remove_animation "OTB"
if 
  not is_char_dead 0@
goto_if_false @OTBWTCH_1118
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "OTBSLP"

:OTBWTCH_1118
terminate_this_script 
return 

:OTBWTCH_1122
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_1192
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBWTCH_1185
task_duck 0@ {time} -2

:OTBWTCH_1185
goto @OTBWTCH_1199

:OTBWTCH_1192
gosub @OTBWTCH_1060

:OTBWTCH_1199
goto @OTBWTCH_1122
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 44 (OTBSLP)---------------

:OTBSLP
script_name 'OTBSLP'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSLP_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBSLP_60
request_animation "OTB"

:OTBSLP_67
if 
  not has_animation_loaded "OTB"
goto_if_false @OTBSLP_96
wait 0
goto @OTBSLP_67

:OTBSLP_96
3@ = 1
4@ = 0

:OTBSLP_110
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_221
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBSLP_207
if 
  $played_ryder1_before == 0
goto_if_false @OTBSLP_185
gosub @OTBSLP_235
goto @OTBSLP_200

:OTBSLP_185
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBSLP_902

:OTBSLP_200
goto @OTBSLP_214

:OTBSLP_207
gosub @OTBSLP_891

:OTBSLP_214
goto @OTBSLP_228

:OTBSLP_221
gosub @OTBSLP_891

:OTBSLP_228
goto @OTBSLP_110

:OTBSLP_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_312 {caseNum1} 1 {caseLabel1} @OTBSLP_298 {caseNum2} -1 {caseLabel2} @OTBSLP_312 {caseNum3} -1 {caseLabel3} @OTBSLP_312 {caseNum4} -1 {caseLabel4} @OTBSLP_312 {caseNum5} -1 {caseLabel5} @OTBSLP_312 {caseNum6} -1 {caseLabel6} @OTBSLP_312 {caseNum7} -1 {caseLabel7} @OTBSLP_312

:OTBSLP_298
gosub @OTBSLP_314
goto @OTBSLP_312

:OTBSLP_312
return 

:OTBSLP_314
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_889 {caseNum1} 0 {caseLabel1} @OTBSLP_377 {caseNum2} 1 {caseLabel2} @OTBSLP_427 {caseNum3} 2 {caseLabel3} @OTBSLP_520 {caseNum4} 3 {caseLabel4} @OTBSLP_673 {caseNum5} 4 {caseLabel5} @OTBSLP_766 {caseNum6} 5 {caseLabel6} @OTBSLP_846 {caseNum7} -1 {caseLabel7} @OTBSLP_889

:OTBSLP_377
task_play_anim 0@ {animationName} "BETSLP_IN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @OTBSLP_889

:OTBSLP_427
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_513
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "BETSLP_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBSLP_513
goto @OTBSLP_889

:OTBSLP_520
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_666
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBSLP_622
task_play_anim 0@ {animationName} "BETSLP_LKABT" {animationFile} "OTB" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBSLP_659

:OTBSLP_622
task_play_anim 0@ {animationName} "BETSLP_TNK" {animationFile} "OTB" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:OTBSLP_659
4@ += 1

:OTBSLP_666
goto @OTBSLP_889

:OTBSLP_673
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_759
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "BETSLP_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBSLP_759
goto @OTBSLP_889

:OTBSLP_766
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_839
task_play_anim 0@ {animationName} "BETSLP_OUT" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBSLP_839
goto @OTBSLP_889

:OTBSLP_846
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_882
gosub @OTBSLP_891

:OTBSLP_882
goto @OTBSLP_889

:OTBSLP_889
return 

:OTBSLP_891
remove_animation "OTB"
terminate_this_script 
return 

:OTBSLP_902
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_972
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBSLP_965
task_duck 0@ {time} -2

:OTBSLP_965
goto @OTBSLP_979

:OTBSLP_972
gosub @OTBSLP_891

:OTBSLP_979
goto @OTBSLP_902
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 45 (OTBTILL)---------------

:OTBTILL
script_name 'OTBTILL'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBTILL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBTILL_60
request_animation "INT_SHOP"

:OTBTILL_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @OTBTILL_106
wait 0
goto @OTBTILL_72

:OTBTILL_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:OTBTILL_134
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_245
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBTILL_231
if 
  $played_ryder1_before == 0
goto_if_false @OTBTILL_209
gosub @OTBTILL_259
goto @OTBTILL_224

:OTBTILL_209
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBTILL_655

:OTBTILL_224
goto @OTBTILL_238

:OTBTILL_231
gosub @OTBTILL_587

:OTBTILL_238
goto @OTBTILL_252

:OTBTILL_245
gosub @OTBTILL_587

:OTBTILL_252
goto @OTBTILL_134

:OTBTILL_259
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_336 {caseNum1} 1 {caseLabel1} @OTBTILL_322 {caseNum2} -1 {caseLabel2} @OTBTILL_336 {caseNum3} -1 {caseLabel3} @OTBTILL_336 {caseNum4} -1 {caseLabel4} @OTBTILL_336 {caseNum5} -1 {caseLabel5} @OTBTILL_336 {caseNum6} -1 {caseLabel6} @OTBTILL_336 {caseNum7} -1 {caseLabel7} @OTBTILL_336

:OTBTILL_322
gosub @OTBTILL_338
goto @OTBTILL_336

:OTBTILL_336
return 

:OTBTILL_338
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_585 {caseNum1} 0 {caseLabel1} @OTBTILL_401 {caseNum2} 1 {caseLabel2} @OTBTILL_459 {caseNum3} 2 {caseLabel3} @OTBTILL_542 {caseNum4} -1 {caseLabel4} @OTBTILL_585 {caseNum5} -1 {caseLabel5} @OTBTILL_585 {caseNum6} -1 {caseLabel6} @OTBTILL_585 {caseNum7} -1 {caseLabel7} @OTBTILL_585

:OTBTILL_401
5@ = 1
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
4@ += 1
goto @OTBTILL_585

:OTBTILL_459
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_535
task_play_anim 0@ {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:OTBTILL_535
goto @OTBTILL_585

:OTBTILL_542
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_578
gosub @OTBTILL_587

:OTBTILL_578
goto @OTBTILL_585

:OTBTILL_585
return 

:OTBTILL_587
remove_animation "INT_SHOP"
if 
  not is_char_dead 0@
goto_if_false @OTBTILL_651
task_use_closest_map_attractor 0@ {radius} 50.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "OTBWTCH"

:OTBTILL_651
terminate_this_script 
return 

:OTBTILL_655
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_725
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @OTBTILL_718
task_duck 0@ {time} -2

:OTBTILL_718
goto @OTBTILL_732

:OTBTILL_725
gosub @OTBTILL_587

:OTBTILL_732
goto @OTBTILL_655
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 46 (FBOOTHR)---------------

:FBOOTHR
script_name 'FBOOTHR'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FBOOTHR_60
request_animation "FOOD"

:FBOOTHR_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @FBOOTHR_98
wait 0
goto @FBOOTHR_68

:FBOOTHR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHR_154
5@ = 0
4@ = 1
goto @FBOOTHR_168

:FBOOTHR_154
5@ = -2
4@ = 2

:FBOOTHR_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @FBOOTHR_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @FBOOTHR_222

:FBOOTHR_215
6@ = 0

:FBOOTHR_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_356
if 
  is_char_using_map_attractor 0@
goto_if_false @FBOOTHR_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHR_302
gosub @FBOOTHR_370
goto @FBOOTHR_335

:FBOOTHR_302
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHR_328
$iSetPizzaPanic = 1

:FBOOTHR_328
goto @FBOOTHR_2971

:FBOOTHR_335
goto @FBOOTHR_349

:FBOOTHR_342
gosub @FBOOTHR_2895

:FBOOTHR_349
goto @FBOOTHR_363

:FBOOTHR_356
gosub @FBOOTHR_2895

:FBOOTHR_363
goto @FBOOTHR_222

:FBOOTHR_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_503 {caseNum1} 1 {caseLabel1} @FBOOTHR_433 {caseNum2} 2 {caseLabel2} @FBOOTHR_447 {caseNum3} 3 {caseLabel3} @FBOOTHR_461 {caseNum4} 4 {caseLabel4} @FBOOTHR_475 {caseNum5} 5 {caseLabel5} @FBOOTHR_489 {caseNum6} -1 {caseLabel6} @FBOOTHR_503 {caseNum7} -1 {caseLabel7} @FBOOTHR_503

:FBOOTHR_433
gosub @FBOOTHR_505
goto @FBOOTHR_503

:FBOOTHR_447
gosub @FBOOTHR_732
goto @FBOOTHR_503

:FBOOTHR_461
gosub @FBOOTHR_2118
goto @FBOOTHR_503

:FBOOTHR_475
gosub @FBOOTHR_2895
goto @FBOOTHR_503

:FBOOTHR_489
gosub @FBOOTHR_2455
goto @FBOOTHR_503

:FBOOTHR_503
return 

:FBOOTHR_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_730 {caseNum1} 0 {caseLabel1} @FBOOTHR_568 {caseNum2} 1 {caseLabel2} @FBOOTHR_628 {caseNum3} -1 {caseLabel3} @FBOOTHR_730 {caseNum4} -1 {caseLabel4} @FBOOTHR_730 {caseNum5} -1 {caseLabel5} @FBOOTHR_730 {caseNum6} -1 {caseLabel6} @FBOOTHR_730 {caseNum7} -1 {caseLabel7} @FBOOTHR_730

:FBOOTHR_568
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN_R" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @FBOOTHR_730

:FBOOTHR_628
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN_R"
goto_if_false @FBOOTHR_688
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN_R"

:FBOOTHR_688
if 
  9@ == 1.0
goto_if_false @FBOOTHR_723
5@ = 0
4@ += 1

:FBOOTHR_723
goto @FBOOTHR_730

:FBOOTHR_730
return 

:FBOOTHR_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2116 {caseNum1} -2 {caseLabel1} @FBOOTHR_795 {caseNum2} 0 {caseLabel2} @FBOOTHR_1120 {caseNum3} 1 {caseLabel3} @FBOOTHR_1577 {caseNum4} 2 {caseLabel4} @FBOOTHR_1819 {caseNum5} 3 {caseLabel5} @FBOOTHR_2022 {caseNum6} -1 {caseLabel6} @FBOOTHR_2116 {caseNum7} -1 {caseLabel7} @FBOOTHR_2116

:FBOOTHR_795
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHR_865
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1106

:FBOOTHR_865
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_942
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHR_958

:FBOOTHR_942
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHR_958
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1106

:FBOOTHR_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1106
5@ = 1
goto @FBOOTHR_2116

:FBOOTHR_1120
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHR_1252
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1245

:FBOOTHR_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1245
goto @FBOOTHR_1563

:FBOOTHR_1252
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHR_1322
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1563

:FBOOTHR_1322
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_1399
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHR_1415

:FBOOTHR_1399
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHR_1415
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1563

:FBOOTHR_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1563
5@ += 1
goto @FBOOTHR_2116

:FBOOTHR_1577
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.1 {yOffset} 0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} 1.0 {yOffset} -0.5 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} -0.65
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @FBOOTHR_1812
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False {target} 0@
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:FBOOTHR_1812
goto @FBOOTHR_2116

:FBOOTHR_1819
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHR_1871
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHR_2116

:FBOOTHR_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHR_2015
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_1952
5@ = 0
4@ += 1
goto @FBOOTHR_2015

:FBOOTHR_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHR_2015
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:FBOOTHR_2015
goto @FBOOTHR_2116

:FBOOTHR_2022
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2102
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_2095
5@ = 0
4@ += 1

:FBOOTHR_2095
goto @FBOOTHR_2109

:FBOOTHR_2102
set_char_never_targetted 0@ {state} True

:FBOOTHR_2109
goto @FBOOTHR_2116

:FBOOTHR_2116
return 

:FBOOTHR_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2453 {caseNum1} 0 {caseLabel1} @FBOOTHR_2181 {caseNum2} 1 {caseLabel2} @FBOOTHR_2264 {caseNum3} 2 {caseLabel3} @FBOOTHR_2299 {caseNum4} -1 {caseLabel4} @FBOOTHR_2453 {caseNum5} -1 {caseLabel5} @FBOOTHR_2453 {caseNum6} -1 {caseLabel6} @FBOOTHR_2453 {caseNum7} -1 {caseLabel7} @FBOOTHR_2453

:FBOOTHR_2181
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHR_2206
drop_object 0@ {state} True

:FBOOTHR_2206
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_R_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2264
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2299
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_R_180"
goto_if_false @FBOOTHR_2446
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_R_180"
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2446
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR3 {state} True
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False
5@ = 0
4@ += 1

:FBOOTHR_2446
goto @FBOOTHR_2453

:FBOOTHR_2453
return 

:FBOOTHR_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2893 {caseNum1} 0 {caseLabel1} @FBOOTHR_2518 {caseNum2} 1 {caseLabel2} @FBOOTHR_2570 {caseNum3} 2 {caseLabel3} @FBOOTHR_2726 {caseNum4} -1 {caseLabel4} @FBOOTHR_2893 {caseNum5} -1 {caseLabel5} @FBOOTHR_2893 {caseNum6} -1 {caseLabel6} @FBOOTHR_2893 {caseNum7} -1 {caseLabel7} @FBOOTHR_2893

:FBOOTHR_2518
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @FBOOTHR_2893

:FBOOTHR_2570
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @FBOOTHR_2656
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2656
5@ += 1

:FBOOTHR_2656
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2719
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHR_2895

:FBOOTHR_2719
goto @FBOOTHR_2893

:FBOOTHR_2726
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2796
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHR_2895
goto @FBOOTHR_2879

:FBOOTHR_2796
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_2865
4@ = 3
5@ = 0
gosub @FBOOTHR_2971
goto @FBOOTHR_2879

:FBOOTHR_2865
4@ = 2
5@ = 2

:FBOOTHR_2879
$iSetPizzaPanic = 1
goto @FBOOTHR_2893

:FBOOTHR_2893
return 

:FBOOTHR_2895
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @FBOOTHR_2967
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:FBOOTHR_2967
terminate_this_script 
return 

:FBOOTHR_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_3312
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @FBOOTHR_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHR_3291 {caseNum1} 1 {caseLabel1} @FBOOTHR_3082 {caseNum2} 2 {caseLabel2} @FBOOTHR_3164 {caseNum3} 3 {caseLabel3} @FBOOTHR_3213 {caseNum4} 4 {caseLabel4} @FBOOTHR_3227 {caseNum5} 5 {caseLabel5} @FBOOTHR_3277 {caseNum6} -1 {caseLabel6} @FBOOTHR_3305 {caseNum7} -1 {caseLabel7} @FBOOTHR_3305

:FBOOTHR_3082
if 
  5@ > 1
goto_if_false @FBOOTHR_3114
gosub @FBOOTHR_370
goto @FBOOTHR_3157

:FBOOTHR_3114
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3157
task_duck 0@ {time} -2
gosub @FBOOTHR_2895

:FBOOTHR_3157
goto @FBOOTHR_3305

:FBOOTHR_3164
if 
  5@ == 2
goto_if_false @FBOOTHR_3199
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:FBOOTHR_3199
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3213
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3227
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3270
task_duck 0@ {time} -2
gosub @FBOOTHR_2895

:FBOOTHR_3270
goto @FBOOTHR_3305

:FBOOTHR_3277
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3291
gosub @FBOOTHR_2895
goto @FBOOTHR_3305

:FBOOTHR_3305
goto @FBOOTHR_3319

:FBOOTHR_3312
gosub @FBOOTHR_2895

:FBOOTHR_3319
goto @FBOOTHR_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 47 (FBOOTHL)---------------

:FBOOTHL
script_name 'FBOOTHL'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FBOOTHL_60
request_animation "FOOD"

:FBOOTHL_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @FBOOTHL_98
wait 0
goto @FBOOTHL_68

:FBOOTHL_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHL_154
5@ = 0
4@ = 1
goto @FBOOTHL_168

:FBOOTHL_154
5@ = -2
4@ = 2

:FBOOTHL_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @FBOOTHL_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @FBOOTHL_222

:FBOOTHL_215
6@ = 0

:FBOOTHL_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_356
if 
  is_char_using_map_attractor 0@
goto_if_false @FBOOTHL_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHL_302
gosub @FBOOTHL_370
goto @FBOOTHL_335

:FBOOTHL_302
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHL_328
$iSetPizzaPanic = 1

:FBOOTHL_328
goto @FBOOTHL_2971

:FBOOTHL_335
goto @FBOOTHL_349

:FBOOTHL_342
gosub @FBOOTHL_2895

:FBOOTHL_349
goto @FBOOTHL_363

:FBOOTHL_356
gosub @FBOOTHL_2895

:FBOOTHL_363
goto @FBOOTHL_222

:FBOOTHL_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_503 {caseNum1} 1 {caseLabel1} @FBOOTHL_433 {caseNum2} 2 {caseLabel2} @FBOOTHL_447 {caseNum3} 3 {caseLabel3} @FBOOTHL_461 {caseNum4} 4 {caseLabel4} @FBOOTHL_475 {caseNum5} 5 {caseLabel5} @FBOOTHL_489 {caseNum6} -1 {caseLabel6} @FBOOTHL_503 {caseNum7} -1 {caseLabel7} @FBOOTHL_503

:FBOOTHL_433
gosub @FBOOTHL_505
goto @FBOOTHL_503

:FBOOTHL_447
gosub @FBOOTHL_732
goto @FBOOTHL_503

:FBOOTHL_461
gosub @FBOOTHL_2118
goto @FBOOTHL_503

:FBOOTHL_475
gosub @FBOOTHL_2895
goto @FBOOTHL_503

:FBOOTHL_489
gosub @FBOOTHL_2455
goto @FBOOTHL_503

:FBOOTHL_503
return 

:FBOOTHL_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_730 {caseNum1} 0 {caseLabel1} @FBOOTHL_568 {caseNum2} 1 {caseLabel2} @FBOOTHL_628 {caseNum3} -1 {caseLabel3} @FBOOTHL_730 {caseNum4} -1 {caseLabel4} @FBOOTHL_730 {caseNum5} -1 {caseLabel5} @FBOOTHL_730 {caseNum6} -1 {caseLabel6} @FBOOTHL_730 {caseNum7} -1 {caseLabel7} @FBOOTHL_730

:FBOOTHL_568
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN_L" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @FBOOTHL_730

:FBOOTHL_628
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN_L"
goto_if_false @FBOOTHL_688
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN_L"

:FBOOTHL_688
if 
  9@ == 1.0
goto_if_false @FBOOTHL_723
5@ = 0
4@ += 1

:FBOOTHL_723
goto @FBOOTHL_730

:FBOOTHL_730
return 

:FBOOTHL_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2116 {caseNum1} -2 {caseLabel1} @FBOOTHL_795 {caseNum2} 0 {caseLabel2} @FBOOTHL_1120 {caseNum3} 1 {caseLabel3} @FBOOTHL_1577 {caseNum4} 2 {caseLabel4} @FBOOTHL_1819 {caseNum5} 3 {caseLabel5} @FBOOTHL_2022 {caseNum6} -1 {caseLabel6} @FBOOTHL_2116 {caseNum7} -1 {caseLabel7} @FBOOTHL_2116

:FBOOTHL_795
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHL_865
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1106

:FBOOTHL_865
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_942
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHL_958

:FBOOTHL_942
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHL_958
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1106

:FBOOTHL_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1106
5@ = 1
goto @FBOOTHL_2116

:FBOOTHL_1120
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHL_1252
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1245

:FBOOTHL_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1245
goto @FBOOTHL_1563

:FBOOTHL_1252
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHL_1322
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1563

:FBOOTHL_1322
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_1399
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHL_1415

:FBOOTHL_1399
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHL_1415
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1563

:FBOOTHL_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1563
5@ += 1
goto @FBOOTHL_2116

:FBOOTHL_1577
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.1 {yOffset} 0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -1.0 {yOffset} -0.5 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} -0.65
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @FBOOTHL_1812
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False {target} 0@
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:FBOOTHL_1812
goto @FBOOTHL_2116

:FBOOTHL_1819
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHL_1871
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHL_2116

:FBOOTHL_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHL_2015
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_1952
5@ = 0
4@ += 1
goto @FBOOTHL_2015

:FBOOTHL_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHL_2015
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:FBOOTHL_2015
goto @FBOOTHL_2116

:FBOOTHL_2022
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2102
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_2095
5@ = 0
4@ += 1

:FBOOTHL_2095
goto @FBOOTHL_2109

:FBOOTHL_2102
set_char_never_targetted 0@ {state} True

:FBOOTHL_2109
goto @FBOOTHL_2116

:FBOOTHL_2116
return 

:FBOOTHL_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2453 {caseNum1} 0 {caseLabel1} @FBOOTHL_2181 {caseNum2} 1 {caseLabel2} @FBOOTHL_2264 {caseNum3} 2 {caseLabel3} @FBOOTHL_2299 {caseNum4} -1 {caseLabel4} @FBOOTHL_2453 {caseNum5} -1 {caseLabel5} @FBOOTHL_2453 {caseNum6} -1 {caseLabel6} @FBOOTHL_2453 {caseNum7} -1 {caseLabel7} @FBOOTHL_2453

:FBOOTHL_2181
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHL_2206
drop_object 0@ {state} True

:FBOOTHL_2206
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_L_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2264
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2299
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_L_180"
goto_if_false @FBOOTHL_2446
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_L_180"
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2446
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR3 {state} True
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False
5@ = 0
4@ += 1

:FBOOTHL_2446
goto @FBOOTHL_2453

:FBOOTHL_2453
return 

:FBOOTHL_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2893 {caseNum1} 0 {caseLabel1} @FBOOTHL_2518 {caseNum2} 1 {caseLabel2} @FBOOTHL_2570 {caseNum3} 2 {caseLabel3} @FBOOTHL_2726 {caseNum4} -1 {caseLabel4} @FBOOTHL_2893 {caseNum5} -1 {caseLabel5} @FBOOTHL_2893 {caseNum6} -1 {caseLabel6} @FBOOTHL_2893 {caseNum7} -1 {caseLabel7} @FBOOTHL_2893

:FBOOTHL_2518
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @FBOOTHL_2893

:FBOOTHL_2570
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @FBOOTHL_2656
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2656
5@ += 1

:FBOOTHL_2656
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2719
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHL_2895

:FBOOTHL_2719
goto @FBOOTHL_2893

:FBOOTHL_2726
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2796
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHL_2895
goto @FBOOTHL_2879

:FBOOTHL_2796
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_2865
4@ = 3
5@ = 0
gosub @FBOOTHL_2971
goto @FBOOTHL_2879

:FBOOTHL_2865
4@ = 2
5@ = 2

:FBOOTHL_2879
$iSetPizzaPanic = 1
goto @FBOOTHL_2893

:FBOOTHL_2893
return 

:FBOOTHL_2895
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @FBOOTHL_2967
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:FBOOTHL_2967
terminate_this_script 
return 

:FBOOTHL_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_3312
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @FBOOTHL_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHL_3291 {caseNum1} 1 {caseLabel1} @FBOOTHL_3082 {caseNum2} 2 {caseLabel2} @FBOOTHL_3164 {caseNum3} 3 {caseLabel3} @FBOOTHL_3213 {caseNum4} 4 {caseLabel4} @FBOOTHL_3227 {caseNum5} 5 {caseLabel5} @FBOOTHL_3277 {caseNum6} -1 {caseLabel6} @FBOOTHL_3305 {caseNum7} -1 {caseLabel7} @FBOOTHL_3305

:FBOOTHL_3082
if 
  5@ > 1
goto_if_false @FBOOTHL_3114
gosub @FBOOTHL_370
goto @FBOOTHL_3157

:FBOOTHL_3114
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3157
task_duck 0@ {time} -2
gosub @FBOOTHL_2895

:FBOOTHL_3157
goto @FBOOTHL_3305

:FBOOTHL_3164
if 
  5@ == 2
goto_if_false @FBOOTHL_3199
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:FBOOTHL_3199
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3213
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3227
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3270
task_duck 0@ {time} -2
gosub @FBOOTHL_2895

:FBOOTHL_3270
goto @FBOOTHL_3305

:FBOOTHL_3277
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3291
gosub @FBOOTHL_2895
goto @FBOOTHL_3305

:FBOOTHL_3305
goto @FBOOTHL_3319

:FBOOTHL_3312
gosub @FBOOTHL_2895

:FBOOTHL_3319
goto @FBOOTHL_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 48 (BARGUY)---------------

:BARGUY
script_name 'BARGUY'
2@ = 0
if 
  2@ == 1
goto_if_false @BARGUY_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BARGUY_60
request_animation "BAR"

:BARGUY_67
if 
  not has_animation_loaded "BAR"
goto_if_false @BARGUY_96
wait 0
goto @BARGUY_67

:BARGUY_96
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:BARGUY_124
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_272
if 
  is_char_using_map_attractor 0@
goto_if_false @BARGUY_258
if 
  $fFunTemp == 0
goto_if_false @BARGUY_244
if 
  not has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @BARGUY_223
gosub @BARGUY_286
goto @BARGUY_237

:BARGUY_223
$fFunTemp = 1
goto @BARGUY_1067

:BARGUY_237
goto @BARGUY_251

:BARGUY_244
goto @BARGUY_1067

:BARGUY_251
goto @BARGUY_265

:BARGUY_258
gosub @BARGUY_1035

:BARGUY_265
goto @BARGUY_279

:BARGUY_272
gosub @BARGUY_1035

:BARGUY_279
goto @BARGUY_124

:BARGUY_286
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARGUY_363 {caseNum1} 1 {caseLabel1} @BARGUY_349 {caseNum2} -1 {caseLabel2} @BARGUY_363 {caseNum3} -1 {caseLabel3} @BARGUY_363 {caseNum4} -1 {caseLabel4} @BARGUY_363 {caseNum5} -1 {caseLabel5} @BARGUY_363 {caseNum6} -1 {caseLabel6} @BARGUY_363 {caseNum7} -1 {caseLabel7} @BARGUY_363

:BARGUY_349
gosub @BARGUY_365
goto @BARGUY_363

:BARGUY_363
return 

:BARGUY_365
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BARGUY_1033 {caseNum1} 0 {caseLabel1} @BARGUY_428 {caseNum2} 1 {caseLabel2} @BARGUY_488 {caseNum3} 2 {caseLabel3} @BARGUY_577 {caseNum4} 3 {caseLabel4} @BARGUY_674 {caseNum5} 4 {caseLabel5} @BARGUY_754 {caseNum6} 5 {caseLabel6} @BARGUY_826 {caseNum7} 6 {caseLabel7} @BARGUY_947

:BARGUY_428
10@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_481
task_look_about 0@ {time} -2
10@ = set_char_say_context 0@ {phrase} SpeechId.BarChat
4@ += 1

:BARGUY_481
goto @BARGUY_1033

:BARGUY_488
10@ = get_char_health 0@
if 
  10@ == 99
goto_if_false @BARGUY_570
set_char_health 0@ {health} 100
task_play_anim 0@ {animationName} "BARCUSTOM_ORDER" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:BARGUY_570
goto @BARGUY_1033

:BARGUY_577
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_667
task_play_anim 0@ {animationName} "BARCUSTOM_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 600000
10@ = set_char_say_context 0@ {phrase} SpeechId.BarChat
4@ += 1

:BARGUY_667
goto @BARGUY_1033

:BARGUY_674
10@ = get_char_health 0@
if 
  10@ == 99
goto_if_false @BARGUY_747
task_play_anim 0@ {animationName} "BARCUSTOM_GET" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:BARGUY_747
goto @BARGUY_1033

:BARGUY_754
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_819
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} 1.0
4@ += 1

:BARGUY_819
goto @BARGUY_1033

:BARGUY_826
if 
  is_char_male 0@
goto_if_false @BARGUY_891
task_play_anim 0@ {animationName} "DNK_STNDM_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 15000
goto @BARGUY_933

:BARGUY_891
task_play_anim 0@ {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 15000

:BARGUY_933
4@ += 1
goto @BARGUY_1033

:BARGUY_947
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_1026
set_char_health 0@ {health} 100
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BARGUY_1019
4@ = 0
goto @BARGUY_1026

:BARGUY_1019
gosub @BARGUY_1035

:BARGUY_1026
goto @BARGUY_1033

:BARGUY_1033
return 

:BARGUY_1035
remove_animation "BAR"
if 
  not is_char_dead 0@
goto_if_false @BARGUY_1063
clear_char_tasks_immediately 0@

:BARGUY_1063
terminate_this_script 
return 

:BARGUY_1067
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_1137
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @BARGUY_1130
task_duck 0@ {time} -2

:BARGUY_1130
goto @BARGUY_1144

:BARGUY_1137
gosub @BARGUY_1035

:BARGUY_1144
goto @BARGUY_1067
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 49 (PEDROUL)---------------

:PEDROUL
script_name 'PEDROUL'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDROUL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDROUL_60
request_animation "CASINO"

:PEDROUL_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDROUL_102
wait 0
goto @PEDROUL_70

:PEDROUL_102
3@ = 1
4@ = 0

:PEDROUL_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDROUL_213
if 
  $fFunTemp == 0
goto_if_false @PEDROUL_191
gosub @PEDROUL_241
goto @PEDROUL_206

:PEDROUL_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDROUL_998

:PEDROUL_206
goto @PEDROUL_220

:PEDROUL_213
gosub @PEDROUL_984

:PEDROUL_220
goto @PEDROUL_234

:PEDROUL_227
gosub @PEDROUL_984

:PEDROUL_234
goto @PEDROUL_116

:PEDROUL_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_318 {caseNum1} 1 {caseLabel1} @PEDROUL_304 {caseNum2} -1 {caseLabel2} @PEDROUL_318 {caseNum3} -1 {caseLabel3} @PEDROUL_318 {caseNum4} -1 {caseLabel4} @PEDROUL_318 {caseNum5} -1 {caseLabel5} @PEDROUL_318 {caseNum6} -1 {caseLabel6} @PEDROUL_318 {caseNum7} -1 {caseLabel7} @PEDROUL_318

:PEDROUL_304
gosub @PEDROUL_320
goto @PEDROUL_318

:PEDROUL_318
return 

:PEDROUL_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_982 {caseNum1} 0 {caseLabel1} @PEDROUL_383 {caseNum2} 1 {caseLabel2} @PEDROUL_438 {caseNum3} 2 {caseLabel3} @PEDROUL_533 {caseNum4} 3 {caseLabel4} @PEDROUL_631 {caseNum5} 4 {caseLabel5} @PEDROUL_813 {caseNum6} 5 {caseLabel6} @PEDROUL_939 {caseNum7} -1 {caseLabel7} @PEDROUL_982

:PEDROUL_383
task_play_anim 0@ {animationName} "ROULETTE_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @PEDROUL_982

:PEDROUL_438
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_526
task_play_anim 0@ {animationName} "ROULETTE_BET" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambRoulChat
4@ += 1

:PEDROUL_526
goto @PEDROUL_982

:PEDROUL_533
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_624
2@ = generate_random_int_in_range 8000 {max} 15000
task_play_anim 0@ {animationName} "ROULETTE_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDROUL_624
goto @PEDROUL_982

:PEDROUL_631
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_806
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDROUL_746
task_play_anim 0@ {animationName} "ROULETTE_WIN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambCasinoWin
goto @PEDROUL_799

:PEDROUL_746
task_play_anim 0@ {animationName} "ROULETTE_LOSE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambCasinoLose

:PEDROUL_799
4@ += 1

:PEDROUL_806
goto @PEDROUL_982

:PEDROUL_813
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_932
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDROUL_883
4@ = 1
goto @PEDROUL_932

:PEDROUL_883
task_play_anim 0@ {animationName} "ROULETTE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDROUL_932
goto @PEDROUL_982

:PEDROUL_939
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_975
gosub @PEDROUL_984

:PEDROUL_975
goto @PEDROUL_982

:PEDROUL_982
return 

:PEDROUL_984
remove_animation "CASINO"
terminate_this_script 
return 

:PEDROUL_998
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_1068
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDROUL_1061
task_duck 0@ {time} -2

:PEDROUL_1061
goto @PEDROUL_1075

:PEDROUL_1068
gosub @PEDROUL_984

:PEDROUL_1075
goto @PEDROUL_998
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 50 (PEDCARD)---------------

:PEDCARD
script_name 'PEDCARD'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDCARD_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDCARD_60
request_animation "CASINO"

:PEDCARD_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDCARD_102
wait 0
goto @PEDCARD_70

:PEDCARD_102
3@ = 1
4@ = 0

:PEDCARD_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDCARD_213
if 
  $fFunTemp == 0
goto_if_false @PEDCARD_191
gosub @PEDCARD_241
goto @PEDCARD_206

:PEDCARD_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDCARD_1335

:PEDCARD_206
goto @PEDCARD_220

:PEDCARD_213
gosub @PEDCARD_1321

:PEDCARD_220
goto @PEDCARD_234

:PEDCARD_227
gosub @PEDCARD_1321

:PEDCARD_234
goto @PEDCARD_116

:PEDCARD_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_318 {caseNum1} 1 {caseLabel1} @PEDCARD_304 {caseNum2} -1 {caseLabel2} @PEDCARD_318 {caseNum3} -1 {caseLabel3} @PEDCARD_318 {caseNum4} -1 {caseLabel4} @PEDCARD_318 {caseNum5} -1 {caseLabel5} @PEDCARD_318 {caseNum6} -1 {caseLabel6} @PEDCARD_318 {caseNum7} -1 {caseLabel7} @PEDCARD_318

:PEDCARD_304
gosub @PEDCARD_320
goto @PEDCARD_318

:PEDCARD_318
return 

:PEDCARD_320
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_1319 {caseNum1} 0 {caseLabel1} @PEDCARD_448 {caseNum2} 1 {caseLabel2} @PEDCARD_510 {caseNum3} 2 {caseLabel3} @PEDCARD_596 {caseNum4} 3 {caseLabel4} @PEDCARD_691 {caseNum5} 4 {caseLabel5} @PEDCARD_872 {caseNum6} 5 {caseLabel6} @PEDCARD_977 {caseNum7} 6 {caseLabel7} @PEDCARD_1153
switch_continued 7 {caseLabel1} @PEDCARD_1276 {caseNum2} -1 {caseLabel2} @PEDCARD_1319 {caseNum3} -1 {caseLabel3} @PEDCARD_1319 {caseNum4} -1 {caseLabel4} @PEDCARD_1319 {caseNum5} -1 {caseLabel5} @PEDCARD_1319 {caseNum6} -1 {caseLabel6} @PEDCARD_1319 {caseNum7} -1 {caseLabel7} @PEDCARD_1319 {caseNum8} -1 {caseLabel8} @PEDCARD_1319 {caseNum9} -1 {caseLabel9} @PEDCARD_1319

:PEDCARD_448
task_play_anim 0@ {animationName} "CARDS_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjHit
4@ += 1
goto @PEDCARD_1319

:PEDCARD_510
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_589
task_play_anim 0@ {animationName} "CARDS_PICK_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDCARD_589
goto @PEDCARD_1319

:PEDCARD_596
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_684
2@ = generate_random_int_in_range 8000 {max} 15000
task_play_anim 0@ {animationName} "CARDS_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDCARD_684
goto @PEDCARD_1319

:PEDCARD_691
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_865
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_805
task_play_anim 0@ {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjDouble
goto @PEDCARD_858

:PEDCARD_805
task_play_anim 0@ {animationName} "CARDS_PICK_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjHit

:PEDCARD_858
4@ += 1

:PEDCARD_865
goto @PEDCARD_1319

:PEDCARD_872
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_970
2@ = generate_random_int_in_range 1500 {max} 5000
task_play_anim 0@ {animationName} "CARDS_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjStay
4@ += 1

:PEDCARD_970
goto @PEDCARD_1319

:PEDCARD_977
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1146
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_1089
task_play_anim 0@ {animationName} "CARDS_WIN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjWin
goto @PEDCARD_1139

:PEDCARD_1089
task_play_anim 0@ {animationName} "CARDS_LOSE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjLose

:PEDCARD_1139
4@ += 1

:PEDCARD_1146
goto @PEDCARD_1319

:PEDCARD_1153
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1269
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_1223
4@ = 1
goto @PEDCARD_1269

:PEDCARD_1223
task_play_anim 0@ {animationName} "CARDS_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDCARD_1269
goto @PEDCARD_1319

:PEDCARD_1276
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1312
gosub @PEDCARD_1321

:PEDCARD_1312
goto @PEDCARD_1319

:PEDCARD_1319
return 

:PEDCARD_1321
remove_animation "CASINO"
terminate_this_script 
return 

:PEDCARD_1335
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_1405
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDCARD_1398
task_duck 0@ {time} -2

:PEDCARD_1398
goto @PEDCARD_1412

:PEDCARD_1405
gosub @PEDCARD_1321

:PEDCARD_1412
goto @PEDCARD_1335
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 51 (PEDSLOT)---------------

:PEDSLOT
script_name 'PEDSLOT'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDSLOT_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDSLOT_60
request_animation "CASINO"

:PEDSLOT_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDSLOT_102
wait 0
goto @PEDSLOT_70

:PEDSLOT_102
3@ = 1
4@ = 0

:PEDSLOT_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDSLOT_213
if 
  $fFunTemp == 0
goto_if_false @PEDSLOT_191
gosub @PEDSLOT_241
goto @PEDSLOT_206

:PEDSLOT_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDSLOT_1042

:PEDSLOT_206
goto @PEDSLOT_220

:PEDSLOT_213
gosub @PEDSLOT_1028

:PEDSLOT_220
goto @PEDSLOT_234

:PEDSLOT_227
gosub @PEDSLOT_1028

:PEDSLOT_234
goto @PEDSLOT_116

:PEDSLOT_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_318 {caseNum1} 1 {caseLabel1} @PEDSLOT_304 {caseNum2} -1 {caseLabel2} @PEDSLOT_318 {caseNum3} -1 {caseLabel3} @PEDSLOT_318 {caseNum4} -1 {caseLabel4} @PEDSLOT_318 {caseNum5} -1 {caseLabel5} @PEDSLOT_318 {caseNum6} -1 {caseLabel6} @PEDSLOT_318 {caseNum7} -1 {caseLabel7} @PEDSLOT_318

:PEDSLOT_304
gosub @PEDSLOT_320
goto @PEDSLOT_318

:PEDSLOT_318
return 

:PEDSLOT_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_1026 {caseNum1} 0 {caseLabel1} @PEDSLOT_383 {caseNum2} 1 {caseLabel2} @PEDSLOT_434 {caseNum3} 2 {caseLabel3} @PEDSLOT_519 {caseNum4} 3 {caseLabel4} @PEDSLOT_613 {caseNum5} 4 {caseLabel5} @PEDSLOT_770 {caseNum6} 5 {caseLabel6} @PEDSLOT_942 {caseNum7} -1 {caseLabel7} @PEDSLOT_1026

:PEDSLOT_383
task_play_anim 0@ {animationName} "SLOT_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @PEDSLOT_1026

:PEDSLOT_434
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_512
task_play_anim 0@ {animationName} "SLOT_BET_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2@
4@ += 1

:PEDSLOT_512
goto @PEDSLOT_1026

:PEDSLOT_519
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_606
2@ = generate_random_int_in_range 1500 {max} 5000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDSLOT_606
goto @PEDSLOT_1026

:PEDSLOT_613
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_763
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_717
task_play_anim 0@ {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @PEDSLOT_756

:PEDSLOT_717
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PEDSLOT_756
4@ += 1

:PEDSLOT_763
goto @PEDSLOT_1026

:PEDSLOT_770
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_935
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_885
task_play_anim 0@ {animationName} "SLOT_WIN_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambSlotWin
goto @PEDSLOT_928

:PEDSLOT_885
task_play_anim 0@ {animationName} "SLOT_LOSE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PEDSLOT_928
4@ += 1

:PEDSLOT_935
goto @PEDSLOT_1026

:PEDSLOT_942
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_1019
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_1012
4@ = 0
goto @PEDSLOT_1019

:PEDSLOT_1012
gosub @PEDSLOT_1028

:PEDSLOT_1019
goto @PEDSLOT_1026

:PEDSLOT_1026
return 

:PEDSLOT_1028
remove_animation "CASINO"
terminate_this_script 
return 

:PEDSLOT_1042
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_1112
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDSLOT_1105
task_duck 0@ {time} -2

:PEDSLOT_1105
goto @PEDSLOT_1119

:PEDSLOT_1112
gosub @PEDSLOT_1028

:PEDSLOT_1119
goto @PEDSLOT_1042
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 52 (DANCER)---------------

:DANCER
script_name 'DANCER'
2@ = 0
if 
  2@ == 1
goto_if_false @DANCER_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DANCER_60
request_animation "DANCING"

:DANCER_71
if 
  not has_animation_loaded "DANCING"
goto_if_false @DANCER_104
wait 0
goto @DANCER_71

:DANCER_104
if 
  not is_char_dead 0@
goto_if_false @DANCER_317
2@ = get_char_model 0@
if 
  10 > 2@
goto_if_false @DANCER_169
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 1500
goto @DANCER_225

:DANCER_169
if 
  100 > 2@
goto_if_false @DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 150
goto @DANCER_225

:DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 15

:DANCER_225
set_lvar_int_to_lvar_int 3@ = 2@
3@ /= 2
3@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 2@ == 3@
goto_if_false @DANCER_310
if 
  is_char_male 0@
goto_if_false @DANCER_296
8@ = 1
goto @DANCER_303

:DANCER_296
8@ = 2

:DANCER_303
goto @DANCER_317

:DANCER_310
8@ = 3

:DANCER_317
3@ = 1
4@ = 0

:DANCER_331
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_442
if 
  is_char_using_map_attractor 0@
goto_if_false @DANCER_428
if 
  $iBouncerAction == 0
goto_if_false @DANCER_406
gosub @DANCER_456
goto @DANCER_421

:DANCER_406
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @DANCER_1424

:DANCER_421
goto @DANCER_435

:DANCER_428
gosub @DANCER_1358

:DANCER_435
goto @DANCER_449

:DANCER_442
gosub @DANCER_1358

:DANCER_449
goto @DANCER_331

:DANCER_456
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCER_540 {caseNum1} 1 {caseLabel1} @DANCER_519 {caseNum2} -1 {caseLabel2} @DANCER_540 {caseNum3} -1 {caseLabel3} @DANCER_540 {caseNum4} -1 {caseLabel4} @DANCER_540 {caseNum5} -1 {caseLabel5} @DANCER_540 {caseNum6} -1 {caseLabel6} @DANCER_540 {caseNum7} -1 {caseLabel7} @DANCER_540

:DANCER_519
gosub @DANCER_1246
gosub @DANCER_542
goto @DANCER_540

:DANCER_540
return 

:DANCER_542
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DANCER_1244 {caseNum1} 0 {caseLabel1} @DANCER_605 {caseNum2} 1 {caseLabel2} @DANCER_818 {caseNum3} 2 {caseLabel3} @DANCER_1031 {caseNum4} -1 {caseLabel4} @DANCER_1244 {caseNum5} -1 {caseLabel5} @DANCER_1244 {caseNum6} -1 {caseLabel6} @DANCER_1244 {caseNum7} -1 {caseLabel7} @DANCER_1244

:DANCER_605
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_811
if 
  8@ == 1
goto_if_false @DANCER_699
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_804

:DANCER_699
if 
  8@ == 2
goto_if_false @DANCER_764
task_play_anim 0@ {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_804

:DANCER_764
task_play_anim 0@ {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_804
4@ += 1

:DANCER_811
goto @DANCER_1244

:DANCER_818
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1024
if 
  8@ == 1
goto_if_false @DANCER_912
task_play_anim 0@ {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1017

:DANCER_912
if 
  8@ == 2
goto_if_false @DANCER_977
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1017

:DANCER_977
task_play_anim 0@ {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_1017
4@ += 1

:DANCER_1024
goto @DANCER_1244

:DANCER_1031
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1237
if 
  8@ == 1
goto_if_false @DANCER_1125
task_play_anim 0@ {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1230

:DANCER_1125
if 
  8@ == 2
goto_if_false @DANCER_1190
task_play_anim 0@ {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1230

:DANCER_1190
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_1230
4@ = 0

:DANCER_1237
goto @DANCER_1244

:DANCER_1244
return 

:DANCER_1246
if 
  is_global_var_bit_set_const $d6_trip_skips_available {bitIndex} 31
goto_if_false @DANCER_1278
9@ = 1
goto @DANCER_1356

:DANCER_1278
if 
  9@ == 1
goto_if_false @DANCER_1356
if 
  $iDanceReport > 3000
goto_if_false @DANCER_1339
2@ = set_char_say_context 0@ {phrase} SpeechId.DanceImprHigh
9@ = 0
goto @DANCER_1356

:DANCER_1339
2@ = set_char_say_context 0@ {phrase} SpeechId.DanceImprNot
9@ = 0

:DANCER_1356
return 

:DANCER_1358
remove_animation "DANCING"
if 
  not is_char_dead 0@
goto_if_false @DANCER_1420
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "DANCER"

:DANCER_1420
terminate_this_script 
return 

:DANCER_1424
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_1494
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @DANCER_1487
task_duck 0@ {time} -2

:DANCER_1487
goto @DANCER_1501

:DANCER_1494
gosub @DANCER_1358

:DANCER_1501
goto @DANCER_1424
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 53 (STRIPW)---------------

:STRIPW
script_name 'STRIPW'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPW_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIPW_60
request_animation "STRIP"

:STRIPW_69
if 
  not has_animation_loaded "STRIP"
goto_if_false @STRIPW_109
wait 0
request_animation "STRIP"
goto @STRIPW_69

:STRIPW_109
3@ = 1
4@ = 0
if 
  is_player_playing $player1
goto_if_false @STRIPW_198
v$5310 = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIPW_188
10@ = 3.0
goto @STRIPW_198

:STRIPW_188
10@ = 4.0

:STRIPW_198
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_382
if 
  is_char_using_map_attractor 0@
goto_if_false @STRIPW_332
if 
  $iSetBarPanic == 0
goto_if_false @STRIPW_318
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @STRIPW_304
$iSetBarPanic = 1
goto @STRIPW_3515
goto @STRIPW_311

:STRIPW_304
gosub @STRIPW_396

:STRIPW_311
goto @STRIPW_325

:STRIPW_318
goto @STRIPW_3515

:STRIPW_325
goto @STRIPW_375

:STRIPW_332
$iSetCasinoPanic = 1
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_375
task_duck 0@ {time} -1

:STRIPW_375
goto @STRIPW_389

:STRIPW_382
gosub @STRIPW_3497

:STRIPW_389
goto @STRIPW_198

:STRIPW_396
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPW_473 {caseNum1} 1 {caseLabel1} @STRIPW_459 {caseNum2} -1 {caseLabel2} @STRIPW_473 {caseNum3} -1 {caseLabel3} @STRIPW_473 {caseNum4} -1 {caseLabel4} @STRIPW_473 {caseNum5} -1 {caseLabel5} @STRIPW_473 {caseNum6} -1 {caseLabel6} @STRIPW_473 {caseNum7} -1 {caseLabel7} @STRIPW_473

:STRIPW_459
gosub @STRIPW_475
goto @STRIPW_473

:STRIPW_473
return 

:STRIPW_475
switch_start 4@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STRIPW_3266 {caseNum1} 0 {caseLabel1} @STRIPW_603 {caseNum2} 1 {caseLabel2} @STRIPW_772 {caseNum3} 2 {caseLabel3} @STRIPW_1133 {caseNum4} 3 {caseLabel4} @STRIPW_1470 {caseNum5} 4 {caseLabel5} @STRIPW_1835 {caseNum6} 5 {caseLabel6} @STRIPW_2056 {caseNum7} 6 {caseLabel7} @STRIPW_2642
switch_continued 7 {caseLabel1} @STRIPW_2850 {caseNum2} 8 {caseLabel2} @STRIPW_3058 {caseNum3} -1 {caseLabel3} @STRIPW_3266 {caseNum4} -1 {caseLabel4} @STRIPW_3266 {caseNum5} -1 {caseLabel5} @STRIPW_3266 {caseNum6} -1 {caseLabel6} @STRIPW_3266 {caseNum7} -1 {caseLabel7} @STRIPW_3266 {caseNum8} -1 {caseLabel8} @STRIPW_3266 {caseNum9} -1 {caseLabel9} @STRIPW_3266

:STRIPW_603
if 
  is_char_playing_anim 0@ {animationName} "STR_B2A"
goto_if_false @STRIPW_719
9@ = get_char_anim_current_time 0@ {animationName} "STR_B2A"
if 
  9@ >= 1.0
goto_if_false @STRIPW_712
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_712
goto @STRIPW_765

:STRIPW_719
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_765
goto @STRIPW_3266

:STRIPW_772
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_A"
goto_if_false @STRIPW_1087
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_A"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1080
if and
  does_object_exist $iStripperPed
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_922
task_play_anim 0@ {animationName} "STR_A2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1080

:STRIPW_922
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_1041
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_A2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1080

:STRIPW_1041
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1080
goto @STRIPW_1126

:STRIPW_1087
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1126
goto @STRIPW_3266

:STRIPW_1133
if 
  is_char_playing_anim 0@ {animationName} "STR_A2B"
goto_if_false @STRIPW_1301
delete_object $iStripperPed
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_A2B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1294
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1294
goto @STRIPW_1463

:STRIPW_1301
if 
  is_char_playing_anim 0@ {animationName} "STR_C2B"
goto_if_false @STRIPW_1417
9@ = get_char_anim_current_time 0@ {animationName} "STR_C2B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1410
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1410
goto @STRIPW_1463

:STRIPW_1417
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1463
goto @STRIPW_3266

:STRIPW_1470
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_B"
goto_if_false @STRIPW_1789
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1782
if and
  does_object_exist $iStripperPed
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_1620
task_play_anim 0@ {animationName} "STR_B2C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1782

:STRIPW_1620
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_1739
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_B2C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1782

:STRIPW_1739
task_play_anim 0@ {animationName} "STR_B2A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 0

:STRIPW_1782
goto @STRIPW_1828

:STRIPW_1789
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1828
goto @STRIPW_3266

:STRIPW_1835
if 
  is_char_playing_anim 0@ {animationName} "STR_B2C"
goto_if_false @STRIPW_2003
delete_object $iStripperPed
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_B2C"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1996
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1996
goto @STRIPW_2049

:STRIPW_2003
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_2049
goto @STRIPW_3266

:STRIPW_2056
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_C"
goto_if_false @STRIPW_2596
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_C"
if 
  9@ >= 1.0
goto_if_false @STRIPW_2589
if and
  does_object_exist $iStripperPed
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_2431
6@, 7@, 8@ = get_char_coordinates 0@
9@ = get_char_heading $scplayer
9@ += 180.0
2@ = generate_random_int_in_range 35 {max} 100
if 
  33 > 2@
goto_if_false @STRIPW_2281
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C3" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 6
goto @STRIPW_2424

:STRIPW_2281
if 
  2@ > 66
goto_if_false @STRIPW_2365
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C2" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 7
goto @STRIPW_2424

:STRIPW_2365
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C1" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 8

:STRIPW_2424
goto @STRIPW_2589

:STRIPW_2431
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_2546
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @STRIPW_2589

:STRIPW_2546
task_play_anim 0@ {animationName} "STR_C2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 2

:STRIPW_2589
goto @STRIPW_2635

:STRIPW_2596
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_2635
goto @STRIPW_3266

:STRIPW_2642
if 
  is_char_playing_anim 0@ {animationName} "STR_C3"
goto_if_false @STRIPW_2808
delete_object $iStripperPed
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C3"
if 
  9@ >= 1.0
goto_if_false @STRIPW_2801
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_2801
goto @STRIPW_2843

:STRIPW_2808
task_play_anim 0@ {animationName} "STR_C3" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_2843
goto @STRIPW_3266

:STRIPW_2850
if 
  is_char_playing_anim 0@ {animationName} "STR_C2"
goto_if_false @STRIPW_3016
delete_object $iStripperPed
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C2"
if 
  9@ >= 1.0
goto_if_false @STRIPW_3009
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_3009
goto @STRIPW_3051

:STRIPW_3016
task_play_anim 0@ {animationName} "STR_C2" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_3051
goto @STRIPW_3266

:STRIPW_3058
if 
  is_char_playing_anim 0@ {animationName} "STR_C1"
goto_if_false @STRIPW_3224
delete_object $iStripperPed
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C1"
if 
  9@ >= 1.0
goto_if_false @STRIPW_3217
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_3217
goto @STRIPW_3259

:STRIPW_3224
task_play_anim 0@ {animationName} "STR_C1" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_3259
goto @STRIPW_3266

:STRIPW_3266
return 

:STRIPW_3268
if and
  is_char_stopped $scplayer
  is_score_greater $player1 {money} 19
goto_if_false @STRIPW_3463
if 
  not does_object_exist $iStripperPed
goto_if_false @STRIPW_3456
if and
  locate_char_on_foot_char_3d $scplayer {target} 0@ {xRadius} 10@ {yRadius} 10@ {zRadius} 1.0 {drawSphere} False
  $iPrintStripperHelp == 0
goto_if_false @STRIPW_3424
if 
  11@ == 0
goto_if_false @STRIPW_3378
$iSetSTRIPPanic += 1
11@ = 1

:STRIPW_3378
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $iPrintStripperHelp == 0
goto_if_false @STRIPW_3417
set_var_int_to_lvar_int $iLapDancesWatched = 0@
$iPrintStripperHelp = 1

:STRIPW_3417
goto @STRIPW_3456

:STRIPW_3424
if 
  11@ == 1
goto_if_false @STRIPW_3456
$iSetSTRIPPanic -= 1
11@ = 0

:STRIPW_3456
goto @STRIPW_3495

:STRIPW_3463
if 
  11@ == 1
goto_if_false @STRIPW_3495
$iSetSTRIPPanic -= 1
11@ = 0

:STRIPW_3495
return 

:STRIPW_3497
remove_animation "STRIP"
delete_object $iStripperPed
terminate_this_script 
return 

:STRIPW_3515
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_3585
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_3578
task_duck 0@ {time} -2

:STRIPW_3578
goto @STRIPW_3592

:STRIPW_3585
gosub @STRIPW_3497

:STRIPW_3592
goto @STRIPW_3515
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 54 (STRIPM)---------------

:STRIPM
script_name 'STRIPM'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPM_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIPM_60
request_animation "STRIP"

:STRIPM_69
if 
  not has_animation_loaded "STRIP"
goto_if_false @STRIPM_100
wait 0
goto @STRIPM_69

:STRIPM_100
3@ = 1
4@ = 0

:STRIPM_114
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_298
if 
  is_char_using_map_attractor 0@
goto_if_false @STRIPM_284
if 
  $iSetBarPanic == 0
goto_if_false @STRIPM_262
7@, 8@, 9@ = get_char_coordinates 0@
10@ = get_user_of_closest_map_attractor 7@ {y} 8@ {z} 9@ {radius} 15.0 {modelId} 0 {attractorName} "STRIPW"
if 
  not is_char_dead 10@
goto_if_false @STRIPM_248
gosub @STRIPM_312
goto @STRIPM_255

:STRIPM_248
gosub @STRIPM_1075

:STRIPM_255
goto @STRIPM_277

:STRIPM_262
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @STRIPM_1088

:STRIPM_277
goto @STRIPM_291

:STRIPM_284
gosub @STRIPM_1075

:STRIPM_291
goto @STRIPM_305

:STRIPM_298
gosub @STRIPM_1075

:STRIPM_305
goto @STRIPM_114

:STRIPM_312
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPM_389 {caseNum1} 1 {caseLabel1} @STRIPM_375 {caseNum2} -1 {caseLabel2} @STRIPM_389 {caseNum3} -1 {caseLabel3} @STRIPM_389 {caseNum4} -1 {caseLabel4} @STRIPM_389 {caseNum5} -1 {caseLabel5} @STRIPM_389 {caseNum6} -1 {caseLabel6} @STRIPM_389 {caseNum7} -1 {caseLabel7} @STRIPM_389

:STRIPM_375
gosub @STRIPM_391
goto @STRIPM_389

:STRIPM_389
return 

:STRIPM_391
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STRIPM_1073 {caseNum1} 0 {caseLabel1} @STRIPM_454 {caseNum2} 1 {caseLabel2} @STRIPM_597 {caseNum3} 2 {caseLabel3} @STRIPM_679 {caseNum4} 3 {caseLabel4} @STRIPM_771 {caseNum5} 4 {caseLabel5} @STRIPM_1030 {caseNum6} -1 {caseLabel6} @STRIPM_1073 {caseNum7} -1 {caseLabel7} @STRIPM_1073

:STRIPM_454
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_590
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @STRIPM_518
2@ /= 10000

:STRIPM_518
if 
  1000 > 2@
goto_if_false @STRIPM_545
2@ += 2000

:STRIPM_545
task_play_anim 0@ {animationName} "PUN_LOOP" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:STRIPM_590
goto @STRIPM_1073

:STRIPM_597
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_672
task_play_anim 0@ {animationName} "PUN_HOLLER" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:STRIPM_672
goto @STRIPM_1073

:STRIPM_679
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_764
2@ = generate_random_int_in_range 2000 {max} 5000
task_play_anim 0@ {animationName} "PUN_LOOP" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:STRIPM_764
goto @STRIPM_1073

:STRIPM_771
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1023
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ >= 50
goto_if_false @STRIPM_977
task_play_anim 0@ {animationName} "PUN_CASH" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
7@, 8@, 9@ = get_char_coordinates 0@
10@ = get_user_of_closest_map_attractor 7@ {y} 8@ {z} 9@ {radius} 15.0 {modelId} 0 {attractorName} "STRIPW"
if 
  not is_char_dead 10@
goto_if_false @STRIPM_970
7@, 8@, 9@ = get_offset_from_char_in_world_coords 10@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
11@ = create_money_pickup 7@ {y} 8@ {z} 9@ {cashAmount} 100 {permanent} False

:STRIPM_970
goto @STRIPM_1016

:STRIPM_977
task_play_anim 0@ {animationName} "PUN_HOLLER" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:STRIPM_1016
4@ += 1

:STRIPM_1023
goto @STRIPM_1073

:STRIPM_1030
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1066
4@ = 0

:STRIPM_1066
goto @STRIPM_1073

:STRIPM_1073
return 

:STRIPM_1075
remove_animation "STRIP"
terminate_this_script 
return 

:STRIPM_1088
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_1158
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPM_1151
task_duck 0@ {time} -2

:STRIPM_1151
goto @STRIPM_1165

:STRIPM_1158
gosub @STRIPM_1075

:STRIPM_1165
goto @STRIPM_1088
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 55 (BROWSE)---------------

:BROWSE
script_name 'BROWSE'
2@ = 0
if 
  2@ == 1
goto_if_false @BROWSE_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BROWSE_60
request_animation "COP_AMBIENT"

:BROWSE_75
if 
  not has_animation_loaded "COP_AMBIENT"
goto_if_false @BROWSE_112
wait 0
goto @BROWSE_75

:BROWSE_112
3@ = 1
4@ = 0

:BROWSE_126
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_235
if 
  is_char_using_map_attractor 0@
goto_if_false @BROWSE_221
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @BROWSE_207
goto @BROWSE_1166
goto @BROWSE_214

:BROWSE_207
gosub @BROWSE_249

:BROWSE_214
goto @BROWSE_228

:BROWSE_221
gosub @BROWSE_1147

:BROWSE_228
goto @BROWSE_242

:BROWSE_235
gosub @BROWSE_1147

:BROWSE_242
goto @BROWSE_126

:BROWSE_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BROWSE_326 {caseNum1} 1 {caseLabel1} @BROWSE_312 {caseNum2} -1 {caseLabel2} @BROWSE_326 {caseNum3} -1 {caseLabel3} @BROWSE_326 {caseNum4} -1 {caseLabel4} @BROWSE_326 {caseNum5} -1 {caseLabel5} @BROWSE_326 {caseNum6} -1 {caseLabel6} @BROWSE_326 {caseNum7} -1 {caseLabel7} @BROWSE_326

:BROWSE_312
gosub @BROWSE_328
goto @BROWSE_326

:BROWSE_326
return 

:BROWSE_328
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BROWSE_1145 {caseNum1} 0 {caseLabel1} @BROWSE_391 {caseNum2} 1 {caseLabel2} @BROWSE_452 {caseNum3} 2 {caseLabel3} @BROWSE_556 {caseNum4} 3 {caseLabel4} @BROWSE_732 {caseNum5} 4 {caseLabel5} @BROWSE_836 {caseNum6} 5 {caseLabel6} @BROWSE_1011 {caseNum7} 6 {caseLabel7} @BROWSE_1102

:BROWSE_391
task_play_anim 0@ {animationName} "COPBROWSE_IN" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @BROWSE_1145

:BROWSE_452
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_549
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPBROWSE_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:BROWSE_549
goto @BROWSE_1145

:BROWSE_556
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_725
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @BROWSE_667
task_play_anim 0@ {animationName} "COPBROWSE_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @BROWSE_718

:BROWSE_667
task_play_anim 0@ {animationName} "COPBROWSE_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:BROWSE_718
4@ += 1

:BROWSE_725
goto @BROWSE_1145

:BROWSE_732
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_829
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPBROWSE_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:BROWSE_829
goto @BROWSE_1145

:BROWSE_836
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1004
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @BROWSE_947
task_play_anim 0@ {animationName} "COPBROWSE_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @BROWSE_997

:BROWSE_947
task_play_anim 0@ {animationName} "COPBROWSE_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:BROWSE_997
4@ += 1

:BROWSE_1004
goto @BROWSE_1145

:BROWSE_1011
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1095
task_play_anim 0@ {animationName} "COPBROWSE_OUT" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:BROWSE_1095
goto @BROWSE_1145

:BROWSE_1102
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1138
gosub @BROWSE_1147

:BROWSE_1138
goto @BROWSE_1145

:BROWSE_1145
return 

:BROWSE_1147
remove_animation "COP_AMBIENT"
terminate_this_script 
return 

:BROWSE_1166
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_1237
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BROWSE_1230
task_kill_char_on_foot 0@ {target} $scplayer

:BROWSE_1230
goto @BROWSE_1244

:BROWSE_1237
gosub @BROWSE_1147

:BROWSE_1244
goto @BROWSE_1166
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 56 (COPSIT)---------------

:COPSIT
script_name 'COPSIT'
2@ = 0
if 
  2@ == 1
goto_if_false @COPSIT_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:COPSIT_60
request_animation "INT_OFFICE"

:COPSIT_74
if 
  not has_animation_loaded "INT_OFFICE"
goto_if_false @COPSIT_110
wait 0
goto @COPSIT_74

:COPSIT_110
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @COPSIT_166
5@ = 0
4@ = 1
goto @COPSIT_180

:COPSIT_166
5@ = -2
4@ = 2

:COPSIT_180
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @COPSIT_236
set_char_suffers_critical_hits 0@ {state} False
$d_lstickx = copy_shared_char_decision_maker DecisionMakerCharTemplate.Cop
set_char_decision_maker 0@ {handleOrTemplate} $d_lstickx
6@ = 15000

:COPSIT_236
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_345
if 
  is_char_using_map_attractor 0@
goto_if_false @COPSIT_331
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPSIT_317
goto @COPSIT_2292
goto @COPSIT_324

:COPSIT_317
gosub @COPSIT_359

:COPSIT_324
goto @COPSIT_338

:COPSIT_331
gosub @COPSIT_2239

:COPSIT_338
goto @COPSIT_352

:COPSIT_345
gosub @COPSIT_2239

:COPSIT_352
goto @COPSIT_236

:COPSIT_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_492 {caseNum1} 1 {caseLabel1} @COPSIT_422 {caseNum2} 2 {caseLabel2} @COPSIT_436 {caseNum3} 3 {caseLabel3} @COPSIT_450 {caseNum4} 4 {caseLabel4} @COPSIT_464 {caseNum5} 5 {caseLabel5} @COPSIT_478 {caseNum6} -1 {caseLabel6} @COPSIT_492 {caseNum7} -1 {caseLabel7} @COPSIT_492

:COPSIT_422
gosub @COPSIT_494
goto @COPSIT_492

:COPSIT_436
gosub @COPSIT_724
goto @COPSIT_492

:COPSIT_450
gosub @COPSIT_1843
goto @COPSIT_492

:COPSIT_464
gosub @COPSIT_2239
goto @COPSIT_492

:COPSIT_478
gosub @COPSIT_2146
goto @COPSIT_492

:COPSIT_492
return 

:COPSIT_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @COPSIT_722 {caseNum1} 0 {caseLabel1} @COPSIT_557 {caseNum2} 1 {caseLabel2} @COPSIT_622 {caseNum3} -1 {caseLabel3} @COPSIT_722 {caseNum4} -1 {caseLabel4} @COPSIT_722 {caseNum5} -1 {caseLabel5} @COPSIT_722 {caseNum6} -1 {caseLabel6} @COPSIT_722 {caseNum7} -1 {caseLabel7} @COPSIT_722

:COPSIT_557
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IN" {animationFile} "INT_OFFICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @COPSIT_722

:COPSIT_622
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "OFF_SIT_IN"
goto_if_false @COPSIT_680
9@ = get_char_anim_current_time 0@ {animationName} "OFF_SIT_IN"

:COPSIT_680
if 
  9@ == 1.0
goto_if_false @COPSIT_715
5@ = 0
4@ += 1

:COPSIT_715
goto @COPSIT_722

:COPSIT_722
return 

:COPSIT_724
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_1841 {caseNum1} -2 {caseLabel1} @COPSIT_787 {caseNum2} 0 {caseLabel2} @COPSIT_1023 {caseNum3} 1 {caseLabel3} @COPSIT_1259 {caseNum4} 2 {caseLabel4} @COPSIT_1520 {caseNum5} 3 {caseLabel5} @COPSIT_1598 {caseNum6} -1 {caseLabel6} @COPSIT_1841 {caseNum7} -1 {caseLabel7} @COPSIT_1841

:COPSIT_787
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_955
if 
  8@ > 33
goto_if_false @COPSIT_893
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_948

:COPSIT_893
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_948
goto @COPSIT_1009

:COPSIT_955
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1009
5@ = 1
goto @COPSIT_1841

:COPSIT_1023
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_1191
if 
  8@ > 33
goto_if_false @COPSIT_1129
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_1184

:COPSIT_1129
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1184
goto @COPSIT_1245

:COPSIT_1191
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1245
5@ += 1
goto @COPSIT_1841

:COPSIT_1259
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} False {target} 0@
if or
  is_char_playing_anim 0@ {animationName} "OFF_SIT_TYPE_LOOP"
  is_char_playing_anim 0@ {animationName} "OFF_SIT_BORED_LOOP"
  is_char_playing_anim 0@ {animationName} "OFF_SIT_IDLE_LOOP"
goto_if_false @COPSIT_1513
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:COPSIT_1513
goto @COPSIT_1841

:COPSIT_1520
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPSIT_1565
clear_char_last_damage_entity 0@
4@ = 5
5@ = 0
goto @COPSIT_1841

:COPSIT_1565
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @COPSIT_1591
5@ += 1

:COPSIT_1591
goto @COPSIT_1841

:COPSIT_1598
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_1766
if 
  8@ > 33
goto_if_false @COPSIT_1704
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_1759

:COPSIT_1704
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1759
goto @COPSIT_1820

:COPSIT_1766
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1820
TIMERB = 0
5@ -= 1
goto @COPSIT_1841

:COPSIT_1841
return 

:COPSIT_1843
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2144 {caseNum1} 0 {caseLabel1} @COPSIT_1906 {caseNum2} 1 {caseLabel2} @COPSIT_1971 {caseNum3} 2 {caseLabel3} @COPSIT_2006 {caseNum4} -1 {caseLabel4} @COPSIT_2144 {caseNum5} -1 {caseLabel5} @COPSIT_2144 {caseNum6} -1 {caseLabel6} @COPSIT_2144 {caseNum7} -1 {caseLabel7} @COPSIT_2144

:COPSIT_1906
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_2IDLE_180" {animationFile} "INT_OFFICE" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @COPSIT_2144

:COPSIT_1971
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @COPSIT_2144

:COPSIT_2006
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "OFF_SIT_2IDLE_180"
goto_if_false @COPSIT_2137
9@ = get_char_anim_current_time 0@ {animationName} "OFF_SIT_2IDLE_180"
if 
  9@ == 1.0
goto_if_false @COPSIT_2137
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} True {target} 0@
5@ = 0
4@ += 1

:COPSIT_2137
goto @COPSIT_2144

:COPSIT_2144
return 

:COPSIT_2146
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2237 {caseNum1} 0 {caseLabel1} @COPSIT_2209 {caseNum2} -1 {caseLabel2} @COPSIT_2237 {caseNum3} -1 {caseLabel3} @COPSIT_2237 {caseNum4} -1 {caseLabel4} @COPSIT_2237 {caseNum5} -1 {caseLabel5} @COPSIT_2237 {caseNum6} -1 {caseLabel6} @COPSIT_2237 {caseNum7} -1 {caseLabel7} @COPSIT_2237

:COPSIT_2209
4@ = 3
5@ = 0
gosub @COPSIT_2292
goto @COPSIT_2237

:COPSIT_2237
return 

:COPSIT_2239
remove_animation "INT_OFFICE"
remove_decision_maker $d_lstickx
if 
  not is_char_dead 0@
goto_if_false @COPSIT_2288
freeze_char_position 0@ {state} False
set_char_suffers_critical_hits 0@ {state} True

:COPSIT_2288
terminate_this_script 
return 

:COPSIT_2292
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_2635
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @COPSIT_2628
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @COPSIT_2614 {caseNum1} 1 {caseLabel1} @COPSIT_2403 {caseNum2} 2 {caseLabel2} @COPSIT_2486 {caseNum3} 3 {caseLabel3} @COPSIT_2535 {caseNum4} 4 {caseLabel4} @COPSIT_2549 {caseNum5} 5 {caseLabel5} @COPSIT_2600 {caseNum6} -1 {caseLabel6} @COPSIT_2628 {caseNum7} -1 {caseLabel7} @COPSIT_2628

:COPSIT_2403
if 
  5@ > 1
goto_if_false @COPSIT_2435
gosub @COPSIT_359
goto @COPSIT_2479

:COPSIT_2435
7@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2479
task_kill_char_on_foot 0@ {target} $scplayer
gosub @COPSIT_2239

:COPSIT_2479
goto @COPSIT_2628

:COPSIT_2486
if 
  5@ == 2
goto_if_false @COPSIT_2521
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:COPSIT_2521
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2535
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2549
7@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2593
task_kill_char_on_foot 0@ {target} $scplayer
gosub @COPSIT_2239

:COPSIT_2593
goto @COPSIT_2628

:COPSIT_2600
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2614
gosub @COPSIT_2239
goto @COPSIT_2628

:COPSIT_2628
goto @COPSIT_2642

:COPSIT_2635
gosub @COPSIT_2239

:COPSIT_2642
goto @COPSIT_2292
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 57 (COPLOOK)---------------

:COPLOOK
script_name 'COPLOOK'
2@ = 0
if 
  2@ == 1
goto_if_false @COPLOOK_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:COPLOOK_60
request_animation "COP_AMBIENT"

:COPLOOK_75
if 
  not has_animation_loaded "COP_AMBIENT"
goto_if_false @COPLOOK_112
wait 0
goto @COPLOOK_75

:COPLOOK_112
3@ = 1
4@ = 0

:COPLOOK_126
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_235
if 
  is_char_using_map_attractor 0@
goto_if_false @COPLOOK_221
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPLOOK_207
goto @COPLOOK_1319
goto @COPLOOK_214

:COPLOOK_207
gosub @COPLOOK_249

:COPLOOK_214
goto @COPLOOK_228

:COPLOOK_221
gosub @COPLOOK_1300

:COPLOOK_228
goto @COPLOOK_242

:COPLOOK_235
gosub @COPLOOK_1300

:COPLOOK_242
goto @COPLOOK_126

:COPLOOK_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_326 {caseNum1} 1 {caseLabel1} @COPLOOK_312 {caseNum2} -1 {caseLabel2} @COPLOOK_326 {caseNum3} -1 {caseLabel3} @COPLOOK_326 {caseNum4} -1 {caseLabel4} @COPLOOK_326 {caseNum5} -1 {caseLabel5} @COPLOOK_326 {caseNum6} -1 {caseLabel6} @COPLOOK_326 {caseNum7} -1 {caseLabel7} @COPLOOK_326

:COPLOOK_312
gosub @COPLOOK_328
goto @COPLOOK_326

:COPLOOK_326
return 

:COPLOOK_328
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_1298 {caseNum1} 0 {caseLabel1} @COPLOOK_456 {caseNum2} 1 {caseLabel2} @COPLOOK_515 {caseNum3} 2 {caseLabel3} @COPLOOK_617 {caseNum4} 3 {caseLabel4} @COPLOOK_789 {caseNum5} 4 {caseLabel5} @COPLOOK_891 {caseNum6} 5 {caseLabel6} @COPLOOK_1064 {caseNum7} 6 {caseLabel7} @COPLOOK_1166
switch_continued 7 {caseLabel1} @COPLOOK_1255 {caseNum2} -1 {caseLabel2} @COPLOOK_1298 {caseNum3} -1 {caseLabel3} @COPLOOK_1298 {caseNum4} -1 {caseLabel4} @COPLOOK_1298 {caseNum5} -1 {caseLabel5} @COPLOOK_1298 {caseNum6} -1 {caseLabel6} @COPLOOK_1298 {caseNum7} -1 {caseLabel7} @COPLOOK_1298 {caseNum8} -1 {caseLabel8} @COPLOOK_1298 {caseNum9} -1 {caseLabel9} @COPLOOK_1298

:COPLOOK_456
task_play_anim 0@ {animationName} "COPLOOK_IN" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @COPLOOK_1298

:COPLOOK_515
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_610
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_610
goto @COPLOOK_1298

:COPLOOK_617
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_782
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @COPLOOK_726
task_play_anim 0@ {animationName} "COPLOOK_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @COPLOOK_775

:COPLOOK_726
task_play_anim 0@ {animationName} "COPLOOK_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:COPLOOK_775
4@ += 1

:COPLOOK_782
goto @COPLOOK_1298

:COPLOOK_789
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_884
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_884
goto @COPLOOK_1298

:COPLOOK_891
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1057
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @COPLOOK_1002
task_play_anim 0@ {animationName} "COPLOOK_THINK" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @COPLOOK_1050

:COPLOOK_1002
task_play_anim 0@ {animationName} "COPLOOK_WATCH" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:COPLOOK_1050
4@ += 1

:COPLOOK_1057
goto @COPLOOK_1298

:COPLOOK_1064
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1159
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_1159
goto @COPLOOK_1298

:COPLOOK_1166
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1248
task_play_anim 0@ {animationName} "COPLOOK_OUT" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:COPLOOK_1248
goto @COPLOOK_1298

:COPLOOK_1255
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1291
gosub @COPLOOK_1300

:COPLOOK_1291
goto @COPLOOK_1298

:COPLOOK_1298
return 

:COPLOOK_1300
remove_animation "COP_AMBIENT"
terminate_this_script 
return 

:COPLOOK_1319
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_1390
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @COPLOOK_1383
task_kill_char_on_foot 0@ {target} $scplayer

:COPLOOK_1383
goto @COPLOOK_1397

:COPLOOK_1390
gosub @COPLOOK_1300

:COPLOOK_1397
goto @COPLOOK_1319
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 58 (TICKET)---------------

:TICKET
script_name 'TICKET'
2@ = 0
if 
  2@ == 1
goto_if_false @TICKET_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:TICKET_60
request_animation "CASINO"

:TICKET_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @TICKET_102
wait 0
goto @TICKET_70

:TICKET_102
3@ = 1
4@ = 0

:TICKET_116
wait 0
if 
  not is_char_dead 0@
goto_if_false @TICKET_180
if 
  is_char_using_map_attractor 0@
goto_if_false @TICKET_166
gosub @TICKET_194
goto @TICKET_173

:TICKET_166
gosub @TICKET_875

:TICKET_173
goto @TICKET_187

:TICKET_180
gosub @TICKET_875

:TICKET_187
goto @TICKET_116

:TICKET_194
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @TICKET_271 {caseNum1} 1 {caseLabel1} @TICKET_257 {caseNum2} -1 {caseLabel2} @TICKET_271 {caseNum3} -1 {caseLabel3} @TICKET_271 {caseNum4} -1 {caseLabel4} @TICKET_271 {caseNum5} -1 {caseLabel5} @TICKET_271 {caseNum6} -1 {caseLabel6} @TICKET_271 {caseNum7} -1 {caseLabel7} @TICKET_271

:TICKET_257
gosub @TICKET_273
goto @TICKET_271

:TICKET_271
return 

:TICKET_273
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @TICKET_873 {caseNum1} 0 {caseLabel1} @TICKET_336 {caseNum2} 1 {caseLabel2} @TICKET_387 {caseNum3} 2 {caseLabel3} @TICKET_472 {caseNum4} 3 {caseLabel4} @TICKET_566 {caseNum5} 4 {caseLabel5} @TICKET_650 {caseNum6} 5 {caseLabel6} @TICKET_736 {caseNum7} 6 {caseLabel7} @TICKET_830

:TICKET_336
task_play_anim 0@ {animationName} "SLOT_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @TICKET_873

:TICKET_387
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_465
task_play_anim 0@ {animationName} "SLOT_BET_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2@
4@ += 1

:TICKET_465
goto @TICKET_873

:TICKET_472
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_559
2@ = generate_random_int_in_range 5000 {max} 10000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:TICKET_559
goto @TICKET_873

:TICKET_566
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_643
task_play_anim 0@ {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:TICKET_643
goto @TICKET_873

:TICKET_650
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_729
task_play_anim 0@ {animationName} "SLOT_LOSE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:TICKET_729
goto @TICKET_873

:TICKET_736
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_823
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:TICKET_823
goto @TICKET_873

:TICKET_830
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_866
gosub @TICKET_875

:TICKET_866
goto @TICKET_873

:TICKET_873
return 

:TICKET_875
remove_animation "CASINO"
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 59 (SHOPPER)---------------

:SHOPPER
script_name 'SHOPPER'
2@ = 0
if 
  2@ == 1
goto_if_false @SHOPPER_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:SHOPPER_60
request_animation "INT_SHOP"

:SHOPPER_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @SHOPPER_106
wait 0
goto @SHOPPER_72

:SHOPPER_106
3@ = 1
4@ = 0

:SHOPPER_120
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_289
if 
  is_char_using_map_attractor 0@
goto_if_false @SHOPPER_275
if or
  has_char_been_damaged_by_char 0@ {handle} $scplayer
  is_char_shooting $scplayer
goto_if_false @SHOPPER_221
$iSetClothesPanic = 1
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_221
if 
  $iSetClothesPanic == 1
goto_if_false @SHOPPER_261
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_261
gosub @SHOPPER_303

:SHOPPER_268
goto @SHOPPER_282

:SHOPPER_275
gosub @SHOPPER_1057

:SHOPPER_282
goto @SHOPPER_296

:SHOPPER_289
gosub @SHOPPER_1057

:SHOPPER_296
goto @SHOPPER_120

:SHOPPER_303
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_380 {caseNum1} 1 {caseLabel1} @SHOPPER_366 {caseNum2} -1 {caseLabel2} @SHOPPER_380 {caseNum3} -1 {caseLabel3} @SHOPPER_380 {caseNum4} -1 {caseLabel4} @SHOPPER_380 {caseNum5} -1 {caseLabel5} @SHOPPER_380 {caseNum6} -1 {caseLabel6} @SHOPPER_380 {caseNum7} -1 {caseLabel7} @SHOPPER_380

:SHOPPER_366
gosub @SHOPPER_382
goto @SHOPPER_380

:SHOPPER_380
return 

:SHOPPER_382
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_1055 {caseNum1} 0 {caseLabel1} @SHOPPER_445 {caseNum2} 1 {caseLabel2} @SHOPPER_527 {caseNum3} 2 {caseLabel3} @SHOPPER_674 {caseNum4} 3 {caseLabel4} @SHOPPER_835 {caseNum5} 4 {caseLabel5} @SHOPPER_1012 {caseNum6} -1 {caseLabel6} @SHOPPER_1055 {caseNum7} -1 {caseLabel7} @SHOPPER_1055

:SHOPPER_445
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_520
task_play_anim 0@ {animationName} "SHOP_IN" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:SHOPPER_520
goto @SHOPPER_1055

:SHOPPER_527
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_667
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @SHOPPER_591
2@ /= 10000

:SHOPPER_591
if 
  1000 > 2@
goto_if_false @SHOPPER_618
2@ += 2000

:SHOPPER_618
task_play_anim 0@ {animationName} "SHOP_LOOP" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:SHOPPER_667
goto @SHOPPER_1055

:SHOPPER_674
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_828
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @SHOPPER_779
task_play_anim 0@ {animationName} "SHOP_LOOKA" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SHOPPER_821

:SHOPPER_779
task_play_anim 0@ {animationName} "SHOP_LOOKB" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SHOPPER_821
4@ += 1

:SHOPPER_828
goto @SHOPPER_1055

:SHOPPER_835
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1005
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @SHOPPER_945
task_play_anim 0@ {animationName} "SHOP_OUT" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @SHOPPER_1005

:SHOPPER_945
2@ = generate_random_int_in_range 3000 {max} 6000
task_play_anim 0@ {animationName} "SHOP_LOOP" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ = 1

:SHOPPER_1005
goto @SHOPPER_1055

:SHOPPER_1012
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1048
gosub @SHOPPER_1057

:SHOPPER_1048
goto @SHOPPER_1055

:SHOPPER_1055
return 

:SHOPPER_1057
remove_animation "INT_SHOP"
terminate_this_script 
return 

:SHOPPER_1073
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_1143
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @SHOPPER_1136
task_duck 0@ {time} -2

:SHOPPER_1136
goto @SHOPPER_1150

:SHOPPER_1143
gosub @SHOPPER_1057

:SHOPPER_1150
goto @SHOPPER_1073
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 60 (AMMU)---------------

:AMUNAT
$weapon_offY = 0.0
$weapon_offZ = 0.0
$temp_slot = 0.0
$flag_ammu = 0.0
$flag_attacked_ammu_keeper = 0.0
$return_animation_time_ammunation = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$shop_keep_heading_ammunation = 0.0
$player_heading_ammunation = 0.0
$shop_progress_ammunation = 0.0
$player_weapontype = 0.0
$player_ammo = 0.0
$cost_menu_drawn_shops = 0
$ammuX = 0.0
$ammuY = 0.0
$ammuZ = 0.0
$shop_item_ammu = 0
$shop_alarm_ammu = 0
$anim_name_return_ammu = 0.0
$9567 = 0.0
$9568 = 0.0
$9563 = 0
$9564 = 0
$9565 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterY_shops = 0
$weapon_on_counterX_shops = 0
$weapon_on_counterZ_shops = 0
$pistol_name_menu = 0
$ammu_offX = 0
$temp_var_shops = 0
$ammu_offY = 0
$ammu_offZ = 0
$ammu_camera_pointX = 0
$ammu_camera_pointY = 0
$ammu_camera_pointZ = 0
$player_armour = 0
$player_max_armour = 0
$flag_buy_ammo_flag = 0
$weapon_count_ammu = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0
$9627 = 0
$rifle_array = 0
$9629 = 0
goto @AMUNAT_525
add_continuous_sound $ammuX {_p2} $ammuY {_p3} $ammuZ {_p4} 65535 {_p5} $9561
$anim_name_return_start_ammu = create_object $created_this_weapon {x} 1659.635 {y} -1576.514 {z} 15.585
$d_player_stick_position = create_object $created_this_weapon {x} $anim_name_return_ammu {y} $9567 {z} $9568

:AMUNAT_525
set_var_int_to_constant $shopkeeper_model_shops = 179
request_model $shopkeeper_model_shops
request_model 346
request_model 372
request_model 352
request_model 349
request_model 342
request_model 373
request_model 353
request_model 350
request_model 347
request_model 363
request_model 364
request_model 357
request_model 358
request_model 355
request_model 356
request_model 348
request_model 351
load_all_models_now 
set_deatharrest_state 0
script_name 'AMUNAT'

:AMUNAT_640
wait 0
if 
  is_player_playing $player1
goto_if_false @AMUNAT_7618
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @AMUNAT_7604
if 
  $shop_alarm_ammu > 0
goto_if_false @AMUNAT_762
if 
  has_language_changed 
goto_if_false @AMUNAT_762
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $bought_menu_shops
delete_menu $cost_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:AMUNAT_762
if 
  $shop_alarm_ammu == 0
goto_if_false @AMUNAT_1286
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN1'
goto_if_false @AMUNAT_884
$flag_ammu = 0.0
$flag_attacked_ammu_keeper = 0.0
$return_animation_time_ammunation = 0.0
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_884
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN2'
goto_if_false @AMUNAT_988
$flag_ammu = -0.765
$flag_attacked_ammu_keeper = -42.311
$return_animation_time_ammunation = -0.013
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_988
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN3'
goto_if_false @AMUNAT_1092
$flag_ammu = -6.264
$flag_attacked_ammu_keeper = -71.34
$return_animation_time_ammunation = -0.002
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_1092
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN4'
goto_if_false @AMUNAT_1189
$flag_ammu = 11.642
$flag_attacked_ammu_keeper = -102.936
$return_animation_time_ammunation = -1.929
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$shop_alarm_ammu = 1

:AMUNAT_1189
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN5'
goto_if_false @AMUNAT_1286
$flag_ammu = 16.285
$flag_attacked_ammu_keeper = -127.781
$return_animation_time_ammunation = -1.929
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$shop_alarm_ammu = 1

:AMUNAT_1286
if 
  $shop_alarm_ammu == 1
goto_if_false @AMUNAT_2318
use_text_commands True
show_update_stats False
$keep_offX = 296.506
add_float_var_to_float_var $keep_offX += $flag_ammu
$keep_offY = -38.168
add_float_var_to_float_var $keep_offY += $flag_attacked_ammu_keeper
$keep_offZ = 1000.547
add_float_var_to_float_var $keep_offZ += $return_animation_time_ammunation
$ammuX = 296.506
add_float_var_to_float_var $ammuX += $flag_ammu
$ammuY = -40.35
add_float_var_to_float_var $ammuY += $flag_attacked_ammu_keeper
$ammuZ = 1000.54
add_float_var_to_float_var $ammuZ += $return_animation_time_ammunation
$cam_offx = 296.585
add_float_var_to_float_var $cam_offx += $flag_ammu
$cam_offy = -38.345
add_float_var_to_float_var $cam_offy += $flag_attacked_ammu_keeper
$cam_offz = 1002.236
add_float_var_to_float_var $cam_offz += $return_animation_time_ammunation
$shop_keep_heading_ammunation = 296.501
add_float_var_to_float_var $shop_keep_heading_ammunation += $flag_ammu
$player_heading_ammunation = -39.298
add_float_var_to_float_var $player_heading_ammunation += $flag_attacked_ammu_keeper
$shop_progress_ammunation = 1001.943
add_float_var_to_float_var $shop_progress_ammunation += $return_animation_time_ammunation
$d_lsticky = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $ammuX {y} $ammuY {z} $ammuZ
set_char_heading $d_lsticky {heading} $player_ammo
set_char_only_damaged_by_player $d_lsticky {state} True
set_char_decision_maker $d_lsticky {handleOrTemplate} DecisionMakerCharTemplate.Empty
if 
  $flag_casino_mission_counter > 2
goto_if_false @AMUNAT_1638
$d_rsticky = get_number_of_items_in_shop 
if 
  $flag_16weapons_open == 0
goto_if_false @AMUNAT_1631
print_help 'NEWWEAP'
$flag_16weapons_open = 1

:AMUNAT_1631
goto @AMUNAT_2311

:AMUNAT_1638
if 
  $flag_desert_mission_counter > 7
goto_if_false @AMUNAT_1706
$d_rsticky = 15
if 
  $flag_15weapons_open == 0
goto_if_false @AMUNAT_1699
print_help 'NEWWEAP'
$flag_15weapons_open = 1

:AMUNAT_1699
goto @AMUNAT_2311

:AMUNAT_1706
if 
  $flag_synd_mission_counter > 9
goto_if_false @AMUNAT_1774
$d_rsticky = 14
if 
  $flag_14weapons_open == 0
goto_if_false @AMUNAT_1767
print_help 'NEWWEAP'
$flag_14weapons_open = 1

:AMUNAT_1767
goto @AMUNAT_2311

:AMUNAT_1774
if 
  $flag_wuzi_mission_counter > 0
goto_if_false @AMUNAT_1842
$d_rsticky = 13
if 
  $flag_13weapons_open == 0
goto_if_false @AMUNAT_1835
print_help 'NEWWEAP'
$flag_13weapons_open = 1

:AMUNAT_1835
goto @AMUNAT_2311

:AMUNAT_1842
if 
  $flag_synd_mission_counter > 7
goto_if_false @AMUNAT_1910
$d_rsticky = 12
if 
  $flag_12weapons_open == 0
goto_if_false @AMUNAT_1903
print_help 'NEWWEAP'
$flag_12weapons_open = 1

:AMUNAT_1903
goto @AMUNAT_2311

:AMUNAT_1910
if 
  $flag_truth_mission_counter > 0
goto_if_false @AMUNAT_1978
$d_rsticky = 11
if 
  $flag_11weapons_open == 0
goto_if_false @AMUNAT_1971
print_help 'NEWWEAP'
$flag_11weapons_open = 1

:AMUNAT_1971
goto @AMUNAT_2311

:AMUNAT_1978
if 
  $flag_cat_mission4_passed == 1
goto_if_false @AMUNAT_2046
$d_rsticky = 10
if 
  $flag_10weapons_open == 0
goto_if_false @AMUNAT_2039
print_help 'NEWWEAP'
$flag_10weapons_open = 1

:AMUNAT_2039
goto @AMUNAT_2311

:AMUNAT_2046
if 
  $flag_strap_mission_counter > 4
goto_if_false @AMUNAT_2114
$d_rsticky = 9
if 
  $flag_9weapons_open == 0
goto_if_false @AMUNAT_2107
print_help 'NEWWEAP'
$flag_9weapons_open = 1

:AMUNAT_2107
goto @AMUNAT_2311

:AMUNAT_2114
if 
  $flag_smoke_mission_counter > 3
goto_if_false @AMUNAT_2182
$d_rsticky = 8
if 
  $flag_8weapons_open == 0
goto_if_false @AMUNAT_2175
print_help 'NEWWEAP'
$flag_8weapons_open = 1

:AMUNAT_2175
goto @AMUNAT_2311

:AMUNAT_2182
if 
  $flag_ryder_mission_counter > 2
goto_if_false @AMUNAT_2250
$d_rsticky = 7
if 
  $flag_7weapons_open == 0
goto_if_false @AMUNAT_2243
print_help 'NEWWEAP'
$flag_7weapons_open = 1

:AMUNAT_2243
goto @AMUNAT_2311

:AMUNAT_2250
if 
  2 > $flag_la1fin1_mission_counter
goto_if_false @AMUNAT_2311
$d_rsticky = 6
if 
  $flag_6weapons_open == 0
goto_if_false @AMUNAT_2311
print_help 'NEWWEAP'
$flag_6weapons_open = 1

:AMUNAT_2311
$shop_alarm_ammu = 2

:AMUNAT_2318
if 
  $shop_alarm_ammu == 2
goto_if_false @AMUNAT_2978
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2367
gosub @AMUNAT_8535

:AMUNAT_2367
if 
  not is_char_dead $d_lsticky
goto_if_false @AMUNAT_2933
if 
  $shop_item_ammu == 0
goto_if_false @AMUNAT_2881
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_2480
task_play_anim_non_interruptable $d_lsticky {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_weapontype = 0.0
$weapon_offX = 1

:AMUNAT_2480
if 
  $flag_shooting_range_mission == 0
goto_if_false @AMUNAT_2700
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $d_lsticky
  has_char_been_damaged_by_weapon $d_lsticky {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_2613
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.BoughtEnough {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $d_lsticky {time} 5
set_char_weapon_skill $d_lsticky {skill} WeaponSkill.Pro
give_weapon_to_char $d_lsticky {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $d_lsticky {accuracy} 80
task_stay_in_same_place $d_lsticky {state} True
task_kill_char_on_foot $d_lsticky {target} $scplayer
$blob_flag_shop = 0
$shop_item_ammu = 1
goto @AMUNAT_2693

:AMUNAT_2613
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @AMUNAT_2693
if 
  can_player_start_mission $player1
goto_if_false @AMUNAT_2693
$weapon_offX = 0
$shop_alarm_ammu = 3

:AMUNAT_2693
goto @AMUNAT_2874

:AMUNAT_2700
if or
  is_player_targetting_char $player1 {handle} $d_lsticky
  has_char_been_damaged_by_weapon $d_lsticky {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_2810
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.BoughtEnough {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $d_lsticky {time} 5
set_char_weapon_skill $d_lsticky {skill} WeaponSkill.Pro
give_weapon_to_char $d_lsticky {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $d_lsticky {accuracy} 80
task_stay_in_same_place $d_lsticky {state} True
task_kill_char_on_foot $d_lsticky {target} $scplayer
$blob_flag_shop = 0
$shop_item_ammu = 1
goto @AMUNAT_2874

:AMUNAT_2810
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @AMUNAT_2874
$weapon_offX = 0
$shop_alarm_ammu = 3

:AMUNAT_2874
goto @AMUNAT_2926

:AMUNAT_2881
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2919
gosub @AMUNAT_8535

:AMUNAT_2919
goto @AMUNAT_640

:AMUNAT_2926
goto @AMUNAT_2978

:AMUNAT_2933
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2971
gosub @AMUNAT_8535

:AMUNAT_2971
goto @AMUNAT_640

:AMUNAT_2978
if 
  $shop_alarm_ammu == 3
goto_if_false @AMUNAT_3062
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
clear_this_print 'SHOPNO'
TIMERA = 0
$shop_alarm_ammu = 4

:AMUNAT_3062
if 
  $shop_alarm_ammu == 4
goto_if_false @AMUNAT_3421
if 
  is_char_dead $d_lsticky
goto_if_false @AMUNAT_3141
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_3134
gosub @AMUNAT_8535

:AMUNAT_3134
goto @AMUNAT_640

:AMUNAT_3141
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_3421
if 
  TIMERA >= 300
goto_if_false @AMUNAT_3421
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $player_weapon_model
$players_money, $temp_shopX, $temp_shopY = get_char_coordinates $d_lsticky
if or
  not is_float_var_equal_to_float_var $players_money == $ammuX
  not is_float_var_equal_to_float_var $temp_shopX == $ammuY
  not is_float_var_equal_to_float_var $temp_shopY == $ammuZ
goto_if_false @AMUNAT_3271
set_char_coordinates $d_lsticky {x} $ammuX {y} $ammuY {z} $ammuZ
set_char_heading $d_lsticky {heading} $player_ammo

:AMUNAT_3271
set_fixed_camera_position $cam_offx {y} $cam_offy {z} $cam_offz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $shop_keep_heading_ammunation {y} $player_heading_ammunation {z} $shop_progress_ammunation {switchStyle} SwitchType.JumpCut
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.ShowChangingroom {overrideSilence} False {ignoreMute} False {frontEnd} True
if 
  $flag_on_doberman_mission == 1
goto_if_false @AMUNAT_3352
$flag_bought_gun_for_doberman = 1

:AMUNAT_3352
if 
  is_player_playing $player1
goto_if_false @AMUNAT_3389
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
goto @AMUNAT_3403

:AMUNAT_3389
gosub @AMUNAT_8535
goto @AMUNAT_640

:AMUNAT_3403
display_radar False
$shop_alarm_ammu = 5
$weapon_offX = 0

:AMUNAT_3421
if 
  $shop_alarm_ammu == 5
goto_if_false @AMUNAT_4241
if 
  is_char_dead $d_lsticky
goto_if_false @AMUNAT_3500
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_3493
gosub @AMUNAT_8535

:AMUNAT_3493
goto @AMUNAT_640

:AMUNAT_3500
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_3550
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_3550
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_3550
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_3616
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_3592
$weapon_offX = 3

:AMUNAT_3592
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_3616
$weapon_offX = 1

:AMUNAT_3616
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_3862
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_3862
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_3683
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_3683
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_3715
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_3715
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_3747
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_3747
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_3777
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_3777
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.RemoveTattoo {overrideSilence} False {ignoreMute} False {frontEnd} True
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_minigame_in_progress False
display_radar True
$weapon_offX = 2

:AMUNAT_3862
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_4090
if 
  $shop_item_ammu == 0
goto_if_false @AMUNAT_3999
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $d_lsticky
  has_char_been_damaged_by_weapon $d_lsticky {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_3999
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.BoughtEnough {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $d_lsticky {time} 5
set_char_weapon_skill $d_lsticky {skill} WeaponSkill.Pro
give_weapon_to_char $d_lsticky {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $d_lsticky {accuracy} 80
task_stay_in_same_place $d_lsticky {state} True
task_kill_char_on_foot $d_lsticky {target} $scplayer
$shop_item_ammu = 1

:AMUNAT_3999
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @AMUNAT_4090
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$d_temp_float = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_alarm_ammu = 2
$weapon_offX = 0

:AMUNAT_4090
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_4241
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4241
$rifle_array = get_menu_item_accepted $main_menu_shops
set_var_text_label s$shop_keep_ammunation = $item_text_label($rifle_array,12s)
if 
  0 > $rifle_array
goto_if_false @AMUNAT_4170
$rifle_array = 0

:AMUNAT_4170
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_4202
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_4202
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4227
gosub @AMUNAT_11388

:AMUNAT_4227
$weapon_offX = 0
$shop_alarm_ammu = 6

:AMUNAT_4241
if 
  $shop_alarm_ammu == 6
goto_if_false @AMUNAT_5565
if 
  is_char_dead $d_lsticky
goto_if_false @AMUNAT_4320
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_4313
gosub @AMUNAT_8535

:AMUNAT_4313
goto @AMUNAT_640

:AMUNAT_4320
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_4363
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4363
gosub @AMUNAT_11388

:AMUNAT_4363
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_4429
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4405
$weapon_offX = 2

:AMUNAT_4405
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_4429
$weapon_offX = 1

:AMUNAT_4429
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_4542
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_4542
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4496
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_4496
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_4528
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_4528
$weapon_offX = 0
$shop_alarm_ammu = 5

:AMUNAT_4542
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_4834
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4834
$9629 = get_menu_item_accepted $sub_menu_shops
if 
  0 > $9629
goto_if_false @AMUNAT_4610
$9629 = 0

:AMUNAT_4610
set_var_int_to_var_int $weapon_obj = $9624($9629,3i)
s$d_vec_x = get_name_of_item $weapon_obj
$d_rstickx = get_price_of_item $weapon_obj
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_4679
$num_of_weapons = get_weapontype_slot $weapon_obj
$created_this_weapon = get_weapontype_model $weapon_obj
goto @AMUNAT_4687

:AMUNAT_4679
set_var_int_to_constant $created_this_weapon = 373

:AMUNAT_4687
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4719
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_4719
task_play_anim_non_interruptable $d_lsticky {animationName} "SHP_G_LIFT_IN" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} "SHP_G_LIFT_IN"
goto_if_false @AMUNAT_4827
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} "SHP_G_LIFT_IN"

:AMUNAT_4827
$weapon_offX = 3

:AMUNAT_4834
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_4934
if 
  is_char_playing_anim $d_lsticky {animationName} "SHP_G_LIFT_IN"
goto_if_false @AMUNAT_4906
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} "SHP_G_LIFT_IN"

:AMUNAT_4906
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_4934
$weapon_offX = 4

:AMUNAT_4934
if 
  $weapon_offX == 4
goto_if_false @AMUNAT_5110
$d_player_stick_position = create_object $created_this_weapon {x} $ammuX {y} $ammuY {z} $ammuZ
gosub @AMUNAT_8960
gosub @AMUNAT_9615
task_pick_up_object $d_lsticky {object} $d_player_stick_position {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_object_position $d_player_stick_position {state} False
task_play_anim_non_interruptable $d_lsticky {animationName} v$weapon_name {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} v$weapon_name
goto_if_false @AMUNAT_5103
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$weapon_name

:AMUNAT_5103
$weapon_offX = 5

:AMUNAT_5110
if 
  $weapon_offX == 5
goto_if_false @AMUNAT_5300
if 
  is_char_playing_anim $d_lsticky {animationName} v$weapon_name
goto_if_false @AMUNAT_5158
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$weapon_name

:AMUNAT_5158
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_5300
drop_object $d_lsticky {state} False
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationGunCollision
set_object_coordinates $d_player_stick_position {x} $weapon_offY {y} $weapon_offZ {z} $temp_slot
freeze_object_position $d_player_stick_position {state} True
task_play_anim_non_interruptable $d_lsticky {animationName} v$section_selected_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} v$section_selected_ammu
goto_if_false @AMUNAT_5293
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$section_selected_ammu

:AMUNAT_5293
$weapon_offX = 6

:AMUNAT_5300
if 
  $weapon_offX == 6
goto_if_false @AMUNAT_5565
if 
  is_char_playing_anim $d_lsticky {animationName} v$section_selected_ammu
goto_if_false @AMUNAT_5348
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$section_selected_ammu

:AMUNAT_5348
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_5565
task_play_anim_non_interruptable $d_lsticky {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_weapontype = 0.0
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5448
gosub @AMUNAT_7632

:AMUNAT_5448
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_5551
set_var_int_to_var_int $9569 = $num_of_weapons
$9569 += 1
$9563, $9564, $9565 = get_char_weapon_in_slot $scplayer {weaponSlotId} $9569
if 
  not is_int_var_equal_to_int_var $9563 == $weapon_obj
goto_if_false @AMUNAT_5551
if 
  $9564 > 0
goto_if_false @AMUNAT_5551
print_now 'AMMUA' {time} 5000 {flag} 1

:AMUNAT_5551
$shop_alarm_ammu = 7
$weapon_offX = 0

:AMUNAT_5565
if 
  $shop_alarm_ammu == 7
goto_if_false @AMUNAT_7597
if 
  is_char_dead $d_lsticky
goto_if_false @AMUNAT_5644
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_5637
gosub @AMUNAT_8535

:AMUNAT_5637
goto @AMUNAT_640

:AMUNAT_5644
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_5687
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5687
gosub @AMUNAT_7632

:AMUNAT_5687
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_5753
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_5729
$weapon_offX = 5

:AMUNAT_5729
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_5753
$weapon_offX = 1

:AMUNAT_5753
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_5899
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_5899
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_5820
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_5820
task_play_anim_non_interruptable $d_lsticky {animationName} v$model_index_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} v$model_index_ammu
goto_if_false @AMUNAT_5892
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$model_index_ammu

:AMUNAT_5892
$weapon_offX = 2

:AMUNAT_5899
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_6095
if 
  is_char_playing_anim $d_lsticky {animationName} v$model_index_ammu
goto_if_false @AMUNAT_5947
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$model_index_ammu

:AMUNAT_5947
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6095
task_pick_up_object $d_lsticky {object} $d_player_stick_position {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_object_position $d_player_stick_position {state} False
task_play_anim_non_interruptable $d_lsticky {animationName} v$9557 {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} v$9557
goto_if_false @AMUNAT_6088
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$9557

:AMUNAT_6088
$weapon_offX = 3

:AMUNAT_6095
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_6317
if 
  is_char_playing_anim $d_lsticky {animationName} v$9557
goto_if_false @AMUNAT_6143
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} v$9557

:AMUNAT_6143
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6317
drop_object $d_lsticky {state} False
set_object_coordinates $d_player_stick_position {x} $weapon_offY {y} $weapon_offZ {z} $temp_slot
freeze_object_position $d_player_stick_position {state} True
gosub @AMUNAT_8953
task_play_anim_non_interruptable $d_lsticky {animationName} "SHP_G_LIFT_OUT" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_weapontype = 0.0
if 
  is_char_playing_anim $d_lsticky {animationName} "SHP_G_LIFT_OUT"
goto_if_false @AMUNAT_6310
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} "SHP_G_LIFT_OUT"

:AMUNAT_6310
$weapon_offX = 4

:AMUNAT_6317
if 
  $weapon_offX == 4
goto_if_false @AMUNAT_6480
if 
  is_char_playing_anim $d_lsticky {animationName} "SHP_G_LIFT_OUT"
goto_if_false @AMUNAT_6391
$player_weapontype = get_char_anim_current_time $d_lsticky {animationName} "SHP_G_LIFT_OUT"

:AMUNAT_6391
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6480
task_play_anim_non_interruptable $d_lsticky {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_weapontype = 0.0
$weapon_offX = 0
$shop_alarm_ammu = 6

:AMUNAT_6480
if 
  $weapon_offX == 5
goto_if_false @AMUNAT_7048
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_7048
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$2753 = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $d_rstickx
goto_if_false @AMUNAT_6969
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_6791
$9564 = get_ammo_in_char_weapon $scplayer {weaponType} $weapon_obj
if 
  9999 > $9564
goto_if_false @AMUNAT_6705
buy_item $weapon_obj
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.GfriendIntro {overrideSilence} False {ignoreMute} False {frontEnd} True
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeapon
$weapon_offX = 6
TIMERB = 0
goto @AMUNAT_6784

:AMUNAT_6705
if 
  $weapon_on_counterZ_shops == 0
goto_if_false @AMUNAT_6784
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
print_now 'AMMUC' {time} 5000 {flag} 1
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.GfriendPhysiqueCritique {overrideSilence} False {ignoreMute} False {frontEnd} True
$weapon_offX = 0
$weapon_on_counterZ_shops = 1

:AMUNAT_6784
goto @AMUNAT_6962

:AMUNAT_6791
$weapon_on_counterX_shops = get_char_armour $scplayer
$weapon_on_counterY_shops = get_player_max_armour $player1
if 
  is_int_var_greater_than_int_var $weapon_on_counterY_shops > $weapon_on_counterX_shops
goto_if_false @AMUNAT_6883
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.GfriendIntro {overrideSilence} False {ignoreMute} False {frontEnd} True
buy_item $weapon_obj
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeapon
$weapon_offX = 6
TIMERB = 0
goto @AMUNAT_6962

:AMUNAT_6883
if 
  $weapon_on_counterZ_shops == 0
goto_if_false @AMUNAT_6962
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.GfriendPhysiqueCritique {overrideSilence} False {ignoreMute} False {frontEnd} True
print_now 'AMMUD' {time} 5000 {flag} 1
$weapon_offX = 0
$weapon_on_counterZ_shops = 1

:AMUNAT_6962
goto @AMUNAT_7048

:AMUNAT_6969
if 
  $flag_no_money_shops == 0
goto_if_false @AMUNAT_7048
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
$foodsmall_junkfud = set_char_say_context_important $d_lsticky {phrase} SpeechId.GfriendNegResponse {overrideSilence} False {ignoreMute} False {frontEnd} True
print_now 'SHOPNO' {time} 5000 {flag} 1
$weapon_offX = 0
$flag_no_money_shops = 1

:AMUNAT_7048
if 
  $weapon_offX == 6
goto_if_false @AMUNAT_7480
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_7098
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:AMUNAT_7098
if 
  $bought_menu_drawn_shops == 0
goto_if_false @AMUNAT_7466
$bought_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 20.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'WEAPON' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Center
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $d_rstickx
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:AMUNAT_7466
TIMERB = 0
$weapon_offX = 7

:AMUNAT_7480
if 
  $weapon_offX == 7
goto_if_false @AMUNAT_7597
if 
  TIMERB >= 1000
goto_if_false @AMUNAT_7597
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_7547
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_7547
$weapon_offX = 0
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_7597
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_7597
gosub @AMUNAT_7632

:AMUNAT_7597
goto @AMUNAT_7611

:AMUNAT_7604
gosub @AMUNAT_8535

:AMUNAT_7611
goto @AMUNAT_7625

:AMUNAT_7618
gosub @AMUNAT_8535

:AMUNAT_7625
goto @AMUNAT_640

:AMUNAT_7632
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_8271
print_help_forever 'AMMU_H3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_7723
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7723
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_7785
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7785
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_7847
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7847
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_7909
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7909
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_7964
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:AMUNAT_7964
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'WEAPON' {row0} s$d_vec_x {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Center
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $d_rstickx
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:AMUNAT_8271
return 

:AMUNAT_8273
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8305
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_8305
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8337
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_8337
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8369
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_8369
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8399
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_8399
if 
  $shop_alarm_ammu >= 1
goto_if_false @AMUNAT_8419
clear_help 

:AMUNAT_8419
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$d_temp_float = 0
$weapon_offX = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$shop_alarm_ammu = 2
return 

:AMUNAT_8535
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8567
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_8567
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8599
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_8599
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8631
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_8631
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8661
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_8661
if 
  $shop_alarm_ammu >= 1
goto_if_false @AMUNAT_8681
clear_help 

:AMUNAT_8681
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_item_ammu = 0
$d_temp_float = 0
$weapon_offX = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$shop_alarm_ammu = 0
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 350
mark_model_as_no_longer_needed 351
mark_model_as_no_longer_needed 342
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 373
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 364
use_text_commands False
mark_model_as_no_longer_needed $shopkeeper_model_shops
delete_char $d_lsticky
show_update_stats True
display_radar True
set_minigame_in_progress False
if 
  $range_weapons_open == 1
goto_if_false @AMUNAT_8949
print_help 'ANR_56'
$range_weapons_open = 0

:AMUNAT_8949
terminate_this_script 
return 

:AMUNAT_8953
delete_object $d_player_stick_position
return 

:AMUNAT_8960
if or
  is_int_var_equal_to_constant $created_this_weapon == 349
  is_int_var_equal_to_constant $created_this_weapon == 351
  is_int_var_equal_to_constant $created_this_weapon == 355
  is_int_var_equal_to_constant $created_this_weapon == 356
  is_int_var_equal_to_constant $created_this_weapon == 358
  is_int_var_equal_to_constant $created_this_weapon == 357
goto_if_false @AMUNAT_9113
set_var_text_label16 v$weapon_name = "SHP_2H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.231
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.636
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9113
if 
  is_int_var_equal_to_constant $created_this_weapon == 350
goto_if_false @AMUNAT_9226
set_var_text_label16 v$weapon_name = "SHP_2H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.231
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.636
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9226
if or
  is_int_var_equal_to_constant $created_this_weapon == 346
  is_int_var_equal_to_constant $created_this_weapon == 347
  is_int_var_equal_to_constant $created_this_weapon == 348
  is_int_var_equal_to_constant $created_this_weapon == 342
  is_int_var_equal_to_constant $created_this_weapon == 352
  is_int_var_equal_to_constant $created_this_weapon == 353
goto_if_false @AMUNAT_9379
set_var_text_label16 v$weapon_name = "SHP_1H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.108
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.654
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9379
if or
  is_int_var_equal_to_constant $created_this_weapon == 363
  is_int_var_equal_to_constant $created_this_weapon == 372
goto_if_false @AMUNAT_9500
set_var_text_label16 v$weapon_name = "SHP_1H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.108
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.654
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9500
if 
  is_int_var_equal_to_constant $created_this_weapon == 373
goto_if_false @AMUNAT_9613
set_var_text_label16 v$weapon_name = "SHP_AR_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_AR_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.175
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.676
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.5

:AMUNAT_9613
return 

:AMUNAT_9615
if or
  is_int_var_equal_to_constant $created_this_weapon == 349
  is_int_var_equal_to_constant $created_this_weapon == 351
  is_int_var_equal_to_constant $created_this_weapon == 355
  is_int_var_equal_to_constant $created_this_weapon == 356
  is_int_var_equal_to_constant $created_this_weapon == 358
  is_int_var_equal_to_constant $created_this_weapon == 357
goto_if_false @AMUNAT_9710
set_var_text_label16 v$model_index_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$9557 = "SHP_2H_RET"

:AMUNAT_9710
if 
  is_int_var_equal_to_constant $created_this_weapon == 350
goto_if_false @AMUNAT_9765
set_var_text_label16 v$model_index_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$9557 = "SHP_2H_RET"

:AMUNAT_9765
if or
  is_int_var_equal_to_constant $created_this_weapon == 346
  is_int_var_equal_to_constant $created_this_weapon == 347
  is_int_var_equal_to_constant $created_this_weapon == 348
  is_int_var_equal_to_constant $created_this_weapon == 342
  is_int_var_equal_to_constant $created_this_weapon == 352
  is_int_var_equal_to_constant $created_this_weapon == 353
goto_if_false @AMUNAT_9860
set_var_text_label16 v$model_index_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$9557 = "SHP_1H_RET"

:AMUNAT_9860
if or
  is_int_var_equal_to_constant $created_this_weapon == 363
  is_int_var_equal_to_constant $created_this_weapon == 372
goto_if_false @AMUNAT_9923
set_var_text_label16 v$model_index_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$9557 = "SHP_1H_RET"

:AMUNAT_9923
if 
  is_int_var_equal_to_constant $created_this_weapon == 373
goto_if_false @AMUNAT_9978
set_var_text_label16 v$model_index_ammu = "SHP_AR_RET_S"
set_var_text_label16 v$9557 = "SHP_AR_RET"

:AMUNAT_9978
return 

:AMUNAT_9980
$ammu_offX = 0
$pistol_name_menu = 0
$temp_var_shops = 0
$ammu_offY = 0
$ammu_offZ = 0
$ammu_camera_pointX = 0
$ammu_camera_pointY = 0
$ammu_camera_pointZ = 0
$player_armour = 0
$player_max_armour = 0
$flag_buy_ammo_flag = 0
$weapon_count_ammu = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0

:AMUNAT_10127
if 
  is_int_var_greater_than_int_var $d_rsticky > $ammu_offX
goto_if_false @AMUNAT_10904
$weapon_obj = get_item_in_shop $ammu_offX
switch_start $weapon_obj {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @AMUNAT_10890 {caseNum1} 16 {caseLabel1} @AMUNAT_10738 {caseNum2} 22 {caseLabel2} @AMUNAT_10282 {caseNum3} 23 {caseLabel3} @AMUNAT_10282 {caseNum4} 24 {caseLabel4} @AMUNAT_10282 {caseNum5} 25 {caseLabel5} @AMUNAT_10358 {caseNum6} 26 {caseLabel6} @AMUNAT_10358 {caseNum7} 27 {caseLabel7} @AMUNAT_10358
switch_continued 28 {caseLabel1} @AMUNAT_10434 {caseNum2} 29 {caseLabel2} @AMUNAT_10510 {caseNum3} 30 {caseLabel3} @AMUNAT_10586 {caseNum4} 31 {caseLabel4} @AMUNAT_10586 {caseNum5} 32 {caseLabel5} @AMUNAT_10434 {caseNum6} 33 {caseLabel6} @AMUNAT_10662 {caseNum7} 34 {caseLabel7} @AMUNAT_10662 {caseNum8} 39 {caseLabel8} @AMUNAT_10738 {caseNum9} 48 {caseLabel9} @AMUNAT_10814

:AMUNAT_10282
set_var_int_to_var_int $shotgun_name_menu($ammu_offY,3i) = $weapon_obj
$ammu_offY += 1
if 
  $no_of_pistols == 0
goto_if_false @AMUNAT_10351
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN1'
$pistol_name_menu += 1
$no_of_pistols = 1

:AMUNAT_10351
goto @AMUNAT_10890

:AMUNAT_10358
set_var_int_to_var_int $assault_name_menu($ammu_offZ,3i) = $weapon_obj
$ammu_offZ += 1
if 
  $no_of_shotguns == 0
goto_if_false @AMUNAT_10427
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN2'
$pistol_name_menu += 1
$no_of_shotguns = 1

:AMUNAT_10427
goto @AMUNAT_10890

:AMUNAT_10434
set_var_int_to_var_int $armour_name_menu($ammu_camera_pointX,2i) = $weapon_obj
$ammu_camera_pointX += 1
if 
  $no_of_microSMG == 0
goto_if_false @AMUNAT_10503
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN3'
$pistol_name_menu += 1
$no_of_microSMG = 1

:AMUNAT_10503
goto @AMUNAT_10890

:AMUNAT_10510
set_var_int_to_var_int $no_of_different_type_weapons($ammu_camera_pointY,1i) = $weapon_obj
$ammu_camera_pointY += 1
if 
  $no_of_SMG == 0
goto_if_false @AMUNAT_10579
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN4'
$pistol_name_menu += 1
$no_of_SMG = 1

:AMUNAT_10579
goto @AMUNAT_10890

:AMUNAT_10586
set_var_int_to_var_int $pistol_array($ammu_camera_pointZ,2i) = $weapon_obj
$ammu_camera_pointZ += 1
if 
  $no_of_assault == 0
goto_if_false @AMUNAT_10655
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN5'
$pistol_name_menu += 1
$no_of_assault = 1

:AMUNAT_10655
goto @AMUNAT_10890

:AMUNAT_10662
set_var_int_to_var_int $9619($player_max_armour,2i) = $weapon_obj
$player_max_armour += 1
if 
  $no_of_thrown == 0
goto_if_false @AMUNAT_10731
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN6'
$pistol_name_menu += 1
$no_of_thrown = 1

:AMUNAT_10731
goto @AMUNAT_10890

:AMUNAT_10738
set_var_int_to_var_int $9621($player_armour,2i) = $weapon_obj
$player_armour += 1
if 
  $no_of_rifle == 0
goto_if_false @AMUNAT_10807
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN7'
$pistol_name_menu += 1
$no_of_rifle = 1

:AMUNAT_10807
goto @AMUNAT_10890

:AMUNAT_10814
set_var_int_to_var_int $microSMG_array($flag_buy_ammo_flag,1i) = $weapon_obj
$flag_buy_ammo_flag += 1
if 
  $no_of_armour == 0
goto_if_false @AMUNAT_10883
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN8'
$pistol_name_menu += 1
$no_of_armour = 1

:AMUNAT_10883
goto @AMUNAT_10890

:AMUNAT_10890
$ammu_offX += 1
goto @AMUNAT_10127

:AMUNAT_10904
set_var_int_to_var_int $temp_var_shops = $pistol_name_menu

:AMUNAT_10912
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_10984
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_10912

:AMUNAT_10984
return 

:AMUNAT_10986
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_11386
print_help_forever 'AMMU_H'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_11077
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11077
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_11139
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11139
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_11201
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11201
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_11263
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11263
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_11318
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:AMUNAT_11318
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$main_menu_drawn_shops = 1

:AMUNAT_11386
return 

:AMUNAT_11388
$9627 = 0
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN1'
goto_if_false @AMUNAT_11493

:AMUNAT_11420
if 
  is_int_var_greater_than_int_var $ammu_offY > $9627
goto_if_false @AMUNAT_11493
s$d_vec_x = get_name_of_item $shotgun_name_menu($9627,3i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $shotgun_name_menu($9627,3i)
$9627 += 1
goto @AMUNAT_11420

:AMUNAT_11493
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN2'
goto_if_false @AMUNAT_11591

:AMUNAT_11518
if 
  is_int_var_greater_than_int_var $ammu_offZ > $9627
goto_if_false @AMUNAT_11591
s$d_vec_x = get_name_of_item $assault_name_menu($9627,3i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $assault_name_menu($9627,3i)
$9627 += 1
goto @AMUNAT_11518

:AMUNAT_11591
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN3'
goto_if_false @AMUNAT_11689

:AMUNAT_11616
if 
  is_int_var_greater_than_int_var $ammu_camera_pointX > $9627
goto_if_false @AMUNAT_11689
s$d_vec_x = get_name_of_item $armour_name_menu($9627,2i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $armour_name_menu($9627,2i)
$9627 += 1
goto @AMUNAT_11616

:AMUNAT_11689
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN4'
goto_if_false @AMUNAT_11787

:AMUNAT_11714
if 
  is_int_var_greater_than_int_var $ammu_camera_pointY > $9627
goto_if_false @AMUNAT_11787
s$d_vec_x = get_name_of_item $no_of_different_type_weapons($9627,1i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $no_of_different_type_weapons($9627,1i)
$9627 += 1
goto @AMUNAT_11714

:AMUNAT_11787
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN5'
goto_if_false @AMUNAT_11885

:AMUNAT_11812
if 
  is_int_var_greater_than_int_var $ammu_camera_pointZ > $9627
goto_if_false @AMUNAT_11885
s$d_vec_x = get_name_of_item $pistol_array($9627,2i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $pistol_array($9627,2i)
$9627 += 1
goto @AMUNAT_11812

:AMUNAT_11885
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN6'
goto_if_false @AMUNAT_11983

:AMUNAT_11910
if 
  is_int_var_greater_than_int_var $player_max_armour > $9627
goto_if_false @AMUNAT_11983
s$d_vec_x = get_name_of_item $9619($9627,2i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $9619($9627,2i)
$9627 += 1
goto @AMUNAT_11910

:AMUNAT_11983
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN7'
goto_if_false @AMUNAT_12081

:AMUNAT_12008
if 
  is_int_var_greater_than_int_var $player_armour > $9627
goto_if_false @AMUNAT_12081
s$d_vec_x = get_name_of_item $9621($9627,2i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $9621($9627,2i)
$9627 += 1
goto @AMUNAT_12008

:AMUNAT_12081
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN8'
goto_if_false @AMUNAT_12179

:AMUNAT_12106
if 
  is_int_var_greater_than_int_var $flag_buy_ammo_flag > $9627
goto_if_false @AMUNAT_12179
s$d_vec_x = get_name_of_item $microSMG_array($9627,1i)
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $microSMG_array($9627,1i)
$9627 += 1
goto @AMUNAT_12106

:AMUNAT_12179
set_var_int_to_var_int $temp_var_shops = $9627

:AMUNAT_12187
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_12259
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_12187

:AMUNAT_12259
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_12659
print_help_forever 'AMMU_H2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_12350
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12350
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_12412
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12412
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_12474
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12474
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_12536
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12536
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_12591
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:AMUNAT_12591
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$sub_menu_drawn_shops = 1

:AMUNAT_12659
return 
terminate_this_script 

//-------------External script 61 (TATTOO)---------------

:TATTO
$name_of_shop_out_anim_tattoo = 0
$9698 = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$tattoo_needleZ = 0
$thrown_array = 0.0
$9631 = 0.0
$armour_array = 0.0
$second_menu_weapon = 0.0
$tattoo_needle = 0.0
$9648 = 0.0
$player_in_view_mode_tattoo = 0.0
$shopkeeper_attacked_tattoo = 0.0
$9644 = 0.0
$shop_keep_tattoo = 0.0
$tattoo_price = 0.0
$stored_tattoo_shop = 0.0
$tattoo_name = 0
$shop_keep_tattooZ = 0
$shop_keep_tattooY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$9699 = 0
$9700 = 500
$name_of_object_out_anim_tattoo = 0
$9702 = 0
$player_has_tattoo_in_area = 0
$9713 = 0
$9715 = 0
$9716 = 0
$keep_offX = 0.0
$keep_offY = 0.0
$keep_offZ = 0.0
$thrown_array = 0.0
$9631 = 0.0
$armour_array = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$flag_tattoo = 0.0
$tattoo_needleX = 0.0
$tattoo_needleY = 0.0
$9717 = 0.0
$9718 = 0.0
$9719 = 0.0
set_var_int_to_constant $shopkeeper_model_shops = 180
request_model #TATTOO_KIT
load_texture_dictionary 'LD_TATT'
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 29200
load_all_models_now 
set_deatharrest_state 0
script_name 'TATTO'

:TATTO_513
wait 0
if 
  is_player_playing $player1
goto_if_false @TATTO_7603
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @TATTO_7589
if 
  $tattoo_name > 0
goto_if_false @TATTO_635
if 
  has_language_changed 
goto_if_false @TATTO_635
clear_help 
delete_menu $bought_menu_shops
delete_menu $sub_menu_shops
delete_menu $main_menu_shops
delete_menu $9714
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9713 = 0
$current_Language = get_current_language 

:TATTO_635
if 
  $tattoo_name == 0
goto_if_false @TATTO_938
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO2'
goto_if_false @TATTO_748
$9717 = 0.0
$9718 = 0.0
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = get_number_of_items_in_shop 
$tattoo_name = 1

:TATTO_748
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTOO'
goto_if_false @TATTO_843
$9717 = 0.0
$9718 = -18.266
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = get_number_of_items_in_shop 
$tattoo_name = 1

:TATTO_843
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO3'
goto_if_false @TATTO_938
$9717 = 0.0
$9718 = -35.32
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = get_number_of_items_in_shop 
$tattoo_name = 1

:TATTO_938
if 
  $tattoo_name == 1
goto_if_false @TATTO_1577
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_1460
$keep_offX = -203.318
add_float_var_to_float_var $keep_offX += $9717
$keep_offY = -7.062
add_float_var_to_float_var $keep_offY += $9718
$keep_offZ = 1001.28
add_float_var_to_float_var $keep_offZ += $9719
$thrown_array = -201.668
add_float_var_to_float_var $thrown_array += $9717
$9631 = -6.217
add_float_var_to_float_var $9631 += $9718
$armour_array = 1001.28
add_float_var_to_float_var $armour_array += $9719
$cam_offx = -203.2045
add_float_var_to_float_var $cam_offx += $9717
$cam_offy = -5.3316
add_float_var_to_float_var $cam_offy += $9718
$cam_offz = 1002.432
add_float_var_to_float_var $cam_offz += $9719
$flag_tattoo = -202.2993
add_float_var_to_float_var $flag_tattoo += $9717
$tattoo_needleX = -5.7376
add_float_var_to_float_var $tattoo_needleX += $9718
$tattoo_needleY = 1002.306
add_float_var_to_float_var $tattoo_needleY += $9719
set_var_float_to_var_float $9644 = $thrown_array
set_var_float_to_var_float $shop_keep_tattoo = $9631
set_var_float_to_var_float $tattoo_price = $armour_array
$tattoo_price += 1.0
set_var_float_to_var_float $stored_tattoo_shop = $second_menu_weapon
use_text_commands True
show_update_stats False
$temp_var_ammu = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $thrown_array {y} $9631 {z} $armour_array
set_char_only_damaged_by_player $temp_var_ammu {state} True
set_char_decision_maker $temp_var_ammu {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_heading $temp_var_ammu {heading} $second_menu_weapon
set_char_uses_collision_closest_object_of_type $thrown_array {y} $9631 {z} $armour_array {radius} 1.5 {modelId} #CJ_BARSTOOL {state} False {target} $temp_var_ammu
$shop_keep_tattooY = 0
$shop_keep_heading_tattoo = create_object_no_offset #TATTOO_KIT {x} $9644 {y} $shop_keep_tattoo {z} $tattoo_price
set_object_heading $shop_keep_heading_tattoo {heading} $stored_tattoo_shop
attach_char_to_object $temp_var_ammu {handle} $shop_keep_heading_tattoo {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 180.0 {weaponType} WeaponType.Unarmed
$blob_flag_shop = 1
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
TIMERA = 0
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.PlayerSick
$tattoo_needleZ = 1

:TATTO_1460
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_1577
if 
  TIMERA >= 300
goto_if_false @TATTO_1577
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_1563
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 4.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_1563
$tattoo_needleZ = 0
$tattoo_name = 2

:TATTO_1577
if 
  $tattoo_name == 2
goto_if_false @TATTO_1961
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1626
gosub @TATTO_7871

:TATTO_1626
if 
  not is_char_dead $temp_var_ammu
goto_if_false @TATTO_1916
if 
  $shop_keep_tattooY == 0
goto_if_false @TATTO_1864
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $temp_var_ammu
  has_char_been_damaged_by_weapon $temp_var_ammu {weaponType} WeaponType.AnyWeapon
goto_if_false @TATTO_1784
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.BoughtEnough
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_1763
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_DROP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_1763
task_hands_up $temp_var_ammu {time} -2
$shop_keep_tattooY = 1
goto @TATTO_1857

:TATTO_1784
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @TATTO_1857
if 
  can_player_start_mission $player1
goto_if_false @TATTO_1857
$tattoo_name = 3

:TATTO_1857
goto @TATTO_1909

:TATTO_1864
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1902
gosub @TATTO_7871

:TATTO_1902
goto @TATTO_513

:TATTO_1909
goto @TATTO_1961

:TATTO_1916
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1954
gosub @TATTO_7871

:TATTO_1954
goto @TATTO_513

:TATTO_1961
if 
  $tattoo_name == 3
goto_if_false @TATTO_2096
if 
  is_player_playing $player1
goto_if_false @TATTO_2082
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$tattoo_needleZ = 0
$tattoo_name = 4
goto @TATTO_2096

:TATTO_2082
gosub @TATTO_7871
goto @TATTO_513

:TATTO_2096
if 
  $tattoo_name == 4
goto_if_false @TATTO_2928
if 
  is_char_dead $temp_var_ammu
goto_if_false @TATTO_2175
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_2168
gosub @TATTO_7871

:TATTO_2168
goto @TATTO_513

:TATTO_2175
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_2637
if 
  TIMERA >= 300
goto_if_false @TATTO_2637
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $tattoo_needle
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$players_money, $temp_shopX, $temp_shopY = get_char_coordinates $temp_var_ammu
if or
  not is_float_var_equal_to_float_var $players_money == $thrown_array
  not is_float_var_equal_to_float_var $temp_shopX == $9631
  not is_float_var_equal_to_float_var $temp_shopY == $armour_array
goto_if_false @TATTO_2326
set_char_coordinates $temp_var_ammu {x} $thrown_array {y} $9631 {z} $armour_array
set_char_heading $temp_var_ammu {heading} $second_menu_weapon

:TATTO_2326
set_fixed_camera_position $cam_offx {y} $cam_offy {z} $cam_offz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $flag_tattoo {y} $tattoo_needleX {z} $tattoo_needleY {switchStyle} SwitchType.JumpCut
store_clothes_state 
$tattoo_needle_heading, $return_animation_time_tattoo = get_clothes_item $player1 {bodyPart} BodyPart.Torso
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Torso
build_player_model $player1
store_clothes_state 
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_IN_P" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$9648 = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_IN_P"
goto_if_false @TATTO_2514
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_IN_P"

:TATTO_2514
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_2577
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_IN_O" {animationFile} "TATTOOS" {frameDelta} 4.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_2577
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_IN_T" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 1

:TATTO_2637
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_2928
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_IN_P"
goto_if_false @TATTO_2707
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_IN_P"

:TATTO_2707
if 
  $9648 == 1.0
goto_if_false @TATTO_2928
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_2848
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_2848
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.ShowChangingroom
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_2928
if 
  $tattoo_name == 5
goto_if_false @TATTO_4723
if 
  is_char_dead $temp_var_ammu
goto_if_false @TATTO_3007
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_3000
gosub @TATTO_7871

:TATTO_3000
goto @TATTO_513

:TATTO_3007
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_3039
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_3039
$blob_flag_shop = 0
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_3112
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_3088
$tattoo_needleZ = 1

:TATTO_3088
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_3112
$tattoo_needleZ = 4

:TATTO_3112
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_3304
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_3304
$shop_main_item_picked_shops = get_menu_item_accepted $main_menu_shops
if 
  0 > $shop_main_item_picked_shops
goto_if_false @TATTO_3180
$shop_main_item_picked_shops = 0

:TATTO_3180
if 
  $shop_main_item_picked_shops == 9
goto_if_false @TATTO_3276
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3230
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_3230
if 
  $9713 == 0
goto_if_false @TATTO_3255
gosub @TATTO_12173

:TATTO_3255
$tattoo_needleZ = 0
$tattoo_name = 8
goto @TATTO_3304

:TATTO_3276
gosub @TATTO_8184
gosub @TATTO_8411
$player_has_tattoo_in_area = 0
gosub @TATTO_13312

:TATTO_3304
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_3336
$player_has_tattoo_in_area = 0
gosub @TATTO_13833

:TATTO_3336
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_3416
set_var_int_to_var_int $9696 = $shop_main_item_picked_shops
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3394
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:TATTO_3394
$9700 = 500
$tattoo_name = 6
$tattoo_needleZ = 0

:TATTO_3416
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_3522
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_3522
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3483
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_3483
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_3515
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_3515
$tattoo_needleZ = 5

:TATTO_3522
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_3836
$player_has_tattoo_in_area = 0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_3657
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$9648 = 0.0
$tattoo_needleZ = 6
goto @TATTO_3836

:TATTO_3657
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_3775
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_OUT_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_3775
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_OUT_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 7

:TATTO_3836
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_4129
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_3918
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_3918
if 
  $9648 == 1.0
goto_if_false @TATTO_4129
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_4057
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_OUT_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4057
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_OUT_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.RemoveTattoo
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 7

:TATTO_4129
if 
  $tattoo_needleZ == 7
goto_if_false @TATTO_4440
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_OUT_P"
goto_if_false @TATTO_4201
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_OUT_P"

:TATTO_4201
if 
  is_char_playing_anim $temp_var_ammu {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_4255
$player_in_view_mode_tattoo = get_char_anim_current_time $temp_var_ammu {animationName} "TAT_SIT_OUT_T"

:TATTO_4255
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_4398
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_4398
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4398
if 
  $9648 == 1.0
goto_if_false @TATTO_4440
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$tattoo_needleZ = 8

:TATTO_4440
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_4723
give_player_clothes $player1 {textureHash} $tattoo_needle_heading {modelHash} $return_animation_time_tattoo {bodyPart} BodyPart.Torso
build_player_model $player1
store_clothes_state 
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
if 
  is_char_playing_anim $temp_var_ammu {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_4573
$player_in_view_mode_tattoo = get_char_anim_current_time $temp_var_ammu {animationName} "TAT_SIT_OUT_T"

:TATTO_4573
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_4716
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_4716
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4716
$tattoo_name = 7

:TATTO_4723
if 
  $tattoo_name == 6
goto_if_false @TATTO_6145
if 
  is_char_dead $temp_var_ammu
goto_if_false @TATTO_4802
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_4795
gosub @TATTO_7871

:TATTO_4795
goto @TATTO_513

:TATTO_4802
$blob_flag_shop = 0
if 
  1 > $tattoo_needleZ
goto_if_false @TATTO_4834
gosub @TATTO_11383

:TATTO_4834
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_5030
$9699 = get_menu_item_selected $sub_menu_shops
if 
  0 > $9699
goto_if_false @TATTO_4885
$9699 = 0

:TATTO_4885
if 
  not is_int_var_equal_to_int_var $9700 == $9699
goto_if_false @TATTO_4919
gosub @TATTO_12058
set_var_int_to_var_int $9700 = $9699

:TATTO_4919
gosub @TATTO_15458
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_4978
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
gosub @TATTO_15458
$tattoo_needleZ = 1

:TATTO_4978
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_5030
gosub @TATTO_10501
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
$tattoo_needleZ = 8

:TATTO_5030
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_5125
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_5125
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5097
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:TATTO_5097
gosub @TATTO_12071
gosub @TATTO_10774
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_5125
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_5246
gosub @TATTO_15458
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_5246
gosub @TATTO_15458
$shop_sub_item_picked_shops = get_menu_item_accepted $sub_menu_shops
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @TATTO_5207
$shop_sub_item_picked_shops = 0

:TATTO_5207
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $main_menu_selection_ammu = $item_price($shop_sub_item_picked_shops,12i)
$2753 = store_score $player1
$tattoo_needleZ = 2

:TATTO_5246
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_5948
gosub @TATTO_15458
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $main_menu_selection_ammu
goto_if_false @TATTO_5875
gosub @TATTO_15458
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_5806
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5348
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_5348
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.GfriendIntro
buy_item $model_index
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5410
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_5410
if 
  $bought_menu_drawn_shops == 0
goto_if_false @TATTO_5778
$bought_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'TATTO' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $main_menu_selection_ammu
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:TATTO_5778
$player_has_tattoo_in_area = 0
gosub @TATTO_14228
$tattoo_needleZ = 3
goto @TATTO_5868

:TATTO_5806
if 
  $flag_bought_item_already_shops == 0
goto_if_false @TATTO_5868
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 5000 {flag} 1
$tattoo_needleZ = 0
$flag_bought_item_already_shops = 1

:TATTO_5868
goto @TATTO_5948

:TATTO_5875
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_5948
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.GfriendNegResponse
print_now 'SHOPNO' {time} 5000 {flag} 1
$tattoo_needleZ = 0
$flag_no_money_shops = 1

:TATTO_5948
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_5980
$player_has_tattoo_in_area = 0
gosub @TATTO_14370

:TATTO_5980
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_6019
$player_has_tattoo_in_area = 0
gosub @TATTO_14702
$tattoo_needleZ = 5

:TATTO_6019
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_6051
$player_has_tattoo_in_area = 0
gosub @TATTO_14840

:TATTO_6051
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_6145
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_6099
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_6099
$tattoo_needleZ = 0
$tattoo_name = 5
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_6145
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_6145
if 
  $tattoo_name == 7
goto_if_false @TATTO_6712
if 
  is_char_dead $temp_var_ammu
goto_if_false @TATTO_6224
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_6217
gosub @TATTO_7871

:TATTO_6217
goto @TATTO_513

:TATTO_6224
if 
  $shop_keep_tattooY == 0
goto_if_false @TATTO_6359
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $temp_var_ammu
  has_char_been_damaged_by_weapon $temp_var_ammu {weaponType} WeaponType.AnyWeapon
goto_if_false @TATTO_6359
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.BoughtEnough
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_6345
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_DROP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_6345
task_hands_up $temp_var_ammu {time} -2
$shop_keep_tattooY = 1

:TATTO_6359
if 
  is_char_playing_anim $temp_var_ammu {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_6413
$player_in_view_mode_tattoo = get_char_anim_current_time $temp_var_ammu {animationName} "TAT_SIT_OUT_T"

:TATTO_6413
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_6556
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_6556
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_6556
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @TATTO_6712
$tattoo_name = 2
$tattoo_needleZ = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
$blob_flag_shop = 1

:TATTO_6712
if 
  $tattoo_name == 8
goto_if_false @TATTO_7582
if 
  is_char_dead $temp_var_ammu
goto_if_false @TATTO_6791
gosub @TATTO_7617
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_6784
gosub @TATTO_7871

:TATTO_6784
goto @TATTO_513

:TATTO_6791
if 
  1 > $tattoo_needleZ
goto_if_false @TATTO_6834
if 
  $9713 == 0
goto_if_false @TATTO_6834
gosub @TATTO_12173

:TATTO_6834
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_6914
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_6883
$flag_no_money_shops = 0
$tattoo_needleZ = 1

:TATTO_6883
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_6914
$flag_no_money_shops = 0
$tattoo_needleZ = 2

:TATTO_6914
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_7034
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_7034
if 
  $9713 == 1
goto_if_false @TATTO_6981
delete_menu $9714
clear_help 
$9713 = 0

:TATTO_6981
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_7013
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_7013
$flag_no_money_shops = 0
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_7034
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_7300
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_7300
$2753 = store_score $player1
if 
  $2753 >= 400
goto_if_false @TATTO_7227
$9716 = get_menu_item_accepted $9714
if 
  0 > $9716
goto_if_false @TATTO_7129
$9716 = 0

:TATTO_7129
if 
  $9713 == 1
goto_if_false @TATTO_7161
delete_menu $9714
clear_help 
$9713 = 0

:TATTO_7161
set_var_int_to_var_int $area_to_look_at_shops = $9703($9716,9i)
gosub @TATTO_8411
add_score $player1 {money} -400
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.BoxingCheer
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
$tattoo_needleZ = 3
goto @TATTO_7300

:TATTO_7227
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_7300
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $temp_var_ammu {phrase} SpeechId.GfriendNegResponse
print_now 'SHOPNO' {time} 5000 {flag} 1
$tattoo_needleZ = 0
$flag_no_money_shops = 1

:TATTO_7300
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_7332
$player_has_tattoo_in_area = 1
gosub @TATTO_13312

:TATTO_7332
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_7364
$player_has_tattoo_in_area = 1
gosub @TATTO_13833

:TATTO_7364
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_7415
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} $area_to_look_at_shops
$player_has_tattoo_in_area = 1
gosub @TATTO_14228
$tattoo_needleZ = 6

:TATTO_7415
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_7447
$player_has_tattoo_in_area = 1
gosub @TATTO_14370

:TATTO_7447
if 
  $tattoo_needleZ == 7
goto_if_false @TATTO_7486
$player_has_tattoo_in_area = 1
gosub @TATTO_14702
$tattoo_needleZ = 8

:TATTO_7486
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_7518
$player_has_tattoo_in_area = 1
gosub @TATTO_14840

:TATTO_7518
if 
  $tattoo_needleZ == 9
goto_if_false @TATTO_7582
$tattoo_needleZ = 0
$tattoo_name = 5
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_7582
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_7582
goto @TATTO_7596

:TATTO_7589
gosub @TATTO_7871

:TATTO_7596
goto @TATTO_7610

:TATTO_7603
gosub @TATTO_7871

:TATTO_7610
goto @TATTO_513

:TATTO_7617
if 
  $tattoo_name >= 1
goto_if_false @TATTO_7637
clear_help 

:TATTO_7637
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7691
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_7691
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7723
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_7723
if 
  $9713 == 1
goto_if_false @TATTO_7755
delete_menu $9714
clear_help 
$9713 = 0

:TATTO_7755
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_7785
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_7785
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$tattoo_name = 2
$tattoo_needleZ = 0
return 

:TATTO_7871
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
$blob_flag_shop = 1
$shop_keep_tattooY = 0
$tattoo_name = 0
$tattoo_needleZ = 0
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7953
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_7953
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7985
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_7985
if 
  $9713 == 1
goto_if_false @TATTO_8017
delete_menu $9714
clear_help 
$9713 = 0

:TATTO_8017
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_8047
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_8047
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
if 
  not is_char_dead $temp_var_ammu
goto_if_false @TATTO_8138
detach_char_from_car $temp_var_ammu

:TATTO_8138
delete_object $shop_keep_heading_tattoo
mark_model_as_no_longer_needed #TATTOO_KIT
delete_char $temp_var_ammu
mark_model_as_no_longer_needed $shopkeeper_model_shops
remove_texture_dictionary 
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:TATTO_8184
if 
  $shop_main_item_picked_shops == 0
goto_if_false @TATTO_8209
set_var_int_to_constant $area_to_look_at_shops = 4

:TATTO_8209
if 
  $shop_main_item_picked_shops == 1
goto_if_false @TATTO_8234
set_var_int_to_constant $area_to_look_at_shops = 5

:TATTO_8234
if 
  $shop_main_item_picked_shops == 2
goto_if_false @TATTO_8259
set_var_int_to_constant $area_to_look_at_shops = 6

:TATTO_8259
if 
  $shop_main_item_picked_shops == 3
goto_if_false @TATTO_8284
set_var_int_to_constant $area_to_look_at_shops = 7

:TATTO_8284
if 
  $shop_main_item_picked_shops == 4
goto_if_false @TATTO_8309
set_var_int_to_constant $area_to_look_at_shops = 8

:TATTO_8309
if 
  $shop_main_item_picked_shops == 5
goto_if_false @TATTO_8334
set_var_int_to_constant $area_to_look_at_shops = 9

:TATTO_8334
if 
  $shop_main_item_picked_shops == 6
goto_if_false @TATTO_8359
set_var_int_to_constant $area_to_look_at_shops = 10

:TATTO_8359
if 
  $shop_main_item_picked_shops == 7
goto_if_false @TATTO_8384
set_var_int_to_constant $area_to_look_at_shops = 11

:TATTO_8384
if 
  $shop_main_item_picked_shops == 8
goto_if_false @TATTO_8409
set_var_int_to_constant $area_to_look_at_shops = 12

:TATTO_8409
return 

:TATTO_8411
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 4
goto_if_false @TATTO_8646
$area_looked_for_shops = 4
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARML_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARML_IN_O"
set_var_text_label16 v$9672 = "TAT_ARML_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARML_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARML_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARML_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARML_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARML_OUT_O"

:TATTO_8646
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 5
goto_if_false @TATTO_8881
$area_looked_for_shops = 5
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARML_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARML_IN_O"
set_var_text_label16 v$9672 = "TAT_ARML_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARML_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARML_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARML_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARML_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARML_OUT_O"

:TATTO_8881
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 6
goto_if_false @TATTO_9116
$area_looked_for_shops = 6
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARMR_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARMR_IN_O"
set_var_text_label16 v$9672 = "TAT_ARMR_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARMR_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARMR_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARMR_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARMR_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARMR_OUT_O"

:TATTO_9116
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 7
goto_if_false @TATTO_9351
$area_looked_for_shops = 7
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARMR_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARMR_IN_O"
set_var_text_label16 v$9672 = "TAT_ARMR_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARMR_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARMR_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARMR_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARMR_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARMR_OUT_O"

:TATTO_9351
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
goto_if_false @TATTO_9586
$area_looked_for_shops = 8
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_BACK_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BACK_IN_O"
set_var_text_label16 v$9672 = "TAT_BACK_POSE_P"
set_var_text_label16 v$9676 = "TAT_BACK_POSE_T"
set_var_text_label16 v$9680 = "TAT_BACK_POSE_O"
set_var_text_label16 v$9684 = "TAT_BACK_OUT_P"
set_var_text_label16 v$9688 = "TAT_BACK_OUT_T"
set_var_text_label16 v$9692 = "TAT_BACK_OUT_O"

:TATTO_9586
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 9
goto_if_false @TATTO_9812
$area_looked_for_shops = 9
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_CHE_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_CHE_POSE_T"
set_var_text_label16 v$9680 = "TAT_CHE_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_CHE_OUT_T"
set_var_text_label16 v$9692 = "TAT_CHE_OUT_O"

:TATTO_9812
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 10
goto_if_false @TATTO_10038
$area_looked_for_shops = 10
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_CHE_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_CHE_POSE_T"
set_var_text_label16 v$9680 = "TAT_CHE_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_CHE_OUT_T"
set_var_text_label16 v$9692 = "TAT_CHE_OUT_O"

:TATTO_10038
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 11
goto_if_false @TATTO_10264
$area_looked_for_shops = 11
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BEL_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BEL_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_BEL_POSE_T"
set_var_text_label16 v$9680 = "TAT_BEL_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_BEL_OUT_T"
set_var_text_label16 v$9692 = "TAT_BEL_OUT_O"

:TATTO_10264
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_10499
$area_looked_for_shops = 12
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_BACK_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BACK_IN_O"
set_var_text_label16 v$9672 = "TAT_BACK_POSE_P"
set_var_text_label16 v$9676 = "TAT_BACK_POSE_T"
set_var_text_label16 v$9680 = "TAT_BACK_POSE_O"
set_var_text_label16 v$9684 = "TAT_BACK_OUT_P"
set_var_text_label16 v$9688 = "TAT_BACK_OUT_T"
set_var_text_label16 v$9692 = "TAT_BACK_OUT_O"

:TATTO_10499
return 

:TATTO_10501
$item_no_shops = 0
$9698 = 0

:TATTO_10515
if 
  is_int_var_greater_than_int_var $name_of_shop_out_anim_tattoo > $item_no_shops
goto_if_false @TATTO_10692
$model_index = get_item_in_shop $item_no_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
if 
  is_int_var_equal_to_int_var $modelid_shops == $area_looked_for_shops
goto_if_false @TATTO_10678
set_var_int_to_var_int $item_model_index($9698,12i) = $model_index
s$9634 = get_name_of_item $model_index
$main_menu_selection_ammu = get_price_of_item $model_index
set_var_int_to_var_int $item_price($9698,12i) = $main_menu_selection_ammu
set_var_text_label $item_text_label($9698,12s) = s$9634
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_10660
$item_hilight_shops($9698,12i) = 0
goto @TATTO_10671

:TATTO_10660
$item_hilight_shops($9698,12i) = 1

:TATTO_10671
$9698 += 1

:TATTO_10678
$item_no_shops += 1
goto @TATTO_10515

:TATTO_10692
set_var_int_to_var_int $temp_var_shops = $9698

:TATTO_10700
if 
  12 > $temp_var_shops
goto_if_false @TATTO_10772
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_10700

:TATTO_10772
return 

:TATTO_10774
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_11381
print_help_forever 'TATTA'
set_var_text_label s$ITEM1 = 'LARMTP'
set_var_text_label s$ITEM2 = 'LARMLW'
set_var_text_label s$ITEM3 = 'RARMTP'
set_var_text_label s$ITEM4 = 'RARMLW'
set_var_text_label s$ITEM5 = 'BACK'
set_var_text_label s$ITEM6 = 'LCHEST'
set_var_text_label s$ITEM7 = 'RCHEST'
set_var_text_label s$ITEM8 = 'BELLY'
set_var_text_label s$ITEM9 = 'LBACK'
if 
  $9702 > 0
goto_if_false @TATTO_10968
set_var_text_label s$ITEM10 = 'TATREM'
goto @TATTO_10982

:TATTO_10968
set_var_text_label s$ITEM10 = 'DUMMY'

:TATTO_10982
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11072
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11313

:TATTO_11072
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11134
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11313

:TATTO_11134
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11196
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11313

:TATTO_11196
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11258
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11313

:TATTO_11258
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11313
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:TATTO_11313
set_menu_column_orientation $main_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$ITEM1 {row1} s$ITEM2 {row2} s$ITEM3 {row3} s$ITEM4 {row4} s$ITEM5 {row5} s$ITEM6 {row6} s$ITEM7 {row7} s$ITEM8 {row8} s$ITEM9 {row9} s$ITEM10 {row10} s$ITEM11 {row11} s$ITEM12
$main_menu_drawn_shops = 1

:TATTO_11381
return 

:TATTO_11383
if 
  $sub_menu_drawn_shops == 0
goto_if_false @TATTO_12056
print_help_forever 'TATTB'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11474
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11715

:TATTO_11474
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11536
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11715

:TATTO_11536
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11598
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11715

:TATTO_11598
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11660
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11715

:TATTO_11660
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11715
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:TATTO_11715
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'TATTO' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $sub_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $sub_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$price_counter = 0

:TATTO_11916
if 
  is_int_var_greater_than_int_var $9698 > $price_counter
goto_if_false @TATTO_11975
set_menu_item_with_number $sub_menu_shops {column} 1 {row} $price_counter {gxt} 'DOLLAR' {number} $item_price($price_counter,12i)
$price_counter += 1
goto @TATTO_11916

:TATTO_11975
$temp_var_shops = 0

:TATTO_11982
if 
  is_int_var_greater_than_int_var $9698 > $temp_var_shops
goto_if_false @TATTO_12030
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @TATTO_11982

:TATTO_12030
set_menu_column_width $sub_menu_shops {column} 0 {width} 140
set_menu_column_width $sub_menu_shops {column} 1 {width} 46
$sub_menu_drawn_shops = 1

:TATTO_12056
return 

:TATTO_12058
load_sprite 1 {spriteName} $item_text_label($9699,12s)
return 

:TATTO_12071
$temp_var_shops = 0
$9702 = 0

:TATTO_12085
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12171
set_var_int_to_constant $name_of_object_out_anim_tattoo = 4
add_int_var_to_int_var $name_of_object_out_anim_tattoo += $temp_var_shops
$object_animation_time_tattoo, $shop_keep_animation_time_tattoo = get_clothes_item $player1 {bodyPart} $name_of_object_out_anim_tattoo
if 
  $object_animation_time_tattoo <> 0
goto_if_false @TATTO_12157
$9702 += 1

:TATTO_12157
$temp_var_shops += 1
goto @TATTO_12085

:TATTO_12171
return 

:TATTO_12173
if 
  $9713 == 0
goto_if_false @TATTO_13310
$9715 = 0
$temp_var_shops = 0

:TATTO_12205
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12656
set_var_int_to_constant $name_of_object_out_anim_tattoo = 4
add_int_var_to_int_var $name_of_object_out_anim_tattoo += $temp_var_shops
$object_animation_time_tattoo, $shop_keep_animation_time_tattoo = get_clothes_item $player1 {bodyPart} $name_of_object_out_anim_tattoo
if 
  $object_animation_time_tattoo <> 0
goto_if_false @TATTO_12642
set_var_int_to_var_int $9703($9715,9i) = $name_of_object_out_anim_tattoo
switch_start $name_of_object_out_anim_tattoo {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @TATTO_12635 {caseNum1} 4 {caseLabel1} @TATTO_12410 {caseNum2} 5 {caseLabel2} @TATTO_12435 {caseNum3} 6 {caseLabel3} @TATTO_12460 {caseNum4} 7 {caseLabel4} @TATTO_12485 {caseNum5} 8 {caseLabel5} @TATTO_12510 {caseNum6} 9 {caseLabel6} @TATTO_12535 {caseNum7} 10 {caseLabel7} @TATTO_12560
switch_continued 11 {caseLabel1} @TATTO_12585 {caseNum2} 12 {caseLabel2} @TATTO_12610 {caseNum3} -1 {caseLabel3} @TATTO_12635 {caseNum4} -1 {caseLabel4} @TATTO_12635 {caseNum5} -1 {caseLabel5} @TATTO_12635 {caseNum6} -1 {caseLabel6} @TATTO_12635 {caseNum7} -1 {caseLabel7} @TATTO_12635 {caseNum8} -1 {caseLabel8} @TATTO_12635 {caseNum9} -1 {caseLabel9} @TATTO_12635

:TATTO_12410
set_var_text_label $item_text_label($9715,12s) = 'LARMTP'
goto @TATTO_12635

:TATTO_12435
set_var_text_label $item_text_label($9715,12s) = 'LARMLW'
goto @TATTO_12635

:TATTO_12460
set_var_text_label $item_text_label($9715,12s) = 'RARMTP'
goto @TATTO_12635

:TATTO_12485
set_var_text_label $item_text_label($9715,12s) = 'RARMLW'
goto @TATTO_12635

:TATTO_12510
set_var_text_label $item_text_label($9715,12s) = 'BACK'
goto @TATTO_12635

:TATTO_12535
set_var_text_label $item_text_label($9715,12s) = 'LCHEST'
goto @TATTO_12635

:TATTO_12560
set_var_text_label $item_text_label($9715,12s) = 'RCHEST'
goto @TATTO_12635

:TATTO_12585
set_var_text_label $item_text_label($9715,12s) = 'BELLY'
goto @TATTO_12635

:TATTO_12610
set_var_text_label $item_text_label($9715,12s) = 'LBACK'
goto @TATTO_12635

:TATTO_12635
$9715 += 1

:TATTO_12642
$temp_var_shops += 1
goto @TATTO_12205

:TATTO_12656
set_var_int_to_var_int $temp_var_shops = $9715

:TATTO_12664
if 
  12 > $temp_var_shops
goto_if_false @TATTO_12714
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_12664

:TATTO_12714
print_help_forever 'TATTA'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_12787
$9714 = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13028

:TATTO_12787
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_12849
$9714 = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13028

:TATTO_12849
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_12911
$9714 = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13028

:TATTO_12911
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_12973
$9714 = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13028

:TATTO_12973
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_13028
$9714 = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:TATTO_13028
set_menu_column_orientation $9714 {column} 0 {alignment} Align.Left
set_menu_column $9714 {column} 0 {title} 'TATTO' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $9714 {column} 1 {alignment} Align.Right
set_menu_column $9714 {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$price_counter = 0

:TATTO_13229
if 
  is_int_var_greater_than_int_var $9715 > $price_counter
goto_if_false @TATTO_13284
set_menu_item_with_number $sub_menu_shops {column} 1 {row} $price_counter {gxt} 'DOLLAR' {number} 400
$price_counter += 1
goto @TATTO_13229

:TATTO_13284
set_menu_column_width $9714 {column} 0 {width} 140
set_menu_column_width $9714 {column} 1 {width} 46
$9713 = 1

:TATTO_13310
return 

:TATTO_13312
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_13586
if 
  not is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_13540
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_IN_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$9648 = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_IN_P"
goto_if_false @TATTO_13494
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_IN_P"

:TATTO_13494
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13526
$tattoo_needleZ = 4
goto @TATTO_13533

:TATTO_13526
$tattoo_needleZ = 2

:TATTO_13533
goto @TATTO_13579

:TATTO_13540
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13572
$tattoo_needleZ = 5
goto @TATTO_13579

:TATTO_13572
$tattoo_needleZ = 3

:TATTO_13579
goto @TATTO_13831

:TATTO_13586
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_13792
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$9648 = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_13746
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_13746
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13778
$tattoo_needleZ = 4
goto @TATTO_13785

:TATTO_13778
$tattoo_needleZ = 2

:TATTO_13785
goto @TATTO_13831

:TATTO_13792
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13824
$tattoo_needleZ = 5
goto @TATTO_13831

:TATTO_13824
$tattoo_needleZ = 3

:TATTO_13831
return 

:TATTO_13833
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_14047
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_IN_P"
goto_if_false @TATTO_13920
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_IN_P"

:TATTO_13920
if 
  $9648 == 1.0
goto_if_false @TATTO_14040
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14033
$tattoo_needleZ = 5
goto @TATTO_14040

:TATTO_14033
$tattoo_needleZ = 3

:TATTO_14040
goto @TATTO_14226

:TATTO_14047
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_14111
$9648 = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_14111
if 
  $9648 == 1.0
goto_if_false @TATTO_14226
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14219
$tattoo_needleZ = 5
goto @TATTO_14226

:TATTO_14219
$tattoo_needleZ = 3

:TATTO_14226
return 

:TATTO_14228
task_play_anim_non_interruptable $scplayer {animationName} v$tattoo_heading {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot4
$9648 = 0.0
task_play_anim_non_interruptable $temp_var_ammu {animationName} v$shop_progress_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_14368
play_object_anim $shop_keep_heading_tattoo {animationName} v$model_tattoo2 {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14368
return 

:TATTO_14370
if 
  is_char_playing_anim $scplayer {animationName} v$tattoo_heading
goto_if_false @TATTO_14400
$9648 = get_char_anim_current_time $scplayer {animationName} v$tattoo_heading

:TATTO_14400
if 
  is_char_playing_anim $temp_var_ammu {animationName} v$shop_progress_tattoo
goto_if_false @TATTO_14430
$9648 = get_char_anim_current_time $temp_var_ammu {animationName} v$shop_progress_tattoo

:TATTO_14430
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_14476
if 
  is_object_playing_anim $shop_keep_heading_tattoo {animationName} v$model_tattoo2
goto_if_false @TATTO_14476
$shopkeeper_attacked_tattoo = get_object_anim_current_time $shop_keep_heading_tattoo {animationName} v$model_tattoo2

:TATTO_14476
if 
  $9648 == 1.0
goto_if_false @TATTO_14700
task_play_anim_non_interruptable $scplayer {animationName} v$9672 {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
task_play_anim_non_interruptable $temp_var_ammu {animationName} v$9676 {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_14633
play_object_anim $shop_keep_heading_tattoo {animationName} v$9680 {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14633
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14686
$tattoo_needleZ = 7
goto @TATTO_14700

:TATTO_14686
gosub @TATTO_10501
$tattoo_needleZ = 4

:TATTO_14700
return 

:TATTO_14702
task_play_anim_non_interruptable $scplayer {animationName} v$9684 {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$9648 = 0.0
task_play_anim_non_interruptable $temp_var_ammu {animationName} v$9688 {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_14838
play_object_anim $shop_keep_heading_tattoo {animationName} v$9692 {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14838
return 

:TATTO_14840
if 
  is_char_playing_anim $scplayer {animationName} v$9684
goto_if_false @TATTO_14870
$9648 = get_char_anim_current_time $scplayer {animationName} v$9684

:TATTO_14870
if 
  is_char_playing_anim $temp_var_ammu {animationName} v$9688
goto_if_false @TATTO_14900
$player_in_view_mode_tattoo = get_char_anim_current_time $temp_var_ammu {animationName} v$9688

:TATTO_14900
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_OUT_P"
goto_if_false @TATTO_15200
if 
  $9648 == 1.0
goto_if_false @TATTO_15052
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_15045
$tattoo_needleZ = 9
goto @TATTO_15052

:TATTO_15045
$tattoo_needleZ = 6

:TATTO_15052
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_15193
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_15193
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_15193
goto @TATTO_15456

:TATTO_15200
if 
  $9648 == 1.0
goto_if_false @TATTO_15315
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_15308
$tattoo_needleZ = 9
goto @TATTO_15315

:TATTO_15308
$tattoo_needleZ = 6

:TATTO_15315
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_15456
task_play_anim_non_interruptable $temp_var_ammu {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$player_in_view_mode_tattoo = 0.0
if 
  does_object_exist $shop_keep_heading_tattoo
goto_if_false @TATTO_15456
play_object_anim $shop_keep_heading_tattoo {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$shopkeeper_attacked_tattoo = 0.0

:TATTO_15456
return 

:TATTO_15458
set_sprites_draw_before_fade True
draw_rect 280.0 {y} 58.0 {width} 70.0 {height} 70.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} 280.0 {offsetTop} 58.0 {width} 64.0 {height} 64.0 {r} 255 {g} 255 {b} 255 {a} 200
return 
terminate_this_script 

//-------------External script 62 (BARBER)---------------

:BARB
$unk9747 = 0.0
$flag_viewed_hair = 0.0
$player_walk_barbers = 0.0
$player_task_progress_barber = 0.0
$player_heading_barbers = 0.0
$name_of_anim_barbers = 0.0
$9755 = 0.0
$9756 = 0.0
$9757 = 0.0
$getin_chaircam_offX = 0.0
$getin_chaircam_offY = 0.0
$getin_chaircam_offZ = 0.0
$getin_chaircam_lookat_offX = 0.0
$getin_chaircam_lookat_offY = 0.0
$getin_chaircam_lookat_offZ = 0.0
$chaircam_offX = 0.0
$chaircam_offY = 0.0
$chaircam_offZ = 0.0
$chaircam_lookat_offX = 0.0
$chaircam_lookat_offY = 0.0
$chaircam_lookat_offZ = 0.0
$hairstyle_cam_offX = 0.0
$hairstyle_cam_offY = 0.0
$hairstyle_cam_offZ = 0.0
$hairstyle_cam_lookat_offX = 0.0
$hairstyle_cam_lookat_offY = 0.0
$hairstyle_cam_lookat_offZ = 0.0
$getout_chair_cam_offX = 0.0
$getout_chair_cam_offY = 0.0
$getout_chair_cam_offZ = 0.0
$flag_barber = 0.0
$9743 = 0
$getout_chair_cam_lookat_offX = 0.0
$getout_chair_cam_lookat_offY = 0.0
$getout_chair_cam_lookat_offZ = 0.0
$leave_barb_cam_offX = 0.0
$leave_barb_cam_offY = 0.0
$leave_barb_cam_offZ = 0.0
$9741 = 0
$remove_menu_item_selected = 0
$num_of_hairstyles = 0.0
$unk9728 = 0
$modelid_barber = 0
$component_barber = 0.0
$barber_movein_barbers = 0.0
$return_animation_time_barbers = 0.0
$random_number_barbers = 0.0
$stored_barbers_shop = 0
$flag_food_message = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$walk_offX_barbers = 0
$walk2_offX_barbers = 0
$walk2_offY_barbers = 0
$walk2_offZ_barbers = 0
$barber_shop_offsetY = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_551
set_var_int_to_constant $shopkeeper_model_shops = 156

:BARB_551
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_584
set_var_int_to_constant $shopkeeper_model_shops = 177

:BARB_584
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_617
set_var_int_to_constant $shopkeeper_model_shops = 176

:BARB_617
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 27400
load_all_models_now 
set_deatharrest_state 0
script_name 'BARB'

:BARB_646
wait 0
if 
  is_player_playing $player1
goto_if_false @BARB_7191
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @BARB_7177
if 
  $modelid_barber > 0
goto_if_false @BARB_744
if 
  has_language_changed 
goto_if_false @BARB_744
clear_help 
delete_menu $cost_menu_shops
delete_menu $main_menu_shops
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$current_Language = get_current_language 

:BARB_744
if 
  $modelid_barber == 0
goto_if_false @BARB_1008
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_844
$leave_barb_cam_lookat_offX = 0.0
$leave_barb_cam_lookat_offY = 0.0
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = get_number_of_items_in_shop 
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_844
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_926
$leave_barb_cam_lookat_offX = 6.987
$leave_barb_cam_lookat_offY = -61.401
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = get_number_of_items_in_shop 
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_926
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_1008
$leave_barb_cam_lookat_offX = 0.371
$leave_barb_cam_lookat_offY = -31.421
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = get_number_of_items_in_shop 
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_1008
if 
  $modelid_barber == 1
goto_if_false @BARB_2023
use_text_commands True
show_update_stats False
store_clothes_state 
$keep_offX = 414.3
add_float_var_to_float_var $keep_offX += $leave_barb_cam_lookat_offX
$keep_offY = -19.9
add_float_var_to_float_var $keep_offY += $leave_barb_cam_lookat_offY
$keep_offZ = 1000.806
add_float_var_to_float_var $keep_offZ += $leave_barb_cam_lookat_offZ
$flag_barber = 90.0
$component_barber = 414.3
$component_barber -= 0.027
add_float_var_to_float_var $component_barber += $leave_barb_cam_lookat_offX
$barber_movein_barbers = -19.9
$barber_movein_barbers += 1.898
add_float_var_to_float_var $barber_movein_barbers += $leave_barb_cam_lookat_offY
$return_animation_time_barbers = 1000.86
$random_number_barbers = 180.0
$unk9747 = 412.0009
add_float_var_to_float_var $unk9747 += $leave_barb_cam_lookat_offX
$flag_viewed_hair = -19.8018
add_float_var_to_float_var $flag_viewed_hair += $leave_barb_cam_lookat_offY
$player_walk_barbers = 1001.765
add_float_var_to_float_var $player_walk_barbers += $leave_barb_cam_lookat_offZ
$player_task_progress_barber = 412.8502
add_float_var_to_float_var $player_task_progress_barber += $leave_barb_cam_lookat_offX
$player_heading_barbers = -19.2749
add_float_var_to_float_var $player_heading_barbers += $leave_barb_cam_lookat_offY
$name_of_anim_barbers = 1001.797
add_float_var_to_float_var $name_of_anim_barbers += $leave_barb_cam_lookat_offZ
$9755 = 414.9329
add_float_var_to_float_var $9755 += $leave_barb_cam_lookat_offX
$9756 = -18.4475
add_float_var_to_float_var $9756 += $leave_barb_cam_lookat_offY
$9757 = 1002.286
add_float_var_to_float_var $9757 += $leave_barb_cam_lookat_offZ
$getin_chaircam_offX = 414.0564
add_float_var_to_float_var $getin_chaircam_offX += $leave_barb_cam_lookat_offX
$getin_chaircam_offY = -18.7965
add_float_var_to_float_var $getin_chaircam_offY += $leave_barb_cam_lookat_offY
$getin_chaircam_offZ = 1001.955
add_float_var_to_float_var $getin_chaircam_offZ += $leave_barb_cam_lookat_offZ
$getin_chaircam_lookat_offX = 412.649
add_float_var_to_float_var $getin_chaircam_lookat_offX += $leave_barb_cam_lookat_offX
$getin_chaircam_lookat_offY = -19.7078
add_float_var_to_float_var $getin_chaircam_lookat_offY += $leave_barb_cam_lookat_offY
$getin_chaircam_lookat_offZ = 1001.992
add_float_var_to_float_var $getin_chaircam_lookat_offZ += $leave_barb_cam_lookat_offZ
$chaircam_offX = 413.3581
add_float_var_to_float_var $chaircam_offX += $leave_barb_cam_lookat_offX
$chaircam_offY = -19.0046
add_float_var_to_float_var $chaircam_offY += $leave_barb_cam_lookat_offY
$chaircam_offZ = 1002.043
add_float_var_to_float_var $chaircam_offZ += $leave_barb_cam_lookat_offZ
$chaircam_lookat_offX = 414.5509
add_float_var_to_float_var $chaircam_lookat_offX += $leave_barb_cam_lookat_offX
$chaircam_lookat_offY = -20.8773
add_float_var_to_float_var $chaircam_lookat_offY += $leave_barb_cam_lookat_offY
$chaircam_lookat_offZ = 1001.405
add_float_var_to_float_var $chaircam_lookat_offZ += $leave_barb_cam_lookat_offZ
$hairstyle_cam_offX = 414.0572
add_float_var_to_float_var $hairstyle_cam_offX += $leave_barb_cam_lookat_offX
$hairstyle_cam_offY = -20.025
add_float_var_to_float_var $hairstyle_cam_offY += $leave_barb_cam_lookat_offY
$hairstyle_cam_offZ = 1001.578
add_float_var_to_float_var $hairstyle_cam_offZ += $leave_barb_cam_lookat_offZ
$hairstyle_cam_lookat_offX = 412.5159
add_float_var_to_float_var $hairstyle_cam_lookat_offX += $leave_barb_cam_lookat_offX
$hairstyle_cam_lookat_offY = -21.7447
add_float_var_to_float_var $hairstyle_cam_lookat_offY += $leave_barb_cam_lookat_offY
$hairstyle_cam_lookat_offZ = 1001.946
add_float_var_to_float_var $hairstyle_cam_lookat_offZ += $leave_barb_cam_lookat_offZ
$getout_chair_cam_offX = 412.9438
add_float_var_to_float_var $getout_chair_cam_offX += $leave_barb_cam_lookat_offX
$getout_chair_cam_offY = -20.8411
add_float_var_to_float_var $getout_chair_cam_offY += $leave_barb_cam_lookat_offY
$getout_chair_cam_offZ = 1001.963
add_float_var_to_float_var $getout_chair_cam_offZ += $leave_barb_cam_lookat_offZ
$getout_chair_cam_lookat_offX = 411.957
add_float_var_to_float_var $getout_chair_cam_lookat_offX += $leave_barb_cam_lookat_offX
$getout_chair_cam_lookat_offY = -19.779
add_float_var_to_float_var $getout_chair_cam_lookat_offY += $leave_barb_cam_lookat_offY
$getout_chair_cam_lookat_offZ = 1000.836
add_float_var_to_float_var $getout_chair_cam_lookat_offZ += $leave_barb_cam_lookat_offZ
$leave_barb_cam_offX = 411.795
add_float_var_to_float_var $leave_barb_cam_offX += $leave_barb_cam_lookat_offX
$leave_barb_cam_offY = -23.3
add_float_var_to_float_var $leave_barb_cam_offY += $leave_barb_cam_lookat_offY
$leave_barb_cam_offZ = 1000.836
add_float_var_to_float_var $leave_barb_cam_offZ += $leave_barb_cam_lookat_offZ
$remove_tats_menu_drawn = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $component_barber {y} $barber_movein_barbers {z} $return_animation_time_barbers
set_char_heading $remove_tats_menu_drawn {heading} $random_number_barbers
set_char_decision_maker $remove_tats_menu_drawn {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_only_damaged_by_player $remove_tats_menu_drawn {state} True
$tattoo_offsetZ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BRB_IN" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task $tattoo_offsetZ
$hairstyle_name = open_sequence_task 
task_go_straight_to_coord -1 {x} $getout_chair_cam_lookat_offX {y} $getout_chair_cam_lookat_offY {z} $getout_chair_cam_lookat_offZ {speed} MoveState.Walk {time} 8000
task_go_straight_to_coord -1 {x} $leave_barb_cam_offX {y} $leave_barb_cam_offY {z} $leave_barb_cam_offZ {speed} MoveState.Walk {time} 8000
task_achieve_heading -1 {heading} 180.0
close_sequence_task $hairstyle_name
$walk_offX_barbers = 0
$modelid_barber = 2

:BARB_2023
if 
  $modelid_barber == 2
goto_if_false @BARB_2432
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2072
gosub @BARB_7404

:BARB_2072
if 
  not is_char_dead $remove_tats_menu_drawn
goto_if_false @BARB_2387
if 
  $flag_attacked_keeper_food == 0
goto_if_false @BARB_2335
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $remove_tats_menu_drawn
  has_char_been_damaged_by_weapon $remove_tats_menu_drawn {weaponType} WeaponType.AnyWeapon
goto_if_false @BARB_2174
clear_look_at $remove_tats_menu_drawn
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.BoughtEnough
task_hands_up $remove_tats_menu_drawn {time} -2
$flag_attacked_keeper_food = 1
goto @BARB_2328

:BARB_2174
if 
  $walk2_offZ_barbers == 0
goto_if_false @BARB_2243
$barber_shop_offsetX = get_area_visible 
if 
  $barber_shop_offsetX <> 0
goto_if_false @BARB_2243
task_look_at_char $remove_tats_menu_drawn {target} $scplayer {time} -2
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.PlayerSick
$walk2_offZ_barbers = 1

:BARB_2243
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @BARB_2328
if 
  can_player_start_mission $player1
goto_if_false @BARB_2328
clear_look_at $remove_tats_menu_drawn
$walk_offX_barbers = 0
$modelid_barber = 3

:BARB_2328
goto @BARB_2380

:BARB_2335
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2373
gosub @BARB_7404

:BARB_2373
goto @BARB_646

:BARB_2380
goto @BARB_2432

:BARB_2387
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2425
gosub @BARB_7404

:BARB_2425
goto @BARB_646

:BARB_2432
if 
  $modelid_barber == 3
goto_if_false @BARB_2530
set_player_control $player1 {state} False
set_minigame_in_progress True
display_radar False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
TIMERA = 0
$walk_offX_barbers = 0
$modelid_barber = 4

:BARB_2530
if 
  $modelid_barber == 4
goto_if_false @BARB_2918
if 
  is_char_dead $remove_tats_menu_drawn
goto_if_false @BARB_2609
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2602
gosub @BARB_7404

:BARB_2602
goto @BARB_646

:BARB_2609
if 
  TIMERA >= 300
goto_if_false @BARB_2918
$players_money, $temp_shopX, $temp_shopY = get_char_coordinates $remove_tats_menu_drawn
if or
  not is_float_var_equal_to_float_var $players_money == $component_barber
  not is_float_var_equal_to_float_var $temp_shopX == $barber_movein_barbers
  not is_float_var_equal_to_float_var $temp_shopY == $return_animation_time_barbers
goto_if_false @BARB_2699
set_char_coordinates $remove_tats_menu_drawn {x} $component_barber {y} $barber_movein_barbers {z} $return_animation_time_barbers
set_char_heading $remove_tats_menu_drawn {heading} $random_number_barbers

:BARB_2699
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $flag_barber
store_clothes_state 
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
set_fixed_camera_position $unk9747 {y} $flag_viewed_hair {z} $player_walk_barbers {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $player_task_progress_barber {y} $player_heading_barbers {z} $name_of_anim_barbers {switchStyle} SwitchType.JumpCut
$num_of_hairstyles = 0.0
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$2753 = store_score $player1
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_2896
if 
  $flag_player_on_menace_mission == 1
goto_if_false @BARB_2896
if 
  50 > $2753
goto_if_false @BARB_2896
add_score $player1 {money} 52

:BARB_2896
perform_sequence_task $remove_tats_menu_drawn {sequence} $tattoo_offsetZ
$walk_offX_barbers = 0
$modelid_barber = 5

:BARB_2918
if 
  $modelid_barber == 5
goto_if_false @BARB_3187
if 
  is_char_dead $remove_tats_menu_drawn
goto_if_false @BARB_2997
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2990
gosub @BARB_7404

:BARB_2990
goto @BARB_646

:BARB_2997
if 
  is_char_playing_anim $scplayer {animationName} "BRB_SIT_IN"
goto_if_false @BARB_3045
$num_of_hairstyles = get_char_anim_current_time $scplayer {animationName} "BRB_SIT_IN"

:BARB_3045
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3187
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_fixed_camera_position $9755 {y} $9756 {z} $9757 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getin_chaircam_offX {y} $getin_chaircam_offY {z} $getin_chaircam_offZ {switchStyle} SwitchType.JumpCut
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.ShowChangingroom
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_3187
if 
  $modelid_barber == 6
goto_if_false @BARB_5342
if 
  is_char_dead $remove_tats_menu_drawn
goto_if_false @BARB_3266
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_3259
gosub @BARB_7404

:BARB_3259
goto @BARB_646

:BARB_3266
if 
  1 > $walk_offX_barbers
goto_if_false @BARB_3316
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_3316
gosub @BARB_8300
gosub @BARB_8588

:BARB_3316
if 
  $walk_offX_barbers == 0
goto_if_false @BARB_3382
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_3358
$walk_offX_barbers = 10

:BARB_3358
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_3382
$walk_offX_barbers = 1

:BARB_3382
if 
  $walk_offX_barbers == 1
goto_if_false @BARB_3552
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_3552
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_3449
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_3449
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_3481
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_3481
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_3513
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_3513
if 
  $9741 == 1
goto_if_false @BARB_3545
$walk_offX_barbers = 2
goto @BARB_3552

:BARB_3545
$walk_offX_barbers = 5

:BARB_3552
if 
  $walk_offX_barbers == 2
goto_if_false @BARB_3633
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot4
$num_of_hairstyles = 0.0
$walk_offX_barbers = 3

:BARB_3633
if 
  $walk_offX_barbers == 3
goto_if_false @BARB_3828
if 
  is_char_playing_anim $remove_tats_menu_drawn {animationName} "BRB_CUT_IN"
goto_if_false @BARB_3699
$num_of_hairstyles = get_char_anim_current_time $remove_tats_menu_drawn {animationName} "BRB_CUT_IN"

:BARB_3699
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3828
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
restore_clothes_state 
build_player_model $player1
store_clothes_state 
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$num_of_hairstyles = 0.0
$walk_offX_barbers = 4

:BARB_3828
if 
  $walk_offX_barbers == 4
goto_if_false @BARB_3924
if 
  is_char_playing_anim $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT"
goto_if_false @BARB_3896
$num_of_hairstyles = get_char_anim_current_time $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT"

:BARB_3896
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3924
$walk_offX_barbers = 5

:BARB_3924
if 
  $walk_offX_barbers == 5
goto_if_false @BARB_4090
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$num_of_hairstyles = 0.0
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_look_at_char $remove_tats_menu_drawn {target} $scplayer {time} -2
set_fixed_camera_position $chaircam_lookat_offX {y} $chaircam_lookat_offY {z} $chaircam_lookat_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $hairstyle_cam_offX {y} $hairstyle_cam_offY {z} $hairstyle_cam_offZ {switchStyle} SwitchType.JumpCut
$walk_offX_barbers = 6

:BARB_4090
if 
  $walk_offX_barbers == 6
goto_if_false @BARB_4251
if 
  is_char_playing_anim $scplayer {animationName} "BRB_SIT_OUT"
goto_if_false @BARB_4158
$num_of_hairstyles = get_char_anim_current_time $scplayer {animationName} "BRB_SIT_OUT"

:BARB_4158
if 
  $num_of_hairstyles >= 0.8
goto_if_false @BARB_4251
perform_sequence_task $scplayer {sequence} $hairstyle_name
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.RemoveTattoo
set_fixed_camera_position $hairstyle_cam_lookat_offX {y} $hairstyle_cam_lookat_offY {z} $hairstyle_cam_lookat_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getout_chair_cam_offX {y} $getout_chair_cam_offY {z} $getout_chair_cam_offZ {switchStyle} SwitchType.JumpCut
TIMERA = 0
$walk_offX_barbers = 7

:BARB_4251
if 
  $walk_offX_barbers == 7
goto_if_false @BARB_4391
if 
  $barber_shop_offsetY == 0
goto_if_false @BARB_4317
if 
  TIMERA >= 1500
goto_if_false @BARB_4317
set_camera_behind_player 
restore_camera_jumpcut 
$barber_shop_offsetY = 1

:BARB_4317
if 
  $modelid_barber > 2
goto_if_false @BARB_4337
clear_help 

:BARB_4337
$9743 = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_var_equal_to_constant $9743 == 7
goto_if_false @BARB_4384
$9743 = get_script_task_status $scplayer {taskId} 1560
goto @BARB_4391

:BARB_4384
$walk_offX_barbers = 8

:BARB_4391
if 
  $walk_offX_barbers == 8
goto_if_false @BARB_4457
clear_look_at $remove_tats_menu_drawn
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_minigame_in_progress False
display_radar True
$barber_shop_offsetY = 0
$walk_offX_barbers = 9

:BARB_4457
if 
  $walk_offX_barbers == 9
goto_if_false @BARB_4647
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BARB_4573
$flag_in_remove_tattoo_section = 0
$stored_barbers_shop = 0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$barber_shop_offsetY = 0
$walk_offX_barbers = 0
$modelid_barber = 2

:BARB_4573
if 
  $flag_attacked_keeper_food == 0
goto_if_false @BARB_4647
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $remove_tats_menu_drawn
  has_char_been_damaged_by_weapon $remove_tats_menu_drawn {weaponType} WeaponType.AnyWeapon
goto_if_false @BARB_4647
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.BoughtEnough
task_hands_up $remove_tats_menu_drawn {time} -2
$flag_attacked_keeper_food = 1

:BARB_4647
if 
  $walk_offX_barbers == 10
goto_if_false @BARB_4941
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_4941
$remove_menu_item_selected = get_menu_item_accepted $main_menu_shops
if 
  0 > $remove_menu_item_selected
goto_if_false @BARB_4715
$remove_menu_item_selected = 0

:BARB_4715
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_4747
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_4747
$menu_item_no_tats = get_item_in_shop $remove_menu_item_selected
s$model_index_barbers = get_name_of_item $menu_item_no_tats
$remove_menu_tattoo = get_price_of_item $menu_item_no_tats
$tattoo_offsetX = get_shopping_extra_info $menu_item_no_tats {flag} 0
$tattoo_offsetY = get_shopping_extra_info $menu_item_no_tats {flag} 1
set_var_int_to_var_int $flag_food_message = $remove_menu_tattoo
set_var_text_label s$shop_item_price = s$model_index_barbers
set_fixed_camera_position $9755 {y} $9756 {z} $9757 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getin_chaircam_offX {y} $getin_chaircam_offY {z} $getin_chaircam_offZ {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$walk_offY_barbers, $walk_offZ_barbers = get_clothes_item $player1 {bodyPart} BodyPart.Head
if 
  not is_int_var_equal_to_int_var $walk_offY_barbers == $menu_item_no_tats
goto_if_false @BARB_4924
play_mission_audio MissionAudioSlot.Slot4

:BARB_4924
$num_of_hairstyles = 0.0
$walk_offX_barbers = 11

:BARB_4941
if 
  $walk_offX_barbers == 11
goto_if_false @BARB_5111
if 
  is_char_playing_anim $remove_tats_menu_drawn {animationName} "BRB_CUT_IN"
goto_if_false @BARB_5007
$num_of_hairstyles = get_char_anim_current_time $remove_tats_menu_drawn {animationName} "BRB_CUT_IN"

:BARB_5007
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_5111
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Hat
give_player_clothes $player1 {textureHash} $menu_item_no_tats {modelHash} $tattoo_offsetX {bodyPart} $tattoo_offsetY
build_player_model $player1
$9741 = 1
$walk_offX_barbers = 12

:BARB_5111
if 
  $walk_offX_barbers == 12
goto_if_false @BARB_5189
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$num_of_hairstyles = 0.0
$walk_offX_barbers = 13

:BARB_5189
if 
  $walk_offX_barbers == 13
goto_if_false @BARB_5342
if 
  is_char_playing_anim $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT"
goto_if_false @BARB_5257
$num_of_hairstyles = get_char_anim_current_time $remove_tats_menu_drawn {animationName} "BRB_CUT_OUT"

:BARB_5257
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_5342
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$num_of_hairstyles = 0.0
$walk_offX_barbers = 0
$modelid_barber = 7

:BARB_5342
if 
  $modelid_barber == 7
goto_if_false @BARB_7170
if 
  is_char_dead $remove_tats_menu_drawn
goto_if_false @BARB_5421
gosub @BARB_7205
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_5414
gosub @BARB_7404

:BARB_5414
goto @BARB_646

:BARB_5421
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_5464
if 
  1 > $walk_offX_barbers
goto_if_false @BARB_5464
gosub @BARB_7659

:BARB_5464
if 
  $walk_offX_barbers == 0
goto_if_false @BARB_5588
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_5542
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$walk_offX_barbers = 2

:BARB_5542
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_5588
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$walk_offX_barbers = 1

:BARB_5588
if 
  $walk_offX_barbers == 1
goto_if_false @BARB_5701
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_5701
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5655
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:BARB_5655
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_5687
gosub @BARB_8300
gosub @BARB_8588

:BARB_5687
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_5701
if 
  $walk_offX_barbers == 2
goto_if_false @BARB_6825
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_6825
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$2753 = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $remove_menu_tattoo
goto_if_false @BARB_6752
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $menu_item_no_tats
goto_if_false @BARB_6672
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5828
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_5828
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.GfriendIntro
buy_item $menu_item_no_tats
$stored_barbers_shop = 1
$9741 = 0
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
store_clothes_state 
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
set_fixed_camera_position $getin_chaircam_lookat_offX {y} $getin_chaircam_lookat_offY {z} $getin_chaircam_lookat_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $chaircam_offX {y} $chaircam_offY {z} $chaircam_offZ {switchStyle} SwitchType.JumpCut
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_6197
if or
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'TASH'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'GOATEE'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BEARD'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROT'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROB'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROGOT'
goto_if_false @BARB_6072
set_var_text_label16 v$barberX = "BRB_BEARD_01"
goto @BARB_6197

:BARB_6072
if 
  $unk9728 > 1
goto_if_false @BARB_6097
$unk9728 = 0

:BARB_6097
if 
  0 > $unk9728
goto_if_false @BARB_6122
$unk9728 = 0

:BARB_6122
if 
  $unk9728 == 0
goto_if_false @BARB_6172
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6197

:BARB_6172
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6197
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_6347
if 
  $unk9728 > 1
goto_if_false @BARB_6247
$unk9728 = 0

:BARB_6247
if 
  0 > $unk9728
goto_if_false @BARB_6272
$unk9728 = 0

:BARB_6272
if 
  $unk9728 == 0
goto_if_false @BARB_6322
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6347

:BARB_6322
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6347
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_6576
if or
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BLADBEA'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BALDTSH'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BALDGOT'
goto_if_false @BARB_6451
set_var_text_label16 v$barberX = "BRB_BEARD_01"
goto @BARB_6576

:BARB_6451
if 
  $unk9728 > 1
goto_if_false @BARB_6476
$unk9728 = 0

:BARB_6476
if 
  0 > $unk9728
goto_if_false @BARB_6501
$unk9728 = 0

:BARB_6501
if 
  $unk9728 == 0
goto_if_false @BARB_6551
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6576

:BARB_6551
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6576
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_BUY" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $scplayer {animationName} v$barberX {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$num_of_hairstyles = 0.0
$walk_offX_barbers = 3
goto @BARB_6745

:BARB_6672
if 
  $flag_bought_item_already_shops == 0
goto_if_false @BARB_6745
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.GfriendPhysiqueCritique
print_now 'BARBNO' {time} 5000 {flag} 1
$walk_offX_barbers = 0
$flag_bought_item_already_shops = 1

:BARB_6745
goto @BARB_6825

:BARB_6752
if 
  $flag_no_money_shops == 0
goto_if_false @BARB_6825
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $remove_tats_menu_drawn {phrase} SpeechId.GfriendNegResponse
print_now 'SHOPNO' {time} 5000 {flag} 1
$walk_offX_barbers = 0
$flag_no_money_shops = 1

:BARB_6825
if 
  $walk_offX_barbers == 3
goto_if_false @BARB_7170
if 
  is_char_playing_anim $scplayer {animationName} v$barberX
goto_if_false @BARB_6873
$num_of_hairstyles = get_char_anim_current_time $scplayer {animationName} v$barberX

:BARB_6873
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_7170
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_6926
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_6926
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_6958
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:BARB_6958
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $remove_tats_menu_drawn {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_7085
if 
  $onmission == 1
goto_if_false @BARB_7085
$flag_changed_hair_intro2 = 1

:BARB_7085
set_fixed_camera_position $9755 {y} $9756 {z} $9757 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getin_chaircam_offX {y} $getin_chaircam_offY {z} $getin_chaircam_offZ {switchStyle} SwitchType.JumpCut
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_7156
gosub @BARB_8300
gosub @BARB_8588

:BARB_7156
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_7170
goto @BARB_7184

:BARB_7177
gosub @BARB_7404

:BARB_7184
goto @BARB_7198

:BARB_7191
gosub @BARB_7404

:BARB_7198
goto @BARB_646

:BARB_7205
if 
  $modelid_barber > 0
goto_if_false @BARB_7225
clear_help 

:BARB_7225
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7257
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_7257
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7289
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_7289
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7321
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_7321
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$modelid_barber = 2
$barber_shop_offsetY = 0
$flag_in_remove_tattoo_section = 0
$stored_barbers_shop = 0
$num_of_hairstyles = 0.0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
return 

:BARB_7404
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
if 
  $modelid_barber > 0
goto_if_false @BARB_7446
clear_help 

:BARB_7446
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7478
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_7478
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7510
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_7510
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7542
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_7542
$walk2_offZ_barbers = 0
$flag_in_remove_tattoo_section = 0
$flag_attacked_keeper_food = 0
$modelid_barber = 0
$stored_barbers_shop = 0
$num_of_hairstyles = 0.0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$barber_shop_offsetY = 0
clear_sequence_task $tattoo_offsetZ
clear_sequence_task $hairstyle_name
mark_model_as_no_longer_needed $shopkeeper_model_shops
delete_char $remove_tats_menu_drawn
display_radar True
use_text_commands False
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:BARB_7659
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_8298
print_help_forever 'BARB_H2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_7750
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_7991

:BARB_7750
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_7812
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_7991

:BARB_7812
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_7874
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_7991

:BARB_7874
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_7936
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_7991

:BARB_7936
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_7991
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:BARB_7991
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'HAIRSTY' {row0} s$model_index_barbers {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $remove_menu_tattoo
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:BARB_8298
return 

:BARB_8300
$walk2_offX_barbers = 0
$walk2_offY_barbers = 0

:BARB_8314
if 
  is_int_var_greater_than_int_var $9720 > $walk2_offX_barbers
goto_if_false @BARB_8506
$model_index = get_item_in_shop $walk2_offX_barbers
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
set_var_int_to_var_int $item_model_index($walk2_offY_barbers,12i) = $model_index
s$model_index_barbers = get_name_of_item $model_index
$remove_menu_tattoo = get_price_of_item $model_index
set_var_int_to_var_int $item_price($walk2_offY_barbers,12i) = $remove_menu_tattoo
set_var_text_label $item_text_label($walk2_offY_barbers,12s) = s$model_index_barbers
set_var_int_to_var_int $item_modelid($walk2_offY_barbers,12i) = $modelid_shops
set_var_int_to_var_int $item_component($walk2_offY_barbers,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @BARB_8474
$item_hilight_shops($walk2_offY_barbers,12i) = 0
goto @BARB_8485

:BARB_8474
$item_hilight_shops($walk2_offY_barbers,12i) = 1

:BARB_8485
$walk2_offY_barbers += 1
$walk2_offX_barbers += 1
goto @BARB_8314

:BARB_8506
set_var_int_to_var_int $temp_var_shops = $walk2_offY_barbers

:BARB_8514
if 
  12 > $temp_var_shops
goto_if_false @BARB_8586
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @BARB_8514

:BARB_8586
return 

:BARB_8588
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_9261
print_help_forever 'BARB_H1'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_8679
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_8920

:BARB_8679
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_8741
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_8920

:BARB_8741
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_8803
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_8920

:BARB_8803
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_8865
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_8920

:BARB_8865
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_8920
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:BARB_8920
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'HAIRSTY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $main_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $main_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$temp_var_shops = 0

:BARB_9121
if 
  is_int_var_greater_than_int_var $walk2_offY_barbers > $temp_var_shops
goto_if_false @BARB_9180
set_menu_item_with_number $main_menu_shops {column} 1 {row} $temp_var_shops {gxt} 'DOLLAR' {number} $item_price($temp_var_shops,12i)
$temp_var_shops += 1
goto @BARB_9121

:BARB_9180
$temp_var_shops = 0

:BARB_9187
if 
  is_int_var_greater_than_int_var $walk2_offY_barbers > $temp_var_shops
goto_if_false @BARB_9235
activate_menu_item $main_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @BARB_9187

:BARB_9235
set_menu_column_width $main_menu_shops {column} 0 {width} 140
set_menu_column_width $main_menu_shops {column} 1 {width} 46
$main_menu_drawn_shops = 1

:BARB_9261
return 
terminate_this_script 

//-------------External script 63 (WARDROBE)---------------

:WARROBE
$9858 = 0
$9862 = 0
$9860 = 0
$9863 = 0
$current_name_of_anim_wardrobe = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$shop_progress_wardrobe = 0.0
$9865 = 0.0
$9866 = 0.0
$9867 = 0.0
$shop_progress_wardrobe = 0.0
$shop_door_model_wardrobe = 0.0
$main_menu_drawn_wardrobe = 0.0
$main_menu_wardrobe = 0.0
$shop_main_item_picked_wardrobe = 0.0
$number_of_wardrobe_in_shop = 0.0
$number_of_wardrobe_in_area = 0.0
$wardrobe_offX = 0.0
$wardrobe_offY = 0.0
$wardrobe_offZ = 0.0
$wardrobe_door_heading = 0.0
$wardrobe_locateX = 0.0
$wardrobe_locateY = 0.0
$wardrobe_locateZ = 0.0
$wardrobe_heading = 0.0
$wardrobe_camX = 0.0
$wardrobe_camY = 0.0
$player_item_texture_audio_shops = 0
$cut_hair_flag_barber = 0
$shop_main_item_picked_wardrobe = 0.0
$wardrobe_offY = 0.0
$wardrobe_offZ = 0.0
$wardrobe_door_heading = 0.0
$visible_area_shops = 0.0
$flag_restored_camera_barbers = 0.0
$barber_look_shops = 0
$item_no_hairstyles = 0
$player_item_model_audio_shops = 0
$9860 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$9935 = 0
$9936 = 0
$9937 = 0
$9938 = 0
$9939 = 0
$9940 = 0
$9941 = 0
$9942 = 0
$9957 = 0
$9955 = 0
$9958 = 0
$9960 = 0
$9961 = 0
$9962 = 0
$9963 = 0
$second_menu_drawn_wardrobe = 0
$second_menu_wardrobe = 0
$second_menu_item_picked_wardrobe = 0
$number_bought_items_in_area = 0
$9859 = -372
request_model $9859
request_animation "CLOTHES"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 23804
load_all_models_now 
set_deatharrest_state 0
script_name 'WARROBE'

:WARROBE_584
wait 0
if 
  is_player_playing $player1
goto_if_false @WARROBE_6450
$wardrobe_camZ = get_area_visible 
if 
  $wardrobe_camZ == 14
goto_if_false @WARROBE_6436
if 
  $barber_look_shops > 0
goto_if_false @WARROBE_737
if 
  has_language_changed 
goto_if_false @WARROBE_737
clear_help 
delete_menu $9861
delete_menu $9956
delete_menu $9959
delete_menu $9964
delete_menu $cost_menu_shops
delete_menu $bought_menu_shops
$9860 = 0
$9955 = 0
$9960 = 0
$9963 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:WARROBE_737
if 
  $barber_look_shops == 0
goto_if_false @WARROBE_819
$second_menu_item_picked_wardrobe = 1
$9865 = 43.529
$9866 = 0.694
$9867 = 0.012
$shop_main_item_picked_wardrobe = 90.0
$shop_progress_wardrobe = 0.0
$barber_look_shops = 1

:WARROBE_819
if 
  $barber_look_shops == 1
goto_if_false @WARROBE_1280
if 
  $9858 == 0
goto_if_false @WARROBE_1226
use_text_commands True
show_update_stats False
$number_of_wardrobe_in_shop = 212.8715
add_float_var_to_float_var $number_of_wardrobe_in_shop += $9865
$number_of_wardrobe_in_area = -42.8156
add_float_var_to_float_var $number_of_wardrobe_in_area += $9866
$wardrobe_offX = 1002.116
add_float_var_to_float_var $wardrobe_offX += $9867
$wardrobe_offY = 213.4791
add_float_var_to_float_var $wardrobe_offY += $9865
$wardrobe_offZ = -42.0238
add_float_var_to_float_var $wardrobe_offZ += $9866
$wardrobe_door_heading = 1002.053
add_float_var_to_float_var $wardrobe_door_heading += $9867
$wardrobe_locateX = 214.5148
add_float_var_to_float_var $wardrobe_locateX += $9865
$wardrobe_locateY = -41.6106
add_float_var_to_float_var $wardrobe_locateY += $9866
$wardrobe_locateZ = 1002.494
add_float_var_to_float_var $wardrobe_locateZ += $9867
$wardrobe_heading = 214.5367
add_float_var_to_float_var $wardrobe_heading += $9865
$wardrobe_camX = -40.6175
add_float_var_to_float_var $wardrobe_camX += $9866
$wardrobe_camY = 1002.609
add_float_var_to_float_var $wardrobe_camY += $9867
$shop_door_model_wardrobe = 214.622
add_float_var_to_float_var $shop_door_model_wardrobe += $9865
$main_menu_drawn_wardrobe = -40.652
add_float_var_to_float_var $main_menu_drawn_wardrobe += $9866
$main_menu_wardrobe = 1001.033
add_float_var_to_float_var $main_menu_wardrobe += $9867
$return_animation_time_clothes = 213.874
add_float_var_to_float_var $return_animation_time_clothes += $9865
$object_animation_time_clothes = -39.811
add_float_var_to_float_var $object_animation_time_clothes += $9866
$flag_player_in_changing_room = 1002.2
add_float_var_to_float_var $flag_player_in_changing_room += $9867
$number_of_hairstyles_in_area = create_object_no_offset $9859 {x} $return_animation_time_clothes {y} $object_animation_time_clothes {z} $flag_player_in_changing_room
set_object_heading $number_of_hairstyles_in_area {heading} $shop_progress_wardrobe
$blob_flag_shop = 1
$9858 = 1

:WARROBE_1226
if 
  $9858 == 1
goto_if_false @WARROBE_1280
if 
  has_animation_loaded "CLOTHES"
goto_if_false @WARROBE_1280
$9858 = 0
$barber_look_shops = 2

:WARROBE_1280
if 
  $barber_look_shops == 2
goto_if_false @WARROBE_1364
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $shop_door_model_wardrobe {y} $main_menu_drawn_wardrobe {z} $main_menu_wardrobe {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @WARROBE_1364
if 
  can_player_start_mission $player1
goto_if_false @WARROBE_1364
$barber_look_shops = 3

:WARROBE_1364
if 
  $barber_look_shops == 3
goto_if_false @WARROBE_1499
if 
  is_player_playing $player1
goto_if_false @WARROBE_1485
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$9858 = 0
$barber_look_shops = 4
goto @WARROBE_1499

:WARROBE_1485
gosub @WARROBE_6798
goto @WARROBE_584

:WARROBE_1499
if 
  $barber_look_shops == 4
goto_if_false @WARROBE_1880
if 
  $9858 == 0
goto_if_false @WARROBE_1785
if 
  TIMERA >= 300
goto_if_false @WARROBE_1785
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $shop_door_model_wardrobe {y} $main_menu_drawn_wardrobe {z} $main_menu_wardrobe
set_char_heading $scplayer {heading} $shop_main_item_picked_wardrobe
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_fixed_camera_position $number_of_wardrobe_in_shop {y} $number_of_wardrobe_in_area {z} $wardrobe_offX {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_offY {y} $wardrobe_offZ {z} $wardrobe_door_heading {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $scplayer {animationName} "CLO_IN" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @WARROBE_1723
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:WARROBE_1723
if 
  does_object_exist $number_of_hairstyles_in_area
goto_if_false @WARROBE_1778
play_object_anim $number_of_hairstyles_in_area {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 4.0 {lockF} False {loop} True

:WARROBE_1778
$9858 = 1

:WARROBE_1785
if 
  $9858 == 1
goto_if_false @WARROBE_1880
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @WARROBE_1843
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:WARROBE_1843
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_1880
store_clothes_state 
$9858 = 0
$barber_look_shops = 5

:WARROBE_1880
if 
  $barber_look_shops == 5
goto_if_false @WARROBE_2617
if 
  $9860 == 0
goto_if_false @WARROBE_1941
if 
  1 > $9858
goto_if_false @WARROBE_1941
gosub @WARROBE_9292

:WARROBE_1941
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_2014
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_1990
$9858 = 1

:WARROBE_1990
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2014
$9858 = 2

:WARROBE_2014
if 
  $9858 == 1
goto_if_false @WARROBE_2249
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_2249
$9862 = get_menu_item_accepted $9861
if 
  0 > $9862
goto_if_false @WARROBE_2082
$9862 = 0

:WARROBE_2082
if 
  $9860 == 1
goto_if_false @WARROBE_2114
delete_menu $9861
clear_help 
$9860 = 0

:WARROBE_2114
if or
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_2203
set_var_text_label16 v$9854 = "CLO_POSE_TORSO"
$9858 = 0
$barber_look_shops = 7
goto @WARROBE_2249

:WARROBE_2203
gosub @WARROBE_7198
if 
  $9955 == 0
goto_if_false @WARROBE_2235
gosub @WARROBE_8122

:WARROBE_2235
$9858 = 0
$barber_look_shops = 6

:WARROBE_2249
if 
  $9858 == 2
goto_if_false @WARROBE_2457
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2457
if 
  $9860 == 1
goto_if_false @WARROBE_2316
delete_menu $9861
clear_help 
$9860 = 0

:WARROBE_2316
if 
  $9955 == 1
goto_if_false @WARROBE_2348
delete_menu $9956
clear_help 
$9955 = 0

:WARROBE_2348
task_play_anim_non_interruptable $scplayer {animationName} "CLO_OUT" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$visible_area_shops = 0.0
if 
  does_object_exist $number_of_hairstyles_in_area
goto_if_false @WARROBE_2450
play_object_anim $number_of_hairstyles_in_area {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_2450
$9858 = 5

:WARROBE_2457
if 
  $9858 == 5
goto_if_false @WARROBE_2545
if 
  is_char_playing_anim $scplayer {animationName} "CLO_OUT"
goto_if_false @WARROBE_2517
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_OUT"

:WARROBE_2517
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_2545
$9858 = 6

:WARROBE_2545
if 
  $9858 == 6
goto_if_false @WARROBE_2617
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
$second_menu_wardrobe = 0
$9860 = 0
$9955 = 0
$9960 = 0
$barber_look_shops = 11

:WARROBE_2617
if 
  $barber_look_shops == 6
goto_if_false @WARROBE_3004
if 
  $9955 == 0
goto_if_false @WARROBE_2667
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_2667
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_2792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2716
$9858 = 1

:WARROBE_2716
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_2792
$9957 = get_menu_item_selected $9956
if 
  0 > $9957
goto_if_false @WARROBE_2766
$9957 = 0

:WARROBE_2766
set_var_text_label16 v$9854 = $wardrobe_name($9957,12v)
gosub @WARROBE_8524
$9858 = 2

:WARROBE_2792
if 
  $9858 == 1
goto_if_false @WARROBE_2898
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2898
$9858 = 0
$barber_look_shops = 5
if 
  $9955 == 1
goto_if_false @WARROBE_2873
clear_help 
delete_menu $9956
$9955 = 0

:WARROBE_2873
if 
  $9860 == 0
goto_if_false @WARROBE_2898
gosub @WARROBE_9292

:WARROBE_2898
if 
  $9858 == 2
goto_if_false @WARROBE_3004
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3004
if 
  $9955 == 1
goto_if_false @WARROBE_2965
clear_help 
delete_menu $9956
$9955 = 0

:WARROBE_2965
if 
  $9960 == 0
goto_if_false @WARROBE_2990
gosub @WARROBE_8835

:WARROBE_2990
$9858 = 0
$barber_look_shops = 7

:WARROBE_3004
if 
  $barber_look_shops == 7
goto_if_false @WARROBE_3711
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3154
if 
  $9963 == 0
goto_if_false @WARROBE_3147
gosub @WARROBE_11522
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_3147
if 
  $9963 == 1
goto_if_false @WARROBE_3126
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_3126
$9858 = 0
$barber_look_shops = 5
goto @WARROBE_584

:WARROBE_3147
goto @WARROBE_3254

:WARROBE_3154
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_3222
if 
  $9960 == 0
goto_if_false @WARROBE_3215
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_3215
goto @WARROBE_3254

:WARROBE_3222
if 
  $9960 == 0
goto_if_false @WARROBE_3254
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_3254
if 
  $9858 == 0
goto_if_false @WARROBE_3353
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_3296
$9858 = 1

:WARROBE_3296
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3353
$9961 = get_menu_item_selected $9959
if 
  0 > $9961
goto_if_false @WARROBE_3346
$9961 = 0

:WARROBE_3346
$9858 = 2

:WARROBE_3353
if 
  $9858 == 1
goto_if_false @WARROBE_3591
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_3591
if 
  $9960 == 1
goto_if_false @WARROBE_3420
delete_menu $9959
clear_help 
$9960 = 0

:WARROBE_3420
if 
  $9963 == 1
goto_if_false @WARROBE_3452
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_3452
if or
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3545
if 
  $9860 == 0
goto_if_false @WARROBE_3524
gosub @WARROBE_9292

:WARROBE_3524
$barber_look_shops = 5
$9858 = 0
goto @WARROBE_3591

:WARROBE_3545
if 
  $9955 == 0
goto_if_false @WARROBE_3577
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_3577
$9858 = 0
$barber_look_shops = 6

:WARROBE_3591
if 
  $9858 == 2
goto_if_false @WARROBE_3711
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3711
if 
  $9960 == 1
goto_if_false @WARROBE_3658
delete_menu $9959
clear_help 
$9960 = 0

:WARROBE_3658
if 
  $9963 == 1
goto_if_false @WARROBE_3690
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_3690
$second_menu_wardrobe = 0
$9858 = 0
$barber_look_shops = 8

:WARROBE_3711
if 
  $barber_look_shops == 8
goto_if_false @WARROBE_4589
if 
  $9858 == 0
goto_if_false @WARROBE_4203
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3835
$model_index = 0
$modelid_shops = 0
set_var_int_to_var_int $component_shops = $item_component($9961,12i)
set_var_text_label s$barber_shop_offsetZ = $wardrobe_cam_pointY($9961,12s)
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $component_shops
goto @WARROBE_3879

:WARROBE_3835
set_var_int_to_var_int $model_index = $item_model_index($9961,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($9961,12i)
set_var_int_to_var_int $component_shops = $area_to_look_at_shops
set_var_text_label s$barber_shop_offsetZ = $wardrobe_cam_pointY($9961,12s)

:WARROBE_3879
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @WARROBE_3964
set_fixed_camera_position $wardrobe_locateX {y} $wardrobe_locateY {z} $wardrobe_locateZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_heading {y} $wardrobe_camX {z} $wardrobe_camY {switchStyle} SwitchType.JumpCut
goto @WARROBE_4026

:WARROBE_3964
set_fixed_camera_position $number_of_wardrobe_in_shop {y} $number_of_wardrobe_in_area {z} $wardrobe_offX {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_offY {y} $wardrobe_offZ {z} $wardrobe_door_heading {switchStyle} SwitchType.JumpCut
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_4026
play_mission_audio MissionAudioSlot.Slot4

:WARROBE_4026
if or
  is_int_var_equal_to_constant $component_shops == 0
  is_int_var_equal_to_constant $component_shops == 2
  is_int_var_equal_to_constant $component_shops == 3
goto_if_false @WARROBE_4071
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
store_clothes_state 

:WARROBE_4071
give_player_clothes $player1 {textureHash} $model_index {modelHash} $modelid_shops {bodyPart} $component_shops
build_player_model $player1
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_IN" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
if 
  does_object_exist $number_of_hairstyles_in_area
goto_if_false @WARROBE_4196
play_object_anim $number_of_hairstyles_in_area {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_4196
$9858 = 1

:WARROBE_4203
if 
  $9858 == 1
goto_if_false @WARROBE_4445
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_IN"
goto_if_false @WARROBE_4271
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_IN"

:WARROBE_4271
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_4445
if 
  not is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_4377
task_play_anim_non_interruptable $scplayer {animationName} v$9854 {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_4445

:WARROBE_4377
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$visible_area_shops = 0.0
$barber_look_shops = 9
$9858 = 0

:WARROBE_4445
if 
  $9858 == 2
goto_if_false @WARROBE_4589
if 
  is_char_playing_anim $scplayer {animationName} v$9854
goto_if_false @WARROBE_4493
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} v$9854

:WARROBE_4493
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_4589
gosub @WARROBE_10424
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$visible_area_shops = 0.0
$barber_look_shops = 9
$9858 = 0

:WARROBE_4589
if 
  $barber_look_shops == 9
goto_if_false @WARROBE_6277
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_4867
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_4699
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
$9858 = 1

:WARROBE_4699
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_4867
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_4791
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_4791
if 
  $second_menu_wardrobe == 0
goto_if_false @WARROBE_4823
$9858 = 3
goto @WARROBE_4867

:WARROBE_4823
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_4853
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:WARROBE_4853
$9858 = 0
$barber_look_shops = 7

:WARROBE_4867
if 
  2 > $9858
goto_if_false @WARROBE_4892
gosub @WARROBE_10424

:WARROBE_4892
if 
  $9858 == 1
goto_if_false @WARROBE_5427
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_5427
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_5186
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_5117
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5006
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5006
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
gosub @WARROBE_10692
$number_bought_items_in_area = 1
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $component_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_5179

:WARROBE_5117
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5179
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'WARDNO2' {time} 5000 {flag} 1
$9858 = 0
$flag_bought_item_already_shops = 1

:WARROBE_5179
goto @WARROBE_5427

:WARROBE_5186
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_5365
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5237
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5237
add_price_modifier $model_index {price} 0
buy_item $model_index
$number_bought_items_in_area = 1
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
remove_price_modifier $model_index
gosub @WARROBE_10692
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_5427

:WARROBE_5365
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5427
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'WARDNO' {time} 5000 {flag} 1
$9858 = 0
$flag_bought_item_already_shops = 1

:WARROBE_5427
if 
  $9858 == 2
goto_if_false @WARROBE_5569
if 
  is_char_playing_anim $scplayer {animationName} "CLO_BUY"
goto_if_false @WARROBE_5487
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_BUY"

:WARROBE_5487
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_5569
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$visible_area_shops = 0.0
$9858 = 3

:WARROBE_5569
if 
  $9858 == 3
goto_if_false @WARROBE_5702
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_OUT" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$visible_area_shops = 0.0
if 
  does_object_exist $number_of_hairstyles_in_area
goto_if_false @WARROBE_5695
play_object_anim $number_of_hairstyles_in_area {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_5695
$9858 = 4

:WARROBE_5702
if 
  $9858 == 4
goto_if_false @WARROBE_6277
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_OUT"
goto_if_false @WARROBE_5772
$visible_area_shops = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_OUT"

:WARROBE_5772
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_6277
restore_clothes_state 
build_player_model $player1
store_clothes_state 
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5834
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5834
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_5864
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:WARROBE_5864
$second_menu_wardrobe = 1
if 
  $number_bought_items_in_area == 1
goto_if_false @WARROBE_5953
$9858 = 0
$barber_look_shops = 5
if 
  $9860 == 0
goto_if_false @WARROBE_5946
if 
  1 > $9858
goto_if_false @WARROBE_5946
gosub @WARROBE_9292

:WARROBE_5946
goto @WARROBE_6277

:WARROBE_5953
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_6149
if 
  $9963 == 0
goto_if_false @WARROBE_6142
gosub @WARROBE_11522
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_6128
if 
  $9963 == 1
goto_if_false @WARROBE_6057
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_6057
$9858 = 0
$barber_look_shops = 5
if 
  $9860 == 0
goto_if_false @WARROBE_6114
if 
  1 > $9858
goto_if_false @WARROBE_6114
gosub @WARROBE_9292

:WARROBE_6114
goto @WARROBE_584
goto @WARROBE_6142

:WARROBE_6128
$9858 = 0
$barber_look_shops = 7

:WARROBE_6142
goto @WARROBE_6277

:WARROBE_6149
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_6231
if 
  $9960 == 0
goto_if_false @WARROBE_6210
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_6210
$9858 = 0
$barber_look_shops = 7
goto @WARROBE_6277

:WARROBE_6231
if 
  $9960 == 0
goto_if_false @WARROBE_6263
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_6263
$9858 = 0
$barber_look_shops = 7

:WARROBE_6277
if 
  $barber_look_shops == 11
goto_if_false @WARROBE_6429
if 
  not locate_char_on_foot_3d $scplayer {x} $shop_door_model_wardrobe {y} $main_menu_drawn_wardrobe {z} $main_menu_wardrobe {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @WARROBE_6429
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$number_bought_items_in_area = 0
$barber_look_shops = 2
$9858 = 0
$flag_bought_item_already_shops = 0
$blob_flag_shop = 1

:WARROBE_6429
goto @WARROBE_6443

:WARROBE_6436
gosub @WARROBE_6798

:WARROBE_6443
goto @WARROBE_6457

:WARROBE_6450
gosub @WARROBE_6798

:WARROBE_6457
goto @WARROBE_584
if 
  $barber_look_shops >= 1
goto_if_false @WARROBE_6484
clear_help 

:WARROBE_6484
if 
  $9860 == 1
goto_if_false @WARROBE_6516
delete_menu $9861
clear_help 
$9860 = 0

:WARROBE_6516
if 
  $9955 == 1
goto_if_false @WARROBE_6548
delete_menu $9956
clear_help 
$9955 = 0

:WARROBE_6548
if 
  $9960 == 1
goto_if_false @WARROBE_6580
delete_menu $9959
clear_help 
$9960 = 0

:WARROBE_6580
if 
  $9963 == 1
goto_if_false @WARROBE_6612
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_6612
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6644
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_6644
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6676
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:WARROBE_6676
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
$9858 = 0
$second_menu_wardrobe = 0
$barber_look_shops = 2
return 

:WARROBE_6798
if 
  $9860 == 1
goto_if_false @WARROBE_6830
delete_menu $9861
clear_help 
$9860 = 0

:WARROBE_6830
if 
  $9955 == 1
goto_if_false @WARROBE_6862
delete_menu $9956
clear_help 
$9955 = 0

:WARROBE_6862
if 
  $9960 == 1
goto_if_false @WARROBE_6894
delete_menu $9959
clear_help 
$9960 = 0

:WARROBE_6894
if 
  $9963 == 1
goto_if_false @WARROBE_6926
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_6926
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6958
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_6958
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6990
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:WARROBE_6990
if 
  $barber_look_shops >= 1
goto_if_false @WARROBE_7010
clear_help 

:WARROBE_7010
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$number_bought_items_in_area = 0
$blob_flag_shop = 1
$item_no_hairstyles = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$9858 = 0
$barber_look_shops = 0
$second_menu_wardrobe = 0
delete_object $number_of_hairstyles_in_area
mark_model_as_no_longer_needed $9859
remove_animation "CLOTHES"
clear_loaded_shop 
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
$second_menu_item_picked_wardrobe = 0
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:WARROBE_7198
$9935 = 0
$9936 = 0
$9937 = 0
$9938 = 0
$9939 = 0
$9940 = 0
$9941 = 0
load_shop $9911($9862,12s)
load_prices "CLOTHES"
$9863 = get_number_of_items_in_shop 
$temp_var_shops = 0
$wardrobe_cam_pointX = 0

:WARROBE_7286
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_8062
$model_index = get_item_in_shop $temp_var_shops
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  has_player_bought_item $model_index
goto_if_false @WARROBE_8048
switch_start $component_shops {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WARROBE_8048 {caseNum1} 0 {caseLabel1} @WARROBE_7402 {caseNum2} 2 {caseLabel2} @WARROBE_7495 {caseNum3} 3 {caseLabel3} @WARROBE_7587 {caseNum4} 13 {caseLabel4} @WARROBE_7680 {caseNum5} 14 {caseLabel5} @WARROBE_7773 {caseNum6} 15 {caseLabel6} @WARROBE_7866 {caseNum7} 16 {caseLabel7} @WARROBE_7957

:WARROBE_7402
if 
  $9935 == 0
goto_if_false @WARROBE_7488
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'TORSO'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 0
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_TORSO"
$wardrobe_cam_pointX += 1
$9935 = 1

:WARROBE_7488
goto @WARROBE_8048

:WARROBE_7495
if 
  $9936 == 0
goto_if_false @WARROBE_7580
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'LEGS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 2
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_LEGS"
$wardrobe_cam_pointX += 1
$9936 = 1

:WARROBE_7580
goto @WARROBE_8048

:WARROBE_7587
if 
  $9937 == 0
goto_if_false @WARROBE_7673
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'FEET'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 3
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_SHOES"
$wardrobe_cam_pointX += 1
$9937 = 1

:WARROBE_7673
goto @WARROBE_8048

:WARROBE_7680
if 
  $9938 == 0
goto_if_false @WARROBE_7766
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'CHAINS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 13
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_TORSO"
$wardrobe_cam_pointX += 1
$9938 = 1

:WARROBE_7766
goto @WARROBE_8048

:WARROBE_7773
if 
  $9939 == 0
goto_if_false @WARROBE_7859
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'WATCHES'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 14
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_WATCH"
$wardrobe_cam_pointX += 1
$9939 = 1

:WARROBE_7859
goto @WARROBE_8048

:WARROBE_7866
if 
  $9940 == 0
goto_if_false @WARROBE_7950
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHADES'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 15
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_HAT"
$wardrobe_cam_pointX += 1
$9940 = 1

:WARROBE_7950
goto @WARROBE_8048

:WARROBE_7957
if 
  $9941 == 0
goto_if_false @WARROBE_8041
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'HATS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 16
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_HAT"
$wardrobe_cam_pointX += 1
$9941 = 1

:WARROBE_8041
goto @WARROBE_8048

:WARROBE_8048
$temp_var_shops += 1
goto @WARROBE_7286

:WARROBE_8062
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_8070
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8120
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8070

:WARROBE_8120
return 

:WARROBE_8122
if 
  $9955 == 0
goto_if_false @WARROBE_8522
print_help_forever 'WARDH2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8213
$9956 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8213
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8275
$9956 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8275
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_8337
$9956 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8337
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_8399
$9956 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8399
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_8454
$9956 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_8454
set_menu_column_orientation $9956 {column} 0 {alignment} Align.Left
set_menu_column $9956 {column} 0 {title} 'DUMMY' {row0} s$wardrobe_cam_pointY[0] {row1} s$wardrobe_cam_pointY[1] {row2} s$wardrobe_cam_pointY[2] {row3} s$wardrobe_cam_pointY[3] {row4} s$wardrobe_cam_pointY[4] {row5} s$wardrobe_cam_pointY[5] {row6} s$wardrobe_cam_pointY[6] {row7} s$wardrobe_cam_pointY[7] {row8} s$wardrobe_cam_pointY[8] {row9} s$wardrobe_cam_pointY[9] {row10} s$wardrobe_cam_pointY[10] {row11} s$wardrobe_cam_pointY[11]
$9955 = 1

:WARROBE_8522
return 

:WARROBE_8524
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
$9958 = 0
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $9943($9957,12i)
$9863 = get_number_of_items_in_shop 

:WARROBE_8568
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_8775
$model_index = get_item_in_shop $temp_var_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  has_player_bought_item $model_index
goto_if_false @WARROBE_8761
if 
  is_int_var_equal_to_int_var $component_shops == $9943($9957,12i)
goto_if_false @WARROBE_8761
set_var_int_to_var_int $item_model_index($9958,12i) = $model_index
s$barber_shop_offsetZ = get_name_of_item $model_index
set_var_text_label $wardrobe_cam_pointY($9958,12s) = s$barber_shop_offsetZ
set_var_int_to_var_int $item_modelid($9958,12i) = $modelid_shops
set_var_int_to_var_int $area_to_look_at_shops = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_8743
$item_hilight_shops($9958,12i) = 0
goto @WARROBE_8754

:WARROBE_8743
$item_hilight_shops($9958,12i) = 1

:WARROBE_8754
$9958 += 1

:WARROBE_8761
$temp_var_shops += 1
goto @WARROBE_8568

:WARROBE_8775
set_var_int_to_var_int $temp_var_shops = $9958

:WARROBE_8783
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8833
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8783

:WARROBE_8833
return 

:WARROBE_8835
if 
  $9960 == 0
goto_if_false @WARROBE_9290
print_help_forever 'WARDH3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8926
$9959 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_8926
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8988
$9959 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_8988
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9050
$9959 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_9050
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9112
$9959 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_9112
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9167
$9959 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_9167
set_menu_column_orientation $9959 {column} 0 {alignment} Align.Left
set_menu_column $9959 {column} 0 {title} 'DUMMY' {row0} s$wardrobe_cam_pointY[0] {row1} s$wardrobe_cam_pointY[1] {row2} s$wardrobe_cam_pointY[2] {row3} s$wardrobe_cam_pointY[3] {row4} s$wardrobe_cam_pointY[4] {row5} s$wardrobe_cam_pointY[5] {row6} s$wardrobe_cam_pointY[6] {row7} s$wardrobe_cam_pointY[7] {row8} s$wardrobe_cam_pointY[8] {row9} s$wardrobe_cam_pointY[9] {row10} s$wardrobe_cam_pointY[10] {row11} s$wardrobe_cam_pointY[11]
$temp_var_shops = 0

:WARROBE_9235
if 
  is_int_var_greater_than_int_var $9958 > $temp_var_shops
goto_if_false @WARROBE_9283
activate_menu_item $9959 {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @WARROBE_9235

:WARROBE_9283
$9960 = 1

:WARROBE_9290
return 

:WARROBE_9292
if 
  $9860 == 0
goto_if_false @WARROBE_10422
gosub @WARROBE_11522
if 
  $9963 == 1
goto_if_false @WARROBE_9349
delete_menu $9964
clear_help 
$9963 = 0

:WARROBE_9349
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_9381
$second_menu_drawn_wardrobe = 0
goto @WARROBE_9388

:WARROBE_9381
$second_menu_drawn_wardrobe = 1

:WARROBE_9388
$wardrobe_cam_pointX = 0
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_9457
$9861 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9457
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_9519
$9861 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9519
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9581
$9861 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9581
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9643
$9861 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9643
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9698
$9861 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_9698
set_menu_column_orientation $9861 {column} 0 {alignment} Align.Left
if 
  $flag_bought_from_binco == 1
goto_if_false @WARROBE_9768
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP1'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSCHP'
$wardrobe_cam_pointX += 1

:WARROBE_9768
if 
  $flag_bought_from_prolapse == 1
goto_if_false @WARROBE_9829
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP2'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSSPRT'
$wardrobe_cam_pointX += 1

:WARROBE_9829
if 
  $flag_bought_from_suburban == 1
goto_if_false @WARROBE_9890
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP3'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'LACS1'
$wardrobe_cam_pointX += 1

:WARROBE_9890
if 
  $flag_bought_from_zip == 1
goto_if_false @WARROBE_9951
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP4'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CLOTHGP'
$wardrobe_cam_pointX += 1

:WARROBE_9951
if 
  $flag_bought_from_victim == 1
goto_if_false @WARROBE_10012
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP5'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSDESGN'
$wardrobe_cam_pointX += 1

:WARROBE_10012
if 
  $flag_bought_from_didiessachs == 1
goto_if_false @WARROBE_10073
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP6'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSEXL'
$wardrobe_cam_pointX += 1

:WARROBE_10073
$9962 = 0
if or
  $flag_player_got_gimp_suit == 1
  $flag_player_got_valet_uniform == 1
  $flag_player_got_casino_uniform == 1
  $flag_got_mechanic_clothes == 1
  $flag_player_got_police_uniform == 1
  $flag_player_got_country_clothes == 1
goto_if_false @WARROBE_10140
$9962 = 1

:WARROBE_10140
if or
  $flag_got_medic_clothes == 1
  $flag_got_pimp_clothes == 1
goto_if_false @WARROBE_10172
$9962 = 1

:WARROBE_10172
if 
  $9962 == 1
goto_if_false @WARROBE_10233
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP7'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'UNIFORM'
$wardrobe_cam_pointX += 1

:WARROBE_10233
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_10294
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'REMCLT'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'REMOVE'
$wardrobe_cam_pointX += 1

:WARROBE_10294
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_10302
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_10352
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_10302

:WARROBE_10352
print_help_forever 'WARDH1'
set_menu_column $9861 {column} 0 {title} 'DUMMY' {row0} s$wardrobe_cam_pointY[0] {row1} s$wardrobe_cam_pointY[1] {row2} s$wardrobe_cam_pointY[2] {row3} s$wardrobe_cam_pointY[3] {row4} s$wardrobe_cam_pointY[4] {row5} s$wardrobe_cam_pointY[5] {row6} s$wardrobe_cam_pointY[6] {row7} s$wardrobe_cam_pointY[7] {row8} s$wardrobe_cam_pointY[8] {row9} s$wardrobe_cam_pointY[9] {row10} s$wardrobe_cam_pointY[10] {row11} s$wardrobe_cam_pointY[11]
$9860 = 1

:WARROBE_10422
return 

:WARROBE_10424
if 
  $cost_menu_drawn_shops == 0
goto_if_false @WARROBE_10690
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_10489
print_help_forever 'REMOH2'
goto @WARROBE_10500

:WARROBE_10489
print_help_forever 'WARDH4'

:WARROBE_10500
$cost_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'DUMMY' {row0} s$barber_shop_offsetZ {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:WARROBE_10690
return 

:WARROBE_10692
if 
  $bought_menu_drawn_shops == 0
goto_if_false @WARROBE_10906
$bought_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'DUMMY' {row0} 'CHANGED' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:WARROBE_10906
return 

:WARROBE_10908
load_shop "UNIFORM"
load_prices "CLOTHES"
$9863 = get_number_of_items_in_shop 
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
$9958 = 0

:WARROBE_10956
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_11462
$model_index = get_item_in_shop $temp_var_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
set_var_int_to_var_int $item_model_index($9958,12i) = $model_index
s$barber_shop_offsetZ = get_name_of_item $model_index
set_var_text_label $wardrobe_cam_pointY($9958,12s) = s$barber_shop_offsetZ
set_var_int_to_var_int $item_modelid($9958,12i) = $modelid_shops
set_var_int_to_constant $area_to_look_at_shops = 17
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.SpecialCostume
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_11104
$item_hilight_shops($9958,12i) = 0
goto @WARROBE_11115

:WARROBE_11104
$item_hilight_shops($9958,12i) = 1

:WARROBE_11115
if and
  $flag_player_got_gimp_suit == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'GIMP'
goto_if_false @WARROBE_11154
$9958 += 1

:WARROBE_11154
if and
  $flag_player_got_valet_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'VALETU'
goto_if_false @WARROBE_11193
$9958 += 1

:WARROBE_11193
if and
  $flag_player_got_country_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'COUNTRY'
goto_if_false @WARROBE_11232
$9958 += 1

:WARROBE_11232
if and
  $flag_player_got_casino_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'CROUP'
goto_if_false @WARROBE_11271
$9958 += 1

:WARROBE_11271
if and
  $flag_player_got_police_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'POLICE'
goto_if_false @WARROBE_11310
$9958 += 1

:WARROBE_11310
if and
  $flag_got_medic_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'PAMEDIC'
goto_if_false @WARROBE_11349
$9958 += 1

:WARROBE_11349
if and
  $flag_got_pimp_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'PIMPSUT'
goto_if_false @WARROBE_11388
$9958 += 1

:WARROBE_11388
if and
  $flag_got_mechanic_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'RDRIVER'
goto_if_false @WARROBE_11427
$9958 += 1

:WARROBE_11427
set_var_text_label16 v$9854 = "CLO_POSE_TORSO"
$temp_var_shops += 1
goto @WARROBE_10956

:WARROBE_11462
set_var_int_to_var_int $temp_var_shops = $9958

:WARROBE_11470
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_11520
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_11470

:WARROBE_11520
return 

:WARROBE_11522
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
if 
  $9963 == 0
goto_if_false @WARROBE_12530
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_11616
$9964 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11616
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_11678
$9964 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11678
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_11740
$9964 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11740
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_11802
$9964 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11802
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_11857
$9964 = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_11857
set_menu_column_orientation $9964 {column} 0 {alignment} Align.Left
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Torso
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_11933
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'TORSO'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 0
$wardrobe_cam_pointX += 1

:WARROBE_11933
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Legs
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12000
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'LEGS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 2
$wardrobe_cam_pointX += 1

:WARROBE_12000
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Shoes
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12067
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'FEET'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 3
$wardrobe_cam_pointX += 1

:WARROBE_12067
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Necklace
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12134
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'CHAINS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 13
$wardrobe_cam_pointX += 1

:WARROBE_12134
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.WatchOrBracelet
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12201
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'WATCHES'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 14
$wardrobe_cam_pointX += 1

:WARROBE_12201
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Glasses
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12268
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHADES'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 15
$wardrobe_cam_pointX += 1

:WARROBE_12268
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Hat
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12335
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'HATS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 16
$wardrobe_cam_pointX += 1

:WARROBE_12335
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.SpecialCostume
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12402
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP7'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 17
$wardrobe_cam_pointX += 1

:WARROBE_12402
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_12410
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_12460
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_12410

:WARROBE_12460
print_help_forever 'REMOH1'
set_menu_column $9964 {column} 0 {title} 'DUMMY' {row0} s$wardrobe_cam_pointY[0] {row1} s$wardrobe_cam_pointY[1] {row2} s$wardrobe_cam_pointY[2] {row3} s$wardrobe_cam_pointY[3] {row4} s$wardrobe_cam_pointY[4] {row5} s$wardrobe_cam_pointY[5] {row6} s$wardrobe_cam_pointY[6] {row7} s$wardrobe_cam_pointY[7] {row8} s$wardrobe_cam_pointY[8] {row9} s$wardrobe_cam_pointY[9] {row10} s$wardrobe_cam_pointY[10] {row11} s$wardrobe_cam_pointY[11]
$9963 = 1

:WARROBE_12530
return 
terminate_this_script 

//-------------External script 64 (CLOTHES)---------------

:CLOTH
$changing_room_door = 0
$flag_clothes = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_player_use_changing_room = 0
$return_animation_time_clothes = 0.0
$object_animation_time_clothes = 0.0
$flag_player_in_changing_room = 0.0
$9997 = 0.0
$name_of_anim_clothes = 0.0
$9995 = 0.0
$9996 = 0.0
$9997 = 0.0
$shop_progress_clothes = 0.0
$number_of_clothes_in_shop = 0.0
$number_of_clothes_in_area = 0.0
$change_doorX = 0.0
$change_doorY = 0.0
$change_doorZ = 0.0
$clothes_offX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$change_room_door_heading = 0.0
$clothes_locateX = 0.0
$clothes_locateY = 0.0
$clothes_locateZ = 0.0
$clothes_heading = 0.0
$clothes_camX = 0.0
$clothes_camY = 0.0
$clothes_camZ = 0.0
$clothes_cam_pointX = 0.0
$clothes_cam_pointY = 0.0
$clothes_cam_pointZ = 0.0
$flag_remove_menu_drawn_wardrobe = 0
$number_of_items_clothes = 0
$change_doorX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$change_room_door_heading = 0.0
$shop_keep_clothes = 0.0
$clothes_price = 0.0
$9980 = 0
$flag_bought_something_wardrobe = 0
$player_using_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$clothes_hat_camY = 0
$clothes_hat_camZ = 0
$clothes_hat_cam_pointX = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_577
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -373

:CLOTH_577
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_618
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -372

:CLOTH_618
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_659
set_var_int_to_constant $shopkeeper_model_shops = 217
$clothes_hat_camX = -374

:CLOTH_659
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_700
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -375

:CLOTH_700
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_741
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -376

:CLOTH_741
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_782
set_var_int_to_constant $shopkeeper_model_shops = 217
$clothes_hat_camX = -377

:CLOTH_782
request_model $clothes_hat_camX
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 23801
load_all_models_now 
set_deatharrest_state 0
script_name 'CLOTH'

:CLOTH_816
wait 0
if 
  is_player_playing $player1
goto_if_false @CLOTH_6931
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @CLOTH_6917
if 
  $9980 > 0
goto_if_false @CLOTH_945
shut_char_up $scplayer {state} True
if 
  has_language_changed 
goto_if_false @CLOTH_945
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $bought_menu_shops
delete_menu $cost_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$current_Language = get_current_language 

:CLOTH_945
if 
  $9980 == 0
goto_if_false @CLOTH_1900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_1098
$name_of_anim_clothes = 0.0
$9995 = 0.0
$9996 = 0.0
$clothes_camZ = 203.528
$clothes_cam_pointX = -41.644
$clothes_cam_pointY = 1000.852
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1098
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_1233
$name_of_anim_clothes = 2.85
$9995 = -57.534
$9996 = 3.26
$clothes_camZ = 208.806
$clothes_cam_pointX = -98.713
$clothes_cam_pointY = 1004.297
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1233
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_1368
$name_of_anim_clothes = -12.653
$9995 = -90.758
$9996 = 1.477
$clothes_camZ = 207.018
$clothes_cam_pointX = -127.782
$clothes_cam_pointY = 1002.555
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1368
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_1503
$name_of_anim_clothes = -33.204
$9995 = -46.245
$9996 = 0.0
$clothes_camZ = 161.56
$clothes_cam_pointX = -81.369
$clothes_cam_pointY = 1000.859
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1503
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_1765
if 
  $flag_mansion_mission_counter > 3
goto_if_false @CLOTH_1655
$clothes_hat_cam_pointX = get_hash_key "TSHIRTLOCGREY"
add_price_modifier $clothes_hat_cam_pointX {price} 15
$clothes_hat_cam_pointX = get_hash_key "BASKBALLLOC"
add_price_modifier $clothes_hat_cam_pointX {price} 20
$clothes_hat_cam_pointX = get_hash_key "TSHIRTMADDGREY"
add_price_modifier $clothes_hat_cam_pointX {price} 300
$clothes_hat_cam_pointX = get_hash_key "TSHIRTMADDGRN"
add_price_modifier $clothes_hat_cam_pointX {price} 300

:CLOTH_1655
$name_of_anim_clothes = -5.806
$9995 = 36.733
$9996 = -0.815
$clothes_camZ = 204.836
$clothes_cam_pointX = -7.328
$clothes_cam_pointY = 1000.258
$clothes_cam_pointZ = 270.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1765
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_1900
$name_of_anim_clothes = 1.2
$9995 = -114.524
$9996 = -1.51
$clothes_camZ = 204.366
$clothes_cam_pointX = -157.789
$clothes_cam_pointY = 999.563
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = get_number_of_items_in_shop 
$9980 = 1

:CLOTH_1900
if 
  $9980 == 1
goto_if_false @CLOTH_2351
use_text_commands True
show_update_stats False
$change_doorY = 212.8715
add_float_var_to_float_var $change_doorY += $name_of_anim_clothes
$change_doorZ = -42.8156
add_float_var_to_float_var $change_doorZ += $9995
$clothes_offX = 1002.116
add_float_var_to_float_var $clothes_offX += $9996
$clothes_offY = 213.4791
add_float_var_to_float_var $clothes_offY += $name_of_anim_clothes
$clothes_offZ = -42.0238
add_float_var_to_float_var $clothes_offZ += $9995
$change_room_door_heading = 1002.053
add_float_var_to_float_var $change_room_door_heading += $9996
$clothes_locateX = 214.5148
add_float_var_to_float_var $clothes_locateX += $name_of_anim_clothes
$clothes_locateY = -41.6106
add_float_var_to_float_var $clothes_locateY += $9995
$clothes_locateZ = 1002.494
add_float_var_to_float_var $clothes_locateZ += $9996
$clothes_heading = 214.5367
add_float_var_to_float_var $clothes_heading += $name_of_anim_clothes
$clothes_camX = -40.6175
add_float_var_to_float_var $clothes_camX += $9995
$clothes_camY = 1002.609
add_float_var_to_float_var $clothes_camY += $9996
$shop_progress_clothes = 214.622
add_float_var_to_float_var $shop_progress_clothes += $name_of_anim_clothes
$number_of_clothes_in_shop = -40.652
add_float_var_to_float_var $number_of_clothes_in_shop += $9995
$number_of_clothes_in_area = 1001.033
add_float_var_to_float_var $number_of_clothes_in_area += $9996
$return_animation_time_clothes = 213.874
add_float_var_to_float_var $return_animation_time_clothes += $name_of_anim_clothes
$object_animation_time_clothes = -39.811
add_float_var_to_float_var $object_animation_time_clothes += $9995
$flag_player_in_changing_room = 1002.2
add_float_var_to_float_var $flag_player_in_changing_room += $9996
$third_menu_item_picked_wardrobe = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $clothes_camZ {y} $clothes_cam_pointX {z} $clothes_cam_pointY
set_char_only_damaged_by_player $third_menu_item_picked_wardrobe {state} True
set_char_decision_maker $third_menu_item_picked_wardrobe {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_heading $third_menu_item_picked_wardrobe {heading} $clothes_cam_pointZ
$player_in_changeroom_wardrobe = 0
$clothes_name = create_object_no_offset $clothes_hat_camX {x} $return_animation_time_clothes {y} $object_animation_time_clothes {z} $flag_player_in_changing_room
set_object_heading $clothes_name {heading} $9997
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.ShopClosed
$blob_flag_shop = 1
$9980 = 2

:CLOTH_2351
if 
  $9980 == 2
goto_if_false @CLOTH_2767
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2400
gosub @CLOTH_7219

:CLOTH_2400
if 
  not is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_2722
if 
  $player_in_changeroom_wardrobe == 0
goto_if_false @CLOTH_2670
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $third_menu_item_picked_wardrobe
  has_char_been_damaged_by_weapon $third_menu_item_picked_wardrobe {weaponType} WeaponType.AnyWeapon
  $iSetClothesPanic == 1
goto_if_false @CLOTH_2504
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.BoughtEnough
task_hands_up $third_menu_item_picked_wardrobe {time} -2
$player_in_changeroom_wardrobe = 1
goto @CLOTH_2577

:CLOTH_2504
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $shop_progress_clothes {y} $number_of_clothes_in_shop {z} $number_of_clothes_in_area {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @CLOTH_2577
if 
  can_player_start_mission $player1
goto_if_false @CLOTH_2577
$9980 = 3

:CLOTH_2577
if 
  $flag_bought_something_wardrobe == 0
goto_if_false @CLOTH_2663
if 
  locate_char_on_foot_char_3d $scplayer {target} $third_menu_item_picked_wardrobe {xRadius} 8.0 {yRadius} 8.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CLOTH_2656
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.GiveProduct
$flag_bought_something_wardrobe = 1
goto @CLOTH_2663

:CLOTH_2656
$flag_bought_something_wardrobe = 0

:CLOTH_2663
goto @CLOTH_2715

:CLOTH_2670
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2708
gosub @CLOTH_7219

:CLOTH_2708
goto @CLOTH_816

:CLOTH_2715
goto @CLOTH_2767

:CLOTH_2722
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2760
gosub @CLOTH_7219

:CLOTH_2760
goto @CLOTH_816

:CLOTH_2767
if 
  $9980 == 3
goto_if_false @CLOTH_2902
if 
  is_player_playing $player1
goto_if_false @CLOTH_2888
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$flag_player_use_changing_room = 0
$9980 = 4
goto @CLOTH_2902

:CLOTH_2888
gosub @CLOTH_7219
goto @CLOTH_816

:CLOTH_2902
if 
  $9980 == 4
goto_if_false @CLOTH_3415
if 
  is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_2981
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2974
gosub @CLOTH_7219

:CLOTH_2974
goto @CLOTH_816

:CLOTH_2981
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_3322
if 
  TIMERA >= 300
goto_if_false @CLOTH_3322
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $shop_progress_clothes {y} $number_of_clothes_in_shop {z} $number_of_clothes_in_area
set_char_heading $scplayer {heading} $change_doorX
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$players_money, $temp_shopX, $temp_shopY = get_char_coordinates $third_menu_item_picked_wardrobe
if or
  not is_float_var_equal_to_float_var $players_money == $clothes_camZ
  not is_float_var_equal_to_float_var $temp_shopX == $clothes_cam_pointX
  not is_float_var_equal_to_float_var $temp_shopY == $clothes_cam_pointY
goto_if_false @CLOTH_3132
set_char_coordinates $third_menu_item_picked_wardrobe {x} $clothes_camZ {y} $clothes_cam_pointX {z} $clothes_cam_pointY
set_char_heading $third_menu_item_picked_wardrobe {heading} $clothes_cam_pointZ

:CLOTH_3132
set_fixed_camera_position $change_doorY {y} $change_doorZ {z} $clothes_offX {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_offY {y} $clothes_offZ {z} $change_room_door_heading {switchStyle} SwitchType.JumpCut
store_clothes_state 
task_play_anim_non_interruptable $scplayer {animationName} "CLO_IN" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_clothes = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @CLOTH_3260
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:CLOTH_3260
if 
  does_object_exist $clothes_name
goto_if_false @CLOTH_3315
play_object_anim $clothes_name {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 4.0 {lockF} False {loop} True

:CLOTH_3315
$flag_player_use_changing_room = 1

:CLOTH_3322
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_3415
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @CLOTH_3380
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:CLOTH_3380
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_3415
$flag_player_use_changing_room = 0
$9980 = 5

:CLOTH_3415
if 
  $9980 == 5
goto_if_false @CLOTH_4103
if 
  is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_3494
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_3487
gosub @CLOTH_7219

:CLOTH_3487
goto @CLOTH_816

:CLOTH_3494
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_3537
if 
  1 > $flag_player_use_changing_room
goto_if_false @CLOTH_3537
gosub @CLOTH_8435

:CLOTH_3537
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_3610
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_3586
$flag_player_use_changing_room = 1

:CLOTH_3586
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_3610
$flag_player_use_changing_room = 2

:CLOTH_3610
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_3731
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_3731
$shop_main_item_picked_shops = get_menu_item_accepted $main_menu_shops
if 
  0 > $shop_main_item_picked_shops
goto_if_false @CLOTH_3678
$shop_main_item_picked_shops = 0

:CLOTH_3678
gosub @CLOTH_7579
$9980 = 6
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3724
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_3724
$flag_player_use_changing_room = 0

:CLOTH_3731
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_3939
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_3939
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3798
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_3798
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_3830
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_3830
task_play_anim_non_interruptable $scplayer {animationName} "CLO_OUT" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_clothes = 0.0
if 
  does_object_exist $clothes_name
goto_if_false @CLOTH_3932
play_object_anim $clothes_name {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_3932
$flag_player_use_changing_room = 5

:CLOTH_3939
if 
  $flag_player_use_changing_room == 5
goto_if_false @CLOTH_4027
if 
  is_char_playing_anim $scplayer {animationName} "CLO_OUT"
goto_if_false @CLOTH_3999
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_OUT"

:CLOTH_3999
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_4027
$flag_player_use_changing_room = 6

:CLOTH_4027
if 
  $flag_player_use_changing_room == 6
goto_if_false @CLOTH_4103
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.RemoveTattoo
$clothes_hat_camY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9980 = 8

:CLOTH_4103
if 
  $9980 == 6
goto_if_false @CLOTH_5208
if 
  is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_4182
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_4175
gosub @CLOTH_7219

:CLOTH_4175
goto @CLOTH_816

:CLOTH_4182
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_4225
if 
  2 > $flag_player_use_changing_room
goto_if_false @CLOTH_4225
gosub @CLOTH_9005

:CLOTH_4225
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_4583
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_4274
$flag_player_use_changing_room = 1

:CLOTH_4274
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_4583
$clothes_hat_camY = 0
$shop_sub_item_picked_shops = get_menu_item_selected $sub_menu_shops
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @CLOTH_4331
$shop_sub_item_picked_shops = 0

:CLOTH_4331
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $flag_got_special_clothes_wardrobe = $item_price($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $component_shops = $item_component($shop_sub_item_picked_shops,12i)
set_var_text_label s$third_menu_wardrobe = $item_text_label($shop_sub_item_picked_shops,12s)
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @CLOTH_4476
set_fixed_camera_position $clothes_locateX {y} $clothes_locateY {z} $clothes_locateZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_heading {y} $clothes_camX {z} $clothes_camY {switchStyle} SwitchType.JumpCut
goto @CLOTH_4544

:CLOTH_4476
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
goto_if_false @CLOTH_4505
play_mission_audio MissionAudioSlot.Slot4

:CLOTH_4505
set_fixed_camera_position $change_doorY {y} $change_doorZ {z} $clothes_offX {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_offY {y} $clothes_offZ {z} $change_room_door_heading {switchStyle} SwitchType.JumpCut

:CLOTH_4544
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4576
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_4576
$flag_player_use_changing_room = 2

:CLOTH_4583
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_4689
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_4689
$flag_player_use_changing_room = 0
$9980 = 5
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4664
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:CLOTH_4664
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_4689
gosub @CLOTH_8435

:CLOTH_4689
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_4731
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_4731
$flag_player_use_changing_room = 3

:CLOTH_4731
if 
  $flag_player_use_changing_room == 3
goto_if_false @CLOTH_4926
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
  is_int_var_equal_to_constant $area_to_look_at_shops == 3
goto_if_false @CLOTH_4794
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
store_clothes_state 

:CLOTH_4794
give_player_clothes $player1 {textureHash} $model_index {modelHash} $modelid_shops {bodyPart} $component_shops
build_player_model $player1
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_IN" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_clothes = 0.0
if 
  does_object_exist $clothes_name
goto_if_false @CLOTH_4919
play_object_anim $clothes_name {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_4919
$flag_player_use_changing_room = 4

:CLOTH_4926
if 
  $flag_player_use_changing_room == 4
goto_if_false @CLOTH_5064
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_IN"
goto_if_false @CLOTH_4994
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_IN"

:CLOTH_4994
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_5064
task_play_anim_non_interruptable $scplayer {animationName} v$stored_clothes_shop {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 5

:CLOTH_5064
if 
  $flag_player_use_changing_room == 5
goto_if_false @CLOTH_5208
if 
  is_char_playing_anim $scplayer {animationName} v$stored_clothes_shop
goto_if_false @CLOTH_5112
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} v$stored_clothes_shop

:CLOTH_5112
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_5208
gosub @CLOTH_9555
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_clothes = 0.0
$9980 = 7
$flag_player_use_changing_room = 0

:CLOTH_5208
if 
  $9980 == 7
goto_if_false @CLOTH_6623
if 
  is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_5287
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_5280
gosub @CLOTH_7219

:CLOTH_5280
goto @CLOTH_816

:CLOTH_5287
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_5592
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_5397
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
$flag_player_use_changing_room = 1

:CLOTH_5397
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_5592
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
gosub @CLOTH_8094
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5514
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_5514
if 
  $clothes_hat_camY == 0
goto_if_false @CLOTH_5546
$flag_player_use_changing_room = 3
goto @CLOTH_5592

:CLOTH_5546
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_5578
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_5578
$flag_player_use_changing_room = 0
$9980 = 6

:CLOTH_5592
if 
  2 > $flag_player_use_changing_room
goto_if_false @CLOTH_5617
gosub @CLOTH_9555

:CLOTH_5617
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_6017
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_6017
$2753 = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $flag_got_special_clothes_wardrobe
goto_if_false @CLOTH_5944
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_5864
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5730
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_5730
buy_item $model_index
$clothes_hat_camZ = 1
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.GfriendIntro
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
gosub @CLOTH_9930
gosub @CLOTH_10300
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 2
goto @CLOTH_5937

:CLOTH_5864
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CLOTH_5937
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.GfriendPhysiqueCritique
print_now 'CLTHNO2' {time} 5000 {flag} 1
$flag_player_use_changing_room = 0
$flag_bought_item_already_shops = 1

:CLOTH_5937
goto @CLOTH_6017

:CLOTH_5944
if 
  $flag_no_money_shops == 0
goto_if_false @CLOTH_6017
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.GfriendNegResponse
print_now 'SHOPNO' {time} 5000 {flag} 1
$flag_player_use_changing_room = 0
$flag_no_money_shops = 1

:CLOTH_6017
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_6159
if 
  is_char_playing_anim $scplayer {animationName} "CLO_BUY"
goto_if_false @CLOTH_6077
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_BUY"

:CLOTH_6077
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_6159
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 3

:CLOTH_6159
if 
  $flag_player_use_changing_room == 3
goto_if_false @CLOTH_6292
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_OUT" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_clothes = 0.0
if 
  does_object_exist $clothes_name
goto_if_false @CLOTH_6285
play_object_anim $clothes_name {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_6285
$flag_player_use_changing_room = 4

:CLOTH_6292
if 
  $flag_player_use_changing_room == 4
goto_if_false @CLOTH_6623
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_OUT"
goto_if_false @CLOTH_6362
$shop_keep_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_OUT"

:CLOTH_6362
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_6623
restore_clothes_state 
build_player_model $player1
store_clothes_state 
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_6424
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_6424
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_6456
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_6456
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_6488
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_6488
$clothes_hat_camY = 1
if 
  $clothes_hat_camZ == 1
goto_if_false @CLOTH_6577
$flag_player_use_changing_room = 0
$9980 = 5
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_6570
if 
  1 > $flag_player_use_changing_room
goto_if_false @CLOTH_6570
gosub @CLOTH_8435

:CLOTH_6570
goto @CLOTH_6623

:CLOTH_6577
$flag_player_use_changing_room = 0
$9980 = 6
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_6623
gosub @CLOTH_8094
gosub @CLOTH_9005

:CLOTH_6623
if 
  $9980 == 8
goto_if_false @CLOTH_6910
if 
  is_char_dead $third_menu_item_picked_wardrobe
goto_if_false @CLOTH_6702
gosub @CLOTH_6945
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_6695
gosub @CLOTH_7219

:CLOTH_6695
goto @CLOTH_816

:CLOTH_6702
if 
  $player_in_changeroom_wardrobe == 0
goto_if_false @CLOTH_6783
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $third_menu_item_picked_wardrobe
  has_char_been_damaged_by_weapon $third_menu_item_picked_wardrobe {weaponType} WeaponType.AnyWeapon
  $iSetClothesPanic == 1
goto_if_false @CLOTH_6783
$foodsmall_junkfud = set_char_say_context $third_menu_item_picked_wardrobe {phrase} SpeechId.BoughtEnough
task_hands_up $third_menu_item_picked_wardrobe {time} -2
$player_in_changeroom_wardrobe = 1

:CLOTH_6783
if 
  not locate_char_on_foot_3d $scplayer {x} $shop_progress_clothes {y} $number_of_clothes_in_shop {z} $number_of_clothes_in_area {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @CLOTH_6910
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9980 = 2
$flag_player_use_changing_room = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$clothes_hat_camZ = 0
$blob_flag_shop = 1

:CLOTH_6910
goto @CLOTH_6924

:CLOTH_6917
gosub @CLOTH_7219

:CLOTH_6924
goto @CLOTH_6938

:CLOTH_6931
gosub @CLOTH_7219

:CLOTH_6938
goto @CLOTH_816

:CLOTH_6945
if 
  $9980 >= 1
goto_if_false @CLOTH_6965
clear_help 

:CLOTH_6965
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_6997
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_6997
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7029
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_7029
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7061
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_7061
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7093
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_7093
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$flag_player_use_changing_room = 0
$clothes_hat_camY = 0
$clothes_hat_camZ = 0
$9980 = 2
return 

:CLOTH_7219
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_7251
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_7251
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7283
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_7283
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7315
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_7315
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7347
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_7347
if 
  $9980 >= 1
goto_if_false @CLOTH_7367
clear_help 

:CLOTH_7367
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$clothes_hat_camY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$blob_flag_shop = 1
$flag_bought_something_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
$flag_player_use_changing_room = 0
$9980 = 0
delete_object $clothes_name
mark_model_as_no_longer_needed $clothes_hat_camX
delete_char $third_menu_item_picked_wardrobe
mark_model_as_no_longer_needed $shopkeeper_model_shops
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
if 
  is_player_playing $player1
goto_if_false @CLOTH_7575
shut_char_up $scplayer {state} False

:CLOTH_7575
terminate_this_script 
return 

:CLOTH_7579
if 
  $shop_main_item_picked_shops == 0
goto_if_false @CLOTH_7653
$area_looked_for_shops = 0
set_var_int_to_constant $area_to_look_at_shops = 0
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_TORSO"

:CLOTH_7653
if 
  $shop_main_item_picked_shops == 1
goto_if_false @CLOTH_7726
$area_looked_for_shops = 2
set_var_int_to_constant $area_to_look_at_shops = 2
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_LEGS"

:CLOTH_7726
if 
  $shop_main_item_picked_shops == 2
goto_if_false @CLOTH_7800
$area_looked_for_shops = 3
set_var_int_to_constant $area_to_look_at_shops = 3
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_SHOES"

:CLOTH_7800
if 
  $shop_main_item_picked_shops == 3
goto_if_false @CLOTH_7874
$area_looked_for_shops = 13
set_var_int_to_constant $area_to_look_at_shops = 13
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_TORSO"

:CLOTH_7874
if 
  $shop_main_item_picked_shops == 4
goto_if_false @CLOTH_7948
$area_looked_for_shops = 14
set_var_int_to_constant $area_to_look_at_shops = 14
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_WATCH"

:CLOTH_7948
if 
  $shop_main_item_picked_shops == 5
goto_if_false @CLOTH_8020
$area_looked_for_shops = 15
set_var_int_to_constant $area_to_look_at_shops = 15
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_HAT"

:CLOTH_8020
if 
  $shop_main_item_picked_shops == 6
goto_if_false @CLOTH_8092
$area_looked_for_shops = 16
set_var_int_to_constant $area_to_look_at_shops = 16
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_HAT"

:CLOTH_8092
return 

:CLOTH_8094
$item_no_shops = 0
$flag_clothes = 0

:CLOTH_8108
if 
  is_int_var_greater_than_int_var $changing_room_door > $item_no_shops
goto_if_false @CLOTH_8353
$model_index = get_item_in_shop $item_no_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  is_int_var_equal_to_int_var $component_shops == $area_looked_for_shops
goto_if_false @CLOTH_8339
set_var_int_to_var_int $item_model_index($flag_clothes,12i) = $model_index
s$third_menu_wardrobe = get_name_of_item $model_index
$flag_got_special_clothes_wardrobe = get_price_of_item $model_index
set_var_int_to_var_int $item_price($flag_clothes,12i) = $flag_got_special_clothes_wardrobe
set_var_text_label $item_text_label($flag_clothes,12s) = s$third_menu_wardrobe
set_var_int_to_var_int $item_modelid($flag_clothes,12i) = $modelid_shops
set_var_int_to_var_int $item_component($flag_clothes,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_8287
$item_hilight_shops($flag_clothes,12i) = 0
goto @CLOTH_8332

:CLOTH_8287
if 
  has_player_bought_item $model_index
goto_if_false @CLOTH_8321
$item_hilight_shops($flag_clothes,12i) = 1
goto @CLOTH_8332

:CLOTH_8321
$item_hilight_shops($flag_clothes,12i) = 2

:CLOTH_8332
$flag_clothes += 1

:CLOTH_8339
$item_no_shops += 1
goto @CLOTH_8108

:CLOTH_8353
set_var_int_to_var_int $temp_var_shops = $flag_clothes

:CLOTH_8361
if 
  12 > $temp_var_shops
goto_if_false @CLOTH_8433
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CLOTH_8361

:CLOTH_8433
return 

:CLOTH_8435
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_9003
print_help_forever 'CLOTHA'
set_var_text_label s$ITEM1 = 'TORSO'
set_var_text_label s$ITEM2 = 'LEGS'
set_var_text_label s$ITEM3 = 'FEET'
set_var_text_label s$ITEM4 = 'CHAINS'
set_var_text_label s$ITEM5 = 'WATCHES'
set_var_text_label s$ITEM6 = 'SHADES'
set_var_text_label s$ITEM7 = 'HATS'
set_var_text_label s$ITEM8 = 'DUMMY'
set_var_text_label s$ITEM9 = 'DUMMY'
set_var_text_label s$ITEM10 = 'DUMMY'
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_8694
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8935

:CLOTH_8694
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_8756
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8935

:CLOTH_8756
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_8818
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8935

:CLOTH_8818
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_8880
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8935

:CLOTH_8880
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_8935
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CLOTH_8935
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$ITEM1 {row1} s$ITEM2 {row2} s$ITEM3 {row3} s$ITEM4 {row4} s$ITEM5 {row5} s$ITEM6 {row6} s$ITEM7 {row7} s$ITEM8 {row8} s$ITEM9 {row9} s$ITEM10 {row10} s$ITEM11 {row11} s$ITEM12
$main_menu_drawn_shops = 1

:CLOTH_9003
return 

:CLOTH_9005
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_9553
print_help_forever 'CLOTHB'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_9096
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9337

:CLOTH_9096
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_9158
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9337

:CLOTH_9158
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_9220
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9337

:CLOTH_9220
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_9282
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9337

:CLOTH_9282
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_9337
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CLOTH_9337
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$temp_var_shops = 0

:CLOTH_9405
if 
  is_int_var_greater_than_int_var $flag_clothes > $temp_var_shops
goto_if_false @CLOTH_9546
if 
  $item_hilight_shops($temp_var_shops,12i) == 0
goto_if_false @CLOTH_9473
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
goto @CLOTH_9532

:CLOTH_9473
if 
  $item_hilight_shops($temp_var_shops,12i) == 1
goto_if_false @CLOTH_9512
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} True
goto @CLOTH_9532

:CLOTH_9512
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} True

:CLOTH_9532
$temp_var_shops += 1
goto @CLOTH_9405

:CLOTH_9546
$sub_menu_drawn_shops = 1

:CLOTH_9553
return 

:CLOTH_9555
if 
  $cost_menu_drawn_shops == 0
goto_if_false @CLOTH_9928
print_help_forever 'CLOTHC'
$cost_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'CLOTCHO' {row0} s$third_menu_wardrobe {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $flag_got_special_clothes_wardrobe
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:CLOTH_9928
return 

:CLOTH_9930
if 
  $bought_menu_drawn_shops == 0
goto_if_false @CLOTH_10298
$bought_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'CLOTCHO' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $flag_got_special_clothes_wardrobe
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:CLOTH_10298
return 

:CLOTH_10300
if 
  $flag_bought_from_binco == 0
goto_if_false @CLOTH_10350
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_10350
$flag_bought_from_binco = 1

:CLOTH_10350
if 
  $flag_bought_from_prolapse == 0
goto_if_false @CLOTH_10400
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_10400
$flag_bought_from_prolapse = 1

:CLOTH_10400
if 
  $flag_bought_from_suburban == 0
goto_if_false @CLOTH_10450
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_10450
$flag_bought_from_suburban = 1

:CLOTH_10450
if 
  $flag_bought_from_zip == 0
goto_if_false @CLOTH_10500
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_10500
$flag_bought_from_zip = 1

:CLOTH_10500
if 
  $flag_bought_from_victim == 0
goto_if_false @CLOTH_10550
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_10550
$flag_bought_from_victim = 1

:CLOTH_10550
if 
  $flag_bought_from_didiessachs == 0
goto_if_false @CLOTH_10600
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_10600
$flag_bought_from_didiessachs = 1

:CLOTH_10600
return 
terminate_this_script 

//-------------External script 65 (JUNKFUD)---------------

:JFUD
$vomitZ = 0.0
$return_animation_time_food = 0.0
$players_fat = 0.0
$players_health = 0.0
$food_heading = 0.0
$flag_vomit_playing_food = 0.0
$junkfudX = 0.0
$junkfudY = 0.0
$junkfudZ = 0.0
$junkfud_heading = 0.0
$junkfud_cam_offX = 0.0
$junkfud_cam_offY = 0.0
$junkfud_cam_offZ = 0.0
$cam_point_junkfudX = 0.0
$cam_point_junkfudY = 0.0
$cam_point_junnkfudZ = 0.0
$flag_food = 0
$flag_ate_too_much_food = 0.0
$flag_food_message = 0
$food_name = 0.0
$10040 = 0.0
$pish_flag = 0.0
$hash_key_clothes = 0
$skip_shopping_wait = 0
$shop_keep_clothY = 0
$found_a_food_shop = 0
$ffood_obj = 0
$lv_arm_LOD = 0
$current_food_item = 0.0
$blob_flag_shop = 1
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_358
set_var_int_to_constant $shopkeeper_model_shops = 155
$junkfud_offsetX = -378
$junkfud_offsetY = -379
$junkfud_offsetZ = -59
$junkfud_heading_offset = -380

:JFUD_358
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_423
set_var_int_to_constant $shopkeeper_model_shops = 167
$junkfud_offsetX = -381
$junkfud_offsetY = -382
$junkfud_offsetZ = -383
$junkfud_heading_offset = -384

:JFUD_423
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_487
set_var_int_to_constant $shopkeeper_model_shops = 205
$junkfud_offsetX = -385
$junkfud_offsetY = -386
$junkfud_offsetZ = -62
$junkfud_heading_offset = -387

:JFUD_487
request_model $junkfud_offsetX
request_model $junkfud_offsetY
request_model $junkfud_offsetZ
request_model $junkfud_heading_offset
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1828
request_model $shopkeeper_model_shops
load_all_models_now 
set_deatharrest_state 0
if 
  $hash_key_clothes == 1000000
goto_if_false @JFUD_563
$shop_keep_heading_clothes = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ

:JFUD_563
script_name 'JFUD'

:JFUD_574
wait 0
if 
  is_player_playing $player1
goto_if_false @JFUD_9696
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @JFUD_9682
if 
  $num_of_food_stuffs > 0
goto_if_false @JFUD_672
if 
  has_language_changed 
goto_if_false @JFUD_672
clear_help 
delete_menu $cost_menu_shops
delete_menu $bought_menu_shops
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:JFUD_672
if 
  $num_of_food_stuffs == 0
goto_if_false @JFUD_1005
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_795
$shop_keep_clothZ = get_number_of_items_in_shop 
$vomitZ = 0.0
$return_animation_time_food = 0.0
$players_fat = 0.0
$players_health = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_795
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_900
$shop_keep_clothZ = get_number_of_items_in_shop 
$vomitZ = -5.211
$return_animation_time_food = 112.784
$players_fat = 0.3
$players_health = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_1005
$shop_keep_clothZ = get_number_of_items_in_shop 
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
$vomitZ = 1.566
$return_animation_time_food = 51.419
$players_fat = 0.01
$players_health = 0.0
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_1005
if 
  $num_of_food_stuffs == 1
goto_if_false @JFUD_1427
use_text_commands True
show_update_stats False
$flag_bought_some_food = 374.0
add_float_var_to_float_var $flag_bought_some_food += $vomitZ
$vomit_foodshop = -117.141
add_float_var_to_float_var $vomit_foodshop += $return_animation_time_food
$vomitX = 1000.539
add_float_var_to_float_var $vomitX += $players_fat
$vomitY = 180.0
add_float_var_to_float_var $vomitY += $players_health
$food_heading = 374.0
add_float_var_to_float_var $food_heading += $vomitZ
$flag_vomit_playing_food = -119.1869
add_float_var_to_float_var $flag_vomit_playing_food += $return_animation_time_food
$junkfudX = 1002.019
add_float_var_to_float_var $junkfudX += $players_fat
$junkfudY = 373.9532
add_float_var_to_float_var $junkfudY += $vomitZ
$junkfudZ = -118.189
add_float_var_to_float_var $junkfudZ += $return_animation_time_food
$junkfud_heading = 1001.975
add_float_var_to_float_var $junkfud_heading += $players_fat
$junkfud_cam_offX = 374.717
add_float_var_to_float_var $junkfud_cam_offX += $vomitZ
$junkfud_cam_offY = -122.55
add_float_var_to_float_var $junkfud_cam_offY += $return_animation_time_food
$junkfud_cam_offZ = 1002.572
add_float_var_to_float_var $junkfud_cam_offZ += $players_fat
$cam_point_junkfudX = 374.599
add_float_var_to_float_var $cam_point_junkfudX += $vomitZ
$cam_point_junkfudY = -121.608
add_float_var_to_float_var $cam_point_junkfudY += $return_animation_time_food
$cam_point_junnkfudZ = 1002.256
add_float_var_to_float_var $cam_point_junnkfudZ += $players_fat
if 
  $clothes_hat_cam_pointZ == 0
goto_if_false @JFUD_1420
$clothes_hat_cam_pointY = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $flag_bought_some_food {y} $vomit_foodshop {z} $vomitX
set_char_heading $clothes_hat_cam_pointY {heading} $vomitY
set_char_only_damaged_by_player $clothes_hat_cam_pointY {state} True
set_char_decision_maker $clothes_hat_cam_pointY {handleOrTemplate} DecisionMakerCharTemplate.Empty
$keep_offX, $keep_offY, $keep_offZ = get_offset_from_char_in_world_coords $clothes_hat_cam_pointY {xOffset} $keep_off_dirX {yOffset} $keep_off_dirY {zOffset} 0.0
$lv_arm_LOD = 0
$clothes_hat_cam_pointZ = 1

:JFUD_1420
$num_of_food_stuffs = 2

:JFUD_1427
if 
  $num_of_food_stuffs == 2
goto_if_false @JFUD_2034
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1476
gosub @JFUD_9887

:JFUD_1476
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_1989
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_1937
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $clothes_hat_cam_pointY
  has_char_been_damaged_by_weapon $clothes_hat_cam_pointY {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_1587
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.BoughtEnough
task_hands_up $clothes_hat_cam_pointY {time} -2
$iSetPizzaPanic = 1
$lv_arm_LOD = 1
goto @JFUD_1930

:JFUD_1587
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_1765
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @JFUD_1758
if 
  can_player_start_mission $player1
goto_if_false @JFUD_1758
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.ShowChangingroom
$2753 = store_score $player1
if 
  2 > $flag_menace_buyfood
goto_if_false @JFUD_1751
if 
  $flag_player_on_menace_mission == 1
goto_if_false @JFUD_1751
if 
  2 > $2753
goto_if_false @JFUD_1751
add_score $player1 {money} 2

:JFUD_1751
$num_of_food_stuffs = 3

:JFUD_1758
goto @JFUD_1930

:JFUD_1765
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_1899
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_1847
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.GfriendPhysiqueCritique
print_now 'FOOD1' {time} 5000 {flag} 1
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
goto @JFUD_1892

:JFUD_1847
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1885
gosub @JFUD_9887

:JFUD_1885
goto @JFUD_574

:JFUD_1892
$found_a_food_shop = 1

:JFUD_1899
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1930
gosub @JFUD_9887

:JFUD_1930
goto @JFUD_1982

:JFUD_1937
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1975
gosub @JFUD_9887

:JFUD_1975
goto @JFUD_574

:JFUD_1982
goto @JFUD_2034

:JFUD_1989
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2027
gosub @JFUD_9887

:JFUD_2027
goto @JFUD_574

:JFUD_2034
if 
  $num_of_food_stuffs == 3
goto_if_false @JFUD_4339
set_player_control $player1 {state} False
set_minigame_in_progress True
set_char_coordinates_dont_warp_gang_no_offset $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_heading $scplayer {heading} $flag_ate_too_much_food
$10044 = get_char_health $scplayer
$stored_shop = get_float_stat StatId.Fat
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_2401
$players_money, $temp_shopX, $temp_shopY = get_char_coordinates $clothes_hat_cam_pointY
if or
  not is_float_var_equal_to_float_var $players_money == $flag_bought_some_food
  not is_float_var_equal_to_float_var $temp_shopX == $vomit_foodshop
  not is_float_var_equal_to_float_var $temp_shopY == $vomitX
goto_if_false @JFUD_2224
set_char_coordinates $clothes_hat_cam_pointY {x} $flag_bought_some_food {y} $vomit_foodshop {z} $vomitX
set_char_heading $clothes_hat_cam_pointY {heading} $vomitY

:JFUD_2224
$tray_offX, $tray_offY, $tray_offZ = get_offset_from_char_in_world_coords $clothes_hat_cam_pointY {xOffset} 0.0 {yOffset} 0.8 {zOffset} 0.1
if 
  not is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_2333
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0

:JFUD_2333
$foodsmall_junkfud = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.ShowChangingroom
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2394
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"

:JFUD_2394
goto @JFUD_2446

:JFUD_2401
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2439
gosub @JFUD_9887

:JFUD_2439
goto @JFUD_574

:JFUD_2446
TIMERA = 0

:JFUD_2453
if 
  TIMERA >= 600
goto_if_false @JFUD_2631
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_2506
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2506
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_2574
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2560
gosub @JFUD_9887

:JFUD_2560
goto @JFUD_574
goto @JFUD_2624

:JFUD_2574
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2624
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"

:JFUD_2624
goto @JFUD_2453

:JFUD_2631
if 
  is_player_playing $player1
goto_if_false @JFUD_2700
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position $food_heading {y} $flag_vomit_playing_food {z} $junkfudX {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $junkfudY {y} $junkfudZ {z} $junkfud_heading {switchStyle} SwitchType.JumpCut
goto @JFUD_2714

:JFUD_2700
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2714
if 
  not is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_2925

:JFUD_2745
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_2925
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_2800
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2800
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_2868
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2854
gosub @JFUD_9887

:JFUD_2854
goto @JFUD_574
goto @JFUD_2918

:JFUD_2868
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2918
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_IN"

:JFUD_2918
goto @JFUD_2745

:JFUD_2925
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_3053
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_3046
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"

:JFUD_3046
goto @JFUD_3098

:JFUD_3053
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3091
gosub @JFUD_9887

:JFUD_3091
goto @JFUD_574

:JFUD_3098
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_3282
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_3153
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3153
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_3221
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3207
gosub @JFUD_9887

:JFUD_3207
goto @JFUD_574
goto @JFUD_3275

:JFUD_3221
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_3275
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"

:JFUD_3275
goto @JFUD_3098

:JFUD_3282
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_3419
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_IN"
goto_if_false @JFUD_3412
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_IN"

:JFUD_3412
goto @JFUD_3464

:JFUD_3419
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3457
gosub @JFUD_9887

:JFUD_3457
goto @JFUD_574

:JFUD_3464
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_3654
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_3519
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3519
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_3587
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3573
gosub @JFUD_9887

:JFUD_3573
goto @JFUD_574
goto @JFUD_3647

:JFUD_3587
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_IN"
goto_if_false @JFUD_3647
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_IN"

:JFUD_3647
goto @JFUD_3464

:JFUD_3654
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRestaurantTrayCollision
$shop_keep_junkfud = 0
$shop_door_model_clothes = 0
$model_index = get_item_in_shop $shop_keep_junkfud
$shop_keep_heading_clothes = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ
$shop_keep_clothX = get_price_of_item $model_index
s$player_in_changeroom_clothes = get_name_of_item $model_index
set_var_int_to_var_int $flag_food_message = $shop_keep_clothX
set_var_text_label s$shop_item_price = s$player_in_changeroom_clothes
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_3915
task_pick_up_object $clothes_hat_cam_pointY {object} $shop_keep_heading_clothes {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
$shop_door_model_clothes = 1
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_3908
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"

:JFUD_3908
goto @JFUD_3960

:JFUD_3915
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3953
gosub @JFUD_9887

:JFUD_3953
goto @JFUD_574

:JFUD_3960
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_4144
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4015
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4015
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_4083
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4069
gosub @JFUD_9887

:JFUD_4069
goto @JFUD_574
goto @JFUD_4137

:JFUD_4083
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_4137
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"

:JFUD_4137
goto @JFUD_3960

:JFUD_4144
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_4287
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP"
goto_if_false @JFUD_4280
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP"

:JFUD_4280
goto @JFUD_4332

:JFUD_4287
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4325
gosub @JFUD_9887

:JFUD_4325
goto @JFUD_574

:JFUD_4332
$num_of_food_stuffs = 4

:JFUD_4339
if 
  $num_of_food_stuffs == 4
goto_if_false @JFUD_9675
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_9668
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @JFUD_4603
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4447
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_4447
$flag_no_money_shops = 0
$shop_keep_junkfud -= 1
TIMERA = 0

:JFUD_4468
if 
  150 > TIMERA
goto_if_false @JFUD_4589
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4521
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4521
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_4582
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4575
gosub @JFUD_9887

:JFUD_4575
goto @JFUD_574

:JFUD_4582
goto @JFUD_4468

:JFUD_4589
$ffood_obj = 0
$shop_door_model_clothes = 0

:JFUD_4603
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @JFUD_4815
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4659
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_4659
$flag_no_money_shops = 0
$shop_keep_junkfud += 1
TIMERA = 0

:JFUD_4680
if 
  150 > TIMERA
goto_if_false @JFUD_4801
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4733
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4733
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_4794
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4787
gosub @JFUD_9887

:JFUD_4787
goto @JFUD_574

:JFUD_4794
goto @JFUD_4680

:JFUD_4801
$shop_door_model_clothes = 0
$ffood_obj = 0

:JFUD_4815
if 
  0 > $shop_keep_junkfud
goto_if_false @JFUD_4848
set_var_int_to_var_int $shop_keep_junkfud = $shop_keep_clothZ
$shop_keep_junkfud -= 1

:JFUD_4848
if 
  is_int_var_equal_to_int_var $shop_keep_junkfud == $shop_keep_clothZ
goto_if_false @JFUD_4874
$shop_keep_junkfud = 0

:JFUD_4874
if 
  $shop_door_model_clothes == 0
goto_if_false @JFUD_5930
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_5026
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_5019
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_5019
goto @JFUD_5071

:JFUD_5026
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5064
gosub @JFUD_9887

:JFUD_5064
goto @JFUD_574

:JFUD_5071
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_5259
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_5126
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5126
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_5194
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5180
gosub @JFUD_9887

:JFUD_5180
goto @JFUD_574
goto @JFUD_5252

:JFUD_5194
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_5252
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_5252
goto @JFUD_5071

:JFUD_5259
gosub @JFUD_12993
$model_index = get_item_in_shop $shop_keep_junkfud
$shop_keep_heading_clothes = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ
$shop_keep_clothX = get_price_of_item $model_index
s$player_in_changeroom_clothes = get_name_of_item $model_index
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRestaurantTrayCollision
set_var_int_to_var_int $flag_food_message = $shop_keep_clothX
set_var_text_label s$shop_item_price = s$player_in_changeroom_clothes
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_5506
task_pick_up_object $clothes_hat_cam_pointY {object} $shop_keep_heading_clothes {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_5499
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"

:JFUD_5499
goto @JFUD_5551

:JFUD_5506
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5544
gosub @JFUD_9887

:JFUD_5544
goto @JFUD_574

:JFUD_5551
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_5735
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_5606
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5606
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_5674
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5660
gosub @JFUD_9887

:JFUD_5660
goto @JFUD_574
goto @JFUD_5728

:JFUD_5674
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_5728
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT"

:JFUD_5728
goto @JFUD_5551

:JFUD_5735
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_5878
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP"
goto_if_false @JFUD_5871
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_LOOP"

:JFUD_5871
goto @JFUD_5923

:JFUD_5878
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5916
gosub @JFUD_9887

:JFUD_5916
goto @JFUD_574

:JFUD_5923
$shop_door_model_clothes = 1

:JFUD_5930
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_5955
gosub @JFUD_12352

:JFUD_5955
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @JFUD_9668

:JFUD_5972
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @JFUD_6091
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_6023
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6023
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_6084
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6077
gosub @JFUD_9887

:JFUD_6077
goto @JFUD_574

:JFUD_6084
goto @JFUD_5972

:JFUD_6091
$flag_no_money_shops = 0
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  is_player_playing $player1
goto_if_false @JFUD_6151
$2753 = store_score $player1
goto @JFUD_6165

:JFUD_6151
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6165
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $shop_keep_clothX
goto_if_false @JFUD_9534
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_6997
buy_item $model_index
$ffood_obj = 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_6252
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @JFUD_6252
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjEat

:JFUD_6252
if 
  $flag_store_day_food == 0
goto_if_false @JFUD_6282
$game_timer_wil = get_game_timer 
$flag_store_day_food = 1

:JFUD_6282
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
$total_food_bought_per_day_shops += 1
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_6337
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.GfriendIntro
goto @JFUD_6382

:JFUD_6337
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6375
gosub @JFUD_9887

:JFUD_6375
goto @JFUD_574

:JFUD_6382
TIMERA = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_6421
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_6421
if 
  $bought_menu_drawn_shops == 0
goto_if_false @JFUD_6789
$bought_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'MEAL' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $shop_keep_clothX
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:JFUD_6789
if 
  1000 >= TIMERA
goto_if_false @JFUD_6910
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_6842
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6842
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_6903
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6896
gosub @JFUD_9887

:JFUD_6896
goto @JFUD_574

:JFUD_6903
goto @JFUD_6789

:JFUD_6910
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_6940
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:JFUD_6940
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_6965
gosub @JFUD_12352

:JFUD_6965
if 
  $flag_menace_buyfood == 1
goto_if_false @JFUD_6990
$flag_menace_buyfood = 2

:JFUD_6990
goto @JFUD_9527

:JFUD_6997
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_9527
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_7079
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.GfriendPhysiqueCritique
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'FOOD1' {time} 5000 {flag} 1
goto @JFUD_7124

:JFUD_7079
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_7117
gosub @JFUD_9887

:JFUD_7117
goto @JFUD_574

:JFUD_7124
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_7156
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_7156
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_7188
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_7188
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_7314
set_fading_colour 0 {g} 0 {b} 0
set_music_does_fade False
do_fade 0 {direction} Fade.Out
gosub @JFUD_12993
delete_char $clothes_hat_cam_pointY
$flag_menace_buyfood = 3
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
set_char_health $scplayer {health} $10044
set_float_stat StatId.Fat {value} $stored_shop
$cj_vomits_for_menace = 1
goto @JFUD_574

:JFUD_7314
if 
  $total_food_bought_per_day_shops >= 11
goto_if_false @JFUD_8116
gosub @JFUD_9710
gosub @JFUD_12993
if 
  10 > $10044
goto_if_false @JFUD_7379
set_var_int_to_var_int $10044 = $10044
goto @JFUD_7411

:JFUD_7379
$10044 -= 10
if 
  10 > $10044
goto_if_false @JFUD_7411
$10044 = 10

:JFUD_7411
set_char_health $scplayer {health} $10044
set_float_stat StatId.Fat {value} $stored_shop
set_fixed_camera_position $junkfud_cam_offX {y} $junkfud_cam_offY {z} $junkfud_cam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_point_junkfudX {y} $cam_point_junkfudY {z} $cam_point_junnkfudZ {switchStyle} SwitchType.JumpCut
if 
  is_player_playing $player1
goto_if_false @JFUD_7638
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_var_float_to_var_float $food_name = $player_x
$food_name += 0.355
set_var_float_to_var_float $10040 = $player_y
$10040 -= 0.116
set_var_float_to_var_float $pish_flag = $player_z
$pish_flag -= 0.048
$created_this_food = create_fx_system "PUKE" {x} $food_name {y} $10040 {z} $pish_flag {ignoreBoundingChecks} True
task_play_anim_non_interruptable $scplayer {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$current_food_item = 0.0
$sample_name_shop = set_char_say_context $scplayer {phrase} SpeechId.PainSprayed
goto @JFUD_7652

:JFUD_7638
gosub @JFUD_9887
goto @JFUD_574

:JFUD_7652
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_7726
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "EAT_VOMIT_SK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.GfriendPosResponse
goto @JFUD_7771

:JFUD_7726
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_7764
gosub @JFUD_9887

:JFUD_7764
goto @JFUD_574

:JFUD_7771
if 
  is_char_playing_anim $scplayer {animationName} "EAT_VOMIT_P"
goto_if_false @JFUD_7821
$current_food_item = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"

:JFUD_7821
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8099
wait 0
if 
  $flag_food == 0
goto_if_false @JFUD_7915
if 
  $current_food_item >= 0.463
goto_if_false @JFUD_7915
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_7908
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjPuke

:JFUD_7908
$flag_food = 1

:JFUD_7915
if 
  $flag_food == 1
goto_if_false @JFUD_7966
if 
  $current_food_item >= 0.52
goto_if_false @JFUD_7966
play_fx_system $created_this_food
$flag_food = 2

:JFUD_7966
if 
  is_player_playing $player1
goto_if_false @JFUD_8010
$current_food_item = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"
goto @JFUD_8024

:JFUD_8010
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8024
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8047
goto @JFUD_8092

:JFUD_8047
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8085
gosub @JFUD_9887

:JFUD_8085
goto @JFUD_574

:JFUD_8092
goto @JFUD_7821

:JFUD_8099
stop_fx_system $created_this_food
kill_fx_system $created_this_food
goto @JFUD_8867

:JFUD_8116
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8250
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_8243
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_8243
goto @JFUD_8295

:JFUD_8250
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8288
gosub @JFUD_9887

:JFUD_8288
goto @JFUD_574

:JFUD_8295
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8483
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_8350
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8350
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8418
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8404
gosub @JFUD_9887

:JFUD_8404
goto @JFUD_574
goto @JFUD_8476

:JFUD_8418
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_8476
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_8476
goto @JFUD_8295

:JFUD_8483
gosub @JFUD_12993
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8630
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_8623
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_8623
goto @JFUD_8675

:JFUD_8630
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8668
gosub @JFUD_9887

:JFUD_8668
goto @JFUD_574

:JFUD_8675
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8867
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_8730
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8730
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8798
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8784
gosub @JFUD_9887

:JFUD_8784
goto @JFUD_574
goto @JFUD_8860

:JFUD_8798
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_8860
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_8860
goto @JFUD_8675

:JFUD_8867
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_8995
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_8988
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"

:JFUD_8988
goto @JFUD_9040

:JFUD_8995
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9033
gosub @JFUD_9887

:JFUD_9033
goto @JFUD_574

:JFUD_9040
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_9231
wait 0
if 
  is_player_playing $player1
goto_if_false @JFUD_9088
goto @JFUD_9102

:JFUD_9088
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9102
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_9179
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_9172
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"

:JFUD_9172
goto @JFUD_9224

:JFUD_9179
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9217
gosub @JFUD_9887

:JFUD_9217
goto @JFUD_574

:JFUD_9224
goto @JFUD_9040

:JFUD_9231
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 

:JFUD_9246
if 
  locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @JFUD_9485
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_9322
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9322
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_9390
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9376
gosub @JFUD_9887

:JFUD_9376
goto @JFUD_574
goto @JFUD_9478

:JFUD_9390
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_9478
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $clothes_hat_cam_pointY
  has_char_been_damaged_by_weapon $clothes_hat_cam_pointY {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_9478
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.BoughtEnough
task_hands_up $clothes_hat_cam_pointY {time} -2
$iSetPizzaPanic = 1
$lv_arm_LOD = 1

:JFUD_9478
goto @JFUD_9246

:JFUD_9485
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
$found_a_food_shop = 1

:JFUD_9527
goto @JFUD_9668

:JFUD_9534
if 
  $flag_no_money_shops == 0
goto_if_false @JFUD_9668
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_9616
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$foodsmall_junkfud = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.GfriendNegResponse
print_now 'SHOPNO' {time} 5000 {flag} 1
goto @JFUD_9661

:JFUD_9616
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9654
gosub @JFUD_9887

:JFUD_9654
goto @JFUD_574

:JFUD_9661
$flag_no_money_shops = 1

:JFUD_9668
gosub @JFUD_10132

:JFUD_9675
goto @JFUD_9689

:JFUD_9682
gosub @JFUD_9887

:JFUD_9689
goto @JFUD_9703

:JFUD_9696
gosub @JFUD_9887

:JFUD_9703
goto @JFUD_574

:JFUD_9710
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9764
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_9764
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9796
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_9796
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$ffood_obj = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 2
$flag_no_money_shops = 0
mark_model_as_no_longer_needed $junkfud_offsetX
mark_model_as_no_longer_needed $junkfud_offsetY
mark_model_as_no_longer_needed $junkfud_offsetZ
mark_model_as_no_longer_needed $junkfud_heading_offset
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_9885
clear_help 

:JFUD_9885
return 

:JFUD_9887
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_9929
clear_help 

:JFUD_9929
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9961
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_9961
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9993
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_9993
$clothes_hat_cam_pointZ = 0
$shop_keep_clothY = 0
$shop_keep_junkfud = 0
$shop_door_model_clothes = 0
$found_a_food_shop = 0
$ffood_obj = 0
$lv_arm_LOD = 0
$flag_food = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 0
$flag_no_money_shops = 0
kill_fx_system $created_this_food
delete_char $clothes_hat_cam_pointY
mark_model_as_no_longer_needed $shopkeeper_model_shops
mark_model_as_no_longer_needed $junkfud_offsetX
mark_model_as_no_longer_needed $junkfud_offsetY
mark_model_as_no_longer_needed $junkfud_offsetZ
mark_model_as_no_longer_needed $junkfud_heading_offset
use_text_commands False
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:JFUD_10132
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @JFUD_12350
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_10181
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_10181
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_10213
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_10213
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @JFUD_10332
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_10264
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10264
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_10325
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10318
gosub @JFUD_9887

:JFUD_10318
goto @JFUD_574

:JFUD_10325
goto @JFUD_10213

:JFUD_10332
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_10454
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out
gosub @JFUD_12993
delete_char $clothes_hat_cam_pointY
$flag_menace_buyfood = 3
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 2
$flag_no_money_shops = 0
goto @JFUD_12350

:JFUD_10454
$blob_flag_shop = 0
s$shop_name = get_loaded_shop 
if 
  $ffood_obj == 1
goto_if_false @JFUD_10687
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_10554
task_play_anim $scplayer {animationName} "EAT_BURGER" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @JFUD_10687

:JFUD_10554
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_10623
task_play_anim $scplayer {animationName} "EAT_PIZZA" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @JFUD_10687

:JFUD_10623
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_10687
task_play_anim $scplayer {animationName} "EAT_CHICKEN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:JFUD_10687
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_10832
$foodsmall_junkfud = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.RemoveTattoo
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_10825
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_10825
goto @JFUD_10877

:JFUD_10832
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10870
gosub @JFUD_9887

:JFUD_10870
goto @JFUD_574

:JFUD_10877
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11065
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_10932
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10932
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_11000
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10986
gosub @JFUD_9887

:JFUD_10986
goto @JFUD_574
goto @JFUD_11058

:JFUD_11000
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_11058
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_RETURN"

:JFUD_11058
goto @JFUD_10877

:JFUD_11065
gosub @JFUD_12993
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_11212
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_11205
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_11205
goto @JFUD_11257

:JFUD_11212
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11250
gosub @JFUD_9887

:JFUD_11250
goto @JFUD_574

:JFUD_11257
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11449
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_11312
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11312
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_11380
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11366
gosub @JFUD_9887

:JFUD_11366
goto @JFUD_574
goto @JFUD_11442

:JFUD_11380
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_11442
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_11442
goto @JFUD_11257

:JFUD_11449
if 
  $ffood_obj == 1
goto_if_false @JFUD_11505
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_11505
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @JFUD_11505
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjEat

:JFUD_11505
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$ffood_obj = 0
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_11576
clear_help 

:JFUD_11576
gosub @JFUD_12993
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_11710
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_THANK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
$foodsmall_junkfud = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.RemoveTattoo
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_THANK"
goto_if_false @JFUD_11703
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_THANK"

:JFUD_11703
goto @JFUD_11755

:JFUD_11710
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11748
gosub @JFUD_9887

:JFUD_11748
goto @JFUD_574

:JFUD_11755
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11931
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_11810
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11810
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_11878
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11864
gosub @JFUD_9887

:JFUD_11864
goto @JFUD_574
goto @JFUD_11924

:JFUD_11878
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_THANK"
goto_if_false @JFUD_11924
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_THANK"

:JFUD_11924
goto @JFUD_11755

:JFUD_11931
if 
  not is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_12059
task_play_anim_non_interruptable $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$current_food_item = 0.0
if 
  is_char_playing_anim $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_12052
$current_food_item = get_char_anim_current_time $clothes_hat_cam_pointY {animationName} "SHP_TRAY_POSE"

:JFUD_12052
goto @JFUD_12104

:JFUD_12059
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_12097
gosub @JFUD_9887

:JFUD_12097
goto @JFUD_574

:JFUD_12104
if 
  locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @JFUD_12343
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_12180
gosub @JFUD_9887
goto @JFUD_574

:JFUD_12180
if 
  is_char_dead $clothes_hat_cam_pointY
goto_if_false @JFUD_12248
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_12234
gosub @JFUD_9887

:JFUD_12234
goto @JFUD_574
goto @JFUD_12336

:JFUD_12248
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_12336
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $clothes_hat_cam_pointY
  has_char_been_damaged_by_weapon $clothes_hat_cam_pointY {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_12336
$sample_name_shop = set_char_say_context $clothes_hat_cam_pointY {phrase} SpeechId.BoughtEnough
task_hands_up $clothes_hat_cam_pointY {time} -2
$iSetPizzaPanic = 1
$lv_arm_LOD = 1

:JFUD_12336
goto @JFUD_12104

:JFUD_12343
$blob_flag_shop = 1

:JFUD_12350
return 

:JFUD_12352
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_12991
print_help_forever 'FOOD_H'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @JFUD_12443
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12443
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @JFUD_12505
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12505
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @JFUD_12567
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12567
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @JFUD_12629
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12629
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @JFUD_12684
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:JFUD_12684
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'MEAL' {row0} s$shop_item_price {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $flag_food_message
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:JFUD_12991
return 

:JFUD_12993
delete_object $shop_keep_heading_clothes
return 
terminate_this_script 

//-------------External script 66 (CARMOD1)---------------

:CARMOD
$foodhealthy_junkfud = 0
$vomit_camX = 0
$vomit_camY = 0
$vomit_camZ = 0
$vomit_cam_point_junkfudX = 0.0
$vomit_cam_point_junkfudY = 0.0
$vomit_cam_point_junnkfudZ = 0.0
$sample_name_shops = 0.0
$mod_flag = 0.0
$control_flag_mod = 0.0
$number_of_colours = 0.0
$stored_paintjob_number = 0.0
$paintjob_number = 0.0
$paintjob_number_menu = 0.0
$cam_general_modX = 0.0
$cam_general_modY = 0.0
$cam_general_modZ = 0.0
$cam_general_look_at_modX = 0.0
$cam_general_look_at_modY = 0.0
$cam_general_look_at_modZ = 0.0
$wheel_cam_modX = 0.0
$wheel_cam_modY = 0.0
$wheel_cam_modZ = 0.0
$wheel_cam_look_at_modX = 0.0
$wheel_cam_look_at_modY = 0.0
$wheel_cam_look_at_modZ = 0.0
$spoiler_cam_modX = 0.0
$spoiler_cam_modY = 0.0
$spoiler_cam_modZ = 0.0
$spoiler_cam_look_at_modX = 0.0
$spoiler_cam_look_at_modY = 0.0
$spoiler_cam_look_at_modZ = 0.0
$wing_cam_modX = 0.0
$wing_cam_modY = 0.0
$wing_cam_modZ = 0.0
$wing_cam_look_at_modX = 0.0
$wing_cam_look_at_modY = 0.0
$wing_cam_look_at_modZ = 0.0
$roof_cam_modX = 0.0
$roof_cam_modY = 0.0
$roof_cam_modZ = 0.0
$roof_cam_look_at_modX = 0.0
$roof_cam_look_at_modY = 0.0
$roof_cam_look_at_modZ = 0.0
$bonnet_cam_modX = 0.0
$bonnet_cam_modY = 0.0
$bonnet_cam_modZ = 0.0
$bonnet_cam_look_at_modX = 0.0
$bonnet_cam_look_at_modY = 0.0
$bonnet_cam_look_at_modZ = 0.0
$exhaust_cam_modX = 0.0
$exhaust_cam_modY = 0.0
$exhaust_cam_modZ = 0.0
$exhaust_look_at_cam_modX = 0.0
$exhaust_look_at_cam_modY = 0.0
$exhaust_look_at_cam_modZ = 0.0
$front_fender_cam_modX = 0.0
$front_fender_cam_modY = 0.0
$front_fender_cam_modZ = 0.0
$front_fender_look_at_cam_modX = 0.0
$front_fender_look_at_cam_modY = 0.0
$front_fender_look_at_cam_modZ = 0.0
$rear_fender_cam_modX = 0.0
$rear_fender_cam_modY = 0.0
$rear_fender_cam_modZ = 0.0
$rear_fender_look_at_cam_modX = 0.0
$rear_fender_look_at_cam_modY = 0.0
$rear_fender_look_at_cam_modZ = 0.0
$lights_cam_modX = 0.0
$lights_cam_modY = 0.0
$lights_cam_modZ = 0.0
$lights_look_at_cam_modX = 0.0
$lights_look_at_cam_modY = 0.0
$lights_look_at_cam_modZ = 0.0
$front_bullbar_cam_modX = 0.0
$front_bullbar_cam_modY = 0.0
$front_bullbar_cam_modZ = 0.0
$front_bullbar_look_at_cam_modX = 0.0
$front_bullbar_look_at_cam_modY = 0.0
$front_bullbar_look_at_cam_modZ = 0.0
$rear_bullbar_cam_modX = 0.0
$rear_bullbar_cam_modY = 0.0
$rear_bullbar_cam_modZ = 0.0
$rear_bullbar_look_at_cam_modX = 0.0
$rear_bullbar_look_at_cam_modY = 0.0
$rear_bullbar_look_at_cam_modZ = 0.0
$nitro_cam_modX = 0.0
$nitro_cam_modY = 0.0
$nitro_cam_modZ = 0.0
$nitro_look_at_modX = 0.0
$nitro_look_at_modY = 0.0
$nitro_look_at_modZ = 0.0
$custom_paint_cam_modX = 0.0
$custom_paint_cam_modY = 0.0
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$custom_paint_cam_look_at_modZ = 0.0
$misc_cam_modX = 0.0
$misc_cam_modY = 0.0
$misc_cam_modZ = 0.0
$misc_cam_look_at_modX = 0.0
$misc_cam_look_at_modY = 0.0
$foodmed_junkfud = 0
$misc_cam_look_at_modZ = 0
$no_of_mods_for_vehicle = 0
$mod_garage_offsetZ = 0
$mod_swap_camX = 0
$mod_swap_camY = 0
$mod_swap_camZ = 0
$mod_swap_look_at_camX = 0
$mod_swap_look_at_camY = 0
$mod_swap_look_at_camZ = 0
$new_mod_index_wil = 0
$upgradetype_mod = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$spolier_mod_counter = 0
$bonnet_mod_counter = 0
$bonnetLR_mod_counter = 0
$10401 = 0
$10402 = 0
$10403 = 0
$10407 = 0
$10406 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$10408 = 0
$10409 = 0
$mod_model_index = 0
$flag_car_same_colour = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$unk10416 = 0.0
$unk10417 = 0.0
$just_replaced_car_mod = 0.0
$colour_menu_drawn_shops = 0
$car_locate_modX = 0
$car_locate_modY = 0
$car_locate_modZ = 0
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10433 = 0
$forth_menu_item2 = 0
$10435 = 0
$forth_menu_shops = 0
$forth_menu_drawn_shops = 0
$upgrade_meun4_selected = 0
$10471 = 0
$10473 = 0
$10474 = 0
$10475 = 0
$10476 = 0
set_deatharrest_state 0
script_name 'CARMOD'

:CARMOD_1406
wait 0
if 
  is_player_playing $player1
goto_if_false @CARMOD_13876
if 
  $disable_mod_garage == 0
goto_if_false @CARMOD_13869
if 
  $foodmed_junkfud > 0
goto_if_false @CARMOD_1542
if 
  has_language_changed 
goto_if_false @CARMOD_1542
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $flag_cant_mod
delete_menu $number_of_mods_in_section
delete_menu $colour_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_car_same_colour = 0
$mod_model_index = 0
$colour_menu_drawn_shops = 0
$current_Language = get_current_language 

:CARMOD_1542
if 
  is_char_in_any_car $scplayer
goto_if_false @CARMOD_13869
$original_car_mod = store_car_char_is_in_no_save $scplayer
if 
  $foodmed_junkfud == 0
goto_if_false @CARMOD_3883
if or
  locate_stopped_char_in_car_3d $scplayer {x} 1042.0129 {y} -1019.927 {z} 31.127 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_stopped_char_in_car_3d $scplayer {x} -1935.528 {y} 247.029 {z} 33.561 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_stopped_char_in_car_3d $scplayer {x} 2387.075 {y} 1050.511 {z} 9.812 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CARMOD_2528
$original_car_mod = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $original_car_mod
goto_if_false @CARMOD_2501
if -1
goto_if_false @CARMOD_2446
gosub @CARMOD_23627
if 
  $10471 <> 0
goto_if_false @CARMOD_2391
if and
  not is_car_street_racer $original_car_mod
  not is_car_low_rider $original_car_mod
goto_if_false @CARMOD_2336
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_1850
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$upgrade_meun4_selected = get_car_door_lock_status $original_car_mod
lock_car_doors $original_car_mod {lockStatus} CarLock.LockedPlayerInside
do_fade 1000 {direction} Fade.Out
$foodlarge_junkfud = 1

:CARMOD_1850
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_1899
if 
  not get_fading_status 
goto_if_false @CARMOD_1899
set_area_name 'CARMOD1'
$foodlarge_junkfud = 2

:CARMOD_1899
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_2329
if 
  locate_stopped_char_in_car_3d $scplayer {x} 1042.0129 {y} -1019.927 {z} 31.127 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2002
$unk10416 = 1042.0129
$unk10417 = -1019.927
$just_replaced_car_mod = 31.127
goto @CARMOD_2165

:CARMOD_2002
if 
  locate_stopped_char_in_car_3d $scplayer {x} -1935.528 {y} 247.029 {z} 33.561 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2087
$unk10416 = -1935.9255
$unk10417 = 228.65
$just_replaced_car_mod = 33.8182
goto @CARMOD_2165

:CARMOD_2087
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2387.075 {y} 1050.511 {z} 9.812 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2165
$unk10416 = 2386.5205
$unk10417 = 1037.7972
$just_replaced_car_mod = 10.7

:CARMOD_2165
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
set_vehicle_area_visible $original_car_mod {interiorId} 1
load_shop "CARMOD1"
load_prices "CARMODS"
request_collision 617.536 {y} -1.99
load_scene 617.536 {y} -1.99 {z} 999.98
set_car_coordinates $original_car_mod {x} 617.536 {y} -1.99 {z} 999.98
set_car_heading $original_car_mod {heading} 90.0
$10473 = 1
$forth_menu_drawn_shops = 0
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_2329
goto @CARMOD_2384

:CARMOD_2336
if 
  $10406 == 0
goto_if_false @CARMOD_2384
print_now 'MODNO' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2384
goto @CARMOD_2439

:CARMOD_2391
if 
  $10406 == 0
goto_if_false @CARMOD_2439
print_now 'MODNO2' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2439
goto @CARMOD_2494

:CARMOD_2446
if 
  $10406 == 0
goto_if_false @CARMOD_2494
print_now 'MODNO2' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2494
goto @CARMOD_2521

:CARMOD_2501
switch_entry_exit 'CARMOD1' {state} False
$10406 = 0

:CARMOD_2521
goto @CARMOD_2548

:CARMOD_2528
switch_entry_exit 'CARMOD1' {state} False
$10406 = 0

:CARMOD_2548
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2645.1121 {y} -2045.745 {z} 12.607 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CARMOD_3196
$original_car_mod = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $original_car_mod
goto_if_false @CARMOD_3169
if -1
goto_if_false @CARMOD_3121
gosub @CARMOD_23627
if 
  $10471 <> 0
goto_if_false @CARMOD_3066
if 
  is_car_low_rider $original_car_mod
goto_if_false @CARMOD_3011
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_2743
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$upgrade_meun4_selected = get_car_door_lock_status $original_car_mod
lock_car_doors $original_car_mod {lockStatus} CarLock.LockedPlayerInside
$10472 = get_car_model $original_car_mod
do_fade 1000 {direction} Fade.Out
$foodlarge_junkfud = 1

:CARMOD_2743
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_2792
if 
  not get_fading_status 
goto_if_false @CARMOD_2792
set_area_name 'CARMOD2'
$foodlarge_junkfud = 2

:CARMOD_2792
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_3004
$forth_menu_drawn_shops = 1
$unk10416 = 2645.1121
$unk10417 = -2045.745
$just_replaced_car_mod = 12.607
set_area_visible 2
set_char_area_visible $scplayer {areaId} 2
set_vehicle_area_visible $original_car_mod {interiorId} 2
load_shop "CARMOD2"
load_prices "CARMODS"
request_collision 616.783 {y} -74.815
load_scene 616.783 {y} -74.815 {z} 997.014
set_car_coordinates $original_car_mod {x} 616.783 {y} -74.815 {z} 997.014
set_car_heading $original_car_mod {heading} 90.0
$10474 = 1
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_3004
goto @CARMOD_3059

:CARMOD_3011
if 
  $10406 == 0
goto_if_false @CARMOD_3059
print_now 'MODNO' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3059
goto @CARMOD_3114

:CARMOD_3066
if 
  $10406 == 0
goto_if_false @CARMOD_3114
print_now 'MODNO2' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3114
goto @CARMOD_3162

:CARMOD_3121
if 
  $10406 == 0
goto_if_false @CARMOD_3162
print_now 'MODNO2' {time} 5000 {flag} 1
$foodmed_junkfud = 0

:CARMOD_3162
goto @CARMOD_3189

:CARMOD_3169
switch_entry_exit 'CARMOD2' {state} False
$10406 = 0

:CARMOD_3189
goto @CARMOD_3216

:CARMOD_3196
switch_entry_exit 'CARMOD2' {state} False
$10406 = 0

:CARMOD_3216
if 
  locate_stopped_char_in_car_3d $scplayer {x} -2723.845 {y} 217.804 {z} 3.585 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @CARMOD_3863
$original_car_mod = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $original_car_mod
goto_if_false @CARMOD_3836
if -1
goto_if_false @CARMOD_3781
gosub @CARMOD_23627
if 
  $10471 <> 0
goto_if_false @CARMOD_3726
if 
  is_car_street_racer $original_car_mod
goto_if_false @CARMOD_3671
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_3403
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$upgrade_meun4_selected = get_car_door_lock_status $original_car_mod
lock_car_doors $original_car_mod {lockStatus} CarLock.LockedPlayerInside
do_fade 1000 {direction} Fade.Out
$foodlarge_junkfud = 1

:CARMOD_3403
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_3452
if 
  not get_fading_status 
goto_if_false @CARMOD_3452
set_area_name 'CARMOD3'
$foodlarge_junkfud = 2

:CARMOD_3452
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_3664
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$unk10416 = -2723.845
$unk10417 = 217.804
$just_replaced_car_mod = 3.585
set_area_visible 3
set_char_area_visible $scplayer {areaId} 3
set_vehicle_area_visible $original_car_mod {interiorId} 3
$forth_menu_drawn_shops = 0
$10475 = 1
load_shop "CARMOD3"
load_prices "CARMODS"
request_collision 615.286 {y} -124.239
load_scene 615.286 {y} -124.239 {z} 996.995
set_car_coordinates $original_car_mod {x} 615.286 {y} -124.239 {z} 996.995
set_car_heading $original_car_mod {heading} 90.0
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_3664
goto @CARMOD_3719

:CARMOD_3671
if 
  $10406 == 0
goto_if_false @CARMOD_3719
print_now 'MODNO' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3719
goto @CARMOD_3774

:CARMOD_3726
if 
  $10406 == 0
goto_if_false @CARMOD_3774
print_now 'MODNO2' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3774
goto @CARMOD_3829

:CARMOD_3781
if 
  $10406 == 0
goto_if_false @CARMOD_3829
print_now 'MODNO2' {time} 5000 {flag} 1
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3829
goto @CARMOD_3856

:CARMOD_3836
switch_entry_exit 'CARMOD3' {state} False
$10406 = 0

:CARMOD_3856
goto @CARMOD_3883

:CARMOD_3863
switch_entry_exit 'CARMOD3' {state} False
$10406 = 0

:CARMOD_3883
if 
  $foodmed_junkfud == 1
goto_if_false @CARMOD_9020
s$shop_name = get_loaded_shop 
set_extra_colours 4 {fade} False
if 
  is_car_street_racer $original_car_mod
goto_if_false @CARMOD_5555
$vomit_cam_point_junkfudX = 611.2935
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = -121.2534
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 999.0341
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 612.0599
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = -121.7974
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 998.6927
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 612.551
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -126.8767
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 997.6746
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 613.1689
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -126.0916
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 997.6324
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 615.7711
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -126.8826
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 998.7869
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 616.1115
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -125.981
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 998.52
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 612.551
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -126.8767
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 997.6746
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 613.1689
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -126.0916
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 997.6324
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 611.6899
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -124.1341
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 998.957
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 612.6635
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -124.0004
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 998.772
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 610.8686
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -123.9456
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 998.8293
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 611.8196
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -123.8469
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 998.5366
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 618.9148
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -125.9082
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 997.2668
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 618.0776
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -125.3645
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 997.3261
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 611.384
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -122.4332
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 997.4291
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 612.2263
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -122.972
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 997.4357
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 618.9148
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -125.9082
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 997.2668
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 618.0776
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -125.3645
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 997.3261
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 611.1373
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -124.2795
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 998.1324
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 612.1359
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -124.2299
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 998.1481
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 610.8206
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -126.0154
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 997.3317
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 611.6263
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -125.4232
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 997.3185
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 619.0011
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -126.195
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 997.444
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 618.3423
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -125.4429
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 997.461
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 617.8134
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -126.8104
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 999.6476
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 617.3374
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -126.1012
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 999.1275
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 611.2935
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = -121.2534
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 999.0341
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 612.0599
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = -121.7974
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 998.6927
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
$nitro_cam_modZ = 611.2935
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -121.2534
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 999.0341
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 612.0599
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -121.7974
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 998.6927
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY
goto @CARMOD_8952

:CARMOD_5555
if 
  is_car_low_rider $original_car_mod
goto_if_false @CARMOD_7332
$vomit_cam_point_junkfudX = 611.9196
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = -71.983
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 998.9867
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 612.8176
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = -72.3798
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 998.7969
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 613.5045
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -77.61
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 997.6773
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 614.0041
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -76.7527
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 997.8019
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 617.6616
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -77.5803
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 998.5854
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 618.0117
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -76.6793
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 998.329
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 616.0645
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -77.4652
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 998.1566
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 616.6523
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -76.6904
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 997.9242
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 615.7546
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -77.9771
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 999.3472
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 616.0991
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -77.1049
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 998.9999
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 612.3392
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -74.6454
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 998.7184
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 613.3315
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -74.5934
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 998.6063
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 620.7762
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -76.6076
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 997.2366
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 620.051
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -75.9492
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 997.4383
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 612.1144
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -74.4962
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 997.7816
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 613.111
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -74.4536
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 997.7114
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 620.7762
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -76.6076
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 997.2366
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 620.051
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -75.9492
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 997.4383
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 612.1144
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -74.4962
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 997.7816
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 613.111
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -74.4536
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 997.7114
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 612.1144
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -74.4962
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 997.7816
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 613.111
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -74.4536
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 997.7114
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 620.8461
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -76.8773
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 997.3512
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 620.2133
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -76.1111
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 997.4626
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 621.0414
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -74.9455
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 998.9329
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 620.0759
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -74.9535
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 998.6727
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 612.2584
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = -72.1851
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 998.8818
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 613.1286
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = -72.6701
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 998.7961
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
if 
  is_int_var_equal_to_constant $10472 == 534
goto_if_false @CARMOD_7217
$nitro_cam_modZ = 612.1144
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -74.4962
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 997.7816
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 613.111
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -74.4536
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 997.7114
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY
goto @CARMOD_7325

:CARMOD_7217
$nitro_cam_modZ = 615.7372
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -77.2556
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 998.6337
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 616.2341
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -76.4031
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 998.4717
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY

:CARMOD_7325
goto @CARMOD_8952

:CARMOD_7332
$vomit_cam_point_junkfudX = 612.7667
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = 0.5696
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 1002.114
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 613.6664
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = 0.1645
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 1001.951
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 614.4382
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -4.5756
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 1000.632
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 614.9804
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -3.7381
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 1000.565
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 618.1872
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -5.3884
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 1002.423
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 618.4805
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -4.4899
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 1002.097
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 615.6667
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -4.5419
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 1000.27
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 616.2391
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -3.7425
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 1000.452
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 613.6697
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -1.4788
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 1002.232
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 614.647
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -1.5313
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 1002.027
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 613.5347
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -1.7916
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 1002.526
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 614.4059
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -1.7952
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 1002.035
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 621.9104
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -3.6269
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 1000.408
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 621.0475
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -3.1303
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 1000.314
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 611.6121
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -1.4851
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 1001.777
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 612.6027
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -1.507
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 1001.642
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 621.4796
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -3.4952
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 1000.33
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 620.5905
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -3.0499
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 1000.435
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 612.6115
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -1.7655
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 1001.3
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 613.5665
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -1.6304
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 1001.036
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 611.6121
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -1.4851
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 1001.777
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 612.6027
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -1.507
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 1001.642
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 621.4796
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -3.4952
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 1000.33
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 620.5905
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -3.0499
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 1000.435
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 622.5965
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -2.014
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 1003.019
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 621.7657
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -2.0174
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 1002.462
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 612.7667
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = 0.5696
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 1002.114
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 613.6664
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = 0.1645
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 1001.951
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
$nitro_cam_modZ = 613.5844
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -0.7127
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 1002.031
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 614.5616
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -0.84
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 1001.862
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY

:CARMOD_8952
TIMERA = 0
display_radar False
show_update_stats False
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut
$foodlarge_junkfud = 0
$foodmed_junkfud = 2

:CARMOD_9020
if 
  $foodmed_junkfud == 2
goto_if_false @CARMOD_9209
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_9109
set_car_density_multiplier 0.0
$item_no_shops = get_number_of_items_in_shop 
$upgrade_meun2_selected, $mod_counter = get_car_colours $original_car_mod
$vomit_camX = get_current_vehicle_paintjob $original_car_mod
$10476 = get_car_model $original_car_mod
reset_vehicle_hydraulics $original_car_mod
store_car_mod_state 
$foodlarge_junkfud = 1

:CARMOD_9109
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_9160
if 
  TIMERA > 2000
goto_if_false @CARMOD_9160
do_fade 1000 {direction} Fade.In
$foodlarge_junkfud = 2

:CARMOD_9160
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_9209
if 
  not get_fading_status 
goto_if_false @CARMOD_9209
set_player_is_in_stadium True
$foodlarge_junkfud = 0
$foodmed_junkfud = 3

:CARMOD_9209
if 
  $foodmed_junkfud == 3
goto_if_false @CARMOD_10138
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_9535
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_9277
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_9277
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_9511
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10401 = get_menu_item_selected $main_menu_shops
if 
  0 > $10401
goto_if_false @CARMOD_9341
$10401 = 0

:CARMOD_9341
if 
  $10389($10401,12i) <> 101
goto_if_false @CARMOD_9429
if 
  $10389($10401,12i) <> 100
goto_if_false @CARMOD_9407
$upgrade_meun1_selected = get_current_car_mod $original_car_mod {slot} $10389($10401,12i)
goto @CARMOD_9415

:CARMOD_9407
$vomit_camX = get_current_vehicle_paintjob $original_car_mod

:CARMOD_9415
gosub @CARMOD_17346
goto @CARMOD_9504

:CARMOD_9429
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $vomit_cam_point_junkfudX
set_var_float_to_var_float $misc_cam_modX = $vomit_cam_point_junkfudY
set_var_float_to_var_float $misc_cam_modY = $vomit_cam_point_junnkfudZ
set_var_float_to_var_float $misc_cam_modZ = $sample_name_shops
set_var_float_to_var_float $misc_cam_look_at_modX = $mod_flag
set_var_float_to_var_float $misc_cam_look_at_modY = $control_flag_mod
$item_price($10403,12i) = 150
$forth_menu_item2 = get_car_model $original_car_mod
gosub @CARMOD_22277

:CARMOD_9504
$foodlarge_junkfud = 5

:CARMOD_9511
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_9535
$foodlarge_junkfud = 1

:CARMOD_9535
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_9624
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_9624
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_9602
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_9602
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
$foodlarge_junkfud = 2

:CARMOD_9624
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_9837
if 
  not get_fading_status 
goto_if_false @CARMOD_9837
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
set_vehicle_area_visible $original_car_mod {interiorId} 0
clear_extra_colours False
restore_car_mod_state 
$forth_menu_drawn_shops = 0
request_collision $unk10416 {y} $unk10417
load_scene $unk10416 {y} $unk10417 {z} $just_replaced_car_mod
set_car_coordinates $original_car_mod {x} $unk10416 {y} $unk10417 {z} $just_replaced_car_mod
if 
  $10473 == 1
goto_if_false @CARMOD_9749
set_car_heading $original_car_mod {heading} 0.0
set_camera_behind_player 

:CARMOD_9749
if 
  $10474 == 1
goto_if_false @CARMOD_9779
set_car_heading $original_car_mod {heading} 180.0
set_camera_behind_player 

:CARMOD_9779
if 
  $10475 == 1
goto_if_false @CARMOD_9809
set_car_heading $original_car_mod {heading} 90.0
set_camera_behind_player 

:CARMOD_9809
manage_all_population 
restore_camera_jumpcut 
clear_loaded_shop 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
$foodlarge_junkfud = 3

:CARMOD_9837
if 
  $foodlarge_junkfud == 3
goto_if_false @CARMOD_9902
if 
  not get_fading_status 
goto_if_false @CARMOD_9902
set_player_control $player1 {state} True
set_minigame_in_progress False
lock_car_doors $original_car_mod {lockStatus} $upgrade_meun4_selected
display_radar True
set_player_is_in_stadium False
$foodlarge_junkfud = 4

:CARMOD_9902
if 
  $foodlarge_junkfud == 4
goto_if_false @CARMOD_10018
if 
  not locate_char_in_car_3d $scplayer {x} $unk10416 {y} $unk10417 {z} $just_replaced_car_mod {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CARMOD_10018
set_car_density_multiplier 1.0
$10406 = 0
$foodmed_junkfud = 0
$foodlarge_junkfud = 0
$10473 = 0
$10474 = 0
$10475 = 0
gosub @CARMOD_13890

:CARMOD_10018
if 
  $foodlarge_junkfud == 5
goto_if_false @CARMOD_10138
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_10138
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_10085
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_10085
set_fixed_camera_position $custom_paint_cam_look_at_modZ {y} $misc_cam_modX {z} $misc_cam_modY {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $misc_cam_modZ {y} $misc_cam_look_at_modX {z} $misc_cam_look_at_modY {switchStyle} SwitchType.JumpCut
$foodmed_junkfud = 4
$foodlarge_junkfud = 0

:CARMOD_10138
if 
  $foodmed_junkfud == 4
goto_if_false @CARMOD_10787
if 
  is_car_dead $original_car_mod
goto_if_false @CARMOD_10186
gosub @CARMOD_13890
goto @CARMOD_1406

:CARMOD_10186
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10240
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_10233
gosub @CARMOD_21361

:CARMOD_10233
goto @CARMOD_10265

:CARMOD_10240
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_10265
gosub @CARMOD_14601

:CARMOD_10265
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_10564
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_10328
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$10407 = 0
$foodlarge_junkfud = 1

:CARMOD_10328
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_10564
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10446
$car_locate_modX = get_menu_item_selected $colour_menu_shops
if 
  0 > $car_locate_modX
goto_if_false @CARMOD_10400
$car_locate_modX = 0

:CARMOD_10400
if 
  $car_locate_modX == 0
goto_if_false @CARMOD_10432
$stored_mod_garage_car = 1
goto @CARMOD_10439

:CARMOD_10432
$forth_menu_item1 = 1

:CARMOD_10439
goto @CARMOD_10529

:CARMOD_10446
$10402 = get_menu_item_selected $sub_menu_shops
if 
  0 > $10402
goto_if_false @CARMOD_10479
$10402 = 0

:CARMOD_10479
if and
  $10389($10401,12i) <> 100
  $10389($10401,12i) <> 101
goto_if_false @CARMOD_10529
set_var_int_to_var_int $10405 = $item_model_index($10402,12i)
request_vehicle_mod $10405

:CARMOD_10529
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$10407 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 5

:CARMOD_10564
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_10787
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_10787
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_10631
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_10631
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_10663
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_10663
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_10695
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_10695
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_10727
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_10727
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 3

:CARMOD_10787
if 
  $foodmed_junkfud == 5
goto_if_false @CARMOD_13869
if 
  is_car_dead $original_car_mod
goto_if_false @CARMOD_10835
gosub @CARMOD_13890
goto @CARMOD_1406

:CARMOD_10835
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_11015
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_11015
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10906
$foodlarge_junkfud = 1
goto @CARMOD_10965

:CARMOD_10906
if 
  $10389($10401,12i) <> 100
goto_if_false @CARMOD_10958
if 
  has_vehicle_mod_loaded $10405
goto_if_false @CARMOD_10951
$foodlarge_junkfud = 1

:CARMOD_10951
goto @CARMOD_10965

:CARMOD_10958
$foodlarge_junkfud = 1

:CARMOD_10965
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_11015
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_11015
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_11015
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_11209
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11119
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_11087
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_11087
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_11112
gosub @CARMOD_15219

:CARMOD_11112
goto @CARMOD_11202

:CARMOD_11119
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_11179
set_var_int_to_var_int $vomit_camY = $10402
set_var_int_to_var_int $vomit_camZ = $10402
$vomit_camZ += 1
give_vehicle_paintjob $original_car_mod {paintjobId} $vomit_camY
goto @CARMOD_11195

:CARMOD_11179
$10410 = add_vehicle_mod $original_car_mod {modelId} $10405
mark_vehicle_mod_as_no_longer_needed $10405

:CARMOD_11195
gosub @CARMOD_23723

:CARMOD_11202
$foodlarge_junkfud = 2

:CARMOD_11209
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_11552
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11425
$car_locate_modZ = get_menu_item_selected $flag_cant_mod
if 
  0 > $car_locate_modZ
goto_if_false @CARMOD_11282
$car_locate_modZ = 0

:CARMOD_11282
if 
  $stored_mod_garage_car == 1
goto_if_false @CARMOD_11380
if or
  $10476 == 542
  $10476 == 549
goto_if_false @CARMOD_11360
change_car_colour_from_menu $flag_cant_mod {vehicle} $original_car_mod {colorSlot} 1 {row} $car_locate_modZ
change_car_colour_from_menu $flag_cant_mod {vehicle} $original_car_mod {colorSlot} 2 {row} $car_locate_modZ
goto @CARMOD_11373

:CARMOD_11360
change_car_colour_from_menu $flag_cant_mod {vehicle} $original_car_mod {colorSlot} 1 {row} $car_locate_modZ

:CARMOD_11373
goto @CARMOD_11393

:CARMOD_11380
change_car_colour_from_menu $flag_cant_mod {vehicle} $original_car_mod {colorSlot} 2 {row} $car_locate_modZ

:CARMOD_11393
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_11418
gosub @CARMOD_15219

:CARMOD_11418
goto @CARMOD_11450

:CARMOD_11425
if 
  $mod_model_index == 0
goto_if_false @CARMOD_11450
gosub @CARMOD_23723

:CARMOD_11450
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_11474
$foodlarge_junkfud = 3

:CARMOD_11474
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_11552
clear_this_print 'CLTHNO2'
clear_this_print 'COLORNO'
clear_this_print 'SHOPNO'
$flag_bought_item_already_shops = 0
$10407 = 0
$flag_no_money_shops = 0
$foodlarge_junkfud = 4

:CARMOD_11552
if 
  $foodlarge_junkfud == 3
goto_if_false @CARMOD_11963
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_11963
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11671
if 
  $vomit_camX > -1
goto_if_false @CARMOD_11653
change_car_colour $original_car_mod {color1} $upgrade_meun2_selected {color2} $mod_counter
give_vehicle_paintjob $original_car_mod {paintjobId} $vomit_camX
goto @CARMOD_11664

:CARMOD_11653
change_car_colour $original_car_mod {color1} $upgrade_meun2_selected {color2} $mod_counter

:CARMOD_11664
goto @CARMOD_11785

:CARMOD_11671
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_11751
if 
  0 > $vomit_camX
goto_if_false @CARMOD_11736
give_vehicle_paintjob $original_car_mod {paintjobId} -1
change_car_colour $original_car_mod {color1} $upgrade_meun2_selected {color2} $mod_counter
goto @CARMOD_11744

:CARMOD_11736
give_vehicle_paintjob $original_car_mod {paintjobId} $vomit_camX

:CARMOD_11744
goto @CARMOD_11753

:CARMOD_11751
restore_car_mod_state 

:CARMOD_11753
if 
  $mod_model_index == 1
goto_if_false @CARMOD_11785
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_11785
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_11817
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_11817
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_11849
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_11849
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11903
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_11896
gosub @CARMOD_21361

:CARMOD_11896
goto @CARMOD_11935

:CARMOD_11903
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_11935
gosub @CARMOD_17346
gosub @CARMOD_14601

:CARMOD_11935
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 4

:CARMOD_11963
if 
  $foodlarge_junkfud == 4
goto_if_false @CARMOD_13869
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_13869
$2753 = store_score $player1
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_12872
if 
  $2753 >= 150
goto_if_false @CARMOD_12803
if 
  $stored_mod_garage_car == 1
goto_if_false @CARMOD_12434
if 
  not is_int_var_equal_to_int_var $upgrade_meun2_selected == $car_locate_modZ
goto_if_false @CARMOD_12365
add_score $player1 {money} -150
increment_float_stat StatId.CarModBudget {value} 150.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $original_car_mod {level} 0.0
$upgrade_meun2_selected, $mod_counter = get_car_colours $original_car_mod
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
fix_car $original_car_mod
store_car_mod_state 
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12191
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_12191
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_12223
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_12223
if 
  $mod_model_index == 1
goto_if_false @CARMOD_12255
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_12255
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12287
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_12287
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12319
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_12319
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut
goto @CARMOD_12427

:CARMOD_12365
if 
  $10407 == 0
goto_if_false @CARMOD_12427
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'COLORNO' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$10407 = 1

:CARMOD_12427
goto @CARMOD_12796

:CARMOD_12434
if 
  not is_int_var_equal_to_int_var $mod_counter == $car_locate_modZ
goto_if_false @CARMOD_12734
add_score $player1 {money} -150
increment_float_stat StatId.CarModBudget {value} 150.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $original_car_mod {level} 0.0
$upgrade_meun2_selected, $mod_counter = get_car_colours $original_car_mod
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
fix_car $original_car_mod
store_car_mod_state 
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12560
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_12560
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_12592
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_12592
if 
  $mod_model_index == 1
goto_if_false @CARMOD_12624
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_12624
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12656
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_12656
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12688
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_12688
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut
goto @CARMOD_12796

:CARMOD_12734
if 
  $10407 == 0
goto_if_false @CARMOD_12796
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'COLORNO' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$10407 = 1

:CARMOD_12796
goto @CARMOD_12865

:CARMOD_12803
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_12865
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_12865
goto @CARMOD_13869

:CARMOD_12872
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_13359
if 
  $2753 >= 500
goto_if_false @CARMOD_13290
if 
  is_int_var_equal_to_int_var $vomit_camY == $vomit_camX
goto_if_false @CARMOD_13001
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_12994
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$flag_bought_item_already_shops = 1

:CARMOD_12994
goto @CARMOD_13283

:CARMOD_13001
add_score $player1 {money} -500
increment_float_stat StatId.CarModBudget {value} 500.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $original_car_mod {level} 0.0
fix_car $original_car_mod
store_car_mod_state 
set_var_int_to_var_int $vomit_camX = $vomit_camY
$upgrade_meun2_selected, $mod_counter = get_car_colours $original_car_mod
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13116
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13116
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_13148
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_13148
if 
  $mod_model_index == 1
goto_if_false @CARMOD_13180
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_13180
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13212
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_13212
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13244
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_13244
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut

:CARMOD_13283
goto @CARMOD_13352

:CARMOD_13290
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13352
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_13352
goto @CARMOD_13869

:CARMOD_13359
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $item_price($10402,12i)
goto_if_false @CARMOD_13807
if 
  not is_int_var_equal_to_int_var $upgrade_meun1_selected == $10405
goto_if_false @CARMOD_13738
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarMod
buy_item $10405
set_vehicle_dirt_level $original_car_mod {level} 0.0
store_car_mod_state 
set_var_int_to_var_int $upgrade_meun1_selected = $10405
if 
  $temp_shopZ == 0
goto_if_false @CARMOD_13518
if or
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBSM'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBTN'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBLN'
goto_if_false @CARMOD_13518
$temp_shopZ = 1

:CARMOD_13518
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13564
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13564
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_13596
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_13596
if 
  $mod_model_index == 1
goto_if_false @CARMOD_13628
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_13628
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13660
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_13660
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13692
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_13692
set_fixed_camera_position $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $sample_name_shops {y} $mod_flag {z} $control_flag_mod {switchStyle} SwitchType.JumpCut
goto @CARMOD_13800

:CARMOD_13738
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_13800
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$flag_bought_item_already_shops = 1

:CARMOD_13800
goto @CARMOD_13869

:CARMOD_13807
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13869
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_13869
goto @CARMOD_13883

:CARMOD_13876
gosub @CARMOD_13890

:CARMOD_13883
goto @CARMOD_1406

:CARMOD_13890
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_13922
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_13922
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13954
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13954
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_13986
delete_menu $flag_cant_mod
clear_help 
$flag_car_same_colour = 0

:CARMOD_13986
if 
  $mod_model_index == 1
goto_if_false @CARMOD_14018
delete_menu $number_of_mods_in_section
clear_help 
$mod_model_index = 0

:CARMOD_14018
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_14050
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_14050
if 
  $foodmed_junkfud >= 1
goto_if_false @CARMOD_14070
clear_help 

:CARMOD_14070
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10406 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$10407 = 0
$10473 = 0
$10474 = 0
$10475 = 0
$foodmed_junkfud = 0
$foodlarge_junkfud = 0
set_player_is_in_stadium False
show_update_stats True
set_minigame_in_progress False
if 
  $temp_shopZ == 1
goto_if_false @CARMOD_14195
print_help 'NITROH1'
$temp_shopZ = 2

:CARMOD_14195
terminate_this_script 
return 

:CARMOD_14199
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_14599
print_help_forever 'MODH1'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14290
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14290
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14352
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14352
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14414
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14414
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14476
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14476
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14531
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CARMOD_14531
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$main_menu_drawn_shops = 1

:CARMOD_14599
return 

:CARMOD_14601
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_15217
print_help_forever 'MODH3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14692
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14692
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14754
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14754
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14816
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14816
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14878
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14878
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14933
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CARMOD_14933
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_15155
$temp_var_shops = 0

:CARMOD_15023
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $temp_var_shops
goto_if_false @CARMOD_15093
set_var_int_to_var_int $vomit_camZ = $temp_var_shops
$vomit_camZ += 1
set_menu_item_with_number $sub_menu_shops {column} 0 {row} $temp_var_shops {gxt} 'PJOB' {number} $vomit_camZ
$temp_var_shops += 1
goto @CARMOD_15023

:CARMOD_15093
$temp_var_shops = 0

:CARMOD_15100
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $temp_var_shops
goto_if_false @CARMOD_15148
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @CARMOD_15100

:CARMOD_15148
goto @CARMOD_15210

:CARMOD_15155
$temp_var_shops = 0

:CARMOD_15162
if 
  is_int_var_greater_than_int_var $10404 > $temp_var_shops
goto_if_false @CARMOD_15210
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @CARMOD_15162

:CARMOD_15210
$sub_menu_drawn_shops = 1

:CARMOD_15217
return 

:CARMOD_15219
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_15558
print_help_forever 'MODH6'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_15310
$flag_cant_mod = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15310
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_15372
$flag_cant_mod = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15372
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_15434
$flag_cant_mod = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 155.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15434
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_15496
$flag_cant_mod = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15496
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_15551
$flag_cant_mod = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left

:CARMOD_15551
$flag_car_same_colour = 1

:CARMOD_15558
return 

:CARMOD_15560
$misc_cam_look_at_modZ = 0
$mod_garage_offsetZ = 0
$mod_swap_camX = 0
$mod_swap_camY = 0
$mod_swap_camZ = 0
$mod_swap_look_at_camX = 0
$mod_swap_look_at_camY = 0
$mod_swap_look_at_camZ = 0
$new_mod_index_wil = 0
$upgradetype_mod = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$no_of_mods_for_vehicle = 0
$forth_menu_shops = 0
$foodhealthy_junkfud = 0
$bonnetLR_mod_counter = 0
$bonnet_mod_counter = 0
$10435 = 0
$forth_menu_shops = get_num_available_paintjobs $original_car_mod
if 
  $forth_menu_shops <> 0
goto_if_false @CARMOD_15762
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM11'
$10389($misc_cam_look_at_modZ,12i) = 100
$misc_cam_look_at_modZ += 1

:CARMOD_15762
$foodhealthy_junkfud = get_num_car_colours $original_car_mod
if 
  $foodhealthy_junkfud <> 0
goto_if_false @CARMOD_15824
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM1'
$10389($misc_cam_look_at_modZ,12i) = 101
$misc_cam_look_at_modZ += 1

:CARMOD_15824
if 
  is_int_var_greater_than_int_var $item_no_shops > $10435
goto_if_false @CARMOD_17329
$mod_garage_offsetX = get_item_in_shop $10435
$mod_garage_offsetY = get_vehicle_mod_type $mod_garage_offsetX
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 12
goto_if_false @CARMOD_15950
if 
  $no_of_mods_for_vehicle == 0
goto_if_false @CARMOD_15931
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM12'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 12
$misc_cam_look_at_modZ += 1

:CARMOD_15931
set_var_int_to_var_int $10353($no_of_mods_for_vehicle,12i) = $mod_garage_offsetX
$no_of_mods_for_vehicle += 1

:CARMOD_15950
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 3
goto_if_false @CARMOD_16041
if 
  $mod_garage_offsetZ == 0
goto_if_false @CARMOD_16022
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM4'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 3
$misc_cam_look_at_modZ += 1

:CARMOD_16022
set_var_int_to_var_int $wheel_mod_counter($mod_garage_offsetZ,12i) = $mod_garage_offsetX
$mod_garage_offsetZ += 1

:CARMOD_16041
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 7
goto_if_false @CARMOD_16132
if 
  $mod_swap_camX == 0
goto_if_false @CARMOD_16113
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM10'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 7
$misc_cam_look_at_modZ += 1

:CARMOD_16113
set_var_int_to_var_int $10209($mod_swap_camX,12i) = $mod_garage_offsetX
$mod_swap_camX += 1

:CARMOD_16132
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 13
goto_if_false @CARMOD_16223
if 
  $mod_swap_camY == 0
goto_if_false @CARMOD_16204
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM5'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 13
$misc_cam_look_at_modZ += 1

:CARMOD_16204
set_var_int_to_var_int $10221($mod_swap_camY,12i) = $mod_garage_offsetX
$mod_swap_camY += 1

:CARMOD_16223
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 8
goto_if_false @CARMOD_16314
if 
  $mod_swap_camZ == 0
goto_if_false @CARMOD_16295
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM6'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 8
$misc_cam_look_at_modZ += 1

:CARMOD_16295
set_var_int_to_var_int $10233($mod_swap_camZ,12i) = $mod_garage_offsetX
$mod_swap_camZ += 1

:CARMOD_16314
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 2
goto_if_false @CARMOD_16405
if 
  $mod_swap_look_at_camX == 0
goto_if_false @CARMOD_16386
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM2'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 2
$misc_cam_look_at_modZ += 1

:CARMOD_16386
set_var_int_to_var_int $10245($mod_swap_look_at_camX,12i) = $mod_garage_offsetX
$mod_swap_look_at_camX += 1

:CARMOD_16405
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 0
goto_if_false @CARMOD_16496
if 
  $mod_swap_look_at_camY == 0
goto_if_false @CARMOD_16477
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM3'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 0
$misc_cam_look_at_modZ += 1

:CARMOD_16477
set_var_int_to_var_int $10257($mod_swap_look_at_camY,12i) = $mod_garage_offsetX
$mod_swap_look_at_camY += 1

:CARMOD_16496
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 1
goto_if_false @CARMOD_16587
if 
  $mod_swap_look_at_camZ == 0
goto_if_false @CARMOD_16568
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM17'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 1
$misc_cam_look_at_modZ += 1

:CARMOD_16568
set_var_int_to_var_int $10269($mod_swap_look_at_camZ,12i) = $mod_garage_offsetX
$mod_swap_look_at_camZ += 1

:CARMOD_16587
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 14
goto_if_false @CARMOD_16678
if 
  $new_mod_index_wil == 0
goto_if_false @CARMOD_16659
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM7'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 14
$misc_cam_look_at_modZ += 1

:CARMOD_16659
set_var_int_to_var_int $10281($new_mod_index_wil,12i) = $mod_garage_offsetX
$new_mod_index_wil += 1

:CARMOD_16678
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 15
goto_if_false @CARMOD_16769
if 
  $upgradetype_mod == 0
goto_if_false @CARMOD_16750
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM8'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 15
$misc_cam_look_at_modZ += 1

:CARMOD_16750
set_var_int_to_var_int $10293($upgradetype_mod,12i) = $mod_garage_offsetX
$upgradetype_mod += 1

:CARMOD_16769
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 6
goto_if_false @CARMOD_16860
if 
  $wing_mod_counter == 0
goto_if_false @CARMOD_16841
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM9'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 6
$misc_cam_look_at_modZ += 1

:CARMOD_16841
set_var_int_to_var_int $10305($wing_mod_counter,12i) = $mod_garage_offsetX
$wing_mod_counter += 1

:CARMOD_16860
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 4
goto_if_false @CARMOD_16951
if 
  $roof_mod_counter == 0
goto_if_false @CARMOD_16932
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM13'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 4
$misc_cam_look_at_modZ += 1

:CARMOD_16932
set_var_int_to_var_int $10317($roof_mod_counter,12i) = $mod_garage_offsetX
$roof_mod_counter += 1

:CARMOD_16951
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 5
goto_if_false @CARMOD_17042
if 
  $exhaust_mod_counter == 0
goto_if_false @CARMOD_17023
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM14'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 5
$misc_cam_look_at_modZ += 1

:CARMOD_17023
set_var_int_to_var_int $10329($exhaust_mod_counter,12i) = $mod_garage_offsetX
$exhaust_mod_counter += 1

:CARMOD_17042
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 16
goto_if_false @CARMOD_17133
if 
  $nitro_mod_counter == 0
goto_if_false @CARMOD_17114
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM15'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 16
$misc_cam_look_at_modZ += 1

:CARMOD_17114
set_var_int_to_var_int $10341($nitro_mod_counter,12i) = $mod_garage_offsetX
$nitro_mod_counter += 1

:CARMOD_17133
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 9
goto_if_false @CARMOD_17224
if 
  $bonnetLR_mod_counter == 0
goto_if_false @CARMOD_17205
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM18'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 9
$misc_cam_look_at_modZ += 1

:CARMOD_17205
set_var_int_to_var_int $10377($bonnetLR_mod_counter,12i) = $mod_garage_offsetX
$bonnetLR_mod_counter += 1

:CARMOD_17224
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 10
goto_if_false @CARMOD_17315
if 
  $bonnet_mod_counter == 0
goto_if_false @CARMOD_17296
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM16'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 10
$misc_cam_look_at_modZ += 1

:CARMOD_17296
set_var_int_to_var_int $10365($bonnet_mod_counter,12i) = $mod_garage_offsetX
$bonnet_mod_counter += 1

:CARMOD_17315
$10435 += 1
goto @CARMOD_15824

:CARMOD_17329
set_var_int_to_var_int $temp_var_shops = $misc_cam_look_at_modZ
gosub @CARMOD_21287
return 

:CARMOD_17346
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_17557
$10403 = 0
set_var_int_to_var_int $10404 = $forth_menu_shops

:CARMOD_17383
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $10403
goto_if_false @CARMOD_17494
set_var_text_label $item_text_label($10403,12s) = 'PAINTJB'
$item_price($10403,12i) = 500
if 
  is_int_var_equal_to_int_var $vomit_camX == $10403
goto_if_false @CARMOD_17469
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_17480

:CARMOD_17469
$item_hilight_shops($10403,12i) = 1

:CARMOD_17480
$10403 += 1
goto @CARMOD_17383

:CARMOD_17494
set_var_int_to_var_int $temp_var_shops = $forth_menu_shops
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_17557
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 12
goto_if_false @CARMOD_17790
$10403 = 0
set_var_int_to_var_int $10404 = $no_of_mods_for_vehicle

:CARMOD_17594
if 
  is_int_var_greater_than_int_var $no_of_mods_for_vehicle > $10403
goto_if_false @CARMOD_17727
get_name_of_item $10353($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10353($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10353($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10353($10403,12i)
goto_if_false @CARMOD_17702
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_17713

:CARMOD_17702
$item_hilight_shops($10403,12i) = 1

:CARMOD_17713
$10403 += 1
goto @CARMOD_17594

:CARMOD_17727
set_var_int_to_var_int $temp_var_shops = $no_of_mods_for_vehicle
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $number_of_colours
set_var_float_to_var_float $misc_cam_modX = $stored_paintjob_number
set_var_float_to_var_float $misc_cam_modY = $paintjob_number
set_var_float_to_var_float $misc_cam_modZ = $paintjob_number_menu
set_var_float_to_var_float $misc_cam_look_at_modX = $cam_general_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $cam_general_modY

:CARMOD_17790
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 3
goto_if_false @CARMOD_18023
$10403 = 0
set_var_int_to_var_int $10404 = $mod_garage_offsetZ

:CARMOD_17827
if 
  is_int_var_greater_than_int_var $mod_garage_offsetZ > $10403
goto_if_false @CARMOD_17960
get_name_of_item $wheel_mod_counter($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $wheel_mod_counter($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $wheel_mod_counter($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $wheel_mod_counter($10403,12i)
goto_if_false @CARMOD_17935
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_17946

:CARMOD_17935
$item_hilight_shops($10403,12i) = 1

:CARMOD_17946
$10403 += 1
goto @CARMOD_17827

:CARMOD_17960
set_var_int_to_var_int $temp_var_shops = $mod_garage_offsetZ
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wheel_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wheel_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wheel_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wheel_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $spoiler_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $spoiler_cam_modY

:CARMOD_18023
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 7
goto_if_false @CARMOD_18256
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camX

:CARMOD_18060
if 
  is_int_var_greater_than_int_var $mod_swap_camX > $10403
goto_if_false @CARMOD_18193
get_name_of_item $10209($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10209($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10209($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10209($10403,12i)
goto_if_false @CARMOD_18168
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18179

:CARMOD_18168
$item_hilight_shops($10403,12i) = 1

:CARMOD_18179
$10403 += 1
goto @CARMOD_18060

:CARMOD_18193
set_var_int_to_var_int $temp_var_shops = $mod_swap_camX
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $spoiler_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $spoiler_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $spoiler_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $spoiler_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $wing_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $wing_cam_modY

:CARMOD_18256
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 13
goto_if_false @CARMOD_18489
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camY

:CARMOD_18293
if 
  is_int_var_greater_than_int_var $mod_swap_camY > $10403
goto_if_false @CARMOD_18426
get_name_of_item $10221($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10221($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10221($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10221($10403,12i)
goto_if_false @CARMOD_18401
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18412

:CARMOD_18401
$item_hilight_shops($10403,12i) = 1

:CARMOD_18412
$10403 += 1
goto @CARMOD_18293

:CARMOD_18426
set_var_int_to_var_int $temp_var_shops = $mod_swap_camY
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $roof_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $roof_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $roof_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $roof_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $bonnet_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $bonnet_cam_modY

:CARMOD_18489
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 8
goto_if_false @CARMOD_18722
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camZ

:CARMOD_18526
if 
  is_int_var_greater_than_int_var $mod_swap_camZ > $10403
goto_if_false @CARMOD_18659
get_name_of_item $10233($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10233($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10233($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10233($10403,12i)
goto_if_false @CARMOD_18634
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18645

:CARMOD_18634
$item_hilight_shops($10403,12i) = 1

:CARMOD_18645
$10403 += 1
goto @CARMOD_18526

:CARMOD_18659
set_var_int_to_var_int $temp_var_shops = $mod_swap_camZ
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $front_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $front_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $front_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $front_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $rear_bullbar_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $rear_bullbar_cam_modY

:CARMOD_18722
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 2
goto_if_false @CARMOD_18955
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camX

:CARMOD_18759
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camX > $10403
goto_if_false @CARMOD_18892
get_name_of_item $10245($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10245($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10245($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10245($10403,12i)
goto_if_false @CARMOD_18867
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18878

:CARMOD_18867
$item_hilight_shops($10403,12i) = 1

:CARMOD_18878
$10403 += 1
goto @CARMOD_18759

:CARMOD_18892
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camX
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $cam_general_modZ
set_var_float_to_var_float $misc_cam_modX = $cam_general_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $cam_general_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $cam_general_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $wheel_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $wheel_cam_modY

:CARMOD_18955
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 0
goto_if_false @CARMOD_19188
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camY

:CARMOD_18992
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camY > $10403
goto_if_false @CARMOD_19125
get_name_of_item $10257($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10257($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10257($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10257($10403,12i)
goto_if_false @CARMOD_19100
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19111

:CARMOD_19100
$item_hilight_shops($10403,12i) = 1

:CARMOD_19111
$10403 += 1
goto @CARMOD_18992

:CARMOD_19125
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camY
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wing_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wing_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wing_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wing_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $roof_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $roof_cam_modY

:CARMOD_19188
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 1
goto_if_false @CARMOD_19421
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camZ

:CARMOD_19225
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camZ > $10403
goto_if_false @CARMOD_19358
get_name_of_item $10269($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10269($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10269($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10269($10403,12i)
goto_if_false @CARMOD_19333
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19344

:CARMOD_19333
$item_hilight_shops($10403,12i) = 1

:CARMOD_19344
$10403 += 1
goto @CARMOD_19225

:CARMOD_19358
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camZ
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wing_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wing_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wing_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wing_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $roof_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $roof_cam_modY

:CARMOD_19421
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 14
goto_if_false @CARMOD_19654
$10403 = 0
set_var_int_to_var_int $10404 = $new_mod_index_wil

:CARMOD_19458
if 
  is_int_var_greater_than_int_var $new_mod_index_wil > $10403
goto_if_false @CARMOD_19591
get_name_of_item $10281($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10281($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10281($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10281($10403,12i)
goto_if_false @CARMOD_19566
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19577

:CARMOD_19566
$item_hilight_shops($10403,12i) = 1

:CARMOD_19577
$10403 += 1
goto @CARMOD_19458

:CARMOD_19591
set_var_int_to_var_int $temp_var_shops = $new_mod_index_wil
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $bonnet_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $bonnet_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $bonnet_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $bonnet_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $exhaust_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $exhaust_cam_modY

:CARMOD_19654
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 15
goto_if_false @CARMOD_19887
$10403 = 0
set_var_int_to_var_int $10404 = $upgradetype_mod

:CARMOD_19691
if 
  is_int_var_greater_than_int_var $upgradetype_mod > $10403
goto_if_false @CARMOD_19824
get_name_of_item $10293($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10293($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10293($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10293($10403,12i)
goto_if_false @CARMOD_19799
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19810

:CARMOD_19799
$item_hilight_shops($10403,12i) = 1

:CARMOD_19810
$10403 += 1
goto @CARMOD_19691

:CARMOD_19824
set_var_int_to_var_int $temp_var_shops = $upgradetype_mod
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $exhaust_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $exhaust_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $exhaust_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $exhaust_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $front_fender_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $front_fender_cam_modY

:CARMOD_19887
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 6
goto_if_false @CARMOD_20120
$10403 = 0
set_var_int_to_var_int $10404 = $wing_mod_counter

:CARMOD_19924
if 
  is_int_var_greater_than_int_var $wing_mod_counter > $10403
goto_if_false @CARMOD_20057
get_name_of_item $10305($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10305($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10305($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10305($10403,12i)
goto_if_false @CARMOD_20032
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20043

:CARMOD_20032
$item_hilight_shops($10403,12i) = 1

:CARMOD_20043
$10403 += 1
goto @CARMOD_19924

:CARMOD_20057
set_var_int_to_var_int $temp_var_shops = $wing_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $front_fender_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $front_fender_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $front_fender_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $front_fender_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $rear_fender_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $rear_fender_cam_modY

:CARMOD_20120
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 4
goto_if_false @CARMOD_20353
$10403 = 0
set_var_int_to_var_int $10404 = $roof_mod_counter

:CARMOD_20157
if 
  is_int_var_greater_than_int_var $roof_mod_counter > $10403
goto_if_false @CARMOD_20290
get_name_of_item $10317($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10317($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10317($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10317($10403,12i)
goto_if_false @CARMOD_20265
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20276

:CARMOD_20265
$item_hilight_shops($10403,12i) = 1

:CARMOD_20276
$10403 += 1
goto @CARMOD_20157

:CARMOD_20290
set_var_int_to_var_int $temp_var_shops = $roof_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_fender_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_fender_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_fender_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_fender_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $lights_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $lights_cam_modY

:CARMOD_20353
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 5
goto_if_false @CARMOD_20586
$10403 = 0
set_var_int_to_var_int $10404 = $exhaust_mod_counter

:CARMOD_20390
if 
  is_int_var_greater_than_int_var $exhaust_mod_counter > $10403
goto_if_false @CARMOD_20523
get_name_of_item $10329($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10329($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10329($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10329($10403,12i)
goto_if_false @CARMOD_20498
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20509

:CARMOD_20498
$item_hilight_shops($10403,12i) = 1

:CARMOD_20509
$10403 += 1
goto @CARMOD_20390

:CARMOD_20523
set_var_int_to_var_int $temp_var_shops = $exhaust_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $lights_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $lights_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $lights_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $lights_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $front_bullbar_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $front_bullbar_cam_modY

:CARMOD_20586
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 16
goto_if_false @CARMOD_20819
$10403 = 0
set_var_int_to_var_int $10404 = $nitro_mod_counter

:CARMOD_20623
if 
  is_int_var_greater_than_int_var $nitro_mod_counter > $10403
goto_if_false @CARMOD_20756
get_name_of_item $10341($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10341($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10341($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10341($10403,12i)
goto_if_false @CARMOD_20731
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20742

:CARMOD_20731
$item_hilight_shops($10403,12i) = 1

:CARMOD_20742
$10403 += 1
goto @CARMOD_20623

:CARMOD_20756
set_var_int_to_var_int $temp_var_shops = $nitro_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $nitro_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $nitro_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $nitro_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $nitro_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $custom_paint_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $custom_paint_cam_modY

:CARMOD_20819
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 9
goto_if_false @CARMOD_21052
$10403 = 0
set_var_int_to_var_int $10404 = $bonnetLR_mod_counter

:CARMOD_20856
if 
  is_int_var_greater_than_int_var $bonnetLR_mod_counter > $10403
goto_if_false @CARMOD_20989
get_name_of_item $10377($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10377($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10377($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10377($10403,12i)
goto_if_false @CARMOD_20964
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20975

:CARMOD_20964
$item_hilight_shops($10403,12i) = 1

:CARMOD_20975
$10403 += 1
goto @CARMOD_20856

:CARMOD_20989
set_var_int_to_var_int $temp_var_shops = $bonnetLR_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_21052
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 10
goto_if_false @CARMOD_21285
$10403 = 0
set_var_int_to_var_int $10404 = $bonnet_mod_counter

:CARMOD_21089
if 
  is_int_var_greater_than_int_var $bonnet_mod_counter > $10403
goto_if_false @CARMOD_21222
get_name_of_item $10365($10403,12i) {var_name} $item_text_label($10403,12s)
get_price_of_item $10365($10403,12i) {var_price} $item_price($10403,12i)
set_var_int_to_var_int $item_model_index($10403,12i) = $10365($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10365($10403,12i)
goto_if_false @CARMOD_21197
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_21208

:CARMOD_21197
$item_hilight_shops($10403,12i) = 1

:CARMOD_21208
$10403 += 1
goto @CARMOD_21089

:CARMOD_21222
set_var_int_to_var_int $temp_var_shops = $bonnet_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_21285
return 

:CARMOD_21287
if 
  12 > $temp_var_shops
goto_if_false @CARMOD_21359
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CARMOD_21287

:CARMOD_21359
return 

:CARMOD_21361
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_22275
if 
  $10433 == 1
goto_if_false @CARMOD_21432
set_var_text_label s$stored_car_colour1 = 'CARCOL1'
set_var_text_label s$third_menu_shops = 'DUMMY'
goto @CARMOD_21460

:CARMOD_21432
set_var_text_label s$stored_car_colour1 = 'CARCOL1'
set_var_text_label s$third_menu_shops = 'CARCOL2'

:CARMOD_21460
print_help_forever 'MODH5'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_21533
$colour_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21533
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_21595
$colour_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21595
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_21657
$colour_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21657
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_21719
$colour_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21719
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_21774
$colour_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:CARMOD_21774
set_menu_column_orientation $colour_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $colour_menu_shops {column} 0 {title} 'UPGRADE' {row0} s$stored_car_colour1 {row1} s$third_menu_shops {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  $10433 == 1
goto_if_false @CARMOD_22074
set_menu_column_orientation $colour_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $colour_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $colour_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 150
goto @CARMOD_22249

:CARMOD_22074
set_menu_column_orientation $colour_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $colour_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $colour_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 150
set_menu_item_with_number $colour_menu_shops {column} 1 {row} 1 {gxt} 'DOLLAR' {number} 150

:CARMOD_22249
set_menu_column_width $colour_menu_shops {column} 0 {width} 140
set_menu_column_width $colour_menu_shops {column} 1 {width} 46
$colour_menu_drawn_shops = 1

:CARMOD_22275
return 

:CARMOD_22277
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 401
  is_int_var_equal_to_constant $forth_menu_item2 == 402
  is_int_var_equal_to_constant $forth_menu_item2 == 404
  is_int_var_equal_to_constant $forth_menu_item2 == 405
  is_int_var_equal_to_constant $forth_menu_item2 == 409
  is_int_var_equal_to_constant $forth_menu_item2 == 410
goto_if_false @CARMOD_22343
$10433 = 2

:CARMOD_22343
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 411
  is_int_var_equal_to_constant $forth_menu_item2 == 412
  is_int_var_equal_to_constant $forth_menu_item2 == 413
  is_int_var_equal_to_constant $forth_menu_item2 == 415
  is_int_var_equal_to_constant $forth_menu_item2 == 418
  is_int_var_equal_to_constant $forth_menu_item2 == 419
goto_if_false @CARMOD_22409
$10433 = 2

:CARMOD_22409
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 421
  is_int_var_equal_to_constant $forth_menu_item2 == 426
  is_int_var_equal_to_constant $forth_menu_item2 == 434
  is_int_var_equal_to_constant $forth_menu_item2 == 436
  is_int_var_equal_to_constant $forth_menu_item2 == 440
goto_if_false @CARMOD_22467
$10433 = 2

:CARMOD_22467
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 444
  is_int_var_equal_to_constant $forth_menu_item2 == 445
  is_int_var_equal_to_constant $forth_menu_item2 == 451
  is_int_var_equal_to_constant $forth_menu_item2 == 457
  is_int_var_equal_to_constant $forth_menu_item2 == 458
  is_int_var_equal_to_constant $forth_menu_item2 == 461
goto_if_false @CARMOD_22533
$10433 = 2

:CARMOD_22533
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 462
  is_int_var_equal_to_constant $forth_menu_item2 == 463
  is_int_var_equal_to_constant $forth_menu_item2 == 468
  is_int_var_equal_to_constant $forth_menu_item2 == 474
  is_int_var_equal_to_constant $forth_menu_item2 == 475
  is_int_var_equal_to_constant $forth_menu_item2 == 477
goto_if_false @CARMOD_22599
$10433 = 2

:CARMOD_22599
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 478
  is_int_var_equal_to_constant $forth_menu_item2 == 481
  is_int_var_equal_to_constant $forth_menu_item2 == 482
  is_int_var_equal_to_constant $forth_menu_item2 == 500
  is_int_var_equal_to_constant $forth_menu_item2 == 506
goto_if_false @CARMOD_22657
$10433 = 2

:CARMOD_22657
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 507
  is_int_var_equal_to_constant $forth_menu_item2 == 510
  is_int_var_equal_to_constant $forth_menu_item2 == 516
  is_int_var_equal_to_constant $forth_menu_item2 == 518
  is_int_var_equal_to_constant $forth_menu_item2 == 521
  is_int_var_equal_to_constant $forth_menu_item2 == 526
goto_if_false @CARMOD_22723
$10433 = 2

:CARMOD_22723
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 527
  is_int_var_equal_to_constant $forth_menu_item2 == 529
  is_int_var_equal_to_constant $forth_menu_item2 == 530
  is_int_var_equal_to_constant $forth_menu_item2 == 531
  is_int_var_equal_to_constant $forth_menu_item2 == 533
  is_int_var_equal_to_constant $forth_menu_item2 == 534
goto_if_false @CARMOD_22789
$10433 = 2

:CARMOD_22789
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 539
  is_int_var_equal_to_constant $forth_menu_item2 == 540
  is_int_var_equal_to_constant $forth_menu_item2 == 543
  is_int_var_equal_to_constant $forth_menu_item2 == 545
  is_int_var_equal_to_constant $forth_menu_item2 == 546
goto_if_false @CARMOD_22847
$10433 = 2

:CARMOD_22847
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 547
  is_int_var_equal_to_constant $forth_menu_item2 == 550
  is_int_var_equal_to_constant $forth_menu_item2 == 551
  is_int_var_equal_to_constant $forth_menu_item2 == 552
  is_int_var_equal_to_constant $forth_menu_item2 == 555
  is_int_var_equal_to_constant $forth_menu_item2 == 556
goto_if_false @CARMOD_22913
$10433 = 2

:CARMOD_22913
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 559
  is_int_var_equal_to_constant $forth_menu_item2 == 560
  is_int_var_equal_to_constant $forth_menu_item2 == 561
  is_int_var_equal_to_constant $forth_menu_item2 == 509
  is_int_var_equal_to_constant $forth_menu_item2 == 562
  is_int_var_equal_to_constant $forth_menu_item2 == 558
goto_if_false @CARMOD_22979
$10433 = 2

:CARMOD_22979
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 565
  is_int_var_equal_to_constant $forth_menu_item2 == 571
  is_int_var_equal_to_constant $forth_menu_item2 == 572
  is_int_var_equal_to_constant $forth_menu_item2 == 574
  is_int_var_equal_to_constant $forth_menu_item2 == 579
  is_int_var_equal_to_constant $forth_menu_item2 == 580
goto_if_false @CARMOD_23045
$10433 = 2

:CARMOD_23045
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 581
  is_int_var_equal_to_constant $forth_menu_item2 == 582
  is_int_var_equal_to_constant $forth_menu_item2 == 585
  is_int_var_equal_to_constant $forth_menu_item2 == 586
  is_int_var_equal_to_constant $forth_menu_item2 == 589
  is_int_var_equal_to_constant $forth_menu_item2 == 543
goto_if_false @CARMOD_23111
$10433 = 2

:CARMOD_23111
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 587
  is_int_var_equal_to_constant $forth_menu_item2 == 600
  is_int_var_equal_to_constant $forth_menu_item2 == 602
  is_int_var_equal_to_constant $forth_menu_item2 == 420
  is_int_var_equal_to_constant $forth_menu_item2 == 400
  is_int_var_equal_to_constant $forth_menu_item2 == 439
goto_if_false @CARMOD_23177
$10433 = 2

:CARMOD_23177
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 535
  is_int_var_equal_to_constant $forth_menu_item2 == 542
  is_int_var_equal_to_constant $forth_menu_item2 == 549
  is_int_var_equal_to_constant $forth_menu_item2 == 438
goto_if_false @CARMOD_23227
$10433 = 2

:CARMOD_23227
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 422
  is_int_var_equal_to_constant $forth_menu_item2 == 423
  is_int_var_equal_to_constant $forth_menu_item2 == 424
  is_int_var_equal_to_constant $forth_menu_item2 == 429
  is_int_var_equal_to_constant $forth_menu_item2 == 442
  is_int_var_equal_to_constant $forth_menu_item2 == 536
goto_if_false @CARMOD_23293
$10433 = 2

:CARMOD_23293
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 466
  is_int_var_equal_to_constant $forth_menu_item2 == 467
  is_int_var_equal_to_constant $forth_menu_item2 == 471
  is_int_var_equal_to_constant $forth_menu_item2 == 479
  is_int_var_equal_to_constant $forth_menu_item2 == 483
  is_int_var_equal_to_constant $forth_menu_item2 == 489
goto_if_false @CARMOD_23359
$10433 = 2

:CARMOD_23359
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 491
  is_int_var_equal_to_constant $forth_menu_item2 == 492
  is_int_var_equal_to_constant $forth_menu_item2 == 494
  is_int_var_equal_to_constant $forth_menu_item2 == 495
  is_int_var_equal_to_constant $forth_menu_item2 == 496
  is_int_var_equal_to_constant $forth_menu_item2 == 502
goto_if_false @CARMOD_23425
$10433 = 2

:CARMOD_23425
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 503
  is_int_var_equal_to_constant $forth_menu_item2 == 504
  is_int_var_equal_to_constant $forth_menu_item2 == 517
  is_int_var_equal_to_constant $forth_menu_item2 == 522
  is_int_var_equal_to_constant $forth_menu_item2 == 525
  is_int_var_equal_to_constant $forth_menu_item2 == 480
goto_if_false @CARMOD_23491
$10433 = 2

:CARMOD_23491
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 541
  is_int_var_equal_to_constant $forth_menu_item2 == 517
  is_int_var_equal_to_constant $forth_menu_item2 == 554
  is_int_var_equal_to_constant $forth_menu_item2 == 567
goto_if_false @CARMOD_23541
$10433 = 2

:CARMOD_23541
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 573
  is_int_var_equal_to_constant $forth_menu_item2 == 575
  is_int_var_equal_to_constant $forth_menu_item2 == 576
  is_int_var_equal_to_constant $forth_menu_item2 == 583
  is_int_var_equal_to_constant $forth_menu_item2 == 603
goto_if_false @CARMOD_23599
$10433 = 2

:CARMOD_23599
if 
  is_int_var_equal_to_constant $forth_menu_item2 == 557
goto_if_false @CARMOD_23625
$10433 = 2

:CARMOD_23625
return 

:CARMOD_23627
$temp_var_shops = 0
$10471 = 0

:CARMOD_23641
if 
  16 > $temp_var_shops
goto_if_false @CARMOD_23721
get_available_vehicle_mod $original_car_mod {slotId} $selected_car_colour_mods($temp_var_shops,16i) {var_modelId} $10455($temp_var_shops,16i)
if 
  $10455($temp_var_shops,16i) <> -1
goto_if_false @CARMOD_23707
$10471 += 1

:CARMOD_23707
$temp_var_shops += 1
goto @CARMOD_23641

:CARMOD_23721
return 

:CARMOD_23723
if 
  $mod_model_index == 0
goto_if_false @CARMOD_24413
print_help_forever 'MODH2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_23814
$number_of_mods_in_section = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23814
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_23876
$number_of_mods_in_section = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23876
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_23938
$number_of_mods_in_section = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23938
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_24000
$number_of_mods_in_section = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_24000
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_24055
$number_of_mods_in_section = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:CARMOD_24055
set_menu_column_orientation $number_of_mods_in_section {column} 0 {alignment} Align.Left
set_menu_column $number_of_mods_in_section {column} 0 {title} 'UPGRADE' {row0} $item_text_label($10402,12s) {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_24229
set_menu_item_with_number $number_of_mods_in_section {column} 0 {row} 0 {gxt} 'PJOB' {number} $vomit_camZ

:CARMOD_24229
set_menu_column_orientation $number_of_mods_in_section {column} 1 {alignment} Align.Right
set_menu_column $number_of_mods_in_section {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $number_of_mods_in_section {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $item_price($10402,12i)
set_menu_column_width $number_of_mods_in_section {column} 0 {width} 140
set_menu_column_width $number_of_mods_in_section {column} 1 {width} 46
$mod_model_index = 1

:CARMOD_24413
return 
terminate_this_script 

//-------------External script 67 (CRANE1)---------------

:CRANE1
script_name 'CRANE1'
5@ = 0
if 
  5@ == 1
goto_if_false @CRANE1_102
0@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE1_102
if 
  does_object_exist 0@
goto_if_false @CRANE1_258
if 
  locate_object_2d 0@ {x} -2080.4409 {y} 256.015 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANE1_188
set_lvar_int_to_var_int 1@ = $sf_crane1_base
set_lvar_int_to_var_int 2@ = $sf_crane1_arm
set_lvar_int_to_var_int 3@ = $sf_crane1_base_LOD
set_lvar_int_to_var_int 4@ = $sf_crane1_trolley

:CRANE1_188
if 
  locate_object_2d 0@ {x} 2399.2019 {y} 1879.139 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANE1_258
set_lvar_int_to_var_int 1@ = $lv_base
set_lvar_int_to_var_int 2@ = $lv_arm
set_lvar_int_to_var_int 3@ = $lv_base_LOD
set_lvar_int_to_var_int 4@ = $lv_trolley

:CRANE1_258
$10480 = 0
21@ = 0

:CRANE1_272
wait 0
if 
  does_object_exist 0@
goto_if_false @CRANE1_2496
if 
  is_player_playing $player1
goto_if_false @CRANE1_2489
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE1_2489
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_351
gosub @CRANE1_2512

:CRANE1_351
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE1_2487
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_407
gosub @CRANE1_2512

:CRANE1_407
if 
  5@ == 0
goto_if_false @CRANE1_461
9@, 10@, 11@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -7.2092 {zOffset} -31.7581
5@ += 1

:CRANE1_461
if 
  5@ == 1
goto_if_false @CRANE1_646
if 
  locate_char_on_foot_3d $scplayer {x} 9@ {y} 10@ {z} 11@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE1_619
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE1_612
if 
  $10480 == 0
goto_if_false @CRANE1_573
print_help_forever 'CR_2'
$10480 = 1

:CRANE1_573
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE1_612
5@ += 1
TIMERA = 6000
$10480 = 0

:CRANE1_612
goto @CRANE1_646

:CRANE1_619
if 
  $10480 <> 0
goto_if_false @CRANE1_646
clear_help 
$10480 = 0

:CRANE1_646
if 
  5@ == 2
goto_if_false @CRANE1_1068
if 
  does_object_exist 1@
goto_if_false @CRANE1_688
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneEnter

:CRANE1_688
set_player_control $player1 {state} False
set_minigame_in_progress True
do_fade 500 {direction} Fade.Out

:CRANE1_706
if 
  get_fading_status 
goto_if_false @CRANE1_730
wait 0
goto @CRANE1_706

:CRANE1_730
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_758
player_entered_buildingsite_crane 
goto @CRANE1_760

:CRANE1_758
player_entered_las_vegas_crane 

:CRANE1_760
display_non_minigame_help_messages True
7@ = get_object_heading 1@
$x, $y, $z = get_object_coordinates 1@
12@, 13@, 14@ = get_object_coordinates 2@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 12@ {toZ} 13@
if 
  8@ > 47.5
goto_if_false @CRANE1_848
8@ = 47.5

:CRANE1_848
if 
  10.0 > 8@
goto_if_false @CRANE1_879
8@ = 10.0

:CRANE1_879
if 
  does_object_exist 1@
goto_if_false @CRANE1_943
if 
  is_player_playing $player1
goto_if_false @CRANE1_943
attach_char_to_object $scplayer {handle} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 34.5 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CRANE1_943
if 
  is_player_playing $player1
goto_if_false @CRANE1_1016
freeze_char_position $scplayer {state} True
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$player_is_in_crane = 1
22@ = 0

:CRANE1_1016
set_everyone_ignore_player $player1 {state} False
gosub @CRANE1_2512
do_fade 500 {direction} Fade.In

:CRANE1_1037
if 
  get_fading_status 
goto_if_false @CRANE1_1061
wait 0
goto @CRANE1_1037

:CRANE1_1061
5@ += 1

:CRANE1_1068
if 
  5@ == 3
goto_if_false @CRANE1_2277
if 
  TIMERA > 6000
goto_if_false @CRANE1_1468
$10480 += 1
if 
  7 > $10480
goto_if_false @CRANE1_1461
switch_start $10480 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRANE1_1461 {caseNum1} 1 {caseLabel1} @CRANE1_1193 {caseNum2} 2 {caseLabel2} @CRANE1_1250 {caseNum3} 3 {caseLabel3} @CRANE1_1307 {caseNum4} 4 {caseLabel4} @CRANE1_1364 {caseNum5} 5 {caseLabel5} @CRANE1_1421 {caseNum6} 6 {caseLabel6} @CRANE1_1441 {caseNum7} -1 {caseLabel7} @CRANE1_1461

:CRANE1_1193
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1232
print_help_forever 'CONS_1'
goto @CRANE1_1243

:CRANE1_1232
print_help_forever 'CONS_1B'

:CRANE1_1243
goto @CRANE1_1461

:CRANE1_1250
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1289
print_help_forever 'CONS_2'
goto @CRANE1_1300

:CRANE1_1289
print_help_forever 'CONS_2B'

:CRANE1_1300
goto @CRANE1_1461

:CRANE1_1307
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1346
print_help_forever 'CONS_3'
goto @CRANE1_1357

:CRANE1_1346
print_help_forever 'CONS_3B'

:CRANE1_1357
goto @CRANE1_1461

:CRANE1_1364
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1403
print_help_forever 'CONS_4'
goto @CRANE1_1414

:CRANE1_1403
print_help_forever 'CONS_4B'

:CRANE1_1414
goto @CRANE1_1461

:CRANE1_1421
clear_help 
print_help_forever 'CONS_5'
goto @CRANE1_1461

:CRANE1_1441
clear_help 
print_help 'CR_3'
goto @CRANE1_1461

:CRANE1_1461
TIMERA = 0

:CRANE1_1468
if 
  is_player_playing $player1
goto_if_false @CRANE1_2277
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @CRANE1_1509
$10477 += 0.1

:CRANE1_1509
if 
is_ps2_keyboard_key_pressed 4
goto_if_false @CRANE1_1534
$10477 += -0.1

:CRANE1_1534
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @CRANE1_1559
$10478 += 0.1

:CRANE1_1559
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRANE1_1584
$10478 += -0.1

:CRANE1_1584
if 
is_ps2_keyboard_key_pressed 8
goto_if_false @CRANE1_1609
$10479 += 0.1

:CRANE1_1609
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @CRANE1_1634
$10479 += -0.1

:CRANE1_1634
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
goto_if_false @CRANE1_1749
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickX
6@ /= 500.0
sub_timed_float_lvar_from_float_lvar 7@ -=@ 6@
if 
  is_player_playing $player1
goto_if_false @CRANE1_1742
if 
  22@ <> 1
goto_if_false @CRANE1_1742
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneMoveStart
22@ = 1

:CRANE1_1742
goto @CRANE1_1798

:CRANE1_1749
if 
  is_player_playing $player1
goto_if_false @CRANE1_1798
if 
  22@ <> 0
goto_if_false @CRANE1_1798
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneMoveStop
22@ = 0

:CRANE1_1798
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE1_2000
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickY
6@ /= 128.0
if or
  6@ > 0.6
  -0.6 > 6@
goto_if_false @CRANE1_1993
6@ *= 0.15
sub_timed_float_lvar_from_float_lvar 8@ -=@ 6@
if 
  8@ > 47.5
goto_if_false @CRANE1_1929
8@ = 47.5

:CRANE1_1929
if 
  10.0 > 8@
goto_if_false @CRANE1_1960
8@ = 10.0

:CRANE1_1960
if 
  23@ <> 1
goto_if_false @CRANE1_1993
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStart
23@ = 1

:CRANE1_1993
goto @CRANE1_2033

:CRANE1_2000
if 
  23@ <> 0
goto_if_false @CRANE1_2033
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStop
23@ = 0

:CRANE1_2033
if 
  does_object_exist 2@
goto_if_false @CRANE1_2071
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CRANE1_2071
release_entity_from_rope_for_object 2@

:CRANE1_2071
if 
  does_object_exist 1@
goto_if_false @CRANE1_2172
if 
  does_object_exist 0@
goto_if_false @CRANE1_2172
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 32.521
set_object_heading 1@ {heading} 7@
if 
  does_object_exist 3@
goto_if_false @CRANE1_2164
set_object_heading 3@ {heading} 7@

:CRANE1_2164
set_char_heading $scplayer {heading} 7@

:CRANE1_2172
if 
  does_object_exist 1@
goto_if_false @CRANE1_2253
if 
  does_object_exist 2@
goto_if_false @CRANE1_2253
$x, $y, $z = get_offset_from_object_in_world_coords 1@ {xOffset} 0.0 {yOffset} 8@ {zOffset} 3.453
set_object_coordinates_and_velocity 2@ {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} 7@

:CRANE1_2253
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE1_2277
5@ += 1

:CRANE1_2277
if 
  5@ == 4
goto_if_false @CRANE1_2480
if 
  is_player_playing $player1
goto_if_false @CRANE1_2480
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 1@
goto_if_false @CRANE1_2349
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneExit

:CRANE1_2349
clear_help 
player_left_crane 
set_minigame_in_progress False
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 2.0 {yOffset} -7.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
restore_camera_jumpcut 
$player_is_in_crane = 0
5@ = 0
terminate_this_script 

:CRANE1_2480
goto @CRANE1_2489

:CRANE1_2487
terminate_this_script 

:CRANE1_2489
goto @CRANE1_2505

:CRANE1_2496
5@ = 0
terminate_this_script 

:CRANE1_2505
goto @CRANE1_272

:CRANE1_2512
if 
  $flag_car_lowrider_carmod == 0
goto_if_false @CRANE1_3074
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @CRANE1_2619
if 
  24@ == 0
goto_if_false @CRANE1_2612
21@ += 1
if 
  21@ > 2
goto_if_false @CRANE1_2597
21@ = 0

:CRANE1_2597
set_var_int_to_lvar_int $flag_car_racer_carmod = 21@
24@ += 1

:CRANE1_2612
goto @CRANE1_2644

:CRANE1_2619
if 
  24@ <> 0
goto_if_false @CRANE1_2644
24@ = 0

:CRANE1_2644
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_2695
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_2695
set_var_int_to_var_int $flag_car_racer_carmod = $flag_car_racer_carmod
$reset_crane_camera = 0

:CRANE1_2695
if 
  21@ == 0
goto_if_false @CRANE1_2758
if 
  does_object_exist 1@
goto_if_false @CRANE1_2758
15@, 16@, 17@ = get_offset_from_object_in_world_coords 1@ {xOffset} -7.18 {yOffset} -6.42 {zOffset} 15.79

:CRANE1_2758
if 
  21@ == 1
goto_if_false @CRANE1_2920
if 
  does_object_exist 1@
goto_if_false @CRANE1_2920
15@, 16@, 17@ = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -4.5 {zOffset} 20.1999
if 
  does_object_exist 2@
goto_if_false @CRANE1_2920
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 20.1999
6@ = get_rope_height_for_object 2@
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 17@ = $z

:CRANE1_2920
if 
  does_object_exist 2@
goto_if_false @CRANE1_3035
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0
6@ = get_rope_height_for_object 2@
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 18@ = $x
set_lvar_float_to_var_float 19@ = $y
set_lvar_float_to_var_float 20@ = $z

:CRANE1_3035
set_fixed_camera_position 15@ {y} 16@ {z} 17@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 18@ {y} 19@ {z} 20@ {switchStyle} SwitchType.JumpCut

:CRANE1_3074
return 
terminate_this_script 

//-------------External script 68 (CRANE2)---------------

:CRANE2
script_name 'CRANE2'
0@ = 0
if 
  0@ == 1
goto_if_false @CRANE2_102
$sf_crane1_arm_LOD = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_base = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_cabin = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE2_102
$can_car_be_modded_counter = 0
$cam_pos_z = 33.7
$magno_arm_h = 15.0
28@ = 0
27@ = 1
$magno_camera_type = 0

:CRANE2_150
wait 0
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_4698
if 
  is_player_playing $player1
goto_if_false @CRANE2_4691
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE2_4691
if 
  locate_char_any_means_object_2d $scplayer {object} $sf_crane1_arm_LOD {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE2_4689
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_260
gosub @CRANE2_4714

:CRANE2_260
if and
  is_player_playing $player1
  $disable_crane == 0
goto_if_false @CRANE2_4682
if 
  locate_char_any_means_object_2d $scplayer {object} $sf_crane1_arm_LOD {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE2_4657
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_339
gosub @CRANE2_4714

:CRANE2_339
if 
  0@ == 0
goto_if_false @CRANE2_393
1@, 2@, 3@ = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} -1.7837 {yOffset} 2.4699 {zOffset} -24.1519
0@ += 1

:CRANE2_393
if 
  0@ == 1
goto_if_false @CRANE2_691
if 
  locate_char_on_foot_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE2_538
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE2_531
if 
  $can_car_be_modded_counter == 0
goto_if_false @CRANE2_505
print_help_forever 'CR_2'
$can_car_be_modded_counter = 1

:CRANE2_505
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE2_531
clear_help 
0@ += 1

:CRANE2_531
goto @CRANE2_565

:CRANE2_538
if 
  $can_car_be_modded_counter <> 0
goto_if_false @CRANE2_565
clear_help 
$can_car_be_modded_counter = 0

:CRANE2_565
if 
  15.0 > $magno_arm_h
goto_if_false @CRANE2_628
$magno_arm_h = 15.0
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_628
set_object_rotation $magno_cabin {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h

:CRANE2_628
if 
  $magno_arm_h > 30.0
goto_if_false @CRANE2_691
$magno_arm_h = 30.0
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_691
set_object_rotation $magno_cabin {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h

:CRANE2_691
if 
  0@ == 2
goto_if_false @CRANE2_1309
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_733
report_mission_audio_event_at_object $magno_base {soundId} ScriptSound.SoundCraneEnter

:CRANE2_733
set_player_control $player1 {state} False
set_minigame_in_progress True
do_fade 500 {direction} Fade.Out

:CRANE2_751
if 
  get_fading_status 
goto_if_false @CRANE2_775
wait 0
goto @CRANE2_751

:CRANE2_775
player_entered_dock_crane 
display_non_minigame_help_messages True
$magno_base_z = get_object_heading $magno_base
$magno_cabin_h = get_object_heading $magno_cabin
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_875
if 
  is_player_playing $player1
goto_if_false @CRANE2_875
$magno_arm_LOD, $magno_base_x, $magno_base_y = get_object_coordinates $sf_crane1_arm_LOD
attach_char_to_object $scplayer {handle} $sf_crane1_arm_LOD {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CRANE2_875
if 
  is_player_playing $player1
goto_if_false @CRANE2_948
freeze_char_position $scplayer {state} True
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$player_is_in_crane = 2
$cam_look_z = 0

:CRANE2_948
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_978
21@, 22@, $z = get_object_coordinates $sf_crane1_arm_LOD

:CRANE2_978
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_1002
25@ = get_object_heading $magno_cabin

:CRANE2_1002
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_1204
$disable_all_cranes, $do_not_update_camera_crane1, $crane1_cam_mode = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 0.0 {yOffset} $cam_pos_z {zOffset} -3.0
4@ = get_rope_height_for_object $magno_cabin
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $crane1_cam_mode -= 4@
set_var_float_to_var_float $x = $disable_all_cranes
sub_float_var_from_float_var $x -= $magno_arm_LOD
set_var_float_to_var_float $y = $do_not_update_camera_crane1
sub_float_var_from_float_var $y -= $magno_base_x
4@ = get_distance_between_coords_2d $disable_all_cranes {fromY} $do_not_update_camera_crane1 {toX} $magno_arm_LOD {toZ} $magno_base_x
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $cam_pos_z
mult_float_var_by_float_var $y *= $cam_pos_z
set_var_float_to_var_float $disable_all_cranes = $magno_arm_LOD
add_float_var_to_float_var $disable_all_cranes += $x
set_var_float_to_var_float $do_not_update_camera_crane1 = $magno_base_x
add_float_var_to_float_var $do_not_update_camera_crane1 += $y

:CRANE2_1204
set_lvar_float_to_var_float 10@ = $disable_all_cranes
set_lvar_float_to_var_float 11@ = $do_not_update_camera_crane1
$new_cam_look_x = 0.0
$new_cam_look_y = 0.0
$new_cam_look_z = 0.3
set_everyone_ignore_player $player1 {state} False
gosub @CRANE2_4714
do_fade 500 {direction} Fade.In

:CRANE2_1271
if 
  get_fading_status 
goto_if_false @CRANE2_1302
wait 0
gosub @CRANE2_4714
goto @CRANE2_1271

:CRANE2_1302
0@ += 1

:CRANE2_1309
if 
  0@ == 3
goto_if_false @CRANE2_4428
if 
  is_player_playing $player1
goto_if_false @CRANE2_4428
if 
is_ps2_keyboard_key_pressed 82
goto_if_false @CRANE2_1368
$cam_pos_z += 0.1

:CRANE2_1368
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @CRANE2_1393
$cam_pos_z += -0.1

:CRANE2_1393
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_3928
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE2_2945
if 
  $cam_look_z <> 1
goto_if_false @CRANE2_1483
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_1476
report_mission_audio_event_at_object $magno_base {soundId} ScriptSound.SoundCraneMoveStart

:CRANE2_1476
$cam_look_z = 1

:CRANE2_1483
if 
  $disable_manual_control == 0
goto_if_false @CRANE2_2938
28@ = 1
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickX
cset_lvar_float_to_var_int 7@ =# $LStickY
6@ /= 128.0
7@ /= 128.0
6@ *= 0.15
7@ *= 0.15
set_lvar_float_to_var_float 12@ = $crane_rope_length
set_lvar_float_to_var_float 13@ = $cam_pos_x
set_lvar_float_to_lvar_float 15@ = 13@
set_lvar_float_to_lvar_float 16@ = 12@
16@ *= -1.0
mult_float_lvar_by_float_lvar 12@ *= 7@
mult_float_lvar_by_float_lvar 13@ *= 7@
12@ *= -1.0
13@ *= -1.0
add_timed_float_lvar_to_float_lvar 10@ +=@ 12@
add_timed_float_lvar_to_float_lvar 11@ +=@ 13@
mult_float_lvar_by_float_lvar 15@ *= 6@
mult_float_lvar_by_float_lvar 16@ *= 6@
add_timed_float_lvar_to_float_lvar 10@ +=@ 15@
add_timed_float_lvar_to_float_lvar 11@ +=@ 16@
4@ = get_distance_between_coords_2d 10@ {fromY} 11@ {toX} $crane_help1 {toZ} $crane_help2
if 
  4@ > 0.3
goto_if_false @CRANE2_1844
set_var_float_to_lvar_float $x = 10@
sub_float_var_from_float_var $x -= $crane_help1
set_var_float_to_lvar_float $y = 11@
sub_float_var_from_float_var $y -= $crane_help2
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
$x *= 0.3
$y *= 0.3
set_lvar_float_to_var_float 10@ = $crane_help1
add_float_var_to_float_lvar 10@ += $x
set_lvar_float_to_var_float 11@ = $crane_help2
add_float_var_to_float_lvar 11@ += $y

:CRANE2_1844
$z = 0.0
set_var_float_to_lvar_float $y = 11@
set_var_float_to_var_float $x = $y
$x -= 1671.5
set_lvar_float_to_lvar_float 8@ = 10@
set_lvar_float_to_lvar_float 9@ = 8@
9@ += 1671.5
add_float_lvar_to_float_var $x += 8@
add_float_lvar_to_float_var $y += 9@
$x /= 2.0
$y /= 2.0
if 
  -1648.057 > $x
goto_if_false @CRANE2_2114
4@ = get_distance_between_coords_2d -1648.057 {fromY} 23.852 {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2107
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1648.057
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 23.852
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
10@ = -1648.057
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 23.852
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2107
goto @CRANE2_2418

:CRANE2_2114
if 
  $x > -1532.7419
goto_if_false @CRANE2_2286
4@ = get_distance_between_coords_2d -1532.7419 {fromY} 138.719 {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2279
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1532.7419
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 138.719
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
10@ = -1532.7419
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 138.719
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2279
goto @CRANE2_2418

:CRANE2_2286
4@ = get_distance_between_coords_2d $x {fromY} $y {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2418
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $y
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
set_lvar_float_to_var_float 10@ = $x
add_float_lvar_to_float_lvar 10@ += 12@
set_lvar_float_to_var_float 11@ = $y
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2418
18@ = get_distance_between_coords_2d $x {fromY} $y {toX} 10@ {toZ} 11@
set_lvar_float_to_var_float 4@ = $cam_pos_z
mult_float_lvar_by_float_var 4@ *= $cam_pos_z
set_lvar_float_to_lvar_float 5@ = 18@
mult_float_lvar_by_float_lvar 5@ *= 18@
set_lvar_float_to_lvar_float 19@ = 4@
sub_float_lvar_from_float_lvar 19@ -= 5@
set_lvar_float_to_lvar_float 20@ = 19@
20@ /= 2.0
20@ = sqrt 20@
set_lvar_float_to_var_float 21@ = $x
sub_float_lvar_from_float_lvar 21@ -= 20@
set_lvar_float_to_var_float 22@ = $y
sub_float_lvar_from_float_lvar 22@ -= 20@
set_lvar_float_to_var_float 23@ = $x
add_float_lvar_to_float_lvar 23@ += 20@
set_lvar_float_to_var_float 24@ = $y
add_float_lvar_to_float_lvar 24@ += 20@
26@ = 0
if and
  -1532.7419 > 21@
  21@ > -1648.057
goto_if_false @CRANE2_2618
26@ += 1

:CRANE2_2618
if and
  -1532.7419 > 23@
  23@ > -1648.057
goto_if_false @CRANE2_2656
26@ += 2

:CRANE2_2656
if 
  26@ <> 0
goto_if_false @CRANE2_2879
if 
  26@ == 1
goto_if_false @CRANE2_2692

:CRANE2_2692
if 
  26@ == 2
goto_if_false @CRANE2_2726
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2726
if 
  26@ == 3
goto_if_false @CRANE2_2829
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_2829
4@ = get_distance_between_coords_2d $magno_arm_LOD {fromY} $magno_base_x {toX} 21@ {toZ} 22@
5@ = get_distance_between_coords_2d $magno_arm_LOD {fromY} $magno_base_x {toX} 23@ {toZ} 24@
if 
  is_float_lvar_greater_than_float_lvar 4@ > 5@
goto_if_false @CRANE2_2829
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2829
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_lvar_from_float_lvar 12@ -= 21@
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_lvar_from_float_lvar 13@ -= 22@
25@ = get_heading_from_vector_2d 12@ {y} 13@
goto @CRANE2_2938

:CRANE2_2879
set_lvar_float_to_var_float 21@ = $magno_arm_LOD
set_lvar_float_to_var_float 22@ = $magno_base_x
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $magno_arm_LOD
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $magno_base_x
25@ = get_heading_from_vector_2d 12@ {y} 13@

:CRANE2_2938
goto @CRANE2_3244

:CRANE2_2945
if 
  $cam_look_z <> 0
goto_if_false @CRANE2_2994
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_2987
report_mission_audio_event_at_object $magno_base {soundId} ScriptSound.SoundCraneMoveStop

:CRANE2_2987
$cam_look_z = 0

:CRANE2_2994
if 
  28@ <> 0
goto_if_false @CRANE2_3244
if 
  28@ == 1
goto_if_false @CRANE2_3105
set_var_float_to_var_float $x = $disable_all_cranes
set_var_float_to_var_float $y = $do_not_update_camera_crane1
set_lvar_float_to_var_float 12@ = $x
sub_float_var_from_float_lvar 12@ -= $magno_arm_LOD
set_lvar_float_to_var_float 13@ = $y
sub_float_var_from_float_lvar 13@ -= $magno_base_x
25@ = get_heading_from_vector_2d 12@ {y} 13@
set_lvar_float_to_var_float 12@ = $cam_look_x
set_lvar_float_to_var_float 13@ = $cam_look_y

:CRANE2_3105
if 
  $new_cam_look_x > 0.0
goto_if_false @CRANE2_3244
$new_cam_look_y = -0.007
add_timed_float_var_to_float_var $new_cam_look_x +=@ $new_cam_look_y
if 
  0.0 > $new_cam_look_x
goto_if_false @CRANE2_3189
$new_cam_look_x = 0.0
28@ = 0
goto @CRANE2_3196

:CRANE2_3189
28@ = 2

:CRANE2_3196
set_var_float_to_var_float $x = $new_cam_look_x
mult_float_var_by_float_lvar $x *= 12@
set_var_float_to_var_float $y = $new_cam_look_x
mult_float_var_by_float_lvar $y *= 13@
add_float_var_to_float_var $magno_arm_LOD += $x
add_float_var_to_float_var $magno_base_x += $y

:CRANE2_3244
if 
  28@ == 1
goto_if_false @CRANE2_3528
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_3528
4@ = get_distance_between_coords_2d $magno_arm_LOD {fromY} $magno_base_x {toX} 21@ {toZ} 22@
if 
  4@ > 0.01
goto_if_false @CRANE2_3364
set_var_float_to_lvar_float $cam_look_x = 21@
sub_float_var_from_float_var $cam_look_x -= $magno_arm_LOD
set_var_float_to_lvar_float $cam_look_y = 22@
sub_float_var_from_float_var $cam_look_y -= $magno_base_x
div_float_var_by_float_lvar $cam_look_x /= 4@
div_float_var_by_float_lvar $cam_look_y /= 4@

:CRANE2_3364
if 
  4@ > 0.01
goto_if_false @CRANE2_3528
$new_cam_look_y = 0.003
add_timed_float_var_to_float_var $new_cam_look_x +=@ $new_cam_look_y
if 
  is_float_var_greater_than_float_var $new_cam_look_x > $new_cam_look_z
goto_if_false @CRANE2_3430
set_var_float_to_var_float $new_cam_look_x = $new_cam_look_z

:CRANE2_3430
set_lvar_float_to_var_float 12@ = $cam_look_x
set_lvar_float_to_var_float 13@ = $cam_look_y
if 
  is_float_lvar_greater_than_float_var 4@ > $new_cam_look_x
goto_if_false @CRANE2_3488
mult_float_lvar_by_float_var 12@ *= $new_cam_look_x
mult_float_lvar_by_float_var 13@ *= $new_cam_look_x
goto @CRANE2_3512

:CRANE2_3488
mult_float_lvar_by_float_lvar 12@ *= 4@
mult_float_lvar_by_float_lvar 13@ *= 4@
set_var_float_to_lvar_float $new_cam_look_x = 4@

:CRANE2_3512
add_float_lvar_to_float_var $magno_arm_LOD += 12@
add_float_lvar_to_float_var $magno_base_x += 13@

:CRANE2_3528
if 
  28@ == 1
goto_if_false @CRANE2_3886
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_3886
if 
  25@ > 180.0
goto_if_false @CRANE2_3593
25@ += -360.0

:CRANE2_3593
if 
  -180.0 > 25@
goto_if_false @CRANE2_3624
25@ += 360.0

:CRANE2_3624
set_var_float_to_var_float $heading = $magno_cabin_h
if 
  $heading > 180.0
goto_if_false @CRANE2_3663
$heading += -360.0

:CRANE2_3663
if 
  -180.0 > $heading
goto_if_false @CRANE2_3694
$heading += 360.0

:CRANE2_3694
set_lvar_float_to_lvar_float 4@ = 25@
sub_float_var_from_float_lvar 4@ -= $heading
if 
  4@ > 180.0
goto_if_false @CRANE2_3741
4@ += -360.0

:CRANE2_3741
if 
  -180.0 > 4@
goto_if_false @CRANE2_3772
4@ += 360.0

:CRANE2_3772
if 
  4@ >= 0.0
goto_if_false @CRANE2_3831
if 
  4@ > 0.2
goto_if_false @CRANE2_3824
4@ = 0.2

:CRANE2_3824
goto @CRANE2_3862

:CRANE2_3831
if 
  -0.2 > 4@
goto_if_false @CRANE2_3862
4@ = -0.2

:CRANE2_3862
add_timed_float_lvar_to_float_var $heading +=@ 4@
set_var_float_to_var_float $magno_base_z = $heading
set_var_float_to_var_float $magno_cabin_h = $heading

:CRANE2_3886
if 
  $disable_crane_exit == 0
goto_if_false @CRANE2_3928
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE2_3928
0@ += 1

:CRANE2_3928
if and
  -1532.7419 > $magno_arm_LOD
  $magno_arm_LOD > -1648.057
goto_if_false @CRANE2_3996
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_3989
set_object_coordinates_and_velocity $sf_crane1_arm_LOD {x} $magno_arm_LOD {y} $magno_base_x {z} $magno_base_y

:CRANE2_3989
goto @CRANE2_4026

:CRANE2_3996
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_4026
$magno_arm_LOD, $magno_base_x, $magno_base_y = get_object_coordinates $sf_crane1_arm_LOD

:CRANE2_4026
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_4102
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_4102
$x, $y, $z = get_object_coordinates $sf_crane1_arm_LOD
$heading = get_object_heading $sf_crane1_arm_LOD
set_object_coordinates $magno_arm {x} $x {y} $y {z} $z
set_object_heading $magno_arm {heading} $heading

:CRANE2_4102
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_4253
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4193
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
set_object_heading $magno_base {heading} $magno_base_z
set_object_coordinates_and_velocity $magno_base {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} $magno_base_z

:CRANE2_4193
if 
  does_object_exist $magno_base_LOD
goto_if_false @CRANE2_4253
$x, $y, $z = get_object_coordinates $magno_base
$heading = get_object_heading $magno_base
set_object_coordinates $magno_base_LOD {x} $x {y} $y {z} $z
set_object_heading $magno_base_LOD {heading} $heading

:CRANE2_4253
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_4428
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4352
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$magno_cabin_h = get_object_heading $magno_base
set_object_coordinates_and_velocity $magno_cabin {x} $x {y} $y {z} $z
set_object_rotation $magno_cabin {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h

:CRANE2_4352
if 
  does_object_exist $magno_cabin_LOD
goto_if_false @CRANE2_4428
$x, $y, $z = get_object_coordinates $magno_cabin
$heading = get_object_heading $magno_cabin
set_object_coordinates $magno_cabin_LOD {x} $x {y} $y {z} $z
set_object_heading $magno_cabin_LOD {heading} $heading
set_object_rotation $magno_cabin_LOD {x} $magno_arm_h {y} 0.0 {z} $magno_cabin_h

:CRANE2_4428
if or
  0@ == 4
  $remove_player_from_crane == 1
goto_if_false @CRANE2_4650
if 
  is_player_playing $player1
goto_if_false @CRANE2_4650
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4507
report_mission_audio_event_at_object $magno_base {soundId} ScriptSound.SoundCraneExit

:CRANE2_4507
clear_help 
player_left_crane 
set_minigame_in_progress False
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} 2.0 {yOffset} -4.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
clear_char_tasks_immediately $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
$player_is_in_crane = 0
$remove_player_from_crane = 0
0@ = 0

:CRANE2_4650
goto @CRANE2_4682

:CRANE2_4657
if 
  0@ <> 0
goto_if_false @CRANE2_4682
0@ = 0

:CRANE2_4682
goto @CRANE2_4691

:CRANE2_4689
terminate_this_script 

:CRANE2_4691
goto @CRANE2_4707

:CRANE2_4698
0@ = 0
terminate_this_script 

:CRANE2_4707
goto @CRANE2_150

:CRANE2_4714
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @CRANE2_4803
if 
  29@ == 0
goto_if_false @CRANE2_4796
27@ += 1
if 
  27@ > 2
goto_if_false @CRANE2_4781
27@ = 0

:CRANE2_4781
set_var_int_to_lvar_int $magno_camera_type = 27@
29@ += 1

:CRANE2_4796
goto @CRANE2_4828

:CRANE2_4803
if 
  29@ <> 0
goto_if_false @CRANE2_4828
29@ = 0

:CRANE2_4828
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_4879
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_4879
set_lvar_int_to_var_int 27@ = $magno_camera_type
$reset_crane_camera = 0

:CRANE2_4879
if 
  not is_int_var_equal_to_int_lvar $magno_camera_type == 27@
goto_if_false @CRANE2_4906
set_var_int_to_lvar_int $magno_camera_type = 27@

:CRANE2_4906
if 
  27@ == 0
goto_if_false @CRANE2_4976
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4969
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = get_offset_from_object_in_world_coords $magno_base {xOffset} 6.1 {yOffset} 15.0 {zOffset} 5.1

:CRANE2_4969
goto @CRANE2_5091

:CRANE2_4976
if 
  27@ == 1
goto_if_false @CRANE2_5046
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @CRANE2_5039
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = get_offset_from_object_in_world_coords $sf_crane1_arm_LOD {xOffset} -4.0 {yOffset} 17.3 {zOffset} 35.0

:CRANE2_5039
goto @CRANE2_5091

:CRANE2_5046
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_5091
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = get_offset_from_object_in_world_coords $magno_base {xOffset} 3.0 {yOffset} 45.0 {zOffset} 0.0

:CRANE2_5091
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_5728
$crane_help1, $crane_help2, $crane_help3 = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 0.0 {yOffset} $cam_pos_z {zOffset} -3.0
4@ = get_rope_height_for_object $magno_cabin
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $crane_help3 -= 4@
set_var_float_to_var_float $x = $crane_help1
sub_float_var_from_float_var $x -= $magno_arm_LOD
set_var_float_to_var_float $y = $crane_help2
sub_float_var_from_float_var $y -= $magno_base_x
4@ = get_distance_between_coords_2d $crane_help1 {fromY} $crane_help2 {toX} $magno_arm_LOD {toZ} $magno_base_x
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $cam_pos_z
mult_float_var_by_float_var $y *= $cam_pos_z
set_var_float_to_var_float $crane_help1 = $magno_arm_LOD
add_float_var_to_float_var $crane_help1 += $x
set_var_float_to_var_float $crane_help2 = $magno_base_x
add_float_var_to_float_var $crane_help2 += $y
4@ = get_distance_between_coords_3d $crane_help1 {fromY} $crane_help2 {fromZ} $crane_help3 {toX} $disable_all_cranes {toY} $do_not_update_camera_crane1 {toZ} $crane1_cam_mode
if 
  4@ > 0.3
goto_if_false @CRANE2_5439
set_var_float_to_var_float $crane_rope_length = $crane_help1
sub_float_var_from_float_var $crane_rope_length -= $disable_all_cranes
set_var_float_to_var_float $cam_pos_x = $crane_help2
sub_float_var_from_float_var $cam_pos_x -= $do_not_update_camera_crane1
set_var_float_to_var_float $cam_pos_y = $crane_help3
sub_float_var_from_float_var $cam_pos_y -= $crane1_cam_mode
$crane_rope_length *= 0.05
$cam_pos_x *= 0.05
$cam_pos_y *= 0.05
add_float_var_to_float_var $disable_all_cranes += $crane_rope_length
add_float_var_to_float_var $do_not_update_camera_crane1 += $cam_pos_x
add_float_var_to_float_var $crane1_cam_mode += $cam_pos_y

:CRANE2_5439
$x, $y, $z = get_active_camera_coordinates 
if 
  $disable_crane == 0
goto_if_false @CRANE2_5594
set_lvar_float_to_var_float 12@ = $cammy_off_X
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_var_float 13@ = $cammy_off_Y
sub_float_var_from_float_lvar 13@ -= $y
set_lvar_float_to_var_float 14@ = $cammy_off_Z
sub_float_var_from_float_lvar 14@ -= $z
12@ *= 0.2
13@ *= 0.2
14@ *= 0.2
set_var_float_to_var_float $cammy_off_X = $x
add_float_lvar_to_float_var $cammy_off_X += 12@
set_var_float_to_var_float $cammy_off_Y = $y
add_float_lvar_to_float_var $cammy_off_Y += 13@
set_var_float_to_var_float $cammy_off_Z = $z
add_float_lvar_to_float_var $cammy_off_Z += 14@

:CRANE2_5594
set_fixed_camera_position $cammy_off_X {y} $cammy_off_Y {z} $cammy_off_Z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $disable_all_cranes {y} $do_not_update_camera_crane1 {z} $crane1_cam_mode {switchStyle} SwitchType.JumpCut
set_var_float_to_var_float $crane_rope_length = $disable_all_cranes
sub_float_var_from_float_var $crane_rope_length -= $cammy_off_X
set_var_float_to_var_float $cam_pos_x = $do_not_update_camera_crane1
sub_float_var_from_float_var $cam_pos_x -= $cammy_off_Y
set_var_float_to_var_float $cam_pos_y = $crane1_cam_mode
sub_float_var_from_float_var $cam_pos_y -= $cammy_off_Z
4@ = get_distance_between_coords_3d $cammy_off_X {fromY} $cammy_off_Y {fromZ} $cammy_off_Z {toX} $disable_all_cranes {toY} $do_not_update_camera_crane1 {toZ} $crane1_cam_mode
div_float_var_by_float_lvar $crane_rope_length /= 4@
div_float_var_by_float_lvar $cam_pos_x /= 4@
div_float_var_by_float_lvar $cam_pos_y /= 4@

:CRANE2_5728
return 
terminate_this_script 

//-------------External script 69 (CRANE3)---------------

:CRANE3
script_name 'CRANE3'
3@ = 0
if 
  3@ == 1
goto_if_false @CRANE3_124
0@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE3_124
$car_name_mod_garage = 0

:CRANE3_131
wait 0
if 
  does_object_exist 0@
goto_if_false @CRANE3_1554
if 
  is_player_playing $player1
goto_if_false @CRANE3_1547
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE3_1547
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE3_1538
if 
  3@ == 0
goto_if_false @CRANE3_270
5@, 6@, 7@ = get_offset_from_object_in_world_coords 0@ {xOffset} 3.0899 {yOffset} 2.9792 {zOffset} 0.0081
3@ += 1

:CRANE3_270
if 
  3@ == 1
goto_if_false @CRANE3_440
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE3_413
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE3_406
if 
  $car_name_mod_garage == 0
goto_if_false @CRANE3_382
print_help_forever 'CR_2'
$car_name_mod_garage = 1

:CRANE3_382
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE3_406
3@ += 1

:CRANE3_406
goto @CRANE3_440

:CRANE3_413
if 
  $car_name_mod_garage <> 0
goto_if_false @CRANE3_440
clear_help 
$car_name_mod_garage = 0

:CRANE3_440
if 
  3@ == 2
goto_if_false @CRANE3_719
if 
  does_object_exist 0@
goto_if_false @CRANE3_482
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneEnter

:CRANE3_482
set_player_control $player1 {state} False
set_minigame_in_progress True
do_fade 500 {direction} Fade.Out

:CRANE3_500
if 
  get_fading_status 
goto_if_false @CRANE3_524
wait 0
goto @CRANE3_500

:CRANE3_524
player_entered_quarry_crane 
display_non_minigame_help_messages True
4@ = get_object_heading 1@
if 
  does_object_exist 0@
goto_if_false @CRANE3_570
if 
  is_player_playing $player1
goto_if_false @CRANE3_570

:CRANE3_570
if 
  is_player_playing $player1
goto_if_false @CRANE3_656
freeze_char_position $scplayer {state} True
set_char_coordinates $scplayer {x} 713.5652 {y} 906.2935 {z} -18.0674
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
15@ = 0

:CRANE3_656
print_help_forever 'QUAR_1'
gosub @CRANE3_1570
set_everyone_ignore_player $player1 {state} False
do_fade 500 {direction} Fade.In

:CRANE3_688
if 
  get_fading_status 
goto_if_false @CRANE3_712
wait 0
goto @CRANE3_688

:CRANE3_712
3@ += 1

:CRANE3_719
if 
  3@ == 3
goto_if_false @CRANE3_1383
if 
  is_player_playing $player1
goto_if_false @CRANE3_1383
gosub @CRANE3_1570
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
goto_if_false @CRANE3_875
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 8@ =# $LStickX
8@ /= 500.0
sub_timed_float_lvar_from_float_lvar 4@ -=@ 8@
if 
  15@ <> 1
goto_if_false @CRANE3_868
if 
  does_object_exist 0@
goto_if_false @CRANE3_868
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneMoveStart
15@ = 1

:CRANE3_868
goto @CRANE3_924

:CRANE3_875
if 
  15@ <> 0
goto_if_false @CRANE3_924
if 
  does_object_exist 0@
goto_if_false @CRANE3_924
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneMoveStop
15@ = 0

:CRANE3_924
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE3_1187
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 8@ =# $LStickY
8@ /= 1000.0
8@ *= 1.5
sub_timed_float_lvar_from_float_var $magno_arm_rotate_y -=@ 8@

:CRANE3_993
if 
  0.0 > $magno_arm_rotate_y
goto_if_false @CRANE3_1031
$magno_arm_rotate_y += 360.0
goto @CRANE3_993

:CRANE3_1031
if 
  $magno_arm_rotate_y > 360.0
goto_if_false @CRANE3_1069
$magno_arm_rotate_y += -360.0
goto @CRANE3_1031

:CRANE3_1069
if 
  $magno_arm_rotate_y > 70.0
goto_if_false @CRANE3_1100
$magno_arm_rotate_y = 70.0

:CRANE3_1100
if 
  10.0 > $magno_arm_rotate_y
goto_if_false @CRANE3_1131
$magno_arm_rotate_y = 10.0

:CRANE3_1131
if 
  16@ <> 1
goto_if_false @CRANE3_1180
if 
  does_object_exist 0@
goto_if_false @CRANE3_1180
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStart
16@ = 1

:CRANE3_1180
goto @CRANE3_1236

:CRANE3_1187
if 
  16@ <> 0
goto_if_false @CRANE3_1236
if 
  does_object_exist 0@
goto_if_false @CRANE3_1236
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStop
16@ = 0

:CRANE3_1236
if 
  does_object_exist 1@
goto_if_false @CRANE3_1268
set_object_heading 1@ {heading} 4@
set_char_heading $scplayer {heading} 4@

:CRANE3_1268
if 
  does_object_exist 2@
goto_if_false @CRANE3_1359
if 
  does_object_exist 1@
goto_if_false @CRANE3_1359
$x, $y, $z = get_offset_from_object_in_world_coords 1@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0206
set_object_coordinates_and_velocity 2@ {x} $x {y} $y {z} $z
set_object_rotation 2@ {x} 0.0 {y} $magno_arm_rotate_y {z} 4@

:CRANE3_1359
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE3_1383
3@ += 1

:CRANE3_1383
if 
  3@ == 4
goto_if_false @CRANE3_1531
if 
  is_player_playing $player1
goto_if_false @CRANE3_1531
clear_help 
if 
  does_object_exist 0@
goto_if_false @CRANE3_1443
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneExit

:CRANE3_1443
player_left_crane 
set_minigame_in_progress False
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
set_char_coordinates $scplayer {x} 706.2595 {y} 918.6275 {z} -19.6407
set_char_heading $scplayer {heading} 127.184
restore_camera_jumpcut 
3@ = 0

:CRANE3_1531
goto @CRANE3_1547

:CRANE3_1538
3@ = 0
terminate_this_script 

:CRANE3_1547
goto @CRANE3_1563

:CRANE3_1554
3@ = 0
terminate_this_script 

:CRANE3_1563
goto @CRANE3_131

:CRANE3_1570
if 
  does_object_exist 1@
goto_if_false @CRANE3_1615
9@, 10@, 11@ = get_offset_from_object_in_world_coords 1@ {xOffset} -9.0 {yOffset} -6.8 {zOffset} 6.0

:CRANE3_1615
if 
  does_object_exist 2@
goto_if_false @CRANE3_1730
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 59.0
8@ = get_rope_height_for_object 2@
8@ += -1.0
8@ *= -1.0
8@ *= 72.0
sub_float_lvar_from_float_var $z -= 8@
set_lvar_float_to_var_float 12@ = $x
set_lvar_float_to_var_float 13@ = $y
set_lvar_float_to_var_float 14@ = $z

:CRANE3_1730
set_fixed_camera_position 9@ {y} 10@ {z} 11@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 12@ {y} 13@ {z} 14@ {switchStyle} SwitchType.JumpCut
return 
terminate_this_script 

//-------------External script 70 (CARPARK1)---------------

:CARPRK1
script_name 'CARPRK1'
set_deatharrest_state 0
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
9@ = 0

:CARPRK1_85
wait 0
if 
  is_player_playing $player1
goto_if_false @CARPRK1_2769
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2037.568 {leftBottomY} 2366.1521 {leftBottomZ} 9.8203 {rightTopX} 2119.283 {rightTopY} 2472.418 {rightTopZ} 14.1172 {drawSphere} False
goto_if_false @CARPRK1_251
if 
  0@ == 0
goto_if_false @CARPRK1_244
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 9.8203 {heading} 89.6383
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 9.8203 {heading} 90.4575
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 9.8203 {heading} 270.7819
0@ = 1

:CARPRK1_244
goto @CARPRK1_308

:CARPRK1_251
if 
  0@ == 1
goto_if_false @CARPRK1_308
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 9.8203 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 14.1172
0@ = 0

:CARPRK1_308
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 13.1172 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 18.4219 {drawSphere} False
goto_if_false @CARPRK1_520
if 
  1@ == 0
goto_if_false @CARPRK1_513
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 14.1172 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 14.1172 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 14.1172 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 14.1172 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 14.1172 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 14.1172 {heading} 98.3338
1@ = 1

:CARPRK1_513
goto @CARPRK1_577

:CARPRK1_520
if 
  1@ == 1
goto_if_false @CARPRK1_577
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 14.1172 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 18.4219
1@ = 0

:CARPRK1_577
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 17.4219 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 22.7188 {drawSphere} False
goto_if_false @CARPRK1_789
if 
  2@ == 0
goto_if_false @CARPRK1_782
create_random_car_for_car_park 2104.5171 {y} 2405.886 {z} 18.4219 {heading} 92.3912
create_random_car_for_car_park 2095.688 {y} 2396.1951 {z} 18.4219 {heading} 270.3566
create_random_car_for_car_park 2087.0 {y} 2416.4419 {z} 18.4219 {heading} 89.9821
create_random_car_for_car_park 2086.925 {y} 2402.896 {z} 18.4219 {heading} 270.2662
create_random_car_for_car_park 2069.071 {y} 2409.6509 {z} 18.4219 {heading} 89.1894
create_random_car_for_car_park 2078.146 {y} 2416.5 {z} 18.4219 {heading} 270.7297
2@ = 1

:CARPRK1_782
goto @CARPRK1_846

:CARPRK1_789
if 
  2@ == 1
goto_if_false @CARPRK1_846
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 18.4219 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 22.7188
2@ = 0

:CARPRK1_846
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 21.7188 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 27.0234 {drawSphere} False
goto_if_false @CARPRK1_1058
if 
  3@ == 0
goto_if_false @CARPRK1_1051
create_random_car_for_car_park 2104.499 {y} 2411.8521 {z} 22.7188 {heading} 90.7897
create_random_car_for_car_park 2104.4829 {y} 2407.6179 {z} 22.7188 {heading} 91.9516
create_random_car_for_car_park 2087.2419 {y} 2400.854 {z} 22.7188 {heading} 269.9636
create_random_car_for_car_park 2078.313 {y} 2412.0769 {z} 22.7188 {heading} 267.6149
create_random_car_for_car_park 2069.1379 {y} 2396.251 {z} 22.7188 {heading} 92.2442
create_random_car_for_car_park 2078.179 {y} 2392.021 {z} 22.7188 {heading} 87.7661
3@ = 1

:CARPRK1_1051
goto @CARPRK1_1115

:CARPRK1_1058
if 
  3@ == 1
goto_if_false @CARPRK1_1115
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 22.7188 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 27.0234
3@ = 0

:CARPRK1_1115
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 24.7815 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 31.3203 {drawSphere} False
goto_if_false @CARPRK1_1327
if 
  4@ == 0
goto_if_false @CARPRK1_1320
create_random_car_for_car_park 2069.6609 {y} 2416.4221 {z} 27.0234 {heading} 268.612
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 27.0234 {heading} 89.6383
create_random_car_for_car_park 2087.1951 {y} 2394.364 {z} 27.0234 {heading} 271.5008
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 27.0234 {heading} 90.4575
create_random_car_for_car_park 2095.8181 {y} 2398.686 {z} 27.0234 {heading} 268.2181
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 27.0234 {heading} 270.7819
4@ = 1

:CARPRK1_1320
goto @CARPRK1_1384

:CARPRK1_1327
if 
  4@ == 1
goto_if_false @CARPRK1_1384
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 27.0234 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 31.3203
4@ = 0

:CARPRK1_1384
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 30.3203 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 35.6172 {drawSphere} False
goto_if_false @CARPRK1_1596
if 
  5@ == 0
goto_if_false @CARPRK1_1589
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 31.3203 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 31.3203 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 31.3203 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 31.3203 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 31.3203 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 31.3203 {heading} 98.3338
5@ = 1

:CARPRK1_1589
goto @CARPRK1_1653

:CARPRK1_1596
if 
  5@ == 1
goto_if_false @CARPRK1_1653
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 31.3203 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 35.6172
5@ = 0

:CARPRK1_1653
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 34.6172 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 39.9219 {drawSphere} False
goto_if_false @CARPRK1_1865
if 
  6@ == 0
goto_if_false @CARPRK1_1858
create_random_car_for_car_park 2104.5171 {y} 2405.886 {z} 35.6172 {heading} 92.3912
create_random_car_for_car_park 2095.688 {y} 2396.1951 {z} 35.6172 {heading} 270.3566
create_random_car_for_car_park 2087.0 {y} 2416.4419 {z} 35.6172 {heading} 89.9821
create_random_car_for_car_park 2086.925 {y} 2402.896 {z} 35.6172 {heading} 270.2662
create_random_car_for_car_park 2069.071 {y} 2409.6509 {z} 35.6172 {heading} 89.1894
create_random_car_for_car_park 2078.146 {y} 2416.5 {z} 35.6172 {heading} 270.7297
6@ = 1

:CARPRK1_1858
goto @CARPRK1_1922

:CARPRK1_1865
if 
  6@ == 1
goto_if_false @CARPRK1_1922
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 35.6172 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 39.9219
6@ = 0

:CARPRK1_1922
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 38.9219 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 44.2188 {drawSphere} False
goto_if_false @CARPRK1_2134
if 
  7@ == 0
goto_if_false @CARPRK1_2127
create_random_car_for_car_park 2104.499 {y} 2411.8521 {z} 39.9219 {heading} 90.7897
create_random_car_for_car_park 2104.4829 {y} 2407.6179 {z} 39.9219 {heading} 91.9516
create_random_car_for_car_park 2087.2419 {y} 2400.854 {z} 39.9219 {heading} 269.9636
create_random_car_for_car_park 2078.313 {y} 2412.0769 {z} 39.9219 {heading} 267.6149
create_random_car_for_car_park 2069.1379 {y} 2396.251 {z} 39.9219 {heading} 92.2442
create_random_car_for_car_park 2078.179 {y} 2392.021 {z} 39.9219 {heading} 87.7661
7@ = 1

:CARPRK1_2127
goto @CARPRK1_2191

:CARPRK1_2134
if 
  7@ == 1
goto_if_false @CARPRK1_2191
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 39.9219 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 44.2188
7@ = 0

:CARPRK1_2191
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 43.2188 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 48.5234 {drawSphere} False
goto_if_false @CARPRK1_2403
if 
  8@ == 0
goto_if_false @CARPRK1_2396
create_random_car_for_car_park 2069.6609 {y} 2416.4221 {z} 44.2188 {heading} 268.612
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 44.2188 {heading} 89.6383
create_random_car_for_car_park 2087.1951 {y} 2394.364 {z} 44.2188 {heading} 271.5008
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 44.2188 {heading} 90.4575
create_random_car_for_car_park 2095.8181 {y} 2398.686 {z} 44.2188 {heading} 268.2181
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 44.2188 {heading} 270.7819
8@ = 1

:CARPRK1_2396
goto @CARPRK1_2460

:CARPRK1_2403
if 
  8@ == 1
goto_if_false @CARPRK1_2460
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 44.2188 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 48.5234
8@ = 0

:CARPRK1_2460
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 44.5234 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 55.9123 {drawSphere} False
goto_if_false @CARPRK1_2672
if 
  9@ == 0
goto_if_false @CARPRK1_2665
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 48.5234 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 48.5234 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 48.5234 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 48.5234 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 48.5234 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 48.5234 {heading} 98.3338
9@ = 1

:CARPRK1_2665
goto @CARPRK1_2729

:CARPRK1_2672
if 
  9@ == 1
goto_if_false @CARPRK1_2729
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 48.5234 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 52.9123
9@ = 0

:CARPRK1_2729
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 2037.536 {leftBottomY} 2365.373 {rightTopX} 2119.8999 {rightTopY} 2483.9221 {drawSphere} False
goto_if_false @CARPRK1_2769
terminate_this_script 

:CARPRK1_2769
goto @CARPRK1_85
terminate_this_script 

//-------------External script 71 (IMPOUND)---------------

:IMPND
script_name 'IMPND'
$10539[0] = 0
$10539[1] = 0
$10539[2] = 0
$10539[3] = 0
$10539[4] = 0
$10539[5] = 0
$10539[6] = 0
$10539[7] = 0
$player_is_threat = 1540.632
$10553 = -1603.163
$activate_doors = 17.6564
$10561 = 1607.27
$10565 = -1637.528
$10569 = 12.774
$10573 = 1613.319
$10577 = -1633.6121
$10581 = 12.077
$10585 = 1522.73
$10589 = -1721.3979
$10593 = 4.2191
$10550 = -1572.807
$10554 = 646.8937
$cop_territory_xa1 = 10.5019
$cop_territory_ya1 = -1641.4091
$cop_territory_za1 = 687.6273
$cop_territory_xb1 = 4.8704
$cop_territory_yb1 = -1700.933
$cop_territory_zb1 = 680.025
$cop_territory_xa2 = 27.7313
$cop_territory_ya2 = -1638.9821
$cop_territory_za2 = 699.3646
$cop_territory_xb2 = 5.0489
$10551 = 2238.01
$10555 = 2430.8911
$10559 = 11.764
$10563 = 2304.2891
$10567 = 2502.322
$10571 = -9.0538
$10575 = 2238.01
$10579 = 2430.8911
$10583 = 11.764
$10587 = 2304.2891
$10591 = 2502.322
$10595 = -9.0538
$10596[1] = 1544.691
$10600[1] = -1630.75
$10604[1] = 13.043
$10608[1] = 0.0
$10612[1] = 0.0
$10616[1] = 0.0
$10620[1] = 0.0
$10624[1] = 0.0
$10596[2] = -1572.203
$10600[2] = 658.7618
$10604[2] = 6.8916
$10608[2] = 0.0
$10612[2] = -1701.4301
$10616[2] = 687.7184
$10620[2] = 24.6525
$10624[2] = 180.0
$10596[3] = 2238.199
$10600[3] = 2450.3391
$10604[3] = 10.5829
$10608[3] = 0.0
$10612[3] = 0.0
$10616[3] = 0.0
$10620[3] = 0.0
$10624[3] = 0.0
$10628[1] = 1588.5031
$10632[1] = -1637.8719
$10636[1] = 14.5641
$10640[1] = 0.0
$10644[1] = 0.0
$10648[1] = 0.0
$10652[1] = 0.0
$10656[1] = 0.0
$10628[2] = -1631.767
$10632[2] = 688.4075
$10636[2] = 8.5436
$10640[2] = 90.0
$10644[2] = 0.0
$10648[2] = 0.0
$10652[2] = 0.0
$10656[2] = 0.0
$10628[3] = 2293.8301
$10632[3] = 2498.804
$10636[3] = 4.4414
$10640[3] = 90.0
$10644[3] = 2335.178
$10648[3] = 2443.6211
$10652[3] = 6.9743
$10656[3] = 59.9993
$10720 = 0
$10721 = 0
$10722 = 0
$10723 = 0
if 
  8@ == 90
goto_if_false @IMPND_1039
9@ = create_object #POLICE_BARRIER {x} 0.0 {y} 0.0 {z} 0.0
6@ = create_object #KMB_SHUTTER {x} 0.0 {y} 0.0 {z} 0.0
24@ = create_random_char 0.0 {y} 0.0 {z} 0.0
19@ = create_random_char 0.0 {y} 0.0 {z} 0.0

:IMPND_1039
wait 0
if 
  is_player_playing $player1
goto_if_false @IMPND_4130
if 
  0@ == 0
goto_if_false @IMPND_2453
if 
  1@ == 0
goto_if_false @IMPND_1289
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_1144
request_model 280
request_model 346
request_model 596
set_var_int_to_constant $cop_h = 280
set_var_int_to_constant $10701 = 596

:IMPND_1144
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_1193
request_model 281
request_model 346
request_model 597
set_var_int_to_constant $cop_h = 281
set_var_int_to_constant $10701 = 597

:IMPND_1193
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_1242
request_model 282
request_model 346
request_model 598
set_var_int_to_constant $cop_h = 282
set_var_int_to_constant $10701 = 598

:IMPND_1242
if 
  $onmission == 0
goto_if_false @IMPND_1282
22@ = 1
request_model #POLICE_BARRIER
request_model #SFCOPDR
request_model #KMB_SHUTTER

:IMPND_1282
1@ = 2

:IMPND_1289
if 
  1@ == 2
goto_if_false @IMPND_2453
if and
  has_model_loaded $cop_h
  has_model_loaded 346
  has_model_loaded $10701
goto_if_false @IMPND_2453
1@ = 0
if 
  $onmission <> 1
goto_if_false @IMPND_1358

:IMPND_1358
2@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 2@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
9@ = create_object_no_offset #POLICE_BARRIER {x} $10596($impound_area,4f) {y} $10600($impound_area,4f) {z} $10604($impound_area,4f)
set_object_rotation 9@ {x} -90.0 {y} 0.0 {z} $10608($impound_area,4f)
if 
  $10612($impound_area,4f) <> 0.0
goto_if_false @IMPND_1529
10@ = create_object_no_offset #POLICE_BARRIER {x} $10612($impound_area,4f) {y} $10616($impound_area,4f) {z} $10620($impound_area,4f)
set_object_rotation 10@ {x} -90.0 {y} 0.0 {z} $10624($impound_area,4f)

:IMPND_1529
if 
  $impound_area == 2
goto_if_false @IMPND_1562
11@ = -390
goto @IMPND_1570

:IMPND_1562
11@ = -389

:IMPND_1570
6@ = create_object_no_offset 11@ {x} $10628($impound_area,4f) {y} $10632($impound_area,4f) {z} $10636($impound_area,4f)
set_object_rotation 6@ {x} 0.0 {y} 0.0 {z} $10640($impound_area,4f)
if 
  $10644($impound_area,4f) <> 0.0
goto_if_false @IMPND_1697
7@ = create_object_no_offset 11@ {x} $10644($impound_area,4f) {y} $10648($impound_area,4f) {z} $10652($impound_area,4f)
set_object_rotation 7@ {x} 0.0 {y} 0.0 {z} $10656($impound_area,4f)

:IMPND_1697
if 
  $impound_area == 1
goto_if_false @IMPND_1885
$cam_vec_x[0] = create_char PedType.Mission1 {modelId} $cop_h {x} 1544.3831 {y} -1631.849 {z} 12.3905
set_char_heading $cam_vec_x[0] {heading} 45.0
$cam_vec_x[2] = create_char PedType.Mission1 {modelId} $cop_h {x} 1578.957 {y} -1634.127 {z} 12.5547
set_char_heading $cam_vec_x[2] {heading} 0.0
$10660 = 1544.3831
$cop_x = -1631.849
$cop_y = 12.3905
$cop_z = 45.0
$imp_shutter_z2 = 1544.3831
$10672 = 1578.957
$10682 = -1634.127
$10692 = 12.554
$blah = -90.0
$10726 = 0.0

:IMPND_1885
if 
  $impound_area == 2
goto_if_false @IMPND_2158
$cam_vec_x[1] = create_char PedType.Mission1 {modelId} $cop_h {x} -1700.839 {y} 688.9841 {z} 23.9032
set_char_heading $cam_vec_x[1] {heading} 134.0
$cam_vec_x[0] = create_char PedType.Mission1 {modelId} $cop_h {x} -1572.705 {y} 657.5745 {z} 6.2446
set_char_heading $cam_vec_x[0] {heading} 304.0
$cam_vec_x[2] = create_char PedType.Mission1 {modelId} $cop_h {x} -1616.822 {y} 679.9485 {z} 6.1901
set_char_heading $cam_vec_x[2] {heading} 188.0
$10660 = -1572.705
$cop_x = 657.5745
$cop_y = 6.2446
$cop_z = 304.0
$10661 = -1700.839
$10671 = 688.9841
$10681 = 23.9032
$10691 = 134.0
$imp_shutter_z2 = -1616.822
$10672 = 679.9485
$10682 = 6.1901
$10692 = 188.0
$blah = -90.0
$cop_car = -90.0
$10726 = 0.0

:IMPND_2158
if 
  $impound_area == 3
goto_if_false @IMPND_2326
$cam_vec_x[0] = create_char PedType.Mission1 {modelId} $cop_h {x} 2238.5691 {y} 2449.417 {z} 10.0372
set_char_heading $cam_vec_x[0] {heading} 90.0
$cam_vec_x[2] = create_char PedType.Mission1 {modelId} $cop_h {x} 2250.2771 {y} 2489.333 {z} 9.8203
set_char_heading $cam_vec_x[2] {heading} 90.0
$10660 = 2238.5691
$cop_x = 2449.417
$cop_y = 10.0372
$cop_z = 90.0
$imp_shutter_z2 = 2250.2771
$10672 = 2489.333
$10682 = 9.8203
$10692 = 90.0

:IMPND_2326
12@ = 0

:IMPND_2333
if 
  3 > 12@
goto_if_false @IMPND_2446
if 
  not is_char_dead $cam_vec_x(12@,8i)
goto_if_false @IMPND_2432
set_char_decision_maker $cam_vec_x(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $cam_vec_x(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $cam_vec_x(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
$10523(12@,8i) = 0
$crane2_sound_flag(12@,8i) = 5

:IMPND_2432
12@ += 1
goto @IMPND_2333

:IMPND_2446
0@ = 2

:IMPND_2453
if 
  0@ == 2
goto_if_false @IMPND_4123
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @IMPND_5559
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 4@
goto_if_false @IMPND_2583
set_lvar_int_to_lvar_int 4@ = TIMERA
4@ += 90
gosub @IMPND_21078
if 
  $10719 == 0
goto_if_false @IMPND_2583
if 
  $10703 == 1
goto_if_false @IMPND_2583
$10719 = 1
gosub @IMPND_4162

:IMPND_2583
if 
  $onmission == 1
goto_if_false @IMPND_2641
if 
  22@ == 1
goto_if_false @IMPND_2641
22@ = 0
mark_model_as_no_longer_needed #POLICE_BARRIER
mark_model_as_no_longer_needed #SFCOPDR
mark_model_as_no_longer_needed #KMB_SHUTTER

:IMPND_2641
if 
  20@ == 1
goto_if_false @IMPND_2760
clear_mission_audio MissionAudioSlot.Slot4
8@ = generate_random_int_in_range 0 {max} 4
if 
  8@ == 0
goto_if_false @IMPND_2699
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38012

:IMPND_2699
if 
  8@ == 1
goto_if_false @IMPND_2726
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38013

:IMPND_2726
if 
  8@ == 2
goto_if_false @IMPND_2753
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38014

:IMPND_2753
20@ = 2

:IMPND_2760
if 
  20@ == 2
goto_if_false @IMPND_2857
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @IMPND_2857
if 
  not is_char_dead 19@
goto_if_false @IMPND_2857
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} 19@
shut_char_up 19@ {state} True
disable_char_speech 19@ {stopNow} True
play_mission_audio MissionAudioSlot.Slot4
20@ = 3
set_lvar_int_to_lvar_int 21@ = TIMERA
21@ += 10000

:IMPND_2857
if 
  20@ == 3
goto_if_false @IMPND_2931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 21@
goto_if_false @IMPND_2931
20@ = 0
if 
  not is_char_dead 19@
goto_if_false @IMPND_2931
shut_char_up 19@ {state} False
disable_char_speech 19@ {stopNow} False

:IMPND_2931
if 
  20@ == 4
goto_if_false @IMPND_3050
clear_mission_audio MissionAudioSlot.Slot4
8@ = generate_random_int_in_range 0 {max} 4
if 
  8@ == 0
goto_if_false @IMPND_2989
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38008

:IMPND_2989
if 
  8@ == 1
goto_if_false @IMPND_3016
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38009

:IMPND_3016
if 
  8@ == 2
goto_if_false @IMPND_3043
load_mission_audio MissionAudioSlot.Slot4 {audioId} 38010

:IMPND_3043
20@ = 2

:IMPND_3050
if 
  20@ == 5
goto_if_false @IMPND_3088
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42800
20@ = 2

:IMPND_3088
if 
  $dock_crane_travel_vec_y == 1
goto_if_false @IMPND_3419
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @IMPND_3419
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @IMPND_3419
if 
  $impound_area == 1
goto_if_false @IMPND_3211
attach_mission_audio_to_object MissionAudioSlot.Slot4 {handle} 6@
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 1589.0601 {y} -1694.729 {z} 10.4887
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 1541.5129 {y} -1685.943 {z} 10.1571
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3211
if 
  $impound_area == 2
goto_if_false @IMPND_3309
attach_mission_audio_to_object MissionAudioSlot.Slot4 {handle} 6@
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1619.873 {y} 742.786 {z} -2.1389
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1594.0959 {y} 716.011 {z} -3.1454
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1605.5179 {y} 672.6205 {z} -3.2395
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3309
if 
  $impound_area == 3
goto_if_false @IMPND_3419
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2296.4331 {y} 2444.2949 {z} 7.0111
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2255.4041 {y} 2446.676 {z} 5.6601
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2243.1069 {y} 2498.2251 {z} 8.5154
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2296.927 {y} 2492.9021 {z} 0.2841
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3419
16@ = 0

:IMPND_3426
if 
  8 > 16@
goto_if_false @IMPND_3694
if 
  not is_char_dead $cam_vec_x(16@,8i)
goto_if_false @IMPND_3680
if 
  0 <= $10706(16@,8i)
goto_if_false @IMPND_3680
get_char_highest_priority_event $cam_vec_x(16@,8i) {var_event} $10706(16@,8i)
if 
  $10706(16@,8i) <> 0
goto_if_false @IMPND_3680
if or
  is_int_var_equal_to_constant $10706(16@,8i) == 15
  is_int_var_equal_to_constant $10706(16@,8i) == 49
  is_int_var_equal_to_constant $10706(16@,8i) == 9
goto_if_false @IMPND_3593
$10706(16@,8i) = -2
$10733, $door_rotation, $10735 = get_char_coordinates $scplayer

:IMPND_3593
if 
  is_int_var_equal_to_constant $10706(16@,8i) == 62
goto_if_false @IMPND_3680
if 
  locate_char_any_means_char_3d $cam_vec_x(16@,8i) {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @IMPND_3680
$10706(16@,8i) = -1
$10733, $door_rotation, $10735 = get_char_coordinates $scplayer

:IMPND_3680
16@ += 1
goto @IMPND_3426

:IMPND_3694
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 3@
goto_if_false @IMPND_3904
set_lvar_int_to_lvar_int 3@ = TIMERA
3@ += 100
if 
  not is_char_dead $cam_vec_x(12@,8i)
goto_if_false @IMPND_3806
$10704 = 0
23@ = 0
set_lvar_int_to_var_int 13@ = $crane2_sound_flag(12@,8i)
gosub @IMPND_21735
gosub @IMPND_10492
$10706(12@,8i) = 0
goto @IMPND_3872

:IMPND_3806
if 
  is_int_lvar_equal_to_int_var 19@ == $cam_vec_x(12@,8i)
goto_if_false @IMPND_3872
if and
  20@ <> 0
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_3858
clear_mission_audio MissionAudioSlot.Slot4

:IMPND_3858
20@ = 0
19@ = 0

:IMPND_3872
12@ += 1
if 
  12@ > 7
goto_if_false @IMPND_3904
12@ = 0

:IMPND_3904
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_3977
if 
  not locate_char_any_means_3d $scplayer {x} 1579.425 {y} -1636.463 {z} 14.5812 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_3977
gosub @IMPND_22013

:IMPND_3977
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_4050
if 
  not locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_4050
gosub @IMPND_22013

:IMPND_4050
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_4123
if 
  not locate_char_any_means_3d $scplayer {x} 2284.592 {y} 2466.8379 {z} 12.2306 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_4123
gosub @IMPND_22013

:IMPND_4123
goto @IMPND_4155

:IMPND_4130
if 
  0@ == 2
goto_if_false @IMPND_4155
gosub @IMPND_22013

:IMPND_4155
goto @IMPND_1039

:IMPND_4162
if 
  $impound_area == 3
goto_if_false @IMPND_4592
$imp_sequence[0] = create_car $10701 {x} 2285.502 {y} 2473.748 {z} 2.266
$imp_sequence[1] = create_car $10701 {x} 2314.3579 {y} 2475.845 {z} 2.266
$imp_sequence[2] = create_car $10701 {x} 2240.9709 {y} 2476.4851 {z} -8.4476
$imp_sequence[3] = create_car $10701 {x} 2303.053 {y} 2431.7119 {z} -8.4531
set_car_heading $imp_sequence[0] {heading} 179.4722
set_car_heading $imp_sequence[1] {heading} 268.529
set_car_heading $imp_sequence[2] {heading} 92.5631
set_car_heading $imp_sequence[3] {heading} 180.0971
lock_car_doors $imp_sequence[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[1] {lockStatus} CarLock.Unlocked
lock_car_doors $imp_sequence[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[3] {lockStatus} CarLock.Unlocked
$cam_vec_x[3] = create_char_inside_car $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h
$cam_vec_x[4] = create_char_as_passenger $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h {seat} SeatId.BikeRear
$cam_vec_x[5] = create_char PedType.Mission1 {modelId} $cop_h {x} 2278.1001 {y} 2425.4529 {z} 2.4766
$cam_vec_x[6] = create_char PedType.Mission1 {modelId} $cop_h {x} 2268.906 {y} 2449.2461 {z} -8.1953
set_char_heading $cam_vec_x[5] {heading} 187.5721
set_char_heading $cam_vec_x[6] {heading} 228.3262
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
12@ = 3

:IMPND_4501
if 
  7 > 12@
goto_if_false @IMPND_4592
if 
  not is_char_dead $cam_vec_x(12@,8i)
goto_if_false @IMPND_4578
set_char_decision_maker $cam_vec_x(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $cam_vec_x(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $cam_vec_x(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_4578
12@ += 1
goto @IMPND_4501

:IMPND_4592
if 
  $impound_area == 2
goto_if_false @IMPND_5029
$imp_sequence[0] = create_car $10701 {x} -1600.142 {y} 748.2594 {z} -6.2344
$imp_sequence[1] = create_car $10701 {x} -1616.233 {y} 691.9449 {z} -6.2422
$imp_sequence[2] = create_car $10701 {x} -1574.061 {y} 717.9744 {z} -6.2344
$imp_sequence[3] = create_car $10701 {x} -1574.3051 {y} 726.8611 {z} -6.2344
set_car_heading $imp_sequence[0] {heading} 359.8067
set_car_heading $imp_sequence[1] {heading} 358.8804
set_car_heading $imp_sequence[2] {heading} 268.0333
set_car_heading $imp_sequence[3] {heading} 268.3534
lock_car_doors $imp_sequence[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[1] {lockStatus} CarLock.Unlocked
lock_car_doors $imp_sequence[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[3] {lockStatus} CarLock.Unlocked
$cam_vec_x[3] = create_char_inside_car $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h
$cam_vec_x[4] = create_char_as_passenger $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h {seat} SeatId.BikeRear
$cam_vec_x[5] = create_char PedType.Mission1 {modelId} $cop_h {x} -1606.067 {y} 701.3859 {z} -5.9062
$cam_vec_x[6] = create_char PedType.Mission1 {modelId} $cop_h {x} -1615.934 {y} 695.0814 {z} -6.2422
set_char_heading $cam_vec_x[5] {heading} 270.5721
set_char_heading $cam_vec_x[6] {heading} 180.3262
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
12@ = 3

:IMPND_4931
if 
  8 > 12@
goto_if_false @IMPND_5022
if 
  not is_char_dead $cam_vec_x(12@,8i)
goto_if_false @IMPND_5008
set_char_decision_maker $cam_vec_x(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $cam_vec_x(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $cam_vec_x(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_5008
12@ += 1
goto @IMPND_4931

:IMPND_5022
12@ = 0

:IMPND_5029
if 
  $impound_area == 1
goto_if_false @IMPND_5557
$imp_sequence[0] = create_car $10701 {x} 1586.254 {y} -1671.7321 {z} 4.8916
$imp_sequence[1] = create_car $10701 {x} 1601.52 {y} -1699.925 {z} 4.8984
$imp_sequence[2] = create_car $10701 {x} 1565.429 {y} -1710.8101 {z} 4.8984
$imp_sequence[3] = create_car $10701 {x} 1529.675 {y} -1688.105 {z} 4.897
set_car_heading $imp_sequence[0] {heading} 90.8726
set_car_heading $imp_sequence[1] {heading} 268.6337
set_car_heading $imp_sequence[2] {heading} 177.2788
set_car_heading $imp_sequence[3] {heading} 270.141
lock_car_doors $imp_sequence[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[1] {lockStatus} CarLock.Unlocked
lock_car_doors $imp_sequence[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $imp_sequence[3] {lockStatus} CarLock.Unlocked
$cam_vec_x[3] = create_char_inside_car $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h
$cam_vec_x[4] = create_char_as_passenger $imp_sequence[0] {pedType} PedType.Mission1 {modelId} $cop_h {seat} SeatId.BikeRear
$cam_vec_x[5] = create_char PedType.Mission1 {modelId} $cop_h {x} 1527.145 {y} -1675.299 {z} 4.8984
$cam_vec_x[6] = create_char PedType.Mission1 {modelId} $cop_h {x} 1603.7111 {y} -1714.2939 {z} 5.2187
$cam_vec_x[1] = create_char PedType.Mission1 {modelId} $cop_h {x} 1608.285 {y} -1715.7791 {z} 5.2187
$cam_vec_x[7] = create_char PedType.Mission1 {modelId} $cop_h {x} 1532.631 {y} -1688.01 {z} 4.8984
set_char_heading $cam_vec_x[5] {heading} 90.5721
set_char_heading $cam_vec_x[6] {heading} 242.3262
set_char_heading $cam_vec_x[1] {heading} 225.3262
set_char_heading $cam_vec_x[7] {heading} 90.3262
$crane2_sound_flag[1] = 5
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$crane2_sound_flag[7] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
$10523[7] = 0
12@ = 0

:IMPND_5459
if 
  8 > 12@
goto_if_false @IMPND_5550
if 
  not is_char_dead $cam_vec_x(12@,8i)
goto_if_false @IMPND_5536
set_char_decision_maker $cam_vec_x(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $cam_vec_x(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $cam_vec_x(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_5536
12@ += 1
goto @IMPND_5459

:IMPND_5550
12@ = 0

:IMPND_5557
return 

:IMPND_5559
if 
  $impound_area == 1
goto_if_false @IMPND_6885
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6159 {caseNum1} 0 {caseLabel1} @IMPND_5640 {caseNum2} 1 {caseLabel2} @IMPND_5899 {caseNum3} 2 {caseLabel3} @IMPND_5962 {caseNum4} 3 {caseLabel4} @IMPND_6029 {caseNum5} -1 {caseLabel5} @IMPND_6159 {caseNum6} -1 {caseLabel6} @IMPND_6159 {caseNum7} -1 {caseLabel7} @IMPND_6159

:IMPND_5640
if 
  $10539[0] == 0
goto_if_false @IMPND_5813
if 
  is_cop_vehicle_in_area_3d_no_save 1554.3199 {leftBottomY} -1632.6689 {leftBottomZ} 13.9475 {rightTopX} 1535.271 {rightTopY} -1620.762 {rightTopZ} 11.8805
goto_if_false @IMPND_5813
if 
  not is_char_dead $cam_vec_x[0]
goto_if_false @IMPND_5813
if 
  is_char_in_area_2d $cam_vec_x[0] {leftBottomX} 1543.595 {leftBottomY} -1631.2791 {rightTopX} 1545.022 {rightTopY} -1632.704 {drawSphere} False
goto_if_false @IMPND_5813
$10720 = 1
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_5813
if 
  20@ == 0
goto_if_false @IMPND_5813
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_5813
if 
  $10547 == 1
goto_if_false @IMPND_5892
if 
  not is_car_dead $imp_sequence[1]
goto_if_false @IMPND_5892
if 
  is_car_in_area_2d $imp_sequence[1] {leftBottomX} 1544.988 {leftBottomY} -1622.29 {rightTopX} 1556.178 {rightTopY} -1632.62 {drawSphere} False
goto_if_false @IMPND_5892
$10720 = 1

:IMPND_5892
goto @IMPND_6159

:IMPND_5899
$blah += 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  $blah >= 0.0
goto_if_false @IMPND_5955
$10720 = 2

:IMPND_5955
goto @IMPND_6159

:IMPND_5962
if 
  not is_area_occupied 1554.3199 {leftBottomY} -1632.6689 {leftBottomZ} 13.9475 {rightTopX} 1535.271 {rightTopY} -1620.762 {rightTopZ} 11.8805 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6022
$10720 = 3

:IMPND_6022
goto @IMPND_6159

:IMPND_6029
if 
  is_area_occupied 1540.938 {leftBottomY} -1623.681 {leftBottomZ} 14.3551 {rightTopX} 1550.887 {rightTopY} -1631.6479 {rightTopZ} 12.1949 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6096
$10720 = 1
goto @IMPND_6152

:IMPND_6096
$blah -= 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  -90.0 >= $blah
goto_if_false @IMPND_6152
$10720 = 0

:IMPND_6152
goto @IMPND_6159

:IMPND_6159
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6885 {caseNum1} 0 {caseLabel1} @IMPND_6222 {caseNum2} 1 {caseLabel2} @IMPND_6496 {caseNum3} 2 {caseLabel3} @IMPND_6623 {caseNum4} 3 {caseLabel4} @IMPND_6698 {caseNum5} -1 {caseLabel5} @IMPND_6885 {caseNum6} -1 {caseLabel6} @IMPND_6885 {caseNum7} -1 {caseLabel7} @IMPND_6885

:IMPND_6222
if 
  $10703 == 1
goto_if_false @IMPND_6421
if 
  is_cop_vehicle_in_area_3d_no_save 1592.251 {leftBottomY} -1637.59 {leftBottomZ} 17.1898 {rightTopX} 1578.344 {rightTopY} -1624.2729 {rightTopZ} 11.9866
goto_if_false @IMPND_6421
if 
  $10539[2] == 0
goto_if_false @IMPND_6421
if 
  not is_char_dead $cam_vec_x[2]
goto_if_false @IMPND_6421
if 
  is_char_in_area_2d $cam_vec_x[2] {leftBottomX} 1582.153 {leftBottomY} -1637.67 {rightTopX} 1577.585 {rightTopY} -1633.235 {drawSphere} False
goto_if_false @IMPND_6421
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_6421
if 
  20@ == 0
goto_if_false @IMPND_6421
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_6421
if 
  is_area_occupied 1581.7321 {leftBottomY} -1639.463 {leftBottomZ} 16.4817 {rightTopX} 1599.936 {rightTopY} -1652.072 {rightTopZ} 7.8825 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6489
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_6489
goto @IMPND_6885

:IMPND_6496
$x, $y, $door_control = get_object_coordinates 6@
$door_control += 0.0173
$10726 += 0.9
if 
  $door_control >= 16.425
goto_if_false @IMPND_6586
$10722 = 2
$door_control = 16.425
$10726 = 90.0
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_6586
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
set_object_rotation 6@ {x} $10726 {y} 0.0 {z} $10640[1]
goto @IMPND_6885

:IMPND_6623
if 
  not is_area_occupied 1602.079 {leftBottomY} -1655.913 {leftBottomZ} 6.5685 {rightTopX} 1582.7791 {rightTopY} -1631.262 {rightTopZ} 17.1606 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6691
$10722 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_6691
goto @IMPND_6885

:IMPND_6698
$x, $y, $door_control = get_object_coordinates 6@
$door_control -= 0.0155
$10726 -= 0.9
if 
  14.5641 >= $door_control
goto_if_false @IMPND_6788
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop
$10722 = 0
$10726 = 0.0
$door_control = 14.5641

:IMPND_6788
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
set_object_rotation 6@ {x} $10726 {y} 0.0 {z} $10640[1]
if 
  is_area_occupied 1602.079 {leftBottomY} -1655.913 {leftBottomZ} 6.5685 {rightTopX} 1582.7791 {rightTopY} -1631.262 {rightTopZ} 17.1606 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6878
$10722 = 1

:IMPND_6878
goto @IMPND_6885

:IMPND_6885
if 
  $impound_area == 2
goto_if_false @IMPND_8651
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7406 {caseNum1} 0 {caseLabel1} @IMPND_6966 {caseNum2} 1 {caseLabel2} @IMPND_7146 {caseNum3} 2 {caseLabel3} @IMPND_7209 {caseNum4} 3 {caseLabel4} @IMPND_7276 {caseNum5} -1 {caseLabel5} @IMPND_7406 {caseNum6} -1 {caseLabel6} @IMPND_7406 {caseNum7} -1 {caseLabel7} @IMPND_7406

:IMPND_6966
if 
  $10539[0] == 0
goto_if_false @IMPND_7139
if 
  is_cop_vehicle_in_area_3d_no_save -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455
goto_if_false @IMPND_7139
if 
  not is_char_dead $cam_vec_x[0]
goto_if_false @IMPND_7139
if 
  is_char_in_area_2d $cam_vec_x[0] {leftBottomX} -1573.406 {leftBottomY} 656.8607 {rightTopX} -1572.033 {rightTopY} 658.196 {drawSphere} False
goto_if_false @IMPND_7088
$10720 = 1

:IMPND_7088
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_7139
if 
  20@ == 0
goto_if_false @IMPND_7139
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_7139
goto @IMPND_7406

:IMPND_7146
$blah += 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  $blah >= 0.0
goto_if_false @IMPND_7202
$10720 = 2

:IMPND_7202
goto @IMPND_7406

:IMPND_7209
if 
  not is_area_occupied -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7269
$10720 = 3

:IMPND_7269
goto @IMPND_7406

:IMPND_7276
if 
  is_area_occupied -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7343
$10720 = 1
goto @IMPND_7399

:IMPND_7343
$blah -= 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  -90.0 >= $blah
goto_if_false @IMPND_7399
$10720 = 0

:IMPND_7399
goto @IMPND_7406

:IMPND_7406
switch_start $10721 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7909 {caseNum1} 0 {caseLabel1} @IMPND_7469 {caseNum2} 1 {caseLabel2} @IMPND_7649 {caseNum3} 2 {caseLabel3} @IMPND_7712 {caseNum4} 3 {caseLabel4} @IMPND_7779 {caseNum5} -1 {caseLabel5} @IMPND_7909 {caseNum6} -1 {caseLabel6} @IMPND_7909 {caseNum7} -1 {caseLabel7} @IMPND_7909

:IMPND_7469
if 
  $10539[1] == 0
goto_if_false @IMPND_7642
if 
  is_cop_vehicle_in_area_3d_no_save -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141
goto_if_false @IMPND_7642
if 
  not is_char_dead $cam_vec_x[1]
goto_if_false @IMPND_7642
if 
  is_char_in_area_2d $cam_vec_x[1] {leftBottomX} -1701.6479 {leftBottomY} 689.5652 {rightTopX} -1700.0861 {rightTopY} 688.274 {drawSphere} False
goto_if_false @IMPND_7591
$10721 = 1

:IMPND_7591
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_7642
if 
  20@ == 0
goto_if_false @IMPND_7642
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[1]

:IMPND_7642
goto @IMPND_7909

:IMPND_7649
$cop_car += 0.5
set_object_rotation 10@ {x} $cop_car {y} 0.0 {z} 180.0
if 
  $cop_car >= 0.0
goto_if_false @IMPND_7705
$10721 = 2

:IMPND_7705
goto @IMPND_7909

:IMPND_7712
if 
  not is_area_occupied -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7772
$10721 = 3

:IMPND_7772
goto @IMPND_7909

:IMPND_7779
if 
  is_area_occupied -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7846
$10721 = 1
goto @IMPND_7902

:IMPND_7846
$cop_car -= 0.5
set_object_rotation 10@ {x} $cop_car {y} 0.0 {z} 180.0
if 
  -90.0 >= $cop_car
goto_if_false @IMPND_7902
$10721 = 0

:IMPND_7902
goto @IMPND_7909

:IMPND_7909
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_8651 {caseNum1} 0 {caseLabel1} @IMPND_7972 {caseNum2} 1 {caseLabel2} @IMPND_8324 {caseNum3} 2 {caseLabel3} @IMPND_8415 {caseNum4} 3 {caseLabel4} @IMPND_8490 {caseNum5} -1 {caseLabel5} @IMPND_8651 {caseNum6} -1 {caseLabel6} @IMPND_8651 {caseNum7} -1 {caseLabel7} @IMPND_8651

:IMPND_7972
if 
  $10703 == 1
goto_if_false @IMPND_8171
if 
  is_cop_vehicle_in_area_3d_no_save -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401
goto_if_false @IMPND_8171
if 
  $10539[2] == 0
goto_if_false @IMPND_8171
if 
  not is_char_dead $cam_vec_x[2]
goto_if_false @IMPND_8171
if 
  is_char_in_area_2d $cam_vec_x[2] {leftBottomX} -1613.2531 {leftBottomY} 679.4489 {rightTopX} -1618.76 {rightTopY} 688.0851 {drawSphere} False
goto_if_false @IMPND_8171
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_8171
if 
  20@ == 0
goto_if_false @IMPND_8171
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_8171
if 
  $10547 == 1
goto_if_false @IMPND_8257
if 
  is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8257
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_8257
if 
  is_area_occupied -1620.061 {leftBottomY} 715.371 {leftBottomZ} -4.554 {rightTopX} -1640.881 {rightTopY} 691.9899 {rightTopZ} 11.1863 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8317
$10722 = 1

:IMPND_8317
goto @IMPND_8651

:IMPND_8324
$x, $y, $door_control = get_object_coordinates 6@
$door_control += 0.0155
if 
  $door_control >= 13.2513
goto_if_false @IMPND_8394
$10722 = 2
$door_control = 13.2513
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_8394
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
goto @IMPND_8651

:IMPND_8415
if 
  not is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8483
$10722 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_8483
goto @IMPND_8651

:IMPND_8490
$x, $y, $door_control = get_object_coordinates 6@
$door_control -= 0.0155
if 
  8.5436 >= $door_control
goto_if_false @IMPND_8570
$10722 = 0
$10726 = 0.0
$door_control = 8.5436
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_8570
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
if 
  is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8644
$10722 = 1

:IMPND_8644
goto @IMPND_8651

:IMPND_8651
if 
  $impound_area == 3
goto_if_false @IMPND_10490
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_9288 {caseNum1} 0 {caseLabel1} @IMPND_8732 {caseNum2} 1 {caseLabel2} @IMPND_9028 {caseNum3} 2 {caseLabel3} @IMPND_9091 {caseNum4} 3 {caseLabel4} @IMPND_9158 {caseNum5} -1 {caseLabel5} @IMPND_9288 {caseNum6} -1 {caseLabel6} @IMPND_9288 {caseNum7} -1 {caseLabel7} @IMPND_9288

:IMPND_8732
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPND_8942
if 
  is_char_in_any_police_vehicle $scplayer
goto_if_false @IMPND_8942
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {drawSphere} False
goto_if_false @IMPND_8942
if 
  $10539[0] == 0
goto_if_false @IMPND_8942
if 
  not is_char_dead $cam_vec_x[0]
goto_if_false @IMPND_8942
if 
  is_char_in_area_2d $cam_vec_x[0] {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_8942
$10720 = 1
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_8942
if 
  20@ == 0
goto_if_false @IMPND_8942
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_8942
if 
  $10547 == 1
goto_if_false @IMPND_9021
if 
  not is_car_dead $imp_sequence[0]
goto_if_false @IMPND_9021
if 
  is_car_in_area_2d $imp_sequence[0] {leftBottomX} 2222.3159 {leftBottomY} 2432.012 {rightTopX} 2246.9561 {rightTopY} 2467.6531 {drawSphere} False
goto_if_false @IMPND_9021
$10720 = 1

:IMPND_9021
goto @IMPND_9288

:IMPND_9028
$blah += 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  $blah >= 0.0
goto_if_false @IMPND_9084
$10720 = 2

:IMPND_9084
goto @IMPND_9288

:IMPND_9091
if 
  not is_area_occupied 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9151
$10720 = 3

:IMPND_9151
goto @IMPND_9288

:IMPND_9158
if 
  is_area_occupied 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9225
$10720 = 1
goto @IMPND_9281

:IMPND_9225
$blah -= 0.5
set_object_rotation 9@ {x} $blah {y} 0.0 {z} 0.0
if 
  -90.0 >= $blah
goto_if_false @IMPND_9281
$10720 = 0

:IMPND_9281
goto @IMPND_9288

:IMPND_9288
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_10007 {caseNum1} 0 {caseLabel1} @IMPND_9351 {caseNum2} 1 {caseLabel2} @IMPND_9680 {caseNum3} 2 {caseLabel3} @IMPND_9771 {caseNum4} 3 {caseLabel4} @IMPND_9846 {caseNum5} -1 {caseLabel5} @IMPND_10007 {caseNum6} -1 {caseLabel6} @IMPND_10007 {caseNum7} -1 {caseLabel7} @IMPND_10007

:IMPND_9351
if 
  $10703 == 1
goto_if_false @IMPND_9587
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPND_9587
if 
  is_char_in_any_police_vehicle $scplayer
goto_if_false @IMPND_9587
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2237.8081 {leftBottomY} 2486.7639 {leftBottomZ} 12.7579 {rightTopX} 2280.2109 {rightTopY} 2502.595 {rightTopZ} 6.2211 {drawSphere} False
goto_if_false @IMPND_9587
if 
  $10539[2] == 0
goto_if_false @IMPND_9587
if 
  not is_char_dead $cam_vec_x[2]
goto_if_false @IMPND_9587
if 
  is_char_in_area_2d $cam_vec_x[2] {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
goto_if_false @IMPND_9587
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_9587
if 
  20@ == 0
goto_if_false @IMPND_9587
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_9587
if 
  $10547 == 1
goto_if_false @IMPND_9673
if 
  is_area_occupied 2294.3711 {leftBottomY} 2493.447 {leftBottomZ} 6.6617 {rightTopX} 2305.78 {rightTopY} 2504.3301 {rightTopZ} 2.1808 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9673
$10722 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_9673
goto @IMPND_10007

:IMPND_9680
$x, $y, $door_control = get_object_coordinates 6@
$door_control += 0.0155
if 
  $door_control >= 8.8513
goto_if_false @IMPND_9750
$10722 = 2
$door_control = 8.8513
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_9750
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
goto @IMPND_10007

:IMPND_9771
if 
  not is_area_occupied 2286.1479 {leftBottomY} 2503.084 {leftBottomZ} 7.8689 {rightTopX} 2302.4319 {rightTopY} 2491.353 {rightTopZ} 1.8459 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9839
$10722 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_9839
goto @IMPND_10007

:IMPND_9846
$x, $y, $door_control = get_object_coordinates 6@
$door_control -= 0.0155
if 
  4.4414 >= $door_control
goto_if_false @IMPND_9926
$10722 = 0
$10726 = 0.0
$door_control = 4.4414
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_9926
set_object_coordinates 6@ {x} $x {y} $y {z} $door_control
if 
  is_area_occupied 2286.1479 {leftBottomY} 2503.084 {leftBottomZ} 7.8689 {rightTopX} 2302.4319 {rightTopY} 2491.353 {rightTopZ} 1.8459 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10000
$10722 = 1

:IMPND_10000
goto @IMPND_10007

:IMPND_10007
switch_start $10723 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_10490 {caseNum1} 0 {caseLabel1} @IMPND_10070 {caseNum2} 1 {caseLabel2} @IMPND_10163 {caseNum3} 2 {caseLabel3} @IMPND_10254 {caseNum4} 3 {caseLabel4} @IMPND_10329 {caseNum5} -1 {caseLabel5} @IMPND_10490 {caseNum6} -1 {caseLabel6} @IMPND_10490 {caseNum7} -1 {caseLabel7} @IMPND_10490

:IMPND_10070
if 
  $10703 == 1
goto_if_false @IMPND_10156
if 
  is_area_occupied 2333.481 {leftBottomY} 2439.5759 {leftBottomZ} 8.8878 {rightTopX} 2319.688 {rightTopY} 2452.0 {rightTopZ} 2.1724 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10156
$10723 = 1
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_10156
goto @IMPND_10490

:IMPND_10163
$x, $y, $10731 = get_object_coordinates 7@
$10731 += 0.0155
if 
  $10731 >= 11.6441
goto_if_false @IMPND_10233
$10723 = 2
$10731 = 11.6441
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_10233
set_object_coordinates 7@ {x} $x {y} $y {z} $10731
goto @IMPND_10490

:IMPND_10254
if 
  not is_area_occupied 2338.707 {leftBottomY} 2434.458 {leftBottomZ} 11.8518 {rightTopX} 2330.938 {rightTopY} 2452.4551 {rightTopZ} 3.5886 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10322
$10723 = 3
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_10322
goto @IMPND_10490

:IMPND_10329
$x, $y, $10731 = get_object_coordinates 7@
$10731 -= 0.0155
if 
  6.9743 >= $10731
goto_if_false @IMPND_10409
$10723 = 0
$10727 = 0.0
$10731 = 6.9743
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_10409
set_object_coordinates 7@ {x} $x {y} $y {z} $10731
if 
  is_area_occupied 2338.707 {leftBottomY} 2434.458 {leftBottomZ} 11.8518 {rightTopX} 2330.938 {rightTopY} 2452.4551 {rightTopZ} 3.5886 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10483
$10723 = 1

:IMPND_10483
goto @IMPND_10490

:IMPND_10490
return 

:IMPND_10492
switch_start 13@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPND_12873 {caseNum1} 1 {caseLabel1} @IMPND_12328 {caseNum2} 2 {caseLabel2} @IMPND_10865 {caseNum3} 3 {caseLabel3} @IMPND_11240 {caseNum4} 4 {caseLabel4} @IMPND_11932 {caseNum5} 5 {caseLabel5} @IMPND_10555 {caseNum6} 6 {caseLabel6} @IMPND_12724 {caseNum7} 9 {caseLabel7} @IMPND_11542

:IMPND_10555
gosub @IMPND_12875
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_10609
$crane2_sound_flag(12@,8i) = 2
$10523(12@,8i) = 0

:IMPND_10609
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_10719
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
set_var_float_to_var_float $10702 = $player_z
sub_float_var_from_float_var $10702 -= $z
if 
  3.0 > $10702
goto_if_false @IMPND_10719
$crane2_sound_flag(12@,8i) = 9
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_10719
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_10818
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
set_var_float_to_var_float $10702 = $player_z
sub_float_var_from_float_var $10702 -= $z
if 
  3.0 > $10702
goto_if_false @IMPND_10818
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_10818
if 
  $dock_crane_travel_vec_y == 1
goto_if_false @IMPND_10858
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_10858
goto @IMPND_12873

:IMPND_10865
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_11178
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11024
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_10967
if 
  20@ == 0
goto_if_false @IMPND_10967
set_lvar_int_to_var_int 19@ = $cam_vec_x(12@,8i)
20@ = 4

:IMPND_10967
task_goto_char_aiming $cam_vec_x(12@,8i) {target} $scplayer {radiusFrom} 5.0 {radiusTo} 10.0
set_var_int_to_lvar_int $10531(12@,8i) = TIMERA
$10531(12@,8i) += 6000
$10523(12@,8i) = 1

:IMPND_11024
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11178
if 
  is_int_lvar_greater_than_int_var TIMERA > $10531(12@,8i)
goto_if_false @IMPND_11178
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_11145
if 
  20@ == 0
goto_if_false @IMPND_11138
$crane2_sound_flag(12@,8i) = 1
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11138
goto @IMPND_11178

:IMPND_11145
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11178
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_11233
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11233
goto @IMPND_12873

:IMPND_11240
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_11488
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11334
set_var_int_to_lvar_int $10531(12@,8i) = TIMERA
$10531(12@,8i) += 7000
task_kill_char_on_foot $cam_vec_x(12@,8i) {target} $scplayer
$10523(12@,8i) = 1

:IMPND_11334
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11488
if 
  is_int_lvar_greater_than_int_var TIMERA > $10531(12@,8i)
goto_if_false @IMPND_11488
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_11455
if 
  20@ == 0
goto_if_false @IMPND_11448
$crane2_sound_flag(12@,8i) = 1
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11448
goto @IMPND_11488

:IMPND_11455
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11488
if 
  $10704 == 0
goto_if_false @IMPND_11535
$i_see_you += 1
$crane2_sound_flag(12@,8i) = 4
$10523(12@,8i) = 0

:IMPND_11535
goto @IMPND_12873

:IMPND_11542
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11629
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11629
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} $10733 {y} $door_rotation {z} $10735 {time} 5000
$10523(12@,8i) = 1

:IMPND_11629
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11772
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11772
if 
  $10539(12@,8i) == 0
goto_if_false @IMPND_11728
$crane2_sound_flag(12@,8i) = 8
$10523(12@,8i) = 0

:IMPND_11728
if 
  $10539(12@,8i) == 1
goto_if_false @IMPND_11772
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_11772
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_11870
if 
  $10539(12@,8i) == 0
goto_if_false @IMPND_11848
$crane2_sound_flag(12@,8i) = 2
$10523(12@,8i) = 0
goto @IMPND_11870

:IMPND_11848
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_11870
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_11925
$crane2_sound_flag(12@,8i) = 9
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11925
goto @IMPND_12873

:IMPND_11932
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_12031
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_12020
task_go_to_coord_while_aiming $cam_vec_x(12@,8i) {x} $10733 {y} $door_rotation {z} $10735 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} -1 {xOffset} $10733 {yOffset} $door_rotation {zOffset} $10735

:IMPND_12020
$10523(12@,8i) = 1

:IMPND_12031
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_12109
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1730
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12109
task_pause $cam_vec_x(12@,8i) {time} 2000
$10523(12@,8i) = 2

:IMPND_12109
if 
  $10523(12@,8i) == 2
goto_if_false @IMPND_12186
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1465
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12186
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_12186
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_12233
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12233
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_12277
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12277
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_12321
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12321
goto @IMPND_12873

:IMPND_12328
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_12449
if 
  20@ == 0
goto_if_false @IMPND_12449
clear_char_tasks_immediately $cam_vec_x(12@,8i)
task_play_anim_non_interruptable $cam_vec_x(12@,8i) {animationName} "PHONE_TALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 4000
20@ = 5
set_lvar_int_to_var_int 19@ = $cam_vec_x(12@,8i)
$10523(12@,8i) = 1

:IMPND_12449
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_12717
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 2066
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12717
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_12695
$dock_crane_travel_vec_y = 1
if 
  not is_char_dead 24@
goto_if_false @IMPND_12557
freeze_char_position 24@ {state} False
task_cower 24@

:IMPND_12557
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 29400
$10539[0] = 1
$10539[1] = 1
$10539[2] = 1
$10539[3] = 1
$10539[4] = 1
$10539[5] = 1
$10539[6] = 1
$10539[7] = 1
if 
  not is_char_dead $cam_vec_x[1]
goto_if_false @IMPND_12647
set_current_char_weapon $cam_vec_x[1] {weaponType} WeaponType.Pistol

:IMPND_12647
if 
  not is_char_dead $cam_vec_x[6]
goto_if_false @IMPND_12670
set_current_char_weapon $cam_vec_x[6] {weaponType} WeaponType.Pistol

:IMPND_12670
if 
  $onmission == 0
goto_if_false @IMPND_12695
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:IMPND_12695
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12717
goto @IMPND_12873

:IMPND_12724
gosub @IMPND_15747
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_12778
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12778
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_12822
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12822
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_12866
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12866
goto @IMPND_12873

:IMPND_12873
return 

:IMPND_12875
if 
  $impound_area == 1
goto_if_false @IMPND_13988
if 
  $10703 == 1
goto_if_false @IMPND_13640
if 
  $10719 == 1
goto_if_false @IMPND_13640
if 
  12.0 > $player_z
goto_if_false @IMPND_13640
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_13640
if 
  12@ == 3
goto_if_false @IMPND_13112
flush_route 
extend_route 1583.321 {y} -1691.575 {z} 5.2252
extend_route 1555.105 {y} -1692.137 {z} 5.2252
extend_route 1526.5341 {y} -1676.968 {z} 4.8984
$10705 = open_sequence_task 
task_pause -1 {time} 3500
task_leave_any_car -1
task_pause -1 {time} 700
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 63.3988
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_13112
if 
  12@ == 4
goto_if_false @IMPND_13248
flush_route 
extend_route 1582.722 {y} -1669.5601 {z} 4.8942
extend_route 1581.765 {y} -1690.743 {z} 5.2187
extend_route 1556.016 {y} -1690.699 {z} 5.2252
extend_route 1525.97 {y} -1674.655 {z} 4.8984
$10705 = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 92.6125
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_13248
if 
  12@ == 5
goto_if_false @IMPND_13503
$10732 = open_sequence_task 
if 
  not is_car_dead $imp_sequence[2]
goto_if_false @IMPND_13360
task_car_drive_to_coord -1 {vehicle} $imp_sequence[2] {x} 1589.8781 {y} -1644.1429 {z} 11.2316 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 2000
task_car_drive_to_coord -1 {vehicle} $imp_sequence[2] {x} 1549.443 {y} -1627.994 {z} 12.3905 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_13360
close_sequence_task $10732
flush_route 
extend_route 1567.392 {y} -1706.847 {z} 4.8984
extend_route 1566.885 {y} -1710.162 {z} 4.8984
$10705 = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $imp_sequence[2]
goto_if_false @IMPND_13465
task_enter_car_as_driver -1 {vehicle} $imp_sequence[2] {time} -1
task_car_temp_action -1 {vehicle} $imp_sequence[2] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $10732

:IMPND_13465
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705
clear_sequence_task $10732
$10523(12@,8i) = 1

:IMPND_13503
if 
  12@ == 6
goto_if_false @IMPND_13588
24@ = create_random_char 1610.446 {y} -1720.474 {z} 5.2252
set_char_heading 24@ {heading} 45.0
task_hands_up 24@ {time} -2
freeze_char_position 24@ {state} True
set_current_char_weapon $cam_vec_x(12@,8i) {weaponType} WeaponType.Unarmed
task_kill_char_on_foot $cam_vec_x(12@,8i) {target} 24@

:IMPND_13588
if 
  12@ == 7
goto_if_false @IMPND_13629
if 
  not is_car_dead $imp_sequence[3]
goto_if_false @IMPND_13629
open_car_door $imp_sequence[3] {door} CarDoor.Hood

:IMPND_13629
$10523(12@,8i) = 1

:IMPND_13640
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_13988
if 
  12@ == 5
goto_if_false @IMPND_13863
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_13863
if 
  not is_char_dead $cam_vec_x[5]
goto_if_false @IMPND_13863
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13863
if 
  locate_char_in_car_3d $cam_vec_x(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_13863
mark_char_as_no_longer_needed $cam_vec_x[5]
mark_car_as_no_longer_needed $imp_sequence[1]
if 
  $blah > -25.0
goto_if_false @IMPND_13863
task_car_drive_wander $cam_vec_x(12@,8i) {vehicle} $imp_sequence[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars
$10523(12@,8i) = 2

:IMPND_13863
if 
  12@ == 6
goto_if_false @IMPND_13988
if 
  not is_char_dead 24@
goto_if_false @IMPND_13988
set_char_health 24@ {health} 100
14@ = get_script_task_status 24@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13988
task_hands_up 24@ {time} -2
if 
  not is_char_dead $cam_vec_x[1]
goto_if_false @IMPND_13988
task_play_anim $cam_vec_x[1] {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:IMPND_13988
if 
  $impound_area == 2
goto_if_false @IMPND_14848
if 
  $10719 == 1
goto_if_false @IMPND_14848
if 
  -0.7114 > $player_z
goto_if_false @IMPND_14643
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_14643
if 
  12@ == 3
goto_if_false @IMPND_14200
flush_route 
extend_route -1601.988 {y} 744.1652 {z} -6.2422
extend_route -1593.343 {y} 729.7554 {z} -5.9062
extend_route -1593.4399 {y} 718.5184 {z} -6.2344
$10705 = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 146.3988
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_14200
if 
  12@ == 4
goto_if_false @IMPND_14302
flush_route 
extend_route -1592.119 {y} 729.1914 {z} -5.9062
extend_route -1592.7531 {y} 715.295 {z} -6.2344
$10705 = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 103.6125
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_14302
if 
  12@ == 5
goto_if_false @IMPND_14591
$10732 = open_sequence_task 
if 
  not is_car_dead $imp_sequence[3]
goto_if_false @IMPND_14414
task_car_drive_to_coord -1 {vehicle} $imp_sequence[3] {x} -1629.925 {y} 694.9102 {z} 5.8578 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 8000
task_car_drive_to_coord -1 {vehicle} $imp_sequence[3] {x} -1578.795 {y} 662.8546 {z} 6.1874 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_14414
close_sequence_task $10732
flush_route 
extend_route -1595.7111 {y} 698.4703 {z} -5.9062
extend_route -1587.208 {y} 701.9536 {z} -5.914
extend_route -1577.201 {y} 720.1028 {z} -6.2344
extend_route -1574.4139 {y} 720.1995 {z} -6.2344
$10705 = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $imp_sequence[3]
goto_if_false @IMPND_14553
task_enter_car_as_driver -1 {vehicle} $imp_sequence[3] {time} -1
task_car_temp_action -1 {vehicle} $imp_sequence[3] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $10732

:IMPND_14553
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705
clear_sequence_task $10732
$10523(12@,8i) = 1

:IMPND_14591
if 
  12@ == 6
goto_if_false @IMPND_14632
if 
  not is_car_dead $imp_sequence[1]
goto_if_false @IMPND_14632
open_car_door $imp_sequence[1] {door} CarDoor.Hood

:IMPND_14632
$10523(12@,8i) = 1

:IMPND_14643
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_14848
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_14837
if 
  not is_char_dead $cam_vec_x[5]
goto_if_false @IMPND_14837
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_14837
if 
  locate_char_in_car_3d $cam_vec_x(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_14837
mark_char_as_no_longer_needed $cam_vec_x[5]
mark_car_as_no_longer_needed $imp_sequence[1]
if 
  $blah > -25.0
goto_if_false @IMPND_14837
task_car_drive_wander $cam_vec_x(12@,8i) {vehicle} $imp_sequence[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars

:IMPND_14837
$10523(12@,8i) = 2

:IMPND_14848
if 
  $impound_area == 3
goto_if_false @IMPND_15745
if 
  $10719 == 1
goto_if_false @IMPND_15745
if and
  4.3 > $player_z
  $player_x > 2292.0
goto_if_false @IMPND_15540
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_15540
if 
  12@ == 3
goto_if_false @IMPND_15104
flush_route 
extend_route 2292.4131 {y} 2466.8589 {z} 2.5313
extend_route 2292.5491 {y} 2448.623 {z} 2.5313
extend_route 2290.439 {y} 2446.9451 {z} 2.5313
extend_route 2271.2471 {y} 2446.7991 {z} 2.5313
extend_route 2266.6179 {y} 2449.1541 {z} 2.5313
$10705 = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 337.3988
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_15104
if 
  12@ == 4
goto_if_false @IMPND_15240
flush_route 
extend_route 2283.3779 {y} 2469.562 {z} 2.5313
extend_route 2290.2229 {y} 2466.8879 {z} 2.5313
extend_route 2290.4871 {y} 2449.4009 {z} 2.5313
extend_route 2269.623 {y} 2448.8 {z} 2.5313
$10705 = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 25.6125
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705

:IMPND_15240
if 
  12@ == 5
goto_if_false @IMPND_15529
$10732 = open_sequence_task 
if 
  not is_car_dead $imp_sequence[1]
goto_if_false @IMPND_15352
task_car_drive_to_coord -1 {vehicle} $imp_sequence[1] {x} 2300.103 {y} 2494.479 {z} 2.266 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 8000
task_car_drive_to_coord -1 {vehicle} $imp_sequence[1] {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_15352
close_sequence_task $10732
flush_route 
extend_route 2258.9141 {y} 2447.821 {z} 2.5313
extend_route 2258.3459 {y} 2467.5801 {z} 2.5313
extend_route 2298.0691 {y} 2467.792 {z} 2.266
extend_route 2313.553 {y} 2474.0449 {z} 2.266
$10705 = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $imp_sequence[1]
goto_if_false @IMPND_15491
task_enter_car_as_driver -1 {vehicle} $imp_sequence[1] {time} -1
task_car_temp_action -1 {vehicle} $imp_sequence[1] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $10732

:IMPND_15491
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705
clear_sequence_task $10732
$10523(12@,8i) = 1

:IMPND_15529
$10523(12@,8i) = 1

:IMPND_15540
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_15745
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_15734
if 
  not is_char_dead $cam_vec_x[5]
goto_if_false @IMPND_15734
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15734
if 
  locate_char_in_car_3d $cam_vec_x(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_15734
mark_char_as_no_longer_needed $cam_vec_x[5]
mark_car_as_no_longer_needed $imp_sequence[1]
if 
  $blah > -25.0
goto_if_false @IMPND_15734
task_car_drive_wander $cam_vec_x(12@,8i) {vehicle} $imp_sequence[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars

:IMPND_15734
$10523(12@,8i) = 2

:IMPND_15745
return 

:IMPND_15747
if 
  $impound_area == 1
goto_if_false @IMPND_16709
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
if 
  $z > 16.3914
goto_if_false @IMPND_16021
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 1553.0 {y} -1627.837 {z} 12.3905 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_15933
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15926
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 1553.0 {y} -1627.837 {z} 12.3905 {speed} MoveState.Run {time} -2

:IMPND_15926
goto @IMPND_16014

:IMPND_15933
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16014
if 
  $10735 > 15.0
goto_if_false @IMPND_16014
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 1566.329 {y} -1628.917 {z} 13.7858 {time} 8000

:IMPND_16014
goto @IMPND_16709

:IMPND_16021
if and
  $x > 1580.8199
  $y > -1678.5179
goto_if_false @IMPND_16303
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 1596.3879 {y} -1665.798 {z} 4.8604 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16181
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16174
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 1596.3879 {y} -1665.798 {z} 4.8604 {speed} MoveState.Run {time} -2

:IMPND_16174
goto @IMPND_16296

:IMPND_16181
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16296
if 
  $10735 > 10.5
goto_if_false @IMPND_16269
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 1588.92 {y} -1643.827 {z} 13.2958 {time} 8000
goto @IMPND_16296

:IMPND_16269
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 1551.462 {y} -1625.453 {z} 12.3905 {time} 8000

:IMPND_16296
goto @IMPND_16709

:IMPND_16303
if 
  $x > 1565.101
goto_if_false @IMPND_16520
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 1593.21 {y} -1702.36 {z} 4.897 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16453
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16446
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 1593.21 {y} -1702.36 {z} 4.897 {speed} MoveState.Run {time} -2

:IMPND_16446
goto @IMPND_16513

:IMPND_16453
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16513
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 1589.4659 {y} -1699.136 {z} 5.6059 {time} 8000

:IMPND_16513
goto @IMPND_16709

:IMPND_16520
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 1542.683 {y} -1706.7469 {z} 4.8984 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16649
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16642
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 1542.683 {y} -1706.7469 {z} 4.8984 {speed} MoveState.Run {time} -2

:IMPND_16642
goto @IMPND_16709

:IMPND_16649
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16709
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 1550.058 {y} -1696.444 {z} 6.4232 {time} 8000

:IMPND_16709
if 
  $impound_area == 2
goto_if_false @IMPND_18611
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
if 
  $z > 1.6789
goto_if_false @IMPND_17712
if 
  -1667.059 > $x
goto_if_false @IMPND_17066
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1697.1851 {y} 684.1302 {z} 23.01 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16916
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16909
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1697.1851 {y} 684.1302 {z} 23.01 {speed} MoveState.Run {time} -2

:IMPND_16909
goto @IMPND_17059

:IMPND_16916
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17059
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17021
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1706.2531 {y} 683.8111 {z} 25.3122 {time} 16@
goto @IMPND_17059

:IMPND_17021
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1685.691 {y} 683.6411 {z} 20.7149 {time} 16@

:IMPND_17059
goto @IMPND_17705

:IMPND_17066
if 
  $x > -1604.599
goto_if_false @IMPND_17366
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1576.953 {y} 661.7159 {z} 6.1901 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17216
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17209
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1576.953 {y} 661.7159 {z} 6.1901 {speed} MoveState.Run {time} -2

:IMPND_17209
goto @IMPND_17359

:IMPND_17216
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17359
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17321
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1584.874 {y} 663.152 {z} 7.414 {time} 16@
goto @IMPND_17359

:IMPND_17321
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1566.207 {y} 664.1497 {z} 8.621 {time} 16@

:IMPND_17359
goto @IMPND_17705

:IMPND_17366
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1629.609 {y} 683.5222 {z} 6.1901 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17495
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17488
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1629.609 {y} 683.5222 {z} 6.1901 {speed} MoveState.Run {time} -2

:IMPND_17488
goto @IMPND_17705

:IMPND_17495
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17705
16@ = generate_random_int_in_range 0 {max} 3
if 
  16@ == 0
goto_if_false @IMPND_17593
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1629.298 {y} 694.5806 {z} 6.6079 {time} 16@

:IMPND_17593
if 
  16@ == 1
goto_if_false @IMPND_17649
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1617.505 {y} 677.6022 {z} 7.9235 {time} 16@

:IMPND_17649
if 
  16@ == 2
goto_if_false @IMPND_17705
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1648.488 {y} 682.1654 {z} 10.8535 {time} 16@

:IMPND_17705
goto @IMPND_18611

:IMPND_17712
if and
  -1598.681 > $x
  $y > 707.923
goto_if_false @IMPND_18015
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1618.067 {y} 742.9348 {z} -6.2344 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17872
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17865
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1618.067 {y} 742.9348 {z} -6.2344 {speed} MoveState.Run {time} -2

:IMPND_17865
goto @IMPND_18015

:IMPND_17872
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18015
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17977
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1627.667 {y} 738.323 {z} -5.0193 {time} 16@
goto @IMPND_18015

:IMPND_17977
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1601.436 {y} 739.188 {z} -4.696 {time} 16@

:IMPND_18015
if and
  $x > -1598.681
  $y > 707.923
goto_if_false @IMPND_18318
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1581.8879 {y} 738.4942 {z} -6.2422 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18175
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18168
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1581.8879 {y} 738.4942 {z} -6.2422 {speed} MoveState.Run {time} -2

:IMPND_18168
goto @IMPND_18318

:IMPND_18175
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18318
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_18280
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1594.033 {y} 741.5932 {z} -4.9811 {time} 16@
goto @IMPND_18318

:IMPND_18280
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1583.25 {y} 724.5026 {z} -5.0768 {time} 16@

:IMPND_18318
if 
  707.923 > $y
goto_if_false @IMPND_18611
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} -1591.093 {y} 688.555 {z} -6.2422 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18468
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18461
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} -1591.093 {y} 688.555 {z} -6.2422 {speed} MoveState.Run {time} -2

:IMPND_18461
goto @IMPND_18611

:IMPND_18468
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18611
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_18573
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1602.085 {y} 687.7857 {z} -4.6028 {time} 16@
goto @IMPND_18611

:IMPND_18573
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} -1582.9611 {y} 717.1259 {z} -4.2141 {time} 16@

:IMPND_18611
if 
  $impound_area == 3
goto_if_false @IMPND_19862
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
if 
  $z > 8.9783
goto_if_false @IMPND_19239
if 
  2484.5979 > $y
goto_if_false @IMPND_18942
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 2241.8789 {y} 2453.603 {z} 9.82 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18818
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18811
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2241.8789 {y} 2453.603 {z} 9.82 {speed} MoveState.Run {time} -2

:IMPND_18811
goto @IMPND_18935

:IMPND_18818
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18935
16@ = generate_random_int_in_range 5000 {max} 8000
if 
  13@ == 6
goto_if_false @IMPND_18914
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2242.116 {y} 2478.98 {z} 10.8203 {time} 8000
goto @IMPND_18935

:IMPND_18914
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} $10733 {y} $door_rotation {z} $10735 {time} 8000

:IMPND_18935
goto @IMPND_19232

:IMPND_18942
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 2243.24 {y} 2495.0991 {z} 9.8203 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19071
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19064
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2243.24 {y} 2495.0991 {z} 9.8203 {speed} MoveState.Run {time} -2

:IMPND_19064
goto @IMPND_19232

:IMPND_19071
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19232
if 
  13@ == 6
goto_if_false @IMPND_19211
if 
  $10735 > 5.0
goto_if_false @IMPND_19177
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2242.4529 {y} 2487.0601 {z} 11.7533 {time} 8000
goto @IMPND_19204

:IMPND_19177
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2268.113 {y} 2498.4561 {z} 7.7616 {time} 8000

:IMPND_19204
goto @IMPND_19232

:IMPND_19211
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} $10733 {y} $door_rotation {z} $10735 {time} 8000

:IMPND_19232
goto @IMPND_19862

:IMPND_19239
if 
  $z > 2.1249
goto_if_false @IMPND_19673
if 
  $y > 2458.3269
goto_if_false @IMPND_19477
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 2306.376 {y} 2495.541 {z} 2.266 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19410
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19403
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2306.376 {y} 2495.541 {z} 2.266 {speed} MoveState.Run {time} -2

:IMPND_19403
goto @IMPND_19470

:IMPND_19410
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19470
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2295.177 {y} 2471.76 {z} 3.955 {time} 8000

:IMPND_19470
goto @IMPND_19666

:IMPND_19477
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 2316.0601 {y} 2446.9121 {z} 2.266 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19606
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19599
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2316.0601 {y} 2446.9121 {z} 2.266 {speed} MoveState.Run {time} -2

:IMPND_19599
goto @IMPND_19666

:IMPND_19606
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19666
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2295.2161 {y} 2451.0879 {z} 4.3783 {time} 8000

:IMPND_19666
goto @IMPND_19862

:IMPND_19673
if 
  not locate_char_any_means_3d $cam_vec_x(12@,8i) {x} 2238.7529 {y} 2457.8311 {z} -8.4531 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19802
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19795
clear_char_tasks $cam_vec_x(12@,8i)
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2238.7529 {y} 2457.8311 {z} -8.4531 {speed} MoveState.Run {time} -2

:IMPND_19795
goto @IMPND_19862

:IMPND_19802
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19862
task_aim_gun_at_coord $cam_vec_x(12@,8i) {x} 2251.7991 {y} 2465.2361 {z} -7.2173 {time} 8000

:IMPND_19862
return 
if 
  $impound_area == 3
goto_if_false @IMPND_19927
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19927
task_kill_char_on_foot $cam_vec_x(12@,8i) {target} $scplayer

:IMPND_19927
return 

:IMPND_19929
if 
  $impound_area == 3
goto_if_false @IMPND_20421
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20421
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20421
if 
  $z > 8.9783
goto_if_false @IMPND_20421
if 
  2481.7959 > $y
goto_if_false @IMPND_20188
if 
  is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_20188
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 2239.573 {leftBottomY} 2448.616 {rightTopX} 2242.363 {rightTopY} 2449.8511 {drawSphere} False
goto_if_false @IMPND_20188
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2240.0339 {y} 2449.418 {z} 9.8203 {speed} MoveState.Walk {time} -2
23@ = 1

:IMPND_20188
if 
  $y >= 2481.7959
goto_if_false @IMPND_20421
if 
  is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
goto_if_false @IMPND_20421
if and
  not is_char_in_area_2d $scplayer {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
  not locate_char_any_means_char_3d $cam_vec_x(12@,8i) {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPND_20421
$10705 = open_sequence_task 
task_go_straight_to_coord -1 {x} 2250.155 {y} 2486.405 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2247.823 {y} 2487.0559 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2246.22 {y} 2488.3201 {z} 9.8203 {speed} MoveState.Walk {time} -2
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705
23@ = 1

:IMPND_20421
if 
  $impound_area == 1
goto_if_false @IMPND_20891
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20891
14@ = get_script_task_status $cam_vec_x(12@,8i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20891
if 
  $z > 12.0
goto_if_false @IMPND_20891
if 
  1569.0 > $x
goto_if_false @IMPND_20687
if 
  is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 1543.749 {leftBottomY} -1632.588 {rightTopX} 1544.821 {rightTopY} -1631.425 {drawSphere} False
goto_if_false @IMPND_20680
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 1544.9659 {leftBottomY} -1632.88 {rightTopX} 1546.495 {rightTopY} -1630.646 {drawSphere} False
goto_if_false @IMPND_20680
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 1545.881 {y} -1631.918 {z} 12.3905 {speed} MoveState.Walk {time} -2
23@ = 1

:IMPND_20680
goto @IMPND_20891

:IMPND_20687
if 
  is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 1581.953 {leftBottomY} -1637.569 {rightTopX} 1577.376 {rightTopY} -1632.9919 {drawSphere} False
goto_if_false @IMPND_20891
if and
  not is_char_in_area_2d $scplayer {leftBottomX} 1581.953 {leftBottomY} -1637.569 {rightTopX} 1577.376 {rightTopY} -1632.9919 {drawSphere} False
  not locate_char_any_means_char_3d $cam_vec_x(12@,8i) {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPND_20891
flush_route 
extend_route 1578.517 {y} -1636.495 {z} 12.5545
extend_route 1576.366 {y} -1636.395 {z} 12.5539
extend_route 1573.981 {y} -1632.764 {z} 12.3905
$10705 = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task $10705
perform_sequence_task $cam_vec_x(12@,8i) {sequence} $10705
clear_sequence_task $10705
23@ = 1

:IMPND_20891
return 
if 
  $impound_area == 3
goto_if_false @IMPND_21076
if 
  12@ == 0
goto_if_false @IMPND_21076
if 
  not is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_21076
if 
  not is_char_in_area_2d $cam_vec_x(12@,8i) {leftBottomX} 2239.573 {leftBottomY} 2448.616 {rightTopX} 2242.363 {rightTopY} 2449.8511 {drawSphere} False
goto_if_false @IMPND_21048
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2240.0339 {y} 2449.418 {z} 9.8203 {speed} MoveState.Walk {time} -2
goto @IMPND_21076

:IMPND_21048
task_go_straight_to_coord $cam_vec_x(12@,8i) {x} 2238.5691 {y} 2449.417 {z} 10.0372 {speed} MoveState.Walk {time} -2

:IMPND_21076
return 

:IMPND_21078
$10703 = 0
if 
  $impound_area == 3
goto_if_false @IMPND_21231
if and
  $player_z > 3.9517
  14.0 > $player_z
goto_if_false @IMPND_21203
if and
  $player_x > 2238.0
  2299.0 > $player_x
goto_if_false @IMPND_21203
if and
  $player_y > 2430.916
  2502.6809 > $player_y
goto_if_false @IMPND_21203
$10703 = 1

:IMPND_21203
if 
  3.9517 >= $player_z
goto_if_false @IMPND_21231
$10703 = 1

:IMPND_21231
if 
  $impound_area == 2
goto_if_false @IMPND_21449
if and
  $player_x > -1645.533
  -1572.785 > $player_x
goto_if_false @IMPND_21349
if and
  $player_y > 646.8482
  761.5287 > $player_y
goto_if_false @IMPND_21349
if and
  11.4577 > $player_z
  $player_z > -7.3486
goto_if_false @IMPND_21349
$10703 = 1

:IMPND_21349
if and
  $player_x > -1701.0129
  -1640.991 > $player_x
goto_if_false @IMPND_21449
if and
  $player_y > 674.5198
  697.4974 > $player_y
goto_if_false @IMPND_21449
if and
  $player_z > 6.096
  26.5941 > $player_z
goto_if_false @IMPND_21449
$10703 = 1

:IMPND_21449
if 
  $impound_area == 1
goto_if_false @IMPND_21733
if 
  11.7746 > $player_z
goto_if_false @IMPND_21564
if and
  $player_x > 1524.017
  1612.4041 > $player_x
goto_if_false @IMPND_21557
if and
  -1633.573 > $player_y
  $player_y > -1722.036
goto_if_false @IMPND_21557
$10703 = 1

:IMPND_21557
goto @IMPND_21633

:IMPND_21564
if and
  $player_x > 1544.427
  1607.588 > $player_x
goto_if_false @IMPND_21633
if and
  -1603.015 > $player_y
  $player_y > -1637.697
goto_if_false @IMPND_21633
$10703 = 1

:IMPND_21633
if and
  $player_x > 1581.407
  1605.203 > $player_x
goto_if_false @IMPND_21733
if and
  $player_y > -1666.734
  -1637.67 > $player_y
goto_if_false @IMPND_21733
if and
  $player_z > 4.8451
  13.6917 > $player_z
goto_if_false @IMPND_21733
$10703 = 1

:IMPND_21733
return 

:IMPND_21735
if or
  not is_char_in_any_police_vehicle $scplayer
  $10539(12@,8i) == 1
goto_if_false @IMPND_22011
if 
  has_char_spotted_char $cam_vec_x(12@,8i) {target} $scplayer
goto_if_false @IMPND_22011
$x, $y, $z = get_char_coordinates $cam_vec_x(12@,8i)
28@ = get_char_heading $cam_vec_x(12@,8i)
set_lvar_float_to_var_float 25@ = $player_x
sub_float_var_from_float_lvar 25@ -= $x
set_lvar_float_to_var_float 26@ = $player_y
sub_float_var_from_float_lvar 26@ -= $y
27@ = get_heading_from_vector_2d 25@ {y} 26@
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  -180.0 > 28@
goto_if_false @IMPND_21897
28@ += 360.0

:IMPND_21897
28@ = abs_lvar_float 
if 
  5@ == 0
goto_if_false @IMPND_21969
if 
  90.0 > 28@
goto_if_false @IMPND_21962
$10733, $door_rotation, $10735 = get_char_coordinates $scplayer
$10704 = 1

:IMPND_21962
goto @IMPND_22011

:IMPND_21969
if 
  120.0 > 28@
goto_if_false @IMPND_22011
$10733, $door_rotation, $10735 = get_char_coordinates $scplayer
$10704 = 1

:IMPND_22011
return 

:IMPND_22013
$10719 = 0
$10703 = 0
$10547 = 0
$10539[0] = 0
$10539[1] = 0
$10539[2] = 0
$10539[3] = 0
$10539[4] = 0
$10539[5] = 0
$10539[6] = 0
$10539[7] = 0
0@ = 0
1@ = 0
clear_mission_audio MissionAudioSlot.Slot4
mark_model_as_no_longer_needed $cop_h
mark_model_as_no_longer_needed $10701
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #POLICE_BARRIER
mark_model_as_no_longer_needed #SFCOPDR
mark_model_as_no_longer_needed #KMB_SHUTTER
remove_decision_maker 2@
delete_object 9@
delete_object 10@
delete_object 6@
delete_object 7@
16@ = 0

:IMPND_22170
if 
  8 > 16@
goto_if_false @IMPND_22253
if 
  does_char_exist $cam_vec_x(16@,8i)
goto_if_false @IMPND_22217
delete_char $cam_vec_x(16@,8i)

:IMPND_22217
$10706(16@,8i) = 0
$crane2_sound_flag(16@,8i) = 0
16@ += 1
goto @IMPND_22170

:IMPND_22253
16@ = 0

:IMPND_22260
if 
  4 > 16@
goto_if_false @IMPND_22321
if 
  not is_car_dead $imp_sequence(16@,4i)
goto_if_false @IMPND_22307
mark_car_as_no_longer_needed $imp_sequence(16@,4i)

:IMPND_22307
16@ += 1
goto @IMPND_22260

:IMPND_22321
mark_char_as_no_longer_needed 24@
$10720 = 0
$10721 = 0
$10722 = 0
$10723 = 0
$dock_crane_travel_vec_y = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 72 (VALET)---------------

:VALET
script_name 'VALET'
8@ = 0
5@ = 1
$can_script_be_cleaned = 1
$valet_scene_running = 0
$valet_can_be_created[0] = 1
$valet_can_be_created[1] = 1
$valet_can_be_created[2] = 1
4@ = 0
if 
  8@ == 99
goto_if_false @VALET_400
create_char PedType.CivMale {modelId} 189 {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {var_handle} $valet(6@,3i)
$door_height = create_char PedType.CivMale {modelId} 189 {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f)
$valet_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$valet_car[1] = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$drop_off_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$valet_spawn_h2 = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$sc3_missioncar = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$valet_mission_flag = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$a_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
19@ = add_blip_for_car $valet_pickup_car
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
7@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@

:VALET_400
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_421
delete_char $valet[0]

:VALET_421
set_var_int_to_constant $valet_task[0] = 1
$valet_can_be_created[0] = 1
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_456
delete_char $valet[1]

:VALET_456
set_var_int_to_constant $valet_task[1] = 1
$valet_can_be_created[1] = 1
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_491
delete_char $valet[2]

:VALET_491
set_var_int_to_constant $valet_task[2] = 1
$valet_can_be_created[2] = 1
$a_ped[0] = 330.4229
$a_ped[1] = 328.9663
$a_ped[2] = 326.4376
$a_char[0] = -1510.783
$a_char[1] = -1512.467
$a_char[2] = -1515.406
$force_a_one_off_car[0] = 35.0247
$force_a_one_off_car[1] = 35.0247
$force_a_one_off_car[2] = 35.0313
$val_h[0] = 222.0
$val_h[1] = 222.0
$val_h[2] = 222.0
$10758[0] = -1761.0291
$10758[1] = -1759.9139
$10758[2] = -1749.713
$10761[0] = 959.5504
$10761[1] = 960.2669
$10761[2] = 960.1956
$10764[0] = 23.8828
$10764[1] = 23.8828
$10764[2] = 23.8906
$10767[0] = 204.3268
$10767[1] = 199.167
$10767[2] = 142.3291
$10770[0] = 2029.7581
$10770[1] = 2027.666
$10770[2] = 2026.394
$10773[0] = 1905.943
$10782[1] = 336.9336
$valet_vg_z[1] = 323.919
$10790[1] = -1531.027
$10794[1] = -1504.174
$10782[2] = -1768.295
$valet_vg_z[2] = -1729.094
$10790[2] = 958.9591
$10794[2] = 942.184
$10782[3] = 2050.8811
$valet_vg_z[3] = 2016.906
$10790[3] = 1958.541
$10794[3] = 1871.0649
$10798[1] = 336.0477
$10806[1] = -1452.225
$10814[1] = 31.9445
$10802[1] = 271.6679
$10810[1] = -1550.2419
$10818[1] = 23.1681
$10798[2] = -1760.178
$10806[2] = 972.2405
$10814[2] = 16.1633
$10802[2] = -1679.605
$10810[2] = 1064.293
$10818[2] = 24.8629
$10798[3] = 1968.502
$10806[3] = 1755.079
$10814[3] = 11.4898
$10802[3] = 1917.811
$10810[3] = 1788.146
$10818[3] = 17.3118
$10834[1] = 363.3463
$10838[1] = -1522.373
$10842[1] = 393.1729
$10846[1] = -1479.321
$10850[1] = 125.0
$10854[1] = 324.8593
$10858[1] = -1591.327
$10862[1] = 324.8593
$10866[1] = -1591.327
$10870[1] = 338.0
$10854[2] = -1743.524
$10858[2] = 930.9304
$10862[2] = -1780.0811
$10866[2] = 908.4018
$10870[2] = 270.0
$10834[2] = -1737.715
$10838[2] = 943.7812
$10842[2] = -1704.2159
$10846[2] = 911.4586
$10850[2] = 45.0
$10834[3] = 2067.5291
$10838[3] = 1957.2889
$10842[3] = 2097.2629
$10846[3] = 1976.0
$10850[3] = 120.0
$10854[3] = 2051.5359
$10858[3] = 1933.6851
$10862[3] = 2062.8181
$10866[3] = 1905.085
$10870[3] = 7.0
$10874[1] = 332.8306
$10878[1] = -1516.251
$10882[1] = 34.8606
$10874[2] = -1754.514
$10878[2] = 953.5991
$10882[2] = 23.75
$10874[3] = 2035.729
$10878[3] = 1912.09
$10882[3] = 11.1751
$10822[0] = -1748.376
$10826[0] = 985.3066
$10830[0] = 17.9009
$10822[1] = 330.7534
$10826[1] = -1474.608
$10830[1] = 24.9126
$10822[2] = -1738.28
$10826[2] = 985.5498
$10830[2] = 16.6718
$10822[3] = 2061.3369
$10826[3] = 1808.9561
$10830[3] = 9.6719
$10886[1] = 403.2297
$10890[1] = -1475.298
$10894[1] = 30.0032
$10898[1] = 128.9467
$10902[1] = 341.1339
$10906[1] = -1556.116
$10910[1] = 31.9903
$10914[1] = 328.7578
$10886[2] = -1717.204
$10890[2] = 962.7901
$10894[2] = 23.7474
$10898[2] = 179.9692
$10902[2] = -1791.269
$10906[2] = 886.3627
$10910[2] = 23.75
$10914[2] = 359.2426
$10886[3] = 2073.563
$10890[3] = 1879.736
$10894[3] = 10.4288
$10898[3] = 45.5873
$10902[3] = 2084.156
$10906[3] = 1965.573
$10910[3] = 9.9974
$10914[3] = 117.4401
remove_decision_maker 7@
7@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 7@ {event} Event.Damage {taskId} TaskId.None {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 7@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 20.0 {like} 20.0 {dislike} 20.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 7@ {event} Event.ShotFired {taskId} TaskId.None {respect} 0.0 {hate} 80.0 {like} 80.0 {dislike} 80.0 {inCar} True {onFoot} True
$valet_scene_running = 1

:VALET_1959
wait 0
if 
  is_player_playing $player1
goto_if_false @VALET_2291
if 
  $force_valet_cleanup == 1
goto_if_false @VALET_2004
gosub @VALET_16796

:VALET_2004
if 
  $last_player_x <> 1
goto_if_false @VALET_2284
if 
  not is_char_dead $scplayer
goto_if_false @VALET_2284
if 
  5@ == 1
goto_if_false @VALET_2095
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_2088
5@ = 0

:VALET_2088
goto @VALET_2127

:VALET_2095
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_2127
5@ = 1

:VALET_2127
gosub @VALET_2371
if 
  $valet_scene_running == 1
goto_if_false @VALET_2284
gosub @VALET_3854
gosub @VALET_7805
gosub @VALET_12963
gosub @VALET_16013
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_2215
set_lvar_int_to_lvar_int 8@ = TIMERA
8@ += 2300

:VALET_2215
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_2249
set_lvar_int_to_lvar_int 9@ = TIMERA
9@ += 100

:VALET_2249
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_2284
set_lvar_int_to_lvar_int 10@ = TIMERA
10@ += 900

:VALET_2284
goto @VALET_2364

:VALET_2291
if 
  $valet_scene_running == 1
goto_if_false @VALET_2364
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2357
$player_on_valet_mission = 0
$onmission = 0
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:VALET_2357
gosub @VALET_16796

:VALET_2364
goto @VALET_1959

:VALET_2371
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 16@
goto_if_false @VALET_3353
set_lvar_int_to_lvar_int 16@ = TIMERA
16@ += 1000
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$val_Area = 0
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1893.4189 {leftBottomY} 1119.2271 {rightTopX} -1617.915 {rightTopY} 828.85 {drawSphere} False
goto_if_false @VALET_2472
$val_Area = 2

:VALET_2472
if 
  $val_Area == 0
goto_if_false @VALET_3118
$valet_spawn_z2 = get_area_visible 
if 
  $valet_spawn_z2 == 0
goto_if_false @VALET_2894
if 
  $10921 == 0
goto_if_false @VALET_2887
if 
  $10922 == 0
goto_if_false @VALET_2670
if 
  $valet_scene_running == 1
goto_if_false @VALET_2663
if 
  $force_valet_on_mission <> 1
goto_if_false @VALET_2663
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2649
$player_on_valet_mission = 0
$onmission = 0
print 'VAL_A9' {time} 4000 {flag} 1
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle

:VALET_2649
gosub @VALET_16796
$valet_scene_running = 0

:VALET_2663
goto @VALET_2887

:VALET_2670
$10921 = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_2747
freeze_char_position $valet[0] {state} True
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_2747
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_2747
freeze_car_position $car {state} True

:VALET_2747
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_2817
freeze_char_position $valet[1] {state} True
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_2817
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_2817
freeze_car_position $car {state} True

:VALET_2817
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_2887
freeze_char_position $valet[2] {state} True
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_2887
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_2887
freeze_car_position $car {state} True

:VALET_2887
goto @VALET_3111

:VALET_2894
$10921 = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_2971
freeze_char_position $valet[0] {state} True
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_2971
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_2971
freeze_car_position $car {state} True

:VALET_2971
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_3041
freeze_char_position $valet[1] {state} True
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_3041
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_3041
freeze_car_position $car {state} True

:VALET_3041
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_3111
freeze_char_position $valet[2] {state} True
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_3111
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_3111
freeze_car_position $car {state} True

:VALET_3111
goto @VALET_3353

:VALET_3118
if 
  $10921 == 1
goto_if_false @VALET_3353
$10921 = 0
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_3213
freeze_char_position $valet[0] {state} False
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_3213
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_3213
freeze_car_position $car {state} False

:VALET_3213
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_3283
freeze_char_position $valet[1] {state} False
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_3283
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_3283
freeze_car_position $car {state} False

:VALET_3283
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_3353
freeze_char_position $valet[2] {state} False
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_3353
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_3353
freeze_car_position $car {state} False

:VALET_3353
if 
  $10740 == 1
goto_if_false @VALET_3597
if 
  $val_Area == 1
goto_if_false @VALET_3444
if 
  not locate_char_any_means_3d $scplayer {x} 328.1585 {y} -1512.8879 {z} 35.0247 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3444
$10740 = 0

:VALET_3444
if 
  $val_Area == 2
goto_if_false @VALET_3517
if 
  not locate_char_any_means_3d $scplayer {x} -1753.936 {y} 961.8587 {z} 23.8906 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3517
$10740 = 0

:VALET_3517
if 
  $val_Area == 3
goto_if_false @VALET_3590
if 
  not locate_char_any_means_3d $scplayer {x} 2021.337 {y} 1918.236 {z} 11.3438 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3590
$10740 = 0

:VALET_3590
goto @VALET_3852

:VALET_3597
if 
  $onmission <> 1
goto_if_false @VALET_3852
if 
  $valet_oddjob_opened == 1
goto_if_false @VALET_3852
if 
  $player_on_valet_mission == 0
goto_if_false @VALET_3852
if 
  not is_char_dead $scplayer
goto_if_false @VALET_3852
if 
  $val_Area == 2
goto_if_false @VALET_3852
if 
  locate_char_on_foot_3d $scplayer {x} -1753.936 {y} 961.8587 {z} 23.8906 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @VALET_3852
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_3836
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @VALET_3813
print_now 'VAL_A7' {time} 5000 {flag} 1
$player_on_valet_mission = 1
$onmission = 1
goto @VALET_3829

:VALET_3813
print_now 'VAL_C1' {time} 1000 {flag} 1

:VALET_3829
goto @VALET_3852

:VALET_3836
print_now 'VAL_90' {time} 1000 {flag} 1

:VALET_3852
return 

:VALET_3854
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_7803
if 
  is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @VALET_3894
switch_emergency_services True

:VALET_3894
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_3958
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
print 'VAL_B1' {time} 5000 {flag} 1
$10926 = 8

:VALET_3958
if 
  $valet_spawn_h2 <> 0
goto_if_false @VALET_4102
if 
  not does_vehicle_exist $valet_spawn_h2
goto_if_false @VALET_4047
if 
  $10927 > 0
goto_if_false @VALET_4033
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$10926 = 8

:VALET_4033
$valet_spawn_h2 = 0
goto @VALET_4102

:VALET_4047
if 
  is_car_dead $valet_spawn_h2
goto_if_false @VALET_4102
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
print 'VAL_B6' {time} 5000 {flag} 1
$10926 = 8

:VALET_4102
if 
  $stored_shop_time == 0
goto_if_false @VALET_4152
if 
  not is_car_dead $valet_mission_flag
goto_if_false @VALET_4152
$10741 = get_car_blocking_car $valet_mission_flag
set_var_int_to_var_int $last_player_y = $10741

:VALET_4152
if 
  $10926 == 0
goto_if_false @VALET_4575
if 
  has_model_loaded 189
goto_if_false @VALET_4570
if 
  is_char_dead $valet[0]
goto_if_false @VALET_4263
$valet[0] = create_char PedType.CivMale {modelId} 189 {x} -1783.804 {y} 968.6431 {z} 23.7343
set_char_decision_maker $valet[0] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[0] {state} True
set_char_suffers_critical_hits $valet[0] {state} False
$valet_task[0] = 2
0@ = 2

:VALET_4263
if 
  is_char_dead $valet[1]
goto_if_false @VALET_4340
$valet[1] = create_char PedType.CivMale {modelId} 189 {x} -1782.65 {y} 965.0251 {z} 23.8906
set_char_decision_maker $valet[1] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[1] {state} True
set_char_suffers_critical_hits $valet[1] {state} False
$valet_task[1] = 2
1@ = 2

:VALET_4340
if 
  is_char_dead $valet[2]
goto_if_false @VALET_4417
$valet[2] = create_char PedType.CivMale {modelId} 189 {x} -1783.731 {y} 965.4009 {z} 23.8961
set_char_decision_maker $valet[2] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[2] {state} True
set_char_suffers_critical_hits $valet[2] {state} False
$valet_task[2] = 2
2@ = 2

:VALET_4417
set_ped_density_multiplier 0.3
switch_emergency_services False
$valet_spawn_h2 = 0
load_mission_text 'VALET1'
clear_prints 
print_big 'VAL_A7' {time} 3000 {style} TextStyle.Middle
$total_cars_parked = 0
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 4000
$10926 = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_4517
set_char_cant_be_dragged_out $valet[0] {state} True

:VALET_4517
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_4540
set_char_cant_be_dragged_out $valet[1] {state} True

:VALET_4540
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_4563
set_char_cant_be_dragged_out $valet[2] {state} True

:VALET_4563
goto @VALET_4575

:VALET_4570
request_model 189

:VALET_4575
if 
  $10926 == 1
goto_if_false @VALET_4642
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4642
$10923 = 3
$10925 = 2
18@ = 1
clear_prints 
$10926 = 2

:VALET_4642
if 
  $10926 == 2
goto_if_false @VALET_4931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4931
clear_prints 
print_with_number_big 'VAL_60' {num} 18@ {duration} 4000 {style} TextStyle.Middle
print_with_2_numbers_now 'VAL_76' {num1} $10923 {num2} $10925 {duration} 4000 {style} TextStyle.Middle
$10925 *= 60000
clear_onscreen_counter $10925
clear_onscreen_counter $10923
display_nth_onscreen_counter_with_string $10923 {display} CounterDisplay.Number {slot} 1 {text} 'VAL_A3'
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000
$10926 = 4
if 
  $valet_task[0] == 6
goto_if_false @VALET_4815
$valet_task[0] = 1
$valet_mission_dead = 0

:VALET_4815
if 
  $valet_task[1] == 6
goto_if_false @VALET_4847
$valet_task[1] = 1
$1898 = 0

:VALET_4847
if 
  $valet_task[2] == 6
goto_if_false @VALET_4879
$valet_task[2] = 1
$1899 = 0

:VALET_4879
if 
  $drop_off_car <> 0
goto_if_false @VALET_4905
set_var_int_to_var_int $valet_mission_flag = $drop_off_car

:VALET_4905
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_4931
set_var_int_to_var_int $valet_mission_flag = $valet_pickup_car

:VALET_4931
if 
  $10926 == 3
goto_if_false @VALET_4975
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4975
$10926 = 4

:VALET_4975
if and
  is_char_dead $valet[0]
  $valet_mission_dead == 0
  $valet_task[0] == 6
goto_if_false @VALET_5061
$valet_mission_dead = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5045
$10925 = 0

:VALET_5045
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5061
if and
  is_char_dead $valet[1]
  $1898 == 0
  $valet_task[1] == 6
goto_if_false @VALET_5147
$1898 = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5131
$10925 = 0

:VALET_5131
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5147
if and
  is_char_dead $valet[2]
  $1899 == 0
  $valet_task[2] == 6
goto_if_false @VALET_5233
$1899 = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5217
$10925 = 0

:VALET_5217
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5233
if 
  $10926 > 3
goto_if_false @VALET_5310
if 
  $10925 == 0
goto_if_false @VALET_5310
clear_prints 
print 'VAL_47' {time} 4000 {flag} 1
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$10926 = 8

:VALET_5310
if 
  $10926 == 4
goto_if_false @VALET_5460
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_5460
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_5460
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $valet_mission_flag
goto_if_false @VALET_5460
$10736 = get_driver_of_car $valet_pickup_car
if 
  $10736 == -1
goto_if_false @VALET_5460
$10926 = 20
print 'VAL_84' {time} 4000 {flag} 1
19@ = add_blip_for_car $valet_pickup_car
set_blip_as_friendly 19@ {state} True
set_var_int_to_var_int $valet_spawn_h2 = $valet_pickup_car
$10926 = 5

:VALET_5460
if 
  $10926 == 5
goto_if_false @VALET_5838
if 
  not is_car_dead $valet_spawn_h2
goto_if_false @VALET_5812
$10736 = get_driver_of_car $valet_spawn_h2
if 
  $10736 <> -1
goto_if_false @VALET_5805
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_5728
clear_prints 
print 'VAL_25' {time} 4000 {flag} 1
remove_blip 19@
$10927 = 60
set_car_health $valet_spawn_h2 {health} 1000
clear_onscreen_counter $10927
display_nth_onscreen_counter_with_string $10927 {display} CounterDisplay.Number {slot} 2 {text} 'VAL_A17'
21@, 22@, 23@ = get_parking_node_in_area $10798($val_Area,4f) {leftBottomY} $10806($val_Area,4f) {leftBottomZ} $10814($val_Area,4f) {rightTopX} $10802($val_Area,4f) {rightTopY} $10810($val_Area,4f) {rightTopZ} $10818($val_Area,4f)
clear_area 21@ {y} 22@ {z} 23@ {radius} 5.0 {clearParticles} False
set_var_float_to_lvar_float $dont_clear_valets = 21@
set_var_float_to_lvar_float $valet_cars_to_park = 22@
set_var_float_to_lvar_float $valet_mission_car = 23@
remove_blip 20@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
$10926 = 6
goto @VALET_5805

:VALET_5728
if or
  is_int_var_equal_to_int_var $10736 == $valet[0]
  is_int_var_equal_to_int_var $10736 == $valet[1]
  is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_5805
remove_blip 19@
print 'VAL_79' {time} 4000 {flag} 1
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_5805
goto @VALET_5838

:VALET_5812
remove_blip 19@
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_5838
if 
  $10926 == 6
goto_if_false @VALET_7393
if 
  not is_char_dead $scplayer
goto_if_false @VALET_7393
if 
  not is_car_dead $valet_spawn_h2
goto_if_false @VALET_7370
$10927 = get_car_health $valet_spawn_h2
$frozen_peds = 17
sub_int_lvar_from_int_var $frozen_peds -= 18@
$frozen_peds *= 20
$10927 += -1000
abs_var_int $10927
cset_lvar_float_to_var_int 13@ =# $10927
cset_lvar_float_to_var_int 27@ =# $frozen_peds
set_lvar_float_to_lvar_float 28@ = 13@
div_float_lvar_by_float_lvar 28@ /= 27@
if 
  28@ > 1.0
goto_if_false @VALET_5994
28@ = 1.0

:VALET_5994
28@ -= 1.0
28@ = abs_lvar_float 
28@ *= 45.0
cset_var_int_to_lvar_float $10927 =# 28@
if 
  $10927 > 45
goto_if_false @VALET_6052
$10927 = 45

:VALET_6052
if 
  0 > $10927
goto_if_false @VALET_6077
$10927 = 0

:VALET_6077
$10736 = get_driver_of_car $valet_spawn_h2
if 
  not is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_6136
remove_blip 20@
19@ = add_blip_for_car $valet_spawn_h2
set_blip_as_friendly 19@ {state} True
clear_onscreen_counter $10927
$10926 = 7

:VALET_6136
if and
  $10736 <> -1
  not is_int_var_equal_to_int_var $10736 == $scplayer
  not is_int_var_equal_to_int_var $10736 == $valet[0]
  not is_int_var_equal_to_int_var $10736 == $valet[1]
  not is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_6226
$valet_spawn_h2 = 0
remove_blip 19@
clear_onscreen_counter $10927
$10926 = 4
print 'VAL_A4' {time} 4000 {flag} 1

:VALET_6226
if 
  is_char_in_any_car $scplayer
goto_if_false @VALET_6277
if 
  not is_char_in_car $scplayer {vehicle} $valet_spawn_h2
goto_if_false @VALET_6277
print_now 'VAL_A18' {time} 1000 {flag} 1

:VALET_6277
if 
  locate_stopped_car_3d $valet_spawn_h2 {x} 21@ {y} 22@ {z} 23@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @VALET_7363
remove_blip 20@
set_car_engine_broken $valet_spawn_h2 {state} True
mark_car_as_no_longer_needed $valet_spawn_h2
clear_onscreen_counter $10927
set_lvar_int_to_var_int 6@ = $10925
$x, $y, $z, 24@ = get_closest_car_node_with_heading 21@ {y} 22@ {z} 23@
$x, $y, $z = get_car_coordinates $valet_spawn_h2
26@ = get_distance_between_coords_2d $x {fromY} $y {toX} 21@ {toZ} 22@
25@ = get_car_heading $valet_spawn_h2
24@ = abs_lvar_float 
if 
  24@ > 180.0
goto_if_false @VALET_6447
24@ -= 180.0

:VALET_6447
25@ = abs_lvar_float 
if 
  25@ > 180.0
goto_if_false @VALET_6483
25@ -= 180.0

:VALET_6483
set_lvar_float_to_lvar_float 27@ = 24@
sub_float_lvar_from_float_lvar 27@ -= 25@
27@ = abs_lvar_float 
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ *= 2.0
29@ = 45.0
sub_float_lvar_from_float_lvar 29@ -= 13@
set_lvar_float_to_lvar_float 28@ = 27@
div_float_lvar_by_float_lvar 28@ /= 29@
13@ = 1.0
sub_float_lvar_from_float_lvar 13@ -= 28@
if 
  0.0 > 13@
goto_if_false @VALET_6605
13@ = 0.0

:VALET_6605
13@ *= 10.0
cset_var_int_to_lvar_float $this_b =# 13@
cset_var_int_to_lvar_float $area_visible =# 13@
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ -= 20.0
13@ = abs_lvar_float 
13@ /= 6.0
set_lvar_float_to_lvar_float 27@ = 26@
div_float_lvar_by_float_lvar 27@ /= 13@
28@ = 1.0
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  0.0 > 28@
goto_if_false @VALET_6729
28@ = 0.0

:VALET_6729
28@ *= 5.0
cset_var_int_to_lvar_float $frozen_peds =# 28@
set_var_int_to_var_int $this_a = $frozen_peds
add_int_var_to_int_var $area_visible += $frozen_peds
if and
  $area_visible <> 1
  $10927 <> 1
goto_if_false @VALET_6810
print_with_2_numbers_now 'VAL_A10' {num1} $area_visible {num2} $10927 {duration} 2500 {style} TextStyle.Middle

:VALET_6810
if and
  $area_visible == 1
  $10927 <> 1
goto_if_false @VALET_6857
print_with_2_numbers_now 'VAL_A12' {num1} $area_visible {num2} $10927 {duration} 2500 {style} TextStyle.Middle

:VALET_6857
if and
  $area_visible <> 1
  $10927 == 1
goto_if_false @VALET_6904
print_with_2_numbers_now 'VAL_A11' {num1} $area_visible {num2} $10927 {duration} 2500 {style} TextStyle.Middle

:VALET_6904
if and
  $area_visible == 0
  $10927 == 0
goto_if_false @VALET_6951
print_with_2_numbers_now 'VAL_A13' {num1} $area_visible {num2} $10927 {duration} 2500 {style} TextStyle.Middle

:VALET_6951
set_var_int_to_var_int $frozen_peds = $area_visible
add_int_var_to_int_var $frozen_peds += $10927
if 
  $frozen_peds <> 1
goto_if_false @VALET_7011
print_with_number 'VAL_A14' {num} $frozen_peds {duration} 2500 {flag} 1
goto @VALET_7030

:VALET_7011
print_with_number 'VAL_A15' {num} $frozen_peds {duration} 2500 {flag} 1

:VALET_7030
print 'VAL_A16' {time} 3000 {flag} 1
$10927 *= 1000
$area_visible *= 1000
add_int_var_to_int_var $10925 += $10927
add_int_var_to_int_var $10925 += $area_visible
$10927 = 0
$valet_spawn_h2 = 0
$10923 -= 1
$total_cars_parked += 1
$frozen_peds = get_int_stat StatId.ValetCarsParked
if 
  is_int_var_greater_than_int_var $total_cars_parked > $frozen_peds
goto_if_false @VALET_7141
set_int_stat StatId.ValetCarsParked {value} $total_cars_parked

:VALET_7141
if 
  $10923 == 0
goto_if_false @VALET_7356
clear_prints 
clear_onscreen_timer $10925
clear_onscreen_counter $10923
18@ += 1
$10926 = 2
set_var_int_to_lvar_int $10923 = 18@
$10923 += 2
$10925 = 2
if 
  6 > 18@
goto_if_false @VALET_7324
set_var_int_to_lvar_int $frozen_peds = 18@
$frozen_peds -= 1
print_with_number_big 'VAL_62' {num} $frozen_peds {duration} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $frozen_peds = 18@
$frozen_peds *= 100
$frozen_peds -= 100
print_with_number 'VAL_65' {num} $frozen_peds {duration} 4000 {flag} 1
add_score $player1 {money} $frozen_peds
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000

:VALET_7324
if 
  18@ == 6
goto_if_false @VALET_7349
gosub @VALET_16384

:VALET_7349
goto @VALET_7363

:VALET_7356
$10926 = 4

:VALET_7363
goto @VALET_7393

:VALET_7370
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$10926 = 8

:VALET_7393
if 
  $10926 == 7
goto_if_false @VALET_7638
if 
  not is_car_dead $valet_spawn_h2
goto_if_false @VALET_7612
$10736 = get_driver_of_car $valet_spawn_h2
if 
  $10736 <> -1
goto_if_false @VALET_7605
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_7528
remove_blip 19@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
clear_onscreen_counter $10927
display_nth_onscreen_counter_with_string $10927 {display} CounterDisplay.Number {slot} 2 {text} 'VAL_A17'
$10926 = 6
goto @VALET_7605

:VALET_7528
if or
  is_int_var_equal_to_int_var $10736 == $valet[0]
  is_int_var_equal_to_int_var $10736 == $valet[1]
  is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_7605
remove_blip 19@
print 'VAL_79' {time} 4000 {flag} 1
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_7605
goto @VALET_7638

:VALET_7612
remove_blip 19@
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_7638
if 
  $10926 == 8
goto_if_false @VALET_7803
remove_blip 19@
remove_blip 20@
clear_onscreen_counter $10927
clear_onscreen_timer $10925
clear_onscreen_counter $10923
set_ped_density_multiplier 1.0
switch_emergency_services True
$player_on_valet_mission = 0
$onmission = 0
$10926 = 0
$valet_spawn_h2 = 0
$10740 = 1
set_wanted_multiplier 1.0
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_7757
set_char_cant_be_dragged_out $valet[0] {state} False

:VALET_7757
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_7780
set_char_cant_be_dragged_out $valet[1] {state} False

:VALET_7780
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_7803
set_char_cant_be_dragged_out $valet[2] {state} False

:VALET_7803
return 

:VALET_7805
6@ = 0

:VALET_7812
if 
  3 > 6@
goto_if_false @VALET_12961
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_7948
if 
  is_char_stuck_under_car $valet(6@,3i)
goto_if_false @VALET_7948
3@ = get_script_task_status $valet(6@,3i) {taskId} 2089
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_7948
clear_char_tasks_immediately $valet(6@,3i)
task_die_named_anim $valet(6@,3i) {animationName} "KO_SKID_FRONT" {animationFile} "PED" {blendSpeed} 1000.0 {time} 0

:VALET_7948
if and
  $valet_task(6@,3i) <> 4
  $valet_task(6@,3i) <> 5
goto_if_false @VALET_8358
if and
  not is_char_dead $valet(6@,3i)
  not is_char_dead $scplayer
goto_if_false @VALET_8358
if 
  is_char_responding_to_event $valet(6@,3i) {event} Event.Damage
goto_if_false @VALET_8307
if or
  locate_char_any_means_char_3d $scplayer {target} $valet(6@,3i) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  has_char_been_damaged_by_char $valet(6@,3i) {handle} $scplayer
goto_if_false @VALET_8291
$valet_task(6@,3i) = 5
$10918 += 1
clear_char_tasks $valet(6@,3i)
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_8166
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[0] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8166
$valet_task[0] = 5

:VALET_8166
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_8225
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[1] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8225
$valet_task[1] = 5

:VALET_8225
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_8284
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[2] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8284
$valet_task[2] = 5

:VALET_8284
goto @VALET_8307

:VALET_8291
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_8307
if 
  $valet_task(6@,3i) <> 9
goto_if_false @VALET_8358
if 
  is_int_var_equal_to_constant $valet_event == 7
goto_if_false @VALET_8358
$valet_task(6@,3i) = 9

:VALET_8358
if 
  $valet_task(6@,3i) <> 1
goto_if_false @VALET_8667
if 
  does_char_exist $valet(6@,3i)
goto_if_false @VALET_8667
if 
  is_char_dead $valet(6@,3i)
goto_if_false @VALET_8667
$x, $y, $z = get_dead_char_coordinates $valet(6@,3i)
if 
  $valet_task(6@,3i) <> 6
goto_if_false @VALET_8647
if 
  not is_char_dead $scplayer
goto_if_false @VALET_8539
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8539
$valet_task[0] = 5
$valet_task[1] = 5
$valet_task[2] = 5

:VALET_8539
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_8647
if or
  is_float_var_greater_than_float_var $10798($val_Area,4f) > $x
  is_float_var_greater_than_float_var $10806($val_Area,4f) > $y
  is_float_var_greater_than_float_var $10814($val_Area,4f) > $z
  is_float_var_greater_than_float_var $x > $10802($val_Area,4f)
  is_float_var_greater_than_float_var $y > $10810($val_Area,4f)
  is_float_var_greater_than_float_var $z > $10818($val_Area,4f)
goto_if_false @VALET_8647
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:VALET_8647
$valet_task(6@,3i) = 6
mark_char_as_no_longer_needed $valet(6@,3i)

:VALET_8667
switch_start $valet_task(6@,3i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @VALET_12947 {caseNum1} 1 {caseLabel1} @VALET_8799 {caseNum2} 2 {caseLabel2} @VALET_9112 {caseNum3} 3 {caseLabel3} @VALET_9726 {caseNum4} 4 {caseLabel4} @VALET_10469 {caseNum5} 5 {caseLabel5} @VALET_10577 {caseNum6} 6 {caseLabel6} @VALET_12940 {caseNum7} 7 {caseLabel7} @VALET_11074
switch_continued 8 {caseLabel1} @VALET_12227 {caseNum2} 9 {caseLabel2} @VALET_12549 {caseNum3} 10 {caseLabel3} @VALET_10288 {caseNum4} 11 {caseLabel4} @VALET_12734 {caseNum5} -1 {caseLabel5} @VALET_12947 {caseNum6} -1 {caseLabel6} @VALET_12947 {caseNum7} -1 {caseLabel7} @VALET_12947 {caseNum8} -1 {caseLabel8} @VALET_12947 {caseNum9} -1 {caseLabel9} @VALET_12947

:VALET_8799
if 
  $valet_can_be_created(6@,3i) == 1
goto_if_false @VALET_9105
request_model 189
if 
  has_model_loaded 189
goto_if_false @VALET_9105
if 
  $val_Area == 1
goto_if_false @VALET_8911
create_char PedType.Mission1 {modelId} 189 {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $val_h(6@,3f)

:VALET_8911
if 
  $val_Area == 2
goto_if_false @VALET_8980
create_char PedType.Mission1 {modelId} 189 {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $10767(6@,3f)

:VALET_8980
if 
  $val_Area == 3
goto_if_false @VALET_9049
create_char PedType.Mission1 {modelId} 189 {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $10779(6@,3f)

:VALET_9049
set_char_decision_maker $valet(6@,3i) {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet(6@,3i) {state} True
set_char_suffers_critical_hits $valet(6@,3i) {state} False
$valet_task(6@,3i) = 2
0@(6@,3i) = 2

:VALET_9105
goto @VALET_12947

:VALET_9112
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_9719
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_9719
if 
  $val_Area == 1
goto_if_false @VALET_9305
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9305
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $val_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3

:VALET_9305
if 
  $val_Area == 2
goto_if_false @VALET_9565
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9466
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $10767(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3
goto @VALET_9565

:VALET_9466
3@ = get_script_task_status $valet(6@,3i) {taskId} 1492
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_9565
$last_player_z = get_char_heading $valet(6@,3i)
sub_float_var_from_float_var $last_player_z -= $10767(6@,3f)
abs_var_float $last_player_z
if 
  10.0 <= $last_player_z
goto_if_false @VALET_9565
task_achieve_heading $valet(6@,3i) {heading} $10767(6@,3f)

:VALET_9565
if 
  $val_Area == 3
goto_if_false @VALET_9719
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9719
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $10779(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3

:VALET_9719
goto @VALET_12947

:VALET_9726
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_10281
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10281
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10281
if 
  $val_Area == 1
goto_if_false @VALET_9959
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_9948
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $val_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_9959

:VALET_9948
$valet_task(6@,3i) = 2

:VALET_9959
if 
  $val_Area == 2
goto_if_false @VALET_10120
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10109
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $10767(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_10120

:VALET_10109
$valet_task(6@,3i) = 2

:VALET_10120
if 
  $val_Area == 3
goto_if_false @VALET_10281
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10270
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $10779(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_10281

:VALET_10270
$valet_task(6@,3i) = 2

:VALET_10281
goto @VALET_12947

:VALET_10288
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10462
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10462
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10822($val_Area,4f) {y} $10826($val_Area,4f) {z} $10830($val_Area,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10440
task_follow_path_nodes_to_coord $valet(6@,3i) {x} $10822($val_Area,4f) {y} $10826($val_Area,4f) {z} $10830($val_Area,4f) {speed} MoveState.Run {time} -2
goto @VALET_10462

:VALET_10440
0@(6@,3i) = 3
$valet_task(6@,3i) = 3

:VALET_10462
goto @VALET_12947

:VALET_10469
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10570
if 
  not is_char_responding_to_event $valet(6@,3i) {event} Event.Damage
goto_if_false @VALET_10554
task_play_anim_non_interruptable $valet(6@,3i) {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
4@ += 1

:VALET_10554
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10570
goto @VALET_12947

:VALET_10577
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_11067
3@ = get_script_task_status $valet(6@,3i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10642
task_kill_char_on_foot $valet(6@,3i) {target} $scplayer

:VALET_10642
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_11067
if 
  not is_char_dead $scplayer
goto_if_false @VALET_11067
if 
  $val_Area == 1
goto_if_false @VALET_10807
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_10807
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10807
if 
  $val_Area == 2
goto_if_false @VALET_10937
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_10937
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10937
if 
  $val_Area == 3
goto_if_false @VALET_11067
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_11067
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_11067
goto @VALET_12947

:VALET_11074
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12220
if 
  $val_Area == 1
goto_if_false @VALET_11203
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $a_ped(6@,3f) {y} $a_char(6@,3f) {z} $force_a_one_off_car(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11203
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11203
if 
  $val_Area == 2
goto_if_false @VALET_11312
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10758(6@,3f) {y} $10761(6@,3f) {z} $10764(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11312
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11312
if 
  $val_Area == 3
goto_if_false @VALET_11421
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $10770(6@,3f) {y} $10773(6@,3f) {z} $10776(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11421
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11421
if 
  $valet_task(6@,3i) <> 2
goto_if_false @VALET_12220
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_11975
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_11935
if 
  is_char_in_car $valet(6@,3i) {vehicle} $valet_car(6@,3i)
goto_if_false @VALET_11770
if 
  is_int_var_equal_to_int_var $valet_car(6@,3i) == $valet_pickup_car
goto_if_false @VALET_11553
$valet_pickup_car = 0

:VALET_11553
$x, $y, $z = get_parking_node_in_area $10798($val_Area,4f) {leftBottomY} $10806($val_Area,4f) {leftBottomZ} $10814($val_Area,4f) {rightTopX} $10802($val_Area,4f) {rightTopY} $10810($val_Area,4f) {rightTopZ} $10818($val_Area,4f)
set_var_float_to_var_float $dont_clear_valets = $x
set_var_float_to_var_float $valet_cars_to_park = $y
set_var_float_to_var_float $valet_mission_car = $z
if 
  is_vehicle_attached $valet_car(6@,3i)
goto_if_false @VALET_11676
detach_car $valet_car(6@,3i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:VALET_11676
task_car_drive_to_coord $valet(6@,3i) {vehicle} $valet_car(6@,3i) {x} $x {y} $y {z} $z {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_11741
set_char_cant_be_dragged_out $valet(6@,3i) {state} True

:VALET_11741
$valet_task(6@,3i) = 8
0@(6@,3i) = 7
goto @VALET_11928

:VALET_11770
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_11895
if 
  locate_char_any_means_car_3d $valet(6@,3i) {vehicle} $valet_car(6@,3i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @VALET_11888
11@ = open_sequence_task 
task_pause -1 {time} 3000
task_enter_car_as_driver -1 {vehicle} $valet_car(6@,3i) {time} -2
close_sequence_task 11@
$10919 += 1
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@

:VALET_11888
goto @VALET_11928

:VALET_11895
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11928
goto @VALET_11968

:VALET_11935
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11968
goto @VALET_12220

:VALET_11975
if and
  not is_car_dead $valet_car(6@,3i)
  not is_char_dead $scplayer
goto_if_false @VALET_12220
$10741 = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $10741 == $valet_car(6@,3i)
goto_if_false @VALET_12116
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_12116
if and
  not is_char_getting_in_to_a_car $valet(6@,3i)
  not is_char_in_any_car $valet(6@,3i)
goto_if_false @VALET_12116
clear_char_tasks $valet(6@,3i)
$valet_task(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12116
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12213
if 
  not locate_char_any_means_car_3d $valet(6@,3i) {vehicle} $valet_car(6@,3i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @VALET_12213
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12213
goto @VALET_12220

:VALET_12220
goto @VALET_12947

:VALET_12227
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12542
3@ = get_script_task_status $valet(6@,3i) {taskId} 1489
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12402
if 
  is_char_in_area_3d $valet(6@,3i) {leftBottomX} $10798($val_Area,4f) {leftBottomY} $10806($val_Area,4f) {leftBottomZ} $10814($val_Area,4f) {rightTopX} $10802($val_Area,4f) {rightTopY} $10810($val_Area,4f) {rightTopZ} $10818($val_Area,4f) {drawSphere} False
goto_if_false @VALET_12373
$valet_task(6@,3i) = 3
0@(6@,3i) = 3
goto @VALET_12395

:VALET_12373
$valet_task(6@,3i) = 3
0@(6@,3i) = 3

:VALET_12395
goto @VALET_12542

:VALET_12402
if or
  $onmission == 0
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_12542
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12542
$10741 = get_car_blocking_car $valet_car(6@,3i)
if 
  not is_car_dead $10741
goto_if_false @VALET_12542
$10736 = get_driver_of_car $10741
if or
  is_int_var_equal_to_int_var $10736 == $scplayer
  $10736 == -1
goto_if_false @VALET_12542
if 
  $10741 <> -1
goto_if_false @VALET_12542
set_var_int_to_var_int $last_player_y = $10741

:VALET_12542
goto @VALET_12947

:VALET_12549
if and
  not is_char_dead $valet(6@,3i)
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12727
if 
  not is_char_in_car $valet(6@,3i) {vehicle} $valet_car(6@,3i)
goto_if_false @VALET_12727
$10739 = get_driver_of_car $valet_car(6@,3i)
if 
  $10739 <> -1
goto_if_false @VALET_12727
$10741 = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $10741 == $valet_car(6@,3i)
goto_if_false @VALET_12716
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_12698
goto @VALET_12709

:VALET_12698
$valet_task(6@,3i) = 2

:VALET_12709
goto @VALET_12727

:VALET_12716
$valet_task(6@,3i) = 2

:VALET_12727
goto @VALET_12947

:VALET_12734
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12933
3@ = get_script_task_status $valet(6@,3i) {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12933
if 
  6@ == 0
goto_if_false @VALET_12933
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_12933
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_12933
3@ = get_script_task_status $valet[1] {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12933
3@ = get_script_task_status $valet[0] {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12933
task_chat_with_char $valet[0] {other} $valet[1] {leadSpeaker} True {_p4} 1
task_chat_with_char $valet[1] {other} $valet[0] {leadSpeaker} False {_p4} 1
0@ = 11
1@ = 11

:VALET_12933
goto @VALET_12947

:VALET_12940
goto @VALET_12947

:VALET_12947
6@ += 1
goto @VALET_7812

:VALET_12961
return 

:VALET_12963
if or
  $freeze_creating_drop_off_cars == 0
  $imp_seq2 > 0
goto_if_false @VALET_13177
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13177
if 
  $drop_off_car == 0
goto_if_false @VALET_13177
if 
  not is_area_occupied $10782($val_Area,4f) {leftBottomY} $10790($val_Area,4f) {leftBottomZ} 0.0 {rightTopX} $valet_vg_z($val_Area,4f) {rightTopY} $10794($val_Area,4f) {rightTopZ} 80.0 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @VALET_13106
$imp_seq2 -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13106
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13177
if and
  $valet_spawn_h2 == 0
  $valet_pickup_car == 0
  $drop_off_car == 0
goto_if_false @VALET_13177
$imp_seq2 -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13177
if 
  $drop_off_car <> 0
goto_if_false @VALET_13334
if 
  is_car_dead $drop_off_car
goto_if_false @VALET_13225
$debug_this = 1
$drop_off_car = 0

:VALET_13225
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_13334
$10736 = get_driver_of_car $drop_off_car
if 
  not is_char_dead $10736
goto_if_false @VALET_13289
if 
  not is_char_sitting_in_car $10736 {vehicle} $drop_off_car
goto_if_false @VALET_13289
mark_car_as_no_longer_needed $drop_off_car

:VALET_13289
if or
  $10736 == -1
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_13334
mark_car_as_no_longer_needed $drop_off_car
$debug_this = 2
$drop_off_car = 0

:VALET_13334
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_13449
if 
  is_car_dead $valet_pickup_car
goto_if_false @VALET_13375
$valet_pickup_car = 0

:VALET_13375
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_13449
$10736 = get_driver_of_car $valet_pickup_car
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_13449
if 
  not is_int_var_equal_to_int_var $valet_pickup_car == $sc3_missioncar
goto_if_false @VALET_13442
mark_car_as_no_longer_needed $valet_pickup_car

:VALET_13442
$valet_pickup_car = 0

:VALET_13449
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_14583
if or
  $valet_task[0] == 2
  $valet_task[1] == 2
  $valet_task[2] == 2
  $player_on_valet_mission == 1
  $onmission == 1
goto_if_false @VALET_14583
if and
  $valet_task[0] <> 7
  $valet_task[1] <> 7
  $valet_task[2] <> 7
goto_if_false @VALET_14583
$a_pickup_car = get_random_car_of_type_in_area_no_save $10782($val_Area,4f) {leftBottomY} $10790($val_Area,4f) {rightTopX} $valet_vg_z($val_Area,4f) {rightTopY} $10794($val_Area,4f) {modelId} -1
if 
  not is_car_dead $sc3_missioncar
goto_if_false @VALET_13651
if 
  is_car_in_area_2d $sc3_missioncar {leftBottomX} $10782($val_Area,4f) {leftBottomY} $10790($val_Area,4f) {rightTopX} $valet_vg_z($val_Area,4f) {rightTopY} $10794($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13651
set_var_int_to_var_int $a_pickup_car = $sc3_missioncar

:VALET_13651
if 
  $a_pickup_car == -1
goto_if_false @VALET_13739
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_13739
if 
  is_car_in_area_2d $drop_off_car {leftBottomX} $10782($val_Area,4f) {leftBottomY} $10790($val_Area,4f) {rightTopX} $valet_vg_z($val_Area,4f) {rightTopY} $10794($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13739
set_var_int_to_var_int $a_pickup_car = $drop_off_car

:VALET_13739
if 
  $a_pickup_car == -1
goto_if_false @VALET_13827
if 
  not is_car_dead $valet_mission_flag
goto_if_false @VALET_13827
if 
  is_car_in_area_2d $valet_mission_flag {leftBottomX} $10782($val_Area,4f) {leftBottomY} $10790($val_Area,4f) {rightTopX} $valet_vg_z($val_Area,4f) {rightTopY} $10794($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13827
set_var_int_to_var_int $a_pickup_car = $valet_mission_flag

:VALET_13827
$i_see_you = 0
if 
  $a_pickup_car <> -1
goto_if_false @VALET_13964
set_var_int_to_var_int $valet_countdown = $a_pickup_car
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_13964
$10736 = get_driver_of_car $a_pickup_car
if 
  $10736 == -1
goto_if_false @VALET_13964
12@ = get_vehicle_class $a_pickup_car
if and
  not is_int_lvar_equal_to_constant 12@ == 0
  not is_int_lvar_equal_to_constant 12@ == 1
  not is_int_lvar_equal_to_constant 12@ == 2
  not is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_13964
set_var_int_to_var_int $last_player_y = $a_pickup_car
$a_pickup_car = -1

:VALET_13964
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14029
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14029
if 
  is_emergency_services_vehicle $a_pickup_car
goto_if_false @VALET_14029
set_var_int_to_var_int $last_player_y = $a_pickup_car
$a_pickup_car = -1

:VALET_14029
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14583
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14209
$10736 = get_driver_of_car $a_pickup_car
if 
  $10736 <> -1
goto_if_false @VALET_14209
if 
  not is_char_dead $10736
goto_if_false @VALET_14209
if 
  not is_char_sitting_in_car $10736 {vehicle} $a_pickup_car
goto_if_false @VALET_14139
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14139
3@ = get_script_task_status $10736 {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 1
goto_if_false @VALET_14209
3@ = get_sequence_progress $10736
if 
  3@ == 1
goto_if_false @VALET_14209
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14209
if 
  $10736 == -1
goto_if_false @VALET_14242
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14242
$10741 = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $10741 == $valet_pickup_car
goto_if_false @VALET_14276
$valet_pickup_car = 0

:VALET_14276
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $a_pickup_car
goto_if_false @VALET_14576
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14463
30@ = get_maximum_number_of_passengers $a_pickup_car
6@ = 0

:VALET_14326
if 
  is_int_lvar_greater_than_int_lvar 30@ > 6@
goto_if_false @VALET_14463
if 
  not is_car_passenger_seat_free $a_pickup_car {seat} 6@
goto_if_false @VALET_14449
$10739 = get_char_in_car_passenger_seat $a_pickup_car {seat} 6@
if 
  not is_char_dead $10739
goto_if_false @VALET_14449
if 
  is_char_sitting_in_car $10739 {vehicle} $a_pickup_car
goto_if_false @VALET_14449
3@ = get_script_task_status $10739 {taskId} 1502
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14449
mark_char_as_no_longer_needed $10739
task_wander_standard $10739

:VALET_14449
6@ += 1
goto @VALET_14326

:VALET_14463
if 
  $valet_task[0] == 2
goto_if_false @VALET_14503
$valet_task[0] = 7
set_var_int_to_var_int $valet_car[0] = $valet_pickup_car
goto @VALET_14576

:VALET_14503
if 
  $valet_task[1] == 2
goto_if_false @VALET_14543
$valet_task[1] = 7
set_var_int_to_var_int $valet_car[1] = $valet_pickup_car
goto @VALET_14576

:VALET_14543
if 
  $valet_task[2] == 2
goto_if_false @VALET_14576
$valet_task[2] = 7
set_var_int_to_var_int $valet_car[2] = $valet_pickup_car

:VALET_14576
$a_pickup_car = 0

:VALET_14583
if 
  $create_drop_off_car_now == 1
goto_if_false @VALET_16011
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_16011
$debug_this = 3
$drop_off_car = 0
$10741 = get_random_car_of_type_in_area_no_save $10834($val_Area,4f) {leftBottomY} $10838($val_Area,4f) {rightTopX} $10842($val_Area,4f) {rightTopY} $10846($val_Area,4f) {modelId} -1
if 
  $10741 <> -1
goto_if_false @VALET_14925
if 
  not is_car_dead $10741
goto_if_false @VALET_14925
24@ = get_car_heading $10741
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $10850($val_Area,4f)
13@ = abs_lvar_float 
if 
  45.0 > 13@
goto_if_false @VALET_14925
12@ = get_vehicle_class $10741
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_14925
12@ = get_car_model $10741
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_14925
$10737 = get_driver_of_car $10741
if 
  $10737 <> -1
goto_if_false @VALET_14925
if 
  not is_char_dead $10737
goto_if_false @VALET_14925
3@ = get_script_task_status $10737 {taskId} 1490
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14925
set_var_int_to_var_int $drop_off_car = $10741
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_14925
if 
  $drop_off_car == 0
goto_if_false @VALET_15234
$10741 = get_random_car_of_type_in_area_no_save $10854($val_Area,4f) {leftBottomY} $10858($val_Area,4f) {rightTopX} $10862($val_Area,4f) {rightTopY} $10866($val_Area,4f) {modelId} -1
if 
  $10741 <> -1
goto_if_false @VALET_15234
if 
  not is_car_dead $10741
goto_if_false @VALET_15234
24@ = get_car_heading $10741
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $10870($val_Area,4f)
13@ = abs_lvar_float 
if 
  45.0 > 13@
goto_if_false @VALET_15234
12@ = get_vehicle_class $10741
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_15234
12@ = get_car_model $10741
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_15234
$10737 = get_driver_of_car $10741
if 
  $10737 <> -1
goto_if_false @VALET_15234
if 
  not is_char_dead $10737
goto_if_false @VALET_15234
3@ = get_script_task_status $10737 {taskId} 1490
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_15234
set_var_int_to_var_int $drop_off_car = $10741
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_15234
if or
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_15713
if 
  $drop_off_car == 0
goto_if_false @VALET_15713
15@ += 1
if 
  15@ == 6
goto_if_false @VALET_15404
6@ = generate_random_int_in_range 0 {max} 3
if 
  6@ == 0
goto_if_false @VALET_15342
request_model 436
set_lvar_int_to_constant 14@ = 436

:VALET_15342
if 
  6@ == 1
goto_if_false @VALET_15373
request_model 533
set_lvar_int_to_constant 14@ = 533

:VALET_15373
if 
  6@ == 2
goto_if_false @VALET_15404
request_model 507
set_lvar_int_to_constant 14@ = 507

:VALET_15404
if 
  15@ >= 6
goto_if_false @VALET_15713
if 
  14@ <> 0
goto_if_false @VALET_15713
if 
  has_model_loaded 14@
goto_if_false @VALET_15713
if 
  not is_point_on_screen $10886($val_Area,4f) {y} $10890($val_Area,4f) {z} $10894($val_Area,4f) {radius} 5.0
goto_if_false @VALET_15588
clear_area $10886($val_Area,4f) {y} $10890($val_Area,4f) {z} $10894($val_Area,4f) {radius} 5.0 {clearParticles} False
$drop_off_car = create_car 14@ {x} $10886($val_Area,4f) {y} $10890($val_Area,4f) {z} $10894($val_Area,4f)
set_car_heading $drop_off_car {heading} $10898($val_Area,4f)
$10737 = create_random_char_as_driver $drop_off_car
set_car_can_go_against_traffic $drop_off_car {state} False
goto @VALET_15713

:VALET_15588
if 
  not is_point_on_screen $10902($val_Area,4f) {y} $10906($val_Area,4f) {z} $10910($val_Area,4f) {radius} 5.0
goto_if_false @VALET_15713
clear_area $10902($val_Area,4f) {y} $10906($val_Area,4f) {z} $10910($val_Area,4f) {radius} 5.0 {clearParticles} False
$drop_off_car = create_car 14@ {x} $10902($val_Area,4f) {y} $10906($val_Area,4f) {z} $10910($val_Area,4f)
set_car_heading $drop_off_car {heading} $10914($val_Area,4f)
$10737 = create_random_char_as_driver $drop_off_car
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_15713
if 
  $drop_off_car <> 0
goto_if_false @VALET_16011
$create_drop_off_car_now = 0
if and
  not is_char_dead $10737
  not is_car_dead $drop_off_car
goto_if_false @VALET_15981
if 
  $sc3_missioncar_alive == 1
goto_if_false @VALET_15786
change_car_colour $drop_off_car {color1} 3 {color2} 3

:VALET_15786
mark_char_as_no_longer_needed $10737
11@ = open_sequence_task 
if 
  $onmission == 0
goto_if_false @VALET_15853
task_car_drive_to_coord -1 {vehicle} $drop_off_car {x} $10874($val_Area,4f) {y} $10878($val_Area,4f) {z} $10882($val_Area,4f) {speed} 17.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:VALET_15853
if 
  $onmission == 1
goto_if_false @VALET_15910
task_car_drive_to_coord -1 {vehicle} $drop_off_car {x} $10874($val_Area,4f) {y} $10878($val_Area,4f) {z} $10882($val_Area,4f) {speed} 17.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:VALET_15910
task_wander_standard -1
close_sequence_task 11@
if 
  not is_char_dead $10737
goto_if_false @VALET_15942
set_char_cant_be_dragged_out $10737 {state} True

:VALET_15942
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_15968
set_var_int_to_var_int $valet_mission_flag = $drop_off_car

:VALET_15968
perform_sequence_task $10737 {sequence} 11@
clear_sequence_task 11@

:VALET_15981
if 
  14@ <> 0
goto_if_false @VALET_16011
mark_model_as_no_longer_needed 14@
14@ = 0

:VALET_16011
return 

:VALET_16013
if or
  $player_on_valet_mission == 1
  $playing_scrash1 == 1
goto_if_false @VALET_16382
if and
  $last_player_y <> -1
  not is_int_var_equal_to_int_var $last_player_y == $sc3_missioncar
  not is_int_var_equal_to_int_var $last_player_y == $valet_spawn_h2
goto_if_false @VALET_16382
if 
  not is_int_var_equal_to_int_var $valet_time_bonus == $last_player_y
goto_if_false @VALET_16382
if 
  not is_car_dead $last_player_y
goto_if_false @VALET_16382
$x, $y, $z = get_car_coordinates $last_player_y
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @VALET_16382
if 
  not is_char_in_car $scplayer {vehicle} $last_player_y
goto_if_false @VALET_16382
if 
  not is_car_on_screen $last_player_y
goto_if_false @VALET_16239
delete_car $last_player_y
goto @VALET_16382

:VALET_16239
$10739 = get_driver_of_car $last_player_y
if 
  $10739 == -1
goto_if_false @VALET_16382
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} $last_player_y {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_16382
$10739 = create_random_char 0.0 {y} 0.0 {z} 0.0
mark_char_as_no_longer_needed $10739
mark_car_as_no_longer_needed $last_player_y
if and
  not is_char_dead $10739
  not is_car_dead $last_player_y
goto_if_false @VALET_16382
warp_char_into_car $10739 {vehicle} $last_player_y
task_car_drive_wander $10739 {vehicle} $last_player_y {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
$last_player_y = 0

:VALET_16382
return 

:VALET_16384
if 
  $valet_mission_completed == 0
goto_if_false @VALET_16771
player_made_progress 1
play_mission_passed_tune 1
$valet_mission_completed = 1
do_fade 500 {direction} Fade.Out

:VALET_16424
if 
  get_fading_status 
goto_if_false @VALET_16448
wait 0
goto @VALET_16424

:VALET_16448
clear_prints 
if 
  is_player_playing $player1
goto_if_false @VALET_16733
set_player_control $player1 {state} False
switch_widescreen True
$car_gen_desert1_pcj = create_protection_pickup -1757.668 {y} 961.7819 {z} 24.3828 {revenueLimit} 2000 {revenueRate} 2000
load_scene -1757.668 {y} 961.7819 {z} 24.3828
set_fixed_camera_position -1761.832 {y} 910.2675 {z} 30.7224 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1761.689 {y} 911.2571 {z} 30.7291 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:VALET_16578
if 
  get_fading_status 
goto_if_false @VALET_16602
wait 0
goto @VALET_16578

:VALET_16602
play_mission_passed_tune 2
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -1748.38 {y} 951.821 {z} 27.5455 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1748.938 {y} 952.5872 {z} 27.2272 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} 2000 {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:VALET_16709
if 
  get_fading_status 
goto_if_false @VALET_16733
wait 0
goto @VALET_16709

:VALET_16733
if 
  is_player_playing $player1
goto_if_false @VALET_16771
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:VALET_16771
print_big 'VAL_A33' {time} 5000 {style} TextStyle.Middle
$10926 = 8
return 

:VALET_16796
mark_model_as_no_longer_needed 189
mark_char_as_no_longer_needed $valet[0]
mark_char_as_no_longer_needed $valet[1]
mark_char_as_no_longer_needed $valet[2]
clear_onscreen_counter $10927
clear_onscreen_timer $10925
clear_onscreen_counter $10923
remove_decision_maker 7@
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_16857
delete_char $valet[0]

:VALET_16857
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_16878
delete_char $valet[1]

:VALET_16878
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_16899
delete_char $valet[2]

:VALET_16899
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_16928
set_ped_density_multiplier 1.0
switch_emergency_services True

:VALET_16928
$valet_task[0] = 1
$valet_task[1] = 1
$valet_task[2] = 1
4@ = 0
$10922 = 0
if 
  not is_car_dead $valet_spawn_h2
goto_if_false @VALET_17019
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17019
if 
  not is_char_in_car $scplayer {vehicle} $valet_spawn_h2
goto_if_false @VALET_17019
delete_car $valet_spawn_h2

:VALET_17019
if 
  not is_car_dead $valet_car[0]
goto_if_false @VALET_17075
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17075
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[0]
goto_if_false @VALET_17075
delete_car $valet_car[0]

:VALET_17075
if 
  not is_car_dead $valet_car[1]
goto_if_false @VALET_17131
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17131
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[1]
goto_if_false @VALET_17131
delete_car $valet_car[1]

:VALET_17131
if 
  not is_car_dead $valet_car[2]
goto_if_false @VALET_17187
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17187
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[2]
goto_if_false @VALET_17187
delete_car $valet_car[2]

:VALET_17187
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_17243
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17243
if 
  not is_char_in_car $scplayer {vehicle} $valet_pickup_car
goto_if_false @VALET_17243
delete_car $valet_pickup_car

:VALET_17243
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_17299
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17299
if 
  not is_char_in_car $scplayer {vehicle} $drop_off_car
goto_if_false @VALET_17299
delete_car $drop_off_car

:VALET_17299
$valet_mission_dead = 0
$1898 = 0
$1899 = 0
$valet_spawn_h2 = 0
$valet_car[0] = 0
$valet_car[1] = 0
$valet_car[2] = 0
$valet_pickup_car = 0
$debug_this = 4
$drop_off_car = 0
$10926 = 0
$last_player_x = 0
$force_valet_cleanup = 0
$valet_scene_running = 0
remove_blip 20@
remove_blip 19@
terminate_this_script 
return 
terminate_this_script 

//-------------External script 73 (PHOTO)---------------

:PHOTO
script_name 'PHOTO'
2@ = 0
if 
  2@ == 1
goto_if_false @PHOTO_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PHOTO_60
request_animation "CAMERA"
request_model 367

:PHOTO_75
if 
  not has_model_loaded 367
goto_if_false @PHOTO_117
request_animation "CAMERA"
request_model 367
wait 0
goto @PHOTO_75

:PHOTO_117
if 
  not has_animation_loaded "CAMERA"
goto_if_false @PHOTO_164
request_animation "CAMERA"
request_model 367
wait 0
goto @PHOTO_117

:PHOTO_164
3@ = 1
4@ = 0
if 
  not is_char_dead 0@
goto_if_false @PHOTO_204
give_weapon_to_char 0@ {weaponType} WeaponType.Camera {ammo} 1000

:PHOTO_204
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @PHOTO_306
if 
  is_char_using_map_attractor 0@
goto_if_false @PHOTO_292
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PHOTO_278
goto @PHOTO_2447
goto @PHOTO_285

:PHOTO_278
gosub @PHOTO_320

:PHOTO_285
goto @PHOTO_299

:PHOTO_292
gosub @PHOTO_2405

:PHOTO_299
goto @PHOTO_313

:PHOTO_306
gosub @PHOTO_2405

:PHOTO_313
goto @PHOTO_204

:PHOTO_320
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PHOTO_397 {caseNum1} 1 {caseLabel1} @PHOTO_383 {caseNum2} -1 {caseLabel2} @PHOTO_397 {caseNum3} -1 {caseLabel3} @PHOTO_397 {caseNum4} -1 {caseLabel4} @PHOTO_397 {caseNum5} -1 {caseLabel5} @PHOTO_397 {caseNum6} -1 {caseLabel6} @PHOTO_397 {caseNum7} -1 {caseLabel7} @PHOTO_397

:PHOTO_383
gosub @PHOTO_399
goto @PHOTO_397

:PHOTO_397
return 

:PHOTO_399
switch_start 4@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @PHOTO_2403 {caseNum1} 0 {caseLabel1} @PHOTO_527 {caseNum2} 1 {caseLabel2} @PHOTO_587 {caseNum3} 2 {caseLabel3} @PHOTO_744 {caseNum4} 3 {caseLabel4} @PHOTO_912 {caseNum5} 4 {caseLabel5} @PHOTO_1047 {caseNum6} 5 {caseLabel6} @PHOTO_1172 {caseNum7} 6 {caseLabel7} @PHOTO_1414
switch_continued 7 {caseLabel1} @PHOTO_1540 {caseNum2} 8 {caseLabel2} @PHOTO_1704 {caseNum3} 9 {caseLabel3} @PHOTO_1777 {caseNum4} 10 {caseLabel4} @PHOTO_1902 {caseNum5} 11 {caseLabel5} @PHOTO_2144 {caseNum6} 12 {caseLabel6} @PHOTO_2277 {caseNum7} -1 {caseLabel7} @PHOTO_2403 {caseNum8} -1 {caseLabel8} @PHOTO_2403 {caseNum9} -1 {caseLabel9} @PHOTO_2403

:PHOTO_527
task_play_anim 0@ {animationName} "CAMSTND_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @PHOTO_2403

:PHOTO_587
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_IDLELOOP"
goto_if_false @PHOTO_737
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_IDLELOOP"
if 
  7@ >= 1.0
goto_if_false @PHOTO_737
2@ = generate_random_int_in_range 5000 {max} 8000
task_play_anim 0@ {animationName} "CAMSTND_LKABT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
TIMERB = 0
4@ += 1

:PHOTO_737
goto @PHOTO_2403

:PHOTO_744
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_905
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_852
task_play_anim 0@ {animationName} "CAMSTND_TO_CAMCRCH" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 7
goto @PHOTO_905

:PHOTO_852
task_play_anim 0@ {animationName} "CAMSTND_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 3

:PHOTO_905
goto @PHOTO_2403

:PHOTO_912
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_IDLELOOP"
goto_if_false @PHOTO_1040
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_IDLELOOP"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1040
task_play_anim 0@ {animationName} "PICSTND_IN" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1040
goto @PHOTO_2403

:PHOTO_1047
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_IN"
goto_if_false @PHOTO_1165
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_IN"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1165
task_play_anim 0@ {animationName} "PICSTND_TAKE" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1165
goto @PHOTO_2403

:PHOTO_1172
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_TAKE"
goto_if_false @PHOTO_1407
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_TAKE"
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_1331
8@, 9@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
draw_light_with_range 8@ {y} 9@ {z} 10@ {red} 255 {green} 255 {blue} 255 {radius} 50.0
report_mission_audio_event_at_char 0@ {soundId} ScriptSound.SoundCameraShot
6@ = 1

:PHOTO_1331
if 
  7@ >= 1.0
goto_if_false @PHOTO_1407
task_play_anim 0@ {animationName} "PICSTND_OUT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = 0
4@ += 1

:PHOTO_1407
goto @PHOTO_2403

:PHOTO_1414
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_OUT"
goto_if_false @PHOTO_1533
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1533
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_1526
4@ = 0
goto @PHOTO_1533

:PHOTO_1526
gosub @PHOTO_2405

:PHOTO_1533
goto @PHOTO_2403

:PHOTO_1540
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_TO_CAMCRCH"
goto_if_false @PHOTO_1697
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_TO_CAMCRCH"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1697
2@ = generate_random_int_in_range 5000 {max} 8000
task_play_anim 0@ {animationName} "CAMCRCH_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
TIMERB = 0
4@ += 1

:PHOTO_1697
goto @PHOTO_2403

:PHOTO_1704
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_1770
task_play_anim 0@ {animationName} "PICCRCH_IN" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1770
goto @PHOTO_2403

:PHOTO_1777
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_IN"
goto_if_false @PHOTO_1895
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_IN"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1895
task_play_anim 0@ {animationName} "PICCRCH_TAKE" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1895
goto @PHOTO_2403

:PHOTO_1902
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_TAKE"
goto_if_false @PHOTO_2137
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_TAKE"
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_2061
8@, 9@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.6 {zOffset} 0.0
draw_light_with_range 8@ {y} 9@ {z} 10@ {red} 255 {green} 255 {blue} 255 {radius} 50.0
report_mission_audio_event_at_char 0@ {soundId} ScriptSound.SoundCameraShot
6@ = 1

:PHOTO_2061
if 
  7@ >= 1.0
goto_if_false @PHOTO_2137
task_play_anim 0@ {animationName} "PICCRCH_OUT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = 0
4@ += 1

:PHOTO_2137
goto @PHOTO_2403

:PHOTO_2144
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_OUT"
goto_if_false @PHOTO_2270
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_2270
task_play_anim 0@ {animationName} "CAMCRCH_TO_CAMSTND" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PHOTO_2270
goto @PHOTO_2403

:PHOTO_2277
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_OUT"
goto_if_false @PHOTO_2396
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_2396
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_2389
4@ = 0
goto @PHOTO_2396

:PHOTO_2389
gosub @PHOTO_2405

:PHOTO_2396
goto @PHOTO_2403

:PHOTO_2403
return 

:PHOTO_2405
remove_animation "CAMERA"
if 
  not is_char_dead 0@
goto_if_false @PHOTO_2438
remove_weapon_from_char 0@ {weaponType} WeaponType.Camera

:PHOTO_2438
mark_model_as_no_longer_needed 367
terminate_this_script 
return 

:PHOTO_2447
wait 0
if 
  not is_char_dead 0@
goto_if_false @PHOTO_2511
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PHOTO_2504
task_kill_char_on_foot 0@ {target} $scplayer

:PHOTO_2504
goto @PHOTO_2518

:PHOTO_2511
gosub @PHOTO_2405

:PHOTO_2518
goto @PHOTO_2447
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 74 (PRISONR)---------------

:PRISONR
script_name 'PRISONR'
2@ = 0
if 
  2@ == 1
goto_if_false @PRISONR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PRISONR_60
if 
  not is_char_dead 0@
goto_if_false @PRISONR_109
9@ = get_ped_type 0@
if 
  is_int_lvar_equal_to_constant 9@ == 6
goto_if_false @PRISONR_109
delete_char 0@
terminate_this_script 

:PRISONR_109
request_animation "GANGS"
request_model #CIGAR

:PRISONR_122
if 
  not has_animation_loaded "GANGS"
goto_if_false @PRISONR_153
wait 0
goto @PRISONR_122

:PRISONR_153
if 
  not has_model_loaded #CIGAR
goto_if_false @PRISONR_179
wait 0
goto @PRISONR_153

:PRISONR_179
if 
  not is_char_dead 0@
goto_if_false @PRISONR_266
6@, 7@, 8@ = get_char_coordinates 0@
12@ = create_object #CIGAR {x} 6@ {y} 7@ {z} 8@
task_pick_up_object 0@ {object} 12@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:PRISONR_266
3@ = 1
4@ = 0
10@ = 0

:PRISONR_287
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_374
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PRISONR_360
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PRISONR_1286
goto @PRISONR_367

:PRISONR_360
gosub @PRISONR_388

:PRISONR_367
goto @PRISONR_381

:PRISONR_374
gosub @PRISONR_1259

:PRISONR_381
goto @PRISONR_287

:PRISONR_388
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PRISONR_465 {caseNum1} 1 {caseLabel1} @PRISONR_451 {caseNum2} -1 {caseLabel2} @PRISONR_465 {caseNum3} -1 {caseLabel3} @PRISONR_465 {caseNum4} -1 {caseLabel4} @PRISONR_465 {caseNum5} -1 {caseLabel5} @PRISONR_465 {caseNum6} -1 {caseLabel6} @PRISONR_465 {caseNum7} -1 {caseLabel7} @PRISONR_465

:PRISONR_451
gosub @PRISONR_467
goto @PRISONR_465

:PRISONR_465
return 

:PRISONR_467
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PRISONR_1257 {caseNum1} 0 {caseLabel1} @PRISONR_530 {caseNum2} 1 {caseLabel2} @PRISONR_943 {caseNum3} 2 {caseLabel3} @PRISONR_986 {caseNum4} 3 {caseLabel4} @PRISONR_1029 {caseNum5} 4 {caseLabel5} @PRISONR_1148 {caseNum6} -1 {caseLabel6} @PRISONR_1257 {caseNum7} -1 {caseLabel7} @PRISONR_1257

:PRISONR_530
9@ = generate_random_int_in_range 0 {max} 100
if 
  9@ >= 80
goto_if_false @PRISONR_753
6@, 7@, 8@ = get_char_coordinates 0@
11@ = get_random_char_in_sphere 6@ {y} 7@ {z} 8@ {radius} 2.0 {civilian} True {gang} True {criminal} True
if and
  not is_char_dead 11@
  not is_int_lvar_equal_to_int_lvar 11@ == 0@
goto_if_false @PRISONR_649
task_kill_char_on_foot 0@ {target} 11@
4@ = 2
goto @PRISONR_1257
goto @PRISONR_746

:PRISONR_649
task_play_anim 0@ {animationName} "SMKCIG_PRTL" {animationFile} "GANGS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
13@ = create_fx_system_on_char "EXHALE" {char} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 13@ {handle} 0@ {pedBone} PedBone.Neck
4@ = 3
goto @PRISONR_1257

:PRISONR_746
goto @PRISONR_936

:PRISONR_753
if 
  9@ >= 30
goto_if_false @PRISONR_839
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
9@ = set_char_say_context 0@ {phrase} SpeechId.Chat
4@ = 1
goto @PRISONR_1257
goto @PRISONR_936

:PRISONR_839
task_play_anim 0@ {animationName} "SMKCIG_PRTL" {animationFile} "GANGS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
13@ = create_fx_system_on_char "EXHALE" {char} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 13@ {handle} 0@ {pedBone} PedBone.Neck
4@ = 3
goto @PRISONR_1257

:PRISONR_936
goto @PRISONR_1257

:PRISONR_943
9@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_979
4@ = 0

:PRISONR_979
goto @PRISONR_1257

:PRISONR_986
9@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_1022
4@ = 0

:PRISONR_1022
goto @PRISONR_1257

:PRISONR_1029
if 
  is_char_playing_anim 0@ {animationName} "SMKCIG_PRTL"
goto_if_false @PRISONR_1129
6@ = get_char_anim_current_time 0@ {animationName} "SMKCIG_PRTL"
if and
  6@ >= 0.5
  1.0 > 6@
goto_if_false @PRISONR_1122
play_fx_system 13@
4@ += 1

:PRISONR_1122
goto @PRISONR_1141

:PRISONR_1129
4@ = 0
kill_fx_system 13@

:PRISONR_1141
goto @PRISONR_1257

:PRISONR_1148
if 
  is_char_playing_anim 0@ {animationName} "SMKCIG_PRTL"
goto_if_false @PRISONR_1238
6@ = get_char_anim_current_time 0@ {animationName} "SMKCIG_PRTL"
if 
  6@ >= 1.0
goto_if_false @PRISONR_1231
kill_fx_system 13@
4@ = 0

:PRISONR_1231
goto @PRISONR_1250

:PRISONR_1238
4@ = 0
kill_fx_system 13@

:PRISONR_1250
goto @PRISONR_1257

:PRISONR_1257
return 

:PRISONR_1259
remove_animation "GANGS"
mark_model_as_no_longer_needed #CIGAR
delete_object 12@
kill_fx_system 13@
terminate_this_script 
return 

:PRISONR_1286
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_1356
10@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PRISONR_1349
task_duck 0@ {time} -2

:PRISONR_1349
goto @PRISONR_1363

:PRISONR_1356
gosub @PRISONR_1259

:PRISONR_1363
goto @PRISONR_1286
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 75 (CAMERA)---------------

:CAMERA
script_name 'CAMERA'
if 
  0@ == -100
goto_if_false @CAMERA_53
8@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:CAMERA_53
3@ = 0
2@ = 0
1@ = 0
12@ = 0.0
13@ = 25.0
14@ = -25.0
set_photo_camera_effect False

:CAMERA_108
wait 3@
if 
  is_player_playing $player1
goto_if_false @CAMERA_819
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @CAMERA_722
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_557
if 
  is_char_stopped $scplayer
goto_if_false @CAMERA_473
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @CAMERA_385
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CAMERA_306
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_247
clear_help 

:CAMERA_247
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_271
clear_help 

:CAMERA_271
3@ = 0
2@ = 0
4@ = 0
gosub @CAMERA_833
goto @CAMERA_378

:CAMERA_306
1@ = 0
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @CAMERA_338
gosub @CAMERA_1963

:CAMERA_338
if 
  2@ > 0
goto_if_false @CAMERA_370
3@ = 0
goto @CAMERA_378

:CAMERA_370
3@ = 500

:CAMERA_378
goto @CAMERA_466

:CAMERA_385
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_409
clear_help 

:CAMERA_409
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_433
clear_help 

:CAMERA_433
set_photo_camera_effect False
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_466
goto @CAMERA_550

:CAMERA_473
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_497
clear_help 

:CAMERA_497
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_521
clear_help 

:CAMERA_521
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_550
goto @CAMERA_715

:CAMERA_557
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_581
clear_help 

:CAMERA_581
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_605
clear_help 

:CAMERA_605
set_photo_camera_effect False
3@ = 500
1@ = 0
2@ = 0
4@ = 0
if 
  2@ >= 3
goto_if_false @CAMERA_715
if 
  not is_char_dead 8@
goto_if_false @CAMERA_715
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True
if and
  $onmission == 0
  5@ == 0
goto_if_false @CAMERA_715
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_715
goto @CAMERA_812

:CAMERA_722
if 
  2@ >= 3
goto_if_false @CAMERA_805
request_model 367
3@ = 0
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_791
gosub @CAMERA_1963
goto @CAMERA_798

:CAMERA_791
gosub @CAMERA_3556

:CAMERA_798
goto @CAMERA_812

:CAMERA_805
gosub @CAMERA_3556

:CAMERA_812
goto @CAMERA_826

:CAMERA_819
gosub @CAMERA_3556

:CAMERA_826
goto @CAMERA_108

:CAMERA_833
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAMERA_1961 {caseNum1} 0 {caseLabel1} @CAMERA_896 {caseNum2} 1 {caseLabel2} @CAMERA_998 {caseNum3} 2 {caseLabel3} @CAMERA_1361 {caseNum4} 3 {caseLabel4} @CAMERA_1542 {caseNum5} 4 {caseLabel5} @CAMERA_1730 {caseNum6} -1 {caseLabel6} @CAMERA_1961 {caseNum7} -1 {caseLabel7} @CAMERA_1961

:CAMERA_896
6@, 7@ = get_group_size $Players_Group
if 
  7@ > 0
goto_if_false @CAMERA_991
if 
  7@ > 3
goto_if_false @CAMERA_950
7@ = 3

:CAMERA_950
6@ = 0
7@ -= 1
15@ = 3.0
15@ += 0.2
1@ += 1

:CAMERA_991
goto @CAMERA_1961

:CAMERA_998
19@, 20@, 21@ = get_char_coordinates $scplayer
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.0
18@ = get_ground_z_for_3d_coord 16@ {y} 17@ {z} 18@
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1108
1@ = -1
goto @CAMERA_1961

:CAMERA_1108
19@, 20@, 21@ = get_char_coordinates $scplayer
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 6.0 {zOffset} 0.0
18@ = get_ground_z_for_3d_coord 16@ {y} 17@ {z} 18@
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1218
1@ = -1
goto @CAMERA_1961

:CAMERA_1218
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.5 {yOffset} 0.0 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.5 {yOffset} 0.0 {zOffset} 0.0
if 
  not is_flame_in_angled_area_2d 16@ {leftBottomY} 17@ {rightTopX} 19@ {rightTopY} 20@ {angle} 7.0 {drawSphere} False
goto_if_false @CAMERA_1340
6@ = set_char_say_context $scplayer {phrase} SpeechId.TakeASeat
6@ = 0
1@ += 1
goto @CAMERA_1354

:CAMERA_1340
1@ = -1
goto @CAMERA_1961

:CAMERA_1354
goto @CAMERA_1961

:CAMERA_1361
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1408
6@ = 0
10@ = 0
1@ += 1
goto @CAMERA_1535

:CAMERA_1408
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1528
if and
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedDislike
  not is_char_shooting 8@
goto_if_false @CAMERA_1528
if 
  3 > 6@
goto_if_false @CAMERA_1511
task_goto_char_offset 8@ {target} $scplayer {time} 20000 {radius} 15@ {heading} 12@(6@,3f)
goto @CAMERA_1528

:CAMERA_1511
task_goto_char_offset 8@ {target} $scplayer {time} 20000 {radius} 15@ {heading} 12@

:CAMERA_1528
6@ += 1

:CAMERA_1535
goto @CAMERA_1961

:CAMERA_1542
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1615
6@ = 0
if 
  is_int_lvar_greater_than_int_lvar 10@ > 7@
goto_if_false @CAMERA_1608
6@ = 0
10@ = 0
1@ += 1

:CAMERA_1608
goto @CAMERA_1723

:CAMERA_1615
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1716
if and
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedDislike
  not is_char_shooting 8@
goto_if_false @CAMERA_1716
9@ = get_script_task_status 8@ {taskId} 1704
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @CAMERA_1716
task_stand_still 8@ {time} 5000
10@ += 1

:CAMERA_1716
6@ += 1

:CAMERA_1723
goto @CAMERA_1961

:CAMERA_1730
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1770
6@ = 0
1@ = -1
goto @CAMERA_1954

:CAMERA_1770
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1947
if 
  is_char_on_screen 8@
goto_if_false @CAMERA_1947
if or
  is_char_model 8@ {modelId} 195
  is_char_model 8@ {modelId} 192
  is_char_model 8@ {modelId} 191
  is_char_model 8@ {modelId} 190
  is_char_model 8@ {modelId} 193
  is_char_model 8@ {modelId} 194
goto_if_false @CAMERA_1939
if 
  has_animation_loaded "KISSING"
goto_if_false @CAMERA_1932
task_play_anim 8@ {animationName} "GFWAVE2" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:CAMERA_1932
goto @CAMERA_1947

:CAMERA_1939
task_hand_gesture 8@ {target} $scplayer

:CAMERA_1947
6@ += 1

:CAMERA_1954
goto @CAMERA_1961

:CAMERA_1961
return 

:CAMERA_1963
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAMERA_3380 {caseNum1} 0 {caseLabel1} @CAMERA_2091 {caseNum2} 1 {caseLabel2} @CAMERA_2155 {caseNum3} 2 {caseLabel3} @CAMERA_2310 {caseNum4} 3 {caseLabel4} @CAMERA_2445 {caseNum5} 4 {caseLabel5} @CAMERA_2569 {caseNum6} 5 {caseLabel6} @CAMERA_2820 {caseNum7} 6 {caseLabel7} @CAMERA_3231
switch_continued 7 {caseLabel1} @CAMERA_3261 {caseNum2} -1 {caseLabel2} @CAMERA_3380 {caseNum3} -1 {caseLabel3} @CAMERA_3380 {caseNum4} -1 {caseLabel4} @CAMERA_3380 {caseNum5} -1 {caseLabel5} @CAMERA_3380 {caseNum6} -1 {caseLabel6} @CAMERA_3380 {caseNum7} -1 {caseLabel7} @CAMERA_3380 {caseNum8} -1 {caseLabel8} @CAMERA_3380 {caseNum9} -1 {caseLabel9} @CAMERA_3380

:CAMERA_2091
6@, 7@ = get_group_size $Players_Group
if 
  7@ > 0
goto_if_false @CAMERA_2148
6@ = 0
7@ -= 1
2@ += 1
3@ = 0

:CAMERA_2148
goto @CAMERA_3380

:CAMERA_2155
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_2188
6@ = 0
goto @CAMERA_2303

:CAMERA_2188
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_2296
if 
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @CAMERA_2296
if and
  not is_help_message_being_displayed 
  4@ == 0
goto_if_false @CAMERA_2289
print_help 'CAM_001'
4@ = 1

:CAMERA_2289
2@ += 1

:CAMERA_2296
6@ += 1

:CAMERA_2303
goto @CAMERA_3380

:CAMERA_2310
if and
  not is_char_dead 8@
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2431
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2417
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2410
6@ = set_char_say_context $scplayer {phrase} SpeechId.ShopChat
2@ += 1

:CAMERA_2410
goto @CAMERA_2424

:CAMERA_2417
2@ = 0

:CAMERA_2424
goto @CAMERA_2438

:CAMERA_2431
2@ = 0

:CAMERA_2438
goto @CAMERA_3380

:CAMERA_2445
if and
  not is_char_dead 8@
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2555
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2541
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2534
2@ += 1

:CAMERA_2534
goto @CAMERA_2548

:CAMERA_2541
2@ = 0

:CAMERA_2548
goto @CAMERA_2562

:CAMERA_2555
2@ = 0

:CAMERA_2562
goto @CAMERA_3380

:CAMERA_2569
if 
  not is_char_dead 8@
goto_if_false @CAMERA_2806
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
  is_char_on_foot $scplayer
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2792
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_2658
clear_help 

:CAMERA_2658
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_2682
clear_help 

:CAMERA_2682
clear_prints 
freeze_char_position 8@ {state} True
set_char_visible 8@ {state} False
16@, 17@, 18@ = get_char_coordinates 8@
18@ += 0.8
set_fixed_camera_position 16@ {y} 17@ {z} 18@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.2 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_photo_camera_effect True
10@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
remove_weapon_from_char $scplayer {weaponType} WeaponType.Camera
2@ += 1
goto @CAMERA_2799

:CAMERA_2792
2@ = 0

:CAMERA_2799
goto @CAMERA_2813

:CAMERA_2806
2@ = 0

:CAMERA_2813
goto @CAMERA_3380

:CAMERA_2820
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3098
if and
  is_group_member 8@ {handle} $Players_Group
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2951
print_help_forever 'CAM_002'
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2920
2@ += 1

:CAMERA_2920
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CAMERA_2944
2@ = 7

:CAMERA_2944
goto @CAMERA_3091

:CAMERA_2951
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_2975
clear_help 

:CAMERA_2975
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_2999
clear_help 

:CAMERA_2999
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3084
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3084
2@ = 0

:CAMERA_3091
goto @CAMERA_3224

:CAMERA_3098
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3122
clear_help 

:CAMERA_3122
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3146
clear_help 

:CAMERA_3146
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3196
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3196
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
2@ = 0

:CAMERA_3224
goto @CAMERA_3380

:CAMERA_3231
clear_help 
clear_prints 
set_photo_camera_effect False
take_photo True
wait 100
2@ += 1
goto @CAMERA_3380

:CAMERA_3261
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3285
clear_help 

:CAMERA_3285
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3309
clear_help 

:CAMERA_3309
clear_prints 
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3341
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True

:CAMERA_3341
set_camera_behind_player 
restore_camera_jumpcut 
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
2@ = 0
goto @CAMERA_3380

:CAMERA_3380
return 

:CAMERA_3382
11@ = 0
if 
  $onmission == 0
goto_if_false @CAMERA_3554
if 
  $flag_cell_nation == 0
goto_if_false @CAMERA_3554
if 
  $player_fall_state == 0
goto_if_false @CAMERA_3554
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @CAMERA_3554
if 
  not is_minigame_in_progress 
goto_if_false @CAMERA_3554
if 
  is_char_on_foot $scplayer
goto_if_false @CAMERA_3554
if 
  not is_gang_war_fighting_going_on 
goto_if_false @CAMERA_3554
if 
  not get_fading_status 
goto_if_false @CAMERA_3554
if 
  $iAreaCode == 0
goto_if_false @CAMERA_3554
if 
  not has_cutscene_loaded 
goto_if_false @CAMERA_3554
11@ = 1

:CAMERA_3554
return 

:CAMERA_3556
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3580
clear_help 

:CAMERA_3580
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3604
clear_help 

:CAMERA_3604
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3634
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True

:CAMERA_3634
if 
  $onmission == 0
goto_if_false @CAMERA_3731
if 
  2@ >= 3
goto_if_false @CAMERA_3727
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3720
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3720
goto @CAMERA_3731

:CAMERA_3727
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3731
6@ = 0

:CAMERA_3738
8@ = get_group_member $Players_Group {slotId} 6@
mark_char_as_no_longer_needed 8@
6@ += 1
  6@ >= 3
goto_if_false @CAMERA_3738
set_photo_camera_effect False
mark_model_as_no_longer_needed 367
terminate_this_script 
return 
return 
terminate_this_script 

//-------------External script 76 (DEBT)---------------

:DEBT
script_name 'DEBT'
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 50
set_lvar_int_to_var_int 10@ = $game_timer
10@ -= 10

:DEBT_109
wait 250
$game_timer = get_game_timer 
if 
  0@ == 0
goto_if_false @DEBT_644
if 
  $onmission == 0
goto_if_false @DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
if 
  is_player_playing $player1
goto_if_false @DEBT_563
11@ = get_area_visible 
if 
  11@ == 0
goto_if_false @DEBT_519
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DEBT_475
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @DEBT_431
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @DEBT_387
11@ = store_score $player1
if 
  11@ > -1
goto_if_false @DEBT_291

:DEBT_291
if 
  -5000 > 11@
goto_if_false @DEBT_317
1@ = 1

:DEBT_317
if 
  -50000 > 11@
goto_if_false @DEBT_345
1@ = 2

:DEBT_345
if 
  -500000 > 11@
goto_if_false @DEBT_373
1@ = 3

:DEBT_373
0@ += 1
goto @DEBT_424

:DEBT_387
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_424
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_424
goto @DEBT_468

:DEBT_431
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_468
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_468
goto @DEBT_512

:DEBT_475
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_512
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_512
goto @DEBT_556

:DEBT_519
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_556
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_556
goto @DEBT_600

:DEBT_563
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_600
goto @DEBT_644

:DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_644
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_644
if 
  0@ == 1
goto_if_false @DEBT_977

:DEBT_662
$game_timer = get_game_timer 
if 
  is_player_playing $player1
goto_if_false @DEBT_945
$player_x, $player_y, $z = get_char_coordinates $scplayer
set_var_float_to_var_float $x = $player_x
$x -= 200.0
$player_x += 200.0
$x = generate_random_float_in_range $x {max} $player_x
set_var_float_to_var_float $y = $player_y
$y -= 200.0
$player_y += 200.0
$y = generate_random_float_in_range $y {max} $player_y
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  1.0 > $z
goto_if_false @DEBT_861
wait 0
goto @DEBT_662

:DEBT_861
if 
  50.0 > $distance
goto_if_false @DEBT_893
wait 0
goto @DEBT_662

:DEBT_893
if 
  is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @DEBT_931
wait 0
goto @DEBT_662

:DEBT_931
0@ += 1
goto @DEBT_977

:DEBT_945
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_977
if 
  0@ == 2
goto_if_false @DEBT_1931
if and
  has_model_loaded 540
  has_model_loaded 181
  has_model_loaded 183
  has_model_loaded 206
  has_model_loaded 47
  has_model_loaded 352
goto_if_false @DEBT_1737
if 
  has_model_loaded 355
goto_if_false @DEBT_1702
12@ = create_car 540 {x} $x {y} $y {z} $z
set_car_heading 12@ {heading} $heading
change_car_colour 12@ {color1} 75 {color2} 0
set_car_health 12@ {health} 1500
set_car_driving_style 12@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 12@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
if 
  2@ == 1
goto_if_false @DEBT_1151
mark_model_as_no_longer_needed 540
2@ = 0

:DEBT_1151
13@ = create_char_inside_car 12@ {pedType} PedType.Mission1 {modelId} 181
if 
  3@ == 1
goto_if_false @DEBT_1194
mark_model_as_no_longer_needed 181
3@ = 0

:DEBT_1194
if 
  1@ > 0
goto_if_false @DEBT_1418
17@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 17@ {handle} 13@
18@ = copy_group_decision_maker -1
clear_group_decision_maker_event_response 18@ {event} Event.VehicleDamageWeapon
set_group_decision_maker 17@ {handleOrTemplate} 18@
14@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 183 {seat} SeatId.BikeRear
if 
  4@ == 1
goto_if_false @DEBT_1294
mark_model_as_no_longer_needed 183
4@ = 0

:DEBT_1294
if 
  1@ > 1
goto_if_false @DEBT_1357
15@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 206 {seat} SeatId.RearLeft
if 
  5@ == 1
goto_if_false @DEBT_1357
mark_model_as_no_longer_needed 206
5@ = 0

:DEBT_1357
if 
  1@ > 2
goto_if_false @DEBT_1418
16@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 47 {seat} SeatId.RearRight
if 
  6@ == 1
goto_if_false @DEBT_1418
mark_model_as_no_longer_needed 47
6@ = 0

:DEBT_1418
19@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 19@ {event} Event.VehicleDamageWeapon
$temp_integer_4 = 0

:DEBT_1439
if 
  4 > $temp_integer_4
goto_if_false @DEBT_1628
if 
  not is_char_dead 13@($temp_integer_4,4i)
goto_if_false @DEBT_1614
set_char_decision_maker 13@($temp_integer_4,4i) {handleOrTemplate} 19@
set_char_only_damaged_by_player 13@($temp_integer_4,4i) {state} True
set_char_relationship 13@($temp_integer_4,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_money 13@($temp_integer_4,4i) {amount} 10000
set_char_keep_task 13@($temp_integer_4,4i) {state} True
if or
  $temp_integer_4 == 0
  $temp_integer_4 == 2
goto_if_false @DEBT_1575
give_weapon_to_char 13@($temp_integer_4,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999

:DEBT_1575
if or
  $temp_integer_4 == 1
  $temp_integer_4 == 3
goto_if_false @DEBT_1614
give_weapon_to_char 13@($temp_integer_4,4i) {weaponType} WeaponType.Ak47 {ammo} 9999

:DEBT_1614
$temp_integer_4 += 1
goto @DEBT_1439

:DEBT_1628
if 
  7@ == 1
goto_if_false @DEBT_1658
mark_model_as_no_longer_needed 352
7@ = 0

:DEBT_1658
if 
  8@ == 1
goto_if_false @DEBT_1688
mark_model_as_no_longer_needed 355
8@ = 0

:DEBT_1688
0@ += 1
goto @DEBT_1730

:DEBT_1702
if 
  not has_model_loaded 355
goto_if_false @DEBT_1730
request_model 355
8@ = 1

:DEBT_1730
goto @DEBT_1931

:DEBT_1737
if 
  not has_model_loaded 540
goto_if_false @DEBT_1765
request_model 540
2@ = 1

:DEBT_1765
if 
  not has_model_loaded 181
goto_if_false @DEBT_1793
request_model 181
3@ = 1

:DEBT_1793
if 
  not has_model_loaded 183
goto_if_false @DEBT_1821
request_model 183
4@ = 1

:DEBT_1821
if 
  not has_model_loaded 206
goto_if_false @DEBT_1849
request_model 206
5@ = 1

:DEBT_1849
if 
  not has_model_loaded 47
goto_if_false @DEBT_1875
request_model 47
6@ = 1

:DEBT_1875
if 
  not has_model_loaded 352
goto_if_false @DEBT_1903
request_model 352
7@ = 1

:DEBT_1903
if 
  not has_model_loaded 355
goto_if_false @DEBT_1931
request_model 355
8@ = 1

:DEBT_1931
if 
  0@ == 3
goto_if_false @DEBT_3794
if 
  $onmission == 0
goto_if_false @DEBT_3699
if 
  is_player_playing $player1
goto_if_false @DEBT_3660
if 
  not is_score_greater $player1 {money} -1
goto_if_false @DEBT_3637
11@ = get_area_visible 
if 
  11@ == 0
goto_if_false @DEBT_3598
if 
  not is_char_dead 13@
goto_if_false @DEBT_3185
if 
  locate_char_any_means_char_2d $scplayer {target} 13@ {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @DEBT_3146
if 
  is_char_sitting_in_any_car 13@
goto_if_false @DEBT_2690
if 
  not is_car_dead 12@
goto_if_false @DEBT_2678
if 
  is_int_var_greater_than_int_lvar $game_timer > 10@
goto_if_false @DEBT_2349
if 
  is_char_in_any_car $scplayer
goto_if_false @DEBT_2314
11@ = generate_random_int_in_range 0 {max} 4
$car = store_car_char_is_in_no_save $scplayer
if 
  11@ == 0
goto_if_false @DEBT_2193
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.RamCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2193
if 
  11@ == 1
goto_if_false @DEBT_2231
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.BlockCarHandbrakeStop {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2231
if 
  11@ == 2
goto_if_false @DEBT_2269
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2269
if 
  11@ == 3
goto_if_false @DEBT_2307
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2307
goto @DEBT_2333

:DEBT_2314
task_car_mission 13@ {vehicle} 12@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2333
set_lvar_int_to_var_int 10@ = $game_timer
10@ += 8000

:DEBT_2349
$distance = get_char_speed $scplayer
if or
  is_char_on_foot $scplayer
  5.0 > $distance
goto_if_false @DEBT_2558
if 
  locate_char_any_means_char_2d 13@ {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DEBT_2558
$task_status = get_script_task_status 13@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2558
20@ = open_sequence_task 
11@ = generate_random_int_in_range 0 {max} 2
if 
  11@ == 0
goto_if_false @DEBT_2506
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.HandbrakeTurnLeft {time} 1000
goto @DEBT_2530

:DEBT_2506
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.HandbrakeTurnRight {time} 1000

:DEBT_2530
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 5000
close_sequence_task 20@
perform_sequence_task 13@ {sequence} 20@
clear_sequence_task 20@

:DEBT_2558
if and
  is_car_stuck 12@
  15.0 > $distance
goto_if_false @DEBT_2671
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 12@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_2671
if 
  is_car_on_screen 12@
goto_if_false @DEBT_2671
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2671
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_2671
goto @DEBT_2683

:DEBT_2678
mark_car_as_no_longer_needed 12@

:DEBT_2683
goto @DEBT_3139

:DEBT_2690
if 
  locate_char_any_means_char_2d 13@ {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_2768
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2761
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_2761
goto @DEBT_3139

:DEBT_2768
if 
  not is_car_dead 12@
goto_if_false @DEBT_2869
$task_status = get_script_task_status 13@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2862
20@ = open_sequence_task 
task_goto_car -1 {vehicle} 12@ {time} 99999 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 12@ {time} -2
close_sequence_task 20@
perform_sequence_task 13@ {sequence} 20@
clear_sequence_task 20@

:DEBT_2862
goto @DEBT_3139

:DEBT_2869
mark_car_as_no_longer_needed 12@
if 
  not locate_char_any_means_char_2d $scplayer {target} 13@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DEBT_3099
if 
  not is_car_on_screen 12@
goto_if_false @DEBT_3092
$x, $y, $z = get_char_coordinates 13@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @DEBT_3092
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @DEBT_3092
12@ = create_car 540 {x} $x {y} $y {z} $z
set_car_heading 12@ {heading} $heading
change_car_colour 12@ {color1} 75 {color2} 0
set_car_health 12@ {health} 1500
set_car_driving_style 12@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 12@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:DEBT_3092
goto @DEBT_3139

:DEBT_3099
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3139
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_3139
goto @DEBT_3178

:DEBT_3146
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3178
goto @DEBT_3350

:DEBT_3185
mark_char_as_no_longer_needed 13@
$temp_integer_4 = 1

:DEBT_3197
if 
  4 > $temp_integer_4
goto_if_false @DEBT_3350
if 
  not is_char_dead 13@($temp_integer_4,4i)
goto_if_false @DEBT_3327
if 
  does_group_exist 17@
goto_if_false @DEBT_3320
if 
  is_group_member 13@($temp_integer_4,4i) {handle} 17@
goto_if_false @DEBT_3320
if 
  is_group_leader 13@($temp_integer_4,4i) {handle} 17@
goto_if_false @DEBT_3320
set_lvar_int_to_lvar_int 13@ = 13@($temp_integer_4,4i)
13@($temp_integer_4,4i) = -1

:DEBT_3320
goto @DEBT_3336

:DEBT_3327
mark_char_as_no_longer_needed 13@($temp_integer_4,4i)

:DEBT_3336
$temp_integer_4 += 1
goto @DEBT_3197

:DEBT_3350
$temp_integer_4 = 1

:DEBT_3357
if 
  4 > $temp_integer_4
goto_if_false @DEBT_3591
if 
  not is_char_dead 13@
goto_if_false @DEBT_3577
if 
  not is_char_dead 13@($temp_integer_4,4i)
goto_if_false @DEBT_3568
if 
  does_group_exist 17@
goto_if_false @DEBT_3561
if 
  not is_group_member 13@($temp_integer_4,4i) {handle} 17@
goto_if_false @DEBT_3561
if 
  locate_char_any_means_char_2d 13@($temp_integer_4,4i) {target} 13@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_3504
set_group_member 17@ {handle} 13@($temp_integer_4,4i)
goto @DEBT_3561

:DEBT_3504
$task_status = get_script_task_status 13@($temp_integer_4,4i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3561
mark_char_as_no_longer_needed 13@($temp_integer_4,4i)
task_kill_char_on_foot_timed 13@($temp_integer_4,4i) {target} $scplayer {time} 5000

:DEBT_3561
goto @DEBT_3577

:DEBT_3568
mark_char_as_no_longer_needed 13@($temp_integer_4,4i)

:DEBT_3577
$temp_integer_4 += 1
goto @DEBT_3357

:DEBT_3591
goto @DEBT_3630

:DEBT_3598
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3630
goto @DEBT_3653

:DEBT_3637
gosub @DEBT_3801
$1376 = 0
terminate_this_script 

:DEBT_3653
goto @DEBT_3692

:DEBT_3660
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3692
goto @DEBT_3731

:DEBT_3699
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3731
if and
  is_char_dead 13@
  is_char_dead 14@
  is_char_dead 15@
  is_char_dead 16@
goto_if_false @DEBT_3794
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3794
goto @DEBT_109

:DEBT_3801
mark_char_as_no_longer_needed 13@
mark_char_as_no_longer_needed 14@
mark_char_as_no_longer_needed 15@
mark_char_as_no_longer_needed 16@
mark_car_as_no_longer_needed 12@
remove_decision_maker 19@
remove_decision_maker 18@
remove_group 17@
if 
  2@ == 1
goto_if_false @DEBT_3871
mark_model_as_no_longer_needed 540
2@ = 0

:DEBT_3871
if 
  3@ == 1
goto_if_false @DEBT_3901
mark_model_as_no_longer_needed 181
3@ = 0

:DEBT_3901
if 
  4@ == 1
goto_if_false @DEBT_3931
mark_model_as_no_longer_needed 183
4@ = 0

:DEBT_3931
if 
  5@ == 1
goto_if_false @DEBT_3961
mark_model_as_no_longer_needed 206
5@ = 0

:DEBT_3961
if 
  6@ == 1
goto_if_false @DEBT_3990
mark_model_as_no_longer_needed 47
6@ = 0

:DEBT_3990
if 
  7@ == 1
goto_if_false @DEBT_4020
mark_model_as_no_longer_needed 352
7@ = 0

:DEBT_4020
if 
  8@ == 1
goto_if_false @DEBT_4050
mark_model_as_no_longer_needed 355
8@ = 0

:DEBT_4050
return 
terminate_this_script 

//-------------External script 77 (HOTDOG)---------------

:HOTDOGV
script_name 'HOTDOGV'
2@ = 0
if 
  2@ == 1
goto_if_false @HOTDOGV_77
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_car 588 {x} $x {y} $y {z} $z

:HOTDOGV_77
wait 0
$game_timer = get_game_timer 
if 
  not is_char_dead 0@
goto_if_false @HOTDOGV_698
if 
  is_player_playing $player1
goto_if_false @HOTDOGV_673
if 
  is_char_attached_to_any_car 0@
goto_if_false @HOTDOGV_648
1@ = store_car_char_is_attached_to_no_save 0@
if 
  not is_char_in_car $scplayer {vehicle} 1@
goto_if_false @HOTDOGV_616
if 
  2@ == 0
goto_if_false @HOTDOGV_434
if 
  locate_char_on_foot_car_2d $scplayer {vehicle} 1@ {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @HOTDOGV_434
request_animation "VENDING"
if 
  has_animation_loaded "VENDING"
goto_if_false @HOTDOGV_434
if 
  is_score_greater $player1 {money} 0
goto_if_false @HOTDOGV_434
$x, $y, $z = get_offset_from_car_in_world_coords 1@ {xOffset} 2.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @HOTDOGV_434
$sequence_task_obj = get_char_health $scplayer
$sequence_task_obj += 50
set_char_health $scplayer {health} $sequence_task_obj
task_play_anim_secondary $scplayer {animationName} "VEND_EAT1_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
increment_int_stat StatId.Calories {value} 10
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
add_score $player1 {money} -1
2@ += 1

:HOTDOGV_434
if 
  2@ == 1
goto_if_false @HOTDOGV_494
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_494
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
2@ += 1

:HOTDOGV_494
if 
  2@ == 2
goto_if_false @HOTDOGV_609
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_609
$x, $y, $z = get_offset_from_car_in_world_coords 1@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  not locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @HOTDOGV_609
2@ = 0

:HOTDOGV_609
goto @HOTDOGV_641

:HOTDOGV_616
mark_char_as_no_longer_needed 0@
task_duck 0@ {time} -2
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_641
goto @HOTDOGV_666

:HOTDOGV_648
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_666
goto @HOTDOGV_691

:HOTDOGV_673
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_691
goto @HOTDOGV_716

:HOTDOGV_698
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_716
goto @HOTDOGV_77
terminate_this_script 
